ivt 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.mjs +19 -1
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert/index.mjs +43 -1
- package/dist/alert/index.mjs.map +1 -1
- package/dist/alert-dialog/index.mjs +260 -1
- package/dist/alert-dialog/index.mjs.map +1 -1
- package/dist/avatar/index.mjs +164 -1
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/badge/index.mjs +6 -1
- package/dist/badge/index.mjs.map +1 -1
- package/dist/base/index.mjs +760 -1
- package/dist/base/index.mjs.map +1 -1
- package/dist/button/index.mjs +6 -1
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.mjs +11 -1
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/card/index.mjs +55 -1
- package/dist/card/index.mjs.map +1 -1
- package/dist/chart/index.mjs +17042 -1
- package/dist/chart/index.mjs.map +1 -1
- package/dist/checkbox/index.mjs +223 -1
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chunks/_commonjsHelpers-DqEvkrE1.mjs +6 -0
- package/dist/chunks/_commonjsHelpers-DqEvkrE1.mjs.map +1 -0
- package/dist/chunks/accordion-BMP2PSSC.mjs +455 -0
- package/dist/chunks/{accordion-CdshDFZC.mjs.map → accordion-BMP2PSSC.mjs.map} +1 -1
- package/dist/chunks/badge-DxuZhgBF.mjs +57 -0
- package/dist/chunks/{badge-BYqshEmA.mjs.map → badge-DxuZhgBF.mjs.map} +1 -1
- package/dist/chunks/bundle-mjs-tFg__FnT.mjs +4491 -0
- package/dist/chunks/{bundle-mjs-9BXytT_r.mjs.map → bundle-mjs-tFg__FnT.mjs.map} +1 -1
- package/dist/chunks/button-CX0htulo.mjs +47 -0
- package/dist/chunks/{button-DrFZXJ7z.mjs.map → button-CX0htulo.mjs.map} +1 -1
- package/dist/chunks/calendar-B4IV5RyM.mjs +7106 -0
- package/dist/chunks/calendar-B4IV5RyM.mjs.map +1 -0
- package/dist/chunks/check-B7209s3e.mjs +15 -0
- package/dist/chunks/{check-CimnOyD7.mjs.map → check-B7209s3e.mjs.map} +1 -1
- package/dist/chunks/chevron-down-D84DRJBv.mjs +15 -0
- package/dist/chunks/{chevron-down-D3fvbjxE.mjs.map → chevron-down-D84DRJBv.mjs.map} +1 -1
- package/dist/chunks/chevron-left-DtL1t1DJ.mjs +15 -0
- package/dist/chunks/{chevron-left-CrN7DlXg.mjs.map → chevron-left-DtL1t1DJ.mjs.map} +1 -1
- package/dist/chunks/chevron-right-Cdxg1JSQ.mjs +15 -0
- package/dist/chunks/{chevron-right-BMSCuDGK.mjs.map → chevron-right-Cdxg1JSQ.mjs.map} +1 -1
- package/dist/chunks/chevrons-up-down-DtBUG1i8.mjs +22 -0
- package/dist/chunks/{chevrons-up-down-DBgvRkZm.mjs.map → chevrons-up-down-DtBUG1i8.mjs.map} +1 -1
- package/dist/chunks/circle-BLWMZ9yp.mjs +17 -0
- package/dist/chunks/{circle-CGqt18Bd.mjs.map → circle-BLWMZ9yp.mjs.map} +1 -1
- package/dist/chunks/command-C8cVzg-x.mjs +611 -0
- package/dist/chunks/command-C8cVzg-x.mjs.map +1 -0
- package/dist/chunks/createLucideIcon-Ba0IWqsz.mjs +60 -0
- package/dist/chunks/{createLucideIcon-L-tld2uc.mjs.map → createLucideIcon-Ba0IWqsz.mjs.map} +1 -1
- package/dist/chunks/dialog-D9vbxUuQ.mjs +80 -0
- package/dist/chunks/{dialog-36eqHzT3.mjs.map → dialog-D9vbxUuQ.mjs.map} +1 -1
- package/dist/chunks/hover-card-idvDPXrI.mjs +274 -0
- package/dist/chunks/{hover-card-Cnd58du6.mjs.map → hover-card-idvDPXrI.mjs.map} +1 -1
- package/dist/chunks/index-6JUj2Tld.mjs +18 -0
- package/dist/chunks/{index-CRxQlsb9.mjs.map → index-6JUj2Tld.mjs.map} +1 -1
- package/dist/chunks/index-B0IElWB4.mjs +51 -0
- package/dist/chunks/{index-vmPXTidH.mjs.map → index-B0IElWB4.mjs.map} +1 -1
- package/dist/chunks/index-B4VRyyD1.mjs +40 -0
- package/dist/chunks/index-B4VRyyD1.mjs.map +1 -0
- package/dist/chunks/index-BE-_q4IW.mjs +266 -0
- package/dist/chunks/index-BE-_q4IW.mjs.map +1 -0
- package/dist/chunks/index-BNxaLFA6.mjs +216 -0
- package/dist/chunks/{index-LvOFIVGz.mjs.map → index-BNxaLFA6.mjs.map} +1 -1
- package/dist/chunks/index-BZUrHhU8.mjs +7 -0
- package/dist/chunks/{index-CLtWFQL5.mjs.map → index-BZUrHhU8.mjs.map} +1 -1
- package/dist/chunks/index-B_FsTtnF.mjs +110 -0
- package/dist/chunks/{index-CCcl327A.mjs.map → index-B_FsTtnF.mjs.map} +1 -1
- package/dist/chunks/index-CAg47KJ6.mjs +13 -0
- package/dist/chunks/{index-CXszXOf_.mjs.map → index-CAg47KJ6.mjs.map} +1 -1
- package/dist/chunks/index-CXuEm8w1.mjs +12 -0
- package/dist/chunks/{index-CU_y1XAz.mjs.map → index-CXuEm8w1.mjs.map} +1 -1
- package/dist/chunks/index-C_jFwfR_.mjs +77 -0
- package/dist/chunks/{index-CybgQKpz.mjs.map → index-C_jFwfR_.mjs.map} +1 -1
- package/dist/chunks/index-CglX-DNW.mjs +21 -0
- package/dist/chunks/index-CglX-DNW.mjs.map +1 -0
- package/dist/chunks/index-CyMuypYR.mjs +324 -0
- package/dist/chunks/{index-DUNcuWJE.mjs.map → index-CyMuypYR.mjs.map} +1 -1
- package/dist/chunks/index-D0S6rRRE.mjs +50 -0
- package/dist/chunks/{index-w9bxia3O.mjs.map → index-D0S6rRRE.mjs.map} +1 -1
- package/dist/chunks/index-D23BhVQG.mjs +859 -0
- package/dist/chunks/{index-DZHMFdr0.mjs.map → index-D23BhVQG.mjs.map} +1 -1
- package/dist/chunks/index-D2wfJaZh.mjs +145 -0
- package/dist/chunks/index-D2wfJaZh.mjs.map +1 -0
- package/dist/chunks/index-DNvm9MP3.mjs +34 -0
- package/dist/chunks/{index-D2sZp5OP.mjs.map → index-DNvm9MP3.mjs.map} +1 -1
- package/dist/chunks/index-Dm4_czlz.mjs +12 -0
- package/dist/chunks/index-Dm4_czlz.mjs.map +1 -0
- package/dist/chunks/index-PaJVyocC.mjs +151 -0
- package/dist/chunks/index-PaJVyocC.mjs.map +1 -0
- package/dist/chunks/index-kr6_v_F8.mjs +2370 -0
- package/dist/chunks/index-kr6_v_F8.mjs.map +1 -0
- package/dist/chunks/index-sz_BcBbA.mjs +1210 -0
- package/dist/chunks/index-sz_BcBbA.mjs.map +1 -0
- package/dist/chunks/input-DK1slFF1.mjs +14 -0
- package/dist/chunks/{input-85UFztMJ.mjs.map → input-DK1slFF1.mjs.map} +1 -1
- package/dist/chunks/label-D7ONQdHc.mjs +32 -0
- package/dist/chunks/{label-CICFzZIt.mjs.map → label-D7ONQdHc.mjs.map} +1 -1
- package/dist/chunks/pagination-BM_IQ6Qk.mjs +106 -0
- package/dist/chunks/{pagination-CReDQes6.mjs.map → pagination-BM_IQ6Qk.mjs.map} +1 -1
- package/dist/chunks/popover-D3F326FR.mjs +308 -0
- package/dist/chunks/{popover-Cn2ZTvKd.mjs.map → popover-D3F326FR.mjs.map} +1 -1
- package/dist/chunks/progress-BCl5yD5Q.mjs +99 -0
- package/dist/chunks/{progress-CSxQH6-f.mjs.map → progress-BCl5yD5Q.mjs.map} +1 -1
- package/dist/chunks/scroll-area-DB3eUx8V.mjs +791 -0
- package/dist/chunks/scroll-area-DB3eUx8V.mjs.map +1 -0
- package/dist/chunks/select-Cw81y8pT.mjs +104 -0
- package/dist/chunks/{select-BR6_N_Yo.mjs.map → select-Cw81y8pT.mjs.map} +1 -1
- package/dist/chunks/separator-2k1C7RSn.mjs +48 -0
- package/dist/chunks/{separator-BB6-E9Z1.mjs.map → separator-2k1C7RSn.mjs.map} +1 -1
- package/dist/chunks/skeleton-qx8-vr62.mjs +13 -0
- package/dist/chunks/{skeleton-XPWWiaac.mjs.map → skeleton-qx8-vr62.mjs.map} +1 -1
- package/dist/chunks/sortable-D8ayoe_b.mjs +4221 -0
- package/dist/chunks/sortable-D8ayoe_b.mjs.map +1 -0
- package/dist/chunks/table-BDNUhtz-.mjs +62 -0
- package/dist/chunks/{table-LQIHzPHi.mjs.map → table-BDNUhtz-.mjs.map} +1 -1
- package/dist/chunks/toggle-CE2ycSdL.mjs +65 -0
- package/dist/chunks/{toggle-Co72WXGd.mjs.map → toggle-CE2ycSdL.mjs.map} +1 -1
- package/dist/chunks/tooltip-DLD0ycR4.mjs +596 -0
- package/dist/chunks/{tooltip-qX2HjdJP.mjs.map → tooltip-DLD0ycR4.mjs.map} +1 -1
- package/dist/chunks/tslib.es6-BgHLrbno.mjs +61 -0
- package/dist/chunks/{tslib.es6-cMGqxriw.mjs.map → tslib.es6-BgHLrbno.mjs.map} +1 -1
- package/dist/chunks/utils-BUelq9Ro.mjs +42 -0
- package/dist/chunks/utils-BUelq9Ro.mjs.map +1 -0
- package/dist/chunks/x-Bjz0Vo6R.mjs +22 -0
- package/dist/chunks/{x-BNLl0E-E.mjs.map → x-Bjz0Vo6R.mjs.map} +1 -1
- package/dist/combobox/index.mjs +65 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.mjs +23 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/data-table/index.mjs +673 -1
- package/dist/data-table/index.mjs.map +1 -1
- package/dist/dialog/index.mjs +22 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/dropdown-menu/index.mjs +438 -1
- package/dist/dropdown-menu/index.mjs.map +1 -1
- package/dist/dropzone/index.mjs +7839 -1
- package/dist/dropzone/index.mjs.map +1 -1
- package/dist/form/index.mjs +649 -1
- package/dist/form/index.mjs.map +1 -1
- package/dist/hover-card/index.mjs +18 -1
- package/dist/hover-card/index.mjs.map +1 -1
- package/dist/icon/index.mjs +317 -1
- package/dist/icon/index.mjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/input/index.mjs +4 -1
- package/dist/input/index.mjs.map +1 -1
- package/dist/ivt.css +1 -1
- package/dist/label/index.mjs +8 -1
- package/dist/label/index.mjs.map +1 -1
- package/dist/menubar/index.mjs +583 -1
- package/dist/menubar/index.mjs.map +1 -1
- package/dist/multi-select/index.mjs +297 -1
- package/dist/multi-select/index.mjs.map +1 -1
- package/dist/pagination/index.mjs +10 -1
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/popover/index.mjs +21 -1
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.mjs +9 -1
- package/dist/progress/index.mjs.map +1 -1
- package/dist/radio-group/index.mjs +267 -1
- package/dist/radio-group/index.mjs.map +1 -1
- package/dist/scroll-area/index.mjs +15 -1
- package/dist/scroll-area/index.mjs.map +1 -1
- package/dist/select/index.mjs +8 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/separator/index.mjs +8 -1
- package/dist/separator/index.mjs.map +1 -1
- package/dist/sheet/index.mjs +96 -1
- package/dist/sheet/index.mjs.map +1 -1
- package/dist/skeleton/index.mjs +4 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/sonner/index.mjs +1140 -1
- package/dist/sonner/index.mjs.map +1 -1
- package/dist/sortable/index.mjs +8 -1
- package/dist/sortable/index.mjs.map +1 -1
- package/dist/table/index.mjs +4 -1
- package/dist/table/index.mjs.map +1 -1
- package/dist/tabs/index.mjs +193 -1
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.mjs +13 -1
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/toast/index.mjs +705 -1
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toggle/index.mjs +12 -1
- package/dist/toggle/index.mjs.map +1 -1
- package/dist/toggle-group/index.mjs +219 -1
- package/dist/toggle-group/index.mjs.map +1 -1
- package/dist/tooltip/index.mjs +20 -1
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunks/_commonjsHelpers-6qLFzZa5.mjs +0 -2
- package/dist/chunks/_commonjsHelpers-6qLFzZa5.mjs.map +0 -1
- package/dist/chunks/accordion-CdshDFZC.mjs +0 -2
- package/dist/chunks/badge-BYqshEmA.mjs +0 -2
- package/dist/chunks/bundle-mjs-9BXytT_r.mjs +0 -2
- package/dist/chunks/button-DrFZXJ7z.mjs +0 -2
- package/dist/chunks/calendar-BY6t8wdJ.mjs +0 -2
- package/dist/chunks/calendar-BY6t8wdJ.mjs.map +0 -1
- package/dist/chunks/check-CimnOyD7.mjs +0 -2
- package/dist/chunks/chevron-down-D3fvbjxE.mjs +0 -2
- package/dist/chunks/chevron-left-CrN7DlXg.mjs +0 -2
- package/dist/chunks/chevron-right-BMSCuDGK.mjs +0 -2
- package/dist/chunks/chevrons-up-down-DBgvRkZm.mjs +0 -2
- package/dist/chunks/circle-CGqt18Bd.mjs +0 -2
- package/dist/chunks/command-C6ON-ciq.mjs +0 -2
- package/dist/chunks/command-C6ON-ciq.mjs.map +0 -1
- package/dist/chunks/createLucideIcon-L-tld2uc.mjs +0 -2
- package/dist/chunks/dialog-36eqHzT3.mjs +0 -2
- package/dist/chunks/hover-card-Cnd58du6.mjs +0 -2
- package/dist/chunks/index-B4QsDzeM.mjs +0 -2
- package/dist/chunks/index-B4QsDzeM.mjs.map +0 -1
- package/dist/chunks/index-BdpYc58_.mjs +0 -2
- package/dist/chunks/index-BdpYc58_.mjs.map +0 -1
- package/dist/chunks/index-CCcl327A.mjs +0 -2
- package/dist/chunks/index-CLtWFQL5.mjs +0 -2
- package/dist/chunks/index-COvW87ew.mjs +0 -2
- package/dist/chunks/index-COvW87ew.mjs.map +0 -1
- package/dist/chunks/index-CRxQlsb9.mjs +0 -2
- package/dist/chunks/index-CU_y1XAz.mjs +0 -2
- package/dist/chunks/index-CXszXOf_.mjs +0 -2
- package/dist/chunks/index-CdJCOoFA.mjs +0 -2
- package/dist/chunks/index-CdJCOoFA.mjs.map +0 -1
- package/dist/chunks/index-Cpq7N5Ej.mjs +0 -2
- package/dist/chunks/index-Cpq7N5Ej.mjs.map +0 -1
- package/dist/chunks/index-CybgQKpz.mjs +0 -2
- package/dist/chunks/index-D2sZp5OP.mjs +0 -2
- package/dist/chunks/index-DOyt-JEx.mjs +0 -2
- package/dist/chunks/index-DOyt-JEx.mjs.map +0 -1
- package/dist/chunks/index-DUNcuWJE.mjs +0 -2
- package/dist/chunks/index-DZHMFdr0.mjs +0 -2
- package/dist/chunks/index-LvOFIVGz.mjs +0 -2
- package/dist/chunks/index-lvPXnk5F.mjs +0 -2
- package/dist/chunks/index-lvPXnk5F.mjs.map +0 -1
- package/dist/chunks/index-vmPXTidH.mjs +0 -2
- package/dist/chunks/index-w9bxia3O.mjs +0 -2
- package/dist/chunks/index-xew3kygQ.mjs +0 -2
- package/dist/chunks/index-xew3kygQ.mjs.map +0 -1
- package/dist/chunks/input-85UFztMJ.mjs +0 -2
- package/dist/chunks/label-CICFzZIt.mjs +0 -2
- package/dist/chunks/pagination-CReDQes6.mjs +0 -2
- package/dist/chunks/popover-Cn2ZTvKd.mjs +0 -2
- package/dist/chunks/progress-CSxQH6-f.mjs +0 -2
- package/dist/chunks/scroll-area-CvCz7cL_.mjs +0 -2
- package/dist/chunks/scroll-area-CvCz7cL_.mjs.map +0 -1
- package/dist/chunks/select-BR6_N_Yo.mjs +0 -2
- package/dist/chunks/separator-BB6-E9Z1.mjs +0 -2
- package/dist/chunks/skeleton-XPWWiaac.mjs +0 -2
- package/dist/chunks/sortable-CqPFGn8Q.mjs +0 -2
- package/dist/chunks/sortable-CqPFGn8Q.mjs.map +0 -1
- package/dist/chunks/table-LQIHzPHi.mjs +0 -2
- package/dist/chunks/toggle-Co72WXGd.mjs +0 -2
- package/dist/chunks/tooltip-qX2HjdJP.mjs +0 -2
- package/dist/chunks/tslib.es6-cMGqxriw.mjs +0 -2
- package/dist/chunks/utils-BctauAA9.mjs +0 -2
- package/dist/chunks/utils-BctauAA9.mjs.map +0 -1
- package/dist/chunks/x-BNLl0E-E.mjs +0 -2
@@ -1,2 +0,0 @@
|
|
1
|
-
import{c as e}from"./utils-BctauAA9.mjs";import{R as t,P as r,O as n,a as l}from"./index-DUNcuWJE.mjs";import*as a from"react";import o from"react";import{P as u}from"./index-w9bxia3O.mjs";import{u as i}from"./index-CRxQlsb9.mjs";import{c}from"./index-COvW87ew.mjs";import{D as d,e as s,h as m,c as f,b as p}from"./dialog-36eqHzT3.mjs";import{c as v}from"./createLucideIcon-L-tld2uc.mjs";const h=v("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var g=.999,b=/[\\\/_+.#"@\[\(\{&]/,E=/[\\\/_+.#"@\[\(\{&]/g,x=/[\s-]/,k=/[\s-]/g;function w(e,t,r,n,l,a,o){if(a===t.length)return l===e.length?1:.99;var u=`${l},${a}`;if(void 0!==o[u])return o[u];for(var i,c,d,s,m=n.charAt(a),f=r.indexOf(m,l),p=0;f>=0;)(i=w(e,t,r,n,f+1,a+1,o))>p&&(f===l?i*=1:b.test(e.charAt(f-1))?(i*=.8,(d=e.slice(l,f-1).match(E))&&l>0&&(i*=Math.pow(g,d.length))):x.test(e.charAt(f-1))?(i*=.9,(s=e.slice(l,f-1).match(k))&&l>0&&(i*=Math.pow(g,s.length))):(i*=.17,l>0&&(i*=Math.pow(g,f-l))),e.charAt(f)!==t.charAt(a)&&(i*=.9999)),(i<.1&&r.charAt(f-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(f-1)!==n.charAt(a))&&(.1*(c=w(e,t,r,n,f+1,a+2,o))>i&&(i=.1*c)),i>p&&(p=i),f=r.indexOf(m,f+1);return o[u]=p,p}function y(e){return e.toLowerCase().replace(k," ")}function S(e,t,r){return w(e=r&&r.length>0?""+(e+" "+r.join(" ")):e,t,y(e),y(t),0,0,{})}var I='[cmdk-group=""]',C='[cmdk-group-items=""]',A='[cmdk-item=""]',_=`${A}:not([aria-disabled="true"])`,R="cmdk-item-select",N="data-value",M=(e,t,r)=>S(e,t,r),j=a.createContext(void 0),P=()=>a.useContext(j),D=a.createContext(void 0),q=()=>a.useContext(D),L=a.createContext(void 0),$=a.forwardRef((e,t)=>{let r=X(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=X(()=>new Set),l=X(()=>new Map),o=X(()=>new Map),c=X(()=>new Set),d=Q(e),{label:s,children:m,value:f,onValueChange:p,filter:v,shouldFilter:h,loop:g,disablePointerSelection:b=!1,vimBindings:E=!0,...x}=e,k=i(),w=i(),y=i(),S=a.useRef(null),P=ee();T(()=>{if(void 0!==f){let e=f.trim();r.current.value=e,q.emit()}},[f]),T(()=>{P(6,V)},[]);let q=a.useMemo(()=>({subscribe:e=>(c.current.add(e),()=>c.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var l,a,o,u;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)O(),F(),P(1,K);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(y);e?e.focus():null==(l=document.getElementById(k))||l.focus()}if(P(7,()=>{var e;r.current.selectedItemId=null==(e=z())?void 0:e.id,q.emit()}),n||P(5,V),void 0!==(null==(a=d.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(u=(o=d.current).onValueChange)||u.call(o,e))}}q.emit()}},emit:()=>{c.current.forEach(e=>e())}}),[]),L=a.useMemo(()=>({value:(e,t,n)=>{var l;t!==(null==(l=o.current.get(e))?void 0:l.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,$(t,n)),P(2,()=>{F(),q.emit()}))},item:(e,t)=>(n.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),P(3,()=>{O(),F(),r.current.value||K(),q.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=z();P(4,()=>{O(),(null==t?void 0:t.getAttribute("id"))===e&&K(),q.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{o.current.delete(e),l.current.delete(e)}),filter:()=>d.current.shouldFilter,label:s||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:k,inputId:y,labelId:w,listInnerRef:S}),[]);function $(e,t){var n,l;let a=null!=(l=null==(n=d.current)?void 0:n.filter)?l:M;return e?a(e,r.current.search,t):0}function F(){if(!r.current.search||!1===d.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=l.current.get(r),a=0;n.forEach(t=>{let r=e.get(t);a=Math.max(r,a)}),t.push([r,a])});let n=S.current;B().sort((t,r)=>{var n,l;let a=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(l=e.get(a))?l:0)}).forEach(e=>{let t=e.closest(C);t?t.appendChild(e.parentElement===t?e:e.closest(`${C} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${C} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=S.current)?void 0:t.querySelector(`${I}[${N}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function K(){let e=B().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(N);q.setState("value",t||void 0)}function O(){var e,t,a,u;if(!r.current.search||!1===d.current.shouldFilter)return void(r.current.filtered.count=n.current.size);r.current.filtered.groups=new Set;let i=0;for(let l of n.current){let n=$(null!=(t=null==(e=o.current.get(l))?void 0:e.value)?t:"",null!=(u=null==(a=o.current.get(l))?void 0:a.keywords)?u:[]);r.current.filtered.items.set(l,n),n>0&&i++}for(let[e,t]of l.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=i}function V(){var e,t,r;let n=z();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(I))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function z(){var e;return null==(e=S.current)?void 0:e.querySelector(`${A}[aria-selected="true"]`)}function B(){var e;return Array.from((null==(e=S.current)?void 0:e.querySelectorAll(_))||[])}function G(e){let t=B()[e];t&&q.setState("value",t.getAttribute(N))}function H(e){var t;let r=z(),n=B(),l=n.findIndex(e=>e===r),a=n[l+e];null!=(t=d.current)&&t.loop&&(a=l+e<0?n[n.length-1]:l+e===n.length?n[0]:n[l+e]),a&&q.setState("value",a.getAttribute(N))}function U(e){let t,r=z(),n=null==r?void 0:r.closest(I);for(;n&&!t;)n=e>0?W(n,I):J(n,I),t=null==n?void 0:n.querySelector(_);t?q.setState("value",t.getAttribute(N)):H(e)}let Y=()=>G(B().length-1),Z=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?U(1):H(1)},ne=e=>{e.preventDefault(),e.metaKey?G(0):e.altKey?U(-1):H(-1)};return a.createElement(u.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=x.onKeyDown)||t.call(x,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!r)switch(e.key){case"n":case"j":E&&e.ctrlKey&&Z(e);break;case"ArrowDown":Z(e);break;case"p":case"k":E&&e.ctrlKey&&ne(e);break;case"ArrowUp":ne(e);break;case"Home":e.preventDefault(),G(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=z();if(t){let e=new Event(R);t.dispatchEvent(e)}}}}},a.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:re},s),te(e,e=>a.createElement(D.Provider,{value:q},a.createElement(j.Provider,{value:L},e))))}),F=a.forwardRef((e,t)=>{var r,n;let l=i(),o=a.useRef(null),d=a.useContext(L),s=P(),m=Q(e),f=null!=(n=null==(r=m.current)?void 0:r.forceMount)?n:null==d?void 0:d.forceMount;T(()=>{if(!f)return s.item(l,null==d?void 0:d.id)},[f]);let p=Z(l,o,[e.value,e.children,o],e.keywords),v=q(),h=Y(e=>e.value&&e.value===p.current),g=Y(e=>!(!f&&!1!==s.filter())||(!e.search||e.filtered.items.get(l)>0));function b(){var e,t;E(),null==(t=(e=m.current).onSelect)||t.call(e,p.current)}function E(){v.setState("value",p.current,!0)}if(a.useEffect(()=>{let t=o.current;if(t&&!e.disabled)return t.addEventListener(R,b),()=>t.removeEventListener(R,b)},[g,e.onSelect,e.disabled]),!g)return null;let{disabled:x,value:k,onSelect:w,forceMount:y,keywords:S,...I}=e;return a.createElement(u.div,{ref:c(o,t),...I,id:l,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!h,"data-disabled":!!x,"data-selected":!!h,onPointerMove:x||s.getDisablePointerSelection()?void 0:E,onClick:x?void 0:b},e.children)}),K=a.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:l,...o}=e,d=i(),s=a.useRef(null),m=a.useRef(null),f=i(),p=P(),v=Y(e=>!(!l&&!1!==p.filter())||(!e.search||e.filtered.groups.has(d)));T(()=>p.group(d),[]),Z(d,s,[e.value,e.heading,m]);let h=a.useMemo(()=>({id:d,forceMount:l}),[l]);return a.createElement(u.div,{ref:c(s,t),...o,"cmdk-group":"",role:"presentation",hidden:!v||void 0},r&&a.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:f},r),te(e,e=>a.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?f:void 0},a.createElement(L.Provider,{value:h},e))))}),O=a.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,l=a.useRef(null),o=Y(e=>!e.search);return r||o?a.createElement(u.div,{ref:c(l,t),...n,"cmdk-separator":"",role:"separator"}):null}),V=a.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,l=null!=e.value,o=q(),i=Y(e=>e.search),c=Y(e=>e.selectedItemId),d=P();return a.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),a.createElement(u.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":c,id:d.inputId,type:"text",value:l?e.value:i,onChange:e=>{l||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),z=a.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...l}=e,o=a.useRef(null),i=a.useRef(null),d=Y(e=>e.selectedItemId),s=P();return a.useEffect(()=>{if(i.current&&o.current){let e,t=i.current,r=o.current,n=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;r.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return n.observe(t),()=>{cancelAnimationFrame(e),n.unobserve(t)}}},[]),a.createElement(u.div,{ref:c(o,t),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":n,id:s.listId},te(e,e=>a.createElement("div",{ref:c(i,s.listInnerRef),"cmdk-list-sizer":""},e)))}),B=a.forwardRef((e,o)=>{let{open:u,onOpenChange:i,overlayClassName:c,contentClassName:d,container:s,...m}=e;return a.createElement(t,{open:u,onOpenChange:i},a.createElement(r,{container:s},a.createElement(n,{"cmdk-overlay":"",className:c}),a.createElement(l,{"aria-label":e.label,"cmdk-dialog":"",className:d},a.createElement($,{ref:o,...m}))))}),G=a.forwardRef((e,t)=>Y(e=>0===e.filtered.count)?a.createElement(u.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),H=a.forwardRef((e,t)=>{let{progress:r,children:n,label:l="Loading...",...o}=e;return a.createElement(u.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},te(e,e=>a.createElement("div",{"aria-hidden":!0},e)))}),U=Object.assign($,{List:z,Item:F,Input:V,Group:K,Separator:O,Dialog:B,Empty:G,Loading:H});function W(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function J(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Q(e){let t=a.useRef(e);return T(()=>{t.current=e}),t}var T="undefined"==typeof window?a.useEffect:a.useLayoutEffect;function X(e){let t=a.useRef();return void 0===t.current&&(t.current=e()),t}function Y(e){let t=q(),r=()=>e(t.snapshot());return a.useSyncExternalStore(t.subscribe,r,r)}function Z(e,t,r,n=[]){let l=a.useRef(),o=P();return T(()=>{var a;let u=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():l.current}})(),i=n.map(e=>e.trim());o.value(e,u,i),null==(a=t.current)||a.setAttribute(N,u),l.current=u}),l}var ee=()=>{let[e,t]=a.useState(),r=X(()=>new Map);return T(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function te({asChild:e,children:t},r){return e&&a.isValidElement(t)?a.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},r(t.props.children)):r(t)}var re={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ne({className:t,...r}){return o.createElement(U,{"data-slot":"command",className:e("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...r})}function le({title:e="Command Palette",description:t="Search for a command to run...",children:r,...n}){return o.createElement(d,n,o.createElement(s,{className:"sr-only"},o.createElement(m,null,e),o.createElement(f,null,t)),o.createElement(p,{className:"overflow-hidden p-0"},o.createElement(ne,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"},r)))}function ae({className:t,...r}){return o.createElement("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3"},o.createElement(h,{className:"size-4 shrink-0 opacity-50"}),o.createElement(U.Input,{"data-slot":"command-input",className:e("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...r}))}function oe({className:t,...r}){return o.createElement(U.List,{"data-slot":"command-list",className:e("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...r})}function ue({...e}){return o.createElement(U.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function ie({className:t,...r}){return o.createElement(U.Group,{"data-slot":"command-group",className:e("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...r})}function ce({className:t,...r}){return o.createElement(U.Separator,{"data-slot":"command-separator",className:e("bg-border -mx-1 h-px",t),...r})}function de({className:t,...r}){return o.createElement(U.Item,{"data-slot":"command-item",className:e("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r})}function se({className:t,...r}){return o.createElement("span",{"data-slot":"command-shortcut",className:e("text-muted-foreground ml-auto text-xs tracking-widest",t),...r})}export{ne as C,h as S,le as a,ae as b,oe as c,ue as d,ie as e,de as f,se as g,ce as h};
|
2
|
-
//# sourceMappingURL=command-C6ON-ciq.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"command-C6ON-ciq.mjs","sources":["../../node_modules/lucide-react/dist/esm/icons/search.js","../../node_modules/cmdk/dist/chunk-NZJY6EH4.mjs","../../node_modules/cmdk/dist/index.mjs","../../src/components/ui/command/command.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }],\n [\"path\", { d: \"m21 21-4.3-4.3\", key: \"1qie3q\" }]\n];\nconst Search = createLucideIcon(\"Search\", __iconNode);\n\nexport { __iconNode, Search as default };\n//# sourceMappingURL=search.js.map\n","var U=1,Y=.9,H=.8,J=.17,p=.1,u=.999,$=.9999;var k=.99,m=/[\\\\\\/_+.#\"@\\[\\(\\{&]/,B=/[\\\\\\/_+.#\"@\\[\\(\\{&]/g,K=/[\\s-]/,X=/[\\s-]/g;function G(_,C,h,P,A,f,O){if(f===C.length)return A===_.length?U:k;var T=`${A},${f}`;if(O[T]!==void 0)return O[T];for(var L=P.charAt(f),c=h.indexOf(L,A),S=0,E,N,R,M;c>=0;)E=G(_,C,h,P,c+1,f+1,O),E>S&&(c===A?E*=U:m.test(_.charAt(c-1))?(E*=H,R=_.slice(A,c-1).match(B),R&&A>0&&(E*=Math.pow(u,R.length))):K.test(_.charAt(c-1))?(E*=Y,M=_.slice(A,c-1).match(X),M&&A>0&&(E*=Math.pow(u,M.length))):(E*=J,A>0&&(E*=Math.pow(u,c-A))),_.charAt(c)!==C.charAt(f)&&(E*=$)),(E<p&&h.charAt(c-1)===P.charAt(f+1)||P.charAt(f+1)===P.charAt(f)&&h.charAt(c-1)!==P.charAt(f))&&(N=G(_,C,h,P,c+1,f+2,O),N*p>E&&(E=N*p)),E>S&&(S=E),c=h.indexOf(L,c+1);return O[T]=S,S}function D(_){return _.toLowerCase().replace(X,\" \")}function W(_,C,h){return _=h&&h.length>0?`${_+\" \"+h.join(\" \")}`:_,G(_,C,D(_),D(C),0,0,{})}export{W as a};\n","\"use client\";import{a as ae}from\"./chunk-NZJY6EH4.mjs\";import*as w from\"@radix-ui/react-dialog\";import*as t from\"react\";import{Primitive as D}from\"@radix-ui/react-primitive\";import{useId as H}from\"@radix-ui/react-id\";import{composeRefs as G}from\"@radix-ui/react-compose-refs\";var N='[cmdk-group=\"\"]',Y='[cmdk-group-items=\"\"]',be='[cmdk-group-heading=\"\"]',le='[cmdk-item=\"\"]',ce=`${le}:not([aria-disabled=\"true\"])`,Z=\"cmdk-item-select\",T=\"data-value\",Re=(r,o,n)=>ae(r,o,n),ue=t.createContext(void 0),K=()=>t.useContext(ue),de=t.createContext(void 0),ee=()=>t.useContext(de),fe=t.createContext(void 0),me=t.forwardRef((r,o)=>{let n=L(()=>{var e,a;return{search:\"\",value:(a=(e=r.value)!=null?e:r.defaultValue)!=null?a:\"\",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),u=L(()=>new Set),c=L(()=>new Map),d=L(()=>new Map),f=L(()=>new Set),p=pe(r),{label:b,children:m,value:R,onValueChange:x,filter:C,shouldFilter:S,loop:A,disablePointerSelection:ge=!1,vimBindings:j=!0,...O}=r,$=H(),q=H(),_=H(),I=t.useRef(null),v=ke();k(()=>{if(R!==void 0){let e=R.trim();n.current.value=e,E.emit()}},[R]),k(()=>{v(6,ne)},[]);let E=t.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>n.current,setState:(e,a,s)=>{var i,l,g,y;if(!Object.is(n.current[e],a)){if(n.current[e]=a,e===\"search\")J(),z(),v(1,W);else if(e===\"value\"){if(document.activeElement.hasAttribute(\"cmdk-input\")||document.activeElement.hasAttribute(\"cmdk-root\")){let h=document.getElementById(_);h?h.focus():(i=document.getElementById($))==null||i.focus()}if(v(7,()=>{var h;n.current.selectedItemId=(h=M())==null?void 0:h.id,E.emit()}),s||v(5,ne),((l=p.current)==null?void 0:l.value)!==void 0){let h=a!=null?a:\"\";(y=(g=p.current).onValueChange)==null||y.call(g,h);return}}E.emit()}},emit:()=>{f.current.forEach(e=>e())}}),[]),U=t.useMemo(()=>({value:(e,a,s)=>{var i;a!==((i=d.current.get(e))==null?void 0:i.value)&&(d.current.set(e,{value:a,keywords:s}),n.current.filtered.items.set(e,te(a,s)),v(2,()=>{z(),E.emit()}))},item:(e,a)=>(u.current.add(e),a&&(c.current.has(a)?c.current.get(a).add(e):c.current.set(a,new Set([e]))),v(3,()=>{J(),z(),n.current.value||W(),E.emit()}),()=>{d.current.delete(e),u.current.delete(e),n.current.filtered.items.delete(e);let s=M();v(4,()=>{J(),(s==null?void 0:s.getAttribute(\"id\"))===e&&W(),E.emit()})}),group:e=>(c.current.has(e)||c.current.set(e,new Set),()=>{d.current.delete(e),c.current.delete(e)}),filter:()=>p.current.shouldFilter,label:b||r[\"aria-label\"],getDisablePointerSelection:()=>p.current.disablePointerSelection,listId:$,inputId:_,labelId:q,listInnerRef:I}),[]);function te(e,a){var i,l;let s=(l=(i=p.current)==null?void 0:i.filter)!=null?l:Re;return e?s(e,n.current.search,a):0}function z(){if(!n.current.search||p.current.shouldFilter===!1)return;let e=n.current.filtered.items,a=[];n.current.filtered.groups.forEach(i=>{let l=c.current.get(i),g=0;l.forEach(y=>{let h=e.get(y);g=Math.max(h,g)}),a.push([i,g])});let s=I.current;V().sort((i,l)=>{var h,F;let g=i.getAttribute(\"id\"),y=l.getAttribute(\"id\");return((h=e.get(y))!=null?h:0)-((F=e.get(g))!=null?F:0)}).forEach(i=>{let l=i.closest(Y);l?l.appendChild(i.parentElement===l?i:i.closest(`${Y} > *`)):s.appendChild(i.parentElement===s?i:i.closest(`${Y} > *`))}),a.sort((i,l)=>l[1]-i[1]).forEach(i=>{var g;let l=(g=I.current)==null?void 0:g.querySelector(`${N}[${T}=\"${encodeURIComponent(i[0])}\"]`);l==null||l.parentElement.appendChild(l)})}function W(){let e=V().find(s=>s.getAttribute(\"aria-disabled\")!==\"true\"),a=e==null?void 0:e.getAttribute(T);E.setState(\"value\",a||void 0)}function J(){var a,s,i,l;if(!n.current.search||p.current.shouldFilter===!1){n.current.filtered.count=u.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let g of u.current){let y=(s=(a=d.current.get(g))==null?void 0:a.value)!=null?s:\"\",h=(l=(i=d.current.get(g))==null?void 0:i.keywords)!=null?l:[],F=te(y,h);n.current.filtered.items.set(g,F),F>0&&e++}for(let[g,y]of c.current)for(let h of y)if(n.current.filtered.items.get(h)>0){n.current.filtered.groups.add(g);break}n.current.filtered.count=e}function ne(){var a,s,i;let e=M();e&&(((a=e.parentElement)==null?void 0:a.firstChild)===e&&((i=(s=e.closest(N))==null?void 0:s.querySelector(be))==null||i.scrollIntoView({block:\"nearest\"})),e.scrollIntoView({block:\"nearest\"}))}function M(){var e;return(e=I.current)==null?void 0:e.querySelector(`${le}[aria-selected=\"true\"]`)}function V(){var e;return Array.from(((e=I.current)==null?void 0:e.querySelectorAll(ce))||[])}function X(e){let s=V()[e];s&&E.setState(\"value\",s.getAttribute(T))}function Q(e){var g;let a=M(),s=V(),i=s.findIndex(y=>y===a),l=s[i+e];(g=p.current)!=null&&g.loop&&(l=i+e<0?s[s.length-1]:i+e===s.length?s[0]:s[i+e]),l&&E.setState(\"value\",l.getAttribute(T))}function re(e){let a=M(),s=a==null?void 0:a.closest(N),i;for(;s&&!i;)s=e>0?we(s,N):De(s,N),i=s==null?void 0:s.querySelector(ce);i?E.setState(\"value\",i.getAttribute(T)):Q(e)}let oe=()=>X(V().length-1),ie=e=>{e.preventDefault(),e.metaKey?oe():e.altKey?re(1):Q(1)},se=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?re(-1):Q(-1)};return t.createElement(D.div,{ref:o,tabIndex:-1,...O,\"cmdk-root\":\"\",onKeyDown:e=>{var s;(s=O.onKeyDown)==null||s.call(O,e);let a=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||a))switch(e.key){case\"n\":case\"j\":{j&&e.ctrlKey&&ie(e);break}case\"ArrowDown\":{ie(e);break}case\"p\":case\"k\":{j&&e.ctrlKey&&se(e);break}case\"ArrowUp\":{se(e);break}case\"Home\":{e.preventDefault(),X(0);break}case\"End\":{e.preventDefault(),oe();break}case\"Enter\":{e.preventDefault();let i=M();if(i){let l=new Event(Z);i.dispatchEvent(l)}}}}},t.createElement(\"label\",{\"cmdk-label\":\"\",htmlFor:U.inputId,id:U.labelId,style:Te},b),B(r,e=>t.createElement(de.Provider,{value:E},t.createElement(ue.Provider,{value:U},e))))}),he=t.forwardRef((r,o)=>{var _,I;let n=H(),u=t.useRef(null),c=t.useContext(fe),d=K(),f=pe(r),p=(I=(_=f.current)==null?void 0:_.forceMount)!=null?I:c==null?void 0:c.forceMount;k(()=>{if(!p)return d.item(n,c==null?void 0:c.id)},[p]);let b=ve(n,u,[r.value,r.children,u],r.keywords),m=ee(),R=P(v=>v.value&&v.value===b.current),x=P(v=>p||d.filter()===!1?!0:v.search?v.filtered.items.get(n)>0:!0);t.useEffect(()=>{let v=u.current;if(!(!v||r.disabled))return v.addEventListener(Z,C),()=>v.removeEventListener(Z,C)},[x,r.onSelect,r.disabled]);function C(){var v,E;S(),(E=(v=f.current).onSelect)==null||E.call(v,b.current)}function S(){m.setState(\"value\",b.current,!0)}if(!x)return null;let{disabled:A,value:ge,onSelect:j,forceMount:O,keywords:$,...q}=r;return t.createElement(D.div,{ref:G(u,o),...q,id:n,\"cmdk-item\":\"\",role:\"option\",\"aria-disabled\":!!A,\"aria-selected\":!!R,\"data-disabled\":!!A,\"data-selected\":!!R,onPointerMove:A||d.getDisablePointerSelection()?void 0:S,onClick:A?void 0:C},r.children)}),Ee=t.forwardRef((r,o)=>{let{heading:n,children:u,forceMount:c,...d}=r,f=H(),p=t.useRef(null),b=t.useRef(null),m=H(),R=K(),x=P(S=>c||R.filter()===!1?!0:S.search?S.filtered.groups.has(f):!0);k(()=>R.group(f),[]),ve(f,p,[r.value,r.heading,b]);let C=t.useMemo(()=>({id:f,forceMount:c}),[c]);return t.createElement(D.div,{ref:G(p,o),...d,\"cmdk-group\":\"\",role:\"presentation\",hidden:x?void 0:!0},n&&t.createElement(\"div\",{ref:b,\"cmdk-group-heading\":\"\",\"aria-hidden\":!0,id:m},n),B(r,S=>t.createElement(\"div\",{\"cmdk-group-items\":\"\",role:\"group\",\"aria-labelledby\":n?m:void 0},t.createElement(fe.Provider,{value:C},S))))}),ye=t.forwardRef((r,o)=>{let{alwaysRender:n,...u}=r,c=t.useRef(null),d=P(f=>!f.search);return!n&&!d?null:t.createElement(D.div,{ref:G(c,o),...u,\"cmdk-separator\":\"\",role:\"separator\"})}),Se=t.forwardRef((r,o)=>{let{onValueChange:n,...u}=r,c=r.value!=null,d=ee(),f=P(m=>m.search),p=P(m=>m.selectedItemId),b=K();return t.useEffect(()=>{r.value!=null&&d.setState(\"search\",r.value)},[r.value]),t.createElement(D.input,{ref:o,...u,\"cmdk-input\":\"\",autoComplete:\"off\",autoCorrect:\"off\",spellCheck:!1,\"aria-autocomplete\":\"list\",role:\"combobox\",\"aria-expanded\":!0,\"aria-controls\":b.listId,\"aria-labelledby\":b.labelId,\"aria-activedescendant\":p,id:b.inputId,type:\"text\",value:c?r.value:f,onChange:m=>{c||d.setState(\"search\",m.target.value),n==null||n(m.target.value)}})}),Ce=t.forwardRef((r,o)=>{let{children:n,label:u=\"Suggestions\",...c}=r,d=t.useRef(null),f=t.useRef(null),p=P(m=>m.selectedItemId),b=K();return t.useEffect(()=>{if(f.current&&d.current){let m=f.current,R=d.current,x,C=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let S=m.offsetHeight;R.style.setProperty(\"--cmdk-list-height\",S.toFixed(1)+\"px\")})});return C.observe(m),()=>{cancelAnimationFrame(x),C.unobserve(m)}}},[]),t.createElement(D.div,{ref:G(d,o),...c,\"cmdk-list\":\"\",role:\"listbox\",tabIndex:-1,\"aria-activedescendant\":p,\"aria-label\":u,id:b.listId},B(r,m=>t.createElement(\"div\",{ref:G(f,b.listInnerRef),\"cmdk-list-sizer\":\"\"},m)))}),xe=t.forwardRef((r,o)=>{let{open:n,onOpenChange:u,overlayClassName:c,contentClassName:d,container:f,...p}=r;return t.createElement(w.Root,{open:n,onOpenChange:u},t.createElement(w.Portal,{container:f},t.createElement(w.Overlay,{\"cmdk-overlay\":\"\",className:c}),t.createElement(w.Content,{\"aria-label\":r.label,\"cmdk-dialog\":\"\",className:d},t.createElement(me,{ref:o,...p}))))}),Ie=t.forwardRef((r,o)=>P(u=>u.filtered.count===0)?t.createElement(D.div,{ref:o,...r,\"cmdk-empty\":\"\",role:\"presentation\"}):null),Pe=t.forwardRef((r,o)=>{let{progress:n,children:u,label:c=\"Loading...\",...d}=r;return t.createElement(D.div,{ref:o,...d,\"cmdk-loading\":\"\",role:\"progressbar\",\"aria-valuenow\":n,\"aria-valuemin\":0,\"aria-valuemax\":100,\"aria-label\":c},B(r,f=>t.createElement(\"div\",{\"aria-hidden\":!0},f)))}),_e=Object.assign(me,{List:Ce,Item:he,Input:Se,Group:Ee,Separator:ye,Dialog:xe,Empty:Ie,Loading:Pe});function we(r,o){let n=r.nextElementSibling;for(;n;){if(n.matches(o))return n;n=n.nextElementSibling}}function De(r,o){let n=r.previousElementSibling;for(;n;){if(n.matches(o))return n;n=n.previousElementSibling}}function pe(r){let o=t.useRef(r);return k(()=>{o.current=r}),o}var k=typeof window==\"undefined\"?t.useEffect:t.useLayoutEffect;function L(r){let o=t.useRef();return o.current===void 0&&(o.current=r()),o}function P(r){let o=ee(),n=()=>r(o.snapshot());return t.useSyncExternalStore(o.subscribe,n,n)}function ve(r,o,n,u=[]){let c=t.useRef(),d=K();return k(()=>{var b;let f=(()=>{var m;for(let R of n){if(typeof R==\"string\")return R.trim();if(typeof R==\"object\"&&\"current\"in R)return R.current?(m=R.current.textContent)==null?void 0:m.trim():c.current}})(),p=u.map(m=>m.trim());d.value(r,f,p),(b=o.current)==null||b.setAttribute(T,f),c.current=f}),c}var ke=()=>{let[r,o]=t.useState(),n=L(()=>new Map);return k(()=>{n.current.forEach(u=>u()),n.current=new Map},[r]),(u,c)=>{n.current.set(u,c),o({})}};function Me(r){let o=r.type;return typeof o==\"function\"?o(r.props):\"render\"in o?o.render(r.props):r}function B({asChild:r,children:o},n){return r&&t.isValidElement(o)?t.cloneElement(Me(o),{ref:o.ref},n(o.props.children)):n(o)}var Te={position:\"absolute\",width:\"1px\",height:\"1px\",padding:\"0\",margin:\"-1px\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",borderWidth:\"0\"};export{_e as Command,xe as CommandDialog,Ie as CommandEmpty,Ee as CommandGroup,Se as CommandInput,he as CommandItem,Ce as CommandList,Pe as CommandLoading,me as CommandRoot,ye as CommandSeparator,Re as defaultFilter,P as useCommandState};\n","import {\n\tDialog,\n\tDialogContent,\n\tDialogDescription,\n\tDialogHeader,\n\tDialogTitle,\n} from \"@/components/ui/dialog\";\nimport { cn } from \"@/lib/utils\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { SearchIcon } from \"lucide-react\";\nimport React from \"react\";\n\nfunction Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {\n\treturn (\n\t\t<CommandPrimitive\n\t\t\tdata-slot=\"command\"\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CommandDialog({\n\ttitle = \"Command Palette\",\n\tdescription = \"Search for a command to run...\",\n\tchildren,\n\t...props\n}: React.ComponentProps<typeof Dialog> & {\n\ttitle?: string;\n\tdescription?: string;\n}) {\n\treturn (\n\t\t<Dialog {...props}>\n\t\t\t<DialogHeader className=\"sr-only\">\n\t\t\t\t<DialogTitle>{title}</DialogTitle>\n\t\t\t\t<DialogDescription>{description}</DialogDescription>\n\t\t\t</DialogHeader>\n\t\t\t<DialogContent className=\"overflow-hidden p-0\">\n\t\t\t\t<Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n\t\t\t\t\t{children}\n\t\t\t\t</Command>\n\t\t\t</DialogContent>\n\t\t</Dialog>\n\t);\n}\n\nfunction CommandInput({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof CommandPrimitive.Input>) {\n\treturn (\n\t\t<div data-slot=\"command-input-wrapper\" className=\"flex h-9 items-center gap-2 border-b px-3\">\n\t\t\t<SearchIcon className=\"size-4 shrink-0 opacity-50\" />\n\t\t\t<CommandPrimitive.Input\n\t\t\t\tdata-slot=\"command-input\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n\nfunction CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) {\n\treturn (\n\t\t<CommandPrimitive.List\n\t\t\tdata-slot=\"command-list\"\n\t\t\tclassName={cn(\"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n\treturn (\n\t\t<CommandPrimitive.Empty\n\t\t\tdata-slot=\"command-empty\"\n\t\t\tclassName=\"py-6 text-center text-sm\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CommandGroup({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof CommandPrimitive.Group>) {\n\treturn (\n\t\t<CommandPrimitive.Group\n\t\t\tdata-slot=\"command-group\"\n\t\t\tclassName={cn(\n\t\t\t\t\"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CommandSeparator({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n\treturn (\n\t\t<CommandPrimitive.Separator\n\t\t\tdata-slot=\"command-separator\"\n\t\t\tclassName={cn(\"bg-border -mx-1 h-px\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) {\n\treturn (\n\t\t<CommandPrimitive.Item\n\t\t\tdata-slot=\"command-item\"\n\t\t\tclassName={cn(\n\t\t\t\t\"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction CommandShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n\treturn (\n\t\t<span\n\t\t\tdata-slot=\"command-shortcut\"\n\t\t\tclassName={cn(\"text-muted-foreground ml-auto text-xs tracking-widest\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tCommand,\n\tCommandDialog,\n\tCommandInput,\n\tCommandList,\n\tCommandEmpty,\n\tCommandGroup,\n\tCommandItem,\n\tCommandShortcut,\n\tCommandSeparator,\n};\n"],"names":["Search","createLucideIcon","cx","cy","r","key","d","u","m","B","K","X","G","_","C","h","P","A","f","O","length","T","E","N","R","M","L","charAt","c","indexOf","S","test","slice","match","Math","pow","D","toLowerCase","replace","W","join","Y","le","ce","Z","Re","o","n","ae","ue","t","createContext","useContext","de","ee","fe","me","forwardRef","e","a","search","value","defaultValue","selectedItemId","filtered","count","items","Map","groups","Set","p","pe","label","b","children","onValueChange","x","filter","shouldFilter","loop","disablePointerSelection","ge","vimBindings","j","$","H","q","I","useRef","v","ke","k","trim","current","emit","ne","useMemo","subscribe","add","delete","snapshot","setState","s","i","l","g","y","Object","is","J","z","document","activeElement","hasAttribute","getElementById","focus","id","call","forEach","U","get","set","keywords","te","item","has","getAttribute","group","getDisablePointerSelection","listId","inputId","labelId","listInnerRef","max","push","V","sort","F","closest","appendChild","parentElement","querySelector","encodeURIComponent","find","size","firstChild","scrollIntoView","block","Array","from","querySelectorAll","Q","findIndex","re","we","De","oe","ie","preventDefault","metaKey","altKey","se","createElement","div","ref","tabIndex","onKeyDown","nativeEvent","isComposing","keyCode","defaultPrevented","ctrlKey","Event","dispatchEvent","htmlFor","style","Te","Provider","he","forceMount","ve","onSelect","useEffect","disabled","addEventListener","removeEventListener","role","onPointerMove","onClick","Ee","heading","hidden","ye","alwaysRender","Se","input","autoComplete","autoCorrect","spellCheck","type","onChange","target","Ce","ResizeObserver","requestAnimationFrame","offsetHeight","setProperty","toFixed","observe","cancelAnimationFrame","unobserve","xe","open","onOpenChange","overlayClassName","contentClassName","container","w","className","Ie","Pe","progress","_e","assign","List","Item","Input","Group","Separator","Dialog","Empty","Loading","nextElementSibling","matches","previousElementSibling","window","useLayoutEffect","useSyncExternalStore","textContent","map","setAttribute","useState","asChild","isValidElement","cloneElement","props","render","Me","position","width","height","padding","margin","overflow","clip","whiteSpace","borderWidth","Command","React","CommandPrimitive","data-slot","cn","CommandDialog","title","description","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut","span"],"mappings":"oYAGO,MAgBDA,EAASC,EAAiB,SAhBI,CAClC,CAAC,SAAU,CAAEC,GAAI,KAAMC,GAAI,KAAMC,EAAG,IAAKC,IAAK,WAC9C,CAAC,OAAQ,CAAEC,EAAG,iBAAkBD,IAAK,aCLvC,IAA6BE,EAAE,KAAuBC,EAAE,sBAAsBC,EAAE,uBAAuBC,EAAE,QAAQC,EAAE,SAAS,SAASC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,GAAG,GAAGD,IAAIJ,EAAEM,OAAO,OAAOH,IAAIJ,EAAEO,OAA7K,EAA4C,IAA4I,IAAIC,EAAE,GAAGJ,KAAKC,IAAI,QAAU,IAAPC,EAAEE,GAAY,OAAOF,EAAEE,GAAG,IAAI,IAAuCC,EAAEC,EAAEC,EAAEC,EAAzCC,EAAEV,EAAEW,OAAOT,GAAGU,EAAEb,EAAEc,QAAQH,EAAET,GAAGa,EAAE,EAAUF,GAAG,IAAGN,EAAEV,EAAEC,EAAEC,EAAEC,EAAEC,EAAEY,EAAE,EAAEV,EAAE,EAAEC,IAAKW,IAAIF,IAAIX,EAAEK,GAAnU,EAAwUd,EAAEuB,KAAKlB,EAAEc,OAAOC,EAAE,KAAKN,GAAtV,IAA2VE,EAAEX,EAAEmB,MAAMf,EAAEW,EAAE,GAAGK,MAAMxB,KAAMQ,EAAE,IAAIK,GAAGY,KAAKC,IAAI5B,EAAEiB,EAAEJ,UAAUV,EAAEqB,KAAKlB,EAAEc,OAA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,UAAW2C,EACV,yNACA3C,MAEG2B,GAGP,CAEA,SAAS6B,IAAiBxD,UACzBA,KACG2B,IAEH,OACCa,EAAAhG,cAACiG,EAAiB/B,UAAS,CAC1BgC,YAAU,oBACV1C,UAAW2C,EAAG,uBAAwB3C,MAClC2B,GAGP,CAEA,SAAS8B,IAAYzD,UAAEA,KAAc2B,IACpC,OACCa,EAAAhG,cAACiG,EAAiBlC,KAAI,CACrBmC,YAAU,eACV1C,UAAW2C,EACV,sYACA3C,MAEG2B,GAGP,CAEA,SAAS+B,IAAgB1D,UAAEA,KAAc2B,IACxC,OACCa,EAAAhG,cAACmH,OAAAA,CACAjB,YAAU,mBACV1C,UAAW2C,EAAG,wDAAyD3C,MACnE2B,GAGP","x_google_ignoreList":[0,1,2]}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{forwardRef as e,createElement as r}from"react";const o=(...e)=>e.filter((e,r,o)=>Boolean(e)&&""!==e.trim()&&o.indexOf(e)===r).join(" ").trim();var t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const i=e(({color:e="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:n="",children:c,iconNode:l,...d},m)=>r("svg",{ref:m,...t,width:i,height:i,stroke:e,strokeWidth:a?24*Number(s)/Number(i):s,className:o("lucide",n),...d},[...l.map(([e,o])=>r(e,o)),...Array.isArray(c)?c:[c]])),s=(t,s)=>{const a=e(({className:e,...a},n)=>{return r(i,{ref:n,iconNode:s,className:o(`lucide-${c=t,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,e),...a});var c});return a.displayName=`${t}`,a};export{s as c};
|
2
|
-
//# sourceMappingURL=createLucideIcon-L-tld2uc.mjs.map
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{c as e}from"./utils-BctauAA9.mjs";import{R as t,C as a,a as s,D as o,O as n,P as l,T as r,b as d}from"./index-DUNcuWJE.mjs";import i from"react";import{X as c}from"./x-BNLl0E-E.mjs";function m({...e}){return i.createElement(t,{"data-slot":"dialog",...e})}function u({...e}){return i.createElement(d,{"data-slot":"dialog-trigger",...e})}function f({...e}){return i.createElement(l,{"data-slot":"dialog-portal",...e})}function g({...e}){return i.createElement(a,{"data-slot":"dialog-close",...e})}function p({className:t,...a}){return i.createElement(n,{"data-slot":"dialog-overlay",className:e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t),...a})}function x({className:t,children:o,...n}){return i.createElement(f,{"data-slot":"dialog-portal"},i.createElement(p,null),i.createElement(s,{"data-slot":"dialog-content",className:e("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...n},o,i.createElement(a,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"},i.createElement(c,null),i.createElement("span",{className:"sr-only"},"Close"))))}function E({className:t,...a}){return i.createElement("div",{"data-slot":"dialog-header",className:e("flex flex-col gap-2 text-center sm:text-left",t),...a})}function N({className:t,...a}){return i.createElement("div",{"data-slot":"dialog-footer",className:e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function b({className:t,...a}){return i.createElement(r,{"data-slot":"dialog-title",className:e("text-lg leading-none font-semibold",t),...a})}function v({className:t,...a}){return i.createElement(o,{"data-slot":"dialog-description",className:e("text-muted-foreground text-sm",t),...a})}export{m as D,g as a,x as b,v as c,N as d,E as e,p as f,f as g,b as h,u as i};
|
2
|
-
//# sourceMappingURL=dialog-36eqHzT3.mjs.map
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import t from"react";import{c as r}from"./index-CdJCOoFA.mjs";import{c as o}from"./index-CCcl327A.mjs";import{u as n}from"./index-CybgQKpz.mjs";import{u as a}from"./index-COvW87ew.mjs";import{c as i,R as s,A as c,C as d,a as l}from"./index-DOyt-JEx.mjs";import{P as u,D as p}from"./index-xew3kygQ.mjs";import{P as f}from"./index-BdpYc58_.mjs";import{P as m}from"./index-w9bxia3O.mjs";import{jsx as h}from"react/jsx-runtime";import{c as v}from"./utils-BctauAA9.mjs";var C,w="HoverCard",[g,x]=o(w,[i]),P=i(),[E,O]=g(w),R=t=>{const{__scopeHoverCard:r,children:o,open:a,defaultOpen:i,onOpenChange:c,openDelay:d=700,closeDelay:l=300}=t,u=P(r),p=e.useRef(0),f=e.useRef(0),m=e.useRef(!1),v=e.useRef(!1),[C,g]=n({prop:a,defaultProp:i??!1,onChange:c,caller:w}),x=e.useCallback(()=>{clearTimeout(f.current),p.current=window.setTimeout(()=>g(!0),d)},[d,g]),O=e.useCallback(()=>{clearTimeout(p.current),m.current||v.current||(f.current=window.setTimeout(()=>g(!1),l))},[l,g]),R=e.useCallback(()=>g(!1),[g]);return e.useEffect(()=>()=>{clearTimeout(p.current),clearTimeout(f.current)},[]),h(E,{scope:r,open:C,onOpenChange:g,onOpen:x,onClose:O,onDismiss:R,hasSelectionRef:m,isPointerDownOnContentRef:v,children:h(s,{...u,children:o})})};R.displayName=w;var b="HoverCardTrigger",S=e.forwardRef((e,t)=>{const{__scopeHoverCard:o,...n}=e,a=O(b,o),i=P(o);return h(c,{asChild:!0,...i,children:h(m.a,{"data-state":a.open?"open":"closed",...n,ref:t,onPointerEnter:r(e.onPointerEnter,F(a.onOpen)),onPointerLeave:r(e.onPointerLeave,F(a.onClose)),onFocus:r(e.onFocus,a.onOpen),onBlur:r(e.onBlur,a.onClose),onTouchStart:r(e.onTouchStart,e=>e.preventDefault())})})});S.displayName=b;var y="HoverCardPortal",[D,T]=g(y,{forceMount:void 0}),_=e=>{const{__scopeHoverCard:t,forceMount:r,children:o,container:n}=e,a=O(y,t);return h(D,{scope:t,forceMount:r,children:h(f,{present:r||a.open,children:h(u,{asChild:!0,container:n,children:o})})})};_.displayName=y;var H="HoverCardContent",N=e.forwardRef((e,t)=>{const o=T(H,e.__scopeHoverCard),{forceMount:n=o.forceMount,...a}=e,i=O(H,e.__scopeHoverCard);return h(f,{present:n||i.open,children:h(j,{"data-state":i.open?"open":"closed",...a,onPointerEnter:r(e.onPointerEnter,F(i.onOpen)),onPointerLeave:r(e.onPointerLeave,F(i.onClose)),ref:t})})});N.displayName=H;var j=e.forwardRef((t,o)=>{const{__scopeHoverCard:n,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,...u}=t,f=O(H,n),m=P(n),v=e.useRef(null),w=a(o,v),[g,x]=e.useState(!1);return e.useEffect(()=>{if(g){const e=document.body;return C=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=C,e.style.webkitUserSelect=C}}},[g]),e.useEffect(()=>{if(v.current){const e=()=>{x(!1),f.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(f.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!1}}},[f.isPointerDownOnContentRef,f.hasSelectionRef]),e.useEffect(()=>{if(v.current){(function(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(v.current).forEach(e=>e.setAttribute("tabindex","-1"))}}),h(p,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:r(c,e=>{e.preventDefault()}),onDismiss:f.onDismiss,children:h(d,{...m,...u,onPointerDown:r(u.onPointerDown,e=>{e.currentTarget.contains(e.target)&&x(!0),f.hasSelectionRef.current=!1,f.isPointerDownOnContentRef.current=!0}),ref:w,style:{...u.style,userSelect:g?"text":void 0,WebkitUserSelect:g?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function F(e){return t=>"touch"===t.pointerType?void 0:e()}e.forwardRef((e,t)=>{const{__scopeHoverCard:r,...o}=e,n=P(r);return h(l,{...n,...o,ref:t})}).displayName="HoverCardArrow";var L=R,k=S,I=_,M=N;function A({...e}){return t.createElement(L,{"data-slot":"hover-card",...e})}function U({...e}){return t.createElement(k,{"data-slot":"hover-card-trigger",...e})}function z({className:e,align:r="center",sideOffset:o=4,...n}){return t.createElement(I,{"data-slot":"hover-card-portal"},t.createElement(M,{"data-slot":"hover-card-content",align:r,sideOffset:o,className:v("bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 rounded-md border p-4 shadow-md outline-hidden",e),...n}))}export{A as H,U as a,z as b};
|
2
|
-
//# sourceMappingURL=hover-card-Cnd58du6.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-B4QsDzeM.mjs","sources":["../../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React","useRef","previous","useMemo","current"],"mappings":"wBAEA,SAASA,EAAeC,GACtB,MAAMC,EAAYC,EAAAC,OAAO,CAAEH,QAAOI,SAAUJ,IAK5C,OAAaE,EAAAG,QAAQ,KACfJ,EAAIK,QAAQN,QAAUA,IACxBC,EAAIK,QAAQF,SAAWH,EAAIK,QAAQN,MACnCC,EAAIK,QAAQN,MAAQA,GAEfC,EAAIK,QAAQF,UAClB,CAACJ,GACN","x_google_ignoreList":[0]}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{u as n}from"./index-COvW87ew.mjs";import{u as t}from"./index-CLtWFQL5.mjs";var r=r=>{const{present:o,children:u}=r,s=function(n){const[r,o]=e.useState(),u=e.useRef(null),s=e.useRef(n),a=e.useRef("none"),c=n?"mounted":"unmounted",[m,d]=function(n,t){return e.useReducer((e,n)=>t[e][n]??e,n)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=i(u.current);a.current="mounted"===m?e:"none"},[m]),t(()=>{const e=u.current,t=s.current;if(t!==n){const r=a.current,o=i(e);if(n)d("MOUNT");else if("none"===o||"none"===e?.display)d("UNMOUNT");else{d(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=n}},[n,d]),t(()=>{if(r){let e;const n=r.ownerDocument.defaultView??window,t=t=>{const o=i(u.current).includes(t.animationName);if(t.target===r&&o&&(d("ANIMATION_END"),!s.current)){const t=r.style.animationFillMode;r.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=t)})}},o=e=>{e.target===r&&(a.current=i(u.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{n.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:e.useCallback(e=>{u.current=e?getComputedStyle(e):null,o(e)},[])}}(o),a="function"==typeof u?u({present:s.isPresent}):e.Children.only(u),c=n(s.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof u||s.isPresent?e.cloneElement(a,{ref:c}):null};function i(e){return e?.animationName||"none"}r.displayName="Presence";export{r as P};
|
2
|
-
//# sourceMappingURL=index-BdpYc58_.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-BdpYc58_.mjs","sources":["../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Presence","props","present","children","presence","node","setNode","React2","useState","stylesRef","useRef","prevPresentRef","prevAnimationNameRef","initialState","state","send","useStateMachine","mounted","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","useEffect","currentAnimationName","getAnimationName","current","useLayoutEffect","styles","wasPresent","prevAnimationName","display","timeoutId","ownerWindow","ownerDocument","defaultView","window","handleAnimationEnd","event","isCurrentAnimation","includes","animationName","target","currentFillMode","style","animationFillMode","setTimeout","handleAnimationStart","addEventListener","clearTimeout","removeEventListener","isPresent","ref","useCallback","getComputedStyle","usePresence","child","Children","only","useComposedRefs","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","cloneElement","displayName"],"mappings":"0GAUA,IAAMA,EAAqCC,IACzC,MAAMC,QAAEA,EAAAC,SAASA,GAAaF,EACxBG,EAmBR,SAAqBF,GACnB,MAAOG,EAAMC,GAAiBC,EAAAC,WACxBC,EAAkBF,EAAAG,OAAmC,MACrDC,EAAuBJ,EAAAG,OAAOR,GAC9BU,EAA6BL,EAAAG,OAAe,QAC5CG,EAAeX,EAAU,UAAY,aACpCY,EAAOC,0DAAQC,CAAgBH,EAAc,CAClDI,QAAS,CACPC,QAAS,YACTC,cAAe,oBAEjBC,iBAAkB,CAChBC,MAAO,UACPC,cAAe,aAEjBC,UAAW,CACTF,MAAO,aAyGX,OArGMd,EAAAiB,UAAU,KACd,MAAMC,EAAuBC,EAAiBjB,EAAUkB,SACxDf,EAAqBe,QAAoB,YAAVb,EAAsBW,EAAuB,QAC3E,CAACX,IAEJc,EAAgB,KACd,MAAMC,EAASpB,EAAUkB,QACnBG,EAAanB,EAAegB,QAGlC,GAF0BG,IAAe5B,EAElB,CACrB,MAAM6B,EAAoBnB,EAAqBe,QACzCF,EAAuBC,EAAiBG,GAE9C,GAAI3B,EACFa,EAAK,cACP,GAAoC,SAAzBU,GAAuD,SAApBI,GAAQG,QAGpDjB,EAAK,eACA,CAUHA,EADEe,GAFgBC,IAAsBN,EAGnC,gBAEA,UAET,CAEAd,EAAegB,QAAUzB,CAC3B,GACC,CAACA,EAASa,IAEba,EAAgB,KACd,GAAIvB,EAAM,CACR,IAAI4B,EACJ,MAAMC,EAAc7B,EAAK8B,cAAcC,aAAeC,OAMhDC,EAAsBC,IAC1B,MACMC,EADuBd,EAAiBjB,EAAUkB,SACRc,SAASF,EAAMG,eAC/D,GAAIH,EAAMI,SAAWtC,GAAQmC,IAW3BzB,EAAK,kBACAJ,EAAeg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mBAAbtD,GACLC,EAASgD,UAAkB7C,EAAA8D,aAAaZ,EAAO,CAAEJ,QAAS,MA6IjF,SAAS3B,EAAiBG,GACxB,OAAOA,GAAQa,eAAiB,MAClC,CA5IA1C,EAASsE,YAAc","x_google_ignoreList":[0]}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{jsx as t}from"react/jsx-runtime";function r(r,n){const o=e.createContext(n),c=r=>{const{children:n,...c}=r,s=e.useMemo(()=>c,Object.values(c));return t(o.Provider,{value:s,children:n})};return c.displayName=r+"Provider",[c,function(t){const c=e.useContext(o);if(c)return c;if(void 0!==n)return n;throw new Error(`\`${t}\` must be used within \`${r}\``)}]}function n(r,n=[]){let c=[];const s=()=>{const t=c.map(t=>e.createContext(t));return function(n){const o=n?.[r]||t;return e.useMemo(()=>({[`__scope${r}`]:{...n,[r]:o}}),[n,o])}};return s.scopeName=r,[function(n,o){const s=e.createContext(o),u=c.length;c=[...c,o];const i=n=>{const{scope:o,children:c,...i}=n,a=o?.[r]?.[u]||s,m=e.useMemo(()=>i,Object.values(i));return t(a.Provider,{value:m,children:c})};return i.displayName=n+"Provider",[i,function(t,c){const i=c?.[r]?.[u]||s,a=e.useContext(i);if(a)return a;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},o(s,...n)]}function o(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=n.reduce((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]}),{});return e.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}export{r as a,n as c};
|
2
|
-
//# sourceMappingURL=index-CCcl327A.mjs.map
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as n from"react";function t(n,t){if("function"==typeof n)return n(t);null!=n&&(n.current=t)}function r(...n){return r=>{let o=!1;const u=n.map(n=>{const u=t(n,r);return o||"function"!=typeof u||(o=!0),u});if(o)return()=>{for(let r=0;r<u.length;r++){const o=u[r];"function"==typeof o?o():t(n[r],null)}}}}function o(...t){return n.useCallback(r(...t),t)}export{r as c,o as u};
|
2
|
-
//# sourceMappingURL=index-COvW87ew.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-COvW87ew.mjs","sources":["../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","i","length","useComposedRefs","React","useCallback"],"mappings":"wBAQA,SAASA,EAAUC,EAAqBC,GACtC,GAAmB,mBAARD,EACT,OAAOA,EAAIC,GACFD,UACTA,EAAIE,QAAUD,EAElB,CAMA,SAASE,KAAkBC,GACzB,OAAQC,IACN,IAAIC,GAAa,EACjB,MAAMC,EAAWH,EAAKI,IAAKR,IACzB,MAAMS,EAAUV,EAAOC,EAAKK,GAI5B,OAHKC,GAAgC,mBAAXG,IACxBH,GAAa,GAERG,IAOT,GAAIH,EACF,MAAO,KACL,IAAA,IAASI,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAAK,CACxC,MAAMD,EAAUF,EAASG,GACH,mBAAXD,EACTA,IAEAV,EAAOK,EAAKM,GAAI,KAEpB,GAIR,CAMA,SAASE,KAAsBR,GAE7B,OAAaS,EAAAC,YAAYX,KAAeC,GAAOA,EACjD","x_google_ignoreList":[0]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-CdJCOoFA.mjs","sources":["../../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event","defaultPrevented"],"mappings":"AAAA,SAASA,EACPC,EACAC,GACAC,yBAAEA,GAA2B,GAAS,IAEtC,OAAO,SAAqBC,GAG1B,GAFAH,IAAuBG,IAEU,IAA7BD,IAAuCC,EAAMC,iBAC/C,OAAOH,IAAkBE,EAE7B,CACF","x_google_ignoreList":[0]}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import t from"react";var e,n={exports:{}},r={};var o,u,i={};function a(){return u||(u=1,"production"===process.env.NODE_ENV?n.exports=function(){if(e)return r;e=1;var n=t,o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=n.useState,i=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=u({inst:{value:n,getSnapshot:e}}),o=r[0].inst,f=r[1];return a(function(){o.value=n,o.getSnapshot=e,s(o)&&f({inst:o})},[t,n,e]),i(function(){return s(o)&&f({inst:o}),t(function(){s(o)&&f({inst:o})})},[t]),c(n),n};return r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f,r}():n.exports=(o||(o=1,"production"!==process.env.NODE_ENV&&function(){function e(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!r(t,n)}catch(t){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=t,r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=n.useState,u=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue,s=!1,f=!1,_="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,i){s||void 0===n.startTransition||(s=!0);var _=i();if(!f){var O=i();r(_,O)||(f=!0)}var d=(O=o({inst:{value:_,getSnapshot:i}}))[0].inst,E=O[1];return a(function(){d.value=_,d.getSnapshot=i,e(d)&&E({inst:d})},[t,_,i]),u(function(){return e(d)&&E({inst:d}),t(function(){e(d)&&E({inst:d})})},[t]),c(_),_};i.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:_,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),i)),n.exports}export{a as r};
|
2
|
-
//# sourceMappingURL=index-Cpq7N5Ej.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-Cpq7N5Ej.mjs","sources":["../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["process","env","NODE_ENV","shimModule","exports","React","require$$0","objectIs","Object","is","x","y","useState","useEffect","useLayoutEffect","useDebugValue","checkIfSnapshotChanged","inst","latestGetSnapshot","getSnapshot","value","nextValue","error","shim","window","document","createElement","subscribe","_useState","forceUpdate","useSyncExternalStoreShim_production","useSyncExternalStore","__REACT_DEVTOOLS_GLOBAL_HOOK__","registerInternalModuleStart","Error","didWarnOld18Alpha","didWarnUncachedGetSnapshot","startTransition","cachedValue","useSyncExternalStoreShim_development","registerInternalModuleStop"],"mappings":"wFAE6B,eAAzBA,QAAQC,IAAIC,SACdC,EAAAC,qCCQF,IAAIC,EAAQC,EAIRC,EAAW,mBAAsBC,OAAOC,GAAKD,OAAOC,GAHxD,SAAYC,EAAGC,GACb,OAAOD,IAAOC,IAAM,IAAMD,GAAK,EAAIA,GAAM,EAAIC,IAAQD,GAAMA,GAAKC,GAAMA,CACxE,EAEEC,EAAWP,EAAMO,SACjBC,EAAYR,EAAMQ,UAClBC,EAAkBT,EAAMS,gBACxBC,EAAgBV,EAAMU,cA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GAAK,EAAIA,GAAM,EAAIC,IAAQD,GAAMA,GAAKC,GAAMA,CAC5E,EA6DMC,EAAWP,EAAMO,SACjBC,EAAYR,EAAMQ,UAClBC,EAAkBT,EAAMS,gBACxBC,EAAgBV,EAAMU,cACtBoB,GAAoB,EACpBC,GAA6B,EAC7Bb,EACE,oBAAuBC,aACvB,IAAuBA,OAAOC,eAC9B,IAAuBD,OAAOC,SAASC,cAlB3C,SAAgCC,EAAWR,GACzC,OAAOA,GACb,EArDI,SAAgCQ,EAAWR,GACzCgB,QACE,IAAW9B,EAAMgC,kBAChBF,GAAqB,GAIxB,IAAIf,EAAQD,IACZ,IAAKiB,EAA4B,CAC/B,IAAIE,EAAcnB,IAClBZ,EAASa,EAAOkB,KAIbF,GAA6B,EACxC,CAIM,IAAInB,GAHJqB,EAAc1B,EAAS,CACrBK,KAAM,CAAEG,MAAOA,EAAOD,YAAaA,MAEd,GAAGF,KACxBY,EAAcS,EAAY,GAmB5B,OAlBAxB,EACE,WACEG,EAAKG,MAAQA,EACbH,EAAKE,YAAcA,EACnBH,EAAuBC,IAASY,EAAY,CAAEZ,KAAMA,GAC9D,EACQ,CAACU,EAAWP,EAAOD,IAErBN,EACE,WAEE,OADAG,EAAuBC,IAASY,EAAY,CAAEZ,KAAMA,IAC7CU,EAAU,WACfX,EAAuBC,IAASY,EAAY,CAAEZ,KAAMA,GAChE,EACA,EACQ,CAACU,IAEHZ,EAAcK,GACPA,CACb,EAgCImB,EAAAR,0BACE,IAAW1B,EAAM0B,qBAAuB1B,EAAM0B,qBAAuBR,EACvE,oBAAuBS,gCACrB,mBACSA,+BAA+BQ,4BACxCR,+BAA+BQ,2BAA2BN,QAChE,CAlFE","x_google_ignoreList":[0,1,2]}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as e from"react";import{u as t}from"./index-CLtWFQL5.mjs";var r=e[" useInsertionEffect ".trim().toString()]||t;function n({prop:t,defaultProp:n,onChange:o=()=>{},caller:u}){const[c,f,s]=function({defaultProp:t,onChange:n}){const[o,u]=e.useState(t),c=e.useRef(o),f=e.useRef(n);return r(()=>{f.current=n},[n]),e.useEffect(()=>{c.current!==o&&(f.current?.(o),c.current=o)},[o,c]),[o,u,f]}({defaultProp:n,onChange:o}),a=void 0!==t,i=a?t:c;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==a){}r.current=a},[a,u])}const p=e.useCallback(e=>{if(a){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else f(e)},[a,t,f,s]);return[i,p]}export{n as u};
|
2
|
-
//# sourceMappingURL=index-CybgQKpz.mjs.map
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as r from"react";import{P as e}from"./index-w9bxia3O.mjs";import{jsx as a}from"react/jsx-runtime";var i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),o=r.forwardRef((r,o)=>a(e.span,{...r,ref:o,style:{...i,...r.style}}));o.displayName="VisuallyHidden";var t=o;export{t as R,o as V};
|
2
|
-
//# sourceMappingURL=index-D2sZp5OP.mjs.map
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import*as t from"react";import{useLayoutEffect as e}from"react";import*as n from"react-dom";import{P as o}from"./index-w9bxia3O.mjs";import{jsx as r}from"react/jsx-runtime";import{u as i}from"./index-COvW87ew.mjs";import{c as a}from"./index-CCcl327A.mjs";import{u as l}from"./index-CXszXOf_.mjs";import{u as s}from"./index-CLtWFQL5.mjs";import{u as c}from"./index-vmPXTidH.mjs";const f=["top","right","bottom","left"],u=Math.min,d=Math.max,p=Math.round,m=Math.floor,h=t=>({x:t,y:t}),g={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function w(t,e,n){return d(t,u(e,n))}function x(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function b(t){return t.split("-")[1]}function R(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}const P=new Set(["top","bottom"]);function S(t){return P.has(v(t))?"y":"x"}function O(t){return R(S(t))}function T(t){return t.replace(/start|end/g,t=>y[t])}const L=["left","right"],C=["right","left"],E=["top","bottom"],D=["bottom","top"];function H(t,e,n,o){const r=b(t);let i=function(t,e,n){switch(t){case"top":case"bottom":return n?e?C:L:e?L:C;case"left":case"right":return e?E:D;default:return[]}}(v(t),"start"===n,o);return r&&(i=i.map(t=>t+"-"+r),e&&(i=i.concat(i.map(T)))),i}function k(t){return t.replace(/left|right|bottom|top/g,t=>g[t])}function F(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function W(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function B(t,e,n){let{reference:o,floating:r}=t;const i=S(e),a=O(e),l=A(a),s=v(e),c="y"===i,f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(s){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-r.width,y:u};break;default:p={x:o.x,y:o.y}}switch(b(e)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1)}return p}async function M(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=x(e,t),m=F(p),h=l[d?"floating"===u?"reference":"floating":u],g=W(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:s})),y="floating"===u?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=W(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:s}):y);return{top:(g.top-b.top+m.top)/v.y,bottom:(b.bottom-g.bottom+m.bottom)/v.y,left:(g.left-b.left+m.left)/v.x,right:(b.right-g.right+m.right)/v.x}}function $(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function j(t){return f.some(e=>t[e]>=0)}const N=new Set(["left","top"]);function _(){return"undefined"!=typeof window}function z(t){return X(t)?(t.nodeName||"").toLowerCase():"#document"}function V(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Y(t){var e;return null==(e=(X(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function X(t){return!!_()&&(t instanceof Node||t instanceof V(t).Node)}function I(t){return!!_()&&(t instanceof Element||t instanceof V(t).Element)}function q(t){return!!_()&&(t instanceof HTMLElement||t instanceof V(t).HTMLElement)}function G(t){return!(!_()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof V(t).ShadowRoot)}const J=new Set(["inline","contents"]);function K(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=st(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!J.has(r)}const Q=new Set(["table","td","th"]);function U(t){return Q.has(z(t))}const Z=[":popover-open",":modal"];function tt(t){return Z.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const et=["transform","translate","scale","rotate","perspective"],nt=["transform","translate","scale","rotate","perspective","filter"],ot=["paint","layout","strict","content"];function rt(t){const e=it(),n=I(t)?st(t):t;return et.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||nt.some(t=>(n.willChange||"").includes(t))||ot.some(t=>(n.contain||"").includes(t))}function it(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const at=new Set(["html","body","#document"]);function lt(t){return at.has(z(t))}function st(t){return V(t).getComputedStyle(t)}function ct(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if("html"===z(t))return t;const e=t.assignedSlot||t.parentNode||G(t)&&t.host||Y(t);return G(e)?e.host:e}function ut(t){const e=ft(t);return lt(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&K(e)?e:ut(e)}function dt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=ut(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=V(r);if(i){const t=pt(a);return e.concat(a,a.visualViewport||[],K(r)?r:[],t&&n?dt(t):[])}return e.concat(r,dt(r,[],n))}function pt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mt(t){const e=st(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=q(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=p(n)!==i||p(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function ht(t){return I(t)?t:t.contextElement}function gt(t){const e=ht(t);if(!q(e))return h(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=mt(e);let a=(i?p(n.width):n.width)/o,l=(i?p(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const yt=h(0);function wt(t){const e=V(t);return it()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yt}function xt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=ht(t);let a=h(1);e&&(o?I(o)&&(a=gt(o)):a=gt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==V(t))&&e}(i,n,o)?wt(i):h(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,f=r.width/a.x,u=r.height/a.y;if(i){const t=V(i),e=o&&I(o)?V(o):o;let n=t,r=pt(n);for(;r&&o&&e!==n;){const t=gt(r),e=r.getBoundingClientRect(),o=st(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,u*=t.y,s+=i,c+=a,n=V(r),r=pt(n)}}return W({width:f,height:u,x:s,y:c})}function vt(t,e){const n=ct(t).scrollLeft;return e?e.left+n:xt(Y(t)).left+n}function bt(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:vt(t,o)),y:o.top+e.scrollTop}}const Rt=new Set(["absolute","fixed"]);function At(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=V(t),o=Y(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=it();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,n);else if("document"===e)o=function(t){const e=Y(t),n=ct(t),o=t.ownerDocument.body,r=d(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=d(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+vt(t);const l=-n.scrollTop;return"rtl"===st(o).direction&&(a+=d(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(Y(t));else if(I(e))o=function(t,e){const n=xt(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=q(t)?gt(t):h(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=wt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return W(o)}function Pt(t,e){const n=ft(t);return!(n===e||!I(n)||lt(n))&&("fixed"===st(n).position||Pt(n,e))}function St(t,e,n){const o=q(e),r=Y(e),i="fixed"===n,a=xt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const s=h(0);function c(){s.x=vt(r)}if(o||!o&&!i)if(("body"!==z(e)||K(r))&&(l=ct(e)),o){const t=xt(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else r&&c();i&&!o&&r&&c();const f=!r||o||i?h(0):bt(r,l);return{x:a.left+l.scrollLeft-s.x-f.x,y:a.top+l.scrollTop-s.y-f.y,width:a.width,height:a.height}}function Ot(t){return"static"===st(t).position}function Tt(t,e){if(!q(t)||"fixed"===st(t).position)return null;if(e)return e(t);let n=t.offsetParent;return Y(t)===n&&(n=n.ownerDocument.body),n}function Lt(t,e){const n=V(t);if(tt(t))return n;if(!q(t)){let e=ft(t);for(;e&&!lt(e);){if(I(e)&&!Ot(e))return e;e=ft(e)}return n}let o=Tt(t,e);for(;o&&U(o)&&Ot(o);)o=Tt(o,e);return o&<(o)&&Ot(o)&&!rt(o)?n:o||function(t){let e=ft(t);for(;q(e)&&!lt(e);){if(rt(e))return e;if(tt(e))return null;e=ft(e)}return null}(t)||n}const Ct={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,a=Y(o),l=!!e&&tt(e.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1);const f=h(0),u=q(o);if((u||!u&&!i)&&(("body"!==z(o)||K(a))&&(s=ct(o)),q(o))){const t=xt(o);c=gt(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const d=!a||u||i?h(0):bt(a,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+d.x,y:n.y*c.y-s.scrollTop*c.y+f.y+d.y}},getDocumentElement:Y,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?tt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=dt(t,[],!1).filter(t=>I(t)&&"body"!==z(t)),r=null;const i="fixed"===st(t).position;let a=i?ft(t):t;for(;I(a)&&!lt(a);){const e=st(a),n=rt(a);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&Rt.has(r.position)||K(a)&&!n&&Pt(t,a))?o=o.filter(t=>t!==a):r=e,a=ft(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],a=i[0],l=i.reduce((t,n)=>{const o=At(e,n,r);return t.top=d(o.top,t.top),t.right=u(o.right,t.right),t.bottom=u(o.bottom,t.bottom),t.left=d(o.left,t.left),t},At(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Lt,getElementRects:async function(t){const e=this.getOffsetParent||Lt,n=this.getDimensions,o=await n(t.floating);return{reference:St(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=mt(t);return{width:e,height:n}},getScale:gt,isElement:I,isRTL:function(t){return"rtl"===st(t).direction}};function Et(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Dt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=ht(t),f=r||i?[...c?dt(c):[],...dt(e)]:[];f.forEach(t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)});const p=c&&l?function(t,e){let n,o=null;const r=Y(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const c=t.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=c;if(l||e(),!h||!g)return;const y={rootMargin:-m(p)+"px "+-m(r.clientWidth-(f+h))+"px "+-m(r.clientHeight-(p+g))+"px "+-m(f)+"px",threshold:d(0,u(1,s))||1};let w=!0;function x(e){const o=e[0].intersectionRatio;if(o!==s){if(!w)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==o||Et(c,t.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(x,{...y,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,y)}o.observe(t)}(!0),i}(c,n):null;let h,g=-1,y=null;a&&(y=new ResizeObserver(t=>{let[o]=t;o&&o.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),c&&!s&&y.observe(c),y.observe(e));let w=s?xt(t):null;return s&&function e(){const o=xt(t);w&&!Et(w,o)&&n();w=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach(t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)}),null==p||p(),null==(t=y)||t.disconnect(),y=null,s&&cancelAnimationFrame(h)}}const Ht=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=e,s=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=v(n),l=b(n),s="y"===S(n),c=N.has(a)?-1:1,f=i&&s?-1:1,u=x(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*f,y:d*c}:{x:d*c,y:p*f}}(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},kt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=x(t,e),c={x:n,y:o},f=await M(e,s),u=S(v(r)),d=R(u);let p=c[d],m=c[u];if(i){const t="y"===d?"bottom":"right";p=w(p+f["y"===d?"top":"left"],p,p-f[t])}if(a){const t="y"===u?"bottom":"right";m=w(m+f["y"===u?"top":"left"],m,m-f[t])}const h=l.fn({...e,[d]:p,[u]:m});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[d]:i,[u]:a}}}}}},Ft=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=x(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=v(r),w=S(l),R=v(l)===l,P=await(null==s.isRTL?void 0:s.isRTL(c.floating)),L=d||(R||!h?[k(l)]:function(t){const e=k(t);return[T(t),e,T(e)]}(l)),C="none"!==m;!d&&C&&L.push(...H(l,h,m,P));const E=[l,...L],D=await M(e,g),F=[];let W=(null==(o=i.flip)?void 0:o.overflows)||[];if(f&&F.push(D[y]),u){const t=function(t,e,n){void 0===n&&(n=!1);const o=b(t),r=O(t),i=A(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=k(a)),[a,k(a)]}(r,a,P);F.push(D[t[0]],D[t[1]])}if(W=[...W,{placement:r,overflows:F}],!F.every(t=>t<=0)){var B,$;const t=((null==(B=i.flip)?void 0:B.index)||0)+1,e=E[t];if(e){if(!("alignment"===u&&w!==S(e))||W.every(t=>t.overflows[0]>0&&S(t.placement)===w))return{data:{index:t,overflows:W},reset:{placement:e}}}let n=null==($=W.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:$.placement;if(!n)switch(p){case"bestFit":{var j;const t=null==(j=W.filter(t=>{if(C){const e=S(t.placement);return e===w||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:j[0];t&&(n=t);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},Wt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:a,elements:l}=e,{apply:s=()=>{},...c}=x(t,e),f=await M(e,c),p=v(r),m=b(r),h="y"===S(r),{width:g,height:y}=i.floating;let w,R;"top"===p||"bottom"===p?(w=p,R=m===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(R=p,w="end"===m?"top":"bottom");const A=y-f.top-f.bottom,P=g-f.left-f.right,O=u(y-f[w],A),T=u(g-f[R],P),L=!e.middlewareData.shift;let C=O,E=T;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(E=P),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(C=A),L&&!m){const t=d(f.left,0),e=d(f.right,0),n=d(f.top,0),o=d(f.bottom,0);h?E=g-2*(0!==t||0!==e?t+e:d(f.left,f.right)):C=y-2*(0!==n||0!==o?n+o:d(f.top,f.bottom))}await s({...e,availableWidth:E,availableHeight:C});const D=await a.getDimensions(l.floating);return g!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}},Bt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=x(t,e);switch(o){case"referenceHidden":{const t=$(await M(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=$(await M(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}},Mt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:a,elements:l,middlewareData:s}=e,{element:c,padding:f=0}=x(t,e)||{};if(null==c)return{};const d=F(f),p={x:n,y:o},m=O(r),h=A(m),g=await a.getDimensions(c),y="y"===m,v=y?"top":"left",R=y?"bottom":"right",P=y?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[m]-p[m]-i.floating[h],T=p[m]-i.reference[m],L=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=L?L[P]:0;C&&await(null==a.isElement?void 0:a.isElement(L))||(C=l.floating[P]||i.floating[h]);const E=S/2-T/2,D=C/2-g[h]/2-1,H=u(d[v],D),k=u(d[R],D),W=H,B=C-g[h]-k,M=C/2-g[h]/2+E,$=w(W,M,B),j=!s.arrow&&null!=b(r)&&M!==$&&i.reference[h]/2-(M<W?H:k)-g[h]/2<0,N=j?M<W?M-W:M-B:0;return{[m]:p[m]+N,data:{[m]:$,centerOffset:M-$-N,...j&&{alignmentOffset:N}},reset:j}}}),$t=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=x(t,e),f={x:n,y:o},u=S(r),d=R(u);let p=f[d],m=f[u];const h=x(l,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const t="y"===d?"height":"width",e=i.reference[d]-i.floating[t]+g.mainAxis,n=i.reference[d]+i.reference[t]-g.mainAxis;p<e?p=e:p>n&&(p=n)}if(c){var y,w;const t="y"===d?"width":"height",e=N.has(v(r)),n=i.reference[u]-i.floating[t]+(e&&(null==(y=a.offset)?void 0:y[u])||0)+(e?0:g.crossAxis),o=i.reference[u]+i.reference[t]+(e?0:(null==(w=a.offset)?void 0:w[u])||0)-(e?g.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[d]:p,[u]:m}}}},jt=(t,e,n)=>{const o=new Map,r={platform:Ct,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=B(c,o,s),d=o,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:g,y:y,data:w,reset:x}=await h({x:f,y:u,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[i]:{...p[i],...w}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:f,y:u}=B(c,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:r,middlewareData:p}})(t,e,{...r,platform:i})};var Nt="undefined"!=typeof document?e:function(){};function _t(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;0!==o--;)if(!_t(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;0!==o--;){const n=r[o];if(("_owner"!==n||!t.$$typeof)&&!_t(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function zt(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vt(t,e){const n=zt(t);return Math.round(e*n)/n}function Yt(e){const n=t.useRef(e);return Nt(()=>{n.current=e}),n}const Xt=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:o}="function"==typeof t?t(e):t;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?Mt({element:n.current,padding:o}).fn(e):{}:n?Mt({element:n,padding:o}).fn(e):{};var r}}),It=(t,e)=>({...kt(t),options:[t,e]}),qt=(t,e)=>({...$t(t),options:[t,e]}),Gt=(t,e)=>({...Ft(t),options:[t,e]}),Jt=(t,e)=>({...Wt(t),options:[t,e]}),Kt=(t,e)=>({...Bt(t),options:[t,e]}),Qt=(t,e)=>({...Xt(t),options:[t,e]});var Ut=t.forwardRef((t,e)=>{const{children:n,width:i=10,height:a=5,...l}=t;return r(o.svg,{...l,ref:e,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:r("polygon",{points:"0,0 30,0 15,10"})})});Ut.displayName="Arrow";var Zt=Ut,te="Popper",[ee,ne]=a(te),[oe,re]=ee(te),ie=e=>{const{__scopePopper:n,children:o}=e,[i,a]=t.useState(null);return r(oe,{scope:n,anchor:i,onAnchorChange:a,children:o})};ie.displayName=te;var ae="PopperAnchor",le=t.forwardRef((e,n)=>{const{__scopePopper:a,virtualRef:l,...s}=e,c=re(ae,a),f=t.useRef(null),u=i(n,f);return t.useEffect(()=>{c.onAnchorChange(l?.current||f.current)}),l?null:r(o.div,{...s,ref:u})});le.displayName=ae;var se="PopperContent",[ce,fe]=ee(se),ue=t.forwardRef((e,a)=>{const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:R,...A}=e,P=re(se,f),[S,O]=t.useState(null),T=i(a,t=>O(t)),[L,C]=t.useState(null),E=c(L),D=E?.width??0,H=E?.height??0,k=u+("center"!==p?"-"+p:""),F="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},W=Array.isArray(y)?y:[y],B=W.length>0,M={padding:F,boundary:W.filter(he),altBoundary:B},{refs:$,floatingStyles:j,placement:N,isPositioned:_,middlewareData:z}=function(e){void 0===e&&(e={});const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:s}={},transform:c=!0,whileElementsMounted:f,open:u}=e,[d,p]=t.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[m,h]=t.useState(i);_t(m,i)||h(i);const[g,y]=t.useState(null),[w,x]=t.useState(null),v=t.useCallback(t=>{t!==P.current&&(P.current=t,y(t))},[]),b=t.useCallback(t=>{t!==S.current&&(S.current=t,x(t))},[]),R=l||g,A=s||w,P=t.useRef(null),S=t.useRef(null),O=t.useRef(d),T=null!=f,L=Yt(f),C=Yt(a),E=Yt(u),D=t.useCallback(()=>{if(!P.current||!S.current)return;const t={placement:o,strategy:r,middleware:m};C.current&&(t.platform=C.current),jt(P.current,S.current,t).then(t=>{const e={...t,isPositioned:!1!==E.current};H.current&&!_t(O.current,e)&&(O.current=e,n.flushSync(()=>{p(e)}))})},[m,o,r,C,E]);Nt(()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p(t=>({...t,isPositioned:!1})))},[u]);const H=t.useRef(!1);Nt(()=>(H.current=!0,()=>{H.current=!1}),[]),Nt(()=>{if(R&&(P.current=R),A&&(S.current=A),R&&A){if(L.current)return L.current(R,A,D);D()}},[R,A,D,L,T]);const k=t.useMemo(()=>({reference:P,floating:S,setReference:v,setFloating:b}),[v,b]),F=t.useMemo(()=>({reference:R,floating:A}),[R,A]),W=t.useMemo(()=>{const t={position:r,left:0,top:0};if(!F.floating)return t;const e=Vt(F.floating,d.x),n=Vt(F.floating,d.y);return c?{...t,transform:"translate("+e+"px, "+n+"px)",...zt(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:e,top:n}},[r,c,F.floating,d.x,d.y]);return t.useMemo(()=>({...d,update:D,refs:k,elements:F,floatingStyles:W}),[d,D,k,F,W])}({strategy:"fixed",placement:k,whileElementsMounted:(...t)=>Dt(...t,{animationFrame:"always"===b}),elements:{reference:P.anchor},middleware:[(V={mainAxis:d+H,alignmentAxis:m},{...Ht(V),options:[V,Y]}),g&&It({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?qt():void 0,...M}),g&&Gt({...M}),Jt({...M,apply:({elements:t,rects:e,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=e.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${o}px`),a.setProperty("--radix-popper-anchor-width",`${r}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),L&&Qt({element:L,padding:h}),ge({arrowWidth:D,arrowHeight:H}),v&&Kt({strategy:"referenceHidden",...M})]});var V,Y;const[X,I]=ye(N),q=l(R);s(()=>{_&&q?.()},[_,q]);const G=z.arrow?.x,J=z.arrow?.y,K=0!==z.arrow?.centerOffset,[Q,U]=t.useState();return s(()=>{S&&U(window.getComputedStyle(S).zIndex)},[S]),r("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:_?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r(ce,{scope:f,placedSide:X,onArrowChange:C,arrowX:G,arrowY:J,shouldHideArrow:K,children:r(o.div,{"data-side":X,"data-align":I,...A,ref:T,style:{...A.style,animation:_?void 0:"none"}})})})});ue.displayName=se;var de="PopperArrow",pe={top:"bottom",right:"left",bottom:"top",left:"right"},me=t.forwardRef(function(t,e){const{__scopePopper:n,...o}=t,i=fe(de,n),a=pe[i.placedSide];return r("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:r(Zt,{...o,ref:e,style:{...o.style,display:"block"}})})});function he(t){return null!==t}me.displayName=de;var ge=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,i=0!==r.arrow?.centerOffset,a=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[s,c]=ye(n),f={start:"0%",center:"50%",end:"100%"}[c],u=(r.arrow?.x??0)+a/2,d=(r.arrow?.y??0)+l/2;let p="",m="";return"bottom"===s?(p=i?f:`${u}px`,m=-l+"px"):"top"===s?(p=i?f:`${u}px`,m=`${o.floating.height+l}px`):"right"===s?(p=-l+"px",m=i?f:`${d}px`):"left"===s&&(p=`${o.floating.width+l}px`,m=i?f:`${d}px`),{data:{x:p,y:m}}}});function ye(t){const[e,n="center"]=t.split("-");return[e,n]}var we=ie,xe=le,ve=ue,be=me;export{xe as A,ve as C,we as R,be as a,ne as c};
|
2
|
-
//# sourceMappingURL=index-DOyt-JEx.mjs.map
|