@everymatrix/general-icon-progress-bar 1.34.3 → 1.36.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -568,7 +568,7 @@ this.formats=fe(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
568
568
  // and Intl.DateTimeFormat instances.
569
569
  t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const ge={},be=(t,e,r)=>r?(e in ge||(ge[e]={}),t in ge[e]||(ge[e][t]=r),r):r,Ee=(t,e)=>{if(null==e)return;if(e in ge&&t in ge[e])return ge[e][t];const r=ke(e);for(let n=0;n<r.length;n++){const i=He(r[n],t);if(i)return be(t,e,i)}};let de;const ye=w({});function ve(t){return t in de}function He(t,e){if(!ve(t))return null;const r=function(t){return de[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Te(t,...e){delete ge[t],ye.update((r=>(r[t]=k.all([r[t]||{},...e]),r)))}C([ye],(([t])=>Object.keys(t))),ye.subscribe((t=>de=t));const Be={};function _e(t){return Be[t]}function Ae(t){return null!=t&&ke(t).some((t=>{var e;return null==(e=_e(t))?void 0:e.size}))}function Pe(t,e){const r=Promise.all(e.map((e=>(function(t,e){Be[t].delete(e),0===Be[t].size&&delete Be[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Te(t,...e)))}const Se={};function Le(t){if(!Ae(t))return t in Se?Se[t]:Promise.resolve();const e=function(t){return ke(t).map((t=>{const e=_e(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Se[t]=Promise.all(e.map((([t,e])=>Pe(t,e)))).then((()=>{if(Ae(t))return Le(t);delete Se[t]})),Se[t]}const Ne={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Oe(){return Ne}const Ie=w(!1);var we=Object.defineProperty,Ce=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,De=(t,e,r)=>e in t?we(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let $e;const Fe=w(null);function xe(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function ke(t,e=Oe().fallbackLocale){const r=xe(t);return e?[...new Set([...r,...xe(e)])]:r}function je(){return null!=$e?$e:void 0}Fe.subscribe((t=>{$e=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ve=(Xe=((t,e)=>{for(var r in e||(e={}))Ue.call(e,r)&&De(t,r,e[r]);if(Me)for(var r of Me(e))Ge.call(e,r)&&De(t,r,e[r]);return t})({},Fe),Ce(Xe,Re({set:t=>{if(t&&function(t){if(null==t)return;const e=ke(t);for(let t=0;t<e.length;t++){const r=e[t];if(ve(r))return r}}(t)&&Ae(t)){const{loadingDelay:e}=Oe();let r;return"undefined"!=typeof window&&null!=je()&&e?r=window.setTimeout((()=>Ie.set(!0)),e):Ie.set(!0),Le(t).then((()=>{Fe.set(t)})).finally((()=>{clearTimeout(r),Ie.set(!1)}))}return Fe.set(t)}})));var Xe;const Ke=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var Ye=Object.defineProperty,Ze=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Qe=(t,e,r)=>e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Je=(t,e)=>{for(var r in e||(e={}))ze.call(e,r)&&Qe(t,r,e[r]);if(Ze)for(var r of Ze(e))We.call(e,r)&&Qe(t,r,e[r]);return t},qe=(t,e)=>{var r={};for(var n in t)ze.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&Ze)for(var n of Ze(t))e.indexOf(n)<0&&We.call(t,n)&&(r[n]=t[n]);return r};const tr=(t,e)=>{const{formats:r}=Oe();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},er=Ke((t=>{var e=t,{locale:r,format:n}=e,i=qe(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=tr("number",n)),new Intl.NumberFormat(r,i)})),rr=Ke((t=>{var e=t,{locale:r,format:n}=e,i=qe(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=tr("date",n):0===Object.keys(i).length&&(i=tr("date","short")),new Intl.DateTimeFormat(r,i)})),nr=Ke((t=>{var e=t,{locale:r,format:n}=e,i=qe(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=tr("time",n):0===Object.keys(i).length&&(i=tr("time","short")),new Intl.DateTimeFormat(r,i)})),ir=Ke((
570
570
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
571
- (t,e=je())=>new me(t,e,Oe().formats,{ignoreTag:Oe().ignoreTag}))),or=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:h=je(),default:u}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ee(t,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=Oe()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:t,defaultValue:u}))?i:u)?o:t;if(!a)return c;let l=c;try{l=ir(c,h).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return l},sr=(t,e)=>((t={})=>{var e=t,{locale:r=je()}=e,n=qe(e,["locale"]);return nr(Je({locale:r},n))})(e).format(t),ar=(t,e)=>((t={})=>{var e=t,{locale:r=je()}=e,n=qe(e,["locale"]);return rr(Je({locale:r},n))})(e).format(t),hr=(t,e)=>((t={})=>{var e=t,{locale:r=je()}=e,n=qe(e,["locale"]);return er(Je({locale:r},n))})(e).format(t),ur=(t,e=je())=>Ee(t,e),cr=C([Ve,ye],(()=>or));function lr(t,e){Te(t,e)}C([Ve],(()=>sr)),C([Ve],(()=>ar)),C([Ve],(()=>hr)),C([Ve,ye],(()=>ur));const fr={en:{bets:"bets"},tr:{bets:"bets"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"}};
571
+ (t,e=je())=>new me(t,e,Oe().formats,{ignoreTag:Oe().ignoreTag}))),or=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:h=je(),default:u}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ee(t,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=Oe()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:t,defaultValue:u}))?i:u)?o:t;if(!a)return c;let l=c;try{l=ir(c,h).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return l},sr=(t,e)=>((t={})=>{var e=t,{locale:r=je()}=e,n=qe(e,["locale"]);return nr(Je({locale:r},n))})(e).format(t),ar=(t,e)=>((t={})=>{var e=t,{locale:r=je()}=e,n=qe(e,["locale"]);return rr(Je({locale:r},n))})(e).format(t),hr=(t,e)=>((t={})=>{var e=t,{locale:r=je()}=e,n=qe(e,["locale"]);return er(Je({locale:r},n))})(e).format(t),ur=(t,e=je())=>Ee(t,e),cr=C([Ve,ye],(()=>or));function lr(t,e){Te(t,e)}C([Ve],(()=>sr)),C([Ve],(()=>ar)),C([Ve],(()=>hr)),C([Ve,ye],(()=>ur));const fr={en:{bets:"bets"},tr:{bets:"bahisler"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"}};
572
572
  /* src/GeneralIconProgressBar.svelte generated by Svelte v3.59.2 */function pr(e){let r,n,i,o,s;return{c(){var a;r=c("div"),n=c("div"),i=c("span"),a=/*progressText*/e[3],o=document.createTextNode(a),this.c=t,l(i,"part","progressText"),l(n,"class",s="stepBar "+/*curTatus*/e[4]),l(n,"part","stepBar"),l(r,"class","general-icon-progress-bar"),l(r,"part","totalBar")},m(t,s){h(t,r,s),a(r,n),a(n,i),a(i,o),
573
573
  /*span_binding*/e[13](i),
574
574
  /*div0_binding*/e[14](n),