PageSourceSearch

https://app.pirch.ai/_next/static/chunks/5579-45ac3801fbb0a123.js

js pirch.ai collected 2026-10-05 12:24:52 UTC 59,245 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5579],{6147:(e,t,l)=>{"use strict";t.id=void 0,t.UU=function(e,l){return t.id.createClient({links:[(0,n.httpBatchLink)({url:"".concat(e,"/trpc"),transformer:r.default,methodOverride:"POST",headers:async()=>l?await l():{}})]})};let a=l(80023),r=function(e){return e&&e.__esModule?e:{default:e}}(l(36504)),n=l(97399);t.id=(0,a.createTRPCReact)()},12642:()=>{},19709:(e,t,l)=>{"use strict";l.d(t,{$n:()=>p,CT:()=>eo,Zp:()=>x,Wu:()=>h,Sc:()=>b,zs:()=>es,lr:()=>j,II:()=>ec,pd:()=>u,aF:()=>B,$m:()=>M,jl:()=>W,KF:()=>E,IS:()=>i,yA:()=>d,nX:()=>ed,AM:()=>eu,z6:()=>T,l6:()=>L,Ap:()=>V,dO:()=>P,tU:()=>ef,tE:()=>eN,m_:()=>ek,k4:()=>X,cb:()=>ei,Ke:()=>er,RK:()=>ea,dj:()=>ej});var a=l(67605);l(46464),l(12642);var r=l(36433);function n(e,t){return/^[0-9]$/.test(e)?e:t&&/^[a-zA-Z]$/.test(e)?e.toUpperCase():""}let i=(0,r.forwardRef)(function(e,t){let{length:l=6,value:i,onChange:s,onComplete:o,disabled:c,name:d,autoFocus:u,inputMode:m="numeric",allowLetters:f=!1,className:p="",inputClassName:x="",slotPlaceholder:h=""}=e,g=(0,r.useRef)([]),v=void 0!==i,[b,y]=(0,r.useState)("".padEnd(l,""));(0,r.useEffect)(()=>{v||y(e=>e.length===l?e:"".padEnd(l,""))},[l,v]);let w=v?null!=i?i:"":b,j=(0,r.useMemo)(()=>Array.from({length:l},(e,t)=>{var l;return null!=(l=w[t])?l:""}),[w,l]),N=e=>{let t=e.slice(0,l);v?null==s||s(t):y(t.padEnd(l,""))},k=(e,t)=>{let l=j.slice();l[e]=t,N(l.join(""))},C=(0,r.useMemo)(()=>j.every(e=>e&&1===e.length),[j]);(0,r.useEffect)(()=>{C&&(null==o||o(j.join("")))},[C]),(0,r.useImperativeHandle)(t,()=>({clear:()=>N(""),focus:()=>{var e;return null==(e=g.current[0])?void 0:e.focus()}}),[l]);let L=e=>{let t=Math.max(0,Math.min(l-1,e)),a=g.current[t];null==a||a.focus(),null==a||a.select()},S=e=>{e.preventDefault();let t=(e.clipboardData.getData("text")||"").trim();if(!t)return;let a=Array.from(t).map(e=>n(e,f)).filter(Boolean).join("");if(!a)return;let r=g.current.findIndex(e=>e===document.activeElement),i=-1===r?0:r,s=j.slice(),o=0;for(let e=i;e<l&&o<a.length;e++,o++)s[e]=a[o];N(s.join(""));let c=s.findIndex(e=>!e);L(-1===c?l-1:c)};return(0,a.jsxs)("div",{className:"flex flex-col items-start gap-2 ".concat(p),children:[(0,a.jsx)("div",{role:"group","aria-label":"One-time passcode",className:"flex flex-row items-center gap-2",style:{justifyContent:"space-between"},children:Array.from({length:l}).map((e,t)=>(0,a.jsx)("input",{ref:e=>{e&&(g.current[t]=e)},type:"text",inputMode:m,pattern:"numeric"===m?"\\d*":void 0,autoComplete:0===t?"one-time-code":void 0,"aria-label":"Digit ".concat(t+1),maxLength:1,disabled:c,value:j[t],placeholder:h,onChange:e=>((e,t)=>{let a=n(t.slice(-1),f);a&&(k(e,a),e<l-1&&L(e+1))})(t,e.target.value),onKeyDown:e=>((e,t)=>{let a=t.key;if("Backspace"===a){j[e]?k(e,""):e>0&&(k(e-1,""),L(e-1)),t.preventDefault();return}"ArrowLeft"===a&&(L(e-1),t.preventDefault()),"ArrowRight"===a&&(L(e+1),t.preventDefault()),"Home"===a&&(L(0),t.preventDefault()),"End"===a&&(L(l-1),t.preventDefault())})(t,e),onPaste:S,style:{width:"52px",height:"52px",backgroundColor:"white",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.1)",border:"none",outline:"none",padding:"0",margin:"0",textAlign:"center",fontSize:"20px"},className:"text-center text-xl sm:text-2xl font-medium rounded-full outline-none backdrop-blur-sm text-text-primary focus:border-primary focus:ring-2 focus:ring-primary "+"disabled:opacity-60 disabled:cursor-not-allowed ".concat(x),...0===t&&u?{autoFocus:!0}:{}},t))}),d&&(0,a.jsx)("input",{type:"hidden",name:d,value:j.join("")})]})});var s=l(68519),o=l(95183),c=l(37829);let d=(0,r.forwardRef)((e,t)=>{let{label:l="Password",value:n,defaultValue:i,onChange:d,error:u,showStrength:m=!0,capsLockIndicator:f=!0,inputClassName:p="",className:x="",name:h,placeholder:g="••••••••",autoComplete:v="current-password",disabled:b,id:y,...w}=e,j=(0,r.useId)(),N=void 0!==n,[k,C]=(0,r.useState)(i||""),L=N?n:k,[S,A]=(0,r.useState)(!1),[I,E]=(0,r.useState)(!1),_=(0,r.useRef)(null);(0,r.useEffect)(()=>{t&&("function"==typeof t?t(_.current):t.current=_.current)},[t]);let{level:z}=function(e){if(!e)return{score:0,level:"empty"};let t=0;return(e.length>=8&&(t+=1),e.length>=12&&(t+=1),/[a-z]/.test(e)&&(t+=1),/[A-Z]/.test(e)&&(t+=1),/\d/.test(e)&&(t+=1),/[^A-Za-z0-9]/.test(e)&&(t+=1),t<=2)?{score:t,level:"weak"}:t<=3?{score:t,level:"fair"}:t<=4?{score:t,level:"good"}:{score:t,level:"strong"}}(L);return(0,a.jsxs)("div",{className:"w-full ".concat(x),children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{ref:_,id:y||"pw_".concat(j),name:h,type:S?"text":"password",value:L,onChange:e=>{N?null==d||d(e.target.value):C(e.target.value)},onKeyDown:e=>{if(f){var t;let l=null==(t=e.getModifierState)?void 0:t.call(e,"CapsLock");"boolean"==typeof l&&E(l)}},placeholder:g,autoComplete:v,disabled:b,className:"w-full px-4 py-3 pr-12 bg-background outline-none text-text-primary rounded-3xl shadow-sm placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary transition-colors ".concat(p),...w}),(0,a.jsx)("button",{type:"button",onClick:()=>A(e=>!e),"aria-label":S?"Hide password":"Show password","aria-pressed":S,className:"px-3 grid place-items-center text-text-muted hover:text-text-primary focus:outline-none",style:{position:"absolute",right:"8px",top:"14px"},children:S?(0,a.jsx)(s.A,{size:20}):(0,a.jsx)(o.A,{size:20})})]}),f&&I&&(0,a.jsxs)("div",{className:"mt-1.5 flex items-center gap-1 text-xs text-yellow-400",role:"status","aria-live":"polite",children:[(0,a.jsx)(c.A,{size:14})," Caps Lock is on"]}),u&&(0,a.jsx)("p",{className:"mt-1.5 text-sm text-red-400",children:u}),(e=>{if(!m)return null;let t=["weak","fair","good","strong"].indexOf(e);return(0,a.jsxs)("div",{className:"mt-2","aria-live":"polite","aria-atomic":!0,children:[(0,a.jsx)("div",{className:"flex gap-1",role:"meter","aria-valuemin":0,"aria-valuemax":3,"aria-valuenow":Math.max(0,t),"aria-label":"Password strength",children:[0,1,2,3].map(l=>(0,a.jsx)("div",{className:"h-1.5 flex-1 rounded-full transition-all duration-300 ".concat(l<=t?"weak"===e?"bg-red-500":"fair"===e?"bg-yellow-500":"good"===e?"bg-green-500":"bg-emerald-500":"bg-white/15")},l))}),"empty"!==e&&(0,a.jsxs)("p",{className:"mt-1 text-xs text-neutral-400",children:["Strength: ",{empty:"",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"}[e]]})]})})(z)]})}),u=e=>{let{className:t,...l}=e;return(0,a.jsx)("input",{...l,className:"".concat(t," w-full px-4 py-3 rounded-full shadow-sm placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary transition-colors bg-background")})};var m=l(66107),f=l(51428);let p=e=>{let{children:t,className:l,disabled:r,loading:n,...i}=e;return(0,a.jsx)("button",{...i,disabled:r||n,className:"".concat(l," flex justify-center py-3 px-4 roun
1ded-full shadow-sm text-md font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-secondary disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200 transform hover:scale-[1.02] cursor-pointer"),children:n?(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(m.P.div,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},className:"mx-auto w-6 h-6 text-text-secondary",children:(0,a.jsx)(f.A,{className:"w-full h-full"})}),t]}):t})},x=e=>{let{children:t,className:l="",variant:r="default",padding:n="md",shadow:i="md",hover:s=!1,clickable:o=!1,onClick:c,onMouseEnter:d,onMouseLeave:u,style:f,id:p,"data-testid":x}=e,h="\n    rounded-2xl transition-all duration-200\n    ".concat({default:"bg-background border border-border",secondary:"bg-background-secondary border border-border",outline:"bg-transparent border-2 border-border"}[r],"\n    ").concat({sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[n],"\n    ").concat({none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"}[i],"\n    ").concat(s?"hover:shadow-lg hover:-translate-y-1":"","\n    ").concat(o?"cursor-pointer":"","\n    ").concat(l,"\n  "),g={onClick:c,onMouseEnter:d,onMouseLeave:u,style:f,id:p,"data-testid":x};return o?(0,a.jsx)(m.P.div,{className:h,whileHover:{scale:1.02,y:-2},whileTap:{scale:.98},transition:{duration:.2},...g,children:t}):(0,a.jsx)("div",{className:h,...g,children:t})},h=e=>{let{children:t,className:l="",...r}=e;return(0,a.jsx)("div",{className:"".concat(l),...r,children:t})};var g=l(10254),v=l(81806);let b=(0,r.forwardRef)((e,t)=>{let{className:l="",label:r,description:n,indeterminate:i=!1,size:s="md",error:o,disabled:c,checked:d,...u}=e,f={sm:12,md:16,lg:20};return(0,a.jsxs)("div",{className:"flex items-start space-x-3 ".concat(l),children:[(0,a.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,a.jsx)("input",{ref:t,type:"checkbox",checked:!i&&d,disabled:c,className:"sr-only",...u}),(0,a.jsx)(m.P.div,{className:"\n              ".concat({sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]," rounded-md border-2 flex items-center justify-center\n              transition-all duration-200 cursor-pointer shadow-sm\n              ").concat(c?"opacity-50 cursor-not-allowed bg-gray-100 border-gray-200":d||i?"bg-secondary":"bg-background border-border","\n              ").concat(o?"border-red-500":"","\n            "),whileHover:c?{}:{scale:1.05},whileTap:c?{}:{scale:.95},onClick:()=>{var e;return!c&&(null==(e=u.onChange)?void 0:e.call(u,{target:{checked:!d}}))},children:(0,a.jsx)(m.P.div,{initial:!1,animate:{scale:d||i?1:0,opacity:d||i?1:0},transition:{duration:.2},children:i?(0,a.jsx)(g.A,{size:f[s],className:"text-white"}):(0,a.jsx)(v.A,{size:f[s],className:"text-white"})})})]}),(r||n)&&(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[r&&(0,a.jsx)("label",{className:"\n                  block text-sm font-light cursor-pointer\n                  ".concat(c?"text-text-muted":"text-text-primary","\n                  ").concat(o?"text-red-600":"","\n                "),onClick:()=>{var e;return!c&&(null==(e=u.onChange)?void 0:e.call(u,{target:{checked:!d}}))},children:r}),n&&(0,a.jsx)("p",{className:"text-xs mt-1 ".concat("text-text-muted"),children:n}),o&&(0,a.jsx)("p",{className:"text-xs text-red-600 mt-1",children:o})]})]})});b.displayName="Checkbox";var y=l(71320),w=l(23739);l(94931);let j=e=>{let{value:t,placeholder:l="Select a date",disabled:r=!1,minDate:n,maxDate:i,disabledDates:s=[],className:o="",label:c,helperText:d,error:u,onChange:m,showTimeSelect:f=!1}=e;return(0,a.jsxs)("div",{className:"w-full ".concat(o),children:[c&&(0,a.jsx)("label",{className:"block text-sm font-medium text-text-primary mb-2",children:c}),(0,a.jsx)(w.Ay,{showIcon:!0,showTimeSelect:f,disabled:r,selected:t,minDate:n||void 0,maxDate:i||void 0,excludeDates:s,onChange:m,placeholderText:l,icon:(0,a.jsx)(y.A,{className:"w-4 h-4",style:{color:"#B4B4B4"}})}),d&&(0,a.jsx)("p",{className:"text-sm text-text-muted mt-1",children:d}),u&&(0,a.jsx)("p",{className:"text-sm text-red-500 mt-1",children:u})]})};(0,r.forwardRef)((e,t)=>{let{className:l="",label:r,error:n,helperText:i,...s}=e;return(0,a.jsxs)("div",{className:"w-full",children:[r&&(0,a.jsx)("label",{className:"block text-sm text-text-primary mb-1",children:r}),(0,a.jsx)("textarea",{ref:t,className:"\n            w-full px-4 py-3 rounded-2xl shadow-sm resize-none\n            placeholder-text-muted text-text-primary\n            focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary\n            transition-all duration-200 bg-background border\n            ".concat(n?"border-red-500 focus:ring-red-500 focus:border-red-500":"border-border","\n            ").concat(l,"\n          "),...s}),n&&(0,a.jsx)("p",{className:"mt-2 text-sm text-red-600",children:n}),i&&!n&&(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:i})]})}).displayName="Textarea";var N=l(75471),k=l(95180),C=l(62157);let L=e=>{let{options:t,value:l,defaultValue:r,placeholder:n="Select an option",disabled:i=!1,className:s="",selectClassName:o="",side:c="bottom",error:d,onChange:u,onValueChange:m}=e;return(0,a.jsxs)("div",{className:s,children:[(0,a.jsxs)(N.bL,{value:l,defaultValue:r,onValueChange:e=>{null==u||u(e),null==m||m(e)},disabled:i,children:[(0,a.jsxs)(N.l9,{className:"".concat(o,"\n            w-full px-4 py-3 rounded-3xl shadow-sm text-left\n            focus:outline-none focus:ring-2 focus:ring-secondary focus:border-secondary\n            transition-all duration-200 bg-background \n            flex items-center justify-between\n            ").concat(i?"opacity-50 cursor-not-allowed":"hover:shadow-md cursor-pointer","\n            data-[state=open]:ring-2 data-[state=open]:ring-secondary data-[state=open]:border-secondary\n          "),children:[(0,a.jsx)(N.WT,{placeholder:n,className:"text-text-primary data-[placeholder]:text-text-muted"}),(0,a.jsx)(N.In,{asChild:!0,children:(0,a.jsx)(k.A,{className:"w-5 h-5 text-text-muted transition-transform duration-200 data-[state=open]:rotate-180"})})]}),(0,a.jsx)(N.ZL,{children:(0,a.jsxs)(N.UC,{className:"\n              bg-background border border-border rounded-2xl shadow-lg overflow-hidden\n              z-[9999] min-w-[var(--radix-select-trigger-width)]\n              data-[state=open]:animate-in data-[state=closed]:animate-out\n              data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\n              data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\n              data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2\n            ",side:c,sideOffset:8,children:[(0,a.jsx)(N.PP,{className:"flex cursor-default items-center justify-center h-6",children:(0,a.jsx)(C.A,{className:"w-4 h-4 text-text-muted"})}),(0,a.jsx)(N.LM,{className:"p-1 max-h-60",children:t.map(e=>(0,a.jsx)(S,{value:e.value,disabled:e.disabled,children:e.label},e.value))}),(0,a.jsx)(N.wn,{className:"flex cursor-default items-center justify-center h-6",children:(0,a.jsx)(k.A,{className:"w-4 h-4 text-text-muted"})})]})})]}),d&&(0,a.jsx)("p",{className:"mt-2 text-sm text-red-600",children:d})]})},S=r.forwardRef((e,t)=>
1{let{className:l,children:r,...n}=e;return(0,a.jsxs)(N.q7,{ref:t,className:"\n      relative flex w-full cursor-pointer select-none items-center rounded-lg py-2 px-3 text-sm\n      outline-none transition-colors\n      focus:bg-background-secondary focus:text-text-primary\n      data-[disabled]:pointer-events-none data-[disabled]:opacity-50\n      data-[state=checked]:bg-primary/10 data-[state=checked]:text-primary\n      ".concat(l,"\n    "),...n,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",style:{right:"0px"},children:(0,a.jsx)(N.VF,{children:(0,a.jsx)(v.A,{className:"h-4 w-4"})})}),(0,a.jsx)(N.p4,{children:r})]})});S.displayName=N.q7.displayName;var A=l(89450),I=l(46798);let E=e=>{let{options:t,value:l,defaultValue:n=[],placeholder:i="Select options",disabled:s=!1,maxSelections:o,className:c="",selectClassName:d="",label:u,helperText:f,error:p,onChange:x,onBlur:h}=e,[g,b]=(0,r.useState)(!1),[y,w]=(0,r.useState)(l||n),j=(0,r.useRef)(null);return(0,r.useEffect)(()=>{void 0!==l&&w(l)},[l]),(0,r.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&(b(!1),null==h||h())};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h]),(0,a.jsxs)("div",{className:"w-full ".concat(c),children:[u&&(0,a.jsx)("label",{className:"block text-sm text-text-primary mb-1",children:u}),(0,a.jsxs)("div",{className:"relative",ref:j,children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{s||b(!g)},disabled:s,className:"\n            ".concat(d,"\n            w-full px-4 py-3 rounded-3xl shadow-sm text-left relative\n            focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary\n            transition-all duration-200 bg-background border border-border\n            overflow-hidden\n            ").concat(s?"opacity-50 cursor-not-allowed":"hover:shadow-md cursor-pointer","\n            ").concat(g?"ring-2 ring-primary border-primary":"","\n            ").concat(p?"border-red-500 focus:ring-red-500":"","\n          "),children:[y.length>0&&(0,a.jsx)("div",{className:"mb-3 overflow-x-auto align-middle absolute",style:{maxWidth:"80%",top:"0px",left:"0px",height:"100%",paddingTop:"8px",borderRadius:"100px"},children:(0,a.jsx)("div",{className:"flex gap-2 pb-1",style:{minWidth:"max-content"},children:t.filter(e=>y.includes(e.value)).map(e=>(0,a.jsxs)(m.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},className:"inline-flex items-center gap-2 px-3 py-1 bg-accent-yellow text-background rounded-full text-sm font-medium flex-shrink-0",children:[e.icon&&(0,a.jsx)("span",{children:e.icon}),(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("button",{onClick:()=>(e=>{let t=y.filter(t=>t!==e);w(t),null==x||x(t)})(e.value),className:"ml-1 hover:bg-primary/20 rounded-full p-0.5 transition-colors",disabled:s,children:(0,a.jsx)(I.A,{size:12})})]},e.value))})}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:y.length>0?"text-text-primary":"text-text-muted",children:y.length>0?"":i}),(0,a.jsx)(k.A,{className:"w-5 h-5 text-text-muted transition-transform duration-200 ".concat(g?"rotate-180":"")})]})]}),(0,a.jsx)(A.N,{children:g&&(0,a.jsx)(m.P.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2},className:"absolute z-[9999] w-full mt-2 bg-background border border-border rounded-2xl shadow-lg overflow-hidden",children:(0,a.jsx)("div",{className:"max-h-60 overflow-y-auto",children:t.map(e=>{let t=y.includes(e.value),l=e.disabled||o&&!t&&y.length>=o;return(0,a.jsxs)(m.P.button,{type:"button",onClick:()=>(e=>{let t;if(!s){if(y.includes(e))t=y.filter(t=>t!==e);else{if(o&&y.length>=o)return;t=[...y,e]}w(t),null==x||x(t)}})(e.value),disabled:l||!1,className:"\n                        w-full px-4 py-3 text-left transition-colors flex items-center justify-between\n                        ".concat(l?"opacity-50 cursor-not-allowed":"hover:bg-background-secondary cursor-pointer","\n                        ").concat(t?"bg-primary/10 text-primary":"text-text-primary","\n                      "),whileHover:l?{}:{backgroundColor:"var(--background-secondary)"},whileTap:l?{}:{scale:.98},children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e.icon&&(0,a.jsx)("span",{children:e.icon}),(0,a.jsx)("span",{children:e.label})]}),t&&(0,a.jsx)(m.P.div,{initial:{scale:0},animate:{scale:1},transition:{duration:.2},children:(0,a.jsx)(v.A,{className:"w-4 h-4"})})]},e.value)})})})})]}),f&&!p&&(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:f}),p&&(0,a.jsx)("p",{className:"mt-2 text-sm text-red-600",children:p})]})};var _=l(79986),z=l(72037);let V=e=>{let{min:t=0,max:l=100,step:n=1,value:i,defaultValue:s=t,disabled:o=!1,className:c="",label:d,showValue:u=!0,displayValue:m,marks:f,onChange:p,onChangeComplete:x}=e,[h,g]=(0,r.useState)(null!=i?i:s),[v,b]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{void 0!==i&&g(i)},[i]),(0,a.jsxs)("div",{className:"w-full ".concat(c),children:[d&&(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsx)("label",{className:"text-sm font-medium text-text-primary",children:d}),u&&(0,a.jsx)("span",{className:"text-sm text-text-muted bg-background-secondary px-2 py-1 rounded-lg",children:h})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(z.Kq,{children:(0,a.jsxs)(z.bL,{open:v,children:[(0,a.jsxs)(_.bL,{className:"\n                relative flex items-center select-none touch-none w-full rounded-full\n                ".concat(o?"opacity-50 cursor-not-allowed":"","\n              "),value:[h],onValueChange:e=>{let t=e[0];void 0!==t&&(g(t),null==p||p(t),v||b(!0))},onValueCommit:e=>{let t=e[0];void 0!==t&&(null==x||x(t),b(!1))},max:l,min:t,step:n,disabled:o,children:[(0,a.jsx)(_.CC,{className:"relative grow rounded-full h-2",style:{height:"10px",width:"100%",backgroundColor:"#cccccc"},children:(0,a.jsx)(_.Q6,{className:"absolute rounded-full h-full",style:{height:"10px",width:"100%",backgroundColor:"#cccccc"}})}),(0,a.jsx)(z.l9,{asChild:!0,children:(0,a.jsx)(_.zi,{className:"\n                    block w-5 h-5 bg-accent-yellow rounded-full shadow-md border-2 border-background\n                    transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2\n                    ".concat(o?"cursor-not-allowed":"cursor-grab hover:scale-110 focus:scale-110","\n                    data-[state=open]:scale-\n                    \n                  "),style:{border:"3px solid #ffffff",width:"22px",height:"22px"},"aria-label":d||"Slider value"})})]}),(0,a.jsx)(z.ZL,{children:(0,a.jsxs)(z.UC,{className:"bg-accent-yellow text-white px-2 py-1 rounded text-sm shadow-lg z-50",sideOffset:5,side:"top",align:"start",children:[(e=>{var t;return null==f||null==(t=f.find(t=>t.value===e))?void 0:t.label})(h)||h,(0,a.jsx)(z.i3,{className:"fill-accent-yellow",style:{fill:"var(--accent-yellow)"}})]})})]})}),(0,a.jsxs)("div",{className:"flex justify-between mt-2 text-xs text-text-muted",children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)("span",{children:l})]})]})]})};var R=l(41060);let P=(0,r.forwardRef)((e,t)=>
1{let{className:l="",label:r,description:n,size:i="md",error:s,disabled:o=!1,checked:c=!1,onChange:d,onCheckedChange:u,id:m,name:f,...p}=e,x={sm:{root:"w-8 h-4",thumb:"w-3 h-3 data-[state=checked]:translate-x-4"},md:{root:"w-11 h-6",thumb:"w-5 h-5 data-[state=checked]:translate-x-5"},lg:{root:"w-14 h-7",thumb:"w-6 h-6 data-[state=checked]:translate-x-7"}}[i];return(0,a.jsxs)("div",{className:"flex items-start space-x-3 ".concat(l),children:[(0,a.jsx)(R.bL,{ref:t,id:m,name:f,checked:c,onCheckedChange:e=>{null==d||d({target:{checked:e}}),null==u||u(e)},disabled:o,className:"\n          ".concat(x.root," rounded-full relative transition-colors duration-200\n          focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2\n          ").concat(o?"opacity-50 cursor-not-allowed":"cursor-pointer hover:scale-[1.02]","\n          ").concat(c?"bg-secondary":"bg-background-secondary","\n          ").concat(s?"border-red-500":"","\n        "),style:{backgroundColor:c?"":"#BDC3C7",borderWidth:"0px",minWidth:"45px"},...p,children:(0,a.jsx)(R.zi,{className:"\n            ".concat(x.thumb," bg-background rounded-full shadow-md\n            block transition-transform duration-200 translate-x-0.5\n            ").concat(o?"bg-gray-200":"","\n            ").concat("bg-background","\n          "),style:{transition:"transform 100ms",transform:c?"translateX(22px)":"translateX(0px)",willChange:"transform"}})}),(r||n)&&(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[r&&(0,a.jsx)("label",{htmlFor:m,className:"\n                block text-sm font-medium cursor-pointer\n                ".concat(o?"text-text-muted":"text-text-primary","\n                ").concat(s?"text-red-600":"","\n              "),children:r}),n&&(0,a.jsx)("p",{className:"text-xs mt-1 ".concat("text-text-muted"),children:n}),s&&(0,a.jsx)("p",{className:"text-xs text-red-600 mt-1",children:s})]})]})});P.displayName="Switch";let T=e=>{let{options:t,value:l,defaultValue:n,name:i,layout:s="vertical",size:o="md",disabled:c=!1,className:d="",label:u,helperText:f,error:p,onChange:x}=e,[h,g]=r.useState(l||n||"");r.useEffect(()=>{void 0!==l&&g(l)},[l]);let v=e=>{c||(g(e),null==x||x(e))},b={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"};return(0,a.jsxs)("div",{className:"w-full ".concat(d),children:[u&&(0,a.jsx)("label",{className:"block text-sm font-medium text-text-primary mb-3",children:u}),(0,a.jsx)("div",{className:{horizontal:"flex flex-wrap gap-4",vertical:"space-y-3",grid:"grid grid-cols-2 gap-4"}[s],children:t.map(e=>{let t=h===e.value,l=c||e.disabled;return(0,a.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,a.jsxs)("div",{className:"relative flex-shrink-0 mt-0.5",children:[(0,a.jsx)("input",{type:"radio",name:i,value:e.value,checked:t,disabled:l,onChange:()=>v(e.value),className:"sr-only"}),(0,a.jsx)(m.P.div,{className:"\n                    ".concat(b[o]," rounded-full border-2 flex items-center justify-center\n                    transition-all duration-200 cursor-pointer\n                    ").concat(l?"opacity-50 cursor-not-allowed bg-gray-100 border-gray-200":t?"bg-primary border-primary":"bg-background border-border hover:border-primary","\n                    ").concat(p?"border-red-500":"","\n                  "),whileHover:l?{}:{scale:1.05},whileTap:l?{}:{scale:.95},onClick:()=>v(e.value),children:(0,a.jsx)(m.P.div,{initial:!1,animate:{scale:+!!t,opacity:+!!t},transition:{duration:.2},className:"\n                      rounded-full bg-white\n                      ".concat("sm"===o?"w-1.5 h-1.5":"md"===o?"w-2 h-2":"w-2.5 h-2.5","\n                    ")})})]}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("label",{className:"\n                    block text-sm font-medium cursor-pointer\n                    ".concat(l?"text-text-muted":"text-text-primary","\n                    ").concat(p?"text-red-600":"","\n                  "),onClick:()=>v(e.value),children:e.label}),e.description&&(0,a.jsx)("p",{className:"text-xs mt-1 ".concat("text-text-muted"),children:e.description})]})]},e.value)})}),f&&!p&&(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:f}),p&&(0,a.jsx)("p",{className:"mt-2 text-sm text-red-600",children:p})]})},B=e=>{let{isOpen:t,onClose:l,children:n,title:i,size:s="md",closeOnOverlayClick:o=!0,closeOnEscape:c=!0,showCloseButton:d=!0,overlayOpacity:u=.6,className:f="",headerClassName:p="",titleClassName:x="",style:h}=e,g={sm:"300px",md:"500px",lg:"700px",xl:"900px",full:"100%"};(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&c&&l()};return t&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow="unset"}},[t,c,l]);let v=r.Children.toArray(n),b=v.find(e=>{var t;return r.isValidElement(e)&&(null==(t=e.type)?void 0:t.__isModalFooter)===!0}),y=v.filter(e=>{var t;return!(r.isValidElement(e)&&(null==(t=e.type)?void 0:t.__isModalFooter)===!0)});return(0,a.jsx)(A.N,{children:t&&(0,a.jsxs)(m.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:e=>{e.target===e.currentTarget&&o&&l()},children:[(0,a.jsx)(m.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 backdrop-blur-sm",style:{backgroundColor:"rgba(0, 0, 0, ".concat(u,")")}}),(0,a.jsxs)(m.P.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{type:"spring",duration:.3},className:"\n              relative w-full max-h-[90vh] \n              bg-background rounded-2xl shadow-xl overflow-hidden flex flex-col\n              ".concat(f,"\n            "),style:{width:g[s],maxWidth:g[s],maxHeight:"full"===s?"100vh":"90vh",height:"fit-content",...h},children:[(i||d)&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-6 pb-0 border-b border-border bg-background-secondary flex-shrink-0 ".concat(p),children:[(0,a.jsx)("div",{className:"flex-1 min-w-0 pr-2",children:i&&(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-primary ".concat(x),children:i})}),d&&(0,a.jsx)("button",{onClick:l,className:"p-2 rounded-full hover:bg-background-tertiary transition-colors ml-4 cursor-pointer shrink-0","aria-label":"Close modal",children:(0,a.jsx)(I.A,{size:20,className:"text-text-muted"})})]}),(0,a.jsx)("div",{className:"overflow-y-auto flex-1 min-h-0",children:y}),b&&(0,a.jsx)("div",{className:"flex-shrink-0",children:b})]})]})})},M=e=>{let{children:t,className:l="",fullHeight:r=!1}=e;return(0,a.jsx)("div",{className:"p-6 bg-background-secondary ".concat(l),style:{height:r?"calc(100vh - 300px)":"",overflow:"auto"},children:t})},W=Object.assign(e=>{let{children:t,className:l=""}=e;return(0,a.jsx)("div",{className:"p-6 bg-background-secondary ".concat(l),children:t})},{__isModalFooter:!0});function D(e){return null==e||("string"==typeof e?""===e.trim():!!Array.isArray(e)&&0===e.length)}let O=["childAge","child_age","childsAge","child-age","learnerAge","learner_age","age","unitGradeLevel"],H=["familyVibe","toneStyle","styleAndVibe","styleVibe","familyLearningVibe","preferredVibe"],F={"Nature-Based":["nature","ecology","outdoor","garden","animal","plant","wildlife"],"Literature-Rich":["historical fiction","books","literature","story","writing","poetry"],"Scientific & Exploratory":["science","experiment","STEM","engineering","robotics"],"Artistic & Creative":["art","craft","crafting","photography","music","creative"],"Historical / Time Travel":["history","historical","ancient","medieval"],"Adventure / Survivalist":["adventure","survival","camping","hiking"],"Real-World & Practical":["cooking","money","budget","life skills"]};function U(e){return e.replace(/[^a-z0-9]/g,"").toLowerCase()}function q(e,t,l){for(let a of l){let l=t.get(a.toLowerCase());if(l){let t=e.find(e=>e.fieldId===l);if(t)return t}}let a=new Set(l.map(U));for(let t of e){let e=U(t.fieldId);if(a.has(e))return t;for(let l of a)if(e.includes(l)||l.includes(e))return t}return null}function K(e){var t;return null!=(t=e.options)?t:[]}function G(e){var t;if(U(e.fieldId).includes("sibling"))return!1;let l=(null!=(t=e.label)?t:"").toLowerCase();if(l.includes("child's age")||l.includes("child age")||l.includes("learner age")||l.includes("age band"))return!0;let a=U(e.fieldId);return"childage"===a||"learnerage"===a||"age"===a||!!a.includes("unitgradelevel")&&K(e).some(e=>/\d+\s*-\s*\d+\s*years?|\d+\s*years?\s*old|\d+\s*years?/i.test(String(e.value)))}function Z(e){if(!(null==e?void 0:e.trim()))return null;let t=parseInt(e.trim(),10);return Number.isNaN(t)?null:t}function Y(e){var t,l;let a=null==(l=e.basics)||null==(t=l.age)?void 0:t.trim();return a||("string"==typeof e.age?e.age.trim():"")||void 0}function $(e,t,l){var a,r,n;let i={},s=Y(l);if(!s)return i;let o=null!=(a=q(e,t,O.filter(e=>"unitGradeLevel"!==e)))?a:null;if(o&&!G(o)&&(o=null),!o){let l=t.get("unitgradelevel")?e.find(e=>e.fieldId===t.get("unitgradelevel")):e.find(e=>"unitgradelevel"===U(e.fieldId));l&&G(l)&&(o=l)}if(!o){for(let t of e)if(G(t)){o=t;break}}if(o)return i[o.fieldId]=function(e,t){let l=Z(t),a=K(e);if(!a.length)return t;if(null!==l)for(let e of a){let a=String(e.value);if(a.includes("-")){let t=a.match(/(\d+)\s*-\s*(\d+)/);if(t){let a=parseInt(t[1],10),r=parseInt(t[2],10);if(!Number.isNaN(a)&&!Number.isNaN(r)&&l>=a&&l<=r)return e.value}}if(a.endsWith("+")){let t=parseInt(a.replace("+",""),10);if(!Number.isNaN(t)&&l>=t)return e.value}if(a===t||a===String(l))return e.value;let r=Z(a);if(null!==r&&r===l)return e.value}let r=et(e,t);return null!=r?r:t}(o,s),i;let c=q(e,t,["unitGradeLevel","gradeLevel","grade_level"]);if(c&&!G(c)&&U(c.fieldId).includes("grade")&&K(c).some(e=>/grade|pre-k|kindergarten/i.test(String(e.value)))){let e=null==(n=l.basics)||null==(r=n.gradeLevel)?void 0:r.trim();if(e){let t=et(c,e);i[c.fieldId]=null!=t?t:e}}return i}function X(e){var t,l,a;let r=el(e.config);if(!r)return{patch:{},meta:{familyVibeSource:"none",missingFields:[]}};let{allFields:n,fieldIdMap:i}=r,s=null!=(t=e.existingFormData)?t:{},o=new Set(null!=(l=e.protectedKeys)?l:[]),c={...$(n,i,e.child)},d=function(e,t,l){let a=q(e,t,H);if(!a)return{patch:{},source:"none",missing:null};let{raw:r,source:n}=function(e){var t,l;let a=e.pickYourPathOverrides;if(null==a||null==(t=a.styleVibe)?void 0:t.trim())return{raw:a.styleVibe.trim(),source:"pickYourPathOverrides.styleVibe"};let r="string"==typeof e.styleAndVibe?String(e.styleAndVibe).trim():"";if(r)return{raw:r,source:"profile.styleAndVibe"};let n="string"==typeof e.familyVibe?String(e.familyVibe).trim():"";if(n)return{raw:n,source:"profile.familyVibe"};let i=(null!=(l=e.interests)?l:[]).join(" ").toLowerCase();if(i.trim()){for(let[e,t]of Object.entries(F))if(t.some(e=>i.includes(e.toLowerCase())))return{raw:e,source:"interests"}}return{raw:void 0,source:"none"}}(l),i=r,s=n;i||(i="Real-World & Practical",s="none");let o=function(e,t){let l=t.trim();if(!l)return;let a=K(e),r=a.find(e=>e.value===l||e.label===l);if(r)return r.value;let n=l.toLowerCase(),i=a.find(e=>{var t;return e.value.toLowerCase().startsWith(n)||n.startsWith(null!=(t=e.value.toLowerCase().split(":")[0])?t:"")||e.label.toLowerCase().startsWith(n)});return i?i.value:et(e,t)}(a,i);if(!o){var c;return{patch:{},source:s,missing:{fieldId:a.fieldId,label:null!=(c=a.label)?c:"Family Vibe",reason:"none"===n?"missing_profile_source":"user_required_choice"}}}let d="multiselect"===a.type||"checkbox-group"===a.type||"tags"===a.type;return{patch:{[a.fieldId]:d?[o]:o},source:s,missing:null}}(n,i,e.child);Object.assign(c,d.patch);let u=[];
1if(d.missing&&u.push(d.missing),0===Object.keys($(n,i,e.child)).length&&Y(e.child)){let e=q(n,i,O);(null==e?void 0:e.required)&&u.push({fieldId:e.fieldId,label:null!=(a=e.label)?a:"Child's Age",reason:"missing_profile_source"})}return{patch:function(e,t,l){let a={};for(let[r,n]of Object.entries(e))!l.has(r)&&D(t[r])&&(D(n)||(a[r]=n));return a}(c,s,o),meta:{familyVibeSource:d.source,missingFields:u}}}let Q="__pirchProfileBackgroundNotes";function J(e,t){for(let l of t){let t=e.get(l.toLowerCase());if(t)return t}return null}function ee(e){let t=e.toLowerCase().replace(/[^a-z0-9]/g,"");return!!(t.includes("grade")||t.includes("sibling")||t.includes("modifyforsibling"))}function et(e,t){let l=t.trim();if(!l)return;let a=e.type;if("select"!==a&&"multiselect"!==a&&"radio"!==a)return;let r=e.options;if(!(null==r?void 0:r.length))return;let n=l.toLowerCase(),i=e=>e.toLowerCase().replace(/[\s_/\-]+/g,"").replace(/[^a-z0-9+]/g,"");for(let e of r)if(e.value.toLowerCase()===n||e.label.toLowerCase()===n)return e.value;for(let e of r){let t=e.value.toLowerCase(),l=e.label.toLowerCase();if(n.includes(t)||t.includes(n)||n.includes(l)||l.includes(n))return e.value}let s=i(l);for(let e of r){let t=i(e.value),l=i(e.label);if(t===s||l===s||s.length>=4&&(s.includes(t)||t.includes(s)||s.includes(l)||l.includes(s)))return e.value}if(/below|behind|struggling/i.test(l)){let e=r.find(e=>/below/i.test(e.label)||/below/i.test(e.value));if(e)return e.value}if(/above|advanced/i.test(n)){let e=r.find(e=>/above|advanced/i.test(e.label)||/above/i.test(e.value));if(e)return e.value}if(/on grade|at grade|grade level|on-level/i.test(n)){let e=r.find(e=>/on grade|on-grade|on level/i.test(e.label)||/on-grade|ongradelevel|on grade level/i.test(e.value));if(e)return e.value}if(/early|beginning|starting|pre-reader/i.test(n)){let e=r.find(e=>/early|beginning/i.test(e.label)||/early|beginning/i.test(e.value));if(e)return e.value}if(/fluent|confident reader/i.test(n)){let e=r.find(e=>/fluent/i.test(e.label)||/fluent/i.test(e.value));if(e)return e.value}if(/transitional/i.test(n)){let e=r.find(e=>/transitional/i.test(e.label)||/transitional/i.test(e.value));if(e)return e.value}if(/not sure|unsure|don'?t know|use age|unknown/i.test(n)){let e=r.find(e=>/not sure|age as guide/i.test(e.label)||/not-sure|not sure use age/i.test(e.value));if(e)return e.value}if(/lexile|l\d{3,}|br\d+/i.test(l)){let e=r.find(e=>/lexile|range/i.test(e.label)||/lexile|use-lexile/i.test(e.value));if(e)return e.value}}function el(e){if(!(null==e?void 0:e.sections))return null;let t=e.sections.flatMap(e=>e.fields||[]),l=new Map;return t.forEach(e=>{l.set(e.fieldId.toLowerCase(),e.fieldId)}),{allFields:t,fieldIdMap:l,findMatchingField:e=>{for(let t of e){let e=t.toLowerCase();for(let[t,a]of l.entries()){if(t===e||t.startsWith(e)||e.startsWith(t))return a;if(e.length<=4){if(RegExp("(^|_|\\b)".concat(e,"(_|\\b|$)"),"i").test(t))return a}else if(t.includes(e)||e.includes(t))return a}}return null}}}function ea(e){var t;let l=el(e);if(!l)return null;let{allFields:a,findMatchingField:r}=l,n=r(["parentpersonalnote","personalnote","personal_note","notes","additionalnotes","additional_notes"]);if(n)return n;let i=a.find(e=>"textarea"===e.type);return null!=(t=null==i?void 0:i.fieldId)?t:null}function er(e,t){let l={...e},a=l[Q];if(delete l[Q],"string"!=typeof a||!a.trim())return l;let r=ea(t);if(!r)return l;let n=l[r],i="string"==typeof n?n:"",s=i.trim()?"\n\n":"";return l[r]=i+s+a,l}function en(e){if(null!=e){if(Array.isArray(e)){let t=e.filter(e=>"string"==typeof e).map(e=>e.trim()).filter(Boolean);return t.length>0?t.join(", "):void 0}if("string"==typeof e&&e.trim())return e.trim()}}function ei(e,t){var l,a,r,n,i,s,o,c,d,u,m,f,p,x,h,g,v,b,y,w,j,N;let k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},C=arguments.length>3?arguments[3]:void 0,L=el(t);if(!L)return{};let S={},A=[],{allFields:I,fieldIdMap:E,findMatchingField:_}=L;if(null==(l=e.basics)?void 0:l.name){let t=_(["childname","name","child_name","learnername"]);t?S[t]=e.basics.name:A.push("Child Name: ".concat(e.basics.name))}if(null==(a=e.basics)?void 0:a.age){let t=null!=(c=J(E,["childAge","child_age","learnerAge","learner_age"]))?c:null;if(t&&ee(t)&&(t=null),t||(t=_(["childage","child_age","learnerage","learner_age"])),t&&ee(t)&&(t=null),!t){let e=_(["age"]);e&&!ee(e)&&(t=e)}if(t&&!ee(t)){let l=I.find(e=>e.fieldId===t);
1if(l&&"select"===l.type&&l.options&&(null==(d=e.basics)?void 0:d.age)){let a=e.basics.age,r=parseInt(a,10);if(isNaN(r))S[t]=e.basics.age;else{let n=l.options.find(e=>{let t=e.value;if(t.includes("-")){let e=t.split("-").map(e=>parseInt(e.trim(),10));if(2===e.length){let[t,l]=e;if(void 0!==t&&void 0!==l&&!isNaN(t)&&!isNaN(l)&&r>=t&&r<=l)return!0}}if(t.endsWith("+")){let e=parseInt(t.replace("+",""),10);if(!isNaN(e)&&r>=e)return!0}return t===a||t===r.toString()});n?S[t]=n.value:S[t]=e.basics.age}}else S[t]=e.basics.age}else A.push("Age: ".concat(e.basics.age))}if(null==(r=e.basics)?void 0:r.gradeLevel){let t=e.basics.gradeLevel,l=e.basics.gradeLevel.match(/Grade\s*(\d+)/i);l&&l[1]&&(t=l[1]);let a=_(["gradelevel","grade_level","unitgradelevel"]);if(!a){let e=_(["grade"]);e&&!e.toLowerCase().includes("age")&&(a=e)}if(a&&!a.toLowerCase().includes("age")){let e=I.find(e=>e.fieldId===a);if(e&&"select"===e.type&&e.options){let l=e.options.find(e=>e.value.toLowerCase().includes(t.toLowerCase())||e.label.toLowerCase().includes(t.toLowerCase()));l?S[a]=l.value:S[a]=t}else S[a]=t}else A.push("Grade Level: ".concat(e.basics.gradeLevel))}if(e.learningStyles&&e.learningStyles.length>0){let t=E.get("learningstyle")||_(["learningstyle","learning_styles","learningstyles","learning_style"]);if(t){let l=I.find(e=>e.fieldId===t);if(l&&("select"===l.type||"multiselect"===l.type||"checkbox-group"===l.type||"radio"===l.type))if(l.options){let a=[];e.learningStyles.forEach(e=>{let t=l.options.find(t=>{let l=t.value.toLowerCase(),a=t.label.toLowerCase(),r=e.toLowerCase();if(l===r||a===r||l.includes(r)||a.includes(r)||r.includes(l)||r.includes(a))return!0;let n=r.replace(/\s+/g,"").replace(/[^a-z]/g,"");for(let[e,t]of Object.entries({visual:["visual"],auditory:["auditory"],kinesthetic:["kinesthetic"],readingwriting:["reading-writing","reading/writing","readingwriting"],"reading-writing":["reading-writing","reading/writing","readingwriting"],logicalmath:["math-logic","logical","mathematical","mathlogic"],"math-logic":["math-logic","logical","mathematical","mathlogic"],social:["social","social-emotional"],"social-emotional":["social","social-emotional"],solitary:["solitary"],creative:["creative-expressive","creative","expressive"],"creative-expressive":["creative-expressive","creative","expressive"],nature:["nature-based","nature"],"nature-based":["nature-based","nature"],mixed:["mixed","i'm not sure","not sure"]}))if((n===e.replace(/\s+/g,"").replace(/[^a-z]/g,"")||r.includes(e)||e.includes(r))&&t.some(e=>l.includes(e)||a.includes(e)||e.includes(l)||e.includes(a)))return!0;for(let[e,t]of Object.entries({visual:["sees it","pictures","charts","videos","diagrams","visual"],auditory:["hears it","listening","songs","discussions","verbal","auditory"],kinesthetic:["does it","movement","hands-on","activities","kinesthetic"],readingwriting:["reading","writing","books","written words","journaling","lists"],logicalmath:["patterns","puzzles","sequencing","numbers","logical","mathematical"],social:["learns with others","group work","discussions","social","collaboration"],solitary:["needs space","quiet","independent","solitary"],creative:["outside the box","art","storytelling","creative","expressive"],nature:["plants","animals","outdoor","world around them","nature"],mixed:["i'm not sure","not sure","flexible","mixed"]}))if(t.some(e=>r.includes(e)||e.includes(r))&&t.some(e=>l.includes(e)||a.includes(e)))return!0;return!1});t&&a.push(t.value)}),a.length>0?"multiselect"===l.type||"checkbox-group"===l.type||"radio"===l.type?S[t]=a:"select"===l.type?l.multiple?S[t]=a:S[t]=a[0]:S[t]=a.join(", "):"multiselect"===l.type||"checkbox-group"===l.type||"radio"===l.type?S[t]=e.learningStyles:S[t]=e.learningStyles[0]||e.learningStyles.join(", ")}else"multiselect"===l.type||"checkbox-group"===l.type||"radio"===l.type?S[t]=e.learningStyles:S[t]=e.learningStyles.join(", ");else l&&"tags"===l.type?S[t]=e.learningStyles:S[t]=e.learningStyles.join(", ")}else A.push("Learning Styles: ".concat(e.learningStyles.join(", ")))}if(e.interests&&e.interests.length>0){let l=[...new Set(e.interests.map(e=>
1String(e).trim()).filter(Boolean))],a="book-list"===(null!=(u=t.id)?u:"").toLowerCase(),r=function(e){var t,l;if(!(null==e||null==(t=e.sections)?void 0:t.length))return!1;for(let t of e.sections)for(let e of null!=(l=t.fields)?l:[])if("unitStudyDurationInDays"===e.fieldId)return!0;return!1}(t),n=l,i=[];if(!a&&!r&&l.length>1&&!(null==C?void 0:C.useAllSelectedInterests)){let e=null==C||null==(m=C.primaryNestInterest)?void 0:m.trim(),t=e&&l.includes(e)?e:l[0];n=[t];let a=l.filter(e=>e!==t);a.length&&i.push("Other saved nest interests (use on a different lesson; do not blend into this lesson): ".concat(a.join(", ")))}let s=_(["interests","interest","topics","theme","themes"]);if(s){let e=I.find(e=>e.fieldId===s);for(let t of(e&&("multiselect"===e.type||"tags"===e.type||"checkbox-group"===e.type)?S[s]=n:(e&&e.type,S[s]=n.join(", ")),i))A.push(t)}else for(let e of(A.push("Interests: ".concat(n.join(", "))),i))A.push(e)}let z=en(e.strengths);if(z){let e=_(["strengths","strength","abilities","skills"]);e?S[e]=z:A.push("Strengths: ".concat(z))}let V=en(e.gaps);if(V){let e=_(["gaps","gap","challenges","growthareas","growth_areas"]);e?S[e]=V:A.push("Growth Areas: ".concat(V))}if(e.emotionalTraits&&e.emotionalTraits.length>0){let t=_(["emotionaltraits","emotional_traits","traits","personality"]);if(t){let l=I.find(e=>e.fieldId===t);l&&("multiselect"===l.type||"tags"===l.type)?S[t]=e.emotionalTraits:S[t]=e.emotionalTraits.join(", ")}else A.push("Emotional Traits: ".concat(e.emotionalTraits.join(", ")))}let R=en(e.learningDisabilities);if(R){let t=_(["learningdisabilit","learning_disabilities","iep","504","diagnosis","neurodiver","accommodations"]);if(t){let l=I.find(e=>e.fieldId===t),a=e.learningDisabilities,r=Array.isArray(a)&&a.length>0?a.filter(e=>"string"==typeof e).map(e=>e.trim()).filter(Boolean):R.split(",").map(e=>e.trim()).filter(Boolean);l&&("multiselect"===l.type||"tags"===l.type)?S[t]=r:S[t]=r.join(", ")}else A.push("Learning differences: ".concat(R))}if(null==(n=e.basics)?void 0:n.academicLevels){let t=e.basics.academicLevels,l=(e,l,a)=>{var r;let n=t[e];if(!n||!String(n).trim())return;let i=null!=(r=(null==l?void 0:l.length)?J(E,l):null)?r:_(a);if(!i)return void A.push("".concat(String(e).charAt(0).toUpperCase()+String(e).slice(1)," Level: ").concat(n));let s=I.find(e=>e.fieldId===i),o=String(n).trim();if(s&&("select"===s.type||"multiselect"===s.type||"radio"===s.type)){let e=et(s,String(n));void 0!==e&&(o=e)}S[i]=o};l("reading",["childReadingLevel","readingLevel","lexileReadingLevel"],["readinglevel","reading_level","reading"]),l("writing",null,["writinglevel","writing_level","writing"]),l("math",null,["mathlevel","math_level","mathematics"]),l("science",null,["sciencelevel","science_level","science"]),l("history",null,["historylevel","history_level","history"]),l("creativeArts",null,["artslevel","arts_level","creativearts"])}if((null==(i=e.parentSettings)?void 0:i.energyLevel)!==void 0){let t=null!=(p=null!=(f=function(e){for(let t of e)if("slider"===t.type&&t.fieldId.toLowerCase().replace(/[^a-z0-9]/g,"").startsWith("parentenergylevel"))return t.fieldId;for(let t of e)if("slider"===t.type&&"parentenergylevel"===t.fieldId.toLowerCase())return t.fieldId;return null}(I))?f:J(E,["parentEnergyLevel"]))?p:_(["parentenergylevel","energylevel","energy_level","parentenergy","parent_energy"]);if(t){let l=Number(e.parentSettings.energyLevel);Number.isNaN(l)&&(l=3),l=Math.min(5,Math.max(1,Math.round(l))),S[t]=l}else A.push("Parent Energy Level: ".concat(e.parentSettings.energyLevel,"/5"))}if((null==(s=e.parentSettings)?void 0:s.preferStructuredSchedule)!==void 0){let t=_(["structuredschedule","structured_schedule","preferstructured"]);t?S[t]=e.parentSettings.preferStructuredSchedule:A.push("Prefers Structured Schedule: ".concat(e.parentSettings.preferStructuredSchedule?"Yes":"No"))}let P=[],T=e.pickYourPathOverrides;if(T&&"object"==typeof T){if((null==(x=T.learningStyle)?void 0:x.trim())&&P.push("Learning style (program default): ".concat(T.learningStyle.trim())),(null==(h=T.styleVibe)?void 0:h.trim())&&P.push("Style vibe: ".concat(T.styleVibe.trim())),(null==(g=T.structureStyle)?void 0:g.trim())&&P.push("Structure: ".concat(T.structureStyle.trim())),(null==(v=T.workloadPace)?void 0:v.trim())&&P.push("Pace: ".concat(T.workloadPace.trim())),(null==(b=T.learningLocationBalance)?void 0:b.trim())&&P.push("Learning location balance: ".concat(T.learningLocationBalance.trim())),(null==(y=T.familyRhythm)?void 0:y.length)&&P.push("Family rhythm: ".concat(T.familyRhythm.filter(Boolean).join(", "))),null==(w=T.weeklyDayTypes)?void 0:w.length){let e=T.weeklyDayTypes.map(e=>
1e.type?"".concat(e.day,": ").concat(e.type):e.day).filter(Boolean);e.length&&P.push("Weekly shape: ".concat(e.join("; ")))}(null==(j=T.specialInstructions)?void 0:j.trim())&&P.push("Special instructions: ".concat(T.specialInstructions.trim()))}let B=[];if((null==C||null==(o=C.unitStudyInterestBlock)?void 0:o.trim())&&B.push(C.unitStudyInterestBlock.trim()),A.length>0&&B.push("From your nest:\n"+A.join("\n")),P.length>0&&B.push("From program defaults (nest profile):\n"+P.join("\n")),B.length>0){let e=B.join("\n\n");S[Q]=e}for(let[l,a]of Object.entries(X({child:e,config:t,existingFormData:{...k,...S},mapOptions:C}).patch)){(void 0===S[l]||null==(N=S[l])||""===N||Array.isArray(N)&&0===N.length)&&(S[l]=a)}return S}let es=e=>{let{fill:t="#E4E4E7",...l}=e;return(0,a.jsxs)("svg",{width:24,height:22,viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,a.jsx)("path",{d:"M21.023 10.749a.675.675 0 0 0-.675.675v6.885a1.45 1.45 0 0 1-1.448 1.447H3.623a1.45 1.45 0 0 1-1.448-1.447V9.136h9.398a.675.675 0 0 0 0-1.35H2.175V5.821c0-.794.646-1.44 1.44-1.44h6.405a.675.675 0 0 0 0-1.35H3.615a2.793 2.793 0 0 0-2.79 2.79V18.31a2.8 2.8 0 0 0 2.798 2.797H18.9a2.8 2.8 0 0 0 2.797-2.797v-6.885a.674.674 0 0 0-.674-.675",fill:t}),(0,a.jsx)("path",{d:"M4.494 6.68a.603.603 0 1 0 0-1.206.603.603 0 0 0 0 1.206m1.521-.603a.603.603 0 1 0 1.206 0 .603.603 0 0 0-1.206 0m2.725.603a.603.603 0 1 0 0-1.206.603.603 0 0 0 0 1.206m5.672 7.147a3.15 3.15 0 0 0-3.148-3.148 3.15 3.15 0 0 0-3.148 3.147c0 .912.396 1.728 1.017 2.304-.51.266-.93.624-1.195 1.056a.675.675 0 1 0 1.15.706c.28-.456 1.062-.917 2.176-.917s1.895.46 2.176.916a.675.675 0 1 0 1.15-.705c-.265-.432-.685-.79-1.195-1.056a3.14 3.14 0 0 0 1.017-2.303m-4.947 0a1.8 1.8 0 0 1 1.798-1.798 1.8 1.8 0 0 1 1.798 1.797 1.8 1.8 0 0 1-1.798 1.798 1.8 1.8 0 0 1-1.798-1.798M22.71 3.668l-4.413-2.564a1.55 1.55 0 0 0-1.555 0L12.33 3.668a.94.94 0 0 0-.465.807c0 .332.179.642.465.808l1.165.677v2.03c0 .543.293 1.05.764 1.32l1.842 1.062c.438.253.929.379 1.42.379a2.83 2.83 0 0 0 1.422-.38l1.842-1.061c.471-.27.764-.778.764-1.32V5.96l1.164-.677a.936.936 0 0 0-.002-1.615m-5.29-1.397a.2.2 0 0 1 .199 0l3.794 2.204-3.795 2.205a.2.2 0 0 1-.198 0l-3.794-2.205zm2.776 5.717c0 .063-.034.12-.088.152l-1.842 1.062a1.5 1.5 0 0 1-1.493 0L14.93 8.14a.18.18 0 0 1-.088-.152V6.744l1.9 1.103a1.55 1.55 0 0 0 1.556 0l1.898-1.103z",fill:t})]})},eo=e=>{let{fill:t="#E4E4E7",...l}=e;return(0,a.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2a1 1 0 0 0-2 0v1H5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3h-.5a1 1 0 1 0 0 2h.5a1 1 0 0 1 1 1v3H4V6a1 1 0 0 1 1-1h1v1a1 1 0 1 0 2 0zM4.293 19.707A1 1 0 0 1 4 19v-8h16v8a1 1 0 0 1-1 1H5a1 1 0 0 1-.707-.293",fill:t}),(0,a.jsx)("path",{d:"M16 2a1 1 0 1 0-2 0v1h-3.5a1 1 0 1 0 0 2H14v1a1 1 0 1 0 2 0z",fill:t})]})},ec=e=>{let{fill:t="#E4E4E7",...l}=e;return(0,a.jsx)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 .678a5 5 0 0 0-2.591.724l-5 3.03A5 5 0 0 0 0 8.708V15a5 5 0 0 0 5 5h10a5 5 0 0 0 5-5V8.707a5 5 0 0 0-2.409-4.275l-5-3.03A5 5 0 0 0 10 .678M8.445 3.112a3 3 0 0 1 3.11 0l5 3.03A3 3 0 0 1 18 8.707V15a3 3 0 0 1-3 3h-1v-3a4 4 0 1 0-8 0v3H5a3 3 0 0 1-3-3V8.708a3 3 0 0 1 1.445-2.566zm2.97 10.474A2 2 0 0 1 12 15v3H8v-3a2 2 0 0 1 3.414-1.414",fill:t})})},ed=e=>{let{fill:t="#E4E4E7",...l}=e;return(0,a.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a5 5 0 0 0-3.333 8.727A8 8 0 0 0 4 19v1a1 1 0 1 0 2 0v-1a6 6 0 1 1 12 0v1a1 1 0 1 0 2 0v-1a8 8 0 0 0-4.667-7.273q.104-.093.203-.191A5 5 0 0 0 12 3M9.879 5.879a3 3 0 1 1 4.242 4.242A3 3 0 0 1 9.88 5.88",fill:t})})},eu=e=>{let{trigger:t,children:l,placement:n="bottom",offset:i=8,closeOnClickOutside:s=!0,closeOnEscape:o=!0,disabled:c=!1,className:d="",contentClassName:u=""}=e,[f,p]=(0,r.useState)(!1),x=(0,r.useRef)(null),h=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=e=>{s&&f&&x.current&&h.current&&!x.current.contains(e.target)&&!h.current.contains(e.target)&&p(!1)},t=e=>{"Escape"===e.key&&o&&f&&p(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[f,s,o]),(0,a.jsxs)("div",{className:"relative inline-block ".concat(d),children:[(0,a.jsx)("div",{ref:x,onClick:()=>{c||p(!f)},className:c?"cursor-not-allowed opacity-50":"cursor-pointer",children:t}),(0,a.jsx)(A.N,{children:f&&!c&&(0,a.jsx)(m.P.div,{ref:h,className:"".concat((()=>{let e="absolute z-50";switch(n){case"top":return"".concat(e," bottom-full left-1/2 transform -translate-x-1/2");case"bottom":default:return"".concat(e," top-full left-1/2 transform -translate-x-1/2");case"left":return"".concat(e," right-full top-1/2 transform -translate-y-1/2");case"right":return"".concat(e," left-full top-1/2 transform -translate-y-1/2");case"top-start":return"".concat(e," bottom-full left-0");case"top-end":return"".concat(e," bottom-full right-0");case"bottom-start":return"".concat(e," top-full left-0");case"bottom-end":return"".concat(e," top-full right-0")}})()),style:(()=>{let e="".concat(i,"px");switch(n){case"top":case"top-start":case"top-end":return{marginBottom:e};case"bottom":case"bottom-start":case"bottom-end":default:return{marginTop:e};case"left":return{marginRight:e};case"right":return{marginLeft:e}}})(),...(()=>{switch(n){case"top":case"top-start":case"top-end":return{initial:{opacity:0,y:10,scale:.95}
1,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95}};case"bottom":case"bottom-start":case"bottom-end":default:return{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95}};case"left":return{initial:{opacity:0,x:10,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:10,scale:.95}};case"right":return{initial:{opacity:0,x:-10,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-10,scale:.95}}}})(),transition:{duration:.2},children:(0,a.jsx)("div",{className:"\n                box-border w-[min(28rem,calc(100vw-1.5rem))] max-w-[calc(100vw-1.5rem)]\n                min-w-[min(18rem,calc(100vw-1.5rem))] break-words\n                bg-background border border-border rounded-2xl shadow-lg p-4\n                ".concat(u,"\n              "),children:l})})})]})};var em=l(92012);let ef=e=>{var t;let{items:l,defaultValue:r,value:n,onValueChange:i,TabComponent:s,className:o="",backgroundColor:c="white",activeBorderColor:d="#1976d2"}=e;return(0,a.jsx)("div",{className:"w-full ".concat(o),children:(0,a.jsxs)(em.bL,{value:n,defaultValue:r||(null==(t=l[0])?void 0:t.value),onValueChange:i,className:"w-full",children:[(0,a.jsx)(em.B8,{className:"flex justify-start gap-4",style:{overflowX:"auto",overflowY:"hidden",borderBottom:"2px solid rgba(72, 83, 75, 0.3)",paddingBottom:"2px",backgroundColor:"transparent"},children:l.map((e,t)=>{let l=e.value===n,r="#e5e0c6",i="#d4ceaf",o=l&&"creative"===e.value?"#A0442E":e.borderColor||"#48534B";return(0,a.jsxs)(em.l9,{value:e.value,style:{all:"unset",padding:"12px 12px 0px 12px",boxSizing:"border-box",paddingBottom:s&&!l?"0px":"12px",borderTopWidth:"2px",borderLeftWidth:"2px",borderRightWidth:"2px",borderStyle:"solid",borderBottomWidth:l?"0px":"2px",borderColor:"rgba(72, 83, 75, 0.4)",borderRadius:"8px 8px 0 0",width:"220px",minWidth:"220px",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"500",backgroundColor:l?i:r,position:"relative",color:o,zIndex:l?10:1,marginTop:l?"0px":"4px",cursor:"pointer"},children:[s?(0,a.jsx)(s,{active:l,children:e.label}):e.label,l&&(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0",style:{width:"100%",height:"3px",bottom:"-2px",backgroundColor:i,zIndex:11}}),0===t&&!l&&(0,a.jsx)("div",{className:"absolute",style:{width:"14px",height:"20px",bottom:"-11px",left:"-2px",backgroundColor:r,zIndex:0}})]},e.value)})}),l.map((e,t)=>{let l=e.value===n;return(0,a.jsx)(em.UC,{value:e.value,className:"p-6",style:{backgroundColor:l?"#d4ceaf":e.backgroundColor||c,borderWidth:"2px",borderStyle:"solid",borderColor:l?"rgba(72, 83, 75, 0.4)":"transparent",borderRadius:"0px 8px 8px 8px",borderTopLeftRadius:l&&0!==t?"8px":"0px",borderTopWidth:l?"0px":"2px",zIndex:l?9:1,position:"relative"},children:e.content},e.value)})]})})};em.bL;let ep=r.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)(em.B8,{ref:t,className:"\n      flex items-end border-b border-gray-200 bg-gray-50 relative\n      ".concat(l,"\n    "),...r})}),ex=r.forwardRef((e,t)=>{let{className:l,backgroundColor:r="white",borderColor:n="#1976d2",style:i,...s}=e;return(0,a.jsx)(em.l9,{ref:t,className:"\n      relative px-4 py-3 text-sm font-medium transition-all duration-200\n      focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2\n      hover:bg-gray-100 cursor-pointer\n      data-[state=active]:bg-white\n      data-[state=inactive]:text-gray-600\n      data-[state=active]:text-gray-900\n      border-t border-l border-r border-gray-200\n      data-[state=active]:border-t-2\n      data-[state=active]:border-l-2  \n      data-[state=active]:border-r-2\n      data-[state=active]:border-b-0\n      data-[state=active]:-mb-px\n      data-[state=inactive]:border-b\n      mr-1 last:mr-0\n      ".concat(l,"\n    "),style:{backgroundColor:r,borderTopColor:n,borderLeftColor:n,borderRightColor:n,...i},...s})}),eh=r.forwardRef((e,t)=>{let{className:l,backgroundColor:r="white",style:n,...i}=e;return(0,a.jsx)(em.UC,{ref:t,className:"p-6 focus:outline-none ".concat(l),style:{backgroundColor:r,...n},...i})});ep.displayName=em.B8.displayName,ex.displayName=em.l9.displayName,eh.displayName=em.UC.displayName;var eg=l(68708),ev=l(1200),eb=l(16613),ey=l(43002);let ew=r.createContext(null),ej=()=>{let e=r.useContext(ew);if(!e)throw Error("useToast must be used within a ToastProvider");return e},eN=e=>{let{children:t}=e,[l,n]=r.useState([]),i=r.useCallback(e=>{var t;let l=Math.random().toString(36).substring(2,9),a={...e,id:l,open:!0,duration:null!=(t=e.duration)?t:5e3};n(e=>[...e,a]),a.duration&&a.duration>0&&setTimeout(()=>{n(e=>e.filter(e=>e.id!==l))},a.duration)},[]);return(0,a.jsxs)(ew.Provider,{value:{toast:i},children:[t,(0,a.jsxs)(eg.Kq,{swipeDirection:"right",children:[l.map(e=>(0,a.jsxs)(eg.bL,{open:e.open,onOpenChange:t=>{var l;t||(l=e.id,n(e=>e.filter(e=>e.id!==l)))},duration:e.duration,className:"\n              ".concat((e=>{switch(e){case"success":return"bg-green-50 border-green-200 text-green-900";case"error":return"bg-red-50 border-red-200 text-red-900";case"warning":return"bg-yellow-50 border-yellow-200 text-yellow-900";case"info":return"bg-blue-50 border-blue-200 text-blue-900";default:return"bg-white border-gray-200 text-gray-900"}}
1)(e.variant||"default"),"\n              relative flex items-start gap-3 p-4 pr-8 rounded-lg border shadow-lg\n              data-[state=open]:animate-in data-[state=open]:slide-in-from-right-full\n              data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right-full\n              data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)]\n              data-[swipe=cancel]:translate-x-0 data-[swipe=cancel]:transition-transform\n              data-[swipe=end]:animate-out data-[swipe=end]:slide-out-to-right-full\n                            min-w-[300px] max-w-[500px]\n            "),children:[(e=>{let t="w-5 h-5";switch(e){case"success":return(0,a.jsx)(ev.A,{className:"".concat(t," text-green-600")});case"error":return(0,a.jsx)(c.A,{className:"".concat(t," text-red-600")});case"warning":return(0,a.jsx)(eb.A,{className:"".concat(t," text-yellow-600")});case"info":return(0,a.jsx)(ey.A,{className:"".concat(t," text-blue-600")});default:return null}})(e.variant||"default"),(0,a.jsxs)("div",{className:"flex-1 space-y-1",children:[e.title&&(0,a.jsx)(eg.hE,{className:"font-semibold text-sm",children:e.title}),e.description&&(0,a.jsx)(eg.VY,{className:"text-sm opacity-90",children:e.description})]}),e.action&&(0,a.jsx)(eg.rc,{asChild:!0,altText:e.action.label,onClick:e.action.onClick,children:(0,a.jsx)("button",{className:"text-sm font-medium underline hover:no-underline",children:e.action.label})}),(0,a.jsx)(eg.bm,{className:"absolute top-2 right-2 p-1 rounded-md hover:bg-black/10 transition-colors","aria-label":"Close",children:(0,a.jsx)(I.A,{className:"w-4 h-4"})})]},e.id)),(0,a.jsx)(eg.LM,{className:"fixed top-20 right-0 flex flex-col p-6 gap-2 w-[420px] max-w-[100vw] m-0 list-none z-50 outline-none"})]})]})},ek=e=>{let{children:t,trigger:l,delayDuration:r}=e;return(0,a.jsx)(z.Kq,{delayDuration:r||700,children:(0,a.jsxs)(z.bL,{children:[(0,a.jsx)(z.l9,{asChild:!0,children:t}),(0,a.jsx)(z.ZL,{children:(0,a.jsxs)(z.UC,{className:"bg-background-secondary text-text-primary p-3 rounded-full",sideOffset:5,children:[l,(0,a.jsx)(z.i3,{style:{fill:"var(--background-secondary)"}})]})})]})})};l(80867)},80867:()=>{},94931:()=>{}}]);

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.