{"version":3,"file":"index-JQMXjFD5.js","sources":["../../../app/frontend/vue/src/services/app-data-provider/index.js"],"sourcesContent":["import { reactive } from 'vue';\n\nexport default (selector) => {\n const sel = selector || '.vue-app-data-container';\n const appDataContainer = document.querySelector(sel);\n\n if (!appDataContainer) {\n // eslint-disable-next-line no-console\n console.warn(`Can't find app data container \"${sel}\"`);\n\n return reactive({});\n }\n\n const res = { ...appDataContainer.dataset };\n\n return reactive(res);\n};\n"],"names":["appDataProvider","selector","sel","appDataContainer","document","querySelector","console","warn","reactive","res","dataset"],"mappings":"wCAEA,MAAeA,EAACC,IACd,MAAMC,EAAMD,GAAY,0BAClBE,EAAmBC,SAASC,cAAcH,GAEhD,IAAKC,EAII,OAFCG,QAAAC,KAAK,kCAAkCL,MAExCM,EAAS,CAAA,GAGlB,MAAMC,EAAM,IAAKN,EAAiBO,SAElC,OAAOF,EAASC,EAAG"}