hisd3-ui-kit 4.2.2 → 4.4.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"),n=require("@ant-design/icons");function i(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}i('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}');i('@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={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,n=parseInt(o,16),i=n>>8&255,a=255&n,l=e=>Math.round(e+(255-e)*t);return`#${[l(n>>16&255),l(i),l(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},u=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:n}={})=>{const i=c(e),l=d[r]??d.hairline,u=o??l.width,x={...s,border:l.border,borderSecondary:l.borderSecondary},g={cssVar:{key:"hisd3"},token:{colorPrimary:i,colorInfo:i,colorLink:i,colorPrimaryBg:h(i,.92),colorPrimaryBgHover:h(i,.86),colorPrimaryBorder:h(i,.6),fontFamily:p,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:u,colorBgLayout:x.bgLayout,colorBgContainer:x.bgContainer,colorBgElevated:x.bgElevated,colorText:x.text,colorTextSecondary:x.textSecondary,colorTextTertiary:x.textTertiary,colorTextHeading:x.text,colorBorder:x.border,colorBorderSecondary:x.borderSecondary,colorSplit:x.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:x.bgLayout,headerBg:x.bgLayout,bodyBg:x.bgLayout,headerPadding:`0 ${a.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:x.text,itemHoverColor:x.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:h(i,.9),itemSelectedColor:i,itemActiveBg:h(i,.86),subMenuItemSelectedColor:i,groupTitleColor:x.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:x.border,defaultColor:x.text,defaultBg:x.bgLayout,defaultHoverBg:x.white,defaultHoverBorderColor:x.borderStrong,defaultHoverColor:x.text,defaultActiveBorderColor:x.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:x.border,hoverBorderColor:x.borderStrong,activeBorderColor:x.borderStrong,paddingInline:16},Select:{optionSelectedBg:h(i,.9),colorBorder:x.border},Table:{headerBg:"transparent",headerColor:x.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:x.borderSecondary,rowHoverBg:"rgba(0,0,0,0.03)",cellPaddingBlock:20,cellPaddingInline:16,cellFontSize:16,footerBg:"transparent"},Tabs:{inkBarColor:i,itemColor:x.text,itemSelectedColor:i,itemHoverColor:i,titleFontSize:18,horizontalItemGutter:48,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:x.bgLayout,itemActiveBg:i,itemSize:48,itemInputBg:x.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:x.textTertiary,lastItemColor:x.text,linkColor:x.textTertiary,linkHoverColor:i,separatorColor:x.textTertiary},Card:{headerFontSize:20}}};return n?{...g,...n,token:{...g.token,...n.token},components:{...g.components,...n.components}}:g},x=(e="hairline",t)=>`:root{--hisd3-rule-width:${t??(d[e]??d.hairline).width}px;--hisd3-control-bg:${s.bgFilled};--hisd3-control-bg-hover:${s.bgFilledHover};}`,g=u(),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,S=a.siderCollapsedWidth,k=a.topBarHeight,j=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},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)`
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
- `,I=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
- `,T=o.div`
38
+ `,D=o.div`
39
39
  flex: 1 1 auto;
40
40
  overflow-y: auto;
41
41
  overflow-x: hidden;
@@ -111,7 +111,7 @@
111
111
  &.hisd3-collapsed .ant-menu-item-group-title {
112
112
  display: none;
113
113
  }
114
- `,D=o.a`
114
+ `,I=o.a`
115
115
  display: flex;
116
116
  align-items: center;
117
117
  gap: 10px;
@@ -153,7 +153,7 @@
153
153
  overflow: hidden;
154
154
  text-overflow: ellipsis;
155
155
  }
156
- `,E=o(y)`
156
+ `,z=o(y)`
157
157
  display: flex;
158
158
  align-items: center;
159
159
  gap: 24px;
@@ -176,7 +176,7 @@
176
176
  font-size: 14px;
177
177
  font-weight: 500;
178
178
  }
179
- `,$=o(y)`
179
+ `,C=o(y)`
180
180
  display: flex;
181
181
  align-items: center;
182
182
  gap: 12px;
@@ -189,7 +189,7 @@
189
189
  z-index: 99;
190
190
  background: var(--ant-color-bg-layout);
191
191
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
192
- `,C=o.button`
192
+ `,T=o.button`
193
193
  border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
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
- `,z=o.button`
208
+ `,B=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(v)`
248
+ `,E=o(v)`
249
249
  flex: 1 0 auto;
250
250
  padding: 24px ${a.pageGutter}px 40px;
251
- `,A=o.div`
251
+ `,L=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
- `,N=o.a`
265
+ `,F=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
- `,O=o.span`
272
+ `,R=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
- `,R=o.span`
283
+ `,N=o.span`
284
284
  flex: 1 1 auto;
285
285
  min-width: 0;
286
- `,F=o.span`
286
+ `,M=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
+ `,U=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
- `,B=o.span`
303
+ `,H=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
- `,M=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
- `,U=(e,t)=>e.key??e.path??`menu-${t}`,_=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=U(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)}})),P=(e,t)=>r.createElement("a",{href:e.path||"/"},t),G=({account:r,avatarSrc:o,settingsUrl:i,onLogout:a,collapsed:l=!1,placement:s="topRight",extraItems:d=[]})=>{const{modal:p}=t.App.useApp(),c=[...d??[],{key:"settings",icon:e.jsx(n.SettingOutlined,{}),label:"Settings",onClick:()=>{window.location.href=i??"/settings"}},{key:"logout",icon:e.jsx(n.LogoutOutlined,{}),label:"Logout",onClick:()=>{p.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(n.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(A,{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(N,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(O,{$src:o,"aria-hidden":!0,children:!o&&h}),!l&&e.jsxs(R,{children:[e.jsxs(F,{children:[e.jsx(H,{title:r.fullName,children:r.fullName}),e.jsx(B,{children:e.jsx(n.DownOutlined,{})})]}),r.positionType&&e.jsx(M,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:W}=t.Layout,K=a.pageGutter,X=o.header`
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`
327
327
  display: contents;
328
- `,q=o.div`
328
+ `,Y=o.div`
329
329
  user-select: none;
330
330
  -webkit-user-select: none;
331
331
  display: flex;
@@ -355,7 +355,7 @@
355
355
  align-items: center;
356
356
  gap: 10px;
357
357
  flex: 0 0 auto;
358
- `,Y=o.div`
358
+ `,Z=o.div`
359
359
  display: flex;
360
360
  align-items: baseline;
361
361
  gap: 16px;
@@ -382,7 +382,443 @@
382
382
  `,J=o.div`
383
383
  flex: 1 0 auto;
384
384
  padding: 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DozqVyPnePqnPsx30XsFqisQ2s+gBOtPZ2fDUE7d8lebmGYiZV7y/6n9W/yzqWfk3NQDKURs9OHivycaFr2ddzQqbzhYBwJ2dnTi/jYVTUYspndnn4AKghkDAaAyzhKKuPdPZ2dC150lqRUnGwkrDNrNKX+pZXN27V+q6cSMn+lm4ANjEHkZ0OQbj5rVcg+MUwe4jsPDhKgqlFJBVNCK/BccVFwBOFdokr2VqhF1UPdG9unev5D5hFwA1ggRju8rWE7ac4qknbvncB+sCwNmiZYSM7ipbT3bi9iSAupbUfcAuAJwtU5eE8nSE4Bw+M54739sn1Wtu3gVAnQXCRJaFBML6wbluAOwCoGaEBatmNyvmVpbpFk/yVfeJugCoKemenX0QAcCtU3NxMyBAAIOshsmlP2Lk/wGgJmAjjF1q8QAAAABJRU5ErkJggg==",_=o(t.Button)`
386
+ &.ant-btn {
387
+ display: inline-flex;
388
+ align-items: center;
389
+ gap: 8px;
390
+ height: 40px;
391
+ padding-inline: 16px;
392
+ font-size: 14px;
393
+ font-weight: 600;
394
+ box-shadow: none;
395
+ }
396
+
397
+ &.ant-btn-sm {
398
+ height: 32px;
399
+ padding-inline: 12px;
400
+ font-size: 13px;
401
+ gap: 6px;
402
+ }
403
+
404
+ &.ant-btn-lg {
405
+ height: 52px;
406
+ padding-inline: 20px;
407
+ font-size: 16px;
408
+ }
409
+
410
+ &.ant-btn-default {
411
+ border-width: var(--hisd3-rule-width, 1px);
412
+ }
413
+
414
+ .anticon {
415
+ font-size: 1.05em;
416
+ }
417
+ `,ee={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},te=({variant:t="secondary",...r})=>e.jsx(_,{...ee[t],...r}),re=e=>"soft"===e,oe=1024,ie=560,ne=o.div`
418
+ position: relative;
419
+ min-height: 100vh;
420
+ min-height: 100dvh; /* keeps mobile browser chrome from clipping the card */
421
+ width: 100%;
422
+ display: flex;
423
+ align-items: center;
424
+ justify-content: ${({$side:e})=>"right"===e?"flex-end":"flex-start"};
425
+ overflow-x: hidden;
426
+ background: #fff;
427
+
428
+ @media (max-width: ${oe}px) {
429
+ justify-content: center;
430
+ padding: 32px 24px;
431
+ background: linear-gradient(
432
+ 180deg,
433
+ var(--ant-color-primary-bg) 0%,
434
+ #fff 46%
435
+ );
436
+ }
437
+
438
+ /*
439
+ * Phone: a branded hero at the top with a white sheet rising over it,
440
+ * rather than a floating card. Set as a block so the two simply stack.
441
+ */
442
+ @media (max-width: ${ie}px) {
443
+ display: flex;
444
+ flex-direction: column;
445
+ align-items: stretch;
446
+ justify-content: flex-start;
447
+ padding: 0;
448
+ background: var(--ant-color-primary);
449
+ }
450
+ `,ae=o.aside`
451
+ position: absolute;
452
+ /* the panel takes the side the card does not */
453
+ inset: ${({$variant:e,$side:t})=>{const r=re(e)?"28px":"0";return"right"===t?`${r} 40% ${r} ${r}`:`${r} ${r} ${r} 40%`}};
454
+ border-radius: ${({$variant:e})=>re(e)?"28px":"0"};
455
+ background: var(--ant-color-primary);
456
+ overflow: hidden;
457
+ display: flex;
458
+ flex-direction: column;
459
+ justify-content: center;
460
+ padding: ${({$side:e})=>"right"===e?"0 12% 0 8%":"0 6% 0 12%"};
461
+ color: #fff;
462
+ user-select: none;
463
+
464
+ h2 {
465
+ position: relative;
466
+ margin: 0;
467
+ font-family: var(--font-heading);
468
+ font-size: clamp(26px, 3.1vw, 44px);
469
+ line-height: 1.15;
470
+ font-weight: ${({$variant:e})=>re(e)?700:"var(--font-weight-heading, 800)"};
471
+ letter-spacing: -0.01em;
472
+ max-width: 12em;
473
+ color: #fff;
474
+ }
475
+
476
+ p {
477
+ position: relative;
478
+ margin: 16px 0 0;
479
+ font-size: 15px;
480
+ opacity: 0.82;
481
+ }
482
+
483
+ @media (max-width: ${oe}px) {
484
+ display: none;
485
+ }
486
+
487
+ /* phone: full-width hero above the sheet */
488
+ @media (max-width: ${ie}px) {
489
+ display: flex;
490
+ /* relative, not static: keeps the pattern layer inside the hero */
491
+ position: relative;
492
+ inset: auto;
493
+ flex: 0 0 auto;
494
+ border-radius: 0;
495
+ min-height: 32vh;
496
+ padding: 30px 22px 46px;
497
+ justify-content: flex-end;
498
+
499
+ h2 {
500
+ font-size: 27px;
501
+ max-width: none;
502
+ }
503
+
504
+ p {
505
+ margin-top: 10px;
506
+ font-size: 14px;
507
+ }
508
+ }
509
+ `,le=o.div`
510
+ display: none;
511
+
512
+ @media (max-width: ${ie}px) {
513
+ position: relative;
514
+ display: flex;
515
+ align-items: center;
516
+ gap: 10px;
517
+ margin-bottom: 26px;
518
+
519
+ img {
520
+ width: 38px;
521
+ height: 38px;
522
+ object-fit: contain;
523
+ flex: 0 0 auto;
524
+ background: #fff;
525
+ border-radius: 10px;
526
+ padding: 4px;
527
+ }
528
+
529
+ .hisd3-hero-name {
530
+ display: block;
531
+ font-family: var(--font-heading);
532
+ font-size: 17px;
533
+ font-weight: 700;
534
+ line-height: 1.1;
535
+ color: #fff;
536
+ }
537
+
538
+ .hisd3-hero-tagline {
539
+ display: block;
540
+ margin-top: 2px;
541
+ font-size: 9px;
542
+ letter-spacing: 0.14em;
543
+ text-transform: uppercase;
544
+ opacity: 0.75;
545
+ }
546
+ }
547
+ `,se=o.div`
548
+ position: absolute;
549
+ inset: 0;
550
+ background: center / cover no-repeat url("${({$src:e})=>e}");
551
+ mix-blend-mode: multiply;
552
+ opacity: 0.35;
553
+ `,de=o.div`
554
+ position: absolute;
555
+ left: 0;
556
+ right: 0;
557
+ bottom: 0;
558
+ height: 52%;
559
+ opacity: 0.16;
560
+ background: repeating-linear-gradient(
561
+ 90deg,
562
+ #fff 0 26px,
563
+ transparent 26px 34px,
564
+ #fff 34px 44px,
565
+ transparent 44px 58px,
566
+ #fff 58px 96px,
567
+ transparent 96px 108px,
568
+ #fff 108px 130px,
569
+ transparent 130px 150px
570
+ );
571
+ mask-image: linear-gradient(
572
+ to top,
573
+ #000 0 30%,
574
+ rgba(0, 0, 0, 0.7) 55%,
575
+ transparent 100%
576
+ );
577
+ clip-path: polygon(
578
+ 0 62%, 6% 62%, 6% 40%, 13% 40%, 13% 55%, 21% 55%, 21% 22%, 28% 22%,
579
+ 28% 48%, 36% 48%, 36% 33%, 44% 33%, 44% 58%, 52% 58%, 52% 14%, 60% 14%,
580
+ 60% 44%, 68% 44%, 68% 30%, 77% 30%, 77% 52%, 86% 52%, 86% 26%, 94% 26%,
581
+ 94% 47%, 100% 47%, 100% 100%, 0 100%
582
+ );
583
+ `,pe=o.div`
584
+ position: absolute;
585
+ top: 30px;
586
+ ${({$side:e})=>"right"===e?"left: 40px;":"right: 40px;"}
587
+ display: flex;
588
+ align-items: center;
589
+ gap: 10px;
590
+ opacity: 0.28;
591
+ font-family: var(--font-heading);
592
+ font-size: 24px;
593
+ font-weight: var(--font-weight-heading, 800);
594
+ letter-spacing: 0.02em;
595
+ color: #fff;
596
+
597
+ img {
598
+ width: 38px;
599
+ height: 38px;
600
+ object-fit: contain;
601
+ filter: brightness(0) invert(1);
602
+ }
603
+
604
+ @media (max-width: ${ie}px) {
605
+ display: none;
606
+ }
607
+ `,ce=o.div`
608
+ position: absolute;
609
+ ${({$side:e})=>"right"===e?"right: -70px;":"left: -70px;"}
610
+ bottom: 40px;
611
+ width: 190px;
612
+ height: 190px;
613
+ opacity: 0.5;
614
+ pointer-events: none;
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(", ")};
617
+
618
+ @media (max-width: ${oe}px) {
619
+ display: none;
620
+ }
621
+ `,he=o.form`
622
+ position: relative;
623
+ z-index: 2;
624
+ margin: 40px ${({$side:e})=>"right"===e?"7% 40px 0":"0 40px 7%"};
625
+ width: min(430px, calc(100% - 48px));
626
+ padding: 40px 44px 34px;
627
+ background: #fff;
628
+
629
+ ${({$variant:e})=>re(e)?o.css`
630
+ border-radius: 18px;
631
+ box-shadow: 0 4px 10px rgba(16, 15, 14, 0.05),
632
+ 0 24px 60px rgba(16, 15, 14, 0.14);
633
+ `:o.css`
634
+ border-radius: 0;
635
+ border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
636
+ box-shadow: 0 2px 4px rgba(16, 15, 14, 0.04),
637
+ 0 18px 44px rgba(16, 15, 14, 0.1);
638
+ `}
639
+
640
+ /* tablet and below: no panel, so centre the card */
641
+ @media (max-width: ${oe}px) {
642
+ margin: 0;
643
+ width: min(440px, 100%);
644
+ }
645
+
646
+ /* phone: a sheet that rises over the hero and runs to the bottom */
647
+ @media (max-width: ${ie}px) {
648
+ width: 100%;
649
+ /* grow to fill whatever the hero leaves, so white runs to the bottom */
650
+ flex: 1 0 auto;
651
+ margin: -28px 0 0;
652
+ padding: 30px 22px 34px;
653
+ box-shadow: none;
654
+ border: 0;
655
+ border-radius: ${({$variant:e})=>re(e)?"28px 28px 0 0":"20px 20px 0 0"};
656
+ }
657
+ `,xe=o.div`
658
+ display: flex;
659
+ align-items: center;
660
+ gap: 12px;
661
+ margin-bottom: 28px;
662
+
663
+ .hisd3-login-logo {
664
+ width: 54px;
665
+ height: 54px;
666
+ flex: 0 0 auto;
667
+ object-fit: contain;
668
+ display: block;
669
+ }
670
+
671
+ .hisd3-login-name {
672
+ display: block;
673
+ font-family: var(--font-heading);
674
+ font-size: 25px;
675
+ line-height: 1.05;
676
+ font-weight: ${({$variant:e})=>re(e)?700:"var(--font-weight-heading, 800)"};
677
+ letter-spacing: ${({$variant:e})=>re(e)?"-0.01em":"0.03em"};
678
+ text-transform: ${({$variant:e})=>re(e)?"none":"uppercase"};
679
+ color: var(--ant-color-text);
680
+ }
681
+
682
+ .hisd3-login-tagline {
683
+ display: block;
684
+ margin-top: 4px;
685
+ font-size: 9px;
686
+ letter-spacing: 0.14em;
687
+ text-transform: uppercase;
688
+ color: var(--ant-color-text-tertiary);
689
+ }
690
+
691
+ @media (max-width: ${ie}px) {
692
+ display: none;
693
+ }
694
+ `,ge=o.h1`
695
+ margin: 0 0 6px;
696
+ font-family: var(--font-heading);
697
+ font-size: 26px;
698
+ font-weight: ${({$variant:e})=>re(e)?700:"var(--font-weight-heading, 800)"};
699
+ color: var(--ant-color-text);
700
+
701
+ @media (max-width: ${ie}px) {
702
+ font-size: 22px;
703
+ }
704
+ `,ue=o.p`
705
+ margin: 0 0 22px;
706
+ font-size: 14px;
707
+ color: var(--ant-color-text-secondary);
708
+ `,be=o.label`
709
+ display: block;
710
+ margin-bottom: 16px;
711
+
712
+ .hisd3-field-label {
713
+ display: block;
714
+ margin-bottom: 7px;
715
+ font-size: 13px;
716
+ font-weight: 600;
717
+ color: var(--ant-color-text-secondary);
718
+ }
719
+
720
+ .hisd3-field-control {
721
+ position: relative;
722
+ display: flex;
723
+ align-items: center;
724
+ }
725
+
726
+ input {
727
+ width: 100%;
728
+ height: 48px;
729
+ padding: 0 44px 0 16px;
730
+ font: inherit;
731
+ font-size: 15px;
732
+ color: var(--ant-color-text);
733
+ background: ${({$variant:e})=>re(e)?"#F2F3F5":"var(--hisd3-control-bg, #e6e4e1)"};
734
+ border: ${({$variant:e})=>re(e)?"1px":"var(--hisd3-rule-width, 1px)"}
735
+ solid transparent;
736
+ border-radius: ${({$variant:e})=>re(e)?"10px":"0"};
737
+ outline: none;
738
+ transition: border-color 0.15s ease, background 0.15s ease;
739
+
740
+ &::placeholder {
741
+ color: var(--ant-color-text-tertiary);
742
+ }
743
+
744
+ &:focus {
745
+ background: #fff;
746
+ border-color: var(--ant-color-primary);
747
+ }
748
+
749
+ &:disabled {
750
+ opacity: 0.6;
751
+ cursor: not-allowed;
752
+ }
753
+ }
754
+
755
+ @media (max-width: ${ie}px) {
756
+ margin-bottom: 14px;
757
+
758
+ input {
759
+ height: 46px;
760
+ /* 16px keeps iOS Safari from zooming in on focus */
761
+ font-size: 16px;
762
+ }
763
+ }
764
+
765
+ button.hisd3-field-reveal {
766
+ position: absolute;
767
+ right: 12px;
768
+ display: flex;
769
+ padding: 6px;
770
+ border: 0;
771
+ background: none;
772
+ color: var(--ant-color-text-tertiary);
773
+ cursor: pointer;
774
+
775
+ &:hover {
776
+ color: var(--ant-color-text);
777
+ }
778
+ }
779
+ `,me=o.div`
780
+ display: flex;
781
+ align-items: center;
782
+ justify-content: space-between;
783
+ gap: 12px;
784
+ margin: 18px 0 24px;
785
+ font-size: 14px;
786
+
787
+ .hisd3-remember {
788
+ display: flex;
789
+ align-items: center;
790
+ gap: 10px;
791
+ color: var(--ant-color-text);
792
+ cursor: pointer;
793
+ user-select: none;
794
+ }
795
+
796
+ button.hisd3-forgot {
797
+ padding: 0;
798
+ border: 0;
799
+ background: none;
800
+ font: inherit;
801
+ font-weight: 500;
802
+ color: var(--ant-color-primary);
803
+ cursor: pointer;
804
+
805
+ &:hover {
806
+ text-decoration: underline;
807
+ }
808
+ }
809
+ `,fe=o.div`
810
+ margin-bottom: 16px;
811
+ padding: 10px 14px;
812
+ font-size: 13px;
813
+ color: var(--ant-color-error, #e5401c);
814
+ background: rgba(229, 64, 28, 0.08);
815
+ border-left: 3px solid var(--ant-color-error, #e5401c);
816
+ `,ye=o.p`
817
+ margin: 20px 0 0;
818
+ text-align: center;
819
+ font-size: 14px;
820
+ color: var(--ant-color-text-secondary);
821
+ `,ve=o.button`
386
822
  user-select: none;
387
823
  -webkit-user-select: none;
388
824
  position: relative;
@@ -419,7 +855,7 @@
419
855
  /* the stock bell is narrow; widen it a touch for a fuller silhouette */
420
856
  transform: scaleX(var(--hisd3-bell-stretch, 1.12));
421
857
  }
422
- `,Z=o.span`
858
+ `,we=o.span`
423
859
  position: absolute;
424
860
  top: ${({$size:e})=>-Math.round(.05*e)}px;
425
861
  right: ${({$size:e})=>-Math.round(.05*e)}px;
@@ -437,7 +873,7 @@
437
873
  border: 2px solid var(--ant-color-bg-layout, #f3f2f0);
438
874
  border-radius: 999px;
439
875
  pointer-events: none;
440
- `,ee=o.div`
876
+ `,Ae=o.div`
441
877
  width: 360px;
442
878
  max-width: calc(100vw - 32px);
443
879
  overflow: hidden;
@@ -446,7 +882,7 @@
446
882
  border-radius: var(--hisd3-popup-radius, 10px);
447
883
  box-shadow: 0 2px 6px rgba(16, 15, 14, 0.06),
448
884
  0 12px 32px rgba(16, 15, 14, 0.14);
449
- `,te=o.div`
885
+ `,ke=o.div`
450
886
  display: flex;
451
887
  align-items: center;
452
888
  justify-content: space-between;
@@ -474,10 +910,10 @@
474
910
  text-decoration: underline;
475
911
  }
476
912
  }
477
- `,re=o.div`
913
+ `,Se=o.div`
478
914
  max-height: 380px;
479
915
  overflow-y: auto;
480
- `,oe=o.button`
916
+ `,je=o.button`
481
917
  display: flex;
482
918
  align-items: flex-start;
483
919
  gap: 12px;
@@ -492,7 +928,7 @@
492
928
  &:hover {
493
929
  background: ${({$unread:e})=>e?"var(--ant-color-primary-bg-hover)":"rgba(0,0,0,0.04)"};
494
930
  }
495
- `,ne=o.span`
931
+ `,De=o.span`
496
932
  width: 36px;
497
933
  height: 36px;
498
934
  flex: 0 0 auto;
@@ -503,7 +939,7 @@
503
939
  color: var(--ant-color-text);
504
940
  border-radius: 50%;
505
941
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.06)"};
506
- `,ie=o.span`
942
+ `,Ie=o.span`
507
943
  flex: 1 1 auto;
508
944
  min-width: 0;
509
945
 
@@ -528,14 +964,14 @@
528
964
  font-size: 12px;
529
965
  color: var(--ant-color-text-tertiary);
530
966
  }
531
- `,ae=o.span`
967
+ `,ze=o.span`
532
968
  width: 8px;
533
969
  height: 8px;
534
970
  margin-top: 6px;
535
971
  flex: 0 0 auto;
536
972
  border-radius: 50%;
537
973
  background: var(--ant-color-primary);
538
- `,le=o.button`
974
+ `,Ce=o.button`
539
975
  display: block;
540
976
  width: 100%;
541
977
  padding: 12px 16px;
@@ -552,9 +988,9 @@
552
988
  &:hover {
553
989
  background: rgba(0, 0, 0, 0.04);
554
990
  }
555
- `,se=o.div`
991
+ `,Te=o.div`
556
992
  padding: 28px 16px;
557
- `,de=o.button`
993
+ `,Be=o.button`
558
994
  user-select: none;
559
995
  -webkit-user-select: none;
560
996
  position: relative;
@@ -590,7 +1026,7 @@
590
1026
  display: block;
591
1027
  border-radius: inherit;
592
1028
  }
593
- `,pe=o.span`
1029
+ `,Ee=o.span`
594
1030
  position: absolute;
595
1031
  right: ${({$size:e})=>-Math.round(.05*e)}px;
596
1032
  bottom: ${({$size:e})=>-Math.round(.05*e)}px;
@@ -611,7 +1047,7 @@
611
1047
  & svg {
612
1048
  display: block;
613
1049
  }
614
- `,ce=o.div`
1050
+ `,Le=o.div`
615
1051
  display: flex;
616
1052
  align-items: center;
617
1053
  gap: 12px;
@@ -646,7 +1082,7 @@
646
1082
  overflow: hidden;
647
1083
  text-overflow: ellipsis;
648
1084
  }
649
- `,he=o.span`
1085
+ `,Fe=o.span`
650
1086
  width: 40px;
651
1087
  height: 40px;
652
1088
  flex: 0 0 auto;
@@ -657,7 +1093,7 @@
657
1093
  font-weight: 700;
658
1094
  border-radius: 50%;
659
1095
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.08)"};
660
- `,ue=o.div`
1096
+ `,Re=o.div`
661
1097
  overflow: hidden;
662
1098
  background: var(--ant-color-bg-elevated);
663
1099
  border: 1px solid var(--ant-color-border-secondary);
@@ -680,35 +1116,35 @@
680
1116
  border-radius: 8px;
681
1117
  font-size: 14px;
682
1118
  }
683
- `,xe=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("")||"?",ge=o.div`
1119
+ `,Ne=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("")||"?",Me=o.div`
684
1120
  display: flex;
685
1121
  align-items: center;
686
1122
  gap: 8px;
687
1123
  flex: 0 0 auto;
688
- `,be=o.span`
1124
+ `,Ue=o.span`
689
1125
  width: 2px;
690
1126
  height: 24px;
691
1127
  background: var(--ant-color-border-secondary);
692
1128
  flex: 0 0 auto;
693
- `,me=o.div`
1129
+ `,He=o.div`
694
1130
  .ant-table-wrapper .ant-table {
695
1131
  background: transparent;
696
1132
  }
697
1133
 
698
1134
  .ant-table-wrapper .ant-table-thead > tr > th {
699
- font-size: 13px;
1135
+ font-size: 11px;
700
1136
  font-weight: 700;
701
- letter-spacing: 0.1em;
1137
+ letter-spacing: 0.08em;
702
1138
  text-transform: uppercase;
703
1139
  color: var(--ant-color-text-tertiary);
704
- padding-block: 14px;
1140
+ padding-block: 9px;
705
1141
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
706
1142
  background: transparent;
707
1143
  }
708
1144
 
709
1145
  .ant-table-wrapper .ant-table-tbody > tr > td {
710
1146
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
711
- font-size: 16px;
1147
+ font-size: 14px;
712
1148
  }
713
1149
 
714
1150
  .ant-table-wrapper .ant-table-tbody > tr:last-child > td {
@@ -740,24 +1176,24 @@
740
1176
  .hisd3-cell-muted {
741
1177
  color: var(--ant-color-text-tertiary);
742
1178
  }
743
- `,fe=o.div`
744
- padding: 22px 0 14px;
745
- font-size: 13px;
1179
+ `,Oe=o.div`
1180
+ padding: 14px 0 8px;
1181
+ font-size: 11px;
746
1182
  font-weight: 600;
747
1183
  letter-spacing: 0.1em;
748
1184
  text-transform: uppercase;
749
1185
  color: var(--ant-color-text-tertiary);
750
- `,ye=o.div`
1186
+ `,Pe=o.div`
751
1187
  user-select: none;
752
1188
  -webkit-user-select: none;
753
1189
  display: flex;
754
1190
  align-items: center;
755
- gap: 24px;
756
- padding: 20px 0 8px;
1191
+ gap: 16px;
1192
+ padding: 14px 0 4px;
757
1193
 
758
1194
  .hisd3-total {
759
1195
  flex: 1 1 auto;
760
- font-size: 16px;
1196
+ font-size: 13px;
761
1197
  color: var(--ant-color-text-secondary);
762
1198
  }
763
1199
 
@@ -771,14 +1207,14 @@
771
1207
  .ant-pagination-jump-prev,
772
1208
  .ant-pagination-jump-next {
773
1209
  margin: 0;
774
- min-width: 56px;
775
- height: 56px;
776
- line-height: 56px;
1210
+ min-width: 34px;
1211
+ height: 34px;
1212
+ line-height: 34px;
777
1213
  border: 0;
778
1214
  border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
779
1215
  border-radius: 0;
780
1216
  font-weight: 700;
781
- font-size: 16px;
1217
+ font-size: 13px;
782
1218
  background: transparent;
783
1219
 
784
1220
  &:last-child {
@@ -800,7 +1236,7 @@
800
1236
  .ant-pagination-prev .ant-pagination-item-link,
801
1237
  .ant-pagination-next .ant-pagination-item-link {
802
1238
  color: var(--ant-color-text);
803
- font-size: 14px;
1239
+ font-size: 11px;
804
1240
  }
805
1241
 
806
1242
  .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis,
@@ -809,18 +1245,18 @@
809
1245
  font-weight: 700;
810
1246
  }
811
1247
  }
812
- `,ve=o.div`
1248
+ `,Ge=o.div`
813
1249
  display: inline-flex;
814
1250
  border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
815
1251
 
816
1252
  button {
817
- height: 56px;
818
- padding: 0 22px;
1253
+ height: 34px;
1254
+ padding: 0 14px;
819
1255
  border: 0;
820
1256
  border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
821
1257
  background: transparent;
822
1258
  font: inherit;
823
- font-size: 16px;
1259
+ font-size: 13px;
824
1260
  color: var(--ant-color-text);
825
1261
  cursor: pointer;
826
1262
 
@@ -833,7 +1269,7 @@
833
1269
  color: #fff;
834
1270
  }
835
1271
  }
836
- `,we=e=>`Total ${e.toLocaleString()} items`;const Se=o(t.Tabs)`
1272
+ `,$e=e=>`Total ${e.toLocaleString()} items`;const qe=o(t.Tabs)`
837
1273
  &.ant-tabs .ant-tabs-nav {
838
1274
  user-select: none;
839
1275
  -webkit-user-select: none;
@@ -845,22 +1281,22 @@
845
1281
  }
846
1282
 
847
1283
  &.ant-tabs .ant-tabs-tab {
848
- padding: 14px 0 18px;
1284
+ padding: 10px 0 12px;
849
1285
  font-weight: 600;
850
- font-size: 18px;
1286
+ font-size: 15px;
851
1287
 
852
1288
  + .ant-tabs-tab {
853
- margin-left: 48px;
1289
+ margin-left: 32px;
854
1290
  }
855
1291
  }
856
1292
 
857
1293
  &.ant-tabs .ant-tabs-ink-bar {
858
- height: 4px;
1294
+ height: 3px;
859
1295
  }
860
1296
 
861
1297
  .hisd3-tab-count {
862
- margin-left: 10px;
863
- font-size: 14px;
1298
+ margin-left: 8px;
1299
+ font-size: 13px;
864
1300
  font-weight: 500;
865
1301
  color: var(--ant-color-text-tertiary);
866
1302
  }
@@ -868,13 +1304,13 @@
868
1304
  .ant-tabs-tab-active .hisd3-tab-count {
869
1305
  color: var(--ant-color-primary);
870
1306
  }
871
- `,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)"},je={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)"},Ie=o.span`
1307
+ `,Qe={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)"},Ke={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)"},We=o.span`
872
1308
  display: inline-flex;
873
1309
  align-items: center;
874
- gap: 6px;
875
- height: 32px;
876
- padding: 0 14px;
877
- font-size: 12px;
1310
+ gap: 5px;
1311
+ height: 22px;
1312
+ padding: 0 9px;
1313
+ font-size: 11px;
878
1314
  font-weight: 500;
879
1315
  letter-spacing: 0.06em;
880
1316
  text-transform: uppercase;
@@ -883,40 +1319,8 @@
883
1319
  border: var(--hisd3-rule-width, 1px) solid transparent;
884
1320
  border-radius: 0;
885
1321
 
886
- ${({$variant:e,$tone:t})=>{const r=ke[t],o=je[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);"}}}
887
- `,Te=o(t.Button)`
888
- &.ant-btn {
889
- display: inline-flex;
890
- align-items: center;
891
- gap: 8px;
892
- height: 40px;
893
- padding-inline: 16px;
894
- font-size: 14px;
895
- font-weight: 600;
896
- box-shadow: none;
897
- }
898
-
899
- &.ant-btn-sm {
900
- height: 32px;
901
- padding-inline: 12px;
902
- font-size: 13px;
903
- gap: 6px;
904
- }
905
-
906
- &.ant-btn-lg {
907
- height: 52px;
908
- padding-inline: 20px;
909
- font-size: 16px;
910
- }
911
-
912
- &.ant-btn-default {
913
- border-width: var(--hisd3-rule-width, 1px);
914
- }
915
-
916
- .anticon {
917
- font-size: 1.05em;
918
- }
919
- `,De={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},Ee=o(t.Input)`
1322
+ ${({$variant:e,$tone:t})=>{const r=Qe[t],o=Ke[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);"}}}
1323
+ `,Ye=o(t.Input)`
920
1324
  &.ant-input,
921
1325
  &.ant-input-affix-wrapper {
922
1326
  border-width: var(--hisd3-rule-width, 1px);
@@ -928,7 +1332,7 @@
928
1332
  color: var(--ant-color-text-tertiary);
929
1333
  font-size: 18px;
930
1334
  }
931
- `,$e=o(Ee)`
1335
+ `,Ve=o(Ye)`
932
1336
  &.ant-input-affix-wrapper {
933
1337
  background: var(--hisd3-bg-filled, #e6e4e1);
934
1338
  border-color: var(--ant-color-border-secondary);
@@ -962,5 +1366,5 @@
962
1366
  font-size: 18px;
963
1367
  }
964
1368
  }
965
- `;var Ce,ze,Le,Ae,Ne,Oe,Re,Fe,He,Be,Me,Ue,_e;exports.ThemeStyle=void 0,(Ce=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Ce.STANDARD="standard",exports.ThemeStyleRadius=void 0,(ze=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",ze.STANDARD="16px",exports.ThemeMode=void 0,(Le=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Le.SEMI_DARK="semi-dark",Le.DARK="dark",exports.LayoutType=void 0,(Ae=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",Ae.BOXED="boxed",Ae.FRAMED="framed",exports.MenuStyle=void 0,(Ne=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",Ne.STANDARD="standard",Ne.ROUNDED="rounded",Ne.ROUNDED_REVERSE="rounded-reverse",Ne.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(Oe=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",Oe.MINI="mini",Oe.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",Oe.STANDARD="standard",Oe.HEADER_USER="user-header",Oe.HEADER_USER_MINI="user-mini-header",Oe.DRAWER="drawer",Oe.BIT_BUCKET="bit-bucket",Oe.H_DEFAULT="h-default",Oe.HOR_HEADER_FIXED="hor-header-fixed",Oe.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(Re=exports.FooterType||(exports.FooterType={})).FIXED="fixed",Re.FLUID="fluid",exports.LayoutDirection=void 0,(Fe=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",Fe.LTR="ltr",exports.HeaderType=void 0,(He=exports.HeaderType||(exports.HeaderType={})).DARK="dark",He.LIGHT="light",exports.RouteTransition=void 0,(Be=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",Be.FADE="fade",Be.SLIDE_LEFT="slideLeft",Be.SLIDE_RIGHT="slideRight",Be.SLIDE_UP="slideUp",Be.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(Me=exports.Fonts||(exports.Fonts={})).LIGHT="300",Me.REGULAR="400",Me.MEDIUM="500",Me.BOLD="600",exports.AuthType=void 0,(Ue=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",Ue.AWS_COGNITO="aws_cognito",Ue.AUTH0="auth0",Ue.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(_e=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",_e.SLIDEUPOUT="transition.slideUpOut",_e.SLIDEDOWNIN="transition.slideDownIn",_e.SLIDEDOWNOUT="transition.slideDownOut",_e.SLIDELEFTIN="transition.slideLeftIn",_e.SLIDELEFTOUT="transition.slideLeftOut",_e.SLIDERIGHTIN="transition.slideRightIn",_e.SLIDERIGHTOUT="transition.slideRightOut",_e.FADEIN="transition.fadeIn",_e.FADEOUT="transition.fadeOut";var Pe,Ge;exports.MessageType=void 0,(Pe=exports.MessageType||(exports.MessageType={}))[Pe.MEDIA=1]="MEDIA",Pe[Pe.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(Ge=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",Ge.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:i,settingsUrl:a="/settings",onSettings:l,onLogout:s,confirmLogout:d=!0,extraItems:p,shape:c="circle",size:h=40,hideChevron:u=!1,className:x})=>{const{modal:g}=t.App.useApp(),[b,m]=r.useState(!1),f=[...p??[],...null!==a||l?[{key:"settings",icon:e.jsx(n.SettingOutlined,{}),label:"Settings",onClick:()=>{l?l():a&&(window.location.href=a)}}]:[],{key:"logout",icon:e.jsx(n.LogoutOutlined,{}),label:"Logout",onClick:()=>{d?g.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(n.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(ue,{children:[e.jsxs(ce,{children:[e.jsx(he,{$src:i,children:!i&&xe(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(de,{type:"button",className:x,$shape:c,$size:h,$open:b,"aria-label":`Account menu for ${o.fullName}`,children:[i?e.jsx("img",{src:i,alt:""}):xe(o.fullName),!u&&e.jsx(pe,{$size:h,$open:b,"aria-hidden":!0,children:e.jsx(n.DownOutlined,{})})]})})},exports.HISD3Button=({variant:t="secondary",...r})=>e.jsx(Te,{...De[t],...r}),exports.HISD3HeaderActions=({children:t,divided:o=!1,className:n})=>{const i=r.Children.toArray(t).filter(Boolean);return e.jsx(ge,{className:n,children:i.map(((t,n)=>e.jsxs(r.Fragment,{children:[o&&n===i.length-1&&n>0&&e.jsx(be,{}),t]},n)))})},exports.HISD3Input=t=>e.jsx(Ee,{...t}),exports.HISD3NotificationButton=({items:o=[],count:i,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:u=40,icon:x,className:g})=>{const[b,m]=r.useState(!1),f=i??o.filter((e=>e.unread)).length,y=e.jsxs(ee,{children:[e.jsxs(te,{children:[e.jsx("h4",{children:l}),s&&f>0&&e.jsx("button",{type:"button",onClick:s,children:"Mark all as read"})]}),a?e.jsx(se,{style:{textAlign:"center"},children:e.jsx(t.Spin,{})}):0===o.length?e.jsx(se,{children:e.jsx(t.Empty,{image:t.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(re,{children:o.map((t=>e.jsxs(oe,{type:"button",$unread:t.unread,onClick:()=>{t.onClick?.(t),m(!1),h?.(!1)},children:[e.jsx(ne,{$src:t.avatarSrc,children:!t.avatarSrc&&(t.icon??e.jsx(n.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(ae,{})]},t.id)))}),d&&e.jsx(le,{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(Q,{type:"button",$size:u,$open:b,className:g,"aria-label":`${l}${f?` (${f} unread)`:""}`,children:[x??e.jsx(n.BellFilled,{}),f>0&&e.jsx(Z,{$size:u,children:f>99?"99+":f})]})})},exports.HISD3PageBody=J,exports.HISD3PageHeader=({title:r,subtitle:o,breadcrumb:n,extra:i,leading:a,hideTopBar:l=!1,className:s})=>e.jsxs(X,{className:s,children:[!l&&e.jsxs(q,{children:[a,n&&n.length>0&&e.jsx(t.Breadcrumb,{items:n.map((t=>({title:t.href?e.jsx("a",{href:t.href,children:t.title}):t.title,onClick:t.onClick})))}),!n?.length&&e.jsx("span",{style:{flex:1}}),i&&e.jsx(V,{children:i})]}),e.jsxs(Y,{children:[e.jsx("h1",{children:r}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:n,radius:i,borders:a="hairline",lineWidth:l,overrides:s,theme:d,styledTheme:p={},children:c})=>{const h=r.useMemo((()=>d??u({primary:n,radius:i,borders:a,lineWidth:l,overrides:s})),[d,n,i,a,l,s]),g=r.useMemo((()=>x(a,l)),[a,l]);return e.jsxs(m.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:g}}),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($e,{allowClear:!0,prefix:e.jsx(n.SearchOutlined,{}),className:[t?"hisd3-search-compact":"",r??""].join(" ").trim(),...o}),exports.HISD3Sidebar=({children:i,account:a,logoUrl:l,appName:s,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:u,settingsUrl:x,antdTheme:b,renderMenuLink:m=P,headerExtra:y,userMenuItems:v,onCollapse:A,collapsed:N=!1,loading:O=!1,hideSidebar:R=!1,layoutTop:F=!1,hideCollapseTrigger:H=!1,collapseTrigger:B="edge",collapseTriggerOffset:M=Math.round(k/2),siderWidth:K=w,bareContent:X=!1,hideHeaderBar:q=!1,brandHref:V="/",hideAccountCard:Y=!1,scrollContent:J=!0})=>{const Q=f(),Z=void 0===b?Q?null:g:b,[ee,te]=r.useState(N);r.useEffect((()=>{te(N)}),[N]);const re=r.useMemo((()=>_(d,m)),[d,m]),oe=r.useMemo((()=>((e,t)=>{let r;const o=(e,n)=>{(e??[]).forEach(((e,i)=>{const a=U(e,i);if(e.path&&t.startsWith(e.path)){const o=t===e.path,i=e.path.length+(o?1:0);(!r||i>r.length)&&(r={key:a,parents:n,length:i})}e.children?.length&&o(e.children,[...n,a])}))};return o(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(d,c)),[d,c]),[ne,ie]=r.useState((()=>oe.openKeys));r.useEffect((()=>{ie((e=>Array.from(new Set([...e,...oe.openKeys]))))}),[oe.openKeys.join("|")]);const ae=e=>{te(e),A?.(e)},le=oe.selectedKey?[oe.selectedKey]:[],se=H?"none":B,de=ee?"Expand menu":"Collapse menu",pe=e.jsxs(D,{href:V,$collapsed:!F&&ee,children:[l?e.jsx("img",{src:l,alt:s}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(F||!ee)&&e.jsx("h1",{children:s})]}),ce=X?i:e.jsx(L,{children:i});if("undefined"==typeof document)return null;const he=e.jsx(t.App,{component:!1,children:e.jsx(t.Spin,{spinning:O,size:"large",children:R?e.jsx(e.Fragment,{children:i}):F?e.jsxs(j,{$appShell:J,children:[e.jsxs(E,{children:[pe,e.jsx(t.Menu,{mode:"horizontal",items:re,selectedKeys:le}),y,!Y&&e.jsx(G,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,placement:"bottomRight",extraItems:v})]}),e.jsx(I,{$scroll:J,children:ce})]}):e.jsxs(j,{hasSider:!0,$appShell:J,children:[e.jsxs(W,{className:"hisd3-sider",width:K,collapsedWidth:S,collapsible:!0,collapsed:ee,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&ae(!0)},children:[pe,e.jsx(T,{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:ne,onOpenChange:e=>ie(e)})}),!Y&&e.jsx(G,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,collapsed:ee,placement:"topRight",extraItems:v})]}),e.jsxs(I,{$scroll:J,children:[!q&&e.jsxs($,{children:["header"===se&&e.jsx(C,{type:"button","aria-label":de,onClick:()=>ae(!ee),children:ee?e.jsx(n.MenuUnfoldOutlined,{}):e.jsx(n.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),y]}),ce]}),"edge"===se&&e.jsx(z,{type:"button","aria-label":de,title:de,$left:ee?S:K,$top:M,onClick:()=>ae(!ee),children:ee?e.jsx(n.RightOutlined,{}):e.jsx(n.LeftOutlined,{})})]})})});return Q&&!u?Z?e.jsx(t.ConfigProvider,{theme:Z,children:he}):he:e.jsx(o.ThemeProvider,{theme:u??{},children:Z?e.jsx(t.ConfigProvider,{theme:Z,children:he}):he})},exports.HISD3Table=function({pagination:r,footer:o,...i}){const a=r||void 0,l=a?.pageSizeOptions??[10,20,50];return e.jsxs(me,{children:[e.jsx(t.Table,{...i,pagination:!1}),o&&e.jsx(fe,{children:o}),a&&e.jsxs(ye,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??we)(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(n.LeftOutlined,{})}):"next"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(n.RightOutlined,{})}):o}),!a.hidePageSize&&e.jsx(ve,{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(Se,{...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,...n})=>e.jsx(Ie,{$variant:t,$tone:r,...n,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_NEUTRALS=s,exports.HISD3_PRESETS=l,exports.HeaderIconButton=Q,exports.UserMenu=G,exports.borderVarsCss=x,exports.createHisd3Theme=u,exports.getInitials=xe,exports.hisd3AntdTheme=g,exports.resolvePrimary=c,exports.tint=h,exports.useInsideHISD3Provider=f;
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;
966
1370
  //# sourceMappingURL=index.cjs.js.map