PageSourceSearch

https://app.piplhr.com/_next/static/chunks/63676-382ddf194f832ab3.js

js piplhr.com collected 2026-10-02 01:42:11 UTC 20,921 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63676],{41052:(e,a,s)=>{s.d(a,{C5:()=>g,MJ:()=>p,Rr:()=>f,eI:()=>h,lR:()=>j,lV:()=>c,zB:()=>m});var r=s(95155),l=s(12115),t=s(32467),n=s(22544),i=s(64269),d=s(76444);let c=n.Op,o=l.createContext({}),m=e=>{let{...a}=e;return(0,r.jsx)(o.Provider,{value:{name:a.name},children:(0,r.jsx)(n.xI,{...a})})},x=()=>{let e=l.useContext(o),a=l.useContext(u),{getFieldState:s,formState:r}=(0,n.xW)(),t=s(e.name,r);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=a;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...t}},u=l.createContext({}),h=l.forwardRef((e,a)=>{let{className:s,...t}=e,n=l.useId();return(0,r.jsx)(u.Provider,{value:{id:n},children:(0,r.jsx)("div",{ref:a,className:(0,i.cn)("space-y-2",s),...t})})});h.displayName="FormItem";let j=l.forwardRef((e,a)=>{let{className:s,...l}=e,{error:t,formItemId:n}=x();return(0,r.jsx)(d.J,{ref:a,className:(0,i.cn)(t&&"text-destructive",s),htmlFor:n,...l})});j.displayName="FormLabel";let p=l.forwardRef((e,a)=>{let{...s}=e,{error:l,formItemId:n,formDescriptionId:i,formMessageId:d}=x();return(0,r.jsx)(t.DX,{ref:a,id:n,"aria-describedby":l?"".concat(i," ").concat(d):"".concat(i),"aria-invalid":!!l,...s})});p.displayName="FormControl";let f=l.forwardRef((e,a)=>{let{className:s,...l}=e,{formDescriptionId:t}=x();return(0,r.jsx)("p",{ref:a,id:t,className:(0,i.cn)("text-[0.8rem] text-muted-foreground",s),...l})});f.displayName="FormDescription";let g=l.forwardRef((e,a)=>{let{className:s,children:l,...t}=e,{error:n,formMessageId:d}=x(),c=n?String(null==n?void 0:n.message):l;return c?(0,r.jsx)("p",{ref:a,id:d,className:(0,i.cn)("text-[0.8rem] font-medium text-destructive",s),...t,children:c}):null});g.displayName="FormMessage"},63676:(e,a,s)=>{s.d(a,{A:()=>P,e:()=>M});var r=s(95155),l=s(31120),t=s(15239),n=s(58775),i=s(69746),d=s(12115),c=s(3998),o=s(98734),m=s(66942),x=s(71163),u=s(22544),h=s(65142),j=s(18720),p=s(79564),f=s(50276),g=s(41052),v=s(76444),N=s(73911),y=s(66058),b=s(50053),w=s(19184);let C=["male","female","other"],R=["india","other"],I=["single","married","divorced","widowed","other"],M=[{id:"gujarati",label:"Gujarati"},{id:"hindi",label:"Hindi"},{id:"english",label:"English"}],J=o.Ik({firstName:o.Yj().min(2,{message:"First name must be at least 2 characters."}),lastName:o.Yj().min(2,{message:"Last name must be at least 2 characters."}),middleName:o.Yj().optional(),preferenceLanguage:o.YO(o.Yj()).min(1,{message:"Please select at least one language"}),aboutMe:o.Yj().optional(),birthDate:o.p6({required_error:"Please select a date of birth."}),gender:o.k5(C,{required_error:"Please select a gender"}),nationality:o.k5(R,{required_error:"Please select a nationality"}),maritalStatus:o.k5(I,{required_error:"Please select a marital status"}),aadhaarNumber:o.KC([o.Yj().min(12,{message:"Aadhaar number must be 12 digits."}),o.eu("")]),panNumber:o.KC([o.Yj().min(10,{message:"Pan number must be 10 digits"}),o.eu("")]),emergencyPersonName:o.Yj().optional(),emergencyPersonRelation:o.Yj().optional(),emergencyMobileNo:o.KC([o.Yj().regex(/^\d{10}$/,{message:"Please enter a valid 10-digit mobile number."}),o.Yj().length(0)]),id:o.Yj().optional()});function P(e){var a;let{userData:s}=e,[o,P]=(0,d.useState)(!1),[F,k]=(0,d.useState)(!1),[_,{isLoading:z}]=(0,w.to)(),D=async e=>{if(!s)return void j.oR.error("Authentication information is missing");k(!0);try{await _({userId:s.id,profileData:e}).unwrap(),B.reset(e),j.oR.success("User profile saved successfully")}catch(e){j.oR.error("Failed to save user profile")}finally{k(!1)}},B=(0,u.mN)({resolver:(0,m.u)(J),defaultValues:{firstName:"",lastName:"",middleName:"",preferenceLanguage:[],aboutMe:"",birthDate:new Date(Date.now()),gender:"male",maritalStatus:"single",nationality:"india",aadhaarNumber:"",panNumber:"",emergencyMobileNo:"",emergencyPersonRelation:"",emergencyPersonName:"",id:(null==s?void 0:s.id)||""}}),{errors:S,isDirty:Y}=(0,u.lN)({control:B.control});return(0,d.useEffect)(()=>
1{s&&Object.entries(s).forEach(e=>{let[a,s]=e;if(a in B.getValues()){let e;e="birthDate"===a?null===s?new Date:new Date(s):"preferenceLanguage"===a?Array.isArray(s)?s:[]:"nationality"===a?R.includes(s)?s:"india":"maritalStatus"===a?I.includes(s)?s:"single":"gender"===a?C.includes(s)?s:"male":null===s?"":s,B.setValue(a,e)}})},[null==s?void 0:s.id]),(0,r.jsx)(g.lV,{...B,children:(0,r.jsxs)("form",{onSubmit:B.handleSubmit(D),className:"w-full mx-auto mt-12 space-y-12 pb-10",children:[(0,r.jsxs)("div",{className:"w-full flex flex-row justify-between items-center",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,r.jsx)("div",{className:"w-12 h-12 rounded-lg shadow-md border border-gray-300 flex items-center justify-center p-3 text-center",style:{boxShadow:"0px 1px 2px 0px #0000000D, 0px -2px 0px 0px #0000000D inset"},children:(0,r.jsx)(n.default,{strokeWidth:"1.5px",className:"text-gray-600"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-semibold text-lg",children:"Core Profile"}),(0,r.jsx)("p",{className:"font-normal text-sm text-gray-500",children:"Everything you need to know about person"})]})]}),(0,r.jsx)(c.$n,{variant:"default",size:"lg",type:"submit",disabled:!Y||F,className:"btn btn-primary",children:F?(0,r.jsx)("div",{className:"flex items-center w-20 justify-center",children:(0,r.jsx)(i.default,{className:"animate-spin"})}):"Save Changes"})]}),(0,r.jsxs)("div",{className:"pl-16 space-y-12",children:[(0,r.jsxs)("div",{className:"flex flex-row items-start space-x-14 w-full",children:[(0,r.jsxs)("div",{className:"min-w-64",children:[(0,r.jsx)("h3",{className:"text-base font-medium",children:"Basic Information"}),(0,r.jsx)("p",{className:"text-sm font-normal text-gray-500",children:"Essential personal data"})]}),(0,r.jsxs)("div",{className:"space-y-4 w-full",children:[(0,r.jsxs)("div",{className:"grow grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,r.jsx)(g.zB,{control:B.control,name:"firstName",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"First name"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(h.p,{placeholder:"e.g., John",...a})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:B.control,name:"lastName",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Last name"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(h.p,{placeholder:"e.g., Smith",...a})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:B.control,name:"middleName",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Middle name"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(h.p,{placeholder:"e.g., Michael or e.g., M",...a})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:B.control,name:"preferenceLanguage",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Languages Known"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)("div",{className:"flex flex-row gap-5 h-9 items-center",children:M.map(e=>(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(b.S,{id:e.id,checked:(a.value||[]).includes(e.id),onCheckedChange:s=>{let r=a.value||[];s?a.onChange([...r,e.id]):a.onChange(r.filter(a=>a!==e.id))}}),(0,r.jsx)(v.J,{htmlFor:e.id,children:e.label})]},e.id))})}),(0,r.jsx)(g.C5,{})]})}})]}),(0,r.jsx)("div",{children:(0,r.jsx)(g.zB,{control:B.control,name:"aboutMe",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"About me"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(l.T,{placeholder:"Enter a information...",className:"min-h-28 max-h-28",...a})}),(0,r.jsx)(g.C5,{})]})}})})]})]}),(0,r.jsxs)("div",{className:"flex flex-row items-start space-x-14 w-full",children:[(0,r.jsxs)("div",{className:"min-w-64",children:[(0,r.jsx)("h3",{className:"text-base font-medium",children:"Role & Structure"}),(0,r.jsx)("p",{className:"text-sm font-normal text-gray-500",children:"Current role and reporting structure "})]}),(0,r.jsx)("div",{className:"w-full",children:(0,r.jsxs)("table",{className:"w-full",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"w-full",children:[(0,r.jsx)("th",{className:"pt-0 pb-2 text-left text-sm font-semibold text-gray-700 w-1/2",children:"Role & Group"}),(0,r.jsx)("th",{className:"pt-0 pb-2 text-left text-sm font-semibold text-gray-700 w-1/2 ",children:"Reporting Head"})]})}),(0,r.jsx)("tbody",{className:"w-full",children:null==s||null==(a=s.reportingHead)?void 0:a.map((e,a)=>{var s,l,n,i,d,c;return(0,r.jsxs)("tr",{children:[(0,r.jsxs)("td",{className:"py-1 w-1/2",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-900",children:null!=(d=null==(l=e.reportingEmployees)||null==(s=l.employeeJobRole)?void 0:s.roleTitle)?d:""}),(0,r.jsx)("p",{className:"text-sm text-gray-500",children:null!=(c=null==(i=e.reportingEmployees)||null==(n=i.employeeGroup)?void 0:n.name)?c:""})]}),(0,r.jsx)("td",{className:"py-1 w-1/2",children:(0,r.jsxs)("div",{className:"flex items-center space-x-3 w-full",children:[e.reportingHeadProfileUrl&&(0,r.jsx)(t.default,{height:40,width:40,alt:"reporting-head",src:e.reportingHeadProfileUrl,className:"rounded-full"}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("p",{className:"text-sm font-medium text-gray-900",children:[e.reportingHeadFirstName," ",e.reportingHeadLastName]}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:e.reportingHeadJobRoleName})]})]})})]},a)})})]})})]}),(0,r.jsxs)("div",{className:"flex flex-row items-start space-x-14 w-full",children:[(0,r.jsxs)("div",{className:"min-w-64",children:[(0,r.jsx)("h3",{className:"text-base font-medium",children:"Demographic Information"}),(0,r.jsx)("p",{className:"text-sm font-normal text-gray-500",children:"Backgroun
1d and personal attributes"})]}),(0,r.jsxs)("div",{className:"space-y-4 w-full",children:[(0,r.jsxs)("div",{className:"grow grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,r.jsx)(g.zB,{control:B.control,name:"birthDate",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Date of birth"}),(0,r.jsxs)(N.AM,{open:o,onOpenChange:P,children:[(0,r.jsx)(N.Wv,{asChild:!0,children:(0,r.jsx)(g.MJ,{className:"px-3 py-1 h-9",children:(0,r.jsxs)(c.$n,{variant:"outline",className:"w-full pr-3 text-left font-normal flex justify-start items-center",children:[(0,r.jsx)(p.default,{className:"opacity-50"}),a.value?(0,x.GP)(a.value,"PP"):(0,r.jsx)("span",{children:"Pick a date"})]})})}),(0,r.jsx)(N.hl,{className:"w-auto p-0",align:"start",children:(0,r.jsx)(f.V,{mode:"single",captionLayout:"dropdown",defaultMonth:a.value||new Date,selected:a.value,onSelect:e=>{a.onChange(e),P(!1)},fromYear:1900,toYear:new Date().getFullYear(),disabled:e=>e>new Date||e>new Date(new Date().setHours(23,59,59,999)),classNames:{day:"h-9 w-9 p-0 font-normal aria-selected:opacity-100",day_selected:"bg-primary rounded-md text-primary-foreground hover:bg-primary hover:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"text-muted-foreground opacity-50",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",caption:"flex justify-center py-2 relative items-center",caption_label:"text-sm font-medium hidden",caption_dropdowns:"flex justify-center gap-1",dropdown:"appearance-none bg-transparent border border-gray-300 rounded px-2 py-1 text-sm",dropdown_month:"mr-1",dropdown_year:"ml-1",nav:"space-x-1 flex items-center",nav_button:"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"text-center text-sm p-0 relative [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",table:"w-full border-collapse space-y-1"},initialFocus:!0})})]}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:B.control,name:"gender",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Gender"}),(0,r.jsx)(g.MJ,{children:(0,r.jsxs)(y.z,{onValueChange:a.onChange,defaultValue:a.value,className:"flex flex-row gap-4 h-9 items-center",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"male",id:"male",checked:"male"===a.value}),(0,r.jsx)(v.J,{htmlFor:"male",children:"Male"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"female",id:"female",checked:"female"===a.value}),(0,r.jsx)(v.J,{htmlFor:"female",children:"Female"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"other",id:"other",checked:"other"===a.value}),(0,r.jsx)(v.J,{htmlFor:"other",children:"Other"})]})]})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:B.control,name:"nationality",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Nationality/Citizenship"}),(0,r.jsx)(g.MJ,{children:(0,r.jsxs)(y.z,{onValueChange:a.onChange,defaultValue:a.value,className:"flex flex-row gap-4 h-9 items-center",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"india",id:"india",checked:"india"===a.value}),(0,r.jsx)(v.J,{htmlFor:"india",children:"India"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"other",id:"other-nationality",checked:"other"===a.value}),(0,r.jsx)(v.J,{htmlFor:"other-nationality",children:"Other"})]})]})}),(0,r.jsx)(g.C5,{})]})}})]}),(0,r.jsx)("div",{children:(0,r.jsx)(g.zB,{control:B.control,name:"maritalStatus",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Marital status"}),(0,r.jsx)(g.MJ,{children:(0,r.jsxs)(y.z,{onValueChange:a.onChange,defaultValue:a.value,className:"flex flex-row gap-4 h-9 items-center",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"single",id:"single",checked:"single"===a.value}),(0,r.jsx)(v.J,{htmlFor:"single",children:"Single"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"married",id:"married",checked:"married"===a.value}),(0,r.jsx)(v.J,{htmlFor:"married",children:"Married"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"divorced",id:"divorced",checked:"divorced"===a.value}),(0,r.jsx)(v.J,{htmlFor:"divorced",children:"Divorced"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"widowed",id:"widowed",checked:"widowed"===a.value}),(0,r.jsx)(v.J,{htmlFor:"widowed",children:"Widowed"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(y.C,{value:"other",id:"other",checked:"other"===a.value}),(0,r.jsx)(v.J,{htmlFor:"other",children:"Other"})]})]})}),(0,r.jsx)(g.C5,{})]})}})})]})]}),(0,r.jsxs)("div",{className:"flex flex-row items-start space-x-14 w-full",children:[(0,r.jsxs)("div",{className:"min-w-64",children:[(0,r.jsx)("h3",{className:"text-base font-medium",children:"Government Identification"}),(0,r.jsx)("p",{className:"text-sm font-normal text-gray-500",children:"Official identification documents"})]}),(0,r.jsxs)("div",{className:"grow grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,r.jsx)(g.zB,{control:B.control,name:"aadhaarNumber",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Aadhaar Number"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(h.p,{placeholder:"XXXX XXXX XXXX",maxLength:14,...a,value:a.value?a.value.replace(/(\d{4}
1)(?=\d)/g,"$1 "):"",onChange:e=>{let s=e.target.value.replace(/\s/g,"");(""===s||/^\d+$/.test(s))&&a.onChange(s)}})}),(0,r.jsx)(g.C5,{}),(0,r.jsx)(g.Rr,{children:"12-digit unique identification number issued by UIDAI"})]})}}),(0,r.jsx)(g.zB,{control:B.control,name:"panNumber",render:e=>{var a;let{field:s}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"PAN number"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(h.p,{placeholder:"e.g., ABCTY1234D",maxLength:10,...s,value:null==(a=s.value)?void 0:a.toUpperCase(),onChange:e=>{let a=e.target.value.toUpperCase();a.length<=5?/^[A-Z]*$/.test(a)&&s.onChange(a):a.length<=9?/^[A-Z]{5}[0-9]*$/.test(a)&&s.onChange(a):10===a.length&&/^[A-Z]{5}[0-9]{4}[A-Z]$/.test(a)&&s.onChange(a)}})}),(0,r.jsx)(g.C5,{}),(0,r.jsx)(g.Rr,{children:"10-character Permanent Account Number issued by the Income Tax Department."})]})}})]})]}),(0,r.jsxs)("div",{className:"flex flex-row items-start space-x-14 w-full",children:[(0,r.jsxs)("div",{className:"min-w-64 max-w-64",children:[(0,r.jsx)("h3",{className:"text-base font-medium",children:"Emergency Contact Information"}),(0,r.jsx)("p",{className:"text-sm font-normal text-gray-500",children:"Contact information for emergencies"})]}),(0,r.jsxs)("div",{className:"grow grid grid-cols-2 gap-6",children:[(0,r.jsx)(g.zB,{control:B.control,name:"emergencyPersonName",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Name"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(h.p,{placeholder:"Enter emergency contact name",...a})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:B.control,name:"emergencyPersonRelation",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Relationship"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)(h.p,{placeholder:"Enter relationship with emergency contact",...a})}),(0,r.jsx)(g.C5,{})]})}}),(0,r.jsx)(g.zB,{control:B.control,name:"emergencyMobileNo",render:e=>{let{field:a}=e;return(0,r.jsxs)(g.eI,{className:"space-y-1.5",children:[(0,r.jsx)(g.lR,{children:"Phone"}),(0,r.jsx)(g.MJ,{children:(0,r.jsx)("div",{className:"flex flex-row items-center h-9",children:(0,r.jsx)(h.p,{placeholder:"12345 67890",className:"rounded-l-none",maxLength:15,...a,value:a.value?a.value.replace(/(\d{5})(?=\d)/,"$1 "):"",onChange:e=>{let s=e.target.value.replace(/\s/g,"");(""===s||/^\d+$/.test(s))&&a.onChange(s)}})})}),(0,r.jsx)(g.C5,{})]})}})]})]})]}),(0,r.jsx)("div",{className:"w-full flex flex-row justify-end items-center",children:(0,r.jsx)(c.$n,{variant:"default",size:"lg",type:"submit",disabled:!Y||F,className:"btn btn-primary",children:F?(0,r.jsx)("div",{className:"flex items-center w-20 justify-center",children:(0,r.jsx)(i.default,{className:"animate-spin"})}):"Save Changes"})})]})})}},66058:(e,a,s)=>{s.d(a,{z:()=>v,C:()=>N});var r=s(95155),l=s(12115),t=s(93126),n=s(24058),i=s(31278),d=s(44318),c=s(28074),o=s(52581);let[m,x]=(0,c.P)("RadioGroupContext"),[u,h]=(0,c.P)("RadioGroupItemContext");function j(e){var a;let[s,l]=(0,o.P)({value:null!=(a=e.value)?a:void 0,defaultValue:e.defaultValue,onChange:e.onValueChange});return(0,r.jsx)(m,{value:{value:s,setValue:l},children:(0,r.jsx)(n.bL,{"data-slot":"radio-group",...e,onValueChange:l})})}function p(e){let{transition:a={type:"spring",stiffness:200,damping:16},...s}=e,{isChecked:l}=h();return(0,r.jsx)(i.N,{children:l&&(0,r.jsx)(n.C1,{"data-slot":"radio-group-indicator",asChild:!0,forceMount:!0,children:(0,r.jsx)(d.P.div,{"data-slot":"radio-group-indicator-circle",initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},transition:a,...s},"radio-group-indicator-circle")})})}function f(e){let{value:a,disabled:s,required:t,...i}=e,{value:c}=x(),[o,m]=l.useState(c===a);return l.useEffect(()=>{m(c===a)},[c,a]),(0,r.jsx)(u,{value:{isChecked:o,setIsChecked:m},children:(0,r.jsx)(n.q7,{asChild:!0,value:a,disabled:s,required:t,children:(0,r.jsx)(d.P.button,{"data-slot":"radio-group-item",whileHover:{scale:1.05},whileTap:{scale:.95},...i})})})}var g=s(64269);function v(e){let{className:a,...s}=e;return(0,r.jsx)(j,{className:(0,g.cn)("grid gap-3",a),...s})}function N(e){let{className:a,...s}=e;return(0,r.jsx)(f,{className:(0,g.cn)("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",a),...s,children:(0,r.jsx)(p,{className:"relative flex items-center justify-center",children:(0,r.jsx)(t.default,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}}}]);

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.