1"use strict";(self.webpackChunkalpinewhite=self.webpackChunkalpinewhite||[]).push([[775],{5542:function(e,t,n){var o=n(6540),l=n(3325),i=n(856),r=n(8369),a=n(8165),s=n(6786),u=n(4986);t.A=({slice:e,bordered:t=!1})=>{var n,c,d,p,f,m;const{primary:v,items:b}=e,x=b.map(((e,t)=>{var n;const i={uid:null,lang:null,type:null,...null==e||null===(n=e.product)||void 0===n?void 0:n.document};return i.uid&&i.lang&&i.type&&i.data&&i.shopify?o.createElement(l.qr,{key:t,virtualIndex:t,className:"z-10 !h-auto max-w-[315px]"},o.createElement(a.A,{result:i,useCase:"singleProductPage",className:"h-full"})):null}));return o.createElement("section",{className:(0,i.Id)("mx-auto max-w-screen-max",t&&"border-y border-y-black/10")},o.createElement("section",{className:"col-span-full gap-0 mx-5 max-w-screen-xl md:mx-11 lg:mx-24 xl:mx-auto p-t-xxxl-fluid baseGrid lg:gap-x-lg"},o.createElement("div",{className:"col-span-full lg:col-span-12 m-b-lg-fluid"},o.createElement(s.A,{data:null===(n=v.title)||void 0===n?void 0:n.richText,className:"block mb-2 font-medium"}),o.createElement(s.A,{data:null===(c=v.lead)||void 0===c?void 0:c.richText,className:"block typo-base text-black/70"})),v.buttonTarget&&(null===(d=v.buttonText)||void 0===d?void 0:d.richText.length)>0&&o.createElement("div",{className:"p-b-lg-fluid m-t-lg-fluid col-span-full hidden lg:col-span-12 lg:row-start-auto lg:!mt-0 lg:flex lg:items-end lg:justify-end"},o.createElement(r.A,{link:v.buttonTarget,type:"secondary"},o.createElement(s.A,{data:null===(p=v.buttonText)||void 0===p?void 0:p.richText})))),o.createElement("section",{className:"col-span-full gap-0 xl:mx-auto p-b-xxxl-fluid baseGrid lg:gap-x-lg"},x.length>0&&o.createElement(u.A,{slides:x,type:"products",initialSlides:4}),v.buttonTarget&&(null===(f=v.buttonText)||void 0===f?void 0:f.richText.length)>0&&o.createElement("div",{className:"flex col-span-full justify-center items-center lg:hidden m-t-lg-fluid"},o.createElement(r.A,{link:v.buttonTarget,type:"secondary"},o.createElement(s.A,{data:null===(m=v.buttonText)||void 0===m?void 0:m.richText})))))}},5717:function(e,t,n){var o=n(6540),l=n(856);const i=()=>o.createElement("div",{className:"flex justify-center items-center mb-2"},o.createElement("div",{className:(0,l.Id)("dot-flashing relative h-[6px] w-[6px] rounded-full bg-black text-black",'before:absolute before:-left-3 before:top-0 before:inline-block before:h-[6px] before:w-[6px] before:rounded-full before:bg-black before:text-black before:content-[""]','after:absolute after:left-3 after:top-0 after:inline-block after:h-[6px] after:w-[6px] after:rounded-full after:bg-black after:text-black after:content-[""]')}));t.A=({message:e})=>o.createElement("div",{className:"flex flex-col justify-center items-center mx-5 max-w-screen-xl md:mx-11 lg:mx-24 xl:mx-auto grow-fade-in min-h-[218px] lg:min-h-[236px]"},o.createElement(i,null),o.createElement("div",{className:"mt-2 text-xs text-center text-black/70"},e))},7676:function(e,t,n){n.d(t,{WF:function(){return xe},go:function(){return pe},h7:function(){return ve},wh:function(){return me}});var o=n(2037),l=n(6638),i=n(6540),r=n(961),a=n(4867);function s(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}var u=n(5015);var c=n(9781),d=n(6992),p=n(3321),f=n(7575),m=n(6339),v=n(4424),b=n(3674),x=n(8367),g=n(4156),h=n(9821),E=n(6942),S=n(8975),y=n(3627),O=n(9185),I=n(2888),T=n(5448),R=n(1306);function P(e={},t=null,n=[]){for(let[o,l]of Object.entries(e))D(n,w(t,o),l);return n}function w(e,t){return e?e+"["+t+"]":t}function D(e,t,n){if(Array.isArray(n))for(let[o,l]of n.entries())D(e,w(t,o.toString()),l);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,""]):P(n,t,e)}var L=n(6206),k=n(9528);let _=(0,i.createContext)(null);function C({children:e}){let t=(0,i.useContext)(_);if(!t)return i.createElement(i.Fragment,null,e);let{target:n}=t;return n?(0,r.createPortal)(i.createElement(i.Fragment,null,e),n):null}function B({data:e,form:t,disabled:n,onReset:o,overrides:l}){let[r,a]=(0,i.useState)(null),s=(0,d.L)();return(0,i.useEffect)((()=>
1{if(o&&r)return s.addEventListener(r,"reset",o)}),[r,t,o]),i.createElement(C,null,i.createElement(A,{setForm:a,formId:t}),P(e).map((([e,o])=>i.createElement(k.j,{features:k.u.Hidden,...(0,L.oE)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:o,...l})}))))}function A({setForm:e,formId:t}){return(0,i.useEffect)((()=>{if(t){let n=document.getElementById(t);n&&e(n)}}),[e,t]),t?null:i.createElement(k.j,{features:k.u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}function M(e,t){let[n,o]=(0,i.useState)(t);return!e&&n!==t&&o(t),e?n:t}var N,F=n(5953),U=n(3149),j=n(9685),Q=n(8342),X=n(2599),Y=n(4122),z=n(5897),K=n(2211),V=n(9124),$=n(4586),q=n(540),G=n(8302),H=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(H||{}),Z=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Z||{}),J=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(J||{}),W=((N=W||{})[N.OpenListbox=0]="OpenListbox",N[N.CloseListbox=1]="CloseListbox",N[N.GoToOption=2]="GoToOption",N[N.Search=3]="Search",N[N.ClearSearch=4]="ClearSearch",N[N.RegisterOption=5]="RegisterOption",N[N.UnregisterOption=6]="UnregisterOption",N[N.SetButtonElement=7]="SetButtonElement",N[N.SetOptionsElement=8]="SetOptionsElement",N);function ee(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=(0,Y.wl)(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),l=n?o.indexOf(n):null;return-1===l&&(l=null),{options:o,activeOptionIndex:l}}let te={1(e){return e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,o=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==o&&(t=o),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,o,l,i,r;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===Q.B.Nothing)return{...a,activeOptionIndex:null};if(t.focus===Q.B.Specific)return{...a,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===Q.B.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,r=(0,Q.X)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==r){let t=e.options[r].dataRef.current.domRef;if((null==(o=i.current)?void 0:o.previousElementSibling)===t.current||null===(null==(l=t.current)?void 0:l.previousElementSibling))return{...a,activeOptionIndex:r}}}}else if(t.focus===Q.B.Next){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,l=(0,Q.X)(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==(i=o.current)?void 0:i.nextElementSibling)===t.current||null===(null==(r=t.current)?void 0:r.nextElementSibling))return{...a,activeOptionIndex:l}}}}let s=ee(e),u=(0,Q.X)(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...s,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(),l=(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))})),i=l?e.options.indexOf(l):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeOptionIndex:i,activationTrigger:1}},4(e){return e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},o=ee(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(n)),{...e,...o}},6:(e,t)=>{let n=ee(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.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>
1e.optionsElement===t.element?e:{...e,optionsElement:t.element}},ne=(0,i.createContext)(null);function oe(e){let t=(0,i.useContext)(ne);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,oe),t}return t}ne.displayName="ListboxActionsContext";let le=(0,i.createContext)(null);function ie(e){let t=(0,i.useContext)(le);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ie),t}return t}function re(e,t){return(0,z.Y)(t.type,te,e,t)}le.displayName="ListboxDataContext";let ae=i.Fragment;let se=(0,i.createContext)(!1),ue=L.Ac.RenderStrategy|L.Ac.Static;let ce=i.Fragment;let de=(0,L.FX)((function(e,t){var n;let o=(0,T._)(),{value:l,defaultValue:r,form:a,name:c,onChange:p,by:f,invalid:v=!1,disabled:b=o||!1,horizontal:g=!1,multiple:h=!1,__demoMode:E=!1,...y}=e;const O=g?"horizontal":"vertical";let I=(0,S.P)(t),P=function(e){let[t]=(0,i.useState)(e);return t}(r),[w=(h?[]:void 0),D]=function(e,t,n){let[o,l]=(0,i.useState)(n),r=void 0!==e,a=(0,i.useRef)(r),s=(0,i.useRef)(!1),c=(0,i.useRef)(!1);return!r||a.current||s.current?!r&&a.current&&!c.current&&(c.current=!0,a.current=r,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.")):(s.current=!0,a.current=r,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.")),[r?e:o,(0,u._)((e=>(r||l(e),null==t?void 0:t(e))))]}(l,p,P),[k,_]=(0,i.useReducer)(re,{dataRef:(0,i.createRef)(),listboxState:E?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:E}),C=(0,i.useRef)({static:!1,hold:!1}),A=(0,i.useRef)(new Map),M=function(e=s){return(0,i.useCallback)(((t,n)=>{if("string"==typeof e){let o=e;return(null==t?void 0:t[o])===(null==n?void 0:n[o])}return e(t,n)}),[e])}(f),N=(0,i.useCallback)((e=>(0,z.Y)(F.mode,{1:()=>w.some((t=>M(t,e))),0:()=>M(w,e)})),[w]),F=(0,i.useMemo)((()=>({...k,value:w,disabled:b,invalid:v,mode:h?1:0,orientation:O,compare:M,isSelected:N,optionsPropsRef:C,listRef:A})),[w,b,v,h,k,A]);(0,m.s)((()=>{k.dataRef.current=F}),[F]);let j=0===F.listboxState;(0,x.j)(j,[F.buttonElement,F.optionsElement],((e,t)=>{var n;_({type:1}),(0,Y.Bm)(t,Y.MZ.Loose)||(e.preventDefault(),null==(n=F.buttonElement)||n.focus())}));let X=(0,i.useMemo)((()=>({open:0===F.listboxState,disabled:b,invalid:v,value:w})),[F,b,w,v]),K=(0,u._)((e=>{let t=F.options.find((t=>t.id===e));t&&W(t.dataRef.current.value)})),V=(0,u._)((()=>{if(null!==F.activeOptionIndex){let{dataRef:e,id:t}=F.options[F.activeOptionIndex];W(e.current.value),_({type:2,focus:Q.B.Specific,id:t})}})),$=(0,u._)((()=>_({type:0}))),G=(0,u._)((()=>_({type:1}))),H=(0,d.L)(),Z=(0,u._)(((e,t,n)=>{H.dispose(),H.microTask((()=>e===Q.B.Specific?_({type:2,focus:Q.B.Specific,id:t,trigger:n}):_({type:2,focus:e,trigger:n})))})),J=(0,u._)(((e,t)=>(_({type:5,id:e,dataRef:t}),()=>_({type:6,id:e})))),W=(0,u._)((e=>(0,z.Y)(F.mode,{0(){return null==D?void 0:D(e)},1(){let t=F.value.slice(),n=t.findIndex((t=>M(t,e)));return-1===n?t.push(e):t.splice(n,1),null==D?void 0:D(t)}}))),ee=(0,u._)((e=>_({type:3,value:e}))),te=(0,u._)((()=>_({type:4}))),oe=(0,u._)((e=>{_({type:7,element:e})})),ie=(0,u._)((e=>{_({type:8,element:e})})),se=(0,i.useMemo)((()=>({onChange:W,registerOption:J,goToOption:Z,closeListbox:G,openListbox:$,selectActiveOption:V,selectOption:K,search:ee,clearSearch:te,setButtonElement:oe,setOptionsElement:ie})),[]),[ue,ce]=(0,q.b0)({inherit:!0}),de={ref:I},pe=(0,i.useCallback)((()=>{if(void 0!==P)return null==D?void 0:D(P)}),[D,P]),fe=(0,L.Ci)();return i.createElement(ce,{value:ue,props:{htmlFor:null==(n=F.buttonElement)?void 0:n.id},slot:{open:0===F.listboxState,disabled:b}},i.createElement(R.St,null,i.createElement(ne.Provider,{value:se},i.createElement(le.Provider,{value:F},i.createElement(U.El,{value:(0,z.Y)(F.listboxState,{0:U.Uw.Open,1:U.Uw.Closed})},null!=c&&null!=w&&i.createElement(B,{disabled:b,data:{[c]:w},form:a,onReset:pe}),fe({ourProps:de,theirProps:y,slot:X,defaultTag:ae,name:"Listbox"}))))))})),pe=(0,L.FX)((function(e,t){var n;let s=ie("Listbox.Button"),c=oe("Listbox.Button"),d=(0,i.useId)(),p=(0,F.q)(),{id:f=p||`headlessui-listbox-button-${d}`,disabled:m=s.disabled||!1,autoFocus:v=!1,...b}=e,x=(0,S.P)(t,(0,R.Xc)(),c.setButtonElement),g=(0,R.TI)(),E=(0,u._)((e=>{switch(e.key){case $.D.Enter:!function(e){var t,n;let o=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(o){for(let t of o.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=o.requestSubmit)||n.call(o)}}(e.currentTarget);break;case $.D.Space:case $.D.ArrowDown:e.preventDefault(),(0,r.flushSync)((()=>c.openListbox())),s.value||c.goToOption(Q.B.First);break;case $.D.ArrowUp:e.preventDefault(),(0,r.flushSync)((()=>c.openListbox())),s.value||c.goToOption(Q.B.Last)}})),y=(0,u._)((e=>{if(e.key===$.D.Space)e.preventDefault()})),O=(0,u._)((e=>{var t;if((0,j.l)(e.currentTarget))return e.preventDefault();0===s.listboxState?((0,r.flushSync)((()=>
1c.closeListbox())),null==(t=s.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c.openListbox())})),I=(0,u._)((e=>e.preventDefault())),T=(0,q.o2)([f]),P=(0,V.MM)(),{isFocusVisible:w,focusProps:D}=(0,o.o)({autoFocus:v}),{isHovered:k,hoverProps:_}=(0,l.M)({isDisabled:m}),{pressed:C,pressProps:B}=(0,a.Z)({disabled:m}),A=(0,i.useMemo)((()=>({open:0===s.listboxState,active:C||0===s.listboxState,disabled:m,invalid:s.invalid,value:s.value,hover:k,focus:w,autofocus:v})),[s.listboxState,s.value,m,k,w,C,s.invalid,v]),M=(0,L.v6)(g(),{ref:x,id:f,type:(0,h.c)(e,s.buttonElement),"aria-haspopup":"listbox","aria-controls":null==(n=s.optionsElement)?void 0:n.id,"aria-expanded":0===s.listboxState,"aria-labelledby":T,"aria-describedby":P,disabled:m||void 0,autoFocus:v,onKeyDown:E,onKeyUp:y,onKeyPress:I,onClick:O},D,_,B);return(0,L.Ci)()({ourProps:M,theirProps:b,slot:A,defaultTag:"button",name:"Listbox.Button"})})),fe=q.JU,me=(0,L.FX)((function(e,t){var n,o;let l=(0,i.useId)(),{id:a=`headlessui-listbox-options-${l}`,anchor:s,portal:m=!1,modal:v=!0,transition:x=!1,...h}=e,y=(0,R.zn)(s),[O,T]=(0,i.useState)(null);y&&(m=!0);let P=ie("Listbox.Options"),w=oe("Listbox.Options"),D=(0,g.g)(P.optionsElement),k=(0,U.O_)(),[_,C]=(0,I.p)(x,O,null!==k?(k&U.Uw.Open)===U.Uw.Open:0===P.listboxState);(0,b.O)(_,P.buttonElement,w.closeListbox);let B=!P.__demoMode&&(v&&0===P.listboxState);(0,E.K)(B,D);let A=!P.__demoMode&&(v&&0===P.listboxState);(0,f.v)(A,{allowed:(0,i.useCallback)((()=>[P.buttonElement,P.optionsElement]),[P.buttonElement,P.optionsElement])});let N=0!==P.listboxState,F=!(0,c.Y)(N,P.buttonElement)&&_,j=M(_&&1===P.listboxState,P.value),X=(0,u._)((e=>P.compare(j,e))),V=(0,i.useMemo)((()=>{var e;if(null==y||null==(e=null==y?void 0:y.to)||!e.includes("selection"))return null;let t=P.options.findIndex((e=>X(e.dataRef.current.value)));return-1===t&&(t=0),t}),[y,P.options]),q=(()=>{if(null==y)return;if(null===V)return{...y,inner:void 0};let e=Array.from(P.listRef.current.values());return{...y,inner:{listRef:{current:e},index:V}}})(),[H,Z]=(0,R.UF)(q),J=(0,R.G3)(),W=(0,S.P)(t,y?H:null,w.setOptionsElement,T),ee=(0,d.L)();(0,i.useEffect)((()=>{var e;let t=P.optionsElement;t&&0===P.listboxState&&t!==(null==(e=(0,K.T)(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[P.listboxState,P.optionsElement]);let te=(0,u._)((e=>{var t,n;switch(ee.dispose(),e.key){case $.D.Space:if(""!==P.searchQuery)return e.preventDefault(),e.stopPropagation(),w.search(e.key);case $.D.Enter:if(e.preventDefault(),e.stopPropagation(),null!==P.activeOptionIndex){let{dataRef:e}=P.options[P.activeOptionIndex];w.onChange(e.current.value)}0===P.mode&&((0,r.flushSync)((()=>w.closeListbox())),null==(t=P.buttonElement)||t.focus({preventScroll:!0}));break;case(0,z.Y)(P.orientation,{vertical:$.D.ArrowDown,horizontal:$.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),w.goToOption(Q.B.Next);case(0,z.Y)(P.orientation,{vertical:$.D.ArrowUp,horizontal:$.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),w.goToOption(Q.B.Previous);case $.D.Home:case $.D.PageUp:return e.preventDefault(),e.stopPropagation(),w.goToOption(Q.B.First);case $.D.End:case $.D.PageDown:return e.preventDefault(),e.stopPropagation(),w.goToOption(Q.B.Last);case $.D.Escape:return e.preventDefault(),e.stopPropagation(),(0,r.flushSync)((()=>w.closeListbox())),void(null==(n=P.buttonElement)||n.focus({preventScroll:!0}));case $.D.Tab:e.preventDefault(),e.stopPropagation(),(0,r.flushSync)((()=>w.closeListbox())),(0,Y.p9)(P.buttonElement,e.shiftKey?Y.BD.Previous:Y.BD.Next);break;default:1===e.key.length&&(w.search(e.key),ee.setTimeout((()=>w.clearSearch()),350))}})),ne=null==(n=P.buttonElement)?void 0:n.id,re=(0,i.useMemo)((()=>({open:0===P.listboxState})),[P.listboxState]),ae=(0,L.v6)(y?J():{},{id:a,ref:W,"aria-activedescendant":null===P.activeOptionIndex||null==(o=P.options[P.activeOptionIndex])?void 0:o.id,"aria-multiselectable":1===P.mode||void 0,"aria-labelledby":ne,"aria-orientation":P.orientation,onKeyDown:te,role:"listbox",tabIndex:0===P.listboxState?0:void 0,style:{...h.style,...Z,"
1--button-width":(0,p.L)(P.buttonElement,!0).width},...(0,I.B)(C)}),se=(0,L.Ci)();return i.createElement(G.ZL,{enabled:!!m&&(e.static||_)},i.createElement(le.Provider,{value:1===P.mode?P:{...P,isSelected:X}},se({ourProps:ae,theirProps:h,slot:re,defaultTag:"div",features:ue,visible:F,name:"Listbox.Options"})))})),ve=(0,L.FX)((function(e,t){let n=(0,i.useId)(),{id:o=`headlessui-listbox-option-${n}`,disabled:l=!1,value:a,...s}=e,c=!0===(0,i.useContext)(se),d=ie("Listbox.Option"),p=oe("Listbox.Option"),f=null!==d.activeOptionIndex&&d.options[d.activeOptionIndex].id===o,b=d.isSelected(a),x=(0,i.useRef)(null),g=(0,y.q)(x),h=(0,v.Y)({disabled:l,value:a,domRef:x,get textValue(){return g()}}),E=(0,S.P)(t,x,(e=>{e?d.listRef.current.set(o,e):d.listRef.current.delete(o)}));(0,m.s)((()=>{if(!d.__demoMode&&0===d.listboxState&&f&&0!==d.activationTrigger)return(0,X.e)().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=x.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[x,f,d.__demoMode,d.listboxState,d.activationTrigger,d.activeOptionIndex]),(0,m.s)((()=>
1{if(!c)return p.registerOption(o,h)}),[h,o,c]);let I=(0,u._)((e=>{var t;if(l)return e.preventDefault();p.onChange(a),0===d.mode&&((0,r.flushSync)((()=>p.closeListbox())),null==(t=d.buttonElement)||t.focus({preventScroll:!0}))})),T=(0,u._)((()=>{if(l)return p.goToOption(Q.B.Nothing);p.goToOption(Q.B.Specific,o)})),R=(0,O.J)(),P=(0,u._)((e=>{R.update(e),!l&&(f||p.goToOption(Q.B.Specific,o,0))})),w=(0,u._)((e=>{R.wasMoved(e)&&(l||f||p.goToOption(Q.B.Specific,o,0))})),D=(0,u._)((e=>{R.wasMoved(e)&&(l||f&&p.goToOption(Q.B.Nothing))})),k=(0,i.useMemo)((()=>({active:f,focus:f,selected:b,disabled:l,selectedOption:b&&c})),[f,b,l,c]),_=c?{}:{id:o,ref:E,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":b,disabled:void 0,onClick:I,onFocus:T,onPointerEnter:P,onMouseEnter:P,onPointerMove:w,onMouseMove:w,onPointerLeave:D,onMouseLeave:D},C=(0,L.Ci)();return!b&&c?null:C({ourProps:_,theirProps:s,slot:k,defaultTag:"div",name:"Listbox.Option"})})),be=(0,L.FX)((function(e,t){let{options:n,placeholder:o,...l}=e,r={ref:(0,S.P)(t)},a=ie("ListboxSelectedOption"),s=(0,i.useMemo)((()=>({})),[]),u=void 0===a.value||null===a.value||1===a.mode&&Array.isArray(a.value)&&0===a.value.length,c=(0,L.Ci)();return i.createElement(se.Provider,{value:!0},c({ourProps:r,theirProps:{...l,children:i.createElement(i.Fragment,null,o&&u?o:n)},slot:s,defaultTag:ce,name:"ListboxSelectedOption"}))})),xe=Object.assign(de,{Button:pe,Label:fe,Options:me,Option:ve,SelectedOption:be})}}]); 2//# sourceMappingURL=1859bd286c440e9e75b452b4ec83296d670ab7d5-44a69cf2a26f5ff01e6a.js.map
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.