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,EAAW,GAGf,OAAIA,EAASC,OACNT,EAAaG,GAAQO,QAAQC,IAAIH,GAAUI,MAAK,IAAOZ,EAAaG,GAAQ,IADvDH,EAAaG,GAAQ,CA7BL,CA8B0C,C,KCnCvF,IAAIU,EAAsB9B,EAAoB,O","sources":["webpack://skagenfondene.no/./src/Block/topTenInvestmentsBlock.js","webpack://skagenfondene.no/webpack/bootstrap","webpack://skagenfondene.no/webpack/runtime/hasOwnProperty shorthand","webpack://skagenfondene.no/webpack/runtime/sharing","webpack://skagenfondene.no/webpack/startup"],"sourcesContent":["\"use strict\";\nfunction holdingNameIsTooLong(holdingNameElement) {\n var textBounds = holdingNameElement.getBoundingClientRect();\n var parent = holdingNameElement.closest('[data-holdings-container]');\n var sibling = parent.querySelector('[data-holdings-number]');\n var siblingBounds = sibling.getBoundingClientRect();\n // Check if text flows over onto the sibling\n return textBounds.bottom > siblingBounds.top;\n}\nfunction reduceFontSize(el) {\n var currentFontSize = parseFloat(getComputedStyle(el).fontSize);\n el.style.fontSize = (currentFontSize - 0.5) + 'px';\n}\nfunction adjustHoldingNameSizesIfTooLarge() {\n var holdingNames = document.querySelectorAll('[data-holdings-name]');\n holdingNames.forEach(function (el) {\n var retries = 0;\n while (holdingNameIsTooLong(el) && retries < 20) {\n reduceFontSize(el);\n retries++;\n }\n });\n}\nadjustHoldingNameSizesIfTooLarge();\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// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => (typeof console !== \"undefined\" && console.warn && console.warn(msg));\n\tvar uniqueName = \"skagenfondene.no\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(97185);\n"],"names":["reduceFontSize","el","currentFontSize","parseFloat","getComputedStyle","fontSize","style","document","querySelectorAll","forEach","holdingNameElement","textBounds","siblingBounds","retries","getBoundingClientRect","closest","querySelector","bottom","top","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","c","o","obj","prop","Object","prototype","hasOwnProperty","call","S","initPromises","initTokens","I","name","initScope","initToken","indexOf","push","promises","length","Promise","all","then","__webpack_exports__"],"sourceRoot":""}