hisd3-ui-kit 4.1.0 → 4.2.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.js CHANGED
@@ -1,7 +1,13 @@
1
- import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigProvider as n,App as i,Layout as o,Dropdown as a,Spin as l,Menu as d,Breadcrumb as s,Empty as p,Badge as c,Table as h,Pagination as g,Tabs as u,Button as b,Input as m}from"antd";import x,{createContext as f,useContext as y,useMemo as v,createElement as w,useState as k,useEffect as S}from"react";import I,{ThemeProvider as E}from"styled-components";import{SettingOutlined as C,LogoutOutlined as z,DownOutlined as D,ExclamationCircleOutlined as $,MenuUnfoldOutlined as T,MenuFoldOutlined as L,BellOutlined as N,LeftOutlined as B,RightOutlined as A,SearchOutlined as F}from"@ant-design/icons";function R(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}R('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}');R('@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 O={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28},U={red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},H={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",white:"#FFFFFF"},M={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},j="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",G=800,W=400,_=(e="red")=>U[e]??e,P=(e,t)=>{const r=e.replace("#",""),n=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(n,16),o=i>>8&255,a=255&i,l=e=>Math.round(e+(255-e)*t);return`#${[l(i>>16&255),l(o),l(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},K=({primary:e,radius:t=0,borders:r="hairline",lineWidth:n,overrides:i}={})=>{const o=_(e),a=M[r]??M.hairline,l=n??a.width,d={...H,border:a.border,borderSecondary:a.borderSecondary},s={cssVar:{key:"hisd3"},token:{colorPrimary:o,colorInfo:o,colorLink:o,colorPrimaryBg:P(o,.92),colorPrimaryBgHover:P(o,.86),colorPrimaryBorder:P(o,.6),fontFamily:j,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:l,colorBgLayout:d.bgLayout,colorBgContainer:d.bgContainer,colorBgElevated:d.bgElevated,colorText:d.text,colorTextSecondary:d.textSecondary,colorTextTertiary:d.textTertiary,colorTextHeading:d.text,colorBorder:d.border,colorBorderSecondary:d.borderSecondary,colorSplit:d.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:d.bgLayout,headerBg:d.bgLayout,bodyBg:d.bgLayout,headerPadding:`0 ${O.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:d.text,itemHoverColor:d.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:P(o,.9),itemSelectedColor:o,itemActiveBg:P(o,.86),subMenuItemSelectedColor:o,groupTitleColor:d.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:40,itemPaddingInline:O.pageGutter,iconSize:16,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",defaultBorderColor:d.border,defaultColor:d.text,defaultBg:d.bgLayout,defaultHoverBg:d.white,defaultHoverBorderColor:d.borderStrong,defaultHoverColor:d.text,defaultActiveBorderColor:d.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:d.border,hoverBorderColor:d.borderStrong,activeBorderColor:d.borderStrong,paddingInline:16},Select:{optionSelectedBg:P(o,.9),colorBorder:d.border},Table:{headerBg:"transparent",headerColor:d.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:d.borderSecondary,rowHoverBg:"rgba(0,0,0,0.03)",cellPaddingBlock:20,cellPaddingInline:16,cellFontSize:16,footerBg:"transparent"},Tabs:{inkBarColor:o,itemColor:d.text,itemSelectedColor:o,itemHoverColor:o,titleFontSize:18,horizontalItemGutter:48,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:d.bgLayout,itemActiveBg:o,itemSize:48,itemInputBg:d.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:d.textTertiary,lastItemColor:d.text,linkColor:d.textTertiary,linkHoverColor:o,separatorColor:d.textTertiary},Card:{headerFontSize:20}}};return i?{...s,...i,token:{...s.token,...i.token},components:{...s.components,...i.components}}:s},X=(e="hairline",t)=>`:root{--hisd3-rule-width:${t??(M[e]??M.hairline).width}px;--hisd3-control-bg:${H.bgFilled};--hisd3-control-bg-hover:${H.bgFilledHover};}`,V=K(),Y={primary:U.red,primaryLight:P(U.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},q=f(!1),J=()=>y(q),Q=({primary:r,radius:o,borders:a="hairline",lineWidth:l,overrides:d,theme:s,styledTheme:p={},children:c})=>{const h=v((()=>s??K({primary:r,radius:o,borders:a,lineWidth:l,overrides:d})),[s,r,o,a,l,d]),g=v((()=>X(a,l)),[a,l]);return e(q.Provider,{value:!0,children:[t("style",{dangerouslySetInnerHTML:{__html:g}}),t(n,{theme:h,children:t(E,{theme:p,children:t(i,{component:!1,children:c})})})]})},{Header:Z,Content:ee}=o,te=O.siderWidth,re=O.siderCollapsedWidth,ne=O.topBarHeight,ie=I(o)`
2
- min-height: 100vh;
1
+ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigProvider as n,App as i,Layout as o,Dropdown as a,Spin as l,Menu as d,Breadcrumb as s,Empty as p,Badge as c,Table as h,Pagination as g,Tabs as u,Button as b,Input as m}from"antd";import x,{createContext as f,useContext as y,useMemo as v,createElement as w,useState as k,useEffect as S}from"react";import I,{ThemeProvider as C}from"styled-components";import{SettingOutlined as E,LogoutOutlined as $,DownOutlined as z,ExclamationCircleOutlined as D,MenuUnfoldOutlined as T,MenuFoldOutlined as L,BellOutlined as N,LeftOutlined as B,RightOutlined as A,SearchOutlined as F}from"@ant-design/icons";function R(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}R('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}');R('@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 O={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28},U={red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},H={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",white:"#FFFFFF"},M={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},j="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",G=800,W=400,_=(e="red")=>U[e]??e,P=(e,t)=>{const r=e.replace("#",""),n=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(n,16),o=i>>8&255,a=255&i,l=e=>Math.round(e+(255-e)*t);return`#${[l(i>>16&255),l(o),l(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},K=({primary:e,radius:t=0,borders:r="hairline",lineWidth:n,overrides:i}={})=>{const o=_(e),a=M[r]??M.hairline,l=n??a.width,d={...H,border:a.border,borderSecondary:a.borderSecondary},s={cssVar:{key:"hisd3"},token:{colorPrimary:o,colorInfo:o,colorLink:o,colorPrimaryBg:P(o,.92),colorPrimaryBgHover:P(o,.86),colorPrimaryBorder:P(o,.6),fontFamily:j,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:l,colorBgLayout:d.bgLayout,colorBgContainer:d.bgContainer,colorBgElevated:d.bgElevated,colorText:d.text,colorTextSecondary:d.textSecondary,colorTextTertiary:d.textTertiary,colorTextHeading:d.text,colorBorder:d.border,colorBorderSecondary:d.borderSecondary,colorSplit:d.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:d.bgLayout,headerBg:d.bgLayout,bodyBg:d.bgLayout,headerPadding:`0 ${O.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:d.text,itemHoverColor:d.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:P(o,.9),itemSelectedColor:o,itemActiveBg:P(o,.86),subMenuItemSelectedColor:o,groupTitleColor:d.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:40,itemPaddingInline:O.pageGutter,iconSize:16,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",defaultBorderColor:d.border,defaultColor:d.text,defaultBg:d.bgLayout,defaultHoverBg:d.white,defaultHoverBorderColor:d.borderStrong,defaultHoverColor:d.text,defaultActiveBorderColor:d.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:d.border,hoverBorderColor:d.borderStrong,activeBorderColor:d.borderStrong,paddingInline:16},Select:{optionSelectedBg:P(o,.9),colorBorder:d.border},Table:{headerBg:"transparent",headerColor:d.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:d.borderSecondary,rowHoverBg:"rgba(0,0,0,0.03)",cellPaddingBlock:20,cellPaddingInline:16,cellFontSize:16,footerBg:"transparent"},Tabs:{inkBarColor:o,itemColor:d.text,itemSelectedColor:o,itemHoverColor:o,titleFontSize:18,horizontalItemGutter:48,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:d.bgLayout,itemActiveBg:o,itemSize:48,itemInputBg:d.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:d.textTertiary,lastItemColor:d.text,linkColor:d.textTertiary,linkHoverColor:o,separatorColor:d.textTertiary},Card:{headerFontSize:20}}};return i?{...s,...i,token:{...s.token,...i.token},components:{...s.components,...i.components}}:s},X=(e="hairline",t)=>`:root{--hisd3-rule-width:${t??(M[e]??M.hairline).width}px;--hisd3-control-bg:${H.bgFilled};--hisd3-control-bg-hover:${H.bgFilledHover};}`,V=K(),Y={primary:U.red,primaryLight:P(U.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},q=f(!1),J=()=>y(q),Q=({primary:r,radius:o,borders:a="hairline",lineWidth:l,overrides:d,theme:s,styledTheme:p={},children:c})=>{const h=v((()=>s??K({primary:r,radius:o,borders:a,lineWidth:l,overrides:d})),[s,r,o,a,l,d]),g=v((()=>X(a,l)),[a,l]);return e(q.Provider,{value:!0,children:[t("style",{dangerouslySetInnerHTML:{__html:g}}),t(n,{theme:h,children:t(C,{theme:p,children:t(i,{component:!1,children:c})})})]})},{Header:Z,Content:ee}=o,te=O.siderWidth,re=O.siderCollapsedWidth,ne=O.topBarHeight,ie=I(o)`
3
2
  background: var(--ant-color-bg-layout);
4
3
 
4
+ /*
5
+ * App-shell mode: the shell is exactly one viewport tall and never scrolls,
6
+ * so the document has no scrollbar and cannot rubber-band. The content
7
+ * column (StyledMain) is the scroller instead.
8
+ */
9
+ ${({$appShell:e})=>e?"height: 100vh; max-height: 100vh; overflow: hidden;":"min-height: 100vh;"}
10
+
5
11
  /*
6
12
  * The Sider is rendered as a plain antd <Sider> (not styled(Sider)) because
7
13
  * styled-components would swallow its \`theme\` prop; style it from here.
@@ -9,7 +15,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
9
15
  > .ant-layout-sider.hisd3-sider {
10
16
  position: sticky;
11
17
  top: 0;
12
- height: 100vh;
18
+ height: ${({$appShell:e})=>e?"100%":"100vh"};
13
19
  overflow: hidden;
14
20
  background: var(--ant-color-bg-layout);
15
21
  border-right: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
@@ -20,10 +26,16 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
20
26
  height: 100%;
21
27
  }
22
28
  }
23
- `,oe=I.div`
29
+ `,oe=I(o)`
30
+ background: transparent;
31
+ min-width: 0;
32
+
33
+ ${({$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 ":""}
34
+ `,ae=I.div`
24
35
  flex: 1 1 auto;
25
36
  overflow-y: auto;
26
37
  overflow-x: hidden;
38
+ overscroll-behavior: contain;
27
39
  padding-top: 4px;
28
40
 
29
41
  .ant-menu-inline,
@@ -95,7 +107,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
95
107
  &.hisd3-collapsed .ant-menu-item-group-title {
96
108
  display: none;
97
109
  }
98
- `,ae=I.a`
110
+ `,le=I.a`
99
111
  display: flex;
100
112
  align-items: center;
101
113
  gap: 10px;
@@ -137,10 +149,11 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
137
149
  overflow: hidden;
138
150
  text-overflow: ellipsis;
139
151
  }
140
- `,le=I(Z)`
152
+ `,de=I(Z)`
141
153
  display: flex;
142
154
  align-items: center;
143
155
  gap: 24px;
156
+ flex: 0 0 ${ne}px;
144
157
  height: ${ne}px;
145
158
  line-height: ${ne}px;
146
159
  padding: 0 ${O.pageGutter}px;
@@ -159,10 +172,11 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
159
172
  font-size: 14px;
160
173
  font-weight: 500;
161
174
  }
162
- `,de=I(Z)`
175
+ `,se=I(Z)`
163
176
  display: flex;
164
177
  align-items: center;
165
178
  gap: 12px;
179
+ flex: 0 0 ${ne}px;
166
180
  height: ${ne}px;
167
181
  line-height: ${ne}px;
168
182
  padding: 0 ${O.pageGutter}px;
@@ -171,7 +185,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
171
185
  z-index: 99;
172
186
  background: var(--ant-color-bg-layout);
173
187
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
174
- `,se=I.button`
188
+ `,pe=I.button`
175
189
  border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
176
190
  background: transparent;
177
191
  cursor: pointer;
@@ -187,10 +201,10 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
187
201
  &:hover {
188
202
  background: rgba(0, 0, 0, 0.05);
189
203
  }
190
- `,pe=I(ee)`
204
+ `,ce=I(ee)`
205
+ flex: 1 0 auto;
191
206
  padding: 24px ${O.pageGutter}px 40px;
192
- min-height: calc(100vh - ${ne}px);
193
- `,ce=I.div`
207
+ `,he=I.div`
194
208
  flex: 0 0 auto;
195
209
  display: flex;
196
210
  flex-direction: column;
@@ -204,14 +218,14 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
204
218
  & .ant-dropdown-link {
205
219
  color: inherit;
206
220
  }
207
- `,he=I.a`
221
+ `,ge=I.a`
208
222
  display: flex;
209
223
  align-items: center;
210
224
  justify-content: center;
211
225
  cursor: pointer;
212
226
  color: inherit;
213
227
  gap: 10px;
214
- `,ge=I.span`
228
+ `,ue=I.span`
215
229
  width: 34px;
216
230
  height: 34px;
217
231
  flex: 0 0 auto;
@@ -222,15 +236,15 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
222
236
  font-weight: 700;
223
237
  color: var(--ant-color-text);
224
238
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"#D9D6D2"};
225
- `,ue=I.span`
239
+ `,be=I.span`
226
240
  flex: 1 1 auto;
227
241
  min-width: 0;
228
- `,be=I.span`
242
+ `,me=I.span`
229
243
  display: flex;
230
244
  align-items: flex-start;
231
245
  justify-content: space-between;
232
246
  gap: 8px;
233
- `,me=I.h3`
247
+ `,xe=I.h3`
234
248
  margin: 0;
235
249
  font-family: var(--font-body);
236
250
  font-size: 14px;
@@ -242,7 +256,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
242
256
  display: -webkit-box;
243
257
  -webkit-line-clamp: 2;
244
258
  -webkit-box-orient: vertical;
245
- `,xe=I.span`
259
+ `,fe=I.span`
246
260
  width: 20px;
247
261
  height: 22px;
248
262
  display: flex;
@@ -254,7 +268,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
254
268
  & svg {
255
269
  display: block;
256
270
  }
257
- `,fe=I.span`
271
+ `,ye=I.span`
258
272
  display: block;
259
273
  margin-top: 3px;
260
274
  font-size: 11px;
@@ -265,11 +279,15 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
265
279
  overflow: hidden;
266
280
  text-overflow: ellipsis;
267
281
  white-space: nowrap;
268
- `,ye=(e,t)=>e.key??e.path??`menu-${t}`,ve=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const n=ye(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:n,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:ve(e.children,t)}:{key:n,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),we=(e,t)=>w("a",{href:e.path||"/"},t),ke=({account:r,avatarSrc:n,settingsUrl:o,onLogout:l,collapsed:d=!1,placement:s="topRight",extraItems:p=[]})=>{const{modal:c}=i.useApp(),h=[...p??[],{key:"settings",icon:t(C,{}),label:"Settings",onClick:()=>{window.location.href=o??"/settings"}},{key:"logout",icon:t(z,{}),label:"Logout",onClick:()=>{c.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:t($,{}),onOk:l})}}],g=(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 t(ce,{className:"cr-user-info-light",$collapsed:d,$inHeader:"bottomRight"===s,children:t(a,{trigger:["click"],placement:s,menu:{items:h},children:e(he,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[t(ge,{$src:n,"aria-hidden":!0,children:!n&&g}),!d&&e(ue,{children:[e(be,{children:[t(me,{title:r.fullName,children:r.fullName}),t(xe,{children:t(D,{})})]}),r.positionType&&t(fe,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:Se}=o,Ie=({children:a,account:s,logoUrl:p,appName:c,menuItems:h,onLogout:g,pathname:u,avatarSrc:b,styledTheme:m,settingsUrl:x,antdTheme:f,renderMenuLink:y=we,headerExtra:w,userMenuItems:I,onCollapse:C,collapsed:z=!1,loading:D=!1,hideSidebar:$=!1,layoutTop:N=!1,hideCollapseTrigger:B=!1,siderWidth:A=te,bareContent:F=!1,hideHeaderBar:R=!1,brandHref:O="/",hideAccountCard:U=!1})=>{const H=J(),M=void 0===f?H?null:V:f,[j,G]=k(z);S((()=>{G(z)}),[z]);const W=v((()=>ve(h,y)),[h,y]),_=v((()=>((e,t)=>{let r;const n=(e,i)=>{(e??[]).forEach(((e,o)=>{const a=ye(e,o);if(e.path&&t.startsWith(e.path)){const n=t===e.path,o=e.path.length+(n?1:0);(!r||o>r.length)&&(r={key:a,parents:i,length:o})}e.children?.length&&n(e.children,[...i,a])}))};return n(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(h,u)),[h,u]),[P,K]=k((()=>_.openKeys));S((()=>{K((e=>Array.from(new Set([...e,..._.openKeys]))))}),[_.openKeys.join("|")]);const X=e=>{G(e),C?.(e)},Y=_.selectedKey?[_.selectedKey]:[],q=e(ae,{href:O,$collapsed:!N&&j,children:[p?t("img",{src:p,alt:c}):t("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(N||!j)&&t("h1",{children:c})]}),Q=F?a:t(pe,{children:a});if("undefined"==typeof document)return null;const Z=t(i,{component:!1,children:t(l,{spinning:D,size:"large",children:$?t(r,{children:a}):e(ie,N?{children:[e(le,{children:[q,t(d,{mode:"horizontal",items:W,selectedKeys:Y}),w,!U&&t(ke,{account:s,avatarSrc:b,settingsUrl:x,onLogout:g,placement:"bottomRight",extraItems:I})]}),Q]}:{hasSider:!0,children:[e(Se,{className:"hisd3-sider",width:A,collapsedWidth:re,collapsible:!0,collapsed:j,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&X(!0)},children:[q,t(oe,{className:j?"hisd3-collapsed":void 0,children:t(d,{mode:"inline",theme:"light",inlineCollapsed:j,items:W,selectedKeys:Y,openKeys:j?void 0:P,onOpenChange:e=>K(e)})}),!U&&t(ke,{account:s,avatarSrc:b,settingsUrl:x,onLogout:g,collapsed:j,placement:"topRight",extraItems:I})]}),e(o,{style:{background:"transparent"},children:[!R&&e(de,{children:[!B&&t(se,{type:"button","aria-label":j?"Expand menu":"Collapse menu",onClick:()=>X(!j),children:t(j?T:L,{})}),t("span",{style:{flex:1}}),w]}),Q]})]})})});return H&&!m?M?t(n,{theme:M,children:Z}):Z:t(E,{theme:m??{},children:M?t(n,{theme:M,children:Z}):Z})},Ee=O.pageGutter,Ce=I.div`
282
+ `,ve=(e,t)=>e.key??e.path??`menu-${t}`,we=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const n=ve(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:n,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:we(e.children,t)}:{key:n,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),ke=(e,t)=>w("a",{href:e.path||"/"},t),Se=({account:r,avatarSrc:n,settingsUrl:o,onLogout:l,collapsed:d=!1,placement:s="topRight",extraItems:p=[]})=>{const{modal:c}=i.useApp(),h=[...p??[],{key:"settings",icon:t(E,{}),label:"Settings",onClick:()=>{window.location.href=o??"/settings"}},{key:"logout",icon:t($,{}),label:"Logout",onClick:()=>{c.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:t(D,{}),onOk:l})}}],g=(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 t(he,{className:"cr-user-info-light",$collapsed:d,$inHeader:"bottomRight"===s,children:t(a,{trigger:["click"],placement:s,menu:{items:h},children:e(ge,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[t(ue,{$src:n,"aria-hidden":!0,children:!n&&g}),!d&&e(be,{children:[e(me,{children:[t(xe,{title:r.fullName,children:r.fullName}),t(fe,{children:t(z,{})})]}),r.positionType&&t(ye,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:Ie}=o,Ce=({children:o,account:a,logoUrl:s,appName:p,menuItems:c,onLogout:h,pathname:g,avatarSrc:u,styledTheme:b,settingsUrl:m,antdTheme:x,renderMenuLink:f=ke,headerExtra:y,userMenuItems:w,onCollapse:I,collapsed:E=!1,loading:$=!1,hideSidebar:z=!1,layoutTop:D=!1,hideCollapseTrigger:N=!1,siderWidth:B=te,bareContent:A=!1,hideHeaderBar:F=!1,brandHref:R="/",hideAccountCard:O=!1,scrollContent:U=!0})=>{const H=J(),M=void 0===x?H?null:V:x,[j,G]=k(E);S((()=>{G(E)}),[E]);const W=v((()=>we(c,f)),[c,f]),_=v((()=>((e,t)=>{let r;const n=(e,i)=>{(e??[]).forEach(((e,o)=>{const a=ve(e,o);if(e.path&&t.startsWith(e.path)){const n=t===e.path,o=e.path.length+(n?1:0);(!r||o>r.length)&&(r={key:a,parents:i,length:o})}e.children?.length&&n(e.children,[...i,a])}))};return n(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(c,g)),[c,g]),[P,K]=k((()=>_.openKeys));S((()=>{K((e=>Array.from(new Set([...e,..._.openKeys]))))}),[_.openKeys.join("|")]);const X=e=>{G(e),I?.(e)},Y=_.selectedKey?[_.selectedKey]:[],q=e(le,{href:R,$collapsed:!D&&j,children:[s?t("img",{src:s,alt:p}):t("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(D||!j)&&t("h1",{children:p})]}),Q=A?o:t(ce,{children:o});if("undefined"==typeof document)return null;const Z=t(i,{component:!1,children:t(l,{spinning:$,size:"large",children:z?t(r,{children:o}):e(ie,D?{$appShell:U,children:[e(de,{children:[q,t(d,{mode:"horizontal",items:W,selectedKeys:Y}),y,!O&&t(Se,{account:a,avatarSrc:u,settingsUrl:m,onLogout:h,placement:"bottomRight",extraItems:w})]}),t(oe,{$scroll:U,children:Q})]}:{hasSider:!0,$appShell:U,children:[e(Ie,{className:"hisd3-sider",width:B,collapsedWidth:re,collapsible:!0,collapsed:j,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&X(!0)},children:[q,t(ae,{className:j?"hisd3-collapsed":void 0,children:t(d,{mode:"inline",theme:"light",inlineCollapsed:j,items:W,selectedKeys:Y,openKeys:j?void 0:P,onOpenChange:e=>K(e)})}),!O&&t(Se,{account:a,avatarSrc:u,settingsUrl:m,onLogout:h,collapsed:j,placement:"topRight",extraItems:w})]}),e(oe,{$scroll:U,children:[!F&&e(se,{children:[!N&&t(pe,{type:"button","aria-label":j?"Expand menu":"Collapse menu",onClick:()=>X(!j),children:t(j?T:L,{})}),t("span",{style:{flex:1}}),y]}),Q]})]})})});return H&&!b?M?t(n,{theme:M,children:Z}):Z:t(C,{theme:b??{},children:M?t(n,{theme:M,children:Z}):Z})},Ee=O.pageGutter,$e=I.header`
283
+ display: contents;
284
+ `,ze=I.div`
269
285
  display: flex;
270
286
  align-items: center;
271
287
  gap: 16px;
272
288
  height: ${O.topBarHeight}px; /* same as the sidebar brand block */
289
+ /* never shrink: these are flex items of the scrolling column */
290
+ flex: 0 0 ${O.topBarHeight}px;
273
291
  padding: 0 ${Ee}px;
274
292
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
275
293
  background: var(--ant-color-bg-layout);
@@ -286,16 +304,17 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
286
304
  .ant-breadcrumb ol {
287
305
  flex-wrap: nowrap;
288
306
  }
289
- `,ze=I.div`
307
+ `,De=I.div`
290
308
  display: flex;
291
309
  align-items: center;
292
310
  gap: 10px;
293
311
  flex: 0 0 auto;
294
- `,De=I.div`
312
+ `,Te=I.div`
295
313
  display: flex;
296
314
  align-items: baseline;
297
315
  gap: 16px;
298
316
  flex-wrap: wrap;
317
+ flex: 0 0 auto;
299
318
  padding: 20px ${Ee}px 18px;
300
319
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--ant-color-border-secondary);
301
320
 
@@ -314,9 +333,10 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
314
333
  font-size: 15px;
315
334
  color: var(--ant-color-text-secondary);
316
335
  }
317
- `,$e=I.div`
336
+ `,Le=I.div`
337
+ flex: 1 0 auto;
318
338
  padding: 24px ${Ee}px 40px;
319
- `,Te=({title:r,subtitle:n,breadcrumb:i,extra:o,leading:a,hideTopBar:l=!1,className:d})=>e("header",{className:d,children:[!l&&e(Ce,{children:[a,i&&i.length>0&&t(s,{items:i.map((e=>({title:e.href?t("a",{href:e.href,children:e.title}):e.title,onClick:e.onClick})))}),!i?.length&&t("span",{style:{flex:1}}),o&&t(ze,{children:o})]}),e(De,{children:[t("h1",{children:r}),n&&t("p",{children:n})]})]}),Le=I.button`
339
+ `,Ne=({title:r,subtitle:n,breadcrumb:i,extra:o,leading:a,hideTopBar:l=!1,className:d})=>e($e,{className:d,children:[!l&&e(ze,{children:[a,i&&i.length>0&&t(s,{items:i.map((e=>({title:e.href?t("a",{href:e.href,children:e.title}):e.title,onClick:e.onClick})))}),!i?.length&&t("span",{style:{flex:1}}),o&&t(De,{children:o})]}),e(Te,{children:[t("h1",{children:r}),n&&t("p",{children:n})]})]}),Be=I.button`
320
340
  position: relative;
321
341
  width: ${({$size:e=40})=>e}px;
322
342
  height: ${({$size:e=40})=>e}px;
@@ -353,7 +373,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
353
373
  color: inherit;
354
374
  line-height: 0;
355
375
  }
356
- `,Ne=I.div`
376
+ `,Ae=I.div`
357
377
  width: 360px;
358
378
  max-width: calc(100vw - 32px);
359
379
  overflow: hidden;
@@ -362,7 +382,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
362
382
  border-radius: var(--hisd3-popup-radius, 10px);
363
383
  box-shadow: 0 2px 6px rgba(16, 15, 14, 0.06),
364
384
  0 12px 32px rgba(16, 15, 14, 0.14);
365
- `,Be=I.div`
385
+ `,Fe=I.div`
366
386
  display: flex;
367
387
  align-items: center;
368
388
  justify-content: space-between;
@@ -390,10 +410,10 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
390
410
  text-decoration: underline;
391
411
  }
392
412
  }
393
- `,Ae=I.div`
413
+ `,Re=I.div`
394
414
  max-height: 380px;
395
415
  overflow-y: auto;
396
- `,Fe=I.button`
416
+ `,Oe=I.button`
397
417
  display: flex;
398
418
  align-items: flex-start;
399
419
  gap: 12px;
@@ -408,7 +428,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
408
428
  &:hover {
409
429
  background: ${({$unread:e})=>e?"var(--ant-color-primary-bg-hover)":"rgba(0,0,0,0.04)"};
410
430
  }
411
- `,Re=I.span`
431
+ `,Ue=I.span`
412
432
  width: 36px;
413
433
  height: 36px;
414
434
  flex: 0 0 auto;
@@ -419,7 +439,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
419
439
  color: var(--ant-color-text);
420
440
  border-radius: 50%;
421
441
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.06)"};
422
- `,Oe=I.span`
442
+ `,He=I.span`
423
443
  flex: 1 1 auto;
424
444
  min-width: 0;
425
445
 
@@ -444,14 +464,14 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
444
464
  font-size: 12px;
445
465
  color: var(--ant-color-text-tertiary);
446
466
  }
447
- `,Ue=I.span`
467
+ `,Me=I.span`
448
468
  width: 8px;
449
469
  height: 8px;
450
470
  margin-top: 6px;
451
471
  flex: 0 0 auto;
452
472
  border-radius: 50%;
453
473
  background: var(--ant-color-primary);
454
- `,He=I.button`
474
+ `,je=I.button`
455
475
  display: block;
456
476
  width: 100%;
457
477
  padding: 12px 16px;
@@ -468,9 +488,9 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
468
488
  &:hover {
469
489
  background: rgba(0, 0, 0, 0.04);
470
490
  }
471
- `,Me=I.div`
491
+ `,Ge=I.div`
472
492
  padding: 28px 16px;
473
- `,je=({items:r=[],count:n,loading:i=!1,title:o="Notifications",onMarkAllRead:d,onSeeAll:s,seeAllLabel:h="See all notifications",emptyText:g="You're all caught up",onOpenChange:u,size:b=40,className:m})=>{const[x,f]=k(!1),y=n??r.filter((e=>e.unread)).length,v=e(Ne,{children:[e(Be,{children:[t("h4",{children:o}),d&&y>0&&t("button",{type:"button",onClick:d,children:"Mark all as read"})]}),i?t(Me,{style:{textAlign:"center"},children:t(l,{})}):0===r.length?t(Me,{children:t(p,{image:p.PRESENTED_IMAGE_SIMPLE,description:g})}):t(Ae,{children:r.map((r=>e(Fe,{type:"button",$unread:r.unread,onClick:()=>{r.onClick?.(r),f(!1),u?.(!1)},children:[t(Re,{$src:r.avatarSrc,children:!r.avatarSrc&&(r.icon??t(N,{}))}),e(Oe,{children:[t("strong",{children:r.title}),r.description&&t("span",{children:r.description}),r.time&&t("time",{children:r.time})]}),r.unread&&t(Ue,{})]},r.id)))}),s&&t(He,{type:"button",onClick:()=>{s(),f(!1),u?.(!1)},children:h})]});return t(a,{open:x,onOpenChange:e=>{f(e),u?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>v,children:t(Le,{type:"button",$size:b,className:m,"aria-label":`${o}${y?` (${y} unread)`:""}`,children:t(c,{count:y,size:"small",offset:[2,-2],children:t(N,{})})})})},Ge=I.button`
493
+ `,We=({items:r=[],count:n,loading:i=!1,title:o="Notifications",onMarkAllRead:d,onSeeAll:s,seeAllLabel:h="See all notifications",emptyText:g="You're all caught up",onOpenChange:u,size:b=40,className:m})=>{const[x,f]=k(!1),y=n??r.filter((e=>e.unread)).length,v=e(Ae,{children:[e(Fe,{children:[t("h4",{children:o}),d&&y>0&&t("button",{type:"button",onClick:d,children:"Mark all as read"})]}),i?t(Ge,{style:{textAlign:"center"},children:t(l,{})}):0===r.length?t(Ge,{children:t(p,{image:p.PRESENTED_IMAGE_SIMPLE,description:g})}):t(Re,{children:r.map((r=>e(Oe,{type:"button",$unread:r.unread,onClick:()=>{r.onClick?.(r),f(!1),u?.(!1)},children:[t(Ue,{$src:r.avatarSrc,children:!r.avatarSrc&&(r.icon??t(N,{}))}),e(He,{children:[t("strong",{children:r.title}),r.description&&t("span",{children:r.description}),r.time&&t("time",{children:r.time})]}),r.unread&&t(Me,{})]},r.id)))}),s&&t(je,{type:"button",onClick:()=>{s(),f(!1),u?.(!1)},children:h})]});return t(a,{open:x,onOpenChange:e=>{f(e),u?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>v,children:t(Be,{type:"button",$size:b,className:m,"aria-label":`${o}${y?` (${y} unread)`:""}`,children:t(c,{count:y,size:"small",offset:[2,-2],children:t(N,{})})})})},_e=I.button`
474
494
  position: relative;
475
495
  width: ${({$size:e})=>e}px;
476
496
  height: ${({$size:e})=>e}px;
@@ -504,7 +524,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
504
524
  display: block;
505
525
  border-radius: inherit;
506
526
  }
507
- `,We=I.span`
527
+ `,Pe=I.span`
508
528
  position: absolute;
509
529
  right: ${({$size:e})=>-Math.round(.05*e)}px;
510
530
  bottom: ${({$size:e})=>-Math.round(.05*e)}px;
@@ -520,7 +540,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
520
540
  border-radius: 50%;
521
541
  pointer-events: none;
522
542
 
523
- ${Ge}[aria-expanded="true"] & {
543
+ ${_e}[aria-expanded="true"] & {
524
544
  background: var(--ant-color-primary);
525
545
  color: #fff;
526
546
  }
@@ -528,7 +548,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
528
548
  & svg {
529
549
  display: block;
530
550
  }
531
- `,_e=I.div`
551
+ `,Ke=I.div`
532
552
  display: flex;
533
553
  align-items: center;
534
554
  gap: 12px;
@@ -563,7 +583,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
563
583
  overflow: hidden;
564
584
  text-overflow: ellipsis;
565
585
  }
566
- `,Pe=I.span`
586
+ `,Xe=I.span`
567
587
  width: 40px;
568
588
  height: 40px;
569
589
  flex: 0 0 auto;
@@ -574,7 +594,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
574
594
  font-weight: 700;
575
595
  border-radius: 50%;
576
596
  background: ${({$src:e})=>e?`center / cover no-repeat url("${e}")`:"rgba(0,0,0,0.08)"};
577
- `,Ke=I.div`
597
+ `,Ve=I.div`
578
598
  overflow: hidden;
579
599
  background: var(--ant-color-bg-elevated);
580
600
  border: 1px solid var(--ant-color-border-secondary);
@@ -597,17 +617,17 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
597
617
  border-radius: 8px;
598
618
  font-size: 14px;
599
619
  }
600
- `,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("")||"?",Ve=({account:r,avatarSrc:n,settingsUrl:o="/settings",onSettings:l,onLogout:d,confirmLogout:s=!0,extraItems:p,shape:c="circle",size:h=40,hideChevron:g=!1,className:u})=>{const{modal:b}=i.useApp(),[m,x]=k(!1),f=[...p??[],...null!==o||l?[{key:"settings",icon:t(C,{}),label:"Settings",onClick:()=>{l?l():o&&(window.location.href=o)}}]:[],{key:"logout",icon:t(z,{}),label:"Logout",onClick:()=>{s?b.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:t($,{}),okText:"Logout",onOk:d}):d()}}];return t(a,{open:m,onOpenChange:x,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>x(!1)},popupRender:i=>e(Ke,{children:[e(_e,{children:[t(Pe,{$src:n,children:!n&&Xe(r.fullName)}),e("span",{className:"hisd3-identity-text",children:[t("span",{className:"hisd3-identity-name",children:r.fullName}),r.positionType&&t("span",{className:"hisd3-identity-role",children:r.positionType})]})]}),i]}),children:e(Ge,{type:"button",className:u,$shape:c,$size:h,"aria-label":`Account menu for ${r.fullName}`,children:[n?t("img",{src:n,alt:""}):Xe(r.fullName),!g&&t(We,{$size:h,"aria-hidden":!0,children:t(D,{})})]})})},Ye=I.div`
620
+ `,Ye=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("")||"?",qe=({account:r,avatarSrc:n,settingsUrl:o="/settings",onSettings:l,onLogout:d,confirmLogout:s=!0,extraItems:p,shape:c="circle",size:h=40,hideChevron:g=!1,className:u})=>{const{modal:b}=i.useApp(),[m,x]=k(!1),f=[...p??[],...null!==o||l?[{key:"settings",icon:t(E,{}),label:"Settings",onClick:()=>{l?l():o&&(window.location.href=o)}}]:[],{key:"logout",icon:t($,{}),label:"Logout",onClick:()=>{s?b.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:t(D,{}),okText:"Logout",onOk:d}):d()}}];return t(a,{open:m,onOpenChange:x,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>x(!1)},popupRender:i=>e(Ve,{children:[e(Ke,{children:[t(Xe,{$src:n,children:!n&&Ye(r.fullName)}),e("span",{className:"hisd3-identity-text",children:[t("span",{className:"hisd3-identity-name",children:r.fullName}),r.positionType&&t("span",{className:"hisd3-identity-role",children:r.positionType})]})]}),i]}),children:e(_e,{type:"button",className:u,$shape:c,$size:h,"aria-label":`Account menu for ${r.fullName}`,children:[n?t("img",{src:n,alt:""}):Ye(r.fullName),!g&&t(Pe,{$size:h,"aria-hidden":!0,children:t(z,{})})]})})},Je=I.div`
601
621
  display: flex;
602
622
  align-items: center;
603
623
  gap: 8px;
604
624
  flex: 0 0 auto;
605
- `,qe=I.span`
625
+ `,Qe=I.span`
606
626
  width: 2px;
607
627
  height: 24px;
608
628
  background: var(--ant-color-border-secondary);
609
629
  flex: 0 0 auto;
610
- `,Je=({children:r,divided:n=!1,className:i})=>{const o=x.Children.toArray(r).filter(Boolean);return t(Ye,{className:i,children:o.map(((r,i)=>e(x.Fragment,{children:[n&&i===o.length-1&&i>0&&t(qe,{}),r]},i)))})},Qe=I.div`
630
+ `,Ze=({children:r,divided:n=!1,className:i})=>{const o=x.Children.toArray(r).filter(Boolean);return t(Je,{className:i,children:o.map(((r,i)=>e(x.Fragment,{children:[n&&i===o.length-1&&i>0&&t(Qe,{}),r]},i)))})},et=I.div`
611
631
  .ant-table-wrapper .ant-table {
612
632
  background: transparent;
613
633
  }
@@ -657,14 +677,14 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
657
677
  .hisd3-cell-muted {
658
678
  color: var(--ant-color-text-tertiary);
659
679
  }
660
- `,Ze=I.div`
680
+ `,tt=I.div`
661
681
  padding: 22px 0 14px;
662
682
  font-size: 13px;
663
683
  font-weight: 600;
664
684
  letter-spacing: 0.1em;
665
685
  text-transform: uppercase;
666
686
  color: var(--ant-color-text-tertiary);
667
- `,et=I.div`
687
+ `,rt=I.div`
668
688
  display: flex;
669
689
  align-items: center;
670
690
  gap: 24px;
@@ -724,7 +744,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
724
744
  font-weight: 700;
725
745
  }
726
746
  }
727
- `,tt=I.div`
747
+ `,nt=I.div`
728
748
  display: inline-flex;
729
749
  border: var(--hisd3-rule-width, 1px) solid var(--ant-color-border);
730
750
 
@@ -748,7 +768,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
748
768
  color: #fff;
749
769
  }
750
770
  }
751
- `,rt=e=>`Total ${e.toLocaleString()} items`;function nt({pagination:r,footer:n,...i}){const o=r||void 0,a=o?.pageSizeOptions??[10,20,50];return e(Qe,{children:[t(h,{...i,pagination:!1}),n&&t(Ze,{children:n}),o&&e(et,{children:[t("span",{className:"hisd3-total",children:(o.renderTotal??rt)(o.total,[(o.current-1)*o.pageSize+1,Math.min(o.current*o.pageSize,o.total)])}),t(g,{current:o.current,pageSize:o.pageSize,total:o.total,showSizeChanger:!1,onChange:(e,t)=>o.onChange(e,t),itemRender:(e,r,n)=>"prev"===r?t("span",{className:"ant-pagination-item-link",children:t(B,{})}):"next"===r?t("span",{className:"ant-pagination-item-link",children:t(A,{})}):n}),!o.hidePageSize&&t(tt,{role:"group","aria-label":"Rows per page",children:a.map((t=>e("button",{type:"button","aria-pressed":t===o.pageSize,onClick:()=>o.onChange(1,t),children:[t," / page"]},t)))})]})]})}const it=I(u)`
771
+ `,it=e=>`Total ${e.toLocaleString()} items`;function ot({pagination:r,footer:n,...i}){const o=r||void 0,a=o?.pageSizeOptions??[10,20,50];return e(et,{children:[t(h,{...i,pagination:!1}),n&&t(tt,{children:n}),o&&e(rt,{children:[t("span",{className:"hisd3-total",children:(o.renderTotal??it)(o.total,[(o.current-1)*o.pageSize+1,Math.min(o.current*o.pageSize,o.total)])}),t(g,{current:o.current,pageSize:o.pageSize,total:o.total,showSizeChanger:!1,onChange:(e,t)=>o.onChange(e,t),itemRender:(e,r,n)=>"prev"===r?t("span",{className:"ant-pagination-item-link",children:t(B,{})}):"next"===r?t("span",{className:"ant-pagination-item-link",children:t(A,{})}):n}),!o.hidePageSize&&t(nt,{role:"group","aria-label":"Rows per page",children:a.map((t=>e("button",{type:"button","aria-pressed":t===o.pageSize,onClick:()=>o.onChange(1,t),children:[t," / page"]},t)))})]})]})}const at=I(u)`
752
772
  &.ant-tabs .ant-tabs-nav {
753
773
  margin: 0;
754
774
 
@@ -781,7 +801,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
781
801
  .ant-tabs-tab-active .hisd3-tab-count {
782
802
  color: var(--ant-color-primary);
783
803
  }
784
- `,ot=({items:n,...i})=>t(it,{...i,items:n.map((({count:n,label:i,...o})=>({...o,label:e(r,{children:[i,void 0!==n&&t("span",{className:"hisd3-tab-count",children:n})]})})))}),at={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)"},lt={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)"},dt=I.span`
804
+ `,lt=({items:n,...i})=>t(at,{...i,items:n.map((({count:n,label:i,...o})=>({...o,label:e(r,{children:[i,void 0!==n&&t("span",{className:"hisd3-tab-count",children:n})]})})))}),dt={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)"},st={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)"},pt=I.span`
785
805
  display: inline-flex;
786
806
  align-items: center;
787
807
  gap: 6px;
@@ -796,8 +816,8 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
796
816
  border: var(--hisd3-rule-width, 1px) solid transparent;
797
817
  border-radius: 0;
798
818
 
799
- ${({$variant:e,$tone:t})=>{const r=at[t],n=lt[t];switch(e){case"soft":return`color: ${r}; background: ${n};`;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
- `,st=({variant:e="neutral",tone:r=("neutral"===e?"default":"primary"),children:n,...i})=>t(dt,{$variant:e,$tone:r,...i,children:n}),pt=I(b)`
819
+ ${({$variant:e,$tone:t})=>{const r=dt[t],n=st[t];switch(e){case"soft":return`color: ${r}; background: ${n};`;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);"}}}
820
+ `,ct=({variant:e="neutral",tone:r=("neutral"===e?"default":"primary"),children:n,...i})=>t(pt,{$variant:e,$tone:r,...i,children:n}),ht=I(b)`
801
821
  &.ant-btn {
802
822
  display: inline-flex;
803
823
  align-items: center;
@@ -829,7 +849,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
829
849
  .anticon {
830
850
  font-size: 1.05em;
831
851
  }
832
- `,ct={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},ht=({variant:e="secondary",...r})=>t(pt,{...ct[e],...r}),gt=I(m)`
852
+ `,gt={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},ut=({variant:e="secondary",...r})=>t(ht,{...gt[e],...r}),bt=I(m)`
833
853
  &.ant-input,
834
854
  &.ant-input-affix-wrapper {
835
855
  border-width: var(--hisd3-rule-width, 1px);
@@ -841,7 +861,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
841
861
  color: var(--ant-color-text-tertiary);
842
862
  font-size: 18px;
843
863
  }
844
- `,ut=e=>t(gt,{...e}),bt=I(gt)`
864
+ `,mt=e=>t(bt,{...e}),xt=I(bt)`
845
865
  &.ant-input-affix-wrapper {
846
866
  background: var(--hisd3-bg-filled, #e6e4e1);
847
867
  border-color: var(--ant-color-border-secondary);
@@ -875,5 +895,5 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
875
895
  font-size: 18px;
876
896
  }
877
897
  }
878
- `,mt=({compact:e=!1,className:r,...n})=>t(bt,{allowClear:!0,prefix:t(F,{}),className:[e?"hisd3-search-compact":"",r??""].join(" ").trim(),...n});var xt,ft,yt,vt,wt,kt,St,It,Et,Ct,zt,Dt,$t;!function(e){e.MODERN="modern",e.STANDARD="standard"}(xt||(xt={})),function(e){e.MODERN="30px",e.STANDARD="16px"}(ft||(ft={})),function(e){e.LIGHT="light",e.SEMI_DARK="semi-dark",e.DARK="dark"}(yt||(yt={})),function(e){e.FULL_WIDTH="full-width",e.BOXED="boxed",e.FRAMED="framed"}(vt||(vt={})),function(e){e.DEFAULT="default",e.STANDARD="standard",e.ROUNDED="rounded",e.ROUNDED_REVERSE="rounded-reverse",e.CURVED_MENU="curved-menu"}(wt||(wt={})),function(e){e.DEFAULT="default",e.MINI="mini",e.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",e.STANDARD="standard",e.HEADER_USER="user-header",e.HEADER_USER_MINI="user-mini-header",e.DRAWER="drawer",e.BIT_BUCKET="bit-bucket",e.H_DEFAULT="h-default",e.HOR_HEADER_FIXED="hor-header-fixed",e.HOR_DARK_LAYOUT="hor-dark-layout"}(kt||(kt={})),function(e){e.FIXED="fixed",e.FLUID="fluid"}(St||(St={})),function(e){e.RTL="rtl",e.LTR="ltr"}(It||(It={})),function(e){e.DARK="dark",e.LIGHT="light"}(Et||(Et={})),function(e){e.NONE="none",e.FADE="fade",e.SLIDE_LEFT="slideLeft",e.SLIDE_RIGHT="slideRight",e.SLIDE_UP="slideUp",e.SLIDE_DOWN="slideDown"}(Ct||(Ct={})),function(e){e.LIGHT="300",e.REGULAR="400",e.MEDIUM="500",e.BOLD="600"}(zt||(zt={})),function(e){e.FIREBASE="firebase",e.AWS_COGNITO="aws_cognito",e.AUTH0="auth0",e.JWT_AUTH="jwt_auth"}(Dt||(Dt={})),function(e){e.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"}($t||($t={}));const Tt={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}}},Lt={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"}}};var Nt,Bt;!function(e){e[e.MEDIA=1]="MEDIA",e[e.TEXT=2]="TEXT"}(Nt||(Nt={})),function(e){e.Admin="admin",e.User="user"}(Bt||(Bt={}));export{Tt as AppAnimateGroups,$t as AppAnimates,Lt as AppMotionAnimate,Dt as AuthType,zt as Fonts,St as FooterType,Ve as HISD3AvatarMenu,ht as HISD3Button,Je as HISD3HeaderActions,ut as HISD3Input,je as HISD3NotificationButton,$e as HISD3PageBody,Te as HISD3PageHeader,Q as HISD3Provider,mt as HISD3SearchInput,Ie as HISD3Sidebar,nt as HISD3Table,ot as HISD3Tabs,st as HISD3Tag,M as HISD3_BORDER_PRESETS,Y as HISD3_COLORS,j as HISD3_FONT_FAMILY,W as HISD3_FONT_WEIGHT_BODY,G as HISD3_FONT_WEIGHT_HEADING,O as HISD3_LAYOUT,H as HISD3_NEUTRALS,U as HISD3_PRESETS,Le as HeaderIconButton,Et as HeaderType,It as LayoutDirection,vt as LayoutType,wt as MenuStyle,Nt as MessageType,kt as NavStyle,Bt as RoutePermittedRole,Ct as RouteTransition,yt as ThemeMode,xt as ThemeStyle,ft as ThemeStyleRadius,ke as UserMenu,X as borderVarsCss,K as createHisd3Theme,Xe as getInitials,V as hisd3AntdTheme,_ as resolvePrimary,P as tint,J as useInsideHISD3Provider};
898
+ `,ft=({compact:e=!1,className:r,...n})=>t(xt,{allowClear:!0,prefix:t(F,{}),className:[e?"hisd3-search-compact":"",r??""].join(" ").trim(),...n});var yt,vt,wt,kt,St,It,Ct,Et,$t,zt,Dt,Tt,Lt;!function(e){e.MODERN="modern",e.STANDARD="standard"}(yt||(yt={})),function(e){e.MODERN="30px",e.STANDARD="16px"}(vt||(vt={})),function(e){e.LIGHT="light",e.SEMI_DARK="semi-dark",e.DARK="dark"}(wt||(wt={})),function(e){e.FULL_WIDTH="full-width",e.BOXED="boxed",e.FRAMED="framed"}(kt||(kt={})),function(e){e.DEFAULT="default",e.STANDARD="standard",e.ROUNDED="rounded",e.ROUNDED_REVERSE="rounded-reverse",e.CURVED_MENU="curved-menu"}(St||(St={})),function(e){e.DEFAULT="default",e.MINI="mini",e.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",e.STANDARD="standard",e.HEADER_USER="user-header",e.HEADER_USER_MINI="user-mini-header",e.DRAWER="drawer",e.BIT_BUCKET="bit-bucket",e.H_DEFAULT="h-default",e.HOR_HEADER_FIXED="hor-header-fixed",e.HOR_DARK_LAYOUT="hor-dark-layout"}(It||(It={})),function(e){e.FIXED="fixed",e.FLUID="fluid"}(Ct||(Ct={})),function(e){e.RTL="rtl",e.LTR="ltr"}(Et||(Et={})),function(e){e.DARK="dark",e.LIGHT="light"}($t||($t={})),function(e){e.NONE="none",e.FADE="fade",e.SLIDE_LEFT="slideLeft",e.SLIDE_RIGHT="slideRight",e.SLIDE_UP="slideUp",e.SLIDE_DOWN="slideDown"}(zt||(zt={})),function(e){e.LIGHT="300",e.REGULAR="400",e.MEDIUM="500",e.BOLD="600"}(Dt||(Dt={})),function(e){e.FIREBASE="firebase",e.AWS_COGNITO="aws_cognito",e.AUTH0="auth0",e.JWT_AUTH="jwt_auth"}(Tt||(Tt={})),function(e){e.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"}(Lt||(Lt={}));const Nt={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}}},Bt={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"}}};var At,Ft;!function(e){e[e.MEDIA=1]="MEDIA",e[e.TEXT=2]="TEXT"}(At||(At={})),function(e){e.Admin="admin",e.User="user"}(Ft||(Ft={}));export{Nt as AppAnimateGroups,Lt as AppAnimates,Bt as AppMotionAnimate,Tt as AuthType,Dt as Fonts,Ct as FooterType,qe as HISD3AvatarMenu,ut as HISD3Button,Ze as HISD3HeaderActions,mt as HISD3Input,We as HISD3NotificationButton,Le as HISD3PageBody,Ne as HISD3PageHeader,Q as HISD3Provider,ft as HISD3SearchInput,Ce as HISD3Sidebar,ot as HISD3Table,lt as HISD3Tabs,ct as HISD3Tag,M as HISD3_BORDER_PRESETS,Y as HISD3_COLORS,j as HISD3_FONT_FAMILY,W as HISD3_FONT_WEIGHT_BODY,G as HISD3_FONT_WEIGHT_HEADING,O as HISD3_LAYOUT,H as HISD3_NEUTRALS,U as HISD3_PRESETS,Be as HeaderIconButton,$t as HeaderType,Et as LayoutDirection,kt as LayoutType,St as MenuStyle,At as MessageType,It as NavStyle,Ft as RoutePermittedRole,zt as RouteTransition,wt as ThemeMode,yt as ThemeStyle,vt as ThemeStyleRadius,Se as UserMenu,X as borderVarsCss,K as createHisd3Theme,Ye as getInitials,V as hisd3AntdTheme,_ as resolvePrimary,P as tint,J as useInsideHISD3Provider};
879
899
  //# sourceMappingURL=index.js.map