1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ed014cf5-77d6-4f11-a3b8-b9632865c38f",e._sentryDebugIdIdentifier="sentry-dbid-ed014cf5-77d6-4f11-a3b8-b9632865c38f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86367],{7788:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/AICourses/job-portal/profile",function(){return n(62933)}])},33706:function(e,t,n){"use strict";var a=n(85893),r=(n(67294),n(11163));t.Z=function(e){var t=e.title,n=e.subtitle,l=e.action,i=e.children,o=e.breadcrumb,s=e.wide,c=void 0!==s&&s,u=(0,r.useRouter)(),d="full"===c?"max-w-6xl xl:max-w-7xl 2xl:max-w-[1360px]":"narrow"===c?"max-w-2xl sm:max-w-3xl lg:max-w-4xl":c?"max-w-6xl xl:max-w-7xl":"max-w-5xl";return(0,a.jsxs)("div",{className:"font-inter min-h-full bg-gray-50",children:[(0,a.jsx)("div",{className:"sticky top-0 z-10 bg-white/95 backdrop-blur-sm border-b border-gray-100",children:(0,a.jsx)("div",{className:"".concat(d," mx-auto px-4 sm:px-6 lg:px-8 xl:px-10 py-3"),children:(0,a.jsxs)("nav",{className:"flex items-center gap-1.5 text-xs sm:text-sm text-gray-500",children:[(0,a.jsx)("button",{type:"button",onClick:function(){return u.push("/learner")},className:"hover:text-primary-600 transition",children:"Home"}),(0,a.jsx)("span",{className:"text-gray-300",children:"\u203a"}),(0,a.jsx)("span",{className:"text-primary-600 font-medium truncate",children:o||t})]})})}),(0,a.jsxs)("div",{className:"".concat(d," mx-auto px-4 sm:px-6 lg:px-8 xl:px-10 py-6 lg:py-8"),children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between mb-6 lg:mb-8",children:[(0,a.jsxs)("div",{className:"space-y-1.5 min-w-0",children:[(0,a.jsx)("h1",{className:"text-2xl sm:text-3xl lg:text-[2rem] font-bold text-gray-900 tracking-tight leading-tight",children:t}),n&&(0,a.jsx)("p",{className:"text-gray-500 text-sm sm:text-base leading-relaxed max-w-2xl",children:n})]}),l&&(0,a.jsx)("div",{className:"w-full sm:w-auto shrink-0 [&_button]:w-full sm:[&_button]:w-auto",children:l})]}),i]})]})}},40866:function(e,t,n){"use strict";var a=n(85893),r=n(67294),l=n(64729),i=n(44080),o=n(89583);t.Z=function(e){var t=e.value,n=e.onChange,s=e.options,c=e.placeholder,u=void 0===c?"Select\u2026":c,d=e.icon,p=e.className,x=void 0===p?"":p,m=s.find((function(e){return e.value===t}))||s[0];return(0,a.jsx)(l.R,{value:t,onChange:n,children:(0,a.jsxs)("div",{className:"relative ".concat(x),children:[(0,a.jsxs)(l.R.Button,{className:"relative w-full min-w-[200px] cursor-pointer rounded-xl border border-gray-200 bg-white py-2.5 pl-3 pr-10 text-left text-sm font-medium text-gray-800 shadow-sm hover:border-primary-300 focus:outline-none focus:ring-2 focus:ring-primary-500/20 focus:border-primary-400 transition",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2 truncate",children:[d&&(0,a.jsx)(d,{className:"text-gray-400 text-xs flex-shrink-0"}),(0,a.jsx)("span",{className:"truncate",children:(null===m||void 0===m?void 0:m.label)||u})]}),(0,a.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:(0,a.jsx)(o.RiI,{className:"text-gray-400 text-xs","aria-hidden":"true"})})]}),(0,a.jsx)(i.u,{as:r.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(l.R.Options,{className:"absolute z-20 mt-1.5 max-h-60 w-full overflow-auto rounded-xl bg-white py-1.5 text-sm shadow-lg ring-1 ring-black/5 border border-gray-100 focus:outline-none",children:s.map((function(e){return(0,a.jsx)(l.R.Option,{value:e.value,className:function(e){var t=e.active;return"relative cursor-pointer select-none py-2.5 pl-10 pr-4 ".concat(t?"bg-primary-50 text-primary-800":"text-gray-700")},children:function(t){var n=t.selected;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"block truncate ".concat(n?"font-semibold":"font-normal"),children:e.label}),n&&(0,a.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-primary-600",children:(0,a.jsx)(o.l_A,{className:"text-xs","aria-hidden":"true"})})]})}},e.value)}))})})]})})}},62933:function(e,t,n){"use strict";n.r(t);var a=n(69779),r=n(85893),l=n(67294),i=n(86501),o=n(46412),s=n(33706),c=n(40866),u=[{value:"",label:"Select qualification"},{value:"bachelors",label:"Bachelor's Degree"},{value:"masters",label:"Master's Degree"},{value:"phd",label:"PhD"},{value:"diploma",label:"Diploma"}
1],d=[{value:"",label:"Select industry"},{value:"tech",label:"Technology"},{value:"finance",label:"Finance"},{value:"healthcare",label:"Healthcare"},{value:"marketing",label:"Marketing"}],p=[{value:"",label:"Select salary range"},{value:"0-5",label:"\u20b90 \u2013 \u20b95 LPA"},{value:"5-10",label:"\u20b95 \u2013 \u20b910 LPA"},{value:"10-20",label:"\u20b910 \u2013 \u20b920 LPA"},{value:"20+",label:"\u20b920+ LPA"}],x=[{value:"",label:"Select notice period"},{value:"immediate",label:"Immediate"},{value:"15",label:"15 days"},{value:"30",label:"30 days"},{value:"60",label:"60 days"},{value:"90",label:"90 days"}],m=["AI & Machine Learning","Business Strategy & Consulting","Product Management","Data Analysis & Visualization","Financial Modeling & Analysis","Software Development","Digital Marketing & SEO","Cloud Computing & DevOps","Others"];t.default=(0,o.CQ)((function(){var e=(0,l.useState)(""),t=e[0],n=e[1],o=(0,l.useState)(""),b=o[0],f=o[1],v=(0,l.useState)(""),g=v[0],h=v[1],y=(0,l.useState)(""),j=y[0],N=y[1],R=(0,l.useState)([]),S=R[0],w=R[1],O="w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm text-gray-800 focus:outline-none focus:ring-2 focus:ring-primary-500/20 focus:border-primary-400";return(0,r.jsx)(s.Z,{breadcrumb:"Job Portal",title:"Job Portal",subtitle:"Complete your profile to access job listings and placement support",children:(0,r.jsxs)("form",{onSubmit:function(e){e.preventDefault(),i.ZP.success("Profile saved successfully!")},className:"space-y-8",children:[(0,r.jsxs)("section",{className:"bg-white border border-gray-200 rounded-2xl p-5 sm:p-6 shadow-sm",children:[(0,r.jsx)("h2",{className:"text-base font-bold text-gray-900 mb-4",children:"Personal Details"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"LinkedIn URL"}),(0,r.jsx)("input",{type:"url",placeholder:"https://linkedin.com/in/yourprofile",className:O})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Current City, Country"}),(0,r.jsx)("input",{type:"text",placeholder:"Mumbai, India",className:O})]}),(0,r.jsxs)("div",{className:"sm:col-span-2",children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Resume"}),(0,r.jsxs)("div",{className:"border-2 border-dashed border-gray-200 rounded-xl p-6 text-center",children:[(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-2",children:"Only PDF is supported (2 MB)"}),(0,r.jsxs)("label",{className:"inline-flex cursor-pointer bg-primary-50 text-primary-700 text-sm font-semibold px-4 py-2 rounded-lg hover:bg-primary-100 transition",children:["Upload file",(0,r.jsx)("input",{type:"file",accept:".pdf",className:"hidden"})]})]})]})]})]}),(0,r.jsxs)("section",{className:"bg-white border border-gray-200 rounded-2xl p-5 sm:p-6 shadow-sm",children:[(0,r.jsx)("h2",{className:"text-base font-bold text-gray-900 mb-4",children:"Educational Background"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Highest Qualification"}),(0,r.jsx)(c.Z,{value:t,onChange:n,options:u,className:"w-full"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Field of Study / Specialization"}),(0,r.jsx)("input",{type:"text",placeholder:"Computer Science, Business, etc.",className:O})]})]})]}),(0,r.jsxs)("section",{className:"bg-white border border-gray-200 rounded-2xl p-5 sm:p-6 shadow-sm",children:[(0,r.jsx)("h2",{className:"text-base font-bold text-gray-900 mb-4",children:"Current Employment"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Job Title"}),(0,r.jsx)("input",{type:"text",placeholder:"Software Engineer",className:O})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Company Name"}),(0,r.jsx)("input",{type:"text",placeholder:"ABC Company",className:O})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Current Industry"}),(0,r.jsx)(c.Z,{value:b,onChange:f,options:d,className:"w-full"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Total Years of Work Experience"}),(0,r.jsx)("input",{type:"number",placeholder:"5",min:"0",className:O})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Current Salary Range (Annual CTC)"}),(0,r.jsx)(c.Z,{value:g,onChange:h,options:p,className:"w-full"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Notice Period or Availability to Join"}),(0,r.jsx)(c.Z,{value:j,onChange:N,options:x,className:"w-full"})]})]})]}),(0,r.jsxs)("section",{className:"bg-white border border-gray-200 rounded-2xl p-5 sm:p-6 shadow-sm",children:[(0,r.jsx)("h2",{className:"text-base font-bold text-gray-900 mb-4",children:"Skills & Certifications"}),(0,r.jsx)("p",{className:"text-sm font-medium text-gray-700 mb-3",children:"Top 3 Skills"}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 mb-4",children:m.map((function(e){return(0,r.jsxs)("label",{className:"flex items-center gap-2 text-sm text-gray-700 cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",checked:S.includes(e),onChange:function(){return function(e){w((function(t){return t.includes(e)?t.filter((function(t){return t!==e})):(0,a.Z)(t).concat([e])}))}(e)},className:"rounded border-gray-300 text-primary-600 focus:ring-primary-500"}),e]},e)}))}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Additional information about your professional achievements"}),(0,r.jsx)("textarea",{rows:4,placeholder:"Tell us about your certifications, achievements, and career goals...",className:"".concat(O," resize-none")})]})]}),(0,r.jsx)("button",{type:"submit",className:"bg-primary-600 text-white text-sm font-semibold px-8 py-3 rounded-xl hover:bg-primary-700 transition shadow-sm",children:"Save Profile"})]})})}))},64729:function(e,t,n){"use strict";n.d(t,{R:function(){return J}});var a,r,l=n(67294),i=n(71646),o=n(31147),s=n(94192),c=n(73781),u=n(19946),d=n(16723),p=n(3855),x=n(39650),m=n(14157),b=n(23784),f=n(55918),v=n(40476),g=n(46045),h=n(16567),y=n(64103),j=n(11497),N=n(9362),R=n(84575),S=n(18689),w=n(32984),O=n(15466),T=n(12351),k=n(61363),I=((r=I||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),L=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(L||{}),C=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(C||{}),P=((a=P||{})[a.OpenListbox=0]="OpenListbox",a[a.CloseListbox=1]="CloseListbox",a[a.GoToOption=2]="GoToOption",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterOption=5]="RegisterOption",a[a.UnregisterOption=6]="UnregisterOption",a[a.RegisterLabel=7]="RegisterLabel",a);function E(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=(0,R.z2)(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{options:a,activeOptionIndex:r}}let D={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,a=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a=E(e),r=(0,j.d)(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,searchQuery:"",activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>
1{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))})),l=r?e.options.indexOf(r):-1;return-1===l||l===e.activeOptionIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeOptionIndex:l,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},a=E(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(n)),{...e,...a}},6:(e,t)=>{let n=E(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},z=(0,l.createContext)(null);function M(e){let t=(0,l.useContext)(z);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}z.displayName="ListboxActionsContext";let A=(0,l.createContext)(null);function _(e){let t=(0,l.useContext)(A);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}function F(e,t){return(0,w.E)(t.type,D,e,t)}A.displayName="ListboxDataContext";let Z=l.Fragment;let B=T.AN.RenderStrategy|T.AN.Static;let Q=(0,T.yV)((function(e,t){let{value:n,defaultValue:a,form:r,name:i,onChange:u,by:p=((e,t)=>e===t),disabled:m=!1,horizontal:f=!1,multiple:v=!1,...y}=e;const N=f?"horizontal":"vertical";let O=(0,b.T)(t),[k=(v?[]:void 0),I]=(0,o.q)(n,u,a),[L,C]=(0,l.useReducer)(F,{dataRef:(0,l.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),P=(0,l.useRef)({static:!1,hold:!1}),E=(0,l.useRef)(null),D=(0,l.useRef)(null),M=(0,l.useRef)(null),_=(0,c.z)("string"==typeof p?(e,t)=>{let n=p;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:p),B=(0,l.useCallback)((e=>(0,w.E)(Q.mode,{1:()=>k.some((t=>_(t,e))),0:()=>_(k,e)})),[k]),Q=(0,l.useMemo)((()=>({...L,value:k,disabled:m,mode:v?1:0,orientation:N,compare:_,isSelected:B,optionsPropsRef:P,labelRef:E,buttonRef:D,optionsRef:M})),[k,m,v,L]);(0,d.e)((()=>{L.dataRef.current=Q}),[Q]),(0,x.O)([Q.buttonRef,Q.optionsRef],((e,t)=>{var n;C({type:1}),(0,R.sP)(t,R.tJ.Loose)||(e.preventDefault(),null==(n=Q.buttonRef.current)||n.focus())}),0===Q.listboxState);let U=(0,l.useMemo)((()=>({open:0===Q.listboxState,disabled:m,value:k})),[Q,m,k]),V=(0,c.z)((e=>{let t=Q.options.find((t=>t.id===e));t&&K(t.dataRef.current.value)})),$=(0,c.z)((()=>{if(null!==Q.activeOptionIndex){let{dataRef:e,id:t}=Q.options[Q.activeOptionIndex];K(e.current.value),C({type:2,focus:j.T.Specific,id:t})}})),G=(0,c.z)((()=>C({type:0}))),J=(0,c.z)((()=>C({type:1}))),Y=(0,c.z)(((e,t,n)=>e===j.T.Specific?C({type:2,focus:j.T.Specific,id:t,trigger:n}):C({type:2,focus:e,trigger:n}))),q=(0,c.z)(((e,t)=>(C({type:5,id:e,dataRef:t}),()=>C({type:6,id:e})))),H=(0,c.z)((e=>(C({type:7,id:e}),()=>C({type:7,id:null})))),K=(0,c.z)((e=>(0,w.E)(Q.mode,{0:()=>null==I?void 0:I(e),1(){let t=Q.value.slice(),n=t.findIndex((t=>_(t,e)));return-1===n?t.push(e):t.splice(n,1),null==I?void 0:I(t)}}))),W=(0,c.z)((e=>C({type:3,value:e}))),X=(0,c.z)((()=>C({type:4}))),ee=(0,l.useMemo)((()=>({onChange:K,registerOption:q,registerLabel:H,goToOption:Y,closeListbox:J,openListbox:G,selectActiveOption:$,selectOption:V,search:W,clearSearch:X})),[]),te={ref:O},ne=(0,l.useRef)(null),ae=(0,s.G)();return(0,l.useEffect)((()=>{ne.current&&void 0!==a&&ae.addEventListener(ne.current,"reset",(()=>{null==I||I(a)}))}),[ne,I]),l.createElement(z.Provider,{value:ee},l.createElement(A.Provider,{value:Q},l.createElement(h.up,{value:(0,w.E)(Q.listboxState,{0:h.ZM.Open,1:h.ZM.Closed})},null!=i&&null!=k&&(0,S.t)({[i]:k}).map((([e,t],n)=>l.createElement(g._,{features:g.A.Hidden,ref:0===n?e=>{var t;ne.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,T.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:m,name:e,value:t})}))),(0,T.sY)({ourProps:te,theirProps:y,slot:U,defaultTag:Z,name:"Listbox"}))))})),U=(0,T.yV)((function(e,t){var n;let a=(0,u.M)(),{id:r=`headlessui-listbox-button-${a}`,...o}=e,d=_("Listbox.Button"),p=M("Listbox.Button"),x=(0,b.T)(d.buttonRef,t),f=(0,s.G)(),v=(0,c.z)((e=>{switch(e.key){case k.R.Space:case k.R.Enter:case k.R.ArrowDown:e.preventDefault(),p.openListbox(),f.nextFrame((()=>{d.value||p.goToOption(j.T.First)}));break;case k.R.ArrowUp:e.preventDefault(),p.openListbox(),f.nextFrame((()=>{d.value||p.goToOption(j.T.Last)}))}})),g=(0,c.z)((e=>{if(e.key===k.R.Space)e.preventDefault()})),h=(0,c.z)((e=>{if((0,y.P)(e.currentTarget))return e.preventDefault();0===d.listboxState?(p.closeListbox(),f.nextFrame((()=>{var e;
1return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),p.openListbox())})),N=(0,i.v)((()=>{if(d.labelId)return[d.labelId,r].join(" ")}),[d.labelId,r]),R=(0,l.useMemo)((()=>({open:0===d.listboxState,disabled:d.disabled,value:d.value})),[d]),S={ref:x,id:r,type:(0,m.f)(e,d.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=d.optionsRef.current)?void 0:n.id,"aria-expanded":0===d.listboxState,"aria-labelledby":N,disabled:d.disabled,onKeyDown:v,onKeyUp:g,onClick:h};return(0,T.sY)({ourProps:S,theirProps:o,slot:R,defaultTag:"button",name:"Listbox.Button"})})),V=(0,T.yV)((function(e,t){let n=(0,u.M)(),{id:a=`headlessui-listbox-label-${n}`,...r}=e,i=_("Listbox.Label"),o=M("Listbox.Label"),s=(0,b.T)(i.labelRef,t);(0,d.e)((()=>o.registerLabel(a)),[a]);let p=(0,c.z)((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),x=(0,l.useMemo)((()=>({open:0===i.listboxState,disabled:i.disabled})),[i]);return(0,T.sY)({ourProps:{ref:s,id:a,onClick:p},theirProps:r,slot:x,defaultTag:"label",name:"Listbox.Label"})})),$=(0,T.yV)((function(e,t){var n;let a=(0,u.M)(),{id:r=`headlessui-listbox-options-${a}`,...o}=e,d=_("Listbox.Options"),p=M("Listbox.Options"),x=(0,b.T)(d.optionsRef,t),m=(0,s.G)(),f=(0,s.G)(),v=(0,h.oJ)(),g=null!==v?(v&h.ZM.Open)===h.ZM.Open:0===d.listboxState;(0,l.useEffect)((()=>{var e;let t=d.optionsRef.current;t&&0===d.listboxState&&t!==(null==(e=(0,O.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[d.listboxState,d.optionsRef]);let y=(0,c.z)((e=>{switch(f.dispose(),e.key){case k.R.Space:if(""!==d.searchQuery)return e.preventDefault(),e.stopPropagation(),p.search(e.key);case k.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==d.activeOptionIndex){let{dataRef:e}=d.options[d.activeOptionIndex];p.onChange(e.current.value)}0===d.mode&&(p.closeListbox(),(0,N.k)().nextFrame((()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)));break;case(0,w.E)(d.orientation,{vertical:k.R.ArrowDown,horizontal:k.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),p.goToOption(j.T.Next);case(0,w.E)(d.orientation,{vertical:k.R.ArrowUp,horizontal:k.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),p.goToOption(j.T.Previous);case k.R.Home:case k.R.PageUp:return e.preventDefault(),e.stopPropagation(),p.goToOption(j.T.First);case k.R.End:case k.R.PageDown:return e.preventDefault(),e.stopPropagation(),p.goToOption(j.T.Last);case k.R.Escape:return e.preventDefault(),e.stopPropagation(),p.closeListbox(),m.nextFrame((()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case k.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(p.search(e.key),f.setTimeout((()=>p.clearSearch()),350))}})),R=(0,i.v)((()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.id}),[d.buttonRef.current]),S=(0,l.useMemo)((()=>({open:0===d.listboxState})),[d]),I={"aria-activedescendant":null===d.activeOptionIndex||null==(n=d.options[d.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===d.mode||void 0,"aria-labelledby":R,"aria-orientation":d.orientation,id:r,onKeyDown:y,role:"listbox",tabIndex:0,ref:x};return(0,T.sY)({ourProps:I,theirProps:o,slot:S,defaultTag:"ul",features:B,visible:g,name:"Listbox.Options"})})),G=(0,T.yV)((function(e,t){let n=(0,u.M)(),{id:a=`headlessui-listbox-option-${n}`,disabled:r=!1,value:i,...o}=e,s=_("Listbox.Option"),x=M("Listbox.Option"),m=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===a,g=s.isSelected(i),h=(0,l.useRef)(null),y=(0,f.x)(h),R=(0,p.E)({disabled:r,value:i,domRef:h,get textValue(){return y()}}),S=(0,b.T)(t,h);(0,d.e)((()=>{if(0!==s.listboxState||!m||0===s.activationTrigger)return;let e=(0,N.k)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[h,m,s.listboxState,s.activationTrigger,s.activeOptionIndex]),(0,d.e)((()=>x.registerOption(a,R)),[R,a]);let w=(0,c.z)((e=>{if(r)return e.preventDefault();x.onChange(i),0===s.mode&&(x.closeListbox(),(0,N.k)().nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)))})),O=(0,c.z)((()=>{if(r)return x.goToOption(j.T.Nothing);x.goToOption(j.T.Specific,a)})),k=(0,v.g)(),I=(0,c.z)((e=>k.update(e))),L=(0,c.z)((e=>{k.wasMoved(e)&&(r||m||x.goToOption(j.T.Specific,a,0))})),C=(0,c.z)((e=>{k.wasMoved(e)&&(r||m&&x.goToOption(j.T.Nothing))})),P=(0,l.useMemo)((()=>({active:m,selected:g,disabled:r})),[m,g,r]);return(0,T.sY)({ourProps:{id:a,ref:S,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":g,disabled:void 0,onClick:w,onFocus:O,onPointerEnter:I,onMouseEnter:I,onPointerMove:L,onMouseMove:L,onPointerLeave:C,onMouseLeave:C},theirProps:o,slot:P,defaultTag:"li",name:"Listbox.Option"})})),J=Object.assign(Q,{Button:U,Label:V,Options:$,Option:G})},71646:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var a=n(67294),r=n(16723),l=n(3855);function i(e,t){let[n,i]=(0,a.useState)(e),o=(0,l.E)(e);return(0,r.e)((()=>i(o.current)),[o,i,...t]),n}},31147:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var a=n(67294),r=n(73781);function l(e,t,n){let[l,i]=(0,a.useState)(n),o=void 0!==e,s=(0,a.useRef)(o),c=(0,a.useRef)(!1),u=(0,a.useRef)(!1);return!o||s.current||c.current?!o&&s.current&&!u.current&&(u.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:l,(0,r.z)((e=>(o||i(e),null==t?void 0:t(e))))]}},18689:function(e,t,n){"use strict";function a(e={},t=null,n=[]){for(let[a,i]of Object.entries(e))l(n,r(t,a),i);return n}function r(e,t){return e?e+"["+t+"]":t}function l(e,t,n){if(Array.isArray(n))for(let[a,i]of n.entries())l(e,r(t,a.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):a(n,t,e)}function i(e){var t,n;let a=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(a){for(let t of a.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=a.requestSubmit)||n.call(a)}}n.d(t,{g:function(){return i},t:function(){return a}})}},function(e){e.O(0,[3874,30277,95445,61228,97948,94824,32013,29866,12876,44949,74550,9584,55250,41377,16629,95551,76701,52515,13700,93183,43626,70529,53833,56132,22359,49774,92888,40179],(function(){return t=7788,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.