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,SAAK,SAAL,CAAe,QAAf,IAA2B,IAAI,OAAJ,CAAY,KAAK,MAAL,CAAY,QAAZ,CAAZ,CAA3B;AACA,SAAK,SAAL,CAAe,IAAf,CAAoB,QAApB;AACD;;AAjDyB;AACnB,OAAA,CAAA,OAAA,GAAU,OAAV;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"}
\No newline at end of file