paymentiq-cashier-bootstrapper 1.7.4 → 1.7.10
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/README.md +41 -0
- package/dist/cashier.js +1 -1
- package/index.d.ts +28 -10
- package/package.json +2 -1
- package/theme-v2.d.ts +78 -0
package/README.md
CHANGED
|
@@ -107,6 +107,27 @@ new _PaymentCashier('#cashier',
|
|
|
107
107
|
)
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
+
**Typescript setup**
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
import _PaymentCashier, { CashierConfig, CashierApiMethods } from 'paymentiq-cashier-bootstrapper'
|
|
114
|
+
|
|
115
|
+
const config: CashierConfig = {
|
|
116
|
+
merchantId: '1337',
|
|
117
|
+
userId: 'Han Solo',
|
|
118
|
+
sessionId: '66',
|
|
119
|
+
environment: 'test',
|
|
120
|
+
method: 'deposit'
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
new _PaymentCashier('#cashier',
|
|
124
|
+
config,
|
|
125
|
+
(api: CashierApiMethods) => {
|
|
126
|
+
console.log('Cashier initialized and ready to take down the empire')
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
```
|
|
130
|
+
|
|
110
131
|
**Reset cashier**
|
|
111
132
|
|
|
112
133
|
```
|
|
@@ -117,6 +138,26 @@ window._PaymentCashierReset()
|
|
|
117
138
|
deprecated: each logs a console notice the first time it is used, and they will be removed in a
|
|
118
139
|
future major version. Only the name changes, so migrating is a find and replace.
|
|
119
140
|
|
|
141
|
+
The same goes for the types. `IPiqCashierConfig` and `IPiqCashierApiMethods` are deprecated aliases
|
|
142
|
+
of `CashierConfig` and `CashierApiMethods`, the same types under the old names, and will be removed
|
|
143
|
+
in the same major version.
|
|
144
|
+
|
|
145
|
+
**Container**
|
|
146
|
+
|
|
147
|
+
The bootstrapper marks the element it is given in two ways, replacing whatever classes that element
|
|
148
|
+
had.
|
|
149
|
+
|
|
150
|
+
- `class="piq-cashier-wrapper"`, unchanged, removed in a future major version.
|
|
151
|
+
- `data-cashier-wrapper`, the neutral hook. Style `[data-cashier-wrapper]` from now on.
|
|
152
|
+
|
|
153
|
+
**Nothing you have already written breaks.** The class attribute's value is exactly what it always
|
|
154
|
+
was, so `.piq-cashier-wrapper`, `[class="piq-cashier-wrapper"]` and `element.className` comparisons
|
|
155
|
+
all behave as before. A neutral class beside the branded one would have changed that value, which is
|
|
156
|
+
why the neutral hook is an attribute instead.
|
|
157
|
+
|
|
158
|
+
Nothing on our side can observe a stylesheet targeting the class, so unlike the globals its removal
|
|
159
|
+
is announced rather than waited out. Move your selectors across when convenient.
|
|
160
|
+
|
|
120
161
|
## Per-brand builds
|
|
121
162
|
|
|
122
163
|
Each build compiles in exactly one brand's endpoint table, so no other tenant's hosts reach the
|
package/dist/cashier.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see cashier.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.beta=t():e.beta=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={750:function(e,t,n){var a,r;!function(i,o,c){"use strict";"undefined"!=typeof window&&n.amdO?void 0===(r="function"==typeof(a=c)?a.call(t,n,t,e):a)||(e.exports=r):e.exports?e.exports=c():o.exports?o.exports=c():o.Fingerprint2=c()}(0,this,(function(){"use strict";void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},t=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},n=function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])},a=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},r=function(e,t){return[e[0]^t[0],e[1]^t[1]]},i=function(e){return e=r(e,[0,e[0]>>>1]),e=t(e,[4283543511,3981806797]),e=r(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),r(e,[0,e[0]>>>1])},o=function(o,c){c=c||0;for(var s=(o=o||"").length%16,d=o.length-s,l=[0,c],u=[0,c],f=[0,0],h=[0,0],p=[2277735313,289559509],g=[1291169091,658871167],m=0;m<d;m+=16)f=[255&o.charCodeAt(m+4)|(255&o.charCodeAt(m+5))<<8|(255&o.charCodeAt(m+6))<<16|(255&o.charCodeAt(m+7))<<24,255&o.charCodeAt(m)|(255&o.charCodeAt(m+1))<<8|(255&o.charCodeAt(m+2))<<16|(255&o.charCodeAt(m+3))<<24],h=[255&o.charCodeAt(m+12)|(255&o.charCodeAt(m+13))<<8|(255&o.charCodeAt(m+14))<<16|(255&o.charCodeAt(m+15))<<24,255&o.charCodeAt(m+8)|(255&o.charCodeAt(m+9))<<8|(255&o.charCodeAt(m+10))<<16|(255&o.charCodeAt(m+11))<<24],f=t(f,p),f=n(f,31),f=t(f,g),l=r(l,f),l=n(l,27),l=e(l,u),l=e(t(l,[0,5]),[0,1390208809]),h=t(h,g),h=n(h,33),h=t(h,p),u=r(u,h),u=n(u,31),u=e(u,l),u=e(t(u,[0,5]),[0,944331445]);switch(f=[0,0],h=[0,0],s){case 15:h=r(h,a([0,o.charCodeAt(m+14)],48));case 14:h=r(h,a([0,o.charCodeAt(m+13)],40));case 13:h=r(h,a([0,o.charCodeAt(m+12)],32));case 12:h=r(h,a([0,o.charCodeAt(m+11)],24));case 11:h=r(h,a([0,o.charCodeAt(m+10)],16));case 10:h=r(h,a([0,o.charCodeAt(m+9)],8));case 9:h=r(h,[0,o.charCodeAt(m+8)]),h=t(h,g),h=n(h,33),h=t(h,p),u=r(u,h);case 8:f=r(f,a([0,o.charCodeAt(m+7)],56));case 7:f=r(f,a([0,o.charCodeAt(m+6)],48));case 6:f=r(f,a([0,o.charCodeAt(m+5)],40));case 5:f=r(f,a([0,o.charCodeAt(m+4)],32));case 4:f=r(f,a([0,o.charCodeAt(m+3)],24));case 3:f=r(f,a([0,o.charCodeAt(m+2)],16));case 2:f=r(f,a([0,o.charCodeAt(m+1)],8));case 1:f=r(f,[0,o.charCodeAt(m)]),f=t(f,p),f=n(f,31),f=t(f,g),l=r(l,f)}return l=r(l,[0,o.length]),u=r(u,[0,o.length]),l=e(l,u),u=e(u,l),l=i(l),u=i(u),l=e(l,u),u=e(u,l),("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)},c={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0,adBlock:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},s=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t(e[n],n,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)},d=function(e,t){var n=[];return null==e?n:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(s(e,(function(e,a,r){n.push(t(e,a,r))})),n)},l=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],n=0,a=navigator.plugins.length;n<a;n++)navigator.plugins[n]&&t.push(navigator.plugins[n]);return u(e)&&(t=t.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),d(t,(function(e){var t=d(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,t]}))},u=function(e){for(var t=!1,n=0,a=e.plugins.sortPluginsFor.length;n<a;n++){var r=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(r)){t=!0;break}}return t},f=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},h=function(){if(!f())return!1;var e=g(),t=!!window.WebGLRenderingContext&&!!e;return m(e),t},p=function(){return("msWriteProfilerMark"in window)+("msLaunchUri"in navigator)+("msSaveBlob"in navigator)>=2},g=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},m=function(e){var t=e.getExtension("WEBGL_lose_context");null!=t&&t.loseContext()},v=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}(t))}},{key:"screenResolution",getData:function(e,t){e(function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}(t))}},{key:"availableScreenResolution",getData:function(e,t){e(function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE}(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone||t.NOT_AVAILABLE):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(e){if(p())return e.EXCLUDED;try{return!!window.indexedDB}catch(t){return e.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!!window.HTMLElement.prototype.addBehavior)}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(function(e){return navigator.cpuClass||e.NOT_AVAILABLE}(t))}},{key:"platform",getData:function(e,t){e(function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}(t))}},{key:"doNotTrack",getData:function(e,t){e(function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}(t))}},{key:"plugins",getData:function(e,t){"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?t.plugins.excludeIE?e(t.EXCLUDED):e(function(e){var t=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?t=d(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):t.push(e.NOT_AVAILABLE),navigator.plugins&&(t=t.concat(l(e))),t}(t)):e(l(t))}},{key:"canvas",getData:function(e,t){f()?e(function(e){var t=[],n=document.createElement("canvas");n.width=2e3,n.height=200,n.style.display="inline";var a=n.getContext("2d");return a.rect(0,0,10,10),a.rect(2,2,6,6),t.push("canvas winding:"+(!1===a.isPointInPath(5,5,"evenodd")?"yes":"no")),a.textBaseline="alphabetic",a.fillStyle="#f60",a.fillRect(125,1,62,20),a.fillStyle="#069",e.dontUseFakeFontInCanvas?a.font="11pt Arial":a.font="11pt no-real-font-123",a.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),a.fillStyle="rgba(102, 204, 0, 0.2)",a.font="18pt Arial",a.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),a.globalCompositeOperation="multiply",a.fillStyle="rgb(255,0,255)",a.beginPath(),a.arc(50,50,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(0,255,255)",a.beginPath(),a.arc(100,50,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(255,255,0)",a.beginPath(),a.arc(75,100,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(255,0,255)",a.arc(75,75,75,0,2*Math.PI,!0),a.arc(75,75,25,0,2*Math.PI,!0),a.fill("evenodd"),n.toDataURL&&t.push("canvas fp:"+n.toDataURL()),t}(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){h()?e(function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=g()))return null;var n=[],a=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a);var r=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,r,e.STATIC_DRAW),a.itemSize=3,a.numItems=3;var i=e.createProgram(),o=e.createShader(e.VERTEX_SHADER);e.shaderSource(o,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(o);var c=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(c,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(c),e.attachShader(i,o),e.attachShader(i,c),e.linkProgram(i),e.useProgram(i),i.vertexPosAttrib=e.getAttribLocation(i,"attrVertex"),i.offsetUniform=e.getUniformLocation(i,"uniformOffset"),e.enableVertexAttribArray(i.vertexPosArray),e.vertexAttribPointer(i.vertexPosAttrib,a.itemSize,e.FLOAT,!1,0,0),e.uniform2f(i.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,a.numItems);try{n.push(e.canvas.toDataURL())}catch(e){}n.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),n.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),n.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),n.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),n.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),n.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),n.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),n.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),n.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(e)),n.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),n.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),n.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),n.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),n.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),n.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),n.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),n.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),n.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),n.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),n.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),n.push("webgl red bits:"+e.getParameter(e.RED_BITS)),n.push("webgl renderer:"+e.getParameter(e.RENDERER)),n.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),n.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),n.push("webgl vendor:"+e.getParameter(e.VENDOR)),n.push("webgl version:"+e.getParameter(e.VERSION));try{var d=e.getExtension("WEBGL_debug_renderer_info");d&&(n.push("webgl unmasked vendor:"+e.getParameter(d.UNMASKED_VENDOR_WEBGL)),n.push("webgl unmasked renderer:"+e.getParameter(d.UNMASKED_RENDERER_WEBGL)))}catch(e){}return e.getShaderPrecisionFormat?(s(["FLOAT","INT"],(function(t){s(["VERTEX","FRAGMENT"],(function(a){s(["HIGH","MEDIUM","LOW"],(function(r){s(["precision","rangeMin","rangeMax"],(function(i){var o=e.getShaderPrecisionFormat(e[a+"_SHADER"],e[r+"_"+t])[i];"precision"!==i&&(i="precision "+i);var c=["webgl ",a.toLowerCase()," shader ",r.toLowerCase()," ",t.toLowerCase()," ",i,":",o].join("");n.push(c)}))}))}))})),m(e),n):(m(e),n)}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){h()?e(function(){try{var e=g(),t=e.getExtension("WEBGL_debug_renderer_info"),n=e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL);return m(e),n}catch(e){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div");e.innerHTML=" ",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,a=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("windows")>=0||t.indexOf("win16")>=0||t.indexOf("win32")>=0||t.indexOf("win64")>=0||t.indexOf("win95")>=0||t.indexOf("win98")>=0||t.indexOf("winnt")>=0||t.indexOf("wow64")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0||t.indexOf("x11")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0||t.indexOf("ipod")>=0||t.indexOf("crios")>=0||t.indexOf("fxios")>=0?"iOS":t.indexOf("macintosh")>=0||t.indexOf("mac_powerpc)")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows"!==e&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e&&-1===t.indexOf("cros"))return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return a.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(a.indexOf("linux")>=0||a.indexOf("android")>=0||a.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(a.indexOf("mac")>=0||a.indexOf("ipad")>=0||a.indexOf("ipod")>=0||a.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||!(a.indexOf("arm")>=0&&"Windows Phone"===e)&&!(a.indexOf("pike")>=0&&t.indexOf("opera mini")>=0)&&((a.indexOf("win")<0&&a.indexOf("linux")<0&&a.indexOf("mac")<0&&a.indexOf("iphone")<0&&a.indexOf("ipad")<0&&a.indexOf("ipod")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e)}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(t.indexOf("edge/")>=0||t.indexOf("iemobile/")>=0)return!1;if(t.indexOf("opera mini")>=0)return!1;if(("Chrome"==(e=t.indexOf("firefox/")>=0?"Firefox":t.indexOf("opera/")>=0||t.indexOf(" opr/")>=0?"Opera":t.indexOf("chrome/")>=0?"Chrome":t.indexOf("safari/")>=0?t.indexOf("android 1.")>=0||t.indexOf("android 2.")>=0||t.indexOf("android 3.")>=0||t.indexOf("android 4.")>=0?"AOSP":"Safari":t.indexOf("trident/")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var a,r=eval.toString().length;if(37===r&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===r&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===r&&"Chrome"!==e&&"AOSP"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),a=!0}catch(e){a=!1}}return a&&"Firefox"!==e&&"Other"!==e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var n=["monospace","sans-serif","serif"],a=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(a=a.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),a=(a=a.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return a.indexOf(e)===t}));var r=document.getElementsByTagName("body")[0],i=document.createElement("div"),o=document.createElement("div"),c={},s={},d=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},l=function(e,t){var n=d();return n.style.fontFamily="'"+e+"',"+t,n},u=function(e){for(var t=!1,a=0;a<n.length;a++)if(t=e[a].offsetWidth!==c[n[a]]||e[a].offsetHeight!==s[n[a]])return t;return t},f=function(){for(var e=[],t=0,a=n.length;t<a;t++){var r=d();r.style.fontFamily=n[t],i.appendChild(r),e.push(r)}return e}();r.appendChild(i);for(var h=0,p=n.length;h<p;h++)c[n[h]]=f[h].offsetWidth,s[n[h]]=f[h].offsetHeight;var g=function(){for(var e={},t=0,r=a.length;t<r;t++){for(var i=[],c=0,s=n.length;c<s;c++){var d=l(a[t],n[c]);o.appendChild(d),i.push(d)}e[a[t]]=i}return e}();r.appendChild(o);for(var m=[],v=0,y=a.length;v<y;v++)u(g[a[v]])&&m.push(a[v]);r.removeChild(o),r.removeChild(i),e(m)},pauseBefore:!0},{key:"fontsFlash",getData:function(e,t){return void 0!==window.swfobject?window.swfobject.hasFlashPlayerVersion("9.0.0")?t.fonts.swfPath?void function(e,t){var n="___fp_swf_loaded";window[n]=function(t){e(t)};var a,r=t.fonts.swfContainerId;(a=document.createElement("div")).setAttribute("id",(void 0).fonts.swfContainerId),document.body.appendChild(a);var i={onReady:n};window.swfobject.embedSWF(t.fonts.swfPath,r,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})}((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(e,t){var n=t.audio;if(n.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var a=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==a)return e(t.NOT_AVAILABLE);var r=new a(1,44100,44100),i=r.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,r.currentTime);var o=r.createDynamicsCompressor();s([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==o[e[0]]&&"function"==typeof o[e[0]].setValueAtTime&&o[e[0]].setValueAtTime(e[1],r.currentTime)})),i.connect(o),o.connect(r.destination),i.start(0),r.startRendering();var c=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/fingerprintjs/fingerprintjs with your user agent: "'+navigator.userAgent+'".'),r.oncomplete=function(){},r=null,e("audioTimeout")}),n.timeout);r.oncomplete=function(t){var n;try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),i.disconnect(),o.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"enumerateDevices",getData:function(e,t){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return e(t.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))})).catch((function(t){e(t)}))}}],y=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200")};return y.get=function(e,t){t?e||(e={}):(t=e,e={}),function(e,t){if(null==t)return e;var n,a;for(a in t)null==(n=t[a])||Object.prototype.hasOwnProperty.call(e,a)||(e[a]=n)}(e,c),e.components=e.extraComponents.concat(v);var n={data:[],addPreprocessedComponent:function(t,a){"function"==typeof e.preprocessor&&(a=e.preprocessor(t,a)),n.data.push({key:t,value:a})}},a=-1,r=function(i){if((a+=1)>=e.components.length)t(n.data);else{var o=e.components[a];if(e.excludes[o.key])r(!1);else{if(!i&&o.pauseBefore)return a-=1,void setTimeout((function(){r(!0)}),1);try{o.getData((function(e){n.addPreprocessedComponent(o.key,e),r(!1)}),e)}catch(e){n.addPreprocessedComponent(o.key,String(e)),r(!1)}}}};r(!1)},y.getPromise=function(e){return new Promise((function(t,n){y.get(e,t)}))},y.getV18=function(e,t){return null==t&&(t=e,e={}),y.get(e,(function(n){for(var a=[],r=0;r<n.length;r++){var i=n[r];if(i.value===(e.NOT_AVAILABLE||"not available"))a.push({key:i.key,value:"unknown"});else if("plugins"===i.key)a.push({key:"plugins",value:d(i.value,(function(e){var t=d(e[2],(function(e){return e.join?e.join("~"):e})).join(",");return[e[0],e[1],t].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(i.key)&&Array.isArray(i.value))a.push({key:i.key,value:i.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(i.key)){if(!i.value)continue;a.push({key:i.key,value:1})}else i.value?a.push(i.value.join?{key:i.key,value:i.value.join(";")}:i):a.push({key:i.key,value:i.value})}var c=o(d(a,(function(e){return e.value})).join("~~~"),31);t(c,a)}))},y.x64hash128=o,y.VERSION="2.1.4",y}))}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";n.r(a),n.d(a,{default:()=>Ee});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)},t=function(){return t=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)};function r(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function c(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}s((a=a.apply(e,t||[])).next())}))}function i(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var o=n(750),c=n.n(o);const s="UPDATE_DATA",d="CASHIER_PAUSE",l="CASHIER_RESUME",u="PIQ_INITIATE_NATIVE_PAYMENT",f="PIQ_PROCESS_NATIVE_PAYMENT",h="CASHIER_INIT_LOAD",p="CASHIER_BOOT_REQUEST",g="DONE_LOADING",m="IS_LOADING",v="ONLOAD_ERROR",y="PIQ_LOOKUP_SHA_256";for(var T="piq-cashier-wrapper",w="cashier_container_uid",A=function(e){return e.map((function(e){return String.fromCodePoint(74^e)})).join("")},E={key:"paymentiq",docsUrl:[34,62,62,58,57,112,101,101,46,37,41,57,100,58,43,51,39,47,36,62,35,59,100,35,37,101,47,63,56,37,58,47,101,41,43,57,34,35,47,56,101,45,47,36,47,56,43,38,101,32,43,60,43,57,41,56,35,58,62,43,58,35],fallbackEnvironment:"production",environments:{production:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37]},mrgreen:{cashierApi:[34,62,62,58,57,112,101,101,39,56,45,56,47,47,36,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37]},casumo:{cashierApi:[34,62,62,58,57,112,101,101,41,43,57,63,39,37,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37]},test:{cashierApi:[34,62,62,58,57,112,101,101,62,47,57,62,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37]},development:{cashierApi:[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,127,122,122,122],cashierOrigin:[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,127,122,122,122]},ecom:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,47,41,37,39,62,56,43,36,57,43,41,62,35,37,36,57,100,35,37,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,47,41,37,39,62,56,43,36,57,43,41,62,35,37,36,57,100,35,37]},oceanharborlight:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,37,41,47,43,36,34,43,56,40,37,56,38,35,45,34,62,100,41,37,39,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,37,41,47,43,36,34,43,56,40,37,56,38,35,45,34,62,100,41,37,39]},silvercurrent:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,57,35,38,60,47,56,41,63,56,56,47,36,62,100,48,37,36,47,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,35,38,60,47,56,41,63,56,56,47,36,62,100,48,37,36,47]},softember:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,57,37,44,62,47,39,40,47,56,100,62,37,37,38,57,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,37,44,62,47,39,40,47,56,100,62,37,37,38,57]},sunpetal:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,57,63,36,58,47,62,43,38,100,50,51,48,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,63,36,58,47,62,43,38,100,50,51,48]}}},C={},S=0,O=Object.keys(E.environments);S<O.length;S++){var b=O[S],I=E.environments[b];C[b]={cashierApi:A(I.cashierApi),cashierOrigin:A(I.cashierOrigin)}}var _=[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,126,122,122,122],B=[34,62,62,58,112,101,101,122,100,122,100,122,100,122,112,127,122,122,122],P=[34,62,62,58,112,101,101,122,100,122,100,122,100,122,112,126,122,122,122],x=E.fallbackEnvironment,k=function(t){function n(e){var a=t.call(this,'Unknown environment "'+String(e)+'" for brand "'+E.key+'". This build knows: '+Object.keys(C).join(", "))||this;return a.name="UnknownEnvironmentError",Object.setPrototypeOf(a,n.prototype),a}return function(t,n){function a(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)}(n,t),n}(Error),M=function(e){var t=e&&Object.prototype.hasOwnProperty.call(C,e)?C[e]:void 0;if(t)return t;if(!e||x)return C[L()];throw new k(e)},L=function(){return x||Object.keys(C).filter((function(e){return"development"!==e}))[0]||Object.keys(C)[0]},R=function(){for(var e=[],t=0,n=Object.keys(C);t<n.length;t++){var a=n[t],r=C[a];try{var i=new URL(r.cashierApi).origin;e.includes(i)||e.push(i)}catch(e){}e.includes(r.cashierOrigin)||e.push(r.cashierOrigin)}for(var o=0,c=[A(B),A(P),A(_)];o<c.length;o++){var s=c[o];e.includes(s)||e.push(s)}return e},N=function(){var e=E.docsUrl?A(E.docsUrl):"";return e?" Read more over at ".concat(e):""},D=null,U=null,F=function(e){return!(!e||"string"!=typeof e)&&R().includes(e)},G=!1,H=[],V=function(e,t){G||"cashierIframe"!==(null==e?void 0:e.id)?t():H.length>=50?console.error("Dropping cashier call: more than ".concat(50," were made before the cashier finished loading.")):H.push(t)},W=[p,h,m,g],j=null,X=null,K=null,z=function(e){j=e,window.removeEventListener("message",Y,!1),window.addEventListener("message",Y)};function Q(e){var t,n,a,r=R();return e.origin&&(a=e.origin,F(a)&&(D=a)),!(r.includes(e.origin)||(null===(t=e.data)||void 0===t?void 0:t.eventType)&&["CASHIER_INIT_LOAD","CASHIER_BOOT_REQUEST","LOOKUP_INIT_LOAD","IS_LOADING"].includes(e.data.eventType)||((null===(n=e.data)||void 0===n?void 0:n.eventType)&&console.error("Integration: Failed to read post message - invalid origin",e.origin,e.data.eventType),0))}function J(e){var t;(null===(t=e.data)||void 0===t?void 0:t.eventType)&&console.error("Invalid origin, will not read cashier events",e.data.eventType,e.origin)}var Y=function(e){if(Q(e))return J(e);switch(e.data.eventType){case h:if(j.cashierInitLoad)return j.cashierInitLoad({data:e.data.payload});break;case"LOOKUP_INIT_LOAD":if(j.lookupInitLoad)return j.lookupInitLoad();break;case"CHANGE":if(j.change)return j.change({data:e.data.payload});break;case s:if(j.update)return j.update({data:e.data.payload});break;case"TX_SUCCESS":if(j.success)return j.success({data:e.data.payload});break;case"TX_FAILED":if(j.failure)return j.failure({data:e.data.payload});break;case"TX_PENDING":if(j.pending)return j.pending({data:e.data.payload});break;case"TX_UNRESOLVED":if(j.unresolved)return j.unresolved({data:e.data.payload});break;case"APP_SET_HEIGHT":return ue(e.data.payload.height);case d:if(j.pause)return j.pause({data:e.data.payload});break;case l:if(j.resume)return j.resume({data:e.data.payload});break;case m:if(j.isLoading)return j.isLoading({data:e.data.eventType});break;case g:if(j.doneLoading)return j.doneLoading({data:e.data.eventType});break;case"APP_VISIBLE":if(j.isVisible)return j.isVisible();break;case"APP_HIDDEN":if(j.isHidden)return j.isHidden();break;case"SELECTED_TX_METHOD":if(j.paymentMethodSelect&&e.data&&e.data.payload)return j.paymentMethodSelect({data:e.data.payload});break;case"PAYMENT_AMOUNT_CHANGE":if(j.paymentAmountChange&&e.data&&e.data.payload)return j.paymentAmountChange({data:e.data.payload});break;case"ENTERED_TX_METHOD_PAGE":if(j.paymentMethodPageEntered&&e.data&&e.data.payload)return j.paymentMethodPageEntered({data:e.data.payload});break;case"APP_ROUTE_CHANGE":if(j.navigate&&e.data&&e.data.payload)return j.navigate({data:e.data.payload});break;case"NEW_IFRAME":case"NEW_WINDOW":if(j.newProviderWindow)return j.newProviderWindow({data:e.data.eventType});break;case"CANCEL_PENDING_WITHDRAWAL":if(j.cancelledPendingWD)return j.cancelledPendingWD({data:e.data.payload});break;case"TX_VALIDATION_FAILED":if(j.validationFailed)return j.validationFailed({data:e.data.payload});break;case"PIQ_LOOKUP_CUSTOMER_IDENTIFIED":return function(e){var t=e.data,n=t.eventType,a=t.payload;if(!n&&"string"==typeof e.data){var r=JSON.parse(e.data);n=r.eventType,a=r.payload}if(j.lookupUserIdentified&&j.lookupUserIdentified({data:a}),!K||K.cashierLoaded)return ae({iframe:document.getElementById("cashierIframe")});var i={userId:a.userId,sessionId:a.sessionId||null,user:a.user,attributes:a.attributes,didToken:a.didToken||null};K.setupCashier(i)}(e);case"PIQ_CUSTOMER_DATA":if(j.lookupUserData)return j.lookupUserData({data:e.data.payload});case"TX_CANCELLED":if(j.cancelled)return j.cancelled({data:e.data.payload});break;case v:if(j.onLoadError)return j.onLoadError({data:e.data.payload});break;case"TRANSACTION_INIT":if(j.transactionInit)return j.transactionInit({data:e.data.payload})}},Z=function(e){return r(void 0,void 0,void 0,(function(){var t,n,a,o,c,s,d,l;return i(this,(function(h){if(Q(e))return[2,J(e)];try{switch(t=e.data,n=t.eventType,a=t.payload,n||"string"!=typeof e.data||(o=JSON.parse(e.data),n=o.eventType,a=o.payload),W.includes(n)&&R().includes(e.origin)&&function(){if(!G){G=!0;var e=H;H=[],e.forEach((function(e){try{e()}catch(e){console.error("Failed to flush a queued cashier call",e)}}))}}(),n){case p:!function(){var e,t,n=document.querySelector("#cashierIframe");if(n){var a=null!==(t=null===(e=null==K?void 0:K.cashierConfig)||void 0===e?void 0:e.launchToken)&&void 0!==t?t:null;$({eventType:"CASHIER_BOOT",payload:{launchToken:a}},n.contentWindow,se(n))}}();break;case"ADD_CONFIG_TO_WINDOW":pe(a);break;case"SETUP_AUTHORIZE_SCRIPT":!function(e){if(null==e?void 0:e.authorizeScript){var t=e.provider,n=e.authorizeScript;try{var a="Authenticate_".concat(t);if(!document.getElementById(a)){var r=document.createElement("script");r.id=a,r.innerHTML=n,document.body.appendChild(r)}}catch(e){console.log(e),console.error("Unable to add authenticate script for ".concat(t))}}}(a);break;case"EXECUTE_AUTHORIZE_METHOD":c=a.method,s=a.parameters,window[c](s);break;case"GET_INTEGRATIONS_SCRIPT_URL":return[2,X(a)];case"TOP_URL_REPLACE":!function(e){window.location.replace(e.url);var t=JSON.stringify({eventType:"APPLICATION_REDIRECT",payload:e});window.ReactNativeWebView?q(t,window.ReactNativeWebView,"*"):q(t)}(a);break;case u:!function(e){var t=JSON.stringify({eventType:u,payload:e});window.ReactNativeWebView?q(t,window.ReactNativeWebView,"*"):q(t)}(a);break;case f:d=document.getElementById("cashierIframe"),q({eventType:f,payload:a},d.contentWindow,ce());break;case"PIQ_STATUS_NATIVE_PAYMENT":l=JSON.stringify({eventType:"PIQ_STATUS_NATIVE_PAYMENT",payload:a}),window.ReactNativeWebView?q(l,window.ReactNativeWebView,"*"):q(l);break;case y:!function(e){r(void 0,void 0,void 0,(function(){var t,n,a,r,o;return i(this,(function(i){switch(i.label){case 0:return e.codeVerifier?(t=e.codeVerifier,n=new TextEncoder,a=n.encode(t),[4,window.crypto.subtle.digest("SHA-256",a)]):[3,2];case 1:r=i.sent(),o=document.getElementById("lookupIframe"),$({eventType:y,payload:{codeChallenge:r,codeVerifier:t}},o.contentWindow,se(o)),i.label=2;case 2:return[2]}}))}))}(a);break;case"PIQ_LOOKUP_EDIT_USER":return[2,ne({iframe:document.getElementById("cashierIframe")})];case"PIQ_LOOKUP_CUSTOMER_RESET":ge(),K.cashierLoaded=!1;break;case"PIQ_LOOKUP_REPORT_HEIGHT":return[2,fe(e.data.payload.height)]}}catch(e){console.log(e)}return[2]}))}))},q=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);try{t?t.postMessage(e,n):window.postMessage(e,ce())}catch(t){e.eventType?console.error("Failed to send postMessage: ",e.eventType):console.error(t)}},$=function(e,t,n){var a=M(void 0).cashierOrigin;q(e,t,n),n!==a&&q(e,t,a)},ee=function(e,t){if(!e.iframe)throw new TypeError("Cannot ".concat(t,": the Cashier is not set up"));return e.iframe},te=function(e,t){var n=ee(t,"set css");V(n,(function(){return $({eventType:"SET_CSS",payload:e},n.contentWindow,se(n))}))},ne=function(e){if(!e.iframe)return null;$({eventType:d},e.iframe.contentWindow,se(e.iframe));var t=document.getElementById("cashierIframe");t&&(t.tabIndex=-1)},ae=function(e){$({eventType:l},e.iframe.contentWindow,se(e.iframe)),document.getElementById("cashierIframe").tabIndex=0},re=function(e){var t=document.querySelector("#cashierIframe");$({eventType:"POST_INTEGRATION_URL",payload:{url:he("txRefId",e.txRefId),txRefId:e.txRefId}},t.contentWindow,se(t))},ie=function(e){if(window._paymentCashierDFP){var t=document.getElementById(e);oe(t,window._paymentCashierDFP),delete window._paymentCashierDFP}else setTimeout((function(){ie(e)}),50)},oe=function(e,t){t?V(e,(function(){return $({eventType:"PIQ_DEVICE_ID",payload:{deviceId:t}},e.contentWindow,se(e))})):console.error("DeviceId not defined")};function ce(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin}var se=function(e){return D||(U||function(e){var t=new URL(e.src),n=function(e){for(var t=0,n=Object.keys(C);t<n.length;t++){var a=n[t],r=C[a];try{if(new URL(r.cashierApi).origin===e&&r.cashierOrigin!==e)return r.cashierOrigin}catch(e){}}return null}(t.origin);return n||(null==t?void 0:t.origin)}(e))},de=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);try{var a=function(e){return n?e:encodeURIComponent(e)},r=["trackingPixels","logoUrl","customLogoFileName"],i=function(e,t){var n="object"==typeof e&&r.includes(t);return a(n?JSON.stringify(e):e)},o=[];for(var c in e){var s=e[c];t?null!==e[c]&&""!==e[c]&&o.push("".concat(a(c),"=").concat(i(s,c))):o.push("".concat(a(c),"=").concat(i(s,c)))}return o.join("&")}catch(e){console.error(e)}},le=function(e){var n=t({},e);try{var a=n.theme;for(var r in delete n.theme,a)for(var i in a[r])n["theme_".concat(r,"_").concat(i)]=a[r][i]}catch(e){console.log(e)}try{var o=n.attributes;for(var c in function(e){delete e.containerMinHeight,delete e.initLoadErrorTimeout,delete e.attributes,delete e.launchToken}(n),o)n["attributes.".concat(c)]=o[c];var s=n.user;for(var d in delete n.user,s)n["user.".concat(d)]=s[d]}catch(e){console.log(e)}return n},ue=function(e){document.getElementById("cashierIframe").style.height="".concat(e,"px")},fe=function(e){document.getElementById("lookupIframe").style.height="".concat(e,"px")},he=function(e,t){var n=self.window.location.href,a=null,r=new RegExp("[&\\?]"+e+"=");return r.test(n)?(r=new RegExp("([&\\?])"+e+"=\\d+"),a=n.replace(r,"$1".concat(e,"=").concat(t))):a=n.indexOf("?")>-1?"".concat(n,"&").concat(e,"=").concat(t):"".concat(n,"?").concat(e,"=").concat(t),a},pe=function(e){try{var n=JSON.parse(e.config),a="".concat(window.PAYMENT_CASHIER_URI.split("?")[0],"?").concat(de(le(n)));window.PAYMENT_CASHIER_BO_CONFIG_URI=a,window.PAYMENT_CASHIER_BO_CONFIG_MERGED=t(t({},window.__PAYMENT_CASHIER_CONFIG__),e)}catch(e){console.log(e)}},ge=function(){try{G=!1,H=[];var e=document.getElementById("cashierIframe");e?e.remove():console.log("No cashier found and can't reset")}catch(e){console.error(e),console.log("Unable to destroy the cashier, has it been set up?")}},me="geolocation *;camera *;payment *;clipboard-read *;clipboard-write *;autoplay *;microphone *;fullscreen *;accelerometer *;magnetometer *;gyroscope *;picture-in-picture *;otp-credentials *;publickey-credentials-get https://checkout-v2.zimpler.net;publickey-credentials-create https://checkout-v2.zimpler.net;";var ve="_PaymentIQCashier",ye={},Te=function(e,t){if(!ye[e]){ye[e]=!0;try{console.warn("[Cashier] "+e+" is deprecated and will be removed. Use "+function(e){return"Reset"===e.slice(-5)?"_PaymentCashierReset":"_PaymentCashier"}(e)+" instead. Both behave identically; only the name changes.")}catch(e){}}},we=function(){function e(e,n,a){this.initCssSet=!1;var r=document.querySelector(e);r.className=T,this.cashierContainerId=(new Date).getTime().toString(),r.setAttribute(w,this.cashierContainerId),n.containerMinHeight&&(this.containerMinHeight=n.containerMinHeight);var i=t({},n),o=function(e){var n=e.font,a=e.locale,r=ce();if(e.attributes||(e.attributes={}),e.attributes.hostUri=r,e.lookupConfig){var i=t({},e.lookupConfig),o=t(t(t(t({merchantId:e.merchantId},i),n&&{font:n}),a&&{locale:a}),{hostUri:r,theme:t({},e.theme),containerWidth:e.containerWidth||void 0,environment:i.environment||e.environment||L()});return delete e.lookupConfig,{cashierConfig:e,lookupConfig:o}}return{cashierConfig:e}}(i),s=o.cashierConfig,d=o.lookupConfig;this.cashierConfig=s,this.element=r,this.lookupLoaded=!1,this.cashierLoaded=!1,d?this.setupCheckoutFlow(r,d,a,this):this.setupCashierFlow(a),function(){try{c().getV18({},(function(e){window._paymentCashierDFP=e}))}catch(e){console.error("Failed to generate device id"),console.error(e)}}(),i.launchToken;var l=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(i,["launchToken"]);return window.__PAYMENT_CASHIER_CONFIG__=l,this.api(!1,null)}return e.prototype.setupCashierFlow=function(e){this.setupCashier({callback:e})},e.prototype.setupCheckoutFlow=function(e,n,a,r){var i=this,o=null;n&&(n.domElement||e)&&(o=function(e,n,a){var r=t({},n);r.didAccessToken&&(r.didAccessToken=JSON.stringify(r.didAccessToken)),r.userData&&(r.userData=JSON.stringify(r.userData)),a.iframe=document.createElement("iframe");var i=r.environment,o=(r.containerHeight,r.containerWidth),c=void 0===o?"1px":o,s=r.containerMinHeight,d=void 0===s?"0px":s,l=function(e,t){if("development"===e)return A(_);var n=M(e).cashierOrigin;return"".concat(n,"/checkout-client/").concat(t||"master")}(i,r.version);a.iframe.style.borderWidth=0,a.iframe.style.display="block",a.iframe.style.height="250px",a.iframe.style.minHeight=d,a.iframe.style.width=c,a.iframe.style.minWidth="100%",a.iframe.style.left="0px",a.iframe.allow=me,a.iframe.id="lookupIframe",a.iframe.setAttribute("data-hj-allow-iframe","true"),a.iframe.setAttribute("data-cy","lookup-iframe");var u=de(le(r));return u.length>2e3&&console.error("Query length is over 2000 characters, which some browsers cannot handle. Check whether every parameter passed in is needed: long attributes can be supplied through the JavaScript API instead.".concat(N())),a.iframe.src="".concat(l,"/?").concat(u),e.appendChild(a.iframe),a.iframe}(n.domElement||e,n,r)),o.onload=function(){i.lookupLoaded=!0,a(i.api(!0,o))}},e.prototype.setupCashier=function(e){var n,a,r=this;try{var i=e.callback,o=void 0===i?null:i,c=e.userId,s=e.sessionId,d=e.user,l=void 0===d?{}:d,u=e.attributes,f=void 0===u?{}:u,h=e.didToken,p=void 0===h?null:h,g=this,m=g.element,y=g.cashierConfig,A=g.cashierLoaded;if(m&&y&&!A){c&&(y.userId=c),s&&(y.sessionId=s),p&&(y.attributes||(y.attributes={}),y.attributes.didToken=p),y.user=t(t({},y.user),l),y.attributes=t(t({},y.attributes),f);var E=function(e,t,n,a){n.iframe=document.createElement("iframe");var r,i=t.environment,o=t.containerHeight,c=void 0===o?"100%":o,s=t.containerWidth,d=void 0===s?"100%":s,l=t.containerMinHeight,u=void 0===l?"0px":l,f=M(i).cashierApi,h=M(i).cashierOrigin;F(r=h)&&(U=r),n.iframe.style.borderWidth=0,n.iframe.style.display="block",n.iframe.style.height=c,n.iframe.style.minHeight=u,n.iframe.style.width=d,n.iframe.style.left="0px",n.iframe.allow=me,n.iframe.allowTransparency,n.iframe.id="cashierIframe",n.iframe.setAttribute("data-hj-allow-iframe","true"),n.iframe.setAttribute("data-cy","cashier-iframe");var p=de(le(t));p.length>2e3&&console.error("Query length is over 2000 characters, which some browsers cannot handle. Check whether every parameter passed in is needed: long attributes can be supplied through the JavaScript API instead.".concat(N()));var g="".concat(p,"&attributes.bootstrapVersion=").concat("1.7.4"),m="".concat(f,"/?").concat(g);return n.iframe.src=m,n.iframe.onload=a,e.appendChild(n.iframe),window.PAYMENT_CASHIER_URI=m,n.iframe}(m,y,this,(function(){r.cashierLoaded=!0,o&&o(r.api(!0,E))}));n=y.initLoadErrorTimeout,a=this.cashierContainerId,void 0===n&&(n=1e4),setTimeout((function(){var e,t=document.querySelector(".".concat(T)),i=(null==t?void 0:t.attributes)?null===(e=t.attributes[w])||void 0===e?void 0:e.value:"";r.cashierLoaded||a!==i||self.postMessage({eventType:v,payload:{status:"Could not load cashier iframe. Execution time limit was exceeded: ".concat(n," milliseconds"),timeLimit:n}},"*")}),n)}}catch(e){if(console.log("Failed to setup cashier"),console.error(e),e instanceof k)throw e}},e.prototype.api=function(e,n){var a,r,i=this,o={set:function(e){!function(e,n){var a=function(e){var n=function(e){var n=globalThis.structuredClone;if("function"==typeof n)try{return n(e)}catch(e){}return t({},e)}(e);return n.config&&(delete n.config.merchantId,delete n.config.userId,delete n.config.sessionId),n}(e),r=ee(n,"set data");V(r,(function(){return $({eventType:s,payload:a},r.contentWindow,se(r))}))}(e,i)},css:function(e){te(e,i)},pause:function(){ne(i)},resume:function(){ae(i)},on:function(){}};return this.containerMinHeight&&!this.initCssSet&&(a=this.containerMinHeight,r=this,window.addEventListener("message",(function(e){if(e.data.eventType===h){"number"==typeof a&&"".concat(a,"px");var t="\n #app-container.auto-height {\n min-height: ".concat(a,"!important;\n }\n ");te(t,r)}})),this.initCssSet=!0),e&&n?(ie(n.id),K=this,X=re,window.removeEventListener("message",Z,!1),window.addEventListener("message",Z),t(t({},o),{on:function(e){!function(e){var t;z(e),e.isLoading&&((t=document.querySelector("#cashierIframe"))&&$({eventType:m},t.contentWindow,se(t)))}(e)}})):o},e}();function Ae(e,t,n){if(!(this instanceof Ae))throw new TypeError(ve+" cannot be invoked without 'new'");return Te(ve),new we(e,t,n)}Ae.prototype=we.prototype,window._PaymentCashier=we,window._PaymentCashierReset=ge,window._PaymentIQCashier=Ae,window._PaymentIQCashierReset=function(){return Te("_PaymentIQCashierReset"),ge()};const Ee=we})(),a})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.beta=t():e.beta=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={750:function(e,t,n){var a,r;!function(i,o,c){"use strict";"undefined"!=typeof window&&n.amdO?void 0===(r="function"==typeof(a=c)?a.call(t,n,t,e):a)||(e.exports=r):e.exports?e.exports=c():o.exports?o.exports=c():o.Fingerprint2=c()}(0,this,(function(){"use strict";void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},t=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},n=function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])},a=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},r=function(e,t){return[e[0]^t[0],e[1]^t[1]]},i=function(e){return e=r(e,[0,e[0]>>>1]),e=t(e,[4283543511,3981806797]),e=r(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),r(e,[0,e[0]>>>1])},o=function(o,c){c=c||0;for(var s=(o=o||"").length%16,d=o.length-s,l=[0,c],u=[0,c],f=[0,0],h=[0,0],p=[2277735313,289559509],g=[1291169091,658871167],m=0;m<d;m+=16)f=[255&o.charCodeAt(m+4)|(255&o.charCodeAt(m+5))<<8|(255&o.charCodeAt(m+6))<<16|(255&o.charCodeAt(m+7))<<24,255&o.charCodeAt(m)|(255&o.charCodeAt(m+1))<<8|(255&o.charCodeAt(m+2))<<16|(255&o.charCodeAt(m+3))<<24],h=[255&o.charCodeAt(m+12)|(255&o.charCodeAt(m+13))<<8|(255&o.charCodeAt(m+14))<<16|(255&o.charCodeAt(m+15))<<24,255&o.charCodeAt(m+8)|(255&o.charCodeAt(m+9))<<8|(255&o.charCodeAt(m+10))<<16|(255&o.charCodeAt(m+11))<<24],f=t(f,p),f=n(f,31),f=t(f,g),l=r(l,f),l=n(l,27),l=e(l,u),l=e(t(l,[0,5]),[0,1390208809]),h=t(h,g),h=n(h,33),h=t(h,p),u=r(u,h),u=n(u,31),u=e(u,l),u=e(t(u,[0,5]),[0,944331445]);switch(f=[0,0],h=[0,0],s){case 15:h=r(h,a([0,o.charCodeAt(m+14)],48));case 14:h=r(h,a([0,o.charCodeAt(m+13)],40));case 13:h=r(h,a([0,o.charCodeAt(m+12)],32));case 12:h=r(h,a([0,o.charCodeAt(m+11)],24));case 11:h=r(h,a([0,o.charCodeAt(m+10)],16));case 10:h=r(h,a([0,o.charCodeAt(m+9)],8));case 9:h=r(h,[0,o.charCodeAt(m+8)]),h=t(h,g),h=n(h,33),h=t(h,p),u=r(u,h);case 8:f=r(f,a([0,o.charCodeAt(m+7)],56));case 7:f=r(f,a([0,o.charCodeAt(m+6)],48));case 6:f=r(f,a([0,o.charCodeAt(m+5)],40));case 5:f=r(f,a([0,o.charCodeAt(m+4)],32));case 4:f=r(f,a([0,o.charCodeAt(m+3)],24));case 3:f=r(f,a([0,o.charCodeAt(m+2)],16));case 2:f=r(f,a([0,o.charCodeAt(m+1)],8));case 1:f=r(f,[0,o.charCodeAt(m)]),f=t(f,p),f=n(f,31),f=t(f,g),l=r(l,f)}return l=r(l,[0,o.length]),u=r(u,[0,o.length]),l=e(l,u),u=e(u,l),l=i(l),u=i(u),l=e(l,u),u=e(u,l),("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)},c={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0,adBlock:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},s=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t(e[n],n,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)},d=function(e,t){var n=[];return null==e?n:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(s(e,(function(e,a,r){n.push(t(e,a,r))})),n)},l=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],n=0,a=navigator.plugins.length;n<a;n++)navigator.plugins[n]&&t.push(navigator.plugins[n]);return u(e)&&(t=t.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),d(t,(function(e){var t=d(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,t]}))},u=function(e){for(var t=!1,n=0,a=e.plugins.sortPluginsFor.length;n<a;n++){var r=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(r)){t=!0;break}}return t},f=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},h=function(){if(!f())return!1;var e=g(),t=!!window.WebGLRenderingContext&&!!e;return m(e),t},p=function(){return("msWriteProfilerMark"in window)+("msLaunchUri"in navigator)+("msSaveBlob"in navigator)>=2},g=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},m=function(e){var t=e.getExtension("WEBGL_lose_context");null!=t&&t.loseContext()},v=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}(t))}},{key:"screenResolution",getData:function(e,t){e(function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}(t))}},{key:"availableScreenResolution",getData:function(e,t){e(function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE}(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone||t.NOT_AVAILABLE):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(e){if(p())return e.EXCLUDED;try{return!!window.indexedDB}catch(t){return e.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!!window.HTMLElement.prototype.addBehavior)}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(function(e){return navigator.cpuClass||e.NOT_AVAILABLE}(t))}},{key:"platform",getData:function(e,t){e(function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}(t))}},{key:"doNotTrack",getData:function(e,t){e(function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}(t))}},{key:"plugins",getData:function(e,t){"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?t.plugins.excludeIE?e(t.EXCLUDED):e(function(e){var t=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?t=d(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):t.push(e.NOT_AVAILABLE),navigator.plugins&&(t=t.concat(l(e))),t}(t)):e(l(t))}},{key:"canvas",getData:function(e,t){f()?e(function(e){var t=[],n=document.createElement("canvas");n.width=2e3,n.height=200,n.style.display="inline";var a=n.getContext("2d");return a.rect(0,0,10,10),a.rect(2,2,6,6),t.push("canvas winding:"+(!1===a.isPointInPath(5,5,"evenodd")?"yes":"no")),a.textBaseline="alphabetic",a.fillStyle="#f60",a.fillRect(125,1,62,20),a.fillStyle="#069",e.dontUseFakeFontInCanvas?a.font="11pt Arial":a.font="11pt no-real-font-123",a.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),a.fillStyle="rgba(102, 204, 0, 0.2)",a.font="18pt Arial",a.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),a.globalCompositeOperation="multiply",a.fillStyle="rgb(255,0,255)",a.beginPath(),a.arc(50,50,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(0,255,255)",a.beginPath(),a.arc(100,50,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(255,255,0)",a.beginPath(),a.arc(75,100,50,0,2*Math.PI,!0),a.closePath(),a.fill(),a.fillStyle="rgb(255,0,255)",a.arc(75,75,75,0,2*Math.PI,!0),a.arc(75,75,25,0,2*Math.PI,!0),a.fill("evenodd"),n.toDataURL&&t.push("canvas fp:"+n.toDataURL()),t}(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){h()?e(function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=g()))return null;var n=[],a=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a);var r=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,r,e.STATIC_DRAW),a.itemSize=3,a.numItems=3;var i=e.createProgram(),o=e.createShader(e.VERTEX_SHADER);e.shaderSource(o,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(o);var c=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(c,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(c),e.attachShader(i,o),e.attachShader(i,c),e.linkProgram(i),e.useProgram(i),i.vertexPosAttrib=e.getAttribLocation(i,"attrVertex"),i.offsetUniform=e.getUniformLocation(i,"uniformOffset"),e.enableVertexAttribArray(i.vertexPosArray),e.vertexAttribPointer(i.vertexPosAttrib,a.itemSize,e.FLOAT,!1,0,0),e.uniform2f(i.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,a.numItems);try{n.push(e.canvas.toDataURL())}catch(e){}n.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),n.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),n.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),n.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),n.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),n.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),n.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),n.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),n.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(e)),n.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),n.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),n.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),n.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),n.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),n.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),n.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),n.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),n.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),n.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),n.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),n.push("webgl red bits:"+e.getParameter(e.RED_BITS)),n.push("webgl renderer:"+e.getParameter(e.RENDERER)),n.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),n.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),n.push("webgl vendor:"+e.getParameter(e.VENDOR)),n.push("webgl version:"+e.getParameter(e.VERSION));try{var d=e.getExtension("WEBGL_debug_renderer_info");d&&(n.push("webgl unmasked vendor:"+e.getParameter(d.UNMASKED_VENDOR_WEBGL)),n.push("webgl unmasked renderer:"+e.getParameter(d.UNMASKED_RENDERER_WEBGL)))}catch(e){}return e.getShaderPrecisionFormat?(s(["FLOAT","INT"],(function(t){s(["VERTEX","FRAGMENT"],(function(a){s(["HIGH","MEDIUM","LOW"],(function(r){s(["precision","rangeMin","rangeMax"],(function(i){var o=e.getShaderPrecisionFormat(e[a+"_SHADER"],e[r+"_"+t])[i];"precision"!==i&&(i="precision "+i);var c=["webgl ",a.toLowerCase()," shader ",r.toLowerCase()," ",t.toLowerCase()," ",i,":",o].join("");n.push(c)}))}))}))})),m(e),n):(m(e),n)}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){h()?e(function(){try{var e=g(),t=e.getExtension("WEBGL_debug_renderer_info"),n=e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL);return m(e),n}catch(e){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div");e.innerHTML=" ",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,a=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("windows")>=0||t.indexOf("win16")>=0||t.indexOf("win32")>=0||t.indexOf("win64")>=0||t.indexOf("win95")>=0||t.indexOf("win98")>=0||t.indexOf("winnt")>=0||t.indexOf("wow64")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0||t.indexOf("x11")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0||t.indexOf("ipod")>=0||t.indexOf("crios")>=0||t.indexOf("fxios")>=0?"iOS":t.indexOf("macintosh")>=0||t.indexOf("mac_powerpc)")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows"!==e&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e&&-1===t.indexOf("cros"))return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return a.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(a.indexOf("linux")>=0||a.indexOf("android")>=0||a.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(a.indexOf("mac")>=0||a.indexOf("ipad")>=0||a.indexOf("ipod")>=0||a.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||!(a.indexOf("arm")>=0&&"Windows Phone"===e)&&!(a.indexOf("pike")>=0&&t.indexOf("opera mini")>=0)&&((a.indexOf("win")<0&&a.indexOf("linux")<0&&a.indexOf("mac")<0&&a.indexOf("iphone")<0&&a.indexOf("ipad")<0&&a.indexOf("ipod")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e)}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(t.indexOf("edge/")>=0||t.indexOf("iemobile/")>=0)return!1;if(t.indexOf("opera mini")>=0)return!1;if(("Chrome"==(e=t.indexOf("firefox/")>=0?"Firefox":t.indexOf("opera/")>=0||t.indexOf(" opr/")>=0?"Opera":t.indexOf("chrome/")>=0?"Chrome":t.indexOf("safari/")>=0?t.indexOf("android 1.")>=0||t.indexOf("android 2.")>=0||t.indexOf("android 3.")>=0||t.indexOf("android 4.")>=0?"AOSP":"Safari":t.indexOf("trident/")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var a,r=eval.toString().length;if(37===r&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===r&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===r&&"Chrome"!==e&&"AOSP"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),a=!0}catch(e){a=!1}}return a&&"Firefox"!==e&&"Other"!==e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var n=["monospace","sans-serif","serif"],a=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(a=a.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),a=(a=a.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return a.indexOf(e)===t}));var r=document.getElementsByTagName("body")[0],i=document.createElement("div"),o=document.createElement("div"),c={},s={},d=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},l=function(e,t){var n=d();return n.style.fontFamily="'"+e+"',"+t,n},u=function(e){for(var t=!1,a=0;a<n.length;a++)if(t=e[a].offsetWidth!==c[n[a]]||e[a].offsetHeight!==s[n[a]])return t;return t},f=function(){for(var e=[],t=0,a=n.length;t<a;t++){var r=d();r.style.fontFamily=n[t],i.appendChild(r),e.push(r)}return e}();r.appendChild(i);for(var h=0,p=n.length;h<p;h++)c[n[h]]=f[h].offsetWidth,s[n[h]]=f[h].offsetHeight;var g=function(){for(var e={},t=0,r=a.length;t<r;t++){for(var i=[],c=0,s=n.length;c<s;c++){var d=l(a[t],n[c]);o.appendChild(d),i.push(d)}e[a[t]]=i}return e}();r.appendChild(o);for(var m=[],v=0,y=a.length;v<y;v++)u(g[a[v]])&&m.push(a[v]);r.removeChild(o),r.removeChild(i),e(m)},pauseBefore:!0},{key:"fontsFlash",getData:function(e,t){return void 0!==window.swfobject?window.swfobject.hasFlashPlayerVersion("9.0.0")?t.fonts.swfPath?void function(e,t){var n="___fp_swf_loaded";window[n]=function(t){e(t)};var a,r=t.fonts.swfContainerId;(a=document.createElement("div")).setAttribute("id",(void 0).fonts.swfContainerId),document.body.appendChild(a);var i={onReady:n};window.swfobject.embedSWF(t.fonts.swfPath,r,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})}((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(e,t){var n=t.audio;if(n.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var a=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==a)return e(t.NOT_AVAILABLE);var r=new a(1,44100,44100),i=r.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,r.currentTime);var o=r.createDynamicsCompressor();s([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==o[e[0]]&&"function"==typeof o[e[0]].setValueAtTime&&o[e[0]].setValueAtTime(e[1],r.currentTime)})),i.connect(o),o.connect(r.destination),i.start(0),r.startRendering();var c=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/fingerprintjs/fingerprintjs with your user agent: "'+navigator.userAgent+'".'),r.oncomplete=function(){},r=null,e("audioTimeout")}),n.timeout);r.oncomplete=function(t){var n;try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),i.disconnect(),o.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"enumerateDevices",getData:function(e,t){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return e(t.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))})).catch((function(t){e(t)}))}}],y=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200")};return y.get=function(e,t){t?e||(e={}):(t=e,e={}),function(e,t){if(null==t)return e;var n,a;for(a in t)null==(n=t[a])||Object.prototype.hasOwnProperty.call(e,a)||(e[a]=n)}(e,c),e.components=e.extraComponents.concat(v);var n={data:[],addPreprocessedComponent:function(t,a){"function"==typeof e.preprocessor&&(a=e.preprocessor(t,a)),n.data.push({key:t,value:a})}},a=-1,r=function(i){if((a+=1)>=e.components.length)t(n.data);else{var o=e.components[a];if(e.excludes[o.key])r(!1);else{if(!i&&o.pauseBefore)return a-=1,void setTimeout((function(){r(!0)}),1);try{o.getData((function(e){n.addPreprocessedComponent(o.key,e),r(!1)}),e)}catch(e){n.addPreprocessedComponent(o.key,String(e)),r(!1)}}}};r(!1)},y.getPromise=function(e){return new Promise((function(t,n){y.get(e,t)}))},y.getV18=function(e,t){return null==t&&(t=e,e={}),y.get(e,(function(n){for(var a=[],r=0;r<n.length;r++){var i=n[r];if(i.value===(e.NOT_AVAILABLE||"not available"))a.push({key:i.key,value:"unknown"});else if("plugins"===i.key)a.push({key:"plugins",value:d(i.value,(function(e){var t=d(e[2],(function(e){return e.join?e.join("~"):e})).join(",");return[e[0],e[1],t].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(i.key)&&Array.isArray(i.value))a.push({key:i.key,value:i.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(i.key)){if(!i.value)continue;a.push({key:i.key,value:1})}else i.value?a.push(i.value.join?{key:i.key,value:i.value.join(";")}:i):a.push({key:i.key,value:i.value})}var c=o(d(a,(function(e){return e.value})).join("~~~"),31);t(c,a)}))},y.x64hash128=o,y.VERSION="2.1.4",y}))}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";n.r(a),n.d(a,{default:()=>Re});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)},t=function(){return t=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)};function r(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function c(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}s((a=a.apply(e,t||[])).next())}))}function i(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var o=n(750),c=n.n(o);const s="UPDATE_DATA",d="CASHIER_PAUSE",l="CASHIER_RESUME",u="DEVICE_ID",f="INITIATE_NATIVE_PAYMENT",h="PROCESS_NATIVE_PAYMENT",p="STATUS_NATIVE_PAYMENT",g="CASHIER_INIT_LOAD",m="CASHIER_BOOT_REQUEST",v="DONE_LOADING",y="IS_LOADING",T="ONLOAD_ERROR",w="LOOKUP_CUSTOMER_IDENTIFIED",E="CUSTOMER_DATA",A="LOOKUP_SHA_256",C="LOOKUP_EDIT_USER",O="LOOKUP_CUSTOMER_RESET",S="LOOKUP_REPORT_HEIGHT";var I,b="data-cashier-wrapper",_="cashier_container_uid",P=((I={})[u]="PIQ_DEVICE_ID",I[f]="PIQ_INITIATE_NATIVE_PAYMENT",I[h]="PIQ_PROCESS_NATIVE_PAYMENT",I[p]="PIQ_STATUS_NATIVE_PAYMENT",I[w]="PIQ_LOOKUP_CUSTOMER_IDENTIFIED",I[E]="PIQ_CUSTOMER_DATA",I[A]="PIQ_LOOKUP_SHA_256",I[C]="PIQ_LOOKUP_EDIT_USER",I[O]="PIQ_LOOKUP_CUSTOMER_RESET",I[S]="PIQ_LOOKUP_REPORT_HEIGHT",I),B={};Object.keys(P).forEach((function(e){B[P[e]]=e}));for(var x=function(e){return e&&Object.prototype.hasOwnProperty.call(B,e)&&B[e]||e},k=function(e){return e.map((function(e){return String.fromCodePoint(74^e)})).join("")},M={key:"paymentiq",docsUrl:[34,62,62,58,57,112,101,101,46,37,41,57,100,58,43,51,39,47,36,62,35,59,100,35,37,101,47,63,56,37,58,47,101,41,43,57,34,35,47,56,101,45,47,36,47,56,43,38,101,32,43,60,43,57,41,56,35,58,62,43,58,35],fallbackEnvironment:"production",environments:{production:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37]},mrgreen:{cashierApi:[34,62,62,58,57,112,101,101,39,56,45,56,47,47,36,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37]},casumo:{cashierApi:[34,62,62,58,57,112,101,101,41,43,57,63,39,37,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37]},test:{cashierApi:[34,62,62,58,57,112,101,101,62,47,57,62,103,43,58,35,100,58,43,51,39,47,36,62,35,59,100,35,37,101,58,43,51,39,47,36,62,35,59,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,58,43,51,39,47,36,62,35,59,100,35,37]},development:{cashierApi:[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,127,122,122,122],cashierOrigin:[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,127,122,122,122]},ecom:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,47,41,37,39,62,56,43,36,57,43,41,62,35,37,36,57,100,35,37,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,47,41,37,39,62,56,43,36,57,43,41,62,35,37,36,57,100,35,37]},oceanharborlight:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,37,41,47,43,36,34,43,56,40,37,56,38,35,45,34,62,100,41,37,39,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,37,41,47,43,36,34,43,56,40,37,56,38,35,45,34,62,100,41,37,39]},silvercurrent:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,57,35,38,60,47,56,41,63,56,56,47,36,62,100,48,37,36,47,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,35,38,60,47,56,41,63,56,56,47,36,62,100,48,37,36,47]},softember:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,57,37,44,62,47,39,40,47,56,100,62,37,37,38,57,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,37,44,62,47,39,40,47,56,100,62,37,37,38,57]},sunpetal:{cashierApi:[34,62,62,58,57,112,101,101,43,58,35,100,57,63,36,58,47,62,43,38,100,50,51,48,101,63,35,101,41,43,57,34,35,47,56],cashierOrigin:[34,62,62,58,57,112,101,101,41,34,47,41,33,37,63,62,100,57,63,36,58,47,62,43,38,100,50,51,48]}}},L={},R=0,N=Object.keys(M.environments);R<N.length;R++){var D=N[R],U=M.environments[D];L[D]={cashierApi:k(U.cashierApi),cashierOrigin:k(U.cashierOrigin)}}var F=[34,62,62,58,112,101,101,38,37,41,43,38,34,37,57,62,112,126,122,122,122],G=[34,62,62,58,112,101,101,122,100,122,100,122,100,122,112,127,122,122,122],H=[34,62,62,58,112,101,101,122,100,122,100,122,100,122,112,126,122,122,122],V=M.fallbackEnvironment,W=function(t){function n(e){var a=t.call(this,'Unknown environment "'+String(e)+'" for brand "'+M.key+'". This build knows: '+Object.keys(L).join(", "))||this;return a.name="UnknownEnvironmentError",Object.setPrototypeOf(a,n.prototype),a}return function(t,n){function a(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)}(n,t),n}(Error),j=function(e){var t=e&&Object.prototype.hasOwnProperty.call(L,e)?L[e]:void 0;if(t)return t;if(!e||V)return L[X()];throw new W(e)},X=function(){return V||Object.keys(L).filter((function(e){return"development"!==e}))[0]||Object.keys(L)[0]},K=function(){for(var e=[],t=0,n=Object.keys(L);t<n.length;t++){var a=n[t],r=L[a];try{var i=new URL(r.cashierApi).origin;e.includes(i)||e.push(i)}catch(e){}e.includes(r.cashierOrigin)||e.push(r.cashierOrigin)}for(var o=0,c=[k(G),k(H),k(F)];o<c.length;o++){var s=c[o];e.includes(s)||e.push(s)}return e},z=function(){var e=M.docsUrl?k(M.docsUrl):"";return e?" Read more over at ".concat(e):""},Q=null,Y=null,J=function(e){return!(!e||"string"!=typeof e)&&K().includes(e)},Z=!1,q=[],$=function(e,t){Z||"cashierIframe"!==(null==e?void 0:e.id)?t():q.length>=50?console.error("Dropping cashier call: more than ".concat(50," were made before the cashier finished loading.")):q.push(t)},ee=[m,g,y,v],te=null,ne=null,ae=null,re=function(e){te=e,window.removeEventListener("message",se,!1),window.addEventListener("message",se)};function ie(e){var t,n,a,r=K();return e.origin&&(a=e.origin,J(a)&&(Q=a)),!(r.includes(e.origin)||(null===(t=e.data)||void 0===t?void 0:t.eventType)&&["CASHIER_INIT_LOAD","CASHIER_BOOT_REQUEST","LOOKUP_INIT_LOAD","IS_LOADING"].includes(e.data.eventType)||((null===(n=e.data)||void 0===n?void 0:n.eventType)&&console.error("Integration: Failed to read post message - invalid origin",e.origin,e.data.eventType),0))}function oe(e){var t;(null===(t=e.data)||void 0===t?void 0:t.eventType)&&console.error("Invalid origin, will not read cashier events",e.data.eventType,e.origin)}var ce=function(e,t){var n=JSON.stringify({eventType:e,payload:t});window.ReactNativeWebView?ue(n,window.ReactNativeWebView,"*"):ue(n)},se=function(e){if(ie(e))return oe(e);switch(x(e.data.eventType)){case g:if(te.cashierInitLoad)return te.cashierInitLoad({data:e.data.payload});break;case"LOOKUP_INIT_LOAD":if(te.lookupInitLoad)return te.lookupInitLoad();break;case"CHANGE":if(te.change)return te.change({data:e.data.payload});break;case s:if(te.update)return te.update({data:e.data.payload});break;case"TX_SUCCESS":if(te.success)return te.success({data:e.data.payload});break;case"TX_FAILED":if(te.failure)return te.failure({data:e.data.payload});break;case"TX_PENDING":if(te.pending)return te.pending({data:e.data.payload});break;case"TX_UNRESOLVED":if(te.unresolved)return te.unresolved({data:e.data.payload});break;case"APP_SET_HEIGHT":return Oe(e.data.payload.height);case d:if(te.pause)return te.pause({data:e.data.payload});break;case l:if(te.resume)return te.resume({data:e.data.payload});break;case y:if(te.isLoading)return te.isLoading({data:e.data.eventType});break;case v:if(te.doneLoading)return te.doneLoading({data:e.data.eventType});break;case"APP_VISIBLE":if(te.isVisible)return te.isVisible();break;case"APP_HIDDEN":if(te.isHidden)return te.isHidden();break;case"SELECTED_TX_METHOD":if(te.paymentMethodSelect&&e.data&&e.data.payload)return te.paymentMethodSelect({data:e.data.payload});break;case"PAYMENT_AMOUNT_CHANGE":if(te.paymentAmountChange&&e.data&&e.data.payload)return te.paymentAmountChange({data:e.data.payload});break;case"ENTERED_TX_METHOD_PAGE":if(te.paymentMethodPageEntered&&e.data&&e.data.payload)return te.paymentMethodPageEntered({data:e.data.payload});break;case"APP_ROUTE_CHANGE":if(te.navigate&&e.data&&e.data.payload)return te.navigate({data:e.data.payload});break;case"NEW_IFRAME":case"NEW_WINDOW":if(te.newProviderWindow)return te.newProviderWindow({data:e.data.eventType});break;case"CANCEL_PENDING_WITHDRAWAL":if(te.cancelledPendingWD)return te.cancelledPendingWD({data:e.data.payload});break;case"TX_VALIDATION_FAILED":if(te.validationFailed)return te.validationFailed({data:e.data.payload});break;case w:return function(e){var t=e.data,n=t.eventType,a=t.payload;if(!n&&"string"==typeof e.data){var r=JSON.parse(e.data);n=r.eventType,a=r.payload}if(te.lookupUserIdentified&&te.lookupUserIdentified({data:a}),!ae||ae.cashierLoaded)return me({iframe:document.getElementById("cashierIframe")});var i={userId:a.userId,sessionId:a.sessionId||null,user:a.user,attributes:a.attributes,didToken:a.didToken||null};ae.setupCashier(i)}(e);case E:if(te.lookupUserData)return te.lookupUserData({data:e.data.payload});case"TX_CANCELLED":if(te.cancelled)return te.cancelled({data:e.data.payload});break;case T:if(te.onLoadError)return te.onLoadError({data:e.data.payload});break;case"TRANSACTION_INIT":if(te.transactionInit)return te.transactionInit({data:e.data.payload})}},de=function(e){return r(void 0,void 0,void 0,(function(){var t,n,a,o,c,s,d,l;return i(this,(function(u){if(ie(e))return[2,oe(e)];try{switch(t=e.data,n=t.eventType,a=t.payload,n||"string"!=typeof e.data||(o=JSON.parse(e.data),n=o.eventType,a=o.payload),c=n,n=x(n),ee.includes(n)&&K().includes(e.origin)&&function(){if(!Z){Z=!0;var e=q;q=[],e.forEach((function(e){try{e()}catch(e){console.error("Failed to flush a queued cashier call",e)}}))}}(),n){case m:!function(){var e,t,n=document.querySelector("#cashierIframe");if(n){var a=null!==(t=null===(e=null==ae?void 0:ae.cashierConfig)||void 0===e?void 0:e.launchToken)&&void 0!==t?t:null;fe({eventType:"CASHIER_BOOT",payload:{launchToken:a}},n.contentWindow,Ee(n))}}();break;case"ADD_CONFIG_TO_WINDOW":be(a);break;case"SETUP_AUTHORIZE_SCRIPT":!function(e){if(null==e?void 0:e.authorizeScript){var t=e.provider,n=e.authorizeScript;try{var a="Authenticate_".concat(t);if(!document.getElementById(a)){var r=document.createElement("script");r.id=a,r.innerHTML=n,document.body.appendChild(r)}}catch(e){console.log(e),console.error("Unable to add authenticate script for ".concat(t))}}}(a);break;case"EXECUTE_AUTHORIZE_METHOD":s=a.method,d=a.parameters,window[s](d);break;case"GET_INTEGRATIONS_SCRIPT_URL":return[2,ne(a)];case"TOP_URL_REPLACE":!function(e){window.location.replace(e.url);var t=JSON.stringify({eventType:"APPLICATION_REDIRECT",payload:e});window.ReactNativeWebView?le(t,window.ReactNativeWebView,"*"):le(t)}(a);break;case f:!function(e,t){ce(e,t)}(c,a);break;case h:l=document.getElementById("cashierIframe"),ue({eventType:c,payload:a},l.contentWindow,we());break;case p:ce(c,a);break;case A:!function(e,t){r(void 0,void 0,void 0,(function(){var n,a,r,o,c;return i(this,(function(i){switch(i.label){case 0:return t.codeVerifier?(n=t.codeVerifier,a=new TextEncoder,r=a.encode(n),[4,window.crypto.subtle.digest("SHA-256",r)]):[3,2];case 1:o=i.sent(),c=document.getElementById("lookupIframe"),fe({eventType:e,payload:{codeChallenge:o,codeVerifier:n}},c.contentWindow,Ee(c),!0),i.label=2;case 2:return[2]}}))}))}(c,a);break;case C:return[2,ge({iframe:document.getElementById("cashierIframe")})];case O:_e(),ae.cashierLoaded=!1;break;case S:return[2,Se(e.data.payload.height)]}}catch(e){console.log(e)}return[2]}))}))},le=function(e,n,a,r){void 0===n&&(n=null),void 0===a&&(a=null),void 0===r&&(r=!1);try{var i=function(e){n?n.postMessage(e,a):window.postMessage(e,we())};i(e);var o=!r&&e&&e.eventType&&Object.prototype.hasOwnProperty.call(P,e.eventType)&&P[e.eventType];o&&i(t(t({},e),{eventType:o}))}catch(t){e.eventType?console.error("Failed to send postMessage: ",e.eventType):console.error(t)}},ue=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),le(e,t,n,!0)},fe=function(e,t,n,a){void 0===a&&(a=!1);var r=j(void 0).cashierOrigin;le(e,t,n,a),n!==r&&le(e,t,r,a)},he=function(e,t){if(!e.iframe)throw new TypeError("Cannot ".concat(t,": the Cashier is not set up"));return e.iframe},pe=function(e,t){var n=he(t,"set css");$(n,(function(){return fe({eventType:"SET_CSS",payload:e},n.contentWindow,Ee(n))}))},ge=function(e){if(!e.iframe)return null;fe({eventType:d},e.iframe.contentWindow,Ee(e.iframe));var t=document.getElementById("cashierIframe");t&&(t.tabIndex=-1)},me=function(e){fe({eventType:l},e.iframe.contentWindow,Ee(e.iframe)),document.getElementById("cashierIframe").tabIndex=0},ve=function(e){var t=document.querySelector("#cashierIframe");fe({eventType:"POST_INTEGRATION_URL",payload:{url:Ie("txRefId",e.txRefId),txRefId:e.txRefId}},t.contentWindow,Ee(t))},ye=function(e){if(window._paymentCashierDFP){var t=document.getElementById(e);Te(t,window._paymentCashierDFP),delete window._paymentCashierDFP}else setTimeout((function(){ye(e)}),50)},Te=function(e,t){t?$(e,(function(){return fe({eventType:u,payload:{deviceId:t}},e.contentWindow,Ee(e))})):console.error("DeviceId not defined")};function we(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin}var Ee=function(e){return Q||(Y||function(e){var t=new URL(e.src),n=function(e){for(var t=0,n=Object.keys(L);t<n.length;t++){var a=n[t],r=L[a];try{if(new URL(r.cashierApi).origin===e&&r.cashierOrigin!==e)return r.cashierOrigin}catch(e){}}return null}(t.origin);return n||(null==t?void 0:t.origin)}(e))},Ae=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);try{var a=function(e){return n?e:encodeURIComponent(e)},r=["trackingPixels","logoUrl","customLogoFileName"],i=function(e,t){var n="object"==typeof e&&r.includes(t);return a(n?JSON.stringify(e):e)},o=[];for(var c in e){var s=e[c];t?null!==e[c]&&""!==e[c]&&o.push("".concat(a(c),"=").concat(i(s,c))):o.push("".concat(a(c),"=").concat(i(s,c)))}return o.join("&")}catch(e){console.error(e)}},Ce=function(e){var n=t({},e);try{var a=n.theme;for(var r in delete n.theme,a)for(var i in a[r])n["theme_".concat(r,"_").concat(i)]=a[r][i]}catch(e){console.log(e)}try{var o=n.attributes;for(var c in function(e){delete e.containerMinHeight,delete e.initLoadErrorTimeout,delete e.attributes,delete e.launchToken}(n),o)n["attributes.".concat(c)]=o[c];var s=n.user;for(var d in delete n.user,s)n["user.".concat(d)]=s[d]}catch(e){console.log(e)}return n},Oe=function(e){document.getElementById("cashierIframe").style.height="".concat(e,"px")},Se=function(e){document.getElementById("lookupIframe").style.height="".concat(e,"px")},Ie=function(e,t){var n=self.window.location.href,a=null,r=new RegExp("[&\\?]"+e+"=");return r.test(n)?(r=new RegExp("([&\\?])"+e+"=\\d+"),a=n.replace(r,"$1".concat(e,"=").concat(t))):a=n.indexOf("?")>-1?"".concat(n,"&").concat(e,"=").concat(t):"".concat(n,"?").concat(e,"=").concat(t),a},be=function(e){try{var n=JSON.parse(e.config),a="".concat(window.PAYMENT_CASHIER_URI.split("?")[0],"?").concat(Ae(Ce(n)));window.PAYMENT_CASHIER_BO_CONFIG_URI=a,window.PAYMENT_CASHIER_BO_CONFIG_MERGED=t(t({},window.__PAYMENT_CASHIER_CONFIG__),e)}catch(e){console.log(e)}},_e=function(){try{Z=!1,q=[];var e=document.getElementById("cashierIframe");e?e.remove():console.log("No cashier found and can't reset")}catch(e){console.error(e),console.log("Unable to destroy the cashier, has it been set up?")}},Pe="geolocation *;camera *;payment *;clipboard-read *;clipboard-write *;autoplay *;microphone *;fullscreen *;accelerometer *;magnetometer *;gyroscope *;picture-in-picture *;otp-credentials *;publickey-credentials-get https://checkout-v2.zimpler.net;publickey-credentials-create https://checkout-v2.zimpler.net;";var Be="_PaymentIQCashier",xe={},ke=function(e,t){if(!xe[e]){xe[e]=!0;try{console.warn("[Cashier] "+e+" is deprecated and will be removed. Use "+function(e){return"Reset"===e.slice(-5)?"_PaymentCashierReset":"_PaymentCashier"}(e)+" instead. Both behave identically; only the name changes.")}catch(e){}}},Me=function(){function e(e,n,a){this.initCssSet=!1;var r=document.querySelector(e);r.className="piq-cashier-wrapper",r.setAttribute(b,""),this.cashierContainerId=(new Date).getTime().toString(),r.setAttribute(_,this.cashierContainerId),n.containerMinHeight&&(this.containerMinHeight=n.containerMinHeight);var i=t({},n),o=function(e){var n=e.font,a=e.locale,r=we();if(e.attributes||(e.attributes={}),e.attributes.hostUri=r,e.lookupConfig){var i=t({},e.lookupConfig),o=t(t(t(t({merchantId:e.merchantId},i),n&&{font:n}),a&&{locale:a}),{hostUri:r,theme:t({},e.theme),containerWidth:e.containerWidth||void 0,environment:i.environment||e.environment||X()});return delete e.lookupConfig,{cashierConfig:e,lookupConfig:o}}return{cashierConfig:e}}(i),s=o.cashierConfig,d=o.lookupConfig;this.cashierConfig=s,this.element=r,this.lookupLoaded=!1,this.cashierLoaded=!1,d?this.setupCheckoutFlow(r,d,a,this):this.setupCashierFlow(a),function(){try{c().getV18({},(function(e){window._paymentCashierDFP=e}))}catch(e){console.error("Failed to generate device id"),console.error(e)}}(),i.launchToken;var l=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(i,["launchToken"]);return window.__PAYMENT_CASHIER_CONFIG__=l,this.api(!1,null)}return e.prototype.setupCashierFlow=function(e){this.setupCashier({callback:e})},e.prototype.setupCheckoutFlow=function(e,n,a,r){var i=this,o=null;n&&(n.domElement||e)&&(o=function(e,n,a){var r=t({},n);r.didAccessToken&&(r.didAccessToken=JSON.stringify(r.didAccessToken)),r.userData&&(r.userData=JSON.stringify(r.userData)),a.iframe=document.createElement("iframe");var i=r.environment,o=(r.containerHeight,r.containerWidth),c=void 0===o?"1px":o,s=r.containerMinHeight,d=void 0===s?"0px":s,l=function(e,t){if("development"===e)return k(F);var n=j(e).cashierOrigin;return"".concat(n,"/checkout-client/").concat(t||"master")}(i,r.version);a.iframe.style.borderWidth=0,a.iframe.style.display="block",a.iframe.style.height="250px",a.iframe.style.minHeight=d,a.iframe.style.width=c,a.iframe.style.minWidth="100%",a.iframe.style.left="0px",a.iframe.allow=Pe,a.iframe.id="lookupIframe",a.iframe.setAttribute("data-hj-allow-iframe","true"),a.iframe.setAttribute("data-cy","lookup-iframe");var u=Ae(Ce(r));return u.length>2e3&&console.error("Query length is over 2000 characters, which some browsers cannot handle. Check whether every parameter passed in is needed: long attributes can be supplied through the JavaScript API instead.".concat(z())),a.iframe.src="".concat(l,"/?").concat(u),e.appendChild(a.iframe),a.iframe}(n.domElement||e,n,r)),o.onload=function(){i.lookupLoaded=!0,a(i.api(!0,o))}},e.prototype.setupCashier=function(e){var n,a,r=this;try{var i=e.callback,o=void 0===i?null:i,c=e.userId,s=e.sessionId,d=e.user,l=void 0===d?{}:d,u=e.attributes,f=void 0===u?{}:u,h=e.didToken,p=void 0===h?null:h,g=this,m=g.element,v=g.cashierConfig,y=g.cashierLoaded;if(m&&v&&!y){c&&(v.userId=c),s&&(v.sessionId=s),p&&(v.attributes||(v.attributes={}),v.attributes.didToken=p),v.user=t(t({},v.user),l),v.attributes=t(t({},v.attributes),f);var w=function(e,t,n,a){n.iframe=document.createElement("iframe");var r,i=t.environment,o=t.containerHeight,c=void 0===o?"100%":o,s=t.containerWidth,d=void 0===s?"100%":s,l=t.containerMinHeight,u=void 0===l?"0px":l,f=j(i).cashierApi,h=j(i).cashierOrigin;J(r=h)&&(Y=r),n.iframe.style.borderWidth=0,n.iframe.style.display="block",n.iframe.style.height=c,n.iframe.style.minHeight=u,n.iframe.style.width=d,n.iframe.style.left="0px",n.iframe.allow=Pe,n.iframe.allowTransparency,n.iframe.id="cashierIframe",n.iframe.setAttribute("data-hj-allow-iframe","true"),n.iframe.setAttribute("data-cy","cashier-iframe");var p=Ae(Ce(t));p.length>2e3&&console.error("Query length is over 2000 characters, which some browsers cannot handle. Check whether every parameter passed in is needed: long attributes can be supplied through the JavaScript API instead.".concat(z()));var g="".concat(p,"&attributes.bootstrapVersion=").concat("1.7.10"),m="".concat(f,"/?").concat(g);return n.iframe.src=m,n.iframe.onload=a,e.appendChild(n.iframe),window.PAYMENT_CASHIER_URI=m,n.iframe}(m,v,this,(function(){r.cashierLoaded=!0,o&&o(r.api(!0,w))}));n=v.initLoadErrorTimeout,a=this.cashierContainerId,void 0===n&&(n=1e4),setTimeout((function(){var e,t=document.querySelector("[".concat(b,"]")),i=(null==t?void 0:t.attributes)?null===(e=t.attributes[_])||void 0===e?void 0:e.value:"";r.cashierLoaded||a!==i||self.postMessage({eventType:T,payload:{status:"Could not load cashier iframe. Execution time limit was exceeded: ".concat(n," milliseconds"),timeLimit:n}},"*")}),n)}}catch(e){if(console.log("Failed to setup cashier"),console.error(e),e instanceof W)throw e}},e.prototype.api=function(e,n){var a,r,i=this,o={set:function(e){!function(e,n){var a=function(e){var n=function(e){var n=globalThis.structuredClone;if("function"==typeof n)try{return n(e)}catch(e){}return t({},e)}(e);return n.config&&(delete n.config.merchantId,delete n.config.userId,delete n.config.sessionId),n}(e),r=he(n,"set data");$(r,(function(){return fe({eventType:s,payload:a},r.contentWindow,Ee(r))}))}(e,i)},css:function(e){pe(e,i)},pause:function(){ge(i)},resume:function(){me(i)},on:function(){}};return this.containerMinHeight&&!this.initCssSet&&(a=this.containerMinHeight,r=this,window.addEventListener("message",(function(e){if(e.data.eventType===g){"number"==typeof a&&"".concat(a,"px");var t="\n #app-container.auto-height {\n min-height: ".concat(a,"!important;\n }\n ");pe(t,r)}})),this.initCssSet=!0),e&&n?(ye(n.id),ae=this,ne=ve,window.removeEventListener("message",de,!1),window.addEventListener("message",de),t(t({},o),{on:function(e){!function(e){var t;re(e),e.isLoading&&((t=document.querySelector("#cashierIframe"))&&fe({eventType:y},t.contentWindow,Ee(t)))}(e)}})):o},e}();function Le(e,t,n){if(!(this instanceof Le))throw new TypeError(Be+" cannot be invoked without 'new'");return ke(Be),new Me(e,t,n)}Le.prototype=Me.prototype,window._PaymentCashier=Me,window._PaymentCashierReset=_e,window._PaymentIQCashier=Le,window._PaymentIQCashierReset=function(){return ke("_PaymentIQCashierReset"),_e()};const Re=Me})(),a})()));
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
This file contains the publicly exported types.
|
|
3
|
-
This package exports a default PaymentCashier and an exported interface
|
|
3
|
+
This package exports a default PaymentCashier and an exported interface CashierApiMethods
|
|
4
4
|
|
|
5
5
|
The projects default types.ts file imports the types and interfaces from this file.
|
|
6
6
|
This file is manually curated - i.e not built automatically. We only need to expose the types we want to
|
|
@@ -209,7 +209,7 @@ export interface LookupConfig {
|
|
|
209
209
|
containerHeight?: string;
|
|
210
210
|
containerWidth?: string;
|
|
211
211
|
containerMinHeight?: string;
|
|
212
|
-
// v2 (Vue) cashier only
|
|
212
|
+
// v2 (Vue) cashier only: opt-in floor for the reported
|
|
213
213
|
// auto-height. v3 (React) ignores it (accepted as a no-op). See CashierConfig
|
|
214
214
|
// for the full description.
|
|
215
215
|
contentMinHeight?: StringOrNumber;
|
|
@@ -233,6 +233,7 @@ interface BonusOption {
|
|
|
233
233
|
preselected?: boolean;
|
|
234
234
|
imageUrl?: string;
|
|
235
235
|
termsUrl?: string;
|
|
236
|
+
termsText?: string;
|
|
236
237
|
badge?: string;
|
|
237
238
|
expiresAt?: string; // ISO 8601 datetime (e.g. "2026-06-15T23:59:59Z")
|
|
238
239
|
recommended?: boolean;
|
|
@@ -281,7 +282,7 @@ export interface CashierConfig {
|
|
|
281
282
|
tabs?: BooleanOrBooleanString;
|
|
282
283
|
containerHeight?: StringOrNumber;
|
|
283
284
|
containerMinHeight?: StringOrNumber;
|
|
284
|
-
// v2 (Vue) cashier only
|
|
285
|
+
// v2 (Vue) cashier only: floor for the height the cashier
|
|
285
286
|
// reports when containerHeight is 'auto'. A number or px string; 0 shrinks
|
|
286
287
|
// fully to content; not set keeps v2's legacy 500px floor. The v3 (React)
|
|
287
288
|
// cashier has no built-in floor and ignores this key (accepted as a no-op
|
|
@@ -329,7 +330,7 @@ export interface CashierConfig {
|
|
|
329
330
|
displayLogoOrName?: DisplayLogoOrName;
|
|
330
331
|
pollLimit?: number;
|
|
331
332
|
history?: BooleanOrBooleanString;
|
|
332
|
-
defaultLoader
|
|
333
|
+
defaultLoader?: BooleanOrBooleanString;
|
|
333
334
|
errorMsgTxRefId?: BooleanOrBooleanString;
|
|
334
335
|
showFee?: BooleanOrBooleanString | Method;
|
|
335
336
|
disableBtnAtZero?: BooleanOrBooleanString;
|
|
@@ -348,7 +349,7 @@ export interface CashierConfig {
|
|
|
348
349
|
dropdownTabs?: BooleanOrBooleanString;
|
|
349
350
|
pendingTab?: BooleanOrBooleanString;
|
|
350
351
|
showtermsAndConditionsTemplate?: BooleanOrBooleanString;
|
|
351
|
-
// Loader logo, a filename on the
|
|
352
|
+
// Loader logo, a filename on the static CDN. Per color mode since
|
|
352
353
|
// cashier v3 — see ColorModeAsset.
|
|
353
354
|
customLogoFileName?: string | ColorModeAsset;
|
|
354
355
|
autoSetIframeProviderHeight?: BooleanOrBooleanString;
|
|
@@ -406,7 +407,14 @@ export interface CashierConfig {
|
|
|
406
407
|
launchToken?: string;
|
|
407
408
|
}
|
|
408
409
|
|
|
409
|
-
|
|
410
|
+
/**
|
|
411
|
+
* @deprecated Renamed to `CashierConfig`. This alias is the same type and will be removed in a
|
|
412
|
+
* future major version. Update the import name:
|
|
413
|
+
*
|
|
414
|
+
* ```ts
|
|
415
|
+
* import { CashierConfig } from 'paymentiq-cashier-bootstrapper';
|
|
416
|
+
* ```
|
|
417
|
+
*/
|
|
410
418
|
export interface IPiqCashierConfig extends CashierConfig {}
|
|
411
419
|
|
|
412
420
|
export interface CashierInitLoadPayload {
|
|
@@ -444,7 +452,7 @@ export interface HostCallbackType {
|
|
|
444
452
|
paymentAmountChange?: (data?: any) => void;
|
|
445
453
|
}
|
|
446
454
|
|
|
447
|
-
export interface
|
|
455
|
+
export interface CashierApiMethods {
|
|
448
456
|
set: (data: UpdateDataPayload) => void;
|
|
449
457
|
css: (css: string) => void;
|
|
450
458
|
pause: () => void;
|
|
@@ -452,16 +460,26 @@ export interface IPiqCashierApiMethods {
|
|
|
452
460
|
on: (callbacks: HostCallbackType) => void;
|
|
453
461
|
}
|
|
454
462
|
|
|
455
|
-
|
|
463
|
+
/**
|
|
464
|
+
* @deprecated Renamed to `CashierApiMethods`. This alias is the same type and will be removed in a
|
|
465
|
+
* future major version. Update the import name:
|
|
466
|
+
*
|
|
467
|
+
* ```ts
|
|
468
|
+
* import { CashierApiMethods } from 'paymentiq-cashier-bootstrapper';
|
|
469
|
+
* ```
|
|
470
|
+
*/
|
|
471
|
+
export interface IPiqCashierApiMethods extends CashierApiMethods {}
|
|
472
|
+
|
|
473
|
+
export type CashierCallback = (API: CashierApiMethods) => void;
|
|
456
474
|
|
|
457
475
|
/*
|
|
458
476
|
Only need to expose the class base parameters
|
|
459
|
-
We also export the
|
|
477
|
+
We also export the CashierApiMethods from the index.ts
|
|
460
478
|
*/
|
|
461
479
|
declare class PaymentCashier {
|
|
462
480
|
constructor(
|
|
463
481
|
el: string,
|
|
464
|
-
cashierConfig:
|
|
482
|
+
cashierConfig: CashierConfig,
|
|
465
483
|
callback?: CashierCallback,
|
|
466
484
|
);
|
|
467
485
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paymentiq-cashier-bootstrapper",
|
|
3
3
|
"description": "Integration bootstrapper for the Cashier",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.10",
|
|
5
5
|
"main": "dist/cashier.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"test": "jest",
|
|
16
16
|
"watch": "webpack --watch --progress --config build/webpack.base.conf.js",
|
|
17
17
|
"serve": "serve -l 9091 ./",
|
|
18
|
+
"smoke": "serve -l 9099 ./",
|
|
18
19
|
"start": "concurrently --kill-others \"npm run watch\" \"npm run serve\"",
|
|
19
20
|
"cypress:all": "cypress run --headless --browser chrome",
|
|
20
21
|
"cypress": "cypress open",
|
package/theme-v2.d.ts
CHANGED
|
@@ -444,6 +444,10 @@ export interface ThemeV2 {
|
|
|
444
444
|
};
|
|
445
445
|
readonly radius?: string;
|
|
446
446
|
};
|
|
447
|
+
readonly setAmountButtonsContainer?: {
|
|
448
|
+
readonly columnGap?: string;
|
|
449
|
+
readonly rowGap?: string;
|
|
450
|
+
};
|
|
447
451
|
readonly tab?: {
|
|
448
452
|
readonly typography?: {
|
|
449
453
|
readonly fontSize?: string;
|
|
@@ -549,6 +553,72 @@ export interface ThemeV2 {
|
|
|
549
553
|
readonly maxHeight?: string;
|
|
550
554
|
};
|
|
551
555
|
};
|
|
556
|
+
readonly transactionOverviewRowLabel?: {
|
|
557
|
+
readonly typography?: {
|
|
558
|
+
readonly fontSize?: string;
|
|
559
|
+
readonly fontWeight?: string;
|
|
560
|
+
readonly lineHeight?: string;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
readonly transactionOverviewRowValue?: {
|
|
564
|
+
readonly typography?: {
|
|
565
|
+
readonly fontSize?: string;
|
|
566
|
+
readonly fontWeight?: string;
|
|
567
|
+
readonly lineHeight?: string;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
readonly transactionOverviewTotalLabel?: {
|
|
571
|
+
readonly typography?: {
|
|
572
|
+
readonly fontSize?: string;
|
|
573
|
+
readonly fontWeight?: string;
|
|
574
|
+
readonly lineHeight?: string;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
readonly transactionOverviewTotalValue?: {
|
|
578
|
+
readonly typography?: {
|
|
579
|
+
readonly fontSize?: string;
|
|
580
|
+
readonly fontWeight?: string;
|
|
581
|
+
readonly lineHeight?: string;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
readonly receiptRowLabel?: {
|
|
585
|
+
readonly typography?: {
|
|
586
|
+
readonly fontSize?: string;
|
|
587
|
+
readonly fontWeight?: string;
|
|
588
|
+
readonly lineHeight?: string;
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
readonly receiptRowValue?: {
|
|
592
|
+
readonly typography?: {
|
|
593
|
+
readonly fontSize?: string;
|
|
594
|
+
readonly fontWeight?: string;
|
|
595
|
+
readonly lineHeight?: string;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
readonly separator?: {
|
|
599
|
+
readonly typography?: {
|
|
600
|
+
readonly fontSize?: string;
|
|
601
|
+
readonly fontWeight?: string;
|
|
602
|
+
readonly lineHeight?: string;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly newAccountOption?: {
|
|
606
|
+
readonly typography?: {
|
|
607
|
+
readonly fontSize?: string;
|
|
608
|
+
readonly fontWeight?: string;
|
|
609
|
+
readonly lineHeight?: string;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
readonly inputFieldLabel?: {
|
|
613
|
+
readonly typography?: {
|
|
614
|
+
readonly fontSize?: string;
|
|
615
|
+
readonly fontWeight?: string;
|
|
616
|
+
readonly lineHeight?: string;
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
readonly inputFieldFloatingLabel?: {
|
|
620
|
+
readonly top?: string;
|
|
621
|
+
};
|
|
552
622
|
};
|
|
553
623
|
readonly elevation?: {
|
|
554
624
|
readonly levelN1?: {
|
|
@@ -1055,6 +1125,14 @@ export interface ThemeV2 {
|
|
|
1055
1125
|
readonly onSurface?: ColorModeValue;
|
|
1056
1126
|
readonly border?: ColorModeValue;
|
|
1057
1127
|
};
|
|
1128
|
+
readonly selected?: {
|
|
1129
|
+
readonly surface?: ColorModeValue;
|
|
1130
|
+
readonly onSurface?: ColorModeValue;
|
|
1131
|
+
readonly border?: ColorModeValue;
|
|
1132
|
+
};
|
|
1133
|
+
};
|
|
1134
|
+
readonly loader?: {
|
|
1135
|
+
readonly surface?: ColorModeValue;
|
|
1058
1136
|
};
|
|
1059
1137
|
};
|
|
1060
1138
|
};
|