1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[627],{4792:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]])},5881:(e,t,n)=>{"use strict";n.d(t,{x:()=>s});var a=n(37876),i=n(89461),r=n(56044);let s=(0,i.R)(function(e,t){let{templateAreas:n,gap:i,rowGap:s,columnGap:o,column:l,row:d,autoFlow:c,autoRows:h,templateRows:u,autoColumns:m,templateColumns:p,...b}=e;return(0,a.jsx)(r.B.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:s,gridColumnGap:o,gridAutoColumns:m,gridColumn:l,gridRow:d,gridAutoFlow:c,gridAutoRows:h,gridTemplateRows:u,gridTemplateColumns:p},...b})});s.displayName="Grid"},9560:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]])},14903:(e,t,n)=>{"use strict";n.d(t,{C3:()=>a,IW:()=>r,QK:()=>s,pC:()=>i});let a="Sosh AI",i="https://outlook.office365.com/owa/calendar/[email protected]/bookings/",r="260px",s="68px"},15682:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]])},18650:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]])},24747:(e,t,n)=>{"use strict";n.d(t,{c:()=>d});var a=n(37876),i=n(29185),r=n(75255),s=n(89461),o=n(66394),l=n(56044);let d=(0,s.R)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:s,borderTopWidth:d,borderRightWidth:c,borderWidth:h,borderStyle:u,borderColor:m,...p}=(0,o.V)("Divider",e),{className:b,orientation:g="horizontal",__css:f,...x}=(0,i.M)(e);return(0,a.jsx)(l.B.hr,{ref:t,"aria-orientation":g,...x,__css:{...p,border:"0",borderColor:m,borderStyle:u,...{vertical:{borderLeftWidth:n||c||h||"1px",height:"100%"},horizontal:{borderBottomWidth:s||d||h||"1px",width:"100%"}}[g],...f},className:(0,r.cx)("chakra-divider",b)})});d.displayName="Divider"},28419:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},32257:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},41180:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},49460:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var a=n(72402);let i={get:"/api/v1/brand-dna",status:"/api/v1/brand-dna/status",submit:"/api/v1/brand-dna",updateSummary:"/api/v1/brand-dna/summary",complete:"/api/v1/brand-dna/complete",extractFromWebsite:"/api/v1/brand-dna/extract-from-website"},r={async get(){let{data:e}=await a.Ay.get(i.get);return e},async getStatus(){let{data:e}=await a.Ay.get(i.status);return e},async submit(e){let{data:t}=await a.Ay.post(i.submit,e,{timeout:12e4});return t},async updateSummary(e){let{data:t}=await a.Ay.patch(i.updateSummary,{summary:e});return t},async complete(){let{data:e}=await a.Ay.post(i.complete);return e},async extractFromWebsite(e){let{data:t}=await a.Ay.post(i.extractFromWebsite,{url:e},{timeout:9e4});return t}}},53038:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},64372:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>G});var a=n(37876),i=n(14232),r=n(5377),s=n(38061),o=n(59803),l=n(60851),d=n(89099),
1c=n(80192),h=n(67914),u=n(49460),m=n(89635),p=n(39955),b=n(79736),g=n(91921),f=n(51362),x=n(82736),y=n(96491),j=n(38890),v=n(24747),w=n(28419),S=n(14903);function k(e){let{onSubmitUrl:t,onSkip:n,isLoading:r}=e,[l,d]=(0,i.useState)(""),c=(0,s.dU)("slate.50","surface.900"),h=(0,s.dU)("white","surface.800"),u=(0,s.dU)("slate.200","surface.600"),m=(0,s.dU)("slate.900","slate.50"),k=(0,s.dU)("slate.600","slate.300"),C=(0,s.dU)("slate.400","slate.500"),A=(0,s.dU)("brand.600","brand.400"),z=(0,s.dU)("slate.100","surface.700"),U=(0,s.dU)(.04,.03),E=l.trim(),W=E.length>0&&!r,F=()=>{W&&t(E)};return(0,a.jsxs)(p.a,{minH:"100vh",bg:c,position:"relative",children:[(0,a.jsx)(p.a,{position:"absolute",inset:0,opacity:U,backgroundImage:"radial-gradient(circle, currentColor 1px, transparent 1px)",backgroundSize:"28px 28px",pointerEvents:"none"}),(0,a.jsxs)(p.a,{position:"relative",zIndex:1,maxW:"960px",mx:"auto",px:{base:4,md:6},py:{base:8,md:10},children:[(0,a.jsxs)(o.s,{align:"center",justify:"space-between",mb:2,children:[(0,a.jsxs)(b.z,{spacing:2.5,children:[(0,a.jsx)(o.s,{w:9,h:9,bg:A,borderRadius:"xl",align:"center",justify:"center",boxShadow:"brand-glow",children:(0,a.jsx)("img",{src:"/icons/sosh-ai-mustard-animated.svg",alt:"Sosh AI",width:"18",height:"18"})}),(0,a.jsx)(g.E,{fontFamily:"heading",fontSize:"lg",fontWeight:"extrabold",color:m,letterSpacing:"-0.03em",children:S.C3})]}),(0,a.jsx)(g.E,{fontFamily:"heading",fontSize:"xs",fontWeight:"semibold",color:C,children:"Step 1 of 3 \xb7 Brand DNA"})]}),(0,a.jsx)(p.a,{h:"5px",bg:z,borderRadius:"full",overflow:"hidden",mb:{base:12,md:16},children:(0,a.jsx)(p.a,{h:"full",w:"14%",bg:A,borderRadius:"full"})}),(0,a.jsxs)(f.T,{spacing:0,textAlign:"center",maxW:"620px",mx:"auto",children:[(0,a.jsx)(o.s,{w:"66px",h:"66px",bg:A,borderRadius:"19px",align:"center",justify:"center",mb:7,boxShadow:"brand-glow",children:(0,a.jsx)("img",{src:"/icons/sosh-ai-mustard-animated.svg",alt:"Sosh AI",width:"34",height:"34"})}),(0,a.jsx)(x.D,{fontFamily:"heading",fontSize:{base:"3xl",md:"4xl"},fontWeight:"extrabold",color:m,letterSpacing:"-0.02em",lineHeight:"1.1",mb:4,children:"Tell us what you do"}),(0,a.jsx)(g.E,{fontFamily:"body",fontSize:{base:"md",md:"lg"},color:k,maxW:"500px",mb:9,children:"Drop in your business or personal website to help Sosh understand what you do."}),(0,a.jsx)(p.a,{w:"full",maxW:"520px",mb:4,children:(0,a.jsx)(y.p,{value:l,onChange:e=>d(e.target.value),onKeyDown:e=>{"Enter"===e.key&&F()},placeholder:"yourbusiness.com",size:"lg",textAlign:"center",bg:h,borderWidth:"1.5px",borderColor:u,borderRadius:"xl",fontFamily:"body",color:m,_placeholder:{color:C},_focusVisible:{borderColor:A,boxShadow:"0 0 0 3px rgba(13,155,132,0.15)"}})}),(0,a.jsx)(j.$,{onClick:F,isDisabled:!W,isLoading:r,colorScheme:"brand",size:"lg",w:"full",maxW:"520px",h:14,fontFamily:"heading",fontWeight:"semibold",borderRadius:"xl",rightIcon:(0,a.jsx)(w.A,{size:18}),children:"Proceed"}),(0,a.jsxs)(b.z,{w:"full",maxW:"520px",spacing:3.5,my:5,color:C,children:[(0,a.jsx)(v.c,{borderColor:u}),(0,a.jsx)(g.E,{fontFamily:"heading",fontSize:"xs",fontWeight:"semibold",letterSpacing:"0.04em",textTransform:"uppercase",children:"or"}),(0,a.jsx)(v.c,{borderColor:u})]}),(0,a.jsx)(j.$,{onClick:n,isDisabled:r,variant:"outline",size:"md",fontFamily:"heading",fontWeight:"semibold",borderWidth:"1.5px",borderColor:u,color:k,borderRadius:"xl",_hover:{borderColor:C,bg:h},children:"I don't have a website"})]})]})]})}function C(e){let{title:t="Reading your website",messages:n=m.wC}=e,[r,l]=(0,i.useState)(0),d=(0,s.dU)("slate.50","surface.900"),c=(0,s.dU)("brand.600","brand.400"),h=(0,s.dU)("slate.900","slate.50"),u=(0,s.dU)("slate.600","slate.300"),y=(0,s.dU)("slate.100","surface.700"),j=(0,s.dU)(.04,.03);return(0,i.useEffect)(()=>{let e=setInterval(()=>{l(e=>(e+1)%n.length)},3e3);return()=>clearInterval(e)},[n.length]),(0,a.jsxs)(o.s,{minH:"100vh",bg:d,align:"center",justify:"center",direction:"column",position:"relative",children:[(0,a.jsx)(p.a,{position:"absolute",inset:0,opacity:j,backgroundImage:"radial-gradient(circle, currentColor 1px, transparent 1px)",backgroundSize:"28px 28px",pointerEvents:"none"}),(0,a.jsxs)(f.T,{spacing:8,position:"relative",zIndex:1,children:[(0,a.jsx)(o.s,{w:16,h:16,bg:c,borderRadius:"2xl",align:"center",justify:"center",boxShadow:"brand-glow",children:(0,a.jsx)("img",{src:"/icons/sosh-ai-mustard-animated.svg",alt:"Sosh AI",width:"28",height:"28"})}),(0,a.jsxs)(f.T,{spacing:3,children:[(0,a.jsx)(x.D,{fontFamily:"heading",fontSize:"2xl",fontWeight:"bold",color:h,textAlign:"center",children:t}),(0,a.jsx)(g.E,{fontFamily:"body",fontSize:"lg",color:u,textAlign:"center",minH:"28px",children:n[r]})]}),(0,a.jsxs)(f.T,{spacing:3,w:"320px",children:[(0,a.jsx)(p.a,{w:"full",h:"8px",bg:y,borderRadius:"full",overflow:"hidden",children:(0,a.jsx)(p.a,{h:"full",bg:c,borderRadius:"full",sx:{animation:"shimmer 2s infinite","@keyframes shimmer":{"0%":{width:"20%",marginLeft:"0%"},"50%":{width:"60%",marginLeft:"20%"},"100%":{width:"20%",marginLeft:"80%"}}}})}),(0,a.jsx)(b.z,{spacing:1.5,children:n.map((e,t)=>(0,a.jsx)(p.a,{w:"6px",h:"6px",bg:c,borderRadius:"full",opacity:r===t?1:.3,transition:"opacity 0.3s"},t))})]})]})]})}var A=n(18387),z=n(82285),U=n(99430),E=n(55075),W=n(88992),F=n(138
110),M=n(53038),R=n(93784),I=n(32257);let O={coreEssence:"",dreamClient:"",deliveryMechanisms:[],messyBefore:"",dreamAfter:"",brandVibe:"",unpopularOpinion:"",contentStyles:[],contentStylesOther:""};function T(e){let{heading:t,help:n,confidenceLevel:r,showChip:l,fields:d,defaultEditing:c,onResolve:h,read:u,edit:m}=e,{trigger:f,getValues:x,setValue:y}=(0,W.xW)(),[v,w]=(0,i.useState)(c),S=(0,i.useRef)({}),k=(0,s.dU)("white","surface.800"),C=(0,s.dU)("slate.200","surface.600"),z=(0,s.dU)("slate.400","slate.400"),U=(0,s.dU)("amber.400","amber.400"),E=(0,s.dU)("brand.500","brand.400"),F=(0,s.dU)("slate.900","slate.50"),R=(0,s.dU)("slate.500","slate.500"),I=(0,s.dU)("brand.600","brand.400"),O=(0,s.dU)("slate.200","surface.600"),T=(0,s.dU)("slate.600","slate.300"),B="low"===r,V=async()=>{await f(d)&&(w(!1),null==h||h(d))};return(0,a.jsxs)(p.a,{bg:k,border:"1px solid",borderColor:v?E:B?U:C,borderRadius:"2xl",p:{base:4,md:5},boxShadow:v?"0 0 0 3px rgba(13,155,132,0.12)":void 0,transition:"border-color 0.2s",_hover:v?void 0:{borderColor:B?U:z},children:[(0,a.jsxs)(o.s,{align:"flex-start",justify:"space-between",gap:3,mb:3,children:[(0,a.jsxs)(p.a,{children:[(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"bold",fontSize:"md",color:F,children:t}),(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"medium",fontSize:"xs",color:R,mt:.5,children:n})]}),l&&(0,a.jsx)(L,{state:v?"editing":B?"flagged":"confirmed"})]}),v?(0,a.jsxs)(a.Fragment,{children:[m,(0,a.jsxs)(b.z,{justify:"flex-end",spacing:2.5,mt:3,children:[(0,a.jsx)(j.$,{onClick:()=>{d.forEach(e=>{let t=S.current[e];y(e,t)}),w(!1)},variant:"outline",size:"sm",fontFamily:"heading",fontWeight:"semibold",borderColor:O,color:T,borderRadius:"lg",children:"Cancel"}),(0,a.jsx)(j.$,{onClick:V,colorScheme:"brand",size:"sm",fontFamily:"heading",fontWeight:"semibold",borderRadius:"lg",children:"Save"})]})]}):(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsx)(o.s,{justify:"flex-end",mt:3,children:(0,a.jsxs)(b.z,{as:"button",type:"button",spacing:1.5,onClick:()=>{let e=x();S.current=d.reduce((t,n)=>({...t,[n]:e[n]}),{}),w(!0)},color:I,fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",_hover:{opacity:.8},children:[(0,a.jsx)(A.I,{as:M.A,boxSize:3.5}),(0,a.jsx)(g.E,{children:"Edit"})]})})]})]})}function L(e){let{state:t}=e,n=(0,s.dU)("brand.50","brand.900"),i=(0,s.dU)("brand.600","brand.400"),r=(0,s.dU)("amber.50","amber.900"),o=(0,s.dU)("amber.600","amber.400"),l=(0,s.dU)("slate.100","surface.700"),d=(0,s.dU)("slate.600","slate.300"),c="flagged"===t?{bg:r,color:o,icon:R.A,label:"Sosh AI guessed, double-check"}:"editing"===t?{bg:l,color:d,icon:M.A,label:"Editing"}:{bg:n,color:i,icon:I.A,label:"Confirmed"};return(0,a.jsxs)(b.z,{spacing:1,bg:c.bg,color:c.color,px:2.5,py:1,borderRadius:"full",flexShrink:0,children:[(0,a.jsx)(A.I,{as:c.icon,boxSize:3}),(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"xs",whiteSpace:"nowrap",children:c.label})]})}function B(e){let{value:t}=e,n=(0,s.dU)("slate.700","slate.300"),i=(0,s.dU)("slate.400","slate.500"),r=(null!=t?t:"").trim();return(0,a.jsx)(g.E,{fontFamily:"body",fontSize:"md",lineHeight:"1.58",color:r?n:i,children:r||"Not filled in yet. Click Edit to add this."})}function V(e){var t;let{initialValues:n,confidence:r,onSubmit:l,isSubmitting:d,firstName:c}=e,h=(0,W.mN)({resolver:(0,F.u)(m.ss),defaultValues:{...O,...n}}),{handleSubmit:u,watch:v,control:w,register:k,formState:{errors:C}}=h,M=v(),I=!!r,[L,V]=(0,i.useState)(()=>new Set),Y=e=>V(t=>{let n=new Set(t);return e.forEach(e=>n.add(e)),n}),P=(0,s.dU)("slate.50","surface.900"),G=(0,s.dU)("slate.900","slate.50"),q=(0,s.dU)("slate.600","slate.300"),$=(0,s.dU)("slate.400","slate.500"),X=(0,s.dU)("brand.600","brand.400"),K=(0,s.dU)("slate.100","surface.700"),Z=(0,s.dU)(.04,.03),J=(0,s.dU)("amber.50","amber.900"),Q=(0,s.dU)("amber.200","amber.700"),ee=(0,s.dU)("amber.700","amber.400"),et=(0,s.dU)("red.500","red.300"),en=(0,s.dU)("slate.50","surface.900"),ea=e=>{if(r)return L.has(e)?"high":r[e]},ei=r?Object.keys(r).filter(e=>"low"===ea(e)).length:0,er=r?"low"===ea("messyBefore")||"low"===ea("dreamAfter")?"low":"high":void 0;return(0,a.jsx)(W.Op,{...h,children:(0,a.jsxs)(p.a,{minH:"100vh",bg:P,position:"relative",pb:"120px",children:[(0,a.jsx)(p.a,{position:"absolute",inset:0,opacity:Z,backgroundImage:"radial-gradient(circle, currentColor 1px, transparent 1px)",backgroundSize:"28px 28px",pointerEvents:"none"}),(0,a.jsxs)(p.a,{as:"form",onSubmit:u(l),position:"relative",zIndex:1,maxW:"760px",mx:"auto",px:{base:4,md:6},py:{base:8,md:10},children:[(0,a.jsxs)(o.s,{align:"center",justify:"space-between",mb:2.5,children:[(0,a.jsxs)(b.z,{spacing:2.5,children:[(0,a.jsx)(o.s,{w:9,h:9,bg:X,borderRadius:"xl",align:"center",justify:"center",boxShadow:"brand-glow",children:(0,a.jsx)("img",{src:"/icons/sosh-ai-mustard-animated.svg",alt:"Sosh AI",width:"18",height:"18"})}),(0,a.jsx)(g.E,{fontFamily:"heading",fontSize:"lg",fontWeight:"extrabold",color:G,letterSpacing:"-0.03em",children:S.C3})]}),(0,a.jsx)(g.E,{fontFamily:"heading",fontSize:"xs",fontWeight:"semibold",color:$,children:"Step 2 of 3 \xb7 Brand DNA"})]}),(0,a.jsx)(p.a,{h:"5px",bg:K,borderRadius:"full",overflow:"hidden",mb:8,children:(0,a.jsx)(p.a,{h:"full",w:"66%",bg:X,borderRadius:"full"})}),(0,a.jsxs)(x.D,{fontFamily:"heading",fontSize:{base:"2xl",md:"3xl"},fontWeight:"extrabold",color:G,letterSpacing:"-0.02em",lineHeight:"1.12",mb:3,children:["Here's your Brand DNA",c?", ".concat(c):""]}),(0,a.jsx)(g.E,{fontFamily:"body",fontSize:"md",lineHeight:"1.55",color:q,mb:5,children:I?"Sosh AI read your website and drafted these seven answers. Read them over, tweak anything that is off, and confirm when it feels right.":"Fill in these seven answers about your brand. Sosh AI will use them to craft your summary and content strategy."}),ei>0&&(0,a.jsxs)(b.z,{spacing:2.5,bg:J,border:"1px solid",borderColor:Q,borderRadius:"xl",px:4,py:3,mb:7,color:ee,children:[(0,a.jsx)(A.I,{as:R.A,boxSize:4,flexShrink:0}),(0,a.jsxs)(g.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",children:[ei," ",1===ei?"answer needs":"answers need"," a quick look. Sosh AI was not fully sure about ",1===ei?"that one":"those","."]})]}),(0,a.jsxs)(f.T,{align:"stretch",spacing:4,children:[(0,a.jsx)(T,{heading:m.LU.coreEssence.heading,help:m.LU.coreEssence.help,confidenceLevel:ea("coreEssence"),showChip:I,fields:["coreEssence"],defaultEditing:!I,onResolve:Y,read:(0,a.jsx)(B,{value:M.coreEssence}),edit:(0,a.jsxs)(p.a,{children:[(0,a.jsx)(z.T,{...k("coreEssence"),placeholder:"What your business does, and the problem it solves...",rows:3}),C.coreEssence&&(0,a.jsx)(g.E,{fontSize:"xs",color:et,mt:1.5,children:C.coreEssence.message})]})}),(0,a.jsx)(T,{heading:m.LU.dreamClient.heading,help:m.LU.dreamClient.help,confidenceLevel:ea("dreamClient"),showChip:I,fields:["dreamClient"],defaultEditing:!I,onResolve:Y,read:(0,a.jsx)(B,{value:M.dreamClient}),edit:(0,a.jsxs)(p.a,{children:[(0,a.jsx)(z.T,{...k("dreamClient"),placeholder:"Who you are for, and their biggest frustration...",rows:3}),C.dreamClient&&(0,a.jsx)(g.E,{fontSize:"xs",color:et,mt:1.5,children:C.dreamClient.message})]})}),(0,a.jsx)(T,{heading:m.LU.deliveryMechanisms.heading,help:m.LU.deliveryMechanisms.help,confidenceLevel:ea("deliveryMechanisms"),showChip:I,fields:["deliveryMechanisms"],defaultEditing:!I,onResolve:Y,read:(0,a.jsx)(o.s,{flexWrap:"wrap",gap:2,children:m.wB.map(e=>{let{icon:t,label:n}=e;return(0,a.jsx)(H,{icon:t,label:n,selected:(M.deliveryMechanisms||[]).includes(n)},n)})}),edit:(0,a.jsxs)(p.a,{children:[(0,a.jsx)(W.xI,{name:"deliveryMechanisms",control:w,render:e=>{let{field:t}=e;return(0,a.jsx)(o.s,{flexWrap:"wrap",gap:3,children:m.wB.map(e=>{let{icon:n,label:i}=e,r=t.value.includes(i);return(0,a.jsx)(D,{icon:n,label:i,isSelected:r,onClick:()=>{r?t.onChange(t.value.filter(e=>e!==i)):t.value.length<3&&t.onChange([...t.value,i])}},i)})})}}),C.deliveryMechanisms&&(0,a.jsx)(g.E,{fontSize:"xs",color:et,mt:2,children:C.deliveryMechanisms.message})]})}),(0,a.jsx)(T,{heading:m.LU.transformation.heading,help:m.LU.transformation.help,confidenceLevel:er,showChip:I,fields:["messyBefore","dreamAfter"],defaultEditing:!I,onResolve:Y,read:(0,a.jsxs)(U.r,{columns:{base:1,md:2},spacing:4,children:[(0,a.jsxs)(p.a,{children:[(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"xs",color:$,mb:1.5,children:"The Messy Before"}),(0,a.jsx)(B,{value:M.messyBefore})]}),(0,a.jsxs)(p.a,{children:[(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"xs",color:$,mb:1.5,children:"The Dream After"}),(0,a.jsx)(B,{value:M.dreamAfter})]})]}),edit:(0,a.jsxs)(U.r,{columns:{base:1,md:2},spacing:4,children:[(0,a.jsxs)(p.a,{children:[(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",color:G,mb:2,children:"The Messy Before"}),(0,a.jsx)(z.T,{...k("messyBefore"),placeholder:"What life looks like before your solution...",rows:3}),C.messyBefore&&(0,a.jsx)(g.E,{fontSize:"xs",color:et,mt:1.5,children:C.messyBefore.message})]}),(0,a.jsxs)(p.a,{children:[(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",color:G,mb:2,children:"The Dream After"}),(0,a.jsx)(z.T,{...k("dreamAfter"),placeholder:"What life looks like after your transformation...",rows:3}),C.dreamAfter&&(0,a.jsx)(g.E,{fontSize:"xs",color:et,mt:1.5,children:C.dreamAfter.message})]})]})}),(0,a.jsx)(T,{heading:m.LU.brandVibe.heading,help:m.LU.brandVibe.help,confidenceLevel:ea("brandVibe"),showChip:I,fields:["brandVibe"],defaultEditing:!I,onResolve:Y,read:(0,a.jsx)(N,{value:M.brandVibe}),edit:(0,a.jsxs)(p.a,{children:[(0,a.jsx)(W.xI,{name:"brandVibe",control:w,render:e=>{let{field:t}=e;return(0,a.jsx)(U.r,{columns:{base:1,sm:2},spacing:3,children:m.Hd.map(e=>(0,a.jsx)(_,{label:e.label,description:e.description,isSelected:t.value===e.label,onClick:()=>t.onChange(e.label)},e.label))})}}),C.brandVibe&&(0,a.jsx)(g.E,{fontSize:"xs",color:et,mt:2,children:C.brandVibe.message})]})}),(0,a.jsx)(T,{heading:m.LU.unpopularOpinion.heading,help:m.LU.unpopularOpinion.help,confidenceLevel:ea("unpopularOpinion"),showChip:I,fields:["unpopularOpinion"],defaultEditing:!I,onResolve:Y,read:(0,a.jsx)(B,{value:M.unpopularOpinion}),edit:(0,a.jsxs)(p.a,{children:[(0,a.jsx)(z.T,{...k("unpopularOpinion"),placeholder:"A view about your field most people get wrong...",rows:3}),C.unpopularOpinion&&(0,a.jsx)(g.E,{fontSize:"xs",color:et,mt:1.5,children:C.unpopularOpinion.message})]})}),(0,a.jsx)(T,{heading:m.LU.contentStyles.heading,help:m.LU.contentStyles.help,confidenceLevel:ea("contentStyles"),showChip:I,fields:["contentStyles"],defaultEditing:!I,onResolve:Y,read:(0,a.jsxs)(o.s,{flexWrap:"wrap",gap:2,children:[m.Eb.map(e=>{let{icon:t,label:n}=e;return(0,a.jsx)(H,{icon:t,label:n,selected:(M.contentStyles||[]).includes(n)},n)}
1),(0,a.jsx)(H,{label:(M.contentStyles||[]).includes("Other")&&(null==(t=M.contentStylesOther)?void 0:t.trim())||"Other",selected:(M.contentStyles||[]).includes("Other")})]}),edit:(0,a.jsxs)(p.a,{children:[(0,a.jsx)(W.xI,{name:"contentStyles",control:w,render:e=>{let{field:t}=e;return(0,a.jsxs)(f.T,{align:"stretch",spacing:2.5,children:[m.Eb.map(e=>{let{icon:n,label:i,description:r}=e;return(0,a.jsx)(E.S,{isChecked:t.value.includes(i),onChange:e=>{e.target.checked?t.onChange([...t.value,i]):t.onChange(t.value.filter(e=>e!==i))},colorScheme:"brand",fontFamily:"heading",fontSize:"sm",alignItems:"flex-start",children:(0,a.jsxs)(p.a,{children:[(0,a.jsxs)(b.z,{spacing:1.5,align:"center",children:[(0,a.jsx)(g.E,{fontWeight:"medium",children:i}),(0,a.jsx)(A.I,{as:n,boxSize:3.5,color:q})]}),(0,a.jsx)(g.E,{fontFamily:"body",fontSize:"xs",color:q,fontWeight:"normal",children:r})]})},i)}),(0,a.jsx)(E.S,{isChecked:t.value.includes("Other"),onChange:e=>{e.target.checked?t.onChange([...t.value,"Other"]):t.onChange(t.value.filter(e=>"Other"!==e))},colorScheme:"brand",fontFamily:"heading",fontSize:"sm",children:"Other"}),t.value.includes("Other")&&(0,a.jsx)(y.p,{...k("contentStylesOther"),placeholder:"Describe any specific content you already have or prefer to film...",size:"sm",ml:6,maxW:"320px"})]})}}),C.contentStyles&&(0,a.jsx)(g.E,{fontSize:"xs",color:et,mt:2,children:C.contentStyles.message})]})})]})]}),(0,a.jsx)(p.a,{position:"fixed",left:0,right:0,bottom:0,bgGradient:"linear(to-t, ".concat(en," 38%, transparent)"),px:{base:4,md:6},pt:6,pb:5,zIndex:2,children:(0,a.jsxs)(o.s,{maxW:"760px",mx:"auto",align:"center",justify:"space-between",gap:4,direction:{base:"column",sm:"row"},children:[(0,a.jsx)(g.E,{fontFamily:"heading",fontSize:"xs",color:$,children:"Sosh AI will craft your summary next \xb7 about 45 seconds"}),(0,a.jsx)(j.$,{type:"submit",onClick:u(l),isLoading:d,colorScheme:"brand",size:"lg",px:8,h:12,fontFamily:"heading",fontWeight:"semibold",borderRadius:"xl",flexShrink:0,children:"Confirm & Continue"})]})})]})})}function H(e){let{icon:t,label:n,selected:i}=e,r=(0,s.dU)("brand.50","brand.900"),o=(0,s.dU)("brand.500","brand.400"),l=(0,s.dU)("brand.600","brand.400"),d=(0,s.dU)("slate.200","surface.600"),c=(0,s.dU)("slate.400","slate.500");return(0,a.jsxs)(b.z,{spacing:1.5,bg:i?r:"transparent",border:"1.5px solid",borderColor:i?o:d,color:i?l:c,borderRadius:"full",px:3,py:1.5,opacity:i?1:.65,fontFamily:"heading",fontWeight:"semibold",fontSize:"xs",children:[t&&(0,a.jsx)(A.I,{as:t,boxSize:3.5}),(0,a.jsx)(g.E,{children:n})]})}function D(e){let{icon:t,label:n,isSelected:i,onClick:r}=e,o=(0,s.dU)("slate.100","surface.700"),l=(0,s.dU)("brand.50","brand.900"),d=(0,s.dU)("brand.500","brand.400"),c=(0,s.dU)("slate.200","surface.600"),h=(0,s.dU)("slate.600","slate.300");return(0,a.jsxs)(j.$,{variant:"unstyled",display:"flex",alignItems:"center",gap:2,h:"auto",px:4,py:2,fontFamily:"heading",fontWeight:"medium",fontSize:"sm",borderRadius:"full",border:"1.5px solid",borderColor:i?d:c,bg:i?l:o,color:i?d:h,onClick:r,_hover:{borderColor:d},transition:"all 0.2s",children:[(0,a.jsx)(A.I,{as:t,boxSize:3.5}),n]})}function N(e){let{value:t}=e;return(0,a.jsx)(U.r,{columns:{base:1,sm:2},spacing:3,children:m.Hd.map(e=>(0,a.jsx)(Y,{label:e.label,description:e.description,selected:e.label===t},e.label))})}function _(e){let{label:t,description:n,isSelected:i,onClick:r}=e,o=(0,s.dU)("brand.500","brand.400"),l=(0,s.dU)("slate.200","surface.600"),d=(0,s.dU)("brand.50","brand.900"),c=(0,s.dU)("slate.900","slate.50"),h=(0,s.dU)("slate.600","slate.300");return(0,a.jsxs)(p.a,{as:"button",type:"button",p:4,borderRadius:"xl",border:"1.5px solid",borderColor:i?o:l,bg:i?d:"transparent",cursor:"pointer",onClick:r,_hover:{borderColor:o},transition:"all 0.2s",textAlign:"left",children:[(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",color:i?o:c,children:t}),(0,a.jsx)(g.E,{fontFamily:"body",fontSize:"xs",color:h,mt:.5,children:n})]})}function Y(e){let{label:t,description:n,selected:i}=e,r=(0,s.dU)("brand.500","brand.400"),o=(0,s.dU)("brand.50","brand.900"),l=(0,s.dU)("slate.200","surface.600"),d=(0,s.dU)("slate.600","slate.300"),c=(0,s.dU)("slate.400","slate.500");return(0,a.jsxs)(p.a,{p:3.5,borderRadius:"xl",border:"1.5px solid",borderColor:i?r:l,bg:i?o:"transparent",opacity:i?1:.65,children:[(0,a.jsxs)(b.z,{spacing:1.5,align:"center",children:[i&&(0,a.jsx)(A.I,{as:I.A,boxSize:3.5,color:r}),(0,a.jsx)(g.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",color:i?r:c,children:t})]}),(0,a.jsx)(g.E,{fontFamily:"body",fontSize:"xs",color:i?d:c,mt:.5,children:n})]})}let P={};function G(){let e=(0,d.useRouter)(),{organization:t,isLoaded:n}=(0,c.Z5)(),{user:p}=(0,c.Jd)(),b=(0,r.d)(),g=(0,s.dU)("slate.50","surface.900"),[f,x]=(0,i.useState)("website"),[
1y,j]=(0,i.useState)(!0),[v,w]=(0,i.useState)(P),[S,A]=(0,i.useState)(void 0),[z,U]=(0,i.useState)(void 0),[E,W]=(0,i.useState)(!1),{data:F,isLoading:M}=(0,h.I)({queryKey:["onboarding-status",null==t?void 0:t.id],queryFn:()=>u.F.getStatus(),staleTime:6e5,enabled:n&&!!t,retry:!1});(0,i.useEffect)(()=>{var t;!M&&(null==F||null==(t=F.data)?void 0:t.onboardingCompleted)&&e.replace("/dashboard")},[F,M,e]),(0,i.useEffect)(()=>{let e=!1;return(async()=>{try{let t=(await u.F.get()).data;!e&&t&&t.coreEssence&&(w({coreEssence:t.coreEssence||"",dreamClient:t.dreamClient||"",deliveryMechanisms:t.deliveryMechanisms||[],messyBefore:t.messyBefore||"",dreamAfter:t.dreamAfter||"",brandVibe:t.brandVibe||"",unpopularOpinion:t.unpopularOpinion||"",contentStyles:t.contentStyles||[],contentStylesOther:t.contentStylesOther||""}),t.sourceWebsiteUrl&&U(t.sourceWebsiteUrl),A(void 0),x("form"))}catch(e){}finally{e||j(!1)}})(),()=>{e=!0}},[]);let R=(0,i.useCallback)(async e=>{x("scanning");try{var t,n;let a=(await u.F.extractFromWebsite(e)).data;if(a.extractionFailed||!a.answers){b({title:"We could not read that website",description:"".concat(null!=(t=a.reason)?t:"Sosh AI could not read enough from that site."," You can fill in your Brand DNA below."),status:"warning",duration:7e3}),w(P),A(void 0),U(void 0),x("form");return}w(a.answers),A(null!=(n=a.confidence)?n:void 0),U(e),x("form")}catch(e){b({title:"We could not read that website",description:"Sosh AI could not read that site right now. You can fill in your Brand DNA below.",status:"warning",duration:7e3}),w(P),A(void 0),U(void 0),x("form")}},[b]),I=(0,i.useCallback)(()=>{w(P),A(void 0),U(void 0),x("form")},[]),O=(0,i.useCallback)(async t=>{W(!0);try{var n;let a={coreEssence:t.coreEssence,dreamClient:t.dreamClient,deliveryMechanisms:t.deliveryMechanisms,messyBefore:t.messyBefore,dreamAfter:t.dreamAfter,brandVibe:t.brandVibe,unpopularOpinion:t.unpopularOpinion,contentStyles:t.contentStyles};t.contentStyles.includes("Other")&&t.contentStylesOther&&(a.contentStylesOther=t.contentStylesOther),z&&(a.sourceWebsiteUrl=z);let i=await u.F.submit(a);if(null==i||null==(n=i.data)?void 0:n.aiGenerationFailed){let e=i.data.aiErrorMessage;b({title:"Sosh AI summary could not be generated",description:"".concat(null!=e?e:"Sosh AI could not generate your summary right now."," You can write your brand summary manually on the next page."),status:"warning",duration:7e3})}e.push("/onboarding/review")}catch(e){b({title:"Something went wrong",description:"Please try again.",status:"error",duration:5e3,isClosable:!0}),W(!1)}},[e,z,b]);if(E)return(0,a.jsx)(C,{title:"Building Your Brand DNA",messages:m.Xc});if(y)return(0,a.jsx)(o.s,{minH:"100vh",bg:g,align:"center",justify:"center",children:(0,a.jsx)(l.y,{size:"lg",color:"brand.400",thickness:"3px"})});if("scanning"===f)return(0,a.jsx)(C,{});if("form"===f){var T;return(0,a.jsx)(V,{initialValues:v,confidence:S,onSubmit:O,isSubmitting:E,firstName:null!=(T=null==p?void 0:p.firstName)?T:void 0})}return(0,a.jsx)(k,{onSubmitUrl:R,onSkip:I,isLoading:!1})}},65465:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/onboarding",function(){return n(64372)}])},71742:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},82736:(e,t,n)=>{"use strict";n.d(t,{D:()=>d});var a=n(37876),i=n(29185),r=n(75255),s=n(89461),o=n(66394),l=n(56044);let d=(0,s.R)(function(e,t){let n=(0,o.V)("Heading",e),{className:s,...d}=(0,i.M)(e);return(0,a.jsx)(l.B.h2,{ref:t,className:(0,r.cx)("chakra-heading",e.className),...d,__css:n})});d.displayName="Heading"},82925:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]])},89635:(e,t,n)=>{"use strict";n.d(t,{LU:()=>x,ss:()=>f,Eb:()=>v,wB:()=>y,Xc:()=>w,wC:()=>S,Hd:()=>j});var a=n(51802),i=n(17963);let r=(0,i.A)("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);
1var s=n(18650),o=n(41180),l=n(71742);let d=(0,i.A)("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);var c=n(4792),h=n(23478),u=n(15682),m=n(82925);let p=(0,i.A)("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]),b=(0,i.A)("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);var g=n(9560);let f=a.Ik({coreEssence:a.Yj().min(10,"Please write at least 10 characters"),dreamClient:a.Yj().min(10,"Please write at least 10 characters"),deliveryMechanisms:a.YO(a.Yj()).length(3,"Pick exactly 3 content themes"),messyBefore:a.Yj().min(10,"Please write at least 10 characters"),dreamAfter:a.Yj().min(10,"Please write at least 10 characters"),brandVibe:a.Yj().min(1,"Pick a personality"),unpopularOpinion:a.Yj().min(10,"Please write at least 10 characters"),contentStyles:a.YO(a.Yj()).min(1,"Select at least one"),contentStylesOther:a.Yj().optional()}),x={coreEssence:{heading:"What you do",help:"Your core essence"},dreamClient:{heading:"Who you're for",help:"The people you're trying to reach and what frustrates them"},deliveryMechanisms:{heading:"Content themes",help:"The 3 that fit best"},transformation:{heading:"The transformation",help:"The change you create for people"},brandVibe:{heading:"Your personality",help:"How you come across"},unpopularOpinion:{heading:"Your hot take",help:"What most people in your field get wrong"},contentStyles:{heading:"How you show up on camera",help:"What you're comfortable filming"}},y=[{icon:r,label:"Tutorials/Technical Skills (How-to content)"},{icon:s.A,label:"Mindset & Motivation (Shifting perspectives)"},{icon:o.A,label:"Industry Trends & News (Staying ahead of the curve)"},{icon:l.A,label:"Tools & Resources (Cheat codes and hacks)"},{icon:d,label:"Client Results & Case Studies (Social proof)"},{icon:c.A,label:"Behind the Scenes/Culture (Humanizing the brand)"}],j=[{label:"The Disruptor",description:"Edgy, high-contrast, and unfiltered"},{label:"The Relatable Friend",description:"Casual, warm, and transparent"},{label:"The Authority",description:"Polished, professional, and sophisticated"},{label:"The Scientist",description:"Data-driven, objective, and precise"}],v=[{icon:h.A,label:"Talking Head",description:"Speaking directly to the camera."},{icon:u.A,label:"VoiceOver",description:"Recording audio over background footage or photos."},{icon:m.A,label:"B-Roll",description:"Aesthetic lifestyle clips, workspace shots, or scenery (no talking)."},{icon:p,label:"Face-less / Hands-only",description:"Showing products or demonstrations without your face."},{icon:b,label:"Green Screen",description:"Speaking in front of a background, website, or specific image."},{icon:g.A,label:"Podcast/Interview Clips",description:"Existing long-form video that can be chopped up."}],w=["Reading between the lines...","Distilling your brand DNA...","Mapping your unique strengths...","Finding your brand voice...","Connecting the dots...","Capturing your vibe...","Crafting your summary...","Putting it all together..."],S=["Reading your website...","Understanding what you do...","Finding who you're for...","Mapping your content themes...","Capturing your voice...","Drafting your Brand DNA..."]},93784:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(17963).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},99430:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var a=n(37876),i=n(36188),r=n(5881),s=n(10059),o=n(16674);let l=(0,n(89461).R)(function(e,t){var n,l,d;let{columns:c,spacingX:h,spacingY:u,spacing:m,minChildWidth:p,...b}=e,g=(0,s.D)(),f=p?(n=p,l=g,(0,i.bk)(n,e=>{let t=(0,o.gf)("sizes",e,"number"==typeof e?`${e}px`:e)(l);return null===e?null:`repeat(auto-fit, minmax(${t}, 1fr))`})):(d=c,(0,i.bk)(d,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`));return(0,a.jsx)(r.x,{ref:t,gap:m,columnGap:h,rowGap:u,templateColumns:f,...b})});l.displayName="SimpleGrid"}},e=>{e.O(0,[5533,6418,636,6593,8792],()=>e(e.s=65465)),_N_E=e.O()}]);
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.