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e,IAAf,CAAoB,QAApB;AACD;;;;;;;AAhDM,OAAA,CAAA,OAAA,GAAU,gBAAV;AAEA,OAAA,CAAA,SAAA,GAAY,KAAZ;AAEA,OAAA,CAAA,OAAA","sourcesContent":["import { install } from './install'\n\n// Types\nimport {\n VuetifyService,\n VuetifyServiceContract,\n} from 'vuetify/types/services'\nimport { VuetifyPreset } from 'vuetify/types/presets'\nimport Vue from 'vue'\n\n// Services\nimport * as services from './services'\n\n// Styles\nimport './styles/main.sass'\n\nexport default class Vuetify {\n static install = install\n\n static installed = false\n\n static version = __VUETIFY_VERSION__\n\n framework: Record<string, VuetifyServiceContract> = {}\n\n installed: string[] = []\n\n preset: Partial<VuetifyPreset> = {}\n\n constructor (preset: Partial<VuetifyPreset> = {}) {\n this.preset = preset\n\n this.use(services.Application)\n this.use(services.Breakpoint)\n this.use(services.Goto)\n this.use(services.Icons)\n this.use(services.Lang)\n this.use(services.Theme)\n }\n\n // Called on the new vuetify instance\n // bootstrap in install beforeCreate\n // Exposes ssrContext if available\n init (root: Vue, ssrContext?: object) {\n this.installed.forEach(property => {\n const service = this.framework[property]\n service.framework = this.framework\n\n service.init(root, ssrContext)\n })\n\n // rtl is not installed and\n // will never be called by\n // the init process\n this.framework.rtl = Boolean(this.preset.rtl) as any\n }\n\n // Instantiate a VuetifyService\n use (Service: VuetifyService) {\n const property = Service.property\n\n if (this.installed.includes(property)) return\n\n this.framework[property] = new Service(this.preset[property])\n this.installed.push(property)\n }\n}\n"],"sourceRoot":"","file":"framework.js"}
|