{"version":3,"file":"main-8d5fb9560a51e0df60f9.esm.js","mappings":"2BAAAA,EAAOC,QAAU,EAAjB,I,UCQAD,EAAOC,QAAQC,cALf,SAAuBC,EAAMC,GAE3B,OAAOD,GADkBC,EAAU,KAAKA,EAAQC,MAAM,KAAK,KAAO,GAEpE,C,GCLIC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaR,QAGrB,IAAID,EAASM,EAAyBE,GAAY,CAGjDP,QAAS,CAAC,GAOX,OAHAU,EAAoBH,GAAUR,EAAQA,EAAOC,QAASM,GAG/CP,EAAOC,OACf,C,mBClBA,MAAMW,GAAMV,E,OAAAA,eAAcW,kBAAcC,SAExC,MAAMC,UAAmBC,YAAYC,WAAAA,IAAAC,GAAA,SAAAA,GAAA,KACnCf,KAAOS,CAAG,CAEVO,iBAAAA,GACgBC,KAAKC,cACrB,EAGGC,eAAeC,IAAIX,IACtBU,eAAeE,OAAOZ,EAAKG,E","sources":["webpack://dh-bildegalleri/./node_modules/@nrk/dh-server-libs/get-element-tag.js","webpack://dh-bildegalleri/./node_modules/@nrk/dh-server-libs/src/get-element-tag.js","webpack://dh-bildegalleri/webpack/bootstrap","webpack://dh-bildegalleri/./src/client.js"],"sourcesContent":["module.exports = require('./src/get-element-tag')\n","/**\n * Creates a valid custom element name that is versioned (major)\n */\nfunction getElementTag(name, version) {\n const formattedVersion = version ? `-v${version.split('.')[0]}` : ''\n return name + formattedVersion\n}\n\nmodule.exports.getElementTag = getElementTag\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import { getElementTag } from '@nrk/dh-server-libs/get-element-tag'\n\nimport hydrate from './components/hydrate.ts'\n\nconst tag = getElementTag(__APP_NAME__, __APP_VERSION__)\n\nclass AppElement extends HTMLElement {\n name = tag\n\n connectedCallback() {\n hydrate(this, this.preloadedState)\n }\n}\n\nif (!customElements.get(tag)) {\n customElements.define(tag, AppElement)\n}\n"],"names":["module","exports","getElementTag","name","version","split","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","tag","__APP_NAME__","__APP_VERSION__","AppElement","HTMLElement","constructor","args","connectedCallback","this","preloadedState","customElements","get","define"],"sourceRoot":""}