freemium-ui 2.0.0-beta.29 → 2.0.0-beta.30
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/index.cjs.js +643 -633
- package/index.js +626 -616
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -755,19 +755,10 @@ height:"32px",size:"14px"}},Cr=En.button`
|
|
|
755
755
|
}),[]),t.createElement(Cr,{size:e,variant:n,inline:o,disabled:i.disabled||a,
|
|
756
756
|
"aria-disabled":i.disabled||a,"aria-label":"string"==typeof r?r:void 0,
|
|
757
757
|
role:"button",...i
|
|
758
|
-
},a?t.createElement(Mr,null):r)),Mr=()=>t.createElement(t.Fragment,null,"...")
|
|
759
|
-
|
|
760
|
-
xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
761
|
-
d:"M0.696495 5.3465C0.882365 5.34499 1.06086 5.27359 1.19649 5.1465L3.99649 2.3365L6.79649 5.1465C7.07264 5.42264 7.52035 5.42264 7.79649 5.1465C8.07264 4.87035 8.07264 4.42264 7.79649 4.1465L4.49649 0.856495C4.36483 0.722118 4.18462 0.646393 3.99649 0.646393C3.80837 0.646393 3.62816 0.722118 3.49649 0.856495L0.206495 4.1465C0.00332102 4.34556 -0.0591904 4.64778 0.0483378 4.91112C0.155867 5.17445 0.412052 5.34654 0.696495 5.3465Z",
|
|
762
|
-
fill:e.fill})),Sr=En(xr)`
|
|
763
|
-
transform: rotate(180deg);
|
|
764
|
-
`,Er=En(zr)`
|
|
765
|
-
display: flex;
|
|
766
|
-
align-items: center;
|
|
767
|
-
gap: 10px;
|
|
768
|
-
`;function _r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){
|
|
758
|
+
},a?t.createElement(Mr,null):r)),Mr=()=>t.createElement(t.Fragment,null,"...")
|
|
759
|
+
;function xr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){
|
|
769
760
|
if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}
|
|
770
|
-
function
|
|
761
|
+
function Sr(e,t=[]){let r=[];const o=()=>{const t=r.map((e=>f(e)))
|
|
771
762
|
;return function(n){const r=(null==n?void 0:n[e])||t;return a((()=>({
|
|
772
763
|
[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return o.scopeName=e,[function(t,o){
|
|
773
764
|
const l=f(o),c=r.length;function s(t){
|
|
@@ -775,21 +766,21 @@ const{scope:n,children:r,...o}=t,s=(null==n?void 0:n[e][c])||l,u=a((()=>o),Objec
|
|
|
775
766
|
;return i(s.Provider,{value:u},r)}
|
|
776
767
|
return r=[...r,o],s.displayName=t+"Provider",[s,function(r,a){
|
|
777
768
|
const i=(null==a?void 0:a[e][c])||l,s=n(i);if(s)return s;if(void 0!==o)return o
|
|
778
|
-
;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},
|
|
779
|
-
function
|
|
769
|
+
;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},Er(o,...t)]}
|
|
770
|
+
function Er(...e){const t=e[0];if(1===e.length)return t;const n=()=>{
|
|
780
771
|
const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){
|
|
781
772
|
const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]
|
|
782
773
|
})),{});return a((()=>({[`__scope${t.scopeName}`]:r})),[r])}}
|
|
783
|
-
;return n.scopeName=t.scopeName,n}function
|
|
774
|
+
;return n.scopeName=t.scopeName,n}function _r(e){const t=r(e);return p((()=>{
|
|
784
775
|
t.current=e})),a((()=>(...e)=>{var n
|
|
785
776
|
;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}
|
|
786
|
-
function
|
|
777
|
+
function Hr({prop:e,defaultProp:t,onChange:n=(()=>{})}){
|
|
787
778
|
const[a,o]=function({defaultProp:e,onChange:t}){
|
|
788
|
-
const n=m(e),[a]=n,o=r(a),i=
|
|
779
|
+
const n=m(e),[a]=n,o=r(a),i=_r(t);return p((()=>{
|
|
789
780
|
o.current!==a&&(i(a),o.current=a)}),[a,o,i]),n}({defaultProp:t,onChange:n
|
|
790
|
-
}),i=void 0!==e,c=i?e:a,s=
|
|
781
|
+
}),i=void 0!==e,c=i?e:a,s=_r(n);return[c,l((t=>{if(i){
|
|
791
782
|
const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}
|
|
792
|
-
function
|
|
783
|
+
function Dr(e){const n=e+"CollectionProvider",[r,a]=Sr(n),[o,i]=r(n,{
|
|
793
784
|
collectionRef:{current:null},itemMap:new Map
|
|
794
785
|
}),l=e+"CollectionSlot",c=e+"CollectionItemSlot",s="data-radix-collection-item"
|
|
795
786
|
;return[{Provider:e=>{
|
|
@@ -804,15 +795,15 @@ const{scope:r,children:a,...o}=e,l=t.useRef(null),u=An(n,l),d=i(c,r)
|
|
|
804
795
|
const r=i(e+"CollectionConsumer",n),a=t.useCallback((()=>{
|
|
805
796
|
const e=r.collectionRef.current;if(!e)return[]
|
|
806
797
|
;const t=Array.from(e.querySelectorAll(`[${s}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))
|
|
807
|
-
;return n}),[r.collectionRef,r.itemMap]);return a},a]}const
|
|
808
|
-
;function
|
|
809
|
-
const
|
|
810
|
-
;let
|
|
811
|
-
layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),
|
|
798
|
+
;return n}),[r.collectionRef,r.itemMap]);return a},a]}const Lr=f(void 0)
|
|
799
|
+
;function Vr(e){const t=n(Lr);return e||t||"ltr"}
|
|
800
|
+
const Ar="dismissableLayer.update",kr="dismissableLayer.pointerDownOutside",Tr="dismissableLayer.focusOutside"
|
|
801
|
+
;let Pr;const Ir=f({layers:new Set,
|
|
802
|
+
layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rr=c(((e,t)=>{
|
|
812
803
|
var a
|
|
813
|
-
;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:s,onInteractOutside:u,onDismiss:d,...h}=e,f=n(
|
|
814
|
-
const n=
|
|
815
|
-
if(e.target&&!a.current){const r={originalEvent:e};function i(){
|
|
804
|
+
;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:s,onInteractOutside:u,onDismiss:d,...h}=e,f=n(Ir),[v,g]=m(null),y=null!==(a=null==v?void 0:v.ownerDocument)&&void 0!==a?a:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=m({}),w=An(t,(e=>g(e))),C=Array.from(f.layers),[z]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),M=C.indexOf(z),x=v?C.indexOf(v):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,E=x>=M,_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){
|
|
805
|
+
const n=_r(e),a=r(!1),o=r((()=>{}));return p((()=>{const e=e=>{
|
|
806
|
+
if(e.target&&!a.current){const r={originalEvent:e};function i(){Fr(kr,n,r,{
|
|
816
807
|
discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),
|
|
817
808
|
o.current=i,t.addEventListener("click",o.current,{once:!0})):i()
|
|
818
809
|
}else t.removeEventListener("click",o.current);a.current=!1
|
|
@@ -823,247 +814,247 @@ t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}
|
|
|
823
814
|
const t=e.target,n=[...f.branches].some((e=>e.contains(t)))
|
|
824
815
|
;E&&!n&&(null==c||c(e),null==u||u(e),e.defaultPrevented||null==d||d())
|
|
825
816
|
}),y),H=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){
|
|
826
|
-
const n=
|
|
827
|
-
|
|
817
|
+
const n=_r(e),a=r(!1);return p((()=>{const e=e=>{if(e.target&&!a.current){
|
|
818
|
+
Fr(Tr,n,{originalEvent:e},{discrete:!1})}}
|
|
828
819
|
;return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)
|
|
829
820
|
}),[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}
|
|
830
821
|
}((e=>{const t=e.target
|
|
831
822
|
;[...f.branches].some((e=>e.contains(t)))||(null==s||s(e),
|
|
832
823
|
null==u||u(e),e.defaultPrevented||null==d||d())}),y)
|
|
833
824
|
;return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){
|
|
834
|
-
const n=
|
|
825
|
+
const n=_r(e);p((()=>{const e=e=>{"Escape"===e.key&&n(e)}
|
|
835
826
|
;return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)
|
|
836
827
|
}),[n,t])}((e=>{
|
|
837
828
|
x===f.layers.size-1&&(null==l||l(e),!e.defaultPrevented&&d&&(e.preventDefault(),
|
|
838
829
|
d()))}),y),p((()=>{
|
|
839
|
-
if(v)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(
|
|
830
|
+
if(v)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Pr=y.body.style.pointerEvents,
|
|
840
831
|
y.body.style.pointerEvents="none"),
|
|
841
|
-
f.layersWithOutsidePointerEventsDisabled.add(v)),f.layers.add(v),
|
|
842
|
-
o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=
|
|
832
|
+
f.layersWithOutsidePointerEventsDisabled.add(v)),f.layers.add(v),Nr(),()=>{
|
|
833
|
+
o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=Pr)
|
|
843
834
|
}}),[v,y,o,f]),p((()=>()=>{
|
|
844
|
-
v&&(f.layers.delete(v),f.layersWithOutsidePointerEventsDisabled.delete(v),
|
|
835
|
+
v&&(f.layers.delete(v),f.layersWithOutsidePointerEventsDisabled.delete(v),Nr())
|
|
845
836
|
}),[v,f]),p((()=>{const e=()=>b({})
|
|
846
|
-
;return document.addEventListener(
|
|
837
|
+
;return document.addEventListener(Ar,e),()=>document.removeEventListener(Ar,e)
|
|
847
838
|
}),[]),i(On.div,Ln({},h,{ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,
|
|
848
|
-
...e.style},onFocusCapture:
|
|
849
|
-
onBlurCapture:
|
|
850
|
-
onPointerDownCapture:
|
|
851
|
-
})),
|
|
839
|
+
...e.style},onFocusCapture:xr(e.onFocusCapture,H.onFocusCapture),
|
|
840
|
+
onBlurCapture:xr(e.onBlurCapture,H.onBlurCapture),
|
|
841
|
+
onPointerDownCapture:xr(e.onPointerDownCapture,_.onPointerDownCapture)}))
|
|
842
|
+
})),Or=c(((e,t)=>{const a=n(Ir),o=r(null),l=An(t,o);return p((()=>{
|
|
852
843
|
const e=o.current;if(e)return a.branches.add(e),()=>{a.branches.delete(e)}
|
|
853
|
-
}),[a.branches]),i(On.div,Ln({},e,{ref:l}))}));function
|
|
854
|
-
const e=new CustomEvent(
|
|
855
|
-
function
|
|
844
|
+
}),[a.branches]),i(On.div,Ln({},e,{ref:l}))}));function Nr(){
|
|
845
|
+
const e=new CustomEvent(Ar);document.dispatchEvent(e)}
|
|
846
|
+
function Fr(e,t,n,{discrete:r}){
|
|
856
847
|
const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,
|
|
857
848
|
detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Nn(a,o):a.dispatchEvent(o)}
|
|
858
|
-
const
|
|
849
|
+
const Br=Rr,jr=Or;let Ur=0;function $r(){p((()=>{var e,t
|
|
859
850
|
;const n=document.querySelectorAll("[data-radix-focus-guard]")
|
|
860
|
-
;return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:
|
|
861
|
-
document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:
|
|
862
|
-
|
|
863
|
-
1===
|
|
864
|
-
|
|
851
|
+
;return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Yr()),
|
|
852
|
+
document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Yr()),
|
|
853
|
+
Ur++,()=>{
|
|
854
|
+
1===Ur&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),
|
|
855
|
+
Ur--}}),[])}function Yr(){const e=document.createElement("span")
|
|
865
856
|
;return e.setAttribute("data-radix-focus-guard",""),
|
|
866
857
|
e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",
|
|
867
|
-
e}const
|
|
868
|
-
bubbles:!1,cancelable:!0},
|
|
869
|
-
const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...s}=e,[u,d]=m(null),h=
|
|
858
|
+
e}const Wr="focusScope.autoFocusOnMount",Gr="focusScope.autoFocusOnUnmount",Kr={
|
|
859
|
+
bubbles:!1,cancelable:!0},qr=c(((e,t)=>{
|
|
860
|
+
const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...s}=e,[u,d]=m(null),h=_r(o),f=_r(c),v=r(null),g=An(t,(e=>d(e))),y=r({
|
|
870
861
|
paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p((()=>{
|
|
871
862
|
if(a){function e(e){if(y.paused||!u)return;const t=e.target
|
|
872
|
-
;u.contains(t)?v.current=t:
|
|
863
|
+
;u.contains(t)?v.current=t:Jr(v.current,{select:!0})}function t(e){
|
|
873
864
|
if(y.paused||!u)return;const t=e.relatedTarget
|
|
874
|
-
;null!==t&&(u.contains(t)||
|
|
875
|
-
if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&
|
|
865
|
+
;null!==t&&(u.contains(t)||Jr(v.current,{select:!0}))}function n(e){
|
|
866
|
+
if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Jr(u)
|
|
876
867
|
}document.addEventListener("focusin",e),document.addEventListener("focusout",t)
|
|
877
868
|
;const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0
|
|
878
869
|
}),()=>{
|
|
879
870
|
document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),
|
|
880
|
-
r.disconnect()}}}),[a,u,y.paused]),p((()=>{if(u){
|
|
871
|
+
r.disconnect()}}}),[a,u,y.paused]),p((()=>{if(u){ea.add(y)
|
|
881
872
|
;const e=document.activeElement;if(!u.contains(e)){
|
|
882
|
-
const t=new CustomEvent(
|
|
883
|
-
;u.addEventListener(
|
|
884
|
-
const n=document.activeElement;for(const r of e)if(
|
|
873
|
+
const t=new CustomEvent(Wr,Kr)
|
|
874
|
+
;u.addEventListener(Wr,h),u.dispatchEvent(t),t.defaultPrevented||(!function(e,{select:t=!1}={}){
|
|
875
|
+
const n=document.activeElement;for(const r of e)if(Jr(r,{select:t
|
|
885
876
|
}),document.activeElement!==n)return}(function(e){
|
|
886
|
-
return e.filter((e=>"A"!==e.tagName))}(
|
|
887
|
-
}),document.activeElement===e&&
|
|
888
|
-
u.removeEventListener(
|
|
889
|
-
;u.addEventListener(
|
|
890
|
-
u.dispatchEvent(t),t.defaultPrevented||
|
|
891
|
-
}),u.removeEventListener(
|
|
877
|
+
return e.filter((e=>"A"!==e.tagName))}(Zr(u)),{select:!0
|
|
878
|
+
}),document.activeElement===e&&Jr(u))}return()=>{
|
|
879
|
+
u.removeEventListener(Wr,h),setTimeout((()=>{const t=new CustomEvent(Gr,Kr)
|
|
880
|
+
;u.addEventListener(Gr,f),
|
|
881
|
+
u.dispatchEvent(t),t.defaultPrevented||Jr(null!=e?e:document.body,{select:!0
|
|
882
|
+
}),u.removeEventListener(Gr,f),ea.remove(y)}),0)}}}),[u,h,f,y]);const b=l((e=>{
|
|
892
883
|
if(!n&&!a)return;if(y.paused)return
|
|
893
884
|
;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement
|
|
894
885
|
;if(t&&r){const t=e.currentTarget,[a,o]=function(e){
|
|
895
|
-
const t=
|
|
896
|
-
;a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&
|
|
897
|
-
select:!0})):(e.preventDefault(),n&&
|
|
886
|
+
const t=Zr(e),n=Xr(t,e),r=Xr(t.reverse(),e);return[n,r]}(t)
|
|
887
|
+
;a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&Jr(o,{
|
|
888
|
+
select:!0})):(e.preventDefault(),n&&Jr(a,{select:!0})):r===t&&e.preventDefault()
|
|
898
889
|
}}),[n,a,y.paused]);return i(On.div,Ln({tabIndex:-1},s,{ref:g,onKeyDown:b}))}))
|
|
899
|
-
;function
|
|
890
|
+
;function Zr(e){
|
|
900
891
|
const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
|
|
901
892
|
acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
|
|
902
893
|
;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
|
|
903
|
-
}});for(;n.nextNode();)t.push(n.currentNode);return t}function
|
|
904
|
-
for(const n of e)if(!
|
|
894
|
+
}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xr(e,t){
|
|
895
|
+
for(const n of e)if(!Qr(n,{upTo:t}))return n}function Qr(e,{upTo:t}){
|
|
905
896
|
if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){
|
|
906
897
|
if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0
|
|
907
|
-
;e=e.parentElement}return!1}function
|
|
898
|
+
;e=e.parentElement}return!1}function Jr(e,{select:t=!1}={}){if(e&&e.focus){
|
|
908
899
|
const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){
|
|
909
900
|
return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}
|
|
910
|
-
const
|
|
911
|
-
;t!==n&&(null==n||n.pause()),e=
|
|
912
|
-
;e=
|
|
901
|
+
const ea=function(){let e=[];return{add(t){const n=e[0]
|
|
902
|
+
;t!==n&&(null==n||n.pause()),e=ta(e,t),e.unshift(t)},remove(t){var n
|
|
903
|
+
;e=ta(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function ta(e,t){
|
|
913
904
|
const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}
|
|
914
|
-
const
|
|
915
|
-
;let
|
|
916
|
-
t||r((e=>null!=e?e:String(
|
|
917
|
-
const
|
|
918
|
-
x:e,y:e}),
|
|
919
|
-
start:"end",end:"start"};function
|
|
920
|
-
function
|
|
921
|
-
return e.split("-")[0]}function
|
|
922
|
-
return"x"===e?"y":"x"}function
|
|
923
|
-
function
|
|
924
|
-
return
|
|
925
|
-
function
|
|
926
|
-
function
|
|
927
|
-
bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function
|
|
928
|
-
...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function
|
|
905
|
+
const na=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?v:()=>{},ra=e["useId".toString()]||(()=>{})
|
|
906
|
+
;let aa=0;function oa(t){const[n,r]=e.useState(ra());return na((()=>{
|
|
907
|
+
t||r((e=>null!=e?e:String(aa++)))}),[t]),t||(n?`radix-${n}`:"")}
|
|
908
|
+
const ia=["top","right","bottom","left"],la=Math.min,ca=Math.max,sa=Math.round,ua=Math.floor,da=e=>({
|
|
909
|
+
x:e,y:e}),ha={left:"right",right:"left",bottom:"top",top:"bottom"},pa={
|
|
910
|
+
start:"end",end:"start"};function fa(e,t,n){return ca(e,la(t,n))}
|
|
911
|
+
function ma(e,t){return"function"==typeof e?e(t):e}function va(e){
|
|
912
|
+
return e.split("-")[0]}function ga(e){return e.split("-")[1]}function ya(e){
|
|
913
|
+
return"x"===e?"y":"x"}function ba(e){return"y"===e?"height":"width"}
|
|
914
|
+
function wa(e){return["top","bottom"].includes(va(e))?"y":"x"}function Ca(e){
|
|
915
|
+
return ya(wa(e))}function za(e){return e.replace(/start|end/g,(e=>pa[e]))}
|
|
916
|
+
function Ma(e){return e.replace(/left|right|bottom|top/g,(e=>ha[e]))}
|
|
917
|
+
function xa(e){return"number"!=typeof e?function(e){return{top:0,right:0,
|
|
918
|
+
bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Sa(e){return{
|
|
919
|
+
...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ea(e,t,n){
|
|
929
920
|
let{reference:r,floating:a}=e
|
|
930
|
-
;const o=
|
|
921
|
+
;const o=wa(t),i=Ca(t),l=ba(i),c=va(t),s="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,h=r[l]/2-a[l]/2
|
|
931
922
|
;let p;switch(c){case"top":p={x:u,y:r.y-a.height};break;case"bottom":p={x:u,
|
|
932
923
|
y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={
|
|
933
|
-
x:r.x-a.width,y:d};break;default:p={x:r.x,y:r.y}}switch(
|
|
924
|
+
x:r.x-a.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ga(t)){case"start":
|
|
934
925
|
p[i]-=h*(n&&s?-1:1);break;case"end":p[i]+=h*(n&&s?-1:1)}return p}
|
|
935
|
-
async function
|
|
936
|
-
;const{x:r,y:a,platform:o,rects:i,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=
|
|
926
|
+
async function _a(e,t){var n;void 0===t&&(t={})
|
|
927
|
+
;const{x:r,y:a,platform:o,rects:i,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=ma(t,e),f=xa(p),m=l[h?"floating"===d?"reference":"floating":d],v=Sa(await o.getClippingRect({
|
|
937
928
|
element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),
|
|
938
929
|
boundary:s,rootBoundary:u,strategy:c})),g="floating"===d?{...i.floating,x:r,y:a
|
|
939
930
|
}:i.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{
|
|
940
931
|
x:1,y:1
|
|
941
|
-
},w=
|
|
932
|
+
},w=Sa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
942
933
|
elements:l,rect:g,offsetParent:y,strategy:c}):g);return{
|
|
943
934
|
top:(v.top-w.top+f.top)/b.y,bottom:(w.bottom-v.bottom+f.bottom)/b.y,
|
|
944
935
|
left:(v.left-w.left+f.left)/b.x,right:(w.right-v.right+f.right)/b.x}}
|
|
945
|
-
function
|
|
946
|
-
bottom:e.bottom-t.height,left:e.left-t.width}}function
|
|
947
|
-
return
|
|
936
|
+
function Ha(e,t){return{top:e.top-t.height,right:e.right-t.width,
|
|
937
|
+
bottom:e.bottom-t.height,left:e.left-t.width}}function Da(e){
|
|
938
|
+
return ia.some((t=>e[t]>=0))}const La=function(e){return void 0===e&&(e=0),{
|
|
948
939
|
name:"offset",options:e,async fn(t){var n,r
|
|
949
940
|
;const{x:a,y:o,placement:i,middlewareData:l}=t,c=await async function(e,t){
|
|
950
|
-
const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=
|
|
941
|
+
const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=va(n),l=ga(n),c="y"===wa(n),s=["left","top"].includes(i)?-1:1,u=o&&c?-1:1,d=ma(t,e)
|
|
951
942
|
;let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,
|
|
952
943
|
crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d}
|
|
953
944
|
;return l&&"number"==typeof f&&(p="end"===l?-1*f:f),c?{x:p*u,y:h*s}:{x:h*s,y:p*u
|
|
954
945
|
}}(t,e)
|
|
955
946
|
;return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{
|
|
956
|
-
x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}};function
|
|
957
|
-
return
|
|
947
|
+
x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}};function Va(e){
|
|
948
|
+
return Ta(e)?(e.nodeName||"").toLowerCase():"#document"}function Aa(e){var t
|
|
958
949
|
;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}
|
|
959
|
-
function
|
|
960
|
-
;return null==(t=(
|
|
961
|
-
}function
|
|
962
|
-
function
|
|
963
|
-
function
|
|
964
|
-
function
|
|
965
|
-
return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof
|
|
966
|
-
}function
|
|
950
|
+
function ka(e){var t
|
|
951
|
+
;return null==(t=(Ta(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement
|
|
952
|
+
}function Ta(e){return e instanceof Node||e instanceof Aa(e).Node}
|
|
953
|
+
function Pa(e){return e instanceof Element||e instanceof Aa(e).Element}
|
|
954
|
+
function Ia(e){return e instanceof HTMLElement||e instanceof Aa(e).HTMLElement}
|
|
955
|
+
function Ra(e){
|
|
956
|
+
return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Aa(e).ShadowRoot)
|
|
957
|
+
}function Oa(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ua(e)
|
|
967
958
|
;return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)
|
|
968
|
-
}function
|
|
969
|
-
const t
|
|
959
|
+
}function Na(e){return["table","td","th"].includes(Va(e))}function Fa(e){
|
|
960
|
+
const t=Ba(),n=Ua(e)
|
|
970
961
|
;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))
|
|
971
|
-
}function
|
|
962
|
+
}function Ba(){
|
|
972
963
|
return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")
|
|
973
|
-
}function
|
|
974
|
-
function
|
|
964
|
+
}function ja(e){return["html","body","#document"].includes(Va(e))}
|
|
965
|
+
function Ua(e){return Aa(e).getComputedStyle(e)}function $a(e){return Pa(e)?{
|
|
975
966
|
scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,
|
|
976
|
-
scrollTop:e.pageYOffset}}function
|
|
977
|
-
;const t=e.assignedSlot||e.parentNode||
|
|
978
|
-
;return
|
|
979
|
-
;return
|
|
980
|
-
function
|
|
981
|
-
;const a=
|
|
982
|
-
;return o?t.concat(i,i.visualViewport||[],
|
|
983
|
-
}function
|
|
967
|
+
scrollTop:e.pageYOffset}}function Ya(e){if("html"===Va(e))return e
|
|
968
|
+
;const t=e.assignedSlot||e.parentNode||Ra(e)&&e.host||ka(e)
|
|
969
|
+
;return Ra(t)?t.host:t}function Wa(e){const t=Ya(e)
|
|
970
|
+
;return ja(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ia(t)&&Oa(t)?t:Wa(t)}
|
|
971
|
+
function Ga(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0)
|
|
972
|
+
;const a=Wa(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=Aa(a)
|
|
973
|
+
;return o?t.concat(i,i.visualViewport||[],Oa(a)?a:[],i.frameElement&&n?Ga(i.frameElement):[]):t.concat(a,Ga(a,[],n))
|
|
974
|
+
}function Ka(e){const t=Ua(e)
|
|
984
975
|
;let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0
|
|
985
|
-
;const a=
|
|
986
|
-
;return l&&(n=o,r=i),{width:n,height:r,$:l}}function
|
|
987
|
-
return
|
|
988
|
-
;if(!
|
|
989
|
-
;const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=
|
|
990
|
-
;let i=(o?
|
|
976
|
+
;const a=Ia(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,l=sa(n)!==o||sa(r)!==i
|
|
977
|
+
;return l&&(n=o,r=i),{width:n,height:r,$:l}}function qa(e){
|
|
978
|
+
return Pa(e)?e:e.contextElement}function Za(e){const t=qa(e)
|
|
979
|
+
;if(!Ia(t))return da(1)
|
|
980
|
+
;const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Ka(t)
|
|
981
|
+
;let i=(o?sa(n.width):n.width)/r,l=(o?sa(n.height):n.height)/a
|
|
991
982
|
;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}
|
|
992
|
-
const
|
|
993
|
-
x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:
|
|
994
|
-
function
|
|
995
|
-
;const a=e.getBoundingClientRect(),o=
|
|
996
|
-
;t&&(r?
|
|
997
|
-
return void 0===t&&(t=!1),!(!n||t&&n!==
|
|
983
|
+
const Xa=da(0);function Qa(e){const t=Aa(e);return Ba()&&t.visualViewport?{
|
|
984
|
+
x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Xa}
|
|
985
|
+
function Ja(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1)
|
|
986
|
+
;const a=e.getBoundingClientRect(),o=qa(e);let i=da(1)
|
|
987
|
+
;t&&(r?Pa(r)&&(i=Za(r)):i=Za(e));const l=function(e,t,n){
|
|
988
|
+
return void 0===t&&(t=!1),!(!n||t&&n!==Aa(e))&&t}(o,n,r)?Qa(o):da(0)
|
|
998
989
|
;let c=(a.left+l.x)/i.x,s=(a.top+l.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){
|
|
999
|
-
const e=
|
|
1000
|
-
const e=
|
|
1001
|
-
;c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=o,s+=i,n=
|
|
1002
|
-
width:u,height:d,x:c,y:s})}const
|
|
1003
|
-
return
|
|
1004
|
-
function
|
|
1005
|
-
;if("viewport"===t)r=function(e,t){const n=
|
|
990
|
+
const e=Aa(o),t=r&&Pa(r)?Aa(r):r;let n=e,a=n.frameElement;for(;a&&r&&t!==n;){
|
|
991
|
+
const e=Za(a),t=a.getBoundingClientRect(),r=Ua(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y
|
|
992
|
+
;c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=o,s+=i,n=Aa(a),a=n.frameElement}}return Sa({
|
|
993
|
+
width:u,height:d,x:c,y:s})}const eo=[":popover-open",":modal"];function to(e){
|
|
994
|
+
return eo.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}
|
|
995
|
+
function no(e){return Ja(ka(e)).left+$a(e).scrollLeft}function ro(e,t,n){let r
|
|
996
|
+
;if("viewport"===t)r=function(e,t){const n=Aa(e),r=ka(e),a=n.visualViewport
|
|
1006
997
|
;let o=r.clientWidth,i=r.clientHeight,l=0,c=0;if(a){o=a.width,i=a.height
|
|
1007
|
-
;const e
|
|
998
|
+
;const e=Ba();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,c=a.offsetTop)}return{
|
|
1008
999
|
width:o,height:i,x:l,y:c}}(e,n);else if("document"===t)r=function(e){
|
|
1009
|
-
const t=
|
|
1010
|
-
;let i=-n.scrollLeft+
|
|
1011
|
-
;return"rtl"===
|
|
1012
|
-
height:o,x:i,y:l}}(
|
|
1013
|
-
const n=
|
|
1000
|
+
const t=ka(e),n=$a(e),r=e.ownerDocument.body,a=ca(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ca(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight)
|
|
1001
|
+
;let i=-n.scrollLeft+no(e);const l=-n.scrollTop
|
|
1002
|
+
;return"rtl"===Ua(r).direction&&(i+=ca(t.clientWidth,r.clientWidth)-a),{width:a,
|
|
1003
|
+
height:o,x:i,y:l}}(ka(e));else if(Pa(t))r=function(e,t){
|
|
1004
|
+
const n=Ja(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=Ia(e)?Za(e):da(1)
|
|
1014
1005
|
;return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}
|
|
1015
|
-
}(t,n);else{const n=
|
|
1016
|
-
function
|
|
1017
|
-
;return!(n===t||!
|
|
1018
|
-
function
|
|
1019
|
-
scrollLeft:0,scrollTop:0};const c=
|
|
1020
|
-
;if(r||!r&&!o)if(("body"!==
|
|
1021
|
-
;c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else a&&(c.x=
|
|
1006
|
+
}(t,n);else{const n=Qa(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Sa(r)}
|
|
1007
|
+
function ao(e,t){const n=Ya(e)
|
|
1008
|
+
;return!(n===t||!Pa(n)||ja(n))&&("fixed"===Ua(n).position||ao(n,t))}
|
|
1009
|
+
function oo(e,t,n){const r=Ia(t),a=ka(t),o="fixed"===n,i=Ja(e,!0,o,t);let l={
|
|
1010
|
+
scrollLeft:0,scrollTop:0};const c=da(0)
|
|
1011
|
+
;if(r||!r&&!o)if(("body"!==Va(t)||Oa(a))&&(l=$a(t)),r){const e=Ja(t,!0,o,t)
|
|
1012
|
+
;c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else a&&(c.x=no(a));return{
|
|
1022
1013
|
x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}
|
|
1023
|
-
}function
|
|
1024
|
-
return
|
|
1025
|
-
function
|
|
1026
|
-
;for(;r&&
|
|
1027
|
-
;return r&&("html"===
|
|
1028
|
-
let t=
|
|
1029
|
-
const
|
|
1014
|
+
}function io(e,t){
|
|
1015
|
+
return Ia(e)&&"fixed"!==Ua(e).position?t?t(e):e.offsetParent:null}
|
|
1016
|
+
function lo(e,t){const n=Aa(e);if(!Ia(e)||to(e))return n;let r=io(e,t)
|
|
1017
|
+
;for(;r&&Na(r)&&"static"===Ua(r).position;)r=io(r,t)
|
|
1018
|
+
;return r&&("html"===Va(r)||"body"===Va(r)&&"static"===Ua(r).position&&!Fa(r))?n:r||function(e){
|
|
1019
|
+
let t=Ya(e);for(;Ia(t)&&!ja(t);){if(Fa(t))return t;t=Ya(t)}return null}(e)||n}
|
|
1020
|
+
const co={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){
|
|
1030
1021
|
let{elements:t,rect:n,offsetParent:r,strategy:a}=e
|
|
1031
|
-
;const o="fixed"===a,i=
|
|
1032
|
-
;let c={scrollLeft:0,scrollTop:0},s=
|
|
1033
|
-
;if((d||!d&&!o)&&(("body"!==
|
|
1034
|
-
;s=
|
|
1022
|
+
;const o="fixed"===a,i=ka(r),l=!!t&&to(t.floating);if(r===i||l&&o)return n
|
|
1023
|
+
;let c={scrollLeft:0,scrollTop:0},s=da(1);const u=da(0),d=Ia(r)
|
|
1024
|
+
;if((d||!d&&!o)&&(("body"!==Va(r)||Oa(i))&&(c=$a(r)),Ia(r))){const e=Ja(r)
|
|
1025
|
+
;s=Za(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*s.x,
|
|
1035
1026
|
height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+u.x,y:n.y*s.y-c.scrollTop*s.y+u.y
|
|
1036
|
-
}},getDocumentElement:
|
|
1027
|
+
}},getDocumentElement:ka,getClippingRect:function(e){
|
|
1037
1028
|
let{element:t,boundary:n,rootBoundary:r,strategy:a}=e
|
|
1038
1029
|
;const o=[..."clippingAncestors"===n?function(e,t){const n=t.get(e)
|
|
1039
|
-
;if(n)return n;let r=
|
|
1040
|
-
;const o="fixed"===
|
|
1041
|
-
const t=
|
|
1042
|
-
;n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||
|
|
1043
|
-
i=
|
|
1044
|
-
}(t,this._c):[].concat(n),r],i=o[0],l=o.reduce(((e,n)=>{const r=
|
|
1045
|
-
;return e.top=
|
|
1046
|
-
e.right=
|
|
1047
|
-
e.left=
|
|
1048
|
-
height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:
|
|
1030
|
+
;if(n)return n;let r=Ga(e,[],!1).filter((e=>Pa(e)&&"body"!==Va(e))),a=null
|
|
1031
|
+
;const o="fixed"===Ua(e).position;let i=o?Ya(e):e;for(;Pa(i)&&!ja(i);){
|
|
1032
|
+
const t=Ua(i),n=Fa(i)
|
|
1033
|
+
;n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||Oa(i)&&!n&&ao(e,i))?r=r.filter((e=>e!==i)):a=t,
|
|
1034
|
+
i=Ya(i)}return t.set(e,r),r
|
|
1035
|
+
}(t,this._c):[].concat(n),r],i=o[0],l=o.reduce(((e,n)=>{const r=ro(t,n,a)
|
|
1036
|
+
;return e.top=ca(r.top,e.top),
|
|
1037
|
+
e.right=la(r.right,e.right),e.bottom=la(r.bottom,e.bottom),
|
|
1038
|
+
e.left=ca(r.left,e.left),e}),ro(t,i,a));return{width:l.right-l.left,
|
|
1039
|
+
height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:lo,
|
|
1049
1040
|
getElementRects:async function(e){
|
|
1050
|
-
const t=this.getOffsetParent||
|
|
1051
|
-
reference:
|
|
1041
|
+
const t=this.getOffsetParent||lo,n=this.getDimensions;return{
|
|
1042
|
+
reference:oo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,
|
|
1052
1043
|
...await n(e.floating)}}},getClientRects:function(e){
|
|
1053
1044
|
return Array.from(e.getClientRects())},getDimensions:function(e){
|
|
1054
|
-
const{width:t,height:n}=
|
|
1055
|
-
isElement:
|
|
1056
|
-
;function
|
|
1057
|
-
;const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=
|
|
1045
|
+
const{width:t,height:n}=Ka(e);return{width:t,height:n}},getScale:Za,
|
|
1046
|
+
isElement:Pa,isRTL:function(e){return"rtl"===Ua(e).direction}}
|
|
1047
|
+
;function so(e,t,n,r){void 0===r&&(r={})
|
|
1048
|
+
;const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=qa(e),u=a||o?[...s?Ga(s):[],...Ga(t)]:[]
|
|
1058
1049
|
;u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0
|
|
1059
1050
|
}),o&&e.addEventListener("resize",n)}));const d=s&&l?function(e,t){let n,r=null
|
|
1060
|
-
;const a=
|
|
1051
|
+
;const a=ka(e);function o(){var e
|
|
1061
1052
|
;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,c){
|
|
1062
1053
|
void 0===l&&(l=!1),void 0===c&&(c=1),o()
|
|
1063
1054
|
;const{left:s,top:u,width:d,height:h}=e.getBoundingClientRect()
|
|
1064
1055
|
;if(l||t(),!d||!h)return;const p={
|
|
1065
|
-
rootMargin:-
|
|
1066
|
-
threshold:
|
|
1056
|
+
rootMargin:-ua(u)+"px "+-ua(a.clientWidth-(s+d))+"px "+-ua(a.clientHeight-(u+h))+"px "+-ua(s)+"px",
|
|
1057
|
+
threshold:ca(0,la(1,c))||1};let f=!0;function m(e){
|
|
1067
1058
|
const t=e[0].intersectionRatio;if(t!==c){if(!f)return i()
|
|
1068
1059
|
;t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}f=!1}try{
|
|
1069
1060
|
r=new IntersectionObserver(m,{...p,root:a.ownerDocument})}catch(e){
|
|
@@ -1071,36 +1062,36 @@ r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(s,n):null;let h,p=-1,f=null
|
|
|
1071
1062
|
;i&&(f=new ResizeObserver((e=>{let[r]=e
|
|
1072
1063
|
;r&&r.target===s&&f&&(f.unobserve(t),cancelAnimationFrame(p),
|
|
1073
1064
|
p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()
|
|
1074
|
-
})),s&&!c&&f.observe(s),f.observe(t));let m=c?
|
|
1075
|
-
const r=
|
|
1065
|
+
})),s&&!c&&f.observe(s),f.observe(t));let m=c?Ja(e):null;return c&&function t(){
|
|
1066
|
+
const r=Ja(e)
|
|
1076
1067
|
;!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n()
|
|
1077
1068
|
;m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{
|
|
1078
1069
|
a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)
|
|
1079
1070
|
})),null==d||d(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(h)}}
|
|
1080
|
-
const
|
|
1071
|
+
const uo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,
|
|
1081
1072
|
async fn(t){
|
|
1082
1073
|
const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:e=>{
|
|
1083
|
-
let{x:t,y:n}=e;return{x:t,y:n}}},...c}=
|
|
1084
|
-
},u=await
|
|
1085
|
-
const e="y"===h?"bottom":"right";p=
|
|
1086
|
-
const e="y"===d?"bottom":"right";f=
|
|
1074
|
+
let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ma(e,t),s={x:n,y:r
|
|
1075
|
+
},u=await _a(t,c),d=wa(va(a)),h=ya(d);let p=s[h],f=s[d];if(o){
|
|
1076
|
+
const e="y"===h?"bottom":"right";p=fa(p+u["y"===h?"top":"left"],p,p-u[e])}if(i){
|
|
1077
|
+
const e="y"===d?"bottom":"right";f=fa(f+u["y"===d?"top":"left"],f,f-u[e])}
|
|
1087
1078
|
const m=l.fn({...t,[h]:p,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r}}}}
|
|
1088
|
-
},
|
|
1079
|
+
},ho=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){
|
|
1089
1080
|
var n,r
|
|
1090
|
-
;const{placement:a,middlewareData:o,rects:i,initialPlacement:l,platform:c,elements:s}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...v}=
|
|
1081
|
+
;const{placement:a,middlewareData:o,rects:i,initialPlacement:l,platform:c,elements:s}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...v}=ma(e,t)
|
|
1091
1082
|
;if(null!=(n=o.arrow)&&n.alignmentOffset)return{}
|
|
1092
|
-
;const g=
|
|
1093
|
-
const t=
|
|
1094
|
-
;h||"none"===f||w.push(...function(e,t,n,r){const a=
|
|
1083
|
+
;const g=va(a),y=va(l)===l,b=await(null==c.isRTL?void 0:c.isRTL(s.floating)),w=h||(y||!m?[Ma(l)]:function(e){
|
|
1084
|
+
const t=Ma(e);return[za(e),t,za(t)]}(l))
|
|
1085
|
+
;h||"none"===f||w.push(...function(e,t,n,r){const a=ga(e);let o=function(e,t,n){
|
|
1095
1086
|
const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"]
|
|
1096
1087
|
;switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":
|
|
1097
|
-
return t?o:i;default:return[]}}(
|
|
1098
|
-
;return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(
|
|
1099
|
-
;const C=[l,...w],z=await
|
|
1088
|
+
return t?o:i;default:return[]}}(va(e),"start"===n,r)
|
|
1089
|
+
;return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(za)))),o}(l,m,f,b))
|
|
1090
|
+
;const C=[l,...w],z=await _a(t,v),M=[]
|
|
1100
1091
|
;let x=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&M.push(z[g]),d){
|
|
1101
|
-
const e=function(e,t,n){void 0===n&&(n=!1);const r=
|
|
1092
|
+
const e=function(e,t,n){void 0===n&&(n=!1);const r=ga(e),a=Ca(e),o=ba(a)
|
|
1102
1093
|
;let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top"
|
|
1103
|
-
;return t.reference[o]>t.floating[o]&&(i=
|
|
1094
|
+
;return t.reference[o]>t.floating[o]&&(i=Ma(i)),[i,Ma(i)]}(a,i,b)
|
|
1104
1095
|
;M.push(z[e[0]],z[e[1]])}if(x=[...x,{placement:a,overflows:M
|
|
1105
1096
|
}],!M.every((e=>e<=0))){var S,E
|
|
1106
1097
|
;const e=((null==(S=o.flip)?void 0:S.index)||0)+1,t=C[e];if(t)return{data:{
|
|
@@ -1109,168 +1100,168 @@ index:e,overflows:x},reset:{placement:t}}
|
|
|
1109
1100
|
;if(!n)switch(p){case"bestFit":{var _
|
|
1110
1101
|
;const e=null==(_=x.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0]
|
|
1111
1102
|
;e&&(n=e);break}case"initialPlacement":n=l}if(a!==n)return{reset:{placement:n}}}
|
|
1112
|
-
return{}}}},
|
|
1103
|
+
return{}}}},po=function(e){return void 0===e&&(e={}),{name:"size",options:e,
|
|
1113
1104
|
async fn(t){
|
|
1114
|
-
const{placement:n,rects:r,platform:a,elements:o}=t,{apply:i=(()=>{}),...l}=
|
|
1105
|
+
const{placement:n,rects:r,platform:a,elements:o}=t,{apply:i=(()=>{}),...l}=ma(e,t),c=await _a(t,l),s=va(n),u=ga(n),d="y"===wa(n),{width:h,height:p}=r.floating
|
|
1115
1106
|
;let f,m
|
|
1116
1107
|
;"top"===s||"bottom"===s?(f=s,m=u===(await(null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(m=s,
|
|
1117
1108
|
f="end"===u?"top":"bottom");const v=p-c[f],g=h-c[m],y=!t.middlewareData.shift
|
|
1118
|
-
;let b=v,w=g;if(d){const e=h-c.left-c.right;w=u||y?
|
|
1119
|
-
const e=p-c.top-c.bottom;b=u||y?
|
|
1120
|
-
const e=
|
|
1121
|
-
;d?w=h-2*(0!==e||0!==t?e+t:
|
|
1109
|
+
;let b=v,w=g;if(d){const e=h-c.left-c.right;w=u||y?la(g,e):e}else{
|
|
1110
|
+
const e=p-c.top-c.bottom;b=u||y?la(v,e):e}if(y&&!u){
|
|
1111
|
+
const e=ca(c.left,0),t=ca(c.right,0),n=ca(c.top,0),r=ca(c.bottom,0)
|
|
1112
|
+
;d?w=h-2*(0!==e||0!==t?e+t:ca(c.left,c.right)):b=p-2*(0!==n||0!==r?n+r:ca(c.top,c.bottom))
|
|
1122
1113
|
}await i({...t,availableWidth:w,availableHeight:b})
|
|
1123
1114
|
;const C=await a.getDimensions(o.floating);return h!==C.width||p!==C.height?{
|
|
1124
|
-
reset:{rects:!0}}:{}}}},
|
|
1115
|
+
reset:{rects:!0}}:{}}}},fo=function(e){return void 0===e&&(e={}),{name:"hide",
|
|
1125
1116
|
options:e,async fn(t){
|
|
1126
|
-
const{rects:n}=t,{strategy:r="referenceHidden",...a}=
|
|
1127
|
-
case"referenceHidden":{const e=
|
|
1128
|
-
}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:
|
|
1129
|
-
case"escaped":{const e=
|
|
1130
|
-
data:{escapedOffsets:e,escaped:
|
|
1117
|
+
const{rects:n}=t,{strategy:r="referenceHidden",...a}=ma(e,t);switch(r){
|
|
1118
|
+
case"referenceHidden":{const e=Ha(await _a(t,{...a,elementContext:"reference"
|
|
1119
|
+
}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Da(e)}}}
|
|
1120
|
+
case"escaped":{const e=Ha(await _a(t,{...a,altBoundary:!0}),n.floating);return{
|
|
1121
|
+
data:{escapedOffsets:e,escaped:Da(e)}}}default:return{}}}}},mo=e=>({
|
|
1131
1122
|
name:"arrow",options:e,async fn(t){
|
|
1132
|
-
const{x:n,y:r,placement:a,rects:o,platform:i,elements:l,middlewareData:c}=t,{element:s,padding:u=0}=
|
|
1133
|
-
;if(null==s)return{};const d=
|
|
1134
|
-
},p=
|
|
1123
|
+
const{x:n,y:r,placement:a,rects:o,platform:i,elements:l,middlewareData:c}=t,{element:s,padding:u=0}=ma(e,t)||{}
|
|
1124
|
+
;if(null==s)return{};const d=xa(u),h={x:n,y:r
|
|
1125
|
+
},p=Ca(a),f=ba(p),m=await i.getDimensions(s),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=o.reference[f]+o.reference[p]-h[p]-o.floating[f],C=h[p]-o.reference[p],z=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s))
|
|
1135
1126
|
;let M=z?z[b]:0
|
|
1136
1127
|
;M&&await(null==i.isElement?void 0:i.isElement(z))||(M=l.floating[b]||o.floating[f])
|
|
1137
|
-
;const x=w/2-C/2,S=M/2-m[f]/2-1,E=
|
|
1128
|
+
;const x=w/2-C/2,S=M/2-m[f]/2-1,E=la(d[g],S),_=la(d[y],S),H=E,D=M-m[f]-_,L=M/2-m[f]/2+x,V=fa(H,L,D),A=!c.arrow&&null!=ga(a)&&L!==V&&o.reference[f]/2-(L<H?E:_)-m[f]/2<0,k=A?L<H?L-H:L-D:0
|
|
1138
1129
|
;return{[p]:h[p]+k,data:{[p]:V,centerOffset:L-V-k,...A&&{alignmentOffset:k}},
|
|
1139
|
-
reset:A}}}),
|
|
1140
|
-
const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:s=!0}=
|
|
1141
|
-
x:n,y:r},d=
|
|
1142
|
-
;const m=
|
|
1130
|
+
reset:A}}}),vo=function(e){return void 0===e&&(e={}),{options:e,fn(t){
|
|
1131
|
+
const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:s=!0}=ma(e,t),u={
|
|
1132
|
+
x:n,y:r},d=wa(a),h=ya(d);let p=u[h],f=u[d]
|
|
1133
|
+
;const m=ma(l,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,
|
|
1143
1134
|
crossAxis:0,...m};if(c){
|
|
1144
1135
|
const e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+v.mainAxis,n=o.reference[h]+o.reference[e]-v.mainAxis
|
|
1145
1136
|
;p<t?p=t:p>n&&(p=n)}if(s){var g,y
|
|
1146
|
-
;const e="y"===h?"width":"height",t=["top","left"].includes(
|
|
1147
|
-
;f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}},
|
|
1148
|
-
platform:
|
|
1137
|
+
;const e="y"===h?"width":"height",t=["top","left"].includes(va(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?v.crossAxis:0)
|
|
1138
|
+
;f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}},go=(e,t,n)=>{const r=new Map,a={
|
|
1139
|
+
platform:co,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{
|
|
1149
1140
|
const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,l=o.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t))
|
|
1150
1141
|
;let s=await i.getElementRects({reference:e,floating:t,strategy:a
|
|
1151
|
-
}),{x:u,y:d}=
|
|
1142
|
+
}),{x:u,y:d}=Ea(s,r,c),h=r,p={},f=0;for(let n=0;n<l.length;n++){
|
|
1152
1143
|
const{name:o,fn:m}=l[n],{x:v,y:g,data:y,reset:b}=await m({x:u,y:d,
|
|
1153
1144
|
initialPlacement:r,placement:h,strategy:a,middlewareData:p,rects:s,platform:i,
|
|
1154
1145
|
elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=g?g:d,p={...p,[o]:{
|
|
1155
1146
|
...p[o],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),
|
|
1156
1147
|
b.rects&&(s=!0===b.rects?await i.getElementRects({reference:e,floating:t,
|
|
1157
|
-
strategy:a}):b.rects),({x:u,y:d}=
|
|
1158
|
-
strategy:a,middlewareData:p}})(e,t,{...a,platform:o})},
|
|
1148
|
+
strategy:a}):b.rects),({x:u,y:d}=Ea(s,h,c))),n=-1)}return{x:u,y:d,placement:h,
|
|
1149
|
+
strategy:a,middlewareData:p}})(e,t,{...a,platform:o})},yo=e=>({name:"arrow",
|
|
1159
1150
|
options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e
|
|
1160
|
-
;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?
|
|
1161
|
-
element:n.current,padding:r}).fn(t):{}:n?
|
|
1162
|
-
;var a}});var
|
|
1151
|
+
;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?mo({
|
|
1152
|
+
element:n.current,padding:r}).fn(t):{}:n?mo({element:n,padding:r}).fn(t):{}
|
|
1153
|
+
;var a}});var bo="undefined"!=typeof document?v:p;function wo(e,t){
|
|
1163
1154
|
if(e===t)return!0;if(typeof e!=typeof t)return!1
|
|
1164
1155
|
;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a
|
|
1165
1156
|
;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){
|
|
1166
|
-
if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!
|
|
1157
|
+
if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!wo(e[r],t[r]))return!1
|
|
1167
1158
|
;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1
|
|
1168
1159
|
;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){
|
|
1169
|
-
const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!
|
|
1170
|
-
return e!=e&&t!=t}function
|
|
1160
|
+
const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!wo(e[n],t[n]))return!1}return!0}
|
|
1161
|
+
return e!=e&&t!=t}function Co(e){if("undefined"==typeof window)return 1
|
|
1171
1162
|
;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}
|
|
1172
|
-
function
|
|
1173
|
-
const n=e.useRef(t);return
|
|
1163
|
+
function zo(e,t){const n=Co(e);return Math.round(t*n)/n}function Mo(t){
|
|
1164
|
+
const n=e.useRef(t);return bo((()=>{n.current=t})),n}const xo=c(((e,t)=>{
|
|
1174
1165
|
const{children:n,width:r=10,height:a=5,...o}=e;return i(On.svg,Ln({},o,{ref:t,
|
|
1175
1166
|
width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"
|
|
1176
|
-
}),e.asChild?n:i("polygon",{points:"0,0 30,0 15,10"}))}));function
|
|
1177
|
-
const[t,n]=m(void 0);return
|
|
1167
|
+
}),e.asChild?n:i("polygon",{points:"0,0 30,0 15,10"}))}));function So(e){
|
|
1168
|
+
const[t,n]=m(void 0);return na((()=>{if(e){n({width:e.offsetWidth,
|
|
1178
1169
|
height:e.offsetHeight});const t=new ResizeObserver((t=>{
|
|
1179
1170
|
if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o
|
|
1180
1171
|
;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e
|
|
1181
1172
|
;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,
|
|
1182
1173
|
height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}
|
|
1183
1174
|
n(void 0)}),[e]),t}
|
|
1184
|
-
const
|
|
1185
|
-
const{__scopePopper:n,virtualRef:a,...o}=e,l=
|
|
1175
|
+
const Eo="Popper",[_o,Ho]=Sr(Eo),[Do,Lo]=_o(Eo),Vo=c(((e,t)=>{
|
|
1176
|
+
const{__scopePopper:n,virtualRef:a,...o}=e,l=Lo("PopperAnchor",n),c=r(null),s=An(t,c)
|
|
1186
1177
|
;return p((()=>{l.onAnchorChange((null==a?void 0:a.current)||c.current)
|
|
1187
1178
|
})),a?null:i(On.div,Ln({},o,{ref:s}))
|
|
1188
|
-
})),
|
|
1189
|
-
;const{__scopePopper:h,side:p="bottom",sideOffset:f=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:C=[],collisionPadding:z=0,sticky:M="partial",hideWhenDetached:x=!1,updatePositionStrategy:S="optimized",onPlaced:E,..._}=t,H=
|
|
1179
|
+
})),Ao="PopperContent",[ko,To]=_o(Ao),Po=c(((t,n)=>{var r,a,o,l,c,s,u,d
|
|
1180
|
+
;const{__scopePopper:h,side:p="bottom",sideOffset:f=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:C=[],collisionPadding:z=0,sticky:M="partial",hideWhenDetached:x=!1,updatePositionStrategy:S="optimized",onPlaced:E,..._}=t,H=Lo(Ao,h),[D,L]=m(null),V=An(n,(e=>L(e))),[A,k]=m(null),T=So(A),P=null!==(r=null==T?void 0:T.width)&&void 0!==r?r:0,I=null!==(a=null==T?void 0:T.height)&&void 0!==a?a:0,R=p+("center"!==v?"-"+v:""),O="number"==typeof z?z:{
|
|
1190
1181
|
top:0,right:0,bottom:0,left:0,...z},N=Array.isArray(C)?C:[C],F=N.length>0,B={
|
|
1191
|
-
padding:O,boundary:N.filter(
|
|
1182
|
+
padding:O,boundary:N.filter(No),altBoundary:F
|
|
1192
1183
|
},{refs:j,floatingStyles:U,placement:$,isPositioned:Y,middlewareData:W}=function(t){
|
|
1193
1184
|
void 0===t&&(t={})
|
|
1194
1185
|
;const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:o,elements:{reference:i,floating:l}={},transform:c=!0,whileElementsMounted:s,open:u}=t,[d,h]=e.useState({
|
|
1195
1186
|
x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1
|
|
1196
|
-
}),[p,f]=e.useState(a);
|
|
1187
|
+
}),[p,f]=e.useState(a);wo(p,a)||f(a)
|
|
1197
1188
|
;const[m,v]=e.useState(null),[g,y]=e.useState(null),b=e.useCallback((e=>{
|
|
1198
1189
|
e!==x.current&&(x.current=e,v(e))}),[]),C=e.useCallback((e=>{
|
|
1199
1190
|
e!==S.current&&(S.current=e,y(e))
|
|
1200
|
-
}),[]),z=i||m,M=l||g,x=e.useRef(null),S=e.useRef(null),E=e.useRef(d),_=null!=s,H=
|
|
1191
|
+
}),[]),z=i||m,M=l||g,x=e.useRef(null),S=e.useRef(null),E=e.useRef(d),_=null!=s,H=Mo(s),D=Mo(o),L=e.useCallback((()=>{
|
|
1201
1192
|
if(!x.current||!S.current)return;const e={placement:n,strategy:r,middleware:p}
|
|
1202
|
-
;D.current&&(e.platform=D.current),
|
|
1193
|
+
;D.current&&(e.platform=D.current),go(x.current,S.current,e).then((e=>{const t={
|
|
1203
1194
|
...e,isPositioned:!0}
|
|
1204
|
-
;V.current&&!
|
|
1205
|
-
}),[p,n,r,D]);
|
|
1195
|
+
;V.current&&!wo(E.current,t)&&(E.current=t,w.flushSync((()=>{h(t)})))}))
|
|
1196
|
+
}),[p,n,r,D]);bo((()=>{
|
|
1206
1197
|
!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,h((e=>({...e,
|
|
1207
|
-
isPositioned:!1}))))}),[u]);const V=e.useRef(!1);
|
|
1208
|
-
V.current=!1})),[]),
|
|
1198
|
+
isPositioned:!1}))))}),[u]);const V=e.useRef(!1);bo((()=>(V.current=!0,()=>{
|
|
1199
|
+
V.current=!1})),[]),bo((()=>{if(z&&(x.current=z),M&&(S.current=M),z&&M){
|
|
1209
1200
|
if(H.current)return H.current(z,M,L);L()}}),[z,M,L,H,_])
|
|
1210
1201
|
;const A=e.useMemo((()=>({reference:x,floating:S,setReference:b,setFloating:C
|
|
1211
1202
|
})),[b,C]),k=e.useMemo((()=>({reference:z,floating:M
|
|
1212
1203
|
})),[z,M]),T=e.useMemo((()=>{const e={position:r,left:0,top:0}
|
|
1213
|
-
;if(!k.floating)return e;const t=
|
|
1204
|
+
;if(!k.floating)return e;const t=zo(k.floating,d.x),n=zo(k.floating,d.y)
|
|
1214
1205
|
;return c?{...e,transform:"translate("+t+"px, "+n+"px)",
|
|
1215
|
-
...
|
|
1206
|
+
...Co(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}
|
|
1216
1207
|
}),[r,c,k.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:L,refs:A,
|
|
1217
1208
|
elements:k,floatingStyles:T})),[d,L,A,k,T])}({strategy:"fixed",placement:R,
|
|
1218
|
-
whileElementsMounted:(...e)=>
|
|
1219
|
-
reference:H.anchor},middleware:[
|
|
1220
|
-
mainAxis:!0,crossAxis:!1,limiter:"partial"===M?
|
|
1221
|
-
}),
|
|
1209
|
+
whileElementsMounted:(...e)=>so(...e,{animationFrame:"always"===S}),elements:{
|
|
1210
|
+
reference:H.anchor},middleware:[La({mainAxis:f+I,alignmentAxis:g}),b&&uo({
|
|
1211
|
+
mainAxis:!0,crossAxis:!1,limiter:"partial"===M?vo():void 0,...B}),b&&ho({...B
|
|
1212
|
+
}),po({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{
|
|
1222
1213
|
const{width:a,height:o}=t.reference,i=e.floating.style
|
|
1223
1214
|
;i.setProperty("--radix-popper-available-width",`${n}px`),
|
|
1224
1215
|
i.setProperty("--radix-popper-available-height",`${r}px`),
|
|
1225
1216
|
i.setProperty("--radix-popper-anchor-width",`${a}px`),
|
|
1226
|
-
i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),A&&
|
|
1227
|
-
padding:y}),
|
|
1228
|
-
...B})]}),[G,K]
|
|
1217
|
+
i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),A&&yo({element:A,
|
|
1218
|
+
padding:y}),Fo({arrowWidth:P,arrowHeight:I}),x&&fo({strategy:"referenceHidden",
|
|
1219
|
+
...B})]}),[G,K]=Bo($),q=_r(E);na((()=>{Y&&(null==q||q())}),[Y,q])
|
|
1229
1220
|
;const Z=null===(o=W.arrow)||void 0===o?void 0:o.x,X=null===(l=W.arrow)||void 0===l?void 0:l.y,Q=0!==(null===(c=W.arrow)||void 0===c?void 0:c.centerOffset),[J,ee]=m()
|
|
1230
|
-
;return
|
|
1221
|
+
;return na((()=>{D&&ee(window.getComputedStyle(D).zIndex)}),[D]),i("div",{
|
|
1231
1222
|
ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,
|
|
1232
1223
|
transform:Y?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,
|
|
1233
1224
|
"--radix-popper-transform-origin":[null===(s=W.transformOrigin)||void 0===s?void 0:s.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")
|
|
1234
|
-
},dir:t.dir},i(
|
|
1225
|
+
},dir:t.dir},i(ko,{scope:h,placedSide:G,onArrowChange:k,arrowX:Z,arrowY:X,
|
|
1235
1226
|
shouldHideArrow:Q},i(On.div,Ln({"data-side":G,"data-align":K},_,{ref:V,style:{
|
|
1236
1227
|
..._.style,animation:Y?void 0:"none",
|
|
1237
1228
|
opacity:null!==(d=W.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))
|
|
1238
|
-
})),
|
|
1239
|
-
},
|
|
1240
|
-
const{__scopePopper:n,...r}=e,a=
|
|
1229
|
+
})),Io="PopperArrow",Ro={top:"bottom",right:"left",bottom:"top",left:"right"
|
|
1230
|
+
},Oo=c((function(e,t){
|
|
1231
|
+
const{__scopePopper:n,...r}=e,a=To(Io,n),o=Ro[a.placedSide];return i("span",{
|
|
1241
1232
|
ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,
|
|
1242
1233
|
transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"
|
|
1243
1234
|
}[a.placedSide],transform:{top:"translateY(100%)",
|
|
1244
1235
|
right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",
|
|
1245
1236
|
left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],
|
|
1246
|
-
visibility:a.shouldHideArrow?"hidden":void 0}},i(
|
|
1247
|
-
...r.style,display:"block"}})))}));function
|
|
1237
|
+
visibility:a.shouldHideArrow?"hidden":void 0}},i(xo,Ln({},r,{ref:t,style:{
|
|
1238
|
+
...r.style,display:"block"}})))}));function No(e){return null!==e}const Fo=e=>({
|
|
1248
1239
|
name:"transformOrigin",options:e,fn(t){var n,r,a,o,i
|
|
1249
|
-
;const{placement:l,rects:c,middlewareData:s}=t,u=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,f]
|
|
1240
|
+
;const{placement:l,rects:c,middlewareData:s}=t,u=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,f]=Bo(l),m={
|
|
1250
1241
|
start:"0%",center:"50%",end:"100%"
|
|
1251
1242
|
}[f],v=(null!==(r=null===(a=s.arrow)||void 0===a?void 0:a.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(i=s.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+h/2
|
|
1252
1243
|
;let y="",b=""
|
|
1253
1244
|
;return"bottom"===p?(y=u?m:`${v}px`,b=-h+"px"):"top"===p?(y=u?m:`${v}px`,
|
|
1254
1245
|
b=`${c.floating.height+h}px`):"right"===p?(y=-h+"px",
|
|
1255
1246
|
b=u?m:`${g}px`):"left"===p&&(y=`${c.floating.width+h}px`,b=u?m:`${g}px`),{data:{
|
|
1256
|
-
x:y,y:b}}}});function
|
|
1257
|
-
const
|
|
1258
|
-
scope:t,anchor:r,onAnchorChange:a},n)},
|
|
1247
|
+
x:y,y:b}}}});function Bo(e){const[t,n="center"]=e.split("-");return[t,n]}
|
|
1248
|
+
const jo=e=>{const{__scopePopper:t,children:n}=e,[r,a]=m(null);return i(Do,{
|
|
1249
|
+
scope:t,anchor:r,onAnchorChange:a},n)},Uo=Vo,$o=Po,Yo=Oo,Wo=c(((e,t)=>{var n
|
|
1259
1250
|
;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...a}=e
|
|
1260
|
-
;return r?C.createPortal(i(On.div,Ln({},a,{ref:t})),r):null}));const
|
|
1251
|
+
;return r?C.createPortal(i(On.div,Ln({},a,{ref:t})),r):null}));const Go=e=>{
|
|
1261
1252
|
const{present:t,children:n}=e,a=function(e){
|
|
1262
1253
|
const[t,n]=m(),a=r({}),o=r(e),i=r("none"),c=e?"mounted":"unmounted",[s,u]=function(e,t){
|
|
1263
1254
|
return g(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(c,{mounted:{
|
|
1264
1255
|
UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{
|
|
1265
1256
|
MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}})
|
|
1266
|
-
;return p((()=>{const e=
|
|
1267
|
-
}),[s]),
|
|
1268
|
-
const r=i.current,a=
|
|
1257
|
+
;return p((()=>{const e=Ko(a.current);i.current="mounted"===s?e:"none"
|
|
1258
|
+
}),[s]),na((()=>{const t=a.current,n=o.current;if(n!==e){
|
|
1259
|
+
const r=i.current,a=Ko(t)
|
|
1269
1260
|
;if(e)u("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{
|
|
1270
|
-
u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),
|
|
1271
|
-
const e=e=>{const n=
|
|
1261
|
+
u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),na((()=>{if(t){
|
|
1262
|
+
const e=e=>{const n=Ko(a.current).includes(e.animationName)
|
|
1272
1263
|
;e.target===t&&n&&z((()=>u("ANIMATION_END")))},n=e=>{
|
|
1273
|
-
e.target===t&&(i.current=
|
|
1264
|
+
e.target===t&&(i.current=Ko(a.current))}
|
|
1274
1265
|
;return t.addEventListener("animationstart",n),
|
|
1275
1266
|
t.addEventListener("animationcancel",e),
|
|
1276
1267
|
t.addEventListener("animationend",e),()=>{
|
|
@@ -1280,84 +1271,84 @@ t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{
|
|
|
1280
1271
|
isPresent:["mounted","unmountSuspended"].includes(s),ref:l((e=>{
|
|
1281
1272
|
e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({
|
|
1282
1273
|
present:a.isPresent}):s.only(n),i=An(a.ref,o.ref)
|
|
1283
|
-
;return"function"==typeof n||a.isPresent?d(o,{ref:i}):null};function
|
|
1284
|
-
return(null==e?void 0:e.animationName)||"none"}
|
|
1285
|
-
;const
|
|
1286
|
-
},
|
|
1287
|
-
scope:e.__scopeRovingFocusGroup},i(
|
|
1288
|
-
},i(
|
|
1289
|
-
const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:c,currentTabStopId:s,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:h,...f}=e,v=r(null),g=An(t,v),y=
|
|
1290
|
-
prop:s,defaultProp:u,onChange:d}),[C,z]=m(!1),M=
|
|
1274
|
+
;return"function"==typeof n||a.isPresent?d(o,{ref:i}):null};function Ko(e){
|
|
1275
|
+
return(null==e?void 0:e.animationName)||"none"}Go.displayName="Presence"
|
|
1276
|
+
;const qo="rovingFocusGroup.onEntryFocus",Zo={bubbles:!1,cancelable:!0
|
|
1277
|
+
},Xo="RovingFocusGroup",[Qo,Jo,ei]=Dr(Xo),[ti,ni]=Sr(Xo,[ei]),[ri,ai]=ti(Xo),oi=c(((e,t)=>i(Qo.Provider,{
|
|
1278
|
+
scope:e.__scopeRovingFocusGroup},i(Qo.Slot,{scope:e.__scopeRovingFocusGroup
|
|
1279
|
+
},i(ii,Ln({},e,{ref:t})))))),ii=c(((e,t)=>{
|
|
1280
|
+
const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:c,currentTabStopId:s,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:h,...f}=e,v=r(null),g=An(t,v),y=Vr(c),[b=null,w]=Hr({
|
|
1281
|
+
prop:s,defaultProp:u,onChange:d}),[C,z]=m(!1),M=_r(h),x=Jo(n),S=r(!1),[E,_]=m(0)
|
|
1291
1282
|
;return p((()=>{const e=v.current
|
|
1292
|
-
;if(e)return e.addEventListener(
|
|
1293
|
-
}),[M]),i(
|
|
1283
|
+
;if(e)return e.addEventListener(qo,M),()=>e.removeEventListener(qo,M)
|
|
1284
|
+
}),[M]),i(ri,{scope:n,orientation:a,dir:y,loop:o,currentTabStopId:b,
|
|
1294
1285
|
onItemFocus:l((e=>w(e)),[w]),onItemShiftTab:l((()=>z(!0)),[]),
|
|
1295
1286
|
onFocusableItemAdd:l((()=>_((e=>e+1))),[]),
|
|
1296
1287
|
onFocusableItemRemove:l((()=>_((e=>e-1))),[])},i(On.div,Ln({
|
|
1297
1288
|
tabIndex:C||0===E?-1:0,"data-orientation":a},f,{ref:g,style:{outline:"none",
|
|
1298
|
-
...e.style},onMouseDown:
|
|
1299
|
-
onFocus:
|
|
1300
|
-
;if(e.target===e.currentTarget&&t&&!C){const t=new CustomEvent(
|
|
1289
|
+
...e.style},onMouseDown:xr(e.onMouseDown,(()=>{S.current=!0})),
|
|
1290
|
+
onFocus:xr(e.onFocus,(e=>{const t=!S.current
|
|
1291
|
+
;if(e.target===e.currentTarget&&t&&!C){const t=new CustomEvent(qo,Zo)
|
|
1301
1292
|
;if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){
|
|
1302
1293
|
const e=x().filter((e=>e.focusable))
|
|
1303
|
-
;
|
|
1304
|
-
}}S.current=!1})),onBlur:
|
|
1305
|
-
const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,...l}=e,c=
|
|
1306
|
-
;return p((()=>{if(r)return f(),()=>m()}),[r,f,m]),i(
|
|
1294
|
+
;si([e.find((e=>e.active)),e.find((e=>e.id===b)),...e].filter(Boolean).map((e=>e.ref.current)))
|
|
1295
|
+
}}S.current=!1})),onBlur:xr(e.onBlur,(()=>z(!1)))})))})),li=c(((e,t)=>{
|
|
1296
|
+
const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,...l}=e,c=oa(),s=o||c,u=ai("RovingFocusGroupItem",n),d=u.currentTabStopId===s,h=Jo(n),{onFocusableItemAdd:f,onFocusableItemRemove:m}=u
|
|
1297
|
+
;return p((()=>{if(r)return f(),()=>m()}),[r,f,m]),i(Qo.ItemSlot,{scope:n,id:s,
|
|
1307
1298
|
focusable:r,active:a},i(On.span,Ln({tabIndex:d?0:-1,
|
|
1308
|
-
"data-orientation":u.orientation},l,{ref:t,onMouseDown:
|
|
1299
|
+
"data-orientation":u.orientation},l,{ref:t,onMouseDown:xr(e.onMouseDown,(e=>{
|
|
1309
1300
|
r?u.onItemFocus(s):e.preventDefault()})),
|
|
1310
|
-
onFocus:
|
|
1301
|
+
onFocus:xr(e.onFocus,(()=>u.onItemFocus(s))),onKeyDown:xr(e.onKeyDown,(e=>{
|
|
1311
1302
|
if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab()
|
|
1312
1303
|
;if(e.target!==e.currentTarget)return;const t=function(e,t,n){
|
|
1313
1304
|
const r=function(e,t){
|
|
1314
1305
|
return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e
|
|
1315
1306
|
}(e.key,n)
|
|
1316
|
-
;return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:
|
|
1307
|
+
;return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:ci[r]
|
|
1317
1308
|
}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault()
|
|
1318
1309
|
;let n=h().filter((e=>e.focusable)).map((e=>e.ref.current))
|
|
1319
1310
|
;if("last"===t)n.reverse();else if("prev"===t||"next"===t){
|
|
1320
1311
|
"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget)
|
|
1321
1312
|
;n=u.loop?function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))
|
|
1322
|
-
}(n,r+1):n.slice(r+1)}setTimeout((()=>
|
|
1313
|
+
}(n,r+1):n.slice(r+1)}setTimeout((()=>si(n)))}}))})))})),ci={ArrowLeft:"prev",
|
|
1323
1314
|
ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",
|
|
1324
|
-
PageDown:"last",End:"last"};function
|
|
1315
|
+
PageDown:"last",End:"last"};function si(e){const t=document.activeElement
|
|
1325
1316
|
;for(const n of e){if(n===t)return
|
|
1326
|
-
;if(n.focus(),document.activeElement!==t)return}}const
|
|
1327
|
-
;var
|
|
1328
|
-
return e&&(e.host||
|
|
1329
|
-
return t.map((function(t){if(e.contains(t))return t;var n=
|
|
1317
|
+
;if(n.focus(),document.activeElement!==t)return}}const ui=oi,di=li
|
|
1318
|
+
;var hi=new WeakMap,pi=new WeakMap,fi={},mi=0,vi=function(e){
|
|
1319
|
+
return e&&(e.host||vi(e.parentNode))},gi=function(e,t,n,r){var a=function(e,t){
|
|
1320
|
+
return t.map((function(t){if(e.contains(t))return t;var n=vi(t)
|
|
1330
1321
|
;return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),
|
|
1331
1322
|
null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e])
|
|
1332
|
-
;
|
|
1333
|
-
;var o=
|
|
1323
|
+
;fi[n]||(fi[n]=new WeakMap)
|
|
1324
|
+
;var o=fi[n],i=[],l=new Set,c=new Set(a),s=function(e){
|
|
1334
1325
|
e&&!l.has(e)&&(l.add(e),s(e.parentNode))};a.forEach(s);var u=function(e){
|
|
1335
1326
|
e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){
|
|
1336
1327
|
if(l.has(e))u(e);else{
|
|
1337
|
-
var t=e.getAttribute(r),a=null!==t&&"false"!==t,c=(
|
|
1338
|
-
;
|
|
1339
|
-
o.set(e,s),i.push(e),1===c&&a&&
|
|
1340
|
-
a||e.setAttribute(r,"true")}}))};return u(t),l.clear(),
|
|
1341
|
-
i.forEach((function(e){var t=
|
|
1342
|
-
;
|
|
1343
|
-
|
|
1344
|
-
})),--
|
|
1345
|
-
},
|
|
1328
|
+
var t=e.getAttribute(r),a=null!==t&&"false"!==t,c=(hi.get(e)||0)+1,s=(o.get(e)||0)+1
|
|
1329
|
+
;hi.set(e,c),
|
|
1330
|
+
o.set(e,s),i.push(e),1===c&&a&&pi.set(e,!0),1===s&&e.setAttribute(n,"true"),
|
|
1331
|
+
a||e.setAttribute(r,"true")}}))};return u(t),l.clear(),mi++,function(){
|
|
1332
|
+
i.forEach((function(e){var t=hi.get(e)-1,a=o.get(e)-1
|
|
1333
|
+
;hi.set(e,t),o.set(e,a),t||(pi.has(e)||e.removeAttribute(r),
|
|
1334
|
+
pi.delete(e)),a||e.removeAttribute(n)
|
|
1335
|
+
})),--mi||(hi=new WeakMap,hi=new WeakMap,pi=new WeakMap,fi={})}
|
|
1336
|
+
},yi=function(e,t,n){void 0===n&&(n="data-aria-hidden")
|
|
1346
1337
|
;var r=Array.from(Array.isArray(e)?e:[e]),a=t||function(e){
|
|
1347
1338
|
return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body
|
|
1348
1339
|
}(e)
|
|
1349
|
-
;return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),
|
|
1350
|
-
return null}},
|
|
1351
|
-
;function
|
|
1340
|
+
;return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),gi(r,a,n,"aria-hidden")):function(){
|
|
1341
|
+
return null}},bi="right-scroll-bar-position",wi="width-before-scroll-bar"
|
|
1342
|
+
;function Ci(e,t){return n=t||null,r=function(t){return e.forEach((function(e){
|
|
1352
1343
|
return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))
|
|
1353
1344
|
},(a=m((function(){return{value:n,callback:r,facade:{get current(){
|
|
1354
1345
|
return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}
|
|
1355
|
-
}}}))[0]).callback=r,a.facade;var n,r,a}function
|
|
1356
|
-
var
|
|
1346
|
+
}}}))[0]).callback=r,a.facade;var n,r,a}function zi(e){return e}
|
|
1347
|
+
var Mi=function(t){var n=t.sideCar,r=H(t,["sideCar"])
|
|
1357
1348
|
;if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car")
|
|
1358
1349
|
;var a=n.read();if(!a)throw new Error("Sidecar medium not found")
|
|
1359
|
-
;return e.createElement(a,_({},r))};
|
|
1360
|
-
void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=
|
|
1350
|
+
;return e.createElement(a,_({},r))};Mi.isSideCarExport=!0;var xi=function(e){
|
|
1351
|
+
void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=zi);var n=[],r=!1,a={
|
|
1361
1352
|
read:function(){
|
|
1362
1353
|
if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.")
|
|
1363
1354
|
;return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r)
|
|
@@ -1369,66 +1360,66 @@ assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n
|
|
|
1369
1360
|
return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},
|
|
1370
1361
|
filter:function(e){return t=t.filter(e),n}}}};return a}(null)
|
|
1371
1362
|
;return t.options=_({async:!0,ssr:!1},e),t
|
|
1372
|
-
}(),
|
|
1373
|
-
var r=e.useRef(null),a=e.useState({onScrollCapture:
|
|
1374
|
-
onTouchMoveCapture:
|
|
1375
|
-
}),o=a[0],i=a[1],l=t.forwardProps,c=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,h=t.shards,p=t.sideCar,f=t.noIsolation,m=t.inert,v=t.allowPinchZoom,g=t.as,y=void 0===g?"div":g,b=H(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,C=
|
|
1376
|
-
;return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:
|
|
1363
|
+
}(),Si=function(){},Ei=e.forwardRef((function(t,n){
|
|
1364
|
+
var r=e.useRef(null),a=e.useState({onScrollCapture:Si,onWheelCapture:Si,
|
|
1365
|
+
onTouchMoveCapture:Si
|
|
1366
|
+
}),o=a[0],i=a[1],l=t.forwardProps,c=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,h=t.shards,p=t.sideCar,f=t.noIsolation,m=t.inert,v=t.allowPinchZoom,g=t.as,y=void 0===g?"div":g,b=H(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,C=Ci([r,n]),z=_(_({},b),o)
|
|
1367
|
+
;return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:xi,
|
|
1377
1368
|
removeScrollBar:u,shards:h,noIsolation:f,inert:m,setCallbacks:i,
|
|
1378
1369
|
allowPinchZoom:!!v,lockRef:r}),l?e.cloneElement(e.Children.only(c),_(_({},z),{
|
|
1379
|
-
ref:C})):e.createElement(y,_({},z,{className:s,ref:C}),c))}));
|
|
1380
|
-
enabled:!0,removeScrollBar:!0,inert:!1},
|
|
1381
|
-
};function
|
|
1370
|
+
ref:C})):e.createElement(y,_({},z,{className:s,ref:C}),c))}));Ei.defaultProps={
|
|
1371
|
+
enabled:!0,removeScrollBar:!0,inert:!1},Ei.classNames={fullWidth:wi,zeroRight:bi
|
|
1372
|
+
};function _i(){if(!document)return null;var e=document.createElement("style")
|
|
1382
1373
|
;e.type="text/css";var t=function(){
|
|
1383
1374
|
if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}()
|
|
1384
|
-
;return t&&e.setAttribute("nonce",t),e}var
|
|
1385
|
-
add:function(n){0==e&&(t=
|
|
1375
|
+
;return t&&e.setAttribute("nonce",t),e}var Hi=function(){var e=0,t=null;return{
|
|
1376
|
+
add:function(n){0==e&&(t=_i())&&(function(e,t){
|
|
1386
1377
|
e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))
|
|
1387
1378
|
}(t,n),function(e){
|
|
1388
1379
|
(document.head||document.getElementsByTagName("head")[0]).appendChild(e)
|
|
1389
1380
|
}(t)),e++},remove:function(){
|
|
1390
|
-
! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},
|
|
1391
|
-
var t,n=(t=
|
|
1381
|
+
! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Di=function(){
|
|
1382
|
+
var t,n=(t=Hi(),function(n,r){e.useEffect((function(){
|
|
1392
1383
|
return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){
|
|
1393
|
-
var t=e.styles,r=e.dynamic;return n(t,r),null}},
|
|
1394
|
-
},
|
|
1395
|
-
if(void 0===e&&(e="margin"),"undefined"==typeof window)return
|
|
1384
|
+
var t=e.styles,r=e.dynamic;return n(t,r),null}},Li={left:0,top:0,right:0,gap:0
|
|
1385
|
+
},Vi=function(e){return parseInt(e||"",10)||0},Ai=function(e){
|
|
1386
|
+
if(void 0===e&&(e="margin"),"undefined"==typeof window)return Li
|
|
1396
1387
|
;var t=function(e){
|
|
1397
1388
|
var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"]
|
|
1398
|
-
;return[
|
|
1389
|
+
;return[Vi(n),Vi(r),Vi(a)]
|
|
1399
1390
|
}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{
|
|
1400
1391
|
left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}
|
|
1401
|
-
},
|
|
1392
|
+
},ki=Di(),Ti=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,l=e.gap
|
|
1402
1393
|
;return void 0===n&&(n="margin"),
|
|
1403
|
-
"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(
|
|
1404
|
-
},
|
|
1394
|
+
"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(bi," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(wi," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(bi," .").concat(bi," {\n right: 0 ").concat(r,";\n }\n \n .").concat(wi," .").concat(wi," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")
|
|
1395
|
+
},Pi=function(t){
|
|
1405
1396
|
var n=t.noRelative,r=t.noImportant,a=t.gapMode,o=void 0===a?"margin":a,i=e.useMemo((function(){
|
|
1406
|
-
return
|
|
1407
|
-
styles:
|
|
1408
|
-
var
|
|
1409
|
-
;window.addEventListener("test",
|
|
1410
|
-
}catch(e){
|
|
1397
|
+
return Ai(o)}),[o]);return e.createElement(ki,{
|
|
1398
|
+
styles:Ti(i,!n,o,r?"":"!important")})},Ii=!1;if("undefined"!=typeof window)try{
|
|
1399
|
+
var Ri=Object.defineProperty({},"passive",{get:function(){return Ii=!0,!0}})
|
|
1400
|
+
;window.addEventListener("test",Ri,Ri),window.removeEventListener("test",Ri,Ri)
|
|
1401
|
+
}catch(e){Ii=!1}var Oi=!!Ii&&{passive:!1},Ni=function(e,t){
|
|
1411
1402
|
var n=window.getComputedStyle(e)
|
|
1412
1403
|
;return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){
|
|
1413
|
-
return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},
|
|
1404
|
+
return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Fi=function(e,t){var n=t
|
|
1414
1405
|
;do{
|
|
1415
|
-
if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host)
|
|
1416
|
-
var r=
|
|
1417
|
-
;return!1}
|
|
1418
|
-
}(t):function(e){return
|
|
1406
|
+
if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Bi(e,n)){
|
|
1407
|
+
var r=ji(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body)
|
|
1408
|
+
;return!1},Bi=function(e,t){return"v"===e?function(e){return Ni(e,"overflowY")
|
|
1409
|
+
}(t):function(e){return Ni(e,"overflowX")}(t)},ji=function(e,t){
|
|
1419
1410
|
return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]
|
|
1420
1411
|
}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)
|
|
1421
|
-
},
|
|
1412
|
+
},Ui=function(e){
|
|
1422
1413
|
return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]
|
|
1423
|
-
}
|
|
1424
|
-
return e&&"current"in e?e.current:e},
|
|
1414
|
+
},$i=function(e){return[e.deltaX,e.deltaY]},Yi=function(e){
|
|
1415
|
+
return e&&"current"in e?e.current:e},Wi=function(e){
|
|
1425
1416
|
return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")
|
|
1426
|
-
},
|
|
1427
|
-
var n=e.useRef([]),r=e.useRef([0,0]),a=e.useRef(),o=e.useState(
|
|
1428
|
-
return
|
|
1417
|
+
},Gi=0,Ki=[];var qi,Zi=(qi=function(t){
|
|
1418
|
+
var n=e.useRef([]),r=e.useRef([0,0]),a=e.useRef(),o=e.useState(Gi++)[0],i=e.useState((function(){
|
|
1419
|
+
return Di()}))[0],l=e.useRef(t);e.useEffect((function(){l.current=t
|
|
1429
1420
|
}),[t]),e.useEffect((function(){if(t.inert){
|
|
1430
1421
|
document.body.classList.add("block-interactivity-".concat(o))
|
|
1431
|
-
;var e=V([t.lockRef.current],(t.shards||[]).map(
|
|
1422
|
+
;var e=V([t.lockRef.current],(t.shards||[]).map(Yi),!0).filter(Boolean)
|
|
1432
1423
|
;return e.forEach((function(e){
|
|
1433
1424
|
return e.classList.add("allow-interactivity-".concat(o))})),function(){
|
|
1434
1425
|
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
@@ -1436,64 +1427,64 @@ e.forEach((function(e){
|
|
|
1436
1427
|
return e.classList.remove("allow-interactivity-".concat(o))}))}}
|
|
1437
1428
|
}),[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback((function(e,t){
|
|
1438
1429
|
if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom
|
|
1439
|
-
;var n,o=
|
|
1440
|
-
;if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=
|
|
1441
|
-
;if(!h)return!0;if(h?n=d:(n="v"===d?"h":"v",h=
|
|
1430
|
+
;var n,o=Ui(e),i=r.current,c="deltaX"in e?e.deltaX:i[0]-o[0],s="deltaY"in e?e.deltaY:i[1]-o[1],u=e.target,d=Math.abs(c)>Math.abs(s)?"h":"v"
|
|
1431
|
+
;if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=Fi(d,u)
|
|
1432
|
+
;if(!h)return!0;if(h?n=d:(n="v"===d?"h":"v",h=Fi(d,u)),!h)return!1
|
|
1442
1433
|
;if(!a.current&&"changedTouches"in e&&(c||s)&&(a.current=n),!n)return!0
|
|
1443
1434
|
;var p=a.current||n;return function(e,t,n,r,a){var o=function(e,t){
|
|
1444
1435
|
return"h"===e&&"rtl"===t?-1:1
|
|
1445
1436
|
}(e,window.getComputedStyle(t).direction),i=o*r,l=n.target,c=t.contains(l),s=!1,u=i>0,d=0,h=0
|
|
1446
|
-
;do{var p=
|
|
1447
|
-
;(f||m)
|
|
1437
|
+
;do{var p=ji(e,l),f=p[0],m=p[1]-p[2]-o*f
|
|
1438
|
+
;(f||m)&&Bi(e,l)&&(d+=m,h+=f),l=l.parentNode
|
|
1448
1439
|
}while(!c&&l!==document.body||c&&(t.contains(l)||t===l))
|
|
1449
1440
|
;return(u&&(a&&0===d||!a&&i>d)||!u&&(a&&0===h||!a&&-i>h))&&(s=!0),s
|
|
1450
1441
|
}(p,t,e,"h"===p?c:s,!0)}),[]),s=e.useCallback((function(e){var t=e
|
|
1451
|
-
;if(
|
|
1452
|
-
var r="deltaY"in t
|
|
1442
|
+
;if(Ki.length&&Ki[Ki.length-1]===i){
|
|
1443
|
+
var r="deltaY"in t?$i(t):Ui(t),a=n.current.filter((function(e){
|
|
1453
1444
|
return e.name===t.type&&e.target===t.target&&function(e,t){
|
|
1454
1445
|
return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0]
|
|
1455
1446
|
;if(a&&a.should)t.cancelable&&t.preventDefault();else if(!a){
|
|
1456
|
-
var o=(l.current.shards||[]).map(
|
|
1447
|
+
var o=(l.current.shards||[]).map(Yi).filter(Boolean).filter((function(e){
|
|
1457
1448
|
return e.contains(t.target)}))
|
|
1458
1449
|
;(o.length>0?c(t,o[0]):!l.current.noIsolation)&&t.cancelable&&t.preventDefault()
|
|
1459
1450
|
}}}),[]),u=e.useCallback((function(e,t,r,a){var o={name:e,delta:t,target:r,
|
|
1460
1451
|
should:a};n.current.push(o),setTimeout((function(){
|
|
1461
1452
|
n.current=n.current.filter((function(e){return e!==o}))}),1)
|
|
1462
|
-
}),[]),d=e.useCallback((function(e){r.current=
|
|
1453
|
+
}),[]),d=e.useCallback((function(e){r.current=Ui(e),a.current=void 0
|
|
1463
1454
|
}),[]),h=e.useCallback((function(e){
|
|
1464
|
-
u(e.type
|
|
1455
|
+
u(e.type,$i(e),e.target,c(e,t.lockRef.current))
|
|
1465
1456
|
}),[]),p=e.useCallback((function(e){
|
|
1466
|
-
u(e.type,
|
|
1467
|
-
return
|
|
1457
|
+
u(e.type,Ui(e),e.target,c(e,t.lockRef.current))}),[]);e.useEffect((function(){
|
|
1458
|
+
return Ki.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,
|
|
1468
1459
|
onTouchMoveCapture:p
|
|
1469
|
-
}),document.addEventListener("wheel",s,
|
|
1470
|
-
document.addEventListener("touchstart",d,
|
|
1471
|
-
|
|
1472
|
-
})),document.removeEventListener("wheel",s,
|
|
1473
|
-
document.removeEventListener("touchmove",s,
|
|
1474
|
-
document.removeEventListener("touchstart",d,
|
|
1460
|
+
}),document.addEventListener("wheel",s,Oi),document.addEventListener("touchmove",s,Oi),
|
|
1461
|
+
document.addEventListener("touchstart",d,Oi),function(){
|
|
1462
|
+
Ki=Ki.filter((function(e){return e!==i
|
|
1463
|
+
})),document.removeEventListener("wheel",s,Oi),
|
|
1464
|
+
document.removeEventListener("touchmove",s,Oi),
|
|
1465
|
+
document.removeEventListener("touchstart",d,Oi)}}),[])
|
|
1475
1466
|
;var f=t.removeScrollBar,m=t.inert
|
|
1476
|
-
;return e.createElement(e.Fragment,null,m?e.createElement(i,{styles:
|
|
1477
|
-
}):null,f?e.createElement(
|
|
1478
|
-
},
|
|
1479
|
-
return e.createElement(
|
|
1480
|
-
;
|
|
1481
|
-
;const
|
|
1482
|
-
const{__scopeMenu:n,...r}=e,a=
|
|
1483
|
-
})),
|
|
1484
|
-
}),
|
|
1485
|
-
const n=
|
|
1486
|
-
;return i(
|
|
1487
|
-
scope:e.__scopeMenu},l.modal?i(
|
|
1488
|
-
})),
|
|
1489
|
-
;return p((()=>{const e=a.current;if(e)return
|
|
1467
|
+
;return e.createElement(e.Fragment,null,m?e.createElement(i,{styles:Wi(o)
|
|
1468
|
+
}):null,f?e.createElement(Pi,{gapMode:"margin"}):null)
|
|
1469
|
+
},xi.useMedium(qi),Mi),Xi=e.forwardRef((function(t,n){
|
|
1470
|
+
return e.createElement(Ei,_({},t,{ref:n,sideCar:Zi}))}))
|
|
1471
|
+
;Xi.classNames=Ei.classNames;var Qi=Xi
|
|
1472
|
+
;const Ji=["Enter"," "],el=["ArrowUp","PageDown","End"],tl=["ArrowDown","PageUp","Home",...el],nl="Menu",[rl,al,ol]=Dr(nl),[il,ll]=Sr(nl,[ol,Ho,ni]),cl=Ho(),sl=ni(),[ul,dl]=il(nl),[hl,pl]=il(nl),fl=c(((e,t)=>{
|
|
1473
|
+
const{__scopeMenu:n,...r}=e,a=cl(n);return i(Uo,Ln({},a,r,{ref:t}))
|
|
1474
|
+
})),ml="MenuPortal",[vl,gl]=il(ml,{forceMount:void 0
|
|
1475
|
+
}),yl="MenuContent",[bl,wl]=il(yl),Cl=c(((e,t)=>{
|
|
1476
|
+
const n=gl(yl,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=dl(yl,e.__scopeMenu),l=pl(yl,e.__scopeMenu)
|
|
1477
|
+
;return i(rl.Provider,{scope:e.__scopeMenu},i(Go,{present:r||o.open},i(rl.Slot,{
|
|
1478
|
+
scope:e.__scopeMenu},l.modal?i(zl,Ln({},a,{ref:t})):i(Ml,Ln({},a,{ref:t})))))
|
|
1479
|
+
})),zl=c(((e,t)=>{const n=dl(yl,e.__scopeMenu),a=r(null),o=An(t,a)
|
|
1480
|
+
;return p((()=>{const e=a.current;if(e)return yi(e)}),[]),i(xl,Ln({},e,{ref:o,
|
|
1490
1481
|
trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,
|
|
1491
|
-
onFocusOutside:
|
|
1482
|
+
onFocusOutside:xr(e.onFocusOutside,(e=>e.preventDefault()),{
|
|
1492
1483
|
checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))
|
|
1493
|
-
})),
|
|
1484
|
+
})),Ml=c(((e,t)=>{const n=dl(yl,e.__scopeMenu);return i(xl,Ln({},e,{ref:t,
|
|
1494
1485
|
trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,
|
|
1495
|
-
onDismiss:()=>n.onOpenChange(!1)}))})),
|
|
1496
|
-
const{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,onDismiss:b,disableOutsideScroll:w,...C}=e,z=
|
|
1486
|
+
onDismiss:()=>n.onOpenChange(!1)}))})),xl=c(((e,t)=>{
|
|
1487
|
+
const{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,onDismiss:b,disableOutsideScroll:w,...C}=e,z=dl(yl,n),M=pl(yl,n),x=cl(n),S=sl(n),E=al(n),[_,H]=m(null),D=r(null),L=An(t,D,z.onContentChange),V=r(0),A=r(""),k=r(0),T=r(null),P=r("right"),I=r(0),R=w?Qi:h,O=w?{
|
|
1497
1488
|
as:kn,allowPinchZoom:!0}:void 0,N=e=>{var t,n
|
|
1498
1489
|
;const r=A.current+e,a=E().filter((e=>!e.disabled)),o=document.activeElement,i=null===(t=a.find((e=>e.ref.current===o)))||void 0===t?void 0:t.textValue,l=function(e,t,n){
|
|
1499
1490
|
const r=t.length>1&&Array.from(t).every((e=>e===t[0])),a=r?t[0]:t,o=n?e.indexOf(n):-1
|
|
@@ -1505,68 +1496,68 @@ const r=t.length>1&&Array.from(t).every((e=>e===t[0])),a=r?t[0]:t,o=n?e.indexOf(
|
|
|
1505
1496
|
;!function e(t){
|
|
1506
1497
|
A.current=t,window.clearTimeout(V.current),""!==t&&(V.current=window.setTimeout((()=>e("")),1e3))
|
|
1507
1498
|
}(r),c&&setTimeout((()=>c.focus()))}
|
|
1508
|
-
;p((()=>()=>window.clearTimeout(V.current)),[])
|
|
1499
|
+
;p((()=>()=>window.clearTimeout(V.current)),[]),$r();const F=l((e=>{var t,n
|
|
1509
1500
|
;return P.current===(null===(t=T.current)||void 0===t?void 0:t.side)&&function(e,t){
|
|
1510
1501
|
if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){
|
|
1511
1502
|
const{x:n,y:r}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){
|
|
1512
1503
|
const i=t[e].x,l=t[e].y,c=t[o].x,s=t[o].y
|
|
1513
1504
|
;l>r!=s>r&&n<(c-i)*(r-l)/(s-l)+i&&(a=!a)}return a}(n,t)
|
|
1514
|
-
}(e,null===(n=T.current)||void 0===n?void 0:n.area)}),[]);return i(
|
|
1505
|
+
}(e,null===(n=T.current)||void 0===n?void 0:n.area)}),[]);return i(bl,{scope:n,
|
|
1515
1506
|
searchRef:A,onItemEnter:l((e=>{F(e)&&e.preventDefault()}),[F]),
|
|
1516
1507
|
onItemLeave:l((e=>{var t
|
|
1517
1508
|
;F(e)||(null===(t=D.current)||void 0===t||t.focus(),H(null))}),[F]),
|
|
1518
1509
|
onTriggerLeave:l((e=>{F(e)&&e.preventDefault()}),[F]),pointerGraceTimerRef:k,
|
|
1519
|
-
onPointerGraceIntentChange:l((e=>{T.current=e}),[])},i(R,O,i(
|
|
1520
|
-
trapped:o,onMountAutoFocus:
|
|
1510
|
+
onPointerGraceIntentChange:l((e=>{T.current=e}),[])},i(R,O,i(qr,{asChild:!0,
|
|
1511
|
+
trapped:o,onMountAutoFocus:xr(c,(e=>{var t
|
|
1521
1512
|
;e.preventDefault(),null===(t=D.current)||void 0===t||t.focus()})),
|
|
1522
|
-
onUnmountAutoFocus:s},i(
|
|
1513
|
+
onUnmountAutoFocus:s},i(Rr,{asChild:!0,disableOutsidePointerEvents:u,
|
|
1523
1514
|
onEscapeKeyDown:f,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,
|
|
1524
|
-
onDismiss:b},i(
|
|
1525
|
-
currentTabStopId:_,onCurrentTabStopIdChange:H,onEntryFocus:
|
|
1526
|
-
M.isUsingKeyboardRef.current||e.preventDefault()}))}),i(
|
|
1515
|
+
onDismiss:b},i(ui,Ln({asChild:!0},S,{dir:M.dir,orientation:"vertical",loop:a,
|
|
1516
|
+
currentTabStopId:_,onCurrentTabStopIdChange:H,onEntryFocus:xr(d,(e=>{
|
|
1517
|
+
M.isUsingKeyboardRef.current||e.preventDefault()}))}),i($o,Ln({role:"menu",
|
|
1527
1518
|
"aria-orientation":"vertical","data-state":(B=z.open,B?"open":"closed"),
|
|
1528
1519
|
"data-radix-menu-content":"",dir:M.dir},x,C,{ref:L,style:{outline:"none",
|
|
1529
|
-
...C.style},onKeyDown:
|
|
1520
|
+
...C.style},onKeyDown:xr(C.onKeyDown,(e=>{
|
|
1530
1521
|
const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length
|
|
1531
1522
|
;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&N(e.key));const a=D.current
|
|
1532
|
-
;if(e.target!==a)return;if(!
|
|
1523
|
+
;if(e.target!==a)return;if(!tl.includes(e.key))return;e.preventDefault()
|
|
1533
1524
|
;const o=E().filter((e=>!e.disabled)).map((e=>e.ref.current))
|
|
1534
|
-
;
|
|
1525
|
+
;el.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement
|
|
1535
1526
|
;for(const n of e){if(n===t)return
|
|
1536
|
-
;if(n.focus(),document.activeElement!==t)return}}(o)})),onBlur:
|
|
1527
|
+
;if(n.focus(),document.activeElement!==t)return}}(o)})),onBlur:xr(e.onBlur,(e=>{
|
|
1537
1528
|
e.currentTarget.contains(e.target)||(window.clearTimeout(V.current),
|
|
1538
|
-
A.current="")})),onPointerMove:
|
|
1529
|
+
A.current="")})),onPointerMove:xr(e.onPointerMove,Ll((e=>{
|
|
1539
1530
|
const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){
|
|
1540
1531
|
const t=e.clientX>I.current?"right":"left";P.current=t,I.current=e.clientX}})))
|
|
1541
|
-
})))))));var B})),
|
|
1542
|
-
const{disabled:n=!1,onSelect:a,...o}=e,l=r(null),c=
|
|
1543
|
-
;return i(
|
|
1544
|
-
const e=l.current;if(!n&&e){const t=new CustomEvent(
|
|
1545
|
-
});e.addEventListener(
|
|
1532
|
+
})))))));var B})),Sl="MenuItem",El="menu.itemSelect",_l=c(((e,t)=>{
|
|
1533
|
+
const{disabled:n=!1,onSelect:a,...o}=e,l=r(null),c=pl(Sl,e.__scopeMenu),s=wl(Sl,e.__scopeMenu),u=An(t,l),d=r(!1)
|
|
1534
|
+
;return i(Hl,Ln({},o,{ref:u,disabled:n,onClick:xr(e.onClick,(()=>{
|
|
1535
|
+
const e=l.current;if(!n&&e){const t=new CustomEvent(El,{bubbles:!0,cancelable:!0
|
|
1536
|
+
});e.addEventListener(El,(e=>null==a?void 0:a(e)),{once:!0
|
|
1546
1537
|
}),Nn(e,t),t.defaultPrevented?d.current=!1:c.onClose()}})),onPointerDown:t=>{
|
|
1547
1538
|
var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),d.current=!0},
|
|
1548
|
-
onPointerUp:
|
|
1539
|
+
onPointerUp:xr(e.onPointerUp,(e=>{var t
|
|
1549
1540
|
;d.current||null===(t=e.currentTarget)||void 0===t||t.click()})),
|
|
1550
|
-
onKeyDown:
|
|
1551
|
-
;n||t&&" "===e.key||
|
|
1552
|
-
e.preventDefault())}))}))})),
|
|
1553
|
-
const{__scopeMenu:n,disabled:a=!1,textValue:o,...l}=e,c=
|
|
1541
|
+
onKeyDown:xr(e.onKeyDown,(e=>{const t=""!==s.searchRef.current
|
|
1542
|
+
;n||t&&" "===e.key||Ji.includes(e.key)&&(e.currentTarget.click(),
|
|
1543
|
+
e.preventDefault())}))}))})),Hl=c(((e,t)=>{
|
|
1544
|
+
const{__scopeMenu:n,disabled:a=!1,textValue:o,...l}=e,c=wl(Sl,n),s=sl(n),u=r(null),d=An(t,u),[h,f]=m(!1),[v,g]=m("")
|
|
1554
1545
|
;return p((()=>{const e=u.current;var t
|
|
1555
1546
|
;e&&g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())
|
|
1556
|
-
}),[l.children]),i(
|
|
1557
|
-
},i(
|
|
1547
|
+
}),[l.children]),i(rl.ItemSlot,{scope:n,disabled:a,textValue:null!=o?o:v
|
|
1548
|
+
},i(di,Ln({asChild:!0},s,{focusable:!a}),i(On.div,Ln({role:"menuitem",
|
|
1558
1549
|
"data-highlighted":h?"":void 0,"aria-disabled":a||void 0,
|
|
1559
|
-
"data-disabled":a?"":void 0},l,{ref:d,onPointerMove:
|
|
1550
|
+
"data-disabled":a?"":void 0},l,{ref:d,onPointerMove:xr(e.onPointerMove,Ll((e=>{
|
|
1560
1551
|
if(a)c.onItemLeave(e);else if(c.onItemEnter(e),!e.defaultPrevented){
|
|
1561
1552
|
e.currentTarget.focus()}}))),
|
|
1562
|
-
onPointerLeave:
|
|
1563
|
-
onFocus:
|
|
1564
|
-
;
|
|
1565
|
-
;
|
|
1566
|
-
const{__scopeMenu:n,...r}=e,a=
|
|
1567
|
-
;function
|
|
1568
|
-
;const
|
|
1569
|
-
const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:c,modal:s=!0}=e,u=
|
|
1553
|
+
onPointerLeave:xr(e.onPointerLeave,Ll((e=>c.onItemLeave(e)))),
|
|
1554
|
+
onFocus:xr(e.onFocus,(()=>f(!0))),onBlur:xr(e.onBlur,(()=>f(!1)))}))))}))
|
|
1555
|
+
;il("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})
|
|
1556
|
+
;il("MenuItemIndicator",{checked:!1});const Dl=c(((e,t)=>{
|
|
1557
|
+
const{__scopeMenu:n,...r}=e,a=cl(n);return i(Yo,Ln({},a,r,{ref:t}))}))
|
|
1558
|
+
;function Ll(e){return t=>"mouse"===t.pointerType?e(t):void 0}il("MenuSub")
|
|
1559
|
+
;const Vl=e=>{
|
|
1560
|
+
const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:c,modal:s=!0}=e,u=cl(t),[d,h]=m(null),f=r(!1),v=_r(c),g=Vr(o)
|
|
1570
1561
|
;return p((()=>{const e=()=>{
|
|
1571
1562
|
f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0
|
|
1572
1563
|
}),document.addEventListener("pointermove",t,{capture:!0,once:!0})
|
|
@@ -1574,36 +1565,36 @@ f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0
|
|
|
1574
1565
|
()=>{document.removeEventListener("keydown",e,{capture:!0
|
|
1575
1566
|
}),document.removeEventListener("pointerdown",t,{capture:!0
|
|
1576
1567
|
}),document.removeEventListener("pointermove",t,{capture:!0})}
|
|
1577
|
-
}),[]),i(
|
|
1578
|
-
},i(
|
|
1579
|
-
},a)))},
|
|
1580
|
-
const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=
|
|
1581
|
-
;return i(
|
|
1568
|
+
}),[]),i(jo,u,i(ul,{scope:t,open:n,onOpenChange:v,content:d,onContentChange:h
|
|
1569
|
+
},i(hl,{scope:t,onClose:l((()=>v(!1)),[v]),isUsingKeyboardRef:f,dir:g,modal:s
|
|
1570
|
+
},a)))},Al=fl,kl=e=>{
|
|
1571
|
+
const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=dl(ml,t)
|
|
1572
|
+
;return i(vl,{scope:t,forceMount:n},i(Go,{present:n||o.open},i(Wo,{asChild:!0,
|
|
1582
1573
|
container:a},r)))
|
|
1583
|
-
},
|
|
1584
|
-
const{__scopeDropdownMenu:t,children:n,dir:a,open:o,defaultOpen:c,onOpenChange:s,modal:u=!0}=e,d=
|
|
1585
|
-
prop:o,defaultProp:c,onChange:s});return i(
|
|
1586
|
-
triggerRef:h,contentId:
|
|
1587
|
-
onOpenToggle:l((()=>f((e=>!e))),[f]),modal:u},i(
|
|
1588
|
-
onOpenChange:f,dir:a,modal:u}),n))}
|
|
1589
|
-
const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,o=
|
|
1590
|
-
;return i(
|
|
1574
|
+
},Tl=Cl,Pl=_l,Il=Dl,Rl="DropdownMenu",[Ol,Nl]=Sr(Rl,[ll]),Fl=ll(),[Bl,jl]=Ol(Rl),Ul=e=>{
|
|
1575
|
+
const{__scopeDropdownMenu:t,children:n,dir:a,open:o,defaultOpen:c,onOpenChange:s,modal:u=!0}=e,d=Fl(t),h=r(null),[p=!1,f]=Hr({
|
|
1576
|
+
prop:o,defaultProp:c,onChange:s});return i(Bl,{scope:t,triggerId:oa(),
|
|
1577
|
+
triggerRef:h,contentId:oa(),open:p,onOpenChange:f,
|
|
1578
|
+
onOpenToggle:l((()=>f((e=>!e))),[f]),modal:u},i(Vl,Ln({},d,{open:p,
|
|
1579
|
+
onOpenChange:f,dir:a,modal:u}),n))},$l=c(((e,t)=>{
|
|
1580
|
+
const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,o=jl("DropdownMenuTrigger",n),l=Fl(n)
|
|
1581
|
+
;return i(Al,Ln({asChild:!0},l),i(On.button,Ln({type:"button",id:o.triggerId,
|
|
1591
1582
|
"aria-haspopup":"menu","aria-expanded":o.open,
|
|
1592
1583
|
"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed",
|
|
1593
1584
|
"data-disabled":r?"":void 0,disabled:r},a,{ref:Vn(t,o.triggerRef),
|
|
1594
|
-
onPointerDown:
|
|
1585
|
+
onPointerDown:xr(e.onPointerDown,(e=>{
|
|
1595
1586
|
r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())
|
|
1596
|
-
})),onKeyDown:
|
|
1587
|
+
})),onKeyDown:xr(e.onKeyDown,(e=>{
|
|
1597
1588
|
r||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),
|
|
1598
1589
|
"ArrowDown"===e.key&&o.onOpenChange(!0),
|
|
1599
|
-
["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),
|
|
1600
|
-
const{__scopeDropdownMenu:t,...n}=e,r=
|
|
1601
|
-
},
|
|
1602
|
-
const{__scopeDropdownMenu:n,...a}=e,o=
|
|
1603
|
-
;return i(
|
|
1604
|
-
onCloseAutoFocus:
|
|
1590
|
+
["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),Yl=e=>{
|
|
1591
|
+
const{__scopeDropdownMenu:t,...n}=e,r=Fl(t);return i(kl,Ln({},r,n))
|
|
1592
|
+
},Wl=c(((e,t)=>{
|
|
1593
|
+
const{__scopeDropdownMenu:n,...a}=e,o=jl("DropdownMenuContent",n),l=Fl(n),c=r(!1)
|
|
1594
|
+
;return i(Tl,Ln({id:o.contentId,"aria-labelledby":o.triggerId},l,a,{ref:t,
|
|
1595
|
+
onCloseAutoFocus:xr(e.onCloseAutoFocus,(e=>{var t
|
|
1605
1596
|
;c.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),c.current=!1,
|
|
1606
|
-
e.preventDefault()})),onInteractOutside:
|
|
1597
|
+
e.preventDefault()})),onInteractOutside:xr(e.onInteractOutside,(e=>{
|
|
1607
1598
|
const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n
|
|
1608
1599
|
;o.modal&&!r||(c.current=!0)})),style:{...e.style,
|
|
1609
1600
|
"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)",
|
|
@@ -1611,12 +1602,12 @@ const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n
|
|
|
1611
1602
|
"--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)",
|
|
1612
1603
|
"--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)",
|
|
1613
1604
|
"--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))
|
|
1614
|
-
})),
|
|
1615
|
-
;return i(
|
|
1616
|
-
const{__scopeDropdownMenu:n,...r}=e,a=
|
|
1617
|
-
})),
|
|
1605
|
+
})),Gl=c(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Fl(n)
|
|
1606
|
+
;return i(Pl,Ln({},a,r,{ref:t}))})),Kl=c(((e,t)=>{
|
|
1607
|
+
const{__scopeDropdownMenu:n,...r}=e,a=Fl(n);return i(Il,Ln({},a,r,{ref:t}))
|
|
1608
|
+
})),ql=En(Ul)``,Zl=En($l)``,Xl=En(Yl)``,Ql=En(Kl)`
|
|
1618
1609
|
fill: ${({theme:e})=>e.colors.border.light};
|
|
1619
|
-
`,
|
|
1610
|
+
`,Jl=En(Wl)`
|
|
1620
1611
|
padding: 8px;
|
|
1621
1612
|
z-index: 1000;
|
|
1622
1613
|
border-radius: 2px 2px 8px 8px;
|
|
@@ -1642,7 +1633,7 @@ const{__scopeDropdownMenu:n,...r}=e,a=Ul(n);return i(Nl,Ln({},a,r,{ref:t}))
|
|
|
1642
1633
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
1643
1634
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
1644
1635
|
will-change: transform, opacity;
|
|
1645
|
-
`,
|
|
1636
|
+
`,ec=En(Gl)`
|
|
1646
1637
|
padding: 8px 12px;
|
|
1647
1638
|
border-radius: 4px;
|
|
1648
1639
|
display: flex;
|
|
@@ -1660,43 +1651,62 @@ const{__scopeDropdownMenu:n,...r}=e,a=Ul(n);return i(Nl,Ln({},a,r,{ref:t}))
|
|
|
1660
1651
|
&:hover {
|
|
1661
1652
|
background: ${({disabled:e,theme:t})=>e?t.colors.fill.disabled:t.colors.fill.hilight};
|
|
1662
1653
|
}
|
|
1663
|
-
`,
|
|
1654
|
+
`,tc=e=>{
|
|
1664
1655
|
const{isOpen:n,trigger:r,closeMenuCallback:a,idAccessor:o="id",nameAccessor:i="name",onSelect:l,itemComponent:c,showArrow:s=!1,options:u=[],value:d,side:h="bottom",align:p="center",sideOffset:f=4,alignOffset:m,arrowPadding:v,avoidCollisions:g}=e
|
|
1665
|
-
;return t.createElement(
|
|
1666
|
-
},t.createElement(
|
|
1667
|
-
},t.createElement(Zn,null,r)),t.createElement(
|
|
1656
|
+
;return t.createElement(ql,{open:n,onOpenChange:e=>{e||a?.()}
|
|
1657
|
+
},t.createElement(Zl,{asChild:!0
|
|
1658
|
+
},t.createElement(Zn,null,r)),t.createElement(Xl,null,t.createElement(Jl,{
|
|
1668
1659
|
side:h,sideOffset:f,align:p,alignOffset:m,arrowPadding:v,avoidCollisions:g,
|
|
1669
1660
|
className:"DropdownMenuContent"},u.map((e=>c?c(e,{disabled:e?.disabled,
|
|
1670
1661
|
className:"DropdownMenuItem",key:e?.[o],onSelect:()=>l?.(e),
|
|
1671
|
-
isSelected:d?.[o]===e?.[o]}):t.createElement(
|
|
1662
|
+
isSelected:d?.[o]===e?.[o]}):t.createElement(ec,{id:e?.[o],disabled:e?.disabled,
|
|
1672
1663
|
className:"DropdownMenuItem",key:e?.[o],onSelect:()=>l?.(e),
|
|
1673
|
-
isSelected:d?.[o]===e?.[o]},e?.[i]))),s&&t.createElement(
|
|
1674
|
-
className:"DropdownMenuArrow"}))))
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1664
|
+
isSelected:d?.[o]===e?.[o]},e?.[i]))),s&&t.createElement(Ql,{
|
|
1665
|
+
className:"DropdownMenuArrow"}))))},nc=e=>t.createElement("svg",{width:"8",
|
|
1666
|
+
height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e
|
|
1667
|
+
},t.createElement("path",{
|
|
1668
|
+
d:"M0.696495 5.3465C0.882365 5.34499 1.06086 5.27359 1.19649 5.1465L3.99649 2.3365L6.79649 5.1465C7.07264 5.42264 7.52035 5.42264 7.79649 5.1465C8.07264 4.87035 8.07264 4.42264 7.79649 4.1465L4.49649 0.856495C4.36483 0.722118 4.18462 0.646393 3.99649 0.646393C3.80837 0.646393 3.62816 0.722118 3.49649 0.856495L0.206495 4.1465C0.00332102 4.34556 -0.0591904 4.64778 0.0483378 4.91112C0.155867 5.17445 0.412052 5.34654 0.696495 5.3465Z",
|
|
1669
|
+
fill:e.fill})),rc=En(nc)`
|
|
1670
|
+
transform: rotate(180deg);
|
|
1671
|
+
path {
|
|
1672
|
+
fill: ${({theme:e,variant:t})=>e.components.button[t].color};
|
|
1673
|
+
}
|
|
1674
|
+
`,ac=En(zr)`
|
|
1675
|
+
display: flex;
|
|
1676
|
+
align-items: center;
|
|
1677
|
+
gap: 4px;
|
|
1678
|
+
padding-right: 0px;
|
|
1679
|
+
|
|
1680
|
+
& ${Zn} {
|
|
1681
|
+
width: 24px;
|
|
1682
|
+
height: 100%;
|
|
1683
|
+
padding-right: 4px;
|
|
1684
|
+
}
|
|
1685
|
+
`,oc=({size:e="normal",variant:n="primary",loading:r=!1,inline:a=!0,defaultSelectedItem:o,idAccessor:i="id",nameAccessor:l="name",onClick:c,options:s,side:u="bottom",sideOffset:d=4,align:h="end",alignOffset:p,arrowPadding:f,avoidCollisions:m,disabled:v,id:g,name:y})=>t.createElement(ac,{
|
|
1686
|
+
id:g,name:y,size:e,variant:n,inline:a,disabled:v||r,"aria-disabled":v||r,
|
|
1687
|
+
onClick:e=>c?.(o,e),
|
|
1678
1688
|
"aria-describedby":"string"===(typeof o?.[l]??s?.[0]?.[l])?o?.[l]??s?.[0]?.[l]:void 0,
|
|
1679
1689
|
role:"button"
|
|
1680
|
-
},t.createElement("span",null,o?.[l]??s?.[0]?.[l]??""),t.createElement(
|
|
1681
|
-
trigger:t.createElement(
|
|
1690
|
+
},t.createElement("span",null,o?.[l]??s?.[0]?.[l]??""),t.createElement(tc,{
|
|
1691
|
+
trigger:t.createElement(rc,{variant:n}),onSelect:e=>c?.(e),
|
|
1682
1692
|
options:s?.filter((e=>e?.[i]!==o?.[i]))||[],showArrow:!1,side:u,align:h,
|
|
1683
1693
|
alignOffset:p,arrowPadding:f,avoidCollisions:m,sideOffset:d,idAccessor:i,
|
|
1684
|
-
nameAccessor:l}))
|
|
1694
|
+
nameAccessor:l}));function ic(e){const t=r({value:e,previous:e})
|
|
1685
1695
|
;return a((()=>(t.current.value!==e&&(t.current.previous=t.current.value,
|
|
1686
1696
|
t.current.value=e),t.current.previous)),[e])}
|
|
1687
|
-
const lc="Radio",[cc,sc]=
|
|
1697
|
+
const lc="Radio",[cc,sc]=Sr(lc),[uc,dc]=cc(lc),hc=c(((e,t)=>{
|
|
1688
1698
|
const{__scopeRadio:n,name:a,checked:o=!1,required:l,disabled:c,value:s="on",onCheck:u,...d}=e,[h,p]=m(null),f=An(t,(e=>p(e))),v=r(!1),g=!h||Boolean(h.closest("form"))
|
|
1689
1699
|
;return i(uc,{scope:n,checked:o,disabled:c},i(On.button,Ln({type:"button",
|
|
1690
1700
|
role:"radio","aria-checked":o,"data-state":mc(o),"data-disabled":c?"":void 0,
|
|
1691
|
-
disabled:c,value:s},d,{ref:f,onClick:
|
|
1701
|
+
disabled:c,value:s},d,{ref:f,onClick:xr(e.onClick,(e=>{
|
|
1692
1702
|
o||null==u||u(),g&&(v.current=e.isPropagationStopped(),
|
|
1693
1703
|
v.current||e.stopPropagation())}))})),g&&i(fc,{control:h,bubbles:!v.current,
|
|
1694
1704
|
name:a,value:s,checked:o,required:l,disabled:c,style:{
|
|
1695
1705
|
transform:"translateX(-100%)"}}))})),pc=c(((e,t)=>{
|
|
1696
|
-
const{__scopeRadio:n,forceMount:r,...a}=e,o=dc("RadioIndicator",n);return i(
|
|
1706
|
+
const{__scopeRadio:n,forceMount:r,...a}=e,o=dc("RadioIndicator",n);return i(Go,{
|
|
1697
1707
|
present:r||o.checked},i(On.span,Ln({"data-state":mc(o.checked),
|
|
1698
1708
|
"data-disabled":o.disabled?"":void 0},a,{ref:t})))})),fc=e=>{
|
|
1699
|
-
const{control:t,checked:n,bubbles:a=!0,...o}=e,l=r(null),c=ic(n),s=
|
|
1709
|
+
const{control:t,checked:n,bubbles:a=!0,...o}=e,l=r(null),c=ic(n),s=So(t)
|
|
1700
1710
|
;return p((()=>{
|
|
1701
1711
|
const e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
1702
1712
|
;if(c!==n&&r){const t=new Event("click",{bubbles:a})
|
|
@@ -1704,10 +1714,10 @@ const e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDes
|
|
|
1704
1714
|
"aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:l,style:{...e.style,...s,
|
|
1705
1715
|
position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function mc(e){
|
|
1706
1716
|
return e?"checked":"unchecked"}
|
|
1707
|
-
const vc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],gc="RadioGroup",[yc,bc]=
|
|
1708
|
-
const{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:l=!1,disabled:c=!1,orientation:s,dir:u,loop:d=!0,onValueChange:h,...p}=e,f=wc(n),m=
|
|
1717
|
+
const vc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],gc="RadioGroup",[yc,bc]=Sr(gc,[ni,sc]),wc=ni(),Cc=sc(),[zc,Mc]=yc(gc),xc=c(((e,t)=>{
|
|
1718
|
+
const{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:l=!1,disabled:c=!1,orientation:s,dir:u,loop:d=!0,onValueChange:h,...p}=e,f=wc(n),m=Vr(u),[v,g]=Hr({
|
|
1709
1719
|
prop:o,defaultProp:a,onChange:h});return i(zc,{scope:n,name:r,required:l,
|
|
1710
|
-
disabled:c,value:v,onValueChange:g},i(
|
|
1720
|
+
disabled:c,value:v,onValueChange:g},i(ui,Ln({asChild:!0},f,{orientation:s,dir:m,
|
|
1711
1721
|
loop:d}),i(On.div,Ln({role:"radiogroup","aria-required":l,"aria-orientation":s,
|
|
1712
1722
|
"data-disabled":c?"":void 0,dir:m},p,{ref:t}))))})),Sc=xc,Ec=c(((e,t)=>{
|
|
1713
1723
|
const{__scopeRadioGroup:n,disabled:a,...o}=e,l=Mc("RadioGroupItem",n),c=l.disabled||a,s=wc(n),u=Cc(n),d=r(null),h=An(t,d),f=l.value===o.value,m=r(!1)
|
|
@@ -1716,10 +1726,10 @@ const{__scopeRadioGroup:n,disabled:a,...o}=e,l=Mc("RadioGroupItem",n),c=l.disabl
|
|
|
1716
1726
|
;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),
|
|
1717
1727
|
()=>{
|
|
1718
1728
|
document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)
|
|
1719
|
-
}}),[]),i(
|
|
1729
|
+
}}),[]),i(di,Ln({asChild:!0},s,{focusable:!c,active:f}),i(hc,Ln({disabled:c,
|
|
1720
1730
|
required:l.required,checked:f},u,o,{name:l.name,ref:h,
|
|
1721
|
-
onCheck:()=>l.onValueChange(o.value),onKeyDown:
|
|
1722
|
-
"Enter"===e.key&&e.preventDefault()})),onFocus:
|
|
1731
|
+
onCheck:()=>l.onValueChange(o.value),onKeyDown:xr((e=>{
|
|
1732
|
+
"Enter"===e.key&&e.preventDefault()})),onFocus:xr(o.onFocus,(()=>{var e
|
|
1723
1733
|
;m.current&&(null===(e=d.current)||void 0===e||e.click())}))})))
|
|
1724
1734
|
})),_c=c(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,a=Cc(n)
|
|
1725
1735
|
;return i(pc,Ln({},a,r,{ref:t}))})),Hc=En.div``,Dc=En(Sc)`
|
|
@@ -1840,21 +1850,21 @@ hasDescription:!!a,className:"BoxedRadioGroupIndicatorHolder"
|
|
|
1840
1850
|
className:"BoxedRadioLabelHeading"
|
|
1841
1851
|
},n):t.createElement(t.Fragment,null,n),a&&t.createElement(Pc,{
|
|
1842
1852
|
className:"BoxedRadioLabelDescription"},a))))
|
|
1843
|
-
}))),o&&i&&t.createElement(Oc,null,i)),Fc="Checkbox",[Bc,jc]=
|
|
1844
|
-
const{__scopeCheckbox:n,name:a,checked:o,defaultChecked:l,required:c,disabled:s,value:u="on",onCheckedChange:d,...h}=e,[f,v]=m(null),g=An(t,(e=>v(e))),y=r(!1),b=!f||Boolean(f.closest("form")),[w=!1,C]=
|
|
1853
|
+
}))),o&&i&&t.createElement(Oc,null,i)),Fc="Checkbox",[Bc,jc]=Sr(Fc),[Uc,$c]=Bc(Fc),Yc=c(((e,t)=>{
|
|
1854
|
+
const{__scopeCheckbox:n,name:a,checked:o,defaultChecked:l,required:c,disabled:s,value:u="on",onCheckedChange:d,...h}=e,[f,v]=m(null),g=An(t,(e=>v(e))),y=r(!1),b=!f||Boolean(f.closest("form")),[w=!1,C]=Hr({
|
|
1845
1855
|
prop:o,defaultProp:l,onChange:d}),z=r(w);return p((()=>{
|
|
1846
1856
|
const e=null==f?void 0:f.form;if(e){const t=()=>C(z.current)
|
|
1847
1857
|
;return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}
|
|
1848
1858
|
}),[f,C]),i(Uc,{scope:n,state:w,disabled:s},i(On.button,Ln({type:"button",
|
|
1849
1859
|
role:"checkbox","aria-checked":Gc(w)?"mixed":w,"aria-required":c,
|
|
1850
1860
|
"data-state":Kc(w),"data-disabled":s?"":void 0,disabled:s,value:u},h,{ref:g,
|
|
1851
|
-
onKeyDown:
|
|
1852
|
-
onClick:
|
|
1861
|
+
onKeyDown:xr(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),
|
|
1862
|
+
onClick:xr(e.onClick,(e=>{
|
|
1853
1863
|
C((e=>!!Gc(e)||!e)),b&&(y.current=e.isPropagationStopped(),
|
|
1854
1864
|
y.current||e.stopPropagation())}))})),b&&i(Wc,{control:f,bubbles:!y.current,
|
|
1855
1865
|
name:a,value:u,checked:w,required:c,disabled:s,style:{
|
|
1856
1866
|
transform:"translateX(-100%)"}}))})),Wc=e=>{
|
|
1857
|
-
const{control:t,checked:n,bubbles:a=!0,...o}=e,l=r(null),c=ic(n),s=
|
|
1867
|
+
const{control:t,checked:n,bubbles:a=!0,...o}=e,l=r(null),c=ic(n),s=So(t)
|
|
1858
1868
|
;return p((()=>{
|
|
1859
1869
|
const e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
1860
1870
|
;if(c!==n&&r){const t=new Event("click",{bubbles:a})
|
|
@@ -1866,7 +1876,7 @@ return"indeterminate"===e}function Kc(e){
|
|
|
1866
1876
|
return Gc(e)?"indeterminate":e?"checked":"unchecked"}
|
|
1867
1877
|
const qc=Yc,Zc=En(c(((e,t)=>{
|
|
1868
1878
|
const{__scopeCheckbox:n,forceMount:r,...a}=e,o=$c("CheckboxIndicator",n)
|
|
1869
|
-
;return i(
|
|
1879
|
+
;return i(Go,{present:r||Gc(o.state)||!0===o.state},i(On.span,Ln({
|
|
1870
1880
|
"data-state":Kc(o.state),"data-disabled":o.disabled?"":void 0},a,{ref:t,style:{
|
|
1871
1881
|
pointerEvents:"none",...e.style}})))})))`
|
|
1872
1882
|
display: grid;
|
|
@@ -1929,25 +1939,25 @@ className:"toggle-indeterminate",width:8,height:6,fill:l.colors.common.accent
|
|
|
1929
1939
|
}):t.createElement(Jc,{className:"toggle-on",width:8,height:6,
|
|
1930
1940
|
fill:l.colors.common.accent}))),o&&t.createElement(Bn,{
|
|
1931
1941
|
className:"CheckboxLabel",htmlFor:i.id},o,e&&t.createElement(jn,null,"*")))
|
|
1932
|
-
},ns="Dialog",[rs,as]=
|
|
1942
|
+
},ns="Dialog",[rs,as]=Sr(ns),[os,is]=rs(ns),ls="DialogPortal",[cs,ss]=rs(ls,{
|
|
1933
1943
|
forceMount:void 0}),us="DialogOverlay",ds=c(((e,t)=>{
|
|
1934
1944
|
const n=ss(us,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=is(us,e.__scopeDialog)
|
|
1935
|
-
;return o.modal?i(
|
|
1936
|
-
})),hs=c(((e,t)=>{const{__scopeDialog:n,...r}=e,a=is(us,n);return i(
|
|
1945
|
+
;return o.modal?i(Go,{present:r||o.open},i(hs,Ln({},a,{ref:t}))):null
|
|
1946
|
+
})),hs=c(((e,t)=>{const{__scopeDialog:n,...r}=e,a=is(us,n);return i(Qi,{as:kn,
|
|
1937
1947
|
allowPinchZoom:!0,shards:[a.contentRef]},i(On.div,Ln({"data-state":xs(a.open)
|
|
1938
1948
|
},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))
|
|
1939
1949
|
})),ps="DialogContent",fs=c(((e,t)=>{
|
|
1940
1950
|
const n=ss(ps,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=is(ps,e.__scopeDialog)
|
|
1941
|
-
;return i(
|
|
1951
|
+
;return i(Go,{present:r||o.open},o.modal?i(ms,Ln({},a,{ref:t})):i(vs,Ln({},a,{
|
|
1942
1952
|
ref:t})))})),ms=c(((e,t)=>{
|
|
1943
1953
|
const n=is(ps,e.__scopeDialog),a=r(null),o=An(t,n.contentRef,a);return p((()=>{
|
|
1944
|
-
const e=a.current;if(e)return
|
|
1945
|
-
disableOutsidePointerEvents:!0,onCloseAutoFocus:
|
|
1954
|
+
const e=a.current;if(e)return yi(e)}),[]),i(gs,Ln({},e,{ref:o,trapFocus:n.open,
|
|
1955
|
+
disableOutsidePointerEvents:!0,onCloseAutoFocus:xr(e.onCloseAutoFocus,(e=>{var t
|
|
1946
1956
|
;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),
|
|
1947
|
-
onPointerDownOutside:
|
|
1957
|
+
onPointerDownOutside:xr(e.onPointerDownOutside,(e=>{
|
|
1948
1958
|
const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey
|
|
1949
1959
|
;(2===t.button||n)&&e.preventDefault()})),
|
|
1950
|
-
onFocusOutside:
|
|
1960
|
+
onFocusOutside:xr(e.onFocusOutside,(e=>e.preventDefault()))}))})),vs=c(((e,t)=>{
|
|
1951
1961
|
const n=is(ps,e.__scopeDialog),a=r(!1),o=r(!1);return i(gs,Ln({},e,{ref:t,
|
|
1952
1962
|
trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i
|
|
1953
1963
|
;(null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),
|
|
@@ -1960,8 +1970,8 @@ t.defaultPrevented||(a.current=!0,
|
|
|
1960
1970
|
"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))
|
|
1961
1971
|
})),gs=c(((e,t)=>{
|
|
1962
1972
|
const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,...c}=e,s=is(ps,n),u=An(t,r(null))
|
|
1963
|
-
;return
|
|
1964
|
-
onUnmountAutoFocus:l},i(
|
|
1973
|
+
;return $r(),i(h,null,i(qr,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,
|
|
1974
|
+
onUnmountAutoFocus:l},i(Rr,Ln({role:"dialog",id:s.contentId,
|
|
1965
1975
|
"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,
|
|
1966
1976
|
"data-state":xs(s.open)},c,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)
|
|
1967
1977
|
})),ys="DialogTitle",bs=c(((e,t)=>{const{__scopeDialog:n,...r}=e,a=is(ys,n)
|
|
@@ -1970,27 +1980,27 @@ onUnmountAutoFocus:l},i(Fr,Ln({role:"dialog",id:s.contentId,
|
|
|
1970
1980
|
const{__scopeDialog:n,...r}=e,a=is(ws,n);return i(On.p,Ln({id:a.descriptionId
|
|
1971
1981
|
},r,{ref:t}))})),zs="DialogClose",Ms=c(((e,t)=>{
|
|
1972
1982
|
const{__scopeDialog:n,...r}=e,a=is(zs,n);return i(On.button,Ln({type:"button"
|
|
1973
|
-
},r,{ref:t,onClick:
|
|
1983
|
+
},r,{ref:t,onClick:xr(e.onClick,(()=>a.onOpenChange(!1)))}))}));function xs(e){
|
|
1974
1984
|
return e?"open":"closed"}const[Ss,Es]=function(e,t){const r=f(t);function o(e){
|
|
1975
1985
|
const{children:t,...n}=e,o=a((()=>n),Object.values(n));return i(r.Provider,{
|
|
1976
1986
|
value:o},t)}return o.displayName=e+"Provider",[o,function(a){const o=n(r)
|
|
1977
1987
|
;if(o)return o;if(void 0!==t)return t
|
|
1978
1988
|
;throw new Error(`\`${a}\` must be used within \`${e}\``)}]
|
|
1979
1989
|
}("DialogTitleWarning",{contentName:ps,titleName:ys,docsSlug:"dialog"}),_s=e=>{
|
|
1980
|
-
const{__scopeDialog:t,children:n,open:a,defaultOpen:o,onOpenChange:c,modal:s=!0}=e,u=r(null),d=r(null),[h=!1,p]=
|
|
1990
|
+
const{__scopeDialog:t,children:n,open:a,defaultOpen:o,onOpenChange:c,modal:s=!0}=e,u=r(null),d=r(null),[h=!1,p]=Hr({
|
|
1981
1991
|
prop:a,defaultProp:o,onChange:c});return i(os,{scope:t,triggerRef:u,
|
|
1982
|
-
contentRef:d,contentId:
|
|
1992
|
+
contentRef:d,contentId:oa(),titleId:oa(),descriptionId:oa(),open:h,
|
|
1983
1993
|
onOpenChange:p,onOpenToggle:l((()=>p((e=>!e))),[p]),modal:s},n)},Hs=e=>{
|
|
1984
1994
|
const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=is(ls,t)
|
|
1985
|
-
;return i(cs,{scope:t,forceMount:n},s.map(r,(e=>i(
|
|
1995
|
+
;return i(cs,{scope:t,forceMount:n},s.map(r,(e=>i(Go,{present:n||o.open},i(Wo,{
|
|
1986
1996
|
asChild:!0,container:a},e)))))
|
|
1987
|
-
},Ds=ds,Ls=fs,Vs=bs,As=Cs,ks=Ms,[Ts,Ps]=
|
|
1997
|
+
},Ds=ds,Ls=fs,Vs=bs,As=Cs,ks=Ms,[Ts,Ps]=Sr("AlertDialog",[as]),Is=as(),Rs=c(((e,t)=>{
|
|
1988
1998
|
const{__scopeAlertDialog:n,...r}=e,a=Is(n);return i(Ds,Ln({},a,r,{ref:t}))
|
|
1989
1999
|
})),Os="AlertDialogContent",[Ns,Fs]=Ts(Os),Bs=c(((e,t)=>{
|
|
1990
2000
|
const{__scopeAlertDialog:n,children:a,...o}=e,l=Is(n),c=An(t,r(null)),s=r(null)
|
|
1991
2001
|
;return i(Ss,{contentName:Os,titleName:js,docsSlug:"alert-dialog"},i(Ns,{
|
|
1992
2002
|
scope:n,cancelRef:s},i(Ls,Ln({role:"alertdialog"},l,o,{ref:c,
|
|
1993
|
-
onOpenAutoFocus:
|
|
2003
|
+
onOpenAutoFocus:xr(o.onOpenAutoFocus,(e=>{var t
|
|
1994
2004
|
;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0
|
|
1995
2005
|
})})),onPointerDownOutside:e=>e.preventDefault(),
|
|
1996
2006
|
onInteractOutside:e=>e.preventDefault()}),i(Pn,null,a),!1)))
|
|
@@ -2153,41 +2163,41 @@ variant:"primary","aria-disabled":s,disabled:s,onClick:()=>a?.(),"aria-label":u
|
|
|
2153
2163
|
const u=vn();return t.createElement(vu,{open:e,onOpenChange:e=>{e||s?.()}
|
|
2154
2164
|
},t.createElement(gu,null,t.createElement(hu,{forceMount:!0,
|
|
2155
2165
|
className:"DialogOverlay",onClick:()=>{c&&s?.()}}),t.createElement(pu,{
|
|
2156
|
-
forceMount:!0,className:`DialogContent ${a
|
|
2166
|
+
forceMount:!0,className:`DialogContent ${a}`.trim(),isFullHeight:i,size:o,
|
|
2157
2167
|
placement:l},!r&&t.createElement(mu,{asChild:!0},t.createElement(fu,{
|
|
2158
2168
|
"aria-label":"Close"},t.createElement(mr,{fill:u.colors.text.inverse}))),n)))}
|
|
2159
2169
|
;function bu(e,[t,n]){return Math.min(n,Math.max(t,e))}
|
|
2160
2170
|
const wu=c(((e,t)=>i(On.span,Ln({},e,{ref:t,style:{position:"absolute",border:0,
|
|
2161
2171
|
width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",
|
|
2162
2172
|
whiteSpace:"nowrap",wordWrap:"normal",...e.style}
|
|
2163
|
-
})))),Cu=wu,zu=[" ","Enter","ArrowUp","ArrowDown"],Mu=[" ","Enter"],xu="Select",[Su,Eu,_u]=
|
|
2173
|
+
})))),Cu=wu,zu=[" ","Enter","ArrowUp","ArrowDown"],Mu=[" ","Enter"],xu="Select",[Su,Eu,_u]=Dr(xu),[Hu,Du]=Sr(xu,[_u,Ho]),Lu=Ho(),[Vu,Au]=Hu(xu),[ku,Tu]=Hu(xu),Pu=c(((e,t)=>{
|
|
2164
2174
|
const{__scopeSelect:n,disabled:r=!1,...a}=e,o=Lu(n),l=Au("SelectTrigger",n),c=l.disabled||r,s=An(t,l.onTriggerChange),u=Eu(n),[d,h,p]=fd((e=>{
|
|
2165
2175
|
const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=md(t,e,n)
|
|
2166
2176
|
;void 0!==r&&l.onValueChange(r.value)})),f=()=>{c||(l.onOpenChange(!0),p())}
|
|
2167
|
-
;return i(
|
|
2177
|
+
;return i(Uo,Ln({asChild:!0},o),i(On.button,Ln({type:"button",role:"combobox",
|
|
2168
2178
|
"aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,
|
|
2169
2179
|
"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",
|
|
2170
2180
|
disabled:c,"data-disabled":c?"":void 0,"data-placeholder":hd(l.value)?"":void 0
|
|
2171
|
-
},a,{ref:s,onClick:
|
|
2172
|
-
onPointerDown:
|
|
2181
|
+
},a,{ref:s,onClick:xr(a.onClick,(e=>{e.currentTarget.focus()})),
|
|
2182
|
+
onPointerDown:xr(a.onPointerDown,(e=>{const t=e.target
|
|
2173
2183
|
;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),
|
|
2174
2184
|
0===e.button&&!1===e.ctrlKey&&(f(),l.triggerPointerDownPosRef.current={
|
|
2175
2185
|
x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),
|
|
2176
|
-
onKeyDown:
|
|
2186
|
+
onKeyDown:xr(a.onKeyDown,(e=>{const t=""!==d.current
|
|
2177
2187
|
;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),
|
|
2178
2188
|
t&&" "===e.key||zu.includes(e.key)&&(f(),e.preventDefault())}))})))
|
|
2179
2189
|
})),Iu=c(((e,t)=>{
|
|
2180
2190
|
const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...c}=e,s=Au("SelectValue",n),{onValueNodeHasChildrenChange:u}=s,d=void 0!==o,p=An(t,s.onValueNodeChange)
|
|
2181
|
-
;return
|
|
2191
|
+
;return na((()=>{u(d)}),[u,d]),i(On.span,Ln({},c,{ref:p,style:{
|
|
2182
2192
|
pointerEvents:"none"}}),hd(s.value)?i(h,null,l):o)})),Ru=c(((e,t)=>{
|
|
2183
2193
|
const{__scopeSelect:n,children:r,...a}=e;return i(On.span,Ln({"aria-hidden":!0
|
|
2184
2194
|
},a,{ref:t}),r||"▼")})),Ou="SelectContent",Nu=c(((e,t)=>{
|
|
2185
|
-
const n=Au(Ou,e.__scopeSelect),[r,a]=m();if(
|
|
2195
|
+
const n=Au(Ou,e.__scopeSelect),[r,a]=m();if(na((()=>{a(new DocumentFragment)
|
|
2186
2196
|
}),[]),!n.open){const t=r;return t?M(i(Bu,{scope:e.__scopeSelect},i(Su.Slot,{
|
|
2187
2197
|
scope:e.__scopeSelect},i("div",null,e.children))),t):null}return i(Uu,Ln({},e,{
|
|
2188
2198
|
ref:t}))})),Fu=10,[Bu,ju]=Hu(Ou),Uu=c(((e,t)=>{
|
|
2189
2199
|
const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:s,side:u,sideOffset:d,align:h,alignOffset:f,arrowPadding:v,collisionBoundary:g,collisionPadding:y,sticky:b,hideWhenDetached:w,avoidCollisions:C,...z}=e,M=Au(Ou,n),[x,S]=m(null),[E,_]=m(null),H=An(t,(e=>S(e))),[D,L]=m(null),[V,A]=m(null),k=Eu(n),[T,P]=m(!1),I=r(!1)
|
|
2190
|
-
;p((()=>{if(x)return
|
|
2200
|
+
;p((()=>{if(x)return yi(x)}),[x]),$r();const R=l((e=>{
|
|
2191
2201
|
const[t,...n]=k().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement
|
|
2192
2202
|
;for(const n of e){if(n===a)return;if(null==n||n.scrollIntoView({block:"nearest"
|
|
2193
2203
|
}),
|
|
@@ -2219,16 +2229,16 @@ alignOffset:f,arrowPadding:v,collisionBoundary:g,collisionPadding:y,sticky:b,
|
|
|
2219
2229
|
hideWhenDetached:w,avoidCollisions:C}:{};return i(Bu,{scope:n,content:x,
|
|
2220
2230
|
viewport:E,onViewportChange:_,itemRefCallback:U,selectedItem:D,onItemLeave:$,
|
|
2221
2231
|
itemTextRefCallback:Y,focusSelectedItem:O,selectedItemText:V,position:a,
|
|
2222
|
-
isPositioned:T,searchRef:B},i(
|
|
2232
|
+
isPositioned:T,searchRef:B},i(Qi,{as:kn,allowPinchZoom:!0},i(qr,{asChild:!0,
|
|
2223
2233
|
trapped:M.open,onMountAutoFocus:e=>{e.preventDefault()},
|
|
2224
|
-
onUnmountAutoFocus:
|
|
2225
|
-
preventScroll:!0}),e.preventDefault()}))},i(
|
|
2234
|
+
onUnmountAutoFocus:xr(o,(e=>{var t;null===(t=M.trigger)||void 0===t||t.focus({
|
|
2235
|
+
preventScroll:!0}),e.preventDefault()}))},i(Rr,{asChild:!0,
|
|
2226
2236
|
disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:s,
|
|
2227
2237
|
onFocusOutside:e=>e.preventDefault(),onDismiss:()=>M.onOpenChange(!1)},i(W,Ln({
|
|
2228
2238
|
role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,
|
|
2229
2239
|
onContextMenu:e=>e.preventDefault()},z,G,{onPlaced:()=>P(!0),ref:H,style:{
|
|
2230
2240
|
display:"flex",flexDirection:"column",outline:"none",...z.style},
|
|
2231
|
-
onKeyDown:
|
|
2241
|
+
onKeyDown:xr(z.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey
|
|
2232
2242
|
;if("Tab"===e.key&&e.preventDefault(),
|
|
2233
2243
|
t||1!==e.key.length||j(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){
|
|
2234
2244
|
let t=k().filter((e=>!e.disabled)).map((e=>e.ref.current))
|
|
@@ -2252,15 +2262,15 @@ const o=v(),i=window.innerHeight-2*Fu,l=b.scrollHeight,s=window.getComputedStyle
|
|
|
2252
2262
|
;u.style.height=t+"px",b.scrollTop=H-S+b.offsetTop}
|
|
2253
2263
|
u.style.margin=`${Fu}px 0`,u.style.minHeight=y+"px",
|
|
2254
2264
|
u.style.maxHeight=i+"px",null==a||a(),requestAnimationFrame((()=>g.current=!0))}
|
|
2255
|
-
}),[v,c.trigger,c.valueNode,u,h,b,w,C,c.dir,a]);
|
|
2256
|
-
;
|
|
2265
|
+
}),[v,c.trigger,c.valueNode,u,h,b,w,C,c.dir,a]);na((()=>M()),[M]);const[x,S]=m()
|
|
2266
|
+
;na((()=>{h&&S(window.getComputedStyle(h).zIndex)}),[h]);const E=l((e=>{
|
|
2257
2267
|
e&&!0===y.current&&(M(),null==z||z(),y.current=!1)}),[M,z]);return i(Wu,{
|
|
2258
2268
|
scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:E
|
|
2259
2269
|
},i("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",
|
|
2260
2270
|
zIndex:x}},i(On.div,Ln({},o,{ref:f,style:{boxSizing:"border-box",
|
|
2261
2271
|
maxHeight:"100%",...o.style}}))))})),Yu=c(((e,t)=>{
|
|
2262
2272
|
const{__scopeSelect:n,align:r="start",collisionPadding:a=Fu,...o}=e,l=Lu(n)
|
|
2263
|
-
;return i(
|
|
2273
|
+
;return i($o,Ln({},l,o,{ref:t,align:r,collisionPadding:a,style:{
|
|
2264
2274
|
boxSizing:"border-box",...o.style,
|
|
2265
2275
|
"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)",
|
|
2266
2276
|
"--radix-select-content-available-width":"var(--radix-popper-available-width)",
|
|
@@ -2273,21 +2283,21 @@ const{__scopeSelect:n,...a}=e,o=ju(Ku,n),l=Gu(Ku,n),c=An(t,o.onViewportChange),s
|
|
|
2273
2283
|
__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
|
|
2274
2284
|
}}),i(Su.Slot,{scope:n},i(On.div,Ln({"data-radix-select-viewport":"",
|
|
2275
2285
|
role:"presentation"},a,{ref:c,style:{position:"relative",flex:1,overflow:"auto",
|
|
2276
|
-
...a.style},onScroll:
|
|
2286
|
+
...a.style},onScroll:xr(a.onScroll,(e=>{
|
|
2277
2287
|
const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=l
|
|
2278
2288
|
;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){
|
|
2279
2289
|
const r=window.innerHeight-2*Fu,a=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(a,o)
|
|
2280
2290
|
;if(i<r){const a=i+e,o=Math.min(r,a),l=a-o
|
|
2281
2291
|
;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,
|
|
2282
2292
|
n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))
|
|
2283
|
-
})),[Zu,Xu]=Hu("SelectGroup"),Qu=c(((e,t)=>{const{__scopeSelect:n,...r}=e,a=
|
|
2293
|
+
})),[Zu,Xu]=Hu("SelectGroup"),Qu=c(((e,t)=>{const{__scopeSelect:n,...r}=e,a=oa()
|
|
2284
2294
|
;return i(Zu,{scope:n,id:a},i(On.div,Ln({role:"group","aria-labelledby":a},r,{
|
|
2285
2295
|
ref:t})))})),Ju=c(((e,t)=>{const{__scopeSelect:n,...r}=e,a=Xu("SelectLabel",n)
|
|
2286
2296
|
;return i(On.div,Ln({id:a.id},r,{ref:t}))
|
|
2287
2297
|
})),ed="SelectItem",[td,nd]=Hu(ed),rd=c(((e,t)=>{
|
|
2288
2298
|
const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...c}=e,s=Au(ed,n),u=ju(ed,n),d=s.value===r,[h,p]=m(null!=o?o:""),[f,v]=m(!1),g=An(t,(e=>{
|
|
2289
2299
|
var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,a)
|
|
2290
|
-
})),y=
|
|
2300
|
+
})),y=oa(),b=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))}
|
|
2291
2301
|
;if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.")
|
|
2292
2302
|
;return i(td,{scope:n,value:r,disabled:a,textId:y,isSelected:d,
|
|
2293
2303
|
onItemTextChange:l((e=>{p((t=>{var n
|
|
@@ -2296,12 +2306,12 @@ onItemTextChange:l((e=>{p((t=>{var n
|
|
|
2296
2306
|
role:"option","aria-labelledby":y,"data-highlighted":f?"":void 0,
|
|
2297
2307
|
"aria-selected":d&&f,"data-state":d?"checked":"unchecked",
|
|
2298
2308
|
"aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},c,{
|
|
2299
|
-
ref:g,onFocus:
|
|
2300
|
-
onPointerUp:
|
|
2309
|
+
ref:g,onFocus:xr(c.onFocus,(()=>v(!0))),onBlur:xr(c.onBlur,(()=>v(!1))),
|
|
2310
|
+
onPointerUp:xr(c.onPointerUp,b),onPointerMove:xr(c.onPointerMove,(e=>{var t
|
|
2301
2311
|
;a?null===(t=u.onItemLeave)||void 0===t||t.call(u):e.currentTarget.focus({
|
|
2302
|
-
preventScroll:!0})})),onPointerLeave:
|
|
2312
|
+
preventScroll:!0})})),onPointerLeave:xr(c.onPointerLeave,(e=>{var t
|
|
2303
2313
|
;e.currentTarget===document.activeElement&&(null===(t=u.onItemLeave)||void 0===t||t.call(u))
|
|
2304
|
-
})),onKeyDown:
|
|
2314
|
+
})),onKeyDown:xr(c.onKeyDown,(e=>{var t
|
|
2305
2315
|
;""!==(null===(t=u.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Mu.includes(e.key)&&b(),
|
|
2306
2316
|
" "===e.key&&e.preventDefault())}))}))))})),ad="SelectItemText",od=c(((e,t)=>{
|
|
2307
2317
|
const{__scopeSelect:n,className:r,style:o,...l}=e,c=Au(ad,n),s=ju(ad,n),u=nd(ad,n),d=Tu(ad,n),[p,f]=m(null),v=An(t,(e=>f(e)),u.onItemTextChange,(e=>{
|
|
@@ -2310,14 +2320,14 @@ var t
|
|
|
2310
2320
|
})),g=null==p?void 0:p.textContent,y=a((()=>i("option",{key:u.value,
|
|
2311
2321
|
value:u.value,disabled:u.disabled
|
|
2312
2322
|
},g)),[u.disabled,u.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=d
|
|
2313
|
-
;return
|
|
2323
|
+
;return na((()=>(b(y),()=>w(y))),[b,w,y]),i(h,null,i(On.span,Ln({id:u.textId
|
|
2314
2324
|
},l,{ref:v
|
|
2315
2325
|
})),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?M(l.children,c.valueNode):null)
|
|
2316
2326
|
})),id=c(((e,t)=>{const{__scopeSelect:n,...r}=e
|
|
2317
2327
|
;return nd("SelectItemIndicator",n).isSelected?i(On.span,Ln({"aria-hidden":!0
|
|
2318
2328
|
},r,{ref:t})):null})),ld="SelectScrollUpButton",cd=c(((e,t)=>{
|
|
2319
2329
|
const n=ju(ld,e.__scopeSelect),r=Gu(ld,e.__scopeSelect),[a,o]=m(!1),l=An(t,r.onScrollButtonChange)
|
|
2320
|
-
;return
|
|
2330
|
+
;return na((()=>{if(n.viewport&&n.isPositioned){const e=n.viewport;function t(){
|
|
2321
2331
|
const t=e.scrollTop>0;o(t)}
|
|
2322
2332
|
return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}
|
|
2323
2333
|
}),[n.viewport,n.isPositioned]),a?i(dd,Ln({},e,{ref:l,onAutoScroll:()=>{
|
|
@@ -2325,7 +2335,7 @@ const{viewport:e,selectedItem:t}=n
|
|
|
2325
2335
|
;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null
|
|
2326
2336
|
})),sd="SelectScrollDownButton",ud=c(((e,t)=>{
|
|
2327
2337
|
const n=ju(sd,e.__scopeSelect),r=Gu(sd,e.__scopeSelect),[a,o]=m(!1),l=An(t,r.onScrollButtonChange)
|
|
2328
|
-
;return
|
|
2338
|
+
;return na((()=>{if(n.viewport&&n.isPositioned){const e=n.viewport;function t(){
|
|
2329
2339
|
const t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;o(n)}
|
|
2330
2340
|
return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}
|
|
2331
2341
|
}),[n.viewport,n.isPositioned]),a?i(dd,Ln({},e,{ref:l,onAutoScroll:()=>{
|
|
@@ -2333,23 +2343,23 @@ const{viewport:e,selectedItem:t}=n
|
|
|
2333
2343
|
;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),dd=c(((e,t)=>{
|
|
2334
2344
|
const{__scopeSelect:n,onAutoScroll:a,...o}=e,c=ju("SelectScrollButton",n),s=r(null),u=Eu(n),d=l((()=>{
|
|
2335
2345
|
null!==s.current&&(window.clearInterval(s.current),s.current=null)}),[])
|
|
2336
|
-
;return p((()=>()=>d()),[d]),
|
|
2346
|
+
;return p((()=>()=>d()),[d]),na((()=>{var e
|
|
2337
2347
|
;const t=u().find((e=>e.ref.current===document.activeElement))
|
|
2338
2348
|
;null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({
|
|
2339
2349
|
block:"nearest"})}),[u]),i(On.div,Ln({"aria-hidden":!0},o,{ref:t,style:{
|
|
2340
|
-
flexShrink:0,...o.style},onPointerDown:
|
|
2350
|
+
flexShrink:0,...o.style},onPointerDown:xr(o.onPointerDown,(()=>{
|
|
2341
2351
|
null===s.current&&(s.current=window.setInterval(a,50))})),
|
|
2342
|
-
onPointerMove:
|
|
2352
|
+
onPointerMove:xr(o.onPointerMove,(()=>{var e
|
|
2343
2353
|
;null===(e=c.onItemLeave)||void 0===e||e.call(c),
|
|
2344
2354
|
null===s.current&&(s.current=window.setInterval(a,50))})),
|
|
2345
|
-
onPointerLeave:
|
|
2355
|
+
onPointerLeave:xr(o.onPointerLeave,(()=>{d()}))}))}));function hd(e){
|
|
2346
2356
|
return""===e||void 0===e}const pd=c(((e,t)=>{
|
|
2347
2357
|
const{value:n,...a}=e,o=r(null),l=An(t,o),c=ic(n);return p((()=>{
|
|
2348
2358
|
const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set
|
|
2349
2359
|
;if(c!==n&&r){const t=new Event("change",{bubbles:!0})
|
|
2350
2360
|
;r.call(e,n),e.dispatchEvent(t)}}),[c,n]),i(wu,{asChild:!0},i("select",Ln({},a,{
|
|
2351
2361
|
ref:l,defaultValue:n})))}));function fd(e){
|
|
2352
|
-
const t=
|
|
2362
|
+
const t=_r(e),n=r(""),a=r(0),o=l((e=>{const r=n.current+e;t(r),function e(t){
|
|
2353
2363
|
n.current=t,
|
|
2354
2364
|
window.clearTimeout(a.current),""!==t&&(a.current=window.setTimeout((()=>e("")),1e3))
|
|
2355
2365
|
}(r)}),[t]),i=l((()=>{n.current="",window.clearTimeout(a.current)}),[])
|
|
@@ -2360,25 +2370,25 @@ const r=t.length>1&&Array.from(t).every((e=>e===t[0])),a=r?t[0]:t,o=n?e.indexOf(
|
|
|
2360
2370
|
;1===a.length&&(i=i.filter((e=>e!==n)))
|
|
2361
2371
|
;const l=i.find((e=>e.textValue.toLowerCase().startsWith(a.toLowerCase())))
|
|
2362
2372
|
;return l!==n?l:void 0}pd.displayName="BubbleSelect";const vd=e=>{
|
|
2363
|
-
const{__scopeSelect:t,children:n,open:a,defaultOpen:o,onOpenChange:c,value:s,defaultValue:u,onValueChange:d,dir:h,name:p,autoComplete:f,disabled:v,required:g}=e,y=Lu(t),[b,w]=m(null),[C,z]=m(null),[M,x]=m(!1),S=
|
|
2364
|
-
prop:a,defaultProp:o,onChange:c}),[H,D]=
|
|
2373
|
+
const{__scopeSelect:t,children:n,open:a,defaultOpen:o,onOpenChange:c,value:s,defaultValue:u,onValueChange:d,dir:h,name:p,autoComplete:f,disabled:v,required:g}=e,y=Lu(t),[b,w]=m(null),[C,z]=m(null),[M,x]=m(!1),S=Vr(h),[E=!1,_]=Hr({
|
|
2374
|
+
prop:a,defaultProp:o,onChange:c}),[H,D]=Hr({prop:s,defaultProp:u,onChange:d
|
|
2365
2375
|
}),L=r(null),V=!b||Boolean(b.closest("form")),[A,k]=m(new Set),T=Array.from(A).map((e=>e.props.value)).join(";")
|
|
2366
|
-
;return i(
|
|
2376
|
+
;return i(jo,y,i(Vu,{required:g,scope:t,trigger:b,onTriggerChange:w,valueNode:C,
|
|
2367
2377
|
onValueNodeChange:z,valueNodeHasChildren:M,onValueNodeHasChildrenChange:x,
|
|
2368
|
-
contentId:
|
|
2378
|
+
contentId:oa(),value:H,onValueChange:D,open:E,onOpenChange:_,dir:S,
|
|
2369
2379
|
triggerPointerDownPosRef:L,disabled:v},i(Su.Provider,{scope:t},i(ku,{
|
|
2370
2380
|
scope:e.__scopeSelect,onNativeOptionAdd:l((e=>{k((t=>new Set(t).add(e)))}),[]),
|
|
2371
2381
|
onNativeOptionRemove:l((e=>{k((t=>{const n=new Set(t);return n.delete(e),n}))
|
|
2372
2382
|
}),[])},n)),V?i(pd,{key:T,"aria-hidden":!0,required:g,tabIndex:-1,name:p,
|
|
2373
2383
|
autoComplete:f,value:H,onChange:e=>D(e.target.value),disabled:v
|
|
2374
2384
|
},void 0===H?i("option",{value:""}):null,Array.from(A)):null))
|
|
2375
|
-
},gd=Pu,yd=Iu,bd=Ru,wd=e=>i(
|
|
2385
|
+
},gd=Pu,yd=Iu,bd=Ru,wd=e=>i(Wo,Ln({asChild:!0
|
|
2376
2386
|
},e)),Cd=Nu,zd=qu,Md=Qu,xd=Ju,Sd=rd,Ed=od,_d=id,Hd=cd,Dd=ud,Ld=e=>t.createElement("svg",{
|
|
2377
2387
|
width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",
|
|
2378
2388
|
xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
2379
2389
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
2380
2390
|
d:"M8.49996 3.55C8.49193 3.14514 8.64578 2.75382 8.92738 2.46283C9.20899 2.17184 9.59506 2.00525 9.99996 2C10.4049 2.00525 10.7909 2.17184 11.0725 2.46283C11.3541 2.75382 11.508 3.14514 11.5 3.55C11.5053 3.95314 11.3503 4.34188 11.0689 4.6307C10.7876 4.91951 10.4031 5.08473 9.99996 5.09C9.59682 5.08473 9.21229 4.91951 8.93097 4.6307C8.64966 4.34188 8.49462 3.95314 8.49996 3.55ZM9.99995 14.91C9.19475 14.9748 8.57435 15.6472 8.57435 16.455C8.57435 17.2628 9.19475 17.9352 9.99995 18C10.8051 17.9352 11.4256 17.2628 11.4256 16.455C11.4256 15.6472 10.8051 14.9748 9.99995 14.91ZM8.44995 10C8.44995 9.14396 9.14391 8.45 9.99995 8.45C10.856 8.45 11.55 9.14396 11.55 10C11.55 10.856 10.856 11.55 9.99995 11.55C9.14391 11.55 8.44995 10.856 8.44995 10Z",
|
|
2381
|
-
fill:e.fill})),Vd=En(
|
|
2391
|
+
fill:e.fill})),Vd=En(nc)`
|
|
2382
2392
|
transform: rotate(${({isOpen:e})=>e?"0deg":"-180deg"});
|
|
2383
2393
|
transition: transform 0.2s ease-in-out;
|
|
2384
2394
|
`,Ad=En.div`
|
|
@@ -3603,24 +3613,24 @@ className:"input-label","aria-label":a,htmlFor:o
|
|
|
3603
3613
|
},a,d&&t.createElement(jn,null,"*"))),t.createElement(Fd,{open:x,defaultOpen:M,
|
|
3604
3614
|
name:f,required:d,disabled:u,value:b?.[r]??void 0,onValueChange:e=>{if(s)return
|
|
3605
3615
|
;const t=i.find((t=>t?.[r]===e));l?.(t??null)}},t.createElement(eh,{
|
|
3606
|
-
className:`SelectTrigger ${g
|
|
3616
|
+
className:`SelectTrigger ${g||""}`.trim(),"aria-label":"Food",disabled:u,id:o,
|
|
3607
3617
|
isErrored:!!w,"aria-invalid":!!w,width:v,style:y},t.createElement(jd,{
|
|
3608
3618
|
className:"SelectValue",placeholder:c}),t.createElement(Jd,{
|
|
3609
|
-
className:"SelectIcon"},t.createElement(
|
|
3619
|
+
className:"SelectIcon"},t.createElement(nc,{fill:n.colors.text.primary
|
|
3610
3620
|
}))),t.createElement(Ud,null,t.createElement(Gd,{className:"SelectContent",
|
|
3611
3621
|
position:"popper",side:"bottom",sideOffset:4,sticky:"partial"
|
|
3612
3622
|
},C?t.createElement(Rd,null,t.createElement(Em,null)):t.createElement(t.Fragment,null,t.createElement(Xd,{
|
|
3613
|
-
className:"SelectScrollButton"},t.createElement(
|
|
3623
|
+
className:"SelectScrollButton"},t.createElement(nc,{fill:n.colors.text.primary
|
|
3614
3624
|
})),t.createElement(qd,{className:"SelectViewport"
|
|
3615
3625
|
},S.map((e=>t.createElement(Bd,{key:e.key,className:"SelectGroup"
|
|
3616
3626
|
},"default"!==e.key&&t.createElement(Wd,{className:"SelectLabel"
|
|
3617
3627
|
},e.key,t.createElement(Yd,null)),e.items.map(((e,n)=>{
|
|
3618
3628
|
const a="string"==typeof e?e:e?.[r],o=e?.[r]??""
|
|
3619
3629
|
;return o&&""!==o||console.warn("No value for item",e),
|
|
3620
|
-
t.createElement(t.Fragment,null,m?m(e,{key:a,value:o
|
|
3621
|
-
showTick:h}):t.createElement(Lm,{key:a,value:o||a,
|
|
3622
|
-
showTick:h},p(e,"list-item")))})))))),t.createElement(Qd,{
|
|
3623
|
-
className:"SelectScrollButton"},t.createElement(
|
|
3630
|
+
t.createElement(t.Fragment,null,m?m(e,{key:a,value:o||a.trim,
|
|
3631
|
+
disabled:!!e.disabled,showTick:h}):t.createElement(Lm,{key:a,value:o||a,
|
|
3632
|
+
disabled:!!e.disabled,showTick:h},p(e,"list-item")))})))))),t.createElement(Qd,{
|
|
3633
|
+
className:"SelectScrollButton"},t.createElement(nc,{fill:n.colors.text.primary
|
|
3624
3634
|
})))))),w&&z&&t.createElement(Oc,null,z))
|
|
3625
3635
|
},Dm=({itemIdentifier:e="id",label:n,id:r,items:a=[],placeholder:o,readOnly:i=!1,disabled:l=!1,isRequired:c=!1,hideClear:s=!1,itemToString:u,name:d,filterKey:h,width:p,customValues:f,onCustomValueAdd:m,itemComponent:v,emptyItemsText:g,getCustomMessage:y,onChange:b,useComboboxProps:w,isErrored:C,errorText:z,defaultSelectedItem:M,isMenuLoading:x})=>{
|
|
3626
3636
|
const S=vn(),[E,_]=t.useState(a),{isOpen:H,selectedItem:D,getToggleButtonProps:L,getLabelProps:V,getMenuProps:A,openMenu:k,highlightedIndex:T,setHighlightedIndex:P,setInputValue:I,inputValue:R,getItemProps:O,getInputProps:N}=Nf({
|
|
@@ -3781,7 +3791,7 @@ default:"512px",small:"424px",medium:"600px",large:"800px","x-large":"1200px"
|
|
|
3781
3791
|
`,Om=({isOpen:e,children:n,align:r="center",customClass:a="",fullWidth:o=!1,customModalContentStyles:i={},onDismiss:l,position:c="center",size:s})=>t.createElement(Tm,{
|
|
3782
3792
|
open:e,onOpenChange:e=>{e||l?.()}},t.createElement(Pm,null,t.createElement(Im,{
|
|
3783
3793
|
forceMount:!0,className:"DialogOverlay",onClick:()=>l?.()}),t.createElement(Rm,{
|
|
3784
|
-
forceMount:!0,className:`DialogContent ${a
|
|
3794
|
+
forceMount:!0,className:`DialogContent ${a}`.trim(),size:s??"default",
|
|
3785
3795
|
fullWidth:o,align:r,position:c,style:i},n))),Nm=En.div`
|
|
3786
3796
|
flex: 1;
|
|
3787
3797
|
gap: 8px;
|
|
@@ -3801,16 +3811,16 @@ fullWidth:o,align:r,position:c,style:i},n))),Nm=En.div`
|
|
|
3801
3811
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
3802
3812
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
3803
3813
|
}
|
|
3804
|
-
`;En.span``;const Fm="Avatar",[Bm,jm]=
|
|
3814
|
+
`;En.span``;const Fm="Avatar",[Bm,jm]=Sr(Fm),[Um,$m]=Bm(Fm),Ym=c(((e,t)=>{
|
|
3805
3815
|
const{__scopeAvatar:n,...r}=e,[a,o]=m("idle");return i(Um,{scope:n,
|
|
3806
3816
|
imageLoadingStatus:a,onImageLoadingStatusChange:o},i(On.span,Ln({},r,{ref:t})))
|
|
3807
3817
|
}));const Wm=c(((e,t)=>{
|
|
3808
3818
|
const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=(()=>{}),...o}=e,l=$m("AvatarImage",n),c=function(e){
|
|
3809
|
-
const[t,n]=m("idle");return
|
|
3819
|
+
const[t,n]=m("idle");return na((()=>{if(!e)return void n("error");let t=!0
|
|
3810
3820
|
;const r=new window.Image,a=e=>()=>{t&&n(e)}
|
|
3811
3821
|
;return n("loading"),r.onload=a("loaded"),r.onerror=a("error"),r.src=e,()=>{t=!1
|
|
3812
|
-
}}),[e]),t}(r),s=
|
|
3813
|
-
;return
|
|
3822
|
+
}}),[e]),t}(r),s=_r((e=>{a(e),l.onImageLoadingStatusChange(e)}))
|
|
3823
|
+
;return na((()=>{"idle"!==c&&s(c)}),[c,s]),"loaded"===c?i(On.img,Ln({},o,{ref:t,
|
|
3814
3824
|
src:r})):null})),Gm=c(((e,t)=>{
|
|
3815
3825
|
const{__scopeAvatar:n,delayMs:r,...a}=e,o=$m("AvatarFallback",n),[l,c]=m(void 0===r)
|
|
3816
3826
|
;return p((()=>{if(void 0!==r){const e=window.setTimeout((()=>c(!0)),r)
|
|
@@ -12498,7 +12508,7 @@ return t.createElement(_m,{items:n,
|
|
|
12498
12508
|
itemToString:(t,n)=>"list-item"===n?t?.name??"":"months"===e.name&&t?.name?vI?.[t?.name?.toString().toLowerCase()]:t?.name??"",
|
|
12499
12509
|
type:"button",disabled:!!e.disabled,
|
|
12500
12510
|
defaultSelectedItem:n.find((t=>t.id===e.value))??null,style:e.style,
|
|
12501
|
-
className:`${e.className
|
|
12511
|
+
className:`${e.className} bp-custom-dropdown bp-custom-dropdown-${e.name}`.trim(),
|
|
12502
12512
|
onChange:t=>{e?.onChange?.({target:{value:t?.id}})}})}
|
|
12503
12513
|
return t.createElement(_m,{itemToString:()=>"",type:"button"})},yI=e=>{
|
|
12504
12514
|
const{placeholder:n,name:r,isRequired:a,label:o,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD",...d}=e
|
|
@@ -12595,25 +12605,25 @@ showTick:!1,defaultSelectedItem:h?zI.find((e=>e.id===av(h).format("A"))):null,
|
|
|
12595
12605
|
width:"65px",itemIdentifier:"id",items:zI,onChange:e=>{
|
|
12596
12606
|
const t=av(new Date(h)).hour(av(h).hour()+("AM"===e?.id?-12:12))
|
|
12597
12607
|
;p(t.toISOString())}})),a&&o&&t.createElement(Oc,null,o))
|
|
12598
|
-
},xI="Popover",[SI,EI]=
|
|
12608
|
+
},xI="Popover",[SI,EI]=Sr(xI,[Ho]),_I=Ho(),[HI,DI]=SI(xI),LI=c(((e,t)=>{
|
|
12599
12609
|
const{__scopePopover:n,...r}=e,a=DI("PopoverTrigger",n),o=_I(n),l=An(t,a.triggerRef),c=i(On.button,Ln({
|
|
12600
12610
|
type:"button","aria-haspopup":"dialog","aria-expanded":a.open,
|
|
12601
12611
|
"aria-controls":a.contentId,"data-state":NI(a.open)},r,{ref:l,
|
|
12602
|
-
onClick:
|
|
12612
|
+
onClick:xr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:i(Uo,Ln({
|
|
12603
12613
|
asChild:!0},o),c)})),VI="PopoverPortal",[AI,kI]=SI(VI,{forceMount:void 0
|
|
12604
12614
|
}),TI="PopoverContent",PI=c(((e,t)=>{
|
|
12605
12615
|
const n=kI(TI,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,o=DI(TI,e.__scopePopover)
|
|
12606
|
-
;return i(
|
|
12616
|
+
;return i(Go,{present:r||o.open},o.modal?i(II,Ln({},a,{ref:t})):i(RI,Ln({},a,{
|
|
12607
12617
|
ref:t})))})),II=c(((e,t)=>{
|
|
12608
12618
|
const n=DI(TI,e.__scopePopover),a=r(null),o=An(t,a),l=r(!1);return p((()=>{
|
|
12609
|
-
const e=a.current;if(e)return
|
|
12619
|
+
const e=a.current;if(e)return yi(e)}),[]),i(Qi,{as:kn,allowPinchZoom:!0
|
|
12610
12620
|
},i(OI,Ln({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,
|
|
12611
|
-
onCloseAutoFocus:
|
|
12621
|
+
onCloseAutoFocus:xr(e.onCloseAutoFocus,(e=>{var t
|
|
12612
12622
|
;e.preventDefault(),l.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()
|
|
12613
|
-
})),onPointerDownOutside:
|
|
12623
|
+
})),onPointerDownOutside:xr(e.onPointerDownOutside,(e=>{
|
|
12614
12624
|
const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n
|
|
12615
12625
|
;l.current=r}),{checkForDefaultPrevented:!1}),
|
|
12616
|
-
onFocusOutside:
|
|
12626
|
+
onFocusOutside:xr(e.onFocusOutside,(e=>e.preventDefault()),{
|
|
12617
12627
|
checkForDefaultPrevented:!1})})))})),RI=c(((e,t)=>{
|
|
12618
12628
|
const n=DI(TI,e.__scopePopover),a=r(!1),o=r(!1);return i(OI,Ln({},e,{ref:t,
|
|
12619
12629
|
trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i
|
|
@@ -12627,10 +12637,10 @@ t.defaultPrevented||(a.current=!0,
|
|
|
12627
12637
|
"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))
|
|
12628
12638
|
})),OI=c(((e,t)=>{
|
|
12629
12639
|
const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:d,...h}=e,p=DI(TI,n),f=_I(n)
|
|
12630
|
-
;return
|
|
12631
|
-
onUnmountAutoFocus:o},i(
|
|
12640
|
+
;return $r(),i(qr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,
|
|
12641
|
+
onUnmountAutoFocus:o},i(Rr,{asChild:!0,disableOutsidePointerEvents:l,
|
|
12632
12642
|
onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:u,
|
|
12633
|
-
onDismiss:()=>p.onOpenChange(!1)},i(
|
|
12643
|
+
onDismiss:()=>p.onOpenChange(!1)},i($o,Ln({"data-state":NI(p.open),
|
|
12634
12644
|
role:"dialog",id:p.contentId},f,h,{ref:t,style:{...h.style,
|
|
12635
12645
|
"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)",
|
|
12636
12646
|
"--radix-popover-content-available-width":"var(--radix-popper-available-width)",
|
|
@@ -12638,17 +12648,17 @@ role:"dialog",id:p.contentId},f,h,{ref:t,style:{...h.style,
|
|
|
12638
12648
|
"--radix-popover-trigger-width":"var(--radix-popper-anchor-width)",
|
|
12639
12649
|
"--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}))
|
|
12640
12650
|
;function NI(e){return e?"open":"closed"}const FI=e=>{
|
|
12641
|
-
const{__scopePopover:t,children:n,open:a,defaultOpen:o,onOpenChange:c,modal:s=!1}=e,u=_I(t),d=r(null),[h,p]=m(!1),[f=!1,v]=
|
|
12642
|
-
prop:a,defaultProp:o,onChange:c});return i(
|
|
12651
|
+
const{__scopePopover:t,children:n,open:a,defaultOpen:o,onOpenChange:c,modal:s=!1}=e,u=_I(t),d=r(null),[h,p]=m(!1),[f=!1,v]=Hr({
|
|
12652
|
+
prop:a,defaultProp:o,onChange:c});return i(jo,u,i(HI,{scope:t,contentId:oa(),
|
|
12643
12653
|
triggerRef:d,open:f,onOpenChange:v,onOpenToggle:l((()=>v((e=>!e))),[v]),
|
|
12644
12654
|
hasCustomAnchor:h,onCustomAnchorAdd:l((()=>p(!0)),[]),
|
|
12645
12655
|
onCustomAnchorRemove:l((()=>p(!1)),[]),modal:s},n))},BI=LI,jI=e=>{
|
|
12646
12656
|
const{__scopePopover:t,forceMount:n,children:r,container:a}=e,o=DI(VI,t)
|
|
12647
|
-
;return i(AI,{scope:t,forceMount:n},i(
|
|
12657
|
+
;return i(AI,{scope:t,forceMount:n},i(Go,{present:n||o.open},i(Wo,{asChild:!0,
|
|
12648
12658
|
container:a},r)))},UI=c(((e,t)=>{
|
|
12649
12659
|
const{__scopePopover:n,...r}=e,a=DI("PopoverClose",n);return i(On.button,Ln({
|
|
12650
|
-
type:"button"},r,{ref:t,onClick:
|
|
12651
|
-
})),$I=c(((e,t)=>{const{__scopePopover:n,...r}=e,a=_I(n);return i(
|
|
12660
|
+
type:"button"},r,{ref:t,onClick:xr(e.onClick,(()=>a.onOpenChange(!1)))}))
|
|
12661
|
+
})),$I=c(((e,t)=>{const{__scopePopover:n,...r}=e,a=_I(n);return i(Yo,Ln({},a,r,{
|
|
12652
12662
|
ref:t}))})),YI=En(PI)`
|
|
12653
12663
|
background: white;
|
|
12654
12664
|
border-radius: 8px;
|
|
@@ -12727,7 +12737,7 @@ onInteractOutside:()=>u&&u(),side:g,align:o,sideOffset:8,avoidCollisions:l
|
|
|
12727
12737
|
display: flex;
|
|
12728
12738
|
align-items: center;
|
|
12729
12739
|
`,rR=({checked:e,className:n,disabled:r,id:a,isRequired:o,label:i,name:l,readOnly:c,...s})=>t.createElement(JI,{
|
|
12730
|
-
className:`RadioGroupRoot ${n
|
|
12740
|
+
className:`RadioGroupRoot ${n}`.trim(),id:a,name:l,"aria-label":i,
|
|
12731
12741
|
value:e?"default":"",required:o,disabled:r,"aria-readonly":c,...s
|
|
12732
12742
|
},t.createElement(nR,null,t.createElement(tR,{checked:e,"aria-checked":e,
|
|
12733
12743
|
className:"RadioGroupItem",disabled:r,"aria-readonly":c,value:"default",
|
|
@@ -15178,9 +15188,9 @@ fillRule:"evenodd",clipRule:"evenodd",
|
|
|
15178
15188
|
d:"M4.16 2H11.84C13.0329 2 14 2.96706 14 4.16V11.84C14 12.4129 13.7724 12.9623 13.3674 13.3674C12.9623 13.7724 12.4129 14 11.84 14H4.16C3.58713 14 3.03773 13.7724 2.63265 13.3674C2.22757 12.9623 2 12.4129 2 11.84V4.16C2 2.96706 2.96706 2 4.16 2ZM3.12 4.16V11.84C3.12 12.4144 3.58562 12.88 4.16 12.88H9.93599V3.12H4.16C3.88417 3.12 3.61964 3.22957 3.4246 3.42461C3.22957 3.61965 3.12 3.88417 3.12 4.16ZM11.84 12.88H11.04V3.12H11.84C12.1158 3.12 12.3804 3.22957 12.5754 3.42461C12.7704 3.61965 12.88 3.88417 12.88 4.16V11.84C12.88 12.4144 12.4144 12.88 11.84 12.88ZM5.74401 10.168C5.8945 10.168 6.03866 10.1075 6.14401 10L7.712 8.4C7.92739 8.17682 7.92739 7.82317 7.712 7.6L6.15201 6C5.93109 5.77908 5.57292 5.77908 5.35201 6C5.13109 6.22091 5.13109 6.57908 5.35201 6.8L6.52001 8L5.35201 9.2C5.13236 9.42144 5.13236 9.77856 5.35201 10C5.45436 10.107 5.59592 10.1677 5.74401 10.168Z",
|
|
15179
15189
|
fill:e.fill}))))`
|
|
15180
15190
|
transition: all 0.3s ease-in-out;
|
|
15181
|
-
`,$F=En(
|
|
15191
|
+
`,$F=En(nc)`
|
|
15182
15192
|
transform: rotate(270deg);
|
|
15183
|
-
`,YF=En(
|
|
15193
|
+
`,YF=En(nc)`
|
|
15184
15194
|
transform: rotate(90deg);
|
|
15185
15195
|
`,WF=En.div`
|
|
15186
15196
|
display: flex;
|
|
@@ -15402,7 +15412,7 @@ disabled:!e.getCanSelect(),indeterminate:e.getIsSomeSelected(),
|
|
|
15402
15412
|
onCheckedChange:t=>{e.toggleSelected(!0===t),k?.(e.original,!0===t)}})
|
|
15403
15413
|
}],...a.map((e=>q.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
15404
15414
|
cell:t=>e.accessorFn(t.row.original)}))),..._?[{id:"rowMenuOptions",
|
|
15405
|
-
header:()=>t.createElement("div",null),cell:({row:e})=>t.createElement(
|
|
15415
|
+
header:()=>t.createElement("div",null),cell:({row:e})=>t.createElement(tc,{
|
|
15406
15416
|
trigger:t.createElement(Ld,{fill:W.colors.text.primary}),
|
|
15407
15417
|
options:_(e.original)||[],onSelect:t=>{t.id&&T?.(t.id,e.original)},
|
|
15408
15418
|
side:"bottom",align:"end"})
|
|
@@ -15479,28 +15489,28 @@ onClick:()=>{ce?.(Math.ceil(r.length/fe)-1)},disabled:l||c
|
|
|
15479
15489
|
se()},disabled:!ae()||l||c},">"),t.createElement(zr,{variant:"secondary",
|
|
15480
15490
|
onClick:()=>{ue()},disabled:!ae()||l||c
|
|
15481
15491
|
},">>"))))))))),!v&&G&&p&&t.createElement(qF,null,p)))
|
|
15482
|
-
},zB="Tabs",[MB,xB]=
|
|
15483
|
-
const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:l="horizontal",dir:c,activationMode:s="automatic",...u}=e,d=
|
|
15484
|
-
prop:r,onChange:a,defaultProp:o});return i(EB,{scope:n,baseId:
|
|
15492
|
+
},zB="Tabs",[MB,xB]=Sr(zB,[ni]),SB=ni(),[EB,_B]=MB(zB),HB=c(((e,t)=>{
|
|
15493
|
+
const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:l="horizontal",dir:c,activationMode:s="automatic",...u}=e,d=Vr(c),[h,p]=Hr({
|
|
15494
|
+
prop:r,onChange:a,defaultProp:o});return i(EB,{scope:n,baseId:oa(),value:h,
|
|
15485
15495
|
onValueChange:p,orientation:l,dir:d,activationMode:s},i(On.div,Ln({dir:d,
|
|
15486
15496
|
"data-orientation":l},u,{ref:t})))}));function DB(e,t){return`${e}-trigger-${t}`
|
|
15487
15497
|
}function LB(e,t){return`${e}-content-${t}`}const VB=c(((e,t)=>{
|
|
15488
15498
|
const{__scopeTabs:n,loop:r=!0,...a}=e,o=_B("TabsList",n),l=SB(n)
|
|
15489
|
-
;return i(
|
|
15499
|
+
;return i(ui,Ln({asChild:!0},l,{orientation:o.orientation,dir:o.dir,loop:r
|
|
15490
15500
|
}),i(On.div,Ln({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))
|
|
15491
15501
|
})),AB=c(((e,t)=>{
|
|
15492
15502
|
const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,l=_B("TabsTrigger",n),c=SB(n),s=DB(l.baseId,r),u=LB(l.baseId,r),d=r===l.value
|
|
15493
|
-
;return i(
|
|
15503
|
+
;return i(di,Ln({asChild:!0},c,{focusable:!a,active:d}),i(On.button,Ln({
|
|
15494
15504
|
type:"button",role:"tab","aria-selected":d,"aria-controls":u,
|
|
15495
15505
|
"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:s
|
|
15496
|
-
},o,{ref:t,onMouseDown:
|
|
15506
|
+
},o,{ref:t,onMouseDown:xr(e.onMouseDown,(e=>{
|
|
15497
15507
|
a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(r)})),
|
|
15498
|
-
onKeyDown:
|
|
15499
|
-
})),onFocus:
|
|
15508
|
+
onKeyDown:xr(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(r)
|
|
15509
|
+
})),onFocus:xr(e.onFocus,(()=>{const e="manual"!==l.activationMode
|
|
15500
15510
|
;d||a||!e||l.onValueChange(r)}))})))})),kB=c(((e,t)=>{
|
|
15501
15511
|
const{__scopeTabs:n,value:a,forceMount:o,children:l,...c}=e,s=_B("TabsContent",n),u=DB(s.baseId,a),d=LB(s.baseId,a),h=a===s.value,f=r(h)
|
|
15502
15512
|
;return p((()=>{const e=requestAnimationFrame((()=>f.current=!1))
|
|
15503
|
-
;return()=>cancelAnimationFrame(e)}),[]),i(
|
|
15513
|
+
;return()=>cancelAnimationFrame(e)}),[]),i(Go,{present:o||h
|
|
15504
15514
|
},(({present:n})=>i(On.div,Ln({"data-state":h?"active":"inactive",
|
|
15505
15515
|
"data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,
|
|
15506
15516
|
id:d,tabIndex:0},c,{ref:t,style:{...e.style,
|
|
@@ -15534,7 +15544,7 @@ className:"TabsRoot",value:l,defaultValue:o,onValueChange:a
|
|
|
15534
15544
|
},e?.[r])))),e.map((e=>t.createElement(PB,{className:"TabsContent",value:e?.[n]
|
|
15535
15545
|
},i?i(e):null)))),NB=t.createContext({toasts:[],windowState:"focus",
|
|
15536
15546
|
addToast:()=>{},updateToasts:()=>{}
|
|
15537
|
-
}),FB="ToastProvider",[BB,jB,UB]=
|
|
15547
|
+
}),FB="ToastProvider",[BB,jB,UB]=Dr("Toast"),[$B,YB]=Sr("Toast",[UB]),[WB,GB]=$B(FB),KB=e=>{
|
|
15538
15548
|
const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:o="right",swipeThreshold:c=50,children:s}=e,[u,d]=m(null),[h,p]=m(0),f=r(!1),v=r(!1)
|
|
15539
15549
|
;return i(BB.Provider,{scope:t},i(WB,{scope:t,label:n,duration:a,
|
|
15540
15550
|
swipeDirection:o,swipeThreshold:c,toastCount:h,viewport:u,onViewportChange:d,
|
|
@@ -15574,7 +15584,7 @@ const e=m.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
|
15574
15584
|
}),c=l.findIndex((e=>e===n));var a,o
|
|
15575
15585
|
;if(fj(l.slice(c+1)))t.preventDefault();else i?null===(a=h.current)||void 0===a||a.focus():null===(o=f.current)||void 0===o||o.focus()
|
|
15576
15586
|
}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)
|
|
15577
|
-
}}),[u,b]),i(
|
|
15587
|
+
}}),[u,b]),i(jr,{ref:d,role:"region","aria-label":o.replace("{hotkey}",g),
|
|
15578
15588
|
tabIndex:-1,style:{pointerEvents:y?void 0:"none"}},y&&i(JB,{ref:h,
|
|
15579
15589
|
onFocusFromOutsideViewport:()=>{fj(b({tabbingDirection:"forwards"}))}
|
|
15580
15590
|
}),i(BB.Slot,{scope:n},i(On.ol,Ln({tabIndex:-1},c,{ref:v}))),y&&i(JB,{ref:f,
|
|
@@ -15585,29 +15595,29 @@ const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,o=GB("ToastFocusProxy"
|
|
|
15585
15595
|
onFocus:e=>{var t;const n=e.relatedTarget
|
|
15586
15596
|
;!(null!==(t=o.viewport)&&void 0!==t&&t.contains(n))&&r()}}))
|
|
15587
15597
|
})),ej="Toast",tj=c(((e,t)=>{
|
|
15588
|
-
const{forceMount:n,open:r,defaultOpen:a,onOpenChange:o,...l}=e,[c=!0,s]=
|
|
15589
|
-
prop:r,defaultProp:a,onChange:o});return i(
|
|
15590
|
-
},l,{ref:t,onClose:()=>s(!1),onPause:
|
|
15591
|
-
onSwipeStart:
|
|
15598
|
+
const{forceMount:n,open:r,defaultOpen:a,onOpenChange:o,...l}=e,[c=!0,s]=Hr({
|
|
15599
|
+
prop:r,defaultProp:a,onChange:o});return i(Go,{present:n||c},i(aj,Ln({open:c
|
|
15600
|
+
},l,{ref:t,onClose:()=>s(!1),onPause:_r(e.onPause),onResume:_r(e.onResume),
|
|
15601
|
+
onSwipeStart:xr(e.onSwipeStart,(e=>{
|
|
15592
15602
|
e.currentTarget.setAttribute("data-swipe","start")})),
|
|
15593
|
-
onSwipeMove:
|
|
15603
|
+
onSwipeMove:xr(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta
|
|
15594
15604
|
;e.currentTarget.setAttribute("data-swipe","move"),
|
|
15595
15605
|
e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),
|
|
15596
15606
|
e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),
|
|
15597
|
-
onSwipeCancel:
|
|
15607
|
+
onSwipeCancel:xr(e.onSwipeCancel,(e=>{
|
|
15598
15608
|
e.currentTarget.setAttribute("data-swipe","cancel"),
|
|
15599
15609
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
|
|
15600
15610
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
|
|
15601
15611
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),
|
|
15602
15612
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),
|
|
15603
|
-
onSwipeEnd:
|
|
15613
|
+
onSwipeEnd:xr(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta
|
|
15604
15614
|
;e.currentTarget.setAttribute("data-swipe","end"),
|
|
15605
15615
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
|
|
15606
15616
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
|
|
15607
15617
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),
|
|
15608
15618
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),s(!1)}))
|
|
15609
15619
|
})))})),[nj,rj]=$B(ej,{onClose(){}}),aj=c(((e,t)=>{
|
|
15610
|
-
const{__scopeToast:n,type:o="foreground",duration:c,open:s,onClose:u,onEscapeKeyDown:d,onPause:f,onResume:v,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...C}=e,z=GB(ej,n),[x,S]=m(null),E=An(t,(e=>S(e))),_=r(null),H=r(null),D=c||z.duration,L=r(0),V=r(D),A=r(0),{onToastAdd:k,onToastRemove:T}=z,P=
|
|
15620
|
+
const{__scopeToast:n,type:o="foreground",duration:c,open:s,onClose:u,onEscapeKeyDown:d,onPause:f,onResume:v,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...C}=e,z=GB(ej,n),[x,S]=m(null),E=An(t,(e=>S(e))),_=r(null),H=r(null),D=c||z.duration,L=r(0),V=r(D),A=r(0),{onToastAdd:k,onToastRemove:T}=z,P=_r((()=>{
|
|
15611
15621
|
var e
|
|
15612
15622
|
;(null==x?void 0:x.contains(document.activeElement))&&(null===(e=z.viewport)||void 0===e||e.focus()),
|
|
15613
15623
|
u()})),I=l((e=>{
|
|
@@ -15622,24 +15632,24 @@ e.removeEventListener(ZB,n),e.removeEventListener(XB,t)}}
|
|
|
15622
15632
|
}),[s,D,z.isClosePausedRef,I]),p((()=>(k(),()=>T())),[k,T])
|
|
15623
15633
|
;const R=a((()=>x?uj(x):null),[x]);return z.viewport?i(h,null,R&&i(oj,{
|
|
15624
15634
|
__scopeToast:n,role:"status","aria-live":"foreground"===o?"assertive":"polite",
|
|
15625
|
-
"aria-atomic":!0},R),i(nj,{scope:n,onClose:P},M(i(BB.ItemSlot,{scope:n},i(
|
|
15626
|
-
asChild:!0,onEscapeKeyDown:
|
|
15635
|
+
"aria-atomic":!0},R),i(nj,{scope:n,onClose:P},M(i(BB.ItemSlot,{scope:n},i(Br,{
|
|
15636
|
+
asChild:!0,onEscapeKeyDown:xr(d,(()=>{
|
|
15627
15637
|
z.isFocusedToastEscapeKeyDownRef.current||P(),
|
|
15628
15638
|
z.isFocusedToastEscapeKeyDownRef.current=!1}))},i(On.li,Ln({role:"status",
|
|
15629
15639
|
"aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed",
|
|
15630
15640
|
"data-swipe-direction":z.swipeDirection},C,{ref:E,style:{userSelect:"none",
|
|
15631
|
-
touchAction:"none",...e.style},onKeyDown:
|
|
15641
|
+
touchAction:"none",...e.style},onKeyDown:xr(e.onKeyDown,(e=>{
|
|
15632
15642
|
"Escape"===e.key&&(null==d||d(e.nativeEvent),
|
|
15633
15643
|
e.nativeEvent.defaultPrevented||(z.isFocusedToastEscapeKeyDownRef.current=!0,
|
|
15634
|
-
P()))})),onPointerDown:
|
|
15635
|
-
x:e.clientX,y:e.clientY})})),onPointerMove:
|
|
15644
|
+
P()))})),onPointerDown:xr(e.onPointerDown,(e=>{0===e.button&&(_.current={
|
|
15645
|
+
x:e.clientX,y:e.clientY})})),onPointerMove:xr(e.onPointerMove,(e=>{
|
|
15636
15646
|
if(!_.current)return
|
|
15637
15647
|
;const t=e.clientX-_.current.x,n=e.clientY-_.current.y,r=Boolean(H.current),a=["left","right"].includes(z.swipeDirection),o=["left","up"].includes(z.swipeDirection)?Math.min:Math.max,i=a?o(0,t):0,l=a?0:o(0,n),c="touch"===e.pointerType?10:2,s={
|
|
15638
15648
|
x:i,y:l},u={originalEvent:e,delta:s};r?(H.current=s,dj("toast.swipeMove",y,u,{
|
|
15639
15649
|
discrete:!1})):hj(s,z.swipeDirection,c)?(H.current=s,dj("toast.swipeStart",g,u,{
|
|
15640
15650
|
discrete:!1
|
|
15641
15651
|
}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(_.current=null)
|
|
15642
|
-
})),onPointerUp:
|
|
15652
|
+
})),onPointerUp:xr(e.onPointerUp,(e=>{const t=H.current,n=e.target
|
|
15643
15653
|
;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),
|
|
15644
15654
|
H.current=null,_.current=null,t){const n=e.currentTarget,r={originalEvent:e,
|
|
15645
15655
|
delta:t};hj(t,z.swipeDirection,z.swipeThreshold)?dj("toast.swipeEnd",w,r,{
|
|
@@ -15650,11 +15660,11 @@ if(e.type&&!["foreground","background"].includes(e.type)){
|
|
|
15650
15660
|
return new Error(`Invalid prop \`type\` supplied to \`${ej}\`. Expected \`foreground | background\`.`)
|
|
15651
15661
|
}return null}};const oj=e=>{
|
|
15652
15662
|
const{__scopeToast:t,children:n,...r}=e,a=GB(ej,t),[o,l]=m(!1),[c,s]=m(!1)
|
|
15653
|
-
;return function(e=(()=>{})){const t=
|
|
15663
|
+
;return function(e=(()=>{})){const t=_r(e);na((()=>{let e=0,n=0
|
|
15654
15664
|
;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),
|
|
15655
15665
|
()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
|
|
15656
15666
|
}((()=>l(!0))),p((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
|
|
15657
|
-
;return()=>window.clearTimeout(e)}),[]),c?null:i(
|
|
15667
|
+
;return()=>window.clearTimeout(e)}),[]),c?null:i(Wo,{asChild:!0
|
|
15658
15668
|
},i(wu,r,o&&i(h,null,a.label," ",n)))},ij=c(((e,t)=>{
|
|
15659
15669
|
const{__scopeToast:n,...r}=e;return i(On.div,Ln({},r,{ref:t}))})),lj=c(((e,t)=>{
|
|
15660
15670
|
const{altText:n,...r}=e;return n?i(sj,{altText:n,asChild:!0},i(cj,Ln({},r,{ref:t
|
|
@@ -15662,7 +15672,7 @@ const{altText:n,...r}=e;return n?i(sj,{altText:n,asChild:!0},i(cj,Ln({},r,{ref:t
|
|
|
15662
15672
|
altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")
|
|
15663
15673
|
};const cj=c(((e,t)=>{const{__scopeToast:n,...r}=e,a=rj("ToastClose",n)
|
|
15664
15674
|
;return i(sj,{asChild:!0},i(On.button,Ln({type:"button"},r,{ref:t,
|
|
15665
|
-
onClick:
|
|
15675
|
+
onClick:xr(e.onClick,a.onClose)})))})),sj=c(((e,t)=>{
|
|
15666
15676
|
const{__scopeToast:n,altText:r,...a}=e;return i(On.div,Ln({
|
|
15667
15677
|
"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0
|
|
15668
15678
|
},a,{ref:t}))}));function uj(e){const t=[]
|
|
@@ -15824,7 +15834,7 @@ d:"M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183
|
|
|
15824
15834
|
fill:n.colors.text.semantic.error}))},kj=({index:e,...n})=>{
|
|
15825
15835
|
const r=vn(),{updateToasts:a,windowState:o}=t.useContext(NB)??{},i=t.useRef(null)
|
|
15826
15836
|
;return t.createElement(t.Fragment,null,t.createElement(zj,{ref:i,
|
|
15827
|
-
toastType:n.type,toastIndex:e,className:`ToastRoot Toast-${n.id
|
|
15837
|
+
toastType:n.type,toastIndex:e,className:`ToastRoot Toast-${n.id}`.trim(),
|
|
15828
15838
|
duration:n.delay??3e3,onOpenChange:e=>{e||a((e=>e.filter((e=>e.id!==n.id))))}
|
|
15829
15839
|
},t.createElement(_j,{className:"ToastProgress",windowState:o,toastType:n.type,
|
|
15830
15840
|
delay:n.delay??3e3
|
|
@@ -15853,17 +15863,17 @@ window.removeEventListener("blur",(()=>{}))})),[]),t.createElement(NB.Provider,{
|
|
|
15853
15863
|
value:c},t.createElement(Tj,null),e.children)},Ij=()=>{
|
|
15854
15864
|
const{toasts:e,addToast:n}=t.useContext(NB)??{};return[e,n]
|
|
15855
15865
|
},Rj=e=>t.createElement(gn,{theme:e.theme
|
|
15856
|
-
},t.createElement(Pj,null,e.children)),Oj="Switch",[Nj,Fj]=
|
|
15857
|
-
const{__scopeSwitch:n,name:a,checked:o,defaultChecked:l,required:c,disabled:s,value:u="on",onCheckedChange:d,...h}=e,[p,f]=m(null),v=An(t,(e=>f(e))),g=r(!1),y=!p||Boolean(p.closest("form")),[b=!1,w]=
|
|
15866
|
+
},t.createElement(Pj,null,e.children)),Oj="Switch",[Nj,Fj]=Sr(Oj),[Bj,jj]=Nj(Oj),Uj=c(((e,t)=>{
|
|
15867
|
+
const{__scopeSwitch:n,name:a,checked:o,defaultChecked:l,required:c,disabled:s,value:u="on",onCheckedChange:d,...h}=e,[p,f]=m(null),v=An(t,(e=>f(e))),g=r(!1),y=!p||Boolean(p.closest("form")),[b=!1,w]=Hr({
|
|
15858
15868
|
prop:o,defaultProp:l,onChange:d});return i(Bj,{scope:n,checked:b,disabled:s
|
|
15859
15869
|
},i(On.button,Ln({type:"button",role:"switch","aria-checked":b,
|
|
15860
15870
|
"aria-required":c,"data-state":Yj(b),"data-disabled":s?"":void 0,disabled:s,
|
|
15861
|
-
value:u},h,{ref:v,onClick:
|
|
15871
|
+
value:u},h,{ref:v,onClick:xr(e.onClick,(e=>{
|
|
15862
15872
|
w((e=>!e)),y&&(g.current=e.isPropagationStopped(),
|
|
15863
15873
|
g.current||e.stopPropagation())}))})),y&&i($j,{control:p,bubbles:!g.current,
|
|
15864
15874
|
name:a,value:u,checked:b,required:c,disabled:s,style:{
|
|
15865
15875
|
transform:"translateX(-100%)"}}))})),$j=e=>{
|
|
15866
|
-
const{control:t,checked:n,bubbles:a=!0,...o}=e,l=r(null),c=ic(n),s=
|
|
15876
|
+
const{control:t,checked:n,bubbles:a=!0,...o}=e,l=r(null),c=ic(n),s=So(t)
|
|
15867
15877
|
;return p((()=>{
|
|
15868
15878
|
const e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
15869
15879
|
;if(c!==n&&r){const t=new Event("click",{bubbles:a})
|
|
@@ -15950,21 +15960,21 @@ required:o,"aria-required":o,size:i,...c},t.createElement(qj,{...l,size:i
|
|
|
15950
15960
|
},n&&t.createElement(Jc,{fill:s.colors.common.accent,className:"toggle-on",
|
|
15951
15961
|
...Zj[i]}),n&&t.createElement(mr,{fill:s.colors.text.primary,
|
|
15952
15962
|
className:"toggle-off",...Xj[i]})))
|
|
15953
|
-
},[Jj,eU]=
|
|
15963
|
+
},[Jj,eU]=Sr("Tooltip",[Ho]),tU=Ho(),nU=700,rU="tooltip.open",[aU,oU]=Jj("TooltipProvider"),iU="Tooltip",[lU,cU]=Jj(iU),sU="TooltipTrigger",uU=c(((e,t)=>{
|
|
15954
15964
|
const{__scopeTooltip:n,...a}=e,o=cU(sU,n),c=oU(sU,n),s=tU(n),u=An(t,r(null),o.onTriggerChange),d=r(!1),h=r(!1),f=l((()=>d.current=!1),[])
|
|
15955
|
-
;return p((()=>()=>document.removeEventListener("pointerup",f)),[f]),i(
|
|
15965
|
+
;return p((()=>()=>document.removeEventListener("pointerup",f)),[f]),i(Uo,Ln({
|
|
15956
15966
|
asChild:!0},s),i(On.button,Ln({"aria-describedby":o.open?o.contentId:void 0,
|
|
15957
|
-
"data-state":o.stateAttribute},a,{ref:u,onPointerMove:
|
|
15967
|
+
"data-state":o.stateAttribute},a,{ref:u,onPointerMove:xr(e.onPointerMove,(e=>{
|
|
15958
15968
|
"touch"!==e.pointerType&&(h.current||c.isPointerInTransitRef.current||(o.onTriggerEnter(),
|
|
15959
|
-
h.current=!0))})),onPointerLeave:
|
|
15960
|
-
o.onTriggerLeave(),h.current=!1})),onPointerDown:
|
|
15969
|
+
h.current=!0))})),onPointerLeave:xr(e.onPointerLeave,(()=>{
|
|
15970
|
+
o.onTriggerLeave(),h.current=!1})),onPointerDown:xr(e.onPointerDown,(()=>{
|
|
15961
15971
|
d.current=!0,document.addEventListener("pointerup",f,{once:!0})})),
|
|
15962
|
-
onFocus:
|
|
15963
|
-
onBlur:
|
|
15972
|
+
onFocus:xr(e.onFocus,(()=>{d.current||o.onOpen()})),
|
|
15973
|
+
onBlur:xr(e.onBlur,o.onClose),onClick:xr(e.onClick,o.onClose)})))
|
|
15964
15974
|
})),dU="TooltipPortal",[hU,pU]=Jj(dU,{forceMount:void 0
|
|
15965
15975
|
}),fU="TooltipContent",mU=c(((e,t)=>{
|
|
15966
15976
|
const n=pU(fU,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,l=cU(fU,e.__scopeTooltip)
|
|
15967
|
-
;return i(
|
|
15977
|
+
;return i(Go,{present:r||l.open},l.disableHoverableContent?i(bU,Ln({side:a},o,{
|
|
15968
15978
|
ref:t})):i(vU,Ln({side:a},o,{ref:t})))})),vU=c(((e,t)=>{
|
|
15969
15979
|
const n=cU(fU,e.__scopeTooltip),a=oU(fU,e.__scopeTooltip),o=r(null),c=An(t,o),[s,u]=m(null),{trigger:d,onClose:h}=n,f=o.current,{onPointerInTransitChange:v}=a,g=l((()=>{
|
|
15970
15980
|
u(null),v(!1)}),[v]),y=l(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,
|
|
@@ -16009,9 +16019,9 @@ const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDown
|
|
|
16009
16019
|
const t=e.target;null!=t&&t.contains(s.trigger)&&d()}
|
|
16010
16020
|
;return window.addEventListener("scroll",e,{capture:!0
|
|
16011
16021
|
}),()=>window.removeEventListener("scroll",e,{capture:!0})}
|
|
16012
|
-
}),[s.trigger,d]),i(
|
|
16022
|
+
}),[s.trigger,d]),i(Rr,{asChild:!0,disableOutsidePointerEvents:!1,
|
|
16013
16023
|
onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),
|
|
16014
|
-
onDismiss:d},i(
|
|
16024
|
+
onDismiss:d},i($o,Ln({"data-state":s.stateAttribute},u,c,{ref:t,style:{
|
|
16015
16025
|
...c.style,
|
|
16016
16026
|
"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)",
|
|
16017
16027
|
"--radix-tooltip-content-available-width":"var(--radix-popper-available-width)",
|
|
@@ -16027,7 +16037,7 @@ window.clearTimeout(h.current),u(!1)}),[]),onClose:l((()=>{
|
|
|
16027
16037
|
window.clearTimeout(h.current),h.current=window.setTimeout((()=>u(!0)),a)
|
|
16028
16038
|
}),[a]),isPointerInTransitRef:d,onPointerInTransitChange:l((e=>{d.current=e
|
|
16029
16039
|
}),[]),disableHoverableContent:o},c)},CU=e=>{
|
|
16030
|
-
const{__scopeTooltip:t,children:n,open:o,defaultOpen:c=!1,onOpenChange:s,disableHoverableContent:u,delayDuration:d}=e,h=oU(iU,e.__scopeTooltip),f=tU(t),[v,g]=m(null),y=
|
|
16040
|
+
const{__scopeTooltip:t,children:n,open:o,defaultOpen:c=!1,onOpenChange:s,disableHoverableContent:u,delayDuration:d}=e,h=oU(iU,e.__scopeTooltip),f=tU(t),[v,g]=m(null),y=oa(),b=r(0),w=null!=u?u:h.disableHoverableContent,C=null!=d?d:h.delayDuration,z=r(!1),[M=!1,x]=Hr({
|
|
16031
16041
|
prop:o,defaultProp:c,onChange:e=>{
|
|
16032
16042
|
e?(h.onOpen(),document.dispatchEvent(new CustomEvent(rU))):h.onClose(),
|
|
16033
16043
|
null==s||s(e)}
|
|
@@ -16036,15 +16046,15 @@ window.clearTimeout(b.current),z.current=!1,x(!0)}),[x]),_=l((()=>{
|
|
|
16036
16046
|
window.clearTimeout(b.current),x(!1)}),[x]),H=l((()=>{
|
|
16037
16047
|
window.clearTimeout(b.current),b.current=window.setTimeout((()=>{
|
|
16038
16048
|
z.current=!0,x(!0)}),C)}),[C,x])
|
|
16039
|
-
;return p((()=>()=>window.clearTimeout(b.current)),[]),i(
|
|
16049
|
+
;return p((()=>()=>window.clearTimeout(b.current)),[]),i(jo,f,i(lU,{scope:t,
|
|
16040
16050
|
contentId:y,open:M,stateAttribute:S,trigger:v,onTriggerChange:g,
|
|
16041
16051
|
onTriggerEnter:l((()=>{h.isOpenDelayed?H():E()}),[h.isOpenDelayed,H,E]),
|
|
16042
16052
|
onTriggerLeave:l((()=>{w?_():window.clearTimeout(b.current)}),[_,w]),onOpen:E,
|
|
16043
16053
|
onClose:_,disableHoverableContent:w},n))},zU=uU,MU=e=>{
|
|
16044
16054
|
const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,o=cU(dU,t)
|
|
16045
|
-
;return i(hU,{scope:t,forceMount:n},i(
|
|
16055
|
+
;return i(hU,{scope:t,forceMount:n},i(Go,{present:n||o.open},i(Wo,{asChild:!0,
|
|
16046
16056
|
container:a},r)))},xU=mU,SU=En(c(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=tU(n)
|
|
16047
|
-
;return yU("TooltipArrow",n).isInside?null:i(
|
|
16057
|
+
;return yU("TooltipArrow",n).isInside?null:i(Yo,Ln({},a,r,{ref:t}))})))`
|
|
16048
16058
|
fill: ${({theme:e})=>e.colors.fill.inverse};
|
|
16049
16059
|
`,EU=En(xU)`
|
|
16050
16060
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
@@ -16219,4 +16229,4 @@ return n=vM(e),t!==yM.STANDARD?[3,2]:[4,Promise.resolve().then((function(){
|
|
|
16219
16229
|
return wM}))];case 1:return r=a.sent(),[3,4];case 2:
|
|
16220
16230
|
return[4,Promise.resolve().then((function(){return zM}))];case 3:
|
|
16221
16231
|
r=a.sent(),a.label=4;case 4:return[2,r[n]]}}))}))}})
|
|
16222
|
-
;export{br as Alert,Nc as BoxedRadio,zr as Button,oc as ButtonDropdown,Wn as CardActions,Yn as CardContent,Kn as CardDescription,qn as CardText,Gn as CardTitle,ts as Checkbox,
|
|
16232
|
+
;export{br as Alert,Nc as BoxedRadio,zr as Button,oc as ButtonDropdown,Wn as CardActions,Yn as CardContent,Kn as CardDescription,qn as CardText,Gn as CardTitle,ts as Checkbox,nc as ChevronUp,lu as Confirmation,mr as CrossIcon,yI as DatePicker,wI as DateRangePicker,bI as DateTimePicker,CI as DateTimeRangePicker,yu as Drawer,_m as Dropdown,Pd as DropdownInputItem,Lm as DropdownItem,ec as DropdownMenuItem,TU as Fade,$n as FreshLink,Un as IconButton,bm as Input,Bn as InputLabel,Em as Loader,tc as Menu,es as Minus,Om as Modal,Ld as MoreVertical,ev as MultiSelectDropdown,XI as Popover,ZI as PopoverClose,rR as Radio,aR as RadioGroup,Gl as RadixMenuItem,Sd as RadixSelectItem,WN as Reorder,jn as RequiredIndicator,RU as Slide,OU as SlideFade,Fn as StyledLabel,CB as Table,OB as Tabs,PB as TabsContent,IB as TabsList,TB as TabsRoot,RB as TabsTrigger,Jm as Tag,wm as TextArea,Rj as ThemeProvider,YU as Themes,Jc as TickIcon,MI as TimePicker,Pj as ToastProvider,Qj as Toggle,VU as Tooltip,AU as Transition,Zn as TriggerButtonWrapper,yr as Typography,vr as Warning,Qn as basicHide,er as basicShow,nr as contentHide,ar as contentShow,ur as slideDownAndFade,hr as slideLeftAndFade,cr as slideRightAndFade,ir as slideUpAndFade,Ij as useToasts};
|