@warp-ds/elements 2.8.1 → 2.8.2-next.2
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.
- package/dist/custom-elements.json +37 -60
- package/dist/index.d.ts +3 -25
- package/dist/packages/affix/affix.js +5 -5
- package/dist/packages/affix/affix.js.map +3 -3
- package/dist/packages/alert/alert.d.ts +1 -0
- package/dist/packages/alert/alert.js +7 -7
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/alert/alert.test.js +21 -0
- package/dist/packages/attention/attention.js +9 -9
- package/dist/packages/attention/attention.js.map +3 -3
- package/dist/packages/badge/badge.js +2 -2
- package/dist/packages/badge/badge.js.map +3 -3
- package/dist/packages/badge/badge.test.js +14 -0
- package/dist/packages/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.js +7 -7
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +3 -3
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +3 -1
- package/dist/packages/button/button.js +7 -7
- package/dist/packages/button/button.js.map +3 -3
- package/dist/packages/combobox/combobox.js +2 -2
- package/dist/packages/combobox/combobox.js.map +2 -2
- package/dist/packages/combobox/combobox.test.js +5 -2
- package/dist/packages/datepicker/datepicker.js +5 -5
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- package/dist/packages/expandable/expandable.js +11 -11
- package/dist/packages/expandable/expandable.js.map +3 -3
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +3 -3
- package/dist/packages/icon/icon.test.d.ts +1 -0
- package/dist/packages/icon/icon.test.js +51 -0
- package/dist/packages/link/link.js +4 -4
- package/dist/packages/link/link.js.map +3 -3
- package/dist/packages/link/link.test.js +14 -0
- package/dist/packages/modal-header/modal-header.js +1 -1
- package/dist/packages/modal-header/modal-header.js.map +3 -3
- package/dist/packages/page-indicator/page-indicator.js +7 -7
- package/dist/packages/page-indicator/page-indicator.js.map +3 -3
- package/dist/packages/page-indicator/page-indicator.test.js +23 -0
- package/dist/packages/pagination/pagination.d.ts +4 -0
- package/dist/packages/pagination/pagination.js +14 -14
- package/dist/packages/pagination/pagination.js.map +3 -3
- package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
- package/dist/packages/pagination/pagination.test.js +18 -0
- package/dist/packages/pill/pill.js +5 -5
- package/dist/packages/pill/pill.js.map +3 -3
- package/dist/packages/radio/radio.a11y.test.js +15 -6
- package/dist/packages/radio/radio.js +2 -2
- package/dist/packages/radio/radio.js.map +2 -2
- package/dist/packages/radio/radio.test.js +7 -7
- package/dist/packages/radio-group/radio-group.js +9 -9
- package/dist/packages/radio-group/radio-group.js.map +2 -2
- package/dist/packages/radio-group/radio-group.test.js +3 -2
- package/dist/packages/select/select.js +13 -13
- package/dist/packages/select/select.js.map +3 -3
- package/dist/packages/slider/slider.test.js +41 -0
- package/dist/packages/slider-thumb/slider-thumb.js +1 -1
- package/dist/packages/slider-thumb/slider-thumb.js.map +2 -2
- package/dist/packages/step/step.d.ts +1 -0
- package/dist/packages/step/step.js +4 -4
- package/dist/packages/step/step.js.map +3 -3
- package/dist/packages/step-indicator/step-indicator.a11y.test.js +3 -1
- package/dist/packages/switch/switch.a11y.test.js +10 -6
- package/dist/packages/switch/switch.js +2 -2
- package/dist/packages/switch/switch.js.map +3 -3
- package/dist/packages/switch/switch.test.js +0 -5
- package/dist/packages/tab/tab.d.ts +2 -0
- package/dist/packages/tab/tab.js +5 -5
- package/dist/packages/tab/tab.js.map +3 -3
- package/dist/packages/tab-panel/tab-panel.d.ts +2 -1
- package/dist/packages/tab-panel/tab-panel.js +7 -3
- package/dist/packages/tab-panel/tab-panel.js.map +3 -3
- package/dist/packages/tabs/tabs.a11y.test.js +16 -7
- package/dist/packages/tabs/tabs.js +1 -1
- package/dist/packages/tabs/tabs.js.map +2 -2
- package/dist/packages/tabs/tabs.test.js +45 -1
- package/dist/packages/textfield/textfield.js +2 -2
- package/dist/packages/textfield/textfield.js.map +2 -2
- package/dist/packages/textfield/textfield.test.js +26 -0
- package/dist/packages/toast/toast.js +3 -3
- package/dist/packages/toast/toast.js.map +3 -3
- package/dist/packages/toast/toast.test.d.ts +1 -0
- package/dist/packages/toast/toast.test.js +58 -0
- package/dist/web-types.json +18 -52
- package/package.json +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var no=Object.create;var mt=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var ao=Object.getOwnPropertyNames;var so=Object.getPrototypeOf,lo=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function vo(e){return fo.get(e)||e}var wo=/\\(?:(\\)|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 Ft(e,t=!1){return e.replace(wo,function(r,o,i,a,n,s,l,d,c){if(o!==void 0)return"\\";if(i!==void 0)return mo(i);if(a!==void 0)return ho(a);if(n!==void 0)return Rt(n,s);if(l!==void 0)return Rt(l);if(d==="0")return"\0";if(d!==void 0)return bo(d,!t);if(c!==void 0)return vo(c);throw new SyntaxError(B.errorMessages.get(B.ErrorType.EndOfString))})}ae.unraw=Ft;ae.default=Ft});var ke=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce(function(r,o){return r.concat(typeof o=="string"?o:Array.isArray(o)?ke.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(i){return o[i]?i:""}):"")},[]).join(" ")};var Vt=uo(jt(),1);var de=e=>typeof e=="string",xo=e=>typeof e=="function",Nt=new Map,Qt="en";function ft(e){return[...Array.isArray(e)?e:[e],Qt]}function vt(e,t,r){let o=ft(e);r||(r="default");let i;if(typeof r=="string")switch(i={day:"numeric",month:"short",year:"numeric"},r){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric";break}else i=r;return Ne(()=>qe("date",o,r),()=>new Intl.DateTimeFormat(o,i)).format(de(t)?new Date(t):t)}function yo(e,t,r){let o;if(r||(r="default"),typeof r=="string")switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return vt(e,t,o)}function pt(e,t,r){let o=ft(e);return Ne(()=>qe("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function qt(e,t,r,{offset:o=0,...i}){var s,l;let a=ft(e),n=t?Ne(()=>qe("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):Ne(()=>qe("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return(l=(s=i[r])!=null?s:i[n.select(r-o)])!=null?l:i.other}function Ne(e,t){let r=e(),o=Nt.get(r);return o||(o=t(),Nt.set(r,o)),o}function qe(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Bt=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,It="%__lingui_octothorpe__%",ko=(e,t,r={})=>{let o=t||e,i=n=>typeof n=="object"?n:r[n],a=(n,s)=>{let l=Object.keys(r).length?i("number"):void 0,d=pt(o,n,l);return s.replace(new RegExp(It,"g"),d)};return{plural:(n,s)=>{let{offset:l=0}=s,d=qt(o,!1,n,s);return a(n-l,d)},selectordinal:(n,s)=>{let{offset:l=0}=s,d=qt(o,!0,n,s);return a(n-l,d)},select:$o,number:(n,s)=>pt(o,n,i(s)||{style:s}),date:(n,s)=>vt(o,n,i(s)||s),time:(n,s)=>yo(o,n,i(s)||s)}},$o=(e,t)=>{var r;return(r=t[e])!=null?r:t.other};function _o(e,t,r){return(o={},i)=>{let a=ko(t,r,i),n=(l,d=!1)=>Array.isArray(l)?l.reduce((c,g)=>{if(g==="#"&&d)return c+It;if(de(g))return c+g;let[f,u,b]=g,x={};u==="plural"||u==="selectordinal"||u==="select"?Object.entries(b).forEach(([_,C])=>{x[_]=n(C,u==="plural"||u==="selectordinal")}):x=b;let v;if(u){let _=a[u];v=_(o[f],x)}else v=o[f];return v==null?c:c+v},""):l,s=n(e);return de(s)&&Bt.test(s)?(0,Vt.unraw)(s):de(s)?s:s?String(s):""}}var Co=Object.defineProperty,So=(e,t,r)=>t in e?Co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Eo=(e,t,r)=>(So(e,typeof t!="symbol"?t+"":t,r),r),ht=class{constructor(){Eo(this,"_events",{})}on(t,r){var i;var o;return(i=(o=this._events)[t])!=null||(o[t]=[]),this._events[t].push(r),()=>this.removeListener(t,r)}removeListener(t,r){let o=this._getListeners(t);if(!o)return;let i=o.indexOf(r);~i&&o.splice(i,1)}emit(t,...r){let o=this._getListeners(t);o&&o.map(i=>i.apply(this,r))}_getListeners(t){let r=this._events[t];return Array.isArray(r)?r:!1}},Lo=Object.defineProperty,
|
|
1
|
+
var no=Object.create;var mt=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var ao=Object.getOwnPropertyNames;var so=Object.getPrototypeOf,lo=Object.prototype.hasOwnProperty;var Dt=e=>{throw TypeError(e)};var Ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var co=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ao(t))!lo.call(e,i)&&i!==r&&mt(e,i,{get:()=>t[i],enumerable:!(o=Lt(t,i))||o.enumerable});return e};var uo=(e,t,r)=>(r=e!=null?no(so(e)):{},co(t||!e||!e.__esModule?mt(r,"default",{value:e,enumerable:!0}):r,e));var y=(e,t,r,o)=>{for(var i=o>1?void 0:o?Lt(t,r):t,a=e.length-1,n;a>=0;a--)(n=e[a])&&(i=(o?n(t,r,i):n(i))||i);return o&&i&&mt(t,r,i),i};var zt=(e,t,r)=>t.has(e)||Dt("Cannot "+r);var At=(e,t,r)=>(zt(e,t,"read from private field"),r?r.call(e):t.get(e)),Tt=(e,t,r)=>t.has(e)?Dt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Pt=(e,t,r,o)=>(zt(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);var Mt=Ot(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.errorMessages=he.ErrorType=void 0;var $e;(function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"})($e=he.ErrorType||(he.ErrorType={}));he.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"]])});var jt=Ot(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.unraw=ae.errorMessages=ae.ErrorType=void 0;var B=Mt();Object.defineProperty(ae,"ErrorType",{enumerable:!0,get:function(){return B.ErrorType}});Object.defineProperty(ae,"errorMessages",{enumerable:!0,get:function(){return B.errorMessages}});function go(e){return!e.match(/[^a-f0-9]/i)?parseInt(e,16):NaN}function je(e,t,r){let o=go(e);if(Number.isNaN(o)||r!==void 0&&r!==e.length)throw new SyntaxError(B.errorMessages.get(t));return o}function mo(e){let t=je(e,B.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}function Rt(e,t){let r=je(e,B.ErrorType.MalformedUnicode,4);if(t!==void 0){let o=je(t,B.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,o)}return String.fromCharCode(r)}function po(e){return e.charAt(0)==="{"&&e.charAt(e.length-1)==="}"}function ho(e){if(!po(e))throw new SyntaxError(B.errorMessages.get(B.ErrorType.MalformedUnicode));let t=e.slice(1,-1),r=je(t,B.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(o){throw o instanceof RangeError?new SyntaxError(B.errorMessages.get(B.ErrorType.CodePointLimit)):o}}function bo(e,t=!1){if(t)throw new SyntaxError(B.errorMessages.get(B.ErrorType.OctalDeprecation));let r=parseInt(e,8);return String.fromCharCode(r)}var fo=new Map([["b","\b"],["f","\f"],["n",`
|
|
2
|
+
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function vo(e){return fo.get(e)||e}var wo=/\\(?:(\\)|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 Ft(e,t=!1){return e.replace(wo,function(r,o,i,a,n,s,l,d,c){if(o!==void 0)return"\\";if(i!==void 0)return mo(i);if(a!==void 0)return ho(a);if(n!==void 0)return Rt(n,s);if(l!==void 0)return Rt(l);if(d==="0")return"\0";if(d!==void 0)return bo(d,!t);if(c!==void 0)return vo(c);throw new SyntaxError(B.errorMessages.get(B.ErrorType.EndOfString))})}ae.unraw=Ft;ae.default=Ft});var ke=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce(function(r,o){return r.concat(typeof o=="string"?o:Array.isArray(o)?ke.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(i){return o[i]?i:""}):"")},[]).join(" ")};var Vt=uo(jt(),1);var de=e=>typeof e=="string",xo=e=>typeof e=="function",Nt=new Map,Qt="en";function ft(e){return[...Array.isArray(e)?e:[e],Qt]}function vt(e,t,r){let o=ft(e);r||(r="default");let i;if(typeof r=="string")switch(i={day:"numeric",month:"short",year:"numeric"},r){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric";break}else i=r;return Ne(()=>qe("date",o,r),()=>new Intl.DateTimeFormat(o,i)).format(de(t)?new Date(t):t)}function yo(e,t,r){let o;if(r||(r="default"),typeof r=="string")switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return vt(e,t,o)}function pt(e,t,r){let o=ft(e);return Ne(()=>qe("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function qt(e,t,r,{offset:o=0,...i}){var s,l;let a=ft(e),n=t?Ne(()=>qe("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):Ne(()=>qe("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return(l=(s=i[r])!=null?s:i[n.select(r-o)])!=null?l:i.other}function Ne(e,t){let r=e(),o=Nt.get(r);return o||(o=t(),Nt.set(r,o)),o}function qe(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Bt=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,It="%__lingui_octothorpe__%",ko=(e,t,r={})=>{let o=t||e,i=n=>typeof n=="object"?n:r[n],a=(n,s)=>{let l=Object.keys(r).length?i("number"):void 0,d=pt(o,n,l);return s.replace(new RegExp(It,"g"),d)};return{plural:(n,s)=>{let{offset:l=0}=s,d=qt(o,!1,n,s);return a(n-l,d)},selectordinal:(n,s)=>{let{offset:l=0}=s,d=qt(o,!0,n,s);return a(n-l,d)},select:$o,number:(n,s)=>pt(o,n,i(s)||{style:s}),date:(n,s)=>vt(o,n,i(s)||s),time:(n,s)=>yo(o,n,i(s)||s)}},$o=(e,t)=>{var r;return(r=t[e])!=null?r:t.other};function _o(e,t,r){return(o={},i)=>{let a=ko(t,r,i),n=(l,d=!1)=>Array.isArray(l)?l.reduce((c,g)=>{if(g==="#"&&d)return c+It;if(de(g))return c+g;let[f,u,b]=g,x={};u==="plural"||u==="selectordinal"||u==="select"?Object.entries(b).forEach(([_,C])=>{x[_]=n(C,u==="plural"||u==="selectordinal")}):x=b;let v;if(u){let _=a[u];v=_(o[f],x)}else v=o[f];return v==null?c:c+v},""):l,s=n(e);return de(s)&&Bt.test(s)?(0,Vt.unraw)(s):de(s)?s:s?String(s):""}}var Co=Object.defineProperty,So=(e,t,r)=>t in e?Co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Eo=(e,t,r)=>(So(e,typeof t!="symbol"?t+"":t,r),r),ht=class{constructor(){Eo(this,"_events",{})}on(t,r){var i;var o;return(i=(o=this._events)[t])!=null||(o[t]=[]),this._events[t].push(r),()=>this.removeListener(t,r)}removeListener(t,r){let o=this._getListeners(t);if(!o)return;let i=o.indexOf(r);~i&&o.splice(i,1)}emit(t,...r){let o=this._getListeners(t);o&&o.map(i=>i.apply(this,r))}_getListeners(t){let r=this._events[t];return Array.isArray(r)?r:!1}},Lo=Object.defineProperty,Do=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,be=(e,t,r)=>(Do(e,typeof t!="symbol"?t+"":t,r),r),bt=class extends ht{constructor(t){var r;super(),be(this,"_locale",""),be(this,"_locales"),be(this,"_localeData",{}),be(this,"_messages",{}),be(this,"_missing"),be(this,"_messageCompiler"),be(this,"t",this._.bind(this)),t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(typeof t.locale=="string"||t.locales)&&this.activate((r=t.locale)!=null?r:Qt,t.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var t;return(t=this._messages[this._locale])!=null?t:{}}get localeData(){var t;return(t=this._localeData[this._locale])!=null?t:{}}_loadLocaleData(t,r){let o=this._localeData[t];o?Object.assign(o,r):this._localeData[t]=r}setMessagesCompiler(t){return this._messageCompiler=t,this}loadLocaleData(t,r){typeof t=="string"?this._loadLocaleData(t,r):Object.keys(t).forEach(o=>this._loadLocaleData(o,t[o])),this.emit("change")}_load(t,r){let o=this._messages[t];o?Object.assign(o,r):this._messages[t]=r}load(t,r){typeof t=="string"&&typeof r=="object"?this._load(t,r):Object.entries(t).forEach(([o,i])=>this._load(o,i)),this.emit("change")}loadAndActivate({locale:t,locales:r,messages:o}){this._locale=t,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(t,r){this._locale=t,this._locales=r,this.emit("change")}_(t,r,o){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let i=o==null?void 0:o.message;t||(t=""),de(t)||(r=t.values||r,i=t.message,t=t.id);let a=this.messages[t],n=a===void 0,s=this._missing;if(s&&n)return xo(s)?s(this._locale,t):s;n&&this.emit("missing",{id:t,locale:this._locale});let l=a||i||t;return de(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
|
|
3
3
|
|
|
4
4
|
> ${l}
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
|
|
|
7
7
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|
8
8
|
|
|
9
9
|
Please compile your catalog first.
|
|
10
|
-
`)),de(l)&&Bt.test(l)?JSON.parse(`"${l}"`):de(l)?l:_o(l,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(t,r){return vt(this._locales||this._locale,t,r)}number(t,r){return pt(this._locales||this._locale,t,r)}};function Do(e={}){return new bt(e)}var P=Do();var Yt=["top","right","bottom","left"];var se=Math.min,U=Math.max,De=Math.round;var re=e=>({x:e,y:e}),Oo={left:"right",right:"left",bottom:"top",top:"bottom"},Ao={start:"end",end:"start"};function Qe(e,t,r){return U(e,se(t,r))}function ue(e,t){return typeof e=="function"?e(t):e}function le(e){return e.split("-")[0]}function fe(e){return e.split("-")[1]}function wt(e){return e==="x"?"y":"x"}function Be(e){return e==="y"?"height":"width"}var To=new Set(["top","bottom"]);function ie(e){return To.has(le(e))?"y":"x"}function Ie(e){return wt(ie(e))}function Xt(e,t,r){r===void 0&&(r=!1);let o=fe(e),i=Ie(e),a=Be(i),n=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=ze(n)),[n,ze(n)]}function Zt(e){let t=ze(e);return[Ve(e),t,Ve(t)]}function Ve(e){return e.replace(/start|end/g,t=>Ao[t])}var Ht=["left","right"],Ut=["right","left"],Po=["top","bottom"],Mo=["bottom","top"];function Ro(e,t,r){switch(e){case"top":case"bottom":return r?t?Ut:Ht:t?Ht:Ut;case"left":case"right":return t?Po:Mo;default:return[]}}function Gt(e,t,r,o){let i=fe(e),a=Ro(le(e),r==="start",o);return i&&(a=a.map(n=>n+"-"+i),t&&(a=a.concat(a.map(Ve)))),a}function ze(e){return e.replace(/left|right|bottom|top/g,t=>Oo[t])}function Fo(e){return{top:0,right:0,bottom:0,left:0,...e}}function xt(e){return typeof e!="number"?Fo(e):{top:e,right:e,bottom:e,left:e}}function ve(e){let{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function Jt(e,t,r){let{reference:o,floating:i}=e,a=ie(t),n=Ie(t),s=Be(n),l=le(t),d=a==="y",c=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2,u;switch(l){case"top":u={x:c,y:o.y-i.height};break;case"bottom":u={x:c,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:g};break;case"left":u={x:o.x-i.width,y:g};break;default:u={x:o.x,y:o.y}}switch(fe(t)){case"start":u[n]-=f*(r&&d?-1:1);break;case"end":u[n]+=f*(r&&d?-1:1);break}return u}var er=async(e,t,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:n}=r,s=a.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),d=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:g}=Jt(d,o,l),f=o,u={},b=0;for(let x=0;x<s.length;x++){let{name:v,fn:_}=s[x],{x:C,y:E,data:q,reset:O}=await _({x:c,y:g,initialPlacement:o,placement:f,strategy:i,middlewareData:u,rects:d,platform:n,elements:{reference:e,floating:t}});c=C!=null?C:c,g=E!=null?E:g,u={...u,[v]:{...u[v],...q}},O&&b<=50&&(b++,typeof O=="object"&&(O.placement&&(f=O.placement),O.rects&&(d=O.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:c,y:g}=Jt(d,f,l)),x=-1)}return{x:c,y:g,placement:f,strategy:i,middlewareData:u}};async function _e(e,t){var r;t===void 0&&(t={});let{x:o,y:i,platform:a,rects:n,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:g="floating",altBoundary:f=!1,padding:u=0}=ue(t,e),b=xt(u),v=s[f?g==="floating"?"reference":"floating":g],_=ve(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),C=g==="floating"?{x:o,y:i,width:n.floating.width,height:n.floating.height}:n.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),q=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},O=ve(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:E,strategy:l}):C);return{top:(_.top-O.top+b.top)/q.y,bottom:(O.bottom-_.bottom+b.bottom)/q.y,left:(_.left-O.left+b.left)/q.x,right:(O.right-_.right+b.right)/q.x}}var tr=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:i,rects:a,platform:n,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=ue(e,t)||{};if(d==null)return{};let g=xt(c),f={x:r,y:o},u=Ie(i),b=Be(u),x=await n.getDimensions(d),v=u==="y",_=v?"top":"left",C=v?"bottom":"right",E=v?"clientHeight":"clientWidth",q=a.reference[b]+a.reference[u]-f[u]-a.floating[b],O=f[u]-a.reference[u],w=await(n.getOffsetParent==null?void 0:n.getOffsetParent(d)),k=w?w[E]:0;(!k||!await(n.isElement==null?void 0:n.isElement(w)))&&(k=s.floating[E]||a.floating[b]);let L=q/2-O/2,D=k/2-x[b]/2-1,A=se(g[_],D),I=se(g[C],D),Q=A,H=k-x[b]-I,F=k/2-x[b]/2+L,M=Qe(Q,F,H),X=!l.arrow&&fe(i)!=null&&F!==M&&a.reference[b]/2-(F<Q?A:I)-x[b]/2<0,j=X?F<Q?F-Q:F-H:0;return{[u]:f[u]+j,data:{[u]:M,centerOffset:F-M-j,...X&&{alignmentOffset:j}},reset:X}}});var rr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:i,middlewareData:a,rects:n,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...v}=ue(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let _=le(i),C=ie(s),E=le(s)===s,q=await(l.isRTL==null?void 0:l.isRTL(d.floating)),O=f||(E||!x?[ze(s)]:Zt(s)),w=b!=="none";!f&&w&&O.push(...Gt(s,x,b,q));let k=[s,...O],L=await _e(t,v),D=[],A=((o=a.flip)==null?void 0:o.overflows)||[];if(c&&D.push(L[_]),g){let F=Xt(i,n,q);D.push(L[F[0]],L[F[1]])}if(A=[...A,{placement:i,overflows:D}],!D.every(F=>F<=0)){var I,Q;let F=(((I=a.flip)==null?void 0:I.index)||0)+1,M=k[F];if(M&&(!(g==="alignment"?C!==ie(M):!1)||A.every(W=>ie(W.placement)===C?W.overflows[0]>0:!0)))return{data:{index:F,overflows:A},reset:{placement:M}};let X=(Q=A.filter(j=>j.overflows[0]<=0).sort((j,W)=>j.overflows[1]-W.overflows[1])[0])==null?void 0:Q.placement;if(!X)switch(u){case"bestFit":{var H;let j=(H=A.filter(W=>{if(w){let K=ie(W.placement);return K===C||K==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(K=>K>0).reduce((K,io)=>K+io,0)]).sort((W,K)=>W[1]-K[1])[0])==null?void 0:H[0];j&&(X=j);break}case"initialPlacement":X=s;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function Wt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kt(e){return Yt.some(t=>e[t]>=0)}var or=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...i}=ue(e,t);switch(o){case"referenceHidden":{let a=await _e(t,{...i,elementContext:"reference"}),n=Wt(a,r.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Kt(n)}}}case"escaped":{let a=await _e(t,{...i,altBoundary:!0}),n=Wt(a,r.floating);return{data:{escapedOffsets:n,escaped:Kt(n)}}}default:return{}}}}};var jo=new Set(["left","top"]);async function No(e,t){let{placement:r,platform:o,elements:i}=e,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),n=le(r),s=fe(r),l=ie(r)==="y",d=jo.has(n)?-1:1,c=a&&l?-1:1,g=ue(t,e),{mainAxis:f,crossAxis:u,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&typeof b=="number"&&(u=s==="end"?b*-1:b),l?{x:u*c,y:f*d}:{x:f*d,y:u*c}}var ir=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:i,y:a,placement:n,middlewareData:s}=t,l=await No(t,e);return n===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:n}}}}},nr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:s={fn:v=>{let{x:_,y:C}=v;return{x:_,y:C}}},...l}=ue(e,t),d={x:r,y:o},c=await _e(t,l),g=ie(le(i)),f=wt(g),u=d[f],b=d[g];if(a){let v=f==="y"?"top":"left",_=f==="y"?"bottom":"right",C=u+c[v],E=u-c[_];u=Qe(C,u,E)}if(n){let v=g==="y"?"top":"left",_=g==="y"?"bottom":"right",C=b+c[v],E=b-c[_];b=Qe(C,b,E)}let x=s.fn({...t,[f]:u,[g]:b});return{...x,data:{x:x.x-r,y:x.y-o,enabled:{[f]:a,[g]:n}}}}}};var ar=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;let{placement:i,rects:a,platform:n,elements:s}=t,{apply:l=()=>{},...d}=ue(e,t),c=await _e(t,d),g=le(i),f=fe(i),u=ie(i)==="y",{width:b,height:x}=a.floating,v,_;g==="top"||g==="bottom"?(v=g,_=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(_=g,v=f==="end"?"top":"bottom");let C=x-c.top-c.bottom,E=b-c.left-c.right,q=se(x-c[v],C),O=se(b-c[_],E),w=!t.middlewareData.shift,k=q,L=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(L=E),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(k=C),w&&!f){let A=U(c.left,0),I=U(c.right,0),Q=U(c.top,0),H=U(c.bottom,0);u?L=b-2*(A!==0||I!==0?A+I:U(c.left,c.right)):k=x-2*(Q!==0||H!==0?Q+H:U(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:k});let D=await n.getDimensions(s.floating);return b!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}};function Ue(){return typeof window!="undefined"}function we(e){return lr(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ne(e){var t;return(t=(lr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lr(e){return Ue()?e instanceof Node||e instanceof Y(e).Node:!1}function ee(e){return Ue()?e instanceof Element||e instanceof Y(e).Element:!1}function oe(e){return Ue()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function sr(e){return!Ue()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}var qo=new Set(["inline","contents"]);function Ce(e){let{overflow:t,overflowX:r,overflowY:o,display:i}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!qo.has(i)}var Vo=new Set(["table","td","th"]);function cr(e){return Vo.has(we(e))}var Qo=[":popover-open",":modal"];function Oe(e){return Qo.some(t=>{try{return e.matches(t)}catch(r){return!1}})}var Bo=["transform","translate","scale","rotate","perspective"],Io=["transform","translate","scale","rotate","perspective","filter"],Ho=["paint","layout","strict","content"];function Ye(e){let t=Xe(),r=ee(e)?te(e):e;return Bo.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Io.some(o=>(r.willChange||"").includes(o))||Ho.some(o=>(r.contain||"").includes(o))}function dr(e){let t=ce(e);for(;oe(t)&&!xe(t);){if(Ye(t))return t;if(Oe(t))return null;t=ce(t)}return null}function Xe(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Uo=new Set(["html","body","#document"]);function xe(e){return Uo.has(we(e))}function te(e){return Y(e).getComputedStyle(e)}function Ae(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ce(e){if(we(e)==="html")return e;let t=e.assignedSlot||e.parentNode||sr(e)&&e.host||ne(e);return sr(t)?t.host:t}function ur(e){let t=ce(e);return xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&Ce(t)?t:ur(t)}function He(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ur(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),n=Y(i);if(a){let s=Ze(n);return t.concat(n,n.visualViewport||[],Ce(i)?i:[],s&&r?He(s):[])}return t.concat(i,He(i,[],r))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hr(e){let t=te(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=oe(e),a=i?e.offsetWidth:r,n=i?e.offsetHeight:o,s=De(r)!==a||De(o)!==n;return s&&(r=a,o=n),{width:r,height:o,$:s}}function br(e){return ee(e)?e:e.contextElement}function Se(e){let t=br(e);if(!oe(t))return re(1);let r=t.getBoundingClientRect(),{width:o,height:i,$:a}=hr(t),n=(a?De(r.width):r.width)/o,s=(a?De(r.height):r.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}var Yo=re(0);function fr(e){let t=Y(e);return!Xe()||!t.visualViewport?Yo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xo(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Y(e)?!1:t}function Te(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),a=br(e),n=re(1);t&&(o?ee(o)&&(n=Se(o)):n=Se(e));let s=Xo(a,r,o)?fr(a):re(0),l=(i.left+s.x)/n.x,d=(i.top+s.y)/n.y,c=i.width/n.x,g=i.height/n.y;if(a){let f=Y(a),u=o&&ee(o)?Y(o):o,b=f,x=Ze(b);for(;x&&o&&u!==b;){let v=Se(x),_=x.getBoundingClientRect(),C=te(x),E=_.left+(x.clientLeft+parseFloat(C.paddingLeft))*v.x,q=_.top+(x.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,d*=v.y,c*=v.x,g*=v.y,l+=E,d+=q,b=Y(x),x=Ze(b)}}return ve({width:c,height:g,x:l,y:d})}function Ge(e,t){let r=Ae(e).scrollLeft;return t?t.left+r:Te(ne(e)).left+r}function vr(e,t){let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Ge(e,r),i=r.top+t.scrollTop;return{x:o,y:i}}function Zo(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e,a=i==="fixed",n=ne(o),s=t?Oe(t.floating):!1;if(o===n||s&&a)return r;let l={scrollLeft:0,scrollTop:0},d=re(1),c=re(0),g=oe(o);if((g||!g&&!a)&&((we(o)!=="body"||Ce(n))&&(l=Ae(o)),oe(o))){let u=Te(o);d=Se(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}let f=n&&!g&&!a?vr(n,l):re(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+f.x,y:r.y*d.y-l.scrollTop*d.y+c.y+f.y}}function Go(e){return Array.from(e.getClientRects())}function Jo(e){let t=ne(e),r=Ae(e),o=e.ownerDocument.body,i=U(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=U(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),n=-r.scrollLeft+Ge(e),s=-r.scrollTop;return te(o).direction==="rtl"&&(n+=U(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:n,y:s}}var gr=25;function Wo(e,t){let r=Y(e),o=ne(e),i=r.visualViewport,a=o.clientWidth,n=o.clientHeight,s=0,l=0;if(i){a=i.width,n=i.height;let c=Xe();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}let d=Ge(o);if(d<=0){let c=o.ownerDocument,g=c.body,f=getComputedStyle(g),u=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-u);b<=gr&&(a-=b)}else d<=gr&&(a+=d);return{width:a,height:n,x:s,y:l}}var Ko=new Set(["absolute","fixed"]);function ei(e,t){let r=Te(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=oe(e)?Se(e):re(1),n=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,d=o*a.y;return{width:n,height:s,x:l,y:d}}function mr(e,t,r){let o;if(t==="viewport")o=Wo(e,r);else if(t==="document")o=Jo(ne(e));else if(ee(t))o=ei(t,r);else{let i=fr(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ve(o)}function wr(e,t){let r=ce(e);return r===t||!ee(r)||xe(r)?!1:te(r).position==="fixed"||wr(r,t)}function ti(e,t){let r=t.get(e);if(r)return r;let o=He(e,[],!1).filter(s=>ee(s)&&we(s)!=="body"),i=null,a=te(e).position==="fixed",n=a?ce(e):e;for(;ee(n)&&!xe(n);){let s=te(n),l=Ye(n);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&Ko.has(i.position)||Ce(n)&&!l&&wr(e,n))?o=o.filter(c=>c!==n):i=s,n=ce(n)}return t.set(e,o),o}function ri(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e,n=[...r==="clippingAncestors"?Oe(t)?[]:ti(t,this._c):[].concat(r),o],s=n[0],l=n.reduce((d,c)=>{let g=mr(t,c,i);return d.top=U(g.top,d.top),d.right=se(g.right,d.right),d.bottom=se(g.bottom,d.bottom),d.left=U(g.left,d.left),d},mr(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function oi(e){let{width:t,height:r}=hr(e);return{width:t,height:r}}function ii(e,t,r){let o=oe(t),i=ne(t),a=r==="fixed",n=Te(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=re(0);function d(){l.x=Ge(i)}if(o||!o&&!a)if((we(t)!=="body"||Ce(i))&&(s=Ae(t)),o){let u=Te(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&d();a&&!o&&i&&d();let c=i&&!o&&!a?vr(i,s):re(0),g=n.left+s.scrollLeft-l.x-c.x,f=n.top+s.scrollTop-l.y-c.y;return{x:g,y:f,width:n.width,height:n.height}}function yt(e){return te(e).position==="static"}function pr(e,t){if(!oe(e)||te(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ne(e)===r&&(r=r.ownerDocument.body),r}function xr(e,t){let r=Y(e);if(Oe(e))return r;if(!oe(e)){let i=ce(e);for(;i&&!xe(i);){if(ee(i)&&!yt(i))return i;i=ce(i)}return r}let o=pr(e,t);for(;o&&cr(o)&&yt(o);)o=pr(o,t);return o&&xe(o)&&yt(o)&&!Ye(o)?r:o||dr(e)||r}var ni=async function(e){let t=this.getOffsetParent||xr,r=this.getDimensions,o=await r(e.floating);return{reference:ii(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ai(e){return te(e).direction==="rtl"}var si={convertOffsetParentRelativeRectToViewportRelativeRect:Zo,getDocumentElement:ne,getClippingRect:ri,getOffsetParent:xr,getElementRects:ni,getClientRects:Go,getDimensions:oi,getScale:Se,isElement:ee,isRTL:ai};var yr=ir;var kr=nr,$r=rr,_r=ar,Cr=or,Sr=tr;var Er=(e,t,r)=>{let o=new Map,i={platform:si,...r},a={...i.platform,_c:o};return er(e,t,{...i,platform:a})};var We="top-start",Ke="top",et="top-end",tt="right-start",rt="right",ot="right-end",it="bottom-start",Pe="bottom",nt="bottom-end",at="left-start",st="left",lt="left-end",kt=[We,Ke,et,tt,rt,ot,it,Pe,nt,at,st,lt],ye={[We]:it,[Ke]:Pe,[et]:nt,[it]:We,[Pe]:Ke,[nt]:et,[at]:tt,[st]:rt,[lt]:ot,[tt]:at,[rt]:st,[ot]:lt},li={[at]:-45,[st]:-45,[lt]:-45,[We]:45,[Ke]:45,[et]:45,[tt]:135,[rt]:135,[ot]:135,[it]:-135,[Pe]:-135,[nt]:-135},$t=e=>{let t;return/-/.test(e)?t=e.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(""):t=e.charAt(0).toUpperCase()+e.slice(1),t},ci=e=>e.split("-")[0],di=e=>ye[ci(e)],zr=e=>ye[e],ui=e=>li[zr(e)],gi=(e,t,r)=>{Object.assign(e==null?void 0:e.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${$t(di(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})},Lr=8,Je=24;async function _t(e){var o,i,a;if(!(e!=null&&e.isShowing)||(e!=null&&e.waitForDOM&&await(e==null?void 0:e.waitForDOM()),!(e!=null&&e.targetEl)||!(e!=null&&e.attentionEl)))return;let t=e==null?void 0:e.targetEl,r=e.attentionEl;return Er(t,r,{placement:(o=e==null?void 0:e.directionName)!=null?o:Pe,middleware:[yr({mainAxis:(i=e==null?void 0:e.distance)!=null?i:8,crossAxis:(a=e==null?void 0:e.skidding)!=null?a:0}),(e==null?void 0:e.flip)&&$r({crossAxis:e==null?void 0:e.crossAxis,fallbackPlacements:e==null?void 0:e.fallbackPlacements}),(e==null?void 0:e.flip)&&kr({crossAxis:!0}),!(e!=null&&e.noArrow)&&(e==null?void 0:e.arrowEl)&&Sr({element:e==null?void 0:e.arrowEl}),Cr(),_r({apply(){Object.assign(r.style,{paddingRight:`${Lr}px`,paddingLeft:`${Lr}px`})}})]}).then(({x:n,y:s,middlewareData:l,placement:d})=>{if(e.actualDirection=d,e!=null&&e.isCallout||Object.assign(r.style,{left:`${n}px`,top:`${s}px`}),l!=null&&l.hide&&!(e!=null&&e.isCallout)){let{referenceHidden:c}=l.hide;Object.assign(r.style,{visibility:c?"hidden":""})}if(l!=null&&l.arrow&&(e!=null&&e.arrowEl)){let c=e==null?void 0:e.arrowEl,{x:g,y:f}=l.arrow,u=window.getComputedStyle(r).direction==="rtl",b=zr(d).split("-")[1],x="",v="",_="",C="";if(b==="start"){let E=typeof g=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"";x=typeof f=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"",v=u?E:"",C=u?"":E}else if(b==="end"){let E=typeof g=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"";v=u?"":E,C=u?E:"",_=typeof f=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:""}else C=typeof g=="number"?`${g}px`:"",x=typeof f=="number"?`${f}px`:"";Object.assign(c.style,{top:x,right:v,bottom:_,left:C}),gi(c,ui(d),d)}}),e}import{css as Oi,html as Le,LitElement as Ai,nothing as oo}from"lit";import{property as J}from"lit/decorators.js";import{ifDefined as Ti}from"lit/directives/if-defined.js";var mi=["en","nb","fi","da","sv"],Ct="en",ct=e=>mi.find(t=>e===t||e.toLowerCase().includes(t))||Ct;function dt(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ct(e)}try{let e=Or(document);if(e)return ct(e);let t=fi();if(t)return ct(t);let r=Or(Tr());return r?ct(r):Ct}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Ct}}var ut=(e,t,r,o,i)=>{P.load("en",e),P.load("nb",t),P.load("fi",r),P.load("da",o),P.load("sv",i);let a=dt();P.activate(a),Ar(),hi()},pi="warp-i18n-change";function Ar(){typeof window!="undefined"&&window.dispatchEvent(new Event(pi))}var Dr=!1;function hi(){if(Dr||typeof window=="undefined"||!(document!=null&&document.documentElement))return;Dr=!0;let e=()=>{let i=dt();P.locale!==i&&(P.activate(i),Ar())},t=new MutationObserver(i=>{for(let a of i)if(a.type==="attributes"&&a.attributeName==="lang"){e();break}});t.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});let r=Tr();r&&r.documentElement&&r!==document&&t.observe(r.documentElement,{attributes:!0,attributeFilter:["lang"]});let o=bi();o&&t.observe(o,{attributes:!0,attributeFilter:["lang"]})}function Tr(){var e,t;try{return(t=(e=window.parent)==null?void 0:e.document)!=null?t:null}catch(r){return null}}function Or(e){var t,r;try{return(r=(t=e==null?void 0:e.documentElement)==null?void 0:t.lang)!=null?r:""}catch(o){return""}}function bi(){var e;try{return(e=window.frameElement)!=null?e:null}catch(t){return null}}function fi(){var e,t,r;try{return(r=(t=(e=window.frameElement)==null?void 0:e.getAttribute)==null?void 0:t.call(e,"lang"))!=null?r:""}catch(o){return""}}import{css as Pr}from"lit";var Ee=Pr`
|
|
10
|
+
`)),de(l)&&Bt.test(l)?JSON.parse(`"${l}"`):de(l)?l:_o(l,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(t,r){return vt(this._locales||this._locale,t,r)}number(t,r){return pt(this._locales||this._locale,t,r)}};function Oo(e={}){return new bt(e)}var P=Oo();var Yt=["top","right","bottom","left"];var se=Math.min,U=Math.max,Oe=Math.round;var re=e=>({x:e,y:e}),zo={left:"right",right:"left",bottom:"top",top:"bottom"},Ao={start:"end",end:"start"};function Qe(e,t,r){return U(e,se(t,r))}function ue(e,t){return typeof e=="function"?e(t):e}function le(e){return e.split("-")[0]}function fe(e){return e.split("-")[1]}function wt(e){return e==="x"?"y":"x"}function Be(e){return e==="y"?"height":"width"}var To=new Set(["top","bottom"]);function ie(e){return To.has(le(e))?"y":"x"}function Ie(e){return wt(ie(e))}function Xt(e,t,r){r===void 0&&(r=!1);let o=fe(e),i=Ie(e),a=Be(i),n=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=De(n)),[n,De(n)]}function Zt(e){let t=De(e);return[Ve(e),t,Ve(t)]}function Ve(e){return e.replace(/start|end/g,t=>Ao[t])}var Ht=["left","right"],Ut=["right","left"],Po=["top","bottom"],Mo=["bottom","top"];function Ro(e,t,r){switch(e){case"top":case"bottom":return r?t?Ut:Ht:t?Ht:Ut;case"left":case"right":return t?Po:Mo;default:return[]}}function Gt(e,t,r,o){let i=fe(e),a=Ro(le(e),r==="start",o);return i&&(a=a.map(n=>n+"-"+i),t&&(a=a.concat(a.map(Ve)))),a}function De(e){return e.replace(/left|right|bottom|top/g,t=>zo[t])}function Fo(e){return{top:0,right:0,bottom:0,left:0,...e}}function xt(e){return typeof e!="number"?Fo(e):{top:e,right:e,bottom:e,left:e}}function ve(e){let{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function Jt(e,t,r){let{reference:o,floating:i}=e,a=ie(t),n=Ie(t),s=Be(n),l=le(t),d=a==="y",c=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2,u;switch(l){case"top":u={x:c,y:o.y-i.height};break;case"bottom":u={x:c,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:g};break;case"left":u={x:o.x-i.width,y:g};break;default:u={x:o.x,y:o.y}}switch(fe(t)){case"start":u[n]-=f*(r&&d?-1:1);break;case"end":u[n]+=f*(r&&d?-1:1);break}return u}var er=async(e,t,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:n}=r,s=a.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),d=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:g}=Jt(d,o,l),f=o,u={},b=0;for(let x=0;x<s.length;x++){let{name:v,fn:_}=s[x],{x:C,y:E,data:q,reset:z}=await _({x:c,y:g,initialPlacement:o,placement:f,strategy:i,middlewareData:u,rects:d,platform:n,elements:{reference:e,floating:t}});c=C!=null?C:c,g=E!=null?E:g,u={...u,[v]:{...u[v],...q}},z&&b<=50&&(b++,typeof z=="object"&&(z.placement&&(f=z.placement),z.rects&&(d=z.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:i}):z.rects),{x:c,y:g}=Jt(d,f,l)),x=-1)}return{x:c,y:g,placement:f,strategy:i,middlewareData:u}};async function _e(e,t){var r;t===void 0&&(t={});let{x:o,y:i,platform:a,rects:n,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:g="floating",altBoundary:f=!1,padding:u=0}=ue(t,e),b=xt(u),v=s[f?g==="floating"?"reference":"floating":g],_=ve(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),C=g==="floating"?{x:o,y:i,width:n.floating.width,height:n.floating.height}:n.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),q=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},z=ve(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:E,strategy:l}):C);return{top:(_.top-z.top+b.top)/q.y,bottom:(z.bottom-_.bottom+b.bottom)/q.y,left:(_.left-z.left+b.left)/q.x,right:(z.right-_.right+b.right)/q.x}}var tr=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:i,rects:a,platform:n,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=ue(e,t)||{};if(d==null)return{};let g=xt(c),f={x:r,y:o},u=Ie(i),b=Be(u),x=await n.getDimensions(d),v=u==="y",_=v?"top":"left",C=v?"bottom":"right",E=v?"clientHeight":"clientWidth",q=a.reference[b]+a.reference[u]-f[u]-a.floating[b],z=f[u]-a.reference[u],w=await(n.getOffsetParent==null?void 0:n.getOffsetParent(d)),k=w?w[E]:0;(!k||!await(n.isElement==null?void 0:n.isElement(w)))&&(k=s.floating[E]||a.floating[b]);let L=q/2-z/2,O=k/2-x[b]/2-1,A=se(g[_],O),I=se(g[C],O),Q=A,H=k-x[b]-I,F=k/2-x[b]/2+L,M=Qe(Q,F,H),X=!l.arrow&&fe(i)!=null&&F!==M&&a.reference[b]/2-(F<Q?A:I)-x[b]/2<0,j=X?F<Q?F-Q:F-H:0;return{[u]:f[u]+j,data:{[u]:M,centerOffset:F-M-j,...X&&{alignmentOffset:j}},reset:X}}});var rr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:i,middlewareData:a,rects:n,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...v}=ue(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let _=le(i),C=ie(s),E=le(s)===s,q=await(l.isRTL==null?void 0:l.isRTL(d.floating)),z=f||(E||!x?[De(s)]:Zt(s)),w=b!=="none";!f&&w&&z.push(...Gt(s,x,b,q));let k=[s,...z],L=await _e(t,v),O=[],A=((o=a.flip)==null?void 0:o.overflows)||[];if(c&&O.push(L[_]),g){let F=Xt(i,n,q);O.push(L[F[0]],L[F[1]])}if(A=[...A,{placement:i,overflows:O}],!O.every(F=>F<=0)){var I,Q;let F=(((I=a.flip)==null?void 0:I.index)||0)+1,M=k[F];if(M&&(!(g==="alignment"?C!==ie(M):!1)||A.every(W=>ie(W.placement)===C?W.overflows[0]>0:!0)))return{data:{index:F,overflows:A},reset:{placement:M}};let X=(Q=A.filter(j=>j.overflows[0]<=0).sort((j,W)=>j.overflows[1]-W.overflows[1])[0])==null?void 0:Q.placement;if(!X)switch(u){case"bestFit":{var H;let j=(H=A.filter(W=>{if(w){let K=ie(W.placement);return K===C||K==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(K=>K>0).reduce((K,io)=>K+io,0)]).sort((W,K)=>W[1]-K[1])[0])==null?void 0:H[0];j&&(X=j);break}case"initialPlacement":X=s;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function Wt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kt(e){return Yt.some(t=>e[t]>=0)}var or=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...i}=ue(e,t);switch(o){case"referenceHidden":{let a=await _e(t,{...i,elementContext:"reference"}),n=Wt(a,r.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Kt(n)}}}case"escaped":{let a=await _e(t,{...i,altBoundary:!0}),n=Wt(a,r.floating);return{data:{escapedOffsets:n,escaped:Kt(n)}}}default:return{}}}}};var jo=new Set(["left","top"]);async function No(e,t){let{placement:r,platform:o,elements:i}=e,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),n=le(r),s=fe(r),l=ie(r)==="y",d=jo.has(n)?-1:1,c=a&&l?-1:1,g=ue(t,e),{mainAxis:f,crossAxis:u,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&typeof b=="number"&&(u=s==="end"?b*-1:b),l?{x:u*c,y:f*d}:{x:f*d,y:u*c}}var ir=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:i,y:a,placement:n,middlewareData:s}=t,l=await No(t,e);return n===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:n}}}}},nr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:s={fn:v=>{let{x:_,y:C}=v;return{x:_,y:C}}},...l}=ue(e,t),d={x:r,y:o},c=await _e(t,l),g=ie(le(i)),f=wt(g),u=d[f],b=d[g];if(a){let v=f==="y"?"top":"left",_=f==="y"?"bottom":"right",C=u+c[v],E=u-c[_];u=Qe(C,u,E)}if(n){let v=g==="y"?"top":"left",_=g==="y"?"bottom":"right",C=b+c[v],E=b-c[_];b=Qe(C,b,E)}let x=s.fn({...t,[f]:u,[g]:b});return{...x,data:{x:x.x-r,y:x.y-o,enabled:{[f]:a,[g]:n}}}}}};var ar=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;let{placement:i,rects:a,platform:n,elements:s}=t,{apply:l=()=>{},...d}=ue(e,t),c=await _e(t,d),g=le(i),f=fe(i),u=ie(i)==="y",{width:b,height:x}=a.floating,v,_;g==="top"||g==="bottom"?(v=g,_=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(_=g,v=f==="end"?"top":"bottom");let C=x-c.top-c.bottom,E=b-c.left-c.right,q=se(x-c[v],C),z=se(b-c[_],E),w=!t.middlewareData.shift,k=q,L=z;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(L=E),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(k=C),w&&!f){let A=U(c.left,0),I=U(c.right,0),Q=U(c.top,0),H=U(c.bottom,0);u?L=b-2*(A!==0||I!==0?A+I:U(c.left,c.right)):k=x-2*(Q!==0||H!==0?Q+H:U(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:k});let O=await n.getDimensions(s.floating);return b!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}};function Ue(){return typeof window!="undefined"}function we(e){return lr(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ne(e){var t;return(t=(lr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lr(e){return Ue()?e instanceof Node||e instanceof Y(e).Node:!1}function ee(e){return Ue()?e instanceof Element||e instanceof Y(e).Element:!1}function oe(e){return Ue()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function sr(e){return!Ue()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}var qo=new Set(["inline","contents"]);function Ce(e){let{overflow:t,overflowX:r,overflowY:o,display:i}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!qo.has(i)}var Vo=new Set(["table","td","th"]);function cr(e){return Vo.has(we(e))}var Qo=[":popover-open",":modal"];function ze(e){return Qo.some(t=>{try{return e.matches(t)}catch(r){return!1}})}var Bo=["transform","translate","scale","rotate","perspective"],Io=["transform","translate","scale","rotate","perspective","filter"],Ho=["paint","layout","strict","content"];function Ye(e){let t=Xe(),r=ee(e)?te(e):e;return Bo.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Io.some(o=>(r.willChange||"").includes(o))||Ho.some(o=>(r.contain||"").includes(o))}function dr(e){let t=ce(e);for(;oe(t)&&!xe(t);){if(Ye(t))return t;if(ze(t))return null;t=ce(t)}return null}function Xe(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Uo=new Set(["html","body","#document"]);function xe(e){return Uo.has(we(e))}function te(e){return Y(e).getComputedStyle(e)}function Ae(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ce(e){if(we(e)==="html")return e;let t=e.assignedSlot||e.parentNode||sr(e)&&e.host||ne(e);return sr(t)?t.host:t}function ur(e){let t=ce(e);return xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&Ce(t)?t:ur(t)}function He(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ur(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),n=Y(i);if(a){let s=Ze(n);return t.concat(n,n.visualViewport||[],Ce(i)?i:[],s&&r?He(s):[])}return t.concat(i,He(i,[],r))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hr(e){let t=te(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=oe(e),a=i?e.offsetWidth:r,n=i?e.offsetHeight:o,s=Oe(r)!==a||Oe(o)!==n;return s&&(r=a,o=n),{width:r,height:o,$:s}}function br(e){return ee(e)?e:e.contextElement}function Se(e){let t=br(e);if(!oe(t))return re(1);let r=t.getBoundingClientRect(),{width:o,height:i,$:a}=hr(t),n=(a?Oe(r.width):r.width)/o,s=(a?Oe(r.height):r.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}var Yo=re(0);function fr(e){let t=Y(e);return!Xe()||!t.visualViewport?Yo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xo(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Y(e)?!1:t}function Te(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),a=br(e),n=re(1);t&&(o?ee(o)&&(n=Se(o)):n=Se(e));let s=Xo(a,r,o)?fr(a):re(0),l=(i.left+s.x)/n.x,d=(i.top+s.y)/n.y,c=i.width/n.x,g=i.height/n.y;if(a){let f=Y(a),u=o&&ee(o)?Y(o):o,b=f,x=Ze(b);for(;x&&o&&u!==b;){let v=Se(x),_=x.getBoundingClientRect(),C=te(x),E=_.left+(x.clientLeft+parseFloat(C.paddingLeft))*v.x,q=_.top+(x.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,d*=v.y,c*=v.x,g*=v.y,l+=E,d+=q,b=Y(x),x=Ze(b)}}return ve({width:c,height:g,x:l,y:d})}function Ge(e,t){let r=Ae(e).scrollLeft;return t?t.left+r:Te(ne(e)).left+r}function vr(e,t){let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Ge(e,r),i=r.top+t.scrollTop;return{x:o,y:i}}function Zo(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e,a=i==="fixed",n=ne(o),s=t?ze(t.floating):!1;if(o===n||s&&a)return r;let l={scrollLeft:0,scrollTop:0},d=re(1),c=re(0),g=oe(o);if((g||!g&&!a)&&((we(o)!=="body"||Ce(n))&&(l=Ae(o)),oe(o))){let u=Te(o);d=Se(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}let f=n&&!g&&!a?vr(n,l):re(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+f.x,y:r.y*d.y-l.scrollTop*d.y+c.y+f.y}}function Go(e){return Array.from(e.getClientRects())}function Jo(e){let t=ne(e),r=Ae(e),o=e.ownerDocument.body,i=U(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=U(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),n=-r.scrollLeft+Ge(e),s=-r.scrollTop;return te(o).direction==="rtl"&&(n+=U(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:n,y:s}}var gr=25;function Wo(e,t){let r=Y(e),o=ne(e),i=r.visualViewport,a=o.clientWidth,n=o.clientHeight,s=0,l=0;if(i){a=i.width,n=i.height;let c=Xe();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}let d=Ge(o);if(d<=0){let c=o.ownerDocument,g=c.body,f=getComputedStyle(g),u=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-u);b<=gr&&(a-=b)}else d<=gr&&(a+=d);return{width:a,height:n,x:s,y:l}}var Ko=new Set(["absolute","fixed"]);function ei(e,t){let r=Te(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=oe(e)?Se(e):re(1),n=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,d=o*a.y;return{width:n,height:s,x:l,y:d}}function mr(e,t,r){let o;if(t==="viewport")o=Wo(e,r);else if(t==="document")o=Jo(ne(e));else if(ee(t))o=ei(t,r);else{let i=fr(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ve(o)}function wr(e,t){let r=ce(e);return r===t||!ee(r)||xe(r)?!1:te(r).position==="fixed"||wr(r,t)}function ti(e,t){let r=t.get(e);if(r)return r;let o=He(e,[],!1).filter(s=>ee(s)&&we(s)!=="body"),i=null,a=te(e).position==="fixed",n=a?ce(e):e;for(;ee(n)&&!xe(n);){let s=te(n),l=Ye(n);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&Ko.has(i.position)||Ce(n)&&!l&&wr(e,n))?o=o.filter(c=>c!==n):i=s,n=ce(n)}return t.set(e,o),o}function ri(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e,n=[...r==="clippingAncestors"?ze(t)?[]:ti(t,this._c):[].concat(r),o],s=n[0],l=n.reduce((d,c)=>{let g=mr(t,c,i);return d.top=U(g.top,d.top),d.right=se(g.right,d.right),d.bottom=se(g.bottom,d.bottom),d.left=U(g.left,d.left),d},mr(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function oi(e){let{width:t,height:r}=hr(e);return{width:t,height:r}}function ii(e,t,r){let o=oe(t),i=ne(t),a=r==="fixed",n=Te(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=re(0);function d(){l.x=Ge(i)}if(o||!o&&!a)if((we(t)!=="body"||Ce(i))&&(s=Ae(t)),o){let u=Te(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&d();a&&!o&&i&&d();let c=i&&!o&&!a?vr(i,s):re(0),g=n.left+s.scrollLeft-l.x-c.x,f=n.top+s.scrollTop-l.y-c.y;return{x:g,y:f,width:n.width,height:n.height}}function yt(e){return te(e).position==="static"}function pr(e,t){if(!oe(e)||te(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ne(e)===r&&(r=r.ownerDocument.body),r}function xr(e,t){let r=Y(e);if(ze(e))return r;if(!oe(e)){let i=ce(e);for(;i&&!xe(i);){if(ee(i)&&!yt(i))return i;i=ce(i)}return r}let o=pr(e,t);for(;o&&cr(o)&&yt(o);)o=pr(o,t);return o&&xe(o)&&yt(o)&&!Ye(o)?r:o||dr(e)||r}var ni=async function(e){let t=this.getOffsetParent||xr,r=this.getDimensions,o=await r(e.floating);return{reference:ii(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ai(e){return te(e).direction==="rtl"}var si={convertOffsetParentRelativeRectToViewportRelativeRect:Zo,getDocumentElement:ne,getClippingRect:ri,getOffsetParent:xr,getElementRects:ni,getClientRects:Go,getDimensions:oi,getScale:Se,isElement:ee,isRTL:ai};var yr=ir;var kr=nr,$r=rr,_r=ar,Cr=or,Sr=tr;var Er=(e,t,r)=>{let o=new Map,i={platform:si,...r},a={...i.platform,_c:o};return er(e,t,{...i,platform:a})};var We="top-start",Ke="top",et="top-end",tt="right-start",rt="right",ot="right-end",it="bottom-start",Pe="bottom",nt="bottom-end",at="left-start",st="left",lt="left-end",kt=[We,Ke,et,tt,rt,ot,it,Pe,nt,at,st,lt],ye={[We]:it,[Ke]:Pe,[et]:nt,[it]:We,[Pe]:Ke,[nt]:et,[at]:tt,[st]:rt,[lt]:ot,[tt]:at,[rt]:st,[ot]:lt},li={[at]:-45,[st]:-45,[lt]:-45,[We]:45,[Ke]:45,[et]:45,[tt]:135,[rt]:135,[ot]:135,[it]:-135,[Pe]:-135,[nt]:-135},$t=e=>{let t;return/-/.test(e)?t=e.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(""):t=e.charAt(0).toUpperCase()+e.slice(1),t},ci=e=>e.split("-")[0],di=e=>ye[ci(e)],Dr=e=>ye[e],ui=e=>li[Dr(e)],gi=(e,t,r)=>{Object.assign(e==null?void 0:e.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${$t(di(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})},Lr=8,Je=24;async function _t(e){var o,i,a;if(!(e!=null&&e.isShowing)||(e!=null&&e.waitForDOM&&await(e==null?void 0:e.waitForDOM()),!(e!=null&&e.targetEl)||!(e!=null&&e.attentionEl)))return;let t=e==null?void 0:e.targetEl,r=e.attentionEl;return Er(t,r,{placement:(o=e==null?void 0:e.directionName)!=null?o:Pe,middleware:[yr({mainAxis:(i=e==null?void 0:e.distance)!=null?i:8,crossAxis:(a=e==null?void 0:e.skidding)!=null?a:0}),(e==null?void 0:e.flip)&&$r({crossAxis:e==null?void 0:e.crossAxis,fallbackPlacements:e==null?void 0:e.fallbackPlacements}),(e==null?void 0:e.flip)&&kr({crossAxis:!0}),!(e!=null&&e.noArrow)&&(e==null?void 0:e.arrowEl)&&Sr({element:e==null?void 0:e.arrowEl}),Cr(),_r({apply(){Object.assign(r.style,{paddingRight:`${Lr}px`,paddingLeft:`${Lr}px`})}})]}).then(({x:n,y:s,middlewareData:l,placement:d})=>{if(e.actualDirection=d,e!=null&&e.isCallout||Object.assign(r.style,{left:`${n}px`,top:`${s}px`}),l!=null&&l.hide&&!(e!=null&&e.isCallout)){let{referenceHidden:c}=l.hide;Object.assign(r.style,{visibility:c?"hidden":""})}if(l!=null&&l.arrow&&(e!=null&&e.arrowEl)){let c=e==null?void 0:e.arrowEl,{x:g,y:f}=l.arrow,u=window.getComputedStyle(r).direction==="rtl",b=Dr(d).split("-")[1],x="",v="",_="",C="";if(b==="start"){let E=typeof g=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"";x=typeof f=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"",v=u?E:"",C=u?"":E}else if(b==="end"){let E=typeof g=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"";v=u?"":E,C=u?E:"",_=typeof f=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:""}else C=typeof g=="number"?`${g}px`:"",x=typeof f=="number"?`${f}px`:"";Object.assign(c.style,{top:x,right:v,bottom:_,left:C}),gi(c,ui(d),d)}}),e}import{css as zi,html as Le,LitElement as Ai,nothing as oo}from"lit";import{property as J}from"lit/decorators.js";import{ifDefined as Ti}from"lit/directives/if-defined.js";var mi=["en","nb","fi","da","sv"],Ct="en",ct=e=>mi.find(t=>e===t||e.toLowerCase().includes(t))||Ct;function dt(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ct(e)}try{let e=zr(document);if(e)return ct(e);let t=fi();if(t)return ct(t);let r=zr(Tr());return r?ct(r):Ct}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Ct}}var ut=(e,t,r,o,i)=>{P.load("en",e),P.load("nb",t),P.load("fi",r),P.load("da",o),P.load("sv",i);let a=dt();P.activate(a),Ar(),hi()},pi="warp-i18n-change";function Ar(){typeof window!="undefined"&&window.dispatchEvent(new Event(pi))}var Or=!1;function hi(){if(Or||typeof window=="undefined"||!(document!=null&&document.documentElement))return;Or=!0;let e=()=>{let i=dt();P.locale!==i&&(P.activate(i),Ar())},t=new MutationObserver(i=>{for(let a of i)if(a.type==="attributes"&&a.attributeName==="lang"){e();break}});t.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});let r=Tr();r&&r.documentElement&&r!==document&&t.observe(r.documentElement,{attributes:!0,attributeFilter:["lang"]});let o=bi();o&&t.observe(o,{attributes:!0,attributeFilter:["lang"]})}function Tr(){var e,t;try{return(t=(e=window.parent)==null?void 0:e.document)!=null?t:null}catch(r){return null}}function zr(e){var t,r;try{return(r=(t=e==null?void 0:e.documentElement)==null?void 0:t.lang)!=null?r:""}catch(o){return""}}function bi(){var e;try{return(e=window.frameElement)!=null?e:null}catch(t){return null}}function fi(){var e,t,r;try{return(r=(t=(e=window.frameElement)==null?void 0:e.getAttribute)==null?void 0:t.call(e,"lang"))!=null?r:""}catch(o){return""}}import{css as Pr}from"lit";var Ee=Pr`
|
|
11
11
|
*,
|
|
12
12
|
:before,
|
|
13
13
|
:after {
|
|
@@ -3371,7 +3371,7 @@ Please compile your catalog first.
|
|
|
3371
3371
|
--w-icon-size: 32px;
|
|
3372
3372
|
}
|
|
3373
3373
|
|
|
3374
|
-
`;var Et=new Map,Ci='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Si(e,t={}){var o;let r=(o=t.responseParser)!=null?o:(i=>i.text());return Et.has(e)||Et.set(e,fetch(e).then(r)),Et.get(e)}var ge=class extends ki{constructor(){super(...arguments);this.name="";this.
|
|
3374
|
+
`;var Et=new Map,Ci='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Si(e,t={}){var o;let r=(o=t.responseParser)!=null?o:(i=>i.text());return Et.has(e)||Et.set(e,fetch(e).then(r)),Et.get(e)}var ge=class extends ki{constructor(){super(...arguments);this.name="";this.svg=null}async fetchIcon(r){let i=`https://assets.finn.no/pkg/eikons/v1/${this.locale||"en"}/${r}.svg`;try{let a=await Si(i);return new DOMParser().parseFromString(a,"text/html").body.querySelector("svg")}catch(a){return null}}firstUpdated(){this.loadIcon()}updated(r){(r.has("name")||r.has("locale"))&&this.loadIcon()}async loadIcon(){if(!this.name){this.svg=null;return}let r=await this.fetchIcon(this.name);r||(r=new DOMParser().parseFromString(Ci,"text/html").body.firstElementChild),this.svg=r}render(){let r=this.size||"medium",o={"w-icon":!0,"w-icon--s":r==="small","w-icon--m":r==="medium","w-icon--l":r==="large"},i=typeof r=="string"&&r.endsWith("px")?`--w-icon-size: ${r};`:"";return yi`<div class="${_i(o)}" style="${i}" part="w-${this.name.toLowerCase()}">${this.svg}</div>`}};ge.styles=[Br],y([St({type:String,reflect:!0})],ge.prototype,"name",2),y([St({type:String,reflect:!0})],ge.prototype,"size",2),y([St({type:String,reflect:!0})],ge.prototype,"locale",2),y([$i()],ge.prototype,"svg",2);customElements.get("w-icon")||customElements.define("w-icon",ge);var D=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},R=function(e,t,r,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r};function Ir(e){var t,r,o,i,a,n,s,l,d,c,g,f,u,b,x,v,_,C,E;class q extends e{constructor(...w){var k,L,O;super(...w),t.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),i.set(this,!1),a.set(this,void 0),n.set(this,void 0),s.set(this,!0),d.set(this,""),c.set(this,()=>{R(this,i,!0,"f"),R(this,r,!0,"f"),D(this,t,"m",v).call(this)}),g.set(this,()=>{R(this,r,!1,"f"),D(this,t,"m",_).call(this,this.shouldFormValueUpdate()?D(this,d,"f"):""),!this.validity.valid&&D(this,i,"f")&&R(this,o,!0,"f");let A=D(this,t,"m",v).call(this);this.validationMessageCallback&&this.validationMessageCallback(A?this.internals.validationMessage:"")}),f.set(this,()=>{var A;D(this,s,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),R(this,s,!1,"f")),R(this,i,!0,"f"),R(this,o,!0,"f"),D(this,t,"m",v).call(this),(A=this===null||this===void 0?void 0:this.validationMessageCallback)===null||A===void 0||A.call(this,this.showError?this.internals.validationMessage:"")}),u.set(this,void 0),b.set(this,!1),x.set(this,Promise.resolve()),(k=this.addEventListener)===null||k===void 0||k.call(this,"focus",D(this,c,"f")),(L=this.addEventListener)===null||L===void 0||L.call(this,"blur",D(this,g,"f")),(O=this.addEventListener)===null||O===void 0||O.call(this,"invalid",D(this,f,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let w=this.validators.map(O=>O.attribute).flat(),k=super.observedAttributes||[];return[...new Set([...k,...w])]}static getValidator(w){return this.validators.find(k=>k.attribute===w)||null}static getValidators(w){return this.validators.filter(k=>{var L;if(k.attribute===w||!((L=k.attribute)===null||L===void 0)&&L.includes(w))return!0})}get form(){return this.internals.form}get showError(){return D(this,t,"m",v).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(w,k,L){var O;(O=super.attributeChangedCallback)===null||O===void 0||O.call(this,w,k,L);let I=this.constructor.getValidators(w);I!=null&&I.length&&this.validationTarget&&this.setValue(D(this,d,"f"))}setValue(w){var k;R(this,o,!1,"f"),(k=this.validationMessageCallback)===null||k===void 0||k.call(this,""),R(this,d,w,"f");let O=this.shouldFormValueUpdate()?w:null;this.internals.setFormValue(O),D(this,t,"m",_).call(this,O),this.valueChangedCallback&&this.valueChangedCallback(O),D(this,t,"m",v).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(w=>w(D(this,x,"f")))}formResetCallback(){var w,k;R(this,i,!1,"f"),R(this,o,!1,"f"),D(this,t,"m",v).call(this),(w=this.resetFormControl)===null||w===void 0||w.call(this),(k=this.validationMessageCallback)===null||k===void 0||k.call(this,D(this,t,"m",v).call(this)?this.validationMessage:"")}}return r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap,d=new WeakMap,c=new WeakMap,g=new WeakMap,f=new WeakMap,u=new WeakMap,b=new WeakMap,x=new WeakMap,t=new WeakSet,l=function(){let w=this.getRootNode(),k=`${this.localName}[name="${this.getAttribute("name")}"]`;return w.querySelectorAll(k)},v=function(){if(this.hasAttribute("disabled"))return!1;let w=D(this,o,"f")||D(this,i,"f")&&!this.validity.valid&&!D(this,r,"f");return w&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),w},_=function(w){let k=this.constructor,L={},O=k.validators,A=[],I=O.some(M=>M.isValid instanceof Promise);D(this,b,"f")||(R(this,x,new Promise(M=>{R(this,u,M,"f")}),"f"),R(this,b,!0,"f")),D(this,a,"f")&&(D(this,a,"f").abort(),R(this,n,D(this,a,"f"),"f"));let Q=new AbortController;R(this,a,Q,"f");let H,F=!1;O.length&&(O.forEach(M=>{let X=M.key||"customError",j=M.isValid(this,w,Q.signal);j instanceof Promise?(A.push(j),j.then(K=>{K!=null&&(L[X]=!K,H=D(this,t,"m",E).call(this,M,w),D(this,t,"m",C).call(this,L,H))})):(L[X]=!j,this.validity[X]!==!j&&(F=!0),!j&&!H&&(H=D(this,t,"m",E).call(this,M,w)))}),Promise.allSettled(A).then(()=>{var M;Q!=null&&Q.signal.aborted||(R(this,b,!1,"f"),(M=D(this,u,"f"))===null||M===void 0||M.call(this))}),(F||!I)&&D(this,t,"m",C).call(this,L,H))},C=function(w,k){if(this.validationTarget)this.internals.setValidity(w,k,this.validationTarget),R(this,s,!1,"f");else{if(this.internals.setValidity(w,k),this.internals.validity.valid)return;R(this,s,!0,"f")}},E=function(w,k){if(this.validityCallback){let L=this.validityCallback(w.key||"customError");if(L)return L}return w.message instanceof Function?w.message(this,k):w.message},q}import{css as eo,html as gt,LitElement as to}from"lit";import{property as G}from"lit/decorators.js";import{html as Li,LitElement as Ur}from"lit";import{property as me}from"lit/decorators.js";import{classMap as Di}from"lit/directives/class-map.js";import{css as Ei}from"lit";var Hr=Ei`.w-button,
|
|
3375
3375
|
.w-button--secondary {
|
|
3376
3376
|
/* Local scoped variables, given the default button (the secondary variant) as a default */
|
|
3377
3377
|
--_background: var(--background, var(--w-s-color-background));
|
|
@@ -3605,14 +3605,14 @@ Please compile your catalog first.
|
|
|
3605
3605
|
100% {
|
|
3606
3606
|
background-position: 60px 0;
|
|
3607
3607
|
}
|
|
3608
|
-
}`;var Yr=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],Z=class extends Ur{constructor(){super(...arguments);this.autofocus=!1;this.
|
|
3609
|
-
${Yr.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let r={"w-button":
|
|
3608
|
+
}`;var Yr=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],Z=class extends Ur{constructor(){super(...arguments);this.autofocus=!1;this.small=!1;this.disabled=!1;this.fullWidth=!1}connectedCallback(){if(super.connectedCallback(),this.variant&&!Yr.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
|
|
3609
|
+
${Yr.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let r=this.variant||"secondary",o={"w-button":r!=="link","w-button--primary":r==="primary","w-button--secondary":r==="secondary"||!this.variant,"w-button--negative":r==="negative","w-button--utility":r==="utility","w-button--quiet":r==="quiet","w-button--negative-quiet":r==="negativeQuiet","w-button--utility-quiet":r==="utilityQuiet","w-button--overlay":r==="overlay","w-button--overlay-inverted":r==="overlayInverted","w-button--overlay-quiet":r==="overlayQuiet","w-button--overlay-inverted-quiet":r==="overlayInvertedQuiet","w-button--small":this.small,"w-button--full-width":this.fullWidth,"w-button--disabled":this.disabled};return Li`<a
|
|
3610
3610
|
href=${this.href}
|
|
3611
3611
|
target=${this.target}
|
|
3612
3612
|
rel=${this.target==="_blank"?this.rel||"noopener":void 0}
|
|
3613
|
-
class=${
|
|
3613
|
+
class=${Di(o)}>
|
|
3614
3614
|
<slot></slot>
|
|
3615
|
-
</a>`}};Z.shadowRootOptions={...Ur.shadowRootOptions,delegatesFocus:!0},Z.styles=[Ee,Hr],y([me({type:Boolean,reflect:!0})],Z.prototype,"autofocus",2),y([me({reflect:!0})],Z.prototype,"variant",2),y([me({type:Boolean,reflect:!0})],Z.prototype,"small",2),y([me({reflect:!0})],Z.prototype,"href",2),y([me({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),y([me({reflect:!0})],Z.prototype,"target",2),y([me({reflect:!0})],Z.prototype,"rel",2),y([me({attribute:"full-width",type:Boolean,reflect:!0})],Z.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",Z);var Xr=JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');var Zr=JSON.parse('{"button.aria.loading":["Loading..."]}');var Gr=JSON.parse('{"button.aria.loading":["Ladataan..."]}');var Jr=JSON.parse('{"button.aria.loading":["Laster..."]}');var Wr=JSON.parse('{"button.aria.loading":["Laddar ..."]}');import{css as Di}from"lit";var Kr=Di`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.hover\\:no-underline:hover,.focus\\:no-underline:focus,.active\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\[15px\\]{padding-left:15px;padding-right:15px}.py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;var ro=["primary","secondary","negative","utility","pill","link"],pe="font-bold focusable justify-center transition-colors ease-in-out",T={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},S={primary:`border-0 rounded-radius-default ${pe}`,secondary:`border-2 rounded-radius-default ${pe}`,utility:`border rounded-radius-utility ${pe}`,negative:`border-0 rounded-radius-default ${pe}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${pe}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${T.link}`},p={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"},h={medium:"text-m leading-[24]",xsmall:"text-xs"},m={inProgress:`border-transparent animate-inprogress pointer-events-none ${T.loading}`,quiet:`border-0 rounded-8 ${pe}`,utilityQuiet:`border-0 rounded-4 ${pe}`,negativeQuiet:`border-0 rounded-8 ${pe}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${T.disabled}`},$={secondary:`${p.medium} ${h.medium} ${S.secondary} ${T.secondary}`,secondaryHref:`${p.medium} ${h.medium} ${S.secondary} ${T.secondary}`,secondaryDisabled:`${p.medium} ${h.medium} ${S.secondary} ${m.isDisabled}`,secondarySmall:`${h.xsmall} ${p.xsmall} ${S.secondary} ${T.secondary}`,secondarySmallDisabled:`${h.xsmall} ${p.xsmall} ${S.secondary} ${m.isDisabled}`,secondaryQuiet:`${p.medium} ${h.medium} ${m.quiet} ${T.quiet}`,secondaryQuietDisabled:`${p.medium} ${h.medium} ${m.quiet} ${m.isDisabled}`,secondarySmallQuiet:`${h.xsmall} ${p.xsmall} ${m.quiet} ${T.quiet}`,secondarySmallQuietDisabled:`${h.xsmall} ${p.xsmall} ${m.quiet} ${m.isDisabled}`,secondaryLoading:`${p.medium} ${h.medium} ${S.secondary} ${m.inProgress}`,secondarySmallLoading:`${h.xsmall} ${p.xsmall} ${S.secondary} ${m.inProgress}`,secondarySmallQuietLoading:`${h.xsmall} ${p.xsmall} ${m.quiet} ${m.inProgress}`,secondaryQuietLoading:`${p.medium} ${h.medium} ${m.quiet} ${m.inProgress}`,primary:`${p.large} ${h.medium} ${S.primary} ${T.primary}`,primaryDisabled:`${p.large} ${h.medium} ${m.isDisabled} ${S.primary}`,primarySmall:`${p.small} ${h.xsmall} ${S.primary} ${T.primary}`,primarySmallDisabled:`${p.small} ${h.xsmall} ${m.isDisabled} ${S.primary} `,primaryQuiet:`${p.large} ${h.medium} ${m.quiet} ${T.quiet}`,primaryQuietDisabled:`${p.large} ${h.medium} ${m.quiet} ${m.isDisabled}`,primarySmallQuiet:`${p.small} ${h.xsmall} ${m.quiet} ${T.quiet}`,primarySmallQuietDisabled:`${p.small} ${h.xsmall} ${m.quiet} ${m.isDisabled}`,primaryLoading:`${p.large} ${h.medium} ${m.inProgress} ${S.primary}`,primarySmallLoading:`${p.small} ${h.xsmall} ${m.inProgress} ${S.primary}`,primarySmallQuietLoading:`${p.small} ${h.xsmall} ${m.quiet} ${m.inProgress} ${S.primary}`,primaryQuietLoading:`${p.large} ${h.medium} ${m.quiet} ${m.inProgress}`,utility:`${p.utility} ${h.medium} ${S.utility} ${T.utility}`,utilityDisabled:`${p.utility} ${h.medium} ${S.utility} ${m.isDisabled}`,utilityQuiet:`${p.large} ${h.medium} ${m.utilityQuiet} ${T.utilityQuiet}`,utilityQuietDisabled:`${p.large} ${h.medium} ${m.utilityQuiet} ${m.isDisabled}`,utilitySmall:`${p.smallUtility} ${h.xsmall} ${S.utility} ${T.utility}`,utilitySmallDisabled:`${p.smallUtility} ${h.xsmall} ${S.utility} ${m.isDisabled}`,utilitySmallQuiet:`${p.smallUtility} ${h.xsmall} ${m.utilityQuiet} ${T.utilityQuiet}`,utilitySmallQuietDisabled:`${p.smallUtility} ${h.xsmall} ${m.utilityQuiet} ${m.isDisabled}`,utilityLoading:`${p.large} ${h.medium} ${S.utility} ${m.inProgress}`,utilitySmallLoading:`${p.smallUtility} ${h.xsmall} ${S.utility} ${m.inProgress}`,utilityQuietLoading:`${p.large} ${h.medium} ${m.inProgress} ${m.utilityQuiet}`,utilitySmallQuietLoading:`${p.smallUtility} ${h.xsmall} ${m.inProgress} ${m.utilityQuiet}`,negative:`${p.large} ${h.medium} ${S.negative} ${T.destructive}`,negativeDisabled:`${p.large} ${h.medium} ${S.negative} ${m.isDisabled}`,negativeQuiet:`${p.large} ${h.medium} ${m.negativeQuiet} ${T.negativeQuiet}`,negativeQuietDisabled:`${p.large} ${h.medium} ${m.negativeQuiet}${m.isDisabled}`,negativeSmall:`${p.small} ${h.xsmall} ${S.negative} ${T.destructive}`,negativeSmallDisabled:`${p.small} ${h.xsmall} ${S.negative} ${m.isDisabled}`,negativeSmallQuiet:`${p.small} ${h.xsmall} ${m.negativeQuiet} ${T.negativeQuiet}`,negativeSmallQuietDisabled:`${p.small} ${h.xsmall} ${m.negativeQuiet} ${m.isDisabled}`,negativeLoading:`${p.large} ${h.medium} ${S.negative} ${m.inProgress}`,negativeSmallLoading:`${p.small} ${h.xsmall} ${m.inProgress} ${S.negative}`,negativeQuietLoading:`${p.large} ${h.medium} ${m.negativeQuiet} ${S.negative} ${m.inProgress}`,negativeSmallQuietLoading:`${p.small} ${h.xsmall} ${m.negativeQuiet} ${m.inProgress}`,pill:`${p.pill} ${h.medium} ${S.pill} ${T.pill}`,pillSmall:`${p.pillSmall} ${h.xsmall} ${S.pill} ${T.pill}`,pillLoading:`${p.pill} ${h.medium} ${S.pill} ${m.inProgress}`,pillSmallLoading:`${p.pillSmall} ${h.xsmall} ${S.pill} ${m.inProgress}`,link:`${p.link} ${h.medium} ${S.link}`,linkSmall:`${p.link} ${h.xsmall} ${S.link}`,linkAsButton:"inline-block active:no-underline hover:no-underline focus:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"},Me,N=class extends Ir(to){constructor(){super();this.type="button";this.autofocus=!1;this.quiet=!1;this.small=!1;this.loading=!1;this.fullWidth=!1;Tt(this,Me,null);ut(Zr,Jr,Gr,Xr,Wr),this.variant="secondary",this.ariaValueTextLoading=P._({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}updated(r){r.has("value")&&this.setValue(this.value)}connectedCallback(){if(super.connectedCallback(),!ro.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
|
|
3615
|
+
</a>`}};Z.shadowRootOptions={...Ur.shadowRootOptions,delegatesFocus:!0},Z.styles=[Ee,Hr],y([me({type:Boolean,reflect:!0})],Z.prototype,"autofocus",2),y([me({reflect:!0})],Z.prototype,"variant",2),y([me({type:Boolean,reflect:!0})],Z.prototype,"small",2),y([me({reflect:!0})],Z.prototype,"href",2),y([me({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),y([me({reflect:!0})],Z.prototype,"target",2),y([me({reflect:!0})],Z.prototype,"rel",2),y([me({attribute:"full-width",type:Boolean,reflect:!0})],Z.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",Z);var Xr=JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');var Zr=JSON.parse('{"button.aria.loading":["Loading..."]}');var Gr=JSON.parse('{"button.aria.loading":["Ladataan..."]}');var Jr=JSON.parse('{"button.aria.loading":["Laster..."]}');var Wr=JSON.parse('{"button.aria.loading":["Laddar ..."]}');import{css as Oi}from"lit";var Kr=Oi`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.hover\\:no-underline:hover,.focus\\:no-underline:focus,.active\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\[15px\\]{padding-left:15px;padding-right:15px}.py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;var ro=["primary","secondary","negative","utility","pill","link"],pe="font-bold focusable justify-center transition-colors ease-in-out",T={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},S={primary:`border-0 rounded-radius-default ${pe}`,secondary:`border-2 rounded-radius-default ${pe}`,utility:`border rounded-radius-utility ${pe}`,negative:`border-0 rounded-radius-default ${pe}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${pe}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${T.link}`},p={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"},h={medium:"text-m leading-[24]",xsmall:"text-xs"},m={inProgress:`border-transparent animate-inprogress pointer-events-none ${T.loading}`,quiet:`border-0 rounded-8 ${pe}`,utilityQuiet:`border-0 rounded-4 ${pe}`,negativeQuiet:`border-0 rounded-8 ${pe}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${T.disabled}`},$={secondary:`${p.medium} ${h.medium} ${S.secondary} ${T.secondary}`,secondaryHref:`${p.medium} ${h.medium} ${S.secondary} ${T.secondary}`,secondaryDisabled:`${p.medium} ${h.medium} ${S.secondary} ${m.isDisabled}`,secondarySmall:`${h.xsmall} ${p.xsmall} ${S.secondary} ${T.secondary}`,secondarySmallDisabled:`${h.xsmall} ${p.xsmall} ${S.secondary} ${m.isDisabled}`,secondaryQuiet:`${p.medium} ${h.medium} ${m.quiet} ${T.quiet}`,secondaryQuietDisabled:`${p.medium} ${h.medium} ${m.quiet} ${m.isDisabled}`,secondarySmallQuiet:`${h.xsmall} ${p.xsmall} ${m.quiet} ${T.quiet}`,secondarySmallQuietDisabled:`${h.xsmall} ${p.xsmall} ${m.quiet} ${m.isDisabled}`,secondaryLoading:`${p.medium} ${h.medium} ${S.secondary} ${m.inProgress}`,secondarySmallLoading:`${h.xsmall} ${p.xsmall} ${S.secondary} ${m.inProgress}`,secondarySmallQuietLoading:`${h.xsmall} ${p.xsmall} ${m.quiet} ${m.inProgress}`,secondaryQuietLoading:`${p.medium} ${h.medium} ${m.quiet} ${m.inProgress}`,primary:`${p.large} ${h.medium} ${S.primary} ${T.primary}`,primaryDisabled:`${p.large} ${h.medium} ${m.isDisabled} ${S.primary}`,primarySmall:`${p.small} ${h.xsmall} ${S.primary} ${T.primary}`,primarySmallDisabled:`${p.small} ${h.xsmall} ${m.isDisabled} ${S.primary} `,primaryQuiet:`${p.large} ${h.medium} ${m.quiet} ${T.quiet}`,primaryQuietDisabled:`${p.large} ${h.medium} ${m.quiet} ${m.isDisabled}`,primarySmallQuiet:`${p.small} ${h.xsmall} ${m.quiet} ${T.quiet}`,primarySmallQuietDisabled:`${p.small} ${h.xsmall} ${m.quiet} ${m.isDisabled}`,primaryLoading:`${p.large} ${h.medium} ${m.inProgress} ${S.primary}`,primarySmallLoading:`${p.small} ${h.xsmall} ${m.inProgress} ${S.primary}`,primarySmallQuietLoading:`${p.small} ${h.xsmall} ${m.quiet} ${m.inProgress} ${S.primary}`,primaryQuietLoading:`${p.large} ${h.medium} ${m.quiet} ${m.inProgress}`,utility:`${p.utility} ${h.medium} ${S.utility} ${T.utility}`,utilityDisabled:`${p.utility} ${h.medium} ${S.utility} ${m.isDisabled}`,utilityQuiet:`${p.large} ${h.medium} ${m.utilityQuiet} ${T.utilityQuiet}`,utilityQuietDisabled:`${p.large} ${h.medium} ${m.utilityQuiet} ${m.isDisabled}`,utilitySmall:`${p.smallUtility} ${h.xsmall} ${S.utility} ${T.utility}`,utilitySmallDisabled:`${p.smallUtility} ${h.xsmall} ${S.utility} ${m.isDisabled}`,utilitySmallQuiet:`${p.smallUtility} ${h.xsmall} ${m.utilityQuiet} ${T.utilityQuiet}`,utilitySmallQuietDisabled:`${p.smallUtility} ${h.xsmall} ${m.utilityQuiet} ${m.isDisabled}`,utilityLoading:`${p.large} ${h.medium} ${S.utility} ${m.inProgress}`,utilitySmallLoading:`${p.smallUtility} ${h.xsmall} ${S.utility} ${m.inProgress}`,utilityQuietLoading:`${p.large} ${h.medium} ${m.inProgress} ${m.utilityQuiet}`,utilitySmallQuietLoading:`${p.smallUtility} ${h.xsmall} ${m.inProgress} ${m.utilityQuiet}`,negative:`${p.large} ${h.medium} ${S.negative} ${T.destructive}`,negativeDisabled:`${p.large} ${h.medium} ${S.negative} ${m.isDisabled}`,negativeQuiet:`${p.large} ${h.medium} ${m.negativeQuiet} ${T.negativeQuiet}`,negativeQuietDisabled:`${p.large} ${h.medium} ${m.negativeQuiet}${m.isDisabled}`,negativeSmall:`${p.small} ${h.xsmall} ${S.negative} ${T.destructive}`,negativeSmallDisabled:`${p.small} ${h.xsmall} ${S.negative} ${m.isDisabled}`,negativeSmallQuiet:`${p.small} ${h.xsmall} ${m.negativeQuiet} ${T.negativeQuiet}`,negativeSmallQuietDisabled:`${p.small} ${h.xsmall} ${m.negativeQuiet} ${m.isDisabled}`,negativeLoading:`${p.large} ${h.medium} ${S.negative} ${m.inProgress}`,negativeSmallLoading:`${p.small} ${h.xsmall} ${m.inProgress} ${S.negative}`,negativeQuietLoading:`${p.large} ${h.medium} ${m.negativeQuiet} ${S.negative} ${m.inProgress}`,negativeSmallQuietLoading:`${p.small} ${h.xsmall} ${m.negativeQuiet} ${m.inProgress}`,pill:`${p.pill} ${h.medium} ${S.pill} ${T.pill}`,pillSmall:`${p.pillSmall} ${h.xsmall} ${S.pill} ${T.pill}`,pillLoading:`${p.pill} ${h.medium} ${S.pill} ${m.inProgress}`,pillSmallLoading:`${p.pillSmall} ${h.xsmall} ${S.pill} ${m.inProgress}`,link:`${p.link} ${h.medium} ${S.link}`,linkSmall:`${p.link} ${h.xsmall} ${S.link}`,linkAsButton:"inline-block active:no-underline hover:no-underline focus:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"},Me,N=class extends Ir(to){constructor(){super();this.autofocus=!1;this.quiet=!1;this.small=!1;this.loading=!1;this.fullWidth=!1;Tt(this,Me,null);ut(Zr,Jr,Gr,Xr,Wr),this.variant="secondary",this.ariaValueTextLoading=P._({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}updated(r){r.has("value")&&this.setValue(this.value)}connectedCallback(){if(super.connectedCallback(),!ro.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
|
|
3616
3616
|
${ro.join(", ")}.`);Pt(this,Me,this.value)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0)}get _primaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&$.primary,this.small&&!this.quiet&&!this.loading&&$.primarySmall,this.small&&this.quiet&&!this.loading&&$.primarySmallQuiet,this.small&&this.loading&&(this.quiet?$.primarySmallQuietLoading:$.primarySmallLoading),!this.small&&this.quiet&&!this.loading&&$.primaryQuiet,!this.small&&this.loading&&(this.quiet?$.primaryQuietLoading:$.primaryLoading)]}get _secondaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&$.secondary,this.small&&!this.quiet&&!this.loading&&$.secondarySmall,this.small&&this.loading&&(this.quiet?$.secondarySmallQuietLoading:$.secondarySmallLoading),this.small&&this.quiet&&!this.loading&&$.secondarySmallQuiet,!this.small&&this.quiet&&!this.loading&&$.secondaryQuiet,!this.small&&this.loading&&(this.quiet?$.secondaryQuietLoading:$.secondaryLoading)]}get _utilityClasses(){return[!this.small&&!this.quiet&&!this.loading&&$.utility,this.small&&!this.quiet&&!this.loading&&$.utilitySmall,this.small&&this.quiet&&!this.loading&&$.utilitySmallQuiet,this.small&&this.loading&&(this.quiet?$.utilitySmallQuietLoading:$.utilitySmallLoading),!this.small&&this.quiet&&!this.loading&&$.utilityQuiet,!this.small&&this.loading&&(this.quiet?$.utilityQuietLoading:$.utilityLoading)]}get _negativeClasses(){return[!this.small&&!this.quiet&&!this.loading&&$.negative,this.small&&!this.quiet&&!this.loading&&$.negativeSmall,this.small&&this.quiet&&!this.loading&&$.negativeSmallQuiet,this.small&&this.loading&&(this.quiet?$.negativeSmallQuietLoading:$.negativeSmallLoading),!this.small&&this.quiet&&!this.loading&&$.negativeQuiet,!this.small&&this.loading&&(this.quiet?$.negativeQuietLoading:$.negativeLoading)]}get _pillClasses(){return[!this.loading&&(this.small?$.pillSmall:$.pill),this.loading&&(this.small?$.pillSmallLoading:$.pillLoading)]}get _linkClasses(){return[this.small?$.linkSmall:$.link]}get _classes(){return ke(this.buttonClass,[this.variant==="primary"&&this._primaryClasses,this.variant==="secondary"&&this._secondaryClasses,this.variant==="utility"&&this._utilityClasses,this.variant==="negative"&&this._negativeClasses,this.variant==="pill"&&this._pillClasses,this.variant==="link"&&this._linkClasses,this.href&&$.linkAsButton,this.fullWidth?$.fullWidth:$.contentWidth])}_handleButtonClick(){this.type==="submit"?this.internals.form.requestSubmit():this.type==="reset"&&this.internals.form.reset()}resetFormControl(){this.value=At(this,Me)}render(){return gt` ${this.href?gt`<w-link
|
|
3617
3617
|
href=${this.href}
|
|
3618
3618
|
target=${this.target}
|
|
@@ -3664,7 +3664,7 @@ ${JSON.stringify(kt)}`);setTimeout(()=>{this.requestUpdate(),this.handleDone()},
|
|
|
3664
3664
|
<slot name="target"></slot>
|
|
3665
3665
|
`}
|
|
3666
3666
|
</div>
|
|
3667
|
-
`}};V.styles=[Ee,Rr,Qr,
|
|
3667
|
+
`}};V.styles=[Ee,Rr,Qr,zi`
|
|
3668
3668
|
#attention {
|
|
3669
3669
|
position: absolute;
|
|
3670
3670
|
z-index: 50;
|