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,OAAOkI,eAET,iCAEJ,CAEA9G,eACwB,YAAlBhC,KAAK+I,eACD,mDACqB,aAAlB/I,KAAK+I,gBACR,mDAGR,MAAQhI,QAASiI,SAAqB,kCACjCC,eAAejE,IAAI,gBACtBiE,eAAeC,OAAO,cAAeF,EAEzC,CAEAhH,8BACwBhC,KAAKS,sBACnB,aAAc,CACpB0I,WAAW,GAEf,CAmCAnH,mBAAmBoH,UACKpJ,KAAKS,sBACnB,WAAY,CAClB2I,OACAC,WAAY,wBACZ7H,GAAI,CACFW,cAAgB,YAAWnC,KAAKK,SAGtC,CAEI4H,gBACF,OAAOjI,KAAKsJ,aAAa,YAC3B,CAEIrB,cAAUsB,GACRA,EACFvJ,KAAKwJ,aAAa,YAAa,QAE/BxJ,KAAKyJ,gBAAgB,YAEzB,CAEIC,cACF,OAAO1J,KAAK2J,aAAa,gBAC3B,CAEIZ,eACF,OAAO/I,KAAK2J,aAAa,iBAC3B,EAGF,MAAMC,UAA4BhK,EAAAA,YAAY,mCAC5CS,KAAO6G,EAAe,KAOtBG,oBAAuBnC,IACrBA,EAAEoC,iBACFtH,KAAKG,YAAY,CAAEoH,YAAa,iBAAkBC,WAAYtC,EAAEuC,OAAOC,WAAY,CACpF,CARDtH,oBACEL,MAAMK,oBACNJ,KAAK2I,iBAAiB,gCAAiC3I,KAAKqH,oBAC9D,CAOArF,eACEhC,KAAKG,YAAY,CAAEoH,YAAc,SAAQR,MAEzC,MAAM,kBAAE8C,SAA4B,oDAI/BZ,eAAejE,IAAI,6BACtBiE,eAAeC,OAAO,2BAA4BW,EAEtD,CAEIH,cACF,OAAO1J,KAAK2J,aAAa,gBAC3B,EAGGV,eAAejE,IAAI+B,IACtBkC,eAAeC,OAAOnC,EAAKI,GAGxB8B,eAAejE,IAAIkC,IACtB+B,eAAeC,OAAOhC,EAAiB0C,E","sources":["webpack://dh-sexguiden/webpack/runtime/create fake namespace object","webpack://dh-sexguiden/webpack/runtime/import chunk loading","webpack://dh-sexguiden/./node_modules/@nrk/dh-server-libs/base-element.js","webpack://dh-sexguiden/./node_modules/@nrk/dh-server-libs/get-element-tag.js","webpack://dh-sexguiden/./node_modules/@nrk/dh-server-libs/src/base-element.js","webpack://dh-sexguiden/./node_modules/@nrk/dh-server-libs/src/get-context-id.js","webpack://dh-sexguiden/./node_modules/@nrk/dh-server-libs/src/get-element-tag.js","webpack://dh-sexguiden/./src/components/common/stillingskort/stillingkort.module.css?2e41","webpack://dh-sexguiden/./src/components/main/sok/resultat/sokeresultat.module.css?4d32","webpack://dh-sexguiden/./src/components/stilling/poll/poll.module.css?115b","webpack://dh-sexguiden/webpack/bootstrap","webpack://dh-sexguiden/webpack/runtime/compat get default export","webpack://dh-sexguiden/webpack/runtime/define property getters","webpack://dh-sexguiden/webpack/runtime/ensure chunk","webpack://dh-sexguiden/webpack/runtime/get javascript chunk filename","webpack://dh-sexguiden/webpack/runtime/get mini-css chunk filename","webpack://dh-sexguiden/webpack/runtime/global","webpack://dh-sexguiden/webpack/runtime/hasOwnProperty shorthand","webpack://dh-sexguiden/webpack/runtime/make namespace object","webpack://dh-sexguiden/webpack/runtime/publicPath","webpack://dh-sexguiden/./src/components/common/header/header-navigation.module.css?85f3","webpack://dh-sexguiden/./src/client.js"],"sourcesContent":["var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 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} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no external install chunk\n\n// no on chunks loaded","module.exports = require('./src/base-element.js')\n","module.exports = require('./src/get-element-tag')\n","const { getContextId } = require('./get-context-id')\n\nlet _coreAnalyticsPromise = undefined\nfunction getCoreAnalytics() {\n if (!_coreAnalyticsPromise) {\n if ('coreAnalytics' in window) {\n _coreAnalyticsPromise = Promise.resolve(window['coreAnalytics'])\n } else {\n _coreAnalyticsPromise = import('@nrk/core-analytics' /* webpackChunkName: \"ca\" */).then(\n (m) => m.default\n )\n }\n }\n return _coreAnalyticsPromise\n}\n\nclass BaseElement extends HTMLElement {\n constructor() {\n super()\n this.sendError = this.sendError.bind(this)\n this.sendGaEvent = this.sendGaEvent.bind(this)\n }\n connectedCallback() {\n if (!this.name) throw Error('Name not provided')\n this.setupTracker()\n if (typeof this.render === 'function') this.render()\n }\n\n setupTracker() {\n this.coreAnalyticsTracker = new Promise((resolve) => {\n getCoreAnalytics().then((coreAnalytics) => {\n const tracker = coreAnalytics.create()\n\n tracker('initialize', {\n container: this,\n parentId: this.metadata.parentId || getContextId(window.location.href),\n ga: this.dataset.gaPropertyId,\n })\n\n tracker('context', {\n title: this.metadata.title,\n contentId: this.metadata.selfId,\n publishDate: this.metadata.published,\n })\n\n resolve(tracker)\n })\n })\n }\n\n async sendError(message) {\n // error reporter has been removed\n }\n\n async sendGaEvent(event) {\n const tracker = await this.coreAnalyticsTracker\n tracker('event', {\n ga: {\n eventCategory: `dh-modul-${this.name}`,\n ...event,\n },\n })\n }\n\n get metadata() {\n return this.dataset.metadata ? JSON.parse(this.dataset.metadata) : {}\n }\n\n get preloadedState() {\n return this.dataset.preloadedState ? JSON.parse(this.dataset.preloadedState) : null\n }\n\n get errorTracking() {\n return {\n url: '',\n enabled: false,\n }\n }\n}\n\nmodule.exports.BaseElement = BaseElement\n","const POLOPOLY_ID_REGEX = /[1-9]{1,2}\\.\\d+/g\n\nfunction extractPolopolyIdFromString(str) {\n const matches = str.match(POLOPOLY_ID_REGEX)\n if (matches && matches.length) {\n return matches[0]\n }\n return null\n}\n\nfunction getContextId(url) {\n return extractPolopolyIdFromString(url)\n}\n\nmodule.exports.getContextId = getContextId\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","// extracted by mini-css-extract-plugin\nexport default {\"stilling\":\"dhsgM1GJd-stilling\",\"fadeIn\":\"dhsggCSrH-fadeIn\",\"stilling__content\":\"dhsgLHusY-stilling__content\",\"stillingContent\":\"dhsgLHusY-stilling__content\"};","// extracted by mini-css-extract-plugin\nexport default {\"sokeresultat\":\"dhsgMYmk4-sokeresultat\",\"beskrivelse\":\"dhsgR5hM0-beskrivelse\",\"antall\":\"dhsgSntwj-antall\",\"henter\":\"dhsgNR5Zd-henter\"};","// extracted by mini-css-extract-plugin\nexport default {\"poll\":\"dhsgPJpJY-poll\",\"label\":\"dhsgnFHA4-label\",\"question\":\"dhsgYyrHO-question\",\"total\":\"dhsgs_EGq-total\",\"result\":\"dhsgDgzE1-result\",\"other\":\"dhsgMt8Qs-other\"};","// 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// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\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 \"\" + ({\"46\":\"widget-libs\",\"537\":\"ca\",\"785\":\"forside-libs\",\"861\":\"dh-sg-sanity-preview\",\"890\":\"stilling-libs\"}[chunkId] || chunkId) + \"-chunk-\" + {\"1\":\"a5490f016528bcd55339\",\"46\":\"f5198c06c11368281841\",\"537\":\"08c99b27bb3284537cdc\",\"649\":\"088624e14ff9c69a5a64\",\"706\":\"e5e719ba0065e0a2c965\",\"747\":\"0afc101d7f3baad1d9e0\",\"785\":\"154dad7d44f9400a62fd\",\"861\":\"6a87112b86998353a29c\",\"890\":\"8c6dcc00710683089a96\"}[chunkId] + \".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 undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\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/sexguiden/static/\";","// extracted by mini-css-extract-plugin\nexport default {\"navigation\":\"dhsghhmmV-navigation\",\"nrkLink\":\"dhsgHrnYC-nrkLink\",\"divider\":\"dhsgvNg9U-divider\",\"sexguidenlink\":\"dhsgvZsx7-sexguidenlink\",\"dialogArea\":\"dhsgKEo8g-dialogArea\",\"content\":\"dhsgyuE3R-content\",\"footer\":\"dhsgxpuu5-footer\",\"topButton\":\"dhsgEEFcV-topButton\",\"hideBacklink\":\"dhsgQvo4b-hideBacklink\"};","import { BaseElement } from '@nrk/dh-server-libs/base-element'\nimport { getElementTag } from '@nrk/dh-server-libs/get-element-tag'\n\nimport '@nrk/core-fonts/core-fonts.css'\nimport './components/var.css'\nimport './components/main/main.module.css'\nimport './components/main/title/title.module.css'\nimport './components/main/title/title-container.module.css'\nimport './components/main/sok/sok.module.css'\nimport './components/main/sok/emneknagger/emneknagger.module.css'\nimport './components/main/sok/emneknagger/emneknagg.module.css'\nimport './components/main/sok/resultat/sokeresultat.module.css'\nimport './components/common/stillingskort/stillingkort.module.css'\nimport './components/common/plugg/plugg.module.css'\nimport './components/common/background/background.module.css'\nimport './components/common/parallax/parallax.module.css'\nimport './components/stilling/stilling-page.module.css'\nimport './components/stilling/bildesveip.module.css'\nimport './components/stilling/anbefalinger/anbefalinger.module.css'\nimport './components/stilling/plugger/plugger.module.css'\nimport './components/stilling/emneknagger/emneknagger.module.css'\nimport './components/stilling/poll/poll.module.css'\nimport './components/common/header/header-navigation.module.css'\nimport './components/common/footer/footer.module.css'\nimport './components/spesialmoduler/stillinger/enkel/stilling-spesialmodul.module.css'\nimport './components/spesialmoduler/stillinger/liste/liste-spesialmodul.module.css'\n\nconst tag = getElementTag(__APP_NAME__, __APP_VERSION__)\nconst tagSpesialmodul = getElementTag(`${__APP_NAME__}-spesialmodul`, __APP_VERSION__)\n\nclass AppElement extends BaseElement {\n name = tag\n timer\n\n connectedCallback() {\n super.connectedCallback()\n this.sendPageView(location.pathname)\n this.addEventListener('dialog.toggle', this.handleDialogToggle)\n this.addEventListener('dh-basis-sveip-active-changed', this.handleActiveChanged)\n\n document.body.addEventListener('scroll', this.showScrollingAttribute)\n window.addEventListener('scroll', this.showScrollingAttribute)\n\n this.setupHappyPing()\n\n if (window.sanityPreview) {\n // eslint-disable-next-line promise/catch-or-return\n import('./sanity-preview.js' /* webpackChunkName: \"dh-sg-sanity-preview\" */)\n }\n }\n\n async render() {\n if (this.pageType === 'forside') {\n await import('./client-forside-libs' /* webpackChunkName: \"forside-libs\" */)\n } else if (this.pageType === 'stilling') {\n await import('./client-stilling-libs' /* webpackChunkName: \"stilling-libs\" */)\n }\n\n const { default: CoreDialog } = await import('@nrk/core-dialog')\n if (!customElements.get('core-dialog')) {\n customElements.define('core-dialog', CoreDialog)\n }\n }\n\n async setupHappyPing() {\n const tracker = await this.coreAnalyticsTracker\n tracker('time-spent', {\n touchMove: true,\n })\n }\n handleActiveChanged = (e) => {\n e.preventDefault()\n this.sendGaEvent({ eventAction: 'ACTIVE-CHANGED', eventLabel: e.detail.nextIndex })\n }\n\n handleDialogToggle = (event) => {\n if (event.target.id === 'info-dialog') {\n const eventAction = event.target.hidden ? `CLOSE-INFO-DIALOG` : `OPEN-INFO-DIALOG`\n this.sendGaEvent({ eventAction })\n }\n }\n\n showScrollingAttribute = () => {\n clearTimeout(this.timer)\n if (!this.scrolling) {\n this.scrolling = true\n }\n\n this.timer = setTimeout(() => {\n this.scrolling = false\n }, 500)\n }\n\n sendSyntheticMouseMoveEvent = () => {\n let event\n if (typeof Event === 'function') {\n event = new Event('mousemove')\n } else {\n event = document.createEvent('Event')\n event.initEvent('mousemove', true, true)\n }\n document.dispatchEvent(event)\n }\n\n async sendPageView(page) {\n const tracker = await this.coreAnalyticsTracker\n tracker('pageview', {\n page,\n tnsSection: 'nrk/spesial/sexguiden',\n ga: {\n eventCategory: `dh-modul-${this.name}`,\n },\n })\n }\n\n get scrolling() {\n return this.hasAttribute('scrolling')\n }\n\n set scrolling(val) {\n if (val) {\n this.setAttribute('scrolling', 'true')\n } else {\n this.removeAttribute('scrolling')\n }\n }\n\n get baseUrl() {\n return this.getAttribute('data-base-url')\n }\n\n get pageType() {\n return this.getAttribute('data-page-type')\n }\n}\n\nclass SpesialmodulElement extends BaseElement {\n name = tagSpesialmodul\n\n connectedCallback() {\n super.connectedCallback()\n this.addEventListener('dh-basis-sveip-active-changed', this.handleActiveChanged)\n }\n\n handleActiveChanged = (e) => {\n e.preventDefault()\n this.sendGaEvent({ eventAction: 'ACTIVE-CHANGED', eventLabel: e.detail.nextIndex })\n }\n\n async render() {\n this.sendGaEvent({ eventAction: `MOUNT:${tag}` })\n\n const { SpesialmodulSveip } = await import(\n './client-spesialmodul-libs' /* webpackChunkName: \"widget-libs\" */\n )\n\n if (!customElements.get('dh-sg-spesialmodul-sveip')) {\n customElements.define('dh-sg-spesialmodul-sveip', SpesialmodulSveip)\n }\n }\n\n get baseUrl() {\n return this.getAttribute('data-base-url')\n }\n}\n\nif (!customElements.get(tag)) {\n customElements.define(tag, AppElement)\n}\n\nif (!customElements.get(tagSpesialmodul)) {\n customElements.define(tagSpesialmodul, SpesialmodulElement)\n}\n"],"names":["leafPrototypes","getProto","installedChunks","installChunk","module","exports","getContextId","_coreAnalyticsPromise","BaseElement","HTMLElement","constructor","super","this","sendError","bind","sendGaEvent","connectedCallback","name","Error","setupTracker","render","coreAnalyticsTracker","Promise","resolve","window","then","m","default","coreAnalytics","tracker","create","container","parentId","metadata","location","href","ga","dataset","gaPropertyId","title","contentId","selfId","publishDate","published","async","message","event","eventCategory","JSON","parse","preloadedState","errorTracking","url","enabled","POLOPOLY_ID_REGEX","str","matches","match","length","extractPolopolyIdFromString","getElementTag","version","split","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","Object","getPrototypeOf","obj","t","value","mode","ns","r","def","current","indexOf","getOwnPropertyNames","forEach","key","definition","o","defineProperty","enumerable","get","f","e","chunkId","all","keys","reduce","promises","u","miniCssF","g","globalThis","Function","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","p","data","ids","modules","runtime","i","j","installedChunkData","push","promise","import","race","tag","__APP_NAME__","__APP_VERSION__","tagSpesialmodul","AppElement","timer","handleActiveChanged","preventDefault","eventAction","eventLabel","detail","nextIndex","handleDialogToggle","target","id","hidden","showScrollingAttribute","clearTimeout","scrolling","setTimeout","sendSyntheticMouseMoveEvent","Event","document","createEvent","initEvent","dispatchEvent","sendPageView","pathname","addEventListener","body","setupHappyPing","sanityPreview","pageType","CoreDialog","customElements","define","touchMove","page","tnsSection","hasAttribute","val","setAttribute","removeAttribute","baseUrl","getAttribute","SpesialmodulElement","SpesialmodulSveip"],"sourceRoot":""}