@warp-ds/elements 2.9.1-next.2 → 2.9.1-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/custom-elements.json +91 -262
  2. package/dist/docs/affix/affix.md +9 -10
  3. package/dist/docs/affix/api.md +9 -10
  4. package/dist/docs/alert/alert.md +4 -2
  5. package/dist/docs/alert/api.md +4 -2
  6. package/dist/docs/attention/api.md +21 -16
  7. package/dist/docs/attention/attention.md +21 -16
  8. package/dist/docs/badge/api.md +5 -6
  9. package/dist/docs/badge/badge.md +5 -6
  10. package/dist/docs/box/api.md +3 -4
  11. package/dist/docs/box/box.md +3 -4
  12. package/dist/docs/breadcrumbs/accessibility.md +46 -0
  13. package/dist/docs/breadcrumbs/api.md +8 -8
  14. package/dist/docs/breadcrumbs/breadcrumbs.md +127 -9
  15. package/dist/docs/breadcrumbs/examples.md +35 -0
  16. package/dist/docs/breadcrumbs/usage.md +36 -0
  17. package/dist/docs/button/api.md +15 -13
  18. package/dist/docs/button/button.md +15 -13
  19. package/dist/docs/card/api.md +5 -6
  20. package/dist/docs/card/card.md +5 -6
  21. package/dist/docs/combobox/api.md +18 -19
  22. package/dist/docs/combobox/combobox.md +18 -19
  23. package/dist/docs/datepicker/api.md +38 -39
  24. package/dist/docs/datepicker/datepicker.md +38 -39
  25. package/dist/docs/expandable/api.md +11 -12
  26. package/dist/docs/expandable/expandable.md +11 -12
  27. package/dist/docs/link/api.md +8 -6
  28. package/dist/docs/link/link.md +8 -6
  29. package/dist/docs/page-indicator/api.md +7 -8
  30. package/dist/docs/page-indicator/page-indicator.md +7 -8
  31. package/dist/docs/pagination/api.md +17 -9
  32. package/dist/docs/pagination/pagination.md +17 -9
  33. package/dist/docs/pill/api.md +30 -17
  34. package/dist/docs/pill/pill.md +30 -17
  35. package/dist/docs/select/api.md +17 -9
  36. package/dist/docs/select/select.md +17 -9
  37. package/dist/docs/slider/api.md +37 -116
  38. package/dist/docs/slider/examples.md +331 -0
  39. package/dist/docs/slider/slider.md +378 -118
  40. package/dist/docs/slider/usage.md +10 -0
  41. package/dist/docs/slider-thumb/api.md +26 -79
  42. package/dist/docs/slider-thumb/slider-thumb.md +26 -81
  43. package/dist/docs/step/api.md +3 -4
  44. package/dist/docs/step/step.md +3 -4
  45. package/dist/docs/step-indicator/api.md +3 -4
  46. package/dist/docs/step-indicator/step-indicator.md +3 -4
  47. package/dist/docs/switch/api.md +13 -5
  48. package/dist/docs/switch/switch.md +13 -5
  49. package/dist/docs/tab/api.md +9 -62
  50. package/dist/docs/tab/tab.md +9 -70
  51. package/dist/docs/tab-panel/api.md +7 -11
  52. package/dist/docs/tab-panel/tab-panel.md +7 -19
  53. package/dist/docs/tabs/accessibility.md +11 -0
  54. package/dist/docs/tabs/api.md +10 -18
  55. package/dist/docs/tabs/examples.md +68 -0
  56. package/dist/docs/tabs/tabs.md +97 -20
  57. package/dist/docs/tabs/usage.md +8 -0
  58. package/dist/docs/textarea/api.md +15 -16
  59. package/dist/docs/textarea/textarea.md +15 -16
  60. package/dist/docs/textfield/api.md +14 -15
  61. package/dist/docs/textfield/textfield.md +14 -15
  62. package/dist/index.d.ts +124 -242
  63. package/dist/packages/affix/affix.js +11 -12
  64. package/dist/packages/affix/affix.js.map +4 -4
  65. package/dist/packages/alert/alert.d.ts +1 -1
  66. package/dist/packages/alert/alert.js.map +1 -1
  67. package/dist/packages/attention/attention.d.ts +3 -2
  68. package/dist/packages/attention/attention.js +27 -28
  69. package/dist/packages/attention/attention.js.map +4 -4
  70. package/dist/packages/breadcrumbs/breadcrumbs.d.ts +7 -1
  71. package/dist/packages/breadcrumbs/breadcrumbs.js +7 -8
  72. package/dist/packages/breadcrumbs/breadcrumbs.js.map +4 -4
  73. package/dist/packages/button/button.d.ts +4 -2
  74. package/dist/packages/button/button.js +14 -15
  75. package/dist/packages/button/button.js.map +4 -4
  76. package/dist/packages/card/card.js +8 -9
  77. package/dist/packages/card/card.js.map +4 -4
  78. package/dist/packages/checkbox/checkbox.d.ts +2 -0
  79. package/dist/packages/checkbox-group/checkbox-group.d.ts +2 -0
  80. package/dist/packages/checkbox-group/checkbox-group.js +15 -16
  81. package/dist/packages/checkbox-group/checkbox-group.js.map +4 -4
  82. package/dist/packages/checkbox-group/locales/da/messages.mjs +1 -1
  83. package/dist/packages/checkbox-group/locales/en/messages.mjs +1 -1
  84. package/dist/packages/checkbox-group/locales/fi/messages.mjs +1 -1
  85. package/dist/packages/checkbox-group/locales/nb/messages.mjs +1 -1
  86. package/dist/packages/checkbox-group/locales/sv/messages.mjs +1 -1
  87. package/dist/packages/combobox/combobox.js +13 -14
  88. package/dist/packages/combobox/combobox.js.map +4 -4
  89. package/dist/packages/combobox/locales/da/messages.mjs +1 -1
  90. package/dist/packages/combobox/locales/en/messages.mjs +1 -1
  91. package/dist/packages/combobox/locales/fi/messages.mjs +1 -1
  92. package/dist/packages/combobox/locales/nb/messages.mjs +1 -1
  93. package/dist/packages/combobox/locales/sv/messages.mjs +1 -1
  94. package/dist/packages/datepicker/datepicker.d.ts +2 -0
  95. package/dist/packages/datepicker/datepicker.js +51 -52
  96. package/dist/packages/datepicker/datepicker.js.map +4 -4
  97. package/dist/packages/datepicker/locales/da/messages.mjs +1 -1
  98. package/dist/packages/datepicker/locales/en/messages.mjs +1 -1
  99. package/dist/packages/datepicker/locales/fi/messages.mjs +1 -1
  100. package/dist/packages/datepicker/locales/nb/messages.mjs +1 -1
  101. package/dist/packages/datepicker/locales/sv/messages.mjs +1 -1
  102. package/dist/packages/link/link.d.ts +2 -0
  103. package/dist/packages/modal-header/modal-header.js +13 -14
  104. package/dist/packages/modal-header/modal-header.js.map +4 -4
  105. package/dist/packages/page-indicator/page-indicator.js +7 -8
  106. package/dist/packages/page-indicator/page-indicator.js.map +4 -4
  107. package/dist/packages/pagination/locales/da/messages.mjs +1 -1
  108. package/dist/packages/pagination/locales/en/messages.mjs +1 -1
  109. package/dist/packages/pagination/locales/fi/messages.mjs +1 -1
  110. package/dist/packages/pagination/locales/nb/messages.mjs +1 -1
  111. package/dist/packages/pagination/locales/sv/messages.mjs +1 -1
  112. package/dist/packages/pagination/pagination.js +31 -32
  113. package/dist/packages/pagination/pagination.js.map +4 -4
  114. package/dist/packages/pagination/pagination.test.js +38 -0
  115. package/dist/packages/pill/pill.js +11 -12
  116. package/dist/packages/pill/pill.js.map +4 -4
  117. package/dist/packages/radio/radio.d.ts +2 -0
  118. package/dist/packages/radio-group/radio-group.d.ts +2 -0
  119. package/dist/packages/radio-group/radio-group.js +17 -18
  120. package/dist/packages/radio-group/radio-group.js.map +4 -4
  121. package/dist/packages/select/select.js +19 -20
  122. package/dist/packages/select/select.js.map +4 -4
  123. package/dist/packages/slider/locales/da/messages.mjs +1 -1
  124. package/dist/packages/slider/locales/en/messages.mjs +1 -1
  125. package/dist/packages/slider/locales/fi/messages.mjs +1 -1
  126. package/dist/packages/slider/locales/nb/messages.mjs +1 -1
  127. package/dist/packages/slider/locales/sv/messages.mjs +1 -1
  128. package/dist/packages/slider/slider.d.ts +36 -45
  129. package/dist/packages/slider/slider.js +22 -23
  130. package/dist/packages/slider/slider.js.map +4 -4
  131. package/dist/packages/slider-thumb/slider-thumb.d.ts +41 -31
  132. package/dist/packages/slider-thumb/slider-thumb.js +33 -34
  133. package/dist/packages/slider-thumb/slider-thumb.js.map +4 -4
  134. package/dist/packages/step/locales/da/messages.mjs +1 -1
  135. package/dist/packages/step/locales/en/messages.mjs +1 -1
  136. package/dist/packages/step/locales/fi/messages.mjs +1 -1
  137. package/dist/packages/step/locales/nb/messages.mjs +1 -1
  138. package/dist/packages/step/locales/sv/messages.mjs +1 -1
  139. package/dist/packages/step/step.js +11 -12
  140. package/dist/packages/step/step.js.map +4 -4
  141. package/dist/packages/switch/switch.d.ts +2 -0
  142. package/dist/packages/tab/tab.d.ts +31 -24
  143. package/dist/packages/tab/tab.js +3 -3
  144. package/dist/packages/tab/tab.js.map +2 -2
  145. package/dist/packages/tab-panel/tab-panel.d.ts +9 -8
  146. package/dist/packages/tab-panel/tab-panel.js +3 -3
  147. package/dist/packages/tab-panel/tab-panel.js.map +2 -2
  148. package/dist/packages/tabs/index.d.ts +1 -0
  149. package/dist/packages/tabs/index.js +0 -1
  150. package/dist/packages/tabs/react.d.ts +4 -3
  151. package/dist/packages/tabs/tabs.d.ts +9 -3
  152. package/dist/packages/tabs/tabs.js +1 -1
  153. package/dist/packages/tabs/tabs.js.map +3 -3
  154. package/dist/packages/tabs/tabs.react.stories.d.ts +2 -2
  155. package/dist/packages/textarea/textarea.d.ts +2 -0
  156. package/dist/packages/textarea/textarea.js +20 -21
  157. package/dist/packages/textarea/textarea.js.map +4 -4
  158. package/dist/packages/textfield/textfield.d.ts +2 -0
  159. package/dist/packages/toast/toast.js +13 -14
  160. package/dist/packages/toast/toast.js.map +4 -4
  161. package/dist/web-types.json +206 -98
  162. package/package.json +20 -19
  163. package/dist/docs/tab/accessibility.md +0 -1
  164. package/dist/docs/tab/examples.md +0 -1
  165. package/dist/docs/tab/usage.md +0 -1
  166. package/dist/docs/tab-panel/accessibility.md +0 -1
  167. package/dist/docs/tab-panel/examples.md +0 -1
  168. package/dist/docs/tab-panel/usage.md +0 -1
@@ -1,7 +1,7 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
2
  import '../link/link.js';
3
- type ButtonVariant = 'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet';
4
- type ButtonType = 'button' | 'submit' | 'reset';
3
+ export type ButtonVariant = 'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet';
4
+ export type ButtonType = 'button' | 'submit' | 'reset';
5
5
  declare const WarpButton_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
6
6
  /**
7
7
  * Buttons are used to perform actions, widh different visuals for different needs.
@@ -13,6 +13,8 @@ declare class WarpButton extends WarpButton_base {
13
13
  static styles: import("lit").CSSResult[];
14
14
  static shadowRootOptions: {
15
15
  delegatesFocus: boolean;
16
+ clonable?: boolean;
17
+ customElementRegistry?: CustomElementRegistry;
16
18
  mode: ShadowRootMode;
17
19
  serializable?: boolean;
18
20
  slotAssignment?: SlotAssignmentMode;
@@ -1,5 +1,4 @@
1
- var Re=Object.create;var ee=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var Xe=Object.getPrototypeOf,Ze=Object.prototype.hasOwnProperty;var ce=o=>{throw TypeError(o)};var de=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var Ge=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of He(e))!Ze.call(o,a)&&a!==r&&ee(o,a,{get:()=>e[a],enumerable:!(t=le(e,a))||t.enumerable});return o};var Be=(o,e,r)=>(r=o!=null?Re(Xe(o)):{},Ge(e||!o||!o.__esModule?ee(r,"default",{value:o,enumerable:!0}):r,o));var u=(o,e,r,t)=>{for(var a=t>1?void 0:t?le(e,r):e,l=o.length-1,s;l>=0;l--)(s=o[l])&&(a=(t?s(e,r,a):s(a))||a);return t&&a&&ee(e,r,a),a};var ve=(o,e,r)=>e.has(o)||ce("Cannot "+r);var ue=(o,e,r)=>(ve(o,e,"read from private field"),r?r.call(o):e.get(o)),be=(o,e,r)=>e.has(o)?ce("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,r),he=(o,e,r,t)=>(ve(o,e,"write to private field"),t?t.call(o,r):e.set(o,r),r);var ge=de(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.errorMessages=I.ErrorType=void 0;var D;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(D=I.ErrorType||(I.ErrorType={}));I.errorMessages=new Map([[D.MalformedUnicode,"malformed Unicode character escape sequence"],[D.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[D.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[D.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[D.EndOfString,"malformed escape sequence at end of string"]])});var we=de(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.unraw=E.errorMessages=E.ErrorType=void 0;var w=ge();Object.defineProperty(E,"ErrorType",{enumerable:!0,get:function(){return w.ErrorType}});Object.defineProperty(E,"errorMessages",{enumerable:!0,get:function(){return w.errorMessages}});function Je(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function R(o,e,r){let t=Je(o);if(Number.isNaN(t)||r!==void 0&&r!==o.length)throw new SyntaxError(w.errorMessages.get(e));return t}function Ke(o){let e=R(o,w.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function pe(o,e){let r=R(o,w.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=R(e,w.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}function We(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function er(o){if(!We(o))throw new SyntaxError(w.errorMessages.get(w.ErrorType.MalformedUnicode));let e=o.slice(1,-1),r=R(e,w.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(w.errorMessages.get(w.ErrorType.CodePointLimit)):t}}function rr(o,e=!1){if(e)throw new SyntaxError(w.errorMessages.get(w.ErrorType.OctalDeprecation));let r=parseInt(o,8);return String.fromCharCode(r)}var or=new Map([["b","\b"],["f","\f"],["n",`
2
- `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function tr(o){return or.get(o)||o}var ar=/\\(?:(\\)|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 me(o,e=!1){return o.replace(ar,function(r,t,a,l,s,i,v,p,z){if(t!==void 0)return"\\";if(a!==void 0)return Ke(a);if(l!==void 0)return er(l);if(s!==void 0)return pe(s,i);if(v!==void 0)return pe(v);if(p==="0")return"\0";if(p!==void 0)return rr(p,!e);if(z!==void 0)return tr(z);throw new SyntaxError(w.errorMessages.get(w.ErrorType.EndOfString))})}E.unraw=me;E.default=me});var ke=Be(we(),1);var L=o=>typeof o=="string",ir=o=>typeof o=="function",fe=new Map,ye="en";function ae(o){return[...Array.isArray(o)?o:[o],ye]}function ie(o,e,r){let t=ae(o);r||(r="default");let a;if(typeof r=="string")switch(a={day:"numeric",month:"short",year:"numeric"},r){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=r;return H(()=>X("date",t,r),()=>new Intl.DateTimeFormat(t,a)).format(L(e)?new Date(e):e)}function nr(o,e,r){let t;if(r||(r="default"),typeof r=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=r;return ie(o,e,t)}function re(o,e,r){let t=ae(o);return H(()=>X("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function xe(o,e,r,{offset:t=0,...a}){var i,v;let l=ae(o),s=e?H(()=>X("plural-ordinal",l),()=>new Intl.PluralRules(l,{type:"ordinal"})):H(()=>X("plural-cardinal",l),()=>new Intl.PluralRules(l,{type:"cardinal"}));return(v=(i=a[r])!=null?i:a[s.select(r-t)])!=null?v:a.other}function H(o,e){let r=o(),t=fe.get(r);return t||(t=e(),fe.set(r,t)),t}function X(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var _e=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ze="%__lingui_octothorpe__%",sr=(o,e,r={})=>{let t=e||o,a=s=>typeof s=="object"?s:r[s],l=(s,i)=>{let v=Object.keys(r).length?a("number"):void 0,p=re(t,s,v);return i.replace(new RegExp(ze,"g"),p)};return{plural:(s,i)=>{let{offset:v=0}=i,p=xe(t,!1,s,i);return l(s-v,p)},selectordinal:(s,i)=>{let{offset:v=0}=i,p=xe(t,!0,s,i);return l(s-v,p)},select:lr,number:(s,i)=>re(t,s,a(i)||{style:i}),date:(s,i)=>ie(t,s,a(i)||i),time:(s,i)=>nr(t,s,a(i)||i)}},lr=(o,e)=>{var r;return(r=e[o])!=null?r:e.other};function cr(o,e,r){return(t={},a)=>{let l=sr(e,r,a),s=(v,p=!1)=>Array.isArray(v)?v.reduce((z,F)=>{if(F==="#"&&p)return z+ze;if(L(F))return z+F;let[N,y,S]=F,O={};y==="plural"||y==="selectordinal"||y==="select"?Object.entries(S).forEach(([V,j])=>{O[V]=s(j,y==="plural"||y==="selectordinal")}):O=S;let x;if(y){let V=l[y];x=V(t[N],O)}else x=t[N];return x==null?z:z+x},""):v,i=s(o);return L(i)&&_e.test(i)?(0,ke.unraw)(i):L(i)?i:i?String(i):""}}var dr=Object.defineProperty,vr=(o,e,r)=>e in o?dr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,ur=(o,e,r)=>(vr(o,typeof e!="symbol"?e+"":e,r),r),oe=class{constructor(){ur(this,"_events",{})}on(e,r){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(r);~a&&t.splice(a,1)}emit(e,...r){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,r))}_getListeners(e){let r=this._events[e];return Array.isArray(r)?r:!1}},br=Object.defineProperty,hr=(o,e,r)=>e in o?br(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,P=(o,e,r)=>(hr(o,typeof e!="symbol"?e+"":e,r),r),te=class extends oe{constructor(e){var r;super(),P(this,"_locale",""),P(this,"_locales"),P(this,"_localeData",{}),P(this,"_messages",{}),P(this,"_missing"),P(this,"_messageCompiler"),P(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((r=e.locale)!=null?r:ye,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){let t=this._localeData[e];t?Object.assign(t,r):this._localeData[e]=r}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,r){typeof e=="string"?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){let t=this._messages[e];t?Object.assign(t,r):this._messages[e]=r}load(e,r){typeof e=="string"&&typeof r=="object"?this._load(e,r):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r,t){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 a=t==null?void 0:t.message;e||(e=""),L(e)||(r=e.values||r,a=e.message,e=e.id);let l=this.messages[e],s=l===void 0,i=this._missing;if(i&&s)return ir(i)?i(this._locale,e):i;s&&this.emit("missing",{id:e,locale:this._locale});let v=l||a||e;return L(v)&&(this._messageCompiler?v=this._messageCompiler(v):console.warn(`Uncompiled message detected! Message:
1
+ var Pe=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var oe=o=>{throw TypeError(o)};var b=(o,e,r,t)=>{for(var a=t>1?void 0:t?Te(e,r):e,l=o.length-1,s;l>=0;l--)(s=o[l])&&(a=(t?s(e,r,a):s(a))||a);return t&&a&&Pe(e,r,a),a};var te=(o,e,r)=>e.has(o)||oe("Cannot "+r);var ae=(o,e,r)=>(te(o,e,"read from private field"),r?r.call(o):e.get(o)),ie=(o,e,r)=>e.has(o)?oe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,r),ne=(o,e,r,t)=>(te(o,e,"write to private field"),t?t.call(o,r):e.set(o,r),r);var V=o=>typeof o=="string",Oe=o=>typeof o=="function",se=new Map,ce="en";function K(o){return[...Array.isArray(o)?o:[o],ce]}function W(o,e,r){let t=K(o);r||(r="default");let a;if(typeof r=="string")switch(a={day:"numeric",month:"short",year:"numeric"},r){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=r;return N(()=>Q("date",t,r),()=>new Intl.DateTimeFormat(t,a)).format(V(e)?new Date(e):e)}function $e(o,e,r){let t;if(r||(r="default"),typeof r=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=r;return W(o,e,t)}function B(o,e,r){let t=K(o);return N(()=>Q("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function le(o,e,r,{offset:t=0,...a}){var i,v;let l=K(o),s=e?N(()=>Q("plural-ordinal",l),()=>new Intl.PluralRules(l,{type:"ordinal"})):N(()=>Q("plural-cardinal",l),()=>new Intl.PluralRules(l,{type:"cardinal"}));return(v=(i=a[r])!=null?i:a[s.select(r-t)])!=null?v:a.other}function N(o,e){let r=o(),t=se.get(r);return t||(t=e(),se.set(r,t)),t}function Q(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var de=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ve=o=>o.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,r,t)=>{if(r){let a=parseInt(r,16);return String.fromCharCode(a)}else{let a=parseInt(t,16);return String.fromCharCode(a)}}),be="%__lingui_octothorpe__%",je=(o,e,r={})=>{let t=e||o,a=s=>typeof s=="object"?s:r[s],l=(s,i)=>{let v=Object.keys(r).length?a("number"):void 0,m=B(t,s,v);return i.replace(new RegExp(be,"g"),m)};return{plural:(s,i)=>{let{offset:v=0}=i,m=le(t,!1,s,i);return l(s-v,m)},selectordinal:(s,i)=>{let{offset:v=0}=i,m=le(t,!0,s,i);return l(s-v,m)},select:Ae,number:(s,i)=>B(t,s,a(i)||{style:i}),date:(s,i)=>W(t,s,a(i)||i),time:(s,i)=>$e(t,s,a(i)||i)}},Ae=(o,e)=>{var r;return(r=e[o])!=null?r:e.other};function Ye(o,e,r){return(t={},a)=>{let l=je(e,r,a),s=(v,m=!1)=>Array.isArray(v)?v.reduce((C,M)=>{if(M==="#"&&m)return C+be;if(V(M))return C+M;let[P,k,F]=M,E={};k==="plural"||k==="selectordinal"||k==="select"?Object.entries(F).forEach(([L,O])=>{E[L]=s(O,k==="plural"||k==="selectordinal")}):E=F;let f;if(k){let L=l[k];f=L(t[P],E)}else f=t[P];return f==null?C:C+f},""):v,i=s(o);return V(i)&&de.test(i)?ve(i):V(i)?i:i?String(i):""}}var qe=Object.defineProperty,Ne=(o,e,r)=>e in o?qe(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Qe=(o,e,r)=>(Ne(o,typeof e!="symbol"?e+"":e,r),r),H=class{constructor(){Qe(this,"_events",{})}on(e,r){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(r);~a&&t.splice(a,1)}emit(e,...r){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,r))}_getListeners(e){let r=this._events[e];return Array.isArray(r)?r:!1}},De=Object.defineProperty,Xe=(o,e,r)=>e in o?De(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,I=(o,e,r)=>(Xe(o,typeof e!="symbol"?e+"":e,r),r),J=class extends H{constructor(e){var r;super(),I(this,"_locale",""),I(this,"_locales"),I(this,"_localeData",{}),I(this,"_messages",{}),I(this,"_missing"),I(this,"_messageCompiler"),I(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((r=e.locale)!=null?r:ce,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){let t=this._localeData[e];t?Object.assign(t,r):this._localeData[e]=r}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,r){typeof e=="string"?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){let t=this._messages[e];t?Object.assign(t,r):this._messages[e]=r}load(e,r){typeof e=="string"&&typeof r=="object"?this._load(e,r):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r,t){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 a=t==null?void 0:t.message;e||(e=""),V(e)||(r=e.values||r,a=e.message,e=e.id);let l=this.messages[e],s=l===void 0,i=this._missing;if(i&&s)return Oe(i)?i(this._locale,e):i;s&&this.emit("missing",{id:e,locale:this._locale});let v=l||a||e;return V(v)&&(this._messageCompiler?v=this._messageCompiler(v):console.warn(`Uncompiled message detected! Message:
3
2
 
4
3
  > ${v}
5
4
 
@@ -7,7 +6,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
7
6
  ICU features such as interpolation and plurals will not work properly for that message.
8
7
 
9
8
  Please compile your catalog first.
10
- `)),L(v)&&_e.test(v)?JSON.parse(`"${v}"`):L(v)?v:cr(v,this._locale,this._locales)(r,t==null?void 0:t.formats)}date(e,r){return ie(this._locales||this._locale,e,r)}number(e,r){return re(this._locales||this._locale,e,r)}};function gr(o={}){return new te(o)}var C=gr();var d=function(o,e,r,t){if(r==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!t:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?t:r==="a"?t.call(o):t?t.value:e.get(o)},g=function(o,e,r,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!a:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(o,r):a?a.value=r:e.set(o,r),r};function Ce(o){var e,r,t,a,l,s,i,v,p,z,F,N,y,S,O,x,V,j,J;class Ue extends o{constructor(...n){var c,h,m;super(...n),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),t.set(this,!1),a.set(this,!1),l.set(this,void 0),s.set(this,void 0),i.set(this,!0),p.set(this,""),z.set(this,()=>{g(this,a,!0,"f"),g(this,r,!0,"f"),d(this,e,"m",x).call(this)}),F.set(this,()=>{g(this,r,!1,"f"),d(this,e,"m",V).call(this,this.shouldFormValueUpdate()?d(this,p,"f"):""),!this.validity.valid&&d(this,a,"f")&&g(this,t,!0,"f");let M=d(this,e,"m",x).call(this);this.validationMessageCallback&&this.validationMessageCallback(M?this.internals.validationMessage:"")}),N.set(this,()=>{var M;d(this,i,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),g(this,i,!1,"f")),g(this,a,!0,"f"),g(this,t,!0,"f"),d(this,e,"m",x).call(this),(M=this===null||this===void 0?void 0:this.validationMessageCallback)===null||M===void 0||M.call(this,this.showError?this.internals.validationMessage:"")}),y.set(this,void 0),S.set(this,!1),O.set(this,Promise.resolve()),(c=this.addEventListener)===null||c===void 0||c.call(this,"focus",d(this,z,"f")),(h=this.addEventListener)===null||h===void 0||h.call(this,"blur",d(this,F,"f")),(m=this.addEventListener)===null||m===void 0||m.call(this,"invalid",d(this,N,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let n=this.validators.map(m=>m.attribute).flat(),c=super.observedAttributes||[];return[...new Set([...c,...n])]}static getValidator(n){return this.validators.find(c=>c.attribute===n)||null}static getValidators(n){return this.validators.filter(c=>{var h;if(c.attribute===n||!((h=c.attribute)===null||h===void 0)&&h.includes(n))return!0})}get form(){return this.internals.form}get showError(){return d(this,e,"m",x).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(n,c,h){var m;(m=super.attributeChangedCallback)===null||m===void 0||m.call(this,n,c,h);let q=this.constructor.getValidators(n);q!=null&&q.length&&this.validationTarget&&this.setValue(d(this,p,"f"))}setValue(n){var c;g(this,t,!1,"f"),(c=this.validationMessageCallback)===null||c===void 0||c.call(this,""),g(this,p,n,"f");let m=this.shouldFormValueUpdate()?n:null;this.internals.setFormValue(m),d(this,e,"m",V).call(this,m),this.valueChangedCallback&&this.valueChangedCallback(m),d(this,e,"m",x).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(n=>n(d(this,O,"f")))}formResetCallback(){var n,c;g(this,a,!1,"f"),g(this,t,!1,"f"),d(this,e,"m",x).call(this),(n=this.resetFormControl)===null||n===void 0||n.call(this),(c=this.validationMessageCallback)===null||c===void 0||c.call(this,d(this,e,"m",x).call(this)?this.validationMessage:"")}}return r=new WeakMap,t=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap,i=new WeakMap,p=new WeakMap,z=new WeakMap,F=new WeakMap,N=new WeakMap,y=new WeakMap,S=new WeakMap,O=new WeakMap,e=new WeakSet,v=function(){let n=this.getRootNode(),c=`${this.localName}[name="${this.getAttribute("name")}"]`;return n.querySelectorAll(c)},x=function(){if(this.hasAttribute("disabled"))return!1;let n=d(this,t,"f")||d(this,a,"f")&&!this.validity.valid&&!d(this,r,"f");return n&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),n},V=function(n){let c=this.constructor,h={},m=c.validators,M=[],q=m.some(_=>_.isValid instanceof Promise);d(this,S,"f")||(g(this,O,new Promise(_=>{g(this,y,_,"f")}),"f"),g(this,S,!0,"f")),d(this,l,"f")&&(d(this,l,"f").abort(),g(this,s,d(this,l,"f"),"f"));let Y=new AbortController;g(this,l,Y,"f");let Q,se=!1;m.length&&(m.forEach(_=>{let K=_.key||"customError",A=_.isValid(this,n,Y.signal);A instanceof Promise?(M.push(A),A.then(W=>{W!=null&&(h[K]=!W,Q=d(this,e,"m",J).call(this,_,n),d(this,e,"m",j).call(this,h,Q))})):(h[K]=!A,this.validity[K]!==!A&&(se=!0),!A&&!Q&&(Q=d(this,e,"m",J).call(this,_,n)))}),Promise.allSettled(M).then(()=>{var _;Y!=null&&Y.signal.aborted||(g(this,S,!1,"f"),(_=d(this,y,"f"))===null||_===void 0||_.call(this))}),(se||!q)&&d(this,e,"m",j).call(this,h,Q))},j=function(n,c){if(this.validationTarget)this.internals.setValidity(n,c,this.validationTarget),g(this,i,!1,"f");else{if(this.internals.setValidity(n,c),this.internals.validity.valid)return;g(this,i,!0,"f")}},J=function(n,c){if(this.validityCallback){let h=this.validityCallback(n.key||"customError");if(h)return h}return n.message instanceof Function?n.message(this,c):n.message},Ue}import{html as B,LitElement as Ye,nothing as Cr}from"lit";import{property as f}from"lit/decorators.js";var pr=["en","nb","fi","da","sv"],ne="en",Z=o=>pr.find(e=>o===e||o.toLowerCase().includes(e))||ne;function Fe(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Z(o)}try{let o=Ee(document);if(o)return Z(o);let e=xr();if(e)return Z(e);let r=Ee(Le());return r?Z(r):ne}catch(o){return console.warn("could not detect locale, falling back to source locale",o),ne}}var Se=(o,e,r,t,a)=>{C.load("en",o),C.load("nb",e),C.load("fi",r),C.load("da",t),C.load("sv",a);let l=Fe();C.activate(l),Oe(),wr()},mr="warp-i18n-change";function Oe(){typeof window!="undefined"&&window.dispatchEvent(new Event(mr))}var Me=!1;function wr(){if(Me||typeof window=="undefined"||!(document!=null&&document.documentElement))return;Me=!0;let o=()=>{let a=Fe();C.locale!==a&&(C.activate(a),Oe())},e=new MutationObserver(a=>{for(let l of a)if(l.type==="attributes"&&l.attributeName==="lang"){o();break}});e.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});let r=Le();r&&r.documentElement&&r!==document&&e.observe(r.documentElement,{attributes:!0,attributeFilter:["lang"]});let t=fr();t&&e.observe(t,{attributes:!0,attributeFilter:["lang"]})}function Le(){var o,e;try{return(e=(o=window.parent)==null?void 0:o.document)!=null?e:null}catch(r){return null}}function Ee(o){var e,r;try{return(r=(e=o==null?void 0:o.documentElement)==null?void 0:e.lang)!=null?r:""}catch(t){return""}}function fr(){var o;try{return(o=window.frameElement)!=null?o:null}catch(e){return null}}function xr(){var o,e,r;try{return(r=(e=(o=window.frameElement)==null?void 0:o.getAttribute)==null?void 0:e.call(o,"lang"))!=null?r:""}catch(t){return""}}import{html as yr,LitElement as Ie,nothing as _r}from"lit";import{property as T}from"lit/decorators.js";import{css as Te}from"lit";var G=Te`
9
+ `)),V(v)&&de.test(v)?ve(v):V(v)?v:Ye(v,this._locale,this._locales)(r,t==null?void 0:t.formats)}date(e,r){return W(this._locales||this._locale,e,r)}number(e,r){return B(this._locales||this._locale,e,r)}};function Ze(o={}){return new J(o)}var _=Ze();var d=function(o,e,r,t){if(r==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!t:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?t:r==="a"?t.call(o):t?t.value:e.get(o)},g=function(o,e,r,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!a:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(o,r):a?a.value=r:e.set(o,r),r};function ue(o){var e,r,t,a,l,s,i,v,m,C,M,P,k,F,E,f,L,O,R;class Ie extends o{constructor(...n){var c,h,p;super(...n),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),t.set(this,!1),a.set(this,!1),l.set(this,void 0),s.set(this,void 0),i.set(this,!0),m.set(this,""),C.set(this,()=>{g(this,a,!0,"f"),g(this,r,!0,"f"),d(this,e,"m",f).call(this)}),M.set(this,()=>{g(this,r,!1,"f"),d(this,e,"m",L).call(this,this.shouldFormValueUpdate()?d(this,m,"f"):""),!this.validity.valid&&d(this,a,"f")&&g(this,t,!0,"f");let z=d(this,e,"m",f).call(this);this.validationMessageCallback&&this.validationMessageCallback(z?this.internals.validationMessage:"")}),P.set(this,()=>{var z;d(this,i,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),g(this,i,!1,"f")),g(this,a,!0,"f"),g(this,t,!0,"f"),d(this,e,"m",f).call(this),(z=this===null||this===void 0?void 0:this.validationMessageCallback)===null||z===void 0||z.call(this,this.showError?this.internals.validationMessage:"")}),k.set(this,void 0),F.set(this,!1),E.set(this,Promise.resolve()),(c=this.addEventListener)===null||c===void 0||c.call(this,"focus",d(this,C,"f")),(h=this.addEventListener)===null||h===void 0||h.call(this,"blur",d(this,M,"f")),(p=this.addEventListener)===null||p===void 0||p.call(this,"invalid",d(this,P,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let n=this.validators.map(p=>p.attribute).flat(),c=super.observedAttributes||[];return[...new Set([...c,...n])]}static getValidator(n){return this.validators.find(c=>c.attribute===n)||null}static getValidators(n){return this.validators.filter(c=>{var h;if(c.attribute===n||!((h=c.attribute)===null||h===void 0)&&h.includes(n))return!0})}get form(){return this.internals.form}get showError(){return d(this,e,"m",f).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(n,c,h){var p;(p=super.attributeChangedCallback)===null||p===void 0||p.call(this,n,c,h);let j=this.constructor.getValidators(n);j!=null&&j.length&&this.validationTarget&&this.setValue(d(this,m,"f"))}setValue(n){var c;g(this,t,!1,"f"),(c=this.validationMessageCallback)===null||c===void 0||c.call(this,""),g(this,m,n,"f");let p=this.shouldFormValueUpdate()?n:null;this.internals.setFormValue(p),d(this,e,"m",L).call(this,p),this.valueChangedCallback&&this.valueChangedCallback(p),d(this,e,"m",f).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(n=>n(d(this,E,"f")))}formResetCallback(){var n,c;g(this,a,!1,"f"),g(this,t,!1,"f"),d(this,e,"m",f).call(this),(n=this.resetFormControl)===null||n===void 0||n.call(this),(c=this.validationMessageCallback)===null||c===void 0||c.call(this,d(this,e,"m",f).call(this)?this.validationMessage:"")}}return r=new WeakMap,t=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap,i=new WeakMap,m=new WeakMap,C=new WeakMap,M=new WeakMap,P=new WeakMap,k=new WeakMap,F=new WeakMap,E=new WeakMap,e=new WeakSet,v=function(){let n=this.getRootNode(),c=`${this.localName}[name="${this.getAttribute("name")}"]`;return n.querySelectorAll(c)},f=function(){if(this.hasAttribute("disabled"))return!1;let n=d(this,t,"f")||d(this,a,"f")&&!this.validity.valid&&!d(this,r,"f");return n&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),n},L=function(n){let c=this.constructor,h={},p=c.validators,z=[],j=p.some(y=>y.isValid instanceof Promise);d(this,F,"f")||(g(this,E,new Promise(y=>{g(this,k,y,"f")}),"f"),g(this,F,!0,"f")),d(this,l,"f")&&(d(this,l,"f").abort(),g(this,s,d(this,l,"f"),"f"));let A=new AbortController;g(this,l,A,"f");let Y,re=!1;p.length&&(p.forEach(y=>{let U=y.key||"customError",T=y.isValid(this,n,A.signal);T instanceof Promise?(z.push(T),T.then(G=>{G!=null&&(h[U]=!G,Y=d(this,e,"m",R).call(this,y,n),d(this,e,"m",O).call(this,h,Y))})):(h[U]=!T,this.validity[U]!==!T&&(re=!0),!T&&!Y&&(Y=d(this,e,"m",R).call(this,y,n)))}),Promise.allSettled(z).then(()=>{var y;A!=null&&A.signal.aborted||(g(this,F,!1,"f"),(y=d(this,k,"f"))===null||y===void 0||y.call(this))}),(re||!j)&&d(this,e,"m",O).call(this,h,Y))},O=function(n,c){if(this.validationTarget)this.internals.setValidity(n,c,this.validationTarget),g(this,i,!1,"f");else{if(this.internals.setValidity(n,c),this.internals.validity.valid)return;g(this,i,!0,"f")}},R=function(n,c){if(this.validityCallback){let h=this.validityCallback(n.key||"customError");if(h)return h}return n.message instanceof Function?n.message(this,c):n.message},Ie}import{html as Z,LitElement as Se,nothing as rr}from"lit";import{property as w}from"lit/decorators.js";var Re=["en","nb","fi","da","sv"],ee="en",D=o=>Re.find(e=>o===e||o.toLowerCase().includes(e))||ee;function pe(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return D(o)}try{let o=ge(document);if(o)return D(o);let e=He();if(e)return D(e);let r=ge(fe());return r?D(r):ee}catch(o){return console.warn("could not detect locale, falling back to source locale",o),ee}}var we=(o,e,r,t,a)=>{_.load("en",o),_.load("nb",e),_.load("fi",r),_.load("da",t),_.load("sv",a);let l=pe();_.activate(l),me(),Ge()},Ue="warp-i18n-change";function me(){typeof window!="undefined"&&window.dispatchEvent(new Event(Ue))}var he=!1;function Ge(){if(he||typeof window=="undefined"||!(document!=null&&document.documentElement))return;he=!0;let o=()=>{let a=pe();_.locale!==a&&(_.activate(a),me())},e=new MutationObserver(a=>{for(let l of a)if(l.type==="attributes"&&l.attributeName==="lang"){o();break}});e.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});let r=fe();r&&r.documentElement&&r!==document&&e.observe(r.documentElement,{attributes:!0,attributeFilter:["lang"]});let t=Be();t&&e.observe(t,{attributes:!0,attributeFilter:["lang"]})}function fe(){var o,e;try{return(e=(o=window.parent)==null?void 0:o.document)!=null?e:null}catch(r){return null}}function ge(o){var e,r;try{return(r=(e=o==null?void 0:o.documentElement)==null?void 0:e.lang)!=null?r:""}catch(t){return""}}function Be(){var o;try{return(o=window.frameElement)!=null?o:null}catch(e){return null}}function He(){var o,e,r;try{return(r=(e=(o=window.frameElement)==null?void 0:o.getAttribute)==null?void 0:e.call(o,"lang"))!=null?r:""}catch(t){return""}}import{html as Ke,LitElement as ye,nothing as We}from"lit";import{property as S}from"lit/decorators.js";import{css as xe}from"lit";var X=xe`
11
10
  *,
12
11
  :before,
13
12
  :after {
@@ -280,7 +279,7 @@ Please compile your catalog first.
280
279
  svg {
281
280
  pointer-events: none;
282
281
  }
283
- `,Ar=Te`*, :before, :after {
282
+ `,vr=xe`*, :before, :after {
284
283
  --w-rotate: 0;
285
284
  --w-rotate-x: 0;
286
285
  --w-rotate-y: 0;
@@ -2446,7 +2445,7 @@ Please compile your catalog first.
2446
2445
  display: none
2447
2446
  }
2448
2447
  }
2449
- `;import{css as kr}from"lit";var Ve=kr`
2448
+ `;import{css as Je}from"lit";var ke=Je`
2450
2449
  /* If not a link variant this should look like a button */
2451
2450
  :host(:not([variant="link"])) {
2452
2451
  --_background: var(--background, var(--w-s-color-background));
@@ -2657,17 +2656,17 @@ Please compile your catalog first.
2657
2656
  width: 100%;
2658
2657
  max-width: 100%;
2659
2658
  }
2660
- `;var Pe=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],k=class extends Ie{constructor(){super(...arguments);this.autofocus=!1;this.small=!1;this.disabled=!1;this.fullWidth=!1}connectedCallback(){if(super.connectedCallback(),this.variant&&!Pe.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2661
- ${Pe.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){return yr`
2659
+ `;var _e=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],x=class extends ye{constructor(){super(...arguments);this.autofocus=!1;this.small=!1;this.disabled=!1;this.fullWidth=!1}connectedCallback(){if(super.connectedCallback(),this.variant&&!_e.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2660
+ ${_e.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){return Ke`
2662
2661
  <a
2663
2662
  href="${this.href}"
2664
2663
  target="${this.target}"
2665
- rel="${this.target==="_blank"?this.rel||"noopener":_r}"
2664
+ rel="${this.target==="_blank"?this.rel||"noopener":We}"
2666
2665
  tabindex="0"
2667
2666
  >
2668
2667
  <slot></slot>
2669
2668
  </a>
2670
- `}};k.shadowRootOptions={...Ie.shadowRootOptions,delegatesFocus:!0},k.styles=[G,Ve],u([T({type:Boolean,reflect:!0})],k.prototype,"autofocus",2),u([T({reflect:!0})],k.prototype,"variant",2),u([T({type:Boolean,reflect:!0})],k.prototype,"small",2),u([T({reflect:!0})],k.prototype,"href",2),u([T({type:Boolean,reflect:!0})],k.prototype,"disabled",2),u([T({reflect:!0})],k.prototype,"target",2),u([T({reflect:!0})],k.prototype,"rel",2),u([T({attribute:"full-width",type:Boolean,reflect:!0})],k.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",k);var Ne=JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');var Ae=JSON.parse('{"button.aria.loading":["Loading..."]}');var De=JSON.parse('{"button.aria.loading":["Ladataan..."]}');var je=JSON.parse('{"button.aria.loading":["Laster..."]}');var $e=JSON.parse('{"button.aria.loading":["Laddar ..."]}');import{css as zr}from"lit";var qe=zr`
2669
+ `}};x.shadowRootOptions={...ye.shadowRootOptions,delegatesFocus:!0},x.styles=[X,ke],b([S({type:Boolean,reflect:!0})],x.prototype,"autofocus",2),b([S({reflect:!0})],x.prototype,"variant",2),b([S({type:Boolean,reflect:!0})],x.prototype,"small",2),b([S({reflect:!0})],x.prototype,"href",2),b([S({type:Boolean,reflect:!0})],x.prototype,"disabled",2),b([S({reflect:!0})],x.prototype,"target",2),b([S({reflect:!0})],x.prototype,"rel",2),b([S({attribute:"full-width",type:Boolean,reflect:!0})],x.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",x);var ze=JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');var Ce=JSON.parse('{"button.aria.loading":["Loading..."]}');var Me=JSON.parse('{"button.aria.loading":["Ladataan..."]}');var Fe=JSON.parse('{"button.aria.loading":["Laster..."]}');var Ee=JSON.parse('{"button.aria.loading":["Laddar ..."]}');import{css as er}from"lit";var Ve=er`
2671
2670
  :host {
2672
2671
  /* Local scoped variables, given the default button (the secondary variant) as a default */
2673
2672
  --_background: var(--background, var(--w-s-color-background));
@@ -2947,8 +2946,8 @@ ${Pe.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0
2947
2946
  background-position: 60px 0;
2948
2947
  }
2949
2948
  }
2950
- `;import{ifDefined as Mr}from"lit/directives/if-defined.js";var Qe=["primary","secondary","negative","negativeQuiet","utility","pill","link","quiet","utilityQuiet","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],U,b=class extends Ce(Ye){constructor(){super();this.autofocus=!1;this.quiet=!1;this.iconOnly=!1;this.small=!1;this.loading=!1;this.disabled=!1;this.fullWidth=!1;be(this,U,null);Se(Ae,je,De,Ne,$e),this.ariaValueTextLoading=C.t({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(){super.connectedCallback();let r=this.variant||"secondary";if(!Qe.includes(r))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2951
- ${Qe.join(", ")}.`);he(this,U,this.value)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0)}_handleButtonClick(){this.type==="submit"?this.internals.form.requestSubmit():this.type==="reset"&&this.internals.form.reset()}resetFormControl(){this.value=ue(this,U)}render(){let r=this.variant||"secondary";return B` ${this.href?B`
2949
+ `;import{ifDefined as or}from"lit/directives/if-defined.js";var Le=["primary","secondary","negative","negativeQuiet","utility","pill","link","quiet","utilityQuiet","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],q,u=class extends ue(Se){constructor(){super();this.autofocus=!1;this.quiet=!1;this.iconOnly=!1;this.small=!1;this.loading=!1;this.disabled=!1;this.fullWidth=!1;ie(this,q,null);we(Ce,Fe,Me,ze,Ee),this.ariaValueTextLoading=_.t({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(){super.connectedCallback();let r=this.variant||"secondary";if(!Le.includes(r))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2950
+ ${Le.join(", ")}.`);ne(this,q,this.value)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0)}_handleButtonClick(){this.type==="submit"?this.internals.form.requestSubmit():this.type==="reset"&&this.internals.form.reset()}resetFormControl(){this.value=ae(this,q)}render(){let r=this.variant||"secondary";return Z` ${this.href?Z`
2952
2951
  <w-link
2953
2952
  href=${this.href}
2954
2953
  target=${this.target}
@@ -2962,19 +2961,19 @@ ${Qe.join(", ")}.`);he(this,U,this.value)}firstUpdated(){this.autofocus&&!this.h
2962
2961
  >
2963
2962
  <slot></slot>
2964
2963
  </w-link>
2965
- `:B`
2964
+ `:Z`
2966
2965
  <button
2967
2966
  type=${this.type||"button"}
2968
- class=${Mr(this.buttonClass)}
2967
+ class=${or(this.buttonClass)}
2969
2968
  @click="${this._handleButtonClick}"
2970
2969
  >
2971
2970
  <slot></slot>
2972
2971
  </button>
2973
2972
  `}
2974
- ${this.loading?B`<span
2973
+ ${this.loading?Z`<span
2975
2974
  class="sr-only"
2976
2975
  role="progressbar"
2977
2976
  aria-valuenow="{0}"
2978
2977
  aria-valuetext=${this.ariaValueTextLoading}
2979
- ></span>`:Cr}`}};U=new WeakMap,b.styles=[G,qe],b.shadowRootOptions={...Ye.shadowRootOptions,delegatesFocus:!0},u([f({reflect:!0})],b.prototype,"type",2),u([f({type:Boolean,reflect:!0})],b.prototype,"autofocus",2),u([f({reflect:!0})],b.prototype,"variant",2),u([f({type:Boolean,reflect:!0})],b.prototype,"quiet",2),u([f({type:Boolean,reflect:!0,attribute:"icon-only"})],b.prototype,"iconOnly",2),u([f({type:Boolean,reflect:!0})],b.prototype,"small",2),u([f({type:Boolean,reflect:!0})],b.prototype,"loading",2),u([f({reflect:!0})],b.prototype,"href",2),u([f({reflect:!0})],b.prototype,"target",2),u([f({type:Boolean,reflect:!0})],b.prototype,"disabled",2),u([f({reflect:!0})],b.prototype,"rel",2),u([f({attribute:"full-width",type:Boolean,reflect:!0})],b.prototype,"fullWidth",2),u([f({attribute:"button-class",reflect:!0})],b.prototype,"buttonClass",2),u([f({reflect:!0})],b.prototype,"name",2),u([f({reflect:!0})],b.prototype,"value",2);customElements.get("w-button")||customElements.define("w-button",b);export{b as WarpButton};
2978
+ ></span>`:rr}`}};q=new WeakMap,u.styles=[X,Ve],u.shadowRootOptions={...Se.shadowRootOptions,delegatesFocus:!0},b([w({reflect:!0})],u.prototype,"type",2),b([w({type:Boolean,reflect:!0})],u.prototype,"autofocus",2),b([w({reflect:!0})],u.prototype,"variant",2),b([w({type:Boolean,reflect:!0})],u.prototype,"quiet",2),b([w({type:Boolean,reflect:!0,attribute:"icon-only"})],u.prototype,"iconOnly",2),b([w({type:Boolean,reflect:!0})],u.prototype,"small",2),b([w({type:Boolean,reflect:!0})],u.prototype,"loading",2),b([w({reflect:!0})],u.prototype,"href",2),b([w({reflect:!0})],u.prototype,"target",2),b([w({type:Boolean,reflect:!0})],u.prototype,"disabled",2),b([w({reflect:!0})],u.prototype,"rel",2),b([w({attribute:"full-width",type:Boolean,reflect:!0})],u.prototype,"fullWidth",2),b([w({attribute:"button-class",reflect:!0})],u.prototype,"buttonClass",2),b([w({reflect:!0})],u.prototype,"name",2),b([w({reflect:!0})],u.prototype,"value",2);customElements.get("w-button")||customElements.define("w-button",u);export{u as WarpButton};
2980
2979
  //# sourceMappingURL=button.js.map