@kartverket/geonorge-web-components 4.0.5 → 4.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.geonorge=e():(t.geonorge=t.geonorge||{},t.geonorge.GnShortcutButton=e())}(self,(()=>(()=>{var t={72:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e}),d=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GnDialog=void 0;const l=n(3128),c=n(5979),u=d(n(3437)),p=d(n(5340));let A=class extends l.CustomElement{constructor(){super(),this.handleClickOutside=t=>{const e=(0,l.getShadowRootElement)(this,"#dialog-content"),n=this.shadowRoot.querySelector("slot").assignedElements().some((e=>!!e.contains(t.target))),o=e.contains(t.target);!e||n||o||this.hideDialog()},this.hideDialog=()=>{this.setAttribute("show","false")},this.keyDownFunction=t=>{if(27!==t.keyCode)return null;this.hideDialog()},(0,c.addGlobalStylesheet)("gn-dialog-styles",p.default)}connectedCallback(){const t=(0,l.getShadowRootElement)(this,"#close-dialog-button");t.innerHTML=u.default,t.addEventListener("click",this.hideDialog),(0,l.getShadowRootElement)(this,"#dialog-container").addEventListener("click",this.handleClickOutside),document.addEventListener("keydown",this.keyDownFunction,!1)}disconnectedCallback(){(0,l.getShadowRootElement)(this,"#close-dialog-button").removeEventListener("click",this.hideDialog),(0,l.getShadowRootElement)(this,"#dialog-container").removeEventListener("click",this.handleClickOutside),document.removeEventListener("keydown",this.keyDownFunction,!1)}shouldShowDialog(t){return""===(null==t?void 0:t.toString())||"true"===(null==t?void 0:t.toString())}shouldHaveNoPadding(t){return""===(null==t?void 0:t.toString())||"true"===(null==t?void 0:t.toString())}showMenuChanged(){const t=this.shouldShowDialog(this.show),e=(0,l.getShadowRootElement)(this,"#dialog-container");t?null==e||e.classList.add("visible"):null==e||e.classList.remove("visible")}nopaddingChanged(){const t=this.shouldHaveNoPadding(this.nopadding),e=(0,l.getShadowRootElement)(this,"#dialog-content");t?e.classList.add("noPadding"):e.classList.remove("noPadding")}overflowChanged(){var t;const e=(null===(t=this.overflow)||void 0===t?void 0:t.length)?this.overflow:"visible";(0,l.getShadowRootElement)(this,"#dialog-content").style.overflow=e}widthChanged(){(0,l.getShadowRootElement)(this,"#dialog-content").style.maxWidth=this.width}setup(t){}};e.GnDialog=A,s([(0,l.Toggle)()],A.prototype,"show",void 0),s([(0,l.Toggle)()],A.prototype,"nopadding",void 0),s([(0,l.Prop)()],A.prototype,"width",void 0),s([(0,l.Prop)()],A.prototype,"overflow",void 0),s([(0,l.Watch)("show")],A.prototype,"showMenuChanged",null),s([(0,l.Watch)("nopadding")],A.prototype,"nopaddingChanged",null),s([(0,l.Watch)("overflow")],A.prototype,"overflowChanged",null),s([(0,l.Watch)("width")],A.prototype,"widthChanged",null),e.GnDialog=A=s([(0,l.Component)({tag:"gn-dialog",template:Promise.resolve().then((()=>a(n(6622)))),style:Promise.resolve().then((()=>a(n(3570))))})],A)},164:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,r,i){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(o)for(var a=0;a<this.length;a++){var d=this[a][0];null!=d&&(s[d]=!0)}for(var l=0;l<t.length;l++){var c=[].concat(t[l]);o&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},169:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Dispatch=e.addEventListeners=e.Listen=void 0;const o=n(2466);e.Listen=(t,e)=>(n,o)=>{n.constructor.listeners||(n.constructor.listeners=[]),n.constructor.listeners.push({selector:e,eventName:t,handler:n[o]})},e.addEventListeners=t=>{if(t.constructor.listeners){const e=t.shadowRoot||t;for(const n of t.constructor.listeners){const o=n.selector?e.querySelector(n.selector)?e.querySelector(n.selector):null:t;o&&o.addEventListener(n.eventName,(e=>{n.handler.call(t,e)}))}}},e.Dispatch=t=>(e,n)=>{Object.defineProperty(e,n,{get:function(){const e=this;return{emit(r){const i=t||o.toDotCase(n);e.dispatchEvent(new CustomEvent(i,r))}}}})}},376:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e}),d=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function s(t){try{d(o.next(t))}catch(t){i(t)}}function a(t){try{d(o.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}d((o=o.apply(t,e||[])).next())}))},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GnShortcutButton=void 0;const c=n(3128),u=n(3096),p=n(72),A=n(9950),h=n(1534),g=n(1660),b=n(8434),f=n(5979),m=n(8914),C=l(n(9633)),y=l(n(3572));let v=class extends c.CustomElement{constructor(){super(),(0,f.addGlobalStylesheet)("gn-shortcut-button-styles",y.default)}setup(t){this.connect(t.container),t.id&&(this.id=t.id)}connectedCallback(){this.addShortcutDialogElement=(0,c.getShadowRootElement)(this,"#add-shortcut-dialog"),this.removeShortcutDialogElement=(0,c.getShadowRootElement)(this,"#remove-shortcut-dialog"),this.saveShortcutButtonElement=(0,c.getShadowRootElement)(this,"#save-shortcut-button"),this.removeShortcutButtonElement=(0,c.getShadowRootElement)(this,"#remove-shortcut-button"),this.cancelAddShortcutButtonElement=(0,c.getShadowRootElement)(this,"#cancel-add-shortcut-button"),this.cancelRemoveShortcutButtonElement=(0,c.getShadowRootElement)(this,"#cancel-remove-shortcut-button"),new u.GnButton,new p.GnDialog,new A.GnFieldContainer,new h.GnInput,new g.BodyText,new b.HeadingText,this.initShortcutNameInput()}disconnectedCallback(){}getShortcutItem(t,e){return d(this,void 0,void 0,(function*(){try{return yield(0,m.fetchShortcutItem)(t,e,window.location.href)}catch(t){console.error("Error fetching shortcut items:",t)}}))}saveShortcut(t){const e={name:this.shortcutName||document.title,url:window.location.href};(0,m.postShortcutItem)(this.environment,t,e).then((()=>{this.replaceShortcutButton(!0)})).catch((t=>{console.error("Error saving shortcut:",t)}))}removeShortcut(t){(0,m.deleteShortcutItem)(this.environment,t,{url:window.location.href}).then((()=>{this.replaceShortcutButton(!1)})).catch((t=>{console.error("Error removing shortcut:",t)}))}openDialog(t){this.shortcutNameInputElement.value=document.title,t?(this.removeShortcutDialogElement.setAttribute("show","true"),this.removeShortcutDialogElement.setAttribute("aria-hidden","false"),this.addShortcutDialogElement.removeAttribute("show")):(this.addShortcutDialogElement.setAttribute("show","true"),this.addShortcutDialogElement.setAttribute("aria-hidden","false"),this.removeShortcutDialogElement.removeAttribute("show"))}closeDialog(){this.addShortcutDialogElement.removeAttribute("show"),this.addShortcutDialogElement.setAttribute("aria-hidden","true"),this.removeShortcutDialogElement.removeAttribute("show"),this.removeShortcutDialogElement.setAttribute("aria-hidden","true")}renderShortcutButton(t){const e=document.createElement("button");return e.setAttribute("id","gn-shortcut-button"),e.setAttribute("role","button"),e.setAttribute("aria-pressed","false"),e.classList.add("gn-shortcut-button"),t?(e.innerHTML=C.default,e.setAttribute("aria-label","en"===this.language?"Remove shortcut to this page":"Fjern snarvei for denne siden"),e.classList.add("active")):(e.innerHTML=C.default,e.setAttribute("aria-label","en"===this.language?"Add shortcut to this page":"Lagre snarvei for denne siden"),e.classList.remove("active")),this.saveShortcutButtonElement.onclick=()=>{const t=this.getAuthToken();t&&(this.saveShortcut(t),this.closeDialog())},this.removeShortcutButtonElement.onclick=()=>{const t=this.getAuthToken();t&&(this.removeShortcut(t),this.closeDialog())},this.cancelAddShortcutButtonElement.onclick=()=>this.closeDialog(),this.cancelRemoveShortcutButtonElement.onclick=()=>this.closeDialog(),e.onclick=()=>this.openDialog(t),e.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.click())})),e.addEventListener("focus",(()=>{e.setAttribute("aria-pressed","true")})),e.addEventListener("blur",(()=>{e.setAttribute("aria-pressed","false")})),e}replaceShortcutButton(t){const e=this.renderShortcutButton(t);if(this.shortcutButton)this.shortcutButton.replaceWith(e);else{const t=(0,f.getDocumentHeading)();t&&t.after(e)}this.shortcutButton=e}appendShortcutButtonAfterFirstHeading(t){const e=document.createElement("div");e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="flex-start";const n=(0,f.getDocumentHeading)();n?(n.style.display="inline-block",n.parentNode.insertBefore(e,n),e.appendChild(n),this.replaceShortcutButton(t)):console.error("First heading or shortcut button is missing")}initShortcutNameInput(){this.shortcutNameInputElement=(0,c.getShadowRootElement)(this,"#shortcut-name-input"),this.shortcutNameInputElement.addEventListener("input",(()=>{var t,e;this.shortcutName=this.shortcutNameInputElement.value,this.shortcutName.trim()?null===(t=this.saveShortcutButtonElement.firstElementChild)||void 0===t||t.removeAttribute("disabled"):null===(e=this.saveShortcutButtonElement.firstElementChild)||void 0===e||e.setAttribute("disabled","true")})),this.shortcutNameInputElement.addEventListener("keydown",(t=>{"Enter"===t.key&&(t.preventDefault(),this.shortcutName.trim()&&this.saveShortcutButtonElement.click())}))}tokenChanged(){return d(this,void 0,void 0,(function*(){const t=null==this?void 0:this.token;if(!t)return void console.error("No token found");this.environment=this.environment||"dev",this.language=this.language||"en";const e=!!(yield this.getShortcutItem(this.environment,t));this.style.display="block",this.appendShortcutButtonAfterFirstHeading(e)}))}static setup(t,e){setTimeout((()=>{const n=(0,c.getElement)(t);n?e&&e.getAuthToken?(n.getAuthToken=e.getAuthToken,n.token=e.getAuthToken()):console.error("getAuthToken function is required in options."):console.error(`Element with selector "${t}" not found.`)}))}};e.GnShortcutButton=v,s([(0,c.Prop)()],v.prototype,"id",void 0),s([(0,c.Prop)()],v.prototype,"language",void 0),s([(0,c.Prop)()],v.prototype,"environment",void 0),s([(0,c.Prop)()],v.prototype,"token",void 0),s([(0,c.Watch)("token")],v.prototype,"tokenChanged",null),e.GnShortcutButton=v=s([(0,c.Component)({tag:"gn-shortcut-button",template:Promise.resolve().then((()=>a(n(8254)))),style:Promise.resolve().then((()=>a(n(3595))))})],v)},1040:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,':host([block]){display:block}:host(:not([block])){display:inline-block}:host([fullwidth]){display:block}:host([fullwidth]) ::slotted(input){width:100%}:host([width]) ::slotted(input[type=text]),:host([width]) ::slotted(input[type=number]),:host([width]) ::slotted(input[type=email]),:host([width]) ::slotted(input[type=tel]),:host([width]) ::slotted(input[type=date]),:host([width]) ::slotted(input[type=datetime-local]),:host([width]) ::slotted(input[type=time]),:host([width]) ::slotted(input[type=url]),:host([width]) ::slotted(input[type=search]),:host([width]) ::slotted(input[type=password]),:host([width]) ::slotted(input:not([type])){width:100%}::slotted(input[type=text]),::slotted(input[type=number]),::slotted(input[type=email]),::slotted(input[type=tel]),::slotted(input[type=date]),::slotted(input[type=datetime-local]),::slotted(input[type=time]),::slotted(input[type=url]),::slotted(input[type=search]),::slotted(input[type=password]),::slotted(input:not([type])){-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-border-radius:4px;border-radius:4px;box-sizing:border-box;font-family:"Open Sans",sans-serif;font-size:16px;font-size:12pt;padding:0 8px;height:32px;box-shadow:none;position:relative;z-index:1;background-color:#fff;border:1px solid #d8d8d8;color:#2f3940}::slotted(input[type=text]:disabled),::slotted(input[type=number]:disabled),::slotted(input[type=email]:disabled),::slotted(input[type=tel]:disabled),::slotted(input[type=date]:disabled),::slotted(input[type=datetime-local]:disabled),::slotted(input[type=time]:disabled),::slotted(input[type=url]:disabled),::slotted(input[type=search]:disabled),::slotted(input[type=password]:disabled),::slotted(input:not([type]):disabled){background-color:#f4f4f4;color:#707070;border:1px solid #dedede;cursor:not-allowed}::slotted(input[type=checkbox]),::slotted(input[type=radio]){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #2f3940;font:inherit;color:currentColor;width:16px;height:16px;margin:0 6px 0 0}::slotted(input[type=checkbox]:checked),::slotted(input[type=radio]:checked){border-color:#3767c7}::slotted(input[type=checkbox]:focus-visible),::slotted(input[type=radio]:focus-visible){outline:max(2px,.1em) solid #3767c7;outline-offset:max(2px,.1em)}::slotted(input[type=checkbox]){-webkit-border-radius:3px;border-radius:3px;vertical-align:text-top}::slotted(input[type=checkbox]:checked)::before{background-color:#3767c7;content:"✓";line-height:13px;color:#fff;display:inline-block;vertical-align:top;width:100%}::slotted(input[type=checkbox]:disabled){background-color:#dedede;border-color:#dedede;cursor:not-allowed}::slotted(input[type=checkbox]:checked:disabled)::before{background-color:#dedede;color:#707070}::slotted(input[type=radio]){-webkit-border-radius:50%;border-radius:50%;transform:translateY(-0.075em);display:inline-grid;place-content:center}::slotted(input[type=radio])::before{-webkit-border-radius:50%;border-radius:50%;content:"";width:8px;height:8px;transform:scale(0);transition:120ms transform ease-in-out}::slotted(input[type=radio]:checked)::before{background-color:#3767c7;transform:scale(1)}::slotted(input[type=radio]:disabled){border-color:#dedede}::slotted(input[type=radio]:checked:disabled)::before{background-color:#dedede;transform:scale(1)}',"",{version:3,sources:["webpack://./stories/gn-input/template.scss","webpack://./style/variables/_typography.scss","webpack://./style/variables/_colors.scss"],names:[],mappings:"AAAA,eAKA,aACI,CAAA,qBAGJ,oBACI,CAAA,mBAGJ,aACI,CAAA,oCACA,UACI,CAAA,2eAKJ,UAWI,CAAA,sUAIR,uBAWmC,CAAA,oBAAA,CAAA,eAAA,CAAA,yBACM,CAAA,iBAAA,CAAA,qBACrC,CAAA,kCCjDW,CAAA,cDmDX,CAAA,cACA,CAAA,aACA,CAAA,WACA,CAAA,eACA,CAAA,iBACA,CAAA,SACA,CAAA,qBACA,CAAA,wBACA,CAAA,aEpDU,CAAA,yaFwDd,wBE/BsB,CAAA,aAEN,CAAA,wBF0CZ,CAAA,kBACA,CAAA,6DAGJ,uBAEmC,CAAA,oBAAA,CAAA,eAAA,CAAA,wBAC/B,CAAA,YACA,CAAA,kBACA,CAAA,UACA,CAAA,WACA,CAAA,gBACA,CAAA,6EAGJ,oBE5Ee,CAAA,yFFiFf,mCAEI,CAAA,4BACA,CAAA,gCAGJ,yBACyC,CAAA,iBAAA,CAAA,uBACrC,CAAA,gDAIA,wBE7FW,CAAA,WF+FP,CAAA,gBACA,CAAA,UACA,CAAA,oBACA,CAAA,kBACA,CAAA,UACA,CAAA,yCAIR,wBEtFkB,CAAA,oBAAA,CAAA,kBFyFd,CAAA,yDAIA,wBE7Fc,CAAA,aACF,CAAA,6BFkGhB,yBACyC,CAAA,iBAAA,CAAA,8BACrC,CAAA,mBACA,CAAA,oBACA,CAAA,qCACA,yBACyC,CAAA,iBAAA,CAAA,UACrC,CAAA,SACA,CAAA,UACA,CAAA,kBACA,CAAA,sCACA,CAAA,6CAKJ,wBErIW,CAAA,kBFuIP,CAAA,sCAIR,oBEzHkB,CAAA,sDF8Hd,wBE9Hc,CAAA,kBFgIV",sourcesContent:['@use "../../style/mixins/appearance";\n@use "../../style/mixins/border-radius";\n@use "../../style/variables/colors";\n@use "../../style/variables/typography";\n\n:host([block]) {\n display: block;\n}\n\n:host(:not([block])) {\n display: inline-block;\n}\n\n:host([fullwidth]) {\n display: block;\n ::slotted(input) {\n width: 100%;\n }\n}\n\n:host([width]) {\n ::slotted(input[type="text"]),\n ::slotted(input[type="number"]),\n ::slotted(input[type="email"]),\n ::slotted(input[type="tel"]),\n ::slotted(input[type="date"]),\n ::slotted(input[type="datetime-local"]),\n ::slotted(input[type="time"]),\n ::slotted(input[type="url"]),\n ::slotted(input[type="search"]),\n ::slotted(input[type="password"]),\n ::slotted(input:not([type])) {\n width: 100%;\n }\n}\n\n::slotted(input[type="text"]),\n::slotted(input[type="number"]),\n::slotted(input[type="email"]),\n::slotted(input[type="tel"]),\n::slotted(input[type="date"]),\n::slotted(input[type="datetime-local"]),\n::slotted(input[type="time"]),\n::slotted(input[type="url"]),\n::slotted(input[type="search"]),\n::slotted(input[type="password"]),\n::slotted(input:not([type])) {\n @include appearance.appearance(none);\n @include border-radius.border-radius(4px);\n box-sizing: border-box;\n font-family: typography.$default-font;\n font-size: 16px;\n font-size: 12pt;\n padding: 0 8px;\n height: 32px;\n box-shadow: none;\n position: relative;\n z-index: 1;\n background-color: #fff;\n border: 1px solid colors.$default-border;\n color: colors.$default-text;\n}\n\n::slotted(input[type="text"]:disabled),\n::slotted(input[type="number"]:disabled),\n::slotted(input[type="email"]:disabled),\n::slotted(input[type="tel"]:disabled),\n::slotted(input[type="date"]:disabled),\n::slotted(input[type="datetime-local"]:disabled),\n::slotted(input[type="time"]:disabled),\n::slotted(input[type="url"]:disabled),\n::slotted(input[type="search"]:disabled),\n::slotted(input[type="password"]:disabled),\n::slotted(input:not([type]):disabled) {\n background-color: colors.$disabled-background;\n color: colors.$disabled-text;\n border: 1px solid colors.$disabled-border;\n cursor: not-allowed;\n}\n\n::slotted(input[type="checkbox"]),\n::slotted(input[type="radio"]) {\n @include appearance.appearance(none);\n border: 2px solid colors.$default-text;\n font: inherit;\n color: currentColor;\n width: 16px;\n height: 16px;\n margin: 0 6px 0 0;\n}\n\n::slotted(input[type="checkbox"]:checked),\n::slotted(input[type="radio"]:checked) {\n border-color: colors.$primary-text;\n}\n\n::slotted(input[type="checkbox"]:focus-visible),\n::slotted(input[type="radio"]:focus-visible) {\n outline: max(2px, 0.1em) solid colors.$primary-text;\n outline-offset: max(2px, 0.1em);\n}\n\n::slotted(input[type="checkbox"]) {\n @include border-radius.border-radius(3px);\n vertical-align: text-top;\n}\n\n::slotted(input[type="checkbox"]:checked) {\n &::before {\n background-color: colors.$primary-text;\n content: "✓";\n line-height: 13px;\n color: #fff;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n }\n}\n\n::slotted(input[type="checkbox"]:disabled) {\n background-color: colors.$disabled-border;\n border-color: colors.$disabled-border;\n cursor: not-allowed;\n}\n\n::slotted(input[type="checkbox"]:checked:disabled) {\n &::before {\n background-color: colors.$disabled-border;\n color: colors.$disabled-text;\n }\n}\n\n::slotted(input[type="radio"]) {\n @include border-radius.border-radius(50%);\n transform: translateY(-0.075em);\n display: inline-grid;\n place-content: center;\n &::before {\n @include border-radius.border-radius(50%);\n content: "";\n width: 8px;\n height: 8px;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n }\n}\n\n::slotted(input[type="radio"]:checked) {\n &::before {\n background-color: colors.$primary-text;\n transform: scale(1);\n }\n}\n\n::slotted(input[type="radio"]:disabled) {\n border-color: colors.$disabled-border;\n}\n\n::slotted(input[type="radio"]:checked:disabled) {\n &::before {\n background-color: colors.$disabled-border;\n transform: scale(1);\n }\n}\n','$default-font: "Open Sans", sans-serif;\n$header-font: "Raleway", sans-serif;\n$default-font-size: 15px;\n',"$body-background: #ffffff;\n$navigation-bar-background: #f7f7f7;\n$hover-background: rgba(0,0,0,.05);\n$default-border: #d8d8d8;\n\n$default-background: #eee;\n$default-background-hover: #ddd;\n$default-text:#2F3940;\n\n$light-gray: #f6f5f4;\n\n$primary-brand: #FE5000;\n\n$primary-background: #3767C7;\n$primary-background-hover: #FE5000;\n$primary-text: #3767C7;\n$primary-text-hover:#0056b3;\n\n\n$success-background: #06A755;\n$success-background-hover: #009745;\n$success-text: #06A755;\n\n\n$warning-background: #C38621;\n$warning-background-hover: #B37611;\n$warning-text: #C38621;\n\n$danger-background: #E00d0D;\n$danger-background-hover: #D00000;\n$danger-text: #E00d0D;\n\n$disabled-background: #f4f4f4;\n$disabled-border: #dedede;\n$disabled-text: #707070;\n\n\n$light-green: #8fff33;\n$light-yellow: #ffEb3b;\n$light-red: #ff4a2e;\n"],sourceRoot:""}]);const a=s},1063:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Watch=void 0;const o=n(2466);e.Watch=t=>(e,n)=>{e.constructor.watchAttributes||(e.constructor.watchAttributes={}),e.constructor.watchAttributes[o.toKebabCase(t)]=n,e.constructor.propsInit||(e.constructor.propsInit={}),e.constructor.propsInit[t]=null}},1534:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.GnInput=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super()}widthChanged(){(0,d.getShadowRootElement)(this,"#input-container").style.width=this.width}setup(t){}};e.GnInput=l,s([(0,d.Toggle)()],l.prototype,"block",void 0),s([(0,d.Toggle)()],l.prototype,"fullwidth",void 0),s([(0,d.Prop)()],l.prototype,"width",void 0),s([(0,d.Watch)("width")],l.prototype,"widthChanged",null),e.GnInput=l=s([(0,d.Component)({tag:"gn-input",template:Promise.resolve().then((()=>a(n(6496)))),style:Promise.resolve().then((()=>a(n(1040))))})],l)},1660:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.BodyText=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super()}setup(t){}};e.BodyText=l,e.BodyText=l=s([(0,d.Component)({tag:"body-text",template:Promise.resolve().then((()=>a(n(2698)))),style:Promise.resolve().then((()=>a(n(2576))))})],l)},1896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o="<template>\n <slot></slot>\n</template>\n"},2466:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tryParseInt=e.toDotCase=e.toCamelCase=e.toKebabCase=void 0,e.toKebabCase=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),e.toCamelCase=t=>t.toLowerCase().replace(/(\-\w)/g,(t=>t[1].toUpperCase())),e.toDotCase=t=>t.replace(/(?!^)([A-Z])/g," $1").replace(/[_\s]+(?=[a-zA-Z])/g,".").toLowerCase(),e.tryParseInt=t=>parseInt(t)==t&&NaN!==parseFloat(t)?parseInt(t):t},2576:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,':host,::slotted(*){font-family:"Open Sans",sans-serif;font-size:15px;color:#2f3940;line-height:24px;font-weight:300}',"",{version:3,sources:["webpack://./stories/body-text/body-text.scss","webpack://./style/variables/_typography.scss"],names:[],mappings:"AAGA,mBAEI,kCCLW,CDMX,cCJgB,CDKhB,aAAA,CACA,gBAAA,CACA,eAAA",sourcesContent:['@use "../../style/variables/colors";\n@use "../../style/variables/typography";\n\n:host,\n::slotted(*) {\n font-family: typography.$default-font;\n font-size: typography.$default-font-size;\n color: colors.$default-text;\n line-height: 24px;\n font-weight: 300;\n}\n','$default-font: "Open Sans", sans-serif;\n$header-font: "Raleway", sans-serif;\n$default-font-size: 15px;\n'],sourceRoot:""}]);const a=s},2698:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o="<template>\n <slot></slot>\n</template>\n"},3096:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.GnButton=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super(),this.handleMouseEnter=t=>{t.currentTarget.classList.add("is-hovered")},this.handleMouseLeave=t=>{t.currentTarget.classList.remove("is-hovered")}}setup(t){this.connect(null==t?void 0:t.container),(null==t?void 0:t.id)&&(this.id=t.id),requestAnimationFrame((()=>this.applyColorClass()))}onColorChange(){this.applyColorClass()}applyColorClass(){var t;if(!this.slotEl&&(this.slotEl=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),!this.slotEl))return;const e="color-";this.slotEl.assignedElements({flatten:!0}).forEach((t=>{t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseLeave),t.classList.forEach((n=>{n.startsWith(e)&&t.classList.remove(n)})),this.color&&t.classList.add(`${e}${this.color}`),t.addEventListener("mouseenter",this.handleMouseEnter),t.addEventListener("mouseleave",this.handleMouseLeave)}))}};e.GnButton=l,s([(0,d.Prop)()],l.prototype,"color",void 0),s([(0,d.Watch)("color")],l.prototype,"onColorChange",null),e.GnButton=l=s([(0,d.Component)({tag:"gn-button",template:Promise.resolve().then((()=>a(n(7390)))),style:Promise.resolve().then((()=>a(n(5074))))})],l)},3128:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(8631),e),r(n(3704),e),r(n(3365),e),r(n(169),e),r(n(6999),e),r(n(3982),e),r(n(8861),e),r(n(1063),e)},3365:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadowRootElement=e.getElement=void 0,e.getElement=t=>document.querySelector(t),e.getShadowRootElement=(t,e)=>t.shadowRoot.querySelector(e)},3437:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path fill="currentColor" d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"></path></svg>'},3570:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,".dialog-container:not(.visible){display:none}.dialog-container.visible{display:flex;flex-wrap:wrap;position:fixed;width:100%;background:rgba(0,0,0,.25);height:100%;top:0;left:0;align-content:center;padding:8px 28px;z-index:2;justify-content:center;box-sizing:border-box}@media(min-width: 992px){.dialog-container.visible{padding:36px}}.dialog-container .dialog-content{max-height:-moz-calc(100% - 128px);max-height:-webkit-calc(100% - 128px);max-height:calc(100% - 128px);-webkit-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);-moz-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);-webkit-border-radius:4px;border-radius:4px;max-width:540px;width:100%;background-color:#fff;position:relative}.dialog-container .dialog-content:not(.noPadding){padding:28px 22px 22px}@media(min-width: 768px){.dialog-container .dialog-content:not(.noPadding){padding:38px 30px 30px}}.dialog-container .dialog-content.noPadding{padding:28px 0 0}@media(min-width: 768px){.dialog-container .dialog-content.noPadding{padding:38px 0 0}}@media(min-width: 992px){.dialog-container .dialog-content{width:-moz-calc(100% - 128px);width:-webkit-calc(100% - 128px);width:calc(100% - 128px);max-height:100%}}.dialog-container .dialog-content .close-dialog-button{background:none;border:none;color:#2f3940;display:inline-block;position:absolute;right:7px;top:4px;text-decoration:underline;font-size:19px;cursor:pointer;padding:0;right:8px;top:5px}@media(min-width: 768px){.dialog-container .dialog-content .close-dialog-button{right:15px;top:10px}}.dialog-container .dialog-content .close-dialog-button:hover{text-decoration:none}.dialog-container .dialog-content .close-dialog-button svg{width:17px;height:17px}","",{version:3,sources:["webpack://./stories/gn-dialog/template.scss","webpack://./style/mixins/_breakpoints.scss","webpack://./style/mixins/_calc.scss","webpack://./style/mixins/_box-shadow.scss","webpack://./style/mixins/_border-radius.scss","webpack://./style/variables/_colors.scss"],names:[],mappings:"AAOI,gCACI,YAAA,CAEJ,0BACI,YAAA,CACA,cAAA,CACA,cAAA,CACA,UAAA,CACA,0BAAA,CACA,WAAA,CACA,KAAA,CACA,MAAA,CACA,oBAAA,CACA,gBAAA,CACA,SAAA,CACA,sBAAA,CACA,qBAAA,CCfA,yBDEJ,0BAeQ,YAAA,CAAA,CAGR,kCE3BF,kCAAA,CACA,qCAAA,CACA,6BAAA,CCFE,iHH6BI,CG5BJ,8GH4BI,CG3BJ,yGH2BI,CI7BN,yBJkC2C,CIjC3C,iBJiC2C,CACrC,eAAA,CACA,UAAA,CACA,qBAAA,CACA,iBAAA,CACA,kDACI,sBAAA,CC7BJ,yBD4BA,kDAGQ,sBAAA,CAAA,CAGR,4CACI,gBAAA,CCnCJ,yBDkCA,4CAGQ,gBAAA,CAAA,CCzCR,yBDoBJ,kCE3BF,6BAAA,CACA,gCAAA,CACA,wBAAA,CFmDU,eAAA,CAAA,CAEJ,uDACI,eAAA,CACA,WAAA,CACA,aKpDE,CLqDF,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,OAAA,CACA,yBAAA,CACA,cAAA,CACA,cAAA,CACA,SAAA,CACA,SAAA,CACA,OAAA,CCzDJ,yBD4CA,uDAeQ,UAAA,CACA,QAAA,CAAA,CAEJ,6DACI,oBAAA,CAEJ,2DACI,UAAA,CACA,WAAA",sourcesContent:['@use "../../style/mixins/border-radius";\n@use "../../style/mixins/box-shadow";\n@use "../../style/mixins/breakpoints";\n@use "../../style/mixins/calc";\n@use "../../style/variables/colors";\n\n.dialog-container {\n &:not(.visible) {\n display: none;\n }\n &.visible {\n display: flex;\n flex-wrap: wrap;\n position: fixed;\n width: 100%;\n background: rgba(0, 0, 0, 0.25);\n height: 100%;\n top: 0;\n left: 0;\n align-content: center;\n padding: 8px 28px;\n z-index: 2;\n justify-content: center;\n box-sizing: border-box;\n @include breakpoints.breakpoint(laptop) {\n padding: 36px;\n }\n }\n .dialog-content {\n @include calc.calc("max-height", "100% - 128px");\n @include box-shadow.box-shadow(\n 0 11px 15px -7px rgba(0, 0, 0, 0.2),\n 0 24px 38px 3px rgba(0, 0, 0, 0.14),\n 0 9px 46px 8px rgba(0, 0, 0, 0.12)\n );\n @include border-radius.border-radius(4px);\n max-width: 540px;\n width: 100%;\n background-color: #fff;\n position: relative;\n &:not(.noPadding) {\n padding: 28px 22px 22px;\n @include breakpoints.breakpoint(tablet) {\n padding: 38px 30px 30px;\n }\n }\n &.noPadding {\n padding: 28px 0 0;\n @include breakpoints.breakpoint(tablet) {\n padding: 38px 0 0;\n }\n }\n @include breakpoints.breakpoint(laptop) {\n @include calc.calc("width", "100% - 128px");\n max-height: 100%;\n }\n .close-dialog-button {\n background: none;\n border: none;\n color: colors.$default-text;\n display: inline-block;\n position: absolute;\n right: 7px;\n top: 4px;\n text-decoration: underline;\n font-size: 19px;\n cursor: pointer;\n padding: 0;\n right: 8px;\n top: 5px;\n @include breakpoints.breakpoint(tablet) {\n right: 15px;\n top: 10px;\n }\n &:hover {\n text-decoration: none;\n }\n svg {\n width: 17px;\n height: 17px;\n }\n }\n }\n}\n','@use "../variables/breakpoints";\n\n@mixin breakpoint($point) {\n @if $point == desktop {\n @media (min-width: breakpoints.$screen-desktop) {\n @content;\n }\n } @else if $point == laptop {\n @media (min-width: breakpoints.$screen-laptop) {\n @content;\n }\n } @else if $point == tablet {\n @media (min-width: breakpoints.$screen-tablet) {\n @content;\n }\n } @else if $point == phablet {\n @media (min-width: breakpoints.$screen-phablet) {\n @content;\n }\n }\n}\n',"\ufeff@mixin calc($property, $expression) {\n #{$property}: -moz-calc(#{$expression});\n #{$property}: -webkit-calc(#{$expression});\n #{$property}: calc(#{$expression});\n}","\ufeff@mixin box-shadow($shadows...) {\n -webkit-box-shadow: $shadows;\n -moz-box-shadow: $shadows;\n box-shadow: $shadows;\n}\n","@mixin border-radius($radius) {\n -webkit-border-radius: $radius;\n border-radius: $radius;\n}\n\n// Single side border-radius\n\n@mixin border-top-radius($radius) {\n -webkit-border-top-right-radius: $radius;\n border-top-right-radius: $radius;\n -webkit-border-top-left-radius: $radius;\n border-top-left-radius: $radius;\n}\n@mixin border-right-radius($radius) {\n -webkit-border-bottom-right-radius: $radius;\n border-bottom-right-radius: $radius;\n -webkit-border-top-right-radius: $radius;\n border-top-right-radius: $radius;\n}\n@mixin border-bottom-radius($radius) {\n -webkit-border-bottom-right-radius: $radius;\n border-bottom-right-radius: $radius;\n -webkit-border-bottom-left-radius: $radius;\n border-bottom-left-radius: $radius;\n}\n@mixin border-left-radius($radius) {\n -webkit-border-bottom-left-radius: $radius;\n border-bottom-left-radius: $radius;\n -webkit-border-top-left-radius: $radius;\n border-top-left-radius: $radius;\n}","$body-background: #ffffff;\n$navigation-bar-background: #f7f7f7;\n$hover-background: rgba(0,0,0,.05);\n$default-border: #d8d8d8;\n\n$default-background: #eee;\n$default-background-hover: #ddd;\n$default-text:#2F3940;\n\n$light-gray: #f6f5f4;\n\n$primary-brand: #FE5000;\n\n$primary-background: #3767C7;\n$primary-background-hover: #FE5000;\n$primary-text: #3767C7;\n$primary-text-hover:#0056b3;\n\n\n$success-background: #06A755;\n$success-background-hover: #009745;\n$success-text: #06A755;\n\n\n$warning-background: #C38621;\n$warning-background-hover: #B37611;\n$warning-text: #C38621;\n\n$danger-background: #E00d0D;\n$danger-background-hover: #D00000;\n$danger-text: #E00d0D;\n\n$disabled-background: #f4f4f4;\n$disabled-border: #dedede;\n$disabled-text: #707070;\n\n\n$light-green: #8fff33;\n$light-yellow: #ffEb3b;\n$light-red: #ff4a2e;\n"],sourceRoot:""}]);const a=s},3572:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,".gn-shortcut-button{width:40px;height:40px;background:none;border:none;cursor:pointer}.gn-shortcut-button svg{width:25px;height:25px;stroke:#2f3940;fill:none;-moz-transition:all .1s linear 0s;-o-transition:all .1s linear 0s;-webkit-transition:all .1s linear 0s;transition:all .1s linear 0s;stroke-width:2px}.gn-shortcut-button:hover svg{stroke:#fe5000;fill:#fe5000}.gn-shortcut-button.active svg{stroke:#fe5000;fill:#fe5000}.gn-shortcut-button.active:hover svg{stroke:#2f3940;fill:none}","",{version:3,sources:["webpack://./stories/gn-shortcut-button/gn-shortcut-button.scss","webpack://./style/variables/_colors.scss","webpack://./style/mixins/_transition.scss"],names:[],mappings:"AAGA,oBACI,UAAA,CACA,WAAA,CACA,eAAA,CACA,WAAA,CACA,cAAA,CACA,wBACI,UAAA,CACA,WAAA,CACA,cCLM,CDMN,SAAA,CEZJ,iCFaI,CEZJ,+BFYI,CEXJ,oCFWI,CEVJ,4BFUI,CACA,gBAAA,CAGA,8BACI,cCRI,CDSJ,YCTI,CDcR,+BACI,cCfI,CDgBJ,YChBI,CDmBJ,qCACI,cCxBF,CDyBE,SAAA",sourcesContent:['@use "../../style/mixins/transition";\n@use "../../style/variables/colors";\n\n.gn-shortcut-button {\n width: 40px;\n height: 40px;\n background: none;\n border: none;\n cursor: pointer;\n & svg {\n width: 25px;\n height: 25px;\n stroke: colors.$default-text;\n fill: none;\n @include transition.transition(all 0.1s linear 0s);\n stroke-width: 2px;\n }\n &:hover {\n & svg {\n stroke: colors.$primary-brand;\n fill: colors.$primary-brand;\n }\n }\n\n &.active {\n & svg {\n stroke: colors.$primary-brand;\n fill: colors.$primary-brand;\n }\n &:hover {\n & svg {\n stroke: colors.$default-text;\n fill: none;\n }\n }\n }\n}\n',"$body-background: #ffffff;\n$navigation-bar-background: #f7f7f7;\n$hover-background: rgba(0,0,0,.05);\n$default-border: #d8d8d8;\n\n$default-background: #eee;\n$default-background-hover: #ddd;\n$default-text:#2F3940;\n\n$light-gray: #f6f5f4;\n\n$primary-brand: #FE5000;\n\n$primary-background: #3767C7;\n$primary-background-hover: #FE5000;\n$primary-text: #3767C7;\n$primary-text-hover:#0056b3;\n\n\n$success-background: #06A755;\n$success-background-hover: #009745;\n$success-text: #06A755;\n\n\n$warning-background: #C38621;\n$warning-background-hover: #B37611;\n$warning-text: #C38621;\n\n$danger-background: #E00d0D;\n$danger-background-hover: #D00000;\n$danger-text: #E00d0D;\n\n$disabled-background: #f4f4f4;\n$disabled-border: #dedede;\n$disabled-text: #707070;\n\n\n$light-green: #8fff33;\n$light-yellow: #ffEb3b;\n$light-red: #ff4a2e;\n","\ufeff@mixin transition($transition...) {\n -moz-transition: $transition;\n -o-transition: $transition;\n -webkit-transition: $transition;\n transition: $transition;\n}\n\n@mixin transition-property($property...) {\n -moz-transition-property: $property;\n -o-transition-property: $property;\n -webkit-transition-property: $property;\n transition-property: $property;\n}\n\n@mixin transition-duration($duration...) {\n -moz-transition-property: $duration;\n -o-transition-property: $duration;\n -webkit-transition-property: $duration;\n transition-property: $duration;\n}\n\n@mixin transition-timing-function($timing...) {\n -moz-transition-timing-function: $timing;\n -o-transition-timing-function: $timing;\n -webkit-transition-timing-function: $timing;\n transition-timing-function: $timing;\n}\n\n@mixin transition-delay($delay...) {\n -moz-transition-delay: $delay;\n -o-transition-delay: $delay;\n -webkit-transition-delay: $delay;\n transition-delay: $delay;\n}\n"],sourceRoot:""}]);const a=s},3595:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,":host{display:none}.align-right{display:flex;justify-content:flex-end;gap:.5em}","",{version:3,sources:["webpack://./stories/gn-shortcut-button/template.scss"],names:[],mappings:"AAAA,MACI,YAAA,CAEJ,aACI,YAAA,CACA,wBAAA,CACA,QAAA",sourcesContent:[":host {\n display: none;\n}\n.align-right {\n display: flex;\n justify-content: flex-end;\n gap: 0.5em;\n}\n"],sourceRoot:""}]);const a=s},3704:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CustomElement=void 0;class n extends HTMLElement{constructor(){super()}connect(t){this.isConnected||document.querySelector(t).appendChild(this)}}e.CustomElement=n},3772:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o="<template>\n <slot></slot>\n</template>\n"},3982:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Toggle=void 0;const o=n(2466);e.Toggle=()=>(t,e)=>{t.constructor.propsInit||(t.constructor.propsInit={}),t.constructor.propsInit[e]=null,Object.defineProperty(t,e,{get:function(){return(t=>{if(this.hasAttribute(t)){const e=this.getAttribute(t);return!!/^(true|false|^$)$/.test(e)&&("true"==e||""==e)}return!1})(e)},set:function(t){const n=t;if(null!=t)switch(typeof t){case"boolean":break;case"string":/^(true|false|^$)$/.test(t)?t="true"==n||""==n:(console.warn(`TypeError: Cannot set boolean toggle property '${e}' to '${t}'`),t=!1);break;default:throw`TypeError: Cannot set boolean toggle property '${e}' to '${t}'`}this.__connected?(this.props[e]=t||!1,""!==n&&null!==n?this.setAttribute(e,t):t?this.setAttribute(e,""):this.removeAttribute(e)):this.hasAttribute(o.toKebabCase(e))||(this.constructor.propsInit[e]=t)}})}},5052:t=>{"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */");return[e].concat([i]).join("\n")}return[e].join("\n")}},5074:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,'::slotted(button),::slotted(a),::slotted(.color-default){-moz-transition:all .35s linear 0s;-o-transition:all .35s linear 0s;-webkit-transition:all .35s linear 0s;transition:all .35s linear 0s;-webkit-border-radius:4px;border-radius:4px;font-family:"Open Sans",sans-serif;font-weight:400;font-size:12pt;font-style:normal;text-align:center;vertical-align:middle;border:1px solid rgba(0,0,0,0);cursor:pointer;display:inline-block;height:34px;line-height:16pt;text-decoration:none;background-position:50%;padding:5px 8px;box-sizing:border-box;background-color:#eee;color:#2f3940;border-color:#d8d8d8}::slotted(.is-hovered),::slotted(.color-default.is-hovered){background-color:#ddd}::slotted(.color-primary){text-decoration:none;background-color:#3767c7;color:#fff}::slotted(.color-primary.is-hovered){background-color:#fe5000}::slotted(.color-success){text-decoration:none;background-color:#06a755;color:#fff}::slotted(.color-success.is-hovered){background-color:#009745}::slotted(.color-warning){text-decoration:none;background-color:#c38621;color:#fff}::slotted(.color-warning.is-hovered){background-color:#b37611}::slotted(.color-danger){text-decoration:none;background-color:#e00d0d;color:#fff}::slotted(.color-danger.is-hovered){background-color:#d00000}::slotted(button[disabled]),::slotted(a[disabled]){background-color:#f4f4f4;color:#707070;border:1px solid #dedede;cursor:not-allowed;pointer-events:none}',"",{version:3,sources:["webpack://./stories/gn-button/template.scss","webpack://./style/mixins/_transition.scss","webpack://./style/mixins/_border-radius.scss","webpack://./style/variables/_typography.scss","webpack://./style/variables/_colors.scss"],names:[],mappings:"AAKA,yDCJI,kCDOA,CCNA,gCDMA,CCLA,qCDKA,CCJA,6BDIA,CEPF,yBFQuC,CEPvC,iBFOuC,CACrC,kCGVW,CHWX,eAAA,CACA,cAAA,CACA,iBAAA,CACA,iBAAA,CACA,qBAAA,CACA,8BAAA,CACA,cAAA,CACA,oBAAA,CACA,WAAA,CACA,gBAAA,CACA,oBAAA,CACA,uBAAA,CACA,eAAA,CACA,qBAAA,CACA,qBIpBiB,CJqBjB,aInBU,CJoBV,oBIxBa,CJ2BjB,4DAEI,qBI1BuB,CJ6B3B,0BACI,oBAAA,CACA,wBIxBiB,CJyBjB,UAAA,CAGJ,qCACI,wBI5BuB,CJ+B3B,0BACI,oBAAA,CACA,wBI5BiB,CJ6BjB,UAAA,CAEJ,qCACI,wBI/BuB,CJkC3B,0BACI,oBAAA,CACA,wBIhCiB,CJiCjB,UAAA,CAEJ,qCACI,wBInCuB,CJqC3B,yBACI,oBAAA,CACA,wBIpCgB,CJqChB,UAAA,CAGJ,oCACI,wBIxCsB,CJ2C1B,mDAEI,wBI1CkB,CJ2ClB,aIzCY,CJ0CZ,wBAAA,CACA,kBAAA,CACA,mBAAA",sourcesContent:['@use "../../style/mixins/border-radius";\n@use "../../style/mixins/transition";\n@use "../../style/variables/colors";\n@use "../../style/variables/typography";\n\n::slotted(button),\n::slotted(a),\n::slotted(.color-default) {\n @include transition.transition(all 0.35s linear 0s);\n @include border-radius.border-radius(4px);\n font-family: typography.$default-font;\n font-weight: 400;\n font-size: 12pt;\n font-style: normal;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n cursor: pointer;\n display: inline-block;\n height: 34px;\n line-height: 16pt;\n text-decoration: none;\n background-position: 50%;\n padding: 5px 8px;\n box-sizing: border-box;\n background-color: colors.$default-background;\n color: colors.$default-text;\n border-color: colors.$default-border;\n}\n\n::slotted(.is-hovered),\n::slotted(.color-default.is-hovered) {\n background-color: colors.$default-background-hover;\n}\n\n::slotted(.color-primary) {\n text-decoration: none;\n background-color: colors.$primary-background;\n color: #fff;\n}\n\n::slotted(.color-primary.is-hovered) {\n background-color: colors.$primary-background-hover;\n}\n\n::slotted(.color-success) {\n text-decoration: none;\n background-color: colors.$success-background;\n color: #fff;\n}\n::slotted(.color-success.is-hovered) {\n background-color: colors.$success-background-hover;\n}\n\n::slotted(.color-warning) {\n text-decoration: none;\n background-color: colors.$warning-background;\n color: #fff;\n}\n::slotted(.color-warning.is-hovered) {\n background-color: colors.$warning-background-hover;\n}\n::slotted(.color-danger) {\n text-decoration: none;\n background-color: colors.$danger-background;\n color: #fff;\n}\n\n::slotted(.color-danger.is-hovered) {\n background-color: colors.$danger-background-hover;\n}\n\n::slotted(button[disabled]),\n::slotted(a[disabled]) {\n background-color: colors.$disabled-background;\n color: colors.$disabled-text;\n border: 1px solid colors.$disabled-border;\n cursor: not-allowed;\n pointer-events: none;\n}\n',"\ufeff@mixin transition($transition...) {\n -moz-transition: $transition;\n -o-transition: $transition;\n -webkit-transition: $transition;\n transition: $transition;\n}\n\n@mixin transition-property($property...) {\n -moz-transition-property: $property;\n -o-transition-property: $property;\n -webkit-transition-property: $property;\n transition-property: $property;\n}\n\n@mixin transition-duration($duration...) {\n -moz-transition-property: $duration;\n -o-transition-property: $duration;\n -webkit-transition-property: $duration;\n transition-property: $duration;\n}\n\n@mixin transition-timing-function($timing...) {\n -moz-transition-timing-function: $timing;\n -o-transition-timing-function: $timing;\n -webkit-transition-timing-function: $timing;\n transition-timing-function: $timing;\n}\n\n@mixin transition-delay($delay...) {\n -moz-transition-delay: $delay;\n -o-transition-delay: $delay;\n -webkit-transition-delay: $delay;\n transition-delay: $delay;\n}\n","@mixin border-radius($radius) {\n -webkit-border-radius: $radius;\n border-radius: $radius;\n}\n\n// Single side border-radius\n\n@mixin border-top-radius($radius) {\n -webkit-border-top-right-radius: $radius;\n border-top-right-radius: $radius;\n -webkit-border-top-left-radius: $radius;\n border-top-left-radius: $radius;\n}\n@mixin border-right-radius($radius) {\n -webkit-border-bottom-right-radius: $radius;\n border-bottom-right-radius: $radius;\n -webkit-border-top-right-radius: $radius;\n border-top-right-radius: $radius;\n}\n@mixin border-bottom-radius($radius) {\n -webkit-border-bottom-right-radius: $radius;\n border-bottom-right-radius: $radius;\n -webkit-border-bottom-left-radius: $radius;\n border-bottom-left-radius: $radius;\n}\n@mixin border-left-radius($radius) {\n -webkit-border-bottom-left-radius: $radius;\n border-bottom-left-radius: $radius;\n -webkit-border-top-left-radius: $radius;\n border-top-left-radius: $radius;\n}",'$default-font: "Open Sans", sans-serif;\n$header-font: "Raleway", sans-serif;\n$default-font-size: 15px;\n',"$body-background: #ffffff;\n$navigation-bar-background: #f7f7f7;\n$hover-background: rgba(0,0,0,.05);\n$default-border: #d8d8d8;\n\n$default-background: #eee;\n$default-background-hover: #ddd;\n$default-text:#2F3940;\n\n$light-gray: #f6f5f4;\n\n$primary-brand: #FE5000;\n\n$primary-background: #3767C7;\n$primary-background-hover: #FE5000;\n$primary-text: #3767C7;\n$primary-text-hover:#0056b3;\n\n\n$success-background: #06A755;\n$success-background-hover: #009745;\n$success-text: #06A755;\n\n\n$warning-background: #C38621;\n$warning-background-hover: #B37611;\n$warning-text: #C38621;\n\n$danger-background: #E00d0D;\n$danger-background-hover: #D00000;\n$danger-text: #E00d0D;\n\n$disabled-background: #f4f4f4;\n$disabled-border: #dedede;\n$disabled-text: #707070;\n\n\n$light-green: #8fff33;\n$light-yellow: #ffEb3b;\n$light-red: #ff4a2e;\n"],sourceRoot:""}]);const a=s},5340:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,"gn-dialog{position:absolute}gn-dialog heading-text h1,gn-dialog heading-text h2,gn-dialog heading-text h3,gn-dialog heading-text h4,gn-dialog heading-text h5{margin-top:0}gn-dialog heading-text h1:before,gn-dialog heading-text h2:before,gn-dialog heading-text h3:before,gn-dialog heading-text h4:before,gn-dialog heading-text h5:before{margin-top:0}","",{version:3,sources:["webpack://./stories/gn-dialog/gn-dialog.scss"],names:[],mappings:"AAAA,UACG,iBAAA,CAEG,kIAKG,YAAA,CACA,qKACG,YAAA",sourcesContent:["gn-dialog {\n position: absolute;\n heading-text {\n h1,\n h2,\n h3,\n h4,\n h5 {\n margin-top: 0;\n &:before {\n margin-top: 0;\n }\n }\n }\n}\n"],sourceRoot:""}]);const a=s},5398:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,":host{margin-bottom:16px}:host([block]){display:block}:host:not([block]){display:inline-block}:host([inlineblock]){margin-right:16px}","",{version:3,sources:["webpack://./stories/gn-field-container/template.scss"],names:[],mappings:"AAAA,MACI,kBAAA,CAGJ,eACI,aAAA,CAGJ,mBACI,oBAAA,CAGJ,qBACI,iBAAA",sourcesContent:[":host {\n margin-bottom: 16px;\n}\n\n:host([block]) {\n display: block;\n}\n\n:host:not([block]) {\n display: inline-block;\n}\n\n:host([inlineblock]) {\n margin-right: 16px;\n}\n"],sourceRoot:""}]);const a=s},5562:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,':host h1.heading,:host ::slotted(h1.heading),:host ::slotted(.heading[size="1"]){font-family:"Raleway",sans-serif !important;color:#2f3940 !important;font-size:30px !important;font-weight:200 !important}@media(min-width: 768px){:host h1.heading,:host ::slotted(h1.heading),:host ::slotted(.heading[size="1"]){font-size:48px !important;font-weight:100 !important}}:host h1.heading[underline]:after,:host ::slotted(h1.heading[underline]):after,:host ::slotted(.heading[size="1"][underline]):after{content:"";display:block;width:75px;border-bottom:3px solid #fe5000;margin:5px 0 15px}@media(min-width: 768px){:host h1.heading[underline]:after,:host ::slotted(h1.heading[underline]):after,:host ::slotted(.heading[size="1"][underline]):after{width:100px;border-bottom:5px solid #fe5000;margin:10px 0 20px}}:host h2.heading,:host ::slotted(h2.heading),:host ::slotted(.heading[size="2"]){font-family:"Raleway",sans-serif !important;color:#2f3940 !important;font-size:26px !important;line-height:30px !important;font-weight:300 !important;display:inline !important;margin-bottom:10px !important;margin-top:20px !important}@media(min-width: 768px){:host h2.heading,:host ::slotted(h2.heading),:host ::slotted(.heading[size="2"]){font-size:32px !important;line-height:40px !important}}:host h2.heading:before,:host ::slotted(h2.heading):before,:host ::slotted(.heading[size="2"]):before{content:"";display:block;margin-top:46px}:host h2.heading:after,:host ::slotted(h2.heading):after,:host ::slotted(.heading[size="2"]):after{content:"";display:block;margin-bottom:15px}:host h2.heading[underline]:after,:host ::slotted(h2.heading[underline]):after,:host ::slotted(.heading[size="2"][underline]):after{content:"";display:block;width:25px;border-bottom:2px solid #fe5000}@media(min-width: 768px){:host h2.heading[underline]:after,:host ::slotted(h2.heading[underline]):after,:host ::slotted(.heading[size="2"][underline]):after{width:50px;border-bottom:2px solid #fe5000}}:host h3.heading,:host ::slotted(h3.heading),:host ::slotted(.heading[size="3"]){font-family:"Open Sans",sans-serif !important;color:#2f3940 !important;font-size:22px !important;font-weight:300 !important;margin-bottom:0 !important;margin-top:20px !important}@media(min-width: 768px){:host h3.heading,:host ::slotted(h3.heading),:host ::slotted(.heading[size="3"]){font-size:24px !important}}:host h4.heading,:host ::slotted(h4.heading),:host ::slotted(.heading[size="4"]){font-family:"Open Sans",sans-serif !important;color:#2f3940 !important;font-size:18px !important;font-weight:300 !important;margin-bottom:0 !important;margin-top:12px !important}:host h5.heading,:host ::slotted(h5.heading),:host ::slotted(.heading[size="5"]){font-family:"Open Sans",sans-serif !important;color:#2f3940 !important;font-size:15px !important;font-weight:600 !important;margin-bottom:0 !important;margin-top:8px !important}@media(min-width: 768px){:host h5.heading,:host ::slotted(h5.heading),:host ::slotted(.heading[size="5"]){font-size:16px !important}}:host ::slotted(.heading.no-margin){margin-top:0}:host ::slotted(.heading.no-margin)::before{margin-top:0}',"",{version:3,sources:["webpack://./stories/heading-text/template.scss","webpack://./style/mixins/_breakpoints.scss"],names:[],mappings:"AAKI,iFAGI,2CAAA,CACA,wBAAA,CACA,yBAAA,CACA,0BAAA,CCCA,yBDPJ,iFAQQ,yBAAA,CACA,0BAAA,CAAA,CAOJ,oIACI,UAAA,CACA,aAAA,CACA,UAAA,CACA,+BAAA,CACA,iBAAA,CCdJ,yBDSA,oIAOQ,WAAA,CACA,+BAAA,CACA,kBAAA,CAAA,CAKZ,iFAGI,2CAAA,CACA,wBAAA,CACA,yBAAA,CACA,2BAAA,CACA,0BAAA,CACA,yBAAA,CACA,6BAAA,CACA,0BAAA,CCjCA,yBDuBJ,iFAYQ,yBAAA,CACA,2BAAA,CAAA,CAEJ,sGACI,UAAA,CACA,aAAA,CACA,eAAA,CAEJ,mGACI,UAAA,CACA,aAAA,CACA,kBAAA,CAOJ,oIACI,UAAA,CACA,aAAA,CACA,UAAA,CACA,+BAAA,CCzDJ,yBDqDA,oIAMQ,UAAA,CACA,+BAAA,CAAA,CAKZ,iFAGI,6CAAA,CACA,wBAAA,CACA,yBAAA,CACA,0BAAA,CACA,0BAAA,CACA,0BAAA,CCzEA,yBDiEJ,iFAUQ,yBAAA,CAAA,CAIR,iFAGI,6CAAA,CACA,wBAAA,CACA,yBAAA,CACA,0BAAA,CACA,0BAAA,CACA,0BAAA,CAGJ,iFAGI,6CAAA,CACA,wBAAA,CACA,yBAAA,CACA,0BAAA,CACA,0BAAA,CACA,yBAAA,CClGA,yBD0FJ,iFAUQ,yBAAA,CAAA,CAIR,oCACI,YAAA,CACA,4CACI,YAAA",sourcesContent:['@use "../../style/mixins/breakpoints";\n@use "../../style/variables/colors";\n@use "../../style/variables/typography";\n\n:host {\n h1.heading,\n ::slotted(h1.heading),\n ::slotted(.heading[size="1"]) {\n font-family: typography.$header-font !important;\n color: colors.$default-text !important;\n font-size: 30px !important;\n font-weight: 200 !important;\n @include breakpoints.breakpoint(tablet) {\n font-size: 48px !important;\n font-weight: 100 !important;\n }\n }\n\n h1.heading[underline],\n ::slotted(h1.heading[underline]),\n ::slotted(.heading[size="1"][underline]) {\n &:after {\n content: "";\n display: block;\n width: 75px;\n border-bottom: 3px solid colors.$primary-brand;\n margin: 5px 0 15px;\n @include breakpoints.breakpoint(tablet) {\n width: 100px;\n border-bottom: 5px solid colors.$primary-brand;\n margin: 10px 0 20px;\n }\n }\n }\n\n h2.heading,\n ::slotted(h2.heading),\n ::slotted(.heading[size="2"]) {\n font-family: typography.$header-font !important;\n color: colors.$default-text !important;\n font-size: 26px !important;\n line-height: 30px !important;\n font-weight: 300 !important;\n display: inline !important;\n margin-bottom: 10px !important;\n margin-top: 20px !important;\n @include breakpoints.breakpoint(tablet) {\n font-size: 32px !important;\n line-height: 40px !important;\n }\n &:before {\n content: "";\n display: block;\n margin-top: 46px;\n }\n &:after {\n content: "";\n display: block;\n margin-bottom: 15px;\n }\n }\n\n h2.heading[underline],\n ::slotted(h2.heading[underline]),\n ::slotted(.heading[size="2"][underline]) {\n &:after {\n content: "";\n display: block;\n width: 25px;\n border-bottom: 2px solid colors.$primary-brand;\n @include breakpoints.breakpoint(tablet) {\n width: 50px;\n border-bottom: 2px solid colors.$primary-brand;\n }\n }\n }\n\n h3.heading,\n ::slotted(h3.heading),\n ::slotted(.heading[size="3"]) {\n font-family: typography.$default-font !important;\n color: colors.$default-text !important;\n font-size: 22px !important;\n font-weight: 300 !important;\n margin-bottom: 0 !important;\n margin-top: 20px !important;\n @include breakpoints.breakpoint(tablet) {\n font-size: 24px !important;\n }\n }\n\n h4.heading,\n ::slotted(h4.heading),\n ::slotted(.heading[size="4"]) {\n font-family: typography.$default-font !important;\n color: colors.$default-text !important;\n font-size: 18px !important;\n font-weight: 300 !important;\n margin-bottom: 0 !important;\n margin-top: 12px !important;\n }\n\n h5.heading,\n ::slotted(h5.heading),\n ::slotted(.heading[size="5"]) {\n font-family: typography.$default-font !important;\n color: colors.$default-text !important;\n font-size: 15px !important;\n font-weight: 600 !important;\n margin-bottom: 0 !important;\n margin-top: 8px !important;\n @include breakpoints.breakpoint(tablet) {\n font-size: 16px !important;\n }\n }\n\n ::slotted(.heading.no-margin) {\n margin-top: 0;\n &::before {\n margin-top: 0;\n }\n }\n}\n','@use "../variables/breakpoints";\n\n@mixin breakpoint($point) {\n @if $point == desktop {\n @media (min-width: breakpoints.$screen-desktop) {\n @content;\n }\n } @else if $point == laptop {\n @media (min-width: breakpoints.$screen-laptop) {\n @content;\n }\n } @else if $point == tablet {\n @media (min-width: breakpoints.$screen-tablet) {\n @content;\n }\n } @else if $point == phablet {\n @media (min-width: breakpoints.$screen-phablet) {\n @content;\n }\n }\n}\n'],sourceRoot:""}]);const a=s},5979:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeInnerHTML=e.addGlobalStylesheet=e.getDocumentHeading=e.getFocusableElementsInsideElement=void 0,e.getFocusableElementsInsideElement=t=>t.querySelectorAll('button, [href], input, [tabindex="0"]'),e.getDocumentHeading=()=>{let t=document.querySelector("heading-text");return t||(t=document.querySelector("h1:not(.sb-nopreview_heading.sb-heading)")),t},e.addGlobalStylesheet=(t,e)=>{const n=document.createElement("style");n.setAttribute("id",t),n.textContent=e,document.getElementById(t)||document.head.appendChild(n)},e.removeInnerHTML=t=>{for(;t.firstChild;)t.removeChild(t.firstChild)}},6496:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o='<template>\n <div id="input-container" class="input-container">\n <slot></slot>\n </div>\n</template>\n'},6622:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o='<template>\n <div id="dialog-container" class="dialog-container">\n <div id="dialog-content" class="dialog-content">\n <button id="close-dialog-button" class="close-dialog-button"></button>\n <slot></slot>\n </div>\n </div>\n</template>\n'},6999:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.initializeProps=e.Prop=void 0;const o=n(2466);e.Prop=()=>(t,e)=>{const n=o.toKebabCase(e);t.constructor.propsInit||(t.constructor.propsInit={}),t.constructor.propsInit[e]=null,Object.defineProperty(t,e,{get:function(){return this.props[e]?this.props[e]:this.getAttribute(n)},set:function(t){if(this.__connected){const r=this.props[e];this.props[e]=o.tryParseInt(t),"object"!=typeof t?this.setAttribute(n,t):this.onAttributeChange(n,r,t,!1)}else this.hasAttribute(o.toKebabCase(e))||(this.constructor.propsInit[e]=t)}})},e.initializeProps=t=>{const e=t.constructor.watchAttributes;for(let n of(t=>{const e=t.constructor.watchAttributes,n=Object.assign({},e);Object.keys(n).forEach((t=>n[t]=""));const o=Object.assign(Object.assign({},n),t.constructor.propsInit);return Object.keys(o)})(t)){if(e)if(null==e[o.toKebabCase(n)])e[o.toKebabCase(n)]="";else{const r=t.props[n]||t.getAttribute(o.toKebabCase(n));"function"==typeof t[e[n]]&&t[e[n]]({new:r})}t.constructor.propsInit[n]&&(t.hasAttribute(o.toKebabCase(n))||(t[n]=t.constructor.propsInit[n]))}}},7390:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o="<template>\n <slot></slot>\n</template>\n"},8254:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o='<template>\n <button id="gn-shortcut-button" class="gn-shortcut-button"></button>\n <gn-dialog id="add-shortcut-dialog" width="400px">\n <body-text>\n <heading-text>\n <h2>Lagre snarvei</h2>\n </heading-text>\n <gn-field-container block>\n <span id="input-description" style="margin-bottom: 4px; display: block">\n Velg et navn som gjør det enkelt å huske snarveien, og finn den igjen under Mine snarveier.\n </span>\n <gn-input block fullwidth>\n <input\n id="shortcut-name-input"\n placeholder="Skriv inn snarveinavn"\n aria-describedby="input-description"\n />\n </gn-input>\n </gn-field-container>\n <div class="align-right">\n <gn-button id="cancel-add-shortcut-button"><button>Avbryt</button></gn-button>\n <gn-button id="save-shortcut-button" color="primary"><button>Lagre</button></gn-button>\n </div>\n </body-text>\n </gn-dialog>\n <gn-dialog id="remove-shortcut-dialog" width="400px">\n <heading-text>\n <h2>Fjern snarvei</h2>\n </heading-text>\n <body-text>\n <span style="margin-bottom: 4px; display: block">Er du sikker på at du vil fjerne snarveien?</span>\n </body-text>\n <div class="align-right">\n <gn-button id="cancel-remove-shortcut-button"><button>Avbryt</button></gn-button>\n <gn-button id="remove-shortcut-button" color="primary"><button>Fjern snarvei</button></gn-button>\n </div>\n </gn-dialog>\n</template>\n'},8434:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.HeadingText=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super()}connectedCallback(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),n=null!==this.closest("gn-dialog");if(e){const t=()=>{e.assignedElements({flatten:!0}).forEach((t=>{/^h[1-6]$/i.test(t.tagName)&&t.classList.add("heading")}))},o=()=>{e.assignedElements({flatten:!0}).forEach((t=>{/^h[1-6]$/i.test(t.tagName)&&t.classList.add("no-margin")}))};t(),n&&o(),e.addEventListener("slotchange",(()=>{t(),n&&o()}))}}setup(t){}};e.HeadingText=l,s([(0,d.Prop)()],l.prototype,"size",void 0),s([(0,d.Prop)()],l.prototype,"tag",void 0),s([(0,d.Toggle)()],l.prototype,"underline",void 0),e.HeadingText=l=s([(0,d.Component)({tag:"heading-text",template:Promise.resolve().then((()=>a(n(3772)))),style:Promise.resolve().then((()=>a(n(5562))))})],l)},8631:function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function s(t){try{d(o.next(t))}catch(t){i(t)}}function a(t){try{d(o.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}d((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;const r=n(169),i=n(6999),s=n(2466);e.Component=t=>e=>{var n;const a=t.tag||s.toKebabCase(e.prototype.constructor.name),d=((n=class extends e{constructor(){super(),this.props={},this.showShadowRoot=null==t.shadow||t.shadow,!this.shadowRoot&&this.showShadowRoot&&this.attachShadow({mode:"open"})}static get observedAttributes(){return Object.keys(this.propsInit||{}).map((t=>s.toKebabCase(t)))}attributeChangedCallback(t,e,n){this.onAttributeChange(t,e,n)}onAttributeChange(t,e,n,o=!0){if(e!=n){o&&(this[s.toCamelCase(t)]=n);const r=this.constructor.watchAttributes;if(r&&r[t]){const o=r[t];this.__connected&&"function"==typeof this[o]&&this[o]({old:e,new:n})}}}connectedCallback(){const t=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return o(this,void 0,void 0,(function*(){yield this.render(),t.connectedCallback&&t.connectedCallback.call(this),this.__connected=!0,r.addEventListeners(this),i.initializeProps(this)}))}render(){return o(this,void 0,void 0,(function*(){if(this.__connected)return;const e=document.createElement("template");e.innerHTML=yield this.getStyle(),t.template instanceof Promise?e.content.appendChild(yield this.getExternalTemplate()):"string"==typeof t.template&&(e.innerHTML+=t.template),(this.showShadowRoot?this.shadowRoot:this).appendChild(e.content.cloneNode(!0))}))}getExternalTemplate(){return o(this,void 0,void 0,(function*(){const e=(yield t.template).default.toString(),n=document.createRange().createContextualFragment(e);return 1===n.children.length&&"TEMPLATE"===n.children[0].nodeName?n.firstChild.content:n}))}getStyle(){return o(this,void 0,void 0,(function*(){let e;return t.style instanceof Promise?e=(yield t.style).default.toString():"string"==typeof t.style&&(e=t.style),e?`<style>${e}</style>`:""}))}}).__connected=!1,n.ready=new Promise(((t,e)=>t(!0))),n);return customElements.get(a)||customElements.define(a,d),d}},8861:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8914:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function s(t){try{d(o.next(t))}catch(t){i(t)}}function a(t){try{d(o.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}d((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.fetchDropdownSearchResults=e.fetchMenuItems=e.getGeonorgeMenuUrl=e.deleteShortcutItem=e.postShortcutItem=e.fetchShortcutItem=e.getMinSideShortcutUrl=e.getMinSideShortcutApiUrl=e.getKartkatalogApiUrl=void 0,e.getKartkatalogApiUrl=t=>`https://kartkatalog.${"dev"===t||"test"===t?t+".":""}geonorge.no/api`,e.getMinSideShortcutApiUrl=(t,e)=>`https://minside.${"dev"===t||"test"===t?t+".":""}geonorge.no/api/shortcut${(null==e?void 0:e.length)?`?${new URLSearchParams({url:e}).toString()}`:""}`,e.getMinSideShortcutUrl=t=>`https://minside.${"dev"===t||"test"===t?t+".":""}geonorge.no/shortcuts`,e.fetchShortcutItem=(...t)=>n(void 0,[...t],void 0,(function*(t="",n,o){const r=(0,e.getMinSideShortcutApiUrl)(t,o),i={method:"GET",headers:new Headers({Authorization:`Bearer ${n}`})};try{return fetch(r,i).then((t=>200===t.status?t.json().then((t=>t)):null))}catch(t){return console.error("Error fetching shortcut items:",t),null}})),e.postShortcutItem=(...t)=>n(void 0,[...t],void 0,(function*(t="",n,o){const r=(0,e.getMinSideShortcutApiUrl)(t),i={method:"POST",headers:new Headers({Authorization:`Bearer ${n}`,"Content-Type":"application/json"}),body:JSON.stringify(o)};return fetch(r,i).then((t=>t.json())).then((t=>t))})),e.deleteShortcutItem=(...t)=>n(void 0,[...t],void 0,(function*(t="",n,o){const r=(0,e.getMinSideShortcutApiUrl)(t),i={method:"DELETE",headers:new Headers({Authorization:`Bearer ${n}`,"Content-Type":"application/json"}),body:JSON.stringify(o)};return fetch(r,i)})),e.getGeonorgeMenuUrl=(t,e)=>"dev"===e?"https://dev.geonorge.no/menu.xml":`https://www.${"dev"===e||"test"===e?"test.":""}geonorge.no/${"en"===t?"en/":""}api/menu/get?omitLinks=1`,e.fetchMenuItems=(t="no",n="")=>{const o=(0,e.getGeonorgeMenuUrl)(t,n);return fetch(o).then((t=>t.json())).then((t=>t))},e.fetchDropdownSearchResults=(...t)=>n(void 0,[...t],void 0,(function*(t="",o="no",r=""){const i={dataset:`search?text=${t=t.toString()}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=dataset`,series:`search?text=${t}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=series`,service:`search?text=${t}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=service`,servicelayer:`search?text=${t}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=servicelayer`,software:`search?text=${t}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=software`,articles:`articles?text=${t}`},s={headers:new Headers({"Accept-Language":o})};return t&&t.length?yield Promise.all(Object.keys(i).map((t=>n(void 0,void 0,void 0,(function*(){const n=(0,e.getKartkatalogApiUrl)(r);return fetch(`${n}/${i[t]}&limit=5`,s).then((t=>t.json())).then((e=>Object.assign(Object.assign({},e),{searchResultsType:t})))}))))):null}))},9633:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor"><path d="M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></svg>'},9950:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.GnFieldContainer=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super()}setup(t){}};e.GnFieldContainer=l,e.GnFieldContainer=l=s([(0,d.Component)({tag:"gn-field-container",template:Promise.resolve().then((()=>a(n(1896)))),style:Promise.resolve().then((()=>a(n(5398))))})],l)}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={id:o,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.exports}return n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(376)})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.geonorge=e():(t.geonorge=t.geonorge||{},t.geonorge.GnShortcutButton=e())}(self,(()=>(()=>{var t={72:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e}),d=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GnDialog=void 0;const l=n(3128),c=n(5979),u=d(n(3437)),p=d(n(5340));let A=class extends l.CustomElement{constructor(){super(),this.handleClickOutside=t=>{const e=(0,l.getShadowRootElement)(this,"#dialog-content"),n=this.shadowRoot.querySelector("slot").assignedElements().some((e=>!!e.contains(t.target))),o=e.contains(t.target);!e||n||o||this.hideDialog()},this.hideDialog=()=>{this.setAttribute("show","false")},this.keyDownFunction=t=>{if(27!==t.keyCode)return null;this.hideDialog()},(0,c.addGlobalStylesheet)("gn-dialog-styles",p.default)}connectedCallback(){const t=(0,l.getShadowRootElement)(this,"#close-dialog-button");t.innerHTML=u.default,t.addEventListener("click",this.hideDialog),(0,l.getShadowRootElement)(this,"#dialog-container").addEventListener("click",this.handleClickOutside),document.addEventListener("keydown",this.keyDownFunction,!1)}disconnectedCallback(){(0,l.getShadowRootElement)(this,"#close-dialog-button").removeEventListener("click",this.hideDialog),(0,l.getShadowRootElement)(this,"#dialog-container").removeEventListener("click",this.handleClickOutside),document.removeEventListener("keydown",this.keyDownFunction,!1)}shouldShowDialog(t){return""===(null==t?void 0:t.toString())||"true"===(null==t?void 0:t.toString())}shouldHaveNoPadding(t){return""===(null==t?void 0:t.toString())||"true"===(null==t?void 0:t.toString())}showMenuChanged(){const t=this.shouldShowDialog(this.show),e=(0,l.getShadowRootElement)(this,"#dialog-container");t?null==e||e.classList.add("visible"):null==e||e.classList.remove("visible")}nopaddingChanged(){const t=this.shouldHaveNoPadding(this.nopadding),e=(0,l.getShadowRootElement)(this,"#dialog-content");t?e.classList.add("noPadding"):e.classList.remove("noPadding")}overflowChanged(){var t;const e=(null===(t=this.overflow)||void 0===t?void 0:t.length)?this.overflow:"visible";(0,l.getShadowRootElement)(this,"#dialog-content").style.overflow=e}widthChanged(){(0,l.getShadowRootElement)(this,"#dialog-content").style.maxWidth=this.width}setup(t){}};e.GnDialog=A,s([(0,l.Toggle)()],A.prototype,"show",void 0),s([(0,l.Toggle)()],A.prototype,"nopadding",void 0),s([(0,l.Prop)()],A.prototype,"width",void 0),s([(0,l.Prop)()],A.prototype,"overflow",void 0),s([(0,l.Watch)("show")],A.prototype,"showMenuChanged",null),s([(0,l.Watch)("nopadding")],A.prototype,"nopaddingChanged",null),s([(0,l.Watch)("overflow")],A.prototype,"overflowChanged",null),s([(0,l.Watch)("width")],A.prototype,"widthChanged",null),e.GnDialog=A=s([(0,l.Component)({tag:"gn-dialog",template:Promise.resolve().then((()=>a(n(6622)))),style:Promise.resolve().then((()=>a(n(3570))))})],A)},164:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,r,i){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(o)for(var a=0;a<this.length;a++){var d=this[a][0];null!=d&&(s[d]=!0)}for(var l=0;l<t.length;l++){var c=[].concat(t[l]);o&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},169:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Dispatch=e.addEventListeners=e.Listen=void 0;const o=n(2466);e.Listen=(t,e)=>(n,o)=>{n.constructor.listeners||(n.constructor.listeners=[]),n.constructor.listeners.push({selector:e,eventName:t,handler:n[o]})},e.addEventListeners=t=>{if(t.constructor.listeners){const e=t.shadowRoot||t;for(const n of t.constructor.listeners){const o=n.selector?e.querySelector(n.selector)?e.querySelector(n.selector):null:t;o&&o.addEventListener(n.eventName,(e=>{n.handler.call(t,e)}))}}},e.Dispatch=t=>(e,n)=>{Object.defineProperty(e,n,{get:function(){const e=this;return{emit(r){const i=t||o.toDotCase(n);e.dispatchEvent(new CustomEvent(i,r))}}}})}},376:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e}),d=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function s(t){try{d(o.next(t))}catch(t){i(t)}}function a(t){try{d(o.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}d((o=o.apply(t,e||[])).next())}))},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GnShortcutButton=void 0;const c=n(3128),u=n(3096),p=n(72),A=n(9950),h=n(1534),g=n(1660),b=n(8434),f=n(5979),m=n(8914),C=l(n(9633)),y=l(n(3572));let v=class extends c.CustomElement{constructor(){super(),(0,f.addGlobalStylesheet)("gn-shortcut-button-styles",y.default)}setup(t){this.connect(t.container),t.id&&(this.id=t.id)}connectedCallback(){this.addShortcutDialogElement=(0,c.getShadowRootElement)(this,"#add-shortcut-dialog"),this.removeShortcutDialogElement=(0,c.getShadowRootElement)(this,"#remove-shortcut-dialog"),this.saveShortcutButtonElement=(0,c.getShadowRootElement)(this,"#save-shortcut-button"),this.removeShortcutButtonElement=(0,c.getShadowRootElement)(this,"#remove-shortcut-button"),this.cancelAddShortcutButtonElement=(0,c.getShadowRootElement)(this,"#cancel-add-shortcut-button"),this.cancelRemoveShortcutButtonElement=(0,c.getShadowRootElement)(this,"#cancel-remove-shortcut-button"),new u.GnButton,new p.GnDialog,new A.GnFieldContainer,new h.GnInput,new g.BodyText,new b.HeadingText,this.initShortcutNameInput()}disconnectedCallback(){}getShortcutItem(t,e){return d(this,void 0,void 0,(function*(){try{return yield(0,m.fetchShortcutItem)(t,e,window.location.href)}catch(t){console.error("Error fetching shortcut items:",t)}}))}saveShortcut(t){const e={name:this.shortcutName||document.title,url:window.location.href};(0,m.postShortcutItem)(this.environment,t,e).then((()=>{this.replaceShortcutButton(!0)})).catch((t=>{console.error("Error saving shortcut:",t)}))}removeShortcut(t){(0,m.deleteShortcutItem)(this.environment,t,{url:window.location.href}).then((()=>{this.replaceShortcutButton(!1)})).catch((t=>{console.error("Error removing shortcut:",t)}))}openDialog(t){this.shortcutNameInputElement.value=document.title,t?(this.removeShortcutDialogElement.setAttribute("show","true"),this.removeShortcutDialogElement.setAttribute("aria-hidden","false"),this.addShortcutDialogElement.removeAttribute("show")):(this.addShortcutDialogElement.setAttribute("show","true"),this.addShortcutDialogElement.setAttribute("aria-hidden","false"),this.removeShortcutDialogElement.removeAttribute("show"))}closeDialog(){this.addShortcutDialogElement.removeAttribute("show"),this.addShortcutDialogElement.setAttribute("aria-hidden","true"),this.removeShortcutDialogElement.removeAttribute("show"),this.removeShortcutDialogElement.setAttribute("aria-hidden","true")}renderShortcutButton(t){const e=document.createElement("button");return e.setAttribute("id","gn-shortcut-button"),e.setAttribute("role","button"),e.setAttribute("aria-pressed","false"),e.classList.add("gn-shortcut-button"),t?(e.innerHTML=C.default,e.setAttribute("aria-label","en"===this.language?"This page is saved as a shortcut. Sure you want to remove it?":"Denne siden er lagret som en snarvei. Er du sikker på at du vil fjerne den?"),e.setAttribute("title","en"===this.language?"Remove shortcut":"Fjern snarvei"),e.classList.add("active")):(e.innerHTML=C.default,e.setAttribute("aria-label","en"===this.language?"Add shortcut to this page":"Lagre snarvei for denne siden"),e.setAttribute("title","en"===this.language?"Add shortcut":"Lagre snarvei"),e.classList.remove("active")),this.saveShortcutButtonElement.onclick=()=>{const t=this.getAuthToken();t&&(this.saveShortcut(t),this.closeDialog())},this.removeShortcutButtonElement.onclick=()=>{const t=this.getAuthToken();t&&(this.removeShortcut(t),this.closeDialog())},this.cancelAddShortcutButtonElement.onclick=()=>this.closeDialog(),this.cancelRemoveShortcutButtonElement.onclick=()=>this.closeDialog(),e.onclick=()=>this.openDialog(t),e.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.click())})),e.addEventListener("focus",(()=>{e.setAttribute("aria-pressed","true")})),e.addEventListener("blur",(()=>{e.setAttribute("aria-pressed","false")})),e}replaceShortcutButton(t){const e=this.renderShortcutButton(t);if(this.shortcutButton)this.shortcutButton.replaceWith(e);else{const t=(0,f.getDocumentHeading)();t&&t.after(e)}this.shortcutButton=e}appendShortcutButtonAfterFirstHeading(t){const e=document.createElement("div");e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="flex-start";const n=(0,f.getDocumentHeading)();n?(n.style.display="inline-block",n.parentNode.insertBefore(e,n),e.appendChild(n),this.replaceShortcutButton(t)):console.error("First heading or shortcut button is missing")}initShortcutNameInput(){this.shortcutNameInputElement=(0,c.getShadowRootElement)(this,"#shortcut-name-input"),this.shortcutNameInputElement.addEventListener("input",(()=>{var t,e;this.shortcutName=this.shortcutNameInputElement.value,this.shortcutName.trim()?null===(t=this.saveShortcutButtonElement.firstElementChild)||void 0===t||t.removeAttribute("disabled"):null===(e=this.saveShortcutButtonElement.firstElementChild)||void 0===e||e.setAttribute("disabled","true")})),this.shortcutNameInputElement.addEventListener("keydown",(t=>{"Enter"===t.key&&(t.preventDefault(),this.shortcutName.trim()&&this.saveShortcutButtonElement.click())}))}tokenChanged(){return d(this,void 0,void 0,(function*(){const t=null==this?void 0:this.token;if(!t)return void console.error("No token found");this.language=this.language||"en";const e=!!(yield this.getShortcutItem(this.environment,t));this.style.display="block",this.appendShortcutButtonAfterFirstHeading(e)}))}static setup(t,e){setTimeout((()=>{const n=(0,c.getElement)(t);n?e&&e.getAuthToken?(n.getAuthToken=e.getAuthToken,n.token=e.getAuthToken()):console.error("getAuthToken function is required in options."):console.error(`Element with selector "${t}" not found.`)}))}};e.GnShortcutButton=v,s([(0,c.Prop)()],v.prototype,"id",void 0),s([(0,c.Prop)()],v.prototype,"language",void 0),s([(0,c.Prop)()],v.prototype,"environment",void 0),s([(0,c.Prop)()],v.prototype,"token",void 0),s([(0,c.Watch)("token")],v.prototype,"tokenChanged",null),e.GnShortcutButton=v=s([(0,c.Component)({tag:"gn-shortcut-button",template:Promise.resolve().then((()=>a(n(8254)))),style:Promise.resolve().then((()=>a(n(3595))))})],v)},1040:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,':host([block]){display:block}:host(:not([block])){display:inline-block}:host([fullwidth]){display:block}:host([fullwidth]) ::slotted(input){width:100%}:host([width]) ::slotted(input[type=text]),:host([width]) ::slotted(input[type=number]),:host([width]) ::slotted(input[type=email]),:host([width]) ::slotted(input[type=tel]),:host([width]) ::slotted(input[type=date]),:host([width]) ::slotted(input[type=datetime-local]),:host([width]) ::slotted(input[type=time]),:host([width]) ::slotted(input[type=url]),:host([width]) ::slotted(input[type=search]),:host([width]) ::slotted(input[type=password]),:host([width]) ::slotted(input:not([type])){width:100%}::slotted(input[type=text]),::slotted(input[type=number]),::slotted(input[type=email]),::slotted(input[type=tel]),::slotted(input[type=date]),::slotted(input[type=datetime-local]),::slotted(input[type=time]),::slotted(input[type=url]),::slotted(input[type=search]),::slotted(input[type=password]),::slotted(input:not([type])){-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-border-radius:4px;border-radius:4px;box-sizing:border-box;font-family:"Open Sans",sans-serif;font-size:16px;font-size:12pt;padding:0 8px;height:32px;box-shadow:none;position:relative;z-index:1;background-color:#fff;border:1px solid #d8d8d8;color:#2f3940}::slotted(input[type=text]:disabled),::slotted(input[type=number]:disabled),::slotted(input[type=email]:disabled),::slotted(input[type=tel]:disabled),::slotted(input[type=date]:disabled),::slotted(input[type=datetime-local]:disabled),::slotted(input[type=time]:disabled),::slotted(input[type=url]:disabled),::slotted(input[type=search]:disabled),::slotted(input[type=password]:disabled),::slotted(input:not([type]):disabled){background-color:#f4f4f4;color:#707070;border:1px solid #dedede;cursor:not-allowed}::slotted(input[type=checkbox]),::slotted(input[type=radio]){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #2f3940;font:inherit;color:currentColor;width:16px;height:16px;margin:0 6px 0 0}::slotted(input[type=checkbox]:checked),::slotted(input[type=radio]:checked){border-color:#3767c7}::slotted(input[type=checkbox]:focus-visible),::slotted(input[type=radio]:focus-visible){outline:max(2px,.1em) solid #3767c7;outline-offset:max(2px,.1em)}::slotted(input[type=checkbox]){-webkit-border-radius:3px;border-radius:3px;vertical-align:text-top}::slotted(input[type=checkbox]:checked)::before{background-color:#3767c7;content:"✓";line-height:13px;color:#fff;display:inline-block;vertical-align:top;width:100%}::slotted(input[type=checkbox]:disabled){background-color:#dedede;border-color:#dedede;cursor:not-allowed}::slotted(input[type=checkbox]:checked:disabled)::before{background-color:#dedede;color:#707070}::slotted(input[type=radio]){-webkit-border-radius:50%;border-radius:50%;transform:translateY(-0.075em);display:inline-grid;place-content:center}::slotted(input[type=radio])::before{-webkit-border-radius:50%;border-radius:50%;content:"";width:8px;height:8px;transform:scale(0);transition:120ms transform ease-in-out}::slotted(input[type=radio]:checked)::before{background-color:#3767c7;transform:scale(1)}::slotted(input[type=radio]:disabled){border-color:#dedede}::slotted(input[type=radio]:checked:disabled)::before{background-color:#dedede;transform:scale(1)}',"",{version:3,sources:["webpack://./stories/gn-input/template.scss","webpack://./style/variables/_typography.scss","webpack://./style/variables/_colors.scss"],names:[],mappings:"AAAA,eAKA,aACI,CAAA,qBAGJ,oBACI,CAAA,mBAGJ,aACI,CAAA,oCACA,UACI,CAAA,2eAKJ,UAWI,CAAA,sUAIR,uBAWmC,CAAA,oBAAA,CAAA,eAAA,CAAA,yBACM,CAAA,iBAAA,CAAA,qBACrC,CAAA,kCCjDW,CAAA,cDmDX,CAAA,cACA,CAAA,aACA,CAAA,WACA,CAAA,eACA,CAAA,iBACA,CAAA,SACA,CAAA,qBACA,CAAA,wBACA,CAAA,aEpDU,CAAA,yaFwDd,wBE/BsB,CAAA,aAEN,CAAA,wBF0CZ,CAAA,kBACA,CAAA,6DAGJ,uBAEmC,CAAA,oBAAA,CAAA,eAAA,CAAA,wBAC/B,CAAA,YACA,CAAA,kBACA,CAAA,UACA,CAAA,WACA,CAAA,gBACA,CAAA,6EAGJ,oBE5Ee,CAAA,yFFiFf,mCAEI,CAAA,4BACA,CAAA,gCAGJ,yBACyC,CAAA,iBAAA,CAAA,uBACrC,CAAA,gDAIA,wBE7FW,CAAA,WF+FP,CAAA,gBACA,CAAA,UACA,CAAA,oBACA,CAAA,kBACA,CAAA,UACA,CAAA,yCAIR,wBEtFkB,CAAA,oBAAA,CAAA,kBFyFd,CAAA,yDAIA,wBE7Fc,CAAA,aACF,CAAA,6BFkGhB,yBACyC,CAAA,iBAAA,CAAA,8BACrC,CAAA,mBACA,CAAA,oBACA,CAAA,qCACA,yBACyC,CAAA,iBAAA,CAAA,UACrC,CAAA,SACA,CAAA,UACA,CAAA,kBACA,CAAA,sCACA,CAAA,6CAKJ,wBErIW,CAAA,kBFuIP,CAAA,sCAIR,oBEzHkB,CAAA,sDF8Hd,wBE9Hc,CAAA,kBFgIV",sourcesContent:['@use "../../style/mixins/appearance";\n@use "../../style/mixins/border-radius";\n@use "../../style/variables/colors";\n@use "../../style/variables/typography";\n\n:host([block]) {\n display: block;\n}\n\n:host(:not([block])) {\n display: inline-block;\n}\n\n:host([fullwidth]) {\n display: block;\n ::slotted(input) {\n width: 100%;\n }\n}\n\n:host([width]) {\n ::slotted(input[type="text"]),\n ::slotted(input[type="number"]),\n ::slotted(input[type="email"]),\n ::slotted(input[type="tel"]),\n ::slotted(input[type="date"]),\n ::slotted(input[type="datetime-local"]),\n ::slotted(input[type="time"]),\n ::slotted(input[type="url"]),\n ::slotted(input[type="search"]),\n ::slotted(input[type="password"]),\n ::slotted(input:not([type])) {\n width: 100%;\n }\n}\n\n::slotted(input[type="text"]),\n::slotted(input[type="number"]),\n::slotted(input[type="email"]),\n::slotted(input[type="tel"]),\n::slotted(input[type="date"]),\n::slotted(input[type="datetime-local"]),\n::slotted(input[type="time"]),\n::slotted(input[type="url"]),\n::slotted(input[type="search"]),\n::slotted(input[type="password"]),\n::slotted(input:not([type])) {\n @include appearance.appearance(none);\n @include border-radius.border-radius(4px);\n box-sizing: border-box;\n font-family: typography.$default-font;\n font-size: 16px;\n font-size: 12pt;\n padding: 0 8px;\n height: 32px;\n box-shadow: none;\n position: relative;\n z-index: 1;\n background-color: #fff;\n border: 1px solid colors.$default-border;\n color: colors.$default-text;\n}\n\n::slotted(input[type="text"]:disabled),\n::slotted(input[type="number"]:disabled),\n::slotted(input[type="email"]:disabled),\n::slotted(input[type="tel"]:disabled),\n::slotted(input[type="date"]:disabled),\n::slotted(input[type="datetime-local"]:disabled),\n::slotted(input[type="time"]:disabled),\n::slotted(input[type="url"]:disabled),\n::slotted(input[type="search"]:disabled),\n::slotted(input[type="password"]:disabled),\n::slotted(input:not([type]):disabled) {\n background-color: colors.$disabled-background;\n color: colors.$disabled-text;\n border: 1px solid colors.$disabled-border;\n cursor: not-allowed;\n}\n\n::slotted(input[type="checkbox"]),\n::slotted(input[type="radio"]) {\n @include appearance.appearance(none);\n border: 2px solid colors.$default-text;\n font: inherit;\n color: currentColor;\n width: 16px;\n height: 16px;\n margin: 0 6px 0 0;\n}\n\n::slotted(input[type="checkbox"]:checked),\n::slotted(input[type="radio"]:checked) {\n border-color: colors.$primary-text;\n}\n\n::slotted(input[type="checkbox"]:focus-visible),\n::slotted(input[type="radio"]:focus-visible) {\n outline: max(2px, 0.1em) solid colors.$primary-text;\n outline-offset: max(2px, 0.1em);\n}\n\n::slotted(input[type="checkbox"]) {\n @include border-radius.border-radius(3px);\n vertical-align: text-top;\n}\n\n::slotted(input[type="checkbox"]:checked) {\n &::before {\n background-color: colors.$primary-text;\n content: "✓";\n line-height: 13px;\n color: #fff;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n }\n}\n\n::slotted(input[type="checkbox"]:disabled) {\n background-color: colors.$disabled-border;\n border-color: colors.$disabled-border;\n cursor: not-allowed;\n}\n\n::slotted(input[type="checkbox"]:checked:disabled) {\n &::before {\n background-color: colors.$disabled-border;\n color: colors.$disabled-text;\n }\n}\n\n::slotted(input[type="radio"]) {\n @include border-radius.border-radius(50%);\n transform: translateY(-0.075em);\n display: inline-grid;\n place-content: center;\n &::before {\n @include border-radius.border-radius(50%);\n content: "";\n width: 8px;\n height: 8px;\n transform: scale(0);\n transition: 120ms transform ease-in-out;\n }\n}\n\n::slotted(input[type="radio"]:checked) {\n &::before {\n background-color: colors.$primary-text;\n transform: scale(1);\n }\n}\n\n::slotted(input[type="radio"]:disabled) {\n border-color: colors.$disabled-border;\n}\n\n::slotted(input[type="radio"]:checked:disabled) {\n &::before {\n background-color: colors.$disabled-border;\n transform: scale(1);\n }\n}\n','$default-font: "Open Sans", sans-serif;\n$header-font: "Raleway", sans-serif;\n$default-font-size: 15px;\n',"$body-background: #ffffff;\n$navigation-bar-background: #f7f7f7;\n$hover-background: rgba(0,0,0,.05);\n$default-border: #d8d8d8;\n\n$default-background: #eee;\n$default-background-hover: #ddd;\n$default-text:#2F3940;\n\n$light-gray: #f6f5f4;\n\n$primary-brand: #FE5000;\n\n$primary-background: #3767C7;\n$primary-background-hover: #FE5000;\n$primary-text: #3767C7;\n$primary-text-hover:#0056b3;\n\n\n$success-background: #06A755;\n$success-background-hover: #009745;\n$success-text: #06A755;\n\n\n$warning-background: #C38621;\n$warning-background-hover: #B37611;\n$warning-text: #C38621;\n\n$danger-background: #E00d0D;\n$danger-background-hover: #D00000;\n$danger-text: #E00d0D;\n\n$disabled-background: #f4f4f4;\n$disabled-border: #dedede;\n$disabled-text: #707070;\n\n\n$light-green: #8fff33;\n$light-yellow: #ffEb3b;\n$light-red: #ff4a2e;\n"],sourceRoot:""}]);const a=s},1063:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Watch=void 0;const o=n(2466);e.Watch=t=>(e,n)=>{e.constructor.watchAttributes||(e.constructor.watchAttributes={}),e.constructor.watchAttributes[o.toKebabCase(t)]=n,e.constructor.propsInit||(e.constructor.propsInit={}),e.constructor.propsInit[t]=null}},1534:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.GnInput=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super()}widthChanged(){(0,d.getShadowRootElement)(this,"#input-container").style.width=this.width}setup(t){}};e.GnInput=l,s([(0,d.Toggle)()],l.prototype,"block",void 0),s([(0,d.Toggle)()],l.prototype,"fullwidth",void 0),s([(0,d.Prop)()],l.prototype,"width",void 0),s([(0,d.Watch)("width")],l.prototype,"widthChanged",null),e.GnInput=l=s([(0,d.Component)({tag:"gn-input",template:Promise.resolve().then((()=>a(n(6496)))),style:Promise.resolve().then((()=>a(n(1040))))})],l)},1660:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.BodyText=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super()}setup(t){}};e.BodyText=l,e.BodyText=l=s([(0,d.Component)({tag:"body-text",template:Promise.resolve().then((()=>a(n(2698)))),style:Promise.resolve().then((()=>a(n(2576))))})],l)},1896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o="<template>\n <slot></slot>\n</template>\n"},2466:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tryParseInt=e.toDotCase=e.toCamelCase=e.toKebabCase=void 0,e.toKebabCase=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),e.toCamelCase=t=>t.toLowerCase().replace(/(\-\w)/g,(t=>t[1].toUpperCase())),e.toDotCase=t=>t.replace(/(?!^)([A-Z])/g," $1").replace(/[_\s]+(?=[a-zA-Z])/g,".").toLowerCase(),e.tryParseInt=t=>parseInt(t)==t&&NaN!==parseFloat(t)?parseInt(t):t},2576:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,':host,::slotted(*){font-family:"Open Sans",sans-serif;font-size:15px;color:#2f3940;line-height:24px;font-weight:300}',"",{version:3,sources:["webpack://./stories/body-text/body-text.scss","webpack://./style/variables/_typography.scss"],names:[],mappings:"AAGA,mBAEI,kCCLW,CDMX,cCJgB,CDKhB,aAAA,CACA,gBAAA,CACA,eAAA",sourcesContent:['@use "../../style/variables/colors";\n@use "../../style/variables/typography";\n\n:host,\n::slotted(*) {\n font-family: typography.$default-font;\n font-size: typography.$default-font-size;\n color: colors.$default-text;\n line-height: 24px;\n font-weight: 300;\n}\n','$default-font: "Open Sans", sans-serif;\n$header-font: "Raleway", sans-serif;\n$default-font-size: 15px;\n'],sourceRoot:""}]);const a=s},2698:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o="<template>\n <slot></slot>\n</template>\n"},3096:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.GnButton=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super(),this.handleMouseEnter=t=>{t.currentTarget.classList.add("is-hovered")},this.handleMouseLeave=t=>{t.currentTarget.classList.remove("is-hovered")}}setup(t){this.connect(null==t?void 0:t.container),(null==t?void 0:t.id)&&(this.id=t.id),requestAnimationFrame((()=>this.applyColorClass()))}onColorChange(){this.applyColorClass()}applyColorClass(){var t;if(!this.slotEl&&(this.slotEl=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),!this.slotEl))return;const e="color-";this.slotEl.assignedElements({flatten:!0}).forEach((t=>{t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseLeave),t.classList.forEach((n=>{n.startsWith(e)&&t.classList.remove(n)})),this.color&&t.classList.add(`${e}${this.color}`),t.addEventListener("mouseenter",this.handleMouseEnter),t.addEventListener("mouseleave",this.handleMouseLeave)}))}};e.GnButton=l,s([(0,d.Prop)()],l.prototype,"color",void 0),s([(0,d.Watch)("color")],l.prototype,"onColorChange",null),e.GnButton=l=s([(0,d.Component)({tag:"gn-button",template:Promise.resolve().then((()=>a(n(7390)))),style:Promise.resolve().then((()=>a(n(5074))))})],l)},3128:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(8631),e),r(n(3704),e),r(n(3365),e),r(n(169),e),r(n(6999),e),r(n(3982),e),r(n(8861),e),r(n(1063),e)},3365:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadowRootElement=e.getElement=void 0,e.getElement=t=>document.querySelector(t),e.getShadowRootElement=(t,e)=>t.shadowRoot.querySelector(e)},3437:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path fill="currentColor" d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"></path></svg>'},3570:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,".dialog-container:not(.visible){display:none}.dialog-container.visible{display:flex;flex-wrap:wrap;position:fixed;width:100%;background:rgba(0,0,0,.25);height:100%;top:0;left:0;align-content:center;padding:8px 28px;z-index:2;justify-content:center;box-sizing:border-box}@media(min-width: 992px){.dialog-container.visible{padding:36px}}.dialog-container .dialog-content{max-height:-moz-calc(100% - 128px);max-height:-webkit-calc(100% - 128px);max-height:calc(100% - 128px);-webkit-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);-moz-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);-webkit-border-radius:4px;border-radius:4px;max-width:540px;width:100%;background-color:#fff;position:relative}.dialog-container .dialog-content:not(.noPadding){padding:28px 22px 22px}@media(min-width: 768px){.dialog-container .dialog-content:not(.noPadding){padding:38px 30px 30px}}.dialog-container .dialog-content.noPadding{padding:28px 0 0}@media(min-width: 768px){.dialog-container .dialog-content.noPadding{padding:38px 0 0}}@media(min-width: 992px){.dialog-container .dialog-content{width:-moz-calc(100% - 128px);width:-webkit-calc(100% - 128px);width:calc(100% - 128px);max-height:100%}}.dialog-container .dialog-content .close-dialog-button{background:none;border:none;color:#2f3940;display:inline-block;position:absolute;right:7px;top:4px;text-decoration:underline;font-size:19px;cursor:pointer;padding:0;right:8px;top:5px}@media(min-width: 768px){.dialog-container .dialog-content .close-dialog-button{right:15px;top:10px}}.dialog-container .dialog-content .close-dialog-button:hover{text-decoration:none}.dialog-container .dialog-content .close-dialog-button svg{width:17px;height:17px}","",{version:3,sources:["webpack://./stories/gn-dialog/template.scss","webpack://./style/mixins/_breakpoints.scss","webpack://./style/mixins/_calc.scss","webpack://./style/mixins/_box-shadow.scss","webpack://./style/mixins/_border-radius.scss","webpack://./style/variables/_colors.scss"],names:[],mappings:"AAOI,gCACI,YAAA,CAEJ,0BACI,YAAA,CACA,cAAA,CACA,cAAA,CACA,UAAA,CACA,0BAAA,CACA,WAAA,CACA,KAAA,CACA,MAAA,CACA,oBAAA,CACA,gBAAA,CACA,SAAA,CACA,sBAAA,CACA,qBAAA,CCfA,yBDEJ,0BAeQ,YAAA,CAAA,CAGR,kCE3BF,kCAAA,CACA,qCAAA,CACA,6BAAA,CCFE,iHH6BI,CG5BJ,8GH4BI,CG3BJ,yGH2BI,CI7BN,yBJkC2C,CIjC3C,iBJiC2C,CACrC,eAAA,CACA,UAAA,CACA,qBAAA,CACA,iBAAA,CACA,kDACI,sBAAA,CC7BJ,yBD4BA,kDAGQ,sBAAA,CAAA,CAGR,4CACI,gBAAA,CCnCJ,yBDkCA,4CAGQ,gBAAA,CAAA,CCzCR,yBDoBJ,kCE3BF,6BAAA,CACA,gCAAA,CACA,wBAAA,CFmDU,eAAA,CAAA,CAEJ,uDACI,eAAA,CACA,WAAA,CACA,aKpDE,CLqDF,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,OAAA,CACA,yBAAA,CACA,cAAA,CACA,cAAA,CACA,SAAA,CACA,SAAA,CACA,OAAA,CCzDJ,yBD4CA,uDAeQ,UAAA,CACA,QAAA,CAAA,CAEJ,6DACI,oBAAA,CAEJ,2DACI,UAAA,CACA,WAAA",sourcesContent:['@use "../../style/mixins/border-radius";\n@use "../../style/mixins/box-shadow";\n@use "../../style/mixins/breakpoints";\n@use "../../style/mixins/calc";\n@use "../../style/variables/colors";\n\n.dialog-container {\n &:not(.visible) {\n display: none;\n }\n &.visible {\n display: flex;\n flex-wrap: wrap;\n position: fixed;\n width: 100%;\n background: rgba(0, 0, 0, 0.25);\n height: 100%;\n top: 0;\n left: 0;\n align-content: center;\n padding: 8px 28px;\n z-index: 2;\n justify-content: center;\n box-sizing: border-box;\n @include breakpoints.breakpoint(laptop) {\n padding: 36px;\n }\n }\n .dialog-content {\n @include calc.calc("max-height", "100% - 128px");\n @include box-shadow.box-shadow(\n 0 11px 15px -7px rgba(0, 0, 0, 0.2),\n 0 24px 38px 3px rgba(0, 0, 0, 0.14),\n 0 9px 46px 8px rgba(0, 0, 0, 0.12)\n );\n @include border-radius.border-radius(4px);\n max-width: 540px;\n width: 100%;\n background-color: #fff;\n position: relative;\n &:not(.noPadding) {\n padding: 28px 22px 22px;\n @include breakpoints.breakpoint(tablet) {\n padding: 38px 30px 30px;\n }\n }\n &.noPadding {\n padding: 28px 0 0;\n @include breakpoints.breakpoint(tablet) {\n padding: 38px 0 0;\n }\n }\n @include breakpoints.breakpoint(laptop) {\n @include calc.calc("width", "100% - 128px");\n max-height: 100%;\n }\n .close-dialog-button {\n background: none;\n border: none;\n color: colors.$default-text;\n display: inline-block;\n position: absolute;\n right: 7px;\n top: 4px;\n text-decoration: underline;\n font-size: 19px;\n cursor: pointer;\n padding: 0;\n right: 8px;\n top: 5px;\n @include breakpoints.breakpoint(tablet) {\n right: 15px;\n top: 10px;\n }\n &:hover {\n text-decoration: none;\n }\n svg {\n width: 17px;\n height: 17px;\n }\n }\n }\n}\n','@use "../variables/breakpoints";\n\n@mixin breakpoint($point) {\n @if $point == desktop {\n @media (min-width: breakpoints.$screen-desktop) {\n @content;\n }\n } @else if $point == laptop {\n @media (min-width: breakpoints.$screen-laptop) {\n @content;\n }\n } @else if $point == tablet {\n @media (min-width: breakpoints.$screen-tablet) {\n @content;\n }\n } @else if $point == phablet {\n @media (min-width: breakpoints.$screen-phablet) {\n @content;\n }\n }\n}\n',"\ufeff@mixin calc($property, $expression) {\n #{$property}: -moz-calc(#{$expression});\n #{$property}: -webkit-calc(#{$expression});\n #{$property}: calc(#{$expression});\n}","\ufeff@mixin box-shadow($shadows...) {\n -webkit-box-shadow: $shadows;\n -moz-box-shadow: $shadows;\n box-shadow: $shadows;\n}\n","@mixin border-radius($radius) {\n -webkit-border-radius: $radius;\n border-radius: $radius;\n}\n\n// Single side border-radius\n\n@mixin border-top-radius($radius) {\n -webkit-border-top-right-radius: $radius;\n border-top-right-radius: $radius;\n -webkit-border-top-left-radius: $radius;\n border-top-left-radius: $radius;\n}\n@mixin border-right-radius($radius) {\n -webkit-border-bottom-right-radius: $radius;\n border-bottom-right-radius: $radius;\n -webkit-border-top-right-radius: $radius;\n border-top-right-radius: $radius;\n}\n@mixin border-bottom-radius($radius) {\n -webkit-border-bottom-right-radius: $radius;\n border-bottom-right-radius: $radius;\n -webkit-border-bottom-left-radius: $radius;\n border-bottom-left-radius: $radius;\n}\n@mixin border-left-radius($radius) {\n -webkit-border-bottom-left-radius: $radius;\n border-bottom-left-radius: $radius;\n -webkit-border-top-left-radius: $radius;\n border-top-left-radius: $radius;\n}","$body-background: #ffffff;\n$navigation-bar-background: #f7f7f7;\n$hover-background: rgba(0,0,0,.05);\n$default-border: #d8d8d8;\n\n$default-background: #eee;\n$default-background-hover: #ddd;\n$default-text:#2F3940;\n\n$light-gray: #f6f5f4;\n\n$primary-brand: #FE5000;\n\n$primary-background: #3767C7;\n$primary-background-hover: #FE5000;\n$primary-text: #3767C7;\n$primary-text-hover:#0056b3;\n\n\n$success-background: #06A755;\n$success-background-hover: #009745;\n$success-text: #06A755;\n\n\n$warning-background: #C38621;\n$warning-background-hover: #B37611;\n$warning-text: #C38621;\n\n$danger-background: #E00d0D;\n$danger-background-hover: #D00000;\n$danger-text: #E00d0D;\n\n$disabled-background: #f4f4f4;\n$disabled-border: #dedede;\n$disabled-text: #707070;\n\n\n$light-green: #8fff33;\n$light-yellow: #ffEb3b;\n$light-red: #ff4a2e;\n"],sourceRoot:""}]);const a=s},3572:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,".gn-shortcut-button{width:40px;height:40px;background:none;border:none;cursor:pointer}.gn-shortcut-button svg{width:25px;height:25px;stroke:#2f3940;fill:none;-moz-transition:all .1s linear 0s;-o-transition:all .1s linear 0s;-webkit-transition:all .1s linear 0s;transition:all .1s linear 0s;stroke-width:2px}.gn-shortcut-button:hover svg{stroke:#fe5000;fill:#fe5000}.gn-shortcut-button.active svg{stroke:#fe5000;fill:#fe5000}.gn-shortcut-button.active:hover svg{stroke:#2f3940;fill:none}","",{version:3,sources:["webpack://./stories/gn-shortcut-button/gn-shortcut-button.scss","webpack://./style/variables/_colors.scss","webpack://./style/mixins/_transition.scss"],names:[],mappings:"AAGA,oBACI,UAAA,CACA,WAAA,CACA,eAAA,CACA,WAAA,CACA,cAAA,CACA,wBACI,UAAA,CACA,WAAA,CACA,cCLM,CDMN,SAAA,CEZJ,iCFaI,CEZJ,+BFYI,CEXJ,oCFWI,CEVJ,4BFUI,CACA,gBAAA,CAGA,8BACI,cCRI,CDSJ,YCTI,CDcR,+BACI,cCfI,CDgBJ,YChBI,CDmBJ,qCACI,cCxBF,CDyBE,SAAA",sourcesContent:['@use "../../style/mixins/transition";\n@use "../../style/variables/colors";\n\n.gn-shortcut-button {\n width: 40px;\n height: 40px;\n background: none;\n border: none;\n cursor: pointer;\n & svg {\n width: 25px;\n height: 25px;\n stroke: colors.$default-text;\n fill: none;\n @include transition.transition(all 0.1s linear 0s);\n stroke-width: 2px;\n }\n &:hover {\n & svg {\n stroke: colors.$primary-brand;\n fill: colors.$primary-brand;\n }\n }\n\n &.active {\n & svg {\n stroke: colors.$primary-brand;\n fill: colors.$primary-brand;\n }\n &:hover {\n & svg {\n stroke: colors.$default-text;\n fill: none;\n }\n }\n }\n}\n',"$body-background: #ffffff;\n$navigation-bar-background: #f7f7f7;\n$hover-background: rgba(0,0,0,.05);\n$default-border: #d8d8d8;\n\n$default-background: #eee;\n$default-background-hover: #ddd;\n$default-text:#2F3940;\n\n$light-gray: #f6f5f4;\n\n$primary-brand: #FE5000;\n\n$primary-background: #3767C7;\n$primary-background-hover: #FE5000;\n$primary-text: #3767C7;\n$primary-text-hover:#0056b3;\n\n\n$success-background: #06A755;\n$success-background-hover: #009745;\n$success-text: #06A755;\n\n\n$warning-background: #C38621;\n$warning-background-hover: #B37611;\n$warning-text: #C38621;\n\n$danger-background: #E00d0D;\n$danger-background-hover: #D00000;\n$danger-text: #E00d0D;\n\n$disabled-background: #f4f4f4;\n$disabled-border: #dedede;\n$disabled-text: #707070;\n\n\n$light-green: #8fff33;\n$light-yellow: #ffEb3b;\n$light-red: #ff4a2e;\n","\ufeff@mixin transition($transition...) {\n -moz-transition: $transition;\n -o-transition: $transition;\n -webkit-transition: $transition;\n transition: $transition;\n}\n\n@mixin transition-property($property...) {\n -moz-transition-property: $property;\n -o-transition-property: $property;\n -webkit-transition-property: $property;\n transition-property: $property;\n}\n\n@mixin transition-duration($duration...) {\n -moz-transition-property: $duration;\n -o-transition-property: $duration;\n -webkit-transition-property: $duration;\n transition-property: $duration;\n}\n\n@mixin transition-timing-function($timing...) {\n -moz-transition-timing-function: $timing;\n -o-transition-timing-function: $timing;\n -webkit-transition-timing-function: $timing;\n transition-timing-function: $timing;\n}\n\n@mixin transition-delay($delay...) {\n -moz-transition-delay: $delay;\n -o-transition-delay: $delay;\n -webkit-transition-delay: $delay;\n transition-delay: $delay;\n}\n"],sourceRoot:""}]);const a=s},3595:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,":host{display:none}.align-right{display:flex;justify-content:flex-end;gap:.5em}","",{version:3,sources:["webpack://./stories/gn-shortcut-button/template.scss"],names:[],mappings:"AAAA,MACI,YAAA,CAEJ,aACI,YAAA,CACA,wBAAA,CACA,QAAA",sourcesContent:[":host {\n display: none;\n}\n.align-right {\n display: flex;\n justify-content: flex-end;\n gap: 0.5em;\n}\n"],sourceRoot:""}]);const a=s},3704:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CustomElement=void 0;class n extends HTMLElement{constructor(){super()}connect(t){this.isConnected||document.querySelector(t).appendChild(this)}}e.CustomElement=n},3772:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o="<template>\n <slot></slot>\n</template>\n"},3982:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Toggle=void 0;const o=n(2466);e.Toggle=()=>(t,e)=>{t.constructor.propsInit||(t.constructor.propsInit={}),t.constructor.propsInit[e]=null,Object.defineProperty(t,e,{get:function(){return(t=>{if(this.hasAttribute(t)){const e=this.getAttribute(t);return!!/^(true|false|^$)$/.test(e)&&("true"==e||""==e)}return!1})(e)},set:function(t){const n=t;if(null!=t)switch(typeof t){case"boolean":break;case"string":/^(true|false|^$)$/.test(t)?t="true"==n||""==n:(console.warn(`TypeError: Cannot set boolean toggle property '${e}' to '${t}'`),t=!1);break;default:throw`TypeError: Cannot set boolean toggle property '${e}' to '${t}'`}this.__connected?(this.props[e]=t||!1,""!==n&&null!==n?this.setAttribute(e,t):t?this.setAttribute(e,""):this.removeAttribute(e)):this.hasAttribute(o.toKebabCase(e))||(this.constructor.propsInit[e]=t)}})}},5052:t=>{"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */");return[e].concat([i]).join("\n")}return[e].join("\n")}},5074:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,'::slotted(button),::slotted(a),::slotted(.color-default){-moz-transition:all .35s linear 0s;-o-transition:all .35s linear 0s;-webkit-transition:all .35s linear 0s;transition:all .35s linear 0s;-webkit-border-radius:4px;border-radius:4px;font-family:"Open Sans",sans-serif;font-weight:400;font-size:12pt;font-style:normal;text-align:center;vertical-align:middle;border:1px solid rgba(0,0,0,0);cursor:pointer;display:inline-block;height:34px;line-height:16pt;text-decoration:none;background-position:50%;padding:5px 8px;box-sizing:border-box;background-color:#eee;color:#2f3940;border-color:#d8d8d8}::slotted(.is-hovered),::slotted(.color-default.is-hovered){background-color:#ddd}::slotted(.color-primary){text-decoration:none;background-color:#3767c7;color:#fff}::slotted(.color-primary.is-hovered){background-color:#fe5000}::slotted(.color-success){text-decoration:none;background-color:#06a755;color:#fff}::slotted(.color-success.is-hovered){background-color:#009745}::slotted(.color-warning){text-decoration:none;background-color:#c38621;color:#fff}::slotted(.color-warning.is-hovered){background-color:#b37611}::slotted(.color-danger){text-decoration:none;background-color:#e00d0d;color:#fff}::slotted(.color-danger.is-hovered){background-color:#d00000}::slotted(button[disabled]),::slotted(a[disabled]){background-color:#f4f4f4;color:#707070;border:1px solid #dedede;cursor:not-allowed;pointer-events:none}',"",{version:3,sources:["webpack://./stories/gn-button/template.scss","webpack://./style/mixins/_transition.scss","webpack://./style/mixins/_border-radius.scss","webpack://./style/variables/_typography.scss","webpack://./style/variables/_colors.scss"],names:[],mappings:"AAKA,yDCJI,kCDOA,CCNA,gCDMA,CCLA,qCDKA,CCJA,6BDIA,CEPF,yBFQuC,CEPvC,iBFOuC,CACrC,kCGVW,CHWX,eAAA,CACA,cAAA,CACA,iBAAA,CACA,iBAAA,CACA,qBAAA,CACA,8BAAA,CACA,cAAA,CACA,oBAAA,CACA,WAAA,CACA,gBAAA,CACA,oBAAA,CACA,uBAAA,CACA,eAAA,CACA,qBAAA,CACA,qBIpBiB,CJqBjB,aInBU,CJoBV,oBIxBa,CJ2BjB,4DAEI,qBI1BuB,CJ6B3B,0BACI,oBAAA,CACA,wBIxBiB,CJyBjB,UAAA,CAGJ,qCACI,wBI5BuB,CJ+B3B,0BACI,oBAAA,CACA,wBI5BiB,CJ6BjB,UAAA,CAEJ,qCACI,wBI/BuB,CJkC3B,0BACI,oBAAA,CACA,wBIhCiB,CJiCjB,UAAA,CAEJ,qCACI,wBInCuB,CJqC3B,yBACI,oBAAA,CACA,wBIpCgB,CJqChB,UAAA,CAGJ,oCACI,wBIxCsB,CJ2C1B,mDAEI,wBI1CkB,CJ2ClB,aIzCY,CJ0CZ,wBAAA,CACA,kBAAA,CACA,mBAAA",sourcesContent:['@use "../../style/mixins/border-radius";\n@use "../../style/mixins/transition";\n@use "../../style/variables/colors";\n@use "../../style/variables/typography";\n\n::slotted(button),\n::slotted(a),\n::slotted(.color-default) {\n @include transition.transition(all 0.35s linear 0s);\n @include border-radius.border-radius(4px);\n font-family: typography.$default-font;\n font-weight: 400;\n font-size: 12pt;\n font-style: normal;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n cursor: pointer;\n display: inline-block;\n height: 34px;\n line-height: 16pt;\n text-decoration: none;\n background-position: 50%;\n padding: 5px 8px;\n box-sizing: border-box;\n background-color: colors.$default-background;\n color: colors.$default-text;\n border-color: colors.$default-border;\n}\n\n::slotted(.is-hovered),\n::slotted(.color-default.is-hovered) {\n background-color: colors.$default-background-hover;\n}\n\n::slotted(.color-primary) {\n text-decoration: none;\n background-color: colors.$primary-background;\n color: #fff;\n}\n\n::slotted(.color-primary.is-hovered) {\n background-color: colors.$primary-background-hover;\n}\n\n::slotted(.color-success) {\n text-decoration: none;\n background-color: colors.$success-background;\n color: #fff;\n}\n::slotted(.color-success.is-hovered) {\n background-color: colors.$success-background-hover;\n}\n\n::slotted(.color-warning) {\n text-decoration: none;\n background-color: colors.$warning-background;\n color: #fff;\n}\n::slotted(.color-warning.is-hovered) {\n background-color: colors.$warning-background-hover;\n}\n::slotted(.color-danger) {\n text-decoration: none;\n background-color: colors.$danger-background;\n color: #fff;\n}\n\n::slotted(.color-danger.is-hovered) {\n background-color: colors.$danger-background-hover;\n}\n\n::slotted(button[disabled]),\n::slotted(a[disabled]) {\n background-color: colors.$disabled-background;\n color: colors.$disabled-text;\n border: 1px solid colors.$disabled-border;\n cursor: not-allowed;\n pointer-events: none;\n}\n',"\ufeff@mixin transition($transition...) {\n -moz-transition: $transition;\n -o-transition: $transition;\n -webkit-transition: $transition;\n transition: $transition;\n}\n\n@mixin transition-property($property...) {\n -moz-transition-property: $property;\n -o-transition-property: $property;\n -webkit-transition-property: $property;\n transition-property: $property;\n}\n\n@mixin transition-duration($duration...) {\n -moz-transition-property: $duration;\n -o-transition-property: $duration;\n -webkit-transition-property: $duration;\n transition-property: $duration;\n}\n\n@mixin transition-timing-function($timing...) {\n -moz-transition-timing-function: $timing;\n -o-transition-timing-function: $timing;\n -webkit-transition-timing-function: $timing;\n transition-timing-function: $timing;\n}\n\n@mixin transition-delay($delay...) {\n -moz-transition-delay: $delay;\n -o-transition-delay: $delay;\n -webkit-transition-delay: $delay;\n transition-delay: $delay;\n}\n","@mixin border-radius($radius) {\n -webkit-border-radius: $radius;\n border-radius: $radius;\n}\n\n// Single side border-radius\n\n@mixin border-top-radius($radius) {\n -webkit-border-top-right-radius: $radius;\n border-top-right-radius: $radius;\n -webkit-border-top-left-radius: $radius;\n border-top-left-radius: $radius;\n}\n@mixin border-right-radius($radius) {\n -webkit-border-bottom-right-radius: $radius;\n border-bottom-right-radius: $radius;\n -webkit-border-top-right-radius: $radius;\n border-top-right-radius: $radius;\n}\n@mixin border-bottom-radius($radius) {\n -webkit-border-bottom-right-radius: $radius;\n border-bottom-right-radius: $radius;\n -webkit-border-bottom-left-radius: $radius;\n border-bottom-left-radius: $radius;\n}\n@mixin border-left-radius($radius) {\n -webkit-border-bottom-left-radius: $radius;\n border-bottom-left-radius: $radius;\n -webkit-border-top-left-radius: $radius;\n border-top-left-radius: $radius;\n}",'$default-font: "Open Sans", sans-serif;\n$header-font: "Raleway", sans-serif;\n$default-font-size: 15px;\n',"$body-background: #ffffff;\n$navigation-bar-background: #f7f7f7;\n$hover-background: rgba(0,0,0,.05);\n$default-border: #d8d8d8;\n\n$default-background: #eee;\n$default-background-hover: #ddd;\n$default-text:#2F3940;\n\n$light-gray: #f6f5f4;\n\n$primary-brand: #FE5000;\n\n$primary-background: #3767C7;\n$primary-background-hover: #FE5000;\n$primary-text: #3767C7;\n$primary-text-hover:#0056b3;\n\n\n$success-background: #06A755;\n$success-background-hover: #009745;\n$success-text: #06A755;\n\n\n$warning-background: #C38621;\n$warning-background-hover: #B37611;\n$warning-text: #C38621;\n\n$danger-background: #E00d0D;\n$danger-background-hover: #D00000;\n$danger-text: #E00d0D;\n\n$disabled-background: #f4f4f4;\n$disabled-border: #dedede;\n$disabled-text: #707070;\n\n\n$light-green: #8fff33;\n$light-yellow: #ffEb3b;\n$light-red: #ff4a2e;\n"],sourceRoot:""}]);const a=s},5340:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,"gn-dialog{position:absolute}gn-dialog heading-text h1,gn-dialog heading-text h2,gn-dialog heading-text h3,gn-dialog heading-text h4,gn-dialog heading-text h5{margin-top:0}gn-dialog heading-text h1:before,gn-dialog heading-text h2:before,gn-dialog heading-text h3:before,gn-dialog heading-text h4:before,gn-dialog heading-text h5:before{margin-top:0}","",{version:3,sources:["webpack://./stories/gn-dialog/gn-dialog.scss"],names:[],mappings:"AAAA,UACG,iBAAA,CAEG,kIAKG,YAAA,CACA,qKACG,YAAA",sourcesContent:["gn-dialog {\n position: absolute;\n heading-text {\n h1,\n h2,\n h3,\n h4,\n h5 {\n margin-top: 0;\n &:before {\n margin-top: 0;\n }\n }\n }\n}\n"],sourceRoot:""}]);const a=s},5398:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,":host{margin-bottom:16px}:host([block]){display:block}:host:not([block]){display:inline-block}:host([inlineblock]){margin-right:16px}","",{version:3,sources:["webpack://./stories/gn-field-container/template.scss"],names:[],mappings:"AAAA,MACI,kBAAA,CAGJ,eACI,aAAA,CAGJ,mBACI,oBAAA,CAGJ,qBACI,iBAAA",sourcesContent:[":host {\n margin-bottom: 16px;\n}\n\n:host([block]) {\n display: block;\n}\n\n:host:not([block]) {\n display: inline-block;\n}\n\n:host([inlineblock]) {\n margin-right: 16px;\n}\n"],sourceRoot:""}]);const a=s},5562:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(5052),r=n.n(o),i=n(164),s=n.n(i)()(r());s.push([t.id,':host h1.heading,:host ::slotted(h1.heading),:host ::slotted(.heading[size="1"]){font-family:"Raleway",sans-serif !important;color:#2f3940 !important;font-size:30px !important;font-weight:200 !important}@media(min-width: 768px){:host h1.heading,:host ::slotted(h1.heading),:host ::slotted(.heading[size="1"]){font-size:48px !important;font-weight:100 !important}}:host h1.heading[underline]:after,:host ::slotted(h1.heading[underline]):after,:host ::slotted(.heading[size="1"][underline]):after{content:"";display:block;width:75px;border-bottom:3px solid #fe5000;margin:5px 0 15px}@media(min-width: 768px){:host h1.heading[underline]:after,:host ::slotted(h1.heading[underline]):after,:host ::slotted(.heading[size="1"][underline]):after{width:100px;border-bottom:5px solid #fe5000;margin:10px 0 20px}}:host h2.heading,:host ::slotted(h2.heading),:host ::slotted(.heading[size="2"]){font-family:"Raleway",sans-serif !important;color:#2f3940 !important;font-size:26px !important;line-height:30px !important;font-weight:300 !important;display:inline !important;margin-bottom:10px !important;margin-top:20px !important}@media(min-width: 768px){:host h2.heading,:host ::slotted(h2.heading),:host ::slotted(.heading[size="2"]){font-size:32px !important;line-height:40px !important}}:host h2.heading:before,:host ::slotted(h2.heading):before,:host ::slotted(.heading[size="2"]):before{content:"";display:block;margin-top:46px}:host h2.heading:after,:host ::slotted(h2.heading):after,:host ::slotted(.heading[size="2"]):after{content:"";display:block;margin-bottom:15px}:host h2.heading[underline]:after,:host ::slotted(h2.heading[underline]):after,:host ::slotted(.heading[size="2"][underline]):after{content:"";display:block;width:25px;border-bottom:2px solid #fe5000}@media(min-width: 768px){:host h2.heading[underline]:after,:host ::slotted(h2.heading[underline]):after,:host ::slotted(.heading[size="2"][underline]):after{width:50px;border-bottom:2px solid #fe5000}}:host h3.heading,:host ::slotted(h3.heading),:host ::slotted(.heading[size="3"]){font-family:"Open Sans",sans-serif !important;color:#2f3940 !important;font-size:22px !important;font-weight:300 !important;margin-bottom:0 !important;margin-top:20px !important}@media(min-width: 768px){:host h3.heading,:host ::slotted(h3.heading),:host ::slotted(.heading[size="3"]){font-size:24px !important}}:host h4.heading,:host ::slotted(h4.heading),:host ::slotted(.heading[size="4"]){font-family:"Open Sans",sans-serif !important;color:#2f3940 !important;font-size:18px !important;font-weight:300 !important;margin-bottom:0 !important;margin-top:12px !important}:host h5.heading,:host ::slotted(h5.heading),:host ::slotted(.heading[size="5"]){font-family:"Open Sans",sans-serif !important;color:#2f3940 !important;font-size:15px !important;font-weight:600 !important;margin-bottom:0 !important;margin-top:8px !important}@media(min-width: 768px){:host h5.heading,:host ::slotted(h5.heading),:host ::slotted(.heading[size="5"]){font-size:16px !important}}:host ::slotted(.heading.no-margin){margin-top:0}:host ::slotted(.heading.no-margin)::before{margin-top:0}',"",{version:3,sources:["webpack://./stories/heading-text/template.scss","webpack://./style/mixins/_breakpoints.scss"],names:[],mappings:"AAKI,iFAGI,2CAAA,CACA,wBAAA,CACA,yBAAA,CACA,0BAAA,CCCA,yBDPJ,iFAQQ,yBAAA,CACA,0BAAA,CAAA,CAOJ,oIACI,UAAA,CACA,aAAA,CACA,UAAA,CACA,+BAAA,CACA,iBAAA,CCdJ,yBDSA,oIAOQ,WAAA,CACA,+BAAA,CACA,kBAAA,CAAA,CAKZ,iFAGI,2CAAA,CACA,wBAAA,CACA,yBAAA,CACA,2BAAA,CACA,0BAAA,CACA,yBAAA,CACA,6BAAA,CACA,0BAAA,CCjCA,yBDuBJ,iFAYQ,yBAAA,CACA,2BAAA,CAAA,CAEJ,sGACI,UAAA,CACA,aAAA,CACA,eAAA,CAEJ,mGACI,UAAA,CACA,aAAA,CACA,kBAAA,CAOJ,oIACI,UAAA,CACA,aAAA,CACA,UAAA,CACA,+BAAA,CCzDJ,yBDqDA,oIAMQ,UAAA,CACA,+BAAA,CAAA,CAKZ,iFAGI,6CAAA,CACA,wBAAA,CACA,yBAAA,CACA,0BAAA,CACA,0BAAA,CACA,0BAAA,CCzEA,yBDiEJ,iFAUQ,yBAAA,CAAA,CAIR,iFAGI,6CAAA,CACA,wBAAA,CACA,yBAAA,CACA,0BAAA,CACA,0BAAA,CACA,0BAAA,CAGJ,iFAGI,6CAAA,CACA,wBAAA,CACA,yBAAA,CACA,0BAAA,CACA,0BAAA,CACA,yBAAA,CClGA,yBD0FJ,iFAUQ,yBAAA,CAAA,CAIR,oCACI,YAAA,CACA,4CACI,YAAA",sourcesContent:['@use "../../style/mixins/breakpoints";\n@use "../../style/variables/colors";\n@use "../../style/variables/typography";\n\n:host {\n h1.heading,\n ::slotted(h1.heading),\n ::slotted(.heading[size="1"]) {\n font-family: typography.$header-font !important;\n color: colors.$default-text !important;\n font-size: 30px !important;\n font-weight: 200 !important;\n @include breakpoints.breakpoint(tablet) {\n font-size: 48px !important;\n font-weight: 100 !important;\n }\n }\n\n h1.heading[underline],\n ::slotted(h1.heading[underline]),\n ::slotted(.heading[size="1"][underline]) {\n &:after {\n content: "";\n display: block;\n width: 75px;\n border-bottom: 3px solid colors.$primary-brand;\n margin: 5px 0 15px;\n @include breakpoints.breakpoint(tablet) {\n width: 100px;\n border-bottom: 5px solid colors.$primary-brand;\n margin: 10px 0 20px;\n }\n }\n }\n\n h2.heading,\n ::slotted(h2.heading),\n ::slotted(.heading[size="2"]) {\n font-family: typography.$header-font !important;\n color: colors.$default-text !important;\n font-size: 26px !important;\n line-height: 30px !important;\n font-weight: 300 !important;\n display: inline !important;\n margin-bottom: 10px !important;\n margin-top: 20px !important;\n @include breakpoints.breakpoint(tablet) {\n font-size: 32px !important;\n line-height: 40px !important;\n }\n &:before {\n content: "";\n display: block;\n margin-top: 46px;\n }\n &:after {\n content: "";\n display: block;\n margin-bottom: 15px;\n }\n }\n\n h2.heading[underline],\n ::slotted(h2.heading[underline]),\n ::slotted(.heading[size="2"][underline]) {\n &:after {\n content: "";\n display: block;\n width: 25px;\n border-bottom: 2px solid colors.$primary-brand;\n @include breakpoints.breakpoint(tablet) {\n width: 50px;\n border-bottom: 2px solid colors.$primary-brand;\n }\n }\n }\n\n h3.heading,\n ::slotted(h3.heading),\n ::slotted(.heading[size="3"]) {\n font-family: typography.$default-font !important;\n color: colors.$default-text !important;\n font-size: 22px !important;\n font-weight: 300 !important;\n margin-bottom: 0 !important;\n margin-top: 20px !important;\n @include breakpoints.breakpoint(tablet) {\n font-size: 24px !important;\n }\n }\n\n h4.heading,\n ::slotted(h4.heading),\n ::slotted(.heading[size="4"]) {\n font-family: typography.$default-font !important;\n color: colors.$default-text !important;\n font-size: 18px !important;\n font-weight: 300 !important;\n margin-bottom: 0 !important;\n margin-top: 12px !important;\n }\n\n h5.heading,\n ::slotted(h5.heading),\n ::slotted(.heading[size="5"]) {\n font-family: typography.$default-font !important;\n color: colors.$default-text !important;\n font-size: 15px !important;\n font-weight: 600 !important;\n margin-bottom: 0 !important;\n margin-top: 8px !important;\n @include breakpoints.breakpoint(tablet) {\n font-size: 16px !important;\n }\n }\n\n ::slotted(.heading.no-margin) {\n margin-top: 0;\n &::before {\n margin-top: 0;\n }\n }\n}\n','@use "../variables/breakpoints";\n\n@mixin breakpoint($point) {\n @if $point == desktop {\n @media (min-width: breakpoints.$screen-desktop) {\n @content;\n }\n } @else if $point == laptop {\n @media (min-width: breakpoints.$screen-laptop) {\n @content;\n }\n } @else if $point == tablet {\n @media (min-width: breakpoints.$screen-tablet) {\n @content;\n }\n } @else if $point == phablet {\n @media (min-width: breakpoints.$screen-phablet) {\n @content;\n }\n }\n}\n'],sourceRoot:""}]);const a=s},5979:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeInnerHTML=e.addGlobalStylesheet=e.getDocumentHeading=e.getFocusableElementsInsideElement=void 0,e.getFocusableElementsInsideElement=t=>t.querySelectorAll('button, [href], input, [tabindex="0"]'),e.getDocumentHeading=()=>{let t=document.querySelector("heading-text");return t||(t=document.querySelector("h1:not(.sb-nopreview_heading.sb-heading)")),t},e.addGlobalStylesheet=(t,e)=>{const n=document.createElement("style");n.setAttribute("id",t),n.textContent=e,document.getElementById(t)||document.head.appendChild(n)},e.removeInnerHTML=t=>{for(;t.firstChild;)t.removeChild(t.firstChild)}},6496:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o='<template>\n <div id="input-container" class="input-container">\n <slot></slot>\n </div>\n</template>\n'},6622:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o='<template>\n <div id="dialog-container" class="dialog-container">\n <div id="dialog-content" class="dialog-content">\n <button id="close-dialog-button" class="close-dialog-button"></button>\n <slot></slot>\n </div>\n </div>\n</template>\n'},6999:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.initializeProps=e.Prop=void 0;const o=n(2466);e.Prop=()=>(t,e)=>{const n=o.toKebabCase(e);t.constructor.propsInit||(t.constructor.propsInit={}),t.constructor.propsInit[e]=null,Object.defineProperty(t,e,{get:function(){return this.props[e]?this.props[e]:this.getAttribute(n)},set:function(t){if(this.__connected){const r=this.props[e];this.props[e]=o.tryParseInt(t),"object"!=typeof t?this.setAttribute(n,t):this.onAttributeChange(n,r,t,!1)}else this.hasAttribute(o.toKebabCase(e))||(this.constructor.propsInit[e]=t)}})},e.initializeProps=t=>{const e=t.constructor.watchAttributes;for(let n of(t=>{const e=t.constructor.watchAttributes,n=Object.assign({},e);Object.keys(n).forEach((t=>n[t]=""));const o=Object.assign(Object.assign({},n),t.constructor.propsInit);return Object.keys(o)})(t)){if(e)if(null==e[o.toKebabCase(n)])e[o.toKebabCase(n)]="";else{const r=t.props[n]||t.getAttribute(o.toKebabCase(n));"function"==typeof t[e[n]]&&t[e[n]]({new:r})}t.constructor.propsInit[n]&&(t.hasAttribute(o.toKebabCase(n))||(t[n]=t.constructor.propsInit[n]))}}},7390:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o="<template>\n <slot></slot>\n</template>\n"},8254:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o='<template>\n <button id="gn-shortcut-button" class="gn-shortcut-button"></button>\n <gn-dialog id="add-shortcut-dialog" width="400px">\n <body-text>\n <heading-text>\n <h2>Lagre snarvei</h2>\n </heading-text>\n <gn-field-container block>\n <span id="input-description" style="margin-bottom: 4px; display: block">\n Velg et navn som gjør det enkelt å huske snarveien, og finn den igjen under Mine snarveier.\n </span>\n <gn-input block fullwidth>\n <input\n id="shortcut-name-input"\n placeholder="Skriv inn snarveinavn"\n aria-describedby="input-description"\n />\n </gn-input>\n </gn-field-container>\n <div class="align-right">\n <gn-button id="cancel-add-shortcut-button"><button>Avbryt</button></gn-button>\n <gn-button id="save-shortcut-button" color="primary"><button>Lagre</button></gn-button>\n </div>\n </body-text>\n </gn-dialog>\n <gn-dialog id="remove-shortcut-dialog" width="400px">\n <heading-text>\n <h2>Fjern snarvei</h2>\n </heading-text>\n <body-text>\n <span style="margin-bottom: 4px; display: block">Er du sikker på at du vil fjerne snarveien?</span>\n </body-text>\n <div class="align-right">\n <gn-button id="cancel-remove-shortcut-button"><button>Avbryt</button></gn-button>\n <gn-button id="remove-shortcut-button" color="primary"><button>Fjern snarvei</button></gn-button>\n </div>\n </gn-dialog>\n</template>\n'},8434:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.HeadingText=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super()}connectedCallback(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),n=null!==this.closest("gn-dialog");if(e){const t=()=>{e.assignedElements({flatten:!0}).forEach((t=>{/^h[1-6]$/i.test(t.tagName)&&t.classList.add("heading")}))},o=()=>{e.assignedElements({flatten:!0}).forEach((t=>{/^h[1-6]$/i.test(t.tagName)&&t.classList.add("no-margin")}))};t(),n&&o(),e.addEventListener("slotchange",(()=>{t(),n&&o()}))}}setup(t){}};e.HeadingText=l,s([(0,d.Prop)()],l.prototype,"size",void 0),s([(0,d.Prop)()],l.prototype,"tag",void 0),s([(0,d.Toggle)()],l.prototype,"underline",void 0),e.HeadingText=l=s([(0,d.Component)({tag:"heading-text",template:Promise.resolve().then((()=>a(n(3772)))),style:Promise.resolve().then((()=>a(n(5562))))})],l)},8631:function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function s(t){try{d(o.next(t))}catch(t){i(t)}}function a(t){try{d(o.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}d((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;const r=n(169),i=n(6999),s=n(2466);e.Component=t=>e=>{var n;const a=t.tag||s.toKebabCase(e.prototype.constructor.name),d=((n=class extends e{constructor(){super(),this.props={},this.showShadowRoot=null==t.shadow||t.shadow,!this.shadowRoot&&this.showShadowRoot&&this.attachShadow({mode:"open"})}static get observedAttributes(){return Object.keys(this.propsInit||{}).map((t=>s.toKebabCase(t)))}attributeChangedCallback(t,e,n){this.onAttributeChange(t,e,n)}onAttributeChange(t,e,n,o=!0){if(e!=n){o&&(this[s.toCamelCase(t)]=n);const r=this.constructor.watchAttributes;if(r&&r[t]){const o=r[t];this.__connected&&"function"==typeof this[o]&&this[o]({old:e,new:n})}}}connectedCallback(){const t=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return o(this,void 0,void 0,(function*(){yield this.render(),t.connectedCallback&&t.connectedCallback.call(this),this.__connected=!0,r.addEventListeners(this),i.initializeProps(this)}))}render(){return o(this,void 0,void 0,(function*(){if(this.__connected)return;const e=document.createElement("template");e.innerHTML=yield this.getStyle(),t.template instanceof Promise?e.content.appendChild(yield this.getExternalTemplate()):"string"==typeof t.template&&(e.innerHTML+=t.template),(this.showShadowRoot?this.shadowRoot:this).appendChild(e.content.cloneNode(!0))}))}getExternalTemplate(){return o(this,void 0,void 0,(function*(){const e=(yield t.template).default.toString(),n=document.createRange().createContextualFragment(e);return 1===n.children.length&&"TEMPLATE"===n.children[0].nodeName?n.firstChild.content:n}))}getStyle(){return o(this,void 0,void 0,(function*(){let e;return t.style instanceof Promise?e=(yield t.style).default.toString():"string"==typeof t.style&&(e=t.style),e?`<style>${e}</style>`:""}))}}).__connected=!1,n.ready=new Promise(((t,e)=>t(!0))),n);return customElements.get(a)||customElements.define(a,d),d}},8861:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8914:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function s(t){try{d(o.next(t))}catch(t){i(t)}}function a(t){try{d(o.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}d((o=o.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.fetchDropdownSearchResults=e.fetchMenuItems=e.getGeonorgeMenuUrl=e.deleteShortcutItem=e.postShortcutItem=e.fetchShortcutItem=e.getMinSideShortcutUrl=e.getMinSideShortcutApiUrl=e.getKartkatalogApiUrl=void 0,e.getKartkatalogApiUrl=t=>`https://kartkatalog.${"dev"===t||"test"===t?t+".":""}geonorge.no/api`,e.getMinSideShortcutApiUrl=(t,e)=>`https://minside.${"dev"===t||"test"===t?t+".":""}geonorge.no/api/shortcut${(null==e?void 0:e.length)?`?${new URLSearchParams({url:e}).toString()}`:""}`,e.getMinSideShortcutUrl=t=>`https://minside.${"dev"===t||"test"===t?t+".":""}geonorge.no/shortcuts`,e.fetchShortcutItem=(...t)=>n(void 0,[...t],void 0,(function*(t="",n,o){const r=(0,e.getMinSideShortcutApiUrl)(t,o),i={method:"GET",headers:new Headers({Authorization:`Bearer ${n}`})};try{return fetch(r,i).then((t=>200===t.status?t.json().then((t=>t)):null))}catch(t){return console.error("Error fetching shortcut items:",t),null}})),e.postShortcutItem=(...t)=>n(void 0,[...t],void 0,(function*(t="",n,o){const r=(0,e.getMinSideShortcutApiUrl)(t),i={method:"POST",headers:new Headers({Authorization:`Bearer ${n}`,"Content-Type":"application/json"}),body:JSON.stringify(o)};return fetch(r,i).then((t=>t.json())).then((t=>t))})),e.deleteShortcutItem=(...t)=>n(void 0,[...t],void 0,(function*(t="",n,o){const r=(0,e.getMinSideShortcutApiUrl)(t),i={method:"DELETE",headers:new Headers({Authorization:`Bearer ${n}`,"Content-Type":"application/json"}),body:JSON.stringify(o)};return fetch(r,i)})),e.getGeonorgeMenuUrl=(t,e)=>"dev"===e?"https://dev.geonorge.no/menu.xml":`https://www.${"dev"===e||"test"===e?"test.":""}geonorge.no/${"en"===t?"en/":""}api/menu/get?omitLinks=1`,e.fetchMenuItems=(t="no",n="")=>{const o=(0,e.getGeonorgeMenuUrl)(t,n);return fetch(o).then((t=>t.json())).then((t=>t))},e.fetchDropdownSearchResults=(...t)=>n(void 0,[...t],void 0,(function*(t="",o="no",r=""){const i={dataset:`search?text=${t=t.toString()}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=dataset`,series:`search?text=${t}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=series`,service:`search?text=${t}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=service`,servicelayer:`search?text=${t}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=servicelayer`,software:`search?text=${t}&facets%5B1%5Dname=type&facets%5B1%5Dvalue=software`,articles:`articles?text=${t}`},s={headers:new Headers({"Accept-Language":o})};return t&&t.length?yield Promise.all(Object.keys(i).map((t=>n(void 0,void 0,void 0,(function*(){const n=(0,e.getKartkatalogApiUrl)(r);return fetch(`${n}/${i[t]}&limit=5`,s).then((t=>t.json())).then((e=>Object.assign(Object.assign({},e),{searchResultsType:t})))}))))):null}))},9633:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor"><path d="M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></svg>'},9950:function(t,e,n){"use strict";var o,r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,o,r)}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=o(t),s=0;s<n.length;s++)"default"!==n[s]&&r(e,t,n[s]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.GnFieldContainer=void 0;const d=n(3128);let l=class extends d.CustomElement{constructor(){super()}setup(t){}};e.GnFieldContainer=l,e.GnFieldContainer=l=s([(0,d.Component)({tag:"gn-field-container",template:Promise.resolve().then((()=>a(n(1896)))),style:Promise.resolve().then((()=>a(n(5398))))})],l)}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={id:o,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.exports}return n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(376)})()));
2
2
  //# sourceMappingURL=GnShortcutButton.js.map