@banzamel/mineralui 1.10.4 → 1.11.0
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/README.md +1 -1
- package/dist/{MDropdownMenu-CAwSTZ1h.js → MDropdownMenu-BgEtrL-T.js} +42 -37
- package/dist/MDropdownMenu-BgEtrL-T.js.map +1 -0
- package/dist/MDropdownMenu-Coy-0Wee.cjs +2 -0
- package/dist/MDropdownMenu-Coy-0Wee.cjs.map +1 -0
- package/dist/{MInputCVC-B353PyVi.cjs → MInputCVC-D1rSjwXj.cjs} +2 -2
- package/dist/{MInputCVC-B353PyVi.cjs.map → MInputCVC-D1rSjwXj.cjs.map} +1 -1
- package/dist/{MInputCVC-BSHrWcEh.js → MInputCVC-DFtAStrY.js} +2 -2
- package/dist/{MInputCVC-BSHrWcEh.js.map → MInputCVC-DFtAStrY.js.map} +1 -1
- package/dist/{cards-BlEDQPf3.cjs → cards-DWNtiO72.cjs} +2 -2
- package/dist/{cards-BlEDQPf3.cjs.map → cards-DWNtiO72.cjs.map} +1 -1
- package/dist/{cards-Ce380ncH.js → cards-EAgezJB6.js} +3 -3
- package/dist/{cards-Ce380ncH.js.map → cards-EAgezJB6.js.map} +1 -1
- package/dist/cards.cjs +1 -1
- package/dist/cards.js +1 -1
- package/dist/components/display/MTimeline/MTimeline.types.d.ts +1 -1
- package/dist/components/layout/MDivider/MDivider.d.ts +1 -1
- package/dist/components/layout/MDivider/MDivider.types.d.ts +2 -1
- package/dist/components/layout/MStickyPanel/MStickyPanel.d.ts +3 -0
- package/dist/components/layout/MStickyPanel/MStickyPanel.types.d.ts +19 -0
- package/dist/components/layout/MStickyPanel/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/overlays/MDropdownMenu/MDropdownMenu.d.ts +1 -1
- package/dist/components/overlays/MDropdownMenu/MDropdownMenu.types.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +37 -37
- package/dist/inputs.cjs +1 -1
- package/dist/inputs.js +1 -1
- package/dist/{layout-BgfQpVOU.js → layout-BT7KtJVE.js} +217 -158
- package/dist/layout-BT7KtJVE.js.map +1 -0
- package/dist/layout-C0WsXFln.cjs +2 -0
- package/dist/layout-C0WsXFln.cjs.map +1 -0
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +7 -7
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.js +1 -1
- package/dist/style-runtime.cjs +1 -1
- package/dist/style-runtime.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/MDropdownMenu-BT3u-ZJj.cjs +0 -2
- package/dist/MDropdownMenu-BT3u-ZJj.cjs.map +0 -1
- package/dist/MDropdownMenu-CAwSTZ1h.js.map +0 -1
- package/dist/layout-BgfQpVOU.js.map +0 -1
- package/dist/layout-D9LAqtZp.cjs +0 -2
- package/dist/layout-D9LAqtZp.cjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`./icons-BHFwX7ri.cjs`),t=require(`./cn-CU5TNITO.cjs`),n=require(`./creditCards-D_HwRUBz.cjs`),r=require(`./useInteractionEffect-BH2dgQla.cjs`),i=require(`./MPopover-BbgAAM5Z.cjs`),a=require(`./MSurface-WsYGNGX5.cjs`),o=require(`./MText-CAbqC2qZ.cjs`),s=require(`./MHeading-TJ5yvklz.cjs`),c=require(`./MLink-CZ2FfQ0N.cjs`),l=require(`./MButton-ouB6903s.cjs`),u=require(`./MCheckbox-Cbk5hwzJ.cjs`),d=require(`./MSkeleton-JMkJFzu9.cjs`),f=require(`./MGrid-Di7laCq4.cjs`),p=require(`./MStack-DDn2bYBQ.cjs`),m=require(`./MCard-Bg_R86Gr.cjs`),h=require(`./MInputCVC-B353PyVi.cjs`),g=require(`./MAvatar-BElYyQXH.cjs`),_=require(`./MDetailList-CpwrF22b.cjs`),v=require(`./MInputSearch-D2Fr_34s.cjs`),y=require(`./MTreeView-B7IWHmGc.cjs`),b=require(`./MDropdownMenu-BT3u-ZJj.cjs`),x=require(`./MPagination-CAzIIP2o.cjs`);require(`./core-B2klLGki.cjs`);let S=require(`react`),C=require(`react/jsx-runtime`);function w(e){if(typeof e==`string`)return e;if(typeof e==`function`){let t=e;return t.displayName??t.name??``}if(typeof e==`object`&&e){let t=e;return t.displayName??t.render?.displayName??t.render?.name??``}return``}function T(e){if(e.props.color!==void 0)return!1;if(e.type===l.t)return!0;let t=w(e.type);return t.startsWith(`M`)&&t.endsWith(`Icon`)}function E(e,t){return t?S.Children.map(e,e=>{if(!(0,S.isValidElement)(e))return e;let n=e,r=n.props,i=r.children?E(r.children,t):r.children,a={};return i!==r.children&&(a.children=i),T(n)&&(a.color=t),Object.keys(a).length?(0,S.cloneElement)(n,a):n}):e}function D({component:e,to:n,href:i,target:a,rel:o,color:s,interactive:c=!0,clickEffect:l,rippleColor:u,className:d,children:f,onPointerDown:p,type:h,...g}){let{component:_,href:v,to:y,isInteractive:b}=m.a({component:e,href:i,to:n,interactive:c,hasClickHandler:!!g.onClick,hasPointerHandler:!!p,fallbackComponent:`button`}),{effectClassName:x,effectLayer:S,handlePointerDown:w}=r.t({effect:l??(b?`ripple`:`none`),disabled:!b,color:u});return(0,C.jsxs)(_,{href:_===`a`||e?v:void 0,to:y,target:a,rel:o,type:_===`button`?h??`button`:void 0,className:t.t(`card-action-area`,s&&`color-${s}`,b&&`interactive`,x,d),onPointerDown:e=>{w(e),p?.(e)},...g,children:[S,(0,C.jsx)(`span`,{className:`card-action-area-content`,children:E(f,s)})]})}function O(e){let t=e.replace(/\D/g,``);return t.length<=4?t:`\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ${t.slice(-4)}`}function k({component:e,to:i,href:a,target:o,rel:s,holder:c,number:l,expiry:u,brand:d,brandIcon:f,balance:p,balanceLabel:h=`Current balance`,color:g,interactive:_=!1,clickEffect:v,rippleColor:y,className:b,onPointerDown:x,...S}){let w=n.n(l),T=d??w.brand,E=n.t.find(e=>e.brand===T)??w,D=O(l),k=E.iconLabel,{component:A,href:j,to:M,isInteractive:N}=m.a({component:e,href:a,to:i,interactive:_,hasClickHandler:!!S.onClick,hasPointerHandler:!!x}),{effectClassName:P,effectLayer:F,handlePointerDown:I}=r.t({effect:v??(N?`ripple`:`none`),disabled:!N,color:y});return(0,C.jsxs)(A,{href:A===`a`||e?j:void 0,to:M,target:o,rel:s,className:t.t(`card-payment`,g||`primary`,N&&`interactive`,P,b),onPointerDown:e=>{I(e),x?.(e)},...S,children:[F,p!==void 0&&(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`p`,{className:`cp-balance-label`,children:h}),(0,C.jsx)(`p`,{className:`cp-balance`,children:p})]}),(0,C.jsxs)(`div`,{className:`cp-row`,children:[(0,C.jsx)(`span`,{className:t.t(`cp-brand`,!f&&T),children:f??k}),(0,C.jsx)(`span`,{className:`cp-number`,children:D})]}),(0,C.jsxs)(`div`,{className:`cp-details`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`p`,{className:`cp-field-label`,children:`MCard holder`}),(0,C.jsx)(`p`,{className:`cp-field-value`,children:c})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`p`,{className:`cp-field-label`,children:`Expiration date`}),(0,C.jsx)(`p`,{className:`cp-field-value`,children:u})]})]})]})}function A(e){return n.t.find(t=>t.brand===e)?.iconLabel??`CARD`}function j({title:n=`Your payment methods`,actionLabel:r=`Change`,actionHref:i=`#`,onAction:s,brand:l=`visa`,brandIcon:u,last4:f,badgeLabel:p,summary:m,helperText:g=`All fields are required, unless stated otherwise.`,expiryLabel:_=`Expiration date`,cvcLabel:v=`Security code`,expiryProps:y,cvcProps:b,color:x,className:S,...w}){let T=y?.value??y?.defaultValue,E=p===void 0?`Default`:p,D=T?`Credit card - Expiration date ${String(T).replace(`/`,`.`)}`:`Credit card`,O=m===void 0?D:m,k=A(l),j={clearable:!0,...y};return(0,C.jsxs)(`div`,{className:t.t(`card-payment-method`,x||`primary`,S),...w,children:[(0,C.jsxs)(`div`,{className:`cpm-header`,children:[(0,C.jsx)(`h3`,{className:`cpm-title`,children:n}),(0,C.jsxs)(c.t,{href:i,tone:`accent`,underline:`none`,className:`cpm-action`,onClick:e=>{s&&(e.preventDefault(),s())},children:[r,(0,C.jsx)(e.zi,{})]})]}),(0,C.jsxs)(`div`,{className:`cpm-surface`,children:[(0,C.jsxs)(`div`,{className:`cpm-method`,children:[(0,C.jsxs)(a.n,{align:`center`,className:`cpm-method-row`,children:[(0,C.jsx)(`span`,{className:t.t(`cpm-brand`,!u&&l),children:u??k}),(0,C.jsx)(`span`,{className:`cpm-last4`,children:`\u2022\u2022\u2022\u2022 ${f}`}),E&&(0,C.jsx)(d.n,{color:`info`,children:E})]}),O&&(0,C.jsx)(o.t,{tone:`muted`,className:`cpm-summary`,children:O})]}),g&&(0,C.jsx)(o.t,{tone:`muted`,size:`sm`,className:`cpm-helper`,children:g}),(0,C.jsxs)(`div`,{className:`cpm-fields`,children:[(0,C.jsx)(h.n,{label:_,placeholder:`MM/YYYY`,fullWidth:!0,...j}),(0,C.jsx)(h.t,{label:v,placeholder:`123`,fullWidth:!0,...b})]})]})]})}function M({variant:n,title:r,description:i,price:a,currency:o=`PLN`,duration:s,available:c,image:u,gallery:f,galleryAutoPlay:p=!1,rating:m,reviewCount:h,favorite:v,onFavorite:y,menuItems:x,onAddToCart:w,actionLabel:T,icon:E,color:D=`primary`,leader:O,participants:k,maxParticipants:A,quantity:j,onQuantityChange:M,showQuantity:N=!0,date:P,location:F,status:I,className:L,...R}){let[z,B]=(0,S.useState)(0),[V,H]=(0,S.useState)(!1),[U,ee]=(0,S.useState)(1),W=j??U,G=f&&f.length>0?f:u?[u]:[];(0,S.useEffect)(()=>{z>=G.length&&B(0)},[z,G.length]),(0,S.useEffect)(()=>{if(!V)return;let e=window.setTimeout(()=>{H(!1)},220);return()=>window.clearTimeout(e)},[z,V]);function K(e){e===z||e<0||e>=G.length||(G.length>1&&H(!0),B(e))}(0,S.useEffect)(()=>{if(!p||G.length<=1)return;let e=window.setInterval(()=>{H(!0),B(e=>(e+1)%G.length)},3500);return()=>window.clearInterval(e)},[p,G.length]);function q(e){let t=Math.max(1,e);M?M(t):ee(t)}let J=c===!0?`Available`:c===!1?`Unavailable`:typeof c==`number`?`${c} spots`:null,Y=P?P instanceof Date?P:new Date(P):null,X=Y?Y.getDate():null,te=Y?Y.toLocaleString(`en`,{month:`short`}).toUpperCase():null;return(0,C.jsxs)(`div`,{className:t.t(`card-service`,n,`color-${D}`,L),...R,children:[G.length>0&&(0,C.jsxs)(`div`,{className:`cs-gallery`,children:[(0,C.jsx)(`img`,{src:G[z],alt:r,className:t.t(`cs-image`,V&&`is-transitioning`)}),G.length>1&&(0,C.jsx)(`div`,{className:`cs-gallery-dots`,children:G.map((e,n)=>(0,C.jsx)(`button`,{type:`button`,className:t.t(`cs-dot`,n===z&&`active`),onClick:()=>K(n),"aria-label":`Image ${n+1}`},n))}),(y||x&&x.length>0)&&(0,C.jsxs)(`div`,{className:`cs-gallery-actions`,children:[x&&x.length>0&&(0,C.jsx)(b.i,{className:`cs-menu-wrap`,trigger:(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,shape:`circle`,"aria-label":`More options`,className:`cs-overlay-btn`,children:(0,C.jsx)(e.Xn,{})}),placement:`bottom-end`,children:x.map((e,t)=>(0,C.jsx)(b.r,{icon:e.icon,color:e.danger?`error`:void 0,label:e.label,onClick:e.onClick},t))}),y&&(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,shape:`circle`,onClick:y,"aria-label":v?`Remove from favorites`:`Add to favorites`,className:t.t(`cs-overlay-btn`,v&&`cs-fav-active`),children:v?(0,C.jsx)(e.nr,{}):(0,C.jsx)(e.rr,{})})]})]}),(0,C.jsxs)(`div`,{className:`cs-body`,children:[n===`event`&&Y&&(0,C.jsxs)(`div`,{className:`cs-event-header`,children:[(0,C.jsxs)(`div`,{className:`cs-date-block`,children:[(0,C.jsx)(`span`,{className:`cs-date-day`,children:X}),(0,C.jsx)(`span`,{className:`cs-date-month`,children:te})]}),(0,C.jsxs)(`div`,{className:`cs-event-info`,children:[(0,C.jsx)(`h3`,{className:`cs-title`,children:r}),i&&(0,C.jsx)(`p`,{className:`cs-desc`,children:i})]})]}),n!==`event`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`cs-top`,children:[E&&(0,C.jsx)(`span`,{className:`cs-icon`,children:E}),(0,C.jsx)(`h3`,{className:`cs-title`,children:r})]}),i&&(0,C.jsx)(`p`,{className:`cs-desc`,children:i})]}),n===`event`&&!Y&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`cs-top`,children:[E&&(0,C.jsx)(`span`,{className:`cs-icon`,children:E}),(0,C.jsx)(`h3`,{className:`cs-title`,children:r})]}),i&&(0,C.jsx)(`p`,{className:`cs-desc`,children:i})]}),m!==void 0&&(0,C.jsxs)(`div`,{className:`cs-rating`,children:[(0,C.jsx)(_.n,{value:Math.round(m),size:`sm`,color:`warning`,readOnly:!0,className:`cs-stars`}),(0,C.jsx)(`span`,{className:`cs-rating-value`,children:m.toFixed(1)}),h!==void 0&&(0,C.jsxs)(`span`,{className:`cs-review-count`,children:[`(`,h,`)`]})]}),O&&(0,C.jsxs)(`div`,{className:`cs-leader`,children:[(0,C.jsx)(g.t,{src:O.avatar,name:O.name,size:28,color:D}),(0,C.jsx)(`span`,{className:`cs-leader-name`,children:O.name})]}),n===`course`&&k&&(0,C.jsxs)(`div`,{className:`cs-participants`,children:[(0,C.jsx)(`div`,{className:`cs-participants-avatars`,children:k.slice(0,4).map((e,t)=>(0,C.jsx)(g.t,{src:e.avatar,name:e.name,size:28,color:D,className:`cs-participant-avatar`},`${e.name}-${t}`))}),A&&(0,C.jsxs)(`span`,{className:`cs-spots`,children:[k.length,`/`,A]})]}),(0,C.jsxs)(`div`,{className:`cs-meta`,children:[n===`event`&&F&&(0,C.jsx)(d.n,{size:`xs`,color:D,children:F}),s&&(0,C.jsx)(d.n,{size:`xs`,color:D,icon:(0,C.jsx)(e.Ni,{}),children:s}),n===`event`&&I&&(0,C.jsx)(d.n,{size:`xs`,color:I.toLowerCase()===`sold out`?`error`:D,children:I}),J&&n!==`event`&&(0,C.jsx)(d.n,{size:`xs`,color:c===!1?`error`:D,children:J})]})]}),(0,C.jsxs)(`div`,{className:`cs-footer`,children:[a!==void 0&&(0,C.jsxs)(`span`,{className:`cs-price`,children:[typeof a==`number`?a.toFixed(2):a,` `,(0,C.jsx)(`span`,{className:`cs-currency`,children:o})]}),(0,C.jsxs)(`div`,{className:`cs-actions`,children:[n===`product`&&w&&N&&(0,C.jsxs)(`div`,{className:`cs-qty`,children:[(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,size:`sm`,onClick:()=>q(W-1),"aria-label":`Decrease`,className:`cs-qty-btn`,children:(0,C.jsx)(e.Or,{})}),(0,C.jsx)(`span`,{className:`cs-qty-value`,children:W}),(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,size:`sm`,onClick:()=>q(W+1),"aria-label":`Increase`,className:`cs-qty-btn`,children:(0,C.jsx)(e.kr,{})})]}),w&&(0,C.jsx)(l.t,{variant:`filled`,size:`sm`,color:D,onClick:()=>w(W),disabled:c===!1,className:`cs-cart-btn`,children:T??(n===`event`?`Register`:`Add to cart`)})]})]})]})}function N(e){let{onAction:t,actionLabel:n=`Book now`,...r}=e;return(0,C.jsx)(M,{variant:`service`,onAddToCart:t?()=>t():void 0,actionLabel:n,...r})}function P(e){let{onAction:t,actionLabel:n=`Join course`,...r}=e;return(0,C.jsx)(M,{variant:`course`,onAddToCart:t?()=>t():void 0,actionLabel:n,...r})}function F({component:n,title:i,description:a,icon:o,color:s=`primary`,to:c,href:u,target:d,rel:f,onClick:p,interactive:h=!1,clickEffect:g,rippleColor:_,image:v,video:y,illustration:x,camera:w,mediaFill:T=!1,overlayPosition:E=`bottom`,favorite:D,onFavorite:O,menuItems:k,className:A,...j}){let M=(0,S.useRef)(null);(0,S.useEffect)(()=>{if(!w)return;let e=M.current;if(!e||typeof navigator>`u`||!navigator.mediaDevices?.getUserMedia)return;let t=null,n=!1,r=w===!0?{video:!0}:w;return navigator.mediaDevices.getUserMedia(r).then(r=>{if(n){r.getTracks().forEach(e=>e.stop());return}t=r,e.srcObject=r,e.play().catch(()=>void 0)}).catch(()=>void 0),()=>{n=!0,t&&t.getTracks().forEach(e=>e.stop()),e.srcObject=null}},[w]);let N=!!(v||y||x||w),{component:P,href:F,to:I,isInteractive:L,isLink:R}=m.a({component:n,href:u,to:c,interactive:h,hasClickHandler:!!p,fallbackComponent:`button`}),z=T&&N,{effectClassName:B,effectLayer:V,handlePointerDown:H}=r.t({effect:g??(L?`ripple`:`none`),disabled:!L,color:_});function U(e){e.stopPropagation()}function ee(e){p&&(e.preventDefault(),p())}function W(){return N?(0,C.jsxs)(`div`,{className:t.t(`tile-media`,z&&`fill`),children:[v&&(0,C.jsx)(`img`,{src:v,alt:i,className:`tile-image`}),y&&(0,C.jsx)(`video`,{src:y,className:`tile-video`,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-label":i}),w&&(0,C.jsx)(`video`,{ref:M,className:`tile-video`,autoPlay:!0,muted:!0,playsInline:!0,"aria-label":i}),x&&(0,C.jsx)(`div`,{className:`tile-illustration`,children:x}),z&&(0,C.jsx)(`div`,{className:t.t(`tile-scrim`,`scrim-${E}`)})]}):null}function G(){return(0,C.jsxs)(`div`,{className:t.t(`tile-body`,z&&`overlay`,z&&`pos-${E}`),children:[(0,C.jsxs)(`div`,{className:`tile-top`,children:[o&&(0,C.jsx)(`span`,{className:`tile-icon`,children:o}),(0,C.jsx)(`h3`,{className:`tile-title`,children:i})]}),a&&(0,C.jsx)(`p`,{className:`tile-desc`,children:a})]})}let K=O||k&&k.length>0;return(0,C.jsxs)(`div`,{className:t.t(`card-tile`,`color-${s}`,z&&`media-fill`,L&&`interactive`,B,A),onPointerDown:H,...j,children:[V,R&&(0,C.jsx)(P,{href:P===`a`||n?F:void 0,to:I,target:d,rel:f,className:`tile-link`,"aria-label":i,onClick:p?ee:void 0}),!R&&p&&(0,C.jsx)(P,{type:`button`,className:`tile-link`,"aria-label":i,onClick:p}),W(),G(),K&&(0,C.jsxs)(`div`,{className:`tile-actions`,onClick:U,onPointerDown:U,children:[k&&k.length>0&&(0,C.jsx)(b.i,{className:`tile-menu-wrap`,trigger:(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,shape:`circle`,"aria-label":`More options`,className:`tile-overlay-btn`,children:(0,C.jsx)(e.Xn,{})}),placement:`bottom-end`,children:k.map((e,t)=>(0,C.jsx)(b.r,{icon:e.icon,color:e.danger?`error`:void 0,label:e.label,onClick:e.onClick},t))}),O&&(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,shape:`circle`,onClick:O,"aria-label":D?`Remove from favorites`:`Add to favorites`,className:t.t(`tile-overlay-btn`,D&&`tile-fav-active`),children:D?(0,C.jsx)(e.nr,{}):(0,C.jsx)(e.rr,{})})]})]})}function I(e){let{addToCartLabel:t=`Add to cart`,...n}=e;return(0,C.jsx)(M,{variant:`product`,actionLabel:t,...n})}function L(e){let{onRegister:t,registerLabel:n=`Register`,...r}=e;return(0,C.jsx)(M,{variant:`event`,onAddToCart:t?()=>t():void 0,actionLabel:n,...r})}function R(e,t){return t||(typeof e!=`number`||e===0?`neutral`:e>0?`up`:`down`)}function z(e){return typeof e==`number`&&e>0?`+${e}`:e}function B({component:n,to:i,href:a,target:o,rel:s,title:c,value:l,trend:u,trendType:d,icon:f,color:p=`primary`,helperText:h,interactive:g=!1,clickEffect:_,rippleColor:v,className:y,onPointerDown:b,...x}){let S=u!=null,w=R(u,d),T=z(u),{component:E,href:D,to:O,isInteractive:k}=m.a({component:n,href:a,to:i,interactive:g,hasClickHandler:!!x.onClick,hasPointerHandler:!!b}),{effectClassName:A,effectLayer:j,handlePointerDown:M}=r.t({effect:_??(k?`ripple`:`none`),disabled:!k,color:v});return(0,C.jsxs)(E,{href:E===`a`||n?D:void 0,to:O,target:o,rel:s,className:t.t(`card-widget`,`color-${p}`,k&&`interactive`,A,y),onPointerDown:e=>{M(e),b?.(e)},...x,children:[j,(0,C.jsxs)(`div`,{className:`cw-top`,children:[(0,C.jsxs)(`div`,{className:`cw-meta`,children:[(0,C.jsx)(`span`,{className:`cw-title`,children:c}),(0,C.jsx)(`span`,{className:`cw-value`,children:l})]}),f&&(0,C.jsx)(`span`,{className:`cw-icon`,children:f})]}),S&&(0,C.jsx)(`div`,{className:`cw-bottom`,children:(0,C.jsxs)(`span`,{className:t.t(`cw-trend`,w),children:[w===`up`&&(0,C.jsx)(e.Ri,{size:14}),w===`down`&&(0,C.jsx)(e.Li,{size:14}),(0,C.jsx)(`span`,{children:T})]})}),h&&(0,C.jsx)(`div`,{className:`cw-helper`,children:h})]})}function V(e,t){return t||(typeof e!=`number`||e===0?`neutral`:e>0?`up`:`down`)}function H(e){return typeof e==`number`&&e>0?`+${e}`:e}function U({label:n,value:r,icon:i,badge:s,helperText:c,trend:l,trendType:u,color:d=`primary`,className:f,...h}){let g=l!=null,_=V(l,u);return(0,C.jsx)(m.t,{className:t.t(`stat-card`,`color-${d}`,f),...h,children:(0,C.jsxs)(p.t,{padding:`sm`,children:[(0,C.jsxs)(a.n,{justify:`between`,align:`start`,children:[(0,C.jsxs)(p.t,{children:[(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:n}),(0,C.jsx)(`span`,{className:`stat-card-value`,children:r})]}),(0,C.jsxs)(a.n,{align:`center`,padding:`xs`,children:[s,i&&(0,C.jsx)(`span`,{className:`stat-card-icon`,children:i})]})]}),(g||c)&&(0,C.jsxs)(a.n,{justify:`between`,align:`center`,children:[g?(0,C.jsxs)(`span`,{className:t.t(`stat-card-trend`,_),children:[_===`up`&&(0,C.jsx)(e.Ri,{size:14}),_===`down`&&(0,C.jsx)(e.Li,{size:14}),(0,C.jsx)(`span`,{children:H(l)})]}):(0,C.jsx)(`span`,{}),c&&(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:c})]})]})})}function ee(e){if(typeof e==`number`)return{gridTemplateColumns:`repeat(${e}, 1fr)`};let t={};return e.base!==void 0&&(t[`--cols-base`]=e.base),e.sm!==void 0&&(t[`--cols-sm`]=e.sm),e.md!==void 0&&(t[`--cols-md`]=e.md),e.lg!==void 0&&(t[`--cols-lg`]=e.lg),e.xl!==void 0&&(t[`--cols-xl`]=e.xl),e.xxl!==void 0&&(t[`--cols-xxl`]=e.xxl),t}function W(e,t){let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return r}function G({items:n,renderCard:r,color:a=`primary`,searchable:o=!1,searchKeys:s,searchPlaceholder:c=`Search...`,search:d,onSearchChange:f,filterable:p=!1,filterKeys:m=[],filters:h,onFiltersChange:g,sortable:_=!1,sortKeys:y=[],defaultSort:b,sort:w,onSortChange:T,pagination:E=!1,pageSize:D=12,page:O,onPageChange:k,total:A,manualSearch:j=!1,manualFilters:M=!1,manualSort:N=!1,manualPagination:P=!1,columns:F=3,emptyMessage:I=`No results found.`,className:L,style:R,...z}){let[B,V]=(0,S.useState)(``),[H,U]=(0,S.useState)({}),[G,K]=(0,S.useState)(b??null),[q,J]=(0,S.useState)(1),[Y,X]=(0,S.useState)(!1),[te,ne]=(0,S.useState)(!1),re=(0,S.useRef)(null),ie=(0,S.useRef)(null),ae=d===void 0?B:d,Z=h===void 0?H:h,Q=w===void 0?G:w,oe=O===void 0?q:O,se=(0,S.useCallback)(e=>{d===void 0&&V(e),!P&&O===void 0&&J(1),f?.(e)},[d,O,P,f]),ce=(0,S.useCallback)(e=>{h===void 0&&U(e),!P&&O===void 0&&J(1),g?.(e)},[h,O,P,g]),le=(0,S.useCallback)(e=>{w===void 0&&K(e),!P&&O===void 0&&J(1),T?.(e)},[w,O,P,T]),ue=(0,S.useRef)(null),de=(0,S.useCallback)(e=>{O===void 0&&J(e),k?.(e),ue.current?.scrollIntoView({block:`start`,behavior:`smooth`})},[O,k]),fe=(0,S.useCallback)(()=>{X(e=>!e),ne(!1)},[]),pe=(0,S.useCallback)(()=>{ne(e=>!e),X(!1)},[]),$=(0,S.useMemo)(()=>{let e=n;if(!j&&ae&&s&&s.length>0){let t=ae.toLowerCase();e=e.filter(e=>s.some(n=>{let r=W(e,n);return r!=null&&String(r).toLowerCase().includes(t)}))}if(!M)for(let[t,n]of Object.entries(Z))!n||n.length===0||(e=e.filter(e=>{let r=W(e,t);return r!=null&&n.includes(String(r))}));return!N&&Q&&(e=[...e].sort((e,t)=>{let n=W(e,Q.key),r=W(t,Q.key);if(n==null&&r==null)return 0;if(n==null)return 1;if(r==null)return-1;let i=String(n).localeCompare(String(r),void 0,{numeric:!0});return Q.direction===`asc`?i:-i})),e===n?[...e]:e},[n,ae,s,Z,Q,j,M,N]),me=P?A??$.length:$.length,he=(0,S.useMemo)(()=>{if(!E||P)return $;let e=(oe-1)*D;return $.slice(e,e+D)},[$,E,P,oe,D]);function ge(e,t){let n=Z[e]??[],r=n.includes(t)?n.filter(e=>e!==t):[...n,t];ce({...Z,[e]:r})}let _e=(0,S.useMemo)(()=>{let e={};for(let t of m){if(t.options){e[t.key]=t.options;continue}let r=new Set;for(let e of n){let n=W(e,t.key);n!=null&&r.add(String(n))}e[t.key]=Array.from(r).sort()}return e},[n,m]),ve=y.find(e=>e.key===Q?.key);return(0,C.jsxs)(`div`,{ref:ue,className:t.t(`card-grid`,`color-${a}`,L),style:R,...z,children:[(o||p||_)&&(0,C.jsxs)(`div`,{className:`card-grid-toolbar`,children:[o&&(0,C.jsx)(v.t,{className:`card-grid-search`,size:`sm`,fullWidth:!0,placeholder:c,value:ae,onChange:e=>se(e.target.value),onClear:()=>se(``)}),(0,C.jsxs)(`div`,{className:`card-grid-actions`,children:[p&&m.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(l.t,{ref:re,variant:`outlined`,color:a,size:`sm`,startIcon:(0,C.jsx)(e.Jn,{}),"aria-expanded":Y,onClick:fe,children:`Filter`}),(0,C.jsx)(i.t,{open:Y,anchorRef:re,onClose:()=>X(!1),placement:`bottom-end`,className:`card-grid-dropdown`,children:m.map(e=>(0,C.jsxs)(`div`,{className:`card-grid-filter-group`,children:[(0,C.jsx)(`span`,{className:`card-grid-filter-label`,children:e.label}),(_e[e.key]??[]).map(t=>(0,C.jsx)(`div`,{className:`card-grid-filter-option`,children:(0,C.jsx)(u.t,{size:`sm`,clickEffect:`none`,checked:Z[e.key]?.includes(t)??!1,onChange:()=>ge(e.key,t),label:t})},t))]},e.key))})]}),_&&y.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(l.t,{ref:ie,variant:`outlined`,color:a,size:`sm`,startIcon:Q?Q.direction===`asc`?(0,C.jsx)(e.Ri,{}):(0,C.jsx)(e.Li,{}):(0,C.jsx)(e.qn,{}),"aria-expanded":te,onClick:pe,children:ve?`Sort: ${ve.label}`:`Sort`}),(0,C.jsx)(i.t,{open:te,anchorRef:ie,onClose:()=>ne(!1),placement:`bottom-end`,className:`card-grid-dropdown`,children:y.map(n=>(0,C.jsxs)(`button`,{type:`button`,className:t.t(`card-grid-sort-item`,Q?.key===n.key&&`active`),onClick:()=>{Q?.key===n.key?le({key:n.key,direction:Q.direction===`asc`?`desc`:`asc`}):le({key:n.key,direction:`asc`})},children:[n.label,Q?.key===n.key&&(0,C.jsx)(`span`,{className:`card-grid-sort-dir`,children:Q.direction===`asc`?(0,C.jsx)(e.Ri,{className:`card-grid-sort-icon`}):(0,C.jsx)(e.Li,{className:`card-grid-sort-icon`})})]},n.key))})]})]})]}),he.length>0?(0,C.jsx)(`div`,{className:`card-grid-items`,style:ee(F),children:he.map((e,t)=>{let n=e?.id;return(0,C.jsx)(S.Fragment,{children:r(e,t)},n??t)})}):(0,C.jsx)(`div`,{className:`card-grid-empty`,children:I}),E&&me>D&&(0,C.jsx)(`div`,{className:`card-grid-pagination`,children:(0,C.jsx)(x.t,{total:me,page:oe,pageSize:D,onChange:de})})]})}function K({title:e=`Today`,description:t,color:n=`primary`,workdayStart:r,workdayEnd:i,timeline:c,summary:l,tabs:u=[],footer:d,emptyTimeline:h=(0,C.jsx)(o.t,{tone:`muted`,children:`No events scheduled for this day.`}),...g}){let v=r&&i?`${r}-${i}`:r??i??void 0,y=u.filter(e=>e.items.length>0);return(0,C.jsxs)(m.t,{color:n,...g,children:[(0,C.jsx)(m.i,{children:(0,C.jsxs)(p.t,{children:[(0,C.jsx)(s.t,{level:4,children:e}),(t||v)&&(0,C.jsxs)(o.t,{size:`sm`,tone:`muted`,children:[t,t&&v?` `:null,v]})]})}),(0,C.jsx)(m.n,{children:(0,C.jsxs)(f.t,{type:`row`,align:`start`,children:[(0,C.jsx)(f.t,{type:`col`,xl:7,sm:12,children:c.length?(0,C.jsx)(p.t,{className:`day-schedule-card-timeline`,children:c.map(e=>(0,C.jsxs)(a.n,{align:`start`,className:`day-schedule-card-entry`,children:[(0,C.jsx)(`span`,{className:`day-schedule-card-time`,children:e.time}),(0,C.jsx)(`div`,{className:`day-schedule-card-dot`,"data-color":e.color??n,children:E(e.icon,e.color??n)}),(0,C.jsxs)(`div`,{className:`day-schedule-card-copy`,children:[(0,C.jsx)(o.t,{as:`strong`,children:e.title}),e.description&&(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:e.description})]})]},e.id))}):h}),(0,C.jsx)(f.t,{type:`col`,xl:5,sm:12,children:(0,C.jsxs)(p.t,{className:`day-schedule-card-side`,children:[l,y.length>0&&(0,C.jsx)(f.r,{variant:`underline`,size:`sm`,fullWidth:!0,defaultValue:y[0].type,items:y.map(e=>({value:e.type,label:(0,C.jsxs)(`span`,{className:`day-schedule-card-tab-label`,children:[(0,C.jsx)(`span`,{children:e.title}),(0,C.jsx)(`span`,{className:`day-schedule-card-tab-count`,children:e.items.length})]}),content:(0,C.jsx)(_.t,{items:e.items})}))})]})})]})}),d&&(0,C.jsx)(m.r,{children:E(d,n)})]})}function q({title:t=`Documents`,description:n,color:r=`primary`,items:i,selected:c,onSelect:u,defaultExpanded:d,expanded:h,onExpandChange:g,detailsTitle:v,detailsMeta:x,detailsItems:S=[],detailsActions:w=[],renderDetails:T,emptyDetails:D=(0,C.jsx)(o.t,{tone:`muted`,children:`Select a document to inspect its details.`}),primaryAction:O,...k}){let A=e=>({...e,icon:E(e.icon,r),children:e.children?.map(A)}),j=i.map(A);return(0,C.jsxs)(m.t,{stretch:!1,color:r,...k,children:[(0,C.jsx)(m.i,{children:(0,C.jsxs)(a.n,{justify:`between`,align:`center`,children:[(0,C.jsxs)(p.t,{children:[(0,C.jsx)(s.t,{level:4,children:t}),n&&(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:n})]}),E(O,r)]})}),(0,C.jsx)(m.n,{children:(0,C.jsxs)(f.t,{type:`row`,align:`start`,children:[(0,C.jsx)(f.t,{type:`col`,xl:7,sm:12,children:(0,C.jsx)(y.t,{items:j,color:r,defaultExpanded:d,expanded:h,onExpandChange:g,selected:c,onSelect:u,expandable:!0,selectable:!0,showLines:!0,fileIcons:!0})}),(0,C.jsx)(f.t,{type:`col`,xl:5,sm:12,children:(0,C.jsxs)(p.t,{padding:`sm`,children:[(v||x||w.length>0)&&(0,C.jsxs)(a.n,{justify:`between`,align:`start`,children:[(0,C.jsxs)(p.t,{children:[v&&(0,C.jsx)(s.t,{level:5,children:v}),x&&(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:x})]}),w.length>0&&(0,C.jsx)(b.i,{placement:`bottom-end`,trigger:(0,C.jsx)(l.t,{variant:`ghost`,color:r,iconOnly:!0,shape:`circle`,"aria-label":`Open document actions`,children:(0,C.jsx)(e.Xn,{})}),children:w.map(e=>(0,C.jsx)(b.r,{icon:E(e.icon,e.color??r),label:e.label,color:e.color??r,disabled:e.disabled,component:e.component,href:e.href,to:e.to,onClick:e.onClick},e.id))})]}),T||(S.length?(0,C.jsx)(_.t,{items:S}):D)]})})]})})]})}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return N}});
|
|
2
|
-
//# sourceMappingURL=cards-
|
|
1
|
+
const e=require(`./icons-BHFwX7ri.cjs`),t=require(`./cn-CU5TNITO.cjs`),n=require(`./creditCards-D_HwRUBz.cjs`),r=require(`./useInteractionEffect-BH2dgQla.cjs`),i=require(`./MPopover-BbgAAM5Z.cjs`),a=require(`./MSurface-WsYGNGX5.cjs`),o=require(`./MText-CAbqC2qZ.cjs`),s=require(`./MHeading-TJ5yvklz.cjs`),c=require(`./MLink-CZ2FfQ0N.cjs`),l=require(`./MButton-ouB6903s.cjs`),u=require(`./MCheckbox-Cbk5hwzJ.cjs`),d=require(`./MSkeleton-JMkJFzu9.cjs`),f=require(`./MGrid-Di7laCq4.cjs`),p=require(`./MStack-DDn2bYBQ.cjs`),m=require(`./MCard-Bg_R86Gr.cjs`),h=require(`./MInputCVC-D1rSjwXj.cjs`),g=require(`./MAvatar-BElYyQXH.cjs`),_=require(`./MDetailList-CpwrF22b.cjs`),v=require(`./MInputSearch-D2Fr_34s.cjs`),y=require(`./MTreeView-B7IWHmGc.cjs`),b=require(`./MDropdownMenu-Coy-0Wee.cjs`),x=require(`./MPagination-CAzIIP2o.cjs`);require(`./core-B2klLGki.cjs`);let S=require(`react`),C=require(`react/jsx-runtime`);function w(e){if(typeof e==`string`)return e;if(typeof e==`function`){let t=e;return t.displayName??t.name??``}if(typeof e==`object`&&e){let t=e;return t.displayName??t.render?.displayName??t.render?.name??``}return``}function T(e){if(e.props.color!==void 0)return!1;if(e.type===l.t)return!0;let t=w(e.type);return t.startsWith(`M`)&&t.endsWith(`Icon`)}function E(e,t){return t?S.Children.map(e,e=>{if(!(0,S.isValidElement)(e))return e;let n=e,r=n.props,i=r.children?E(r.children,t):r.children,a={};return i!==r.children&&(a.children=i),T(n)&&(a.color=t),Object.keys(a).length?(0,S.cloneElement)(n,a):n}):e}function D({component:e,to:n,href:i,target:a,rel:o,color:s,interactive:c=!0,clickEffect:l,rippleColor:u,className:d,children:f,onPointerDown:p,type:h,...g}){let{component:_,href:v,to:y,isInteractive:b}=m.a({component:e,href:i,to:n,interactive:c,hasClickHandler:!!g.onClick,hasPointerHandler:!!p,fallbackComponent:`button`}),{effectClassName:x,effectLayer:S,handlePointerDown:w}=r.t({effect:l??(b?`ripple`:`none`),disabled:!b,color:u});return(0,C.jsxs)(_,{href:_===`a`||e?v:void 0,to:y,target:a,rel:o,type:_===`button`?h??`button`:void 0,className:t.t(`card-action-area`,s&&`color-${s}`,b&&`interactive`,x,d),onPointerDown:e=>{w(e),p?.(e)},...g,children:[S,(0,C.jsx)(`span`,{className:`card-action-area-content`,children:E(f,s)})]})}function O(e){let t=e.replace(/\D/g,``);return t.length<=4?t:`\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ${t.slice(-4)}`}function k({component:e,to:i,href:a,target:o,rel:s,holder:c,number:l,expiry:u,brand:d,brandIcon:f,balance:p,balanceLabel:h=`Current balance`,color:g,interactive:_=!1,clickEffect:v,rippleColor:y,className:b,onPointerDown:x,...S}){let w=n.n(l),T=d??w.brand,E=n.t.find(e=>e.brand===T)??w,D=O(l),k=E.iconLabel,{component:A,href:j,to:M,isInteractive:N}=m.a({component:e,href:a,to:i,interactive:_,hasClickHandler:!!S.onClick,hasPointerHandler:!!x}),{effectClassName:P,effectLayer:F,handlePointerDown:I}=r.t({effect:v??(N?`ripple`:`none`),disabled:!N,color:y});return(0,C.jsxs)(A,{href:A===`a`||e?j:void 0,to:M,target:o,rel:s,className:t.t(`card-payment`,g||`primary`,N&&`interactive`,P,b),onPointerDown:e=>{I(e),x?.(e)},...S,children:[F,p!==void 0&&(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`p`,{className:`cp-balance-label`,children:h}),(0,C.jsx)(`p`,{className:`cp-balance`,children:p})]}),(0,C.jsxs)(`div`,{className:`cp-row`,children:[(0,C.jsx)(`span`,{className:t.t(`cp-brand`,!f&&T),children:f??k}),(0,C.jsx)(`span`,{className:`cp-number`,children:D})]}),(0,C.jsxs)(`div`,{className:`cp-details`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`p`,{className:`cp-field-label`,children:`MCard holder`}),(0,C.jsx)(`p`,{className:`cp-field-value`,children:c})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`p`,{className:`cp-field-label`,children:`Expiration date`}),(0,C.jsx)(`p`,{className:`cp-field-value`,children:u})]})]})]})}function A(e){return n.t.find(t=>t.brand===e)?.iconLabel??`CARD`}function j({title:n=`Your payment methods`,actionLabel:r=`Change`,actionHref:i=`#`,onAction:s,brand:l=`visa`,brandIcon:u,last4:f,badgeLabel:p,summary:m,helperText:g=`All fields are required, unless stated otherwise.`,expiryLabel:_=`Expiration date`,cvcLabel:v=`Security code`,expiryProps:y,cvcProps:b,color:x,className:S,...w}){let T=y?.value??y?.defaultValue,E=p===void 0?`Default`:p,D=T?`Credit card - Expiration date ${String(T).replace(`/`,`.`)}`:`Credit card`,O=m===void 0?D:m,k=A(l),j={clearable:!0,...y};return(0,C.jsxs)(`div`,{className:t.t(`card-payment-method`,x||`primary`,S),...w,children:[(0,C.jsxs)(`div`,{className:`cpm-header`,children:[(0,C.jsx)(`h3`,{className:`cpm-title`,children:n}),(0,C.jsxs)(c.t,{href:i,tone:`accent`,underline:`none`,className:`cpm-action`,onClick:e=>{s&&(e.preventDefault(),s())},children:[r,(0,C.jsx)(e.zi,{})]})]}),(0,C.jsxs)(`div`,{className:`cpm-surface`,children:[(0,C.jsxs)(`div`,{className:`cpm-method`,children:[(0,C.jsxs)(a.n,{align:`center`,className:`cpm-method-row`,children:[(0,C.jsx)(`span`,{className:t.t(`cpm-brand`,!u&&l),children:u??k}),(0,C.jsx)(`span`,{className:`cpm-last4`,children:`\u2022\u2022\u2022\u2022 ${f}`}),E&&(0,C.jsx)(d.n,{color:`info`,children:E})]}),O&&(0,C.jsx)(o.t,{tone:`muted`,className:`cpm-summary`,children:O})]}),g&&(0,C.jsx)(o.t,{tone:`muted`,size:`sm`,className:`cpm-helper`,children:g}),(0,C.jsxs)(`div`,{className:`cpm-fields`,children:[(0,C.jsx)(h.n,{label:_,placeholder:`MM/YYYY`,fullWidth:!0,...j}),(0,C.jsx)(h.t,{label:v,placeholder:`123`,fullWidth:!0,...b})]})]})]})}function M({variant:n,title:r,description:i,price:a,currency:o=`PLN`,duration:s,available:c,image:u,gallery:f,galleryAutoPlay:p=!1,rating:m,reviewCount:h,favorite:v,onFavorite:y,menuItems:x,onAddToCart:w,actionLabel:T,icon:E,color:D=`primary`,leader:O,participants:k,maxParticipants:A,quantity:j,onQuantityChange:M,showQuantity:N=!0,date:P,location:F,status:I,className:L,...R}){let[z,B]=(0,S.useState)(0),[V,H]=(0,S.useState)(!1),[U,ee]=(0,S.useState)(1),W=j??U,G=f&&f.length>0?f:u?[u]:[];(0,S.useEffect)(()=>{z>=G.length&&B(0)},[z,G.length]),(0,S.useEffect)(()=>{if(!V)return;let e=window.setTimeout(()=>{H(!1)},220);return()=>window.clearTimeout(e)},[z,V]);function K(e){e===z||e<0||e>=G.length||(G.length>1&&H(!0),B(e))}(0,S.useEffect)(()=>{if(!p||G.length<=1)return;let e=window.setInterval(()=>{H(!0),B(e=>(e+1)%G.length)},3500);return()=>window.clearInterval(e)},[p,G.length]);function q(e){let t=Math.max(1,e);M?M(t):ee(t)}let J=c===!0?`Available`:c===!1?`Unavailable`:typeof c==`number`?`${c} spots`:null,Y=P?P instanceof Date?P:new Date(P):null,X=Y?Y.getDate():null,te=Y?Y.toLocaleString(`en`,{month:`short`}).toUpperCase():null;return(0,C.jsxs)(`div`,{className:t.t(`card-service`,n,`color-${D}`,L),...R,children:[G.length>0&&(0,C.jsxs)(`div`,{className:`cs-gallery`,children:[(0,C.jsx)(`img`,{src:G[z],alt:r,className:t.t(`cs-image`,V&&`is-transitioning`)}),G.length>1&&(0,C.jsx)(`div`,{className:`cs-gallery-dots`,children:G.map((e,n)=>(0,C.jsx)(`button`,{type:`button`,className:t.t(`cs-dot`,n===z&&`active`),onClick:()=>K(n),"aria-label":`Image ${n+1}`},n))}),(y||x&&x.length>0)&&(0,C.jsxs)(`div`,{className:`cs-gallery-actions`,children:[x&&x.length>0&&(0,C.jsx)(b.i,{className:`cs-menu-wrap`,trigger:(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,shape:`circle`,"aria-label":`More options`,className:`cs-overlay-btn`,children:(0,C.jsx)(e.Xn,{})}),placement:`bottom-end`,children:x.map((e,t)=>(0,C.jsx)(b.r,{icon:e.icon,color:e.danger?`error`:void 0,label:e.label,onClick:e.onClick},t))}),y&&(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,shape:`circle`,onClick:y,"aria-label":v?`Remove from favorites`:`Add to favorites`,className:t.t(`cs-overlay-btn`,v&&`cs-fav-active`),children:v?(0,C.jsx)(e.nr,{}):(0,C.jsx)(e.rr,{})})]})]}),(0,C.jsxs)(`div`,{className:`cs-body`,children:[n===`event`&&Y&&(0,C.jsxs)(`div`,{className:`cs-event-header`,children:[(0,C.jsxs)(`div`,{className:`cs-date-block`,children:[(0,C.jsx)(`span`,{className:`cs-date-day`,children:X}),(0,C.jsx)(`span`,{className:`cs-date-month`,children:te})]}),(0,C.jsxs)(`div`,{className:`cs-event-info`,children:[(0,C.jsx)(`h3`,{className:`cs-title`,children:r}),i&&(0,C.jsx)(`p`,{className:`cs-desc`,children:i})]})]}),n!==`event`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`cs-top`,children:[E&&(0,C.jsx)(`span`,{className:`cs-icon`,children:E}),(0,C.jsx)(`h3`,{className:`cs-title`,children:r})]}),i&&(0,C.jsx)(`p`,{className:`cs-desc`,children:i})]}),n===`event`&&!Y&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`cs-top`,children:[E&&(0,C.jsx)(`span`,{className:`cs-icon`,children:E}),(0,C.jsx)(`h3`,{className:`cs-title`,children:r})]}),i&&(0,C.jsx)(`p`,{className:`cs-desc`,children:i})]}),m!==void 0&&(0,C.jsxs)(`div`,{className:`cs-rating`,children:[(0,C.jsx)(_.n,{value:Math.round(m),size:`sm`,color:`warning`,readOnly:!0,className:`cs-stars`}),(0,C.jsx)(`span`,{className:`cs-rating-value`,children:m.toFixed(1)}),h!==void 0&&(0,C.jsxs)(`span`,{className:`cs-review-count`,children:[`(`,h,`)`]})]}),O&&(0,C.jsxs)(`div`,{className:`cs-leader`,children:[(0,C.jsx)(g.t,{src:O.avatar,name:O.name,size:28,color:D}),(0,C.jsx)(`span`,{className:`cs-leader-name`,children:O.name})]}),n===`course`&&k&&(0,C.jsxs)(`div`,{className:`cs-participants`,children:[(0,C.jsx)(`div`,{className:`cs-participants-avatars`,children:k.slice(0,4).map((e,t)=>(0,C.jsx)(g.t,{src:e.avatar,name:e.name,size:28,color:D,className:`cs-participant-avatar`},`${e.name}-${t}`))}),A&&(0,C.jsxs)(`span`,{className:`cs-spots`,children:[k.length,`/`,A]})]}),(0,C.jsxs)(`div`,{className:`cs-meta`,children:[n===`event`&&F&&(0,C.jsx)(d.n,{size:`xs`,color:D,children:F}),s&&(0,C.jsx)(d.n,{size:`xs`,color:D,icon:(0,C.jsx)(e.Ni,{}),children:s}),n===`event`&&I&&(0,C.jsx)(d.n,{size:`xs`,color:I.toLowerCase()===`sold out`?`error`:D,children:I}),J&&n!==`event`&&(0,C.jsx)(d.n,{size:`xs`,color:c===!1?`error`:D,children:J})]})]}),(0,C.jsxs)(`div`,{className:`cs-footer`,children:[a!==void 0&&(0,C.jsxs)(`span`,{className:`cs-price`,children:[typeof a==`number`?a.toFixed(2):a,` `,(0,C.jsx)(`span`,{className:`cs-currency`,children:o})]}),(0,C.jsxs)(`div`,{className:`cs-actions`,children:[n===`product`&&w&&N&&(0,C.jsxs)(`div`,{className:`cs-qty`,children:[(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,size:`sm`,onClick:()=>q(W-1),"aria-label":`Decrease`,className:`cs-qty-btn`,children:(0,C.jsx)(e.Or,{})}),(0,C.jsx)(`span`,{className:`cs-qty-value`,children:W}),(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,size:`sm`,onClick:()=>q(W+1),"aria-label":`Increase`,className:`cs-qty-btn`,children:(0,C.jsx)(e.kr,{})})]}),w&&(0,C.jsx)(l.t,{variant:`filled`,size:`sm`,color:D,onClick:()=>w(W),disabled:c===!1,className:`cs-cart-btn`,children:T??(n===`event`?`Register`:`Add to cart`)})]})]})]})}function N(e){let{onAction:t,actionLabel:n=`Book now`,...r}=e;return(0,C.jsx)(M,{variant:`service`,onAddToCart:t?()=>t():void 0,actionLabel:n,...r})}function P(e){let{onAction:t,actionLabel:n=`Join course`,...r}=e;return(0,C.jsx)(M,{variant:`course`,onAddToCart:t?()=>t():void 0,actionLabel:n,...r})}function F({component:n,title:i,description:a,icon:o,color:s=`primary`,to:c,href:u,target:d,rel:f,onClick:p,interactive:h=!1,clickEffect:g,rippleColor:_,image:v,video:y,illustration:x,camera:w,mediaFill:T=!1,overlayPosition:E=`bottom`,favorite:D,onFavorite:O,menuItems:k,className:A,...j}){let M=(0,S.useRef)(null);(0,S.useEffect)(()=>{if(!w)return;let e=M.current;if(!e||typeof navigator>`u`||!navigator.mediaDevices?.getUserMedia)return;let t=null,n=!1,r=w===!0?{video:!0}:w;return navigator.mediaDevices.getUserMedia(r).then(r=>{if(n){r.getTracks().forEach(e=>e.stop());return}t=r,e.srcObject=r,e.play().catch(()=>void 0)}).catch(()=>void 0),()=>{n=!0,t&&t.getTracks().forEach(e=>e.stop()),e.srcObject=null}},[w]);let N=!!(v||y||x||w),{component:P,href:F,to:I,isInteractive:L,isLink:R}=m.a({component:n,href:u,to:c,interactive:h,hasClickHandler:!!p,fallbackComponent:`button`}),z=T&&N,{effectClassName:B,effectLayer:V,handlePointerDown:H}=r.t({effect:g??(L?`ripple`:`none`),disabled:!L,color:_});function U(e){e.stopPropagation()}function ee(e){p&&(e.preventDefault(),p())}function W(){return N?(0,C.jsxs)(`div`,{className:t.t(`tile-media`,z&&`fill`),children:[v&&(0,C.jsx)(`img`,{src:v,alt:i,className:`tile-image`}),y&&(0,C.jsx)(`video`,{src:y,className:`tile-video`,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-label":i}),w&&(0,C.jsx)(`video`,{ref:M,className:`tile-video`,autoPlay:!0,muted:!0,playsInline:!0,"aria-label":i}),x&&(0,C.jsx)(`div`,{className:`tile-illustration`,children:x}),z&&(0,C.jsx)(`div`,{className:t.t(`tile-scrim`,`scrim-${E}`)})]}):null}function G(){return(0,C.jsxs)(`div`,{className:t.t(`tile-body`,z&&`overlay`,z&&`pos-${E}`),children:[(0,C.jsxs)(`div`,{className:`tile-top`,children:[o&&(0,C.jsx)(`span`,{className:`tile-icon`,children:o}),(0,C.jsx)(`h3`,{className:`tile-title`,children:i})]}),a&&(0,C.jsx)(`p`,{className:`tile-desc`,children:a})]})}let K=O||k&&k.length>0;return(0,C.jsxs)(`div`,{className:t.t(`card-tile`,`color-${s}`,z&&`media-fill`,L&&`interactive`,B,A),onPointerDown:H,...j,children:[V,R&&(0,C.jsx)(P,{href:P===`a`||n?F:void 0,to:I,target:d,rel:f,className:`tile-link`,"aria-label":i,onClick:p?ee:void 0}),!R&&p&&(0,C.jsx)(P,{type:`button`,className:`tile-link`,"aria-label":i,onClick:p}),W(),G(),K&&(0,C.jsxs)(`div`,{className:`tile-actions`,onClick:U,onPointerDown:U,children:[k&&k.length>0&&(0,C.jsx)(b.i,{className:`tile-menu-wrap`,trigger:(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,shape:`circle`,"aria-label":`More options`,className:`tile-overlay-btn`,children:(0,C.jsx)(e.Xn,{})}),placement:`bottom-end`,children:k.map((e,t)=>(0,C.jsx)(b.r,{icon:e.icon,color:e.danger?`error`:void 0,label:e.label,onClick:e.onClick},t))}),O&&(0,C.jsx)(l.t,{variant:`ghost`,iconOnly:!0,shape:`circle`,onClick:O,"aria-label":D?`Remove from favorites`:`Add to favorites`,className:t.t(`tile-overlay-btn`,D&&`tile-fav-active`),children:D?(0,C.jsx)(e.nr,{}):(0,C.jsx)(e.rr,{})})]})]})}function I(e){let{addToCartLabel:t=`Add to cart`,...n}=e;return(0,C.jsx)(M,{variant:`product`,actionLabel:t,...n})}function L(e){let{onRegister:t,registerLabel:n=`Register`,...r}=e;return(0,C.jsx)(M,{variant:`event`,onAddToCart:t?()=>t():void 0,actionLabel:n,...r})}function R(e,t){return t||(typeof e!=`number`||e===0?`neutral`:e>0?`up`:`down`)}function z(e){return typeof e==`number`&&e>0?`+${e}`:e}function B({component:n,to:i,href:a,target:o,rel:s,title:c,value:l,trend:u,trendType:d,icon:f,color:p=`primary`,helperText:h,interactive:g=!1,clickEffect:_,rippleColor:v,className:y,onPointerDown:b,...x}){let S=u!=null,w=R(u,d),T=z(u),{component:E,href:D,to:O,isInteractive:k}=m.a({component:n,href:a,to:i,interactive:g,hasClickHandler:!!x.onClick,hasPointerHandler:!!b}),{effectClassName:A,effectLayer:j,handlePointerDown:M}=r.t({effect:_??(k?`ripple`:`none`),disabled:!k,color:v});return(0,C.jsxs)(E,{href:E===`a`||n?D:void 0,to:O,target:o,rel:s,className:t.t(`card-widget`,`color-${p}`,k&&`interactive`,A,y),onPointerDown:e=>{M(e),b?.(e)},...x,children:[j,(0,C.jsxs)(`div`,{className:`cw-top`,children:[(0,C.jsxs)(`div`,{className:`cw-meta`,children:[(0,C.jsx)(`span`,{className:`cw-title`,children:c}),(0,C.jsx)(`span`,{className:`cw-value`,children:l})]}),f&&(0,C.jsx)(`span`,{className:`cw-icon`,children:f})]}),S&&(0,C.jsx)(`div`,{className:`cw-bottom`,children:(0,C.jsxs)(`span`,{className:t.t(`cw-trend`,w),children:[w===`up`&&(0,C.jsx)(e.Ri,{size:14}),w===`down`&&(0,C.jsx)(e.Li,{size:14}),(0,C.jsx)(`span`,{children:T})]})}),h&&(0,C.jsx)(`div`,{className:`cw-helper`,children:h})]})}function V(e,t){return t||(typeof e!=`number`||e===0?`neutral`:e>0?`up`:`down`)}function H(e){return typeof e==`number`&&e>0?`+${e}`:e}function U({label:n,value:r,icon:i,badge:s,helperText:c,trend:l,trendType:u,color:d=`primary`,className:f,...h}){let g=l!=null,_=V(l,u);return(0,C.jsx)(m.t,{className:t.t(`stat-card`,`color-${d}`,f),...h,children:(0,C.jsxs)(p.t,{padding:`sm`,children:[(0,C.jsxs)(a.n,{justify:`between`,align:`start`,children:[(0,C.jsxs)(p.t,{children:[(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:n}),(0,C.jsx)(`span`,{className:`stat-card-value`,children:r})]}),(0,C.jsxs)(a.n,{align:`center`,padding:`xs`,children:[s,i&&(0,C.jsx)(`span`,{className:`stat-card-icon`,children:i})]})]}),(g||c)&&(0,C.jsxs)(a.n,{justify:`between`,align:`center`,children:[g?(0,C.jsxs)(`span`,{className:t.t(`stat-card-trend`,_),children:[_===`up`&&(0,C.jsx)(e.Ri,{size:14}),_===`down`&&(0,C.jsx)(e.Li,{size:14}),(0,C.jsx)(`span`,{children:H(l)})]}):(0,C.jsx)(`span`,{}),c&&(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:c})]})]})})}function ee(e){if(typeof e==`number`)return{gridTemplateColumns:`repeat(${e}, 1fr)`};let t={};return e.base!==void 0&&(t[`--cols-base`]=e.base),e.sm!==void 0&&(t[`--cols-sm`]=e.sm),e.md!==void 0&&(t[`--cols-md`]=e.md),e.lg!==void 0&&(t[`--cols-lg`]=e.lg),e.xl!==void 0&&(t[`--cols-xl`]=e.xl),e.xxl!==void 0&&(t[`--cols-xxl`]=e.xxl),t}function W(e,t){let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return r}function G({items:n,renderCard:r,color:a=`primary`,searchable:o=!1,searchKeys:s,searchPlaceholder:c=`Search...`,search:d,onSearchChange:f,filterable:p=!1,filterKeys:m=[],filters:h,onFiltersChange:g,sortable:_=!1,sortKeys:y=[],defaultSort:b,sort:w,onSortChange:T,pagination:E=!1,pageSize:D=12,page:O,onPageChange:k,total:A,manualSearch:j=!1,manualFilters:M=!1,manualSort:N=!1,manualPagination:P=!1,columns:F=3,emptyMessage:I=`No results found.`,className:L,style:R,...z}){let[B,V]=(0,S.useState)(``),[H,U]=(0,S.useState)({}),[G,K]=(0,S.useState)(b??null),[q,J]=(0,S.useState)(1),[Y,X]=(0,S.useState)(!1),[te,ne]=(0,S.useState)(!1),re=(0,S.useRef)(null),ie=(0,S.useRef)(null),ae=d===void 0?B:d,Z=h===void 0?H:h,Q=w===void 0?G:w,oe=O===void 0?q:O,se=(0,S.useCallback)(e=>{d===void 0&&V(e),!P&&O===void 0&&J(1),f?.(e)},[d,O,P,f]),ce=(0,S.useCallback)(e=>{h===void 0&&U(e),!P&&O===void 0&&J(1),g?.(e)},[h,O,P,g]),le=(0,S.useCallback)(e=>{w===void 0&&K(e),!P&&O===void 0&&J(1),T?.(e)},[w,O,P,T]),ue=(0,S.useRef)(null),de=(0,S.useCallback)(e=>{O===void 0&&J(e),k?.(e),ue.current?.scrollIntoView({block:`start`,behavior:`smooth`})},[O,k]),fe=(0,S.useCallback)(()=>{X(e=>!e),ne(!1)},[]),pe=(0,S.useCallback)(()=>{ne(e=>!e),X(!1)},[]),$=(0,S.useMemo)(()=>{let e=n;if(!j&&ae&&s&&s.length>0){let t=ae.toLowerCase();e=e.filter(e=>s.some(n=>{let r=W(e,n);return r!=null&&String(r).toLowerCase().includes(t)}))}if(!M)for(let[t,n]of Object.entries(Z))!n||n.length===0||(e=e.filter(e=>{let r=W(e,t);return r!=null&&n.includes(String(r))}));return!N&&Q&&(e=[...e].sort((e,t)=>{let n=W(e,Q.key),r=W(t,Q.key);if(n==null&&r==null)return 0;if(n==null)return 1;if(r==null)return-1;let i=String(n).localeCompare(String(r),void 0,{numeric:!0});return Q.direction===`asc`?i:-i})),e===n?[...e]:e},[n,ae,s,Z,Q,j,M,N]),me=P?A??$.length:$.length,he=(0,S.useMemo)(()=>{if(!E||P)return $;let e=(oe-1)*D;return $.slice(e,e+D)},[$,E,P,oe,D]);function ge(e,t){let n=Z[e]??[],r=n.includes(t)?n.filter(e=>e!==t):[...n,t];ce({...Z,[e]:r})}let _e=(0,S.useMemo)(()=>{let e={};for(let t of m){if(t.options){e[t.key]=t.options;continue}let r=new Set;for(let e of n){let n=W(e,t.key);n!=null&&r.add(String(n))}e[t.key]=Array.from(r).sort()}return e},[n,m]),ve=y.find(e=>e.key===Q?.key);return(0,C.jsxs)(`div`,{ref:ue,className:t.t(`card-grid`,`color-${a}`,L),style:R,...z,children:[(o||p||_)&&(0,C.jsxs)(`div`,{className:`card-grid-toolbar`,children:[o&&(0,C.jsx)(v.t,{className:`card-grid-search`,size:`sm`,fullWidth:!0,placeholder:c,value:ae,onChange:e=>se(e.target.value),onClear:()=>se(``)}),(0,C.jsxs)(`div`,{className:`card-grid-actions`,children:[p&&m.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(l.t,{ref:re,variant:`outlined`,color:a,size:`sm`,startIcon:(0,C.jsx)(e.Jn,{}),"aria-expanded":Y,onClick:fe,children:`Filter`}),(0,C.jsx)(i.t,{open:Y,anchorRef:re,onClose:()=>X(!1),placement:`bottom-end`,className:`card-grid-dropdown`,children:m.map(e=>(0,C.jsxs)(`div`,{className:`card-grid-filter-group`,children:[(0,C.jsx)(`span`,{className:`card-grid-filter-label`,children:e.label}),(_e[e.key]??[]).map(t=>(0,C.jsx)(`div`,{className:`card-grid-filter-option`,children:(0,C.jsx)(u.t,{size:`sm`,clickEffect:`none`,checked:Z[e.key]?.includes(t)??!1,onChange:()=>ge(e.key,t),label:t})},t))]},e.key))})]}),_&&y.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(l.t,{ref:ie,variant:`outlined`,color:a,size:`sm`,startIcon:Q?Q.direction===`asc`?(0,C.jsx)(e.Ri,{}):(0,C.jsx)(e.Li,{}):(0,C.jsx)(e.qn,{}),"aria-expanded":te,onClick:pe,children:ve?`Sort: ${ve.label}`:`Sort`}),(0,C.jsx)(i.t,{open:te,anchorRef:ie,onClose:()=>ne(!1),placement:`bottom-end`,className:`card-grid-dropdown`,children:y.map(n=>(0,C.jsxs)(`button`,{type:`button`,className:t.t(`card-grid-sort-item`,Q?.key===n.key&&`active`),onClick:()=>{Q?.key===n.key?le({key:n.key,direction:Q.direction===`asc`?`desc`:`asc`}):le({key:n.key,direction:`asc`})},children:[n.label,Q?.key===n.key&&(0,C.jsx)(`span`,{className:`card-grid-sort-dir`,children:Q.direction===`asc`?(0,C.jsx)(e.Ri,{className:`card-grid-sort-icon`}):(0,C.jsx)(e.Li,{className:`card-grid-sort-icon`})})]},n.key))})]})]})]}),he.length>0?(0,C.jsx)(`div`,{className:`card-grid-items`,style:ee(F),children:he.map((e,t)=>{let n=e?.id;return(0,C.jsx)(S.Fragment,{children:r(e,t)},n??t)})}):(0,C.jsx)(`div`,{className:`card-grid-empty`,children:I}),E&&me>D&&(0,C.jsx)(`div`,{className:`card-grid-pagination`,children:(0,C.jsx)(x.t,{total:me,page:oe,pageSize:D,onChange:de})})]})}function K({title:e=`Today`,description:t,color:n=`primary`,workdayStart:r,workdayEnd:i,timeline:c,summary:l,tabs:u=[],footer:d,emptyTimeline:h=(0,C.jsx)(o.t,{tone:`muted`,children:`No events scheduled for this day.`}),...g}){let v=r&&i?`${r}-${i}`:r??i??void 0,y=u.filter(e=>e.items.length>0);return(0,C.jsxs)(m.t,{color:n,...g,children:[(0,C.jsx)(m.i,{children:(0,C.jsxs)(p.t,{children:[(0,C.jsx)(s.t,{level:4,children:e}),(t||v)&&(0,C.jsxs)(o.t,{size:`sm`,tone:`muted`,children:[t,t&&v?` `:null,v]})]})}),(0,C.jsx)(m.n,{children:(0,C.jsxs)(f.t,{type:`row`,align:`start`,children:[(0,C.jsx)(f.t,{type:`col`,xl:7,sm:12,children:c.length?(0,C.jsx)(p.t,{className:`day-schedule-card-timeline`,children:c.map(e=>(0,C.jsxs)(a.n,{align:`start`,className:`day-schedule-card-entry`,children:[(0,C.jsx)(`span`,{className:`day-schedule-card-time`,children:e.time}),(0,C.jsx)(`div`,{className:`day-schedule-card-dot`,"data-color":e.color??n,children:E(e.icon,e.color??n)}),(0,C.jsxs)(`div`,{className:`day-schedule-card-copy`,children:[(0,C.jsx)(o.t,{as:`strong`,children:e.title}),e.description&&(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:e.description})]})]},e.id))}):h}),(0,C.jsx)(f.t,{type:`col`,xl:5,sm:12,children:(0,C.jsxs)(p.t,{className:`day-schedule-card-side`,children:[l,y.length>0&&(0,C.jsx)(f.r,{variant:`underline`,size:`sm`,fullWidth:!0,defaultValue:y[0].type,items:y.map(e=>({value:e.type,label:(0,C.jsxs)(`span`,{className:`day-schedule-card-tab-label`,children:[(0,C.jsx)(`span`,{children:e.title}),(0,C.jsx)(`span`,{className:`day-schedule-card-tab-count`,children:e.items.length})]}),content:(0,C.jsx)(_.t,{items:e.items})}))})]})})]})}),d&&(0,C.jsx)(m.r,{children:E(d,n)})]})}function q({title:t=`Documents`,description:n,color:r=`primary`,items:i,selected:c,onSelect:u,defaultExpanded:d,expanded:h,onExpandChange:g,detailsTitle:v,detailsMeta:x,detailsItems:S=[],detailsActions:w=[],renderDetails:T,emptyDetails:D=(0,C.jsx)(o.t,{tone:`muted`,children:`Select a document to inspect its details.`}),primaryAction:O,...k}){let A=e=>({...e,icon:E(e.icon,r),children:e.children?.map(A)}),j=i.map(A);return(0,C.jsxs)(m.t,{stretch:!1,color:r,...k,children:[(0,C.jsx)(m.i,{children:(0,C.jsxs)(a.n,{justify:`between`,align:`center`,children:[(0,C.jsxs)(p.t,{children:[(0,C.jsx)(s.t,{level:4,children:t}),n&&(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:n})]}),E(O,r)]})}),(0,C.jsx)(m.n,{children:(0,C.jsxs)(f.t,{type:`row`,align:`start`,children:[(0,C.jsx)(f.t,{type:`col`,xl:7,sm:12,children:(0,C.jsx)(y.t,{items:j,color:r,defaultExpanded:d,expanded:h,onExpandChange:g,selected:c,onSelect:u,expandable:!0,selectable:!0,showLines:!0,fileIcons:!0})}),(0,C.jsx)(f.t,{type:`col`,xl:5,sm:12,children:(0,C.jsxs)(p.t,{padding:`sm`,children:[(v||x||w.length>0)&&(0,C.jsxs)(a.n,{justify:`between`,align:`start`,children:[(0,C.jsxs)(p.t,{children:[v&&(0,C.jsx)(s.t,{level:5,children:v}),x&&(0,C.jsx)(o.t,{size:`sm`,tone:`muted`,children:x})]}),w.length>0&&(0,C.jsx)(b.i,{placement:`bottom-end`,trigger:(0,C.jsx)(l.t,{variant:`ghost`,color:r,iconOnly:!0,shape:`circle`,"aria-label":`Open document actions`,children:(0,C.jsx)(e.Xn,{})}),children:w.map(e=>(0,C.jsx)(b.r,{icon:E(e.icon,e.color??r),label:e.label,color:e.color??r,disabled:e.disabled,component:e.component,href:e.href,to:e.to,onClick:e.onClick},e.id))})]}),T||(S.length?(0,C.jsx)(_.t,{items:S}):D)]})})]})})]})}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return N}});
|
|
2
|
+
//# sourceMappingURL=cards-DWNtiO72.cjs.map
|