@maxhub/max-ui 0.9.0 → 0.9.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AAG/F,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAIhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,eAAe,CAAC,EAAE,mBAAmB,CAAC,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAA;IAChF,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AAG/F,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAIhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,eAAe,CAAC,EAAE,mBAAmB,CAAC,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAA;IAChF,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAKD,eAAO,MAAM,WAAW,GAAI,4EAEzB,gBAAgB,uCA6IlB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import{forwardRef as o,createContext as a,useContext as i,Children as l,cloneElement as c,isValidElement as s,useRef as u,useEffect as d,useMemo as _,useState as p,useLayoutEffect as f,useCallback as m,Fragment as h,useId as v}from"react";import*as g from"react-dom";import{createPortal as y}from"react-dom";function b(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=b(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function C(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=b(e))&&(r&&(r+=" "),r+=t);return r}var x;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(null,arguments)}var S,T=function(e){return r.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),x||(x=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.28 3.72a.75.75 0 0 1 0 1.06l-6.5 6.5a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 1.06-1.06l2.47 2.47 5.97-5.97a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})))};function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}var I,E=function(e){return r.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:12,height:16,fill:"none"},e),S||(S=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.934 3.434a.8.8 0 0 1 1.132 0l4 4a.8.8 0 0 1 0 1.132l-4 4a.8.8 0 0 1-1.132-1.132L6.37 8 2.934 4.566a.8.8 0 0 1 0-1.132",clipRule:"evenodd"})))};function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(null,arguments)}var k,A,M,B=function(e){return r.createElement("svg",R({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),I||(I=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16M5.566 4.434a.8.8 0 1 0-1.132 1.132L6.87 8l-2.435 2.434a.8.8 0 0 0 1.132 1.132L8 9.13l2.434 2.435a.8.8 0 0 0 1.132-1.132L9.13 8l2.435-2.434a.8.8 0 0 0-1.132-1.132L8 6.87z",clipRule:"evenodd"})))};function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(null,arguments)}var P,O=function(e){return r.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none","aria-hidden":"true"},e),k||(k=r.createElement("circle",{cx:8,cy:8,r:7,stroke:"currentColor",strokeWidth:1.5})),A||(A=r.createElement("circle",{cx:8,cy:4.75,r:1,fill:"currentColor"})),M||(M=r.createElement("rect",{width:1.5,height:5,x:7.25,y:6.75,fill:"currentColor",rx:.75})))};function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(null,arguments)}var F,z=function(e){return r.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),P||(P=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.242 2.115c-2.605 0-4.677 2.044-4.677 4.517s2.072 4.517 4.677 4.517 4.677-2.044 4.677-4.517-2.072-4.517-4.677-4.517M1 6.632C1 3.252 3.817.55 7.242.55s6.242 2.701 6.242 6.082a5.97 5.97 0 0 1-1.692 4.165l3 3.247a.783.783 0 1 1-1.15 1.062l-3.074-3.326a6.34 6.34 0 0 1-3.326.935C3.817 12.715 1 10.013 1 6.632",clipRule:"evenodd"})))};function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(null,arguments)}var U,H,j=function(e){return r.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),F||(F=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.364 4.364a.9.9 0 0 1 1.272 0L10 8.727l4.364-4.363a.9.9 0 0 1 1.272 1.272L11.273 10l4.363 4.364a.9.9 0 0 1-1.272 1.272L10 11.273l-4.364 4.363a.9.9 0 0 1-1.272-1.272L8.727 10 4.364 5.636a.9.9 0 0 1 0-1.272",clipRule:"evenodd"})))};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}var V,K=function(e){return r.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),U||(U=r.createElement("circle",{cx:10,cy:10,r:10,fill:"currentColor"})),H||(H=r.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.364 5.364a.9.9 0 0 1 1.272 0L10 8.727l3.364-3.363a.9.9 0 0 1 1.272 1.272L11.274 10l3.364 3.364a.9.9 0 1 1-1.273 1.272L10 11.273l-3.364 3.363a.9.9 0 0 1-1.272-1.272L8.727 10 5.364 6.636a.9.9 0 0 1 0-1.272",clipRule:"evenodd"})))};function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}var q=function(e){return r.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),V||(V=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.268 6.268a.915.915 0 0 1 1.294 0L12 10.706l4.438-4.438a.915.915 0 1 1 1.294 1.294L13.294 12l4.438 4.438a.915.915 0 1 1-1.294 1.294L12 13.294l-4.438 4.438a.915.915 0 1 1-1.294-1.294L10.706 12 6.268 7.562a.915.915 0 0 1 0-1.294",clipRule:"evenodd"})))},X=Object.defineProperty,G=(e,t)=>X(e,"name",{value:t,configurable:!0});function Z(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function J(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Z(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Z(e[t],null)}}}}function Q(...e){return r.useCallback(J(...e),e)}G(Z,"setRef"),G(J,"composeRefs"),G(Q,"useComposedRefs");var ee=Object.defineProperty,te=(e,t)=>ee(e,"name",{value:t,configurable:!0});function ne(e){const t=r.forwardRef((t,n)=>{let{children:o,...a}=t,i=null,l=!1;const c=[];_e(o)&&"function"==typeof he&&(o=he(o._payload)),r.Children.forEach(o,e=>{if(ue(e)){l=!0;const t=e;let n="child"in t.props?t.props.child:t.props.children;_e(n)&&"function"==typeof he&&(n=he(n._payload)),i=le(t,n),c.push(i?.props?.children)}else c.push(e)}),i?i=r.cloneElement(i,void 0,c):!l&&1===r.Children.count(o)&&r.isValidElement(o)&&(i=o);const s=i?se(i):void 0,u=Q(n,s);if(!i){if(o||0===o)throw new Error(l?me(e):fe(e));return o}const d=ce(a,i.props??{});return i.type!==r.Fragment&&(d.ref=n?u:s),r.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}te(ne,"createSlot");var re=ne("Slot"),oe=Symbol.for("radix.slottable");function ae(e){const t=te(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=oe,t}te(ae,"createSlottable");var ie=ae("Slottable"),le=te((e,t)=>{if("child"in e.props){const t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ce(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function se(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ue(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===oe}te(ce,"mergeProps"),te(se,"getElementRef"),te(ue,"isSlottable");var de=Symbol.for("react.lazy");function _e(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===de&&"_payload"in e&&pe(e._payload)}function pe(e){return"object"==typeof e&&null!==e&&"then"in e}te(_e,"isLazyComponent"),te(pe,"isPromiseLike");var fe=te(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),me=te(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),he=r[" use ".trim().toString()],ve="SvgButton__-Jm";const ge=o((t,n)=>{const{className:r,asChild:o,...a}=t;return e(o?re:"button",{ref:n,className:C(ve,r),...a})});ge.displayName="SvgButton";const ye=a({size:48}),be=()=>i(ye);var Ce={};const xe=o((t,n)=>{const{className:r,onClick:o,...a}=t,{size:i}=be(),l=(e=>e<40?12:e<54?16:e<72?20:24)(i);return e(ge,{ref:n,className:C(Ce.AvatarCloseButton,r),onClick:e=>{e.preventDefault(),o?.(e)},...a,children:e(K,{width:l,height:l})})});xe.displayName="AvatarCloseButton";const we=e=>"string"==typeof e?e:`${e}px`,Se=e=>{const{options:t,content:n}=e,{asChild:r,children:o}=t;if(!r)return"function"==typeof n?n(o):n;const a=l.only(o);return c(a,{children:"function"==typeof n?n(a.props.children):n})},Te=e=>void 0!==e&&!1!==e&&null!==e&&""!==e,Ne=()=>!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),Ie=(...e)=>{const t=e.filter(Boolean);if(t.length<=1){return t[0]??null}return e=>{for(const n of t)"function"==typeof n?n(e):n&&(n.current=e)}},Ee=()=>{},Re=[{maxExclusive:40,size:"xs"},{maxExclusive:52,size:"s"},{maxExclusive:72,size:"m"}];var ke={AvatarContainer:"AvatarContainer__7c-",AvatarContainer_form_circle:"AvatarContainer_form_circle__J44",AvatarContainer__content:"AvatarContainer__content__h8v",AvatarContainer_form_squircle:"AvatarContainer_form_squircle__1i0",AvatarContainer__onlineStatus:"AvatarContainer__onlineStatus__cdV",AvatarContainer_onlineStatus_xs:"AvatarContainer_onlineStatus_xs__sy8",AvatarContainer_onlineStatus_s:"AvatarContainer_onlineStatus_s__YBz",AvatarContainer_onlineStatus_m:"AvatarContainer_onlineStatus_m__IU3",AvatarContainer_onlineStatus_l:"AvatarContainer_onlineStatus_l__X3w",AvatarContainer__overlay:"AvatarContainer__overlay__qul",AvatarContainer__rightBottomCorner:"AvatarContainer__rightBottomCorner__kZG",AvatarContainer__rightTopCorner:"AvatarContainer__rightTopCorner__y4y"};const Ae=o((n,r)=>{const{className:o,style:a,children:i,overlay:l,rightTopCorner:c,rightBottomCorner:s,innerClassNames:u,size:d=40,asChild:_,form:p="circle",onlineStatus:f=!1,...m}=n,h=_?re:"div",{normalizedSize:v,hasOnlineStatus:g,onlineStatusSize:y}=(({size:e,onlineStatus:t,isCircle:n})=>{const r=Number.isFinite(e)?Math.min(200,Math.max(16,e)):40;return{normalizedSize:r,hasOnlineStatus:t&&n&&r>=24&&r<=80,onlineStatusSize:(o=r,Re.find(({maxExclusive:e})=>o<e)?.size??"l")};var o})({size:d,onlineStatus:f,isCircle:"circle"===p}),b=!f&&v>24&&Te(s),x=C(ke.AvatarContainer,ke[`AvatarContainer_form_${p}`],g&&ke.AvatarContainer_onlineStatus,g&&ke[`AvatarContainer_onlineStatus_${y}`],o);return e(ye.Provider,{value:{size:v},children:t(h,{ref:r,className:x,style:{"--MaxUi-AvatarContainer_size":`${v}px`,...a},...m,children:[e(ie,{children:Se({options:{asChild:n.asChild,children:i},content:n=>t("span",{className:C(ke.AvatarContainer__content,u?.content),children:[n,Te(l)&&e("span",{className:C(ke.AvatarContainer__overlay,u?.overlay),children:l})]},"subtree-container")})}),g&&e("span",{className:ke.AvatarContainer__onlineStatus,"aria-hidden":"true"}),b&&e("span",{className:C(ke.AvatarContainer__rightBottomCorner,u?.rightBottomCorner),children:s}),Te(c)&&e("span",{className:C(ke.AvatarContainer__rightTopCorner,u?.rightTopCorner),children:c})]})})});Ae.displayName="AvatarContainer";var Me="AvatarIcon__ZUI";const Be=o((t,n)=>{const{className:r,...o}=t;return e("span",{ref:n,className:C(Me,r),...o})});Be.displayName="AvatarIcon";const Le=e=>{const{asChild:t,children:n,rootElement:r,disabled:o,loading:a,onClick:i}=e,l=Boolean(o||a),c=l?e=>{e.preventDefault()}:i;if(!t&&"button"===r){return{disabled:l,onClick:c,...a?{"aria-busy":!0,"aria-disabled":!0}:{}}}if(t&&s(n)){const{type:e}=n;if("a"===e){return{"aria-disabled":l,onClick:c,...a?{"aria-busy":!0}:{},...o?{tabIndex:-1}:{}}}}return{role:"button",tabIndex:o?-1:0,"aria-disabled":l,onClick:c,...a?{"aria-busy":!0}:{}}},Pe=e=>{const t=u(e);return d(()=>{t.current=e}),_(()=>(...e)=>t.current?.(...e),[])},Oe=a({platform:"ios",colorScheme:"light"}),De=()=>i(Oe),Fe=()=>{const{colorScheme:e}=De();return e},ze=({enabled:e,onClose:t,closeThreshold:n=80,moveThreshold:r=5})=>{const[o,a]=p(!1),[i,l]=p(0),c=u(0),s=u(0),d=u(!1),_=u(!1),f=u(!1),m=u(e);m.current=e;const h=u(t);h.current=t;const v=e=>{if(!d.current)return;d.current=!1;const t=s.current;a(!1),_.current&&(f.current=!0),t>n&&h.current(),l(0),e.currentTarget.releasePointerCapture(e.pointerId)};return{dragging:o,dragOffset:i,suppressClickRef:f,handlePointerDown:e=>{m.current&&("mouse"===e.pointerType&&0!==e.button||(c.current=e.clientY,_.current=!1,d.current=!0,s.current=0,a(!0),l(0),e.currentTarget.setPointerCapture(e.pointerId)))},handlePointerMove:e=>{if(!d.current)return;const t=Math.max(0,e.clientY-c.current);s.current=t,t>r&&(_.current=!0),l(t)},handlePointerUp:v,handlePointerCancel:v}},$e=e=>{const{src:t,referrerPolicy:n}=e,[r,o]=p("idle");return f(()=>{if(!t)return void o("error");let e=!0;const r=new window.Image,a=t=>()=>{e&&o(t)};return o("loading"),r.onload=a("loaded"),r.onerror=a("error"),r.src=t,n&&(r.referrerPolicy=n),()=>{e=!1}},[t,n]),r},Ue=()=>{const{platform:e}=De();return e},He=a(void 0);function je(){const e=i(He);if(!e)throw new Error("useSnackbar must be used within SnackbarProvider");return e}const We=(e={})=>{const{listenChanges:t}=e,[n,r]=p(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),o=e=>{r(()=>e.matches?"dark":"light")};return d(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return r(()=>e.matches?"dark":"light"),t?(e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}):Ee},[t]),n};var Ve={AvatarText:"AvatarText__DIj",AvatarText_gradient_red:"AvatarText_gradient_red__bnV",AvatarText_gradient_orange:"AvatarText_gradient_orange__Ngq",AvatarText_gradient_green:"AvatarText_gradient_green__n7Z",AvatarText_gradient_blue:"AvatarText_gradient_blue__gLu",AvatarText_gradient_purple:"AvatarText_gradient_purple__UsS",AvatarText__in:"AvatarText__in__cDg"};const Ke=e=>e<20?{fontSize:6}:e<28?{fontSize:8}:e<32?{fontSize:10}:e<36?{fontSize:11}:e<40?{fontSize:13}:e<48?{fontSize:14}:e<54?{fontSize:17}:e<64?{fontSize:18}:e<72?{fontSize:21}:e<88?{fontSize:26}:{fontSize:30},Ye=o((t,n)=>{const{className:r,children:o,gradient:a="red",...i}=t,{size:l}=be(),c=C(Ve.AvatarText,{[Ve[`AvatarText_gradient_${a}`]]:"custom"!==a},r);return e("span",{ref:n,className:c,...i,children:e("span",{className:Ve.AvatarText__in,style:Ke(l),children:o})})});Ye.displayName="AvatarText";var qe="AvatarImage__H7-";const Xe=o((t,n)=>{const{className:r,fallback:o,fallbackGradient:a="red",...i}=t,[l,c]=p("idle"),s=$e({src:i.src??i.srcSet,referrerPolicy:i.referrerPolicy}),u=Pe(e=>{c(e)});return f(()=>{"idle"!==s&&u(s)},[s,u]),"error"===l?e(Ye,{gradient:a,children:o}):e("img",{ref:n,className:C(qe,r),...i})});Xe.displayName="AvatarImage";var Ge="AvatarOverlay__-nV";const Ze=o((t,n)=>{const{className:r,onClick:o,...a}=t;return e("span",{ref:n,className:C(Ge,r),onClick:e=>{e.preventDefault(),o?.(e)},...a})});Ze.displayName="AvatarOverlay";const Je=Object.assign({},{Container:Ae,Image:Xe,Overlay:Ze,Icon:Be,Text:Ye,CloseButton:xe});var Qe={TypographyAction_variant_large:"TypographyAction_variant_large__l5j",TypographyAction_variant_medium:"TypographyAction_variant_medium__9H-",TypographyAction_variant_small:"TypographyAction_variant_small__-LL",TypographyAction_variant_xsmall:"TypographyAction_variant_xsmall__dcP"};const et=o((t,n)=>{const{className:r,variant:o="large",asChild:a,...i}=t,l=a?re:"span",c=C(Qe.TypographyAction,Qe[`TypographyAction_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});et.displayName="TypographyAction";var tt={TypographyBody_variant_large:"TypographyBody_variant_large__vlS","TypographyBody_variant_large-strong":"TypographyBody_variant_large-strong__V9x",TypographyBody_variant_medium:"TypographyBody_variant_medium__9v3","TypographyBody_variant_medium-strong":"TypographyBody_variant_medium-strong__bCQ",TypographyBody_variant_small:"TypographyBody_variant_small__beJ","TypographyBody_variant_small-strong":"TypographyBody_variant_small-strong__mWy"};const nt=o((t,n)=>{const{className:r,variant:o="large-strong",asChild:a,...i}=t,l=a?re:"span",c=C(tt.TypographyBody,tt[`TypographyBody_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});nt.displayName="TypographyBody";var rt="TypographyDisplay__6MW";const ot=o((t,n)=>{const{className:r,asChild:o,...a}=t;return e(o?re:"span",{ref:n,className:C(rt,r),...a})});ot.displayName="TypographyDisplay";var at={"TypographyHeadline_variant_large-strong":"TypographyHeadline_variant_large-strong__mwz",TypographyHeadline_variant_medium:"TypographyHeadline_variant_medium__s92",TypographyHeadline_variant_small:"TypographyHeadline_variant_small__8Ei"};const it=o((t,n)=>{const{className:r,variant:o="large-strong",asChild:a,...i}=t,l=a?re:"span",c=C(at.TypographyHeadline,at[`TypographyHeadline_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});it.displayName="TypographyHeadline";var lt={TypographyLabel_variant_large:"TypographyLabel_variant_large__6vr","TypographyLabel_variant_large-strong":"TypographyLabel_variant_large-strong__uCg",TypographyLabel_variant_medium:"TypographyLabel_variant_medium__Xo5","TypographyLabel_variant_medium-strong":"TypographyLabel_variant_medium-strong__Bk8",TypographyLabel_variant_small:"TypographyLabel_variant_small__dGi","TypographyLabel_variant_small-strong":"TypographyLabel_variant_small-strong__qCw"};const ct=o((t,n)=>{const{className:r,variant:o="large",asChild:a,...i}=t,l=a?re:"span",c=C(lt.TypographyLabel,lt[`TypographyLabel_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});ct.displayName="TypographyLabel";var st={TypographyText_variant_hero:"TypographyText_variant_hero__78f",TypographyText_variant_header:"TypographyText_variant_header__YA-",TypographyText_variant_subheader:"TypographyText_variant_subheader__8tX",TypographyText_variant_title:"TypographyText_variant_title__3HO",TypographyText_variant_body:"TypographyText_variant_body__-U7","TypographyText_variant_body-strong":"TypographyText_variant_body-strong__g4v",TypographyText_variant_detail:"TypographyText_variant_detail__2eL","TypographyText_variant_detail-strong":"TypographyText_variant_detail-strong__-9M",TypographyText_variant_description:"TypographyText_variant_description__FAg","TypographyText_variant_description-strong":"TypographyText_variant_description-strong__GYo",TypographyText_variant_label:"TypographyText_variant_label__s4i","TypographyText_variant_label-strong":"TypographyText_variant_label-strong__hPM",TypographyText_variant_tag:"TypographyText_variant_tag__6CN","TypographyText_variant_tag-strong":"TypographyText_variant_tag-strong__4DW",TypographyText_variant_note:"TypographyText_variant_note__QH-","TypographyText_variant_note-strong":"TypographyText_variant_note-strong__sWX","TypographyText_variant_action-large":"TypographyText_variant_action-large__Pa-","TypographyText_variant_action-medium":"TypographyText_variant_action-medium__Xyt","TypographyText_variant_action-small":"TypographyText_variant_action-small__mna","TypographyText_variant_action-xsmall":"TypographyText_variant_action-xsmall__IX0",TypographyText_color_primary:"TypographyText_color_primary__yhI",TypographyText_color_secondary:"TypographyText_color_secondary__ycW",TypographyText_color_tertiary:"TypographyText_color_tertiary__OTn",TypographyText_color_inherit:"TypographyText_color_inherit__hh5"};const ut=o((t,n)=>{const{className:r,variant:o="body",color:a="inherit",asChild:i,...l}=t,c=i?re:"span",s=C(st.TypographyText,st[`TypographyText_variant_${o}`],st[`TypographyText_color_${a}`],r);return e(c,{ref:n,className:s,...l})});ut.displayName="TypographyText";var dt={"TypographyTitle_variant_large-strong":"TypographyTitle_variant_large-strong__9PL",TypographyTitle_variant_medium:"TypographyTitle_variant_medium__TrJ","TypographyTitle_variant_medium-strong":"TypographyTitle_variant_medium-strong__th0",TypographyTitle_variant_small:"TypographyTitle_variant_small__zJR","TypographyTitle_variant_small-strong":"TypographyTitle_variant_small-strong__BrE"};const _t=o((t,n)=>{const{className:r,variant:o="large-strong",asChild:a,...i}=t,l=a?re:"span",c=C(dt.TypographyTitle,dt[`TypographyTitle_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});_t.displayName="TypographyTitle";const pt=Object.assign({},{Display:ot,Headline:it,Title:_t,Body:nt,Label:ct,Text:ut,Action:et});var ft="overlay__6xj",mt="overlayClosing__WO6",ht="sheet__FyU",vt="sheet_dragging__1LJ",gt="sheet_exiting__agq",yt="handle__028",bt="header__xaM",Ct="content__qc2";const xt=({open:n,title:r,onClose:o,children:a,minHeight:i="auto",innerClassNames:l,enableDrag:c=!0})=>{const[s,u]=p(n?"open":"closed");d(()=>{u(e=>n?"open":"closed"===e?"closed":"exiting")},[n]);d(()=>{if("closed"===s)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[s]),d(()=>{if("closed"===s)return;const e=e=>{"Escape"===e.key&&o()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[s,o]);const{dragging:_,dragOffset:f,suppressClickRef:m,handlePointerDown:h,handlePointerMove:v,handlePointerUp:g,handlePointerCancel:y}=ze({enabled:c&&"open"===s,onClose:()=>{u("exiting"),o()}});if("closed"===s)return null;const b="exiting"===s,x=_?`translateY(${f}px)`:`translateY(${b?100:0}%)`;return e("div",{className:C(ft,{[mt]:b},l?.overlay),onClick:()=>{m.current?m.current=!1:o()},children:t("div",{className:C(ht,l?.sheet,{[vt]:_,[gt]:b}),style:{minHeight:i,transform:x},onClick:e=>e.stopPropagation(),onTransitionEnd:e=>{e.target===e.currentTarget&&"transform"===e.propertyName&&u(e=>"exiting"===e?"closed":e)},children:[c&&e("div",{className:C(yt,l?.handle),role:"button",tabIndex:0,"aria-label":"Перетащите вниз, чтобы закрыть",onPointerDown:h,onPointerMove:v,onPointerUp:g,onPointerCancel:y,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o())}}),r&&e("div",{className:C(bt,l?.header),children:e(pt.Title,{variant:"medium-strong",children:r})}),e("div",{className:Ct,children:a})]})})};var wt="ClearableInput__4PN",St="ClearableInput__button__iUo",Tt="ClearableInput__count__K7Z";const Nt=e=>void 0===e||""===e||Array.isArray(e)&&0===e.length,It=o((n,r)=>{const{className:o,onChange:a,innerClassNames:i,withClearButton:l=!0,disabled:c,count:s,...d}=n,_=u(null),f=void 0!==d.value,[m,h]=p(()=>Nt(d.defaultValue)),v=f?Nt(d.value):m;return t("span",{className:C(wt,o),children:[e("input",{ref:Ie(_,r),className:C(i?.input),onChange:e=>{f||h(""===e.currentTarget.value),a?.(e)},disabled:c,...d}),!v&&!c&&!!s&&e("div",{className:C(Tt,i?.count),children:s}),!v&&!c&&l&&e(ge,{type:"button",className:C(St,i?.clearButton),onClick:()=>{_.current&&(e=>{const{el:t,value:n}=e,r=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set;r?.call(t,n);const o=new Event("input",{bubbles:!0});t.dispatchEvent(o)})({el:_.current,value:""})},"aria-label":"Очистить",children:e(B,{})})]})});It.displayName="ClearableInput";var Et="Container__yZR",Rt="Container_fullWidth__2tY";const kt=o((t,n)=>{const{className:r,asChild:o,fullWidth:a,...i}=t,l=o?re:"div",c=C(Et,{[Rt]:a},r);return e(l,{ref:n,className:c,...i})});kt.displayName="Container";var At="EllipsisText__DEC",Mt="EllipsisText_multiline__y4t",Bt="EllipsisText_singleLine__Arf";const Lt=o((t,n)=>{const{className:r,maxLines:o=1,style:a,asChild:i,...l}=t,c=i?re:"span",s=C(At,{[Mt]:o>1,[Bt]:1===o},r);return e(c,{ref:n,className:s,style:{"--MaxUi-EllipsisText_linesCount":o,...a},...l})});Lt.displayName="EllipsisText";var Pt="Flex__pih";const Ot=o((t,n)=>{const{className:r,display:o="flex",direction:a="row",align:i="flex-start",justify:l="start",asChild:c,wrap:s,style:u,gap:d,gapX:_,gapY:p,...f}=t;return e(c?re:"div",{ref:n,className:C(Pt,r),style:{flexDirection:a,justifyContent:l,alignItems:i,flexWrap:s,...u,display:o,"--MaxUi-Flex_gapX":we(_??d??0),"--MaxUi-Flex_gapY":we(p??d??0)},...f})});Ot.displayName="Flex";var Dt="Grid__lFk";const Ft=o((t,n)=>{const{className:r,style:o,display:a="grid",align:i="start",justify:l="start",gap:c,gapX:s,gapY:u,cols:d,rows:_,asChild:p,...f}=t;return e(p?re:"div",{ref:n,className:C(Dt,r),style:{justifyContent:l,alignItems:i,...o,display:a,"--MaxUi-Grid_gapX":we(s??c??0),"--MaxUi-Grid_gapY":we(u??c??0),"--MaxUi-Grid_cols":d??0,"--MaxUi-Grid_rows":_??0},...f})});Ft.displayName="Grid";var zt={Panel:"Panel__XH0",Panel_centeredX:"Panel_centeredX__DG7",Panel_centeredY:"Panel_centeredY__f-k",Panel_mode_primary:"Panel_mode_primary__fNs",Panel_mode_secondary:"Panel_mode_secondary__Tez"};const $t=o((t,n)=>{const{className:r,mode:o="primary",centeredX:a,centeredY:i,...l}=t,c=C(zt.Panel,zt[`Panel_mode_${o}`],{[zt.Panel_centeredX]:a,[zt.Panel_centeredY]:i},r);return e("div",{ref:n,className:c,...l})});$t.displayName="Panel";var Ut="Ripple__dJ9",Ht="Ripple_active__uv5";const jt=o((t,n)=>{const{className:r,...o}=t,a=u(null),i=u(null),l=e=>{const t=e.currentTarget.getBoundingClientRect();((e,t)=>{null!==i.current&&(i.current.classList.remove(Ht),i.current.style.top=t+"px",i.current.style.left=e+"px",i.current.classList.add(Ht))})(e.clientX-(t.left??0),e.clientY-(t.top??0))};return d(()=>{if(i.current)return a.current=i.current.parentElement,null!==a.current&&a.current.addEventListener("pointerdown",l),()=>{null!==a.current&&a.current?.removeEventListener("pointerdown",l)}},[]),e("span",{ref:Ie(n,i),role:"presentation","aria-hidden":!0,className:C(Ut,r),onAnimationEnd:()=>{null!==i.current&&i.current.classList.remove(Ht)},...o})});jt.displayName="Ripple";var Wt="Tappable__O--",Vt="Tappable_interactive__4Uv",Kt="Tappable_disabled__0z8",Yt="Tappable_activeMode_ripple__3k-",qt="Tappable_activeMode_highlight__Hs-",Xt="Tappable__ripple__Egr";const Gt=o((n,r)=>{const{className:o,disabled:a,asChild:i,children:l,onClick:c,parentChildren:u,as:d="div",..._}=n,p=i?re:d,f=Ue(),m=Le({asChild:i,children:l,disabled:a,onClick:c,rootElement:d}),h=(({onClick:e,href:t,children:n,asChild:r,parentChildren:o=n})=>r?!(!r||!s(o))&&("href"in o.props||"onClick"in o.props):!!e||!!t)({onClick:c,href:_.href,children:l,asChild:i,parentChildren:u}),v="android"===f&&h&&!a,g=C(Wt,{[Vt]:h,[Kt]:a,[qt]:!v,[Yt]:v},o);return t(p,{ref:r,className:g,...h?m:{},..._,children:[l,v&&e(jt,{className:Xt})]})});Gt.displayName="Tappable";var Zt={Spinner:"Spinner__piy",Spinner_appearance_primary:"Spinner_appearance_primary__mxz",Spinner_appearance_themed:"Spinner_appearance_themed__-9S","Spinner_appearance_primary-static":"Spinner_appearance_primary-static__JxW",Spinner_appearance_contrast:"Spinner_appearance_contrast__Mv6","Spinner_appearance_contrast-static":"Spinner_appearance_contrast-static__rM7",Spinner_appearance_negative:"Spinner_appearance_negative__eMf","Spinner_appearance_neutral-themed":"Spinner_appearance_neutral-themed__D8F",androidSpinner:"androidSpinner__w-L",rotation:"rotation__CUP",iosSpinner:"iosSpinner__3q2",bar:"bar__aHj",fade:"fade__2ZD"};const Jt=({size:t})=>e("div",{className:Zt.androidSpinner,style:{width:t,height:t}}),Qt=({size:t})=>e("div",{className:Zt.iosSpinner,style:{width:t,height:t},children:Array.from({length:8},(t,n)=>e("div",{className:Zt.bar},n))}),en=o((t,n)=>{const{className:r,size:o=20,appearance:a="primary",...i}=t,l=Ue(),c=C(Zt.Spinner,Zt[`Spinner_appearance_${a}`],r);return e("span",{ref:n,role:"status",className:c,...i,children:e("ios"===l?Qt:Jt,{size:o})})});en.displayName="Spinner";var tn={Button:"Button__0OJ",Button_loading:"Button_loading__LD-",Button__iconBefore:"Button__iconBefore__BUe",Button__content:"Button__content__vnq",Button__indicator:"Button__indicator__HuA",Button__iconAfter:"Button__iconAfter__VhZ",Button_disabled:"Button_disabled__jkY",Button_stretched:"Button_stretched__mzq",Button_activeMode_ripple:"Button_activeMode_ripple__E5Y",Button_activeMode_highlight:"Button_activeMode_highlight__K3j",Button_size_xsmall:"Button_size_xsmall__QCm",Button_size_small:"Button_size_small__LLG",Button_size_medium:"Button_size_medium__fI9",Button_size_large:"Button_size_large__S2-",Button_variant_primary:"Button_variant_primary__yLL",Button_variant_secondary:"Button_variant_secondary__DR6",Button_variant_ghost:"Button_variant_ghost__EkG","Button_variant_primary-contrast":"Button_variant_primary-contrast__b63","Button_variant_secondary-contrast":"Button_variant_secondary-contrast__cey",Button_variant_overlay:"Button_variant_overlay__keO",Button_variant_destructive:"Button_variant_destructive__2Ug",Button__spinnerContainer:"Button__spinnerContainer__G4I",Button__ripple:"Button__ripple__jw0"},nn={Counter:"Counter__0Oj",Counter_variant_primary:"Counter_variant_primary__8Mz","Counter_variant_primary-contrast":"Counter_variant_primary-contrast__yFz",Counter_variant_attention:"Counter_variant_attention__IWH","Counter_variant_attention-contrast":"Counter_variant_attention-contrast__LHu",Counter_variant_promo:"Counter_variant_promo__9kD",Counter_variant_static:"Counter_variant_static__d8Y","Counter_variant_static-contrast":"Counter_variant_static-contrast__bAq",Counter_variant_default:"Counter_variant_default__weZ",Counter_variant_mute:"Counter_variant_mute__2SU",Counter_variant_menu:"Counter_variant_menu__qf0"};const rn=o((t,n)=>{const{className:r,value:o,rounded:a,variant:i="primary",...l}=t,c=C(nn.Counter,nn[`Counter_variant_${i}`],r),s=_(()=>a?Intl.NumberFormat("en",{notation:"compact"}).format(o):o,[a,o]);return e("span",{ref:n,className:c,...l,children:s})});rn.displayName="Counter";const on=e=>{switch(e){case"xsmall":return 16;case"small":case"medium":return 20;case"large":return 24}},an=e=>{switch(e){case"primary":case"destructive":case"overlay":return"contrast-static";case"secondary":return"primary";case"ghost":return"themed";case"primary-contrast":case"secondary-contrast":return"primary-static"}},ln=e=>{switch(e){case"primary":return{variant:"primary-contrast"};case"secondary":case"ghost":case"primary-contrast":case"secondary-contrast":return{variant:"static"};case"overlay":return{variant:"static-contrast"};case"destructive":return{variant:"attention-contrast"}}},cn=o((n,r)=>{const{className:o,iconBefore:a,iconAfter:i,indicator:l,children:u,onClick:d,loading:_,disabled:p=!1,asChild:f=!1,innerClassNames:m,stretched:h=!1,size:v="medium",variant:g="primary",...y}=n,b="button",x=f?re:b,w=Ue(),S=Le({asChild:f,children:u,disabled:p,loading:_,onClick:d,rootElement:b}),T=p||_,N="android"===w,I=C(tn.Button,tn[`Button_variant_${g}`],tn[`Button_size_${v}`],{[tn.Button_loading]:_,[tn.Button_disabled]:p,[tn.Button_stretched]:h,[tn.Button_activeMode_highlight]:!T&&!N,[tn.Button_activeMode_ripple]:!T&&N},o);return t(x,{ref:r,className:I,...S,...y,children:[Te(a)&&e("span",{className:C(tn.Button__iconBefore,m?.iconBefore),children:a}),_&&e("span",{className:C(tn.Button__spinnerContainer,m?.spinnerContainer),children:e(en,{className:C(m?.spinner),size:on(v),appearance:an(g)})}),e(ie,{children:Se({options:{asChild:f,children:u},content:t=>e(Lt,{className:C(tn.Button__content,m?.content),children:t},"subtree-container")})}),Te(l)&&e("span",{className:C(tn.Button__indicator,m?.indicator),children:(E=l,R=g,s(E)&&E.type===rn?c(E,{...ln(R)}):E)}),Te(i)&&e("span",{className:C(tn.Button__iconAfter,m?.iconAfter),children:i}),N&&!T&&e(jt,{className:tn.Button__ripple})]});var E,R});cn.displayName="Button";var sn={CellAction:"CellAction__vzN",CellAction_mode_primary:"CellAction_mode_primary__vZQ",CellAction_disabled:"CellAction_disabled__VZA",CellAction_mode_secondary:"CellAction_mode_secondary__AJk",CellAction_mode_themed:"CellAction_mode_themed__-Gg",CellAction_mode_destructive:"CellAction_mode_destructive__ovY",CellAction_mode_custom:"CellAction_mode_custom__3T8",CellAction_height_compact:"CellAction_height_compact__ysc",CellAction_height_normal:"CellAction_height_normal__ELj",CellAction_surface_island:"CellAction_surface_island__REC",CellAction__before:"CellAction__before__oZm",CellAction__content:"CellAction__content__Uib",CellAction__chevron:"CellAction__chevron__6SI"};const un=o((n,r)=>{const{className:o,before:a,children:i,innerClassNames:l,asChild:c=!1,mode:s="primary",surface:u="default",height:d="normal",showChevron:_=!1,...p}=n,f=C(sn.CellAction,sn[`CellAction_mode_${s}`],sn[`CellAction_height_${d}`],{[sn.CellAction_surface_island]:"island"===u,[sn.CellAction_disabled]:p.disabled},o);return t(Gt,{ref:r,className:f,asChild:c,as:"button",parentChildren:i,...p,children:[Te(a)&&e("span",{className:C(sn.CellAction__before,l?.before),children:a}),e(ie,{children:Se({options:{asChild:c,children:i},content:t=>e("span",{className:C(sn.CellAction__content,l?.content),children:t},"subtree-container")})}),_&&e(E,{className:C(sn.CellAction__chevron,l?.chevron)})]})});un.displayName="CellAction";var dn={CellHeader:"CellHeader__Epf",CellHeader_titleStyle_caps:"CellHeader_titleStyle_caps__nfB",CellHeader__content:"CellHeader__content__El-",CellHeader_titleStyle_normal:"CellHeader_titleStyle_normal__M-p",CellHeader_fullWidth:"CellHeader_fullWidth__h2Y",CellHeader__after:"CellHeader__after__RXN"};const _n=o((n,r)=>{const{className:o,titleStyle:a="caps",fullWidth:i=!1,children:l,after:c,innerClassNames:s,...u}=n,d=C(dn.CellHeader,dn[`CellHeader_titleStyle_${a}`],{[dn.CellHeader_fullWidth]:i},o);return t("div",{ref:r,className:d,...u,children:[Te(l)&&e("div",{className:C(dn.CellHeader__content,s?.content),children:l}),Te(c)&&e("div",{className:C(dn.CellHeader__after,s?.after),children:c})]})});_n.displayName="CellHeader";var pn={CellInput:"CellInput__92-",CellInput_disabled:"CellInput_disabled__fZ7",CellInput__input:"CellInput__input__gQ3",CellInput_height_compact:"CellInput_height_compact__Mv2",CellInput_height_normal:"CellInput_height_normal__ovc",CellInput_surface_island:"CellInput_surface_island__cls",CellInput__before:"CellInput__before__Hkm",CellInput__body:"CellInput__body__Egp",CellInput__clearButton:"CellInput__clearButton__znK"};const fn=o((n,r)=>{const{className:o,before:a,innerClassNames:i,disabled:l,height:c="normal",surface:s="default",...u}=n,d=C(pn.CellInput,pn[`CellInput_height_${c}`],{[pn.CellInput_surface_island]:"island"===s,[pn.CellInput_disabled]:l},o);return t("label",{className:d,children:[Te(a)&&e(Lt,{className:C(pn.CellInput__before,i?.before),maxLines:1,children:a}),e(It,{ref:r,className:C(pn.CellInput__body,i?.body),innerClassNames:{input:C(pn.CellInput__input,i?.input),clearButton:C(pn.CellInput__clearButton,i?.clearButton)},type:"text",disabled:l,...u})]})});fn.displayName="CellInput";var mn={CellList:"CellList__1ou",CellList_filled:"CellList_filled__ikE",CellList__body:"CellList__body__ouS",CellList_mode_island:"CellList_mode_island__aCu"};const hn=o((n,r)=>{const{className:o,header:a,children:i,mode:l="full-width",filled:c="island"===l,...s}=n,u=C(mn.CellList,mn[`CellList_mode_${l}`],{[mn.CellList_filled]:c},o);return t("div",{ref:r,className:u,...s,children:[Te(a)&&e("div",{className:mn.CellList__header,children:a}),e("div",{className:mn.CellList__body,children:i})]})});hn.displayName="CellList";var vn={CellSimple:"CellSimple__n0z",CellSimple_disabled:"CellSimple_disabled__T-3",CellSimple__title:"CellSimple__title__aYs",CellSimple__overline:"CellSimple__overline__Ncr",CellSimple__link:"CellSimple__link__ie-",CellSimple_subtitle_secondary:"CellSimple_subtitle_secondary__3uL",CellSimple__subtitle:"CellSimple__subtitle__oIF",CellSimple_subtitle_tertiary:"CellSimple_subtitle_tertiary__lz0",CellSimple_height_compact:"CellSimple_height_compact__HUQ",CellSimple_height_normal:"CellSimple_height_normal__pxj",CellSimple_surface_island:"CellSimple_surface_island__GzM",CellSimple__before:"CellSimple__before__5Q9",CellSimple__after:"CellSimple__after__2FK",CellSimple__content:"CellSimple__content__SOk",CellSimple__chevron:"CellSimple__chevron__cSs",CellSimple_separator:"CellSimple_separator__aOX"};const gn=o((n,r)=>{const{link:o,after:a,title:i,before:l,subtitle:c,children:s,overline:u,separator:d,className:_,innerClassNames:p,as:f="div",surface:m="default",height:h="normal",asChild:v=!1,disabled:g=!1,showChevron:y=!1,subtitleMode:b="secondary",...x}=n,w=C(vn.CellSimple,vn[`CellSimple_height_${h}`],vn[`CellSimple_subtitle_${b}`],{[vn.CellSimple_surface_island]:"island"===m,[vn.CellSimple_disabled]:g,[vn.CellSimple_separator]:d},_);return t(Gt,{ref:r,className:w,asChild:v,as:f,disabled:g,parentChildren:s,...x,children:[Te(l)&&e("div",{className:C(vn.CellSimple__before,p?.before),children:l}),e(ie,{children:Se({options:{asChild:v,children:s},content:n=>t("div",{className:C(vn.CellSimple__content,p?.content),children:[Te(u)&&e("div",{className:C(vn.CellSimple__overline,p?.overline),children:u}),Te(i)&&e("div",{className:C(vn.CellSimple__title,p?.title),children:i}),Te(c)&&e("div",{className:C(vn.CellSimple__subtitle,p?.subtitle),children:c}),n,o&&e("a",{className:C(vn.CellSimple__link,p?.link),href:o,target:"_blank",rel:"noreferrer",children:o})]},"subtree-container")})}),(Te(a)||y)&&t("div",{className:C(vn.CellSimple__after,p?.after),children:[a,y&&e(E,{className:C(vn.CellSimple__chevron,p?.chevron)})]})]})});gn.displayName="CellSimple";var yn="Checkbox__ChG",bn="Checkbox__control__FUK",Cn="Checkbox__input__ow-",xn="Checkbox__box__svi",wn="Checkbox__icon__Fa7",Sn="Checkbox__content__MrQ",Tn="Checkbox__label__ZKY",Nn="Checkbox__caption__CRn",In="Checkbox_animated__cbY",En="Checkbox_indeterminate__wqC",Rn="Checkbox_disabled__Wvo";const kn=o((n,r)=>{const{label:o,caption:a,indeterminate:i=!1,disabled:l,className:c,...s}=n,u=Te(o),d=Te(a),_=u||d,p=_?"label":"span",f=m(e=>{e&&(e.indeterminate=i)},[i]),h=C(yn,In,{[En]:i,[Rn]:l},c);return t(p,{className:h,children:[t("span",{className:bn,children:[e("input",{...s,ref:Ie(r,f),type:"checkbox",disabled:l,"aria-checked":i?"mixed":void 0,className:Cn}),e("span",{className:xn,children:e(T,{className:wn})})]}),_&&t("span",{className:Sn,children:[u&&e("span",{className:Tn,children:o}),d&&e("span",{className:Nn,children:a})]})]})});function An(){return"undefined"!=typeof window}function Mn(e){return Pn(e)?(e.nodeName||"").toLowerCase():"#document"}function Bn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ln(e){var t;return null==(t=(Pn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pn(e){return!!An()&&(e instanceof Node||e instanceof Bn(e).Node)}function On(e){return!!An()&&(e instanceof Element||e instanceof Bn(e).Element)}function Dn(e){return!!An()&&(e instanceof HTMLElement||e instanceof Bn(e).HTMLElement)}function Fn(e){return!(!An()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Bn(e).ShadowRoot)}function zn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function $n(e){return/^(table|td|th)$/.test(Mn(e))}function Un(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}kn.displayName="Checkbox";const Hn=/transform|translate|scale|rotate|perspective|filter/,jn=/paint|layout|strict|content/,Wn=e=>!!e&&"none"!==e;let Vn;function Kn(e){const t=On(e)?Xn(e):e;return Wn(t.transform)||Wn(t.translate)||Wn(t.scale)||Wn(t.rotate)||Wn(t.perspective)||!Yn()&&(Wn(t.backdropFilter)||Wn(t.filter))||Hn.test(t.willChange||"")||jn.test(t.contain||"")}function Yn(){return null==Vn&&(Vn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vn}function qn(e){return/^(html|body|#document)$/.test(Mn(e))}function Xn(e){return Bn(e).getComputedStyle(e)}function Gn(e){return On(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zn(e){if("html"===Mn(e))return e;const t=e.assignedSlot||e.parentNode||Fn(e)&&e.host||Ln(e);return Fn(t)?t.host:t}function Jn(e){const t=Zn(e);return qn(t)?(e.ownerDocument||e).body:Dn(t)&&zn(t)?t:Jn(t)}function Qn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Jn(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Bn(o);if(a){const e=er(i);return t.concat(i,i.visualViewport||[],zn(o)?o:[],e&&n?Qn(e):[])}return t.concat(o,Qn(o,[],n))}function er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const tr=Math.min,nr=Math.max,rr=Math.round,or=Math.floor,ar=e=>({x:e,y:e}),ir={left:"right",right:"left",bottom:"top",top:"bottom"};function lr(e,t){return"function"==typeof e?e(t):e}function cr(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function ur(e){return"x"===e?"y":"x"}function dr(e){return"y"===e?"height":"width"}function _r(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function pr(e){return ur(_r(e))}function fr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const mr=["left","right"],hr=["right","left"],vr=["top","bottom"],gr=["bottom","top"];function yr(e,t,n,r){const o=sr(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?hr:mr:t?mr:hr;case"left":case"right":return t?vr:gr;default:return[]}}(cr(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(fr)))),a}function br(e){const t=cr(e);return ir[t]+e.slice(t.length)}function Cr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import{forwardRef as o,createContext as a,useContext as i,Children as l,cloneElement as c,isValidElement as s,useRef as u,useEffect as d,useMemo as _,useState as p,useLayoutEffect as f,useCallback as m,Fragment as h,useId as v}from"react";import*as g from"react-dom";import{createPortal as y}from"react-dom";function b(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=b(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function C(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=b(e))&&(r&&(r+=" "),r+=t);return r}var x;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(null,arguments)}var S,T=function(e){return r.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),x||(x=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.28 3.72a.75.75 0 0 1 0 1.06l-6.5 6.5a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 1.06-1.06l2.47 2.47 5.97-5.97a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})))};function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}var I,E=function(e){return r.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:12,height:16,fill:"none"},e),S||(S=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.934 3.434a.8.8 0 0 1 1.132 0l4 4a.8.8 0 0 1 0 1.132l-4 4a.8.8 0 0 1-1.132-1.132L6.37 8 2.934 4.566a.8.8 0 0 1 0-1.132",clipRule:"evenodd"})))};function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(null,arguments)}var k,A,M,B=function(e){return r.createElement("svg",R({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),I||(I=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16M5.566 4.434a.8.8 0 1 0-1.132 1.132L6.87 8l-2.435 2.434a.8.8 0 0 0 1.132 1.132L8 9.13l2.434 2.435a.8.8 0 0 0 1.132-1.132L9.13 8l2.435-2.434a.8.8 0 0 0-1.132-1.132L8 6.87z",clipRule:"evenodd"})))};function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(null,arguments)}var P,O=function(e){return r.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none","aria-hidden":"true"},e),k||(k=r.createElement("circle",{cx:8,cy:8,r:7,stroke:"currentColor",strokeWidth:1.5})),A||(A=r.createElement("circle",{cx:8,cy:4.75,r:1,fill:"currentColor"})),M||(M=r.createElement("rect",{width:1.5,height:5,x:7.25,y:6.75,fill:"currentColor",rx:.75})))};function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(null,arguments)}var F,z=function(e){return r.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),P||(P=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.242 2.115c-2.605 0-4.677 2.044-4.677 4.517s2.072 4.517 4.677 4.517 4.677-2.044 4.677-4.517-2.072-4.517-4.677-4.517M1 6.632C1 3.252 3.817.55 7.242.55s6.242 2.701 6.242 6.082a5.97 5.97 0 0 1-1.692 4.165l3 3.247a.783.783 0 1 1-1.15 1.062l-3.074-3.326a6.34 6.34 0 0 1-3.326.935C3.817 12.715 1 10.013 1 6.632",clipRule:"evenodd"})))};function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(null,arguments)}var U,H,j=function(e){return r.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),F||(F=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.364 4.364a.9.9 0 0 1 1.272 0L10 8.727l4.364-4.363a.9.9 0 0 1 1.272 1.272L11.273 10l4.363 4.364a.9.9 0 0 1-1.272 1.272L10 11.273l-4.364 4.363a.9.9 0 0 1-1.272-1.272L8.727 10 4.364 5.636a.9.9 0 0 1 0-1.272",clipRule:"evenodd"})))};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}var V,K=function(e){return r.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),U||(U=r.createElement("circle",{cx:10,cy:10,r:10,fill:"currentColor"})),H||(H=r.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.364 5.364a.9.9 0 0 1 1.272 0L10 8.727l3.364-3.363a.9.9 0 0 1 1.272 1.272L11.274 10l3.364 3.364a.9.9 0 1 1-1.273 1.272L10 11.273l-3.364 3.363a.9.9 0 0 1-1.272-1.272L8.727 10 5.364 6.636a.9.9 0 0 1 0-1.272",clipRule:"evenodd"})))};function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}var q=function(e){return r.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),V||(V=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.268 6.268a.915.915 0 0 1 1.294 0L12 10.706l4.438-4.438a.915.915 0 1 1 1.294 1.294L13.294 12l4.438 4.438a.915.915 0 1 1-1.294 1.294L12 13.294l-4.438 4.438a.915.915 0 1 1-1.294-1.294L10.706 12 6.268 7.562a.915.915 0 0 1 0-1.294",clipRule:"evenodd"})))},X=Object.defineProperty,G=(e,t)=>X(e,"name",{value:t,configurable:!0});function Z(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function J(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Z(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Z(e[t],null)}}}}function Q(...e){return r.useCallback(J(...e),e)}G(Z,"setRef"),G(J,"composeRefs"),G(Q,"useComposedRefs");var ee=Object.defineProperty,te=(e,t)=>ee(e,"name",{value:t,configurable:!0});function ne(e){const t=r.forwardRef((t,n)=>{let{children:o,...a}=t,i=null,l=!1;const c=[];_e(o)&&"function"==typeof he&&(o=he(o._payload)),r.Children.forEach(o,e=>{if(ue(e)){l=!0;const t=e;let n="child"in t.props?t.props.child:t.props.children;_e(n)&&"function"==typeof he&&(n=he(n._payload)),i=le(t,n),c.push(i?.props?.children)}else c.push(e)}),i?i=r.cloneElement(i,void 0,c):!l&&1===r.Children.count(o)&&r.isValidElement(o)&&(i=o);const s=i?se(i):void 0,u=Q(n,s);if(!i){if(o||0===o)throw new Error(l?me(e):fe(e));return o}const d=ce(a,i.props??{});return i.type!==r.Fragment&&(d.ref=n?u:s),r.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}te(ne,"createSlot");var re=ne("Slot"),oe=Symbol.for("radix.slottable");function ae(e){const t=te(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=oe,t}te(ae,"createSlottable");var ie=ae("Slottable"),le=te((e,t)=>{if("child"in e.props){const t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ce(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function se(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ue(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===oe}te(ce,"mergeProps"),te(se,"getElementRef"),te(ue,"isSlottable");var de=Symbol.for("react.lazy");function _e(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===de&&"_payload"in e&&pe(e._payload)}function pe(e){return"object"==typeof e&&null!==e&&"then"in e}te(_e,"isLazyComponent"),te(pe,"isPromiseLike");var fe=te(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),me=te(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),he=r[" use ".trim().toString()],ve="SvgButton__-Jm";const ge=o((t,n)=>{const{className:r,asChild:o,...a}=t;return e(o?re:"button",{ref:n,className:C(ve,r),...a})});ge.displayName="SvgButton";const ye=a({size:48}),be=()=>i(ye);var Ce={};const xe=o((t,n)=>{const{className:r,onClick:o,...a}=t,{size:i}=be(),l=(e=>e<40?12:e<54?16:e<72?20:24)(i);return e(ge,{ref:n,className:C(Ce.AvatarCloseButton,r),onClick:e=>{e.preventDefault(),o?.(e)},...a,children:e(K,{width:l,height:l})})});xe.displayName="AvatarCloseButton";const we=e=>"string"==typeof e?e:`${e}px`,Se=e=>{const{options:t,content:n}=e,{asChild:r,children:o}=t;if(!r)return"function"==typeof n?n(o):n;const a=l.only(o);return c(a,{children:"function"==typeof n?n(a.props.children):n})},Te=e=>void 0!==e&&!1!==e&&null!==e&&""!==e,Ne=()=>!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),Ie=(...e)=>{const t=e.filter(Boolean);if(t.length<=1){return t[0]??null}return e=>{for(const n of t)"function"==typeof n?n(e):n&&(n.current=e)}},Ee=()=>{},Re=[{maxExclusive:40,size:"xs"},{maxExclusive:52,size:"s"},{maxExclusive:72,size:"m"}];var ke={AvatarContainer:"AvatarContainer__7c-",AvatarContainer_form_circle:"AvatarContainer_form_circle__J44",AvatarContainer__content:"AvatarContainer__content__h8v",AvatarContainer_form_squircle:"AvatarContainer_form_squircle__1i0",AvatarContainer__onlineStatus:"AvatarContainer__onlineStatus__cdV",AvatarContainer_onlineStatus_xs:"AvatarContainer_onlineStatus_xs__sy8",AvatarContainer_onlineStatus_s:"AvatarContainer_onlineStatus_s__YBz",AvatarContainer_onlineStatus_m:"AvatarContainer_onlineStatus_m__IU3",AvatarContainer_onlineStatus_l:"AvatarContainer_onlineStatus_l__X3w",AvatarContainer__overlay:"AvatarContainer__overlay__qul",AvatarContainer__rightBottomCorner:"AvatarContainer__rightBottomCorner__kZG",AvatarContainer__rightTopCorner:"AvatarContainer__rightTopCorner__y4y"};const Ae=o((n,r)=>{const{className:o,style:a,children:i,overlay:l,rightTopCorner:c,rightBottomCorner:s,innerClassNames:u,size:d=40,asChild:_,form:p="circle",onlineStatus:f=!1,...m}=n,h=_?re:"div",{normalizedSize:v,hasOnlineStatus:g,onlineStatusSize:y}=(({size:e,onlineStatus:t,isCircle:n})=>{const r=Number.isFinite(e)?Math.min(200,Math.max(16,e)):40;return{normalizedSize:r,hasOnlineStatus:t&&n&&r>=24&&r<=80,onlineStatusSize:(o=r,Re.find(({maxExclusive:e})=>o<e)?.size??"l")};var o})({size:d,onlineStatus:f,isCircle:"circle"===p}),b=!f&&v>24&&Te(s),x=C(ke.AvatarContainer,ke[`AvatarContainer_form_${p}`],g&&ke.AvatarContainer_onlineStatus,g&&ke[`AvatarContainer_onlineStatus_${y}`],o);return e(ye.Provider,{value:{size:v},children:t(h,{ref:r,className:x,style:{"--MaxUi-AvatarContainer_size":`${v}px`,...a},...m,children:[e(ie,{children:Se({options:{asChild:n.asChild,children:i},content:n=>t("span",{className:C(ke.AvatarContainer__content,u?.content),children:[n,Te(l)&&e("span",{className:C(ke.AvatarContainer__overlay,u?.overlay),children:l})]},"subtree-container")})}),g&&e("span",{className:ke.AvatarContainer__onlineStatus,"aria-hidden":"true"}),b&&e("span",{className:C(ke.AvatarContainer__rightBottomCorner,u?.rightBottomCorner),children:s}),Te(c)&&e("span",{className:C(ke.AvatarContainer__rightTopCorner,u?.rightTopCorner),children:c})]})})});Ae.displayName="AvatarContainer";var Me="AvatarIcon__ZUI";const Be=o((t,n)=>{const{className:r,...o}=t;return e("span",{ref:n,className:C(Me,r),...o})});Be.displayName="AvatarIcon";const Le=e=>{const{asChild:t,children:n,rootElement:r,disabled:o,loading:a,onClick:i}=e,l=Boolean(o||a),c=l?e=>{e.preventDefault()}:i;if(!t&&"button"===r){return{disabled:l,onClick:c,...a?{"aria-busy":!0,"aria-disabled":!0}:{}}}if(t&&s(n)){const{type:e}=n;if("a"===e){return{"aria-disabled":l,onClick:c,...a?{"aria-busy":!0}:{},...o?{tabIndex:-1}:{}}}}return{role:"button",tabIndex:o?-1:0,"aria-disabled":l,onClick:c,...a?{"aria-busy":!0}:{}}},Pe=e=>{const t=u(e);return d(()=>{t.current=e}),_(()=>(...e)=>t.current?.(...e),[])},Oe=a({platform:"ios",colorScheme:"light"}),De=()=>i(Oe),Fe=()=>{const{colorScheme:e}=De();return e},ze=({enabled:e,onClose:t,closeThreshold:n=80,moveThreshold:r=5})=>{const[o,a]=p(!1),[i,l]=p(0),c=u(0),s=u(0),d=u(!1),_=u(!1),f=u(!1),m=u(e);m.current=e;const h=u(t);h.current=t;const v=e=>{if(!d.current)return;d.current=!1;const t=s.current;a(!1),_.current&&(f.current=!0),t>n&&h.current(),l(0),e.currentTarget.releasePointerCapture(e.pointerId)};return{dragging:o,dragOffset:i,suppressClickRef:f,handlePointerDown:e=>{m.current&&("mouse"===e.pointerType&&0!==e.button||(c.current=e.clientY,_.current=!1,d.current=!0,s.current=0,a(!0),l(0),e.currentTarget.setPointerCapture(e.pointerId)))},handlePointerMove:e=>{if(!d.current)return;const t=Math.max(0,e.clientY-c.current);s.current=t,t>r&&(_.current=!0),l(t)},handlePointerUp:v,handlePointerCancel:v}},$e=e=>{const{src:t,referrerPolicy:n}=e,[r,o]=p("idle");return f(()=>{if(!t)return void o("error");let e=!0;const r=new window.Image,a=t=>()=>{e&&o(t)};return o("loading"),r.onload=a("loaded"),r.onerror=a("error"),r.src=t,n&&(r.referrerPolicy=n),()=>{e=!1}},[t,n]),r},Ue=()=>{const{platform:e}=De();return e},He=a(void 0);function je(){const e=i(He);if(!e)throw new Error("useSnackbar must be used within SnackbarProvider");return e}const We=(e={})=>{const{listenChanges:t}=e,[n,r]=p(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),o=e=>{r(()=>e.matches?"dark":"light")};return d(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return r(()=>e.matches?"dark":"light"),t?(e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}):Ee},[t]),n};var Ve={AvatarText:"AvatarText__DIj",AvatarText_gradient_red:"AvatarText_gradient_red__bnV",AvatarText_gradient_orange:"AvatarText_gradient_orange__Ngq",AvatarText_gradient_green:"AvatarText_gradient_green__n7Z",AvatarText_gradient_blue:"AvatarText_gradient_blue__gLu",AvatarText_gradient_purple:"AvatarText_gradient_purple__UsS",AvatarText__in:"AvatarText__in__cDg"};const Ke=e=>e<20?{fontSize:6}:e<28?{fontSize:8}:e<32?{fontSize:10}:e<36?{fontSize:11}:e<40?{fontSize:13}:e<48?{fontSize:14}:e<54?{fontSize:17}:e<64?{fontSize:18}:e<72?{fontSize:21}:e<88?{fontSize:26}:{fontSize:30},Ye=o((t,n)=>{const{className:r,children:o,gradient:a="red",...i}=t,{size:l}=be(),c=C(Ve.AvatarText,{[Ve[`AvatarText_gradient_${a}`]]:"custom"!==a},r);return e("span",{ref:n,className:c,...i,children:e("span",{className:Ve.AvatarText__in,style:Ke(l),children:o})})});Ye.displayName="AvatarText";var qe="AvatarImage__H7-";const Xe=o((t,n)=>{const{className:r,fallback:o,fallbackGradient:a="red",...i}=t,[l,c]=p("idle"),s=$e({src:i.src??i.srcSet,referrerPolicy:i.referrerPolicy}),u=Pe(e=>{c(e)});return f(()=>{"idle"!==s&&u(s)},[s,u]),"error"===l?e(Ye,{gradient:a,children:o}):e("img",{ref:n,className:C(qe,r),...i})});Xe.displayName="AvatarImage";var Ge="AvatarOverlay__-nV";const Ze=o((t,n)=>{const{className:r,onClick:o,...a}=t;return e("span",{ref:n,className:C(Ge,r),onClick:e=>{e.preventDefault(),o?.(e)},...a})});Ze.displayName="AvatarOverlay";const Je=Object.assign({},{Container:Ae,Image:Xe,Overlay:Ze,Icon:Be,Text:Ye,CloseButton:xe});var Qe={TypographyAction_variant_large:"TypographyAction_variant_large__l5j",TypographyAction_variant_medium:"TypographyAction_variant_medium__9H-",TypographyAction_variant_small:"TypographyAction_variant_small__-LL",TypographyAction_variant_xsmall:"TypographyAction_variant_xsmall__dcP"};const et=o((t,n)=>{const{className:r,variant:o="large",asChild:a,...i}=t,l=a?re:"span",c=C(Qe.TypographyAction,Qe[`TypographyAction_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});et.displayName="TypographyAction";var tt={TypographyBody_variant_large:"TypographyBody_variant_large__vlS","TypographyBody_variant_large-strong":"TypographyBody_variant_large-strong__V9x",TypographyBody_variant_medium:"TypographyBody_variant_medium__9v3","TypographyBody_variant_medium-strong":"TypographyBody_variant_medium-strong__bCQ",TypographyBody_variant_small:"TypographyBody_variant_small__beJ","TypographyBody_variant_small-strong":"TypographyBody_variant_small-strong__mWy"};const nt=o((t,n)=>{const{className:r,variant:o="large-strong",asChild:a,...i}=t,l=a?re:"span",c=C(tt.TypographyBody,tt[`TypographyBody_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});nt.displayName="TypographyBody";var rt="TypographyDisplay__6MW";const ot=o((t,n)=>{const{className:r,asChild:o,...a}=t;return e(o?re:"span",{ref:n,className:C(rt,r),...a})});ot.displayName="TypographyDisplay";var at={"TypographyHeadline_variant_large-strong":"TypographyHeadline_variant_large-strong__mwz",TypographyHeadline_variant_medium:"TypographyHeadline_variant_medium__s92",TypographyHeadline_variant_small:"TypographyHeadline_variant_small__8Ei"};const it=o((t,n)=>{const{className:r,variant:o="large-strong",asChild:a,...i}=t,l=a?re:"span",c=C(at.TypographyHeadline,at[`TypographyHeadline_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});it.displayName="TypographyHeadline";var lt={TypographyLabel_variant_large:"TypographyLabel_variant_large__6vr","TypographyLabel_variant_large-strong":"TypographyLabel_variant_large-strong__uCg",TypographyLabel_variant_medium:"TypographyLabel_variant_medium__Xo5","TypographyLabel_variant_medium-strong":"TypographyLabel_variant_medium-strong__Bk8",TypographyLabel_variant_small:"TypographyLabel_variant_small__dGi","TypographyLabel_variant_small-strong":"TypographyLabel_variant_small-strong__qCw"};const ct=o((t,n)=>{const{className:r,variant:o="large",asChild:a,...i}=t,l=a?re:"span",c=C(lt.TypographyLabel,lt[`TypographyLabel_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});ct.displayName="TypographyLabel";var st={TypographyText_variant_hero:"TypographyText_variant_hero__78f",TypographyText_variant_header:"TypographyText_variant_header__YA-",TypographyText_variant_subheader:"TypographyText_variant_subheader__8tX",TypographyText_variant_title:"TypographyText_variant_title__3HO",TypographyText_variant_body:"TypographyText_variant_body__-U7","TypographyText_variant_body-strong":"TypographyText_variant_body-strong__g4v",TypographyText_variant_detail:"TypographyText_variant_detail__2eL","TypographyText_variant_detail-strong":"TypographyText_variant_detail-strong__-9M",TypographyText_variant_description:"TypographyText_variant_description__FAg","TypographyText_variant_description-strong":"TypographyText_variant_description-strong__GYo",TypographyText_variant_label:"TypographyText_variant_label__s4i","TypographyText_variant_label-strong":"TypographyText_variant_label-strong__hPM",TypographyText_variant_tag:"TypographyText_variant_tag__6CN","TypographyText_variant_tag-strong":"TypographyText_variant_tag-strong__4DW",TypographyText_variant_note:"TypographyText_variant_note__QH-","TypographyText_variant_note-strong":"TypographyText_variant_note-strong__sWX","TypographyText_variant_action-large":"TypographyText_variant_action-large__Pa-","TypographyText_variant_action-medium":"TypographyText_variant_action-medium__Xyt","TypographyText_variant_action-small":"TypographyText_variant_action-small__mna","TypographyText_variant_action-xsmall":"TypographyText_variant_action-xsmall__IX0",TypographyText_color_primary:"TypographyText_color_primary__yhI",TypographyText_color_secondary:"TypographyText_color_secondary__ycW",TypographyText_color_tertiary:"TypographyText_color_tertiary__OTn",TypographyText_color_inherit:"TypographyText_color_inherit__hh5"};const ut=o((t,n)=>{const{className:r,variant:o="body",color:a="inherit",asChild:i,...l}=t,c=i?re:"span",s=C(st.TypographyText,st[`TypographyText_variant_${o}`],st[`TypographyText_color_${a}`],r);return e(c,{ref:n,className:s,...l})});ut.displayName="TypographyText";var dt={"TypographyTitle_variant_large-strong":"TypographyTitle_variant_large-strong__9PL",TypographyTitle_variant_medium:"TypographyTitle_variant_medium__TrJ","TypographyTitle_variant_medium-strong":"TypographyTitle_variant_medium-strong__th0",TypographyTitle_variant_small:"TypographyTitle_variant_small__zJR","TypographyTitle_variant_small-strong":"TypographyTitle_variant_small-strong__BrE"};const _t=o((t,n)=>{const{className:r,variant:o="large-strong",asChild:a,...i}=t,l=a?re:"span",c=C(dt.TypographyTitle,dt[`TypographyTitle_variant_${o}`],r);return e(l,{ref:n,className:c,...i})});_t.displayName="TypographyTitle";const pt=Object.assign({},{Display:ot,Headline:it,Title:_t,Body:nt,Label:ct,Text:ut,Action:et});var ft="overlay__6xj",mt="overlayClosing__WO6",ht="sheet__FyU",vt="sheet_dragging__1LJ",gt="sheet_exiting__agq",yt="handle__028",bt="header__xaM",Ct="content__qc2";const xt=({open:n,title:r,onClose:o,children:a,minHeight:i="auto",innerClassNames:l,enableDrag:c=!0})=>{const[s,u]=p(n?"open":"closed");d(()=>{u(e=>n?"open":"closed"===e?"closed":"exiting")},[n]);d(()=>{if("closed"===s)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[s]),d(()=>{if("closed"===s)return;const e=e=>{"Escape"===e.key&&o()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[s,o]),d(()=>{if("exiting"!==s)return;const e=setTimeout(()=>u("closed"),300);return()=>clearTimeout(e)},[s]);const{dragging:_,dragOffset:f,suppressClickRef:m,handlePointerDown:h,handlePointerMove:v,handlePointerUp:g,handlePointerCancel:y}=ze({enabled:c&&"open"===s,onClose:()=>{u("exiting"),o()}});if("closed"===s)return null;const b="exiting"===s,x=_?`translateY(${f}px)`:`translateY(${b?100:0}%)`;return e("div",{className:C(ft,{[mt]:b},l?.overlay),onClick:()=>{m.current?m.current=!1:o()},children:t("div",{className:C(ht,l?.sheet,{[vt]:_,[gt]:b}),style:{minHeight:i,transform:x},onClick:e=>e.stopPropagation(),onTransitionEnd:e=>{e.target===e.currentTarget&&"transform"===e.propertyName&&u(e=>"exiting"===e?"closed":e)},children:[c&&e("div",{className:C(yt,l?.handle),role:"button",tabIndex:0,"aria-label":"Перетащите вниз, чтобы закрыть",onPointerDown:h,onPointerMove:v,onPointerUp:g,onPointerCancel:y,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o())}}),r&&e("div",{className:C(bt,l?.header),children:e(pt.Title,{variant:"medium-strong",children:r})}),e("div",{className:Ct,children:a})]})})};var wt="ClearableInput__4PN",St="ClearableInput__button__iUo",Tt="ClearableInput__count__K7Z";const Nt=e=>void 0===e||""===e||Array.isArray(e)&&0===e.length,It=o((n,r)=>{const{className:o,onChange:a,innerClassNames:i,withClearButton:l=!0,disabled:c,count:s,...d}=n,_=u(null),f=void 0!==d.value,[m,h]=p(()=>Nt(d.defaultValue)),v=f?Nt(d.value):m;return t("span",{className:C(wt,o),children:[e("input",{ref:Ie(_,r),className:C(i?.input),onChange:e=>{f||h(""===e.currentTarget.value),a?.(e)},disabled:c,...d}),!v&&!c&&!!s&&e("div",{className:C(Tt,i?.count),children:s}),!v&&!c&&l&&e(ge,{type:"button",className:C(St,i?.clearButton),onClick:()=>{_.current&&(e=>{const{el:t,value:n}=e,r=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set;r?.call(t,n);const o=new Event("input",{bubbles:!0});t.dispatchEvent(o)})({el:_.current,value:""})},"aria-label":"Очистить",children:e(B,{})})]})});It.displayName="ClearableInput";var Et="Container__yZR",Rt="Container_fullWidth__2tY";const kt=o((t,n)=>{const{className:r,asChild:o,fullWidth:a,...i}=t,l=o?re:"div",c=C(Et,{[Rt]:a},r);return e(l,{ref:n,className:c,...i})});kt.displayName="Container";var At="EllipsisText__DEC",Mt="EllipsisText_multiline__y4t",Bt="EllipsisText_singleLine__Arf";const Lt=o((t,n)=>{const{className:r,maxLines:o=1,style:a,asChild:i,...l}=t,c=i?re:"span",s=C(At,{[Mt]:o>1,[Bt]:1===o},r);return e(c,{ref:n,className:s,style:{"--MaxUi-EllipsisText_linesCount":o,...a},...l})});Lt.displayName="EllipsisText";var Pt="Flex__pih";const Ot=o((t,n)=>{const{className:r,display:o="flex",direction:a="row",align:i="flex-start",justify:l="start",asChild:c,wrap:s,style:u,gap:d,gapX:_,gapY:p,...f}=t;return e(c?re:"div",{ref:n,className:C(Pt,r),style:{flexDirection:a,justifyContent:l,alignItems:i,flexWrap:s,...u,display:o,"--MaxUi-Flex_gapX":we(_??d??0),"--MaxUi-Flex_gapY":we(p??d??0)},...f})});Ot.displayName="Flex";var Dt="Grid__lFk";const Ft=o((t,n)=>{const{className:r,style:o,display:a="grid",align:i="start",justify:l="start",gap:c,gapX:s,gapY:u,cols:d,rows:_,asChild:p,...f}=t;return e(p?re:"div",{ref:n,className:C(Dt,r),style:{justifyContent:l,alignItems:i,...o,display:a,"--MaxUi-Grid_gapX":we(s??c??0),"--MaxUi-Grid_gapY":we(u??c??0),"--MaxUi-Grid_cols":d??0,"--MaxUi-Grid_rows":_??0},...f})});Ft.displayName="Grid";var zt={Panel:"Panel__XH0",Panel_centeredX:"Panel_centeredX__DG7",Panel_centeredY:"Panel_centeredY__f-k",Panel_mode_primary:"Panel_mode_primary__fNs",Panel_mode_secondary:"Panel_mode_secondary__Tez"};const $t=o((t,n)=>{const{className:r,mode:o="primary",centeredX:a,centeredY:i,...l}=t,c=C(zt.Panel,zt[`Panel_mode_${o}`],{[zt.Panel_centeredX]:a,[zt.Panel_centeredY]:i},r);return e("div",{ref:n,className:c,...l})});$t.displayName="Panel";var Ut="Ripple__dJ9",Ht="Ripple_active__uv5";const jt=o((t,n)=>{const{className:r,...o}=t,a=u(null),i=u(null),l=e=>{const t=e.currentTarget.getBoundingClientRect();((e,t)=>{null!==i.current&&(i.current.classList.remove(Ht),i.current.style.top=t+"px",i.current.style.left=e+"px",i.current.classList.add(Ht))})(e.clientX-(t.left??0),e.clientY-(t.top??0))};return d(()=>{if(i.current)return a.current=i.current.parentElement,null!==a.current&&a.current.addEventListener("pointerdown",l),()=>{null!==a.current&&a.current?.removeEventListener("pointerdown",l)}},[]),e("span",{ref:Ie(n,i),role:"presentation","aria-hidden":!0,className:C(Ut,r),onAnimationEnd:()=>{null!==i.current&&i.current.classList.remove(Ht)},...o})});jt.displayName="Ripple";var Wt="Tappable__O--",Vt="Tappable_interactive__4Uv",Kt="Tappable_disabled__0z8",Yt="Tappable_activeMode_ripple__3k-",qt="Tappable_activeMode_highlight__Hs-",Xt="Tappable__ripple__Egr";const Gt=o((n,r)=>{const{className:o,disabled:a,asChild:i,children:l,onClick:c,parentChildren:u,as:d="div",..._}=n,p=i?re:d,f=Ue(),m=Le({asChild:i,children:l,disabled:a,onClick:c,rootElement:d}),h=(({onClick:e,href:t,children:n,asChild:r,parentChildren:o=n})=>r?!(!r||!s(o))&&("href"in o.props||"onClick"in o.props):!!e||!!t)({onClick:c,href:_.href,children:l,asChild:i,parentChildren:u}),v="android"===f&&h&&!a,g=C(Wt,{[Vt]:h,[Kt]:a,[qt]:!v,[Yt]:v},o);return t(p,{ref:r,className:g,...h?m:{},..._,children:[l,v&&e(jt,{className:Xt})]})});Gt.displayName="Tappable";var Zt={Spinner:"Spinner__piy",Spinner_appearance_primary:"Spinner_appearance_primary__mxz",Spinner_appearance_themed:"Spinner_appearance_themed__-9S","Spinner_appearance_primary-static":"Spinner_appearance_primary-static__JxW",Spinner_appearance_contrast:"Spinner_appearance_contrast__Mv6","Spinner_appearance_contrast-static":"Spinner_appearance_contrast-static__rM7",Spinner_appearance_negative:"Spinner_appearance_negative__eMf","Spinner_appearance_neutral-themed":"Spinner_appearance_neutral-themed__D8F",androidSpinner:"androidSpinner__w-L",rotation:"rotation__CUP",iosSpinner:"iosSpinner__3q2",bar:"bar__aHj",fade:"fade__2ZD"};const Jt=({size:t})=>e("div",{className:Zt.androidSpinner,style:{width:t,height:t}}),Qt=({size:t})=>e("div",{className:Zt.iosSpinner,style:{width:t,height:t},children:Array.from({length:8},(t,n)=>e("div",{className:Zt.bar},n))}),en=o((t,n)=>{const{className:r,size:o=20,appearance:a="primary",...i}=t,l=Ue(),c=C(Zt.Spinner,Zt[`Spinner_appearance_${a}`],r);return e("span",{ref:n,role:"status",className:c,...i,children:e("ios"===l?Qt:Jt,{size:o})})});en.displayName="Spinner";var tn={Button:"Button__0OJ",Button_loading:"Button_loading__LD-",Button__iconBefore:"Button__iconBefore__BUe",Button__content:"Button__content__vnq",Button__indicator:"Button__indicator__HuA",Button__iconAfter:"Button__iconAfter__VhZ",Button_disabled:"Button_disabled__jkY",Button_stretched:"Button_stretched__mzq",Button_activeMode_ripple:"Button_activeMode_ripple__E5Y",Button_activeMode_highlight:"Button_activeMode_highlight__K3j",Button_size_xsmall:"Button_size_xsmall__QCm",Button_size_small:"Button_size_small__LLG",Button_size_medium:"Button_size_medium__fI9",Button_size_large:"Button_size_large__S2-",Button_variant_primary:"Button_variant_primary__yLL",Button_variant_secondary:"Button_variant_secondary__DR6",Button_variant_ghost:"Button_variant_ghost__EkG","Button_variant_primary-contrast":"Button_variant_primary-contrast__b63","Button_variant_secondary-contrast":"Button_variant_secondary-contrast__cey",Button_variant_overlay:"Button_variant_overlay__keO",Button_variant_destructive:"Button_variant_destructive__2Ug",Button__spinnerContainer:"Button__spinnerContainer__G4I",Button__ripple:"Button__ripple__jw0"},nn={Counter:"Counter__0Oj",Counter_variant_primary:"Counter_variant_primary__8Mz","Counter_variant_primary-contrast":"Counter_variant_primary-contrast__yFz",Counter_variant_attention:"Counter_variant_attention__IWH","Counter_variant_attention-contrast":"Counter_variant_attention-contrast__LHu",Counter_variant_promo:"Counter_variant_promo__9kD",Counter_variant_static:"Counter_variant_static__d8Y","Counter_variant_static-contrast":"Counter_variant_static-contrast__bAq",Counter_variant_default:"Counter_variant_default__weZ",Counter_variant_mute:"Counter_variant_mute__2SU",Counter_variant_menu:"Counter_variant_menu__qf0"};const rn=o((t,n)=>{const{className:r,value:o,rounded:a,variant:i="primary",...l}=t,c=C(nn.Counter,nn[`Counter_variant_${i}`],r),s=_(()=>a?Intl.NumberFormat("en",{notation:"compact"}).format(o):o,[a,o]);return e("span",{ref:n,className:c,...l,children:s})});rn.displayName="Counter";const on=e=>{switch(e){case"xsmall":return 16;case"small":case"medium":return 20;case"large":return 24}},an=e=>{switch(e){case"primary":case"destructive":case"overlay":return"contrast-static";case"secondary":return"primary";case"ghost":return"themed";case"primary-contrast":case"secondary-contrast":return"primary-static"}},ln=e=>{switch(e){case"primary":return{variant:"primary-contrast"};case"secondary":case"ghost":case"primary-contrast":case"secondary-contrast":return{variant:"static"};case"overlay":return{variant:"static-contrast"};case"destructive":return{variant:"attention-contrast"}}},cn=o((n,r)=>{const{className:o,iconBefore:a,iconAfter:i,indicator:l,children:u,onClick:d,loading:_,disabled:p=!1,asChild:f=!1,innerClassNames:m,stretched:h=!1,size:v="medium",variant:g="primary",...y}=n,b="button",x=f?re:b,w=Ue(),S=Le({asChild:f,children:u,disabled:p,loading:_,onClick:d,rootElement:b}),T=p||_,N="android"===w,I=C(tn.Button,tn[`Button_variant_${g}`],tn[`Button_size_${v}`],{[tn.Button_loading]:_,[tn.Button_disabled]:p,[tn.Button_stretched]:h,[tn.Button_activeMode_highlight]:!T&&!N,[tn.Button_activeMode_ripple]:!T&&N},o);return t(x,{ref:r,className:I,...S,...y,children:[Te(a)&&e("span",{className:C(tn.Button__iconBefore,m?.iconBefore),children:a}),_&&e("span",{className:C(tn.Button__spinnerContainer,m?.spinnerContainer),children:e(en,{className:C(m?.spinner),size:on(v),appearance:an(g)})}),e(ie,{children:Se({options:{asChild:f,children:u},content:t=>e(Lt,{className:C(tn.Button__content,m?.content),children:t},"subtree-container")})}),Te(l)&&e("span",{className:C(tn.Button__indicator,m?.indicator),children:(E=l,R=g,s(E)&&E.type===rn?c(E,{...ln(R)}):E)}),Te(i)&&e("span",{className:C(tn.Button__iconAfter,m?.iconAfter),children:i}),N&&!T&&e(jt,{className:tn.Button__ripple})]});var E,R});cn.displayName="Button";var sn={CellAction:"CellAction__vzN",CellAction_mode_primary:"CellAction_mode_primary__vZQ",CellAction_disabled:"CellAction_disabled__VZA",CellAction_mode_secondary:"CellAction_mode_secondary__AJk",CellAction_mode_themed:"CellAction_mode_themed__-Gg",CellAction_mode_destructive:"CellAction_mode_destructive__ovY",CellAction_mode_custom:"CellAction_mode_custom__3T8",CellAction_height_compact:"CellAction_height_compact__ysc",CellAction_height_normal:"CellAction_height_normal__ELj",CellAction_surface_island:"CellAction_surface_island__REC",CellAction__before:"CellAction__before__oZm",CellAction__content:"CellAction__content__Uib",CellAction__chevron:"CellAction__chevron__6SI"};const un=o((n,r)=>{const{className:o,before:a,children:i,innerClassNames:l,asChild:c=!1,mode:s="primary",surface:u="default",height:d="normal",showChevron:_=!1,...p}=n,f=C(sn.CellAction,sn[`CellAction_mode_${s}`],sn[`CellAction_height_${d}`],{[sn.CellAction_surface_island]:"island"===u,[sn.CellAction_disabled]:p.disabled},o);return t(Gt,{ref:r,className:f,asChild:c,as:"button",parentChildren:i,...p,children:[Te(a)&&e("span",{className:C(sn.CellAction__before,l?.before),children:a}),e(ie,{children:Se({options:{asChild:c,children:i},content:t=>e("span",{className:C(sn.CellAction__content,l?.content),children:t},"subtree-container")})}),_&&e(E,{className:C(sn.CellAction__chevron,l?.chevron)})]})});un.displayName="CellAction";var dn={CellHeader:"CellHeader__Epf",CellHeader_titleStyle_caps:"CellHeader_titleStyle_caps__nfB",CellHeader__content:"CellHeader__content__El-",CellHeader_titleStyle_normal:"CellHeader_titleStyle_normal__M-p",CellHeader_fullWidth:"CellHeader_fullWidth__h2Y",CellHeader__after:"CellHeader__after__RXN"};const _n=o((n,r)=>{const{className:o,titleStyle:a="caps",fullWidth:i=!1,children:l,after:c,innerClassNames:s,...u}=n,d=C(dn.CellHeader,dn[`CellHeader_titleStyle_${a}`],{[dn.CellHeader_fullWidth]:i},o);return t("div",{ref:r,className:d,...u,children:[Te(l)&&e("div",{className:C(dn.CellHeader__content,s?.content),children:l}),Te(c)&&e("div",{className:C(dn.CellHeader__after,s?.after),children:c})]})});_n.displayName="CellHeader";var pn={CellInput:"CellInput__92-",CellInput_disabled:"CellInput_disabled__fZ7",CellInput__input:"CellInput__input__gQ3",CellInput_height_compact:"CellInput_height_compact__Mv2",CellInput_height_normal:"CellInput_height_normal__ovc",CellInput_surface_island:"CellInput_surface_island__cls",CellInput__before:"CellInput__before__Hkm",CellInput__body:"CellInput__body__Egp",CellInput__clearButton:"CellInput__clearButton__znK"};const fn=o((n,r)=>{const{className:o,before:a,innerClassNames:i,disabled:l,height:c="normal",surface:s="default",...u}=n,d=C(pn.CellInput,pn[`CellInput_height_${c}`],{[pn.CellInput_surface_island]:"island"===s,[pn.CellInput_disabled]:l},o);return t("label",{className:d,children:[Te(a)&&e(Lt,{className:C(pn.CellInput__before,i?.before),maxLines:1,children:a}),e(It,{ref:r,className:C(pn.CellInput__body,i?.body),innerClassNames:{input:C(pn.CellInput__input,i?.input),clearButton:C(pn.CellInput__clearButton,i?.clearButton)},type:"text",disabled:l,...u})]})});fn.displayName="CellInput";var mn={CellList:"CellList__1ou",CellList_filled:"CellList_filled__ikE",CellList__body:"CellList__body__ouS",CellList_mode_island:"CellList_mode_island__aCu"};const hn=o((n,r)=>{const{className:o,header:a,children:i,mode:l="full-width",filled:c="island"===l,...s}=n,u=C(mn.CellList,mn[`CellList_mode_${l}`],{[mn.CellList_filled]:c},o);return t("div",{ref:r,className:u,...s,children:[Te(a)&&e("div",{className:mn.CellList__header,children:a}),e("div",{className:mn.CellList__body,children:i})]})});hn.displayName="CellList";var vn={CellSimple:"CellSimple__n0z",CellSimple_disabled:"CellSimple_disabled__T-3",CellSimple__title:"CellSimple__title__aYs",CellSimple__overline:"CellSimple__overline__Ncr",CellSimple__link:"CellSimple__link__ie-",CellSimple_subtitle_secondary:"CellSimple_subtitle_secondary__3uL",CellSimple__subtitle:"CellSimple__subtitle__oIF",CellSimple_subtitle_tertiary:"CellSimple_subtitle_tertiary__lz0",CellSimple_height_compact:"CellSimple_height_compact__HUQ",CellSimple_height_normal:"CellSimple_height_normal__pxj",CellSimple_surface_island:"CellSimple_surface_island__GzM",CellSimple__before:"CellSimple__before__5Q9",CellSimple__after:"CellSimple__after__2FK",CellSimple__content:"CellSimple__content__SOk",CellSimple__chevron:"CellSimple__chevron__cSs",CellSimple_separator:"CellSimple_separator__aOX"};const gn=o((n,r)=>{const{link:o,after:a,title:i,before:l,subtitle:c,children:s,overline:u,separator:d,className:_,innerClassNames:p,as:f="div",surface:m="default",height:h="normal",asChild:v=!1,disabled:g=!1,showChevron:y=!1,subtitleMode:b="secondary",...x}=n,w=C(vn.CellSimple,vn[`CellSimple_height_${h}`],vn[`CellSimple_subtitle_${b}`],{[vn.CellSimple_surface_island]:"island"===m,[vn.CellSimple_disabled]:g,[vn.CellSimple_separator]:d},_);return t(Gt,{ref:r,className:w,asChild:v,as:f,disabled:g,parentChildren:s,...x,children:[Te(l)&&e("div",{className:C(vn.CellSimple__before,p?.before),children:l}),e(ie,{children:Se({options:{asChild:v,children:s},content:n=>t("div",{className:C(vn.CellSimple__content,p?.content),children:[Te(u)&&e("div",{className:C(vn.CellSimple__overline,p?.overline),children:u}),Te(i)&&e("div",{className:C(vn.CellSimple__title,p?.title),children:i}),Te(c)&&e("div",{className:C(vn.CellSimple__subtitle,p?.subtitle),children:c}),n,o&&e("a",{className:C(vn.CellSimple__link,p?.link),href:o,target:"_blank",rel:"noreferrer",children:o})]},"subtree-container")})}),(Te(a)||y)&&t("div",{className:C(vn.CellSimple__after,p?.after),children:[a,y&&e(E,{className:C(vn.CellSimple__chevron,p?.chevron)})]})]})});gn.displayName="CellSimple";var yn="Checkbox__ChG",bn="Checkbox__control__FUK",Cn="Checkbox__input__ow-",xn="Checkbox__box__svi",wn="Checkbox__icon__Fa7",Sn="Checkbox__content__MrQ",Tn="Checkbox__label__ZKY",Nn="Checkbox__caption__CRn",In="Checkbox_animated__cbY",En="Checkbox_indeterminate__wqC",Rn="Checkbox_disabled__Wvo";const kn=o((n,r)=>{const{label:o,caption:a,indeterminate:i=!1,disabled:l,className:c,...s}=n,u=Te(o),d=Te(a),_=u||d,p=_?"label":"span",f=m(e=>{e&&(e.indeterminate=i)},[i]),h=C(yn,In,{[En]:i,[Rn]:l},c);return t(p,{className:h,children:[t("span",{className:bn,children:[e("input",{...s,ref:Ie(r,f),type:"checkbox",disabled:l,"aria-checked":i?"mixed":void 0,className:Cn}),e("span",{className:xn,children:e(T,{className:wn})})]}),_&&t("span",{className:Sn,children:[u&&e("span",{className:Tn,children:o}),d&&e("span",{className:Nn,children:a})]})]})});function An(){return"undefined"!=typeof window}function Mn(e){return Pn(e)?(e.nodeName||"").toLowerCase():"#document"}function Bn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ln(e){var t;return null==(t=(Pn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pn(e){return!!An()&&(e instanceof Node||e instanceof Bn(e).Node)}function On(e){return!!An()&&(e instanceof Element||e instanceof Bn(e).Element)}function Dn(e){return!!An()&&(e instanceof HTMLElement||e instanceof Bn(e).HTMLElement)}function Fn(e){return!(!An()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Bn(e).ShadowRoot)}function zn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function $n(e){return/^(table|td|th)$/.test(Mn(e))}function Un(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}kn.displayName="Checkbox";const Hn=/transform|translate|scale|rotate|perspective|filter/,jn=/paint|layout|strict|content/,Wn=e=>!!e&&"none"!==e;let Vn;function Kn(e){const t=On(e)?Xn(e):e;return Wn(t.transform)||Wn(t.translate)||Wn(t.scale)||Wn(t.rotate)||Wn(t.perspective)||!Yn()&&(Wn(t.backdropFilter)||Wn(t.filter))||Hn.test(t.willChange||"")||jn.test(t.contain||"")}function Yn(){return null==Vn&&(Vn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vn}function qn(e){return/^(html|body|#document)$/.test(Mn(e))}function Xn(e){return Bn(e).getComputedStyle(e)}function Gn(e){return On(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zn(e){if("html"===Mn(e))return e;const t=e.assignedSlot||e.parentNode||Fn(e)&&e.host||Ln(e);return Fn(t)?t.host:t}function Jn(e){const t=Zn(e);return qn(t)?(e.ownerDocument||e).body:Dn(t)&&zn(t)?t:Jn(t)}function Qn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Jn(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Bn(o);if(a){const e=er(i);return t.concat(i,i.visualViewport||[],zn(o)?o:[],e&&n?Qn(e):[])}return t.concat(o,Qn(o,[],n))}function er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const tr=Math.min,nr=Math.max,rr=Math.round,or=Math.floor,ar=e=>({x:e,y:e}),ir={left:"right",right:"left",bottom:"top",top:"bottom"};function lr(e,t){return"function"==typeof e?e(t):e}function cr(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function ur(e){return"x"===e?"y":"x"}function dr(e){return"y"===e?"height":"width"}function _r(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function pr(e){return ur(_r(e))}function fr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const mr=["left","right"],hr=["right","left"],vr=["top","bottom"],gr=["bottom","top"];function yr(e,t,n,r){const o=sr(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?hr:mr:t?mr:hr;case"left":case"right":return t?vr:gr;default:return[]}}(cr(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(fr)))),a}function br(e){const t=cr(e);return ir[t]+e.slice(t.length)}function Cr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}
|
|
2
2
|
/*!
|
|
3
3
|
* tabbable 6.5.0
|
|
4
4
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|