vendor: 4,100 bytes, line 1
1import{r as d,a2 as pe,w as Oe,p as ue,j as e,q as Q,a3 as $e,P as W,v as Z,a4 as Be,t as z,F as me,y as he,x as xe,z as U,a5 as Ve,a6 as X,u as qe,W as He,b as ze,L as J,m as ae,B as T,a0 as oe,$ as We,C as Ke,h as Ue,i as Ye,o as Je,k as Xe,a7 as Qe,l as Ze,a8 as ce,a1 as es}from"./index-BIPYIMZ0.js";import{u as ss,t as rs,o as ts,b as ns,s as y,d as ie,l as as}from"./types-BAsgDpeZ.js";import{F as os,a as b,b as u,c as m,d as h,e as g,f as E}from"./form-CzHJUpLr.js";import{I as O}from"./input-De4ylACs.js";import{T as $}from"./textarea-Cy4EYjvC.js";import{S as B,a as V,b as q,c as H,d as l}from"./select-D-Hjc5eX.js";import{P as cs}from"./progress-Das5dzWY.js";import{A as is,b as ls,c as ds,d as ps,e as us,f as ms,g as hs,h as xs}from"./alert-dialog-DzwmgX6o.js";import le from"./Footer-CLihjkrM.js";import{C as fs}from"./circle-check-big-DjuJuMVs.js";import{A as de}from"./arrow-left-B8cMGRcm.js";import{C as bs}from"./chevron-left-BKuY-PJr.js";import{E as js}from"./external-link-DTtxvel1.js";import"./index-BdQq_4o_.js";import"./chevron-down-rHVylTk0.js";import"./chevron-up-sD1tG7JG.js";import"./index-Cp53WFqe.js";import"./linkedin-mqzqlzth.js";var ee="Radio",[gs,fe]=Q(ee),[vs,ys]=gs(ee),be=d.forwardRef((t,n)=>{const{__scopeRadio:s,name:r,checked:o=!1,required:a,disabled:c,value:p="on",onCheck:x,form:C,...N}=t,[w,f]=d.useState(null),j=Z(n,k=>f(k)),v=d.useRef(!1),S=w?C||!!w.closest("form"):!0;return e.jsxs(vs,{scope:s,checked:o,disabled:c,children:[e.jsx(W.button,{type:"button",role:"radio","aria-checked":o,"data-state":ve(o),"data-disabled":c?"":void 0,disabled:c,value:p,...N,ref:j,onClick:z(t.onClick,k=>{o||x==null||x(),S&&(v.current=k.isPropagationStopped(),v.current||k.stopPropagation())})}),S&&e.jsx(Cs,{control:w,bubbles:!v.current,name:r,value:p,checked:o,required:a,disabled:c,form:C,style:{transform:"translateX(-100%)"}})]})});be.displayName=ee;var je="RadioIndicator",ge=d.forwardRef((t,n)=>{const{__scopeRadio:s,forceMount:r,...o}=t,a=ys(je,s);return e.jsx(me,{present:r||a.checked,children:e.jsx(W.span,{"data-state":ve(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})})});ge.displayName=je;var Cs=t=>{const{control:n,checked:s,bubbles:r=!0,...o}=t,a=d.useRef(null),c=he(s),p=xe(n);return d.useEffect(()=>{const x=a.current,C=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(C,"checked").set;if(c!==s&&w){const f=new Event("click",{bubbles:r});w.call(x,s),x.dispatchEvent(f)}},[c,s,r]),e.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:s,...o,tabIndex:-1,ref:a,style:{...t.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ve(t){return t?"checked":"unchecked"}var Ns=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],se="RadioGroup",[ws]=Q(se,[pe,fe]),ye=pe(),Ce=fe(),[ks,Ss]=ws(se),Ne=d.forwardRef((t,n)=>{const{__scopeRadioGroup:s,name:r,defaultValue:o,value:a,required:c=!1,disabled:p=!1,orientation:x,dir:C,loop:N=!0,onValueChange:w,...f}=t,j=ye(s),v=Oe(C),[S,k]=ue({prop:a,defaultProp:o,onChange:w});return e.jsx(ks,{scope:s,name:r,required:c,disabled:p,value:S,onValueChange:k,children:e.jsx($e,{asChild:!0,...j,orientation:x,dir:v,loop:N,children:e.jsx(W.div,{role:"radiogroup","aria-required":c,"aria-orientation":x,"data-disabled":p?"":void 0,dir:v,...f,ref:n})})})});Ne.displayName=se;var we="RadioGroupItem",ke=d.forwardRef((t,n)=>{const{__scopeRadioGroup:s,disabled:r,...o}=t,a=Ss(we,s),c=a.disabled||r,p=ye(s),x=Ce(s),C=d.useRef(null),N=Z(n,C),w=a.value===o.value,f=d.useRef(!1);return d.useEffect(()=>{const j=S=>{Ns.includes(S.key)&&(f.current=!0)},v=()=>f.current=!1;return document.addEventListener("keydown",j),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",j),document.removeEventListener("keyup",v)}},[]),e.jsx(Be,{asChild:!0,...p,focusable:!c,active:w,children:e.jsx(be,{disabled:c,required:a.required,checked:w,...x,...o,name:a.name,ref:N,onCheck:()=>a.onValueChange(o.value),onKeyDown:z(j=>{j.key==="Enter"&&j.preventDefault()}),onFocus:z(o.onFocus,()=>{var j;f.current&&((j=C.current)==null||j.click())})})})});ke.displayName=we;
1var Ps="RadioGroupIndicator",Se=d.forwardRef((t,n)=>{const{__scopeRadioGroup:s,...r}=t,o=Ce(s);return e.jsx(ge,{...o,...r,ref:n})});Se.displayName=Ps;var Pe=Ne,Re=ke,Rs=Se;const Ae=d.forwardRef(({className:t,...n},s)=>e.jsx(Pe,{className:U("grid gap-2",t),...n,ref:s}));Ae.displayName=Pe.displayName;const M=d.forwardRef(({className:t,...n},s)=>e.jsx(Re,{ref:s,className:U("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...n,children:e.jsx(Rs,{className:"flex items-center justify-center",children:e.jsx(Ve,{className:"h-2.5 w-2.5 fill-current text-current"})})}));M.displayName=Re.displayName;var re="Checkbox",[As]=Q(re),[Es,Is]=As(re),Ee=d.forwardRef((t,n)=>{const{__scopeCheckbox:s,name:r,checked:o,defaultChecked:a,required:c,disabled:p,value:x="on",onCheckedChange:C,form:N,...w}=t,[f,j]=d.useState(null),v=Z(n,R=>j(R)),S=d.useRef(!1),k=f?N||!!f.closest("form"):!0,[_=!1,P]=ue({prop:o,defaultProp:a,onChange:C}),L=d.useRef(_);return d.useEffect(()=>{const R=f==null?void 0:f.form;if(R){const D=()=>P(L.current);return R.addEventListener("reset",D),()=>R.removeEventListener("reset",D)}},[f,P]),e.jsxs(Es,{scope:s,state:_,disabled:p,children:[e.jsx(W.button,{type:"button",role:"checkbox","aria-checked":F(_)?"mixed":_,"aria-required":c,"data-state":De(_),"data-disabled":p?"":void 0,disabled:p,value:x,...w,ref:v,onKeyDown:z(t.onKeyDown,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:z(t.onClick,R=>{P(D=>F(D)?!0:!D),k&&(S.current=R.isPropagationStopped(),S.current||R.stopPropagation())})}),k&&e.jsx(_s,{control:f,bubbles:!S.current,name:r,value:x,checked:_,required:c,disabled:p,form:N,style:{transform:"translateX(-100%)"},defaultChecked:F(a)?!1:a})]})});Ee.displayName=re;var Ie="CheckboxIndicator",_e=d.forwardRef((t,n)=>{const{__scopeCheckbox:s,forceMount:r,...o}=t,a=Is(Ie,s);return e.jsx(me,{present:r||F(a.state)||a.state===!0,children:e.jsx(W.span,{"data-state":De(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...t.style}})})});_e.displayName=Ie;var _s=t=>{const{control:n,checked:s,bubbles:r=!0,defaultChecked:o,...a}=t,c=d.useRef(null),p=he(s),x=xe(n);d.useEffect(()=>{const N=c.current,w=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(w,"checked").set;if(p!==s&&j){const v=new Event("click",{bubbles:r});N.indeterminate=F(s),j.call(N,F(s)?!1:s),N.dispatchEvent(v)}},[p,s,r]);const C=d.useRef(F(s)?!1:s);return e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??C.current,...a,tabIndex:-1,ref:c,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function F(t){return t==="indeterminate"}function De(t){return F(t)?"indeterminate":t?"checked":"unchecked"}var Te=Ee,Ds=_e;const K=d.forwardRef(({className:t,...n},s)=>e.jsx(Te,{ref:s,className:U("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...n,children:e.jsx(Ds,{className:U("flex items-center justify-center text-current"),children:e.jsx(X,{className:"h-4 w-4"})})}));K.displayName=Te.displayName;const Ts=ts({companyName:y().min(2,"Company name must be at least 2 characters"),website:y().url("Please enter a valid URL").optional().or(as("")),contactName:y().min(2,"Contact name must be at least 2 characters"),contactEmail:y().email("Please enter a valid email address"),contactPhone:y().min(6,"Please enter a valid phone number"),businessDescription:y().min(50,"Please provide at least 50 characters about your business"),industryType:y().min(1,"Please select an industry type"),targetAudience:y().min(20,"Please provide at least 20 characters about your target audience"),competitorWebsites:y().optional(),websiteType:y().min(1,"Please select a website type"),websiteGoals:ie(y()).min(1,"Please select at least one website goal"),estimatedPages:y().min(1,"Please select an estimated number of pages"),contentCreation:y().min(1,"Please select who will create the content"),designStyle:y().min(1,"Please select a design style"),colorPreferences:y().optional(),featureRequirements:ie(y()).min(1,"Please select at least one feature requirement"),timeline:y().min(1,"Please select a timeline"),additionalInfo:y().optional(),termsAccepted:ns().refine(t=>t===!0,"You must accept the terms and conditions")});function rr({embedded:t=!1,onClose:n}){const{t:s}=qe(),[,r]=He(),{toast:o}=ze();d.useEffect(()=>{t||window.scrollTo(0,0)},[t]);
1const[a,c]=d.useState(()=>{try{const i=localStorage.getItem("zynko_brief_current_step");return i?parseInt(i,10):1}catch{return 1}}),[p,x]=d.useState(!1),[C,N]=d.useState(!1),[w,f]=d.useState(!1),[j]=d.useState(()=>{let i=localStorage.getItem("zynko_brief_session_id");return i||(i=`zynko_brief_session_${Date.now()}`,localStorage.setItem("zynko_brief_session_id",i)),i}),v=5,S=a/v*100;d.useEffect(()=>{a===1&&J.startProjectBrief()},[]);const k=`zynko_brief_form_data_${j}`,_=()=>{try{const i=sessionStorage.getItem(k);return i?JSON.parse(i):{}}catch{return{}}},P=ss({resolver:rs(Ts),defaultValues:{companyName:"",website:"",contactName:"",contactEmail:"",contactPhone:"",businessDescription:"",industryType:"",targetAudience:"",competitorWebsites:"",websiteType:"",websiteGoals:[],estimatedPages:"",contentCreation:"",designStyle:"",colorPreferences:"",featureRequirements:[],timeline:"",additionalInfo:"",termsAccepted:!1,..._()},mode:"onChange"}),L=P.watch();d.useEffect(()=>{const i=setTimeout(()=>{sessionStorage.setItem(k,JSON.stringify(L))},500);return()=>clearTimeout(i)},[L,k]),d.useEffect(()=>{localStorage.setItem("zynko_brief_current_step",a.toString())},[a]),d.useEffect(()=>{Object.keys(sessionStorage).forEach(A=>{A.startsWith("zynko_brief_form_data_")&&A!==k&&sessionStorage.removeItem(A)})},[k]);const R=async()=>{const i=D(a);return await P.trigger(i)},D=i=>{switch(i){case 1:return["companyName","contactName","contactEmail","contactPhone"];case 2:return["businessDescription","industryType","targetAudience"];case 3:return["websiteType","websiteGoals","estimatedPages","contentCreation"];case 4:return["designStyle","featureRequirements"];case 5:return["timeline","termsAccepted"];default:return[]}},Y=i=>D(i).every(I=>{const G=P.getValues(I),Le=P.getFieldState(I);return I==="websiteGoals"||I==="featureRequirements"?Array.isArray(G)&&G.length>0:I==="termsAccepted"?G===!0:G&&typeof G=="string"&&G.trim().length>0&&!Le.invalid}),te=()=>Object.keys(P.getValues()).some(I=>P.getFieldState(I).invalid)?!1:[1,2,3,4,5].every(I=>Y(I)),Fe=async()=>{await R()&&a<v&&(c(A=>A+1),window.scrollTo(0,0))},Ge=()=>{a>1&&(c(i=>i-1),window.scrollTo(0,0))},Me=()=>{te()?t?ne():N(!0):o({title:"Incomplete Form",description:"Please fill in all required fields before submitting.",variant:"destructive"})},ne=async()=>{try{x(!0),N(!1);const i=await fetch("/api/project-briefs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)}),A=await i.json();if(!i.ok||!A.success)throw new Error(A.message||"Failed to submit the brief");sessionStorage.removeItem(k),localStorage.removeItem("zynko_brief_session_id"),localStorage.removeItem("zynko_brief_current_step"),J.completeProjectBrief(),f(!0),o({title:s("process.steps.brief.success.title"),description:s("process.steps.brief.success.description")})}catch(i){console.error("Error submitting form:",i),o({title:"Submission Failed",description:i.message||"An error occurred while submitting your brief. Please try again.",variant:"destructive"})}finally{x(!1)}};if(w){const i=e.jsx("div",{className:t?"px-4 py-20":"container mx-auto px-4 pt-32 pb-16",children:e.jsx(ae.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"max-w-2xl mx-auto text-center",children:e.jsxs("div",{className:"mb-8",children:[e.jsx("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:e.jsx(fs,{className:"w-8 h-8 text-green-600"})}),e.jsx("h1",{className:`text-3xl font-bold mb-4 ${t?"text-white":""}`,children:s("process.steps.brief.success.title")}),e.jsx("p",{className:`mb-8 ${t?"text-white/70":"text-muted-foreground"}`,children:s("process.steps.brief.success.description")}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(T,{onClick:()=>{n&&n(),r("/")},className:"mr-4",children:s("process.steps.brief.success.returnHome")}),e.jsx(T,{variant:"outline",onClick:()=>{f(!1),c(1),J.startProjectBrief(),P.reset()},className:t?"border-white/30 text-white hover:bg-white/10":"",children:s("process.steps.brief.success.submitAnother")})]})]})})});return t?i:e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-background to-primary/5",children:[e.jsx(oe,{}),i,e.jsx(le,{})]})}return e.jsxs("div",{className:t?"min-h-screen":"min-h-screen bg-gradient-to-br from-background via-background to-primary/5",children:[!t&&e.jsx(We,{title:"СÑаÑÑиÑай ÐÑÐ¾ÐµÐºÑ | Zynko - ÐопÑлни ÐÑÐ¸Ñ Ð·Ð° AI УебÑайÑ",description:"ÐопÑлнеÑе наÑÐ¸Ñ Ð¿Ð¾Ð´Ñобен бÑÐ¸Ñ Ð¸ полÑÑеÑе пеÑÑонализиÑана оÑеÑÑа за ваÑÐ¸Ñ AI ÑебÑайÑ. ÐÑÑз пÑоÑеÑ, ÑÑна комÑникаÑÐ¸Ñ Ð¸ пÑозÑаÑни ÑÑловиÑ.",canonical:"https://zynko.ai/brief"}),!t&&e.jsx(oe,{}),e.jsx("div",{className:t?"container mx-auto px-4 pt-12 pb-20":"container mx-auto px-4 pt-32 pb-20",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[!t&&e.jsxs(T,{variant:"ghost",className:"mb-6",onClick:()=>r("/"),children:[e.jsx(de,{className:"mr-2 h-4 w-4"}),s("process.steps.brief.navigation.backToHome")]}),t&&n&&e.jsxs(T,{variant:"ghost",className:"mb-6 text-white/70 hover:text-white hover:bg-white/10",onClick:n,children:[e.jsx(de,{className:"mr-2 h-4 w-4"}),s("process.steps.brief.navigation.backToHome")]}),e.jsx("h1",{className:`text-4xl font-bold mb-4 ${t?"text-white":""}`,children:s("process.steps.brief.title")}),e.jsx("p",{className:t?"text-white/60 mb-8":"text-muted-foreground mb-8",children:s("process.steps.brief.description")}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"text-sm font-medium",children:s("process.steps.brief.navigation.stepProgress",{current:a,total:v})}),e.jsx("span",{className:"text-sm text-muted-foreground",children:s("process.steps.brief.navigation.percentComplete",{percent:Math.round(S)})})]}),e.jsx(cs,{value:S,className:"h-2"})]})]}),e.jsxs(Ke,{children:[e.jsxs(Ue,{children:[e.jsxs(Ye,{className:"flex items-center",children:[Fs(a,s),a>1&&Y(a-1)&&e.jsx(X,{className:"ml-2 h-5 w-5 text-green-600"})]}),e.jsx(Je,{children:Gs(a,s)})]}),e.jsx(Xe,{children:e.jsx(os,{...P,children:e.jsxs("form",{className:"space-y-6",children:[e.jsx(Qe,{mode:"wait",children:e.jsx(ae.div,{initial:{opacity:0,x:20}
1,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},children:Ms(a,P,s)},a)}),e.jsxs("div",{className:"flex items-center justify-between pt-6 border-t",children:[e.jsxs(T,{type:"button",variant:"outline",onClick:Ge,disabled:a===1,children:[e.jsx(bs,{className:"mr-2 h-4 w-4"}),"Previous"]}),e.jsx("div",{className:"flex space-x-2",children:[1,2,3,4,5].map(i=>e.jsx("div",{className:`w-3 h-3 rounded-full ${i===a?"bg-primary":i<a?"bg-green-500":"bg-muted"}`},i))}),a<v?e.jsxs(T,{type:"button",onClick:Fe,disabled:!Y(a),children:["Next",e.jsx(Ze,{className:"ml-2 h-4 w-4"})]}):e.jsx(T,{type:"button",onClick:Me,disabled:!te()||p,className:"bg-green-600 hover:bg-green-700",children:p?e.jsxs(e.Fragment,{children:[e.jsx(ce,{className:"mr-2 h-4 w-4 animate-spin"}),"Submitting..."]}):e.jsxs(e.Fragment,{children:["Submit Brief",e.jsx(X,{className:"ml-2 h-4 w-4"})]})})]})]})})})]})]})}),e.jsx(is,{open:C,onOpenChange:N,children:e.jsxs(ls,{children:[e.jsxs(ds,{children:[e.jsx(ps,{children:s("process.steps.brief.confirmation.title")}),e.jsx(us,{children:s("process.steps.brief.confirmation.description")})]}),e.jsxs(ms,{children:[e.jsx(hs,{children:s("process.steps.brief.confirmation.cancel")}),e.jsx(xs,{onClick:ne,disabled:p,children:p?e.jsxs(e.Fragment,{children:[e.jsx(ce,{className:"mr-2 h-4 w-4 animate-spin"}),s("process.steps.brief.confirmation.submitting")]}):s("process.steps.brief.confirmation.confirm")})]})]})}),!t&&e.jsx(le,{})]})}function Fs(t,n){switch(t){case 1:return n("process.steps.brief.stepTitles.step1");case 2:return n("process.steps.brief.stepTitles.step2");case 3:return n("process.steps.brief.stepTitles.step3");case 4:return n("process.steps.brief.stepTitles.step4");case 5:return n("process.steps.brief.stepTitles.step5");default:return""}}function Gs(t,n){switch(t){case 1:return n("process.steps.brief.step1Description");case 2:return n("process.steps.brief.step2Description");case 3:return n("process.steps.brief.step3Description");case 4:return n("process.steps.brief.step4Description");case 5:return n("process.steps.brief.step5Description");default:return""}}function Ms(t,n,s){switch(t){case 1:return e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{control:n.control,name:"companyName",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.companyName")}),e.jsx(h,{children:e.jsx(O,{placeholder:s("process.steps.brief.companyNamePlaceholder"),...r})}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"website",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.currentWebsite")}),e.jsx(h,{children:e.jsx(O,{placeholder:s("process.steps.brief.currentWebsitePlaceholder"),...r})}),e.jsx(E,{children:s("process.steps.brief.currentWebsiteDescription")}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"contactName",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.contactName")}),e.jsx(h,{children:e.jsx(O,{placeholder:s("process.steps.brief.contactNamePlaceholder"),...r})}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"contactEmail",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.emailAddress")}),e.jsx(h,{children:e.jsx(O,{type:"email",placeholder:s("process.steps.brief.contactEmailPlaceholder"),...r})}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"contactPhone",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.phoneNumber")}),e.jsx(h,{children:e.jsx(O,{placeholder:s("process.steps.brief.contactPhonePlaceholder"),...r})}),e.jsx(g,{})]})})]});case 2:return e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{control:n.control,name:"businessDescription",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.businessDescription")}),e.jsx(h,{children:e.jsx($,{placeholder:s("process.steps.brief.businessDescriptionPlaceholder"),className:"min-h-[120px]",...r})}),e.jsx(E,{children:s("process.steps.brief.businessDescriptionHelp")}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"industryType",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.industryType")}),e.jsxs(B,{onValueChange:r.onChange,value:r.value,children:[e.jsx(h,{children:e.jsx(V,{children:e.jsx(q,{placeholder:s("process.steps.brief.selectIndustry")})})}
1),e.jsxs(H,{children:[e.jsx(l,{value:"technology",children:s("process.steps.brief.industryTechnology")}),e.jsx(l,{value:"retail",children:s("process.steps.brief.industryRetail")}),e.jsx(l,{value:"healthcare",children:s("process.steps.brief.industryHealthcare")}),e.jsx(l,{value:"finance",children:s("process.steps.brief.industryFinance")}),e.jsx(l,{value:"education",children:s("process.steps.brief.industryEducation")}),e.jsx(l,{value:"manufacturing",children:s("process.steps.brief.industryManufacturing")}),e.jsx(l,{value:"food",children:s("process.steps.brief.industryFood")}),e.jsx(l,{value:"hospitality",children:s("process.steps.brief.industryHospitality")}),e.jsx(l,{value:"construction",children:s("process.steps.brief.industryConstruction")}),e.jsx(l,{value:"transportation",children:s("process.steps.brief.industryTransportation")}),e.jsx(l,{value:"consulting",children:s("process.steps.brief.industryConsulting")}),e.jsx(l,{value:"nonprofit",children:s("process.steps.brief.industryNonprofit")}),e.jsx(l,{value:"entertainment",children:s("process.steps.brief.industryEntertainment")}),e.jsx(l,{value:"other",children:s("process.steps.brief.industryOther")})]})]}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"targetAudience",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.targetAudience")}),e.jsx(h,{children:e.jsx($,{placeholder:s("process.steps.brief.targetAudiencePlaceholder"),className:"min-h-[100px]",...r})}),e.jsx(E,{children:s("process.steps.brief.targetAudienceHelp")}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"competitorWebsites",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.competitorWebsites")}),e.jsx(h,{children:e.jsx($,{placeholder:s("process.steps.brief.competitorWebsitesPlaceholder"),className:"min-h-[80px]",...r})}),e.jsx(E,{children:s("process.steps.brief.competitorWebsitesHelp")}),e.jsx(g,{})]})})]});case 3:return e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{control:n.control,name:"websiteType",render:({field:r})=>e.jsxs(u,{className:"space-y-3",children:[e.jsx(m,{children:s("process.steps.brief.websiteType")}),e.jsx(h,{children:e.jsxs(Ae,{onValueChange:r.onChange,value:r.value,className:"flex flex-col space-y-2",children:[e.jsxs(u,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(h,{children:e.jsx(M,{value:"business"})}),e.jsx(m,{className:"font-normal",children:s("process.steps.brief.websiteTypeBusiness")})]}),e.jsxs(u,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(h,{children:e.jsx(M,{value:"ecommerce"})}),e.jsx(m,{className:"font-normal",children:s("process.steps.brief.websiteTypeEcommerce")})]}),e.jsxs(u,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(h,{children:e.jsx(M,{value:"portfolio"})}),e.jsx(m,{className:"font-normal",children:s("process.steps.brief.websiteTypePortfolio")})]}),e.jsxs(u,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(h,{children:e.jsx(M,{value:"blog"})}),e.jsx(m,{className:"font-normal",children:s("process.steps.brief.websiteTypeBlog")})]}),e.jsxs(u,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(h,{children:e.jsx(M,{value:"other"})}),e.jsx(m,{className:"font-normal",children:s("process.steps.brief.websiteTypeOther")})]})]})}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"websiteGoals",render:()=>e.jsxs(u,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx(m,{children:s("process.steps.brief.websiteGoals")}),e.jsx(E,{children:s("process.steps.brief.websiteGoalsDescription")})]}),["increaseLeads","increaseSales","buildBrand","improveCustomerService","educateAudience"].map(r=>e.jsx(b,{control:n.control,name:"websiteGoals",render:({field:o})=>{var a;return e.jsxs(u,{className:"flex flex-row items-start space-x-3 space-y-0",children:[e.jsx(h,{children:e.jsx(K,{checked:(a=o.value)==null?void 0:a.includes(r),onCheckedChange:c=>c?o.onChange([...o.value||[],r]):o.onChange((o.value||[]).filter(p=>p!==r))})}),e.jsx(m,{className:"font-normal",children:r==="increaseLeads"?s("process.steps.brief.goalIncreaseLeads"):r==="increaseSales"?s("process.steps.brief.goalIncreaseSales"):r==="buildBrand"?s("process.steps.brief.goalBuildBrand"):r==="improveCustomerService"?s("process.steps.brief.goalImproveCustomerService"):r==="educateAudience"?s("process.steps.brief.goalEducateAudience"):r})]},r)}},r)),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"estimatedPages",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.estimatedPages")}),e.jsxs(B,{onValueChange:r.onChange,value:r.value,children:[e.jsx(h,{children:e.jsx(V,{children:e.jsx(q,{placeholder:s("process.steps.brief.selectPageCount")})})}
1),e.jsxs(H,{children:[e.jsx(l,{value:"1-5",children:s("process.steps.brief.pagesSmall")}),e.jsx(l,{value:"6-10",children:s("process.steps.brief.pagesMedium")}),e.jsx(l,{value:"11-20",children:s("process.steps.brief.pagesLarge")}),e.jsx(l,{value:"21+",children:s("process.steps.brief.pagesEnterprise")})]})]}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"contentCreation",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.contentCreation")}),e.jsxs(B,{onValueChange:r.onChange,value:r.value,children:[e.jsx(h,{children:e.jsx(V,{children:e.jsx(q,{placeholder:s("process.steps.brief.contentCreationPlaceholder")})})}),e.jsxs(H,{children:[e.jsx(l,{value:"client",children:s("process.steps.brief.contentClient")}),e.jsx(l,{value:"agency",children:s("process.steps.brief.contentAgency")}),e.jsx(l,{value:"mixed",children:s("process.steps.brief.contentMixed")}),e.jsx(l,{value:"unsure",children:s("process.steps.brief.contentUnsure")})]})]}),e.jsx(g,{})]})})]});case 4:return e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{control:n.control,name:"designStyle",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.designStyle")}),e.jsxs(B,{onValueChange:r.onChange,value:r.value,children:[e.jsx(h,{children:e.jsx(V,{children:e.jsx(q,{placeholder:s("process.steps.brief.designStylePlaceholder")})})}
1),e.jsxs(H,{children:[e.jsx(l,{value:"minimalist",children:s("process.steps.brief.styleMinimalist")}),e.jsx(l,{value:"modern",children:s("process.steps.brief.styleModern")}),e.jsx(l,{value:"luxurious",children:s("process.steps.brief.styleLuxurious")}),e.jsx(l,{value:"playful",children:s("process.steps.brief.stylePlayful")}),e.jsx(l,{value:"corporate",children:s("process.steps.brief.styleCorporate")}),e.jsx(l,{value:"artistic",children:s("process.steps.brief.styleArtistic")}),e.jsx(l,{value:"industrial",children:s("process.steps.brief.styleIndustrial")})]})]}),e.jsx(E,{children:s("process.steps.brief.designStyleDescription")}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"colorPreferences",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.colorPreferences")}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"border rounded-lg p-6 space-y-4",children:[e.jsx("h4",{className:"font-medium text-sm",children:"Choose Your Color Palette (Up to 4 colors)"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"Quick Palettes:"}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[{name:"Professional",colors:["#1f2937","#3b82f6","#10b981","#f8fafc"]},{name:"Modern",colors:["#0c0a09","#ef4444","#f59e0b","#ffffff"]},{name:"Elegant",colors:["#374151","#6366f1","#d1d5db","#f9fafb"]},{name:"Creative",colors:["#7c3aed","#ec4899","#f59e0b","#fef3c7"]},{name:"Nature",colors:["#166534","#22c55e","#bef264","#f0fdf4"]},{name:"Ocean",colors:["#0f172a","#0ea5e9","#38bdf8","#f0f9ff"]},{name:"Warm",colors:["#7c2d12","#ea580c","#fed7aa","#fff7ed"]},{name:"Cool",colors:["#0f172a","#1e40af","#60a5fa","#eff6ff"]}].map((o,a)=>e.jsxs("button",{type:"button",className:"flex flex-col items-center p-2 border rounded-lg hover:border-primary transition-colors",onClick:()=>{const c=`Main: ${o.colors[0]}, Secondary: ${o.colors[1]}, Accent: ${o.colors[2]}, Background: ${o.colors[3]}`;r.onChange(c)},children:[e.jsx("div",{className:"flex gap-1 mb-2",children:o.colors.map((c,p)=>e.jsx("div",{className:"w-4 h-4 rounded border border-gray-200",style:{backgroundColor:c}},p))}),e.jsx("span",{className:"text-xs",children:o.name})]},a))})]}),e.jsxs("div",{className:"flex items-center justify-center py-4",children:[e.jsx("div",{className:"flex-1 border-t border-gray-300"}),e.jsx("div",{className:"px-6 text-sm font-medium text-gray-600 bg-white",children:"OR CHOOSE MANUALLY"}),e.jsx("div",{className:"flex-1 border-t border-gray-300"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"Custom Colors:"}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[{label:"Main Color",key:"main"},{label:"Secondary",key:"secondary"},{label:"Accent",key:"accent"},{label:"Background",key:"background"}].map(o=>e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-xs font-medium",children:o.label}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"color",className:"w-8 h-8 rounded border cursor-pointer",onChange:a=>{const c=r.value||"",p=new RegExp(`${o.label}:\\s*#[a-fA-F0-9]{6}`),x=`${o.label}: ${a.target.value}`;if(p.test(c))r.onChange(c.replace(p,x));else{const C=c?`${c}, ${x}`:x;r.onChange(C)}}}),e.jsx("span",{className:"text-xs text-muted-foreground",children:(()=>{const a=(r.value||"").match(new RegExp(`${o.label}:\\s*(#[a-fA-F0-9]{6})`));return a?a[1]:"#000000"})()})]})]},o.key))})]})]}),e.jsx(h,{children:e.jsx($,{placeholder:"Additional color preferences or notes...",className:"min-h-[60
1px]",value:r.value||"",onChange:r.onChange})})]}),e.jsx(E,{children:s("process.steps.brief.colorPreferencesDescription")}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"featureRequirements",render:()=>e.jsxs(u,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx(m,{children:s("process.steps.brief.featureRequirements")}),e.jsx(E,{children:s("process.steps.brief.featureRequirementsDescription")})]}),["contactForm","newsletter","blog","ecommerce","userAccounts","chatbot","gallery","socialMedia","search","analytics"].map(r=>e.jsx(b,{control:n.control,name:"featureRequirements",render:({field:o})=>{var a;return e.jsxs(u,{className:"flex flex-row items-start space-x-3 space-y-0",children:[e.jsx(h,{children:e.jsx(K,{checked:(a=o.value)==null?void 0:a.includes(r),onCheckedChange:c=>c?o.onChange([...o.value||[],r]):o.onChange((o.value||[]).filter(p=>p!==r))})}),e.jsx(m,{className:"font-normal",children:r==="contactForm"?s("process.steps.brief.featureContactForm"):r==="newsletter"?s("process.steps.brief.featureNewsletter"):r==="blog"?s("process.steps.brief.featureBlog"):r==="ecommerce"?s("process.steps.brief.featureEcommerce"):r==="userAccounts"?s("process.steps.brief.featureUserAccounts"):r==="chatbot"?s("process.steps.brief.featureChatbot"):r==="gallery"?s("process.steps.brief.featureGallery"):r==="socialMedia"?s("process.steps.brief.featureSocialMedia"):r==="search"?s("process.steps.brief.featureSearch"):r==="analytics"?s("process.steps.brief.featureAnalytics"):r})]},r)}},r)),e.jsx(g,{})]})})]});case 5:return e.jsxs("div",{className:"space-y-6",children:[e.jsx(b,{control:n.control,name:"timeline",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.timeline")}),e.jsxs(B,{onValueChange:r.onChange,value:r.value,children:[e.jsx(h,{children:e.jsx(V,{children:e.jsx(q,{placeholder:s("process.steps.brief.timelinePlaceholder")})})}
1),e.jsxs(H,{children:[e.jsx(l,{value:"asap",children:s("process.steps.brief.timelineAsap")}),e.jsx(l,{value:"1month",children:s("process.steps.brief.timeline1Month")}),e.jsx(l,{value:"3months",children:s("process.steps.brief.timeline3Months")}),e.jsx(l,{value:"6months",children:s("process.steps.brief.timeline6Months")}),e.jsx(l,{value:"flexible",children:s("process.steps.brief.timelineFlexible")})]})]}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"additionalInfo",render:({field:r})=>e.jsxs(u,{children:[e.jsx(m,{children:s("process.steps.brief.additionalInfo")}),e.jsx(h,{children:e.jsx($,{placeholder:s("process.steps.brief.additionalInfoPlaceholder"),className:"min-h-[120px]",...r})}),e.jsx(E,{children:s("process.steps.brief.additionalInfoDescription")}),e.jsx(g,{})]})}),e.jsx(b,{control:n.control,name:"termsAccepted",render:({field:r})=>e.jsxs(u,{className:"flex flex-row items-start space-x-3 space-y-0",children:[e.jsx(h,{children:e.jsx(K,{checked:r.value,onCheckedChange:r.onChange})}),e.jsxs("div",{className:"space-y-1 leading-none",children:[e.jsxs(m,{children:["I agree to the"," ",e.jsx(es,{href:"/terms",children:e.jsxs(T,{variant:"link",className:"p-0 h-auto font-normal text-primary hover:underline inline-flex items-center gap-1",type:"button",children:["General Terms and Conditions",e.jsx(js,{className:"h-3 w-3"})]})})]}),e.jsx(E,{children:"Please review our terms and conditions before proceeding with your project brief."})]}),e.jsx(g,{})]})})]});default:return null}}export{rr 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.