Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@schibsted/data-controller

Package Overview
Dependencies
Maintainers
8
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schibsted/data-controller - npm Package Compare versions

Comparing version 3.1.2 to 3.2.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [3.2.0](https://github.schibsted.io/smp-distribution/data-controller-sdk/compare/v3.1.2...v3.2.0) (2020-11-10)
### Features
* Adding Finnish localisation ([bff36ef](https://github.schibsted.io/smp-distribution/data-controller-sdk/commit/bff36ef11c6433c208d5e6a9b1153e24c325feb4))
## [3.1.2](https://github.schibsted.io/smp-distribution/data-controller-sdk/compare/v3.1.1...v3.1.2) (2020-09-15)

@@ -2,0 +9,0 @@

2

dist/data-controller-sdk.cjs.js

@@ -1,2 +0,2 @@

"use strict";function a(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}function t(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}Object.defineProperty(exports,"__esModule",{value:!0});function e(){var a=localStorage.getItem("sch-data-controller");if(a)try{return JSON.parse(a,(function(a,t){return"lastViewed"===a||"lastCobranding"===a?new Date(t):t}))}catch(a){return}}function n(a){localStorage.setItem("sch-data-controller",JSON.stringify(a))}function r(a,t,e){if(t>a)return!1;var n=Math.floor((Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())-Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))/864e5);return!(n<e)&&(n>1||a.getHours()>=6)}var c=[/\bHermes\b/i,/(ios|android).*(aftonbladet|vg|rnd|bt|fvn|aftenposten|svd)/i];function l(a){return c.some((function(t){return a.match(t)}))||null!=window.hermesJwe}var o=function(a){return'<span class="sch-datacontroller--optional-mobile">'.concat(a,"</span>")},s={no:{text:"".concat(o("[BRAND] er en del av Schibsted.")," Schibsted er ansvarlig for dine data på denne siden."),shortText:"[BRAND] er en del av ",link:"Les mer her",url:"https://info.privacy.schibsted.com/no/schibsted-norge-personvernerklaering/"},sv:{text:"".concat(o("[BRAND] är en del av Schibsted.")," Schibsted är ansvarig för dina data på denna sida."),shortText:"[BRAND] är en del av ",link:"Läs mer här",url:"https://info.privacy.schibsted.com/se/schibsted-sverige-personuppgiftspolicy/"},en_SE:{text:"".concat(o("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/your-privacy-controls-schibsted-sverige-english/"},en_NO:{text:"".concat(o("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/your-privacy-controls-schibsted-norge-english/"}},i=function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="sch-datacontroller__logo".concat(a?" sch-datacontroller__logo--inline":" sch-datacontroller--optional-mobile");return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 103 19" class="'.concat(t,'">\n <title>Schibsted</title>\n <rect width="103" height="19" fill="#fff"/>\n <path d="M10.609 9.222c.17 0 .312.087.413.213.154.194.253.4.324.544.677 1.362.831 3.009.33 4.49-.804 2.371-2.994 4.128-5.63 4.128-3.18 0-5.214-2.144-5.851-4.19a.101.101 0 01.068-.126l2.887-.884a.101.101 0 01.127.066c.138.442.86 1.929 2.802 1.929 1.466 0 2.678-1.251 2.678-2.794 0-.654-.097-1.08-.294-1.516a.76.76 0 01-.078-.283.44.44 0 01.446-.46.44.44 0 01.36.182c.02.027.058.084.076.113.015.023.043.038.069.022.025-.015.024-.043.01-.072l-.05-.105a.49.49 0 01.436-.711.49.49 0 01.407.233l.095.153c.015.025.042.039.07.023.025-.013.025-.041.011-.07l-.085-.17a.554.554 0 01-.07-.253c0-.269.182-.462.449-.462zm9.01-2.885c2.916 0 4.666 1.66 5.306 3.448a.1.1 0 01-.028.107l-.034.02-2.63.903a.1.1 0 01-.125-.055c-.358-.813-1.084-1.538-2.419-1.538-1.602 0-2.945 1.149-2.945 3.236s1.366 3.26 2.969 3.26c1.544 0 2.344-.98 2.632-1.848a.103.103 0 01.09-.07l.04.004 2.567.851a.1.1 0 01.065.123c-.55 1.893-2.356 3.8-5.394 3.8-3.417 0-6.104-2.58-6.104-6.12 0-3.565 2.64-6.12 6.01-6.12zm44.256 0c2.75 0 3.977 1.45 4.391 2.653a.099.099 0 01-.027.104l-.032.02-2.335.9a.1.1 0 01-.132-.061c-.186-.61-.71-1.247-1.841-1.247-.825 0-1.485.492-1.485 1.149 0 .52.362.83.918.968l.143.03 1.65.352c2.285.47 3.44 1.886 3.44 3.575 0 1.875-1.461 3.798-4.501 3.798-3.409 0-4.634-2.15-4.82-3.474a.098.098 0 01.044-.095l.034-.015 2.488-.542a.099.099 0 01.12.083c.114.872.797 1.652 2.11 1.652 1.037 0 1.532-.54 1.532-1.15 0-.481-.308-.842-1.077-1.04l-.172-.04-1.532-.352c-2.238-.492-3.252-1.874-3.252-3.492 0-2.064 1.838-3.776 4.336-3.776zm19.976 0c3.582 0 5.727 2.275 5.727 5.98 0 .345-.028.703-.041.87a.1.1 0 01-.063.085l-.037.007h-8.201c.07 1.524 1.366 2.626 2.922 2.626 1.144 0 1.883-.446 2.331-1.135a.102.102 0 01.09-.046l.035.008 2.35 1.016a.1.1 0 01.049.139c-.833 1.537-2.505 2.692-4.879 2.692-3.181 0-5.986-2.275-5.986-6.168 0-3.682 2.734-6.074 5.703-6.074zM102.9 1.248a.1.1 0 01.093.061l.008.04v16.778a.1.1 0 01-.061.092l-.04.008h-2.84a.1.1 0 01-.093-.061l-.008-.039-.006-1.237c-.518.915-1.697 1.618-3.252 1.618-3.3 0-5.656-2.58-5.656-6.074 0-3.377 2.286-6.026 5.562-6.026 1.916 0 2.862.75 3.229 1.35l.046.08v-6.49a.1.1 0 01.062-.092l.039-.008h2.917zm-53.91 0a.1.1 0 01.092.061l.008.04v6.606c.518-.82 1.79-1.57 3.511-1.57 3.393 0 5.35 2.602 5.35 6.026 0 3.494-2.169 6.097-5.468 6.097-1.518 0-2.698-.631-3.339-1.535l-.101-.153v1.307a.1.1 0 01-.062.092l-.039.008h-2.839a.1.1 0 01-.092-.061l-.008-.04V1.349a.1.1 0 01.061-.092l.04-.008h2.885zm25.414 1.994a.1.1 0 01.093.06l.008.04v3.347h2.232a.1.1 0 01.093.061l.008.039v2.567a.1.1 0 01-.062.092l-.04.008h-2.231v4.831c0 1.008.47 1.337 1.366 1.337.307 0 .644-.031.848-.068a.1.1 0 01.112.064l.007.035v2.385c0 .043-.027.08-.067.096-.3.114-.849.255-1.7.255-2.19 0-3.585-1.252-3.673-3.352l-.004-.213v-5.37h-1.997a.1.1 0 01-.093-.061l-.007-.039V6.789a.1.1 0 01.061-.092l.04-.008H71.4l.004-3.347a.1.1 0 01.062-.093l.039-.007h2.898zM43.202 6.689a.1.1 0 01.093.061l.008.039v11.338a.1.1 0 01-.062.092l-.039.008h-2.933a.1.1 0 01-.093-.061l-.008-.04V6.79a.1.1 0 01.062-.092l.039-.008h2.933zm-13.28-5.44a.1.1 0 01.093.06l.008.04V7.65c.754-.89 2.027-1.266 3.135-1.266 2.861 0 4.233 1.925 4.309 4.357l.003.216v7.17a.1.1 0 01-.061.092l-.04.008h-2.933a.1.1 0 01-.092-.061l-.008-.04v-6.63c0-1.29-.637-2.345-2.145-2.346-1.373 0-2.116.93-2.165 2.14l-.003.16v6.677a.1.1 0 01-.061.092l-.04.008H26.99a.1.1 0 01-.093-.061l-.008-.04V1.349a.1.1 0 01.062-.092l.039-.008h2.933zM51.94 9.15c-1.579 0-2.924 1.173-2.924 3.283 0 2.087 1.345 3.308 2.924 3.308 1.603 0 2.875-1.197 2.875-3.308 0-2.11-1.272-3.283-2.875-3.283zm45.137.023c-1.602 0-2.875 1.197-2.875 3.26 0 2.064 1.226 3.308 2.875 3.308 1.603 0 2.888-1.244 2.888-3.331 0-2.064-1.285-3.237-2.888-3.237zM5.985 11.41a.28.28 0 110 .557.28.28 0 110-.557zm-1.125-.17h.065c.068.008.144.032.209.055a.308.308 0 01.168.142c.074.136.03.31-.098.397a.345.345 0 01-.22.048.911.911 0 01-.163-.03c-.171-.047-.277-.21-.233-.382a.313.313 0 01.337-.23zm-1.378-.587l.081.012c.088.023.173.073.253.114l.219.11a.35.35 0 01.187.247.351.351 0 01-.366.409 1.023 1.023 0 01-.289-.071 1.326 1.326 0 01-.244-.122c-.236-.147-.28-.464-.071-.625a.36.36 0 01.311-.062zM83.899 8.87c-1.559 0-2.446 1.12-2.58 2.142l-.013.133h5.185c-.047-1.15-.802-2.275-2.592-2.275zM5.985 10.215a.28.28 0 110 .557.28.28 0 110-.557zm-3.962-.667c.12.004.207.067.287.148.088.09.18.171.274.255.076.066.138.114.207.187a.358.358 0 01.073.373.361.361 0 01-.268.222.464.464 0 01-.33-.07 1.832 1.832 0 01-.276-.208 2.171 2.171 0 01-.258-.266.396.396 0 01-.052-.44.372.372 0 01.343-.201zm2.58.386l.078.005c.058.011.13.04.194.063l.209.075c.088.031.152.063.2.135.12.179.021.43-.189.479a.636.636 0 01-.289-.014 1.673 1.673 0 01-.275-.096c-.257-.11-.317-.384-.138-.556a.33.33 0 01.288-.086zm2.263-.795c.097-.04.198-.027.305.003.143.04.198.068.314.122.182.083.333.177.498.29.07.049.151.115.21.176.145.15.143.38-.005.511-.132.116-.318.099-.465-.006a5.933 5.933 0 00-.35-.232 3.98 3.98 0 00-.433-.23c-.114-.056-.222-.108-.259-.24a.32.32 0 01.185-.394zm-3.873-.241l.078.002c.121.017.196.097.284.17.136.115.237.194.382.3.097.069.179.122.241.228a.341.341 0 01-.028.395.356.356 0 01-.358.114.81.81 0 01-.21-.081 2.453 2.453 0 01-.607-.462c-.12-.122-.168-.31-.09-.462a.38.38 0 01.386-.202zM8.3 8.48l.08.01a.81.81 0 01.209.081c.206.105.419.27.607.462.12.122.168.31.09.463a.38.38 0 01-.386.201c-.121-.016-.196-.096-.284-.17a6.056 6.056 0 00-.382-.299c-.096-.07-.179-.123-.241-.229a.341.341 0 01.029-.395.356.356 0 01.358-.114zm-2.314.54a.28.28 0 110 .557.28.28 0 110-.557zm-2.202-.664c.131-.116.317-.099.464.006.124.088.228.157.35.232.157.096.249.143.433.23.115.056.222.108.26.24a.32.32 0 01-.186.394c-.096.04-.198.027-.304-.003-.144-.04-.198-.068-.315-.122a3.196 3.196 0 01-.498-.29 1.482 1.482 0 01-.21-.176c-.145-.15-.143-.38.006-.511zM5.924 0c3.181 0 5.215 2.144 5.852 4.19a.101.101 0 01-.068.126L8.821 5.2a.101.101 0 01-.127-.066 2.873 2.873 0 00-2.802-1.928c-1.465 0-2.678 1.25-2.678 2.793 0 .654.097 1.08.294 1.516a.76.76 0 01.078.284.44.44 0 01-.445.46.44.44 0 01-.385-.218l-.052-.077c-.015-.024-.043-.038-.069-.023-.024.015-.024.044-.01.072l.05.105a.49.49 0 01-.436.711.49.49 0 01-.406-.233l-.096-.153c-.015-.025-.042-.039-.07-.023-.024.013-.025.042-.01.07.02.043.062.127.084.17.04.077.071.16.071.253 0 .269-.182.462-.45.462a.525.525 0 01-.412-.213c-.155-.194-.254-.4-.325-.544-.677-1.362-.83-3.009-.33-4.49C1.1 1.759 3.29 0 5.926 0zm3.45 7.864a.464.464 0 01.331.071c.114.07.18.123.276.207.09.079.174.164.258.267.109.133.123.299.052.439a.372.372 0 01-.343.201c-.12-.004-.207-.066-.286-.147a5.183 5.183 0 00-.275-.256c-.075-.066-.138-.114-.207-.187a.358.358 0 01-.073-.373.361.361 0 01.268-.222zm-2.498.042a.636.636 0 01.289.015c.121.03.191.06.276.095.256.11.316.385.138.556a.33.33 0 01-.29.086c-.057-.011-.13-.04-.192-.063l-.21-.075c-.088-.03-.152-.062-.2-.135a.316.316 0 01.189-.479zm-.89-.081a.28.28 0 110 .558.28.28 0 110-.558zm2.13-.773c.094.007.19.034.288.071.09.034.162.072.244.123.236.146.28.463.071.624a.36.36 0 01-.311.063c-.088-.024-.172-.074-.253-.115a32.94 32.94 0 00-.077-.038l-.141-.071a.35.35 0 01-.188-.248.351.351 0 01.366-.409zm-1.129-.337a.911.911 0 01.163.03c.171.047.277.21.233.382a.313.313 0 01-.336.23 1.02 1.02 0 01-.21-.054.308.308 0 01-.168-.143.306.306 0 01.098-.397.345.345 0 01.22-.048zM5.986 6.63a.28.28 0 110 .558.28.28 0 110-.558zM41.739.967c.963.007 1.778.751 1.901 1.702.147 1.136-.748 2.144-1.916 2.144-1.06 0-1.933-.868-1.933-1.9 0-1.083.88-1.954 1.948-1.946z" fill="#000" fill-rule="evenodd"/>\n </svg>')},d=function(a){var t=a.brand,e=a.texts,n=a.closeButton,r=a.modifier,c=e.text.replace("[BRAND]",t),l=["sch-datacontroller","sch-datacontroller--cobranded"];return r&&l.push("sch-datacontroller--".concat(r)),'<div class="'.concat(l.join(" "),'">\n <div class="sch-datacontroller__wrapper">\n <div class="sch-datacontroller__content">\n ').concat(i(),'\n <span class="sch-datacontroller__text">\n ').concat(c,' <a class="sch-datacontroller__read-more" href="').concat(e.url,'">').concat(e.link,"</a>\n </span>\n </div>\n ").concat(n?'<button class="sch-datacontroller__btn-close sch-datacontroller__btn"type="button">'.concat('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="sch-datacontroller__btn-close-icon">\n <path d="M9.06 8l1.47 1.47a.75.75 0 01-1.06 1.06L7.999 9.06l-1.473 1.47a.75.75 0 01-1.06-1.06l1.472-1.471L5.47 6.53a.75.75 0 011.06-1.06L8 6.939l1.47-1.47a.75.75 0 011.06 1.062L9.06 7.999zM8 15A7 7 0 118 1a7 7 0 010 14zm0-1.5a5.5 5.5 0 100-11 5.5 5.5 0 000 11z"/>\n</svg>',"</button>"):"","\n </div>\n</div>")};function h(a){var t=document.createElement("div");return t.innerHTML=a,t.children[0]}function u(a,t,e){var c,l=new Date;if(!e||r(l,e.lastViewed,1)){var o,u,v,p=!e||r(l,e.lastCobranding,7),b={brand:t.brandName,texts:s[t.language],modifier:t.layout},f=p?d(b):(u=(o=b).brand,v=o.texts.shortText.replace("[BRAND]",u),'<div class="sch-datacontroller sch-datacontroller--subheader sch-datacontroller--minimal">\n <div class="sch-datacontroller__wrapper">\n <div class="sch-datacontroller__content">\n <span class="sch-datacontroller__text sch-datacontroller__text--inline">\n '.concat(v," ").concat(i(!0),"\n </span>\n </div>\n </div>\n</div>")),m=null!==(c=null==e?void 0:e.lastCobranding)&&void 0!==c?c:l;a.appendChild(h(f)),n({layout:"subheader",lastViewed:l,lastCobranding:p?l:m})}}function v(a,t,e){var c,l=new Date;if(!e||r(l,e.lastViewed,1)){var o=h(d({brand:t.brandName,texts:s[t.language],modifier:t.layout,closeButton:!0}));null===(c=o.querySelector(".sch-datacontroller__btn-close"))||void 0===c||c.addEventListener("click",(function(){return o.remove()})),a.appendChild(o),n({layout:"footer",lastViewed:l})}}function p(a,t){a.appendChild(h(d({brand:t.brandName,texts:s[t.language],modifier:"permanent"})))}exports.init=function(n){var r=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))}))}return e}({layout:"subheader",language:"en_SE"},n);return{render:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.permanent,c=void 0!==n&&n;if(a&&!l(navigator.userAgent))if(c)p(a,r);else{var o=e();"subheader"===r.layout?u(a,r,"subheader"===(null==o?void 0:o.layout)?o:void 0):v(a,r,"footer"===(null==o?void 0:o.layout)?o:void 0)}}}};
"use strict";function t(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}function a(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,n)}return e}Object.defineProperty(exports,"__esModule",{value:!0});function e(){var t=localStorage.getItem("sch-data-controller");if(t)try{return JSON.parse(t,(function(t,a){return"lastViewed"===t||"lastCobranding"===t?new Date(a):a}))}catch(t){return}}function n(t){localStorage.setItem("sch-data-controller",JSON.stringify(t))}function r(t,a,e){if(a>t)return!1;var n=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-Date.UTC(a.getFullYear(),a.getMonth(),a.getDate()))/864e5);return!(n<e)&&(n>1||t.getHours()>=6)}var c=[/\bHermes\b/i,/(ios|android).*(aftonbladet|vg|rnd|bt|fvn|aftenposten|svd)/i];function o(t){return c.some((function(a){return t.match(a)}))||null!=window.hermesJwe}var l=function(t){return'<span class="sch-datacontroller--optional-mobile">'.concat(t,"</span>")},s={no:{text:"".concat(l("[BRAND] er en del av Schibsted.")," Schibsted er ansvarlig for dine data på denne siden."),shortText:"[BRAND] er en del av ",link:"Les mer her",url:"https://info.privacy.schibsted.com/no/schibsted-norge-personvernerklaering/"},sv:{text:"".concat(l("[BRAND] är en del av Schibsted.")," Schibsted är ansvarig för dina data på denna sida."),shortText:"[BRAND] är en del av ",link:"Läs mer här",url:"https://info.privacy.schibsted.com/se/schibsted-sverige-personuppgiftspolicy/"},fi:{text:"".concat(l("[BRAND] on osa Schibsted-konsernia.")," Schibsted vastaa tietojesi hallinnasta tällä sivustolla."),shortText:"[BRAND] on osa Schibsted-konsernia",link:"Lue lisää",url:"https://info.privacy.schibsted.com/fi/"},en_SE:{text:"".concat(l("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/your-privacy-controls-schibsted-sverige-english/"},en_NO:{text:"".concat(l("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/your-privacy-controls-schibsted-norge-english/"},en_FI:{text:"".concat(l("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/fi/"}},i=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a="sch-datacontroller__logo".concat(t?" sch-datacontroller__logo--inline":" sch-datacontroller--optional-mobile");return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 103 19" class="'.concat(a,'">\n <title>Schibsted</title>\n <rect width="103" height="19" fill="#fff"/>\n <path d="M10.609 9.222c.17 0 .312.087.413.213.154.194.253.4.324.544.677 1.362.831 3.009.33 4.49-.804 2.371-2.994 4.128-5.63 4.128-3.18 0-5.214-2.144-5.851-4.19a.101.101 0 01.068-.126l2.887-.884a.101.101 0 01.127.066c.138.442.86 1.929 2.802 1.929 1.466 0 2.678-1.251 2.678-2.794 0-.654-.097-1.08-.294-1.516a.76.76 0 01-.078-.283.44.44 0 01.446-.46.44.44 0 01.36.182c.02.027.058.084.076.113.015.023.043.038.069.022.025-.015.024-.043.01-.072l-.05-.105a.49.49 0 01.436-.711.49.49 0 01.407.233l.095.153c.015.025.042.039.07.023.025-.013.025-.041.011-.07l-.085-.17a.554.554 0 01-.07-.253c0-.269.182-.462.449-.462zm9.01-2.885c2.916 0 4.666 1.66 5.306 3.448a.1.1 0 01-.028.107l-.034.02-2.63.903a.1.1 0 01-.125-.055c-.358-.813-1.084-1.538-2.419-1.538-1.602 0-2.945 1.149-2.945 3.236s1.366 3.26 2.969 3.26c1.544 0 2.344-.98 2.632-1.848a.103.103 0 01.09-.07l.04.004 2.567.851a.1.1 0 01.065.123c-.55 1.893-2.356 3.8-5.394 3.8-3.417 0-6.104-2.58-6.104-6.12 0-3.565 2.64-6.12 6.01-6.12zm44.256 0c2.75 0 3.977 1.45 4.391 2.653a.099.099 0 01-.027.104l-.032.02-2.335.9a.1.1 0 01-.132-.061c-.186-.61-.71-1.247-1.841-1.247-.825 0-1.485.492-1.485 1.149 0 .52.362.83.918.968l.143.03 1.65.352c2.285.47 3.44 1.886 3.44 3.575 0 1.875-1.461 3.798-4.501 3.798-3.409 0-4.634-2.15-4.82-3.474a.098.098 0 01.044-.095l.034-.015 2.488-.542a.099.099 0 01.12.083c.114.872.797 1.652 2.11 1.652 1.037 0 1.532-.54 1.532-1.15 0-.481-.308-.842-1.077-1.04l-.172-.04-1.532-.352c-2.238-.492-3.252-1.874-3.252-3.492 0-2.064 1.838-3.776 4.336-3.776zm19.976 0c3.582 0 5.727 2.275 5.727 5.98 0 .345-.028.703-.041.87a.1.1 0 01-.063.085l-.037.007h-8.201c.07 1.524 1.366 2.626 2.922 2.626 1.144 0 1.883-.446 2.331-1.135a.102.102 0 01.09-.046l.035.008 2.35 1.016a.1.1 0 01.049.139c-.833 1.537-2.505 2.692-4.879 2.692-3.181 0-5.986-2.275-5.986-6.168 0-3.682 2.734-6.074 5.703-6.074zM102.9 1.248a.1.1 0 01.093.061l.008.04v16.778a.1.1 0 01-.061.092l-.04.008h-2.84a.1.1 0 01-.093-.061l-.008-.039-.006-1.237c-.518.915-1.697 1.618-3.252 1.618-3.3 0-5.656-2.58-5.656-6.074 0-3.377 2.286-6.026 5.562-6.026 1.916 0 2.862.75 3.229 1.35l.046.08v-6.49a.1.1 0 01.062-.092l.039-.008h2.917zm-53.91 0a.1.1 0 01.092.061l.008.04v6.606c.518-.82 1.79-1.57 3.511-1.57 3.393 0 5.35 2.602 5.35 6.026 0 3.494-2.169 6.097-5.468 6.097-1.518 0-2.698-.631-3.339-1.535l-.101-.153v1.307a.1.1 0 01-.062.092l-.039.008h-2.839a.1.1 0 01-.092-.061l-.008-.04V1.349a.1.1 0 01.061-.092l.04-.008h2.885zm25.414 1.994a.1.1 0 01.093.06l.008.04v3.347h2.232a.1.1 0 01.093.061l.008.039v2.567a.1.1 0 01-.062.092l-.04.008h-2.231v4.831c0 1.008.47 1.337 1.366 1.337.307 0 .644-.031.848-.068a.1.1 0 01.112.064l.007.035v2.385c0 .043-.027.08-.067.096-.3.114-.849.255-1.7.255-2.19 0-3.585-1.252-3.673-3.352l-.004-.213v-5.37h-1.997a.1.1 0 01-.093-.061l-.007-.039V6.789a.1.1 0 01.061-.092l.04-.008H71.4l.004-3.347a.1.1 0 01.062-.093l.039-.007h2.898zM43.202 6.689a.1.1 0 01.093.061l.008.039v11.338a.1.1 0 01-.062.092l-.039.008h-2.933a.1.1 0 01-.093-.061l-.008-.04V6.79a.1.1 0 01.062-.092l.039-.008h2.933zm-13.28-5.44a.1.1 0 01.093.06l.008.04V7.65c.754-.89 2.027-1.266 3.135-1.266 2.861 0 4.233 1.925 4.309 4.357l.003.216v7.17a.1.1 0 01-.061.092l-.04.008h-2.933a.1.1 0 01-.092-.061l-.008-.04v-6.63c0-1.29-.637-2.345-2.145-2.346-1.373 0-2.116.93-2.165 2.14l-.003.16v6.677a.1.1 0 01-.061.092l-.04.008H26.99a.1.1 0 01-.093-.061l-.008-.04V1.349a.1.1 0 01.062-.092l.039-.008h2.933zM51.94 9.15c-1.579 0-2.924 1.173-2.924 3.283 0 2.087 1.345 3.308 2.924 3.308 1.603 0 2.875-1.197 2.875-3.308 0-2.11-1.272-3.283-2.875-3.283zm45.137.023c-1.602 0-2.875 1.197-2.875 3.26 0 2.064 1.226 3.308 2.875 3.308 1.603 0 2.888-1.244 2.888-3.331 0-2.064-1.285-3.237-2.888-3.237zM5.985 11.41a.28.28 0 110 .557.28.28 0 110-.557zm-1.125-.17h.065c.068.008.144.032.209.055a.308.308 0 01.168.142c.074.136.03.31-.098.397a.345.345 0 01-.22.048.911.911 0 01-.163-.03c-.171-.047-.277-.21-.233-.382a.313.313 0 01.337-.23zm-1.378-.587l.081.012c.088.023.173.073.253.114l.219.11a.35.35 0 01.187.247.351.351 0 01-.366.409 1.023 1.023 0 01-.289-.071 1.326 1.326 0 01-.244-.122c-.236-.147-.28-.464-.071-.625a.36.36 0 01.311-.062zM83.899 8.87c-1.559 0-2.446 1.12-2.58 2.142l-.013.133h5.185c-.047-1.15-.802-2.275-2.592-2.275zM5.985 10.215a.28.28 0 110 .557.28.28 0 110-.557zm-3.962-.667c.12.004.207.067.287.148.088.09.18.171.274.255.076.066.138.114.207.187a.358.358 0 01.073.373.361.361 0 01-.268.222.464.464 0 01-.33-.07 1.832 1.832 0 01-.276-.208 2.171 2.171 0 01-.258-.266.396.396 0 01-.052-.44.372.372 0 01.343-.201zm2.58.386l.078.005c.058.011.13.04.194.063l.209.075c.088.031.152.063.2.135.12.179.021.43-.189.479a.636.636 0 01-.289-.014 1.673 1.673 0 01-.275-.096c-.257-.11-.317-.384-.138-.556a.33.33 0 01.288-.086zm2.263-.795c.097-.04.198-.027.305.003.143.04.198.068.314.122.182.083.333.177.498.29.07.049.151.115.21.176.145.15.143.38-.005.511-.132.116-.318.099-.465-.006a5.933 5.933 0 00-.35-.232 3.98 3.98 0 00-.433-.23c-.114-.056-.222-.108-.259-.24a.32.32 0 01.185-.394zm-3.873-.241l.078.002c.121.017.196.097.284.17.136.115.237.194.382.3.097.069.179.122.241.228a.341.341 0 01-.028.395.356.356 0 01-.358.114.81.81 0 01-.21-.081 2.453 2.453 0 01-.607-.462c-.12-.122-.168-.31-.09-.462a.38.38 0 01.386-.202zM8.3 8.48l.08.01a.81.81 0 01.209.081c.206.105.419.27.607.462.12.122.168.31.09.463a.38.38 0 01-.386.201c-.121-.016-.196-.096-.284-.17a6.056 6.056 0 00-.382-.299c-.096-.07-.179-.123-.241-.229a.341.341 0 01.029-.395.356.356 0 01.358-.114zm-2.314.54a.28.28 0 110 .557.28.28 0 110-.557zm-2.202-.664c.131-.116.317-.099.464.006.124.088.228.157.35.232.157.096.249.143.433.23.115.056.222.108.26.24a.32.32 0 01-.186.394c-.096.04-.198.027-.304-.003-.144-.04-.198-.068-.315-.122a3.196 3.196 0 01-.498-.29 1.482 1.482 0 01-.21-.176c-.145-.15-.143-.38.006-.511zM5.924 0c3.181 0 5.215 2.144 5.852 4.19a.101.101 0 01-.068.126L8.821 5.2a.101.101 0 01-.127-.066 2.873 2.873 0 00-2.802-1.928c-1.465 0-2.678 1.25-2.678 2.793 0 .654.097 1.08.294 1.516a.76.76 0 01.078.284.44.44 0 01-.445.46.44.44 0 01-.385-.218l-.052-.077c-.015-.024-.043-.038-.069-.023-.024.015-.024.044-.01.072l.05.105a.49.49 0 01-.436.711.49.49 0 01-.406-.233l-.096-.153c-.015-.025-.042-.039-.07-.023-.024.013-.025.042-.01.07.02.043.062.127.084.17.04.077.071.16.071.253 0 .269-.182.462-.45.462a.525.525 0 01-.412-.213c-.155-.194-.254-.4-.325-.544-.677-1.362-.83-3.009-.33-4.49C1.1 1.759 3.29 0 5.926 0zm3.45 7.864a.464.464 0 01.331.071c.114.07.18.123.276.207.09.079.174.164.258.267.109.133.123.299.052.439a.372.372 0 01-.343.201c-.12-.004-.207-.066-.286-.147a5.183 5.183 0 00-.275-.256c-.075-.066-.138-.114-.207-.187a.358.358 0 01-.073-.373.361.361 0 01.268-.222zm-2.498.042a.636.636 0 01.289.015c.121.03.191.06.276.095.256.11.316.385.138.556a.33.33 0 01-.29.086c-.057-.011-.13-.04-.192-.063l-.21-.075c-.088-.03-.152-.062-.2-.135a.316.316 0 01.189-.479zm-.89-.081a.28.28 0 110 .558.28.28 0 110-.558zm2.13-.773c.094.007.19.034.288.071.09.034.162.072.244.123.236.146.28.463.071.624a.36.36 0 01-.311.063c-.088-.024-.172-.074-.253-.115a32.94 32.94 0 00-.077-.038l-.141-.071a.35.35 0 01-.188-.248.351.351 0 01.366-.409zm-1.129-.337a.911.911 0 01.163.03c.171.047.277.21.233.382a.313.313 0 01-.336.23 1.02 1.02 0 01-.21-.054.308.308 0 01-.168-.143.306.306 0 01.098-.397.345.345 0 01.22-.048zM5.986 6.63a.28.28 0 110 .558.28.28 0 110-.558zM41.739.967c.963.007 1.778.751 1.901 1.702.147 1.136-.748 2.144-1.916 2.144-1.06 0-1.933-.868-1.933-1.9 0-1.083.88-1.954 1.948-1.946z" fill="#000" fill-rule="evenodd"/>\n </svg>')},d=function(t){var a=t.brand,e=t.texts,n=t.closeButton,r=t.modifier,c=e.text.replace("[BRAND]",a),o=["sch-datacontroller","sch-datacontroller--cobranded"];return r&&o.push("sch-datacontroller--".concat(r)),'<div class="'.concat(o.join(" "),'">\n <div class="sch-datacontroller__wrapper">\n <div class="sch-datacontroller__content">\n ').concat(i(),'\n <span class="sch-datacontroller__text">\n ').concat(c,' <a class="sch-datacontroller__read-more" href="').concat(e.url,'">').concat(e.link,"</a>\n </span>\n </div>\n ").concat(n?'<button class="sch-datacontroller__btn-close sch-datacontroller__btn"type="button">'.concat('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="sch-datacontroller__btn-close-icon">\n <path d="M9.06 8l1.47 1.47a.75.75 0 01-1.06 1.06L7.999 9.06l-1.473 1.47a.75.75 0 01-1.06-1.06l1.472-1.471L5.47 6.53a.75.75 0 011.06-1.06L8 6.939l1.47-1.47a.75.75 0 011.06 1.062L9.06 7.999zM8 15A7 7 0 118 1a7 7 0 010 14zm0-1.5a5.5 5.5 0 100-11 5.5 5.5 0 000 11z"/>\n</svg>',"</button>"):"","\n </div>\n</div>")};function h(t){var a=document.createElement("div");return a.innerHTML=t,a.children[0]}function u(t,a,e){var c,o=new Date;if(!e||r(o,e.lastViewed,1)){var l,u,v,p=!e||r(o,e.lastCobranding,7),b={brand:a.brandName,texts:s[a.language],modifier:a.layout},f=p?d(b):(u=(l=b).brand,v=l.texts.shortText.replace("[BRAND]",u),'<div class="sch-datacontroller sch-datacontroller--subheader sch-datacontroller--minimal">\n <div class="sch-datacontroller__wrapper">\n <div class="sch-datacontroller__content">\n <span class="sch-datacontroller__text sch-datacontroller__text--inline">\n '.concat(v," ").concat(i(!0),"\n </span>\n </div>\n </div>\n</div>")),m=null!==(c=null==e?void 0:e.lastCobranding)&&void 0!==c?c:o;t.appendChild(h(f)),n({layout:"subheader",lastViewed:o,lastCobranding:p?o:m})}}function v(t,a,e){var c,o=new Date;if(!e||r(o,e.lastViewed,1)){var l=h(d({brand:a.brandName,texts:s[a.language],modifier:a.layout,closeButton:!0}));null===(c=l.querySelector(".sch-datacontroller__btn-close"))||void 0===c||c.addEventListener("click",(function(){return l.remove()})),t.appendChild(l),n({layout:"footer",lastViewed:o})}}function p(t,a){t.appendChild(h(d({brand:a.brandName,texts:s[a.language],modifier:"permanent"})))}exports.init=function(n){var r=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(a){t(e,a,r[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({layout:"subheader",language:"en_SE"},n);return{render:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.permanent,c=void 0!==n&&n;if(t&&!o(navigator.userAgent))if(c)p(t,r);else{var l=e();"subheader"===r.layout?u(t,r,"subheader"===(null==l?void 0:l.layout)?l:void 0):v(t,r,"footer"===(null==l?void 0:l.layout)?l:void 0)}}}};
//# sourceMappingURL=data-controller-sdk.cjs.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).CNP=e.CNP||{},e.CNP.DataControllerSDK={}))}(this,(function(e){"use strict";function t(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function a(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}var n="sch-data-controller";function r(){var e=localStorage.getItem(n);if(e)try{return JSON.parse(e,(function(e,t){return"lastViewed"===e||"lastCobranding"===e?new Date(t):t}))}catch(e){return}}function c(e){localStorage.setItem(n,JSON.stringify(e))}function l(e,t,a){if(t>e)return!1;var n=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))/864e5);return!(n<a)&&(n>1||e.getHours()>=6)}var o=[/\bHermes\b/i,/(ios|android).*(aftonbladet|vg|rnd|bt|fvn|aftenposten|svd)/i];function i(e){return o.some((function(t){return e.match(t)}))||null!=window.hermesJwe}var s=function(e){return'<span class="sch-datacontroller--optional-mobile">'.concat(e,"</span>")},d={no:{text:"".concat(s("[BRAND] er en del av Schibsted.")," Schibsted er ansvarlig for dine data på denne siden."),shortText:"[BRAND] er en del av ",link:"Les mer her",url:"https://info.privacy.schibsted.com/no/schibsted-norge-personvernerklaering/"},sv:{text:"".concat(s("[BRAND] är en del av Schibsted.")," Schibsted är ansvarig för dina data på denna sida."),shortText:"[BRAND] är en del av ",link:"Läs mer här",url:"https://info.privacy.schibsted.com/se/schibsted-sverige-personuppgiftspolicy/"},en_SE:{text:"".concat(s("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/your-privacy-controls-schibsted-sverige-english/"},en_NO:{text:"".concat(s("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/your-privacy-controls-schibsted-norge-english/"}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="sch-datacontroller__logo".concat(e?" sch-datacontroller__logo--inline":" sch-datacontroller--optional-mobile");return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 103 19" class="'.concat(t,'">\n <title>Schibsted</title>\n <rect width="103" height="19" fill="#fff"/>\n <path d="M10.609 9.222c.17 0 .312.087.413.213.154.194.253.4.324.544.677 1.362.831 3.009.33 4.49-.804 2.371-2.994 4.128-5.63 4.128-3.18 0-5.214-2.144-5.851-4.19a.101.101 0 01.068-.126l2.887-.884a.101.101 0 01.127.066c.138.442.86 1.929 2.802 1.929 1.466 0 2.678-1.251 2.678-2.794 0-.654-.097-1.08-.294-1.516a.76.76 0 01-.078-.283.44.44 0 01.446-.46.44.44 0 01.36.182c.02.027.058.084.076.113.015.023.043.038.069.022.025-.015.024-.043.01-.072l-.05-.105a.49.49 0 01.436-.711.49.49 0 01.407.233l.095.153c.015.025.042.039.07.023.025-.013.025-.041.011-.07l-.085-.17a.554.554 0 01-.07-.253c0-.269.182-.462.449-.462zm9.01-2.885c2.916 0 4.666 1.66 5.306 3.448a.1.1 0 01-.028.107l-.034.02-2.63.903a.1.1 0 01-.125-.055c-.358-.813-1.084-1.538-2.419-1.538-1.602 0-2.945 1.149-2.945 3.236s1.366 3.26 2.969 3.26c1.544 0 2.344-.98 2.632-1.848a.103.103 0 01.09-.07l.04.004 2.567.851a.1.1 0 01.065.123c-.55 1.893-2.356 3.8-5.394 3.8-3.417 0-6.104-2.58-6.104-6.12 0-3.565 2.64-6.12 6.01-6.12zm44.256 0c2.75 0 3.977 1.45 4.391 2.653a.099.099 0 01-.027.104l-.032.02-2.335.9a.1.1 0 01-.132-.061c-.186-.61-.71-1.247-1.841-1.247-.825 0-1.485.492-1.485 1.149 0 .52.362.83.918.968l.143.03 1.65.352c2.285.47 3.44 1.886 3.44 3.575 0 1.875-1.461 3.798-4.501 3.798-3.409 0-4.634-2.15-4.82-3.474a.098.098 0 01.044-.095l.034-.015 2.488-.542a.099.099 0 01.12.083c.114.872.797 1.652 2.11 1.652 1.037 0 1.532-.54 1.532-1.15 0-.481-.308-.842-1.077-1.04l-.172-.04-1.532-.352c-2.238-.492-3.252-1.874-3.252-3.492 0-2.064 1.838-3.776 4.336-3.776zm19.976 0c3.582 0 5.727 2.275 5.727 5.98 0 .345-.028.703-.041.87a.1.1 0 01-.063.085l-.037.007h-8.201c.07 1.524 1.366 2.626 2.922 2.626 1.144 0 1.883-.446 2.331-1.135a.102.102 0 01.09-.046l.035.008 2.35 1.016a.1.1 0 01.049.139c-.833 1.537-2.505 2.692-4.879 2.692-3.181 0-5.986-2.275-5.986-6.168 0-3.682 2.734-6.074 5.703-6.074zM102.9 1.248a.1.1 0 01.093.061l.008.04v16.778a.1.1 0 01-.061.092l-.04.008h-2.84a.1.1 0 01-.093-.061l-.008-.039-.006-1.237c-.518.915-1.697 1.618-3.252 1.618-3.3 0-5.656-2.58-5.656-6.074 0-3.377 2.286-6.026 5.562-6.026 1.916 0 2.862.75 3.229 1.35l.046.08v-6.49a.1.1 0 01.062-.092l.039-.008h2.917zm-53.91 0a.1.1 0 01.092.061l.008.04v6.606c.518-.82 1.79-1.57 3.511-1.57 3.393 0 5.35 2.602 5.35 6.026 0 3.494-2.169 6.097-5.468 6.097-1.518 0-2.698-.631-3.339-1.535l-.101-.153v1.307a.1.1 0 01-.062.092l-.039.008h-2.839a.1.1 0 01-.092-.061l-.008-.04V1.349a.1.1 0 01.061-.092l.04-.008h2.885zm25.414 1.994a.1.1 0 01.093.06l.008.04v3.347h2.232a.1.1 0 01.093.061l.008.039v2.567a.1.1 0 01-.062.092l-.04.008h-2.231v4.831c0 1.008.47 1.337 1.366 1.337.307 0 .644-.031.848-.068a.1.1 0 01.112.064l.007.035v2.385c0 .043-.027.08-.067.096-.3.114-.849.255-1.7.255-2.19 0-3.585-1.252-3.673-3.352l-.004-.213v-5.37h-1.997a.1.1 0 01-.093-.061l-.007-.039V6.789a.1.1 0 01.061-.092l.04-.008H71.4l.004-3.347a.1.1 0 01.062-.093l.039-.007h2.898zM43.202 6.689a.1.1 0 01.093.061l.008.039v11.338a.1.1 0 01-.062.092l-.039.008h-2.933a.1.1 0 01-.093-.061l-.008-.04V6.79a.1.1 0 01.062-.092l.039-.008h2.933zm-13.28-5.44a.1.1 0 01.093.06l.008.04V7.65c.754-.89 2.027-1.266 3.135-1.266 2.861 0 4.233 1.925 4.309 4.357l.003.216v7.17a.1.1 0 01-.061.092l-.04.008h-2.933a.1.1 0 01-.092-.061l-.008-.04v-6.63c0-1.29-.637-2.345-2.145-2.346-1.373 0-2.116.93-2.165 2.14l-.003.16v6.677a.1.1 0 01-.061.092l-.04.008H26.99a.1.1 0 01-.093-.061l-.008-.04V1.349a.1.1 0 01.062-.092l.039-.008h2.933zM51.94 9.15c-1.579 0-2.924 1.173-2.924 3.283 0 2.087 1.345 3.308 2.924 3.308 1.603 0 2.875-1.197 2.875-3.308 0-2.11-1.272-3.283-2.875-3.283zm45.137.023c-1.602 0-2.875 1.197-2.875 3.26 0 2.064 1.226 3.308 2.875 3.308 1.603 0 2.888-1.244 2.888-3.331 0-2.064-1.285-3.237-2.888-3.237zM5.985 11.41a.28.28 0 110 .557.28.28 0 110-.557zm-1.125-.17h.065c.068.008.144.032.209.055a.308.308 0 01.168.142c.074.136.03.31-.098.397a.345.345 0 01-.22.048.911.911 0 01-.163-.03c-.171-.047-.277-.21-.233-.382a.313.313 0 01.337-.23zm-1.378-.587l.081.012c.088.023.173.073.253.114l.219.11a.35.35 0 01.187.247.351.351 0 01-.366.409 1.023 1.023 0 01-.289-.071 1.326 1.326 0 01-.244-.122c-.236-.147-.28-.464-.071-.625a.36.36 0 01.311-.062zM83.899 8.87c-1.559 0-2.446 1.12-2.58 2.142l-.013.133h5.185c-.047-1.15-.802-2.275-2.592-2.275zM5.985 10.215a.28.28 0 110 .557.28.28 0 110-.557zm-3.962-.667c.12.004.207.067.287.148.088.09.18.171.274.255.076.066.138.114.207.187a.358.358 0 01.073.373.361.361 0 01-.268.222.464.464 0 01-.33-.07 1.832 1.832 0 01-.276-.208 2.171 2.171 0 01-.258-.266.396.396 0 01-.052-.44.372.372 0 01.343-.201zm2.58.386l.078.005c.058.011.13.04.194.063l.209.075c.088.031.152.063.2.135.12.179.021.43-.189.479a.636.636 0 01-.289-.014 1.673 1.673 0 01-.275-.096c-.257-.11-.317-.384-.138-.556a.33.33 0 01.288-.086zm2.263-.795c.097-.04.198-.027.305.003.143.04.198.068.314.122.182.083.333.177.498.29.07.049.151.115.21.176.145.15.143.38-.005.511-.132.116-.318.099-.465-.006a5.933 5.933 0 00-.35-.232 3.98 3.98 0 00-.433-.23c-.114-.056-.222-.108-.259-.24a.32.32 0 01.185-.394zm-3.873-.241l.078.002c.121.017.196.097.284.17.136.115.237.194.382.3.097.069.179.122.241.228a.341.341 0 01-.028.395.356.356 0 01-.358.114.81.81 0 01-.21-.081 2.453 2.453 0 01-.607-.462c-.12-.122-.168-.31-.09-.462a.38.38 0 01.386-.202zM8.3 8.48l.08.01a.81.81 0 01.209.081c.206.105.419.27.607.462.12.122.168.31.09.463a.38.38 0 01-.386.201c-.121-.016-.196-.096-.284-.17a6.056 6.056 0 00-.382-.299c-.096-.07-.179-.123-.241-.229a.341.341 0 01.029-.395.356.356 0 01.358-.114zm-2.314.54a.28.28 0 110 .557.28.28 0 110-.557zm-2.202-.664c.131-.116.317-.099.464.006.124.088.228.157.35.232.157.096.249.143.433.23.115.056.222.108.26.24a.32.32 0 01-.186.394c-.096.04-.198.027-.304-.003-.144-.04-.198-.068-.315-.122a3.196 3.196 0 01-.498-.29 1.482 1.482 0 01-.21-.176c-.145-.15-.143-.38.006-.511zM5.924 0c3.181 0 5.215 2.144 5.852 4.19a.101.101 0 01-.068.126L8.821 5.2a.101.101 0 01-.127-.066 2.873 2.873 0 00-2.802-1.928c-1.465 0-2.678 1.25-2.678 2.793 0 .654.097 1.08.294 1.516a.76.76 0 01.078.284.44.44 0 01-.445.46.44.44 0 01-.385-.218l-.052-.077c-.015-.024-.043-.038-.069-.023-.024.015-.024.044-.01.072l.05.105a.49.49 0 01-.436.711.49.49 0 01-.406-.233l-.096-.153c-.015-.025-.042-.039-.07-.023-.024.013-.025.042-.01.07.02.043.062.127.084.17.04.077.071.16.071.253 0 .269-.182.462-.45.462a.525.525 0 01-.412-.213c-.155-.194-.254-.4-.325-.544-.677-1.362-.83-3.009-.33-4.49C1.1 1.759 3.29 0 5.926 0zm3.45 7.864a.464.464 0 01.331.071c.114.07.18.123.276.207.09.079.174.164.258.267.109.133.123.299.052.439a.372.372 0 01-.343.201c-.12-.004-.207-.066-.286-.147a5.183 5.183 0 00-.275-.256c-.075-.066-.138-.114-.207-.187a.358.358 0 01-.073-.373.361.361 0 01.268-.222zm-2.498.042a.636.636 0 01.289.015c.121.03.191.06.276.095.256.11.316.385.138.556a.33.33 0 01-.29.086c-.057-.011-.13-.04-.192-.063l-.21-.075c-.088-.03-.152-.062-.2-.135a.316.316 0 01.189-.479zm-.89-.081a.28.28 0 110 .558.28.28 0 110-.558zm2.13-.773c.094.007.19.034.288.071.09.034.162.072.244.123.236.146.28.463.071.624a.36.36 0 01-.311.063c-.088-.024-.172-.074-.253-.115a32.94 32.94 0 00-.077-.038l-.141-.071a.35.35 0 01-.188-.248.351.351 0 01.366-.409zm-1.129-.337a.911.911 0 01.163.03c.171.047.277.21.233.382a.313.313 0 01-.336.23 1.02 1.02 0 01-.21-.054.308.308 0 01-.168-.143.306.306 0 01.098-.397.345.345 0 01.22-.048zM5.986 6.63a.28.28 0 110 .558.28.28 0 110-.558zM41.739.967c.963.007 1.778.751 1.901 1.702.147 1.136-.748 2.144-1.916 2.144-1.06 0-1.933-.868-1.933-1.9 0-1.083.88-1.954 1.948-1.946z" fill="#000" fill-rule="evenodd"/>\n </svg>')},u=function(e){var t=e.brand,a=e.texts,n=e.closeButton,r=e.modifier,c=a.text.replace("[BRAND]",t),l=["sch-datacontroller","sch-datacontroller--cobranded"];return r&&l.push("sch-datacontroller--".concat(r)),'<div class="'.concat(l.join(" "),'">\n <div class="sch-datacontroller__wrapper">\n <div class="sch-datacontroller__content">\n ').concat(h(),'\n <span class="sch-datacontroller__text">\n ').concat(c,' <a class="sch-datacontroller__read-more" href="').concat(a.url,'">').concat(a.link,"</a>\n </span>\n </div>\n ").concat(n?'<button class="sch-datacontroller__btn-close sch-datacontroller__btn"type="button">'.concat('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="sch-datacontroller__btn-close-icon">\n <path d="M9.06 8l1.47 1.47a.75.75 0 01-1.06 1.06L7.999 9.06l-1.473 1.47a.75.75 0 01-1.06-1.06l1.472-1.471L5.47 6.53a.75.75 0 011.06-1.06L8 6.939l1.47-1.47a.75.75 0 011.06 1.062L9.06 7.999zM8 15A7 7 0 118 1a7 7 0 010 14zm0-1.5a5.5 5.5 0 100-11 5.5 5.5 0 000 11z"/>\n</svg>',"</button>"):"","\n </div>\n</div>")};function v(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]}function f(e,t,a){var n,r=new Date;if(!a||l(r,a.lastViewed,1)){var o,i,s,f=!a||l(r,a.lastCobranding,7),p={brand:t.brandName,texts:d[t.language],modifier:t.layout},b=f?u(p):(i=(o=p).brand,s=o.texts.shortText.replace("[BRAND]",i),'<div class="sch-datacontroller sch-datacontroller--subheader sch-datacontroller--minimal">\n <div class="sch-datacontroller__wrapper">\n <div class="sch-datacontroller__content">\n <span class="sch-datacontroller__text sch-datacontroller__text--inline">\n '.concat(s," ").concat(h(!0),"\n </span>\n </div>\n </div>\n</div>")),m=null!==(n=null==a?void 0:a.lastCobranding)&&void 0!==n?n:r;e.appendChild(v(b)),c({layout:"subheader",lastViewed:r,lastCobranding:f?r:m})}}function p(e,t,a){var n,r=new Date;if(!a||l(r,a.lastViewed,1)){var o=v(u({brand:t.brandName,texts:d[t.language],modifier:t.layout,closeButton:!0}));null===(n=o.querySelector(".sch-datacontroller__btn-close"))||void 0===n||n.addEventListener("click",(function(){return o.remove()})),e.appendChild(o),c({layout:"footer",lastViewed:r})}}function b(e,t){e.appendChild(v(u({brand:t.brandName,texts:d[t.language],modifier:"permanent"})))}e.init=function(e){var n=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(a){t(e,a,r[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({layout:"subheader",language:"en_SE"},e);return{render:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.permanent,c=void 0!==a&&a;if(e&&!i(navigator.userAgent))if(c)b(e,n);else{var l=r();"subheader"===n.layout?f(e,n,"subheader"===(null==l?void 0:l.layout)?l:void 0):p(e,n,"footer"===(null==l?void 0:l.layout)?l:void 0)}}}},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).CNP=t.CNP||{},t.CNP.DataControllerSDK={}))}(this,(function(t){"use strict";function e(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function a(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}var n="sch-data-controller";function r(){var t=localStorage.getItem(n);if(t)try{return JSON.parse(t,(function(t,e){return"lastViewed"===t||"lastCobranding"===t?new Date(e):e}))}catch(t){return}}function c(t){localStorage.setItem(n,JSON.stringify(t))}function o(t,e,a){if(e>t)return!1;var n=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/864e5);return!(n<a)&&(n>1||t.getHours()>=6)}var l=[/\bHermes\b/i,/(ios|android).*(aftonbladet|vg|rnd|bt|fvn|aftenposten|svd)/i];function i(t){return l.some((function(e){return t.match(e)}))||null!=window.hermesJwe}var s=function(t){return'<span class="sch-datacontroller--optional-mobile">'.concat(t,"</span>")},d={no:{text:"".concat(s("[BRAND] er en del av Schibsted.")," Schibsted er ansvarlig for dine data på denne siden."),shortText:"[BRAND] er en del av ",link:"Les mer her",url:"https://info.privacy.schibsted.com/no/schibsted-norge-personvernerklaering/"},sv:{text:"".concat(s("[BRAND] är en del av Schibsted.")," Schibsted är ansvarig för dina data på denna sida."),shortText:"[BRAND] är en del av ",link:"Läs mer här",url:"https://info.privacy.schibsted.com/se/schibsted-sverige-personuppgiftspolicy/"},fi:{text:"".concat(s("[BRAND] on osa Schibsted-konsernia.")," Schibsted vastaa tietojesi hallinnasta tällä sivustolla."),shortText:"[BRAND] on osa Schibsted-konsernia",link:"Lue lisää",url:"https://info.privacy.schibsted.com/fi/"},en_SE:{text:"".concat(s("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/your-privacy-controls-schibsted-sverige-english/"},en_NO:{text:"".concat(s("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/your-privacy-controls-schibsted-norge-english/"},en_FI:{text:"".concat(s("[BRAND] is a part of Schibsted.")," Schibsted is responsible for your data on this site."),shortText:"[BRAND] is a part of ",link:"Read more",url:"https://info.privacy.schibsted.com/fi/"}},h=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e="sch-datacontroller__logo".concat(t?" sch-datacontroller__logo--inline":" sch-datacontroller--optional-mobile");return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 103 19" class="'.concat(e,'">\n <title>Schibsted</title>\n <rect width="103" height="19" fill="#fff"/>\n <path d="M10.609 9.222c.17 0 .312.087.413.213.154.194.253.4.324.544.677 1.362.831 3.009.33 4.49-.804 2.371-2.994 4.128-5.63 4.128-3.18 0-5.214-2.144-5.851-4.19a.101.101 0 01.068-.126l2.887-.884a.101.101 0 01.127.066c.138.442.86 1.929 2.802 1.929 1.466 0 2.678-1.251 2.678-2.794 0-.654-.097-1.08-.294-1.516a.76.76 0 01-.078-.283.44.44 0 01.446-.46.44.44 0 01.36.182c.02.027.058.084.076.113.015.023.043.038.069.022.025-.015.024-.043.01-.072l-.05-.105a.49.49 0 01.436-.711.49.49 0 01.407.233l.095.153c.015.025.042.039.07.023.025-.013.025-.041.011-.07l-.085-.17a.554.554 0 01-.07-.253c0-.269.182-.462.449-.462zm9.01-2.885c2.916 0 4.666 1.66 5.306 3.448a.1.1 0 01-.028.107l-.034.02-2.63.903a.1.1 0 01-.125-.055c-.358-.813-1.084-1.538-2.419-1.538-1.602 0-2.945 1.149-2.945 3.236s1.366 3.26 2.969 3.26c1.544 0 2.344-.98 2.632-1.848a.103.103 0 01.09-.07l.04.004 2.567.851a.1.1 0 01.065.123c-.55 1.893-2.356 3.8-5.394 3.8-3.417 0-6.104-2.58-6.104-6.12 0-3.565 2.64-6.12 6.01-6.12zm44.256 0c2.75 0 3.977 1.45 4.391 2.653a.099.099 0 01-.027.104l-.032.02-2.335.9a.1.1 0 01-.132-.061c-.186-.61-.71-1.247-1.841-1.247-.825 0-1.485.492-1.485 1.149 0 .52.362.83.918.968l.143.03 1.65.352c2.285.47 3.44 1.886 3.44 3.575 0 1.875-1.461 3.798-4.501 3.798-3.409 0-4.634-2.15-4.82-3.474a.098.098 0 01.044-.095l.034-.015 2.488-.542a.099.099 0 01.12.083c.114.872.797 1.652 2.11 1.652 1.037 0 1.532-.54 1.532-1.15 0-.481-.308-.842-1.077-1.04l-.172-.04-1.532-.352c-2.238-.492-3.252-1.874-3.252-3.492 0-2.064 1.838-3.776 4.336-3.776zm19.976 0c3.582 0 5.727 2.275 5.727 5.98 0 .345-.028.703-.041.87a.1.1 0 01-.063.085l-.037.007h-8.201c.07 1.524 1.366 2.626 2.922 2.626 1.144 0 1.883-.446 2.331-1.135a.102.102 0 01.09-.046l.035.008 2.35 1.016a.1.1 0 01.049.139c-.833 1.537-2.505 2.692-4.879 2.692-3.181 0-5.986-2.275-5.986-6.168 0-3.682 2.734-6.074 5.703-6.074zM102.9 1.248a.1.1 0 01.093.061l.008.04v16.778a.1.1 0 01-.061.092l-.04.008h-2.84a.1.1 0 01-.093-.061l-.008-.039-.006-1.237c-.518.915-1.697 1.618-3.252 1.618-3.3 0-5.656-2.58-5.656-6.074 0-3.377 2.286-6.026 5.562-6.026 1.916 0 2.862.75 3.229 1.35l.046.08v-6.49a.1.1 0 01.062-.092l.039-.008h2.917zm-53.91 0a.1.1 0 01.092.061l.008.04v6.606c.518-.82 1.79-1.57 3.511-1.57 3.393 0 5.35 2.602 5.35 6.026 0 3.494-2.169 6.097-5.468 6.097-1.518 0-2.698-.631-3.339-1.535l-.101-.153v1.307a.1.1 0 01-.062.092l-.039.008h-2.839a.1.1 0 01-.092-.061l-.008-.04V1.349a.1.1 0 01.061-.092l.04-.008h2.885zm25.414 1.994a.1.1 0 01.093.06l.008.04v3.347h2.232a.1.1 0 01.093.061l.008.039v2.567a.1.1 0 01-.062.092l-.04.008h-2.231v4.831c0 1.008.47 1.337 1.366 1.337.307 0 .644-.031.848-.068a.1.1 0 01.112.064l.007.035v2.385c0 .043-.027.08-.067.096-.3.114-.849.255-1.7.255-2.19 0-3.585-1.252-3.673-3.352l-.004-.213v-5.37h-1.997a.1.1 0 01-.093-.061l-.007-.039V6.789a.1.1 0 01.061-.092l.04-.008H71.4l.004-3.347a.1.1 0 01.062-.093l.039-.007h2.898zM43.202 6.689a.1.1 0 01.093.061l.008.039v11.338a.1.1 0 01-.062.092l-.039.008h-2.933a.1.1 0 01-.093-.061l-.008-.04V6.79a.1.1 0 01.062-.092l.039-.008h2.933zm-13.28-5.44a.1.1 0 01.093.06l.008.04V7.65c.754-.89 2.027-1.266 3.135-1.266 2.861 0 4.233 1.925 4.309 4.357l.003.216v7.17a.1.1 0 01-.061.092l-.04.008h-2.933a.1.1 0 01-.092-.061l-.008-.04v-6.63c0-1.29-.637-2.345-2.145-2.346-1.373 0-2.116.93-2.165 2.14l-.003.16v6.677a.1.1 0 01-.061.092l-.04.008H26.99a.1.1 0 01-.093-.061l-.008-.04V1.349a.1.1 0 01.062-.092l.039-.008h2.933zM51.94 9.15c-1.579 0-2.924 1.173-2.924 3.283 0 2.087 1.345 3.308 2.924 3.308 1.603 0 2.875-1.197 2.875-3.308 0-2.11-1.272-3.283-2.875-3.283zm45.137.023c-1.602 0-2.875 1.197-2.875 3.26 0 2.064 1.226 3.308 2.875 3.308 1.603 0 2.888-1.244 2.888-3.331 0-2.064-1.285-3.237-2.888-3.237zM5.985 11.41a.28.28 0 110 .557.28.28 0 110-.557zm-1.125-.17h.065c.068.008.144.032.209.055a.308.308 0 01.168.142c.074.136.03.31-.098.397a.345.345 0 01-.22.048.911.911 0 01-.163-.03c-.171-.047-.277-.21-.233-.382a.313.313 0 01.337-.23zm-1.378-.587l.081.012c.088.023.173.073.253.114l.219.11a.35.35 0 01.187.247.351.351 0 01-.366.409 1.023 1.023 0 01-.289-.071 1.326 1.326 0 01-.244-.122c-.236-.147-.28-.464-.071-.625a.36.36 0 01.311-.062zM83.899 8.87c-1.559 0-2.446 1.12-2.58 2.142l-.013.133h5.185c-.047-1.15-.802-2.275-2.592-2.275zM5.985 10.215a.28.28 0 110 .557.28.28 0 110-.557zm-3.962-.667c.12.004.207.067.287.148.088.09.18.171.274.255.076.066.138.114.207.187a.358.358 0 01.073.373.361.361 0 01-.268.222.464.464 0 01-.33-.07 1.832 1.832 0 01-.276-.208 2.171 2.171 0 01-.258-.266.396.396 0 01-.052-.44.372.372 0 01.343-.201zm2.58.386l.078.005c.058.011.13.04.194.063l.209.075c.088.031.152.063.2.135.12.179.021.43-.189.479a.636.636 0 01-.289-.014 1.673 1.673 0 01-.275-.096c-.257-.11-.317-.384-.138-.556a.33.33 0 01.288-.086zm2.263-.795c.097-.04.198-.027.305.003.143.04.198.068.314.122.182.083.333.177.498.29.07.049.151.115.21.176.145.15.143.38-.005.511-.132.116-.318.099-.465-.006a5.933 5.933 0 00-.35-.232 3.98 3.98 0 00-.433-.23c-.114-.056-.222-.108-.259-.24a.32.32 0 01.185-.394zm-3.873-.241l.078.002c.121.017.196.097.284.17.136.115.237.194.382.3.097.069.179.122.241.228a.341.341 0 01-.028.395.356.356 0 01-.358.114.81.81 0 01-.21-.081 2.453 2.453 0 01-.607-.462c-.12-.122-.168-.31-.09-.462a.38.38 0 01.386-.202zM8.3 8.48l.08.01a.81.81 0 01.209.081c.206.105.419.27.607.462.12.122.168.31.09.463a.38.38 0 01-.386.201c-.121-.016-.196-.096-.284-.17a6.056 6.056 0 00-.382-.299c-.096-.07-.179-.123-.241-.229a.341.341 0 01.029-.395.356.356 0 01.358-.114zm-2.314.54a.28.28 0 110 .557.28.28 0 110-.557zm-2.202-.664c.131-.116.317-.099.464.006.124.088.228.157.35.232.157.096.249.143.433.23.115.056.222.108.26.24a.32.32 0 01-.186.394c-.096.04-.198.027-.304-.003-.144-.04-.198-.068-.315-.122a3.196 3.196 0 01-.498-.29 1.482 1.482 0 01-.21-.176c-.145-.15-.143-.38.006-.511zM5.924 0c3.181 0 5.215 2.144 5.852 4.19a.101.101 0 01-.068.126L8.821 5.2a.101.101 0 01-.127-.066 2.873 2.873 0 00-2.802-1.928c-1.465 0-2.678 1.25-2.678 2.793 0 .654.097 1.08.294 1.516a.76.76 0 01.078.284.44.44 0 01-.445.46.44.44 0 01-.385-.218l-.052-.077c-.015-.024-.043-.038-.069-.023-.024.015-.024.044-.01.072l.05.105a.49.49 0 01-.436.711.49.49 0 01-.406-.233l-.096-.153c-.015-.025-.042-.039-.07-.023-.024.013-.025.042-.01.07.02.043.062.127.084.17.04.077.071.16.071.253 0 .269-.182.462-.45.462a.525.525 0 01-.412-.213c-.155-.194-.254-.4-.325-.544-.677-1.362-.83-3.009-.33-4.49C1.1 1.759 3.29 0 5.926 0zm3.45 7.864a.464.464 0 01.331.071c.114.07.18.123.276.207.09.079.174.164.258.267.109.133.123.299.052.439a.372.372 0 01-.343.201c-.12-.004-.207-.066-.286-.147a5.183 5.183 0 00-.275-.256c-.075-.066-.138-.114-.207-.187a.358.358 0 01-.073-.373.361.361 0 01.268-.222zm-2.498.042a.636.636 0 01.289.015c.121.03.191.06.276.095.256.11.316.385.138.556a.33.33 0 01-.29.086c-.057-.011-.13-.04-.192-.063l-.21-.075c-.088-.03-.152-.062-.2-.135a.316.316 0 01.189-.479zm-.89-.081a.28.28 0 110 .558.28.28 0 110-.558zm2.13-.773c.094.007.19.034.288.071.09.034.162.072.244.123.236.146.28.463.071.624a.36.36 0 01-.311.063c-.088-.024-.172-.074-.253-.115a32.94 32.94 0 00-.077-.038l-.141-.071a.35.35 0 01-.188-.248.351.351 0 01.366-.409zm-1.129-.337a.911.911 0 01.163.03c.171.047.277.21.233.382a.313.313 0 01-.336.23 1.02 1.02 0 01-.21-.054.308.308 0 01-.168-.143.306.306 0 01.098-.397.345.345 0 01.22-.048zM5.986 6.63a.28.28 0 110 .558.28.28 0 110-.558zM41.739.967c.963.007 1.778.751 1.901 1.702.147 1.136-.748 2.144-1.916 2.144-1.06 0-1.933-.868-1.933-1.9 0-1.083.88-1.954 1.948-1.946z" fill="#000" fill-rule="evenodd"/>\n </svg>')},u=function(t){var e=t.brand,a=t.texts,n=t.closeButton,r=t.modifier,c=a.text.replace("[BRAND]",e),o=["sch-datacontroller","sch-datacontroller--cobranded"];return r&&o.push("sch-datacontroller--".concat(r)),'<div class="'.concat(o.join(" "),'">\n <div class="sch-datacontroller__wrapper">\n <div class="sch-datacontroller__content">\n ').concat(h(),'\n <span class="sch-datacontroller__text">\n ').concat(c,' <a class="sch-datacontroller__read-more" href="').concat(a.url,'">').concat(a.link,"</a>\n </span>\n </div>\n ").concat(n?'<button class="sch-datacontroller__btn-close sch-datacontroller__btn"type="button">'.concat('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="sch-datacontroller__btn-close-icon">\n <path d="M9.06 8l1.47 1.47a.75.75 0 01-1.06 1.06L7.999 9.06l-1.473 1.47a.75.75 0 01-1.06-1.06l1.472-1.471L5.47 6.53a.75.75 0 011.06-1.06L8 6.939l1.47-1.47a.75.75 0 011.06 1.062L9.06 7.999zM8 15A7 7 0 118 1a7 7 0 010 14zm0-1.5a5.5 5.5 0 100-11 5.5 5.5 0 000 11z"/>\n</svg>',"</button>"):"","\n </div>\n</div>")};function v(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function f(t,e,a){var n,r=new Date;if(!a||o(r,a.lastViewed,1)){var l,i,s,f=!a||o(r,a.lastCobranding,7),p={brand:e.brandName,texts:d[e.language],modifier:e.layout},b=f?u(p):(i=(l=p).brand,s=l.texts.shortText.replace("[BRAND]",i),'<div class="sch-datacontroller sch-datacontroller--subheader sch-datacontroller--minimal">\n <div class="sch-datacontroller__wrapper">\n <div class="sch-datacontroller__content">\n <span class="sch-datacontroller__text sch-datacontroller__text--inline">\n '.concat(s," ").concat(h(!0),"\n </span>\n </div>\n </div>\n</div>")),m=null!==(n=null==a?void 0:a.lastCobranding)&&void 0!==n?n:r;t.appendChild(v(b)),c({layout:"subheader",lastViewed:r,lastCobranding:f?r:m})}}function p(t,e,a){var n,r=new Date;if(!a||o(r,a.lastViewed,1)){var l=v(u({brand:e.brandName,texts:d[e.language],modifier:e.layout,closeButton:!0}));null===(n=l.querySelector(".sch-datacontroller__btn-close"))||void 0===n||n.addEventListener("click",(function(){return l.remove()})),t.appendChild(l),c({layout:"footer",lastViewed:r})}}function b(t,e){t.appendChild(v(u({brand:e.brandName,texts:d[e.language],modifier:"permanent"})))}t.init=function(t){var n=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(a){e(t,a,r[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({layout:"subheader",language:"en_SE"},t);return{render:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.permanent,c=void 0!==a&&a;if(t&&!i(navigator.userAgent))if(c)b(t,n);else{var o=r();"subheader"===n.layout?f(t,n,"subheader"===(null==o?void 0:o.layout)?o:void 0):p(t,n,"footer"===(null==o?void 0:o.layout)?o:void 0)}}}},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=data-controller-sdk.umd.js.map
{
"name": "@schibsted/data-controller",
"version": "3.1.2",
"version": "3.2.0",
"module": "dist/data-controller-sdk.mjs",

@@ -5,0 +5,0 @@ "unpkg": "dist/data-controller-sdk.umd.js",

@@ -78,3 +78,3 @@ # Schibsted Data Controller SDK

```html
<link rel="stylesheet" src="https://unpkg.com/@schibsted/data-controller/dist/styles.css">
<link rel="stylesheet" href="https://unpkg.com/@schibsted/data-controller/dist/styles.css">
```

@@ -81,0 +81,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc