PageSourceSearch

https://eigdo.com/build/assets/Plans-CP7Ac2x9.js

js eigdo.com collected 2026-10-02 01:29:28 UTC 4,454 bytes, 1 lines download raw bytes

1import{m as v,y as F,c as s,b as c,u as l,h as S,w as b,d as t,q as x,f as r,F as y,l as k,t as a,g as _,e as $}from"./app-DGg9yO0A.js";import{_ as V}from"./AppLayout-CTaBH8Bc.js";import{_ as j}from"./Button-BzgrTa0j.js";import{C as q}from"./check-BJ52jFgo.js";import{C as A}from"./credit-card-t266ijNQ.js";/* empty css            */import"./building-2-BxI1ookC.js";import"./chevron-down-BH0UlUTC.js";import"./briefcase-Dr-U5hwY.js";import"./plus-CaezNO5f.js";import"./ticket-B4ytzU_q.js";import"./shopping-cart-Cjot37hT.js";import"./triangle-alert-DG97y24v.js";import"./clock-D89YJdKb.js";import"./octagon-alert-C_nHdqmR.js";import"./bell-Csal-4eT.js";import"./circle-alert-BW9Huya_.js";import"./sparkles-BTNB7eSU.js";import"./circle-check-BuErEPi2.js";import"./shield-0_zF-1-R.js";import"./file-text-BABPrHef.js";import"./users-BNxC0kcH.js";import"./package-B41T9BkD.js";import"./shield-check-4E2-RW5h.js";import"./key-round-DIvy73oK.js";import"./hash-CVAcHciO.js";import"./printer-CI1LtL02.js";import"./download-DQIlmuny.js";import"./menu-D5d11qbY.js";import"./log-out-BMSJiKet.js";import"./lock-Bz08NzUA.js";import"./power-Dr_lvlk4.js";import"./arrow-left-m7RSYxQ4.js";const B={class:"flex items-center justify-between mb-6"},D={class:"inline-flex rounded-lg border bg-card p-1 text-sm"},I={key:0,class:"rounded-lg border bg-card p-6 text-muted-foreground"},E={key:1,class:"grid md:grid-cols-3 gap-6"},U={class:"flex items-center justify-between mb-2"},z={class:"text-lg font-semibold"},L={key:0,class:"text-xs font-medium text-emerald-700 bg-emerald-50 border border-emerald-200 px-2 py-0.5 rounded-full"},M={key:1,class:"text-xs font-semibold uppercase tracking-wide text-indigo-600 bg-indigo-50 px-2 py-1 rounded-full"},O={key:0,class:"text-sm text-muted-foreground mb-4"},R={class:"mb-4"},T={class:"text-3xl font-bold"},G={class:"text-sm text-muted-foreground"},H={key:1,class:"space-y-1 text-sm mb-6 flex-1"},Pe={__name:"Plans",props:{company:Object,plans:{type:Array,default:()=>[]},currentPlanId:{type:[Number,null],default:null},currentCycle:{type:[String,null],default:null}},setup(u){const p=u,i=v(p.currentCycle??"monthly"),g=v(null),d=F({plan_id:null,billing_cycle:"monthly"}),C=o=>{g.value=o,d.plan_id=o,d.billing_cycle=i.value,d.post(route("billing.plans.select"))},w=o=>o?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2}).format(o/100):"—",N=o=>i.value==="annual"?o.annual_price_cents:o.monthly_price_cents,f=o=>p.currentPlanId===o.id&&p.currentCycle===i.value;return(o,n)=>(r(),s(y,null,[c(l(S),{title:"Cambiar plan"}),c(V,null,{header:b(()=>[...n[2]||(n[2]=[t("h1",{class:"text-lg font-semibold tracking-tight"},"Cambiar plan",-1)])]),default:b(()=>[t("div",B,[n[3]||(n[3]=t("p",{class:"text-sm text-muted-foreground"},"Selecciona un plan y ciclo de facturación. El cambio queda en estado pendiente hasta que se confirme el pago.",-1)),t("div",D,[t("button",{onClick:n[0]||(n[0]=e=>i.value="monthly"),class:x(["px-3 py-1.5 rounded-md transition",i.value==="monthly"?"bg-indigo-600 text-white":"text-muted-foreground"])},"Mensual",2),t("button",{onClick:n[1]||(n[1]=e=>i.value="annual"),class:x(["px-3 py-1.5 rounded-md transition",i.value==="annual"?"bg-indigo-600 text-white":"text-muted-foreground"])},"Anual",2)])]),u.plans.length?(r(),s("div",E,[(r(!0),s(y,null,k(u.plans,e=>{var h;return r(),s("div",{key:e.id,class:x(["rounded-xl border bg-card p-6 shadow-sm flex flex-col",e.is_featured?"border-indigo-500 ring-2 ring-indigo-200":""])},[t("div",U,[t("h3",z,a(e.name),1),f(e)?(r(),s("span",L,"Actual")):e.is_featured?(r(),s("span",M,"Recomendado")):_("",!0)]),e.description?(r(),s("p",O,a(e.description),1)):_("",!0),t("div",R,[t("div",T,a(w(N(e))),1),t("div",G,"por "+a(i.value==="annual"?"año":"mes"),1)]),(h=e.features)!=null&&h.length?(r(),s("ul",H,[(r(!0),s(y,null,k(e.features,(m,P)=>(r(),s("li",{key:P,class:"flex items-start gap-2"},[c(l(q),{class:"h-4 w-4 text-indigo-600 mt-0.5 shrink-0"}),t("span",null,a(typeof m=="string"?m:m.label),1)]))),128))])):_("",!0),c(l(j),{class:"w-full bg-indigo-600 hover:bg-indigo-700 text-white",disabled:f(e)||l(d).processing&&g.value===e.id,onClick:m=>C(e.id)},{default:b(()=>
1[c(l(A),{class:"h-4 w-4 mr-2"}),$(" "+a(f(e)?"Plan actual":l(d).processing&&g.value===e.id?"Procesando…":"Seleccionar"),1)]),_:2},1032,["disabled","onClick"])],2)}),128))])):(r(),s("div",I," No hay planes disponibles. "))]),_:1})],64))}};export{Pe 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.