@everymatrix/cashier-iframe-redirect 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.
|
@@ -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 c(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 l(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
|
|
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 c(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 l(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 b(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function E(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function d(e){const t={};for(const r of e)t[r.name]=r.value;return t}function y(e){a=e}
|
|
2
2
|
/**
|
|
3
3
|
* Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).
|
|
4
4
|
* Event dispatchers are functions that can take two arguments: `name` and `detail`.
|
|
@@ -55,19 +55,19 @@ P.add(t),t())}_.length=0}while(H.length);for(;B.length;)B.pop()();L=!1,P.clear()
|
|
|
55
55
|
*/const I=new Set;function O(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];_.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),_=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
|
|
56
56
|
// TODO null out other refs, including component.$$ (but need to
|
|
57
57
|
// preserve final state?)
|
|
58
|
-
r.on_destroy=r.fragment=null,r.ctx=[])}function R(e,t){-1===e.$$.dirty[0]&&(H.push(e),L||(L=!0,A.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function M(o,s,h,c,u,l,p,m=[-1]){const
|
|
58
|
+
r.on_destroy=r.fragment=null,r.ctx=[])}function R(e,t){-1===e.$$.dirty[0]&&(H.push(e),L||(L=!0,A.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function M(o,s,h,c,u,l,p,m=[-1]){const g=a;y(o);const b=o.$$={fragment:null,ctx:[],
|
|
59
59
|
// state
|
|
60
60
|
props:l,update:e,not_equal:u,bound:r(),
|
|
61
61
|
// lifecycle
|
|
62
|
-
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(
|
|
62
|
+
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(g?g.$$.context:[])),
|
|
63
63
|
// everything else
|
|
64
|
-
callbacks:r(),dirty:m,skip_bound:!1,root:s.target||
|
|
64
|
+
callbacks:r(),dirty:m,skip_bound:!1,root:s.target||g.$$.root};p&&p(b.root);let E=!1;if(b.ctx=h?h(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return b.ctx&&u(b.ctx[e],b.ctx[e]=n)&&(!b.skip_bound&&b.bound[e]&&b.bound[e](n),E&&R(o,e)),t})):[],b.update(),E=!0,n(b.before_update),
|
|
65
65
|
// `false` as a special case of no DOM component
|
|
66
|
-
|
|
66
|
+
b.fragment=!!c&&c(b.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
|
67
67
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
68
|
-
|
|
68
|
+
b.fragment&&b.fragment.l(e),e.forEach(f)}else
|
|
69
69
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
70
|
-
|
|
70
|
+
b.fragment&&b.fragment.c();s.intro&&((d=o.$$.fragment)&&d.i&&(I.delete(d),d.i(v))),function(e,r,o,s){const{fragment:a,after_update:h}=e.$$;a&&a.m(r,o),s||
|
|
71
71
|
// onMount happens before the initial afterUpdate
|
|
72
72
|
S((()=>{const r=e.$$.on_mount.map(t).filter(i);
|
|
73
73
|
// if the component was destroyed immediately
|
|
@@ -76,7 +76,7 @@ S((()=>{const r=e.$$.on_mount.map(t).filter(i);
|
|
|
76
76
|
e.$$.on_destroy?e.$$.on_destroy.push(...r):
|
|
77
77
|
// Edge case - component was destroyed immediately,
|
|
78
78
|
// most likely as a result of a binding initialising
|
|
79
|
-
n(r),e.$$.on_mount=[]})),h.forEach(S)}(o,s.target,s.anchor,s.customElement),N()}var d,v;y(
|
|
79
|
+
n(r),e.$$.on_mount=[]})),h.forEach(S)}(o,s.target,s.anchor,s.customElement),N()}var d,v;y(g)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
|
|
80
80
|
// @ts-ignore todo: improve typings
|
|
81
81
|
for(const e in this.$$.slotted)
|
|
82
82
|
// @ts-ignore todo: improve typings
|
|
@@ -94,16 +94,16 @@ if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
94
94
|
* @param {StartStopNotifier=} start
|
|
95
95
|
*/
|
|
96
96
|
function D(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
|
|
97
|
-
const e=!G.length;for(const e of i)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.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
|
|
97
|
+
const e=!G.length;for(const e of i)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.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 k(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 l=0,f=e;const p=()=>{if(l)return;f();const n=r(s?u[0]:u,t);h?t(n):f=i(n)?n:e},m=a.map(((e,t)=>c(e,(e=>{u[t]=e,l&=~(1<<t),o&&p()}),(()=>{l|=1<<t}))));return o=!0,p(),function(){n(m),f(),
|
|
98
98
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
99
99
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
100
100
|
// invoke this derived store.
|
|
101
|
-
o=!1}},{subscribe:D(o,u).subscribe};var u}var
|
|
101
|
+
o=!1}},{subscribe:D(o,u).subscribe};var u}var F=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===$}(e)}
|
|
102
102
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
103
103
|
(e)};var $="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function x(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Y((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function j(e,t,r){return e.concat(t).map((function(e){return x(e,r)}))}function V(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 X(e,t){try{return t in e}catch(e){return!1}}
|
|
104
104
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
105
105
|
function K(e,t,r){var n={};return r.isMergeableObject(e)&&V(e).forEach((function(t){n[t]=x(e[t],r)})),V(t).forEach((function(i){(function(e,t){return X(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
106
|
-
})(e,i)||(X(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return Y;var r=t.customMerge(e);return"function"==typeof r?r:Y}(i,r)(e[i],t[i],r):n[i]=x(t[i],r))})),n}function Y(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||j,r.isMergeableObject=r.isMergeableObject||
|
|
106
|
+
})(e,i)||(X(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return Y;var r=t.customMerge(e);return"function"==typeof r?r:Y}(i,r)(e[i],t[i],r):n[i]=x(t[i],r))})),n}function Y(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||j,r.isMergeableObject=r.isMergeableObject||F,
|
|
107
107
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
108
108
|
// implementations can use it. The caller may not replace it.
|
|
109
109
|
r.cloneUnlessOtherwiseSpecified=x;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):K(e,t,r):x(t,r)}Y.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Y(e,r,t)}),{})};var Z=Y,z=function(e,t){return z=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])},z(e,t)};function W(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}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Q,J,q,ee=function(){return ee=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},ee.apply(this,arguments)};function te(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))}
|
|
@@ -221,7 +221,7 @@ e[e.tag=8]="tag"}(J||(J={})),function(e){e[e.number=0]="number",e[e.dateTime=1]=
|
|
|
221
221
|
* @public
|
|
222
222
|
* @param skeleton skeleton string
|
|
223
223
|
*/
|
|
224
|
-
function
|
|
224
|
+
function ge(e){var t={};return e.replace(me,(function(e){var r=e.length;switch(e[0]){
|
|
225
225
|
// Era
|
|
226
226
|
case"G":t.era=4===r?"long":5===r?"narrow":"short";break;
|
|
227
227
|
// Year
|
|
@@ -255,7 +255,7 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
255
255
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
256
256
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
257
257
|
// @generated from regex-gen.ts
|
|
258
|
-
var
|
|
258
|
+
var be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,de=/^(@+)?(\+|#+)?[rs]?$/g,ye=/(\*)(0+)|(#+)(0+)|(0+)/g,ve=/^(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(de,(function(e,r,n){
|
|
259
259
|
// @@@ case
|
|
260
260
|
return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Te(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 _e(e){
|
|
261
261
|
// Engineering
|
|
@@ -305,14 +305,14 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
|
|
|
305
305
|
var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Se[r||""]||Se[n||""]||Se["".concat(n,"-001")]||Se["001"])[0]}var Ce=new RegExp("^".concat(pe.source,"*")),Ne=new RegExp("".concat(pe.source,"*$"));function we(e,t){return{start:e,end:t}}
|
|
306
306
|
// #region Ponyfills
|
|
307
307
|
// Consolidate these variables up top for easier toggling during debugging
|
|
308
|
-
var Ie=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,Re=!!Object.fromEntries,Me=!!String.prototype.codePointAt,Ue=!!String.prototype.trimStart,Ge=!!String.prototype.trimEnd,De=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},
|
|
308
|
+
var Ie=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,Re=!!Object.fromEntries,Me=!!String.prototype.codePointAt,Ue=!!String.prototype.trimStart,Ge=!!String.prototype.trimEnd,De=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{
|
|
309
309
|
/**
|
|
310
310
|
* legacy Edge or Xbox One browser
|
|
311
311
|
* Unicode flag support: supported
|
|
312
312
|
* Pattern_Syntax support: not supported
|
|
313
313
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
314
314
|
*/
|
|
315
|
-
|
|
315
|
+
ke="a"===(null===(Le=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Le?void 0:Le[0])}catch(e){ke=!1}var Fe,$e=Ie?// Native
|
|
316
316
|
function(e,t,r){return e.startsWith(t,r)}:// For IE11
|
|
317
317
|
function(e,t,r){return e.slice(r,r+t.length)===t},xe=Oe?String.fromCodePoint:// IE11
|
|
318
318
|
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},je=
|
|
@@ -328,11 +328,11 @@ function(e){return e.replace(Ne,"")};
|
|
|
328
328
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
329
329
|
function Ye(e,t){return new RegExp(e,t)}
|
|
330
330
|
// #endregion
|
|
331
|
-
if(
|
|
331
|
+
if(ke){
|
|
332
332
|
// Native
|
|
333
|
-
var Ze=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");
|
|
333
|
+
var Ze=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fe=function(e,t){var r;return Ze.lastIndex=t,null!==(r=Ze.exec(e)[1])&&void 0!==r?r:""}}else
|
|
334
334
|
// IE11
|
|
335
|
-
|
|
335
|
+
Fe=function(e,t){for(var r=[];;){var n=Ve(e,t);if(void 0===n||Qe(n)||Je(n))break;r.push(n),t+=n>=65536?2:1}return xe.apply(void 0,r)};var ze=/** @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(Q.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&We(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:we(s,this.clonePosition())})}}}return{val:n,err:null}},
|
|
336
336
|
/**
|
|
337
337
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
338
338
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -399,7 +399,7 @@ this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,we(r,th
|
|
|
399
399
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
400
400
|
* an identifier character. Return an empty string otherwise.
|
|
401
401
|
*/
|
|
402
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=
|
|
402
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Fe(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:we(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
|
|
403
403
|
// Parse this range:
|
|
404
404
|
// {name, type, style}
|
|
405
405
|
// ^---^
|
|
@@ -417,7 +417,7 @@ var l=Xe(h.style.slice(2));if("number"===s)return(E=this.parseNumberSkeletonFrom
|
|
|
417
417
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
418
418
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
419
419
|
// for unsupported patterns.
|
|
420
|
-
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=Pe(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}(l,this.locale));var p={type:q.dateTime,pattern:f,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?
|
|
420
|
+
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=Pe(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}(l,this.locale));var p={type:q.dateTime,pattern:f,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?ge(f):{}};return{val:{type:"date"===s?J.date:J.time,value:r,location:u,style:p},err:null}}
|
|
421
421
|
// Regular style or no style.
|
|
422
422
|
return{val:{type:"number"===s?J.number:"date"===s?J.date:J.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":
|
|
423
423
|
// Parse this range:
|
|
@@ -430,9 +430,9 @@ var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
430
430
|
// or the first option:
|
|
431
431
|
// {name, plural, one {...} other {...}}
|
|
432
432
|
// ^--^
|
|
433
|
-
var
|
|
433
|
+
var g=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));var E;if(this.bumpSpace(),(E=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return E;
|
|
434
434
|
// Parse another identifier for option parsing
|
|
435
|
-
this.bumpSpace(),
|
|
435
|
+
this.bumpSpace(),g=this.parseIdentifierIfPossible(),b=E.val}var d,y=this.tryParsePluralOrSelectOptions(e,s,t,g);if(y.err)return y;if((d=this.tryParseArgumentClose(n)).err)return d;var v=we(n,this.clonePosition());return"select"===s?{val:{type:J.select,value:r,options:je(y.val),location:v},err:null}:{val:{type:J.plural,value:r,options:je(y.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(Q.INVALID_ARGUMENT_TYPE,we(o,a))}},e.prototype.tryParseArgumentClose=function(e){
|
|
436
436
|
// Parse: {value, number, ::currency/GBP }
|
|
437
437
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,we(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
438
438
|
/**
|
|
@@ -443,7 +443,7 @@ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePos
|
|
|
443
443
|
// Find the end of the quoted literal text.
|
|
444
444
|
this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(r,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 r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
445
445
|
// Parse the skeleton
|
|
446
|
-
for(var t=[],r=0,n=e.split(
|
|
446
|
+
for(var t=[],r=0,n=e.split(be).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,h=s;a<h.length;a++)if(0===h[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:q.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ae(r):{}},err:null}},
|
|
447
447
|
/**
|
|
448
448
|
* @param nesting_level The current nesting level of messages.
|
|
449
449
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -545,7 +545,7 @@ e.MISSING_VALUE="MISSING_VALUE",
|
|
|
545
545
|
// When value supplied is invalid
|
|
546
546
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
547
547
|
// When we need specific Intl API but it's not available
|
|
548
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(ht||(ht={}));var lt,ft=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return W(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),pt=/** @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('", "'),'"'),ht.INVALID_VALUE,i)||this}return W(t,e),t}(ft),mt=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return W(t,e),t}(ft),
|
|
548
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(ht||(ht={}));var lt,ft=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return W(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),pt=/** @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('", "'),'"'),ht.INVALID_VALUE,i)||this}return W(t,e),t}(ft),mt=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return W(t,e),t}(ft),gt=/** @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,'"'),ht.MISSING_VALUE,r)||this}return W(t,e),t}(ft);function bt(e){return"function"==typeof e}
|
|
549
549
|
// TODO(skeleton): add skeleton support
|
|
550
550
|
function Et(e,t,r,n,i,o,
|
|
551
551
|
// For debugging
|
|
@@ -558,11 +558,11 @@ if(re(u))a.push({type:lt.literal,value:u.value});else
|
|
|
558
558
|
// Replace `#` in plural rules with the actual numeric value.
|
|
559
559
|
if(ce(u))"number"==typeof o&&a.push({type:lt.literal,value:r.getNumberFormat(t).format(o)});else{var l=u.value;
|
|
560
560
|
// Enforce that all required values are provided by the caller.
|
|
561
|
-
if(!i||!(l in i))throw new
|
|
561
|
+
if(!i||!(l in i))throw new gt(l,s);var f=i[l];if(ne(u))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?lt.literal:lt.object,value:f});else
|
|
562
562
|
// Recursively format plural and select parts' option — which can be a
|
|
563
563
|
// nested pattern structure. The choosing of the option to use is
|
|
564
564
|
// abstracted-by and delegated-to the part helper object.
|
|
565
|
-
if(oe(u)){var p="string"==typeof u.style?n.date[u.style]:fe(u.style)?u.style.parsedOptions:void 0;a.push({type:lt.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(se(u)){p="string"==typeof u.style?n.time[u.style]:fe(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:lt.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(ie(u)){(p="string"==typeof u.style?n.number[u.style]:le(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:lt.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(ue(u)){var m=u.children,
|
|
565
|
+
if(oe(u)){var p="string"==typeof u.style?n.date[u.style]:fe(u.style)?u.style.parsedOptions:void 0;a.push({type:lt.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(se(u)){p="string"==typeof u.style?n.time[u.style]:fe(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:lt.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(ie(u)){(p="string"==typeof u.style?n.number[u.style]:le(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:lt.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(ue(u)){var m=u.children,g=u.value,b=i[g];if(!bt(b))throw new mt(g,"function",s);var E=b(Et(m,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map((function(e){return{type:"string"==typeof e?lt.literal:lt.object,value:e}})))}if(ae(u)){if(!(d=u.options[f]||u.options.other))throw new pt(u.value,f,Object.keys(u.options),s);a.push.apply(a,Et(d.value,t,r,n,i))}else if(he(u)){var d;if(!(d=u.options["=".concat(f)])){if(!Intl.PluralRules)throw new ft('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ht.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 pt(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===lt.literal&&t.type===lt.literal?r.value+=t.value:e.push(t),e}),[])}(a)}
|
|
566
566
|
/*
|
|
567
567
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
568
568
|
Copyrights licensed under the New BSD License.
|
|
@@ -582,8 +582,8 @@ this.formats=dt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
582
582
|
// Default format options used as the prototype of the `formats` provided to the
|
|
583
583
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
584
584
|
// and Intl.DateTimeFormat instances.
|
|
585
|
-
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={},Tt=(e,t,r)=>r?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=r),r):r,_t=(e,t)=>{if(null==t)return;if(t in Ht&&e in Ht[t])return Ht[t][e];const r=Zt(t);for(let n=0;n<r.length;n++){const i=St(r[n],e);if(i)return Tt(e,t,i)}};let Bt;const At=D({});function Lt(e){return e in Bt}function St(e,t){if(!Lt(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 Pt(e,...t){delete Ht[e],At.update((r=>(r[e]=Z.all([r[e]||{},...t]),r)))}
|
|
585
|
+
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={},Tt=(e,t,r)=>r?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=r),r):r,_t=(e,t)=>{if(null==t)return;if(t in Ht&&e in Ht[t])return Ht[t][e];const r=Zt(t);for(let n=0;n<r.length;n++){const i=St(r[n],e);if(i)return Tt(e,t,i)}};let Bt;const At=D({});function Lt(e){return e in Bt}function St(e,t){if(!Lt(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 Pt(e,...t){delete Ht[e],At.update((r=>(r[e]=Z.all([r[e]||{},...t]),r)))}k([At],(([e])=>Object.keys(e))),At.subscribe((e=>Bt=e));const Ct={};function Nt(e){return Ct[e]}function wt(e){return null!=e&&Zt(e).some((e=>{var t;return null==(t=Nt(e))?void 0:t.size}))}function It(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ct[e].delete(t),0===Ct[e].size&&delete Ct[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Pt(e,...t)))}const Ot={};function Rt(e){if(!wt(e))return e in Ot?Ot[e]:Promise.resolve();const t=function(e){return Zt(e).map((e=>{const t=Nt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ot[e]=Promise.all(t.map((([e,t])=>It(e,t)))).then((()=>{if(wt(e))return Rt(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 Ut(){return Mt}const Gt=D(!1);var Dt=Object.defineProperty,kt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Vt=(e,t,r)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Xt;const Kt=D(null);function Yt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Zt(e,t=Ut().fallbackLocale){const r=Yt(e);return t?[...new Set([...r,...Yt(t)])]:r}function zt(){return null!=Xt?Xt:void 0}Kt.subscribe((e=>{Xt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Wt=(Qt=((e,t)=>{for(var r in t||(t={}))xt.call(t,r)&&Vt(e,r,t[r]);if($t)for(var r of $t(t))jt.call(t,r)&&Vt(e,r,t[r]);return e})({},Kt),kt(Qt,Ft({set:e=>{if(e&&function(e){if(null==e)return;const t=Zt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&wt(e)){const{loadingDelay:t}=Ut();let r;return"undefined"!=typeof window&&null!=zt()&&t?r=window.setTimeout((()=>Gt.set(!0)),t):Gt.set(!0),Rt(e).then((()=>{Kt.set(e)})).finally((()=>{clearTimeout(r),Gt.set(!1)}))}return Kt.set(e)}})));var Qt;const Jt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var qt=Object.defineProperty,er=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,nr=(e,t,r)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ir=(e,t)=>{for(var r in t||(t={}))tr.call(t,r)&&nr(e,r,t[r]);if(er)for(var r of er(t))rr.call(t,r)&&nr(e,r,t[r]);return e},or=(e,t)=>{var r={};for(var n in e)tr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&er)for(var n of er(e))t.indexOf(n)<0&&rr.call(e,n)&&(r[n]=e[n]);return r};const sr=(e,t)=>{const{formats:r}=Ut();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ar=Jt((e=>{var t=e,{locale:r,format:n}=t,i=or(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=sr("number",n)),new Intl.NumberFormat(r,i)})),hr=Jt((e=>{var t=e,{locale:r,format:n}=t,i=or(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=sr("date",n):0===Object.keys(i).length&&(i=sr("date","short")),new Intl.DateTimeFormat(r,i)})),cr=Jt((e=>{var t=e,{locale:r,format:n}=t,i=or(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=sr("time",n):0===Object.keys(i).length&&(i=sr("time","short")),new Intl.DateTimeFormat(r,i)})),ur=Jt((
|
|
586
586
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
587
|
-
(e,t=zt())=>new vt(e,t,Ut().formats,{ignoreTag:Ut().ignoreTag}))),lr=(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:c}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=_t(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=Ut()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let l=u;try{l=ur(u,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return l},fr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=or(t,["locale"]);return cr(ir({locale:r},n))})(t).format(e),pr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=or(t,["locale"]);return hr(ir({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=or(t,["locale"]);return ar(ir({locale:r},n))})(t).format(e),
|
|
588
|
-
/* src/CashierIframeRedirect.svelte generated by Svelte v3.59.2 */function yr(e){let t;return{c(){t=p("div"),E(t,"class","LoadingSpinner")},m(e,r){l(e,t,r)},d(e){e&&f(t)}}}function vr(t){let r,i,o,s,a,c,d,y,v,H,T,_,B=/*$_*/t[2]("redirectHeader")+"",A=/*isLoading*/t[1]&&yr();return{c(){r=p("div"),i=p("div"),o=p("div"),s=m(B),a=
|
|
587
|
+
(e,t=zt())=>new vt(e,t,Ut().formats,{ignoreTag:Ut().ignoreTag}))),lr=(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:c}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=_t(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=Ut()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let l=u;try{l=ur(u,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return l},fr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=or(t,["locale"]);return cr(ir({locale:r},n))})(t).format(e),pr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=or(t,["locale"]);return hr(ir({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=zt()}=t,n=or(t,["locale"]);return ar(ir({locale:r},n))})(t).format(e),gr=(e,t=zt())=>_t(e,t),br=k([Wt,At],(()=>lr));function Er(e,t){Pt(e,t)}k([Wt],(()=>fr)),k([Wt],(()=>pr)),k([Wt],(()=>mr)),k([Wt,At],(()=>gr));const dr={en:{redirectHeader:"Deposit redirect"}};
|
|
588
|
+
/* src/CashierIframeRedirect.svelte generated by Svelte v3.59.2 */function yr(e){let t;return{c(){t=p("div"),E(t,"class","LoadingSpinner")},m(e,r){l(e,t,r)},d(e){e&&f(t)}}}function vr(t){let r,i,o,s,a,c,d,y,v,H,T,_,B=/*$_*/t[2]("redirectHeader")+"",A=/*isLoading*/t[1]&&yr();return{c(){r=p("div"),i=p("div"),o=p("div"),s=m(B),a=g(),c=p("div"),c.innerHTML='<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"><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>',d=g(),A&&A.c(),y=g(),v=p("iframe"),this.c=e,E(o,"class","RedirectHeader"),E(c,"class","CloseButton"),E(i,"class","HeaderContainer"),h(v.src,H=/*iframeurl*/t[0])||E(v,"src",H),E(v,"frameborder","0"),E(r,"class","CashierRedirectIframe")},m(e,n){l(e,r,n),u(r,i),u(i,o),u(o,s),u(i,a),u(i,c),u(r,d),A&&A.m(r,null),u(r,y),u(r,v),T||(_=[b(c,"click",/*close*/t[3]),b(v,"load",/*load_handler*/t[7])],T=!0)},p(e,[t]){/*$_*/4&t&&B!==(B=/*$_*/e[2]("redirectHeader")+"")&&function(e,t){t=""+t,e.data!==t&&(e.data=t)}(s,B),/*isLoading*/e[1]?A||(A=yr(),A.c(),A.m(r,y)):A&&(A.d(1),A=null),/*iframeurl*/1&t&&!h(v.src,H=/*iframeurl*/e[0])&&E(v,"src",H)},i:e,o:e,d(e){e&&f(r),A&&A.d(),T=!1,n(_)}}}function Hr(e,t,r){let n;var i,o;i=br,o=e=>r(2,n=e),e.$$.on_destroy.push(c(i,o));let{lang:s="en"}=t,{iframeurl:a}=t,{translationurl:h=""}=t,u=!0;v();Object.keys(dr).forEach((e=>{Er(e,dr[e])}));const l=()=>{var e;e=s,Wt.set(e)},f=e=>{e.target.src&&r(1,u=!1)};return e.$$set=e=>{"lang"in e&&r(5,s=e.lang),"iframeurl"in e&&r(0,a=e.iframeurl),"translationurl"in e&&r(6,h=e.translationurl)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&s&&l(),/*translationurl*/64&e.$$.dirty&&h&&(()=>{if(h)fetch(h).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[a,u,n,()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},f,s,h,e=>f(e)]}class Tr extends U{constructor(e){super();const t=document.createElement("style");t.textContent='.CashierRedirectIframe{height:inherit;width:inherit}iframe{height:100%;width:100%}.HeaderContainer{position:fixed;display:flex;top:0;background-color:var(--emw--color-white, #fff);justify-content:space-between;align-items:center;width:100%}.HeaderContainer .RedirectHeader{font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-10, #111);font-weight:bold;line-height:var(--emw--font-size-small, 14px)}.HeaderContainer .CloseButton{display:flex;align-items:center;padding:var(--emw--spacing-small-minus, 10px) var(--emw--spacing-x-small, 8px);box-sizing:border-box;border-radius:var(--mmw--border-radius-1x-small, 2px);background:var(--emw--color-white, #fff);justify-content:end;cursor:pointer}.LoadingSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:var(--emw--spacing-x-small, 8px);border-radius:50%;border:6px solid var(--mmw--color-main-button, #7EC51E);border-color:transparent var(--mmw--color-main-button, #7EC51E) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),M(this,{target:this.shadowRoot,props:d(this.attributes),customElement:!0},Hr,vr,o,{lang:5,iframeurl:0,translationurl:6},null),e&&(e.target&&l(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["lang","iframeurl","translationurl"]}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),N()}get iframeurl(){return this.$$.ctx[0]}set iframeurl(e){this.$$set({iframeurl:e}),N()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),N()}}return!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",Tr),Tr}));
|
|
589
589
|
//# sourceMappingURL=cashier-iframe-redirect.js.map
|