@maxhub/max-ui 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/MaxUI/MaxUI.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/is-server.d.ts +2 -0
- package/dist/helpers/is-server.d.ts.map +1 -0
- package/dist/hooks/use-system-color-scheme.d.ts +2 -1
- package/dist/hooks/use-system-color-scheme.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaxUI.d.ts","sourceRoot":"","sources":["../../../src/components/MaxUI/MaxUI.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,qBAAqB,CAAC;IAChE,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAA;IAE3C,SAAS,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAA;CAC/C;AAED,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"MaxUI.d.ts","sourceRoot":"","sources":["../../../src/components/MaxUI/MaxUI.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,qBAAqB,CAAC;IAChE,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAA;IAE3C,SAAS,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAA;CAC/C;AAED,eAAO,MAAM,KAAK,uGAiChB,CAAC"}
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-server.d.ts","sourceRoot":"","sources":["../../src/helpers/is-server.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,QAAO,OAAwC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
type SystemColorScheme = 'light' | 'dark';
|
|
2
2
|
interface Params {
|
|
3
|
+
defaultScheme?: SystemColorScheme;
|
|
3
4
|
listenChanges?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare const useSystemColorScheme: ({ listenChanges }?: Params) => SystemColorScheme;
|
|
6
|
+
export declare const useSystemColorScheme: ({ defaultScheme, listenChanges }?: Params) => SystemColorScheme;
|
|
6
7
|
export {};
|
|
7
8
|
//# sourceMappingURL=use-system-color-scheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-system-color-scheme.d.ts","sourceRoot":"","sources":["../../src/hooks/use-system-color-scheme.ts"],"names":[],"mappings":"AAIA,KAAK,iBAAiB,GAAG,OAAO,GAAG,MAAM,CAAC;AAE1C,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"use-system-color-scheme.d.ts","sourceRoot":"","sources":["../../src/hooks/use-system-color-scheme.ts"],"names":[],"mappings":"AAIA,KAAK,iBAAiB,GAAG,OAAO,GAAG,MAAM,CAAC;AAE1C,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,eAAO,MAAM,oBAAoB,sCAG9B,MAAM,KAAQ,iBAsChB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as a,jsxs as t}from"react/jsx-runtime";import*as n from"react";import{forwardRef as r,createContext as l,useContext as _,Children as i,cloneElement as o,isValidElement as s,useRef as c,useEffect as p,useMemo as d,useState as u,useLayoutEffect as m}from"react";function h(e){var a,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=h(e[a]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function v(){for(var e,a,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=h(e))&&(n&&(n+=" "),n+=a);return n}var y;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},g.apply(null,arguments)}var C,f=function(e){return n.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:12,height:16,fill:"none"},e),y||(y=n.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 B(){return B=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},B.apply(null,arguments)}var N;function b(){return b=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},b.apply(null,arguments)}var I,T=function(e){return n.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),N||(N=n.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 S(){return S=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},S.apply(null,arguments)}var A,x;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},w.apply(null,arguments)}var L=function(e){return n.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),A||(A=n.createElement("circle",{cx:10,cy:10,r:10,fill:"currentColor"})),x||(x=n.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 M(e,a){if("function"==typeof e)return e(a);null!=e&&(e.current=a)}var z=n.forwardRef(((a,t)=>{const{children:r,...l}=a,_=n.Children.toArray(r),i=_.find(O);if(i){const a=i.props.children,r=_.map((e=>e===i?n.Children.count(a)>1?n.Children.only(null):n.isValidElement(a)?a.props.children:null:e));return e(D,{...l,ref:t,children:n.isValidElement(a)?n.cloneElement(a,void 0,r):null})}return e(D,{...l,ref:t,children:r})}));z.displayName="Slot";var D=n.forwardRef(((e,a)=>{const{children:t,...r}=e;if(n.isValidElement(t)){const e=function(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;if(t)return e.ref;if(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(t),l=function(e,a){const t={...a};for(const n in a){const r=e[n],l=a[n];/^on[A-Z]/.test(n)?r&&l?t[n]=(...e)=>{l(...e),r(...e)}:r&&(t[n]=r):"style"===n?t[n]={...r,...l}:"className"===n&&(t[n]=[r,l].filter(Boolean).join(" "))}return{...e,...t}}(r,t.props);return t.type!==n.Fragment&&(l.ref=a?function(...e){return a=>{let t=!1;const n=e.map((e=>{const n=M(e,a);return t||"function"!=typeof n||(t=!0),n}));if(t)return()=>{for(let a=0;a<n.length;a++){const t=n[a];"function"==typeof t?t():M(e[a],null)}}}}(a,e):e),n.cloneElement(t,l)}return n.Children.count(t)>1?n.Children.only(null):null}));D.displayName="SlotClone";var E=({children:t})=>e(a,{children:t});function O(e){return n.isValidElement(e)&&e.type===E}var k="SvgButton__kk9";const H=r(((a,t)=>{const{className:n,asChild:r,...l}=a;return e(r?z:"button",{ref:t,className:v(k,n),...l})}));H.displayName="SvgButton";const j=l({size:48}),U=()=>_(j);var P={};const $=r(((a,t)=>{const{className:n,onClick:r,...l}=a,{size:_}=U(),i=(e=>e<40?12:e<54?16:e<72?20:24)(_);return e(H,{ref:t,className:v(P.AvatarCloseButton,n),onClick:e=>{e.preventDefault(),r?.(e)},...l,children:e(L,{width:i,height:i})})}));$.displayName="AvatarCloseButton";const R=e=>"string"==typeof e?e:`${e}px`,G=(e,a)=>{const{asChild:t,children:n}=e;if(!t)return"function"==typeof a?a(n):a;const r=i.only(n);return o(r,{children:"function"==typeof a?a(r.props.children):a})},W=e=>void 0!==e&&!1!==e&&null!==e&&""!==e,Y=()=>!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),X=(...e)=>{const a=e.filter(Boolean);if(a.length<=1){return a[0]??null}return e=>{for(const t of a)"function"==typeof t?t(e):t&&(t.current=e)}},F=()=>{};var q={AvatarContainer:"AvatarContainer__7c-",AvatarContainer_form_circle:"AvatarContainer_form_circle__J44",AvatarContainer__content:"AvatarContainer__content__h8v",AvatarContainer_form_squircle:"AvatarContainer_form_squircle__1i0",AvatarContainer__overlay:"AvatarContainer__overlay__qul",AvatarContainer__rightBottomCorner:"AvatarContainer__rightBottomCorner__kZG",AvatarContainer__rightTopCorner:"AvatarContainer__rightTopCorner__y4y"};const Z=r(((a,n)=>{const{className:r,style:l,children:_,overlay:i,rightTopCorner:o,rightBottomCorner:s,innerClassNames:c,size:p=48,asChild:d,form:u="circle",...m}=a,h=d?z:"div",y=v(q.AvatarContainer,q[`AvatarContainer_form_${u}`],r);return e(j.Provider,{value:{size:p},children:t(h,{ref:n,className:y,style:{"--MaxUi-AvatarContainer_size":`${p}px`,...l},...m,children:[e(E,{children:G({asChild:a.asChild,children:_},(a=>t("span",{className:v(q.AvatarContainer__content,c?.content),children:[a,W(i)&&e("span",{className:v(q.AvatarContainer__overlay,c?.overlay),children:i})]},"subtree-container")))}),W(s)&&e("span",{className:v(q.AvatarContainer__rightBottomCorner,c?.rightBottomCorner),children:s}),W(o)&&e("span",{className:v(q.AvatarContainer__rightTopCorner,c?.rightTopCorner),children:o})]})})}));Z.displayName="AvatarContainer";var J="AvatarIcon__ZUI";const Q=r(((a,t)=>{const{className:n,...r}=a;return e("span",{ref:t,className:v(J,n),...r})}));Q.displayName="AvatarIcon";const V=e=>{const{asChild:a,children:t,rootElement:n,disabled:r,loading:l}=e;if(!a&&"button"===n){return{disabled:r,...l?{"aria-disabled":!0}:{}}}if(a&&s(t)){const{type:e}=t;if("a"===e){return{"aria-disabled":r??l,...r?{onClick:e=>{e.preventDefault()},tabIndex:-1}:{}}}}return{role:"button",tabIndex:r?-1:0,"aria-disabled":r??l,...r?{onClick:void 0}:{}}},K=e=>{const a=c(e);return p((()=>{a.current=e})),d((()=>(...e)=>a.current?.(...e)),[])},ee=()=>{const{colorScheme:e}=ua();return e},ae=(e,a)=>{const[t,n]=u("idle");return m((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,l=e=>()=>{t&&n(e)};return n("loading"),r.onload=l("loaded"),r.onerror=l("error"),r.src=e,a&&(r.referrerPolicy=a),()=>{t=!1}}),[e,a]),t},te=()=>{const{platform:e}=ua();return e},ne=({listenChanges:e}={})=>{const[a,t]=u(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),n=e=>{t((()=>e.matches?"dark":"light"))};return p((()=>{const a=window.matchMedia("(prefers-color-scheme: dark)");return t((()=>a.matches?"dark":"light")),e?(a.addEventListener("change",n),()=>{a.removeEventListener("change",n)}):F}),[e]),a};var re={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 le=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},_e=r(((a,t)=>{const{className:n,children:r,gradient:l="red",..._}=a,{size:i}=U(),o=v(re.AvatarText,{[re[`AvatarText_gradient_${l}`]]:"custom"!==l},n);return e("span",{ref:t,className:o,..._,children:e("span",{className:re.AvatarText__in,style:le(i),children:r})})}));_e.displayName="AvatarText";var ie="AvatarImage__H7-";const oe=r(((a,t)=>{const{className:n,fallback:r,fallbackGradient:l="red",..._}=a,[i,o]=u("idle"),s=ae(_.src??_.srcSet,_.referrerPolicy),c=K((e=>{o(e)}));return m((()=>{"idle"!==s&&c(s)}),[s,c]),"error"===i?e(_e,{gradient:l,children:r}):e("img",{ref:t,className:v(ie,n),..._})}));oe.displayName="AvatarImage";var se={AvatarOnlineDot:"AvatarOnlineDot__-GT",AvatarOnlineDot_size_xs:"AvatarOnlineDot_size_xs__2SY",AvatarOnlineDot__dot:"AvatarOnlineDot__dot__8dL",AvatarOnlineDot_size_s:"AvatarOnlineDot_size_s__T1u",AvatarOnlineDot_size_m:"AvatarOnlineDot_size_m__ris",AvatarOnlineDot_size_l:"AvatarOnlineDot_size_l__zo4"};const ce=r(((a,t)=>{const{className:n,...r}=a,{size:l}=U(),_=(e=>e<40?"xs":e<54?"s":e<72?"m":"l")(l),i=v(se.AvatarOnlineDot,se[`AvatarOnlineDot_size_${_}`],n);return e("span",{ref:t,className:i,...r,children:e("span",{className:se.AvatarOnlineDot__dot})})}));ce.displayName="AvatarOnlineDot";var pe="AvatarOverlay__-nV";const de=r(((a,t)=>{const{className:n,onClick:r,...l}=a;return e("span",{ref:t,className:v(pe,n),onClick:e=>{e.preventDefault(),r?.(e)},...l})}));de.displayName="AvatarOverlay";const ue=Object.assign({},{Container:Z,Image:oe,Overlay:de,Icon:Q,Text:_e,OnlineDot:ce,CloseButton:$});var me="EllipsisText__vGw",he="EllipsisText_multiline__1tx",ve="EllipsisText_singleLine__3CP";const ye=r(((a,t)=>{const{className:n,maxLines:r=1,style:l,asChild:_,...i}=a,o=_?z:"span",s=v(me,{[he]:r>1,[ve]:1===r},n);return e(o,{ref:t,className:s,style:{"--MaxUi-EllipsisText_linesCount":r,...l},...i})}));ye.displayName="EllipsisText";var ge="Ripple__R4t",Ce="Ripple_active__Rit";const fe=r(((a,t)=>{const{className:n,...r}=a,l=c(null),_=c(null),i=e=>{const a=e.currentTarget.getBoundingClientRect();((e,a)=>{null!==_.current&&(_.current.classList.remove(Ce),_.current.style.top=a+"px",_.current.style.left=e+"px",_.current.classList.add(Ce))})(e.clientX-(a.left??0),e.clientY-(a.top??0))};return p((()=>{if(_.current)return l.current=_.current.parentElement,null!==l.current&&l.current.addEventListener("pointerdown",i),()=>{null!==l.current&&l.current?.removeEventListener("pointerdown",i)}}),[]),e("span",{ref:X(t,_),role:"presentation","aria-hidden":!0,className:v(ge,n),onAnimationEnd:()=>{null!==_.current&&_.current.classList.remove(Ce)},...r})}));fe.displayName="Ripple";var Be={Spinner:"Spinner__piy",rotation:"rotation__CUP",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",Spinner__spinner:"Spinner__spinner__Qdc"};const Ne=r(((a,n)=>{const{className:r,size:l=20,appearance:_="primary",...i}=a,o=v(Be.Spinner,Be[`Spinner_appearance_${_}`],r);return e("span",{ref:n,role:"status",className:o,...i,children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 20 20",fill:"none",children:[e("g",{clipPath:"url(#spinner)",children:e("g",{transform:"matrix(8.74228e-10 -0.01 0.01 8.74228e-10 10 10)",children:e("foreignObject",{x:"-1120",y:"-1120",width:"2240",height:"2240",children:e("div",{className:Be.Spinner__spinner})})})}),e("defs",{children:e("clipPath",{id:"spinner",children:e("path",{d:"M8.74228e-07 10C1.35705e-06 4.47715 4.47715 -1.35705e-06 10 -8.74228e-07C15.5228 -3.91405e-07 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 3.91405e-07 15.5228 8.74228e-07 10ZM18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10Z"})})})]})})}));Ne.displayName="Spinner";var be={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_small:"Button_size_small__LLG",Button_mode_primary:"Button_mode_primary__lfx",Button_mode_secondary:"Button_mode_secondary__u7i",Button_mode_tertiary:"Button_mode_tertiary__1G9",Button_size_medium:"Button_size_medium__fI9",Button_size_large:"Button_size_large__S2-",Button_mode_link:"Button_mode_link__a3e",Button_appearance_themed:"Button_appearance_themed__z2B",Button_appearance_negative:"Button_appearance_negative__-Iy",Button_appearance_neutral:"Button_appearance_neutral__SAu","Button_appearance_neutral-themed":"Button_appearance_neutral-themed__H03","Button_appearance_contrast-static":"Button_appearance_contrast-static__DgE",Button__spinnerContainer:"Button__spinnerContainer__G4I",Button__ripple:"Button__ripple__jw0"},Ie={Counter:"Counter__0Oj",Counter_appearance_themed:"Counter_appearance_themed__anX",Counter_mode_filled:"Counter_mode_filled__9Uy",Counter_disabled:"Counter_disabled__Nhg",Counter_muted:"Counter_muted__3IJ",Counter_mode_inverse:"Counter_mode_inverse__IIJ",Counter_appearance_neutral:"Counter_appearance_neutral__SN9","Counter_appearance_neutral-themed":"Counter_appearance_neutral-themed__yq8","Counter_appearance_neutral-static":"Counter_appearance_neutral-static__UeR",Counter_appearance_negative:"Counter_appearance_negative__JZg"};const Te=r(((a,t)=>{const{className:n,value:r,rounded:l,appearance:_="themed",mode:i="filled",disabled:o=!1,muted:s=!1,...c}=a,p=v(Ie.Counter,Ie[`Counter_appearance_${_}`],Ie[`Counter_mode_${i}`],{[Ie.Counter_disabled]:o,[Ie.Counter_muted]:s},n),u=d((()=>l?Intl.NumberFormat("en",{notation:"compact"}).format(r):r),[l,r]);return e("span",{ref:t,className:p,...c,role:"",children:u})}));Te.displayName="Counter";const Se=(e,a)=>{if("primary"===a){if("themed"===e)return"contrast-static";if("negative"===e)return"contrast-static";if("neutral"===e)return"contrast";if("neutral-themed"===e)return"contrast-static";if("contrast-static"===e)return"primary-static"}return"themed"===e?"themed":"negative"===e?"negative":"neutral"===e?"primary":"neutral-themed"===e?"neutral-themed":"contrast-static"===e?"contrast-static":"themed"},Ae=(e,a)=>"negative"===e?{mode:"primary"===a?"inverse":"filled",appearance:"negative"}:"neutral"===e?{mode:"primary"===a?"inverse":"filled",appearance:"neutral"}:"neutral-themed"===e?{mode:"primary"===a?"inverse":"filled",appearance:"neutral-themed"}:"contrast-static"===e?{mode:"primary"===a?"filled":"inverse",appearance:"neutral-static"}:{mode:"primary"===a?"inverse":"filled",appearance:"themed"},xe=(e,a,t,n)=>s(e)&&e.type===Te?o(e,{...Ae(a,t),disabled:n}):e,we=r(((a,n)=>{const{className:r,iconBefore:l,iconAfter:_,indicator:i,children:o,onClick:s,loading:c,disabled:p=!1,asChild:d=!1,innerClassNames:u,stretched:m=!1,size:h="medium",mode:y="primary",appearance:g="themed",...C}=a,f="button",B=d?z:f,N=te(),b=V({asChild:d,children:o,disabled:p,rootElement:f,loading:c}),I=p||c,T="android"===N&&"link"!==y,S=v(be.Button,be[`Button_appearance_${g}`],be[`Button_mode_${y}`],be[`Button_size_${h}`],{[be.Button_loading]:c,[be.Button_disabled]:p,[be.Button_stretched]:m,[be.Button_activeMode_highlight]:!I&&!T,[be.Button_activeMode_ripple]:!I&&T},r);return t(B,{ref:n,className:S,onClick:e=>{c||s?.(e)},...b,...C,children:[W(l)&&e("span",{className:v(be.Button__iconBefore,u?.iconBefore),children:l}),c&&e("span",{className:v(be.Button__spinnerContainer,u?.spinnerContainer),children:e(Ne,{className:v(u?.spinner),size:(A=h,"small"===A?20:24),appearance:Se(g,y)})}),e(E,{children:G({asChild:d,children:o},(a=>e(ye,{className:v(be.Button__content,u?.content),children:a},"subtree-container")))}),W(i)&&e("span",{className:v(be.Button__indicator,u?.indicator),children:xe(i,g,y,p)}),W(_)&&e("span",{className:v(be.Button__iconAfter,u?.iconAfter),children:_}),T&&!I&&e(fe,{className:be.Button__ripple})]});var A}));we.displayName="Button";var Le="Tappable__TDG",Me="Tappable_interactive__fYU",ze="Tappable_disabled__DQf",De="Tappable_activeMode_ripple__YMg",Ee="Tappable_activeMode_highlight__W7X",Oe="Tappable__ripple__XiX";const ke=r(((a,n)=>{const{className:r,disabled:l,asChild:_,children:i,parentChildren:o,as:c="div",...p}=a,d=_?z:c,u=te(),m=V({asChild:_,children:i,disabled:l,rootElement:c}),h=(({onClick:e,href:a,children:t,asChild:n,parentChildren:r=t})=>n?!(!n||!s(r))&&("href"in r.props||"onClick"in r.props):!!e||!!a)(a),y="android"===u&&h&&!l,g=v(Le,{[Me]:h,[ze]:l,[Ee]:!y,[De]:y},r);return t(d,{ref:n,className:g,...h?m:{},...p,children:[i,y&&e(fe,{className:Oe})]})}));ke.displayName="Tappable";var He={CellAction:"CellAction__vzN",CellAction_mode_primary:"CellAction_mode_primary__vZQ",CellAction_disabled:"CellAction_disabled__VZA",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__before:"CellAction__before__oZm",CellAction__content:"CellAction__content__Uib",CellAction__chevron:"CellAction__chevron__6SI"};const je=r(((a,n)=>{const{className:r,before:l,children:_,innerClassNames:i,asChild:o=!1,mode:s="primary",height:c="normal",showChevron:p=!1,...d}=a,u=v(He.CellAction,He[`CellAction_mode_${s}`],He[`CellAction_height_${c}`],{[He.CellAction_disabled]:d.disabled},r);return t(ke,{ref:n,className:u,asChild:o,as:"button",parentChildren:_,...d,children:[W(l)&&e("span",{className:v(He.CellAction__before,i?.before),children:l}),e(E,{children:G({asChild:o,children:_},(a=>e("span",{className:v(He.CellAction__content,i?.content),children:a},"subtree-container")))}),p&&e(f,{className:v(He.CellAction__chevron,i?.chevron)})]})}));je.displayName="CellAction";var Ue={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 Pe=r(((a,n)=>{const{className:r,titleStyle:l="caps",fullWidth:_=!1,children:i,after:o,innerClassNames:s,...c}=a,p=v(Ue.CellHeader,Ue[`CellHeader_titleStyle_${l}`],{[Ue.CellHeader_fullWidth]:_},r);return t("div",{ref:n,className:p,...c,children:[W(i)&&e("div",{className:v(Ue.CellHeader__content,s?.content),children:i}),W(o)&&e("div",{className:v(Ue.CellHeader__after,s?.after),children:o})]})}));Pe.displayName="CellHeader";var $e="ClearableInput__FRL",Re="ClearableInput__button__GlG";const Ge={ios:e((function(e){return n.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),C||(C=n.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"})))}),{}),android:e((function(e){return n.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),I||(I=n.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"})))}),{})},We=r(((a,n)=>{const{className:r,onChange:l,innerClassNames:_,withClearButton:i=!0,disabled:o,...s}=a,p=c(null),[d,m]=u(!s.value&&!s.defaultValue),h=te();return t("span",{className:v($e,r),children:[e("input",{ref:X(p,n),className:v(_?.input),onChange:e=>{l?.(e),m(!e.target.value)},disabled:o,...s}),!d&&!o&&i&&e(H,{className:v(Re,_?.clearButton),onClick:()=>{p.current&&((e,a="")=>{const t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set;t?.call(e,a);const n=new Event("input",{bubbles:!0});e.dispatchEvent(n)})(p.current)},"aria-label":"Очистить",children:Ge[h]})]})}));We.displayName="ClearableInput";var Ye={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__before:"CellInput__before__Hkm",CellInput__body:"CellInput__body__Egp",CellInput__clearButton:"CellInput__clearButton__znK"};const Xe=r(((a,n)=>{const{className:r,height:l="normal",before:_,innerClassNames:i,disabled:o,...s}=a,c=v(Ye.CellInput,Ye[`CellInput_height_${l}`],{[Ye.CellInput_disabled]:o},r);return t("label",{className:c,children:[W(_)&&e(ye,{className:v(Ye.CellInput__before,i?.before),maxLines:1,children:_}),e(We,{ref:n,className:v(Ye.CellInput__body,i?.body),innerClassNames:{input:v(Ye.CellInput__input,i?.input),clearButton:v(Ye.CellInput__clearButton,i?.clearButton)},type:"text",disabled:o,...s})]})}));Xe.displayName="CellInput";var Fe={CellList:"CellList__1ou",CellList_filled:"CellList_filled__ikE",CellList__body:"CellList__body__ouS",CellList_mode_island:"CellList_mode_island__aCu"};const qe=r(((a,n)=>{const{className:r,header:l,children:_,mode:i="full-width",filled:o="island"===i,...s}=a,c=v(Fe.CellList,Fe[`CellList_mode_${i}`],{[Fe.CellList_filled]:o},r);return t("div",{ref:n,className:c,...s,children:[W(l)&&e("div",{className:Fe.CellList__header,children:l}),e("div",{className:Fe.CellList__body,children:_})]})}));qe.displayName="CellList";var Ze={CellSimple:"CellSimple__n0z",CellSimple_disabled:"CellSimple_disabled__T-3",CellSimple__subtitle:"CellSimple__subtitle__oIF",CellSimple__overline:"CellSimple__overline__Ncr",CellSimple_height_compact:"CellSimple_height_compact__HUQ",CellSimple_height_normal:"CellSimple_height_normal__pxj",CellSimple__before:"CellSimple__before__5Q9",CellSimple__after:"CellSimple__after__2FK",CellSimple__content:"CellSimple__content__SOk",CellSimple__title:"CellSimple__title__aYs",CellSimple__chevron:"CellSimple__chevron__cSs"};const Je=r(((a,n)=>{const{className:r,title:l,subtitle:_,before:i,after:o,children:s,overline:c,showChevron:p=!1,asChild:d=!1,disabled:u=!1,innerClassNames:m,height:h="normal",as:y="div",...g}=a,C=v(Ze.CellSimple,Ze[`CellSimple_height_${h}`],{[Ze.CellSimple_disabled]:u},r);return t(ke,{ref:n,className:C,asChild:d,as:y,parentChildren:s,...g,children:[W(i)&&e("div",{className:v(Ze.CellSimple__before,m?.before),children:i}),e(E,{children:G({asChild:d,children:s},(a=>t("div",{className:v(Ze.CellSimple__content,m?.content),children:[W(c)&&e("div",{className:v(Ze.CellSimple__overline,m?.overline),children:c}),W(l)&&e("div",{className:v(Ze.CellSimple__title,m?.title),children:l}),W(_)&&e("div",{className:v(Ze.CellSimple__subtitle,m?.subtitle),children:_}),a]},"subtree-container")))}),(W(o)||p)&&t("div",{className:v(Ze.CellSimple__after,m?.after),children:[o,p&&e(f,{className:v(Ze.CellSimple__chevron,m?.chevron)})]})]})}));Je.displayName="CellSimple";var Qe="Container__MSr",Ve="Container_fullWidth__Dor";const Ke=r(((a,t)=>{const{className:n,asChild:r,fullWidth:l,..._}=a,i=r?z:"div",o=v(Qe,{[Ve]:l},n);return e(i,{ref:t,className:o,..._})}));Ke.displayName="Container";var ea={Dot:"Dot__dio",Dot_appearance_themed:"Dot_appearance_themed__AJa","Dot_appearance_contrast-pinned":"Dot_appearance_contrast-pinned__i8T","Dot_appearance_neutral-fade":"Dot_appearance_neutral-fade__paA","Dot_appearance_accent-red":"Dot_appearance_accent-red__GZs",Dot_appearance_inherit:"Dot_appearance_inherit__xh2"};const aa=r(((a,t)=>{const{className:n,appearance:r="inherit",...l}=a,_=v(ea.Dot,ea[`Dot_appearance_${r}`],n);return e("span",{ref:t,className:_,...l})}));aa.displayName="Dot";var ta="Flex__8ia";const na=r(((a,t)=>{const{className:n,display:r="flex",direction:l="row",align:_="flex-start",justify:i="start",asChild:o,wrap:s,style:c,gap:p,gapX:d,gapY:u,...m}=a;return e(o?z:"div",{ref:t,className:v(ta,n),style:{flexDirection:l,justifyContent:i,alignItems:_,flexWrap:s,...c,display:r,"--MaxUi-Flex_gapX":R(d??p??0),"--MaxUi-Flex_gapY":R(u??p??0)},...m})}));na.displayName="Flex";var ra="Grid__tMN";const la=r(((a,t)=>{const{className:n,style:r,display:l="grid",align:_="start",justify:i="start",gap:o,gapX:s,gapY:c,cols:p,rows:d,asChild:u,...m}=a;return e(u?z:"div",{ref:t,className:v(ra,n),style:{justifyContent:i,alignItems:_,...r,display:l,"--MaxUi-Grid_gapX":R(s??o??0),"--MaxUi-Grid_gapY":R(c??o??0),"--MaxUi-Grid_cols":p??0,"--MaxUi-Grid_rows":d??0},...m})}));la.displayName="Grid";const _a=(e,a)=>{if("primary"===a){if("themed"===e)return"contrast-static";if("negative"===e)return"contrast-static";if("neutral"===e)return"contrast";if("neutral-themed"===e)return"contrast-static";if("contrast-static"===e)return"primary-static"}return"themed"===e?"themed":"negative"===e?"negative":"neutral"===e?"primary":"neutral-themed"===e?"neutral-themed":"contrast-static"===e?"contrast-static":"themed"};var ia={IconButton:"IconButton__KCr",IconButton_loading:"IconButton_loading__RxW",IconButton__content:"IconButton__content__dCL",IconButton_disabled:"IconButton_disabled__SZj",IconButton_activeMode_ripple:"IconButton_activeMode_ripple__asi",IconButton_activeMode_highlight:"IconButton_activeMode_highlight__h15",IconButton_mode_primary:"IconButton_mode_primary__FqT",IconButton_size_small:"IconButton_size_small__e3f",IconButton_mode_secondary:"IconButton_mode_secondary__d4Q",IconButton_mode_tertiary:"IconButton_mode_tertiary__s90",IconButton_size_medium:"IconButton_size_medium__MQQ",IconButton_size_large:"IconButton_size_large__9oz",IconButton_appearance_themed:"IconButton_appearance_themed__jUC",IconButton_mode_link:"IconButton_mode_link__kNB",IconButton_appearance_negative:"IconButton_appearance_negative__qI2",IconButton_appearance_neutral:"IconButton_appearance_neutral__8iK","IconButton_appearance_neutral-themed":"IconButton_appearance_neutral-themed__xJM","IconButton_appearance_contrast-static":"IconButton_appearance_contrast-static__Fp4",IconButton__spinnerContainer:"IconButton__spinnerContainer__9--",IconButton__ripple:"IconButton__ripple__l8M"};const oa=r(((a,n)=>{const{children:r,className:l,disabled:_,innerClassNames:i,loading:o,asChild:s=!1,size:c="medium",mode:p="primary",appearance:d="themed",...u}=a,m="button",h=s?z:m,y=te(),g=V({asChild:s,children:r,disabled:_,rootElement:m,loading:o}),C=_||o,f="android"===y&&"link"!==p,B=v(ia.IconButton,ia[`IconButton_appearance_${d}`],ia[`IconButton_mode_${p}`],ia[`IconButton_size_${c}`],{[ia.IconButton_loading]:o,[ia.IconButton_disabled]:_,[ia.IconButton_activeMode_highlight]:!C&&!f,[ia.IconButton_activeMode_ripple]:!C&&f},l);return t(h,{ref:n,className:B,...g,...u,children:[o&&e("span",{className:v(ia.IconButton__spinnerContainer,i?.spinnerContainer),children:e(Ne,{className:v(i?.spinner),size:(N=c,"small"===N?20:24),appearance:_a(d,p)})}),e(E,{children:G({asChild:s,children:r},(a=>e("span",{className:v(ia.IconButton__content,i?.content),children:a},"subtree-container")))}),f&&!C&&e(fe,{className:ia.IconButton__ripple})]});var N}));oa.displayName="IconButton";var sa={Input:"Input__A3w",Input_disabled:"Input_disabled__mpt",Input_compact:"Input_compact__gBl",Input_mode_primary:"Input_mode_primary__2Mr",Input_mode_secondary:"Input_mode_secondary__c6D",Input__body:"Input__body__sVJ",Input__iconBefore:"Input__iconBefore__gxx",Input__iconAfter:"Input__iconAfter__jL1",Input__clearButton:"Input__clearButton__nKe",Input__input:"Input__input__gy5"};const ca=r(((a,n)=>{const{className:r,iconBefore:l,iconAfter:_,innerClassNames:i,withClearButton:o,compact:s=!1,mode:c="primary",...p}=a,d=v(sa.Input,sa[`Input_mode_${c}`],{[sa.Input_compact]:s,[sa.Input_disabled]:p.disabled},r);return t("label",{className:d,children:[W(l)&&e("div",{className:v(sa.Input__iconBefore,i?.iconBefore),children:l}),e(We,{ref:n,className:v(sa.Input__body,i?.body),withClearButton:o,innerClassNames:{input:v(sa.Input__input,i?.input),clearButton:v(sa.Input__clearButton,i?.clearButton)},...p}),W(_)&&e("div",{className:v(sa.Input__iconAfter,i?.iconAfter),children:_})]})}));ca.displayName="Input";var pa={MaxUI:"MaxUI__g7Q",MaxUI_platform_ios:"MaxUI_platform_ios__gAV",MaxUI_platform_android:"MaxUI_platform_android__m3U",MaxUI_colorScheme_light:"MaxUI_colorScheme_light__Woo",MaxUI_colorScheme_dark:"MaxUI_colorScheme_dark__jFq"};const da=l({platform:"ios",colorScheme:"light"}),ua=()=>_(da),ma=r(((a,t)=>{const{children:n,className:r,colorScheme:l,platform:_=(Y()?"ios":"android")}=a,i=ne({listenChanges:!l}),o=l??i,s=d((()=>({colorScheme:o,platform:_})),[]),c=v(pa.MaxUI,pa[`MaxUI_colorScheme_${o}`],pa[`MaxUI_platform_${_}`],r);return e(da.Provider,{value:s,children:e("div",{ref:t,className:c,children:n})})}));ma.displayName="MaxUI";var ha={Panel:"Panel__kpB",Panel_centeredX:"Panel_centeredX__jxE",Panel_centeredY:"Panel_centeredY__fp1",Panel_mode_primary:"Panel_mode_primary__hES",Panel_mode_secondary:"Panel_mode_secondary__yer"};const va=r(((a,t)=>{const{className:n,mode:r="primary",centeredX:l,centeredY:_,...i}=a,o=v(ha.Panel,ha[`Panel_mode_${r}`],{[ha.Panel_centeredX]:l,[ha.Panel_centeredY]:_},n);return e("div",{ref:t,className:o,...i})}));va.displayName="Panel";var ya={SearchInput:"SearchInput__cI6",SearchInput__body:"SearchInput__body__WUT",SearchInput__icon:"SearchInput__icon__dsa",SearchInput__clearButton:"SearchInput__clearButton__qsm",SearchInput__input:"SearchInput__input__xoX",SearchInput_platform_ios:"SearchInput_platform_ios__Sn7",SearchInput_platform_android:"SearchInput_platform_android__QG9"};const ga=r(((a,n)=>{const{className:r,placeholder:l="Поиск",innerClassNames:_,...i}=a,o=te(),s=v(ya.SearchInput,ya[`SearchInput_platform_${o}`],r);return t("label",{className:s,children:[e(T,{className:ya.SearchInput__icon}),e(We,{ref:n,className:v(ya.SearchInput__body,_?.body),innerClassNames:{input:v(ya.SearchInput__input,_?.input),clearButton:v(ya.SearchInput__clearButton,_?.clearButton)},type:"text",placeholder:l,...i})]})}));ga.displayName="SearchInput";var Ca={Switch:"Switch__-vj",Switch__toggle:"Switch__toggle__WU2",Switch__thumb:"Switch__thumb__jlX",Switch__input:"Switch__input__EDr",Switch_platform_ios:"Switch_platform_ios__B-C",Switch_platform_android:"Switch_platform_android__72T"};const fa=r(((a,n)=>{const{className:r,...l}=a,_=te(),i=v(Ca.Switch,Ca[`Switch_platform_${_}`],r);return t("span",{className:i,children:[e("input",{ref:n,type:"checkbox",role:"switch",className:Ca.Switch__input,...l}),e("span",{className:Ca.Switch__toggle,children:e("span",{className:Ca.Switch__thumb})})]})}));fa.displayName="Switch";var Ba={Textarea:"Textarea__Sy6",Textarea_disabled:"Textarea_disabled__uY3",Textarea_mode_primary:"Textarea_mode_primary__E7l",Textarea_mode_secondary:"Textarea_mode_secondary__BYw",Textarea__textarea:"Textarea__textarea__Ok-"};const Na=r(((a,t)=>{const{className:n,innerClassNames:r,mode:l="primary",..._}=a,i=v(Ba.Textarea,Ba[`Textarea_mode_${l}`],{[Ba.Textarea_disabled]:_.disabled},n);return e("div",{className:i,children:e("textarea",{ref:t,className:v(Ba.Textarea__textarea,r?.textarea),..._})})}));Na.displayName="Textarea";var ba={ToolButton:"ToolButton__lde",ToolButton_appearance_default:"ToolButton_appearance_default__gqg",ToolButton_disabled:"ToolButton_disabled__gq5",ToolButton_appearance_secondary:"ToolButton_appearance_secondary__ghs",ToolButton_withLabel:"ToolButton_withLabel__FsL",ToolButton__icon:"ToolButton__icon__ds5",ToolButton__label:"ToolButton__label__GCi"};const Ia=r(((a,n)=>{const{className:r,icon:l,children:_,asChild:i,innerClassNames:o,appearance:s="default",disabled:c=!1,...p}=a,d=v(ba.ToolButton,ba[`ToolButton_appearance_${s}`],{[ba.ToolButton_withLabel]:W(_),[ba.ToolButton_disabled]:c},r);return t(ke,{ref:n,className:d,as:"button",parentChildren:_,asChild:i,disabled:c,...p,children:[W(l)&&e("span",{className:v(ba.ToolButton__icon,o?.icon),children:l}),W(_)&&e(E,{children:G({asChild:i,children:_},(a=>e(ye,{maxLines:1,className:v(ba.ToolButton__label,o?.label),children:a},"subtree-container")))})]})}));Ia.displayName="ToolButton";var Ta={TypographyAction_variant_large:"TypographyAction_variant_large__l5j",TypographyAction_variant_medium:"TypographyAction_variant_medium__9H-",TypographyAction_variant_small:"TypographyAction_variant_small__-LL",TypographyAction_variant_label:"TypographyAction_variant_label__vhv"};const Sa=r(((a,t)=>{const{className:n,variant:r="large",asChild:l,..._}=a,i=l?z:"span",o=v(Ta.TypographyAction,Ta[`TypographyAction_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));Sa.displayName="TypographyAction";var Aa={TypographyBody_variant_large:"TypographyBody_variant_large__vlS",TypographyBody_variant_medium:"TypographyBody_variant_medium__9v3",TypographyBody_variant_small:"TypographyBody_variant_small__beJ","TypographyBody_variant_small-strong":"TypographyBody_variant_small-strong__mWy","TypographyBody_variant_small-caps":"TypographyBody_variant_small-caps__18r"};const xa=r(((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?z:"span",o=v(Aa.TypographyBody,Aa[`TypographyBody_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));xa.displayName="TypographyBody";var wa="TypographyDisplay__6MW";const La=r(((a,t)=>{const{className:n,asChild:r,...l}=a;return e(r?z:"span",{ref:t,className:v(wa,n),...l})}));La.displayName="TypographyDisplay";var Ma={"TypographyHeadline_variant_large-strong":"TypographyHeadline_variant_large-strong__mwz",TypographyHeadline_variant_medium:"TypographyHeadline_variant_medium__s92","TypographyHeadline_variant_medium-strong":"TypographyHeadline_variant_medium-strong__dFT",TypographyHeadline_variant_small:"TypographyHeadline_variant_small__8Ei","TypographyHeadline_variant_small-strong":"TypographyHeadline_variant_small-strong__kUR"};const za=r(((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?z:"span",o=v(Ma.TypographyHeadline,Ma[`TypographyHeadline_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));za.displayName="TypographyHeadline";var Da={TypographyLabel_variant_large:"TypographyLabel_variant_large__6vr","TypographyLabel_variant_large-strong":"TypographyLabel_variant_large-strong__uCg","TypographyLabel_variant_large-caps":"TypographyLabel_variant_large-caps__b1i",TypographyLabel_variant_medium:"TypographyLabel_variant_medium__Xo5","TypographyLabel_variant_medium-strong":"TypographyLabel_variant_medium-strong__Bk8","TypographyLabel_variant_small-strong":"TypographyLabel_variant_small-strong__qCw","TypographyLabel_variant_small-caps":"TypographyLabel_variant_small-caps__beb"};const Ea=r(((a,t)=>{const{className:n,variant:r="large",asChild:l,..._}=a,i=l?z:"span",o=v(Da.TypographyLabel,Da[`TypographyLabel_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));Ea.displayName="TypographyLabel";var Oa={"TypographyTitle_variant_large-strong":"TypographyTitle_variant_large-strong__9PL","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 ka=r(((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?z:"span",o=v(Oa.TypographyTitle,Oa[`TypographyTitle_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));ka.displayName="TypographyTitle";const Ha=Object.assign({},{Display:La,Headline:za,Title:ka,Body:xa,Label:Ea,Action:Sa});export{ue as Avatar,we as Button,je as CellAction,Pe as CellHeader,Xe as CellInput,qe as CellList,Je as CellSimple,Ke as Container,Te as Counter,aa as Dot,ye as EllipsisText,na as Flex,la as Grid,oa as IconButton,ca as Input,ma as MaxUI,da as MaxUIContext,va as Panel,fe as Ripple,ga as SearchInput,Ne as Spinner,H as SvgButton,fa as Switch,ke as Tappable,Na as Textarea,Ia as ToolButton,Ha as Typography,ua as useAppearance,V as useButtonLikeProps,K as useCallbackRef,ee as useColorScheme,ae as useImageLoadingStatus,te as usePlatform,ne as useSystemColorScheme};
|
|
1
|
+
import{jsx as e,Fragment as a,jsxs as t}from"react/jsx-runtime";import*as n from"react";import{forwardRef as r,createContext as l,useContext as _,Children as i,cloneElement as o,isValidElement as s,useRef as c,useEffect as p,useMemo as d,useState as u,useLayoutEffect as m}from"react";function h(e){var a,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=h(e[a]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function v(){for(var e,a,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=h(e))&&(n&&(n+=" "),n+=a);return n}var y;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},g.apply(null,arguments)}var f,C=function(e){return n.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:12,height:16,fill:"none"},e),y||(y=n.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 B(){return B=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},B.apply(null,arguments)}var N;function b(){return b=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},b.apply(null,arguments)}var I,T=function(e){return n.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),N||(N=n.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 S(){return S=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},S.apply(null,arguments)}var A,x;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},w.apply(null,arguments)}var L=function(e){return n.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),A||(A=n.createElement("circle",{cx:10,cy:10,r:10,fill:"currentColor"})),x||(x=n.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 M(e,a){if("function"==typeof e)return e(a);null!=e&&(e.current=a)}var z=n.forwardRef(((a,t)=>{const{children:r,...l}=a,_=n.Children.toArray(r),i=_.find(O);if(i){const a=i.props.children,r=_.map((e=>e===i?n.Children.count(a)>1?n.Children.only(null):n.isValidElement(a)?a.props.children:null:e));return e(D,{...l,ref:t,children:n.isValidElement(a)?n.cloneElement(a,void 0,r):null})}return e(D,{...l,ref:t,children:r})}));z.displayName="Slot";var D=n.forwardRef(((e,a)=>{const{children:t,...r}=e;if(n.isValidElement(t)){const e=function(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;if(t)return e.ref;if(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(t),l=function(e,a){const t={...a};for(const n in a){const r=e[n],l=a[n];/^on[A-Z]/.test(n)?r&&l?t[n]=(...e)=>{l(...e),r(...e)}:r&&(t[n]=r):"style"===n?t[n]={...r,...l}:"className"===n&&(t[n]=[r,l].filter(Boolean).join(" "))}return{...e,...t}}(r,t.props);return t.type!==n.Fragment&&(l.ref=a?function(...e){return a=>{let t=!1;const n=e.map((e=>{const n=M(e,a);return t||"function"!=typeof n||(t=!0),n}));if(t)return()=>{for(let a=0;a<n.length;a++){const t=n[a];"function"==typeof t?t():M(e[a],null)}}}}(a,e):e),n.cloneElement(t,l)}return n.Children.count(t)>1?n.Children.only(null):null}));D.displayName="SlotClone";var E=({children:t})=>e(a,{children:t});function O(e){return n.isValidElement(e)&&e.type===E}var H="SvgButton__kk9";const j=r(((a,t)=>{const{className:n,asChild:r,...l}=a;return e(r?z:"button",{ref:t,className:v(H,n),...l})}));j.displayName="SvgButton";const k=l({size:48}),U=()=>_(k);var P={};const $=r(((a,t)=>{const{className:n,onClick:r,...l}=a,{size:_}=U(),i=(e=>e<40?12:e<54?16:e<72?20:24)(_);return e(j,{ref:t,className:v(P.AvatarCloseButton,n),onClick:e=>{e.preventDefault(),r?.(e)},...l,children:e(L,{width:i,height:i})})}));$.displayName="AvatarCloseButton";const R=e=>"string"==typeof e?e:`${e}px`,G=(e,a)=>{const{asChild:t,children:n}=e;if(!t)return"function"==typeof a?a(n):a;const r=i.only(n);return o(r,{children:"function"==typeof a?a(r.props.children):a})},W=e=>void 0!==e&&!1!==e&&null!==e&&""!==e,Y=()=>!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),X=(...e)=>{const a=e.filter(Boolean);if(a.length<=1){return a[0]??null}return e=>{for(const t of a)"function"==typeof t?t(e):t&&(t.current=e)}},F=()=>{};var q={AvatarContainer:"AvatarContainer__7c-",AvatarContainer_form_circle:"AvatarContainer_form_circle__J44",AvatarContainer__content:"AvatarContainer__content__h8v",AvatarContainer_form_squircle:"AvatarContainer_form_squircle__1i0",AvatarContainer__overlay:"AvatarContainer__overlay__qul",AvatarContainer__rightBottomCorner:"AvatarContainer__rightBottomCorner__kZG",AvatarContainer__rightTopCorner:"AvatarContainer__rightTopCorner__y4y"};const Z=r(((a,n)=>{const{className:r,style:l,children:_,overlay:i,rightTopCorner:o,rightBottomCorner:s,innerClassNames:c,size:p=48,asChild:d,form:u="circle",...m}=a,h=d?z:"div",y=v(q.AvatarContainer,q[`AvatarContainer_form_${u}`],r);return e(k.Provider,{value:{size:p},children:t(h,{ref:n,className:y,style:{"--MaxUi-AvatarContainer_size":`${p}px`,...l},...m,children:[e(E,{children:G({asChild:a.asChild,children:_},(a=>t("span",{className:v(q.AvatarContainer__content,c?.content),children:[a,W(i)&&e("span",{className:v(q.AvatarContainer__overlay,c?.overlay),children:i})]},"subtree-container")))}),W(s)&&e("span",{className:v(q.AvatarContainer__rightBottomCorner,c?.rightBottomCorner),children:s}),W(o)&&e("span",{className:v(q.AvatarContainer__rightTopCorner,c?.rightTopCorner),children:o})]})})}));Z.displayName="AvatarContainer";var J="AvatarIcon__ZUI";const Q=r(((a,t)=>{const{className:n,...r}=a;return e("span",{ref:t,className:v(J,n),...r})}));Q.displayName="AvatarIcon";const V=e=>{const{asChild:a,children:t,rootElement:n,disabled:r,loading:l}=e;if(!a&&"button"===n){return{disabled:r,...l?{"aria-disabled":!0}:{}}}if(a&&s(t)){const{type:e}=t;if("a"===e){return{"aria-disabled":r??l,...r?{onClick:e=>{e.preventDefault()},tabIndex:-1}:{}}}}return{role:"button",tabIndex:r?-1:0,"aria-disabled":r??l,...r?{onClick:void 0}:{}}},K=e=>{const a=c(e);return p((()=>{a.current=e})),d((()=>(...e)=>a.current?.(...e)),[])},ee=()=>{const{colorScheme:e}=ua();return e},ae=(e,a)=>{const[t,n]=u("idle");return m((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,l=e=>()=>{t&&n(e)};return n("loading"),r.onload=l("loaded"),r.onerror=l("error"),r.src=e,a&&(r.referrerPolicy=a),()=>{t=!1}}),[e,a]),t},te=()=>{const{platform:e}=ua();return e},ne=({defaultScheme:e="light",listenChanges:a}={})=>{const t=c("undefined"!=typeof window?window.matchMedia("(prefers-color-scheme: dark)"):null),[n,r]=u(t.current?t.current.matches?"dark":"light":e);return p((()=>{if(r((()=>t.current?.matches?"dark":"light")),!a)return F;const e=e=>{r((()=>e.matches?"dark":"light"))};return t.current?.addEventListener("change",e),()=>{t.current?.removeEventListener("change",e)}}),[a]),n};var re={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 le=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},_e=r(((a,t)=>{const{className:n,children:r,gradient:l="red",..._}=a,{size:i}=U(),o=v(re.AvatarText,{[re[`AvatarText_gradient_${l}`]]:"custom"!==l},n);return e("span",{ref:t,className:o,..._,children:e("span",{className:re.AvatarText__in,style:le(i),children:r})})}));_e.displayName="AvatarText";var ie="AvatarImage__H7-";const oe=r(((a,t)=>{const{className:n,fallback:r,fallbackGradient:l="red",..._}=a,[i,o]=u("idle"),s=ae(_.src??_.srcSet,_.referrerPolicy),c=K((e=>{o(e)}));return m((()=>{"idle"!==s&&c(s)}),[s,c]),"error"===i?e(_e,{gradient:l,children:r}):e("img",{ref:t,className:v(ie,n),..._})}));oe.displayName="AvatarImage";var se={AvatarOnlineDot:"AvatarOnlineDot__-GT",AvatarOnlineDot_size_xs:"AvatarOnlineDot_size_xs__2SY",AvatarOnlineDot__dot:"AvatarOnlineDot__dot__8dL",AvatarOnlineDot_size_s:"AvatarOnlineDot_size_s__T1u",AvatarOnlineDot_size_m:"AvatarOnlineDot_size_m__ris",AvatarOnlineDot_size_l:"AvatarOnlineDot_size_l__zo4"};const ce=r(((a,t)=>{const{className:n,...r}=a,{size:l}=U(),_=(e=>e<40?"xs":e<54?"s":e<72?"m":"l")(l),i=v(se.AvatarOnlineDot,se[`AvatarOnlineDot_size_${_}`],n);return e("span",{ref:t,className:i,...r,children:e("span",{className:se.AvatarOnlineDot__dot})})}));ce.displayName="AvatarOnlineDot";var pe="AvatarOverlay__-nV";const de=r(((a,t)=>{const{className:n,onClick:r,...l}=a;return e("span",{ref:t,className:v(pe,n),onClick:e=>{e.preventDefault(),r?.(e)},...l})}));de.displayName="AvatarOverlay";const ue=Object.assign({},{Container:Z,Image:oe,Overlay:de,Icon:Q,Text:_e,OnlineDot:ce,CloseButton:$});var me="EllipsisText__vGw",he="EllipsisText_multiline__1tx",ve="EllipsisText_singleLine__3CP";const ye=r(((a,t)=>{const{className:n,maxLines:r=1,style:l,asChild:_,...i}=a,o=_?z:"span",s=v(me,{[he]:r>1,[ve]:1===r},n);return e(o,{ref:t,className:s,style:{"--MaxUi-EllipsisText_linesCount":r,...l},...i})}));ye.displayName="EllipsisText";var ge="Ripple__R4t",fe="Ripple_active__Rit";const Ce=r(((a,t)=>{const{className:n,...r}=a,l=c(null),_=c(null),i=e=>{const a=e.currentTarget.getBoundingClientRect();((e,a)=>{null!==_.current&&(_.current.classList.remove(fe),_.current.style.top=a+"px",_.current.style.left=e+"px",_.current.classList.add(fe))})(e.clientX-(a.left??0),e.clientY-(a.top??0))};return p((()=>{if(_.current)return l.current=_.current.parentElement,null!==l.current&&l.current.addEventListener("pointerdown",i),()=>{null!==l.current&&l.current?.removeEventListener("pointerdown",i)}}),[]),e("span",{ref:X(t,_),role:"presentation","aria-hidden":!0,className:v(ge,n),onAnimationEnd:()=>{null!==_.current&&_.current.classList.remove(fe)},...r})}));Ce.displayName="Ripple";var Be={Spinner:"Spinner__piy",rotation:"rotation__CUP",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",Spinner__spinner:"Spinner__spinner__Qdc"};const Ne=r(((a,n)=>{const{className:r,size:l=20,appearance:_="primary",...i}=a,o=v(Be.Spinner,Be[`Spinner_appearance_${_}`],r);return e("span",{ref:n,role:"status",className:o,...i,children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 20 20",fill:"none",children:[e("g",{clipPath:"url(#spinner)",children:e("g",{transform:"matrix(8.74228e-10 -0.01 0.01 8.74228e-10 10 10)",children:e("foreignObject",{x:"-1120",y:"-1120",width:"2240",height:"2240",children:e("div",{className:Be.Spinner__spinner})})})}),e("defs",{children:e("clipPath",{id:"spinner",children:e("path",{d:"M8.74228e-07 10C1.35705e-06 4.47715 4.47715 -1.35705e-06 10 -8.74228e-07C15.5228 -3.91405e-07 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 3.91405e-07 15.5228 8.74228e-07 10ZM18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10Z"})})})]})})}));Ne.displayName="Spinner";var be={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_small:"Button_size_small__LLG",Button_mode_primary:"Button_mode_primary__lfx",Button_mode_secondary:"Button_mode_secondary__u7i",Button_mode_tertiary:"Button_mode_tertiary__1G9",Button_size_medium:"Button_size_medium__fI9",Button_size_large:"Button_size_large__S2-",Button_mode_link:"Button_mode_link__a3e",Button_appearance_themed:"Button_appearance_themed__z2B",Button_appearance_negative:"Button_appearance_negative__-Iy",Button_appearance_neutral:"Button_appearance_neutral__SAu","Button_appearance_neutral-themed":"Button_appearance_neutral-themed__H03","Button_appearance_contrast-static":"Button_appearance_contrast-static__DgE",Button__spinnerContainer:"Button__spinnerContainer__G4I",Button__ripple:"Button__ripple__jw0"},Ie={Counter:"Counter__0Oj",Counter_appearance_themed:"Counter_appearance_themed__anX",Counter_mode_filled:"Counter_mode_filled__9Uy",Counter_disabled:"Counter_disabled__Nhg",Counter_muted:"Counter_muted__3IJ",Counter_mode_inverse:"Counter_mode_inverse__IIJ",Counter_appearance_neutral:"Counter_appearance_neutral__SN9","Counter_appearance_neutral-themed":"Counter_appearance_neutral-themed__yq8","Counter_appearance_neutral-static":"Counter_appearance_neutral-static__UeR",Counter_appearance_negative:"Counter_appearance_negative__JZg"};const Te=r(((a,t)=>{const{className:n,value:r,rounded:l,appearance:_="themed",mode:i="filled",disabled:o=!1,muted:s=!1,...c}=a,p=v(Ie.Counter,Ie[`Counter_appearance_${_}`],Ie[`Counter_mode_${i}`],{[Ie.Counter_disabled]:o,[Ie.Counter_muted]:s},n),u=d((()=>l?Intl.NumberFormat("en",{notation:"compact"}).format(r):r),[l,r]);return e("span",{ref:t,className:p,...c,role:"",children:u})}));Te.displayName="Counter";const Se=(e,a)=>{if("primary"===a){if("themed"===e)return"contrast-static";if("negative"===e)return"contrast-static";if("neutral"===e)return"contrast";if("neutral-themed"===e)return"contrast-static";if("contrast-static"===e)return"primary-static"}return"themed"===e?"themed":"negative"===e?"negative":"neutral"===e?"primary":"neutral-themed"===e?"neutral-themed":"contrast-static"===e?"contrast-static":"themed"},Ae=(e,a)=>"negative"===e?{mode:"primary"===a?"inverse":"filled",appearance:"negative"}:"neutral"===e?{mode:"primary"===a?"inverse":"filled",appearance:"neutral"}:"neutral-themed"===e?{mode:"primary"===a?"inverse":"filled",appearance:"neutral-themed"}:"contrast-static"===e?{mode:"primary"===a?"filled":"inverse",appearance:"neutral-static"}:{mode:"primary"===a?"inverse":"filled",appearance:"themed"},xe=(e,a,t,n)=>s(e)&&e.type===Te?o(e,{...Ae(a,t),disabled:n}):e,we=r(((a,n)=>{const{className:r,iconBefore:l,iconAfter:_,indicator:i,children:o,onClick:s,loading:c,disabled:p=!1,asChild:d=!1,innerClassNames:u,stretched:m=!1,size:h="medium",mode:y="primary",appearance:g="themed",...f}=a,C="button",B=d?z:C,N=te(),b=V({asChild:d,children:o,disabled:p,rootElement:C,loading:c}),I=p||c,T="android"===N&&"link"!==y,S=v(be.Button,be[`Button_appearance_${g}`],be[`Button_mode_${y}`],be[`Button_size_${h}`],{[be.Button_loading]:c,[be.Button_disabled]:p,[be.Button_stretched]:m,[be.Button_activeMode_highlight]:!I&&!T,[be.Button_activeMode_ripple]:!I&&T},r);return t(B,{ref:n,className:S,onClick:e=>{c||s?.(e)},...b,...f,children:[W(l)&&e("span",{className:v(be.Button__iconBefore,u?.iconBefore),children:l}),c&&e("span",{className:v(be.Button__spinnerContainer,u?.spinnerContainer),children:e(Ne,{className:v(u?.spinner),size:(A=h,"small"===A?20:24),appearance:Se(g,y)})}),e(E,{children:G({asChild:d,children:o},(a=>e(ye,{className:v(be.Button__content,u?.content),children:a},"subtree-container")))}),W(i)&&e("span",{className:v(be.Button__indicator,u?.indicator),children:xe(i,g,y,p)}),W(_)&&e("span",{className:v(be.Button__iconAfter,u?.iconAfter),children:_}),T&&!I&&e(Ce,{className:be.Button__ripple})]});var A}));we.displayName="Button";var Le="Tappable__TDG",Me="Tappable_interactive__fYU",ze="Tappable_disabled__DQf",De="Tappable_activeMode_ripple__YMg",Ee="Tappable_activeMode_highlight__W7X",Oe="Tappable__ripple__XiX";const He=r(((a,n)=>{const{className:r,disabled:l,asChild:_,children:i,parentChildren:o,as:c="div",...p}=a,d=_?z:c,u=te(),m=V({asChild:_,children:i,disabled:l,rootElement:c}),h=(({onClick:e,href:a,children:t,asChild:n,parentChildren:r=t})=>n?!(!n||!s(r))&&("href"in r.props||"onClick"in r.props):!!e||!!a)(a),y="android"===u&&h&&!l,g=v(Le,{[Me]:h,[ze]:l,[Ee]:!y,[De]:y},r);return t(d,{ref:n,className:g,...h?m:{},...p,children:[i,y&&e(Ce,{className:Oe})]})}));He.displayName="Tappable";var je={CellAction:"CellAction__vzN",CellAction_mode_primary:"CellAction_mode_primary__vZQ",CellAction_disabled:"CellAction_disabled__VZA",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__before:"CellAction__before__oZm",CellAction__content:"CellAction__content__Uib",CellAction__chevron:"CellAction__chevron__6SI"};const ke=r(((a,n)=>{const{className:r,before:l,children:_,innerClassNames:i,asChild:o=!1,mode:s="primary",height:c="normal",showChevron:p=!1,...d}=a,u=v(je.CellAction,je[`CellAction_mode_${s}`],je[`CellAction_height_${c}`],{[je.CellAction_disabled]:d.disabled},r);return t(He,{ref:n,className:u,asChild:o,as:"button",parentChildren:_,...d,children:[W(l)&&e("span",{className:v(je.CellAction__before,i?.before),children:l}),e(E,{children:G({asChild:o,children:_},(a=>e("span",{className:v(je.CellAction__content,i?.content),children:a},"subtree-container")))}),p&&e(C,{className:v(je.CellAction__chevron,i?.chevron)})]})}));ke.displayName="CellAction";var Ue={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 Pe=r(((a,n)=>{const{className:r,titleStyle:l="caps",fullWidth:_=!1,children:i,after:o,innerClassNames:s,...c}=a,p=v(Ue.CellHeader,Ue[`CellHeader_titleStyle_${l}`],{[Ue.CellHeader_fullWidth]:_},r);return t("div",{ref:n,className:p,...c,children:[W(i)&&e("div",{className:v(Ue.CellHeader__content,s?.content),children:i}),W(o)&&e("div",{className:v(Ue.CellHeader__after,s?.after),children:o})]})}));Pe.displayName="CellHeader";var $e="ClearableInput__FRL",Re="ClearableInput__button__GlG";const Ge={ios:e((function(e){return n.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),f||(f=n.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"})))}),{}),android:e((function(e){return n.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),I||(I=n.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"})))}),{})},We=r(((a,n)=>{const{className:r,onChange:l,innerClassNames:_,withClearButton:i=!0,disabled:o,...s}=a,p=c(null),[d,m]=u(!s.value&&!s.defaultValue),h=te();return t("span",{className:v($e,r),children:[e("input",{ref:X(p,n),className:v(_?.input),onChange:e=>{l?.(e),m(!e.target.value)},disabled:o,...s}),!d&&!o&&i&&e(j,{className:v(Re,_?.clearButton),onClick:()=>{p.current&&((e,a="")=>{const t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set;t?.call(e,a);const n=new Event("input",{bubbles:!0});e.dispatchEvent(n)})(p.current)},"aria-label":"Очистить",children:Ge[h]})]})}));We.displayName="ClearableInput";var Ye={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__before:"CellInput__before__Hkm",CellInput__body:"CellInput__body__Egp",CellInput__clearButton:"CellInput__clearButton__znK"};const Xe=r(((a,n)=>{const{className:r,height:l="normal",before:_,innerClassNames:i,disabled:o,...s}=a,c=v(Ye.CellInput,Ye[`CellInput_height_${l}`],{[Ye.CellInput_disabled]:o},r);return t("label",{className:c,children:[W(_)&&e(ye,{className:v(Ye.CellInput__before,i?.before),maxLines:1,children:_}),e(We,{ref:n,className:v(Ye.CellInput__body,i?.body),innerClassNames:{input:v(Ye.CellInput__input,i?.input),clearButton:v(Ye.CellInput__clearButton,i?.clearButton)},type:"text",disabled:o,...s})]})}));Xe.displayName="CellInput";var Fe={CellList:"CellList__1ou",CellList_filled:"CellList_filled__ikE",CellList__body:"CellList__body__ouS",CellList_mode_island:"CellList_mode_island__aCu"};const qe=r(((a,n)=>{const{className:r,header:l,children:_,mode:i="full-width",filled:o="island"===i,...s}=a,c=v(Fe.CellList,Fe[`CellList_mode_${i}`],{[Fe.CellList_filled]:o},r);return t("div",{ref:n,className:c,...s,children:[W(l)&&e("div",{className:Fe.CellList__header,children:l}),e("div",{className:Fe.CellList__body,children:_})]})}));qe.displayName="CellList";var Ze={CellSimple:"CellSimple__n0z",CellSimple_disabled:"CellSimple_disabled__T-3",CellSimple__subtitle:"CellSimple__subtitle__oIF",CellSimple__overline:"CellSimple__overline__Ncr",CellSimple_height_compact:"CellSimple_height_compact__HUQ",CellSimple_height_normal:"CellSimple_height_normal__pxj",CellSimple__before:"CellSimple__before__5Q9",CellSimple__after:"CellSimple__after__2FK",CellSimple__content:"CellSimple__content__SOk",CellSimple__title:"CellSimple__title__aYs",CellSimple__chevron:"CellSimple__chevron__cSs"};const Je=r(((a,n)=>{const{className:r,title:l,subtitle:_,before:i,after:o,children:s,overline:c,showChevron:p=!1,asChild:d=!1,disabled:u=!1,innerClassNames:m,height:h="normal",as:y="div",...g}=a,f=v(Ze.CellSimple,Ze[`CellSimple_height_${h}`],{[Ze.CellSimple_disabled]:u},r);return t(He,{ref:n,className:f,asChild:d,as:y,parentChildren:s,...g,children:[W(i)&&e("div",{className:v(Ze.CellSimple__before,m?.before),children:i}),e(E,{children:G({asChild:d,children:s},(a=>t("div",{className:v(Ze.CellSimple__content,m?.content),children:[W(c)&&e("div",{className:v(Ze.CellSimple__overline,m?.overline),children:c}),W(l)&&e("div",{className:v(Ze.CellSimple__title,m?.title),children:l}),W(_)&&e("div",{className:v(Ze.CellSimple__subtitle,m?.subtitle),children:_}),a]},"subtree-container")))}),(W(o)||p)&&t("div",{className:v(Ze.CellSimple__after,m?.after),children:[o,p&&e(C,{className:v(Ze.CellSimple__chevron,m?.chevron)})]})]})}));Je.displayName="CellSimple";var Qe="Container__MSr",Ve="Container_fullWidth__Dor";const Ke=r(((a,t)=>{const{className:n,asChild:r,fullWidth:l,..._}=a,i=r?z:"div",o=v(Qe,{[Ve]:l},n);return e(i,{ref:t,className:o,..._})}));Ke.displayName="Container";var ea={Dot:"Dot__dio",Dot_appearance_themed:"Dot_appearance_themed__AJa","Dot_appearance_contrast-pinned":"Dot_appearance_contrast-pinned__i8T","Dot_appearance_neutral-fade":"Dot_appearance_neutral-fade__paA","Dot_appearance_accent-red":"Dot_appearance_accent-red__GZs",Dot_appearance_inherit:"Dot_appearance_inherit__xh2"};const aa=r(((a,t)=>{const{className:n,appearance:r="inherit",...l}=a,_=v(ea.Dot,ea[`Dot_appearance_${r}`],n);return e("span",{ref:t,className:_,...l})}));aa.displayName="Dot";var ta="Flex__8ia";const na=r(((a,t)=>{const{className:n,display:r="flex",direction:l="row",align:_="flex-start",justify:i="start",asChild:o,wrap:s,style:c,gap:p,gapX:d,gapY:u,...m}=a;return e(o?z:"div",{ref:t,className:v(ta,n),style:{flexDirection:l,justifyContent:i,alignItems:_,flexWrap:s,...c,display:r,"--MaxUi-Flex_gapX":R(d??p??0),"--MaxUi-Flex_gapY":R(u??p??0)},...m})}));na.displayName="Flex";var ra="Grid__tMN";const la=r(((a,t)=>{const{className:n,style:r,display:l="grid",align:_="start",justify:i="start",gap:o,gapX:s,gapY:c,cols:p,rows:d,asChild:u,...m}=a;return e(u?z:"div",{ref:t,className:v(ra,n),style:{justifyContent:i,alignItems:_,...r,display:l,"--MaxUi-Grid_gapX":R(s??o??0),"--MaxUi-Grid_gapY":R(c??o??0),"--MaxUi-Grid_cols":p??0,"--MaxUi-Grid_rows":d??0},...m})}));la.displayName="Grid";const _a=(e,a)=>{if("primary"===a){if("themed"===e)return"contrast-static";if("negative"===e)return"contrast-static";if("neutral"===e)return"contrast";if("neutral-themed"===e)return"contrast-static";if("contrast-static"===e)return"primary-static"}return"themed"===e?"themed":"negative"===e?"negative":"neutral"===e?"primary":"neutral-themed"===e?"neutral-themed":"contrast-static"===e?"contrast-static":"themed"};var ia={IconButton:"IconButton__KCr",IconButton_loading:"IconButton_loading__RxW",IconButton__content:"IconButton__content__dCL",IconButton_disabled:"IconButton_disabled__SZj",IconButton_activeMode_ripple:"IconButton_activeMode_ripple__asi",IconButton_activeMode_highlight:"IconButton_activeMode_highlight__h15",IconButton_mode_primary:"IconButton_mode_primary__FqT",IconButton_size_small:"IconButton_size_small__e3f",IconButton_mode_secondary:"IconButton_mode_secondary__d4Q",IconButton_mode_tertiary:"IconButton_mode_tertiary__s90",IconButton_size_medium:"IconButton_size_medium__MQQ",IconButton_size_large:"IconButton_size_large__9oz",IconButton_appearance_themed:"IconButton_appearance_themed__jUC",IconButton_mode_link:"IconButton_mode_link__kNB",IconButton_appearance_negative:"IconButton_appearance_negative__qI2",IconButton_appearance_neutral:"IconButton_appearance_neutral__8iK","IconButton_appearance_neutral-themed":"IconButton_appearance_neutral-themed__xJM","IconButton_appearance_contrast-static":"IconButton_appearance_contrast-static__Fp4",IconButton__spinnerContainer:"IconButton__spinnerContainer__9--",IconButton__ripple:"IconButton__ripple__l8M"};const oa=r(((a,n)=>{const{children:r,className:l,disabled:_,innerClassNames:i,loading:o,asChild:s=!1,size:c="medium",mode:p="primary",appearance:d="themed",...u}=a,m="button",h=s?z:m,y=te(),g=V({asChild:s,children:r,disabled:_,rootElement:m,loading:o}),f=_||o,C="android"===y&&"link"!==p,B=v(ia.IconButton,ia[`IconButton_appearance_${d}`],ia[`IconButton_mode_${p}`],ia[`IconButton_size_${c}`],{[ia.IconButton_loading]:o,[ia.IconButton_disabled]:_,[ia.IconButton_activeMode_highlight]:!f&&!C,[ia.IconButton_activeMode_ripple]:!f&&C},l);return t(h,{ref:n,className:B,...g,...u,children:[o&&e("span",{className:v(ia.IconButton__spinnerContainer,i?.spinnerContainer),children:e(Ne,{className:v(i?.spinner),size:(N=c,"small"===N?20:24),appearance:_a(d,p)})}),e(E,{children:G({asChild:s,children:r},(a=>e("span",{className:v(ia.IconButton__content,i?.content),children:a},"subtree-container")))}),C&&!f&&e(Ce,{className:ia.IconButton__ripple})]});var N}));oa.displayName="IconButton";var sa={Input:"Input__A3w",Input_disabled:"Input_disabled__mpt",Input_compact:"Input_compact__gBl",Input_mode_primary:"Input_mode_primary__2Mr",Input_mode_secondary:"Input_mode_secondary__c6D",Input__body:"Input__body__sVJ",Input__iconBefore:"Input__iconBefore__gxx",Input__iconAfter:"Input__iconAfter__jL1",Input__clearButton:"Input__clearButton__nKe",Input__input:"Input__input__gy5"};const ca=r(((a,n)=>{const{className:r,iconBefore:l,iconAfter:_,innerClassNames:i,withClearButton:o,compact:s=!1,mode:c="primary",...p}=a,d=v(sa.Input,sa[`Input_mode_${c}`],{[sa.Input_compact]:s,[sa.Input_disabled]:p.disabled},r);return t("label",{className:d,children:[W(l)&&e("div",{className:v(sa.Input__iconBefore,i?.iconBefore),children:l}),e(We,{ref:n,className:v(sa.Input__body,i?.body),withClearButton:o,innerClassNames:{input:v(sa.Input__input,i?.input),clearButton:v(sa.Input__clearButton,i?.clearButton)},...p}),W(_)&&e("div",{className:v(sa.Input__iconAfter,i?.iconAfter),children:_})]})}));ca.displayName="Input";var pa={MaxUI:"MaxUI__g7Q",MaxUI_platform_ios:"MaxUI_platform_ios__gAV",MaxUI_platform_android:"MaxUI_platform_android__m3U",MaxUI_colorScheme_light:"MaxUI_colorScheme_light__Woo",MaxUI_colorScheme_dark:"MaxUI_colorScheme_dark__jFq"};const da=l({platform:"ios",colorScheme:"light"}),ua=()=>_(da),ma=r(((a,t)=>{const{children:n,className:r,colorScheme:l,platform:_=(Y()?"ios":"android")}=a,i=ne({defaultScheme:l,listenChanges:!l}),o=l??i,s=d((()=>({colorScheme:o,platform:_})),[]),c=v(pa.MaxUI,pa[`MaxUI_colorScheme_${o}`],pa[`MaxUI_platform_${_}`],r);return e(da.Provider,{value:s,children:e("div",{ref:t,className:c,children:n})})}));ma.displayName="MaxUI";var ha={Panel:"Panel__kpB",Panel_centeredX:"Panel_centeredX__jxE",Panel_centeredY:"Panel_centeredY__fp1",Panel_mode_primary:"Panel_mode_primary__hES",Panel_mode_secondary:"Panel_mode_secondary__yer"};const va=r(((a,t)=>{const{className:n,mode:r="primary",centeredX:l,centeredY:_,...i}=a,o=v(ha.Panel,ha[`Panel_mode_${r}`],{[ha.Panel_centeredX]:l,[ha.Panel_centeredY]:_},n);return e("div",{ref:t,className:o,...i})}));va.displayName="Panel";var ya={SearchInput:"SearchInput__cI6",SearchInput__body:"SearchInput__body__WUT",SearchInput__icon:"SearchInput__icon__dsa",SearchInput__clearButton:"SearchInput__clearButton__qsm",SearchInput__input:"SearchInput__input__xoX",SearchInput_platform_ios:"SearchInput_platform_ios__Sn7",SearchInput_platform_android:"SearchInput_platform_android__QG9"};const ga=r(((a,n)=>{const{className:r,placeholder:l="Поиск",innerClassNames:_,...i}=a,o=te(),s=v(ya.SearchInput,ya[`SearchInput_platform_${o}`],r);return t("label",{className:s,children:[e(T,{className:ya.SearchInput__icon}),e(We,{ref:n,className:v(ya.SearchInput__body,_?.body),innerClassNames:{input:v(ya.SearchInput__input,_?.input),clearButton:v(ya.SearchInput__clearButton,_?.clearButton)},type:"text",placeholder:l,...i})]})}));ga.displayName="SearchInput";var fa={Switch:"Switch__-vj",Switch__toggle:"Switch__toggle__WU2",Switch__thumb:"Switch__thumb__jlX",Switch__input:"Switch__input__EDr",Switch_platform_ios:"Switch_platform_ios__B-C",Switch_platform_android:"Switch_platform_android__72T"};const Ca=r(((a,n)=>{const{className:r,...l}=a,_=te(),i=v(fa.Switch,fa[`Switch_platform_${_}`],r);return t("span",{className:i,children:[e("input",{ref:n,type:"checkbox",role:"switch",className:fa.Switch__input,...l}),e("span",{className:fa.Switch__toggle,children:e("span",{className:fa.Switch__thumb})})]})}));Ca.displayName="Switch";var Ba={Textarea:"Textarea__Sy6",Textarea_disabled:"Textarea_disabled__uY3",Textarea_mode_primary:"Textarea_mode_primary__E7l",Textarea_mode_secondary:"Textarea_mode_secondary__BYw",Textarea__textarea:"Textarea__textarea__Ok-"};const Na=r(((a,t)=>{const{className:n,innerClassNames:r,mode:l="primary",..._}=a,i=v(Ba.Textarea,Ba[`Textarea_mode_${l}`],{[Ba.Textarea_disabled]:_.disabled},n);return e("div",{className:i,children:e("textarea",{ref:t,className:v(Ba.Textarea__textarea,r?.textarea),..._})})}));Na.displayName="Textarea";var ba={ToolButton:"ToolButton__lde",ToolButton_appearance_default:"ToolButton_appearance_default__gqg",ToolButton_disabled:"ToolButton_disabled__gq5",ToolButton_appearance_secondary:"ToolButton_appearance_secondary__ghs",ToolButton_withLabel:"ToolButton_withLabel__FsL",ToolButton__icon:"ToolButton__icon__ds5",ToolButton__label:"ToolButton__label__GCi"};const Ia=r(((a,n)=>{const{className:r,icon:l,children:_,asChild:i,innerClassNames:o,appearance:s="default",disabled:c=!1,...p}=a,d=v(ba.ToolButton,ba[`ToolButton_appearance_${s}`],{[ba.ToolButton_withLabel]:W(_),[ba.ToolButton_disabled]:c},r);return t(He,{ref:n,className:d,as:"button",parentChildren:_,asChild:i,disabled:c,...p,children:[W(l)&&e("span",{className:v(ba.ToolButton__icon,o?.icon),children:l}),W(_)&&e(E,{children:G({asChild:i,children:_},(a=>e(ye,{maxLines:1,className:v(ba.ToolButton__label,o?.label),children:a},"subtree-container")))})]})}));Ia.displayName="ToolButton";var Ta={TypographyAction_variant_large:"TypographyAction_variant_large__l5j",TypographyAction_variant_medium:"TypographyAction_variant_medium__9H-",TypographyAction_variant_small:"TypographyAction_variant_small__-LL",TypographyAction_variant_label:"TypographyAction_variant_label__vhv"};const Sa=r(((a,t)=>{const{className:n,variant:r="large",asChild:l,..._}=a,i=l?z:"span",o=v(Ta.TypographyAction,Ta[`TypographyAction_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));Sa.displayName="TypographyAction";var Aa={TypographyBody_variant_large:"TypographyBody_variant_large__vlS",TypographyBody_variant_medium:"TypographyBody_variant_medium__9v3",TypographyBody_variant_small:"TypographyBody_variant_small__beJ","TypographyBody_variant_small-strong":"TypographyBody_variant_small-strong__mWy","TypographyBody_variant_small-caps":"TypographyBody_variant_small-caps__18r"};const xa=r(((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?z:"span",o=v(Aa.TypographyBody,Aa[`TypographyBody_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));xa.displayName="TypographyBody";var wa="TypographyDisplay__6MW";const La=r(((a,t)=>{const{className:n,asChild:r,...l}=a;return e(r?z:"span",{ref:t,className:v(wa,n),...l})}));La.displayName="TypographyDisplay";var Ma={"TypographyHeadline_variant_large-strong":"TypographyHeadline_variant_large-strong__mwz",TypographyHeadline_variant_medium:"TypographyHeadline_variant_medium__s92","TypographyHeadline_variant_medium-strong":"TypographyHeadline_variant_medium-strong__dFT",TypographyHeadline_variant_small:"TypographyHeadline_variant_small__8Ei","TypographyHeadline_variant_small-strong":"TypographyHeadline_variant_small-strong__kUR"};const za=r(((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?z:"span",o=v(Ma.TypographyHeadline,Ma[`TypographyHeadline_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));za.displayName="TypographyHeadline";var Da={TypographyLabel_variant_large:"TypographyLabel_variant_large__6vr","TypographyLabel_variant_large-strong":"TypographyLabel_variant_large-strong__uCg","TypographyLabel_variant_large-caps":"TypographyLabel_variant_large-caps__b1i",TypographyLabel_variant_medium:"TypographyLabel_variant_medium__Xo5","TypographyLabel_variant_medium-strong":"TypographyLabel_variant_medium-strong__Bk8","TypographyLabel_variant_small-strong":"TypographyLabel_variant_small-strong__qCw","TypographyLabel_variant_small-caps":"TypographyLabel_variant_small-caps__beb"};const Ea=r(((a,t)=>{const{className:n,variant:r="large",asChild:l,..._}=a,i=l?z:"span",o=v(Da.TypographyLabel,Da[`TypographyLabel_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));Ea.displayName="TypographyLabel";var Oa={"TypographyTitle_variant_large-strong":"TypographyTitle_variant_large-strong__9PL","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 Ha=r(((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?z:"span",o=v(Oa.TypographyTitle,Oa[`TypographyTitle_variant_${r}`],n);return e(i,{ref:t,className:o,..._})}));Ha.displayName="TypographyTitle";const ja=Object.assign({},{Display:La,Headline:za,Title:Ha,Body:xa,Label:Ea,Action:Sa});export{ue as Avatar,we as Button,ke as CellAction,Pe as CellHeader,Xe as CellInput,qe as CellList,Je as CellSimple,Ke as Container,Te as Counter,aa as Dot,ye as EllipsisText,na as Flex,la as Grid,oa as IconButton,ca as Input,ma as MaxUI,da as MaxUIContext,va as Panel,Ce as Ripple,ga as SearchInput,Ne as Spinner,j as SvgButton,Ca as Switch,He as Tappable,Na as Textarea,Ia as ToolButton,ja as Typography,ua as useAppearance,V as useButtonLikeProps,K as useCallbackRef,ee as useColorScheme,ae as useImageLoadingStatus,te as usePlatform,ne as useSystemColorScheme};
|