(function(r,Q){typeof exports=="object"&&typeof module<"u"?Q(require("vue"),require("vue-i18n"),require("axios"),require("element-plus"),require("lodash"),require("@fortawesome/fontawesome-svg-core"),require("element-plus/dist/locale/pt-br"),require("element-plus/dist/locale/es")):typeof define=="function"&&define.amd?define(["vue","vue-i18n","axios","element-plus","lodash","@fortawesome/fontawesome-svg-core","element-plus/dist/locale/pt-br","element-plus/dist/locale/es"],Q):(r=typeof globalThis<"u"?globalThis:r||self,Q(r.Vue,r.VueI18n,r.axios,r.ElementPlus,r._,r["fontawesome-svg-core"],r.ElementPlusLocalePtBr,r.ElementPlusLocaleEs))})(this,function(r,Q,$e,P,Qe,V,Ke,Xe){"use strict";function ge(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Z=ge(Q),ae=ge(P),ye={name:"privacy.web.payment",version:"1.0.0",author:"Joao Pedro Rangel",scripts:{dev:"vite --host",build:"vite build --mode=production",serve:"vite preview","build-w":"vite build --mode=production -w","clean:lib":"rm -rf dist/*.js && rm -rf dist/*.map && rm -rf dist/*.css && rm -rf dist/*.html",lint:"eslint --ext .js,.vue --ignore-path .gitignore --fix src",reset:"rm -rf node_modules && rm -rf package-lock.json && npm i","reset-all":"cd demo && npm run reset-all","http-server":"http-server . -c 0 --cors *",hs:"http-server . -c 0 --cors *"},dependencies:{"@fortawesome/fontawesome-svg-core":"6.4.0","@fortawesome/pro-light-svg-icons":"6.4.0","@fortawesome/pro-regular-svg-icons":"6.4.0","@fortawesome/pro-solid-svg-icons":"6.4.0","@fortawesome/vue-fontawesome":"3.0.3",axios:"1.3.3","element-plus":"2.2.30",pinia:"2.0.30","qrcode.vue":"3.4.1","url-join":"5.0.0","vue-i18n":"9.5.0","vue-jwt-decode":"0.1.0","vue-plugin-load-script":"2.1.1"},devDependencies:{"@intlify/unplugin-vue-i18n":"1.4.0","@rushstack/eslint-patch":"1.2.0","@vitejs/plugin-basic-ssl":"1.0.1","@vitejs/plugin-vue":"4.0.0","@vue/eslint-config-prettier":"7.0.0","core-js":"3.29.0",eslint:"8.34.0","eslint-plugin-vue":"9.9.0","http-server":"^14.1.1",prettier:"2.8.4",sass:"1.59.3","unplugin-auto-import":"0.15.1","unplugin-element-plus":"0.7.0","unplugin-vue-components":"0.24.1",vite:"4.1.1","vite-plugin-html-env":"1.2.8",vue:"3.3.0"}}.name.replace(/\./g,"-"),Je=({component:e=null,plugins:t=[]}={})=>r.defineCustomElement({emits:e.emits,computed:e.computed,props:e.props,styles:e.styles,setup(n){const a=r.createApp();a.component("app-root",e),t.forEach(o=>a.use(o));const s=r.getCurrentInstance(),c=Array.isArray(e.emits)?e.emits:Object.keys(e.emits),i=Object.fromEntries((c||[]).map(o=>[`on${o[0].toUpperCase()}${o.slice(1)}`,l=>s.emit(o,l)]));return Object.assign(s.appContext,a._context),Object.assign(s.provides,a._context.provides),()=>r.h(e,{...n,...i})}});var Ze=!1;/*! * pinia v2.0.30 * (c) 2023 Eduardo San Martin Morote * @license MIT */let _e;const ee=e=>_e=e,Ce=Symbol();function oe(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var K;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(K||(K={}));function et(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],a=[];const s=r.markRaw({install(c){ee(s),s._a=c,c.provide(Ce,s),c.config.globalProperties.$pinia=s,a.forEach(i=>n.push(i)),a=[]},use(c){return!this._a&&!Ze?a.push(c):n.push(c),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Se=()=>{};function be(e,t,n,a=Se){e.push(t);const s=()=>{const c=e.indexOf(t);c>-1&&(e.splice(c,1),a())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function W(e,...t){e.slice().forEach(n=>{n(...t)})}function ie(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,a)=>e.set(a,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],s=e[n];oe(s)&&oe(a)&&e.hasOwnProperty(n)&&!r.isRef(a)&&!r.isReactive(a)?e[n]=ie(s,a):e[n]=a}return e}const tt=Symbol();function rt(e){return!oe(e)||!e.hasOwnProperty(tt)}const{assign:U}=Object;function nt(e){return!!(r.isRef(e)&&e.effect)}function at(e,t,n,a){const{state:s,actions:c,getters:i}=t,o=n.state.value[e];let l;function d(){o||(n.state.value[e]=s?s():{});const m=r.toRefs(n.state.value[e]);return U(m,c,Object.keys(i||{}).reduce((p,u)=>(p[u]=r.markRaw(r.computed(()=>{ee(n);const f=n._s.get(e);return i[u].call(f,f)})),p),{}))}return l=Ee(e,d,t,n,a,!0),l.$reset=function(){const p=s?s():{};this.$patch(u=>{U(u,p)})},l}function Ee(e,t,n={},a,s,c){let i;const o=U({actions:{}},n),l={deep:!0};let d,m,p=r.markRaw([]),u=r.markRaw([]),f;const g=a.state.value[e];!c&&!g&&(a.state.value[e]={}),r.ref({});let _;function z(C){let b;d=m=!1,typeof C=="function"?(C(a.state.value[e]),b={type:K.patchFunction,storeId:e,events:f}):(ie(a.state.value[e],C),b={type:K.patchObject,payload:C,storeId:e,events:f});const N=_=Symbol();r.nextTick().then(()=>{_===N&&(d=!0)}),m=!0,W(p,b,a.state.value[e])}const h=Se;function y(){i.stop(),p=[],u=[],a._s.delete(e)}function E(C,b){return function(){ee(a);const N=Array.from(arguments),O=[],T=[];function H(k){O.push(k)}function L(k){T.push(k)}W(u,{args:N,name:C,store:v,after:H,onError:L});let G;try{G=b.apply(this&&this.$id===e?this:v,N)}catch(k){throw W(T,k),k}return G instanceof Promise?G.then(k=>(W(O,k),k)).catch(k=>(W(T,k),Promise.reject(k))):(W(O,G),G)}}const S={_p:a,$id:e,$onAction:be.bind(null,u),$patch:z,$reset:h,$subscribe(C,b={}){const N=be(p,C,b.detached,()=>O()),O=i.run(()=>r.watch(()=>a.state.value[e],T=>{(b.flush==="sync"?m:d)&&C({storeId:e,type:K.direct,events:f},T)},U({},l,b)));return N},$dispose:y},v=r.reactive(S);a._s.set(e,v);const w=a._e.run(()=>(i=r.effectScope(),i.run(()=>t())));for(const C in w){const b=w[C];if(r.isRef(b)&&!nt(b)||r.isReactive(b))c||(g&&rt(b)&&(r.isRef(b)?b.value=g[C]:ie(b,g[C])),a.state.value[e][C]=b);else if(typeof b=="function"){const N=E(C,b);w[C]=N,o.actions[C]=b}}return U(v,w),U(r.toRaw(v),w),Object.defineProperty(v,"$state",{get:()=>a.state.value[e],set:C=>{z(b=>{U(b,C)})}}),a._p.forEach(C=>{U(v,i.run(()=>C({store:v,app:a._a,pinia:a,options:o})))}),g&&c&&n.hydrate&&n.hydrate(v.$state,g),d=!0,m=!0,v}function we(e,t,n){let a,s;const c=typeof t=="function";typeof e=="string"?(a=e,s=c?n:t):(s=e,a=e.id);function i(o,l){const d=r.getCurrentInstance();return o=o||d&&r.inject(Ce,null),o&&ee(o),o=_e,o._s.has(a)||(c?Ee(a,t,s,o):at(a,s,o)),o._s.get(a)}return i.$id=a,i}let ot="Store";function it(...e){return e.reduce((t,n)=>(t[n.$id+ot]=function(){return n(this.$pinia)},t),{})}const te=we("app",{state:()=>({}),getters:{ready:e=>e.global.ready,appSettings:e=>e.global.appSettings,token:e=>e.global.token,$http:e=>e.global.$http,locale:e=>e.global.locale,page:e=>e.global.page,priceSettings:e=>e.global.priceSettings}}),st={base:{confirm:e=>{const{normalize:t}=e;return t(["Confirmar"])},cancel:e=>{const{normalize:t}=e;return t(["Cancelar"])},back:e=>{const{normalize:t}=e;return t(["Voltar"])},next:e=>{const{normalize:t}=e;return t(["Próximo"])},send:e=>{const{normalize:t}=e;return t(["Enviar"])},close:e=>{const{normalize:t}=e;return t(["Fechar"])},defaultErrorMsg:e=>{const{normalize:t}=e;return t(["Desculpe, ocorreu um erro ao processar sua solicitação."])},selected_n:e=>{const{normalize:t}=e;return t(["Selecionado(s)"])},no_results:e=>{const{normalize:t}=e;return t(["Sem resultados"])},proceed_with_payment:e=>{const{normalize:t}=e;return t(["Prosseguir com o Pagamento"])},completePayment:e=>{const{normalize:t}=e;return t(["Efetuar Pagamento"])},contact_orangesea:e=>{const{normalize:t}=e;return t(["ORANGE SEA CORP, 80 main street, Po BOX 3200, Road Town, Tortola VG1110, Ilhas Virgens Britânicas"])},contact_qm:e=>{const{normalize:t}=e;return t(["QMS520 TECHNOLOGY INTERNATIONAL, Aida Avenue, Estoril Garden, Bloco 1, Room 112, Estoril, Cascais, Lisboa."])}},paymentDialog:{processed:{title:e=>{const{normalize:t}=e;return t(["Solicitação processada!"])},text:e=>{const{normalize:t}=e;return t(["Agora você tem acesso ao conteúdo adquirido."])},fail:e=>{const{normalize:t}=e;return t(["Não foi possível processar o pagamento."])}},processing:{title:e=>{const{normalize:t}=e;return t(["Solicitação em processamento"])},text:e=>{const{normalize:t}=e;return t(["Aguarde, seu pagamento está em análise."])}},options:{title:e=>{const{normalize:t}=e;return t(["Selecione abaixo a forma de pagamento"])},labelAmount:e=>{const{normalize:t}=e;return t(["Valor para pagamento"])},pix:{title:e=>{const{normalize:t}=e;return t(["Pix"])},copy:e=>{const{normalize:t}=e;return t(["Copiar código Pix"])},tip:e=>{const{normalize:t}=e;return t(['Por favor, utilize a função "PIX copia e cola" em seu aplicativo bancário.'])},confirm:e=>{const{normalize:t}=e;return t(["Gerar Pix"])},copyConfirm:e=>{const{normalize:t}=e;return t(["Código PIX copiado."])},checkoutAuxMsg:e=>{const{normalize:t}=e;return t(["Caso queira efetivar o pagamento via pix, o mesmo será gerado assim que finalizar o cadastro e estará disponível para pagamento."])},checkoutObs:e=>{const{normalize:t}=e;return t(["Obs. Assim que o pagamento for compensado o conteúdo será liberado e você receberá um e-mail avisando!"])},priceMaxToCard:e=>{const{normalize:t}=e;return t(["Valores acima de R$"])},priceMaxToCardAux:e=>{const{normalize:t}=e;return t([", pagamento somente via Pix"])}},card:{title:e=>{const{normalize:t}=e;return t(["Cartão de crédito"])},confirm:e=>{const{normalize:t}=e;return t(["Efetuar Pagamento"])}}},title:{default:e=>{const{normalize:t}=e;return t(["Compra de conteúdo"])},notAllowed:e=>{const{normalize:t}=e;return t(["Pagamento não permitido para o conteúdo selecionado"])},profile:e=>{const{normalize:t}=e;return t(["Compra de assinatura"])},post:e=>{const{normalize:t}=e;return t(["Compra de conteúdo"])},chat:e=>{const{normalize:t}=e;return t(["Compra de conteúdo"])},checkout:e=>{const{normalize:t}=e;return t(["Compra de assinatura"])},tip:e=>{const{normalize:t}=e;return t(["Enviar Mimo"])}},errors:{missingData:e=>{const{normalize:t}=e;return t(["Ocorreu um erro ao enviar os dados de pagamento."])},invalidCard:e=>{const{normalize:t}=e;return t(["Cartão Inválido."])},paymentDenied:e=>{const{normalize:t}=e;return t(["Método de pagamento recusado. Caso acredite ser um engano favor entrar em contato com nosso suporte."])},paidContent:e=>{const{normalize:t}=e;return t(["Esse conteúdo já foi adquirido por você, caso não esteja visualizando, favor atualizar a página."])},paymentInProcess:e=>{const{normalize:t}=e;return t(["Existe um pagamento em andamento, favor aguardar alguns instantes."])},profileError:e=>{const{normalize:t}=e;return t(["Ocorreu um erro ao obter os dados pessoais. Verifique seu cadastro e tente novamente."])},creatorDataError:e=>{const{normalize:t}=e;return t(["Ocorreu um erro ao obter os dados do criador."])}}},"3dsDialog":{success:{title:e=>{const{normalize:t}=e;return t(["Pagamento Aprovado"])},text:e=>{const{normalize:t}=e;return t(["O pagamento foi concluído. Agora você tem acesso ao conteúdo adquirido."])}},errors:{paymentRefused:e=>{const{normalize:t}=e;return t(["Pagamento Recusado"])},paymentRefusedText:e=>{const{normalize:t}=e;return t(["O pagamento não foi aprovado. Verifique os dados de pagamento e tente novamente."])},paymentError:e=>{const{normalize:t}=e;return t(["Ocorreu um erro ao processar o pagamento"])},paymentErrorText:e=>{const{normalize:t}=e;return t(["Verifique os dados de pagamento e tente novamente."])}}},RedirectDialog:{title:e=>{const{normalize:t}=e;return t(["Dados Pessoais Incompletos"])},text:e=>{const{normalize:t}=e;return t(["É necessário concluir o cadastro na página de configurações antes de efetuar uma compra."])},updatePersonalData:e=>{const{normalize:t}=e;return t(["Finalizar cadastro"])}},Benefits:{title:e=>{const{normalize:t}=e;return t(["Assine e obtenha estes benefícios"])},contentAccess:e=>{const{normalize:t}=e;return t(["Acesso ao conteúdo"])},chatWithCreator:e=>{const{normalize:t}=e;return t(["Chat exclusivo com o criador"])},cancelAnyTime:e=>{const{normalize:t}=e;return t(["Cancele a qualquer hora"])}}},lt={base:{confirm:e=>{const{normalize:t}=e;return t(["Confirm"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},back:e=>{const{normalize:t}=e;return t(["Back"])},next:e=>{const{normalize:t}=e;return t(["Next"])},send:e=>{const{normalize:t}=e;return t(["Send"])},close:e=>{const{normalize:t}=e;return t(["Close"])},defaultErrorMsg:e=>{const{normalize:t}=e;return t(["Sorry, an error occurred while processing your request."])},selected_n:e=>{const{normalize:t}=e;return t(["Selected"])},no_results:e=>{const{normalize:t}=e;return t(["No results"])},proceed_with_payment:e=>{const{normalize:t}=e;return t(["Proceed with Payment"])},completePayment:e=>{const{normalize:t}=e;return t(["Purchase"])},contact_orangesea:e=>{const{normalize:t}=e;return t(["ORANGE SEA CORP, 80 main street, Po BOX 3200, Road Town, Tortola VG1110, British Virgin Islands"])},contact_qm:e=>{const{normalize:t}=e;return t(["QMS520 TECHNOLOGY INTERNATIONAL, Aida Avenue, Estoril Garden, Bloco 1, Room 112, Estoril, Cascais, Lisbon."])}},paymentDialog:{processed:{title:e=>{const{normalize:t}=e;return t(["Request Processed!"])},text:e=>{const{normalize:t}=e;return t(["You now have access to the purchased content."])},fail:e=>{const{normalize:t}=e;return t(["Unable to process payment."])}},processing:{title:e=>{const{normalize:t}=e;return t(["Processing request"])},text:e=>{const{normalize:t}=e;return t(["Please wait, your payment is being analyzed."])}},options:{title:e=>{const{normalize:t}=e;return t(["Select the payment method below"])},labelAmount:e=>{const{normalize:t}=e;return t(["Amount to Pay"])},pix:{title:e=>{const{normalize:t}=e;return t(["Pix"])},copy:e=>{const{normalize:t}=e;return t(["Copy Pix code"])},tip:e=>{const{normalize:t}=e;return t(['Please use the "Copy and Paste PIX" function in your banking app.'])},confirm:e=>{const{normalize:t}=e;return t(["Generate Pix"])},copyConfirm:e=>{const{normalize:t}=e;return t(["PIX code copied."])},checkoutAuxMsg:e=>{const{normalize:t}=e;return t(["If you want to make the payment via pix, it will be generated once you finish the registration and it will be available for payment."])},checkoutObs:e=>{const{normalize:t}=e;return t(["Note: Once the payment is processed, the content will be available, and you will receive an email notification!"])},priceMaxToCard:e=>{const{normalize:t}=e;return t(["Amounts over R$"])},priceMaxToCardAux:e=>{const{normalize:t}=e;return t([", payment only via Pix"])}},card:{title:e=>{const{normalize:t}=e;return t(["Credit Card"])},confirm:e=>{const{normalize:t}=e;return t(["Purchase"])}}},title:{default:e=>{const{normalize:t}=e;return t(["Content Purchase"])},notAllowed:e=>{const{normalize:t}=e;return t(["Payment not allowed for the selected content"])},profile:e=>{const{normalize:t}=e;return t(["Subscription Purchase"])},post:e=>{const{normalize:t}=e;return t(["Content Purchase"])},chat:e=>{const{normalize:t}=e;return t(["Content Purchase"])},checkout:e=>{const{normalize:t}=e;return t(["Subscription Purchase"])},tip:e=>{const{normalize:t}=e;return t(["Send Tip"])}},errors:{missingData:e=>{const{normalize:t}=e;return t(["An error occurred while sending payment data."])},invalidCard:e=>{const{normalize:t}=e;return t(["Invalid Card."])},paymentDenied:e=>{const{normalize:t}=e;return t(["Payment method refused. If you believe this is a mistake, please contact our support."])},paidContent:e=>{const{normalize:t}=e;return t(["This content has already been purchased by you, if you're not seeing it, please refresh the page."])},paymentInProcess:e=>{const{normalize:t}=e;return t(["There is a payment in progress, please wait a few moments."])},profileError:e=>{const{normalize:t}=e;return t(["An error occurred while retrieving personal data. Please check your registration and try again."])},creatorDataError:e=>{const{normalize:t}=e;return t(["An error occurred while fetching creator data."])}}},"3dsDialog":{success:{title:e=>{const{normalize:t}=e;return t(["Payment Approved"])},text:e=>{const{normalize:t}=e;return t(["The payment has been completed. You now have access to the purchased content."])}},errors:{paymentRefused:e=>{const{normalize:t}=e;return t(["Payment Refused"])},paymentRefusedText:e=>{const{normalize:t}=e;return t(["The payment was not approved. Please check the payment details and try again."])},paymentError:e=>{const{normalize:t}=e;return t(["An error occurred while processing the payment"])},paymentErrorText:e=>{const{normalize:t}=e;return t(["Please check the payment details and try again."])}}},RedirectDialog:{title:e=>{const{normalize:t}=e;return t(["Incomplete Personal Data"])},text:e=>{const{normalize:t}=e;return t(["It is necessary to complete the registration on the settings page before making a purchase."])},updatePersonalData:e=>{const{normalize:t}=e;return t(["Complete registration"])}},Benefits:{title:e=>{const{normalize:t}=e;return t(["Subscribe and Get These Benefits"])},contentAccess:e=>{const{normalize:t}=e;return t(["Access to content"])},chatWithCreator:e=>{const{normalize:t}=e;return t(["Exclusive chat with the creator"])},cancelAnyTime:e=>{const{normalize:t}=e;return t(["Cancel anytime"])}}},ct={base:{confirm:e=>{const{normalize:t}=e;return t(["Confirmar"])},cancel:e=>{const{normalize:t}=e;return t(["Cancelar"])},back:e=>{const{normalize:t}=e;return t(["Atrás"])},next:e=>{const{normalize:t}=e;return t(["Siguiente"])},send:e=>{const{normalize:t}=e;return t(["Enviar"])},close:e=>{const{normalize:t}=e;return t(["Cerrar"])},defaultErrorMsg:e=>{const{normalize:t}=e;return t(["Lo siento, ocurrió un error al procesar tu solicitud."])},selected_n:e=>{const{normalize:t}=e;return t(["Seleccionado(s)"])},no_results:e=>{const{normalize:t}=e;return t(["Sin resultados"])},proceed_with_payment:e=>{const{normalize:t}=e;return t(["Continuar con el Pago"])},completePayment:e=>{const{normalize:t}=e;return t(["Completar Pago"])},contact_orangesea:e=>{const{normalize:t}=e;return t(["ORANGE SEA CORP, 80 main street, Po BOX 3200, Road Town, Tortola VG1110, Islas Vírgenes Británicas"])},contact_qm:e=>{const{normalize:t}=e;return t(["QMS520 TECHNOLOGY INTERNATIONAL, Aida Avenue, Estoril Garden, Bloco 1, Room 112, Estoril, Cascais, Lisboa."])}},paymentDialog:{processed:{title:e=>{const{normalize:t}=e;return t(["¡Solicitud Procesada!"])},text:e=>{const{normalize:t}=e;return t(["Ahora tienes acceso al contenido adquirido."])},fail:e=>{const{normalize:t}=e;return t(["No se pudo procesar el pago."])}},processing:{title:e=>{const{normalize:t}=e;return t(["Solicitud en Proceso"])},text:e=>{const{normalize:t}=e;return t(["Por favor espera, tu pago está siendo analizado."])}},options:{title:e=>{const{normalize:t}=e;return t(["Por favor selecciona a continuación el método de pago"])},labelAmount:e=>{const{normalize:t}=e;return t(["Cantidad a pagar"])},pix:{title:e=>{const{normalize:t}=e;return t(["Pix"])},copy:e=>{const{normalize:t}=e;return t(["Copiar código Pix"])},tip:e=>{const{normalize:t}=e;return t(['Por favor, utiliza la función "Copiar y Pegar PIX" en tu aplicación bancaria.'])},confirm:e=>{const{normalize:t}=e;return t(["Generar Pix"])},copyConfirm:e=>{const{normalize:t}=e;return t(["Código PIX copiado."])},checkoutAuxMsg:e=>{const{normalize:t}=e;return t(["Si deseas realizar el pago a través de pix, se generará una vez que finalices el registro y estará disponible para el pago."])},checkoutObs:e=>{const{normalize:t}=e;return t(["Nota: Una vez que el pago se haya compensado, el contenido se liberará y recibirás una notificación por correo electrónico."])}},card:{title:e=>{const{normalize:t}=e;return t(["Tarjeta de Crédito"])},confirm:e=>{const{normalize:t}=e;return t(["Realizar Pago"])}}},title:{default:e=>{const{normalize:t}=e;return t(["Compra de Contenido"])},notAllowed:e=>{const{normalize:t}=e;return t(["Pago no permitido para el contenido seleccionado"])},profile:e=>{const{normalize:t}=e;return t(["Compra de Suscripción"])},post:e=>{const{normalize:t}=e;return t(["Compra de Contenido"])},chat:e=>{const{normalize:t}=e;return t(["Compra de Contenido"])},checkout:e=>{const{normalize:t}=e;return t(["Compra de Suscripción"])},tip:e=>{const{normalize:t}=e;return t(["Enviar regalo"])}},errors:{missingData:e=>{const{normalize:t}=e;return t(["Ocurrió un error al enviar los datos de pago."])},invalidCard:e=>{const{normalize:t}=e;return t(["Tarjeta Inválida."])},paymentDenied:e=>{const{normalize:t}=e;return t(["Método de pago rechazado. Si crees que esto es un error, por favor contacta a nuestro soporte."])},paidContent:e=>{const{normalize:t}=e;return t(["Este contenido ya ha sido adquirido por ti, si no lo ves, por favor actualiza la página."])},paymentInProcess:e=>{const{normalize:t}=e;return t(["Hay un pago en proceso, por favor espera unos momentos."])},profileError:e=>{const{normalize:t}=e;return t(["Se produjo un error al obtener los datos personales. Verifica tu registro e intenta nuevamente."])},creatorDataError:e=>{const{normalize:t}=e;return t(["Se produjo un error al obtener los datos del creador."])},priceMaxToCard:e=>{const{normalize:t}=e;return t(["Valores superiores a R$"])},priceMaxToCardAux:e=>{const{normalize:t}=e;return t([", pago sólo vía Pix"])}}},"3dsDialog":{success:{title:e=>{const{normalize:t}=e;return t(["Pago Aprobado"])},text:e=>{const{normalize:t}=e;return t(["El pago se ha completado. Ahora tienes acceso al contenido adquirido."])}},errors:{paymentRefused:e=>{const{normalize:t}=e;return t(["Pago Rechazado"])},paymentRefusedText:e=>{const{normalize:t}=e;return t(["El pago no fue aprobado. Por favor verifica los detalles del pago e intenta nuevamente."])},paymentError:e=>{const{normalize:t}=e;return t(["Ocurrió un error al procesar el pago"])},paymentErrorText:e=>{const{normalize:t}=e;return t(["Por favor verifica los detalles del pago e intenta nuevamente."])}}},RedirectDialog:{title:e=>{const{normalize:t}=e;return t(["Datos Personales Incompletos"])},text:e=>{const{normalize:t}=e;return t(["Es necesario completar el registro en la página de configuración antes de realizar una compra."])},updatePersonalData:e=>{const{normalize:t}=e;return t(["Finalizar registro"])}},Benefits:{title:e=>{const{normalize:t}=e;return t(["Suscríbete y Obtén Estos Beneficios"])},contentAccess:e=>{const{normalize:t}=e;return t(["Acceso al contenido"])},chatWithCreator:e=>{const{normalize:t}=e;return t(["Chat exclusivo con el creador"])},cancelAnyTime:e=>{const{normalize:t}=e;return t(["Cancela en cualquier momento"])}}};let X=null;const se={install(e){return X=Z.createI18n({legacy:!1,locale:"pt",fallbackLocale:"pt",globalInjection:!1}),e.use(X),dt(),X},get global(){return X.global}};function dt(){r.inject(Z.I18nInjectionKey)||r.provide(Z.I18nInjectionKey,X)}function q(){var a,s;const e=r.getCurrentInstance();r.inject((s=(a=e==null?void 0:e.appContext)==null?void 0:a.app)==null?void 0:s.__VUE_I18N_SYMBOL__)||(e.isCE=!0);const{t:n}=Z.useI18n({messages:{pt:st,en:lt,es:ct}});return{t:n}}const B={get defaultLocale(){return"pt"},set currentLocale(e){e=e&&e.split("-")[0],se.global.locale.value=e},get currentLocale(){return se.global.locale.value},setTranslate({t:e}){this.t=e},getUserLocale(){const e=window.navigator.language||window.navigator.userLanguage||B.defaultLocale;return{locale:e,localeNoRegion:e.split("-")[0]}},getMessage(e){return this.t(e)},async switchLanguage(e){B.currentLocale=e}};function mt(e){const{t}=q();B.setTranslate({t}),r.watch(e.locale,n=>{B.switchLanguage(n||e.locale)},{immediate:!0})}function ve(e,t=2){if(e=le(e),!e)return"R$ -";let n=2,a=2;return typeof t=="number"?(n=t,a=t):t&&typeof t=="object"&&(n=t.min,a=t.max),"R$ "+e.toLocaleString(B.currentLocale,{minimumFractionDigits:n,maximumFractionDigits:a})}function le(e){return typeof e=="string"&&e.includes(",")&&(e=e.replace(",",".")),e=parseFloat(e),e}function pt(e){return(e==null?void 0:e.toString().toLocaleLowerCase())==="true"||e===!0}function ze(e){return e?typeof e=="object"?e:JSON.parse(e):{}}function ut(e){const t=e?atob(e):void 0;return ze(t)}function ft(e){for(const t in e)ht(e[t])&&(e[t]=e[t].replace(/\?&/g,""))}function ht(e){return e&&typeof e=="string"&&e.startsWith("http")}function j(e){return e.toString().padStart(32,"0").replace(/([0-z]{8})([0-z]{4})([0-z]{4})([0-z]{4})([0-z]{12})/,"$1-$2-$3-$4-$5")}function Pe(e,t){return t=t.toUpperCase(),(e==null?void 0:e.length)&&e.some(n=>n.messages.some(a=>a&&a.toUpperCase()===t))}const R={value:null,provides:null},De={install(e,t){e.config.globalProperties.$http||(R.value=$e.create({baseURL:t==null?void 0:t.baseUrl}),R.value.interceptors.request.use(n=>(n.includeAppAuthorization!=!1&&R.provides.token.value&&!n.headers.Authorization&&(n.apiAuth=="v1"?n.headers.Authorization=`Bearer ${R.provides.tokenV1.value}`:n.headers.Authorization=`Bearer ${R.provides.token.value}`),n.headers["Accept-Language"]||(n.headers["Accept-Language"]=R.provides.locale.value||B.defaultLocale),n),n=>Promise.reject(n)),e.config.globalProperties.$http=R.value)},useProvides(e){R.provides=e.provides,R.emit=e.emit}},gt=e=>{r.provide("ready",r.computed(()=>e.ready==null?!0:pt(e.ready))),r.provide("appSettings",r.computed(()=>{const t=ut(e.appSettings);return ft(t),t})),r.provide("priceSettings",r.computed(()=>ze(e.priceSettings))),r.provide("token",r.computed(()=>e.token)),r.provide("tokenV1",r.computed(()=>e.tokenV1)),r.provide("$http",r.computed(()=>R.value)),r.provide("locale",r.computed(()=>e.locale)),r.provide("page",r.computed(()=>e.page))},yt=({emit:e})=>{const t=r.ref(!1);return r.onMounted(()=>{if(document.readyState==="complete")t.value=!0,e("ready");else{const n=window.addEventListener("load",()=>{t.value=!0,window.removeEventListener("load",n),e("ready")})}}),{windowLoaded:t}},Ne=et(),Ie={install(e){e.use(Ne)},useProvides(e){const t=()=>({global:{instance:e,ready:e.provides.ready,appSettings:e.provides.appSettings,token:e.provides.token,tokenV1:e.provides.tokenV1,$http:e.provides.$http,locale:e.provides.locale,page:e.provides.page,priceSettings:e.provides.priceSettings}});Ne.use(t)}};function _t(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a0&&(s=s.replace(/^[\/]+/,"")),a0?"?":"")+i.join("&"),c}function A(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),_t(e)}/*! * qrcode.vue v3.4.1 * A Vue.js component to generate QRCode. * © 2017-2023 @scopewu(https://github.com/scopewu) * MIT License. */var re=function(){return re=Object.assign||function(t){for(var n,a=1,s=arguments.length;ai.MAX_VERSION)throw new RangeError("Version value out of range");if(m<-1||m>7)throw new RangeError("Mask value out of range");this.size=o*4+17;for(var p=[],u=0;u7)throw new RangeError("Invalid value");var f,g;for(f=d;;f++){var _=i.getNumDataCodewords(f,l)*8,z=c.getTotalBits(o,f);if(z<=_){g=z;break}if(f>=m)throw new RangeError("Data too long")}for(var h=0,y=[i.Ecc.MEDIUM,i.Ecc.QUARTILE,i.Ecc.HIGH];h>>3]|=G<<7-(k&7)}),new i(f,l,L,p)},i.prototype.getModule=function(o,l){return 0<=o&&o>>9)*1335;var p=(l<<10|d)^21522;s(p>>>15==0);for(var m=0;m<=5;m++)this.setFunctionModule(8,m,a(p,m));this.setFunctionModule(8,7,a(p,6)),this.setFunctionModule(8,8,a(p,7)),this.setFunctionModule(7,8,a(p,8));for(var m=9;m<15;m++)this.setFunctionModule(14-m,8,a(p,m));for(var m=0;m<8;m++)this.setFunctionModule(this.size-1-m,8,a(p,m));for(var m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,a(p,m));this.setFunctionModule(8,this.size-8,!0)},i.prototype.drawVersion=function(){if(!(this.version<7)){for(var o=this.version,l=0;l<12;l++)o=o<<1^(o>>>11)*7973;var d=this.version<<12|o;s(d>>>18==0);for(var l=0;l<18;l++){var m=a(d,l),p=this.size-11+l%3,u=Math.floor(l/3);this.setFunctionModule(p,u,m),this.setFunctionModule(u,p,m)}}},i.prototype.drawFinderPattern=function(o,l){for(var d=-4;d<=4;d++)for(var m=-4;m<=4;m++){var p=Math.max(Math.abs(m),Math.abs(d)),u=o+m,f=l+d;0<=u&&u=f)&&v.push(b[C])})},h=0;h<_[0].length;h++)w(h);return s(v.length==u),v},i.prototype.drawCodewords=function(o){if(o.length!=Math.floor(i.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var l=0,d=this.size-1;d>=1;d-=2){d==6&&(d=5);for(var m=0;m>>3],7-(l&7)),l++)}}s(l==o.length*8)},i.prototype.applyMask=function(o){if(o<0||o>7)throw new RangeError("Mask value out of range");for(var l=0;l5&&o++):(this.finderPenaltyAddHistory(m,p),d||(o+=this.finderPenaltyCountPatterns(p)*i.PENALTY_N3),d=this.modules[l][u],m=1);o+=this.finderPenaltyTerminateAndCount(d,m,p)*i.PENALTY_N3}for(var u=0;u5&&o++):(this.finderPenaltyAddHistory(f,p),d||(o+=this.finderPenaltyCountPatterns(p)*i.PENALTY_N3),d=this.modules[l][u],f=1);o+=this.finderPenaltyTerminateAndCount(d,f,p)*i.PENALTY_N3}for(var l=0;li.MAX_VERSION)throw new RangeError("Version number out of range");var l=(16*o+128)*o+64;if(o>=2){var d=Math.floor(o/7)+2;l-=(25*d-10)*d-55,o>=7&&(l-=36)}return s(208<=l&&l<=29648),l},i.getNumDataCodewords=function(o,l){return Math.floor(i.getNumRawDataModules(o)/8)-i.ECC_CODEWORDS_PER_BLOCK[l.ordinal][o]*i.NUM_ERROR_CORRECTION_BLOCKS[l.ordinal][o]},i.reedSolomonComputeDivisor=function(o){if(o<1||o>255)throw new RangeError("Degree out of range");for(var l=[],d=0;d>>8||l>>>8)throw new RangeError("Byte out of range");for(var d=0,m=7;m>=0;m--)d=d<<1^(d>>>7)*285,d^=(l>>>m&1)*o;return s(d>>>8==0),d},i.prototype.finderPenaltyCountPatterns=function(o){var l=o[1];s(l<=this.size*3);var d=l>0&&o[2]==l&&o[3]==l*3&&o[4]==l&&o[5]==l;return(d&&o[0]>=l*4&&o[6]>=l?1:0)+(d&&o[6]>=l*4&&o[0]>=l?1:0)},i.prototype.finderPenaltyTerminateAndCount=function(o,l,d){return o&&(this.finderPenaltyAddHistory(l,d),l=0),l+=this.size,this.finderPenaltyAddHistory(l,d),this.finderPenaltyCountPatterns(d)},i.prototype.finderPenaltyAddHistory=function(o,l){l[0]==0&&(o+=this.size),l.pop(),l.unshift(o)},i.MIN_VERSION=1,i.MAX_VERSION=40,i.PENALTY_N1=3,i.PENALTY_N2=3,i.PENALTY_N3=40,i.PENALTY_N4=10,i.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],i.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],i}();e.QrCode=t;function n(i,o,l){if(o<0||o>31||i>>>o)throw new RangeError("Value out of range");for(var d=o-1;d>=0;d--)l.push(i>>>d&1)}function a(i,o){return(i>>>o&1)!=0}function s(i){if(!i)throw new Error("Assertion error")}var c=function(){function i(o,l,d){if(this.mode=o,this.numChars=l,this.bitData=d,l<0)throw new RangeError("Invalid argument");this.bitData=d.slice()}return i.makeBytes=function(o){for(var l=[],d=0,m=o;d=1<-1}}}),bt=r.defineComponent({name:"QRCodeSvg",props:de,setup:function(e){var t=r.ref(0),n=r.ref(""),a=function(){var s=e.value,c=e.level,i=e.margin,o=$.QrCode.encodeText(s,ce[c]).getModules();t.value=o.length+i*2,n.value=xe(o,i)};return a(),r.onUpdated(a),function(){return r.h("svg",{width:e.size,height:e.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(t.value," ").concat(t.value)},[r.h("path",{fill:e.background,d:"M0,0 h".concat(t.value,"v").concat(t.value,"H0z")}),r.h("path",{fill:e.foreground,d:n.value})])}}}),Et=r.defineComponent({name:"QRCodeCanvas",props:de,setup:function(e){var t=r.ref(null),n=function(){var a=e.value,s=e.level,c=e.size,i=e.margin,o=e.background,l=e.foreground,d=t.value;if(d){var m=d.getContext("2d");if(m){var p=$.QrCode.encodeText(a,ce[s]).getModules(),u=p.length+i*2,f=window.devicePixelRatio||1,g=c/u*f;d.height=d.width=c*f,m.scale(g,g),m.fillStyle=o,m.fillRect(0,0,u,u),m.fillStyle=l,Ct?m.fill(new Path2D(xe(p,i))):p.forEach(function(_,z){_.forEach(function(h,y){h&&m.fillRect(y+i,z+i,1,1)})})}}};return r.onMounted(n),r.onUpdated(n),function(){return r.h("canvas",{ref:t,style:{width:"".concat(e.size,"px"),height:"".concat(e.size,"px")}})}}}),Te=r.defineComponent({name:"Qrcode",render:function(){var e=this.$props,t=e.renderAs,n=e.value,a=e.size,s=e.margin,c=e.level,i=e.background,o=e.foreground,l=a>>>0,d=s>>>0,m=ke(c)?c:Ae;return r.h(t==="svg"?bt:Et,{value:n,size:l,margin:d,level:m,background:i,foreground:o})},props:St});const Me={run(e){return window.WC_AUTO_LOADER.run(e)}},Ln="",Yn="",Fn="",Hn="";var wt={prefix:"fas",iconName:"spinner-third",icon:[512,512,[],"f3f4","M224 32c0-17.7 14.3-32 32-32C397.4 0 512 114.6 512 256c0 46.6-12.5 90.4-34.3 128c-8.8 15.3-28.4 20.5-43.7 11.7s-20.5-28.4-11.7-43.7c16.3-28.2 25.7-61 25.7-96c0-106-86-192-192-192c-17.7 0-32-14.3-32-32z"]},vt={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Re={prefix:"fal",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-8.8 0-16 7.2-16 16V272c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16zm24 224a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},zt={prefix:"fal",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]},Pt={prefix:"fal",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c8.8 0 16-7.2 16-16s-7.2-16-16-16H272V240c0-8.8-7.2-16-16-16H216c-8.8 0-16 7.2-16 16s7.2 16 16 16h24v96H208zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},Dt={prefix:"fal",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM180.7 180.7c-6.2 6.2-6.2 16.4 0 22.6L233.4 256l-52.7 52.7c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L256 278.6l52.7 52.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L278.6 256l52.7-52.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L256 233.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0z"]};const Nt=`.auth-dialog-container .el-overlay{background-color:#0000001a!important}.threeds-container{max-width:800px;height:400px;border-radius:8px!important;display:flex;align-items:center;justify-content:center}.threeds-container .el-dialog__header{display:none}.transparent{background:transparent;box-shadow:none}.threeds-iframe iframe{min-height:450px;display:flex;justify-content:center;align-items:center;border-radius:8px}.status-icon{padding-bottom:1vh;font-size:5em} `,F=(e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n},It={inject:["appSettings","$http","token"],props:{locale:String,modelValue:Boolean,url:String,idCobranca:String,responsePaymentStatus:String},components:{ElDialog:P.ElDialog,ElButton:P.ElButton},setup(){const{t:e}=q(),t=te();return{t:e,appStore:t,faSpinnerThird:wt,faCircleCheck:zt,faCircleXmark:Dt,faCircleExclamation:Re}},emits:["update:model-value"],data:()=>({redirectUrl:null,paymentStatus:null,authenticatorDialog:!1,responseDialog:!1,checkSubmitTimeout:18e4,STATUS:{SUCCESS:"success",DENIED:"denied",REDIRECT_REQUIRED:"redirect_required",CHECK_CALLBACK_AGAIN:"check_callback_again",CHECK_RESULT_AGAIN:"check_result_again",AUTH_FAILED:"auth_failed",ERROR:"error"}}),watch:{modelValue:{immediate:!0,async handler(e){e&&this.url&&await this.consultCallback(!0)}},paymentStatus:{immediate:!0,handler(e){e===this.STATUS.REDIRECT_REQUIRED?(this.checkSubmit(),this.authenticatorDialog=!0):e&&e!==this.STATUS.REDIRECT_REQUIRED&&e!==this.STATUS.CHECK_CALLBACK_AGAIN&&e!==this.STATUS.CHECK_RESULT_AGAIN&&(this.responseDialog=!0)}},responsePaymentStatus:{immediate:!0,async handler(e){e==="AUTHORIZED"&&!this.url?this.paymentStatus=this.STATUS.SUCCESS:e==="DENIED"&&!this.url&&(this.paymentStatus=this.STATUS.DENIED)}}},methods:{closeDialog(e){this.redirectUrl=null,this.paymentStatus=null,this.authenticatorDialog=!1,this.responseDialog=!1,this.$emit("content-paid",e)},async consultCallback(e){try{const t=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,"/v1/payment/pagamento-internacional/consultacallback"),n={chargeId:this.idCobranca,checkCallBack:e};if(e){let a=0;for(;a<3&&(!this.paymentStatus||this.paymentStatus===this.STATUS.CHECK_CALLBACK_AGAIN);){await new Promise(c=>setTimeout(c,1e4));const s=await this.$http.post(t,n,{apiAuth:"v1"});s.data&&(this.redirectUrl=s.data.redirectUrl,this.paymentStatus=s.data.paymentStatus===this.STATUS.CHECK_CALLBACK_AGAIN&&a===2?"error":s.data.paymentStatus),a+=1}}else{const a=await this.$http.post(t,n,{apiAuth:"v1"});a.data&&(this.paymentStatus!==this.STATUS.SUCCESS||this.paymentStatus!==this.STATUS.DENIED||this.paymentStatus!==this.STATUS.ERROR||this.paymentStatus!==this.STATUS.AUTH_FAILED)&&(this.paymentStatus=a.data.paymentStatus)}}catch{this.paymentStatus=this.STATUS.ERROR}},async checkSubmit(){const e=Date.now();let t=!0;for(;Date.now()-esetTimeout(n,15e3)),await this.consultCallback(!1),t=!1):(await new Promise(n=>setTimeout(n,3e3)),await this.consultCallback(!1));this.paymentStatus===this.STATUS.CHECK_RESULT_AGAIN&&(this.paymentStatus=this.STATUS.ERROR)}}},At=["src"],kt={class:"auth-dialog-container"},xt=["src"],Tt={key:0,class:"text-center"},Mt={style:{color:"#50c878"}},Rt={key:1,class:"text-center"},Ot={key:2,class:"text-center"};function Vt(e,t,n,a,s,c){const i=r.resolveComponent("el-dialog"),o=r.resolveComponent("font-awesome-icon"),l=r.resolveComponent("el-button");return r.openBlock(),r.createElementBlock(r.Fragment,null,[n.modelValue?(r.openBlock(),r.createElementBlock("iframe",{key:0,src:n.url,class:"d-none"},null,8,At)):r.createCommentVNode("",!0),r.createElementVNode("div",kt,[r.createVNode(i,{"model-value":e.authenticatorDialog,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"align-center":!0,class:"transparent threeds-container threeds-iframe",onClose:t[0]||(t[0]=d=>c.closeDialog())},{default:r.withCtx(()=>[e.paymentStatus&&(e.paymentStatus===e.STATUS.REDIRECT_REQUIRED||e.paymentStatus===e.STATUS.CHECK_RESULT_AGAIN)?(r.openBlock(),r.createElementBlock("iframe",{key:0,ref:"iframeRef",src:e.redirectUrl},null,8,xt)):r.createCommentVNode("",!0)]),_:1},8,["model-value"])]),r.createVNode(i,{"model-value":e.responseDialog,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"60%",class:"threeds-container"},{default:r.withCtx(()=>[e.paymentStatus===e.STATUS.SUCCESS?(r.openBlock(),r.createElementBlock("div",Tt,[r.createVNode(o,{icon:a.faCircleCheck,color:"#50c878",class:"status-icon"},null,8,["icon"]),r.createElementVNode("h3",Mt,r.toDisplayString(a.t("3dsDialog.success.title")),1),r.createElementVNode("p",null,r.toDisplayString(a.t("3dsDialog.success.text")),1),r.createVNode(l,{class:"btn btn-privacy mt-2",onClick:t[1]||(t[1]=d=>c.closeDialog(!0))},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("base.close")),1)]),_:1})])):e.paymentStatus===e.STATUS.DENIED?(r.openBlock(),r.createElementBlock("div",Rt,[r.createVNode(o,{icon:a.faCircleXmark,color:"#ff5e5e",class:"status-icon"},null,8,["icon"]),r.createElementVNode("h3",null,r.toDisplayString(a.t("3dsDialog.errors.paymentRefused")),1),r.createElementVNode("p",null,r.toDisplayString(a.t("3dsDialog.errors.paymentRefusedText")),1),r.createVNode(l,{class:"btn btn-privacy mt-2",onClick:t[2]||(t[2]=d=>c.closeDialog(!1))},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("base.close")),1)]),_:1})])):e.paymentStatus===e.STATUS.ERROR||e.paymentStatus===e.STATUS.AUTH_FAILED?(r.openBlock(),r.createElementBlock("div",Ot,[r.createVNode(o,{icon:a.faCircleExclamation,color:"#ffaf5e",class:"status-icon"},null,8,["icon"]),r.createElementVNode("h3",null,r.toDisplayString(a.t("3dsDialog.errors.paymentError")),1),r.createElementVNode("p",null,r.toDisplayString(a.t("3dsDialog.errors.paymentErrorText")),1),r.createVNode(l,{class:"btn btn-privacy mt-2",onClick:t[3]||(t[3]=d=>c.closeDialog(!1))},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("base.close")),1)]),_:1})])):r.createCommentVNode("",!0)]),_:1},8,["model-value"])],64)}const Oe=F(It,[["render",Vt],["styles",[Nt]]]),Bt=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"})),Ut=`.redirect-dialog{text-align:center;border-radius:8px!important;max-width:500px}.redirect-dialog .el-dialog__header{margin:0;padding:2rem 2rem 0rem}.redirect-dialog .el-dialog__body{padding-top:1rem}.redirect-dialog .redirect-dialog-text{font-size:1rem;padding:0rem .5rem} `,jt={inject:["appSettings"],props:{locale:String,modelValue:Boolean},components:{ElDialog:P.ElDialog,ElButton:P.ElButton},setup(){const{t:e}=q(),t=te();return{t:e,appStore:t,faCircleExclamation:Re}},emits:["update:model-value"],data:()=>({}),methods:{profileRedirect(){window.location.href=A(this.appSettings.PRIVACY_URL,"/settings/personal")},closeDialog(){this.$emit("update:model-value",!1)}}},Lt={class:"redirect-dialog-text"};function Yt(e,t,n,a,s,c){const i=r.resolveComponent("font-awesome-icon"),o=r.resolveComponent("el-button"),l=r.resolveComponent("el-dialog");return r.openBlock(),r.createBlock(l,{"model-value":n.modelValue,"show-close":!1,"align-center":!0,width:"95%",class:"redirect-dialog",onClose:c.closeDialog},{header:r.withCtx(()=>[r.createVNode(i,{icon:a.faCircleExclamation,color:"#ffaf5e",class:"status-icon mb-2"},null,8,["icon"]),r.createElementVNode("h4",null,r.toDisplayString(a.t("RedirectDialog.title")),1)]),default:r.withCtx(()=>[r.createElementVNode("p",Lt,r.toDisplayString(a.t("RedirectDialog.text")),1),r.createVNode(o,{class:"btn btn-privacy mt-2 mr-2",onClick:t[0]||(t[0]=d=>c.profileRedirect())},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("RedirectDialog.updatePersonalData")),1)]),_:1}),r.createVNode(o,{class:"btn btn-privacy mt-2 mr-2",onClick:c.closeDialog},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("base.cancel")),1)]),_:1},8,["onClick"])]),_:1},8,["model-value","onClose"])}const Ve=F(jt,[["render",Yt],["styles",[Ut]]]),Ft=Object.freeze(Object.defineProperty({__proto__:null,default:Ve},Symbol.toStringTag,{value:"Module"})),Ht=`.avatar-wrapper{--avatar-size: 25px;position:relative;margin:-2rem .5rem 0rem;border-radius:50%;width:var(--avatar-size);height:var(--avatar-size);left:0}.avatar{background-size:cover;background-position:center center;background-repeat:no-repeat;height:var(--avatar-size);width:var(--avatar-size);min-height:var(--avatar-size);min-width:var(--avatar-size);margin-right:8px;border-radius:50%}.avatar-svg{display:flex;justify-content:center;align-items:center}.avatar-svg svg{height:1.1em}a.avatar.vac-avatar-svg{color:rgba(var(--color-orange-rgb-3),.8)} `,Gt={props:{avatar:[Boolean,String],nickName:{type:String,default:""},size:{type:Number}},data:()=>({avatarGenerated:""}),computed:{innerStyle(){return{"background-image":`url('${this.avatarGenerated?this.avatarGenerated:this.avatar}')`}}},async mounted(){this.loadImage()},methods:{async loadImage(){const e=new Image;e.addEventListener("error",async()=>{this.avatarGenerated=await this.getDefaultAvatar(this.nickName)}),e.src=this.avatar},async getDefaultAvatar(e){e=e.trim();const t="#F4EEE5",n="#333333";let a=[],s="",c="";e==null||e==""?(s="",c=""):(a=e.toUpperCase().split(" "),s=`${a[0][0]}`,c=a.length>1?`${a[1][0]}`:`${a[0][1]}`);const i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("width","120"),i.setAttribute("height","120");const o=document.createElementNS("http://www.w3.org/2000/svg","rect");o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("width","120"),o.setAttribute("height","120"),o.setAttribute("fill",t);const l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("x","60px"),l.setAttribute("y","64px"),l.setAttribute("dominant-baseline","middle"),l.setAttribute("text-anchor","middle"),l.setAttribute("fill",n),l.setAttribute("font-family","Helvetica"),l.setAttribute("font-size","40px"),l.setAttribute("font-weight","530"),l.textContent=`${s}${c}`,i.appendChild(o),i.appendChild(l);const d=new XMLSerializer().serializeToString(i);return`data:image/svg+xml, ${encodeURIComponent(d)}`}}};function Wt(e,t,n,a,s,c){return r.openBlock(),r.createElementBlock("div",{class:"avatar-wrapper",style:r.normalizeStyle(n.size?`--avatar-size:${n.size}px`:null)},[r.createElementVNode("a",{ref:"div",class:"avatar avatar-svg",style:r.normalizeStyle(c.innerStyle)},null,4)],4)}const Be=F(Gt,[["render",Wt],["styles",[Ht]]]),qt=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"}));class D extends Error{constructor(t){super(t)}}function I(e,t=void 0){var a,s,c;let n="";return((a=e==null?void 0:e.response)==null?void 0:a.status)===400&&typeof((s=e==null?void 0:e.response)==null?void 0:s.data)=="string"?n=(c=e==null?void 0:e.response)==null?void 0:c.data:e instanceof D&&(n=e.message),n||t||B.getMessage("base.defaultErrorMsg")}var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var me={},Kt={get exports(){return me},set exports(e){me=e}};(function(e,t){(function(n,a){e.exports=a()})($t,function(){return function(n){function a(c){if(s[c])return s[c].exports;var i=s[c]={i:c,l:!1,exports:{}};return n[c].call(i.exports,i,i.exports,a),i.l=!0,i.exports}var s={};return a.m=n,a.c=s,a.i=function(c){return c},a.d=function(c,i,o){a.o(c,i)||Object.defineProperty(c,i,{configurable:!1,enumerable:!0,get:o})},a.n=function(c){var i=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(i,"a",i),i},a.o=function(c,i){return Object.prototype.hasOwnProperty.call(c,i)},a.p="/vue-jwt-decode/dist",a(a.s=10)}([function(n,a,s){n.exports=!s(1)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){n.exports=function(s){try{return!!s()}catch{return!0}}},function(n,a){var s=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=s)},function(n,a){n.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},function(n,a){var s=n.exports={version:"2.5.3"};typeof __e=="number"&&(__e=s)},function(n,a){n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},function(n,a,s){var c=s(16);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return c(i)=="String"?i.split(""):Object(i)}},function(n,a){var s=Math.ceil,c=Math.floor;n.exports=function(i){return isNaN(i=+i)?0:(i>0?c:s)(i)}},function(n,a,s){var c=s(6),i=s(5);n.exports=function(o){return c(i(o))}},function(n,a,s){var c=s(11),i=s.n(c);a.a={install:function(o){o.prototype.$jwtDec=this,o.jwtDec=this},decode:function(o){if(typeof o!="string"&!o instanceof String)return null;var l=o.split(".");if(l.length<2)return null;var d=JSON.parse(atob(l[0])),m=JSON.parse(atob(l[1]));return i()({},d,m)}}},function(n,a,s){Object.defineProperty(a,"__esModule",{value:!0});var c=s(9);a.default=c.a},function(n,a,s){n.exports={default:s(12),__esModule:!0}},function(n,a,s){s(38),n.exports=s(4).Object.assign},function(n,a){n.exports=function(s){if(typeof s!="function")throw TypeError(s+" is not a function!");return s}},function(n,a,s){var c=s(3);n.exports=function(i){if(!c(i))throw TypeError(i+" is not an object!");return i}},function(n,a,s){var c=s(8),i=s(34),o=s(33);n.exports=function(l){return function(d,m,p){var u,f=c(d),g=i(f.length),_=o(p,g);if(l&&m!=m){for(;g>_;)if((u=f[_++])!=u)return!0}else for(;g>_;_++)if((l||_ in f)&&f[_]===m)return l||_||0;return!l&&-1}}},function(n,a){var s={}.toString;n.exports=function(c){return s.call(c).slice(8,-1)}},function(n,a,s){var c=s(13);n.exports=function(i,o,l){if(c(i),o===void 0)return i;switch(l){case 1:return function(d){return i.call(o,d)};case 2:return function(d,m){return i.call(o,d,m)};case 3:return function(d,m,p){return i.call(o,d,m,p)}}return function(){return i.apply(o,arguments)}}},function(n,a,s){var c=s(3),i=s(2).document,o=c(i)&&c(i.createElement);n.exports=function(l){return o?i.createElement(l):{}}},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,s){var c=s(2),i=s(4),o=s(17),l=s(22),d=function(m,p,u){var f,g,_,z=m&d.F,h=m&d.G,y=m&d.S,E=m&d.P,S=m&d.B,v=m&d.W,w=h?i:i[p]||(i[p]={}),C=w.prototype,b=h?c:y?c[p]:(c[p]||{}).prototype;h&&(u=p);for(f in u)(g=!z&&b&&b[f]!==void 0)&&f in w||(_=g?b[f]:u[f],w[f]=h&&typeof b[f]!="function"?u[f]:S&&g?o(_,c):v&&b[f]==_?function(N){var O=function(T,H,L){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(T);case 2:return new N(T,H)}return new N(T,H,L)}return N.apply(this,arguments)};return O.prototype=N.prototype,O}(_):E&&typeof _=="function"?o(Function.call,_):_,E&&((w.virtual||(w.virtual={}))[f]=_,m&d.R&&C&&!C[f]&&l(C,f,_)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,n.exports=d},function(n,a){var s={}.hasOwnProperty;n.exports=function(c,i){return s.call(c,i)}},function(n,a,s){var c=s(25),i=s(30);n.exports=s(0)?function(o,l,d){return c.f(o,l,i(1,d))}:function(o,l,d){return o[l]=d,o}},function(n,a,s){n.exports=!s(0)&&!s(1)(function(){return Object.defineProperty(s(18)("div"),"a",{get:function(){return 7}}).a!=7})},function(n,a,s){var c=s(28),i=s(26),o=s(29),l=s(35),d=s(6),m=Object.assign;n.exports=!m||s(1)(function(){var p={},u={},f=Symbol(),g="abcdefghijklmnopqrst";return p[f]=7,g.split("").forEach(function(_){u[_]=_}),m({},p)[f]!=7||Object.keys(m({},u)).join("")!=g})?function(p,u){for(var f=l(p),g=arguments.length,_=1,z=i.f,h=o.f;g>_;)for(var y,E=d(arguments[_++]),S=z?c(E).concat(z(E)):c(E),v=S.length,w=0;v>w;)h.call(E,y=S[w++])&&(f[y]=E[y]);return f}:m},function(n,a,s){var c=s(14),i=s(23),o=s(36),l=Object.defineProperty;a.f=s(0)?Object.defineProperty:function(d,m,p){if(c(d),m=o(m,!0),c(p),i)try{return l(d,m,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(d[m]=p.value),d}},function(n,a){a.f=Object.getOwnPropertySymbols},function(n,a,s){var c=s(21),i=s(8),o=s(15)(!1),l=s(31)("IE_PROTO");n.exports=function(d,m){var p,u=i(d),f=0,g=[];for(p in u)p!=l&&c(u,p)&&g.push(p);for(;m.length>f;)c(u,p=m[f++])&&(~o(g,p)||g.push(p));return g}},function(n,a,s){var c=s(27),i=s(19);n.exports=Object.keys||function(o){return c(o,i)}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a){n.exports=function(s,c){return{enumerable:!(1&s),configurable:!(2&s),writable:!(4&s),value:c}}},function(n,a,s){var c=s(32)("keys"),i=s(37);n.exports=function(o){return c[o]||(c[o]=i(o))}},function(n,a,s){var c=s(2),i=c["__core-js_shared__"]||(c["__core-js_shared__"]={});n.exports=function(o){return i[o]||(i[o]={})}},function(n,a,s){var c=s(7),i=Math.max,o=Math.min;n.exports=function(l,d){return l=c(l),l<0?i(l+d,0):o(l,d)}},function(n,a,s){var c=s(7),i=Math.min;n.exports=function(o){return o>0?i(c(o),9007199254740991):0}},function(n,a,s){var c=s(5);n.exports=function(i){return Object(c(i))}},function(n,a,s){var c=s(3);n.exports=function(i,o){if(!c(i))return i;var l,d;if(o&&typeof(l=i.toString)=="function"&&!c(d=l.call(i))||typeof(l=i.valueOf)=="function"&&!c(d=l.call(i))||!o&&typeof(l=i.toString)=="function"&&!c(d=l.call(i)))return d;throw TypeError("Can't convert object to primitive value")}},function(n,a){var s=0,c=Math.random();n.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++s+c).toString(36))}},function(n,a,s){var c=s(20);c(c.S+c.F,"Object",{assign:s(24)})}])})})(Kt);const Xt=Qt(me),Ue=we("auth",{state:()=>({blockScroll:!1}),getters:{jwt:e=>Xt.decode(e.global.token),currentUserId(){var e;return parseInt((e=this.jwt)==null?void 0:e.uid)},roles(){var e;return Qe.castArray((e=this.jwt)==null?void 0:e.role).filter(t=>t)},isCreator(){return this.roles.includes("Creator")&&this.claims.includes("HasTraditionalBankAccount")},claims(){var t,n,a,s;return((t=this.jwt)!=null&&t.claim&&Array.isArray((n=this.jwt)==null?void 0:n.claim)?(a=this.jwt)==null?void 0:a.claim:[(s=this.jwt)==null?void 0:s.claim]).filter(c=>c)},currentUserCountry(){var e;return(e=this.jwt)==null?void 0:e.country}}}),Gn="",Wn="",qn="",$n="",Qn="",Kn="",Xn="",Jn="",Zn="",Jt=`@media (max-height: 950px) and (max-width: 1024px){.dialog-container .el-overlay-dialog{margin-top:65px!important}}@media (max-height: 950px) and (min-width: 1024px){.dialog-container .el-overlay-dialog{margin-top:73px!important}}.payment-dialog{border-radius:8px!important;max-width:800px}.payment-dialog p,.payment-dialog .el-dialog__title{font-size:1rem}.payment-dialog .el-dialog__body{padding-top:5px;padding-bottom:10px}.payment-dialog .el-collapse{border-top:0px}.payment-dialog .el-collapse-item__header{background-color:#fff!important;color:#6c757d!important;font-size:16px!important;margin:5px 0 0;padding:5px 20px;border:1px solid #ccc;border-radius:8px;height:33px;justify-content:center}.payment-dialog .el-collapse-item__header.is-active{border-radius:5px 5px 0 0;border-color:#ccc}.payment-dialog .el-collapse-item__header>i{display:none}.payment-dialog .el-collapse-item__content{padding-bottom:0}.payment-dialog .el-collapse-item__wrap{padding:20px;border:1px solid #ccc;border-top:0;border-radius:0 0 5px 5px;overflow:visible}.payment-dialog .amount-wrap label{margin-bottom:.5rem;line-height:1.2;font-size:1rem}.payment-dialog .amount-wrap .amount{line-height:1.2;font-size:16px;font-weight:600}.payment-dialog .v-enter-active,.payment-dialog .v-leave-active{transition:opacity .5s ease}.payment-dialog .v-enter-from,.payment-dialog .v-leave-to{opacity:0}.payment-dialog .input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){border-radius:.375rem}.show-benefits{border-radius:10px 10px 8px 8px!important}.show-benefits .el-dialog__header{margin:0;padding:0}.show-benefits .el-dialog__headerbtn{width:30px;height:30px;font-size:20px}.cover-img{width:100%;height:80px;object-fit:cover;display:block;border-radius:8px 8px 0 0}.name-container{margin-top:-.5rem;line-height:1rem}.nickname{color:#212529;font-size:.9rem!important;margin-bottom:0}@media (min-width: 550px){.nickname{font-size:1.2rem!important}}.profilename{font-size:.8rem!important;margin-bottom:0rem}.benefit-title{margin:1rem 0rem .5rem;text-align:start;text-transform:uppercase;font-weight:600}.benefit-item{display:flex;align-items:center;margin-bottom:.5px}.benefit-item svg{font-size:1.3em;margin-right:9px}.benefit-item p{margin:0;text-align:start}.qrcode{height:100%!important;width:100%!important;max-height:300px!important;max-width:300px!important}.footer-text{display:flex;justify-content:center;align-items:center;margin:auto;padding-top:8px;text-align:center;font-family:Inter;font-size:12px;color:#a8abb2}.el-popper{max-width:200px!important} `,Zt={inject:["appSettings","locale","token","tokenV1","$http","page","priceSettings"],props:{modelValue:Boolean,value:Number,clientId:String,postId:String,recurrence:String,messageId:String,roomId:String,tipMessage:String,creator:String,creatorNickname:String,coverImg:String,profileImg:String},components:{QrcodeVue:Te,InternationalPaymentDialog:Oe,InvalidProfileDialog:Ve,Avatar:Be,ElDialog:P.ElDialog,ElDivider:P.ElDivider,ElButton:P.ElButton,ElCollapse:P.ElCollapse,ElCollapseItem:P.ElCollapseItem,ElInput:P.ElInput,ElAlert:P.ElAlert,ElSkeleton:P.ElSkeleton,ElSkeletonItem:P.ElSkeletonItem,ElTooltip:P.ElTooltip},setup(){const e=Ue(),{t}=q(),n=r.computed(()=>e.currentUserId),a=r.computed(()=>e.currentUserCountry);return{t,formatMoney:ve,currentUserId:n,currentUserCountry:a,faCheck:vt,faCircleInfo:Pt}},data:()=>({wcMyCards:{name:"privacy-web-mycards",ctx:null,loaded:!1,error:!1,cardStore:null},payment:{method:null,pix:{error:!1,processing:!1,barcode:null,showCopiedMsg:!1},creditCard:{error:!1,processing:!1,paymentStatus:!1}},PAYMENT_STATUS:{SUCCESS:"SUCCESS",PENDING:"PENDING"},API_PAYMENT_ERRRO_MSG:{PAYMENT_PENDING:"Sua compra está em análise, assim que confirmarmos você será notificado por e-mail.",PAYMENT_IN_PROCESS:"Existe um pagamento em andamento, favor aguardar alguns instantes.",PAID_CONTENT:"Esse conteúdo já foi adquirido por você, caso não esteja visualizando, favor atualizar a página.",PAYMENT_DENIED:"Método de pagamento recusado, por favor tente por pix ou boleto, caso acredite ser um engano favor entrar em contato com nosso suporte."},PAYMENT_METHOD:{CREDIT_CARD:"CREDIT_CARD",CREDIT_CARD_ENUM:1,PIX:"PIX",PIX_ENUM:3},idCobranca:null,loadingCreatorData:!0,creatorData:null,creatorUsername:null,useDefaultCover:null,showInvalidProfileDialog:!1,showInternationalPaymentDialog:!1,url3ds:null,paymentStatus3ds:null}),computed:{appSettingsEncripted(){return btoa(JSON.stringify(this.appSettings))},title(){return this.t(`paymentDialog.title.${this.page}`)},countryBrOrInvalid(){return this.currentUserCountry==="BR"||!this.currentUserCountry},profilePage(){return this.page==="profile"},chatPage(){return this.page==="chat"},defaultCoverImg(){return`${this.appSettings.PRIVACY_URL}/FotoCapa/default-cover.png`},showCardPayment(){return!(this.page==="tip"&&this.currentUserCountry==="BR"||this.page==="chat"&&this.currentUserCountry==="BR"&&this.value>this.priceSettings.priceMaxToCard)},isMobile(){return window.innerWidth<768}},watch:{modelValue:{immediate:!0,async handler(e){e&&(await this.loadWebComponents(),this.currentUserCountry!=="BR"?this.payment.method=this.PAYMENT_METHOD.CREDIT_CARD:this.currentUserCountry==="BR"&&this.page==="tip"?(this.payment.method=this.PAYMENT_METHOD.PIX,await this.generatePix()):this.showCardPayment||(this.payment.method=this.PAYMENT_METHOD.PIX),this.profilePage&&await this.getCreatorData())}},async"payment.method"(){this.payment.method===this.PAYMENT_METHOD.CREDIT_CARD&&(this.fillMyCardsContext(),await this.loadCreditCards())},message:{handler(e,t){e!==t&&(this.payment=this.$options.data().payment)}}},methods:{async loadWebComponents(){try{const e=await Me.run({urlBase:`${this.appSettings.PRIVACY_MODULES}/webcomponents`,componentName:this.wcMyCards.name});this.wcMyCards.loaded=e.loaded,this.wcMyCards.error=e.error}catch{this.wcMyCards.error=!0}},fillMyCardsContext(){var e;this.wcMyCards.cardStore=(e=this.$refs[this.wcMyCards.name])==null?void 0:e._cardStore},async loadCreditCards(){if(this.wcMyCards.cardStore)await this.wcMyCards.cardStore.loadData();else{const e=r.watch(()=>this.wcMyCards.cardStore,t=>{t.loadData(),e()})}},async checkPersonalData(){try{this.payment.creditCard.processing=!0,this.payment.pix.processing=!0;const e=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,"/v1/clientes/dados-pessoais"),t=await this.$http.get(e,{apiAuth:"v1"});if(t.data.success){const{nomeVerdadeiro:n,cep:a,rua:s,cidade:c,estado:i}=t.data.data;return!n||!a||!s||!c||!i&&(this.currentUserCountry==="US"||this.currentUserCountry==="CA")}}catch{throw new D(this.t("paymentDialog.errors.profileError"))}finally{this.payment.creditCard.processing=!1,this.payment.pix.processing=!1}},closeDialog(){this.payment.method=null,this.payment.pix.error=null,this.payment.pix.processing=null,this.payment.pix.barcode=null,this.payment.pix.showCopiedMsg=null,this.payment.creditCard.error=null,this.payment.creditCard.processing=null,this.payment.creditCard.paymentStatus=null,this.$emit("close-dialog")},async generatePix(){if(await this.checkPersonalData()){this.closeDialog(),this.showInvalidProfileDialog=!0;return}switch(this.page){case"profile":await this.generatePixProfile();break;case"chat":await this.generatePixChat();break;case"post":await this.generatePixPost();break;case"tip":await this.generatePixTip();break}},async generatePixProfile(){try{if(this.payment.pix.processing=!0,this.payment.pix.error=null,!this.value||!this.recurrence||!this.clientId||!this.currentUserId)throw new D(this.t("paymentDialog.errors.missingData"));const e=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/payment/gerar-boleto-pix-assinatura/${this.currentUserId}`),t={formaPagamento:this.PAYMENT_METHOD.PIX_ENUM,valor:parseFloat(this.value),clienteId:j(this.clientId),recorrencia:this.recurrence},n=await this.$http.post(e,t,{apiAuth:"v1"});n.data?this.payment.pix.barcode=n.data.data.codigoBarras:this.payment.pix.error=I()}catch(e){this.payment.pix.error=I(e)}finally{this.payment.pix.processing=!1}},async generatePixChat(){try{if(this.payment.pix.processing=!0,this.payment.pix.error=null,!this.roomId||!this.messageId)throw new D(this.t("paymentDialog.errors.missingData"));const e=A(this.appSettings.ENDPOINT_API_CHAT,"/message/pay"),t={roomId:this.roomId,messageId:this.messageId,paymentMethod:this.PAYMENT_METHOD.PIX},n=await this.$http.post(e,t,{headers:{"token-v1":this.tokenV1}});n.data?this.payment.pix.barcode=n.data.barcode:this.payment.pix.error=I()}catch(e){this.payment.pix.error=I(e)}finally{this.payment.pix.processing=!1}},async generatePixPost(){try{if(this.payment.pix.processing=!0,this.payment.pix.error=null,!this.value||!this.postId)throw new D(this.t("paymentDialog.errors.missingData"));const e=await this.getCreatorId(),t=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/payment/gerar-boleto-pix-publicacao/${e}`),n={formaPagamento:this.PAYMENT_METHOD.PIX_ENUM,valor:parseFloat(this.value),postId:j(this.postId)},a=await this.$http.post(t,n,{apiAuth:"v1"});a.data?this.payment.pix.barcode=a.data.data.codigoBarras:this.payment.pix.error=I()}catch(e){this.payment.pix.error=I(e)}finally{this.payment.pix.processing=!1}},async generatePixTip(){try{if(this.payment.pix.processing=!0,this.payment.pix.error=null,!this.value||!this.currentUserId)throw this.t("paymentDialog.errors.missingData");const e=`${this.appSettings.ENDPOINT_API_PRIVACY_DNS}/v1/payment/gerar-boleto-pix-tip`,t={formaPagamento:this.PAYMENT_METHOD.PIX_ENUM,valor:parseFloat(this.value),postId:this.postId,descricao:this.tipMessage},n=await this.$http.post(e,t,{apiAuth:"v1"});n.data?this.payment.pix.barcode=n.data.data.codigoBarras:this.payment.pix.error=I()}catch(e){this.payment.pix.error=I(e),console.log(e)}finally{this.payment.pix.processing=!1}},async payWithCreditCard(){if(await this.checkPersonalData()){this.closeDialog(),this.showInvalidProfileDialog=!0;return}if(!await this.wcMyCards.cardStore.hasCards){this.wcMyCards.cardStore.showDialogAddCard(!0);return}const n=this.currentUserCountry==="BR"?"CreditCard":"InternationalCreditCard";switch(this.page){case"profile":await this["payProfileWith"+n]();break;case"chat":await this["payChatWith"+n]();break;case"post":await this["payPostWith"+n]();break;case"tip":this.currentUserCountry!=="BR"&&await this.payTipWithInternationalCreditCard();break}},async payProfileWithCreditCard(){var e,t;try{if(this.payment.creditCard.processing=!0,this.payment.creditCard.error=null,this.checkPaymentData())throw new D(this.t("paymentDialog.errors.missingData"));if(!await this.wcMyCards.cardStore.isValidCardFormSelect())throw new D(this.t("paymentDialog.errors.invalidCard"));const a=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/payment/enviar-pagamento-assinatura/${this.currentUserId}`),s={formaPagamento:this.PAYMENT_METHOD.CREDIT_CARD_ENUM,valor:le(this.value),clienteId:j(this.clientId),recorrencia:this.recurrence},c=await this.$http.post(a,s,{apiAuth:"v1"});c.data.paymentStatus===this.PAYMENT_STATUS.SUCCESS?this.payment.creditCard.paymentStatus=this.PAYMENT_STATUS.SUCCESS:(e=c.data)!=null&&e.erros&&this.checkResponseErrorHasMessage((t=c.data)==null?void 0:t.erros)}catch(n){this.payment.creditCard.error=I(n)}finally{this.payment.creditCard.processing=!1}},async payProfileWithInternationalCreditCard(){var e,t;try{if(this.payment.creditCard.processing=!0,this.payment.creditCard.error=null,this.checkPaymentData())throw new D(this.t("paymentDialog.errors.missingData"));if(!await this.wcMyCards.cardStore.isValidCardFormSelect())throw new D(this.t("paymentDialog.errors.invalidCard"));const a=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/payment/gerar-pagamento-internacional?uid=${this.currentUserId}`),s={formaPagamento:this.PAYMENT_METHOD.CREDIT_CARD_ENUM,valor:le(this.value),clienteId:j(this.clientId),recorrencia:this.recurrence},c=await this.$http.post(a,s,{apiAuth:"v1"});if(c.data.data){this.proceedInternationalPayment(c.data.data);return}else(e=c.data)!=null&&e.erros&&this.checkResponseErrorHasMessage((t=c.data)==null?void 0:t.erros)}catch(n){this.payment.creditCard.error=I(n),this.payment.creditCard.processing=!1}},async payChatWithCreditCard(){try{if(this.payment.creditCard.processing=!0,this.payment.creditCard.error=null,this.checkPaymentData())throw new D(this.t("paymentDialog.errors.missingData"));if(!await this.wcMyCards.cardStore.isValidCardFormSelect())throw new D(this.t("paymentDialog.errors.invalidCard"));const t=A(this.appSettings.ENDPOINT_API_CHAT,"/message/pay"),n={roomId:this.roomId,messageId:this.messageId,paymentMethod:this.PAYMENT_METHOD.CREDIT_CARD},a=await this.$http.post(t,n,{headers:{"token-v1":this.tokenV1}});a.data?a.data.paymentStatus===this.PAYMENT_STATUS.SUCCESS?this.payment.creditCard.paymentStatus=this.PAYMENT_STATUS.SUCCESS:this.payment.creditCard.paymentStatus=this.PAYMENT_STATUS.PENDING:this.payment.creditCard.error=I()}catch(e){this.payment.creditCard.error=I(e)}finally{this.payment.creditCard.processing=!1}},async payChatWithInternationalCreditCard(){var e,t;try{if(this.payment.creditCard.processing=!0,this.payment.creditCard.error=null,this.checkPaymentData())throw new D(this.t("paymentDialog.errors.missingData"));if(!await this.wcMyCards.cardStore.isValidCardFormSelect())throw new D(this.t("paymentDialog.errors.invalidCard"));const a=new URLSearchParams(window.location.search).get("cid"),s=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/payment/gerar-pagamento-internacional?uid=${a}`),c={formaPagamento:this.PAYMENT_METHOD.CREDIT_CARD_ENUM,valor:parseFloat(this.value),chatMessageId:j(this.messageId),roomId:this.roomId},i=await this.$http.post(s,c,{apiAuth:"v1"});if(i.data.data){this.proceedInternationalPayment(i.data.data);return}else(e=i.data)!=null&&e.erros&&this.checkResponseErrorHasMessage((t=i.data)==null?void 0:t.erros)}catch(n){this.payment.creditCard.error=I(n),this.payment.creditCard.processing=!1}},async payPostWithCreditCard(){var e,t;try{if(this.payment.creditCard.processing=!0,this.payment.creditCard.error=null,this.checkPaymentData())throw new D(this.t("paymentDialog.errors.missingData"));if(!await this.wcMyCards.cardStore.isValidCardFormSelect())throw new D(this.t("paymentDialog.errors.invalidCard"));const a=await this.getCreatorId(),s=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/payment/enviar-pagamento-publicacao/${a}`),c={formaPagamento:this.PAYMENT_METHOD.CREDIT_CARD_ENUM,valor:parseFloat(this.value),postId:j(this.postId)},i=await this.$http.post(s,c,{apiAuth:"v1"});i.data.paymentStatus===this.PAYMENT_STATUS.SUCCESS?this.payment.creditCard.paymentStatus=this.PAYMENT_STATUS.SUCCESS:(e=i.data)!=null&&e.erros&&this.checkResponseErrorHasMessage((t=i.data)==null?void 0:t.erros)}catch(n){this.payment.creditCard.error=I(n)}finally{this.payment.creditCard.processing=!1}},async payPostWithInternationalCreditCard(){var e,t;try{if(this.payment.creditCard.processing=!0,this.payment.creditCard.error=null,this.checkPaymentData())throw new D(this.t("paymentDialog.errors.missingData"));if(!await this.wcMyCards.cardStore.isValidCardFormSelect())throw new D(this.t("paymentDialog.errors.invalidCard"));const a=await this.getCreatorId(),s=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/payment/gerar-pagamento-internacional?uid=${a}`),c={formaPagamento:this.PAYMENT_METHOD.CREDIT_CARD_ENUM,valor:parseFloat(this.value),postId:j(this.postId)},i=await this.$http.post(s,c,{apiAuth:"v1"});if(i.data.data){this.proceedInternationalPayment(i.data.data);return}else(e=i.data)!=null&&e.erros&&this.checkResponseErrorHasMessage((t=i.data)==null?void 0:t.erros)}catch(n){this.payment.creditCard.error=I(n),this.payment.creditCard.processing=!1}},async payTipWithInternationalCreditCard(){var e,t;try{if(this.payment.creditCard.processing=!0,this.payment.creditCard.error=null,this.checkPaymentData())throw new D(this.t("paymentDialog.errors.missingData"));if(!await this.wcMyCards.cardStore.isValidCardFormSelect())throw new D(this.t("paymentDialog.errors.invalidCard"));const a=await this.getCreatorId(),s=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/payment/gerar-pagamento-internacional?uid=${a}`),c={formaPagamento:this.PAYMENT_METHOD.CREDIT_CARD_ENUM,valor:parseFloat(this.value),postId:j(this.postId),tipId:"00000000-0000-0000-0000-000000000000",descricao:this.tipMessage},i=await this.$http.post(s,c,{apiAuth:"v1"});if(i.data.data){this.proceedInternationalPayment(i.data.data);return}else(e=i.data)!=null&&e.erros&&this.checkResponseErrorHasMessage((t=i.data)==null?void 0:t.erros)}catch(n){this.payment.creditCard.error=I(n),this.payment.creditCard.processing=!1}},async getCreatorId(){try{let e=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/posts/${this.postId}/post`),t=await this.$http.get(e,{apiAuth:"v1"});return this.creatorUsername=t.data.data.nomePerfil,e=A(this.appSettings.ENDPOINT_API_PRIVACY_DNS,`/v1/clientes/perfil/${this.creatorUsername}`),t=await this.$http.get(e,{apiAuth:"v1"}),t.data.data.userIdV2}catch(e){this.payment.creditCard.error=I(e)}},async getCreatorData(){try{this.loadingCreatorData=!0;const e=A(this.appSettings.ENDPOINT_API_PROFILE,`/Users/Creator/${this.creator}`),t=await this.$http.get(e);t.data&&(this.creatorData=t.data)}catch{throw new D(this.t("paymentDialog.errors.creatorDataError"))}finally{this.loadingCreatorData=!1}},linkCoverImage(e){this.loadingCover=!0;const t=new Image;return t.src=`${this.appSettings.ENDPOINT_API_MEDIA}/cover/${e}?redirect=true`,t.addEventListener("error",()=>{this.useDefaultCover=!0}),`${this.appSettings.ENDPOINT_API_MEDIA}/cover/${e}?redirect=true`},linkProfileImage(e){return`${this.appSettings.ENDPOINT_API_MEDIA}/avatar/${e}?redirect=true`},copyToClipboard(){this.payment.pix.showCopiedMsg=!0,navigator.clipboard.writeText(this.payment.pix.barcode),setTimeout(()=>{this.payment.pix.showCopiedMsg=null},3e3)},proceedInternationalPayment(e){this.payment.creditCard.processing=!0,this.url3ds=e.url3DS,this.idCobranca=e.idCobranca,this.paymentStatus3ds=e.statusCobranca,this.showInternationalPaymentDialog=!0},checkResponseErrorHasMessage(e){if(!e)return;const{PAYMENT_PENDING:t,PAYMENT_IN_PROCESS:n,PAID_CONTENT:a,PAYMENT_DENIED:s}=this.API_PAYMENT_ERRRO_MSG;if(Pe(e,t)){this.payment.creditCard.paymentStatus=this.PAYMENT_STATUS.PENDING;return}const c={[n]:this.t("paymentDialog.errors.paymentInProcess"),[a]:this.t("paymentDialog.errors.paidContent"),[s]:this.t("paymentDialog.errors.paymentDenied")};for(let[i,o]of Object.entries(c))if(Pe(e,i))throw new D(o);throw new D(this.t("paymentDialog.processed.fail"))},handleContentPaid(e){const n=this.postId,a=this.creatorUsername;this.showInternationalPaymentDialog=!1,this.payment.creditCard.processing=!1,e&&(this.closeDialog(),this.$emit("content-paid",{reload:!0,postId:n,creator:a}))},checkPaymentData(){let e=!1;switch(this.page){case"profile":e=!this.value||!this.recurrence||!this.clientId||!this.currentUserId;break;case"chat":e=!this.value||!this.messageId||!this.roomId;break;case"post":e=!this.value||!this.postId;break;case"tip":e=!this.value||!this.postId;break}return e}}},er={key:0},tr=["src"],rr={class:"d-flex align-items-center"},nr={class:"name-container"},ar={class:"nickname"},or={class:"profilename"},ir={key:1},sr={key:0},lr={key:1},cr=["src"],dr={class:"d-flex align-items-center"},mr={class:"name-container"},pr={class:"nickname"},ur={class:"profilename"},fr={key:0},hr={class:"benefit-title"},gr={class:"benefit-item"},yr={class:"benefit-item"},_r={class:"benefit-item"},Cr={key:0,class:"text-center"},Sr={key:1,class:"text-center"},br={key:2},Er={class:"mt-3 mb-2"},wr={class:"amount-wrap"},vr={class:"text-muted"},zr={class:"amount text-muted"},Pr={class:"mt-4"},Dr={key:0},Nr={class:"row"},Ir={class:"col-12 input-group justify-content-center"},Ar={class:"col-12"},kr={class:"col-12 text-center mt-2 text-muted"},xr=["innerHTML"],Tr={class:"col-12"},Mr={class:"text-center"},Rr={key:1},Or={class:"amount-wrap mt-3"},Vr={class:"text-muted"},Br={class:"amount text-muted"},Ur={class:"mt-4"},jr={class:"footer-text"},Lr=r.createElementVNode("br",null,null,-1);function Yr(e,t,n,a,s,c){const i=r.resolveComponent("Avatar"),o=r.resolveComponent("el-skeleton-item"),l=r.resolveComponent("el-skeleton"),d=r.resolveComponent("font-awesome-icon"),m=r.resolveComponent("el-divider"),p=r.resolveComponent("el-button"),u=r.resolveComponent("el-tooltip"),f=r.resolveComponent("el-input"),g=r.resolveComponent("el-alert"),_=r.resolveComponent("qrcode-vue"),z=r.resolveComponent("el-collapse-item"),h=r.resolveComponent("privacy-web-mycards"),y=r.resolveComponent("el-collapse"),E=r.resolveComponent("el-dialog"),S=r.resolveComponent("InternationalPaymentDialog"),v=r.resolveComponent("InvalidProfileDialog");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c.chatPage?"dialog-container":"")},[r.createVNode(E,{"model-value":n.modelValue,title:c.profilePage?"":c.title,"close-on-click-modal":!1,"close-on-press-escape":!1,class:r.normalizeClass([c.profilePage?"show-benefits":"","payment-dialog"]),"align-center":!0,width:"90%",onClose:t[4]||(t[4]=w=>c.closeDialog())},r.createSlots({default:r.withCtx(()=>[c.profilePage?(r.openBlock(),r.createElementBlock("div",fr,[r.createElementVNode("div",hr,r.toDisplayString(a.t("Benefits.title")),1),r.createElementVNode("div",gr,[r.createVNode(d,{icon:a.faCheck,color:"#ffaf5e"},null,8,["icon"]),r.createElementVNode("p",null,r.toDisplayString(a.t("Benefits.contentAccess")),1)]),r.createElementVNode("div",yr,[r.createVNode(d,{icon:a.faCheck,color:"#ffaf5e"},null,8,["icon"]),r.createElementVNode("p",null,r.toDisplayString(a.t("Benefits.chatWithCreator")),1)]),r.createElementVNode("div",_r,[r.createVNode(d,{icon:a.faCheck,color:"#ffaf5e"},null,8,["icon"]),r.createElementVNode("p",null,r.toDisplayString(a.t("Benefits.cancelAnyTime")),1)])])):(r.openBlock(),r.createBlock(m,{key:1,class:"mt-0"})),r.createVNode(r.Transition,{name:"vac-slide-left",mode:"out-in"},{default:r.withCtx(()=>[r.createElementVNode("div",null,[e.payment.creditCard.paymentStatus===e.PAYMENT_STATUS.SUCCESS?(r.openBlock(),r.createElementBlock("div",Cr,[r.createElementVNode("h3",null,r.toDisplayString(a.t("paymentDialog.processed.title")),1),r.createElementVNode("p",null,r.toDisplayString(a.t("paymentDialog.processed.text")),1),r.createVNode(p,{class:"btn btn-privacy mt-3",onClick:t[0]||(t[0]=w=>c.closeDialog())},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("base.close")),1)]),_:1})])):e.payment.creditCard.paymentStatus===e.PAYMENT_STATUS.PENDING?(r.openBlock(),r.createElementBlock("div",Sr,[r.createElementVNode("h3",null,r.toDisplayString(a.t("paymentDialog.processing.title")),1),r.createElementVNode("p",null,r.toDisplayString(a.t("paymentDialog.processing.text")),1),r.createVNode(p,{class:"btn btn-privacy mt-3",onClick:t[1]||(t[1]=w=>c.closeDialog())},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("base.close")),1)]),_:1})])):(r.openBlock(),r.createElementBlock("div",br,[r.createElementVNode("p",Er,r.toDisplayString(a.t("paymentDialog.options.title")),1),r.createVNode(y,{modelValue:e.payment.method,"onUpdate:modelValue":t[3]||(t[3]=w=>e.payment.method=w),accordion:""},{default:r.withCtx(()=>[a.currentUserCountry==="BR"?(r.openBlock(),r.createBlock(z,{key:0,title:a.t("paymentDialog.options.pix.title"),name:e.PAYMENT_METHOD.PIX},{default:r.withCtx(()=>[r.createElementVNode("div",wr,[r.createElementVNode("label",vr,[r.createTextVNode(r.toDisplayString(a.t("paymentDialog.options.labelAmount"))+" ",1),!c.showCardPayment&&c.chatPage?(r.openBlock(),r.createBlock(u,{key:0,placement:c.isMobile?"top":"right",effect:"light",content:`${a.t("paymentDialog.options.pix.priceMaxToCard")}${c.priceSettings.priceMaxToCard}${a.t("paymentDialog.options.pix.priceMaxToCardAux")}`,teleported:!1,persistent:!1},{default:r.withCtx(()=>[r.createVNode(d,{icon:a.faCircleInfo},null,8,["icon"])]),_:1},8,["placement","content"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",zr,r.toDisplayString(a.formatMoney(n.value)),1)]),r.createVNode(r.Transition,{mode:"out-in"},{default:r.withCtx(()=>[r.createElementVNode("div",Pr,[e.payment.pix.barcode?(r.openBlock(),r.createElementBlock("div",Dr,[r.createVNode(m),r.createElementVNode("div",Nr,[r.createElementVNode("div",Ir,[r.createVNode(f,{id:"txtCodigoPix",value:e.payment.pix.barcode,size:"large",readonly:"readonly"},null,8,["value"]),r.createVNode(p,{class:"btn btn-privacy mt-2",onClick:c.copyToClipboard},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("paymentDialog.options.pix.copy")),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Ar,[r.createVNode(r.Transition,null,{default:r.withCtx(()=>[e.payment.pix.showCopiedMsg?(r.openBlock(),r.createBlock(g,{key:0,class:"mt-1",title:a.t("paymentDialog.options.pix.copyConfirm"),type:"success",dark:"",closable:!1,center:""},null,8,["title"])):r.createCommentVNode("",!0)]),_:1})]),r.createElementVNode("div",kr,[r.createElementVNode("p",{innerHTML:a.t("paymentDialog.options.pix.tip")},null,8,xr)]),r.createElementVNode("div",Tr,[r.createElementVNode("div",Mr,[r.createVNode(_,{value:e.payment.pix.barcode,size:300,class:"qrcode",level:"H"},null,8,["value"])])])])])):(r.openBlock(),r.createBlock(p,{key:1,id:"btnGerarPix",class:"btn btn-privacy w-100",onClick:c.generatePix,loading:e.payment.pix.processing},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(e.payment.pix.processing?"":`${a.t("paymentDialog.options.pix.confirm")}`),1)]),_:1},8,["onClick","loading"])),r.createVNode(r.Transition,null,{default:r.withCtx(()=>[e.payment.pix.error?(r.openBlock(),r.createBlock(g,{key:0,class:"mt-3",title:e.payment.pix.error,type:"error","show-icon":"",dark:"",closable:!1},null,8,["title"])):r.createCommentVNode("",!0)]),_:1})])]),_:1})]),_:1},8,["title","name"])):r.createCommentVNode("",!0),c.showCardPayment?(r.openBlock(),r.createBlock(z,{key:1,title:a.t("paymentDialog.options.card.title"),name:e.PAYMENT_METHOD.CREDIT_CARD},{default:r.withCtx(()=>[e.wcMyCards.loaded?(r.openBlock(),r.createElementBlock("div",Rr,[r.createVNode(h,{ref:e.wcMyCards.name,locale:c.locale,"app-settings":c.appSettingsEncripted,token:c.token,view:"select","show-form-document":c.countryBrOrInvalid,"show-title":!0,"show-form-action":!0,"load-data-on-init":!1,"await-window-load":!1,disabled:e.payment.creditCard.processing,onMounted:t[2]||(t[2]=w=>{var C,b;return e.wcMyCards.ctx=(b=(C=w.detail)==null?void 0:C[0])==null?void 0:b.context})},null,8,["locale","app-settings","token","show-form-document","disabled"])])):(r.openBlock(),r.createBlock(l,{key:0,animated:""},{template:r.withCtx(()=>[r.createVNode(o,{variant:"div",style:{height:"30px"}})]),_:1})),r.createElementVNode("div",Or,[r.createElementVNode("label",Vr,r.toDisplayString(a.t("paymentDialog.options.card.title")),1),r.createElementVNode("div",Br,r.toDisplayString(a.formatMoney(n.value)),1)]),r.createElementVNode("div",Ur,[r.createVNode(p,{class:"btn btn-privacy w-100",onClick:c.payWithCreditCard,loading:e.payment.creditCard.processing,disabled:!e.wcMyCards.loaded||e.wcMyCards.error},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("paymentDialog.options.card.confirm")),1)]),_:1},8,["onClick","loading","disabled"]),r.createVNode(r.Transition,null,{default:r.withCtx(()=>[e.payment.creditCard.error?(r.openBlock(),r.createBlock(g,{key:0,class:"mt-3",title:e.payment.creditCard.error,type:"error","show-icon":"",dark:"",closable:!1},null,8,["title"])):r.createCommentVNode("",!0)]),_:1})])]),_:1},8,["title","name"])):r.createCommentVNode("",!0)]),_:1},8,["modelValue"])]))])]),_:1}),r.createElementVNode("div",jr,[r.createTextVNode(r.toDisplayString(a.t("base.contact_orangesea"))+" ",1),Lr,r.createTextVNode(" "+r.toDisplayString(a.t("base.contact_qm")),1)])]),_:2},[c.profilePage?{name:"header",fn:r.withCtx(()=>[n.creator&&n.creatorNickname&&n.profileImg&&n.coverImg?(r.openBlock(),r.createElementBlock("div",er,[r.createElementVNode("img",{src:n.coverImg||c.defaultCoverImg,class:"cover-img",alt:"cover-image"},null,8,tr),r.createElementVNode("div",rr,[r.createVNode(i,{avatar:n.profileImg,nickName:n.creator,size:96},null,8,["avatar","nickName"]),r.createElementVNode("div",nr,[r.createElementVNode("p",ar,r.toDisplayString(n.creatorNickname),1),r.createElementVNode("p",or,"@"+r.toDisplayString(n.creator),1)])])])):(r.openBlock(),r.createElementBlock("div",ir,[e.loadingCreatorData?(r.openBlock(),r.createElementBlock("div",sr,[r.createVNode(l,{animated:""},{template:r.withCtx(()=>[r.createVNode(o,{style:{height:"9rem"}})]),_:1})])):(r.openBlock(),r.createElementBlock("div",lr,[r.createElementVNode("img",{src:e.useDefaultCover?c.defaultCoverImg:c.linkCoverImage(e.creatorData.uid),class:"cover-img",alt:"cover-image"},null,8,cr),r.createElementVNode("div",dr,[r.createVNode(i,{avatar:c.linkProfileImage(e.creatorData.uid),nickName:e.creatorData.nickName,size:96},null,8,["avatar","nickName"]),r.createElementVNode("div",mr,[r.createElementVNode("p",pr,r.toDisplayString(e.creatorData.nickName),1),r.createElementVNode("p",ur,"@"+r.toDisplayString(n.creator),1)])])]))]))]),key:"0"}:void 0]),1032,["model-value","title","class"]),r.createVNode(S,{modelValue:e.showInternationalPaymentDialog,"onUpdate:modelValue":t[5]||(t[5]=w=>e.showInternationalPaymentDialog=w),url:e.url3ds,"id-cobranca":e.idCobranca,"response-payment-status":e.paymentStatus3ds,onContentPaid:c.handleContentPaid},null,8,["modelValue","url","id-cobranca","response-payment-status","onContentPaid"]),r.createVNode(v,{modelValue:e.showInvalidProfileDialog,"onUpdate:modelValue":t[6]||(t[6]=w=>e.showInvalidProfileDialog=w)},null,8,["modelValue"])],2)}const je=F(Zt,[["render",Yr],["styles",[Jt]]]),Fr=Object.freeze(Object.defineProperty({__proto__:null,default:je},Symbol.toStringTag,{value:"Module"})),Hr=`.payment-form{display:flex;justify-content:center;margin-bottom:15px}.payment-form p{line-height:1.4;font-family:Inter;font-size:1rem;color:#6c757d}.payment-form .el-collapse{border-top:0px}.payment-form .el-collapse-item__header{background-color:#fff!important;color:#6c757d!important;font-size:16px!important;margin:5px 0 0;padding:16px;border:1px solid #ccc;border-radius:5px;height:52px;justify-content:center}.payment-form .el-collapse-item__header.is-active{border-radius:5px 5px 0 0;border-color:#ccc}.payment-form .el-collapse-item__header>i{display:none}.payment-form .el-collapse-item__content{padding-bottom:0}.payment-form .el-collapse-item__wrap{padding:20px;border:1px solid #ccc;border-top:0;border-radius:0 0 5px 5px}.payment-form .value-label{font-size:20px}.payment-form .v-enter-active,.payment-form .v-leave-active{transition:opacity .5s ease}.payment-form .v-enter-from,.payment-form .v-leave-to{opacity:0}.payment-form .input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){border-radius:.375rem} `,Gr={inject:["appSettings","locale","token","$http","page"],props:{value:Number,clientId:String,recurrence:String},components:{QrcodeVue:Te,ElDivider:P.ElDivider,ElButton:P.ElButton,ElCollapse:P.ElCollapse,ElCollapseItem:P.ElCollapseItem,ElInput:P.ElInput,ElAlert:P.ElAlert,ElSkeleton:P.ElSkeleton,ElSkeletonItem:P.ElSkeletonItem},setup(){const e=Ue(),{t}=q(),n=r.computed(()=>e.currentUserId),a=r.computed(()=>e.currentUserCountry);return{currentUserId:n,currentUserCountry:a,t,formatMoney:ve}},data:()=>({wcMyCards:{name:"privacy-web-mycards",ctx:null,loaded:!1,error:!1,loadedData:!1,cardStore:null},payment:{method:null,pix:{error:!1,processing:!1,barcode:null,showCopiedMsg:!1},creditCard:{error:!1,processing:!1,paymentStatus:!1}},PAYMENT_STATUS:{SUCCESS:"SUCCESS",PENDING:"PENDING"},API_PAYMENT_ERRRO_MSG:{PAYMENT_PENDING:"Sua compra está em análise, assim que confirmarmos você será notificado por e-mail.",PAYMENT_IN_PROCESS:"Existe um pagamento em andamento, favor aguardar alguns instantes.",PAID_CONTENT:"Esse conteúdo já foi adquirido por você, caso não esteja visualizando, favor atualizar a página.",PAYMENT_DENIED:"Método de pagamento recusado, por favor tente por pix ou boleto, caso acredite ser um engano favor entrar em contato com nosso suporte."},PAYMENT_METHOD:{CREDIT_CARD:"CREDIT_CARD",CREDIT_CARD_ENUM:1,PIX:"PIX",PIX_ENUM:3}}),computed:{appSettingsEncripted(){return btoa(JSON.stringify(this.appSettings))}},watch:{async"payment.method"(){this.payment.method===this.PAYMENT_METHOD.CREDIT_CARD&&this.token&&this.fillMyCardsContext()}},async mounted(){await this.loadWebComponents()},methods:{async loadWebComponents(){try{const e=await Me.run({urlBase:`${this.appSettings.PRIVACY_MODULES}/webcomponents`,componentName:this.wcMyCards.name});this.wcMyCards.loaded=e.loaded,this.wcMyCards.error=e.error}catch{this.wcMyCards.error=!0}},fillMyCardsContext(){var e;this.wcMyCards.cardStore=(e=this.$refs[this.wcMyCards.name])==null?void 0:e._cardStore},generatePix(){if(this.page==="checkout"){this.checkout(this.PAYMENT_METHOD.PIX,null);return}},async payWithCreditCard(){if(this.page==="checkout"&&this.currentUserCountry==="BR"){await this.payCheckoutWithCreditCard();return}},async payCheckoutWithCreditCard(){if(!await this.wcMyCards.cardStore.isValidCardForm())throw new D(this.t("paymentDialog.errors.invalidCard"));const t=this.wcMyCards.cardStore.cardForm.data;this.checkout(this.PAYMENT_METHOD.CREDIT_CARD,t)},checkout(e,t){const n={paymentMethod:e,cardData:t};this.$emit("checkout",n)}}},Wr={class:"payment-form"},qr={class:"col-12"},$r={key:0,class:"text-center"},Qr={key:1,class:"text-center"},Kr={key:2},Xr={class:"fw-bold"},Jr={class:"mb-0 text-black-50"},Zr={class:"value-label text-muted"},en={class:"mt-3"},tn={key:1},rn={class:"mb-0 text-black-50"},nn={class:"value-label text-muted"},an={class:"mt-3"};function on(e,t,n,a,s,c){const i=r.resolveComponent("el-button"),o=r.resolveComponent("el-alert"),l=r.resolveComponent("el-collapse-item"),d=r.resolveComponent("el-skeleton-item"),m=r.resolveComponent("el-skeleton"),p=r.resolveComponent("privacy-web-mycards"),u=r.resolveComponent("el-collapse");return r.openBlock(),r.createElementBlock("div",Wr,[r.createElementVNode("div",qr,[r.createVNode(r.Transition,{name:"vac-slide-left",mode:"out-in"},{default:r.withCtx(()=>[r.createElementVNode("div",null,[e.payment.creditCard.paymentStatus===e.PAYMENT_STATUS.SUCCESS?(r.openBlock(),r.createElementBlock("div",$r,[r.createElementVNode("h3",null,r.toDisplayString(a.t("paymentDialog.processed.title")),1),r.createElementVNode("p",null,r.toDisplayString(a.t("paymentDialog.processed.text")),1)])):e.payment.creditCard.paymentStatus===e.PAYMENT_STATUS.PENDING?(r.openBlock(),r.createElementBlock("div",Qr,[r.createElementVNode("h3",null,r.toDisplayString(a.t("paymentDialog.processing.title")),1),r.createElementVNode("p",null,r.toDisplayString(a.t("paymentDialog.processing.text")),1)])):(r.openBlock(),r.createElementBlock("div",Kr,[r.createVNode(u,{modelValue:e.payment.method,"onUpdate:modelValue":t[2]||(t[2]=f=>e.payment.method=f),accordion:""},{default:r.withCtx(()=>[r.createVNode(l,{title:a.t("paymentDialog.options.pix.title"),name:e.PAYMENT_METHOD.PIX},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createElementVNode("p",null,r.toDisplayString(a.t("paymentDialog.options.pix.checkoutAuxMsg")),1),r.createElementVNode("p",Xr,r.toDisplayString(a.t("paymentDialog.options.pix.checkoutObs")),1)]),r.createElementVNode("div",null,[r.createElementVNode("p",Jr,r.toDisplayString(a.t("paymentDialog.options.labelAmount")),1),r.createElementVNode("h4",Zr,r.toDisplayString(a.formatMoney(n.value)),1)]),r.createVNode(r.Transition,{mode:"out-in"},{default:r.withCtx(()=>[r.createElementVNode("div",en,[r.createVNode(i,{class:"btn btn-privacy btn-primary w-100",onClick:c.generatePix,loading:e.payment.pix.processing},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("base.completePayment")),1)]),_:1},8,["onClick","loading"]),r.createVNode(r.Transition,null,{default:r.withCtx(()=>[e.payment.pix.error?(r.openBlock(),r.createBlock(o,{key:0,class:"mt-3",title:e.payment.pix.error,type:"error","show-icon":"",dark:"",closable:!1},null,8,["title"])):r.createCommentVNode("",!0)]),_:1})])]),_:1})]),_:1},8,["title","name"]),r.createVNode(l,{title:a.t("paymentDialog.options.card.title"),name:e.PAYMENT_METHOD.CREDIT_CARD,id:"CamposCartao"},{default:r.withCtx(()=>[e.wcMyCards.loaded?(r.openBlock(),r.createElementBlock("div",tn,[r.createVNode(p,{ref:e.wcMyCards.name,locale:c.locale,"app-settings":c.appSettingsEncripted,token:c.token,view:c.token?"select":"form","show-form-document":!0,"show-title":!0,"show-form-action":!!c.token,"load-data-on-init":!1,"await-window-load":!1,disabled:e.payment.creditCard.processing,onMounted:t[0]||(t[0]=f=>{var g,_;return e.wcMyCards.ctx=(_=(g=f.detail)==null?void 0:g[0])==null?void 0:_.context}),onLoadedCards:t[1]||(t[1]=f=>e.wcMyCards.loadedData=!0)},null,8,["locale","app-settings","token","view","show-form-action","disabled"])])):(r.openBlock(),r.createBlock(m,{key:0,animated:""},{template:r.withCtx(()=>[r.createVNode(d,{variant:"div",style:{height:"30px"}})]),_:1})),r.createElementVNode("div",null,[r.createElementVNode("p",rn,r.toDisplayString(a.t("paymentDialog.options.labelAmount")),1),r.createElementVNode("h4",nn,r.toDisplayString(a.formatMoney(n.value)),1)]),r.createElementVNode("div",an,[r.createVNode(i,{class:"btn btn-privacy btn-primary w-100 save-checkout",onClick:c.payWithCreditCard,loading:e.payment.creditCard.processing},{default:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(a.t("paymentDialog.options.card.confirm")),1)]),_:1},8,["onClick","loading"]),r.createVNode(r.Transition,null,{default:r.withCtx(()=>[e.payment.creditCard.error?(r.openBlock(),r.createBlock(o,{key:0,class:"mt-3",title:e.payment.creditCard.error,type:"error","show-icon":"",dark:"",closable:!1},null,8,["title"])):r.createCommentVNode("",!0)]),_:1})])]),_:1},8,["title","name"])]),_:1},8,["modelValue"])]))])]),_:1})])])}const Le=F(Gr,[["render",on],["styles",[Hr]]]),sn=Object.freeze(Object.defineProperty({__proto__:null,default:Le},Symbol.toStringTag,{value:"Module"})),ln=`.dialog-button{display:block;height:42px!important;padding:8px 16px;background-color:#ff9956;border-color:#ff9956;color:#fff;font-size:16px;border-radius:.3rem}.dialog-button span:first-child{display:flex;justify-content:space-between;padding:0;margin:0}.dialog-button .button-text{margin:0 8px!important}.dialog-button:hover{background-color:#ff9956;border-color:#ff9956;color:#fff}.outline-button{display:block;height:42px!important;padding:8px 16px;background-color:#fff;border-color:#6c757d;color:#6c757d;font-size:16px;border-radius:.3rem}.outline-button span:first-child{display:flex;justify-content:space-between;padding:0;margin:0}.outline-button .button-text{margin:0 8px!important}.outline-button:hover{background-color:#ff9956;border-color:#ff9956;color:#fff}.tip-button{padding:8px 16px;background-color:#fff;border-color:#6c757d;color:#6c757d;border-radius:10rem}.tip-button:hover{background-color:#ff9956;border-color:#ff9956;color:#fff} `,cn={name:"payment",props:{showDialog:{type:Boolean},layout:{type:String},buttonType:{type:String},buttonTitle:{type:String},buttonText:{type:String},value:{type:Number},clientId:{type:String},postId:{type:String},recurrence:{type:String},messageId:{type:String},roomId:{type:String},tipMessage:{type:String},creator:{type:String},creatorNickname:{type:String},coverImg:{type:String},profileImg:{type:String}},components:{PaymentDialog:je,PaymentForm:Le,ElButton:P.ElButton},setup(){const{t:e}=q();return{appStore:te(),t:e}},data(){return{paymentDialog:{show:!1}}},watch:{showDialog:{immediate:!0,handler(e){this.paymentDialog.show=e==="false"?!1:e}}},methods:{closeDialog(){this.paymentDialog.show=!1,this.$emit("close-dialog")},handleCheckout(e){this.$emit("checkout",e)}}},dn={class:"button-text"},mn={key:0,class:"button-text"};function pn(e,t,n,a,s,c){const i=r.resolveComponent("el-button"),o=r.resolveComponent("PaymentDialog"),l=r.resolveComponent("PaymentForm");return r.openBlock(),r.createElementBlock("div",null,[n.layout==="button"?(r.openBlock(),r.createBlock(i,{key:0,class:r.normalizeClass(["w-100",n.buttonType?n.buttonType:"dialog-button"]),onClick:t[0]||(t[0]=d=>s.paymentDialog.show=!0)},{default:r.withCtx(()=>[r.createElementVNode("span",dn,r.toDisplayString(n.buttonTitle||a.t("base.proceed_with_payment")),1),n.buttonText?(r.openBlock(),r.createElementBlock("span",mn,r.toDisplayString(n.buttonText||a.t("base.proceed_with_payment")),1)):r.createCommentVNode("",!0)]),_:1},8,["class"])):r.createCommentVNode("",!0),r.createVNode(o,{modelValue:s.paymentDialog.show,"onUpdate:modelValue":t[1]||(t[1]=d=>s.paymentDialog.show=d),value:n.value,"client-id":n.clientId,"post-id":n.postId,recurrence:n.recurrence,"message-id":n.messageId,"room-id":n.roomId,"tip-message":n.tipMessage,creator:n.creator,"creator-nickname":n.creatorNickname,"cover-img":n.coverImg,"profile-img":n.profileImg,onCloseDialog:t[2]||(t[2]=d=>c.closeDialog()),onContentPaid:t[3]||(t[3]=d=>e.$emit("content-paid",d))},null,8,["modelValue","value","client-id","post-id","recurrence","message-id","room-id","tip-message","creator","creator-nickname","cover-img","profile-img"]),n.layout==="form"?(r.openBlock(),r.createBlock(l,{key:1,value:n.value,recorrencia:e.recorrencia,onCheckout:c.handleCheckout},null,8,["value","recorrencia","onCheckout"])):r.createCommentVNode("",!0)])}const Ye=F(cn,[["render",pn],["styles",[ln]]]),un=Object.freeze(Object.defineProperty({__proto__:null,default:Ye},Symbol.toStringTag,{value:"Module"})),fn=`@import"https://fonts.googleapis.com/css2?family=Inter&display=swap";@import"https://cdnjs.cloudflare.com/ajax/libs/element-plus/2.2.30/index.min.css";@import"https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.3/css/bootstrap.min.css"; `,hn={computed:{...it(te)},beforeMount(){this.$emit("before-mount",{context:this})},mounted(){this.$emit("mounted",{context:this,el:this.$el})},methods:{handleCheckout(e){this.$emit("checkout",e)}}},gn=Object.assign(hn,{__name:"App.ce",props:{token:String,tokenV1:String,locale:String,ready:{type:[Boolean,String],default:!0},appSettings:[Object,String],priceSettings:[Object,String],showDialog:{type:Boolean,default:!1},layout:{type:String,default:""},page:{type:String,default:""},buttonType:{type:String},buttonTitle:{type:String,default:""},buttonText:{type:String,default:""},value:{type:Number,default:0},clientId:{type:String,default:""},postId:{type:String,default:""},recurrence:{type:String,default:""},messageId:{type:String,default:""},roomId:{type:String,default:""},tipMessage:{type:String,default:""},creator:{type:String,default:""},creatorNickname:{type:String,default:""},coverImg:{type:String,default:""},profileImg:{type:String,default:""}},emits:{"before-mount":null,"close-dialog":null,"content-paid":null,checkout:null,mounted:null,ready:null},setup(e,{emit:t}){const n=e,a=r.getCurrentInstance();gt(n),mt(n);const{windowLoaded:s}=yt({emit:t});return De.useProvides(a),Ie.useProvides(a),(c,i)=>{var o;return r.openBlock(),r.createElementBlock("div",null,[(o=c.appStore.appSettings)!=null&&o.PRIVACY_MODULES?(r.openBlock(),r.createBlock(r.resolveDynamicComponent("style"),{key:0},{default:r.withCtx(()=>{var l;return[r.createTextVNode(' @import "'+r.toDisplayString((l=c.appStore.appSettings)==null?void 0:l.PRIVACY_MODULES)+'/styles/privacy.components.css"; ',1)]}),_:1})):r.createCommentVNode("",!0),c.appStore.ready&&r.unref(s)?(r.openBlock(),r.createBlock(Ye,{key:1,class:"app-wc","show-dialog":e.showDialog,layout:e.layout,"button-type":e.buttonType,"button-title":e.buttonTitle,"button-text":e.buttonText,value:e.value,"client-id":e.clientId,"post-id":e.postId,recurrence:e.recurrence,"message-id":e.messageId,"room-id":e.roomId,"tip-message":e.tipMessage,creator:e.creator,"creator-nickname":e.creatorNickname,"cover-img":e.coverImg,"profile-img":e.profileImg,onCheckout:c.handleCheckout,onCloseDialog:i[0]||(i[0]=l=>c.$emit("close-dialog",l)),onContentPaid:i[1]||(i[1]=l=>c.$emit("content-paid",l))},null,8,["show-dialog","layout","button-type","button-title","button-text","value","client-id","post-id","recurrence","message-id","room-id","tip-message","creator","creator-nickname","cover-img","profile-img","onCheckout"])):r.createCommentVNode("",!0)])}}}),pe=F(gn,[["styles",[fn]]]),yn=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));async function _n(){const e=Object.assign({"../App.ce.vue":()=>Promise.resolve().then(()=>yn),"../components/Avatar.ce.vue":()=>Promise.resolve().then(()=>qt),"../components/Index.vue":()=>Promise.resolve().then(()=>un),"../components/InternationalPaymentDialog.ce.vue":()=>Promise.resolve().then(()=>Bt),"../components/InvalidProfileDialog.ce.vue":()=>Promise.resolve().then(()=>Ft),"../components/PaymentDialog.ce.vue":()=>Promise.resolve().then(()=>Fr),"../components/PaymentForm.ce.vue":()=>Promise.resolve().then(()=>sn)}),t=[];for(const n in e){const a=await e[n]();t.push(a.default.styles)}return[t.flat().join("")]}function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function M(e){for(var t=1;t=0)&&(n[s]=e[s]);return n}function Sn(e,t){if(e==null)return{};var n=Cn(e,t),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function ue(e){return bn(e)||En(e)||wn(e)||vn()}function bn(e){if(Array.isArray(e))return fe(e)}function En(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wn(e,t){if(e){if(typeof e=="string")return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(e,t)}}function fe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var a=(e.children||[]).map(function(l){return he(l)}),s=Object.keys(e.attributes||{}).reduce(function(l,d){var m=e.attributes[d];switch(d){case"class":l.class=In(m);break;case"style":l.style=Nn(m);break;default:l.attrs[d]=m}return l},{attrs:{},class:{},style:{}});n.class;var c=n.style,i=c===void 0?{}:c,o=Sn(n,Dn);return r.h(e.tag,M(M(M({},t),{},{class:s.class,style:M(M({},s.style),i)},s.attrs),o),a)}var Ge=!1;try{Ge=!0}catch{}function An(){if(!Ge&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function J(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?x({},e,t):{}}function kn(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},x(t,"fa-".concat(e.size),e.size!==null),x(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),x(t,"fa-pull-".concat(e.pull),e.pull!==null),x(t,"fa-swap-opacity",e.swapOpacity),x(t,"fa-bounce",e.bounce),x(t,"fa-shake",e.shake),x(t,"fa-beat",e.beat),x(t,"fa-fade",e.fade),x(t,"fa-beat-fade",e.beatFade),x(t,"fa-flash",e.flash),x(t,"fa-spin-pulse",e.spinPulse),x(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(a){return n[a]?a:null}).filter(function(a){return a})}function We(e){if(e&&ne(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(V.parse.icon)return V.parse.icon(e);if(e===null)return null;if(ne(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var xn=r.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var a=n.attrs,s=r.computed(function(){return We(t.icon)}),c=r.computed(function(){return J("classes",kn(t))}),i=r.computed(function(){return J("transform",typeof t.transform=="string"?V.parse.transform(t.transform):t.transform)}),o=r.computed(function(){return J("mask",We(t.mask))}),l=r.computed(function(){return V.icon(s.value,M(M(M(M({},c.value),i.value),o.value),{},{symbol:t.symbol,title:t.title}))});r.watch(l,function(m){if(!m)return An("Could not find one or more icon(s)",s.value,o.value)},{immediate:!0});var d=r.computed(function(){return l.value?he(l.value.abstract[0],{},a):null});return function(){return d.value}}});r.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var a=n.slots,s=V.config.familyPrefix,c=r.computed(function(){return["".concat(s,"-layers")].concat(ue(t.fixedWidth?["".concat(s,"-fw")]:[]))});return function(){return r.h("div",{class:c.value},a.default?a.default():[])}}}),r.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var a=n.attrs,s=V.config.familyPrefix,c=r.computed(function(){return J("classes",[].concat(ue(t.counter?["".concat(s,"-layers-counter")]:[]),ue(t.position?["".concat(s,"-layers-").concat(t.position)]:[])))}),i=r.computed(function(){return J("transform",typeof t.transform=="string"?V.parse.transform(t.transform):t.transform)}),o=r.computed(function(){var d=V.text(t.value.toString(),M(M({},i.value),c.value)),m=d.abstract;return t.counter&&(m[0].attributes.class=m[0].attributes.class.replace("fa-layers-text","")),m[0]}),l=r.computed(function(){return he(o.value,{},a)});return function(){return l.value}}});const qe={css:V.dom.css,install(e){e.component("font-awesome-icon",xn)}},Tn={install(e){e.directive("loading",ae.vLoading);for(const t in ae)t.startsWith("El")&&e.component(t,ae[t])}};r.computed(()=>{var e,t;if((e=B.currentLocale)!=null&&e.startsWith("pt"))return Ke;if((t=B.currentLocale)!=null&&t.startsWith("es"))return Xe}),(async()=>{const e=[qe.css(),...await _n()];if(pe.styles=e,!customElements.get(ye)){const n=Je({component:pe,plugins:[Tn,qe,Ie,De,se]});customElements.define(ye,n)}})()});