{"version":3,"file":"main-97b11e44ee0086d600cd.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,mBCrBA,MCQMW,GAAMV,E,OAAAA,eAAcW,gBAAcC,UAQjC,MAAMC,UAAmBC,YAAYC,WAAAA,IAAAC,GAAA,SAAAA,GAAA,KAC1Cf,KAAOS,CAAG,EAPZ,IAAoBO,EAAaF,EAAbE,EAUTP,EAVsBK,EAUjBF,OATiC,IAApCK,eAAeC,IAAIF,IAC5BC,eAAeE,OAAOH,EAAaF,E","sources":["webpack://persongalleri/./node_modules/@nrk/dh-server-libs/get-element-tag.js","webpack://persongalleri/./node_modules/@nrk/dh-server-libs/src/get-element-tag.js","webpack://persongalleri/webpack/bootstrap","webpack://persongalleri/./src/client.module.css?98d6","webpack://persongalleri/./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","// extracted by mini-css-extract-plugin\nexport default {\"root\":\"dhpg__root\"};","import { getElementTag } from '@nrk/dh-server-libs/get-element-tag'\n\nimport './client.module.css'\nimport './components/var.module.css'\nimport './components/app.module.css'\nimport './components/gallery/index.module.css'\nimport './components/header/index.module.css'\nimport './components/person/index.module.css'\n\nconst tag = getElementTag(__APP_NAME__, __APP_VERSION__)\n\nfunction safeDefine(elementName, constructor) {\n if (typeof customElements.get(elementName) === 'undefined') {\n customElements.define(elementName, constructor)\n }\n}\n\nexport class AppElement extends HTMLElement {\n name = tag\n}\n\nsafeDefine(tag, AppElement)\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","elementName","customElements","get","define"],"sourceRoot":""}