1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8594],{15633:(e,t,s)=>{s.d(t,{Mz:()=>Y,UC:()=>G,ZL:()=>U,bL:()=>V,bm:()=>X,l9:()=>K});var n=s(91078),r=s(72864),a=s(91931),i=s(64945),o=s(62244),l=s(14534),d=s(57235),c=s(73192),u=s(38633),p=s(66995),x=s(81664),m=s(92837),h=s(89175),f=s(27948),g=s(63820),y=s(32496),v=s(92518),j="Popover",[b,N]=(0,i.A)(j,[u.Bk]),w=(0,u.Bk)(),[k,C]=b(j),P=e=>{let{__scopePopover:t,children:s,open:r,defaultOpen:a,onOpenChange:i,modal:o=!1}=e,l=w(t),d=n.useRef(null),[p,x]=n.useState(!1),[m,h]=(0,f.i)({prop:r,defaultProp:null!=a&&a,onChange:i,caller:j});return(0,v.jsx)(u.bL,{...l,children:(0,v.jsx)(k,{scope:t,contentId:(0,c.B)(),triggerRef:d,open:m,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:p,onCustomAnchorAdd:n.useCallback(()=>x(!0),[]),onCustomAnchorRemove:n.useCallback(()=>x(!1),[]),modal:o,children:s})})};P.displayName=j;var _="PopoverAnchor",T=n.forwardRef((e,t)=>{let{__scopePopover:s,...r}=e,a=C(_,s),i=w(s),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=a;return n.useEffect(()=>(o(),()=>l()),[o,l]),(0,v.jsx)(u.Mz,{...i,...r,ref:t})});T.displayName=_;var z="PopoverTrigger",S=n.forwardRef((e,t)=>{let{__scopePopover:s,...n}=e,i=C(z,s),o=w(s),l=(0,a.s)(t,i.triggerRef),d=(0,v.jsx)(m.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":$(i.open),...n,ref:l,onClick:(0,r.mK)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?d:(0,v.jsx)(u.Mz,{asChild:!0,...o,children:d})});S.displayName=z;var A="PopoverPortal",[M,W]=b(A,{forceMount:void 0}),O=e=>{let{__scopePopover:t,forceMount:s,children:n,container:r}=e,a=C(A,t);return(0,v.jsx)(M,{scope:t,forceMount:s,children:(0,v.jsx)(x.C,{present:s||a.open,children:(0,v.jsx)(p.Z,{asChild:!0,container:r,children:n})})})};O.displayName=A;var I="PopoverContent",R=n.forwardRef((e,t)=>{let s=W(I,e.__scopePopover),{forceMount:n=s.forceMount,...r}=e,a=C(I,e.__scopePopover);return(0,v.jsx)(x.C,{present:n||a.open,children:a.modal?(0,v.jsx)(L,{...r,ref:t}):(0,v.jsx)(E,{...r,ref:t})})});R.displayName=I;var F=(0,h.TL)("PopoverContent.RemoveScroll"),L=n.forwardRef((e,t)=>{let s=C(I,e.__scopePopover),i=n.useRef(null),o=(0,a.s)(t,i),l=n.useRef(!1);return n.useEffect(()=>{let e=i.current;if(e)return(0,g.Eq)(e)},[]),(0,v.jsx)(y.A,{as:F,allowPinchZoom:!0,children:(0,v.jsx)(D,{...e,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null==(t=s.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,r.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,s=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||s},{checkForDefaultPrevented:!1}),onFocusOutside:(0,r.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),E=n.forwardRef((e,t)=>{let s=C(I,e.__scopePopover),r=n.useRef(!1),a=n.useRef(!1);return(0,v.jsx)(D,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(r.current||null==(i=s.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var n,i;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let o=t.target;(null==(i=s.triggerRef.current)?void 0:i.contains(o))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),D=n.forwardRef((e,t)=>{let{__scopePopover:s,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:x,onInteractOutside:m,...h}=e,f=C(I,s),g=w(s);return(0,l.Oh)(),(0,v.jsx)(d.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:a,children:(0,v.jsx)(o.qW,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:x,onDismiss:()=>f.onOpenChange(!1),children:(0,v.jsx)(u.UC,{"data-state":$(f.open),role:"dialog",id:f.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),B="PopoverClose",Z=n.forwardRef((e,t)=>
1{let{__scopePopover:s,...n}=e,a=C(B,s);return(0,v.jsx)(m.sG.button,{type:"button",...n,ref:t,onClick:(0,r.mK)(e.onClick,()=>a.onOpenChange(!1))})});function $(e){return e?"open":"closed"}Z.displayName=B,n.forwardRef((e,t)=>{let{__scopePopover:s,...n}=e,r=w(s);return(0,v.jsx)(u.i3,{...r,...n,ref:t})}).displayName="PopoverArrow";var V=P,Y=T,K=S,U=O,G=R,X=Z},43721:(e,t,s)=>{s.d(t,{AM:()=>i,Wv:()=>o,dT:()=>d,hl:()=>l,iN:()=>c});var n=s(92518);s(91078);var r=s(15633),a=s(8641);function i(e){let{...t}=e;return(0,n.jsx)(r.bL,{"data-slot":"popover",...t})}function o(e){let{...t}=e;return(0,n.jsx)(r.l9,{"data-slot":"popover-trigger",...t})}function l(e){let{className:t,align:s="center",sideOffset:i=4,...o}=e;return(0,n.jsx)(r.ZL,{children:(0,n.jsx)(r.UC,{"data-slot":"popover-content",align:s,sideOffset:i,onWheel:e=>e.stopPropagation(),className:(0,a.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[101] w-72 origin-(--radix-popover-content-transform-origin) rounded-xl border p-4 shadow-md outline-hidden",t),...o})})}function d(e){let{...t}=e;return(0,n.jsx)(r.Mz,{"data-slot":"popover-anchor",...t})}function c(e){let{...t}=e;return(0,n.jsx)(r.bm,{"data-slot":"popover-close",...t})}},89626:(e,t,s)=>{s.d(t,{f:()=>g});var n=s(92518),r=s(91078),a=s(79509),i=s(33483),o=s(95261),l=s(46193),d=s(61851),c=s(98756),u=s(371),p=s(99522),x=s(43721),m=s(20842),h=s(47654),f=s(80815);function g(e){let{variant:t="onboarding",showDisclaimer:s=!1}=e,g=(0,i.rd)(),y=(0,i.a8)(),v=(0,o.useSearchParams)(),j=(0,a.Ym)(),[b,N]=r.useTransition(),{logout:w,isPending:k}=(0,h.W)(),C=(0,f.c3)("AuthFooter"),P=new Intl.DisplayNames([j],{type:"language"}).of(j),_=(0,n.jsxs)(x.AM,{children:[(0,n.jsx)(x.Wv,{asChild:!0,children:(0,n.jsxs)(m.$,{variant:"ghost",size:"sm",className:"h-auto px-1.5 py-1 text-xs text-muted-foreground/70 hover:text-muted-foreground font-semibold gap-1 hover:bg-transparent underline-offset-2 decoration-dotted hover:underline",disabled:b,children:[b?(0,n.jsx)(c.A,{className:"size-3 animate-spin"}):(0,n.jsx)(u.n,{icon:p.mpZQ,className:"size-3",strokeWidth:1.75}),b?C("switching"):P]})}),(0,n.jsx)(x.hl,{className:"w-44 p-1",align:"center",children:(0,n.jsx)("div",{className:"flex flex-col gap-px",children:l.D.locales.map(e=>(0,n.jsx)("button",{onClick:()=>(e=>{if(e===j)return;document.cookie="NEXT_LOCALE=".concat(e,"; path=/; max-age=31536000; SameSite=Lax");let t=v.toString(),s=t?"".concat(y,"?").concat(t):y;N(()=>{g.replace(s,{locale:e})})})(e),disabled:b,className:(0,d.cn)("w-full text-left h-7 px-2.5 text-sm rounded-lg flex items-center transition-colors",j===e?"bg-muted text-foreground font-medium":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:new Intl.DisplayNames([e],{type:"language"}).of(e)},e))})})]});if(s){let e="font-semibold text-muted-foreground/70 hover:text-muted-foreground underline-offset-2 decoration-dotted hover:underline transition-colors";return(0,n.jsxs)("div",{className:"flex items-center gap-2 text-xs font-normal text-muted-foreground/50",children:[(0,n.jsxs)("span",{children:[C("disclaimer.prefix")," ",(0,n.jsx)("a",{href:"https://reepl.io/terms-and-conditions",target:"_blank",rel:"noopener noreferrer",className:e,children:C("disclaimer.terms")}),", ",(0,n.jsx)("a",{href:"https://reepl.io/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:e,children:C("disclaimer.privacy")}),C("disclaimer.and")," ",(0,n.jsx)("a",{href:"https://reepl.io/fair-usage-policy",target:"_blank",rel:"noopener noreferrer",className:e,children:C("disclaimer.fairUse")}),"."]}),_]})}return(0,n.jsxs)("div",{className:"flex items-center gap-1 text-xs font-semibold text-muted-foreground/70",children:[(0,n.jsx)("a",{href:"https://reepl.io/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"px-1.5 py-1 hover:text-muted-foreground transition-colors underline-offset-2 decoration-dotted hover:underline",children:C("privacy")}),(0,n.jsx)("a",{href:"https://reepl.io/terms-and-conditions",target:"_blank",rel:"noopener noreferrer",className:"px-1.5 py-1 hover:text-muted-foreground transition-colors underline-offset-2 decoration-dotted hover:underline",children:C("terms")}),_,"auth"===t?(0,n.jsx)("a",{href:"https://reepl.io/fair-usage-policy",target:"_blank",rel:"noopener noreferrer",className:"px-1.5 py-1 hover:text-muted-foreground transition-colors underline-offset-2 decoration-dotted hover:underline",children:C("fairUse")}):(0,n.jsx)("button",{onClick:()=>w(),disabled:k,className:"px-1.5 py-1 hover:text-muted-foreground transition-colors underline-offset-2 decoration-dotted hover:underline disabled:opacity-50",children:C(k?"signingOut":"signOut")})]})}},98594:(e,t,s)=>{s.d(t,{AuthShell:()=>S});var n=s(92518),r=s(50956),a=s(89626),i=s(91078),o=s(14845),l=s(80815),d=s(61851),c=s(371),u=s(99522),p=s(20842),x=s(99254);let m=new Set(["post_think","post_think_done","post_show","post_accept","post_collapse","trans_type","scheduling","calendar","done"]),h=[.22,1,.36,1],f={type:"spring",stiffness:180,damping:28},g={type:"spring",stiffness:420,damping:26};function y(e){let{steps:t,step:s,done:a,doneStep:i}=e,l=t[Math.min(s,t.length-1)];return(0,n.jsx)(r.P.div,{initial:{opacity:0,y:6}
1,animate:{opacity:1,y:0},transition:{duration:.4,ease:h},className:"flex items-center gap-2 w-fit",children:(0,n.jsx)(o.N,{mode:"wait",children:a?(0,n.jsxs)(r.P.div,{initial:{opacity:0,filter:"blur(4px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(4px)"},transition:{duration:.3,ease:h},className:"flex items-center gap-2",children:[(0,n.jsx)(c.n,{icon:i.icon,className:"size-3.5 text-muted-foreground shrink-0"}),(0,n.jsxs)("p",{className:"text-sm text-muted-foreground whitespace-nowrap",children:[i.label," \xb7 ",i.time]})]},"done"):(0,n.jsxs)(r.P.div,{initial:{opacity:0,y:4,filter:"blur(4px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},exit:{opacity:0,y:-4,filter:"blur(4px)"},transition:{duration:.3,ease:h},className:"flex items-center gap-2",children:[(0,n.jsx)(c.n,{icon:l.icon,className:"size-3.5 text-muted-foreground shrink-0"}),(0,n.jsxs)("p",{className:"text-sm whitespace-nowrap status-shine",children:[l.label,"..."]})]},s)})})}function v(e){let{post:t,accepted:s,acceptBtn:a,rejectBtn:i,acceptedLabel:l}=e;return(0,n.jsx)(r.P.div,{initial:{opacity:0,y:14,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.97},transition:{duration:.45,ease:h},className:"w-full",children:(0,n.jsxs)("div",{className:"border border-border rounded-2xl overflow-hidden",children:[(0,n.jsx)("div",{className:"px-3 pt-3 pb-2",children:(0,n.jsx)("p",{className:"text-sm text-foreground leading-relaxed line-clamp-3 whitespace-pre-line",children:t.preview})}),(0,n.jsx)("div",{className:"flex items-center justify-end gap-1 px-3 pb-2.5",children:(0,n.jsx)(o.N,{mode:"wait",children:s?(0,n.jsxs)(r.P.div,{initial:{opacity:0,scale:.7},animate:{opacity:1,scale:1},transition:g,className:"flex items-center gap-1 text-xs font-medium text-green-600",children:[(0,n.jsx)(c.n,{icon:u.yiml,className:"size-3.5"}),l]},"accepted"):(0,n.jsxs)(r.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"flex items-center gap-1",children:[(0,n.jsx)(p.$,{variant:"ghost",size:"icon",className:"size-6 shadow-none",children:(0,n.jsx)(c.n,{icon:u.jNKz,className:"size-3.5 text-muted-foreground"})}),(0,n.jsx)(p.$,{variant:"outline",className:"h-6 text-xs px-2.5 shadow-none",children:i}),(0,n.jsx)(p.$,{className:"h-6 text-xs px-2.5",children:a})]},"actions")})})]})})}function j(e){let{post:t}=e;return(0,n.jsx)(r.P.div,{initial:{opacity:0,scale:.97,y:-4},animate:{opacity:1,scale:1,y:0},transition:{duration:.35,ease:h},className:"w-full",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-card border border-black/[0.075] rounded-xl shadow-2xs",children:[(0,n.jsx)(c.n,{icon:u.yiml,className:"size-3.5 text-muted-foreground shrink-0"}),(0,n.jsx)("p",{className:"flex-1 text-sm text-foreground truncate",children:t.preview.split("\n")[0]})]})})}function b(e){let{visibleCount:t,title:s,scheduledLabel:a,posts:i}=e;return(0,n.jsx)(r.P.div,{initial:{opacity:0,y:14,scale:.98},animate:{opacity:1,y:0,scale:1},transition:{duration:.45,ease:h},className:"w-full",children:(0,n.jsxs)("div",{className:"border border-border rounded-2xl overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border",children:[(0,n.jsx)(c.n,{icon:u.vxLJ,className:"size-4 text-muted-foreground"}),(0,n.jsx)("span",{className:"text-sm font-medium text-foreground",children:s}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground ml-auto",children:a})]}),(0,n.jsx)("div",{className:"flex flex-col divide-y divide-border",children:i.slice(0,t).map((e,t)=>(0,n.jsxs)(r.P.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{...f,delay:.04*t},className:"flex items-center gap-3 px-3 py-2",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-muted-foreground w-7 shrink-0",children:e.day}),(0,n.jsx)("p",{className:"flex-1 text-sm text-foreground truncate",children:e.title}),(0,n.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,n.jsx)("span",{className:(0,d.cn)("text-xs px-1.5 py-0.5 rounded-md",e.type===i[2].type?"bg-purple-100 text-purple-700":"bg-muted text-muted-foreground"),children:e.type}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:e.time})]})]},t))})]})})}let N=[u.Gek_,u.d2e$,u.efah,u.jNKz];function w(e){let{text:t}=e;return(0,n.jsxs)(r.P.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.5,ease:h},className:"flex flex-col gap-2.5 w-full",children:[(0,n.jsx)(r.P.p,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.4,delay:.1,ease:h},className:"text-sm text-foreground leading-relaxed whitespace-pre-line",children:t}),(0,n.jsx)("div",{className:"flex items-center gap-0.5",children:N.map((e,t)=>(0,n.jsx)(r.P.div,{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},transition:{...g,delay:.2+.06*t},children:(0,n.jsx)(p.$,{variant:"ghost",size:"icon",className:"size-6 shadow-none",children:(0,n.jsx)(c.n,{icon:e,className:"size-3.5 text-muted-foreground",strokeWidth:1.5})})},t))})]})}function k(e){let{text:t}=e;return(0,n.jsx)(r.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.45,ease:h},className:"flex w-full",children:(0,n.jsx)("div",{className:"w-full text-foreground px-1 py-1 text-sm break-words leading-relaxed",children:t})})}function C(){let e=(0,l.c3)("AndyDemoAnimation"),t=e("userMessage"),s=e("planMessage"),a=e("scheduleMsg"),g=[{source:e("sourceWeb"),sourceIcon:u.OV8f,format:e("formatText"),preview:e("post1"),day:e("dayMon"),time:"8:47 AM"},{source:e("sourceSignal"),sourceIcon:u.BZII,format:e("formatCarousel"),preview:e("post2"),day:e("dayWed"),time:"12:00 PM"},{source:e("sourcePastPost"),sourceIcon:u.O9W0,format:e("formatText"),preview:e("post3"),day:e("dayTue"),time:"9:15 AM"},{source:e("sourceWeb"),sourceIcon:u.OV8f,format:e("formatText"),preview:e("post4"),day:e("dayThu"),time:"8:30 AM"},{source:e("sourceSignal"),sourceIcon:u.BZII,format:e("formatText"),preview:e("post5"),day:e("dayFri"),time:"10:00 AM"}],N=[[{label:e("thinkFetch"),icon:u.OV8f},{label:e("thinkWrite"),icon:u.SxhY}],[{label:e("thinkReadSignal"),icon:u.BZII},{label:e("thinkStructure"),icon:u.SxhY}],[{label:e("thinkReadPost"),icon:u.O9W0},{label:e("thinkAdapt"),icon:u.SxhY}],[{label:e("thinkSearch"),icon:u.OV8f},{label:e("thinkCraft"),icon:u.SxhY}],[{label:e("thinkReadEngage"),icon:u.BZII},{label:e("thinkWriteFri"),icon:u.SxhY}]],C=[{label:e("doneFetch"),icon:u.SxhY,time:"3s"},{label:e("doneSignal"),icon:u.SxhY,time:"3s"},{label:e("donePost"),icon:u.SxhY,time:"2s"},{label:e("doneSearch"),icon:u.OV8f,time:"3s"},{label:e("doneEngage"),icon:u.BZII,time:"2s"}],P=["",e("trans1"),e("trans2"),e("trans3"),e("trans4")],_=[{day:e("dayMon"),time:"8:47",title:e("calPost1"),type:e("typeText")},{day:e("dayTue"),time:"9:15",title:e("calPost2"),type:e("typeText")},{day:e("dayWed"),time:"12:00",title:e("calPost3"),type:e("typeCarousel")},{day:e("dayThu"),time:"8:30",title:e("calPost4"),type:e("typeText")},{day:e("dayFri"),time:"10:00",title:e("calPost5"),type:e("typeText")}],[T,z]=(0,i.useState)("idle"),[S,A]=(0,i.useState)(""),[M,W]=(0,i.useState)(0),[O,I]=(0,i.useState)(""),[R,F]=(0,i.useState)(0),[L,E]=(0,i.useState)(Array(g.length).fill(!1)),[D,B]=(0,i.useState)(Array(g.length).fill(!1)),[Z,$]=(0,i.useState)(Array(g.length).fill(!1)),[V,Y]=(0,i.useState)(0),[K,U]=(0,i.useState)(""),[G,X]=(0,i.useState)(""),[q,H]=(0,i.useState)(0),J=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=J.current;e&&("idle"===T||"typing"===T?e.scrollTo({top:0,behavior:"smooth"}):(R>=1||"scheduling"===T||"calendar"===T||"done"===T)&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"}))},[T,M,O,L,D,Z,V,K,G,q,R]),(0,i.useEffect)(()=>{let e;if("idle"===T)e=setTimeout(()=>z("typing"),1e3);else if("typing"===T)e=S.length<t.length?setTimeout(()=>A(t.slice(0,S.length+1)),58):setTimeout(()=>z("sent"),500);else if("sent"===T)e=setTimeout(()=>z("planning"),400);else if("planning"===T)e=O.length<s.length?setTimeout(()=>I(s.slice(0,O.length+1)),22):setTimeout(()=>{W(0),z("post_think")},700);else if("post_think"===T)e=M<N[R].length-1?setTimeout(()=>W(e=>e+1),1100):setTimeout(()=>z("post_think_done"),1e3);else if("post_think_done"===T)e=setTimeout(()=>{E(e=>{let t=[...e];return t[R]=!0,t}),z("post_show")},400);else if("post_show"===T)e=setTimeout(()=>{B(e=>{let t=[...e];return t[R]=!0,t}),z("post_accept")},1800);else if("post_accept"===T)e=setTimeout(()=>{$(e=>{let t=[...e];return t[R]=!0,t}),z("post_collapse")},800);else if("post_collapse"===T)e=R<g.length-1?setTimeout(()=>{U(""),z("trans_type")},600):setTimeout(()=>z("scheduling"),600);else if("trans_type"===T){let t=P[R+1];e=K.length<t.length?setTimeout(()=>U(t.slice(0,K.length+1)),14):setTimeout(()=>{Y(R+1),U(""),W(0),F(e=>e+1),z("post_think")},300)}else"scheduling"===T?e=G.length<a.length?setTimeout(()=>X(a.slice(0,G.length+1)),22):setTimeout(()=>z("calendar"),500):"calendar"===T?e=q<_.length?setTimeout(()=>H(e=>e+1),320):setTimeout(()=>z("done"),4500):"done"===T&&(e=setTimeout(()=>{z("idle"),A(""),W(0),I(""),F(0),E(Array(g.length).fill(!1)),B(Array(g.length).fill(!1)),$(Array(g.length).fill(!1)),Y(0),U(""),X(""),H(0)},800));return()=>clearTimeout(e)},[T,S,M,O,R,L,D,Z,V,K,G,q]);let Q=m.has(T),ee="idle"!==T&&"typing"!==T,et="typing"===T&&S.length>0,es=ee?e("headerTitle"):"Andy",en=(()=>
1{if("idle"===T||"typing"===T)return -100;if("sent"===T)return 100;if("planning"===T)return 80;if(0===R){if("post_think"===T||"post_think_done"===T)return 60;if("post_show"===T||"post_accept"===T)return 40;if("post_collapse"===T)return 20}return -100})();return(0,n.jsx)(r.P.div,{className:"force-light absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 overflow-visible",style:{scale:.82,transformOrigin:"center center"},animate:{y:en},transition:{...f,duration:void 0},children:(0,n.jsxs)("div",{className:"w-[392px] h-[680px] flex flex-col bg-card border border-border rounded-2xl shadow-2xl overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-4 h-12 shrink-0 border-b border-border",children:[(0,n.jsx)(x.a,{className:"size-4 text-foreground shrink-0"}),(0,n.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:es}),(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-0.5",children:[(0,n.jsx)(p.$,{variant:"ghost",size:"icon",className:"size-7",children:(0,n.jsx)(c.n,{icon:u._L6I,className:"size-3.5 text-muted-foreground",strokeWidth:1.5,absoluteStrokeWidth:!0,size:14})}),(0,n.jsx)(p.$,{variant:"ghost",size:"icon",className:"size-7",children:(0,n.jsx)(c.n,{icon:u.p19M,className:"size-3.5 text-muted-foreground",strokeWidth:1.5,absoluteStrokeWidth:!0,size:14})}),(0,n.jsx)(p.$,{variant:"ghost",size:"icon",className:"size-7",children:(0,n.jsx)(c.n,{icon:u.eXOi,className:"size-3.5 text-muted-foreground",strokeWidth:1.5,absoluteStrokeWidth:!0,size:14})})]})]}),(0,n.jsxs)("div",{ref:J,className:"flex-1 overflow-y-auto no-scrollbar px-3 py-3 flex flex-col gap-3",children:[(0,n.jsx)(o.N,{children:ee&&(0,n.jsx)(r.P.div,{initial:{opacity:0,y:12,scale:.97},animate:{opacity:1,y:0,scale:1},transition:{duration:.45,ease:h},className:"flex w-full justify-end",children:(0,n.jsx)("div",{className:"max-w-[calc(100%-16px)] bg-muted text-foreground px-3 py-2.5 rounded-2xl text-sm break-words",children:t})},"user-msg")}),(0,n.jsx)(o.N,{children:O.length>0&&(0,n.jsx)(k,{text:O},"plan-msg")}),g.map((t,s)=>(0,n.jsxs)(o.N,{children:[s>0&&V>=s&&(0,n.jsx)(k,{text:P[s]},"trans-".concat(s)),s>0&&"trans_type"===T&&R+1===s&&(0,n.jsx)(r.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.45,ease:h},className:"flex w-full",children:(0,n.jsxs)("div",{className:"w-full text-foreground px-1 py-1 text-sm break-words leading-relaxed",children:[K,(0,n.jsx)("span",{className:"inline-block w-px h-3.5 bg-foreground ml-px animate-pulse align-middle"})]})},"trans-typing-".concat(s)),Q&&R>=s&&(0,n.jsx)(y,{steps:N[s],step:R===s?M:N[s].length-1,done:R>s||R===s&&"post_think"!==T,doneStep:C[s]},"think-".concat(s)),L[s]&&!Z[s]&&(0,n.jsx)(v,{post:t,accepted:D[s],acceptBtn:e("acceptBtn"),rejectBtn:e("rejectBtn"),acceptedLabel:e("acceptedLabel")},"post-full-".concat(s)),Z[s]&&(0,n.jsx)(j,{post:t},"post-collapsed-".concat(s))]},s)),(0,n.jsx)(o.N,{children:G.length>0&&(0,n.jsx)(k,{text:G},"sched-msg")}),(0,n.jsx)(o.N,{children:q>0&&(0,n.jsx)(b,{visibleCount:q,title:e("calendarTitle"),scheduledLabel:e("calendarScheduled",{count:q,total:_.length}),posts:_},"calendar")}),(0,n.jsx)(o.N,{children:q>=_.length&&(0,n.jsx)(w,{text:e("finalMsg")},"final-msg")})]}),(0,n.jsx)("div",{className:"w-full p-3 shrink-0",children:(0,n.jsxs)("div",{className:"bg-muted border border-border rounded-3xl overflow-hidden",children:[(0,n.jsx)("div",{className:"px-3 pt-3 pb-2 min-h-[48px] flex items-start",children:(0,n.jsx)("span",{className:"text-sm leading-relaxed",children:"idle"===T||"typing"===T?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:et?"text-foreground":"text-muted-foreground",children:S||e("inputPlaceholder")}),"typing"===T&&(0,n.jsx)("span",{className:"inline-block w-px h-3.5 bg-foreground ml-px animate-pulse align-middle"})]}):(0,n.jsx)("span",{className:"text-muted-foreground",children:e("inputPlaceholder")})})}),(0,n.jsxs)("div",{className:"flex items-center justify-between px-2.5 pb-2.5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(p.$,{variant:"ghost",size:"icon",className:"size-7",children:(0,n.jsx)(c.n,{icon:u.PtAW,className:"size-4 text-muted-foreground",strokeWidth:1.5})}),(0,n.jsx)(p.$,{variant:"ghost",size:"icon",className:"size-7",children:(0,n.jsx)(c.n,{icon:u.oXl2,className:"size-4 text-muted-foreground",strokeWidth:1.5})})]}),(0,n.jsx)(p.$,{size:"icon",className:(0,d.cn)("h-7 w-7 rounded-lg",et?"bg-primary":"bg-primary/40"),children:(0,n.jsx)(c.n,{icon:et?u.e_al:u.EmDB,className:"size-3.5 text-primary-foreground"})})]})]})})]})})}let P="/images/assets/Frame 1000023003.png";function _(){let[e,t]=(0,i.useState)(!1),[s,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=new Image;e.src=P,e.onload=()=>t(!0),e.complete&&t(!0)},[]),(0,i.useEffect)(()=>
1{if(!e)return;let t=setTimeout(()=>a(!0),400);return()=>clearTimeout(t)},[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.N,{children:!e&&(0,n.jsx)(r.P.div,{exit:{opacity:0},transition:{duration:.5},className:"absolute inset-0 bg-muted",children:(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-muted via-muted/60 to-muted animate-pulse"})},"skeleton")}),(0,n.jsx)(r.P.div,{className:"absolute inset-0",initial:{opacity:0},animate:{opacity:+!!e},transition:{duration:.6,ease:[.22,1,.36,1]},style:{backgroundImage:"url('".concat(P,"')"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),(0,n.jsx)(o.N,{children:s&&(0,n.jsx)(r.P.div,{className:"absolute inset-0",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:[.22,1,.36,1]},children:(0,n.jsx)(C,{})},"animation")})]})}var T=s(70575),z=s(33483);function S(e){let{children:t}=e,s=(0,z.a8)();return(0,n.jsxs)("div",{className:"bg-background min-h-screen flex flex-col",children:[(0,n.jsx)(r.P.div,{className:"flex justify-center pt-5 flex-shrink-0",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.22,1,.36,1]},children:(0,n.jsx)(T.kd,{})}),(0,n.jsx)("main",{className:"flex-1 flex items-center justify-center px-6 pb-8",children:(0,n.jsxs)(r.P.div,{className:"w-full max-w-[440px] lg:max-w-[960px] lg:h-[600px] bg-background border border-border rounded-2xl shadow-sm flex overflow-hidden",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.4,ease:[.22,1,.36,1]},children:[(0,n.jsx)("div",{className:"lg:w-1/2 w-full lg:h-full flex items-center justify-center overflow-y-auto no-scrollbar px-8 py-8 lg:py-0",children:(0,n.jsx)("div",{className:"w-full max-w-[360px]",children:t})}),(0,n.jsx)("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden border-l border-border",children:(0,n.jsx)(_,{})})]})}),(0,n.jsx)("div",{className:"fixed bottom-5 left-0 right-0 flex justify-center",children:(0,n.jsx)(a.f,{variant:"auth",showDisclaimer:"/signup"===s})})]})}},99254:(e,t,s)=>{s.d(t,{C:()=>o,a:()=>i});var n=s(92518);let r="M3 19.4268V12.5466C3 7.27506 7.03 3 12 3C16.97 3 21 7.27506 21 12.5466V19.4257C21 20.6523 20.033 22.0847 19 21.5369C18.165 21.0935 16.777 20.988 16 21.5369C15.126 22.1544 13.874 22.1544 13 21.5369C12.115 20.9109 11.351 20.9352 10.5 21.5369C9.626 22.1544 8.374 22.1544 7.5 21.5369C6.723 20.988 5.835 21.0935 5 21.5369C3.967 22.0847 3 20.6534 3 19.4268Z",a="M9.5 14.5C10.223 15.133 11.08 15.5 12 15.5C12.92 15.5 13.777 15.133 14.5 14.5M15.625 9.387V9.917M8.375 9.387V9.917M8.75 9.75C8.75 9.336 8.582 9 8.375 9C8.168 9 8 9.336 8 9.75C8 10.164 8.168 10.5 8.375 10.5C8.582 10.5 8.75 10.164 8.75 9.75ZM16 9.75C16 9.336 15.832 9 15.625 9C15.418 9 15.25 9.336 15.25 9.75C15.25 10.164 15.418 10.5 15.625 10.5C15.832 10.5 16 10.164 16 9.75Z";function i(e){let{className:t,...s}=e;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:t,...s,children:[(0,n.jsx)("path",{d:r,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:a,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function o(e){let{className:t,...s}=e;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:t,...s,children:[(0,n.jsx)("path",{d:r,fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:a,stroke:"var(--background)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}}}]);
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.