({943:function(){var e=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function c(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}l((r=r.apply(e,t||[])).next())}))},t=this&&this.__generator||function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};e(this,void 0,void 0,(function(){function n(){return e(this,void 0,void 0,(function(){var n,r=this;return t(this,(function(a){return n=new i,window.payex=window.payex||new Object,window.payex.getAcceptedWallets=function(){return e(r,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,n.getAcceptedWallets()];case 1:return[2,e.sent()]}}))}))},[2]}))}))}var r,i;return t(this,(function(a){switch(a.label){case 0:return function(e){e.PAYAIR_APPLE_PAY_SDK="ApplePay",e.PAYAIR_GOOGLE_PAY_SDK="GooglePay",e.PAYAIR_SRCI_SDK="ClickToPay"}(r||(r={})),i=function(){function n(){var e=this;this.isWalletSdkLoaded=!1;try{this.xPaySdkUrl=new URL("https://ecom.payex.com/checkout/core/js/e-com-wrapper-sdk.d526cf5d.js"),this.integrationUrl=new URL("https://ecom.payex.com/checkout/core/Integration")}catch(e){return this.xPaySdkUrl=null,void(this.integrationUrl=null)}var t=document.createElement("script");t.id="px-xpay-script",t.type="text/javascript",t.src=""+this.xPaySdkUrl.href,t.addEventListener("load",(function(){e.isWalletSdkLoaded=!0}),!1),document.querySelector("script[src='"+this.integrationUrl+"' i]").insertAdjacentElement("afterend",t)}return Object.defineProperty(n.prototype,"ecomWrapperSdk",{get:function(){var e;return null===(e=window.payairEcomWrapperSdk)||void 0===e?void 0:e.ecomWrapperSdk},enumerable:!1,configurable:!0}),n.prototype.getAcceptedWallets=function(){return e(this,void 0,void 0,(function(){var e,n,i,a,o,c,l,u;return t(this,(function(t){switch(t.label){case 0:if(e=new Array,!this.isWalletSdkLoaded)return[2,e];n=new Array,i={ecomWalletSdkEnum:"PAYAIR_APPLE_PAY_SDK"},n.push(i),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.ecomWrapperSdk.getReadyToPayWallets(n)];case 2:for(a=t.sent(),o=0,c=a;o<c.length;o++)l=c[o],(u=r[l])?e.push(u):console.warn("Unknown Wallet SDK (PspAcceptedWalletTypes) encountered: "+l);return[3,4];case 3:return t.sent(),[3,4];case 4:return[2,e]}}))}))},n}(),[4,n()];case 1:return a.sent(),[2]}}))}))}})[943]();