@sis-cc/dotstatsuite-visions 15.7.0 → 15.9.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/Dataflow/Dataflow.js +18 -8
- package/dist/Dataflow/Dataflow.js.map +1 -1
- package/dist/DynamicDrawer/DynamicDrawer.js +1 -1
- package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -1
- package/dist/ExpansionPanel/ExpansionPanel.js +0 -1
- package/dist/ExpansionPanel/ExpansionPanel.js.map +1 -1
- package/dist/GroupedChips/GroupedChips.js +1 -0
- package/dist/GroupedChips/GroupedChips.js.map +1 -1
- package/dist/assets/{Alert-BvR7qfJy.js → Alert-DEM4J89t.js} +1 -1
- package/dist/assets/Alert.stories-xJrSPlLu.js +3 -0
- package/dist/assets/{ApiQueries.stories-Bp9JXgII.js → ApiQueries.stories-CJCEvZ3K.js} +1 -1
- package/dist/assets/ArrowForward-Dno_X5W-.js +1 -0
- package/dist/assets/{Asterisk-B_-UGBJc.js → Asterisk-CdTi40xP.js} +1 -1
- package/dist/assets/{AuthDialog.stories-d4a9HjmB.js → AuthDialog.stories-7miocgMG.js} +1 -1
- package/dist/assets/{Box-REVr_H6w.js → Box-kR75auIU.js} +1 -1
- package/dist/assets/{Breadcrumbs.stories-Cmo1zpOL.js → Breadcrumbs.stories-BpXLmHzm.js} +1 -1
- package/dist/assets/{Button-DqbqODeJ.js → Button-C3zFrP42.js} +1 -1
- package/dist/assets/{Button-BhGb_6eE.js → Button-fwWSBbmQ.js} +1 -1
- package/dist/assets/{Button.stories-BNjF8YzB.js → Button.stories-DFS3H0sC.js} +1 -1
- package/dist/assets/{ButtonBase-r8USJa_Z.js → ButtonBase-Clx5JnRy.js} +1 -1
- package/dist/assets/{CardContent-Czw37L7Y.js → CardContent-D-YOm5vw.js} +1 -1
- package/dist/assets/{ChartsConfig.stories-cDl8qwUp.js → ChartsConfig.stories-Bxj7X0JA.js} +1 -1
- package/dist/assets/{Checkbox-fQWPhOcf.js → Checkbox-Cf7wn9ip.js} +1 -1
- package/dist/assets/{Chips.stories-DBPR_-4i.js → Chips.stories-sCyks7f1.js} +1 -1
- package/dist/assets/{CircularProgress-DXHqF8vI.js → CircularProgress-RePhc3-i.js} +1 -1
- package/dist/assets/Close-CbvuEges.js +1 -0
- package/dist/assets/{Collapse-DCF-o1zo.js → Collapse-Doo6pq99.js} +1 -1
- package/dist/assets/{CollapseButtons.stories-DEHV8zSm.js → CollapseButtons.stories-L01pAYc5.js} +1 -1
- package/dist/assets/{CollapsibleTree.stories-DEwGN-XT.js → CollapsibleTree.stories-DTMM15c2.js} +1 -1
- package/dist/assets/{Color-6AOWCN3U-BJbnkSxy.js → Color-6AOWCN3U-Ddjo_PPJ.js} +1 -1
- package/dist/assets/{Contact.stories-BSAuBY5X.js → Contact.stories-BlpmELc1.js} +1 -1
- package/dist/assets/{Container-Bp3RzJ-P.js → Container-DhpAVHtf.js} +1 -1
- package/dist/assets/{Cross-CPxIz7Zw.js → Cross-DWgmmCZm.js} +1 -1
- package/dist/assets/{CustomChip-2unSgDA5.js → CustomChip-DeDaghii.js} +1 -1
- package/dist/assets/{DataEdit-Bqp0DpeK.js → DataEdit-CR8FfAvw.js} +1 -1
- package/dist/assets/DataEdit.stories-eOlGlCNn.js +1 -0
- package/dist/assets/{DataFooter.stories-BYKXrGCf.js → DataFooter.stories-DvE2zy1k.js} +1 -1
- package/dist/assets/{DataHeader.stories-hernvf-G.js → DataHeader.stories-Ckp5jIud.js} +1 -1
- package/dist/assets/Dataflow.stories-i4EFNEW3.js +3 -0
- package/dist/assets/{DeleteAllChip.stories-C-Is8o-h.js → DeleteAllChip.stories-CnDS-IaV.js} +1 -1
- package/dist/assets/{Dialog-Dekn6BG3.js → Dialog-CbacCXaL.js} +1 -1
- package/dist/assets/{Divider-DHf6HgP7.js → Divider-jqKAmaY3.js} +1 -1
- package/dist/assets/{DocsRenderer-JROSPFPF-BKi8PdW2.js → DocsRenderer-JROSPFPF-DAT-azcP.js} +5 -5
- package/dist/assets/Done-BiBTcQXa.js +1 -0
- package/dist/assets/{DynamicDrawer.stories-B1u5tKX4.js → DynamicDrawer.stories-Cw8GUGW_.js} +1 -1
- package/dist/assets/{EmojiObjects-B6hgElIY.js → EmojiObjects-BIzP6ZCj.js} +1 -1
- package/dist/assets/ExpandLess-C1jrSIzq.js +1 -0
- package/dist/assets/ExpandMore-BeRZrJY0.js +1 -0
- package/dist/assets/{ExpansionPanel-B2VYMjez.js → ExpansionPanel-xw3-9wzj.js} +1 -1
- package/dist/assets/ExpansionPanel.stories-D0Vurjik.js +1 -0
- package/dist/assets/{FormControlLabel-odBI_tg3.js → FormControlLabel-DDdNBdtG.js} +1 -1
- package/dist/assets/{Grid-1cIX_aLT.js → Grid-hI1L9TYO.js} +1 -1
- package/dist/assets/GroupedChips.stories-CfiI9F2H.js +1 -0
- package/dist/assets/{Grow-iR4Y2odO.js → Grow-Ec-9_feF.js} +1 -1
- package/dist/assets/{HierarchicalFilter.stories-Bd3wWjav.js → HierarchicalFilter.stories-B6qaA4-E.js} +1 -1
- package/dist/assets/{IconButton-BsNwKCa2.js → IconButton-Cb9_2fe-.js} +1 -1
- package/dist/assets/Info-CGpzieFy.js +1 -0
- package/dist/assets/{Input-C7Z-bxwa.js → Input-CbvyF0wm.js} +1 -1
- package/dist/assets/Input.stories-Cfd4EYOd.js +1 -0
- package/dist/assets/{InputAdornment-D7bI11vW.js → InputAdornment-DDxsNAoT.js} +1 -1
- package/dist/assets/{InputNumber.stories-BXlpAVGO.js → InputNumber.stories-oca9TMZo.js} +1 -1
- package/dist/assets/{KeyboardArrowUp-D3ghDTxk.js → KeyboardArrowUp-Dhc_z93E.js} +1 -1
- package/dist/assets/{LabelDivider.stories-tgM620Pn.js → LabelDivider.stories-Do_4KYrg.js} +1 -1
- package/dist/assets/Lens-xG2sLfCx.js +1 -0
- package/dist/assets/{Link-DqR93V5L.js → Link-C36LOI3K.js} +1 -1
- package/dist/assets/ListContext-DYreZ6Ok.js +1 -0
- package/dist/assets/{Loading.stories-B8L1lYSm.js → Loading.stories-CM00DSxc.js} +1 -1
- package/dist/assets/{Logo.stories-By5IMLZZ.js → Logo.stories-BPu1rCVZ.js} +1 -1
- package/dist/assets/{MenuItem-Bv68IxeQ.js → MenuItem-BVKX-mQt.js} +1 -1
- package/dist/assets/{Mode-Bz-7RTb8.js → Mode-L2jaa2y-.js} +1 -1
- package/dist/assets/Mode.stories-rvy0G2k3.js +1 -0
- package/dist/assets/{NoData-DFjMxPqA.js → NoData-gN_WiO4X.js} +1 -1
- package/dist/assets/NoData.stories-DZHQVWVH.js +1 -0
- package/dist/assets/{Pagination.stories-B9swDJRL.js → Pagination.stories-jPiTkAbQ.js} +1 -1
- package/dist/assets/{Paper-Q0R27EyV.js → Paper-qzkegRQN.js} +1 -1
- package/dist/assets/{PeriodPicker.stories-BuijC3r9.js → PeriodPicker.stories-4zyfoidv.js} +1 -1
- package/dist/assets/{Popover-Cfl_iHJJ.js → Popover-4M9bPAGT.js} +1 -1
- package/dist/assets/{RadioGroup-B1wKI0pa.js → RadioGroup-D1oghbPM.js} +1 -1
- package/dist/assets/{Select-DkLb4SwH.js → Select-CLccc8gg.js} +1 -1
- package/dist/assets/{Select-5SlbdCWR.js → Select-gSkt3VT8.js} +1 -1
- package/dist/assets/Select.stories-CBOAvW2f.js +1 -0
- package/dist/assets/{Share.stories-BPTOT2fC.js → Share.stories-C5ynu7vZ.js} +1 -1
- package/dist/assets/{ShortUrls.stories-mjyxYTFD.js → ShortUrls.stories-D9Jmread.js} +1 -1
- package/dist/assets/{SisccFooter.stories-INyZNplI.js → SisccFooter.stories-D6QzbeSg.js} +1 -1
- package/dist/assets/{Spotlight-jUVhmnn6.js → Spotlight-CfEKgKbi.js} +1 -1
- package/dist/assets/Spotlight.stories-B304DPRg.js +1 -0
- package/dist/assets/{SvgIcon-B8UQgD4E.js → SvgIcon-B4njL0mU.js} +1 -1
- package/dist/assets/{SwitchBase-EnwoM1QQ.js → SwitchBase-D2aIULBt.js} +1 -1
- package/dist/assets/{TableFooter.stories-DqunzLUB.js → TableFooter.stories-CRBNPIVC.js} +1 -1
- package/dist/assets/{TableHeader.stories-xqzr8Elx.js → TableHeader.stories-sWZsyhdg.js} +1 -1
- package/dist/assets/{TableHtml5.stories-CjbN46Xk.js → TableHtml5.stories-BzpMZA_y.js} +1 -1
- package/dist/assets/{TableLayout.stories-BAsdTxeq.js → TableLayout.stories-58G0tXHN.js} +1 -1
- package/dist/assets/{TablePreview-DB4TkO4S.js → TablePreview-BegQUhBM.js} +1 -1
- package/dist/assets/{TablePreview.stories-CMv4pMHt.js → TablePreview.stories-BTZJt-Kr.js} +1 -1
- package/dist/assets/{TableRow-CCVxr7ah.js → TableRow-BwaUnYCC.js} +1 -1
- package/dist/assets/{Tag-EY8i_LbW.js → Tag-Bx9_l0wQ.js} +1 -1
- package/dist/assets/{Tag.stories-C_QPTi00.js → Tag.stories-2JJlfF3m.js} +1 -1
- package/dist/assets/{TextField-CL08kv2k.js → TextField-DeJ8wpMx.js} +1 -1
- package/dist/assets/{TextareaAutosize-DqcgXOjV.js → TextareaAutosize-D36Jv8uS.js} +1 -1
- package/dist/assets/{ToggleButton-pkij4Fn0.js → ToggleButton-CAQxvhmJ.js} +1 -1
- package/dist/assets/ToggleButton.stories-DjgXYHO2.js +1 -0
- package/dist/assets/{Tooltip-movqlKLc.js → Tooltip-CuZ4ONf5.js} +1 -1
- package/dist/assets/{Tooltip-hG1utgji.js → Tooltip-DxRH4cyD.js} +1 -1
- package/dist/assets/Tooltip.stories-cwZDcm9C.js +1 -0
- package/dist/assets/{TransitionGroupContext-Dgq1rti2.js → TransitionGroupContext-C3sqH9Ai.js} +1 -1
- package/dist/assets/{Typography-BX8aytiu.js → Typography-DucSr5vw.js} +1 -1
- package/dist/assets/{UserRightForm.stories-YBAuQ3Ap.js → UserRightForm.stories-_uUJFFiQ.js} +1 -1
- package/dist/assets/{VerticalButton-DmXctZkK.js → VerticalButton-Clv5ED-l.js} +1 -1
- package/dist/assets/VerticalButton.stories-DZoWeE_t.js +1 -0
- package/dist/assets/{VirtualizedTree-B3LYvGmO.js → VirtualizedTree-CMRq05Wi.js} +1 -1
- package/dist/assets/{VirtualizedTree.stories-DGUbzrYl.js → VirtualizedTree.stories-Dc7DTvtN.js} +1 -1
- package/dist/assets/{Warning-CQ9OSLa_.js → Warning-iq5382n1.js} +1 -1
- package/dist/assets/{WithTooltip-7X4HQR7L-DpUjmW-N.js → WithTooltip-7X4HQR7L-CiAzdJuC.js} +1 -1
- package/dist/assets/{axe-Dc_Ym6kI.js → axe-CX8lqyom.js} +1 -1
- package/dist/assets/{client-C-BeCuey.js → client-CNtnGSel.js} +1 -1
- package/dist/assets/{createSvgIcon-BhmY1AQR.js → createSvgIcon-Dhw1ZPnl.js} +1 -1
- package/dist/assets/{dividerClasses-DeDwH_5a.js → dividerClasses-CAKRlKNq.js} +1 -1
- package/dist/assets/{formControlState-CSxyImz5.js → formControlState-CepUnK6I.js} +1 -1
- package/dist/assets/formatter-L2YTDE3Q-JlVBezLF.js +1 -0
- package/dist/assets/{getThemeProps-BHcfvPWB.js → getThemeProps-p2tz9grW.js} +1 -1
- package/dist/assets/{iframe-61XUxUzt.js → iframe-DO8BaJAw.js} +3 -3
- package/dist/assets/index-B6RYGuxp.js +1 -0
- package/dist/assets/{index-DczQiqCU.js → index-Bx486E3T.js} +1 -1
- package/dist/assets/{index-DE0kMNne.js → index-CDYZMfH2.js} +1 -1
- package/dist/assets/{index-DOD-o6iW.js → index-DQgLZVQy.js} +1 -1
- package/dist/assets/{index-BEIJVI-u.js → index-DovOdZBv.js} +1 -1
- package/dist/assets/{isMuiElement-B8iUu60-.js → isMuiElement-Nstdele8.js} +1 -1
- package/dist/assets/{listItemTextClasses-DU4fF4Qk.js → listItemTextClasses-DbR4Y0x3.js} +1 -1
- package/dist/assets/{makeStyles-DArxJ_PP.js → makeStyles-1sdzB3LA.js} +1 -1
- package/dist/assets/{react-18-D_buhCnr.js → react-18-DhralOFB.js} +1 -1
- package/dist/assets/{styled-BLwCyChO.js → styled-jzrQGA5W.js} +1 -1
- package/dist/assets/{syntaxhighlighter-YFXUGROL-3nS4yphK.js → syntaxhighlighter-YFXUGROL-CRN2m6Rf.js} +1 -1
- package/dist/assets/{useControlled-sLSt_YyN.js → useControlled-B99t6jQE.js} +1 -1
- package/dist/assets/{useKeybordEscapeHandler-r74DmQct.js → useKeybordEscapeHandler-BpsMUxFP.js} +1 -1
- package/dist/assets/{useMediaQuery-whkaAvkc.js → useMediaQuery-DQ49HkbI.js} +1 -1
- package/dist/assets/{useSlotProps-zqtYAF-D.js → useSlotProps-CK4gGeaU.js} +1 -1
- package/dist/assets/useTheme-4lTw46Fa.js +1 -0
- package/dist/assets/{useThemeProps-CniGLXYt.js → useThemeProps-CGttVwgL.js} +1 -1
- package/dist/assets/{utils-DqFaS5iW.js → utils-CFobb0wa.js} +1 -1
- package/dist/assets/{utils-DnJaqCXD.js → utils-CxU8ILV4.js} +1 -1
- package/dist/assets/{with-input-CweUYcxr.js → with-input-xAtKbhv1.js} +1 -1
- package/dist/assets/{withSpotlight-cTb6r7hW.js → withSpotlight-DEgS-hWx.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/manifests/components.html +6 -4
- package/dist/manifests/components.json +8 -1
- package/dist/project.json +1 -1
- package/package.json +1 -1
- package/dist/assets/Alert.stories-DWlZJtUp.js +0 -3
- package/dist/assets/ArrowForward-BWYSZY7y.js +0 -1
- package/dist/assets/Close-DsIViL4r.js +0 -1
- package/dist/assets/DataEdit.stories-BE4LZhwg.js +0 -1
- package/dist/assets/Dataflow.stories-D1Prsw9c.js +0 -3
- package/dist/assets/Done-CBsACMql.js +0 -1
- package/dist/assets/ExpandLess-V_RAHwhi.js +0 -1
- package/dist/assets/ExpandMore-C5BDD1sC.js +0 -1
- package/dist/assets/ExpansionPanel.stories-8dIQxtPU.js +0 -1
- package/dist/assets/GroupedChips.stories-C5cm1nft.js +0 -1
- package/dist/assets/Info-DcvJSNbf.js +0 -1
- package/dist/assets/Input.stories-D2sAhq4b.js +0 -1
- package/dist/assets/Lens-DNl9VxTh.js +0 -1
- package/dist/assets/ListContext-BM4TJIuo.js +0 -1
- package/dist/assets/Mode.stories-D8Jokj23.js +0 -1
- package/dist/assets/NoData.stories-G6cmCbrM.js +0 -1
- package/dist/assets/Select.stories-dZ6U2qVi.js +0 -1
- package/dist/assets/Spotlight.stories-Cr2FoEDH.js +0 -1
- package/dist/assets/ToggleButton.stories-CVolPwi4.js +0 -1
- package/dist/assets/Tooltip.stories-BGu9JXZi.js +0 -1
- package/dist/assets/VerticalButton.stories-D2bIk7O7.js +0 -1
- package/dist/assets/formatter-L2YTDE3Q-BTlgWOJS.js +0 -1
- package/dist/assets/index-CRObpF8N.js +0 -1
- package/dist/assets/useTheme-Ba2CD5ul.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,r as c,u as ee,_ as E,J as he,j as h,h as dt,W as ut,p as ce,M as ct,w as pt}from"./iframe-61XUxUzt.js";import{b as V,g as H,a as X,s as $,r as _,c as se,d as ft}from"./styled-BLwCyChO.js";import{u as je}from"./useSlotProps-zqtYAF-D.js";import{b as xe,I as Ce,c as Ie,r as ye,d as Re,e as Pe,g as bt,f as mt,P as gt,a as vt}from"./Popover-Cfl_iHJJ.js";import{o as ve}from"./ownerDocument-DW-IO8s5.js";import{a as Se}from"./TransitionGroupContext-Dgq1rti2.js";import{L as ht}from"./ListContext-BM4TJIuo.js";import{u as Te}from"./useControlled-sLSt_YyN.js";import{u as ze,f as Ke}from"./formControlState-CSxyImz5.js";import{c as xt}from"./createSvgIcon-BhmY1AQR.js";import{g as Ct}from"./Grow-iR4Y2odO.js";function It(e){return V("MuiInput",e)}const te=s({},xe,H("MuiInput",["root","underline","input"])),yt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Rt=e=>{const{classes:t,disableUnderline:o}=e,l=X({root:["root",!o&&"underline"],input:["input"]},It,t);return s({},t,l)},Pt=$(Ie,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...ye(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),s({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${te.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${te.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${te.disabled}, .${te.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${te.disabled}:before`]:{borderBottomStyle:"dotted"}})}),St=$(Re,{name:"MuiInput",slot:"Input",overridesResolver:Pe})({}),Ve=c.forwardRef(function(t,o){var n,l,p,a;const i=ee({props:t,name:"MuiInput"}),{disableUnderline:v,components:C={},componentsProps:I,fullWidth:S=!1,inputComponent:x="input",multiline:b=!1,slotProps:O,slots:w={},type:k="text"}=i,f=E(i,yt),M=Rt(i),d={root:{ownerState:{disableUnderline:v}}},y=O??I?he(O??I,d):d,R=(n=(l=w.root)!=null?l:C.Root)!=null?n:Pt,m=(p=(a=w.input)!=null?a:C.Input)!=null?p:St;return h.jsx(Ce,s({slots:{root:R,input:m},slotProps:y,fullWidth:S,inputComponent:x,multiline:b,ref:o,type:k},f,{classes:M}))});Ve.muiName="Input";function Mt(e){return V("MuiFilledInput",e)}const K=s({},xe,H("MuiFilledInput",["root","underline","input"])),$t=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ot=e=>{const{classes:t,disableUnderline:o}=e,l=X({root:["root",!o&&"underline"],input:["input"]},Mt,t);return s({},t,l)},wt=$(Ie,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...ye(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const n=e.palette.mode==="light",l=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",p=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:p,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:p}},[`&.${K.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:p},[`&.${K.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${K.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${K.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:l}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${K.disabled}, .${K.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${K.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&s({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Ft=$(Re,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pe})(({theme:e,ownerState:t})=>s({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),He=c.forwardRef(function(t,o){var n,l,p,a;const i=ee({props:t,name:"MuiFilledInput"}),{components:v={},componentsProps:C,fullWidth:I=!1,inputComponent:S="input",multiline:x=!1,slotProps:b,slots:O={},type:w="text"}=i,k=E(i,$t),f=s({},i,{fullWidth:I,inputComponent:S,multiline:x,type:w}),M=Ot(i),u={root:{ownerState:f},input:{ownerState:f}},d=b??C?he(u,b??C):u,y=(n=(l=O.root)!=null?l:v.Root)!=null?n:wt,R=(p=(a=O.input)!=null?a:v.Input)!=null?p:Ft;return h.jsx(Ce,s({slots:{root:y,input:R},componentsProps:d,fullWidth:I,inputComponent:S,multiline:x,ref:o,type:w},k,{classes:M}))});He.muiName="Input";var We;const kt=["children","classes","className","label","notched"],Nt=$("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:_})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Lt=$("legend",{name:"MuiNotchedOutlined",shouldForwardProp:_})(({ownerState:e,theme:t})=>s({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&s({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Et(e){const{className:t,label:o,notched:n}=e,l=E(e,kt),p=o!=null&&o!=="",a=s({},e,{notched:n,withLabel:p});return h.jsx(Nt,s({"aria-hidden":!0,className:t,ownerState:a},l,{children:h.jsx(Lt,{ownerState:a,children:p?h.jsx("span",{children:o}):We||(We=h.jsx("span",{className:"notranslate",children:""}))})}))}function Bt(e){return V("MuiOutlinedInput",e)}const W=s({},xe,H("MuiOutlinedInput",["root","notchedOutline","input"])),Dt=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jt=e=>{const{classes:t}=e,n=X({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bt,t);return s({},t,n)},Tt=$(Ie,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ye})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return s({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${W.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${W.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${W.focused} .${W.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${W.error} .${W.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${W.disabled} .${W.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&s({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Wt=$(Et,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),_t=$(Re,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pe})(({theme:e,ownerState:t})=>s({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Xe=c.forwardRef(function(t,o){var n,l,p,a,i;const v=ee({props:t,name:"MuiOutlinedInput"}),{components:C={},fullWidth:I=!1,inputComponent:S="input",label:x,multiline:b=!1,notched:O,slots:w={},type:k="text"}=v,f=E(v,Dt),M=jt(v),u=ze(),d=Ke({props:v,muiFormControl:u,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y=s({},v,{color:d.color||"primary",disabled:d.disabled,error:d.error,focused:d.focused,formControl:u,fullWidth:I,hiddenLabel:d.hiddenLabel,multiline:b,size:d.size,type:k}),R=(n=(l=w.root)!=null?l:C.Root)!=null?n:Tt,m=(p=(a=w.input)!=null?a:C.Input)!=null?p:_t;return h.jsx(Ce,s({slots:{root:R,input:m},renderSuffix:N=>h.jsx(Wt,{ownerState:y,className:M.notchedOutline,label:x!=null&&x!==""&&d.required?i||(i=h.jsxs(c.Fragment,{children:[x," ","*"]})):x,notched:typeof O<"u"?O:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:I,inputComponent:S,multiline:b,ref:o,type:k},f,{classes:s({},M,{notchedOutline:null})}))});Xe.muiName="Input";function Ut(e){return V("MuiList",e)}H("MuiList",["root","padding","dense","subheader"]);const At=["children","className","component","dense","disablePadding","subheader"],zt=e=>{const{classes:t,disablePadding:o,dense:n,subheader:l}=e;return X({root:["root",!o&&"padding",n&&"dense",l&&"subheader"]},Ut,t)},Kt=$("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})(({ownerState:e})=>s({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Vt=c.forwardRef(function(t,o){const n=ee({props:t,name:"MuiList"}),{children:l,className:p,component:a="ul",dense:i=!1,disablePadding:v=!1,subheader:C}=n,I=E(n,At),S=c.useMemo(()=>({dense:i}),[i]),x=s({},n,{component:a,dense:i,disablePadding:v}),b=zt(x);return h.jsx(ht.Provider,{value:S,children:h.jsxs(Kt,s({as:a,className:se(b.root,p),ref:o,ownerState:x},I,{children:[C,l]}))})}),Ht=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ge(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function _e(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function qe(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.indexOf(t.keys.join(""))===0}function oe(e,t,o,n,l,p){let a=!1,i=l(e,t,t?o:!1);for(;i;){if(i===e.firstChild){if(a)return!1;a=!0}const v=n?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!qe(i,p)||v)i=l(e,i,o);else return i.focus(),!0}return!1}const Xt=c.forwardRef(function(t,o){const{actions:n,autoFocus:l=!1,autoFocusItem:p=!1,children:a,className:i,disabledItemsFocusable:v=!1,disableListWrap:C=!1,onKeyDown:I,variant:S="selectedMenu"}=t,x=E(t,Ht),b=c.useRef(null),O=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dt(()=>{l&&b.current.focus()},[l]),c.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(u,{direction:d})=>{const y=!b.current.style.width;if(u.clientHeight<b.current.clientHeight&&y){const R=`${bt(ve(u))}px`;b.current.style[d==="rtl"?"paddingLeft":"paddingRight"]=R,b.current.style.width=`calc(100% + ${R})`}return b.current}}),[]);const w=u=>{const d=b.current,y=u.key,R=ve(d).activeElement;if(y==="ArrowDown")u.preventDefault(),oe(d,R,C,v,ge);else if(y==="ArrowUp")u.preventDefault(),oe(d,R,C,v,_e);else if(y==="Home")u.preventDefault(),oe(d,null,C,v,ge);else if(y==="End")u.preventDefault(),oe(d,null,C,v,_e);else if(y.length===1){const m=O.current,N=y.toLowerCase(),j=performance.now();m.keys.length>0&&(j-m.lastTime>500?(m.keys=[],m.repeating=!0,m.previousKeyMatched=!0):m.repeating&&N!==m.keys[0]&&(m.repeating=!1)),m.lastTime=j,m.keys.push(N);const B=R&&!m.repeating&&qe(R,m);m.previousKeyMatched&&(B||oe(d,R,!1,v,ge,m))?u.preventDefault():m.previousKeyMatched=!1}I&&I(u)},k=Se(b,o);let f=-1;c.Children.forEach(a,(u,d)=>{if(!c.isValidElement(u)){f===d&&(f+=1,f>=a.length&&(f=-1));return}u.props.disabled||(S==="selectedMenu"&&u.props.selected||f===-1)&&(f=d),f===d&&(u.props.disabled||u.props.muiSkipListHighlight||u.type.muiSkipListHighlight)&&(f+=1,f>=a.length&&(f=-1))});const M=c.Children.map(a,(u,d)=>{if(d===f){const y={};return p&&(y.autoFocus=!0),u.props.tabIndex===void 0&&S==="selectedMenu"&&(y.tabIndex=0),c.cloneElement(u,y)}return u});return h.jsx(Vt,s({role:"menu",ref:k,className:i,onKeyDown:w,tabIndex:l?0:-1},x,{children:M}))});function qt(e){return V("MuiMenu",e)}H("MuiMenu",["root","paper","list"]);const Gt=["onEntering"],Jt=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Qt={vertical:"top",horizontal:"right"},Yt={vertical:"top",horizontal:"left"},Zt=e=>{const{classes:t}=e;return X({root:["root"],paper:["paper"],list:["list"]},qt,t)},eo=$(gt,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),to=$(mt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),oo=$(Xt,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),no=c.forwardRef(function(t,o){var n,l;const p=ee({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:v,disableAutoFocusItem:C=!1,MenuListProps:I={},onClose:S,open:x,PaperProps:b={},PopoverClasses:O,transitionDuration:w="auto",TransitionProps:{onEntering:k}={},variant:f="selectedMenu",slots:M={},slotProps:u={}}=p,d=E(p.TransitionProps,Gt),y=E(p,Jt),R=ut(),m=s({},p,{autoFocus:a,disableAutoFocusItem:C,MenuListProps:I,onEntering:k,PaperProps:b,transitionDuration:w,TransitionProps:d,variant:f}),N=Zt(m),j=a&&!C&&x,B=c.useRef(null),q=(g,A)=>{B.current&&B.current.adjustStyleForScrollbar(g,{direction:R?"rtl":"ltr"}),k&&k(g,A)},U=g=>{g.key==="Tab"&&(g.preventDefault(),S&&S(g,"tabKeyDown"))};let L=-1;c.Children.map(i,(g,A)=>{c.isValidElement(g)&&(g.props.disabled||(f==="selectedMenu"&&g.props.selected||L===-1)&&(L=A))});const D=(n=M.paper)!=null?n:to,G=(l=u.paper)!=null?l:b,J=je({elementType:M.root,externalSlotProps:u.root,ownerState:m,className:[N.root,v]}),T=je({elementType:D,externalSlotProps:G,ownerState:m,className:N.paper});return h.jsx(eo,s({onClose:S,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?Qt:Yt,slots:{paper:D,root:M.root},slotProps:{root:J,paper:T},open:x,ref:o,transitionDuration:w,TransitionProps:s({onEntering:q},d),ownerState:m},y,{classes:O,children:h.jsx(oo,s({onKeyDown:U,actions:B,autoFocus:a&&(L===-1||C),autoFocusItem:j,variant:f},I,{className:se(N.list,I.className),children:i}))}))});function so(e){return V("MuiNativeSelect",e)}const Me=H("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ro=["className","disabled","error","IconComponent","inputRef","variant"],io=e=>{const{classes:t,variant:o,disabled:n,multiple:l,open:p,error:a}=e,i={select:["select",o,n&&"disabled",l&&"multiple",a&&"error"],icon:["icon",`icon${ce(o)}`,p&&"iconOpen",n&&"disabled"]};return X(i,so,t)},Ge=({ownerState:e,theme:t})=>s({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":s({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Me.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),lo=$("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Me.multiple}`]:t.multiple}]}})(Ge),Je=({ownerState:e,theme:t})=>s({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Me.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ao=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ce(o.variant)}`],o.open&&t.iconOpen]}})(Je),uo=c.forwardRef(function(t,o){const{className:n,disabled:l,error:p,IconComponent:a,inputRef:i,variant:v="standard"}=t,C=E(t,ro),I=s({},t,{disabled:l,variant:v,error:p}),S=io(I);return h.jsxs(c.Fragment,{children:[h.jsx(lo,s({ownerState:I,className:se(S.select,n),disabled:l,ref:i||o},C)),t.multiple?null:h.jsx(ao,{as:a,ownerState:I,className:S.icon})]})});function co(e){return V("MuiSelect",e)}const ne=H("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ue;const po=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],fo=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${ne.select}`]:t.select},{[`&.${ne.select}`]:t[o.variant]},{[`&.${ne.error}`]:t.error},{[`&.${ne.multiple}`]:t.multiple}]}})(Ge,{[`&.${ne.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bo=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ce(o.variant)}`],o.open&&t.iconOpen]}})(Je),mo=$("input",{shouldForwardProp:e=>ft(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ae(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function go(e){return e==null||typeof e=="string"&&!e.trim()}const vo=e=>{const{classes:t,variant:o,disabled:n,multiple:l,open:p,error:a}=e,i={select:["select",o,n&&"disabled",l&&"multiple",a&&"error"],icon:["icon",`icon${ce(o)}`,p&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return X(i,co,t)},ho=c.forwardRef(function(t,o){var n;const{"aria-describedby":l,"aria-label":p,autoFocus:a,autoWidth:i,children:v,className:C,defaultOpen:I,defaultValue:S,disabled:x,displayEmpty:b,error:O=!1,IconComponent:w,inputRef:k,labelId:f,MenuProps:M={},multiple:u,name:d,onBlur:y,onChange:R,onClose:m,onFocus:N,onOpen:j,open:B,readOnly:q,renderValue:U,SelectDisplayProps:L={},tabIndex:D,value:G,variant:J="standard"}=t,T=E(t,po),[g,A]=Te({controlled:G,default:S,name:"Select"}),[Oe,Qe]=Te({controlled:B,default:I,name:"Select"}),we=c.useRef(null),z=c.useRef(null),[Q,Ye]=c.useState(null),{current:pe}=c.useRef(B!=null),[Ze,Fe]=c.useState(),et=Se(o,k),tt=c.useCallback(r=>{z.current=r,r&&Ye(r)},[]),re=Q?.parentNode;c.useImperativeHandle(et,()=>({focus:()=>{z.current.focus()},node:we.current,value:g}),[g]),c.useEffect(()=>{I&&Oe&&Q&&!pe&&(Fe(i?null:re.clientWidth),z.current.focus())},[Q,i]),c.useEffect(()=>{a&&z.current.focus()},[a]),c.useEffect(()=>{if(!f)return;const r=ve(z.current).getElementById(f);if(r){const P=()=>{getSelection().isCollapsed&&z.current.focus()};return r.addEventListener("click",P),()=>{r.removeEventListener("click",P)}}},[f]);const ie=(r,P)=>{r?j&&j(P):m&&m(P),pe||(Fe(i?null:re.clientWidth),Qe(r))},ot=r=>{r.button===0&&(r.preventDefault(),z.current.focus(),ie(!0,r))},nt=r=>{ie(!1,r)},ke=c.Children.toArray(v),st=r=>{const P=ke.find(F=>F.props.value===r.target.value);P!==void 0&&(A(P.props.value),R&&R(r,P))},rt=r=>P=>{let F;if(P.currentTarget.hasAttribute("tabindex")){if(u){F=Array.isArray(g)?g.slice():[];const Z=g.indexOf(r.props.value);Z===-1?F.push(r.props.value):F.splice(Z,1)}else F=r.props.value;if(r.props.onClick&&r.props.onClick(P),g!==F&&(A(F),R)){const Z=P.nativeEvent||P,De=new Z.constructor(Z.type,Z);Object.defineProperty(De,"target",{writable:!0,value:{value:F,name:d}}),R(De,r)}u||ie(!1,P)}},it=r=>{q||[" ","ArrowUp","ArrowDown","Enter"].indexOf(r.key)!==-1&&(r.preventDefault(),ie(!0,r))},le=Q!==null&&Oe,lt=r=>{!le&&y&&(Object.defineProperty(r,"target",{writable:!0,value:{value:g,name:d}}),y(r))};delete T["aria-invalid"];let Y,Ne;const ae=[];let de=!1;(vt({value:g})||b)&&(U?Y=U(g):de=!0);const at=ke.map(r=>{if(!c.isValidElement(r))return null;let P;if(u){if(!Array.isArray(g))throw new Error(ct(2));P=g.some(F=>Ae(F,r.props.value)),P&&de&&ae.push(r.props.children)}else P=Ae(g,r.props.value),P&&de&&(Ne=r.props.children);return c.cloneElement(r,{"aria-selected":P?"true":"false",onClick:rt(r),onKeyUp:F=>{F.key===" "&&F.preventDefault(),r.props.onKeyUp&&r.props.onKeyUp(F)},role:"option",selected:P,value:void 0,"data-value":r.props.value})});de&&(u?ae.length===0?Y=null:Y=ae.reduce((r,P,F)=>(r.push(P),F<ae.length-1&&r.push(", "),r),[]):Y=Ne);let Le=Ze;!i&&pe&&Q&&(Le=re.clientWidth);let fe;typeof D<"u"?fe=D:fe=x?null:0;const Ee=L.id||(d?`mui-component-select-${d}`:void 0),ue=s({},t,{variant:J,value:g,open:le,error:O}),be=vo(ue),me=s({},M.PaperProps,(n=M.slotProps)==null?void 0:n.paper),Be=pt();return h.jsxs(c.Fragment,{children:[h.jsx(fo,s({ref:tt,tabIndex:fe,role:"combobox","aria-controls":Be,"aria-disabled":x?"true":void 0,"aria-expanded":le?"true":"false","aria-haspopup":"listbox","aria-label":p,"aria-labelledby":[f,Ee].filter(Boolean).join(" ")||void 0,"aria-describedby":l,onKeyDown:it,onMouseDown:x||q?null:ot,onBlur:lt,onFocus:N},L,{ownerState:ue,className:se(L.className,be.select,C),id:Ee,children:go(Y)?Ue||(Ue=h.jsx("span",{className:"notranslate",children:""})):Y})),h.jsx(mo,s({"aria-invalid":O,value:Array.isArray(g)?g.join(","):g,name:d,ref:we,"aria-hidden":!0,onChange:st,tabIndex:-1,disabled:x,className:be.nativeInput,autoFocus:a,ownerState:ue},T)),h.jsx(bo,{as:w,className:be.icon,ownerState:ue}),h.jsx(no,s({id:`menu-${d||""}`,anchorEl:re,open:le,onClose:nt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},M,{MenuListProps:s({"aria-labelledby":f,role:"listbox","aria-multiselectable":u?"true":void 0,disableListWrap:!0,id:Be},M.MenuListProps),slotProps:s({},M.slotProps,{paper:s({},me,{style:s({minWidth:Le},me!=null?me.style:null)})}),children:at}))]})}),xo=xt(h.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Co=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Io=["root"],yo=e=>{const{classes:t}=e;return t},$e={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_(e)&&e!=="variant",slot:"Root"},Ro=$(Ve,$e)(""),Po=$(Xe,$e)(""),So=$(He,$e)(""),Mo=c.forwardRef(function(t,o){const n=ee({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:p,classes:a={},className:i,defaultOpen:v=!1,displayEmpty:C=!1,IconComponent:I=xo,id:S,input:x,inputProps:b,label:O,labelId:w,MenuProps:k,multiple:f=!1,native:M=!1,onClose:u,onOpen:d,open:y,renderValue:R,SelectDisplayProps:m,variant:N="outlined"}=n,j=E(n,Co),B=M?uo:ho,q=ze(),U=Ke({props:n,muiFormControl:q,states:["variant","error"]}),L=U.variant||N,D=s({},n,{variant:L,classes:a}),G=yo(D),J=E(G,Io),T=x||{standard:h.jsx(Ro,{ownerState:D}),outlined:h.jsx(Po,{label:O,ownerState:D}),filled:h.jsx(So,{ownerState:D})}[L],g=Se(o,Ct(T));return h.jsx(c.Fragment,{children:c.cloneElement(T,s({inputComponent:B,inputProps:s({children:p,error:U.error,IconComponent:I,variant:L,type:void 0,multiple:f},M?{id:S}:{autoWidth:l,defaultOpen:v,displayEmpty:C,labelId:w,MenuProps:k,onClose:u,onOpen:d,open:y,renderValue:R,SelectDisplayProps:s({id:S},m)},b,{classes:b?he(J,b.classes):J},x?x.props.inputProps:{})},(f&&M||C)&&L==="outlined"?{notched:!0}:{},{ref:g,className:se(T.props.className,i,G.root)},!x&&{variant:L},j))})});Mo.muiName="Select";export{He as F,Ve as I,Xe as O,Mo as S};
|
|
1
|
+
import{a as s,r as c,u as ee,_ as E,J as he,j as h,h as dt,W as ut,p as ce,M as ct,w as pt}from"./iframe-DO8BaJAw.js";import{b as V,g as H,a as X,s as $,r as _,c as se,d as ft}from"./styled-jzrQGA5W.js";import{u as je}from"./useSlotProps-CK4gGeaU.js";import{b as xe,I as Ce,c as Ie,r as ye,d as Re,e as Pe,g as bt,f as mt,P as gt,a as vt}from"./Popover-4M9bPAGT.js";import{o as ve}from"./ownerDocument-DW-IO8s5.js";import{a as Se}from"./TransitionGroupContext-C3sqH9Ai.js";import{L as ht}from"./ListContext-DYreZ6Ok.js";import{u as Te}from"./useControlled-B99t6jQE.js";import{u as ze,f as Ke}from"./formControlState-CepUnK6I.js";import{c as xt}from"./createSvgIcon-Dhw1ZPnl.js";import{g as Ct}from"./Grow-Ec-9_feF.js";function It(e){return V("MuiInput",e)}const te=s({},xe,H("MuiInput",["root","underline","input"])),yt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Rt=e=>{const{classes:t,disableUnderline:o}=e,l=X({root:["root",!o&&"underline"],input:["input"]},It,t);return s({},t,l)},Pt=$(Ie,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...ye(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),s({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${te.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${te.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${te.disabled}, .${te.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${te.disabled}:before`]:{borderBottomStyle:"dotted"}})}),St=$(Re,{name:"MuiInput",slot:"Input",overridesResolver:Pe})({}),Ve=c.forwardRef(function(t,o){var n,l,p,a;const i=ee({props:t,name:"MuiInput"}),{disableUnderline:v,components:C={},componentsProps:I,fullWidth:S=!1,inputComponent:x="input",multiline:b=!1,slotProps:O,slots:w={},type:k="text"}=i,f=E(i,yt),M=Rt(i),d={root:{ownerState:{disableUnderline:v}}},y=O??I?he(O??I,d):d,R=(n=(l=w.root)!=null?l:C.Root)!=null?n:Pt,m=(p=(a=w.input)!=null?a:C.Input)!=null?p:St;return h.jsx(Ce,s({slots:{root:R,input:m},slotProps:y,fullWidth:S,inputComponent:x,multiline:b,ref:o,type:k},f,{classes:M}))});Ve.muiName="Input";function Mt(e){return V("MuiFilledInput",e)}const K=s({},xe,H("MuiFilledInput",["root","underline","input"])),$t=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ot=e=>{const{classes:t,disableUnderline:o}=e,l=X({root:["root",!o&&"underline"],input:["input"]},Mt,t);return s({},t,l)},wt=$(Ie,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...ye(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const n=e.palette.mode==="light",l=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",p=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:p,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:p}},[`&.${K.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:p},[`&.${K.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${K.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${K.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:l}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${K.disabled}, .${K.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${K.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&s({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Ft=$(Re,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pe})(({theme:e,ownerState:t})=>s({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),He=c.forwardRef(function(t,o){var n,l,p,a;const i=ee({props:t,name:"MuiFilledInput"}),{components:v={},componentsProps:C,fullWidth:I=!1,inputComponent:S="input",multiline:x=!1,slotProps:b,slots:O={},type:w="text"}=i,k=E(i,$t),f=s({},i,{fullWidth:I,inputComponent:S,multiline:x,type:w}),M=Ot(i),u={root:{ownerState:f},input:{ownerState:f}},d=b??C?he(u,b??C):u,y=(n=(l=O.root)!=null?l:v.Root)!=null?n:wt,R=(p=(a=O.input)!=null?a:v.Input)!=null?p:Ft;return h.jsx(Ce,s({slots:{root:y,input:R},componentsProps:d,fullWidth:I,inputComponent:S,multiline:x,ref:o,type:w},k,{classes:M}))});He.muiName="Input";var We;const kt=["children","classes","className","label","notched"],Nt=$("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:_})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Lt=$("legend",{name:"MuiNotchedOutlined",shouldForwardProp:_})(({ownerState:e,theme:t})=>s({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&s({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Et(e){const{className:t,label:o,notched:n}=e,l=E(e,kt),p=o!=null&&o!=="",a=s({},e,{notched:n,withLabel:p});return h.jsx(Nt,s({"aria-hidden":!0,className:t,ownerState:a},l,{children:h.jsx(Lt,{ownerState:a,children:p?h.jsx("span",{children:o}):We||(We=h.jsx("span",{className:"notranslate",children:""}))})}))}function Bt(e){return V("MuiOutlinedInput",e)}const W=s({},xe,H("MuiOutlinedInput",["root","notchedOutline","input"])),Dt=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jt=e=>{const{classes:t}=e,n=X({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bt,t);return s({},t,n)},Tt=$(Ie,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ye})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return s({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${W.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${W.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${W.focused} .${W.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${W.error} .${W.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${W.disabled} .${W.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&s({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Wt=$(Et,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),_t=$(Re,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pe})(({theme:e,ownerState:t})=>s({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Xe=c.forwardRef(function(t,o){var n,l,p,a,i;const v=ee({props:t,name:"MuiOutlinedInput"}),{components:C={},fullWidth:I=!1,inputComponent:S="input",label:x,multiline:b=!1,notched:O,slots:w={},type:k="text"}=v,f=E(v,Dt),M=jt(v),u=ze(),d=Ke({props:v,muiFormControl:u,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y=s({},v,{color:d.color||"primary",disabled:d.disabled,error:d.error,focused:d.focused,formControl:u,fullWidth:I,hiddenLabel:d.hiddenLabel,multiline:b,size:d.size,type:k}),R=(n=(l=w.root)!=null?l:C.Root)!=null?n:Tt,m=(p=(a=w.input)!=null?a:C.Input)!=null?p:_t;return h.jsx(Ce,s({slots:{root:R,input:m},renderSuffix:N=>h.jsx(Wt,{ownerState:y,className:M.notchedOutline,label:x!=null&&x!==""&&d.required?i||(i=h.jsxs(c.Fragment,{children:[x," ","*"]})):x,notched:typeof O<"u"?O:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:I,inputComponent:S,multiline:b,ref:o,type:k},f,{classes:s({},M,{notchedOutline:null})}))});Xe.muiName="Input";function Ut(e){return V("MuiList",e)}H("MuiList",["root","padding","dense","subheader"]);const At=["children","className","component","dense","disablePadding","subheader"],zt=e=>{const{classes:t,disablePadding:o,dense:n,subheader:l}=e;return X({root:["root",!o&&"padding",n&&"dense",l&&"subheader"]},Ut,t)},Kt=$("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})(({ownerState:e})=>s({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Vt=c.forwardRef(function(t,o){const n=ee({props:t,name:"MuiList"}),{children:l,className:p,component:a="ul",dense:i=!1,disablePadding:v=!1,subheader:C}=n,I=E(n,At),S=c.useMemo(()=>({dense:i}),[i]),x=s({},n,{component:a,dense:i,disablePadding:v}),b=zt(x);return h.jsx(ht.Provider,{value:S,children:h.jsxs(Kt,s({as:a,className:se(b.root,p),ref:o,ownerState:x},I,{children:[C,l]}))})}),Ht=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ge(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function _e(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function qe(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.indexOf(t.keys.join(""))===0}function oe(e,t,o,n,l,p){let a=!1,i=l(e,t,t?o:!1);for(;i;){if(i===e.firstChild){if(a)return!1;a=!0}const v=n?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!qe(i,p)||v)i=l(e,i,o);else return i.focus(),!0}return!1}const Xt=c.forwardRef(function(t,o){const{actions:n,autoFocus:l=!1,autoFocusItem:p=!1,children:a,className:i,disabledItemsFocusable:v=!1,disableListWrap:C=!1,onKeyDown:I,variant:S="selectedMenu"}=t,x=E(t,Ht),b=c.useRef(null),O=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dt(()=>{l&&b.current.focus()},[l]),c.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(u,{direction:d})=>{const y=!b.current.style.width;if(u.clientHeight<b.current.clientHeight&&y){const R=`${bt(ve(u))}px`;b.current.style[d==="rtl"?"paddingLeft":"paddingRight"]=R,b.current.style.width=`calc(100% + ${R})`}return b.current}}),[]);const w=u=>{const d=b.current,y=u.key,R=ve(d).activeElement;if(y==="ArrowDown")u.preventDefault(),oe(d,R,C,v,ge);else if(y==="ArrowUp")u.preventDefault(),oe(d,R,C,v,_e);else if(y==="Home")u.preventDefault(),oe(d,null,C,v,ge);else if(y==="End")u.preventDefault(),oe(d,null,C,v,_e);else if(y.length===1){const m=O.current,N=y.toLowerCase(),j=performance.now();m.keys.length>0&&(j-m.lastTime>500?(m.keys=[],m.repeating=!0,m.previousKeyMatched=!0):m.repeating&&N!==m.keys[0]&&(m.repeating=!1)),m.lastTime=j,m.keys.push(N);const B=R&&!m.repeating&&qe(R,m);m.previousKeyMatched&&(B||oe(d,R,!1,v,ge,m))?u.preventDefault():m.previousKeyMatched=!1}I&&I(u)},k=Se(b,o);let f=-1;c.Children.forEach(a,(u,d)=>{if(!c.isValidElement(u)){f===d&&(f+=1,f>=a.length&&(f=-1));return}u.props.disabled||(S==="selectedMenu"&&u.props.selected||f===-1)&&(f=d),f===d&&(u.props.disabled||u.props.muiSkipListHighlight||u.type.muiSkipListHighlight)&&(f+=1,f>=a.length&&(f=-1))});const M=c.Children.map(a,(u,d)=>{if(d===f){const y={};return p&&(y.autoFocus=!0),u.props.tabIndex===void 0&&S==="selectedMenu"&&(y.tabIndex=0),c.cloneElement(u,y)}return u});return h.jsx(Vt,s({role:"menu",ref:k,className:i,onKeyDown:w,tabIndex:l?0:-1},x,{children:M}))});function qt(e){return V("MuiMenu",e)}H("MuiMenu",["root","paper","list"]);const Gt=["onEntering"],Jt=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Qt={vertical:"top",horizontal:"right"},Yt={vertical:"top",horizontal:"left"},Zt=e=>{const{classes:t}=e;return X({root:["root"],paper:["paper"],list:["list"]},qt,t)},eo=$(gt,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),to=$(mt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),oo=$(Xt,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),no=c.forwardRef(function(t,o){var n,l;const p=ee({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:v,disableAutoFocusItem:C=!1,MenuListProps:I={},onClose:S,open:x,PaperProps:b={},PopoverClasses:O,transitionDuration:w="auto",TransitionProps:{onEntering:k}={},variant:f="selectedMenu",slots:M={},slotProps:u={}}=p,d=E(p.TransitionProps,Gt),y=E(p,Jt),R=ut(),m=s({},p,{autoFocus:a,disableAutoFocusItem:C,MenuListProps:I,onEntering:k,PaperProps:b,transitionDuration:w,TransitionProps:d,variant:f}),N=Zt(m),j=a&&!C&&x,B=c.useRef(null),q=(g,A)=>{B.current&&B.current.adjustStyleForScrollbar(g,{direction:R?"rtl":"ltr"}),k&&k(g,A)},U=g=>{g.key==="Tab"&&(g.preventDefault(),S&&S(g,"tabKeyDown"))};let L=-1;c.Children.map(i,(g,A)=>{c.isValidElement(g)&&(g.props.disabled||(f==="selectedMenu"&&g.props.selected||L===-1)&&(L=A))});const D=(n=M.paper)!=null?n:to,G=(l=u.paper)!=null?l:b,J=je({elementType:M.root,externalSlotProps:u.root,ownerState:m,className:[N.root,v]}),T=je({elementType:D,externalSlotProps:G,ownerState:m,className:N.paper});return h.jsx(eo,s({onClose:S,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?Qt:Yt,slots:{paper:D,root:M.root},slotProps:{root:J,paper:T},open:x,ref:o,transitionDuration:w,TransitionProps:s({onEntering:q},d),ownerState:m},y,{classes:O,children:h.jsx(oo,s({onKeyDown:U,actions:B,autoFocus:a&&(L===-1||C),autoFocusItem:j,variant:f},I,{className:se(N.list,I.className),children:i}))}))});function so(e){return V("MuiNativeSelect",e)}const Me=H("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ro=["className","disabled","error","IconComponent","inputRef","variant"],io=e=>{const{classes:t,variant:o,disabled:n,multiple:l,open:p,error:a}=e,i={select:["select",o,n&&"disabled",l&&"multiple",a&&"error"],icon:["icon",`icon${ce(o)}`,p&&"iconOpen",n&&"disabled"]};return X(i,so,t)},Ge=({ownerState:e,theme:t})=>s({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":s({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Me.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),lo=$("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Me.multiple}`]:t.multiple}]}})(Ge),Je=({ownerState:e,theme:t})=>s({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Me.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ao=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ce(o.variant)}`],o.open&&t.iconOpen]}})(Je),uo=c.forwardRef(function(t,o){const{className:n,disabled:l,error:p,IconComponent:a,inputRef:i,variant:v="standard"}=t,C=E(t,ro),I=s({},t,{disabled:l,variant:v,error:p}),S=io(I);return h.jsxs(c.Fragment,{children:[h.jsx(lo,s({ownerState:I,className:se(S.select,n),disabled:l,ref:i||o},C)),t.multiple?null:h.jsx(ao,{as:a,ownerState:I,className:S.icon})]})});function co(e){return V("MuiSelect",e)}const ne=H("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ue;const po=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],fo=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${ne.select}`]:t.select},{[`&.${ne.select}`]:t[o.variant]},{[`&.${ne.error}`]:t.error},{[`&.${ne.multiple}`]:t.multiple}]}})(Ge,{[`&.${ne.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bo=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ce(o.variant)}`],o.open&&t.iconOpen]}})(Je),mo=$("input",{shouldForwardProp:e=>ft(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ae(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function go(e){return e==null||typeof e=="string"&&!e.trim()}const vo=e=>{const{classes:t,variant:o,disabled:n,multiple:l,open:p,error:a}=e,i={select:["select",o,n&&"disabled",l&&"multiple",a&&"error"],icon:["icon",`icon${ce(o)}`,p&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return X(i,co,t)},ho=c.forwardRef(function(t,o){var n;const{"aria-describedby":l,"aria-label":p,autoFocus:a,autoWidth:i,children:v,className:C,defaultOpen:I,defaultValue:S,disabled:x,displayEmpty:b,error:O=!1,IconComponent:w,inputRef:k,labelId:f,MenuProps:M={},multiple:u,name:d,onBlur:y,onChange:R,onClose:m,onFocus:N,onOpen:j,open:B,readOnly:q,renderValue:U,SelectDisplayProps:L={},tabIndex:D,value:G,variant:J="standard"}=t,T=E(t,po),[g,A]=Te({controlled:G,default:S,name:"Select"}),[Oe,Qe]=Te({controlled:B,default:I,name:"Select"}),we=c.useRef(null),z=c.useRef(null),[Q,Ye]=c.useState(null),{current:pe}=c.useRef(B!=null),[Ze,Fe]=c.useState(),et=Se(o,k),tt=c.useCallback(r=>{z.current=r,r&&Ye(r)},[]),re=Q?.parentNode;c.useImperativeHandle(et,()=>({focus:()=>{z.current.focus()},node:we.current,value:g}),[g]),c.useEffect(()=>{I&&Oe&&Q&&!pe&&(Fe(i?null:re.clientWidth),z.current.focus())},[Q,i]),c.useEffect(()=>{a&&z.current.focus()},[a]),c.useEffect(()=>{if(!f)return;const r=ve(z.current).getElementById(f);if(r){const P=()=>{getSelection().isCollapsed&&z.current.focus()};return r.addEventListener("click",P),()=>{r.removeEventListener("click",P)}}},[f]);const ie=(r,P)=>{r?j&&j(P):m&&m(P),pe||(Fe(i?null:re.clientWidth),Qe(r))},ot=r=>{r.button===0&&(r.preventDefault(),z.current.focus(),ie(!0,r))},nt=r=>{ie(!1,r)},ke=c.Children.toArray(v),st=r=>{const P=ke.find(F=>F.props.value===r.target.value);P!==void 0&&(A(P.props.value),R&&R(r,P))},rt=r=>P=>{let F;if(P.currentTarget.hasAttribute("tabindex")){if(u){F=Array.isArray(g)?g.slice():[];const Z=g.indexOf(r.props.value);Z===-1?F.push(r.props.value):F.splice(Z,1)}else F=r.props.value;if(r.props.onClick&&r.props.onClick(P),g!==F&&(A(F),R)){const Z=P.nativeEvent||P,De=new Z.constructor(Z.type,Z);Object.defineProperty(De,"target",{writable:!0,value:{value:F,name:d}}),R(De,r)}u||ie(!1,P)}},it=r=>{q||[" ","ArrowUp","ArrowDown","Enter"].indexOf(r.key)!==-1&&(r.preventDefault(),ie(!0,r))},le=Q!==null&&Oe,lt=r=>{!le&&y&&(Object.defineProperty(r,"target",{writable:!0,value:{value:g,name:d}}),y(r))};delete T["aria-invalid"];let Y,Ne;const ae=[];let de=!1;(vt({value:g})||b)&&(U?Y=U(g):de=!0);const at=ke.map(r=>{if(!c.isValidElement(r))return null;let P;if(u){if(!Array.isArray(g))throw new Error(ct(2));P=g.some(F=>Ae(F,r.props.value)),P&&de&&ae.push(r.props.children)}else P=Ae(g,r.props.value),P&&de&&(Ne=r.props.children);return c.cloneElement(r,{"aria-selected":P?"true":"false",onClick:rt(r),onKeyUp:F=>{F.key===" "&&F.preventDefault(),r.props.onKeyUp&&r.props.onKeyUp(F)},role:"option",selected:P,value:void 0,"data-value":r.props.value})});de&&(u?ae.length===0?Y=null:Y=ae.reduce((r,P,F)=>(r.push(P),F<ae.length-1&&r.push(", "),r),[]):Y=Ne);let Le=Ze;!i&&pe&&Q&&(Le=re.clientWidth);let fe;typeof D<"u"?fe=D:fe=x?null:0;const Ee=L.id||(d?`mui-component-select-${d}`:void 0),ue=s({},t,{variant:J,value:g,open:le,error:O}),be=vo(ue),me=s({},M.PaperProps,(n=M.slotProps)==null?void 0:n.paper),Be=pt();return h.jsxs(c.Fragment,{children:[h.jsx(fo,s({ref:tt,tabIndex:fe,role:"combobox","aria-controls":Be,"aria-disabled":x?"true":void 0,"aria-expanded":le?"true":"false","aria-haspopup":"listbox","aria-label":p,"aria-labelledby":[f,Ee].filter(Boolean).join(" ")||void 0,"aria-describedby":l,onKeyDown:it,onMouseDown:x||q?null:ot,onBlur:lt,onFocus:N},L,{ownerState:ue,className:se(L.className,be.select,C),id:Ee,children:go(Y)?Ue||(Ue=h.jsx("span",{className:"notranslate",children:""})):Y})),h.jsx(mo,s({"aria-invalid":O,value:Array.isArray(g)?g.join(","):g,name:d,ref:we,"aria-hidden":!0,onChange:st,tabIndex:-1,disabled:x,className:be.nativeInput,autoFocus:a,ownerState:ue},T)),h.jsx(bo,{as:w,className:be.icon,ownerState:ue}),h.jsx(no,s({id:`menu-${d||""}`,anchorEl:re,open:le,onClose:nt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},M,{MenuListProps:s({"aria-labelledby":f,role:"listbox","aria-multiselectable":u?"true":void 0,disableListWrap:!0,id:Be},M.MenuListProps),slotProps:s({},M.slotProps,{paper:s({},me,{style:s({minWidth:Le},me!=null?me.style:null)})}),children:at}))]})}),xo=xt(h.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Co=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Io=["root"],yo=e=>{const{classes:t}=e;return t},$e={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_(e)&&e!=="variant",slot:"Root"},Ro=$(Ve,$e)(""),Po=$(Xe,$e)(""),So=$(He,$e)(""),Mo=c.forwardRef(function(t,o){const n=ee({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:p,classes:a={},className:i,defaultOpen:v=!1,displayEmpty:C=!1,IconComponent:I=xo,id:S,input:x,inputProps:b,label:O,labelId:w,MenuProps:k,multiple:f=!1,native:M=!1,onClose:u,onOpen:d,open:y,renderValue:R,SelectDisplayProps:m,variant:N="outlined"}=n,j=E(n,Co),B=M?uo:ho,q=ze(),U=Ke({props:n,muiFormControl:q,states:["variant","error"]}),L=U.variant||N,D=s({},n,{variant:L,classes:a}),G=yo(D),J=E(G,Io),T=x||{standard:h.jsx(Ro,{ownerState:D}),outlined:h.jsx(Po,{label:O,ownerState:D}),filled:h.jsx(So,{ownerState:D})}[L],g=Se(o,Ct(T));return h.jsx(c.Fragment,{children:c.cloneElement(T,s({inputComponent:B,inputProps:s({children:p,error:U.error,IconComponent:I,variant:L,type:void 0,multiple:f},M?{id:S}:{autoWidth:l,defaultOpen:v,displayEmpty:C,labelId:w,MenuProps:k,onClose:u,onOpen:d,open:y,renderValue:R,SelectDisplayProps:s({id:S},m)},b,{classes:b?he(J,b.classes):J},x?x.props.inputProps:{})},(f&&M||C)&&L==="outlined"?{notched:!0}:{},{ref:g,className:se(T.props.className,i,G.root)},!x&&{variant:L},j))})});Mo.muiName="Select";export{He as F,Ve as I,Xe as O,Mo as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as m,r as I,j as i}from"./iframe-
|
|
1
|
+
import{R as m,r as I,j as i}from"./iframe-DO8BaJAw.js";import{c as R}from"./index-Bx486E3T.js";import{a as W}from"./_isObject-B9qaLaWG.js";import{_ as q}from"./_curry3-B7ARCYrl.js";import{_ as L}from"./toString-JnyOAIuO.js";import{p as N}from"./pluck-BhzDS1MK.js";import{i as n}from"./is-D-2gRytX.js";import{T as k}from"./TextField-DeJ8wpMx.js";import{m as z}from"./map-Bp2kxiRy.js";import{M as C}from"./MenuItem-BVKX-mQt.js";import{T as g}from"./Typography-DucSr5vw.js";import{p as v}from"./propOr-DqwfjR-X.js";import{j as x}from"./join-C4LmfGnD.js";import{i as w}from"./isEmpty-agoU--IB.js";import{m as A}from"./makeStyles-1sdzB3LA.js";import{i as J}from"./ifElse-Dv0Tpe5Z.js";import{p as Y}from"./prop-Dw1-0RFD.js";import{i as $}from"./identity-BtKjXVdB.js";var B=q(function(p,a,c){return L(function(l){return W(p,l,c)},a)});const D=A(o=>({root:{...o.typography.body2},paper:{maxHeight:320},typo:{whiteSpace:"break-spaces"},disabledLabel:{color:o.palette.grey[700]}})),H=[],X={},G=({id:o,optionsKey:p,value:a="",label:c,items:l=H,isMultiple:E,onChange:f,textFieldProps:S=X,valueAccessor:_,labelAccessor:j,disabled:T,dataTestId:P="select-testid"})=>{const s=D(),u=m.useRef(null),[d,h]=m.useState(!1),[O,V]=m.useState(0),M=e=>{n(Function)(f)&&f(e.target.value)};I.useEffect(()=>{u.current&&d&&V(u.current.clientWidth)},[d]);const y=e=>t=>J(n(Object),r=>n(Function,t)?t(r):Y(e)(r),$),F=B((e,t)=>e.value===t),b=N("label",F(l,n(Array,a)?a:[a]));return i.jsx(k,{select:!0,id:o,"data-testid":P,disabled:w(l),label:c,value:a,title:x(", ",b),onChange:M,variant:"outlined",margin:"dense",size:"small",fullWidth:!0,SelectProps:{ref:u,open:d,autoWidth:!0,multiple:E,disabled:T,onOpen:()=>h(!0),onClose:()=>h(!1),classes:{root:s.root},renderValue:()=>i.jsx(g,{variant:"inherit",className:s.typo,children:x(", ",b)}),MenuProps:{getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},classes:{paper:s.paper},PaperProps:{style:{width:O}}}},className:s.root,...S,children:z(e=>{const t=y("value")(_)(e),r=y("label")(j)(e);return i.jsx(C,{id:r,value:t,dense:!0,"aria-label":r,title:r,disabled:v(!1,"disabled")(e),children:i.jsx(g,{variant:"inherit",className:R(s.typo,{[s.disabledLabel]:v(!1,"disabled")(e)}),children:r})},`${p}-${t}`)})(l)})};G.__docgenInfo={description:"",methods:[],displayName:"Select",props:{value:{defaultValue:{value:"''",computed:!1},required:!1},items:{defaultValue:{value:"[]",computed:!1},required:!1},textFieldProps:{defaultValue:{value:"{}",computed:!1},required:!1},dataTestId:{defaultValue:{value:"'select-testid'",computed:!1},required:!1}}};export{G as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as o}from"./Select-gSkt3VT8.js";import"./iframe-DO8BaJAw.js";import"./preload-helper-PPVm8Dsz.js";import"./index-Bx486E3T.js";import"./_isObject-B9qaLaWG.js";import"./_isString-qgG10cDy.js";import"./_curry1-DZES3h6F.js";import"./keys-MRUazFsh.js";import"./_curry3-B7ARCYrl.js";import"./toString-JnyOAIuO.js";import"./_reduce--NkscNLg.js";import"./curryN-CgLT4Soo.js";import"./pluck-BhzDS1MK.js";import"./map-Bp2kxiRy.js";import"./prop-Dw1-0RFD.js";import"./path-7HEZY5JL.js";import"./is-D-2gRytX.js";import"./TextField-DeJ8wpMx.js";import"./styled-jzrQGA5W.js";import"./Select-CLccc8gg.js";import"./useSlotProps-CK4gGeaU.js";import"./TransitionGroupContext-C3sqH9Ai.js";import"./Popover-4M9bPAGT.js";import"./formControlState-CepUnK6I.js";import"./TextareaAutosize-D36Jv8uS.js";import"./ownerDocument-DW-IO8s5.js";import"./Grow-Ec-9_feF.js";import"./index-B6RYGuxp.js";import"./index-DovOdZBv.js";import"./useTheme-4lTw46Fa.js";import"./utils-CFobb0wa.js";import"./Paper-qzkegRQN.js";import"./ListContext-DYreZ6Ok.js";import"./useControlled-B99t6jQE.js";import"./createSvgIcon-Dhw1ZPnl.js";import"./SvgIcon-B4njL0mU.js";import"./isMuiElement-Nstdele8.js";import"./MenuItem-BVKX-mQt.js";import"./ButtonBase-Clx5JnRy.js";import"./listItemTextClasses-DbR4Y0x3.js";import"./dividerClasses-CAKRlKNq.js";import"./Typography-DucSr5vw.js";import"./propOr-DqwfjR-X.js";import"./pathOr-Bcdd7dzV.js";import"./join-C4LmfGnD.js";import"./invoker-BWkMH1lm.js";import"./isEmpty-agoU--IB.js";import"./makeStyles-1sdzB3LA.js";import"./ifElse-Dv0Tpe5Z.js";import"./identity-BtKjXVdB.js";const Z={title:"Example/Select",component:o,tags:["autodocs"]},t={};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:"{}",...t.parameters?.docs?.source}}};const $=["Default"];export{t as Default,$ as __namedExportsOrder,Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as P,j as i}from"./iframe-
|
|
1
|
+
import{R as P,j as i}from"./iframe-DO8BaJAw.js";import{P as e}from"./index-CDYZMfH2.js";import{l as C,W as k}from"./Warning-iq5382n1.js";import{I as E}from"./Input-CbvyF0wm.js";import{A as _}from"./Alert-DEM4J89t.js";import{B}from"./Button-C3zFrP42.js";import{T as x}from"./Typography-DucSr5vw.js";import{p as m}from"./prop-Dw1-0RFD.js";import{G as p}from"./Grid-hI1L9TYO.js";import{C as F}from"./CircularProgress-RePhc3-i.js";import{p as T}from"./propOr-DqwfjR-X.js";import{i as R}from"./isNil-COslMkIS.js";import{m as y}from"./makeStyles-1sdzB3LA.js";import{i as q}from"./is-D-2gRytX.js";import{T as D}from"./Tooltip-CuZ4ONf5.js";import{C as W,a as $}from"./CardContent-D-YOm5vw.js";import{R as G,a as z}from"./RadioGroup-D1oghbPM.js";import{m as A}from"./map-Bp2kxiRy.js";import{F as L}from"./FormControlLabel-DDdNBdtG.js";import{u as V}from"./useTheme-4lTw46Fa.js";import{p as N}from"./path-7HEZY5JL.js";import{p as M}from"./pathOr-Bcdd7dzV.js";import{w as H}from"./utils-CxU8ILV4.js";import{P as Y}from"./Paper-qzkegRQN.js";import"./preload-helper-PPVm8Dsz.js";import"./SvgIcon-B4njL0mU.js";import"./styled-jzrQGA5W.js";import"./omit-DlVJ9qIR.js";import"./_isString-qgG10cDy.js";import"./_curry1-DZES3h6F.js";import"./index-Bx486E3T.js";import"./with-input-xAtKbhv1.js";import"./InputAdornment-DDxsNAoT.js";import"./formControlState-CepUnK6I.js";import"./or-CjN1zdxp.js";import"./isEmpty-agoU--IB.js";import"./keys-MRUazFsh.js";import"./_isObject-B9qaLaWG.js";import"./TextField-DeJ8wpMx.js";import"./Select-CLccc8gg.js";import"./useSlotProps-CK4gGeaU.js";import"./TransitionGroupContext-C3sqH9Ai.js";import"./Popover-4M9bPAGT.js";import"./TextareaAutosize-D36Jv8uS.js";import"./ownerDocument-DW-IO8s5.js";import"./Grow-Ec-9_feF.js";import"./index-B6RYGuxp.js";import"./index-DovOdZBv.js";import"./utils-CFobb0wa.js";import"./ListContext-DYreZ6Ok.js";import"./useControlled-B99t6jQE.js";import"./createSvgIcon-Dhw1ZPnl.js";import"./isMuiElement-Nstdele8.js";import"./IconButton-Cb9_2fe-.js";import"./ButtonBase-Clx5JnRy.js";import"./Done-BiBTcQXa.js";import"./Close-CbvuEges.js";import"./Button-fwWSBbmQ.js";import"./_curry3-B7ARCYrl.js";import"./Tooltip-DxRH4cyD.js";import"./SwitchBase-D2aIULBt.js";import"./_reduce--NkscNLg.js";import"./curryN-CgLT4Soo.js";import"./useThemeProps-CGttVwgL.js";import"./getThemeProps-p2tz9grW.js";import"./pipe-BPOcw2Vb.js";import"./toString-JnyOAIuO.js";import"./invoker-BWkMH1lm.js";const J=y(r=>({container:{padding:r.spacing(0,1),display:"flex",alignItems:"flex-start"},containerSubmitButton:{margin:r.spacing(1,0),display:"flex",justifyContent:"flex-end"},alertMessage:{display:"flex",flexDirection:"column"},input:{margin:0},close:{alignItems:"flex-start"},alert:{margin:r.spacing(0,1)}})),b=({hasError:r,isMessageOpen:c,isSharing:n,mail:o="",share:a,changeMail:l,changeIsMessageOpen:u,labels:t})=>{const[g,f]=P.useState(!1),s=J(),d=I=>{if(C.validate(o)&&f(!1),q(Function)(l))return l(I)},j=()=>{if(!C.validate(o)){f(!0);return}if(q(Function)(a))return a()};return c?i.jsx(_,{className:s.alert,classes:{action:s.close},variant:"filled",severity:r?"error":"success",onClose:()=>u(!1),children:i.jsxs("div",{className:s.alertMessage,children:[i.jsx(x,{variant:"body2",children:r?m("errorTitle")(t):m("successTitle")(t)}),i.jsx(x,{variant:"body2",children:r?m("errorMessage")(t):m("successMessage")(t)})]})}):i.jsxs(p,{container:!0,className:s.container,children:[i.jsx(p,{item:!0,xs:12,children:i.jsx(E,{inputProps:{"aria-label":m("email")(t),autoComplete:"email"},className:s.input,label:m("email")(t),type:"email",value:o,onChange:d,variant:"outlined",fullWidth:!0,isControlled:!0,textFieldProps:{error:g},onSubmit:j})}),i.jsx(p,{item:!0,xs:12,className:s.containerSubmitButton,children:i.jsx(B,{"aria-label":T("","submit")(t),type:"submit",disabled:n||R(a),variant:"contained",color:"primary",alternative:"siscc",onClick:j,className:s.submitButton,children:n?i.jsx(F,{size:24}):T("","submit")(t)})})]})};b.propTypes={hasError:e.bool,isMessageOpen:e.bool,isSharing:e.bool,mail:e.string,share:e.func,changeMail:e.func,changeIsMessageOpen:e.func,labels:e.shape({submit:e.oneOfType([e.string,e.element]),email:e.oneOfType([e.string,e.element]),successTitle:e.oneOfType([e.string,e.element]),successMessage:e.oneOfType([e.string,e.element]),errorTitle:e.oneOfType([e.string,e.element]),errorMessage:e.oneOfType([e.string,e.element])})};b.__docgenInfo={description:"",methods:[],displayName:"Form",props:{mail:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},hasError:{description:"",type:{name:"bool"},required:!1},isMessageOpen:{description:"",type:{name:"bool"},required:!1},isSharing:{description:"",type:{name:"bool"},required:!1},share:{description:"",type:{name:"func"},required:!1},changeMail:{description:"",type:{name:"func"},required:!1},changeIsMessageOpen:{description:"",type:{name:"func"},required:!1},labels:{description:"",type:{name:"shape",value:{submit:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},email:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},successTitle:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},successMessage:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},errorTitle:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},errorMessage:{name:"union",value:[{name:"string"},{name:"element"}],required:!1}}},required:!1}}};const O=y(r=>({container:{backgroundColor:r.palette.secondary.dark,boxShadow:"none",padding:r.spacing(2),width:"100%"},title:{padding:0,...M({},["mixins","share","title"],r)},content:{padding:r.spacing(1,0),"&:last-child":{padding:r.spacing(1,0)}},label:r.typography.body2,warning:{marginLeft:r.spacing(.5),width:"unset",fontSize:"inherit",height:"1.3em",...M({},["mixins","share","warning"],r)}})),S=({title:r})=>{const c=O(),n=V(),o=N(["palette","highlight","hl1"],n)||n.palette.primary.dark,a=n.palette.getContrastText(o);return i.jsx(D,{className:c.warning,title:r,tabIndex:0,variant:"warning","aria-hidden":!1,placement:"bottom",PopperProps:{modifiers:{flip:{behavior:["bottom","top","left","right"]}}},children:i.jsx(k,{pathBackgroundColor:o,pathColor:a})})};S.propTypes={title:e.string};const K=[],v=({changeMode:r,mode:c,modes:n=K,title:o})=>{const a=O();return i.jsx(W,{className:a.container,children:i.jsxs($,{className:a.content,children:[i.jsx(x,{className:a.title,children:o}),i.jsx(G,{onChange:l=>r(l.target.value),value:c,children:A(({label:l,value:u,disabled:t=!1,warningMessage:g})=>i.jsx(L,{classes:{label:a.label},disabled:t,control:i.jsx(z,{variant:"outlined",color:"primary"}),label:i.jsxs("span",{children:[l,g&&i.jsx(S,{title:g})]}),value:u},u))(n)})]})})};v.propTypes={changeMode:e.func,mode:e.string,modes:e.arrayOf(e.shape({label:e.oneOfType([e.string,e.element]),value:e.string,warningMessage:e.string,disabled:e.bool})),title:e.oneOfType([e.string,e.element])};v.__docgenInfo={description:"",methods:[],displayName:"Mode",props:{modes:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},value:{name:"string",required:!1},warningMessage:{name:"string",required:!1},disabled:{name:"bool",required:!1}}}},required:!1},changeMode:{description:"",type:{name:"func"},required:!1},mode:{description:"",type:{name:"string"},required:!1},title:{description:"",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1}}};const Q=y(r=>({container:{width:"100%",margin:r.spacing(1,0),padding:20},subContainer:{width:"100%",margin:r.spacing(2,0)},divider:{borderRight:`1px solid ${r.palette.divider}`},disclaimerContainer:{padding:r.spacing(0,1)},disclaimer:{backgroundColor:N(["palette","tertiary","dark"])(r)||r.palette.grey[100],padding:r.spacing(1,2),width:"100%",height:"100%"}})),w=({changeIsMessageOpen:r,changeMode:c,changeMail:n,hasError:o,isMessageOpen:a,isSharing:l,mail:u,mode:t,modes:g,share:f,labels:s})=>{const d=Q();return i.jsxs(p,{"data-testid":"share-test-id",container:!0,className:d.container,children:[i.jsx(p,{item:!0,xs:12,children:i.jsx(v,{changeMode:c,modes:g,mode:t,title:m("title")(s)})}),i.jsxs(p,{container:!0,className:d.subContainer,children:[i.jsx(p,{item:!0,xs:12,md:6,className:d.divider,children:i.jsx(b,{changeMail:n,changeIsMessageOpen:r,hasError:o,isMessageOpen:a,isSharing:l,mail:u,share:f,labels:s})}),i.jsx(p,{item:!0,xs:12,md:6,className:d.disclaimerContainer,children:i.jsx(Y,{className:d.disclaimer,children:m("disclaimer")(s)})})]})]})},U=H(({isBlank:r})=>({isBlank:r}))(w);w.__docgenInfo={description:"",methods:[],displayName:"CustomShare"};const dr={title:"Example/Share",component:U,tags:["autodocs"]},h={};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:"{}",...h.parameters?.docs?.source}}};const ur=["Default"];export{h as Default,ur as __namedExportsOrder,dr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./iframe-
|
|
1
|
+
import{j as r}from"./iframe-DO8BaJAw.js";import{A as x}from"./Alert-DEM4J89t.js";import{B as h}from"./Button-C3zFrP42.js";import{u as j}from"./useMediaQuery-DQ49HkbI.js";import{G as s}from"./Grid-hI1L9TYO.js";import{T as g}from"./Typography-DucSr5vw.js";import{p as n}from"./prop-Dw1-0RFD.js";import{C as y}from"./CircularProgress-RePhc3-i.js";import{p as l}from"./propOr-DqwfjR-X.js";import{i as w}from"./isNil-COslMkIS.js";import{T as N}from"./TextareaAutosize-D36Jv8uS.js";import{C as S}from"./Collapse-Doo6pq99.js";import{I as v}from"./IconButton-Cb9_2fe-.js";import{C}from"./Close-CbvuEges.js";import{m as b}from"./makeStyles-1sdzB3LA.js";import{p as A}from"./pathOr-Bcdd7dzV.js";import"./preload-helper-PPVm8Dsz.js";import"./index-Bx486E3T.js";import"./Paper-qzkegRQN.js";import"./styled-jzrQGA5W.js";import"./createSvgIcon-Dhw1ZPnl.js";import"./SvgIcon-B4njL0mU.js";import"./Button-fwWSBbmQ.js";import"./ButtonBase-Clx5JnRy.js";import"./TransitionGroupContext-C3sqH9Ai.js";import"./omit-DlVJ9qIR.js";import"./_isString-qgG10cDy.js";import"./_curry1-DZES3h6F.js";import"./path-7HEZY5JL.js";import"./getThemeProps-p2tz9grW.js";import"./useTheme-4lTw46Fa.js";import"./_curry3-B7ARCYrl.js";import"./ownerDocument-DW-IO8s5.js";import"./utils-CFobb0wa.js";import"./index-B6RYGuxp.js";import"./index-DovOdZBv.js";const B=b(t=>({container:{boxShadow:"none",width:"100%",padding:20},textarea:{width:"100%",margin:t.spacing(.5,0,0,0)},title:{paddingBottom:30,...A({},["mixins","share","title"],t)},textAreaWrapper:{display:"flex",flexGrow:1}})),c=({labels:t,onClick:a,isLoading:m,contentValue:p,isNotifOpen:d=!1,setIsNotifOpen:f})=>{const o=j(u=>u.breakpoints.down("md")),e=B();return r.jsxs(s,{className:e.container,children:[r.jsx(g,{variant:"h6",className:e.title,children:n("title")(t)}),r.jsxs(s,{container:!0,justifyContent:o?"center":"flex-start",alignItems:o?"left":"center",direction:o?"column-reverse":"row",children:[r.jsx(s,{item:!0,style:{padding:o?"20px 0 0 0":"0 20px 0 0"},children:r.jsx(h,{"aria-label":l("","generateUrl")(t),type:"submit",variant:"contained",color:"primary",disabled:m||w(a),alternative:"siscc",onClick:a,className:e.submitButton,children:m?r.jsx(y,{size:24}):l("","generateUrl")(t)})}),r.jsx(s,{item:!0,className:e.textAreaWrapper,children:r.jsx(N,{"aria-label":p,className:e.textarea,minRows:2,maxRows:2,readOnly:!0,value:p})})]}),r.jsx(S,{in:d,children:r.jsx(x,{severity:"error",action:r.jsx(v,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{f(!1)},children:r.jsx(C,{fontSize:"inherit"})}),children:n("errorMessage",t)})})]})};c.__docgenInfo={description:"",methods:[],displayName:"ShortUrls",props:{isNotifOpen:{defaultValue:{value:"false",computed:!1},required:!1}}};const lr={title:"Example/ShortUrls",component:c,tags:["autodocs"]},i={};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:"{}",...i.parameters?.docs?.source}}};const cr=["Default"];export{i as Default,cr as __namedExportsOrder,lr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as k,u as B,_ as y,a as i,j as e,p as g,R as D}from"./iframe-
|
|
1
|
+
import{r as k,u as B,_ as y,a as i,j as e,p as g,R as D}from"./iframe-DO8BaJAw.js";import{c as m}from"./index-Bx486E3T.js";import{g as _}from"./utils-CxU8ILV4.js";import{u as L}from"./useTheme-4lTw46Fa.js";import{b as A,g as C,c as I,a as R,s as T}from"./styled-jzrQGA5W.js";import{P as N}from"./Paper-qzkegRQN.js";import{G as b}from"./Grid-hI1L9TYO.js";import{T as v}from"./Typography-DucSr5vw.js";import{m as h}from"./makeStyles-1sdzB3LA.js";import"./preload-helper-PPVm8Dsz.js";import"./_isObject-B9qaLaWG.js";import"./_isString-qgG10cDy.js";import"./_curry1-DZES3h6F.js";import"./keys-MRUazFsh.js";import"./prop-Dw1-0RFD.js";import"./path-7HEZY5JL.js";import"./pipe-BPOcw2Vb.js";import"./curryN-CgLT4Soo.js";import"./_curry3-B7ARCYrl.js";import"./_reduce--NkscNLg.js";import"./toString-JnyOAIuO.js";import"./invoker-BWkMH1lm.js";function z(o){return A("MuiAppBar",o)}C("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const M=["className","color","enableColorOnDark","position"],$=o=>{const{color:r,position:t,classes:s}=o,a={root:["root",`color${g(r)}`,`position${g(t)}`]};return R(a,z,s)},d=(o,r)=>o?`${o?.replace(")","")}, ${r})`:r,G=T(N,{name:"MuiAppBar",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,r[`position${g(t.position)}`],r[`color${g(t.color)}`]]}})(({theme:o,ownerState:r})=>{const t=o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[900];return i({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},r.position==="fixed"&&{position:"fixed",zIndex:(o.vars||o).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},r.position==="absolute"&&{position:"absolute",zIndex:(o.vars||o).zIndex.appBar,top:0,left:"auto",right:0},r.position==="sticky"&&{position:"sticky",zIndex:(o.vars||o).zIndex.appBar,top:0,left:"auto",right:0},r.position==="static"&&{position:"static"},r.position==="relative"&&{position:"relative"},!o.vars&&i({},r.color==="default"&&{backgroundColor:t,color:o.palette.getContrastText(t)},r.color&&r.color!=="default"&&r.color!=="inherit"&&r.color!=="transparent"&&{backgroundColor:o.palette[r.color].main,color:o.palette[r.color].contrastText},r.color==="inherit"&&{color:"inherit"},o.palette.mode==="dark"&&!r.enableColorOnDark&&{backgroundColor:null,color:null},r.color==="transparent"&&i({backgroundColor:"transparent",color:"inherit"},o.palette.mode==="dark"&&{backgroundImage:"none"})),o.vars&&i({},r.color==="default"&&{"--AppBar-background":r.enableColorOnDark?o.vars.palette.AppBar.defaultBg:d(o.vars.palette.AppBar.darkBg,o.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?o.vars.palette.text.primary:d(o.vars.palette.AppBar.darkColor,o.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?o.vars.palette[r.color].main:d(o.vars.palette.AppBar.darkBg,o.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?o.vars.palette[r.color].contrastText:d(o.vars.palette.AppBar.darkColor,o.vars.palette[r.color].contrastText)},!["inherit","transparent"].includes(r.color)&&{backgroundColor:"var(--AppBar-background)"},{color:r.color==="inherit"?"inherit":"var(--AppBar-color)"},r.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),O=k.forwardRef(function(r,t){const s=B({props:r,name:"MuiAppBar"}),{className:a,color:l="primary",enableColorOnDark:n=!1,position:c="fixed"}=s,f=y(s,M),p=i({},s,{color:l,position:c,enableColorOnDark:n}),x=$(p);return e.jsx(G,i({square:!0,component:"header",ownerState:p,elevation:4,className:I(x.root,a,c==="fixed"&&"mui-fixed"),ref:t},f))});function E(o){return A("MuiToolbar",o)}C("MuiToolbar",["root","gutters","regular","dense"]);const P=["className","component","disableGutters","variant"],U=o=>{const{classes:r,disableGutters:t,variant:s}=o;return R({root:["root",!t&&"gutters",s]},E,r)},W=T("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,!t.disableGutters&&r.gutters,r[t.variant]]}})(({theme:o,ownerState:r})=>i({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}},r.variant==="dense"&&{minHeight:48}),({theme:o,ownerState:r})=>r.variant==="regular"&&o.mixins.toolbar),F=k.forwardRef(function(r,t){const s=B({props:r,name:"MuiToolbar"}),{className:a,component:l="div",disableGutters:n=!1,variant:c="regular"}=s,f=y(s,P),p=i({},s,{component:l,disableGutters:n,variant:c}),x=U(p);return e.jsx(W,i({as:l,className:I(x.root,a),ref:t,ownerState:p},f))}),q=h(o=>({appBar:{background:o.palette.grey[100],minWidth:300},root:{alignItems:"flex-start"},gutters:{padding:"8px 5%"},leftLabel:{fontWeight:o.typography.fontWeightBold,color:o.palette.grey.A700,textAlign:"left"},rightLabel:{color:o.palette.grey.A700,textAlign:"left"},rtl:{textAlign:"right"},fixed:{position:"fixed",bottom:0,left:0,width:"100%",zIndex:0}})),H=[],j=D.forwardRef(({leftLabel:o,rightLabel:r=H,isFixed:t},s)=>{const a=q(),l=L(),n=_(l);return e.jsx(O,{ref:s,"data-testid":"footer-bar-test-id",role:"contentinfo",position:"static",component:"footer",className:m(a.appBar,{[a.fixed]:t}),children:e.jsxs(F,{classes:{root:a.root,gutters:a.gutters},children:[e.jsx(b,{xs:4,item:!0,container:!0,justifyContent:"flex-start",alignItems:"flex-start",children:e.jsx(v,{variant:"body2",className:m(a.leftLabel,{[a.rtl]:n}),children:o})}),e.jsx(b,{xs:8,item:!0,container:!0,justifyContent:"flex-end",alignItems:"flex-start",children:e.jsx(v,{variant:"body2",className:m(a.rightLabel,{[a.rtl]:!n}),children:r})})]})})});j.__docgenInfo={description:"",methods:[],displayName:"SisccFooter",props:{rightLabel:{defaultValue:{value:"[]",computed:!1},required:!1}}};const fo={title:"Example/SisccFooter",component:j,tags:["autodocs"]},u={};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:"{}",...u.parameters?.docs?.source}}};const xo=["Default"];export{u as Default,xo as __namedExportsOrder,fo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,R as O,r as u}from"./iframe-
|
|
1
|
+
import{j as t,R as O,r as u}from"./iframe-DO8BaJAw.js";import{P as r}from"./index-CDYZMfH2.js";import{c as F}from"./index-Bx486E3T.js";import{B as L}from"./Button-fwWSBbmQ.js";import{p as b}from"./prop-Dw1-0RFD.js";import{c as C}from"./createSvgIcon-Dhw1ZPnl.js";import{P as W,I as _}from"./Popover-4M9bPAGT.js";import{p as A}from"./pipe-BPOcw2Vb.js";import{m as H}from"./map-Bp2kxiRy.js";import{v as P}from"./values-CAwOW2HW.js";import{m as K}from"./makeStyles-1sdzB3LA.js";import{p as k}from"./pathOr-Bcdd7dzV.js";import{p as N}from"./path-7HEZY5JL.js";import{p as j}from"./propOr-DqwfjR-X.js";import{C as $}from"./Cross-DWgmmCZm.js";import{u as V}from"./useTheme-4lTw46Fa.js";import{e as G}from"./_isObject-B9qaLaWG.js";import{P as Y}from"./Paper-qzkegRQN.js";import{I as q}from"./IconButton-Cb9_2fe-.js";import{i as z}from"./isEmpty-agoU--IB.js";import{g as J}from"./gt-BHd0ZsSb.js";import{A as Q}from"./ArrowForward-Dno_X5W-.js";import{l as U}from"./length-DIGTZ5xz.js";const X=C(t.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),Z=C(t.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),ee=C(t.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),re=C(t.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),te={},T=({spotlight:e=te,onChangeField:d,isRtl:p,classes:o})=>{const[l,c]=O.useState(null),n=i=>{c(i.currentTarget)},m=()=>{c(null)},f=!!l,g=f?"visions-spotlight-popover":void 0;return t.jsxs(u.Fragment,{children:[t.jsx(L,{"aria-describedby":g,onClick:n,children:t.jsxs("div",{className:o.buttonContainer,children:[b("searchLabel",e),t.jsx(Z,{fontSize:"small"})]})}),t.jsx(W,{id:g,open:f,anchorEl:l,onClose:m,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:t.jsx("div",{dir:p?"rtl":"ltr",className:o.popoverButton,children:A(P,H(i=>t.jsxs(L,{className:o.buttonContainer,onClick:d(i),disabled:i.disabled,children:[t.jsx(ee,{fontSize:"small",className:F({[o.selected]:!b("isSelected")(i)})}),t.jsx(e.FieldLabelRenderer,{id:i.id})]},i.id)))(b("fields",e))})})]})};T.propTypes={classes:r.object,spotlight:r.shape({fields:r.shape({id:r.string,isSelected:r.bool,disabled:r.bool}),searchLabel:r.oneOfType([r.string,r.element]),FieldLabelRenderer:r.func}),onChangeField:r.func.isRequired,isRtl:r.bool};T.__docgenInfo={description:"",methods:[],displayName:"Field",props:{spotlight:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{fields:{name:"shape",value:{id:{name:"string",required:!1},isSelected:{name:"bool",required:!1},disabled:{name:"bool",required:!1}},required:!1},searchLabel:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},FieldLabelRenderer:{name:"func",required:!1}}},required:!1},classes:{description:"",type:{name:"object"},required:!1},onChangeField:{description:"",type:{name:"func"},required:!0},isRtl:{description:"",type:{name:"bool"},required:!1}}};const se=K(e=>({container:{padding:e.spacing(1.875),borderRadius:e.spacing(.5),backgroundColor:N(["palette","button","mainOpacity"],e)||e.palette.primary.dark},fullWidth:{width:"100%"},defaultWidth:{maxWidth:420,minWidth:250},containerFocus:{backgroundColor:N(["palette","highlight","hl1"],e)||e.palette.primary.light,borderRadius:e.shape.borderRadius,...k({},["mixins","spotlight","focus"],e)},root:{display:"flex",alignItems:"center",border:`solid 1px ${e.palette.grey[400]}`,paddingRight:e.spacing(1)},input:{marginLeft:e.spacing(0),flex:1},inputBase:{...k({},["typography","body2"],e),lineHeight:0},inputBaseMargin:{padding:e.spacing(0),height:e.spacing(3.75)},leftIcon:{padding:e.spacing(.125,.5),"&.Mui-disabled":{color:`${e.palette.grey[700]} !important`}},rightIcon:{padding:e.spacing(.125,0),borderRadius:e.shape.borderRadius,color:e.palette.primary.main,margin:e.spacing(.125),"&.Mui-disabled":{color:`${e.palette.grey[700]} !important`}},clear:{padding:"3px 0px 0px 0px"},popoverButton:{display:"flex",flexDirection:"column"},divider:{width:1,height:"1.5em",margin:e.spacing(.5)},selected:{visibility:"hidden"},buttonContainer:{display:"flex",flexDirection:"row",alignItems:"center"}})),ae=(e,d="",p,o=()=>{})=>{const[l,c]=u.useState(d),[n={},m]=u.useState(p),[f,g]=u.useState(!1);return u.useEffect(()=>{c(d),m(p)},[d,p]),{value:l,spotlight:n,isFocus:f,setFocus:g,onKeyPress:s=>{if(s.key==="Enter")return o({term:l,spotlight:n})},onClearTerm:s=>(s.preventDefault(),c(""),o({term:""})),onChangeTerm:s=>{s.preventDefault();const h=j("","value")(s.target);return c(h),e?null:o({term:h,spotlight:n})},onChangeField:s=>h=>{h.preventDefault();const x={...n,fields:{...n.fields,[s.id]:{...s,isSelected:!s.isSelected}}};return m(x),o({term:l,spotlight:x})},onCommitTerm:s=>(s.preventDefault(),o({term:l,spotlight:n}))}},oe=A(P,U),D=({placeholder:e,hasClearAll:d,hasCommit:p,withBorder:o,defaultSpotlight:l,term:c,action:n,fullWidth:m,className:f,withAutoFocus:g=!1,labels:i,testId:v="spotlight"})=>{const{value:y,spotlight:S,isFocus:w,onKeyPress:s,onClearTerm:h,onChangeTerm:x,onChangeField:E,onCommitTerm:M,setFocus:R}=ae(p,c,l,n),a=se(),B=V(),I=G("rtl",b("direction",B));return t.jsx("div",{"data-testid":v,className:F(b("container",f),{[a.container]:o,[a.containerFocus]:w,[a.fullWidth]:m,[a.defaultWidth]:!m}),children:t.jsxs(Y,{className:a.root,elevation:0,children:[t.jsx(q,{className:a.leftIcon,disabled:!0,"aria-label":j("search","searchSpotlight")(i),size:"large",children:t.jsx(re,{})}),t.jsx(_,{inputProps:{"aria-label":e,"data-testid":`${v}_input`},className:a.input,sx:{"& input::placeholder":{color:B.palette.grey[700],opacity:1}},classes:{root:a.inputBase,input:a.inputBaseMargin},placeholder:e,onKeyDown:s,value:y,onChange:x,onFocus:()=>R(!0),onBlur:()=>R(!1),autoFocus:g}),d&&!z(y)?t.jsx(q,{"aria-label":j("clear","clearSpotlight")(i),onClick:h,className:F(a.rightIcon,a.clear),size:"large",children:t.jsx($,{})}):null,J(oe(b("fields",S)),1)?t.jsx(u.Fragment,{children:t.jsx(T,{spotlight:S,onChangeField:E,isRtl:I,term:y,classes:a})}):null,p?t.jsx(u.Fragment,{children:t.jsx(q,{disabled:z(y),color:"primary",className:a.rightIcon,"aria-label":j("commit","commitSpotlight")(i),onClick:M,size:"large",children:I?t.jsx(X,{}):t.jsx(Q,{})})}):null]})})};D.propTypes={term:r.string,testId:r.string,placeholder:r.string,defaultSpotlight:r.shape({fields:r.object,searchLabel:r.oneOfType([r.string,r.element]),FieldLabelRenderer:r.func}),action:r.func,hasClearAll:r.bool,hasCommit:r.bool,withBorder:r.bool,fullWidth:r.bool,classes:r.object,className:r.object,withAutoFocus:r.bool};D.__docgenInfo={description:"",methods:[],displayName:"Spotlight",props:{withAutoFocus:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},testId:{defaultValue:{value:"'spotlight'",computed:!1},description:"",type:{name:"string"},required:!1},term:{description:"",type:{name:"string"},required:!1},placeholder:{description:"",type:{name:"string"},required:!1},defaultSpotlight:{description:"",type:{name:"shape",value:{fields:{name:"object",required:!1},searchLabel:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},FieldLabelRenderer:{name:"func",required:!1}}},required:!1},action:{description:"",type:{name:"func"},required:!1},hasClearAll:{description:"",type:{name:"bool"},required:!1},hasCommit:{description:"",type:{name:"bool"},required:!1},withBorder:{description:"",type:{name:"bool"},required:!1},fullWidth:{description:"",type:{name:"bool"},required:!1},classes:{description:"",type:{name:"object"},required:!1},className:{description:"",type:{name:"object"},required:!1}}};export{X as A,D as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as o}from"./Spotlight-CfEKgKbi.js";import"./iframe-DO8BaJAw.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CDYZMfH2.js";import"./index-Bx486E3T.js";import"./Button-fwWSBbmQ.js";import"./styled-jzrQGA5W.js";import"./ButtonBase-Clx5JnRy.js";import"./TransitionGroupContext-C3sqH9Ai.js";import"./prop-Dw1-0RFD.js";import"./_isString-qgG10cDy.js";import"./_curry1-DZES3h6F.js";import"./path-7HEZY5JL.js";import"./createSvgIcon-Dhw1ZPnl.js";import"./SvgIcon-B4njL0mU.js";import"./Popover-4M9bPAGT.js";import"./formControlState-CepUnK6I.js";import"./TextareaAutosize-D36Jv8uS.js";import"./ownerDocument-DW-IO8s5.js";import"./useSlotProps-CK4gGeaU.js";import"./Grow-Ec-9_feF.js";import"./index-B6RYGuxp.js";import"./index-DovOdZBv.js";import"./useTheme-4lTw46Fa.js";import"./utils-CFobb0wa.js";import"./Paper-qzkegRQN.js";import"./pipe-BPOcw2Vb.js";import"./curryN-CgLT4Soo.js";import"./_curry3-B7ARCYrl.js";import"./_reduce--NkscNLg.js";import"./keys-MRUazFsh.js";import"./map-Bp2kxiRy.js";import"./values-CAwOW2HW.js";import"./makeStyles-1sdzB3LA.js";import"./pathOr-Bcdd7dzV.js";import"./propOr-DqwfjR-X.js";import"./Cross-DWgmmCZm.js";import"./_isObject-B9qaLaWG.js";import"./IconButton-Cb9_2fe-.js";import"./isEmpty-agoU--IB.js";import"./gt-BHd0ZsSb.js";import"./ArrowForward-Dno_X5W-.js";import"./length-DIGTZ5xz.js";const R={title:"Example/Spotlight",component:o,tags:["autodocs"]},t={};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:"{}",...t.parameters?.docs?.source}}};const T=["Default"];export{t as Default,T as __namedExportsOrder,R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as f,u as _,_ as z,a as y,j as x,p as v}from"./iframe-
|
|
1
|
+
import{r as f,u as _,_ as z,a as y,j as x,p as v}from"./iframe-DO8BaJAw.js";import{b as C,g as I,c as R,a as b,s as w}from"./styled-jzrQGA5W.js";function j(o){return C("MuiSvgIcon",o)}I("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B=o=>{const{color:t,fontSize:l,classes:i}=o,e={root:["root",t!=="inherit"&&`color${v(t)}`,`fontSize${v(l)}`]};return b(e,j,i)},M=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.root,l.color!=="inherit"&&t[`color${v(l.color)}`],t[`fontSize${v(l.fontSize)}`]]}})(({theme:o,ownerState:t})=>{var l,i,e,p,h,a,m,u,d,r,s,c,n;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(l=o.transitions)==null||(i=l.create)==null?void 0:i.call(l,"fill",{duration:(e=o.transitions)==null||(e=e.duration)==null?void 0:e.shorter}),fontSize:{inherit:"inherit",small:((p=o.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,20))||"1.25rem",medium:((a=o.typography)==null||(m=a.pxToRem)==null?void 0:m.call(a,24))||"1.5rem",large:((u=o.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[t.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(n=(o.vars||o).palette)==null||(n=n.action)==null?void 0:n.disabled,inherit:void 0}[t.color]}}),E=f.forwardRef(function(t,l){const i=_({props:t,name:"MuiSvgIcon"}),{children:e,className:p,color:h="inherit",component:a="svg",fontSize:m="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=z(i,A),n=f.isValidElement(e)&&e.type==="svg",g=y({},i,{color:h,component:a,fontSize:m,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:n}),S={};d||(S.viewBox=s);const $=B(g);return x.jsxs(M,y({as:a,className:R($.root,p),focusable:"false",color:u,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:l},S,c,n&&e.props,{ownerState:g,children:[n?e.props.children:e,r?x.jsx("title",{children:r}):null]}))});E.muiName="SvgIcon";export{E as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as W,_ as $,a as c,j as x,p as A}from"./iframe-
|
|
1
|
+
import{r as W,_ as $,a as c,j as x,p as A}from"./iframe-DO8BaJAw.js";import{b as D,g as G,c as H,a as J,s as F,r as K}from"./styled-jzrQGA5W.js";import{u as Q}from"./formControlState-CepUnK6I.js";import{u as T}from"./useControlled-B99t6jQE.js";import{B as V}from"./ButtonBase-Clx5JnRy.js";function X(e){return D("PrivateSwitchBase",e)}G("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Y=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Z=e=>{const{classes:t,checked:d,disabled:r,edge:a}=e,l={root:["root",d&&"checked",r&&"disabled",a&&`edge${A(a)}`],input:["input"]};return J(l,X,t)},ee=F(V,{name:"MuiSwitchBase"})(({ownerState:e})=>c({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),se=F("input",{name:"MuiSwitchBase",shouldForwardProp:K})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ce=W.forwardRef(function(t,d){const{autoFocus:r,checked:a,checkedIcon:l,className:w,defaultChecked:h,disabled:S,disableFocusRipple:p=!1,edge:y=!1,icon:R,id:P,inputProps:I,inputRef:v,name:j,onBlur:f,onChange:m,onFocus:g,readOnly:z,required:E=!1,tabIndex:N,type:n,value:b}=t,U=$(t,Y),[B,_]=T({controlled:a,default:!!h,name:"SwitchBase",state:"checked"}),o=Q(),L=s=>{g&&g(s),o&&o.onFocus&&o.onFocus(s)},q=s=>{f&&f(s),o&&o.onBlur&&o.onBlur(s)},M=s=>{if(s.nativeEvent.defaultPrevented)return;const C=s.target.checked;_(C),m&&m(s,C)};let i=S;o&&typeof i>"u"&&(i=o.disabled);const O=n==="checkbox"||n==="radio",u=c({},t,{checked:B,disabled:i,disableFocusRipple:p,edge:y}),k=Z(u);return x.jsxs(ee,c({component:"span",className:H(k.root,w),centerRipple:!0,focusRipple:!p,disabled:i,tabIndex:null,role:void 0,onFocus:L,onBlur:q,ownerState:u,ref:d},U,{children:[x.jsx(se,c({autoFocus:r,checked:a,defaultChecked:h,className:k.input,disabled:i,id:O?P:void 0,name:j,onChange:M,readOnly:z,ref:v,required:E,ownerState:u,tabIndex:N,type:n},n==="checkbox"&&b===void 0?{}:{value:b},I)),B?l:R]}))});export{ce as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./iframe-
|
|
1
|
+
import{j as r}from"./iframe-DO8BaJAw.js";import{T as f}from"./Tooltip-CuZ4ONf5.js";import{G as o}from"./Grid-hI1L9TYO.js";import{T as i}from"./Typography-DucSr5vw.js";import{i as u}from"./ifElse-Dv0Tpe5Z.js";import{i as x}from"./isNil-COslMkIS.js";import{a as g}from"./always-C_Ync45z.js";import{i as h}from"./identity-BtKjXVdB.js";import{p as s}from"./prop-Dw1-0RFD.js";import{m as j}from"./makeStyles-1sdzB3LA.js";import"./preload-helper-PPVm8Dsz.js";import"./index-Bx486E3T.js";import"./Tooltip-DxRH4cyD.js";import"./styled-jzrQGA5W.js";import"./Grow-Ec-9_feF.js";import"./index-B6RYGuxp.js";import"./index-DovOdZBv.js";import"./TransitionGroupContext-C3sqH9Ai.js";import"./useTheme-4lTw46Fa.js";import"./utils-CFobb0wa.js";import"./useControlled-B99t6jQE.js";import"./useSlotProps-CK4gGeaU.js";import"./ownerDocument-DW-IO8s5.js";import"./pathOr-Bcdd7dzV.js";import"./_curry3-B7ARCYrl.js";import"./_curry1-DZES3h6F.js";import"./_isString-qgG10cDy.js";import"./path-7HEZY5JL.js";import"./curryN-CgLT4Soo.js";const y=j(e=>({font:{color:e.palette.grey[600]},spaceContainer:{paddingLeft:e.spacing(1.5)},gridContainer:{padding:e.spacing(.5,1.5)}})),n=({tooltip:e,label:m,logo:p,link:l,linkLabel:c,height:d=25})=>{const t=y();return r.jsxs(o,{container:!0,direction:"row",alignItems:"center",spacing:2,children:[r.jsx(o,{item:!0,xs:1,className:t.gridContainer,children:r.jsx(f,{placement:"top",title:r.jsxs(i,{variant:"body2",children:[r.jsx(i,{variant:"inherit",children:s("label")(e)}),r.jsx("a",{className:t.spaceContainer,href:s("link")(e),children:s("linkLabel")(e)})]}),children:r.jsx(i,{variant:"body2",className:t.font,children:u(x,g("©"),h)(m)})})}),r.jsx(o,{item:!0,xs:11,className:t.gridContainer,children:r.jsxs(o,{container:!0,justifyContent:"flex-end",children:[r.jsx(i,{variant:"body2",className:t.font,children:r.jsx("a",{href:l,children:c})}),r.jsx("img",{className:t.spaceContainer,height:d,src:p,alt:"logo"})]})})]})};n.__docgenInfo={description:"",methods:[],displayName:"TableFooter",props:{height:{defaultValue:{value:"25",computed:!1},required:!1}}};const W={title:"Example/TableFooter",component:n,tags:["autodocs"]},a={};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:"{}",...a.parameters?.docs?.source}}};const X=["Default"];export{a as Default,X as __namedExportsOrder,W as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r,r as l}from"./iframe-
|
|
1
|
+
import{j as r,r as l}from"./iframe-DO8BaJAw.js";import{T as s}from"./Typography-DucSr5vw.js";import{p as a}from"./prop-Dw1-0RFD.js";import{p as c}from"./pipe-BPOcw2Vb.js";import{a as n}from"./addIndex-CoXIxbx_.js";import{m as d}from"./map-Bp2kxiRy.js";import{t as u}from"./toString-JnyOAIuO.js";import{i as x}from"./intersperse-N1r2vfe2.js";import{L as f}from"./Lens-xG2sLfCx.js";import{p as b}from"./propOr-DqwfjR-X.js";import{m as g}from"./makeStyles-1sdzB3LA.js";import"./preload-helper-PPVm8Dsz.js";import"./styled-jzrQGA5W.js";import"./_isString-qgG10cDy.js";import"./_curry1-DZES3h6F.js";import"./path-7HEZY5JL.js";import"./curryN-CgLT4Soo.js";import"./_curry3-B7ARCYrl.js";import"./_reduce--NkscNLg.js";import"./keys-MRUazFsh.js";import"./_concat-CKc59O9E.js";import"./_isObject-B9qaLaWG.js";import"./createSvgIcon-Dhw1ZPnl.js";import"./SvgIcon-B4njL0mU.js";import"./pathOr-Bcdd7dzV.js";const j=g(t=>({title:{color:t.palette.text.primary},subtitle:{color:t.palette.text.secondary,lineHeight:1.3},icon:{height:"0.35em",color:t.palette.text.secondary}})),i=({header:t})=>{const o=j();return r.jsxs("div",{className:o.container,children:[r.jsx(s,{variant:"h5",className:o.title,children:a("title")(t)}),r.jsx(s,{variant:"subtitle1",className:o.subtitle,children:c(b([],"subtitle"),x(r.jsx(f,{className:o.icon})),n(d)((m,p)=>r.jsx(l.Fragment,{children:m},u([a("title")(t),p]))))(t)}),r.jsx(s,{variant:"subtitle1",className:o.subtitle,children:a("uprs")(t)})]})};i.__docgenInfo={description:"",methods:[],displayName:"TableHeader"};const M={title:"Example/TableHeader",component:i,tags:["autodocs"]},e={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:"{}",...e.parameters?.docs?.source}}};const P=["Default"];export{e as Default,P as __namedExportsOrder,M as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as _,u as Yt,_ as Gt,a as $t,j as e,R as Rt}from"./iframe-61XUxUzt.js";import{i as L}from"./is-D-2gRytX.js";import{p as u}from"./prop-Dw1-0RFD.js";import{p as y,_ as Kt,r as pt}from"./pipe-BPOcw2Vb.js";import{j as G}from"./join-C4LmfGnD.js";import{p as ht}from"./pluck-BhzDS1MK.js";import{h as ct,a as Xt}from"./has-iQO9y9kE.js";import{a as dt,c as Ct,b as It}from"./concat-BrhabkUs.js";import{i as C}from"./isEmpty-agoU--IB.js";import{a as Zt}from"./assoc-Dg7iWEwB.js";import{c as U}from"./index-DczQiqCU.js";import{g as tt,b as Pt,a as kt}from"./utils-DnJaqCXD.js";import{A as Jt,e as Qt}from"./Asterisk-B_-UGBJc.js";import{u as Mt}from"./useKeybordEscapeHandler-r74DmQct.js";import{u as X}from"./useTheme-Ba2CD5ul.js";import{i as N}from"./isNil-COslMkIS.js";import{a as Ht}from"./any-BGxg3_gf.js";import{p as k}from"./propOr-DqwfjR-X.js";import{w as Bt}from"./when-DECS4LTO.js";import{a as et}from"./always-C_Ync45z.js";import{a as xt}from"./append-C8VlU-CL.js";import{m as T}from"./map-Bp2kxiRy.js";import{a as F}from"./addIndex-CoXIxbx_.js";import{T as te}from"./Tooltip-hG1utgji.js";import{n as K}from"./not-BYZhl9KK.js";import{a as Ft}from"./and-CXiINtOh.js";import{T as q}from"./Typography-BX8aytiu.js";import{v as ee}from"./visuallyHidden-Dan1xhjv.js";import{m as Y}from"./makeStyles-DArxJ_PP.js";import{p as V}from"./pathOr-Bcdd7dzV.js";import{c as se,a as mt,b as P,T as oe}from"./TableRow-CCVxr7ah.js";import{n as D,p as v}from"./path-7HEZY5JL.js";import{l as H}from"./last-BHnKv4Up.js";import{L as ae}from"./Link-DqR93V5L.js";import{_ as jt}from"./_isString-qgG10cDy.js";import{_ as ie}from"./invoker-BWkMH1lm.js";import{l as re}from"./lift-D5yfzgl2.js";import{e as zt}from"./_isObject-B9qaLaWG.js";import{r as le}from"./reverse-DjLk_5XO.js";import{a as Vt}from"./anyPass-DRkhPUV9.js";import{G as ft}from"./Grid-1cIX_aLT.js";import{l as B}from"./length-DIGTZ5xz.js";import{b as ne,g as ce,c as pe,a as de,s as me}from"./styled-BLwCyChO.js";import{t as W}from"./times-Jg5IS051.js";import{i as lt}from"./identity-BtKjXVdB.js";import{l as ue,o as nt}from"./over-CnsBPU4q.js";import{l as ge}from"./lensProp-BUIFwFtY.js";import{_ as fe}from"./_curry1-DZES3h6F.js";import{_ as Lt}from"./_curry3-B7ARCYrl.js";import{_ as ye}from"./_concat-CKc59O9E.js";import{p as he}from"./pick-Zfnu-6mP.js";import"./preload-helper-PPVm8Dsz.js";import"./curryN-CgLT4Soo.js";import"./_reduce--NkscNLg.js";import"./keys-MRUazFsh.js";import"./toString-JnyOAIuO.js";import"./SvgIcon-B8UQgD4E.js";import"./_reduced-C8HAFxGt.js";import"./Grow-iR4Y2odO.js";import"./index-CRObpF8N.js";import"./index-BEIJVI-u.js";import"./TransitionGroupContext-Dgq1rti2.js";import"./utils-DqFaS5iW.js";import"./useControlled-sLSt_YyN.js";import"./useSlotProps-zqtYAF-D.js";import"./ownerDocument-DW-IO8s5.js";import"./max-kgon7wA-.js";var be=Lt(function(s,o,a){if(s>=a.length||s<-a.length)return a;var p=s<0?a.length:0,r=p+s,i=ye(a);return i[r]=o(a[r]),i}),xe=jt(function(s,o){return ie(s)?function(){return s.apply(this,arguments)&&o.apply(this,arguments)}:re(Ft)(s,o)});function bt(){if(arguments.length===0)throw new Error("compose requires at least one argument");return y.apply(this,le(arguments))}var je=Lt(function(s,o,a){return be(s,et(o),a)}),_t=jt(function(s,o){return s/o}),ve=jt(Kt("forEach",function(s,o){for(var a=o.length,p=0;p<a;)s(o[p]),p+=1;return o})),qt=dt(1),yt=fe(function(s){return ue(D(s),je(s))});function $e(t){return ne("MuiTableBody",t)}ce("MuiTableBody",["root"]);const Ce=["className","component"],ke=t=>{const{classes:s}=t;return de({root:["root"]},$e,s)},_e=me("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),Se={variant:"body"},St="tbody",Ne=_.forwardRef(function(s,o){const a=Yt({props:s,name:"MuiTableBody"}),{className:p,component:r=St}=a,i=Gt(a,Ce),g=$t({},a,{component:r}),l=ke(g);return e.jsx(se.Provider,{value:Se,children:e.jsx(_e,$t({className:pe(l.root,p),as:r,ref:o,role:r===St?null:"rowgroup",ownerState:g},i))})}),ut=t=>s=>ct("values",s)?pt((o,a)=>({label:o.label,id:C(o.id)?a.id:`${o.id}, ${a.id}`,flags:Ct(o.flags,a.flags||[]),parents:Ct(o.parents,a.parents||[])}),{id:"",flags:[],parents:[],label:t(s.values)},s.values):y(u("value"),o=>Zt("label",t(o),o))(s),Ee=t=>L(Object,t)?u("name",t):y(ht("name"),G(", "))(t),M=t=>V({},["mixins","table","flag"],t),we=Y(t=>({content:{borderRadius:3,boxSizing:"border-box",listStyleType:"none",maxWidth:270,padding:0,margin:0,...t.typography.body1},flags:{borderBottom:"1px dotted",borderColor:"inherit",margin:t.spacing(0,.5),whiteSpace:"nowrap",display:"inline",fontWeight:"bold",fontStyle:"normal",position:"relative",verticalAlign:k("middle","verticalAlign",M(t)),...k({},"root",M(t))},svg:{verticalAlign:k("middle","verticalAlign",M(t))},header:{color:t.palette.getContrastText(t.palette.primary.main)}})),Te=[],R=({flags:t=Te,isHeader:s,HTMLRenderer:o,labelAccessor:a})=>{const p=we(),r=X(),i=N(t)||C(t),{open:g,setOpen:l}=Mt();if(i)return null;const f=Ht(It(ct("code")),t),n=y(pt((d,b)=>Bt(et(ct("code",b)),xt(b.code))(d),[]),G(k(",","delimiters",M(r))))(t),m=T(d=>{const b=ut(a)(d);return C(a(d))?b.label:`${a(d)}: ${b.label}`},t),c=e.jsx("ul",{"data-testid":"cell-flags-footnotes-content",className:p.content,children:F(T)((d,b)=>e.jsx("li",{children:L(Function,o)?e.jsx(o,{html:d}):d},b),m)});return e.jsx(te,{tabIndex:0,"aria-label":G(", ",m),"aria-hidden":!1,title:c,placement:"top",open:g,onOpen:()=>l(!0),onClose:()=>l(!1),children:e.jsxs("span",{"data-testid":"cell-flags-footnotes-icon",className:U(p.flags,{[p.header]:s}),children:[K(C(n))&&n,Ft(K(C(n)),f)&&e.jsx(Rt.Fragment,{children:k(",","delimiters",M(r))}),f&&e.jsxs(_.Fragment,{children:[" ",e.jsx(Jt,{className:p.svg,style:{fontSize:11}}),e.jsx(q,{style:ee,children:`* ${m}`})]})]})})};R.__docgenInfo={description:"",methods:[],displayName:"Flags",props:{flags:{defaultValue:{value:"[]",computed:!1},required:!1}}};const Re=Y(t=>({columnsTitle:{position:"sticky",zIndex:1,boxSizing:"border-box",backgroundColor:Pt(t)||t.palette.secondary.light,border:"none",borderBottom:`1px solid ${t.palette.grey[500]}`,color:t.palette.grey.A700,verticalAlign:"middle","&::after":{content:'""',position:"absolute",top:0,right:0,width:"1px",height:"100%",backgroundColor:t.palette.grey[500]}},fillerCell:{backgroundColor:t.palette.grey[200],border:"inherit",borderBottom:`1.5px solid ${t.palette.grey[500]}`,borderRight:`1.5px solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,verticalAlign:"middle",textAlign:"center",color:t.palette.grey.A700,zIndex:1},cellContent:{justifyContent:"flex-start",display:"flex"},label:{fontStyle:"italic",fontWeight:"bold"},highlight:t.mixins.table.cellHighlight})),Nt=F(T),At=Rt.forwardRef(({headerData:t,xLayoutData:s,activeCellIds:o,subHeadCellsWidth:a,SideIcon:p,HTMLRenderer:r,labelAccessor:i},g)=>{const l=Re(),f=X(),n=tt(f);return e.jsxs(mt,{children:[Nt((m,c)=>e.jsx(P,{component:"th",className:l.columnsTitle,id:`subHeader_${c}`,style:n?{right:a[c]}:{left:a[c]},ref:d=>g.current[c]=d,scope:"col",children:e.jsx("div",{className:l.cellContent,"aria-label":v(["dimension","id"],m),"data-testid":"row-dim",children:e.jsxs(q,{variant:"body1",tabIndex:0,className:l.label,children:[y(u("dimension"),i)(m),e.jsx(R,{labelAccessor:i,HTMLRenderer:r,flags:v(["dimension","flags"],m)})]})})},c),s),e.jsx(P,{className:l.fillerCell,style:n?{position:"sticky",right:H(a)}:{position:"sticky",left:H(a)}}),Nt((m,c)=>e.jsxs(P,{className:U(l.fillerCell,{[l.highlight]:u(c)(o)}),children:[!N(p)&&e.jsx(p,{sideProps:u("sideProps",m)}),e.jsx(R,{flags:u("flags",m),labelAccessor:i,HTMLRenderer:r})]},c),t)]})});At.__docgenInfo={description:"",methods:[],displayName:"SubHeader"};const Ie=Y(t=>({cell:{borderBottom:`1.5px solid ${t.palette.grey[500]}`,borderRight:`1.5px solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,verticalAlign:"baseline",color:t.palette.grey.A700,"&:hover":{boxShadow:`inset 0 0 0 2px ${t.palette.primary.main}`},whiteSpace:"pre-wrap",borderCollapse:"collapse"},active:{boxShadow:`inset 0 0 0 2px ${t.palette.primary.main}`},highlight:t.mixins.table.cellHighlight,oneCell:{border:`thin solid ${t.palette.grey[500]}`,display:"block"},link:{position:"inherit",userSelect:"inherit"},value:{overflow:"inherit"}})),Pe=xe(L(Number),It(zt(NaN))),He={},vt=({flags:t,value:s,intValue:o,headers:a,isOne:p,indexedDimValIds:r=He,cellHandler:i,activeCellHandler:g,isActive:l,isHighlight:f,sideProps:n,SideIcon:m,HTMLRenderer:c,labelAccessor:d,textAlign:b})=>{const h=Ie(),E=tt(X()),x=K(C(t)),$=L(Function,i)&&!C(r)?e.jsx(ae,{component:"button",variant:"body1",underline:"always",onClick:()=>i({indexedDimValIds:r}),className:h.link,children:L(Function,c)?e.jsx(c,{html:s}):s}):L(Function,c)?e.jsx(c,{html:s}):s;return e.jsxs(P,{align:Pe(o)?"right":b,component:p?"div":"td",className:U(h.cell,{[h.oneCell]:p,[h.active]:l,[h.highlight]:f}),headers:a,"aria-describedby":a,onClick:g,tabIndex:0,style:{textAlign:b||(E?"left":"right")},children:[!N(m)&&e.jsx(m,{sideProps:n,className:h.value}),x&&e.jsx(R,{HTMLRenderer:c,flags:t,labelAccessor:d}),$]})};vt.__docgenInfo={description:"",methods:[],displayName:"Cell",props:{indexedDimValIds:{defaultValue:{value:"{}",computed:!1},required:!1}}};const Be=Y(t=>({section:{borderCollapse:"collapse",backgroundColor:kt(t)||t.palette.secondary.dark,border:"inherit",borderBottom:`1px solid ${t.palette.grey[500]}`,borderRight:`1px solid ${t.palette.grey[500]}`,padding:t.spacing(0,1),color:t.palette.grey.A700,verticalAlign:"middle",whiteSpace:"nowrap"},label:{fontStyle:"italic",fontWeight:"bold",marginRight:t.spacing(.5)},containerSection:{display:"flex",alignItems:"center"},stickyHeaderSection:{position:"sticky"},flag:{height:"100%",backgroundColor:kt(t)||t.palette.secondary.dark,paddingLeft:12},leftLabelPosition:{left:t.spacing(1)},rightLabelPosition:{right:t.spacing(1)},sectionLabelsContainer:{padding:t.spacing(.5,0)}})),Fe=F(T),Ot=({headerData:t,section:s,currentSection:o,xLayoutDataLength:a,headerHeight:p,SideIcon:r,HTMLRenderer:i,labelAccessor:g})=>{const l=Be(),f=X(),n=tt(f);return bt(Vt([N,C]),v([0,"data"]))(s)?null:e.jsx(mt,{className:l.stickyHeaderSection,style:{left:0,top:p,zIndex:2},children:e.jsx(P,{component:"th",className:l.section,colSpan:y(B,qt,dt(a))(t),id:o,scope:"col",children:e.jsxs(ft,{container:!0,alignItems:"center",children:[e.jsx(ft,{item:!0,style:n?{position:"sticky",right:"8px"}:{position:"sticky",left:"8px"},children:e.jsx(q,{variant:"body1",component:"div",className:l.containerSection,children:e.jsxs("span",{className:U(l.stickyHeaderSection,l.leftLabelPosition,l.sectionLabelsContainer),children:[Fe((m,c)=>{const d=ut(g)(m);return e.jsxs(_.Fragment,{children:[c!==0&&e.jsx("br",{}),e.jsxs(q,{noWrap:!0,variant:"body1",component:"span",tabIndex:0,className:l.label,"data-testid":"section-dim","aria-label":v(["dimension","id"],m),children:[y(u("dimension"),g)(m),":"]}),e.jsx(q,{noWrap:!0,variant:"body1",component:"span",tabIndex:0,children:u("label",d)}),e.jsx(R,{HTMLRenderer:i,labelAccessor:g,flags:u("flags",d)})]},c)},v([0,"data"],s)),e.jsx("span",{children:e.jsx(R,{HTMLRenderer:i,flags:v([0,"flags"],s),labelAccessor:g})})]})})}),!N(r)&&e.jsx(ft,{item:!0,style:{marginLeft:40},children:e.jsx(r,{sideProps:v([0,"sideProps"],s)})})]})})},s.key)};Ot.__docgenInfo={description:"",methods:[],displayName:"SectionHeader"};const ze=Y(t=>({rowTitle:{backgroundColor:Pt(t)||t.palette.secondary.light,border:"inherit",borderBottom:`1.5px solid ${t.palette.grey[500]}`,borderRight:`1.5px solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,color:t.palette.grey.A700,verticalAlign:"top",align:"left",borderCollapse:"collapse",borderSpacing:0},timePeriodCells:{whiteSpace:"nowrap"},fillerCell:{minWidth:"30px",backgroundColor:t.palette.grey[200],verticalAlign:"top",border:"inherit",borderBottom:`1.5px solid ${t.palette.grey[500]}`,borderRight:`1.5px solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,position:"sticky",zIndex:1},cellContent:{display:"flex",alignItems:"center"},flagContainer:{display:"flex",justifyContent:"center",fontWeight:"bold"},topCell:{paddingTop:0},hierarchySpace:{marginBottom:"auto"},highlight:t.mixins.table.cellHighlight,stickyHeader:{position:"sticky",zIndex:1}})),Et=F(T),Wt=({headerData:t,cells:s,section:o,xLayoutDataLength:a,cellHandler:p,activeCellHandler:r,activeCellIds:i,headerHeight:g,sectionIndex:l,nbColumnsByRows:f,SideIcon:n,subHeadCellsWidth:m,HTMLRenderer:c,labelAccessor:d,cellValueAccessor:b,isNoWrap:h,textAlign:E})=>{const x=ze(),$=v([0,"key"],o),A=B(f),st=H(f),ot=X(),at=tt(ot);return e.jsxs(Ne,{children:[e.jsx(Ot,{headerData:t,section:o,currentSection:$,xLayoutDataLength:a,headerHeight:g,SideIcon:n,HTMLRenderer:c,labelAccessor:d}),Et((w,gt)=>{const j=`${w.key}_${l}_${gt}`,I=y(T(S=>`${w.key}_${l}_${S}`),G(" "))(W(lt,B(u("data",w))));return e.jsxs(mt,{children:[W(S=>{const z=v(["data",S],w),Z=N(z)?{label:""}:ut(d)(z),J=k([],"flags",Z),O=`${gt}_${j}_${S}`,it=y(k([],"parents"),Bt(N,et([])),B,W(()=>"· "))(Z);return e.jsx(P,{className:U(x.rowTitle,x.stickyHeader,{[x.highlight]:u(j)(i),[x.timePeriodCells]:L(Function,h)&&h(k({},"dimension",z))}),id:O,headers:`subHeader_${S} ${$}`,component:"th",style:at?{right:m[S]}:{left:m[S]},children:e.jsxs("div",{className:x.cellContent,children:[!C(it)&&e.jsx("div",{className:x.hierarchySpace,children:it}),e.jsxs(q,{variant:"body1",tabIndex:0,"aria-describedby":`subHeader_${S} ${$}`,children:[u("label",Z),e.jsx(R,{HTMLRenderer:c,labelAccessor:d,flags:J})]})]})},O)},a),e.jsx(P,{className:U(x.fillerCell,{[x.highlight]:u(j)(i)}),style:at?{right:H(m)}:{left:H(m)},children:e.jsxs("div",{className:x.flagContainer,children:[!N(n)&&e.jsx(n,{sideProps:u("sideProps",w)}),e.jsx(R,{HTMLRenderer:c,labelAccessor:d,flags:u("flags",w)})]})}),Et((S,z)=>{const Z=y(W(lt),T(Q=>{const Ut=_t(z,_t(st,D(Q,f)));return`${Math.floor(Ut||0)}_${Q}`}),G(" "))(A),J=`${j}/${z}`,O=y(k({},"intersectionCellId"),zt(J))(i),it=S.isEmpty||w.isEmpty?"":"..";return _.createElement(vt,{...y(V({value:null},[S.key,$,w.key,0]),nt(ge("value"),Q=>N(Q)?it:b(Q)))(s),key:J,headers:`${I} ${Z} ${$}`,cellHandler:p,HTMLRenderer:c,labelAccessor:d,SideIcon:n,isActive:O,textAlign:E,isHighlight:Ht(lt)([u(j)(i),u(z)(i)]),activeCellHandler:L(Function)(r)?()=>r({[j]:K(O),[z]:K(O),intersectionCellId:O?null:J}):null})},t)]},j)},D(1,o))]})},Ve=_.memo(Wt);Wt.__docgenInfo={description:"",methods:[],displayName:"SectionComponent"};const Le=Y(t=>({tableHeadCell:{color:t.palette.getContrastText(t.palette.primary.main),backgroundColor:t.palette.primary.main,border:"inherit",borderBottom:`thin solid ${t.palette.grey[500]}`,borderRight:`thin solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,verticalAlign:"top","&:focus ":{opacity:".85"},textAlign:"center"},cellContentCenter:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",position:"sticky"},cellContentRight:{display:"flex",justifyContent:"flex-end",fontStyle:"italic"},cellLabelHeader:{fontStyle:"inherit",fontWeight:"bold"},stickyLabel:{position:"sticky"}})),qe=F(W),wt=F(T),Ae=({headerData:t,valuesHeaderData:s,xLayoutDataLength:o,subHeadCellsWidth:a,HTMLRenderer:p,labelAccessor:r})=>{const i=Le(),g=X(),l=tt(g),f=`${H(a)}px + 30px + ${g.spacing(1)}`;return bt(Vt([N,C]),v([0,"data"]))(t)?null:qe(n=>{const m=v([0,"data",n,"dimension","flags"],t),c=`header_${n}`;return e.jsxs(mt,{children:[e.jsx(P,{component:"th",padding:"none",align:"center",className:i.tableHeadCell,colSpan:qt(o),id:c,tabIndex:0,scope:"row",title:y(v([-1,"data",n,"dimension"]),r)(t),style:l?{position:"sticky",zIndex:1,right:0}:{position:"sticky",zIndex:1,left:0},children:e.jsx("div",{className:i.cellContentRight,"aria-label":v([0,"data",n,"dimension","id"],t),"data-testid":"header-dim",role:"row",children:e.jsxs(q,{variant:"body1",className:i.cellLabelHeader,children:[y(v([-1,"data",n,"dimension"]),r)(t),e.jsx(R,{HTMLRenderer:p,flags:m,isHeader:!0,labelAccessor:r})]})})}),wt((d,b)=>{const h=d.isEmpty?{label:""}:ut(r)(d),E=k([],"flags",h),x=y(k([],"parents"),B,W(()=>"·"))(h);return e.jsx(P,{component:"th",className:U(i.tableHeadCell,{[i.topCell]:K(C(E))}),id:`${b}_${n}`,headers:`header_${n}`,colSpan:u("spanCount",d),tabIndex:0,title:u("label",h),"aria-label":u("label",h),"aria-describedby":c,scope:"col",children:e.jsxs("div",{className:i.cellContentCenter,children:[!C(x)&&wt(($,A)=>e.jsx("div",{children:$},A))(x),e.jsxs(q,{className:i.stickyLabel,style:{left:l?g.spacing(1):f,right:l?f:g.spacing(1)},variant:"body1",children:[u("label",h),e.jsx(R,{HTMLRenderer:p,flags:E,isHeader:!0,labelAccessor:r})]})]})},`${u("id",h)}-${b}`)},D(n,s))]},c)},bt(B,V([],[-1,"data"]))(t))},Oe=Y(t=>({table:{outline:"1px solid transparent",transform:"translateZ(0)",borderCollapse:"separate",borderLeft:`1px solid ${t.palette.grey[500]}`,borderTop:`1px solid ${t.palette.grey[500]}`,padding:"0px 0px"},stickyHeader:{position:"sticky",top:0,zIndex:2}})),We=F(T),De=t=>{const s=y(H,k([],"data"),B)(t);return y(ht("data"),pt((o,a)=>(F(ve)((p,r)=>{const i=D(r,a)||{},g=ct("values",i)?y(u("values"),ht("id"),G(","))(i):V(`missing${r}`,["value","id"],i),l=r>0?y(D(r-1),H)(o):null,f=N(l)?g:`${l.key}-${g}`,n=y(D(r),H)(o);u("key",n)===f&&r!==s-1?o=nt(yt(r),nt(yt(-1),Qt({spanCount:dt(1)})))(o):o=nt(yt(r),xt({...he(["value","values"],i),key:f,spanCount:1,isEmpty:C(i)}))(o)})(o),o),W(et([]),s)))(t)},Tt=F(pt)((t,s,o)=>xt(dt(t[o],k(0,"offsetWidth",s)),t),[0]),Ue=[],Ye=[],Dt=({cells:t,headerData:s=Ue,sectionsData:o=Ye,cellHandler:a,activeCellIds:p,activeCellHandler:r,SideIcon:i,testId:g="vis-table",HTMLRenderer:l,cellValueAccessor:f=lt,labelAccessor:n=Ee,textAlign:m,isNoWrap:c=et(!1)})=>{const d=Oe(),[b,h]=_.useState(0),[E,x]=_.useState([0]),$=_.useRef(null),A=_.useRef([]);_.useEffect(()=>{h(V(0,["current","clientHeight"],$)),x(Tt(u("current",A)))},[t,s,o]),_.useEffect(()=>{let j=null;const I=()=>{clearTimeout(j),j=setTimeout(()=>{h(V(0,["current","clientHeight"],$)),x(Tt(u("current",A)))},150)};return window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]);const st=V([],[0,1,-1,"data"],o),ot=B(st),{valuesHeaderData:at,nbColumnsByRows:w}=_.useMemo(()=>{const j=De(s),I=T(B)(j);return{valuesHeaderData:j,nbColumnsByRows:I}},[s]);return Xt(["","","",0],t)?e.jsx(vt,{HTMLRenderer:l,labelAccessor:n,...V({},["","","",0],t),cellHandler:a,isOne:!0,textAlign:m}):e.jsxs(oe,{className:d.table,"aria-label":"table",size:"small","data-testid":g,children:[e.jsxs("thead",{ref:$,className:d.stickyHeader,children:[e.jsx(Ae,{headerData:s,valuesHeaderData:at,xLayoutDataLength:ot,subHeadCellsWidth:E,HTMLRenderer:l,labelAccessor:n}),e.jsx(At,{headerData:s,xLayoutData:st,activeCellIds:p,SideIcon:i,ref:A,subHeadCellsWidth:E,HTMLRenderer:l,labelAccessor:n})]}),We((j,I)=>e.jsx(Ve,{sectionIndex:I,headerHeight:b,nbColumnsByRows:w,headerData:s,cells:t,section:j,xLayoutDataLength:ot,cellHandler:a,activeCellIds:p,activeCellHandler:r,SideIcon:i,subHeadCellsWidth:E,HTMLRenderer:l,cellValueAccessor:f,labelAccessor:n,isNoWrap:c,textAlign:m},`section-${I}`),o)]})};Dt.__docgenInfo={description:"",methods:[],displayName:"TableHtml5",props:{headerData:{defaultValue:{value:"[]",computed:!1},required:!1},sectionsData:{defaultValue:{value:"[]",computed:!1},required:!1},testId:{defaultValue:{value:"'vis-table'",computed:!1},required:!1},cellValueAccessor:{defaultValue:{value:"R.identity",computed:!0},required:!1},labelAccessor:{defaultValue:{value:`(item) => {
|
|
1
|
+
import{r as _,u as Yt,_ as Gt,a as $t,j as e,R as Rt}from"./iframe-DO8BaJAw.js";import{i as L}from"./is-D-2gRytX.js";import{p as u}from"./prop-Dw1-0RFD.js";import{p as y,_ as Kt,r as pt}from"./pipe-BPOcw2Vb.js";import{j as G}from"./join-C4LmfGnD.js";import{p as ht}from"./pluck-BhzDS1MK.js";import{h as ct,a as Xt}from"./has-iQO9y9kE.js";import{a as dt,c as Ct,b as It}from"./concat-BrhabkUs.js";import{i as C}from"./isEmpty-agoU--IB.js";import{a as Zt}from"./assoc-Dg7iWEwB.js";import{c as U}from"./index-Bx486E3T.js";import{g as tt,b as Pt,a as kt}from"./utils-CxU8ILV4.js";import{A as Jt,e as Qt}from"./Asterisk-CdTi40xP.js";import{u as Mt}from"./useKeybordEscapeHandler-BpsMUxFP.js";import{u as X}from"./useTheme-4lTw46Fa.js";import{i as N}from"./isNil-COslMkIS.js";import{a as Ht}from"./any-BGxg3_gf.js";import{p as k}from"./propOr-DqwfjR-X.js";import{w as Bt}from"./when-DECS4LTO.js";import{a as et}from"./always-C_Ync45z.js";import{a as xt}from"./append-C8VlU-CL.js";import{m as T}from"./map-Bp2kxiRy.js";import{a as F}from"./addIndex-CoXIxbx_.js";import{T as te}from"./Tooltip-DxRH4cyD.js";import{n as K}from"./not-BYZhl9KK.js";import{a as Ft}from"./and-CXiINtOh.js";import{T as q}from"./Typography-DucSr5vw.js";import{v as ee}from"./visuallyHidden-Dan1xhjv.js";import{m as Y}from"./makeStyles-1sdzB3LA.js";import{p as V}from"./pathOr-Bcdd7dzV.js";import{c as se,a as mt,b as P,T as oe}from"./TableRow-BwaUnYCC.js";import{n as D,p as v}from"./path-7HEZY5JL.js";import{l as H}from"./last-BHnKv4Up.js";import{L as ae}from"./Link-C36LOI3K.js";import{_ as jt}from"./_isString-qgG10cDy.js";import{_ as ie}from"./invoker-BWkMH1lm.js";import{l as re}from"./lift-D5yfzgl2.js";import{e as zt}from"./_isObject-B9qaLaWG.js";import{r as le}from"./reverse-DjLk_5XO.js";import{a as Vt}from"./anyPass-DRkhPUV9.js";import{G as ft}from"./Grid-hI1L9TYO.js";import{l as B}from"./length-DIGTZ5xz.js";import{b as ne,g as ce,c as pe,a as de,s as me}from"./styled-jzrQGA5W.js";import{t as W}from"./times-Jg5IS051.js";import{i as lt}from"./identity-BtKjXVdB.js";import{l as ue,o as nt}from"./over-CnsBPU4q.js";import{l as ge}from"./lensProp-BUIFwFtY.js";import{_ as fe}from"./_curry1-DZES3h6F.js";import{_ as Lt}from"./_curry3-B7ARCYrl.js";import{_ as ye}from"./_concat-CKc59O9E.js";import{p as he}from"./pick-Zfnu-6mP.js";import"./preload-helper-PPVm8Dsz.js";import"./curryN-CgLT4Soo.js";import"./_reduce--NkscNLg.js";import"./keys-MRUazFsh.js";import"./toString-JnyOAIuO.js";import"./SvgIcon-B4njL0mU.js";import"./_reduced-C8HAFxGt.js";import"./Grow-Ec-9_feF.js";import"./index-B6RYGuxp.js";import"./index-DovOdZBv.js";import"./TransitionGroupContext-C3sqH9Ai.js";import"./utils-CFobb0wa.js";import"./useControlled-B99t6jQE.js";import"./useSlotProps-CK4gGeaU.js";import"./ownerDocument-DW-IO8s5.js";import"./max-kgon7wA-.js";var be=Lt(function(s,o,a){if(s>=a.length||s<-a.length)return a;var p=s<0?a.length:0,r=p+s,i=ye(a);return i[r]=o(a[r]),i}),xe=jt(function(s,o){return ie(s)?function(){return s.apply(this,arguments)&&o.apply(this,arguments)}:re(Ft)(s,o)});function bt(){if(arguments.length===0)throw new Error("compose requires at least one argument");return y.apply(this,le(arguments))}var je=Lt(function(s,o,a){return be(s,et(o),a)}),_t=jt(function(s,o){return s/o}),ve=jt(Kt("forEach",function(s,o){for(var a=o.length,p=0;p<a;)s(o[p]),p+=1;return o})),qt=dt(1),yt=fe(function(s){return ue(D(s),je(s))});function $e(t){return ne("MuiTableBody",t)}ce("MuiTableBody",["root"]);const Ce=["className","component"],ke=t=>{const{classes:s}=t;return de({root:["root"]},$e,s)},_e=me("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),Se={variant:"body"},St="tbody",Ne=_.forwardRef(function(s,o){const a=Yt({props:s,name:"MuiTableBody"}),{className:p,component:r=St}=a,i=Gt(a,Ce),g=$t({},a,{component:r}),l=ke(g);return e.jsx(se.Provider,{value:Se,children:e.jsx(_e,$t({className:pe(l.root,p),as:r,ref:o,role:r===St?null:"rowgroup",ownerState:g},i))})}),ut=t=>s=>ct("values",s)?pt((o,a)=>({label:o.label,id:C(o.id)?a.id:`${o.id}, ${a.id}`,flags:Ct(o.flags,a.flags||[]),parents:Ct(o.parents,a.parents||[])}),{id:"",flags:[],parents:[],label:t(s.values)},s.values):y(u("value"),o=>Zt("label",t(o),o))(s),Ee=t=>L(Object,t)?u("name",t):y(ht("name"),G(", "))(t),M=t=>V({},["mixins","table","flag"],t),we=Y(t=>({content:{borderRadius:3,boxSizing:"border-box",listStyleType:"none",maxWidth:270,padding:0,margin:0,...t.typography.body1},flags:{borderBottom:"1px dotted",borderColor:"inherit",margin:t.spacing(0,.5),whiteSpace:"nowrap",display:"inline",fontWeight:"bold",fontStyle:"normal",position:"relative",verticalAlign:k("middle","verticalAlign",M(t)),...k({},"root",M(t))},svg:{verticalAlign:k("middle","verticalAlign",M(t))},header:{color:t.palette.getContrastText(t.palette.primary.main)}})),Te=[],R=({flags:t=Te,isHeader:s,HTMLRenderer:o,labelAccessor:a})=>{const p=we(),r=X(),i=N(t)||C(t),{open:g,setOpen:l}=Mt();if(i)return null;const f=Ht(It(ct("code")),t),n=y(pt((d,b)=>Bt(et(ct("code",b)),xt(b.code))(d),[]),G(k(",","delimiters",M(r))))(t),m=T(d=>{const b=ut(a)(d);return C(a(d))?b.label:`${a(d)}: ${b.label}`},t),c=e.jsx("ul",{"data-testid":"cell-flags-footnotes-content",className:p.content,children:F(T)((d,b)=>e.jsx("li",{children:L(Function,o)?e.jsx(o,{html:d}):d},b),m)});return e.jsx(te,{tabIndex:0,"aria-label":G(", ",m),"aria-hidden":!1,title:c,placement:"top",open:g,onOpen:()=>l(!0),onClose:()=>l(!1),children:e.jsxs("span",{"data-testid":"cell-flags-footnotes-icon",className:U(p.flags,{[p.header]:s}),children:[K(C(n))&&n,Ft(K(C(n)),f)&&e.jsx(Rt.Fragment,{children:k(",","delimiters",M(r))}),f&&e.jsxs(_.Fragment,{children:[" ",e.jsx(Jt,{className:p.svg,style:{fontSize:11}}),e.jsx(q,{style:ee,children:`* ${m}`})]})]})})};R.__docgenInfo={description:"",methods:[],displayName:"Flags",props:{flags:{defaultValue:{value:"[]",computed:!1},required:!1}}};const Re=Y(t=>({columnsTitle:{position:"sticky",zIndex:1,boxSizing:"border-box",backgroundColor:Pt(t)||t.palette.secondary.light,border:"none",borderBottom:`1px solid ${t.palette.grey[500]}`,color:t.palette.grey.A700,verticalAlign:"middle","&::after":{content:'""',position:"absolute",top:0,right:0,width:"1px",height:"100%",backgroundColor:t.palette.grey[500]}},fillerCell:{backgroundColor:t.palette.grey[200],border:"inherit",borderBottom:`1.5px solid ${t.palette.grey[500]}`,borderRight:`1.5px solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,verticalAlign:"middle",textAlign:"center",color:t.palette.grey.A700,zIndex:1},cellContent:{justifyContent:"flex-start",display:"flex"},label:{fontStyle:"italic",fontWeight:"bold"},highlight:t.mixins.table.cellHighlight})),Nt=F(T),At=Rt.forwardRef(({headerData:t,xLayoutData:s,activeCellIds:o,subHeadCellsWidth:a,SideIcon:p,HTMLRenderer:r,labelAccessor:i},g)=>{const l=Re(),f=X(),n=tt(f);return e.jsxs(mt,{children:[Nt((m,c)=>e.jsx(P,{component:"th",className:l.columnsTitle,id:`subHeader_${c}`,style:n?{right:a[c]}:{left:a[c]},ref:d=>g.current[c]=d,scope:"col",children:e.jsx("div",{className:l.cellContent,"aria-label":v(["dimension","id"],m),"data-testid":"row-dim",children:e.jsxs(q,{variant:"body1",tabIndex:0,className:l.label,children:[y(u("dimension"),i)(m),e.jsx(R,{labelAccessor:i,HTMLRenderer:r,flags:v(["dimension","flags"],m)})]})})},c),s),e.jsx(P,{className:l.fillerCell,style:n?{position:"sticky",right:H(a)}:{position:"sticky",left:H(a)}}),Nt((m,c)=>e.jsxs(P,{className:U(l.fillerCell,{[l.highlight]:u(c)(o)}),children:[!N(p)&&e.jsx(p,{sideProps:u("sideProps",m)}),e.jsx(R,{flags:u("flags",m),labelAccessor:i,HTMLRenderer:r})]},c),t)]})});At.__docgenInfo={description:"",methods:[],displayName:"SubHeader"};const Ie=Y(t=>({cell:{borderBottom:`1.5px solid ${t.palette.grey[500]}`,borderRight:`1.5px solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,verticalAlign:"baseline",color:t.palette.grey.A700,"&:hover":{boxShadow:`inset 0 0 0 2px ${t.palette.primary.main}`},whiteSpace:"pre-wrap",borderCollapse:"collapse"},active:{boxShadow:`inset 0 0 0 2px ${t.palette.primary.main}`},highlight:t.mixins.table.cellHighlight,oneCell:{border:`thin solid ${t.palette.grey[500]}`,display:"block"},link:{position:"inherit",userSelect:"inherit"},value:{overflow:"inherit"}})),Pe=xe(L(Number),It(zt(NaN))),He={},vt=({flags:t,value:s,intValue:o,headers:a,isOne:p,indexedDimValIds:r=He,cellHandler:i,activeCellHandler:g,isActive:l,isHighlight:f,sideProps:n,SideIcon:m,HTMLRenderer:c,labelAccessor:d,textAlign:b})=>{const h=Ie(),E=tt(X()),x=K(C(t)),$=L(Function,i)&&!C(r)?e.jsx(ae,{component:"button",variant:"body1",underline:"always",onClick:()=>i({indexedDimValIds:r}),className:h.link,children:L(Function,c)?e.jsx(c,{html:s}):s}):L(Function,c)?e.jsx(c,{html:s}):s;return e.jsxs(P,{align:Pe(o)?"right":b,component:p?"div":"td",className:U(h.cell,{[h.oneCell]:p,[h.active]:l,[h.highlight]:f}),headers:a,"aria-describedby":a,onClick:g,tabIndex:0,style:{textAlign:b||(E?"left":"right")},children:[!N(m)&&e.jsx(m,{sideProps:n,className:h.value}),x&&e.jsx(R,{HTMLRenderer:c,flags:t,labelAccessor:d}),$]})};vt.__docgenInfo={description:"",methods:[],displayName:"Cell",props:{indexedDimValIds:{defaultValue:{value:"{}",computed:!1},required:!1}}};const Be=Y(t=>({section:{borderCollapse:"collapse",backgroundColor:kt(t)||t.palette.secondary.dark,border:"inherit",borderBottom:`1px solid ${t.palette.grey[500]}`,borderRight:`1px solid ${t.palette.grey[500]}`,padding:t.spacing(0,1),color:t.palette.grey.A700,verticalAlign:"middle",whiteSpace:"nowrap"},label:{fontStyle:"italic",fontWeight:"bold",marginRight:t.spacing(.5)},containerSection:{display:"flex",alignItems:"center"},stickyHeaderSection:{position:"sticky"},flag:{height:"100%",backgroundColor:kt(t)||t.palette.secondary.dark,paddingLeft:12},leftLabelPosition:{left:t.spacing(1)},rightLabelPosition:{right:t.spacing(1)},sectionLabelsContainer:{padding:t.spacing(.5,0)}})),Fe=F(T),Ot=({headerData:t,section:s,currentSection:o,xLayoutDataLength:a,headerHeight:p,SideIcon:r,HTMLRenderer:i,labelAccessor:g})=>{const l=Be(),f=X(),n=tt(f);return bt(Vt([N,C]),v([0,"data"]))(s)?null:e.jsx(mt,{className:l.stickyHeaderSection,style:{left:0,top:p,zIndex:2},children:e.jsx(P,{component:"th",className:l.section,colSpan:y(B,qt,dt(a))(t),id:o,scope:"col",children:e.jsxs(ft,{container:!0,alignItems:"center",children:[e.jsx(ft,{item:!0,style:n?{position:"sticky",right:"8px"}:{position:"sticky",left:"8px"},children:e.jsx(q,{variant:"body1",component:"div",className:l.containerSection,children:e.jsxs("span",{className:U(l.stickyHeaderSection,l.leftLabelPosition,l.sectionLabelsContainer),children:[Fe((m,c)=>{const d=ut(g)(m);return e.jsxs(_.Fragment,{children:[c!==0&&e.jsx("br",{}),e.jsxs(q,{noWrap:!0,variant:"body1",component:"span",tabIndex:0,className:l.label,"data-testid":"section-dim","aria-label":v(["dimension","id"],m),children:[y(u("dimension"),g)(m),":"]}),e.jsx(q,{noWrap:!0,variant:"body1",component:"span",tabIndex:0,children:u("label",d)}),e.jsx(R,{HTMLRenderer:i,labelAccessor:g,flags:u("flags",d)})]},c)},v([0,"data"],s)),e.jsx("span",{children:e.jsx(R,{HTMLRenderer:i,flags:v([0,"flags"],s),labelAccessor:g})})]})})}),!N(r)&&e.jsx(ft,{item:!0,style:{marginLeft:40},children:e.jsx(r,{sideProps:v([0,"sideProps"],s)})})]})})},s.key)};Ot.__docgenInfo={description:"",methods:[],displayName:"SectionHeader"};const ze=Y(t=>({rowTitle:{backgroundColor:Pt(t)||t.palette.secondary.light,border:"inherit",borderBottom:`1.5px solid ${t.palette.grey[500]}`,borderRight:`1.5px solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,color:t.palette.grey.A700,verticalAlign:"top",align:"left",borderCollapse:"collapse",borderSpacing:0},timePeriodCells:{whiteSpace:"nowrap"},fillerCell:{minWidth:"30px",backgroundColor:t.palette.grey[200],verticalAlign:"top",border:"inherit",borderBottom:`1.5px solid ${t.palette.grey[500]}`,borderRight:`1.5px solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,position:"sticky",zIndex:1},cellContent:{display:"flex",alignItems:"center"},flagContainer:{display:"flex",justifyContent:"center",fontWeight:"bold"},topCell:{paddingTop:0},hierarchySpace:{marginBottom:"auto"},highlight:t.mixins.table.cellHighlight,stickyHeader:{position:"sticky",zIndex:1}})),Et=F(T),Wt=({headerData:t,cells:s,section:o,xLayoutDataLength:a,cellHandler:p,activeCellHandler:r,activeCellIds:i,headerHeight:g,sectionIndex:l,nbColumnsByRows:f,SideIcon:n,subHeadCellsWidth:m,HTMLRenderer:c,labelAccessor:d,cellValueAccessor:b,isNoWrap:h,textAlign:E})=>{const x=ze(),$=v([0,"key"],o),A=B(f),st=H(f),ot=X(),at=tt(ot);return e.jsxs(Ne,{children:[e.jsx(Ot,{headerData:t,section:o,currentSection:$,xLayoutDataLength:a,headerHeight:g,SideIcon:n,HTMLRenderer:c,labelAccessor:d}),Et((w,gt)=>{const j=`${w.key}_${l}_${gt}`,I=y(T(S=>`${w.key}_${l}_${S}`),G(" "))(W(lt,B(u("data",w))));return e.jsxs(mt,{children:[W(S=>{const z=v(["data",S],w),Z=N(z)?{label:""}:ut(d)(z),J=k([],"flags",Z),O=`${gt}_${j}_${S}`,it=y(k([],"parents"),Bt(N,et([])),B,W(()=>"· "))(Z);return e.jsx(P,{className:U(x.rowTitle,x.stickyHeader,{[x.highlight]:u(j)(i),[x.timePeriodCells]:L(Function,h)&&h(k({},"dimension",z))}),id:O,headers:`subHeader_${S} ${$}`,component:"th",style:at?{right:m[S]}:{left:m[S]},children:e.jsxs("div",{className:x.cellContent,children:[!C(it)&&e.jsx("div",{className:x.hierarchySpace,children:it}),e.jsxs(q,{variant:"body1",tabIndex:0,"aria-describedby":`subHeader_${S} ${$}`,children:[u("label",Z),e.jsx(R,{HTMLRenderer:c,labelAccessor:d,flags:J})]})]})},O)},a),e.jsx(P,{className:U(x.fillerCell,{[x.highlight]:u(j)(i)}),style:at?{right:H(m)}:{left:H(m)},children:e.jsxs("div",{className:x.flagContainer,children:[!N(n)&&e.jsx(n,{sideProps:u("sideProps",w)}),e.jsx(R,{HTMLRenderer:c,labelAccessor:d,flags:u("flags",w)})]})}),Et((S,z)=>{const Z=y(W(lt),T(Q=>{const Ut=_t(z,_t(st,D(Q,f)));return`${Math.floor(Ut||0)}_${Q}`}),G(" "))(A),J=`${j}/${z}`,O=y(k({},"intersectionCellId"),zt(J))(i),it=S.isEmpty||w.isEmpty?"":"..";return _.createElement(vt,{...y(V({value:null},[S.key,$,w.key,0]),nt(ge("value"),Q=>N(Q)?it:b(Q)))(s),key:J,headers:`${I} ${Z} ${$}`,cellHandler:p,HTMLRenderer:c,labelAccessor:d,SideIcon:n,isActive:O,textAlign:E,isHighlight:Ht(lt)([u(j)(i),u(z)(i)]),activeCellHandler:L(Function)(r)?()=>r({[j]:K(O),[z]:K(O),intersectionCellId:O?null:J}):null})},t)]},j)},D(1,o))]})},Ve=_.memo(Wt);Wt.__docgenInfo={description:"",methods:[],displayName:"SectionComponent"};const Le=Y(t=>({tableHeadCell:{color:t.palette.getContrastText(t.palette.primary.main),backgroundColor:t.palette.primary.main,border:"inherit",borderBottom:`thin solid ${t.palette.grey[500]}`,borderRight:`thin solid ${t.palette.grey[500]}`,padding:`${t.spacing(.5)} ${t.spacing(1)}`,verticalAlign:"top","&:focus ":{opacity:".85"},textAlign:"center"},cellContentCenter:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",position:"sticky"},cellContentRight:{display:"flex",justifyContent:"flex-end",fontStyle:"italic"},cellLabelHeader:{fontStyle:"inherit",fontWeight:"bold"},stickyLabel:{position:"sticky"}})),qe=F(W),wt=F(T),Ae=({headerData:t,valuesHeaderData:s,xLayoutDataLength:o,subHeadCellsWidth:a,HTMLRenderer:p,labelAccessor:r})=>{const i=Le(),g=X(),l=tt(g),f=`${H(a)}px + 30px + ${g.spacing(1)}`;return bt(Vt([N,C]),v([0,"data"]))(t)?null:qe(n=>{const m=v([0,"data",n,"dimension","flags"],t),c=`header_${n}`;return e.jsxs(mt,{children:[e.jsx(P,{component:"th",padding:"none",align:"center",className:i.tableHeadCell,colSpan:qt(o),id:c,tabIndex:0,scope:"row",title:y(v([-1,"data",n,"dimension"]),r)(t),style:l?{position:"sticky",zIndex:1,right:0}:{position:"sticky",zIndex:1,left:0},children:e.jsx("div",{className:i.cellContentRight,"aria-label":v([0,"data",n,"dimension","id"],t),"data-testid":"header-dim",role:"row",children:e.jsxs(q,{variant:"body1",className:i.cellLabelHeader,children:[y(v([-1,"data",n,"dimension"]),r)(t),e.jsx(R,{HTMLRenderer:p,flags:m,isHeader:!0,labelAccessor:r})]})})}),wt((d,b)=>{const h=d.isEmpty?{label:""}:ut(r)(d),E=k([],"flags",h),x=y(k([],"parents"),B,W(()=>"·"))(h);return e.jsx(P,{component:"th",className:U(i.tableHeadCell,{[i.topCell]:K(C(E))}),id:`${b}_${n}`,headers:`header_${n}`,colSpan:u("spanCount",d),tabIndex:0,title:u("label",h),"aria-label":u("label",h),"aria-describedby":c,scope:"col",children:e.jsxs("div",{className:i.cellContentCenter,children:[!C(x)&&wt(($,A)=>e.jsx("div",{children:$},A))(x),e.jsxs(q,{className:i.stickyLabel,style:{left:l?g.spacing(1):f,right:l?f:g.spacing(1)},variant:"body1",children:[u("label",h),e.jsx(R,{HTMLRenderer:p,flags:E,isHeader:!0,labelAccessor:r})]})]})},`${u("id",h)}-${b}`)},D(n,s))]},c)},bt(B,V([],[-1,"data"]))(t))},Oe=Y(t=>({table:{outline:"1px solid transparent",transform:"translateZ(0)",borderCollapse:"separate",borderLeft:`1px solid ${t.palette.grey[500]}`,borderTop:`1px solid ${t.palette.grey[500]}`,padding:"0px 0px"},stickyHeader:{position:"sticky",top:0,zIndex:2}})),We=F(T),De=t=>{const s=y(H,k([],"data"),B)(t);return y(ht("data"),pt((o,a)=>(F(ve)((p,r)=>{const i=D(r,a)||{},g=ct("values",i)?y(u("values"),ht("id"),G(","))(i):V(`missing${r}`,["value","id"],i),l=r>0?y(D(r-1),H)(o):null,f=N(l)?g:`${l.key}-${g}`,n=y(D(r),H)(o);u("key",n)===f&&r!==s-1?o=nt(yt(r),nt(yt(-1),Qt({spanCount:dt(1)})))(o):o=nt(yt(r),xt({...he(["value","values"],i),key:f,spanCount:1,isEmpty:C(i)}))(o)})(o),o),W(et([]),s)))(t)},Tt=F(pt)((t,s,o)=>xt(dt(t[o],k(0,"offsetWidth",s)),t),[0]),Ue=[],Ye=[],Dt=({cells:t,headerData:s=Ue,sectionsData:o=Ye,cellHandler:a,activeCellIds:p,activeCellHandler:r,SideIcon:i,testId:g="vis-table",HTMLRenderer:l,cellValueAccessor:f=lt,labelAccessor:n=Ee,textAlign:m,isNoWrap:c=et(!1)})=>{const d=Oe(),[b,h]=_.useState(0),[E,x]=_.useState([0]),$=_.useRef(null),A=_.useRef([]);_.useEffect(()=>{h(V(0,["current","clientHeight"],$)),x(Tt(u("current",A)))},[t,s,o]),_.useEffect(()=>{let j=null;const I=()=>{clearTimeout(j),j=setTimeout(()=>{h(V(0,["current","clientHeight"],$)),x(Tt(u("current",A)))},150)};return window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]);const st=V([],[0,1,-1,"data"],o),ot=B(st),{valuesHeaderData:at,nbColumnsByRows:w}=_.useMemo(()=>{const j=De(s),I=T(B)(j);return{valuesHeaderData:j,nbColumnsByRows:I}},[s]);return Xt(["","","",0],t)?e.jsx(vt,{HTMLRenderer:l,labelAccessor:n,...V({},["","","",0],t),cellHandler:a,isOne:!0,textAlign:m}):e.jsxs(oe,{className:d.table,"aria-label":"table",size:"small","data-testid":g,children:[e.jsxs("thead",{ref:$,className:d.stickyHeader,children:[e.jsx(Ae,{headerData:s,valuesHeaderData:at,xLayoutDataLength:ot,subHeadCellsWidth:E,HTMLRenderer:l,labelAccessor:n}),e.jsx(At,{headerData:s,xLayoutData:st,activeCellIds:p,SideIcon:i,ref:A,subHeadCellsWidth:E,HTMLRenderer:l,labelAccessor:n})]}),We((j,I)=>e.jsx(Ve,{sectionIndex:I,headerHeight:b,nbColumnsByRows:w,headerData:s,cells:t,section:j,xLayoutDataLength:ot,cellHandler:a,activeCellIds:p,activeCellHandler:r,SideIcon:i,subHeadCellsWidth:E,HTMLRenderer:l,cellValueAccessor:f,labelAccessor:n,isNoWrap:c,textAlign:m},`section-${I}`),o)]})};Dt.__docgenInfo={description:"",methods:[],displayName:"TableHtml5",props:{headerData:{defaultValue:{value:"[]",computed:!1},required:!1},sectionsData:{defaultValue:{value:"[]",computed:!1},required:!1},testId:{defaultValue:{value:"'vis-table'",computed:!1},required:!1},cellValueAccessor:{defaultValue:{value:"R.identity",computed:!0},required:!1},labelAccessor:{defaultValue:{value:`(item) => {
|
|
2
2
|
if (R.is(Object, item)) {
|
|
3
3
|
return R.prop('name', item);
|
|
4
4
|
}
|