@everymatrix/cashier-error 1.37.12 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cashier-error.js +18 -18
- package/dist/cashier-error.js.map +1 -1
- package/package.json +2 -2
- package/src/CashierError.svelte +12 -1
package/dist/cashier-error.js
CHANGED
|
@@ -84,13 +84,13 @@ const e=!U.length;for(const e of i)e[1](),U.push(e,t);if(e){for(let e=0;e<U.leng
|
|
|
84
84
|
// invoke this derived store.
|
|
85
85
|
o=!1}},{subscribe:G(o,c).subscribe};var c}var $=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===k}(e)}
|
|
86
86
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
87
|
-
(e)};var k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function
|
|
87
|
+
(e)};var k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function x(e,t){return!1!==t.clone&&t.isMergeableObject(e)?z((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function F(e,t,r){return e.concat(t).map((function(e){return x(e,r)}))}function j(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function V(e,t){try{return t in e}catch(e){return!1}}
|
|
88
88
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
89
|
-
function X(e,t,r){var n={};return r.isMergeableObject(e)&&j(e).forEach((function(t){n[t]=
|
|
90
|
-
})(e,i)||(V(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return
|
|
89
|
+
function X(e,t,r){var n={};return r.isMergeableObject(e)&&j(e).forEach((function(t){n[t]=x(e[t],r)})),j(t).forEach((function(i){(function(e,t){return V(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
90
|
+
})(e,i)||(V(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return z;var r=t.customMerge(e);return"function"==typeof r?r:z}(i,r)(e[i],t[i],r):n[i]=x(t[i],r))})),n}function z(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||F,r.isMergeableObject=r.isMergeableObject||$,
|
|
91
91
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
92
92
|
// implementations can use it. The caller may not replace it.
|
|
93
|
-
r.cloneUnlessOtherwiseSpecified=
|
|
93
|
+
r.cloneUnlessOtherwiseSpecified=x;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):X(e,t,r):x(t,r)}z.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return z(e,r,t)}),{})};var K=z,W=function(e,t){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},W(e,t)};function Y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}W(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Z,J,Q,q=function(){return q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},q.apply(this,arguments)};function ee(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
|
|
94
94
|
/**
|
|
95
95
|
* Type Guards
|
|
96
96
|
*/
|
|
@@ -296,10 +296,10 @@ var Oe=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,Ie=!!Object.fromE
|
|
|
296
296
|
* Pattern_Syntax support: not supported
|
|
297
297
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
298
298
|
*/
|
|
299
|
-
De="a"===(null===(Ae=
|
|
299
|
+
De="a"===(null===(Ae=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ae?void 0:Ae[0])}catch(e){De=!1}var $e,ke=Oe?// Native
|
|
300
300
|
function(e,t,r){return e.startsWith(t,r)}:// For IE11
|
|
301
|
-
function(e,t,r){return e.slice(r,r+t.length)===t},
|
|
302
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},
|
|
301
|
+
function(e,t,r){return e.slice(r,r+t.length)===t},xe=Ne?String.fromCodePoint:// IE11
|
|
302
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Fe=
|
|
303
303
|
// native
|
|
304
304
|
Ie?Object.fromEntries:// Ponyfill
|
|
305
305
|
function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},je=Me?// Native
|
|
@@ -310,13 +310,13 @@ function(e){return e.replace(Se,"")},Xe=Ue?// Native
|
|
|
310
310
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
311
311
|
function(e){return e.replace(we,"")};
|
|
312
312
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
313
|
-
function
|
|
313
|
+
function ze(e,t){return new RegExp(e,t)}
|
|
314
314
|
// #endregion
|
|
315
315
|
if(De){
|
|
316
316
|
// Native
|
|
317
|
-
var ze
|
|
317
|
+
var Ke=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(e,t){var r;return Ke.lastIndex=t,null!==(r=Ke.exec(e)[1])&&void 0!==r?r:""}}else
|
|
318
318
|
// IE11
|
|
319
|
-
$e=function(e,t){for(var r=[];;){var n=je(e,t);if(void 0===n||Ze(n)||Je(n))break;r.push(n),t+=n>=65536?2:1}return
|
|
319
|
+
$e=function(e,t){for(var r=[];;){var n=je(e,t);if(void 0===n||Ze(n)||Je(n))break;r.push(n),t+=n>=65536?2:1}return xe.apply(void 0,r)};var We=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Z.UNMATCHED_CLOSING_TAG,Ce(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Ye(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:J.pound,location:Ce(s,this.clonePosition())})}}}return{val:n,err:null}},
|
|
320
320
|
/**
|
|
321
321
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
322
322
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -367,7 +367,7 @@ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'
|
|
|
367
367
|
// Optional closing apostrophe.
|
|
368
368
|
this.bump();break}t.push(39),
|
|
369
369
|
// Bump one more time because we need to skip 2 characters.
|
|
370
|
-
this.bump()}else t.push(r);this.bump()}return
|
|
370
|
+
this.bump()}else t.push(r);this.bump()}return xe.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===t||"selectordinal"===t)||125/* `}` */===r&&e>0?null:(this.bump(),xe(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),// `{`
|
|
371
371
|
this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(Z.EMPTY_ARGUMENT,Ce(r,this.clonePosition()));
|
|
372
372
|
// argument name
|
|
373
373
|
var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Z.MALFORMED_ARGUMENT,Ce(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(r,this.clonePosition()));switch(this.char()){
|
|
@@ -416,7 +416,7 @@ var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
416
416
|
// ^--^
|
|
417
417
|
var g=this.parseIdentifierIfPossible(),d=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ce(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;
|
|
418
418
|
// Parse another identifier for option parsing
|
|
419
|
-
this.bumpSpace(),g=this.parseIdentifierIfPossible(),d=b.val}var E,y=this.tryParsePluralOrSelectOptions(e,s,t,g);if(y.err)return y;if((E=this.tryParseArgumentClose(n)).err)return E;var v=Ce(n,this.clonePosition());return"select"===s?{val:{type:J.select,value:r,options:
|
|
419
|
+
this.bumpSpace(),g=this.parseIdentifierIfPossible(),d=b.val}var E,y=this.tryParsePluralOrSelectOptions(e,s,t,g);if(y.err)return y;if((E=this.tryParseArgumentClose(n)).err)return E;var v=Ce(n,this.clonePosition());return"select"===s?{val:{type:J.select,value:r,options:Fe(y.val),location:v},err:null}:{val:{type:J.plural,value:r,options:Fe(y.val),offset:d,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(Z.INVALID_ARGUMENT_TYPE,Ce(o,a))}},e.prototype.tryParseArgumentClose=function(e){
|
|
420
420
|
// Parse: {value, number, ::currency/GBP }
|
|
421
421
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,Ce(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
422
422
|
/**
|
|
@@ -566,12 +566,12 @@ this.formats=bt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
566
566
|
// Default format options used as the prototype of the `formats` provided to the
|
|
567
567
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
568
568
|
// and Intl.DateTimeFormat instances.
|
|
569
|
-
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 vt={},Tt=(e,t,r)=>r?(t in vt||(vt[t]={}),e in vt[t]||(vt[t][e]=r),r):r,Ht=(e,t)=>{if(null==t)return;if(t in vt&&e in vt[t])return vt[t][e];const r=Jt(t);for(let n=0;n<r.length;n++){const i=Pt(r[n],e);if(i)return Tt(e,t,i)}};let Bt;const _t=G({});function At(e){return e in Bt}function Pt(e,t){if(!At(e))return null;const r=function(e){return Bt[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 Lt(e,...t){delete vt[e],_t.update((r=>(r[e]=
|
|
569
|
+
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 vt={},Tt=(e,t,r)=>r?(t in vt||(vt[t]={}),e in vt[t]||(vt[t][e]=r),r):r,Ht=(e,t)=>{if(null==t)return;if(t in vt&&e in vt[t])return vt[t][e];const r=Jt(t);for(let n=0;n<r.length;n++){const i=Pt(r[n],e);if(i)return Tt(e,t,i)}};let Bt;const _t=G({});function At(e){return e in Bt}function Pt(e,t){if(!At(e))return null;const r=function(e){return Bt[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 Lt(e,...t){delete vt[e],_t.update((r=>(r[e]=K.all([r[e]||{},...t]),r)))}D([_t],(([e])=>Object.keys(e))),_t.subscribe((e=>Bt=e));const St={};function wt(e){return St[e]}function Ct(e){return null!=e&&Jt(e).some((e=>{var t;return null==(t=wt(e))?void 0:t.size}))}function Ot(e,t){const r=Promise.all(t.map((t=>(function(e,t){St[e].delete(t),0===St[e].size&&delete St[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Lt(e,...t)))}const Nt={};function It(e){if(!Ct(e))return e in Nt?Nt[e]:Promise.resolve();const t=function(e){return Jt(e).map((e=>{const t=wt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Nt[e]=Promise.all(t.map((([e,t])=>Ot(e,t)))).then((()=>{if(Ct(e))return It(e);delete Nt[e]})),Nt[e]}var Mt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;function Gt({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Jt(e).join('", "')}".${Ct(Qt())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const Dt={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 $t(){return Dt}const kt=G(!1);var xt=Object.defineProperty,Ft=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Kt=(e,t,r)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Wt;const Yt=G(null);function Zt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=$t().fallbackLocale){const r=Zt(e);return t?[...new Set([...r,...Zt(t)])]:r}function Qt(){return null!=Wt?Wt:void 0}Yt.subscribe((e=>{Wt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const qt=(er=((e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&Kt(e,r,t[r]);if(Vt)for(var r of Vt(t))zt.call(t,r)&&Kt(e,r,t[r]);return e})({},Yt),Ft(er,jt({set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const r=t[e];if(At(r))return r}}(e)&&Ct(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=Qt()&&t?r=window.setTimeout((()=>kt.set(!0)),t):kt.set(!0),It(e).then((()=>{Yt.set(e)})).finally((()=>{clearTimeout(r),kt.set(!1)}))}return Yt.set(e)}})));var er;const tr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var rr=Object.defineProperty,nr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,sr=(e,t,r)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ar=(e,t)=>{for(var r in t||(t={}))ir.call(t,r)&&sr(e,r,t[r]);if(nr)for(var r of nr(t))or.call(t,r)&&sr(e,r,t[r]);return e},lr=(e,t)=>{var r={};for(var n in e)ir.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&nr)for(var n of nr(e))t.indexOf(n)<0&&or.call(e,n)&&(r[n]=e[n]);return r};const hr=(e,t)=>{const{formats:r}=$t();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cr=tr((e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=hr("number",n)),new Intl.NumberFormat(r,i)})),ur=tr((e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=hr("date",n):0===Object.keys(i).length&&(i=hr("date","short")),new Intl.DateTimeFormat(r,i)})),fr=tr((e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=hr("time",n):0===Object.keys(i).length&&(i=hr("time","short")),new Intl.DateTimeFormat(r,i)})),pr=tr((
|
|
570
570
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
571
571
|
(e,t=Qt())=>new yt(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),mr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Qt(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ht(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=$t()).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=pr(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},gr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=lr(t,["locale"]);return fr(ar({locale:r},n))})(t).format(e),dr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=lr(t,["locale"]);return ur(ar({locale:r},n))})(t).format(e),br=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=lr(t,["locale"]);return cr(ar({locale:r},n))})(t).format(e),Er=(e,t=Qt())=>Ht(e,t),yr=D([qt,_t],(()=>mr));function vr(e,t){Lt(e,t)}D([qt],(()=>gr)),D([qt],(()=>dr)),D([qt],(()=>br)),D([qt,_t],(()=>Er)),function(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)Rt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Mt)for(var n of Mt(e))t.indexOf(n)<0&&Ut.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{yt.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=Gt:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Dt,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Dt.formats.number,r.number),"date"in r&&Object.assign(Dt.formats.date,r.date),"time"in r&&Object.assign(Dt.formats.time,r.time)),qt.set(i)}({fallbackLocale:"en"});const Tr={en:{errorGeneralTitle:"Error Occurred",errorGeneralText:"Something went wrong",errorGeneralButton:"CLOSE",PlayerSessionIsNotValid:"Player session is not valid",VendorCommunicationError:"We apologise, but your payment provider has declined to process due to technical error. Please try later or contact your payment solution provider for further assistance. Error Code 21297",PaymentMethodNotAllowed:"We apologise, but this payment method is unavailable at this time, please contact Customer Support for further assistance. Error Code 11402",InvalidPaymentDetails:"We apologise, but you payment details are not valid. Please make sure you entered all payment details correctly and try again or contact Customer Support for further assistance. Error Code 13555",MerchantUserHasWithdrawBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate withdrawal transactions from your player account. Error Code: 21122",MerchantUserHasDepositBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate deposit transactions from your player account. Error Code: 21123",JwtTokenError:"IDX12741: JWT must have three segments (JWS) or five segments (JWE)."},tr:{errorGeneralTitle:"Hata oluştu",errorGeneralText:"Something went wrong",errorGeneralButton:"KAPALI",PlayerSessionIsNotValid:"Player session is not valid",VendorCommunicationError:"Özür dileriz, ancak ödeme sağlayıcınız teknik hata nedeniyle işlemi yapmayı reddetti. Lütfen daha sonra deneyin veya daha fazla yardım için ödeme çözümü sağlayıcınızla iletişime geçin. Hata Kodu 21297",PaymentMethodNotAllowed:"Özür dileriz, ancak bu ödeme yöntemi şu anda kullanılamıyor. Daha fazla yardım için lütfen Müşteri Desteğiyle iletişime geçin. Hata Kodu 11402",InvalidPaymentDetails:"Özür dileriz, ancak ödeme bilgileriniz geçerli değil. Lütfen tüm ödeme ayrıntılarını doğru girdiğinizden emin olun ve tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 13555",MerchantUserHasWithdrawBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate withdrawal transactions from your player account. Error Code: 21122",MerchantUserHasDepositBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate deposit transactions from your player account. Error Code: 21123",JwtTokenError:"IDX12741: JWT must have three segments (JWS) or five segments (JWE)."}};
|
|
572
|
-
/* src/CashierError.svelte generated by Svelte v3.59.2 */function Hr(e){let t,r;return{c(){t=p("img"),l(t.src,r=`${/*assetsurl*/e[0]}
|
|
573
|
-
// (
|
|
574
|
-
function Br(e){let t,r,n,i,o,s,a=/*$_*/e[
|
|
575
|
-
/*
|
|
576
|
-
/*
|
|
572
|
+
/* src/CashierError.svelte generated by Svelte v3.59.2 */function Hr(e){let t,r;return{c(){t=p("img"),l(t.src,r=`${/*assetsurl*/e[0]}/${/*imgurl*/e[1]||"error-general-icon.png"}`)||d(t,"src",r),d(t,"width","300px"),d(t,"alt","error")},m(e,r){u(e,t,r)},p(e,n){/*assetsurl, imgurl*/3&n&&!l(t.src,r=`${/*assetsurl*/e[0]}/${/*imgurl*/e[1]||"error-general-icon.png"}`)&&d(t,"src",r)},d(e){e&&f(t)}}}
|
|
573
|
+
// (67:2) {#if !hidebuttons || hidebuttons === 'false'}
|
|
574
|
+
function Br(e){let t,r,n,i,o,s,a=/*$_*/e[5]("errorGeneralButton")+"";return{c(){t=p("div"),r=p("slot"),n=p("span"),i=m(a),d(r,"name","button"),d(t,"class","CashierErrorButton")},m(a,l){u(a,t,l),c(t,r),c(r,n),c(n,i),o||(s=function(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}(t,"click",/*close*/e[6]),o=!0)},p(e,t){/*$_*/32&t&&a!==(a=/*$_*/e[5]("errorGeneralButton")+"")&&b(i,a)},d(e){e&&f(t),o=!1,s()}}}function _r(t){let r,n,i,o,s,a,l,h,E,y,v,T,H=/*$_*/t[5]("errorGeneralTitle")+"",B=/*$_*/t[5](`${/*errorcode*/t[3]||"errorGeneralText"}`)+"",_=/*assetsurl*/t[0]&&Hr(t),A=(!/*hidebuttons*/t[2]||/*hidebuttons*/"false"===t[2])&&Br(t);return{c(){r=p("div"),n=p("div"),i=p("slot"),_&&_.c(),o=g(),s=p("slot"),a=p("span"),l=m(H),h=g(),E=p("slot"),y=p("span"),v=m(B),T=g(),A&&A.c(),this.c=e,d(i,"name","icon"),d(i,"class","CashierErrorIcon"),d(s,"name","title"),d(s,"class","CashierErrorTitle"),d(E,"name","text"),d(E,"class","CashierErrorText"),d(n,"class","CashierErrorContent"),d(r,"class","CashierError")},m(e,f){u(e,r,f),c(r,n),c(n,i),_&&_.m(i,null),c(n,o),c(n,s),c(s,a),c(a,l),c(n,h),c(n,E),c(E,y),c(y,v),c(n,T),A&&A.m(n,null)
|
|
575
|
+
/*div1_binding*/,t[11](r)},p(e,[t]){/*assetsurl*/e[0]?_?_.p(e,t):(_=Hr(e),_.c(),_.m(i,null)):_&&(_.d(1),_=null),/*$_*/32&t&&H!==(H=/*$_*/e[5]("errorGeneralTitle")+"")&&b(l,H),/*$_, errorcode*/40&t&&B!==(B=/*$_*/e[5](`${/*errorcode*/e[3]||"errorGeneralText"}`)+"")&&b(v,B),/*hidebuttons*/e[2]&&/*hidebuttons*/"false"!==e[2]?A&&(A.d(1),A=null):A?A.p(e,t):(A=Br(e),A.c(),A.m(n,null))},i:e,o:e,d(e){e&&f(r),_&&_.d(),A&&A.d()
|
|
576
|
+
/*div1_binding*/,t[11](null)}}}function Ar(e,t,r){let n;var i,o;i=yr,o=e=>r(5,n=e),e.$$.on_destroy.push(h(i,o));let s,{assetsurl:a=""}=t,{imgurl:l=""}=t,{lang:c="en"}=t,{hidebuttons:u=""}=t,{errorcode:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,{translationurl:g=""}=t;Object.keys(Tr).forEach((e=>{vr(e,Tr[e])}));const d=()=>{var e;e=c,qt.set(e)};return e.$$set=e=>{"assetsurl"in e&&r(0,a=e.assetsurl),"imgurl"in e&&r(1,l=e.imgurl),"lang"in e&&r(7,c=e.lang),"hidebuttons"in e&&r(2,u=e.hidebuttons),"errorcode"in e&&r(3,f=e.errorcode),"clientstyling"in e&&r(8,p=e.clientstyling),"clientstylingurl"in e&&r(9,m=e.clientstylingurl),"translationurl"in e&&r(10,g=e.translationurl)},e.$$.update=()=>{/*lang*/128&e.$$.dirty&&c&&d(),/*clientstyling, customStylingContainer*/272&e.$$.dirty&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/528&e.$$.dirty&&m&&s&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))})(),/*translationurl*/1024&e.$$.dirty&&g&&fetch(g).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{vr(t,e[t])}))})).catch((e=>{console.log(e)}))},[a,l,u,f,s,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},c,p,m,g,function(e){T[e?"unshift":"push"]((()=>{s=e,r(4,s)}))}]}class Pr extends R{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierError{display:flex;width:100%;justify-content:center}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:400px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:0 var(--emw--spacing-medium, 15px)}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--mmw--color-main-button-active, #5C950F)}",this.shadowRoot.appendChild(t),M(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ar,_r,o,{assetsurl:0,imgurl:1,lang:7,hidebuttons:2,errorcode:3,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["assetsurl","imgurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(e){this.$$set({assetsurl:e}),w()}get imgurl(){return this.$$.ctx[1]}set imgurl(e){this.$$set({imgurl:e}),w()}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),w()}get hidebuttons(){return this.$$.ctx[2]}set hidebuttons(e){this.$$set({hidebuttons:e}),w()}get errorcode(){return this.$$.ctx[3]}set errorcode(e){this.$$set({errorcode:e}),w()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),w()}}return!customElements.get("cashier-error")&&customElements.define("cashier-error",Pr),Pr}));
|
|
577
577
|
//# sourceMappingURL=cashier-error.js.map
|