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AAtH,KAAA4F,KACP,4FAEJ,CAAC,SAAAJ,IAEiB,IAAAgC,EAChB,QAAqB,OAAbA,EAAC5B,KAAK2B,WAALC,EAAAxH,KAAA4F,KAAe,2BAC1B,CAAC,SAAAL,IAEgB,IAAAkC,EACf,QAAqB,OAAbA,EAAC7B,KAAK2B,WAALE,EAAAzH,KAAA4F,KAAe,kBAC1B,CCrEF,MCIMxD,GAAM9C,EAAAA,EAAAA,eAAcoI,qBAAcC,SAExC,SAASC,EAAWC,EAAaxC,QACgB,IAApCyC,eAAeC,IAAIF,IAC5BC,eAAeE,OAAOH,EAAaxC,EAEvC,CAEO,MAAM4C,UAAmB7C,YAAYC,WAAAA,IAAAC,GAAA,SAAAA,GAAA,KAC1C/F,KAAO6C,CAAG,CAEV6D,iBAAAA,GACML,KAAKsC,SAASC,qBAChB,6BAGFP,EAAW,qBAAsBzC,EACnC,CAEA,YAAI+C,GACF,OAAOE,KAAKC,MAAMzC,KAAKvD,aAAa,YACtC,EAGFuF,EAAWxF,EAAK6F,E","sources":["webpack://dh-tilpasset-bilde/webpack/runtime/import chunk loading","webpack://dh-tilpasset-bilde/./node_modules/@nrk/dh-server-libs/get-element-tag.js","webpack://dh-tilpasset-bilde/./node_modules/@nrk/dh-server-libs/src/get-element-tag.js","webpack://dh-tilpasset-bilde/webpack/bootstrap","webpack://dh-tilpasset-bilde/webpack/runtime/ensure chunk","webpack://dh-tilpasset-bilde/webpack/runtime/get javascript chunk filename","webpack://dh-tilpasset-bilde/webpack/runtime/get mini-css chunk filename","webpack://dh-tilpasset-bilde/webpack/runtime/hasOwnProperty shorthand","webpack://dh-tilpasset-bilde/webpack/runtime/make namespace object","webpack://dh-tilpasset-bilde/webpack/runtime/publicPath","webpack://dh-tilpasset-bilde/webpack/runtime/css loading","webpack://dh-tilpasset-bilde/./node_modules/@nrk/core-icons/core-icons.mjs","webpack://dh-tilpasset-bilde/./src/components/tilpasset-bilde.module.css?ff4b","webpack://dh-tilpasset-bilde/./src/components/tilpasset-bilde.js","webpack://dh-tilpasset-bilde/./src/client.module.css?98d6","webpack://dh-tilpasset-bilde/./src/client.js"],"sourcesContent":["// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t792: 0\n};\n\nvar installChunk = (data) => {\n\tvar {ids, modules, runtime} = data;\n\t// add \"modules\" to the modules object,\n\t// then flag all \"ids\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tfor(moduleId in modules) {\n\t\tif(__webpack_require__.o(modules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = modules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\tfor(;i < ids.length; i++) {\n\t\tchunkId = ids[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[ids[i]] = 0;\n\t}\n\n}\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// import() chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[1]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = import(\"./\" + __webpack_require__.u(chunkId)).then(installChunk, (e) => {\n\t\t\t\t\t\tif(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t});\n\t\t\t\t\tvar promise = Promise.race([promise, new Promise((resolve) => (installedChunkData = installedChunks[chunkId] = [resolve]))])\n\t\t\t\t\tpromises.push(installedChunkData[1] = promise);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no external install chunk\n\n// no on chunks loaded","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].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + \"dh-preview-iframe\" + \"-chunk-\" + \"7c9b53e17e585787afa7\" + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \"-\" + \"39a4cde2bc53005be2c3\" + \".css\";\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"https://static.nrk.no/dh/module/tilpasset-bilde/static/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = (chunkId, fullhref, oldTag, resolve, reject) => {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = (event) => {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = (href, fullhref) => {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = (chunkId) => {\n\treturn new Promise((resolve, reject) => {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t792: 0\n};\n\n__webpack_require__.f.miniCss = (chunkId, promises) => {\n\tvar cssChunks = {\"241\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, (e) => {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","export const nrk360 = ''\nexport const nrk404 = ''\nexport const nrkAlarmClock = ''\nexport const nrkArrangeList = ''\nexport const nrkArrowDown = ''\nexport const nrkArrowDropdown = ''\nexport const nrkArrowLeftLong = ''\nexport const nrkArrowLeft = ''\nexport const nrkArrowNested = ''\nexport const nrkArrowRightLong = ''\nexport const nrkArrowRight = ''\nexport const nrkArrowUp = ''\nexport const nrkArticle = ''\nexport const nrkBack = ''\nexport const nrkBellActive = ''\nexport const nrkBell = ''\nexport const nrkBookmarkActive = ''\nexport const nrkBookmark = ''\nexport const nrkBroadcast = ''\nexport const nrkBulletSquare = ''\nexport const nrkBulletedList = ''\nexport const nrkCalendar = ''\nexport const nrkCategoryActive = ''\nexport const nrkCategory = ''\nexport const nrkCheckActive = ''\nexport const nrkCheckRadioUnchecked = ''\nexport const nrkCheck = ''\nexport const nrkCheckboxActive = ''\nexport const nrkCheckbox = ''\nexport const nrkChevronDown = ''\nexport const nrkChevronLeft = ''\nexport const nrkChevronRight = ''\nexport const nrkChevronUp = ''\nexport const nrkClock = ''\nexport const nrkCloseActive = ''\nexport const nrkClose = ''\nexport const nrkComment = ''\nexport const nrkDialogue = ''\nexport const nrkDice1Active = ''\nexport const nrkDice1 = ''\nexport const nrkDice2Active = ''\nexport const nrkDice2 = ''\nexport const nrkDice3Active = ''\nexport const nrkDice3 = ''\nexport const nrkDice4Active = ''\nexport const nrkDice4 = ''\nexport const nrkDice5Active = ''\nexport const nrkDice5 = ''\nexport const nrkDice6Active = ''\nexport const nrkDice6 = ''\nexport const nrkDownload = ''\nexport const nrkDownloaded = ''\nexport const nrkDuration = ''\nexport const nrkEdit = ''\nexport const nrkEllipsisActive = ''\nexport const nrkEllipsis = ''\nexport const nrkFullscreenActive = ''\nexport const nrkFullscreen = ''\nexport const nrkGallery = ''\nexport const nrkGeoActive = ''\nexport const nrkGeo = ''\nexport const nrkGeopointActive = ''\nexport const nrkGeopoint = ''\nexport const nrkGlobe = ''\nexport const nrkHardwareCamera = ''\nexport const nrkHardwareComputer = ''\nexport const nrkHardwareGame = ''\nexport const nrkHardwareHeadphones = ''\nexport const nrkHardwareLaptop = ''\nexport const nrkHardwareMicrophone = ''\nexport const nrkHardwareMobile = ''\nexport const nrkHardwarePrinter = ''\nexport const nrkHardwareRadio = ''\nexport const nrkHardwareSmartSpeaker = ''\nexport const nrkHardwareSmartWatch = ''\nexport const nrkHardwareSpeaker = ''\nexport const nrkHardwareTablet = ''\nexport const nrkHardwareTv = ''\nexport const nrkHardwareWatch = ''\nexport const nrkHeartActive = ''\nexport const nrkHeart = ''\nexport const nrkHelp = ''\nexport const nrkHomeActive = ''\nexport const nrkHome = ''\nexport const nrkInfo = ''\nexport const nrkLatestNewsActive = ''\nexport const nrkLatestNews = ''\nexport const nrkLink = ''\nexport const nrkListActive = ''\nexport const nrkList = ''\nexport const nrkLockActive = ''\nexport const nrkLock = ''\nexport const nrkLogout = ''\nexport const nrkLongreadActive = ''\nexport const nrkLongread = ''\nexport const nrkLyn = ''\nexport const nrkMat = ''\nexport const nrkMedia404Notfound = ''\nexport const nrkMediaAgelimit12 = ''\nexport const nrkMediaAgelimit15 = ''\nexport const nrkMediaAgelimit18 = ''\nexport const nrkMediaAgelimit6 = ''\nexport const nrkMediaAgelimit9 = ''\nexport const nrkMediaAgelimitA = ''\nexport const nrkMediaAirplayActive = ''\nexport const nrkMediaAirplay = ''\nexport const nrkMediaBeamNote = ''\nexport const nrkMediaChromecast1 = ''\nexport const nrkMediaChromecast2 = ''\nexport const nrkMediaChromecast3 = ''\nexport const nrkMediaChromecastActive = ''\nexport const nrkMediaChromecast = ''\nexport const nrkMediaCompleted = ''\nexport const nrkMediaDirekteActive = ''\nexport const nrkMediaDirekteAnimatedActive = ''\nexport const nrkMediaDirekteGolive = ''\nexport const nrkMediaDirekteNotlive = ''\nexport const nrkMediaDirekte = ''\nexport const nrkMediaDirektetvActive = ''\nexport const nrkMediaDirektetv = ''\nexport const nrkMediaFfw15sec = ''\nexport const nrkMediaFfw30sec = ''\nexport const nrkMediaFfw = ''\nexport const nrkMediaIndexQuaverTiny = ''\nexport const nrkMediaJumpto = ''\nexport const nrkMediaMediaComplete = ''\nexport const nrkMediaMediaIncomplete = ''\nexport const nrkMediaNext = ''\nexport const nrkMediaNy = ''\nexport const nrkMediaPause = ''\nexport const nrkMediaPictureInPictureActive = ''\nexport const nrkMediaPictureInPicture = ''\nexport const nrkMediaPlayFail = ''\nexport const nrkMediaPlay = ''\nexport const nrkMediaPlaylistAddLater = ''\nexport const nrkMediaPlaylistAddNext = ''\nexport const nrkMediaPlaylistAdd = ''\nexport const nrkMediaPlaylistAdded = ''\nexport const nrkMediaPlaylistRemove = ''\nexport const nrkMediaPlaylist = ''\nexport const nrkMediaPrevious = ''\nexport const nrkMediaProgramguideActive = ''\nexport const nrkMediaProgramguide = ''\nexport const nrkMediaQuaverActive = ''\nexport const nrkMediaQuaverOff = ''\nexport const nrkMediaQuaver = ''\nexport const nrkMediaRwd15sec = ''\nexport const nrkMediaRwd30sec = ''\nexport const nrkMediaRwd = ''\nexport const nrkMediaSoundwave = ''\nexport const nrkMediaSpeed0_8x = ''\nexport const nrkMediaSpeed1_25x = ''\nexport const nrkMediaSpeed1_5x = ''\nexport const nrkMediaSpeed1x = ''\nexport const nrkMediaSpeed2x = ''\nexport const nrkMediaStop = ''\nexport const nrkMediaSubtitlesActive = ''\nexport const nrkMediaSubtitlesUnavailable = ''\nexport const nrkMediaSubtitles = ''\nexport const nrkMediaTheaterActive = ''\nexport const nrkMediaTheater = ''\nexport const nrkMediaTilgjengelighetGeoblocked = ''\nexport const nrkMediaTilgjengelighetIkkelengertilgjengelig = ''\nexport const nrkMediaTilgjengelighetKommer = ''\nexport const nrkMediaTilgjengelighetSnartutilgjengelig = ''\nexport const nrkMediaVolume1 = ''\nexport const nrkMediaVolume2 = ''\nexport const nrkMediaVolume3 = ''\nexport const nrkMediaVolumeMuted = ''\nexport const nrkMening = ''\nexport const nrkMinus = ''\nexport const nrkMoreActive = ''\nexport const nrkMore = ''\nexport const nrkNewChat = ''\nexport const nrkNote1Off = ''\nexport const nrkNote1 = ''\nexport const nrkNote2 = ''\nexport const nrkOffline = ''\nexport const nrkOpenInNew = ''\nexport const nrkPerson = ''\nexport const nrkPlus = ''\nexport const nrkPoll = ''\nexport const nrkProgress = ''\nexport const nrkQuiz = ''\nexport const nrkRefresh = ''\nexport const nrkReload = ''\nexport const nrkReorder = ''\nexport const nrkRotate = ''\nexport const nrkSearchActive = ''\nexport const nrkSearch = ''\nexport const nrkSettingsActive = ''\nexport const nrkSettings = ''\nexport const nrkSleep = ''\nexport const nrkSomeEmail = ''\nexport const nrkSomeEmbed = ''\nexport const nrkSomeFacebook = ''\nexport const nrkSomeGoogle = ''\nexport const nrkSomeInstagram = ''\nexport const nrkSomePinterest = ''\nexport const nrkSomeShareIos = ''\nexport const nrkSomeShare = ''\nexport const nrkSomeSnapchat = ''\nexport const nrkSomeTommelnedActive = ''\nexport const nrkSomeTommelned = ''\nexport const nrkSomeTommeloppActive = ''\nexport const nrkSomeTommelopp = ''\nexport const nrkSomeTwitter = ''\nexport const nrkSomeYoutube = ''\nexport const nrkSpinner = ''\nexport const nrkStarActive = ''\nexport const nrkStar = ''\nexport const nrkSuperEmojiPoopAngry = ''\nexport const nrkTilgjengelighetHorbarhet = ''\nexport const nrkTilgjengelighetLydtekst = ''\nexport const nrkTilgjengelighetSynstolking = ''\nexport const nrkTilgjengelighetTegnspraak = ''\nexport const nrkTilgjengelighet = ''\nexport const nrkTrashActive = ''\nexport const nrkTrash = ''\nexport const nrkUnlockActive = ''\nexport const nrkUnlock = ''\nexport const nrkUpload = ''\nexport const nrkUserLoggedinActive = ''\nexport const nrkUserLoggedin = ''\nexport const nrkUserNotloggedinActive = ''\nexport const nrkUserNotloggedin = ''\nexport const nrkWarning = ''","// extracted by mini-css-extract-plugin\nexport default {\"tilpasset-bilde\":\"dhtb__tilpasset-bilde--A3Nf_\",\"tilpassetBilde\":\"dhtb__tilpasset-bilde--A3Nf_\",\"img\":\"dhtb__img--YLLyL\",\"fullskjerm-dialog\":\"dhtb__fullskjerm-dialog--a4kYo\",\"fullskjermDialog\":\"dhtb__fullskjerm-dialog--a4kYo\",\"credit-vertical\":\"dhtb__credit-vertical--NIiV0\",\"creditVertical\":\"dhtb__credit-vertical--NIiV0\",\"credit-horizontal\":\"dhtb__credit-horizontal--kdtu2\",\"creditHorizontal\":\"dhtb__credit-horizontal--kdtu2\"};","import { nrkFullscreenActive } from '@nrk/core-icons'\nimport s from './tilpasset-bilde.module.css'\n\nconst MARKUP_CLOSE_BUTTON = `
`\n\nexport default class TilpassetBilde extends HTMLElement {\n #dialogElement\n #showDialogButton\n connectedCallback() {\n if (this.#isFeatureFullWidth() || this.#isFeatureCover() || this.#isDhFullWidth()) {\n for (const source of this.sources) {\n source.setAttribute('sizes', '100vw')\n }\n this.image.setAttribute('sizes', '100vw')\n }\n\n if (\n this.#isFeatureCover() &&\n typeof HTMLDialogElement === 'function' &&\n this.querySelector('figcaption')\n ) {\n this.#dialogElement = document.createElement('dialog')\n this.#dialogElement.setAttribute('class', s.fullskjermDialog)\n this.#dialogElement.setAttribute('aria-label', 'Fullskjermsvisning av bilde')\n this.#dialogElement.insertAdjacentHTML('afterbegin', MARKUP_CLOSE_BUTTON)\n this.#dialogElement.appendChild(this.querySelector('figure').cloneNode(true))\n\n this.#showDialogButton = document.createElement('button')\n this.#showDialogButton.setAttribute('class', 'nrk-button')\n this.#showDialogButton.setAttribute('value', 'show-modal')\n this.#showDialogButton.innerText = '+ mer'\n this.#showDialogButton?.addEventListener('click', this.#showFullscreenDialog)\n\n this.after(this.#showDialogButton, this.#dialogElement)\n\n this.addEventListener('click', this.#showFullscreenDialog)\n this.#dialogElement.addEventListener('click', this.#closeFullscreenDialog)\n }\n }\n\n disconnectedCallback() {\n this.removeEventListener('click', this.#showFullscreenDialog)\n this.#dialogElement?.removeEventListener('click', this.#closeFullscreenDialog)\n this.#showDialogButton?.removeEventListener('click', this.#showFullscreenDialog)\n this.#dialogElement?.remove()\n this.#showDialogButton?.remove()\n }\n\n #showFullscreenDialog = () => {\n // Start eager loading of image\n this.#dialogElement.querySelector('img').loading = 'eager'\n this.#dialogElement.showModal()\n }\n\n #closeFullscreenDialog = () => {\n this.#dialogElement.close()\n }\n\n #isFeatureFullWidth() {\n return !!this.closest?.(\n '.article-feature :is(.remoterenderedcontent-reference,.inlinesanitycontent-reference).fc',\n )\n }\n\n #isFeatureCover() {\n return !!this.closest?.('.article-feature__cover')\n }\n\n #isDhFullWidth() {\n return !!this.closest?.('.dh-fullbredde')\n }\n\n get sources() {\n return this.querySelectorAll('source')\n }\n\n get image() {\n return this.querySelector('img')\n }\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"root\":\"dhtb__root--tuh_u\"};","import { getElementTag } from '@nrk/dh-server-libs/get-element-tag'\nimport TilpassetBilde from './components/tilpasset-bilde.js'\n\nimport './client.module.css'\nimport './components/tilpasset-bilde.module.css'\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 connectedCallback() {\n if (this.features.sanityIframePreview) {\n import('./preview/preview-iframe-api.ts' /* webpackChunkName: \"dh-preview-iframe\" */)\n }\n\n safeDefine('dh-tilpasset-bilde', TilpassetBilde)\n }\n\n get features() {\n return JSON.parse(this.getAttribute('features'))\n }\n}\n\nsafeDefine(tag, AppElement)\n"],"names":["installedChunks","installChunk","module","exports","getElementTag","name","version","split","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call","m","f","e","chunkId","Promise","all","Object","keys","reduce","promises","key","u","miniCssF","o","obj","prop","prototype","hasOwnProperty","r","Symbol","toStringTag","defineProperty","value","p","document","loadStylesheet","resolve","reject","href","fullhref","existingLinkTags","getElementsByTagName","i","length","dataHref","tag","getAttribute","rel","existingStyleTags","findStylesheet","oldTag","linkTag","createElement","type","onerror","onload","event","errorType","realHref","target","err","Error","code","request","parentNode","removeChild","insertBefore","nextSibling","head","appendChild","createStylesheet","installedCssChunks","miniCss","push","then","data","ids","modules","runtime","j","installedChunkData","promise","import","race","_dialogElement","_classPrivateFieldLooseKey","_showDialogButton","_showFullscreenDialog","_closeFullscreenDialog","_isFeatureFullWidth","_isFeatureCover","_isDhFullWidth","TilpassetBilde","HTMLElement","constructor","args","_isDhFullWidth2","_isFeatureCover2","_isFeatureFullWidth2","writable","_classPrivateFieldLooseBase","this","querySelector","loading","showModal","close","connectedCallback","source","sources","setAttribute","image","_classPrivateFieldLoo","HTMLDialogElement","s","insertAdjacentHTML","cloneNode","innerText","addEventListener","after","disconnectedCallback","_classPrivateFieldLoo2","_classPrivateFieldLoo3","_classPrivateFieldLoo4","_classPrivateFieldLoo5","removeEventListener","remove","querySelectorAll","_this$closest","closest","_this$closest2","_this$closest3","__APP_NAME__","__APP_VERSION__","safeDefine","elementName","customElements","get","define","AppElement","features","sanityIframePreview","JSON","parse"],"sourceRoot":""}