PageSourceSearch

https://www.thegrillfraserburgh.co.uk/_next/static/chunks/12-067120e308123ef4.js

js thegrillfraserburgh.co.uk collected 2026-10-02 02:10:31 UTC 18,586 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{2012:function(e,t,n){n.d(t,{Ri:function(){return em}});var o,i,s,l,r=n(83260),a=n(39351),u=n(67294),c=n(73935),d=n(63766),p=n(31147),v=n(19322),f=n(94192),m=n(16230),x=n(73781),O=n(97141),S=n(70017),E=n(16723),R=n(3855),I=n(48553),T=n(90292),M=n(51074),_=n(32353),P=n(14157),L=n(65728),k=n(49915),w=n(23784),C=n(55918),D=n(40476),z=n(9135),A=n(30718),F=n(60821),V=n(20391);function frozen_u(e,t){let[n,o]=(0,u.useState)(t);return e||n===t||o(t),e?n:t}u.forwardRef(function({children:e,freeze:t},n){let o=frozen_u(t,e);return(0,u.isValidElement)(o)?(0,u.cloneElement)(o,{ref:n}):u.createElement(u.Fragment,null,o)});var N=n(12763),B=n(16567),U=n(22246),G=n(72245),H=n(11497),K=n(9362),Z=n(57273),$=n(84575),j=n(18689),q=n(32984),J=n(15466),X=n(12351),W=n(39516),Y=n(61363),ee=n(95389),et=n(2740),en=n(98892),eo=n(49041),ei=Object.defineProperty,y=(e,t,n)=>t in e?ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t,n)=>(y(e,"symbol"!=typeof t?t+"":t,n),n),es=((o=es||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),el=((i=el||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),er=((s=er||{})[s.Pointer=0]="Pointer",s[s.Other=1]="Other",s),ea=((l=ea||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.SelectOption=5]="SelectOption",l[l.RegisterOptions=6]="RegisterOptions",l[l.UnregisterOptions=7]="UnregisterOptions",l[l.SetButtonElement=8]="SetButtonElement",l[l.SetOptionsElement=9]="SetOptionsElement",l[l.SortOptions=10]="SortOptions",l[l.MarkButtonAsMoved=11]="MarkButtonAsMoved",l);function g(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=(0,$.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?o.indexOf(n):null;return -1===i&&(i=null),{options:o,activeOptionIndex:i}}let eu={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?eo.On.Tracked((0,eo.kn)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:H.T.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:o}=e.dataRef.current,i=e.options.findIndex(e=>o(e.dataRef.current.value));return -1!==i&&(n=i),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:eo.On.Idle}},2(e,t){var n,o,i,s,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===H.T.Nothing)return{...r,activeOptionIndex:null};if(t.focus===H.T.Specific)return{...r,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===H.T.Previous){let n=e.activeOptionIndex;if(null!==n){let s=e.options[n].dataRef.current.domRef,l=(0,H.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(o=s.current)?void 0:o.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...r,activeOptionIndex:l}}}}else if(t.focus===H.T.Next){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,i=(0,H.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.options[i].dataRef.current.domRef;if((null==(s=o.current)?void 0:s.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...r,activeOptionIndex:i}}}}let a=g(e),u=(0,H.d)(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...r,...a,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,o=e.searchQuery+t.value.toLowerCase(),i=(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(o))}),s=i?e.options.indexOf(i):-1;return -1===s||s===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeOptionIndex:s,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),o=e.activeOptionIndex;if(e.pendingFocus.focus!==H.T.Nothing&&(o=(0,H.d)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(o=e)}}return{...e,options:n,activeOptionIndex:o,pendingFocus:{focus:H.T.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,o=[],i=new Set(t.options);for(let[e,t]of n.entries())if(i.has(t.id)&&(o.push(e),i.delete(t.id),0===i.size))break;if(o.length>0)for(let e of(n=n.slice(),o.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>
1e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...g(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:eo.On.Moved}};let h=class h extends en.J{constructor(e){super(e),b(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:i}=this.state.dataRef.current;return(0,q.E)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=i.slice(),s=o.findIndex(t=>n(t,e));return -1===s?o.push(e):o.splice(s,1),null==t?void 0:t(o)}})},registerOption:(0,en.dC)(()=>{let e=[],t=new Set;return[(n,o)=>{t.has(o)||(t.add(o),e.push({id:n,dataRef:o}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,en.dC)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,en.dC)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),b(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,o=e.options;return null===n||null==(t=o[n])?void 0:t.id},isActive(e,t){var n;let o=e.activeOptionIndex,i=e.options;return null!==o&&(null==(n=i[o])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=U.n.get(null);this.disposables.add(t.on(U.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,eo.hS)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new h({id:e,dataRef:{current:{}},listboxState:t?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:H.T.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:eo.On.Idle})}reduce(e,t){return(0,q.E)(t.type,eu,e,t)}};var ec=n(61595);let ed=(0,u.createContext)(null);function listbox_machine_glue_p(e){let t=(0,u.useContext)(ed);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,listbox_machine_glue_u),t}return t}function listbox_machine_glue_u({id:e,__demoMode:t=!1}){let n=(0,u.useMemo)(()=>h.new({id:e,__demoMode:t}),[]);return(0,ec.L)(()=>n.dispose()),n}let ep=(0,u.createContext)(null);function Q(e){let t=(0,u.useContext)(ep);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Q),t}return t}ep.displayName="ListboxDataContext";let ev=u.Fragment,ef=(0,u.createContext)(!1),eb=X.VN.RenderStrategy|X.VN.Static,eh=u.Fragment,em=Object.assign((0,X.yV)(function(e,t){let n=(0,u.useId)(),o=(0,A.B)(),{value:i,defaultValue:s,form:l,name:r,onChange:a,by:c,invalid:d=!1,disabled:f=o||!1,horizontal:m=!1,multiple:x=!1,__demoMode:O=!1,...S}=e,R=(0,w.T)(t),I=(0,v.L)(s),[M=x?[]:void 0,_]=(0,p.q)(i,a,I),P=listbox_machine_glue_u({id:n,__demoMode:O}),L=(0,u.useRef)({static:!1,hold:!1}),C=(0,u.useRef)(new Map),D=function(e=function(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}){return(0,u.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(c),z=(0,u.useCallback)(e=>(0,q.E)(N.mode,{[el.Multi]:()=>M.some(t=>D(t,e)),[el.Single]:()=>D(M,e)}
1),[M]),N=(0,k.x)({value:M,disabled:f,invalid:d,mode:x?el.Multi:el.Single,orientation:m?"horizontal":"vertical",onChange:_,compare:D,isSelected:z,optionsPropsRef:L,listRef:C});(0,E.e)(()=>{P.state.dataRef.current=N},[N]);let H=(0,G.M)(P,e=>e.listboxState),K=U.n.get(null),Z=(0,G.M)(K,(0,u.useCallback)(e=>K.selectors.isTop(e,n),[K,n])),[j,J]=(0,G.M)(P,e=>[e.buttonElement,e.optionsElement]);(0,T.O)(Z,[j,J],(e,t)=>{P.send({type:ea.CloseListbox}),(0,$.sP)(t,$.tJ.Loose)||(e.preventDefault(),null==j||j.focus())});let W=(0,k.x)({open:H===es.Open,disabled:f,invalid:d,value:M}),[Y,et]=(0,ee.bE)({inherit:!0}),en=(0,u.useCallback)(()=>{if(void 0!==I)return null==_?void 0:_(I)},[_,I]),eo=(0,X.L6)();return u.createElement(et,{value:Y,props:{htmlFor:null==j?void 0:j.id},slot:{open:H===es.Open,disabled:f}},u.createElement(F.HO,null,u.createElement(ed.Provider,{value:P},u.createElement(ep.Provider,{value:N},u.createElement(B.up,{value:(0,q.E)(H,{[es.Open]:B.ZM.Open,[es.Closed]:B.ZM.Closed})},null!=r&&null!=M&&u.createElement(V.Mt,{disabled:f,data:{[r]:M},form:l,onReset:en}),eo({ourProps:{ref:R},theirProps:S,slot:W,defaultTag:ev,name:"Listbox"}))))))}),{Button:(0,X.yV)(function(e,t){let n=(0,u.useId)(),o=(0,N.Q)(),i=Q("Listbox.Button"),s=listbox_machine_glue_p("Listbox.Button"),{id:l=o||`headlessui-listbox-button-${n}`,disabled:p=i.disabled||!1,autoFocus:v=!1,...f}=e,m=(0,w.T)(t,(0,F.AZ)(),s.actions.setButtonElement),S=(0,F.L)(),[E,R,I]=(0,G.M)(s,e=>[e.listboxState,e.buttonElement,e.optionsElement]),T=E===es.Open;(0,_.G)(T,{trigger:R,action:(0,u.useCallback)(e=>{if(null!=R&&R.contains(e.target))return _.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Z.Re(t)?_.a.Select(t):null!=I&&I.contains(e.target)?_.a.Ignore:_.a.Close},[R,I]),close:s.actions.closeListbox,select:s.actions.selectActiveOption});let M=(0,x.z)(e=>{switch(e.key){case Y.R.Enter:(0,j.g)(e.currentTarget);break;case Y.R.Space:case Y.R.ArrowDown:e.preventDefault(),s.actions.openListbox({focus:i.value?H.T.Nothing:H.T.First});break;case Y.R.ArrowUp:e.preventDefault(),s.actions.openListbox({focus:i.value?H.T.Nothing:H.T.Last})}}),L=(0,x.z)(e=>{e.key===Y.R.Space&&e.preventDefault()}),C=(0,O.a)(e=>{var t;s.state.listboxState===es.Open?((0,c.flushSync)(()=>s.actions.closeListbox()),null==(t=s.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),s.actions.openListbox({focus:H.T.Nothing}))}),D=(0,x.z)(e=>e.preventDefault()),z=(0,ee.wp)([l]),A=(0,W.zH)(),{isFocusVisible:V,focusProps:B}=(0,r.F)({autoFocus:v}),{isHovered:U,hoverProps:K}=(0,a.X)({isDisabled:p}),{pressed:$,pressProps:q}=(0,d.x)({disabled:p}),J=(0,k.x)({open:E===es.Open,active:$||E===es.Open,disabled:p,invalid:i.invalid,value:i.value,hover:U,focus:V,autofocus:v}),et=(0,G.M)(s,e=>e.listboxState===es.Open),en=(0,X.dG)(S(),{ref:m,id:l,type:(0,P.f)(e,R),"aria-haspopup":"listbox","aria-controls":null==I?void 0:I.id,"aria-expanded":et,"aria-labelledby":z,"aria-describedby":A,disabled:p||void 0,autoFocus:v,onKeyDown:M,onKeyUp:L,onKeyPress:D},C,B,K,q);return(0,X.L6)()({ourProps:en,theirProps:f,slot:J,defaultTag:"button",name:"Listbox.Button"})}),Label:ee.__,Options:(0,X.yV)(function(e,t){let n=(0,u.useId)(),{id:o=`headlessui-listbox-options-${n}`,anchor:i,portal:s=!1,modal:l=!0,transition:r=!1,...a}=e,d=(0,F.Vy)(i),[p,v]=(0,u.useState)(null);d&&(s=!0);let O=Q("Listbox.Options"),E=listbox_machine_glue_p("Listbox.Options"),[R,T,_,P]=(0,G.M)(E,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),C=(0,M.i)(T),D=(0,M.i)(_),A=(0,B.oJ)(),[V,N]=(0,z.Y)(r,p,null!==A?(A&B.ZM.Open)===B.ZM.Open:R===es.Open);(0,I.m)(V,T,E.actions.closeListbox);let U=!P&&l&&R===es.Open;(0,L.P)(U,D);let K=!P&&l&&R===es.Open;(0,S.s)(K,{allowed:(0,u.useCallback)(()=>[T,_],[T,_])});let Z=!(0,G.M)(E,E.selectors.didButtonMove)&&V,j=frozen_u((0,G.M)(E,E.selectors.hasFrozenValue)&&!e.static,O.value),W=(0,u.useCallback)(e=>O.compare(j,e),[O.compare,j]),ee=(0,G.M)(E,e=>{var t;if(null==d||!(null!=(t=null==d?void 0:d.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>W(e.dataRef.current.value));return -1===n&&(n=0),n}),en=(()=>
1{if(null==d)return;if(null===ee)return{...d,inner:void 0};let e=Array.from(O.listRef.current.values());return{...d,inner:{listRef:{current:e},index:ee}}})(),[eo,ei]=(0,F.ES)(en),er=(0,F.U8)(),ea=(0,w.T)(t,d?eo:null,E.actions.setOptionsElement,v),eu=(0,f.G)();(0,u.useEffect)(()=>{_&&R===es.Open&&((0,J.H9)(_)||null==_||_.focus({preventScroll:!0}))},[R,_]);let ec=(0,x.z)(e=>{var t;switch(eu.dispose(),e.key){case Y.R.Space:if(""!==E.state.searchQuery)return e.preventDefault(),e.stopPropagation(),E.actions.search(e.key);case Y.R.Enter:e.preventDefault(),e.stopPropagation(),E.actions.selectActiveOption();break;case(0,q.E)(O.orientation,{vertical:Y.R.ArrowDown,horizontal:Y.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:H.T.Next});case(0,q.E)(O.orientation,{vertical:Y.R.ArrowUp,horizontal:Y.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:H.T.Previous});case Y.R.Home:case Y.R.PageUp:return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:H.T.First});case Y.R.End:case Y.R.PageDown:return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:H.T.Last});case Y.R.Escape:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>E.actions.closeListbox()),null==(t=E.state.buttonElement)||t.focus({preventScroll:!0});return;case Y.R.Tab:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>E.actions.closeListbox()),(0,$.EO)(E.state.buttonElement,e.shiftKey?$.TO.Previous:$.TO.Next);break;default:1===e.key.length&&(E.actions.search(e.key),eu.setTimeout(()=>E.actions.clearSearch(),350))}}),ed=(0,G.M)(E,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ev=(0,k.x)({open:R===es.Open}),ef=(0,X.dG)(d?er():{},{id:o,ref:ea,"aria-activedescendant":(0,G.M)(E,E.selectors.activeDescendantId),"aria-multiselectable":O.mode===el.Multi||void 0,"aria-labelledby":ed,"aria-orientation":O.orientation,onKeyDown:ec,role:"listbox",tabIndex:R===es.Open?0:void 0,style:{...a.style,...ei,"--button-width":(0,m.h)(V,T,!0).width},...(0,z.X)(N)}),eh=(0,X.L6)(),em=(0,u.useMemo)(()=>O.mode===el.Multi?O:{...O,isSelected:W},[O,W]);return u.createElement(et.h_,{enabled:!!s&&(e.static||V),ownerDocument:C},u.createElement(ep.Provider,{value:em},eh({ourProps:ef,theirProps:a,slot:ev,defaultTag:"div",features:eb,visible:Z,name:"Listbox.Options"}
1)))}),Option:(0,X.yV)(function(e,t){let n=(0,u.useId)(),{id:o=`headlessui-listbox-option-${n}`,disabled:i=!1,value:s,...l}=e,r=!0===(0,u.useContext)(ef),a=Q("Listbox.Option"),c=listbox_machine_glue_p("Listbox.Option"),d=(0,G.M)(c,e=>c.selectors.isActive(e,o)),p=a.isSelected(s),v=(0,u.useRef)(null),f=(0,C.x)(v),m=(0,R.E)({disabled:i,value:s,domRef:v,get textValue(){return f()}}),O=(0,w.T)(t,v,e=>{e?a.listRef.current.set(o,e):a.listRef.current.delete(o)}),S=(0,G.M)(c,e=>c.selectors.shouldScrollIntoView(e,o));(0,E.e)(()=>{if(S)return(0,K.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[S,v]),(0,E.e)(()=>{if(!r)return c.actions.registerOption(o,m),()=>c.actions.unregisterOption(o)},[m,o,r]);let I=(0,x.z)(e=>{if(i)return e.preventDefault();c.actions.selectOption(s)}),T=(0,x.z)(()=>{if(i)return c.actions.goToOption({focus:H.T.Nothing});c.actions.goToOption({focus:H.T.Specific,id:o})}),M=(0,D.g)(),_=(0,x.z)(e=>M.update(e)),P=(0,x.z)(e=>{M.wasMoved(e)&&(i||d&&c.state.activationTrigger===er.Pointer||c.actions.goToOption({focus:H.T.Specific,id:o},er.Pointer))}),L=(0,x.z)(e=>{M.wasMoved(e)&&(i||d&&c.state.activationTrigger===er.Pointer&&c.actions.goToOption({focus:H.T.Nothing}))}),z=(0,k.x)({active:d,focus:d,selected:p,disabled:i,selectedOption:p&&r}),A=r?{}:{id:o,ref:O,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":p,disabled:void 0,onClick:I,onFocus:T,onPointerEnter:_,onMouseEnter:_,onPointerMove:P,onMouseMove:P,onPointerLeave:L,onMouseLeave:L},F=(0,X.L6)();return!p&&r?null:F({ourProps:A,theirProps:l,slot:z,defaultTag:"div",name:"Listbox.Option"})}),SelectedOption:(0,X.yV)(function(e,t){let{options:n,placeholder:o,...i}=e,s={ref:(0,w.T)(t)},l=Q("ListboxSelectedOption"),r=(0,k.x)({}),a=void 0===l.value||null===l.value||l.mode===el.Multi&&Array.isArray(l.value)&&0===l.value.length,c=(0,X.L6)();return u.createElement(ef.Provider,{value:!0},c({ourProps:s,theirProps:{...i,children:u.createElement(u.Fragment,null,o&&a?o:n)},slot:r,defaultTag:eh,name:"ListboxSelectedOption"}))})})}}]);

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.