1import{k as f,l as e,o as j,h as p,m as b}from"./index-DsftvoUc.js";import{u,B as v,f as y,N as x,l as N,O as w}from"./MainRouter-f7xJ-bnv.js";import{M as k}from"./mode-toggle-DfRzD0TN.js";import{u as g,g as L,a as O,O as _}from"./OnboardingCtx-BXX81KoY.js";import{P as S}from"./progress-CuZn2-jG.js";import"./triangle-alert-B2Ss5tGL.js";import"./dropdown-menu-D4cDBLz4.js";import"./index-D0ggx2SV.js";import"./index-RumSx3xh.js";import"./index-Ck2lVv34.js";import"./index-COEa19XT.js";import"./Combination-BDxB9bF_.js";import"./index-_0SFGjaQ.js";import"./index-ImsY2D8Y.js";import"./index-gdS3L7wa.js";import"./check-DDJhTXCU.js";import"./OnboardingServices-DFiV3qI9.js";import"./IDTypeServices-BdxqrZHE.js";import"./CompanyServices-BRFGHASd.js";import"./label-C_jplNCo.js";import"./input-BrvLzdD1.js";import"./form-BKksJ6ku.js";import"./cloud-upload-CwWm-H0C.js";import"./ESignatureDialog-woUYJaPe.js";import"./dialog-CUyOUqrz.js";import"./index-C488QYdm.js";import"./x-BFrGnnTv.js";import"./external-B40kL34n.js";import"./zod-BC27804E.js";import"./input-otp-FJrchZRe.js";import"./async-button-k0qQD8vu.js";import"./index-BpqgyFQg.js";import"./DocumentRequirementService-CT9DlzDV.js";import"./alert-BFesbuck.js";import"./scroll-area-CmOcwtcS.js";import"./index-BdQq_4o_.js";import"./validateDocumentValues-Dmk_uu5G.js";import"./checkbox-Bt25JGhw.js";import"./index-CfYTD-M_.js";import"./iframe-scroll-Bn5TLe7c.js";import"./TermsServices-CDrW4f2z.js";import"./eye-BXm87jE4.js";const C=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],M=f("log-out",C);function P(){const{logout:r}=u();return e.jsx("div",{className:"flex justify-end",children:e.jsxs("div",{className:"flex items-center justify-center bg-[#FFF] border dark:bg-background rounded-full p-1.5",children:[e.jsx(k,{variant:"ghost"}),e.jsx(v,{variant:"ghost",onClick:r,children:e.jsx(M,{})})]})})}const T=()=>{const{currentOnboarding:r,personType:i}=g(),{theme:t}=j(),[s,l]=p.useState(!1),d=r?.step,a=typeof d=="number"?L(i,d):void 0;return p.useEffect(()=>{if((()=>{l(t==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches:t==="dark")})(),t==="system"){const o=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>l(o.matches);return o.addEventListener("change",n),()=>o.removeEventListener("change",n)}},[t]),e.jsxs("div",{className:"hidden lg:flex flex-col items-center justify-end gap-6 w-3/12 h-full bg-background px-14 py-40 transition-colors duration-300 relative overflow-hidden rounded-l-2xl",children:[e.jsx("img",{src:s?"/logo_app_bg_white.png":"/logo_app_bg_black.svg",alt:"logo",className:"opacity-10 absolute -top-10 -left-14 w-[240px] h-[240px] scale-150"}),e.jsx("h1",{className:"text-xl lg:text-3xl xl:text-3xl 2xl:text-4xl font-bold",children:a?"Inicia tu registro en Liquitech":"Finalizaste tu registro en Liquitech"}),e.jsx("h3",{className:"text-sm 2xl:text-lg text-left w-full",children:a})]})},I=({value:r})=>e.jsxs("div",{className:"relative",children:[e.jsx(S,{className:"w-full",value:r}),e.jsx("div",{className:"relative w-full h-4 mt-1",children:e.jsxs("div",{className:"absolute text-xs font-medium text-primary transition-all duration-300",style:{left:`${r}%`,transform:"translateX(-50%)"},children:[Math.round(r),"%"]})})]}),E=()=>{const{currentOnboarding:r,personType:i}=g(),t=O(i),s=t.findIndex(o=>o.number===r?.step),l=t.length,d=s===0?.5:s===-1?100:s/l*100,a=s!==-1?t[s]:null,c=t.length<=4?"xl:grid-cols-4":t.length<=5?"xl:grid-cols-5":"xl:grid-cols-6";return e.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-3 sm:gap-4 rounded-2xl",children:[e.jsx("div",{className:`hidden w-full min-w-0 md:grid md:grid-cols-2 md:gap-x-3 md:gap-y-2 lg:grid-cols-3 xl:gap-x-2 xl:gap-y-3 ${c}`,role:"list","aria-label":"Pasos del registro",children:t.map((o,n)=>{const m=n===s,h=n<=s;return e.jsx("span",{role:"listitem","aria-current":m?"step":void 0,title:o.title,className:`text-center text-xs leading-tight sm:text-sm xl:px-0.5 ${m?"font-medium text-primary":h?"text-foreground":"text-muted-foreground"}`,children:o.title},o.number)})}),a&&e.jsxs("div",{className:"flex min-w-0 flex-col gap-1 md:hidden",children:[e.jsxs("span",{className:"text-xs font-medium tabular-nums text-muted-foreground",children:["Paso ",s+1," de ",l]}),e.jsx("span",{className:"text-sm font-medium leading-snug text-primary",children:a.title})]}),e.jsx("div",{className:"w-full min-w-0",children:e.jsx(I,{value:d})})]})};function we(){const{isLoading:r,user:i}=u(),t=y();if(r)return e.jsx("div",{className:"flex items-center justify-center h-screen bg-bodybg",children:e.jsx(b,{})});if(!i){const s=encodeURIComponent(t.pathname+t.search+t.hash);return e.jsx(x,{to:`/?next=${s}`,replace:!0})}return i?.company_onboarding_status==="3"?e.jsx(x,{to:N(i),replace:!0}):e.jsx(_,{children:e.jsx("div",{className:"bg-sidebar p-0 lg:p-7 h-screen",children:e.jsxs("div",{className:"w-full h-full transition-colors duration-300 flex rounded-none lg:rou
1nded-2xl",children:[e.jsx(T,{}),e.jsxs("div",{className:"w-full lg:w-9/12 bg-bodybg dark:bg-card transition-colors duration-300 flex flex-col h-full rounded-r-2xl overflow-y-auto lg:overflow-y-hidden",children:[e.jsx("div",{className:"p-8 px-8 lg:px-16 pb-0",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(P,{}),e.jsx(E,{})]})}),e.jsx("div",{className:"p-8 px-8 lg:px-16 pt-6 flex-1 min-h-0 flex flex-col",children:e.jsx(w,{})})]})]})})})}export{we 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.