PageSourceSearch

https://www.flexcar.com/lp/assets/dialog-C7_cYwC8.js

js flexcar.com collected 2026-09-24 09:46:20 UTC 28,566 bytes, 45 lines download raw bytes

1import{r as i,j as d,aF as st,X as ct}from"./index-BUm1srQw.js";import{P as O,c as T,f as ut,e as lt,b as dt,u as Q,d as ce,a as ft,g as vt}from"./index-CxhHXqoB.js";import{u as j,c as pt}from"./index-CJSKqn58.js";import{c as Y}from"./utils-BQHNewu7.js";function B(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>t.current?.(...n),[])}function mt(e,t=globalThis?.document){const n=B(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ht="DismissableLayer",ie="dismissableLayer.update",gt="dismissableLayer.pointerDownOutside",yt="dismissableLayer.focusOutside",ve,Re=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xe=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...m}=e,l=i.useContext(Re),[f,v]=i.useState(null),h=f?.ownerDocument??globalThis?.document,[,E]=i.useState({}),D=j(t,y=>v(y)),c=Array.from(l.layers),[p]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=c.indexOf(p),b=f?c.indexOf(f):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,S=Ct(y=>{const A=y.target,L=[...l.branches].some(W=>W.contains(A));!w||L||(o?.(y),u?.(y),y.defaultPrevented||s?.())},h),R=wt(y=>{const A=y.target;[...l.branches].some(W=>W.contains(A))||(a?.(y),u?.(y),y.defaultPrevented||s?.())},h);return mt(y=>{b===l.layers.size-1&&(r?.(y),!y.defaultPrevented&&s&&(y.preventDefault(),s()))},h),i.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ve=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),pe(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ve)}},[f,h,n,l]),i.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),pe())},[f,l]),i.useEffect(()=>{const y=()=>E({});return document.addEventListener(ie,y),()=>document.removeEventListener(ie,y)},[]),d.jsx(O.div,{...m,ref:D,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,R.onFocusCapture),onBlurCapture:T(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,S.onPointerDownCapture)})});xe.displayName=ht;var Et="DismissableLayerBranch",bt=i.forwardRef((e,t)=>{const n=i.useContext(Re),r=i.useRef(null),o=j(t,r);return i.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(O.div,{...e,ref:o})});bt.displayName=Et;function Ct(e,t=globalThis?.document){const n=B(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let m=function(){Pe(gt,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wt(e,t=globalThis?.document){const n=B(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Pe(yt,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pe(){const e=new CustomEvent(ie);document.dispatchEvent(e)}function Pe(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ut(o,a):o.dispatchEvent(a)}var J=0;function St(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??me()),document.body.insertAdjacentElement("beforeend",e[1]??me()),J++,
1()=>{J===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),J--}},[])}function me(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ee="focusScope.autoFocusOnMount",te="focusScope.autoFocusOnUnmount",he={bubbles:!1,cancelable:!0},Dt="FocusScope",Oe=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[s,m]=i.useState(null),l=B(o),f=B(a),v=i.useRef(null),h=j(t,c=>m(c)),E=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let c=function(C){if(E.paused||!s)return;const w=C.target;s.contains(w)?v.current=w:N(v.current,{select:!0})},p=function(C){if(E.paused||!s)return;const w=C.relatedTarget;w!==null&&(s.contains(w)||N(v.current,{select:!0}))},g=function(C){if(document.activeElement===document.body)for(const S of C)S.removedNodes.length>0&&N(s)};document.addEventListener("focusin",c),document.addEventListener("focusout",p);const b=new MutationObserver(g);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",p),b.disconnect()}}},[r,s,E.paused]),i.useEffect(()=>{if(s){ye.add(E);const c=document.activeElement;if(!s.contains(c)){const g=new CustomEvent(ee,he);s.addEventListener(ee,l),s.dispatchEvent(g),g.defaultPrevented||(Rt(Tt(Ne(s)),{select:!0}),document.activeElement===c&&N(s))}return()=>{s.removeEventListener(ee,l),setTimeout(()=>{const g=new CustomEvent(te,he);s.addEventListener(te,f),s.dispatchEvent(g),g.defaultPrevented||N(c??document.body,{select:!0}),s.removeEventListener(te,f),ye.remove(E)},0)}}},[s,l,f,E]);const D=i.useCallback(c=>{if(!n&&!r||E.paused)return;const p=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,g=document.activeElement;if(p&&g){const b=c.currentTarget,[C,w]=xt(b);C&&w?!c.shiftKey&&g===w?(c.preventDefault(),n&&N(C,{select:!0})):c.shiftKey&&g===C&&(c.preventDefault(),n&&N(w,{select:!0})):g===b&&c.preventDefault()}},[n,r,E.paused]);return d.jsx(O.div,{tabIndex:-1,...u,ref:h,onKeyDown:D})});Oe.displayName=Dt;function Rt(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(N(r,{select:t}),document.activeElement!==n)return}function xt(e){const t=Ne(e),n=ge(t,e),r=ge(t.reverse(),e);return[n,r]}function Ne(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ge(e,t){for(const n of e)if(!Pt(n,{upTo:t}))return n}function Pt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ot(e){return e instanceof HTMLInputElement&&"select"in e}function N(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ot(e)&&t&&e.select()}}var ye=Nt();function Nt(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ee(e,t),e.unshift(t)},remove(t){e=Ee(e,t),e[0]?.resume()}}}function Ee(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Tt(e){return e.filter(t=>t.tagName!=="A")}var At="Portal",Te=i.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=i.useState(!1);lt(()=>a(!0),[]);const u=n||o&&globalThis?.document?.body;return u?st.createPortal(d.jsx(O.div,{...r,ref:t}),u):null});Te.displayName=At;var It=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},F=new WeakMap,V=new WeakMap,H={},ne=0,Ae=function(e){return e&&(e.host||Ae(e.parentNode))},Lt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ae(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ft=function(e,t,n,r){var o=Lt(t,Array.isArray(e)?e:[e]);H[n]||(H[n]=new WeakMap);var a=H[n],u=[],s=new Set,m=new Set(o),l=function(v){!v||s.has(v)||(s.add(v),l(v.parentNode))};o.forEach(l);var f=function(v){!v||m.has(v)||Array.prototype.forEach.call(v.children,function(h){if(s.has(h))f(h);else try{var E=h.getAttribute(r),D=E!==null&&E!=="false",c=(F.get(h)||0)+1,p=(a.get(h)||0)+1;F.set(h,c),a.set(h,p),u.push(h),c===1&&D&&V.set(h,!0),p===1&&h.setAttribute(n,"true"),D||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return f(t),s.clear(),ne++,function(){u.forEach(function(v){var h=F.get(v)-1,E=a.get(v)-1;F.set(v,h),a.set(v,E),h||(V.has(v)||v.removeAttribute(r),V.delete(v)),E||v.removeAttribute(n)}),ne--,ne||(F=new WeakMap,F=new WeakMap,V=new WeakMap,H={})}},Mt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=It(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ft(r,o,n,"aria-hidden")):function(){return null}},P=function(){return P=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},P.apply(this,arguments)};function Ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function kt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;
1r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var z="right-scroll-bar-position",G="width-before-scroll-bar",_t="with-scroll-bars-hidden",jt="--removed-body-scroll-bar-size";function re(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wt(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Bt=typeof window<"u"?i.useLayoutEffect:i.useEffect,be=new WeakMap;function Ut(e,t){var n=Wt(null,function(r){return e.forEach(function(o){return re(o,r)})});return Bt(function(){var r=be.get(n);if(r){var o=new Set(r),a=new Set(e),u=n.current;o.forEach(function(s){a.has(s)||re(s,null)}),a.forEach(function(s){o.has(s)||re(s,u)})}be.set(n,e)},[e]),n}function Vt(e){return e}function Ht(e,t){t===void 0&&(t=Vt);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var u=t(a,r);return n.push(u),function(){n=n.filter(function(s){return s!==u})}},assignSyncMedium:function(a){for(r=!0;n.length;){var u=n;n=[],u.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var u=[];if(n.length){var s=n;n=[],s.forEach(a),u=n}var m=function(){var f=u;u=[],f.forEach(a)},l=function(){return Promise.resolve().then(m)};l(),n={push:function(f){u.push(f),l()},filter:function(f){return u=u.filter(f),n}}}};return o}function $t(e){e===void 0&&(e={});var t=Ht(null);return t.options=P({async:!0,ssr:!1},e),t}var Le=function(e){var t=e.sideCar,n=Ie(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,P({},n))};Le.isSideCarExport=!0;function Kt(e,t){return e.useMedium(t),Le}var Fe=$t(),oe=function(){},Z=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:oe,onWheelCapture:oe,onTouchMoveCapture:oe}),o=r[0],a=r[1],u=e.forwardProps,s=e.children,m=e.className,l=e.removeScrollBar,f=e.enabled,v=e.shards,h=e.sideCar,E=e.noRelative,D=e.noIsolation,c=e.inert,p=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,C=e.gapMode,w=Ie(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,R=Ut([n,t]),y=P(P({},w),o);return i.createElement(i.Fragment,null,f&&i.createElement(S,{sideCar:Fe,removeScrollBar:l,shards:v,noRelative:E,noIsolation:D,inert:c,setCallbacks:a,allowPinchZoom:!!p,lockRef:n,gapMode:C}),u?i.cloneElement(i.Children.only(s),P(P({},y),{ref:R})):i.createElement(b,P({},y,{className:m,ref:R}),s))});Z.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Z.classNames={fullWidth:G,zeroRight:z};var zt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zt();return t&&e.setAttribute("nonce",t),e}function Xt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gt())&&(Xt(t,n),Yt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qt=function(){var e=Zt();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Me=function(){var e=qt(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qt={left:0,top:0,right:0,gap:0},ae=function(e){return parseInt(e||"",10)||0},Jt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ae(n),ae(r),ae(o)]},en=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qt;var t=Jt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tn=Me(),_="data-scroll-locked",nn=function(e,t,n,r){var o=e.left,a=e.top,u=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(_t,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(s,"px ").concat(r,`;
5  }
6  body[`).concat(_,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(o,`px;
11    padding-top: `).concat(a,`px;
12    padding-right: `).concat(u,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(s,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(z,` {
20    right: `).concat(s,"px ").concat(r,`;
21  }
22  
23  .`).concat(G,` {
24    margin-right: `).concat(s,"px ").concat(r,`;
25  }
26  
27  .`).concat(z," .").concat(z,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(G," .").concat(G,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(_,`] {
36    `).concat(jt,": ").concat(s,`px;
37  }
38`)},Ce=function(){var e=parseInt(document.body.getAttribute(_)||"0",10);return isFinite(e)?e:0},rn=function(){i.useEffect(function(){return document.body.setAttribute(_,(Ce()+1).toString()),function(){var e=Ce()-1;e<=0?document.body.removeAttribute(_):document.body.setAttribute(_,e.toString())}},[])},on=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;rn();var a=i.useMemo(function(){return en(o)},[o]);return i.createElement(tn,{styles:nn(a,!t,o,n?"":"!important")})},se=!1;if(typeof window<"u")try{var $=Object.defineProperty({},"passive",{get:function(){return se=!0,!0}});window.addEventListener("test",$,$),window.removeEventListener("test",$,$)}catch{se=!1}var M=se?{passive:!1}:!1,an=function(e){return e.tagName==="TEXTAREA"},ke=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!an(e)&&n[t]==="visible")},sn=function(e){return ke(e,"overflowY")},cn=function(e){return ke(e,"overflowX")},we=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=_e(e,r);if(o){var a=je(e,r),u=a[1],s=a[2];if(u>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},un=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ln=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_e=function(e,t){return e==="v"?sn(t):cn(t)},je=function(e,t){return e==="v"?un(t):ln(t)},dn=function(e,t){return e==="h"&&t==="rtl"?-1:1},fn=function(e,t,n,r,o){var a=dn(e,window.getComputedStyle(t).direction),u=a*r,s=n.target,m=t.contains(s),l=!1,f=u>0,v=0,h=0;do{if(!s)break;var E=je(e,s),D=E[0],c=E[1],p=E[2],g=c-p-a*D;(D||g)&&_e(e,s)&&(v+=g,h+=D);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(f&&Math.abs(v)<1||!f&&Math.abs(h)<1)&&(l=!0),l},K=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Se=function(e){return[e.deltaX,e.deltaY]},De=function(e){return e&&"current"in e?e.current:e},vn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pn=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},mn=0,k=[];function hn(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(mn++)[0],a=i.useState(Me)[0],u=i.useRef(e);i.useEffect(function(){u.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var c=kt([e.lockRef.current],(e.shards||[]).map(De),!0).filter(Boolean);return c.forEach(function(p){return p.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),c.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(c,p){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!u.current.allowPinchZoom;var g=K(c),b=n.current,C="deltaX"in c?c.deltaX:b[0]-g[0],w="deltaY"in c?c.deltaY:b[1]-g[1],S,R=c.target,y=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in c&&y==="h"&&R.type==="range")return!1;var A=window.getSelection(),L=A&&A.anchorNode,W=L?L===R||L.contains(R):!1;if(W)return!1;var U=we(y,R);if(!U)return!0;if(U?S=y:(S=y==="v"?"h":"v",U=we(y,R)),!U)return!1;if(!r.current&&"changedTouches"in c&&(C||w)&&(r.current=S),!S)return!0;var fe=r.current||S;return fn(fe,p,c,fe==="h"?C:w)},[]),m=i.useCallback(function(c){var p=c;if(!(!k.length||k[k.length-1]!==a)){var g="deltaY"in p?Se(p):K(p),b=t.current.filter(function(S){return S.name===p.type&&(S.target===p.target||p.target===S.shadowParent)&&vn(S.delta,g)})[0];if(b&&b.should){p.cancelable&&p.preventDefault();return}
41if(!b){var C=(u.current.shards||[]).map(De).filter(Boolean).filter(function(S){return S.contains(p.target)}),w=C.length>0?s(p,C[0]):!u.current.noIsolation;w&&p.cancelable&&p.preventDefault()}}},[]),l=i.useCallback(function(c,p,g,b){var C={name:c,delta:p,target:g,should:b,shadowParent:gn(g)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),f=i.useCallback(function(c){n.current=K(c),r.current=void 0},[]),v=i.useCallback(function(c){l(c.type,Se(c),c.target,s(c,e.lockRef.current))},[]),h=i.useCallback(function(c){l(c.type,K(c),c.target,s(c,e.lockRef.current))},[]);i.useEffect(function(){return k.push(a),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:h}),document.addEventListener("wheel",m,M),document.addEventListener("touchmove",m,M),document.addEventListener("touchstart",f,M),function(){k=k.filter(function(c){return c!==a}),document.removeEventListener("wheel",m,M),document.removeEventListener("touchmove",m,M),document.removeEventListener("touchstart",f,M)}},[]);var E=e.removeScrollBar,D=e.inert;return i.createElement(i.Fragment,null,D?i.createElement(a,{styles:pn(o)}):null,E?i.createElement(on,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yn=Kt(Fe,hn);var We=i.forwardRef(function(e,t){return i.createElement(Z,P({},e,{ref:t,sideCar:yn}))});We.classNames=Z.classNames;function En(e){const t=bn(e),n=i.forwardRef((r,o)=>{const{children:a,...u}=r,s=i.Children.toArray(a),m=s.find(wn);if(m){const l=m.props.children,f=s.map(v=>v===m?i.Children.count(l)>1?i.Children.only(null):i.isValidElement(l)?l.props.children:null:v);return d.jsx(t,{...u,ref:o,children:i.isValidElement(l)?i.cloneElement(l,void 0,f):null})}return d.jsx(t,{...u,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function bn(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const u=Dn(o),s=Sn(a,o.props);return o.type!==i.Fragment&&(s.ref=r?pt(r,u):u),i.cloneElement(o,s)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cn=Symbol("radix.slottable");function wn(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cn}function Sn(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const m=a(...s);return o(...s),m}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Dn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var q="Dialog",[Be]=ft(q),[Rn,x]=Be(q),Ue=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,s=i.useRef(null),m=i.useRef(null),[l,f]=dt({prop:r,defaultProp:o??!1,onChange:a,caller:q});return d.jsx(Rn,{scope:t,triggerRef:s,contentRef:m,contentId:Q(),titleId:Q(),descriptionId:Q(),open:l,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(v=>!v),[f]),modal:u,children:n})};Ue.displayName=q;var Ve="DialogTrigger",xn=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=x(Ve,n),a=j(t,o.triggerRef);return d.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":de(o.open),...r,ref:a,onClick:T(e.onClick,o.onOpenToggle)})});xn.displayName=Ve;var ue="DialogPortal",[Pn,He]=Be(ue,{forceMount:void 0}),$e=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=x(ue,t);return d.jsx(Pn,{scope:t,forceMount:n,children:i.Children.map(r,u=>d.jsx(ce,{present:n||a.open,children:d.jsx(Te,{asChild:!0,container:o,children:u})}))})};$e.displayName=ue;var X="DialogOverlay",Ke=i.forwardRef((e,t)=>{const n=He(X,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=x(X,e.__scopeDialog);return a.modal?d.jsx(ce,{present:r||a.open,children:d.jsx(Nn,{...o,ref:t})}):null});Ke.displayName=X;var On=En("DialogOverlay.RemoveScroll"),Nn=i.forwardRef((e,t)=>
41{const{__scopeDialog:n,...r}=e,o=x(X,n);return d.jsx(We,{as:On,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(O.div,{"data-state":de(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",ze=i.forwardRef((e,t)=>{const n=He(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=x(I,e.__scopeDialog);return d.jsx(ce,{present:r||a.open,children:a.modal?d.jsx(Tn,{...o,ref:t}):d.jsx(An,{...o,ref:t})})});ze.displayName=I;var Tn=i.forwardRef((e,t)=>{const n=x(I,e.__scopeDialog),r=i.useRef(null),o=j(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return Mt(a)},[]),d.jsx(Ge,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:T(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:T(e.onPointerDownOutside,a=>{const u=a.detail.originalEvent,s=u.button===0&&u.ctrlKey===!0;(u.button===2||s)&&a.preventDefault()}),onFocusOutside:T(e.onFocusOutside,a=>a.preventDefault())})}),An=i.forwardRef((e,t)=>{const n=x(I,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return d.jsx(Ge,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=a.target;n.triggerRef.current?.contains(u)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ge=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=e,s=x(I,n),m=i.useRef(null),l=j(t,m);return St(),d.jsxs(d.Fragment,{children:[d.jsx(Oe,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(xe,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":de(s.open),...u,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(In,{titleId:s.titleId}),d.jsx(Fn,{contentRef:m,descriptionId:s.descriptionId})]})]})}),le="DialogTitle",Xe=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=x(le,n);return d.jsx(O.h2,{id:o.titleId,...r,ref:t})});Xe.displayName=le;var Ye="DialogDescription",Ze=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=x(Ye,n);return d.jsx(O.p,{id:o.descriptionId,...r,ref:t})});Ze.displayName=Ye;var qe="DialogClose",Qe=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=x(qe,n);return d.jsx(O.button,{type:"button",...r,ref:t,onClick:T(e.onClick,()=>o.onOpenChange(!1))})});Qe.displayName=qe;function de(e){return e?"open":"closed"}var Je="DialogTitleWarning",[Kn,et]=vt(Je,{contentName:I,titleName:le,docsSlug:"dialog"}),In=({titleId:e})=>{const t=et(Je),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ln="DialogDescriptionWarning",Fn=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${et(Ln).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Mn=Ue,kn=$e,tt=Ke,nt=ze,rt=Xe,ot=Ze,at=Qe;const zn=Mn,_n=kn,Gn=at,it=i.forwardRef(({className:e,...t},n)=>d.jsx(tt,{ref:n,className:Y("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));it.displayName=tt.displayName;const jn=i.forwardRef(({className:e,children:t,showClose:n=!0,...r},o)=>d.jsxs(_n,{children:[d.jsx(it,{}),d.jsxs(nt,{ref:o,className:Y("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...r,children:[t,n&&d.jsxs(at,{className:"absolute right-4 top-4 roun
45ded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(ct,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jn.displayName=nt.displayName;const Wn=i.forwardRef(({className:e,...t},n)=>d.jsx(rt,{ref:n,className:Y("text-lg font-semibold leading-none tracking-tight",e),...t}));Wn.displayName=rt.displayName;const Bn=i.forwardRef(({className:e,...t},n)=>d.jsx(ot,{ref:n,className:Y("text-sm text-muted-foreground",e),...t}));Bn.displayName=ot.displayName;export{nt as C,zn as D,Oe as F,tt as O,Te as P,We as R,jn as a,Wn as b,Gn as c,Bn as d,St as e,xe as f,Mn as g,Mt as h,kn as i,B as u};

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.