hisd3-ui-kit 5.2.1 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("antd"),t=require("react"),o=require("styled-components"),i=require("@ant-design/icons");function n(e,r){void 0===r&&(r={});var t=r.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&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-input-bg:#faf9f7;--hisd3-input-bg-hover:#fff;--hisd3-input-border-hover:#b9b4ac;--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}.hisd3-wrap-popup.ant-select-dropdown .ant-select-item,.hisd3-wrap-select.ant-select-dropdown .ant-select-item{height:auto;min-height:32px;padding-block:6px}.hisd3-wrap-popup.ant-select-dropdown .ant-select-item-option-content,.hisd3-wrap-select.ant-select .ant-select-selection-item,.hisd3-wrap-select.ant-select-dropdown .ant-select-item-option-content,.hisd3-wrap-select.ant-select-single .ant-select-content{line-height:1.35;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;white-space:normal}.hisd3-select-label{line-height:1.35;min-width:0;overflow-wrap:anywhere;padding-block:2px;white-space:normal}.hisd3-select-label-description{color:var(--ant-color-text-secondary,rgba(0,0,0,.55));font-size:12px;font-weight:400}');const a={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28},s={brand:"#E5533B",brandBlue:"#1B6FE0",red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},l={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",bgField:"#FAF9F7",bgRowHover:"#EBEAE8",hover:"rgba(0,0,0,0.04)",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",controlBorder:"#8C8A85",controlBorderHover:"#5F5D59",mask:"rgba(23,23,23,0.45)",white:"#FFFFFF"},d={bgLayout:"#1A1917",bgContainer:"#1A1917",bgElevated:"#262522",bgFilled:"#2E2D2A",bgFilledHover:"#393734",bgField:"#201F1D",bgRowHover:"#22211F",hover:"rgba(255,255,255,0.05)",text:"#EEEDEA",textSecondary:"#C2C0BB",textTertiary:"#9C9A94",border:"#3A3936",borderSecondary:"#2C2B29",borderStrong:"#EEEDEA",controlBorder:"#77746E",controlBorderHover:"#A8A59F",mask:"rgba(0,0,0,0.6)",white:"#FFFFFF"},p={light:{success:"#2E7D32",successBg:"#EAF3EA",error:"#B42318",errorBg:"#FBEAE7",warning:"#B54708",warningBg:"#FBEFE3"},dark:{success:"#6FBF73",successBg:"#283426",error:"#FF8A7A",errorBg:"#3F2B27",warning:"#F0A35E",warningBg:"#3C2F22"}},c={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},h={hairline:{width:1,border:"#3A3936",borderSecondary:"#2C2B29"},bold:{width:2,border:"#C2C0BB",borderSecondary:"#3A3936"}},g="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",x=(e="red")=>s[e]??e,m=e=>{const r=e.replace("#",""),t=3===r.length?r.split("").map((e=>e+e)).join(""):r,o=parseInt(t,16);return[o>>16&255,o>>8&255,255&o]},u=e=>`#${e.map((e=>Math.round(e).toString(16).padStart(2,"0"))).join("")}`,b=(e,r)=>u(m(e).map((e=>e*(1-r)))),f=(e,r)=>u(m(e).map((e=>e+(255-e)*r))),v=(e,r,t)=>{const o=m(e),i=m(r);return u(o.map(((e,r)=>e+(i[r]-e)*t)))},y=e=>{const[r,t,o]=m(e).map((e=>{const r=e/255;return r<=.03928?r/12.92:((r+.055)/1.055)**2.4}));return.2126*r+.7152*t+.0722*o},w=(e,r)=>{const[t,o]=[y(e),y(r)].sort(((e,r)=>r-e));return(t+.05)/(o+.05)},S=(e="red",r="light")=>{const t=x(e);if("dark"===r){const e=d.bgLayout;let r=t;for(let o=0;o<=1&&(r=v(t,"#FFFFFF",o),!(w(r,e)>=4.5&&w(r,v(e,r,.14))>=4.5));o+=.01);return{source:t,primary:r,onPrimary:e,primaryBg:v(e,r,.14),primaryBgHover:v(e,r,.22),primaryBorder:v(e,r,.45)}}const o=l.bgLayout;let i=t;for(let e=0;e<=1&&(i=b(t,e),!(w(i,o)>=4.5&&w(i,"#FFFFFF")>=4.5&&w(i,f(i,.92))>=4.5));e+=.01);return{source:t,primary:i,onPrimary:"#FFFFFF",primaryBg:f(i,.92),primaryBgHover:f(i,.86),primaryBorder:f(i,.6)}},A=(e,r)=>{const t="dark"===e,o=t?h:c,i=o[r]??o.hairline;return{n:{...t?d:l,border:i.border,borderSecondary:i.borderSecondary},b:i}},D=({primary:e,mode:t="light",radius:o=0,borders:i="hairline",lineWidth:n,overrides:s}={})=>{const l=S(e,t),d=l.primary,{n:c,b:h}=A(t,i),x=p[t],m=n??h.width,u={colorBorder:c.controlBorder,hoverBorderColor:c.controlBorderHover,activeBorderColor:d,activeShadow:`0 0 0 1px ${d}`,colorBgContainer:c.bgField,hoverBg:c.bgElevated,activeBg:c.bgElevated},b={algorithm:["dark"===t?r.theme.darkAlgorithm:r.theme.defaultAlgorithm,(e,r)=>({...r,colorPrimary:d,colorInfo:d,colorLink:d,colorPrimaryText:d,colorPrimaryBg:l.primaryBg,colorPrimaryBgHover:l.primaryBgHover,colorPrimaryBorder:l.primaryBorder,colorSuccess:x.success,colorSuccessText:x.success,colorSuccessBg:x.successBg,colorError:x.error,colorErrorText:x.error,colorErrorBg:x.errorBg,colorWarning:x.warning,colorWarningText:x.warning,colorWarningBg:x.warningBg})],cssVar:{key:"hisd3"},token:{colorPrimary:d,colorInfo:d,colorLink:d,colorPrimaryBg:l.primaryBg,colorPrimaryBgHover:l.primaryBgHover,colorPrimaryBorder:l.primaryBorder,colorSuccess:x.success,colorSuccessBg:x.successBg,colorSuccessBorder:x.success,colorError:x.error,colorErrorBg:x.errorBg,colorErrorBorder:x.error,colorWarning:x.warning,colorWarningBg:x.warningBg,colorWarningBorder:x.warning,fontFamily:g,fontSize:14,fontWeightStrong:700,borderRadius:o,borderRadiusLG:o,borderRadiusSM:o,borderRadiusXS:o,lineWidth:m,colorBgLayout:c.bgLayout,colorBgContainer:c.bgContainer,colorBgElevated:c.bgElevated,colorBgMask:c.mask,colorBgContainerDisabled:c.bgFilled,colorText:c.text,colorTextSecondary:c.textSecondary,colorTextTertiary:c.textTertiary,colorTextPlaceholder:c.textTertiary,colorTextDisabled:c.textTertiary,colorTextHeading:c.text,colorBorder:c.border,colorBorderSecondary:c.borderSecondary,colorSplit:c.borderSecondary,controlHeight:40,controlHeightLG:52,controlHeightSM:32,boxShadow:"none",boxShadowSecondary:"dark"===t?"0 2px 6px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.5)":"0 2px 6px rgba(16,15,14,0.06), 0 12px 32px rgba(16,15,14,0.14)"},components:{Layout:{siderBg:c.bgLayout,headerBg:c.bgLayout,bodyBg:c.bgLayout,headerPadding:`0 ${a.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",popupBg:c.bgElevated,itemColor:c.text,itemHoverColor:c.text,itemHoverBg:c.hover,itemSelectedBg:l.primaryBg,itemSelectedColor:d,itemActiveBg:l.primaryBgHover,subMenuItemSelectedColor:d,horizontalItemSelectedColor:d,horizontalItemHoverColor:d,groupTitleColor:c.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",primaryColor:l.onPrimary,dangerColor:l.onPrimary,defaultBorderColor:c.border,defaultColor:c.text,defaultBg:c.bgLayout,defaultHoverBg:c.bgElevated,defaultHoverBorderColor:c.borderStrong,defaultHoverColor:c.text,defaultActiveBorderColor:c.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{...u,paddingInline:16},InputNumber:u,Select:{...u,optionSelectedBg:l.primaryBg,selectorBg:c.bgField},DatePicker:u,Cascader:u,TreeSelect:u,Mentions:u,Checkbox:{colorBorder:c.controlBorder,colorBgContainer:c.bgField,colorWhite:l.onPrimary},Radio:{colorBorder:c.controlBorder,colorBgContainer:c.bgField,dotColorDisabled:c.textTertiary},Segmented:{trackBg:c.bgFilled,itemColor:c.textSecondary,itemHoverColor:c.text,itemHoverBg:c.hover,itemSelectedBg:d,itemSelectedColor:l.onPrimary},Table:{headerBg:c.bgContainer,headerColor:c.textSecondary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:c.borderSecondary,rowHoverBg:c.bgRowHover,rowSelectedBg:l.primaryBg,rowSelectedHoverBg:l.primaryBgHover,cellPaddingBlock:10,cellPaddingInline:12,cellFontSize:14,cellPaddingBlockMD:8,cellPaddingInlineMD:10,cellPaddingBlockSM:6,cellPaddingInlineSM:8,cellFontSizeMD:14,cellFontSizeSM:13,footerBg:c.bgContainer},Tabs:{inkBarColor:d,itemColor:c.text,itemSelectedColor:d,itemHoverColor:d,titleFontSize:15,horizontalItemGutter:32,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:c.bgLayout,itemActiveBg:d,itemActiveColor:l.onPrimary,itemActiveColorHover:l.onPrimary,itemSize:32,itemSizeSM:26,itemInputBg:c.bgField},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:c.textTertiary,lastItemColor:c.text,linkColor:c.textTertiary,linkHoverColor:d,separatorColor:c.textTertiary},Card:{headerFontSize:18,headerFontSizeSM:16,colorBgContainer:c.bgContainer},Drawer:{colorBgElevated:c.bgElevated},Alert:{withDescriptionPadding:"14px 16px"}}};return s?{...b,...s,token:{...b.token,...s.token},components:{...b.components,...s.components}}:b},k=({primary:e,mode:r="light",borders:t="hairline",lineWidth:o,radius:i=0,selector:n=":root"}={})=>{const a=S(e,r),{n:s,b:l}=A(r,t),d=p[r],c=":root"===n;return[`${n}{`,`color-scheme:${r};`,`--hisd3-mode:${r};`,`--hisd3-rule-width:${o??l.width}px;`,`--hisd3-control-bg:${s.bgFilled};`,`--hisd3-control-bg-hover:${s.bgFilledHover};`,`--hisd3-input-bg:${s.bgField};`,`--hisd3-input-bg-hover:${s.bgElevated};`,`--hisd3-input-border:${s.controlBorder};`,`--hisd3-input-border-hover:${s.controlBorderHover};`,`--hisd3-hover:${s.hover};`,`--hisd3-on-primary:${a.onPrimary};`,`--hisd3-focus-ring:${a.primary};`,"--hisd3-popup-radius:10px;",`--hisd3-radius:${i}px;`,`--ant-color-primary:${a.primary};`,`--ant-color-primary-bg:${a.primaryBg};`,`--ant-color-primary-bg-hover:${a.primaryBgHover};`,`--ant-color-primary-border:${a.primaryBorder};`,`--ant-color-success:${d.success};`,`--ant-color-success-bg:${d.successBg};`,`--ant-color-error:${d.error};`,`--ant-color-error-bg:${d.errorBg};`,`--ant-color-warning:${d.warning};`,`--ant-color-warning-bg:${d.warningBg};`,`--ant-color-text:${s.text};`,`--ant-color-text-secondary:${s.textSecondary};`,`--ant-color-text-tertiary:${s.textTertiary};`,`--hisd3-table-bg:${s.bgContainer};`,`--hisd3-table-hover-bg:${s.bgRowHover};`,`--hisd3-border:${l.border};`,`--hisd3-border-secondary:${l.borderSecondary};`,`--ant-color-border:${l.border};`,`--ant-color-border-secondary:${l.borderSecondary};`,`--ant-color-bg-layout:${s.bgLayout};`,`--ant-color-bg-elevated:${s.bgElevated};`,"}",c?`body{background:${s.bgLayout};color:${s.text};}`:"",c?`.ant-drawer-content,.ant-modal-content{--hisd3-table-bg:${s.bgElevated};--hisd3-table-hover-bg:${"dark"===r?v(s.bgElevated,"#FFFFFF",.04):b(s.bgElevated,.03)};}`:""].join("")},F=D(),j={primary:s.red,primaryLight:f(s.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},E=t.createContext(!1),I=()=>t.useContext(E),B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAACiCAYAAAAX4MJWAAAgnklEQVR42u1db2xb13U/9z7ZTmyKT6TFTFY7xImBQt2AuEDTQZBhuar2x0kwI1YsOShqkZJabBmg0KmXJd8ofikSpF7N6EP2YbJFOwNsyZGzALHcDYJreRGELdvqAluEYkmVdpU1Uyb5KMZ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F1UPdG9unev5D5hFwA1ggRju8rWE7ac4qknbvncB+sCwNmiZYSM7ipbT3bi9iSAupbUfcAuAJwtU5eE8nSE4Bw+M54739sn1Wtu3gVAnQXCRJaFBML6wbluAOwCoGaEBatmNyvmVpbpFk/yVfeJugCoKemenX0QAcCtU3NxMyBAAIOshsmlP2Lk/wGgJmAjjF1q8QAAAABJRU5ErkJggg==",{Header:C,Content:z}=r.Layout,T=a.siderWidth,R=a.siderCollapsedWidth,H=a.topBarHeight,N=o(r.Layout)`
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("antd"),r=require("react"),o=require("styled-components"),a=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],a=document.createElement("style");a.type="text/css","top"===r&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.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-input-bg:#faf9f7;--hisd3-input-bg-hover:#fff;--hisd3-input-border-hover:#b9b4ac;--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}.hisd3-wrap-popup.ant-select-dropdown .ant-select-item,.hisd3-wrap-select.ant-select-dropdown .ant-select-item{height:auto;min-height:32px;padding-block:6px}.hisd3-wrap-popup.ant-select-dropdown .ant-select-item-option-content,.hisd3-wrap-select.ant-select .ant-select-selection-item,.hisd3-wrap-select.ant-select-dropdown .ant-select-item-option-content,.hisd3-wrap-select.ant-select-single .ant-select-content{line-height:1.35;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;white-space:normal}.hisd3-select-label{line-height:1.35;min-width:0;overflow-wrap:anywhere;padding-block:2px;white-space:normal}.hisd3-select-label-description{color:var(--ant-color-text-secondary,rgba(0,0,0,.55));font-size:12px;font-weight:400}');const n={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28,panelInset:24},l={brand:"#E5533B",brandBlue:"#1B6FE0",red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},s={bgLayout:"#F6F5F2",bgContainer:"#F6F5F2",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",bgField:"#FAF9F7",bgRowHover:"#EBEAE8",bgPanelRowHover:"#F6F5F3",hover:"rgba(0,0,0,0.04)",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",controlBorder:"#8C8A85",controlBorderHover:"#5F5D59",mask:"rgba(23,23,23,0.45)",white:"#FFFFFF"},d={bgLayout:"#1A1917",bgContainer:"#1A1917",bgElevated:"#262522",bgFilled:"#2E2D2A",bgFilledHover:"#393734",bgField:"#201F1D",bgRowHover:"#22211F",bgPanelRowHover:"#2E2D2A",hover:"rgba(255,255,255,0.05)",text:"#EEEDEA",textSecondary:"#C2C0BB",textTertiary:"#9C9A94",border:"#3A3936",borderSecondary:"#2C2B29",borderStrong:"#EEEDEA",controlBorder:"#77746E",controlBorderHover:"#A8A59F",mask:"rgba(0,0,0,0.6)",white:"#FFFFFF"},p={light:{success:"#2E7D32",successBg:"#EAF3EA",error:"#B42318",errorBg:"#FBEAE7",warning:"#B54708",warningBg:"#FBEFE3"},dark:{success:"#6FBF73",successBg:"#283426",error:"#FF8A7A",errorBg:"#3F2B27",warning:"#F0A35E",warningBg:"#3C2F22"}},c={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},h={hairline:{width:1,border:"#3A3936",borderSecondary:"#2C2B29"},bold:{width:2,border:"#C2C0BB",borderSecondary:"#3A3936"}},g="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",x=(e="red")=>l[e]??e,m=e=>{const t=e.replace("#",""),r=3===t.length?t.split("").map((e=>e+e)).join(""):t,o=parseInt(r,16);return[o>>16&255,o>>8&255,255&o]},u=e=>`#${e.map((e=>Math.round(e).toString(16).padStart(2,"0"))).join("")}`,b=(e,t)=>u(m(e).map((e=>e*(1-t)))),f=(e,t)=>u(m(e).map((e=>e+(255-e)*t))),v=(e,t,r)=>{const o=m(e),a=m(t);return u(o.map(((e,t)=>e+(a[t]-e)*r)))},y=e=>{const[t,r,o]=m(e).map((e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}));return.2126*t+.7152*r+.0722*o},w=(e,t)=>{const[r,o]=[y(e),y(t)].sort(((e,t)=>t-e));return(r+.05)/(o+.05)},S=(e="red",t="light")=>{const r=x(e);if("dark"===t){const e=d.bgLayout;let t=r;for(let o=0;o<=1&&(t=v(r,"#FFFFFF",o),!(w(t,e)>=4.5&&w(t,v(e,t,.14))>=4.5));o+=.01);return{source:r,primary:t,onPrimary:e,primaryBg:v(e,t,.14),primaryBgHover:v(e,t,.22),primaryBorder:v(e,t,.45)}}const o=s.bgLayout;let a=r;for(let e=0;e<=1&&(a=b(r,e),!(w(a,o)>=4.5&&w(a,"#FFFFFF")>=4.5&&w(a,f(a,.92))>=4.5));e+=.01);return{source:r,primary:a,onPrimary:"#FFFFFF",primaryBg:f(a,.92),primaryBgHover:f(a,.86),primaryBorder:f(a,.6)}},A=(e,t)=>{const r="dark"===e,o=r?h:c,a=o[t]??o.hairline;return{n:{...r?d:s,border:a.border,borderSecondary:a.borderSecondary},b:a}},D=({primary:e,mode:r="light",radius:o=0,borders:a="hairline",lineWidth:i,overrides:l}={})=>{const s=S(e,r),d=s.primary,{n:c,b:h}=A(r,a),x=p[r],m=i??h.width,u={colorBorder:c.controlBorder,hoverBorderColor:c.controlBorderHover,activeBorderColor:d,activeShadow:`0 0 0 1px ${d}`,colorBgContainer:c.bgField,hoverBg:c.bgElevated,activeBg:c.bgElevated},b={algorithm:["dark"===r?t.theme.darkAlgorithm:t.theme.defaultAlgorithm,(e,t)=>({...t,colorPrimary:d,colorInfo:d,colorLink:d,colorPrimaryText:d,colorPrimaryBg:s.primaryBg,colorPrimaryBgHover:s.primaryBgHover,colorPrimaryBorder:s.primaryBorder,colorSuccess:x.success,colorSuccessText:x.success,colorSuccessBg:x.successBg,colorError:x.error,colorErrorText:x.error,colorErrorBg:x.errorBg,colorWarning:x.warning,colorWarningText:x.warning,colorWarningBg:x.warningBg})],cssVar:{key:"hisd3"},token:{colorPrimary:d,colorInfo:d,colorLink:d,colorPrimaryBg:s.primaryBg,colorPrimaryBgHover:s.primaryBgHover,colorPrimaryBorder:s.primaryBorder,colorSuccess:x.success,colorSuccessBg:x.successBg,colorSuccessBorder:x.success,colorError:x.error,colorErrorBg:x.errorBg,colorErrorBorder:x.error,colorWarning:x.warning,colorWarningBg:x.warningBg,colorWarningBorder:x.warning,fontFamily:g,fontSize:14,fontWeightStrong:700,borderRadius:o,borderRadiusLG:o,borderRadiusSM:o,borderRadiusXS:o,lineWidth:m,colorBgLayout:c.bgLayout,colorBgContainer:c.bgContainer,colorBgElevated:c.bgElevated,colorBgMask:c.mask,colorBgContainerDisabled:c.bgFilled,colorText:c.text,colorTextSecondary:c.textSecondary,colorTextTertiary:c.textTertiary,colorTextPlaceholder:c.textTertiary,colorTextDisabled:c.textTertiary,colorTextHeading:c.text,colorBorder:c.border,colorBorderSecondary:c.borderSecondary,colorSplit:c.borderSecondary,controlHeight:40,controlHeightLG:52,controlHeightSM:32,boxShadow:"none",boxShadowSecondary:"dark"===r?"0 2px 6px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.5)":"0 2px 6px rgba(16,15,14,0.06), 0 12px 32px rgba(16,15,14,0.14)"},components:{Layout:{siderBg:c.bgLayout,headerBg:c.bgLayout,bodyBg:c.bgLayout,headerPadding:`0 ${n.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",popupBg:c.bgElevated,itemColor:c.text,itemHoverColor:c.text,itemHoverBg:c.hover,itemSelectedBg:s.primaryBg,itemSelectedColor:d,itemActiveBg:s.primaryBgHover,subMenuItemSelectedColor:d,horizontalItemSelectedColor:d,horizontalItemHoverColor:d,groupTitleColor:c.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:40,itemPaddingInline:n.pageGutter,iconSize:16,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",primaryColor:s.onPrimary,dangerColor:s.onPrimary,defaultBorderColor:c.border,defaultColor:c.text,defaultBg:c.bgLayout,defaultHoverBg:c.bgElevated,defaultHoverBorderColor:c.borderStrong,defaultHoverColor:c.text,defaultActiveBorderColor:c.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{...u,paddingInline:16},InputNumber:u,Select:{...u,optionSelectedBg:s.primaryBg,selectorBg:c.bgField},DatePicker:u,Cascader:u,TreeSelect:u,Mentions:u,Checkbox:{colorBorder:c.controlBorder,colorBgContainer:c.bgField,colorWhite:s.onPrimary},Radio:{colorBorder:c.controlBorder,colorBgContainer:c.bgField,dotColorDisabled:c.textTertiary},Segmented:{trackBg:c.bgFilledHover,itemColor:c.textSecondary,itemHoverColor:c.text,itemHoverBg:c.hover,itemSelectedBg:d,itemSelectedColor:s.onPrimary},Table:{headerBg:c.bgContainer,headerColor:c.textSecondary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:c.borderSecondary,rowHoverBg:c.bgRowHover,rowSelectedBg:s.primaryBg,rowSelectedHoverBg:s.primaryBgHover,cellPaddingBlock:10,cellPaddingInline:12,cellFontSize:14,cellPaddingBlockMD:8,cellPaddingInlineMD:10,cellPaddingBlockSM:6,cellPaddingInlineSM:8,cellFontSizeMD:14,cellFontSizeSM:13,footerBg:c.bgContainer},Tabs:{inkBarColor:d,itemColor:c.text,itemSelectedColor:d,itemHoverColor:d,titleFontSize:15,horizontalItemGutter:32,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:c.bgLayout,itemActiveBg:d,itemActiveColor:s.onPrimary,itemActiveColorHover:s.onPrimary,itemSize:32,itemSizeSM:26,itemInputBg:c.bgField},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:c.textTertiary,lastItemColor:c.text,linkColor:c.textTertiary,linkHoverColor:d,separatorColor:c.textTertiary},Card:{headerFontSize:18,headerFontSizeSM:16,colorBgContainer:c.bgElevated},Drawer:{colorBgElevated:c.bgElevated},Alert:{withDescriptionPadding:"14px 16px"}}};return l?{...b,...l,token:{...b.token,...l.token},components:{...b.components,...l.components}}:b},k=({primary:e,mode:t="light",borders:r="hairline",lineWidth:o,radius:a=0,selector:i=":root"}={})=>{const n=S(e,t),{n:l,b:s}=A(t,r),d=p[t],c=":root"===i;return[`${i}{`,`color-scheme:${t};`,`--hisd3-mode:${t};`,`--hisd3-rule-width:${o??s.width}px;`,`--hisd3-control-bg:${l.bgFilled};`,`--hisd3-control-bg-hover:${l.bgFilledHover};`,`--hisd3-input-bg:${l.bgField};`,`--hisd3-input-bg-hover:${l.bgElevated};`,`--hisd3-input-border:${l.controlBorder};`,`--hisd3-input-border-hover:${l.controlBorderHover};`,`--hisd3-hover:${l.hover};`,`--hisd3-on-primary:${n.onPrimary};`,`--hisd3-focus-ring:${n.primary};`,"--hisd3-popup-radius:10px;",`--hisd3-radius:${a}px;`,`--ant-color-primary:${n.primary};`,`--ant-color-primary-bg:${n.primaryBg};`,`--ant-color-primary-bg-hover:${n.primaryBgHover};`,`--ant-color-primary-border:${n.primaryBorder};`,`--ant-color-success:${d.success};`,`--ant-color-success-bg:${d.successBg};`,`--ant-color-error:${d.error};`,`--ant-color-error-bg:${d.errorBg};`,`--ant-color-warning:${d.warning};`,`--ant-color-warning-bg:${d.warningBg};`,`--ant-color-text:${l.text};`,`--ant-color-text-secondary:${l.textSecondary};`,`--ant-color-text-tertiary:${l.textTertiary};`,`--hisd3-table-bg:${l.bgContainer};`,`--hisd3-table-hover-bg:${l.bgRowHover};`,`--hisd3-panel-bg:${l.bgElevated};`,`--hisd3-panel-hover-bg:${l.bgPanelRowHover};`,`--hisd3-border:${s.border};`,`--hisd3-border-secondary:${s.borderSecondary};`,`--ant-color-border:${s.border};`,`--ant-color-border-secondary:${s.borderSecondary};`,`--ant-color-bg-layout:${l.bgLayout};`,`--ant-color-bg-elevated:${l.bgElevated};`,"}",c?`body{background:${l.bgLayout};color:${l.text};}`:"",c?`.ant-card,.ant-drawer-content,.ant-modal-content{--hisd3-table-bg:${l.bgElevated};--hisd3-table-hover-bg:${l.bgPanelRowHover};}`:""].join("")},F=D(),E={primary:l.red,primaryLight:f(l.red,.9),headerSelectedBg:"rgba(0,0,0,0.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VyPnePqnPsx30XsFqisQ2s+gBOtPZ2fDUE7d8lebmGYiZV7y/6n9W/yzqWfk3NQDKURs9OHivycaFr2ddzQqbzhYBwJ2dnTi/jYVTUYspndnn4AKghkDAaAyzhKKuPdPZ2dC150lqRUnGwkrDNrNKX+pZXN27V+q6cSMn+lm4ANjEHkZ0OQbj5rVcg+MUwe4jsPDhKgqlFJBVNCK/BccVFwBOFdokr2VqhF1UPdG9unev5D5hFwA1ggRju8rWE7ac4qknbvncB+sCwNmiZYSM7ipbT3bi9iSAupbUfcAuAJwtU5eE8nSE4Bw+M54739sn1Wtu3gVAnQXCRJaFBML6wbluAOwCoGaEBatmNyvmVpbpFk/yVfeJugCoKemenX0QAcCtU3NxMyBAAIOshsmlP2Lk/wGgJmAjjF1q8QAAAABJRU5ErkJggg==",{Header:C,Content:z}=t.Layout,T=n.siderWidth,R=n.siderCollapsedWidth,H=n.topBarHeight,N=o(t.Layout)`
2
2
  position: relative; /* anchor for the edge collapse trigger */
3
3
  background: var(--ant-color-bg-layout);
4
4
 
@@ -30,7 +30,7 @@
30
30
  height: 100%;
31
31
  }
32
32
  }
33
- `,P=o(r.Layout)`
33
+ `,P=o(t.Layout)`
34
34
  background: transparent;
35
35
  min-width: 0;
36
36
 
@@ -50,7 +50,7 @@
50
50
 
51
51
  /* Section titles: "RECEIVABLES AND COLLECTIONS" */
52
52
  .ant-menu-item-group-title {
53
- padding: 16px ${a.pageGutter}px 4px;
53
+ padding: 16px ${n.pageGutter}px 4px;
54
54
  /* overline: 12px; wide tracking at 11px broke the words apart. */
55
55
  font-size: 12px;
56
56
  line-height: 16px;
@@ -70,6 +70,11 @@
70
70
  content: none;
71
71
  }
72
72
 
73
+ /* The section the current screen is in: its title in the text colour, so the eye lands on it first. */
74
+ .ant-menu-item-group:has(.ant-menu-item-selected) > .ant-menu-item-group-title {
75
+ color: var(--ant-color-text);
76
+ }
77
+
73
78
  .ant-menu-item,
74
79
  .ant-menu-submenu-title {
75
80
  font-size: 14px;
@@ -118,7 +123,7 @@
118
123
  align-items: center;
119
124
  gap: 10px;
120
125
  height: ${H}px;
121
- padding: 0 ${({$collapsed:e})=>e?12:a.pageGutter}px;
126
+ padding: 0 ${({$collapsed:e})=>e?12:n.pageGutter}px;
122
127
  justify-content: ${({$collapsed:e})=>e?"center":"flex-start"};
123
128
  color: inherit;
124
129
  text-decoration: none;
@@ -162,7 +167,7 @@
162
167
  flex: 0 0 ${H}px;
163
168
  height: ${H}px;
164
169
  line-height: ${H}px;
165
- padding: 0 ${a.pageGutter}px;
170
+ padding: 0 ${n.pageGutter}px;
166
171
  position: sticky;
167
172
  top: 0;
168
173
  z-index: 100;
@@ -185,7 +190,7 @@
185
190
  flex: 0 0 ${H}px;
186
191
  height: ${H}px;
187
192
  line-height: ${H}px;
188
- padding: 0 ${a.pageGutter}px;
193
+ padding: 0 ${n.pageGutter}px;
189
194
  position: sticky;
190
195
  top: 0;
191
196
  z-index: 99;
@@ -249,7 +254,7 @@
249
254
  }
250
255
  `,q=o(z)`
251
256
  flex: 1 0 auto;
252
- padding: 24px ${a.pageGutter}px 40px;
257
+ padding: 24px ${n.pageGutter}px 40px;
253
258
  `,W=o.div`
254
259
  flex: 0 0 auto;
255
260
  display: flex;
@@ -257,7 +262,7 @@
257
262
  justify-content: center;
258
263
  line-height: 1.25;
259
264
  transition: all 0.2s ease;
260
- padding: ${({$inHeader:e,$collapsed:r})=>e?"0 4px":r?"12px 0":`12px ${a.pageGutter}px`};
265
+ padding: ${({$inHeader:e,$collapsed:t})=>e?"0 4px":t?"12px 0":`12px ${n.pageGutter}px`};
261
266
  min-width: ${({$inHeader:e})=>e?"220px":"0"};
262
267
  border-top: ${({$inHeader:e})=>e?"none":"var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE))"};
263
268
 
@@ -325,18 +330,18 @@
325
330
  overflow: hidden;
326
331
  text-overflow: ellipsis;
327
332
  white-space: nowrap;
328
- `,_=(e,r)=>e.key??e.path??`menu-${r}`,ee=(e,r)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,t)=>{const o=_(e,t);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:ee(e.children,r)}:{key:o,icon:e.icon,disabled:e.disabled,label:r(e,e.name)}})),re=(e,r)=>t.createElement("a",{href:e.path||"/"},r),te=({account:t,avatarSrc:o,settingsUrl:n,onLogout:a,collapsed:s=!1,placement:l="topRight",extraItems:d=[]})=>{const{modal:p}=r.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=(t.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(W,{className:"cr-user-info-light",$collapsed:s,$inHeader:"bottomRight"===l,children:e.jsx(r.Dropdown,{trigger:["click"],placement:l,menu:{items:c},children:e.jsxs(K,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(Q,{$src:o,"aria-hidden":!0,children:!o&&h}),!s&&e.jsxs(V,{children:[e.jsxs(Y,{children:[e.jsx(Z,{title:t.fullName,children:t.fullName}),e.jsx(J,{children:e.jsx(i.DownOutlined,{})})]}),t.positionType&&e.jsx(X,{title:t.positionType,children:t.positionType})]})]})})})},{Sider:oe}=r.Layout,ie=a.pageGutter,ne=o.header`
333
+ `,_=(e,t)=>e.key??e.path??`menu-${t}`,ee=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=_(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:o,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:ee(e.children,t)}:{key:o,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),te=(e,t)=>r.createElement("a",{href:e.path||"/"},t),re=({account:r,avatarSrc:o,settingsUrl:i,onLogout:n,collapsed:l=!1,placement:s="topRight",extraItems:d=[]})=>{const{modal:p}=t.App.useApp(),c=[...d??[],{key:"settings",icon:e.jsx(a.SettingOutlined,{}),label:"Settings",onClick:()=>{window.location.href=i??"/settings"}},{key:"logout",icon:e.jsx(a.LogoutOutlined,{}),label:"Logout",onClick:()=>{p.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(a.ExclamationCircleOutlined,{}),onOk:n})}}],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(W,{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(K,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[e.jsx(Q,{$src:o,"aria-hidden":!0,children:!o&&h}),!l&&e.jsxs(V,{children:[e.jsxs(Y,{children:[e.jsx(Z,{title:r.fullName,children:r.fullName}),e.jsx(J,{children:e.jsx(a.DownOutlined,{})})]}),r.positionType&&e.jsx(X,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:oe}=t.Layout,ae=n.pageGutter,ie=o.header`
329
334
  display: contents;
330
- `,ae=o.div`
335
+ `,ne=o.div`
331
336
  user-select: none;
332
337
  -webkit-user-select: none;
333
338
  display: flex;
334
339
  align-items: center;
335
340
  gap: 16px;
336
- height: ${a.topBarHeight}px; /* same as the sidebar brand block */
341
+ height: ${n.topBarHeight}px; /* same as the sidebar brand block */
337
342
  /* never shrink: these are flex items of the scrolling column */
338
- flex: 0 0 ${a.topBarHeight}px;
339
- padding: 0 ${ie}px;
343
+ flex: 0 0 ${n.topBarHeight}px;
344
+ padding: 0 ${ae}px;
340
345
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
341
346
  background: var(--ant-color-bg-layout);
342
347
  position: sticky;
@@ -352,18 +357,18 @@
352
357
  .ant-breadcrumb ol {
353
358
  flex-wrap: nowrap;
354
359
  }
355
- `,se=o.div`
360
+ `,le=o.div`
356
361
  display: flex;
357
362
  align-items: center;
358
363
  gap: 10px;
359
364
  flex: 0 0 auto;
360
- `,le=o.div`
365
+ `,se=o.div`
361
366
  display: flex;
362
367
  align-items: baseline;
363
368
  gap: 16px;
364
369
  flex-wrap: wrap;
365
370
  flex: 0 0 auto;
366
- padding: 20px ${ie}px 18px;
371
+ padding: 20px ${ae}px 18px;
367
372
  border-bottom: var(--hisd3-rule-width, 1px) solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
368
373
 
369
374
  h1 {
@@ -383,8 +388,8 @@
383
388
  }
384
389
  `,de=o.div`
385
390
  flex: 1 0 auto;
386
- padding: 24px ${ie}px 40px;
387
- `,pe=o(r.Button)`
391
+ padding: 24px ${ae}px 40px;
392
+ `,pe=o(t.Button)`
388
393
  &.ant-btn {
389
394
  display: inline-flex;
390
395
  align-items: center;
@@ -416,7 +421,7 @@
416
421
  .anticon {
417
422
  font-size: 1.05em;
418
423
  }
419
- `,ce={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},he=({variant:r="secondary",...t})=>e.jsx(pe,{...ce[r],...t}),ge=e=>"soft"===e,xe=1024,me=560,ue=o.div`
424
+ `,ce={primary:{type:"primary"},secondary:{type:"default"},ghost:{type:"text"},danger:{type:"primary",danger:!0}},he=({variant:t="secondary",...r})=>e.jsx(pe,{...ce[t],...r}),ge=e=>"soft"===e,xe=1024,me=560,ue=o.div`
420
425
  position: relative;
421
426
  min-height: 100vh;
422
427
  min-height: 100dvh; /* keeps mobile browser chrome from clipping the card */
@@ -453,7 +458,7 @@
453
458
  `,be=o.aside`
454
459
  position: absolute;
455
460
  /* the panel takes the side the card does not */
456
- inset: ${({$variant:e,$side:r})=>{const t=ge(e)?"28px":"0";return"right"===r?`${t} 40% ${t} ${t}`:`${t} ${t} ${t} 40%`}};
461
+ inset: ${({$variant:e,$side:t})=>{const r=ge(e)?"28px":"0";return"right"===t?`${r} 40% ${r} ${r}`:`${r} ${r} ${r} 40%`}};
457
462
  border-radius: ${({$variant:e})=>ge(e)?"28px":"0"};
458
463
  background: var(--ant-color-primary, #E5533B);
459
464
  overflow: hidden;
@@ -634,10 +639,10 @@
634
639
  box-shadow: 0 4px 10px rgba(16, 15, 14, 0.05),
635
640
  0 24px 60px rgba(16, 15, 14, 0.14);
636
641
  `:o.css`
642
+ /* Flat, like the shell: a hairline edge and nothing floating. */
637
643
  border-radius: 0;
638
644
  border: var(--hisd3-rule-width, 1px) solid var(--hisd3-border, var(--ant-color-border, #D9D5CE));
639
- box-shadow: 0 2px 4px rgba(16, 15, 14, 0.04),
640
- 0 18px 44px rgba(16, 15, 14, 0.1);
645
+ box-shadow: none;
641
646
  `}
642
647
 
643
648
  /* tablet and below: no panel, so centre the card */
@@ -708,7 +713,7 @@
708
713
  margin: 0 0 22px;
709
714
  font-size: 14px;
710
715
  color: var(--ant-color-text-secondary, #4A4A4A);
711
- `,je=o.label`
716
+ `,Ee=o.label`
712
717
  display: block;
713
718
  margin-bottom: 16px;
714
719
 
@@ -779,7 +784,7 @@
779
784
  color: var(--ant-color-text, #171717);
780
785
  }
781
786
  }
782
- `,Ee=o.div`
787
+ `,je=o.div`
783
788
  display: flex;
784
789
  align-items: center;
785
790
  justify-content: space-between;
@@ -1176,6 +1181,79 @@
1176
1181
  background: var(--hisd3-table-hover-bg, #ecebe9) !important;
1177
1182
  }
1178
1183
 
1184
+ /*
1185
+ * A fixed column takes the table's surface. antd paints a sticky cell with
1186
+ * its own container colour so the columns scrolling under it cannot show
1187
+ * through; \`--hisd3-table-bg\` is what every other cell uses, and it
1188
+ * already follows the surface. antd 6 names the cells \`fix-start\` /
1189
+ * \`fix-end\`; the \`left\` / \`right\` names are antd 5's.
1190
+ */
1191
+ .ant-table-wrapper .ant-table-cell-fix-start,
1192
+ .ant-table-wrapper .ant-table-cell-fix-end,
1193
+ .ant-table-wrapper .ant-table-cell-fix-left,
1194
+ .ant-table-wrapper .ant-table-cell-fix-right {
1195
+ background: var(--hisd3-table-bg, #f6f5f2) !important;
1196
+ }
1197
+
1198
+ .ant-table-wrapper .ant-table-tbody > tr > td.ant-table-cell-fix-start.ant-table-cell-row-hover,
1199
+ .ant-table-wrapper .ant-table-tbody > tr > td.ant-table-cell-fix-end.ant-table-cell-row-hover,
1200
+ .ant-table-wrapper .ant-table-tbody > tr > td.ant-table-cell-fix-left.ant-table-cell-row-hover,
1201
+ .ant-table-wrapper .ant-table-tbody > tr > td.ant-table-cell-fix-right.ant-table-cell-row-hover {
1202
+ background: var(--hisd3-table-hover-bg, #ecebe9) !important;
1203
+ }
1204
+
1205
+ /*
1206
+ * The edge of a fixed column is a rule like the ones between rows, not a
1207
+ * blurred shadow: antd fades a shadow in at the column's edge once the
1208
+ * table scrolls under it, and against a white panel the fade reads as a
1209
+ * heavier, different kind of line. The class is antd's own, so the rule
1210
+ * still appears only while there is something to scroll under the column.
1211
+ */
1212
+ .ant-table-wrapper .ant-table-cell-fix-end-shadow-show::after {
1213
+ box-shadow: inset -1px 0 0 var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE)) !important;
1214
+ }
1215
+
1216
+ .ant-table-wrapper .ant-table-cell-fix-start-shadow-show::after {
1217
+ box-shadow: inset 1px 0 0 var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE)) !important;
1218
+ }
1219
+
1220
+ /*
1221
+ * On the page a table is a panel: the elevated surface (white in light),
1222
+ * a hairline edge, and the cells and the pager inset from it. Inside a
1223
+ * card, a drawer or a modal the surface is already a panel, so the table
1224
+ * lies flat on it with the rules above. The heading rule and the last
1225
+ * row's are as quiet as the row rules, so the data is the darkest thing
1226
+ * in the panel.
1227
+ */
1228
+ &:not(.ant-card *, .ant-drawer *, .ant-modal *) {
1229
+ background: var(--hisd3-panel-bg, #ffffff);
1230
+ border: var(--hisd3-rule-width, 1px) solid var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1231
+ padding: 0 0 4px;
1232
+ --hisd3-table-bg: var(--hisd3-panel-bg, #ffffff);
1233
+ --hisd3-table-hover-bg: var(--hisd3-panel-hover-bg, #f6f5f3);
1234
+ --hisd3-border: var(--hisd3-border-secondary, var(--ant-color-border-secondary, #E7E4DE));
1235
+
1236
+ /* The heading row sits on the panel's top edge, 14px above and below its text. */
1237
+ .ant-table-wrapper .ant-table-thead > tr > th {
1238
+ padding-block: 14px;
1239
+ }
1240
+
1241
+ .ant-table-wrapper .ant-table-thead > tr > th:first-child,
1242
+ .ant-table-wrapper .ant-table-tbody > tr > td:first-child {
1243
+ padding-left: ${n.panelInset}px;
1244
+ }
1245
+
1246
+ .ant-table-wrapper .ant-table-thead > tr > th:last-child,
1247
+ .ant-table-wrapper .ant-table-tbody > tr > td:last-child {
1248
+ padding-right: ${n.panelInset}px;
1249
+ }
1250
+
1251
+ /* The summary strip and the pager sit beside the table inside the panel. */
1252
+ > :not(.ant-table-wrapper) {
1253
+ padding-inline: ${n.panelInset}px;
1254
+ }
1255
+ }
1256
+
1179
1257
  /* Highlighted / linked cell text, e.g. bill numbers */
1180
1258
  .hisd3-cell-primary {
1181
1259
  color: var(--ant-color-primary);
@@ -1280,7 +1358,7 @@
1280
1358
  color: var(--hisd3-on-primary, #fff);
1281
1359
  }
1282
1360
  }
1283
- `,er=e=>`Total ${e.toLocaleString()} items`;const rr=o(r.Tabs)`
1361
+ `,et=e=>`Total ${e.toLocaleString()} items`;const tt=o(t.Tabs)`
1284
1362
  &.ant-tabs .ant-tabs-nav {
1285
1363
  user-select: none;
1286
1364
  -webkit-user-select: none;
@@ -1315,7 +1393,7 @@
1315
1393
  .ant-tabs-tab-active .hisd3-tab-count {
1316
1394
  color: var(--ant-color-primary);
1317
1395
  }
1318
- `,tr={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)"},or={default:"var(--hisd3-control-bg, #e6e4e1)",primary:"var(--ant-color-primary-bg)",success:"var(--ant-color-success-bg)",warning:"var(--ant-color-warning-bg)",danger:"var(--ant-color-error-bg)"},ir=o.span`
1396
+ `,rt={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)"},ot={default:"var(--hisd3-control-bg, #e6e4e1)",primary:"var(--ant-color-primary-bg)",success:"var(--ant-color-success-bg)",warning:"var(--ant-color-warning-bg)",danger:"var(--ant-color-error-bg)"},at=o.span`
1319
1397
  display: inline-flex;
1320
1398
  align-items: center;
1321
1399
  gap: 5px;
@@ -1331,8 +1409,8 @@
1331
1409
  border: var(--hisd3-rule-width, 1px) solid transparent;
1332
1410
  border-radius: 0;
1333
1411
 
1334
- ${({$variant:e,$tone:r})=>{const t=tr[r],o=or[r];switch(e){case"soft":return`color: ${t}; background: ${o};`;case"outline":return`color: ${t}; border-color: ${t}; background: transparent;`;case"solid":return`color: var(--hisd3-on-primary, #fff); background: ${"default"===r?"var(--ant-color-text)":t};`;default:return"color: var(--ant-color-text); background: var(--hisd3-control-bg, #e6e4e1);"}}}
1335
- `,nr=o(r.Input)`
1412
+ ${({$variant:e,$tone:t})=>{const r=rt[t],o=ot[t];switch(e){case"soft":return`color: ${r}; background: ${o};`;case"outline":return`color: ${r}; border-color: ${r}; background: transparent;`;case"solid":return`color: var(--hisd3-on-primary, #fff); background: ${"default"===t?"var(--ant-color-text)":r};`;default:return"color: var(--ant-color-text); background: var(--hisd3-control-bg, #e6e4e1);"}}}
1413
+ `,it=o(t.Input)`
1336
1414
  &.ant-input,
1337
1415
  &.ant-input-affix-wrapper {
1338
1416
  border-width: var(--hisd3-rule-width, 1px);
@@ -1344,7 +1422,7 @@
1344
1422
  color: var(--ant-color-text-tertiary);
1345
1423
  font-size: 15px;
1346
1424
  }
1347
- `,ar=t.forwardRef(((r,t)=>e.jsx(nr,{...r,ref:t})));ar.displayName="HISD3Input";const sr=o(nr)`
1425
+ `,nt=r.forwardRef(((t,r)=>e.jsx(it,{...t,ref:r})));nt.displayName="HISD3Input";const lt=o(it)`
1348
1426
  /*
1349
1427
  * default: the same 40px control height as buttons and selects.
1350
1428
  * Lighter than the page with the same 3:1 edge as every other field, so it
@@ -1407,7 +1485,7 @@
1407
1485
  font-size: 19px;
1408
1486
  }
1409
1487
  }
1410
- `,lr={small:"hisd3-search-sm",middle:"",large:"hisd3-search-lg"},dr=t.forwardRef((({size:r,compact:t,className:o,...n},a)=>e.jsx(sr,{ref:a,allowClear:!0,prefix:e.jsx(i.SearchOutlined,{}),className:[lr[r??(t?"small":"middle")],o??""].join(" ").trim(),...n})));dr.displayName="HISD3SearchInput";const pr=({label:r,description:t,mono:o})=>e.jsxs("div",{className:"hisd3-select-label",children:[e.jsx("div",{className:"hisd3-select-label-primary",style:o?{fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"}:void 0,children:r}),null!=t&&""!==t?e.jsx("div",{className:"hisd3-select-label-description",children:t}):null]}),cr=e=>"string"==typeof e||"number"==typeof e?String(e):"",hr=e=>(e??[]).flatMap((e=>Array.isArray(e.options)?hr(e.options):[e])),gr=(e,r)=>{if(!r)return!1;return`${cr(r.label??r.value)} ${cr(r.description)}`.toUpperCase().includes(e.toUpperCase())},xr=(...e)=>e.filter(Boolean).join(" "),mr=t.forwardRef((({wrap:o=!0,monoLabel:i,options:n,mode:a,showSearch:s,filterOption:l,optionFilterProp:d,optionRender:p,labelRender:c,virtual:h,rootClassName:g,...x},m)=>{const u=t.useMemo((()=>new Map(hr(n).map((e=>[e.value,e])))),[n]),b=t.useMemo((()=>[...u.values()].some((e=>null!=e.description))),[u]),f=(r,t)=>null!=r?.description||i?e.jsx(pr,{label:r?.label??t,description:r?.description,mono:i}):t,v="object"==typeof s?s:void 0,y=void 0!==l||void 0!==d||void 0!==v?.filterOption||void 0!==v?.optionFilterProp;return e.jsx(r.Select,{...x,ref:m,mode:a,options:n,showSearch:s,optionFilterProp:d,filterOption:l??(!y&&b?gr:void 0),optionRender:p??(e=>f(e.data,e.label??e.value)),labelRender:c??(a?void 0:({label:e,value:r})=>f(u.get(r),e??r)),virtual:h??(!o&&void 0),rootClassName:xr(o&&"hisd3-wrap-select",g)})}));mr.displayName="HISD3Select";const ur=o(r.Form.Item)`
1488
+ `,st={small:"hisd3-search-sm",middle:"",large:"hisd3-search-lg"},dt=r.forwardRef((({size:t,compact:r,className:o,...i},n)=>e.jsx(lt,{ref:n,allowClear:!0,prefix:e.jsx(a.SearchOutlined,{}),className:[st[t??(r?"small":"middle")],o??""].join(" ").trim(),...i})));dt.displayName="HISD3SearchInput";const pt=({label:t,description:r,mono:o})=>e.jsxs("div",{className:"hisd3-select-label",children:[e.jsx("div",{className:"hisd3-select-label-primary",style:o?{fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"}:void 0,children:t}),null!=r&&""!==r?e.jsx("div",{className:"hisd3-select-label-description",children:r}):null]}),ct=e=>"string"==typeof e||"number"==typeof e?String(e):"",ht=e=>(e??[]).flatMap((e=>Array.isArray(e.options)?ht(e.options):[e])),gt=(e,t)=>{if(!t)return!1;return`${ct(t.label??t.value)} ${ct(t.description)}`.toUpperCase().includes(e.toUpperCase())},xt=(...e)=>e.filter(Boolean).join(" "),mt=r.forwardRef((({wrap:o=!0,monoLabel:a,options:i,mode:n,showSearch:l,filterOption:s,optionFilterProp:d,optionRender:p,labelRender:c,virtual:h,rootClassName:g,...x},m)=>{const u=r.useMemo((()=>new Map(ht(i).map((e=>[e.value,e])))),[i]),b=r.useMemo((()=>[...u.values()].some((e=>null!=e.description))),[u]),f=(t,r)=>null!=t?.description||a?e.jsx(pt,{label:t?.label??r,description:t?.description,mono:a}):r,v="object"==typeof l?l:void 0,y=void 0!==s||void 0!==d||void 0!==v?.filterOption||void 0!==v?.optionFilterProp;return e.jsx(t.Select,{...x,ref:m,mode:n,options:i,showSearch:l,optionFilterProp:d,filterOption:s??(!y&&b?gt:void 0),optionRender:p??(e=>f(e.data,e.label??e.value)),labelRender:c??(n?void 0:({label:e,value:t})=>f(u.get(t),e??t)),virtual:h??(!o&&void 0),rootClassName:xt(o&&"hisd3-wrap-select",g)})}));mt.displayName="HISD3Select";const ut=o(t.Form.Item)`
1411
1489
  &.ant-form-item {
1412
1490
  margin-bottom: 6px;
1413
1491
  }
@@ -1427,5 +1505,5 @@
1427
1505
  .ant-input-number-group-wrapper {
1428
1506
  width: 100%;
1429
1507
  }
1430
- `,br=({node:r})=>e.jsx(e.Fragment,{children:r}),fr=({loading:t,loadingProps:o,vertical:i,bolderLabel:n,controlSize:a,skeleton:s,layout:l,className:d,children:p,...c})=>e.jsx(ur,{...c,layout:i?"vertical":l,className:["hisd3-form-field",n?"hisd3-form-field-bold":"",d??""].join(" ").trim(),children:t?e.jsx(br,{node:s??e.jsx(r.Skeleton.Input,{active:!0,block:!0,size:a,...o})}):p}),vr=t=>e.jsx(r.Skeleton.Button,{active:!0,size:"small",style:{width:t,minWidth:t}}),yr=t.forwardRef((({fieldProps:r,propsinput:t,...o},i)=>{const n={...t,...r};return e.jsx(fr,{...o,controlSize:n.size,children:e.jsx(ar,{...n,ref:i})})}));yr.displayName="HISD3FormInput";const wr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Input.Password,{...t,ref:i})})));wr.displayName="HISD3FormPassword";const Sr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{...o,style:{height:22*(t?.rows??3)+10,...o?.style}},children:e.jsx(r.Input.TextArea,{...t,ref:n})})));Sr.displayName="HISD3FormTextArea";const Ar=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.InputNumber,{...t,ref:i})})));Ar.displayName="HISD3FormInputNumber";const Dr=t.forwardRef((({fieldProps:r,...t},o)=>e.jsx(fr,{...t,controlSize:r?.size,children:e.jsx(mr,{...r,ref:o})})));Dr.displayName="HISD3FormSelect";const kr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Radio.Group,{...t,ref:i})})));kr.displayName="HISD3FormRadioGroup";const Fr=t.forwardRef((({fieldProps:t,text:o,...i},n)=>e.jsx(fr,{valuePropName:"checked",skeleton:vr(120),...i,children:e.jsx(r.Checkbox,{...t,ref:n,children:o??t?.children})})));Fr.displayName="HISD3FormCheckbox";const jr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,children:e.jsx(r.Checkbox.Group,{...t,ref:i})})));jr.displayName="HISD3FormCheckboxGroup";const Er=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{valuePropName:"checked",skeleton:vr("small"===t?.size?28:44),...o,children:e.jsx(r.Switch,{...t,ref:i})})));Er.displayName="HISD3FormSwitch";const Ir=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.DatePicker,{...t,ref:i})})));Ir.displayName="HISD3FormDatePicker";const Br=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.DatePicker.RangePicker,{...t,ref:i})})));Br.displayName="HISD3FormRangePicker";const Cr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TimePicker,{...t,ref:i})})));Cr.displayName="HISD3FormTimePicker";const zr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TimePicker.RangePicker,{...t,ref:i})})));zr.displayName="HISD3FormTimeRangePicker";const Tr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Input.Search,{...t,ref:i})})));Tr.displayName="HISD3FormSearch";const Rr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{block:!1,...o,style:{width:48*(t?.length??6),...o?.style}},children:e.jsx(r.Input.OTP,{...t,ref:n})})));Rr.displayName="HISD3FormOTP";const Hr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.AutoComplete,{...t,ref:i})})));Hr.displayName="HISD3FormAutoComplete";const Nr=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{...i,controlSize:t?.size,loadingProps:{...o,style:{height:22*(t?.rows??1)+18,...o?.style}},children:e.jsx(r.Mentions,{...t,ref:n})})));Nr.displayName="HISD3FormMentions";const Pr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.Cascader,{...t,ref:i})})));Pr.displayName="HISD3FormCascader";const Lr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:t?.size,children:e.jsx(r.TreeSelect,{...t,ref:i})})));Lr.displayName="HISD3FormTreeSelect";const Mr=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,skeleton:vr(200),children:e.jsx(r.Segmented,{...t,options:t?.options??[],ref:i})})));Mr.displayName="HISD3FormSegmented";const Ur=t.forwardRef((({fieldProps:t,loadingProps:o,...i},n)=>e.jsx(fr,{valuePropName:"targetKeys",loadingProps:{...o,style:{height:200,...o?.style}},...i,children:e.jsx(r.Transfer,{...t,ref:n})})));Ur.displayName="HISD3FormTransfer";const Or=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,controlSize:"small",children:e.jsx(r.Slider,{...t,ref:i})})));Or.displayName="HISD3FormSlider";const $r=t.forwardRef((({fieldProps:t,...o},i)=>e.jsx(fr,{...o,skeleton:vr(28*(t?.count??5)),children:e.jsx(r.Rate,{...t,ref:i})})));$r.displayName="HISD3FormRate";const Gr=({fieldProps:t,...o})=>e.jsx(fr,{getValueFromEvent:(e,r)=>r,skeleton:e.jsx(r.Skeleton.Button,{active:!0,shape:"square"}),...o,children:e.jsx(r.ColorPicker,{...t})});Gr.displayName="HISD3FormColorPicker";const qr=e=>Array.isArray(e)?e:e?.fileList??[],Wr=({fieldProps:t,children:o,...i})=>e.jsx(fr,{valuePropName:"fileList",getValueFromEvent:qr,skeleton:e.jsx(r.Skeleton.Button,{active:!0}),...i,children:e.jsx(r.Upload,{...t,children:o??t?.children})});Wr.displayName="HISD3FormUpload";const Kr=({fieldProps:t,children:o,loadingProps:i,...n})=>e.jsx(fr,{valuePropName:"fileList",getValueFromEvent:qr,loadingProps:{...i,style:{height:150,...i?.style}},...n,children:e.jsx(r.Upload.Dragger,{...t,children:o??t?.children})});Kr.displayName="HISD3FormUploadDragger";const Qr=t.createContext(null);let Vr=0;function Yr({Component:r,props:o,onClose:i,unmount:n}){const[a,s]=t.useState(!0),l=t.useRef(!1),d={...o,open:a,hide:t.useCallback((e=>{l.current||(l.current=!0,s(!1),i?.(e),window.setTimeout(n,320))}),[i,n])};return e.jsx(r,{...d})}var Zr,Jr,Xr,_r,et,rt,tt,ot,it,nt,at,st,lt;exports.ThemeStyle=void 0,(Zr=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Zr.STANDARD="standard",exports.ThemeStyleRadius=void 0,(Jr=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",Jr.STANDARD="16px",exports.ThemeMode=void 0,(Xr=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Xr.SEMI_DARK="semi-dark",Xr.DARK="dark",exports.LayoutType=void 0,(_r=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",_r.BOXED="boxed",_r.FRAMED="framed",exports.MenuStyle=void 0,(et=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",et.STANDARD="standard",et.ROUNDED="rounded",et.ROUNDED_REVERSE="rounded-reverse",et.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(rt=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",rt.MINI="mini",rt.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",rt.STANDARD="standard",rt.HEADER_USER="user-header",rt.HEADER_USER_MINI="user-mini-header",rt.DRAWER="drawer",rt.BIT_BUCKET="bit-bucket",rt.H_DEFAULT="h-default",rt.HOR_HEADER_FIXED="hor-header-fixed",rt.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(tt=exports.FooterType||(exports.FooterType={})).FIXED="fixed",tt.FLUID="fluid",exports.LayoutDirection=void 0,(ot=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",ot.LTR="ltr",exports.HeaderType=void 0,(it=exports.HeaderType||(exports.HeaderType={})).DARK="dark",it.LIGHT="light",exports.RouteTransition=void 0,(nt=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",nt.FADE="fade",nt.SLIDE_LEFT="slideLeft",nt.SLIDE_RIGHT="slideRight",nt.SLIDE_UP="slideUp",nt.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(at=exports.Fonts||(exports.Fonts={})).LIGHT="300",at.REGULAR="400",at.MEDIUM="500",at.BOLD="600",exports.AuthType=void 0,(st=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",st.AWS_COGNITO="aws_cognito",st.AUTH0="auth0",st.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(lt=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",lt.SLIDEUPOUT="transition.slideUpOut",lt.SLIDEDOWNIN="transition.slideDownIn",lt.SLIDEDOWNOUT="transition.slideDownOut",lt.SLIDELEFTIN="transition.slideLeftIn",lt.SLIDELEFTOUT="transition.slideLeftOut",lt.SLIDERIGHTIN="transition.slideRightIn",lt.SLIDERIGHTOUT="transition.slideRightOut",lt.FADEIN="transition.fadeIn",lt.FADEOUT="transition.fadeOut";var dt,pt;exports.MessageType=void 0,(dt=exports.MessageType||(exports.MessageType={}))[dt.MEDIA=1]="MEDIA",dt[dt.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(pt=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",pt.User="user",exports.AppAnimateGroups={SLIDEUPIN:{hidden:{y:0},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.2,staggerChildren:.05}}},SLIDEUPOUT:{hidden:{y:0},visible:{opacity:0,y:"100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNIN:{hidden:{opacity:0,y:"-100vh"},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNOUT:{hidden:{y:0},visible:{opacity:0,y:"-100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTIN:{hidden:{x:"100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTOUT:{hidden:{x:0},visible:{opacity:0,x:"100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTIN:{hidden:{x:"-100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTOUT:{hidden:{x:0},visible:{opacity:0,x:"-100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},FADEIN:{hidden:{opacity:0,scale:1},visible:{opacity:1,scale:1,transition:{ease:"easeIn",when:"beforeChildren",staggerChildren:.15}}},FADEOUT:{hidden:{opacity:1,scale:1},visible:{opacity:0,scale:1,transition:{ease:"easeOut",when:"beforeChildren",staggerChildren:.15}}},NOANIMATION:{hidden:{opacity:1},visible:{opacity:1}}},exports.AppMotionAnimate={SLIDEUPIN:{variants:{hidden:{y:100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEUPOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"-100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDEDOWNIN:{variants:{hidden:{y:-100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEDOWNOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDELEFTIN:{variants:{hidden:{x:100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDELEFTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDERIGHTIN:{variants:{hidden:{x:-100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDERIGHTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},FADEIN:{variants:{hidden:{opacity:0},visible:{opacity:1}},transition:{duration:.1,ease:"easeIn",when:"beforeChildren"}},FADEOUT:{variants:{hidden:{opacity:1},visible:{opacity:0}},transition:{duration:.1,ease:"easeOut",when:"beforeChildren"}}},exports.DialogProvider=function({children:r}){const[o,i]=t.useState([]),n=t.useMemo((()=>({mount:(e,r)=>i((t=>[...t.filter((r=>r.id!==e)),{id:e,node:r}])),unmount:e=>i((r=>r.filter((r=>r.id!==e))))})),[]);return e.jsxs(Qr.Provider,{value:n,children:[r,o.map((r=>e.jsx(t.Fragment,{children:r.node},r.id)))]})},exports.HISD3AvatarMenu=({account:o,avatarSrc:n,settingsUrl:a="/settings",onSettings:s,onLogout:l,confirmLogout:d=!0,extraItems:p,shape:c="circle",size:h=40,hideChevron:g=!1,className:x})=>{const{modal:m}=r.App.useApp(),[u,b]=t.useState(!1),f=[...p??[],...null!==a||s?[{key:"settings",icon:e.jsx(i.SettingOutlined,{}),label:"Settings",onClick:()=>{s?s():a&&(window.location.href=a)}}]:[],{key:"logout",icon:e.jsx(i.LogoutOutlined,{}),label:"Logout",onClick:()=>{d?m.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(i.ExclamationCircleOutlined,{}),okText:"Logout",onOk:l}):l()}}];return e.jsx(r.Dropdown,{open:u,onOpenChange:b,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>b(!1)},popupRender:r=>e.jsxs(Ke,{children:[e.jsxs(qe,{children:[e.jsx(We,{$src:n,children:!n&&Qe(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})]})]}),r]}),children:e.jsxs($e,{type:"button",className:x,$shape:c,$size:h,$open:u,"aria-label":`Account menu for ${o.fullName}`,children:[n?e.jsx("img",{src:n,alt:""}):Qe(o.fullName),!g&&e.jsx(Ge,{$size:h,$open:u,"aria-hidden":!0,children:e.jsx(i.DownOutlined,{})})]})})},exports.HISD3Button=he,exports.HISD3FormAutoComplete=Hr,exports.HISD3FormCascader=Pr,exports.HISD3FormCheckbox=Fr,exports.HISD3FormCheckboxGroup=jr,exports.HISD3FormColorPicker=Gr,exports.HISD3FormDatePicker=Ir,exports.HISD3FormField=fr,exports.HISD3FormInput=yr,exports.HISD3FormInputNumber=Ar,exports.HISD3FormMentions=Nr,exports.HISD3FormOTP=Rr,exports.HISD3FormPassword=wr,exports.HISD3FormRadioGroup=kr,exports.HISD3FormRangePicker=Br,exports.HISD3FormRate=$r,exports.HISD3FormSearch=Tr,exports.HISD3FormSegmented=Mr,exports.HISD3FormSelect=Dr,exports.HISD3FormSlider=Or,exports.HISD3FormSwitch=Er,exports.HISD3FormTextArea=Sr,exports.HISD3FormTimePicker=Cr,exports.HISD3FormTimeRangePicker=zr,exports.HISD3FormTransfer=Ur,exports.HISD3FormTreeSelect=Lr,exports.HISD3FormUpload=Wr,exports.HISD3FormUploadDragger=Kr,exports.HISD3HeaderActions=({children:r,divided:o=!1,className:i})=>{const n=t.Children.toArray(r).filter(Boolean);return e.jsx(Ve,{className:i,children:n.map(((r,i)=>e.jsxs(t.Fragment,{children:[o&&i===n.length-1&&i>0&&e.jsx(Ye,{}),r]},i)))})},exports.HISD3Input=ar,exports.HISD3LoginPage=({appName:o,tagline:n,logoSrc:a=B,title:s="Nice to see you again",subtitle:l,panelTitle:d="One system for every part of your hospital.",panelSubtitle:p="Patient care, billing and operations — connected.",panelImage:c,organisationName:h="HISD3",variant:g="soft",side:x="right",identifierLabel:m="User ID or email",identifierPlaceholder:u="Email or user ID",passwordLabel:b="Password",passwordPlaceholder:f="Enter password",submitLabel:v="Sign in",hideRemember:y=!1,rememberLabel:w="Remember me",onForgotPassword:S,forgotLabel:A="Forgot password?",error:D,loading:k=!1,onSubmit:F,footer:j,className:E})=>{const[I,C]=t.useState(""),[z,T]=t.useState(""),[R,H]=t.useState(!1),[N,P]=t.useState(!1),[L,M]=t.useState(!1),U=L?B:a;return e.jsxs(ue,{className:E,$side:x,children:[e.jsx(Se,{$variant:g,$side:x,"aria-hidden":!0}),e.jsxs(be,{$variant:g,$side:x,children:[c?e.jsx(ve,{$src:c,"aria-hidden":!0}):e.jsx(ye,{"aria-hidden":!0}),e.jsxs(we,{$side:x,"aria-hidden":!0,children:[e.jsx("img",{src:B,alt:""}),h]}),e.jsxs(fe,{children:[U&&e.jsx("img",{src:U,alt:"",onError:()=>M(!0)}),e.jsxs("span",{children:[e.jsx("span",{className:"hisd3-hero-name",children:o}),n&&e.jsx("span",{className:"hisd3-hero-tagline",children:n})]})]}),e.jsx("h2",{children:d}),p&&e.jsx("p",{children:p})]}),e.jsxs(Ae,{$variant:g,$side:x,onSubmit:e=>{e.preventDefault(),k||F({identifier:I,password:z,remember:R})},noValidate:!0,children:[e.jsxs(De,{$variant:g,children:[U&&e.jsx("img",{className:"hisd3-login-logo",src:U,alt:"",onError:()=>M(!0)}),e.jsxs("span",{children:[e.jsx("span",{className:"hisd3-login-name",children:o}),n&&e.jsx("span",{className:"hisd3-login-tagline",children:n})]})]}),e.jsx(ke,{$variant:g,children:s}),l&&e.jsx(Fe,{children:l}),D&&e.jsx(Ie,{role:"alert",children:D}),e.jsxs(je,{$variant:g,children:[e.jsx("span",{className:"hisd3-field-label",children:m}),e.jsx("span",{className:"hisd3-field-control",children:e.jsx("input",{value:I,onChange:e=>C(e.target.value),placeholder:u,autoComplete:"username",disabled:k,autoFocus:!0})})]}),e.jsxs(je,{$variant:g,children:[e.jsx("span",{className:"hisd3-field-label",children:b}),e.jsxs("span",{className:"hisd3-field-control",children:[e.jsx("input",{type:N?"text":"password",value:z,onChange:e=>T(e.target.value),placeholder:f,autoComplete:"current-password",disabled:k}),e.jsx("button",{type:"button",className:"hisd3-field-reveal","aria-label":N?"Hide password":"Show password",onClick:()=>P((e=>!e)),tabIndex:-1,children:N?e.jsx(i.EyeInvisibleOutlined,{}):e.jsx(i.EyeOutlined,{})})]})]}),(!y||S)&&e.jsxs(Ee,{children:[y?e.jsx("span",{}):e.jsxs("label",{className:"hisd3-remember",children:[e.jsx(r.Switch,{size:"small",checked:R,onChange:H,disabled:k}),w]}),S&&e.jsx("button",{type:"button",className:"hisd3-forgot",onClick:S,children:A})]}),e.jsx(he,{variant:"primary",htmlType:"submit",size:"large",loading:k,block:!0,style:{borderRadius:"soft"===g?10:0,height:50},children:v}),j&&e.jsx(Be,{children:j})]})]})},exports.HISD3NotificationButton=({items:o=[],count:n,loading:a=!1,title:s="Notifications",onMarkAllRead:l,onSeeAll:d,seeAllLabel:p="See all notifications",emptyText:c="You're all caught up",onOpenChange:h,size:g=40,icon:x,className:m})=>{const[u,b]=t.useState(!1),f=n??o.filter((e=>e.unread)).length,v=e.jsxs(Te,{children:[e.jsxs(Re,{children:[e.jsx("h4",{children:s}),l&&f>0&&e.jsx("button",{type:"button",onClick:l,children:"Mark all as read"})]}),a?e.jsx(Oe,{style:{textAlign:"center"},children:e.jsx(r.Spin,{})}):0===o.length?e.jsx(Oe,{children:e.jsx(r.Empty,{image:r.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(He,{children:o.map((r=>e.jsxs(Ne,{type:"button",$unread:r.unread,onClick:()=>{r.onClick?.(r),b(!1),h?.(!1)},children:[e.jsx(Pe,{$src:r.avatarSrc,children:!r.avatarSrc&&(r.icon??e.jsx(i.BellFilled,{}))}),e.jsxs(Le,{children:[e.jsx("strong",{children:r.title}),r.description&&e.jsx("span",{children:r.description}),r.time&&e.jsx("time",{children:r.time})]}),r.unread&&e.jsx(Me,{})]},r.id)))}),d&&e.jsx(Ue,{type:"button",onClick:()=>{d(),b(!1),h?.(!1)},children:p})]});return e.jsx(r.Dropdown,{open:u,onOpenChange:e=>{b(e),h?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>v,children:e.jsxs(Ce,{type:"button",$size:g,$open:u,className:m,"aria-label":`${s}${f?` (${f} unread)`:""}`,children:[x??e.jsx(i.BellFilled,{}),f>0&&e.jsx(ze,{$size:g,children:f>99?"99+":f})]})})},exports.HISD3PageBody=de,exports.HISD3PageHeader=({title:t,subtitle:o,breadcrumb:i,extra:n,leading:a,hideTopBar:s=!1,className:l})=>e.jsxs(ne,{className:l,children:[!s&&e.jsxs(ae,{children:[a,i&&i.length>0&&e.jsx(r.Breadcrumb,{items:i.map((r=>({title:r.href?e.jsx("a",{href:r.href,children:r.title}):r.title,onClick:r.onClick})))}),!i?.length&&e.jsx("span",{style:{flex:1}}),n&&e.jsx(se,{children:n})]}),e.jsxs(le,{children:[e.jsx("h1",{children:t}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:i,mode:n="light",radius:a,borders:s="hairline",lineWidth:l,overrides:d,theme:p,styledTheme:c={},children:h})=>{const g=t.useMemo((()=>p??D({primary:i,mode:n,radius:a,borders:s,lineWidth:l,overrides:d})),[p,i,n,a,s,l,d]),x=t.useMemo((()=>k({primary:i,mode:n,borders:s,lineWidth:l,radius:a})),[i,n,s,l,a]);return e.jsxs(E.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),e.jsx(r.ConfigProvider,{theme:g,children:e.jsx(o.ThemeProvider,{theme:c,children:e.jsx(r.App,{component:!1,children:h})})})]})},exports.HISD3SearchInput=dr,exports.HISD3Select=mr,exports.HISD3SelectLabel=pr,exports.HISD3Sidebar=({children:n,account:a,logoUrl:s,appName:l,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:g,settingsUrl:x,antdTheme:m,renderMenuLink:u=re,headerExtra:b,userMenuItems:f,onCollapse:v,collapsed:y=!1,loading:w=!1,hideSidebar:S=!1,layoutTop:A=!1,hideCollapseTrigger:D=!1,collapseTrigger:k="edge",collapseTriggerOffset:j=Math.round(H/2),siderWidth:E=T,bareContent:C=!1,hideHeaderBar:z=!1,brandHref:W="/",hideAccountCard:K=!1,scrollContent:Q=!0})=>{const V=I(),Y=void 0===m?V?null:F:m,[Z,J]=t.useState(y);t.useEffect((()=>{J(y)}),[y]);const X=t.useMemo((()=>ee(d,u)),[d,u]),ie=t.useMemo((()=>((e,r)=>{let t;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=_(e,n);if(e.path&&r.startsWith(e.path)){const o=r===e.path,n=e.path.length+(o?1:0);(!t||n>t.length)&&(t={key:a,parents:i,length:n})}e.children?.length&&o(e.children,[...i,a])}))};return o(e,[]),{selectedKey:t?.key,openKeys:t?.parents??[]}})(d,c)),[d,c]),[ne,ae]=t.useState((()=>ie.openKeys));t.useEffect((()=>{ae((e=>Array.from(new Set([...e,...ie.openKeys]))))}),[ie.openKeys.join("|")]);const se=e=>{J(e),v?.(e)},[le,de]=t.useState(!1);t.useEffect((()=>de(!1)),[s]);const pe=ie.selectedKey?[ie.selectedKey]:[],ce=D?"none":k,he=Z?"Expand menu":"Collapse menu",ge=e.jsxs(M,{href:W,$collapsed:!A&&Z,children:[s?e.jsx("img",{src:le?B:s,alt:"",onError:()=>de(!0)}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(A||!Z)&&e.jsx("h1",{children:l})]}),xe=C?n:e.jsx(q,{children:n});if("undefined"==typeof document)return null;const me=e.jsx(r.App,{component:!1,children:e.jsx(r.Spin,{spinning:w,size:"large",children:S?e.jsx(e.Fragment,{children:n}):A?e.jsxs(N,{$appShell:Q,children:[e.jsxs(U,{children:[ge,e.jsx(r.Menu,{mode:"horizontal",items:X,selectedKeys:pe}),b,!K&&e.jsx(te,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,placement:"bottomRight",extraItems:f})]}),e.jsx(P,{$scroll:Q,children:xe})]}):e.jsxs(N,{hasSider:!0,$appShell:Q,children:[e.jsxs(oe,{className:"hisd3-sider",width:E,collapsedWidth:R,collapsible:!0,collapsed:Z,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&se(!0)},children:[ge,e.jsx(L,{className:Z?"hisd3-collapsed":void 0,children:e.jsx(r.Menu,{mode:"inline",theme:"light",inlineCollapsed:Z,items:X,selectedKeys:pe,openKeys:Z?void 0:ne,onOpenChange:e=>ae(e)})}),!K&&e.jsx(te,{account:a,avatarSrc:h,settingsUrl:x,onLogout:p,collapsed:Z,placement:"topRight",extraItems:f})]}),e.jsxs(P,{$scroll:Q,children:[!z&&e.jsxs(O,{children:["header"===ce&&e.jsx($,{type:"button","aria-label":he,onClick:()=>se(!Z),children:Z?e.jsx(i.MenuUnfoldOutlined,{}):e.jsx(i.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),b]}),xe]}),"edge"===ce&&e.jsx(G,{type:"button","aria-label":he,title:he,$left:Z?R:E,$top:j,onClick:()=>se(!Z),children:Z?e.jsx(i.RightOutlined,{}):e.jsx(i.LeftOutlined,{})})]})})});return V&&!g?Y?e.jsx(r.ConfigProvider,{theme:Y,children:me}):me:e.jsx(o.ThemeProvider,{theme:g??{},children:Y?e.jsx(r.ConfigProvider,{theme:Y,children:me}):me})},exports.HISD3Table=function({pagination:t,footer:o,...n}){const a=t||void 0,s=a?.pageSizeOptions??[10,20,50];return e.jsxs(Ze,{children:[e.jsx(r.Table,{...n,pagination:!1}),o&&e.jsx(Je,{children:o}),a&&e.jsxs(Xe,{children:[e.jsx("span",{className:"hisd3-total",children:(a.renderTotal??er)(a.total,[(a.current-1)*a.pageSize+1,Math.min(a.current*a.pageSize,a.total)])}),e.jsx(r.Pagination,{current:a.current,pageSize:a.pageSize,total:a.total,showSizeChanger:!1,onChange:(e,r)=>a.onChange(e,r),itemRender:(r,t,o)=>"prev"===t?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.LeftOutlined,{})}):"next"===t?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(i.RightOutlined,{})}):o}),!a.hidePageSize&&e.jsx(_e,{role:"group","aria-label":"Rows per page",children:s.map((r=>e.jsxs("button",{type:"button","aria-pressed":r===a.pageSize,onClick:()=>a.onChange(1,r),children:[r," / page"]},r)))})]})]})},exports.HISD3Tabs=({items:r,...t})=>e.jsx(rr,{...t,items:r.map((({count:r,label:t,...o})=>({...o,label:e.jsxs(e.Fragment,{children:[t,void 0!==r&&e.jsx("span",{className:"hisd3-tab-count",children:r})]})})))}),exports.HISD3Tag=({variant:r="neutral",tone:t=("neutral"===r?"default":"primary"),children:o,...i})=>e.jsx(ir,{$variant:r,$tone:t,...i,children:o}),exports.HISD3_BORDER_PRESETS=c,exports.HISD3_BORDER_PRESETS_DARK=h,exports.HISD3_COLORS=j,exports.HISD3_FONT_FAMILY=g,exports.HISD3_FONT_WEIGHT_BODY=400,exports.HISD3_FONT_WEIGHT_HEADING=800,exports.HISD3_LAYOUT=a,exports.HISD3_LOGO_SRC=B,exports.HISD3_NEUTRALS=l,exports.HISD3_NEUTRALS_DARK=d,exports.HISD3_PRESETS=s,exports.HISD3_STATUS=p,exports.HeaderIconButton=Ce,exports.UserMenu=te,exports.borderVarsCss=(e="hairline",r)=>k({borders:e,lineWidth:r}),exports.contrastRatio=w,exports.createHisd3Theme=D,exports.getInitials=Qe,exports.hisd3AntdTheme=F,exports.hisd3VarsCss=k,exports.mix=v,exports.normalizeUploadFileList=qr,exports.resolvePrimary=x,exports.resolvePrimaryPalette=S,exports.shade=b,exports.tint=f,exports.useDialog=function(r){const o=t.useContext(Qr);if(!o)throw new Error("useDialog needs DialogProvider above it.");return t.useCallback(((t,i)=>{const n=Vr+=1;o.mount(n,e.jsx(Yr,{Component:r,props:t,onClose:i,unmount:()=>o.unmount(n)},n))}),[r,o])},exports.useInsideHISD3Provider=I;
1508
+ `,bt=({node:t})=>e.jsx(e.Fragment,{children:t}),ft=({loading:r,loadingProps:o,vertical:a,bolderLabel:i,controlSize:n,skeleton:l,layout:s,className:d,children:p,...c})=>e.jsx(ut,{...c,layout:a?"vertical":s,className:["hisd3-form-field",i?"hisd3-form-field-bold":"",d??""].join(" ").trim(),children:r?e.jsx(bt,{node:l??e.jsx(t.Skeleton.Input,{active:!0,block:!0,size:n,...o})}):p}),vt=r=>e.jsx(t.Skeleton.Button,{active:!0,size:"small",style:{width:r,minWidth:r}}),yt=r.forwardRef((({fieldProps:t,propsinput:r,...o},a)=>{const i={...r,...t};return e.jsx(ft,{...o,controlSize:i.size,children:e.jsx(nt,{...i,ref:a})})}));yt.displayName="HISD3FormInput";const wt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.Input.Password,{...r,ref:a})})));wt.displayName="HISD3FormPassword";const St=r.forwardRef((({fieldProps:r,loadingProps:o,...a},i)=>e.jsx(ft,{...a,controlSize:r?.size,loadingProps:{...o,style:{height:22*(r?.rows??3)+10,...o?.style}},children:e.jsx(t.Input.TextArea,{...r,ref:i})})));St.displayName="HISD3FormTextArea";const At=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.InputNumber,{...r,ref:a})})));At.displayName="HISD3FormInputNumber";const Dt=r.forwardRef((({fieldProps:t,...r},o)=>e.jsx(ft,{...r,controlSize:t?.size,children:e.jsx(mt,{...t,ref:o})})));Dt.displayName="HISD3FormSelect";const kt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.Radio.Group,{...r,ref:a})})));kt.displayName="HISD3FormRadioGroup";const Ft=r.forwardRef((({fieldProps:r,text:o,...a},i)=>e.jsx(ft,{valuePropName:"checked",skeleton:vt(120),...a,children:e.jsx(t.Checkbox,{...r,ref:i,children:o??r?.children})})));Ft.displayName="HISD3FormCheckbox";const Et=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,children:e.jsx(t.Checkbox.Group,{...r,ref:a})})));Et.displayName="HISD3FormCheckboxGroup";const jt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{valuePropName:"checked",skeleton:vt("small"===r?.size?28:44),...o,children:e.jsx(t.Switch,{...r,ref:a})})));jt.displayName="HISD3FormSwitch";const It=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.DatePicker,{...r,ref:a})})));It.displayName="HISD3FormDatePicker";const Bt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.DatePicker.RangePicker,{...r,ref:a})})));Bt.displayName="HISD3FormRangePicker";const Ct=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.TimePicker,{...r,ref:a})})));Ct.displayName="HISD3FormTimePicker";const zt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.TimePicker.RangePicker,{...r,ref:a})})));zt.displayName="HISD3FormTimeRangePicker";const Tt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.Input.Search,{...r,ref:a})})));Tt.displayName="HISD3FormSearch";const Rt=r.forwardRef((({fieldProps:r,loadingProps:o,...a},i)=>e.jsx(ft,{...a,controlSize:r?.size,loadingProps:{block:!1,...o,style:{width:48*(r?.length??6),...o?.style}},children:e.jsx(t.Input.OTP,{...r,ref:i})})));Rt.displayName="HISD3FormOTP";const Ht=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.AutoComplete,{...r,ref:a})})));Ht.displayName="HISD3FormAutoComplete";const Nt=r.forwardRef((({fieldProps:r,loadingProps:o,...a},i)=>e.jsx(ft,{...a,controlSize:r?.size,loadingProps:{...o,style:{height:22*(r?.rows??1)+18,...o?.style}},children:e.jsx(t.Mentions,{...r,ref:i})})));Nt.displayName="HISD3FormMentions";const Pt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.Cascader,{...r,ref:a})})));Pt.displayName="HISD3FormCascader";const Lt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:r?.size,children:e.jsx(t.TreeSelect,{...r,ref:a})})));Lt.displayName="HISD3FormTreeSelect";const Mt=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,skeleton:vt(200),children:e.jsx(t.Segmented,{...r,options:r?.options??[],ref:a})})));Mt.displayName="HISD3FormSegmented";const Ut=r.forwardRef((({fieldProps:r,loadingProps:o,...a},i)=>e.jsx(ft,{valuePropName:"targetKeys",loadingProps:{...o,style:{height:200,...o?.style}},...a,children:e.jsx(t.Transfer,{...r,ref:i})})));Ut.displayName="HISD3FormTransfer";const Ot=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,controlSize:"small",children:e.jsx(t.Slider,{...r,ref:a})})));Ot.displayName="HISD3FormSlider";const $t=r.forwardRef((({fieldProps:r,...o},a)=>e.jsx(ft,{...o,skeleton:vt(28*(r?.count??5)),children:e.jsx(t.Rate,{...r,ref:a})})));$t.displayName="HISD3FormRate";const Gt=({fieldProps:r,...o})=>e.jsx(ft,{getValueFromEvent:(e,t)=>t,skeleton:e.jsx(t.Skeleton.Button,{active:!0,shape:"square"}),...o,children:e.jsx(t.ColorPicker,{...r})});Gt.displayName="HISD3FormColorPicker";const qt=e=>Array.isArray(e)?e:e?.fileList??[],Wt=({fieldProps:r,children:o,...a})=>e.jsx(ft,{valuePropName:"fileList",getValueFromEvent:qt,skeleton:e.jsx(t.Skeleton.Button,{active:!0}),...a,children:e.jsx(t.Upload,{...r,children:o??r?.children})});Wt.displayName="HISD3FormUpload";const Kt=({fieldProps:r,children:o,loadingProps:a,...i})=>e.jsx(ft,{valuePropName:"fileList",getValueFromEvent:qt,loadingProps:{...a,style:{height:150,...a?.style}},...i,children:e.jsx(t.Upload.Dragger,{...r,children:o??r?.children})});Kt.displayName="HISD3FormUploadDragger";const Qt=r.createContext(null);let Vt=0;function Yt({Component:t,props:o,onClose:a,unmount:i}){const[n,l]=r.useState(!0),s=r.useRef(!1),d={...o,open:n,hide:r.useCallback((e=>{s.current||(s.current=!0,l(!1),a?.(e),window.setTimeout(i,320))}),[a,i])};return e.jsx(t,{...d})}var Zt,Jt,Xt,_t,er,tr,rr,or,ar,ir,nr,lr,sr;exports.ThemeStyle=void 0,(Zt=exports.ThemeStyle||(exports.ThemeStyle={})).MODERN="modern",Zt.STANDARD="standard",exports.ThemeStyleRadius=void 0,(Jt=exports.ThemeStyleRadius||(exports.ThemeStyleRadius={})).MODERN="30px",Jt.STANDARD="16px",exports.ThemeMode=void 0,(Xt=exports.ThemeMode||(exports.ThemeMode={})).LIGHT="light",Xt.SEMI_DARK="semi-dark",Xt.DARK="dark",exports.LayoutType=void 0,(_t=exports.LayoutType||(exports.LayoutType={})).FULL_WIDTH="full-width",_t.BOXED="boxed",_t.FRAMED="framed",exports.MenuStyle=void 0,(er=exports.MenuStyle||(exports.MenuStyle={})).DEFAULT="default",er.STANDARD="standard",er.ROUNDED="rounded",er.ROUNDED_REVERSE="rounded-reverse",er.CURVED_MENU="curved-menu",exports.NavStyle=void 0,(tr=exports.NavStyle||(exports.NavStyle={})).DEFAULT="default",tr.MINI="mini",tr.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",tr.STANDARD="standard",tr.HEADER_USER="user-header",tr.HEADER_USER_MINI="user-mini-header",tr.DRAWER="drawer",tr.BIT_BUCKET="bit-bucket",tr.H_DEFAULT="h-default",tr.HOR_HEADER_FIXED="hor-header-fixed",tr.HOR_DARK_LAYOUT="hor-dark-layout",exports.FooterType=void 0,(rr=exports.FooterType||(exports.FooterType={})).FIXED="fixed",rr.FLUID="fluid",exports.LayoutDirection=void 0,(or=exports.LayoutDirection||(exports.LayoutDirection={})).RTL="rtl",or.LTR="ltr",exports.HeaderType=void 0,(ar=exports.HeaderType||(exports.HeaderType={})).DARK="dark",ar.LIGHT="light",exports.RouteTransition=void 0,(ir=exports.RouteTransition||(exports.RouteTransition={})).NONE="none",ir.FADE="fade",ir.SLIDE_LEFT="slideLeft",ir.SLIDE_RIGHT="slideRight",ir.SLIDE_UP="slideUp",ir.SLIDE_DOWN="slideDown",exports.Fonts=void 0,(nr=exports.Fonts||(exports.Fonts={})).LIGHT="300",nr.REGULAR="400",nr.MEDIUM="500",nr.BOLD="600",exports.AuthType=void 0,(lr=exports.AuthType||(exports.AuthType={})).FIREBASE="firebase",lr.AWS_COGNITO="aws_cognito",lr.AUTH0="auth0",lr.JWT_AUTH="jwt_auth",exports.AppAnimates=void 0,(sr=exports.AppAnimates||(exports.AppAnimates={})).SLIDEUPIN="transition.slideUpIn",sr.SLIDEUPOUT="transition.slideUpOut",sr.SLIDEDOWNIN="transition.slideDownIn",sr.SLIDEDOWNOUT="transition.slideDownOut",sr.SLIDELEFTIN="transition.slideLeftIn",sr.SLIDELEFTOUT="transition.slideLeftOut",sr.SLIDERIGHTIN="transition.slideRightIn",sr.SLIDERIGHTOUT="transition.slideRightOut",sr.FADEIN="transition.fadeIn",sr.FADEOUT="transition.fadeOut";var dr,pr;exports.MessageType=void 0,(dr=exports.MessageType||(exports.MessageType={}))[dr.MEDIA=1]="MEDIA",dr[dr.TEXT=2]="TEXT",exports.RoutePermittedRole=void 0,(pr=exports.RoutePermittedRole||(exports.RoutePermittedRole={})).Admin="admin",pr.User="user",exports.AppAnimateGroups={SLIDEUPIN:{hidden:{y:0},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.2,staggerChildren:.05}}},SLIDEUPOUT:{hidden:{y:0},visible:{opacity:0,y:"100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNIN:{hidden:{opacity:0,y:"-100vh"},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNOUT:{hidden:{y:0},visible:{opacity:0,y:"-100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTIN:{hidden:{x:"100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTOUT:{hidden:{x:0},visible:{opacity:0,x:"100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTIN:{hidden:{x:"-100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTOUT:{hidden:{x:0},visible:{opacity:0,x:"-100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},FADEIN:{hidden:{opacity:0,scale:1},visible:{opacity:1,scale:1,transition:{ease:"easeIn",when:"beforeChildren",staggerChildren:.15}}},FADEOUT:{hidden:{opacity:1,scale:1},visible:{opacity:0,scale:1,transition:{ease:"easeOut",when:"beforeChildren",staggerChildren:.15}}},NOANIMATION:{hidden:{opacity:1},visible:{opacity:1}}},exports.AppMotionAnimate={SLIDEUPIN:{variants:{hidden:{y:100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEUPOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"-100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDEDOWNIN:{variants:{hidden:{y:-100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEDOWNOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDELEFTIN:{variants:{hidden:{x:100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDELEFTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDERIGHTIN:{variants:{hidden:{x:-100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDERIGHTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},FADEIN:{variants:{hidden:{opacity:0},visible:{opacity:1}},transition:{duration:.1,ease:"easeIn",when:"beforeChildren"}},FADEOUT:{variants:{hidden:{opacity:1},visible:{opacity:0}},transition:{duration:.1,ease:"easeOut",when:"beforeChildren"}}},exports.DialogProvider=function({children:t}){const[o,a]=r.useState([]),i=r.useMemo((()=>({mount:(e,t)=>a((r=>[...r.filter((t=>t.id!==e)),{id:e,node:t}])),unmount:e=>a((t=>t.filter((t=>t.id!==e))))})),[]);return e.jsxs(Qt.Provider,{value:i,children:[t,o.map((t=>e.jsx(r.Fragment,{children:t.node},t.id)))]})},exports.HISD3AvatarMenu=({account:o,avatarSrc:i,settingsUrl:n="/settings",onSettings:l,onLogout:s,confirmLogout:d=!0,extraItems:p,shape:c="circle",size:h=40,hideChevron:g=!1,className:x})=>{const{modal:m}=t.App.useApp(),[u,b]=r.useState(!1),f=[...p??[],...null!==n||l?[{key:"settings",icon:e.jsx(a.SettingOutlined,{}),label:"Settings",onClick:()=>{l?l():n&&(window.location.href=n)}}]:[],{key:"logout",icon:e.jsx(a.LogoutOutlined,{}),label:"Logout",onClick:()=>{d?m.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:e.jsx(a.ExclamationCircleOutlined,{}),okText:"Logout",onOk:s}):s()}}];return e.jsx(t.Dropdown,{open:u,onOpenChange:b,trigger:["click"],placement:"bottomRight",menu:{items:f,onClick:()=>b(!1)},popupRender:t=>e.jsxs(Ke,{children:[e.jsxs(qe,{children:[e.jsx(We,{$src:i,children:!i&&Qe(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($e,{type:"button",className:x,$shape:c,$size:h,$open:u,"aria-label":`Account menu for ${o.fullName}`,children:[i?e.jsx("img",{src:i,alt:""}):Qe(o.fullName),!g&&e.jsx(Ge,{$size:h,$open:u,"aria-hidden":!0,children:e.jsx(a.DownOutlined,{})})]})})},exports.HISD3Button=he,exports.HISD3FormAutoComplete=Ht,exports.HISD3FormCascader=Pt,exports.HISD3FormCheckbox=Ft,exports.HISD3FormCheckboxGroup=Et,exports.HISD3FormColorPicker=Gt,exports.HISD3FormDatePicker=It,exports.HISD3FormField=ft,exports.HISD3FormInput=yt,exports.HISD3FormInputNumber=At,exports.HISD3FormMentions=Nt,exports.HISD3FormOTP=Rt,exports.HISD3FormPassword=wt,exports.HISD3FormRadioGroup=kt,exports.HISD3FormRangePicker=Bt,exports.HISD3FormRate=$t,exports.HISD3FormSearch=Tt,exports.HISD3FormSegmented=Mt,exports.HISD3FormSelect=Dt,exports.HISD3FormSlider=Ot,exports.HISD3FormSwitch=jt,exports.HISD3FormTextArea=St,exports.HISD3FormTimePicker=Ct,exports.HISD3FormTimeRangePicker=zt,exports.HISD3FormTransfer=Ut,exports.HISD3FormTreeSelect=Lt,exports.HISD3FormUpload=Wt,exports.HISD3FormUploadDragger=Kt,exports.HISD3HeaderActions=({children:t,divided:o=!1,className:a})=>{const i=r.Children.toArray(t).filter(Boolean);return e.jsx(Ve,{className:a,children:i.map(((t,a)=>e.jsxs(r.Fragment,{children:[o&&a===i.length-1&&a>0&&e.jsx(Ye,{}),t]},a)))})},exports.HISD3Input=nt,exports.HISD3LoginPage=({appName:o,tagline:i,logoSrc:n=B,title:l="Nice to see you again",subtitle:s,panelTitle:d="One system for every part of your hospital.",panelSubtitle:p="Patient care, billing and operations — connected.",panelImage:c,organisationName:h="HISD3",variant:g="soft",side:x="right",identifierLabel:m="User ID or email",identifierPlaceholder:u="Email or user ID",passwordLabel:b="Password",passwordPlaceholder:f="Enter password",submitLabel:v="Sign in",hideRemember:y=!1,rememberLabel:w="Remember me",onForgotPassword:S,forgotLabel:A="Forgot password?",error:D,loading:k=!1,onSubmit:F,footer:E,className:j})=>{const[I,C]=r.useState(""),[z,T]=r.useState(""),[R,H]=r.useState(!1),[N,P]=r.useState(!1),[L,M]=r.useState(!1),U=L?B:n;return e.jsxs(ue,{className:j,$side:x,children:[e.jsx(Se,{$variant:g,$side:x,"aria-hidden":!0}),e.jsxs(be,{$variant:g,$side:x,children:[c?e.jsx(ve,{$src:c,"aria-hidden":!0}):e.jsx(ye,{"aria-hidden":!0}),e.jsxs(we,{$side:x,"aria-hidden":!0,children:[e.jsx("img",{src:B,alt:""}),h]}),e.jsxs(fe,{children:[U&&e.jsx("img",{src:U,alt:"",onError:()=>M(!0)}),e.jsxs("span",{children:[e.jsx("span",{className:"hisd3-hero-name",children:o}),i&&e.jsx("span",{className:"hisd3-hero-tagline",children:i})]})]}),e.jsx("h2",{children:d}),p&&e.jsx("p",{children:p})]}),e.jsxs(Ae,{$variant:g,$side:x,onSubmit:e=>{e.preventDefault(),k||F({identifier:I,password:z,remember:R})},noValidate:!0,children:[e.jsxs(De,{$variant:g,children:[U&&e.jsx("img",{className:"hisd3-login-logo",src:U,alt:"",onError:()=>M(!0)}),e.jsxs("span",{children:[e.jsx("span",{className:"hisd3-login-name",children:o}),i&&e.jsx("span",{className:"hisd3-login-tagline",children:i})]})]}),e.jsx(ke,{$variant:g,children:l}),s&&e.jsx(Fe,{children:s}),D&&e.jsx(Ie,{role:"alert",children:D}),e.jsxs(Ee,{$variant:g,children:[e.jsx("span",{className:"hisd3-field-label",children:m}),e.jsx("span",{className:"hisd3-field-control",children:e.jsx("input",{value:I,onChange:e=>C(e.target.value),placeholder:u,autoComplete:"username",disabled:k,autoFocus:!0})})]}),e.jsxs(Ee,{$variant:g,children:[e.jsx("span",{className:"hisd3-field-label",children:b}),e.jsxs("span",{className:"hisd3-field-control",children:[e.jsx("input",{type:N?"text":"password",value:z,onChange:e=>T(e.target.value),placeholder:f,autoComplete:"current-password",disabled:k}),e.jsx("button",{type:"button",className:"hisd3-field-reveal","aria-label":N?"Hide password":"Show password",onClick:()=>P((e=>!e)),tabIndex:-1,children:N?e.jsx(a.EyeInvisibleOutlined,{}):e.jsx(a.EyeOutlined,{})})]})]}),(!y||S)&&e.jsxs(je,{children:[y?e.jsx("span",{}):e.jsxs("label",{className:"hisd3-remember",children:[e.jsx(t.Switch,{size:"small",checked:R,onChange:H,disabled:k}),w]}),S&&e.jsx("button",{type:"button",className:"hisd3-forgot",onClick:S,children:A})]}),e.jsx(he,{variant:"primary",htmlType:"submit",size:"large",loading:k,block:!0,style:{borderRadius:"soft"===g?10:0,height:50},children:v}),E&&e.jsx(Be,{children:E})]})]})},exports.HISD3NotificationButton=({items:o=[],count:i,loading:n=!1,title:l="Notifications",onMarkAllRead:s,onSeeAll:d,seeAllLabel:p="See all notifications",emptyText:c="You're all caught up",onOpenChange:h,size:g=40,icon:x,className:m})=>{const[u,b]=r.useState(!1),f=i??o.filter((e=>e.unread)).length,v=e.jsxs(Te,{children:[e.jsxs(Re,{children:[e.jsx("h4",{children:l}),s&&f>0&&e.jsx("button",{type:"button",onClick:s,children:"Mark all as read"})]}),n?e.jsx(Oe,{style:{textAlign:"center"},children:e.jsx(t.Spin,{})}):0===o.length?e.jsx(Oe,{children:e.jsx(t.Empty,{image:t.Empty.PRESENTED_IMAGE_SIMPLE,description:c})}):e.jsx(He,{children:o.map((t=>e.jsxs(Ne,{type:"button",$unread:t.unread,onClick:()=>{t.onClick?.(t),b(!1),h?.(!1)},children:[e.jsx(Pe,{$src:t.avatarSrc,children:!t.avatarSrc&&(t.icon??e.jsx(a.BellFilled,{}))}),e.jsxs(Le,{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(Me,{})]},t.id)))}),d&&e.jsx(Ue,{type:"button",onClick:()=>{d(),b(!1),h?.(!1)},children:p})]});return e.jsx(t.Dropdown,{open:u,onOpenChange:e=>{b(e),h?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>v,children:e.jsxs(Ce,{type:"button",$size:g,$open:u,className:m,"aria-label":`${l}${f?` (${f} unread)`:""}`,children:[x??e.jsx(a.BellFilled,{}),f>0&&e.jsx(ze,{$size:g,children:f>99?"99+":f})]})})},exports.HISD3PageBody=de,exports.HISD3PageHeader=({title:r,subtitle:o,breadcrumb:a,extra:i,leading:n,hideTopBar:l=!1,className:s})=>e.jsxs(ie,{className:s,children:[!l&&e.jsxs(ne,{children:[n,a&&a.length>0&&e.jsx(t.Breadcrumb,{items:a.map((t=>({title:t.href?e.jsx("a",{href:t.href,children:t.title}):t.title,onClick:t.onClick})))}),!a?.length&&e.jsx("span",{style:{flex:1}}),i&&e.jsx(le,{children:i})]}),e.jsxs(se,{children:[e.jsx("h1",{children:r}),o&&e.jsx("p",{children:o})]})]}),exports.HISD3Provider=({primary:a,mode:i="light",radius:n,borders:l="hairline",lineWidth:s,overrides:d,theme:p,styledTheme:c={},children:h})=>{const g=r.useMemo((()=>p??D({primary:a,mode:i,radius:n,borders:l,lineWidth:s,overrides:d})),[p,a,i,n,l,s,d]),x=r.useMemo((()=>k({primary:a,mode:i,borders:l,lineWidth:s,radius:n})),[a,i,l,s,n]);return e.jsxs(j.Provider,{value:!0,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),e.jsx(t.ConfigProvider,{theme:g,children:e.jsx(o.ThemeProvider,{theme:c,children:e.jsx(t.App,{component:!1,children:h})})})]})},exports.HISD3SearchInput=dt,exports.HISD3Select=mt,exports.HISD3SelectLabel=pt,exports.HISD3Sidebar=({children:i,account:n,logoUrl:l,appName:s,menuItems:d,onLogout:p,pathname:c,avatarSrc:h,styledTheme:g,settingsUrl:x,antdTheme:m,renderMenuLink:u=te,headerExtra:b,userMenuItems:f,onCollapse:v,collapsed:y=!1,loading:w=!1,hideSidebar:S=!1,layoutTop:A=!1,hideCollapseTrigger:D=!1,collapseTrigger:k="edge",collapseTriggerOffset:E=Math.round(H/2),siderWidth:j=T,bareContent:C=!1,hideHeaderBar:z=!1,brandHref:W="/",hideAccountCard:K=!1,scrollContent:Q=!0})=>{const V=I(),Y=void 0===m?V?null:F:m,[Z,J]=r.useState(y);r.useEffect((()=>{J(y)}),[y]);const X=r.useMemo((()=>ee(d,u)),[d,u]),ae=r.useMemo((()=>((e,t)=>{let r;const o=(e,a)=>{(e??[]).forEach(((e,i)=>{const n=_(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:n,parents:a,length:i})}e.children?.length&&o(e.children,[...a,n])}))};return o(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(d,c)),[d,c]),[ie,ne]=r.useState((()=>ae.openKeys));r.useEffect((()=>{ne((e=>Array.from(new Set([...e,...ae.openKeys]))))}),[ae.openKeys.join("|")]);const le=e=>{J(e),v?.(e)},[se,de]=r.useState(!1);r.useEffect((()=>de(!1)),[l]);const pe=ae.selectedKey?[ae.selectedKey]:[],ce=D?"none":k,he=Z?"Expand menu":"Collapse menu",ge=e.jsxs(M,{href:W,$collapsed:!A&&Z,children:[l?e.jsx("img",{src:se?B:l,alt:"",onError:()=>de(!0)}):e.jsx("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(A||!Z)&&e.jsx("h1",{children:s})]}),xe=C?i:e.jsx(q,{children:i});if("undefined"==typeof document)return null;const me=e.jsx(t.App,{component:!1,children:e.jsx(t.Spin,{spinning:w,size:"large",children:S?e.jsx(e.Fragment,{children:i}):A?e.jsxs(N,{$appShell:Q,children:[e.jsxs(U,{children:[ge,e.jsx(t.Menu,{mode:"horizontal",items:X,selectedKeys:pe}),b,!K&&e.jsx(re,{account:n,avatarSrc:h,settingsUrl:x,onLogout:p,placement:"bottomRight",extraItems:f})]}),e.jsx(P,{$scroll:Q,children:xe})]}):e.jsxs(N,{hasSider:!0,$appShell:Q,children:[e.jsxs(oe,{className:"hisd3-sider",width:j,collapsedWidth:R,collapsible:!0,collapsed:Z,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&le(!0)},children:[ge,e.jsx(L,{className:Z?"hisd3-collapsed":void 0,children:e.jsx(t.Menu,{mode:"inline",theme:"light",inlineCollapsed:Z,items:X,selectedKeys:pe,openKeys:Z?void 0:ie,onOpenChange:e=>ne(e)})}),!K&&e.jsx(re,{account:n,avatarSrc:h,settingsUrl:x,onLogout:p,collapsed:Z,placement:"topRight",extraItems:f})]}),e.jsxs(P,{$scroll:Q,children:[!z&&e.jsxs(O,{children:["header"===ce&&e.jsx($,{type:"button","aria-label":he,onClick:()=>le(!Z),children:Z?e.jsx(a.MenuUnfoldOutlined,{}):e.jsx(a.MenuFoldOutlined,{})}),e.jsx("span",{style:{flex:1}}),b]}),xe]}),"edge"===ce&&e.jsx(G,{type:"button","aria-label":he,title:he,$left:Z?R:j,$top:E,onClick:()=>le(!Z),children:Z?e.jsx(a.RightOutlined,{}):e.jsx(a.LeftOutlined,{})})]})})});return V&&!g?Y?e.jsx(t.ConfigProvider,{theme:Y,children:me}):me:e.jsx(o.ThemeProvider,{theme:g??{},children:Y?e.jsx(t.ConfigProvider,{theme:Y,children:me}):me})},exports.HISD3Table=function({pagination:r,footer:o,...i}){const n=r||void 0,l=n?.pageSizeOptions??[10,20,50];return e.jsxs(Ze,{children:[e.jsx(t.Table,{...i,pagination:!1}),o&&e.jsx(Je,{children:o}),n&&e.jsxs(Xe,{children:[e.jsx("span",{className:"hisd3-total",children:(n.renderTotal??et)(n.total,[(n.current-1)*n.pageSize+1,Math.min(n.current*n.pageSize,n.total)])}),e.jsx(t.Pagination,{current:n.current,pageSize:n.pageSize,total:n.total,showSizeChanger:!1,onChange:(e,t)=>n.onChange(e,t),itemRender:(t,r,o)=>"prev"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(a.LeftOutlined,{})}):"next"===r?e.jsx("span",{className:"ant-pagination-item-link",children:e.jsx(a.RightOutlined,{})}):o}),!n.hidePageSize&&e.jsx(_e,{role:"group","aria-label":"Rows per page",children:l.map((t=>e.jsxs("button",{type:"button","aria-pressed":t===n.pageSize,onClick:()=>n.onChange(1,t),children:[t," / page"]},t)))})]})]})},exports.HISD3Tabs=({items:t,...r})=>e.jsx(tt,{...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,...a})=>e.jsx(at,{$variant:t,$tone:r,...a,children:o}),exports.HISD3_BORDER_PRESETS=c,exports.HISD3_BORDER_PRESETS_DARK=h,exports.HISD3_COLORS=E,exports.HISD3_FONT_FAMILY=g,exports.HISD3_FONT_WEIGHT_BODY=400,exports.HISD3_FONT_WEIGHT_HEADING=800,exports.HISD3_LAYOUT=n,exports.HISD3_LOGO_SRC=B,exports.HISD3_NEUTRALS=s,exports.HISD3_NEUTRALS_DARK=d,exports.HISD3_PRESETS=l,exports.HISD3_STATUS=p,exports.HeaderIconButton=Ce,exports.UserMenu=re,exports.borderVarsCss=(e="hairline",t)=>k({borders:e,lineWidth:t}),exports.contrastRatio=w,exports.createHisd3Theme=D,exports.getInitials=Qe,exports.hisd3AntdTheme=F,exports.hisd3VarsCss=k,exports.mix=v,exports.normalizeUploadFileList=qt,exports.resolvePrimary=x,exports.resolvePrimaryPalette=S,exports.shade=b,exports.tint=f,exports.useDialog=function(t){const o=r.useContext(Qt);if(!o)throw new Error("useDialog needs DialogProvider above it.");return r.useCallback(((r,a)=>{const i=Vt+=1;o.mount(i,e.jsx(Yt,{Component:t,props:r,onClose:a,unmount:()=>o.unmount(i)},i))}),[t,o])},exports.useInsideHISD3Provider=I;
1431
1509
  //# sourceMappingURL=index.cjs.js.map