@warp-ds/elements 2.2.0-next.14 → 2.2.0-next.16
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/README.md +190 -18
- package/dist/custom-elements.json +114 -106
- package/dist/index.d.ts +110 -0
- package/dist/packages/affix/index.d.ts +0 -5
- package/dist/packages/affix/index.js +5 -5
- package/dist/packages/affix/index.js.map +1 -1
- package/dist/packages/alert/index.d.ts +0 -5
- package/dist/packages/alert/index.js +3 -3
- package/dist/packages/alert/index.js.map +1 -1
- package/dist/packages/badge/index.d.ts +0 -5
- package/dist/packages/badge/index.js.map +1 -1
- package/dist/packages/box/index.d.ts +0 -5
- package/dist/packages/box/index.js.map +1 -1
- package/dist/packages/breadcrumbs/index.d.ts +0 -5
- package/dist/packages/breadcrumbs/index.js +2 -2
- package/dist/packages/breadcrumbs/index.js.map +1 -1
- package/dist/packages/button/button.test.js +1 -0
- package/dist/packages/button/index.d.ts +0 -5
- package/dist/packages/button/index.js +7 -7
- package/dist/packages/button/index.js.map +3 -3
- package/dist/packages/card/index.d.ts +0 -5
- package/dist/packages/card/index.js +3 -3
- package/dist/packages/card/index.js.map +1 -1
- package/dist/packages/combobox/index.d.ts +0 -5
- package/dist/packages/combobox/index.js +3 -3
- package/dist/packages/combobox/index.js.map +1 -1
- package/dist/packages/datepicker/datepicker.d.ts +0 -5
- package/dist/packages/datepicker/datepicker.js.map +1 -1
- package/dist/packages/datepicker/index.js.map +1 -1
- package/dist/packages/dead-toggle/index.d.ts +0 -5
- package/dist/packages/dead-toggle/index.js +2 -2
- package/dist/packages/dead-toggle/index.js.map +1 -1
- package/dist/packages/expandable/index.d.ts +0 -5
- package/dist/packages/expandable/index.js +3 -3
- package/dist/packages/expandable/index.js.map +1 -1
- package/dist/packages/link/index.d.ts +0 -5
- package/dist/packages/link/index.js +1 -1
- package/dist/packages/link/index.js.map +1 -1
- package/dist/packages/modal/index.js +7 -7
- package/dist/packages/modal/index.js.map +1 -1
- package/dist/packages/modal/modal-footer.d.ts +0 -5
- package/dist/packages/modal/modal-footer.js.map +1 -1
- package/dist/packages/modal/modal-header.d.ts +0 -5
- package/dist/packages/modal/modal-header.js +2 -2
- package/dist/packages/modal/modal-header.js.map +1 -1
- package/dist/packages/modal/modal-main.d.ts +0 -5
- package/dist/packages/modal/modal-main.js.map +1 -1
- package/dist/packages/pageindicator/index.d.ts +2 -6
- package/dist/packages/pageindicator/index.js +4 -4
- package/dist/packages/pageindicator/index.js.map +2 -2
- package/dist/packages/pagination/index.d.ts +0 -5
- package/dist/packages/pagination/index.js +2 -2
- package/dist/packages/pagination/index.js.map +1 -1
- package/dist/packages/pill/index.d.ts +0 -5
- package/dist/packages/pill/index.js +3 -3
- package/dist/packages/pill/index.js.map +1 -1
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +1 -6
- package/dist/packages/rip-and-tear-checkbox/index.js.map +1 -1
- package/dist/packages/rip-and-tear-radio/index.d.ts +1 -8
- package/dist/packages/rip-and-tear-radio/index.js +4 -4
- package/dist/packages/rip-and-tear-radio/index.js.map +2 -2
- package/dist/packages/select/index.d.ts +0 -5
- package/dist/packages/select/index.js +4 -4
- package/dist/packages/select/index.js.map +1 -1
- package/dist/packages/slider/index.js +19 -19
- package/dist/packages/slider/index.js.map +3 -3
- package/dist/packages/slider/slider-thumb.d.ts +2 -5
- package/dist/packages/slider/slider-thumb.js +18 -18
- package/dist/packages/slider/slider-thumb.js.map +3 -3
- package/dist/packages/slider/slider.d.ts +0 -5
- package/dist/packages/slider/slider.js +3 -3
- package/dist/packages/slider/slider.js.map +2 -2
- package/dist/packages/slider/slider.test.js +21 -0
- package/dist/packages/steps/index.d.ts +0 -6
- package/dist/packages/steps/index.js +5 -5
- package/dist/packages/steps/index.js.map +1 -1
- package/dist/packages/switch/index.d.ts +0 -5
- package/dist/packages/switch/index.js.map +1 -1
- package/dist/packages/tabs/index.js +4 -4
- package/dist/packages/tabs/index.js.map +1 -1
- package/dist/packages/tabs/tab.d.ts +0 -5
- package/dist/packages/textfield/index.d.ts +0 -5
- package/dist/packages/textfield/index.js +4 -4
- package/dist/packages/textfield/index.js.map +1 -1
- package/dist/vscode.html-custom-data.json +18 -18
- package/dist/web-types.json +40 -35
- package/package.json +5 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var we=Object.create;var I=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var xe=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var X=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var _e=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of xe(e))!ye.call(r,a)&&a!==o&&I(r,a,{get:()=>e[a],enumerable:!(t=U(e,a))||t.enumerable});return r};var ze=(r,e,o)=>(o=r!=null?we(ke(r)):{},_e(e||!r||!r.__esModule?I(o,"default",{value:r,enumerable:!0}):o,r));var E=(r,e,o,t)=>{for(var a=t>1?void 0:t?U(e,o):e,n=r.length-1,i;n>=0;n--)(i=r[n])&&(a=(t?i(e,o,a):i(a))||a);return t&&a&&I(e,o,a),a};var Z=X(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.errorMessages=m.ErrorType=void 0;var w;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(w=m.ErrorType||(m.ErrorType={}));m.errorMessages=new Map([[w.MalformedUnicode,"malformed Unicode character escape sequence"],[w.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[w.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[w.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[w.EndOfString,"malformed escape sequence at end of string"]])});var K=X(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.unraw=u.errorMessages=u.ErrorType=void 0;var d=Z();Object.defineProperty(u,"ErrorType",{enumerable:!0,get:function(){return d.ErrorType}});Object.defineProperty(u,"errorMessages",{enumerable:!0,get:function(){return d.errorMessages}});function Ee(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function
|
|
2
|
-
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Se(r){return Ne.get(r)||r}var Ie=/\\(?:(\\)|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 q(r,e=!1){return r.replace(Ie,function(o,t,a,n,i,s,l,b,g){if(t!==void 0)return"\\";if(a!==void 0)return Ce(a);if(n!==void 0)return
|
|
1
|
+
var we=Object.create;var I=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var xe=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var X=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var _e=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of xe(e))!ye.call(r,a)&&a!==o&&I(r,a,{get:()=>e[a],enumerable:!(t=U(e,a))||t.enumerable});return r};var ze=(r,e,o)=>(o=r!=null?we(ke(r)):{},_e(e||!r||!r.__esModule?I(o,"default",{value:r,enumerable:!0}):o,r));var E=(r,e,o,t)=>{for(var a=t>1?void 0:t?U(e,o):e,n=r.length-1,i;n>=0;n--)(i=r[n])&&(a=(t?i(e,o,a):i(a))||a);return t&&a&&I(e,o,a),a};var Z=X(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.errorMessages=m.ErrorType=void 0;var w;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(w=m.ErrorType||(m.ErrorType={}));m.errorMessages=new Map([[w.MalformedUnicode,"malformed Unicode character escape sequence"],[w.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[w.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[w.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[w.EndOfString,"malformed escape sequence at end of string"]])});var K=X(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.unraw=u.errorMessages=u.ErrorType=void 0;var d=Z();Object.defineProperty(u,"ErrorType",{enumerable:!0,get:function(){return d.ErrorType}});Object.defineProperty(u,"errorMessages",{enumerable:!0,get:function(){return d.errorMessages}});function Ee(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function O(r,e,o){let t=Ee(r);if(Number.isNaN(t)||o!==void 0&&o!==r.length)throw new SyntaxError(d.errorMessages.get(e));return t}function Ce(r){let e=O(r,d.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function V(r,e){let o=O(r,d.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=O(e,d.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,t)}return String.fromCharCode(o)}function Oe(r){return r.charAt(0)==="{"&&r.charAt(r.length-1)==="}"}function Le(r){if(!Oe(r))throw new SyntaxError(d.errorMessages.get(d.ErrorType.MalformedUnicode));let e=r.slice(1,-1),o=O(e,d.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(t){throw t instanceof RangeError?new SyntaxError(d.errorMessages.get(d.ErrorType.CodePointLimit)):t}}function Me(r,e=!1){if(e)throw new SyntaxError(d.errorMessages.get(d.ErrorType.OctalDeprecation));let o=parseInt(r,8);return String.fromCharCode(o)}var Ne=new Map([["b","\b"],["f","\f"],["n",`
|
|
2
|
+
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Se(r){return Ne.get(r)||r}var Ie=/\\(?:(\\)|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 q(r,e=!1){return r.replace(Ie,function(o,t,a,n,i,s,l,b,g){if(t!==void 0)return"\\";if(a!==void 0)return Ce(a);if(n!==void 0)return Le(n);if(i!==void 0)return V(i,s);if(l!==void 0)return V(l);if(b==="0")return"\0";if(b!==void 0)return Me(b,!e);if(g!==void 0)return Se(g);throw new SyntaxError(d.errorMessages.get(d.ErrorType.EndOfString))})}u.unraw=q;u.default=q});import{css as Hr,html as x,LitElement as Rr}from"lit";var C=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return r.reduce(function(o,t){return o.concat(typeof t=="string"?t:Array.isArray(t)?C.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};import{property as J}from"lit/decorators.js";import{LitElement as Re}from"lit";import{unsafeStatic as Ue,html as Xe}from"lit/static-html.js";var W=ze(K(),1);var p=r=>typeof r=="string",je=r=>typeof r=="function",G=new Map,ee="en";function B(r){return[...Array.isArray(r)?r:[r],ee]}function Y(r,e,o){let t=B(r);o||(o="default");let a;if(typeof o=="string")switch(a={day:"numeric",month:"short",year:"numeric"},o){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=o;return L(()=>M("date",t,o),()=>new Intl.DateTimeFormat(t,a)).format(p(e)?new Date(e):e)}function Te(r,e,o){let t;if(o||(o="default"),typeof o=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},o){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=o;return Y(r,e,t)}function j(r,e,o){let t=B(r);return L(()=>M("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function Q(r,e,o,{offset:t=0,...a}){var s,l;let n=B(r),i=e?L(()=>M("plural-ordinal",n),()=>new Intl.PluralRules(n,{type:"ordinal"})):L(()=>M("plural-cardinal",n),()=>new Intl.PluralRules(n,{type:"cardinal"}));return(l=(s=a[o])!=null?s:a[i.select(o-t)])!=null?l:a.other}function L(r,e){let o=r(),t=G.get(o);return t||(t=e(),G.set(o,t)),t}function M(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var re=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,oe="%__lingui_octothorpe__%",De=(r,e,o={})=>{let t=e||r,a=i=>typeof i=="object"?i:o[i],n=(i,s)=>{let l=Object.keys(o).length?a("number"):void 0,b=j(t,i,l);return s.replace(new RegExp(oe,"g"),b)};return{plural:(i,s)=>{let{offset:l=0}=s,b=Q(t,!1,i,s);return n(i-l,b)},selectordinal:(i,s)=>{let{offset:l=0}=s,b=Q(t,!0,i,s);return n(i-l,b)},select:Be,number:(i,s)=>j(t,i,a(s)||{style:s}),date:(i,s)=>Y(t,i,a(s)||s),time:(i,s)=>Te(t,i,a(s)||s)}},Be=(r,e)=>{var o;return(o=e[r])!=null?o:e.other};function Ye(r,e,o){return(t={},a)=>{let n=De(e,o,a),i=(l,b=!1)=>Array.isArray(l)?l.reduce((g,_)=>{if(_==="#"&&b)return g+oe;if(p(_))return g+_;let[H,v,R]=_,N={};v==="plural"||v==="selectordinal"||v==="select"?Object.entries(R).forEach(([S,fe])=>{N[S]=i(fe,v==="plural"||v==="selectordinal")}):N=R;let z;if(v){let S=n[v];z=S(t[H],N)}else z=t[H];return z==null?g:g+z},""):l,s=i(r);return p(s)&&re.test(s)?(0,W.unraw)(s):p(s)?s:s?String(s):""}}var Ae=Object.defineProperty,Pe=(r,e,o)=>e in r?Ae(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,$e=(r,e,o)=>(Pe(r,typeof e!="symbol"?e+"":e,o),o),T=class{constructor(){$e(this,"_events",{})}on(e,o){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(o),()=>this.removeListener(e,o)}removeListener(e,o){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(o);~a&&t.splice(a,1)}emit(e,...o){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,o))}_getListeners(e){let o=this._events[e];return Array.isArray(o)?o:!1}},Fe=Object.defineProperty,Je=(r,e,o)=>e in r?Fe(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,h=(r,e,o)=>(Je(r,typeof e!="symbol"?e+"":e,o),o),D=class extends T{constructor(e){var o;super(),h(this,"_locale",""),h(this,"_locales"),h(this,"_localeData",{}),h(this,"_messages",{}),h(this,"_missing"),h(this,"_messageCompiler"),h(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((o=e.locale)!=null?o:ee,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,o){let t=this._localeData[e];t?Object.assign(t,o):this._localeData[e]=o}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,o){typeof e=="string"?this._loadLocaleData(e,o):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,o){let t=this._messages[e];t?Object.assign(t,o):this._messages[e]=o}load(e,o){typeof e=="string"&&typeof o=="object"?this._load(e,o):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:o,messages:t}){this._locale=e,this._locales=o||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,o){this._locale=e,this._locales=o,this.emit("change")}_(e,o,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=""),p(e)||(o=e.values||o,a=e.message,e=e.id);let n=this.messages[e],i=n===void 0,s=this._missing;if(s&&i)return je(s)?s(this._locale,e):s;i&&this.emit("missing",{id:e,locale:this._locale});let l=n||a||e;return p(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
|
-
`)),p(l)&&re.test(l)?JSON.parse(`"${l}"`):p(l)?l:Ye(l,this._locale,this._locales)(o,t==null?void 0:t.formats)}date(e,o){return Y(this._locales||this._locale,e,o)}number(e,o){return j(this._locales||this._locale,e,o)}};function He(r={}){return new D(r)}var c=He();var Ze=JSON.parse('{"icon.title.info":["Informasjonssirkel"]}'),Ve=JSON.parse('{"icon.title.info":["Information circle"]}'),qe=JSON.parse('{"icon.title.info":["Ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"]}'),Ke=JSON.parse('{"icon.title.info":["Informationscirkel"]}'),Ge=JSON.parse('{"icon.title.info":["Informationscirkel"]}'),te=["en","nb","fi","da","sv"],ae="en",Qe=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},ne=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":ae},A=r=>te.find(e=>r===e||r.toLowerCase().includes(e))||ne();function We(){var r;if(typeof window=="undefined"){let e=Qe();return A(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=ne();return te.includes(e)?A(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),A(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ae}}var er=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,rr=(r,e,o,t,a)=>{let n=We(),i=er(n,r,e,o,t,a);c.load(n,i),c.activate(n)};rr(Ve,Ze,qe,Ke,Ge);var or=class extends Re{render(){let r=c.t({message:"Information circle",id:"icon.title.info",comment:"Title for info icon"});return Xe`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-info-16-part">${Ue(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" d="M8 6.5v5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 4v.5"></path><path stroke="currentColor" stroke-miterlimit="10" d="M8 .5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Z"></path></svg>`}};customElements.get("w-icon-info-16")||customElements.define("w-icon-info-16",or);import{LitElement as tr}from"lit";import{unsafeStatic as ar,html as nr}from"lit/static-html.js";var ir=JSON.parse('{"icon.title.warning":["Varseltrekant med utropstegn"]}'),sr=JSON.parse('{"icon.title.warning":["Warning triangle with exclamation point"]}'),lr=JSON.parse('{"icon.title.warning":["Varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"]}'),cr=JSON.parse('{"icon.title.warning":["Advarselstrekant med et udr\xE5bstegn"]}'),dr=JSON.parse('{"icon.title.warning":["Varningstriangel med utropstecken"]}'),ie=["en","nb","fi","da","sv"],se="en",br=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},le=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":se},P=r=>ie.find(e=>r===e||r.toLowerCase().includes(e))||le();function ur(){var r;if(typeof window=="undefined"){let e=br();return P(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=le();return ie.includes(e)?P(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),P(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),se}}var pr=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,gr=(r,e,o,t,a)=>{let n=ur(),i=pr(n,r,e,o,t,a);c.load(n,i),c.activate(n)};gr(sr,ir,lr,cr,dr);var vr=class extends tr{render(){let r=c.t({message:"Warning triangle with exclamation point",id:"icon.title.warning",comment:"Title for warning icon"});return nr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-warning-16-part">${ar(`<title>${r}</title>`)}<path stroke="currentColor" d="m.712 14.07 6.25-12.994a1 1 0 0 1 1.792-.022l6.635 12.995a1 1 0 0 1-.89 1.455H1.613a1 1 0 0 1-.902-1.434Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 6v4.992M8 13v.333"></path></svg>`}};customElements.get("w-icon-warning-16")||customElements.define("w-icon-warning-16",vr);import{LitElement as mr}from"lit";import{unsafeStatic as hr,html as fr}from"lit/static-html.js";var wr=JSON.parse('{"icon.title.error":["\xC5ttekant med utropstegn"]}'),xr=JSON.parse('{"icon.title.error":["Octagon with exclamation point"]}'),kr=JSON.parse('{"icon.title.error":["Kahdeksankulmio, jonka sis\xE4ll\xE4 on huutomerkki"]}'),yr=JSON.parse('{"icon.title.error":["Ottekant med et udr\xE5bstegn"]}'),_r=JSON.parse('{"icon.title.error":["Oktagon med utropstecken"]}'),ce=["en","nb","fi","da","sv"],de="en",zr=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},be=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":de},$=r=>ce.find(e=>r===e||r.toLowerCase().includes(e))||be();function Er(){var r;if(typeof window=="undefined"){let e=zr();return $(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=be();return ce.includes(e)?$(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),$(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),de}}var Cr=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,
|
|
10
|
+
`)),p(l)&&re.test(l)?JSON.parse(`"${l}"`):p(l)?l:Ye(l,this._locale,this._locales)(o,t==null?void 0:t.formats)}date(e,o){return Y(this._locales||this._locale,e,o)}number(e,o){return j(this._locales||this._locale,e,o)}};function He(r={}){return new D(r)}var c=He();var Ze=JSON.parse('{"icon.title.info":["Informasjonssirkel"]}'),Ve=JSON.parse('{"icon.title.info":["Information circle"]}'),qe=JSON.parse('{"icon.title.info":["Ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"]}'),Ke=JSON.parse('{"icon.title.info":["Informationscirkel"]}'),Ge=JSON.parse('{"icon.title.info":["Informationscirkel"]}'),te=["en","nb","fi","da","sv"],ae="en",Qe=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},ne=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":ae},A=r=>te.find(e=>r===e||r.toLowerCase().includes(e))||ne();function We(){var r;if(typeof window=="undefined"){let e=Qe();return A(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=ne();return te.includes(e)?A(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),A(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ae}}var er=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,rr=(r,e,o,t,a)=>{let n=We(),i=er(n,r,e,o,t,a);c.load(n,i),c.activate(n)};rr(Ve,Ze,qe,Ke,Ge);var or=class extends Re{render(){let r=c.t({message:"Information circle",id:"icon.title.info",comment:"Title for info icon"});return Xe`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-info-16-part">${Ue(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" d="M8 6.5v5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 4v.5"></path><path stroke="currentColor" stroke-miterlimit="10" d="M8 .5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Z"></path></svg>`}};customElements.get("w-icon-info-16")||customElements.define("w-icon-info-16",or);import{LitElement as tr}from"lit";import{unsafeStatic as ar,html as nr}from"lit/static-html.js";var ir=JSON.parse('{"icon.title.warning":["Varseltrekant med utropstegn"]}'),sr=JSON.parse('{"icon.title.warning":["Warning triangle with exclamation point"]}'),lr=JSON.parse('{"icon.title.warning":["Varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"]}'),cr=JSON.parse('{"icon.title.warning":["Advarselstrekant med et udr\xE5bstegn"]}'),dr=JSON.parse('{"icon.title.warning":["Varningstriangel med utropstecken"]}'),ie=["en","nb","fi","da","sv"],se="en",br=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},le=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":se},P=r=>ie.find(e=>r===e||r.toLowerCase().includes(e))||le();function ur(){var r;if(typeof window=="undefined"){let e=br();return P(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=le();return ie.includes(e)?P(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),P(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),se}}var pr=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,gr=(r,e,o,t,a)=>{let n=ur(),i=pr(n,r,e,o,t,a);c.load(n,i),c.activate(n)};gr(sr,ir,lr,cr,dr);var vr=class extends tr{render(){let r=c.t({message:"Warning triangle with exclamation point",id:"icon.title.warning",comment:"Title for warning icon"});return nr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-warning-16-part">${ar(`<title>${r}</title>`)}<path stroke="currentColor" d="m.712 14.07 6.25-12.994a1 1 0 0 1 1.792-.022l6.635 12.995a1 1 0 0 1-.89 1.455H1.613a1 1 0 0 1-.902-1.434Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 6v4.992M8 13v.333"></path></svg>`}};customElements.get("w-icon-warning-16")||customElements.define("w-icon-warning-16",vr);import{LitElement as mr}from"lit";import{unsafeStatic as hr,html as fr}from"lit/static-html.js";var wr=JSON.parse('{"icon.title.error":["\xC5ttekant med utropstegn"]}'),xr=JSON.parse('{"icon.title.error":["Octagon with exclamation point"]}'),kr=JSON.parse('{"icon.title.error":["Kahdeksankulmio, jonka sis\xE4ll\xE4 on huutomerkki"]}'),yr=JSON.parse('{"icon.title.error":["Ottekant med et udr\xE5bstegn"]}'),_r=JSON.parse('{"icon.title.error":["Oktagon med utropstecken"]}'),ce=["en","nb","fi","da","sv"],de="en",zr=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},be=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":de},$=r=>ce.find(e=>r===e||r.toLowerCase().includes(e))||be();function Er(){var r;if(typeof window=="undefined"){let e=zr();return $(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=be();return ce.includes(e)?$(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),$(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),de}}var Cr=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,Or=(r,e,o,t,a)=>{let n=Er(),i=Cr(n,r,e,o,t,a);c.load(n,i),c.activate(n)};Or(xr,wr,kr,yr,_r);var Lr=class extends mr{render(){let r=c.t({message:"Octagon with exclamation point",id:"icon.title.error",comment:"Title for error icon"});return fr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-error-16-part">${hr(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.5 11.107 4.748 15.5h6.503l4.248-4.393V4.893L11.252.5H4.748L.5 4.893z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 11.398a.25.25 0 1 1 0-.5m0 .5a.25.25 0 1 0 0-.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M8 8.5V3"></path></svg>`}};customElements.get("w-icon-error-16")||customElements.define("w-icon-error-16",Lr);import{LitElement as Mr}from"lit";import{unsafeStatic as Nr,html as Sr}from"lit/static-html.js";var Ir=JSON.parse('{"icon.title.success":["Sirkel med sjekkmerke"]}'),jr=JSON.parse('{"icon.title.success":["Circle with checkmark"]}'),Tr=JSON.parse('{"icon.title.success":["Ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"]}'),Dr=JSON.parse('{"icon.title.success":["Cirkel med et flueben"]}'),Br=JSON.parse('{"icon.title.success":["Cirkel med bock"]}'),ue=["en","nb","fi","da","sv"],pe="en",Yr=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},ge=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":pe},F=r=>ue.find(e=>r===e||r.toLowerCase().includes(e))||ge();function Ar(){var r;if(typeof window=="undefined"){let e=Yr();return F(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=ge();return ue.includes(e)?F(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),F(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),pe}}var Pr=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,$r=(r,e,o,t,a)=>{let n=Ar(),i=Pr(n,r,e,o,t,a);c.load(n,i),c.activate(n)};$r(jr,Ir,Tr,Dr,Br);var Fr=class extends Mr{render(){let r=c.t({message:"Circle with checkmark",id:"icon.title.success",comment:"Title for success icon"});return Sr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-success-16-part">${Nr(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m4 8.815 1.633 2.318a.7.7 0 0 0 1.138.034l5.228-6.615"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.5 7.999a7.5 7.5 0 1 0 15 0 7.5 7.5 0 0 0-15 0"></path></svg>`}};customElements.get("w-icon-success-16")||customElements.define("w-icon-success-16",Fr);import{css as ve}from"lit";var me=ve`
|
|
11
11
|
*,
|
|
12
12
|
:before,
|
|
13
13
|
:after {
|