PageSourceSearch

https://oust.ch/_nuxt/BSpiqxSx.js

js oust.ch collected 2026-10-01 23:43:22 UTC 41,468 bytes, 4 lines download raw bytes

vendor: 5,673 bytes, lines 1-4
1import{b3 as w,bd as I,c1 as nt,bu as G,c2 as ot,bG as Ie,b4 as _,bt as $e,bC as se,b0 as te,b5 as xe,bz as de,b7 as be,bk as at,bx as Pe,c3 as X,bF as De,bl as Ve,c4 as st,aV as W,aW as P,aX as B,be as Be,b2 as Ne,bh as it,bg as ee,bp as rt,aZ as ne,bw as ut,a_ as ue,b6 as ae,b8 as Ce,b9 as me,a$ as Re,aY as Y,bO as dt}from"#entry";import{d as ct}from"./CDp3CI2x.js";import{e as vt,f as ft,r as Le,g as pt}from"./Bgl0RG1c.js";import{u as je}from"./MGmKwHqU.js";import{u as ht,p as mt}from"./CasEKzVh.js";import{u as bt}from"./CFv3AZyh.js";import{o as ge,d as We,u as oe,w as gt,t as xt,b as F,A as fe,f as yt,E as wt,e as Ot,T as ye,a as we,N as ce,l as St,i as ve,O as It,g as K,h as _e,n as Ct}from"./DcGATmWQ.js";import{r as Ee}from"./knTXBEVM.js";import{r as Rt}from"./De6riMe1.js";import{_ as _t}from"./BZHSLIZg.js";import{_ as Et}from"./bA6aMLd2.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};l.SENTRY_RELEASE={id:"oust-frontend@b8436136a63eb951a051124379790666143d42c3"};var s=new l.Error().stack;s&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[s]="e8e8d115-d8d4-4a18-8af7-21543bce1635",l._sentryDebugIdIdentifier="sentry-dbid-e8e8d115-d8d4-4a18-8af7-21543bce1635")}catch{}})();function le(l,s,e){let o=e.initialDeps??[],t;function a(){var i,n,h,f;let d;e.key&&((i=e.debug)!=null&&i.call(e))&&(d=Date.now());const u=l();if(!(u.length!==o.length||u.some((C,T)=>o[T]!==C)))return t;o=u;let S;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(S=Date.now()),t=s(...u),e.key&&((h=e.debug)!=null&&h.call(e))){const C=Math.round((Date.now()-d)*100)/100,T=Math.round((Date.now()-S)*100)/100,N=T/16,z=(g,y)=>{for(g=String(g);g.length<y;)g=" "+g;return g};console.info(`%c⏱ ${z(T,5)} /${z(C,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*N,120))}deg 100% 31%);`,e?.key)}return(f=e?.onChange)==null||f.call(e,t),t}return a.updateDeps=i=>{o=i},a}function Me(l,s){if(l===void 0)throw new Error("Unexpected undefined");return l}const Mt=(l,s)=>Math.abs(l-s)<1.01,Tt=(l,s,e)=>{let o;return function(...t){l.clearTimeout(o),o=l.setTimeout(()=>s.apply(this,t),e)}},Te=l=>{const{offsetWidth:s,offsetHeight:e}=l;return{width:s,height:e}},kt=l=>l,At=l=>{const s=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1),o=[];for(let t=s;t<=e;t++)o.push(t);return o},Ft=(l,s)=>{const e=l.scrollElement;if(!e)return;const o=l.targetWindow;if(!o)return;const t=i=>{const{width:n,height:h}=i;s({width:Math.round(n),height:Math.round(h)})};if(t(Te(e)),!o.ResizeObserver)return()=>{};const a=new o.ResizeObserver(i=>{const n=()=>{const h=i[0];if(h?.borderBoxSize){const f=h.borderBoxSize[0];if(f){t({width:f.inlineSize,height:f.blockSize});return}}t(Te(e))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},ke={passive:!0},Ae=typeof window>"u"?!0:"onscrollend"in window,zt=(l,s)=>{const e=l.scrollElement;if(!e)return;const o=l.targetWindow;if(!o)return;let t=0;const a=l.options.useScrollendEvent&&Ae?()=>{}:Tt(o,()=>{s(t,!1)},l.options.isScrollingResetDelay),i=d=>()=>{const{horizontal:u,isRtl:b}=l.options;t=u?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),s(t,d)},n=i(!0),h=i(!1);h(),e.addEventListener("scroll",n,ke);const f=l.options.useScrollendEvent&&Ae;return f&&e.addEventListener("scrollend",h,ke),()=>{e.removeEventListener("scroll",n),f&&e.removeEventListener("scrollend",h)}},$t=(l,s,e)=>{if(s?.borderBoxSize){const o=s.borderBoxSize[0];if(o)return Math.round(o[e.options.horizontal?"inlineSize":"blockSize"])}return l[e.options.horizontal?"offsetWidth":"offsetHeight"]},Pt=(l,{adjustments:s=0,behavior:e},o)=>{var t,a;const i=l+s;(a=(t=o.scrollElement)==null?void 0:t.scrollTo)==null||a.call(t,{[o.options.horizontal?"left":"top"]:i,behavior:e})};class Dt{constructor(s){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const o=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(t=>{t.forEach(a=>{const i=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var t;(t=o())==null||t.disconnect(),e=null},observe:t=>{var a;return(a=o())==null?void 0:a.observe(t,{box:"border-box"})},unobserve:t=>{var a;return(a=o())==null?void 0:a.unobserve(t)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([o,t])=>{typeof t>"u"&&delete e[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:kt,rangeExtractor:At,onChange:()=>{},measureElement:$t,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var o,t;(t=(o=this.options).onChange)==null||t.call(o,this,e)},this.maybeNotify=le(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
vendor: 4,854 bytes, line 4
4{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(t=>{this.observer.observe(t)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,t=>{this.scrollRect=t,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(t,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<t?"forward":"backward":null,this.scrollOffset=t,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,o)=>{const t=new Map,a=new Map;for(let i=o-1;i>=0;i--){const n=e[i];if(t.has(n.lane))continue;const h=a.get(n.lane);if(h==null||n.end>h.end?a.set(n.lane,n):n.end<h.end&&t.set(n.lane,!0),t.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((i,n)=>i.end===n.end?i.index-n.index:i.end-n.end)[0]:void 0},this.getMeasurementOptions=le(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,o,t,a,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:o,scrollMargin:t,getItemKey:a,enabled:i}),{key:!1}),this.getMeasurements=le(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:o,scrollMargin:t,getItemKey:a,enabled:i},n)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const h=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,h);for(let d=h;d<e;d++){const u=a(d),b=this.options.lanes===1?f[d-1]:this.getFurthestMeasurement(f,d),S=b?b.end+this.options.gap:o+t,C=n.get(u),T=typeof C=="number"?C:this.options.estimateSize(d),N=S+T,z=b?b.lane:d%this.options.lanes;f[d]={index:d,start:S,size:T,end:N,key:u,lane:z}}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=le(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,o,t,a)=>this.range=e.length>0&&o>0?Vt({measurements:e,outerSize:o,scrollOffset:t,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=le(()=>{let e=null,o=null;const t=this.calculateRange();return t&&(e=t.startIndex,o=t.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,o]},(e,o,t,a,i)=>a===null||i===null?[]:e({startIndex:a,endIndex:i,overscan:o,count:t}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const o=this.options.indexAttribute,t=e.getAttribute(o);return t?parseInt(t,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(e,o)=>{const t=this.indexFromElement(e),a=this.measurementsCache[t];if(!a)return;const i=a.key,n=this.elementsCache.get(i);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(t,this.options.measureElement(e,o,this))},this.resizeItem=(e,o)=>{const t=this.measurementsCache[e];if(!t)return;const a=this.itemSizeCache.get(t.key)??t.size,i=o-a;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(t,i,this):t.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(t.index),this.itemSizeCache=new Map(this.itemSizeCache.set(t.key,o)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((o,t)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=le(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,o)=>{const t=[];for(let a=0,i=e.length;a<i;a++){const n=e[a],h=o[n];t.push(h)}return t},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const o=this.getMeasurements();if(o.length!==0)return Me(o[qe(0,o.length-1,t=>Me(o[t]).start,e)])},this.getOffsetForAlignment=(e,o,t=0)=>{const a=this.getSize(),i=this.getScrollOffset();o==="auto"&&(o=e>=i+a?"end":"start"),o==="center"?e+=(t-a)/2:o==="end"&&(e-=a);const n=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(n,e),0)},this.getOffsetForIndex=(e,o="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const t=this.measurementsCache[e];if(!t)return;const a=this.getSize(),i=this.getScrollOffset();if(o==="auto")if(t.end>=i+a-this.options.scrollPaddingEnd)o="end";else if(t.start<=i+this.options.scrollPaddingStart)o="start";else return[i,o];const n=o==="end"?t.end+this.options.scrollPaddingEnd:t.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(n,o,t.size),o]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:o="start",behavior:t}={})=>{t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,o),{adjustments:void 0,behavior:t})},this.scrollToIndex=(e,{align:o="auto",behavior:t}={})=>{t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let a=0;const i=10,n=f=>{if(!this.targetWindow)return;const d=this.getOffsetForIndex(e,f);if(!d){console.warn("Failed to get offset for index:",e);return}const[u,b]=d;this._scrollToOffset(u,{adjustments:void 0,behavior:t}),this.targetWindow.requestAnimationFrame(()=>{const S=this.getScrollOffset(),C=this.getOffsetForIndex(e,b);if(!C){console.warn("Failed to get offset for index:",e);return}Mt(C[0],S)||h(b)})},h=f=>{this.targetWindow&&(a++,a<i?this.targetWindow.requestAnimationFrame(()=>n(f)):console.warn(`Failed to scroll to index ${e} after ${i} attempts.`))};n(o)},this.scrollBy=(e,{behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:o})},this.getTotalSize=()=>{var e;const o=this.getMeasurements();let t;if(o.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=((e=o[o.length-1])==null?void 0:e.end)??0;else{const a=Array(this.options.lanes).fill(null);let i=o.length-1;for(;i>=0&&a.some(n=>n===null);){const n=o[i];a[n.lane]===null&&(a[n.lane]=n.end),i--}t=Math.max(...a.filter(n=>n!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:o,behavior:t})=>{this.options.scrollToFn(e,{behavior:t,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(s)}}const qe=(l,s,e,o)=>{for(;l<=s;){const t=(l+s)/2|0,a=e(t);if(a<o)l=t+1;else if(a>o)s=t-1;else return t}return l>0?l-1:0};function Vt({measurements:l,outerSize:s,scrollOffset:e,lanes:o}){const t=l.length-1,a=h=>l[h].start;if(l.length<=o)return{startIndex:0,endIndex:t};let i=qe(0,t,a,e),n=i;if(o===1)for(;n<t&&l[n].end<e+s;)n++;else if(o>1){const h=Array(o).fill(0);for(;n<t&&h.some(d=>d<e+s);){const d=l[n];h[d.lane]=d.end,n++}const f=Array(o).fill(e+s);for(;i>=0&&f.some(d=>d>=e);){const d=l[i];f[d.lane]=d.start,i--}i=Math.max(0,i-i%o),n=Math.min(t,n+(o-1-n%o))}return{startIndex:i,endIndex:n}}function Bt(l){const s=new Dt(I(l)),e=nt(s),o=s._didMount();return G(()=>I(l).getScrollElement(),t=>{t&&s._willUpdate()},{immediate:!0}),G(()=>I(l),t=>{s.setOptions({...t,onChange:(a,i)=>{var n;Ie(e),(n=t.onChange)==null||n.call(t,a,i)}}),s._willUpdate(),Ie(e)},{immediate:!0}),ot(o),e}function Nt(l){return Bt(w(()=>({observeElementRect:Ft,observeElementOffset:zt,scrollToFn:Pt,...I(l)})))}function Lt(l,s,e){let o=_(e?.value),t=w(()=>l.value!==void 0);return[w(()=>t.value?l.value:o.value),function(a){return t.value||(o.value=a),s?.(a)}]}function jt(){let l=ge();return $e(()=>l.dispose()),l}function Wt(){let l=jt();return s=>{l.dispose(),l.nextFrame(s)}}function Fe(l){return[l.screenX,l.screenY]}function qt(){let l=_([-1,-1]);return{wasMoved(s){let e=Fe(s);return l.value[0]===e[0]&&l.value[1]===e[1]?!1:(l.value=e,!0)},update(s){l.value=Fe(s)}}}function Ut({container:l,accept:s,walk:e,enabled:o}){se(()=>{let t=l.value;if(!t||o!==void 0&&!o.value)return;let a=We(l);if(!a)return;let i=Object.assign(h=>s(h),{acceptNode:s}),n=a.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,i,!1);for(;n.nextNode();)e(n.currentNode)})}var Ue=(l=>(l[l.Left=0]="Left",l[l.Right=2]="Right",l))(Ue||{});function Ht(l){throw new Error("Unexpected object: "+l)}var D=(l=>(l[l.First=0]="First",l[l.Previous=1]="Previous",l[l.Next=2]="Next",l[l.Last=3]="Last",l[l.Specific=4]="Specific",l[l.Nothing=5]="Nothing",l))(D||{});function ze(l,s){let e=s.resolveItems();if(e.length<=0)return null;let o=s.resolveActiveIndex(),t=o??-1;switch(l.focus){case 0:{for(let a=0;a<e.length;++a)if(!s.resolveDisabled(e[a],a,e))return a;return o}case 1:{t===-1&&(t=e.length);for(let a=t-1;a>=0;--a)if(!s.resolveDisabled(e[a],a,e))return a;return o}case 2:{for(let a=t+1;a<e.length;++a)if(!s.resolveDisabled(e[a],a,e))return a;return o}case 3:{for(let a=e.length-1;a>=0;--a)if(!s.resolveDisabled(e[a],a,e))return a;return o}case 4:{for(let a=0;a<e.length;++a)if(s.resolveId(e[a],a,e)===l.id)return a;return o}case 5:return null;default:Ht(l)}}function He(l={},s=null,e=[]){for(let[o,t]of Object.entries(l))Ye(e,Ke(s,o),t);return e}function Ke(l,s){return l?l+"["+s+"]":s}function Ye(l,s,e){if(Array.isArray(e))for(let[o,t]of e.entries())Ye(l,Ke(s,o.toString()),t);else e instanceof Date?l.push([s,e.toISOString()]):typeof e=="boolean"?l.push([s,e?"1":"0"]):typeof e=="string"?l.push([s,e]):typeof e=="number"?l.push([s,`${e}`]):e==null?l.push([s,""]):He(e,s,l)}var Kt={};function Yt(l,s){return l===s}var Gt=(l=>(l[l.Open=0]="Open",l[l.Closed=1]="Closed",l))(Gt||{}),Jt=(l=>(l[l.Single=0]="Single",l[l.Multi=1]="Multi",l))(Jt||{}),Xt=(l=>(l[l.Pointer=0]="Pointer",l[l.Focus=1]="Focus",l[l.Other=2]="Other",l))(Xt||{});let Ge=Symbol("ComboboxContext");function ie(l){let s=Pe(Ge,null);if(s===null){let e=new Error(`<${l} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,ie),e}return s}let Je=Symbol("VirtualContext"),Zt=te({name:"VirtualProvider",setup(l,{slots:s}){let e=ie("VirtualProvider"),o=w(()=>{let n=F(e.optionsRef);if(!n)return{start:0,end:0};let h=window.getComputedStyle(n);return{start:parseFloat(h.paddingBlockStart||h.paddingTop),end:parseFloat(h.paddingBlockEnd||h.paddingBottom)}}),t=Nt(w(()=>({scrollPaddingStart:o.value.start,scrollPaddingEnd:o.value.end,count:e.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return F(e.optionsRef)},overscan:12}
4))),a=w(()=>{var n;return(n=e.virtual.value)==null?void 0:n.options}),i=_(0);return G([a],()=>{i.value+=1}),Ve(Je,e.virtual.value?t:null),()=>[de("div",{style:{position:"relative",width:"100%",height:`${t.value.getTotalSize()}px`},ref:n=>{if(n){if(typeof process<"u"&&Kt.JEST_WORKER_ID!==void 0||e.activationTrigger.value===0)return;e.activeOptionIndex.value!==null&&e.virtual.value.options.length>e.activeOptionIndex.value&&t.value.scrollToIndex(e.activeOptionIndex.value)}}},t.value.getVirtualItems().map(n=>st(s.default({option:e.virtual.value.options[n.index],open:e.comboboxState.value===0})[0],{key:`${i.value}-${n.index}`,"data-index":n.index,"aria-setsize":e.virtual.value.options.length,"aria-posinset":n.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${n.start}px)`,overflowAnchor:"none"}})))]}}),Qt=te({name:"Combobox",emits:{"update:modelValue":l=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},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},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(l,{slots:s,attrs:e,emit:o}){let t=_(1),a=_(null),i=_(null),n=_(null),h=_(null),f=_({static:!1,hold:!1}),d=_([]),u=_(null),b=_(2),S=_(!1);function C(r=p=>p){let p=u.value!==null?d.value[u.value]:null,x=r(d.value.slice()),O=x.length>0&&x[0].dataRef.order.value!==null?x.sort((A,j)=>A.dataRef.order.value-j.dataRef.order.value):It(x,A=>F(A.dataRef.domRef)),k=p?O.indexOf(p):null;return k===-1&&(k=null),{options:O,activeOptionIndex:k}}let T=w(()=>l.multiple?1:0),N=w(()=>l.nullable),[z,g]=Lt(w(()=>l.modelValue),r=>o("update:modelValue",r),w(()=>l.defaultValue)),y=w(()=>z.value===void 0?oe(T.value,{1:[],0:void 0}):z.value),L=null,v=null;function E(r){return oe(T.value,{0(){return g?.(r)},1:()=>{let p=X(c.value.value).slice(),x=X(r),O=p.findIndex(k=>c.compare(x,X(k)));return O===-1?p.push(x):p.splice(O,1),g?.(p)}})}let M=w(()=>{});G([M],([r],[p])=>{if(c.virtual.value&&r&&p&&u.value!==null){let x=r.indexOf(p[u.value]);x!==-1?u.value=x:u.value=null}});let c={comboboxState:t,value:y,mode:T,compare(r,p){if(typeof l.by=="string"){let x=l.by;return r?.[x]===p?.[x]}return l.by===null?Yt(r,p):l.by(r,p)},calculateIndex(r){return c.virtual.value?l.by===null?c.virtual.value.options.indexOf(r):c.virtual.value.options.findIndex(p=>c.compare(p,r)):d.value.findIndex(p=>c.compare(p.dataRef.value,r))},defaultValue:w(()=>l.defaultValue),nullable:N,immediate:w(()=>!1),virtual:w(()=>null),inputRef:i,labelRef:a,buttonRef:n,optionsRef:h,disabled:w(()=>l.disabled),options:d,change(r){g(r)},activeOptionIndex:w(()=>{if(S.value&&u.value===null&&(c.virtual.value?c.virtual.value.options.length>0:d.value.length>0)){if(c.virtual.value){let p=c.virtual.value.options.findIndex(x=>{var O;return!((O=c.virtual.value)!=null&&O.disabled(x))});if(p!==-1)return p}let r=d.value.findIndex(p=>!p.dataRef.disabled);if(r!==-1)return r}return u.value}),activationTrigger:b,optionsPropsRef:f,closeCombobox(){S.value=!1,!l.disabled&&t.value!==1&&(t.value=1,u.value=null)},openCombobox(){if(S.value=!0,!l.disabled&&t.value!==0){if(c.value.value){let r=c.calculateIndex(c.value.value);r!==-1&&(u.value=r)}t.value=0}},setActivationTrigger(r){b.value=r},goToOption(r,p,x){S.value=!1,L!==null&&cancelAnimationFrame(L),L=requestAnimationFrame(()=>{if(l.disabled||h.value&&!f.value.static&&t.value===1)return;if(c.virtual.value){u.value=r===D.Specific?p:ze({focus:r},{resolveItems:()=>c.virtual.value.options,resolveActiveIndex:()=>{var A,j;return(j=(A=c.activeOptionIndex.value)!=null?A:c.virtual.value.options.findIndex(q=>{var H;return!((H=c.virtual.value)!=null&&H.disabled(q))}))!=null?j:null},resolveDisabled:A=>c.virtual.value.disabled(A),resolveId(){throw new Error("Function not implemented.")}}),b.value=x??2;return}let O=C();if(O.activeOptionIndex===null){let A=O.options.findIndex(j=>!j.dataRef.disabled);A!==-1&&(O.activeOptionIndex=A)}let k=r===D.Specific?p:ze({focus:r},{resolveItems:()=>O.options,resolveActiveIndex:()=>O.activeOptionIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.disabled});u.value=k,b.value=x??2,d.value=O.options})},selectOption(r){let p=d.value.find(O=>O.id===r);if(!p)return;let{dataRef:x}=p;E(x.value)},selectActiveOption(){if(c.activeOptionIndex.value!==null){if(c.virtual.value)E(c.virtual.value.options[c.activeOptionIndex.value]);else{let{dataRef:r}=d.value[c.activeOptionIndex.value];E(r.value)}c.goToOption(D.Specific,c.activeOptionIndex.value)}},registerOption(r,p){let x=at({id:r,dataRef:p});if(c.virtual.value){d.value.push(x);return}v&&cancelAnimationFrame(v);let O=C(k=>(k.push(x),k));u.value===null&&c.isSelected(p.value.value)&&(O.activeOptionIndex=O.options.indexOf(x)),d.value=O.options,u.value=O.activeOptionIndex,b.value=2,O.options.some(k=>!F(k.dataRef.domRef))&&(v=requestAnimationFrame(()=>{let k=C();d.value=k.options,u.value=k.activeOptionIndex}))},unregisterOption(r,p){if(L!==null&&cancelAnimationFrame(L),p&&(S.value=!0),c.virtual.value){d.value=d.value.filter(O=>O.id!==r);return}let x=C(O=>{let k=O.findIndex(A=>A.id===r);return k!==-1&&O.splice(k,1),O});d.value=x.options,u.value=x.activeOptionIndex,b.value=2},isSelected(r){return oe(T.value,{0:()=>c.compare(X(c.value.value),X(r)),1:()=>X(c.value.value).some(p=>c.compare(X(p),X(r)))})},isActive(r){return u.value===c.calculateIndex(r)}};gt([i,n,h],()=>c.closeCombobox(),w(()=>t.value===0)),Ve(Ge,c),xt(w(()=>oe(t.value,{0:ve.Open,1:ve.Closed})));let R=w(()=>{var r;return(r=F(i))==null?void 0:r.closest("form")});return xe(()=>{G([R],()=>{if(!R.value||l.defaultValue===void 0)return;function r(){c.change(l.defaultValue)}return R.value.addEventListener("reset",r),()=>{var p;(p=R.value)==null||p.removeEventListener("reset",r)}},{immediate:!0})}),()=>{var r,p,x;let{name:O,disabled:k,form:A,...j}=l,q={open:t.value===0,disabled:k,activeIndex:c.activeOptionIndex.value,activeOption:c.activeOptionIndex.value===null?null:c.virtual.value?c.virtual.value.options[(r=c.activeOptionIndex.value)!=null?r:0]:(x=(p=c.options.value[c.activeOptionIndex.value])==null?void 0:p.dataRef.value)!=null?x:null,value:y.value};return de(be,[...O!=null&&y.value!=null?He({[O]:y.value}).map(([H,pe])=>de(yt,wt({features:Ot.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:A,disabled:k,name:H,value:pe}))):[],fe({theirProps:{...e,...ye(j,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:q,slots:s,attrs:e,name:"Combobox"})])}}}),el=te({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:l=>!0},setup(l,{emit:s,attrs:e,slots:o,expose:t}){var a;let i=(a=l.id)!=null?a:`headlessui-combobox-input-${we()}`,n=ie("ComboboxInput"),h=w(()=>We(F(n.inputRef))),f={value:!1};t({el:n.inputRef,$el:n.inputRef});function d(){n.change(null);let v=F(n.optionsRef);v&&(v.scrollTop=0),n.goToOption(D.Nothing)}let u=w(()=>{var v;let E=n.value.value;return F(n.inputRef)?typeof l.displayValue<"u"&&E!==void 0?(v=l.dis
4playValue(E))!=null?v:"":typeof E=="string"?E:"":""});xe(()=>{G([u,n.comboboxState,h],([v,E],[M,c])=>{if(f.value)return;let R=F(n.inputRef);R&&((c===0&&E===1||v!==M)&&(R.value=v),requestAnimationFrame(()=>{var r;if(f.value||!R||((r=h.value)==null?void 0:r.activeElement)!==R)return;let{selectionStart:p,selectionEnd:x}=R;Math.abs((x??0)-(p??0))===0&&p===0&&R.setSelectionRange(R.value.length,R.value.length)}))},{immediate:!0}),G([n.comboboxState],([v],[E])=>{if(v===0&&E===1){if(f.value)return;let M=F(n.inputRef);if(!M)return;let c=M.value,{selectionStart:R,selectionEnd:r,selectionDirection:p}=M;M.value="",M.value=c,p!==null?M.setSelectionRange(R,r,p):M.setSelectionRange(R,r)}})});let b=_(!1);function S(){b.value=!0}function C(){ge().nextFrame(()=>{b.value=!1})}let T=Wt();function N(v){switch(f.value=!0,T(()=>{f.value=!1}),v.key){case K.Enter:if(f.value=!1,n.comboboxState.value!==0||b.value)return;if(v.preventDefault(),v.stopPropagation(),n.activeOptionIndex.value===null){n.closeCombobox();return}n.selectActiveOption(),n.mode.value===0&&n.closeCombobox();break;case K.ArrowDown:return f.value=!1,v.preventDefault(),v.stopPropagation(),oe(n.comboboxState.value,{0:()=>n.goToOption(D.Next),1:()=>n.openCombobox()});case K.ArrowUp:return f.value=!1,v.preventDefault(),v.stopPropagation(),oe(n.comboboxState.value,{0:()=>n.goToOption(D.Previous),1:()=>{n.openCombobox(),De(()=>{n.value.value||n.goToOption(D.Last)})}});case K.Home:if(v.shiftKey)break;return f.value=!1,v.preventDefault(),v.stopPropagation(),n.goToOption(D.First);case K.PageUp:return f.value=!1,v.preventDefault(),v.stopPropagation(),n.goToOption(D.First);case K.End:if(v.shiftKey)break;return f.value=!1,v.preventDefault(),v.stopPropagation(),n.goToOption(D.Last);case K.PageDown:return f.value=!1,v.preventDefault(),v.stopPropagation(),n.goToOption(D.Last);case K.Escape:if(f.value=!1,n.comboboxState.value!==0)return;v.preventDefault(),n.optionsRef.value&&!n.optionsPropsRef.value.static&&v.stopPropagation(),n.nullable.value&&n.mode.value===0&&n.value.value===null&&d(),n.closeCombobox();break;case K.Tab:if(f.value=!1,n.comboboxState.value!==0)return;n.mode.value===0&&n.activationTrigger.value!==1&&n.selectActiveOption(),n.closeCombobox();break}}function z(v){s("change",v),n.nullable.value&&n.mode.value===0&&v.target.value===""&&d(),n.openCombobox()}function g(v){var E,M,c;let R=(E=v.relatedTarget)!=null?E:_e.find(r=>r!==v.currentTarget);if(f.value=!1,!((M=F(n.optionsRef))!=null&&M.contains(R))&&!((c=F(n.buttonRef))!=null&&c.contains(R))&&n.comboboxState.value===0)return v.preventDefault(),n.mode.value===0&&(n.nullable.value&&n.value.value===null?d():n.activationTrigger.value!==1&&n.selectActiveOption()),n.closeCombobox()}function y(v){var E,M,c;let R=(E=v.relatedTarget)!=null?E:_e.find(r=>r!==v.currentTarget);(M=F(n.buttonRef))!=null&&M.contains(R)||(c=F(n.optionsRef))!=null&&c.contains(R)||n.disabled.value||n.immediate.value&&n.comboboxState.value!==0&&(n.openCombobox(),ge().nextFrame(()=>{n.setActivationTrigger(1)}))}let L=w(()=>{var v,E,M,c;return(c=(M=(E=l.defaultValue)!=null?E:n.defaultValue.value!==void 0?(v=l.displayValue)==null?void 0:v.call(l,n.defaultValue.value):null)!=null?M:n.defaultValue.value)!=null?c:""});return()=>{var v,E,M,c,R,r,p;let x={open:n.comboboxState.value===0},{displayValue:O,onChange:k,...A}=l,j={"aria-controls":(v=n.optionsRef.value)==null?void 0:v.id,"aria-expanded":n.comboboxState.value===0,"aria-activedescendant":n.activeOptionIndex.value===null?void 0:n.virtual.value?(E=n.options.value.find(q=>!n.virtual.value.disabled(q.dataRef.value)&&n.compare(q.dataRef.value,n.virtual.value.options[n.activeOptionIndex.value])))==null?void 0:E.id:(M=n.options.value[n.activeOptionIndex.value])==null?void 0:M.id,"aria-labelledby":(r=(c=F(n.labelRef))==null?void 0:c.id)!=null?r:(R=F(n.buttonRef))==null?void 0:R.id,"aria-autocomplete":"list",id:i,onCompositionstart:S,onCompositionend:C,onKeydown:N,onInput:z,onFocus:y,onBlur:g,role:"combobox",type:(p=e.type)!=null?p:"text",tabIndex:0,ref:n.inputRef,defaultValue:L.value,disabled:n.disabled.value===!0?!0:void 0};return fe({ourProps:j,theirProps:A,slot:x,attrs:e,slots:o,features:ce.RenderStrategy|ce.Static,name:"ComboboxInput"})}}}),tl=te({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(l,{attrs:s,slots:e,expose:o}){let t=ie("ComboboxOptions"),a=`headlessui-combobox-options-${we()}`;o({el:t.optionsRef,$el:t.optionsRef}),se(()=>{t.optionsPropsRef.value.static=l.static}),se(()=>{t.optionsPropsRef.value.hold=l.hold});let i=St(),n=w(()=>i!==null?(i.value&ve.Open)===ve.Open:t.comboboxState.value===0);Ut({container:w(()=>F(t.optionsRef)),enabled:w(()=>t.comboboxState.value===0),accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?N
4odeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});function h(f){f.preventDefault()}return()=>{var f,d,u;let b={open:t.comboboxState.value===0},S={"aria-labelledby":(u=(f=F(t.labelRef))==null?void 0:f.id)!=null?u:(d=F(t.buttonRef))==null?void 0:d.id,id:a,ref:t.optionsRef,role:"listbox","aria-multiselectable":t.mode.value===1?!0:void 0,onMousedown:h},C=ye(l,["hold"]);return fe({ourProps:S,theirProps:C,slot:b,attrs:s,slots:t.virtual.value&&t.comboboxState.value===0?{...e,default:()=>[de(Zt,{},e.default)]}:e,features:ce.RenderStrategy|ce.Static,visible:n.value,name:"ComboboxOptions"})}}}),ll=te({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(l,{slots:s,attrs:e,expose:o}){let t=ie("ComboboxOption"),a=`headlessui-combobox-option-${we()}`,i=_(null),n=w(()=>l.disabled);o({el:i,$el:i});let h=w(()=>{var g;return t.virtual.value?t.activeOptionIndex.value===t.calculateIndex(l.value):t.activeOptionIndex.value===null?!1:((g=t.options.value[t.activeOptionIndex.value])==null?void 0:g.id)===a}),f=w(()=>t.isSelected(l.value)),d=Pe(Je,null),u=w(()=>({disabled:l.disabled,value:l.value,domRef:i,order:w(()=>l.order)}));xe(()=>t.registerOption(a,u)),$e(()=>t.unregisterOption(a,h.value)),se(()=>{let g=F(i);g&&d?.value.measureElement(g)}),se(()=>{t.comboboxState.value===0&&h.value&&(t.virtual.value||t.activationTrigger.value!==0&&De(()=>{var g,y;return(y=(g=F(i))==null?void 0:g.scrollIntoView)==null?void 0:y.call(g,{block:"nearest"})}))});function b(g){g.preventDefault(),g.button===Ue.Left&&(n.value||(t.selectOption(a),Ct()||requestAnimationFrame(()=>{var y;return(y=F(t.inputRef))==null?void 0:y.focus({preventScroll:!0})}),t.mode.value===0&&t.closeCombobox()))}function S(){var g;if(l.disabled||(g=t.virtual.value)!=null&&g.disabled(l.value))return t.goToOption(D.Nothing);let y=t.calculateIndex(l.value);t.goToOption(D.Specific,y)}let C=qt();function T(g){C.update(g)}function N(g){var y;if(!C.wasMoved(g)||l.disabled||(y=t.virtual.value)!=null&&y.disabled(l.value)||h.value)return;let L=t.calculateIndex(l.value);t.goToOption(D.Specific,L,0)}function z(g){var y;C.wasMoved(g)&&(l.disabled||(y=t.virtual.value)!=null&&y.disabled(l.value)||h.value&&(t.optionsPropsRef.value.hold||t.goToOption(D.Nothing)))}return()=>{let{disabled:g}=l,y={active:h.value,selected:f.value,disabled:g},L={id:a,ref:i,role:"option",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onMousedown:b,onFocus:S,onPointerenter:T,onMouseenter:T,onPointermove:N,onMousemove:N,onPointerleave:z,onMouseleave:z},v=ye(l,["order","value"]);return fe({ourProps:L,theirProps:v,slot:y,attrs:e,slots:s,name:"ComboboxOption"})}}});function nl(l,s){return P(),W("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"},[B("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}const ol={class:"absolute right-3 top-1/2 -translate-y-1/2"},al={class:"min-w-0 truncate text-base text-gray-900"},sl={class:"font-semibold tabular-nums"},il={key:0,class:"px-4 py-3 text-sm text-gray-500"},rl=["disabled"],ul={key:0,class:"mt-3"},dl={class:"text-sm text-gray-600"},cl={class:"mt-2 flex flex-wrap gap-2"},vl=["onClick"],Q=2,fl=8,pl=te({__name:"CallToActionField",props:{service:{default:void 0},city:{default:null}},emits:["state"],async setup(l,{emit:s}){let e,o;const t=l,a=s,i=Be(),{data:n}=([e,o]=Ne(()=>je()),e=await e,o(),e),{redirectToApp:h}=ht(),f=bt(),d=_(""),u=_([]),b=_(null),S=_(!1),C=_(!1),T=_(""),N=_(!1),z=_(!1),g=_(!1),y=_([]),L=new Map;let v=null;const E=w(()=>y.value.length>0&&d.value.trim().length<Q),M=w(()=>z.value?!1:E.value?u.value.length>0:d.value.trim().length>=Q&&(u.value.length>0||!S.value)),c=w(()=>y.value.filter(m=>m.id!==b.value?.id).slice(0,fl)),R=w(()=>b.value?"Pas le bon code postal ? Choisis une autre localité :":"Ou choisis directement une localité :"),r=()=>{a("state",{filled:!!b.value,cityOptionCount:y.value.length})},p=m=>({id:m.id,postcode:m.postcode,name:m.name||"",subscription_available:m.subscription_available,lift_available:m.lift_available}),x=m=>{g.value=!0,b.value=p(m)},O=async()=>{const m=Le({postcodeId:i.query.postcodeId,city:i.query.city},n.value??[],t.city);if(y.value=(m.options??[]).map(p),y.value.length&&(u.value=y.value,z.value=!1),m.selected){x(m.selected),r();return}if(y.value.length){r();return}if(m.fetchId){S.value=!0;try{x(await f.getPostcode(m.fetchId))}catch{}finally{S.value=!1,r()}return}if(m.searchCode){await q(m.searchCode),u.value.length&&x(u.value[0]),r();return}r()},k=m=>m?`${m.postcode} ${m.name}`:"",A=m=>
4t.service==="lift"||t.service==="man_with_a_van"?m.lift_available:m.subscription_available,j=(m,V)=>{const $=V.trim().toLowerCase(),U=Z=>{const J=Z.postcode.toLowerCase(),Se=Z.name.toLowerCase();return J===$?0:J.startsWith($)?1:Se.startsWith($)?2:Se.includes($)?3:4};return[...m].sort((Z,J)=>U(Z)-U(J)||Z.postcode.localeCompare(J.postcode))},q=async m=>{const V=m.trim();if(V.length<Q){u.value=[],S.value=!1;return}const $=L.get(V);if($){v?.abort(),v=null,u.value=$,S.value=!1;return}v?.abort();const U=new AbortController;v=U,S.value=!0;try{const Z=await f.searchPostcodes(V,{signal:U.signal}),J=j(Z,V);L.set(V,J),u.value=J,Oe()}catch{if(U.signal.aborted)return;u.value=[],re("Recherche momentanément indisponible. Réessaie.",!0)}finally{v===U&&(v=null,S.value=!1)}},H=ct(q,200),pe=m=>{if(d.value=m.target.value,z.value=!1,b.value=null,Oe(),d.value.trim().length<Q&&y.value.length){u.value=y.value,S.value=!1,r();return}S.value=d.value.trim().length>=Q,H(d.value),r()},Xe=()=>{z.value=!1},Ze=m=>{if(t.service!=="lift"&&mt(),Xe(),y.value.length&&d.value.trim().length<Q&&(u.value=y.value),!b.value)return;const V=m.target;requestAnimationFrame(()=>V.select())},Qe=()=>{b.value=null,d.value="",z.value=!1,y.value.length&&(u.value=y.value),r()},et=m=>{z.value=!0,b.value=m},re=(m,V=!1)=>{T.value=m,N.value=V},Oe=()=>{T.value="",N.value=!1},tt=dt(),he=async m=>{if(!C.value){C.value=!0,z.value=!0;try{await h(m,{service:t.service,webIntake:tt.public.debarrasWebEnabled===!0,source:ft(i.path,i.query)})}catch{C.value=!1,re("Erreur lors de la redirection. Réessaie.",!0)}}};G(b,m=>{if(!m){r();return}if(g.value){g.value=!1,r();return}he(m)}),G(()=>[i.query.postcodeId,i.query.city,n.value,t.city],()=>{O()},{immediate:!0});const lt=async()=>{if(b.value)return he(b.value);const m=d.value.trim();if(m.length<Q){re("Entre ton code postal ou le nom de ta commune.");return}if(H.cancel(),await q(m),u.value.length)return he(u.value[0]);re(`Aucun code postal trouvé pour « ${m} ».`)};return it(()=>{H.cancel(),v?.abort()}),(m,V)=>(P(),W("div",null,[B("form",{class:"flex flex-col gap-2 xs:flex-row",onSubmit:rt(lt,["prevent"])},[ne(I(Qt),{modelValue:I(b),"onUpdate:modelValue":V[0]||(V[0]=$=>ut(b)?b.value=$:null),as:"div",nullable:"",class:"relative min-w-0 flex-1"},{default:ue(()=>[ne(I(nl),{class:"pointer-events-none absolute left-4 top-1/2 z-10 h-5 w-5 -translate-y-1/2 text-gray-400","aria-hidden":"true"}),ne(I(el),{class:"h-14 w-full rounded-xl border-0 bg-white pl-12 pr-11 text-base text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 transition placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-brand",placeholder:"Code postal ou commune",autocomplete:"off",spellcheck:"false","display-value":k,onChange:pe,onFocus:Ze}),B("div",ol,[I(S)?(P(),ae(I(Ee),{key:0,class:"h-5 w-5 animate-spin text-gray-400","aria-hidden":"true"})):I(b)?(P(),W("button",{key:1,type:"button",class:"rounded-full p-1 text-gray-400 transition hover:bg-gray-100 hover:text-gray-700","aria-label":"Changer de code postal",onClick:Qe},[ne(I(Rt),{class:"h-5 w-5","aria-hidden":"true"})])):ee("",!0)]),I(M)?(P(),ae(I(tl),{key:0,class:"absolute z-30 mt-2 max-h-72 w-full overflow-auto rounded-xl bg-white py-1 text-left shadow-lg ring-1 ring-black/5 focus:outline-none"},{default:ue(()=>[(P(!0),W(be,null,Ce(I(u),$=>(P(),ae(I(ll),{key:$.id,value:$,as:"template"},{default:ue(({active:U})=>[B("li",{class:me(["flex cursor-pointer items-center justify-between gap-3 px-4 py-3",U?"bg-brand/10":""])},[B("span",al,[B("span",sl,Y($.postcode),1),Re(" "+Y($.name),1)]),B("span",{class:me(["flex-none rounded-full px-2 py-0.5 text-xs font-semibold",A($)?"bg-brand-50 text-brand-700":"bg-amber-100 text-amber-700"])},Y(A($)?"Disponible":"Bientôt"),3)],2)]),_:2},1032,["value"]))),128)),!I(u).length&&!I(S)?(P(),W("li",il," Aucun code postal trouvé pour « "+Y(I(d))+" ». ",1)):ee("",!0)]),_:1})):ee("",!0)]),_:1},8,["modelValue"]),B("button",{type:"submit",disabled:I(C),class:"inline-flex h-14 flex-none items-center justify-center rounded-xl border border-transparent bg-brand px-6 text-base font-semibold text-white shadow-sm transition hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-border focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70"}
4,[I(C)?(P(),ae(I(Ee),{key:0,class:"mr-2 h-5 w-5 animate-spin","aria-hidden":"true"})):ee("",!0),Re(" "+Y(I(C)?"Un instant…":"Commencer"),1)],8,rl)],32),I(c).length?(P(),W("div",ul,[B("p",dl,Y(I(R)),1),B("div",cl,[(P(!0),W(be,null,Ce(I(c),$=>(P(),W("button",{key:$.id,type:"button",class:"rounded-full bg-white px-3 py-1.5 text-sm font-medium text-gray-700 ring-1 ring-gray-200 transition hover:text-brand hover:ring-brand",onClick:U=>et($)},Y(I(vt)($)),9,vl))),128))])])):ee("",!0),I(T)?(P(),W("p",{key:1,class:me(["mt-2 text-center text-sm",I(N)?"text-red-600":"text-gray-500"]),role:"status"},Y(I(T)),3)):ee("",!0)]))}}),hl=!1,ml={key:0,class:"p-6 sm:p-10"},bl={key:1,class:"p-6 sm:p-10"},gl={class:"text-2xl xl:text-3xl font-bold tracking-tight text-gray-800"},xl={key:0,class:"hidden sm:block mt-2 text-gray-600 text-sm"},yl={class:"mt-1 lg:mt-2"},Al=te({__name:"CTA",props:{blobs:{type:Boolean,default:!0},header:{},service:{default:""},shadow:{type:Boolean,default:!1},standalone:{type:Boolean,default:!1},city:{default:null}},async setup(l){let s,e;const o=l,t=Be(),{data:a}=([s,e]=Ne(()=>je()),s=await s,e(),s),i=_({filled:!1,cityOptionCount:0}),n=_(!1),h=w(()=>{const u=Le({postcodeId:t.query.postcodeId,city:t.query.city},a.value??[],o.city);return{filled:!!(u.selected||u.searchCode||u.fetchId),cityOptionCount:u.options?.length??0}}),f=w(()=>{const u=n.value?i.value:h.value;return pt({filled:u.filled,cityOptionCount:u.cityOptionCount,fallback:o.header})}),d=u=>{i.value=u,n.value=!0};return(u,b)=>{const S=pl,C=_t,T=Et;return P(),ae(T,{blobs:u.blobs,shadow:u.shadow,standalone:u.standalone},{default:ue(()=>[I(hl)?(P(),W("div",ml,[...b[0]||(b[0]=[B("h4",{class:"text-2xl xl:text-3xl font-bold tracking-tight text-gray-800"}," Site en maintenance ",-1),B("p",{class:"mt-4 text-gray-600"}," Notre site est temporairement en maintenance. Nous travaillons pour améliorer votre expérience et serons de retour très prochainement. ",-1),B("p",{class:"mt-4 text-gray-600"}," Nous vous remercions pour votre compréhension. ",-1)])])):(P(),W("div",bl,[B("h4",gl,Y(I(f)),1),u.service=="lift"?(P(),W("p",xl," 💡 Conseil: utilise ton téléphone pour ajouter les photos facilement ")):ee("",!0),ne(S,{service:u.service,city:u.city,class:"mt-6 lg:mt-8 mb-4",onState:d},null,8,["service","city"]),B("div",yl,[ne(C)])]))]),_:1},8,["blobs","shadow","standalone"])}}});export{Al as _,nl as r};

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.