@everymatrix/cashier-receipt-page 1.29.4 → 1.29.6
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.
|
@@ -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 n(){return Object.create(null)}function r(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;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}const c="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function u(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function d(){return m(" ")}function g(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t){t=""+t,e.data!==t&&(e.data=t)}function y(e){const t={};for(const n of e)t[n.name]=n.value;return t}let v;function T(e){v=e}const H=[],B=[];let
|
|
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 n(){return Object.create(null)}function r(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;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}const c="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function u(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function d(){return m(" ")}function g(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t){t=""+t,e.data!==t&&(e.data=t)}function y(e){const t={};for(const n of e)t[n.name]=n.value;return t}let v;function T(e){v=e}const H=[],B=[];let C=[];const A=[],_=Promise.resolve();let L=!1;function P(e){C.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.
|
|
@@ -31,15 +31,15 @@ throw H.length=0,S=0,e}for(T(null),H.length=0,S=0;B.length;)B.pop()();
|
|
|
31
31
|
// then, once components are updated, call
|
|
32
32
|
// afterUpdate functions. This may cause
|
|
33
33
|
// subsequent updates...
|
|
34
|
-
for(let e=0;e<
|
|
34
|
+
for(let e=0;e<C.length;e+=1){const t=C[e];w.has(t)||(
|
|
35
35
|
// ...so guard against infinite loops
|
|
36
|
-
w.add(t),t())}
|
|
36
|
+
w.add(t),t())}C.length=0}while(H.length);for(;A.length;)A.pop()();L=!1,w.clear(),T(e)}function N(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}
|
|
37
37
|
/**
|
|
38
38
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
39
|
-
*/const R=new Set;function O(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];
|
|
39
|
+
*/const R=new Set;function O(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];C.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),C=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),
|
|
40
40
|
// TODO null out other refs, including component.$$ (but need to
|
|
41
41
|
// preserve final state?)
|
|
42
|
-
n.on_destroy=n.fragment=null,n.ctx=[])}function M(e,t){-1===e.$$.dirty[0]&&(H.push(e),L||(L=!0,
|
|
42
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function M(e,t){-1===e.$$.dirty[0]&&(H.push(e),L||(L=!0,_.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function x(o,s,a,l,c,u,h,f=[-1]){const m=v;T(o);const d=o.$$={fragment:null,ctx:[],
|
|
43
43
|
// state
|
|
44
44
|
props:u,update:e,not_equal:c,bound:n(),
|
|
45
45
|
// lifecycle
|
|
@@ -241,12 +241,12 @@ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `
|
|
|
241
241
|
// @generated from regex-gen.ts
|
|
242
242
|
var be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ye=/^(@+)?(\+|#+)?[rs]?$/g,ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function He(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ye,(function(e,n,r){
|
|
243
243
|
// @@@ case
|
|
244
|
-
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Be(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function
|
|
244
|
+
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Be(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ce(e){
|
|
245
245
|
// Engineering
|
|
246
|
-
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function
|
|
246
|
+
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ae(e){var t=Be(e);return t||{}}
|
|
247
247
|
/**
|
|
248
248
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
249
|
-
*/function
|
|
249
|
+
*/function _e(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=te(te(te({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return te(te({},e),Ae(t))}),{}));continue;case"engineering":t=te(te(te({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return te(te({},e),Ae(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
250
250
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
251
251
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
|
|
252
252
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
@@ -262,7 +262,7 @@ return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDi
|
|
|
262
262
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
263
263
|
"w"===o?t=te(te({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=te(te({},t),He(o)))}
|
|
264
264
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
265
|
-
else if(ye.test(i.stem))t=te(te({},t),He(i.stem));else{var s=Be(i.stem);s&&(t=te(te({},t),s));var a=
|
|
265
|
+
else if(ye.test(i.stem))t=te(te({},t),He(i.stem));else{var s=Be(i.stem);s&&(t=te(te({},t),s));var a=Ce(i.stem);a&&(t=te(te({},t),a))}}return t}
|
|
266
266
|
// @generated from time-data-gen.ts
|
|
267
267
|
// prettier-ignore
|
|
268
268
|
var Le,Pe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
|
|
@@ -427,7 +427,7 @@ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePos
|
|
|
427
427
|
// Find the end of the quoted literal text.
|
|
428
428
|
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ne(n,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
429
429
|
// Parse the skeleton
|
|
430
|
-
for(var t=[],n=0,r=e.split(be).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(q.INVALID_NUMBER_SKELETON,t)}return{val:{type:ee.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?
|
|
430
|
+
for(var t=[],n=0,r=e.split(be).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(q.INVALID_NUMBER_SKELETON,t)}return{val:{type:ee.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?_e(n):{}},err:null}},
|
|
431
431
|
/**
|
|
432
432
|
* @param nesting_level The current nesting level of messages.
|
|
433
433
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -566,31 +566,31 @@ this.formats=yt(e.formats,r),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 Ht={},Bt=(e,t,n)=>n?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=n),n):n,
|
|
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 Ht={},Bt=(e,t,n)=>n?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=n),n):n,Ct=(e,t)=>{if(null==t)return;if(t in Ht&&e in Ht[t])return Ht[t][e];const n=Yt(t);for(let r=0;r<n.length;r++){const i=Pt(n[r],e);if(i)return Bt(e,t,i)}};let At;const _t=G({});function Lt(e){return e in At}function Pt(e,t){if(!Lt(e))return null;const n=function(e){return At[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function wt(e,...t){delete Ht[e],_t.update((n=>(n[e]=Y.all([n[e]||{},...t]),n)))}$([_t],(([e])=>Object.keys(e))),_t.subscribe((e=>At=e));const St={};function It(e){return St[e]}function Nt(e){return null!=e&&Yt(e).some((e=>{var t;return null==(t=It(e))?void 0:t.size}))}function Rt(e,t){const n=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 n.then((t=>wt(e,...t)))}const Ot={};function Mt(e){if(!Nt(e))return e in Ot?Ot[e]:Promise.resolve();const t=function(e){return Yt(e).map((e=>{const t=It(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ot[e]=Promise.all(t.map((([e,t])=>Rt(e,t)))).then((()=>{if(Nt(e))return Mt(e);delete Ot[e]})),Ot[e]}const xt={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 Ut(){return xt}const Dt=G(!1);var Gt=Object.defineProperty,$t=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Xt=(e,t,n)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Kt;const zt=G(null);function Zt(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Yt(e,t=Ut().fallbackLocale){const n=Zt(e);return t?[...new Set([...n,...Zt(t)])]:n}function Wt(){return null!=Kt?Kt:void 0}zt.subscribe((e=>{Kt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qt=(qt=((e,t)=>{for(var n in t||(t={}))jt.call(t,n)&&Xt(e,n,t[n]);if(Ft)for(var n of Ft(t))Vt.call(t,n)&&Xt(e,n,t[n]);return e})({},zt),$t(qt,kt({set:e=>{if(e&&function(e){if(null==e)return;const t=Yt(e);for(let e=0;e<t.length;e++){const n=t[e];if(Lt(n))return n}}(e)&&Nt(e)){const{loadingDelay:t}=Ut();let n;return"undefined"!=typeof window&&null!=Wt()&&t?n=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Mt(e).then((()=>{zt.set(e)})).finally((()=>{clearTimeout(n),Dt.set(!1)}))}return zt.set(e)}})));var qt;const Jt=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var en=Object.defineProperty,tn=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,on=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sn=(e,t)=>{for(var n in t||(t={}))nn.call(t,n)&&on(e,n,t[n]);if(tn)for(var n of tn(t))rn.call(t,n)&&on(e,n,t[n]);return e},an=(e,t)=>{var n={};for(var r in e)nn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&tn)for(var r of tn(e))t.indexOf(r)<0&&rn.call(e,r)&&(n[r]=e[r]);return n};const ln=(e,t)=>{const{formats:n}=Ut();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cn=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=ln("number",r)),new Intl.NumberFormat(n,i)})),un=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=ln("date",r):0===Object.keys(i).length&&(i=ln("date","short")),new Intl.DateTimeFormat(n,i)})),hn=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=ln("time",r):0===Object.keys(i).length&&(i=ln("time","short")),new Intl.DateTimeFormat(n,i)})),pn=Jt((
|
|
570
570
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
571
|
-
(e,t=Wt())=>new Tt(e,t,Ut().formats,{ignoreTag:Ut().ignoreTag}))),fn=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Wt(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=
|
|
572
|
-
// (
|
|
573
|
-
function
|
|
574
|
-
// (
|
|
571
|
+
(e,t=Wt())=>new Tt(e,t,Ut().formats,{ignoreTag:Ut().ignoreTag}))),fn=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Wt(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ct(e,l);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==(r=(n=Ut()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=pn(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},mn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return hn(sn({locale:n},r))})(t).format(e),dn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return un(sn({locale:n},r))})(t).format(e),gn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return cn(sn({locale:n},r))})(t).format(e),bn=(e,t=Wt())=>Ct(e,t),En=$([Qt,_t],(()=>fn));function yn(e,t){wt(e,t)}$([Qt],(()=>mn)),$([Qt],(()=>dn)),$([Qt],(()=>gn)),$([Qt,_t],(()=>bn));const vn={en:{deposit:{success:{title:"{amount} {currency}",subTitle:"Deposited in your account",text:"Your deposit is successful"},pending:{title:"{amount} {currency}",subTitle:"Transaction is in progress",text:"Thank you. Your deposit is being processed."},reject:{title:"Deposit Rejected",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:"{errorText}"}}},"pt-br":{deposit:{success:{title:"{amount} {currency}",subTitle:"Depositado em sua conta",text:"Seu depósito foi bem-sucedido"},pending:{title:"{amount} {currency}",subTitle:"Transação em andamento",text:"Obrigado. Seu depósito está sendo processado."},reject:{title:"Depósito Rejeitado",subTitle:"",text:"{errorText}"},fail:{title:"Erro",subTitle:"",text:"{errorText}"},cancel:{title:"Você cancelou a transação",subTitle:"",text:"{errorText}"}},reference:"Referência ID: {código}",close:"VOLTAR AO PROVEDOR DE PAGAMENTO"},"es-mx":{deposit:{success:{title:"{amount} {currency}",subTitle:"Depositado en tu cuenta",text:"Tu depósito fue exitoso"},pending:{title:"{amount} {currency}",subTitle:"Transacción en proceso",text:"Gracias. Tu depósito está siendo procesado."},reject:{title:"Depósito Rechazado",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"Has cancelado la transacción",subTitle:" ",text:"{errorText}"}},reference:"Referencia ID: {code}",close:"REGRESAR A PROVEEDOR DE PAGO"}},Tn={Success:"/txn-success.png",Voided:"/txn-success.png",Rejected:"/txn-failed.png",Failed:"/txn-failed.png",Canceled:"/txn-failed.png",PendingNotification:"/txn-pending.png","Pending Approval III":"/txn-pending.png","Pending Confirmation":"/txn-pending.png","Pending Approval I":"/txn-pending.png","Pending Offline Notification":"/txn-pending.png","Pending Approval II":"/txn-pending.png"},Hn={Deposit:"deposit",Withdraw:"withdrawal"},Bn={Success:"success",Voided:"success",PendingNotification:"pending","Pending Approval III":"pending","Pending Confirmation":"pending","Pending Approval I":"pending","Pending Offline Notification":"pending","Pending Approval II":"pending",Rejected:"reject",Failed:"fail",Canceled:"cancel"},{document:Cn}=c;function An(e,t,n){const r=e.slice();return r[37]=t[n],r[39]=n,r}
|
|
572
|
+
// (203:5) {#if txnInfo}
|
|
573
|
+
function _n(e){let t,n,i,o,s,l,c,y,v,T,H,B,C,A,_,L,P,w,S,I,N,R,O,M,x,U=/*$_*/e[9]("close")+"",D=/*txnInfo*/e[2].referenceId&&Ln(e),G=/*receiptFields*/e[3].length&&Pn(e);return{c(){t=f("div"),n=f("span"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.33279 0.00663425C7.89688 0.105453 6.49895 0.511564 5.2336 1.19749C3.96825 1.88341 2.86499 2.83313 1.9985 3.9824C0.985792 5.31809 0.356137 6.84155 0.0769857 8.63039C-0.0256619 9.28509 -0.0256619 10.7147 0.0769857 11.3694C0.505101 14.1158 1.83326 16.3704 3.9851 18.0027C5.31451 19.0117 6.84672 19.6451 8.63053 19.923C9.28522 20.0257 10.7148 20.0257 11.3695 19.923C13.803 19.5437 15.8709 18.4471 17.4232 16.7121C18.8001 15.1736 19.595 13.4737 19.923 11.3694C20.0257 10.7147 20.0257 9.28509 19.923 8.63039C19.6451 6.84655 19.0117 5.31433 18.0028 3.9849C17.1973 2.91304 16.1846 2.01398 15.0249 1.34112C13.8652 0.668249 12.5821 0.235297 11.2518 0.0679732C10.614 0.00852964 9.97311 -0.0119547 9.33279 0.00663425ZM11.3019 1.33481C14.7956 1.87685 17.641 4.45559 18.4885 7.848C18.69 8.65292 18.7288 9.00343 18.7288 9.99988C18.7288 10.6946 18.715 10.97 18.6675 11.2855C18.4018 13.0557 17.6016 14.7024 16.374 16.0052C15.1464 17.308 13.5501 18.2045 11.7988 18.5748C10.686 18.8127 9.31401 18.8127 8.20117 18.5748C4.93272 17.8788 2.33398 15.3927 1.52156 12.1868C1.31126 11.3556 1.2712 11.0101 1.2712 9.99988C1.2712 8.98966 1.31126 8.64416 1.52156 7.81295C1.91376 6.29839 2.70396 4.91631 3.81023 3.81003C4.9165 2.70374 6.29856 1.91353 7.81311 1.52133C8.0885 1.45123 8.49409 1.36986 8.7144 1.34107L9.21512 1.27347C9.46673 1.23967 10.9689 1.28349 11.3019 1.33481ZM9.5481 5.25925C8.67685 5.35439 7.88821 5.8138 7.33116 6.54987C7.12462 6.82277 7.042 7.06437 7.09332 7.25339C7.17594 7.56009 7.55398 7.71781 7.87945 7.58262C7.94079 7.55633 8.16236 7.36355 8.37016 7.15325C8.79201 6.72763 8.99981 6.59995 9.41541 6.51232C10.5533 6.27197 11.541 6.85532 11.596 7.79918C11.6086 8.02326 11.5998 8.08084 11.5259 8.24107C11.3632 8.59659 11.0177 8.88826 10.5095 9.09982C10.1439 9.24341 9.76155 9.33975 9.3716 9.38649L9.1275 9.40902L9.13876 10.5306L9.14878 11.6523L9.23265 11.8025C9.42542 12.1517 9.96745 12.2118 10.2378 11.9152C10.3793 11.7587 10.4056 11.6247 10.4256 10.9638L10.4431 10.3416L10.6635 10.2815C12.1518 9.88095 13.1433 8.66669 12.973 7.44993C12.8579 6.62248 12.3709 5.96027 11.586 5.56845C11.0778 5.31433 10.2278 5.18539 9.5481 5.25925ZM9.37285 13.0568C9.06365 13.2108 8.90092 13.4799 8.89967 13.8404C8.89717 14.6003 9.77342 15.0071 10.3405 14.5089C10.4789 14.3866 10.576 14.2244 10.6186 14.0447C10.6612 13.8649 10.6471 13.6764 10.5783 13.505C10.3755 13.0493 9.81098 12.839 9.37285 13.0568Z" fill="#111111"></path></svg>',i=d(),o=f("span"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',s=d(),l=f("div"),c=f("img"),v=d(),T=f("div"),H=f("h2"),B=m(/*title*/e[5]),C=d(),A=f("div"),_=m(/*subTitle*/e[4]),L=d(),P=f("div"),w=m(/*text*/e[6]),S=d(),D&&D.c(),I=d(),G&&G.c(),N=d(),R=f("button"),O=m(U),b(t,"class","HeaderButtonContainer"),a(c.src,y=/*statusImageUrl*/e[7])||b(c,"src",y),b(c,"class","StatusLogo"),b(H,"class","Title"),b(A,"class","SubTitle"),b(T,"class","TitleWrapper"),b(l,"class","ReceiptWrapper"),b(P,"class","Text"),b(R,"class","PrimaryButton")},m(r,a){h(r,t,a),u(t,n),u(t,i),u(t,o),h(r,s,a),h(r,l,a),u(l,c),u(l,v),u(l,T),u(T,H),u(H,B),u(T,C),u(T,A),u(A,_),h(r,L,a),h(r,P,a),u(P,w),h(r,S,a),D&&D.m(r,a),h(r,I,a),G&&G.m(r,a),h(r,N,a),h(r,R,a),u(R,O),M||(x=[g(n,"click",/*liveChat*/e[11]),g(o,"click",/*closeReceipt*/e[10]),g(R,"click",/*closeReceipt*/e[10])],M=!0)},p(e,t){/*statusImageUrl*/128&t[0]&&!a(c.src,y=/*statusImageUrl*/e[7])&&b(c,"src",y),/*title*/32&t[0]&&E(B,/*title*/e[5]),/*subTitle*/16&t[0]&&E(_,/*subTitle*/e[4]),/*text*/64&t[0]&&E(w,/*text*/e[6]),/*txnInfo*/e[2].referenceId?D?D.p(e,t):(D=Ln(e),D.c(),D.m(I.parentNode,I)):D&&(D.d(1),D=null),/*receiptFields*/e[3].length?G?G.p(e,t):(G=Pn(e),G.c(),G.m(N.parentNode,N)):G&&(G.d(1),G=null),/*$_*/512&t[0]&&U!==(U=/*$_*/e[9]("close")+"")&&E(O,U)},d(e){e&&p(t),e&&p(s),e&&p(l),e&&p(L),e&&p(P),e&&p(S),D&&D.d(e),e&&p(I),G&&G.d(e),e&&p(N),e&&p(R),M=!1,r(x)}}}
|
|
574
|
+
// (224:7) {#if txnInfo.referenceId}
|
|
575
575
|
function Ln(e){let t,n,r=/*$_*/e[9]("reference",{values:{code:/*txnInfo*/e[2].referenceId}})+"";return{c(){t=f("div"),n=m(r),b(t,"class","Reference")},m(e,r){h(e,t,r),u(t,n)},p(e,t){/*$_, txnInfo*/516&t[0]&&r!==(r=/*$_*/e[9]("reference",{values:{code:/*txnInfo*/e[2].referenceId}})+"")&&E(n,r)},d(e){e&&p(t)}}}
|
|
576
|
-
// (
|
|
577
|
-
function Pn(e){let t,n=/*receiptFields*/e[3],r=[];for(let t=0;t<n.length;t+=1)r[t]=On(
|
|
578
|
-
// (
|
|
579
|
-
function wn(e){let t,n,r=/*field*/e[
|
|
580
|
-
// (
|
|
581
|
-
function Sn(e){let t,n,r,i,o,s,a=/*field*/e[
|
|
582
|
-
// (
|
|
583
|
-
function In(e){let t,n,r;return{c(){t=f("img"),a(t.src,n=/*field*/e[
|
|
584
|
-
// (
|
|
585
|
-
function Nn(e){let t,n=/*field*/e[
|
|
586
|
-
// (
|
|
587
|
-
function Rn(e){let t,n,r,i,o,s=/*field*/e[
|
|
588
|
-
return e[22](/*field*/e[
|
|
589
|
-
/*div0_binding*/e[21](n),i||(o=g(t,"click",a),i=!0)},p(t,n){e=t,/*receiptFields*/8&n[0]&&s!==(s=/*field*/e[
|
|
576
|
+
// (227:7) {#if receiptFields.length}
|
|
577
|
+
function Pn(e){let t,n=/*receiptFields*/e[3],r=[];for(let t=0;t<n.length;t+=1)r[t]=On(An(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=m("")},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);h(e,t,n)},p(e,i){if(/*openUrlInNewTab, receiptFields, qrCodeContainer, FieldTypes*/4362&i[0]){let o;for(n=/*receiptFields*/e[3],o=0;o<n.length;o+=1){const s=An(e,n,o);r[o]?r[o].p(s,i):(r[o]=On(s),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){!function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(r,e),e&&p(t)}}}
|
|
578
|
+
// (244:17) {:else}
|
|
579
|
+
function wn(e){let t,n,r=/*field*/e[37].defaultValue+"";return{c(){t=f("span"),n=m(r),b(t,"class","Label")},m(e,r){h(e,t,r),u(t,n)},p(e,t){/*receiptFields*/8&t[0]&&r!==(r=/*field*/e[37].defaultValue+"")&&E(n,r)},d(e){e&&p(t)}}}
|
|
580
|
+
// (238:58)
|
|
581
|
+
function Sn(e){let t,n,r,i,o,s,a=/*field*/e[37].description+"",l=/*field*/e[37].Name+"";return{c(){t=f("span"),n=m(a),r=d(),i=f("a"),o=m(l),b(i,"href",s=/*field*/e[37].defaultValue),b(i,"target","_blank"),b(i,"rel","noopener noreferrer")},m(e,s){h(e,t,s),u(t,n),u(t,r),u(t,i),u(i,o)},p(e,t){/*receiptFields*/8&t[0]&&a!==(a=/*field*/e[37].description+"")&&E(n,a),/*receiptFields*/8&t[0]&&l!==(l=/*field*/e[37].Name+"")&&E(o,l),/*receiptFields*/8&t[0]&&s!==(s=/*field*/e[37].defaultValue)&&b(i,"href",s)},d(e){e&&p(t)}}}
|
|
582
|
+
// (236:59)
|
|
583
|
+
function In(e){let t,n,r;return{c(){t=f("img"),a(t.src,n=/*field*/e[37].defaultValue)||b(t,"src",n),b(t,"title",r=/*field*/e[37].description),b(t,"alt","")},m(e,n){h(e,t,n)},p(e,i){/*receiptFields*/8&i[0]&&!a(t.src,n=/*field*/e[37].defaultValue)&&b(t,"src",n),/*receiptFields*/8&i[0]&&r!==(r=/*field*/e[37].description)&&b(t,"title",r)},d(e){e&&p(t)}}}
|
|
584
|
+
// (234:58)
|
|
585
|
+
function Nn(e){let t,n=/*field*/e[37].defaultValue+"";return{c(){t=f("span")},m(e,r){h(e,t,r),t.innerHTML=n},p(e,r){/*receiptFields*/8&r[0]&&n!==(n=/*field*/e[37].defaultValue+"")&&(t.innerHTML=n)},d(e){e&&p(t)}}}
|
|
586
|
+
// (230:17) {#if field.type === FieldTypes.QRCode}
|
|
587
|
+
function Rn(e){let t,n,r,i,o,s=/*field*/e[37].defaultValue+"";function a(){/*click_handler*/
|
|
588
|
+
return e[22](/*field*/e[37])}return{c(){t=f("div"),n=f("div"),r=m(s),b(t,"class","QRCode")},m(s,l){h(s,t,l),u(t,n),u(n,r),
|
|
589
|
+
/*div0_binding*/e[21](n),i||(o=g(t,"click",a),i=!0)},p(t,n){e=t,/*receiptFields*/8&n[0]&&s!==(s=/*field*/e[37].defaultValue+"")&&E(r,s)},d(n){n&&p(t)
|
|
590
590
|
/*div0_binding*/,e[21](null),i=!1,o()}}}
|
|
591
|
-
// (
|
|
591
|
+
// (228:10) {#each receiptFields as field, index}
|
|
592
592
|
function On(e){let t,n;function r(e,t){/*field*/
|
|
593
|
-
return e[
|
|
594
|
-
/*div1_binding*/,t[23](o)},p(e,t){/*txnInfo*/e[2]?l?l.p(e,t):(l=
|
|
595
|
-
/*div1_binding*/,t[23](null)}}}let xn="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function Un(e,t,n){let r;var i,o;i=En,o=e=>n(9,r=e),e.$$.on_destroy.push(l(i,o));let{endpoint:s}=t,{session:a}=t,{lang:c="en"}=t,{translationurl:u}=t,{assetsurl:h}=t,{customerid:p}=t,{clientstyling:f=""}=t,{clientstylingurl:m=""}=t;var d;!function(e){e.Unknown="Unknown",e.Text="Text",e.Boolean="Boolean",e.Number="Number",e.Money="Money",e.DateTime="DateTime",e.Lookup="Lookup",e.IpAddress="IpAddress",e.Date="Date",e.Time="Time",e.LookupCollection="LookupCollection",e.Hidden="Hidden",e.Label="Label",e.Password="Password",e.Link="Link",e.Image="Image",e.Html="Html",e.QRCode="QR"}(d||(d={}));const g=new Map([[["Unknown",0],d.Unknown],[["Text",1],d.Text],[["Boolean",2],d.Boolean],[["Number",3],d.Number],[["Money",4],d.Money],[["DateTime",5],d.DateTime],[["Lookup",6],d.Lookup],[["IpAddress",7],d.IpAddress],[["Date",8],d.Date],[["Time",9],d.Time],[["LookupCollection",10],d.LookupCollection],[["Hidden",11],d.Hidden],[["Label",12],d.Label],[["Password",13],d.Password],[["Link",14],d.Link],[["Image",15],d.Image],[["Html",19],d.Html],[["QR",20],d.QRCode]].reduce(((e,[t,n])=>[...e,...Array.isArray(t)?[...t.map((e=>[e,n]))]:[[t,n]]]),[]));let b,E,y,v,T,H,A=[],
|
|
593
|
+
return e[37].type===/*FieldTypes*/e[1].QRCode?Rn:/*field*/e[37].type===/*FieldTypes*/e[1].Html?Nn:/*field*/e[37].type===/*FieldTypes*/e[1].Image?In:/*field*/e[37].type===/*FieldTypes*/e[1].Link?Sn:wn}let i=r(e),o=i(e);return{c(){t=f("div"),o.c(),n=d(),b(t,"class","ReceiptField")},m(e,r){h(e,t,r),o.m(t,null),u(t,n)},p(e,s){i===(i=r(e))&&o?o.p(e,s):(o.d(1),o=i(e),o&&(o.c(),o.m(t,n)))},d(e){e&&p(t),o.d()}}}function Mn(t){let n,r,i,o,s,l=/*txnInfo*/t[2]&&_n(t);return{c(){n=f("script"),i=d(),o=f("div"),s=f("div"),l&&l.c(),this.c=e,a(n.src,r=xn)||b(n,"src",r),b(s,"class","CashierReceiptPage"),b(o,"class","CashierReceiptPageWidget")},m(e,r){u(Cn.head,n),h(e,i,r),h(e,o,r),u(o,s),l&&l.m(s,null)
|
|
594
|
+
/*div1_binding*/,t[23](o)},p(e,t){/*txnInfo*/e[2]?l?l.p(e,t):(l=_n(e),l.c(),l.m(s,null)):l&&(l.d(1),l=null)},i:e,o:e,d(e){p(n),e&&p(i),e&&p(o),l&&l.d()
|
|
595
|
+
/*div1_binding*/,t[23](null)}}}let xn="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function Un(e,t,n){let r;var i,o;i=En,o=e=>n(9,r=e),e.$$.on_destroy.push(l(i,o));let{endpoint:s}=t,{session:a}=t,{lang:c="en"}=t,{translationurl:u}=t,{assetsurl:h}=t,{customerid:p}=t,{clientstyling:f=""}=t,{clientstylingurl:m=""}=t;var d;!function(e){e.Unknown="Unknown",e.Text="Text",e.Boolean="Boolean",e.Number="Number",e.Money="Money",e.DateTime="DateTime",e.Lookup="Lookup",e.IpAddress="IpAddress",e.Date="Date",e.Time="Time",e.LookupCollection="LookupCollection",e.Hidden="Hidden",e.Label="Label",e.Password="Password",e.Link="Link",e.Image="Image",e.Html="Html",e.QRCode="QR"}(d||(d={}));const g=new Map([[["Unknown",0],d.Unknown],[["Text",1],d.Text],[["Boolean",2],d.Boolean],[["Number",3],d.Number],[["Money",4],d.Money],[["DateTime",5],d.DateTime],[["Lookup",6],d.Lookup],[["IpAddress",7],d.IpAddress],[["Date",8],d.Date],[["Time",9],d.Time],[["LookupCollection",10],d.LookupCollection],[["Hidden",11],d.Hidden],[["Label",12],d.Label],[["Password",13],d.Password],[["Link",14],d.Link],[["Image",15],d.Image],[["Html",19],d.Html],[["QR",20],d.QRCode]].reduce(((e,[t,n])=>[...e,...Array.isArray(t)?[...t.map((e=>[e,n]))]:[[t,n]]]),[]));let b,E,y,v,T,H,C,A,_=[],L=[];const P=()=>{var e;e=c,Qt.set(e)};Object.keys(vn).forEach((e=>{yn(e,vn[e])}));const w=()=>{const e=new URL(`${s}/v1/player/${p}/payment/GetPaymentInfo`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({XPaymentSessionToken:a})};fetch(e,i).then((e=>e.json())).then((e=>{var t,i,o,s,a,l;if("Success"!==e.ResponseCode)return C=e.ResponseCode,A=!1,void window.postMessage({type:"ErrorResponseCode",errorResponseCode:C,showReceiptPage:A});n(2,b={type:e.Transaction.Type,referenceId:e.Transaction.Code,status:null===(t=e.Transaction.Status)||void 0===t?void 0:t.Status,message:null===(i=e.Transaction.Status)||void 0===i?void 0:i.Message,amount:null===(o=e.Transaction.Amounts[0])||void 0===o?void 0:o.Amount,currency:null===(s=e.Transaction.Amounts[0])||void 0===s?void 0:s.Currency}),n(3,_=e.ReceiptInfo&&e.ReceiptInfo.ReceiptFields?e.ReceiptInfo.ReceiptFields.map((e=>({type:g.get(e.Type),name:e.Name,description:e.Description,defaultValue:e.DefaultValue,useCopyButton:e.UseCopyButton,usePrintButton:e.UsePrintButton}))):[]),n(5,y=r((a=b.status,l=b.type,`${Hn[l]}.${Bn[a]}.title`),{values:{amount:b.amount,currency:b.currency}})),n(4,E=r(((e,t)=>`${Hn[t]}.${Bn[e]}.subTitle`)(b.status,b.type))),n(6,v=r(((e,t)=>`${Hn[t]}.${Bn[e]}.text`)(b.status,b.type),{values:{errorText:b.message}})),n(7,T=((e,t)=>`${e+Tn[t]}`)(h,b.status))}))},S=e=>{e&&window.postMessage({type:"NavigateTo",path:e,target:"_blank",externalLink:!1},window.location.href)};return e.$$set=e=>{"endpoint"in e&&n(13,s=e.endpoint),"session"in e&&n(14,a=e.session),"lang"in e&&n(15,c=e.lang),"translationurl"in e&&n(16,u=e.translationurl),"assetsurl"in e&&n(17,h=e.assetsurl),"customerid"in e&&n(18,p=e.customerid),"clientstyling"in e&&n(19,f=e.clientstyling),"clientstylingurl"in e&&n(20,m=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, session, customerid*/286720&e.$$.dirty[0]&&s&&a&&p&&w(),/*lang*/32768&e.$$.dirty[0]&&c&&P(),/*lang, translationurl*/98304&e.$$.dirty[0]&&c&&u&&(()=>{if(u)fetch(u).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{yn(t,e[t])}))})).catch((e=>{}))})(),/*clientstyling, customStylingContainer*/524289&e.$$.dirty[0]&&f&&H&&(()=>{let e=document.createElement("style");e.innerHTML=f,H.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1048577&e.$$.dirty[0]&&m&&H&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{H.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[H,d,b,_,E,y,v,T,L,r,()=>{dispatchEvent(new CustomEvent("closeCashierReceiptPage",{bubbles:!0,cancelable:!0,composed:!0}))},()=>{dispatchEvent(new CustomEvent("liveChatReceiptPage",{bubbles:!0,cancelable:!0,composed:!0}))},S,s,a,c,u,h,p,f,m,function(e){B[e?"unshift":"push"]((()=>{L[L.length]=e,n(8,L)}))},e=>{S(e.description)},function(e){B[e?"unshift":"push"]((()=>{H=e,n(0,H)}))}]}class Dn extends U{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierReceiptPageWidget{height:100%}.CashierReceiptPage{border-radius:var(--mmw--border-radius-medium-plus, 6px);background:var(--emw--color-background, #fff);padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.TitleWrapper{display:flex;position:absolute;left:0;bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-x-large-plus, 26px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;line-height:var(--emw--font-size-x-large-plus, 26px)}.SubTitle{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px) 0;font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-10, #111)}.Reference{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);font-weight:var(--emw--font-weight-normal, 400);margin:0}.PrimaryButton{color:var(--emw--color-white, #FFF);border:none;background:var(--emw--color-primary, #7EC51E);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 5px);height:36px;font-size:var(--emw--font-size-x-small, 12px);font-family:inherit;margin:var(--emw--spacing-large, 20px) 0;width:100%}.PrimaryButton:hover{background:var(--emw--color-hover, #71B11B)}.PrimaryButton:active{background:var(--emw--color-active, #5C950F)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;display:flex;align-items:baseline;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px) 0}.HeaderButtonContainer>span{cursor:pointer}.ReceiptField{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}",this.shadowRoot.appendChild(t),x(this,{target:this.shadowRoot,props:y(this.attributes),customElement:!0},Un,Mn,o,{endpoint:13,session:14,lang:15,translationurl:16,assetsurl:17,customerid:18,clientstyling:19,clientstylingurl:20},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","session","lang","translationurl","assetsurl","customerid","clientstyling","clientstylingurl"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),I()}get session(){return this.$$.ctx[14]}set session(e){this.$$set({session:e}),I()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),I()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),I()}get assetsurl(){return this.$$.ctx[17]}set assetsurl(e){this.$$set({assetsurl:e}),I()}get customerid(){return this.$$.ctx[18]}set customerid(e){this.$$set({customerid:e}),I()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}}return!customElements.get("cashier-receipt-page")&&customElements.define("cashier-receipt-page",Dn),Dn}));
|
|
596
596
|
//# sourceMappingURL=cashier-receipt-page.js.map
|