1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0edbb-388a-76b1-a741-b740bf849257")}catch(e){}}();import{C as e,Dt as t,E as n,F as r,G as i,J as a,Lt as o,Pt as s,R as c,St as l,Y as u,_ as d,_t as f,at as p,b as m,d as h,g,jt as _,ut as v,v as y,w as b,y as x}from"./DX_k09H2.js";import{t as S}from"./ChY6xBlj.js";import{L as C,d as w,r as T}from"./Cr2HaeuO.js";import{t as E}from"./CsvglAle2.js";import{t as D}from"./BJA7sxUV.js";import{t as O}from"./DmEmIxXT.js";import{t as k}from"./COZXJ8y_.js";import{t as A}from"./DYZ51OKy.js";import{t as j}from"./BPVzBTAz.js";import{_ as M,l as N,n as P}from"#entry";import{t as F}from"./BZ-AnMY5.js";import{t as I}from"./BNNxJWos2.js";import{a as L,o as R,t as z}from"./Bp-IQcWF2.js";import{t as B}from"./CIsT-r4t2.js";import{t as V}from"./7BWoA7N_2.js";var H={class:`flex-1 space-y-4 lg:space-y-6`},U={key:1,class:`grid grid-cols-1 gap-4 lg:grid-cols-2`},W=Object.assign(n({__name:`StepFlowFields`,props:{step:{},state:{}},setup(e){let t=e;return(e,n)=>{let r=B,o=k,s=j,c=F;return i(),m(`div`,H,[(i(!0),m(h,null,a(t.step?.fields,(e,a)=>(i(),m(h,{key:e.name},[e.type===`radio`?(i(),y(r,{key:0,modelValue:t.state[e.name],"onUpdate:modelValue":n=>t.state[e.name]=n,items:e.options,cols:1,keyboard:``,class:`max-w-2xl`},null,8,[`modelValue`,`onUpdate:modelValue`,`items`])):e.name===`firstName`&&t.step?.fields?.[a+1]?.name===`lastName`?(i(),m(`div`,U,[b(s,{name:e.name,label:e.label,hint:e.helperText,required:e.required},{default:v(()=>[b(o,{modelValue:t.state[e.name],"onUpdate:modelValue":n=>t.state[e.name]=n,type:e.type,placeholder:e.placeholder,size:`xl`,class:`w-full`},null,8,[`modelValue`,`onUpdate:modelValue`,`type`,`placeholder`])]),_:2},1032,[`name`,`label`,`hint`,`required`]),b(s,{name:`lastName`,label:t.step?.fields?.[a+1]?.label||`Last name`,hint:t.step?.fields?.[a+1]?.helperText,required:t.step?.fields?.[a+1]?.required||!1},{default:v(()=>[b(o,{modelValue:t.state.lastName,"onUpdate:modelValue":n[0]||=e=>t.state.lastName=e,type:`text`,placeholder:t.step?.fields?.[a+1]?.placeholder||``,size:`xl`,class:`w-full`},null,8,[`modelValue`,`placeholder`])]),_:2},1032,[`label`,`hint`,`required`])])):[`text`,`email`,`tel`].includes(e.type)&&e.name!==`lastName`?(i(),y(s,{key:2,name:e.name,label:e.label,hint:e.helperText,required:e.required},{default:v(()=>[b(o,{modelValue:t.state[e.name],"onUpdate:modelValue":n=>t.state[e.name]=n,type:e.type,placeholder:e.placeholder,size:`xl`,class:`w-full`},null,8,[`modelValue`,`onUpdate:modelValue`,`type`,`placeholder`])]),_:2},1032,[`name`,`label`,`hint`,`required`])):e.type===`textarea`?(i(),y(s,{key:3,name:e.name,label:e.label,hint:e.helperText,required:e.required},{default:v(()=>[b(c,{modelValue:t.state[e.name],"onUpdate:modelValue":n=>t.state[e.name]=n,placeholder:e.placeholder,size:`xl`,rows:3,autoresize:``,class:`w-full`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])]),_:2},1032,[`name`,`label`,`hint`,`required`])):x(``,!0)],64))),128))])}}}),{__name:`FormsStepFlowFields`});function G(e,t){let n=t[e.field];switch(e.operator){case`eq`:return n===e.value;case`neq`:return n!==e.value;case`in`:return Array.isArray(e.value)&&e.value.includes(n);case`notIn`:return Array.isArray(e.value)&&!e.value.includes(n);case`contains`:return String(n||``).includes(String(e.value));case`gt`:return Number(n)>Number(e.value);case`lt`:return Number(n)<Number(e.value);case`gte`:return Number(n)>=Number(e.value);case`lte`:return Number(n)<=Number(e.value);default:return console.warn(`Unknown conditional operator: ${e.operator}`),!1}}function K(e,t,n){if(!e||e.length===0)return!1;let r=e.map(e=>G(e,t));return n===`all`?r.every(Boolean):r.some(Boolean)}function q(e,t){if(!e)return!0;if(e.hideIf&&(e.hideIf.all&&K(e.hideIf.all,t,`all`)||e.hideIf.any&&K(e.hideIf.any,t,`any`)))return!1;if(e.showIf){let n=!1;return e.showIf.all&&K(e.showIf.all,t,`all`)&&(n=!0),e.showIf.any&&K(e.showIf.any,t,`any`)&&(n=!0),n}return!0}function ee(e){let t=l(0),n=g(()=>e.steps.filter(t=>q(t.conditionalLogic,e.formData.value))),r=g(()=>n.value[t.value]),i=g(()=>n.value.length),a=g(()=>i.value?(t.value+1)/i.value*100:0),o=g(()=>V(a.value)),s=g(()=>`Step ${t.value+1} of ${i.value}`),c=g(()=>t.value===0),u=g(()=>t.value===i.value-1),d=g(()=>{let e=r.value;if(!e?.autoAdvance||e.fields.length!==1)return null;let[t]=e.fields;return t?.type===`radio`?t:null}),f=g(()=>!!d.value);p(n,e=>{if(!e.length){t.value=0;return}t.value>e.length-1&&(t.value=e.length-1)});function m(){u.value||t.value++}function h(){c.value||t.value--}function _(){t.value=0}return{currentStep:t,visibleSteps:n,currentStepConfig:r,totalSteps:i,progress:a,progressDisplayValue:o,currentStepDescription:s,isFirstStep:c,isLastStep:u,currentStepAutoAdvanceField:d,currentStepHasSingleRadioField:f,goToNextStep:m,goToPreviousStep:h,resetSteps:_}}function te(e){let t=l(null),n=l(null),r=g(()=>e.currentStepConfig.value?.autoAdvanceDelay??300),i=g(()=>{let t=e.currentStepAutoAdvanceField.value?.name;return t?e.formData.value[t]:void 0}),{start:a,stop:o}=C(async()=>{e.isSubmitting.value||t.value===null||e.currentStep.value!==t.value||i.value===n.value&&await e.canAdvance()&&await e.onAdvance()},r,{immediate:!1});function s(){t.value=null,n.value=null,o()}return p(()=>[e.currentStep.value,i.value,e.currentStepHasSingleRadioField.value],([e,r,i],[o,c])=>{s(),!(!i||!r)&&e===o&&r!==c&&(t.value=e,n.value=r,a())}),c(()=>{s()}),{currentStepAutoAdvanceValue:i,cancelAutoAdvance:s}}var ne={class:`flex min-h-[400px] flex-col lg:min-h-[600px] lg:flex-row`},re={class:`flex flex-col p-6 lg:w-3/5 lg:p-12`},ie={class:`mb-6 lg:mb-8`},J={class:`mb-2 flex items-center justify-between text-xs text-gray-600 lg:text-sm`},Y={class:`font-medium`},ae={class:`flex flex-1 flex-col`},oe={class:`mb-6 lg:mb-8`},se={class:`mb-2 text-2xl font-bold text-gray-900 lg:text-3xl`},ce={key:0,class:`text-base text-gray-600 lg:text-lg`},le={key:1,class:`mt-3 hidden items-center gap-2 text-sm text-gray-500 lg:flex`},ue={class:`mt-6 border-t border-gray-200 pt-4 lg:mt-8 lg:pt-6`},de={key:0,class:`mb-4 hidden items-center justify-center gap-2 text-xs text-gray-500 lg:flex`},fe={class:`flex flex-col-reverse gap-3 lg:flex-row lg:items-center lg:justify-between`},X=Object.assign(n({__name:`GuidedStepForm`,props:{steps:{},formData:{},isSubmitting:{type:Boolean,default:!1},submitError:{default:null},navigation:{default:void 0}},emits:[`submit`],setup(n,{emit:a}){let s=n,c=a,f=l(),h=l(null),S=t(s,`formData`),C=t(s,`isSubmitting`),{currentStep:w,currentStepConfig:E,progress:k,progressDisplayValue:j,currentStepDescription:M,isFirstStep:F,isLastStep:L,currentStepAutoAdvanceField:R,currentStepHasSingleRadioField:z,goToNextStep:B,goToPreviousStep:V}=ee({steps:s.steps,formData:S}
1);async function H(){if(!f.value)return!1;try{return await f.value.validate({silent:!0}),!0}catch{return!1}}async function U(){if(L.value){c(`submit`);return}B()}let{cancelAutoAdvance:G}=te({currentStep:w,currentStepConfig:E,currentStepAutoAdvanceField:R,currentStepHasSingleRadioField:z,formData:S,isSubmitting:C,canAdvance:H,onAdvance:U}),K=g(()=>{let e=E.value;if(!e||e.fields.length!==1)return null;let t=e.fields[0];return t&&[`text`,`email`,`tel`,`url`,`textarea`].includes(t.type)?t:null});async function q(){if(!K.value)return;await r();let e=K.value.name,t=`[name="${e}"] input, [name="${e}"] textarea, input[name="${e}"], textarea[name="${e}"]`;(h.value?.querySelector(t))?.focus()}p(E,()=>{q()},{immediate:!0});async function X(e){await U()}function Z(e){let t=e.errors?.[0];if(t?.id){let e=document.querySelector(`#${t.id}`);e?.focus(),e?.scrollIntoView({behavior:`smooth`,block:`center`})}}function Q(){G(),V()}return T(`Enter`,async e=>{let t=e.target;t.tagName===`INPUT`||t.tagName===`TEXTAREA`||(e.preventDefault(),!s.isSubmitting&&f.value&&await f.value.submit())}),T(`Backspace`,e=>{let t=e.target;t.tagName===`INPUT`||t.tagName===`TEXTAREA`||(e.preventDefault(),F.value||Q())}),(t,r)=>{let a=N,s=D,c=A,l=W,p=P,g=O,S=I;return i(),m(`div`,ne,[u(t.$slots,`aside`,{currentStep:_(w),currentStepConfig:_(E),currentStepHasSingleRadioField:_(z)}),d(`div`,re,[d(`div`,ie,[d(`div`,J,[d(`span`,Y,o(_(M)),1),d(`span`,null,o(Math.round(_(k)))+`%`,1)]),b(a,{"model-value":_(j)},null,8,[`model-value`])]),d(`div`,ae,[d(`div`,oe,[d(`h2`,se,o(_(E)?.headline),1),_(E)?.subheadline?(i(),m(`p`,ce,o(_(E)?.subheadline),1)):x(``,!0),_(z)?(i(),m(`div`,le,[b(s,{name:`lucide:keyboard`,class:`h-4 w-4`}),d(`span`,null,[r[3]||=e(` Press `,-1),b(c,null,{default:v(()=>[...r[0]||=[e(`A`,-1)]]),_:1}),r[4]||=e(` - `,-1),b(c,null,{default:v(()=>[...r[1]||=[e(`E`,-1)]]),_:1}),r[5]||=e(` to select or `,-1),b(c,null,{default:v(()=>[...r[2]||=[e(`Enter`,-1)]]),_:1}),r[6]||=e(` to continue `,-1)])])):x(``,!0)]),d(`div`,{ref_key:`formElementRef`,ref:h,class:`flex flex-1 flex-col`},[b(S,{ref_key:`formRef`,ref:f,schema:_(E)?.schema,state:n.formData,"validate-on":[`blur`,`change`],class:`flex flex-1 flex-col`,onSubmit:X,onError:Z},{default:v(()=>[b(l,{step:_(E),state:n.formData},null,8,[`step`,`state`]),n.submitError?(i(),y(p,{key:0,color:`error`,variant:`subtle`,title:n.submitError,class:`mt-4 lg:mt-6`},null,8,[`title`])):x(``,!0),d(`div`,ue,[!_(z)&&n.navigation?.keyboardHint?(i(),m(`div`,de,[d(`span`,null,[r[9]||=e(` Press `,-1),b(c,null,{default:v(()=>[...r[7]||=[e(`Enter`,-1)]]),_:1}),r[10]||=e(` to continue or `,-1),b(c,null,{default:v(()=>[...r[8]||=[e(`Backspace`,-1)]]),_:1}),r[11]||=e(` to go back `,-1)])])):x(``,!0),d(`div`,fe,[_(F)?x(``,!0):(i(),y(g,{key:0,type:`button`,variant:`outline`,size:`xl`,"leading-icon":`lucide:arrow-left`,class:`w-full justify-center lg:w-auto`,onClick:Q},{default:v(()=>[e(o(n.navigation?.backButtonLabel||`Back`),1)]),_:1})),b(g,{type:`submit`,loading:n.isSubmitting,size:`xl`,"trailing-icon":`lucide:arrow-right`,class:`w-full justify-center lg:w-auto`},{default:v(()=>[e(o(_(L)?n.navigation?.submitButtonLabel||`Submit`:n.navigation?.nextButtonLabel||`Next`),1)]),_:1},8,[`loading`])])])]),_:1},8,[`schema`,`state`])],512)])])])}}}),{__name:`FormsGuidedStepForm`}),Z={modal:{title:`Software Recommendation Quiz`,maxWidth:`max-w-5xl`,closable:!0,closeOnClickOutside:!1},leftPanel:{headline:`Find the Right Shop Software`,valueProps:[{icon:`lucide:check`,text:`Honest advice in 5 minutes`},{icon:`lucide:check`,text:`From people who've helped 400+ shops`},{icon:`lucide:check`,text:`No sales pitch. Just real recommendations`}],trustElementHeadline:`Why we ask:`},navigation:{backButtonLabel:`Back`,nextButtonLabel:`Next`,submitButtonLabel:`Get My Recommendation`,keyboardHint:`Press Enter to continue or Backspace to go back`},alreadySubmitted:{icon:`lucide:check-circle-2`,iconColor:`text-green-500`,headline:`You've Already Submitted!`,message:`We received your quiz submission and you should hear from us soon.`,subMessage:`Check your email (including spam folder) for your personalized software recommendation.`,closeButtonLabel:`Close`},intro:{headline:``,subheadline:``,description:``,valueProps:[],trustElement:{type:`text`,text:``},cta:{label:``,icon:``,size:`md`}},thankYou:{icon:`lucide:check-circle`,iconColor:`text-green-500`,headline:`We're on it!`,subheadline:`Your personalized recommendation is on the way!`,confirmation:`We'll review your answers and send a personalized recommendation to {email} within 24-48 hours.`,trustElement:{icon:`lucide:heart`,iconColor:`text-pink-400`,text:`We've helped 400+ shops find the right software. You're in good hands.`},nextSteps:{title:`What happens next:`,steps:[`We'll analyze your shop's needs`,`Match you with 1-2 software options that actually fit`,`Email you with honest pros/cons for each`,`If you want, we'll set up demos and send you our "what to ask" checklist`]},ctasHeadline:`While you wait, explore these resources:`,ctas:[{label:`Browse Software Reviews`,url:`/software`,variant:`outline`},{label:`Join Our Newsletter`,url:`/newsletter`,variant:`outline`}],note:`Check your spam folder if you don't see our email in the next 48 hours.`,resetButtonLabel:`Edit or redo quiz`,closeButtonLabel:`Close this window`},steps:[{id:`employee_count`,title:`Team Size`,description:`Step 1 of 9`,headline:`How many are in y
1our organization?`,subheadline:``,trustElement:{type:`box`,text:`Software needs vary dramatically based on shop size. A solo operation needs different tools than a 20-person team.`,variant:`info`},autoAdvance:!0,fields:[{name:`employeeCount`,type:`radio`,label:``,required:!0,layout:`vertical`,options:[{value:`Just me`,label:`Just me`},{value:`2-5 employees`,label:`2-5 employees`},{value:`6-15 employees`,label:`6-15 employees`},{value:`16-25 employees`,label:`16-25 employees`},{value:`25+ employees`,label:`25+ employees`}]}],schema:L({employeeCount:z([`Just me`,`2-5 employees`,`6-15 employees`,`16-25 employees`,`25+ employees`],{message:`Please select your team size`})})},{id:`annual_revenue`,title:`Revenue`,description:`Step 2 of 9`,headline:`What's your annual revenue?`,subheadline:``,trustElement:{type:`box`,text:`Your revenue helps us recommend software at the right price point and complexity level for your business stage.`,variant:`info`},autoAdvance:!0,fields:[{name:`annualRevenue`,type:`radio`,label:``,required:!0,layout:`vertical`,options:[{value:`Under $250K`,label:`Under $250K`},{value:`$250K - $750K`,label:`$250K - $750K`},{value:`$750K - $1.5M`,label:`$750K - $1.5M`},{value:`$1.5M - $3M`,label:`$1.5M - $3M`},{value:`$3M+`,label:`$3M+`}]}],schema:L({annualRevenue:z([`Under $250K`,`$250K - $750K`,`$750K - $1.5M`,`$1.5M - $3M`,`$3M+`],{message:`Please select your revenue range`})})},{id:`primary_business`,title:`Business Focus`,description:`Step 3 of 9`,headline:`What's your primary business focus?`,subheadline:``,trustElement:{type:`box`,text:`Different products require different features. Vehicle wrap shops need different tools than screen printers.`,variant:`info`},autoAdvance:!0,fields:[{name:`primaryBusiness`,type:`radio`,label:``,required:!0,layout:`vertical`,options:[{value:`Signs & Graphics`,label:`Signs & Graphics`},{value:`Vehicle Wraps & Graphics`,label:`Vehicle Wraps & Graphics`},{value:`Screen Printing / Apparel`,label:`Screen Printing / Apparel`},{value:`Wide Format Printing`,label:`Wide Format Printing`},{value:`Promotional Products`,label:`Promotional Products`}]}],schema:L({primaryBusiness:z([`Signs & Graphics`,`Vehicle Wraps & Graphics`,`Screen Printing / Apparel`,`Wide Format Printing`,`Promotional Products`],{message:`Please select your primary business focus`})})},{id:`production_model`,title:`Production`,description:`Step 4 of 9`,headline:`How do you handle production?`,subheadline:``,trustElement:{type:`box`,text:`If you outsource a lot, you need software that manages vendors well. If you do everything in-house, you need production scheduling.`,variant:`info`},autoAdvance:!0,fields:[{name:`productionModel`,type:`radio`,label:``,required:!0,layout:`vertical`,options:[{value:`All in-house`,label:`All in-house`},{value:`Mostly in-house`,label:`Mostly in-house`},{value:`Mix of both`,label:`Mix of both`},{value:`Mostly outsourced`,label:`Mostly outsourced`},{value:`All outsourced`,label:`All outsourced`}]}],schema:L({productionModel:z([`All in-house`,`Mostly in-house`,`Mix of both`,`Mostly outsourced`,`All outsourced`],{message:`Please select your production model`})})},{id:`biggest_challenge`,title:`Challenge`,description:`Step 5 of 9`,headline:`What's your #1 challenge right now?`,subheadline:``,trustElement:{type:`box`,text:`Your biggest pain point determines which software features matter most. We'll prioritize solutions that fix what's actually broken.`,variant:`info`},autoAdvance:!0,fields:[{name:`biggestChallenge`,type:`radio`,label:``,required:!0,layout:`vertical`,options:[{value:`Pricing jobs profitably`,label:`Pricing jobs profitably`},{value:`Tracking orders through production`,label:`Tracking orders through production`},{value:`Managing customer communication`,label:`Managing customer communication`},{value:`Too many spreadsheets`,label:`Too many spreadsheets`},{value:`Finding files & information`,label:`Finding files & information`}]}],schema:L({biggestChallenge:z([`Pricing jobs profitably`,`Tracking orders through production`,`Managing customer communication`,`Too many spreadsheets`,`Finding files & information`],{message:`Please select your biggest challenge`})})},{id:`current_software`,title:`Current Setup`,description:`Step 6 of 9`,headline:`What software are you using today?`,subheadline:``,trustElement:{type:`box`,text:`Knowing what you're using now helps us understand your starting point and suggest realistic migration paths.`,variant:`info`},fields:[{name:`currentSoftware`,type:`textarea`,label:``,required:!0,placeholder:`e.g., Excel, QuickBooks, shopVOX, Cyrious, or none`,helperText:`Enter "none" if you're not using any software`}],schema:L({currentSoftware:R().min(1,`Please tell us what you're using (or "none")`)})},{id:`monthly_budget`,title:`Budget`,description:`Step 7 of 9`,headline:`What can you invest monthly in software?`,subheadline:``,trustElement:{type:`box`,text:`We won't suggest $2K/month software if your budget is $300. Your budget helps us recommend realistic options.`,variant:`info`},autoAdvance:!0,fields:[{name:`monthlyBudget`,type:`radio`,label:``,required:!0,layout:`vertical`,options:[{value:`Under $200/month`,label:`Under $200/month`},{value:`$200 - $500/month`,label:`$200 - $500/month`},{value:`$500 - $1,000/month`,label:`$500 - $1,000/month`},{value:`$1,000 - $2,000/month`,label:`$1,000 - $2,000/month`},{value:`$2,000+/month`,label:`$2,000+/month`}]}],schema:L({monthlyBudget:z([`Under $200/month`,`$200 - $500/month`,`$500 - $1,000/month`,`$1,000 - $2,000/month`,`$2,000+/month`],{message:`Please select your budget range`})})},{id:`timeline`,title:`Timeline`,description:`Step 8 of 9`,headline:`When do you need a solution?`,subheadline:``,trustElement:{type:`box`,text:`Your timeline helps us prioritize our recommendations and follow-up a
1pproach.`,variant:`info`},autoAdvance:!0,fields:[{name:`timeline`,type:`radio`,label:``,required:!0,layout:`vertical`,options:[{value:`Just researching (6+ months)`,label:`Just researching (6+ months)`},{value:`Planning (3-6 months)`,label:`Planning (3-6 months)`},{value:`Need soon (1-3 months)`,label:`Need soon (1-3 months)`},{value:`Urgent (ASAP)`,label:`Urgent (ASAP)`}]}],schema:L({timeline:z([`Just researching (6+ months)`,`Planning (3-6 months)`,`Need soon (1-3 months)`,`Urgent (ASAP)`],{message:`Please select your timeline`})})},{id:`contact_info`,title:`Contact`,description:`Step 9 of 9`,headline:`How can we reach you?`,subheadline:`We'll send your personalized recommendation within 24-48 hours.`,trustElement:{type:`box`,text:`We hate spam too. We'll only email you once with your recommendation - no random email lists or sales pitches.`,variant:`success`},fields:[{name:`firstName`,type:`text`,label:`First name`,required:!0,placeholder:`John`},{name:`lastName`,type:`text`,label:`Last name`,required:!0,placeholder:`Smith`},{name:`email`,type:`email`,label:`Email`,required:!0,placeholder:`[email protected]`},{name:`shopName`,type:`text`,label:`Shop name`,required:!0,placeholder:`Acme Sign Shop`}],schema:L({firstName:R().min(2,`Please enter your first name`),lastName:R().min(2,`Please enter your last name`),email:R().email(`Please enter a valid email`),shopName:R().min(2,`Please enter your shop name`)}),submitButtonText:`Get My Recommendation`}]},Q={class:`min-h-[400px] overflow-y-auto lg:min-h-[600px]`},pe={key:0,class:`flex min-h-[400px] flex-col items-center justify-center p-8 text-center lg:min-h-[600px]`},me={class:`mb-4 text-3xl font-bold text-gray-900`},he={class:`mb-2 max-w-md text-lg text-gray-600`},ge={class:`mb-8 max-w-md text-sm text-gray-500`},_e={class:`flex flex-col justify-between bg-inverted p-6 text-white lg:w-2/5 lg:p-12`},ve={class:`mb-2 text-xl font-bold lg:mb-4 lg:text-3xl`},ye={key:0,class:`mt-8 hidden space-y-4 lg:block`},be={class:`text-base`},xe={key:0,class:`mt-4 lg:mt-0`},Se={class:`rounded-lg border border-white/20 bg-white/10 p-3 backdrop-blur-sm lg:p-4`},Ce={class:`flex items-start gap-2 lg:gap-3`},we={class:`mb-1 text-xs font-semibold text-white lg:text-sm`},Te={class:`text-xs text-indigo-100 lg:text-sm`},Ee={key:2,class:`flex min-h-[400px] flex-col lg:min-h-[600px] lg:flex-row`},De={class:`flex flex-col items-center justify-center bg-inverted p-6 text-center text-white lg:w-2/5 lg:p-12`},Oe={class:`mt-4 text-2xl font-bold lg:mt-6 lg:text-4xl`},ke={key:0,class:`mt-3 max-w-md text-sm text-indigo-100 lg:mt-4 lg:text-base`},Ae={key:1,class:`mt-6 max-w-md rounded-lg border border-white/20 bg-white/10 p-3 backdrop-blur-sm lg:mt-8 lg:p-4`},je={class:`flex items-start gap-2 lg:gap-3`},Me={class:`text-left text-xs text-indigo-100 lg:text-sm`},Ne={class:`flex flex-col p-6 lg:w-3/5 lg:p-12`},Pe={class:`mb-6 lg:mb-8`},$={class:`text-base text-gray-700 lg:text-xl`},Fe={class:`flex-1`},Ie={class:`mb-4 text-xl font-semibold text-gray-900 lg:text-2xl`},Le={class:`list-inside list-decimal space-y-3 text-sm text-gray-700 lg:text-base`},Re={class:`mt-8 border-t border-gray-200 pt-6 lg:mt-12 lg:pt-8`},ze={key:0,class:`mb-4 text-xs text-gray-600 lg:text-sm`},Be={class:`flex flex-col gap-3 sm:flex-row`},Ve={class:`mt-6 text-center text-xs text-gray-500 lg:text-sm`},He={class:`mt-4 flex flex-col items-center justify-center gap-3 sm:flex-row`},Ue=Object.assign(n({__name:`SimplifiedQuizModal`,props:{modelValue:{type:Boolean},sourcePage:{}},emits:[`update:modelValue`,`after:leave`],setup(t,{emit:n}){let r=t,c=n,u=g({get:()=>r.modelValue,set:e=>c(`update:modelValue`,e)}),{user:C,loggedIn:k}=M(),A=l(!1),j=l(!1),N=l(null),P=S(`bss_quiz_submitted`,{maxAge:3600*24*90,sameSite:`lax`}),F=l(!1),I={employeeCount:``,annualRevenue:``,primaryBusiness:``,productionModel:``,biggestChallenge:``,currentSoftware:``,monthlyBudget:``,timeline:``,firstName:``,lastName:``,email:``,shopName:``};function L(){return{...I}}let R=w(`simplified_quiz_data`,L(),{mergeDefaults:!0}),z=l(L()),B=l(0);T(`Escape`,e=>{e.preventDefault(),Z.modal.closable&&!A.value&&W()});async function V(){j.value=!0,N.value=null;try{let e={status:`new`,source:`software_recommendation_quiz`,form_data:{quiz_data:z.value,metadata:{source_page:r.sourcePage||window.location.href,referrer:document.referrer||`direct`,user_agent:navigator.userAgent,submitted_at:new Date().toISOString(),...k.value&&C.value?{user_id:C.value.id,user_email:C.value.email,authenticated:!0}:{authenticated:!1}}}};await $fetch(`/api/software-quiz/submit`,{method:`POST`,body:e}),P.value=`true`,R.value=L(),A.value=!0}catch(e){console.error(`Quiz submission failed:`,e),N.value=e?.data?.message||`Failed to submit. Please try again.`}finally{j.value=!1}}function H(){B.value++}function U(){P.value=null,F.value=!1,A.value=!1,N.value=null,R.value=L(),z.value=L(),H()}function W(){u.value=!1,setTimeout(()=>{H(),A.value=!1,N.value=null},300)}function G(){return!k.value||!C.value?{}:{firstName:C.value.first_name||``,lastName:C.value.last_name||``,email:C.value.email||``}}function K(){z.value={...L(),...G(),...R.value},H()}return p(u,e=>{e&&(F.value=P.value===`true`,!F.value&&K())}),p(z,e=>{R.value={...e}},{deep:!0}),(t,n)=>{let r=D,l=O,p=X,g=E;return i(),y(g,{open:_(u),"onUpdate:open":n[0]||=e=>f(u)?u.value=e:null,dismissible:_(Z).modal.closable,ui:{content:_(Z).modal.maxWidth},"onAfter:leave":n[1]||=e=>c(`after:leave`)},{content:v(()=>[d(`div`,Q,[_(F)?(i(),m(`div`,pe,[b(r,{name:_(Z).alreadySubmitted?.icon||`lucide:check-circle-2`,class:s([`mb-6 h-20 w-20`,_(Z).alreadySubmitted?.iconColor||`text-green-500`])},null,8,[`name`,`class`]),d(`h2`,me,o(_(Z).alreadySubmitted?.headline||`Already Submitted!`),1),d(`p`,he,o(_(Z).alreadySubmitted?.message||`We received your submission.`),1),d(`p`,ge,o(_(Z).alreadySubmitted?.subMessage||`Check your email for updates.`),1),b(l,{variant:`outline`,onClick:W},{default:v(()=>[e(o(_(Z).alreadySubmitted?.closeButtonLabel||`Close`),1)]),_:1})])):_(A)?(i(),m(`div`,Ee,[d(`div`,De,[b(r,{name:_(Z).thankYou.icon,class:s([`h-16 w-16 lg:h-24 lg:w-24`,_(Z).thankYou.iconColor])},null,8,[`name`,`class`]),d(`h2`,Oe,o(_(Z).thankYou.headline),1),_(Z).thankYou.subheadline?(i(),m(`p`,ke,o(_(Z).thankYou.subheadline),1)):x(``,!0),_(Z).thankYou.trustElement?(i(),m(`div`,Ae,[d(`div`,je,[b(r,{name:_(Z).thankYou.trustElement.icon,
1class:s([`mt-0.5 h-4 w-4 shrink-0 lg:h-5 lg:w-5`,_(Z).thankYou.trustElement.iconColor])},null,8,[`name`,`class`]),d(`p`,Me,o(_(Z).thankYou.trustElement.text),1)])])):x(``,!0)]),d(`div`,Ne,[d(`div`,Pe,[d(`p`,$,o(_(Z).thankYou.confirmation.replace(`{email}`,_(z).email||``)),1)]),d(`div`,Fe,[d(`h3`,Ie,o(_(Z).thankYou.nextSteps.title),1),d(`ol`,Le,[(i(!0),m(h,null,a(_(Z).thankYou.nextSteps.steps,(e,t)=>(i(),m(`li`,{key:t,class:`pl-2`},o(e),1))),128))])]),d(`div`,Re,[_(Z).thankYou.ctasHeadline?(i(),m(`p`,ze,o(_(Z).thankYou.ctasHeadline),1)):x(``,!0),d(`div`,Be,[(i(!0),m(h,null,a(_(Z).thankYou.ctas,(t,n)=>(i(),y(l,{key:n,variant:t.variant,size:`lg`,to:t.url,class:`flex-1`,onClick:W},{default:v(()=>[e(o(t.label),1)]),_:2},1032,[`variant`,`to`]))),128))]),d(`p`,Ve,o(_(Z).thankYou.note),1),d(`div`,He,[b(l,{variant:`outline`,size:`sm`,onClick:U},{default:v(()=>[e(o(_(Z).thankYou.resetButtonLabel||`Edit or redo quiz`),1)]),_:1}),d(`button`,{class:`text-xs text-gray-500 underline transition-colors hover:text-gray-700 lg:text-sm`,onClick:W},o(_(Z).thankYou.closeButtonLabel||`Close this window`),1)])])])])):(i(),y(p,{key:_(B),steps:_(Z).steps,"form-data":_(z),"is-submitting":_(j),"submit-error":_(N),navigation:_(Z).navigation,onSubmit:V},{aside:v(({currentStepConfig:e})=>[d(`div`,_e,[d(`div`,null,[d(`h2`,ve,o(_(Z).leftPanel?.headline||`Complete the Survey`),1),_(Z).leftPanel?.valueProps&&_(Z).leftPanel.valueProps.length>0?(i(),m(`div`,ye,[(i(!0),m(h,null,a(_(Z).leftPanel.valueProps,(e,t)=>(i(),m(`div`,{key:t,class:`flex items-start gap-3`},[b(r,{name:e.icon,class:`mt-1 h-6 w-6 shrink-0 text-green-400`},null,8,[`name`]),d(`span`,be,o(e.text),1)]))),128))])):x(``,!0)]),e?.trustElement?(i(),m(`div`,xe,[d(`div`,Se,[d(`div`,Ce,[b(r,{name:`lucide:lightbulb`,class:`mt-0.5 h-4 w-4 shrink-0 text-yellow-400 lg:h-5 lg:w-5`}),d(`div`,null,[d(`h3`,we,o(_(Z).leftPanel?.trustElementHeadline||`Why we ask:`),1),d(`p`,Te,o(e?.trustElement?.text),1)])])])])):x(``,!0)])]),_:1},8,[`steps`,`form-data`,`is-submitting`,`submit-error`,`navigation`]))])]),_:1},8,[`open`,`dismissible`,`ui`])}}}),{__name:`FormsSimplifiedQuizModal`});export{Ue as t}; 2//# chunkId=01a0edbb-388a-76b1-a741-b740bf849257
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.