@warp-ds/elements 1.2.0-next.6 → 1.2.0

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,28 +1,29 @@
1
- var Me=Object.create;var F=Object.defineProperty;var Ee=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,Qe=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var Ie=(o,e,r)=>e in o?F(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r;var ie=(o,e)=>{var r={};for(var t in o)te.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&re)for(var t of re(o))e.indexOf(t)<0&&Pe.call(o,t)&&(r[t]=o[t]);return r};var le=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var qe=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let b of Oe(e))!te.call(o,b)&&b!==r&&F(o,b,{get:()=>e[b],enumerable:!(t=Ee(e,b))||t.enumerable});return o};var Be=(o,e,r)=>(r=o!=null?Me(Qe(o)):{},qe(e||!o||!o.__esModule?F(r,"default",{value:o,enumerable:!0}):r,o));var z=(o,e,r)=>(Ie(o,typeof e!="symbol"?e+"":e,r),r),je=(o,e,r)=>{if(!e.has(o))throw TypeError("Cannot "+r)};var $=(o,e,r)=>(je(o,e,"read from private field"),r?r.call(o):e.get(o)),k=(o,e,r)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,r)};var ce=le(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.errorMessages=w.ErrorType=void 0;var D;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(D=w.ErrorType||(w.ErrorType={}));w.errorMessages=new Map([[D.MalformedUnicode,"malformed Unicode character escape sequence"],[D.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[D.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[D.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[D.EndOfString,"malformed escape sequence at end of string"]])});var be=le(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.unraw=f.errorMessages=f.ErrorType=void 0;var p=ce();Object.defineProperty(f,"ErrorType",{enumerable:!0,get:function(){return p.ErrorType}});Object.defineProperty(f,"errorMessages",{enumerable:!0,get:function(){return p.errorMessages}});function He(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function Q(o,e,r){let t=He(o);if(Number.isNaN(t)||r!==void 0&&r!==o.length)throw new SyntaxError(p.errorMessages.get(e));return t}function Ue(o){let e=Q(o,p.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function se(o,e){let r=Q(o,p.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=Q(e,p.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}function Re(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function Fe(o){if(!Re(o))throw new SyntaxError(p.errorMessages.get(p.ErrorType.MalformedUnicode));let e=o.slice(1,-1),r=Q(e,p.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(p.errorMessages.get(p.ErrorType.CodePointLimit)):t}}function ze(o,e=!1){if(e)throw new SyntaxError(p.errorMessages.get(p.ErrorType.OctalDeprecation));let r=parseInt(o,8);return String.fromCharCode(r)}var Ve=new Map([["b","\b"],["f","\f"],["n",`
2
- `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function We(o){return Ve.get(o)||o}var Ge=/\\(?:(\\)|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 de(o,e=!1){return o.replace(Ge,function(r,t,b,c,d,s,g,h,m){if(t!==void 0)return"\\";if(b!==void 0)return Ue(b);if(c!==void 0)return Fe(c);if(d!==void 0)return se(d,s);if(g!==void 0)return se(g);if(h==="0")return"\0";if(h!==void 0)return ze(h,!e);if(m!==void 0)return We(m);throw new SyntaxError(p.errorMessages.get(p.ErrorType.EndOfString))})}f.unraw=de;f.default=de});import{html as q}from"lit";import we from"@warp-ds/elements-core";import{ifDefined as Z}from"lit/directives/if-defined.js";import{when as Y}from"lit/directives/when.js";var _=function(){for(var o=[],e=arguments.length;e--;)o[e]=arguments[e];return o.reduce(function(r,t){return r.concat(typeof t=="string"?t:Array.isArray(t)?_.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(b){return t[b]?b:""}):"")},[]).join(" ")};var V={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 Ne="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",bo={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 "+V.box,expandableBleed:V.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:Ne+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+V.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},v="font-bold focusable justify-center transition-colors ease-in-out",u={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"},n={primary:`border-0 rounded-8 ${v}`,secondary:`border-2 rounded-8 ${v}`,utility:`border rounded-4 ${v}`,negative:`border-0 rounded-8 ${v}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${v}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${u.link}`},a={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"},l={medium:"text-m leading-[24]",xsmall:"text-xs"},i={inProgress:`border-transparent animate-inprogress pointer-events-none ${u.loading}`,quiet:`border-0 rounded-8 ${v}`,utilityQuiet:`border-0 rounded-4 ${v}`,negativeQuiet:`border-0 rounded-8 ${v}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${u.disabled}`},uo={secondary:`${a.medium} ${l.medium} ${n.secondary} ${u.secondary}`,secondaryHref:`${a.medium} ${l.medium} ${n.secondary} ${u.secondary}`,secondaryDisabled:`${a.medium} ${l.medium} ${n.secondary} ${i.isDisabled}`,secondarySmall:`${l.xsmall} ${a.xsmall} ${n.secondary} ${u.secondary}`,secondarySmallDisabled:`${l.xsmall} ${a.xsmall} ${n.secondary} ${i.isDisabled}`,secondaryQuiet:`${a.medium} ${l.medium} ${i.quiet} ${u.quiet}`,secondaryQuietDisabled:`${a.medium} ${l.medium} ${i.quiet} ${i.isDisabled}`,secondarySmallQuiet:`${l.xsmall} ${a.xsmall} ${i.quiet} ${u.quiet}`,secondarySmallQuietDisabled:`${l.xsmall} ${a.xsmall} ${i.quiet} ${i.isDisabled}`,secondaryLoading:`${a.medium} ${l.medium} ${n.secondary} ${i.inProgress}`,secondarySmallLoading:`${l.xsmall} ${a.xsmall} ${n.secondary} ${i.inProgress}`,secondarySmallQuietLoading:`${l.xsmall} ${a.xsmall} ${i.quiet} ${i.inProgress}`,secondaryQuietLoading:`${a.medium} ${l.medium} ${i.quiet} ${i.inProgress}`,primary:`${a.large} ${l.medium} ${n.primary} ${u.primary}`,primaryDisabled:`${a.large} ${l.medium} ${i.isDisabled} ${n.primary}`,primarySmall:`${a.small} ${l.xsmall} ${n.primary} ${u.primary}`,primarySmallDisabled:`${a.small} ${l.xsmall} ${i.isDisabled} ${n.primary} `,primaryQuiet:`${a.large} ${l.medium} ${i.quiet} ${u.quiet}`,primaryQuietDisabled:`${a.large} ${l.medium} ${i.quiet} ${i.isDisabled}`,primarySmallQuiet:`${a.small} ${l.xsmall} ${i.quiet} ${u.quiet}`,primarySmallQuietDisabled:`${a.small} ${l.xsmall} ${i.quiet} ${i.isDisabled}`,primaryLoading:`${a.large} ${l.medium} ${i.inProgress} ${n.primary}`,primarySmallLoading:`${a.small} ${l.xsmall} ${i.inProgress} ${n.primary}`,primarySmallQuietLoading:`${a.small} ${l.xsmall} ${i.quiet} ${i.inProgress} ${n.primary}`,primaryQuietLoading:`${a.large} ${l.medium} ${i.quiet} ${i.inProgress}`,utility:`${a.utility} ${l.medium} ${n.utility} ${u.utility}`,utilityDisabled:`${a.utility} ${l.medium} ${n.utility} ${i.isDisabled}`,utilityQuiet:`${a.large} ${l.medium} ${i.utilityQuiet} ${u.utilityQuiet}`,utilityQuietDisabled:`${a.large} ${l.medium} ${i.utilityQuiet} ${i.isDisabled}`,utilitySmall:`${a.smallUtility} ${l.xsmall} ${n.utility} ${u.utility}`,utilitySmallDisabled:`${a.smallUtility} ${l.xsmall} ${n.utility} ${i.isDisabled}`,utilitySmallQuiet:`${a.smallUtility} ${l.xsmall} ${i.utilityQuiet} ${u.utilityQuiet}`,utilitySmallQuietDisabled:`${a.smallUtility} ${l.xsmall} ${i.utilityQuiet} ${i.isDisabled}`,utilityLoading:`${a.large} ${l.medium} ${n.utility} ${i.inProgress}`,utilitySmallLoading:`${a.smallUtility} ${l.xsmall} ${n.utility} ${i.inProgress}`,utilityQuietLoading:`${a.large} ${l.medium} ${i.inProgress} ${i.utilityQuiet}`,utilitySmallQuietLoading:`${a.smallUtility} ${l.xsmall} ${i.inProgress} ${i.utilityQuiet}`,negative:`${a.large} ${l.medium} ${n.negative} ${u.destructive}`,negativeDisabled:`${a.large} ${l.medium} ${n.negative} ${i.isDisabled}`,negativeQuiet:`${a.large} ${l.medium} ${i.negativeQuiet} ${u.negativeQuiet}`,negativeQuietDisabled:`${a.large} ${l.medium} ${i.negativeQuiet}${i.isDisabled}`,negativeSmall:`${a.small} ${l.xsmall} ${n.negative} ${u.destructive}`,negativeSmallDisabled:`${a.small} ${l.xsmall} ${n.negative} ${i.isDisabled}`,negativeSmallQuiet:`${a.small} ${l.xsmall} ${i.negativeQuiet} ${u.negativeQuiet}`,negativeSmallQuietDisabled:`${a.small} ${l.xsmall} ${i.negativeQuiet} ${i.isDisabled}`,negativeLoading:`${a.large} ${l.medium} ${n.negative} ${i.inProgress}`,negativeSmallLoading:`${a.small} ${l.xsmall} ${i.inProgress} ${n.negative}`,negativeQuietLoading:`${a.large} ${l.medium} ${i.negativeQuiet} ${n.negative} ${i.inProgress}`,negativeSmallQuietLoading:`${a.small} ${l.xsmall} ${i.negativeQuiet} ${i.inProgress}`,pill:`${a.pill} ${l.medium} ${n.pill} ${u.pill}`,pillSmall:`${a.pillSmall} ${l.xsmall} ${n.pill} ${u.pill}`,pillLoading:`${a.pill} ${l.medium} ${n.pill} ${i.inProgress}`,pillSmallLoading:`${a.pillSmall} ${l.xsmall} ${n.pill} ${i.inProgress}`,link:`${a.link} ${l.medium} ${n.link}`,linkSmall:`${a.link} ${l.xsmall} ${n.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var po={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:`${l.medium} ${n.pill} ${u.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 y={default:"block text-m mb-0 leading-m i-text-$color-select-text i-bg-$color-select-background i-border-$color-select-border hover:i-border-$color-select-border-hover active:i-border-$color-select-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] appearance-none pr-32 cursor-pointer caret-current",disabled:"i-bg-$color-select-background-disabled i-border-$color-select-border-disabled hover:i-border-$color-select-border-disabled! active:i-border-$color-select-border-disabled! i-text-$color-select-text-disabled pointer-events-none",invalid:"i-border-$color-select-border-negative",readOnly:"pl-0 bg-transparent border-0 pointer-events-none before:hidden",wrapper:"relative",selectWrapper:"relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",chevron:"absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon pointer-events-none cursor-pointer",chevronDisabled:"opacity-25"},M={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"},W={helpText:"text-xs mt-4 block i-text-$color-helptext-text",helpTextValid:"i-text-$color-helptext-text-positive",helpTextInvalid:"i-text-$color-helptext-text-negative"},ae="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",go={wrapper:ae+"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"},$o={wrapper:ae+"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 ho={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${M.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var mo={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:`${l.medium} ${n.pill} ${u.pill} justify-self-end -mr-8 ml-8`};import{classMap as vo}from"lit/directives/class-map.js";var Ae=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function ne(o){return class extends o{static createProperty(e,r){let t=r;(typeof(r==null?void 0:r.attribute)=="undefined"||(r==null?void 0:r.attribute)===!0)&&(t=Object.assign({},r,{attribute:Ae(e.toString())})),super.createProperty(e,t)}}}import{unsafeHTML as no}from"lit/directives/unsafe-html.js";var ge=Be(be(),1);var x=o=>typeof o=="string",Je=o=>typeof o=="function",ue=new Map;function X(o){return[...Array.isArray(o)?o:[o],"en"]}function $e(o,e,r){let t=X(o);return P(()=>I("date",t,r),()=>new Intl.DateTimeFormat(t,r)).format(x(e)?new Date(e):e)}function G(o,e,r){let t=X(o);return P(()=>I("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function pe(o,e,r,c){var d=c,{offset:t=0}=d,b=ie(d,["offset"]);var h,m;let s=X(o),g=e?P(()=>I("plural-ordinal",s),()=>new Intl.PluralRules(s,{type:"ordinal"})):P(()=>I("plural-cardinal",s),()=>new Intl.PluralRules(s,{type:"cardinal"}));return(m=(h=b[r])!=null?h:b[g.select(r-t)])!=null?m:b.other}function P(o,e){let r=o(),t=ue.get(r);return t||(t=e(),ue.set(r,t)),t}function I(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var he=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Ke=(o,e,r={})=>{e=e||o;let t=c=>x(c)?r[c]||{style:c}:c,b=(c,d)=>{let s=Object.keys(r).length?t("number"):{},g=G(e,c,s);return d.replace("#",g)};return{plural:(c,d)=>{let{offset:s=0}=d,g=pe(e,!1,c,d);return b(c-s,g)},selectordinal:(c,d)=>{let{offset:s=0}=d,g=pe(e,!0,c,d);return b(c-s,g)},select:(c,d)=>{var s;return(s=d[c])!=null?s:d.other},number:(c,d)=>G(e,c,t(d)),date:(c,d)=>$e(e,c,t(d)),undefined:c=>c}};function Xe(o,e,r){return(t,b={})=>{let c=Ke(e,r,b),d=g=>Array.isArray(g)?g.reduce((h,m)=>{if(x(m))return h+m;let[Ce,Te,T]=m,R={};T!=null&&!x(T)?Object.keys(T).forEach(oe=>{R[oe]=d(T[oe])}):R=T;let ee=c[Te](t[Ce],R);return ee==null?h:h+ee},""):g,s=d(o);return x(s)&&he.test(s)?(0,ge.default)(s.trim()):x(s)?s.trim():s}}var Ze=Object.defineProperty,Ye=(o,e,r)=>e in o?Ze(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,eo=(o,e,r)=>(Ye(o,typeof e!="symbol"?e+"":e,r),r),J=class{constructor(){eo(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(r);~t&&this._events[e].splice(t,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},oo=Object.defineProperty,ro=(o,e,r)=>e in o?oo(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,S=(o,e,r)=>(ro(o,typeof e!="symbol"?e+"":e,r),r),K=class extends J{constructor(e){super(),S(this,"_locale"),S(this,"_locales"),S(this,"_localeData"),S(this,"_messages"),S(this,"_missing"),S(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,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:t,formats:b}={}){x(e)||(r=e.values||r,t=e.message,e=e.id);let c=!this.messages[e],d=this._missing;if(d&&c)return Je(d)?d(this._locale,e):d;c&&this.emit("missing",{id:e,locale:this._locale});let s=this.messages[e]||t||e;return x(s)&&he.test(s)?JSON.parse(`"${s}"`):x(s)?s:Xe(s,this._locale,this._locales)(r,b)}date(e,r){return $e(this._locales||this._locale,e,r)}number(e,r){return G(this._locales||this._locale,e,r)}};function to(o={}){return new K(o)}var E=to();var me=JSON.parse('{"select.label.optional":"(optional)"}');var fe=JSON.parse('{"select.label.optional":"(valgfritt)"}');var xe=JSON.parse('{"select.label.optional":"(valinnainen)"}');var io=["en","nb","fi"],ke="en",ve=o=>io.find(e=>o===e||o.toLowerCase().includes(e))||ke;function lo(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ve(o)}try{let o=document.documentElement.lang;return ve(o)}catch(o){return console.warn("could not detect locale, falling back to source locale",o),ke}}var ao=(o,e,r,t)=>o==="nb"?r:o==="fi"?t:e,ye=(o,e,r)=>{let t=lo(),b=ao(t,o,e,r);E.load(t,b),E.activate(t)};var N,_e,A,De,H,Se,U,Le,L,B,C,j,O=class extends ne(we){constructor(){super();k(this,N);k(this,A);k(this,H);k(this,U);k(this,L);k(this,C);ye(me,fe,xe),this._options=this.innerHTML}render(){return q`<div class="${y.wrapper}">
3
- ${Y(this.label,()=>q`<label class="${$(this,A,De)}" for="${$(this,L,B)}">
1
+ var er=Object.create;var Y=Object.defineProperty;var rr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames,me=Object.getOwnPropertySymbols,tr=Object.getPrototypeOf,$e=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;var lr=(r,e,o)=>e in r?Y(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o;var xe=(r,e)=>{var o={};for(var t in r)$e.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(r!=null&&me)for(var t of me(r))e.indexOf(t)<0&&ir.call(r,t)&&(o[t]=r[t]);return o};var ve=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var ar=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let d of or(e))!$e.call(r,d)&&d!==o&&Y(r,d,{get:()=>e[d],enumerable:!(t=rr(e,d))||t.enumerable});return r};var nr=(r,e,o)=>(o=r!=null?er(tr(r)):{},ar(e||!r||!r.__esModule?Y(o,"default",{value:r,enumerable:!0}):o,r));var ee=(r,e,o)=>(lr(r,typeof e!="symbol"?e+"":e,o),o),sr=(r,e,o)=>{if(!e.has(r))throw TypeError("Cannot "+o)};var y=(r,e,o)=>(sr(r,e,"read from private field"),o?o.call(r):e.get(r)),S=(r,e,o)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,o)};var we=ve(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.errorMessages=E.ErrorType=void 0;var C;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(C=E.ErrorType||(E.ErrorType={}));E.errorMessages=new Map([[C.MalformedUnicode,"malformed Unicode character escape sequence"],[C.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[C.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[C.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[C.EndOfString,"malformed escape sequence at end of string"]])});var Se=ve(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.unraw=k.errorMessages=k.ErrorType=void 0;var v=we();Object.defineProperty(k,"ErrorType",{enumerable:!0,get:function(){return v.ErrorType}});Object.defineProperty(k,"errorMessages",{enumerable:!0,get:function(){return v.errorMessages}});function br(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function B(r,e,o){let t=br(r);if(Number.isNaN(t)||o!==void 0&&o!==r.length)throw new SyntaxError(v.errorMessages.get(e));return t}function ur(r){let e=B(r,v.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function _e(r,e){let o=B(r,v.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=B(e,v.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,t)}return String.fromCharCode(o)}function pr(r){return r.charAt(0)==="{"&&r.charAt(r.length-1)==="}"}function gr(r){if(!pr(r))throw new SyntaxError(v.errorMessages.get(v.ErrorType.MalformedUnicode));let e=r.slice(1,-1),o=B(e,v.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(t){throw t instanceof RangeError?new SyntaxError(v.errorMessages.get(v.ErrorType.CodePointLimit)):t}}function hr(r,e=!1){if(e)throw new SyntaxError(v.errorMessages.get(v.ErrorType.OctalDeprecation));let o=parseInt(r,8);return String.fromCharCode(o)}var fr=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function mr(r){return fr.get(r)||r}var $r=/\\(?:(\\)|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 De(r,e=!1){return r.replace($r,function(o,t,d,i,l,c,p,h,m){if(t!==void 0)return"\\";if(d!==void 0)return ur(d);if(i!==void 0)return gr(i);if(l!==void 0)return _e(l,c);if(p!==void 0)return _e(p);if(h==="0")return"\0";if(h!==void 0)return hr(h,!e);if(m!==void 0)return mr(m);throw new SyntaxError(v.errorMessages.get(v.ErrorType.EndOfString))})}k.unraw=De;k.default=De});import{html as z}from"lit";import We from"@warp-ds/elements-core";import{ifDefined as de}from"lit/directives/if-defined.js";import{when as be}from"lit/directives/when.js";var M=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return r.reduce(function(o,t){return o.concat(typeof t=="string"?t:Array.isArray(t)?M.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(d){return t[d]?d:""}):"")},[]).join(" ")};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 cr="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",go={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:cr+" 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"},D="font-bold focusable justify-center transition-colors ease-in-out",g={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"},u={primary:`border-0 rounded-8 ${D}`,secondary:`border-2 rounded-8 ${D}`,utility:`border rounded-4 ${D}`,negative:`border-0 rounded-8 ${D}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${D}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${g.link}`},s={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"},n={medium:"text-m leading-[24]",xsmall:"text-xs"},a={inProgress:`border-transparent animate-inprogress pointer-events-none ${g.loading}`,quiet:`border-0 rounded-8 ${D}`,utilityQuiet:`border-0 rounded-4 ${D}`,negativeQuiet:`border-0 rounded-8 ${D}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${g.disabled}`},ho={secondary:`${s.medium} ${n.medium} ${u.secondary} ${g.secondary}`,secondaryHref:`${s.medium} ${n.medium} ${u.secondary} ${g.secondary}`,secondaryDisabled:`${s.medium} ${n.medium} ${u.secondary} ${a.isDisabled}`,secondarySmall:`${n.xsmall} ${s.xsmall} ${u.secondary} ${g.secondary}`,secondarySmallDisabled:`${n.xsmall} ${s.xsmall} ${u.secondary} ${a.isDisabled}`,secondaryQuiet:`${s.medium} ${n.medium} ${a.quiet} ${g.quiet}`,secondaryQuietDisabled:`${s.medium} ${n.medium} ${a.quiet} ${a.isDisabled}`,secondarySmallQuiet:`${n.xsmall} ${s.xsmall} ${a.quiet} ${g.quiet}`,secondarySmallQuietDisabled:`${n.xsmall} ${s.xsmall} ${a.quiet} ${a.isDisabled}`,secondaryLoading:`${s.medium} ${n.medium} ${u.secondary} ${a.inProgress}`,secondarySmallLoading:`${n.xsmall} ${s.xsmall} ${u.secondary} ${a.inProgress}`,secondarySmallQuietLoading:`${n.xsmall} ${s.xsmall} ${a.quiet} ${a.inProgress}`,secondaryQuietLoading:`${s.medium} ${n.medium} ${a.quiet} ${a.inProgress}`,primary:`${s.large} ${n.medium} ${u.primary} ${g.primary}`,primaryDisabled:`${s.large} ${n.medium} ${a.isDisabled} ${u.primary}`,primarySmall:`${s.small} ${n.xsmall} ${u.primary} ${g.primary}`,primarySmallDisabled:`${s.small} ${n.xsmall} ${a.isDisabled} ${u.primary} `,primaryQuiet:`${s.large} ${n.medium} ${a.quiet} ${g.quiet}`,primaryQuietDisabled:`${s.large} ${n.medium} ${a.quiet} ${a.isDisabled}`,primarySmallQuiet:`${s.small} ${n.xsmall} ${a.quiet} ${g.quiet}`,primarySmallQuietDisabled:`${s.small} ${n.xsmall} ${a.quiet} ${a.isDisabled}`,primaryLoading:`${s.large} ${n.medium} ${a.inProgress} ${u.primary}`,primarySmallLoading:`${s.small} ${n.xsmall} ${a.inProgress} ${u.primary}`,primarySmallQuietLoading:`${s.small} ${n.xsmall} ${a.quiet} ${a.inProgress} ${u.primary}`,primaryQuietLoading:`${s.large} ${n.medium} ${a.quiet} ${a.inProgress}`,utility:`${s.utility} ${n.medium} ${u.utility} ${g.utility}`,utilityDisabled:`${s.utility} ${n.medium} ${u.utility} ${a.isDisabled}`,utilityQuiet:`${s.large} ${n.medium} ${a.utilityQuiet} ${g.utilityQuiet}`,utilityQuietDisabled:`${s.large} ${n.medium} ${a.utilityQuiet} ${a.isDisabled}`,utilitySmall:`${s.smallUtility} ${n.xsmall} ${u.utility} ${g.utility}`,utilitySmallDisabled:`${s.smallUtility} ${n.xsmall} ${u.utility} ${a.isDisabled}`,utilitySmallQuiet:`${s.smallUtility} ${n.xsmall} ${a.utilityQuiet} ${g.utilityQuiet}`,utilitySmallQuietDisabled:`${s.smallUtility} ${n.xsmall} ${a.utilityQuiet} ${a.isDisabled}`,utilityLoading:`${s.large} ${n.medium} ${u.utility} ${a.inProgress}`,utilitySmallLoading:`${s.smallUtility} ${n.xsmall} ${u.utility} ${a.inProgress}`,utilityQuietLoading:`${s.large} ${n.medium} ${a.inProgress} ${a.utilityQuiet}`,utilitySmallQuietLoading:`${s.smallUtility} ${n.xsmall} ${a.inProgress} ${a.utilityQuiet}`,negative:`${s.large} ${n.medium} ${u.negative} ${g.destructive}`,negativeDisabled:`${s.large} ${n.medium} ${u.negative} ${a.isDisabled}`,negativeQuiet:`${s.large} ${n.medium} ${a.negativeQuiet} ${g.negativeQuiet}`,negativeQuietDisabled:`${s.large} ${n.medium} ${a.negativeQuiet}${a.isDisabled}`,negativeSmall:`${s.small} ${n.xsmall} ${u.negative} ${g.destructive}`,negativeSmallDisabled:`${s.small} ${n.xsmall} ${u.negative} ${a.isDisabled}`,negativeSmallQuiet:`${s.small} ${n.xsmall} ${a.negativeQuiet} ${g.negativeQuiet}`,negativeSmallQuietDisabled:`${s.small} ${n.xsmall} ${a.negativeQuiet} ${a.isDisabled}`,negativeLoading:`${s.large} ${n.medium} ${u.negative} ${a.inProgress}`,negativeSmallLoading:`${s.small} ${n.xsmall} ${a.inProgress} ${u.negative}`,negativeQuietLoading:`${s.large} ${n.medium} ${a.negativeQuiet} ${u.negative} ${a.inProgress}`,negativeSmallQuietLoading:`${s.small} ${n.xsmall} ${a.negativeQuiet} ${a.inProgress}`,pill:`${s.pill} ${n.medium} ${u.pill} ${g.pill}`,pillSmall:`${s.pillSmall} ${n.xsmall} ${u.pill} ${g.pill}`,pillLoading:`${s.pill} ${n.medium} ${u.pill} ${a.inProgress}`,pillSmallLoading:`${s.pillSmall} ${n.xsmall} ${u.pill} ${a.inProgress}`,link:`${s.link} ${n.medium} ${u.link}`,linkSmall:`${s.link} ${n.xsmall} ${u.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var fo={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:`${n.medium} ${u.pill} ${g.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 O={default:"block text-m mb-0 leading-m i-text-$color-select-text i-bg-$color-select-background i-border-$color-select-border hover:i-border-$color-select-border-hover active:i-border-$color-select-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] appearance-none pr-32 cursor-pointer caret-current",disabled:"i-bg-$color-select-background-disabled i-border-$color-select-border-disabled hover:i-border-$color-select-border-disabled! active:i-border-$color-select-border-disabled! i-text-$color-select-text-disabled pointer-events-none",invalid:"i-border-$color-select-border-negative",readOnly:"pl-0 bg-transparent border-0 pointer-events-none before:hidden",wrapper:"relative",selectWrapper:"relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",chevron:"absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon pointer-events-none cursor-pointer",chevronDisabled:"opacity-25"},A={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"},oe={helpText:"text-xs mt-4 block i-text-$color-helptext-text",helpTextValid:"i-text-$color-helptext-text-positive",helpTextInvalid:"i-text-$color-helptext-text-negative"},ye="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",mo={wrapper:ye+"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"},$o={wrapper:ye+"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 xo={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${A.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var vo={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:`${n.medium} ${u.pill} ${g.pill} justify-self-end -mr-8 ml-8`};import{classMap as wo}from"lit/directives/class-map.js";var dr=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function ke(r){return class extends r{static createProperty(e,o){let t=o;(typeof(o==null?void 0:o.attribute)=="undefined"||(o==null?void 0:o.attribute)===!0)&&(t=Object.assign({},o,{attribute:dr(e.toString())})),super.createProperty(e,t)}}}import{unsafeHTML as bo}from"lit/directives/unsafe-html.js";var Le=nr(Se(),1);var w=r=>typeof r=="string",xr=r=>typeof r=="function",Oe=new Map;function ae(r){return[...Array.isArray(r)?r:[r],"en"]}function Me(r,e,o){let t=ae(r);return U(()=>F("date",t,o),()=>new Intl.DateTimeFormat(t,o)).format(w(e)?new Date(e):e)}function te(r,e,o){let t=ae(r);return U(()=>F("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function Ee(r,e,o,i){var l=i,{offset:t=0}=l,d=xe(l,["offset"]);var h,m;let c=ae(r),p=e?U(()=>F("plural-ordinal",c),()=>new Intl.PluralRules(c,{type:"ordinal"})):U(()=>F("plural-cardinal",c),()=>new Intl.PluralRules(c,{type:"cardinal"}));return(m=(h=d[o])!=null?h:d[p.select(o-t)])!=null?m:d.other}function U(r,e){let o=r(),t=Oe.get(o);return t||(t=e(),Oe.set(o,t)),t}function F(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var Ce=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,vr=(r,e,o={})=>{e=e||r;let t=i=>w(i)?o[i]||{style:i}:i,d=(i,l)=>{let c=Object.keys(o).length?t("number"):{},p=te(e,i,c);return l.replace("#",p)};return{plural:(i,l)=>{let{offset:c=0}=l,p=Ee(e,!1,i,l);return d(i-c,p)},selectordinal:(i,l)=>{let{offset:c=0}=l,p=Ee(e,!0,i,l);return d(i-c,p)},select:(i,l)=>{var c;return(c=l[i])!=null?c:l.other},number:(i,l)=>te(e,i,t(l)),date:(i,l)=>Me(e,i,t(l)),undefined:i=>i}};function yr(r,e,o){return(t,d={})=>{let i=vr(e,o,d),l=p=>Array.isArray(p)?p.reduce((h,m)=>{if(w(m))return h+m;let[N,L,b]=m,f={};b!=null&&!w(b)?Object.keys(b).forEach(x=>{f[x]=l(b[x])}):f=b;let $=i[L](t[N],f);return $==null?h:h+$},""):p,c=l(r);return w(c)&&Ce.test(c)?(0,Le.default)(c.trim()):w(c)?c.trim():c}}var kr=Object.defineProperty,wr=(r,e,o)=>e in r?kr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,_r=(r,e,o)=>(wr(r,typeof e!="symbol"?e+"":e,o),o),ie=class{constructor(){_r(this,"_events",{})}on(e,o){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(o),()=>this.removeListener(e,o)}removeListener(e,o){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(o);~t&&this._events[e].splice(t,1)}emit(e,...o){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,o))}_hasEvent(e){return Array.isArray(this._events[e])}},Dr=Object.defineProperty,Sr=(r,e,o)=>e in r?Dr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,T=(r,e,o)=>(Sr(r,typeof e!="symbol"?e+"":e,o),o),le=class extends ie{constructor(e){super(),T(this,"_locale"),T(this,"_locales"),T(this,"_localeData"),T(this,"_messages"),T(this,"_missing"),T(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,o){this._localeData[e]==null?this._localeData[e]=o:Object.assign(this._localeData[e],o)}loadLocaleData(e,o){o!=null?this._loadLocaleData(e,o):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,o){this._messages[e]==null?this._messages[e]=o:Object.assign(this._messages[e],o)}load(e,o){o!=null?this._load(e,o):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:o,messages:t}){this._locale=e,this._locales=o||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,o){this._locale=e,this._locales=o,this.emit("change")}_(e,o={},{message:t,formats:d}={}){w(e)||(o=e.values||o,t=e.message,e=e.id);let i=!this.messages[e],l=this._missing;if(l&&i)return xr(l)?l(this._locale,e):l;i&&this.emit("missing",{id:e,locale:this._locale});let c=this.messages[e]||t||e;return w(c)&&Ce.test(c)?JSON.parse(`"${c}"`):w(c)?c:yr(c,this._locale,this._locales)(o,d)}date(e,o){return Me(this._locales||this._locale,e,o)}number(e,o){return te(this._locales||this._locale,e,o)}};function Or(r={}){return new le(r)}var Q=Or();var Te=JSON.parse('{"select.label.optional":"(optional)"}');var Pe=JSON.parse('{"select.label.optional":"(valgfritt)"}');var Ie=JSON.parse('{"select.label.optional":"(valinnainen)"}');var Er=["en","nb","fi"],Ne="en",je=r=>Er.find(e=>r===e||r.toLowerCase().includes(e))||Ne;function Lr(){if(typeof window=="undefined"){let r=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return je(r)}try{let r=document.documentElement.lang;return je(r)}catch(r){return console.warn("could not detect locale, falling back to source locale",r),Ne}}var Mr=(r,e,o,t)=>r==="nb"?o:r==="fi"?t:e,Ae=(r,e,o)=>{let t=Lr(),d=Mr(t,r,e,o);Q.load(t,d),Q.activate(t)};import{LitElement as Ur}from"lit";import{unsafeStatic as Fr,html as Rr}from"lit/static-html.js";var Cr=Object.create,Fe=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyNames,Qe=Object.getOwnPropertySymbols,Ir=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,Nr=(r,e)=>{var o={};for(var t in r)Re.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(r!=null&&Qe)for(var t of Qe(r))e.indexOf(t)<0&&jr.call(r,t)&&(o[t]=r[t]);return o},He=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Ar=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let d of Pr(e))!Re.call(r,d)&&d!==o&&Fe(r,d,{get:()=>e[d],enumerable:!(t=Tr(e,d))||t.enumerable});return r},Qr=(r,e,o)=>(o=r!=null?Cr(Ir(r)):{},Ar(e||!r||!r.__esModule?Fe(o,"default",{value:r,enumerable:!0}):o,r)),qr=He(r=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.errorMessages=r.ErrorType=void 0;var e;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(e=r.ErrorType||(r.ErrorType={})),r.errorMessages=new Map([[e.MalformedUnicode,"malformed Unicode character escape sequence"],[e.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[e.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[e.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[e.EndOfString,"malformed escape sequence at end of string"]])}),Br=He(r=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unraw=r.errorMessages=r.ErrorType=void 0;var e=qr();Object.defineProperty(r,"ErrorType",{enumerable:!0,get:function(){return e.ErrorType}}),Object.defineProperty(r,"errorMessages",{enumerable:!0,get:function(){return e.errorMessages}});function o(b){return b.match(/[^a-f0-9]/i)?NaN:parseInt(b,16)}function t(b,f,$){let x=o(b);if(Number.isNaN(x)||$!==void 0&&$!==b.length)throw new SyntaxError(e.errorMessages.get(f));return x}function d(b){let f=t(b,e.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(f)}function i(b,f){let $=t(b,e.ErrorType.MalformedUnicode,4);if(f!==void 0){let x=t(f,e.ErrorType.MalformedUnicode,4);return String.fromCharCode($,x)}return String.fromCharCode($)}function l(b){return b.charAt(0)==="{"&&b.charAt(b.length-1)==="}"}function c(b){if(!l(b))throw new SyntaxError(e.errorMessages.get(e.ErrorType.MalformedUnicode));let f=b.slice(1,-1),$=t(f,e.ErrorType.MalformedUnicode);try{return String.fromCodePoint($)}catch(x){throw x instanceof RangeError?new SyntaxError(e.errorMessages.get(e.ErrorType.CodePointLimit)):x}}function p(b,f=!1){if(f)throw new SyntaxError(e.errorMessages.get(e.ErrorType.OctalDeprecation));let $=parseInt(b,8);return String.fromCharCode($)}var h=new Map([["b","\b"],["f","\f"],["n",`
3
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function m(b){return h.get(b)||b}var N=/\\(?:(\\)|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 L(b,f=!1){return b.replace(N,function($,x,ue,pe,ge,Ye,he,Z,fe){if(x!==void 0)return"\\";if(ue!==void 0)return d(ue);if(pe!==void 0)return c(pe);if(ge!==void 0)return i(ge,Ye);if(he!==void 0)return i(he);if(Z==="0")return"\0";if(Z!==void 0)return p(Z,!f);if(fe!==void 0)return m(fe);throw new SyntaxError(e.errorMessages.get(e.ErrorType.EndOfString))})}r.unraw=L,r.default=L}),Hr=Qr(Br(),1),_=r=>typeof r=="string",zr=r=>typeof r=="function",qe=new Map;function ce(r){return[...Array.isArray(r)?r:[r],"en"]}function ze(r,e,o){let t=ce(r);return R(()=>H("date",t,o),()=>new Intl.DateTimeFormat(t,o)).format(_(e)?new Date(e):e)}function ne(r,e,o){let t=ce(r);return R(()=>H("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function Be(r,e,o,t){var d=t,{offset:i=0}=d,l=Nr(d,["offset"]),c,p;let h=ce(r),m=e?R(()=>H("plural-ordinal",h),()=>new Intl.PluralRules(h,{type:"ordinal"})):R(()=>H("plural-cardinal",h),()=>new Intl.PluralRules(h,{type:"cardinal"}));return(p=(c=l[o])!=null?c:l[m.select(o-i)])!=null?p:l.other}function R(r,e){let o=r(),t=qe.get(o);return t||(t=e(),qe.set(o,t)),t}function H(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var Ve=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Vr=(r,e,o={})=>{e=e||r;let t=i=>_(i)?o[i]||{style:i}:i,d=(i,l)=>{let c=Object.keys(o).length?t("number"):{},p=ne(e,i,c);return l.replace("#",p)};return{plural:(i,l)=>{let{offset:c=0}=l,p=Be(e,!1,i,l);return d(i-c,p)},selectordinal:(i,l)=>{let{offset:c=0}=l,p=Be(e,!0,i,l);return d(i-c,p)},select:(i,l)=>{var c;return(c=l[i])!=null?c:l.other},number:(i,l)=>ne(e,i,t(l)),date:(i,l)=>ze(e,i,t(l)),undefined:i=>i}};function Jr(r,e,o){return(t,d={})=>{let i=Vr(e,o,d),l=p=>Array.isArray(p)?p.reduce((h,m)=>{if(_(m))return h+m;let[N,L,b]=m,f={};b!=null&&!_(b)?Object.keys(b).forEach(x=>{f[x]=l(b[x])}):f=b;let $=i[L](t[N],f);return $==null?h:h+$},""):p,c=l(r);return _(c)&&Ve.test(c)?(0,Hr.default)(c.trim()):_(c)?c.trim():c}}var Wr=Object.defineProperty,Gr=(r,e,o)=>e in r?Wr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,Kr=(r,e,o)=>(Gr(r,typeof e!="symbol"?e+"":e,o),o),Xr=class{constructor(){Kr(this,"_events",{})}on(r,e){return this._hasEvent(r)||(this._events[r]=[]),this._events[r].push(e),()=>this.removeListener(r,e)}removeListener(r,e){if(!this._hasEvent(r))return;let o=this._events[r].indexOf(e);~o&&this._events[r].splice(o,1)}emit(r,...e){this._hasEvent(r)&&this._events[r].map(o=>o.apply(this,e))}_hasEvent(r){return Array.isArray(this._events[r])}},Zr=Object.defineProperty,Yr=(r,e,o)=>e in r?Zr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,P=(r,e,o)=>(Yr(r,typeof e!="symbol"?e+"":e,o),o),eo=class extends Xr{constructor(r){super(),P(this,"_locale"),P(this,"_locales"),P(this,"_localeData"),P(this,"_messages"),P(this,"_missing"),P(this,"t",this._.bind(this)),this._messages={},this._localeData={},r.missing!=null&&(this._missing=r.missing),r.messages!=null&&this.load(r.messages),r.localeData!=null&&this.loadLocaleData(r.localeData),(r.locale!=null||r.locales!=null)&&this.activate(r.locale,r.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var r;return(r=this._messages[this._locale])!=null?r:{}}get localeData(){var r;return(r=this._localeData[this._locale])!=null?r:{}}_loadLocaleData(r,e){this._localeData[r]==null?this._localeData[r]=e:Object.assign(this._localeData[r],e)}loadLocaleData(r,e){e!=null?this._loadLocaleData(r,e):Object.keys(r).forEach(o=>this._loadLocaleData(o,r[o])),this.emit("change")}_load(r,e){this._messages[r]==null?this._messages[r]=e:Object.assign(this._messages[r],e)}load(r,e){e!=null?this._load(r,e):Object.keys(r).forEach(o=>this._load(o,r[o])),this.emit("change")}loadAndActivate({locale:r,locales:e,messages:o}){this._locale=r,this._locales=e||void 0,this._messages[this._locale]=o,this.emit("change")}activate(r,e){this._locale=r,this._locales=e,this.emit("change")}_(r,e={},{message:o,formats:t}={}){_(r)||(e=r.values||e,o=r.message,r=r.id);let d=!this.messages[r],i=this._missing;if(i&&d)return zr(i)?i(this._locale,r):i;d&&this.emit("missing",{id:r,locale:this._locale});let l=this.messages[r]||o||r;return _(l)&&Ve.test(l)?JSON.parse(`"${l}"`):_(l)?l:Jr(l,this._locale,this._locales)(e,t)}date(r,e){return ze(this._locales||this._locale,r,e)}number(r,e){return ne(this._locales||this._locale,r,e)}};function ro(r={}){return new eo(r)}var se=ro(),oo=JSON.parse('{"icon.title.chevron-down":"Nedoverpil"}'),to=JSON.parse('{"icon.title.chevron-down":"Downward arrow"}'),io=JSON.parse('{"icon.title.chevron-down":"Nuoli alasp\xE4in"}'),lo=["en","nb","fi"],Je="en",Ue=r=>lo.find(e=>r===e||r.toLowerCase().includes(e))||Je;function ao(){if(typeof window=="undefined"){let r=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ue(r)}try{let r=document.documentElement.lang;return Ue(r)}catch(r){return console.warn("could not detect locale, falling back to source locale",r),Je}}var no=(r,e,o,t)=>r==="nb"?o:r==="fi"?t:e,so=(r,e,o)=>{let t=ao(),d=no(t,r,e,o);se.load(t,d),se.activate(t)};so(to,oo,io);var co=class extends Ur{render(){let r=se.t({message:"Downward arrow",id:"icon.title.chevron-down",comment:"Title for chevron-down icon"});return Rr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${Fr(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`}};customElements.get("w-icon-chevron-down-16")||customElements.define("w-icon-chevron-down-16",co);var W,Ge,G,Ke,K,Xe,X,Ze,I,V,j,J,q=class extends ke(We){constructor(){super();S(this,W);S(this,G);S(this,K);S(this,X);S(this,I);S(this,j);Ae(Te,Pe,Ie),this._options=this.innerHTML}render(){return z`<div class="${O.wrapper}">
4
+ ${be(this.label,()=>z`<label class="${y(this,G,Ke)}" for="${y(this,I,V)}">
4
5
  ${this.label}
5
- ${Y(this.optional,()=>q`<span class="${M.optional}"
6
- >${E._({id:"select.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span
6
+ ${be(this.optional,()=>z`<span class="${A.optional}"
7
+ >${Q._({id:"select.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span
7
8
  >`)}</label
8
9
  >`)}
9
- <div class="${y.selectWrapper}">
10
+ <div class="${O.selectWrapper}">
10
11
  <select
11
- class="${$(this,N,_e)}"
12
- id="${$(this,L,B)}"
12
+ class="${y(this,W,Ge)}"
13
+ id="${y(this,I,V)}"
13
14
  ?autofocus=${this.autoFocus}
14
- aria-describedby="${Z($(this,C,j))}"
15
- aria-invalid="${Z(this.invalid)}"
16
- aria-errormessage="${Z(this.invalid&&$(this,C,j))}"
15
+ aria-describedby="${de(y(this,j,J))}"
16
+ aria-invalid="${de(this.invalid)}"
17
+ aria-errormessage="${de(this.invalid&&y(this,j,J))}"
17
18
  >
18
- ${no(this._options)}
19
+ ${bo(this._options)}
19
20
  </select>
20
- <div class="${$(this,U,Le)}">
21
+ <div class="${y(this,X,Ze)}">
21
22
  <w-icon-chevron-down-16></w-icon-chevron-down-16>
22
23
  </div>
23
24
  </div>
24
- ${Y(this.always||this.invalid,()=>q`<div id="${$(this,C,j)}" class="${$(this,H,Se)}">
25
+ ${be(this.always||this.invalid,()=>z`<div id="${y(this,j,J)}" class="${y(this,K,Xe)}">
25
26
  ${this.hint}
26
27
  </div>`)}
27
- </div>`}};N=new WeakSet,_e=function(){return _({[y.default]:!0,[y.invalid]:this.invalid})},A=new WeakSet,De=function(){return _({[M.label]:!0,[M.labelInvalid]:this.invalid})},H=new WeakSet,Se=function(){return _({[W.helpText]:!0,[W.helpTextInvalid]:this.invalid})},U=new WeakSet,Le=function(){return _({[y.chevron]:!0,[y.chevronDisabled]:this.disabled})},L=new WeakSet,B=function(){return"select_id"},C=new WeakSet,j=function(){return this.hint?`${$(this,L,B)}__hint`:void 0},z(O,"properties",{autoFocus:{type:Boolean,reflect:!0},invalid:{type:Boolean,reflect:!0},always:{type:Boolean,reflect:!0},hint:{type:String,reflect:!0},label:{type:String,reflect:!0},optional:{type:Boolean,reflect:!0},_options:{state:!0}}),z(O,"styles",[we.styles]);customElements.get("w-select")||customElements.define("w-select",O);export{O as WarpSelect};
28
+ </div>`}};W=new WeakSet,Ge=function(){return M({[O.default]:!0,[O.invalid]:this.invalid})},G=new WeakSet,Ke=function(){return M({[A.label]:!0,[A.labelInvalid]:this.invalid})},K=new WeakSet,Xe=function(){return M({[oe.helpText]:!0,[oe.helpTextInvalid]:this.invalid})},X=new WeakSet,Ze=function(){return M({[O.chevron]:!0,[O.chevronDisabled]:this.disabled})},I=new WeakSet,V=function(){return"select_id"},j=new WeakSet,J=function(){return this.hint?`${y(this,I,V)}__hint`:void 0},ee(q,"properties",{autoFocus:{type:Boolean,reflect:!0},invalid:{type:Boolean,reflect:!0},always:{type:Boolean,reflect:!0},hint:{type:String,reflect:!0},label:{type:String,reflect:!0},optional:{type:Boolean,reflect:!0},_options:{state:!0}}),ee(q,"styles",[We.styles]);customElements.get("w-select")||customElements.define("w-select",q);export{q as WarpSelect};
28
29
  //# sourceMappingURL=index.js.map