@pixelpay/sdk-core 2.4.11-beta.0 → 2.4.11

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/CHANGELOG.md CHANGED
@@ -5,9 +5,9 @@ El formato se basa en [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  y este proyecto se adhiere a [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
  Tipos de cambios: `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`.
7
7
 
8
- ## [v2.4.11] - unreleased
9
- ## Added
10
- - Funciones y variables para identificar transacciones con Tap2Pay.
8
+ ## [v2.4.11] - 2026-03-05
9
+ ### Added
10
+ - Se agregó campo `click_to_pay` a payload de 3D Secure
11
11
 
12
12
  ## [v2.4.10] - 2026-02-09
13
13
  ### Fixed
@@ -1,4 +1,4 @@
1
- (()=>{var e={634(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});const n=t(1396);a.default={objectToJson(e){const a=Object.assign({},e);for(var t in a)null!==a[t]&&void 0!==a[t]||delete a[t];return JSON.stringify(a)},hash(e,a){switch(e){case"MD5":return(0,n.MD5)(a).toString();case"SHA-512":return(0,n.SHA512)(a).toString();default:return""}},trimValue:e=>e?e.trim():null,cleanString:e=>e?e.replace(/\s/g,""):null,parseAmount:e=>"number"==typeof e&&e>0?String(e):null,checkIsBrowser:()=>"undefined"!=typeof window&&void 0!==window.document,serialize(e){const a=Object.getOwnPropertyNames(null!=e?e:{});return JSON.parse(JSON.stringify(e,a))},safeParse(e){if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return null}},addScriptToWebsite:e=>new Promise((a,t)=>{const i=(0,n.MD5)(e).toString(),r=document.createElement("script");document.querySelector(`script[id="${i}"]`)?a(!0):(r.id=i,r.src=e,r.type="text/javascript",r.onload=a,r.onerror=t,document.body.appendChild(r))}),addStylesById(e,a){if(document.getElementById(`styles-${e}`))return;const t=document.createElement("style");t.id=`styles-${e}`,t.innerHTML=a,document.head.appendChild(t)},addSecureForm(e,a){const t=document.createElement("iframe");t.id="cardinal_collection_iframe",t.name="collectionIframe",t.height="10",t.width="10",t.style.display="none",document.body.appendChild(t);const n=document.createElement("form");n.id="cardinal_collection_form",n.method="POST",n.target="collectionIframe",n.action=a;const i=document.createElement("input");return i.type="hidden",i.name="JWT",i.value=e,n.appendChild(i),document.body.appendChild(n),n},removeElementById(e){const a=document.getElementById(e);a&&a.remove()},convertWindowSizeToDimensions:e=>({"01":{width:"250",height:"400"},"02":{width:"390",height:"400"},"03":{width:"500",height:"600"},"04":{width:"600",height:"400"},"05":{width:"100%",height:"100%"}}[e||"02"]||{width:"390",height:"400"})}},2823(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(1333));a.default=class{constructor(){this.env=null,this.lang=null,this.from=null,this.sdk_version=null,this.lang=Intl.DateTimeFormat().resolvedOptions().locale,this.from="sdk-javascript",this.sdk_version=r.default,"es"!=this.lang&&"en"!=this.lang&&(this.lang="es")}toJson(){return i.default.objectToJson(this)}}},2624(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634));a.default=class{constructor(){this.action=null,this.success=!1,this.message=null,this.data=void 0,this.errors=void 0}setStatus(e){this.status=e}getStatus(){return this.status}inputHasError(e){return!!this.errors&&this.errors.hasOwnProperty(e)}getData(e){return this.data&&this.data.hasOwnProperty(e)&&this.data[e]||null}toJson(){return i.default.objectToJson(this)}}},4013(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(6425)),r=n(t(3292)),o=n(t(2624)),s=n(t(1935)),l=n(t(4575)),u=n(t(5037)),c=n(t(7071)),d=n(t(2046)),h=n(t(4756)),p=n(t(7867)),f=n(t(2701)),S=n(t(3596)),m=n(t(9250)),g=n(t(8618));a.default=class{constructor(e){this.settings=e}buildRequest(e,a){if(!this.settings.auth_key||!this.settings.auth_hash)throw new r.default("The merchant credentials are not definied (key/hash).");null!=this.settings.environment&&(a.env=this.settings.environment),null!=this.settings.lang&&(a.lang=this.settings.lang),null!=this.settings.sdk&&(a.from=this.settings.sdk),null!=this.settings.sdk_version&&(a.sdk_version=this.settings.sdk_version);const t={Accept:"application/json","Content-Type":"application/json","x-auth-key":this.settings.auth_key,"x-auth-hash":this.settings.auth_hash};if(this.settings.auth_user&&(t["x-auth-user"]=this.settings.auth_user),this.settings.headers)for(const e in this.settings.headers)t[e]=this.settings.headers[e];return i.default.create({baseURL:this.settings.endpoint,timeout:6e4,headers:t,validateStatus:()=>!0})}parseResponse(e,a){let t=new o.default;switch(a){case 200:t=new m.default;break;case 202:t=new p.default;break;case 400:t=new s.default;break;case 401:case 403:t=new d.default;break;case 402:t=new f.default;break;case 404:case 405:case 406:t=new h.default;break;case 408:t=new g.default;break;case 412:case 418:t=new S.default;break;case 422:t=new u.default;break;case 500:t=new l.default;break;default:a>500&&(t=new c.default)}return t.status=a,t.action=(null==e?void 0:e.action)||null,t.success=(null==e?void 0:e.success)||!1,t.message=(null==e?void 0:e.message)||null,t.data=(null==e?void 0:e.data)||null,t.errors=(null==e?void 0:e.errors)||null,t}exceptionResponse(e){const a=new l.default;return a.status=520,a.success=!1,a.message=e.message,a}getRoute(e){return this.settings.endpoint+"/"+e}async post(e,a){try{const t=await this.buildRequest(e,a).post(e,JSON.parse(a.toJson()));return this.parseResponse(t.data,t.status)}catch(e){return this.exceptionResponse(e)}}async put(e,a){try{const t=await this.buildRequest(e,a).put(e,JSON.parse(a.toJson()));return this.parseResponse(t.data,t.status)}catch(e){return this.exceptionResponse(e)}}async delete(e,a){try{const t=await this.buildRequest(e,a).delete(e,{params:JSON.parse(a.toJson())});return this.parseResponse(t.data,t.status)}catch(e){return this.exceptionResponse(e)}}async get(e,a){try{const t=await this.buildRequest(e,a).get(e,{params:JSON.parse(a.toJson())});return this.parseResponse(t.data,t.status)}catch(e){return this.exceptionResponse(e)}}}},8282(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(9250));class r{constructor(){this.status=void 0,this.mask=void 0,this.network=void 0,this.type=void 0,this.bin=void 0,this.last=void 0,this.hash=void 0,this.address=void 0,this.country=void 0,this.state=void 0,this.city=void 0,this.zip=void 0,this.email=void 0,this.phone=void 0}static validateResponse(e){return e instanceof i.default}static fromResponse(e){const a=new r;return Object.getOwnPropertyNames(e.data).map(t=>{t in a&&(a[t]=e.data[t])}),a}}a.default=r},4940(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(9250)),r=n(t(2701)),o=n(t(8618));class s{constructor(){this.transaction_type=void 0,this.transaction_redeemed_points=void 0,this.transaction_approved_amount=void 0,this.transaction_amount=void 0,this.transaction_auth=void 0,this.transaction_terminal=void 0,this.transaction_merchant=void 0,this.response_cvn=void 0,this.response_avs=void 0,this.response_cavv=void 0,this.transaction_id=void 0,this.transaction_reference=void 0,this.transaction_time=void 0,this.transaction_date=void 0,this.response_approved=void 0,this.response_incomplete=void 0,this.response_code=void 0,this.response_time=void 0,this.response_reason=void 0,this.installment_type=void 0,this.installment_months=void 0,this.payment_uuid=void 0,this.payment_hash=void 0}static validateResponse(e){return e instanceof i.default||e instanceof r.default||e instanceof o.default}static fromResponse(e){const a=new s;return Object.getOwnPropertyNames(e.data).map(t=>{t in a&&(a[t]=e.data[t])}),a}}a.default=s},3292(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t extends Error{}a.default=t},1742(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t extends Error{}a.default=t},2350(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t extends Error{}a.default=t},3909(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.Services=a.Responses=a.Resources=a.Requests=a.Models=a.Exceptions=a.Entities=void 0;const i=n(t(8282)),r=n(t(4940)),o=n(t(3292)),s=n(t(1742)),l=n(t(2423)),u=n(t(8888)),c=n(t(8113)),d=n(t(7424)),h=n(t(9411)),p=n(t(6402)),f=n(t(388)),S=n(t(7473)),m=n(t(2210)),g=n(t(4282)),y=n(t(3331)),M=n(t(235)),A=n(t(3514)),B=n(t(1299)),_=n(t(1935)),T=n(t(4575)),v=n(t(5037)),C=n(t(7071)),b=n(t(2046)),N=n(t(4756)),L=n(t(7867)),w=n(t(2701)),R=n(t(3596)),E=n(t(9250)),I=n(t(8618)),k=n(t(4787)),P=n(t(6266));a.Entities={CardResult:i.default,TransactionResult:r.default},a.Exceptions={InvalidCredentialsException:o.default,InvalidTransactionTypeException:s.default},a.Models={Billing:l.default,Card:u.default,Item:c.default,Order:d.default,Settings:h.default},a.Requests={AuthTransaction:p.default,CaptureTransaction:f.default,SaleTransaction:S.default,VoidTransaction:m.default,StatusTransaction:g.default,CardTokenization:y.default,AuthTokenization:M.default},a.Resources={Environment:A.default,Locations:B.default},a.Responses={ErrorResponse:_.default,FailureResponse:T.default,InputErrorResponse:v.default,NetworkFailureResponse:C.default,NoAccessResponse:b.default,NotFoundResponse:N.default,PayloadResponse:L.default,PaymentDeclinedResponse:w.default,PreconditionalResponse:R.default,SuccessResponse:E.default,TimeoutResponse:I.default},a.Services={Tokenization:k.default,Transaction:P.default}},1574(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(235)),o=n(t(4341)),s=n(t(5634)),l=n(t(3514)),u=n(t(4575)),c=n(t(1020)),d=n(t(2711)),h=n(t(1850));class p{constructor(e,a){this.direct_api=!1,this.settings=e,this.transaction=a,this.service=new c.default(this.settings)}static clearAllEvents(){i.default.checkIsBrowser()&&(d.default.hide(),void 0!==window.Cardinal&&(window.Cardinal.off("payments.setupComplete"),window.Cardinal.off("payments.validated"),window.Cardinal.onSetupCompleteBusy=!1,window.Cardinal.onValidatedBusy=!1))}async init(e,a){if(a){this.direct_api=!0,this.collection_url=a;const t=i.default.addSecureForm(e,a);return await this.startCardinalDirectApiTransaction(t).finally(()=>{this.listen_direct_message&&window.removeEventListener("message",this.listen_direct_message),i.default.removeElementById("step-up-form"),i.default.removeElementById("cardinal_collection_iframe"),i.default.removeElementById("cardinal_collection_form"),h.default.hide(),d.default.hide()})}const t=this.settings.environment===l.default.SANDBOX||this.settings.environment===l.default.STAGING,n=t?"stag":"";return await i.default.addScriptToWebsite(`https://songbird${n}.cardinalcommerce.com/edge/v1/songbird.js`),window.Cardinal.configure({payment:{framework:"inline"},logging:{level:t?"on":"off"}}),window.Cardinal.onSetupCompleteBusy=!1,window.Cardinal.onValidatedBusy=!1,await this.startCardinalTransaction(e,this)}startCardinalTransaction(e,a){return new Promise((t,n)=>{try{window.Cardinal.on("payments.setupComplete",async e=>{var n;if(window.Cardinal.onSetupCompleteBusy)return console.warn('Cardinal event "payments.setupComplete" is currently busy.');if(window.Cardinal.onSetupCompleteBusy=!0,void 0===e.sessionId||void 0!==e.sessionId&&(!e.sessionId||""==e.sessionId))throw new Error("Cardinal initial setup error.");const i=new s.default;i.fromPaymentTransaction(a.transaction),i.setRequiredEMVFields(),i.reference=e.sessionId;const r=await a.service.authenticationLookup(i);a.identifier=null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.identifier,a.validationLookupResponse(r,t),window.Cardinal.onSetupCompleteBusy=!1}),window.Cardinal.on("payments.validated",async(e,n)=>{if("ERROR"!==(null==e?void 0:e.ActionCode)&&window.Cardinal.onValidatedBusy)return console.warn('Cardinal event "payments.validated" is currently busy.');if(window.Cardinal.onValidatedBusy=!0,void 0!==n&&n&&""!=n){const e=new o.default;e.payload=n,e.identifier=a.identifier,e.card_token=a.transaction.card_token,e.authenticate_token=a.transaction instanceof r.default;const i=await a.service.authenticationContinue(e);if(e.authenticate_token)return p.clearAllEvents(),t(i);const s=await a.service.retryTransaction(a.transaction);p.clearAllEvents(),t(s)}else if("NOACTION"==e.ActionCode){const e=await a.service.retryTransaction(a.transaction);p.clearAllEvents(),t(e)}else{const a=new u.default;a.setStatus(520),a.message=`Cardinal validation failed. ${e.ErrorDescription} (${e.ErrorNumber})`,a.data={},p.clearAllEvents(),t(a)}window.Cardinal.onValidatedBusy=!1}),window.Cardinal.on("ui.close",()=>{h.default.hide()}),window.Cardinal.on("ui.inline.setup",(e,a,t,n)=>{try{let n;if(void 0===e||void 0===a)throw new Error("Unable to process request due to invalid arguments");if("CCA"!==a.paymentType)throw new Error("Unsupported inline payment type found ["+a.paymentType+"]");switch(a.data.mode){case"static":h.default.show();let e=document.querySelector(".pixelpay-modal");document.querySelector("[without-sdk-modal]")&&(e=document.querySelector("[without-sdk-modal]")),n=e.querySelector(".pixelpay-modal-container")||e,e.setAttribute("data-size",a.data.challengeWindowSizeId);break;case"suppress":h.default.hide(),n=document.querySelector(".pixelpay-modal-container");break;default:throw new Error("Unsupported inline mode found ["+a.data.mode+"]")}n.innerHTML=e,t()}catch(e){n(e)}}),window.Cardinal.setup("init",{jwt:e})}catch(e){p.clearAllEvents(),n(e)}})}startCardinalDirectApiTransaction(e){return new Promise((a,t)=>{this.direct_api_resolve=a,this.direct_api_reject=t,this.listen_direct_message=async e=>{var a;try{if((null==e?void 0:e.origin)===this.settings.endpoint&&"pixelpay_continue"===(null===(a=e.data)||void 0===a?void 0:a.name))return await this.handleDirectApiContinue(e);if(e.origin!==new URL(this.collection_url).origin)return;const t=i.default.safeParse(e.data);if("profile.completed"===(null==t?void 0:t.MessageType))return await this.handleDirectApiLookup(t)}catch(e){const a=new u.default;a.setStatus(520),a.message="No se pudo procesar la transacción, intenta de nuevo con otro dispositivo o navegador (1000)",a.data=i.default.serialize(e),t(a)}},window.addEventListener("message",this.listen_direct_message,!1),e.submit()})}async handleDirectApiContinue(e){var a,t;const n=null===(a=e.data)||void 0===a?void 0:a.error;if(n){const e=new u.default;return e.setStatus(520),e.message="No se pudo procesar la transacción, intenta de nuevo con otro dispositivo o navegador (1001)",e.data=i.default.serialize(n),this.direct_api_reject(e)}const r=null===(t=e.data)||void 0===t?void 0:t.identifier;if(!r){const e=new u.default;return e.setStatus(520),e.message="Identifier not found in the response.",e.data={},this.direct_api_reject(e)}this.identifier=r,h.default.hide();const o=await this.service.retryTransaction(this.transaction);return this.direct_api_resolve(o)}async handleDirectApiLookup(e){var a,t;const n=(null==e?void 0:e.SessionId)||(null===(a=null==e?void 0:e.Payload)||void 0===a?void 0:a.SessionId);if(!n){const e=new u.default;return e.setStatus(520),e.message="SessionId not found in the response.",e.data={},this.direct_api_reject(e)}const i=new s.default;i.fromPaymentTransaction(this.transaction),i.setRequiredEMVFields(),i.card_cvv=this.transaction.card_cvv,i.reference=n;const r=await this.service.authenticationLookup(i);if(this.identifier=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.identifier,await this.validationLookupResponse(r,this.direct_api_resolve),"continue"===r.action){const{continue_url:e,continue_payload:a,window_size:t}=r.data;this.submitChallengeForm(e,a,t,this.settings.auth_key)}}async validationLookupResponse(e,a){if(this.transaction.authentication_identifier=this.identifier,!e.success||["token_auth_success","token_auth_failed"].includes(e.action))return p.clearAllEvents(),a(e);if("continue"!=e.action){const e=await this.service.retryTransaction(this.transaction);return p.clearAllEvents(),a(e)}this.direct_api||window.Cardinal.continue("cca",{AcsUrl:e.data.continue_url,Payload:e.data.continue_payload},{OrderDetails:{TransactionId:e.data.transaction_id,OrderNumber:this.transaction.order_id,CurrencyCode:this.transaction.order_currency}})}submitChallengeForm(e,a,t,n){h.default.show(),t=null!=t?t:"02";const{width:r,height:o}=i.default.convertWindowSizeToDimensions(t);let s=document.querySelector('iframe[name="step-up-iframe"]');s||(s=document.createElement("iframe"),s.name="step-up-iframe"),s.width=r,s.height=o,s.style.border="none",document.body.appendChild(s);let l=document.querySelector(".pixelpay-modal");document.querySelector("[without-sdk-modal]")&&(l=document.querySelector("[without-sdk-modal]"));const u=(null==l?void 0:l.querySelector(".pixelpay-modal-container"))||l;if(null==l||l.setAttribute("data-size",t),!u)return;u.appendChild(s);const c=document.createElement("form");c.id="step-up-form",c.target=s.name,c.method="POST",c.action=e;const d=document.createElement("input");if(d.type="hidden",d.name="JWT",d.value=a,c.appendChild(d),n){const e=document.createElement("input");e.type="hidden",e.name="MD",e.value=n,c.appendChild(e)}document.body.appendChild(c),c.submit()}}a.default=p},1598(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{static getFingerprint(e,a){const t=(new Date).getTime(),n=document.createElement("div");n.id="metrics",n.style.position="absolute",n.style.top="0",n.style.opacity="0",n.style.width="1px",n.style.height="1px",document.body.appendChild(n);const i=document.createElement("p");i.styleSheets=`background:url(https://h.online-metrix.net/fp/clear.png?org_id=${a}&session_id=${e}${t}&m=1)`,n.appendChild(i);const r=document.createElement("img");r.src=`https://h.online-metrix.net/fp/clear.png?org_id=${a}&session_id=${e}${t}&m=2`,r.alt="",n.appendChild(r);const o=document.createElement("object");o.data=`https://h.online-metrix.net/fp/fp.swf?org_id=${a}&session_id=${e}${t}`,o.type="application/x-shockwave-flash",o.width="1",o.height="1",o.id="thm_fp";const s=document.createElement("param");s.name="movie",s.value=`https://h.online-metrix.net/fp/fp.swf?org_id=${a}&session_id=${e}${t}`,o.appendChild(s),n.appendChild(o);const l=document.createElement("script");return l.src=`https://h.online-metrix.net/fp/tags.js?org_id=${a}&session_id=${e}${t}`,l.type="text/javascript",document.body.appendChild(l),`${t}`}}},5184(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(4013)),r=n(t(1850)),o=n(t(2711));class s extends i.default{createIFrameElement(e){const a=document.createElement("iframe");return a.setAttribute("frameborder","0"),a.setAttribute("frameborder","0"),a.setAttribute("scrolling","auto"),a.setAttribute("allowtransparency","true"),a.classList.add("pixelpay-modal-iframe"),a.classList.add("pixelpay-modal-loading"),a.onload=()=>{a.classList.remove("pixelpay-modal-loading")},a.onerror=e,a}evaluatePostMessage(e,a,t){var n;e&&e.data&&e.data.hasOwnProperty("success")&&(r.default.hide(),(null==e?void 0:e.origin)==this.settings.endpoint?setTimeout(()=>{var t,n;o.default.hide(),a(this.parseResponse(null==e?void 0:e.data,(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.status)||((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.success)?200:400)))},300):(o.default.hide(),t(new Error((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.message)||"Payload frame response error"))))}loadPayload(e){return new Promise((a,t)=>{try{const n=document.querySelector("[without-sdk-modal]")||r.default._init().querySelector(".pixelpay-modal-container");if(n){const i=this.createIFrameElement(t);n.appendChild(i);const r=i.contentWindow.document,o=atob(e);r.open(),r.write(o),r.close(),window.onmessage=e=>{this.evaluatePostMessage(e,a,t)}}r.default.show()}catch(e){o.default.hide(),t(e)}})}}a.default=s},2711(e,a,t){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,a,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(a,t);i&&!("get"in i?!a.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return a[t]}}),Object.defineProperty(e,n,i)}:function(e,a,t,n){void 0===n&&(n=t),e[n]=a[t]}),i=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&n(a,e,t);return i(a,e),a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const s=o(t(634)),l=r(t(2023)),u={_container:()=>{let e=document.querySelector(".pixelpay-loading");return e||(e=document.createElement("div"),e.classList.add("pixelpay-loading"),e.innerHTML=`<div>\n\t\t\t<img alt="Powered by PixelPay®" src="${l.logo}" width="120" height="40" />\n\t\t\t<img alt="Credit/Debit card" src="${l.icon}" width="32" height="32" />\n\t\t</div>\n\t\t<p><span></span></p>`,document.querySelector("body").appendChild(e),s.default.addStylesById("loading",'.pixelpay-loading { margin: 0px; padding: 16px; display: flex; position: fixed; justify-content: center; flex-direction: column; align-items: center; z-index: 999998; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); top: 0; right: 0; left: 0; bottom: 0; width: 100%; max-width: 100vw; transition: 0.3s opacity; visibility: hidden; opacity: 0; cursor: progress; } .pixelpay-loading * { margin: 0px; padding: 0px; } .pixelpay-loading>div { display: flex; width: 220px; max-width: 220px; justify-content: space-between; } .pixelpay-loading>div>img { opacity: 0; transition-delay: 0.2s; transition-duration: 0.3s; } .pixelpay-loading.show-loading>div>img:first-child { opacity: 1; } .pixelpay-loading>div>img:last-child { transform: translateX(-32px); } .pixelpay-loading.show-loading>div>img:last-child { opacity: 1; transform: translateX(0px); } .pixelpay-loading>p { margin-top: 10px; width: 220px; height: 4px; border-radius: 2px; background-color: rgba(255, 255, 255, 0.2); box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); overflow: hidden; position: relative; } .pixelpay-loading>p>span { display: block; position: absolute; content: ""; left: -200px; width: 200px; height: 4px; background-color: rgba(255, 255, 255, 0.95); animation: loadingBarSDK 1s linear infinite; -moz-animation: loadingBarSDK 1s linear infinite; -webkit-animation: loadingBarSDK 1s linear infinite; border-radius: 0.5rem; } .pixelpay-loading.show-loading { visibility: visible; opacity: 1; } .pixelpay-loading.show-loading.closing-loading { cursor: default; opacity: 0 !important; } @keyframes loadingBarSDK { from { left: -200px; width: 30%; } 50% { width: 30%; } 70% { width: 70%; } 80% { left: 50%; } 95% { left: 120%; } to { left: 100%; } }'),e)},show:()=>{if(s.default.checkIsBrowser()){if(document.dispatchEvent(new Event("pxshowloading")),document.querySelector("[without-sdk-loading]"))return;u._container(),setTimeout(()=>{u._container().classList.add("show-loading")},100)}},hide:()=>{if(s.default.checkIsBrowser()){if(document.dispatchEvent(new Event("pxhideloading")),document.querySelector("[without-sdk-loading]"))return;u._container().classList.add("closing-loading"),setTimeout(()=>{u._container().classList.remove("show-loading","closing-loading")},300)}}};a.default=u},1850(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r={is_open:!1,el:null,_init:()=>(r.is_open=!1,r.el=document.querySelector("body .pixelpay-modal"),r.el||(r.el=r._createModalElement()),r.el),_createContainer:()=>{const e=document.createElement("div");return e.classList.add("pixelpay-modal-container"),e.setAttribute("aria-modal","true"),e},_createLoading:()=>{const e=document.createElement("p");return e.innerHTML="<span></span>",e},_createModalElement:()=>{const e=document.createElement("div");return e.classList.add("pixelpay-modal"),e.setAttribute("aria-hidden","true"),e.appendChild(r._createContainer()),e.appendChild(r._createLoading()),document.querySelector("body").appendChild(e),i.default.addStylesById("modal",'.pixelpay-modal { font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif; margin: 0px; padding: 16px; display: flex; position: fixed; justify-content: center; flex-direction: column; align-items: center; z-index: 999999; top: 0; right: 0; left: 0; bottom: 0; width: 100%; max-width: 100vw; transition: 0.3s opacity; visibility: hidden; opacity: 0; cursor: progress; border-radius: 3px; } .pixelpay-modal.open-modal { visibility: visible; opacity: 1; } .pixelpay-modal.open-modal .pixelpay-modal-container { transform: translateY(0); } .pixelpay-modal * { margin: 0px; padding: 0px; } .pixelpay-modal>p { width: 100%; min-width: 250px; max-width: 500px; margin-top: 10px; height: 4px; border-radius: 2px; background-color: rgba(255, 255, 255, 0.2); box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); overflow: hidden; position: relative; } .pixelpay-modal>p>span { display: block; position: absolute; content: ""; left: -200px; width: 200px; height: 4px; background-color: rgba(255, 255, 255, 0.95); animation: loadingBarSDK 1s linear infinite; -moz-animation: loadingBarSDK 1s linear infinite; -webkit-animation: loadingBarSDK 1s linear infinite; border-radius: 0.5rem; } .pixelpay-modal .pixelpay-modal-container { display: block; width: 100%; min-width: 250px; min-height: 400px; max-width: 500px; max-height: 600px; margin: 0 auto; background-color: transparent; text-align: center; will-change: transform; transform: translateY(-15%); transition: 0.3s transform cubic-bezier(0, 0, 0.2, 1); border-radius: 3px; background-color: #fff; box-shadow: 0 6px 22px -3px #000; cursor: default; } .pixelpay-modal[data-size="01"] .pixelpay-modal-container { width: 250px; max-width: 250px; } .pixelpay-modal[data-size="02"] .pixelpay-modal-container { width: 390px; max-width: 390px; } .pixelpay-modal[data-size="03"] .pixelpay-modal-container { width: 500px; max-width: 500px; } .pixelpay-modal[data-size="04"] .pixelpay-modal-container { width: 600px; max-width: 600px; } .pixelpay-modal[data-size="05"] .pixelpay-modal-container { width: 100%; height: 100%; max-width: 100%; max-height: 100%; } .pixelpay-modal[data-size="01"]>p { width: 250px; } .pixelpay-modal[data-size="02"]>p { width: 390px; } .pixelpay-modal[data-size="03"]>p { width: 500px; } .pixelpay-modal[data-size="04"]>p { width: 600px; } .pixelpay-modal[data-size="05"]>p { width: 100%; } .pixelpay-modal .pixelpay-modal-container > iframe { display: block; } .pixelpay-modal-iframe { width: 100%; height: 100%; max-height: 100vh; background-color: #fff; opacity: 1; transition: opacity 0.3s ease; border-radius: 3px; } @keyframes rotating { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }'),e},show:()=>{if(i.default.checkIsBrowser()){if(document.dispatchEvent(new Event("pxshowmodal")),document.querySelector("[without-sdk-modal]"))return;r._init(),setTimeout(()=>{r.el.classList.add("open-modal"),r.el.setAttribute("aria-hidden","true"),r.is_open=!0},100)}},hide:()=>{if(i.default.checkIsBrowser()){if(document.dispatchEvent(new Event("pxshowmodal")),document.querySelector("[without-sdk-modal]"))return;r._init(),setTimeout(()=>{r.el.classList.remove("pixelpay-modal-fullscreen"),r.el.classList.remove("open-modal"),r.el.setAttribute("aria-hidden","false");const e=r.el.querySelector(".pixelpay-modal-iframe");e&&e.parentNode.removeChild(e),r.is_open=!1,r.el.dispatchEvent(new Event("onclose"))},300)}}};a.default=r},5473(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(6266)),r=n(t(7473)),o=n(t(9411));a.default=class{constructor(e){this.transaction=e,this.transaction.source="router"}async init(e){const a=new i.default(this.parsePayload(e));return i.default.busy=!1,this.transaction instanceof r.default?await a.doSale(this.transaction):await a.doAuth(this.transaction)}parsePayload(e){const a=JSON.parse(atob(e)),t=new o.default;return t.setupEnvironment(a.env),t.setupCredentials(a.auth_key,a.auth_hash),t.setupEndpoint(a.endpoint),t.setupLanguage(this.transaction.lang),a.auth_user&&t.setupPlatformUser(a.auth_user),t}}},2423(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{constructor(){this.address=void 0,this.country=void 0,this.state=void 0,this.city=void 0,this.zip=void 0,this.phone=void 0}}},8888(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{constructor(){this.number=void 0,this.cvv2=void 0,this.expire_month=void 0,this.expire_year=void 0,this.cardholder=void 0}getExpireFormat(){if(!this.expire_month||!this.expire_year)return"";const e=String(this.expire_year),a=("00"+this.expire_month).slice(-2);return e.substr(-2)+a}}},8113(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{constructor(){this.code=void 0,this.title=void 0,this.price=void 0,this.qty=void 0,this.tax=void 0,this.total=void 0,this.price=0,this.qty=1,this.tax=0,this.total=0}totalize(){return this.total=this.price*this.qty,this}}},7424(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{constructor(){this.id=void 0,this.currency=void 0,this.amount=void 0,this.tax_amount=void 0,this.shipping_amount=void 0,this.content=void 0,this.extras=void 0,this.note=void 0,this.callback_url=void 0,this.customer_name=void 0,this.customer_email=void 0,this.content=[],this.extras={}}addItem(e){return this.content.push(e),this.totalize(),this}addExtra(e,a){return this.extras[e]=a,this}totalize(){return this.content.length?(this.amount=0,this.tax_amount=0,this.content.forEach(e=>{e.totalize(),this.amount+=e.total,this.tax_amount+=e.tax*e.qty}),this):this}}},9411(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(3514));a.default=class{constructor(){this.auth_key=void 0,this.auth_hash=void 0,this.auth_user=void 0,this.endpoint=void 0,this.environment=void 0,this.lang=void 0,this.sdk=void 0,this.sdk_version=void 0,this.headers=void 0,this.endpoint="https://pixelpay.app"}setupEndpoint(e){this.endpoint=e}setupCredentials(e,a){this.auth_key=e,this.auth_hash=a}setupPlatformUser(e){this.auth_user=e}setupEnvironment(e){this.environment=e}setupSandbox(){this.endpoint="https://pixelpay.dev",this.auth_key="1234567890",this.auth_hash=i.default.hash("MD5","@s4ndb0x-abcd-1234-n1l4-p1x3l"),this.environment=r.default.SANDBOX}setupLanguage(e){this.lang=e}setupHeaders(e){this.headers=e}}},235(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(4048));class o extends r.default{setOrder(e){this.order_id=e.id,this.order_currency=e.currency,this.order_amount=i.default.parseAmount(e.amount)}}a.default=o},6402(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(4048));class r extends i.default{}a.default=r},388(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823));class r extends i.default{constructor(){super(...arguments),this.payment_uuid=null,this.transaction_approved_amount=null,this.tap_to_pay_request=!1}withTap2Pay(){this.tap_to_pay_request=!0}}a.default=r},3331(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823)),r=n(t(634));class o extends i.default{constructor(){super(...arguments),this.number=null,this.cvv2=null,this.expire_month=null,this.expire_year=null,this.cardholder=null,this.address=null,this.country=null,this.state=null,this.city=null,this.zip=null,this.phone=null,this.email=null}setCard(e){this.number=r.default.cleanString(e.number),this.cvv2=e.cvv2,this.cardholder=r.default.trimValue(e.cardholder),e.expire_month&&(this.expire_month=("00"+e.expire_month).slice(-2)),e.expire_year&&(this.expire_year=String(e.expire_year))}setBilling(e){this.address=r.default.trimValue(e.address),this.country=e.country,this.state=e.state,this.city=r.default.trimValue(e.city),this.zip=e.zip,this.phone=e.phone}}a.default=o},4341(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823));class r extends i.default{constructor(){super(...arguments),this.identifier=null,this.payload=null,this.card_token=null,this.authenticate_token=!1}}a.default=r},5634(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823)),r=n(t(235)),o=n(t(7473));class s extends i.default{constructor(){super(...arguments),this.card_token=null,this.card_number=null,this.card_cvv=null,this.card_expire=null,this.billing_address=null,this.billing_country=null,this.billing_state=null,this.billing_city=null,this.billing_zip=null,this.billing_phone=null,this.customer_name=null,this.customer_email=null,this.order_id=null,this.order_currency=null,this.order_amount=null,this.installment=null,this.secure_payload=null,this.apple_pay=null,this.click_to_pay=null,this.reference=null,this.browser_java_enabled="false",this.browser_header=null,this.browser_language=null,this.browser_color_depth=null,this.browser_screen_height=null,this.browser_screen_width=null,this.browser_time_zone=null,this.user_agent=null,this.ip_address=null,this.device_channel="Browser",this.browser_javascript_enabled="true",this.authenticate_token=!1}fromPaymentTransaction(e){this.card_token=e.card_token,this.card_number=e.card_number,this.card_expire=e.card_expire,this.billing_address=e.billing_address,this.billing_country=e.billing_country,this.billing_state=e.billing_state,this.billing_city=e.billing_city,this.billing_zip=e.billing_zip,this.billing_phone=e.billing_phone,this.customer_name=e.customer_name,this.customer_email=e.customer_email,this.order_id=e.order_id,this.order_currency=e.order_currency,this.order_amount=e.order_amount,this.secure_payload=e.secure_payload,this.apple_pay=e.apple_pay,this.click_to_pay=e.click_to_pay,this.authenticate_token=e instanceof r.default,e instanceof o.default&&(this.installment=e.installment_months)}setRequiredEMVFields(){this.browser_java_enabled||(this.browser_java_enabled="function"==typeof navigator.javaEnabled?navigator.javaEnabled().toString():"false"),this.browser_language||(this.browser_language=navigator.language),this.browser_color_depth||(this.browser_color_depth=screen.colorDepth.toString()),this.browser_screen_height||(this.browser_screen_height=screen.height.toString()||window.innerHeight.toString()),this.browser_screen_width||(this.browser_screen_width=screen.width.toString()||window.innerWidth.toString()),this.browser_time_zone||(this.browser_time_zone=(new Date).getTimezoneOffset().toString()),this.user_agent||(this.user_agent=navigator.userAgent)}}a.default=s},4048(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(2823));class o extends r.default{constructor(){super(...arguments),this.payment_uuid=null,this.card_token=null,this.card_number=null,this.card_cvv=null,this.card_expire=null,this.card_holder=null,this.billing_address=null,this.billing_country=null,this.billing_state=null,this.billing_city=null,this.billing_zip=null,this.billing_phone=null,this.customer_name=null,this.customer_email=null,this.customer_fingerprint=null,this.order_id=null,this.order_currency=null,this.order_amount=null,this.order_tax_amount=null,this.order_shipping_amount=null,this.order_content=[],this.order_extras={},this.order_note=null,this.order_callback=null,this.authentication_request=!1,this.authentication_identifier=null,this.secure_payload=null,this.apple_pay=null,this.click_to_pay=null,this.source=null,this.tap_to_pay_request=!1,this.before_execute=null}setCard(e){this.card_number=i.default.cleanString(e.number),this.card_cvv=e.cvv2,this.card_expire=e.getExpireFormat(),this.card_holder=i.default.trimValue(e.cardholder)}setCardToken(e=null){this.card_token=e}setBilling(e){this.billing_address=i.default.trimValue(e.address),this.billing_country=e.country,this.billing_state=e.state,this.billing_city=i.default.trimValue(e.city),this.billing_zip=e.zip,this.billing_phone=e.phone}setOrder(e){this.order_id=e.id,this.order_currency=e.currency,this.order_amount=i.default.parseAmount(e.amount),this.order_tax_amount=i.default.parseAmount(e.tax_amount),this.order_shipping_amount=i.default.parseAmount(e.shipping_amount),this.order_content=e.content,this.order_extras=e.extras,this.order_note=i.default.trimValue(e.note),this.order_callback=e.callback_url,this.customer_name=i.default.trimValue(e.customer_name),this.customer_email=e.customer_email}withAuthenticationRequest(){this.authentication_request=!0}withTap2Pay(){this.tap_to_pay_request=!0}setBeforeExecute(e){this.before_execute=e}async doBeforeExecute(){this.before_execute&&await this.before_execute()}}a.default=o},7473(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(4048));class o extends r.default{constructor(){super(...arguments),this.installment_type=null,this.installment_months=null,this.points_redeem_amount=null}setInstallment(e,a){this.installment_months=String(e),this.installment_type=a}withPointsRedeemAmount(e){this.points_redeem_amount=i.default.parseAmount(e)}}a.default=o},4282(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823));class r extends i.default{constructor(){super(...arguments),this.payment_uuid=null}}a.default=r},2210(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823));class r extends i.default{constructor(){super(...arguments),this.payment_uuid=null,this.void_reason=null,this.void_signature=null}}a.default=r},3514(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t{}a.default=t,t.LIVE="live",t.TEST="test",t.SANDBOX="sandbox",t.STAGING="staging"},1299(e,a,t){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,a,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(a,t);i&&!("get"in i?!a.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return a[t]}}),Object.defineProperty(e,n,i)}:function(e,a,t,n){void 0===n&&(n=t),e[n]=a[t]}),i=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&n(a,e,t);return i(a,e),a};Object.defineProperty(a,"__esModule",{value:!0});const o=r(t(5021)),s=r(t(4363)),l=r(t(7639));a.default={countriesList:()=>o||{},statesList:e=>Object.prototype.hasOwnProperty.call(s||{},e)&&s[e]||{},formatsList:e=>Object.prototype.hasOwnProperty.call(l||{},e)&&l[e]||{}}},1935(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},4575(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},5037(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},7071(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},2046(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},4756(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},7867(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},2701(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},3596(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},9250(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},8618(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},1020(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(4013)),r=n(t(7473)),o=n(t(6402)),s=n(t(1742));class l extends i.default{free(){l.runningTransaction=null}authenticationLookup(e){return this.post("api/v2/cardinal/authentication/lookup",e)}authenticationContinue(e){return this.post("api/v2/cardinal/authentication/continue",e)}async retryTransaction(e){if(await e.doBeforeExecute(),l.runningTransaction)return l.runningTransaction;if(!(e instanceof r.default||e instanceof o.default))throw this.free(),new s.default("The request payment type is invalid.");const a="api/v2/transaction/"+(e instanceof r.default?"sale":"auth");return l.runningTransaction=this.post(a,e).finally(this.free),l.runningTransaction}}a.default=l,l.runningTransaction=null},4787(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(2823)),o=n(t(4013)),s=n(t(7867)),l=n(t(9250)),u=n(t(2711)),c=n(t(1574)),d=n(t(1742)),h="api/v2/tokenization/card";class p extends o.default{async vaultCard(e){u.default.show();const a=await this.post(h,e);return u.default.hide(),a}async authCard(e){if(!i.default.checkIsBrowser())throw new d.default("This platform not support 3DS transactions");try{u.default.show();const a=await this.post(h+"/auth",e);return a instanceof l.default&&a.data.authentication_identifier?a:a instanceof s.default&&"songbird"==a.data.transaction_type?await new c.default(this.settings,e).init(a.data.payload,a.data.collection_url):(c.default.clearAllEvents(),a)}catch(e){throw c.default.clearAllEvents(),e}finally{u.default.hide()}}async updateCard(e,a){u.default.show();const t=await this.put(h+"/"+e,a);return u.default.hide(),t}showCard(e){return this.get(h+"/"+e,new r.default)}showCards(e){let a=e.join(":");return this.get(h+"/"+a.split(" ").join(""),new r.default)}async deleteCard(e){u.default.show();const a=await this.delete(h+"/"+e,new r.default);return u.default.hide(),a}}a.default=p},6266(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(4013)),o=n(t(1742)),s=n(t(2350)),l=n(t(2711)),u=n(t(7867)),c=n(t(1574)),d=n(t(5184)),h=n(t(1598)),p=n(t(5473));class f extends r.default{constructor(e){super(e)}static withConcurrency(){f.concurrent=!0}async doSale(e){var a,t;if(await e.doBeforeExecute(),e.authentication_request&&!i.default.checkIsBrowser())throw new o.default("This platform not support 3DS transactions");if(!f.concurrent&&f.busy)throw new s.default("There's an active transaction still running.");try{l.default.show(),f.busy=!0;const n=await this.post("api/v2/transaction/sale",e);if(n instanceof u.default)switch(null===(a=n.data)||void 0===a?void 0:a.transaction_type){case"songbird":return await new c.default(this.settings,e).init(n.data.payload,null===(t=n.data)||void 0===t?void 0:t.collection_url);case"payload":return await new d.default(this.settings).loadPayload(n.data.payload);case"router":return await new p.default(e).init(n.data.payload);default:throw new s.default("This type of transaction is invalid")}return c.default.clearAllEvents(),n}catch(e){throw c.default.clearAllEvents(),e}finally{l.default.hide(),f.busy=!1}}async doAuth(e){var a,t;if(await e.doBeforeExecute(),e.authentication_request&&!i.default.checkIsBrowser())throw new o.default("This platform not support 3DS transactions");if(!f.concurrent&&f.busy)throw new s.default("There's an active transaction still running.");try{l.default.show(),f.busy=!0;const n=await this.post("api/v2/transaction/auth",e);if(n instanceof u.default)switch(null===(a=n.data)||void 0===a?void 0:a.transaction_type){case"songbird":return await new c.default(this.settings,e).init(n.data.payload,null===(t=n.data)||void 0===t?void 0:t.collection_url);case"payload":return await new d.default(this.settings).loadPayload(n.data.payload);case"router":return await new p.default(e).init(n.data.payload);default:throw new s.default("This type of transaction is invalid")}return c.default.clearAllEvents(),n}catch(e){throw c.default.clearAllEvents(),e}finally{l.default.hide(),f.busy=!1}}async doCapture(e){l.default.show();const a=await this.post("api/v2/transaction/capture",e);return l.default.hide(),a}async doVoid(e){l.default.show();const a=await this.post("api/v2/transaction/void",e);return l.default.hide(),a}getStatus(e){return this.post("api/v2/transaction/status",e)}verifyPaymentHash(e,a,t){if(i.default.checkIsBrowser())throw new o.default("This platform not support hash validations in browser/frontend");const n=[a,this.settings.auth_key,t].join("|");return e===i.default.hash("MD5",n)}getCybersourceFingerprint(e,a){return h.default.getFingerprint(e,a)}}a.default=f,f.busy=!1,f.concurrent=!1},1333(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default="2.4.11-beta.0"},8743(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=t(3909);i.default.checkIsBrowser()&&(window.Entities=r.Entities,window.Exceptions=r.Exceptions,window.Models=r.Models,window.Requests=r.Requests,window.Resources=r.Resources,window.Responses=r.Responses,window.Services=r.Services)},7526(e,a){"use strict";a.byteLength=function(e){var a=s(e),t=a[0],n=a[1];return 3*(t+n)/4-n},a.toByteArray=function(e){var a,t,r=s(e),o=r[0],l=r[1],u=new i(function(e,a,t){return 3*(a+t)/4-t}(0,o,l)),c=0,d=l>0?o-4:o;for(t=0;t<d;t+=4)a=n[e.charCodeAt(t)]<<18|n[e.charCodeAt(t+1)]<<12|n[e.charCodeAt(t+2)]<<6|n[e.charCodeAt(t+3)],u[c++]=a>>16&255,u[c++]=a>>8&255,u[c++]=255&a;2===l&&(a=n[e.charCodeAt(t)]<<2|n[e.charCodeAt(t+1)]>>4,u[c++]=255&a);1===l&&(a=n[e.charCodeAt(t)]<<10|n[e.charCodeAt(t+1)]<<4|n[e.charCodeAt(t+2)]>>2,u[c++]=a>>8&255,u[c++]=255&a);return u},a.fromByteArray=function(e){for(var a,n=e.length,i=n%3,r=[],o=16383,s=0,l=n-i;s<l;s+=o)r.push(u(e,s,s+o>l?l:s+o));1===i?(a=e[n-1],r.push(t[a>>2]+t[a<<4&63]+"==")):2===i&&(a=(e[n-2]<<8)+e[n-1],r.push(t[a>>10]+t[a>>4&63]+t[a<<2&63]+"="));return r.join("")};for(var t=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)t[o]=r[o],n[r.charCodeAt(o)]=o;function s(e){var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return-1===t&&(t=a),[t,t===a?0:4-t%4]}function l(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[63&e]}function u(e,a,t){for(var n,i=[],r=a;r<t;r+=3)n=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2]),i.push(l(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8287(e,a,t){"use strict";var n=t(7526),i=t(251);
1
+ (()=>{var e={634(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});const n=t(1396);a.default={objectToJson(e){const a=Object.assign({},e);for(var t in a)null!==a[t]&&void 0!==a[t]||delete a[t];return JSON.stringify(a)},hash(e,a){switch(e){case"MD5":return(0,n.MD5)(a).toString();case"SHA-512":return(0,n.SHA512)(a).toString();default:return""}},trimValue:e=>e?e.trim():null,cleanString:e=>e?e.replace(/\s/g,""):null,parseAmount:e=>"number"==typeof e&&e>0?String(e):null,checkIsBrowser:()=>"undefined"!=typeof window&&void 0!==window.document,serialize(e){const a=Object.getOwnPropertyNames(null!=e?e:{});return JSON.parse(JSON.stringify(e,a))},safeParse(e){if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return null}},addScriptToWebsite:e=>new Promise((a,t)=>{const i=(0,n.MD5)(e).toString(),r=document.createElement("script");document.querySelector(`script[id="${i}"]`)?a(!0):(r.id=i,r.src=e,r.type="text/javascript",r.onload=a,r.onerror=t,document.body.appendChild(r))}),addStylesById(e,a){if(document.getElementById(`styles-${e}`))return;const t=document.createElement("style");t.id=`styles-${e}`,t.innerHTML=a,document.head.appendChild(t)},addSecureForm(e,a){const t=document.createElement("iframe");t.id="cardinal_collection_iframe",t.name="collectionIframe",t.height="10",t.width="10",t.style.display="none",document.body.appendChild(t);const n=document.createElement("form");n.id="cardinal_collection_form",n.method="POST",n.target="collectionIframe",n.action=a;const i=document.createElement("input");return i.type="hidden",i.name="JWT",i.value=e,n.appendChild(i),document.body.appendChild(n),n},removeElementById(e){const a=document.getElementById(e);a&&a.remove()},convertWindowSizeToDimensions:e=>({"01":{width:"250",height:"400"},"02":{width:"390",height:"400"},"03":{width:"500",height:"600"},"04":{width:"600",height:"400"},"05":{width:"100%",height:"100%"}}[e||"02"]||{width:"390",height:"400"})}},2823(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(1333));a.default=class{constructor(){this.env=null,this.lang=null,this.from=null,this.sdk_version=null,this.lang=Intl.DateTimeFormat().resolvedOptions().locale,this.from="sdk-javascript",this.sdk_version=r.default,"es"!=this.lang&&"en"!=this.lang&&(this.lang="es")}toJson(){return i.default.objectToJson(this)}}},2624(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634));a.default=class{constructor(){this.action=null,this.success=!1,this.message=null,this.data=void 0,this.errors=void 0}setStatus(e){this.status=e}getStatus(){return this.status}inputHasError(e){return!!this.errors&&this.errors.hasOwnProperty(e)}getData(e){return this.data&&this.data.hasOwnProperty(e)&&this.data[e]||null}toJson(){return i.default.objectToJson(this)}}},4013(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(6425)),r=n(t(3292)),o=n(t(2624)),s=n(t(1935)),l=n(t(4575)),u=n(t(5037)),c=n(t(7071)),d=n(t(2046)),h=n(t(4756)),p=n(t(7867)),f=n(t(2701)),S=n(t(3596)),m=n(t(9250)),g=n(t(8618));a.default=class{constructor(e){this.settings=e}buildRequest(e,a){if(!this.settings.auth_key||!this.settings.auth_hash)throw new r.default("The merchant credentials are not definied (key/hash).");null!=this.settings.environment&&(a.env=this.settings.environment),null!=this.settings.lang&&(a.lang=this.settings.lang),null!=this.settings.sdk&&(a.from=this.settings.sdk),null!=this.settings.sdk_version&&(a.sdk_version=this.settings.sdk_version);const t={Accept:"application/json","Content-Type":"application/json","x-auth-key":this.settings.auth_key,"x-auth-hash":this.settings.auth_hash};if(this.settings.auth_user&&(t["x-auth-user"]=this.settings.auth_user),this.settings.headers)for(const e in this.settings.headers)t[e]=this.settings.headers[e];return i.default.create({baseURL:this.settings.endpoint,timeout:6e4,headers:t,validateStatus:()=>!0})}parseResponse(e,a){let t=new o.default;switch(a){case 200:t=new m.default;break;case 202:t=new p.default;break;case 400:t=new s.default;break;case 401:case 403:t=new d.default;break;case 402:t=new f.default;break;case 404:case 405:case 406:t=new h.default;break;case 408:t=new g.default;break;case 412:case 418:t=new S.default;break;case 422:t=new u.default;break;case 500:t=new l.default;break;default:a>500&&(t=new c.default)}return t.status=a,t.action=(null==e?void 0:e.action)||null,t.success=(null==e?void 0:e.success)||!1,t.message=(null==e?void 0:e.message)||null,t.data=(null==e?void 0:e.data)||null,t.errors=(null==e?void 0:e.errors)||null,t}exceptionResponse(e){const a=new l.default;return a.status=520,a.success=!1,a.message=e.message,a}getRoute(e){return this.settings.endpoint+"/"+e}async post(e,a){try{const t=await this.buildRequest(e,a).post(e,JSON.parse(a.toJson()));return this.parseResponse(t.data,t.status)}catch(e){return this.exceptionResponse(e)}}async put(e,a){try{const t=await this.buildRequest(e,a).put(e,JSON.parse(a.toJson()));return this.parseResponse(t.data,t.status)}catch(e){return this.exceptionResponse(e)}}async delete(e,a){try{const t=await this.buildRequest(e,a).delete(e,{params:JSON.parse(a.toJson())});return this.parseResponse(t.data,t.status)}catch(e){return this.exceptionResponse(e)}}async get(e,a){try{const t=await this.buildRequest(e,a).get(e,{params:JSON.parse(a.toJson())});return this.parseResponse(t.data,t.status)}catch(e){return this.exceptionResponse(e)}}}},8282(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(9250));class r{constructor(){this.status=void 0,this.mask=void 0,this.network=void 0,this.type=void 0,this.bin=void 0,this.last=void 0,this.hash=void 0,this.address=void 0,this.country=void 0,this.state=void 0,this.city=void 0,this.zip=void 0,this.email=void 0,this.phone=void 0}static validateResponse(e){return e instanceof i.default}static fromResponse(e){const a=new r;return Object.getOwnPropertyNames(e.data).map(t=>{t in a&&(a[t]=e.data[t])}),a}}a.default=r},4940(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(9250)),r=n(t(2701)),o=n(t(8618));class s{constructor(){this.transaction_type=void 0,this.transaction_redeemed_points=void 0,this.transaction_approved_amount=void 0,this.transaction_amount=void 0,this.transaction_auth=void 0,this.transaction_terminal=void 0,this.transaction_merchant=void 0,this.response_cvn=void 0,this.response_avs=void 0,this.response_cavv=void 0,this.transaction_id=void 0,this.transaction_reference=void 0,this.transaction_time=void 0,this.transaction_date=void 0,this.response_approved=void 0,this.response_incomplete=void 0,this.response_code=void 0,this.response_time=void 0,this.response_reason=void 0,this.installment_type=void 0,this.installment_months=void 0,this.payment_uuid=void 0,this.payment_hash=void 0}static validateResponse(e){return e instanceof i.default||e instanceof r.default||e instanceof o.default}static fromResponse(e){const a=new s;return Object.getOwnPropertyNames(e.data).map(t=>{t in a&&(a[t]=e.data[t])}),a}}a.default=s},3292(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t extends Error{}a.default=t},1742(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t extends Error{}a.default=t},2350(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t extends Error{}a.default=t},3909(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.Services=a.Responses=a.Resources=a.Requests=a.Models=a.Exceptions=a.Entities=void 0;const i=n(t(8282)),r=n(t(4940)),o=n(t(3292)),s=n(t(1742)),l=n(t(2423)),u=n(t(8888)),c=n(t(8113)),d=n(t(7424)),h=n(t(9411)),p=n(t(6402)),f=n(t(388)),S=n(t(7473)),m=n(t(2210)),g=n(t(4282)),y=n(t(3331)),M=n(t(235)),A=n(t(3514)),B=n(t(1299)),_=n(t(1935)),T=n(t(4575)),v=n(t(5037)),C=n(t(7071)),b=n(t(2046)),N=n(t(4756)),L=n(t(7867)),w=n(t(2701)),R=n(t(3596)),E=n(t(9250)),I=n(t(8618)),k=n(t(4787)),P=n(t(6266));a.Entities={CardResult:i.default,TransactionResult:r.default},a.Exceptions={InvalidCredentialsException:o.default,InvalidTransactionTypeException:s.default},a.Models={Billing:l.default,Card:u.default,Item:c.default,Order:d.default,Settings:h.default},a.Requests={AuthTransaction:p.default,CaptureTransaction:f.default,SaleTransaction:S.default,VoidTransaction:m.default,StatusTransaction:g.default,CardTokenization:y.default,AuthTokenization:M.default},a.Resources={Environment:A.default,Locations:B.default},a.Responses={ErrorResponse:_.default,FailureResponse:T.default,InputErrorResponse:v.default,NetworkFailureResponse:C.default,NoAccessResponse:b.default,NotFoundResponse:N.default,PayloadResponse:L.default,PaymentDeclinedResponse:w.default,PreconditionalResponse:R.default,SuccessResponse:E.default,TimeoutResponse:I.default},a.Services={Tokenization:k.default,Transaction:P.default}},1574(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(235)),o=n(t(4341)),s=n(t(5634)),l=n(t(3514)),u=n(t(4575)),c=n(t(1020)),d=n(t(2711)),h=n(t(1850));class p{constructor(e,a){this.direct_api=!1,this.settings=e,this.transaction=a,this.service=new c.default(this.settings)}static clearAllEvents(){i.default.checkIsBrowser()&&(d.default.hide(),void 0!==window.Cardinal&&(window.Cardinal.off("payments.setupComplete"),window.Cardinal.off("payments.validated"),window.Cardinal.onSetupCompleteBusy=!1,window.Cardinal.onValidatedBusy=!1))}async init(e,a){if(a){this.direct_api=!0,this.collection_url=a;const t=i.default.addSecureForm(e,a);return await this.startCardinalDirectApiTransaction(t).finally(()=>{this.listen_direct_message&&window.removeEventListener("message",this.listen_direct_message),i.default.removeElementById("step-up-form"),i.default.removeElementById("cardinal_collection_iframe"),i.default.removeElementById("cardinal_collection_form"),h.default.hide(),d.default.hide()})}const t=this.settings.environment===l.default.SANDBOX||this.settings.environment===l.default.STAGING,n=t?"stag":"";return await i.default.addScriptToWebsite(`https://songbird${n}.cardinalcommerce.com/edge/v1/songbird.js`),window.Cardinal.configure({payment:{framework:"inline"},logging:{level:t?"on":"off"}}),window.Cardinal.onSetupCompleteBusy=!1,window.Cardinal.onValidatedBusy=!1,await this.startCardinalTransaction(e,this)}startCardinalTransaction(e,a){return new Promise((t,n)=>{try{window.Cardinal.on("payments.setupComplete",async e=>{var n;if(window.Cardinal.onSetupCompleteBusy)return console.warn('Cardinal event "payments.setupComplete" is currently busy.');if(window.Cardinal.onSetupCompleteBusy=!0,void 0===e.sessionId||void 0!==e.sessionId&&(!e.sessionId||""==e.sessionId))throw new Error("Cardinal initial setup error.");const i=new s.default;i.fromPaymentTransaction(a.transaction),i.setRequiredEMVFields(),i.reference=e.sessionId;const r=await a.service.authenticationLookup(i);a.identifier=null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.identifier,a.validationLookupResponse(r,t),window.Cardinal.onSetupCompleteBusy=!1}),window.Cardinal.on("payments.validated",async(e,n)=>{if("ERROR"!==(null==e?void 0:e.ActionCode)&&window.Cardinal.onValidatedBusy)return console.warn('Cardinal event "payments.validated" is currently busy.');if(window.Cardinal.onValidatedBusy=!0,void 0!==n&&n&&""!=n){const e=new o.default;e.payload=n,e.identifier=a.identifier,e.card_token=a.transaction.card_token,e.authenticate_token=a.transaction instanceof r.default;const i=await a.service.authenticationContinue(e);if(e.authenticate_token)return p.clearAllEvents(),t(i);const s=await a.service.retryTransaction(a.transaction);p.clearAllEvents(),t(s)}else if("NOACTION"==e.ActionCode){const e=await a.service.retryTransaction(a.transaction);p.clearAllEvents(),t(e)}else{const a=new u.default;a.setStatus(520),a.message=`Cardinal validation failed. ${e.ErrorDescription} (${e.ErrorNumber})`,a.data={},p.clearAllEvents(),t(a)}window.Cardinal.onValidatedBusy=!1}),window.Cardinal.on("ui.close",()=>{h.default.hide()}),window.Cardinal.on("ui.inline.setup",(e,a,t,n)=>{try{let n;if(void 0===e||void 0===a)throw new Error("Unable to process request due to invalid arguments");if("CCA"!==a.paymentType)throw new Error("Unsupported inline payment type found ["+a.paymentType+"]");switch(a.data.mode){case"static":h.default.show();let e=document.querySelector(".pixelpay-modal");document.querySelector("[without-sdk-modal]")&&(e=document.querySelector("[without-sdk-modal]")),n=e.querySelector(".pixelpay-modal-container")||e,e.setAttribute("data-size",a.data.challengeWindowSizeId);break;case"suppress":h.default.hide(),n=document.querySelector(".pixelpay-modal-container");break;default:throw new Error("Unsupported inline mode found ["+a.data.mode+"]")}n.innerHTML=e,t()}catch(e){n(e)}}),window.Cardinal.setup("init",{jwt:e})}catch(e){p.clearAllEvents(),n(e)}})}startCardinalDirectApiTransaction(e){return new Promise((a,t)=>{this.direct_api_resolve=a,this.direct_api_reject=t,this.listen_direct_message=async e=>{var a;try{if((null==e?void 0:e.origin)===this.settings.endpoint&&"pixelpay_continue"===(null===(a=e.data)||void 0===a?void 0:a.name))return await this.handleDirectApiContinue(e);if(e.origin!==new URL(this.collection_url).origin)return;const t=i.default.safeParse(e.data);if("profile.completed"===(null==t?void 0:t.MessageType))return await this.handleDirectApiLookup(t)}catch(e){const a=new u.default;a.setStatus(520),a.message="No se pudo procesar la transacción, intenta de nuevo con otro dispositivo o navegador (1000)",a.data=i.default.serialize(e),t(a)}},window.addEventListener("message",this.listen_direct_message,!1),e.submit()})}async handleDirectApiContinue(e){var a,t;const n=null===(a=e.data)||void 0===a?void 0:a.error;if(n){const e=new u.default;return e.setStatus(520),e.message="No se pudo procesar la transacción, intenta de nuevo con otro dispositivo o navegador (1001)",e.data=i.default.serialize(n),this.direct_api_reject(e)}const r=null===(t=e.data)||void 0===t?void 0:t.identifier;if(!r){const e=new u.default;return e.setStatus(520),e.message="Identifier not found in the response.",e.data={},this.direct_api_reject(e)}this.identifier=r,h.default.hide();const o=await this.service.retryTransaction(this.transaction);return this.direct_api_resolve(o)}async handleDirectApiLookup(e){var a,t;const n=(null==e?void 0:e.SessionId)||(null===(a=null==e?void 0:e.Payload)||void 0===a?void 0:a.SessionId);if(!n){const e=new u.default;return e.setStatus(520),e.message="SessionId not found in the response.",e.data={},this.direct_api_reject(e)}const i=new s.default;i.fromPaymentTransaction(this.transaction),i.setRequiredEMVFields(),i.card_cvv=this.transaction.card_cvv,i.reference=n;const r=await this.service.authenticationLookup(i);if(this.identifier=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.identifier,await this.validationLookupResponse(r,this.direct_api_resolve),"continue"===r.action){const{continue_url:e,continue_payload:a,window_size:t}=r.data;this.submitChallengeForm(e,a,t,this.settings.auth_key)}}async validationLookupResponse(e,a){if(this.transaction.authentication_identifier=this.identifier,!e.success||["token_auth_success","token_auth_failed"].includes(e.action))return p.clearAllEvents(),a(e);if("continue"!=e.action){const e=await this.service.retryTransaction(this.transaction);return p.clearAllEvents(),a(e)}this.direct_api||window.Cardinal.continue("cca",{AcsUrl:e.data.continue_url,Payload:e.data.continue_payload},{OrderDetails:{TransactionId:e.data.transaction_id,OrderNumber:this.transaction.order_id,CurrencyCode:this.transaction.order_currency}})}submitChallengeForm(e,a,t,n){h.default.show(),t=null!=t?t:"02";const{width:r,height:o}=i.default.convertWindowSizeToDimensions(t);let s=document.querySelector('iframe[name="step-up-iframe"]');s||(s=document.createElement("iframe"),s.name="step-up-iframe"),s.width=r,s.height=o,s.style.border="none",document.body.appendChild(s);let l=document.querySelector(".pixelpay-modal");document.querySelector("[without-sdk-modal]")&&(l=document.querySelector("[without-sdk-modal]"));const u=(null==l?void 0:l.querySelector(".pixelpay-modal-container"))||l;if(null==l||l.setAttribute("data-size",t),!u)return;u.appendChild(s);const c=document.createElement("form");c.id="step-up-form",c.target=s.name,c.method="POST",c.action=e;const d=document.createElement("input");if(d.type="hidden",d.name="JWT",d.value=a,c.appendChild(d),n){const e=document.createElement("input");e.type="hidden",e.name="MD",e.value=n,c.appendChild(e)}document.body.appendChild(c),c.submit()}}a.default=p},1598(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{static getFingerprint(e,a){const t=(new Date).getTime(),n=document.createElement("div");n.id="metrics",n.style.position="absolute",n.style.top="0",n.style.opacity="0",n.style.width="1px",n.style.height="1px",document.body.appendChild(n);const i=document.createElement("p");i.styleSheets=`background:url(https://h.online-metrix.net/fp/clear.png?org_id=${a}&session_id=${e}${t}&m=1)`,n.appendChild(i);const r=document.createElement("img");r.src=`https://h.online-metrix.net/fp/clear.png?org_id=${a}&session_id=${e}${t}&m=2`,r.alt="",n.appendChild(r);const o=document.createElement("object");o.data=`https://h.online-metrix.net/fp/fp.swf?org_id=${a}&session_id=${e}${t}`,o.type="application/x-shockwave-flash",o.width="1",o.height="1",o.id="thm_fp";const s=document.createElement("param");s.name="movie",s.value=`https://h.online-metrix.net/fp/fp.swf?org_id=${a}&session_id=${e}${t}`,o.appendChild(s),n.appendChild(o);const l=document.createElement("script");return l.src=`https://h.online-metrix.net/fp/tags.js?org_id=${a}&session_id=${e}${t}`,l.type="text/javascript",document.body.appendChild(l),`${t}`}}},5184(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(4013)),r=n(t(1850)),o=n(t(2711));class s extends i.default{createIFrameElement(e){const a=document.createElement("iframe");return a.setAttribute("frameborder","0"),a.setAttribute("frameborder","0"),a.setAttribute("scrolling","auto"),a.setAttribute("allowtransparency","true"),a.classList.add("pixelpay-modal-iframe"),a.classList.add("pixelpay-modal-loading"),a.onload=()=>{a.classList.remove("pixelpay-modal-loading")},a.onerror=e,a}evaluatePostMessage(e,a,t){var n;e&&e.data&&e.data.hasOwnProperty("success")&&(r.default.hide(),(null==e?void 0:e.origin)==this.settings.endpoint?setTimeout(()=>{var t,n;o.default.hide(),a(this.parseResponse(null==e?void 0:e.data,(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.status)||((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.success)?200:400)))},300):(o.default.hide(),t(new Error((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.message)||"Payload frame response error"))))}loadPayload(e){return new Promise((a,t)=>{try{const n=document.querySelector("[without-sdk-modal]")||r.default._init().querySelector(".pixelpay-modal-container");if(n){const i=this.createIFrameElement(t);n.appendChild(i);const r=i.contentWindow.document,o=atob(e);r.open(),r.write(o),r.close(),window.onmessage=e=>{this.evaluatePostMessage(e,a,t)}}r.default.show()}catch(e){o.default.hide(),t(e)}})}}a.default=s},2711(e,a,t){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,a,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(a,t);i&&!("get"in i?!a.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return a[t]}}),Object.defineProperty(e,n,i)}:function(e,a,t,n){void 0===n&&(n=t),e[n]=a[t]}),i=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&n(a,e,t);return i(a,e),a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const s=o(t(634)),l=r(t(2023)),u={_container:()=>{let e=document.querySelector(".pixelpay-loading");return e||(e=document.createElement("div"),e.classList.add("pixelpay-loading"),e.innerHTML=`<div>\n\t\t\t<img alt="Powered by PixelPay®" src="${l.logo}" width="120" height="40" />\n\t\t\t<img alt="Credit/Debit card" src="${l.icon}" width="32" height="32" />\n\t\t</div>\n\t\t<p><span></span></p>`,document.querySelector("body").appendChild(e),s.default.addStylesById("loading",'.pixelpay-loading { margin: 0px; padding: 16px; display: flex; position: fixed; justify-content: center; flex-direction: column; align-items: center; z-index: 999998; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); top: 0; right: 0; left: 0; bottom: 0; width: 100%; max-width: 100vw; transition: 0.3s opacity; visibility: hidden; opacity: 0; cursor: progress; } .pixelpay-loading * { margin: 0px; padding: 0px; } .pixelpay-loading>div { display: flex; width: 220px; max-width: 220px; justify-content: space-between; } .pixelpay-loading>div>img { opacity: 0; transition-delay: 0.2s; transition-duration: 0.3s; } .pixelpay-loading.show-loading>div>img:first-child { opacity: 1; } .pixelpay-loading>div>img:last-child { transform: translateX(-32px); } .pixelpay-loading.show-loading>div>img:last-child { opacity: 1; transform: translateX(0px); } .pixelpay-loading>p { margin-top: 10px; width: 220px; height: 4px; border-radius: 2px; background-color: rgba(255, 255, 255, 0.2); box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); overflow: hidden; position: relative; } .pixelpay-loading>p>span { display: block; position: absolute; content: ""; left: -200px; width: 200px; height: 4px; background-color: rgba(255, 255, 255, 0.95); animation: loadingBarSDK 1s linear infinite; -moz-animation: loadingBarSDK 1s linear infinite; -webkit-animation: loadingBarSDK 1s linear infinite; border-radius: 0.5rem; } .pixelpay-loading.show-loading { visibility: visible; opacity: 1; } .pixelpay-loading.show-loading.closing-loading { cursor: default; opacity: 0 !important; } @keyframes loadingBarSDK { from { left: -200px; width: 30%; } 50% { width: 30%; } 70% { width: 70%; } 80% { left: 50%; } 95% { left: 120%; } to { left: 100%; } }'),e)},show:()=>{if(s.default.checkIsBrowser()){if(document.dispatchEvent(new Event("pxshowloading")),document.querySelector("[without-sdk-loading]"))return;u._container(),setTimeout(()=>{u._container().classList.add("show-loading")},100)}},hide:()=>{if(s.default.checkIsBrowser()){if(document.dispatchEvent(new Event("pxhideloading")),document.querySelector("[without-sdk-loading]"))return;u._container().classList.add("closing-loading"),setTimeout(()=>{u._container().classList.remove("show-loading","closing-loading")},300)}}};a.default=u},1850(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r={is_open:!1,el:null,_init:()=>(r.is_open=!1,r.el=document.querySelector("body .pixelpay-modal"),r.el||(r.el=r._createModalElement()),r.el),_createContainer:()=>{const e=document.createElement("div");return e.classList.add("pixelpay-modal-container"),e.setAttribute("aria-modal","true"),e},_createLoading:()=>{const e=document.createElement("p");return e.innerHTML="<span></span>",e},_createModalElement:()=>{const e=document.createElement("div");return e.classList.add("pixelpay-modal"),e.setAttribute("aria-hidden","true"),e.appendChild(r._createContainer()),e.appendChild(r._createLoading()),document.querySelector("body").appendChild(e),i.default.addStylesById("modal",'.pixelpay-modal { font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif; margin: 0px; padding: 16px; display: flex; position: fixed; justify-content: center; flex-direction: column; align-items: center; z-index: 999999; top: 0; right: 0; left: 0; bottom: 0; width: 100%; max-width: 100vw; transition: 0.3s opacity; visibility: hidden; opacity: 0; cursor: progress; border-radius: 3px; } .pixelpay-modal.open-modal { visibility: visible; opacity: 1; } .pixelpay-modal.open-modal .pixelpay-modal-container { transform: translateY(0); } .pixelpay-modal * { margin: 0px; padding: 0px; } .pixelpay-modal>p { width: 100%; min-width: 250px; max-width: 500px; margin-top: 10px; height: 4px; border-radius: 2px; background-color: rgba(255, 255, 255, 0.2); box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); overflow: hidden; position: relative; } .pixelpay-modal>p>span { display: block; position: absolute; content: ""; left: -200px; width: 200px; height: 4px; background-color: rgba(255, 255, 255, 0.95); animation: loadingBarSDK 1s linear infinite; -moz-animation: loadingBarSDK 1s linear infinite; -webkit-animation: loadingBarSDK 1s linear infinite; border-radius: 0.5rem; } .pixelpay-modal .pixelpay-modal-container { display: block; width: 100%; min-width: 250px; min-height: 400px; max-width: 500px; max-height: 600px; margin: 0 auto; background-color: transparent; text-align: center; will-change: transform; transform: translateY(-15%); transition: 0.3s transform cubic-bezier(0, 0, 0.2, 1); border-radius: 3px; background-color: #fff; box-shadow: 0 6px 22px -3px #000; cursor: default; } .pixelpay-modal[data-size="01"] .pixelpay-modal-container { width: 250px; max-width: 250px; } .pixelpay-modal[data-size="02"] .pixelpay-modal-container { width: 390px; max-width: 390px; } .pixelpay-modal[data-size="03"] .pixelpay-modal-container { width: 500px; max-width: 500px; } .pixelpay-modal[data-size="04"] .pixelpay-modal-container { width: 600px; max-width: 600px; } .pixelpay-modal[data-size="05"] .pixelpay-modal-container { width: 100%; height: 100%; max-width: 100%; max-height: 100%; } .pixelpay-modal[data-size="01"]>p { width: 250px; } .pixelpay-modal[data-size="02"]>p { width: 390px; } .pixelpay-modal[data-size="03"]>p { width: 500px; } .pixelpay-modal[data-size="04"]>p { width: 600px; } .pixelpay-modal[data-size="05"]>p { width: 100%; } .pixelpay-modal .pixelpay-modal-container > iframe { display: block; } .pixelpay-modal-iframe { width: 100%; height: 100%; max-height: 100vh; background-color: #fff; opacity: 1; transition: opacity 0.3s ease; border-radius: 3px; } @keyframes rotating { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }'),e},show:()=>{if(i.default.checkIsBrowser()){if(document.dispatchEvent(new Event("pxshowmodal")),document.querySelector("[without-sdk-modal]"))return;r._init(),setTimeout(()=>{r.el.classList.add("open-modal"),r.el.setAttribute("aria-hidden","true"),r.is_open=!0},100)}},hide:()=>{if(i.default.checkIsBrowser()){if(document.dispatchEvent(new Event("pxshowmodal")),document.querySelector("[without-sdk-modal]"))return;r._init(),setTimeout(()=>{r.el.classList.remove("pixelpay-modal-fullscreen"),r.el.classList.remove("open-modal"),r.el.setAttribute("aria-hidden","false");const e=r.el.querySelector(".pixelpay-modal-iframe");e&&e.parentNode.removeChild(e),r.is_open=!1,r.el.dispatchEvent(new Event("onclose"))},300)}}};a.default=r},5473(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(6266)),r=n(t(7473)),o=n(t(9411));a.default=class{constructor(e){this.transaction=e,this.transaction.source="router"}async init(e){const a=new i.default(this.parsePayload(e));return i.default.busy=!1,this.transaction instanceof r.default?await a.doSale(this.transaction):await a.doAuth(this.transaction)}parsePayload(e){const a=JSON.parse(atob(e)),t=new o.default;return t.setupEnvironment(a.env),t.setupCredentials(a.auth_key,a.auth_hash),t.setupEndpoint(a.endpoint),t.setupLanguage(this.transaction.lang),a.auth_user&&t.setupPlatformUser(a.auth_user),t}}},2423(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{constructor(){this.address=void 0,this.country=void 0,this.state=void 0,this.city=void 0,this.zip=void 0,this.phone=void 0}}},8888(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{constructor(){this.number=void 0,this.cvv2=void 0,this.expire_month=void 0,this.expire_year=void 0,this.cardholder=void 0}getExpireFormat(){if(!this.expire_month||!this.expire_year)return"";const e=String(this.expire_year),a=("00"+this.expire_month).slice(-2);return e.substr(-2)+a}}},8113(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{constructor(){this.code=void 0,this.title=void 0,this.price=void 0,this.qty=void 0,this.tax=void 0,this.total=void 0,this.price=0,this.qty=1,this.tax=0,this.total=0}totalize(){return this.total=this.price*this.qty,this}}},7424(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.default=class{constructor(){this.id=void 0,this.currency=void 0,this.amount=void 0,this.tax_amount=void 0,this.shipping_amount=void 0,this.content=void 0,this.extras=void 0,this.note=void 0,this.callback_url=void 0,this.customer_name=void 0,this.customer_email=void 0,this.content=[],this.extras={}}addItem(e){return this.content.push(e),this.totalize(),this}addExtra(e,a){return this.extras[e]=a,this}totalize(){return this.content.length?(this.amount=0,this.tax_amount=0,this.content.forEach(e=>{e.totalize(),this.amount+=e.total,this.tax_amount+=e.tax*e.qty}),this):this}}},9411(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(3514));a.default=class{constructor(){this.auth_key=void 0,this.auth_hash=void 0,this.auth_user=void 0,this.endpoint=void 0,this.environment=void 0,this.lang=void 0,this.sdk=void 0,this.sdk_version=void 0,this.headers=void 0,this.endpoint="https://pixelpay.app"}setupEndpoint(e){this.endpoint=e}setupCredentials(e,a){this.auth_key=e,this.auth_hash=a}setupPlatformUser(e){this.auth_user=e}setupEnvironment(e){this.environment=e}setupSandbox(){this.endpoint="https://pixelpay.dev",this.auth_key="1234567890",this.auth_hash=i.default.hash("MD5","@s4ndb0x-abcd-1234-n1l4-p1x3l"),this.environment=r.default.SANDBOX}setupLanguage(e){this.lang=e}setupHeaders(e){this.headers=e}}},235(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(4048));class o extends r.default{setOrder(e){this.order_id=e.id,this.order_currency=e.currency,this.order_amount=i.default.parseAmount(e.amount)}}a.default=o},6402(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(4048));class r extends i.default{}a.default=r},388(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823));class r extends i.default{constructor(){super(...arguments),this.payment_uuid=null,this.transaction_approved_amount=null}}a.default=r},3331(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823)),r=n(t(634));class o extends i.default{constructor(){super(...arguments),this.number=null,this.cvv2=null,this.expire_month=null,this.expire_year=null,this.cardholder=null,this.address=null,this.country=null,this.state=null,this.city=null,this.zip=null,this.phone=null,this.email=null}setCard(e){this.number=r.default.cleanString(e.number),this.cvv2=e.cvv2,this.cardholder=r.default.trimValue(e.cardholder),e.expire_month&&(this.expire_month=("00"+e.expire_month).slice(-2)),e.expire_year&&(this.expire_year=String(e.expire_year))}setBilling(e){this.address=r.default.trimValue(e.address),this.country=e.country,this.state=e.state,this.city=r.default.trimValue(e.city),this.zip=e.zip,this.phone=e.phone}}a.default=o},4341(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823));class r extends i.default{constructor(){super(...arguments),this.identifier=null,this.payload=null,this.card_token=null,this.authenticate_token=!1}}a.default=r},5634(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823)),r=n(t(235)),o=n(t(7473));class s extends i.default{constructor(){super(...arguments),this.card_token=null,this.card_number=null,this.card_cvv=null,this.card_expire=null,this.billing_address=null,this.billing_country=null,this.billing_state=null,this.billing_city=null,this.billing_zip=null,this.billing_phone=null,this.customer_name=null,this.customer_email=null,this.order_id=null,this.order_currency=null,this.order_amount=null,this.installment=null,this.secure_payload=null,this.apple_pay=null,this.google_pay=null,this.click_to_pay=null,this.reference=null,this.browser_java_enabled="false",this.browser_header=null,this.browser_language=null,this.browser_color_depth=null,this.browser_screen_height=null,this.browser_screen_width=null,this.browser_time_zone=null,this.user_agent=null,this.ip_address=null,this.device_channel="Browser",this.browser_javascript_enabled="true",this.authenticate_token=!1}fromPaymentTransaction(e){this.card_token=e.card_token,this.card_number=e.card_number,this.card_expire=e.card_expire,this.billing_address=e.billing_address,this.billing_country=e.billing_country,this.billing_state=e.billing_state,this.billing_city=e.billing_city,this.billing_zip=e.billing_zip,this.billing_phone=e.billing_phone,this.customer_name=e.customer_name,this.customer_email=e.customer_email,this.order_id=e.order_id,this.order_currency=e.order_currency,this.order_amount=e.order_amount,this.secure_payload=e.secure_payload,this.apple_pay=e.apple_pay,this.google_pay=e.google_pay,this.click_to_pay=e.click_to_pay,this.authenticate_token=e instanceof r.default,e instanceof o.default&&(this.installment=e.installment_months)}setRequiredEMVFields(){this.browser_java_enabled||(this.browser_java_enabled="function"==typeof navigator.javaEnabled?navigator.javaEnabled().toString():"false"),this.browser_language||(this.browser_language=navigator.language),this.browser_color_depth||(this.browser_color_depth=screen.colorDepth.toString()),this.browser_screen_height||(this.browser_screen_height=screen.height.toString()||window.innerHeight.toString()),this.browser_screen_width||(this.browser_screen_width=screen.width.toString()||window.innerWidth.toString()),this.browser_time_zone||(this.browser_time_zone=(new Date).getTimezoneOffset().toString()),this.user_agent||(this.user_agent=navigator.userAgent)}}a.default=s},4048(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(2823));class o extends r.default{constructor(){super(...arguments),this.payment_uuid=null,this.card_token=null,this.card_number=null,this.card_cvv=null,this.card_expire=null,this.card_holder=null,this.billing_address=null,this.billing_country=null,this.billing_state=null,this.billing_city=null,this.billing_zip=null,this.billing_phone=null,this.customer_name=null,this.customer_email=null,this.customer_fingerprint=null,this.order_id=null,this.order_currency=null,this.order_amount=null,this.order_tax_amount=null,this.order_shipping_amount=null,this.order_content=[],this.order_extras={},this.order_note=null,this.order_callback=null,this.authentication_request=!1,this.authentication_identifier=null,this.secure_payload=null,this.apple_pay=null,this.google_pay=null,this.click_to_pay=null,this.source=null,this.before_execute=null}setCard(e){this.card_number=i.default.cleanString(e.number),this.card_cvv=e.cvv2,this.card_expire=e.getExpireFormat(),this.card_holder=i.default.trimValue(e.cardholder)}setCardToken(e=null){this.card_token=e}setBilling(e){this.billing_address=i.default.trimValue(e.address),this.billing_country=e.country,this.billing_state=e.state,this.billing_city=i.default.trimValue(e.city),this.billing_zip=e.zip,this.billing_phone=e.phone}setOrder(e){this.order_id=e.id,this.order_currency=e.currency,this.order_amount=i.default.parseAmount(e.amount),this.order_tax_amount=i.default.parseAmount(e.tax_amount),this.order_shipping_amount=i.default.parseAmount(e.shipping_amount),this.order_content=e.content,this.order_extras=e.extras,this.order_note=i.default.trimValue(e.note),this.order_callback=e.callback_url,this.customer_name=i.default.trimValue(e.customer_name),this.customer_email=e.customer_email}withAuthenticationRequest(){this.authentication_request=!0}setBeforeExecute(e){this.before_execute=e}async doBeforeExecute(){this.before_execute&&await this.before_execute()}}a.default=o},7473(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(4048));class o extends r.default{constructor(){super(...arguments),this.installment_type=null,this.installment_months=null,this.points_redeem_amount=null}setInstallment(e,a){this.installment_months=String(e),this.installment_type=a}withPointsRedeemAmount(e){this.points_redeem_amount=i.default.parseAmount(e)}}a.default=o},4282(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823));class r extends i.default{constructor(){super(...arguments),this.payment_uuid=null}}a.default=r},2210(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2823));class r extends i.default{constructor(){super(...arguments),this.payment_uuid=null,this.void_reason=null,this.void_signature=null}}a.default=r},3514(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class t{}a.default=t,t.LIVE="live",t.TEST="test",t.SANDBOX="sandbox",t.STAGING="staging"},1299(e,a,t){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,a,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(a,t);i&&!("get"in i?!a.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return a[t]}}),Object.defineProperty(e,n,i)}:function(e,a,t,n){void 0===n&&(n=t),e[n]=a[t]}),i=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&n(a,e,t);return i(a,e),a};Object.defineProperty(a,"__esModule",{value:!0});const o=r(t(5021)),s=r(t(4363)),l=r(t(7639));a.default={countriesList:()=>o||{},statesList:e=>Object.prototype.hasOwnProperty.call(s||{},e)&&s[e]||{},formatsList:e=>Object.prototype.hasOwnProperty.call(l||{},e)&&l[e]||{}}},1935(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},4575(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},5037(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},7071(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},2046(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},4756(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},7867(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},2701(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},3596(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},9250(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},8618(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(2624));class r extends i.default{}a.default=r},1020(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(4013)),r=n(t(7473)),o=n(t(6402)),s=n(t(1742));class l extends i.default{free(){l.runningTransaction=null}authenticationLookup(e){return this.post("api/v2/cardinal/authentication/lookup",e)}authenticationContinue(e){return this.post("api/v2/cardinal/authentication/continue",e)}async retryTransaction(e){if(await e.doBeforeExecute(),l.runningTransaction)return l.runningTransaction;if(!(e instanceof r.default||e instanceof o.default))throw this.free(),new s.default("The request payment type is invalid.");const a="api/v2/transaction/"+(e instanceof r.default?"sale":"auth");return l.runningTransaction=this.post(a,e).finally(this.free),l.runningTransaction}}a.default=l,l.runningTransaction=null},4787(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(2823)),o=n(t(4013)),s=n(t(7867)),l=n(t(9250)),u=n(t(2711)),c=n(t(1574)),d=n(t(1742)),h="api/v2/tokenization/card";class p extends o.default{async vaultCard(e){u.default.show();const a=await this.post(h,e);return u.default.hide(),a}async authCard(e){if(!i.default.checkIsBrowser())throw new d.default("This platform not support 3DS transactions");try{u.default.show();const a=await this.post(h+"/auth",e);return a instanceof l.default&&a.data.authentication_identifier?a:a instanceof s.default&&"songbird"==a.data.transaction_type?await new c.default(this.settings,e).init(a.data.payload,a.data.collection_url):(c.default.clearAllEvents(),a)}catch(e){throw c.default.clearAllEvents(),e}finally{u.default.hide()}}async updateCard(e,a){u.default.show();const t=await this.put(h+"/"+e,a);return u.default.hide(),t}showCard(e){return this.get(h+"/"+e,new r.default)}showCards(e){let a=e.join(":");return this.get(h+"/"+a.split(" ").join(""),new r.default)}async deleteCard(e){u.default.show();const a=await this.delete(h+"/"+e,new r.default);return u.default.hide(),a}}a.default=p},6266(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=n(t(4013)),o=n(t(1742)),s=n(t(2350)),l=n(t(2711)),u=n(t(7867)),c=n(t(1574)),d=n(t(5184)),h=n(t(1598)),p=n(t(5473));class f extends r.default{constructor(e){super(e)}static withConcurrency(){f.concurrent=!0}async doSale(e){var a,t;if(await e.doBeforeExecute(),e.authentication_request&&!i.default.checkIsBrowser())throw new o.default("This platform not support 3DS transactions");if(!f.concurrent&&f.busy)throw new s.default("There's an active transaction still running.");try{l.default.show(),f.busy=!0;const n=await this.post("api/v2/transaction/sale",e);if(n instanceof u.default)switch(null===(a=n.data)||void 0===a?void 0:a.transaction_type){case"songbird":return await new c.default(this.settings,e).init(n.data.payload,null===(t=n.data)||void 0===t?void 0:t.collection_url);case"payload":return await new d.default(this.settings).loadPayload(n.data.payload);case"router":return await new p.default(e).init(n.data.payload);default:throw new s.default("This type of transaction is invalid")}return c.default.clearAllEvents(),n}catch(e){throw c.default.clearAllEvents(),e}finally{l.default.hide(),f.busy=!1}}async doAuth(e){var a,t;if(await e.doBeforeExecute(),e.authentication_request&&!i.default.checkIsBrowser())throw new o.default("This platform not support 3DS transactions");if(!f.concurrent&&f.busy)throw new s.default("There's an active transaction still running.");try{l.default.show(),f.busy=!0;const n=await this.post("api/v2/transaction/auth",e);if(n instanceof u.default)switch(null===(a=n.data)||void 0===a?void 0:a.transaction_type){case"songbird":return await new c.default(this.settings,e).init(n.data.payload,null===(t=n.data)||void 0===t?void 0:t.collection_url);case"payload":return await new d.default(this.settings).loadPayload(n.data.payload);case"router":return await new p.default(e).init(n.data.payload);default:throw new s.default("This type of transaction is invalid")}return c.default.clearAllEvents(),n}catch(e){throw c.default.clearAllEvents(),e}finally{l.default.hide(),f.busy=!1}}async doCapture(e){l.default.show();const a=await this.post("api/v2/transaction/capture",e);return l.default.hide(),a}async doVoid(e){l.default.show();const a=await this.post("api/v2/transaction/void",e);return l.default.hide(),a}getStatus(e){return this.post("api/v2/transaction/status",e)}verifyPaymentHash(e,a,t){if(i.default.checkIsBrowser())throw new o.default("This platform not support hash validations in browser/frontend");const n=[a,this.settings.auth_key,t].join("|");return e===i.default.hash("MD5",n)}getCybersourceFingerprint(e,a){return h.default.getFingerprint(e,a)}}a.default=f,f.busy=!1,f.concurrent=!1},1333(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default="2.4.11"},8743(e,a,t){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});const i=n(t(634)),r=t(3909);i.default.checkIsBrowser()&&(window.Entities=r.Entities,window.Exceptions=r.Exceptions,window.Models=r.Models,window.Requests=r.Requests,window.Resources=r.Resources,window.Responses=r.Responses,window.Services=r.Services)},7526(e,a){"use strict";a.byteLength=function(e){var a=s(e),t=a[0],n=a[1];return 3*(t+n)/4-n},a.toByteArray=function(e){var a,t,r=s(e),o=r[0],l=r[1],u=new i(function(e,a,t){return 3*(a+t)/4-t}(0,o,l)),c=0,d=l>0?o-4:o;for(t=0;t<d;t+=4)a=n[e.charCodeAt(t)]<<18|n[e.charCodeAt(t+1)]<<12|n[e.charCodeAt(t+2)]<<6|n[e.charCodeAt(t+3)],u[c++]=a>>16&255,u[c++]=a>>8&255,u[c++]=255&a;2===l&&(a=n[e.charCodeAt(t)]<<2|n[e.charCodeAt(t+1)]>>4,u[c++]=255&a);1===l&&(a=n[e.charCodeAt(t)]<<10|n[e.charCodeAt(t+1)]<<4|n[e.charCodeAt(t+2)]>>2,u[c++]=a>>8&255,u[c++]=255&a);return u},a.fromByteArray=function(e){for(var a,n=e.length,i=n%3,r=[],o=16383,s=0,l=n-i;s<l;s+=o)r.push(u(e,s,s+o>l?l:s+o));1===i?(a=e[n-1],r.push(t[a>>2]+t[a<<4&63]+"==")):2===i&&(a=(e[n-2]<<8)+e[n-1],r.push(t[a>>10]+t[a>>4&63]+t[a<<2&63]+"="));return r.join("")};for(var t=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)t[o]=r[o],n[r.charCodeAt(o)]=o;function s(e){var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return-1===t&&(t=a),[t,t===a?0:4-t%4]}function l(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[63&e]}function u(e,a,t){for(var n,i=[],r=a;r<t;r+=3)n=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2]),i.push(l(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8287(e,a,t){"use strict";var n=t(7526),i=t(251);
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -8,12 +8,4 @@ export default class CaptureTransaction extends RequestBehaviour {
8
8
  * The total amount to capture, equal to or less than the authorized amount.
9
9
  */
10
10
  transaction_approved_amount: string;
11
- /**
12
- * Capture Transaction with tap to pay
13
- */
14
- tap_to_pay_request: boolean;
15
- /**
16
- * Enable Tap to Pay request
17
- */
18
- withTap2Pay(): void;
19
11
  }
@@ -15,16 +15,6 @@ class CaptureTransaction extends RequestBehaviour_1.default {
15
15
  * The total amount to capture, equal to or less than the authorized amount.
16
16
  */
17
17
  this.transaction_approved_amount = null;
18
- /**
19
- * Capture Transaction with tap to pay
20
- */
21
- this.tap_to_pay_request = false;
22
- }
23
- /**
24
- * Enable Tap to Pay request
25
- */
26
- withTap2Pay() {
27
- this.tap_to_pay_request = true;
28
18
  }
29
19
  }
30
20
  exports.default = CaptureTransaction;
@@ -1 +1 @@
1
- {"version":3,"file":"CaptureTransaction.js","sourceRoot":"","sources":["../../src/requests/CaptureTransaction.ts"],"names":[],"mappings":";;;;;AAAA,gFAAwD;AAExD,MAAqB,kBAAmB,SAAQ,0BAAgB;IAAhE;;QACC;;WAEG;QACH,iBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,gCAA2B,GAAW,IAAI,CAAC;QAE3C;;WAEG;QACH,uBAAkB,GAAY,KAAK,CAAC;IAQrC,CAAC;IANA;;OAEG;IACH,WAAW;QACV,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAChC,CAAC;CACD;AAtBD,qCAsBC"}
1
+ {"version":3,"file":"CaptureTransaction.js","sourceRoot":"","sources":["../../src/requests/CaptureTransaction.ts"],"names":[],"mappings":";;;;;AAAA,gFAAwD;AAExD,MAAqB,kBAAmB,SAAQ,0BAAgB;IAAhE;;QACC;;WAEG;QACH,iBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,gCAA2B,GAAW,IAAI,CAAC;IAC5C,CAAC;CAAA;AAVD,qCAUC"}
@@ -73,6 +73,10 @@ export default class LookupTransaction extends RequestBehaviour {
73
73
  * Wallet payload for Apple Pay transactions
74
74
  */
75
75
  apple_pay: string;
76
+ /**
77
+ * Wallet payload for Google Pay transactions
78
+ */
79
+ google_pay: string;
76
80
  /**
77
81
  * Wallet payload for Click to Pay transactions
78
82
  */
@@ -81,6 +81,10 @@ class LookupTransaction extends RequestBehaviour_1.default {
81
81
  * Wallet payload for Apple Pay transactions
82
82
  */
83
83
  this.apple_pay = null;
84
+ /**
85
+ * Wallet payload for Google Pay transactions
86
+ */
87
+ this.google_pay = null;
84
88
  /**
85
89
  * Wallet payload for Click to Pay transactions
86
90
  */
@@ -158,6 +162,7 @@ class LookupTransaction extends RequestBehaviour_1.default {
158
162
  this.order_amount = request.order_amount;
159
163
  this.secure_payload = request.secure_payload;
160
164
  this.apple_pay = request.apple_pay;
165
+ this.google_pay = request.google_pay;
161
166
  this.click_to_pay = request.click_to_pay;
162
167
  this.authenticate_token = request instanceof AuthTokenization_1.default;
163
168
  if (request instanceof SaleTransaction_1.default) {
@@ -1 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CAAC,oBAAoB,EAAE;YAC/B,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;SACpF;QAED,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC5B,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,CAAC;SACrE;QAED,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACrB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,SAAS,CAAC;SACtC;IACF,CAAC;CACD;AA1OD,oCA0OC"}
@@ -116,6 +116,10 @@ export default class PaymentTransaction extends RequestBehaviour {
116
116
  * Wallet payload for Apple Pay transactions
117
117
  */
118
118
  apple_pay: string;
119
+ /**
120
+ * Wallet payload for Google Pay transactions
121
+ */
122
+ google_pay: string;
119
123
  /**
120
124
  * Wallet payload for Click to Pay transactions
121
125
  */
@@ -124,10 +128,6 @@ export default class PaymentTransaction extends RequestBehaviour {
124
128
  * Internal processing flow of the transaction (e.g. router, proxy, etc)
125
129
  */
126
130
  source: string;
127
- /**
128
- * Activate Tap to Pay Request transaction
129
- */
130
- tap_to_pay_request: boolean;
131
131
  /**
132
132
  * Callback to execute before executing or retrying a transaction
133
133
  */
@@ -160,10 +160,6 @@ export default class PaymentTransaction extends RequestBehaviour {
160
160
  * Enable 3DS/EMV authentication request
161
161
  */
162
162
  withAuthenticationRequest(): void;
163
- /**
164
- * Enable Tap to Pay request
165
- */
166
- withTap2Pay(): void;
167
163
  /**
168
164
  * Set callback before executing transaction
169
165
  *
@@ -120,6 +120,10 @@ class PaymentTransaction extends RequestBehaviour_1.default {
120
120
  * Wallet payload for Apple Pay transactions
121
121
  */
122
122
  this.apple_pay = null;
123
+ /**
124
+ * Wallet payload for Google Pay transactions
125
+ */
126
+ this.google_pay = null;
123
127
  /**
124
128
  * Wallet payload for Click to Pay transactions
125
129
  */
@@ -128,10 +132,6 @@ class PaymentTransaction extends RequestBehaviour_1.default {
128
132
  * Internal processing flow of the transaction (e.g. router, proxy, etc)
129
133
  */
130
134
  this.source = null;
131
- /**
132
- * Activate Tap to Pay Request transaction
133
- */
134
- this.tap_to_pay_request = false;
135
135
  /**
136
136
  * Callback to execute before executing or retrying a transaction
137
137
  */
@@ -193,12 +193,6 @@ class PaymentTransaction extends RequestBehaviour_1.default {
193
193
  withAuthenticationRequest() {
194
194
  this.authentication_request = true;
195
195
  }
196
- /**
197
- * Enable Tap to Pay request
198
- */
199
- withTap2Pay() {
200
- this.tap_to_pay_request = true;
201
- }
202
196
  /**
203
197
  * Set callback before executing transaction
204
198
  *
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentTransaction.js","sourceRoot":"","sources":["../../src/requests/PaymentTransaction.ts"],"names":[],"mappings":";;;;;AAIA,8DAAsC;AACtC,gFAAwD;AAExD,MAAqB,kBAAmB,SAAQ,0BAAgB;IAAhE;;QACC;;WAEG;QACH,iBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,eAAU,GAAW,IAAI,CAAC;QAE1B;;WAEG;QACH,gBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,aAAQ,GAAW,IAAI,CAAC;QAExB;;WAEG;QACH,gBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,gBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,oBAAe,GAAW,IAAI,CAAC;QAE/B;;WAEG;QACH,oBAAe,GAAW,IAAI,CAAC;QAE/B;;WAEG;QACH,kBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,iBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,gBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,kBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,kBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,mBAAc,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AC5D,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,yBAAyB;QACxB,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,WAAW;QACV,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAChC,CAAC;IAED;;;;OAIG;IACH,gBAAgB,CAAC,QAA6B;QAC7C,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe;QACpB,IAAI,IAAI,CAAC,cAAc,EAAE;YACxB,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;SAC5B;IACF,CAAC;CACD;AAvPD,qCAuPC"}
1
+ {"version":3,"file":"PaymentTransaction.js","sourceRoot":"","sources":["../../src/requests/PaymentTransaction.ts"],"names":[],"mappings":";;;;;AAIA,8DAAsC;AACtC,gFAAwD;AAExD,MAAqB,kBAAmB,SAAQ,0BAAgB;IAAhE;;QACC;;WAEG;QACH,iBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,eAAU,GAAW,IAAI,CAAC;QAE1B;;WAEG;QACH,gBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,aAAQ,GAAW,IAAI,CAAC;QAExB;;WAEG;QACH,gBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,gBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,oBAAe,GAAW,IAAI,CAAC;QAE/B;;WAEG;QACH,oBAAe,GAAW,IAAI,CAAC;QAE/B;;WAEG;QACH,kBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,iBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,gBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,kBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,kBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QAC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CAAC;QAC5D,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,yBAAyB;QACxB,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACH,gBAAgB,CAAC,QAA6B;QAC7C,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe;QACpB,IAAI,IAAI,CAAC,cAAc,EAAE;YACxB,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;SAC5B;IACF,CAAC;CACD;AAhPD,qCAgPC"}
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.4.11-beta.0";
1
+ declare const _default: "2.4.11";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.4.11-beta.0';
3
+ exports.default = '2.4.11';
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelpay/sdk-core",
3
- "version": "2.4.11-beta.0",
3
+ "version": "2.4.11",
4
4
  "description": "PixelPay SDK toolkit",
5
5
  "main": "lib/index.js",
6
6
  "browser": "lib/browser/index.js",