vendor: 9,900 bytes, lines 1-2
1import{D as at,u as ot,b1 as it,b2 as we,b3 as he,E as ct,b4 as lt,s as Y,L as xe,S as dt,M as Ee,C as Se,e as Pe,j as B,O as ke,Q as Te,U as Oe,V as Re,b5 as ut,G as ve,B as ge,b6 as ye,aU as pt,Z as mt,R as ft,b7 as ht,b8 as xt,b9 as vt,q as gt,ba as yt,bb as bt,bc as jt,bd as Ct,be as Nt,bf as _t,bg as wt}from"./index-DCCbIREt.js";import{i as Et,e as h,j as e,r as v,k as St,w as Pt}from"./vendor-react-BOi-fSyC.js";import{L as ee}from"./label-DJbl-pK_.js";import{d as Ae}from"./depoimento-carla-C1xrA-AT.js";import{f as kt,v as Tt}from"./validators-C5TbPKWl.js";import"./vendor-ui-BXC6NyCE.js";import"./vendor-supabase-CRkczR-U.js";function de(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(t){return typeof t}:de=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(r)}var We="dahlia",Ot=function(t){return t===3?"v3":t},He="https://js.stripe.com",Rt="".concat(He,"/").concat(We,"/stripe.js"),At=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Lt=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,Le="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Ft=function(t){return At.test(t)||Lt.test(t)},Ut=function(){for(var t=document.querySelectorAll('script[src^="'.concat(He,'"]')),n=0;n<t.length;n++){var s=t[n];if(Ft(s.src))return s}return null},Fe=function(t){var n="",s=document.createElement("script");s.src="".concat(Rt).concat(n);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(s),s},It=function(t,n){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"9.1.0",startTime:n})},re=null,oe=null,ie=null,Mt=function(t){return function(n){t(new Error("Failed to load Stripe.js",{cause:n}))}},Dt=function(t,n){return function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))}},Vt=function(t){return re!==null?re:(re=new Promise(function(n,s){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe&&t&&console.warn(Le),window.Stripe){n(window.Stripe);return}try{var o=Ut();if(o&&t)console.warn(Le);else if(!o)o=Fe(t);else if(o&&ie!==null&&oe!==null){var i;o.removeEventListener("load",ie),o.removeEventListener("error",oe),(i=o.parentNode)===null||i===void 0||i.removeChild(o),o=Fe(t)}ie=Dt(n,s),oe=Mt(s),o.addEventListener("load",ie),o.addEventListener("error",oe)}catch(x){s(x);return}}),re.catch(function(n){return re=null,Promise.reject(n)}))},qt=function(t,n,s){if(t===null)return null;var o=n[0];if(typeof o!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(de(o)," instead."));var i=o.match(/^pk_test/),x=Ot(t.version),p=We;i&&x!==p&&console.warn("Stripe.js@".concat(x," was loaded on the page, but @stripe/stripe-js@").concat("9.1.0"," expected Stripe.js@").concat(p,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var u=t.apply(void 0,n);return It(u,s),u},ne,$e=!1,Je=function(){return ne||(ne=Vt(null).catch(function(t){return ne=null,Promise.reject(t)}),ne)};Promise.resolve().then(function(){return Je()}).catch(function(r){$e||console.warn(r)});var zt=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];$e=!0;var o=Date.now();return Je().then(function(i){return qt(i,n,o)})},Xe={exports:{}},Bt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Wt=Bt,Ht=Wt;function Ge(){}function Ke(){}Ke.resetWarningCache=Ge;var $t=function(){function r(s,o,i,x,p,u){if(u!==Ht){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}r.isRequired=r;function t(){return r}var n={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:t,element:r,elementType:r,instanceOf:t,node:r,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ke,resetWarningCache:Ge};return n.PropTypes=n,n};Xe.exports=$t();var Jt=Xe.exports;const j=Et(Jt);function Ue(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.push.apply(n,s)}return n}function Ie(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ue(Object(n),!0).forEach(function(s){Ze(r,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(n,s))})}return r}function ue(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ue=function(t){return typeof t}:ue=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(r)}function Ze(r,t,n){return t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function Xt(r,t){if(r==null)return{};var n={},s=Object.keys(r),o,i;for(i=0;i<s.length;i++)o=s[i],!(t.indexOf(o)>=0)&&(n[o]=r[o]);return n}function Gt(r,t){if(r==null)return{};var n=Xt(r,t),s,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o<i.length;o++)s=i[o],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(r,s)&&(n[s]=r[s])}return n}function Ye(r,t){return Kt(r)||Zt(r,t)||Yt(r,t)||Qt()}function Kt(r){if(Array.isArray(r))return r}function Zt(r,t){var n=r&&(typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"]);if(n!=null){var s=[],o=!0,i=!1,x,p;try{for(n=n.call(r);!(o=(x=n.next()).done)&&(s.push(x.value),!(t&&s.length===t));o=!0);}catch(u){i=!0,p=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw p}}return s}}function Yt(r,t){if(r){if(typeof r=="string")return Me(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set")return Array.from(r);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Me(r,t)}}function Me(r,t){(t==null||t>r.length)&&(t=r.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=r[n];return s}function Qt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var O=function(t,n,s){var o=!!s,i=h.useRef(s);h.useEffect(function(){i.current=s},[s]),h.useEffect(function(){if(!o||!t)return function(){};var x=function(){i.current&&i.current.apply(i,arguments)};return t.on(n,x),function(){t.off(n,x)}},[o,n,t,i])},je=function(t){var n=h.useRef(t);return h.useEffect(function(){n.current=t},[t]),n.current},te=function(t){return t!==null&&ue(t)==="object"},er=function(t){return te(t)&&typeof t.then=="function"},tr=function(t){return te(t)&&typeof t.elements=="function"&&typeof t.createToken=="function"&&typeof t.createPaymentMethod=="function"&&typeof t.confirmCardPayment=="function"},De="[object Object]",rr=function r(t,n){if(!te(t)||!te(n))return t===n;var s=Array.isArray(t),o=Array.isArray(n);if(s!==o)return!1;var i=Object.prototype.toString.call(t)===De,x=Object.prototype.toString.call(n)===De;if(i!==x)return!1;if(!i&&!s)return t===n;var p=Object.keys(t),u=Object.keys(n);if(p.length!==u.length)return!1;for(var l={},b=0;b<p.length;b+=1)l[p[b]]=!0;for(var N=0;N<u.length;N+=1)l[u[N]]=!0;var c=Object.keys(l);if(c.length!==p.length)return!1;var g=t,k=n,A=function(L){return r(g[L],k[L])};return c.every(A)},Qe=function(t,n,s){return te(t)?Object.keys(t).reduce(function(o,i){var x=!te(n)||!rr(t[i],n[i]);return s.includes(i)?(x&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),o):x?Ie(Ie({},o||{}),{},Ze({},i,t[i])):o},null):null},et="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",Ve=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:et;if(t===null||tr(t))return t;throw new Error(n)},nr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:et;if(er(t))return{tag:"async",stripePromise:Promise.resolve(t).then(function(o){return Ve(o,n)})};var s=Ve(t,n);return s===null?{tag:"empty"}:{tag:"sync",stripe:s}},sr=function(t){!t||!t._registerWrapper||!t.registerAppInfo||(t._registerWrapper({name:"react-stripe-js",version:"6.1.0"}),t.registerAppInfo({name:"react-stripe-js",version:"6.1.0",url:"https://stripe.com/docs/stripe-js/react"}))},pe=h.createContext(null);pe.displayName="ElementsContext";var tt=function(t,n){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return t},rt=function(t){var n=t.stripe,s=t.options,o=t.children,i=h.useMemo(function(){return nr(n)},[n]),x=h.useState(function(){return{stripe:i.tag==="sync"?i.stripe:null,elements:i.tag==="sync"?i.stripe.elements(s):null}}),p=Ye(x,2),u=p[0],l=p[1];h.useEffect(function(){var c=!0,g=function(A){l(function(C){return C.stripe?C:{stripe:A,elements:A.elements(s)}})};return i.tag==="async"&&!u.stripe?i.stripePromise.then(function(k){k&&c&&g(k)}):i.tag==="sync"&&!u.stripe&&g(i.stripe),function(){c=!1}},[i,u,s]);var b=je(n);h.useEffect(function(){b!==null&&b!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[b,n]);var N=je(s);return h.useEffect(function(){if(u.elements){var c=Qe(s,N,["clientSecret","fonts"]);c&&u.elements.update(c)}},[s,N,u.elements]),h.useEffect(function(){sr(u.stripe)}
2,[u.stripe]),h.createElement(pe.Provider,{value:u},o)};rt.propTypes={stripe:j.any,options:j.object};var ar=function(t){var n=h.useContext(pe);return tt(n,t)},or=function(){var t=ar("calls useElements()"),n=t.elements;return n};j.func.isRequired;var nt=h.createContext(null);nt.displayName="CheckoutContext";var Ce=function(t){var n=h.useContext(nt),s=h.useContext(pe);if(n){if(s)throw new Error("You cannot wrap the part of your app that ".concat(t," in both a checkout provider and <Elements> provider."));return n}else return tt(s,t)},ir=["mode"],cr=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},w=function(t,n,s){var o="".concat(cr(t),"Element"),i=function(l){var b=l.id,N=l.className,c=l.options,g=c===void 0?{}:c,k=l.onBlur,A=l.onFocus,C=l.onReady,L=l.onChange,T=l.onEscape,$=l.onClick,V=l.onLoadError,J=l.onLoaderStart,m=l.onNetworksChange,y=l.onConfirm,S=l.onCancel,R=l.onShippingAddressChange,M=l.onShippingRateChange,F=l.onSavedPaymentMethodRemove,q=l.onSavedPaymentMethodUpdate,W=Ce("mounts <".concat(o,">")),G="elements"in W?W.elements:null,U="checkoutState"in W?W.checkoutState:null,z=(U==null?void 0:U.type)==="success"||(U==null?void 0:U.type)==="loading"?U.sdk:null,se=h.useState(null),X=Ye(se,2),f=X[0],me=X[1],I=h.useRef(null),K=h.useRef(null);O(f,"blur",k),O(f,"focus",A),O(f,"escape",T),O(f,"click",$),O(f,"loaderror",V),O(f,"loaderstart",J),O(f,"networkschange",m),O(f,"confirm",y),O(f,"cancel",S),O(f,"shippingaddresschange",R),O(f,"shippingratechange",M),O(f,"savedpaymentmethodremove",F),O(f,"savedpaymentmethodupdate",q),O(f,"change",L);var Z;C&&(t==="expressCheckout"?Z=C:Z=function(){C(f)}),O(f,"ready",Z),h.useLayoutEffect(function(){if(I.current===null&&K.current!==null&&(G||z)){var _=null;if(z){var H=z,a=z;switch(t){case"paymentForm":_=a.createForm(g);break;case"payment":_=H.createPaymentElement(g);break;case"address":if("mode"in g){var d=g.mode,P=Gt(g,ir);if(d==="shipping")_=H.createShippingAddressElement(P);else if(d==="billing")_=H.createBillingAddressElement(P);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":_=H.createExpressCheckoutElement(g);break;case"currencySelector":_=z.createCurrencySelectorElement();break;case"taxId":_=H.createTaxIdElement(g);break;default:throw new Error("<".concat(o,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}}else G&&(_=G.create(t,g));I.current=_,me(_),_&&_.mount(K.current)}},[G,z,g]);var ae=je(g);return h.useEffect(function(){if(I.current){var _=Qe(g,ae,["paymentRequest"]);_&&"update"in I.current&&I.current.update(_)}},[g,ae]),h.useLayoutEffect(function(){return function(){if(I.current&&typeof I.current.destroy=="function")try{I.current.destroy(),I.current=null}catch{}}},[]),h.createElement("div",{id:b,className:N,ref:K})},x=function(l){Ce("mounts <".concat(o,">"));var b=l.id,N=l.className;return h.createElement("div",{id:b,className:N})},p=n?x:i;return p.propTypes={id:j.string,className:j.string,onChange:j.func,onBlur:j.func,onFocus:j.func,onReady:j.func,onEscape:j.func,onClick:j.func,onLoadError:j.func,onLoaderStart:j.func,onNetworksChange:j.func,onConfirm:j.func,onCancel:j.func,onShippingAddressChange:j.func,onShippingRateChange:j.func,onSavedPaymentMethodRemove:j.func,onSavedPaymentMethodUpdate:j.func,options:j.object},p.displayName=o,p.__elementType=t,p},E=typeof window>"u",lr=h.createContext(null);lr.displayName="EmbeddedCheckoutProviderContext";var dr=function(){var t=Ce("calls useStripe()"),n=t.stripe;return n};w("auBankAccount",E);w("card",E);var qe=w("cardNumber",E),ur=w("cardExpiry",E),pr=w("cardCvc",E);w("iban",E);w("payment",E);w("expressCheckout",E);w("paymentRequestButton",E);w("linkAuthentication",E);w("address",E);w("shippingAddress",E);w("paymentMethodMessaging",E);w("taxId",E);w("issuingCardNumberDisplay",E);w("issuingCardCvcDisplay",E);w("issuingCardExpiryDisplay",E);w("issuingCardPinDisplay",E);w("issuingCardCopyButton",E);const ze=({className:r})=>
2e.jsxs("svg",{className:r,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[e.jsx("path",{d:"M15.4502 16.52L12.4402 13.51C12.3302 13.4 12.2002 13.38 12.1302 13.38C12.0602 13.38 11.9302 13.4 11.8202 13.51L8.80016 16.53C8.46016 16.87 7.93016 17.42 6.16016 17.42L9.87016 21.12C10.4327 21.6818 11.1952 21.9974 11.9902 21.9974C12.7852 21.9974 13.5477 21.6818 14.1102 21.12L17.8302 17.41C16.9202 17.41 16.1602 17.23 15.4502 16.52ZM8.80016 7.47005L11.8202 10.49C11.9002 10.57 12.0202 10.62 12.1302 10.62C12.2402 10.62 12.3602 10.57 12.4402 10.49L15.4302 7.50005C16.1402 6.76005 16.9502 6.59005 17.8602 6.59005L14.1402 2.88005C13.5777 2.31824 12.8152 2.00269 12.0202 2.00269C11.2252 2.00269 10.4627 2.31824 9.90016 2.88005L6.19016 6.58005C7.95016 6.58005 8.49016 7.16005 8.80016 7.47005Z"}),e.jsx("path",{d:"M21.1098 9.85007L18.8598 7.59007H17.5998C17.0598 7.59007 16.5198 7.81007 16.1498 8.20007L13.1498 11.2001C12.8698 11.4801 12.4998 11.6201 12.1298 11.6201C11.7488 11.6147 11.3841 11.4645 11.1098 11.2001L8.0898 8.17007C7.7098 7.79007 7.1898 7.57007 6.6398 7.57007H5.1698L2.8798 9.87007C2.318 10.4326 2.00244 11.1951 2.00244 11.9901C2.00244 12.7851 2.318 13.5476 2.8798 14.1101L5.1698 16.4101H6.6498C7.1898 16.4101 7.7098 16.1901 8.0998 15.8101L11.1198 12.7901C11.3998 12.5101 11.7698 12.3701 12.1398 12.3701C12.5098 12.3701 12.8798 12.5101 13.1598 12.7901L16.1698 15.8001C16.5498 16.1801 17.0698 16.4001 17.6198 16.4001H18.8798L21.1298 14.1401C21.694 13.5674 22.0085 12.7948 22.0048 11.9909C22.001 11.1871 21.6793 10.4174 21.1098 9.85007Z"})]}),mr=({className:r})=>e.jsxs("svg",{className:`h-5 w-auto ${r??""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 16",fill:"none","aria-label":"Visa",role:"img",children:[e.jsxs("g",{clipPath:"url(#visa_clip)",children:[e.jsx("path",{fill:"#00579f",d:"M22 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2"}),e.jsx("path",{fill:"#fff",d:"M10.367 10.91H8.85l.949-5.802h1.517zm5.501-5.66a3.8 3.8 0 0 0-1.36-.247c-1.5 0-2.555.79-2.561 1.92-.013.833.755 1.296 1.33 1.574.587.284.786.469.786.722-.006.389-.474.568-.91.568-.607 0-.931-.092-1.425-.309l-.2-.092-.212 1.302c.356.16 1.012.303 1.692.309 1.593 0 2.63-.778 2.642-1.982.006-.66-.4-1.166-1.274-1.58-.53-.265-.856-.444-.856-.716.006-.247.275-.5.874-.5.493-.012.856.105 1.13.222l.138.062z"}),e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M18.584 5.108h1.174l1.224 5.802h-1.405l-.18-.87h-1.95c-.055.154-.318.87-.318.87h-1.592l2.254-5.32c.156-.377.431-.482.793-.482m-.093 2.124-.606 1.623h1.261c-.062-.29-.35-1.679-.35-1.679l-.106-.5a31 31 0 0 1-.2.556",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M7.582 5.108 6.096 9.065l-.162-.803c-.275-.926-1.136-1.931-2.098-2.432l1.361 5.074h1.605l2.385-5.796z"}),e.jsx("path",{fill:"#fff",d:"M4.716 5.108H2.275l-.025.118c1.904.481 3.166 1.641 3.684 3.036l-.53-2.666c-.088-.37-.357-.475-.688-.488"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"visa_clip",children:e.jsx("path",{fill:"#fff",d:"M0 0h24v16H0z"})})})]}),fr=({className:r})=>e.jsxs("svg",{className:`h-5 w-auto ${r??""}`,viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Mastercard",role:"img",children:[e.jsx("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),e.jsx("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),e.jsx("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),e.jsx("path",{d:"M12 4c1.214.912 2 2.364 2 4s-.786 3.088-2 4c-1.214-.912-2-2.364-2-4s.786-3.088 2-4z",fill:"#ff5f00"})]}),hr={number:"Informe o número do cartão",expiry:"Informe a data de validade",cvc:"Informe o código de segurança (CVV)"},xr={number:"Número do cartão incompleto",expiry:"Data de validade incompleta",cvc:"
2Código de segurança (CVV) incompleto"},Ne={style:{base:{fontSize:"16px",color:"#1a1a1a",fontFamily:"inherit",fontWeight:"400",lineHeight:"24px","::placeholder":{color:"#a3a3a3",fontWeight:"400"}},invalid:{color:"#dc2626"}}},vr={...Ne,placeholder:"1234 5678 9012 3456",disableLink:!0},gr={...Ne,placeholder:"MM/AA"},yr={...Ne,placeholder:"3 dÃgitos"},ce={generic_decline:"Cartão recusado. Tente outro cartão.",insufficient_funds:"Saldo insuficiente. Tente outro cartão.",lost_card:"Este cartão foi reportado como perdido. Use outro cartão.",stolen_card:"Este cartão foi reportado como roubado. Use outro cartão.",expired_card:"Cartão expirado. Verifique a validade ou use outro cartão.",incorrect_cvc:"Código de segurança (CVV) incorreto.",processing_error:"Erro ao processar. Tente novamente em alguns instantes.",incorrect_number:"Número do cartão incorreto.",card_velocity_exceeded:"Limite de tentativas excedido. Tente mais tarde.",do_not_honor:"Transação não autorizada pelo banco. Tente outro cartão.",do_not_try_again:"Transação não autorizada. Use outro cartão.",fraudulent:"Transação não autorizada. Tente outro cartão.",not_permitted:"Transação não permitida pelo cartão. Contate seu banco.",pickup_card:"Cartão não pode ser utilizado. Contate seu banco.",restricted_card:"Cartão com restrição. Contate seu banco.",revocation_of_all_authorizations:"Cartão cancelado. Use outro cartão.",revocation_of_authorization:"Transação cancelada. Tente novamente.",security_violation:"Violação de segurança. Contate seu banco.",service_not_allowed:"Serviço não permitido para este cartão.",transaction_not_allowed:"Transação não permitida. Contate seu banco.",try_again_later:"Não foi possÃvel processar. Tente novamente mais tarde.",withdrawal_count_limit_exceeded:"Limite de transações excedido. Tente mais tarde.",card_not_supported:"Este cartão não é aceito para esta compra. Use outro cartão.",currency_not_supported:"Este cartão não suporta a moeda da compra. Use outro cartão.",call_issuer:"Transação não autorizada. Contate seu banco.",approve_with_id:"Não foi possÃvel autorizar. Tente novamente ou contate seu banco.",reenter_transaction:"Não foi possÃvel processar. Tente novamente.",no_action_taken:"Transação não autorizada. Tente outro cartão.",invalid_account:"Cartão ou conta inválido. Contate seu banco.",new_account_information_available:"Cartão indisponÃvel. Use outro cartão.",pin_try_exceeded:"Tentativas de senha excedidas. Use outro cartão.",testmode_decline:"Cartão de teste recusado.",card_declined:"Cartão recusado. Verifique os dados ou tente outro cartão.",invalid_expiry_month:"Mês de validade inválido.",invalid_expiry_month_past:"A validade do cartão já passou. Verifique a data.",invalid_expiry_year:"Ano de validade inválido.",invalid_expiry_year_past:"O ano de validade já passou. Verifique a data.",invalid_cvc:"Código de segurança (CVV) inválido.",invalid_number:"Número do cartão inválido.",incomplete_number:"Número do cartão incompleto.",incomplete_expiry:"Data de validade incompleta.",incomplete_cvc:"Código de segurança (CVV) incompleto.",incomplete_zip:"CEP incompleto.",incorrect_zip:"CEP incorreto.",invalid_zip:"CEP inválido.",authentication_required:"Autenticação necessária. Autorize a transação no app do seu banco.",payment_intent_authentication_failure:"Falha na autenticação. Tente novamente.",setup_intent_authentication_failure:"Falha na autenticação. Tente novamente."},be=r=>r.decline_code&&ce[r.decline_code]?ce[r.decline_code]:r.code&&ce[r.code]?ce[r.code]:"Não foi possÃvel processar o cartão. Verifique os dados ou tente outro cartão.",st=v.forwardRef((r,t)=>{const n=dr(),s=or(),[o,i]=v.useState(null),[x,p]=v.useState(null),[u,l]=v.useState({number:{empty:!0,complete:!1},expiry:{empty:!0,complete:!1},cvc:{empty:!0,complete:!1}}),[b,N]=v.useState({}),[c,g]=v.useState("unknown"),k=m=>y=>{l(S=>({...S,[m]:{empty:y.empty,complete:y.complete,error:y.error}})),m==="number"&&"brand"in y&&g(y.brand),N(S=>S[m]?{...S,[m]:void 0}:S)},A=m=>{const y=u[m];if(y.empty)return hr[m];
2if(y.error)return be(y.error);if(!y.complete)return xr[m]},C=m=>{p(null),N(y=>({...y,[m]:A(m)}))},L=()=>{const m={};return Object.keys(u).forEach(y=>{const S=A(y);S&&(m[y]=S)}),N(m),Object.keys(m).length===0};v.useImperativeHandle(t,()=>({validate:L,confirmPayment:async m=>{if(!n||!s)return{success:!1,error:"Stripe não carregado."};i(null);const y=s.getElement(qe);if(!y)return{success:!1,error:"Campos do cartão não encontrados."};const{error:S,paymentIntent:R}=await n.confirmCardPayment(m,{payment_method:{card:y,billing_details:{}}});if(S){const M=be(S);return i(M),{success:!1,error:M}}if((R==null?void 0:R.status)==="succeeded"||(R==null?void 0:R.status)==="processing")return{success:!0};if((R==null?void 0:R.status)==="requires_action"){const{error:M,paymentIntent:F}=await n.confirmCardPayment(m);if(M){const q=be(M);return i(q),{success:!1,error:q}}return(F==null?void 0:F.status)==="succeeded"||(F==null?void 0:F.status)==="processing"?{success:!0}:(i("Autenticação 3D Secure não concluÃda. Tente novamente."),{success:!1,error:"Autenticação 3D Secure não concluÃda. Tente novamente."})}return{success:!1,error:"Pagamento não confirmado. Tente novamente."}}}));const T=m=>`flex h-11 items-center rounded-md border-2 bg-background px-4 shadow-neo-sm transition-all duration-150 ${b[m]?"border-destructive":x===m?"border-primary ring-2 ring-ring ring-offset-2 ring-offset-background":"border-border"}`,$=u.number.empty,V=$||c==="visa",J=$||c==="mastercard";return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(ee,{htmlFor:"card-number",className:"flex items-center gap-1.5",children:["Número do cartão",e.jsx(at,{className:"h-3 w-3 text-muted-foreground"})]}),e.jsxs("div",{id:"card-number",className:T("number"),children:[e.jsx("div",{className:"flex-1",children:e.jsx(qe,{options:vr,onFocus:()=>p("number"),onBlur:()=>C("number"),onChange:k("number")})}),(V||J)&&e.jsxs("div",{className:"flex items-center gap-1.5 pl-2",children:[V&&e.jsx(mr,{}),J&&e.jsx(fr,{})]})]}),b.number&&e.jsx("p",{className:"text-sm text-destructive",children:b.number})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(ee,{htmlFor:"card-expiry",children:"Validade"}),e.jsx("div",{id:"card-expiry",className:T("expiry"),children:e.jsx("div",{className:"w-full",children:e.jsx(ur,{options:gr,onFocus:()=>p("expiry"),onBlur:()=>C("expiry"),onChange:k("expiry")})})}),b.expiry&&e.jsx("p",{className:"text-sm text-destructive",children:b.expiry})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ee,{htmlFor:"card-cvc",children:"Código de segurança"}),e.jsx("div",{id:"card-cvc",className:T("cvc"),children:e.jsx("div",{className:"w-full",children:e.jsx(pr,{options:yr,onFocus:()=>p("cvc"),onBlur:()=>C("cvc"),onChange:k("cvc")})})}),b.cvc&&e.jsx("p",{className:"text-sm text-destructive",children:b.cvc})]})]}),o&&e.jsx("p",{className:"text-sm text-destructive font-medium",children:o})]})});st.displayName="StripeCardForm";const Be=zt("pk_live_51SlDqCCr7UfTb3AUFWn1FcBiC54zNB0nzYJhPboPI8vDjqtwukskzHGIMX8vT0r726sJc3LH0ocQqgrmsWcOcUmQ009j4HR8Zc"),Q=(r,t)=>{_t(async()=>{const{default:n}=await import("./vendor-posthog-B4HpPK75.js");return{default:n}},[]).then(({default:n})=>{n.__loaded&&n.capture(r,t)})},le=(r,t)=>{typeof window<"u"&&window.fbq&&window.fbq("track",r,t)},Sr=()=>{const{user:r,loading:t}=ot(),{isActive:n,loading:s,refresh:o,status:i}=it(),[x,p]=v.useState(!1),[u,l]=v.useState(we),[b,N]=v.useState(!1),[c,g]=v.useState({code:we,discount_percent:he}),k=St(),[A]=Pt(),{toast:C}=ct(),L=v.useRef(null),[T,$]=v.useState("pix"),[V,J]=v.useState(""),[m,y]=v.useState(""),[S,R]=v.useState(!1),[M,F]=v.useState(!1),[q,W]=v.useState({}),[G,U]=v.useState(!1),z=a=>!/^[a-zA-ZÃ-ÿ\s'-]+$/.test(a.trim()),se=i==="expired"||i==="cancelled"||i==="overdue",X=Ct.price,f=c?lt(X,c.discount_percent):X,me=Math.round((X-f)*100)/100;if(v.useEffect(()=>{const a=A.get("cupom");if(!a)return;const d=a.trim().toUpperCase();d&&(l(d),N(!0),Y.functions.invoke("validate-coupon",{body:{code:d}}).then(({data:P,error:D})=>{if(D||!(P!=null&&P.valid)){C({variant:"destructive",title:"Cupom inválido",description:(P==null?void 0:P.message)||"O cupom do link não pôde ser aplicado."});return}g({code:P.code,discount_percent:P.discount_percent}),C({title:"Cupom aplicado!",description:`${P.discount_percent}
2% de desconto aplicado.`})}).finally(()=>N(!1)))},[]),v.useEffect(()=>{r&&Y.from("profiles").select("full_name, cpf").eq("id",r.id).single().then(({data:a})=>{a&&(a.full_name&&(J(a.full_name),z(a.full_name)||R(!0)),a.cpf&&y(a.cpf))})},[r]),v.useEffect(()=>{!s&&se&&U(!0)},[s,se]),v.useEffect(()=>{le("ViewContent",{content_name:"Checkout",content_category:"Subscription",value:f,currency:"BRL"})},[]),v.useEffect(()=>{!t&&!s&&n&&k("/home",{replace:!0})},[n,t,s]),!t&&!r)return k("/entrar",{replace:!0}),null;if(t||s)return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:e.jsx(xe,{className:"h-8 w-8 animate-spin text-primary"})});const I=async()=>{if(u.trim()){N(!0);try{const{data:a,error:d}=await Y.functions.invoke("validate-coupon",{body:{code:u}});if(d||!(a!=null&&a.valid)){C({variant:"destructive",title:"Cupom inválido",description:(a==null?void 0:a.message)||"Verifique o código e tente novamente."}),g(null);return}g({code:a.code,discount_percent:a.discount_percent}),C({title:"Cupom aplicado!",description:`${a.discount_percent}% de desconto aplicado.`})}catch{C({variant:"destructive",title:"Erro",description:"Não foi possÃvel validar o cupom."})}finally{N(!1)}}},K=()=>{const a={};S||(V.trim().length<3?a.name="Informe seu nome (mÃnimo 3 caracteres)":z(V)&&(a.name="O nome não pode conter números ou caracteres especiais (/, !, $, etc.)"));const d=/^(\d{3}\.?\d{3}\.?\d{3}-?\d{2})$/;return m.trim()?d.test(m)?Tt(m)||(a.cpf="CPF inválido. Verifique os dÃgitos."):a.cpf="CPF inválido. Use: 000.000.000-00":a.cpf="CPF é obrigatório",W(a),!a.name&&!a.cpf},Z=async()=>{const a={cpf:m.replace(/\D/g,"")};S||(a.full_name=V);const d=wt();d&&Object.assign(a,d);const{error:P}=await Y.from("profiles").update(a).eq("id",r.id);if(P)throw P},ae=async()=>{var P;const a=K(),d=((P=L.current)==null?void 0:P.validate())??!1;if(!(!a||!d)){p(!0),Q("checkout_clicked",{price:f,coupon:(c==null?void 0:c.code)||null,discount_percent:(c==null?void 0:c.discount_percent)||0,payment_method:"card"}),le("InitiateCheckout",{value:f,currency:"BRL"});try{await Z();const{data:D,error:_e}=await Y.functions.invoke("create-stripe-checkout",{body:{couponCode:(c==null?void 0:c.code)||null}});if(_e)throw _e;if(!(D!=null&&D.clientSecret))throw new Error("Erro ao iniciar pagamento com cartão");if(Q("checkout_stripe_initiated",{price:f,coupon:(c==null?void 0:c.code)||null}),!L.current)throw new Error("Formulário de cartão não disponÃvel");const fe=await L.current.confirmPayment(D.clientSecret);if(!fe.success){Q("checkout_stripe_error",{error:fe.error}),C({variant:"destructive",title:"Erro no pagamento",description:fe.error||"Erro ao processar pagamento."}),p(!1);return}Q("checkout_stripe_confirmed",{price:f,coupon:(c==null?void 0:c.code)||null}),le("Purchase",{value:f,currency:"BRL"}),Nt({value:f,method:"card",userId:r==null?void 0:r.id}),o(!0),k("/checkout/sucesso",{replace:!0})}catch(D){console.error("Checkout error:",D),Q("checkout_error",{error:D instanceof Error?D.message:"unknown",payment_method:"card"}),C({variant:"destructive",title:"Erro ao processar",description:"Não foi possÃvel processar o pagamento. Verifique os dados e tente novamente."})}finally{p(!1)}}},_=async()=>{if(K()){F(!0);try{await Z();const{data:a,error:d}=await Y.functions.invoke("create-checkout-session",{body:{couponCode:(c==null?void 0:c.code)||null}});if(d)throw d;if(!(a!=null&&a.pixData))throw new Error("Erro ao gerar PIX");Q("checkout_pix_generated",{price:f,coupon:(c==null?void 0:c.code)||null}),le("InitiateCheckout",{value:f,currency:"BRL"}),a.reused||localStorage.removeItem("checkout_pix_timer_start"),k("/checkout/pagamento/pix",{state:{pixData:a.pixData},replace:!0})}catch(a){console.error("PIX checkout error:",a),C({variant:"destructive",title:"Erro ao gerar PIX",description:"Não foi possÃvel gerar o PIX. Tente novamente."})}finally{F(!1)}}},H=[{icon:B,text:e.jsxs(e.Fragment,{children:[e.jsx("strong",{children:"Não arrisque"})," ser reprovado"]})},{icon:B,text:e.jsx(e.Fragment,{children:e.jsx("strong",{children:"Simulados ilimitados"})})},{icon:B,text:e.jsxs(e.Fragment,{children:[e.jsx("strong",{children:"+ de 1000 questões"})," atualizadas 2026"]}
2)},{icon:B,text:e.jsxs(e.Fragment,{children:["Refaça as ",e.jsx("strong",{children:"questões erradas"})]})},{icon:B,text:e.jsxs(e.Fragment,{children:["Estuda o que o ",e.jsx("strong",{children:"DETRAN mais cobra"})]})},{icon:B,text:e.jsxs(e.Fragment,{children:["Ser reprovado é ",e.jsx("strong",{children:"muito mais caro"})]})}];return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(dt,{title:"estudaCNH - Checkout Seguro",description:"Finalize sua assinatura do EstudaCNH.",noindex:!0}),e.jsx("main",{className:"flex-1",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 items-start min-h-full",children:[e.jsx("div",{className:"lg:min-h-full hidden lg:block lg:col-span-4 lg:order-1",children:e.jsxs("div",{className:"sticky top-8 space-y-8 p-6 lg:p-8 max-w-[400px] mx-auto",children:[e.jsx("img",{src:Ee,alt:"EstudaCNH",className:"h-8 mx-auto"}),e.jsxs("h1",{className:"text-2xl lg:text-3xl font-bold text-center",children:["Assine hoje com ",e.jsxs("span",{className:"text-green-600",children:[(c==null?void 0:c.discount_percent)??he,"% de desconto"]})]}),e.jsx(Se,{className:"bg-primary/5 border-none shadow-none",children:e.jsxs(Pe,{className:"pt-5 pb-5",children:[e.jsx("p",{className:"text-sm font-bold mb-3",children:"BenefÃcios inclusos:"}),e.jsx("ul",{className:"space-y-3",children:H.map((a,d)=>e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(B,{className:"h-4 w-4 text-primary flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-sm font-normal leading-snug",children:a.text})]},d))})]})}),e.jsxs("div",{className:"text-center space-y-3",children:[e.jsxs("h3",{className:"text-lg font-bold text-foreground",children:[e.jsx("span",{className:"text-primary",children:"Centenas"})," de pessoas aprovadas"]}),e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx("div",{className:"flex",children:[...Array(5)].map((a,d)=>e.jsx(ke,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},d))}),e.jsx("span",{className:"text-sm font-bold",children:"4.8"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"+ de 300 reviews"})]}),e.jsx("div",{className:"flex items-center justify-center -space-x-3",children:[{src:Te,alt:"Carlos"},{src:Oe,alt:"João"},{src:Re,alt:"Ana"},{src:Ae,alt:"Carla"}].map((a,d)=>e.jsx("div",{className:"w-10 h-10 rounded-full border-2 border-background overflow-hidden",children:e.jsx("img",{src:a.src,alt:a.alt,className:"w-full h-full object-cover"})},d))})]})]})}),e.jsx("div",{className:"lg:bg-white lg:col-span-8 lg:order-2 lg:border-t-0 lg:border-l-2 border-green-100",children:e.jsxs("div",{className:"lg:bg-white lg:min-h-screen p-0 pt-6 lg:p-8 space-y-4 lg:max-w-[700px] mx-auto",children:[e.jsx("img",{src:Ee,alt:"EstudaCNH",className:"h-8 mx-auto lg:hidden"}),e.jsxs("h1",{className:"text-2xl md:text-3xl font-bold text-center lg:hidden",children:["Assine hoje com ",e.jsxs("span",{className:"text-green-600",children:[(c==null?void 0:c.discount_percent)??he,"% de desconto"]})]}),e.jsx("div",{className:"lg:hidden flex justify-center",children:e.jsx(Se,{className:"bg-primary/5 border-none shadow-none w-auto",children:e.jsxs(Pe,{className:"pt-4 pb-4",children:[e.jsx("p",{className:"text-sm font-bold mb-2",children:"BenefÃcios inclusos:"}),e.jsx("ul",{className:"space-y-2",children:H.map((a,d)=>e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(B,{className:"h-4 w-4 text-primary flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-sm font-normal leading-snug",children:a.text})]},d))})]})})}),e.jsxs("div",{className:"lg:hidden text-center space-y-2",children:[e.jsxs("h3",{className:"text-base font-bold text-foreground",children:[e.jsx("span",{className:"text-primary",children:"Centenas"})," de pessoas aprovadas"]}),e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx("div",{className:"flex",children:[...Array(5)].map((a,d)=>e.jsx(ke,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},d))}),e.jsx("span",{className:"text-sm font-bold",children:"4.8"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"+ de 300 reviews"})]}),e.jsx("div",{className:"flex items-center justify-center -space-x-3",children:[{src:Te,alt:"Carlos"},{src:Oe,alt:"João"},{src:Re,alt:"Ana"},{src:Ae,alt:"Carla"}].map((a,d)=>e.jsx("div",{className:"w-10 h-10 rounded-full border-2 border-background overflow-hidden",children:e.jsx("img",{src:a.src,alt:a.alt,className:"w-full h-full object-cover"})},d))})]}
2),e.jsxs("div",{className:"bg-white rounded-xl lg:rounded-none lg:bg-transparent p-4 lg:p-0 space-y-4 lg:space-y-6 lg:border-t-0 border-t-2 border-green-100",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold",children:"Pagamento"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Acesso liberado na hora. Comece a estudar em menos de 1 minuto."})]}),e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"flex h-12 p-1 gap-1 rounded-lg border-2 border-border bg-muted/50 shadow-neo-sm",children:[e.jsxs("button",{type:"button",onClick:()=>$("pix"),className:`flex-1 flex items-center justify-center gap-2 rounded-md text-sm font-bold transition-all border-2 ${T==="pix"?"bg-green-50 text-foreground border-green-500":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[e.jsx(ze,{className:"h-4 w-4 flex-shrink-0"}),"PIX"]}),e.jsxs("button",{type:"button",onClick:()=>$("card"),className:`flex-1 flex items-center justify-center gap-2 rounded-md text-sm font-bold transition-all ${T==="card"?"bg-green-50 text-foreground border-2 border-green-500":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[e.jsx(ut,{className:"h-4 w-4 flex-shrink-0"}),"Cartão de crédito"]})]})}),e.jsxs("div",{className:S?"space-y-4":"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[!S&&e.jsxs("div",{className:"space-y-2",children:[e.jsx(ee,{htmlFor:"customer_name",children:"Nome completo"}),e.jsx(ve,{id:"customer_name",placeholder:"ex: Maria Silva",value:V,onChange:a=>{J(a.target.value),W(d=>({...d,name:void 0}))}}),q.name&&e.jsx("p",{className:"text-sm text-destructive",children:q.name})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ee,{htmlFor:"customer_cpf",children:"CPF"}),e.jsx(ve,{id:"customer_cpf",placeholder:"000.000.000-00",maxLength:14,value:m,onChange:a=>{y(kt(a.target.value)),W(d=>({...d,cpf:void 0}))}}),q.cpf&&e.jsx("p",{className:"text-sm text-destructive",children:q.cpf})]})]}),e.jsxs("div",{className:"space-y-4",children:[T==="card"&&Be&&e.jsx(rt,{stripe:Be,options:{mode:"subscription",currency:"brl",amount:Math.round(f*100)},children:e.jsx(st,{ref:L})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ee,{htmlFor:"coupon_code",children:"Cupom de desconto"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ve,{id:"coupon_code",placeholder:"Digite seu cupom",value:u,onChange:a=>l(a.target.value.toUpperCase()),className:"uppercase flex-1"}),e.jsx(ge,{variant:"outline",className:"h-11 px-4 whitespace-nowrap border-2 shadow-neo-sm",onClick:I,disabled:b||!u.trim(),children:b?e.jsx(xe,{className:"h-4 w-4 animate-spin"}):"Aplicar"})]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:T==="card"?"Assinatura mensal":"Acesso por 30 dias"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:ye(X)})]}),c&&e.jsxs("div",{className:"flex justify-between items-center bg-green-50 -mx-2 px-2 py-1.5 rounded-lg",children:[e.jsxs("span",{className:"text-sm font-bold text-green-600",children:["Desconto",e.jsxs("span",{className:"ml-1.5 inline-flex items-center bg-green-600 text-white text-xs font-bold px-2 py-0.5 rounded-full",children:["-",c.discount_percent,"%"]})]}),e.jsxs("span",{className:"text-sm font-bold text-green-600",children:["- ",ye(me)]})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-base font-bold",children:"Total"}),e.jsxs("span",{className:"text-lg font-bold text-primary",children:[ye(f),T==="card"?" / mês":""]})]})]}),c&&e.jsxs("div",{className:"flex items-start gap-3 bg-green-50 border border-green-200 rounded-lg p-4",children:[e.jsx(B,{className:"h-5 w-5 text-green-600 flex-shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-foreground",children:"Cupom aplicado"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[c.discount_percent,"% de desconto aplicado com sucesso e válido durante a sua assinatura."]})]})]}),e.jsxs("div",{className:"space-y-4 pt-1",children:[e.jsx(ge,{onClick:T==="card"?ae:_,disabled:T==="card"?x:M,size:"lg",className:"w-full text-lg h-14",children:(T==="card"?x:M)?e.jsx(xe,{className:"h-6 w-6 animate-spin"}):T==="pix"?e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsx(ze,{className:"h-7 w-7 flex-shrink-0"}),"Gerar código PIX"]}):"Liberar acesso"}),e.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:[{icon:pt,label:"Pagamento seguro"},{icon:mt,label:"Acesso imediato"},{icon:ft,label:"7 dias de garantia"}].map(a=>e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-muted-foreground",children:[e.jsx(a.icon,{className:"h-4 w-4"}),e.jsx("span",{children:a.label})]},a.label))})]})]})]})})]})}),e.jsx(ht,{open:G,onOpenChange:U,children:e.jsxs(xt,{className:"sm:max-w-md",children:[e.jsxs(vt,{children:[e.jsx("div",{className:"mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-full bg-amber-100",children:e.jsx(gt,{className:"h-6 w-6 text-amber-600"})}),e.jsx(yt,{className:"text-center",children:i==="cancelled"?"Seu plano foi cancelado":i==="overdue"?"Pagamento pendente":"Seu plano expirou"}),e.jsx(bt,{className:"text-center",children:i==="cancelled"?"Sua assinatura foi cancelada. Para voltar a estudar, faça um novo pagamento abaixo.":i==="overdue"?"Seu último pagamento não foi confirmado. Realize um novo pagamento para reativar seu acesso.":"Seu perÃodo de acesso chegou ao fim. Renove agora para continuar estudando."})]}),e.jsx(jt,{className:"sm:justify-center",children:e.jsx(ge,{onClick:()=>U(!1),className:"w-full sm:w-auto",children:"Renovar Agora"})})]})})]})};export{Sr as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.