hisd3-ui-kit 4.4.0 → 4.4.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/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},l={brand:"#E5533B",brandBlue:"#1B6FE0",red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},s={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")=>l[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),n=i>>8&255,a=255&i,l=e=>Math.round(e+(255-e)*t);return`#${[l(i>>16&255),l(n),l(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},x=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:i}={})=>{const n=c(e),l=d[r]??d.hairline,x=o??l.width,g={...s,border:l.border,borderSecondary:l.borderSecondary},u={cssVar:{key:"hisd3"},token:{colorPrimary:n,colorInfo:n,colorLink:n,colorPrimaryBg:h(n,.92),colorPrimaryBgHover:h(n,.86),colorPrimaryBorder:h(n,.6),fontFamily:p,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:x,colorBgLayout:g.bgLayout,colorBgContainer:g.bgContainer,colorBgElevated:g.bgElevated,colorText:g.text,colorTextSecondary:g.textSecondary,colorTextTertiary:g.textTertiary,colorTextHeading:g.text,colorBorder:g.border,colorBorderSecondary:g.borderSecondary,colorSplit:g.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:g.bgLayout,headerBg:g.bgLayout,bodyBg:g.bgLayout,headerPadding:`0 ${a.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:g.text,itemHoverColor:g.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:h(n,.9),itemSelectedColor:n,itemActiveBg:h(n,.86),subMenuItemSelectedColor:n,groupTitleColor:g.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:g.border,defaultColor:g.text,defaultBg:g.bgLayout,defaultHoverBg:g.white,defaultHoverBorderColor:g.borderStrong,defaultHoverColor:g.text,defaultActiveBorderColor:g.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:g.border,hoverBorderColor:g.borderStrong,activeBorderColor:g.borderStrong,paddingInline:16},Select:{optionSelectedBg:h(n,.9),colorBorder:g.border},Table:{headerBg:"transparent",headerColor:g.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:g.borderSecondary,rowHoverBg:"rgba(0,0,0,0.03)",cellPaddingBlock:10,cellPaddingInline:12,cellFontSize:14,cellPaddingBlockMD:8,cellPaddingInlineMD:10,cellPaddingBlockSM:6,cellPaddingInlineSM:8,cellFontSizeMD:14,cellFontSizeSM:13,footerBg:"transparent"},Tabs:{inkBarColor:n,itemColor:g.text,itemSelectedColor:n,itemHoverColor:n,titleFontSize:15,horizontalItemGutter:32,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:g.bgLayout,itemActiveBg:n,itemSize:32,itemSizeSM:26,itemInputBg:g.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:g.textTertiary,lastItemColor:g.text,linkColor:g.textTertiary,linkHoverColor:n,separatorColor:g.textTertiary},Card:{headerFontSize:20}}};return i?{...u,...i,token:{...u.token,...i.token},components:{...u.components,...i.components}}:u},g=({primary:e,borders:t="hairline",lineWidth:r,radius:o=0}={})=>{const i=c(e),n=d[t]??d.hairline,a=s;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:${h(i,.92)};`,`--ant-color-primary-bg-hover:${h(i,.86)};`,`--ant-color-primary-border:${h(i,.6)};`,`--ant-color-error:${i===l.red?i:"#E5401C"};`,`--ant-color-text:${a.text};`,`--ant-color-text-secondary:${a.textSecondary};`,`--ant-color-text-tertiary:${a.textTertiary};`,`--ant-color-border:${n.border};`,`--ant-color-border-secondary:${n.borderSecondary};`,`--ant-color-bg-layout:${a.bgLayout};`,`--ant-color-bg-elevated:${a.bgElevated};`,"}"].join("")},u=x(),b={primary:l.red,primaryLight:h(l.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},m=r.createContext(!1),f=()=>r.useContext(m),{Header:y,Content:v}=t.Layout,w=a.siderWidth,A=a.siderCollapsedWidth,k=a.topBarHeight,S=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),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("")}`},x=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:i}={})=>{const n=c(e),s=d[r]??d.hairline,x=o??s.width,g={...l,border:s.border,borderSecondary:s.borderSecondary},u={cssVar:{key:"hisd3"},token:{colorPrimary:n,colorInfo:n,colorLink:n,colorPrimaryBg:h(n,.92),colorPrimaryBgHover:h(n,.86),colorPrimaryBorder:h(n,.6),fontFamily:p,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:x,colorBgLayout:g.bgLayout,colorBgContainer:g.bgContainer,colorBgElevated:g.bgElevated,colorText:g.text,colorTextSecondary:g.textSecondary,colorTextTertiary:g.textTertiary,colorTextHeading:g.text,colorBorder:g.border,colorBorderSecondary:g.borderSecondary,colorSplit:g.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:g.bgLayout,headerBg:g.bgLayout,bodyBg:g.bgLayout,headerPadding:`0 ${a.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:g.text,itemHoverColor:g.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:h(n,.9),itemSelectedColor:n,itemActiveBg:h(n,.86),subMenuItemSelectedColor:n,groupTitleColor:g.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:g.border,defaultColor:g.text,defaultBg:g.bgLayout,defaultHoverBg:g.white,defaultHoverBorderColor:g.borderStrong,defaultHoverColor:g.text,defaultActiveBorderColor:g.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:g.border,hoverBorderColor:g.borderStrong,activeBorderColor:g.borderStrong,paddingInline:16},Select:{optionSelectedBg:h(n,.9),colorBorder:g.border},Table:{headerBg:"transparent",headerColor:g.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:g.borderSecondary,rowHoverBg:"rgba(0,0,0,0.03)",cellPaddingBlock:10,cellPaddingInline:12,cellFontSize:14,cellPaddingBlockMD:8,cellPaddingInlineMD:10,cellPaddingBlockSM:6,cellPaddingInlineSM:8,cellFontSizeMD:14,cellFontSizeSM:13,footerBg:"transparent"},Tabs:{inkBarColor:n,itemColor:g.text,itemSelectedColor:n,itemHoverColor:n,titleFontSize:15,horizontalItemGutter:32,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:g.bgLayout,itemActiveBg:n,itemSize:32,itemSizeSM:26,itemInputBg:g.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:g.textTertiary,lastItemColor:g.text,linkColor:g.textTertiary,linkHoverColor:n,separatorColor:g.textTertiary},Card:{headerFontSize:20}}};return i?{...u,...i,token:{...u.token,...i.token},components:{...u.components,...i.components}}:u},g=({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:${h(i,.92)};`,`--ant-color-primary-bg-hover:${h(i,.86)};`,`--ant-color-primary-border:${h(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-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("")},u=x(),b={primary:s.red,primaryLight:h(s.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},m=r.createContext(!1),f=()=>r.useContext(m),{Header:v,Content:y}=t.Layout,w=a.siderWidth,A=a.siderCollapsedWidth,k=a.topBarHeight,D=o(t.Layout)`
2
2
  position: relative; /* anchor for the edge collapse trigger */
3
3
  background: var(--ant-color-bg-layout);
4
4
 
@@ -22,7 +22,7 @@
22
22
  height: ${({$appShell:e})=>e?"100%":"100vh"};
23
23
  overflow: hidden;
24
24
  background: var(--ant-color-bg-layout);
25
- border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
25
+ border-right: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
26
26
 
27
27
  .ant-layout-sider-children {
28
28
  display: flex;
@@ -30,12 +30,12 @@
30
30
  height: 100%;
31
31
  }
32
32
  }
33
- `,j=o(t.Layout)`
33
+ `,E=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
- `,D=o.div`
38
+ `,S=o.div`
39
39
  flex: 1 1 auto;
40
40
  overflow-y: auto;
41
41
  overflow-x: hidden;
@@ -60,7 +60,7 @@
60
60
 
61
61
  .ant-menu-item-group + .ant-menu-item-group > .ant-menu-item-group-title,
62
62
  .ant-menu-item-group + .ant-menu-item-group::before {
63
- border-top: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
63
+ border-top: var(--hisd3-rule-width, 1px) solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
64
64
  margin-top: 10px;
65
65
  padding-top: 20px;
66
66
  }
@@ -111,7 +111,7 @@
111
111
  &.hisd3-collapsed .ant-menu-item-group-title {
112
112
  display: none;
113
113
  }
114
- `,I=o.a`
114
+ `,j=o.a`
115
115
  display: flex;
116
116
  align-items: center;
117
117
  gap: 10px;
@@ -123,7 +123,7 @@
123
123
  overflow: hidden;
124
124
  white-space: nowrap;
125
125
  flex: 0 0 auto;
126
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
126
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
127
127
 
128
128
  .hisd3-brand-mark {
129
129
  width: 28px;
@@ -153,7 +153,7 @@
153
153
  overflow: hidden;
154
154
  text-overflow: ellipsis;
155
155
  }
156
- `,z=o(y)`
156
+ `,C=o(v)`
157
157
  display: flex;
158
158
  align-items: center;
159
159
  gap: 24px;
@@ -165,7 +165,7 @@
165
165
  top: 0;
166
166
  z-index: 100;
167
167
  background: var(--ant-color-bg-layout);
168
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
168
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
169
169
 
170
170
  .ant-menu-horizontal {
171
171
  flex: 1 1 auto;
@@ -176,7 +176,7 @@
176
176
  font-size: 14px;
177
177
  font-weight: 500;
178
178
  }
179
- `,C=o(y)`
179
+ `,I=o(v)`
180
180
  display: flex;
181
181
  align-items: center;
182
182
  gap: 12px;
@@ -188,9 +188,9 @@
188
188
  top: 0;
189
189
  z-index: 99;
190
190
  background: var(--ant-color-bg-layout);
191
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
192
- `,T=o.button`
193
- border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
191
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
192
+ `,z=o.button`
193
+ border: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
194
194
  background: transparent;
195
195
  cursor: pointer;
196
196
  font-size: 14px;
@@ -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,7 +245,7 @@
245
245
  & svg {
246
246
  display: block;
247
247
  }
248
- `,E=o(v)`
248
+ `,B=o(y)`
249
249
  flex: 1 0 auto;
250
250
  padding: 24px ${a.pageGutter}px 40px;
251
251
  `,L=o.div`
@@ -257,7 +257,7 @@
257
257
  transition: all 0.2s ease;
258
258
  padding: ${({$inHeader:e,$collapsed:t})=>e?"0 4px":t?"12px 0":`12px ${a.pageGutter}px`};
259
259
  min-width: ${({$inHeader:e})=>e?"220px":"0"};
260
- border-top: ${({$inHeader:e})=>e?"none":"var(--hisd3-rule-width, 1px) solid var(--ant-color-border)"};
260
+ border-top: ${({$inHeader:e})=>e?"none":"var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE))"};
261
261
 
262
262
  & .ant-dropdown-link {
263
263
  color: inherit;
@@ -323,7 +323,7 @@
323
323
  overflow: hidden;
324
324
  text-overflow: ellipsis;
325
325
  white-space: nowrap;
326
- `,P=(e,t)=>e.key??e.path??`menu-${t}`,G=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=P(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)}})),$=(e,t)=>r.createElement("a",{href:e.path||"/"},t),q=({account:r,avatarSrc:o,settingsUrl:n,onLogout:a,collapsed:l=!1,placement:s="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(L,{className:"cr-user-info-light",$collapsed:l,$inHeader:"bottomRight"===s,children:e.jsx(t.Dropdown,{trigger:["click"],placement:s,menu:{items:c},children:e.jsxs(F,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(R,{$src:o,"aria-hidden":!0,children:!o&&h}),!l&&e.jsxs(N,{children:[e.jsxs(M,{children:[e.jsx(U,{title:r.fullName,children:r.fullName}),e.jsx(H,{children:e.jsx(i.DownOutlined,{})})]}),r.positionType&&e.jsx(O,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:Q}=t.Layout,K=a.pageGutter,W=o.header`
326
+ `,P=(e,t)=>e.key??e.path??`menu-${t}`,$=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=P(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)}})),G=(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(L,{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(F,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(R,{$src:o,"aria-hidden":!0,children:!o&&h}),!s&&e.jsxs(N,{children:[e.jsxs(M,{children:[e.jsx(U,{title:r.fullName,children:r.fullName}),e.jsx(H,{children:e.jsx(i.DownOutlined,{})})]}),r.positionType&&e.jsx(O,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:Q}=t.Layout,K=a.pageGutter,W=o.header`
327
327
  display: contents;
328
328
  `,Y=o.div`
329
329
  user-select: none;
@@ -335,7 +335,7 @@
335
335
  /* never shrink: these are flex items of the scrolling column */
336
336
  flex: 0 0 ${a.topBarHeight}px;
337
337
  padding: 0 ${K}px;
338
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
338
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
339
339
  background: var(--ant-color-bg-layout);
340
340
  position: sticky;
341
341
  top: 0;
@@ -362,7 +362,7 @@
362
362
  flex-wrap: wrap;
363
363
  flex: 0 0 auto;
364
364
  padding: 20px ${K}px 18px;
365
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
365
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
366
366
 
367
367
  h1 {
368
368
  margin: 0;
@@ -430,7 +430,7 @@
430
430
  padding: 32px 24px;
431
431
  background: linear-gradient(
432
432
  180deg,
433
- var(--ant-color-primary-bg) 0%,
433
+ var(--ant-color-primary-bg, #FCEEEB) 0%,
434
434
  #fff 46%
435
435
  );
436
436
  }
@@ -445,14 +445,14 @@
445
445
  align-items: stretch;
446
446
  justify-content: flex-start;
447
447
  padding: 0;
448
- background: var(--ant-color-primary);
448
+ background: var(--ant-color-primary, #E5533B);
449
449
  }
450
450
  `,ae=o.aside`
451
451
  position: absolute;
452
452
  /* the panel takes the side the card does not */
453
453
  inset: ${({$variant:e,$side:t})=>{const r=re(e)?"28px":"0";return"right"===t?`${r} 40% ${r} ${r}`:`${r} ${r} ${r} 40%`}};
454
454
  border-radius: ${({$variant:e})=>re(e)?"28px":"0"};
455
- background: var(--ant-color-primary);
455
+ background: var(--ant-color-primary, #E5533B);
456
456
  overflow: hidden;
457
457
  display: flex;
458
458
  flex-direction: column;
@@ -506,7 +506,7 @@
506
506
  font-size: 14px;
507
507
  }
508
508
  }
509
- `,le=o.div`
509
+ `,se=o.div`
510
510
  display: none;
511
511
 
512
512
  @media (max-width: ${ie}px) {
@@ -544,7 +544,7 @@
544
544
  opacity: 0.75;
545
545
  }
546
546
  }
547
- `,se=o.div`
547
+ `,le=o.div`
548
548
  position: absolute;
549
549
  inset: 0;
550
550
  background: center / cover no-repeat url("${({$src:e})=>e}");
@@ -613,7 +613,7 @@
613
613
  opacity: 0.5;
614
614
  pointer-events: none;
615
615
  border-radius: ${({$variant:e})=>re(e)?"20px":"0"};
616
- background: ${["0 0","100% 0","0 100%","100% 100%"].map((e=>`linear-gradient(var(--ant-color-primary-bg), var(--ant-color-primary-bg)) ${e} / 46% 46% no-repeat`)).join(", ")};
616
+ background: ${["0 0","100% 0","0 100%","100% 100%"].map((e=>`linear-gradient(var(--ant-color-primary-bg, #FCEEEB), var(--ant-color-primary-bg, #FCEEEB)) ${e} / 46% 46% no-repeat`)).join(", ")};
617
617
 
618
618
  @media (max-width: ${oe}px) {
619
619
  display: none;
@@ -632,7 +632,7 @@
632
632
  0 24px 60px rgba(16, 15, 14, 0.14);
633
633
  `:o.css`
634
634
  border-radius: 0;
635
- border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
635
+ border: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
636
636
  box-shadow: 0 2px 4px rgba(16, 15, 14, 0.04),
637
637
  0 18px 44px rgba(16, 15, 14, 0.1);
638
638
  `}
@@ -676,7 +676,7 @@
676
676
  font-weight: ${({$variant:e})=>re(e)?700:"var(--font-weight-heading, 800)"};
677
677
  letter-spacing: ${({$variant:e})=>re(e)?"-0.01em":"0.03em"};
678
678
  text-transform: ${({$variant:e})=>re(e)?"none":"uppercase"};
679
- color: var(--ant-color-text);
679
+ color: var(--ant-color-text, #171717);
680
680
  }
681
681
 
682
682
  .hisd3-login-tagline {
@@ -685,7 +685,7 @@
685
685
  font-size: 9px;
686
686
  letter-spacing: 0.14em;
687
687
  text-transform: uppercase;
688
- color: var(--ant-color-text-tertiary);
688
+ color: var(--ant-color-text-tertiary, #6E6E6E);
689
689
  }
690
690
 
691
691
  @media (max-width: ${ie}px) {
@@ -696,7 +696,7 @@
696
696
  font-family: var(--font-heading);
697
697
  font-size: 26px;
698
698
  font-weight: ${({$variant:e})=>re(e)?700:"var(--font-weight-heading, 800)"};
699
- color: var(--ant-color-text);
699
+ color: var(--ant-color-text, #171717);
700
700
 
701
701
  @media (max-width: ${ie}px) {
702
702
  font-size: 22px;
@@ -704,7 +704,7 @@
704
704
  `,ue=o.p`
705
705
  margin: 0 0 22px;
706
706
  font-size: 14px;
707
- color: var(--ant-color-text-secondary);
707
+ color: var(--ant-color-text-secondary, #4A4A4A);
708
708
  `,be=o.label`
709
709
  display: block;
710
710
  margin-bottom: 16px;
@@ -714,7 +714,7 @@
714
714
  margin-bottom: 7px;
715
715
  font-size: 13px;
716
716
  font-weight: 600;
717
- color: var(--ant-color-text-secondary);
717
+ color: var(--ant-color-text-secondary, #4A4A4A);
718
718
  }
719
719
 
720
720
  .hisd3-field-control {
@@ -729,7 +729,7 @@
729
729
  padding: 0 44px 0 16px;
730
730
  font: inherit;
731
731
  font-size: 15px;
732
- color: var(--ant-color-text);
732
+ color: var(--ant-color-text, #171717);
733
733
  background: ${({$variant:e})=>re(e)?"#F2F3F5":"var(--hisd3-control-bg, #e6e4e1)"};
734
734
  border: ${({$variant:e})=>re(e)?"1px":"var(--hisd3-rule-width, 1px)"}
735
735
  solid transparent;
@@ -738,12 +738,12 @@
738
738
  transition: border-color 0.15s ease, background 0.15s ease;
739
739
 
740
740
  &::placeholder {
741
- color: var(--ant-color-text-tertiary);
741
+ color: var(--ant-color-text-tertiary, #6E6E6E);
742
742
  }
743
743
 
744
744
  &:focus {
745
745
  background: #fff;
746
- border-color: var(--ant-color-primary);
746
+ border-color: var(--ant-color-primary, #E5533B);
747
747
  }
748
748
 
749
749
  &:disabled {
@@ -769,11 +769,11 @@
769
769
  padding: 6px;
770
770
  border: 0;
771
771
  background: none;
772
- color: var(--ant-color-text-tertiary);
772
+ color: var(--ant-color-text-tertiary, #6E6E6E);
773
773
  cursor: pointer;
774
774
 
775
775
  &:hover {
776
- color: var(--ant-color-text);
776
+ color: var(--ant-color-text, #171717);
777
777
  }
778
778
  }
779
779
  `,me=o.div`
@@ -788,7 +788,7 @@
788
788
  display: flex;
789
789
  align-items: center;
790
790
  gap: 10px;
791
- color: var(--ant-color-text);
791
+ color: var(--ant-color-text, #171717);
792
792
  cursor: pointer;
793
793
  user-select: none;
794
794
  }
@@ -799,7 +799,7 @@
799
799
  background: none;
800
800
  font: inherit;
801
801
  font-weight: 500;
802
- color: var(--ant-color-primary);
802
+ color: var(--ant-color-primary, #E5533B);
803
803
  cursor: pointer;
804
804
 
805
805
  &:hover {
@@ -813,12 +813,12 @@
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;
820
- color: var(--ant-color-text-secondary);
821
- `,ve=o.button`
820
+ color: var(--ant-color-text-secondary, #4A4A4A);
821
+ `,ye=o.button`
822
822
  user-select: none;
823
823
  -webkit-user-select: none;
824
824
  position: relative;
@@ -878,7 +878,7 @@
878
878
  max-width: calc(100vw - 32px);
879
879
  overflow: hidden;
880
880
  background: var(--ant-color-bg-elevated);
881
- border: 1px solid var(--ant-color-border-secondary);
881
+ border: 1px solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
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);
@@ -888,7 +888,7 @@
888
888
  justify-content: space-between;
889
889
  gap: 12px;
890
890
  padding: 12px 16px;
891
- border-bottom: 1px solid var(--ant-color-border-secondary);
891
+ border-bottom: 1px solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
892
892
 
893
893
  h4 {
894
894
  margin: 0;
@@ -910,10 +910,10 @@
910
910
  text-decoration: underline;
911
911
  }
912
912
  }
913
- `,Se=o.div`
913
+ `,De=o.div`
914
914
  max-height: 380px;
915
915
  overflow-y: auto;
916
- `,je=o.button`
916
+ `,Ee=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
- `,De=o.span`
931
+ `,Se=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
- `,Ie=o.span`
942
+ `,je=o.span`
943
943
  flex: 1 1 auto;
944
944
  min-width: 0;
945
945
 
@@ -964,14 +964,14 @@
964
964
  font-size: 12px;
965
965
  color: var(--ant-color-text-tertiary);
966
966
  }
967
- `,ze=o.span`
967
+ `,Ce=o.span`
968
968
  width: 8px;
969
969
  height: 8px;
970
970
  margin-top: 6px;
971
971
  flex: 0 0 auto;
972
972
  border-radius: 50%;
973
973
  background: var(--ant-color-primary);
974
- `,Ce=o.button`
974
+ `,Ie=o.button`
975
975
  display: block;
976
976
  width: 100%;
977
977
  padding: 12px 16px;
@@ -982,15 +982,15 @@
982
982
  text-align: center;
983
983
  background: transparent;
984
984
  border: 0;
985
- border-top: 1px solid var(--ant-color-border-secondary);
985
+ border-top: 1px solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
986
986
  cursor: pointer;
987
987
 
988
988
  &:hover {
989
989
  background: rgba(0, 0, 0, 0.04);
990
990
  }
991
- `,Te=o.div`
991
+ `,ze=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
- `,Ee=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;
@@ -1053,7 +1053,7 @@
1053
1053
  gap: 12px;
1054
1054
  padding: 12px 16px;
1055
1055
  min-width: 230px;
1056
- border-bottom: 1px solid var(--ant-color-border-secondary);
1056
+ border-bottom: 1px solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1057
1057
 
1058
1058
  .hisd3-identity-text {
1059
1059
  flex: 1 1 auto;
@@ -1096,7 +1096,7 @@
1096
1096
  `,Re=o.div`
1097
1097
  overflow: hidden;
1098
1098
  background: var(--ant-color-bg-elevated);
1099
- border: 1px solid var(--ant-color-border-secondary);
1099
+ border: 1px solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1100
1100
  border-radius: var(--hisd3-popup-radius, 10px);
1101
1101
  box-shadow: 0 2px 6px rgba(16, 15, 14, 0.06),
1102
1102
  0 12px 32px rgba(16, 15, 14, 0.14);
@@ -1124,7 +1124,7 @@
1124
1124
  `,Ue=o.span`
1125
1125
  width: 2px;
1126
1126
  height: 24px;
1127
- background: var(--ant-color-border-secondary);
1127
+ background: var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1128
1128
  flex: 0 0 auto;
1129
1129
  `,He=o.div`
1130
1130
  .ant-table-wrapper .ant-table {
@@ -1138,17 +1138,17 @@
1138
1138
  text-transform: uppercase;
1139
1139
  color: var(--ant-color-text-tertiary);
1140
1140
  padding-block: 9px;
1141
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
1141
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
1142
1142
  background: transparent;
1143
1143
  }
1144
1144
 
1145
1145
  .ant-table-wrapper .ant-table-tbody > tr > td {
1146
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
1146
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1147
1147
  font-size: 14px;
1148
1148
  }
1149
1149
 
1150
1150
  .ant-table-wrapper .ant-table-tbody > tr:last-child > td {
1151
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
1151
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
1152
1152
  }
1153
1153
 
1154
1154
  .ant-table-wrapper .ant-table-thead > tr > th:first-child,
@@ -1199,7 +1199,7 @@
1199
1199
 
1200
1200
  .ant-pagination {
1201
1201
  display: inline-flex;
1202
- border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
1202
+ border: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
1203
1203
 
1204
1204
  .ant-pagination-item,
1205
1205
  .ant-pagination-prev,
@@ -1211,7 +1211,7 @@
1211
1211
  height: 34px;
1212
1212
  line-height: 34px;
1213
1213
  border: 0;
1214
- border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
1214
+ border-right: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
1215
1215
  border-radius: 0;
1216
1216
  font-weight: 700;
1217
1217
  font-size: 13px;
@@ -1245,15 +1245,15 @@
1245
1245
  font-weight: 700;
1246
1246
  }
1247
1247
  }
1248
- `,Ge=o.div`
1248
+ `,$e=o.div`
1249
1249
  display: inline-flex;
1250
- border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
1250
+ border: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
1251
1251
 
1252
1252
  button {
1253
1253
  height: 34px;
1254
1254
  padding: 0 14px;
1255
1255
  border: 0;
1256
- border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
1256
+ border-right: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
1257
1257
  background: transparent;
1258
1258
  font: inherit;
1259
1259
  font-size: 13px;
@@ -1269,14 +1269,14 @@
1269
1269
  color: #fff;
1270
1270
  }
1271
1271
  }
1272
- `,$e=e=>`Total ${e.toLocaleString()} items`;const qe=o(t.Tabs)`
1272
+ `,Ge=e=>`Total ${e.toLocaleString()} items`;const qe=o(t.Tabs)`
1273
1273
  &.ant-tabs .ant-tabs-nav {
1274
1274
  user-select: none;
1275
1275
  -webkit-user-select: none;
1276
1276
  margin: 0;
1277
1277
 
1278
1278
  &::before {
1279
- border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
1279
+ border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1280
1280
  }
1281
1281
  }
1282
1282
 
@@ -1335,13 +1335,13 @@
1335
1335
  `,Ve=o(Ye)`
1336
1336
  &.ant-input-affix-wrapper {
1337
1337
  background: var(--hisd3-bg-filled, #e6e4e1);
1338
- border-color: var(--ant-color-border-secondary);
1338
+ border-color: var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1339
1339
  height: 72px;
1340
1340
  padding-inline: 24px;
1341
1341
 
1342
1342
  &:hover,
1343
1343
  &:focus-within {
1344
- border-color: var(--ant-color-border);
1344
+ border-color: var(--hisd3-border, var(--ant-color-border, #D9D5CE));
1345
1345
  background: var(--hisd3-bg-filled, #e6e4e1);
1346
1346
  }
1347
1347
 
@@ -1366,5 +1366,5 @@
1366
1366
  font-size: 18px;
1367
1367
  }
1368
1368
  }
1369
- `;var Ze,Je,Xe,_e,et,tt,rt,ot,it,nt,at,lt,st;exports.ThemeStyle=void 0,(Ze=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Ze.STANDARD="standard",exports.ThemeStyleRadius=void 0,(Je=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",Je.STANDARD="16px",exports.ThemeMode=void 0,(Xe=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Xe.SEMI_DARK="semi-dark",Xe.DARK="dark",exports.LayoutType=void 0,(_e=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",_e.BOXED="boxed",_e.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,(tt=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",tt.MINI="mini",tt.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",tt.STANDARD="standard",tt.HEADER_USER="user-header",tt.HEADER_USER_MINI="user-mini-header",tt.DRAWER="drawer",tt.BIT_BUCKET="bit-bucket",tt.H_DEFAULT="h-default",tt.HOR_HEADER_FIXED="hor-header-fixed",tt.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(rt=exports.FooterType||(exports.FooterType={})).FIXED="fixed",rt.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,(lt=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",lt.AWS_COGNITO="aws_cognito",lt.AUTH0="auth0",lt.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(st=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",st.SLIDEUPOUT="transition.slideUpOut",st.SLIDEDOWNIN="transition.slideDownIn",st.SLIDEDOWNOUT="transition.slideDownOut",st.SLIDELEFTIN="transition.slideLeftIn",st.SLIDELEFTOUT="transition.slideLeftOut",st.SLIDERIGHTIN="transition.slideRightIn",st.SLIDERIGHTOUT="transition.slideRightOut",st.FADEIN="transition.fadeIn",st.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.HISD3AvatarMenu=({account:o,avatarSrc:n,settingsUrl:a="/settings",onSettings:l,onLogout:s,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||l?[{key:"settings",icon:e.jsx(i.SettingOutlined,{}),label:"Settings",onClick:()=>{l?l():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:s}):s()}}];return e.jsx(t.Dropdown,{open:b,onOpenChange:m,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>m(!1)},popupRender:t=>e.jsxs(Re,{children:[e.jsxs(Le,{children:[e.jsx(Fe,{$src:n,children:!n&&Ne(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:""}):Ne(o.fullName),!x&&e.jsx(Ee,{$size:h,$open:b,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=te,exports.HISD3HeaderActions=({children:t,divided:o=!1,className:i})=>{const n=r.Children.toArray(t).filter(Boolean);return e.jsx(Me,{className:i,children:n.map(((t,i)=>e.jsxs(r.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(Ue,{}),t]},i)))})},exports.HISD3Input=t=>e.jsx(Ye,{...t}),exports.HISD3LoginPage=({appName:o,tagline:n,logoSrc:a=X,title:l="Nice to see you again",subtitle:s,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:y="Sign in",hideRemember:v=!1,rememberLabel:w="Remember me",onForgotPassword:A,forgotLabel:k="Forgot password?",error:S,loading:j=!1,onSubmit:D,footer:I,className:z})=>{const[C,T]=r.useState(""),[B,E]=r.useState(""),[L,F]=r.useState(!1),[R,N]=r.useState(!1);return e.jsxs(ne,{className:z,$side:g,children:[e.jsx(ce,{$variant:x,$side:g,"aria-hidden":!0}),e.jsxs(ae,{$variant:x,$side:g,children:[c?e.jsx(se,{$src:c,"aria-hidden":!0}):e.jsx(de,{"aria-hidden":!0}),e.jsxs(pe,{$side:g,"aria-hidden":!0,children:[e.jsx("img",{src:X,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(he,{$variant:x,$side:g,onSubmit:e=>{e.preventDefault(),j||D({identifier:C,password:B,remember:L})},noValidate:!0,children:[e.jsxs(xe,{$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(ge,{$variant:x,children:l}),s&&e.jsx(ue,{children:s}),S&&e.jsx(fe,{role:"alert",children:S}),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=>T(e.target.value),placeholder:b,autoComplete:"username",disabled:j,autoFocus:!0})})]}),e.jsxs(be,{$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:B,onChange:e=>E(e.target.value),placeholder:f,autoComplete:"current-password",disabled:j}),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,{})})]})]}),(!v||A)&&e.jsxs(me,{children:[v?e.jsx("span",{}):e.jsxs("label",{className:"hisd3-remember",children:[e.jsx(t.Switch,{size:"small",checked:L,onChange:F,disabled:j}),w]}),A&&e.jsx("button",{type:"button",className:"hisd3-forgot",onClick:A,children:k})]}),e.jsx(te,{variant:"primary",htmlType:"submit",size:"large",loading:j,block:!0,style:{borderRadius:"soft"===x?10:0,height:50},children:y}),I&&e.jsx(ye,{children:I})]})]})},exports.HISD3NotificationButton=({items:o=[],count:n,loading:a=!1,title:l="Notifications",onMarkAllRead:s,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,y=e.jsxs(Ae,{children:[e.jsxs(ke,{children:[e.jsx("h4",{children:l}),s&&f>0&&e.jsx("button",{type:"button",onClick:s,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(Se,{children:o.map((t=>e.jsxs(je,{type:"button",$unread:t.unread,onClick:()=>{t.onClick?.(t),m(!1),h?.(!1)},children:[e.jsx(De,{$src:t.avatarSrc,children:!t.avatarSrc&&(t.icon??e.jsx(i.BellFilled,{}))}),e.jsxs(Ie,{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(ze,{})]},t.id)))}),d&&e.jsx(Ce,{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:()=>y,children:e.jsxs(ve,{type:"button",$size:x,$open:b,className:u,"aria-label":`${l}${f?` (${f} unread)`:""}`,children:[g??e.jsx(i.BellFilled,{}),f>0&&e.jsx(we,{$size:x,children:f>99?"99+":f})]})})},exports.HISD3PageBody=J,exports.HISD3PageHeader=({title:r,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:l=!1,className:s})=>e.jsxs(W,{className:s,children:[!l&&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(V,{children:n})]}),e.jsxs(Z,{children:[e.jsx("h1",{children:r}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:i,radius:n,borders:a="hairline",lineWidth:l,overrides:s,theme:d,styledTheme:p={},children:c})=>{const h=r.useMemo((()=>d??x({primary:i,radius:n,borders:a,lineWidth:l,overrides:s})),[d,i,n,a,l,s]),u=r.useMemo((()=>g({primary:i,borders:a,lineWidth:l,radius:n})),[i,a,l,n]);return e.jsxs(m.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),e.jsx(t.ConfigProvider,{theme:h,children:e.jsx(o.ThemeProvider,{theme:p,children:e.jsx(t.App,{component:!1,children:c})})})]})},exports.HISD3SearchInput=({compact:t=!1,className:r,...o})=>e.jsx(Ve,{allowClear:!0,prefix:e.jsx(i.SearchOutlined,{}),className:[t?"hisd3-search-compact":"",r??""].join(" ").trim(),...o}),exports.HISD3Sidebar=({children:n,account:a,logoUrl:l,appName:s,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:x,settingsUrl:g,antdTheme:b,renderMenuLink:m=$,headerExtra:y,userMenuItems:v,onCollapse:L,collapsed:F=!1,loading:R=!1,hideSidebar:N=!1,layoutTop:M=!1,hideCollapseTrigger:U=!1,collapseTrigger:H="edge",collapseTriggerOffset:O=Math.round(k/2),siderWidth:K=w,bareContent:W=!1,hideHeaderBar:Y=!1,brandHref:V="/",hideAccountCard:Z=!1,scrollContent:J=!0})=>{const X=f(),_=void 0===b?X?null:u:b,[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=P(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),L?.(e)},le=oe.selectedKey?[oe.selectedKey]:[],se=U?"none":H,de=ee?"Expand menu":"Collapse menu",pe=e.jsxs(I,{href:V,$collapsed:!M&&ee,children:[l?e.jsx("img",{src:l,alt:s}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(M||!ee)&&e.jsx("h1",{children:s})]}),ce=W?n:e.jsx(E,{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(S,{$appShell:J,children:[e.jsxs(z,{children:[pe,e.jsx(t.Menu,{mode:"horizontal",items:re,selectedKeys:le}),y,!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(S,{hasSider:!0,$appShell:J,children:[e.jsxs(Q,{className:"hisd3-sider",width:K,collapsedWidth:A,collapsible:!0,collapsed:ee,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&ae(!0)},children:[pe,e.jsx(D,{className:ee?"hisd3-collapsed":void 0,children:e.jsx(t.Menu,{mode:"inline",theme:"light",inlineCollapsed:ee,items:re,selectedKeys:le,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:[!Y&&e.jsxs(C,{children:["header"===se&&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}}),y]}),ce]}),"edge"===se&&e.jsx(B,{type:"button","aria-label":de,title:de,$left:ee?A:K,$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,l=a?.pageSizeOptions??[10,20,50];return e.jsxs(He,{children:[e.jsx(t.Table,{...n,pagination:!1}),o&&e.jsx(Oe,{children:o}),a&&e.jsxs(Pe,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??$e)(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:l.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(We,{$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=X,exports.HISD3_NEUTRALS=s,exports.HISD3_PRESETS=l,exports.HeaderIconButton=ve,exports.UserMenu=q,exports.borderVarsCss=(e="hairline",t)=>g({borders:e,lineWidth:t}),exports.createHisd3Theme=x,exports.getInitials=Ne,exports.hisd3AntdTheme=u,exports.hisd3VarsCss=g,exports.resolvePrimary=c,exports.tint=h,exports.useInsideHISD3Provider=f;
1369
+ `;var Ze,Je,Xe,_e,et,tt,rt,ot,it,nt,at,st,lt;exports.ThemeStyle=void 0,(Ze=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Ze.STANDARD="standard",exports.ThemeStyleRadius=void 0,(Je=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",Je.STANDARD="16px",exports.ThemeMode=void 0,(Xe=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Xe.SEMI_DARK="semi-dark",Xe.DARK="dark",exports.LayoutType=void 0,(_e=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",_e.BOXED="boxed",_e.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,(tt=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",tt.MINI="mini",tt.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",tt.STANDARD="standard",tt.HEADER_USER="user-header",tt.HEADER_USER_MINI="user-mini-header",tt.DRAWER="drawer",tt.BIT_BUCKET="bit-bucket",tt.H_DEFAULT="h-default",tt.HOR_HEADER_FIXED="hor-header-fixed",tt.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(rt=exports.FooterType||(exports.FooterType={})).FIXED="fixed",rt.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.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(Re,{children:[e.jsxs(Le,{children:[e.jsx(Fe,{$src:n,children:!n&&Ne(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:b,"aria-label":`Account menu for ${o.fullName}`,children:[n?e.jsx("img",{src:n,alt:""}):Ne(o.fullName),!x&&e.jsx(Be,{$size:h,$open:b,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=te,exports.HISD3HeaderActions=({children:t,divided:o=!1,className:i})=>{const n=r.Children.toArray(t).filter(Boolean);return e.jsx(Me,{className:i,children:n.map(((t,i)=>e.jsxs(r.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(Ue,{}),t]},i)))})},exports.HISD3Input=t=>e.jsx(Ye,{...t}),exports.HISD3LoginPage=({appName:o,tagline:n,logoSrc:a=X,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(ne,{className:C,$side:g,children:[e.jsx(ce,{$variant:x,$side:g,"aria-hidden":!0}),e.jsxs(ae,{$variant:x,$side:g,children:[c?e.jsx(le,{$src:c,"aria-hidden":!0}):e.jsx(de,{"aria-hidden":!0}),e.jsxs(pe,{$side:g,"aria-hidden":!0,children:[e.jsx("img",{src:X,alt:""}),h]}),e.jsxs(se,{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(he,{$variant:x,$side:g,onSubmit:e=>{e.preventDefault(),E||S({identifier:I,password:T,remember:L})},noValidate:!0,children:[e.jsxs(xe,{$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(ge,{$variant:x,children:s}),l&&e.jsx(ue,{children:l}),D&&e.jsx(fe,{role:"alert",children:D}),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:I,onChange:e=>z(e.target.value),placeholder:b,autoComplete:"username",disabled:E,autoFocus:!0})})]}),e.jsxs(be,{$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(me,{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(te,{variant:"primary",htmlType:"submit",size:"large",loading:E,block:!0,style:{borderRadius:"soft"===x?10:0,height:50},children:v}),j&&e.jsx(ve,{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(Ae,{children:[e.jsxs(ke,{children:[e.jsx("h4",{children:s}),l&&f>0&&e.jsx("button",{type:"button",onClick:l,children:"Mark all as read"})]}),a?e.jsx(ze,{style:{textAlign:"center"},children:e.jsx(t.Spin,{})}):0===o.length?e.jsx(ze,{children:e.jsx(t.Empty,{image:t.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(De,{children:o.map((t=>e.jsxs(Ee,{type:"button",$unread:t.unread,onClick:()=>{t.onClick?.(t),m(!1),h?.(!1)},children:[e.jsx(Se,{$src:t.avatarSrc,children:!t.avatarSrc&&(t.icon??e.jsx(i.BellFilled,{}))}),e.jsxs(je,{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(Ie,{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(ye,{type:"button",$size:x,$open:b,className:u,"aria-label":`${s}${f?` (${f} unread)`:""}`,children:[g??e.jsx(i.BellFilled,{}),f>0&&e.jsx(we,{$size:x,children:f>99?"99+":f})]})})},exports.HISD3PageBody=J,exports.HISD3PageHeader=({title:r,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:s=!1,className:l})=>e.jsxs(W,{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(V,{children:n})]}),e.jsxs(Z,{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??x({primary:i,radius:n,borders:a,lineWidth:s,overrides:l})),[d,i,n,a,s,l]),u=r.useMemo((()=>g({primary:i,borders:a,lineWidth:s,radius:n})),[i,a,s,n]);return e.jsxs(m.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),e.jsx(t.ConfigProvider,{theme:h,children:e.jsx(o.ThemeProvider,{theme:p,children:e.jsx(t.App,{component:!1,children:c})})})]})},exports.HISD3SearchInput=({compact:t=!1,className:r,...o})=>e.jsx(Ve,{allowClear:!0,prefix:e.jsx(i.SearchOutlined,{}),className:[t?"hisd3-search-compact":"",r??""].join(" ").trim(),...o}),exports.HISD3Sidebar=({children:n,account:a,logoUrl:s,appName:l,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:x,settingsUrl:g,antdTheme:b,renderMenuLink:m=G,headerExtra:v,userMenuItems:y,onCollapse:L,collapsed:F=!1,loading:R=!1,hideSidebar:N=!1,layoutTop:M=!1,hideCollapseTrigger:U=!1,collapseTrigger:H="edge",collapseTriggerOffset:O=Math.round(k/2),siderWidth:K=w,bareContent:W=!1,hideHeaderBar:Y=!1,brandHref:V="/",hideAccountCard:Z=!1,scrollContent:J=!0})=>{const X=f(),_=void 0===b?X?null:u:b,[ee,te]=r.useState(F);r.useEffect((()=>{te(F)}),[F]);const re=r.useMemo((()=>$(d,m)),[d,m]),oe=r.useMemo((()=>((e,t)=>{let r;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=P(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),L?.(e)},se=oe.selectedKey?[oe.selectedKey]:[],le=U?"none":H,de=ee?"Expand menu":"Collapse menu",pe=e.jsxs(j,{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(B,{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(D,{$appShell:J,children:[e.jsxs(C,{children:[pe,e.jsx(t.Menu,{mode:"horizontal",items:re,selectedKeys:se}),v,!Z&&e.jsx(q,{account:a,avatarSrc:h,settingsUrl:g,onLogout:p,placement:"bottomRight",extraItems:y})]}),e.jsx(E,{$scroll:J,children:ce})]}):e.jsxs(D,{hasSider:!0,$appShell:J,children:[e.jsxs(Q,{className:"hisd3-sider",width:K,collapsedWidth:A,collapsible:!0,collapsed:ee,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&ae(!0)},children:[pe,e.jsx(S,{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(E,{$scroll:J,children:[!Y&&e.jsxs(I,{children:["header"===le&&e.jsx(z,{type:"button","aria-label":de,onClick:()=>ae(!ee),children:ee?e.jsx(i.MenuUnfoldOutlined,{}):e.jsx(i.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),v]}),ce]}),"edge"===le&&e.jsx(T,{type:"button","aria-label":de,title:de,$left:ee?A:K,$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(He,{children:[e.jsx(t.Table,{...n,pagination:!1}),o&&e.jsx(Oe,{children:o}),a&&e.jsxs(Pe,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??Ge)(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(We,{$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=X,exports.HISD3_NEUTRALS=l,exports.HISD3_PRESETS=s,exports.HeaderIconButton=ye,exports.UserMenu=q,exports.borderVarsCss=(e="hairline",t)=>g({borders:e,lineWidth:t}),exports.createHisd3Theme=x,exports.getInitials=Ne,exports.hisd3AntdTheme=u,exports.hisd3VarsCss=g,exports.resolvePrimary=c,exports.tint=h,exports.useInsideHISD3Provider=f;
1370
1370
  //# sourceMappingURL=index.cjs.js.map