PageSourceSearch

https://appenninoshuttle.it/build/assets/LanguageSelect-CVYQHrCJ.js

js appenninoshuttle.it collected 2026-10-05 10:51:58 UTC 25,985 bytes, 4 lines download raw bytes

1import{$ as Le,_ as X,F as Z,Y as se,W as J,r as L,C as U,H as K,m as O,X as M,a0 as $,q as de,I as ke,y as F,o as N,d as z,a as I,a1 as A,c as q,w as R,b as H,t as j,L as Ee,g as Pe,n as De,e as $e}from"./app-CeAYduRG.js";import{_ as Te}from"./_plugin-vue_export-helper-DlAUqK2U.js";function T(e,n,...o){if(e in n){let t=n[e];return typeof t=="function"?t(...o):t}let l=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(t=>`"${t}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,T),l}var Y=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Y||{}),Ie=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ie||{});function B({visible:e=!0,features:n=0,ourProps:o,theirProps:l,...t}){var r;let i=pe(l,o),s=Object.assign(t,{props:i});if(e||n&2&&i.static)return G(s);if(n&1){let v=(r=i.unmount)==null||r?0:1;return T(v,{0(){return null},1(){return G({...t,props:{...i,hidden:!0,style:{display:"none"}}})}})}return G(s)}function G({props:e,attrs:n,slots:o,slot:l,name:t}){var r,i;let{as:s,...v}=ve(e,["unmount","static"]),a=(r=o.default)==null?void 0:r.call(o,l),u={};if(l){let g=!1,c=[];for(let[f,b]of Object.entries(l))typeof b=="boolean"&&(g=!0),b===!0&&c.push(f);g&&(u["data-headlessui-state"]=c.join(" "))}if(s==="template"){if(a=ce(a??[]),Object.keys(v).length>0||Object.keys(n).length>0){let[g,...c]=a??[];if(!Fe(g)||c.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${t} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(v).concat(Object.keys(n)).map(y=>y.trim()).filter((y,D,m)=>m.indexOf(y)===D).sort((y,D)=>y.localeCompare(D)).map(y=>`  - ${y}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>`  - ${y}`).join(`
3`)].join(`
4`));let f=pe((i=g.props)!=null?i:{},v),b=Le(g,f);for(let y in f)y.startsWith("on")&&(b.props||(b.props={}),b.props[y]=f[y]);return b}return Array.isArray(a)&&a.length===1?a[0]:a}return X(s,Object.assign({},v,u),{default:()=>a})}function ce(e){return e.flatMap(n=>n.type===Z?ce(n.children):[n])}function pe(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},o={};for(let l of e)for(let t in l)t.startsWith("on")&&typeof l[t]=="function"?(o[t]!=null||(o[t]=[]),o[t].push(l[t])):n[t]=l[t];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(o).map(l=>[l,void 0])));for(let l in o)Object.assign(n,{[l](t,...r){let i=o[l];for(let s of i){if(t instanceof Event&&t.defaultPrevented)return;s(t,...r)}}});return n}function Ne(e){let n=Object.assign({},e);for(let o in n)n[o]===void 0&&delete n[o];return n}function ve(e,n=[]){let o=Object.assign({},e);for(let l of n)l in o&&delete o[l];return o}function Fe(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let Ae=0;function _e(){return++Ae}function ee(){return _e()}var S=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(S||{});function Re(e){throw new Error("Unexpected object: "+e)}var k=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(k||{});function je(e,n){let o=n.resolveItems();if(o.length<=0)return null;let l=n.resolveActiveIndex(),t=l??-1,r=(()=>{switch(e.focus){case 0:return o.findIndex(i=>!n.resolveDisabled(i));case 1:{let i=o.slice().reverse().findIndex((s,v,a)=>t!==-1&&a.length-v-1>=t?!1:!n.resolveDisabled(s));return i===-1?i:o.length-1-i}case 2:return o.findIndex((i,s)=>s<=t?!1:!n.resolveDisabled(i));case 3:{let i=o.slice().reverse().findIndex(s=>!n.resolveDisabled(s));return i===-1?i:o.length-1-i}case 4:return o.findIndex(i=>n.resolveId(i)===e.id);case 5:return null;default:Re(e)}})();return r===-1?l:r}function w(e){var n;return e==null||e.value==null?null:(n=e.value.$el)!=null?n:e.value}let fe=Symbol("Context");var C=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(C||{});function kt(){return be()!==null}function be(){return se(fe,null)}function Ce(e){J(fe,e)}function le(e,n){if(e)return e;let o=n??"button";
4if(typeof o=="string"&&o.toLowerCase()==="button")return"button"}function Me(e,n){let o=L(le(e.value.type,e.value.as));return U(()=>{o.value=le(e.value.type,e.value.as)}),K(()=>{var l;o.value||w(n)&&w(n)instanceof HTMLButtonElement&&!((l=w(n))!=null&&l.hasAttribute("type"))&&(o.value="button")}),o}var Be=Object.defineProperty,He=(e,n,o)=>n in e?Be(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o,re=(e,n,o)=>(He(e,typeof n!="symbol"?n+"":n,o),o);class Ve{constructor(){re(this,"current",this.detect()),re(this,"currentId",0)}set(n){this.current!==n&&(this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let te=new Ve;function Ue(e){if(te.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=w(e);if(n)return n.ownerDocument}return document}let Q=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ke=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ke||{}),ze=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ze||{}),We=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(We||{});function qe(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Q)).sort((n,o)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var ne=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ne||{});function me(e,n=0){var o;return e===((o=Ue(e))==null?void 0:o.body)?!1:T(n,{0(){return e.matches(Q)},1(){let l=e;for(;l!==null;){if(l.matches(Q))return!0;l=l.parentElement}return!1}})}var Ge=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ge||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Et(e){e==null||e.focus({preventScroll:!0})}let Xe=["textarea","input"].join(",");function Ye(e){var n,o;return(o=(n=e==null?void 0:e.matches)==null?void 0:n.call(e,Xe))!=null?o:!1}function he(e,n=o=>o){return e.slice().sort((o,l)=>{let t=n(o),r=n(l);if(t===null||r===null)return 0;let i=t.compareDocumentPosition(r);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Pt(e,n,{sorted:o=!0,relativeTo:l=null,skipElements:t=[]}={}){var r;let i=(r=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?r:document,s=Array.isArray(e)?o?he(e):e:qe(e);t.length>0&&s.length>1&&(s=s.filter(b=>!t.includes(b))),l=l??i.activeElement;let v=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,s.indexOf(l))-1;if(n&4)return Math.max(0,s.indexOf(l))+1;if(n&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=n&32?{preventScroll:!0}:{},g=0,c=s.length,f;do{if(g>=c||g+c<=0)return 0;let b=a+g;if(n&16)b=(b+c)%c;else{if(b<0)return 3;if(b>=c)return 1}f=s[b],f==null||f.focus(u),g+=v}while(f!==i.activeElement);return n&6&&Ye(f)&&f.select(),2}function V(e,n,o){te.isServer||K(l=>{document.addEventListener(e,n,o),l(()=>document.removeEventListener(e,n,o))})}function Qe(e,n,o){te.isServer||K(l=>{window.addEventListener(e,n,o),l(()=>window.removeEventListener(e,n,o))})}function Ze(e,n,o=O(()=>!0)){function l(r,i){if(!o.value||r.defaultPrevented)return;let s=i(r);if(s===null||!s.getRootNode().contains(s))return;let v=function a(u){return typeof u=="function"?a(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let a of v){if(a===null)continue;let u=a instanceof HTMLElement?a:w(a);if(u!=null&&u.contains(s)||r.composed&&r.composedPath().includes(u))return}return!me(s,ne.Loose)&&s.tabIndex!==-1&&r.preventDefault(),n(r,s)}let t=L(null);V("pointerdown",r=>{var i,s;o.value&&(t.value=((s=(i=r.composedPath)==null?void 0:i.call(r))==null?void 0:s[0])||r.target)},!0),V("mousedown",r=>{var i,s;o.value&&(t.value=((s=(i=r.composedPath)==null?void 0:i.call(r))==null?void 0:s[0])||r.target)},!0),V("click",r=>{t.value&&(l(r,()=>t.value),t.value=null)},!0),V("touchend",r=>l(r,()=>r.target instanceof HTMLElement?r.target:null),!0),Qe("blur",r=>l(r,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var ge=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ge||{});let Je=M({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:n,attrs:o}){return()=>{let{features:l,...t}=e,r={"aria-hidden":(l&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(l&4)===4&&(l&2)!==2&&{display:"none"}}};return B({ourProps:r,theirProps:t,slot:{},attrs:o,slots:n,name:"Hidden"})}}});function xe(e={},n=null,o=[]){for(let[l,t]of Object.entries(e))we(o,ye(n,l),t);return o}function ye(e,n){return e?e+"["+n+"]":n}function we(e,n,o){if(Array.isArray(o))for(let[l,t]of o.entries())we(e,ye(n,l.toString()),t);else o instanceof Date?e.push([n,o.toISOString()]):typeof o=="boolean"?e.push([n,o?"1":"0"]):typeof o=="str
4ing"?e.push([n,o]):typeof o=="number"?e.push([n,`${o}`]):o==null?e.push([n,""]):xe(o,n,e)}function Dt(e){var n,o;let l=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(l){for(let t of l.elements)if(t!==e&&(t.tagName==="INPUT"&&t.type==="submit"||t.tagName==="BUTTON"&&t.type==="submit"||t.nodeName==="INPUT"&&t.type==="image")){t.click();return}(o=l.requestSubmit)==null||o.call(l)}}function et(e,n,o){let l=L(o==null?void 0:o.value),t=O(()=>e.value!==void 0);return[O(()=>t.value?e.value:l.value),function(r){return t.value||(l.value=r),n==null?void 0:n(r)}]}function ae(e){return[e.screenX,e.screenY]}function tt(){let e=L([-1,-1]);return{wasMoved(n){let o=ae(n);return e.value[0]===o[0]&&e.value[1]===o[1]?!1:(e.value=o,!0)},update(n){e.value=ae(n)}}}let nt=Symbol("DescriptionContext");function $t({slot:e=L({}),name:n="Description",props:o={}}={}){let l=L([]);function t(r){return l.value.push(r),()=>{let i=l.value.indexOf(r);i!==-1&&l.value.splice(i,1)}}return J(nt,{register:t,slot:e,name:n,props:o}),O(()=>l.value.length>0?l.value.join(" "):void 0)}let ie=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ue(e){var n,o;let l=(n=e.innerText)!=null?n:"",t=e.cloneNode(!0);if(!(t instanceof HTMLElement))return l;let r=!1;for(let s of t.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),r=!0;let i=r?(o=t.innerText)!=null?o:"":l;return ie.test(i)&&(i=i.replace(ie,"")),i}function ot(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let o=e.getAttribute("aria-labelledby");if(o){let l=o.split(" ").map(t=>{let r=document.getElementById(t);if(r){let i=r.getAttribute("aria-label");return typeof i=="string"?i.trim():ue(r).trim()}return null}).filter(Boolean);if(l.length>0)return l.join(", ")}return ue(e).trim()}function lt(e){let n=L(""),o=L("");return()=>{let l=w(e);if(!l)return"";let t=l.innerText;if(n.value===t)return o.value;let r=ot(l).trim().toLowerCase();return n.value=t,o.value=r,r}}function rt(e,n){return e===n}var at=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(at||{}),it=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(it||{}),ut=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ut||{});function st(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Oe=Symbol("ListboxContext");function W(e){let n=se(Oe,null);if(n===null){let o=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,W),o}return n}let dt=M({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>rt},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:n,attrs:o,emit:l}){let t=L(1),r=L(null),i=L(null),s=L(null),v=L([]),a=L(""),u=L(null),g=L(1);function c(d=p=>p){let p=u.value!==null?v.value[u.value]:null,h=he(d(v.value.slice()),P=>w(P.dataRef.domRef)),x=p?h.indexOf(p):null;return x===-1&&(x=null),{options:h,activeOptionIndex:x}}let f=O(()=>e.multiple?1:0),[b,y]=et(O(()=>e.modelValue),d=>l("update:modelValue",d),O(()=>e.defaultValue)),D=O(()=>b.value===void 0?T(f.value,{1:[],0:void 0}):b.value),m={listboxState:t,value:D,mode:f,compare(d,p){if(typeof e.by=="string"){let h=e.by;return(d==null?void 0:d[h])===(p==null?void 0:p[h])}return e.by(d,p)},orientation:O(()=>e.horizontal?"horizontal":"vertical"),labelRef:r,buttonRef:i,optionsRef:s,disabled:O(()=>e.disabled),options:v,searchQuery:a,activeOptionIndex:u,activationTrigger:g,closeListbox(){e.disabled||t.value!==1&&(t.value=1,u.value=null)},openListbox(){e.disabled||t.value!==0&&(t.value=0)},goToOption(d,p,h){if(e.disabled||t.value===1)return;let x=c(),P=je(d===k.Specific?{focus:k.Specific,id:p}:{focus:d},{resolveItems:()=>x.options,resolveActiveIndex:()=>x.activeOptionIndex,resolveId:_=>_.id,resolveDisabled:_=>_.dataRef.disabled});a.value="",u.value=P,g.value=h??1,v.value=x.options},search(d){if(e.disabled||t.value===1)return;let p=a.value!==""?0:1;a.value+=d.toLowerCase();let h=(u.value!==null?v.value.slice(u.value+p).concat(v.value.slice(0,u.value+p)):v.value).find(P=>P.dataRef.textValue.startsWith(a.value)&&!P.dataRef.disabled),x=h?v.value.indexOf(h):-1;x===-1||x===u.value||(u.value=x,g.value=1)},clearSearch(){e.disabled||t.value!==1&&a.value!==""&&(a.value="")},registerOption(d,p){let h=c(x=>[...x,{id:d,dataRef:p}]);v.value=h.options,u.value=h.activeOptionIndex},unregisterOption(d){let p=c(h=>{let x=h.findIndex(P=>P.id===d);
4return x!==-1&&h.splice(x,1),h});v.value=p.options,u.value=p.activeOptionIndex,g.value=1},theirOnChange(d){e.disabled||y(d)},select(d){e.disabled||y(T(f.value,{0:()=>d,1:()=>{let p=$(m.value.value).slice(),h=$(d),x=p.findIndex(P=>m.compare(h,$(P)));return x===-1?p.push(h):p.splice(x,1),p}}))}};Ze([i,s],(d,p)=>{var h;m.closeListbox(),me(p,ne.Loose)||(d.preventDefault(),(h=w(i))==null||h.focus())},O(()=>t.value===0)),J(Oe,m),Ce(O(()=>T(t.value,{0:C.Open,1:C.Closed})));let E=O(()=>{var d;return(d=w(i))==null?void 0:d.closest("form")});return U(()=>{de([E],()=>{if(!E.value||e.defaultValue===void 0)return;function d(){m.theirOnChange(e.defaultValue)}return E.value.addEventListener("reset",d),()=>{var p;(p=E.value)==null||p.removeEventListener("reset",d)}},{immediate:!0})}),()=>{let{name:d,modelValue:p,disabled:h,form:x,...P}=e,_={open:t.value===0,disabled:h,value:D.value};return X(Z,[...d!=null&&D.value!=null?xe({[d]:D.value}).map(([oe,Se])=>X(Je,Ne({features:ge.Hidden,key:oe,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:x,name:oe,value:Se}))):[],B({ourProps:{},theirProps:{...o,...ve(P,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:_,slots:n,attrs:o,name:"Listbox"})])}}}),ct=M({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-listbox-button-${ee()}`}},setup(e,{attrs:n,slots:o,expose:l}){let t=W("ListboxButton");l({el:t.buttonRef,$el:t.buttonRef});function r(a){switch(a.key){case S.Space:case S.Enter:case S.ArrowDown:a.preventDefault(),t.openListbox(),F(()=>{var u;(u=w(t.optionsRef))==null||u.focus({preventScroll:!0}),t.value.value||t.goToOption(k.First)});break;case S.ArrowUp:a.preventDefault(),t.openListbox(),F(()=>{var u;(u=w(t.optionsRef))==null||u.focus({preventScroll:!0}),t.value.value||t.goToOption(k.Last)});break}}function i(a){switch(a.key){case S.Space:a.preventDefault();break}}function s(a){t.disabled.value||(t.listboxState.value===0?(t.closeListbox(),F(()=>{var u;return(u=w(t.buttonRef))==null?void 0:u.focus({preventScroll:!0})}
4)):(a.preventDefault(),t.openListbox(),st(()=>{var u;return(u=w(t.optionsRef))==null?void 0:u.focus({preventScroll:!0})})))}let v=Me(O(()=>({as:e.as,type:n.type})),t.buttonRef);return()=>{var a,u;let g={open:t.listboxState.value===0,disabled:t.disabled.value,value:t.value.value},{id:c,...f}=e,b={ref:t.buttonRef,id:c,type:v.value,"aria-haspopup":"listbox","aria-controls":(a=w(t.optionsRef))==null?void 0:a.id,"aria-expanded":t.listboxState.value===0,"aria-labelledby":t.labelRef.value?[(u=w(t.labelRef))==null?void 0:u.id,c].join(" "):void 0,disabled:t.disabled.value===!0?!0:void 0,onKeydown:r,onKeyup:i,onClick:s};return B({ourProps:b,theirProps:f,slot:g,attrs:n,slots:o,name:"ListboxButton"})}}}),pt=M({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-listbox-options-${ee()}`}},setup(e,{attrs:n,slots:o,expose:l}){let t=W("ListboxOptions"),r=L(null);l({el:t.optionsRef,$el:t.optionsRef});function i(a){switch(r.value&&clearTimeout(r.value),a.key){case S.Space:if(t.searchQuery.value!=="")return a.preventDefault(),a.stopPropagation(),t.search(a.key);case S.Enter:if(a.preventDefault(),a.stopPropagation(),t.activeOptionIndex.value!==null){let u=t.options.value[t.activeOptionIndex.value];t.select(u.dataRef.value)}t.mode.value===0&&(t.closeListbox(),F(()=>{var u;return(u=w(t.buttonRef))==null?void 0:u.focus({preventScroll:!0})}
4));break;case T(t.orientation.value,{vertical:S.ArrowDown,horizontal:S.ArrowRight}):return a.preventDefault(),a.stopPropagation(),t.goToOption(k.Next);case T(t.orientation.value,{vertical:S.ArrowUp,horizontal:S.ArrowLeft}):return a.preventDefault(),a.stopPropagation(),t.goToOption(k.Previous);case S.Home:case S.PageUp:return a.preventDefault(),a.stopPropagation(),t.goToOption(k.First);case S.End:case S.PageDown:return a.preventDefault(),a.stopPropagation(),t.goToOption(k.Last);case S.Escape:a.preventDefault(),a.stopPropagation(),t.closeListbox(),F(()=>{var u;return(u=w(t.buttonRef))==null?void 0:u.focus({preventScroll:!0})});break;case S.Tab:a.preventDefault(),a.stopPropagation();break;default:a.key.length===1&&(t.search(a.key),r.value=setTimeout(()=>t.clearSearch(),350));break}}let s=be(),v=O(()=>s!==null?(s.value&C.Open)===C.Open:t.listboxState.value===0);return()=>{var a,u,g,c;let f={open:t.listboxState.value===0},{id:b,...y}=e,D={"aria-activedescendant":t.activeOptionIndex.value===null||(a=t.options.value[t.activeOptionIndex.value])==null?void 0:a.id,"aria-multiselectable":t.mode.value===1?!0:void 0,"aria-labelledby":(c=(u=w(t.labelRef))==null?void 0:u.id)!=null?c:(g=w(t.buttonRef))==null?void 0:g.id,"aria-orientation":t.orientation.value,id:b,onKeydown:i,role:"listbox",tabIndex:0,ref:t.optionsRef};return B({ourProps:D,theirProps:y,slot:f,attrs:n,slots:o,features:Y.RenderStrategy|Y.Static,visible:v.value,name:"ListboxOptions"})}}}),vt=M({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-listbox.option-${ee()}`}},setup(e,{slots:n,attrs:o,expose:l}){let t=W("ListboxOption"),r=L(null);l({el:r,$el:r});let i=O(()=>t.activeOptionIndex.value!==null?t.options.value[t.activeOptionIndex.value].id===e.id:!1),s=O(()=>T(t.mode.value,{0:()=>t.compare($(t.value.value),$(e.value)),1:()=>$(t.value.value).some(m=>t.compare($(m),$(e.value)))})),v=O(()=>T(t.mode.value,{1:()=>{var m;let E=$(t.value.value);return((m=t.options.value.find(d=>E.some(p=>t.compare($(p),$(d.dataRef.value)))))==null?void 0:m.id)===e.id},0:()=>s.value})),a=lt(r),u=O(()=>({disabled:e.disabled,value:e.value,get textValue(){return a()},domRef:r}));U(()=>t.registerOption(e.id,u)),ke(()=>t.unregisterOption(e.id)),U(()=>{de([t.listboxState,s],()=>{t.listboxState.value===0&&s.value&&T(t.mode.value,{1:()=>{v.value&&t.goToOption(k.Specific,e.id)},0:()=>{t.goToOption(k.Specific,e.id)}})},{immediate:!0})}),K(()=>{t.listboxState.value===0&&i.value&&t.activationTrigger.value!==0&&F(()=>{var m,E;return(E=(m=w(r))==null?void 0:m.scrollIntoView)==null?void 0:E.call(m,{block:"nearest"})})});function g(m){if(e.disabled)return m.preventDefault();t.select(e.value),t.mode.value===0&&(t.closeListbox(),F(()=>{var E;return(E=w(t.buttonRef))==null?void 0:E.focus({preventScroll:!0})}
4))}function c(){if(e.disabled)return t.goToOption(k.Nothing);t.goToOption(k.Specific,e.id)}let f=tt();function b(m){f.update(m)}function y(m){f.wasMoved(m)&&(e.disabled||i.value||t.goToOption(k.Specific,e.id,0))}function D(m){f.wasMoved(m)&&(e.disabled||i.value&&t.goToOption(k.Nothing))}return()=>{let{disabled:m}=e,E={active:i.value,selected:s.value,disabled:m},{id:d,value:p,disabled:h,...x}=e,P={id:d,ref:r,role:"option",tabIndex:m===!0?void 0:-1,"aria-disabled":m===!0?!0:void 0,"aria-selected":s.value,disabled:void 0,onClick:g,onFocus:c,onPointerenter:b,onMouseenter:b,onPointermove:y,onMousemove:y,onPointerleave:D,onMouseleave:D};return B({ourProps:P,theirProps:x,slot:E,attrs:o,slots:n,name:"ListboxOption"})}}});function ft(e,n){return N(),z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function bt(e,n){return N(),z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function Tt(e,n){return N(),z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}const mt={name:"language-select",components:{ListboxOption:vt,ListboxOptions:pt,ListboxButton:ct,Listbox:dt,CheckIcon:ft,ChevronDownIcon:bt},data(){return{locale:null}},watch:{locale(e){e&&e.short&&this.changeLanguage(e)}},methods:{changeLanguage(e){const n=this.locales.find(o=>o.short===e.short);n&&(this.locale=n,this.$i18n.locale=n.short)}},mounted(){this.locale=this.locales.find(e=>e.short===this.$i18n.locale)||this.locales[0]}},ht={class:"text-lg leading-none","aria-hidden":"true"},gt={class:"uppercase tracking-wide"},xt={class:"text-xl leading-none"},yt={class:"flex-1"},wt={class:"text-xs uppercase text-slate-400"};function Ot(e,n,o,l,t,r){const i=A("ChevronDownIcon"),s=A("ListboxButton"),v=A("CheckIcon"),a=A("ListboxOption"),u=A("ListboxOptions"),g=A("Listbox");return N(),q(g,{as:"div",modelValue:t.locale,"onUpdate:modelValue":n[0]||(n[0]=c=>t.locale=c),class:"relative"},{default:R(()=>[H(s,{class:"inline-flex min-h-[40px] items-center gap-2 rounded-lg border border-white/30 bg-white/10 px-2.5 py-1.5 text-sm font-semibold text-white backdrop-blur transition hover:border-amber-300/60 hover:bg-white/15 focus:outline-none focus-visible:ring-2 focus-visible:ring-amber-400","aria-label":e.$t("select_language")},{default:R(()=>{var c,f;return[I("span",ht,j((c=t.locale)==null?void 0:c.flag),1),I("span",gt,j((f=t.locale)==null?void 0:f.short),1),H(i,{class:"h-4 w-4 text-white/80","aria-hidden":"true"})]}),_:1},8,["aria-label"]),H(Ee,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:R(()=>[H(u,{class:"absolute right-0 z-[60] mt-2 w-52 overflow-hidden rounded-xl border border-slate-200 bg-white py-1 text-sm shadow-2xl ring-1 ring-black/5 focus:outline-none"},{default:R(()=>[(N(!0),z(Z,null,Pe(e.locales,c=>(N(),q(a,{key:c.short,as:"template",value:c},{default:R(({active:f,selected:b})=>[I("li",{class:De(["flex cursor-pointer items-center gap-3 px-3 py-2.5 text-slate-800",[f?"bg-amber-50":"",b?"bg-slate-50 font-semibold":"font-medium"]])},[I("span",xt,j(c.flag),1),I("span",yt,j(c.name),1),I("span",wt,j(c.short),1),b?(N(),q(v,{key:0,class:"h-4 w-4 text-amber-600","aria-hidden":"true"})):$e("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])}const It=Te(mt,[["render",Ot]]);export{kt as C,B as H,Ne as K,It as L,$t as M,Ke as N,Pt as P,Et as S,ve as T,Tt as a,Me as b,ge as c,et as d,w as e,Je as f,te as g,ze as h,be as i,Y as j,Ce as k,C as l,Ue as m,Ie as n,S as o,Dt as p,ft as q,bt as r,ee as t,T as u,Qe as w,Ze as y};

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.