1import{j as e,B as t,T as p,r as d,a as xe,c as P,y as b,H as me,D as v,f as fe}from"./app-BZMRTsuS.js";import{l as D,p as M,t as A,i as E,f as T,b as y,a as Y,c as w}from"./constants-Bu6SZ1v9.js";import{A as he}from"./AuthBox-BmDt9eaC.js";import{L as ue}from"./LanguageSwitcher-fjBjBfPx.js";import{L as ge}from"./logo-bNh9u0wR.js";import{u as be}from"./useTranslateDict-CqG-Xn3N.js";import{TabPanel as N}from"./Profile-D_77Y0be.js";import ve from"./franchisor-chat-DpH1SR-X.js";import _e from"./file-text-B0tlMGS0.js";import je from"./message-circle-CKuCEQ9c.js";import Q from"./x-DfnlLEeA.js";import ye from"./upload-B-_f66uV.js";/* empty css */import"./KeyboardArrowDown-D9sN5Qh5.js";import"./createSvgIcon-CISW1gy7.js";import"./index-DBW4IqEz.js";import"./languages-WFWrV0qk.js";import"./createLucideIcon-COrS4lSy.js";import"./Menu-BCzWmKB1.js";import"./MenuItem-DHZynuzi.js";import"./listItemTextClasses-Dko_1TJd.js";import"./AdminLayout-C1wEhjSO.js";import"./SidebarNavigationGroup-CR-otHOw.js";import"./useControlled-BKFoDg_8.js";import"./Popper-CLLvn2vZ.js";import"./ListItem-CWnbw1iL.js";import"./chevron-down-Bg91GIFX.js";import"./Collapse-FWpsRXWN.js";import"./file-question-yiXImVY3.js";import"./user-round-DF_DFx3d.js";import"./sparkles-DYwQCufG.js";import"./credit-card-DpdGHFA1.js";import"./settings-Bp02x2RC.js";import"./file-up-DPPYgVgg.js";import"./bell-BuPVItlS.js";import"./messages-square-BADWRAH7.js";import"./calendar-clock-DBWGtuHd.js";import"./user-cog-WWz6O9Sp.js";import"./users-CyMmPgq9.js";import"./map-pin-check-CIaTLJmW.js";import"./video-D6ArB_9u.js";import"./message-circle-more-D0j6DZSY.js";import"./message-square-text-iE-njpgK.js";import"./file-pen-line-DTdgjI4z.js";import"./file-search-2-ChUsBnLL.js";import"./play-mq_m1KiG.js";import"./store-BMJ7cn2s.js";import"./handshake-DVyF4xXk.js";import"./briefcase-business-eL5CeR2W.js";import"./package-open-BudoWEbE.js";import"./building-2-Duw89aHU.js";import"./layout-dashboard-CmRb-BUP.js";import"./chevron-left-DycWhMYO.js";import"./cog-DOgW13ju.js";import"./headphones-DE7MQT8s.js";import"./log-out-DJr85CwM.js";import"./useNotificationsListener-CyP77ygA.js";import"./Divider-Bb2Zxy87.js";import"./IconButton-DQ9YpBSr.js";import"./menu-Xdct_srT.js";import"./chevrons-right-D7y3CJ8r.js";import"./dot-B-UFNqoA.js";import"./videoProcessingWaitRegistry-hDxulhKs.js";import"./chevron-right-C3ibg8R9.js";import"./AvatarEditable-zZDjsPBh.js";import"./Avatar-CVR9nWsq.js";import"./BoxPrimary-BYtvPsyS.js";import"./RoundIconButton-Bt-gSanO.js";import"./useVideoProcessingListener-B69tW-Rx.js";import"./echo-CMjYtwg9.js";import"./videoService-Sf7E4KPS.js";import"./v7-CElQ7RR-.js";import"./rng-Dsaz7ZGA.js";import"./VideoPlayer-6avYL5sB.js";import"./PlayArrowRounded-DYCT9ODq.js";import"./hls-Cp2x8l1r.js";import"./Slider-C0Vsej77.js";import"./visuallyHidden-Dan1xhjv.js";import"./VolumeUpRounded-t1TFBUFM.js";import"./maximize-2-S4DEJPWY.js";import"./ChevronRight-4-LVU4rf.js";import"./Switch-CjoXag_M.js";import"./SwitchBase-DAt3DPDP.js";import"./useFormControl-C7GyD0k9.js";import"./LinearProgress-0xsCikjF.js";import"./DialogContent-C-XCzMq9.js";import"./CountryPhoneInput-B-oQAJOv.js";import"./countries-DhySMZQ7.js";import"./phone-DtDV73Ae.js";import"./Stack-lyb-H-23.js";import"./styled-DlUnb7Sr.js";import"./TextField-BB__fmZM.js";import"./formControlState-Dq1zat_P.js";import"./Autocomplete-Pj2ACIlS.js";import"./Close-FnJfGzK_.js";import"./Chip-CxhJjHEG.js";import"./HomeBrandLogo-Cjy5cONf.js";import"./Close-D0ypvG7a.js";import"./DialogTitle-DKSgpIzm.js";import"./Grid-CPvZZi00.js";import"./info-CqsVYvM8.js";import"./ChatTemplate-8jnUKCO0.js";import"./ScrollToBottonButton-BUk2vNG6.js";import"./arrow-down-CRj5ZlIX.js";import"./OfficeRenderer-CONd-yi_.js";import"./zoom-out-D8nXjtqZ.js";import"./zoom-in-BMmCbTk8.js";import"./printer-C0WzsPU7.js";import"./loader-circle-CFN9oPjn.js";import"./download-CPT4B3Jc.js";import"./embla-carousel.esm-CMPFBS9o.js";import"./BranchOpeningProgressShared-DiCNT7td.js";import"./index-Co8Q3YKX.js";import"./popover-DujHa3Hh.js";import"./index-BYbEvXNw.js";import"./index-Ci9tDqVY.js";import"./index-B62CXf0_.js";import"./dialog-BP7s7Juo.js";import"./triangle-alert-BsxgWCAK.js";import"./check-N2ehAS7U.js";import"./DynamicIcon-CAfrJaUV.js";import"./NewChatFooter-BH1-9udj.js";import"./file-spreadsheet-DkgMfJRN.js";import"./file-image-B8D2KwYk.js";import"./button-yRSJ691e.js";import"./proxy-QBEyYEND.js";
1import"./audio-lines-4mukf9i2.js";import"./ClickAwayListener-Ckjd054_.js";import"./plus-Bd8ze_Bv.js";import"./image-up-fBe_--dA.js";import"./paperclip-tWocO18n.js";import"./square-CULr6ypi.js";import"./arrow-up-BBT9SzRj.js";import"./chevron-up-rBMDYhe_.js";import"./NewChatMessage-BaVhroHf.js";import"./index-DBJH9z1X.js";import"./eye-CT2nFASd.js";import"./pencil-DBkSiSfr.js";import"./thumbs-down-sTeTvJWc.js";import"./thumbs-up-B58pjnar.js";import"./registrationOrigin-D5_3Etpw.js";import"./image-plus-C2sxRmjf.js";import"./file-search-C1oAAE03.js";import"./search-Dq0CtVli.js";import"./brain-Du5vr_Qw.js";import"./ChatDropZone-CNjrAzS5.js";import"./useChatStream-Dz45ozBK.js";import"./realtimeConnection-Bh608VBB.js";import"./ContextualChatSuggestions-Cgd77lnY.js";function _({value:r,placeholder:n,onChange:l,onBlur:c,error:m,sx:o={}}){return e.jsx(t,{component:"input",value:r,placeholder:n,onChange:f=>l(f.target.value),onBlur:c,sx:{width:"100%",height:"36px",border:m?"1px solid #E56565":0,outline:0,borderRadius:"30px",background:"#282828",color:"#FFF",px:"20px",boxSizing:"border-box",fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:400,minWidth:0,"&::placeholder":M,...o}})}function H({value:r,placeholder:n,onChange:l,maxLength:c,error:m,sx:o={}}){return e.jsx(t,{component:"textarea",value:r,placeholder:n,maxLength:c,onChange:f=>l(f.target.value),sx:{width:"100%",border:m?"1px solid #E56565":0,outline:0,resize:"none",borderRadius:"20px",background:"#262626",color:"#FFF",px:"20px",py:"15px",boxSizing:"border-box",fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:400,minWidth:0,"&::placeholder":M,...o}})}function S({children:r}){return r?e.jsx(p,{sx:{color:"#E56565",fontSize:"11px",fontFamily:"'Inter', sans-serif"},children:r}):null}function g({label:r,field:n,error:l,children:c}){return e.jsxs(t,{"data-franchisor-form-field":n,tabIndex:n?-1:void 0,sx:{display:"flex",flexDirection:"column",gap:"10px",width:"100%",minWidth:0,outline:0},children:[e.jsx(p,{sx:D,children:r}),c,e.jsx(S,{children:l})]})}function z({selected:r,title:n,description:l,onClick:c}){return e.jsxs(t,{component:"button",type:"button",onClick:c,sx:{display:"flex",alignItems:"flex-start",gap:"9px",border:0,background:"transparent",p:0,textAlign:"left",cursor:"pointer",minWidth:0},children:[e.jsx(t,{sx:{width:"14px",height:"14px",borderRadius:"50%",border:"1px solid #FEB000",boxSizing:"border-box",mt:"1px",flex:"0 0 14px",display:"flex",alignItems:"center",justifyContent:"center"},children:r&&e.jsx(t,{sx:{width:"6px",height:"6px",borderRadius:"50%",background:"#FEB000"}})}),e.jsxs(p,{component:"span",sx:{...A,fontSize:"12px",fontWeight:400,minWidth:0},children:[n&&e.jsx(t,{component:"strong",sx:{fontWeight:600},children:n}),n?`: ${l}`:l]})]})}function Z({value:r,onChange:n,t:l}){return e.jsxs(t,{sx:{display:"flex",flexDirection:"column",gap:"10px"},children:[e.jsx(z,{selected:r==="sim",description:l("page.franchisor_form.options.yes"),onClick:()=>n("sim")}),e.jsx(z,{selected:r==="nao",description:l("page.franchisor_form.options.no"),onClick:()=>n("nao")})]})}function V({children:r}){return e.jsx(t,{sx:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"14px",mt:"auto",pt:{xs:2,sm:3},flexWrap:"wrap",width:"100%"},children:r})}function Se(){if(typeof window>"u")return E;try{const r=localStorage.getItem(T);return r?{...E,...JSON.parse(r)}:E}catch{return E}}function Fe(){return typeof window<"u"&&!!localStorage.getItem(T)}function F(r){if(r==null||r==="")return 0;if(typeof r=="number")return Number.isFinite(r)?r:0;const n=r.replace(/\D/g,"");return n?Number(n)/100:0}function j(r){return F(r)??0}function Ce(r){return r==null?"":String(r)}function ee(r){return r===!0||r===1?"sim":r===!1||r===0?"nao":""}function W(r){const n=F(Ce(r));return n===null?"":y.format(n)}function ke(r){const n=Number(r.market_time??0),l=r.monthly_detail_archive;return{...E,grossRevenue:W(r.annual_gross_revenue),variableCosts:W(r.variable_costs_cmv),fixedCosts:W(r.total_fixed_costs),averageProfitMargin:W(r.average_profit_margin),monthlyDetailArchiveId:Number(r.monthly_detail_archive_id??l?.id)||null,monthlyDetailArchiveName:l?.filename??"",monthlyDetailArchiveExtension:l?.extension??"",marketYears:Number.isFinite(n)?String(Math.floor(n/12)):"",marketMonths:Number.isFinite(n)?String(n%12):"",expansionCapital:W(r.available_expansion_capital),franchisorExperience:r.franchisor_experience??"",experienceDescription:r.experience_description??"",differentials:r.competitive_differentials??"",exclusiveSuppliers:ee(r.has_exclusive_approved_suppliers),exclusiveSupplierName:"",exclusiveSupplierNames:(r.exclusive_approved_suppliers??"").split(` 2`).map(c=>
2c.trim()).filter(Boolean),advertisingFund:ee(r.has_advertising_fund),advertisingFundValue:r.advertising_fund_value??"",idealFranchiseeProfile:r.ideal_franchisee_profile??""}}function we({children:r}){const[n,l]=d.useState(!1);return d.useEffect(()=>{const c=document.querySelector('script[src="https://cdn.jsdelivr.net/npm/tsparticles@2/tsparticles.bundle.min.js"]'),m=()=>{window.tsParticles&&window.tsParticles.load("tsparticles",{fullScreen:!1,background:{color:"transparent"},fpsLimit:120,particles:{number:{value:15,density:{enable:!0,area:800}},color:{value:["#FFFFFF"]},shape:{type:"circle"},opacity:{value:.5},size:{value:2},move:{enable:!0,speed:.1,direction:"bottom",random:!1,straight:!1}},detectRetina:!0})};if(c)m();else{const o=document.createElement("script");o.src="https://cdn.jsdelivr.net/npm/tsparticles@2/tsparticles.bundle.min.js",o.async=!0,o.onload=()=>{m()},document.body.appendChild(o)}},[]),d.useEffect(()=>{setTimeout(()=>l(!0),500)},[]),e.jsxs("div",{style:{position:"relative",width:"100%",height:"100vh",overflow:"hidden",backgroundSize:"cover",backgroundPosition:"center",backgroundColor:"#000"},children:[e.jsx("section",{id:"particles-section",style:{position:"absolute",inset:0,width:"100%",height:"100%",zIndex:1},children:e.jsx("div",{id:"tsparticles",style:{position:"absolute",inset:0,width:"100%",height:"100%"}})}),e.jsx("style",{children:` 3 #particles-section canvas { 4 position: absolute !important; 5 top: 0; 6 left: 0; 7 width: 100% !important; 8 height: 100% !important; 9 z-index: 0; 10 } 11 `}),e.jsxs("div",{style:{zIndex:3,position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",opacity:n?1:0,transition:"opacity 0.3s ease",textAlign:"center"},children:[e.jsx(t,{sx:{position:"absolute",top:24,right:24,zIndex:10},children:e.jsx(ue,{})}),r]})]})}const De=["grossRevenue","variableCosts","fixedCosts","averageProfitMargin","expansionCapital","marketYears","marketMonths"],Ae=r=>De.includes(r),Ie=r=>typeof r=="string"||typeof r=="number";function vo(){const r=be(),{toastConfig:n,novoTheme:l}=xe(),[c,m]=d.useState("choice"),[o,f]=d.useState(()=>Se()),[a,C]=d.useState({}),[L,O]=d.useState(!1),[re,$]=d.useState(!1),R=d.useRef(null),ie=d.useRef(Fe()),[k,U]=d.useState(null),I=c!=="chat"&&c!=="choice",G=c==="chat",x=(i,s)=>{if(Ae(i)&&Ie(s)){const h=typeof s=="string"?s.replace(/[^\d.,-]/g,""):s;f(u=>({...u,[i]:h})),C(u=>({...u,[i]:void 0,...i==="marketYears"||i==="marketMonths"?{marketTime:void 0}:{}}));return}f(h=>({...h,[i]:s})),C(h=>({...h,[i]:void 0,...i==="marketYears"||i==="marketMonths"?{marketTime:void 0}:{}}))},K=d.useMemo(()=>j(o.grossRevenue)-j(o.variableCosts)-j(o.fixedCosts),[o.grossRevenue,o.variableCosts,o.fixedCosts]),B=d.useCallback(i=>{f(s=>({...s,monthlyDetailArchiveId:i.id,monthlyDetailArchiveName:i.filename??s.monthlyDetailArchiveName,monthlyDetailArchiveExtension:i.extension??s.monthlyDetailArchiveExtension})),C(s=>({...s,monthlyDetailArchiveId:void 0}))},[]),oe=d.useCallback(async i=>{try{const s=await P.get(`/api/archive/get/${i}`);s.data?.archive&&B(s.data.archive)}catch{b.error(r("page.franchisor_form.toasts.fetch_file_error"),n)}},[B,r,n]);d.useEffect(()=>{localStorage.setItem(T,JSON.stringify(o))},[o]),d.useEffect(()=>{P.get("/api/admin/franchisor-form/business-form").then(i=>{i.data?.business_form&&!ie.current?f(ke(i.data.business_form)):o.monthlyDetailArchiveId&&!o.monthlyDetailArchiveName&&oe(o.monthlyDetailArchiveId)}).catch(()=>b.error(r("page.franchisor_form.toasts.load_error"),n))},[]);function te(i){f(s=>({...s,exclusiveSuppliers:i,...i==="sim"?{}:{exclusiveSupplierName:"",exclusiveSupplierNames:[]}})),C(s=>({...s,exclusiveSuppliers:void 0,exclusiveSupplierName:void 0}))}function se(i){f(s=>({...s,advertisingFund:i,...i==="sim"?{}:{advertisingFundValue:""}})),C(s=>({...s,advertisingFund:void 0,advertisingFundValue:void 0}))}function J(){const i=o.exclusiveSupplierName.trim();i&&(f(s=>({...s,exclusiveSupplierName:"",exclusiveSupplierNames:[...s.exclusiveSupplierNames,i]})),C(s=>({...s,exclusiveSupplierName:void 0})))}function ne(i){f(s=>({...s,exclusiveSupplierNames:s.exclusiveSupplierNames.filter((h,u)=>u!==i)}))}function ae(i){i.key==="Enter"&&(i.preventDefault(),J())}async function q(i){if(!i)return;const s=new FormData;s.append("archive",i);try{O(!0),b.info(r("page.franchisor_form.toasts.upload_started"),n);const h=await P.post("/api/archive/upload",s,{headers:{"Content-Type":"multipart/form-data"}}),u=h.data?.id;if(!u)throw new Error("missing_archive_id");B(h.data?.archive??{id:u,filename:i.name,extension:i.name.split(".").pop()??""}),b.success(r("page.franchisor_form.toasts.upload_success"),n)}catch{b.error(r("page.franchisor_form.toasts.upload_error"),n)}finally{O(!1),R.current&&(R.current.value="")}}function le(i){i.preventDefault(),q(i.dataTransfer.files?.[0])}function pe(){f(i=>({...i,monthlyDetailArchiveId:null,monthlyDetailArchiveName:"",monthlyDetailArchiveExtension:""})),b.success(r("page.franchisor_form.toasts.file_removed"),n)}async function X(){const i=Number(o.marketYears||0)*12+Number(o.marketMonths||
110),s={monthly_detail_archive_id:o.monthlyDetailArchiveId||null,annual_gross_revenue:j(o.grossRevenue),variable_costs_cmv:j(o.variableCosts),total_fixed_costs:j(o.fixedCosts),average_profit_margin:j(o.averageProfitMargin),calculated_annual_net_profit:K,market_time:i,available_expansion_capital:j(o.expansionCapital),franchisor_experience:o.franchisorExperience||"",experience_description:o.experienceDescription||"",competitive_differentials:o.differentials||"",has_exclusive_approved_suppliers:o.exclusiveSuppliers==="sim",exclusive_approved_suppliers:o.exclusiveSuppliers==="sim"?o.exclusiveSupplierNames.join(` 12`):"",has_advertising_fund:o.advertisingFund==="sim",advertising_fund_value:o.advertisingFund==="sim"?o.advertisingFundValue:"",ideal_franchisee_profile:o.idealFranchiseeProfile||""};try{$(!0),await P.post("/api/admin/franchisor-form/business-form",s),localStorage.removeItem(T),b.success(r("page.franchisor_form.toasts.save_success"),n),fe.visit("/admin/start")}catch(h){const u=h?.response?.data?.errors?Object.values(h.response.data.errors)[0]:null;b.error(Array.isArray(u)?u[0]:r("page.franchisor_form.toasts.save_error"),n)}finally{$(!1)}}const ce=o.monthlyDetailArchiveName||r("page.franchisor_form.file_card.document"),de=(o.monthlyDetailArchiveExtension||r("page.franchisor_form.file_card.pdf")).toUpperCase();return e.jsxs(e.Fragment,{children:[e.jsx(me,{title:r("page.franchisor_form.head_title")}),e.jsx(we,{children:e.jsxs(he,{sx:{width:{xs:I?"calc(100% - 32px)":"100%",sm:"100%"},maxWidth:G?"100%":"519px",height:{xs:"auto",md:"auto"},maxHeight:G?"100%":"calc(100vh - 48px)",background:I?"#0F0F0F":"transparent",borderRadius:"10px",borderTop:I?"1.2px solid rgba(255, 255, 255, 0.20)":"none",borderBottom:I?"1.2px solid rgba(255, 255, 255, 0.20)":"none",px:{xs:"22px",sm:"31px"},py:c==="chat"?"none":{xs:"28px",sm:"39px"},boxSizing:I?"1.2px solid rgba(255, 255, 255, 0.20)":"none",display:"flex",flexDirection:"column",overflowY:"auto"},children:[c!=="chat"&&e.jsx(t,{sx:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(ge,{variant:"icon",width:100,margin:1.1})}),e.jsxs(t,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0,width:"100%",mt:{xs:2,sm:2.5}},children:[e.jsxs(N,{value:c,index:"choice",children:[e.jsx(p,{sx:{fontSize:{xs:"18px",sm:"20px"},color:"#fff",fontWeight:700,mb:"5px"},children:r("page.franchisor_onboarding.choice.title")}),e.jsx(p,{sx:{...l.text.secondary,mt:{xs:.3,sm:.3,md:.4,lg:.3,xl:.5}},children:r("page.franchisor_onboarding.choice.description")}),e.jsxs(t,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px",mt:{xs:3,sm:4}},children:[e.jsxs(t,{component:"button",type:"button","aria-pressed":k==="financial",onClick:()=>U("financial"),sx:{minHeight:"190px",borderRadius:"12px",border:k==="financial"?`1px solid ${l.colors.primary}`:"none",background:"#1F1F1F",color:"#fff",p:{xs:"15px",sm:"22px"},display:"flex",flexDirection:"column",alignItems:"flex-start",textAlign:"left",cursor:"pointer",fontFamily:"inherit",transition:"border-color 0.2s ease, background-color 0.2s ease","&:hover":{borderColor:l.colors.primary},"&:focus-visible":{outline:`2px solid ${l.colors.primary}`,outlineOffset:"2px"}},children:[e.jsx(t,{sx:{width:"44px",height:"44px",borderRadius:"50%",background:"#282828",display:"flex",alignItems:"center",justifyContent:"center",color:l.colors.primary,mb:2},children:e.jsx(_e,{size:24})}),e.jsx(p,{sx:{color:"#fff",fontSize:"16px",fontWeight:600,mb:1},children:r("page.franchisor_onboarding.methods.form.title")}),e.jsx(p,{sx:{color:"#A5A5A5",fontSize:"14px",lineHeight:1.5,fontWeight:400},children:r("page.franchisor_onboarding.methods.form.description")})]}),e.jsxs(t,{component:"button",type:"button","aria-pressed":k==="chat",onClick:()=>U("chat"),sx:{minHeight:"190px",borderRadius:"12px",border:k==="chat"?`1px solid ${l.colors.primary}`:"none",background:"#1F1F1F",color:"#fff",p:{xs:"15px",sm:"22px"},position:"relative",display:"flex",flexDirection:"column",alignItems:"flex-start",textAlign:"left",cursor:"pointer",fontFamily:"inherit",transition:"border-color 0.2s ease, background-color 0.2s ease","&:hover":{borderColor:l.colors.primary},"&:focus-visible":{outline:`2px solid ${l.colors.primary}`,outlineOffset:"2px"}},children:[e.jsx(t,{sx:{background:"#FEB000",borderRadius:"999px",position:"absolute",top:0,left:{xs:"35%",sm:"28%"},transform:"translate(-50%, -50%)",px:1.5,py:.1,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(p,{sx:{color:"#000000",fontSize:"12px",fontWeight:500,textAlign:"center"},children:r("page.franchisor_onboarding.recommended")})}),e.jsx(t,{sx:{width:"44px",height:"44px",borderRadius:"50%",background:"#282828",display:"flex",alignItems:"center",justifyContent:"center",color:l.colors.primary,mb:2},children:e.jsx(je,{size:24})}),e.jsx(p,{sx:{color:"#fff",fontSize:"16px",fontWeight:600,mb:1},children:r("page.franchisor_onboarding.methods.chat.title")}),e.jsx(p,{sx:{color:"#A5A5A5",fontSize:"14px",fontWeight:400,lineHeight:1.5},children:r("page.franchisor_onboarding.methods.chat.description")})]})]}),e.jsxs(t,{sx:{display:"flex",justifyContent:"center",flexDirection:"column",gap:1,mt:{xs:3,sm:4}},children:[e.jsx(v,{disabled:!k,disabledBgColor:"#feb2007c",disableFullWidth:!1,paddingY:1,textSx:{fontSize:"14px"},text:r("page.franchisor_onboarding.buttons.continue"),onPress:()=>m(k==="financial"?"financial":"chat")}),e.jsx(v,{variant:"secondary",disableFullWidth:!1,paddingY:1,textSx:{fontSize:"14px"},text:r("page.franchisor_onboarding.buttons.skip"),onPress:X})]})]}),e.jsx(N,{value:c,index:"financial",children:e.jsxs(t,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0,width:"100%"},children:[e.jsx(p,{sx:{...D,textAlign:"center",maxWidth:"360px",mx:"auto",mb:{xs:4,sm:5}},children:r("page.franchisor_form.intro")}),e.jsx(p,{sx:{...Y,mb:{xs:2.5,sm:2.8}},children:r("page.franchisor_form.sections.financial")}),e.jsxs(t,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, minmax(0, 220px))"},columnGap:"19px",rowGap:{xs:2.5,sm:3},width:"100%",justifyContent:"center"},children:[e.jsx(g,{field:"grossRevenue",label:r("page.franchisor_form.labels.annual_gross_revenue"),error:a.grossRevenue,children:e.jsx(_,{error:!!a.grossRevenue,value:y.format(F(o.grossRevenue)),placeholder:r("page.franchisor_form.placeholders.money"),onChange:i=>x("grossRevenue",i)})}),e.jsx(g,{field:"variableCosts",label:r("page.franchisor_form.labels.variable_costs_cmv"),error:a.variableCosts,children:e.jsx(_,{error:!!a.variableCosts,value:y.format(F(o.variableCosts)),placeholder:r("page.franchisor_form.placeholders.money"),onChange:i=>x("variableCosts",i)})}),e.jsx(g,{field:"fixedCosts",label:r("page.franchisor_form.labels.total_fixed_costs"),error:a.fixedCosts,children:e.jsx(_,{error:!!a.fixedCosts,value:y.format(F(o.fixedCosts)),placeholder:r("page.franchisor_form.placeholders.money"),onChange:i=>x("fixedCosts",i)})}),e.jsx(g,{field:"averageProfitMargin",label:r("page.franchisor_form.labels.average_profit_margin"),error:a.averageProfitMargin,children:e.jsx(_,{error:!!a.averageProfitMargin,value:y.format(F(o.averageProfitMargin)),placeholder:r("page.franchisor_form.placeholders.money"),onChange:i=>x("averageProfitMargin",i)})})]}),e.jsxs(t,{sx:{width:"100%",minHeight:"52px",height:{xs:"auto",sm:"52px"},borderRadius:"10px",background:"#282828",display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"center",justifyContent:"space-between",gap:{xs:.8,sm:2},px:{xs:"18px",sm:"24px"},py:{xs:"12px",sm:0},boxSizing:"border-box",mt:{xs:3,sm:3.4}},children:[e.jsx(p,{sx:{...A,fontSize:"14px",fontWeight:600,textAlign:"center"},children:r("page.franchisor_form.labels.calculated_annual_net_profit")}),e.jsx(p,{sx:{...A,fontSize:"14px",fontWeight:600,textAlign:"center",whiteSpace:"nowrap"},children:y.format(K)})]}),e.jsx(t,{sx:{mt:{xs:2.4,sm:3}},children:e.jsxs(g,{field:"monthlyDetailArchiveId",label:r("page.franchisor_form.labels.monthly_detail"),error:a.monthlyDetailArchiveId,children:[e.jsx("input",{type:"file",accept:"application/pdf,.pdf",ref:R,onChange:i=>q(i.target.files?.[0]),style:{display:"none"}}),o.monthlyDetailArchiveId?e.jsxs(t,{sx:{width:"100%",minHeight:"61px",borderRadius:"10px",background:"#282828",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"14px",px:"12px",boxSizing:"border-box"},children:[e.jsxs(t,{sx:{display:"flex",alignItems:"center",gap:"14px",minWidth:0},children:[e.jsx(t,{sx:{borderRadius:"7px",background:"#202020",px:"9px",py:"8px",...A,fontSize:"13px",fontWeight:700},children:de}),e.jsx(p,{sx:{...A,fontSize:"13px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:ce})]}),e.jsx(t,{component:"button",type:"button","aria-label":r("page.franchisor_form.buttons.remove_file"),onClick:pe,sx:{border:0,background:"transparent",color:"#A5A5A5",display:"flex",p:0,cursor:"pointer"},children:e.jsx(Q,{size:19,strokeWidth:1.5})})]}):e.jsxs(t,{component:"button",type:"button",disabled:L,onClick:()=>R.current?.click(),onDrop:le,onDragOver:i=>i.preventDefault(),sx:{width:"100%",height:"93px",borderRadius:"10px",border:a.monthlyDetailArchiveId?"1px dashed #E56565":"1px dashed rgba(255, 255, 255, 0.10)",background:"transparent",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"12px",mt:"8px",cursor:L?"wait":"pointer",boxSizing:"border-box"},children:[e.jsx(ye,{color:"#fff",strokeWidth:1.5,size:22}),e.jsx(p,{sx:{color:"#A5A5A5",fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:400,maxWidth:"240px",lineHeight:"15px",textAlign:"center"},children:r("page.franchisor_form.placeholders.upload")})]})]})}),e.jsxs(V,{children:[e.jsx(v,{text:r("page.franchisor_form.buttons.back"),onPress:()=>m("choice"),textSx:w,paddingY:0}
12),e.jsx(v,{text:r("page.franchisor_form.buttons.next"),onPress:()=>m("profile"),textSx:w,paddingY:0})]})]})}),e.jsx(N,{value:c,index:"profile",children:e.jsxs(t,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0,width:"100%"},children:[e.jsx(p,{sx:{...Y,mb:2.5},children:r("page.franchisor_form.sections.profile")}),e.jsx(g,{field:"marketTime",label:r("page.franchisor_form.labels.market_time"),error:a.marketTime,children:e.jsxs(t,{sx:{display:"flex",gap:"20px",flexWrap:"wrap",width:"100%"},children:[e.jsx(_,{error:!!a.marketTime,value:o.marketYears,placeholder:r("page.franchisor_form.placeholders.years"),onChange:i=>x("marketYears",i),sx:{maxWidth:{xs:"100%",sm:"190px"},borderRadius:"20px",background:"#262626"}}),e.jsx(_,{error:!!a.marketTime,value:o.marketMonths,placeholder:r("page.franchisor_form.placeholders.months"),onChange:i=>x("marketMonths",i),sx:{maxWidth:{xs:"100%",sm:"190px"},borderRadius:"20px",background:"#262626"}})]})}),e.jsx(t,{sx:{mt:2.5},children:e.jsx(g,{field:"expansionCapital",label:r("page.franchisor_form.labels.available_expansion_capital"),error:a.expansionCapital,children:e.jsx(_,{error:!!a.expansionCapital,value:y.format(F(o.expansionCapital)),placeholder:r("page.franchisor_form.placeholders.money"),onChange:i=>x("expansionCapital",i),sx:{maxWidth:{xs:"100%",sm:"190px"},borderRadius:"20px",background:"#262626"}})})}),e.jsxs(t,{"data-franchisor-form-field":"franchisorExperience",tabIndex:-1,sx:{mt:3,outline:0},children:[e.jsx(p,{sx:{...D,fontWeight:600,mb:2.2},children:r("page.franchisor_form.labels.franchisor_experience")}),e.jsxs(t,{sx:{display:"flex",flexDirection:"column",gap:"14px",border:a.franchisorExperience?"1px solid #E56565":0,borderRadius:"10px",p:a.franchisorExperience?1:0},children:[e.jsx(z,{selected:o.franchisorExperience==="iniciante",title:r("page.franchisor_form.options.beginner"),description:r("page.franchisor_form.options.beginner_description"),onClick:()=>x("franchisorExperience","iniciante")}),e.jsx(z,{selected:o.franchisorExperience==="intermediario",title:r("page.franchisor_form.options.intermediate"),description:r("page.franchisor_form.options.intermediate_description"),onClick:()=>x("franchisorExperience","intermediario")}),e.jsx(z,{selected:o.franchisorExperience==="consolidado",title:r("page.franchisor_form.options.consolidated"),description:r("page.franchisor_form.options.consolidated_description"),onClick:()=>x("franchisorExperience","consolidado")})]}),e.jsx(S,{children:a.franchisorExperience})]}),e.jsx(t,{sx:{mt:3},children:e.jsx(g,{field:"experienceDescription",label:r("page.franchisor_form.labels.experience_description"),error:a.experienceDescription,children:e.jsx(H,{error:!!a.experienceDescription,value:o.experienceDescription,placeholder:r("page.franchisor_form.placeholders.experience_description"),onChange:i=>x("experienceDescription",i),sx:{height:"113px"}})})}),e.jsxs(V,{children:[e.jsx(v,{text:r("page.franchisor_form.buttons.back"),onPress:()=>m("financial"),textSx:w,paddingY:0}),e.jsx(v,{text:r("page.franchisor_form.buttons.next"),onPress:()=>m("competitive"),textSx:w,paddingY:0})]})]})}),e.jsx(N,{value:c,index:"competitive",children:e.jsxs(t,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0,width:"100%"},children:[e.jsx(p,{sx:{...Y,mb:2.8},children:r("page.franchisor_form.sections.competitive")}),e.jsxs(t,{"data-franchisor-form-field":"differentials",tabIndex:-1,sx:{outline:0},children:[e.jsxs(t,{sx:{display:"flex",justifyContent:"space-between",gap:2,mb:1.3},children:[e.jsx(p,{sx:D,children:r("page.franchisor_form.labels.competitive_differentials")}),e.jsxs(p,{sx:{...M,flexShrink:0},children:[o.differentials.length,"/1000"]})]}),e.jsx(H,{error:!!a.differentials,value:o.differentials,placeholder:r("page.franchisor_form.placeholders.competitive_differentials"),maxLength:1e3,onChange:i=>x("differentials",i),sx:{height:"113px"}}),e.jsx(S,{children:a.differentials})]}),e.jsxs(t,{"data-franchisor-form-field":"exclusiveSuppliers",tabIndex:-1,sx:{mt:2.4,outline:0},children:[e.jsx(p,{sx:{...D,mb:1.4},children:r("page.franchisor_form.labels.exclusive_suppliers")}),e.jsx(t,{sx:{border:a.exclusiveSuppliers?"1px solid #E56565":0,borderRadius:"10px",p:a.exclusiveSuppliers?1:0}
12,children:e.jsx(Z,{t:r,value:o.exclusiveSuppliers,onChange:te})}),e.jsx(S,{children:a.exclusiveSuppliers}),o.exclusiveSuppliers==="sim"&&e.jsxs(e.Fragment,{children:[e.jsxs(t,{"data-franchisor-form-field":"exclusiveSupplierName",tabIndex:-1,sx:{display:"flex",alignItems:"flex-start",gap:"15px",mt:2,width:"100%",outline:0},children:[e.jsxs(t,{sx:{flex:1,minHeight:"36px",border:a.exclusiveSupplierName?"1px solid #E56565":0,borderRadius:"20px",background:"#262626",display:"flex",alignItems:"center",flexWrap:"wrap",gap:"8px",px:"12px",py:"7px",boxSizing:"border-box",minWidth:0},children:[o.exclusiveSupplierNames.map((i,s)=>e.jsxs(t,{sx:{display:"flex",alignItems:"center",gap:"7px",maxWidth:"100%",borderRadius:"14px",background:"#202020",px:"10px",py:"5px",boxSizing:"border-box"},children:[e.jsx(p,{sx:{...A,fontSize:"12px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i}),e.jsx(t,{component:"button",type:"button",onClick:()=>ne(s),"aria-label":r("page.franchisor_form.buttons.remove_supplier",{supplier:i}),sx:{border:0,background:"transparent",color:"#A5A5A5",display:"flex",p:0,cursor:"pointer"},children:e.jsx(Q,{size:14,strokeWidth:1.5})})]},`${i}-${s}`)),e.jsx(t,{component:"input",value:o.exclusiveSupplierName,placeholder:o.exclusiveSupplierNames.length?"":r("page.franchisor_form.placeholders.exclusive_suppliers"),onChange:i=>x("exclusiveSupplierName",i.target.value),onKeyDown:ae,sx:{flex:"1 1 160px",minWidth:"120px",height:"22px",border:0,outline:0,background:"transparent",color:"#FFF",fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:400,"&::placeholder":M}})]}),e.jsx(t,{component:"button",type:"button",onClick:J,"aria-label":r("page.franchisor_form.buttons.add_supplier"),sx:{width:"36px",height:"36px",borderRadius:"20px",background:"#262626",border:0,display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 36px",p:0,cursor:"pointer"},children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M9 3.75V14.25",stroke:"#FEB000",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3.75 9H14.25",stroke:"#FEB000",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),e.jsx(S,{children:a.exclusiveSupplierName})]})]}),e.jsxs(t,{"data-franchisor-form-field":"advertisingFund",tabIndex:-1,sx:{mt:2.4,outline:0},children:[e.jsx(p,{sx:{...D,mb:1.4},children:r("page.franchisor_form.labels.advertising_fund")}),e.jsx(t,{sx:{border:a.advertisingFund?"1px solid #E56565":0,borderRadius:"10px",p:a.advertisingFund?1:0},children:e.jsx(Z,{t:r,value:o.advertisingFund,onChange:se})}),e.jsx(S,{children:a.advertisingFund}),o.advertisingFund==="sim"&&e.jsxs(t,{"data-franchisor-form-field":"advertisingFundValue",tabIndex:-1,sx:{outline:0},children:[e.jsx(_,{error:!!a.advertisingFundValue,value:o.advertisingFundValue,placeholder:r("page.franchisor_form.placeholders.advertising_fund_value"),onChange:i=>x("advertisingFundValue",i),sx:{borderRadius:"20px",background:"#262626",mt:2}}),e.jsx(S,{children:a.advertisingFundValue})]})]}),e.jsx(t,{sx:{mt:2.4},children:e.jsx(g,{field:"idealFranchiseeProfile",label:r("page.franchisor_form.labels.ideal_franchisee_profile"),error:a.idealFranchiseeProfile,children:e.jsx(H,{error:!!a.idealFranchiseeProfile,value:o.idealFranchiseeProfile,placeholder:r("page.franchisor_form.placeholders.ideal_franchisee_profile"),onChange:i=>x("idealFranchiseeProfile",i),sx:{height:"75px"}})})}),e.jsxs(V,{children:[e.jsx(v,{text:r("page.franchisor_form.buttons.back"),onPress:()=>m("profile"),textSx:w,paddingY:0}),e.jsx(v,{disabled:re,text:r("page.franchisor_form.buttons.finish"),textWhenDisabled:r("page.franchisor_form.buttons.saving"),onPress:X,textSx:w,paddingY:0})]})]})}),e.jsx(N,{value:c,index:"chat",children:e.jsx(ve,{})})]})]})})]})}export{vo 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.