hisd3-ui-kit 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/dist/index.cjs.js +8 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +92 -91
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -233,7 +233,12 @@ The panel copy (`panelTitle` / `panelSubtitle`) defaults to
|
|
|
233
233
|
"One system for every part of your hospital." with a supporting line; pass your
|
|
234
234
|
own for a module-specific message, or `panelSubtitle={null}` for headline only.
|
|
235
235
|
`logoSrc` swaps the card logo for a module mark; leave it off and the HISD3
|
|
236
|
-
logo is used
|
|
236
|
+
logo is used, and a `logoSrc` that fails to load (Atlas down, no hospital logo
|
|
237
|
+
configured) falls back to it too rather than showing a broken image.
|
|
238
|
+
|
|
239
|
+
The page follows the provider's `mode`: in dark mode the page and the card
|
|
240
|
+
take the dark surfaces and the fields the dark field colour, with the brand
|
|
241
|
+
panel still in the primary. `HISD3_LOGO_SRC` is exported if you need the mark elsewhere.
|
|
237
242
|
`primary` accepts the brand presets `"brand"` (the logo's gear, `#E5533B`) and
|
|
238
243
|
`"brandBlue"` (its cloud, `#1B6FE0`), any other preset, or a hex value.
|
|
239
244
|
|
|
@@ -398,6 +403,12 @@ again — and the instance unmounts once the animation finishes.
|
|
|
398
403
|
|
|
399
404
|
## Migrating
|
|
400
405
|
|
|
406
|
+
### from 5.2.0
|
|
407
|
+
|
|
408
|
+
Nothing to change. 5.2.1 makes `HISD3LoginPage` follow dark mode (it kept a
|
|
409
|
+
white card under dark-mode text) and falls back to the HISD3 mark when
|
|
410
|
+
`logoSrc` fails to load.
|
|
411
|
+
|
|
401
412
|
### from 5.1
|
|
402
413
|
|
|
403
414
|
Nothing to change in code; the look moves:
|
package/dist/index.cjs.js
CHANGED
|
@@ -425,7 +425,8 @@
|
|
|
425
425
|
align-items: center;
|
|
426
426
|
justify-content: ${({$side:e})=>"right"===e?"flex-end":"flex-start"};
|
|
427
427
|
overflow-x: hidden;
|
|
428
|
-
|
|
428
|
+
/* The page and the card follow the theme, so dark mode is dark here too. */
|
|
429
|
+
background: var(--ant-color-bg-layout, #F3F2F0);
|
|
429
430
|
|
|
430
431
|
@media (max-width: ${xe}px) {
|
|
431
432
|
justify-content: center;
|
|
@@ -433,7 +434,7 @@
|
|
|
433
434
|
background: linear-gradient(
|
|
434
435
|
180deg,
|
|
435
436
|
var(--ant-color-primary-bg, #FCEEEB) 0%,
|
|
436
|
-
#
|
|
437
|
+
var(--ant-color-bg-layout, #F3F2F0) 46%
|
|
437
438
|
);
|
|
438
439
|
}
|
|
439
440
|
|
|
@@ -626,7 +627,7 @@
|
|
|
626
627
|
margin: 40px ${({$side:e})=>"right"===e?"7% 40px 0":"0 40px 7%"};
|
|
627
628
|
width: min(430px, calc(100% - 48px));
|
|
628
629
|
padding: 40px 44px 34px;
|
|
629
|
-
background: #fff;
|
|
630
|
+
background: var(--ant-color-bg-elevated, #fff);
|
|
630
631
|
|
|
631
632
|
${({$variant:e})=>ge(e)?o.css`
|
|
632
633
|
border-radius: 18px;
|
|
@@ -732,7 +733,7 @@
|
|
|
732
733
|
font: inherit;
|
|
733
734
|
font-size: 15px;
|
|
734
735
|
color: var(--ant-color-text, #171717);
|
|
735
|
-
background: ${({$variant:e})=>ge(e)?"#F2F3F5":"var(--hisd3-control-bg, #e6e4e1)"};
|
|
736
|
+
background: ${({$variant:e})=>ge(e)?"var(--hisd3-input-bg, #F2F3F5)":"var(--hisd3-control-bg, #e6e4e1)"};
|
|
736
737
|
border: ${({$variant:e})=>ge(e)?"1px":"var(--hisd3-rule-width, 1px)"}
|
|
737
738
|
solid transparent;
|
|
738
739
|
border-radius: ${({$variant:e})=>ge(e)?"10px":"0"};
|
|
@@ -744,7 +745,7 @@
|
|
|
744
745
|
}
|
|
745
746
|
|
|
746
747
|
&:focus {
|
|
747
|
-
background: #fff;
|
|
748
|
+
background: var(--hisd3-input-bg-hover, #fff);
|
|
748
749
|
border-color: var(--ant-color-primary, #E5533B);
|
|
749
750
|
}
|
|
750
751
|
|
|
@@ -813,7 +814,7 @@
|
|
|
813
814
|
padding: 10px 14px;
|
|
814
815
|
font-size: 13px;
|
|
815
816
|
color: var(--ant-color-error, #e5401c);
|
|
816
|
-
background: rgba(229, 64, 28, 0.08);
|
|
817
|
+
background: var(--ant-color-error-bg, rgba(229, 64, 28, 0.08));
|
|
817
818
|
border-left: 3px solid var(--ant-color-error, #e5401c);
|
|
818
819
|
`,Be=o.p`
|
|
819
820
|
margin: 20px 0 0;
|
|
@@ -1426,5 +1427,5 @@
|
|
|
1426
1427
|
.ant-input-number-group-wrapper {
|
|
1427
1428
|
width: 100%;
|
|
1428
1429
|
}
|
|
1429
|
-
`,br=({node:r})=>e.jsx(e.Fragment,{children:r}),fr=({loading:t,loadingProps:o,vertical:i,bolderLabel:n,controlSize:a,skeleton:s,layout:l,className:d,children:p,...c})=>e.jsx(ur,{...c,layout:i?"vertical":l,className:["hisd3-form-field",n?"hisd3-form-field-bold":"",d??""].join(" ").trim(),children:t?e.jsx(br,{node:s??e.jsx(r.Skeleton.Input,{active:!0,block:!0,size:a,...o})}):p}),vr=t=>e.jsx(r.Skeleton.Button,{active:!0,size:"small",style:{width:t,minWidth:t}}),yr=t.forwardRef((({fieldProps:r,propsinput:t,...o},i)=>{const n={...t,...r};return e.jsx(fr,{...o,controlSize:n.size,children:e.jsx(ar,{...n,ref:i})})}));yr.displayName="HISD3FormInput";const wr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Input.Password,{...t,ref:i})})));wr.displayName="HISD3FormPassword";const Sr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{...o,style:{height:22*(t?.rows??3)+10,...o?.style}},children:e.jsx(r.Input.TextArea,{...t,ref:n})})));Sr.displayName="HISD3FormTextArea";const Ar=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.InputNumber,{...t,ref:i})})));Ar.displayName="HISD3FormInputNumber";const Dr=t.forwardRef((({fieldProps:r,...t},o)=>e.jsx(fr,{...t,controlSize:r?.size,children:e.jsx(mr,{...r,ref:o})})));Dr.displayName="HISD3FormSelect";const kr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Radio.Group,{...t,ref:i})})));kr.displayName="HISD3FormRadioGroup";const Fr=t.forwardRef((({fieldProps:t,text:o,...i},n)=>e.jsx(fr,{valuePropName:"checked",skeleton:vr(120),...i,children:e.jsx(r.Checkbox,{...t,ref:n,children:o??t?.children})})));Fr.displayName="HISD3FormCheckbox";const jr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,children:e.jsx(r.Checkbox.Group,{...t,ref:i})})));jr.displayName="HISD3FormCheckboxGroup";const Er=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{valuePropName:"checked",skeleton:vr("small"===t?.size?28:44),...o,children:e.jsx(r.Switch,{...t,ref:i})})));Er.displayName="HISD3FormSwitch";const Ir=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.DatePicker,{...t,ref:i})})));Ir.displayName="HISD3FormDatePicker";const Br=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.DatePicker.RangePicker,{...t,ref:i})})));Br.displayName="HISD3FormRangePicker";const Cr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TimePicker,{...t,ref:i})})));Cr.displayName="HISD3FormTimePicker";const zr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TimePicker.RangePicker,{...t,ref:i})})));zr.displayName="HISD3FormTimeRangePicker";const Tr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Input.Search,{...t,ref:i})})));Tr.displayName="HISD3FormSearch";const Rr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{block:!1,...o,style:{width:48*(t?.length??6),...o?.style}},children:e.jsx(r.Input.OTP,{...t,ref:n})})));Rr.displayName="HISD3FormOTP";const Hr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.AutoComplete,{...t,ref:i})})));Hr.displayName="HISD3FormAutoComplete";const Nr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{...o,style:{height:22*(t?.rows??1)+18,...o?.style}},children:e.jsx(r.Mentions,{...t,ref:n})})));Nr.displayName="HISD3FormMentions";const Pr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Cascader,{...t,ref:i})})));Pr.displayName="HISD3FormCascader";const Lr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TreeSelect,{...t,ref:i})})));Lr.displayName="HISD3FormTreeSelect";const Mr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,skeleton:vr(200),children:e.jsx(r.Segmented,{...t,options:t?.options??[],ref:i})})));Mr.displayName="HISD3FormSegmented";const Ur=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{valuePropName:"targetKeys",loadingProps:{...o,style:{height:200,...o?.style}},...i,children:e.jsx(r.Transfer,{...t,ref:n})})));Ur.displayName="HISD3FormTransfer";const Or=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:"small",children:e.jsx(r.Slider,{...t,ref:i})})));Or.displayName="HISD3FormSlider";const $r=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,skeleton:vr(28*(t?.count??5)),children:e.jsx(r.Rate,{...t,ref:i})})));$r.displayName="HISD3FormRate";const Gr=({fieldProps:t,...o})=>e.jsx(fr,{getValueFromEvent:(e,r)=>r,skeleton:e.jsx(r.Skeleton.Button,{active:!0,shape:"square"}),...o,children:e.jsx(r.ColorPicker,{...t})});Gr.displayName="HISD3FormColorPicker";const qr=e=>Array.isArray(e)?e:e?.fileList??[],Wr=({fieldProps:t,children:o,...i})=>e.jsx(fr,{valuePropName:"fileList",getValueFromEvent:qr,skeleton:e.jsx(r.Skeleton.Button,{active:!0}),...i,children:e.jsx(r.Upload,{...t,children:o??t?.children})});Wr.displayName="HISD3FormUpload";const Kr=({fieldProps:t,children:o,loadingProps:i,...n})=>e.jsx(fr,{valuePropName:"fileList",getValueFromEvent:qr,loadingProps:{...i,style:{height:150,...i?.style}},...n,children:e.jsx(r.Upload.Dragger,{...t,children:o??t?.children})});Kr.displayName="HISD3FormUploadDragger";const Qr=t.createContext(null);let Vr=0;function Yr({Component:r,props:o,onClose:i,unmount:n}){const[a,s]=t.useState(!0),l=t.useRef(!1),d={...o,open:a,hide:t.useCallback((e=>{l.current||(l.current=!0,s(!1),i?.(e),window.setTimeout(n,320))}),[i,n])};return e.jsx(r,{...d})}var Zr,Jr,Xr,_r,et,rt,tt,ot,it,nt,at,st,lt;exports.ThemeStyle=void 0,(Zr=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Zr.STANDARD="standard",exports.ThemeStyleRadius=void 0,(Jr=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",Jr.STANDARD="16px",exports.ThemeMode=void 0,(Xr=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Xr.SEMI_DARK="semi-dark",Xr.DARK="dark",exports.LayoutType=void 0,(_r=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",_r.BOXED="boxed",_r.FRAMED="framed",exports.MenuStyle=void 0,(et=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",et.STANDARD="standard",et.ROUNDED="rounded",et.ROUNDED_REVERSE="rounded-reverse",et.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(rt=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",rt.MINI="mini",rt.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",rt.STANDARD="standard",rt.HEADER_USER="user-header",rt.HEADER_USER_MINI="user-mini-header",rt.DRAWER="drawer",rt.BIT_BUCKET="bit-bucket",rt.H_DEFAULT="h-default",rt.HOR_HEADER_FIXED="hor-header-fixed",rt.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(tt=exports.FooterType||(exports.FooterType={})).FIXED="fixed",tt.FLUID="fluid",exports.LayoutDirection=void 0,(ot=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",ot.LTR="ltr",exports.HeaderType=void 0,(it=exports.HeaderType||(exports.HeaderType={})).DARK="dark",it.LIGHT="light",exports.RouteTransition=void 0,(nt=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",nt.FADE="fade",nt.SLIDE_LEFT="slideLeft",nt.SLIDE_RIGHT="slideRight",nt.SLIDE_UP="slideUp",nt.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(at=exports.Fonts||(exports.Fonts={})).LIGHT="300",at.REGULAR="400",at.MEDIUM="500",at.BOLD="600",exports.AuthType=void 0,(st=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",st.AWS_COGNITO="aws_cognito",st.AUTH0="auth0",st.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(lt=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",lt.SLIDEUPOUT="transition.slideUpOut",lt.SLIDEDOWNIN="transition.slideDownIn",lt.SLIDEDOWNOUT="transition.slideDownOut",lt.SLIDELEFTIN="transition.slideLeftIn",lt.SLIDELEFTOUT="transition.slideLeftOut",lt.SLIDERIGHTIN="transition.slideRightIn",lt.SLIDERIGHTOUT="transition.slideRightOut",lt.FADEIN="transition.fadeIn",lt.FADEOUT="transition.fadeOut";var dt,pt;exports.MessageType=void 0,(dt=exports.MessageType||(exports.MessageType={}))[dt.MEDIA=1]="MEDIA",dt[dt.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(pt=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",pt.User="user",exports.AppAnimateGroups={SLIDEUPIN:{hidden:{y:0},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.2,staggerChildren:.05}}},SLIDEUPOUT:{hidden:{y:0},visible:{opacity:0,y:"100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNIN:{hidden:{opacity:0,y:"-100vh"},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNOUT:{hidden:{y:0},visible:{opacity:0,y:"-100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTIN:{hidden:{x:"100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTOUT:{hidden:{x:0},visible:{opacity:0,x:"100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTIN:{hidden:{x:"-100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTOUT:{hidden:{x:0},visible:{opacity:0,x:"-100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},FADEIN:{hidden:{opacity:0,scale:1},visible:{opacity:1,scale:1,transition:{ease:"easeIn",when:"beforeChildren",staggerChildren:.15}}},FADEOUT:{hidden:{opacity:1,scale:1},visible:{opacity:0,scale:1,transition:{ease:"easeOut",when:"beforeChildren",staggerChildren:.15}}},NOANIMATION:{hidden:{opacity:1},visible:{opacity:1}}},exports.AppMotionAnimate={SLIDEUPIN:{variants:{hidden:{y:100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEUPOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"-100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDEDOWNIN:{variants:{hidden:{y:-100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEDOWNOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDELEFTIN:{variants:{hidden:{x:100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDELEFTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDERIGHTIN:{variants:{hidden:{x:-100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDERIGHTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},FADEIN:{variants:{hidden:{opacity:0},visible:{opacity:1}},transition:{duration:.1,ease:"easeIn",when:"beforeChildren"}},FADEOUT:{variants:{hidden:{opacity:1},visible:{opacity:0}},transition:{duration:.1,ease:"easeOut",when:"beforeChildren"}}},exports.DialogProvider=function({children:r}){const[o,i]=t.useState([]),n=t.useMemo((()=>({mount:(e,r)=>i((t=>[...t.filter((r=>r.id!==e)),{id:e,node:r}])),unmount:e=>i((r=>r.filter((r=>r.id!==e))))})),[]);return e.jsxs(Qr.Provider,{value:n,children:[r,o.map((r=>e.jsx(t.Fragment,{children:r.node},r.id)))]})},exports.HISD3AvatarMenu=({account:o,avatarSrc:n,settingsUrl:a="/settings",onSettings:s,onLogout:l,confirmLogout:d=!0,extraItems:p,shape:c="circle",size:h=40,hideChevron:g=!1,className:x})=>{const{modal:m}=r.App.useApp(),[u,b]=t.useState(!1),f=[...p??[],...null!==a||s?[{key:"settings",icon:e.jsx(i.SettingOutlined,{}),label:"Settings",onClick:()=>{s?s():a&&(window.location.href=a)}}]:[],{key:"logout",icon:e.jsx(i.LogoutOutlined,{}),label:"Logout",onClick:()=>{d?m.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(i.ExclamationCircleOutlined,{}),okText:"Logout",onOk:l}):l()}}];return e.jsx(r.Dropdown,{open:u,onOpenChange:b,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>b(!1)},popupRender:r=>e.jsxs(Ke,{children:[e.jsxs(qe,{children:[e.jsx(We,{$src:n,children:!n&&Qe(o.fullName)}),e.jsxs("span",{className:"hisd3-identity-text",children:[e.jsx("span",{className:"hisd3-identity-name",children:o.fullName}),o.positionType&&e.jsx("span",{className:"hisd3-identity-role",children:o.positionType})]})]}),r]}),children:e.jsxs($e,{type:"button",className:x,$shape:c,$size:h,$open:u,"aria-label":`Account menu for ${o.fullName}`,children:[n?e.jsx("img",{src:n,alt:""}):Qe(o.fullName),!g&&e.jsx(Ge,{$size:h,$open:u,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=he,exports.HISD3FormAutoComplete=Hr,exports.HISD3FormCascader=Pr,exports.HISD3FormCheckbox=Fr,exports.HISD3FormCheckboxGroup=jr,exports.HISD3FormColorPicker=Gr,exports.HISD3FormDatePicker=Ir,exports.HISD3FormField=fr,exports.HISD3FormInput=yr,exports.HISD3FormInputNumber=Ar,exports.HISD3FormMentions=Nr,exports.HISD3FormOTP=Rr,exports.HISD3FormPassword=wr,exports.HISD3FormRadioGroup=kr,exports.HISD3FormRangePicker=Br,exports.HISD3FormRate=$r,exports.HISD3FormSearch=Tr,exports.HISD3FormSegmented=Mr,exports.HISD3FormSelect=Dr,exports.HISD3FormSlider=Or,exports.HISD3FormSwitch=Er,exports.HISD3FormTextArea=Sr,exports.HISD3FormTimePicker=Cr,exports.HISD3FormTimeRangePicker=zr,exports.HISD3FormTransfer=Ur,exports.HISD3FormTreeSelect=Lr,exports.HISD3FormUpload=Wr,exports.HISD3FormUploadDragger=Kr,exports.HISD3HeaderActions=({children:r,divided:o=!1,className:i})=>{const n=t.Children.toArray(r).filter(Boolean);return e.jsx(Ve,{className:i,children:n.map(((r,i)=>e.jsxs(t.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(Ye,{}),r]},i)))})},exports.HISD3Input=ar,exports.HISD3LoginPage=({appName:o,tagline:n,logoSrc:a=B,title:s="Nice to see you again",subtitle:l,panelTitle:d="One system for every part of your hospital.",panelSubtitle:p="Patient care, billing and operations — connected.",panelImage:c,organisationName:h="HISD3",variant:g="soft",side:x="right",identifierLabel:m="User ID or email",identifierPlaceholder:u="Email or user ID",passwordLabel:b="Password",passwordPlaceholder:f="Enter password",submitLabel:v="Sign in",hideRemember:y=!1,rememberLabel:w="Remember me",onForgotPassword:S,forgotLabel:A="Forgot password?",error:D,loading:k=!1,onSubmit:F,footer:j,className:E})=>{const[I,C]=t.useState(""),[z,T]=t.useState(""),[R,H]=t.useState(!1),[N,P]=t.useState(!1);return e.jsxs(ue,{className:E,$side:x,children:[e.jsx(Se,{$variant:g,$side:x,"aria-hidden":!0}),e.jsxs(be,{$variant:g,$side:x,children:[c?e.jsx(ve,{$src:c,"aria-hidden":!0}):e.jsx(ye,{"aria-hidden":!0}),e.jsxs(we,{$side:x,"aria-hidden":!0,children:[e.jsx("img",{src:B,alt:""}),h]}),e.jsxs(fe,{children:[a&&e.jsx("img",{src:a,alt:""}),e.jsxs("span",{children:[e.jsx("span",{className:"hisd3-hero-name",children:o}),n&&e.jsx("span",{className:"hisd3-hero-tagline",children:n})]})]}),e.jsx("h2",{children:d}),p&&e.jsx("p",{children:p})]}),e.jsxs(Ae,{$variant:g,$side:x,onSubmit:e=>{e.preventDefault(),k||F({identifier:I,password:z,remember:R})},noValidate:!0,children:[e.jsxs(De,{$variant:g,children:[a&&e.jsx("img",{className:"hisd3-login-logo",src:a,alt:""}),e.jsxs("span",{children:[e.jsx("span",{className:"hisd3-login-name",children:o}),n&&e.jsx("span",{className:"hisd3-login-tagline",children:n})]})]}),e.jsx(ke,{$variant:g,children:s}),l&&e.jsx(Fe,{children:l}),D&&e.jsx(Ie,{role:"alert",children:D}),e.jsxs(je,{$variant:g,children:[e.jsx("span",{className:"hisd3-field-label",children:m}),e.jsx("span",{className:"hisd3-field-control",children:e.jsx("input",{value:I,onChange:e=>C(e.target.value),placeholder:u,autoComplete:"username",disabled:k,autoFocus:!0})})]}),e.jsxs(je,{$variant:g,children:[e.jsx("span",{className:"hisd3-field-label",children:b}),e.jsxs("span",{className:"hisd3-field-control",children:[e.jsx("input",{type:N?"text":"password",value:z,onChange:e=>T(e.target.value),placeholder:f,autoComplete:"current-password",disabled:k}),e.jsx("button",{type:"button",className:"hisd3-field-reveal","aria-label":N?"Hide password":"Show password",onClick:()=>P((e=>!e)),tabIndex:-1,children:N?e.jsx(i.EyeInvisibleOutlined,{}):e.jsx(i.EyeOutlined,{})})]})]}),(!y||S)&&e.jsxs(Ee,{children:[y?e.jsx("span",{}):e.jsxs("label",{className:"hisd3-remember",children:[e.jsx(r.Switch,{size:"small",checked:R,onChange:H,disabled:k}),w]}),S&&e.jsx("button",{type:"button",className:"hisd3-forgot",onClick:S,children:A})]}),e.jsx(he,{variant:"primary",htmlType:"submit",size:"large",loading:k,block:!0,style:{borderRadius:"soft"===g?10:0,height:50},children:v}),j&&e.jsx(Be,{children:j})]})]})},exports.HISD3NotificationButton=({items:o=[],count:n,loading:a=!1,title:s="Notifications",onMarkAllRead:l,onSeeAll:d,seeAllLabel:p="See all notifications",emptyText:c="You're all caught up",onOpenChange:h,size:g=40,icon:x,className:m})=>{const[u,b]=t.useState(!1),f=n??o.filter((e=>e.unread)).length,v=e.jsxs(Te,{children:[e.jsxs(Re,{children:[e.jsx("h4",{children:s}),l&&f>0&&e.jsx("button",{type:"button",onClick:l,children:"Mark all as read"})]}),a?e.jsx(Oe,{style:{textAlign:"center"},children:e.jsx(r.Spin,{})}):0===o.length?e.jsx(Oe,{children:e.jsx(r.Empty,{image:r.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(He,{children:o.map((r=>e.jsxs(Ne,{type:"button",$unread:r.unread,onClick:()=>{r.onClick?.(r),b(!1),h?.(!1)},children:[e.jsx(Pe,{$src:r.avatarSrc,children:!r.avatarSrc&&(r.icon??e.jsx(i.BellFilled,{}))}),e.jsxs(Le,{children:[e.jsx("strong",{children:r.title}),r.description&&e.jsx("span",{children:r.description}),r.time&&e.jsx("time",{children:r.time})]}),r.unread&&e.jsx(Me,{})]},r.id)))}),d&&e.jsx(Ue,{type:"button",onClick:()=>{d(),b(!1),h?.(!1)},children:p})]});return e.jsx(r.Dropdown,{open:u,onOpenChange:e=>{b(e),h?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>v,children:e.jsxs(Ce,{type:"button",$size:g,$open:u,className:m,"aria-label":`${s}${f?` (${f} unread)`:""}`,children:[x??e.jsx(i.BellFilled,{}),f>0&&e.jsx(ze,{$size:g,children:f>99?"99+":f})]})})},exports.HISD3PageBody=de,exports.HISD3PageHeader=({title:t,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:s=!1,className:l})=>e.jsxs(ne,{className:l,children:[!s&&e.jsxs(ae,{children:[a,i&&i.length>0&&e.jsx(r.Breadcrumb,{items:i.map((r=>({title:r.href?e.jsx("a",{href:r.href,children:r.title}):r.title,onClick:r.onClick})))}),!i?.length&&e.jsx("span",{style:{flex:1}}),n&&e.jsx(se,{children:n})]}),e.jsxs(le,{children:[e.jsx("h1",{children:t}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:i,mode:n="light",radius:a,borders:s="hairline",lineWidth:l,overrides:d,theme:p,styledTheme:c={},children:h})=>{const g=t.useMemo((()=>p??D({primary:i,mode:n,radius:a,borders:s,lineWidth:l,overrides:d})),[p,i,n,a,s,l,d]),x=t.useMemo((()=>k({primary:i,mode:n,borders:s,lineWidth:l,radius:a})),[i,n,s,l,a]);return e.jsxs(E.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),e.jsx(r.ConfigProvider,{theme:g,children:e.jsx(o.ThemeProvider,{theme:c,children:e.jsx(r.App,{component:!1,children:h})})})]})},exports.HISD3SearchInput=dr,exports.HISD3Select=mr,exports.HISD3SelectLabel=pr,exports.HISD3Sidebar=({children:n,account:a,logoUrl:s,appName:l,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:g,settingsUrl:x,antdTheme:m,renderMenuLink:u=re,headerExtra:b,userMenuItems:f,onCollapse:v,collapsed:y=!1,loading:w=!1,hideSidebar:S=!1,layoutTop:A=!1,hideCollapseTrigger:D=!1,collapseTrigger:k="edge",collapseTriggerOffset:j=Math.round(H/2),siderWidth:E=T,bareContent:C=!1,hideHeaderBar:z=!1,brandHref:W="/",hideAccountCard:K=!1,scrollContent:Q=!0})=>{const V=I(),Y=void 0===m?V?null:F:m,[Z,J]=t.useState(y);t.useEffect((()=>{J(y)}),[y]);const X=t.useMemo((()=>ee(d,u)),[d,u]),ie=t.useMemo((()=>((e,r)=>{let t;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=_(e,n);if(e.path&&r.startsWith(e.path)){const o=r===e.path,n=e.path.length+(o?1:0);(!t||n>t.length)&&(t={key:a,parents:i,length:n})}e.children?.length&&o(e.children,[...i,a])}))};return o(e,[]),{selectedKey:t?.key,openKeys:t?.parents??[]}})(d,c)),[d,c]),[ne,ae]=t.useState((()=>ie.openKeys));t.useEffect((()=>{ae((e=>Array.from(new Set([...e,...ie.openKeys]))))}),[ie.openKeys.join("|")]);const se=e=>{J(e),v?.(e)},[le,de]=t.useState(!1);t.useEffect((()=>de(!1)),[s]);const pe=ie.selectedKey?[ie.selectedKey]:[],ce=D?"none":k,he=Z?"Expand menu":"Collapse menu",ge=e.jsxs(M,{href:W,$collapsed:!A&&Z,children:[s?e.jsx("img",{src:le?B:s,alt:"",onError:()=>de(!0)}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(A||!Z)&&e.jsx("h1",{children:l})]}),xe=C?n:e.jsx(q,{children:n});if("undefined"==typeof document)return null;const me=e.jsx(r.App,{component:!1,children:e.jsx(r.Spin,{spinning:w,size:"large",children:S?e.jsx(e.Fragment,{children:n}):A?e.jsxs(N,{$appShell:Q,children:[e.jsxs(U,{children:[ge,e.jsx(r.Menu,{mode:"horizontal",items:X,selectedKeys:pe}),b,!K&&e.jsx(te,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,placement:"bottomRight",extraItems:f})]}),e.jsx(P,{$scroll:Q,children:xe})]}):e.jsxs(N,{hasSider:!0,$appShell:Q,children:[e.jsxs(oe,{className:"hisd3-sider",width:E,collapsedWidth:R,collapsible:!0,collapsed:Z,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&se(!0)},children:[ge,e.jsx(L,{className:Z?"hisd3-collapsed":void 0,children:e.jsx(r.Menu,{mode:"inline",theme:"light",inlineCollapsed:Z,items:X,selectedKeys:pe,openKeys:Z?void 0:ne,onOpenChange:e=>ae(e)})}),!K&&e.jsx(te,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,collapsed:Z,placement:"topRight",extraItems:f})]}),e.jsxs(P,{$scroll:Q,children:[!z&&e.jsxs(O,{children:["header"===ce&&e.jsx($,{type:"button","aria-label":he,onClick:()=>se(!Z),children:Z?e.jsx(i.MenuUnfoldOutlined,{}):e.jsx(i.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),b]}),xe]}),"edge"===ce&&e.jsx(G,{type:"button","aria-label":he,title:he,$left:Z?R:E,$top:j,onClick:()=>se(!Z),children:Z?e.jsx(i.RightOutlined,{}):e.jsx(i.LeftOutlined,{})})]})})});return V&&!g?Y?e.jsx(r.ConfigProvider,{theme:Y,children:me}):me:e.jsx(o.ThemeProvider,{theme:g??{},children:Y?e.jsx(r.ConfigProvider,{theme:Y,children:me}):me})},exports.HISD3Table=function({pagination:t,footer:o,...n}){const a=t||void 0,s=a?.pageSizeOptions??[10,20,50];return e.jsxs(Ze,{children:[e.jsx(r.Table,{...n,pagination:!1}),o&&e.jsx(Je,{children:o}),a&&e.jsxs(Xe,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??er)(a.total,[(a.current-1)*a.pageSize+1,Math.min(a.current*a.pageSize,a.total)])}),e.jsx(r.Pagination,{current:a.current,pageSize:a.pageSize,total:a.total,showSizeChanger:!1,onChange:(e,r)=>a.onChange(e,r),itemRender:(r,t,o)=>"prev"===t?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.LeftOutlined,{})}):"next"===t?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.RightOutlined,{})}):o}),!a.hidePageSize&&e.jsx(_e,{role:"group","aria-label":"Rows per page",children:s.map((r=>e.jsxs("button",{type:"button","aria-pressed":r===a.pageSize,onClick:()=>a.onChange(1,r),children:[r," / page"]},r)))})]})]})},exports.HISD3Tabs=({items:r,...t})=>e.jsx(rr,{...t,items:r.map((({count:r,label:t,...o})=>({...o,label:e.jsxs(e.Fragment,{children:[t,void 0!==r&&e.jsx("span",{className:"hisd3-tab-count",children:r})]})})))}),exports.HISD3Tag=({variant:r="neutral",tone:t=("neutral"===r?"default":"primary"),children:o,...i})=>e.jsx(ir,{$variant:r,$tone:t,...i,children:o}),exports.HISD3_BORDER_PRESETS=c,exports.HISD3_BORDER_PRESETS_DARK=h,exports.HISD3_COLORS=j,exports.HISD3_FONT_FAMILY=g,exports.HISD3_FONT_WEIGHT_BODY=400,exports.HISD3_FONT_WEIGHT_HEADING=800,exports.HISD3_LAYOUT=a,exports.HISD3_LOGO_SRC=B,exports.HISD3_NEUTRALS=l,exports.HISD3_NEUTRALS_DARK=d,exports.HISD3_PRESETS=s,exports.HISD3_STATUS=p,exports.HeaderIconButton=Ce,exports.UserMenu=te,exports.borderVarsCss=(e="hairline",r)=>k({borders:e,lineWidth:r}),exports.contrastRatio=w,exports.createHisd3Theme=D,exports.getInitials=Qe,exports.hisd3AntdTheme=F,exports.hisd3VarsCss=k,exports.mix=v,exports.normalizeUploadFileList=qr,exports.resolvePrimary=x,exports.resolvePrimaryPalette=S,exports.shade=b,exports.tint=f,exports.useDialog=function(r){const o=t.useContext(Qr);if(!o)throw new Error("useDialog needs DialogProvider above it.");return t.useCallback(((t,i)=>{const n=Vr+=1;o.mount(n,e.jsx(Yr,{Component:r,props:t,onClose:i,unmount:()=>o.unmount(n)},n))}),[r,o])},exports.useInsideHISD3Provider=I;
|
|
1430
|
+
`,br=({node:r})=>e.jsx(e.Fragment,{children:r}),fr=({loading:t,loadingProps:o,vertical:i,bolderLabel:n,controlSize:a,skeleton:s,layout:l,className:d,children:p,...c})=>e.jsx(ur,{...c,layout:i?"vertical":l,className:["hisd3-form-field",n?"hisd3-form-field-bold":"",d??""].join(" ").trim(),children:t?e.jsx(br,{node:s??e.jsx(r.Skeleton.Input,{active:!0,block:!0,size:a,...o})}):p}),vr=t=>e.jsx(r.Skeleton.Button,{active:!0,size:"small",style:{width:t,minWidth:t}}),yr=t.forwardRef((({fieldProps:r,propsinput:t,...o},i)=>{const n={...t,...r};return e.jsx(fr,{...o,controlSize:n.size,children:e.jsx(ar,{...n,ref:i})})}));yr.displayName="HISD3FormInput";const wr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Input.Password,{...t,ref:i})})));wr.displayName="HISD3FormPassword";const Sr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{...o,style:{height:22*(t?.rows??3)+10,...o?.style}},children:e.jsx(r.Input.TextArea,{...t,ref:n})})));Sr.displayName="HISD3FormTextArea";const Ar=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.InputNumber,{...t,ref:i})})));Ar.displayName="HISD3FormInputNumber";const Dr=t.forwardRef((({fieldProps:r,...t},o)=>e.jsx(fr,{...t,controlSize:r?.size,children:e.jsx(mr,{...r,ref:o})})));Dr.displayName="HISD3FormSelect";const kr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Radio.Group,{...t,ref:i})})));kr.displayName="HISD3FormRadioGroup";const Fr=t.forwardRef((({fieldProps:t,text:o,...i},n)=>e.jsx(fr,{valuePropName:"checked",skeleton:vr(120),...i,children:e.jsx(r.Checkbox,{...t,ref:n,children:o??t?.children})})));Fr.displayName="HISD3FormCheckbox";const jr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,children:e.jsx(r.Checkbox.Group,{...t,ref:i})})));jr.displayName="HISD3FormCheckboxGroup";const Er=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{valuePropName:"checked",skeleton:vr("small"===t?.size?28:44),...o,children:e.jsx(r.Switch,{...t,ref:i})})));Er.displayName="HISD3FormSwitch";const Ir=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.DatePicker,{...t,ref:i})})));Ir.displayName="HISD3FormDatePicker";const Br=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.DatePicker.RangePicker,{...t,ref:i})})));Br.displayName="HISD3FormRangePicker";const Cr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TimePicker,{...t,ref:i})})));Cr.displayName="HISD3FormTimePicker";const zr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TimePicker.RangePicker,{...t,ref:i})})));zr.displayName="HISD3FormTimeRangePicker";const Tr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Input.Search,{...t,ref:i})})));Tr.displayName="HISD3FormSearch";const Rr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{block:!1,...o,style:{width:48*(t?.length??6),...o?.style}},children:e.jsx(r.Input.OTP,{...t,ref:n})})));Rr.displayName="HISD3FormOTP";const Hr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.AutoComplete,{...t,ref:i})})));Hr.displayName="HISD3FormAutoComplete";const Nr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{...o,style:{height:22*(t?.rows??1)+18,...o?.style}},children:e.jsx(r.Mentions,{...t,ref:n})})));Nr.displayName="HISD3FormMentions";const Pr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Cascader,{...t,ref:i})})));Pr.displayName="HISD3FormCascader";const Lr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TreeSelect,{...t,ref:i})})));Lr.displayName="HISD3FormTreeSelect";const Mr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,skeleton:vr(200),children:e.jsx(r.Segmented,{...t,options:t?.options??[],ref:i})})));Mr.displayName="HISD3FormSegmented";const Ur=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{valuePropName:"targetKeys",loadingProps:{...o,style:{height:200,...o?.style}},...i,children:e.jsx(r.Transfer,{...t,ref:n})})));Ur.displayName="HISD3FormTransfer";const Or=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:"small",children:e.jsx(r.Slider,{...t,ref:i})})));Or.displayName="HISD3FormSlider";const $r=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,skeleton:vr(28*(t?.count??5)),children:e.jsx(r.Rate,{...t,ref:i})})));$r.displayName="HISD3FormRate";const Gr=({fieldProps:t,...o})=>e.jsx(fr,{getValueFromEvent:(e,r)=>r,skeleton:e.jsx(r.Skeleton.Button,{active:!0,shape:"square"}),...o,children:e.jsx(r.ColorPicker,{...t})});Gr.displayName="HISD3FormColorPicker";const qr=e=>Array.isArray(e)?e:e?.fileList??[],Wr=({fieldProps:t,children:o,...i})=>e.jsx(fr,{valuePropName:"fileList",getValueFromEvent:qr,skeleton:e.jsx(r.Skeleton.Button,{active:!0}),...i,children:e.jsx(r.Upload,{...t,children:o??t?.children})});Wr.displayName="HISD3FormUpload";const Kr=({fieldProps:t,children:o,loadingProps:i,...n})=>e.jsx(fr,{valuePropName:"fileList",getValueFromEvent:qr,loadingProps:{...i,style:{height:150,...i?.style}},...n,children:e.jsx(r.Upload.Dragger,{...t,children:o??t?.children})});Kr.displayName="HISD3FormUploadDragger";const Qr=t.createContext(null);let Vr=0;function Yr({Component:r,props:o,onClose:i,unmount:n}){const[a,s]=t.useState(!0),l=t.useRef(!1),d={...o,open:a,hide:t.useCallback((e=>{l.current||(l.current=!0,s(!1),i?.(e),window.setTimeout(n,320))}),[i,n])};return e.jsx(r,{...d})}var Zr,Jr,Xr,_r,et,rt,tt,ot,it,nt,at,st,lt;exports.ThemeStyle=void 0,(Zr=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Zr.STANDARD="standard",exports.ThemeStyleRadius=void 0,(Jr=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",Jr.STANDARD="16px",exports.ThemeMode=void 0,(Xr=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Xr.SEMI_DARK="semi-dark",Xr.DARK="dark",exports.LayoutType=void 0,(_r=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",_r.BOXED="boxed",_r.FRAMED="framed",exports.MenuStyle=void 0,(et=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",et.STANDARD="standard",et.ROUNDED="rounded",et.ROUNDED_REVERSE="rounded-reverse",et.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(rt=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",rt.MINI="mini",rt.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",rt.STANDARD="standard",rt.HEADER_USER="user-header",rt.HEADER_USER_MINI="user-mini-header",rt.DRAWER="drawer",rt.BIT_BUCKET="bit-bucket",rt.H_DEFAULT="h-default",rt.HOR_HEADER_FIXED="hor-header-fixed",rt.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(tt=exports.FooterType||(exports.FooterType={})).FIXED="fixed",tt.FLUID="fluid",exports.LayoutDirection=void 0,(ot=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",ot.LTR="ltr",exports.HeaderType=void 0,(it=exports.HeaderType||(exports.HeaderType={})).DARK="dark",it.LIGHT="light",exports.RouteTransition=void 0,(nt=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",nt.FADE="fade",nt.SLIDE_LEFT="slideLeft",nt.SLIDE_RIGHT="slideRight",nt.SLIDE_UP="slideUp",nt.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(at=exports.Fonts||(exports.Fonts={})).LIGHT="300",at.REGULAR="400",at.MEDIUM="500",at.BOLD="600",exports.AuthType=void 0,(st=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",st.AWS_COGNITO="aws_cognito",st.AUTH0="auth0",st.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(lt=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",lt.SLIDEUPOUT="transition.slideUpOut",lt.SLIDEDOWNIN="transition.slideDownIn",lt.SLIDEDOWNOUT="transition.slideDownOut",lt.SLIDELEFTIN="transition.slideLeftIn",lt.SLIDELEFTOUT="transition.slideLeftOut",lt.SLIDERIGHTIN="transition.slideRightIn",lt.SLIDERIGHTOUT="transition.slideRightOut",lt.FADEIN="transition.fadeIn",lt.FADEOUT="transition.fadeOut";var dt,pt;exports.MessageType=void 0,(dt=exports.MessageType||(exports.MessageType={}))[dt.MEDIA=1]="MEDIA",dt[dt.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(pt=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",pt.User="user",exports.AppAnimateGroups={SLIDEUPIN:{hidden:{y:0},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.2,staggerChildren:.05}}},SLIDEUPOUT:{hidden:{y:0},visible:{opacity:0,y:"100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNIN:{hidden:{opacity:0,y:"-100vh"},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNOUT:{hidden:{y:0},visible:{opacity:0,y:"-100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTIN:{hidden:{x:"100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTOUT:{hidden:{x:0},visible:{opacity:0,x:"100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTIN:{hidden:{x:"-100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTOUT:{hidden:{x:0},visible:{opacity:0,x:"-100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},FADEIN:{hidden:{opacity:0,scale:1},visible:{opacity:1,scale:1,transition:{ease:"easeIn",when:"beforeChildren",staggerChildren:.15}}},FADEOUT:{hidden:{opacity:1,scale:1},visible:{opacity:0,scale:1,transition:{ease:"easeOut",when:"beforeChildren",staggerChildren:.15}}},NOANIMATION:{hidden:{opacity:1},visible:{opacity:1}}},exports.AppMotionAnimate={SLIDEUPIN:{variants:{hidden:{y:100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEUPOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"-100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDEDOWNIN:{variants:{hidden:{y:-100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEDOWNOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDELEFTIN:{variants:{hidden:{x:100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDELEFTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDERIGHTIN:{variants:{hidden:{x:-100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDERIGHTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},FADEIN:{variants:{hidden:{opacity:0},visible:{opacity:1}},transition:{duration:.1,ease:"easeIn",when:"beforeChildren"}},FADEOUT:{variants:{hidden:{opacity:1},visible:{opacity:0}},transition:{duration:.1,ease:"easeOut",when:"beforeChildren"}}},exports.DialogProvider=function({children:r}){const[o,i]=t.useState([]),n=t.useMemo((()=>({mount:(e,r)=>i((t=>[...t.filter((r=>r.id!==e)),{id:e,node:r}])),unmount:e=>i((r=>r.filter((r=>r.id!==e))))})),[]);return e.jsxs(Qr.Provider,{value:n,children:[r,o.map((r=>e.jsx(t.Fragment,{children:r.node},r.id)))]})},exports.HISD3AvatarMenu=({account:o,avatarSrc:n,settingsUrl:a="/settings",onSettings:s,onLogout:l,confirmLogout:d=!0,extraItems:p,shape:c="circle",size:h=40,hideChevron:g=!1,className:x})=>{const{modal:m}=r.App.useApp(),[u,b]=t.useState(!1),f=[...p??[],...null!==a||s?[{key:"settings",icon:e.jsx(i.SettingOutlined,{}),label:"Settings",onClick:()=>{s?s():a&&(window.location.href=a)}}]:[],{key:"logout",icon:e.jsx(i.LogoutOutlined,{}),label:"Logout",onClick:()=>{d?m.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(i.ExclamationCircleOutlined,{}),okText:"Logout",onOk:l}):l()}}];return e.jsx(r.Dropdown,{open:u,onOpenChange:b,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>b(!1)},popupRender:r=>e.jsxs(Ke,{children:[e.jsxs(qe,{children:[e.jsx(We,{$src:n,children:!n&&Qe(o.fullName)}),e.jsxs("span",{className:"hisd3-identity-text",children:[e.jsx("span",{className:"hisd3-identity-name",children:o.fullName}),o.positionType&&e.jsx("span",{className:"hisd3-identity-role",children:o.positionType})]})]}),r]}),children:e.jsxs($e,{type:"button",className:x,$shape:c,$size:h,$open:u,"aria-label":`Account menu for ${o.fullName}`,children:[n?e.jsx("img",{src:n,alt:""}):Qe(o.fullName),!g&&e.jsx(Ge,{$size:h,$open:u,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=he,exports.HISD3FormAutoComplete=Hr,exports.HISD3FormCascader=Pr,exports.HISD3FormCheckbox=Fr,exports.HISD3FormCheckboxGroup=jr,exports.HISD3FormColorPicker=Gr,exports.HISD3FormDatePicker=Ir,exports.HISD3FormField=fr,exports.HISD3FormInput=yr,exports.HISD3FormInputNumber=Ar,exports.HISD3FormMentions=Nr,exports.HISD3FormOTP=Rr,exports.HISD3FormPassword=wr,exports.HISD3FormRadioGroup=kr,exports.HISD3FormRangePicker=Br,exports.HISD3FormRate=$r,exports.HISD3FormSearch=Tr,exports.HISD3FormSegmented=Mr,exports.HISD3FormSelect=Dr,exports.HISD3FormSlider=Or,exports.HISD3FormSwitch=Er,exports.HISD3FormTextArea=Sr,exports.HISD3FormTimePicker=Cr,exports.HISD3FormTimeRangePicker=zr,exports.HISD3FormTransfer=Ur,exports.HISD3FormTreeSelect=Lr,exports.HISD3FormUpload=Wr,exports.HISD3FormUploadDragger=Kr,exports.HISD3HeaderActions=({children:r,divided:o=!1,className:i})=>{const n=t.Children.toArray(r).filter(Boolean);return e.jsx(Ve,{className:i,children:n.map(((r,i)=>e.jsxs(t.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(Ye,{}),r]},i)))})},exports.HISD3Input=ar,exports.HISD3LoginPage=({appName:o,tagline:n,logoSrc:a=B,title:s="Nice to see you again",subtitle:l,panelTitle:d="One system for every part of your hospital.",panelSubtitle:p="Patient care, billing and operations — connected.",panelImage:c,organisationName:h="HISD3",variant:g="soft",side:x="right",identifierLabel:m="User ID or email",identifierPlaceholder:u="Email or user ID",passwordLabel:b="Password",passwordPlaceholder:f="Enter password",submitLabel:v="Sign in",hideRemember:y=!1,rememberLabel:w="Remember me",onForgotPassword:S,forgotLabel:A="Forgot password?",error:D,loading:k=!1,onSubmit:F,footer:j,className:E})=>{const[I,C]=t.useState(""),[z,T]=t.useState(""),[R,H]=t.useState(!1),[N,P]=t.useState(!1),[L,M]=t.useState(!1),U=L?B:a;return e.jsxs(ue,{className:E,$side:x,children:[e.jsx(Se,{$variant:g,$side:x,"aria-hidden":!0}),e.jsxs(be,{$variant:g,$side:x,children:[c?e.jsx(ve,{$src:c,"aria-hidden":!0}):e.jsx(ye,{"aria-hidden":!0}),e.jsxs(we,{$side:x,"aria-hidden":!0,children:[e.jsx("img",{src:B,alt:""}),h]}),e.jsxs(fe,{children:[U&&e.jsx("img",{src:U,alt:"",onError:()=>M(!0)}),e.jsxs("span",{children:[e.jsx("span",{className:"hisd3-hero-name",children:o}),n&&e.jsx("span",{className:"hisd3-hero-tagline",children:n})]})]}),e.jsx("h2",{children:d}),p&&e.jsx("p",{children:p})]}),e.jsxs(Ae,{$variant:g,$side:x,onSubmit:e=>{e.preventDefault(),k||F({identifier:I,password:z,remember:R})},noValidate:!0,children:[e.jsxs(De,{$variant:g,children:[U&&e.jsx("img",{className:"hisd3-login-logo",src:U,alt:"",onError:()=>M(!0)}),e.jsxs("span",{children:[e.jsx("span",{className:"hisd3-login-name",children:o}),n&&e.jsx("span",{className:"hisd3-login-tagline",children:n})]})]}),e.jsx(ke,{$variant:g,children:s}),l&&e.jsx(Fe,{children:l}),D&&e.jsx(Ie,{role:"alert",children:D}),e.jsxs(je,{$variant:g,children:[e.jsx("span",{className:"hisd3-field-label",children:m}),e.jsx("span",{className:"hisd3-field-control",children:e.jsx("input",{value:I,onChange:e=>C(e.target.value),placeholder:u,autoComplete:"username",disabled:k,autoFocus:!0})})]}),e.jsxs(je,{$variant:g,children:[e.jsx("span",{className:"hisd3-field-label",children:b}),e.jsxs("span",{className:"hisd3-field-control",children:[e.jsx("input",{type:N?"text":"password",value:z,onChange:e=>T(e.target.value),placeholder:f,autoComplete:"current-password",disabled:k}),e.jsx("button",{type:"button",className:"hisd3-field-reveal","aria-label":N?"Hide password":"Show password",onClick:()=>P((e=>!e)),tabIndex:-1,children:N?e.jsx(i.EyeInvisibleOutlined,{}):e.jsx(i.EyeOutlined,{})})]})]}),(!y||S)&&e.jsxs(Ee,{children:[y?e.jsx("span",{}):e.jsxs("label",{className:"hisd3-remember",children:[e.jsx(r.Switch,{size:"small",checked:R,onChange:H,disabled:k}),w]}),S&&e.jsx("button",{type:"button",className:"hisd3-forgot",onClick:S,children:A})]}),e.jsx(he,{variant:"primary",htmlType:"submit",size:"large",loading:k,block:!0,style:{borderRadius:"soft"===g?10:0,height:50},children:v}),j&&e.jsx(Be,{children:j})]})]})},exports.HISD3NotificationButton=({items:o=[],count:n,loading:a=!1,title:s="Notifications",onMarkAllRead:l,onSeeAll:d,seeAllLabel:p="See all notifications",emptyText:c="You're all caught up",onOpenChange:h,size:g=40,icon:x,className:m})=>{const[u,b]=t.useState(!1),f=n??o.filter((e=>e.unread)).length,v=e.jsxs(Te,{children:[e.jsxs(Re,{children:[e.jsx("h4",{children:s}),l&&f>0&&e.jsx("button",{type:"button",onClick:l,children:"Mark all as read"})]}),a?e.jsx(Oe,{style:{textAlign:"center"},children:e.jsx(r.Spin,{})}):0===o.length?e.jsx(Oe,{children:e.jsx(r.Empty,{image:r.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(He,{children:o.map((r=>e.jsxs(Ne,{type:"button",$unread:r.unread,onClick:()=>{r.onClick?.(r),b(!1),h?.(!1)},children:[e.jsx(Pe,{$src:r.avatarSrc,children:!r.avatarSrc&&(r.icon??e.jsx(i.BellFilled,{}))}),e.jsxs(Le,{children:[e.jsx("strong",{children:r.title}),r.description&&e.jsx("span",{children:r.description}),r.time&&e.jsx("time",{children:r.time})]}),r.unread&&e.jsx(Me,{})]},r.id)))}),d&&e.jsx(Ue,{type:"button",onClick:()=>{d(),b(!1),h?.(!1)},children:p})]});return e.jsx(r.Dropdown,{open:u,onOpenChange:e=>{b(e),h?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>v,children:e.jsxs(Ce,{type:"button",$size:g,$open:u,className:m,"aria-label":`${s}${f?` (${f} unread)`:""}`,children:[x??e.jsx(i.BellFilled,{}),f>0&&e.jsx(ze,{$size:g,children:f>99?"99+":f})]})})},exports.HISD3PageBody=de,exports.HISD3PageHeader=({title:t,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:s=!1,className:l})=>e.jsxs(ne,{className:l,children:[!s&&e.jsxs(ae,{children:[a,i&&i.length>0&&e.jsx(r.Breadcrumb,{items:i.map((r=>({title:r.href?e.jsx("a",{href:r.href,children:r.title}):r.title,onClick:r.onClick})))}),!i?.length&&e.jsx("span",{style:{flex:1}}),n&&e.jsx(se,{children:n})]}),e.jsxs(le,{children:[e.jsx("h1",{children:t}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:i,mode:n="light",radius:a,borders:s="hairline",lineWidth:l,overrides:d,theme:p,styledTheme:c={},children:h})=>{const g=t.useMemo((()=>p??D({primary:i,mode:n,radius:a,borders:s,lineWidth:l,overrides:d})),[p,i,n,a,s,l,d]),x=t.useMemo((()=>k({primary:i,mode:n,borders:s,lineWidth:l,radius:a})),[i,n,s,l,a]);return e.jsxs(E.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),e.jsx(r.ConfigProvider,{theme:g,children:e.jsx(o.ThemeProvider,{theme:c,children:e.jsx(r.App,{component:!1,children:h})})})]})},exports.HISD3SearchInput=dr,exports.HISD3Select=mr,exports.HISD3SelectLabel=pr,exports.HISD3Sidebar=({children:n,account:a,logoUrl:s,appName:l,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:g,settingsUrl:x,antdTheme:m,renderMenuLink:u=re,headerExtra:b,userMenuItems:f,onCollapse:v,collapsed:y=!1,loading:w=!1,hideSidebar:S=!1,layoutTop:A=!1,hideCollapseTrigger:D=!1,collapseTrigger:k="edge",collapseTriggerOffset:j=Math.round(H/2),siderWidth:E=T,bareContent:C=!1,hideHeaderBar:z=!1,brandHref:W="/",hideAccountCard:K=!1,scrollContent:Q=!0})=>{const V=I(),Y=void 0===m?V?null:F:m,[Z,J]=t.useState(y);t.useEffect((()=>{J(y)}),[y]);const X=t.useMemo((()=>ee(d,u)),[d,u]),ie=t.useMemo((()=>((e,r)=>{let t;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=_(e,n);if(e.path&&r.startsWith(e.path)){const o=r===e.path,n=e.path.length+(o?1:0);(!t||n>t.length)&&(t={key:a,parents:i,length:n})}e.children?.length&&o(e.children,[...i,a])}))};return o(e,[]),{selectedKey:t?.key,openKeys:t?.parents??[]}})(d,c)),[d,c]),[ne,ae]=t.useState((()=>ie.openKeys));t.useEffect((()=>{ae((e=>Array.from(new Set([...e,...ie.openKeys]))))}),[ie.openKeys.join("|")]);const se=e=>{J(e),v?.(e)},[le,de]=t.useState(!1);t.useEffect((()=>de(!1)),[s]);const pe=ie.selectedKey?[ie.selectedKey]:[],ce=D?"none":k,he=Z?"Expand menu":"Collapse menu",ge=e.jsxs(M,{href:W,$collapsed:!A&&Z,children:[s?e.jsx("img",{src:le?B:s,alt:"",onError:()=>de(!0)}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(A||!Z)&&e.jsx("h1",{children:l})]}),xe=C?n:e.jsx(q,{children:n});if("undefined"==typeof document)return null;const me=e.jsx(r.App,{component:!1,children:e.jsx(r.Spin,{spinning:w,size:"large",children:S?e.jsx(e.Fragment,{children:n}):A?e.jsxs(N,{$appShell:Q,children:[e.jsxs(U,{children:[ge,e.jsx(r.Menu,{mode:"horizontal",items:X,selectedKeys:pe}),b,!K&&e.jsx(te,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,placement:"bottomRight",extraItems:f})]}),e.jsx(P,{$scroll:Q,children:xe})]}):e.jsxs(N,{hasSider:!0,$appShell:Q,children:[e.jsxs(oe,{className:"hisd3-sider",width:E,collapsedWidth:R,collapsible:!0,collapsed:Z,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&se(!0)},children:[ge,e.jsx(L,{className:Z?"hisd3-collapsed":void 0,children:e.jsx(r.Menu,{mode:"inline",theme:"light",inlineCollapsed:Z,items:X,selectedKeys:pe,openKeys:Z?void 0:ne,onOpenChange:e=>ae(e)})}),!K&&e.jsx(te,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,collapsed:Z,placement:"topRight",extraItems:f})]}),e.jsxs(P,{$scroll:Q,children:[!z&&e.jsxs(O,{children:["header"===ce&&e.jsx($,{type:"button","aria-label":he,onClick:()=>se(!Z),children:Z?e.jsx(i.MenuUnfoldOutlined,{}):e.jsx(i.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),b]}),xe]}),"edge"===ce&&e.jsx(G,{type:"button","aria-label":he,title:he,$left:Z?R:E,$top:j,onClick:()=>se(!Z),children:Z?e.jsx(i.RightOutlined,{}):e.jsx(i.LeftOutlined,{})})]})})});return V&&!g?Y?e.jsx(r.ConfigProvider,{theme:Y,children:me}):me:e.jsx(o.ThemeProvider,{theme:g??{},children:Y?e.jsx(r.ConfigProvider,{theme:Y,children:me}):me})},exports.HISD3Table=function({pagination:t,footer:o,...n}){const a=t||void 0,s=a?.pageSizeOptions??[10,20,50];return e.jsxs(Ze,{children:[e.jsx(r.Table,{...n,pagination:!1}),o&&e.jsx(Je,{children:o}),a&&e.jsxs(Xe,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??er)(a.total,[(a.current-1)*a.pageSize+1,Math.min(a.current*a.pageSize,a.total)])}),e.jsx(r.Pagination,{current:a.current,pageSize:a.pageSize,total:a.total,showSizeChanger:!1,onChange:(e,r)=>a.onChange(e,r),itemRender:(r,t,o)=>"prev"===t?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.LeftOutlined,{})}):"next"===t?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.RightOutlined,{})}):o}),!a.hidePageSize&&e.jsx(_e,{role:"group","aria-label":"Rows per page",children:s.map((r=>e.jsxs("button",{type:"button","aria-pressed":r===a.pageSize,onClick:()=>a.onChange(1,r),children:[r," / page"]},r)))})]})]})},exports.HISD3Tabs=({items:r,...t})=>e.jsx(rr,{...t,items:r.map((({count:r,label:t,...o})=>({...o,label:e.jsxs(e.Fragment,{children:[t,void 0!==r&&e.jsx("span",{className:"hisd3-tab-count",children:r})]})})))}),exports.HISD3Tag=({variant:r="neutral",tone:t=("neutral"===r?"default":"primary"),children:o,...i})=>e.jsx(ir,{$variant:r,$tone:t,...i,children:o}),exports.HISD3_BORDER_PRESETS=c,exports.HISD3_BORDER_PRESETS_DARK=h,exports.HISD3_COLORS=j,exports.HISD3_FONT_FAMILY=g,exports.HISD3_FONT_WEIGHT_BODY=400,exports.HISD3_FONT_WEIGHT_HEADING=800,exports.HISD3_LAYOUT=a,exports.HISD3_LOGO_SRC=B,exports.HISD3_NEUTRALS=l,exports.HISD3_NEUTRALS_DARK=d,exports.HISD3_PRESETS=s,exports.HISD3_STATUS=p,exports.HeaderIconButton=Ce,exports.UserMenu=te,exports.borderVarsCss=(e="hairline",r)=>k({borders:e,lineWidth:r}),exports.contrastRatio=w,exports.createHisd3Theme=D,exports.getInitials=Qe,exports.hisd3AntdTheme=F,exports.hisd3VarsCss=k,exports.mix=v,exports.normalizeUploadFileList=qr,exports.resolvePrimary=x,exports.resolvePrimaryPalette=S,exports.shade=b,exports.tint=f,exports.useDialog=function(r){const o=t.useContext(Qr);if(!o)throw new Error("useDialog needs DialogProvider above it.");return t.useCallback(((t,i)=>{const n=Vr+=1;o.mount(n,e.jsx(Yr,{Component:r,props:t,onClose:i,unmount:()=>o.unmount(n)},n))}),[r,o])},exports.useInsideHISD3Provider=I;
|
|
1430
1431
|
//# sourceMappingURL=index.cjs.js.map
|