@everymatrix/cashier-error 1.28.2 → 1.28.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.
- package/dist/cashier-error.js +26 -26
- package/dist/cashier-error.js.map +1 -1
- package/package.json +2 -2
- package/src/CashierError.svelte +5 -5
package/dist/cashier-error.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function h(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function h(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function u(e,t){e.appendChild(t)}function c(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function g(){return m(" ")}function E(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function b(e,t){t=""+t,e.data!==t&&(e.data=t)}function d(e){const t={};for(const r of e)t[r.name]=r.value;return t}function y(e){a=e}const v=[],T=[];let H=[];const B=[],_=Promise.resolve();let A=!1;function P(e){H.push(e)}
|
|
2
2
|
// flush() calls callbacks in this order:
|
|
3
3
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
4
4
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -39,13 +39,13 @@ S.add(t),t())}H.length=0}while(v.length);for(;B.length;)B.pop()();A=!1,S.clear()
|
|
|
39
39
|
*/const w=new Set;function O(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];H.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),H=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
|
|
40
40
|
// TODO null out other refs, including component.$$ (but need to
|
|
41
41
|
// preserve final state?)
|
|
42
|
-
r.on_destroy=r.fragment=null,r.ctx=[])}function I(e,t){-1===e.$$.dirty[0]&&(v.push(e),A||(A=!0,_.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function M(o,s,h,l,c,
|
|
42
|
+
r.on_destroy=r.fragment=null,r.ctx=[])}function I(e,t){-1===e.$$.dirty[0]&&(v.push(e),A||(A=!0,_.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function M(o,s,h,l,u,c,p,m=[-1]){const g=a;y(o);const E=o.$$={fragment:null,ctx:[],
|
|
43
43
|
// state
|
|
44
|
-
props:
|
|
44
|
+
props:c,update:e,not_equal:u,bound:r(),
|
|
45
45
|
// lifecycle
|
|
46
46
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(g?g.$$.context:[])),
|
|
47
47
|
// everything else
|
|
48
|
-
callbacks:r(),dirty:m,skip_bound:!1,root:s.target||g.$$.root};p&&p(E.root);let b=!1;if(E.ctx=h?h(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return E.ctx&&
|
|
48
|
+
callbacks:r(),dirty:m,skip_bound:!1,root:s.target||g.$$.root};p&&p(E.root);let b=!1;if(E.ctx=h?h(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return E.ctx&&u(E.ctx[e],E.ctx[e]=n)&&(!E.skip_bound&&E.bound[e]&&E.bound[e](n),b&&I(o,e)),t})):[],E.update(),b=!0,n(E.before_update),
|
|
49
49
|
// `false` as a special case of no DOM component
|
|
50
50
|
E.fragment=!!l&&l(E.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
|
51
51
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -78,11 +78,11 @@ if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
78
78
|
* @param {StartStopNotifier=} start
|
|
79
79
|
*/
|
|
80
80
|
function G(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
|
|
81
|
-
const e=!U.length;for(const e of i)e[1](),U.push(e,t);if(e){for(let e=0;e<U.length;e+=2)U[e][0](U[e+1]);U.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const h=[o,a];return i.add(h),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(h),0===i.size&&n&&(n(),n=null)}}}}function D(t,r,o){const s=!Array.isArray(t),a=s?[t]:t,h=r.length<2;return
|
|
81
|
+
const e=!U.length;for(const e of i)e[1](),U.push(e,t);if(e){for(let e=0;e<U.length;e+=2)U[e][0](U[e+1]);U.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const h=[o,a];return i.add(h),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(h),0===i.size&&n&&(n(),n=null)}}}}function D(t,r,o){const s=!Array.isArray(t),a=s?[t]:t,h=r.length<2;return u=t=>{let o=!1;const u=[];let c=0,f=e;const p=()=>{if(c)return;f();const n=r(s?u[0]:u,t);h?t(n):f=i(n)?n:e},m=a.map(((e,t)=>l(e,(e=>{u[t]=e,c&=~(1<<t),o&&p()}),(()=>{c|=1<<t}))));return o=!0,p(),function(){n(m),f(),
|
|
82
82
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
83
83
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
84
84
|
// invoke this derived store.
|
|
85
|
-
o=!1}},{subscribe:G(o,
|
|
85
|
+
o=!1}},{subscribe:G(o,u).subscribe};var u}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
87
|
(e)};var k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function F(e,t){return!1!==t.clone&&t.isMergeableObject(e)?K((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function x(e,t,r){return e.concat(t).map((function(e){return F(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.
|
|
@@ -94,7 +94,7 @@ r.cloneUnlessOtherwiseSpecified=F;var n=Array.isArray(t);return n===Array.isArra
|
|
|
94
94
|
/**
|
|
95
95
|
* Type Guards
|
|
96
96
|
*/
|
|
97
|
-
function te(e){return e.type===Q.literal}function re(e){return e.type===Q.argument}function ne(e){return e.type===Q.number}function ie(e){return e.type===Q.date}function oe(e){return e.type===Q.time}function se(e){return e.type===Q.select}function ae(e){return e.type===Q.plural}function he(e){return e.type===Q.pound}function le(e){return e.type===Q.tag}function
|
|
97
|
+
function te(e){return e.type===Q.literal}function re(e){return e.type===Q.argument}function ne(e){return e.type===Q.number}function ie(e){return e.type===Q.date}function oe(e){return e.type===Q.time}function se(e){return e.type===Q.select}function ae(e){return e.type===Q.plural}function he(e){return e.type===Q.pound}function le(e){return e.type===Q.tag}function ue(e){return!(!e||"object"!=typeof e||e.type!==J.number)}function ce(e){return!(!e||"object"!=typeof e||e.type!==J.dateTime)}
|
|
98
98
|
// @generated from regex-gen.ts
|
|
99
99
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
100
100
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -393,17 +393,17 @@ return this.error(W.EXPECT_ARGUMENT_TYPE,Ne(o,a));case"number":case"date":case"t
|
|
|
393
393
|
// Parse this range:
|
|
394
394
|
// {name, number, style}
|
|
395
395
|
// ^-------^
|
|
396
|
-
this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Xe(b.val)).length)return this.error(W.EXPECT_ARGUMENT_STYLE,Ne(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:Ne(l,this.clonePosition())}}if((d=this.tryParseArgumentClose(n)).err)return d;var
|
|
396
|
+
this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Xe(b.val)).length)return this.error(W.EXPECT_ARGUMENT_STYLE,Ne(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:Ne(l,this.clonePosition())}}if((d=this.tryParseArgumentClose(n)).err)return d;var u=Ne(n,this.clonePosition());
|
|
397
397
|
// Extract style or skeleton
|
|
398
398
|
if(h&&ke(null==h?void 0:h.style,"::",0)){
|
|
399
399
|
// Skeleton starts with `::`.
|
|
400
|
-
var
|
|
400
|
+
var c=Ve(h.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(c,h.styleLocation)).err?b:{val:{type:Q.number,value:r,location:u,style:b.val},err:null};if(0===c.length)return this.error(W.EXPECT_DATE_TIME_SKELETON,u);var f=c;
|
|
401
401
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
402
402
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
403
403
|
// for unsupported patterns.
|
|
404
|
-
this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=Se(t);for("H"!=h&&"k"!=h||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(
|
|
404
|
+
this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=Se(t);for("H"!=h&&"k"!=h||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(c,this.locale));var p={type:J.dateTime,pattern:f,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?me(f):{}};return{val:{type:"date"===s?Q.date:Q.time,value:r,location:u,style:p},err:null}}
|
|
405
405
|
// Regular style or no style.
|
|
406
|
-
return{val:{type:"number"===s?Q.number:"date"===s?Q.date:Q.time,value:r,location:
|
|
406
|
+
return{val:{type:"number"===s?Q.number:"date"===s?Q.date:Q.time,value:r,location:u,style:null!==(i=null==h?void 0:h.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
407
407
|
// Parse this range:
|
|
408
408
|
// {name, plural, options}
|
|
409
409
|
// ^---------^
|
|
@@ -442,9 +442,9 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){
|
|
|
442
442
|
// Parse:
|
|
443
443
|
// one {one apple}
|
|
444
444
|
// ^--^
|
|
445
|
-
for(var i,o=!1,s=[],a=new Set,h=n.value,l=n.location;;){if(0===h.length){var
|
|
445
|
+
for(var i,o=!1,s=[],a=new Set,h=n.value,l=n.location;;){if(0===h.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
446
446
|
// Try parse `={number}` selector
|
|
447
|
-
var
|
|
447
|
+
var c=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_SELECTOR,W.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Ne(u,this.clonePosition()),h=this.message.slice(u.offset,this.offset())}
|
|
448
448
|
// Duplicate selector clauses
|
|
449
449
|
if(a.has(h))return this.error("select"===t?W.DUPLICATE_SELECT_ARGUMENT_SELECTOR:W.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===h&&(o=!0),
|
|
450
450
|
// Parse:
|
|
@@ -503,7 +503,7 @@ function We(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||
|
|
|
503
503
|
/**
|
|
504
504
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
505
505
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
506
|
-
*/function Qe(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Je(e){e.forEach((function(e){if(delete e.location,se(e)||ae(e))for(var t in e.options)delete e.options[t].location,Je(e.options[t].value);else ne(e)&&
|
|
506
|
+
*/function Qe(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Je(e){e.forEach((function(e){if(delete e.location,se(e)||ae(e))for(var t in e.options)delete e.options[t].location,Je(e.options[t].value);else ne(e)&&ue(e.style)||(ie(e)||oe(e))&&ce(e.style)?delete e.style.location:le(e)&&Je(e.children)}))}function qe(e,t){void 0===t&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ze(e,t).parse();if(r.err){var n=SyntaxError(W[r.err.kind]);
|
|
507
507
|
// @ts-expect-error Assign to error object
|
|
508
508
|
throw n.location=r.err.location,
|
|
509
509
|
// @ts-expect-error Assign to error object
|
|
@@ -529,33 +529,33 @@ e.MISSING_VALUE="MISSING_VALUE",
|
|
|
529
529
|
// When value supplied is invalid
|
|
530
530
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
531
531
|
// When we need specific Intl API but it's not available
|
|
532
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(at||(at={}));var ct
|
|
532
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(at||(at={}));var ut,ct=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return Z(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ft=/** @class */function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),at.INVALID_VALUE,i)||this}return Z(t,e),t}(ct),pt=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),at.INVALID_VALUE,n)||this}return Z(t,e),t}(ct),mt=/** @class */function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),at.MISSING_VALUE,r)||this}return Z(t,e),t}(ct);function gt(e){return"function"==typeof e}
|
|
533
533
|
// TODO(skeleton): add skeleton support
|
|
534
534
|
function Et(e,t,r,n,i,o,
|
|
535
535
|
// For debugging
|
|
536
536
|
s){
|
|
537
537
|
// Hot path for straight simple msg translations
|
|
538
|
-
if(1===e.length&&te(e[0]))return[{type:
|
|
538
|
+
if(1===e.length&&te(e[0]))return[{type:ut.literal,value:e[0].value}];for(var a=[],h=0,l=e;h<l.length;h++){var u=l[h];
|
|
539
539
|
// Exit early for string parts.
|
|
540
|
-
if(te(
|
|
540
|
+
if(te(u))a.push({type:ut.literal,value:u.value});else
|
|
541
541
|
// TODO: should this part be literal type?
|
|
542
542
|
// Replace `#` in plural rules with the actual numeric value.
|
|
543
|
-
if(he(
|
|
543
|
+
if(he(u))"number"==typeof o&&a.push({type:ut.literal,value:r.getNumberFormat(t).format(o)});else{var c=u.value;
|
|
544
544
|
// Enforce that all required values are provided by the caller.
|
|
545
|
-
if(!i||!(
|
|
545
|
+
if(!i||!(c in i))throw new mt(c,s);var f=i[c];if(re(u))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?ut.literal:ut.object,value:f});else
|
|
546
546
|
// Recursively format plural and select parts' option — which can be a
|
|
547
547
|
// nested pattern structure. The choosing of the option to use is
|
|
548
548
|
// abstracted-by and delegated-to the part helper object.
|
|
549
|
-
if(ie(
|
|
549
|
+
if(ie(u)){var p="string"==typeof u.style?n.date[u.style]:ce(u.style)?u.style.parsedOptions:void 0;a.push({type:ut.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(oe(u)){p="string"==typeof u.style?n.time[u.style]:ce(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:ut.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(ne(u)){(p="string"==typeof u.style?n.number[u.style]:ue(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:ut.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(le(u)){var m=u.children,g=u.value,E=i[g];if(!gt(E))throw new pt(g,"function",s);var b=E(Et(m,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(e){return{type:"string"==typeof e?ut.literal:ut.object,value:e}})))}if(se(u)){if(!(d=u.options[f]||u.options.other))throw new ft(u.value,f,Object.keys(u.options),s);a.push.apply(a,Et(d.value,t,r,n,i))}else if(ae(u)){var d;if(!(d=u.options["=".concat(f)])){if(!Intl.PluralRules)throw new ct('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',at.MISSING_INTL_API,s);var y=r.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));d=u.options[y]||u.options.other}if(!d)throw new ft(u.value,f,Object.keys(u.options),s);a.push.apply(a,Et(d.value,t,r,n,i,f-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===ut.literal&&t.type===ut.literal?r.value+=t.value:e.push(t),e}),[])}(a)}
|
|
550
550
|
/*
|
|
551
551
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
552
552
|
Copyrights licensed under the New BSD License.
|
|
553
553
|
See the accompanying LICENSE file for terms.
|
|
554
554
|
*/
|
|
555
555
|
// -- MessageFormat --------------------------------------------------------
|
|
556
|
-
function bt(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?q(q(q({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=q(q({},i[t]),o[t]||{}),e}),{})):i),r}),q({},e)):e}function dt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(
|
|
556
|
+
function bt(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?q(q(q({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=q(q({},i[t]),o[t]||{}),e}),{})):i),r}),q({},e)):e}function dt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ut||(ut={}));var yt=/** @class */function(){function e(t,r,n,i){var o,s=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
557
557
|
// Hot path for straight simple msg translations
|
|
558
|
-
if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===
|
|
558
|
+
if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===ut.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Et(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
|
|
559
559
|
// Defined first because it's used to build the format pattern.
|
|
560
560
|
this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
561
561
|
// Parse string messages into an AST.
|
|
@@ -568,10 +568,10 @@ this.formats=bt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
568
568
|
// and Intl.DateTimeFormat instances.
|
|
569
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=Yt(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 St(e,...t){delete vt[e],_t.update((r=>(r[e]=Y.all([r[e]||{},...t]),r)))}D([_t],(([e])=>Object.keys(e))),_t.subscribe((e=>Bt=e));const Lt={};function Ct(e){return Lt[e]}function Nt(e){return null!=e&&Yt(e).some((e=>{var t;return null==(t=Ct(e))?void 0:t.size}))}function wt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Lt[e].delete(t),0===Lt[e].size&&delete Lt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>St(e,...t)))}const Ot={};function It(e){if(!Nt(e))return e in Ot?Ot[e]:Promise.resolve();const t=function(e){return Yt(e).map((e=>{const t=Ct(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ot[e]=Promise.all(t.map((([e,t])=>wt(e,t)))).then((()=>{if(Nt(e))return It(e);delete Ot[e]})),Ot[e]}const Mt={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 Rt(){return Mt}const Ut=G(!1);var Gt=Object.defineProperty,Dt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,jt=(e,t,r)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Vt;const Xt=G(null);function Kt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Yt(e,t=Rt().fallbackLocale){const r=Kt(e);return t?[...new Set([...r,...Kt(t)])]:r}function zt(){return null!=Vt?Vt:void 0}Xt.subscribe((e=>{Vt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Zt=(Wt=((e,t)=>{for(var r in t||(t={}))Ft.call(t,r)&&jt(e,r,t[r]);if(kt)for(var r of kt(t))xt.call(t,r)&&jt(e,r,t[r]);return e})({},Xt),Dt(Wt,$t({set:e=>{if(e&&function(e){if(null==e)return;const t=Yt(e);for(let e=0;e<t.length;e++){const r=t[e];if(At(r))return r}}(e)&&Nt(e)){const{loadingDelay:t}=Rt();let r;return"undefined"!=typeof window&&null!=zt()&&t?r=window.setTimeout((()=>Ut.set(!0)),t):Ut.set(!0),It(e).then((()=>{Xt.set(e)})).finally((()=>{clearTimeout(r),Ut.set(!1)}))}return Xt.set(e)}})));var Wt;const Qt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var Jt=Object.defineProperty,qt=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,rr=(e,t,r)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nr=(e,t)=>{for(var r in t||(t={}))er.call(t,r)&&rr(e,r,t[r]);if(qt)for(var r of qt(t))tr.call(t,r)&&rr(e,r,t[r]);return e},ir=(e,t)=>{var r={};for(var n in e)er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&qt)for(var n of qt(e))t.indexOf(n)<0&&tr.call(e,n)&&(r[n]=e[n]);return r};const or=(e,t)=>{const{formats:r}=Rt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sr=Qt((e=>{var t=e,{locale:r,format:n}=t,i=ir(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=or("number",n)),new Intl.NumberFormat(r,i)})),ar=Qt((e=>{var t=e,{locale:r,format:n}=t,i=ir(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=or("date",n):0===Object.keys(i).length&&(i=or("date","short")),new Intl.DateTimeFormat(r,i)})),hr=Qt((e=>{var t=e,{locale:r,format:n}=t,i=ir(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=or("time",n):0===Object.keys(i).length&&(i=or("time","short")),new Intl.DateTimeFormat(r,i)})),lr=Qt((
|
|
570
570
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
571
|
-
(e,t=zt())=>new yt(e,t,Rt().formats,{ignoreTag:Rt().ignoreTag}))),
|
|
572
|
-
/* src/CashierError.svelte generated by Svelte v3.59.2 */function dr(e){let t,r;return{c(){t=p("img"),h(t.src,r=`${/*assetsurl*/e[0]}/error-general-icon.png`)||E(t,"src",r),E(t,"width","300px"),E(t,"alt","error")},m(e,r){
|
|
571
|
+
(e,t=zt())=>new yt(e,t,Rt().formats,{ignoreTag:Rt().ignoreTag}))),ur=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=zt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ht(e,h);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(n=(r=Rt()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return u;let c=u;try{c=lr(u,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},cr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=ir(t,["locale"]);return hr(nr({locale:r},n))})(t).format(e),fr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=ir(t,["locale"]);return ar(nr({locale:r},n))})(t).format(e),pr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=ir(t,["locale"]);return sr(nr({locale:r},n))})(t).format(e),mr=(e,t=zt())=>Ht(e,t),gr=D([Zt,_t],(()=>ur));function Er(e,t){St(e,t)}D([Zt],(()=>cr)),D([Zt],(()=>fr)),D([Zt],(()=>pr)),D([Zt,_t],(()=>mr));const br={en:{errorGeneralTitle:"Error Occurred",errorGeneralButton:"CLOSE",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"}};
|
|
572
|
+
/* src/CashierError.svelte generated by Svelte v3.59.2 */function dr(e){let t,r;return{c(){t=p("img"),h(t.src,r=`${/*assetsurl*/e[0]}/error-general-icon.png`)||E(t,"src",r),E(t,"width","300px"),E(t,"alt","error")},m(e,r){c(e,t,r)},p(e,n){/*assetsurl*/1&n&&!h(t.src,r=`${/*assetsurl*/e[0]}/error-general-icon.png`)&&E(t,"src",r)},d(e){e&&f(t)}}}
|
|
573
573
|
// (65:2) {#if !hidebuttons || hidebuttons === 'false'}
|
|
574
|
-
function yr(e){let t,r,n,i,o,s,a=/*$_*/e[4]("errorGeneralButton")+"";return{c(){t=p("div"),r=p("slot"),n=p("span"),i=m(a),E(r,"name","button"),E(t,"class","CashierErrorButton")},m(a,h){
|
|
574
|
+
function yr(e){let t,r,n,i,o,s,a=/*$_*/e[4]("errorGeneralButton")+"";return{c(){t=p("div"),r=p("slot"),n=p("span"),i=m(a),E(r,"name","button"),E(t,"class","CashierErrorButton")},m(a,h){c(a,t,h),u(t,r),u(r,n),u(n,i),o||(s=function(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}(t,"click",/*close*/e[5]),o=!0)},p(e,t){/*$_*/16&t&&a!==(a=/*$_*/e[4]("errorGeneralButton")+"")&&b(i,a)},d(e){e&&f(t),o=!1,s()}}}function vr(t){let r,n,i,o,s,a,h,l,d,y,v,T=/*$_*/t[4]("errorGeneralTitle")+"",H=/*$_*/t[4](`${/*errorcode*/t[2]}`)+"",B=/*assetsurl*/t[0]&&dr(t),_=(!/*hidebuttons*/t[1]||/*hidebuttons*/"false"===t[1])&&yr(t);return{c(){r=p("div"),n=p("slot"),B&&B.c(),i=g(),o=p("slot"),s=p("span"),a=m(T),h=g(),l=p("slot"),d=p("span"),y=m(H),v=g(),_&&_.c(),this.c=e,E(n,"name","icon"),E(n,"class","CashierErrorIcon"),E(o,"name","title"),E(o,"class","CashierErrorTitle"),E(l,"name","text"),E(l,"class","CashierErrorText"),E(r,"class","CashierError")},m(e,f){c(e,r,f),u(r,n),B&&B.m(n,null),u(r,i),u(r,o),u(o,s),u(s,a),u(r,h),u(r,l),u(l,d),u(d,y),u(r,v),_&&_.m(r,null)
|
|
575
575
|
/*div_binding*/,t[10](r)},p(e,[t]){/*assetsurl*/e[0]?B?B.p(e,t):(B=dr(e),B.c(),B.m(n,null)):B&&(B.d(1),B=null),/*$_*/16&t&&T!==(T=/*$_*/e[4]("errorGeneralTitle")+"")&&b(a,T),/*$_, errorcode*/20&t&&H!==(H=/*$_*/e[4](`${/*errorcode*/e[2]}`)+"")&&b(y,H),/*hidebuttons*/e[1]&&/*hidebuttons*/"false"!==e[1]?_&&(_.d(1),_=null):_?_.p(e,t):(_=yr(e),_.c(),_.m(r,null))},i:e,o:e,d(e){e&&f(r),B&&B.d(),_&&_.d()
|
|
576
|
-
/*div_binding*/,t[10](null)}}}function Tr(e,t,r){let n;var i,o;i=gr,o=e=>r(4,n=e),e.$$.on_destroy.push(l(i,o));let s,{assetsurl:a=""}=t,{lang:h="en"}=t,{hidebuttons:
|
|
576
|
+
/*div_binding*/,t[10](null)}}}function Tr(e,t,r){let n;var i,o;i=gr,o=e=>r(4,n=e),e.$$.on_destroy.push(l(i,o));let s,{assetsurl:a=""}=t,{lang:h="en"}=t,{hidebuttons:u=""}=t,{errorcode:c=""}=t,{clientstyling:f=""}=t,{clientstylingurl:p=""}=t,{translationurl:m=""}=t;Object.keys(br).forEach((e=>{Er(e,br[e])}));const g=()=>{var e;e=h,Zt.set(e)};return e.$$set=e=>{"assetsurl"in e&&r(0,a=e.assetsurl),"lang"in e&&r(6,h=e.lang),"hidebuttons"in e&&r(1,u=e.hidebuttons),"errorcode"in e&&r(2,c=e.errorcode),"clientstyling"in e&&r(7,f=e.clientstyling),"clientstylingurl"in e&&r(8,p=e.clientstylingurl),"translationurl"in e&&r(9,m=e.translationurl)},e.$$.update=()=>{/*lang*/64&e.$$.dirty&&h&&g(),/*clientstyling, customStylingContainer*/136&e.$$.dirty&&f&&s&&(()=>{let e=document.createElement("style");e.innerHTML=f,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/264&e.$$.dirty&&p&&s&&(()=>{let e=new URL(p),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))})(),/*translationurl*/512&e.$$.dirty&&m&&fetch(m).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)}))},[a,u,c,s,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},h,f,p,m,function(e){T[e?"unshift":"push"]((()=>{s=e,r(3,s)}))}]}class Hr extends R{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierError{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.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);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:d(this.attributes),customElement:!0},Tr,vr,o,{assetsurl:0,lang:6,hidebuttons:1,errorcode:2,clientstyling:7,clientstylingurl:8,translationurl:9},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["assetsurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(e){this.$$set({assetsurl:e}),C()}get lang(){return this.$$.ctx[6]}set lang(e){this.$$set({lang:e}),C()}get hidebuttons(){return this.$$.ctx[1]}set hidebuttons(e){this.$$set({hidebuttons:e}),C()}get errorcode(){return this.$$.ctx[2]}set errorcode(e){this.$$set({errorcode:e}),C()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),C()}}return!customElements.get("cashier-error")&&customElements.define("cashier-error",Hr),Hr}));
|
|
577
577
|
//# sourceMappingURL=cashier-error.js.map
|