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E,IAAI","names":["registry","createRegistryKey","namespace","id","createUnique","v","createPlugin","plugin","usePlugin","app","_plugin","createApplication","application","applicationFactory","container","_plugins","plugins","createApp","component","vuePlugins","__vitePreload","n","_a","vm","_b","buildApplicationFactories","applications","applicationFactories","createCustomElement","customElement","customElementFactory","element","defineCustomElement","nextTick","buildCustomElementFactories","customElements","createMSPA","options","factories","f","addAppContainerClasses","tokens","globalInstanceConfiguration","pinia","persistedState","VueQueryPlugin","defaultConfig","defineAsyncComponent","createRouter","createWebHashHistory"],"ignoreList":[],"sources":["../../ui/src/lib/mspa/utils.ts","../../ui/src/lib/mspa/plugin.ts","../../ui/src/lib/mspa/application.ts","../../ui/src/lib/mspa/element.ts","../../ui/src/lib/mspa/environment.ts","../../ui/src/main.ts"],"sourcesContent":["const registry: Map = new Map()\nconst createRegistryKey = (namespace: string, id: string) => [namespace, id].join('::')\n\nexport const createUnique = (namespace: string, id: string, v: T) => {\n if (registry.has(createRegistryKey(namespace, id))) {\n throw new Error(`The ${namespace || 'key'} \"${id}\" is already registered`)\n }\n\n return v\n}\n","import type { App, Plugin as VPlugin } from 'vue'\n\nimport { createUnique } from './utils'\n\ntype FactoryPlugin = VPlugin | [VPlugin, ...Array]\n\nexport type Plugin = {\n id: string\n load: () => Promise\n}\n\nexport const createPlugin = (plugin: Plugin) => createUnique('plugin', plugin.id, plugin)\n\nexport const usePlugin = (app: App, _plugin: FactoryPlugin) => {\n const plugin: FactoryPlugin = Array.isArray(_plugin) ? _plugin : [_plugin]\n app.use(...plugin)\n}\n","import type { App, AsyncComponentLoader, ComponentPublicInstance } from 'vue'\n\nimport type { Plugin } from './plugin'\nimport { usePlugin } from './plugin'\n\nexport type Application = {\n component: AsyncComponentLoader\n container: Array | NodeListOf\n plugins?: Plugin[]\n configureApp?: (args: { app: App; container: HTMLElement }) => Promise\n configureInstance?: (args: { app: App; vm: ComponentPublicInstance }) => Promise\n}\n\nexport const createApplication = (application: Application) => application\n\nconst applicationFactory = async (\n container: HTMLElement,\n application: Application,\n _plugins: Plugin[]\n): Promise => {\n // merge global and local plugins\n const plugins = [\n ..._plugins, // global plugins\n ...(application.plugins || []) // local plugins\n ]\n\n // load all required pieces at once\n const [{ createApp }, component, ...vuePlugins] = await Promise.all([\n import('vue'),\n application.component(),\n ...plugins.map((plugin) => plugin.load())\n ])\n\n // create the application instance\n const app = createApp(component.default || component)\n\n // apply the plugins\n vuePlugins.forEach((plugin) => usePlugin(app, plugin))\n\n // notify the application before mounting\n await application.configureApp?.({ app, container })\n\n // mount the application instance\n const vm = app.mount(container)\n\n // notify the application after mounting\n await application.configureInstance?.({ vm, app })\n}\n\nexport const buildApplicationFactories = (\n applications: Application[],\n plugins: Plugin[]\n): Array<() => void> => {\n const applicationFactories = []\n\n for (const application of applications) {\n for (const container of application.container) {\n container &&\n applicationFactories.push(applicationFactory.bind(null, container, application, plugins))\n }\n }\n\n // if we do not have any factory, we can return early\n if (applicationFactories.length === 0) {\n return []\n }\n\n return applicationFactories\n}\n","import type { App, AsyncComponentLoader } from 'vue'\n\nimport type { Plugin } from './plugin'\nimport { usePlugin } from './plugin'\nimport { createUnique } from './utils'\n\nexport type CustomElement = {\n id: string\n component: AsyncComponentLoader\n plugins?: Plugin[]\n configureApp?: (args: { app: App }) => Promise\n configureInstance?: (args: { app: App }) => Promise\n styles?: string[]\n shadowRoot?: boolean\n nonce?: string\n}\n\nexport const createCustomElement = (customElement: CustomElement) =>\n createUnique('custom element', customElement.id, customElement)\n\nexport const customElementFactory = async (element: CustomElement, _plugins: Plugin[]) => {\n // merge global and local plugins\n const plugins = [\n ..._plugins, // global plugins\n ...(element.plugins || []) // local plugins\n ]\n\n // load all required pieces at once\n const [{ defineCustomElement, nextTick }, component, ...vuePlugins] = await Promise.all([\n import('vue'),\n element.component(),\n ...plugins.map((plugin) => plugin.load())\n ])\n\n customElements.define(\n element.id,\n defineCustomElement(component.default || component, {\n styles: element.styles,\n shadowRoot: element.shadowRoot,\n nonce: element.nonce,\n configureApp: async (app: App) => {\n vuePlugins.forEach((plugin) => usePlugin(app, plugin))\n await element.configureApp?.({ app })\n\n await app.runWithContext(async () => {\n await nextTick()\n await element.configureInstance?.({ app })\n })\n }\n })\n )\n}\n\nexport const buildCustomElementFactories = (\n customElements: CustomElement[],\n plugins: Plugin[]\n): Array<() => void> => {\n return customElements.map((customElement) =>\n customElementFactory.bind(null, customElement, plugins)\n )\n}\n","import type { Application } from './application'\nimport { buildApplicationFactories } from './application'\nimport type { CustomElement } from './element'\nimport { buildCustomElementFactories } from './element'\nimport type { Plugin } from './plugin'\n\nexport const createMSPA = (options: {\n customElements: CustomElement[]\n applications: Application[]\n plugins: Plugin[]\n}) => {\n const factories = [\n ...buildApplicationFactories(options.applications, options.plugins),\n ...buildCustomElementFactories(options.customElements, options.plugins)\n ]\n\n return {\n run: () => Promise.all(factories.map((f) => f()))\n }\n}\n","// YES, I know, the ascii art is a bit over the top, but it's fun and I like it!\n//\n// Your work is going to fill a large part of your life,\n// and the only way to be truly satisfied is to do what you believe is great work.\n// And the only way to do great work is to love what you do.\n// RIP Steve Jobs, you were a true visionary!\n//\n// ... and now 😄 ENJOY!\n//\n// ... and before you ask, the answer will always be 42!\n\nimport '@/assets/main.css'\nimport '@/assets/no-namespace/no-namespace.css'\n// eslint-disable-next-line import/no-unresolved\nimport 'virtual:uno.css'\n\nimport type { App } from 'vue'\nimport { defineAsyncComponent } from 'vue'\nimport { createRouter, createWebHashHistory } from 'vue-router'\n\nimport { createApplication, createCustomElement, createMSPA, createPlugin } from '@/lib/mspa'\n// *****************************************************************************************************************************************************\n// $$$$$$\\\n// $$ __$$\\\n// $$ / \\__| $$$$$$\\ $$$$$$\\$$$$\\ $$$$$$\\$$$$\\ $$$$$$\\ $$$$$$$\\\n// $$ | $$ __$$\\ $$ _$$ _$$\\ $$ _$$ _$$\\ $$ __$$\\ $$ __$$\\\n// $$ | $$ / $$ |$$ / $$ / $$ |$$ / $$ / $$ |$$ / $$ |$$ | $$ |\n// $$ | $$\\ $$ | $$ |$$ | $$ | $$ |$$ | $$ | $$ |$$ | $$ |$$ | $$ |\n// \\$$$$$$ |\\$$$$$$ |$$ | $$ | $$ |$$ | $$ | $$ |\\$$$$$$ |$$ | $$ |\n// \\______/ \\______/ \\__| \\__| \\__|\\__| \\__| \\__| \\______/ \\__| \\__|\n// *****************************************************************************************************************************************************\n\nconst addAppContainerClasses = (app: T, ...tokens: string[]) => {\n const container: HTMLElement | undefined = app?._container?.host || app?._container\n container?.classList.add(...tokens)\n}\n\nconst globalInstanceConfiguration = async ({ app }: { app: App }) => {\n addAppContainerClasses(app, import.meta.env.RMT_UI_CSS_NAMESPACE)\n}\n\n// *****************************************************************************************************************************************************\n//\n// $$$$$$$\\ $$\\ $$\\\n// $$ __$$\\ $$ | \\__|\n// $$ | $$ |$$ |$$\\ $$\\ $$$$$$\\ $$\\ $$$$$$$\\ $$$$$$$\\\n// $$$$$$$ |$$ |$$ | $$ |$$ __$$\\ $$ |$$ __$$\\ $$ _____|\n// $$ ____/ $$ |$$ | $$ |$$ / $$ |$$ |$$ | $$ |\\$$$$$$\\\n// $$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ | $$ | \\____$$\\\n// $$ | $$ |\\$$$$$$ |\\$$$$$$$ |$$ |$$ | $$ |$$$$$$$ |\n// \\__| \\__| \\______/ \\____$$ |\\__|\\__| \\__|\\_______/\n// $$\\ $$ |\n// \\$$$$$$ |\n// \\______/\n//\n// *****************************************************************************************************************************************************\n\nconst plugins = {\n pinia: createPlugin({\n id: 'pinia',\n load: async () => {\n const [pinia, persistedState] = await Promise.all([\n import('pinia'),\n import('pinia-plugin-persistedstate')\n ])\n\n return pinia.createPinia().use(persistedState.createPersistedState())\n }\n }),\n vueQuery: createPlugin({\n id: 'vue-query',\n load: async () => {\n const { VueQueryPlugin } = await import('@tanstack/vue-query')\n return VueQueryPlugin\n }\n }),\n vueFinalModal: createPlugin({\n id: 'vue-final-modal',\n load: async () => {\n const vfm = await import('vue-final-modal')\n return vfm.createVfm()\n }\n }),\n formKit: createPlugin({\n id: 'form-kit',\n load: async () => {\n const [{ plugin }, { defaultConfig }] = await Promise.all([\n import('@formkit/vue'),\n import('@/config/formkit')\n ])\n\n return [plugin, defaultConfig]\n }\n })\n}\n\n// *****************************************************************************************************************************************************\n//\n// $$$$$$\\ $$\\ $$$$$$$$\\ $$\\ $$\\\n// $$ __$$\\ $$ | $$ _____|$$ | $$ |\n// $$ / \\__|$$\\ $$\\ $$$$$$$\\ $$$$$$\\ $$$$$$\\ $$$$$$\\$$$$\\ $$ | $$ | $$$$$$\\ $$$$$$\\$$$$\\ $$$$$$\\ $$$$$$$\\ $$$$$$\\ $$$$$$$\\\n// $$ | $$ | $$ |$$ _____|\\_$$ _| $$ __$$\\ $$ _$$ _$$\\ $$$$$\\ $$ |$$ __$$\\ $$ _$$ _$$\\ $$ __$$\\ $$ __$$\\\\_$$ _| $$ _____|\n// $$ | $$ | $$ |\\$$$$$$\\ $$ | $$ / $$ |$$ / $$ / $$ | $$ __| $$ |$$$$$$$$ |$$ / $$ / $$ |$$$$$$$$ |$$ | $$ | $$ | \\$$$$$$\\\n// $$ | $$\\ $$ | $$ | \\____$$\\ $$ |$$\\ $$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ ____|$$ | $$ | $$ |$$ ____|$$ | $$ | $$ |$$\\ \\____$$\\\n// \\$$$$$$ |\\$$$$$$ |$$$$$$$ | \\$$$$ |\\$$$$$$ |$$ | $$ | $$ | $$$$$$$$\\ $$ |\\$$$$$$$\\ $$ | $$ | $$ |\\$$$$$$$\\ $$ | $$ | \\$$$$ |$$$$$$$ |\n// \\______/ \\______/ \\_______/ \\____/ \\______/ \\__| \\__| \\__| \\________|\\__| \\_______|\\__| \\__| \\__| \\_______|\\__| \\__| \\____/ \\_______/\n//\n// *****************************************************************************************************************************************************\n\nconst customElements = [\n createCustomElement({\n id: 'trailer-booking-entrypoint',\n component: async () =>\n defineAsyncComponent(() => import('@/elements/TrailerBookingEntrypoint.vue')),\n configureInstance: globalInstanceConfiguration,\n shadowRoot: false\n }),\n\n createCustomElement({\n id: 'trailer-data-sheet-modal',\n component: async () =>\n defineAsyncComponent(() => import('@/elements/TrailerDataSheetModal.vue')),\n configureInstance: globalInstanceConfiguration,\n shadowRoot: false\n }),\n\n createCustomElement({\n id: 'driving-license-calculator',\n component: async () =>\n defineAsyncComponent(() => import('@/elements/DrivingLicenseCalculator.vue')),\n configureInstance: globalInstanceConfiguration,\n shadowRoot: false\n }),\n\n createCustomElement({\n id: 'registration-form',\n component: async () => defineAsyncComponent(() => import('@/elements/RegistrationForm.vue')),\n configureInstance: globalInstanceConfiguration,\n plugins: [plugins.formKit],\n shadowRoot: false\n }),\n\n createCustomElement({\n id: 'one-way-form',\n component: async () => defineAsyncComponent(() => import('@/elements/OneWayForm.vue')),\n configureInstance: globalInstanceConfiguration,\n plugins: [plugins.formKit],\n shadowRoot: false\n })\n]\n\n// *****************************************************************************************************************************************************\n//\n// $$$$$$\\ $$\\ $$\\ $$\\ $$\\\n// $$ __$$\\ $$ |\\__| $$ | \\__|\n// $$ / $$ | $$$$$$\\ $$$$$$\\ $$ |$$\\ $$$$$$$\\ $$$$$$\\ $$$$$$\\ $$\\ $$$$$$\\ $$$$$$$\\ $$$$$$$\\\n// $$$$$$$$ |$$ __$$\\ $$ __$$\\ $$ |$$ |$$ _____|\\____$$\\\\_$$ _| $$ |$$ __$$\\ $$ __$$\\ $$ _____|\n// $$ __$$ |$$ / $$ |$$ / $$ |$$ |$$ |$$ / $$$$$$$ | $$ | $$ |$$ / $$ |$$ | $$ |\\$$$$$$\\\n// $$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ |$$ | $$ __$$ | $$ |$$\\ $$ |$$ | $$ |$$ | $$ | \\____$$\\\n// $$ | $$ |$$$$$$$ |$$$$$$$ |$$ |$$ |\\$$$$$$$\\\\$$$$$$$ | \\$$$$ |$$ |\\$$$$$$ |$$ | $$ |$$$$$$$ |\n// \\__| \\__|$$ ____/ $$ ____/ \\__|\\__| \\_______|\\_______| \\____/ \\__| \\______/ \\__| \\__|\\_______/\n// $$ | $$ |\n// $$ | $$ |\n// \\__| \\__|\n//\n// *****************************************************************************************************************************************************\n\nconst applications = [\n createApplication({\n container: [document.querySelector('#app-booking-select')],\n component: async () => defineAsyncComponent(() => import('@/layouts/DefaultLayout.vue')),\n configureApp: async ({ app }) => {\n app.use(\n createRouter({\n history: createWebHashHistory(),\n routes: [\n {\n name: 'booking-select',\n path: '/',\n component: () => import('@/apps/BookingMap/BookingMap.vue'),\n children: [\n {\n name: 'booking-map-trailer-list',\n path: '/',\n component: () => import('@/apps/BookingMap/TrailerList.vue')\n },\n {\n name: 'booking-map-trailer-show',\n path: '/trailer/:id',\n props: true,\n component: () => import('@/apps/BookingMap/TrailerShow.vue')\n }\n ]\n }\n ]\n })\n )\n },\n configureInstance: globalInstanceConfiguration\n })\n]\n\n// *****************************************************************************************************************************************************\n//\n// $$$$$$$$\\\n// $$ _____|\n// $$ | $$\\ $$\\ $$$$$$\\ $$$$$$$\\\n// $$$$$\\ \\$$\\ $$ |$$ __$$\\ $$ _____|\n// $$ __| \\$$$$ / $$$$$$$$ |$$ /\n// $$ | $$ $$< $$ ____|$$ |\n// $$$$$$$$\\ $$ /\\$$\\ \\$$$$$$$\\ \\$$$$$$$\\\n// \\________|\\__/ \\__| \\_______| \\_______|\n//\n// *****************************************************************************************************************************************************\n\n// create the MSPA environment and run it\nawait createMSPA({\n customElements,\n applications,\n plugins: [plugins.pinia, plugins.vueQuery, plugins.vueFinalModal]\n}).run()\n"],"file":"main.js"}