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]="586b25fa-89e1-450b-b7b7-14ccaa355101",e._sentryDebugIdIdentifier="sentry-dbid-586b25fa-89e1-450b-b7b7-14ccaa355101")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51264],{95116:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/AICourses/community/showcase",function(){return n(10576)}])},33706:function(e,t,n){"use strict";var r=n(85893),a=(n(67294),n(11163));t.Z=function(e){var t=e.title,n=e.subtitle,i=e.action,o=e.children,s=e.breadcrumb,l=e.wide,c=void 0!==l&&l,u=(0,a.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,r.jsxs)("div",{className:"font-inter min-h-full bg-gray-50",children:[(0,r.jsx)("div",{className:"sticky top-0 z-10 bg-white/95 backdrop-blur-sm border-b border-gray-100",children:(0,r.jsx)("div",{className:"".concat(d," mx-auto px-4 sm:px-6 lg:px-8 xl:px-10 py-3"),children:(0,r.jsxs)("nav",{className:"flex items-center gap-1.5 text-xs sm:text-sm text-gray-500",children:[(0,r.jsx)("button",{type:"button",onClick:function(){return u.push("/learner")},className:"hover:text-primary-600 transition",children:"Home"}),(0,r.jsx)("span",{className:"text-gray-300",children:"\u203a"}),(0,r.jsx)("span",{className:"text-primary-600 font-medium truncate",children:s||t})]})})}),(0,r.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,r.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between mb-6 lg:mb-8",children:[(0,r.jsxs)("div",{className:"space-y-1.5 min-w-0",children:[(0,r.jsx)("h1",{className:"text-2xl sm:text-3xl lg:text-[2rem] font-bold text-gray-900 tracking-tight leading-tight",children:t}),n&&(0,r.jsx)("p",{className:"text-gray-500 text-sm sm:text-base leading-relaxed max-w-2xl",children:n})]}),i&&(0,r.jsx)("div",{className:"w-full sm:w-auto shrink-0 [&_button]:w-full sm:[&_button]:w-auto",children:i})]}),o]})]})}},25910:function(e,t,n){"use strict";var r=n(85893),a=n(67294),i=n(89583),o=n(86501),s={"bg-primary-500":"bg-primary-500","bg-primary-600":"bg-primary-600","bg-primary-700":"bg-primary-700","bg-primary-800":"bg-primary-800","bg-secondary-500":"bg-secondary-500","bg-secondary-600":"bg-secondary-600","bg-emerald-600":"bg-emerald-600","bg-purple-600":"bg-purple-600","bg-orange-500":"bg-orange-500","bg-pink-600":"bg-pink-600","bg-indigo-600":"bg-indigo-600","bg-teal-600":"bg-teal-600","bg-slate-700":"bg-slate-700","bg-rose-600":"bg-rose-600","bg-amber-600":"bg-amber-600","bg-fuchsia-600":"bg-fuchsia-600","bg-cyan-700":"bg-cyan-700","bg-lime-700":"bg-lime-700"},l="w-full aspect-video sm:aspect-[16/9] object-contain max-h-[420px] bg-gray-50",c=function(e){var t=e.images,n=e.alt,o=(0,a.useState)(0),s=o[0],c=o[1];return(0,r.jsxs)("div",{className:"relative bg-gray-50",children:[(0,r.jsx)("img",{src:t[s],alt:n?"".concat(n," \u2014 slide ").concat(s+1):"Slide ".concat(s+1),className:l}),(0,r.jsx)("button",{type:"button",onClick:function(){return c((function(e){return 0===e?t.length-1:e-1}))},"aria-label":"Previous image",className:"absolute left-2 sm:left-3 top-1/2 -translate-y-1/2 w-8 h-8 sm:w-9 sm:h-9 rounded-full bg-white/90 text-gray-700 shadow-md hover:bg-white transition flex items-center justify-center",children:(0,r.jsx)(i.bUI,{className:"text-xs sm:text-sm"})}),(0,r.jsx)("button",{type:"button",onClick:function(){return c((function(e){return e===t.length-1?0:e+1}))},"aria-label":"Next image",className:"absolute right-2 sm:right-3 top-1/2 -translate-y-1/2 w-8 h-8 sm:w-9 sm:h-9 rounded-full bg-white/90 text-gray-700 shadow-md hover:bg-white transition flex items-center justify-center",children:(0,r.jsx)(i.Dli,{className:"text-xs sm:text-sm"})}),(0,r.jsx)("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1.5",children:t.map((function(e,t){return(0,r.jsx)("button",{type:"button",onClick:function(){return c(t)},"aria-label":"Go to slide ".concat(t+1),className:"h-2 rounded-full transition-all ".concat(t===s?"w-5 bg-primary-600":"w-2 bg-white/80 hover:bg-white")},e)}))})]})};t.Z=function(e){var t=e.author,n=e.initials,u=e.avatarColor,d=void 0===u?"bg-primary-500":u,p=e.timeAgo,x=e.industry,m=e.title,b=e.content,f=e.description,g=e.hashtags,v=void 0===g?[]:g,h=e.image,y=e.images,w=void 0===y?[]:y,j=e.video,N=e.liveLink,R=(0,a.useState)(!1),O
1=R[0],S=R[1],T=(0,a.useState)(!1),k=T[0],I=T[1],L=(0,a.useState)(1),P=L[0],C=L[1],E=(0,a.useState)(0)[0],D=b||f||"",z=D.length>200,A=O||!z?D:"".concat(D.slice(0,200),"..."),M=function(e,t){if(null===t||void 0===t?void 0:t.trim())return t.trim().toUpperCase();if(!(null===e||void 0===e?void 0:e.trim()))return"?";var n=e.trim().split(/\s+/);return 1===n.length?n[0].slice(0,2).toUpperCase():"".concat(n[0][0]).concat(n[n.length-1][0]).toUpperCase()}(t,n),_=s[d]||"bg-primary-500",F=w.length>0?w:h?[h]:[],U=!j&&F.length>1;return(0,r.jsxs)("article",{className:"bg-white rounded-2xl border border-gray-200/80 shadow-sm hover:shadow-md transition-shadow duration-200 overflow-hidden",children:[(0,r.jsxs)("div",{className:"p-4 sm:p-6",children:[(0,r.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,r.jsx)("div",{className:"w-10 h-10 sm:w-11 sm:h-11 rounded-full ".concat(_," flex items-center justify-center text-white font-semibold text-sm flex-shrink-0 ring-2 ring-white shadow-sm"),children:M}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"font-semibold text-gray-900 text-sm sm:text-base leading-tight truncate",children:t}),(0,r.jsx)("p",{className:"text-xs text-gray-400 mt-0.5",children:p})]}),x&&(0,r.jsx)("span",{className:"hidden sm:inline-flex text-xs font-medium text-primary-700 bg-primary-50 border border-primary-100 px-2.5 py-1 rounded-full shrink-0",children:x})]}),x&&(0,r.jsx)("span",{className:"sm:hidden inline-flex text-xs font-medium text-primary-700 bg-primary-50 border border-primary-100 px-2.5 py-1 rounded-full mb-3",children:x}),m&&(0,r.jsx)("h3",{className:"text-lg sm:text-xl font-bold text-gray-900 mb-2 leading-snug",children:m}),D&&(0,r.jsxs)("p",{className:"text-sm sm:text-[15px] text-gray-600 leading-relaxed",children:[A,z&&!O&&(0,r.jsx)("button",{type:"button",onClick:function(){return S(!0)},className:"text-primary-600 font-medium ml-1 hover:underline",children:"read more"})]}),v.length>0&&(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-2 mt-4",children:v.map((function(e){return(0,r.jsx)("span",{className:"text-xs text-gray-600 bg-gray-100 hover:bg-gray-200 px-2.5 py-1 rounded-lg cursor-pointer transition",children:e},e)}))})]}),(j||F.length>0)&&(0,r.jsx)("div",{className:"border-t border-gray-100 ".concat(j?"bg-gray-900":"bg-gray-50"),children:j?(0,r.jsx)("video",{src:j,poster:h,controls:!0,controlsList:"nodownload noplaybackrate noremoteplayback",disablePictureInPicture:!0,playsInline:!0,preload:"metadata",onContextMenu:function(e){return e.preventDefault()},className:"w-full aspect-video sm:aspect-[16/9] object-contain max-h-[420px] bg-black"}):U?(0,r.jsx)(c,{images:F,alt:m}):(0,r.jsx)("img",{src:F[0],alt:m||"Post image",className:l})}),N&&(0,r.jsxs)("div",{className:"px-4 sm:px-6 py-3 bg-gray-50 border-t border-gray-100 flex items-center gap-2",children:[(0,r.jsx)(i.gjK,{className:"text-primary-500 text-xs flex-shrink-0"}),(0,r.jsx)("a",{href:N,target:"_blank",rel:"noopener noreferrer",className:"text-primary-600 text-xs sm:text-sm font-medium hover:underline truncate",children:N})]}),(0,r.jsxs)("div",{className:"px-4 sm:px-6 py-3 border-t border-gray-100 flex items-center gap-4 sm:gap-6 bg-white",children:[(0,r.jsxs)("button",{type:"button",onClick:function(){I((function(e){return!e})),C((function(e){return k?e-1:e+1}))},className:"flex items-center gap-1.5 text-sm text-gray-500 hover:text-red-500 transition",children:[k?(0,r.jsx)(i.$0H,{className:"text-red-500 text-base"}):(0,r.jsx)(i.BgW,{className:"text-base"}),(0,r.jsx)("span",{children:P})]}),(0,r.jsxs)("button",{type:"button",className:"flex items-center gap-1.5 text-sm text-gray-500 hover:text-primary-600 transition",children:[(0,r.jsx)(i.ZvA,{className:"text-base"}),(0,r.jsx)("span",{children:E})]}),(0,r.jsxs)("button",{type:"button",onClick:function(){navigator.clipboard&&(navigator.clipboard.writeText(window.location.href),o.ZP.success("Link copied to clipboard!"))},className:"flex items-center gap-1.5 text-sm text-gray-500 hover:text-primary-600 transition ml-auto",children:[(0,r.jsx)(i.PPi,{className:"text-base"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Share"})]})]})]})}},40866:function(e,t,n){"use strict";var r=n(85893),a=n(67294),i=n(64729),o=n(44080),s=n(89583);
1t.Z=function(e){var t=e.value,n=e.onChange,l=e.options,c=e.placeholder,u=void 0===c?"Select\u2026":c,d=e.icon,p=e.className,x=void 0===p?"":p,m=l.find((function(e){return e.value===t}))||l[0];return(0,r.jsx)(i.R,{value:t,onChange:n,children:(0,r.jsxs)("div",{className:"relative ".concat(x),children:[(0,r.jsxs)(i.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,r.jsxs)("span",{className:"flex items-center gap-2 truncate",children:[d&&(0,r.jsx)(d,{className:"text-gray-400 text-xs flex-shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:(null===m||void 0===m?void 0:m.label)||u})]}),(0,r.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:(0,r.jsx)(s.RiI,{className:"text-gray-400 text-xs","aria-hidden":"true"})})]}),(0,r.jsx)(o.u,{as:a.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)(i.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:l.map((function(e){return(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"block truncate ".concat(n?"font-semibold":"font-normal"),children:e.label}),n&&(0,r.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-primary-600",children:(0,r.jsx)(s.l_A,{className:"text-xs","aria-hidden":"true"})})]})}},e.value)}))})})]})})}},10576:function(e,t,n){"use strict";n.r(t);var r=n(85893),a=n(67294),i=n(89583),o=n(46412),s=n(33706),l=n(25910),c=n(40866),u=n(18772),d=n(86501),p=u.Db.map((function(e){return{value:e,label:e}}));t.default=(0,o.CQ)((function(){var e=(0,a.useState)("All Industries"),t=e[0],n=e[1],o="All Industries"===t?u.tQ:u.tQ.filter((function(e){return e.industry===t}));return(0,r.jsxs)(s.Z,{wide:"narrow",title:"Project Gallery",subtitle:"Discover and share amazing projects from our community",breadcrumb:"Project Gallery",action:(0,r.jsxs)("button",{type:"button",onClick:function(){return d.ZP.success("Share feature coming soon!")},className:"inline-flex items-center justify-center gap-2 bg-primary-600 text-white text-sm font-semibold px-5 py-2.5 rounded-xl hover:bg-primary-700 active:scale-[0.98] transition shadow-sm",children:[(0,r.jsx)(i.wEH,{className:"text-xs"}),"Share Your Work"]}),children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-6 p-4 bg-white rounded-2xl border border-gray-200/80 shadow-sm",children:[(0,r.jsxs)("p",{className:"text-sm text-gray-600 font-medium",children:[o.length," project",1!==o.length?"s":""]}),(0,r.jsx)(c.Z,{value:t,onChange:n,options:p,icon:i.ulB,className:"w-full sm:w-56"})]}),(0,r.jsx)("div",{className:"space-y-4 sm:space-y-6",children:o.length>0?o.map((function(e){return(0,r.jsx)(l.Z,{author:e.author,initials:e.initials,avatarColor:e.avatarColor,timeAgo:e.timeAgo,industry:e.industry,title:e.title,description:e.description,hashtags:e.hashtags,image:e.image,images:e.images,video:e.video,liveLink:e.liveLink},e.id)})):(0,r.jsx)("div",{className:"text-center py-14 bg-white rounded-2xl border border-gray-200",children:(0,r.jsx)("p",{className:"text-gray-400 text-sm",children:"No projects found for this industry."})})})]})}))},64729:function(e,t,n){"use strict";n.d(t,{R:function(){return Y}});var r,a,i=n(67294),o=n(71646),s=n(31147),l=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),g=n(40476),v=n(46045),h=n(16567),y=n(64103),w=n(11497),j=n(9362),N=n(84575),R=n(18689),O=n(32984),S=n(15466),T=n(12351),k=n(61363),I=((a=I||{})[a.Open=0]="Open",a[a.Closed=1]="Closed",a),L=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(L||{}),P=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(P||{}),C=((r=C||{})[r.OpenListbox=0]="OpenListbox",r[r.CloseListbox=1]="CloseListbox",r[r.GoToOption=2]="GoToOption",r[r.Search=3]="Search",r[r.ClearSearch=4]="ClearSearch",r[r.RegisterOption=5]="RegisterOption",r[r.UnregisterOption=6]="UnregisterOption",r[r.RegisterLabel=7]="RegisterLabel",r);function E(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,N.z2)(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),a=n?r.indexOf(n):null;return-1===a&&(a=null),{options:r,activeOptionIndex:a}}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,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=E(e),a=(0,w.d)(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:a,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,r=e.searchQuery+t.value.toLowerCase(),a=(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(r))})),i=a?e.options.indexOf(a):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,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},r=E(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},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,i.createContext)(null);function A(e){let t=(0,i.useContext)(z);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}z.displayName="ListboxActionsContext";let M=(0,i.createContext)(null);function _(e){let t=(0,i.useContext)(M);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,O.E)(t.type,D,e,t)}M.displayName="ListboxDataContext";let U=i.Fragment;let Z=T.AN.RenderStrategy|T.AN.Static;let Q=(0,T.yV)((function(e,t){let{value:n,defaultValue:r,form:a,name:o,onChange:u,by:p=((e,t)=>e===t),disabled:m=!1,horizontal:f=!1,multiple:g=!1,...y}=e;const j=f?"horizontal":"vertical";let S=(0,b.T)(t),[k=(g?[]:void 0),I]=(0,s.q)(n,u,r),[L,P]=(0,i.useReducer)(F,{dataRef:(0,i.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),C=(0,i.useRef)({static:!1,hold:!1}),E=(0,i.useRef)(null),D=(0,i.useRef)(null),A=(0,i.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),Z=(0,i.useCallback)((e=>(0,O.E)(Q.mode,{1:()=>k.some((t=>_(t,e))),0:()=>_(k,e)})),[k]),Q=(0,i.useMemo)((()=>({...L,value:k,disabled:m,mode:g?1:0,orientation:j,compare:_,isSelected:Z,optionsPropsRef:C,labelRef:E,buttonRef:D,optionsRef:A})),[k,m,g,L]);(0,d.e)((()=>{L.dataRef.current=Q}),[Q]),(0,x.O)([Q.buttonRef,Q.optionsRef],((e,t)=>{var n;P({type:1}),(0,N.sP)(t,N.tJ.Loose)||(e.preventDefault(),null==(n=Q.buttonRef.current)||n.focus())}),0===Q.listboxState);let G=(0,i.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&&W(t.dataRef.current.value)})),B=(0,c.z)((()=>{if(null!==Q.activeOptionIndex){let{dataRef:e,id:t}=Q.options[Q.activeOptionIndex];W(e.current.value),P({type:2,focus:w.T.Specific,id:t})}})),$=(0,c.z)((()=>P({type:0}))),Y=(0,c.z)((()=>P({type:1}))),H=(0,c.z)(((e,t,n)=>e===w.T.Specific?P({type:2,focus:w.T.Specific,id:t,trigger:n}):P({type:2,focus:e,trigger:n}))),q=(0,c.z)(((e,t)=>(P({type:5,id:e,dataRef:t}),()=>P({type:6,id:e})))),K=(0,c.z)((e=>(P({type:7,id:e}),()=>P({type:7,id:null})))),W=(0,c.z)((e=>(0,O.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)}}))),J=(0,c.z)((e=>P({type:3,value:e}))),X=(0,c.z)((()=>P({type:4}))),ee=(0,i.useMemo)((()=>({onChange:W,registerOption:q,registerLabel:K,goToOption:H,closeListbox:Y,openListbox:$,selectActiveOption:B,selectOption:V,search:J,clearSearch:X})),[]),te={ref:S},ne=(0,i.useRef)(null),re=(0,l.G)();return(0,i.useEffect)((()=>{ne.current&&void 0!==r&&re.addEventListener(ne.current,"reset",(()=>{null==I||I(r)}))}),[ne,I]),i.createElement(z.Provider,{value:ee},i.createElement(M.Provider,{value:Q},i.createElement(h.up,{value:(0,O.E)(Q.listboxState,{0:h.ZM.Open,1:h.ZM.Closed})},null!=o&&null!=k&&(0,R.t)({[o]:k}).map((([e,t],n)=>i.createElement(v._,{features:v.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:a,disabled:m,name:e,value:t})}))),(0,T.sY)({ourProps:te,theirProps:y,slot:G,defaultTag:U,name:"Listbox"}))))})),G=(0,T.yV)((function(e,t){var n;let r=(0,u.M)(),{id:a=`headlessui-listbox-button-${r}`,...s}=e,d=_("Listbox.Button"),p=A("Listbox.Button"),x=(0,b.T)(d.buttonRef,t),f=(0,l.G)(),g=(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(w.T.First)}));break;case k.R.ArrowUp:e.preventDefault(),p.openListbox(),f.nextFrame((()=>{d.value||p.goToOption(w.T.Last)}))}})),v=(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())})),j=(0,o.v)((()=>{if(d.labelId)return[d.labelId,a].join(" ")}),[d.labelId,a]),N=(0,i.useMemo)((()=>({open:0===d.listboxState,disabled:d.disabled,value:d.value})),[d]),R={ref:x,id:a,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":j,disabled:d.disabled,onKeyDown:g,onKeyUp:v,onClick:h};return(0,T.sY)({ourProps:R,theirProps:s,slot:N,defaultTag:"button",name:"Listbox.Button"})})),V=(0,T.yV)((function(e,t){let n=(0,u.M)(),{id:r=`headlessui-listbox-label-${n}`,...a}=e,o=_("Listbox.Label"),s=A("Listbox.Label"),l=(0,b.T)(o.labelRef,t);(0,d.e)((()=>s.registerLabel(r)),[r]);let p=(0,c.z)((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),x=(0,i.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled})),[o]);return(0,T.sY)({ourProps:{ref:l,id:r,onClick:p},theirProps:a,slot:x,defaultTag:"label",name:"Listbox.Label"})})),B=(0,T.yV)((function(e,t){var n;let r=(0,u.M)(),{id:a=`headlessui-listbox-options-${r}`,...s}=e,d=_("Listbox.Options"),p=A("Listbox.Options"),x=(0,b.T)(d.optionsRef,t),m=(0,l.G)(),f=(0,l.G)(),g=(0,h.oJ)(),v=null!==g?(g&h.ZM.Open)===h.ZM.Open:0===d.listboxState;(0,i.useEffect)((()=>{var e;let t=d.optionsRef.current;t&&0===d.listboxState&&t!==(null==(e=(0,S.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,j.k)().nextFrame((()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)));break;case(0,O.E)(d.orientation,{vertical:k.R.ArrowDown,horizontal:k.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),p.goToOption(w.T.Next);case(0,O.E)(d.orientation,{vertical:k.R.ArrowUp,horizontal:k.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),p.goToOption(w.T.Previous);case k.R.Home:case k.R.PageUp:return e.preventDefault(),e.stopPropagation(),p.goToOption(w.T.First);case k.R.End:case k.R.PageDown:return e.preventDefault(),e.stopPropagation(),p.goToOption(w.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))}})),N=(0,o.v)((()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.id}),[d.buttonRef.current]),R=(0,i.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":N,"aria-orientation":d.orientation,id:a,onKeyDown:y,role:"listbox",tabIndex:0,ref:x};return(0,T.sY)({ourProps:I,theirProps:s,slot:R,defaultTag:"ul",features:Z,visible:v,name:"Listbox.Options"})})),$=(0,T.yV)((function(e,t){let n=(0,u.M)(),{id:r=`headlessui-listbox-option-${n}`,disabled:a=!1,value:o,...s}=e,l=_("Listbox.Option"),x=A("Listbox.Option"),m=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===r,v=l.isSelected(o),h=(0,i.useRef)(null),y=(0,f.x)(h),N=(0,p.E)({disabled:a,value:o,domRef:h,get textValue(){return y()}}),R=(0,b.T)(t,h);(0,d.e)((()=>{if(0!==l.listboxState||!m||0===l.activationTrigger)return;let e=(0,j.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,l.listboxState,l.activationTrigger,l.activeOptionIndex]),(0,d.e)((()=>x.registerOption(r,N)),[N,r]);let O=(0,c.z)((e=>{if(a)return e.preventDefault();x.onChange(o),0===l.mode&&(x.closeListbox(),(0,j.k)().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)))})),S=(0,c.z)((()=>{if(a)return x.goToOption(w.T.Nothing);x.goToOption(w.T.Specific,r)})),k=(0,g.g)(),I=(0,c.z)((e=>k.update(e))),L=(0,c.z)((e=>{k.wasMoved(e)&&(a||m||x.goToOption(w.T.Specific,r,0))})),P=(0,c.z)((e=>{k.wasMoved(e)&&(a||m&&x.goToOption(w.T.Nothing))})),C=(0,i.useMemo)((()=>({active:m,selected:v,disabled:a})),[m,v,a]);return(0,T.sY)({ourProps:{id:r,ref:R,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":v,disabled:void 0,onClick:O,onFocus:S,onPointerEnter:I,onMouseEnter:I,onPointerMove:L,onMouseMove:L,onPointerLeave:P,onMouseLeave:P},theirProps:s,slot:C,defaultTag:"li",name:"Listbox.Option"})})),Y=Object.assign(Q,{Button:G,Label:V,Options:B,Option:$})},71646:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(67294),a=n(16723),i=n(3855);function o(e,t){let[n,o]=(0,r.useState)(e),s=(0,i.E)(e);return(0,a.e)((()=>o(s.current)),[s,o,...t]),n}},31147:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(67294),a=n(73781);function i(e,t,n){let[i,o]=(0,r.useState)(n),s=void 0!==e,l=(0,r.useRef)(s),c=(0,r.useRef)(!1),u=(0,r.useRef)(!1);return!s||l.current||c.current?!s&&l.current&&!u.current&&(u.current=!0,l.current=s,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,l.current=s,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.")),[s?e:i,(0,a.z)((e=>(s||o(e),null==t?void 0:t(e))))]}},18689:function(e,t,n){"use strict";function r(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))i(n,a(t,r),o);return n}function a(e,t){return e?e+"["+t+"]":t}function i(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())i(e,a(t,r.toString()),o);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,""]):r(n,t,e)}function o(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.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=r.requestSubmit)||n.call(r)}}n.d(t,{g:function(){return o},t:function(){return r}})}},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=95116,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.