1export const __webpack_esm_id__=2774;export const __webpack_esm_ids__=[2774];export const __webpack_esm_modules__={32774(e,n,a){a.r(n),a.d(n,{default:()=>c});var t=a(96540),s=a(98507),o=a(18494),i=a(46991),l=a(9348),d=a(74848);function c({heading:e,mainText:n,confirmButtonText:a="OK",cancelButtonText:c="Avbryt",action:r,call:u}){const[m,x]=(0,o.W)(async()=>{(0,s.A)("event","modal_view",{modal_name:e??n,link_text:a});try{await(r?.())}finally{u.end(!0)}}),_=(0,t.useCallback)(()=>{(0,s.A)("event","modal_view",{modal_name:e??n,link_text:c}),u.end(!1)},[]),g=(0,t.useCallback)(()=>{(0,s.A)("event","modal_view",{modal_name:e??n,link_text:"close"}),u.end(!1)},[]);return(0,d.jsxs)(i.A,{onClose:g,isOpen:!0,size:"small",padding:!0,children:[(0,d.jsx)("h3",{children:e}),(0,d.jsx)("p",{children:n}),(0,d.jsx)(l.A,{onCancel:_,onOK:m,okButtonText:a,cancelButtonText:c,centered:!0,isLoading:x})]})}},46991(e,n,a){a.d(n,{A:()=>f});var t={};a.r(t),a.d(t,{dialog:()=>r,"dialog-close":()=>u,"dialog-content":()=>m,dialogClose:()=>x,dialogContent:()=>_,"grey-background":()=>g,greyBackground:()=>b,large:()=>k,medium:()=>p,"no-padding":()=>h,noPadding:()=>y,small:()=>v});var s=a(46942),o=a.n(s),i=a(96540),l=a(88486),d=a(32024),c=a(13402),r="MqTnNSaV",u="K53pM06o",m="Wi0UCZzC",x="K53pM06o",_="Wi0UCZzC",g="F0TdqIht",b="F0TdqIht",k="g08s2NPR",p="qZiA1gkc",h="KZVZCNws",y="KZVZCNws",v="SstETDah",C=a(74848);function f({isOpen:e=!1,size:n="medium",padding:a=!1,greyBackground:s=!1,onClose:l,children:u}){if(e)return(0,i.useEffect)(()=>{if(e&&!l){const n=n=>{"Escape"===n.key&&e&&n.preventDefault()};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}}},[e,l]),(0,C.jsxs)("dialog",{ref:e=>e?.showModal(),className:o()(r,t[n]),onCancel:(0,d.A)(()=>l?.()),onClick:e=>e.target===e.currentTarget&&l?.(),children:[(0,C.jsx)(N,{}),(0,C.jsxs)("div",{className:o()(_,{[y]:!a,[b]:s}),children:[!!l&&(0,C.jsx)("button",{className:x,onClick:()=>l(),"aria-label":"Lukk",children:(0,C.jsx)(c.A,{className:"icon-close"})}),u]})]})}function N(){return(0,l.K$)(),null}},9348(e,n,a){a.d(n,{A:()=>d});var t=a(46942),s=a.n(t),o="ANFLJ_Dh",i=a(43197),l=a(74848);function d({onCancel:e,onOK:n,okButtonText:a="OK",cancelButtonText:t="Avbryt",centered:d,isLoading:c=!1}){return(0,l.jsxs)("div",{className:s()("ulF3GNnU",{[o]:d}),children:[(0,l.jsx)("button",{className:"btn-secondary",type:"button",onClick:e,children:t}),"string"==typeof n?(0,l.jsx)("a",{className:"btn-primary",href:n,children:a}):n?(0,l.jsx)("button",{className:"btn-primary",disabled:c,"aria-busy":c,type:"button",onClick:n,children:a}):(0,l.jsx)(i.A,{isLoading:c,children:a})]})}},43197(e,n,a){a.d(n,{A:()=>s});a(96540);var t=a(74848);function s({isLoading:e,children:n,className:a,...s}){return(0,t.jsx)("button",{type:"submit",className:a??"btn-primary",disabled:e,"aria-busy":e,...s,children:n})}}}; 2//# sourceMappingURL=2774.998bb516.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.