@dsb.dk/designsystem
Version:
Development environment for creating components to the DSB Designsystem.
10 lines • 150 kB
JavaScript
/*! For license information please see dsb.main.js.LICENSE.txt */
var dsbmain;(()=>{"use strict";var t={681:(t,e,n)=>{n.r(e),n.d(e,{Accordion:()=>Ge,AccordionItem:()=>gn,Article:()=>In,Badge:()=>Mn,Banner:()=>cr,Breadcrumbs:()=>_r,BreadcrumbsItem:()=>wr,Button:()=>Zr,Card:()=>$r,CenteredGrid:()=>io,ContentBlock:()=>Gn,Cta:()=>mo,DSBLinkButton:()=>Be,DSBSixtyFourty:()=>Pe,Flatcard:()=>Eo,FlatcardAccordion:()=>Ho,Flyout:()=>ti,Footer:()=>ai,Header:()=>Ki,HeaderForm:()=>Ui,HeaderMenu:()=>sc,HeaderSearch:()=>dc,Hero:()=>xc,Icon:()=>At,IconButton:()=>Hc,IconLink:()=>ts,IconLinkRow:()=>as,ImageBlock:()=>se,ImageLink:()=>ve,Li:()=>xs,Media:()=>Ws,Ol:()=>Es,Slide:()=>tu,Split:()=>au,Test:()=>Ue,Textfield:()=>xi,Ul:()=>Cs,UnderlineLink:()=>mu,Video:()=>xu});const r=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol();class i{constructor(t,e){if(e!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return r&&void 0===this.t&&(this.t=new CSSStyleSheet,this.t.replaceSync(this.cssText)),this.t}toString(){return this.cssText}}const c=new Map,s=t=>{let e=c.get(t);return void 0===e&&c.set(t,e=new i(t,o)),e},u=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,r)=>e+(t=>{if(t instanceof i)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1]),t[0]);return s(n)},a=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>s("string"==typeof t?t:t+""))(e)})(t):t;var l,f,p,y;const h={toAttribute(t,e){switch(e){case Boolean:t=t?"":null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},b=(t,e)=>e!==t&&(e==e||t==t),d={attribute:!0,type:String,converter:h,reflect:!1,hasChanged:b};class v extends HTMLElement{constructor(){super(),this.Πi=new Map,this.Πo=void 0,this.Πl=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this.Πh=null,this.u()}static addInitializer(t){var e;null!==(e=this.v)&&void 0!==e||(this.v=[]),this.v.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this.Πp(n,e);void 0!==r&&(this.Πm.set(r,n),t.push(r))})),t}static createProperty(t,e=d){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||d}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this.Πm=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static Πp(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this.Πg=new Promise((t=>this.enableUpdating=t)),this.L=new Map,this.Π_(),this.requestUpdate(),null===(t=this.constructor.v)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this.ΠU)&&void 0!==e?e:this.ΠU=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this.ΠU)||void 0===e||e.splice(this.ΠU.indexOf(t)>>>0,1)}Π_(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this.Πi.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{r?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style");n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})),this.Πl&&(this.Πl(),this.Πo=this.Πl=void 0)}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})),this.Πo=new Promise((t=>this.Πl=t))}attributeChangedCallback(t,e,n){this.K(t,n)}Πj(t,e,n=d){var r,o;const i=this.constructor.Πp(t,n);if(void 0!==i&&!0===n.reflect){const c=(null!==(o=null===(r=n.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==o?o:h.toAttribute)(e,n.type);this.Πh=t,null==c?this.removeAttribute(i):this.setAttribute(i,c),this.Πh=null}}K(t,e){var n,r,o;const i=this.constructor,c=i.Πm.get(t);if(void 0!==c&&this.Πh!==c){const t=i.getPropertyOptions(c),s=t.converter,u=null!==(o=null!==(r=null===(n=s)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof s?s:null)&&void 0!==o?o:h.fromAttribute;this.Πh=c,this[c]=u(e,t.type),this.Πh=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],e)?(this.L.has(t)||this.L.set(t,e),!0===n.reflect&&this.Πh!==t&&(void 0===this.Πk&&(this.Πk=new Map),this.Πk.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this.Πg=this.Πq())}async Πq(){this.isUpdatePending=!0;try{for(await this.Πg;this.Πo;)await this.Πo}catch(t){Promise.reject(t)}const t=this.performUpdate();return null!=t&&await t,!this.isUpdatePending}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this.Πi&&(this.Πi.forEach(((t,e)=>this[e]=t)),this.Πi=void 0);let e=!1;const n=this.L;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this.Π$()}catch(t){throw e=!1,this.Π$(),t}e&&this.E(n)}willUpdate(t){}E(t){var e;null===(e=this.ΠU)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}Π$(){this.L=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this.Πg}shouldUpdate(t){return!0}update(t){void 0!==this.Πk&&(this.Πk.forEach(((t,e)=>this.Πj(e,this[e],t))),this.Πk=void 0),this.Π$()}updated(t){}firstUpdated(t){}}var m,g,O,w;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null===(f=(l=globalThis).reactiveElementPlatformSupport)||void 0===f||f.call(l,{ReactiveElement:v}),(null!==(p=(y=globalThis).reactiveElementVersions)&&void 0!==p?p:y.reactiveElementVersions=[]).push("1.0.0-rc.2");const j=globalThis.trustedTypes,S=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,P=`lit$${(Math.random()+"").slice(9)}$`,R="?"+P,k=`<${R}>`,z=document,I=(t="")=>z.createComment(t),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,E=t=>{var e;return x(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,L=/>/g,B=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,X=/'/g,M=/"/g,V=/^(?:script|style|textarea)$/i,T=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Z=T(1),H=T(2),A=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),U=new WeakMap,Y=z.createTreeWalker(z,129,null,!1),Q=(t,e)=>{const n=t.length-1,r=[];let o,i=2===e?"<svg>":"",c=C;for(let e=0;e<n;e++){const n=t[e];let s,u,a=-1,l=0;for(;l<n.length&&(c.lastIndex=l,u=c.exec(n),null!==u);)l=c.lastIndex,c===C?"!--"===u[1]?c=J:void 0!==u[1]?c=L:void 0!==u[2]?(V.test(u[2])&&(o=RegExp("</"+u[2],"g")),c=B):void 0!==u[3]&&(c=B):c===B?">"===u[0]?(c=null!=o?o:C,a=-1):void 0===u[1]?a=-2:(a=c.lastIndex-u[2].length,s=u[1],c=void 0===u[3]?B:'"'===u[3]?M:X):c===M||c===X?c=B:c===J||c===L?c=C:(c=B,o=void 0);const f=c===B&&t[e+1].startsWith("/>")?" ":"";i+=c===C?n+k:a>=0?(r.push(s),n.slice(0,a)+"$lit$"+n.slice(a)+P+f):n+P+(-2===a?(r.push(void 0),e):f)}const s=i+(t[n]||"<?>")+(2===e?"</svg>":"");return[void 0!==S?S.createHTML(s):s,r]};class N{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,i=0;const c=t.length-1,s=this.parts,[u,a]=Q(t,e);if(this.el=N.createElement(u,n),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=Y.nextNode())&&s.length<c;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(P)){const n=a[i++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+"$lit$").split(P),e=/([.?@])?(.*)/.exec(n);s.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?G:"@"===e[1]?tt:D})}else s.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(V.test(r.tagName)){const t=r.textContent.split(P),e=t.length-1;if(e>0){r.textContent=j?j.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],I()),Y.nextNode(),s.push({type:2,index:++o});r.append(t[e],I())}}}else if(8===r.nodeType)if(r.data===R)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(P,t+1));)s.push({type:7,index:o}),t+=P.length-1}o++}}static createElement(t,e){const n=z.createElement("template");return n.innerHTML=t,n}}function F(t,e,n=t,r){var o,i,c,s;if(e===A)return e;let u=void 0!==r?null===(o=n.Σi)||void 0===o?void 0:o[r]:n.Σo;const a=_(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==a&&(null===(i=null==u?void 0:u.O)||void 0===i||i.call(u,!1),void 0===a?u=void 0:(u=new a(t),u.T(t,n,r)),void 0!==r?(null!==(c=(s=n).Σi)&&void 0!==c?c:s.Σi=[])[r]=u:n.Σo=u),void 0!==u&&(e=F(t,u.S(t,e.values),u,r)),e}class ${constructor(t,e){this.l=[],this.N=void 0,this.D=t,this.M=e}u(t){var e;const{el:{content:n},parts:r}=this.D,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:z).importNode(n,!0);Y.currentNode=o;let i=Y.nextNode(),c=0,s=0,u=r[0];for(;void 0!==u;){if(c===u.index){let e;2===u.type?e=new q(i,i.nextSibling,this,t):1===u.type?e=new u.ctor(i,u.name,u.strings,this,t):6===u.type&&(e=new et(i,this,t)),this.l.push(e),u=r[++s]}c!==(null==u?void 0:u.index)&&(i=Y.nextNode(),c++)}return o}v(t){let e=0;for(const n of this.l)void 0!==n&&(void 0!==n.strings?(n.I(t,n,e),e+=n.strings.length-2):n.I(t[e])),e++}}class q{constructor(t,e,n,r){this.type=2,this.N=void 0,this.A=t,this.B=e,this.M=n,this.options=r}setConnected(t){var e;null===(e=this.P)||void 0===e||e.call(this,t)}get parentNode(){return this.A.parentNode}get startNode(){return this.A}get endNode(){return this.B}I(t,e=this){t=F(this,t,e),_(t)?t===W||null==t||""===t?(this.H!==W&&this.R(),this.H=W):t!==this.H&&t!==A&&this.m(t):void 0!==t._$litType$?this._(t):void 0!==t.nodeType?this.$(t):E(t)?this.g(t):this.m(t)}k(t,e=this.B){return this.A.parentNode.insertBefore(t,e)}$(t){this.H!==t&&(this.R(),this.H=this.k(t))}m(t){const e=this.A.nextSibling;null!==e&&3===e.nodeType&&(null===this.B?null===e.nextSibling:e===this.B.previousSibling)?e.data=t:this.$(z.createTextNode(t)),this.H=t}_(t){var e;const{values:n,_$litType$:r}=t,o="number"==typeof r?this.C(t):(void 0===r.el&&(r.el=N.createElement(r.h,this.options)),r);if((null===(e=this.H)||void 0===e?void 0:e.D)===o)this.H.v(n);else{const t=new $(o,this),e=t.u(this.options);t.v(n),this.$(e),this.H=t}}C(t){let e=U.get(t.strings);return void 0===e&&U.set(t.strings,e=new N(t)),e}g(t){x(this.H)||(this.H=[],this.R());const e=this.H;let n,r=0;for(const o of t)r===e.length?e.push(n=new q(this.k(I()),this.k(I()),this,this.options)):n=e[r],n.I(o),r++;r<e.length&&(this.R(n&&n.B.nextSibling,r),e.length=r)}R(t=this.A.nextSibling,e){var n;for(null===(n=this.P)||void 0===n||n.call(this,!1,!0,e);t&&t!==this.B;){const e=t.nextSibling;t.remove(),t=e}}}class D{constructor(t,e,n,r,o){this.type=1,this.H=W,this.N=void 0,this.V=void 0,this.element=t,this.name=e,this.M=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this.H=Array(n.length-1).fill(W),this.strings=n):this.H=W}get tagName(){return this.element.tagName}I(t,e=this,n,r){const o=this.strings;let i=!1;if(void 0===o)t=F(this,t,e,0),i=!_(t)||t!==this.H&&t!==A,i&&(this.H=t);else{const r=t;let c,s;for(t=o[0],c=0;c<o.length-1;c++)s=F(this,r[n+c],e,c),s===A&&(s=this.H[c]),i||(i=!_(s)||s!==this.H[c]),s===W?t=W:t!==W&&(t+=(null!=s?s:"")+o[c+1]),this.H[c]=s}i&&!r&&this.W(t)}W(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends D{constructor(){super(...arguments),this.type=3}W(t){this.element[this.name]=t===W?void 0:t}}class G extends D{constructor(){super(...arguments),this.type=4}W(t){t&&t!==W?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}class tt extends D{constructor(){super(...arguments),this.type=5}I(t,e=this){var n;if((t=null!==(n=F(this,t,e,0))&&void 0!==n?n:W)===A)return;const r=this.H,o=t===W&&r!==W||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==W&&(r===W||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this.H=t}handleEvent(t){var e,n;"function"==typeof this.H?this.H.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this.H.handleEvent(t)}}class et{constructor(t,e,n){this.element=t,this.type=6,this.N=void 0,this.V=void 0,this.M=e,this.options=n}I(t){F(this,t)}}const nt={Z:"$lit$",U:P,Y:R,q:1,X:Q,tt:$,it:E,st:F,et:q,ot:D,nt:G,rt:tt,lt:K,ht:et};var rt,ot,it,ct,st,ut;null===(g=(m=globalThis).litHtmlPlatformSupport)||void 0===g||g.call(m,N,q),(null!==(O=(w=globalThis).litHtmlVersions)&&void 0!==O?O:w.litHtmlVersions=[]).push("2.0.0-rc.3");(null!==(rt=(ut=globalThis).litElementVersions)&&void 0!==rt?rt:ut.litElementVersions=[]).push("3.0.0-rc.2");class at extends v{constructor(){super(...arguments),this.renderOptions={host:this},this.Φt=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();super.update(t),this.Φt=((t,e,n)=>{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let c=i._$litPart$;if(void 0===c){const t=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=c=new q(e.insertBefore(I(),t),t,void 0,n)}return c.I(t),c})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this.Φt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.Φt)||void 0===t||t.setConnected(!1)}render(){return A}}at.finalized=!0,at._$litElement$=!0,null===(it=(ot=globalThis).litElementHydrateSupport)||void 0===it||it.call(ot,{LitElement:at}),null===(st=(ct=globalThis).litElementPlatformSupport)||void 0===st||st.call(ct,{LitElement:at});const lt=u`
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */`;var ft,pt,yt,ht,bt,dt,vt,mt,gt,Ot,wt,jt,St,Pt,Rt,kt,zt,It,_t,xt,Et,Ct;function Jt(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const Lt=u`
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */`;function Bt(t){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Xt;function Mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vt(t,e){return(Vt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ht(t);if(e){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zt(this,n)}}function Zt(t,e){return!e||"object"!==Bt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ht(t){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var At=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vt(t,e)}(i,t);var e,n,r,o=Tt(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).icon="",t}return e=i,r=[{key:"styles",get:function(){return[Lt]}},{key:"properties",get:function(){return{icon:{type:String}}}}],(n=[{key:"render",value:function(){return H(Xt||(e=["",""],n||(n=e.slice(0)),Xt=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))),"arrow--left"===(t=this.icon)?Z(ft||(ft=Jt([' <svg xmlns="http://www.w3.org/2000/svg" style="transform: rotate(180deg)" data-name="Layer 1" viewBox="0 0 30 30"> <path d="M30 15L20 25h-7l8-8H0v-4h21l-8-8h7l10 10z"/> </svg> ']))):"arrow--right"===t?Z(pt||(pt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 30 30"> <path d="M30 15L20 25h-7l8-8H0v-4h21l-8-8h7l10 10z"/> </svg> ']))):"brand-shape"===t?Z(yt||(yt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1440 539"> <defs> <path id="a" d="M1440 150v448.7L344.36 687.69a400 400 0 01-105.3-5.4L0 637.98V150h1440z"/> </defs> <use fill-rule="evenodd" transform="translate(0 -150)" xlink:href="#a"/> </svg> ']))):"burger"===t?Z(ht||(ht=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -53 384 384"> <path d="M368 155H16a16 16 0 010-32h352a16 16 0 010 32zm0 0M368 32H16a16 16 0 010-32h352a16 16 0 010 32zm0 0M368 277H16a16 16 0 010-32h352a16 16 0 010 32zm0 0"/> </svg> ']))):"check"===t?Z(bt||(bt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 449 449"> <path d="M143 324L36 217 0 252l143 143L449 89l-36-35z"/> </svg> ']))):"cross"===t?Z(dt||(dt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <path d="M284.29 256L506.14 34.14a20 20 0 10-28.28-28.28L256 227.72 34.14 5.86A20 20 0 105.86 34.14L227.7 256 5.87 477.86a20 20 0 1028.28 28.28L256 284.3l221.86 221.85c3.9 3.9 9.02 5.86 14.14 5.86s10.24-1.95 14.14-5.86a20 20 0 000-28.28L284.3 256z"/> </svg> ']))):"customerservice"===t?Z(vt||(vt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"> <path fill-rule="evenodd" d="M41.9 5C43 5 44 6 44 7.1V53c0 1.1-1 2.1-2.1 2.1H18C17 55 16 54 16 52.9V7C16 6 17 5 18.1 5H42zm-9.7 45.8h-4.4V53h4.4v-2zm9.6-39.5H18.2v37.5h23.6V11.3zM33.2 8h-6.4v1h6.4v-1z"/> </svg> ']))):"dsb-logo--outlined"===t?Z(mt||(mt=Jt([' \x3c!-- [fix this] - i\'ve just added a stroke, nothing official --\x3e <svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 0 246.113 200.749"> <path d="M220.363 87.264l-42.885-74.168C172.42 4.362 164.776 0 154.786 0H69.25C59.264 0 51.61 4.362 46.555 13.096L3.749 87.264c-5.031 8.746-4.974 17.555.026 26.201l42.78 74.188c5.057 8.735 12.71 13.096 22.695 13.096h85.537c9.99 0 17.635-4.361 22.692-13.096l42.857-74.188c5.004-8.646 5.058-17.455.03-26.201" stroke-width="6" stroke="white" fill="none"></path> <path fill="#fff" d="M169.19 117.857h-9.121v-14.969h6.353c8.797 0 12.38 2.185 12.38 8.066 0 5.05-3.422 6.903-9.612 6.903m-9.121-37.704h6.272c5.291 0 10.584.423 10.584 6.074 0 6.259-4.394 7.461-11.237 7.461h-5.62V80.153zm19.546 18.287v-2.11c7.655-.982 10.75-5.58 10.75-11.76 0-11.76-11.077-14.024-21.256-14.024h-22.478v57.217h21.828c11.482 0 24.27-1.66 24.27-16.433 0-8.592-6.68-12.061-13.114-12.89m-64.779 30.228c-7.082 0-13.273-.603-20.278-2.27v-10.359c6.19 1.292 10.751 1.97 16.941 1.97 6.272 0 12.299-.917 12.299-7.248 0-12.815-28.67-1.618-28.67-24.836 0-12.437 11.238-16.282 22.885-16.282 5.459 0 10.912.454 16.37 1.112v10.058c-4.968-.66-8.306-.962-13.272-.962-5.136 0-11.65-.18-11.65 5.698 0 10.704 29.237 2.188 29.237 24.575 0 14.247-12.377 18.544-23.862 18.544m-58.587-11.036h-6.76V80.756h7.492c7.005 0 18.16 2.381 18.16 17.835 0 13.644-7.328 19.041-18.892 19.041m2.036-47.086H35.48v57.217h24.516c6.351 0 29.4-4.07 29.4-28.722 0-23.594-15.717-28.495-31.11-28.495"></path> </svg> ']))):"dsb-logo"===t?Z(gt||(gt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 224.113 200.749"> <path d="M220.363 87.264l-42.885-74.168C172.42 4.362 164.776 0 154.786 0H69.25C59.264 0 51.61 4.362 46.555 13.096L3.749 87.264c-5.031 8.746-4.974 17.555.026 26.201l42.78 74.188c5.057 8.735 12.71 13.096 22.695 13.096h85.537c9.99 0 17.635-4.361 22.692-13.096l42.857-74.188c5.004-8.646 5.058-17.455.03-26.201"/> <path fill="#fff" d="M169.19 117.857h-9.121v-14.969h6.353c8.797 0 12.38 2.185 12.38 8.066 0 5.05-3.422 6.903-9.612 6.903m-9.121-37.704h6.272c5.291 0 10.584.423 10.584 6.074 0 6.259-4.394 7.461-11.237 7.461h-5.62V80.153zm19.546 18.287v-2.11c7.655-.982 10.75-5.58 10.75-11.76 0-11.76-11.077-14.024-21.256-14.024h-22.478v57.217h21.828c11.482 0 24.27-1.66 24.27-16.433 0-8.592-6.68-12.061-13.114-12.89m-64.779 30.228c-7.082 0-13.273-.603-20.278-2.27v-10.359c6.19 1.292 10.751 1.97 16.941 1.97 6.272 0 12.299-.917 12.299-7.248 0-12.815-28.67-1.618-28.67-24.836 0-12.437 11.238-16.282 22.885-16.282 5.459 0 10.912.454 16.37 1.112v10.058c-4.968-.66-8.306-.962-13.272-.962-5.136 0-11.65-.18-11.65 5.698 0 10.704 29.237 2.188 29.237 24.575 0 14.247-12.377 18.544-23.862 18.544m-58.587-11.036h-6.76V80.756h7.492c7.005 0 18.16 2.381 18.16 17.835 0 13.644-7.328 19.041-18.892 19.041m2.036-47.086H35.48v57.217h24.516c6.351 0 29.4-4.07 29.4-28.722 0-23.594-15.717-28.495-31.11-28.495"/> </svg> ']))):"dsbplus"===t?Z(Ot||(Ot=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"> <g fill-rule="evenodd"> <path d="M42.7 4v5.7H37V14h5.7v5.7H47V14h5.7V9.7H47V4zM44.7 29c0-1.3-1.2-1.6-2.3-1.6H41v3.4h1.2c1.5 0 2.5-.3 2.5-1.8M42.4 32.9H41v3.7h2c1.3 0 2-.7 2-1.8 0-1.4-.7-1.9-2.6-1.9"/> <path d="M42.8 38.7h-4.6V25.4H43c2.2 0 4.5.5 4.5 3.3 0 1.4-.6 2.5-2.3 2.7v.5c1.4.2 2.9 1 2.9 3 0 3.4-2.8 3.8-5.3 3.8m-12.4.2c-1.5 0-2.9-.2-4.4-.4v-2.2c1.4.1 2.3.3 3.7.3 1.3 0 2.6-.3 2.6-1.8 0-3-6.2-.4-6.2-5.8 0-3 2.5-3.8 5-3.8l3.5.2v2.1l-2.9-.1c-1 0-2.5 0-2.5 1.4 0 2.5 6.3.6 6.3 5.8 0 3.3-2.7 4.3-5.1 4.3m-12.5-.2h-5.3V25.4h5c3.2 0 6.6 1.1 6.6 6.6 0 5.7-5 6.7-6.3 6.7m32.7-16.1h-11V17H34V9.7H20.5c-2 0-3.9 1-4.9 2.8L5.8 29.6c-1 1.8-1 4 0 5.7l9.8 17c1 1.8 2.9 2.9 5 2.9h19.6c2 0 4-1.1 5-2.8L55 35.3c1-1.8 1-4 0-5.7l-4.4-7z"/> <path d="M17.3 27.6h-1.6v9H17c2.5 0 4-1.5 4-4.7 0-3.6-2.3-4.3-3.8-4.3"/> </g> </svg> ']))):"flag--denmark"===t?Z(wt||(wt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <circle cx="256" cy="256" r="256" fill="#f0f0f0"/> <g fill="#d80027"> <path d="M200.3 222.6h309.5A256 256 0 00200.3 6.1v216.5zM133.6 222.6V31.1A256.2 256.2 0 002.2 222.6h131.4zM133.6 289.4H2.2a256.2 256.2 0 00131.4 191.5V289.4zM200.3 289.4v216.5a256 256 0 00309.5-216.5H200.3z"/> </g> </svg> ']))):"flag--england"===t?Z(jt||(jt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <circle cx="256" cy="256" r="256" fill="#f0f0f0"/> <g fill="#0052b4"> <path d="M53 100.1a255 255 0 00-44.2 89.1H142l-89-89zM503.2 189.2a255 255 0 00-44.1-89l-89.1 89h133.2zM8.8 322.8a255 255 0 0044.1 89l89-89H9zM411.9 53a255 255 0 00-89.1-44.2V142l89-89zM100.1 459a255 255 0 0089.1 44.2V370l-89 89zM189.2 8.8a255 255 0 00-89 44.1l89 89V9zM322.8 503.2a255 255 0 0089-44.1l-89-89.1v133.2zM370 322.8l89 89a255 255 0 0044.2-89H370z"/> </g> <g fill="#d80027"> <path d="M509.8 222.6H289.4V2.2a258.6 258.6 0 00-66.8 0v220.4H2.2a258.6 258.6 0 000 66.8h220.4v220.4a258.5 258.5 0 0066.8 0V289.4h220.4a258.5 258.5 0 000-66.8z"/> <path d="M322.8 322.8L437 437c5.3-5.2 10.3-10.7 15-16.4l-97.7-97.8h-31.5zM189.2 322.8L75 437c5.2 5.3 10.7 10.3 16.4 15l97.8-97.7v-31.5zM189.2 189.2L75 75a256.6 256.6 0 00-15 16.4l97.7 97.8h31.5zM322.8 189.2L437 75a256.3 256.3 0 00-16.4-15l-97.8 97.7v31.5z"/> </g> </svg> ']))):"magnifying-glass"===t?Z(St||(St=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 451 451"> <path d="M447 428L337.6 318.4A192.5 192.5 0 00192.4 0C86.3 0 0 86.3 0 192.3s86.3 192.3 192.3 192.3c48.2 0 92.3-17.8 126-47.2L428.2 447a13.2 13.2 0 0019 0 13.5 13.5 0 000-19zM27 192.3C27 101.1 101 27 192.3 27c91.1 0 165.3 74.2 165.3 165.3s-74.2 165.4-165.4 165.4A165.6 165.6 0 0127 192.3z"/> </svg> ']))):"pause"===t?Z(Pt||(Pt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 477.87 477.87"> <path d="M187.73 0H51.2a17.07 17.07 0 00-17.07 17.07V460.8c0 9.43 7.64 17.07 17.07 17.07h136.53c9.43 0 17.07-7.64 17.07-17.07V17.07C204.8 7.64 197.16 0 187.73 0zM426.67 0H290.13a17.07 17.07 0 00-17.06 17.07V460.8c0 9.43 7.64 17.07 17.06 17.07h136.54c9.42 0 17.06-7.64 17.06-17.07V17.07C443.73 7.64 436.1 0 426.67 0z"/> </svg> ']))):"percent"===t?Z(Rt||(Rt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"> <path fill-rule="nonzero" d="M25.5 51L42.1 9.3h-6.6L33.9 13h-9c-1.7-2.9-4.8-4.5-9.2-4.5C8.7 8.6 5 12.8 5 19.2 5 25.8 8.7 30 15.7 30c7 0 10.6-4.1 10.6-10.7v-1.4H32L18.7 51h6.8zm-9.8-26.2c-3.3 0-4.1-2.6-4.1-5.6 0-3 .8-5.5 4-5.5 3.5 0 4.2 2.5 4.2 5.5s-.8 5.6-4 5.6zm29.4 26.9c7 0 10.5-4.1 10.5-10.7 0-6.5-3.5-10.6-10.6-10.6-7 0-10.6 4.2-10.6 10.6 0 6.6 3.6 10.7 10.7 10.7zm0-5C41.7 46.7 41 44 41 41s.8-5.5 4-5.5c3.4 0 4.1 2.6 4.1 5.5 0 3-.7 5.7-4 5.7z"/> </svg> ']))):"pin"===t?Z(kt||(kt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <path d="M256 0C154 0 71 83 71 185c0 127 166 314 173 321 6 8 18 8 24 0 7-7 173-194 173-321C441 83 358 0 256 0zm0 279a93 93 0 110-187 93 93 0 010 187z"/> </svg> ']))):"play"===t?Z(zt||(zt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320"> <path d="M295.84 146.05l-256-144A15.99 15.99 0 0016 16v288a15.99 15.99 0 0023.84 13.95l256-144c5.02-2.85 8.16-8.16 8.16-13.95s-3.14-11.1-8.16-13.95z"/> </svg> ']))):"plus"===t?Z(It||(It=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 448"> <path d="M272 184a8 8 0 01-8-8V0h-80v176a8 8 0 01-8 8H0v80h176a8 8 0 018 8v176h80V272a8 8 0 018-8h176v-80zm0 0"/> </svg> ']))):"ticketservice"===t?Z(_t||(_t=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"> <g fill-rule="evenodd"> <path d="M27.2 8.6H13.1a.9.9 0 01-.9-.9c0-.5.4-.9.9-.9h14.1c.5 0 .9.4.9 1 0 .4-.4.8-.9.8zm0 4.4H13.1a.9.9 0 01-.9-1c0-.4.4-.8.9-.8h14.1c.5 0 .9.4.9.9s-.4.9-.9.9zm-9.9 18.6h-4.7v-1.2l1.5-.1v-4.6l-1.5-.2v-1l2-.6h1.1v6.4h1.6v1.3zM10 4.6v35.3h13l.4-3.6H13.2a.9.9 0 01-1-1c0-.4.5-.8 1-.8h10.4l2.7-20.2 4 .6V4.6H10z"/> <path d="M44.8 24l-14-2a1 1 0 01-.7-1c0-.5.5-.8 1-.8l13.8 1.9c.5 0 .9.5.8 1 0 .5-.4.8-.9.8zm-.5 4.4h-.1l-14-1.9a1 1 0 01-.7-1c.1-.5.5-.9 1-.8l14 1.9c.4 0 .7.5.7 1-.1.4-.5.8-.9.8zm-2.6 23.4l-14-1.9a1 1 0 01-.7-1c0-.5.5-.8 1-.8L41.8 50c.5 0 .9.5.8 1 0 .5-.4.8-.9.8zm-14-8c1-.8 3.3-2.4 3.4-3.8.1-.8-.3-1.2-1.2-1.3l-1.4-.2.2-1.2 2 .1c1.4.2 2.5.8 2.3 2.5-.2 1.7-2.2 3-3.5 4l3.2.5-.1 1.3-5.1-.7.1-1.3zm.9-26.3L24 53.1l20 2.7 4.3-35.6-19.7-2.7z"/> </g> </svg> ']))):"trafficinfo"===t?Z(xt||(xt=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"> <g fill-rule="evenodd"> <path d="M30.8 51.5H20.2l1.5-2h17.6l1.4 2h-9.9zm8.3-6.5h-3l1.6 2.3H23.3l1.5-2.3h-3L14 56h3l1.6-2.1H42.4l1.7 2.1H47l-7.9-11zM30.5 27.2l-14.8-.3.3-8s-.4-7 9-7h11c9.4 0 9 7 9 7l.3 8-14.8.3zm9.3 12.1a3 3 0 01-2.9-2.9 3 3 0 013-2.8 3 3 0 012.9 2.8 3 3 0 01-3 3zm-18.8 0a3 3 0 01-3-2.9 3 3 0 013-2.8 3 3 0 012.9 2.8 3 3 0 01-3 3zM30.5 6c1.6 0 2.8.8 2.8 1.8s-1.2 1.9-2.8 1.9c-1.6 0-2.8-.9-2.8-1.9 0-1 1.2-1.8 2.8-1.8zm17.4 16.2s-.2-8-2.5-13.4C43.2 3.5 30.8 4 30.5 4c-.3 0-12.7-.5-15 4.8-2.2 5.4-2.4 13.4-2.4 13.4s-.6 17 1.7 19c2.3 2.2 3.4 1.8 6.7 1.8h18c3.3 0 4.4.4 6.7-1.7 2.3-2.2 1.7-19 1.7-19z"/> </g> </svg> ']))):"user"===t?Z(Et||(Et=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <path d="M437 331c-28-28-61-49-97-61a148 148 0 10-168 0A255 255 0 000 512h40a216 216 0 01432 0h40c0-68-27-133-75-181zm-181-75a108 108 0 110-216 108 108 0 010 216z"/> </svg> ']))):"world"===t?Z(Ct||(Ct=Jt([' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.4 31.4"> <path d="M28.8 7l-.5.1-2.5.2-.7 1.2-.5-.2-2-1.8-.3-1-.4-1-1.3-1-1.4-.3v.6l1.4 1.5.7.8-.8.4-.7-.2-1-.4.1-.8-1.3-.5-.4 1.8-1.3.3.1 1 1.7.4.3-1.7 1.4.2.6.4h1l.8 1.4 1.8 2-.1.7-1.5-.2-2.6 1.3-1.9 2.2-.2 1h-.7l-1.3-.5-1.2.5.3 1.3.6-.6h.9v1.1l.7.3.8.8 1.2-.3 1.5.2 1.6.4.9.1 1.4 1.7 2.7 1.6-1.8 3.3-1.8.9-.7 2-2.7 1.7-.3 1a15.7 15.7 0 009.4-24z"/> <path d="M17.5 24l-1.1-2.2 1-2.2-1-.3-1.2-1.2-2.6-.6-.9-1.8v1h-.4l-2.2-3v-2.5L7.4 8.5 4.8 9H3l-.8-.6 1-.9-1 .3a15.7 15.7 0 0015.5 23.5l-.2-2 .7-2.8-.7-2.6zM5.8 5l2.8-.3L10 4l1.5.4 2.3-.1.8-1.3 1.1.2 2.8-.3.8-.8 1-.7 1.6.2h.6A15.6 15.6 0 003.6 5.6l2.2-.6zm10.6-3.4l1.6-1 1 .7-1.5 1.1-1.4.2-.7-.5 1-.5zm-4.8 0l.7.4 1-.3.5.9-2.2.5-1-.6s1-.6 1-.8z"/> </svg> ']))):void 0);var t,e,n}}])&&Mt(e.prototype,n),r&&Mt(e,r),i}(at);customElements.define("dsb-icon",At);const Wt=1,Ut=3,Yt=4,Qt=t=>(...e)=>({_$litDirective$:t,values:e});class Nt{constructor(t){}T(t,e,n){this.Σdt=t,this.M=e,this.Σct=n}S(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Ft=Qt(class extends Nt{constructor(t){var e;if(super(t),t.type!==Wt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).filter((e=>t[e])).join(" ")}update(t,[e]){if(void 0===this.bt){this.bt=new Set;for(const t in e)e[t]&&this.bt.add(t);return this.render(e)}const n=t.element.classList;this.bt.forEach((t=>{t in e||(n.remove(t),this.bt.delete(t))}));for(const t in e){const r=!!e[t];r!==this.bt.has(t)&&(r?(n.add(t),this.bt.add(t)):(n.remove(t),this.bt.delete(t)))}return A}}),$t=u`
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */`;function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Dt,Kt,Gt,te;function ee(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function re(t,e){return(re=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function oe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ce(t);if(e){var o=ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ie(this,n)}}function ie(t,e){return!e||"object"!==qt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ce(t){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var se=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&re(t,e)}(i,t);var e,n,r,o=oe(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).bg="",t.src="",t.alt="",t.aspect="",t.gradient="",t}return e=i,r=[{key:"styles",get:function(){return[$t]}},{key:"properties",get:function(){return{bg:{type:String},src:{type:String},alt:{type:String},aspect:{type:String},gradient:{type:String}}}}],(n=[{key:"getAspect",value:function(){return this.aspect.split("/").map((function(t,e){return"--aspect-".concat(e,": ").concat(t)})).join("; ")+";"}},{key:"render",value:function(){return Z(Dt||(Dt=ee(['\n <div class="container">\n <slot></slot>\n <slot name="right"></slot>\n\n ','\n\n <div\n class="','"\n style=',"\n >\n ","\n </div>\n </div>\n "])),this.gradient?Z(Kt||(Kt=ee([' <div class="gradient ','"></div> '])),this.gradient):"",Ft({box:!0,aspect:this.aspect||this.bg}),this.aspect?this.getAspect():void 0,this.bg?Z(Gt||(Gt=ee(['<div\n class="image"\n style="background-image: url(',');"\n ></div>'])),this.bg):Z(te||(te=ee(["<img src="," alt="," />"])),this.src,this.alt))}}])&&ne(e.prototype,n),r&&ne(e,r),i}(at);customElements.define("dsb-image-block",se);const ue=u`
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */`;function ae(t){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var le;function fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pe(t,e){return(pe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ye(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=be(t);if(e){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return he(this,n)}}function he(t,e){return!e||"object"!==ae(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function be(t){return(be=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var de,ve=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pe(t,e)}(i,t);var e,n,r,o=ye(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).overlap=!1,t.href="",t.src="",t.alt="",t.headline="",t.text="",t}return e=i,r=[{key:"styles",get:function(){return[ue]}},{key:"properties",get:function(){return{overlap:{type:Boolean},href:{type:String},src:{type:String},alt:{type:String},headline:{type:String},text:{type:String}}}}],(n=[{key:"render",value:function(){return Z(le||(t=["\n <a href=",' class="','">\n <dsb-image-block src='," alt=",' aspect="16/9">\n <slot></slot>\n <slot name="right"></slot>\n </dsb-image-block>\n <div class="content">\n <div class="headline">\n ',' <dsb-icon icon="arrow--right"></dsb-icon>\n </div>\n <div class="text">',"</div>\n </div>\n </a>\n "],e||(e=t.slice(0)),le=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))),this.href,Ft({overlap:this.overlap}),this.src,this.alt,this.headline,this.text);var t,e}}])&&fe(e.prototype,n),r&&fe(e,r),i}(at);function me(t){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oe(t,e){return(Oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function we(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Se(t);if(e){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}function je(t,e){return!e||"object"!==me(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Se(t){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}customElements.define("dsb-image-link",ve);var Pe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oe(t,e)}(i,t);var e,n,r,o=we(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).sixtyHref="#",t.sixtyText="Sixty Description...",t.sixtyHeadline="Sixty headline",t.sixtySrc="https://i.ibb.co/M2K3DSN/boats.jpg",t.sixtyAlt="sixty alt text",t.sixtyOverlap=!1,t.fourtyHref="#",t.fourtyText="Fourty description...",t.fourtyHeadline="Fourty headline",t.fourtySrc="https://i.ibb.co/pd5X6kx/image-dsb.jpg",t.fourtyOverlap=!1,t.fourtyAlt="fourty alt text",t}return e=i,r=[{key:"styles",get:function(){return[lt]}},{key:"properties",get:function(){return{sixtyHref:{type:String},sixtyText:{type:String},sixtyHeadline:{type:String},sixtySrc:{type:String},sixtyOverlap:{type:Boolean},sixtyAlt:{type:String},fourtyHref:{type:String},fourtyText:{type:String},fourtyHeadline:{type:String},fourtySrc:{type:String},fourtyOverlap:{type:Boolean},fourtyAlt:{type:String}}}}],(n=[{key:"render",value:function(){return Z(de||(t=['\n <div class="sixtyfourty">\n\n <div class="sixty">\n <dsb-image-link\n href=',"\n headline=","\n src=","\n text=","\n .overlap=","\n alt=",'>\n <slot name="sixtybadge"></slot>\n </dsb-image-link>\n </div>\n\n <div class="fourty">\n <dsb-image-link\n href=',"\n headline=","\n src=","\n text=","\n .overlap=","\n alt=",'>\n <slot name="fourtybadge"></slot>\n </dsb-image-link>\n </div>\n\n </div>'],e||(e=t.slice(0)),de=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))),this.sixtyHref,this.sixtyHeadline,this.sixtySrc,this.sixtyText,this.sixtyOverlap,this.sixtyAlt,this.fourtyHref,this.fourtyHeadline,this.fourtySrc,this.fourtyText,this.fourtyOverlap,this.fourtyAlt);var t,e}}])&&ge(e.prototype,n),r&&ge(e,r),i}(at);customElements.define("dsb-sixty-fourty",Pe);const Re=u`
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */`;function ke(t){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ze,Ie;function _e(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function xe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ee(t,e){return(Ee=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ce(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Le(t);if(e){var o=Le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Je(this,n)}}function Je(t,e){return!e||"object"!==ke(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Le(t){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Be=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ee(t,e)}(i,t);var e,n,r,o=Ce(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).icon=!1,t.url="",t.text="",t.variant="primary",t}return e=i,r=[{key:"styles",get:function(){return[Re]}},{key:"properties",get:function(){return{url:{type:String},text:{type:String},variant:{type:String}}}}],(n=[{key:"render",value:function(){return Z(ze||(ze=_e(["<a href=",' class="','">\n ',"\n ",'\n <span class="hover" />\n </a>'])),this.url,this.variant,this.icon?Z(Ie||(Ie=_e(["<dsb-icon icon=","></dsb-icon>"])),this.icon):"",this.text)}}])&&xe(e.prototype,n),r&&xe(e,r),i}(at);customElements.define("dsb-link-button",Be);const Xe=u`
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */`;function Me(t){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ve;function Te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ze(t,e){return(Ze=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function He(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=We(t);if(e){var o=We(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ae(this,n)}}function Ae(t,e){return!e||"object"!==Me(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function We(t){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ue=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ze(t,e)}(i,t);var e,n,r,o=He(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).headline="Default headline",t.fancy=!1,t}return e=i,r=[{key:"styles",get:function(){return[Xe]}},{key:"properties",get:function(){return{headline:{type:String},fancy:{type:Boolean,reflect:!0}}}}],(n=[{key:"render",value:function(){return Z(Ve||(t=["<p>\n My new test. With a ",". And <slot></slot>\n </p>"],e||(e=t.slice(0)),Ve=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))),this.headline);var t,e}}])&&Te(e.prototype,n),r&&Te(e,r),i}(at);customElements.define("dsb-test",Ue);const Ye=u`
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */`;function Qe(t){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ne;function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $e(t,e){return($e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ke(t);if(e){var o=Ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return De(this,n)}}function De(t,e){return!e||"object"!==Qe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ke(t){return(Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ge=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$e(t,e)}(i,t);var e,n,r,o=qe(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).headline="",t}return e=i,r=[{key:"styles",get:function(){return[Ye]}},{key:"properties",get:function(){return{headline:{type:String}}}}],(n=[{key:"render",value:function(){return Z(Ne||(t=['\n <div class="headline">\n <slot name="headline"></slot>\n </div>\n <slot></slot>\n '],e||(e=t.slice(0)),Ne=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))));var t,e}}])&&Fe(e.prototype,n),r&&Fe(e,r),i}(at);customElements.define("dsb-accordion",Ge);const tn=u`
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */`,en=function(){return"-"+Math.random().toString(36).substr(2,9)};function nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nn(Object(n),!0).forEach((function(e){on(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function on(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var r,o,i=[],c=!0,s=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return sn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var un,an={getState:function(t){var e=getComputedStyle(t),n=e.width,r=e.height,o=t.getBoundingClientRect(),i=o.left,c=o.right,s=o.top,u=o.bottom;return{el:t,width:parseInt(n),height:parseInt(r),left:i,right:c,top:s,bottom:u}},expand:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2