(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["5a00666c"],{"2a12b":function(e,t,a){},"806f":function(e,t,a){"use strict";var n=a("2a12b"),i=a.n(n);i.a},c143:function(e,t,a){e.exports=a.p+"img/logo_google_pay.08feaaf9.png"},dcf9:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAABN2lDQ1BBZG9iZSBSR0IgKDE5OTgpAAAokZWPv0rDUBSHvxtFxaFWCOLgcCdRUGzVwYxJW4ogWKtDkq1JQ5ViEm6uf/oQjm4dXNx9AidHwUHxCXwDxamDQ4QMBYvf9J3fORzOAaNi152GUYbzWKt205Gu58vZF2aYAoBOmKV2q3UAECdxxBjf7wiA10277jTG+38yH6ZKAyNguxtlIYgK0L/SqQYxBMygn2oQD4CpTto1EE9AqZf7G1AKcv8ASsr1fBBfgNlzPR+MOcAMcl8BTB1da4Bakg7UWe9Uy6plWdLuJkEkjweZjs4zuR+HiUoT1dFRF8jvA2AxH2w3HblWtay99X/+PRHX82Vun0cIQCw9F1lBeKEuf1UYO5PrYsdwGQ7vYXpUZLs3cLcBC7dFtlqF8hY8Dn8AwMZP/fNTP8gAAAAJcEhZcwAAC9cAAAvXASV10vAAAAXOaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA2LjAtYzAwNSA3OS4xNjQ1OTAsIDIwMjAvMTIvMDktMTE6NTc6NDQgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zO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sQSnpW1G4SKtVa5KnDcX032bbkKC43GMVWI9qGlyJOxVZkqAN+ffm2DYkDGkQVoE5aLUYZ1KsK6xG88vrbRsSljQJawtKGpiGOb8wK6xF5/SkVlSQLmGBxDULuSNcrt8ZlnZUHmo2jvupKpE2YYHSzGejKNSsHc3yPRQEGarup0ukUVggD/Qc1HNlRVzfRUVN2iu9MQ2kVVigMJu5KCqi5tKGlhmLeuHM7JGmWVggJ+psdPZPrEUuYmQiWpBk6pzItAsLVOvhRlRQI+o6UnHSgaI5LrdtSBxkQVggQc1AK8a1dk2pik1o8XGhZTtiIyvCAg2L01FtT5cjUd9EC49xtg2JkywJCySuK3FXXO1IVFEfZ+ccWRMWaON6KnAzbmX/dKC54CQcyPuLG9ejG8LyOgoUbEZFd12IoZ+OBG+1pkJSZLHHKvAaGhZNp1YkzdUotux124YkRZaFBQo9mQAMx17xsukoKiOtfrZQZHUoLOax/M9zyGf0yQTvPRv5quqmpyqQ9R6rmEdQ75VEfYMF6NiVsdShqKA+eqxiHkFf9kWo9OSgCK/9Jjo38SVUR72uqTdhgUpXH4uOeLsdVQ1sAg4Ieb01qIregyjspQH1KawCy4AhSFRN6Ei3A0JcZyZKVctMZEIU/B+IlXgQbPpUXAAAAABJRU5ErkJggg=="},f824:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("q-page",{attrs:{"data-test":e.CypressTarget("PaymentPage"),padding:""}},["free_sale"!==e.method?a("div",{staticClass:"row"},[e.paymentChannels.length<=0&&!e.processing?a("sad-empty-error",{attrs:{text:e.$t("error.checkout.noPaymentChannels")},on:{update:e.getPaymentChannels}}):a("div",{staticClass:"col-xs-12 col-sm-12 col-md-12 col-lg-11 col-xl-10 relative-position"},[a("q-list",{staticClass:"q-py-none q-mb-md",attrs:{separator:""}},[a("q-collapsible",{staticClass:"q-pb-md q-pt-md",attrs:{"data-test":e.CypressTarget("PurchaseSummary"),label:e.$t("label.purchaseSummary"),group:"paymentMethods",icon:"far fa-shopping-cart","collapse-icon":"expand_more"},model:{value:e.showSummary,callback:function(t){e.showSummary=t},expression:"showSummary"}},[a("purchase-summary")],1)],1),e.hasBalance&&e.hasWalletPayment?a("q-list",{attrs:{"data-test":e.CypressTarget("PaymentMethods"),separator:"",sparse:""}},e._l(e.walletPaymentData,function(t,n){return a("wallet-payment",{key:n,attrs:{"payment-type":n,"pix-data":e.pixData,"wallet-payment-data":t,"status-modal":e.openedModal,advertisement:e.advertisement_info,"is-microform":e.isMicroform,"is-current":"inti_wallet"===e.method&&e.walletPaymentChannel.type===n,"is-three-ds-enabled":e.is3DSEnabledOnly,"risk-management-configured":e.riskManagementConfigured},on:{"form-data":e.updateCartData,"try-again":e.tryAgain,"pix-success":function(){return e.cleanPixData(!0)},"pix-failed":function(){return e.cleanPixData(!1)},show:function(a){e.openWalletMethod({type:n,paymentData:t})},payment:e.beforePayment}})})):e.paymentChannels.length>0?a("q-list",{attrs:{"data-test":e.CypressTarget("PaymentMethods"),separator:"",sparse:""}},["LCPd6BrPc9VleKKjg__W"===e.entity?a("div",[e.isMethodAvailable("ame")?a("ame-payment",{attrs:{"payment-response":e.paymentResponse,opened:!0,"status-modal":e.openedModal,advertisement:e.advertisement_info,"ame-data":e.ameData,"is-current":"ame"===e.method},on:{show:function(t){e.openMethod("ame")},payment:e.payment,success:e.successWallet,fail:e.failWallet,couponApplied:function(t){e.coupon=t}}}):e._e(),e.isMethodAvailable("credit_card")?a("q-collapsible",{staticClass:"q-pb-md q-pt-md",attrs:{"data-test":e.CypressTarget("CreditCard"),label:e.$t("field.payment.creditCard.method"),sublabel:e.creditCardSublabel,opened:1===e.paymentChannels.length,group:"paymentMethods",icon:"far fa-credit-card","collapse-icon":"expand_more"},on:{show:function(t){e.openMethod("credit_card")}}},[a("credit-card-payment",{attrs:{"payment-response":e.paymentResponse,opened:!0,"status-modal":e.openedModal,advertisement:e.advertisement_info,"card-installments":e.cardInstallments,"is-microform":e.isMicroform,"card-brand-select":e.is3DSEnabled,"is-current":"credit_card"===e.method,"risk-management-configured":e.riskManagementConfigured},on:{"form-data":e.updateCartData,"try-again":e.tryAgain,"show-error":e.showError,payment:e.beforePayment,couponApplied:function(t){e.coupon=t}}})],1):e._e()],1):a("div",[e.isMethodAvailable("google_pay")?a("q-collapsible",{staticClass:"q-pb-md q-pt-md",attrs:{"data-test":e.CypressTarget("GooglePay"),label:e.$t("field.payment.googlePay.method"),sublabel:e.$t("field.payment.googlePay.sublabel"),opened:1===e.paymentChannels.length,avatar:e.googlePayIconTop,group:"paymentMethods","collapse-icon":"expand_more"},on:{show:function(t){e.openMethod("google_pay")}}},[a("google-pay-payment",{attrs:{"payment-response":e.paymentResponse,advertisement:e.advertisement_info,opened:1===e.paymentChannels.length,"status-modal":e.openedModal,"google-pay-data":e.googlePayData,"card-brand-select":e.is3DSEnabled,"total-amount":e.getTicketsAmount("google_pay"),"is-current":"google_pay"===e.method,"auth-params":e.googlePayAuthParams},on:{"form-data":e.updateCartData,payment:e.beforePayment,success:e.successWallet,fail:e.failWallet,couponApplied:function(t){e.coupon=t}}})],1):e._e(),e.isMethodAvailable("pix")?a("q-collapsible",{staticClass:"q-pb-md q-pt-md",attrs:{"data-test":e.CypressTarget("Pix"),label:e.$t("field.payment.pix.method"),sublabel:e.$t("field.payment.pix.sublabel"),opened:1===e.paymentChannels.length,avatar:e.pixIconTop,group:"paymentMethods","collapse-icon":"expand_more"},on:{show:function(t){e.openMethod("pix")}}},[a("pix-payment",{attrs:{"payment-response":e.paymentResponse,advertisement:e.advertisement_info,opened:1===e.paymentChannels.length,"status-modal":e.openedModal,"pix-data":e.pixData,"is-current":"pix"===e.method},on:{show:function(t){e.openMethod("pix")},payment:e.payment,success:e.successWallet,fail:e.failWallet,couponApplied:function(t){e.coupon=t}}})],1):e._e(),e.isMethodAvailable("pagbank")?a("pagbank-payment",{attrs:{"payment-response":e.paymentResponse,advertisement:e.advertisement_info,opened:1===e.paymentChannels.length,"status-modal":e.openedModal,"pagbank-data":e.pagbankData,"is-current":"pagbank"===e.method},on:{show:function(t){e.openMethod("pagbank")},payment:e.payment,success:e.successWallet,fail:e.failWallet,couponApplied:function(t){e.coupon=t}}}):e._e(),e.isMethodAvailable("credit_card")?a("q-collapsible",{staticClass:"q-pb-md q-pt-md",attrs:{"data-test":e.CypressTarget("CreditCard"),label:e.$t("field.payment.creditCard.method"),sublabel:e.creditCardSublabel,opened:1===e.paymentChannels.length,group:"paymentMethods",icon:"far fa-credit-card","collapse-icon":"expand_more"},on:{show:function(t){e.openMethod("credit_card")}}},[a("credit-card-payment",{attrs:{"payment-response":e.paymentResponse,advertisement:e.advertisement_info,opened:!0,"status-modal":e.openedModal,"card-installments":e.cardInstallments,"is-microform":e.isMicroform,"card-brand-select":e.is3DSEnabled,"is-current":"credit_card"===e.method,"risk-management-configured":e.riskManagementConfigured},on:{"form-data":e.updateCartData,"try-again":e.tryAgain,"show-error":e.showError,payment:e.beforePayment,couponApplied:function(t){e.coupon=t}}})],1):e._e(),e.isMethodAvailable("picpay")?a("pic-pay-payment",{attrs:{"payment-response":e.paymentResponse,opened:1===e.paymentChannels.length,"status-modal":e.openedModal,advertisement:e.advertisement_info,"wallet-data":e.walletData,"is-current":"picpay"===e.method},on:{show:function(t){e.openMethod("picpay")},payment:e.payment,success:e.successWallet,fail:e.failWallet,couponApplied:function(t){e.coupon=t}}}):e._e(),e.isMethodAvailable("boleto")&&e.isBrazilian?a("boleto-payment",{attrs:{"payment-response":e.paymentResponse,opened:1===e.paymentChannels.length,"status-modal":e.openedModal.boleto,advertisement:e.advertisement_info,"is-current":"boleto"===e.method},on:{show:function(t){e.openMethod("boleto")},payment:e.payment,couponApplied:function(t){e.coupon=t}}}):e._e(),e.isMethodAvailable("ame")?a("ame-payment",{attrs:{"payment-response":e.paymentResponse,opened:1===e.paymentChannels.length,"status-modal":e.openedModal,advertisement:e.advertisement_info,"ame-data":e.ameData,"is-current":"ame"===e.method},on:{show:function(t){e.openMethod("ame")},payment:e.payment,success:e.successWallet,fail:e.failWallet,couponApplied:function(t){e.coupon=t}}}):e._e()],1)]):e._e(),a("status-loading-inner",{attrs:{visible:e.loading}})],1)],1):e._e(),a("status-loading-inner",{attrs:{visible:e.processing,text:e.$t(e.cartFinalTotal<=0?"wait.paymentProcess.title":"loading.paymentChannels")}}),e.openedModal.free?a("modal-status-payment-success",{attrs:{advertisement:e.advertisement_info,title:e.isCredentialOrder?e.$t("modal.checkout.status.successFreeCredential.title"):e.$t("modal.checkout.status.successFreeSale.title"),message:e.isCredentialOrder?e.$t("modal.checkout.status.successFreeCredential.msg"):e.$t("modal.checkout.status.successFreeSale.msg"),color:e.SET_COLOR.paymentStatus.success},model:{value:e.openedModal.free,callback:function(t){e.$set(e.openedModal,"free",t)},expression:"openedModal.free"}},[e.canDownloadPdf?a("q-btn",{directives:[{name:"track-click",rawName:"v-track-click:button",value:{category:"Navegação",label:"Pagamento -> Resumo da Compra"},expression:"{category: 'Navegação', label: 'Pagamento -> Resumo da Compra'}",arg:"button"}],attrs:{slot:"buttons","data-test":e.CypressTarget("GoNextScreen"),label:e.isCredentialOrder?e.$t("button.viewOrderCredential"):e.$t("button.viewOrder"),color:"green-10"},on:{click:e.goToResume},slot:"buttons"}):e._e()],1):e._e(),e.openedModal.reserved?a("modal-status-payment-success",{attrs:{advertisement:e.advertisement_info,"static-title":e.$t("modal.checkout.status.successReservation.title"),"static-message":e.$t("modal.checkout.status.successReservation.msg"),color:"orange-3"},model:{value:e.openedModal.reserved,callback:function(t){e.$set(e.openedModal,"reserved",t)},expression:"openedModal.reserved"}},[e.canDownloadPdf?a("q-btn",{directives:[{name:"track-click",rawName:"v-track-click:button",value:{category:"Navegação",label:"Pagamento -> Resumo da Compra"},expression:"{category: 'Navegação', label: 'Pagamento -> Resumo da Compra'}",arg:"button"}],attrs:{slot:"buttons","data-test":e.CypressTarget("GoNextScreen"),label:e.$t("button.viewOrder"),color:"primary"},on:{click:e.goToResume},slot:"buttons"}):e._e()],1):e._e(),e.openWaitingPaymentModal?a("waiting-payment-modal",{attrs:{color:e.SET_COLOR.paymentStatus.success},model:{value:e.openWaitingPaymentModal,callback:function(t){e.openWaitingPaymentModal=t},expression:"openWaitingPaymentModal"}}):e._e(),e.openValidationOderModal?a("order-validation-modal",{attrs:{"order-code":e.cartOrderCode},on:{closeModal:function(t){e.openValidationOderModal=!1}},model:{value:e.openValidationOderModal,callback:function(t){e.openValidationOderModal=t},expression:"openValidationOderModal"}}):e._e()],1)},i=[];n._withStripped=!0;a("6762"),a("2fdb");var r=a("ad54"),s=a.n(r),o=(a("a481"),a("96cf"),a("c973")),c=a.n(o),d=(a("7514"),a("895c")),l=a.n(d),u=a("f7cd"),m=a.n(u),h=(a("ac6a"),a("3156")),p=a.n(h),y=a("2f62"),g=a("57d5"),f="credit_card_bill_code",b="payment_authentication_3ds",k=a("f2e0"),C=null,v=null;function A(){return C.getThreeDsCode()}function D(){return v}function M(e){v=e.transactionId,C.InitChallenge(e.acsUrl,e.pareq,e.authenticationTransactionId)}var w=a("d2d2"),P=a("0190"),I=a("c5ce"),x=a("9a10"),R=a("6f74"),O=a("dcf9"),S=a.n(O),N=a("c143"),T=a.n(N),q="https://services.byinti.com/neofront-v3/",E={name:"CheckoutPayment",components:{StatusLoadingInner:function(){return a.e("2d0dd432").then(a.bind(null,"8147"))},BoletoPayment:function(){return Promise.all([a.e("luxon"),a.e("2d226d26"),a.e("2d0a44aa"),a.e("2d0dacf8"),a.e("8ae60bda")]).then(a.bind(null,"d261"))},CreditCardPayment:function(){return Promise.all([a.e("2d226d26"),a.e("2d0dacf8"),a.e("2d0cbac7"),a.e("068af89b"),a.e("2d23778f")]).then(a.bind(null,"faec"))},PicPayPayment:function(){return Promise.all([a.e("luxon"),a.e("2d226d26"),a.e("2d0a44aa"),a.e("2d0dacf8"),a.e("68fa4039")]).then(a.bind(null,"a145"))},AmePayment:function(){return Promise.all([a.e("luxon"),a.e("2d226d26"),a.e("2d0a44aa"),a.e("2d0dacf8"),a.e("5e9f9e76")]).then(a.bind(null,"2f71"))},PixPayment:function(){return Promise.all([a.e("core-js"),a.e("babel"),a.e("qrious"),a.e("vue-qrious"),a.e("350231ea")]).then(a.bind(null,"ee5c"))},GooglePayPayment:function(){return Promise.all([a.e("2d226d26"),a.e("2d0dacf8"),a.e("2d0cbac7"),a.e("068af89b"),a.e("0c27d12d")]).then(a.bind(null,"2400"))},PagbankPayment:function(){return Promise.all([a.e("core-js"),a.e("babel"),a.e("qrious"),a.e("vue-qrious"),a.e("4e2baa0a")]).then(a.bind(null,"d7d1"))},ModalStatusPaymentSuccess:function(){return Promise.all([a.e("2d0d2bce"),a.e("2d0b2b76"),a.e("732d318f")]).then(a.bind(null,"cdd6"))},OrderValidationModal:function(){return a.e("4416c7d2").then(a.bind(null,"1132"))},SadEmptyError:function(){return a.e("759d03bf").then(a.bind(null,"9543"))},WalletPayment:function(){return Promise.all([a.e("2d226d26"),a.e("2d2172ed")]).then(a.bind(null,"c648"))},PurchaseSummary:function(){return Promise.all([a.e("vuelidate"),a.e("luxon"),a.e("2d226d26"),a.e("2d0a44aa"),a.e("57074afa")]).then(a.bind(null,"7f51"))},WaitingPaymentModal:function(){return Promise.all([a.e("lottiefiles"),a.e("2d0b2b76"),a.e("2da43ee1")]).then(a.bind(null,"6a45"))}},mixins:[I["a"],x["a"]],data:function(){return{checkQueueInterval:4e3,method:"",pixIconTop:S.a,googlePayIconTop:T.a,coupon:"",checkoutCode:"",cardData:{},deviceInformation:"",paymentResponse:k["i"],cartFinalTotalWallet:0,orderCode:"",advertisement_info:null,userData:{costumer_code:"",token:""},openedModal:{boleto:!1,success:!1,reserved:!1,free:!1,error:!1,waitingValidation:!1,data:{message:"",title:"",waitingValidationAction:null}},openValidationOderModal:!1,processing:!1,walletData:{qrCode:"",link:"",code:"",expiresAt:""},ameData:{qrCode:"",deepLink:"",link:"",code:"",expiresAt:""},pixData:{qrCode:"",deepLink:"",link:"",code:"",expiresAt:""},pagbankData:{qrCode:"",deepLink:"",link:"",code:"",expiresAt:""},googlePayData:{qrCode:"",deepLink:"",link:"",code:"",expiresAt:""},riskManagementData:{},riskManagementConfigured:!1,riskManagementService:null,startPaymentAuthCybersource3DS:!1,resultPaymentAuth:!1,threeDs:null,code3DS:"",cardNumberPaymentAuth:!1,isPayment:!1,showSummary:!0,timerChallengeClose:null,paymentRequestId:null,buyerData:{},completeStatuses:["Completo","Completo Cortesia"]}},computed:p()({},Object(y["c"])("settings",["entity","isINTICares"]),Object(y["c"])("authentication",["authenticationToken","userAuthenticationData"]),Object(y["c"])("ticketShoppingCart",["cartFinalTotal","itemsInCart","cartOrderCode","paymentChannels","loading","walletPaymentChannel","cartDiscount","cartConvenienceFee","cartDeliveryFee","cartOrderIdentifier","isCredentialOrder"]),Object(y["c"])("user",["orderBuyerInfo","isBrazilian"]),Object(y["c"])("wallet",["hasBalance"]),Object(y["c"])("validation",["isValidatingOrderToPayment"]),{canDownloadPdf:function(){return!this.SET_IS.marketPlace||!this.SET_MARKETPLACE.behavior.systemOnly},cardInstallments:function(){var e=[];return this.paymentChannels.length>0&&this.paymentChannels.forEach(function(t){t.type===k["d"]&&(e=t.installments),t.type===k["s"]&&(e=t.payment_data.cred_online_api.installments)}),e},isMicroform:function(){var e=!1;return this.paymentChannels.length>0&&(e=this.paymentChannels.some(function(e){return(e.type===k["d"]||e.type===k["s"])&&e.is_microform})),e},isPaymentAuthenticationCybersource:function(){return this.riskManagementData.status&&this.riskManagementData.gateway===k["e"]&&this.hasCreditcardPayment&&this.riskManagementData.is_payment_authentication_cybersource},isPaymentAuthenticationCybersourceWithAdiq:function(){return this.riskManagementData.status&&this.riskManagementData.gateway===k["a"]&&this.hasCreditcardPayment&&this.riskManagementData.is_payment_authentication_cybersource},isPaymentAuthenticationAdiq:function(){return this.riskManagementData.status&&this.riskManagementData.gateway===k["a"]&&this.hasCreditcardPayment&&this.riskManagementData.is_payment_authentication_adiq},walletPaymentData:function(){var e={};return this.paymentChannels.map(function(t){return t.type===k["r"]?e[k["r"]]=[t]:t.type===k["s"]?e[k["s"]]=m()(t.payment_data):t.type===k["t"]&&(e[k["t"]]=m()(t.payment_data)),t}),e},hasWalletPayment:function(){return!!this.walletPaymentData&&l()(this.walletPaymentData).length>0},hasCreditcardPayment:function(){return this.method===k["d"]||!!this.walletPaymentChannel&&this.walletPaymentChannel.type===k["s"]},hasGooglePayPayment:function(){return this.method===k["g"]},maxInstallment:{get:function(){return this.cardInstallments.length>0?this.cardInstallments[this.cardInstallments.length-1].installments:1},cache:!1},is3DSEnabled:function(){if(this.riskManagementData.status&&this.riskManagementData.riskManagamentProfilesStack){var e=JSON.parse(this.riskManagementData.riskManagamentProfilesStack);return e.filter(function(e){return e.service===b}).length>0}return!1},is3DSEnabledOnly:function(){if(this.riskManagementData.status&&this.riskManagementData.riskManagamentProfilesStack){var e=JSON.parse(this.riskManagementData.riskManagamentProfilesStack);if(1===e.length&&e[0].service===b)return!0}return!1},creditCardSublabel:function(){var e=this.maxInstallment,t=this.$t("field.payment.creditCard.sublabel",{times:e}),a=this.$t("field.payment.creditCard.subLabelWithoutInstallment"),n=e>1?t:a;return this.is3DSEnabledOnly&&!this.SET_IS_T4F&&(n+="<br/>".concat(this.$t("field.payment.creditCard.sublabelDetails"))),n},openWaitingPaymentModal:function(){return this.isPayment||this.isValidatingOrderToPayment},googlePayAuthParams:function(){var e={authJwt:"",merchantOrigin:""},t=this.paymentChannels.find(function(e){return e.type===k["g"]});return t&&(e.authJwt=t.auth_token,e.merchantOrigin=t.merchant_origin),e}}),watch:{paymentChannels:{handler:function(){var e=c()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.find(function(e){return e.type===k["f"]})&&this.cartFinalTotal<=0)){e.next=4;break}return this.method=k["f"],e.next=4,this.payment();case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),immediate:!1,deep:!0}},created:function(){var e=c()(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserData();case 2:return this.buyerData=e.sent,document.title="".concat(this.SET_PAGE_NAME," | ").concat(this.$t("page.checkoutPayment")),e.next=6,this.checkIsOrderInvalidToPayment();case 6:if(t=e.sent,!t){e.next=9;break}return e.abrupt("return",this.$router.replace(t));case 9:if(this.itemsInCart&&(this.orderBuyerInfo.token||this.orderBuyerInfo.customer_code)){e.next=11;break}return e.abrupt("return",this.$router.replace("/"));case 11:return e.abrupt("return",null);case 12:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),mounted:function(){var e=c()(regeneratorRuntime.mark(function e(){var t,a;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.processing=!0,this.$tracker.checkoutStep({step:4,stepName:"payment",option:"payment",coupon:"",value:"payment page",products:this.getTrackerCartItems()}),this.$tracker.pageView({page:this.$route.path,title:this.$t("page.checkoutPayment")}),!this.itemsInCart||!this.orderBuyerInfo.token&&!this.orderBuyerInfo.customer_code){e.next=24;break}if(e.prev=4,this.userData=JSON.parse(s()(this.orderBuyerInfo)),!(this.cartFinalTotal<=0)){e.next=12;break}return this.method=k["f"],e.next=10,this.payment();case 10:if(!e.sent){e.next=12;break}return e.abrupt("return");case 12:return e.next=14,this.getPaymentChannels({token:this.userAuthenticationData.token});case 14:t=e.sent,a=!!t.find(function(e){return[k["r"],k["s"],k["t"]].includes(e.type)}),this.setHasBalance(a),this.orderCode=this.cartOrderCode,e.next=24;break;case 20:e.prev=20,e.t0=e["catch"](4),this.toastError(e.t0),this.resetCartAndGoToHome();case 24:return e.next=26,this.startRiskManagement();case 26:1===this.paymentChannels.length&&this.openMethod(this.paymentChannels[0].type),this.processing=!1;case 28:case"end":return e.stop()}},e,this,[[4,20]])}));return function(){return e.apply(this,arguments)}}(),methods:p()({},Object(y["b"])("ticketShoppingCart",["updateWalletPaymentChannel","getPaymentChannels","getCartFromServer","getOrderInformation","clearCart","payTheBill","checkRiskManagement","checkPaymentAuthenticationAdiq","setRefusedPaymentAuthenticationAdiq","generateCardinalJWT","checkOrderOnQueue","setTicketShoppingCartAsLoaded","updatePaymentMethod","synchronizeCartAndSessionCartWhithServer","setOrderCompleted"]),Object(y["b"])("ticketSale",["removeTicketReturnedInCouponCall"]),Object(y["b"])("user",["getUserData"]),Object(y["b"])("wallet",["setHasBalance","getWalletBalance"]),Object(y["b"])("validation",["checkIsOrderInvalidToPayment"]),{isMethodAvailable:function(e){var t=this.paymentChannels.find(function(t){return t.type===e});return void 0!==t},getTicketsAmount:function(e){var t=this.paymentChannels.find(function(t){return t.type===e});return(null===t||void 0===t?void 0:t.tickets_amount)||"0.00"},updateCartData:function(e){this.cardData=e},setCardHash:function(){if(void 0!==window.PagSeguro&&this.method!==k["g"]){var e={publicKey:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxcQYxTA/eFk08zJ/3Pr5QJAMywd12rbcEQZ+Zi9EthI9gO7pfmMfRyT4H1QhjJTgphVFbUCFRRwMtiBYZHbLR9XQEfZy5nyORdM9pt3a4lI8iT8gwOO192oTX6+5REcdrbbAWoK7NcQQjFOaVB4tVfcBRzBFGuFLjOMfw50hHYMq/5QuBI+WE+1B/1hXY/eC5Jl7QgkGX/AHIwSGyO0jdSOZgHzt60yImz3aEJV6Zw31EDpv/BA0cdLq1VEzLMnq9VbK/7m68PRb/neoPFA+5XN2dYEZwSv/nzyGs/mvwYDl6QrSKRvtA5+MgsvMJ0imQJWceOxTJgd86b8wMad0ZQIDAQAB",holder:this.cardData.holderName,number:this.cardData.number.replaceAll(" ",""),expMonth:this.cardData.expiry.month,expYear:this.cardData.expiry.year,securityCode:this.cardData.cvc},t=window.PagSeguro.encryptCard(e);t.hasErrors?this.cardData.cardHashErrors=t.errors:this.cardData.cardHash=t.encryptedCard}},openMethod:function(){var e=c()(regeneratorRuntime.mark(function e(){var t,a=arguments;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:t=a.length>0&&void 0!==a[0]?a[0]:"",this.updatePaymentMethod(t),this.method=t;case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),openWalletMethod:function(){var e=c()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.updatePaymentMethod("inti_wallet"),this.method="inti_wallet",this.updateWalletPaymentChannel(t);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),startRiskManagement:function(){var e=c()(regeneratorRuntime.mark(function e(){var t,a,n,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(null!==this.riskManagementService){e.next=6;break}return e.next=3,this.checkRiskManagement(this.cartOrderCode);case 3:this.riskManagementData=e.sent,this.riskManagementData.status&&(t={totalAmountField:"creditCardTotalAmount",installmentsField:"creditCardInstallments",creditcardNumberField:"creditCardNumber",creditcardBrandField:"creditCardBrand",creditcardTokenField:"creditCardToken",creditcardExpMonthField:"creditCardExpirationMonth",creditcardExpYearField:"creditCardExpirationYear",creditCardCvv:"creditCardCvv",creditCardHolderName:"creditCardHolderName",checkoutMethodField:"checkoutMethod"},a={requestLib:"axios",isProd:!0,riskManagamentProfilesStack:this.riskManagementData.riskManagamentProfilesStack,userIp:this.riskManagementData.user_ip},n={urlCardinalJwt:{url:"".concat(q,"cardinal-generate-jwt?order_code=").concat(this.cartOrderCode),type:"GET"},urlDecisionManagerAnalysis:{url:"".concat(q,"risk-management/").concat(this.cartOrderCode),type:"PUT"},urlPaymentAuthenticationCybersourceAnalysis:{url:"".concat(q,"payment-authentication-cybersource-analysis/").concat(this.cartOrderCode),type:"PUT"},urlCheckPaymentAuthenticationCybersourceResult:{url:"".concat(q,"payment-authentication-cybersource-analysis/").concat(this.cartOrderCode,"?action=result"),type:"PUT"},urlExecuteCreditCardBillCode:{url:"".concat(q,"payment-credit-card-bill-code"),type:"POST"}},this.riskManagementService=new w["a"](t,a,n,this.cartOrderCode),i=document.createElement("script"),i.setAttribute("src","https://h.online-metrix.net/fp/tags.js?org_id=".concat(this.riskManagementData.org_id,"&session_id=").concat(this.riskManagementData.merchant_id).concat(this.riskManagementData.merchant_code)),document.head.appendChild(i)),this.riskManagementConfigured=!0;case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),checkPaymentAuthentication:function(){var e=c()(regeneratorRuntime.mark(function e(t){var a,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return a={code3DS:A(),validateToken:t,transactionId:D()},e.next=3,this.checkPaymentAuthenticationAdiq(a);case 3:n=e.sent,n?this.openedModal.success=!0:(this.paymentResponse=k["i"],this.openedModal.error=!0,this.isPayment=!1,this.setRefusedPaymentAuthenticationAdiq(this.cartOrderCode));case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),checkIfChallengeClosed:function(){var e=this;null===this.timerChallengeClose&&(this.timerChallengeClose=setInterval(function(){var t=document.getElementById("Cardinal-CloseButton");null!==t&&(t.addEventListener("click",function(t){e.paymentResponse=k["i"],e.openedModal.error=!0,e.isPayment=!1,e.setRefusedPaymentAuthenticationAdiq(e.cartOrderCode)}),e.timerChallengeClose=null)},2e3))},waitingValidationAction:function(){this.openValidationOderModal=!0,this.openedModal.waitingValidation=!1},beforePayment:function(){var e=c()(regeneratorRuntime.mark(function e(){var t,a=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.isPayment=!0,t=this,(this.hasCreditcardPayment||this.hasGooglePayPayment)&&this.riskManagementData.status?(document.getElementById("checkoutMethod").value=this.method,this.riskManagementService.execute(function(e){t.paymentResponse=k["i"],t.openedModal.error=!0,t.isPayment=!1},function(e){e===f?(a.openedModal.waitingValidation=!0,a.openedModal.data.message=a.$t("modal.checkout.status.creditCardBillCode.msg"),a.openedModal.data.title=a.$t("modal.checkout.status.creditCardBillCode.title"),a.openedModal.data.waitingValidationAction=function(){a.waitingValidationAction()}):t.payment()},this.getPaymentObject())):this.payment();case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),checkOrderQueueStatus:function(){var e=c()(regeneratorRuntime.mark(function e(){var t,a,n=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t={code:this.checkoutCode,token:this.userAuthenticationData.token},e.prev=1,e.next=4,this.checkOrderOnQueue(t);case 4:a=e.sent,a.still_on_queue?setTimeout(function(){return n.checkOrderQueueStatus()},this.checkQueueInterval):"challenge"===a.payment_status&&this.isPaymentAuthenticationAdiq?(this.setTicketShoppingCartAsLoaded(),M(a.payments_data),this.checkIfChallengeClosed()):this.processFinalPaymentReturn(a),e.next=12;break;case 8:return e.prev=8,e.t0=e["catch"](1),e.next=12,this.processPaymentError(e.t0);case 12:case"end":return e.stop()}},e,this,[[1,8]])}));return function(){return e.apply(this,arguments)}}(),getPaymentObject:function(){var e=this;this.setPaymentRequestID(!1);var t={checkout_method:this.method,order_code:this.cartOrderCode,payments_data:[],request_id:this.paymentRequestId},a=[k["r"],k["d"],k["j"],k["c"],k["f"],k["b"],k["k"],k["h"],k["g"]];if(!a.includes(this.method))return!1;if(this.method===k["r"]){if(this.walletPaymentChannel.type===k["r"]){var n=this.walletPaymentData[k["r"]][0];t.payments_data.push({payment_method:k["r"],amount:n.amount,buyer_token:this.authenticationToken})}if(this.walletPaymentChannel.type===k["s"]){var i=this.walletPaymentData[k["s"]],r=i.find(function(e){return e.type===k["d"]})||null,s=i.find(function(e){return e.type===k["r"]})||null;if(r){var o=r.installments.find(function(t){return t.installments===e.cardData.installments})||r.installments[0];this.setCardHash(),t.checkout_method=this.walletPaymentChannel.type,t.device_information=this.deviceInformation,t.code3DS=this.code3DS,t.payments_data.push(p()({payment_method:k["d"],amount:o.amount},this.cardData))}s&&t.payments_data.push({payment_method:k["r"],amount:s.amount,bonus:s.bonus,buyer_token:this.authenticationToken})}if(this.walletPaymentChannel.type===k["t"]){var c=this.walletPaymentData[k["t"]],d=c.find(function(e){return e.type===k["k"]})||null,l=c.find(function(e){return e.type===k["r"]})||null;d&&(t.checkout_method=this.walletPaymentChannel.type,t.payments_data.push({payment_method:k["k"],amount:d.amount})),l&&t.payments_data.push({payment_method:k["r"],amount:l.amount,bonus:l.bonus,buyer_token:this.authenticationToken})}}return this.method===k["d"]&&(this.setCardHash(),t.device_information=this.deviceInformation,t.code3DS=this.code3DS,t.payments_data.push(p()({payment_method:k["d"],amount:this.cartFinalTotal},this.cardData))),this.method===k["g"]&&(this.setCardHash(),t.device_information=this.deviceInformation,t.code3DS=this.code3DS,t.payments_data.push(p()({payment_method:k["g"],amount:this.cartFinalTotal},this.cardData))),this.method!==k["j"]&&this.method!==k["c"]&&this.method!==k["f"]&&this.method!==k["b"]&&this.method!==k["k"]&&this.method!==k["h"]||t.payments_data.push({payment_method:this.method,amount:this.cartFinalTotal}),t},payment:function(){var e=c()(regeneratorRuntime.mark(function e(){var t,a,n=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this.getPaymentObject(),e.prev=1,e.next=4,this.payTheBill(p()({},t,{token:this.userAuthenticationData.token}));case 4:if(a=e.sent,this.setPaymentRequestID(!0),!1===a.status){e.next=11;break}this.trackFinishPayment(),a.payment_status===k["n"]?(this.checkoutCode=a.payments_data.checkoutCode,setTimeout(function(){return n.checkOrderQueueStatus()},this.checkQueueInterval)):"challenge"===a.payment_status&&this.isPaymentAuthenticationAdiq?(this.setTicketShoppingCartAsLoaded(),M(a.payments_data),this.checkIfChallengeClosed()):this.processFinalPaymentReturn(a),e.next=12;break;case 11:return e.abrupt("return",this.$q.dialog({title:this.$t("label.attention"),message:a.status_message,ok:!0,preventClose:!0}));case 12:return e.abrupt("return",!0);case 15:return e.prev=15,e.t0=e["catch"](1),this.setPaymentRequestID(!0),e.next=20,this.processPaymentError(e.t0);case 20:return e.abrupt("return",e.sent);case 21:case"end":return e.stop()}},e,this,[[1,15]])}));return function(){return e.apply(this,arguments)}}(),processPaymentError:function(){var e=c()(regeneratorRuntime.mark(function e(t){var a,n,i,r,s,o,c;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(o=(null===t||void 0===t?void 0:null===(a=t.response)||void 0===a?void 0:a.status)||(null===t||void 0===t?void 0:t.status)||400,"error.server.buyer.incomplete"!==(null===t||void 0===t?void 0:null===(n=t.response)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.message)){e.next=6;break}return this.$q.dialog({title:this.$t("dialog.incompleteRegistration.title"),message:this.$t("dialog.incompleteRegistration.msg"),color:"dark",ok:!0}),e.next=5,this.getUserData();case 5:return e.abrupt("return",this.$router.replace({name:g["q"],params:{newUser:!1,fromLogin:!0},query:this.$route.query}));case 6:if(o!==P["c"]){e.next=11;break}return this.$q.dialog({title:this.$t("label.attention"),message:t.response.data.message,ok:!0,preventClose:!0}),this.openedModal.error=!1,this.isPayment=!1,e.abrupt("return",!1);case 11:if(203!==o&&"Recusado"!==(null===t||void 0===t?void 0:null===(r=t.response)||void 0===r?void 0:null===(s=r.data)||void 0===s?void 0:s.payment_status)){e.next=17;break}return this.paymentResponse=t.data,this.openedModal.error=!0,this.isPayment=!1,this.synchronizeCartAndSessionCartWhithServer(),e.abrupt("return",!1);case 17:if(!(o>=400)){e.next=27;break}return e.next=20,this.getOrderInformation();case 20:if(c=e.sent,!(this.completeStatuses.indexOf(c.order_status)>=0)){e.next=25;break}return this.openedModal.success=!0,this.trackSuccess(),e.abrupt("return",!0);case 25:return this.isPayment=!1,e.abrupt("return",this.resetCartAndGoToHome());case 27:return e.prev=27,e.next=30,this.getCartFromServer();case 30:this.paymentResponse=t.data,this.openedModal.error=!0,e.next=37;break;case 34:e.prev=34,e.t0=e["catch"](27),this.resetCartAndGoToHome();case 37:return e.abrupt("return",!1);case 38:case"end":return e.stop()}},e,this,[[27,34]])}));return function(t){return e.apply(this,arguments)}}(),processFinalPaymentReturn:function(e){this.paymentResponse=e,this.setTicketShoppingCartAsLoaded(),this.removeTicketReturnedInCouponCall(),window.console.log({response:e,status:[k["l"],k["m"]]}),[k["l"],k["m"]].includes(e.payment_status)?(this.setOrderCompleted(!0),this.advertisement_info=e.advertisement_data,this.method===k["r"]?(this.cartFinalTotalWallet=e.payments_data[0].amount,this.openedModal.free=!0,this.getWalletBalance()):[k["m"]].includes(e.payment_status)?this.openedModal.reserved=!0:this.method===k["f"]?this.openedModal.free=!0:this.openedModal.success=!0,this.trackSuccess()):this.method===k["c"]?(this.openedModal.boleto=!0,this.clearCart(!1)):this.method===k["j"]?(this.walletData.start=!0,this.walletData.qrCode=e.payments_data[0].qrcode,this.walletData.link=e.payments_data[0].qrcode_link,this.walletData.code=e.payments_data[0].code,this.walletData.expiresAt=e.payments_data[0].expires_at):this.method===k["b"]?(this.ameData.start=!0,this.ameData.qrCode=e.payments_data[0].qrcode,this.ameData.link=e.payments_data[0].qrcode_link,this.ameData.deepLink=e.payments_data[0].deep_link,this.ameData.code=e.payments_data[0].code,this.ameData.expiresAt=e.payments_data[0].expires_at):this.method===k["k"]?(this.processPaymentResponsePix(e),this.isPayment=!1):this.method===k["r"]&&this.walletPaymentChannel.type===k["t"]?(this.processPaymentResponsePix(e),this.isPayment=!1):this.method===k["h"]&&(this.pagbankData.start=!0,this.pagbankData.qrCode=e.payments_data[0].pagbankQrCode,this.pagbankData.link=e.payments_data[0].qrcode_link?e.payments_data[0].qrcode_link:null,this.pagbankData.deepLink=e.payments_data[0].deep_link?e.payments_data[0].deep_link:null,this.pagbankData.code=e.payments_data[0].code?e.payments_data[0].code:null,this.pagbankData.expiresAt=e.payments_data[0].expires_at)},processPaymentResponsePix:function(e){this.pixData.start=!0,this.pixData.qrCode=e.payments_data[0].pixQrCode,this.pixData.link=e.payments_data[0].qrcode_link?e.payments_data[0].qrcode_link:null,this.pixData.deepLink=e.payments_data[0].deep_link?e.payments_data[0].deep_link:null,this.pixData.code=e.payments_data[0].code?e.payments_data[0].code:null,this.pixData.expiresAt=e.payments_data[0].expires_at},trackFinishPayment:function(){this.$tracker.finishedPayment({step:5,stepName:"payment",option:"paymentMethod",value:this.method,coupon:"",products:this.getTrackerCartItems(),buyer:this.buyerData})},trackSuccess:function(){this.$tracker.checkoutSuccess({step:6,stepName:"payment",option:"payment success",value:this.method,coupon:this.coupon,amount:this.method===k["r"]?this.cartFinalTotalWallet:this.cartFinalTotal,cartId:this.cartOrderIdentifier,pageName:this.SET_PAGE_NAME,currency:this.SET_MONEY,tax:this.cartConvenienceFee,shipping:this.cartDeliveryFee,products:this.getTrackerCartItems(),buyer:this.buyerData})},successWallet:function(){this.walletData.start=!1,this.walletData.qrCode="",this.walletData.link="",this.walletData.code="",this.walletData.expiresAt="",this.trackSuccess(),this.openedModal.success=!0},failWallet:function(){this.walletData.start=!1,this.walletData.qrCode="",this.walletData.link="",this.walletData.code="",this.walletData.expiresAt="",this.openedModal.error=!0},cleanPixData:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.pixData.qrCode="",this.pixData.deepLink="",this.pixData.link="",this.pixData.code="",this.pixData.expiresAt="",e?(this.openedModal.success=!0,this.trackSuccess()):this.openedModal.error=!0},tryAgain:function(){this.openedModal.error=!1,this.paymentResponse=k["i"]},showError:function(){this.paymentResponse=k["i"],this.isPayment=!1},goToResume:function(){this.$router.replace({name:g["t"],params:{orderCode:this.cartOrderCode,token:this.userData.token,customer_code:this.userData.customer_code},query:this.$route.query})},setPaymentRequestID:function(e){(null===this.paymentRequestId||e)&&(this.paymentRequestId=Object(R["a"])())}})},G=E,_=(a("806f"),a("2877")),Q=Object(_["a"])(G,n,i,!1,null,null,null);Q.options.__file="payment.vue";t["default"]=Q.exports}}]);
//# sourceMappingURL=5a00666c.66a4b5bd.2024-10-22T18:36:13.257Z.js.map