PageSourceSearch

https://app.stoqui.com.br/assets/PaywallSheetV2-DyMzzx6B.js

js stoqui.com.br collected 2026-09-24 11:57:25 UTC 20,198 bytes, 1 lines download raw bytes

1import{j as e,a7 as c,T as m,aP as re,ab as R,o as oe,aX as ve,X as de,I as ue,N as Q,a6 as Pe,aA as _e}from"./mui-CRsYZxVY.js";import{b as B,r as H}from"./vendor-Dwao9eNC.js";import{dt as ne,ei as se,aG as N,ef as te,hX as pe,hY as K,aW as Re,hC as ae,hZ as Le,c1 as O,eh as U,b as ye,e as we,cE as xe,fJ as J,fH as he,t as w,l as A,dv as Ae,h_ as Ce,w as Ee,du as ke,bc as Ie,c as $e,fL as Te,aC as me,cg as We,b3 as ze,h$ as qe}from"./index-TALscxEc.js";import{d as Ne}from"./OpenInNew-C51BFPIz.js";import{p as He,u as Me,S as Ue,R as Oe,P as De,W as Fe,a as Be}from"./usePricing-were7rIu.js";import{a as Ve}from"./query-8ViTdhdk.js";import{u as Ye,a as Ge}from"./usePurchasePackage-sQ0ebmEx.js";import"./datePickers-BIJXYOKG.js";import"./icons-D8aatgQ4.js";import"./lab-DSem1Osk.js";import"./WhatsApp-BptyU9R8.js";import"./index-DdiYuG-v.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"2ad85febf9735404429b0670d4acf56a0af5a0a2"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="2c4f1824-1e76-4390-8c88-70b090fa21df",t._sentryDebugIdIdentifier="sentry-dbid-2c4f1824-1e76-4390-8c88-70b090fa21df")})()}catch{}const Ke=[{value:"monthly",label:"Mensal"},{value:"quarterly",label:"Trimestral"},{value:"annual",label:"Anual"}],Xe=({value:t,onChange:r,savingsText:n})=>e.jsx(c,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(c,{sx:{display:"inline-flex",maxWidth:"100%",borderRadius:"50px",bgcolor:"grey.200",p:.5},children:Ke.map(d=>{var v;const x=t===d.value,p=(n==null?void 0:n[d.value])||"",g=p?`-${((v=p.match(/\d+/))==null?void 0:v[0])||""}%`:"";return e.jsxs(c,{onClick:()=>r(d.value),sx:{px:{xs:1.25,sm:2.5},py:{xs:1,sm:1},borderRadius:"50px",cursor:"pointer",bgcolor:x?"background.paper":"transparent",boxShadow:x?"0 1px 3px rgba(0,0,0,0.12)":"none",transition:"all 0.2s ease",userSelect:"none",display:"flex",alignItems:"center",gap:{xs:.4,sm:.5},minWidth:0},children:[e.jsx(m,{sx:{fontSize:{xs:"0.8rem",sm:"0.925rem"},fontWeight:x?700:500,color:x?"text.primary":"text.secondary",whiteSpace:"nowrap",lineHeight:1},children:d.label}),g&&e.jsx(c,{sx:{bgcolor:"#dcfce7",color:"#16a34a",fontSize:{xs:"0.58rem",sm:"0.65rem"},fontWeight:700,lineHeight:1,px:.5,py:.25,borderRadius:"4px",whiteSpace:"nowrap"},children:g})]},d.value)})})}),Qe=B.memo(Xe);var ie={},Je=re;Object.defineProperty(ie,"__esModule",{value:!0});var Se=ie.default=void 0,Ze=Je(ne()),et=e;Se=ie.default=(0,Ze.default)((0,et.jsx)("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"}),"ArrowForwardRounded");const tt=({config:t,recommendedPlan:r,upgradeFromPlan:n})=>{const d=se(r),x=t.icon,p=te[r],g=n?te[n]:null;return e.jsxs(N.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.25,ease:"easeOut"},children:[e.jsxs(R,{direction:"row",spacing:1.5,alignItems:"center",children:[e.jsx(c,{sx:{width:44,height:44,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:oe(d,.1),color:d,flexShrink:0},children:e.jsx(x,{size:22})}),e.jsx(c,{sx:{minWidth:0},children:e.jsx(m,{sx:{fontSize:"1.25rem",fontWeight:800,lineHeight:1.2,letterSpacing:"-0.01em"},children:t.headline})})]}),e.jsx(m,{sx:{mt:1,fontSize:"0.875rem",color:"text.secondary",lineHeight:1.4},children:t.benefit}),g&&e.jsxs(R,{direction:"row",spacing:1,alignItems:"center",sx:{display:"inline-flex",bgcolor:"white",borderRadius:"10px",px:1.5,py:.75,mt:1.25},children:[e.jsx(g,{variant:"contained",fontSize:12}),e.jsx(Se,{sx:{fontSize:16,color:"text.secondary"}}),e.jsx(p,{variant:"contained",fontSize:12})]})]})},rt=B.memo(tt);var ce={},ot=re;Object.defineProperty(ce,"__esModule",{value:!0});var je=ce.default=void 0,nt=ot(ne()),st=e;je=ce.default=(0,nt.default)((0,st.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1"}),"AddRounded");const at=4,it={pro:"lite",black:"pro"}
1,fe={pro:"Preços promocionais, frete com desconto, Pix 4x sem juros e mais",black:"Cupons, relatórios completos, checkout via WhatsApp e mais"},ct=({config:t,plan:r,isUpgrade:n,onSeeAllFeatures:d})=>{const x=se(r),p=pe(r).toUpperCase(),g=t.kind==="generic",v=K[r]>=K[t.plan],l=t.featureLabel.toLowerCase(),o=He[r].highlights.filter(j=>{const i=j.text.toLowerCase();return!i.includes(l)&&!l.includes(i)}).slice(0,g?6:at),y=it[r],u={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.04}}},a={hidden:{opacity:0,x:-8},visible:{opacity:1,x:0,transition:{duration:.18}}};return e.jsx(Re,{mode:"wait",children:e.jsxs(N.div,{initial:"hidden",animate:"visible",exit:{opacity:0,transition:{duration:.1}},variants:u,children:[!g&&v&&e.jsx(N.div,{variants:a,children:e.jsxs(R,{direction:"row",spacing:1.5,alignItems:"flex-start",sx:{bgcolor:oe(x,.07),borderRadius:"12px",px:1.75,py:1.5,mb:1.5},children:[e.jsx(ae,{sx:{color:x,fontSize:22,mt:"1px",flexShrink:0}}),e.jsxs(c,{children:[e.jsx(m,{sx:{fontWeight:700,fontSize:"0.95rem"},children:t.featureLabel}),t.unlockNote&&e.jsx(m,{sx:{fontSize:"0.78rem",color:"text.secondary",mt:.25},children:t.unlockNote})]})]})}),!g&&!v&&e.jsx(N.div,{variants:a,children:e.jsx(R,{direction:"row",spacing:1.5,alignItems:"center",sx:{bgcolor:"background.paper",borderRadius:"12px",px:1.75,py:1.5,mb:1.5},children:e.jsx(m,{sx:{fontWeight:600,fontSize:"0.85rem",color:"warning.main"},children:`O plano ${p} não inclui ${l}`})})}),e.jsx(N.div,{variants:a,children:e.jsx(m,{sx:{fontSize:"0.8rem",fontWeight:700,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.04em",mb:1.25,ml:.25},children:g?n?"Tudo do seu plano, e mais":`No plano ${p} você tem`:v?"E leva junto":`No plano ${p} você tem`})}),e.jsxs(R,{spacing:1,sx:{ml:.25},children:[y&&e.jsx(N.div,{variants:a,children:e.jsxs(R,{direction:"row",spacing:1.25,alignItems:"flex-start",children:[e.jsx(c,{sx:{color:x,flexShrink:0,mt:"2px",lineHeight:0},children:e.jsx(Le,{size:19})}),e.jsxs(c,{sx:{minWidth:0},children:[e.jsx(m,{sx:{fontSize:"0.95rem",fontWeight:600,lineHeight:1.3},children:`Tudo do plano ${pe(y).toUpperCase()}`}),fe[r]&&e.jsx(m,{sx:{fontSize:"0.75rem",color:"text.secondary",lineHeight:1.3,mt:.25},children:fe[r]})]})]})}),o.map(j=>{const i=j.icon;return e.jsx(N.div,{variants:a,children:e.jsxs(R,{direction:"row",spacing:1.25,alignItems:"center",children:[e.jsx(c,{sx:{color:x,flexShrink:0,lineHeight:0},children:e.jsx(i,{size:19})}),e.jsx(m,{sx:{fontSize:"0.95rem",fontWeight:600,lineHeight:1.3},children:j.text})]})},j.text)})]}),e.jsx(N.div,{variants:a,children:e.jsxs(R,{direction:"row",spacing:1.25,alignItems:"center",onClick:d,sx:{mt:1,ml:.25,cursor:"pointer","&:active":{opacity:.7}},children:[e.jsx(je,{sx:{color:x,fontSize:19,flexShrink:0}}),e.jsx(m,{sx:{fontSize:"0.9rem",fontWeight:700,color:x,lineHeight:1.3},children:"E muito mais"})]})})]},r)})},lt=B.memo(ct);var le={},dt=re;
1Object.defineProperty(le,"__esModule",{value:!0});var be=le.default=void 0,ut=dt(ne()),pt=e;be=le.default=(0,ut.default)((0,pt.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUncheckedRounded");const xt=t=>t==="annual"?"/ano":t==="quarterly"?"/3 meses":"/mês",ht=O.isNativePlatform(),mt={lite:"250 produtos, promoções e frete com desconto",pro:"Produtos ilimitados, cupons e relatórios",black:"Tudo do PRO + nota fiscal e domínio próprio"},ft=({rows:t,selectedPlan:r,billingCycle:n,getPlanPrice:d,onSelect:x})=>e.jsx(R,{spacing:1.25,children:t.map(({plan:p,isRecommended:g,requiredPlan:v,featureLabel:l})=>{const o=se(p),y=p===r,u=te[p],a=d(p),j=K[p]<K[v],i=n!=="monthly",C=!ht&&i;return e.jsxs(c,{onClick:()=>x(p),sx:{position:"relative",bgcolor:y?oe(o,.06):"white",border:"2px solid",borderColor:y?o:"#E4E1EC",borderRadius:"14px",px:1.75,py:g?1.75:1.25,cursor:"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:j&&!y?.85:1,userSelect:"none","&:active":{transform:"scale(0.99)"}},children:[g&&e.jsx(c,{sx:{position:"absolute",top:-10,right:14,px:1.25,py:.4,borderRadius:"50px",background:U[p].gradient,color:"white",fontSize:"0.68rem",fontWeight:700,lineHeight:1,whiteSpace:"nowrap"},children:p==="pro"?"Mais popular":"Recomendado"}),e.jsxs(R,{direction:"row",alignItems:"center",spacing:1.5,children:[y?e.jsx(ae,{sx:{color:o,fontSize:24,flexShrink:0}}):e.jsx(be,{sx:{color:"#ABA6B8",fontSize:24,flexShrink:0}}),e.jsxs(c,{sx:{flex:1,minWidth:0},children:[e.jsx(u,{variant:"contained",fontSize:13}),e.jsx(m,{sx:{fontSize:"0.75rem",color:j?"warning.main":"text.secondary",fontWeight:j?600:500,mt:.5,lineHeight:1.3},children:j?`Não inclui ${l.toLowerCase()}`:v==="black"&&p==="black"?`Único plano com ${l.toLowerCase()}`:mt[p]})]}),e.jsx(c,{sx:{textAlign:"right",flexShrink:1,minWidth:0},children:a?e.jsxs(e.Fragment,{children:[e.jsxs(R,{direction:"row",alignItems:"baseline",spacing:.25,justifyContent:"flex-end",sx:{whiteSpace:"nowrap"},children:[e.jsx(m,{sx:{fontSize:"0.8rem",fontWeight:600,color:o},children:a.currencySymbol}),e.jsx(m,{sx:{fontSize:g?"1.5rem":"1.25rem",fontWeight:800,color:o,lineHeight:1},children:Math.floor(C?a.perMonth:a.total)}),e.jsx(m,{sx:{fontSize:"0.72rem",color:"text.secondary",fontWeight:500},children:C?"/mês":xt(n)})]}),i&&e.jsx(m,{sx:{fontSize:"0.68rem",color:"text.secondary",mt:.25},children:C?`${a.currencySymbol} ${Math.floor(a.total)}${n==="quarterly"?" por 3 meses · Parcele em até 3x":" por ano · Parcele em até 10x"}`:`equivale a ${a.currencySymbol} ${Math.floor(a.perMonth)}/mês`})]}):e.jsx(m,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:"Carregando..."})})]})]},p)})}),gt=B.memo(ft),ge="https://assine.stoqui.com.br/auth/login",yt="https://flappstore.asaas.com/",Z=(t,r)=>{const n=t.identifier+t.product.identifier;return r==="annual"?n.includes("annual"):r==="quarterly"?n.includes("quarterly")||n.includes("3month"):!n.includes("annual")&&!n.includes("quarterly")&&!n.includes("3month")},ee=t=>t==="annual"?12:t==="quarterly"?3:1,St=(t,r,n,d)=>{const x=ye(),p=Ve(),g=O.isNativePlatform(),[v,l]=H.useState(null),{data:o}=we(),{data:y}=Me(),{data:u,isLoading:a}=Ye(J(t)),j=Ge(),i=(o==null?void 0:o.source)==="flappstore"&&!!(o!=null&&o.gives_access),C=xe(o,"lite")&&(o==null?void 0:o.plan)==="lite",P=xe(o,"pro")&&(o==null?void 0:o.plan)==="pro",X=(o==null?void 0:o.status)==="trialing",I=C||P,$=H.useMemo(()=>{var f,h;const s=(h=(f=u==null?void 0:u.current)==null?void 0:f.availablePackages)==null?void 0:h.filter(b=>!b.product.identifier.includes("prepaid"));return s==null?void 0:s.find(b=>Z(b,r))},[u,r]),T=s=>{var z,_,L;const f=ee(r);if(g){const E=u==null?void 0:u[J(s)],k=(_=(z=E==null?void 0:E.availablePackages)==null?void 0:z.filter(q=>!q.product.identifier.includes("prepaid")))==null?void 0:_.find(q=>Z(q,r));return k?{total:k.product.price,perMonth:k.product.price/f,currencySymbol:he(k.product.currencyCode??"BRL")}:null}const h=r==="annual"?"annual":r==="quarterly"?"quarterly":"monthly",b=(L=y==null?void 0:y.prices)==null?void 0:L.find(E=>E.planId===`stoqui.${s}:${h}`);return b?{total:b.value,perMonth:b.value/f,currencySymbol:he("BRL")}:null},V=s=>{if(s==="monthly")return 0;const f=s==="quarterly"?15:25,h=(_,L)=>{var q,G;if(g){const M=u==null?void 0:u[J(_)],S=(q=M==null?void 0:M.availablePackages)==null?void 0:q.find(F=>!F.product.identifier.includes("prepaid")&&Z(F,L));return S?S.product.price/ee(L):null}
1const E=L==="annual"?"annual":L==="quarterly"?"quarterly":"monthly",k=(G=y==null?void 0:y.prices)==null?void 0:G.find(M=>M.planId===`stoqui.${_}:${E}`);return k?k.value/ee(L):null},b=h("pro","monthly"),z=h("pro",s);return!b||!z||z>=b?f:Math.round((1-z/b)*100)},Y=async()=>{var s;if(!$){if(a){l("Os planos ainda estão carregando. Tente de novo em instantes.");return}w(A.PAYWALL_V2.PURCHASE_UNAVAILABLE,{trigger:n,plan:t,billing_cycle:r,platform:O.getPlatform()}),l("Não foi possível carregar os planos. Verifique sua conexão e tente de novo.");return}l(null),w(A.PAYWALL_V2.PURCHASE_CLICK,{trigger:n,plan:t,billing_cycle:r,is_upgrade:I,provider:"revenuecat"});try{const f=o==null?void 0:o.product_identifier;(C&&(t==="pro"||t==="black")||P&&t==="black")&&f?await j.mutateAsync({...$,purchaseParams:{oldProductId:f,googleReplacementMode:Ae.IMMEDIATE_AND_CHARGE_PRORATED_PRICE}}):await j.mutateAsync($),w(A.PAYWALL_V2.PURCHASE_SUCCESS,{trigger:n,plan:t,billing_cycle:r,is_upgrade:I}),p.removeQueries({queryKey:["subscription"]}),(s=d==null?void 0:d.onPurchaseSuccess)==null||s.call(d),x("/profile/subscription?comesFromPaywall=true",{replace:!0})}catch(f){console.error("Error during purchase:",f);const h=f,b=(h==null?void 0:h.code)===Ce.PURCHASE_CANCELLED_ERROR;w(A.PAYWALL_V2.PURCHASE_ERROR,{trigger:n,plan:t,billing_cycle:r,is_upgrade:I,error_code:(h==null?void 0:h.code)??"unknown",error_message:(h==null?void 0:h.message)??String(f),user_cancelled:b,platform:O.getPlatform()}),b||l("Não foi possível concluir a compra. Tente de novo em instantes.")}},W=async()=>{w(A.PAYWALL_V2.PURCHASE_CLICK,{trigger:n,plan:t,billing_cycle:r,is_upgrade:I,provider:"external"});const{data:{session:s}}=await Ee.auth.getSession();let f=ge;if(s!=null&&s.access_token&&(s!=null&&s.refresh_token)){const h=new URLSearchParams({access_token:s.access_token,refresh_token:s.refresh_token});f=`${ge}#${h.toString()}`}window.open(f,"_blank")},D=async()=>{var s;try{await ke.restorePurchases(),(s=d==null?void 0:d.onPurchaseSuccess)==null||s.call(d),x("/profile/subscription?comesFromPaywall=true",{replace:!0})}catch(f){console.error("Error restoring purchases:",f)}};return{isNative:g,subscription:o,isFlappstoreSubscription:i,isLiteSubscriber:C,isProSubscriber:P,isTrialing:X,isUpgrade:I,isPurchasing:j.isPending,purchaseError:v,clearPurchaseError:()=>l(null),getPlanPrice:T,getCycleSavingsPercent:V,purchase:Y,openExternalCheckout:W,restorePurchases:D}},jt=B.forwardRef(function(r,n){return e.jsx(ve,{direction:"up",ref:n,...r})}),$t=({open:t,onClose:r,trigger:n,source:d,planHint:x,onPurchaseSuccess:p})=>{const g=ye(),{isDesktop:v}=Ie(),{data:l}=$e(),o=O.isNativePlatform(),y=H.useRef(Date.now());Te(t);const u=qe(n),[a,j]=H.useState("monthly"),[i,C]=H.useState(u.plan==="black"||x==="black"?"black":"pro"),P=St(i,a,n,{onPurchaseSuccess:p}),{isFlappstoreSubscription:X,isLiteSubscriber:I,isProSubscriber:$,isUpgrade:T,getPlanPrice:V,getCycleSavingsPercent:Y}=P,W=$||u.plan==="black"||x==="black"?"black":"pro",D=H.useMemo(()=>($?["black"]:I||u.plan==="black"||x==="black"?["black","pro"]:["black","pro","lite"]).map(F=>({plan:F,isRecommended:F===W,requiredPlan:u.kind==="generic"?"lite":u.plan,featureLabel:u.featureLabel})),[$,I,u,x,W]);H.useEffect(()=>{D.some(S=>S.plan===i)||C(W)},[D,i,W]),H.useEffect(()=>{t&&(y.current=Date.now(),w(A.PAYWALL_V2.VIEW,{trigger:n,source:d,required_plan:u.plan,recommended_plan:W,is_upgrade:T,platform:o?O.getPlatform():"web"}))},[t]);const s=()=>{w(A.PAYWALL_V2.CLOSE,{trigger:n,selected_plan:i,billing_cycle:a,time_spent_ms:Date.now()-y.current}),r()},f=S=>{S!==i&&(w(A.PAYWALL_V2.PLAN_SELECT,{trigger:n,plan:S,previous_plan:i}),C(S))},h=S=>{w(A.PAYWALL_V2.BILLING_CYCLE_CHANGE,{trigger:n,from:a,to:S}),j(S)},b=()=>{w(A.PAYWALL_V2.COMPARE_PLANS_CLICK,{trigger:n,selected_plan:i}),r(),g(`/profile/compare-plans?selectedPlan=${i}`)},z={monthly:"",quarterly:`Economize ${Y("quarterly")}%`,annual:`Economize ${Y("annual")}%`},_=V(i),L=a==="monthly"&&i!=="black"&&_?`Menos de ${_.currencySymbol} ${Math.ceil(_.total/30)} por dia`:null,E=!o&&a!=="monthly"?a==="quarterly"?" · Parcele em até 3x":" · Parcele em até 10x":"",k=_?`${_.currencySymbol} ${Math.floor(_.total)}${a==="monthly"?"/mês":a==="quarterly"?"/3 meses":"/ano"}${E}`:null,q=(()=>
1{if(!k)return T?"Você paga só a diferença · Cancele quando quiser":"Cancele quando quiser · Sem multa";const S=[k];return T?S.push("pague só a diferença"):E||S.push("renovação automática"),S.push("cancele quando quiser"),S.join(" · ")})();if(X)return e.jsx(de,{open:t,onClose:s,PaperProps:{sx:{borderRadius:3,maxWidth:"400px",mx:2}},children:e.jsxs(c,{sx:{p:4,textAlign:"center",position:"relative"},children:[e.jsx(ue,{onClick:s,sx:{position:"absolute",top:8,right:8},children:e.jsx(me,{})}),e.jsx(c,{component:"img",src:We,alt:"Asaas",sx:{width:48,height:48,mb:2,borderRadius:1.5}}),e.jsx(m,{variant:"h6",fontWeight:700,gutterBottom:!0,children:"Assinatura via Flapp Store"}),e.jsx(m,{variant:"body2",color:"text.secondary",sx:{mb:3},children:o?"Você assinou pela Flapp Store, então seu plano é gerenciado por lá. Para mudar de plano, abra o painel da Asaas no navegador e entre com a sua conta.":"Você assinou pela Flapp Store, então seu plano é gerenciado por lá. Toque abaixo para abrir e mudar de plano."}),!o&&e.jsx(Q,{variant:"contained",fullWidth:!0,onClick:()=>window.open(yt,"_blank"),endIcon:e.jsx(Ne,{}),sx:{textTransform:"none",fontWeight:600,py:1.2,borderRadius:2,background:U.pro.gradient},children:"Abrir Flapp Store"}),e.jsx(Q,{fullWidth:!0,color:"inherit",onClick:s,sx:{mt:1,textTransform:"none"},children:"Fechar"})]})});const G=T?U[i].upgradeLabel:U[i].subscribeLabel,M=o&&P.isPurchasing;return e.jsxs(de,{open:t,fullScreen:!v,onClose:s,TransitionComponent:v?void 0:jt,PaperProps:{sx:{bgcolor:"background.default",display:"flex",flexDirection:"column",width:{md:"580px"},maxWidth:{xs:"100%",md:"580px"},borderRadius:{md:3}}},children:[e.jsxs(c,{sx:{flex:1,overflowY:"auto",overflowX:"hidden",px:{xs:2.5,md:4},pt:{xs:"calc(12px + var(--safe-area-inset-top))",md:2},pb:3},children:[e.jsx(c,{sx:{display:"flex",justifyContent:"flex-end",mb:.5},children:e.jsx(ue,{onClick:s,size:"small",sx:{color:"text.secondary",mr:-1},children:e.jsx(me,{})})}),e.jsx(rt,{config:u,recommendedPlan:W,upgradeFromPlan:I?"lite":$?"pro":null}),e.jsx(c,{sx:{mt:2},children:e.jsx(lt,{config:u,plan:i,isUpgrade:T,onSeeAllFeatures:b})}),e.jsx(c,{sx:{mt:2},children:e.jsx(Ue,{})}),e.jsx(c,{sx:{mt:2.5},children:e.jsx(Qe,{value:a,onChange:h,savingsText:z})}),e.jsx(c,{sx:{mt:2,pt:1},children:e.jsx(gt,{rows:D,selectedPlan:i,billingCycle:a,getPlanPrice:V,onSelect:f})}),T?e.jsxs(R,{direction:"row",spacing:1,alignItems:"flex-start",sx:{mt:1.5,px:.5},children:[e.jsx(ae,{sx:{fontSize:16,color:"success.main",mt:"1px"}}),e.jsx(m,{sx:{fontSize:"0.78rem",color:"text.secondary",lineHeight:1.4},children:"No upgrade você paga só a diferença. O que já pagou no plano atual é descontado."})]}):L&&e.jsx(m,{align:"center",sx:{mt:1.5,fontSize:"0.8rem",color:"text.secondary"},children:L}),e.jsx(c,{sx:{mt:3,mx:{xs:.5,md:1}},children:e.jsx(Oe,{})}),e.jsx(De,{}),(l==null?void 0:l.SALES_URL)&&(l==null?void 0:l.CONSULTOR_BUTTON_ENABLED)!=="false"&&e.jsx(c,{sx:{mt:3},children:e.jsx(Fe,{onPress:()=>{w(A.SUPPORT.SALES_CLICK),window.open(l.SALES_URL,"_blank")}})}),e.jsx(c,{sx:{mt:3},children:e.jsx(Be,{termsUrl:l==null?void 0:l.TERMS_OF_USE_URL,privacyUrl:l==null?void 0:l.PRIVACY_POLICY_URL,onRestorePurchases:P.restorePurchases})})]}),e.jsxs(c,{sx:{px:{xs:2.5,md:4},pt:1.5,pb:{xs:"calc(12px + var(--safe-area-inset-bottom, 0px))",md:2},bgcolor:"white",borderTop:"1px solid",borderColor:"divider"},children:[e.jsx(Q,{variant:"contained",fullWidth:!0,disabled:M,onClick:o?P.purchase:P.openExternalCheckout,sx:{background:U[i].gradient,borderRadius:"12px",py:1.2,fontSize:"16px",fontWeight:700,"&:hover":{background:U[i].gradient,opacity:.92},"&.Mui-disabled":{background:U[i].gradient,opacity:.5,color:"white"}},children:P.isPurchasing?e.jsx(Pe,{size:24,color:"inherit"}):G}),e.jsx(m,{align:"center",sx:{mt:.75,color:"text.disabled",fontSize:"11px"},children:q})]}),e.jsx(_e,{open:!!P.purchaseError,autoHideDuration:6e3,onClose:P.clearPurchaseError,anchorOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(c,{sx:{width:"100%"},children:e.jsx(ze,{severity:"error",onClose:P.clearPurchaseError,children:P.purchaseError})})})]})};export{$t 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.