1import{J as e,X as t,s as n,t as r}from"./jsx-runtime-DYP5Hmyy.js";import{t as i}from"./i18n-B9HMu1A1.js";import{t as a}from"./useTranslation-CfWSZHog.js";import{n as o}from"./client-BvZNv-C-.js";var s=t(e(),1),c=r(),l=()=>[{title:`${i.t(`titles.liteUpgrade`)} | DeployGate`}],u=()=>(0,c.jsxs)(`svg`,{className:`h-5 w-5 shrink-0`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,c.jsx)(`circle`,{cx:`10`,cy:`10`,r:`10`,fill:`#19B368`}),(0,c.jsx)(`path`,{d:`M14 7L8.5 12.5L6 10`,stroke:`white`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),d=n(function(){let{t:e}=a(),[t,n]=(0,s.useState)(!0),[r,i]=(0,s.useState)(!1),[l,d]=(0,s.useState)(null),[f,p]=(0,s.useState)(null),[m,h]=(0,s.useState)(`check`),[g,_]=(0,s.useState)(null),[v,y]=(0,s.useState)({company_name:``,contact_name:``,zip:``,address:``,phone_number:``,contact_email:[``]});(0,s.useEffect)(()=>{b()},[]);let b=async()=>{try{let e=new URLSearchParams(window.location.search).get(`enterprise`),t=e?`?enterprise=${encodeURIComponent(e)}`:``,n=await(await fetch(`/enterprises/api/lite_upgrades/check_eligibility${t}`,{credentials:`include`})).json();n.eligible?(i(!0),d(n.enterprise),h(`confirm`)):p(n.error)}catch{p(e(`liteUpgrade.error.checkFailed`))}finally{n(!1)}},x=e=>{_(e),p(null),e===`card`?S():h(`payment`)},S=async()=>{h(`processing`),p(null);try{let e=await(await fetch(`/enterprises/api/lite_upgrades/create_stripe_checkout_session`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-CSRF-Token":await o.fetchCsrfToken()??``},credentials:`include`,body:JSON.stringify({enterprise_id:l.id})})).json();e.success?window.location.href=e.checkout_url:(p(e.error),h(`select_payment`))}catch{p(e(`liteUpgrade.error.paymentFailed`)),h(`select_payment`)}},C=async()=>{if(!v.company_name||!v.contact_name||!v.zip||!v.address||!v.phone_number||!v.contact_email[0]){p(e(`liteUpgrade.error.validation.required`));return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v.contact_email[0])){p(e(`liteUpgrade.error.validation.invalidEmail`));return}h(`processing`);try{let e=await(await fetch(`/enterprises/api/lite_upgrades/create_invoice_payment`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-CSRF-Token":await o.fetchCsrfToken()??``},credentials:`include`,body:JSON.stringify({enterprise_id:l.id,billing_information:v})})).json();if(e.success){let e=`/app/enterprises/lite-upgrade/thanks?invoice=true${l?.name?`&enterprise=${encodeURIComponent(l.name)}`:``}`;window.location.href=e}else p(e.error),h(`payment`)}catch{p(e(`liteUpgrade.error.invoiceFailed`)),h(`payment`)}},w=(e,t)=>{y(n=>({...n,[e]:t}))};return t?(0,c.jsx)(`div`,{className:`flex items-center justify-center bg-gradient-to-b from-[#f2f2f2] to-[#ffffff]`,children:(0,c.jsxs)(`div`,{className:`text-center`,children:[(0,c.jsx)(`div`,{className:`inline-block h-12 w-12 animate-spin rounded-full border-b-2 border-[#363433]`}),(0,c.jsx)(`p`,{className:`mt-4 text-[#363433]`,children:e(`liteUpgrade.loading`)})]})}):f&&!r?(0,c.jsx)(`div`,{className:`flex items-center justify-center bg-gradient-to-b from-[#f2f2f2] to-[#ffffff]`,children:(0,c.jsx)(`div`,{className:`mx-auto max-w-[720px] rounded-2xl bg-white p-10 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.08)]`,children:(0,c.jsxs)(`div`,{className:`rounded-lg border border-red-400 bg-red-100 px-4 py-3 text-red-700`,children:[(0,c.jsx)(`h4`,{className:`font-bold`,children:e(`liteUpgrade.error.notEligible`)}),(0,c.jsx)(`p`,{children:f})]})})}):m===`confirm`?(0,c.jsx)(`div`,{className:`flex flex-col bg-gradient-to-b from-[#f2f2f2] to-[#ffffff]`,children:(0,c.jsx)(`div`,{className:`flex flex-col items-center justify-start px-4 py-10`,children:(0,c.jsx)(`div`,{className:`w-full max-w-[720px] rounded-2xl bg-white p-10 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.08)]`,children:(0,c.jsxs)(`div`,{className:`flex flex-col items-center gap-8`,children:[(0,c.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,c.jsx)(`h1`,{className:`text-center text-2xl font-bold text-[#363433]`,children:e(`liteUpgrade.title`)})}),f&&(0,c.jsx)(`div`,{className:`w-full rounded-lg border border-red-400 bg-red-100 px-4 py-3 text-red-700`,children:(0,c.jsx)(`p`,{className:`text-sm`,children:f})}),(0,c.jsxs)(`div`,{className:`flex w-full flex-col gap-4`,children:[(0,c.jsxs)(`div`,{className:`rounded-lg border border-[#c7c5c3] bg-[#f0efed] p-4`,children:[(0,c.jsx)(`p`,{className:`mb-4 text-base font-bold text-[#363433]`,children:l?.display_name}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,c.jsxs)(`div`,{className:`flex gap-1`,children:[(0,c.jsx)(`span`,{className:`w-[120px] text-xs font-bold text-[#a19f9d]`,children:e(`liteUpgrade.confirm.workspaceInfo.currentPlan`)}),(0,c.jsx)(`span`,{className:`text-sm text-[#363433]`,children:l?.current_plan})]}),(0,c.jsxs)(`div`,{className:`flex gap-1`,children:[(0,c.jsx)(`span`,{className:`w-[120px] text-xs font-bold text-[#a19f9d]`,children:e(`liteUpgrade.confirm.workspaceInfo.currentUsers`)}),(0,c.jsx)(`span`,{className:`text-sm text-[#363433]`,children:e(`liteUpgrade.confirm.workspaceInfo.userCount`,{count:l?.current_users_count})})]}),(0,c.jsxs)(`div`,{className:`flex gap-1`,children:[(0,c.jsx)(`span`,{className:`w-[120px] text-xs font-bold text-[#a19f9d]`,children:e(`liteUpgrade.confirm.workspaceInfo.projects`)}),(0,c.jsx)(`span`,{className:`text-sm text-[#363433]`,children:l?.groups_count})]})]})]}),(0,c.jsxs)(`div`,{className:`rounded-lg border border-[#19b368] bg-[#f0faf5] p-4`,children:[(0,c.jsx)(`p`,{className:`mb-2 text-base font-bold text-[#19b368]`,children:e(`liteUpgrade.confirm.pricing.title`)}),(0,c.jsx)(`p`,{className:`mb-2 text-xl font-bold text-[#363433]`,children:e(`liteUpgrade.confirm.pricing.price`)}),(0,c.jsxs)(`p`,{className:`text-sm leading-relaxed text-[#363433]`,children:[e(`liteUpgrade.confirm.pricing.note1`),(0,c.jsx)(`br`,{}),e(`liteUpgrade.confirm.pricing.note2`)]})]}),(0,c.jsxs)(`div`,{className:`rounded-lg`,children:[(0,c.jsx)(`p`,{className:`mb-4 text-base font-bold text-[#363433]`,children:e(`liteUpgrade.confirm.features.title`)}),(0,c.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,c.jsxs)(`div`,{className:`flex min-w-[300px] flex-1 items-start gap-1`,children:[(0,c.jsx)(u,{}),(0,c.jsxs)(`div`,{className:`flex flex-col`,children:[(0,c.jsx)(`span`,{className:`text-sm text-[#363433]`,children:e(`liteUpgrade.confirm.features.members.title`)}),(0,c.jsx)(`span`,{className:`text-xs text-[#a19f9d]`,children:e(`liteUpgrade.confirm.features.members.description`)})]})]}),(0,c.jsxs)(`div`,{className:`flex min-w-[300px] flex-1 items-start gap-1`,children:[(0,c.jsx)(u,{}),(0,c.jsxs)(`div`,{className:`flex flex-col`,children:[(0,c.jsx)(`span`,{className:`text-sm text-[#363433]`,children:e(`liteUpgrade.confirm.features.apps.title`)}),(0,c.jsx)(`span`,{className:`text-xs text-[#a19f9d]`,children:e(`liteUpgrade.confirm.features.apps.description`)})]})]}),(0,c.jsxs)(`div`,{className:`flex min-w-[300px] flex-1 items-start gap-1`,children:[(0,c.jsx)(u,{}),(0,c.jsxs)(`div`,{className:`flex flex-col`,children:[(0,c.jsx)(`span`,{className:`text-sm text-[#363433]`,children:e(`liteUpgrade.confirm.features.storage.title`)}),(0,c.jsx)(`span`,{className:`text-xs text-[#a19f9d]`,children:e(`liteUpgrade.confirm.features.storage.description`)})]})]}),(0,c.jsxs)(`div`,{className:`flex min-w-[300px] flex-1 items-start gap-1`,children:[(0,c.jsx)(u,{}),(0,c.jsxs)(`div`,{className:`flex flex-col`,children:[(0,c.jsx)(`span`,{className:`text-sm text-[#363433]`,children:e(`liteUpgrade.confirm.features.retention.title`)}),(0,c.jsx)(`span`,{className:`text-xs text-[#a19f9d]`,children:e(`liteUpgrade.confirm.features.retention.description`)})]})]})]})]})]}),(0,c.jsxs)(`div`,{className:`flex w-full flex-col items-center gap-2`,children:[(0,c.jsx)(`button`,{className:`relative flex h-10 w-full max-w-[400px] items-center justify-center rounded border border-[#117a47] bg-[#19b368] px-3 py-2 text-sm font-bold text-white hover:bg-[#117a47]`,onClick:()=>h(`select_payment`),children:e(`liteUpgrade.confirm.button`)}),(0,c.jsx)(`p`,{className:`text-center text-xs text-[#a19f9d]`,children:e(`liteUpgrade.confirm.notice`)})]})]})})})}):m===`select_payment`?(0,c.jsx)(`div`,{className:`flex flex-col bg-gradient-to-b from-[#f2f2f2] to-[#ffffff]`,children:(0,c.jsx)(`div`,{className:`flex flex-col items-center justify-start px-4 py-10`,children:(0,c.jsx)(`div`,{className:`w-full max-w-[720px] rounded-2xl bg-white p-10 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.08)]`,children:(0,c.jsxs)(`div`,{className:`flex flex-col items-center gap-8`,children:[(0,c.jsx)(`h2`,{className:`text-center text-2xl font-bold text-[#363433]`,children:e(`liteUpgrade.paymentMethod.title`)}),f&&(0,c.jsx)(`div`,{className:`w-full rounded-lg border border-red-400 bg-red-100 px-4 py-3 text-red-700`,children:(0,c.jsx)(`p`,{className:`text-sm`,children:f})}),(0,c.jsxs)(`div`,{className:`flex w-full gap-4`,children:[(0,c.jsxs)(`div`,{className:`flex flex-1 flex-col items-center gap-2 rounded-lg border border-[#c7c5c3] bg-[#f0efed] p-8`,children:[(0,c.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
vendor: 4,723 bytes, line 1
1width:`64`,height:`64`,viewBox:`0 0 64 64`,fill:`none`,children:[(0,c.jsx)(`path`,{d:`M14.0001 33.3332C12.8955 33.3332 12.0001 34.2286 12.0001 35.3332C12.0001 36.4377 12.8955 37.3332 14.0001 37.3332H30.0001C31.1046 37.3332 32.0001 36.4377 32.0001 35.3332C32.0001 34.2286 31.1046 33.3332 30.0001 33.3332H14.0001Z`,fill:`#363433`}),(0,c.jsx)(`path`,{d:`M12.0001 41.9998C12.0001 40.8953 12.8955 39.9998 14.0001 39.9998H34.0001C35.1046 39.9998 36.0001 40.8953 36.0001 41.9998C36.0001 43.1044 35.1046 43.9998 34.0001 43.9998H14.0001C12.8955 43.9998 12.0001 43.1044 12.0001 41.9998Z`,fill:`#363433`}),(0,c.jsx)(`path`,{d:`M40.0001 33.3332C39.2637 33.3332 38.6667 33.9301 38.6667 34.6665V42.6665C38.6667 43.4029 39.2637 43.9998 40.0001 43.9998H50.6667C51.4031 43.9998 52.0001 43.4029 52.0001 42.6665V34.6665C52.0001 33.9301 51.4031 33.3332 50.6667 33.3332H40.0001Z`,fill:`#363433`}),(0,c.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.33341 10.6665C5.65152 10.6665 2.66675 13.6513 2.66675 17.3332V46.6665C2.66675 50.3484 5.65152 53.3332 9.33342 53.3332H54.6667C58.3486 53.3332 61.3334 50.3484 61.3334 46.6665V17.3332C61.3334 13.6513 58.3486 10.6665 54.6667 10.6665H9.33341ZM54.6667 15.9998H9.33341C8.59703 15.9998 8.00008 16.5968 8.00008 17.3332V19.9998H56.0001V17.3332C56.0001 16.5968 55.4031 15.9998 54.6667 15.9998ZM8.00008 46.6665V26.6665H56.0001V46.6665C56.0001 47.4029 55.4031 47.9998 54.6667 47.9998H9.33342C8.59703 47.9998 8.00008 47.4029 8.00008 46.6665Z`,fill:`#363433`})]}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-0.5 text-center`,children:[(0,c.jsx)(`h3`,{className:`text-base font-bold text-[#363433]`,children:e(`liteUpgrade.paymentMethod.card.title`)}),(0,c.jsx)(`p`,{className:`text-xs text-[#a19f9d]`,children:e(`liteUpgrade.paymentMethod.card.description`)})]}),(0,c.jsx)(`button`,{onClick:()=>x(`card`),className:`mt-2 w-fit rounded border border-[#117a47] bg-[#19b368] px-3 py-2 text-sm font-bold text-white hover:bg-[#117a47]`,children:e(`liteUpgrade.paymentMethod.card.button`)})]}),(0,c.jsxs)(`div`,{className:`flex flex-1 flex-col items-center gap-2 rounded-lg border border-[#c7c5c3] bg-[#f0efed] p-8`,children:[(0,c.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`64`,height:`64`,viewBox:`0 0 64 64`,fill:`none`,children:(0,c.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.0001 4C13.0546 4 10.6667 6.38781 10.6667 9.33333V54.6667C10.6667 57.6122 13.0546 60 16.0001 60H48.0001C50.9456 60 53.3334 57.6122 53.3334 54.6667V18.2091C53.3334 16.7947 52.7715 15.4381 51.7713 14.4379L42.8955 5.5621C41.8953 4.5619 40.5388 4 39.1243 4H16.0001ZM49.3334 18.4379V18.6667H41.3334C39.8607 18.6667 38.6667 17.4728 38.6667 16V8H38.8955C39.6028 8 40.281 8.28095 40.7811 8.78105L48.5524 16.5523C49.0525 17.0524 49.3334 17.7307 49.3334 18.4379ZM33.3334 27.3333C33.3334 26.2288 34.2288 25.3333 35.3334 25.3333H44.6667C45.7713 25.3333 46.6667 26.2288 46.6667 27.3333C46.6667 28.4379 45.7713 29.3333 44.6667 29.3333H35.3334C34.2288 29.3333 33.3334 28.4379 33.3334 27.3333ZM19.3334 33.3333C18.2288 33.3333 17.3334 34.2288 17.3334 35.3333C17.3334 36.4379 18.2288 37.3333 19.3334 37.3333H44.6667C45.7713 37.3333 46.6667 36.4379 46.6667 35.3333C46.6667 34.2288 45.7713 33.3333 44.6667 33.3333H19.3334ZM17.3334 43.3333C17.3334 42.2288 18.2288 41.3333 19.3334 41.3333H44.6667C45.7713 41.3333 46.6667 42.2288 46.6667 43.3333C46.6667 44.4379 45.7713 45.3333 44.6667 45.3333H19.3334C18.2288 45.3333 17.3334 44.4379 17.3334 43.3333ZM17.3334 51.3333C17.3334 50.2288 18.2288 49.3333 19.3334 49.3333H36.6667C37.7713 49.3333 38.6667 50.2288 38.6667 51.3333C38.6667 52.4379 37.7713 53.3333 36.6667 53.3333H19.3334C18.2288 53.3333 17.3334 52.4379 17.3334 51.3333ZM29.8002 22.1493C29.8002 19.7973 28.4562 18.5093 25.1149 17.8373L23.6962 17.5573C22.5016 17.3147 22.1282 16.9413 22.1282 16.2507C22.1282 15.392 22.7442 14.944 23.8269 14.944C24.8536 14.944 25.4882 15.336 25.7869 16.232L29.5202 15.8587C29.0162 13.936 27.6536 12.7227 25.2642 12.4053V9.64267H22.5576V12.424C19.7949 12.7973 18.4136 14.3467 18.4136 16.5493C18.4136 18.808 19.8322 20.2827 22.7629 20.7867L24.4616 21.104C25.6189 21.2907 26.0669 21.7387 26.0669 22.5413C26.0669 23.456 25.4322 23.9787 24.1069 23.9787C22.9309 23.9787 22.2776 23.4933 21.9976 22.4667L18.1896 22.84C18.6002 24.968 20.1122 26.256 22.5576 26.5733V29.3547H25.2642V26.592C28.0829 26.256 29.8002 24.8 29.8002 22.1493Z`,fill:`#363433`})}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-0.5 text-center`,children:[(0,c.jsx)(`h3`,{className:`text-base font-bold text-[#363433]`,children:e(`liteUpgrade.paymentMethod.invoice.title`)}),(0,c.jsx)(`p`,{className:`text-xs text-[#a19f9d]`,children:e(`liteUpgrade.paymentMethod.invoice.description`)})]}),(0,c.jsx)(`button`,{onClick:()=>
1x(`invoice`),className:`mt-2 w-fit rounded border border-[#117a47] bg-[#19b368] px-3 py-2 text-sm font-bold text-white hover:bg-[#117a47]`,children:e(`liteUpgrade.paymentMethod.invoice.button`)})]})]})]})})})}):m===`payment`&&g===`invoice`?(0,c.jsx)(`div`,{className:`flex flex-col bg-gradient-to-b from-[#f2f2f2] to-[#ffffff]`,children:(0,c.jsx)(`div`,{className:`flex flex-col items-center justify-start px-4 py-10`,children:(0,c.jsxs)(`div`,{className:`w-full max-w-[720px] rounded-2xl bg-white p-10 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.08)]`,children:[(0,c.jsxs)(`div`,{className:`mb-8 flex flex-col items-center gap-2`,children:[(0,c.jsx)(`h2`,{className:`text-center text-2xl font-bold text-[#363433]`,children:e(`liteUpgrade.invoiceForm.title`)}),(0,c.jsx)(`p`,{className:`text-center text-sm text-[#363433]`,children:e(`liteUpgrade.invoiceForm.notice`)})]}),f&&(0,c.jsx)(`div`,{className:`mb-6 rounded-lg border border-red-400 bg-red-100 px-4 py-3 text-red-700`,children:(0,c.jsx)(`p`,{className:`text-sm`,children:f})}),(0,c.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),C()},className:`space-y-5`,children:[(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,c.jsx)(`label`,{className:`text-sm font-bold text-[#363433]`,children:e(`liteUpgrade.invoiceForm.companyName`)}),(0,c.jsx)(`span`,{className:`text-xs font-bold text-[#d1436d]`,children:e(`liteUpgrade.invoiceForm.required`)})]}),(0,c.jsx)(`input`,{type:`text`,className:`mt-2 h-10 w-full rounded border border-[#c7c5c3] px-3 py-2 text-sm shadow-[inset_0px_2px_4px_0px_rgba(0,0,0,0.16)] placeholder:text-[#c7c5c3] focus:border-[#19b368] focus:outline-none`,value:v.company_name,onChange:e=>w(`company_name`,e.target.value),placeholder:e(`liteUpgrade.invoiceForm.companyName.placeholder`),required:!0})]}),(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,c.jsx)(`label`,{className:`text-sm font-bold text-[#363433]`,children:e(`liteUpgrade.invoiceForm.contactName`)}),(0,c.jsx)(`span`,{className:`text-xs font-bold text-[#d1436d]`,children:e(`liteUpgrade.invoiceForm.required`)})]}),(0,c.jsx)(`input`,{type:`text`,className:`mt-2 h-10 w-full rounded border border-[#c7c5c3] px-3 py-2 text-sm shadow-[inset_0px_2px_4px_0px_rgba(0,0,0,0.16)] placeholder:text-[#c7c5c3] focus:border-[#19b368] focus:outline-none`,value:v.contact_name,onChange:e=>w(`contact_name`,e.target.value),placeholder:e(`liteUpgrade.invoiceForm.contactName.placeholder`),required:!0})]}),(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,c.jsx)(`label`,{className:`text-sm font-bold text-[#363433]`,children:e(`liteUpgrade.invoiceForm.zip.label`)}),(0,c.jsx)(`span`,{className:`text-xs font-bold text-[#d1436d]`,children:e(`liteUpgrade.invoiceForm.required`)})]}),(0,c.jsx)(`input`,{type:`text`,className:`mt-2 h-10 w-full rounded border border-[#c7c5c3] px-3 py-2 text-sm shadow-[inset_0px_2px_4px_0px_rgba(0,0,0,0.16)] placeholder:text-[#c7c5c3] focus:border-[#19b368] focus:outline-none`,value:v.zip,onChange:e=>w(`zip`,e.target.value),placeholder:e(`liteUpgrade.invoiceForm.zip.placeholder`),required:!0})]}),(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,c.jsx)(`label`,{className:`text-sm font-bold text-[#363433]`,children:e(`liteUpgrade.invoiceForm.address.label`)}),(0,c.jsx)(`span`,{className:`text-xs font-bold text-[#d1436d]`,children:e(`liteUpgrade.invoiceForm.required`)})]}),(0,c.jsx)(`input`,{type:`text`,className:`mt-2 h-10 w-full rounded border border-[#c7c5c3] px-3 py-2 text-sm shadow-[inset_0px_2px_4px_0px_rgba(0,0,0,0.16)] placeholder:text-[#c7c5c3] focus:border-[#19b368] focus:outline-none`,value:v.address,onChange:e=>w(`address`,e.target.value),placeholder:e(`liteUpgrade.invoiceForm.address.placeholder`),required:!0})]}),(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,c.jsx)(`label`,{className:`text-sm font-bold text-[#363433]`,children:e(`liteUpgrade.invoiceForm.phone.label`)}),(0,c.jsx)(`span`,{className:`text-xs font-bold text-[#d1436d]`,children:e(`liteUpgrade.invoiceForm.required`)})]}),(0,c.jsx)(`input`,{type:`text`,className:`mt-2 h-10 w-full rounded border border-[#c7c5c3] px-3 py-2 text-sm shadow-[inset_0px_2px_4px_0px_rgba(0,0,0,0.16)] placeholder:text-[#c7c5c3] focus:border-[#19b368] focus:outline-none`,value:v.phone_number,onChange:e=>w(`phone_number`,e.target.value),placeholder:e(`liteUpgrade.invoiceForm.phone.placeholder`),required:!0})]}),(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,c.jsx)(`label`,{className:`text-sm font-bold text-[#363433]`,children:e(`liteUpgrade.invoiceForm.email.label`)}),(0,c.jsx)(`span`,{className:`text-xs font-bold text-[#d1436d]`,children:e(`liteUpgrade.invoiceForm.required`)})]}),(0,c.jsx)(`input`,{type:`email`,className:`mt-2 h-10 w-full rounded border border-[#c7c5c3] px-3 py-2 text-sm shadow-[inset_0px_2px_4px_0px_rgba(0,0,0,0.16)] placeholder:text-[#c7c5c3] focus:border-[#19b368] focus:outline-none`,value:v.contact_email[0],onChange:e=>w(`contact_email`,[e.target.value]),placeholder:e(`liteUpgrade.invoiceForm.email.placeholder`),required:!0})]}),(0,c.jsx)(`button`,{type:`submit`,className:`mt-8 h-10 w-full rounded border border-[#117a47] bg-[#19b368] px-3 py-2 text-sm font-bold text-white hover:bg-[#117a47]`,children:e(`liteUpgrade.invoiceForm.submit`)})]})]})})}):m===`processing`?(0,c.jsx)(`div`,{className:`flex items-center justify-center bg-gradient-to-b from-[#f2f2f2] to-[#ffffff]`,children:(0,c.jsxs)(`div`,{className:`text-center`,children:[(0,c.jsx)(`div`,{className:`inline-block h-12 w-12 animate-spin rounded-full border-b-2 border-[#363433]`}),(0,c.jsx)(`p`,{className:`mt-4 text-[#363433]`,children:e(`liteUpgrade.processing`)})]})}):null});export{d as default,l as meta};
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.