1import{c as v,a as y,j as e}from"./pages/(auth)/_layout-fSOULLBw.js";import{w as j,I as w,B as i}from"./pages/(auth)/forgot-password-CtaxQ-XW.js";import{m as C}from"./pages/admin/cost-analysis/index-DwK7rcRW.js";import{k as P,X as S}from"./pages/(auth)/login-DrXQhAYv.js";import"./pages/admin/_layout-BlZhNhrP.js";import"./pages/admin/benchmarks/index-C-NNkdkz.js";import"./pages/admin/category/index-BwjE5ygG.js";const k={brandName:"",brandWebsite:"",productCategory:"",statementOfIdentity:"",tagLine:"",keyProductLines:"",products:"",productMostExcitedAbout:"",productMostConcernedAbout:"",brandHqRegion:"",launchYear:"",pricePointPerUnit:"",primaryDistributionChannels:"",keyCustomers:""},f=[{id:"brandName",label:"Brand Name",placeholder:"e.g. Juni Organic Tea"},{id:"brandWebsite",label:"Brand Website",placeholder:"e.g. www.drinkjuni.com"},{id:"productCategory",label:"Product Category",placeholder:"e.g. Organic RTD Tea, Functional Water",multiline:!0},{id:"statementOfIdentity",label:"Statement of Identity (SOI)",placeholder:"e.g. Sparkling Tea with Adaptogens"},{id:"tagLine",label:"Tag Line",placeholder:"e.g. for a happy mind"},{id:"keyProductLines",label:"Key Product Lines",placeholder:"e.g. Juni Adaptogen Sparkling Tea with Caffeine",multiline:!0},{id:"products",label:"Products",placeholder:"e.g. Lemonade Iced Tea, Peach, Raspberry",multiline:!0},{id:"productMostExcitedAbout",label:"Product Most Excited About",placeholder:"e.g. Lemonade Iced Tea"},{id:"productMostConcernedAbout",label:"Product Most Concerned About",placeholder:"e.g. Lemon Zest, Decaffeinated line"},{id:"brandHqRegion",label:"Brand HQ / Region",placeholder:"e.g. USA (National)"},{id:"launchYear",label:"Launch Year",placeholder:"e.g. 2023"},{id:"pricePointPerUnit",label:"Price Point (per unit)",placeholder:"e.g. $2.99 - $3.49"},{id:"primaryDistributionChannels",label:"Primary Distribution Channel(s)",placeholder:"e.g. Natural, DTC, Grocery, Mass & Club",multiline:!0},{id:"keyCustomers",label:"Key Customers",placeholder:"e.g. Whole Foods Market, Amazon, Sprouts",multiline:!0}];function L(l){return f.map(s=>{const n=l[s.id].trim();return n?`${s.label}: ${n}`:""}).filter(Boolean).join(` 2`)}function F({isOpen:l,onClose:u,onStart:s}){const n=v(),[r,d]=y.useState("intro"),[o,x]=y.useState(k),c=()=>{d("intro"),x(k),u()},N=()=>{window.location.pathname==="/main/gurus"&&n("/main",{replace:!0}),s(L(o)),c()},h=(a,t)=>{a==="launchYear"&&!/^\d*$/.test(t)||x(m=>({...m,[a]:t}))};if(!l)return null;const b="text-sm border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-white focus:ring-2 focus:ring-blue-500";return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-2",children:e.jsxs("div",{className:"relative w-full max-w-3xl max-h-[90vh] bg-white dark:bg-gray-900 rounded-2xl shadow-2xl overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between p-5 border-b border-gray-200 dark:border-gray-800",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-blue-600",children:e.jsx(P,{size:18,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"Social Listening Tool"}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:"Capture brand inputs for social listening and consumer analysis"})]})]}),e.jsx("button",{type:"button",onClick:c,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg transition",children:e.jsx(S,{className:"size-5 text-gray-500 dark:text-gray-400"})})]}),e.jsx("div",{className:"flex items-center gap-2 px-5 pt-4 pb-1",children:["intro","questions"].map((a,t)=>{const m=["Intro","Fill Details"],p=r===a,g=r==="questions"&&a==="intro";return e.jsxs("div",{className:"flex items-center",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:j("w-5 h-5 rounded-full flex items-center justify-center text-[10px] font-bold",p?"bg-blue-600 text-white":g?"bg-green-700 text-white":"bg-gray-200 dark:bg-gray-700 text-gray-500"),children:g?"â":t+1}),e.jsx("span",{className:j("text-xs font-medium",p?"text-blue-600 dar
2k:text-blue-400":g?"text-green-600":"text-gray-400"),children:m[t]})]}),t<1&&e.jsx("div",{className:"w-6 h-px bg-gray-200 dark:bg-gray-700 mx-2"})]},a)})}),e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[r==="intro"&&e.jsxs("div",{className:"space-y-5 p-5",children:[e.jsxs("div",{className:"rounded-xl border border-gray-200 dark:border-gray-800 bg-gradient-to-br from-blue-50 to-white dark:from-blue-900/20 dark:to-gray-900 p-5",children:[e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white mb-2",children:"What this Guru needs"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed",children:"Enter the brand and product context from your intake sheet so the Social Listening Tool can analyze conversation themes, sentiment, audience language, and market signals with the right category framing."})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 p-4",children:[e.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-2 text-sm",children:"Brand details"}),e.jsx("ul",{className:"space-y-1.5 text-sm text-gray-600 dark:text-gray-300",children:["Brand name and website","Category, SOI, and tagline","HQ, region, launch year, and price point"].map(a=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("div",{className:"mt-1.5 size-1.5 rounded-full bg-blue-600 flex-shrink-0"}),e.jsx("span",{children:a})]},a))})]}),e.jsxs("div",{className:"rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 p-4",children:[e.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-2 text-sm",children:"Product details"}),e.jsx("ul",{className:"space-y-1.5 text-sm text-gray-600 dark:text-gray-300",children:["Key product lines and products","Excited and concerned product focus","Distribution channels and key customers"].map(a=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("div",{className:"mt-1.5 size-1.5 rounded-full bg-green-600 flex-shrink-0"}),e.jsx("span",{children:a})]},a))})]})]})]}),r==="questions"&&e.jsxs("div",{className:"p-5 space-y-4",children:[f.map(a=>e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[190px_1fr] gap-2 sm:gap-3 sm:items-start",children:[e.jsx("label",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 sm:pt-2",children:a.label}),a.multiline?e.jsx(C,{value:o[a.id],onChange:t=>h(a.id,t.target.value),placeholder:a.placeholder,className:`min-h-20 resize-y ${b}`}):e.jsx(w,{type:"text",value:o[a.id],onChange:t=>h(a.id,t.target.value),inputMode:a.id==="launchYear"?"numeric":void 0,pattern:a.id==="launchYear"?"\\d*":void 0,placeholder:a.placeholder,className:`h-9 ${b}`})]},a.id)),e.jsx("div",{className:"rounded-lg border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-900/20 p-4",children:e.jsx("p",{className:"text-sm text-amber-800 dark:text-amber-200",children:"These fields are optional. You can also add more details in chat before starting the analysis."})})]})]}),e.jsx("div",{className:"flex items-center justify-between gap-4 p-5 border-t border-gray-200 dark:border-gray-800 bg-gray-50 dark:bg-gray-900/50",children:r==="intro"?e.jsxs(e.Fragment,{children:[e.jsx(i,{type:"button",variant:"outline",onClick:c,className:"dark:!text-white",children:"Cancel"}),e.jsx(i,{type:"button",onClick:()=>d("questions"),className:"px-8",children:"Next"})]}):e.jsxs(e.Fragment,{children:[e.jsx(i,{type:"button",variant:"outline",onClick:()=>d("intro"),className:"dark:!text-white",children:"Back"}),e.jsx(i,{type:"button",onClick:N,className:"px-8",children:"Start Analysis"})]})})]})})}export{F as default}; 3//# sourceMappingURL=index-CLNLA6q6.js.map
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.