PageSourceSearch

https://roundz.ai/_next/static/chunks/7586.c7c781565baa9079.js

js roundz.ai collected 2026-10-05 12:34:37 UTC 25,278 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7586],{88362:function(e,t,r){r.r(t);var s=r(57437),o=r(2265),a=r(79820),n=r(12381),i=r(40279),l=r(15291),d=r(23675),c=r(49322),u=r(51817),m=r(24156),p=r(30401),f=r(12749),x=r(2596),h=r(93448),g=r(95020),N=r(29827),j=r(95937),b=r(80670),w=r(29501),y=r(13590),v=r(91115),k=r(14438);let I=v.Ry({workflowId:v.Z_().min(1,"Workflow is required"),type:v.Km(["INTRO","CODING","BEHAVIORAL","TECHNICAL","SYSTEM_DESIGN","QNA","WRAP_UP"],{required_error:"Type is required"}),title:v.Z_().min(1,"Title is required"),description:v.Z_().optional(),duration:v.oQ.number().min(1,"Duration must be at least 1 minute"),customInstructions:v.Z_().optional(),position:v.oQ.number().min(0,"Position must be 0 or greater"),prompt:v.Z_().optional(),tools:v.Z_().optional(),matchingFields:v.Z_().optional().refine(e=>{if(!e||""===e.trim())return!0;try{return JSON.parse(e),!0}catch(e){return!1}},"Matching Fields must be valid JSON"),toolsProperties:v.Z_().optional().refine(e=>{if(!e||""===e.trim())return!0;try{return JSON.parse(e),!0}catch(e){return!1}},"Tools Properties must be valid JSON")});t.default=e=>{let{editingStep:t,onStepCreated:r,onStepUpdated:v,onCancelEdit:R}=e,[z,S]=(0,o.useState)(!1),_=(0,N.useQueryClient)(),C=(0,w.cI)({resolver:(0,y.F)(I),defaultValues:{workflowId:"",type:"INTRO",title:"",description:"",duration:30,customInstructions:"",position:0,prompt:"",tools:"",matchingFields:"",toolsProperties:""},mode:"onSubmit"}),{data:Z,isLoading:F,error:P,refetch:Y}=(0,g.D)(),J=(0,g.Uu)({onSuccess:()=>{k.Am.success("Workflow step created successfully"),C.reset(),_.invalidateQueries({queryKey:["workflow_steps"]}),r&&r()},onError:e=>{var t,r;k.Am.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to create workflow step")}}),O=(0,g.Y7)((null==t?void 0:t.id)||"",{onSuccess:()=>{k.Am.success("Workflow step updated successfully"),C.reset(),_.invalidateQueries({queryKey:["workflow_steps"]}),v&&v()},onError:e=>{var t,r;k.Am.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to update workflow step")}});(0,o.useEffect)(()=>{t?C.reset({workflowId:t.workflowId,type:t.type,title:t.title,description:t.description||"",duration:t.duration,customInstructions:t.customInstructions||"",position:t.position,prompt:t.prompt||"",tools:Array.isArray(t.tools)?t.tools.join(", "):"",matchingFields:t.matchingFields?JSON.stringify(t.matchingFields,null,2):"",toolsProperties:t.toolsProperties?JSON.stringify(t.toolsProperties,null,2):""}):C.reset({workflowId:"",type:"INTRO",title:"",description:"",duration:30,customInstructions:"",position:0,prompt:"",tools:"",matchingFields:"",toolsProperties:""})},[null==t?void 0:t.id]);let E=null!=Z?Z:[],A=J.isPending||O.isPending,G=E.find(e=>e.id===C.watch("workflowId"));return(0,s.jsxs)(a.Zb,{className:"mb-8 border-border/50 bg-card/30 shadow-xl backdrop-blur-sm dark:border-blue/20 dark:hover:border-blue",children:[(0,s.jsxs)(a.Ol,{children:[(0,s.jsxs)(a.ll,{className:"text-2xl",children:[t?"Update":"Create"," Workflow Step"]}),(0,s.jsx)(a.SZ,{children:t?"Update an existing workflow step":"Add a new workflow step to a workflow"})]}),(0,s.jsxs)(a.aY,{children:[P&&(0,s.jsxs)(j.bZ,{variant:"destructive",className:"mb-4",children:[(0,s.jsx)(c.Z,{className:"size-4"}),(0,s.jsxs)(j.X,{children:["Failed to load workflows."," ",(0,s.jsx)("button",{onClick:()=>Y(),className:"underline",children:"Retry"})]})]}),!F&&0===E.length&&!P&&(0,s.jsxs)(j.bZ,{className:"mb-4",children:[(0,s.jsx)(c.Z,{className:"size-4"}),(0,s.jsx)(j.X,{children:"No workflows found. Please create a workflow first before adding workflow steps."})]}),(0,s.jsx)(b.l0,{...C,children:(0,s.jsxs)("form",{onSubmit:C.handleSubmit(e=>{if(t){let t={type:e.type,title:e.title,description:e.description||void 0,duration:e.duration,customInstructions:e.customInstructions||void 0,position:e.position,prompt:e.prompt||void 0,tools:e.tools||void 0,matchingFields:e.matchingFields||void 0,toolsProperties:e.toolsProperties||void 0};O.mutate(t)}else{let t={workflowId:e.workflowId,type:e.type,title:e.title,de
1scription:e.description||void 0,duration:e.duration,customInstructions:e.customInstructions||void 0,position:e.position,prompt:e.prompt||void 0,tools:e.tools||void 0,matchingFields:e.matchingFields||void 0,toolsProperties:e.toolsProperties||void 0};J.mutate(t)}}),className:"space-y-6 pt-4",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2",children:[(0,s.jsx)(b.Wi,{control:C.control,name:"workflowId",render:e=>{let{field:r}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Workflow *"}),(0,s.jsxs)(f.J2,{open:z,onOpenChange:S,children:[(0,s.jsx)(f.xo,{asChild:!0,children:(0,s.jsx)(b.NI,{children:(0,s.jsxs)(n.zx,{variant:"outline",role:"combobox","aria-expanded":z,className:(0,h.cn)("w-full justify-between",C.formState.errors.workflowId?"border-red-500":"border-input dark:border-white/10"),disabled:!!t||F||0===E.length,type:"button",children:[F?(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)(u.Z,{className:"size-4 animate-spin"}),"Loading workflows..."]}):G?(0,s.jsx)("span",{className:"truncate",children:G.name}):"Select a workflow...",(0,s.jsx)(m.Z,{className:"ml-2 size-4 shrink-0 opacity-50"})]})})}),(0,s.jsx)(f.yk,{className:"w-[400px] p-0",align:"start",children:(0,s.jsxs)(x.mY,{children:[(0,s.jsx)(x.sZ,{placeholder:"Search workflows..."}),(0,s.jsxs)(x.e8,{children:[(0,s.jsx)(x.rb,{children:0===E.length?"No workflows available":"No workflow found"}),(0,s.jsx)(x.fu,{children:E.map(e=>(0,s.jsxs)(x.di,{value:e.name,onSelect:()=>{r.onChange(e.id),S(!1)},children:[(0,s.jsx)(p.Z,{className:(0,h.cn)("mr-2 h-4 w-4",r.value===e.id?"opacity-100":"opacity-0")}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-medium",children:e.name}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:e.mockInterviewName})]})]},e.id))})]})]})})]}),G&&(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Mock Interview: ",G.mockInterviewName]}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"type",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Type *"}),(0,s.jsxs)(l.Ph,{onValueChange:t.onChange,value:t.value,defaultValue:t.value,children:[(0,s.jsx)(b.NI,{children:(0,s.jsx)(l.i4,{className:(0,h.cn)(C.formState.errors.type?"bg-mixed-hsl border-red-500":"bg-mixed-hsl border-input dark:border-white/10"),children:(0,s.jsx)(l.ki,{placeholder:"Select type"})})}),(0,s.jsx)(l.Bw,{children:["INTRO","CODING","BEHAVIORAL","TECHNICAL","SYSTEM_DESIGN","QNA","WRAP_UP"].map(e=>(0,s.jsx)(l.Ql,{value:e,children:e.replace(/_/g," ")},e))})]}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"title",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Title *"}),(0,s.jsx)(b.NI,{children:(0,s.jsx)(i.I,{placeholder:"Enter step title",...t,className:(0,h.cn)(C.formState.errors.title?"border-red-500":"border-input dark:border-white/10")})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"duration",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Duration (minutes) *"}),(0,s.jsx)(b.NI,{children:(0,s.jsx)(i.I,{type:"number",min:"1",placeholder:"Enter duration",...t,className:(0,h.cn)(C.formState.errors.duration?"border-red-500":"border-input dark:border-white/10")})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"position",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Position *"}),(0,s.jsx)(b.NI,{children:(0,s.jsx)(i.I,{type:"number",min:"0",placeholder:"Enter position",...t,className:(0,h.cn)(C.formState.errors.position?"border-red-500":"border-input dark:border-white/10")})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"tools",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Tools (comma-separated)"}
1),(0,s.jsx)(b.NI,{children:(0,s.jsx)(i.I,{placeholder:"e.g., code_editor, whiteboard",...t,className:(0,h.cn)(C.formState.errors.tools?"border-red-500":"border-input dark:border-white/10")})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}})]}),(0,s.jsx)(b.Wi,{control:C.control,name:"description",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Description"}),(0,s.jsx)(b.NI,{children:(0,s.jsx)(d.g,{placeholder:"Enter step description",rows:3,...t,className:(0,h.cn)(C.formState.errors.description?"bg-mixed-hsl border-red-500":"bg-mixed-hsl border-input dark:border-white/10")})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"prompt",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Prompt"}),(0,s.jsx)(b.NI,{children:(0,s.jsx)(d.g,{placeholder:"Enter prompt for this step",rows:3,...t,className:(0,h.cn)(C.formState.errors.prompt?"bg-mixed-hsl border-red-500":"bg-mixed-hsl border-input dark:border-white/10")})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"customInstructions",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Custom Instructions"}),(0,s.jsx)(b.NI,{children:(0,s.jsx)(d.g,{placeholder:"Enter custom instructions",rows:3,...t,className:(0,h.cn)(C.formState.errors.customInstructions?"bg-mixed-hsl border-red-500":"bg-mixed-hsl border-input dark:border-white/10")})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"matchingFields",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Matching Fields (JSON)"}),(0,s.jsx)(b.NI,{children:(0,s.jsx)(d.g,{placeholder:'{"focus": "algorithms", "difficulty": "medium"}',rows:4,className:(0,h.cn)("font-mono text-sm",C.formState.errors.matchingFields?"bg-mixed-hsl border-red-500":"bg-mixed-hsl border-input dark:border-white/10"),...t})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsx)(b.Wi,{control:C.control,name:"toolsProperties",render:e=>{let{field:t}=e;return(0,s.jsxs)(b.xJ,{children:[(0,s.jsx)(b.lX,{children:"Tools Properties (JSON)"}),(0,s.jsx)(b.NI,{children:(0,s.jsx)(d.g,{placeholder:'{"theme": "dark", "language": "python"}',rows:4,className:(0,h.cn)("font-mono text-sm",C.formState.errors.toolsProperties?"bg-mixed-hsl border-red-500":"bg-mixed-hsl border-input dark:border-white/10"),...t})}),(0,s.jsx)(b.zG,{className:"error-message transition-opacity duration-300 ease-in-out animate-in fade-in"})]})}}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(n.zx,{type:"submit",variant:"blue",className:"flex-1",disabled:A||0===E.length,children:A?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Z,{className:"mr-2 size-4 animate-spin"}),t?"Updating...":"Creating..."]}):t?"Update Step":"Create Step"}),t&&(0,s.jsx)(n.zx,{type:"button",variant:"outline",onClick:()=>{C.reset({workflowId:"",type:"INTRO",title:"",description:"",duration:30,customInstructions:"",position:0,prompt:"",tools:"",matchingFields:"",toolsProperties:""}),R&&R()},disabled:A,children:"Cancel"})]})]})})]})]})}},95937:function(e,t,r){r.d(t,{X:function(){return d},bZ:function(){return l}});var s=r(57437),o=r(2265),a=r(90535),n=r(93448);let i=(0,a.j)("relative w-full rounded-lg border p-4 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=o.forwardRef((e,t)=>{let{className:r,variant:o,...a}=e;return(0,s.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(i({variant:o}),r),...a})});l.displayName="Alert",o.forwardRef((e,t)=>
1{let{className:r,...o}=e;return(0,s.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",r),...o})}).displayName="AlertTitle";let d=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",r),...o})});d.displayName="AlertDescription"},2596:function(e,t,r){r.d(t,{di:function(){return p},e8:function(){return c},fu:function(){return m},mY:function(){return l},rb:function(){return u},sZ:function(){return d}});var s=r(57437),o=r(2265),a=r(83918),n=r(73247),i=r(93448);r(74291);let l=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.mY,{ref:t,className:(0,i.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",r),...o})});l.displayName=a.mY.displayName;let d=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,s.jsx)(n.Z,{className:"mr-2 size-4 shrink-0 opacity-50"}),(0,s.jsx)(a.mY.Input,{ref:t,className:(0,i.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",r),...o})]})});d.displayName=a.mY.Input.displayName;let c=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.mY.List,{ref:t,className:(0,i.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",r),...o})});c.displayName=a.mY.List.displayName;let u=o.forwardRef((e,t)=>(0,s.jsx)(a.mY.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));u.displayName=a.mY.Empty.displayName;let m=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.mY.Group,{ref:t,className:(0,i.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",r),...o})});m.displayName=a.mY.Group.displayName,o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.mY.Separator,{ref:t,className:(0,i.cn)("-mx-1 h-px bg-border",r),...o})}).displayName=a.mY.Separator.displayName;let p=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.mY.Item,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",r),...o})});p.displayName=a.mY.Item.displayName},74291:function(e,t,r){r.d(t,{$N:function(){return f},Be:function(){return x},Vq:function(){return l},cN:function(){return p},cZ:function(){return u},fK:function(){return m}});var s=r(57437),o=r(2265),a=r(49027),n=r(32489),i=r(93448);let l=a.fC;a.xz;let d=a.h_;a.x8;let c=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.aV,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...o})});c.displayName=a.aV.displayName;let u=o.forwardRef((e,t)=>{let{className:r,children:o,...l}=e;return(0,s.jsxs)(d,{children:[(0,s.jsx)(c,{}),(0,s.jsxs)(a.VY,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-card-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",r),...l,children:[o,(0,s.jsxs)(a.x8,{className:"absolute right-4 top-4 border border-transparent opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:border-border hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[(0,s.jsx)(n.Z,{className:"size-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=a.VY.displayName;let m=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};m.displayName="DialogHeader";let p=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};p.displayName="DialogFooter";let f=o.forwardRef((e,t)=>
1{let{className:r,...o}=e;return(0,s.jsx)(a.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",r),...o})});f.displayName=a.Dx.displayName;let x=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...o})});x.displayName=a.dk.displayName},80670:function(e,t,r){r.d(t,{NI:function(){return h},Wi:function(){return u},l0:function(){return d},lX:function(){return x},pf:function(){return g},xJ:function(){return f},zG:function(){return N}});var s=r(57437),o=r(2265),a=r(37053),n=r(29501),i=r(93448),l=r(75060);let d=n.RV,c=o.createContext({}),u=e=>{let{...t}=e;return(0,s.jsx)(c.Provider,{value:{name:t.name},children:(0,s.jsx)(n.Qr,{...t})})},m=()=>{let e=o.useContext(c),t=o.useContext(p),{getFieldState:r,formState:s}=(0,n.Gc)(),a=r(e.name,s);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...a}},p=o.createContext({}),f=o.forwardRef((e,t)=>{let{className:r,...a}=e,n=o.useId();return(0,s.jsx)(p.Provider,{value:{id:n},children:(0,s.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",r),...a})})});f.displayName="FormItem";let x=o.forwardRef((e,t)=>{let{className:r,...o}=e,{error:a,formItemId:n}=m();return(0,s.jsx)(l._,{ref:t,className:(0,i.cn)(a&&"text-destructive",r),htmlFor:n,...o})});x.displayName="FormLabel";let h=o.forwardRef((e,t)=>{let{...r}=e,{error:o,formItemId:n,formDescriptionId:i,formMessageId:l}=m();return(0,s.jsx)(a.g7,{ref:t,id:n,"aria-describedby":o?"".concat(i," ").concat(l):"".concat(i),"aria-invalid":!!o,...r})});h.displayName="FormControl";let g=o.forwardRef((e,t)=>{let{className:r,...o}=e,{formDescriptionId:a}=m();return(0,s.jsx)("p",{ref:t,id:a,className:(0,i.cn)("text-sm text-muted-foreground",r),...o})});g.displayName="FormDescription";let N=o.forwardRef((e,t)=>{let{className:r,children:o,...a}=e,{error:n,formMessageId:l}=m(),d=n?String(null==n?void 0:n.message):o;return d?(0,s.jsx)("p",{ref:t,id:l,className:(0,i.cn)("text-sm font-medium text-destructive",r),...a,children:d}):null});N.displayName="FormMessage"},75060:function(e,t,r){r.d(t,{_:function(){return d}});var s=r(57437),o=r(2265),a=r(6394),n=r(90535),i=r(93448);let l=(0,n.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.Root,{ref:t,className:(0,i.cn)(l(),r),...o})});d.displayName=a.Root.displayName},12749:function(e,t,r){r.d(t,{J2:function(){return i},xo:function(){return l},yk:function(){return d}});var s=r(57437),o=r(2265),a=r(27312),n=r(93448);let i=a.fC,l=a.xz,d=o.forwardRef((e,t)=>{let{className:r,align:o="center",sideOffset:i=4,...l}=e;return(0,s.jsx)(a.h_,{children:(0,s.jsx)(a.VY,{ref:t,align:o,sideOffset:i,className:(0,n.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",r),...l})})});d.displayName=a.VY.displayName},15291:function(e,t,r){r.d(t,{Bw:function(){return x},Ph:function(){return c},Ql:function(){return h},i4:function(){return m},ki:function(){return u}});var s=r(57437),o=r(2265),a=r(56873),n=r(40875),i=r(22135),l=r(30401),d=r(93448);let c=a.fC;a.ZA;let u=a.B4,m=o.forwardRef((e,t)=>{let{className:r,children:o,...l}=e;return(0,s.jsxs)(a.xz,{ref:t,className:(0,d.cn)("group flex h-10 w-full items-center justify-between border border-input bg-background px-3 py-2 text-left text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...l,children:[o,(0,s.jsx)(a.JO,{asChild:!0,children:(0,s.jsx)(n.Z,{className:"size-4 opacity-50 group-data-[state=open]:hidden"})}),(0,s.jsx)(a.JO,{asChild:!0,children:(0,s.jsx)(i.Z,{className:"size-4 opacity-50 group-data-[state=closed]:hidden"})})]})});m.displayName=a.xz.displayName;let p=o.forwardRef((e,t)=>
1{let{className:r,...o}=e;return(0,s.jsx)(a.u_,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...o,children:(0,s.jsx)(i.Z,{className:"size-4"})})});p.displayName=a.u_.displayName;let f=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.$G,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...o,children:(0,s.jsx)(n.Z,{className:"size-4"})})});f.displayName=a.$G.displayName;let x=o.forwardRef((e,t)=>{let{className:r,children:o,position:n="popper",...i}=e;return(0,s.jsx)(a.h_,{children:(0,s.jsxs)(a.VY,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden border bg-popover text-popover-foreground shadow-card 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","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...i,children:[(0,s.jsx)(p,{}),(0,s.jsx)(a.l_,{className:(0,d.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,s.jsx)(f,{})]})})});x.displayName=a.VY.displayName,o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.__,{ref:t,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...o})}).displayName=a.__.displayName;let h=o.forwardRef((e,t)=>{let{className:r,children:o,...n}=e;return(0,s.jsxs)(a.ck,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",r),...n,children:[(0,s.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,s.jsx)(a.wU,{children:(0,s.jsx)(l.Z,{className:"size-4"})})}),(0,s.jsx)(a.eT,{children:o})]})});h.displayName=a.ck.displayName,o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)(a.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...o})}).displayName=a.Z0.displayName},23675:function(e,t,r){r.d(t,{g:function(){return n}});var s=r(57437),o=r(2265),a=r(93448);let n=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,s.jsx)("textarea",{className:(0,a.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...o})});n.displayName="Textarea"},29114:function(e,t,r){r.d(t,{gm:function(){return a}});var s=r(2265);r(57437);var o=s.createContext(void 0);function a(e){let t=s.useContext(o);return e||t||"ltr"}},95098:function(e,t,r){r.d(t,{C2:function(){return n},TX:function(){return i},fC:function(){return l}});var s=r(2265),o=r(66840),a=r(57437),n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),i=s.forwardRef((e,t)=>(0,a.jsx)(o.WV.span,{...e,ref:t,style:{...n,...e.style}}));i.displayName="VisuallyHidden";var l=i}}]);

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.