hisd3-ui-kit 4.1.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,7 +1,14 @@
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)}.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,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("")}`},u=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:i}={})=>{const n=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: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: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(n,.9),itemSelectedColor:n,itemActiveBg:h(n,.86),subMenuItemSelectedColor:n,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(n,.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:n,itemColor:x.text,itemSelectedColor:n,itemHoverColor:n,titleFontSize:18,horizontalItemGutter:48,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:x.bgLayout,itemActiveBg:n,itemSize:48,itemInputBg:x.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:x.textTertiary,lastItemColor:x.text,linkColor:x.textTertiary,linkHoverColor:n,separatorColor:x.textTertiary},Card:{headerFontSize:20}}};return i?{...g,...i,token:{...g.token,...i.token},components:{...g.components,...i.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),y=()=>r.useContext(m),{Header:f,Content:v}=t.Layout,w=a.siderWidth,S=a.siderCollapsedWidth,k=a.topBarHeight,I=o(t.Layout)`
2
- min-height: 100vh;
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("")}`},x=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:n}={})=>{const i=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: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: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(i,.9),itemSelectedColor:i,itemActiveBg:h(i,.86),subMenuItemSelectedColor:i,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(i,.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:20,cellPaddingInline:16,cellFontSize:16,footerBg:"transparent"},Tabs:{inkBarColor:i,itemColor:g.text,itemSelectedColor:i,itemHoverColor:i,titleFontSize:18,horizontalItemGutter:48,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:g.bgLayout,itemActiveBg:i,itemSize:48,itemInputBg:g.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:g.textTertiary,lastItemColor:g.text,linkColor:g.textTertiary,linkHoverColor:i,separatorColor:g.textTertiary},Card:{headerFontSize:20}}};return n?{...u,...n,token:{...u.token,...n.token},components:{...u.components,...n.components}}:u},g=(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};}`,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,S=a.siderCollapsedWidth,k=a.topBarHeight,j=o(t.Layout)`
2
+ position: relative; /* anchor for the edge collapse trigger */
3
3
  background: var(--ant-color-bg-layout);
4
4
 
5
+ /*
6
+ * App-shell mode: the shell is exactly one viewport tall and never scrolls,
7
+ * so the document has no scrollbar and cannot rubber-band. The content
8
+ * column (StyledMain) is the scroller instead.
9
+ */
10
+ ${({$appShell:e})=>e?"height: 100vh; max-height: 100vh; overflow: hidden;":"min-height: 100vh;"}
11
+
5
12
  /*
6
13
  * The Sider is rendered as a plain antd <Sider> (not styled(Sider)) because
7
14
  * styled-components would swallow its \`theme\` prop; style it from here.
@@ -9,7 +16,7 @@
9
16
  > .ant-layout-sider.hisd3-sider {
10
17
  position: sticky;
11
18
  top: 0;
12
- height: 100vh;
19
+ height: ${({$appShell:e})=>e?"100%":"100vh"};
13
20
  overflow: hidden;
14
21
  background: var(--ant-color-bg-layout);
15
22
  border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
@@ -20,10 +27,16 @@
20
27
  height: 100%;
21
28
  }
22
29
  }
23
- `,j=o.div`
30
+ `,I=o(t.Layout)`
31
+ background: transparent;
32
+ min-width: 0;
33
+
34
+ ${({$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 ":""}
35
+ `,T=o.div`
24
36
  flex: 1 1 auto;
25
37
  overflow-y: auto;
26
38
  overflow-x: hidden;
39
+ overscroll-behavior: contain;
27
40
  padding-top: 4px;
28
41
 
29
42
  .ant-menu-inline,
@@ -95,7 +108,7 @@
95
108
  &.hisd3-collapsed .ant-menu-item-group-title {
96
109
  display: none;
97
110
  }
98
- `,T=o.a`
111
+ `,D=o.a`
99
112
  display: flex;
100
113
  align-items: center;
101
114
  gap: 10px;
@@ -137,10 +150,11 @@
137
150
  overflow: hidden;
138
151
  text-overflow: ellipsis;
139
152
  }
140
- `,D=o(f)`
153
+ `,E=o(y)`
141
154
  display: flex;
142
155
  align-items: center;
143
156
  gap: 24px;
157
+ flex: 0 0 ${k}px;
144
158
  height: ${k}px;
145
159
  line-height: ${k}px;
146
160
  padding: 0 ${a.pageGutter}px;
@@ -159,10 +173,11 @@
159
173
  font-size: 14px;
160
174
  font-weight: 500;
161
175
  }
162
- `,E=o(f)`
176
+ `,$=o(y)`
163
177
  display: flex;
164
178
  align-items: center;
165
179
  gap: 12px;
180
+ flex: 0 0 ${k}px;
166
181
  height: ${k}px;
167
182
  line-height: ${k}px;
168
183
  padding: 0 ${a.pageGutter}px;
@@ -187,10 +202,48 @@
187
202
  &:hover {
188
203
  background: rgba(0, 0, 0, 0.05);
189
204
  }
190
- `,z=o(v)`
205
+ `,z=o.button`
206
+ position: absolute;
207
+ top: ${({$top:e})=>e}px;
208
+ left: ${({$left:e})=>e}px;
209
+ transform: translate(-50%, -50%);
210
+ z-index: 30;
211
+ width: 28px;
212
+ height: 28px;
213
+ padding: 0;
214
+ display: flex;
215
+ align-items: center;
216
+ justify-content: center;
217
+ font-size: 12px;
218
+ color: var(--hisd3-edge-trigger-color, #fff);
219
+ background: var(--hisd3-edge-trigger-bg, var(--ant-color-primary));
220
+ border: 2px solid var(--ant-color-bg-layout, #f3f2f0);
221
+ border-radius: 50%;
222
+ cursor: pointer;
223
+ box-shadow: 0 1px 3px rgba(16, 15, 14, 0.12),
224
+ 0 4px 12px rgba(16, 15, 14, 0.14);
225
+ transition: left 0.2s ease, filter 0.15s ease;
226
+
227
+ &:hover {
228
+ filter: brightness(1.08);
229
+ }
230
+
231
+ &:active {
232
+ filter: brightness(0.94);
233
+ }
234
+
235
+ &:focus-visible {
236
+ outline: 2px solid var(--ant-color-primary);
237
+ outline-offset: 2px;
238
+ }
239
+
240
+ & svg {
241
+ display: block;
242
+ }
243
+ `,L=o(v)`
244
+ flex: 1 0 auto;
191
245
  padding: 24px ${a.pageGutter}px 40px;
192
- min-height: calc(100vh - ${k}px);
193
- `,L=o.div`
246
+ `,A=o.div`
194
247
  flex: 0 0 auto;
195
248
  display: flex;
196
249
  flex-direction: column;
@@ -204,14 +257,14 @@
204
257
  & .ant-dropdown-link {
205
258
  color: inherit;
206
259
  }
207
- `,$=o.a`
260
+ `,N=o.a`
208
261
  display: flex;
209
262
  align-items: center;
210
263
  justify-content: center;
211
264
  cursor: pointer;
212
265
  color: inherit;
213
266
  gap: 10px;
214
- `,A=o.span`
267
+ `,O=o.span`
215
268
  width: 34px;
216
269
  height: 34px;
217
270
  flex: 0 0 auto;
@@ -222,15 +275,15 @@
222
275
  font-weight: 700;
223
276
  color: var(--ant-color-text);
224
277
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"#D9D6D2"};
225
- `,N=o.span`
278
+ `,R=o.span`
226
279
  flex: 1 1 auto;
227
280
  min-width: 0;
228
- `,O=o.span`
281
+ `,F=o.span`
229
282
  display: flex;
230
283
  align-items: flex-start;
231
284
  justify-content: space-between;
232
285
  gap: 8px;
233
- `,R=o.h3`
286
+ `,H=o.h3`
234
287
  margin: 0;
235
288
  font-family: var(--font-body);
236
289
  font-size: 14px;
@@ -254,7 +307,7 @@
254
307
  & svg {
255
308
  display: block;
256
309
  }
257
- `,F=o.span`
310
+ `,M=o.span`
258
311
  display: block;
259
312
  margin-top: 3px;
260
313
  font-size: 11px;
@@ -265,12 +318,16 @@
265
318
  overflow: hidden;
266
319
  text-overflow: ellipsis;
267
320
  white-space: nowrap;
268
- `,H=(e,t)=>e.key??e.path??`menu-${t}`,M=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=H(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:M(e.children,t)}:{key:o,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),U=(e,t)=>r.createElement("a",{href:e.path||"/"},t),_=({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($,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(A,{$src:o,"aria-hidden":!0,children:!o&&h}),!l&&e.jsxs(N,{children:[e.jsxs(O,{children:[e.jsx(R,{title:r.fullName,children:r.fullName}),e.jsx(B,{children:e.jsx(i.DownOutlined,{})})]}),r.positionType&&e.jsx(F,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:P}=t.Layout,G=a.pageGutter,W=o.div`
321
+ `,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`
322
+ display: contents;
323
+ `,q=o.div`
269
324
  display: flex;
270
325
  align-items: center;
271
326
  gap: 16px;
272
327
  height: ${a.topBarHeight}px; /* same as the sidebar brand block */
273
- padding: 0 ${G}px;
328
+ /* never shrink: these are flex items of the scrolling column */
329
+ flex: 0 0 ${a.topBarHeight}px;
330
+ padding: 0 ${K}px;
274
331
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
275
332
  background: var(--ant-color-bg-layout);
276
333
  position: sticky;
@@ -286,17 +343,18 @@
286
343
  .ant-breadcrumb ol {
287
344
  flex-wrap: nowrap;
288
345
  }
289
- `,K=o.div`
346
+ `,V=o.div`
290
347
  display: flex;
291
348
  align-items: center;
292
349
  gap: 10px;
293
350
  flex: 0 0 auto;
294
- `,q=o.div`
351
+ `,Y=o.div`
295
352
  display: flex;
296
353
  align-items: baseline;
297
354
  gap: 16px;
298
355
  flex-wrap: wrap;
299
- padding: 20px ${G}px 18px;
356
+ flex: 0 0 auto;
357
+ padding: 20px ${K}px 18px;
300
358
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
301
359
 
302
360
  h1 {
@@ -314,9 +372,10 @@
314
372
  font-size: 15px;
315
373
  color: var(--ant-color-text-secondary);
316
374
  }
317
- `,X=o.div`
318
- padding: 24px ${G}px 40px;
319
- `,V=o.button`
375
+ `,J=o.div`
376
+ flex: 1 0 auto;
377
+ padding: 24px ${K}px 40px;
378
+ `,Q=o.button`
320
379
  position: relative;
321
380
  width: ${({$size:e=40})=>e}px;
322
381
  height: ${({$size:e=40})=>e}px;
@@ -325,7 +384,7 @@
325
384
  align-items: center;
326
385
  justify-content: center;
327
386
  padding: 0;
328
- font-size: ${({$size:e=40})=>Math.round(.45*e)}px;
387
+ font-size: ${({$size:e=40})=>Math.round(.54*e)}px;
329
388
  line-height: 1;
330
389
  color: var(--ant-color-text);
331
390
  background: var(--hisd3-control-bg, #e6e4e1);
@@ -339,21 +398,37 @@
339
398
  }
340
399
 
341
400
  /* open state: tinted with the app's primary, like Facebook's blue */
342
- &[aria-expanded="true"] {
343
- background: var(--ant-color-primary-bg);
344
- color: var(--ant-color-primary);
345
- }
401
+ ${({$open:e})=>e?"\n background: var(--ant-color-primary-bg);\n color: var(--ant-color-primary);\n &:hover { background: var(--ant-color-primary-bg-hover); }\n ":""}
346
402
 
347
403
  &:focus-visible {
348
404
  outline: 2px solid var(--ant-color-primary);
349
405
  outline-offset: 2px;
350
406
  }
351
407
 
352
- .ant-badge {
353
- color: inherit;
408
+ & > .anticon {
354
409
  line-height: 0;
410
+ /* the stock bell is narrow; widen it a touch for a fuller silhouette */
411
+ transform: scaleX(var(--hisd3-bell-stretch, 1.12));
355
412
  }
356
- `,Y=o.div`
413
+ `,Z=o.span`
414
+ position: absolute;
415
+ top: ${({$size:e})=>-Math.round(.05*e)}px;
416
+ right: ${({$size:e})=>-Math.round(.05*e)}px;
417
+ min-width: 18px;
418
+ height: 18px;
419
+ padding: 0 5px;
420
+ display: flex;
421
+ align-items: center;
422
+ justify-content: center;
423
+ font-size: 11px;
424
+ font-weight: 700;
425
+ line-height: 1;
426
+ color: #fff;
427
+ background: var(--ant-color-error, #e5401c);
428
+ border: 2px solid var(--ant-color-bg-layout, #f3f2f0);
429
+ border-radius: 999px;
430
+ pointer-events: none;
431
+ `,ee=o.div`
357
432
  width: 360px;
358
433
  max-width: calc(100vw - 32px);
359
434
  overflow: hidden;
@@ -362,7 +437,7 @@
362
437
  border-radius: var(--hisd3-popup-radius, 10px);
363
438
  box-shadow: 0 2px 6px rgba(16, 15, 14, 0.06),
364
439
  0 12px 32px rgba(16, 15, 14, 0.14);
365
- `,J=o.div`
440
+ `,te=o.div`
366
441
  display: flex;
367
442
  align-items: center;
368
443
  justify-content: space-between;
@@ -390,10 +465,10 @@
390
465
  text-decoration: underline;
391
466
  }
392
467
  }
393
- `,Q=o.div`
468
+ `,re=o.div`
394
469
  max-height: 380px;
395
470
  overflow-y: auto;
396
- `,Z=o.button`
471
+ `,oe=o.button`
397
472
  display: flex;
398
473
  align-items: flex-start;
399
474
  gap: 12px;
@@ -408,7 +483,7 @@
408
483
  &:hover {
409
484
  background: ${({$unread:e})=>e?"var(--ant-color-primary-bg-hover)":"rgba(0,0,0,0.04)"};
410
485
  }
411
- `,ee=o.span`
486
+ `,ne=o.span`
412
487
  width: 36px;
413
488
  height: 36px;
414
489
  flex: 0 0 auto;
@@ -419,7 +494,7 @@
419
494
  color: var(--ant-color-text);
420
495
  border-radius: 50%;
421
496
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.06)"};
422
- `,te=o.span`
497
+ `,ie=o.span`
423
498
  flex: 1 1 auto;
424
499
  min-width: 0;
425
500
 
@@ -444,14 +519,14 @@
444
519
  font-size: 12px;
445
520
  color: var(--ant-color-text-tertiary);
446
521
  }
447
- `,re=o.span`
522
+ `,ae=o.span`
448
523
  width: 8px;
449
524
  height: 8px;
450
525
  margin-top: 6px;
451
526
  flex: 0 0 auto;
452
527
  border-radius: 50%;
453
528
  background: var(--ant-color-primary);
454
- `,oe=o.button`
529
+ `,le=o.button`
455
530
  display: block;
456
531
  width: 100%;
457
532
  padding: 12px 16px;
@@ -468,9 +543,9 @@
468
543
  &:hover {
469
544
  background: rgba(0, 0, 0, 0.04);
470
545
  }
471
- `,ie=o.div`
546
+ `,se=o.div`
472
547
  padding: 28px 16px;
473
- `,ne=o.button`
548
+ `,de=o.button`
474
549
  position: relative;
475
550
  width: ${({$size:e})=>e}px;
476
551
  height: ${({$size:e})=>e}px;
@@ -504,7 +579,7 @@
504
579
  display: block;
505
580
  border-radius: inherit;
506
581
  }
507
- `,ae=o.span`
582
+ `,pe=o.span`
508
583
  position: absolute;
509
584
  right: ${({$size:e})=>-Math.round(.05*e)}px;
510
585
  bottom: ${({$size:e})=>-Math.round(.05*e)}px;
@@ -520,15 +595,12 @@
520
595
  border-radius: 50%;
521
596
  pointer-events: none;
522
597
 
523
- ${ne}[aria-expanded="true"] & {
524
- background: var(--ant-color-primary);
525
- color: #fff;
526
- }
598
+ ${({$open:e})=>e?"\n background: var(--ant-color-primary);\n color: #fff;\n ":""}
527
599
 
528
600
  & svg {
529
601
  display: block;
530
602
  }
531
- `,le=o.div`
603
+ `,ce=o.div`
532
604
  display: flex;
533
605
  align-items: center;
534
606
  gap: 12px;
@@ -563,7 +635,7 @@
563
635
  overflow: hidden;
564
636
  text-overflow: ellipsis;
565
637
  }
566
- `,se=o.span`
638
+ `,he=o.span`
567
639
  width: 40px;
568
640
  height: 40px;
569
641
  flex: 0 0 auto;
@@ -574,7 +646,7 @@
574
646
  font-weight: 700;
575
647
  border-radius: 50%;
576
648
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.08)"};
577
- `,de=o.div`
649
+ `,xe=o.div`
578
650
  overflow: hidden;
579
651
  background: var(--ant-color-bg-elevated);
580
652
  border: 1px solid var(--ant-color-border-secondary);
@@ -597,17 +669,17 @@
597
669
  border-radius: 8px;
598
670
  font-size: 14px;
599
671
  }
600
- `,pe=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("")||"?",ce=o.div`
672
+ `,ge=e=>(e||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?",ue=o.div`
601
673
  display: flex;
602
674
  align-items: center;
603
675
  gap: 8px;
604
676
  flex: 0 0 auto;
605
- `,he=o.span`
677
+ `,be=o.span`
606
678
  width: 2px;
607
679
  height: 24px;
608
680
  background: var(--ant-color-border-secondary);
609
681
  flex: 0 0 auto;
610
- `,ue=o.div`
682
+ `,me=o.div`
611
683
  .ant-table-wrapper .ant-table {
612
684
  background: transparent;
613
685
  }
@@ -657,14 +729,14 @@
657
729
  .hisd3-cell-muted {
658
730
  color: var(--ant-color-text-tertiary);
659
731
  }
660
- `,xe=o.div`
732
+ `,fe=o.div`
661
733
  padding: 22px 0 14px;
662
734
  font-size: 13px;
663
735
  font-weight: 600;
664
736
  letter-spacing: 0.1em;
665
737
  text-transform: uppercase;
666
738
  color: var(--ant-color-text-tertiary);
667
- `,ge=o.div`
739
+ `,ye=o.div`
668
740
  display: flex;
669
741
  align-items: center;
670
742
  gap: 24px;
@@ -724,7 +796,7 @@
724
796
  font-weight: 700;
725
797
  }
726
798
  }
727
- `,be=o.div`
799
+ `,ve=o.div`
728
800
  display: inline-flex;
729
801
  border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
730
802
 
@@ -748,7 +820,7 @@
748
820
  color: #fff;
749
821
  }
750
822
  }
751
- `,me=e=>`Total ${e.toLocaleString()} items`;const ye=o(t.Tabs)`
823
+ `,we=e=>`Total ${e.toLocaleString()} items`;const Se=o(t.Tabs)`
752
824
  &.ant-tabs .ant-tabs-nav {
753
825
  margin: 0;
754
826
 
@@ -781,7 +853,7 @@
781
853
  .ant-tabs-tab-active .hisd3-tab-count {
782
854
  color: var(--ant-color-primary);
783
855
  }
784
- `,fe={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)"},ve={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`
856
+ `,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`
785
857
  display: inline-flex;
786
858
  align-items: center;
787
859
  gap: 6px;
@@ -796,8 +868,8 @@
796
868
  border: var(--hisd3-rule-width, 1px) solid transparent;
797
869
  border-radius: 0;
798
870
 
799
- ${({$variant:e,$tone:t})=>{const r=fe[t],o=ve[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);"}}}
800
- `,Se=o(t.Button)`
871
+ ${({$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);"}}}
872
+ `,Te=o(t.Button)`
801
873
  &.ant-btn {
802
874
  display: inline-flex;
803
875
  align-items: center;
@@ -829,7 +901,7 @@
829
901
  .anticon {
830
902
  font-size: 1.05em;
831
903
  }
832
- `,ke={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},Ie=o(t.Input)`
904
+ `,De={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},Ee=o(t.Input)`
833
905
  &.ant-input,
834
906
  &.ant-input-affix-wrapper {
835
907
  border-width: var(--hisd3-rule-width, 1px);
@@ -841,7 +913,7 @@
841
913
  color: var(--ant-color-text-tertiary);
842
914
  font-size: 18px;
843
915
  }
844
- `,je=o(Ie)`
916
+ `,$e=o(Ee)`
845
917
  &.ant-input-affix-wrapper {
846
918
  background: var(--hisd3-bg-filled, #e6e4e1);
847
919
  border-color: var(--ant-color-border-secondary);
@@ -875,5 +947,5 @@
875
947
  font-size: 18px;
876
948
  }
877
949
  }
878
- `;var Te,De,Ee,Ce,ze,Le,$e,Ae,Ne,Oe,Re,Be,Fe;exports.ThemeStyle=void 0,(Te=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Te.STANDARD="standard",exports.ThemeStyleRadius=void 0,(De=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",De.STANDARD="16px",exports.ThemeMode=void 0,(Ee=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Ee.SEMI_DARK="semi-dark",Ee.DARK="dark",exports.LayoutType=void 0,(Ce=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",Ce.BOXED="boxed",Ce.FRAMED="framed",exports.MenuStyle=void 0,(ze=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",ze.STANDARD="standard",ze.ROUNDED="rounded",ze.ROUNDED_REVERSE="rounded-reverse",ze.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(Le=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",Le.MINI="mini",Le.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",Le.STANDARD="standard",Le.HEADER_USER="user-header",Le.HEADER_USER_MINI="user-mini-header",Le.DRAWER="drawer",Le.BIT_BUCKET="bit-bucket",Le.H_DEFAULT="h-default",Le.HOR_HEADER_FIXED="hor-header-fixed",Le.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,($e=exports.FooterType||(exports.FooterType={})).FIXED="fixed",$e.FLUID="fluid",exports.LayoutDirection=void 0,(Ae=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",Ae.LTR="ltr",exports.HeaderType=void 0,(Ne=exports.HeaderType||(exports.HeaderType={})).DARK="dark",Ne.LIGHT="light",exports.RouteTransition=void 0,(Oe=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",Oe.FADE="fade",Oe.SLIDE_LEFT="slideLeft",Oe.SLIDE_RIGHT="slideRight",Oe.SLIDE_UP="slideUp",Oe.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(Re=exports.Fonts||(exports.Fonts={})).LIGHT="300",Re.REGULAR="400",Re.MEDIUM="500",Re.BOLD="600",exports.AuthType=void 0,(Be=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",Be.AWS_COGNITO="aws_cognito",Be.AUTH0="auth0",Be.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(Fe=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",Fe.SLIDEUPOUT="transition.slideUpOut",Fe.SLIDEDOWNIN="transition.slideDownIn",Fe.SLIDEDOWNOUT="transition.slideDownOut",Fe.SLIDELEFTIN="transition.slideLeftIn",Fe.SLIDELEFTOUT="transition.slideLeftOut",Fe.SLIDERIGHTIN="transition.slideRightIn",Fe.SLIDERIGHTOUT="transition.slideRightOut",Fe.FADEIN="transition.fadeIn",Fe.FADEOUT="transition.fadeOut";var He,Me;exports.MessageType=void 0,(He=exports.MessageType||(exports.MessageType={}))[He.MEDIA=1]="MEDIA",He[He.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(Me=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",Me.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:u=!1,className:x})=>{const{modal:g}=t.App.useApp(),[b,m]=r.useState(!1),y=[...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?g.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:y,onClick:()=>m(!1)},popupRender:t=>e.jsxs(de,{children:[e.jsxs(le,{children:[e.jsx(se,{$src:n,children:!n&&pe(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(ne,{type:"button",className:x,$shape:c,$size:h,"aria-label":`Account menu for ${o.fullName}`,children:[n?e.jsx("img",{src:n,alt:""}):pe(o.fullName),!u&&e.jsx(ae,{$size:h,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=({variant:t="secondary",...r})=>e.jsx(Se,{...ke[t],...r}),exports.HISD3HeaderActions=({children:t,divided:o=!1,className:i})=>{const n=r.Children.toArray(t).filter(Boolean);return e.jsx(ce,{className:i,children:n.map(((t,i)=>e.jsxs(r.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(he,{}),t]},i)))})},exports.HISD3Input=t=>e.jsx(Ie,{...t}),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:u=40,className:x})=>{const[g,b]=r.useState(!1),m=n??o.filter((e=>e.unread)).length,y=e.jsxs(Y,{children:[e.jsxs(J,{children:[e.jsx("h4",{children:l}),s&&m>0&&e.jsx("button",{type:"button",onClick:s,children:"Mark all as read"})]}),a?e.jsx(ie,{style:{textAlign:"center"},children:e.jsx(t.Spin,{})}):0===o.length?e.jsx(ie,{children:e.jsx(t.Empty,{image:t.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(Q,{children:o.map((t=>e.jsxs(Z,{type:"button",$unread:t.unread,onClick:()=>{t.onClick?.(t),b(!1),h?.(!1)},children:[e.jsx(ee,{$src:t.avatarSrc,children:!t.avatarSrc&&(t.icon??e.jsx(i.BellOutlined,{}))}),e.jsxs(te,{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(re,{})]},t.id)))}),d&&e.jsx(oe,{type:"button",onClick:()=>{d(),b(!1),h?.(!1)},children:p})]});return e.jsx(t.Dropdown,{open:g,onOpenChange:e=>{b(e),h?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>y,children:e.jsx(V,{type:"button",$size:u,className:x,"aria-label":`${l}${m?` (${m} unread)`:""}`,children:e.jsx(t.Badge,{count:m,size:"small",offset:[2,-2],children:e.jsx(i.BellOutlined,{})})})})},exports.HISD3PageBody=X,exports.HISD3PageHeader=({title:r,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:l=!1,className:s})=>e.jsxs("header",{className:s,children:[!l&&e.jsxs(W,{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(K,{children:n})]}),e.jsxs(q,{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??u({primary:i,radius:n,borders:a,lineWidth:l,overrides:s})),[d,i,n,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(je,{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:u,settingsUrl:x,antdTheme:b,renderMenuLink:m=U,headerExtra:f,userMenuItems:v,onCollapse:k,collapsed:L=!1,loading:$=!1,hideSidebar:A=!1,layoutTop:N=!1,hideCollapseTrigger:O=!1,siderWidth:R=w,bareContent:B=!1,hideHeaderBar:F=!1,brandHref:G="/",hideAccountCard:W=!1})=>{const K=y(),q=void 0===b?K?null:g:b,[X,V]=r.useState(L);r.useEffect((()=>{V(L)}),[L]);const Y=r.useMemo((()=>M(d,m)),[d,m]),J=r.useMemo((()=>((e,t)=>{let r;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=H(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]),[Q,Z]=r.useState((()=>J.openKeys));r.useEffect((()=>{Z((e=>Array.from(new Set([...e,...J.openKeys]))))}),[J.openKeys.join("|")]);const ee=e=>{V(e),k?.(e)},te=J.selectedKey?[J.selectedKey]:[],re=e.jsxs(T,{href:G,$collapsed:!N&&X,children:[l?e.jsx("img",{src:l,alt:s}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(N||!X)&&e.jsx("h1",{children:s})]}),oe=B?n:e.jsx(z,{children:n});if("undefined"==typeof document)return null;const ie=e.jsx(t.App,{component:!1,children:e.jsx(t.Spin,{spinning:$,size:"large",children:A?e.jsx(e.Fragment,{children:n}):N?e.jsxs(I,{children:[e.jsxs(D,{children:[re,e.jsx(t.Menu,{mode:"horizontal",items:Y,selectedKeys:te}),f,!W&&e.jsx(_,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,placement:"bottomRight",extraItems:v})]}),oe]}):e.jsxs(I,{hasSider:!0,children:[e.jsxs(P,{className:"hisd3-sider",width:R,collapsedWidth:S,collapsible:!0,collapsed:X,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&ee(!0)},children:[re,e.jsx(j,{className:X?"hisd3-collapsed":void 0,children:e.jsx(t.Menu,{mode:"inline",theme:"light",inlineCollapsed:X,items:Y,selectedKeys:te,openKeys:X?void 0:Q,onOpenChange:e=>Z(e)})}),!W&&e.jsx(_,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,collapsed:X,placement:"topRight",extraItems:v})]}),e.jsxs(t.Layout,{style:{background:"transparent"},children:[!F&&e.jsxs(E,{children:[!O&&e.jsx(C,{type:"button","aria-label":X?"Expand menu":"Collapse menu",onClick:()=>ee(!X),children:X?e.jsx(i.MenuUnfoldOutlined,{}):e.jsx(i.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),f]}),oe]})]})})});return K&&!u?q?e.jsx(t.ConfigProvider,{theme:q,children:ie}):ie:e.jsx(o.ThemeProvider,{theme:u??{},children:q?e.jsx(t.ConfigProvider,{theme:q,children:ie}):ie})},exports.HISD3Table=function({pagination:r,footer:o,...n}){const a=r||void 0,l=a?.pageSizeOptions??[10,20,50];return e.jsxs(ue,{children:[e.jsx(t.Table,{...n,pagination:!1}),o&&e.jsx(xe,{children:o}),a&&e.jsxs(ge,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??me)(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(be,{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(ye,{...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_NEUTRALS=s,exports.HISD3_PRESETS=l,exports.HeaderIconButton=V,exports.UserMenu=_,exports.borderVarsCss=x,exports.createHisd3Theme=u,exports.getInitials=pe,exports.hisd3AntdTheme=g,exports.resolvePrimary=c,exports.tint=h,exports.useInsideHISD3Provider=y;
950
+ `;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: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(n.SettingOutlined,{}),label:"Settings",onClick:()=>{l?l():a&&(window.location.href=a)}}]:[],{key:"logout",icon:e.jsx(n.LogoutOutlined,{}),label:"Logout",onClick:()=>{d?u.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(xe,{children:[e.jsxs(ce,{children:[e.jsx(he,{$src:i,children:!i&&ge(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:g,$shape:c,$size:h,$open:b,"aria-label":`Account menu for ${o.fullName}`,children:[i?e.jsx("img",{src:i,alt:""}):ge(o.fullName),!x&&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(ue,{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:x=40,icon:g,className:u})=>{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:x,$open:b,className:u,"aria-label":`${l}${f?` (${f} unread)`:""}`,children:[g??e.jsx(n.BellFilled,{}),f>0&&e.jsx(Z,{$size:x,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??x({primary:n,radius:i,borders:a,lineWidth:l,overrides:s})),[d,n,i,a,l,s]),u=r.useMemo((()=>g(a,l)),[a,l]);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($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:x,settingsUrl:g,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:u: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:g,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:g,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&&!x?Z?e.jsx(t.ConfigProvider,{theme:Z,children:he}):he:e.jsx(o.ThemeProvider,{theme:x??{},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=g,exports.createHisd3Theme=x,exports.getInitials=ge,exports.hisd3AntdTheme=u,exports.resolvePrimary=c,exports.tint=h,exports.useInsideHISD3Provider=f;
879
951
  //# sourceMappingURL=index.cjs.js.map