PageSourceSearch

https://bidhawk-demo-app.web.app/assets/index-CZpxXZ0Q.js

js bidhawk-demo-app.web.app collected 2026-10-03 12:19:06 UTC 27,228 bytes, 45 lines download raw bytes

vendor: 8,656 bytes, line 1
1import{c as et}from"./createLucideIcon-C9NiWNpo.js";import{r as i}from"./chunk-JZWAC4HX-DvFdmerS.js";import{P as x,a as T,d as tt,b as nt,c as rt,e as ot,u as at}from"./index-DQGWBiB6.js";import{u as W,c as it}from"./index-CYashi4K.js";import{P as se,u as q}from"./index-D_aLxANI.js";import{j as m}from"./jsx-runtime-CuP2xq57.js";import{R as st}from"./index-ymrGQ33M.js";const Fn=et("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function B(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>t.current?.(...n),[])}function ct(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 ut="DismissableLayer",ae="dismissableLayer.update",lt="dismissableLayer.pointerDownOutside",dt="dismissableLayer.focusOutside",fe,Re=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),De=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...p}=e,l=i.useContext(Re),[d,f]=i.useState(null),h=d?.ownerDocument??globalThis?.document,[,E]=i.useState({}),R=W(t,y=>f(y)),c=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=c.indexOf(v),b=d?c.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,S=b>=g,w=pt(y=>{const A=y.target,L=[...l.branches].some(j=>j.contains(A));!S||L||(o?.(y),u?.(y),y.defaultPrevented||s?.())},h),D=ht(y=>{const A=y.target;[...l.branches].some(j=>j.contains(A))||(a?.(y),u?.(y),y.defaultPrevented||s?.())},h);return ct(y=>{b===l.layers.size-1&&(r?.(y),!y.defaultPrevented&&s&&(y.preventDefault(),s()))},h),i.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(fe=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ve(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=fe)}},[d,h,n,l]),i.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ve())},[d,l]),i.useEffect(()=>{const y=()=>E({});return document.addEventListener(ae,y),()=>document.removeEventListener(ae,y)},[]),m.jsx(x.div,{...p,ref:R,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,D.onFocusCapture),onBlurCapture:T(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,w.onPointerDownCapture)})});De.displayName=ut;var ft="DismissableLayerBranch",vt=i.forwardRef((e,t)=>{const n=i.useContext(Re),r=i.useRef(null),o=W(t,r);return i.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(x.div,{...e,ref:o})});vt.displayName=ft;function pt(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 p=function(){Pe(lt,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}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 ht(e,t=globalThis?.document){const n=B(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Pe(dt,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 ve(){const e=new CustomEvent(ae);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?tt(o,a):o.dispatchEvent(a)}var Q="focusScope.autoFocusOnMount",J="focusScope.autoFocusOnUnmount",pe={bubbles:!1,cancelable:!0},mt="FocusScope",Oe=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[s,p]=i.useState(null),l=B(o),d=B(a),f=i.useRef(null),h=W(t,c=>p(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 S=C.target;s.contains(S)?f.current=S:N(f.current,{select:!0})},v=function(C){if(E.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||N(f.current,{select:!0}))},g=function(C){if(document.activeElement===document.body)for(const w of C)w.removedNodes.length>0&&N(s)};document.addEventListener("focusin",c),document.addEventListener("focusout",v);const b=new MutationObserver(g);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",v),b.disconnect()}}},[r,s,E.paused]),i.useEffect(()=>{if(s){me.add(E);const c=document.activeElement;if(!s.contains(c)){const g=new CustomEvent(Q,pe);s.addEventListener(Q,l),s.dispatchEvent(g),g.defaultPrevented||(gt(St(xe(s)),{select:!0}),document.activeElement===c&&N(s))}return()=>{s.removeEventListener(Q,l),setTimeout(()=>{const g=new CustomEvent(J,pe);s.addEventListener(J,d),s.dispatchEvent(g),g.defaultPrevented||N(c??document.body,{select:!0}),s.removeEventListener(J,d),me.remove(E)},0)}}},[s,l,d,E]);const R=i.useCallback(c=>{if(!n&&!r||E.paused)return;const v=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,g=document.activeElement;if(v&&g){const b=c.currentTarget,[C,S]=yt(b);C&&S?!c.shiftKey&&g===S?(c.preventDefault(),n&&N(C,{select:!0})):c.shiftKey&&g===C&&(c.preventDefault(),n&&N(S,{select:!0})):g===b&&c.preventDefault()}},[n,r,E.paused]);return m.jsx(x.div,{tabIndex:-1,...u,ref:h,onKeyDown:R})});Oe.displayName=mt;function gt(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(N(r,{select:t}),document.activeElement!==n)return}function yt(e){const t=xe(e),n=he(t,e),r=he(t.reverse(),e);return[n,r]}function xe(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 he(e,t){for(const n of e)if(!Et(n,{upTo:t}))return n}function Et(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 bt(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&&bt(e)&&t&&e.select()}}var me=Ct();function Ct(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ge(e,t),e.unshift(t)},remove(t){e=ge(e,t),e[0]?.resume()}}}function ge(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function St(e){return e.filter(t=>t.tagName!=="A")}var wt="Portal",Ne=i.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=i.useState(!1);nt(()=>a(!0),[]);const u=n||o&&globalThis?.document?.body;return u?st.createPortal(m.jsx(x.div,{...r,ref:t}),u):null});Ne.displayName=wt;var ee=0;function Rt(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ye()),document.body.insertAdjacentElement("beforeend",e[1]??ye()),ee++,()=>{ee===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ee--}},[])}function ye(){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 O=function(){return O=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},O.apply(this,arguments)};function Te(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 Dt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;
vendor: 4,957 bytes, lines 1-16
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 X="right-scroll-bar-position",Y="width-before-scroll-bar",Pt="with-scroll-bars-hidden",Ot="--removed-body-scroll-bar-size";function te(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xt(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 Nt=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ee=new WeakMap;function Tt(e,t){var n=xt(null,function(r){return e.forEach(function(o){return te(o,r)})});return Nt(function(){var r=Ee.get(n);if(r){var o=new Set(r),a=new Set(e),u=n.current;o.forEach(function(s){a.has(s)||te(s,null)}),a.forEach(function(s){o.has(s)||te(s,u)})}Ee.set(n,e)},[e]),n}function At(e){return e}function It(e,t){t===void 0&&(t=At);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 p=function(){var d=u;u=[],d.forEach(a)},l=function(){return Promise.resolve().then(p)};l(),n={push:function(d){u.push(d),l()},filter:function(d){return u=u.filter(d),n}}}};return o}function Lt(e){e===void 0&&(e={});var t=It(null);return t.options=O({async:!0,ssr:!1},e),t}var Ae=function(e){var t=e.sideCar,n=Te(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,O({},n))};Ae.isSideCarExport=!0;function Mt(e,t){return e.useMedium(t),Ae}var Ie=Lt(),ne=function(){},z=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ne,onWheelCapture:ne,onTouchMoveCapture:ne}),o=r[0],a=r[1],u=e.forwardProps,s=e.children,p=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,E=e.noRelative,R=e.noIsolation,c=e.inert,v=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,C=e.gapMode,S=Te(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,D=Tt([n,t]),y=O(O({},S),o);return i.createElement(i.Fragment,null,d&&i.createElement(w,{sideCar:Ie,removeScrollBar:l,shards:f,noRelative:E,noIsolation:R,inert:c,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:C}),u?i.cloneElement(i.Children.only(s),O(O({},y),{ref:D})):i.createElement(b,O({},y,{className:p,ref:D}),s))});z.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};z.classNames={fullWidth:Y,zeroRight:X};var Ft=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _t(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ft();return t&&e.setAttribute("nonce",t),e}function kt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_t())&&(kt(t,n),Wt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Bt=function(){var e=jt();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Le=function(){var e=Bt(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ut={left:0,top:0,right:0,gap:0},re=function(e){return parseInt(e||"",10)||0},Vt=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[re(n),re(r),re(o)]},Ht=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ut;var t=Vt(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])}},Kt=Le(),k="data-scroll-locked",Gt=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(Pt,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(s,"px ").concat(r,`;
5  }
6  body[`).concat(k,`] {
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(X,` {
20    right: `).concat(s,"px ").concat(r,`;
21  }
22  
23  .`).concat(Y,` {
24    margin-right: `).concat(s,"px ").concat(r,`;
25  }
26  
27  .`).concat(X," .").concat(X,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(Y," .").concat(Y,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(k,`] {
36    `).concat(Ot,": ").concat(s,`px;
37  }
38`)},be=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},Xt=function(){i.useEffect(function(){return document.body.setAttribute(k,(be()+1).toString()),function(){var e=be()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},Yt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Xt();var a=i.useMemo(function(){return Ht(o)},[o]);return i.createElement(Kt,{styles:Gt(a,!t,o,n?"":"!important")})},ie=!1;if(typeof window<"u")try{var V=Object.defineProperty({},"passive",{get:function(){return ie=!0,!0}});window.addEventListener("test",V,V),window.removeEventListener("test",V,V)}catch{ie=!1}var M=ie?{passive:!1}:!1,$t=function(e){return e.tagName==="TEXTAREA"},Me=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$t(e)&&n[t]==="visible")},zt=function(e){return Me(e,"overflowY")},Zt=function(e){return Me(e,"overflowX")},Ce=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fe(e,r);if(o){var a=_e(e,r),u=a[1],s=a[2];if(u>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Qt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fe=function(e,t){return e==="v"?zt(t):Zt(t)},_e=function(e,t){return e==="v"?qt(t):Qt(t)},Jt=function(e,t){return e==="h"&&t==="rtl"?-1:1},en=function(e,t,n,r,o){var a=Jt(e,window.getComputedStyle(t).direction),u=a*r,s=n.target,p=t.contains(s),l=!1,d=u>0,f=0,h=0;do{if(!s)break;var E=_e(e,s),R=E[0],c=E[1],v=E[2],g=c-v-a*R;(R||g)&&Fe(e,s)&&(f+=g,h+=R);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(l=!0),l},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Se=function(e){return[e.deltaX,e.deltaY]},we=function(e){return e&&"current"in e?e.current:e},tn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nn=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},rn=0,F=[];function on(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(rn++)[0],a=i.useState(Le)[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=Dt([e.lockRef.current],(e.shards||[]).map(we),!0).filter(Boolean);return c.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),c.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(c,v){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!u.current.allowPinchZoom;var g=H(c),b=n.current,C="deltaX"in c?c.deltaX:b[0]-g[0],S="deltaY"in c?c.deltaY:b[1]-g[1],w,D=c.target,y=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in c&&y==="h"&&D.type==="range")return!1;var A=window.getSelection(),L=A&&A.anchorNode,j=L?L===D||L.contains(D):!1;if(j)return!1;var U=Ce(y,D);if(!U)return!0;if(U?w=y:(w=y==="v"?"h":"v",U=Ce(y,D)),!U)return!1;if(!r.current&&"changedTouches"in c&&(C||S)&&(r.current=w),!w)return!0;var de=r.current||w;return en(de,v,c,de==="h"?C:S)},[]),p=i.useCallback(function(c){var v=c;if(!(!F.length||F[F.length-1]!==a)){var g="deltaY"in v?Se(v):H(v),b=t.current.filter(function(w){return w.name===v.type&&(w.target===v.target||v.target===w.shadowParent)&&tn(w.delta,g)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}
vendor: 4,788 bytes, line 41
41if(!b){var C=(u.current.shards||[]).map(we).filter(Boolean).filter(function(w){return w.contains(v.target)}),S=C.length>0?s(v,C[0]):!u.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),l=i.useCallback(function(c,v,g,b){var C={name:c,delta:v,target:g,should:b,shadowParent:an(g)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),d=i.useCallback(function(c){n.current=H(c),r.current=void 0},[]),f=i.useCallback(function(c){l(c.type,Se(c),c.target,s(c,e.lockRef.current))},[]),h=i.useCallback(function(c){l(c.type,H(c),c.target,s(c,e.lockRef.current))},[]);i.useEffect(function(){return F.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",p,M),document.addEventListener("touchmove",p,M),document.addEventListener("touchstart",d,M),function(){F=F.filter(function(c){return c!==a}),document.removeEventListener("wheel",p,M),document.removeEventListener("touchmove",p,M),document.removeEventListener("touchstart",d,M)}},[]);var E=e.removeScrollBar,R=e.inert;return i.createElement(i.Fragment,null,R?i.createElement(a,{styles:nn(o)}):null,E?i.createElement(Yt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function an(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sn=Mt(Ie,on);var ke=i.forwardRef(function(e,t){return i.createElement(z,O({},e,{ref:t,sideCar:sn}))});ke.classNames=z.classNames;var cn=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_=new WeakMap,K=new WeakMap,G={},oe=0,We=function(e){return e&&(e.host||We(e.parentNode))},un=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=We(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})},ln=function(e,t,n,r){var o=un(t,Array.isArray(e)?e:[e]);G[n]||(G[n]=new WeakMap);var a=G[n],u=[],s=new Set,p=new Set(o),l=function(f){!f||s.has(f)||(s.add(f),l(f.parentNode))};o.forEach(l);var d=function(f){!f||p.has(f)||Array.prototype.forEach.call(f.children,function(h){if(s.has(h))d(h);else try{var E=h.getAttribute(r),R=E!==null&&E!=="false",c=(_.get(h)||0)+1,v=(a.get(h)||0)+1;_.set(h,c),a.set(h,v),u.push(h),c===1&&R&&K.set(h,!0),v===1&&h.setAttribute(n,"true"),R||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return d(t),s.clear(),oe++,function(){u.forEach(function(f){var h=_.get(f)-1,E=a.get(f)-1;_.set(f,h),a.set(f,E),h||(K.has(f)||f.removeAttribute(r),K.delete(f)),E||f.removeAttribute(n)}),oe--,oe||(_=new WeakMap,_=new WeakMap,K=new WeakMap,G={})}},dn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=cn(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ln(r,o,n,"aria-hidden")):function(){return null}};function fn(e){const t=vn(e),n=i.forwardRef((r,o)=>{const{children:a,...u}=r,s=i.Children.toArray(a),p=s.find(hn);if(p){const l=p.props.children,d=s.map(f=>f===p?i.Children.count(l)>1?i.Children.only(null):i.isValidElement(l)?l.props.children:null:f);return m.jsx(t,{...u,ref:o,children:i.isValidElement(l)?i.cloneElement(l,void 0,d):null})}return m.jsx(t,{...u,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function vn(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const u=gn(o),s=mn(a,o.props);return o.type!==i.Fragment&&(s.ref=r?it(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 pn=Symbol("radix.slottable");function hn(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pn}function mn(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 p=a(...s);return o(...s),p}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function gn(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 Z="Dialog",[je]=rt(Z),[yn,P]=je(Z),Be=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,s=i.useRef(null),p=i.useRef(null),[l,d]=at({prop:r,defaultProp:o??!1,onChange:a,caller:Z});return m.jsx(yn,{scope:t,triggerRef:s,contentRef:p,contentId:q(),titleId:q(),descriptionId:q(),open:l,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(f=>!f),[d]),modal:u,children:n})};Be.displayName=Z;var Ue="DialogTrigger",En=i.forwardRef((e,t)=>
vendor: 4,336 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,o=P(Ue,n),a=W(t,o.triggerRef);return m.jsx(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":le(o.open),...r,ref:a,onClick:T(e.onClick,o.onOpenToggle)})});En.displayName=Ue;var ce="DialogPortal",[bn,Ve]=je(ce,{forceMount:void 0}),He=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=P(ce,t);return m.jsx(bn,{scope:t,forceMount:n,children:i.Children.map(r,u=>m.jsx(se,{present:n||a.open,children:m.jsx(Ne,{asChild:!0,container:o,children:u})}))})};He.displayName=ce;var $="DialogOverlay",Ke=i.forwardRef((e,t)=>{const n=Ve($,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=P($,e.__scopeDialog);return a.modal?m.jsx(se,{present:r||a.open,children:m.jsx(Sn,{...o,ref:t})}):null});Ke.displayName=$;var Cn=fn("DialogOverlay.RemoveScroll"),Sn=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P($,n);return m.jsx(ke,{as:Cn,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(x.div,{"data-state":le(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",Ge=i.forwardRef((e,t)=>{const n=Ve(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=P(I,e.__scopeDialog);return m.jsx(se,{present:r||a.open,children:a.modal?m.jsx(wn,{...o,ref:t}):m.jsx(Rn,{...o,ref:t})})});Ge.displayName=I;var wn=i.forwardRef((e,t)=>{const n=P(I,e.__scopeDialog),r=i.useRef(null),o=W(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return dn(a)},[]),m.jsx(Xe,{...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())})}),Rn=i.forwardRef((e,t)=>{const n=P(I,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return m.jsx(Xe,{...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()}})}),Xe=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=e,s=P(I,n),p=i.useRef(null),l=W(t,p);return Rt(),m.jsxs(m.Fragment,{children:[m.jsx(Oe,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(De,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":le(s.open),...u,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Dn,{titleId:s.titleId}),m.jsx(On,{contentRef:p,descriptionId:s.descriptionId})]})]})}),ue="DialogTitle",Ye=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(ue,n);return m.jsx(x.h2,{id:o.titleId,...r,ref:t})});Ye.displayName=ue;var $e="DialogDescription",ze=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P($e,n);return m.jsx(x.p,{id:o.descriptionId,...r,ref:t})});ze.displayName=$e;var Ze="DialogClose",qe=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(Ze,n);return m.jsx(x.button,{type:"button",...r,ref:t,onClick:T(e.onClick,()=>o.onOpenChange(!1))})});qe.displayName=Ze;function le(e){return e?"open":"closed"}var Qe="DialogTitleWarning",[_n,Je]=ot(Qe,{contentName:I,titleName:ue,docsSlug:"dialog"}),Dn=({titleId:e})=>{const t=Je(Qe),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},Pn="DialogDescriptionWarning",On=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Je(Pn).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");
45t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},kn=Be,Wn=He,jn=Ke,Bn=Ge,Un=Ye,Vn=ze,Hn=qe;export{Bn as C,Vn as D,Oe as F,jn as O,Wn as P,kn as R,Un as T,Fn as X,Hn as a,Ne as b,Rt as c,ke as d,De as e,dn as h,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.