@warp-ds/elements 1.2.0-next.5 → 1.2.0-next.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.
Files changed (31) hide show
  1. package/dist/index.js +3161 -1308
  2. package/dist/packages/affix/index.js +8 -6
  3. package/dist/packages/affix/index.js.map +4 -4
  4. package/dist/packages/alert/index.js +9 -5
  5. package/dist/packages/alert/index.js.map +4 -4
  6. package/dist/packages/attention/index.d.ts +9 -0
  7. package/dist/packages/attention/index.js +26 -18
  8. package/dist/packages/attention/index.js.map +4 -4
  9. package/dist/packages/badge/index.js +1 -1
  10. package/dist/packages/badge/index.js.map +4 -4
  11. package/dist/packages/box/index.js +2 -2
  12. package/dist/packages/box/index.js.map +4 -4
  13. package/dist/packages/breadcrumbs/index.js +3 -3
  14. package/dist/packages/breadcrumbs/index.js.map +4 -4
  15. package/dist/packages/button/index.js +2 -2
  16. package/dist/packages/button/index.js.map +4 -4
  17. package/dist/packages/card/index.js +3 -3
  18. package/dist/packages/card/index.js.map +4 -4
  19. package/dist/packages/expandable/index.d.ts +10 -0
  20. package/dist/packages/expandable/index.js +53 -18
  21. package/dist/packages/expandable/index.js.map +4 -4
  22. package/dist/packages/expandable/locales/en/messages.d.mts +1 -0
  23. package/dist/packages/expandable/locales/fi/messages.d.mts +1 -0
  24. package/dist/packages/expandable/locales/nb/messages.d.mts +1 -0
  25. package/dist/packages/select/index.js +16 -15
  26. package/dist/packages/select/index.js.map +4 -4
  27. package/dist/packages/textfield/index.js +2 -2
  28. package/dist/packages/textfield/index.js.map +4 -4
  29. package/dist/packages/toast/index.js +21 -17
  30. package/dist/packages/toast/index.js.map +4 -4
  31. package/package.json +2 -2
@@ -1,36 +1,40 @@
1
- var z=Object.defineProperty,A=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var k=(o,e,l)=>e in o?z(o,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[e]=l,p=(o,e)=>{for(var l in e||(e={}))j.call(e,l)&&k(o,l,e[l]);if(D)for(var l of D(e))V.call(e,l)&&k(o,l,e[l]);return o},S=(o,e)=>A(o,R(e));var g=(o,e,l)=>(k(o,typeof e!="symbol"?e+"":e,l),l);import{css as O,html as $}from"lit";import B from"@warp-ds/elements-core";import{classMap as N}from"lit/directives/class-map.js";import{when as G}from"lit/directives/when.js";var y={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var v={container:"fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",content:"w-full",toaster:"grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"},d={wrapper:"relative overflow-hidden w-full",toast:"flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",positive:"i-bg-$color-toast-positive-background i-border-$color-toast-positive-subtle-border i-text-$color-toast-positive-text",warning:"i-bg-$color-toast-warning-background i-border-$color-toast-warning-subtle-border i-text-$color-toast-warning-text",negative:"i-bg-$color-toast-negative-background i-border-$color-toast-negative-subtle-border i-text-$color-toast-negative-text",icon:"shrink-0 rounded-full w-[16px] h-[16px] m-[8px]",iconPositive:"i-text-$color-toast-positive-icon",iconWarning:"i-text-$color-toast-warning-icon",iconNegative:"i-text-$color-toast-negative-icon",iconLoading:"animate-bounce",content:"self-center mr-8 py-4 last-child:mb-0",close:"bg-transparent ml-auto p-[8px] i-text-$color-toast-close-icon hover:i-text-$color-toast-close-icon-hover active:i-text-$color-toast-close-icon-active"};var H="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",oe={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+y.box,expandableBleed:y.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:H+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+y.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},b="font-bold focusable justify-center transition-colors ease-in-out",n={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},a={primary:`border-0 rounded-8 ${b}`,secondary:`border-2 rounded-8 ${b}`,utility:`border rounded-4 ${b}`,negative:`border-0 rounded-8 ${b}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${b}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${n.link}`},r={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},i={medium:"text-m leading-[24]",xsmall:"text-xs"},t={inProgress:`border-transparent animate-inprogress pointer-events-none ${n.loading}`,quiet:`border-0 rounded-8 ${b}`,utilityQuiet:`border-0 rounded-4 ${b}`,negativeQuiet:`border-0 rounded-8 ${b}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${n.disabled}`},U={secondary:`${r.medium} ${i.medium} ${a.secondary} ${n.secondary}`,secondaryHref:`${r.medium} ${i.medium} ${a.secondary} ${n.secondary}`,secondaryDisabled:`${r.medium} ${i.medium} ${a.secondary} ${t.isDisabled}`,secondarySmall:`${i.xsmall} ${r.xsmall} ${a.secondary} ${n.secondary}`,secondarySmallDisabled:`${i.xsmall} ${r.xsmall} ${a.secondary} ${t.isDisabled}`,secondaryQuiet:`${r.medium} ${i.medium} ${t.quiet} ${n.quiet}`,secondaryQuietDisabled:`${r.medium} ${i.medium} ${t.quiet} ${t.isDisabled}`,secondarySmallQuiet:`${i.xsmall} ${r.xsmall} ${t.quiet} ${n.quiet}`,secondarySmallQuietDisabled:`${i.xsmall} ${r.xsmall} ${t.quiet} ${t.isDisabled}`,secondaryLoading:`${r.medium} ${i.medium} ${a.secondary} ${t.inProgress}`,secondarySmallLoading:`${i.xsmall} ${r.xsmall} ${a.secondary} ${t.inProgress}`,secondarySmallQuietLoading:`${i.xsmall} ${r.xsmall} ${t.quiet} ${t.inProgress}`,secondaryQuietLoading:`${r.medium} ${i.medium} ${t.quiet} ${t.inProgress}`,primary:`${r.large} ${i.medium} ${a.primary} ${n.primary}`,primaryDisabled:`${r.large} ${i.medium} ${t.isDisabled} ${a.primary}`,primarySmall:`${r.small} ${i.xsmall} ${a.primary} ${n.primary}`,primarySmallDisabled:`${r.small} ${i.xsmall} ${t.isDisabled} ${a.primary} `,primaryQuiet:`${r.large} ${i.medium} ${t.quiet} ${n.quiet}`,primaryQuietDisabled:`${r.large} ${i.medium} ${t.quiet} ${t.isDisabled}`,primarySmallQuiet:`${r.small} ${i.xsmall} ${t.quiet} ${n.quiet}`,primarySmallQuietDisabled:`${r.small} ${i.xsmall} ${t.quiet} ${t.isDisabled}`,primaryLoading:`${r.large} ${i.medium} ${t.inProgress} ${a.primary}`,primarySmallLoading:`${r.small} ${i.xsmall} ${t.inProgress} ${a.primary}`,primarySmallQuietLoading:`${r.small} ${i.xsmall} ${t.quiet} ${t.inProgress} ${a.primary}`,primaryQuietLoading:`${r.large} ${i.medium} ${t.quiet} ${t.inProgress}`,utility:`${r.utility} ${i.medium} ${a.utility} ${n.utility}`,utilityDisabled:`${r.utility} ${i.medium} ${a.utility} ${t.isDisabled}`,utilityQuiet:`${r.large} ${i.medium} ${t.utilityQuiet} ${n.utilityQuiet}`,utilityQuietDisabled:`${r.large} ${i.medium} ${t.utilityQuiet} ${t.isDisabled}`,utilitySmall:`${r.smallUtility} ${i.xsmall} ${a.utility} ${n.utility}`,utilitySmallDisabled:`${r.smallUtility} ${i.xsmall} ${a.utility} ${t.isDisabled}`,utilitySmallQuiet:`${r.smallUtility} ${i.xsmall} ${t.utilityQuiet} ${n.utilityQuiet}`,utilitySmallQuietDisabled:`${r.smallUtility} ${i.xsmall} ${t.utilityQuiet} ${t.isDisabled}`,utilityLoading:`${r.large} ${i.medium} ${a.utility} ${t.inProgress}`,utilitySmallLoading:`${r.smallUtility} ${i.xsmall} ${a.utility} ${t.inProgress}`,utilityQuietLoading:`${r.large} ${i.medium} ${t.inProgress} ${t.utilityQuiet}`,utilitySmallQuietLoading:`${r.smallUtility} ${i.xsmall} ${t.inProgress} ${t.utilityQuiet}`,negative:`${r.large} ${i.medium} ${a.negative} ${n.destructive}`,negativeDisabled:`${r.large} ${i.medium} ${a.negative} ${t.isDisabled}`,negativeQuiet:`${r.large} ${i.medium} ${t.negativeQuiet} ${n.negativeQuiet}`,negativeQuietDisabled:`${r.large} ${i.medium} ${t.negativeQuiet}${t.isDisabled}`,negativeSmall:`${r.small} ${i.xsmall} ${a.negative} ${n.destructive}`,negativeSmallDisabled:`${r.small} ${i.xsmall} ${a.negative} ${t.isDisabled}`,negativeSmallQuiet:`${r.small} ${i.xsmall} ${t.negativeQuiet} ${n.negativeQuiet}`,negativeSmallQuietDisabled:`${r.small} ${i.xsmall} ${t.negativeQuiet} ${t.isDisabled}`,negativeLoading:`${r.large} ${i.medium} ${a.negative} ${t.inProgress}`,negativeSmallLoading:`${r.small} ${i.xsmall} ${t.inProgress} ${a.negative}`,negativeQuietLoading:`${r.large} ${i.medium} ${t.negativeQuiet} ${a.negative} ${t.inProgress}`,negativeSmallQuietLoading:`${r.small} ${i.xsmall} ${t.negativeQuiet} ${t.inProgress}`,pill:`${r.pill} ${i.medium} ${a.pill} ${n.pill}`,pillSmall:`${r.pillSmall} ${i.xsmall} ${a.pill} ${n.pill}`,pillLoading:`${r.pill} ${i.medium} ${a.pill} ${t.inProgress}`,pillSmallLoading:`${r.pillSmall} ${i.xsmall} ${a.pill} ${t.inProgress}`,link:`${r.link} ${i.medium} ${a.link}`,linkSmall:`${r.link} ${i.xsmall} ${a.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var te={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:U.pill+" sm:min-h-[32px] sm:min-w-[32px]",titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var W={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var _="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",re={wrapper:_+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},ie={wrapper:_+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var le={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${W.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var w=typeof window!="undefined",L=!0;if(w){let o=window.matchMedia("(prefers-reduced-motion: reduce)"),e=({matches:l})=>L=!l;o.addEventListener&&o.addEventListener("change",e),e(o)}var Q=o=>{o.style.transition=null,o.style.backfaceVisibility=null,o.style.overflow=null},q=o=>{let e=L?"var(--f-expansion-duration, 0.3s)":"0.01s";o.style.transition=`height ${e}`,o.style.backfaceVisibility="hidden",o.style.overflow="hidden"},M=(o,e)=>()=>{o.style.height="auto",o.style.overflow=null,e&&e()},F=o=>()=>{o&&o()},C=(o,e)=>{let l=(()=>{if(!e)return new Promise(m=>{e=m})})(),c=M(o,e);Q(o),o.style.height="auto";let s=o.scrollHeight;if(w&&requestAnimationFrame(()=>{o.addEventListener("transitionend",c,{once:!0}),o.style.height="0px",o.style.transitionTimingFunction="ease-out",q(o),requestAnimationFrame(()=>o.style.height=s+"px")}),l)return l},T=(o,e)=>{let l=(()=>{if(!e)return new Promise(m=>{e=m})})(),c=F(e);Q(o);let s=o.scrollHeight;if(w&&requestAnimationFrame(()=>{o.addEventListener("transitionend",c,{once:!0}),o.style.height=s+"px",o.style.transitionTimingFunction="ease-in",q(o),requestAnimationFrame(()=>o.style.height="0px")}),l)return l};var E=o=>{let e={};for(let[l,c]of Object.entries(o))for(let s of l.split(" "))e[s]=c;return N(e)},u={success:"success",error:"error",warning:"warning"},x=class extends B{constructor(){super(),this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5),this.type="success",this.text="",this.canclose=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&C(this._wrapper,()=>this._expanded=!0)}get _primaryClasses(){return E({[d.toast]:!0,[d.positive]:this.type===u.success,[d.warning]:this.type===u.warning,[d.negative]:this.type===u.error})}get _iconClasses(){return E({[d.icon]:!0,[d.iconPositive]:this.type==u.success,[d.iconWarning]:this.type===u.warning,[d.iconNegative]:this.type===u.error})}get _wrapper(){var e,l;return(l=(e=this.renderRoot)==null?void 0:e.querySelector("section"))!=null?l:null}get _warning(){return this.type===u.warning}get _error(){return this.type===u.error}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._warning?"Varsel":this._error?"Feil":"Vellykket"}get _iconMarkup(){return this._warning?$`<w-icon-alert-warning-16></w-icon-alert-warning-16>`:this._error?$`<w-icon-alert-error-16></w-icon-alert-error-16>`:$`<w-icon-alert-success-16></w-icon-alert-success-16>`}async collapse(){return new Promise(e=>{this._expanded&&this._wrapper?T(this._wrapper,e):e()})}close(){let e=new CustomEvent("close",{detail:{id:this.id},bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(e))}render(){return this.text?$` <section class="${d.wrapper}" aria-label="${this._typeLabel}">
1
+ var gt=Object.defineProperty,ht=Object.defineProperties;var ft=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable;var te=(e,t,r)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t)=>{for(var r in t||(t={}))mt.call(t,r)&&te(e,r,t[r]);if(fe)for(var r of fe(t))vt.call(t,r)&&te(e,r,t[r]);return e},me=(e,t)=>ht(e,ft(t));var N=(e,t,r)=>(te(e,typeof t!="symbol"?t+"":t,r),r);import{css as Vo,html as Q}from"lit";import dt from"@warp-ds/elements-core";import{classMap as Wo}from"lit/directives/class-map.js";import{when as Zo}from"lit/directives/when.js";var re={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var J={container:"fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",content:"w-full",toaster:"grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"},k={wrapper:"relative overflow-hidden w-full",toast:"flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",positive:"i-bg-$color-toast-positive-background i-border-$color-toast-positive-subtle-border i-text-$color-toast-positive-text",warning:"i-bg-$color-toast-warning-background i-border-$color-toast-warning-subtle-border i-text-$color-toast-warning-text",negative:"i-bg-$color-toast-negative-background i-border-$color-toast-negative-subtle-border i-text-$color-toast-negative-text",icon:"shrink-0 rounded-full w-[16px] h-[16px] m-[8px]",iconPositive:"i-text-$color-toast-positive-icon",iconWarning:"i-text-$color-toast-warning-icon",iconNegative:"i-text-$color-toast-negative-icon",iconLoading:"animate-bounce",content:"self-center mr-8 py-4 last-child:mb-0",close:"bg-transparent ml-auto p-[8px] i-text-$color-toast-close-icon hover:i-text-$color-toast-close-icon-hover active:i-text-$color-toast-close-icon-active"};var xt="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",oi={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+re.box,expandableBleed:re.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:xt+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+re.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},P="font-bold focusable justify-center transition-colors ease-in-out",x={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},m={primary:`border-0 rounded-8 ${P}`,secondary:`border-2 rounded-8 ${P}`,utility:`border rounded-4 ${P}`,negative:`border-0 rounded-8 ${P}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${P}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${x.link}`},g={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},b={medium:"text-m leading-[24]",xsmall:"text-xs"},u={inProgress:`border-transparent animate-inprogress pointer-events-none ${x.loading}`,quiet:`border-0 rounded-8 ${P}`,utilityQuiet:`border-0 rounded-4 ${P}`,negativeQuiet:`border-0 rounded-8 ${P}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${x.disabled}`},ii={secondary:`${g.medium} ${b.medium} ${m.secondary} ${x.secondary}`,secondaryHref:`${g.medium} ${b.medium} ${m.secondary} ${x.secondary}`,secondaryDisabled:`${g.medium} ${b.medium} ${m.secondary} ${u.isDisabled}`,secondarySmall:`${b.xsmall} ${g.xsmall} ${m.secondary} ${x.secondary}`,secondarySmallDisabled:`${b.xsmall} ${g.xsmall} ${m.secondary} ${u.isDisabled}`,secondaryQuiet:`${g.medium} ${b.medium} ${u.quiet} ${x.quiet}`,secondaryQuietDisabled:`${g.medium} ${b.medium} ${u.quiet} ${u.isDisabled}`,secondarySmallQuiet:`${b.xsmall} ${g.xsmall} ${u.quiet} ${x.quiet}`,secondarySmallQuietDisabled:`${b.xsmall} ${g.xsmall} ${u.quiet} ${u.isDisabled}`,secondaryLoading:`${g.medium} ${b.medium} ${m.secondary} ${u.inProgress}`,secondarySmallLoading:`${b.xsmall} ${g.xsmall} ${m.secondary} ${u.inProgress}`,secondarySmallQuietLoading:`${b.xsmall} ${g.xsmall} ${u.quiet} ${u.inProgress}`,secondaryQuietLoading:`${g.medium} ${b.medium} ${u.quiet} ${u.inProgress}`,primary:`${g.large} ${b.medium} ${m.primary} ${x.primary}`,primaryDisabled:`${g.large} ${b.medium} ${u.isDisabled} ${m.primary}`,primarySmall:`${g.small} ${b.xsmall} ${m.primary} ${x.primary}`,primarySmallDisabled:`${g.small} ${b.xsmall} ${u.isDisabled} ${m.primary} `,primaryQuiet:`${g.large} ${b.medium} ${u.quiet} ${x.quiet}`,primaryQuietDisabled:`${g.large} ${b.medium} ${u.quiet} ${u.isDisabled}`,primarySmallQuiet:`${g.small} ${b.xsmall} ${u.quiet} ${x.quiet}`,primarySmallQuietDisabled:`${g.small} ${b.xsmall} ${u.quiet} ${u.isDisabled}`,primaryLoading:`${g.large} ${b.medium} ${u.inProgress} ${m.primary}`,primarySmallLoading:`${g.small} ${b.xsmall} ${u.inProgress} ${m.primary}`,primarySmallQuietLoading:`${g.small} ${b.xsmall} ${u.quiet} ${u.inProgress} ${m.primary}`,primaryQuietLoading:`${g.large} ${b.medium} ${u.quiet} ${u.inProgress}`,utility:`${g.utility} ${b.medium} ${m.utility} ${x.utility}`,utilityDisabled:`${g.utility} ${b.medium} ${m.utility} ${u.isDisabled}`,utilityQuiet:`${g.large} ${b.medium} ${u.utilityQuiet} ${x.utilityQuiet}`,utilityQuietDisabled:`${g.large} ${b.medium} ${u.utilityQuiet} ${u.isDisabled}`,utilitySmall:`${g.smallUtility} ${b.xsmall} ${m.utility} ${x.utility}`,utilitySmallDisabled:`${g.smallUtility} ${b.xsmall} ${m.utility} ${u.isDisabled}`,utilitySmallQuiet:`${g.smallUtility} ${b.xsmall} ${u.utilityQuiet} ${x.utilityQuiet}`,utilitySmallQuietDisabled:`${g.smallUtility} ${b.xsmall} ${u.utilityQuiet} ${u.isDisabled}`,utilityLoading:`${g.large} ${b.medium} ${m.utility} ${u.inProgress}`,utilitySmallLoading:`${g.smallUtility} ${b.xsmall} ${m.utility} ${u.inProgress}`,utilityQuietLoading:`${g.large} ${b.medium} ${u.inProgress} ${u.utilityQuiet}`,utilitySmallQuietLoading:`${g.smallUtility} ${b.xsmall} ${u.inProgress} ${u.utilityQuiet}`,negative:`${g.large} ${b.medium} ${m.negative} ${x.destructive}`,negativeDisabled:`${g.large} ${b.medium} ${m.negative} ${u.isDisabled}`,negativeQuiet:`${g.large} ${b.medium} ${u.negativeQuiet} ${x.negativeQuiet}`,negativeQuietDisabled:`${g.large} ${b.medium} ${u.negativeQuiet}${u.isDisabled}`,negativeSmall:`${g.small} ${b.xsmall} ${m.negative} ${x.destructive}`,negativeSmallDisabled:`${g.small} ${b.xsmall} ${m.negative} ${u.isDisabled}`,negativeSmallQuiet:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${x.negativeQuiet}`,negativeSmallQuietDisabled:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${u.isDisabled}`,negativeLoading:`${g.large} ${b.medium} ${m.negative} ${u.inProgress}`,negativeSmallLoading:`${g.small} ${b.xsmall} ${u.inProgress} ${m.negative}`,negativeQuietLoading:`${g.large} ${b.medium} ${u.negativeQuiet} ${m.negative} ${u.inProgress}`,negativeSmallQuietLoading:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${u.inProgress}`,pill:`${g.pill} ${b.medium} ${m.pill} ${x.pill}`,pillSmall:`${g.pillSmall} ${b.xsmall} ${m.pill} ${x.pill}`,pillLoading:`${g.pill} ${b.medium} ${m.pill} ${u.inProgress}`,pillSmallLoading:`${g.pillSmall} ${b.xsmall} ${m.pill} ${u.inProgress}`,link:`${g.link} ${b.medium} ${m.link}`,linkSmall:`${g.link} ${b.xsmall} ${m.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var li={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${b.medium} ${m.pill} ${x.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var $t={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var ve="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",ai={wrapper:ve+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},ni={wrapper:ve+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var si={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${$t.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var ci={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${b.medium} ${m.pill} ${x.pill} justify-self-end -mr-8 ml-8`};var oe=typeof window!="undefined",xe=!0;if(oe){let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=({matches:r})=>xe=!r;e.addEventListener&&e.addEventListener("change",t),t(e)}var $e=e=>{e.style.transition=null,e.style.backfaceVisibility=null,e.style.overflow=null},ye=e=>{let t=xe?"var(--f-expansion-duration, 0.3s)":"0.01s";e.style.transition=`height ${t}`,e.style.backfaceVisibility="hidden",e.style.overflow="hidden"},yt=(e,t)=>()=>{e.style.height="auto",e.style.overflow=null,t&&t()},wt=e=>()=>{e&&e()},we=(e,t)=>{let r=(()=>{if(!t)return new Promise(i=>{t=i})})(),o=yt(e,t);$e(e),e.style.height="auto";let n=e.scrollHeight;if(oe&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height="0px",e.style.transitionTimingFunction="ease-out",ye(e),requestAnimationFrame(()=>e.style.height=n+"px")}),r)return r},ke=(e,t)=>{let r=(()=>{if(!t)return new Promise(i=>{t=i})})(),o=wt(t);$e(e);let n=e.scrollHeight;if(oe&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height=n+"px",e.style.transitionTimingFunction="ease-in",ye(e),requestAnimationFrame(()=>e.style.height="0px")}),r)return r};import{LitElement as Pt}from"lit";import{unsafeStatic as jt,html as At}from"lit/static-html.js";var kt=Object.create,Se=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,Et=Object.getOwnPropertyNames,_e=Object.getOwnPropertySymbols,Ot=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,St=(e,t)=>{var r={};for(var o in e)Me.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&_e)for(var o of _e(e))t.indexOf(o)<0&&Dt.call(e,o)&&(r[o]=e[o]);return r},Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mt=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Et(t))!Me.call(e,n)&&n!==r&&Se(e,n,{get:()=>t[n],enumerable:!(o=_t(t,n))||o.enumerable});return e},Tt=(e,t,r)=>(r=e!=null?kt(Ot(e)):{},Mt(t||!e||!e.__esModule?Se(r,"default",{value:e,enumerable:!0}):r,e)),Ct=Te(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),Lt=Te(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=Ct();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,p){let h=r(a);if(Number.isNaN(h)||p!==void 0&&p!==a.length)throw new SyntaxError(t.errorMessages.get(c));return h}function n(a){let c=o(a,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let p=o(a,t.ErrorType.MalformedUnicode,4);if(c!==void 0){let h=o(c,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(p,h)}return String.fromCharCode(p)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let c=a.slice(1,-1),p=o(c,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(p)}catch(h){throw h instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):h}}function d(a,c=!1){if(c)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let p=parseInt(a,8);return String.fromCharCode(p)}var f=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return f.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(a,c=!1){return a.replace(y,function(p,h,_,E,O,A,D,w,S){if(h!==void 0)return"\\";if(_!==void 0)return n(_);if(E!==void 0)return s(E);if(O!==void 0)return i(O,A);if(D!==void 0)return i(D);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(S!==void 0)return v(S);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),It=Tt(Lt(),1),M=e=>typeof e=="string",Nt=e=>typeof e=="function",Ee=new Map;function ae(e){return[...Array.isArray(e)?e:[e],"en"]}function Ce(e,t,r){let o=ae(e);return z(()=>G("date",o,r),()=>new Intl.DateTimeFormat(o,r)).format(M(t)?new Date(t):t)}function ie(e,t,r){let o=ae(e);return z(()=>G("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Oe(e,t,r,o){var n=o,{offset:i=0}=n,l=St(n,["offset"]),s,d;let f=ae(e),v=t?z(()=>G("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):z(()=>G("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return(d=(s=l[r])!=null?s:l[v.select(r-i)])!=null?d:l.other}function z(e,t){let r=e(),o=Ee.get(r);return o||(o=t(),Ee.set(r,o)),o}function G(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Le=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Ft=(e,t,r={})=>{t=t||e;let o=i=>M(i)?r[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(r).length?o("number"):{},d=ie(t,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=Oe(t,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=Oe(t,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>ie(t,i,o(l)),date:(i,l)=>Ce(t,i,o(l)),undefined:i=>i}};function qt(e,t,r){return(o,n={})=>{let i=Ft(t,r,n),l=d=>Array.isArray(d)?d.reduce((f,v)=>{if(M(v))return f+v;let[y,$,a]=v,c={};a!=null&&!M(a)?Object.keys(a).forEach(h=>{c[h]=l(a[h])}):c=a;let p=i[$](o[y],c);return p==null?f:f+p},""):d,s=l(e);return M(s)&&Le.test(s)?(0,It.default)(s.trim()):M(s)?s.trim():s}}var Ut=Object.defineProperty,Rt=(e,t,r)=>t in e?Ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t,r)=>(Rt(e,typeof t!="symbol"?t+"":t,r),r),Bt=class{constructor(){Qt(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},Ht=Object.defineProperty,Jt=(e,t,r)=>t in e?Ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>(Jt(e,typeof t!="symbol"?t+"":t,r),r),zt=class extends Bt{constructor(e){super(),F(this,"_locale"),F(this,"_locales"),F(this,"_localeData"),F(this,"_messages"),F(this,"_missing"),F(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:r,formats:o}={}){M(e)||(t=e.values||t,r=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return Nt(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return M(l)&&Le.test(l)?JSON.parse(`"${l}"`):M(l)?l:qt(l,this._locale,this._locales)(t,o)}date(e,t){return Ce(this._locales||this._locale,e,t)}number(e,t){return ie(this._locales||this._locale,e,t)}};function Gt(e={}){return new zt(e)}var le=Gt(),Vt=JSON.parse('{"icon.title.alert-warning":"Gul varseltrekant med utropstegn"}'),Wt=JSON.parse('{"icon.title.alert-warning":"Yellow warning triangle with exclamation point"}'),Zt=JSON.parse('{"icon.title.alert-warning":"Keltainen varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"}'),Xt=["en","nb","fi"],Pe="en",De=e=>Xt.find(t=>e===t||e.toLowerCase().includes(t))||Pe;function Kt(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return De(e)}try{let e=document.documentElement.lang;return De(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Pe}}var Yt=(e,t,r,o)=>e==="nb"?r:e==="fi"?o:t,er=(e,t,r)=>{let o=Kt(),n=Yt(o,e,t,r);le.load(o,n),le.activate(o)};er(Wt,Vt,Zt);var tr=class extends Pt{render(){let e=le.t({message:"Yellow warning triangle with exclamation point",id:"icon.title.alert-warning",comment:"Title for alert warning icon"});return At`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${jt(`<title>${e}</title>`)}<path fill="currentColor" d="M.245 12.01 6.159 1.083c.782-1.445 2.9-1.445 3.682 0l5.914 10.925c.734 1.357-.271 2.991-1.84 2.991H2.084C.517 15-.49 13.366.246 12.01Z"></path><path fill="#fff" fill-rule="evenodd" d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z" clip-rule="evenodd"></path><path fill="#fff" d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"></path></svg>`}};customElements.get("w-icon-alert-warning-16")||customElements.define("w-icon-alert-warning-16",tr);import{LitElement as br}from"lit";import{unsafeStatic as pr,html as gr}from"lit/static-html.js";var rr=Object.create,Fe=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ir=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,lr=Object.getPrototypeOf,qe=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable,nr=(e,t)=>{var r={};for(var o in e)qe.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&je)for(var o of je(e))t.indexOf(o)<0&&ar.call(e,o)&&(r[o]=e[o]);return r},Ue=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ir(t))!qe.call(e,n)&&n!==r&&Fe(e,n,{get:()=>t[n],enumerable:!(o=or(t,n))||o.enumerable});return e},cr=(e,t,r)=>(r=e!=null?rr(lr(e)):{},sr(t||!e||!e.__esModule?Fe(r,"default",{value:e,enumerable:!0}):r,e)),dr=Ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),ur=Ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=dr();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,p){let h=r(a);if(Number.isNaN(h)||p!==void 0&&p!==a.length)throw new SyntaxError(t.errorMessages.get(c));return h}function n(a){let c=o(a,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let p=o(a,t.ErrorType.MalformedUnicode,4);if(c!==void 0){let h=o(c,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(p,h)}return String.fromCharCode(p)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let c=a.slice(1,-1),p=o(c,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(p)}catch(h){throw h instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):h}}function d(a,c=!1){if(c)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let p=parseInt(a,8);return String.fromCharCode(p)}var f=new Map([["b","\b"],["f","\f"],["n",`
3
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return f.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(a,c=!1){return a.replace(y,function(p,h,_,E,O,A,D,w,S){if(h!==void 0)return"\\";if(_!==void 0)return n(_);if(E!==void 0)return s(E);if(O!==void 0)return i(O,A);if(D!==void 0)return i(D);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(S!==void 0)return v(S);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),hr=cr(ur(),1),T=e=>typeof e=="string",fr=e=>typeof e=="function",Ae=new Map;function ce(e){return[...Array.isArray(e)?e:[e],"en"]}function Re(e,t,r){let o=ce(e);return V(()=>W("date",o,r),()=>new Intl.DateTimeFormat(o,r)).format(T(t)?new Date(t):t)}function ne(e,t,r){let o=ce(e);return V(()=>W("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Ie(e,t,r,o){var n=o,{offset:i=0}=n,l=nr(n,["offset"]),s,d;let f=ce(e),v=t?V(()=>W("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):V(()=>W("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return(d=(s=l[r])!=null?s:l[v.select(r-i)])!=null?d:l.other}function V(e,t){let r=e(),o=Ae.get(r);return o||(o=t(),Ae.set(r,o)),o}function W(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Qe=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,mr=(e,t,r={})=>{t=t||e;let o=i=>T(i)?r[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(r).length?o("number"):{},d=ne(t,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=Ie(t,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=Ie(t,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>ne(t,i,o(l)),date:(i,l)=>Re(t,i,o(l)),undefined:i=>i}};function vr(e,t,r){return(o,n={})=>{let i=mr(t,r,n),l=d=>Array.isArray(d)?d.reduce((f,v)=>{if(T(v))return f+v;let[y,$,a]=v,c={};a!=null&&!T(a)?Object.keys(a).forEach(h=>{c[h]=l(a[h])}):c=a;let p=i[$](o[y],c);return p==null?f:f+p},""):d,s=l(e);return T(s)&&Qe.test(s)?(0,hr.default)(s.trim()):T(s)?s.trim():s}}var xr=Object.defineProperty,$r=(e,t,r)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yr=(e,t,r)=>($r(e,typeof t!="symbol"?t+"":t,r),r),wr=class{constructor(){yr(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},kr=Object.defineProperty,_r=(e,t,r)=>t in e?kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t,r)=>(_r(e,typeof t!="symbol"?t+"":t,r),r),Er=class extends wr{constructor(e){super(),q(this,"_locale"),q(this,"_locales"),q(this,"_localeData"),q(this,"_messages"),q(this,"_missing"),q(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:r,formats:o}={}){T(e)||(t=e.values||t,r=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return fr(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return T(l)&&Qe.test(l)?JSON.parse(`"${l}"`):T(l)?l:vr(l,this._locale,this._locales)(t,o)}date(e,t){return Re(this._locales||this._locale,e,t)}number(e,t){return ne(this._locales||this._locale,e,t)}};function Or(e={}){return new Er(e)}var se=Or(),Dr=JSON.parse('{"icon.title.alert-error":"R\xF8d \xE5ttekant med hvitt utropstegn"}'),Sr=JSON.parse('{"icon.title.alert-error":"Red octagon with white exclamation point"}'),Mr=JSON.parse('{"icon.title.alert-error":"Punainen kahdeksankulmio, jonka sis\xE4ll\xE4 on valkoinen huutomerkki"}'),Tr=["en","nb","fi"],Be="en",Ne=e=>Tr.find(t=>e===t||e.toLowerCase().includes(t))||Be;function Cr(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ne(e)}try{let e=document.documentElement.lang;return Ne(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Be}}var Lr=(e,t,r,o)=>e==="nb"?r:e==="fi"?o:t,Pr=(e,t,r)=>{let o=Cr(),n=Lr(o,e,t,r);se.load(o,n),se.activate(o)};Pr(Sr,Dr,Mr);var jr=class extends br{render(){let e=se.t({message:"Red octagon with white exclamation point",id:"icon.title.alert-error",comment:"Title for alert error icon"});return gr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${pr(`<title>${e}</title>`)}<path fill="currentColor" d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"></path><path fill="#fff" fill-rule="evenodd" d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 1 1-1.5 0V4A.75.75 0 0 1 8 3.25Z" clip-rule="evenodd"></path><path fill="#fff" d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"></path></svg>`}};customElements.get("w-icon-alert-error-16")||customElements.define("w-icon-alert-error-16",jr);import{LitElement as Jr}from"lit";import{unsafeStatic as zr,html as Gr}from"lit/static-html.js";var Ar=Object.create,Ve=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor,Nr=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Fr=Object.getPrototypeOf,We=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Ur=(e,t)=>{var r={};for(var o in e)We.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&qr.call(e,o)&&(r[o]=e[o]);return r},Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Nr(t))!We.call(e,n)&&n!==r&&Ve(e,n,{get:()=>t[n],enumerable:!(o=Ir(t,n))||o.enumerable});return e},Qr=(e,t,r)=>(r=e!=null?Ar(Fr(e)):{},Rr(t||!e||!e.__esModule?Ve(r,"default",{value:e,enumerable:!0}):r,e)),Br=Ze(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),Hr=Ze(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=Br();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,p){let h=r(a);if(Number.isNaN(h)||p!==void 0&&p!==a.length)throw new SyntaxError(t.errorMessages.get(c));return h}function n(a){let c=o(a,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let p=o(a,t.ErrorType.MalformedUnicode,4);if(c!==void 0){let h=o(c,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(p,h)}return String.fromCharCode(p)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let c=a.slice(1,-1),p=o(c,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(p)}catch(h){throw h instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):h}}function d(a,c=!1){if(c)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let p=parseInt(a,8);return String.fromCharCode(p)}var f=new Map([["b","\b"],["f","\f"],["n",`
4
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return f.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(a,c=!1){return a.replace(y,function(p,h,_,E,O,A,D,w,S){if(h!==void 0)return"\\";if(_!==void 0)return n(_);if(E!==void 0)return s(E);if(O!==void 0)return i(O,A);if(D!==void 0)return i(D);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(S!==void 0)return v(S);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),Vr=Qr(Hr(),1),C=e=>typeof e=="string",Wr=e=>typeof e=="function",Je=new Map;function be(e){return[...Array.isArray(e)?e:[e],"en"]}function Xe(e,t,r){let o=be(e);return Z(()=>X("date",o,r),()=>new Intl.DateTimeFormat(o,r)).format(C(t)?new Date(t):t)}function de(e,t,r){let o=be(e);return Z(()=>X("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function ze(e,t,r,o){var n=o,{offset:i=0}=n,l=Ur(n,["offset"]),s,d;let f=be(e),v=t?Z(()=>X("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):Z(()=>X("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return(d=(s=l[r])!=null?s:l[v.select(r-i)])!=null?d:l.other}function Z(e,t){let r=e(),o=Je.get(r);return o||(o=t(),Je.set(r,o)),o}function X(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Ke=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Zr=(e,t,r={})=>{t=t||e;let o=i=>C(i)?r[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(r).length?o("number"):{},d=de(t,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=ze(t,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=ze(t,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>de(t,i,o(l)),date:(i,l)=>Xe(t,i,o(l)),undefined:i=>i}};function Xr(e,t,r){return(o,n={})=>{let i=Zr(t,r,n),l=d=>Array.isArray(d)?d.reduce((f,v)=>{if(C(v))return f+v;let[y,$,a]=v,c={};a!=null&&!C(a)?Object.keys(a).forEach(h=>{c[h]=l(a[h])}):c=a;let p=i[$](o[y],c);return p==null?f:f+p},""):d,s=l(e);return C(s)&&Ke.test(s)?(0,Vr.default)(s.trim()):C(s)?s.trim():s}}var Kr=Object.defineProperty,Yr=(e,t,r)=>t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eo=(e,t,r)=>(Yr(e,typeof t!="symbol"?t+"":t,r),r),to=class{constructor(){eo(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},ro=Object.defineProperty,oo=(e,t,r)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U=(e,t,r)=>(oo(e,typeof t!="symbol"?t+"":t,r),r),io=class extends to{constructor(e){super(),U(this,"_locale"),U(this,"_locales"),U(this,"_localeData"),U(this,"_messages"),U(this,"_missing"),U(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:r,formats:o}={}){C(e)||(t=e.values||t,r=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return Wr(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return C(l)&&Ke.test(l)?JSON.parse(`"${l}"`):C(l)?l:Xr(l,this._locale,this._locales)(t,o)}date(e,t){return Xe(this._locales||this._locale,e,t)}number(e,t){return de(this._locales||this._locale,e,t)}};function lo(e={}){return new io(e)}var ue=lo(),ao=JSON.parse('{"icon.title.alert-success":"Gr\xF8nn sirkel med sjekkmerke"}'),no=JSON.parse('{"icon.title.alert-success":"Green circle with checkmark"}'),so=JSON.parse('{"icon.title.alert-success":"Vihre\xE4 ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"}'),co=["en","nb","fi"],Ye="en",Ge=e=>co.find(t=>e===t||e.toLowerCase().includes(t))||Ye;function uo(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ge(e)}try{let e=document.documentElement.lang;return Ge(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Ye}}var bo=(e,t,r,o)=>e==="nb"?r:e==="fi"?o:t,po=(e,t,r)=>{let o=uo(),n=bo(o,e,t,r);ue.load(o,n),ue.activate(o)};po(no,ao,so);var go=class extends Jr{render(){let e=ue.t({message:"Green circle with checkmark",id:"icon.title.alert-success",comment:"Title for alert success icon"});return Gr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${zr(`<title>${e}</title>`)}<circle cx="8" cy="8" r="8" fill="currentColor" transform="rotate(180 8 8)"></circle><path fill="#fff" fill-rule="evenodd" d="M11.498 4.94a.75.75 0 0 1 .063 1.058l-4 4.5a.75.75 0 0 1-1.091.032l-2-2a.75.75 0 0 1 1.06-1.06l1.438 1.437 3.471-3.905a.75.75 0 0 1 1.06-.063Z" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-alert-success-16")||customElements.define("w-icon-alert-success-16",go);import{LitElement as Eo}from"lit";import{unsafeStatic as Oo,html as Do}from"lit/static-html.js";var ho=Object.create,it=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,mo=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,vo=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,$o=(e,t)=>{var r={};for(var o in e)lt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&et)for(var o of et(e))t.indexOf(o)<0&&xo.call(e,o)&&(r[o]=e[o]);return r},at=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mo(t))!lt.call(e,n)&&n!==r&&it(e,n,{get:()=>t[n],enumerable:!(o=fo(t,n))||o.enumerable});return e},wo=(e,t,r)=>(r=e!=null?ho(vo(e)):{},yo(t||!e||!e.__esModule?it(r,"default",{value:e,enumerable:!0}):r,e)),ko=at(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),_o=at(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=ko();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,p){let h=r(a);if(Number.isNaN(h)||p!==void 0&&p!==a.length)throw new SyntaxError(t.errorMessages.get(c));return h}function n(a){let c=o(a,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let p=o(a,t.ErrorType.MalformedUnicode,4);if(c!==void 0){let h=o(c,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(p,h)}return String.fromCharCode(p)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let c=a.slice(1,-1),p=o(c,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(p)}catch(h){throw h instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):h}}function d(a,c=!1){if(c)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let p=parseInt(a,8);return String.fromCharCode(p)}var f=new Map([["b","\b"],["f","\f"],["n",`
5
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return f.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(a,c=!1){return a.replace(y,function(p,h,_,E,O,A,D,w,S){if(h!==void 0)return"\\";if(_!==void 0)return n(_);if(E!==void 0)return s(E);if(O!==void 0)return i(O,A);if(D!==void 0)return i(D);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(S!==void 0)return v(S);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),So=wo(_o(),1),L=e=>typeof e=="string",Mo=e=>typeof e=="function",tt=new Map;function he(e){return[...Array.isArray(e)?e:[e],"en"]}function nt(e,t,r){let o=he(e);return K(()=>Y("date",o,r),()=>new Intl.DateTimeFormat(o,r)).format(L(t)?new Date(t):t)}function pe(e,t,r){let o=he(e);return K(()=>Y("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function rt(e,t,r,o){var n=o,{offset:i=0}=n,l=$o(n,["offset"]),s,d;let f=he(e),v=t?K(()=>Y("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):K(()=>Y("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return(d=(s=l[r])!=null?s:l[v.select(r-i)])!=null?d:l.other}function K(e,t){let r=e(),o=tt.get(r);return o||(o=t(),tt.set(r,o)),o}function Y(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var st=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,To=(e,t,r={})=>{t=t||e;let o=i=>L(i)?r[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(r).length?o("number"):{},d=pe(t,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=rt(t,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=rt(t,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>pe(t,i,o(l)),date:(i,l)=>nt(t,i,o(l)),undefined:i=>i}};function Co(e,t,r){return(o,n={})=>{let i=To(t,r,n),l=d=>Array.isArray(d)?d.reduce((f,v)=>{if(L(v))return f+v;let[y,$,a]=v,c={};a!=null&&!L(a)?Object.keys(a).forEach(h=>{c[h]=l(a[h])}):c=a;let p=i[$](o[y],c);return p==null?f:f+p},""):d,s=l(e);return L(s)&&st.test(s)?(0,So.default)(s.trim()):L(s)?s.trim():s}}var Lo=Object.defineProperty,Po=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jo=(e,t,r)=>(Po(e,typeof t!="symbol"?t+"":t,r),r),Ao=class{constructor(){jo(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},Io=Object.defineProperty,No=(e,t,r)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>(No(e,typeof t!="symbol"?t+"":t,r),r),Fo=class extends Ao{constructor(e){super(),R(this,"_locale"),R(this,"_locales"),R(this,"_localeData"),R(this,"_messages"),R(this,"_missing"),R(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:r,formats:o}={}){L(e)||(t=e.values||t,r=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return Mo(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return L(l)&&st.test(l)?JSON.parse(`"${l}"`):L(l)?l:Co(l,this._locale,this._locales)(t,o)}date(e,t){return nt(this._locales||this._locale,e,t)}number(e,t){return pe(this._locales||this._locale,e,t)}};function qo(e={}){return new Fo(e)}var ge=qo(),Uo=JSON.parse('{"icon.title.close":"Kryss"}'),Ro=JSON.parse('{"icon.title.close":"Cross"}'),Qo=JSON.parse('{"icon.title.close":"Risti"}'),Bo=["en","nb","fi"],ct="en",ot=e=>Bo.find(t=>e===t||e.toLowerCase().includes(t))||ct;function Ho(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ot(e)}try{let e=document.documentElement.lang;return ot(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ct}}var Jo=(e,t,r,o)=>e==="nb"?r:e==="fi"?o:t,zo=(e,t,r)=>{let o=Ho(),n=Jo(o,e,t,r);ge.load(o,n),ge.activate(o)};zo(Ro,Uo,Qo);var Go=class extends Eo{render(){let e=ge.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return Do`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${Oo(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9M3.5 3.5l9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",Go);var ut=e=>{let t={};for(let[r,o]of Object.entries(e))for(let n of r.split(" "))t[n]=o;return Wo(t)},j={success:"success",error:"error",warning:"warning"},B=class extends dt{constructor(){super(),this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5),this.type="success",this.text="",this.canclose=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&we(this._wrapper,()=>this._expanded=!0)}get _primaryClasses(){return ut({[k.toast]:!0,[k.positive]:this.type===j.success,[k.warning]:this.type===j.warning,[k.negative]:this.type===j.error})}get _iconClasses(){return ut({[k.icon]:!0,[k.iconPositive]:this.type==j.success,[k.iconWarning]:this.type===j.warning,[k.iconNegative]:this.type===j.error})}get _wrapper(){var t,r;return(r=(t=this.renderRoot)==null?void 0:t.querySelector("section"))!=null?r:null}get _warning(){return this.type===j.warning}get _error(){return this.type===j.error}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._warning?"Varsel":this._error?"Feil":"Vellykket"}get _iconMarkup(){return this._warning?Q`<w-icon-alert-warning-16></w-icon-alert-warning-16>`:this._error?Q`<w-icon-alert-error-16></w-icon-alert-error-16>`:Q`<w-icon-alert-success-16></w-icon-alert-success-16>`}async collapse(){return new Promise(t=>{this._expanded&&this._wrapper?ke(this._wrapper,t):t()})}close(){let t=new CustomEvent("close",{detail:{id:this.id},bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(t))}render(){return this.text?Q` <section class="${k.wrapper}" aria-label="${this._typeLabel}">
2
6
  <div class="${this._primaryClasses}">
3
7
  <div class="${this._iconClasses}">${this._iconMarkup}</div>
4
- <div role="${this._role}" class="${d.content}">
8
+ <div role="${this._role}" class="${k.content}">
5
9
  <p>${this.text}</p>
6
10
  </div>
7
- ${G(this.canclose===!0,()=>$`
8
- <button class="${d.close}" @click="${this.close}">
11
+ ${Zo(this.canclose===!0,()=>Q`
12
+ <button class="${k.close}" @click="${this.close}">
9
13
  <w-icon-close-16></w-icon-close-16>
10
14
  </button>
11
15
  `)}
12
16
  </div>
13
- </section>`:$``}};g(x,"styles",[B.styles,O`
17
+ </section>`:Q``}};N(B,"styles",[dt.styles,Vo`
14
18
  :host {
15
19
  display: block;
16
20
  }
17
- `]),g(x,"properties",{id:{type:String,attribute:!0,reflect:!0},type:{type:String,attribute:!0,reflect:!0},text:{type:String,attribute:!0,reflect:!0},canclose:{type:Boolean,attribute:!0,reflect:!0}});customElements.get("w-toast")||customElements.define("w-toast",x);import{css as J,html as P}from"lit";import I from"@warp-ds/elements-core";import{repeat as K}from"lit/directives/repeat.js";var h=class extends I{constructor(){super(),this._toasts=new Map}connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{let e=[],l=[];for(let s of this._toasts)Date.now()<=s[1].duration?e.push(s):l.push(s);let c=[];for(let[s]of l){let m=this.renderRoot.querySelector(`#${s}`);c.push(m.collapse())}Promise.all(c).then(()=>{e.length!=this._toasts.size&&(this._toasts=new Map(e))})},500)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&clearTimeout(this._interval)}static init(){let e=document.querySelector("w-toast-container");return e||(e=document.createElement("w-toast-container"),document.body.appendChild(e)),e}get _toastsArray(){return Array.from(this._toasts).map(([,e])=>e)}get(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof e!="string"&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');return this._toasts.get(e)}set(e){if(!e.id)throw new Error('invalid or undefined "id" on toast object');let l=this._toasts.set(e.id,S(p({},e),{duration:Date.now()+(e.duration||5e3)}));return this._toasts=new Map(Array.from(this._toasts)),l}async del(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof e!="string"&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');let l=this.renderRoot.querySelector(`#${e}`);if(!this._toasts.has(e))return!1;await l.collapse();let c=this._toasts.delete(e);return this._toasts=new Map(Array.from(this._toasts)),c}render(){return P`
18
- <aside class="${v.container}">
19
- <div class="${v.toaster}" id="w-toast-container-list">
20
- ${K(this._toastsArray,e=>e.id,e=>P` <w-toast
21
- class="${v.content}"
22
- id="${e.id}"
23
- type="${e.type}"
24
- text="${e.text}"
25
- ?canclose=${e.canclose}
26
- @close=${()=>this.del(e.id)}
21
+ `]),N(B,"properties",{id:{type:String,attribute:!0,reflect:!0},type:{type:String,attribute:!0,reflect:!0},text:{type:String,attribute:!0,reflect:!0},canclose:{type:Boolean,attribute:!0,reflect:!0}});customElements.get("w-toast")||customElements.define("w-toast",B);import{css as Xo,html as bt}from"lit";import pt from"@warp-ds/elements-core";import{repeat as Ko}from"lit/directives/repeat.js";var H=class extends pt{constructor(){super(),this._toasts=new Map}connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{let t=[],r=[];for(let n of this._toasts)Date.now()<=n[1].duration?t.push(n):r.push(n);let o=[];for(let[n]of r){let i=this.renderRoot.querySelector(`#${n}`);o.push(i.collapse())}Promise.all(o).then(()=>{t.length!=this._toasts.size&&(this._toasts=new Map(t))})},500)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&clearTimeout(this._interval)}static init(){let t=document.querySelector("w-toast-container");return t||(t=document.createElement("w-toast-container"),document.body.appendChild(t)),t}get _toastsArray(){return Array.from(this._toasts).map(([,t])=>t)}get(t){if(!t)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof t!="string"&&!Number.isInteger(t))throw new Error('"id" must be number or string when attempting to retrieve toast');return this._toasts.get(t)}set(t){if(!t.id)throw new Error('invalid or undefined "id" on toast object');let r=this._toasts.set(t.id,me(I({},t),{duration:Date.now()+(t.duration||5e3)}));return this._toasts=new Map(Array.from(this._toasts)),r}async del(t){if(!t)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof t!="string"&&!Number.isInteger(t))throw new Error('"id" must be number or string when attempting to retrieve toast');let r=this.renderRoot.querySelector(`#${t}`);if(!this._toasts.has(t))return!1;await r.collapse();let o=this._toasts.delete(t);return this._toasts=new Map(Array.from(this._toasts)),o}render(){return bt`
22
+ <aside class="${J.container}">
23
+ <div class="${J.toaster}" id="w-toast-container-list">
24
+ ${Ko(this._toastsArray,t=>t.id,t=>bt` <w-toast
25
+ class="${J.content}"
26
+ id="${t.id}"
27
+ type="${t.type}"
28
+ text="${t.text}"
29
+ ?canclose=${t.canclose}
30
+ @close=${()=>this.del(t.id)}
27
31
  >
28
32
  </w-toast>`)}
29
33
  </div>
30
34
  </aside>
31
- `}};g(h,"styles",[I.styles,J`
35
+ `}};N(H,"styles",[pt.styles,Xo`
32
36
  :host {
33
37
  display: block;
34
38
  }
35
- `]),g(h,"properties",{_toasts:{state:!0}});customElements.get("w-toast-container")||customElements.define("w-toast-container",h);var f=typeof window!="undefined";function X(o,e){if(!f)return;let l=customElements.get("w-toast-container").init(),c=p({id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:o,duration:5e3,type:"success"},e);return l.set(c),c}function Y(o){return f?customElements.get("w-toast-container").init().del(o):void 0}function Z(o,e){if(!f)return;let l=customElements.get("w-toast-container").init();return l.set(p(p({},l.get(o)),e)),l.get(o)}export{x as WarpToast,h as WarpToastContainer,Y as removeToast,X as toast,Z as updateToast};
39
+ `]),N(H,"properties",{_toasts:{state:!0}});customElements.get("w-toast-container")||customElements.define("w-toast-container",H);var ee=typeof window!="undefined";function Yo(e,t){if(!ee)return;let r=customElements.get("w-toast-container").init(),o=I({id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:e,duration:5e3,type:"success"},t);return r.set(o),o}function ei(e){return ee?customElements.get("w-toast-container").init().del(e):void 0}function ti(e,t){if(!ee)return;let r=customElements.get("w-toast-container").init();return r.set(I(I({},r.get(e)),t)),r.get(e)}export{B as WarpToast,H as WarpToastContainer,ei as removeToast,Yo as toast,ti as updateToast};
36
40
  //# sourceMappingURL=index.js.map