hisd3-ui-kit 4.7.1 → 5.0.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/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("antd"),r=require("react"),o=require("styled-components"),i=require("@ant-design/icons");function n(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}n('body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}');n('@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");:root{--hisd3-rule-width:1px;--hisd3-control-bg:#e6e4e1;--hisd3-control-bg-hover:#dbd8d4;--hisd3-popup-radius:10px;--font-body:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--font-heading:var(--font-body);--font-weight-heading:800}body{-webkit-font-smoothing:antialiased;font-family:var(--font-body)}body,html{overscroll-behavior:none}.ant-typography h1,.ant-typography h2,.ant-typography h3,.ant-typography h4,.ant-typography h5,h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:var(--font-weight-heading);letter-spacing:-.01em}');const a={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28},s={brand:"#E5533B",brandBlue:"#1B6FE0",red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},l={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",white:"#FFFFFF"},d={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},p="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",c=(e="red")=>s[e]??e,h=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16);return`#${[i>>16&255,i>>8&255,255&i].map((e=>(e=>Math.round(e*(1-t)))(e).toString(16).padStart(2,"0"))).join("")}`},x=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16),n=i>>8&255,a=255&i,s=e=>Math.round(e+(255-e)*t);return`#${[s(i>>16&255),s(n),s(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},g=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:i}={})=>{const n=c(e),s=d[r]??d.hairline,g=o??s.width,u={...l,border:s.border,borderSecondary:s.borderSecondary},b={cssVar:{key:"hisd3"},token:{colorPrimary:n,colorInfo:n,colorLink:n,colorPrimaryBg:x(n,.92),colorPrimaryBgHover:x(n,.86),colorPrimaryBorder:x(n,.6),fontFamily:p,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:g,colorBgLayout:u.bgLayout,colorBgContainer:u.bgContainer,colorBgElevated:u.bgElevated,colorText:u.text,colorTextSecondary:u.textSecondary,colorTextTertiary:u.textTertiary,colorTextHeading:u.text,colorBorder:u.border,colorBorderSecondary:u.borderSecondary,colorSplit:u.borderSecondary,controlHeight:40,controlHeightLG:52,controlHeightSM:32,boxShadow:"none",boxShadowSecondary:"0 2px 6px rgba(16,15,14,0.06), 0 12px 32px rgba(16,15,14,0.14)"},components:{Layout:{siderBg:u.bgLayout,headerBg:u.bgLayout,bodyBg:u.bgLayout,headerPadding:`0 ${a.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:u.text,itemHoverColor:u.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:x(n,.9),itemSelectedColor:n,itemActiveBg:x(n,.86),subMenuItemSelectedColor:n,groupTitleColor:u.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:40,itemPaddingInline:a.pageGutter,iconSize:16,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",defaultBorderColor:u.border,defaultColor:u.text,defaultBg:u.bgLayout,defaultHoverBg:u.white,defaultHoverBorderColor:u.borderStrong,defaultHoverColor:u.text,defaultActiveBorderColor:u.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:u.border,hoverBorderColor:u.borderStrong,activeBorderColor:u.borderStrong,paddingInline:16},Select:{optionSelectedBg:x(n,.9),colorBorder:u.border},Table:{headerBg:u.bgContainer,headerColor:u.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:u.borderSecondary,rowHoverBg:h(u.bgContainer,.03),cellPaddingBlock:10,cellPaddingInline:12,cellFontSize:14,cellPaddingBlockMD:8,cellPaddingInlineMD:10,cellPaddingBlockSM:6,cellPaddingInlineSM:8,cellFontSizeMD:14,cellFontSizeSM:13,footerBg:u.bgContainer},Tabs:{inkBarColor:n,itemColor:u.text,itemSelectedColor:n,itemHoverColor:n,titleFontSize:15,horizontalItemGutter:32,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:u.bgLayout,itemActiveBg:n,itemSize:32,itemSizeSM:26,itemInputBg:u.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:u.textTertiary,lastItemColor:u.text,linkColor:u.textTertiary,linkHoverColor:n,separatorColor:u.textTertiary},Card:{headerFontSize:20}}};return i?{...b,...i,token:{...b.token,...i.token},components:{...b.components,...i.components}}:b},u=({primary:e,borders:t="hairline",lineWidth:r,radius:o=0}={})=>{const i=c(e),n=d[t]??d.hairline,a=l;return[":root{",`--hisd3-rule-width:${r??n.width}px;`,`--hisd3-control-bg:${a.bgFilled};`,`--hisd3-control-bg-hover:${a.bgFilledHover};`,"--hisd3-popup-radius:10px;",`--hisd3-radius:${o}px;`,`--ant-color-primary:${i};`,`--ant-color-primary-bg:${x(i,.92)};`,`--ant-color-primary-bg-hover:${x(i,.86)};`,`--ant-color-primary-border:${x(i,.6)};`,`--ant-color-error:${i===s.red?i:"#E5401C"};`,`--ant-color-text:${a.text};`,`--ant-color-text-secondary:${a.textSecondary};`,`--ant-color-text-tertiary:${a.textTertiary};`,`--hisd3-table-bg:${a.bgContainer};`,`--hisd3-table-hover-bg:${h(a.bgContainer,.03)};`,`--hisd3-border:${n.border};`,`--hisd3-border-secondary:${n.borderSecondary};`,`--ant-color-border:${n.border};`,`--ant-color-border-secondary:${n.borderSecondary};`,`--ant-color-bg-layout:${a.bgLayout};`,`--ant-color-bg-elevated:${a.bgElevated};`,"}"].join("")},b=g(),m={primary:s.red,primaryLight:x(s.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},f=r.createContext(!1),v=()=>r.useContext(f),{Header:y,Content:w}=t.Layout,A=a.siderWidth,k=a.siderCollapsedWidth,D=a.topBarHeight,E=o(t.Layout)`
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("antd"),r=require("react"),o=require("styled-components"),i=require("@ant-design/icons");function n(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}n('body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}');n('@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");:root{--hisd3-rule-width:1px;--hisd3-control-bg:#e6e4e1;--hisd3-control-bg-hover:#dbd8d4;--hisd3-popup-radius:10px;--font-body:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--font-heading:var(--font-body);--font-weight-heading:800}body{-webkit-font-smoothing:antialiased;font-family:var(--font-body)}body,html{overscroll-behavior:none}.ant-typography h1,.ant-typography h2,.ant-typography h3,.ant-typography h4,.ant-typography h5,h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:var(--font-weight-heading);letter-spacing:-.01em}');const a={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28},s={brand:"#E5533B",brandBlue:"#1B6FE0",red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},l={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",white:"#FFFFFF"},d={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},p="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",c=(e="red")=>s[e]??e,h=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16);return`#${[i>>16&255,i>>8&255,255&i].map((e=>(e=>Math.round(e*(1-t)))(e).toString(16).padStart(2,"0"))).join("")}`},x=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16),n=i>>8&255,a=255&i,s=e=>Math.round(e+(255-e)*t);return`#${[s(i>>16&255),s(n),s(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},g=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:i}={})=>{const n=c(e),s=d[r]??d.hairline,g=o??s.width,u={...l,border:s.border,borderSecondary:s.borderSecondary},m={cssVar:{key:"hisd3"},token:{colorPrimary:n,colorInfo:n,colorLink:n,colorPrimaryBg:x(n,.92),colorPrimaryBgHover:x(n,.86),colorPrimaryBorder:x(n,.6),fontFamily:p,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:g,colorBgLayout:u.bgLayout,colorBgContainer:u.bgContainer,colorBgElevated:u.bgElevated,colorText:u.text,colorTextSecondary:u.textSecondary,colorTextTertiary:u.textTertiary,colorTextHeading:u.text,colorBorder:u.border,colorBorderSecondary:u.borderSecondary,colorSplit:u.borderSecondary,controlHeight:40,controlHeightLG:52,controlHeightSM:32,boxShadow:"none",boxShadowSecondary:"0 2px 6px rgba(16,15,14,0.06), 0 12px 32px rgba(16,15,14,0.14)"},components:{Layout:{siderBg:u.bgLayout,headerBg:u.bgLayout,bodyBg:u.bgLayout,headerPadding:`0 ${a.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:u.text,itemHoverColor:u.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:x(n,.9),itemSelectedColor:n,itemActiveBg:x(n,.86),subMenuItemSelectedColor:n,groupTitleColor:u.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:40,itemPaddingInline:a.pageGutter,iconSize:16,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",defaultBorderColor:u.border,defaultColor:u.text,defaultBg:u.bgLayout,defaultHoverBg:u.white,defaultHoverBorderColor:u.borderStrong,defaultHoverColor:u.text,defaultActiveBorderColor:u.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:u.border,hoverBorderColor:u.borderStrong,activeBorderColor:u.borderStrong,paddingInline:16},Select:{optionSelectedBg:x(n,.9),colorBorder:u.border},Table:{headerBg:u.bgContainer,headerColor:u.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:u.borderSecondary,rowHoverBg:h(u.bgContainer,.03),cellPaddingBlock:10,cellPaddingInline:12,cellFontSize:14,cellPaddingBlockMD:8,cellPaddingInlineMD:10,cellPaddingBlockSM:6,cellPaddingInlineSM:8,cellFontSizeMD:14,cellFontSizeSM:13,footerBg:u.bgContainer},Tabs:{inkBarColor:n,itemColor:u.text,itemSelectedColor:n,itemHoverColor:n,titleFontSize:15,horizontalItemGutter:32,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:u.bgLayout,itemActiveBg:n,itemSize:32,itemSizeSM:26,itemInputBg:u.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:u.textTertiary,lastItemColor:u.text,linkColor:u.textTertiary,linkHoverColor:n,separatorColor:u.textTertiary},Card:{headerFontSize:20}}};return i?{...m,...i,token:{...m.token,...i.token},components:{...m.components,...i.components}}:m},u=({primary:e,borders:t="hairline",lineWidth:r,radius:o=0}={})=>{const i=c(e),n=d[t]??d.hairline,a=l;return[":root{",`--hisd3-rule-width:${r??n.width}px;`,`--hisd3-control-bg:${a.bgFilled};`,`--hisd3-control-bg-hover:${a.bgFilledHover};`,"--hisd3-popup-radius:10px;",`--hisd3-radius:${o}px;`,`--ant-color-primary:${i};`,`--ant-color-primary-bg:${x(i,.92)};`,`--ant-color-primary-bg-hover:${x(i,.86)};`,`--ant-color-primary-border:${x(i,.6)};`,`--ant-color-error:${i===s.red?i:"#E5401C"};`,`--ant-color-text:${a.text};`,`--ant-color-text-secondary:${a.textSecondary};`,`--ant-color-text-tertiary:${a.textTertiary};`,`--hisd3-table-bg:${a.bgContainer};`,`--hisd3-table-hover-bg:${h(a.bgContainer,.03)};`,`--hisd3-border:${n.border};`,`--hisd3-border-secondary:${n.borderSecondary};`,`--ant-color-border:${n.border};`,`--ant-color-border-secondary:${n.borderSecondary};`,`--ant-color-bg-layout:${a.bgLayout};`,`--ant-color-bg-elevated:${a.bgElevated};`,"}"].join("")},m=g(),b={primary:s.red,primaryLight:x(s.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},f=r.createContext(!1),y=()=>r.useContext(f),{Header:v,Content:w}=t.Layout,S=a.siderWidth,D=a.siderCollapsedWidth,A=a.topBarHeight,k=o(t.Layout)`
2
2
  position: relative; /* anchor for the edge collapse trigger */
3
3
  background: var(--ant-color-bg-layout);
4
4
 
@@ -30,12 +30,12 @@
30
30
  height: 100%;
31
31
  }
32
32
  }
33
- `,S=o(t.Layout)`
33
+ `,j=o(t.Layout)`
34
34
  background: transparent;
35
35
  min-width: 0;
36
36
 
37
37
  ${({$scroll:e})=>e?"\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n /* keep scroll chaining (and its bounce) out of the document */\n overscroll-behavior: contain;\n ":""}
38
- `,j=o.div`
38
+ `,I=o.div`
39
39
  flex: 1 1 auto;
40
40
  overflow-y: auto;
41
41
  overflow-x: hidden;
@@ -111,11 +111,11 @@
111
111
  &.hisd3-collapsed .ant-menu-item-group-title {
112
112
  display: none;
113
113
  }
114
- `,C=o.a`
114
+ `,E=o.a`
115
115
  display: flex;
116
116
  align-items: center;
117
117
  gap: 10px;
118
- height: ${D}px;
118
+ height: ${A}px;
119
119
  padding: 0 ${({$collapsed:e})=>e?12:a.pageGutter}px;
120
120
  justify-content: ${({$collapsed:e})=>e?"center":"flex-start"};
121
121
  color: inherit;
@@ -153,13 +153,13 @@
153
153
  overflow: hidden;
154
154
  text-overflow: ellipsis;
155
155
  }
156
- `,I=o(y)`
156
+ `,C=o(v)`
157
157
  display: flex;
158
158
  align-items: center;
159
159
  gap: 24px;
160
- flex: 0 0 ${D}px;
161
- height: ${D}px;
162
- line-height: ${D}px;
160
+ flex: 0 0 ${A}px;
161
+ height: ${A}px;
162
+ line-height: ${A}px;
163
163
  padding: 0 ${a.pageGutter}px;
164
164
  position: sticky;
165
165
  top: 0;
@@ -172,24 +172,24 @@
172
172
  min-width: 0;
173
173
  border-bottom: none;
174
174
  background: transparent;
175
- line-height: ${D-2}px;
175
+ line-height: ${A-2}px;
176
176
  font-size: 14px;
177
177
  font-weight: 500;
178
178
  }
179
- `,z=o(y)`
179
+ `,z=o(v)`
180
180
  display: flex;
181
181
  align-items: center;
182
182
  gap: 12px;
183
- flex: 0 0 ${D}px;
184
- height: ${D}px;
185
- line-height: ${D}px;
183
+ flex: 0 0 ${A}px;
184
+ height: ${A}px;
185
+ line-height: ${A}px;
186
186
  padding: 0 ${a.pageGutter}px;
187
187
  position: sticky;
188
188
  top: 0;
189
189
  z-index: 99;
190
190
  background: var(--ant-color-bg-layout);
191
191
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
192
- `,T=o.button`
192
+ `,F=o.button`
193
193
  border: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
194
194
  background: transparent;
195
195
  cursor: pointer;
@@ -205,7 +205,7 @@
205
205
  &:hover {
206
206
  background: rgba(0, 0, 0, 0.05);
207
207
  }
208
- `,B=o.button`
208
+ `,T=o.button`
209
209
  user-select: none;
210
210
  -webkit-user-select: none;
211
211
  position: absolute;
@@ -245,10 +245,10 @@
245
245
  & svg {
246
246
  display: block;
247
247
  }
248
- `,L=o(w)`
248
+ `,B=o(w)`
249
249
  flex: 1 0 auto;
250
250
  padding: 24px ${a.pageGutter}px 40px;
251
- `,F=o.div`
251
+ `,R=o.div`
252
252
  flex: 0 0 auto;
253
253
  display: flex;
254
254
  flex-direction: column;
@@ -262,14 +262,14 @@
262
262
  & .ant-dropdown-link {
263
263
  color: inherit;
264
264
  }
265
- `,R=o.a`
265
+ `,N=o.a`
266
266
  display: flex;
267
267
  align-items: center;
268
268
  justify-content: center;
269
269
  cursor: pointer;
270
270
  color: inherit;
271
271
  gap: 10px;
272
- `,N=o.span`
272
+ `,H=o.span`
273
273
  width: 34px;
274
274
  height: 34px;
275
275
  flex: 0 0 auto;
@@ -280,15 +280,15 @@
280
280
  font-weight: 700;
281
281
  color: var(--ant-color-text);
282
282
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"#D9D6D2"};
283
- `,M=o.span`
283
+ `,L=o.span`
284
284
  flex: 1 1 auto;
285
285
  min-width: 0;
286
- `,U=o.span`
286
+ `,P=o.span`
287
287
  display: flex;
288
288
  align-items: flex-start;
289
289
  justify-content: space-between;
290
290
  gap: 8px;
291
- `,H=o.h3`
291
+ `,M=o.h3`
292
292
  margin: 0;
293
293
  font-family: var(--font-body);
294
294
  font-size: 14px;
@@ -300,7 +300,7 @@
300
300
  display: -webkit-box;
301
301
  -webkit-line-clamp: 2;
302
302
  -webkit-box-orient: vertical;
303
- `,O=o.span`
303
+ `,U=o.span`
304
304
  width: 20px;
305
305
  height: 22px;
306
306
  display: flex;
@@ -312,7 +312,7 @@
312
312
  & svg {
313
313
  display: block;
314
314
  }
315
- `,P=o.span`
315
+ `,O=o.span`
316
316
  display: block;
317
317
  margin-top: 3px;
318
318
  font-size: 11px;
@@ -323,9 +323,9 @@
323
323
  overflow: hidden;
324
324
  text-overflow: ellipsis;
325
325
  white-space: nowrap;
326
- `,$=(e,t)=>e.key??e.path??`menu-${t}`,G=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=$(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:o,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:G(e.children,t)}:{key:o,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),q=(e,t)=>r.createElement("a",{href:e.path||"/"},t),Q=({account:r,avatarSrc:o,settingsUrl:n,onLogout:a,collapsed:s=!1,placement:l="topRight",extraItems:d=[]})=>{const{modal:p}=t.App.useApp(),c=[...d??[],{key:"settings",icon:e.jsx(i.SettingOutlined,{}),label:"Settings",onClick:()=>{window.location.href=n??"/settings"}},{key:"logout",icon:e.jsx(i.LogoutOutlined,{}),label:"Logout",onClick:()=>{p.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(i.ExclamationCircleOutlined,{}),onOk:a})}}],h=(r.fullName||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?";return e.jsx(F,{className:"cr-user-info-light",$collapsed:s,$inHeader:"bottomRight"===l,children:e.jsx(t.Dropdown,{trigger:["click"],placement:l,menu:{items:c},children:e.jsxs(R,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(N,{$src:o,"aria-hidden":!0,children:!o&&h}),!s&&e.jsxs(M,{children:[e.jsxs(U,{children:[e.jsx(H,{title:r.fullName,children:r.fullName}),e.jsx(O,{children:e.jsx(i.DownOutlined,{})})]}),r.positionType&&e.jsx(P,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:K}=t.Layout,W=a.pageGutter,Y=o.header`
326
+ `,G=(e,t)=>e.key??e.path??`menu-${t}`,$=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=G(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:o,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:$(e.children,t)}:{key:o,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),q=(e,t)=>r.createElement("a",{href:e.path||"/"},t),Q=({account:r,avatarSrc:o,settingsUrl:n,onLogout:a,collapsed:s=!1,placement:l="topRight",extraItems:d=[]})=>{const{modal:p}=t.App.useApp(),c=[...d??[],{key:"settings",icon:e.jsx(i.SettingOutlined,{}),label:"Settings",onClick:()=>{window.location.href=n??"/settings"}},{key:"logout",icon:e.jsx(i.LogoutOutlined,{}),label:"Logout",onClick:()=>{p.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(i.ExclamationCircleOutlined,{}),onOk:a})}}],h=(r.fullName||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?";return e.jsx(R,{className:"cr-user-info-light",$collapsed:s,$inHeader:"bottomRight"===l,children:e.jsx(t.Dropdown,{trigger:["click"],placement:l,menu:{items:c},children:e.jsxs(N,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(H,{$src:o,"aria-hidden":!0,children:!o&&h}),!s&&e.jsxs(L,{children:[e.jsxs(P,{children:[e.jsx(M,{title:r.fullName,children:r.fullName}),e.jsx(U,{children:e.jsx(i.DownOutlined,{})})]}),r.positionType&&e.jsx(O,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:K}=t.Layout,W=a.pageGutter,V=o.header`
327
327
  display: contents;
328
- `,V=o.div`
328
+ `,Y=o.div`
329
329
  user-select: none;
330
330
  -webkit-user-select: none;
331
331
  display: flex;
@@ -701,11 +701,11 @@
701
701
  @media (max-width: ${ne}px) {
702
702
  font-size: 22px;
703
703
  }
704
- `,be=o.p`
704
+ `,me=o.p`
705
705
  margin: 0 0 22px;
706
706
  font-size: 14px;
707
707
  color: var(--ant-color-text-secondary, #4A4A4A);
708
- `,me=o.label`
708
+ `,be=o.label`
709
709
  display: block;
710
710
  margin-bottom: 16px;
711
711
 
@@ -806,14 +806,14 @@
806
806
  text-decoration: underline;
807
807
  }
808
808
  }
809
- `,ve=o.div`
809
+ `,ye=o.div`
810
810
  margin-bottom: 16px;
811
811
  padding: 10px 14px;
812
812
  font-size: 13px;
813
813
  color: var(--ant-color-error, #e5401c);
814
814
  background: rgba(229, 64, 28, 0.08);
815
815
  border-left: 3px solid var(--ant-color-error, #e5401c);
816
- `,ye=o.p`
816
+ `,ve=o.p`
817
817
  margin: 20px 0 0;
818
818
  text-align: center;
819
819
  font-size: 14px;
@@ -855,7 +855,7 @@
855
855
  /* the stock bell is narrow; widen it a touch for a fuller silhouette */
856
856
  transform: scaleX(var(--hisd3-bell-stretch, 1.12));
857
857
  }
858
- `,Ae=o.span`
858
+ `,Se=o.span`
859
859
  position: absolute;
860
860
  top: ${({$size:e})=>-Math.round(.05*e)}px;
861
861
  right: ${({$size:e})=>-Math.round(.05*e)}px;
@@ -873,7 +873,7 @@
873
873
  border: 2px solid var(--ant-color-bg-layout, #f3f2f0);
874
874
  border-radius: 999px;
875
875
  pointer-events: none;
876
- `,ke=o.div`
876
+ `,De=o.div`
877
877
  width: 360px;
878
878
  max-width: calc(100vw - 32px);
879
879
  overflow: hidden;
@@ -882,7 +882,7 @@
882
882
  border-radius: var(--hisd3-popup-radius, 10px);
883
883
  box-shadow: 0 2px 6px rgba(16, 15, 14, 0.06),
884
884
  0 12px 32px rgba(16, 15, 14, 0.14);
885
- `,De=o.div`
885
+ `,Ae=o.div`
886
886
  display: flex;
887
887
  align-items: center;
888
888
  justify-content: space-between;
@@ -910,10 +910,10 @@
910
910
  text-decoration: underline;
911
911
  }
912
912
  }
913
- `,Ee=o.div`
913
+ `,ke=o.div`
914
914
  max-height: 380px;
915
915
  overflow-y: auto;
916
- `,Se=o.button`
916
+ `,je=o.button`
917
917
  display: flex;
918
918
  align-items: flex-start;
919
919
  gap: 12px;
@@ -928,7 +928,7 @@
928
928
  &:hover {
929
929
  background: ${({$unread:e})=>e?"var(--ant-color-primary-bg-hover)":"rgba(0,0,0,0.04)"};
930
930
  }
931
- `,je=o.span`
931
+ `,Ie=o.span`
932
932
  width: 36px;
933
933
  height: 36px;
934
934
  flex: 0 0 auto;
@@ -939,7 +939,7 @@
939
939
  color: var(--ant-color-text);
940
940
  border-radius: 50%;
941
941
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.06)"};
942
- `,Ce=o.span`
942
+ `,Ee=o.span`
943
943
  flex: 1 1 auto;
944
944
  min-width: 0;
945
945
 
@@ -964,7 +964,7 @@
964
964
  font-size: 12px;
965
965
  color: var(--ant-color-text-tertiary);
966
966
  }
967
- `,Ie=o.span`
967
+ `,Ce=o.span`
968
968
  width: 8px;
969
969
  height: 8px;
970
970
  margin-top: 6px;
@@ -988,9 +988,9 @@
988
988
  &:hover {
989
989
  background: rgba(0, 0, 0, 0.04);
990
990
  }
991
- `,Te=o.div`
991
+ `,Fe=o.div`
992
992
  padding: 28px 16px;
993
- `,Be=o.button`
993
+ `,Te=o.button`
994
994
  user-select: none;
995
995
  -webkit-user-select: none;
996
996
  position: relative;
@@ -1026,7 +1026,7 @@
1026
1026
  display: block;
1027
1027
  border-radius: inherit;
1028
1028
  }
1029
- `,Le=o.span`
1029
+ `,Be=o.span`
1030
1030
  position: absolute;
1031
1031
  right: ${({$size:e})=>-Math.round(.05*e)}px;
1032
1032
  bottom: ${({$size:e})=>-Math.round(.05*e)}px;
@@ -1047,7 +1047,7 @@
1047
1047
  & svg {
1048
1048
  display: block;
1049
1049
  }
1050
- `,Fe=o.div`
1050
+ `,Re=o.div`
1051
1051
  display: flex;
1052
1052
  align-items: center;
1053
1053
  gap: 12px;
@@ -1082,7 +1082,7 @@
1082
1082
  overflow: hidden;
1083
1083
  text-overflow: ellipsis;
1084
1084
  }
1085
- `,Re=o.span`
1085
+ `,Ne=o.span`
1086
1086
  width: 40px;
1087
1087
  height: 40px;
1088
1088
  flex: 0 0 auto;
@@ -1093,7 +1093,7 @@
1093
1093
  font-weight: 700;
1094
1094
  border-radius: 50%;
1095
1095
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.08)"};
1096
- `,Ne=o.div`
1096
+ `,He=o.div`
1097
1097
  overflow: hidden;
1098
1098
  background: var(--ant-color-bg-elevated);
1099
1099
  border: 1px solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
@@ -1116,17 +1116,17 @@
1116
1116
  border-radius: 8px;
1117
1117
  font-size: 14px;
1118
1118
  }
1119
- `,Me=e=>(e||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?",Ue=o.div`
1119
+ `,Le=e=>(e||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?",Pe=o.div`
1120
1120
  display: flex;
1121
1121
  align-items: center;
1122
1122
  gap: 8px;
1123
1123
  flex: 0 0 auto;
1124
- `,He=o.span`
1124
+ `,Me=o.span`
1125
1125
  width: 2px;
1126
1126
  height: 24px;
1127
1127
  background: var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1128
1128
  flex: 0 0 auto;
1129
- `,Oe=o.div`
1129
+ `,Ue=o.div`
1130
1130
  /*
1131
1131
  * Opaque backgrounds throughout. A fixed column is \`position: sticky\`, so the
1132
1132
  * columns that scroll underneath it show through anything translucent.
@@ -1182,14 +1182,14 @@
1182
1182
  .hisd3-cell-muted {
1183
1183
  color: var(--ant-color-text-tertiary);
1184
1184
  }
1185
- `,Pe=o.div`
1185
+ `,Oe=o.div`
1186
1186
  padding: 14px 0 8px;
1187
1187
  font-size: 11px;
1188
1188
  font-weight: 600;
1189
1189
  letter-spacing: 0.1em;
1190
1190
  text-transform: uppercase;
1191
1191
  color: var(--ant-color-text-tertiary);
1192
- `,$e=o.div`
1192
+ `,Ge=o.div`
1193
1193
  user-select: none;
1194
1194
  -webkit-user-select: none;
1195
1195
  display: flex;
@@ -1251,7 +1251,7 @@
1251
1251
  font-weight: 700;
1252
1252
  }
1253
1253
  }
1254
- `,Ge=o.div`
1254
+ `,$e=o.div`
1255
1255
  display: inline-flex;
1256
1256
  border: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
1257
1257
 
@@ -1310,7 +1310,7 @@
1310
1310
  .ant-tabs-tab-active .hisd3-tab-count {
1311
1311
  color: var(--ant-color-primary);
1312
1312
  }
1313
- `,Ke={default:"var(--ant-color-text)",primary:"var(--ant-color-primary)",success:"var(--ant-color-success)",warning:"var(--ant-color-warning)",danger:"var(--ant-color-error)"},We={default:"rgba(0,0,0,0.05)",primary:"var(--ant-color-primary-bg)",success:"var(--ant-color-success-bg)",warning:"var(--ant-color-warning-bg)",danger:"var(--ant-color-error-bg)"},Ye=o.span`
1313
+ `,Ke={default:"var(--ant-color-text)",primary:"var(--ant-color-primary)",success:"var(--ant-color-success)",warning:"var(--ant-color-warning)",danger:"var(--ant-color-error)"},We={default:"rgba(0,0,0,0.05)",primary:"var(--ant-color-primary-bg)",success:"var(--ant-color-success-bg)",warning:"var(--ant-color-warning-bg)",danger:"var(--ant-color-error-bg)"},Ve=o.span`
1314
1314
  display: inline-flex;
1315
1315
  align-items: center;
1316
1316
  gap: 5px;
@@ -1326,7 +1326,7 @@
1326
1326
  border-radius: 0;
1327
1327
 
1328
1328
  ${({$variant:e,$tone:t})=>{const r=Ke[t],o=We[t];switch(e){case"soft":return`color: ${r}; background: ${o};`;case"outline":return`color: ${r}; border-color: ${r}; background: transparent;`;case"solid":return`color: #fff; background: ${"default"===t?"var(--ant-color-text)":r};`;default:return"color: var(--ant-color-text); background: rgba(0,0,0,0.05);"}}}
1329
- `,Ve=o(t.Input)`
1329
+ `,Ye=o(t.Input)`
1330
1330
  &.ant-input,
1331
1331
  &.ant-input-affix-wrapper {
1332
1332
  border-width: var(--hisd3-rule-width, 1px);
@@ -1338,7 +1338,7 @@
1338
1338
  color: var(--ant-color-text-tertiary);
1339
1339
  font-size: 15px;
1340
1340
  }
1341
- `,Ze=o(Ve)`
1341
+ `,Ze=r.forwardRef(((t,r)=>e.jsx(Ye,{...t,ref:r})));Ze.displayName="HISD3Input";const Je=o(Ye)`
1342
1342
  /* default: the same 40px control height as buttons and selects */
1343
1343
  &.ant-input-affix-wrapper {
1344
1344
  background: var(--hisd3-bg-filled, #e6e4e1);
@@ -1390,5 +1390,25 @@
1390
1390
  font-size: 19px;
1391
1391
  }
1392
1392
  }
1393
- `,Je={small:"hisd3-search-sm",middle:"",large:"hisd3-search-lg"},Xe=r.createContext(null);let _e=0;function et({Component:t,props:o,onClose:i,unmount:n}){const[a,s]=r.useState(!0),l=r.useRef(!1),d={...o,open:a,hide:r.useCallback((e=>{l.current||(l.current=!0,s(!1),i?.(e),window.setTimeout(n,320))}),[i,n])};return e.jsx(t,{...d})}var tt,rt,ot,it,nt,at,st,lt,dt,pt,ct,ht,xt;exports.ThemeStyle=void 0,(tt=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",tt.STANDARD="standard",exports.ThemeStyleRadius=void 0,(rt=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",rt.STANDARD="16px",exports.ThemeMode=void 0,(ot=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",ot.SEMI_DARK="semi-dark",ot.DARK="dark",exports.LayoutType=void 0,(it=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",it.BOXED="boxed",it.FRAMED="framed",exports.MenuStyle=void 0,(nt=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",nt.STANDARD="standard",nt.ROUNDED="rounded",nt.ROUNDED_REVERSE="rounded-reverse",nt.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(at=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",at.MINI="mini",at.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",at.STANDARD="standard",at.HEADER_USER="user-header",at.HEADER_USER_MINI="user-mini-header",at.DRAWER="drawer",at.BIT_BUCKET="bit-bucket",at.H_DEFAULT="h-default",at.HOR_HEADER_FIXED="hor-header-fixed",at.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(st=exports.FooterType||(exports.FooterType={})).FIXED="fixed",st.FLUID="fluid",exports.LayoutDirection=void 0,(lt=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",lt.LTR="ltr",exports.HeaderType=void 0,(dt=exports.HeaderType||(exports.HeaderType={})).DARK="dark",dt.LIGHT="light",exports.RouteTransition=void 0,(pt=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",pt.FADE="fade",pt.SLIDE_LEFT="slideLeft",pt.SLIDE_RIGHT="slideRight",pt.SLIDE_UP="slideUp",pt.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(ct=exports.Fonts||(exports.Fonts={})).LIGHT="300",ct.REGULAR="400",ct.MEDIUM="500",ct.BOLD="600",exports.AuthType=void 0,(ht=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",ht.AWS_COGNITO="aws_cognito",ht.AUTH0="auth0",ht.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(xt=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",xt.SLIDEUPOUT="transition.slideUpOut",xt.SLIDEDOWNIN="transition.slideDownIn",xt.SLIDEDOWNOUT="transition.slideDownOut",xt.SLIDELEFTIN="transition.slideLeftIn",xt.SLIDELEFTOUT="transition.slideLeftOut",xt.SLIDERIGHTIN="transition.slideRightIn",xt.SLIDERIGHTOUT="transition.slideRightOut",xt.FADEIN="transition.fadeIn",xt.FADEOUT="transition.fadeOut";var gt,ut;exports.MessageType=void 0,(gt=exports.MessageType||(exports.MessageType={}))[gt.MEDIA=1]="MEDIA",gt[gt.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(ut=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",ut.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:t}){const[o,i]=r.useState([]),n=r.useMemo((()=>({mount:(e,t)=>i((r=>[...r.filter((t=>t.id!==e)),{id:e,node:t}])),unmount:e=>i((t=>t.filter((t=>t.id!==e))))})),[]);return e.jsxs(Xe.Provider,{value:n,children:[t,o.map((t=>e.jsx(r.Fragment,{children:t.node},t.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:x=!1,className:g})=>{const{modal:u}=t.App.useApp(),[b,m]=r.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?u.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(t.Dropdown,{open:b,onOpenChange:m,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>m(!1)},popupRender:t=>e.jsxs(Ne,{children:[e.jsxs(Fe,{children:[e.jsx(Re,{$src:n,children:!n&&Me(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})]})]}),t]}),children:e.jsxs(Be,{type:"button",className:g,$shape:c,$size:h,$open:b,"aria-label":`Account menu for ${o.fullName}`,children:[n?e.jsx("img",{src:n,alt:""}):Me(o.fullName),!x&&e.jsx(Le,{$size:h,$open:b,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=re,exports.HISD3HeaderActions=({children:t,divided:o=!1,className:i})=>{const n=r.Children.toArray(t).filter(Boolean);return e.jsx(Ue,{className:i,children:n.map(((t,i)=>e.jsxs(r.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(He,{}),t]},i)))})},exports.HISD3Input=t=>e.jsx(Ve,{...t}),exports.HISD3LoginPage=({appName:o,tagline:n,logoSrc:a=_,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:x="soft",side:g="right",identifierLabel:u="User ID or email",identifierPlaceholder:b="Email or user ID",passwordLabel:m="Password",passwordPlaceholder:f="Enter password",submitLabel:v="Sign in",hideRemember:y=!1,rememberLabel:w="Remember me",onForgotPassword:A,forgotLabel:k="Forgot password?",error:D,loading:E=!1,onSubmit:S,footer:j,className:C})=>{const[I,z]=r.useState(""),[T,B]=r.useState(""),[L,F]=r.useState(!1),[R,N]=r.useState(!1);return e.jsxs(ae,{className:C,$side:g,children:[e.jsx(he,{$variant:x,$side:g,"aria-hidden":!0}),e.jsxs(se,{$variant:x,$side:g,children:[c?e.jsx(de,{$src:c,"aria-hidden":!0}):e.jsx(pe,{"aria-hidden":!0}),e.jsxs(ce,{$side:g,"aria-hidden":!0,children:[e.jsx("img",{src:_,alt:""}),h]}),e.jsxs(le,{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(xe,{$variant:x,$side:g,onSubmit:e=>{e.preventDefault(),E||S({identifier:I,password:T,remember:L})},noValidate:!0,children:[e.jsxs(ge,{$variant:x,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(ue,{$variant:x,children:s}),l&&e.jsx(be,{children:l}),D&&e.jsx(ve,{role:"alert",children:D}),e.jsxs(me,{$variant:x,children:[e.jsx("span",{className:"hisd3-field-label",children:u}),e.jsx("span",{className:"hisd3-field-control",children:e.jsx("input",{value:I,onChange:e=>z(e.target.value),placeholder:b,autoComplete:"username",disabled:E,autoFocus:!0})})]}),e.jsxs(me,{$variant:x,children:[e.jsx("span",{className:"hisd3-field-label",children:m}),e.jsxs("span",{className:"hisd3-field-control",children:[e.jsx("input",{type:R?"text":"password",value:T,onChange:e=>B(e.target.value),placeholder:f,autoComplete:"current-password",disabled:E}),e.jsx("button",{type:"button",className:"hisd3-field-reveal","aria-label":R?"Hide password":"Show password",onClick:()=>N((e=>!e)),tabIndex:-1,children:R?e.jsx(i.EyeInvisibleOutlined,{}):e.jsx(i.EyeOutlined,{})})]})]}),(!y||A)&&e.jsxs(fe,{children:[y?e.jsx("span",{}):e.jsxs("label",{className:"hisd3-remember",children:[e.jsx(t.Switch,{size:"small",checked:L,onChange:F,disabled:E}),w]}),A&&e.jsx("button",{type:"button",className:"hisd3-forgot",onClick:A,children:k})]}),e.jsx(re,{variant:"primary",htmlType:"submit",size:"large",loading:E,block:!0,style:{borderRadius:"soft"===x?10:0,height:50},children:v}),j&&e.jsx(ye,{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:x=40,icon:g,className:u})=>{const[b,m]=r.useState(!1),f=n??o.filter((e=>e.unread)).length,v=e.jsxs(ke,{children:[e.jsxs(De,{children:[e.jsx("h4",{children:s}),l&&f>0&&e.jsx("button",{type:"button",onClick:l,children:"Mark all as read"})]}),a?e.jsx(Te,{style:{textAlign:"center"},children:e.jsx(t.Spin,{})}):0===o.length?e.jsx(Te,{children:e.jsx(t.Empty,{image:t.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(Ee,{children:o.map((t=>e.jsxs(Se,{type:"button",$unread:t.unread,onClick:()=>{t.onClick?.(t),m(!1),h?.(!1)},children:[e.jsx(je,{$src:t.avatarSrc,children:!t.avatarSrc&&(t.icon??e.jsx(i.BellFilled,{}))}),e.jsxs(Ce,{children:[e.jsx("strong",{children:t.title}),t.description&&e.jsx("span",{children:t.description}),t.time&&e.jsx("time",{children:t.time})]}),t.unread&&e.jsx(Ie,{})]},t.id)))}),d&&e.jsx(ze,{type:"button",onClick:()=>{d(),m(!1),h?.(!1)},children:p})]});return e.jsx(t.Dropdown,{open:b,onOpenChange:e=>{m(e),h?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>v,children:e.jsxs(we,{type:"button",$size:x,$open:b,className:u,"aria-label":`${s}${f?` (${f} unread)`:""}`,children:[g??e.jsx(i.BellFilled,{}),f>0&&e.jsx(Ae,{$size:x,children:f>99?"99+":f})]})})},exports.HISD3PageBody=X,exports.HISD3PageHeader=({title:r,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:s=!1,className:l})=>e.jsxs(Y,{className:l,children:[!s&&e.jsxs(V,{children:[a,i&&i.length>0&&e.jsx(t.Breadcrumb,{items:i.map((t=>({title:t.href?e.jsx("a",{href:t.href,children:t.title}):t.title,onClick:t.onClick})))}),!i?.length&&e.jsx("span",{style:{flex:1}}),n&&e.jsx(Z,{children:n})]}),e.jsxs(J,{children:[e.jsx("h1",{children:r}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:i,radius:n,borders:a="hairline",lineWidth:s,overrides:l,theme:d,styledTheme:p={},children:c})=>{const h=r.useMemo((()=>d??g({primary:i,radius:n,borders:a,lineWidth:s,overrides:l})),[d,i,n,a,s,l]),x=r.useMemo((()=>u({primary:i,borders:a,lineWidth:s,radius:n})),[i,a,s,n]);return e.jsxs(f.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),e.jsx(t.ConfigProvider,{theme:h,children:e.jsx(o.ThemeProvider,{theme:p,children:e.jsx(t.App,{component:!1,children:c})})})]})},exports.HISD3SearchInput=({size:t,compact:r,className:o,...n})=>e.jsx(Ze,{allowClear:!0,prefix:e.jsx(i.SearchOutlined,{}),className:[Je[t??(r?"small":"middle")],o??""].join(" ").trim(),...n}),exports.HISD3Sidebar=({children:n,account:a,logoUrl:s,appName:l,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:x,settingsUrl:g,antdTheme:u,renderMenuLink:m=q,headerExtra:f,userMenuItems:y,onCollapse:w,collapsed:F=!1,loading:R=!1,hideSidebar:N=!1,layoutTop:M=!1,hideCollapseTrigger:U=!1,collapseTrigger:H="edge",collapseTriggerOffset:O=Math.round(D/2),siderWidth:P=A,bareContent:W=!1,hideHeaderBar:Y=!1,brandHref:V="/",hideAccountCard:Z=!1,scrollContent:J=!0})=>{const X=v(),_=void 0===u?X?null:b:u,[ee,te]=r.useState(F);r.useEffect((()=>{te(F)}),[F]);const re=r.useMemo((()=>G(d,m)),[d,m]),oe=r.useMemo((()=>((e,t)=>{let r;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=$(e,n);if(e.path&&t.startsWith(e.path)){const o=t===e.path,n=e.path.length+(o?1:0);(!r||n>r.length)&&(r={key:a,parents:i,length:n})}e.children?.length&&o(e.children,[...i,a])}))};return o(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(d,c)),[d,c]),[ie,ne]=r.useState((()=>oe.openKeys));r.useEffect((()=>{ne((e=>Array.from(new Set([...e,...oe.openKeys]))))}),[oe.openKeys.join("|")]);const ae=e=>{te(e),w?.(e)},se=oe.selectedKey?[oe.selectedKey]:[],le=U?"none":H,de=ee?"Expand menu":"Collapse menu",pe=e.jsxs(C,{href:V,$collapsed:!M&&ee,children:[s?e.jsx("img",{src:s,alt:l}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(M||!ee)&&e.jsx("h1",{children:l})]}),ce=W?n:e.jsx(L,{children:n});if("undefined"==typeof document)return null;const he=e.jsx(t.App,{component:!1,children:e.jsx(t.Spin,{spinning:R,size:"large",children:N?e.jsx(e.Fragment,{children:n}):M?e.jsxs(E,{$appShell:J,children:[e.jsxs(I,{children:[pe,e.jsx(t.Menu,{mode:"horizontal",items:re,selectedKeys:se}),f,!Z&&e.jsx(Q,{account:a,avatarSrc:h,settingsUrl:g,onLogout:p,placement:"bottomRight",extraItems:y})]}),e.jsx(S,{$scroll:J,children:ce})]}):e.jsxs(E,{hasSider:!0,$appShell:J,children:[e.jsxs(K,{className:"hisd3-sider",width:P,collapsedWidth:k,collapsible:!0,collapsed:ee,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&ae(!0)},children:[pe,e.jsx(j,{className:ee?"hisd3-collapsed":void 0,children:e.jsx(t.Menu,{mode:"inline",theme:"light",inlineCollapsed:ee,items:re,selectedKeys:se,openKeys:ee?void 0:ie,onOpenChange:e=>ne(e)})}),!Z&&e.jsx(Q,{account:a,avatarSrc:h,settingsUrl:g,onLogout:p,collapsed:ee,placement:"topRight",extraItems:y})]}),e.jsxs(S,{$scroll:J,children:[!Y&&e.jsxs(z,{children:["header"===le&&e.jsx(T,{type:"button","aria-label":de,onClick:()=>ae(!ee),children:ee?e.jsx(i.MenuUnfoldOutlined,{}):e.jsx(i.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),f]}),ce]}),"edge"===le&&e.jsx(B,{type:"button","aria-label":de,title:de,$left:ee?k:P,$top:O,onClick:()=>ae(!ee),children:ee?e.jsx(i.RightOutlined,{}):e.jsx(i.LeftOutlined,{})})]})})});return X&&!x?_?e.jsx(t.ConfigProvider,{theme:_,children:he}):he:e.jsx(o.ThemeProvider,{theme:x??{},children:_?e.jsx(t.ConfigProvider,{theme:_,children:he}):he})},exports.HISD3Table=function({pagination:r,footer:o,...n}){const a=r||void 0,s=a?.pageSizeOptions??[10,20,50];return e.jsxs(Oe,{children:[e.jsx(t.Table,{...n,pagination:!1}),o&&e.jsx(Pe,{children:o}),a&&e.jsxs($e,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??qe)(a.total,[(a.current-1)*a.pageSize+1,Math.min(a.current*a.pageSize,a.total)])}),e.jsx(t.Pagination,{current:a.current,pageSize:a.pageSize,total:a.total,showSizeChanger:!1,onChange:(e,t)=>a.onChange(e,t),itemRender:(t,r,o)=>"prev"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.LeftOutlined,{})}):"next"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.RightOutlined,{})}):o}),!a.hidePageSize&&e.jsx(Ge,{role:"group","aria-label":"Rows per page",children:s.map((t=>e.jsxs("button",{type:"button","aria-pressed":t===a.pageSize,onClick:()=>a.onChange(1,t),children:[t," / page"]},t)))})]})]})},exports.HISD3Tabs=({items:t,...r})=>e.jsx(Qe,{...r,items:t.map((({count:t,label:r,...o})=>({...o,label:e.jsxs(e.Fragment,{children:[r,void 0!==t&&e.jsx("span",{className:"hisd3-tab-count",children:t})]})})))}),exports.HISD3Tag=({variant:t="neutral",tone:r=("neutral"===t?"default":"primary"),children:o,...i})=>e.jsx(Ye,{$variant:t,$tone:r,...i,children:o}),exports.HISD3_BORDER_PRESETS=d,exports.HISD3_COLORS=m,exports.HISD3_FONT_FAMILY=p,exports.HISD3_FONT_WEIGHT_BODY=400,exports.HISD3_FONT_WEIGHT_HEADING=800,exports.HISD3_LAYOUT=a,exports.HISD3_LOGO_SRC=_,exports.HISD3_NEUTRALS=l,exports.HISD3_PRESETS=s,exports.HeaderIconButton=we,exports.UserMenu=Q,exports.borderVarsCss=(e="hairline",t)=>u({borders:e,lineWidth:t}),exports.createHisd3Theme=g,exports.getInitials=Me,exports.hisd3AntdTheme=b,exports.hisd3VarsCss=u,exports.resolvePrimary=c,exports.shade=h,exports.tint=x,exports.useDialog=function(t){const o=r.useContext(Xe);if(!o)throw new Error("useDialog needs DialogProvider above it.");return r.useCallback(((r,i)=>{const n=_e+=1;o.mount(n,e.jsx(et,{Component:t,props:r,onClose:i,unmount:()=>o.unmount(n)},n))}),[t,o])},exports.useInsideHISD3Provider=v;
1393
+ `,Xe={small:"hisd3-search-sm",middle:"",large:"hisd3-search-lg"},_e=r.forwardRef((({size:t,compact:r,className:o,...n},a)=>e.jsx(Je,{ref:a,allowClear:!0,prefix:e.jsx(i.SearchOutlined,{}),className:[Xe[t??(r?"small":"middle")],o??""].join(" ").trim(),...n})));_e.displayName="HISD3SearchInput";const et=o(t.Form.Item)`
1394
+ &.ant-form-item {
1395
+ margin-bottom: 6px;
1396
+ }
1397
+
1398
+ /* vertical: sit the label close to its control */
1399
+ &.ant-form-item-vertical .ant-form-item-label {
1400
+ padding-bottom: 2px;
1401
+ }
1402
+
1403
+ &.hisd3-form-field-bold .ant-form-item-label > label {
1404
+ font-weight: 600;
1405
+ }
1406
+
1407
+ /* pickers and number inputs fill the column like text inputs do */
1408
+ .ant-picker,
1409
+ .ant-input-number,
1410
+ .ant-input-number-group-wrapper {
1411
+ width: 100%;
1412
+ }
1413
+ `,tt=({node:t})=>e.jsx(e.Fragment,{children:t}),rt=({loading:r,loadingProps:o,vertical:i,bolderLabel:n,controlSize:a,skeleton:s,layout:l,className:d,children:p,...c})=>e.jsx(et,{...c,layout:i?"vertical":l,className:["hisd3-form-field",n?"hisd3-form-field-bold":"",d??""].join(" ").trim(),children:r?e.jsx(tt,{node:s??e.jsx(t.Skeleton.Input,{active:!0,block:!0,size:a,...o})}):p}),ot=r=>e.jsx(t.Skeleton.Button,{active:!0,size:"small",style:{width:r,minWidth:r}}),it=r.forwardRef((({fieldProps:t,propsinput:r,...o},i)=>{const n={...r,...t};return e.jsx(rt,{...o,controlSize:n.size,children:e.jsx(Ze,{...n,ref:i})})}));it.displayName="HISD3FormInput";const nt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.Input.Password,{...r,ref:i})})));nt.displayName="HISD3FormPassword";const at=r.forwardRef((({fieldProps:r,loadingProps:o,...i},n)=>e.jsx(rt,{...i,controlSize:r?.size,loadingProps:{...o,style:{height:22*(r?.rows??3)+10,...o?.style}},children:e.jsx(t.Input.TextArea,{...r,ref:n})})));at.displayName="HISD3FormTextArea";const st=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.InputNumber,{...r,ref:i})})));st.displayName="HISD3FormInputNumber";const lt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.Select,{...r,ref:i})})));lt.displayName="HISD3FormSelect";const dt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.Radio.Group,{...r,ref:i})})));dt.displayName="HISD3FormRadioGroup";const pt=r.forwardRef((({fieldProps:r,text:o,...i},n)=>e.jsx(rt,{valuePropName:"checked",skeleton:ot(120),...i,children:e.jsx(t.Checkbox,{...r,ref:n,children:o??r?.children})})));pt.displayName="HISD3FormCheckbox";const ct=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,children:e.jsx(t.Checkbox.Group,{...r,ref:i})})));ct.displayName="HISD3FormCheckboxGroup";const ht=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{valuePropName:"checked",skeleton:ot("small"===r?.size?28:44),...o,children:e.jsx(t.Switch,{...r,ref:i})})));ht.displayName="HISD3FormSwitch";const xt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.DatePicker,{...r,ref:i})})));xt.displayName="HISD3FormDatePicker";const gt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.DatePicker.RangePicker,{...r,ref:i})})));gt.displayName="HISD3FormRangePicker";const ut=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.TimePicker,{...r,ref:i})})));ut.displayName="HISD3FormTimePicker";const mt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.TimePicker.RangePicker,{...r,ref:i})})));mt.displayName="HISD3FormTimeRangePicker";const bt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.Input.Search,{...r,ref:i})})));bt.displayName="HISD3FormSearch";const ft=r.forwardRef((({fieldProps:r,loadingProps:o,...i},n)=>e.jsx(rt,{...i,controlSize:r?.size,loadingProps:{block:!1,...o,style:{width:48*(r?.length??6),...o?.style}},children:e.jsx(t.Input.OTP,{...r,ref:n})})));ft.displayName="HISD3FormOTP";const yt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.AutoComplete,{...r,ref:i})})));yt.displayName="HISD3FormAutoComplete";const vt=r.forwardRef((({fieldProps:r,loadingProps:o,...i},n)=>e.jsx(rt,{...i,controlSize:r?.size,loadingProps:{...o,style:{height:22*(r?.rows??1)+18,...o?.style}},children:e.jsx(t.Mentions,{...r,ref:n})})));vt.displayName="HISD3FormMentions";const wt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.Cascader,{...r,ref:i})})));wt.displayName="HISD3FormCascader";const St=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:r?.size,children:e.jsx(t.TreeSelect,{...r,ref:i})})));St.displayName="HISD3FormTreeSelect";const Dt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,skeleton:ot(200),children:e.jsx(t.Segmented,{...r,options:r?.options??[],ref:i})})));Dt.displayName="HISD3FormSegmented";const At=r.forwardRef((({fieldProps:r,loadingProps:o,...i},n)=>e.jsx(rt,{valuePropName:"targetKeys",loadingProps:{...o,style:{height:200,...o?.style}},...i,children:e.jsx(t.Transfer,{...r,ref:n})})));At.displayName="HISD3FormTransfer";const kt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,controlSize:"small",children:e.jsx(t.Slider,{...r,ref:i})})));kt.displayName="HISD3FormSlider";const jt=r.forwardRef((({fieldProps:r,...o},i)=>e.jsx(rt,{...o,skeleton:ot(28*(r?.count??5)),children:e.jsx(t.Rate,{...r,ref:i})})));jt.displayName="HISD3FormRate";const It=({fieldProps:r,...o})=>e.jsx(rt,{getValueFromEvent:(e,t)=>t,skeleton:e.jsx(t.Skeleton.Button,{active:!0,shape:"square"}),...o,children:e.jsx(t.ColorPicker,{...r})});It.displayName="HISD3FormColorPicker";const Et=e=>Array.isArray(e)?e:e?.fileList??[],Ct=({fieldProps:r,children:o,...i})=>e.jsx(rt,{valuePropName:"fileList",getValueFromEvent:Et,skeleton:e.jsx(t.Skeleton.Button,{active:!0}),...i,children:e.jsx(t.Upload,{...r,children:o??r?.children})});Ct.displayName="HISD3FormUpload";const zt=({fieldProps:r,children:o,loadingProps:i,...n})=>e.jsx(rt,{valuePropName:"fileList",getValueFromEvent:Et,loadingProps:{...i,style:{height:150,...i?.style}},...n,children:e.jsx(t.Upload.Dragger,{...r,children:o??r?.children})});zt.displayName="HISD3FormUploadDragger";const Ft=r.createContext(null);let Tt=0;function Bt({Component:t,props:o,onClose:i,unmount:n}){const[a,s]=r.useState(!0),l=r.useRef(!1),d={...o,open:a,hide:r.useCallback((e=>{l.current||(l.current=!0,s(!1),i?.(e),window.setTimeout(n,320))}),[i,n])};return e.jsx(t,{...d})}var Rt,Nt,Ht,Lt,Pt,Mt,Ut,Ot,Gt,$t,qt,Qt,Kt;exports.ThemeStyle=void 0,(Rt=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Rt.STANDARD="standard",exports.ThemeStyleRadius=void 0,(Nt=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",Nt.STANDARD="16px",exports.ThemeMode=void 0,(Ht=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Ht.SEMI_DARK="semi-dark",Ht.DARK="dark",exports.LayoutType=void 0,(Lt=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",Lt.BOXED="boxed",Lt.FRAMED="framed",exports.MenuStyle=void 0,(Pt=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",Pt.STANDARD="standard",Pt.ROUNDED="rounded",Pt.ROUNDED_REVERSE="rounded-reverse",Pt.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(Mt=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",Mt.MINI="mini",Mt.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",Mt.STANDARD="standard",Mt.HEADER_USER="user-header",Mt.HEADER_USER_MINI="user-mini-header",Mt.DRAWER="drawer",Mt.BIT_BUCKET="bit-bucket",Mt.H_DEFAULT="h-default",Mt.HOR_HEADER_FIXED="hor-header-fixed",Mt.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(Ut=exports.FooterType||(exports.FooterType={})).FIXED="fixed",Ut.FLUID="fluid",exports.LayoutDirection=void 0,(Ot=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",Ot.LTR="ltr",exports.HeaderType=void 0,(Gt=exports.HeaderType||(exports.HeaderType={})).DARK="dark",Gt.LIGHT="light",exports.RouteTransition=void 0,($t=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",$t.FADE="fade",$t.SLIDE_LEFT="slideLeft",$t.SLIDE_RIGHT="slideRight",$t.SLIDE_UP="slideUp",$t.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(qt=exports.Fonts||(exports.Fonts={})).LIGHT="300",qt.REGULAR="400",qt.MEDIUM="500",qt.BOLD="600",exports.AuthType=void 0,(Qt=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",Qt.AWS_COGNITO="aws_cognito",Qt.AUTH0="auth0",Qt.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(Kt=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",Kt.SLIDEUPOUT="transition.slideUpOut",Kt.SLIDEDOWNIN="transition.slideDownIn",Kt.SLIDEDOWNOUT="transition.slideDownOut",Kt.SLIDELEFTIN="transition.slideLeftIn",Kt.SLIDELEFTOUT="transition.slideLeftOut",Kt.SLIDERIGHTIN="transition.slideRightIn",Kt.SLIDERIGHTOUT="transition.slideRightOut",Kt.FADEIN="transition.fadeIn",Kt.FADEOUT="transition.fadeOut";var Wt,Vt;exports.MessageType=void 0,(Wt=exports.MessageType||(exports.MessageType={}))[Wt.MEDIA=1]="MEDIA",Wt[Wt.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(Vt=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",Vt.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:t}){const[o,i]=r.useState([]),n=r.useMemo((()=>({mount:(e,t)=>i((r=>[...r.filter((t=>t.id!==e)),{id:e,node:t}])),unmount:e=>i((t=>t.filter((t=>t.id!==e))))})),[]);return e.jsxs(Ft.Provider,{value:n,children:[t,o.map((t=>e.jsx(r.Fragment,{children:t.node},t.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:x=!1,className:g})=>{const{modal:u}=t.App.useApp(),[m,b]=r.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?u.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(t.Dropdown,{open:m,onOpenChange:b,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>b(!1)},popupRender:t=>e.jsxs(He,{children:[e.jsxs(Re,{children:[e.jsx(Ne,{$src:n,children:!n&&Le(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})]})]}),t]}),children:e.jsxs(Te,{type:"button",className:g,$shape:c,$size:h,$open:m,"aria-label":`Account menu for ${o.fullName}`,children:[n?e.jsx("img",{src:n,alt:""}):Le(o.fullName),!x&&e.jsx(Be,{$size:h,$open:m,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=re,exports.HISD3FormAutoComplete=yt,exports.HISD3FormCascader=wt,exports.HISD3FormCheckbox=pt,exports.HISD3FormCheckboxGroup=ct,exports.HISD3FormColorPicker=It,exports.HISD3FormDatePicker=xt,exports.HISD3FormField=rt,exports.HISD3FormInput=it,exports.HISD3FormInputNumber=st,exports.HISD3FormMentions=vt,exports.HISD3FormOTP=ft,exports.HISD3FormPassword=nt,exports.HISD3FormRadioGroup=dt,exports.HISD3FormRangePicker=gt,exports.HISD3FormRate=jt,exports.HISD3FormSearch=bt,exports.HISD3FormSegmented=Dt,exports.HISD3FormSelect=lt,exports.HISD3FormSlider=kt,exports.HISD3FormSwitch=ht,exports.HISD3FormTextArea=at,exports.HISD3FormTimePicker=ut,exports.HISD3FormTimeRangePicker=mt,exports.HISD3FormTransfer=At,exports.HISD3FormTreeSelect=St,exports.HISD3FormUpload=Ct,exports.HISD3FormUploadDragger=zt,exports.HISD3HeaderActions=({children:t,divided:o=!1,className:i})=>{const n=r.Children.toArray(t).filter(Boolean);return e.jsx(Pe,{className:i,children:n.map(((t,i)=>e.jsxs(r.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(Me,{}),t]},i)))})},exports.HISD3Input=Ze,exports.HISD3LoginPage=({appName:o,tagline:n,logoSrc:a=_,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:x="soft",side:g="right",identifierLabel:u="User ID or email",identifierPlaceholder:m="Email or user ID",passwordLabel:b="Password",passwordPlaceholder:f="Enter password",submitLabel:y="Sign in",hideRemember:v=!1,rememberLabel:w="Remember me",onForgotPassword:S,forgotLabel:D="Forgot password?",error:A,loading:k=!1,onSubmit:j,footer:I,className:E})=>{const[C,z]=r.useState(""),[F,T]=r.useState(""),[B,R]=r.useState(!1),[N,H]=r.useState(!1);return e.jsxs(ae,{className:E,$side:g,children:[e.jsx(he,{$variant:x,$side:g,"aria-hidden":!0}),e.jsxs(se,{$variant:x,$side:g,children:[c?e.jsx(de,{$src:c,"aria-hidden":!0}):e.jsx(pe,{"aria-hidden":!0}),e.jsxs(ce,{$side:g,"aria-hidden":!0,children:[e.jsx("img",{src:_,alt:""}),h]}),e.jsxs(le,{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(xe,{$variant:x,$side:g,onSubmit:e=>{e.preventDefault(),k||j({identifier:C,password:F,remember:B})},noValidate:!0,children:[e.jsxs(ge,{$variant:x,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(ue,{$variant:x,children:s}),l&&e.jsx(me,{children:l}),A&&e.jsx(ye,{role:"alert",children:A}),e.jsxs(be,{$variant:x,children:[e.jsx("span",{className:"hisd3-field-label",children:u}),e.jsx("span",{className:"hisd3-field-control",children:e.jsx("input",{value:C,onChange:e=>z(e.target.value),placeholder:m,autoComplete:"username",disabled:k,autoFocus:!0})})]}),e.jsxs(be,{$variant:x,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:F,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:()=>H((e=>!e)),tabIndex:-1,children:N?e.jsx(i.EyeInvisibleOutlined,{}):e.jsx(i.EyeOutlined,{})})]})]}),(!v||S)&&e.jsxs(fe,{children:[v?e.jsx("span",{}):e.jsxs("label",{className:"hisd3-remember",children:[e.jsx(t.Switch,{size:"small",checked:B,onChange:R,disabled:k}),w]}),S&&e.jsx("button",{type:"button",className:"hisd3-forgot",onClick:S,children:D})]}),e.jsx(re,{variant:"primary",htmlType:"submit",size:"large",loading:k,block:!0,style:{borderRadius:"soft"===x?10:0,height:50},children:y}),I&&e.jsx(ve,{children:I})]})]})},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:x=40,icon:g,className:u})=>{const[m,b]=r.useState(!1),f=n??o.filter((e=>e.unread)).length,y=e.jsxs(De,{children:[e.jsxs(Ae,{children:[e.jsx("h4",{children:s}),l&&f>0&&e.jsx("button",{type:"button",onClick:l,children:"Mark all as read"})]}),a?e.jsx(Fe,{style:{textAlign:"center"},children:e.jsx(t.Spin,{})}):0===o.length?e.jsx(Fe,{children:e.jsx(t.Empty,{image:t.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(ke,{children:o.map((t=>e.jsxs(je,{type:"button",$unread:t.unread,onClick:()=>{t.onClick?.(t),b(!1),h?.(!1)},children:[e.jsx(Ie,{$src:t.avatarSrc,children:!t.avatarSrc&&(t.icon??e.jsx(i.BellFilled,{}))}),e.jsxs(Ee,{children:[e.jsx("strong",{children:t.title}),t.description&&e.jsx("span",{children:t.description}),t.time&&e.jsx("time",{children:t.time})]}),t.unread&&e.jsx(Ce,{})]},t.id)))}),d&&e.jsx(ze,{type:"button",onClick:()=>{d(),b(!1),h?.(!1)},children:p})]});return e.jsx(t.Dropdown,{open:m,onOpenChange:e=>{b(e),h?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>y,children:e.jsxs(we,{type:"button",$size:x,$open:m,className:u,"aria-label":`${s}${f?` (${f} unread)`:""}`,children:[g??e.jsx(i.BellFilled,{}),f>0&&e.jsx(Se,{$size:x,children:f>99?"99+":f})]})})},exports.HISD3PageBody=X,exports.HISD3PageHeader=({title:r,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:s=!1,className:l})=>e.jsxs(V,{className:l,children:[!s&&e.jsxs(Y,{children:[a,i&&i.length>0&&e.jsx(t.Breadcrumb,{items:i.map((t=>({title:t.href?e.jsx("a",{href:t.href,children:t.title}):t.title,onClick:t.onClick})))}),!i?.length&&e.jsx("span",{style:{flex:1}}),n&&e.jsx(Z,{children:n})]}),e.jsxs(J,{children:[e.jsx("h1",{children:r}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:i,radius:n,borders:a="hairline",lineWidth:s,overrides:l,theme:d,styledTheme:p={},children:c})=>{const h=r.useMemo((()=>d??g({primary:i,radius:n,borders:a,lineWidth:s,overrides:l})),[d,i,n,a,s,l]),x=r.useMemo((()=>u({primary:i,borders:a,lineWidth:s,radius:n})),[i,a,s,n]);return e.jsxs(f.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),e.jsx(t.ConfigProvider,{theme:h,children:e.jsx(o.ThemeProvider,{theme:p,children:e.jsx(t.App,{component:!1,children:c})})})]})},exports.HISD3SearchInput=_e,exports.HISD3Sidebar=({children:n,account:a,logoUrl:s,appName:l,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:x,settingsUrl:g,antdTheme:u,renderMenuLink:b=q,headerExtra:f,userMenuItems:v,onCollapse:w,collapsed:R=!1,loading:N=!1,hideSidebar:H=!1,layoutTop:L=!1,hideCollapseTrigger:P=!1,collapseTrigger:M="edge",collapseTriggerOffset:U=Math.round(A/2),siderWidth:O=S,bareContent:W=!1,hideHeaderBar:V=!1,brandHref:Y="/",hideAccountCard:Z=!1,scrollContent:J=!0})=>{const X=y(),_=void 0===u?X?null:m:u,[ee,te]=r.useState(R);r.useEffect((()=>{te(R)}),[R]);const re=r.useMemo((()=>$(d,b)),[d,b]),oe=r.useMemo((()=>((e,t)=>{let r;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=G(e,n);if(e.path&&t.startsWith(e.path)){const o=t===e.path,n=e.path.length+(o?1:0);(!r||n>r.length)&&(r={key:a,parents:i,length:n})}e.children?.length&&o(e.children,[...i,a])}))};return o(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(d,c)),[d,c]),[ie,ne]=r.useState((()=>oe.openKeys));r.useEffect((()=>{ne((e=>Array.from(new Set([...e,...oe.openKeys]))))}),[oe.openKeys.join("|")]);const ae=e=>{te(e),w?.(e)},se=oe.selectedKey?[oe.selectedKey]:[],le=P?"none":M,de=ee?"Expand menu":"Collapse menu",pe=e.jsxs(E,{href:Y,$collapsed:!L&&ee,children:[s?e.jsx("img",{src:s,alt:l}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(L||!ee)&&e.jsx("h1",{children:l})]}),ce=W?n:e.jsx(B,{children:n});if("undefined"==typeof document)return null;const he=e.jsx(t.App,{component:!1,children:e.jsx(t.Spin,{spinning:N,size:"large",children:H?e.jsx(e.Fragment,{children:n}):L?e.jsxs(k,{$appShell:J,children:[e.jsxs(C,{children:[pe,e.jsx(t.Menu,{mode:"horizontal",items:re,selectedKeys:se}),f,!Z&&e.jsx(Q,{account:a,avatarSrc:h,settingsUrl:g,onLogout:p,placement:"bottomRight",extraItems:v})]}),e.jsx(j,{$scroll:J,children:ce})]}):e.jsxs(k,{hasSider:!0,$appShell:J,children:[e.jsxs(K,{className:"hisd3-sider",width:O,collapsedWidth:D,collapsible:!0,collapsed:ee,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&ae(!0)},children:[pe,e.jsx(I,{className:ee?"hisd3-collapsed":void 0,children:e.jsx(t.Menu,{mode:"inline",theme:"light",inlineCollapsed:ee,items:re,selectedKeys:se,openKeys:ee?void 0:ie,onOpenChange:e=>ne(e)})}),!Z&&e.jsx(Q,{account:a,avatarSrc:h,settingsUrl:g,onLogout:p,collapsed:ee,placement:"topRight",extraItems:v})]}),e.jsxs(j,{$scroll:J,children:[!V&&e.jsxs(z,{children:["header"===le&&e.jsx(F,{type:"button","aria-label":de,onClick:()=>ae(!ee),children:ee?e.jsx(i.MenuUnfoldOutlined,{}):e.jsx(i.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),f]}),ce]}),"edge"===le&&e.jsx(T,{type:"button","aria-label":de,title:de,$left:ee?D:O,$top:U,onClick:()=>ae(!ee),children:ee?e.jsx(i.RightOutlined,{}):e.jsx(i.LeftOutlined,{})})]})})});return X&&!x?_?e.jsx(t.ConfigProvider,{theme:_,children:he}):he:e.jsx(o.ThemeProvider,{theme:x??{},children:_?e.jsx(t.ConfigProvider,{theme:_,children:he}):he})},exports.HISD3Table=function({pagination:r,footer:o,...n}){const a=r||void 0,s=a?.pageSizeOptions??[10,20,50];return e.jsxs(Ue,{children:[e.jsx(t.Table,{...n,pagination:!1}),o&&e.jsx(Oe,{children:o}),a&&e.jsxs(Ge,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??qe)(a.total,[(a.current-1)*a.pageSize+1,Math.min(a.current*a.pageSize,a.total)])}),e.jsx(t.Pagination,{current:a.current,pageSize:a.pageSize,total:a.total,showSizeChanger:!1,onChange:(e,t)=>a.onChange(e,t),itemRender:(t,r,o)=>"prev"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.LeftOutlined,{})}):"next"===r?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((t=>e.jsxs("button",{type:"button","aria-pressed":t===a.pageSize,onClick:()=>a.onChange(1,t),children:[t," / page"]},t)))})]})]})},exports.HISD3Tabs=({items:t,...r})=>e.jsx(Qe,{...r,items:t.map((({count:t,label:r,...o})=>({...o,label:e.jsxs(e.Fragment,{children:[r,void 0!==t&&e.jsx("span",{className:"hisd3-tab-count",children:t})]})})))}),exports.HISD3Tag=({variant:t="neutral",tone:r=("neutral"===t?"default":"primary"),children:o,...i})=>e.jsx(Ve,{$variant:t,$tone:r,...i,children:o}),exports.HISD3_BORDER_PRESETS=d,exports.HISD3_COLORS=b,exports.HISD3_FONT_FAMILY=p,exports.HISD3_FONT_WEIGHT_BODY=400,exports.HISD3_FONT_WEIGHT_HEADING=800,exports.HISD3_LAYOUT=a,exports.HISD3_LOGO_SRC=_,exports.HISD3_NEUTRALS=l,exports.HISD3_PRESETS=s,exports.HeaderIconButton=we,exports.UserMenu=Q,exports.borderVarsCss=(e="hairline",t)=>u({borders:e,lineWidth:t}),exports.createHisd3Theme=g,exports.getInitials=Le,exports.hisd3AntdTheme=m,exports.hisd3VarsCss=u,exports.normalizeUploadFileList=Et,exports.resolvePrimary=c,exports.shade=h,exports.tint=x,exports.useDialog=function(t){const o=r.useContext(Ft);if(!o)throw new Error("useDialog needs DialogProvider above it.");return r.useCallback(((r,i)=>{const n=Tt+=1;o.mount(n,e.jsx(Bt,{Component:t,props:r,onClose:i,unmount:()=>o.unmount(n)},n))}),[t,o])},exports.useInsideHISD3Provider=y;
1394
1414
  //# sourceMappingURL=index.cjs.js.map