PageSourceSearch

https://botinkit.ai/_nuxt/6cmxRYCV.js

js botinkit.ai collected 2026-10-05 11:52:42 UTC 73,546 bytes, 4 lines download raw bytes

vendor: 4,912 bytes, lines 1-4
1import{o as I,u as j,d as Ve,e as ze,A as X,f as $e,E as Be,a as Ne,T as he,s as je,b as P,N as re}from"./DSwjkc_a.js";import{h as O,q as b,x as rt,y as Z,z as Te,A as ut,B as Oe,C as te,r as A,D as be,E as ge,e as H,j as oe,G as ue,F as ve,H as Ue,I as le,J as U,K as N,L as dt,s as we,o as q,w as B,b as z,m as se,c as K,d as pe,a as _,t as W,T as qe,n as He,l as We,M as ct,N as Q,O as pt,k as Ce,v as vt,P as ft,Q as mt,R as ht,u as bt,S as gt,U as xt,f as Ke,V as ee}from"./BZoabA6w.js";function ie(e,s,t){let a=t.initialDeps??[],o;return()=>{var i,n,l,p;let c;t.key&&((i=t.debug)!=null&&i.call(t))&&(c=Date.now());const d=e();if(!(d.length!==a.length||d.some((y,E)=>a[E]!==y)))return o;a=d;let r;if(t.key&&((n=t.debug)!=null&&n.call(t))&&(r=Date.now()),o=s(...d),t.key&&((l=t.debug)!=null&&l.call(t))){const y=Math.round((Date.now()-c)*100)/100,E=Math.round((Date.now()-r)*100)/100,g=E/16,F=(D,w)=>{for(D=String(D);D.length<w;)D=" "+D;return D};console.info(`%c⏱ ${F(E,5)} /${F(y,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(p=t==null?void 0:t.onChange)==null||p.call(t,o),o}}function ye(e,s){if(e===void 0)throw new Error("Unexpected undefined");return e}const yt=(e,s)=>Math.abs(e-s)<1,wt=(e,s,t)=>{let a;return function(...o){e.clearTimeout(a),a=e.setTimeout(()=>s.apply(this,o),t)}},St=e=>e,Ot=e=>{const s=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let o=s;o<=t;o++)a.push(o);return a},Ct=(e,s)=>{const t=e.scrollElement;if(!t)return;const a=e.targetWindow;if(!a)return;const o=n=>{const{width:l,height:p}=n;s({width:Math.round(l),height:Math.round(p)})};if(o(t.getBoundingClientRect()),!a.ResizeObserver)return()=>{};const i=new a.ResizeObserver(n=>{const l=()=>{const p=n[0];if(p!=null&&p.borderBoxSize){const c=p.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(t.getBoundingClientRect())};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t)}},Le={passive:!0},Me=typeof window>"u"?!0:"onscrollend"in window,It=(e,s)=>{const t=e.scrollElement;if(!t)return;const a=e.targetWindow;if(!a)return;let o=0;const i=e.options.useScrollendEvent&&Me?()=>{}:wt(a,()=>{s(o,!1)},e.options.isScrollingResetDelay),n=d=>()=>{const{horizontal:u,isRtl:r}=e.options;o=u?t.scrollLeft*(r&&-1||1):t.scrollTop,i(),s(o,d)},l=n(!0),p=n(!1);p(),t.addEventListener("scroll",l,Le);const c=e.options.useScrollendEvent&&Me;return c&&t.addEventListener("scrollend",p,Le),()=>{t.removeEventListener("scroll",l),c&&t.removeEventListener("scrollend",p)}},Rt=(e,s,t)=>{if(s!=null&&s.borderBoxSize){const a=s.borderBoxSize[0];if(a)return Math.round(a[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Et=(e,{adjustments:s=0,behavior:t},a)=>{var o,i;const n=e+s;(i=(o=a.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[a.options.horizontal?"left":"top"]:n,behavior:t})};class Tt{constructor(s){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,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 t=null;const a=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{const n=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()})}));return{disconnect:()=>{var o;(o=a())==null||o.disconnect(),t=null},observe:o=>{var i;return(i=a())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=a())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([a,o])=>{typeof o>"u"&&delete t[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:St,rangeExtractor:Ot,onChange:()=>{},measureElement:Rt,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var a,o;(o=(a=this.options).onChange)==null||o.call(a,this,t)},this.maybeNotify=ie(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
vendor: 8,178 bytes, line 4
4{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,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=(t,a)=>{const o=new Map,i=new Map;for(let n=a-1;n>=0;n--){const l=t[n];if(o.has(l.lane))continue;const p=i.get(l.lane);if(p==null||l.end>p.end?i.set(l.lane,l):l.end<p.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((n,l)=>n.end===l.end?n.index-l.index:n.end-l.end)[0]:void 0},this.getMeasurementOptions=ie(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,a,o,i,n)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:a,scrollMargin:o,getItemKey:i,enabled:n}),{key:!1}),this.getMeasurements=ie(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:a,scrollMargin:o,getItemKey:i,enabled:n},l)=>{if(!n)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 p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,p);for(let d=p;d<t;d++){const u=i(d),r=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),y=r?r.end+this.options.gap:a+o,E=l.get(u),g=typeof E=="number"?E:this.options.estimateSize(d),F=y+g,D=r?r.lane:d%this.options.lanes;c[d]={index:d,start:y,size:g,end:F,key:u,lane:D}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ie(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,a,o)=>this.range=t.length>0&&a>0?Lt({measurements:t,outerSize:a,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ie(()=>{let t=null,a=null;const o=this.calculateRange();return o&&(t=o.startIndex,a=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,a]},(t,a,o,i,n)=>i===null||n===null?[]:t({startIndex:i,endIndex:n,overscan:a,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const a=this.options.indexAttribute,o=t.getAttribute(a);return o?parseInt(o,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(t,a)=>{const o=this.indexFromElement(t),i=this.measurementsCache[o];if(!i)return;const n=i.key,l=this.elementsCache.get(n);l!==t&&(l&&this.observer.unobserve(l),this.observer.observe(t),this.elementsCache.set(n,t)),t.isConnected&&this.resizeItem(o,this.options.measureElement(t,a,this))},this.resizeItem=(t,a)=>{const o=this.measurementsCache[t];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,n=a-i;n!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,n,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,a)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((a,o)=>{a.isConnected||(this.observer.unobserve(a),this.elementsCache.delete(o))});return}this._measureElement(t,void 0)},this.getVirtualItems=ie(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,a)=>{const o=[];for(let i=0,n=t.length;i<n;i++){const l=t[i],p=a[l];o.push(p)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const a=this.getMeasurements();if(a.length!==0)return ye(a[Ge(0,a.length-1,o=>ye(a[o]).start,t)])},this.getOffsetForAlignment=(t,a)=>{const o=this.getSize(),i=this.getScrollOffset();a==="auto"&&t>=i+o&&(a="end"),a==="end"&&(t-=o);const n=this.options.horizontal?"scrollWidth":"scrollHeight",p=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[n]:this.scrollElement[n]:0)-o;return Math.max(Math.min(p,t),0)},this.getOffsetForIndex=(t,a="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const o=this.measurementsCache[t];if(!o)return;const i=this.getSize(),n=this.getScrollOffset();if(a==="auto")if(o.end>=n+i-this.options.scrollPaddingEnd)a="end";else if(o.start<=n+this.options.scrollPaddingStart)a="start";else return[n,a];const l=o.start-this.options.scrollPaddingStart+(o.size-i)/2;switch(a){case"center":return[this.getOffsetForAlignment(l,a),a];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,a),a];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,a),a]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:a="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,a),{adjustments:void 0,behavior:o})},this.scrollToIndex=(t,{align:a="auto",behavior:o}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(t,a);if(!i)return;const[n,l]=i;this._scrollToOffset(n,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[c]=ye(this.getOffsetForIndex(t,l));yt(c,this.getScrollOffset())||this.scrollToIndex(t,{align:l,behavior:o})}else this.scrollToIndex(t,{align:l,behavior:o})}))},this.scrollBy=(t,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var t;const a=this.getMeasurements();let o;return a.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((t=a[a.length-1])==null?void 0:t.end)??0:Math.max(...a.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:a,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(s)}}const Ge=(e,s,t,a)=>{for(;e<=s;){const o=(e+s)/2|0,i=t(o);if(i<a)e=o+1;else if(i>
4a)s=o-1;else return o}return e>0?e-1:0};function Lt({measurements:e,outerSize:s,scrollOffset:t}){const a=e.length-1,i=Ge(0,a,l=>e[l].start,t);let n=i;for(;n<a&&e[n].end<t+s;)n++;return{startIndex:i,endIndex:n}}function Mt(e){const s=new Tt(b(e)),t=rt(s),a=s._didMount();return Z(()=>b(e).getScrollElement(),o=>{o&&s._willUpdate()},{immediate:!0}),Z(()=>b(e),o=>{s.setOptions({...o,onChange:(i,n)=>{var l;Te(t),(l=o.onChange)==null||l.call(o,i,n)}}),s._willUpdate(),Te(t)},{immediate:!0}),ut(a),t}function At(e){return Mt(O(()=>({observeElementRect:Ct,observeElementOffset:It,scrollToFn:Et,...b(e)})))}function kt(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(s=>setTimeout(()=>{throw s}))}function me(){let e=[],s={addEventListener(t,a,o,i){return t.addEventListener(a,o,i),s.add(()=>t.removeEventListener(a,o,i))},requestAnimationFrame(...t){let a=requestAnimationFrame(...t);s.add(()=>cancelAnimationFrame(a))},nextFrame(...t){s.requestAnimationFrame(()=>{s.requestAnimationFrame(...t)})},setTimeout(...t){let a=setTimeout(...t);s.add(()=>clearTimeout(a))},microTask(...t){let a={current:!0};return kt(()=>{a.current&&t[0]()}),s.add(()=>{a.current=!1})},style(t,a,o){let i=t.style.getPropertyValue(a);return Object.assign(t.style,{[a]:o}),this.add(()=>{Object.assign(t.style,{[a]:i})})},group(t){let a=me();return t(a),this.add(()=>a.dispose())},add(t){return e.push(t),()=>{let a=e.indexOf(t);if(a>=0)for(let o of e.splice(a,1))o()}},dispose(){for(let t of e.splice(0))t()}};return s}function Dt(){let e=me();return Oe(()=>e.dispose()),e}function Pt(){let e=Dt();return s=>{e.dispose(),e.nextFrame(s)}}var _t=Object.defineProperty,Ft=(e,s,t)=>s in e?_t(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,Ae=(e,s,t)=>(Ft(e,typeof s!="symbol"?s+"":s,t),t);class Vt{constructor(){Ae(this,"current",this.detect()),Ae(this,"currentId",0)}set(s){this.current!==s&&(this.currentId=0,this.current=s)}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 Ie=new Vt;function Re(e){if(Ie.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let s=I(e);if(s)return s.ownerDocument}return document}let ke=["[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 zt=(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))(zt||{}),$t=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))($t||{}),Bt=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Bt||{}),Ee=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ee||{});function Je(e,s=0){var t;return e===((t=Re(e))==null?void 0:t.body)?!1:j(s,{0(){return e.matches(ke)},1(){let a=e;for(;a!==null;){if(a.matches(ke))return!0;a=a.parentElement}return!1}})}var Nt=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Nt||{});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 Ze(e,s=t=>t){return e.slice().sort((t,a)=>{let o=s(t),i=s(a);if(o===null||i===null)return 0;let n=o.compareDocumentPosition(i);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function jt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ut(){return/Android/gi.test(window.navigator.userAgent)}function Qe(){return jt()||Ut()}function fe(e,s,t){Ie.isServer||te(a=>{document.addEventListener(e,s,t),a(()=>document.removeEventListener(e,s,t))})}function qt(e,s,t){Ie.isServer||te(a=>{window.addEventListener(e,s,t),a(()=>window.removeEventListener(e,s,t))})}function Ye(e,s,t=O(()=>!0)){function a(i,n){if(!t.value||i.defaultPrevented)return;let l=n(i);if(l===null||!l.getRootNode().contains(l))return;let p=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);
4for(let c of p){if(c===null)continue;let d=c instanceof HTMLElement?c:I(c);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!Je(l,Ee.Loose)&&l.tabIndex!==-1&&i.preventDefault(),s(i,l)}let o=A(null);fe("pointerdown",i=>{var n,l;t.value&&(o.value=((l=(n=i.composedPath)==null?void 0:n.call(i))==null?void 0:l[0])||i.target)},!0),fe("mousedown",i=>{var n,l;t.value&&(o.value=((l=(n=i.composedPath)==null?void 0:n.call(i))==null?void 0:l[0])||i.target)},!0),fe("click",i=>{Qe()||o.value&&(a(i,()=>o.value),o.value=null)},!0),fe("touchend",i=>a(i,()=>i.target instanceof HTMLElement?i.target:null),!0),qt("blur",i=>a(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function De(e){return[e.screenX,e.screenY]}function Xe(){let e=A([-1,-1]);return{wasMoved(s){let t=De(s);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(s){e.value=De(s)}}}function Ht({container:e,accept:s,walk:t,enabled:a}){te(()=>{let o=e.value;if(!o||a!==void 0&&!a.value)return;let i=Re(e);if(!i)return;let n=Object.assign(p=>s(p),{acceptNode:s}),l=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,n,!1);for(;l.nextNode();)t(l.currentNode)})}let et=Symbol("Context");var Y=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Y||{});function tt(){return be(et,null)}function nt(e){ge(et,e)}var ot=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(ot||{});function Wt(e){function s(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",s))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",s),s())}let ne=[];Wt(()=>{function e(s){s.target instanceof HTMLElement&&s.target!==document.body&&ne[0]!==s.target&&(ne.unshift(s.target),ne=ne.filter(t=>t!=null&&t.isConnected),ne.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Kt(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 Se(e,s){let t=s.resolveItems();if(t.length<=0)return null;let a=s.resolveActiveIndex(),o=a??-1;switch(e.focus){case 0:{for(let i=0;i<t.length;++i)if(!s.resolveDisabled(t[i],i,t))return i;return a}case 1:{o===-1&&(o=t.length);for(let i=o-1;i>=0;--i)if(!s.resolveDisabled(t[i],i,t))return i;return a}case 2:{for(let i=o+1;i<t.length;++i)if(!s.resolveDisabled(t[i],i,t))return i;return a}case 3:{for(let i=t.length-1;i>=0;--i)if(!s.resolveDisabled(t[i],i,t))return i;return a}case 4:{for(let i=0;i<t.length;++i)if(s.resolveId(t[i],i,t)===e.id)return i;return a}case 5:return null;default:Kt(e)}}var Gt={};function Jt(e,s){return e===s}var Zt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Zt||{}),Qt=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Qt||{}),Yt=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Yt||{});let lt=Symbol("ComboboxContext");function de(e){let s=be(lt,null);if(s===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,de),t}return s}let at=Symbol("VirtualContext"),Xt=H({name:"VirtualProvider",setup(e,{slots:s}){let t=de("VirtualProvider"),a=O(()=>{let l=I(t.optionsRef);if(!l)return{start:0,end:0};let p=window.getComputedStyle(l);return{start:parseFloat(p.paddingBlockStart||p.paddingTop),end:parseFloat(p.paddingBlockEnd||p.paddingBottom)}}),o=At(O(()=>({scrollPaddingStart:a.value.start,scrollPaddingEnd:a.value.end,count:t.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return I(t.optionsRef)},overscan:12}))),i=O(()=>{var l;return(l=t.virtual.value)==null?void 0:l.options}),n=A(0);return Z([i],()=>{n.value+=1}),ge(at,t.virtual.value?o:null),()=>[ue("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&Gt.JEST_WORKER_ID!==void 0||t.activationTrigger.value===0)return;t.activeOptionIndex.value!==null&&t.virtual.value.options.length>t.activeOptionIndex.value&&o.value.scrollToIndex(t.activeOptionIndex.value)}}}
4,o.value.getVirtualItems().map(l=>dt(s.default({option:t.virtual.value.options[l.index],open:t.comboboxState.value===0})[0],{key:`${n.value}-${l.index}`,"data-index":l.index,"aria-setsize":t.virtual.value.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}})))]}}),en=H({name:"Combobox",emits:{"update:modelValue":e=>!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(e,{slots:s,attrs:t,emit:a}){let o=A(1),i=A(null),n=A(null),l=A(null),p=A(null),c=A({static:!1,hold:!1}),d=A([]),u=A(null),r=A(2),y=A(!1);function E(m=x=>x){let x=u.value!==null?d.value[u.value]:null,T=m(d.value.slice()),M=T.length>0&&T[0].dataRef.order.value!==null?T.sort(($,G)=>$.dataRef.order.value-G.dataRef.order.value):Ze(T,$=>I($.dataRef.domRef)),V=x?M.indexOf(x):null;return V===-1&&(V=null),{options:M,activeOptionIndex:V}}let g=O(()=>e.multiple?1:0),F=O(()=>e.nullable),[D,w]=Ve(O(()=>e.modelValue),m=>a("update:modelValue",m),O(()=>e.defaultValue)),f=O(()=>D.value===void 0?j(g.value,{1:[],0:void 0}):D.value),S=null,v=null;function C(m){return j(g.value,{0(){return w==null?void 0:w(m)},1:()=>{let x=N(h.value.value).slice(),T=N(m),M=x.findIndex(V=>h.compare(T,N(V)));return M===-1?x.push(T):x.splice(M,1),w==null?void 0:w(x)}})}let R=O(()=>{});Z([R],([m],[x])=>{if(h.virtual.value&&m&&x&&u.value!==null){let T=m.indexOf(x[u.value]);T!==-1?u.value=T:u.value=null}});let h={comboboxState:o,value:f,mode:g,compare(m,x){if(typeof e.by=="string"){let T=e.by;return(m==null?void 0:m[T])===(x==null?void 0:x[T])}return e.by===null?Jt(m,x):e.by(m,x)},calculateIndex(m){return h.virtual.value?e.by===null?h.virtual.value.options.indexOf(m):h.virtual.value.options.findIndex(x=>h.compare(x,m)):d.value.findIndex(x=>h.compare(x.dataRef.value,m))},defaultValue:O(()=>e.defaultValue),nullable:F,immediate:O(()=>!1),virtual:O(()=>null),inputRef:n,labelRef:i,buttonRef:l,optionsRef:p,disabled:O(()=>e.disabled),options:d,change(m){w(m)},activeOptionIndex:O(()=>{if(y.value&&u.value===null&&(h.virtual.value?h.virtual.value.options.length>0:d.value.length>0)){if(h.virtual.value){let x=h.virtual.value.options.findIndex(T=>{var M;return!((M=h.virtual.value)!=null&&M.disabled(T))});if(x!==-1)return x}let m=d.value.findIndex(x=>!x.dataRef.disabled);if(m!==-1)return m}return u.value}),activationTrigger:r,optionsPropsRef:c,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,u.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(h.value.value){let m=h.calculateIndex(h.value.value);m!==-1&&(u.value=m)}o.value=0}},setActivationTrigger(m){r.value=m},goToOption(m,x,T){y.value=!1,S!==null&&cancelAnimationFrame(S),S=requestAnimationFrame(()=>{if(e.disabled||p.value&&!c.value.static&&o.value===1)return;if(h.virtual.value){u.value=m===k.Specific?x:Se({focus:m},{resolveItems:()=>h.virtual.value.options,resolveActiveIndex:()=>{var $,G;return(G=($=h.activeOptionIndex.value)!=null?$:h.virtual.value.options.findIndex(ae=>{var ce;return!((ce=h.virtual.value)!=null&&ce.disabled(ae))}))!=null?G:null},resolveDisabled:$=>h.virtual.value.disabled($),resolveId(){throw new Error("Function not implemented.")}}),r.value=T??2;return}let M=E();if(M.activeOptionIndex===null){let $=M.options.findIndex(G=>!G.dataRef.disabled);$!==-1&&(M.activeOptionIndex=$)}let V=m===k.Specific?x:Se({focus:m},{resolveItems:()=>M.options,resolveActiveIndex:()=>M.activeOptionIndex,resolveId:$=>$.id,resolveDisabled:$=>$.dataRef.disabled});u.value=V,r.value=T??2,d.value=M.options})},selectOption(m){let x=d.value.find(M=>M.id===m);if(!x)return;let{dataRef:T}=x;C(T.value)},selectActiveOption(){if(h.activeOptionIndex.value!==null){if(h.virtual.value)C(h.virtual.value.options[h.activeOptionIndex.value]);else{let{dataRef:m}=d.value[h.activeOptionIndex.value];C(m.value)}h.goToOption(k.Specific,h.activeOptionIndex.value)}},registerOption(m,x){let T=Ue({id:m,dataRef:x});if(h.virtual.value){d.value.push(T);return}v&&cancelAnimationFrame(v);let M=E(V=>(V.push(T),V));u.value===null&&h.isSelected(x.value.value)&&(M.activeOptionIndex=M.options.indexOf(T)),d.value=M.options,u.value=M.activeOptionIndex,r.value=2,M.options.some(V=>!I(V.dataRef.domRef))&&(v=requestAnimationFrame(()=>{let V=E();d.value=V.options,u.value=V.activeOptionIndex}))},unregisterOption(m,x){if(S!==null&&cancelAnimationFrame(S),x&&(y.value=!0),h.virtual.value){d.value=d.value.filter(M=>M.id!==m);return}let T=E(M=>{let V=M.findIndex($=>$.id===m);return V!==-1&&M.splice(V,1),M});d.value=T.options,u.value=T.activeOptionIndex,r.value=2},isSelected(m){return j(g.value,{0:()=>h.compare(N(h.value.value),N(m)),1:()=>N(h.value.value).some(x=>h.compare(N(x),N(m)))})},isActive(m){return u.value===h.calculateIndex(m)}};Ye([n,l,p],()=>h.closeCombobox(),O(()=>o.value===0)),ge(lt,h),nt(O(()=>j(o.value,{0:Y.Open,1:Y.Closed})));let L=O(()=>{var m;return(m=I(n))==null?void 0:m.closest("form")});return oe(()=>{Z([L],()=>{if(!L.value||e.defaultValue===void 0)return;function m(){h.change(e.defaultValue)}return L.value.addEventListener("reset",m),()=>{var x;(x=L.value)==null||x.removeEventListener("reset",m)}},{immediate:!0})}),()=>{var m,x,T;let{name:M,disabled:V,form:$,...G}=e,ae={open:o.value===0,disabled:V,activeIndex:h.activeOptionIndex.value,activeOption:h.activeOptionIndex.value===null?null:h.virtual.value?h.virtual.value.options[(m=h.activeOptionIndex.value)!=null?m:0]:(T=(x=h.options.value[h.activeOptionIndex.value])==null?void 0:x.dataRef.value)!=null?T:null,value:f.value};return ue(ve,[...M!=null&&f.value!=null?ze({[M]:f.value}).map(([ce,st])=>ue($e,Be({features:Ne.Hidden,key:ce,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:$,disabled:V,name:ce,value:st}))):[],X({theirProps:{...t,...he(G,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:ae,slots:s,attrs:t,name:"Combobox"})])}}}),tn=H({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:s,slots:t,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-combobox-button-${le()}`,n=de("ComboboxButton");a({el:n.buttonRef,$el:n.buttonRef});function l(d){n.disabled.value||(n.comboboxState.value===0?n.closeCombobox():(d.preventDefault(),n.openCombobox()),U(()=>{var u;return(u=I(n.inputRef))==null?void 0:u.focus({preventScroll:!0})}
4))}function p(d){switch(d.key){case P.ArrowDown:d.preventDefault(),d.stopPropagation(),n.comboboxState.value===1&&n.openCombobox(),U(()=>{var u;return(u=n.inputRef.value)==null?void 0:u.focus({preventScroll:!0})});return;case P.ArrowUp:d.preventDefault(),d.stopPropagation(),n.comboboxState.value===1&&(n.openCombobox(),U(()=>{n.value.value||n.goToOption(k.Last)})),U(()=>{var u;return(u=n.inputRef.value)==null?void 0:u.focus({preventScroll:!0})});return;case P.Escape:if(n.comboboxState.value!==0)return;d.preventDefault(),n.optionsRef.value&&!n.optionsPropsRef.value.static&&d.stopPropagation(),n.closeCombobox(),U(()=>{var u;return(u=n.inputRef.value)==null?void 0:u.focus({preventScroll:!0})});return}}let c=je(O(()=>({as:e.as,type:s.type})),n.buttonRef);return()=>{var d,u;let r={open:n.comboboxState.value===0,disabled:n.disabled.value,value:n.value.value},{...y}=e,E={ref:n.buttonRef,id:i,type:c.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(d=I(n.optionsRef))==null?void 0:d.id,"aria-expanded":n.comboboxState.value===0,"aria-labelledby":n.labelRef.value?[(u=I(n.labelRef))==null?void 0:u.id,i].join(" "):void 0,disabled:n.disabled.value===!0?!0:void 0,onKeydown:p,onClick:l};return X({ourProps:E,theirProps:y,slot:r,attrs:s,slots:t,name:"ComboboxButton"})}}}),nn=H({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:e=>!0},setup(e,{emit:s,attrs:t,slots:a,expose:o}){var i;let n=(i=e.id)!=null?i:`headlessui-combobox-input-${le()}`,l=de("ComboboxInput"),p=O(()=>Re(I(l.inputRef))),c={value:!1};o({el:l.inputRef,$el:l.inputRef});function d(){l.change(null);let v=I(l.optionsRef);v&&(v.scrollTop=0),l.goToOption(k.Nothing)}let u=O(()=>{var v;let C=l.value.value;return I(l.inputRef)?typeof e.displayValue<"u"&&C!==void 0?(v=e.displayValue(C))!=null?v:"":typeof C=="string"?C:"":""});oe(()=>{Z([u,l.comboboxState,p],([v,C],[R,h])=>{if(c.value)return;let L=I(l.inputRef);L&&((h===0&&C===1||v!==R)&&(L.value=v),requestAnimationFrame(()=>{var m;if(c.value||!L||((m=p.value)==null?void 0:m.activeElement)!==L)return;let{selectionStart:x,selectionEnd:T}=L;Math.abs((T??0)-(x??0))===0&&x===0&&L.setSelectionRange(L.value.length,L.value.length)}))},{immediate:!0}),Z([l.comboboxState],([v],[C])=>{if(v===0&&C===1){if(c.value)return;let R=I(l.inputRef);if(!R)return;let h=R.value,{selectionStart:L,selectionEnd:m,selectionDirection:x}=R;R.value="",R.value=h,x!==null?R.setSelectionRange(L,m,x):R.setSelectionRange(L,m)}})});let r=A(!1);function y(){r.value=!0}function E(){me().nextFrame(()=>{r.value=!1})}let g=Pt();function F(v){switch(c.value=!0,g(()=>{c.value=!1}),v.key){case P.Enter:if(c.value=!1,l.comboboxState.value!==0||r.value)return;if(v.preventDefault(),v.stopPropagation(),l.activeOptionIndex.value===null){l.closeCombobox();return}l.selectActiveOption(),l.mode.value===0&&l.closeCombobox();break;case P.ArrowDown:return c.value=!1,v.preventDefault(),v.stopPropagation(),j(l.comboboxState.value,{0:()=>l.goToOption(k.Next),1:()=>l.openCombobox()});case P.ArrowUp:return c.value=!1,v.preventDefault(),v.stopPropagation(),j(l.comboboxState.value,{0:()=>l.goToOption(k.Previous),1:()=>{l.openCombobox(),U(()=>{l.value.value||l.goToOption(k.Last)})}});case P.Home:if(v.shiftKey)break;return c.value=!1,v.preventDefault(),v.stopPropagation(),l.goToOption(k.First);case P.PageUp:return c.value=!1,v.preventDefault(),v.stopPropagation(),l.goToOption(k.First);case P.End:if(v.shiftKey)break;return c.value=!1,v.preventDefault(),v.stopPropagation(),l.goToOption(k.Last);case P.PageDown:return c.value=!1,v.preventDefault(),v.stopPropagation(),l.goToOption(k.Last);case P.Escape:if(c.value=!1,l.comboboxState.value!==0)return;v.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&v.stopPropagation(),l.nullable.value&&l.mode.value===0&&l.value.value===null&&d(),l.closeCombobox();break;case P.Tab:if(c.value=!1,l.comboboxState.value!==0)return;l.mode.value===0&&l.activationTrigger.value!==1&&l.selectActiveOption(),l.closeCombobox();break}}function D(v){s("change",v),l.nullable.value&&l.mode.value===0&&v.target.value===""&&d(),l.openCombobox()}
4function w(v){var C,R,h;let L=(C=v.relatedTarget)!=null?C:ne.find(m=>m!==v.currentTarget);if(c.value=!1,!((R=I(l.optionsRef))!=null&&R.contains(L))&&!((h=I(l.buttonRef))!=null&&h.contains(L))&&l.comboboxState.value===0)return v.preventDefault(),l.mode.value===0&&(l.nullable.value&&l.value.value===null?d():l.activationTrigger.value!==1&&l.selectActiveOption()),l.closeCombobox()}function f(v){var C,R,h;let L=(C=v.relatedTarget)!=null?C:ne.find(m=>m!==v.currentTarget);(R=I(l.buttonRef))!=null&&R.contains(L)||(h=I(l.optionsRef))!=null&&h.contains(L)||l.disabled.value||l.immediate.value&&l.comboboxState.value!==0&&(l.openCombobox(),me().nextFrame(()=>{l.setActivationTrigger(1)}))}let S=O(()=>{var v,C,R,h;return(h=(R=(C=e.defaultValue)!=null?C:l.defaultValue.value!==void 0?(v=e.displayValue)==null?void 0:v.call(e,l.defaultValue.value):null)!=null?R:l.defaultValue.value)!=null?h:""});return()=>{var v,C,R,h,L,m,x;let T={open:l.comboboxState.value===0},{displayValue:M,onChange:V,...$}=e,G={"aria-controls":(v=l.optionsRef.value)==null?void 0:v.id,"aria-expanded":l.comboboxState.value===0,"aria-activedescendant":l.activeOptionIndex.value===null?void 0:l.virtual.value?(C=l.options.value.find(ae=>!l.virtual.value.disabled(ae.dataRef.value)&&l.compare(ae.dataRef.value,l.virtual.value.options[l.activeOptionIndex.value])))==null?void 0:C.id:(R=l.options.value[l.activeOptionIndex.value])==null?void 0:R.id,"aria-labelledby":(m=(h=I(l.labelRef))==null?void 0:h.id)!=null?m:(L=I(l.buttonRef))==null?void 0:L.id,"aria-autocomplete":"list",id:n,onCompositionstart:y,onCompositionend:E,onKeydown:F,onInput:D,onFocus:f,onBlur:w,role:"combobox",type:(x=t.type)!=null?x:"text",tabIndex:0,ref:l.inputRef,defaultValue:S.value,disabled:l.disabled.value===!0?!0:void 0};return X({ourProps:G,theirProps:$,slot:T,attrs:t,slots:a,features:re.RenderStrategy|re.Static,name:"ComboboxInput"})}}}),on=H({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(e,{attrs:s,slots:t,expose:a}){let o=de("ComboboxOptions"),i=`headlessui-combobox-options-${le()}`;a({el:o.optionsRef,$el:o.optionsRef}),te(()=>{o.optionsPropsRef.value.static=e.static}),te(()=>{o.optionsPropsRef.value.hold=e.hold});let n=tt(),l=O(()=>n!==null?(n.value&Y.Open)===Y.Open:o.comboboxState.value===0);Ht({container:O(()=>I(o.optionsRef)),enabled:O(()=>o.comboboxState.value===0),accept(c){return c.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:c.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(c){c.setAttribute("role","none")}});function p(c){c.preventDefault()}return()=>{var c,d,u;let r={open:o.comboboxState.value===0},y={"aria-labelledby":(u=(c=I(o.labelRef))==null?void 0:c.id)!=null?u:(d=I(o.buttonRef))==null?void 0:d.id,id:i,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:p},E=he(e,["hold"]);return X({ourProps:y,theirProps:E,slot:r,attrs:s,slots:o.virtual.value&&o.comboboxState.value===0?{...t,default:()=>[ue(Xt,{},t.default)]}:t,features:re.RenderStrategy|re.Static,visible:l.value,name:"ComboboxOptions"})}}}),ln=H({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(e,{slots:s,attrs:t,expose:a}){let o=de("ComboboxOption"),i=`headlessui-combobox-option-${le()}`,n=A(null),l=O(()=>e.disabled);a({el:n,$el:n});let p=O(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===i}),c=O(()=>o.isSelected(e.value)),d=be(at,null),u=O(()=>({disabled:e.disabled,value:e.value,domRef:n,order:O(()=>e.order)}));oe(()=>o.registerOption(i,u)),Oe(()=>o.unregisterOption(i,p.value)),te(()=>{let w=I(n);w&&(d==null||d.value.measureElement(w))}),te(()=>{o.comboboxState.value===0&&p.value&&(o.virtual.value||o.activationTrigger.value!==0&&U(()=>{var w,f;return(f=(w=I(n))==null?void 0:w.scrollIntoView)==null?void 0:f.call(w,{block:"nearest"})}))});function r(w){w.preventDefault(),w.button===ot.Left&&(l.value||(o.selectOption(i),Qe()||requestAnimationFrame(()=>{var f;return(f=I(o.inputRef))==null?void 0:f.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption(k.Nothing);let f=o.calculateIndex(e.value);o.goToOption(k.Specific,f)}let E=Xe();function g(w){E.update(w)}function F(w){var f;if(!E.wasMoved(w)||e.disabled||(f=o.virtual.value)!=null&&f.disabled(e.value)||p.value)return;let S=o.calculateIndex(e.value);o.goToOption(k.Specific,S,0)}function D(w){var f;E.wasMoved(w)&&(e.disabled||(f=o.virtual.value)!=null&&f.disabled(e.value)||p.value&&(o.optionsPropsRef.value.hold||o.goToOption(k.Nothing)))}return()=>{let{disabled:w}=e,f={active:p.value,selected:c.value,disabled:w},S={id:i,ref:n,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onMousedown:r,onFocus:y,onPointerenter:g,onMouseenter:g,onPointermove:F,onMousemove:F,onPointerleave:D,onMouseleave:D},v=he(e,["order","value"]);
4return X({ourProps:S,theirProps:v,slot:f,attrs:t,slots:s,name:"ComboboxOption"})}}}),Pe=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function _e(e){var s,t;let a=(s=e.innerText)!=null?s:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return a;let i=!1;for(let l of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let n=i?(t=o.innerText)!=null?t:"":a;return Pe.test(n)&&(n=n.replace(Pe,"")),n}function an(e){let s=e.getAttribute("aria-label");if(typeof s=="string")return s.trim();let t=e.getAttribute("aria-labelledby");if(t){let a=t.split(" ").map(o=>{let i=document.getElementById(o);if(i){let n=i.getAttribute("aria-label");return typeof n=="string"?n.trim():_e(i).trim()}return null}).filter(Boolean);if(a.length>0)return a.join(", ")}return _e(e).trim()}function sn(e){let s=A(""),t=A("");return()=>{let a=I(e);if(!a)return"";let o=a.innerText;if(s.value===o)return t.value;let i=an(a).trim().toLowerCase();return s.value=o,t.value=i,i}}function rn(e,s){return e===s}var un=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(un||{}),dn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(dn||{}),cn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(cn||{});function pn(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let it=Symbol("ListboxContext");function xe(e){let s=be(it,null);if(s===null){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,xe),t}return s}let vn=H({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>rn},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:s,attrs:t,emit:a}){let o=A(1),i=A(null),n=A(null),l=A(null),p=A([]),c=A(""),d=A(null),u=A(1);function r(f=S=>S){let S=d.value!==null?p.value[d.value]:null,v=Ze(f(p.value.slice()),R=>I(R.dataRef.domRef)),C=S?v.indexOf(S):null;return C===-1&&(C=null),{options:v,activeOptionIndex:C}}let y=O(()=>e.multiple?1:0),[E,g]=Ve(O(()=>e.modelValue),f=>a("update:modelValue",f),O(()=>e.defaultValue)),F=O(()=>E.value===void 0?j(y.value,{1:[],0:void 0}):E.value),D={listboxState:o,value:F,mode:y,compare(f,S){if(typeof e.by=="string"){let v=e.by;return(f==null?void 0:f[v])===(S==null?void 0:S[v])}return e.by(f,S)},orientation:O(()=>e.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:n,optionsRef:l,disabled:O(()=>e.disabled),options:p,searchQuery:c,activeOptionIndex:d,activationTrigger:u,closeListbox(){e.disabled||o.value!==1&&(o.value=1,d.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(f,S,v){if(e.disabled||o.value===1)return;let C=r(),R=Se(f===k.Specific?{focus:k.Specific,id:S}:{focus:f},{resolveItems:()=>C.options,resolveActiveIndex:()=>C.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.disabled});c.value="",d.value=R,u.value=v??1,p.value=C.options},search(f){if(e.disabled||o.value===1)return;let S=c.value!==""?0:1;c.value+=f.toLowerCase();let v=(d.value!==null?p.value.slice(d.value+S).concat(p.value.slice(0,d.value+S)):p.value).find(R=>R.dataRef.textValue.startsWith(c.value)&&!R.dataRef.disabled),C=v?p.value.indexOf(v):-1;C===-1||C===d.value||(d.value=C,u.value=1)},clearSearch(){e.disabled||o.value!==1&&c.value!==""&&(c.value="")},registerOption(f,S){let v=r(C=>[...C,{id:f,dataRef:S}]);p.value=v.options,d.value=v.activeOptionIndex},unregisterOption(f){let S=r(v=>{let C=v.findIndex(R=>R.id===f);return C!==-1&&v.splice(C,1),v});p.value=S.options,d.value=S.activeOptionIndex,u.value=1},theirOnChange(f){e.disabled||g(f)},select(f){e.disabled||g(j(y.value,{0:()=>f,1:()=>{let S=N(D.value.value).slice(),v=N(f),C=S.findIndex(R=>D.compare(v,N(R)));return C===-1?S.push(v):S.splice(C,1),S}}))}};Ye([n,l],(f,S)=>{var v;D.closeListbox(),Je(S,Ee.Loose)||(f.preventDefault(),(v=I(n))==null||v.focus())},O(()=>
4o.value===0)),ge(it,D),nt(O(()=>j(o.value,{0:Y.Open,1:Y.Closed})));let w=O(()=>{var f;return(f=I(n))==null?void 0:f.closest("form")});return oe(()=>{Z([w],()=>{if(!w.value||e.defaultValue===void 0)return;function f(){D.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",f),()=>{var S;(S=w.value)==null||S.removeEventListener("reset",f)}},{immediate:!0})}),()=>{let{name:f,modelValue:S,disabled:v,form:C,...R}=e,h={open:o.value===0,disabled:v,value:F.value};return ue(ve,[...f!=null&&F.value!=null?ze({[f]:F.value}).map(([L,m])=>ue($e,Be({features:Ne.Hidden,key:L,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:C,disabled:v,name:L,value:m}))):[],X({ourProps:{},theirProps:{...t,...he(R,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:h,slots:s,attrs:t,name:"Listbox"})])}}}),fn=H({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:s,slots:t,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-button-${le()}`,n=xe("ListboxButton");a({el:n.buttonRef,$el:n.buttonRef});function l(u){switch(u.key){case P.Space:case P.Enter:case P.ArrowDown:u.preventDefault(),n.openListbox(),U(()=>{var r;(r=I(n.optionsRef))==null||r.focus({preventScroll:!0}),n.value.value||n.goToOption(k.First)});break;case P.ArrowUp:u.preventDefault(),n.openListbox(),U(()=>{var r;(r=I(n.optionsRef))==null||r.focus({preventScroll:!0}),n.value.value||n.goToOption(k.Last)});break}}function p(u){switch(u.key){case P.Space:u.preventDefault();break}}function c(u){n.disabled.value||(n.listboxState.value===0?(n.closeListbox(),U(()=>{var r;return(r=I(n.buttonRef))==null?void 0:r.focus({preventScroll:!0})}
4)):(u.preventDefault(),n.openListbox(),pn(()=>{var r;return(r=I(n.optionsRef))==null?void 0:r.focus({preventScroll:!0})})))}let d=je(O(()=>({as:e.as,type:s.type})),n.buttonRef);return()=>{var u,r;let y={open:n.listboxState.value===0,disabled:n.disabled.value,value:n.value.value},{...E}=e,g={ref:n.buttonRef,id:i,type:d.value,"aria-haspopup":"listbox","aria-controls":(u=I(n.optionsRef))==null?void 0:u.id,"aria-expanded":n.listboxState.value===0,"aria-labelledby":n.labelRef.value?[(r=I(n.labelRef))==null?void 0:r.id,i].join(" "):void 0,disabled:n.disabled.value===!0?!0:void 0,onKeydown:l,onKeyup:p,onClick:c};return X({ourProps:g,theirProps:E,slot:y,attrs:s,slots:t,name:"ListboxButton"})}}}),mn=H({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:s,slots:t,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-options-${le()}`,n=xe("ListboxOptions"),l=A(null);a({el:n.optionsRef,$el:n.optionsRef});function p(u){switch(l.value&&clearTimeout(l.value),u.key){case P.Space:if(n.searchQuery.value!=="")return u.preventDefault(),u.stopPropagation(),n.search(u.key);case P.Enter:if(u.preventDefault(),u.stopPropagation(),n.activeOptionIndex.value!==null){let r=n.options.value[n.activeOptionIndex.value];n.select(r.dataRef.value)}n.mode.value===0&&(n.closeListbox(),U(()=>{var r;return(r=I(n.buttonRef))==null?void 0:r.focus({preventScroll:!0})}
4));break;case j(n.orientation.value,{vertical:P.ArrowDown,horizontal:P.ArrowRight}):return u.preventDefault(),u.stopPropagation(),n.goToOption(k.Next);case j(n.orientation.value,{vertical:P.ArrowUp,horizontal:P.ArrowLeft}):return u.preventDefault(),u.stopPropagation(),n.goToOption(k.Previous);case P.Home:case P.PageUp:return u.preventDefault(),u.stopPropagation(),n.goToOption(k.First);case P.End:case P.PageDown:return u.preventDefault(),u.stopPropagation(),n.goToOption(k.Last);case P.Escape:u.preventDefault(),u.stopPropagation(),n.closeListbox(),U(()=>{var r;return(r=I(n.buttonRef))==null?void 0:r.focus({preventScroll:!0})});break;case P.Tab:u.preventDefault(),u.stopPropagation();break;default:u.key.length===1&&(n.search(u.key),l.value=setTimeout(()=>n.clearSearch(),350));break}}let c=tt(),d=O(()=>c!==null?(c.value&Y.Open)===Y.Open:n.listboxState.value===0);return()=>{var u,r;let y={open:n.listboxState.value===0},{...E}=e,g={"aria-activedescendant":n.activeOptionIndex.value===null||(u=n.options.value[n.activeOptionIndex.value])==null?void 0:u.id,"aria-multiselectable":n.mode.value===1?!0:void 0,"aria-labelledby":(r=I(n.buttonRef))==null?void 0:r.id,"aria-orientation":n.orientation.value,id:i,onKeydown:p,role:"listbox",tabIndex:0,ref:n.optionsRef};return X({ourProps:g,theirProps:E,slot:y,attrs:s,slots:t,features:re.RenderStrategy|re.Static,visible:d.value,name:"ListboxOptions"})}}}),hn=H({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:s,attrs:t,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-option-${le()}`,n=xe("ListboxOption"),l=A(null);a({el:l,$el:l});let p=O(()=>n.activeOptionIndex.value!==null?n.options.value[n.activeOptionIndex.value].id===i:!1),c=O(()=>j(n.mode.value,{0:()=>n.compare(N(n.value.value),N(e.value)),1:()=>N(n.value.value).some(f=>n.compare(N(f),N(e.value)))})),d=O(()=>j(n.mode.value,{1:()=>{var f;let S=N(n.value.value);return((f=n.options.value.find(v=>S.some(C=>n.compare(N(C),N(v.dataRef.value)))))==null?void 0:f.id)===i},0:()=>c.value})),u=sn(l),r=O(()=>({disabled:e.disabled,value:e.value,get textValue(){return u()},domRef:l}));oe(()=>n.registerOption(i,r)),Oe(()=>n.unregisterOption(i)),oe(()=>{Z([n.listboxState,c],()=>{n.listboxState.value===0&&c.value&&j(n.mode.value,{1:()=>{d.value&&n.goToOption(k.Specific,i)},0:()=>{n.goToOption(k.Specific,i)}})},{immediate:!0})}),te(()=>{n.listboxState.value===0&&p.value&&n.activationTrigger.value!==0&&U(()=>{var f,S;return(S=(f=I(l))==null?void 0:f.scrollIntoView)==null?void 0:S.call(f,{block:"nearest"})})});function y(f){if(e.disabled)return f.preventDefault();n.select(e.value),n.mode.value===0&&(n.closeListbox(),U(()=>{var S;return(S=I(n.buttonRef))==null?void 0:S.focus({preventScroll:!0})}
4))}function E(){if(e.disabled)return n.goToOption(k.Nothing);n.goToOption(k.Specific,i)}let g=Xe();function F(f){g.update(f)}function D(f){g.wasMoved(f)&&(e.disabled||p.value||n.goToOption(k.Specific,i,0))}function w(f){g.wasMoved(f)&&(e.disabled||p.value&&n.goToOption(k.Nothing))}return()=>{let{disabled:f}=e,S={active:p.value,selected:c.value,disabled:f},{value:v,disabled:C,...R}=e,h={id:i,ref:l,role:"option",tabIndex:f===!0?void 0:-1,"aria-disabled":f===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onClick:y,onFocus:E,onPointerenter:F,onMouseenter:F,onPointermove:D,onMousemove:D,onPointerleave:w,onMouseleave:w};return X({ourProps:h,theirProps:R,slot:S,attrs:t,slots:s,name:"ListboxOption"})}}});const bn=H({__name:"Select",props:{modelValue:{},optionList:{},placeholder:{default:"Select"},panelStyle:{default:""}},emits:["update:modelValue"],setup(e,{emit:s}){const t=e,a=s,o=O(()=>{var l;const n=t.optionList.find(p=>p.value==t.modelValue);return(l=n==null?void 0:n.name)!=null&&l.length?n.name:t.placeholder});function i(n){a("update:modelValue",n)}return(n,l)=>{const p=fn,c=hn,d=mn,u=vn;return q(),we(u,{as:"div","model-value":t.modelValue,class:"relative text-left text-[14px] leading-[20px]","onUpdate:modelValue":l[0]||(l[0]=r=>i(r))},{default:B(({open:r})=>[z(p,{class:se(["flex items-center p-[4px] w-full hover:bg-[#FFEDBA] border truncate",r?"rounded-t-[4px] border-b-transparent":"rounded-[4px]"])},{default:B(()=>[(q(),K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"7",viewBox:"0 0 9 7",fill:"none",class:se(["transition mr-[4px] shrink-0",r?"rotate-180":""])},l[1]||(l[1]=[_("path",{d:"M4.85452 6.61731C4.68776 6.858 4.33192 6.858 4.16517 6.61731L0.608148 1.48319C0.415481 1.2051 0.614511 0.82508 0.952822 0.82508L8.06687 0.825081C8.40518 0.825081 8.60421 1.2051 8.41154 1.48319L4.85452 6.61731Z",fill:"black"},null,-1)]),2)),pe(" "+W(b(o)),1)]),_:2},1032,["class"]),z(qe,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-out","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:B(()=>[z(d,{class:se(["absolute z-10 bg-white w-full px-[18px] py-[15px] border rounded-b-[4px] max-h-[260px] overflow-auto outline-0"]),style:He(t.panelStyle)},{default:B(()=>[(q(!0),K(ve,null,We(t.optionList,(y,E)=>(q(),we(c,{key:E,value:y.value,class:"w-full not-first:mt-[10px] hover:underline cursor-default"},{default:B(()=>[pe(W(y.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["model-value"])}}}),gn={key:0,class:"relative cursor-default select-none px-4 py-2 text-gray-700"},xn=H({__name:"Autocomplete",props:{modelValue:{},optionList:{},placeholder:{default:"Select"},panelStyle:{default:""}},emits:["update:modelValue"],setup(e,{emit:s}){const t=e,a=s,o=A(),i=A(""),n=A(!1),l=O(()=>{var u;return(u=i.value)!=null&&u.length?t.optionList.filter(r=>{const y=i.value.toLowerCase();return r.name.toLowerCase().includes(y)||String(r.value).toLowerCase().includes(y)}):t.optionList});function p(u){a("update:modelValue",u)}function c(){n.value=!n.value}Z(()=>t.modelValue,u=>{const r=t.optionList.find(y=>y.value==u);i.value=r?String(r.value):""},{immediate:!0});function d(u){var y;const r=u.target;(y=o.value)!=null&&y.contains(r)||(n.value=!1)}return oe(()=>{document.addEventListener("click",d)}),ct(()=>{document.removeEventListener("click",d)}),(u,r)=>{const y=tn,E=nn,g=ln,F=on,D=en;return q(),K("div",{ref_key:"wrapperRef",ref:o},[z(D,{as:"div",nullable:"","model-value":t.modelValue,class:se(["relative text-left text-[14px] leading-[20px] border rounded-[4px] hover:bg-[#FFEDBA]"]),"onUpdate:modelValue":r[3]||(r[3]=w=>p(w))},{default:B(()=>[z(y,{class:"absolute inset-y-0 left-[4px] flex items-center pr-[4px]",onClick:c},{default:B(()=>[(q(),K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"7",viewBox:"0 0 9 7",fill:"none",class:se(["transition",[b(n)?"rotate-180":""]])},r[4]||(r[4]=[_("path",{d:"M4.85452 6.61731C4.68776 6.858 4.33192 6.858 4.16517 6.61731L0.608148 1.48319C0.415481 1.2051 0.614511 0.82508 0.952822 0.82508L8.06687 0.825081C8.40518 0.825081 8.60421 1.2051 8.41154 1.48319L4.85452 6.61731Z",fill:"black"},null,-1)]),2))]),_:1}),z(E,{"display-value":()=>b(i),placeholder:t.placeholder,class:"flex-1 p-[4px] pl-[16px] min-w-0 outline-0 w-full truncate",onClick:r[0]||(r[0]=w=>n.value=!0),onChange:r[1]||(r[1]=w=>i.value=w.target.value)},null,8,["display-value","placeholder"]),z(qe,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-out","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:B(()=>[Q(z(F,{class:se(["absolute z-10 bg-white w-full px-[18px] py-[15px] border rounded-[4px] max-h-[260px] overflow-auto outline-0"]),style:He(t.panelStyle),static:"",onClickCapture:r[2]||(r[2]=w=>n.value=!1)},{default:B(()=>[b(l).length===0&&b(i)!==""?(q(),K("div",gn,W(u.$t("no-matching-data")),1)):Ce("",!0),(q(!0),K(ve,null,We(b(l),(w,f)=>(q(),we(g,{key:f,value:w.value,class:"w-full not-first:mt-[10px] hover:underline truncate"},{default:B(()=>[pe(W(w.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["style"]),[[pt,b(n)]])]),_:1})]),_:1},8,["model-value"])],512)}}}),yn={class:"w-[calc(50%-46px)] max-w-full max-md:w-full inline-flex items-center justify-between pb-[8px] border-b"},wn={class:"ld:mr-[20px] mr-[12px] lg:text-[20px] leading-[120%] shrink-0"},J=H({__name:"FormItem",props:{label:{},required:{type:Boolean}},setup(e){const s=e;return(t,a)=>(q(),K("div",yn,[_("span",wn,[pe(W(s.label),1),s.required?(q(),K(ve,{key:0},[pe("*")],64)):Ce("",!0)]),vt(t.$slots,"default")]))}}),Sn=e=>[{name:e("restaurant-chain"),id:"连锁餐饮"},{name:e("Retail"),id:"零售"}
4,{name:e("catering-hotel-resort"),id:"团餐/酒店及度假村"},{name:e("Others"),id:"其他"}],On=e=>[{name:e("Asian"),id:"亚洲餐"},{name:e("French/Italian"),id:"法餐/意大利餐"},{name:e("Latin-American-Cuisine"),id:"拉丁美洲餐"},{name:e("Others"),id:"其他"}],Cn=e=>[{name:e("Owner"),id:"业主"},{name:e("culinary-operation"),id:"餐饮运营"},{name:e("procurement-innovation"),id:"采购与创新"},{name:e("Others"),id:"其他"}],In=e=>[{name:e("north-america")+" "+e("showroom"),value:"北美"},{name:e("European")+" "+e("showroom"),value:"欧洲"},{name:e("Singapore")+" "+e("showroom"),value:"新加坡"},{name:e("Japan")+" "+e("showroom"),value:"日本"},{name:e("Korea")+" "+e("showroom"),value:"韩国"},{name:e("Oceania")+" "+e("showroom"),value:"大洋洲"},{name:e("southeast-asia")+" "+e("showroom"),value:"东南亚"},{name:e("hk-mc-tw")+" "+e("showroom"),value:"港澳台"},{name:e("china-mainland")+" "+e("showroom"),value:"中国大陆"},{name:e("Others"),value:"其他"}],Rn=[{en:"Angola",cn:"安哥拉",code:"+244"},{en:"Afghanistan",cn:"阿富汗",code:"+93"},{en:"Albania",cn:"阿尔巴尼亚",code:"+335"},{en:"Algeria",cn:"阿尔及利亚",code:"+213"},{en:"Andorra",cn:"安道尔共和国",code:"+376"},{en:"Anguilla",cn:"安圭拉岛",code:"+1254"},{en:"Antigua and Barbuda",cn:"安提瓜和巴布达",code:"+1268"},{en:"Argentina",cn:"阿根廷",code:"+54"},{en:"Armenia",cn:"亚美尼亚",code:"+374"},{en:"Aruba",cn:"阿鲁巴岛",code:"+297"},{en:"Ascension",cn:"阿森松",code:"+247"},{en:"Australia",cn:"澳大利亚",code:"+61"},{en:"Austria",cn:"奥地利",code:"+43"},{en:"Azerbaijan",cn:"阿塞拜疆",code:"+994"},{en:"Bahamas",cn:"巴哈马",code:"+1242"},{en:"Bahrain",cn:"巴林",code:"+973"},{en:"Bangladesh",cn:"孟加拉国",code:"+880"},{en:"Barbados",cn:"巴巴多斯",code:"+1246"},{en:"Belarus",cn:"白俄罗斯",code:"+375"},{en:"Belgium",cn:"比利时",code:"+32"},{en:"Belize",cn:"伯利兹",code:"+501"},{en:"Benin",cn:"贝宁",code:"+229"},{en:"Bermuda Is",cn:"百慕大群岛",code:"+1441"},{en:"Bhutan",cn:"不丹",code:"+975"},{en:"Bolivia",cn:"玻利维亚",code:"+591"},{en:"Bosnia And Herzegovina",cn:"波斯尼亚和黑塞哥维那",code:"+387"},{en:"Botswana",cn:"博茨瓦纳",code:"+267"},{en:"Brazil",cn:"巴西",code:"+55"},{en:"Brunei",cn:"文莱",code:"+673"},{en:"Bulgaria",cn:"保加利亚",code:"+359"},{en:"Burkina Faso",cn:"布基纳法索",code:"+226"},{en:"Burma",cn:"缅甸",code:"+95"},{en:"Burundi",cn:"布隆迪",code:"+257"},{en:"Cameroon",cn:"喀麦隆",code:"+237"},{en:"Canada",cn:"加拿大",code:"+1"},{en:"Cape Verde",cn:"佛得角",code:"+238"},{en:"Cayman Is",cn:"开曼群岛",code:"+1345"},{en:"Central African Republic",cn:"中非共和国",code:"+236"},{en:"Chad",cn:"乍得",code:"+235"},{en:"Chile",cn:"智利",code:"+56"},{en:"Mainland China",cn:"中国",code:"+86"},{en:"Colombia",cn:"哥伦比亚",code:"+57"},{en:"Congo",cn:"刚果",code:"+242"},{en:"Cook Is",cn:"库克群岛",code:"+682"},{en:"Costa Rica",cn:"哥斯达黎加",code:"+506"},{en:"Cyprus",cn:"塞浦路斯",code:"+357"},{en:"Czech Republic",cn:"捷克",code:"+420"},{en:"Republic of Croatia",cn:"克罗地亚共和国",code:"+385"},{en:"Denmark",cn:"丹麦",code:"+45"},{en:"Djibouti",cn:"吉布提",code:"+253"},{en:"Dominica Rep",cn:"多米尼加共和国",code:"+1890"},{en:"Ecuador",cn:"厄瓜多尔",code:"+593"},{en:"Egypt",cn:"埃及",code:"+20"},{en:"EI Salvador",cn:"萨尔瓦多",code:"+503"},{en:"Estonia",cn:"爱沙尼亚",code:"+372"},{en:"Ethiopia",cn:"埃塞俄比亚",code:"+251"},{en:"Fiji",cn:"斐济",code:"+679"},{en:"Finland",cn:"芬兰",code:"+358"},{en:"France",cn:"法国",code:"+33"},{en:"French Guiana",cn:"法属圭亚那",code:"+594"},{en:"French Polynesia",cn:"法属玻利尼西亚",code:"+689"},{en:"Gabon",cn:"加蓬",code:"+241"},{en:"Gambia",cn:"冈比亚",code:"+220"},{en:"Georgia",cn:"格鲁吉亚",code:"+995"},{en:"Germany",cn:"德国",code:"+49"},{en:"Ghana",cn:"加纳",code:"+233"},{en:"Gibraltar",cn:"直布罗陀",code:"+350"},{en:"Greece",cn:"希腊",code:"+30"},{en:"Grenada",cn:"格林纳达",code:"+1809"},{en:"Guam",cn:"关岛",code:"+1671"},{en:"Guatemala",cn:"危地马拉",code:"+502"},{en:"Guinea",cn:"几内亚",code:"+224"},{en:"Guyana",cn:"圭亚那",code:"+592"},{en:"Haiti",cn:"海地",code:"+509"},{en:"Honduras",cn:"洪都拉斯",code:"+504"},{en:"Hongkong China",cn:"香港",code:"+852"},{en:"Hungary",cn:"匈牙利",code:"+36"},{en:"Iceland",cn:"冰岛",code:"+354"},{en:"India",cn:"印度",code:"+91"},{en:"Indonesia",cn:"印度尼西亚",code:"+62"},{en:"Iraq",cn:"伊拉克",code:"+964"},{en:"Ireland",cn:"爱尔兰",code:"+353"},{en:"Israel",cn:"以色列",code:"+972"},{en:"Italy",cn:"意大利",code:"+39"},{en:"Ivory Coast",cn:"科特迪瓦",code:"+225"},{en:"Jamaica",cn:"牙买加",code:"+1876"},{en:"Japan",cn:"日本",code:"+81"},{en:"Jordan",cn:"约旦",code:"+962"},{en:"Cambodia",cn:"柬埔寨",code:"+855"},{en:"Kazakhstan",cn:"哈萨克斯坦",code:"+327"},{en:"Kenya",cn:"肯尼亚",code:"+254"},{en:"Korea",cn:"韩国",code:"+82"},{en:"Kuwait",cn:"科威特",code:"+965"},{en:"Kyrgyzstan",cn:"吉尔吉斯坦",code:"+331"},{en:"Laos",cn:"老挝",code:"+856"},{en:"Latvia",cn:"拉脱维亚",code:"+371"},{en:"Lebanon",cn:"黎巴嫩",code:"+961"},{en:"Lesotho",cn:"莱索托",code:"+266"},{en:"Liberia",cn:"利比里亚",code:"+231"},{en:"Libya",cn:"利比亚",code:"+218"},{en:"Liechtenstein",cn:"列支敦士登",code:"+423"},{en:"Lithuania",cn:"立陶宛",code:"+370"},{en:"Luxembourg",cn:"卢森堡",code:"+352"},{en:"Macau China",cn:"澳门",code:"+853"},{en:"Madagascar",cn:"马达加斯加",code:"+261"},{en:"Malawi",cn:"马拉维",code:"+265"},{en:"Malaysia",cn:"马来西亚",code:"+60"},{en:"Maldives",cn:"马尔代夫",code:"+960"},{en:"Mali",cn:"马里",code:"+223"},{en:"Malta",cn:"马耳他",code:"+356"},{en:"Mariana Is",cn:"马里亚那群岛",code:"+1670"},{en:"Martinique",cn:"马提尼克",code:"+596"},{en:"Mauritius",cn:"毛里求斯",code:"+230"}
4,{en:"Mexico",cn:"墨西哥",code:"+52"},{en:"Moldova",cn:"摩尔多瓦",code:"+373"},{en:"Monaco",cn:"摩纳哥",code:"+377"},{en:"Mongolia",cn:"蒙古",code:"+976"},{en:"Montserrat Is",cn:"蒙特塞拉特岛",code:"+1664"},{en:"Morocco",cn:"摩洛哥",code:"+212"},{en:"Mozambique",cn:"莫桑比克",code:"+258"},{en:"Namibia",cn:"纳米比亚",code:"+264"},{en:"Nauru",cn:"瑙鲁",code:"+674"},{en:"Nepal",cn:"尼泊尔",code:"+977"},{en:"Netheriands Antilles",cn:"荷属安的列斯",code:"+599"},{en:"Netherlands",cn:"荷兰",code:"+31"},{en:"New Zealand",cn:"新西兰",code:"+64"},{en:"Nicaragua",cn:"尼加拉瓜",code:"+505"},{en:"Niger",cn:"尼日尔",code:"+227"},{en:"Nigeria",cn:"尼日利亚",code:"+234"},{en:"Norway",cn:"挪威",code:"+47"},{en:"Oman",cn:"阿曼",code:"+968"},{en:"Pakistan",cn:"巴基斯坦",code:"+92"},{en:"Panama",cn:"巴拿马",code:"+507"},{en:"Papua New Cuinea",cn:"巴布亚新几内亚",code:"+675"},{en:"Paraguay",cn:"巴拉圭",code:"+595"},{en:"Peru",cn:"秘鲁",code:"+51"},{en:"Philippines",cn:"菲律宾",code:"+63"},{en:"Poland",cn:"波兰",code:"+48"},{en:"Portugal",cn:"葡萄牙",code:"+351"},{en:"Puerto Rico",cn:"波多黎各",code:"+1787"},{en:"Qatar",cn:"卡塔尔",code:"+974"},{en:"Reunion",cn:"留尼旺",code:"+262"},{en:"Romania",cn:"罗马尼亚",code:"+40"},{en:"Russia",cn:"俄罗斯",code:"+7"},{en:"Saint Vincent",cn:"圣文森特岛",code:"+1784"},{en:"Samoa Eastern",cn:"东萨摩亚(美)",code:"+684"},{en:"Samoa Western",cn:"西萨摩亚",code:"+685"},{en:"San Marino",cn:"圣马力诺",code:"+378"},{en:"Sao Tome and Principe",cn:"圣多美和普林西比",code:"+239"},{en:"Saudi Arabia",cn:"沙特阿拉伯",code:"+966"},{en:"Senegal",cn:"塞内加尔",code:"+221"},{en:"Seychelles",cn:"塞舌尔",code:"+248"},{en:"Sierra Leone",cn:"塞拉利昂",code:"+232"},{en:"Singapore",cn:"新加坡",code:"+65"},{en:"Slovakia",cn:"斯洛伐克",code:"+421"},{en:"Slovenia",cn:"斯洛文尼亚",code:"+386"},{en:"Solomon Is",cn:"所罗门群岛",code:"+677"},{en:"Somali",cn:"索马里",code:"+252"},{en:"South Africa",cn:"南非",code:"+27"},{en:"Spain",cn:"西班牙",code:"+34"},{en:"SriLanka",cn:"斯里兰卡",code:"+94"},{en:"Saint Lucia",cn:"圣卢西亚",code:"+1758"}
4,{en:"St.Vincent",cn:"圣文森特",code:"+1784"},{en:"Sudan",cn:"苏丹",code:"+249"},{en:"Suriname",cn:"苏里南",code:"+597"},{en:"Swaziland",cn:"斯威士兰",code:"+268"},{en:"Sweden",cn:"瑞典",code:"+46"},{en:"Switzerland",cn:"瑞士",code:"+41"},{en:"Taiwan China",cn:"台湾省",code:"+886"},{en:"Tajikstan",cn:"塔吉克斯坦",code:"+992"},{en:"Tanzania",cn:"坦桑尼亚",code:"+255"},{en:"Thailand",cn:"泰国",code:"+66"},{en:"Togo",cn:"多哥",code:"+228"},{en:"Tonga",cn:"汤加",code:"+676"},{en:"Trinidad and Tobago",cn:"特立尼达和多巴哥",code:"+1809"},{en:"Tunisia",cn:"突尼斯",code:"+216"},{en:"Turkey",cn:"土耳其",code:"+90"},{en:"Turkmenistan",cn:"土库曼斯坦",code:"+993"},{en:"Uganda",cn:"乌干达",code:"+256"},{en:"Ukraine",cn:"乌克兰",code:"+380"},{en:"United Arab Emirates",cn:"阿拉伯联合酋长国",code:"+971"},{en:"United Kingdom",cn:"英国",code:"+44"},{en:"United States",cn:"美国",code:"+1"},{en:"Uruguay",cn:"乌拉圭",code:"+598"},{en:"Uzbekistan",cn:"乌兹别克斯坦",code:"+998"},{en:"Venezuela",cn:"委内瑞拉",code:"+58"},{en:"Vietnam",cn:"越南",code:"+84"},{en:"Yemen",cn:"也门",code:"+967"},{en:"Yugoslavia",cn:"南斯拉夫",code:"+381"},{en:"Zimbabwe",cn:"津巴布韦",code:"+263"},{en:"Zaire",cn:"扎伊尔",code:"+243"},{en:"Zambia",cn:"赞比亚",code:"+260"}];function En(e){window[`ga-disable-${e}`]=!0}function Tn(e){const s=`ga-disable-${e}`;s in window&&delete window[s]}function Ln(){const e=ft().public.gtag,s=mt(e);let t;t=xt;const a=l=>{const p=[...s];let c=p.find(d=>d.id===l);return c||(l?(c={id:l},p.unshift(c)):c=p[0]),c||console.error("[nuxt-gtag] Missing Google tag ID"),{tag:c,tags:p}},o=l=>{{const{tag:p,tags:c}=a(l);if(!p)return;window.dataLayer||ht({tags:c}),document.head.querySelector("script[data-gtag]")||bt({script:[{src:gt(e.url,{id:p.id}),"data-gtag":""}]})}};function i(l){{const{tag:p}=a(l);p&&En(p.id)}}function n(l){{const{tag:p}=a(l);p&&Tn(p.id)}}return{gtag:t,initialize:o,disableAnalytics:i,enableAnalytics:n}}function Mn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\b\w/g,s=>s.toLowerCase())}const Fe={name:"",brandName:"",businessDirection:"",locationCount:"",cuisine:"",position:"",countryCity:"",nearestShowroom:"",email:"",areaCode:"",phoneNumber:"",message:""},An=["message","nearestShowroom"];function kn(){const{locale:e,t:s}=Ke(),t=Ue({...Fe}),a=A(!1),o=A(!1),i=A(""),n=O(()=>Sn(s).map(r=>({name:r.name,value:r.id}))),l=O(()=>On(s).map(r=>({name:r.name,value:r.id}))),p=O(()=>Cn(s).map(r=>({name:r.name,value:r.id}))),c=O(()=>In(s)),d=O(()=>{let r="en";return e.value==="cn"&&(r="cn"),Rn.map(y=>({name:`${y.code} ${y[r]||y.en}`,value:y.code}))});async function u(){if(a.value)return;const{nearestShowroom:r,countryCity:y,name:E,brandName:g,businessDirection:F,cuisine:D,email:w,locationCount:f,message:S,position:v,phoneNumber:C,areaCode:R}=t,h={nearestShowroomC:r,countryCityC:y,name:E,brandName:g,businessDirection:F,cuisine:D,email:w,locationNumber:f,message:S,position:v,phoneArea:R,phoneNumber:C};try{i.value="",Object.keys(t).filter(m=>!An.includes(m)).forEach(m=>{if(["",void 0,null].includes(t[m]))throw console.log(m),new Error(s("please-input",{message:s(Mn(m))}))}),a.value=!0;const L=await fetch("/contact-form",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!L.ok)throw new Error(s("error-during-submit",{status:L.status}));o.value=!0,Object.assign(t,Fe);{const{gtag:m}=Ln();m("event","conversion",{send_to:"AW-17933079192/b6hICPyJzv0bEJillOdC"})}setTimeout(()=>{o.value=!1},3e4)}catch(L){L instanceof Error?i.value=L.message:i.value=String(L)}finally{a.value=!1}}return{areaCodeOptionList:d,businessDirectionOptionList:n,cuisineOptionList:l,error:i,formData:t,isSubmitting:a,positionOptionList:p,showroomOptionList:c,submitForm:u,success:o}}const Dn={class:"relative lg:h-[24vw] lg:max-h-[620px] bg-[rgba(0,0,0,0.3)]"},Pn={class:"text-white text-center h-full flex flex-col items-center justify-center md:mx-[100px] md:py-[112px] py-[60px] mx-[20px] font-medium"},_n={class:"md:text-[48px] text-[40px]"},Fn={class:"md:mt-[46px] mt-[18px] md:text-[20px]"},Vn={class:"relative md:pt-[162px] md:pb-[124px] lg:px-[172px] md:px-[64px] py-[60px] px-[20px] text-center max-w-[1440px] mx-auto"},zn={class:"flex justify-between flex-wrap md:gap-y-[100px] gap-y-[50px]"},$n=["placeholder"],Bn=["placeholder"],Nn=["placeholder"],jn=["placeholder"],Un=["placeholder"],qn=["placeholder"],Hn={class:"w-full"},Wn={class:"text-left text-[20px] leading-[120%]"},Kn=["placeholder"],Gn={class:"mt-[6px] leading-[120%] text-[14px] text-left"}
4,Jn=["disabled"],Zn={key:0,class:"absolute left-0 right-0 bottom-[182px] flex mx-auto items-center p-[3px] text-center w-[226px] bg-[#fcc30888] rounded-[26px] justify-center"},Qn={class:"text-[20px] leading-[120%] py-[8px]"},Yn={key:1,class:"absolute text-[20px] text-[#ff5454] leading-[120%] left-0 right-0 bottom-[182px] flex mx-auto items-center text-center justify-center"},to=H({__name:"contact",setup(e){const{t:s}=Ke(),{areaCodeOptionList:t,businessDirectionOptionList:a,cuisineOptionList:o,error:i,formData:n,isSubmitting:l,showroomOptionList:p,submitForm:c,success:d}=kn();return(u,r)=>{const y=bn,E=xn;return q(),K("div",null,[_("div",Dn,[_("div",Pn,[_("h1",_n,W(b(s)("experience-botinkit-products-live-with-a-demo")),1),_("p",Fn,W(b(s)("use-this-form-to-submit-general-enquiries-to-botinkit-we-will-respond-to-you-as-soon-as-possible")),1)]),r[13]||(r[13]=_("img",{class:"absolute top-0 left-0 h-full w-full object-cover object-center -z-10",src:"https://cos.botinkit.com/botinkitWeb/botinkitAppWeb/about-title.jpeg",loading:"lazy"},null,-1))]),_("div",Vn,[_("div",zn,[z(J,{label:b(s)("name"),required:""},{default:B(()=>[Q(_("input",{"onUpdate:modelValue":r[0]||(r[0]=g=>b(n).name=g),placeholder:b(s)("enter-your-full-name"),class:"placeholder:text-[rgba(0,0,0,0.4)] text-[14px] leading-[120%] flex-1 min-w-0 outline-0"},null,8,$n),[[ee,b(n).name]])]),_:1},8,["label"]),z(J,{label:b(s)("brand-name"),required:""},{default:B(()=>[Q(_("input",{"onUpdate:modelValue":r[1]||(r[1]=g=>b(n).brandName=g),placeholder:b(s)("enter-your-brand-name"),class:"placeholder:text-[rgba(0,0,0,0.4)] text-[14px] leading-[120%] flex-1 min-w-0 outline-0"},null,8,Bn),[[ee,b(n).brandName]])]),_:1},8,["label"]),z(J,{label:b(s)("business-direction"),required:""},{default:B(()=>[z(y,{modelValue:b(n).businessDirection,"onUpdate:modelValue":r[2]||(r[2]=g=>b(n).businessDirection=g),placeholder:b(s)("select-business-direction"),"option-list":b(a),class:"flex-1 min-w-0 outline-0"},null,8,["modelValue","placeholder","option-list"])]),_:1},8,["label"]),z(J,{label:b(s)("number-of-locations"),required:""},{default:B(()=>[Q(_("input",{"onUpdate:modelValue":r[3]||(r[3]=g=>b(n).locationCount=g),placeholder:b(s)("enter-the-number-of-branches"),class:"placeholder:text-[rgba(0,0,0,0.4)] text-[14px] leading-[120%] flex-1 min-w-0 outline-0"},null,8,Nn),[[ee,b(n).locationCount]])]),_:1},8,["label"]),z(J,{label:b(s)("cuisine"),required:""},{default:B(()=>[z(y,{modelValue:b(n).cuisine,"onUpdate:modelValue":r[4]||(r[4]=g=>b(n).cuisine=g),"option-list":b(o),placeholder:b(s)("select-cuisine-type"),class:"flex-1 min-w-0 outline-0"},null,8,["modelValue","option-list","placeholder"])]),_:1},8,["label"]),z(J,{label:b(s)("position"),required:""},{default:B(()=>[Q(_("input",{"onUpdate:modelValue":r[5]||(r[5]=g=>b(n).position=g),placeholder:b(s)("please-input",{message:b(s)("position")}),class:"placeholder:text-[rgba(0,0,0,0.4)] text-[14px] leading-[120%] flex-1 min-w-0 outline-0"},null,8,jn),[[ee,b(n).position]])]),_:1},8,["label"]),z(J,{label:b(s)("nearest-showroom")},{default:B(()=>[z(y,{modelValue:b(n).nearestShowroom,"onUpdate:modelValue":r[6]||(r[6]=g=>b(n).nearestShowroom=g),"option-list":b(p),placeholder:b(s)("select-your-nearest-showroom"),class:"flex-1 min-w-0 outline-0"},null,8,["modelValue","option-list","placeholder"])]),_:1},8,["label"]),z(J,{label:b(s)("Country/City"),required:""},{default:B(()=>[Q(_("input",{"onUpdate:modelValue":r[7]||(r[7]=g=>b(n).countryCity=g),placeholder:b(s)("enter-the-country-or-city-you-are-based-in"),class:"placeholder:text-[rgba(0,0,0,0.4)] text-[14px] leading-[120%] flex-1 min-w-0 outline-0"},null,8,Un),[[ee,b(n).countryCity]])]),_:1},8,["label"]),z(J,{label:b(s)("e-mail-address"),required:""},{default:B(()=>[Q(_("input",{"onUpdate:modelValue":r[8]||(r[8]=g=>b(n).email=g),placeholder:"[email protected]",class:"placeholder:text-[rgba(0,0,0,0.4)] text-[14px] leading-[120%] flex-1 min-w-0 outline-0"},null,512),[[ee,b(n).email]])]),_:1},8,["label"]),z(J,{label:b(s)("contact-number"),required:""},{default:B(()=>[z(E,{modelValue:b(n).areaCode,"onUpdate:modelValue":r[9]||(r[9]=g=>b(n).areaCode=g),"option-list":b(t),placeholder:b(s)("select"),class:"w-[100px] outline-0","panel-style":"width: 240px;"},null,8,["modelValue","option-list","placeholder"]),Q(_("input",{"onUpdate:modelValue":r[10]||(r[10]=g=>b(n).phoneNumber=g),placeholder:b(s)("enter-your-number"),class:"ml-[12px] placeholder:text-[rgba(0,0,0,0.4)] text-[14px] leading-[120%] flex-1 min-w-0 outline-0"},null,8,qn),[[ee,b(n).phoneNumber]])]),_:1},8,["label"]),_("div",Hn,[_("div",Wn,W(b(s)("message")),1),Q(_("textarea",{"onUpdate:modelValue":r[11]||(r[11]=g=>b(n).message=g),maxlength:"400",rows:"10",placeholder:b(s)("add-your-message-limit-400-characters"),class:"mt-[8px] resize-none w-full border py-[15p
4x] rounded-[4px] px-[20px] outline-0"},null,8,Kn),[[ee,b(n).message]]),_("p",Gn,W(b(s)("provide-information-you-think-we-will-need-in-order-to-address-your-enquiry-including-the-location-that-it-relates-to-please-also-include-any-additional-contact-details")),1)])]),_("button",{class:"mt-[140px] bg-[#fcc308] rounded-[26px] w-[226px] h-[46px] text-center text-[20px] leading-[120%] disabled:bg-[#cccccc]",disabled:b(l),onClick:r[12]||(r[12]=(...g)=>b(c)&&b(c)(...g))},W(b(s)("submit")),9,Jn),b(d)?(q(),K("div",Zn,[r[14]||(r[14]=_("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",class:"absolute left-[3px]"},[_("circle",{cx:"19.9999",cy:"20",r:"19.5926",fill:"#FCC307"}),_("path",{d:"M9.77783 21.036L15.1902 27.7528C16.2131 29.0222 18.1471 29.0222 19.17 27.7528L23.7012 22.1296L30.2223 14.037",stroke:"white","stroke-width":"4.25926","stroke-linecap":"round"})],-1)),_("div",Qn,W(b(s)("success")),1)])):b(i).length?(q(),K("div",Yn,W(b(i)),1)):Ce("",!0)])])}}});export{to as default};

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.