@everymatrix/cashier-methods-list 1.37.8 → 1.37.9

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.
@@ -593,7 +593,7 @@ this.formats=Lt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
593
593
  // and Intl.DateTimeFormat instances.
594
594
  e.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"}}},e}();const _t={},Bt=(e,t,r)=>r?(t in _t||(_t[t]={}),e in _t[t]||(_t[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in _t&&e in _t[t])return _t[t][e];const r=rr(t);for(let n=0;n<r.length;n++){const i=Nt(r[n],e);if(i)return Bt(e,t,i)}};let Mt;const St=F({});function Pt(e){return e in Mt}function Nt(e,t){if(!Pt(e))return null;const r=function(e){return Mt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Ct(e,...t){delete _t[e],St.update((r=>(r[e]=Q.all([r[e]||{},...t]),r)))}j([St],(([e])=>Object.keys(e))),St.subscribe((e=>Mt=e));const Ot={};function It(e){return Ot[e]}function Rt(e){return null!=e&&rr(e).some((e=>{var t;return null==(t=It(e))?void 0:t.size}))}function Ut(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ot[e].delete(t),0===Ot[e].size&&delete Ot[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Ct(e,...t)))}const $t={};function xt(e){if(!Rt(e))return e in $t?$t[e]:Promise.resolve();const t=function(e){return rr(e).map((e=>{const t=It(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return $t[e]=Promise.all(t.map((([e,t])=>Ut(e,t)))).then((()=>{if(Rt(e))return xt(e);delete $t[e]})),$t[e]}var Gt=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable;function Ft({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${rr(e).join('", "')}".${Rt(nr())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const jt={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 Vt(){return jt}const Xt=F(!1);var Kt=Object.defineProperty,zt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Qt=(e,t,r)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let qt;const er=F(null);function tr(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function rr(e,t=Vt().fallbackLocale){const r=tr(e);return t?[...new Set([...r,...tr(t)])]:r}function nr(){return null!=qt?qt:void 0}er.subscribe((e=>{qt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const ir=(or=((e,t)=>{for(var r in t||(t={}))Wt.call(t,r)&&Qt(e,r,t[r]);if(Zt)for(var r of Zt(t))Jt.call(t,r)&&Qt(e,r,t[r]);return e})({},er),zt(or,Yt({set:e=>{if(e&&function(e){if(null==e)return;const t=rr(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&Rt(e)){const{loadingDelay:t}=Vt();let r;return"undefined"!=typeof window&&null!=nr()&&t?r=window.setTimeout((()=>Xt.set(!0)),t):Xt.set(!0),xt(e).then((()=>{er.set(e)})).finally((()=>{clearTimeout(r),Xt.set(!1)}))}return er.set(e)}})));var or;const sr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var ar=Object.defineProperty,lr=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,ur=(e,t,r)=>t in e?ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fr=(e,t)=>{for(var r in t||(t={}))hr.call(t,r)&&ur(e,r,t[r]);if(lr)for(var r of lr(t))cr.call(t,r)&&ur(e,r,t[r]);return e},pr=(e,t)=>{var r={};for(var n in e)hr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&lr)for(var n of lr(e))t.indexOf(n)<0&&cr.call(e,n)&&(r[n]=e[n]);return r};const mr=(e,t)=>{const{formats:r}=Vt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},dr=sr((e=>{var t=e,{locale:r,format:n}=t,i=pr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=mr("number",n)),new Intl.NumberFormat(r,i)})),gr=sr((e=>{var t=e,{locale:r,format:n}=t,i=pr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=mr("date",n):0===Object.keys(i).length&&(i=mr("date","short")),new Intl.DateTimeFormat(r,i)})),br=sr((e=>{var t=e,{locale:r,format:n}=t,i=pr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=mr("time",n):0===Object.keys(i).length&&(i=mr("time","short")),new Intl.DateTimeFormat(r,i)})),yr=sr((
595
595
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
596
- (e,t=nr())=>new wt(e,t,Vt().formats,{ignoreTag:Vt().ignoreTag}))),Er=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=nr(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=At(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" 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=Vt()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:h}))?i:h)?o:e;if(!a)return c;let u=c;try{u=yr(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},vr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=pr(t,["locale"]);return br(fr({locale:r},n))})(t).format(e),Tr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=pr(t,["locale"]);return gr(fr({locale:r},n))})(t).format(e),Lr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=pr(t,["locale"]);return dr(fr({locale:r},n))})(t).format(e),Hr=(e,t=nr())=>At(e,t),wr=j([ir,St],(()=>Er));j([ir],(()=>vr)),j([ir],(()=>Tr)),j([ir],(()=>Lr)),j([ir,St],(()=>Hr)),function(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)Dt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Gt)for(var n of Gt(e))t.indexOf(n)<0&&kt.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{wt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=Ft:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(jt,n,{initialLocale:i}),r&&("number"in r&&Object.assign(jt.formats.number,r.number),"date"in r&&Object.assign(jt.formats.date,r.date),"time"in r&&Object.assign(jt.formats.time,r.time)),ir.set(i)}({fallbackLocale:"en"});const _r={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Pokaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER"}};
596
+ (e,t=nr())=>new wt(e,t,Vt().formats,{ignoreTag:Vt().ignoreTag}))),Er=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=nr(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=At(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" 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=Vt()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:h}))?i:h)?o:e;if(!a)return c;let u=c;try{u=yr(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},vr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=pr(t,["locale"]);return br(fr({locale:r},n))})(t).format(e),Tr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=pr(t,["locale"]);return gr(fr({locale:r},n))})(t).format(e),Lr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=pr(t,["locale"]);return dr(fr({locale:r},n))})(t).format(e),Hr=(e,t=nr())=>At(e,t),wr=j([ir,St],(()=>Er));j([ir],(()=>vr)),j([ir],(()=>Tr)),j([ir],(()=>Lr)),j([ir,St],(()=>Hr)),function(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)Dt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Gt)for(var n of Gt(e))t.indexOf(n)<0&&kt.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{wt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=Ft:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(jt,n,{initialLocale:i}),r&&("number"in r&&Object.assign(jt.formats.number,r.number),"date"in r&&Object.assign(jt.formats.date,r.date),"time"in r&&Object.assign(jt.formats.time,r.time)),ir.set(i)}({fallbackLocale:"en"});const _r={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER"}};
597
597
  /* src/CashierMethodsList.svelte generated by Svelte v3.59.2 */function Br(e,t,r){const n=e.slice();return n[47]=t[r],n[49]=r,n}
598
598
  // (178:0) {#if showSpinner}
599
599
  function Ar(e){let t;return{c(){t=p("cashier-spinner"),y(t,"clientstylingurl",/*clientstylingurl*/e[4]),y(t,"clientstyling",/*clientstyling*/e[3])},m(e,r){u(e,t,r)},p(e,r){/*clientstylingurl*/16&r[0]&&y(t,"clientstylingurl",/*clientstylingurl*/e[4]),/*clientstyling*/8&r[0]&&y(t,"clientstyling",/*clientstyling*/e[3])},d(e){e&&f(t)}}}