@sis-cc/dotstatsuite-visions 15.18.0 → 15.19.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.
Files changed (166) hide show
  1. package/dist/DynamicDrawer/DynamicDrawer.js +1 -1
  2. package/dist/HierarchicalFilter/HierarchicalFilter.js +1 -1
  3. package/dist/assets/Add-wiHDJdsy.js +1 -0
  4. package/dist/assets/{Alert-CI3CnEU9.js → Alert-miMrTSp5.js} +1 -1
  5. package/dist/assets/{Alert.stories-B6BsLv_r.js → Alert.stories-BBUlpmVd.js} +1 -1
  6. package/dist/assets/{ApiQueries.stories-Dr2kT9if.js → ApiQueries.stories-BGMVLHi_.js} +1 -1
  7. package/dist/assets/ArrowForward-CGmWVEHF.js +1 -0
  8. package/dist/assets/{Asterisk-3Rhwi0WA.js → Asterisk-DQ0dTn3K.js} +1 -1
  9. package/dist/assets/{AuthDialog.stories-CvF2sb9q.js → AuthDialog.stories-De7Mhvkl.js} +1 -1
  10. package/dist/assets/{Breadcrumbs.stories-BwkZP8U5.js → Breadcrumbs.stories-BYCCVQXP.js} +1 -1
  11. package/dist/assets/{Button-BiHQ2vOD.js → Button-COGZcTLs.js} +1 -1
  12. package/dist/assets/{Button.stories-CRade2Lu.js → Button.stories-Da078GyG.js} +1 -1
  13. package/dist/assets/{CardContent-DCSLw0IR.js → CardContent-vwz3yzUb.js} +1 -1
  14. package/dist/assets/{ChartsConfig.stories-CCnkjQuh.js → ChartsConfig.stories-CG_18cYy.js} +1 -1
  15. package/dist/assets/{Checkbox-BexP1orf.js → Checkbox-DSI5o7Q8.js} +1 -1
  16. package/dist/assets/{Chips.stories-DgAlsI9C.js → Chips.stories-CvctooCd.js} +1 -1
  17. package/dist/assets/{CircularProgress-B4-i86z_.js → CircularProgress-FzxK-erc.js} +1 -1
  18. package/dist/assets/Close-DLq3hrO9.js +1 -0
  19. package/dist/assets/{Collapse-DXtMjzVx.js → Collapse-Dvcy7gTP.js} +1 -1
  20. package/dist/assets/{CollapseButtons.stories-C3KyVYXt.js → CollapseButtons.stories-CvzuiaIW.js} +1 -1
  21. package/dist/assets/{CollapsibleTree.stories-C-Th6prK.js → CollapsibleTree.stories-DL9tGTWR.js} +1 -1
  22. package/dist/assets/{Color-6AOWCN3U-ihLmUPnX.js → Color-6AOWCN3U-B_OWL8t9.js} +1 -1
  23. package/dist/assets/{Contact.stories-I2QClu_K.js → Contact.stories-BY3pevvK.js} +1 -1
  24. package/dist/assets/{Container-8Eg7Ev_d.js → Container-Db1iCsul.js} +1 -1
  25. package/dist/assets/{Cross-snf9VeuL.js → Cross-5fO48c27.js} +1 -1
  26. package/dist/assets/{CustomChip-CLYzvFOP.js → CustomChip-C4JLTHAI.js} +1 -1
  27. package/dist/assets/{DataEdit.stories-Du66K6ED.js → DataEdit.stories-D_9f7vs6.js} +1 -1
  28. package/dist/assets/{DataFooter.stories-C_keeuRM.js → DataFooter.stories-Cis2YmRj.js} +1 -1
  29. package/dist/assets/{DataHeader.stories-BIY7VUtj.js → DataHeader.stories-CRQDTAge.js} +1 -1
  30. package/dist/assets/{Dataflow.stories-jz4WO4lz.js → Dataflow.stories-DB4ZxTEj.js} +1 -1
  31. package/dist/assets/{DeleteAllChip.stories-7_PR3OHU.js → DeleteAllChip.stories-QstomGuF.js} +1 -1
  32. package/dist/assets/{Dialog-Dwe2Q5qM.js → Dialog-BNfLSny6.js} +1 -1
  33. package/dist/assets/{DocsRenderer-JROSPFPF-BG3i7ScM.js → DocsRenderer-JROSPFPF-DyWus0Gl.js} +5 -5
  34. package/dist/assets/Done-CFa-MZHI.js +1 -0
  35. package/dist/assets/Download-bPnXUqOB.js +1 -0
  36. package/dist/assets/DynamicDrawer.stories-DlkBk299.js +89 -0
  37. package/dist/assets/{EmojiObjects-CAcWTfhy.js → EmojiObjects-DWof9INW.js} +1 -1
  38. package/dist/assets/ExpandLess-Bh8u_KpI.js +1 -0
  39. package/dist/assets/ExpandMore-Dz8qmfTh.js +1 -0
  40. package/dist/assets/{ExpansionPanel-DdJppdta.js → ExpansionPanel-hFMMWtqc.js} +1 -1
  41. package/dist/assets/{ExpansionPanel.stories-DzmPCEs9.js → ExpansionPanel.stories-DP6I3qvg.js} +1 -1
  42. package/dist/assets/{FormControlLabel-BZCIDGya.js → FormControlLabel-BIkDdqbS.js} +1 -1
  43. package/dist/assets/{Grid-CJO61dRG.js → Grid-2ZIYp-Sv.js} +1 -1
  44. package/dist/assets/{GroupedChips.stories-CPGxUc3n.js → GroupedChips.stories-TvlgZRbz.js} +1 -1
  45. package/dist/assets/{Grow-CsG6GW7T.js → Grow-P72gltHT.js} +1 -1
  46. package/dist/assets/HierarchicalFilter.stories-DCDQm-hR.js +33 -0
  47. package/dist/assets/{IconButton-BmV2jvz-.js → IconButton-dIWC1_r5.js} +1 -1
  48. package/dist/assets/{Icons.stories-D-LZai1f.js → Icons.stories-_GcMRtg3.js} +1 -1
  49. package/dist/assets/Info-BklpzkJb.js +1 -0
  50. package/dist/assets/{InfoOutlined-B-Y1AVYd.js → InfoOutlined-2rb6xC1a.js} +1 -1
  51. package/dist/assets/{Input-BsOi0WUF.js → Input-BFeb6cis.js} +1 -1
  52. package/dist/assets/{Input.stories-C5Xdkf6f.js → Input.stories-D4yOx3DF.js} +1 -1
  53. package/dist/assets/{InputAdornment-CvUVeXUB.js → InputAdornment-j9cg_rJT.js} +1 -1
  54. package/dist/assets/{InputNumber.stories-B-Y7AB91.js → InputNumber.stories-CCCsmL00.js} +1 -1
  55. package/dist/assets/{KeyboardArrowUp-CE7zL2ol.js → KeyboardArrowUp-B4FHd3To.js} +1 -1
  56. package/dist/assets/{LabelDivider.stories-BDAxZZtl.js → LabelDivider.stories-CQxGvg5q.js} +1 -1
  57. package/dist/assets/Lens-BhU4XTL6.js +1 -0
  58. package/dist/assets/{Link-IITWMAlI.js → Link-J7VB0nAH.js} +1 -1
  59. package/dist/assets/{List-COrkKCMC.js → List-BoNQy3mo.js} +1 -1
  60. package/dist/assets/ListContext-6aOWlypg.js +1 -0
  61. package/dist/assets/{Loading.stories-Cui02_P7.js → Loading.stories-D2KQHRxm.js} +1 -1
  62. package/dist/assets/{Logo.stories-BwzFy29g.js → Logo.stories-BtGQVH06.js} +1 -1
  63. package/dist/assets/{MenuItem-rwQC5Jz1.js → MenuItem-x_XUpqSf.js} +1 -1
  64. package/dist/assets/{Mode-CeZLN76c.js → Mode-un-94rgN.js} +1 -1
  65. package/dist/assets/{Mode.stories-CigsMCpP.js → Mode.stories-DfPZHIsG.js} +1 -1
  66. package/dist/assets/{NoData-aIoNNHqZ.js → NoData-YYTVFpTZ.js} +1 -1
  67. package/dist/assets/{NoData.stories-BPWnLnXv.js → NoData.stories-69OrHHuG.js} +1 -1
  68. package/dist/assets/{Pagination.stories-BJRt-Ju-.js → Pagination.stories-CAUJW5c9.js} +1 -1
  69. package/dist/assets/{Paper-CGj07eAk.js → Paper-DMevUzQW.js} +1 -1
  70. package/dist/assets/{PeriodPicker.stories-ldoONt31.js → PeriodPicker.stories-C9aL7c0I.js} +1 -1
  71. package/dist/assets/{Popover-NnzkJg8l.js → Popover-eG2KpABL.js} +1 -1
  72. package/dist/assets/{RadioGroup-DgTYg9us.js → RadioGroup-DuYuyndj.js} +1 -1
  73. package/dist/assets/{Search-DqbF4LDH.js → Search-CpKtzHBZ.js} +1 -1
  74. package/dist/assets/{Select-BSveSpZX.js → Select-Br-nLdNe.js} +1 -1
  75. package/dist/assets/{Select-DvF6k9X2.js → Select-CBrzUr0M.js} +1 -1
  76. package/dist/assets/{Select.stories-DF6qQS9X.js → Select.stories-cJdH4-Pv.js} +1 -1
  77. package/dist/assets/{Share-CcnUidCo.js → Share-DlYcJV58.js} +1 -1
  78. package/dist/assets/{Share.stories-BGS677TD.js → Share.stories-BxfXZogR.js} +1 -1
  79. package/dist/assets/{ShortUrls.stories-DHqPnoy5.js → ShortUrls.stories-B3reUlxm.js} +1 -1
  80. package/dist/assets/{SisccFooter.stories-DzZKFhKX.js → SisccFooter.stories-B0YSCwel.js} +1 -1
  81. package/dist/assets/{Spotlight-BBoE4S1w.js → Spotlight-CH2IsWsh.js} +1 -1
  82. package/dist/assets/{Spotlight.stories-XCvsdTv0.js → Spotlight.stories-BWod_DYs.js} +1 -1
  83. package/dist/assets/{SwitchBase-Dey9Iw42.js → SwitchBase-C0nrrHyx.js} +1 -1
  84. package/dist/assets/{TableFooter.stories-Cm2T-AL2.js → TableFooter.stories-C3gcCpsH.js} +1 -1
  85. package/dist/assets/{TableHeader.stories-D2AP5gMN.js → TableHeader.stories-CY3m5Osh.js} +1 -1
  86. package/dist/assets/{TableHtml5.stories-Dfqe3xMY.js → TableHtml5.stories-BaMRCFvn.js} +1 -1
  87. package/dist/assets/{TableLayout.stories-Ng5lv-TV.js → TableLayout.stories-Bgzy9A_4.js} +1 -1
  88. package/dist/assets/{TablePreview.stories-C0obluLj.js → TablePreview.stories-BFHHw-fX.js} +1 -1
  89. package/dist/assets/{TableRow-DyLjuwze.js → TableRow-DsjjrQV1.js} +1 -1
  90. package/dist/assets/{Tag-CQQ0Wz8k.js → Tag-CJd1zdwY.js} +1 -1
  91. package/dist/assets/{Tag.stories-B1HL_Qnh.js → Tag.stories-DcTXbmKD.js} +1 -1
  92. package/dist/assets/{TextField-DTKLdgYP.js → TextField-BO2DCZQ8.js} +1 -1
  93. package/dist/assets/{TextareaAutosize-BnqrzVWc.js → TextareaAutosize-DACJtUo4.js} +1 -1
  94. package/dist/assets/{ToggleButton-CxuHZPwa.js → ToggleButton-CUv1W7nS.js} +1 -1
  95. package/dist/assets/{ToggleButton.stories-TwZJlXVo.js → ToggleButton.stories-BYXbuhmm.js} +1 -1
  96. package/dist/assets/{Tooltip-iI471JT9.js → Tooltip-BvItailS.js} +1 -1
  97. package/dist/assets/{Tooltip-CzBJj1M2.js → Tooltip-CQVls4ai.js} +1 -1
  98. package/dist/assets/{Tooltip.stories-Dhm73XQH.js → Tooltip.stories-DFvpl9Fy.js} +1 -1
  99. package/dist/assets/{Typography-BSx6QP1S.js → Typography-Dk5KhhNl.js} +1 -1
  100. package/dist/assets/{UseCases-CyXRdmDK.js → UseCases-CTSiSN6M.js} +2 -2
  101. package/dist/assets/{UserRightForm.stories-Bg6VF0-_.js → UserRightForm.stories-BVbFAN_G.js} +1 -1
  102. package/dist/assets/{VerticalButton-B93ipWX6.js → VerticalButton-CVRRIULF.js} +1 -1
  103. package/dist/assets/{VerticalButton.stories-DgwTfo-c.js → VerticalButton.stories-a_pEP6HJ.js} +1 -1
  104. package/dist/assets/VirtualizedTree.stories-BVVQKIRy.js +42 -0
  105. package/dist/assets/{Warning-mu6JqPAR.js → Warning-DMKuffMU.js} +1 -1
  106. package/dist/assets/{WithTooltip-7X4HQR7L-CxqNrBx6.js → WithTooltip-7X4HQR7L-b6PFfCDG.js} +1 -1
  107. package/dist/assets/areas-CtGoBI4g.js +1 -0
  108. package/dist/assets/{axe-C1TbcgjJ.js → axe-5k0Z-jFW.js} +1 -1
  109. package/dist/assets/{chartProperties-D9rhHNyS.js → chartProperties-UkJqkNEP.js} +1 -1
  110. package/dist/assets/{client-D6VCKNKn.js → client-pejbekMj.js} +1 -1
  111. package/dist/assets/{colorManipulator-1p2EF9SY.js → colorManipulator-B6qIaQZn.js} +1 -1
  112. package/dist/assets/{formControlState-Dg0qiabM.js → formControlState-DDW9809B.js} +1 -1
  113. package/dist/assets/formatter-L2YTDE3Q-hbhq35JL.js +1 -0
  114. package/dist/assets/{getThemeProps-C8xS0M6W.js → getThemeProps-E7mc6QWJ.js} +1 -1
  115. package/dist/assets/{iframe-a_pZB-t6.js → iframe-DtQmhjUk.js} +8 -8
  116. package/dist/assets/{index-MWRVRKRi.js → index-CGi-u7D6.js} +1 -1
  117. package/dist/assets/{index-DBVtfPKZ.js → index-CMeR2ITG.js} +1 -1
  118. package/dist/assets/index-CTS8WOI3.js +1 -0
  119. package/dist/assets/{index-CDcCtVv4.js → index-Dc35p1yd.js} +1 -1
  120. package/dist/assets/{index-BnO-aI7j.js → index-Ds58Hoo-.js} +1 -1
  121. package/dist/assets/{index-BCSOKU0M.js → index-DwuMYrHP.js} +1 -1
  122. package/dist/assets/{index-DS-XPpOX.js → index-KWYsdMX_.js} +1 -1
  123. package/dist/assets/{isMuiElement-C2XWHu21.js → isMuiElement-DFGV4A4P.js} +1 -1
  124. package/dist/assets/{length-DIGTZ5xz.js → length-IXM-4ocd.js} +1 -1
  125. package/dist/assets/{listItemButtonClasses-DAjTv-uW.js → listItemButtonClasses-BZVmq7Av.js} +1 -1
  126. package/dist/assets/{listItemTextClasses-CZbRJWVH.js → listItemTextClasses-Bbcor7qj.js} +1 -1
  127. package/dist/assets/{makeStyles-DjbLSwJE.js → makeStyles-DbQ_Cm1S.js} +1 -1
  128. package/dist/assets/{react-18-VFwgwc4r.js → react-18-WFcz64sA.js} +1 -1
  129. package/dist/assets/{syntaxhighlighter-YFXUGROL-DBGSNc0s.js → syntaxhighlighter-YFXUGROL-BopsPyK-.js} +1 -1
  130. package/dist/assets/{table-preview-props-DwPvcwTv.js → table-preview-props-Dlg-Mok1.js} +1 -1
  131. package/dist/assets/{useControlled-CwodZjTa.js → useControlled-CDPfU0tS.js} +1 -1
  132. package/dist/assets/{useKeybordEscapeHandler-CrJ6yBNo.js → useKeybordEscapeHandler-XhQAPpg8.js} +1 -1
  133. package/dist/assets/{useMediaQuery-Cp6nHdWo.js → useMediaQuery-DoevwfLJ.js} +1 -1
  134. package/dist/assets/{useSlotProps-pWzUupkJ.js → useSlotProps-HyTzBVWz.js} +1 -1
  135. package/dist/assets/useTheme-oCpgGYKx.js +1 -0
  136. package/dist/assets/{useThemeProps-Bg_Es16W.js → useThemeProps-oiZwQvVu.js} +1 -1
  137. package/dist/assets/{utils-D2zA0JET.js → utils-BmJneOno.js} +1 -1
  138. package/dist/assets/{utils-Ci5srLYt.js → utils-D1ha-Di3.js} +1 -1
  139. package/dist/assets/{utils-BRr-vONA.js → utils-DfDfYiK9.js} +1 -1
  140. package/dist/assets/{with-input-a92DkuNY.js → with-input-Dyij0nD8.js} +1 -1
  141. package/dist/assets/{withSpotlight-nUUuH7vR.js → withSpotlight-DOU2lvIA.js} +1 -1
  142. package/dist/chunks/{withSpotlight-CA0xvW0v.js → withSpotlight-BqJHRQhK.js} +55 -52
  143. package/dist/chunks/withSpotlight-BqJHRQhK.js.map +1 -0
  144. package/dist/iframe.html +1 -1
  145. package/dist/manifests/components.html +1 -1
  146. package/dist/manifests/components.json +1 -1
  147. package/dist/project.json +1 -1
  148. package/package.json +2 -3
  149. package/dist/assets/Add-BOavXQGJ.js +0 -1
  150. package/dist/assets/ArrowForward-QrCHpLlJ.js +0 -1
  151. package/dist/assets/Close-BjZqVfS-.js +0 -1
  152. package/dist/assets/Done-DPdrw-eb.js +0 -1
  153. package/dist/assets/Download-BeoD-Yy0.js +0 -1
  154. package/dist/assets/DynamicDrawer.stories-Dd_pvgS6.js +0 -89
  155. package/dist/assets/ExpandLess-CumXrG4o.js +0 -1
  156. package/dist/assets/ExpandMore-DIU_T7SL.js +0 -1
  157. package/dist/assets/HierarchicalFilter.stories-DDyHytFy.js +0 -33
  158. package/dist/assets/Info-BU4oEAwq.js +0 -1
  159. package/dist/assets/Lens-7v1e07y0.js +0 -1
  160. package/dist/assets/ListContext-xq2a6xmy.js +0 -1
  161. package/dist/assets/VirtualizedTree.stories-DexQLugo.js +0 -42
  162. package/dist/assets/areas-BCCSI2R2.js +0 -9
  163. package/dist/assets/formatter-L2YTDE3Q-DcGXocwJ.js +0 -1
  164. package/dist/assets/index-DadQTpM3.js +0 -1
  165. package/dist/assets/useTheme-pGXs_ROT.js +0 -1
  166. package/dist/chunks/withSpotlight-CA0xvW0v.js.map +0 -1
@@ -1 +1 @@
1
- import{r as i,j as L,o as ae,p as d,n as xe,e as je,s as ke,Q as Ue,f as Ke}from"./iframe-a_pZB-t6.js";import{u as me,a as Ee,g as ye,b as le,d as Pe,s as ce,i as Fe}from"./UseCases-CyXRdmDK.js";import{c as Be,u as Ge,f as Ve,F as qe}from"./formControlState-Dg0qiabM.js";import{o as fe,T as Ye,d as Xe}from"./TextareaAutosize-BnqrzVWc.js";import{e as Qe,u as ve,i as Ce}from"./useSlotProps-pWzUupkJ.js";import{g as _e,P as Je,G as Ze}from"./Grow-CsG6GW7T.js";import{o as Z}from"./ownerDocument-DW-IO8s5.js";import{u as et}from"./useTheme-pGXs_ROT.js";import{T as tt,r as ot,g as Oe}from"./utils-Ci5srLYt.js";import{P as nt}from"./Paper-CGj07eAk.js";function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function st(e){const t=Z(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ze(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function it(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||n}function Le(e,t,o,n,s){const r=[t,o,...n];[].forEach.call(e.children,a=>{const u=r.indexOf(a)===-1,c=!it(a);u&&c&&pe(a,s)})}function Se(e,t){let o=-1;return e.some((n,s)=>t(n)?(o=s,!0):!1),o}function at(e,t){const o=[],n=e.container;if(!t.disableScrollLock){if(st(n)){const a=rt(Z(n));o.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ze(n)+a}px`;const u=Z(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{o.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${ze(c)+a}px`})}let r;if(n.parentNode instanceof DocumentFragment)r=Z(n).body;else{const a=n.parentElement,u=fe(n);r=a?.nodeName==="HTML"&&u.getComputedStyle(a).overflowY==="scroll"?a:n}o.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{o.forEach(({value:r,el:a,property:u})=>{r?a.style.setProperty(u,r):a.style.removeProperty(u)})}}function lt(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class ct{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,o){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&pe(t.modalRef,!1);const s=lt(o);Le(o,t.mount,t.modalRef,s,!0);const r=Se(this.containers,a=>a.container===o);return r!==-1?(this.containers[r].modals.push(t),n):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:s}),n)}mount(t,o){const n=Se(this.containers,r=>r.modals.indexOf(t)!==-1),s=this.containers[n];s.restore||(s.restore=at(s,o))}remove(t,o=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const s=Se(this.containers,a=>a.modals.indexOf(t)!==-1),r=this.containers[s];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&pe(t.modalRef,o),Le(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=r.modals[r.modals.length-1];a.modalRef&&pe(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const dt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ut(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function pt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function ft(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||pt(e))}function mt(e){const t=[],o=[];return Array.from(e.querySelectorAll(dt)).forEach((n,s)=>{const r=ut(n);r===-1||!ft(n)||(r===0?t.push(n):o.push({documentOrder:s,tabIndex:r,node:n}))}),o.sort((n,s)=>n.tabIndex===s.tabIndex?n.documentOrder-s.documentOrder:n.tabIndex-s.tabIndex).map(n=>n.node).concat(t)}function ht(){return!0}function bt(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:s=!1,getTabbable:r=mt,isEnabled:a=ht,open:u}=e,c=i.useRef(!1),h=i.useRef(null),v=i.useRef(null),b=i.useRef(null),S=i.useRef(null),C=i.useRef(!1),p=i.useRef(null),D=me(_e(t),p),x=i.useRef(null);i.useEffect(()=>{!u||!p.current||(C.current=!o)},[o,u]),i.useEffect(()=>{if(!u||!p.current)return;const l=Z(p.current);return p.current.contains(l.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),C.current&&p.current.focus()),()=>{s||(b.current&&b.current.focus&&(c.current=!0,b.current.focus()),b.current=null)}},[u]),i.useEffect(()=>{if(!u||!p.current)return;const l=Z(p.current),R=A=>{x.current=A,!(n||!a()||A.key!=="Tab")&&l.activeElement===p.current&&A.shiftKey&&(c.current=!0,v.current&&v.current.focus())},P=()=>{const A=p.current;if(A===null)return;if(!l.hasFocus()||!a()||c.current){c.current=!1;return}if(A.contains(l.activeElement)||n&&l.activeElement!==h.current&&l.activeElement!==v.current)return;if(l.activeElement!==S.current)S.current=null;else if(S.current!==null)return;if(!C.current)return;let I=[];if((l.activeElement===h.current||l.activeElement===v.current)&&(I=r(p.current)),I.length>0){var $,B;const K=!!(($=x.current)!=null&&$.shiftKey&&((B=x.current)==null?void 0:B.key)==="Tab"),O=I[0],W=I[I.length-1];typeof O!="string"&&typeof W!="string"&&(K?W.focus():O.focus())}else A.focus()};l.addEventListener("focusin",P),l.addEventListener("keydown",R,!0);const M=setInterval(()=>{l.activeElement&&l.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(M),l.removeEventListener("focusin",P),l.removeEventListener("keydown",R,!0)}},[o,n,s,a,u,r]);const T=l=>{b.current===null&&(b.current=l.relatedTarget),C.current=!0,S.current=l.target;const R=t.props.onFocus;R&&R(l)},y=l=>{b.current===null&&(b.current=l.relatedTarget),C.current=!0};return L.jsxs(i.Fragment,{children:[L.jsx("div",{tabIndex:u?0:-1,onFocus:y,ref:h,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:D,onFocus:T}),L.jsx("div",{tabIndex:u?0:-1,onFocus:y,ref:v,"data-testid":"sentinelEnd"})]})}const gt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],vt={entering:{opacity:1},entered:{opacity:1}},xt=i.forwardRef(function(t,o){const n=et(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:a=!0,children:u,easing:c,in:h,onEnter:v,onEntered:b,onEntering:S,onExit:C,onExited:p,onExiting:D,style:x,timeout:T=s,TransitionComponent:y=tt}=t,l=ae(t,gt),R=i.useRef(null),P=me(R,_e(u),o),M=E=>F=>{if(E){const m=R.current;F===void 0?E(m):E(m,F)}},A=M(S),I=M((E,F)=>{ot(E);const m=Oe({style:x,timeout:T,easing:c},{mode:"enter"});E.style.webkitTransition=n.transitions.create("opacity",m),E.style.transition=n.transitions.create("opacity",m),v&&v(E,F)}),$=M(b),B=M(D),K=M(E=>{const F=Oe({style:x,timeout:T,easing:c},{mode:"exit"});E.style.webkitTransition=n.transitions.create("opacity",F),E.style.transition=n.transitions.create("opacity",F),C&&C(E)}),O=M(p),W=E=>{r&&r(R.current,E)};return L.jsx(y,d({appear:a,in:h,nodeRef:R,onEnter:I,onEntered:$,onEntering:A,onExit:K,onExited:O,onExiting:B,addEndListener:W,timeout:T},l,{children:(E,F)=>i.cloneElement(u,d({style:d({opacity:0,visibility:E==="exited"&&!h?"hidden":void 0},vt[E],x,u.props.style),ref:P},F))}))});function Et(e){return Ee("MuiBackdrop",e)}ye("MuiBackdrop",["root","invisible"]);const yt=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Pt=e=>{const{classes:t,invisible:o}=e;return Pe({root:["root",o&&"invisible"]},Et,t)},Rt=ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})(({ownerState:e})=>d({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),St=i.forwardRef(function(t,o){var n,s,r;const a=xe({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:h="div",components:v={},componentsProps:b={},invisible:S=!1,open:C,slotProps:p={},slots:D={},TransitionComponent:x=xt,transitionDuration:T}=a,y=ae(a,yt),l=d({},a,{component:h,invisible:S}),R=Pt(l),P=(n=p.root)!=null?n:b.root;return L.jsx(x,d({in:C,timeout:T},y,{children:L.jsx(Rt,d({"aria-hidden":!0},P,{as:(s=(r=D.root)!=null?r:v.Root)!=null?s:h,className:le(R.root,c,P?.className),ownerState:d({},l,P?.ownerState),classes:R,ref:o,children:u}))}))});function Tt(e){return typeof e=="function"?e():e}function kt(e){return e?e.props.hasOwnProperty("in"):!1}const Ct=new ct;function wt(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,manager:s=Ct,closeAfterTransition:r=!1,onTransitionEnter:a,onTransitionExited:u,children:c,onClose:h,open:v,rootRef:b}=e,S=i.useRef({}),C=i.useRef(null),p=i.useRef(null),D=me(p,b),[x,T]=i.useState(!v),y=kt(c);let l=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(l=!1);const R=()=>Z(C.current),P=()=>(S.current.modalRef=p.current,S.current.mount=C.current,S.current),M=()=>{s.mount(P(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},A=Fe(()=>{const m=Tt(t)||R().body;s.add(P(),m),p.current&&M()}),I=i.useCallback(()=>s.isTopModal(P()),[s]),$=Fe(m=>{C.current=m,m&&(v&&I()?M():p.current&&pe(p.current,l))}),B=i.useCallback(()=>{s.remove(P(),l)},[l,s]);i.useEffect(()=>()=>{B()},[B]),i.useEffect(()=>{v?A():(!y||!r)&&B()},[v,B,y,r,A]);const K=m=>g=>{var H;(H=m.onKeyDown)==null||H.call(m,g),!(g.key!=="Escape"||g.which===229||!I())&&(o||(g.stopPropagation(),h&&h(g,"escapeKeyDown")))},O=m=>g=>{var H;(H=m.onClick)==null||H.call(m,g),g.target===g.currentTarget&&h&&h(g,"backdropClick")};return{getRootProps:(m={})=>{const g=Qe(e);delete g.onTransitionEnter,delete g.onTransitionExited;const H=d({},g,m);return d({role:"presentation"},H,{onKeyDown:K(H),ref:D})},getBackdropProps:(m={})=>{const g=m;return d({"aria-hidden":!0},g,{onClick:O(g),open:v})},getTransitionProps:()=>{const m=()=>{T(!1),a&&a()},g=()=>{T(!0),u&&u(),r&&B()};return{onEnter:Be(m,c?.props.onEnter),onExited:Be(g,c?.props.onExited)}},rootRef:D,portalRef:$,isTopModal:I,exited:x,hasTransition:y}}function It(e){return Ee("MuiModal",e)}ye("MuiModal",["root","hidden","backdrop"]);const Mt=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],At=e=>{const{open:t,exited:o,classes:n}=e;return Pe({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},It,n)},Nt=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(({theme:e,ownerState:t})=>d({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Ft=ce(St,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Bt=i.forwardRef(function(t,o){var n,s,r,a,u,c;const h=xe({name:"MuiModal",props:t}),{BackdropComponent:v=Ft,BackdropProps:b,className:S,closeAfterTransition:C=!1,children:p,container:D,component:x,components:T={},componentsProps:y={},disableAutoFocus:l=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:P=!1,disablePortal:M=!1,disableRestoreFocus:A=!1,disableScrollLock:I=!1,hideBackdrop:$=!1,keepMounted:B=!1,onBackdropClick:K,open:O,slotProps:W,slots:E}=h,F=ae(h,Mt),m=d({},h,{closeAfterTransition:C,disableAutoFocus:l,disableEnforceFocus:R,disableEscapeKeyDown:P,disablePortal:M,disableRestoreFocus:A,disableScrollLock:I,hideBackdrop:$,keepMounted:B}),{getRootProps:g,getBackdropProps:H,getTransitionProps:ne,portalRef:Q,isTopModal:re,exited:j,hasTransition:de}=wt(d({},m,{rootRef:o})),q=d({},m,{exited:j}),G=At(q),V={};if(p.props.tabIndex===void 0&&(V.tabIndex="-1"),de){const{onEnter:f,onExited:k}=ne();V.onEnter=f,V.onExited=k}const ee=(n=(s=E?.root)!=null?s:T.Root)!=null?n:Nt,se=(r=(a=E?.backdrop)!=null?a:T.Backdrop)!=null?r:v,J=(u=W?.root)!=null?u:y.root,X=(c=W?.backdrop)!=null?c:y.backdrop,w=ve({elementType:ee,externalSlotProps:J,externalForwardedProps:F,getSlotProps:g,additionalProps:{ref:o,as:x},ownerState:q,className:le(S,J?.className,G?.root,!q.open&&q.exited&&G?.hidden)}),_=ve({elementType:se,externalSlotProps:X,additionalProps:b,getSlotProps:f=>H(d({},f,{onClick:k=>{K&&K(k),f!=null&&f.onClick&&f.onClick(k)}})),className:le(X?.className,b?.className,G?.backdrop),ownerState:q});return!B&&!O&&(!de||j)?null:L.jsx(Je,{ref:Q,container:D,disablePortal:M,children:L.jsxs(ee,d({},w,{children:[!$&&v?L.jsx(se,d({},_)):null,L.jsx(bt,{disableEnforceFocus:R,disableAutoFocus:l,disableRestoreFocus:A,isEnabled:re,open:O,children:i.cloneElement(p,V)})]}))})});function De(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ot(e,t=!1){return e&&(De(e.value)&&e.value!==""||t&&De(e.defaultValue)&&e.defaultValue!=="")}function ao(e){return e.startAdornment}function zt(e){return Ee("MuiInputBase",e)}const we=ye("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Lt=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Dt=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${ke(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},$t=(e,t)=>{const{ownerState:o}=e;return[t.input,o.size==="small"&&t.inputSizeSmall,o.multiline&&t.inputMultiline,o.type==="search"&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},Wt=e=>{const{classes:t,color:o,disabled:n,error:s,endAdornment:r,focused:a,formControl:u,fullWidth:c,hiddenLabel:h,multiline:v,readOnly:b,size:S,startAdornment:C,type:p}=e,D={root:["root",`color${ke(o)}`,n&&"disabled",s&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",S&&S!=="medium"&&`size${ke(S)}`,v&&"multiline",C&&"adornedStart",r&&"adornedEnd",h&&"hiddenLabel",b&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",v&&"inputMultiline",S==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",C&&"inputAdornedStart",r&&"inputAdornedEnd",b&&"readOnly"]};return Pe(D,zt,t)},Ht=ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Dt})(({theme:e,ownerState:t})=>d({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${we.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&d({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_t=ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$t})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light",n=d({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return d({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${we.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus:-ms-input-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${we.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),jt=L.jsx(Ue,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),lo=i.forwardRef(function(t,o){var n;const s=xe({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:a,autoFocus:u,className:c,components:h={},componentsProps:v={},defaultValue:b,disabled:S,disableInjectingGlobalStyles:C,endAdornment:p,fullWidth:D=!1,id:x,inputComponent:T="input",inputProps:y={},inputRef:l,maxRows:R,minRows:P,multiline:M=!1,name:A,onBlur:I,onChange:$,onClick:B,onFocus:K,onKeyDown:O,onKeyUp:W,placeholder:E,readOnly:F,renderSuffix:m,rows:g,slotProps:H={},slots:ne={},startAdornment:Q,type:re="text",value:j}=s,de=ae(s,Lt),q=y.value!=null?y.value:j,{current:G}=i.useRef(q!=null),V=i.useRef(),ee=i.useCallback(N=>{},[]),se=me(V,l,y.ref,ee),[J,X]=i.useState(!1),w=Ge(),_=Ve({props:s,muiFormControl:w,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_.focused=w?w.focused:J,i.useEffect(()=>{!w&&S&&J&&(X(!1),I&&I())},[w,S,J,I]);const f=w&&w.onFilled,k=w&&w.onEmpty,z=i.useCallback(N=>{Ot(N)?f&&f():k&&k()},[f,k]);je(()=>{G&&z({value:q})},[q,z,G]);const he=N=>{if(_.disabled){N.stopPropagation();return}K&&K(N),y.onFocus&&y.onFocus(N),w&&w.onFocus?w.onFocus(N):X(!0)},te=N=>{I&&I(N),y.onBlur&&y.onBlur(N),w&&w.onBlur?w.onBlur(N):X(!1)},oe=(N,...Ae)=>{if(!G){const Ne=N.target||V.current;if(Ne==null)throw new Error(Ke(1));z({value:Ne.value})}y.onChange&&y.onChange(N,...Ae),$&&$(N,...Ae)};i.useEffect(()=>{z(V.current)},[]);const be=N=>{V.current&&N.currentTarget===N.target&&V.current.focus(),B&&B(N)};let ue=T,Y=y;M&&ue==="input"&&(g?Y=d({type:void 0,minRows:g,maxRows:g},Y):Y=d({type:void 0,maxRows:R,minRows:P},Y),ue=Ye);const ge=N=>{z(N.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};i.useEffect(()=>{w&&w.setAdornedStart(!!Q)},[w,Q]);const ie=d({},s,{color:_.color||"primary",disabled:_.disabled,endAdornment:p,error:_.error,focused:_.focused,formControl:w,fullWidth:D,hiddenLabel:_.hiddenLabel,multiline:M,size:_.size,startAdornment:Q,type:re}),U=Wt(ie),Ie=ne.root||h.Root||Ht,Re=H.root||v.root||{},Me=ne.input||h.Input||_t;return Y=d({},Y,(n=H.input)!=null?n:v.input),L.jsxs(i.Fragment,{children:[!C&&jt,L.jsxs(Ie,d({},Re,!Ce(Ie)&&{ownerState:d({},ie,Re.ownerState)},{ref:o,onClick:be},de,{className:le(U.root,Re.className,c,F&&"MuiInputBase-readOnly"),children:[Q,L.jsx(qe.Provider,{value:null,children:L.jsx(Me,d({ownerState:ie,"aria-invalid":_.error,"aria-describedby":r,autoComplete:a,autoFocus:u,defaultValue:b,disabled:_.disabled,id:x,onAnimationStart:ge,name:A,placeholder:E,readOnly:F,required:_.required,rows:g,value:q,onKeyDown:O,onKeyUp:W,type:re},Y,!Ce(Me)&&{as:ue,ownerState:d({},ie,Y.ownerState)},{ref:se,className:le(U.input,Y.className,F&&"MuiInputBase-readOnly"),onBlur:te,onChange:oe,onFocus:he}))}),p,m?m(d({},_,{startAdornment:Q})):null]}))]})});function Ut(e){return Ee("MuiPopover",e)}ye("MuiPopover",["root","paper"]);const Kt=["onEntering"],Gt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vt=["slotProps"];function $e(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function We(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function He(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Te(e){return typeof e=="function"?e():e}const qt=e=>{const{classes:t}=e;return Pe({root:["root"],paper:["paper"]},Ut,t)},Yt=ce(Bt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xt=ce(nt,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),co=i.forwardRef(function(t,o){var n,s,r;const a=xe({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:v,anchorReference:b="anchorEl",children:S,className:C,container:p,elevation:D=8,marginThreshold:x=16,open:T,PaperProps:y={},slots:l,slotProps:R,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:M=Ze,transitionDuration:A="auto",TransitionProps:{onEntering:I}={},disableScrollLock:$=!1}=a,B=ae(a.TransitionProps,Kt),K=ae(a,Gt),O=(n=R?.paper)!=null?n:y,W=i.useRef(),E=me(W,O.ref),F=d({},a,{anchorOrigin:h,anchorReference:b,elevation:D,marginThreshold:x,externalPaperSlotProps:O,transformOrigin:P,TransitionComponent:M,transitionDuration:A,TransitionProps:B}),m=qt(F),g=i.useCallback(()=>{if(b==="anchorPosition")return v;const f=Te(c),z=(f&&f.nodeType===1?f:Z(W.current).body).getBoundingClientRect();return{top:z.top+$e(z,h.vertical),left:z.left+We(z,h.horizontal)}},[c,h.horizontal,h.vertical,v,b]),H=i.useCallback(f=>({vertical:$e(f,P.vertical),horizontal:We(f,P.horizontal)}),[P.horizontal,P.vertical]),ne=i.useCallback(f=>{const k={width:f.offsetWidth,height:f.offsetHeight},z=H(k);if(b==="none")return{top:null,left:null,transformOrigin:He(z)};const he=g();let te=he.top-z.vertical,oe=he.left-z.horizontal;const be=te+k.height,ue=oe+k.width,Y=fe(Te(c)),ge=Y.innerHeight-x,ie=Y.innerWidth-x;if(x!==null&&te<x){const U=te-x;te-=U,z.vertical+=U}else if(x!==null&&be>ge){const U=be-ge;te-=U,z.vertical+=U}if(x!==null&&oe<x){const U=oe-x;oe-=U,z.horizontal+=U}else if(ue>ie){const U=ue-ie;oe-=U,z.horizontal+=U}return{top:`${Math.round(te)}px`,left:`${Math.round(oe)}px`,transformOrigin:He(z)}},[c,b,g,H,x]),[Q,re]=i.useState(T),j=i.useCallback(()=>{const f=W.current;if(!f)return;const k=ne(f);k.top!==null&&(f.style.top=k.top),k.left!==null&&(f.style.left=k.left),f.style.transformOrigin=k.transformOrigin,re(!0)},[ne]);i.useEffect(()=>($&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[c,$,j]);const de=(f,k)=>{I&&I(f,k),j()},q=()=>{re(!1)};i.useEffect(()=>{T&&j()}),i.useImperativeHandle(u,()=>T?{updatePosition:()=>{j()}}:null,[T,j]),i.useEffect(()=>{if(!T)return;const f=Xe(()=>{j()}),k=fe(c);return k.addEventListener("resize",f),()=>{f.clear(),k.removeEventListener("resize",f)}},[c,T,j]);let G=A;A==="auto"&&!M.muiSupportAuto&&(G=void 0);const V=p||(c?Z(Te(c)).body:void 0),ee=(s=l?.root)!=null?s:Yt,se=(r=l?.paper)!=null?r:Xt,J=ve({elementType:se,externalSlotProps:d({},O,{style:Q?O.style:d({},O.style,{opacity:0})}),additionalProps:{elevation:D,ref:E},ownerState:F,className:le(m.paper,O?.className)}),X=ve({elementType:ee,externalSlotProps:R?.root||{},externalForwardedProps:K,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:V,open:T},ownerState:F,className:le(m.root,C)}),{slotProps:w}=X,_=ae(X,Vt);return L.jsx(ee,d({},_,!Ce(ee)&&{slotProps:w,disableScrollLock:$},{children:L.jsx(M,d({appear:!0,in:T,onEntering:de,onExited:q,timeout:G},B,{children:L.jsx(se,d({},J,{children:S}))}))}))});export{St as B,xt as F,lo as I,Bt as M,co as P,Ot as a,we as b,Ht as c,_t as d,$t as e,Xt as f,rt as g,bt as h,ao as i,Dt as r};
1
+ import{r as i,j as L,o as ae,p as d,n as xe,e as je,s as ke,Q as Ue,f as Ke}from"./iframe-DtQmhjUk.js";import{u as me,a as Ee,g as ye,b as le,d as Pe,s as ce,i as Fe}from"./UseCases-CTSiSN6M.js";import{c as Be,u as Ge,f as Ve,F as qe}from"./formControlState-DDW9809B.js";import{o as fe,T as Ye,d as Xe}from"./TextareaAutosize-DACJtUo4.js";import{e as Qe,u as ve,i as Ce}from"./useSlotProps-HyTzBVWz.js";import{g as _e,P as Je,G as Ze}from"./Grow-P72gltHT.js";import{o as Z}from"./ownerDocument-DW-IO8s5.js";import{u as et}from"./useTheme-oCpgGYKx.js";import{T as tt,r as ot,g as Oe}from"./utils-D1ha-Di3.js";import{P as nt}from"./Paper-DMevUzQW.js";function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function st(e){const t=Z(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ze(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function it(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||n}function Le(e,t,o,n,s){const r=[t,o,...n];[].forEach.call(e.children,a=>{const u=r.indexOf(a)===-1,c=!it(a);u&&c&&pe(a,s)})}function Se(e,t){let o=-1;return e.some((n,s)=>t(n)?(o=s,!0):!1),o}function at(e,t){const o=[],n=e.container;if(!t.disableScrollLock){if(st(n)){const a=rt(Z(n));o.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ze(n)+a}px`;const u=Z(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{o.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${ze(c)+a}px`})}let r;if(n.parentNode instanceof DocumentFragment)r=Z(n).body;else{const a=n.parentElement,u=fe(n);r=a?.nodeName==="HTML"&&u.getComputedStyle(a).overflowY==="scroll"?a:n}o.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{o.forEach(({value:r,el:a,property:u})=>{r?a.style.setProperty(u,r):a.style.removeProperty(u)})}}function lt(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class ct{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,o){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&pe(t.modalRef,!1);const s=lt(o);Le(o,t.mount,t.modalRef,s,!0);const r=Se(this.containers,a=>a.container===o);return r!==-1?(this.containers[r].modals.push(t),n):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:s}),n)}mount(t,o){const n=Se(this.containers,r=>r.modals.indexOf(t)!==-1),s=this.containers[n];s.restore||(s.restore=at(s,o))}remove(t,o=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const s=Se(this.containers,a=>a.modals.indexOf(t)!==-1),r=this.containers[s];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&pe(t.modalRef,o),Le(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=r.modals[r.modals.length-1];a.modalRef&&pe(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const dt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ut(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function pt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function ft(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||pt(e))}function mt(e){const t=[],o=[];return Array.from(e.querySelectorAll(dt)).forEach((n,s)=>{const r=ut(n);r===-1||!ft(n)||(r===0?t.push(n):o.push({documentOrder:s,tabIndex:r,node:n}))}),o.sort((n,s)=>n.tabIndex===s.tabIndex?n.documentOrder-s.documentOrder:n.tabIndex-s.tabIndex).map(n=>n.node).concat(t)}function ht(){return!0}function bt(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:s=!1,getTabbable:r=mt,isEnabled:a=ht,open:u}=e,c=i.useRef(!1),h=i.useRef(null),v=i.useRef(null),b=i.useRef(null),S=i.useRef(null),C=i.useRef(!1),p=i.useRef(null),D=me(_e(t),p),x=i.useRef(null);i.useEffect(()=>{!u||!p.current||(C.current=!o)},[o,u]),i.useEffect(()=>{if(!u||!p.current)return;const l=Z(p.current);return p.current.contains(l.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),C.current&&p.current.focus()),()=>{s||(b.current&&b.current.focus&&(c.current=!0,b.current.focus()),b.current=null)}},[u]),i.useEffect(()=>{if(!u||!p.current)return;const l=Z(p.current),R=A=>{x.current=A,!(n||!a()||A.key!=="Tab")&&l.activeElement===p.current&&A.shiftKey&&(c.current=!0,v.current&&v.current.focus())},P=()=>{const A=p.current;if(A===null)return;if(!l.hasFocus()||!a()||c.current){c.current=!1;return}if(A.contains(l.activeElement)||n&&l.activeElement!==h.current&&l.activeElement!==v.current)return;if(l.activeElement!==S.current)S.current=null;else if(S.current!==null)return;if(!C.current)return;let I=[];if((l.activeElement===h.current||l.activeElement===v.current)&&(I=r(p.current)),I.length>0){var $,B;const K=!!(($=x.current)!=null&&$.shiftKey&&((B=x.current)==null?void 0:B.key)==="Tab"),O=I[0],W=I[I.length-1];typeof O!="string"&&typeof W!="string"&&(K?W.focus():O.focus())}else A.focus()};l.addEventListener("focusin",P),l.addEventListener("keydown",R,!0);const M=setInterval(()=>{l.activeElement&&l.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(M),l.removeEventListener("focusin",P),l.removeEventListener("keydown",R,!0)}},[o,n,s,a,u,r]);const T=l=>{b.current===null&&(b.current=l.relatedTarget),C.current=!0,S.current=l.target;const R=t.props.onFocus;R&&R(l)},y=l=>{b.current===null&&(b.current=l.relatedTarget),C.current=!0};return L.jsxs(i.Fragment,{children:[L.jsx("div",{tabIndex:u?0:-1,onFocus:y,ref:h,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:D,onFocus:T}),L.jsx("div",{tabIndex:u?0:-1,onFocus:y,ref:v,"data-testid":"sentinelEnd"})]})}const gt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],vt={entering:{opacity:1},entered:{opacity:1}},xt=i.forwardRef(function(t,o){const n=et(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:a=!0,children:u,easing:c,in:h,onEnter:v,onEntered:b,onEntering:S,onExit:C,onExited:p,onExiting:D,style:x,timeout:T=s,TransitionComponent:y=tt}=t,l=ae(t,gt),R=i.useRef(null),P=me(R,_e(u),o),M=E=>F=>{if(E){const m=R.current;F===void 0?E(m):E(m,F)}},A=M(S),I=M((E,F)=>{ot(E);const m=Oe({style:x,timeout:T,easing:c},{mode:"enter"});E.style.webkitTransition=n.transitions.create("opacity",m),E.style.transition=n.transitions.create("opacity",m),v&&v(E,F)}),$=M(b),B=M(D),K=M(E=>{const F=Oe({style:x,timeout:T,easing:c},{mode:"exit"});E.style.webkitTransition=n.transitions.create("opacity",F),E.style.transition=n.transitions.create("opacity",F),C&&C(E)}),O=M(p),W=E=>{r&&r(R.current,E)};return L.jsx(y,d({appear:a,in:h,nodeRef:R,onEnter:I,onEntered:$,onEntering:A,onExit:K,onExited:O,onExiting:B,addEndListener:W,timeout:T},l,{children:(E,F)=>i.cloneElement(u,d({style:d({opacity:0,visibility:E==="exited"&&!h?"hidden":void 0},vt[E],x,u.props.style),ref:P},F))}))});function Et(e){return Ee("MuiBackdrop",e)}ye("MuiBackdrop",["root","invisible"]);const yt=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Pt=e=>{const{classes:t,invisible:o}=e;return Pe({root:["root",o&&"invisible"]},Et,t)},Rt=ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})(({ownerState:e})=>d({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),St=i.forwardRef(function(t,o){var n,s,r;const a=xe({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:h="div",components:v={},componentsProps:b={},invisible:S=!1,open:C,slotProps:p={},slots:D={},TransitionComponent:x=xt,transitionDuration:T}=a,y=ae(a,yt),l=d({},a,{component:h,invisible:S}),R=Pt(l),P=(n=p.root)!=null?n:b.root;return L.jsx(x,d({in:C,timeout:T},y,{children:L.jsx(Rt,d({"aria-hidden":!0},P,{as:(s=(r=D.root)!=null?r:v.Root)!=null?s:h,className:le(R.root,c,P?.className),ownerState:d({},l,P?.ownerState),classes:R,ref:o,children:u}))}))});function Tt(e){return typeof e=="function"?e():e}function kt(e){return e?e.props.hasOwnProperty("in"):!1}const Ct=new ct;function wt(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,manager:s=Ct,closeAfterTransition:r=!1,onTransitionEnter:a,onTransitionExited:u,children:c,onClose:h,open:v,rootRef:b}=e,S=i.useRef({}),C=i.useRef(null),p=i.useRef(null),D=me(p,b),[x,T]=i.useState(!v),y=kt(c);let l=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(l=!1);const R=()=>Z(C.current),P=()=>(S.current.modalRef=p.current,S.current.mount=C.current,S.current),M=()=>{s.mount(P(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},A=Fe(()=>{const m=Tt(t)||R().body;s.add(P(),m),p.current&&M()}),I=i.useCallback(()=>s.isTopModal(P()),[s]),$=Fe(m=>{C.current=m,m&&(v&&I()?M():p.current&&pe(p.current,l))}),B=i.useCallback(()=>{s.remove(P(),l)},[l,s]);i.useEffect(()=>()=>{B()},[B]),i.useEffect(()=>{v?A():(!y||!r)&&B()},[v,B,y,r,A]);const K=m=>g=>{var H;(H=m.onKeyDown)==null||H.call(m,g),!(g.key!=="Escape"||g.which===229||!I())&&(o||(g.stopPropagation(),h&&h(g,"escapeKeyDown")))},O=m=>g=>{var H;(H=m.onClick)==null||H.call(m,g),g.target===g.currentTarget&&h&&h(g,"backdropClick")};return{getRootProps:(m={})=>{const g=Qe(e);delete g.onTransitionEnter,delete g.onTransitionExited;const H=d({},g,m);return d({role:"presentation"},H,{onKeyDown:K(H),ref:D})},getBackdropProps:(m={})=>{const g=m;return d({"aria-hidden":!0},g,{onClick:O(g),open:v})},getTransitionProps:()=>{const m=()=>{T(!1),a&&a()},g=()=>{T(!0),u&&u(),r&&B()};return{onEnter:Be(m,c?.props.onEnter),onExited:Be(g,c?.props.onExited)}},rootRef:D,portalRef:$,isTopModal:I,exited:x,hasTransition:y}}function It(e){return Ee("MuiModal",e)}ye("MuiModal",["root","hidden","backdrop"]);const Mt=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],At=e=>{const{open:t,exited:o,classes:n}=e;return Pe({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},It,n)},Nt=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(({theme:e,ownerState:t})=>d({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Ft=ce(St,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Bt=i.forwardRef(function(t,o){var n,s,r,a,u,c;const h=xe({name:"MuiModal",props:t}),{BackdropComponent:v=Ft,BackdropProps:b,className:S,closeAfterTransition:C=!1,children:p,container:D,component:x,components:T={},componentsProps:y={},disableAutoFocus:l=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:P=!1,disablePortal:M=!1,disableRestoreFocus:A=!1,disableScrollLock:I=!1,hideBackdrop:$=!1,keepMounted:B=!1,onBackdropClick:K,open:O,slotProps:W,slots:E}=h,F=ae(h,Mt),m=d({},h,{closeAfterTransition:C,disableAutoFocus:l,disableEnforceFocus:R,disableEscapeKeyDown:P,disablePortal:M,disableRestoreFocus:A,disableScrollLock:I,hideBackdrop:$,keepMounted:B}),{getRootProps:g,getBackdropProps:H,getTransitionProps:ne,portalRef:Q,isTopModal:re,exited:j,hasTransition:de}=wt(d({},m,{rootRef:o})),q=d({},m,{exited:j}),G=At(q),V={};if(p.props.tabIndex===void 0&&(V.tabIndex="-1"),de){const{onEnter:f,onExited:k}=ne();V.onEnter=f,V.onExited=k}const ee=(n=(s=E?.root)!=null?s:T.Root)!=null?n:Nt,se=(r=(a=E?.backdrop)!=null?a:T.Backdrop)!=null?r:v,J=(u=W?.root)!=null?u:y.root,X=(c=W?.backdrop)!=null?c:y.backdrop,w=ve({elementType:ee,externalSlotProps:J,externalForwardedProps:F,getSlotProps:g,additionalProps:{ref:o,as:x},ownerState:q,className:le(S,J?.className,G?.root,!q.open&&q.exited&&G?.hidden)}),_=ve({elementType:se,externalSlotProps:X,additionalProps:b,getSlotProps:f=>H(d({},f,{onClick:k=>{K&&K(k),f!=null&&f.onClick&&f.onClick(k)}})),className:le(X?.className,b?.className,G?.backdrop),ownerState:q});return!B&&!O&&(!de||j)?null:L.jsx(Je,{ref:Q,container:D,disablePortal:M,children:L.jsxs(ee,d({},w,{children:[!$&&v?L.jsx(se,d({},_)):null,L.jsx(bt,{disableEnforceFocus:R,disableAutoFocus:l,disableRestoreFocus:A,isEnabled:re,open:O,children:i.cloneElement(p,V)})]}))})});function De(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ot(e,t=!1){return e&&(De(e.value)&&e.value!==""||t&&De(e.defaultValue)&&e.defaultValue!=="")}function ao(e){return e.startAdornment}function zt(e){return Ee("MuiInputBase",e)}const we=ye("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Lt=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Dt=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${ke(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},$t=(e,t)=>{const{ownerState:o}=e;return[t.input,o.size==="small"&&t.inputSizeSmall,o.multiline&&t.inputMultiline,o.type==="search"&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},Wt=e=>{const{classes:t,color:o,disabled:n,error:s,endAdornment:r,focused:a,formControl:u,fullWidth:c,hiddenLabel:h,multiline:v,readOnly:b,size:S,startAdornment:C,type:p}=e,D={root:["root",`color${ke(o)}`,n&&"disabled",s&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",S&&S!=="medium"&&`size${ke(S)}`,v&&"multiline",C&&"adornedStart",r&&"adornedEnd",h&&"hiddenLabel",b&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",v&&"inputMultiline",S==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",C&&"inputAdornedStart",r&&"inputAdornedEnd",b&&"readOnly"]};return Pe(D,zt,t)},Ht=ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Dt})(({theme:e,ownerState:t})=>d({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${we.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&d({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_t=ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$t})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light",n=d({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return d({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${we.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus:-ms-input-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${we.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),jt=L.jsx(Ue,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),lo=i.forwardRef(function(t,o){var n;const s=xe({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:a,autoFocus:u,className:c,components:h={},componentsProps:v={},defaultValue:b,disabled:S,disableInjectingGlobalStyles:C,endAdornment:p,fullWidth:D=!1,id:x,inputComponent:T="input",inputProps:y={},inputRef:l,maxRows:R,minRows:P,multiline:M=!1,name:A,onBlur:I,onChange:$,onClick:B,onFocus:K,onKeyDown:O,onKeyUp:W,placeholder:E,readOnly:F,renderSuffix:m,rows:g,slotProps:H={},slots:ne={},startAdornment:Q,type:re="text",value:j}=s,de=ae(s,Lt),q=y.value!=null?y.value:j,{current:G}=i.useRef(q!=null),V=i.useRef(),ee=i.useCallback(N=>{},[]),se=me(V,l,y.ref,ee),[J,X]=i.useState(!1),w=Ge(),_=Ve({props:s,muiFormControl:w,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_.focused=w?w.focused:J,i.useEffect(()=>{!w&&S&&J&&(X(!1),I&&I())},[w,S,J,I]);const f=w&&w.onFilled,k=w&&w.onEmpty,z=i.useCallback(N=>{Ot(N)?f&&f():k&&k()},[f,k]);je(()=>{G&&z({value:q})},[q,z,G]);const he=N=>{if(_.disabled){N.stopPropagation();return}K&&K(N),y.onFocus&&y.onFocus(N),w&&w.onFocus?w.onFocus(N):X(!0)},te=N=>{I&&I(N),y.onBlur&&y.onBlur(N),w&&w.onBlur?w.onBlur(N):X(!1)},oe=(N,...Ae)=>{if(!G){const Ne=N.target||V.current;if(Ne==null)throw new Error(Ke(1));z({value:Ne.value})}y.onChange&&y.onChange(N,...Ae),$&&$(N,...Ae)};i.useEffect(()=>{z(V.current)},[]);const be=N=>{V.current&&N.currentTarget===N.target&&V.current.focus(),B&&B(N)};let ue=T,Y=y;M&&ue==="input"&&(g?Y=d({type:void 0,minRows:g,maxRows:g},Y):Y=d({type:void 0,maxRows:R,minRows:P},Y),ue=Ye);const ge=N=>{z(N.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};i.useEffect(()=>{w&&w.setAdornedStart(!!Q)},[w,Q]);const ie=d({},s,{color:_.color||"primary",disabled:_.disabled,endAdornment:p,error:_.error,focused:_.focused,formControl:w,fullWidth:D,hiddenLabel:_.hiddenLabel,multiline:M,size:_.size,startAdornment:Q,type:re}),U=Wt(ie),Ie=ne.root||h.Root||Ht,Re=H.root||v.root||{},Me=ne.input||h.Input||_t;return Y=d({},Y,(n=H.input)!=null?n:v.input),L.jsxs(i.Fragment,{children:[!C&&jt,L.jsxs(Ie,d({},Re,!Ce(Ie)&&{ownerState:d({},ie,Re.ownerState)},{ref:o,onClick:be},de,{className:le(U.root,Re.className,c,F&&"MuiInputBase-readOnly"),children:[Q,L.jsx(qe.Provider,{value:null,children:L.jsx(Me,d({ownerState:ie,"aria-invalid":_.error,"aria-describedby":r,autoComplete:a,autoFocus:u,defaultValue:b,disabled:_.disabled,id:x,onAnimationStart:ge,name:A,placeholder:E,readOnly:F,required:_.required,rows:g,value:q,onKeyDown:O,onKeyUp:W,type:re},Y,!Ce(Me)&&{as:ue,ownerState:d({},ie,Y.ownerState)},{ref:se,className:le(U.input,Y.className,F&&"MuiInputBase-readOnly"),onBlur:te,onChange:oe,onFocus:he}))}),p,m?m(d({},_,{startAdornment:Q})):null]}))]})});function Ut(e){return Ee("MuiPopover",e)}ye("MuiPopover",["root","paper"]);const Kt=["onEntering"],Gt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vt=["slotProps"];function $e(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function We(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function He(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Te(e){return typeof e=="function"?e():e}const qt=e=>{const{classes:t}=e;return Pe({root:["root"],paper:["paper"]},Ut,t)},Yt=ce(Bt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xt=ce(nt,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),co=i.forwardRef(function(t,o){var n,s,r;const a=xe({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:v,anchorReference:b="anchorEl",children:S,className:C,container:p,elevation:D=8,marginThreshold:x=16,open:T,PaperProps:y={},slots:l,slotProps:R,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:M=Ze,transitionDuration:A="auto",TransitionProps:{onEntering:I}={},disableScrollLock:$=!1}=a,B=ae(a.TransitionProps,Kt),K=ae(a,Gt),O=(n=R?.paper)!=null?n:y,W=i.useRef(),E=me(W,O.ref),F=d({},a,{anchorOrigin:h,anchorReference:b,elevation:D,marginThreshold:x,externalPaperSlotProps:O,transformOrigin:P,TransitionComponent:M,transitionDuration:A,TransitionProps:B}),m=qt(F),g=i.useCallback(()=>{if(b==="anchorPosition")return v;const f=Te(c),z=(f&&f.nodeType===1?f:Z(W.current).body).getBoundingClientRect();return{top:z.top+$e(z,h.vertical),left:z.left+We(z,h.horizontal)}},[c,h.horizontal,h.vertical,v,b]),H=i.useCallback(f=>({vertical:$e(f,P.vertical),horizontal:We(f,P.horizontal)}),[P.horizontal,P.vertical]),ne=i.useCallback(f=>{const k={width:f.offsetWidth,height:f.offsetHeight},z=H(k);if(b==="none")return{top:null,left:null,transformOrigin:He(z)};const he=g();let te=he.top-z.vertical,oe=he.left-z.horizontal;const be=te+k.height,ue=oe+k.width,Y=fe(Te(c)),ge=Y.innerHeight-x,ie=Y.innerWidth-x;if(x!==null&&te<x){const U=te-x;te-=U,z.vertical+=U}else if(x!==null&&be>ge){const U=be-ge;te-=U,z.vertical+=U}if(x!==null&&oe<x){const U=oe-x;oe-=U,z.horizontal+=U}else if(ue>ie){const U=ue-ie;oe-=U,z.horizontal+=U}return{top:`${Math.round(te)}px`,left:`${Math.round(oe)}px`,transformOrigin:He(z)}},[c,b,g,H,x]),[Q,re]=i.useState(T),j=i.useCallback(()=>{const f=W.current;if(!f)return;const k=ne(f);k.top!==null&&(f.style.top=k.top),k.left!==null&&(f.style.left=k.left),f.style.transformOrigin=k.transformOrigin,re(!0)},[ne]);i.useEffect(()=>($&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[c,$,j]);const de=(f,k)=>{I&&I(f,k),j()},q=()=>{re(!1)};i.useEffect(()=>{T&&j()}),i.useImperativeHandle(u,()=>T?{updatePosition:()=>{j()}}:null,[T,j]),i.useEffect(()=>{if(!T)return;const f=Xe(()=>{j()}),k=fe(c);return k.addEventListener("resize",f),()=>{f.clear(),k.removeEventListener("resize",f)}},[c,T,j]);let G=A;A==="auto"&&!M.muiSupportAuto&&(G=void 0);const V=p||(c?Z(Te(c)).body:void 0),ee=(s=l?.root)!=null?s:Yt,se=(r=l?.paper)!=null?r:Xt,J=ve({elementType:se,externalSlotProps:d({},O,{style:Q?O.style:d({},O.style,{opacity:0})}),additionalProps:{elevation:D,ref:E},ownerState:F,className:le(m.paper,O?.className)}),X=ve({elementType:ee,externalSlotProps:R?.root||{},externalForwardedProps:K,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:V,open:T},ownerState:F,className:le(m.root,C)}),{slotProps:w}=X,_=ae(X,Vt);return L.jsx(ee,d({},_,!Ce(ee)&&{slotProps:w,disableScrollLock:$},{children:L.jsx(M,d({appear:!0,in:T,onEntering:de,onExited:q,timeout:G},B,{children:L.jsx(se,d({},J,{children:S}))}))}))});export{St as B,xt as F,lo as I,Bt as M,co as P,Ot as a,we as b,Ht as c,_t as d,$t as e,Xt as f,rt as g,bt as h,ao as i,Dt as r};
@@ -1 +1 @@
1
- import{r as c,n as N,o as z,p as i,j as n,s as I,q as V,z as q}from"./iframe-a_pZB-t6.js";import{a as G,g as M,b as S,d as j,s as x,c as P,r as b,u as D}from"./UseCases-CyXRdmDK.js";import{S as O}from"./SwitchBase-Dey9Iw42.js";import{u as W,f as H,c as L}from"./formControlState-Dg0qiabM.js";import{u as Z}from"./useControlled-CwodZjTa.js";function A(o){return G("MuiFormGroup",o)}M("MuiFormGroup",["root","row","error"]);const J=["className","row"],K=o=>{const{classes:e,row:t,error:r}=o;return j({root:["root",t&&"row",r&&"error"]},A,e)},Q=x("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.row&&e.row]}})(({ownerState:o})=>i({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),T=c.forwardRef(function(e,t){const r=N({props:e,name:"MuiFormGroup"}),{className:s,row:l=!1}=r,f=z(r,J),m=W(),u=H({props:r,muiFormControl:m,states:["error"]}),p=i({},r,{row:l,error:u.error}),R=K(p);return n.jsx(Q,i({className:S(R.root,s),ownerState:p,ref:t},f))}),X=P(n.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Y=P(n.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),oo=x("span",{name:"MuiRadioButtonIcon",shouldForwardProp:b})({position:"relative",display:"flex"}),eo=x(X,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),to=x(Y,{name:"MuiRadioButtonIcon"})(({theme:o,ownerState:e})=>i({left:0,position:"absolute",transform:"scale(0)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeIn,duration:o.transitions.duration.shortest})},e.checked&&{transform:"scale(1)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.shortest})}));function U(o){const{checked:e=!1,classes:t={},fontSize:r}=o,s=i({},o,{checked:e});return n.jsxs(oo,{className:t.root,ownerState:s,children:[n.jsx(eo,{fontSize:r,className:t.background,ownerState:s}),n.jsx(to,{fontSize:r,className:t.dot,ownerState:s})]})}const _=c.createContext(void 0);function ro(){return c.useContext(_)}function so(o){return G("MuiRadio",o)}const F=M("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ao=["checked","checkedIcon","color","icon","name","onChange","size","className"],no=o=>{const{classes:e,color:t,size:r}=o,s={root:["root",`color${I(t)}`,r!=="medium"&&`size${I(r)}`]};return i({},e,j(s,so,e))},co=x(O,{shouldForwardProp:o=>b(o)||o==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.size!=="medium"&&e[`size${I(t.size)}`],e[`color${I(t.color)}`]]}})(({theme:o,ownerState:e})=>i({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette[e.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:V.alpha(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${F.checked}`]:{color:(o.vars||o).palette[e.color].main}},{[`&.${F.disabled}`]:{color:(o.vars||o).palette.action.disabled}}));function io(o,e){return typeof e=="object"&&e!==null?o===e:String(o)===String(e)}const $=n.jsx(U,{checked:!0}),B=n.jsx(U,{}),vo=c.forwardRef(function(e,t){var r,s;const l=N({props:e,name:"MuiRadio"}),{checked:f,checkedIcon:m=$,color:u="primary",icon:p=B,name:R,onChange:C,size:h="medium",className:g}=l,k=z(l,ao),y=i({},l,{color:u,size:h}),v=no(y),d=ro();let a=f;const E=L(C,d&&d.onChange);let w=R;return d&&(typeof a>"u"&&(a=io(d.value,l.value)),typeof w>"u"&&(w=d.name)),n.jsx(co,i({type:"radio",icon:c.cloneElement(p,{fontSize:(r=B.props.fontSize)!=null?r:h}),checkedIcon:c.cloneElement(m,{fontSize:(s=$.props.fontSize)!=null?s:h}),ownerState:y,classes:v,name:w,checked:a,onChange:E,ref:t,className:S(v.root,g)},k))});function lo(o){return G("MuiRadioGroup",o)}M("MuiRadioGroup",["root","row","error"]);const uo=["actions","children","className","defaultValue","name","onChange","value"],po=o=>{const{classes:e,row:t,error:r}=o;return j({root:["root",t&&"row",r&&"error"]},lo,e)},xo=c.forwardRef(function(e,t){const{actions:r,children:s,className:l,defaultValue:f,name:m,onChange:u,value:p}=e,R=z(e,uo),C=c.useRef(null),h=po(e),[g,k]=Z({controlled:p,default:f,name:"RadioGroup"});c.useImperativeHandle(r,()=>({focus:()=>{let a=C.current.querySelector("input:not(:disabled):checked");a||(a=C.current.querySelector("input:not(:disabled)")),a&&a.focus()}}),[]);const y=D(t,C),v=q(m),d=c.useMemo(()=>({name:v,onChange(a){k(a.target.value),u&&u(a,a.target.value)},value:g}),[v,u,k,g]);return n.jsx(_.Provider,{value:d,children:n.jsx(T,i({role:"radiogroup",ref:y,className:S(h.root,l)},R,{children:s}))})});export{xo as R,vo as a};
1
+ import{r as c,n as N,o as z,p as i,j as n,s as I,q as V,z as q}from"./iframe-DtQmhjUk.js";import{a as G,g as M,b as S,d as j,s as x,c as P,r as b,u as D}from"./UseCases-CTSiSN6M.js";import{S as O}from"./SwitchBase-C0nrrHyx.js";import{u as W,f as H,c as L}from"./formControlState-DDW9809B.js";import{u as Z}from"./useControlled-CDPfU0tS.js";function A(o){return G("MuiFormGroup",o)}M("MuiFormGroup",["root","row","error"]);const J=["className","row"],K=o=>{const{classes:e,row:t,error:r}=o;return j({root:["root",t&&"row",r&&"error"]},A,e)},Q=x("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.row&&e.row]}})(({ownerState:o})=>i({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),T=c.forwardRef(function(e,t){const r=N({props:e,name:"MuiFormGroup"}),{className:s,row:l=!1}=r,f=z(r,J),m=W(),u=H({props:r,muiFormControl:m,states:["error"]}),p=i({},r,{row:l,error:u.error}),R=K(p);return n.jsx(Q,i({className:S(R.root,s),ownerState:p,ref:t},f))}),X=P(n.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Y=P(n.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),oo=x("span",{name:"MuiRadioButtonIcon",shouldForwardProp:b})({position:"relative",display:"flex"}),eo=x(X,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),to=x(Y,{name:"MuiRadioButtonIcon"})(({theme:o,ownerState:e})=>i({left:0,position:"absolute",transform:"scale(0)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeIn,duration:o.transitions.duration.shortest})},e.checked&&{transform:"scale(1)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.shortest})}));function U(o){const{checked:e=!1,classes:t={},fontSize:r}=o,s=i({},o,{checked:e});return n.jsxs(oo,{className:t.root,ownerState:s,children:[n.jsx(eo,{fontSize:r,className:t.background,ownerState:s}),n.jsx(to,{fontSize:r,className:t.dot,ownerState:s})]})}const _=c.createContext(void 0);function ro(){return c.useContext(_)}function so(o){return G("MuiRadio",o)}const F=M("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ao=["checked","checkedIcon","color","icon","name","onChange","size","className"],no=o=>{const{classes:e,color:t,size:r}=o,s={root:["root",`color${I(t)}`,r!=="medium"&&`size${I(r)}`]};return i({},e,j(s,so,e))},co=x(O,{shouldForwardProp:o=>b(o)||o==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.size!=="medium"&&e[`size${I(t.size)}`],e[`color${I(t.color)}`]]}})(({theme:o,ownerState:e})=>i({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette[e.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:V.alpha(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${F.checked}`]:{color:(o.vars||o).palette[e.color].main}},{[`&.${F.disabled}`]:{color:(o.vars||o).palette.action.disabled}}));function io(o,e){return typeof e=="object"&&e!==null?o===e:String(o)===String(e)}const $=n.jsx(U,{checked:!0}),B=n.jsx(U,{}),vo=c.forwardRef(function(e,t){var r,s;const l=N({props:e,name:"MuiRadio"}),{checked:f,checkedIcon:m=$,color:u="primary",icon:p=B,name:R,onChange:C,size:h="medium",className:g}=l,k=z(l,ao),y=i({},l,{color:u,size:h}),v=no(y),d=ro();let a=f;const E=L(C,d&&d.onChange);let w=R;return d&&(typeof a>"u"&&(a=io(d.value,l.value)),typeof w>"u"&&(w=d.name)),n.jsx(co,i({type:"radio",icon:c.cloneElement(p,{fontSize:(r=B.props.fontSize)!=null?r:h}),checkedIcon:c.cloneElement(m,{fontSize:(s=$.props.fontSize)!=null?s:h}),ownerState:y,classes:v,name:w,checked:a,onChange:E,ref:t,className:S(v.root,g)},k))});function lo(o){return G("MuiRadioGroup",o)}M("MuiRadioGroup",["root","row","error"]);const uo=["actions","children","className","defaultValue","name","onChange","value"],po=o=>{const{classes:e,row:t,error:r}=o;return j({root:["root",t&&"row",r&&"error"]},lo,e)},xo=c.forwardRef(function(e,t){const{actions:r,children:s,className:l,defaultValue:f,name:m,onChange:u,value:p}=e,R=z(e,uo),C=c.useRef(null),h=po(e),[g,k]=Z({controlled:p,default:f,name:"RadioGroup"});c.useImperativeHandle(r,()=>({focus:()=>{let a=C.current.querySelector("input:not(:disabled):checked");a||(a=C.current.querySelector("input:not(:disabled)")),a&&a.focus()}}),[]);const y=D(t,C),v=q(m),d=c.useMemo(()=>({name:v,onChange(a){k(a.target.value),u&&u(a,a.target.value)},value:g}),[v,u,k,g]);return n.jsx(_.Provider,{value:d,children:n.jsx(T,i({role:"radiogroup",ref:y,className:S(h.root,l)},R,{children:s}))})});export{xo as R,vo as a};
@@ -1 +1 @@
1
- import{j as r}from"./iframe-a_pZB-t6.js";import{c as o}from"./UseCases-CyXRdmDK.js";const c=o(r.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");export{c as S};
1
+ import{j as r}from"./iframe-DtQmhjUk.js";import{c as o}from"./UseCases-CTSiSN6M.js";const c=o(r.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");export{c as S};
@@ -1 +1 @@
1
- import{R as m,r as I,j as l}from"./iframe-a_pZB-t6.js";import{c as R}from"./index-DS-XPpOX.js";import{a as W}from"./_isObject-CRQ-CL0p.js";import{_ as q}from"./_curry3-CWUzJcT3.js";import{_ as L}from"./toString-CzFgYQbH.js";import{p as N}from"./pluck-BnLF_Scp.js";import{i as n}from"./is-DEqMKgUN.js";import{T as k}from"./TextField-DTKLdgYP.js";import{m as z}from"./map-DAmoZ62-.js";import{M as w}from"./MenuItem-rwQC5Jz1.js";import{T as v}from"./Typography-BSx6QP1S.js";import{p as x}from"./propOr-CKFZAF61.js";import{j as g}from"./join-DwFJnUQ2.js";import{i as C}from"./isEmpty-CZ36qNF2.js";import{m as J}from"./makeStyles-DjbLSwJE.js";import{i as Y}from"./ifElse-_ALGpLaf.js";import{p as $}from"./prop-Dm-FEtu4.js";import{i as A}from"./identity-BtKjXVdB.js";var B=q(function(p,a,c){return L(function(i){return W(p,i,c)},a)});const D=J(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:i=H,isMultiple:S,onChange:f,textFieldProps:_=X,valueAccessor:j,labelAccessor:E,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=>Y(n(Object),r=>n(Function,t)?t(r):$(e)(r),A),F=B((e,t)=>e.value===t),b=N("label",F(i,n(Array,a)?a:[a]));return l.jsx(k,{select:!0,id:o,"data-testid":P,disabled:C(i),label:c,value:a,title:g(", ",b),onChange:M,variant:"outlined",margin:"dense",size:"small",fullWidth:!0,SelectProps:{ref:u,open:d,autoWidth:!0,multiple:S,disabled:T,onOpen:()=>h(!0),onClose:()=>h(!1),classes:{root:s.root},renderValue:()=>l.jsx(v,{variant:"inherit",className:s.typo,children:g(", ",b)}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},classes:{paper:s.paper},PaperProps:{style:{width:O}}}},className:s.root,..._,children:z(e=>{const t=y("value")(j)(e),r=y("label")(E)(e);return l.jsx(w,{id:r,value:t,dense:!0,"aria-label":r,title:r,disabled:x(!1,"disabled")(e),children:l.jsx(v,{variant:"inherit",className:R(s.typo,{[s.disabledLabel]:x(!1,"disabled")(e)}),children:r})},`${p}-${t}`)})(i)})};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};
1
+ import{R as m,r as I,j as l}from"./iframe-DtQmhjUk.js";import{c as R}from"./index-KWYsdMX_.js";import{a as W}from"./_isObject-CRQ-CL0p.js";import{_ as q}from"./_curry3-CWUzJcT3.js";import{_ as L}from"./toString-CzFgYQbH.js";import{p as N}from"./pluck-BnLF_Scp.js";import{i as n}from"./is-DEqMKgUN.js";import{T as k}from"./TextField-BO2DCZQ8.js";import{m as z}from"./map-DAmoZ62-.js";import{M as w}from"./MenuItem-x_XUpqSf.js";import{T as v}from"./Typography-Dk5KhhNl.js";import{p as x}from"./propOr-CKFZAF61.js";import{j as g}from"./join-DwFJnUQ2.js";import{i as C}from"./isEmpty-CZ36qNF2.js";import{m as J}from"./makeStyles-DbQ_Cm1S.js";import{i as Y}from"./ifElse-_ALGpLaf.js";import{p as $}from"./prop-Dm-FEtu4.js";import{i as A}from"./identity-BtKjXVdB.js";var B=q(function(p,a,c){return L(function(i){return W(p,i,c)},a)});const D=J(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:i=H,isMultiple:S,onChange:f,textFieldProps:_=X,valueAccessor:j,labelAccessor:E,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=>Y(n(Object),r=>n(Function,t)?t(r):$(e)(r),A),F=B((e,t)=>e.value===t),b=N("label",F(i,n(Array,a)?a:[a]));return l.jsx(k,{select:!0,id:o,"data-testid":P,disabled:C(i),label:c,value:a,title:g(", ",b),onChange:M,variant:"outlined",margin:"dense",size:"small",fullWidth:!0,SelectProps:{ref:u,open:d,autoWidth:!0,multiple:S,disabled:T,onOpen:()=>h(!0),onClose:()=>h(!1),classes:{root:s.root},renderValue:()=>l.jsx(v,{variant:"inherit",className:s.typo,children:g(", ",b)}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},classes:{paper:s.paper},PaperProps:{style:{width:O}}}},className:s.root,..._,children:z(e=>{const t=y("value")(j)(e),r=y("label")(E)(e);return l.jsx(w,{id:r,value:t,dense:!0,"aria-label":r,title:r,disabled:x(!1,"disabled")(e),children:l.jsx(v,{variant:"inherit",className:R(s.typo,{[s.disabledLabel]:x(!1,"disabled")(e)}),children:r})},`${p}-${t}`)})(i)})};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};
@@ -1 +1 @@
1
- import{p as s,r as p,n as ne,o as L,K as he,j as h,e as ut,U as dt,s as de,f as pt,z as ct}from"./iframe-a_pZB-t6.js";import{a as Q,g as Y,d as Z,s as $,r as _,u as Ie,b as pe,m as ft,c as bt}from"./UseCases-CyXRdmDK.js";import{u as je}from"./useSlotProps-pWzUupkJ.js";import{b as Ce,I as xe,c as ye,r as Re,d as Se,e as Pe,g as mt,f as gt,P as vt,a as ht}from"./Popover-NnzkJg8l.js";import{o as ve}from"./ownerDocument-DW-IO8s5.js";import{L as It}from"./List-COrkKCMC.js";import{u as We}from"./useControlled-CwodZjTa.js";import{u as ze,f as Ke}from"./formControlState-Dg0qiabM.js";import{g as Ct}from"./Grow-CsG6GW7T.js";function xt(e){return Q("MuiInput",e)}const ee=s({},Ce,Y("MuiInput",["root","underline","input"])),yt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Rt=e=>{const{classes:t,disableUnderline:o}=e,u=Z({root:["root",!o&&"underline"],input:["input"]},xt,t);return s({},t,u)},St=$(ye,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...Re(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`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"},[`&.${ee.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ee.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${ee.disabled}, .${ee.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ee.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Pt=$(Se,{name:"MuiInput",slot:"Input",overridesResolver:Pe})({}),Ve=p.forwardRef(function(t,o){var r,u,c,d;const l=ne({props:t,name:"MuiInput"}),{disableUnderline:v,components:y={},componentsProps:R,fullWidth:M=!1,inputComponent:S="input",multiline:g=!1,slotProps:O,slots:w={},type:k="text"}=l,f=L(l,yt),P=Rt(l),i={root:{ownerState:{disableUnderline:v}}},I=O??R?he(O??R,i):i,C=(r=(u=w.root)!=null?u:y.Root)!=null?r:St,b=(c=(d=w.input)!=null?d:y.Input)!=null?c:Pt;return h.jsx(xe,s({slots:{root:C,input:b},slotProps:I,fullWidth:M,inputComponent:S,multiline:g,ref:o,type:k},f,{classes:P}))});Ve.muiName="Input";function Mt(e){return Q("MuiFilledInput",e)}const K=s({},Ce,Y("MuiFilledInput",["root","underline","input"])),$t=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ot=e=>{const{classes:t,disableUnderline:o}=e,u=Z({root:["root",!o&&"underline"],input:["input"]},Mt,t);return s({},t,u)},wt=$(ye,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...Re(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const r=e.palette.mode==="light",u=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,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:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${K.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${K.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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})`:u}`,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=$(Se,{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=p.forwardRef(function(t,o){var r,u,c,d;const l=ne({props:t,name:"MuiFilledInput"}),{components:v={},componentsProps:y,fullWidth:R=!1,inputComponent:M="input",multiline:S=!1,slotProps:g,slots:O={},type:w="text"}=l,k=L(l,$t),f=s({},l,{fullWidth:R,inputComponent:M,multiline:S,type:w}),P=Ot(l),a={root:{ownerState:f},input:{ownerState:f}},i=g??y?he(a,g??y):a,I=(r=(u=O.root)!=null?u:v.Root)!=null?r:wt,C=(c=(d=O.input)!=null?d:v.Input)!=null?c:Ft;return h.jsx(xe,s({slots:{root:I,input:C},componentsProps:i,fullWidth:R,inputComponent:M,multiline:S,ref:o,type:w},k,{classes:P}))});He.muiName="Input";var Te;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%"}),Et=$("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 Lt(e){const{className:t,label:o,notched:r}=e,u=L(e,kt),c=o!=null&&o!=="",d=s({},e,{notched:r,withLabel:c});return h.jsx(Nt,s({"aria-hidden":!0,className:t,ownerState:d},u,{children:h.jsx(Et,{ownerState:d,children:c?h.jsx("span",{children:o}):Te||(Te=h.jsx("span",{className:"notranslate",children:"​"}))})}))}function Bt(e){return Q("MuiOutlinedInput",e)}const T=s({},Ce,Y("MuiOutlinedInput",["root","notchedOutline","input"])),Dt=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jt=e=>{const{classes:t}=e,r=Z({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bt,t);return s({},t,r)},Wt=$(ye,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Re})(({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 .${T.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${T.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${T.focused} .${T.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${T.error} .${T.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${T.disabled} .${T.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"}))}),Tt=$(Lt,{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=$(Se,{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=p.forwardRef(function(t,o){var r,u,c,d,l;const v=ne({props:t,name:"MuiOutlinedInput"}),{components:y={},fullWidth:R=!1,inputComponent:M="input",label:S,multiline:g=!1,notched:O,slots:w={},type:k="text"}=v,f=L(v,Dt),P=jt(v),a=ze(),i=Ke({props:v,muiFormControl:a,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=s({},v,{color:i.color||"primary",disabled:i.disabled,error:i.error,focused:i.focused,formControl:a,fullWidth:R,hiddenLabel:i.hiddenLabel,multiline:g,size:i.size,type:k}),C=(r=(u=w.root)!=null?u:y.Root)!=null?r:Wt,b=(c=(d=w.input)!=null?d:y.Input)!=null?c:_t;return h.jsx(xe,s({slots:{root:C,input:b},renderSuffix:N=>h.jsx(Tt,{ownerState:I,className:P.notchedOutline,label:S!=null&&S!==""&&i.required?l||(l=h.jsxs(p.Fragment,{children:[S," ","*"]})):S,notched:typeof O<"u"?O:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:R,inputComponent:M,multiline:g,ref:o,type:k},f,{classes:s({},P,{notchedOutline:null})}))});Xe.muiName="Input";const At=["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 te(e,t,o,r,u,c){let d=!1,l=u(e,t,t?o:!1);for(;l;){if(l===e.firstChild){if(d)return!1;d=!0}const v=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!qe(l,c)||v)l=u(e,l,o);else return l.focus(),!0}return!1}const Ut=p.forwardRef(function(t,o){const{actions:r,autoFocus:u=!1,autoFocusItem:c=!1,children:d,className:l,disabledItemsFocusable:v=!1,disableListWrap:y=!1,onKeyDown:R,variant:M="selectedMenu"}=t,S=L(t,At),g=p.useRef(null),O=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ut(()=>{u&&g.current.focus()},[u]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(a,{direction:i})=>{const I=!g.current.style.width;if(a.clientHeight<g.current.clientHeight&&I){const C=`${mt(ve(a))}px`;g.current.style[i==="rtl"?"paddingLeft":"paddingRight"]=C,g.current.style.width=`calc(100% + ${C})`}return g.current}}),[]);const w=a=>{const i=g.current,I=a.key,C=ve(i).activeElement;if(I==="ArrowDown")a.preventDefault(),te(i,C,y,v,ge);else if(I==="ArrowUp")a.preventDefault(),te(i,C,y,v,_e);else if(I==="Home")a.preventDefault(),te(i,null,y,v,ge);else if(I==="End")a.preventDefault(),te(i,null,y,v,_e);else if(I.length===1){const b=O.current,N=I.toLowerCase(),j=performance.now();b.keys.length>0&&(j-b.lastTime>500?(b.keys=[],b.repeating=!0,b.previousKeyMatched=!0):b.repeating&&N!==b.keys[0]&&(b.repeating=!1)),b.lastTime=j,b.keys.push(N);const B=C&&!b.repeating&&qe(C,b);b.previousKeyMatched&&(B||te(i,C,!1,v,ge,b))?a.preventDefault():b.previousKeyMatched=!1}R&&R(a)},k=Ie(g,o);let f=-1;p.Children.forEach(d,(a,i)=>{if(!p.isValidElement(a)){f===i&&(f+=1,f>=d.length&&(f=-1));return}a.props.disabled||(M==="selectedMenu"&&a.props.selected||f===-1)&&(f=i),f===i&&(a.props.disabled||a.props.muiSkipListHighlight||a.type.muiSkipListHighlight)&&(f+=1,f>=d.length&&(f=-1))});const P=p.Children.map(d,(a,i)=>{if(i===f){const I={};return c&&(I.autoFocus=!0),a.props.tabIndex===void 0&&M==="selectedMenu"&&(I.tabIndex=0),p.cloneElement(a,I)}return a});return h.jsx(It,s({role:"menu",ref:k,className:l,onKeyDown:w,tabIndex:u?0:-1},S,{children:P}))});function zt(e){return Q("MuiMenu",e)}Y("MuiMenu",["root","paper","list"]);const Kt=["onEntering"],Vt=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ht={vertical:"top",horizontal:"right"},Xt={vertical:"top",horizontal:"left"},qt=e=>{const{classes:t}=e;return Z({root:["root"],paper:["paper"],list:["list"]},zt,t)},Gt=$(vt,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jt=$(gt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Qt=$(Ut,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Yt=p.forwardRef(function(t,o){var r,u;const c=ne({props:t,name:"MuiMenu"}),{autoFocus:d=!0,children:l,className:v,disableAutoFocusItem:y=!1,MenuListProps:R={},onClose:M,open:S,PaperProps:g={},PopoverClasses:O,transitionDuration:w="auto",TransitionProps:{onEntering:k}={},variant:f="selectedMenu",slots:P={},slotProps:a={}}=c,i=L(c.TransitionProps,Kt),I=L(c,Vt),C=dt(),b=s({},c,{autoFocus:d,disableAutoFocusItem:y,MenuListProps:R,onEntering:k,PaperProps:g,transitionDuration:w,TransitionProps:i,variant:f}),N=qt(b),j=d&&!y&&S,B=p.useRef(null),V=(m,U)=>{B.current&&B.current.adjustStyleForScrollbar(m,{direction:C?"rtl":"ltr"}),k&&k(m,U)},A=m=>{m.key==="Tab"&&(m.preventDefault(),M&&M(m,"tabKeyDown"))};let E=-1;p.Children.map(l,(m,U)=>{p.isValidElement(m)&&(m.props.disabled||(f==="selectedMenu"&&m.props.selected||E===-1)&&(E=U))});const D=(r=P.paper)!=null?r:Jt,H=(u=a.paper)!=null?u:g,X=je({elementType:P.root,externalSlotProps:a.root,ownerState:b,className:[N.root,v]}),W=je({elementType:D,externalSlotProps:H,ownerState:b,className:N.paper});return h.jsx(Gt,s({onClose:M,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ht:Xt,slots:{paper:D,root:P.root},slotProps:{root:X,paper:W},open:S,ref:o,transitionDuration:w,TransitionProps:s({onEntering:V},i),ownerState:b},I,{classes:O,children:h.jsx(Qt,s({onKeyDown:A,actions:B,autoFocus:d&&(E===-1||y),autoFocusItem:j,variant:f},R,{className:pe(N.list,R.className),children:l}))}))});function Zt(e){return Q("MuiNativeSelect",e)}const Me=Y("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),eo=["className","disabled","error","IconComponent","inputRef","variant"],to=e=>{const{classes:t,variant:o,disabled:r,multiple:u,open:c,error:d}=e,l={select:["select",o,r&&"disabled",u&&"multiple",d&&"error"],icon:["icon",`icon${de(o)}`,c&&"iconOpen",r&&"disabled"]};return Z(l,Zt,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}}),oo=$("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}),no=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${de(o.variant)}`],o.open&&t.iconOpen]}})(Je),ro=p.forwardRef(function(t,o){const{className:r,disabled:u,error:c,IconComponent:d,inputRef:l,variant:v="standard"}=t,y=L(t,eo),R=s({},t,{disabled:u,variant:v,error:c}),M=to(R);return h.jsxs(p.Fragment,{children:[h.jsx(oo,s({ownerState:R,className:pe(M.select,r),disabled:u,ref:l||o},y)),t.multiple?null:h.jsx(no,{as:d,ownerState:R,className:M.icon})]})});function so(e){return Q("MuiSelect",e)}const oe=Y("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ae;const lo=["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"],io=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${oe.select}`]:t.select},{[`&.${oe.select}`]:t[o.variant]},{[`&.${oe.error}`]:t.error},{[`&.${oe.multiple}`]:t.multiple}]}})(Ge,{[`&.${oe.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ao=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${de(o.variant)}`],o.open&&t.iconOpen]}})(Je),uo=$("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 Ue(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function po(e){return e==null||typeof e=="string"&&!e.trim()}const co=e=>{const{classes:t,variant:o,disabled:r,multiple:u,open:c,error:d}=e,l={select:["select",o,r&&"disabled",u&&"multiple",d&&"error"],icon:["icon",`icon${de(o)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Z(l,so,t)},fo=p.forwardRef(function(t,o){var r;const{"aria-describedby":u,"aria-label":c,autoFocus:d,autoWidth:l,children:v,className:y,defaultOpen:R,defaultValue:M,disabled:S,displayEmpty:g,error:O=!1,IconComponent:w,inputRef:k,labelId:f,MenuProps:P={},multiple:a,name:i,onBlur:I,onChange:C,onClose:b,onFocus:N,onOpen:j,open:B,readOnly:V,renderValue:A,SelectDisplayProps:E={},tabIndex:D,value:H,variant:X="standard"}=t,W=L(t,lo),[m,U]=We({controlled:H,default:M,name:"Select"}),[Oe,Qe]=We({controlled:B,default:R,name:"Select"}),we=p.useRef(null),z=p.useRef(null),[q,Ye]=p.useState(null),{current:ce}=p.useRef(B!=null),[Ze,Fe]=p.useState(),et=Ie(o,k),tt=p.useCallback(n=>{z.current=n,n&&Ye(n)},[]),re=q?.parentNode;p.useImperativeHandle(et,()=>({focus:()=>{z.current.focus()},node:we.current,value:m}),[m]),p.useEffect(()=>{R&&Oe&&q&&!ce&&(Fe(l?null:re.clientWidth),z.current.focus())},[q,l]),p.useEffect(()=>{d&&z.current.focus()},[d]),p.useEffect(()=>{if(!f)return;const n=ve(z.current).getElementById(f);if(n){const x=()=>{getSelection().isCollapsed&&z.current.focus()};return n.addEventListener("click",x),()=>{n.removeEventListener("click",x)}}},[f]);const se=(n,x)=>{n?j&&j(x):b&&b(x),ce||(Fe(l?null:re.clientWidth),Qe(n))},ot=n=>{n.button===0&&(n.preventDefault(),z.current.focus(),se(!0,n))},nt=n=>{se(!1,n)},ke=p.Children.toArray(v),rt=n=>{const x=ke.find(F=>F.props.value===n.target.value);x!==void 0&&(U(x.props.value),C&&C(n,x))},st=n=>x=>{let F;if(x.currentTarget.hasAttribute("tabindex")){if(a){F=Array.isArray(m)?m.slice():[];const J=m.indexOf(n.props.value);J===-1?F.push(n.props.value):F.splice(J,1)}else F=n.props.value;if(n.props.onClick&&n.props.onClick(x),m!==F&&(U(F),C)){const J=x.nativeEvent||x,De=new J.constructor(J.type,J);Object.defineProperty(De,"target",{writable:!0,value:{value:F,name:i}}),C(De,n)}a||se(!1,x)}},lt=n=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(n.key)!==-1&&(n.preventDefault(),se(!0,n))},le=q!==null&&Oe,it=n=>{!le&&I&&(Object.defineProperty(n,"target",{writable:!0,value:{value:m,name:i}}),I(n))};delete W["aria-invalid"];let G,Ne;const ie=[];let ae=!1;(ht({value:m})||g)&&(A?G=A(m):ae=!0);const at=ke.map(n=>{if(!p.isValidElement(n))return null;let x;if(a){if(!Array.isArray(m))throw new Error(pt(2));x=m.some(F=>Ue(F,n.props.value)),x&&ae&&ie.push(n.props.children)}else x=Ue(m,n.props.value),x&&ae&&(Ne=n.props.children);return p.cloneElement(n,{"aria-selected":x?"true":"false",onClick:st(n),onKeyUp:F=>{F.key===" "&&F.preventDefault(),n.props.onKeyUp&&n.props.onKeyUp(F)},role:"option",selected:x,value:void 0,"data-value":n.props.value})});ae&&(a?ie.length===0?G=null:G=ie.reduce((n,x,F)=>(n.push(x),F<ie.length-1&&n.push(", "),n),[]):G=Ne);let Ee=Ze;!l&&ce&&q&&(Ee=re.clientWidth);let fe;typeof D<"u"?fe=D:fe=S?null:0;const Le=E.id||(i?`mui-component-select-${i}`:void 0),ue=s({},t,{variant:X,value:m,open:le,error:O}),be=co(ue),me=s({},P.PaperProps,(r=P.slotProps)==null?void 0:r.paper),Be=ct();return h.jsxs(p.Fragment,{children:[h.jsx(io,s({ref:tt,tabIndex:fe,role:"combobox","aria-controls":Be,"aria-disabled":S?"true":void 0,"aria-expanded":le?"true":"false","aria-haspopup":"listbox","aria-label":c,"aria-labelledby":[f,Le].filter(Boolean).join(" ")||void 0,"aria-describedby":u,onKeyDown:lt,onMouseDown:S||V?null:ot,onBlur:it,onFocus:N},E,{ownerState:ue,className:pe(E.className,be.select,y),id:Le,children:po(G)?Ae||(Ae=h.jsx("span",{className:"notranslate",children:"​"})):G})),h.jsx(uo,s({"aria-invalid":O,value:Array.isArray(m)?m.join(","):m,name:i,ref:we,"aria-hidden":!0,onChange:rt,tabIndex:-1,disabled:S,className:be.nativeInput,autoFocus:d,ownerState:ue},W)),h.jsx(ao,{as:w,className:be.icon,ownerState:ue}),h.jsx(Yt,s({id:`menu-${i||""}`,anchorEl:re,open:le,onClose:nt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},P,{MenuListProps:s({"aria-labelledby":f,role:"listbox","aria-multiselectable":a?"true":void 0,disableListWrap:!0,id:Be},P.MenuListProps),slotProps:s({},P.slotProps,{paper:s({},me,{style:s({minWidth:Ee},me!=null?me.style:null)})}),children:at}))]})}),bo=bt(h.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mo=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],go=["root"],vo=e=>{const{classes:t}=e;return t},$e={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_(e)&&e!=="variant",slot:"Root"},ho=$(Ve,$e)(""),Io=$(Xe,$e)(""),Co=$(He,$e)(""),xo=p.forwardRef(function(t,o){const r=ne({name:"MuiSelect",props:t}),{autoWidth:u=!1,children:c,classes:d={},className:l,defaultOpen:v=!1,displayEmpty:y=!1,IconComponent:R=bo,id:M,input:S,inputProps:g,label:O,labelId:w,MenuProps:k,multiple:f=!1,native:P=!1,onClose:a,onOpen:i,open:I,renderValue:C,SelectDisplayProps:b,variant:N="outlined"}=r,j=L(r,mo),B=P?ro:fo,V=ze(),A=Ke({props:r,muiFormControl:V,states:["variant","error"]}),E=A.variant||N,D=s({},r,{variant:E,classes:d}),H=vo(D),X=L(H,go),W=S||{standard:h.jsx(ho,{ownerState:D}),outlined:h.jsx(Io,{label:O,ownerState:D}),filled:h.jsx(Co,{ownerState:D})}[E],m=Ie(o,Ct(W));return h.jsx(p.Fragment,{children:p.cloneElement(W,s({inputComponent:B,inputProps:s({children:c,error:A.error,IconComponent:R,variant:E,type:void 0,multiple:f},P?{id:M}:{autoWidth:u,defaultOpen:v,displayEmpty:y,labelId:w,MenuProps:k,onClose:a,onOpen:i,open:I,renderValue:C,SelectDisplayProps:s({id:M},b)},g,{classes:g?he(X,g.classes):X},S?S.props.inputProps:{})},(f&&P||y)&&E==="outlined"?{notched:!0}:{},{ref:m,className:pe(W.props.className,l,H.root)},!S&&{variant:E},j))})});xo.muiName="Select";export{He as F,Ve as I,Xe as O,xo as S};
1
+ import{p as s,r as p,n as ne,o as L,K as he,j as h,e as ut,U as dt,s as de,f as pt,z as ct}from"./iframe-DtQmhjUk.js";import{a as Q,g as Y,d as Z,s as $,r as _,u as Ie,b as pe,m as ft,c as bt}from"./UseCases-CTSiSN6M.js";import{u as je}from"./useSlotProps-HyTzBVWz.js";import{b as Ce,I as xe,c as ye,r as Re,d as Se,e as Pe,g as mt,f as gt,P as vt,a as ht}from"./Popover-eG2KpABL.js";import{o as ve}from"./ownerDocument-DW-IO8s5.js";import{L as It}from"./List-BoNQy3mo.js";import{u as We}from"./useControlled-CDPfU0tS.js";import{u as ze,f as Ke}from"./formControlState-DDW9809B.js";import{g as Ct}from"./Grow-P72gltHT.js";function xt(e){return Q("MuiInput",e)}const ee=s({},Ce,Y("MuiInput",["root","underline","input"])),yt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Rt=e=>{const{classes:t,disableUnderline:o}=e,u=Z({root:["root",!o&&"underline"],input:["input"]},xt,t);return s({},t,u)},St=$(ye,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...Re(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`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"},[`&.${ee.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ee.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${ee.disabled}, .${ee.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ee.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Pt=$(Se,{name:"MuiInput",slot:"Input",overridesResolver:Pe})({}),Ve=p.forwardRef(function(t,o){var r,u,c,d;const l=ne({props:t,name:"MuiInput"}),{disableUnderline:v,components:y={},componentsProps:R,fullWidth:M=!1,inputComponent:S="input",multiline:g=!1,slotProps:O,slots:w={},type:k="text"}=l,f=L(l,yt),P=Rt(l),i={root:{ownerState:{disableUnderline:v}}},I=O??R?he(O??R,i):i,C=(r=(u=w.root)!=null?u:y.Root)!=null?r:St,b=(c=(d=w.input)!=null?d:y.Input)!=null?c:Pt;return h.jsx(xe,s({slots:{root:C,input:b},slotProps:I,fullWidth:M,inputComponent:S,multiline:g,ref:o,type:k},f,{classes:P}))});Ve.muiName="Input";function Mt(e){return Q("MuiFilledInput",e)}const K=s({},Ce,Y("MuiFilledInput",["root","underline","input"])),$t=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ot=e=>{const{classes:t,disableUnderline:o}=e,u=Z({root:["root",!o&&"underline"],input:["input"]},Mt,t);return s({},t,u)},wt=$(ye,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...Re(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const r=e.palette.mode==="light",u=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,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:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${K.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${K.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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})`:u}`,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=$(Se,{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=p.forwardRef(function(t,o){var r,u,c,d;const l=ne({props:t,name:"MuiFilledInput"}),{components:v={},componentsProps:y,fullWidth:R=!1,inputComponent:M="input",multiline:S=!1,slotProps:g,slots:O={},type:w="text"}=l,k=L(l,$t),f=s({},l,{fullWidth:R,inputComponent:M,multiline:S,type:w}),P=Ot(l),a={root:{ownerState:f},input:{ownerState:f}},i=g??y?he(a,g??y):a,I=(r=(u=O.root)!=null?u:v.Root)!=null?r:wt,C=(c=(d=O.input)!=null?d:v.Input)!=null?c:Ft;return h.jsx(xe,s({slots:{root:I,input:C},componentsProps:i,fullWidth:R,inputComponent:M,multiline:S,ref:o,type:w},k,{classes:P}))});He.muiName="Input";var Te;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%"}),Et=$("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 Lt(e){const{className:t,label:o,notched:r}=e,u=L(e,kt),c=o!=null&&o!=="",d=s({},e,{notched:r,withLabel:c});return h.jsx(Nt,s({"aria-hidden":!0,className:t,ownerState:d},u,{children:h.jsx(Et,{ownerState:d,children:c?h.jsx("span",{children:o}):Te||(Te=h.jsx("span",{className:"notranslate",children:"​"}))})}))}function Bt(e){return Q("MuiOutlinedInput",e)}const T=s({},Ce,Y("MuiOutlinedInput",["root","notchedOutline","input"])),Dt=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jt=e=>{const{classes:t}=e,r=Z({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bt,t);return s({},t,r)},Wt=$(ye,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Re})(({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 .${T.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${T.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${T.focused} .${T.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${T.error} .${T.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${T.disabled} .${T.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"}))}),Tt=$(Lt,{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=$(Se,{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=p.forwardRef(function(t,o){var r,u,c,d,l;const v=ne({props:t,name:"MuiOutlinedInput"}),{components:y={},fullWidth:R=!1,inputComponent:M="input",label:S,multiline:g=!1,notched:O,slots:w={},type:k="text"}=v,f=L(v,Dt),P=jt(v),a=ze(),i=Ke({props:v,muiFormControl:a,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=s({},v,{color:i.color||"primary",disabled:i.disabled,error:i.error,focused:i.focused,formControl:a,fullWidth:R,hiddenLabel:i.hiddenLabel,multiline:g,size:i.size,type:k}),C=(r=(u=w.root)!=null?u:y.Root)!=null?r:Wt,b=(c=(d=w.input)!=null?d:y.Input)!=null?c:_t;return h.jsx(xe,s({slots:{root:C,input:b},renderSuffix:N=>h.jsx(Tt,{ownerState:I,className:P.notchedOutline,label:S!=null&&S!==""&&i.required?l||(l=h.jsxs(p.Fragment,{children:[S," ","*"]})):S,notched:typeof O<"u"?O:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:R,inputComponent:M,multiline:g,ref:o,type:k},f,{classes:s({},P,{notchedOutline:null})}))});Xe.muiName="Input";const At=["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 te(e,t,o,r,u,c){let d=!1,l=u(e,t,t?o:!1);for(;l;){if(l===e.firstChild){if(d)return!1;d=!0}const v=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!qe(l,c)||v)l=u(e,l,o);else return l.focus(),!0}return!1}const Ut=p.forwardRef(function(t,o){const{actions:r,autoFocus:u=!1,autoFocusItem:c=!1,children:d,className:l,disabledItemsFocusable:v=!1,disableListWrap:y=!1,onKeyDown:R,variant:M="selectedMenu"}=t,S=L(t,At),g=p.useRef(null),O=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ut(()=>{u&&g.current.focus()},[u]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(a,{direction:i})=>{const I=!g.current.style.width;if(a.clientHeight<g.current.clientHeight&&I){const C=`${mt(ve(a))}px`;g.current.style[i==="rtl"?"paddingLeft":"paddingRight"]=C,g.current.style.width=`calc(100% + ${C})`}return g.current}}),[]);const w=a=>{const i=g.current,I=a.key,C=ve(i).activeElement;if(I==="ArrowDown")a.preventDefault(),te(i,C,y,v,ge);else if(I==="ArrowUp")a.preventDefault(),te(i,C,y,v,_e);else if(I==="Home")a.preventDefault(),te(i,null,y,v,ge);else if(I==="End")a.preventDefault(),te(i,null,y,v,_e);else if(I.length===1){const b=O.current,N=I.toLowerCase(),j=performance.now();b.keys.length>0&&(j-b.lastTime>500?(b.keys=[],b.repeating=!0,b.previousKeyMatched=!0):b.repeating&&N!==b.keys[0]&&(b.repeating=!1)),b.lastTime=j,b.keys.push(N);const B=C&&!b.repeating&&qe(C,b);b.previousKeyMatched&&(B||te(i,C,!1,v,ge,b))?a.preventDefault():b.previousKeyMatched=!1}R&&R(a)},k=Ie(g,o);let f=-1;p.Children.forEach(d,(a,i)=>{if(!p.isValidElement(a)){f===i&&(f+=1,f>=d.length&&(f=-1));return}a.props.disabled||(M==="selectedMenu"&&a.props.selected||f===-1)&&(f=i),f===i&&(a.props.disabled||a.props.muiSkipListHighlight||a.type.muiSkipListHighlight)&&(f+=1,f>=d.length&&(f=-1))});const P=p.Children.map(d,(a,i)=>{if(i===f){const I={};return c&&(I.autoFocus=!0),a.props.tabIndex===void 0&&M==="selectedMenu"&&(I.tabIndex=0),p.cloneElement(a,I)}return a});return h.jsx(It,s({role:"menu",ref:k,className:l,onKeyDown:w,tabIndex:u?0:-1},S,{children:P}))});function zt(e){return Q("MuiMenu",e)}Y("MuiMenu",["root","paper","list"]);const Kt=["onEntering"],Vt=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ht={vertical:"top",horizontal:"right"},Xt={vertical:"top",horizontal:"left"},qt=e=>{const{classes:t}=e;return Z({root:["root"],paper:["paper"],list:["list"]},zt,t)},Gt=$(vt,{shouldForwardProp:e=>_(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jt=$(gt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Qt=$(Ut,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Yt=p.forwardRef(function(t,o){var r,u;const c=ne({props:t,name:"MuiMenu"}),{autoFocus:d=!0,children:l,className:v,disableAutoFocusItem:y=!1,MenuListProps:R={},onClose:M,open:S,PaperProps:g={},PopoverClasses:O,transitionDuration:w="auto",TransitionProps:{onEntering:k}={},variant:f="selectedMenu",slots:P={},slotProps:a={}}=c,i=L(c.TransitionProps,Kt),I=L(c,Vt),C=dt(),b=s({},c,{autoFocus:d,disableAutoFocusItem:y,MenuListProps:R,onEntering:k,PaperProps:g,transitionDuration:w,TransitionProps:i,variant:f}),N=qt(b),j=d&&!y&&S,B=p.useRef(null),V=(m,U)=>{B.current&&B.current.adjustStyleForScrollbar(m,{direction:C?"rtl":"ltr"}),k&&k(m,U)},A=m=>{m.key==="Tab"&&(m.preventDefault(),M&&M(m,"tabKeyDown"))};let E=-1;p.Children.map(l,(m,U)=>{p.isValidElement(m)&&(m.props.disabled||(f==="selectedMenu"&&m.props.selected||E===-1)&&(E=U))});const D=(r=P.paper)!=null?r:Jt,H=(u=a.paper)!=null?u:g,X=je({elementType:P.root,externalSlotProps:a.root,ownerState:b,className:[N.root,v]}),W=je({elementType:D,externalSlotProps:H,ownerState:b,className:N.paper});return h.jsx(Gt,s({onClose:M,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ht:Xt,slots:{paper:D,root:P.root},slotProps:{root:X,paper:W},open:S,ref:o,transitionDuration:w,TransitionProps:s({onEntering:V},i),ownerState:b},I,{classes:O,children:h.jsx(Qt,s({onKeyDown:A,actions:B,autoFocus:d&&(E===-1||y),autoFocusItem:j,variant:f},R,{className:pe(N.list,R.className),children:l}))}))});function Zt(e){return Q("MuiNativeSelect",e)}const Me=Y("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),eo=["className","disabled","error","IconComponent","inputRef","variant"],to=e=>{const{classes:t,variant:o,disabled:r,multiple:u,open:c,error:d}=e,l={select:["select",o,r&&"disabled",u&&"multiple",d&&"error"],icon:["icon",`icon${de(o)}`,c&&"iconOpen",r&&"disabled"]};return Z(l,Zt,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}}),oo=$("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}),no=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${de(o.variant)}`],o.open&&t.iconOpen]}})(Je),ro=p.forwardRef(function(t,o){const{className:r,disabled:u,error:c,IconComponent:d,inputRef:l,variant:v="standard"}=t,y=L(t,eo),R=s({},t,{disabled:u,variant:v,error:c}),M=to(R);return h.jsxs(p.Fragment,{children:[h.jsx(oo,s({ownerState:R,className:pe(M.select,r),disabled:u,ref:l||o},y)),t.multiple?null:h.jsx(no,{as:d,ownerState:R,className:M.icon})]})});function so(e){return Q("MuiSelect",e)}const oe=Y("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ae;const lo=["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"],io=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${oe.select}`]:t.select},{[`&.${oe.select}`]:t[o.variant]},{[`&.${oe.error}`]:t.error},{[`&.${oe.multiple}`]:t.multiple}]}})(Ge,{[`&.${oe.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ao=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${de(o.variant)}`],o.open&&t.iconOpen]}})(Je),uo=$("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 Ue(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function po(e){return e==null||typeof e=="string"&&!e.trim()}const co=e=>{const{classes:t,variant:o,disabled:r,multiple:u,open:c,error:d}=e,l={select:["select",o,r&&"disabled",u&&"multiple",d&&"error"],icon:["icon",`icon${de(o)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Z(l,so,t)},fo=p.forwardRef(function(t,o){var r;const{"aria-describedby":u,"aria-label":c,autoFocus:d,autoWidth:l,children:v,className:y,defaultOpen:R,defaultValue:M,disabled:S,displayEmpty:g,error:O=!1,IconComponent:w,inputRef:k,labelId:f,MenuProps:P={},multiple:a,name:i,onBlur:I,onChange:C,onClose:b,onFocus:N,onOpen:j,open:B,readOnly:V,renderValue:A,SelectDisplayProps:E={},tabIndex:D,value:H,variant:X="standard"}=t,W=L(t,lo),[m,U]=We({controlled:H,default:M,name:"Select"}),[Oe,Qe]=We({controlled:B,default:R,name:"Select"}),we=p.useRef(null),z=p.useRef(null),[q,Ye]=p.useState(null),{current:ce}=p.useRef(B!=null),[Ze,Fe]=p.useState(),et=Ie(o,k),tt=p.useCallback(n=>{z.current=n,n&&Ye(n)},[]),re=q?.parentNode;p.useImperativeHandle(et,()=>({focus:()=>{z.current.focus()},node:we.current,value:m}),[m]),p.useEffect(()=>{R&&Oe&&q&&!ce&&(Fe(l?null:re.clientWidth),z.current.focus())},[q,l]),p.useEffect(()=>{d&&z.current.focus()},[d]),p.useEffect(()=>{if(!f)return;const n=ve(z.current).getElementById(f);if(n){const x=()=>{getSelection().isCollapsed&&z.current.focus()};return n.addEventListener("click",x),()=>{n.removeEventListener("click",x)}}},[f]);const se=(n,x)=>{n?j&&j(x):b&&b(x),ce||(Fe(l?null:re.clientWidth),Qe(n))},ot=n=>{n.button===0&&(n.preventDefault(),z.current.focus(),se(!0,n))},nt=n=>{se(!1,n)},ke=p.Children.toArray(v),rt=n=>{const x=ke.find(F=>F.props.value===n.target.value);x!==void 0&&(U(x.props.value),C&&C(n,x))},st=n=>x=>{let F;if(x.currentTarget.hasAttribute("tabindex")){if(a){F=Array.isArray(m)?m.slice():[];const J=m.indexOf(n.props.value);J===-1?F.push(n.props.value):F.splice(J,1)}else F=n.props.value;if(n.props.onClick&&n.props.onClick(x),m!==F&&(U(F),C)){const J=x.nativeEvent||x,De=new J.constructor(J.type,J);Object.defineProperty(De,"target",{writable:!0,value:{value:F,name:i}}),C(De,n)}a||se(!1,x)}},lt=n=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(n.key)!==-1&&(n.preventDefault(),se(!0,n))},le=q!==null&&Oe,it=n=>{!le&&I&&(Object.defineProperty(n,"target",{writable:!0,value:{value:m,name:i}}),I(n))};delete W["aria-invalid"];let G,Ne;const ie=[];let ae=!1;(ht({value:m})||g)&&(A?G=A(m):ae=!0);const at=ke.map(n=>{if(!p.isValidElement(n))return null;let x;if(a){if(!Array.isArray(m))throw new Error(pt(2));x=m.some(F=>Ue(F,n.props.value)),x&&ae&&ie.push(n.props.children)}else x=Ue(m,n.props.value),x&&ae&&(Ne=n.props.children);return p.cloneElement(n,{"aria-selected":x?"true":"false",onClick:st(n),onKeyUp:F=>{F.key===" "&&F.preventDefault(),n.props.onKeyUp&&n.props.onKeyUp(F)},role:"option",selected:x,value:void 0,"data-value":n.props.value})});ae&&(a?ie.length===0?G=null:G=ie.reduce((n,x,F)=>(n.push(x),F<ie.length-1&&n.push(", "),n),[]):G=Ne);let Ee=Ze;!l&&ce&&q&&(Ee=re.clientWidth);let fe;typeof D<"u"?fe=D:fe=S?null:0;const Le=E.id||(i?`mui-component-select-${i}`:void 0),ue=s({},t,{variant:X,value:m,open:le,error:O}),be=co(ue),me=s({},P.PaperProps,(r=P.slotProps)==null?void 0:r.paper),Be=ct();return h.jsxs(p.Fragment,{children:[h.jsx(io,s({ref:tt,tabIndex:fe,role:"combobox","aria-controls":Be,"aria-disabled":S?"true":void 0,"aria-expanded":le?"true":"false","aria-haspopup":"listbox","aria-label":c,"aria-labelledby":[f,Le].filter(Boolean).join(" ")||void 0,"aria-describedby":u,onKeyDown:lt,onMouseDown:S||V?null:ot,onBlur:it,onFocus:N},E,{ownerState:ue,className:pe(E.className,be.select,y),id:Le,children:po(G)?Ae||(Ae=h.jsx("span",{className:"notranslate",children:"​"})):G})),h.jsx(uo,s({"aria-invalid":O,value:Array.isArray(m)?m.join(","):m,name:i,ref:we,"aria-hidden":!0,onChange:rt,tabIndex:-1,disabled:S,className:be.nativeInput,autoFocus:d,ownerState:ue},W)),h.jsx(ao,{as:w,className:be.icon,ownerState:ue}),h.jsx(Yt,s({id:`menu-${i||""}`,anchorEl:re,open:le,onClose:nt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},P,{MenuListProps:s({"aria-labelledby":f,role:"listbox","aria-multiselectable":a?"true":void 0,disableListWrap:!0,id:Be},P.MenuListProps),slotProps:s({},P.slotProps,{paper:s({},me,{style:s({minWidth:Ee},me!=null?me.style:null)})}),children:at}))]})}),bo=bt(h.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mo=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],go=["root"],vo=e=>{const{classes:t}=e;return t},$e={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_(e)&&e!=="variant",slot:"Root"},ho=$(Ve,$e)(""),Io=$(Xe,$e)(""),Co=$(He,$e)(""),xo=p.forwardRef(function(t,o){const r=ne({name:"MuiSelect",props:t}),{autoWidth:u=!1,children:c,classes:d={},className:l,defaultOpen:v=!1,displayEmpty:y=!1,IconComponent:R=bo,id:M,input:S,inputProps:g,label:O,labelId:w,MenuProps:k,multiple:f=!1,native:P=!1,onClose:a,onOpen:i,open:I,renderValue:C,SelectDisplayProps:b,variant:N="outlined"}=r,j=L(r,mo),B=P?ro:fo,V=ze(),A=Ke({props:r,muiFormControl:V,states:["variant","error"]}),E=A.variant||N,D=s({},r,{variant:E,classes:d}),H=vo(D),X=L(H,go),W=S||{standard:h.jsx(ho,{ownerState:D}),outlined:h.jsx(Io,{label:O,ownerState:D}),filled:h.jsx(Co,{ownerState:D})}[E],m=Ie(o,Ct(W));return h.jsx(p.Fragment,{children:p.cloneElement(W,s({inputComponent:B,inputProps:s({children:c,error:A.error,IconComponent:R,variant:E,type:void 0,multiple:f},P?{id:M}:{autoWidth:u,defaultOpen:v,displayEmpty:y,labelId:w,MenuProps:k,onClose:a,onOpen:i,open:I,renderValue:C,SelectDisplayProps:s({id:M},b)},g,{classes:g?he(X,g.classes):X},S?S.props.inputProps:{})},(f&&P||y)&&E==="outlined"?{notched:!0}:{},{ref:m,className:pe(W.props.className,l,H.root)},!S&&{variant:E},j))})});xo.muiName="Select";export{He as F,Ve as I,Xe as O,xo as S};
@@ -1,4 +1,4 @@
1
- import{j as a,r as p}from"./iframe-a_pZB-t6.js";import{S as r}from"./Select-BSveSpZX.js";import{w as m,U as c}from"./UseCases-CyXRdmDK.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DS-XPpOX.js";import"./_isObject-CRQ-CL0p.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./keys-MRUazFsh.js";import"./_curry3-CWUzJcT3.js";import"./toString-CzFgYQbH.js";import"./_reduce-BIM_BjAq.js";import"./_isString-DUX4qf9v.js";import"./curryN-DVrTryA3.js";import"./pluck-BnLF_Scp.js";import"./map-DAmoZ62-.js";import"./prop-Dm-FEtu4.js";import"./path-BOH92ih4.js";import"./is-DEqMKgUN.js";import"./TextField-DTKLdgYP.js";import"./Select-DvF6k9X2.js";import"./useSlotProps-pWzUupkJ.js";import"./Popover-NnzkJg8l.js";import"./formControlState-Dg0qiabM.js";import"./TextareaAutosize-BnqrzVWc.js";import"./ownerDocument-DW-IO8s5.js";import"./Grow-CsG6GW7T.js";import"./index-DadQTpM3.js";import"./index-BCSOKU0M.js";import"./useTheme-pGXs_ROT.js";import"./utils-Ci5srLYt.js";import"./Paper-CGj07eAk.js";import"./List-COrkKCMC.js";import"./ListContext-xq2a6xmy.js";import"./useControlled-CwodZjTa.js";import"./isMuiElement-C2XWHu21.js";import"./MenuItem-rwQC5Jz1.js";import"./listItemTextClasses-CZbRJWVH.js";import"./Typography-BSx6QP1S.js";import"./propOr-CKFZAF61.js";import"./pathOr-B-yGj57C.js";import"./join-DwFJnUQ2.js";import"./invoker-BytErN_V.js";import"./isEmpty-CZ36qNF2.js";import"./makeStyles-DjbLSwJE.js";import"./ifElse-_ALGpLaf.js";import"./identity-BtKjXVdB.js";const{fn:b,expect:d,userEvent:t,screen:v}=__STORYBOOK_MODULE_TEST__,o=b(),y=({value:e,...i})=>{const[s,u]=p.useState(e);return a.jsx("div",{style:{maxWidth:320},children:a.jsx(r,{...i,value:s,onChange:n=>{u(n),o(n)}})})},pe={title:"Inputs/Select",component:r,tags:["autodocs"]},l={render:()=>a.jsx(c,{base:{id:"frequency-select",optionsKey:"frequency"},cases:{Single:{label:"Frequency",value:"A",items:[{value:"A",label:"Annual"},{value:"Q",label:"Quarterly"},{value:"M",label:"Monthly"},{value:"D",label:"Daily",disabled:!0}]},Multiple:{label:"Reference area",isMultiple:!0,value:["AUS","FRA"],items:[{value:"AUS",label:"Australia"},{value:"AUT",label:"Austria"},{value:"BEL",label:"Belgium"},{value:"CAN",label:"Canada"},{value:"FRA",label:"France"}]},"Long labels":{label:"Unit of measure",value:"USD_PPP",items:[{value:"USD_PPP",label:"US dollars, current prices, current PPPs"},{value:"USD_CONST",label:"US dollars, constant prices, constant PPPs, reference year 2015"},{value:"NAT",label:"National currency, current prices"}]},"No items":{label:"Frequency",value:"",items:[]}},toggles:{disabled:{label:"Disabled",props:{disabled:!0}}},children:e=>a.jsx(y,{...e})}),play:async({canvasElement:e})=>{await t.click(m(e).getByRole("combobox")),await t.click(await v.findByRole("option",{name:"Quarterly"})),await d(o).toHaveBeenCalledWith("Q")}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
1
+ import{j as a,r as p}from"./iframe-DtQmhjUk.js";import{S as r}from"./Select-Br-nLdNe.js";import{w as m,U as c}from"./UseCases-CTSiSN6M.js";import"./preload-helper-PPVm8Dsz.js";import"./index-KWYsdMX_.js";import"./_isObject-CRQ-CL0p.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./keys-MRUazFsh.js";import"./_curry3-CWUzJcT3.js";import"./toString-CzFgYQbH.js";import"./_reduce-BIM_BjAq.js";import"./_isString-DUX4qf9v.js";import"./curryN-DVrTryA3.js";import"./pluck-BnLF_Scp.js";import"./map-DAmoZ62-.js";import"./prop-Dm-FEtu4.js";import"./path-BOH92ih4.js";import"./is-DEqMKgUN.js";import"./TextField-BO2DCZQ8.js";import"./Select-CBrzUr0M.js";import"./useSlotProps-HyTzBVWz.js";import"./Popover-eG2KpABL.js";import"./formControlState-DDW9809B.js";import"./TextareaAutosize-DACJtUo4.js";import"./ownerDocument-DW-IO8s5.js";import"./Grow-P72gltHT.js";import"./index-CTS8WOI3.js";import"./index-DwuMYrHP.js";import"./useTheme-oCpgGYKx.js";import"./utils-D1ha-Di3.js";import"./Paper-DMevUzQW.js";import"./List-BoNQy3mo.js";import"./ListContext-6aOWlypg.js";import"./useControlled-CDPfU0tS.js";import"./isMuiElement-DFGV4A4P.js";import"./MenuItem-x_XUpqSf.js";import"./listItemTextClasses-Bbcor7qj.js";import"./Typography-Dk5KhhNl.js";import"./propOr-CKFZAF61.js";import"./pathOr-B-yGj57C.js";import"./join-DwFJnUQ2.js";import"./invoker-BytErN_V.js";import"./isEmpty-CZ36qNF2.js";import"./makeStyles-DbQ_Cm1S.js";import"./ifElse-_ALGpLaf.js";import"./identity-BtKjXVdB.js";const{fn:b,expect:d,userEvent:t,screen:v}=__STORYBOOK_MODULE_TEST__,o=b(),y=({value:e,...i})=>{const[s,u]=p.useState(e);return a.jsx("div",{style:{maxWidth:320},children:a.jsx(r,{...i,value:s,onChange:n=>{u(n),o(n)}})})},pe={title:"Inputs/Select",component:r,tags:["autodocs"]},l={render:()=>a.jsx(c,{base:{id:"frequency-select",optionsKey:"frequency"},cases:{Single:{label:"Frequency",value:"A",items:[{value:"A",label:"Annual"},{value:"Q",label:"Quarterly"},{value:"M",label:"Monthly"},{value:"D",label:"Daily",disabled:!0}]},Multiple:{label:"Reference area",isMultiple:!0,value:["AUS","FRA"],items:[{value:"AUS",label:"Australia"},{value:"AUT",label:"Austria"},{value:"BEL",label:"Belgium"},{value:"CAN",label:"Canada"},{value:"FRA",label:"France"}]},"Long labels":{label:"Unit of measure",value:"USD_PPP",items:[{value:"USD_PPP",label:"US dollars, current prices, current PPPs"},{value:"USD_CONST",label:"US dollars, constant prices, constant PPPs, reference year 2015"},{value:"NAT",label:"National currency, current prices"}]},"No items":{label:"Frequency",value:"",items:[]}},toggles:{disabled:{label:"Disabled",props:{disabled:!0}}},children:e=>a.jsx(y,{...e})}),play:async({canvasElement:e})=>{await t.click(m(e).getByRole("combobox")),await t.click(await v.findByRole("option",{name:"Quarterly"})),await d(o).toHaveBeenCalledWith("Q")}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
2
2
  render: () => <UseCases base={{
3
3
  id: 'frequency-select',
4
4
  optionsKey: 'frequency'
@@ -1 +1 @@
1
- import{j as c}from"./iframe-a_pZB-t6.js";import{c as s}from"./UseCases-CyXRdmDK.js";const t=s(c.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");export{t as S};
1
+ import{j as c}from"./iframe-DtQmhjUk.js";import{c as s}from"./UseCases-CTSiSN6M.js";const t=s(c.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");export{t as S};
@@ -1,4 +1,4 @@
1
- import{R,j as s,r as y}from"./iframe-a_pZB-t6.js";import{P as e}from"./index-MWRVRKRi.js";import{l as S}from"./index-BnO-aI7j.js";import{I as P}from"./Input-BsOi0WUF.js";import{A as B}from"./Alert-CI3CnEU9.js";import{B as F}from"./Button-BiHQ2vOD.js";import{T as b}from"./Typography-BSx6QP1S.js";import{p as u}from"./prop-Dm-FEtu4.js";import{G as g}from"./Grid-CJO61dRG.js";import{C as D}from"./CircularProgress-B4-i86z_.js";import{p as T}from"./propOr-CKFZAF61.js";import{i as U}from"./isNil-COslMkIS.js";import{m as M}from"./makeStyles-DjbLSwJE.js";import{i as O}from"./is-DEqMKgUN.js";import{T as L}from"./Tooltip-CzBJj1M2.js";import{W}from"./Warning-mu6JqPAR.js";import{C as $,a as G}from"./CardContent-DCSLw0IR.js";import{R as Y,a as z}from"./RadioGroup-DgTYg9us.js";import{m as A}from"./map-DAmoZ62-.js";import{F as V}from"./FormControlLabel-BZCIDGya.js";import{u as H}from"./useTheme-pGXs_ROT.js";import{p as q}from"./path-BOH92ih4.js";import{p as w}from"./pathOr-B-yGj57C.js";import{w as K}from"./utils-BRr-vONA.js";import{P as J}from"./Paper-CGj07eAk.js";import{U as Q}from"./UseCases-CyXRdmDK.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DS-XPpOX.js";import"./with-input-a92DkuNY.js";import"./InputAdornment-CvUVeXUB.js";import"./formControlState-Dg0qiabM.js";import"./or-CYAS8QRM.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./isEmpty-CZ36qNF2.js";import"./keys-MRUazFsh.js";import"./_isObject-CRQ-CL0p.js";import"./_isString-DUX4qf9v.js";import"./TextField-DTKLdgYP.js";import"./Select-DvF6k9X2.js";import"./useSlotProps-pWzUupkJ.js";import"./Popover-NnzkJg8l.js";import"./TextareaAutosize-BnqrzVWc.js";import"./ownerDocument-DW-IO8s5.js";import"./Grow-CsG6GW7T.js";import"./index-DadQTpM3.js";import"./index-BCSOKU0M.js";import"./utils-Ci5srLYt.js";import"./List-COrkKCMC.js";import"./ListContext-xq2a6xmy.js";import"./useControlled-CwodZjTa.js";import"./isMuiElement-C2XWHu21.js";import"./IconButton-BmV2jvz-.js";import"./Done-DPdrw-eb.js";import"./Close-BjZqVfS-.js";import"./InfoOutlined-B-Y1AVYd.js";import"./colorManipulator-1p2EF9SY.js";import"./omit-Dexa0H-t.js";import"./_curry3-CWUzJcT3.js";import"./Tooltip-iI471JT9.js";import"./SwitchBase-Dey9Iw42.js";import"./_reduce-BIM_BjAq.js";import"./curryN-DVrTryA3.js";import"./useThemeProps-Bg_Es16W.js";import"./getThemeProps-C8xS0M6W.js";import"./pipe-CU_CAGp7.js";import"./toString-CzFgYQbH.js";import"./invoker-BytErN_V.js";const X=M(a=>({container:{padding:a.spacing(0,1),display:"flex",alignItems:"flex-start"},containerSubmitButton:{margin:a.spacing(1,0),display:"flex",justifyContent:"flex-end"},alertMessage:{display:"flex",flexDirection:"column"},input:{margin:0},close:{alignItems:"flex-start"},alert:{margin:a.spacing(0,1)}})),v=({hasError:a,isMessageOpen:p,isSharing:r,mail:o="",share:i,changeMail:m,changeIsMessageOpen:c,labels:n})=>{const[d,t]=R.useState(!1),l=X(),f=k=>{if(S.validate(o)&&t(!1),O(Function)(m))return m(k)},C=()=>{if(!S.validate(o)){t(!0);return}if(O(Function)(i))return i()};return p?s.jsx(B,{className:l.alert,classes:{action:l.close},variant:"filled",severity:a?"error":"success",onClose:()=>c(!1),children:s.jsxs("div",{className:l.alertMessage,children:[s.jsx(b,{variant:"body2",children:a?u("errorTitle")(n):u("successTitle")(n)}),s.jsx(b,{variant:"body2",children:a?u("errorMessage")(n):u("successMessage")(n)})]})}):s.jsxs(g,{container:!0,className:l.container,children:[s.jsx(g,{item:!0,xs:12,children:s.jsx(P,{inputProps:{"aria-label":u("email")(n),autoComplete:"email"},className:l.input,label:u("email")(n),type:"email",value:o,onChange:f,variant:"outlined",fullWidth:!0,isControlled:!0,textFieldProps:{error:d},onSubmit:C})}),s.jsx(g,{item:!0,xs:12,className:l.containerSubmitButton,children:s.jsx(F,{"aria-label":T("","submit")(n),type:"submit",disabled:r||U(i),variant:"contained",color:"primary",alternative:"siscc",onClick:C,className:l.submitButton,children:r?s.jsx(D,{size:24}):T("","submit")(n)})})]})};v.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])})};v.__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 N=M(a=>({container:{backgroundColor:a.palette.secondary.dark,boxShadow:"none",padding:a.spacing(2),width:"100%"},title:{padding:0,...w({},["mixins","share","title"],a)},content:{padding:a.spacing(1,0),"&:last-child":{padding:a.spacing(1,0)}},label:a.typography.body2,warning:{marginLeft:a.spacing(.5),width:"unset",fontSize:"inherit",height:"1.3em",...w({},["mixins","share","warning"],a)}})),E=({title:a})=>{const p=N(),r=H(),o=q(["palette","highlight","hl1"],r)||r.palette.primary.dark,i=r.palette.getContrastText(o);return s.jsx(L,{className:p.warning,title:a,tabIndex:0,variant:"warning","aria-hidden":!1,placement:"bottom",PopperProps:{modifiers:{flip:{behavior:["bottom","top","left","right"]}}},children:s.jsx(W,{pathBackgroundColor:o,pathColor:i})})};E.propTypes={title:e.string};const Z=[],j=({changeMode:a,mode:p,modes:r=Z,title:o})=>{const i=N();return s.jsx($,{className:i.container,children:s.jsxs(G,{className:i.content,children:[s.jsx(b,{className:i.title,children:o}),s.jsx(Y,{onChange:m=>a(m.target.value),value:p,children:A(({label:m,value:c,disabled:n=!1,warningMessage:d})=>s.jsx(V,{classes:{label:i.label},disabled:n,control:s.jsx(z,{variant:"outlined",color:"primary"}),label:s.jsxs("span",{children:[m,d&&s.jsx(E,{title:d})]}),value:c},c))(r)})]})})};j.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])};j.__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 ee=M(a=>({container:{width:"100%",margin:a.spacing(1,0),padding:20},subContainer:{width:"100%",margin:a.spacing(2,0)},divider:{borderRight:`1px solid ${a.palette.divider}`},disclaimerContainer:{padding:a.spacing(0,1)},disclaimer:{backgroundColor:q(["palette","tertiary","dark"])(a)||a.palette.grey[100],padding:a.spacing(1,2),width:"100%",height:"100%"}})),I=({changeIsMessageOpen:a,changeMode:p,changeMail:r,hasError:o,isMessageOpen:i,isSharing:m,mail:c,mode:n,modes:d,share:t,labels:l})=>{const f=ee();return s.jsxs(g,{"data-testid":"share-test-id",container:!0,className:f.container,children:[s.jsx(g,{item:!0,xs:12,children:s.jsx(j,{changeMode:p,modes:d,mode:n,title:u("title")(l)})}),s.jsxs(g,{container:!0,className:f.subContainer,children:[s.jsx(g,{item:!0,xs:12,md:6,className:f.divider,children:s.jsx(v,{changeMail:r,changeIsMessageOpen:a,hasError:o,isMessageOpen:i,isSharing:m,mail:c,share:t,labels:l})}),s.jsx(g,{item:!0,xs:12,md:6,className:f.disclaimerContainer,children:s.jsx(J,{className:f.disclaimer,children:u("disclaimer")(l)})})]})]})},_=K(({isBlank:a})=>({isBlank:a}))(I);I.__docgenInfo={description:"",methods:[],displayName:"CustomShare"};const{fn:h}=__STORYBOOK_MODULE_TEST__,ae=[{value:"snapshot",label:"Snapshot of data for the period defined (data will not change)"},{value:"latest",label:"Latest available data for the period defined",warningMessage:"The shared view will change when new data are published."}],se={title:"Share this view",email:"Email",submit:"Request URL",disclaimer:"You will receive an email with a link to confirm your request. The shared view will then be available to anyone with the link.",successTitle:"Request sent",successMessage:"Check your mailbox to confirm the share.",errorTitle:"Request failed",errorMessage:"The share could not be created. Please try again later."},re=({mode:a,mail:p,...r})=>{const[o,i]=y.useState(a),[m,c]=y.useState(p),[n,d]=y.useState(r.isMessageOpen);return s.jsx(_,{...r,mode:o,mail:m,isMessageOpen:n,changeMode:t=>{i(t),r.changeMode?.(t)},changeMail:t=>{c(t),r.changeMail?.(t)},changeIsMessageOpen:t=>{d(t),r.changeIsMessageOpen?.(t)}})},ya={title:"Data/Share",component:_,tags:["autodocs"]},x={render:()=>s.jsx(Q,{base:{modes:ae,mode:"snapshot",mail:"",labels:se,share:h(),changeMode:h(),changeMail:h(),changeIsMessageOpen:h()},cases:{Default:{},Sharing:{isSharing:!0,mail:"jane.doe@example.org"},Success:{isMessageOpen:!0},Error:{isMessageOpen:!0,hasError:!0},"Share disabled":{share:void 0}},children:a=>s.jsx(re,{...a})})};x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
1
+ import{R,j as s,r as y}from"./iframe-DtQmhjUk.js";import{P as e}from"./index-CGi-u7D6.js";import{l as S}from"./index-Ds58Hoo-.js";import{I as P}from"./Input-BFeb6cis.js";import{A as B}from"./Alert-miMrTSp5.js";import{B as F}from"./Button-COGZcTLs.js";import{T as b}from"./Typography-Dk5KhhNl.js";import{p as u}from"./prop-Dm-FEtu4.js";import{G as g}from"./Grid-2ZIYp-Sv.js";import{C as D}from"./CircularProgress-FzxK-erc.js";import{p as T}from"./propOr-CKFZAF61.js";import{i as U}from"./isNil-COslMkIS.js";import{m as M}from"./makeStyles-DbQ_Cm1S.js";import{i as O}from"./is-DEqMKgUN.js";import{T as L}from"./Tooltip-CQVls4ai.js";import{W}from"./Warning-DMKuffMU.js";import{C as $,a as G}from"./CardContent-vwz3yzUb.js";import{R as Y,a as z}from"./RadioGroup-DuYuyndj.js";import{m as A}from"./map-DAmoZ62-.js";import{F as V}from"./FormControlLabel-BIkDdqbS.js";import{u as H}from"./useTheme-oCpgGYKx.js";import{p as q}from"./path-BOH92ih4.js";import{p as w}from"./pathOr-B-yGj57C.js";import{w as K}from"./utils-DfDfYiK9.js";import{P as J}from"./Paper-DMevUzQW.js";import{U as Q}from"./UseCases-CTSiSN6M.js";import"./preload-helper-PPVm8Dsz.js";import"./index-KWYsdMX_.js";import"./with-input-Dyij0nD8.js";import"./InputAdornment-j9cg_rJT.js";import"./formControlState-DDW9809B.js";import"./or-CYAS8QRM.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./isEmpty-CZ36qNF2.js";import"./keys-MRUazFsh.js";import"./_isObject-CRQ-CL0p.js";import"./_isString-DUX4qf9v.js";import"./TextField-BO2DCZQ8.js";import"./Select-CBrzUr0M.js";import"./useSlotProps-HyTzBVWz.js";import"./Popover-eG2KpABL.js";import"./TextareaAutosize-DACJtUo4.js";import"./ownerDocument-DW-IO8s5.js";import"./Grow-P72gltHT.js";import"./index-CTS8WOI3.js";import"./index-DwuMYrHP.js";import"./utils-D1ha-Di3.js";import"./List-BoNQy3mo.js";import"./ListContext-6aOWlypg.js";import"./useControlled-CDPfU0tS.js";import"./isMuiElement-DFGV4A4P.js";import"./IconButton-dIWC1_r5.js";import"./Done-CFa-MZHI.js";import"./Close-DLq3hrO9.js";import"./InfoOutlined-2rb6xC1a.js";import"./colorManipulator-B6qIaQZn.js";import"./omit-Dexa0H-t.js";import"./_curry3-CWUzJcT3.js";import"./Tooltip-BvItailS.js";import"./SwitchBase-C0nrrHyx.js";import"./_reduce-BIM_BjAq.js";import"./curryN-DVrTryA3.js";import"./useThemeProps-oiZwQvVu.js";import"./getThemeProps-E7mc6QWJ.js";import"./pipe-CU_CAGp7.js";import"./toString-CzFgYQbH.js";import"./invoker-BytErN_V.js";const X=M(a=>({container:{padding:a.spacing(0,1),display:"flex",alignItems:"flex-start"},containerSubmitButton:{margin:a.spacing(1,0),display:"flex",justifyContent:"flex-end"},alertMessage:{display:"flex",flexDirection:"column"},input:{margin:0},close:{alignItems:"flex-start"},alert:{margin:a.spacing(0,1)}})),v=({hasError:a,isMessageOpen:p,isSharing:r,mail:o="",share:i,changeMail:m,changeIsMessageOpen:c,labels:n})=>{const[d,t]=R.useState(!1),l=X(),f=k=>{if(S.validate(o)&&t(!1),O(Function)(m))return m(k)},C=()=>{if(!S.validate(o)){t(!0);return}if(O(Function)(i))return i()};return p?s.jsx(B,{className:l.alert,classes:{action:l.close},variant:"filled",severity:a?"error":"success",onClose:()=>c(!1),children:s.jsxs("div",{className:l.alertMessage,children:[s.jsx(b,{variant:"body2",children:a?u("errorTitle")(n):u("successTitle")(n)}),s.jsx(b,{variant:"body2",children:a?u("errorMessage")(n):u("successMessage")(n)})]})}):s.jsxs(g,{container:!0,className:l.container,children:[s.jsx(g,{item:!0,xs:12,children:s.jsx(P,{inputProps:{"aria-label":u("email")(n),autoComplete:"email"},className:l.input,label:u("email")(n),type:"email",value:o,onChange:f,variant:"outlined",fullWidth:!0,isControlled:!0,textFieldProps:{error:d},onSubmit:C})}),s.jsx(g,{item:!0,xs:12,className:l.containerSubmitButton,children:s.jsx(F,{"aria-label":T("","submit")(n),type:"submit",disabled:r||U(i),variant:"contained",color:"primary",alternative:"siscc",onClick:C,className:l.submitButton,children:r?s.jsx(D,{size:24}):T("","submit")(n)})})]})};v.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])})};v.__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 N=M(a=>({container:{backgroundColor:a.palette.secondary.dark,boxShadow:"none",padding:a.spacing(2),width:"100%"},title:{padding:0,...w({},["mixins","share","title"],a)},content:{padding:a.spacing(1,0),"&:last-child":{padding:a.spacing(1,0)}},label:a.typography.body2,warning:{marginLeft:a.spacing(.5),width:"unset",fontSize:"inherit",height:"1.3em",...w({},["mixins","share","warning"],a)}})),E=({title:a})=>{const p=N(),r=H(),o=q(["palette","highlight","hl1"],r)||r.palette.primary.dark,i=r.palette.getContrastText(o);return s.jsx(L,{className:p.warning,title:a,tabIndex:0,variant:"warning","aria-hidden":!1,placement:"bottom",PopperProps:{modifiers:{flip:{behavior:["bottom","top","left","right"]}}},children:s.jsx(W,{pathBackgroundColor:o,pathColor:i})})};E.propTypes={title:e.string};const Z=[],j=({changeMode:a,mode:p,modes:r=Z,title:o})=>{const i=N();return s.jsx($,{className:i.container,children:s.jsxs(G,{className:i.content,children:[s.jsx(b,{className:i.title,children:o}),s.jsx(Y,{onChange:m=>a(m.target.value),value:p,children:A(({label:m,value:c,disabled:n=!1,warningMessage:d})=>s.jsx(V,{classes:{label:i.label},disabled:n,control:s.jsx(z,{variant:"outlined",color:"primary"}),label:s.jsxs("span",{children:[m,d&&s.jsx(E,{title:d})]}),value:c},c))(r)})]})})};j.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])};j.__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 ee=M(a=>({container:{width:"100%",margin:a.spacing(1,0),padding:20},subContainer:{width:"100%",margin:a.spacing(2,0)},divider:{borderRight:`1px solid ${a.palette.divider}`},disclaimerContainer:{padding:a.spacing(0,1)},disclaimer:{backgroundColor:q(["palette","tertiary","dark"])(a)||a.palette.grey[100],padding:a.spacing(1,2),width:"100%",height:"100%"}})),I=({changeIsMessageOpen:a,changeMode:p,changeMail:r,hasError:o,isMessageOpen:i,isSharing:m,mail:c,mode:n,modes:d,share:t,labels:l})=>{const f=ee();return s.jsxs(g,{"data-testid":"share-test-id",container:!0,className:f.container,children:[s.jsx(g,{item:!0,xs:12,children:s.jsx(j,{changeMode:p,modes:d,mode:n,title:u("title")(l)})}),s.jsxs(g,{container:!0,className:f.subContainer,children:[s.jsx(g,{item:!0,xs:12,md:6,className:f.divider,children:s.jsx(v,{changeMail:r,changeIsMessageOpen:a,hasError:o,isMessageOpen:i,isSharing:m,mail:c,share:t,labels:l})}),s.jsx(g,{item:!0,xs:12,md:6,className:f.disclaimerContainer,children:s.jsx(J,{className:f.disclaimer,children:u("disclaimer")(l)})})]})]})},_=K(({isBlank:a})=>({isBlank:a}))(I);I.__docgenInfo={description:"",methods:[],displayName:"CustomShare"};const{fn:h}=__STORYBOOK_MODULE_TEST__,ae=[{value:"snapshot",label:"Snapshot of data for the period defined (data will not change)"},{value:"latest",label:"Latest available data for the period defined",warningMessage:"The shared view will change when new data are published."}],se={title:"Share this view",email:"Email",submit:"Request URL",disclaimer:"You will receive an email with a link to confirm your request. The shared view will then be available to anyone with the link.",successTitle:"Request sent",successMessage:"Check your mailbox to confirm the share.",errorTitle:"Request failed",errorMessage:"The share could not be created. Please try again later."},re=({mode:a,mail:p,...r})=>{const[o,i]=y.useState(a),[m,c]=y.useState(p),[n,d]=y.useState(r.isMessageOpen);return s.jsx(_,{...r,mode:o,mail:m,isMessageOpen:n,changeMode:t=>{i(t),r.changeMode?.(t)},changeMail:t=>{c(t),r.changeMail?.(t)},changeIsMessageOpen:t=>{d(t),r.changeIsMessageOpen?.(t)}})},ya={title:"Data/Share",component:_,tags:["autodocs"]},x={render:()=>s.jsx(Q,{base:{modes:ae,mode:"snapshot",mail:"",labels:se,share:h(),changeMode:h(),changeMail:h(),changeIsMessageOpen:h()},cases:{Default:{},Sharing:{isSharing:!0,mail:"jane.doe@example.org"},Success:{isMessageOpen:!0},Error:{isMessageOpen:!0,hasError:!0},"Share disabled":{share:void 0}},children:a=>s.jsx(re,{...a})})};x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
2
2
  render: () => <UseCases base={{
3
3
  modes,
4
4
  mode: 'snapshot',
@@ -1,4 +1,4 @@
1
- import{j as e,r as h}from"./iframe-a_pZB-t6.js";import{A as g}from"./Alert-CI3CnEU9.js";import{B as U}from"./Button-BiHQ2vOD.js";import{u as j}from"./useMediaQuery-Cp6nHdWo.js";import{G as l}from"./Grid-CJO61dRG.js";import{T as C}from"./Typography-BSx6QP1S.js";import{p as d}from"./prop-Dm-FEtu4.js";import{C as O}from"./CircularProgress-B4-i86z_.js";import{p as f}from"./propOr-CKFZAF61.js";import{i as N}from"./isNil-COslMkIS.js";import{T as y}from"./TextareaAutosize-BnqrzVWc.js";import{C as S}from"./Collapse-DXtMjzVx.js";import{I as b}from"./IconButton-BmV2jvz-.js";import{C as L}from"./Close-BjZqVfS-.js";import{m as R}from"./makeStyles-DjbLSwJE.js";import{p as _}from"./pathOr-B-yGj57C.js";import{U as w}from"./UseCases-CyXRdmDK.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DS-XPpOX.js";import"./Paper-CGj07eAk.js";import"./InfoOutlined-B-Y1AVYd.js";import"./colorManipulator-1p2EF9SY.js";import"./omit-Dexa0H-t.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./getThemeProps-C8xS0M6W.js";import"./useTheme-pGXs_ROT.js";import"./_curry3-CWUzJcT3.js";import"./ownerDocument-DW-IO8s5.js";import"./utils-Ci5srLYt.js";import"./index-DadQTpM3.js";import"./index-BCSOKU0M.js";const T=R(r=>({container:{boxShadow:"none",width:"100%",padding:20},textarea:{width:"100%",margin:r.spacing(.5,0,0,0)},title:{paddingBottom:30,..._({},["mixins","share","title"],r)},textAreaWrapper:{display:"flex",flexGrow:1}})),c=({labels:r,onClick:o,isLoading:s,contentValue:a,isNotifOpen:m=!1,setIsNotifOpen:n})=>{const i=j(x=>x.breakpoints.down("md")),t=T();return e.jsxs(l,{className:t.container,children:[e.jsx(C,{variant:"h6",className:t.title,children:d("title")(r)}),e.jsxs(l,{container:!0,justifyContent:i?"center":"flex-start",alignItems:i?"left":"center",direction:i?"column-reverse":"row",children:[e.jsx(l,{item:!0,style:{padding:i?"20px 0 0 0":"0 20px 0 0"},children:e.jsx(U,{"aria-label":f("","generateUrl")(r),type:"submit",variant:"contained",color:"primary",disabled:s||N(o),alternative:"siscc",onClick:o,className:t.submitButton,children:s?e.jsx(O,{size:24}):f("","generateUrl")(r)})}),e.jsx(l,{item:!0,className:t.textAreaWrapper,children:e.jsx(y,{"aria-label":a,className:t.textarea,minRows:2,maxRows:2,readOnly:!0,value:a})})]}),e.jsx(S,{in:m,children:e.jsx(g,{severity:"error",action:e.jsx(b,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{n(!1)},children:e.jsx(L,{fontSize:"inherit"})}),children:d("errorMessage",r)})})]})};c.__docgenInfo={description:"",methods:[],displayName:"ShortUrls",props:{isNotifOpen:{defaultValue:{value:"false",computed:!1},required:!1}}};const{fn:u}=__STORYBOOK_MODULE_TEST__,v=({isNotifOpen:r,setIsNotifOpen:o,...s})=>{const[a,m]=h.useState(r);return e.jsx(c,{...s,isNotifOpen:a,setIsNotifOpen:n=>{m(n),o?.(n)}})},de={title:"Data/ShortUrls",component:c,tags:["autodocs"]},p={render:()=>e.jsx(w,{base:{labels:{title:"Short URL",generateUrl:"Generate short URL",errorMessage:"The short URL could not be generated. Please try again later."},contentValue:"",onClick:u(),setIsNotifOpen:u()},cases:{Default:{},Loading:{isLoading:!0},Generated:{contentValue:"https://example.org/s/aB3xY9"},"Error notification":{isNotifOpen:!0},Disabled:{onClick:void 0}},children:r=>e.jsx(v,{...r})})};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
1
+ import{j as e,r as h}from"./iframe-DtQmhjUk.js";import{A as g}from"./Alert-miMrTSp5.js";import{B as U}from"./Button-COGZcTLs.js";import{u as j}from"./useMediaQuery-DoevwfLJ.js";import{G as l}from"./Grid-2ZIYp-Sv.js";import{T as C}from"./Typography-Dk5KhhNl.js";import{p as d}from"./prop-Dm-FEtu4.js";import{C as O}from"./CircularProgress-FzxK-erc.js";import{p as f}from"./propOr-CKFZAF61.js";import{i as N}from"./isNil-COslMkIS.js";import{T as y}from"./TextareaAutosize-DACJtUo4.js";import{C as S}from"./Collapse-Dvcy7gTP.js";import{I as b}from"./IconButton-dIWC1_r5.js";import{C as L}from"./Close-DLq3hrO9.js";import{m as R}from"./makeStyles-DbQ_Cm1S.js";import{p as _}from"./pathOr-B-yGj57C.js";import{U as w}from"./UseCases-CTSiSN6M.js";import"./preload-helper-PPVm8Dsz.js";import"./index-KWYsdMX_.js";import"./Paper-DMevUzQW.js";import"./InfoOutlined-2rb6xC1a.js";import"./colorManipulator-B6qIaQZn.js";import"./omit-Dexa0H-t.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./getThemeProps-E7mc6QWJ.js";import"./useTheme-oCpgGYKx.js";import"./_curry3-CWUzJcT3.js";import"./ownerDocument-DW-IO8s5.js";import"./utils-D1ha-Di3.js";import"./index-CTS8WOI3.js";import"./index-DwuMYrHP.js";const T=R(r=>({container:{boxShadow:"none",width:"100%",padding:20},textarea:{width:"100%",margin:r.spacing(.5,0,0,0)},title:{paddingBottom:30,..._({},["mixins","share","title"],r)},textAreaWrapper:{display:"flex",flexGrow:1}})),c=({labels:r,onClick:o,isLoading:s,contentValue:a,isNotifOpen:m=!1,setIsNotifOpen:n})=>{const i=j(x=>x.breakpoints.down("md")),t=T();return e.jsxs(l,{className:t.container,children:[e.jsx(C,{variant:"h6",className:t.title,children:d("title")(r)}),e.jsxs(l,{container:!0,justifyContent:i?"center":"flex-start",alignItems:i?"left":"center",direction:i?"column-reverse":"row",children:[e.jsx(l,{item:!0,style:{padding:i?"20px 0 0 0":"0 20px 0 0"},children:e.jsx(U,{"aria-label":f("","generateUrl")(r),type:"submit",variant:"contained",color:"primary",disabled:s||N(o),alternative:"siscc",onClick:o,className:t.submitButton,children:s?e.jsx(O,{size:24}):f("","generateUrl")(r)})}),e.jsx(l,{item:!0,className:t.textAreaWrapper,children:e.jsx(y,{"aria-label":a,className:t.textarea,minRows:2,maxRows:2,readOnly:!0,value:a})})]}),e.jsx(S,{in:m,children:e.jsx(g,{severity:"error",action:e.jsx(b,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{n(!1)},children:e.jsx(L,{fontSize:"inherit"})}),children:d("errorMessage",r)})})]})};c.__docgenInfo={description:"",methods:[],displayName:"ShortUrls",props:{isNotifOpen:{defaultValue:{value:"false",computed:!1},required:!1}}};const{fn:u}=__STORYBOOK_MODULE_TEST__,v=({isNotifOpen:r,setIsNotifOpen:o,...s})=>{const[a,m]=h.useState(r);return e.jsx(c,{...s,isNotifOpen:a,setIsNotifOpen:n=>{m(n),o?.(n)}})},de={title:"Data/ShortUrls",component:c,tags:["autodocs"]},p={render:()=>e.jsx(w,{base:{labels:{title:"Short URL",generateUrl:"Generate short URL",errorMessage:"The short URL could not be generated. Please try again later."},contentValue:"",onClick:u(),setIsNotifOpen:u()},cases:{Default:{},Loading:{isLoading:!0},Generated:{contentValue:"https://example.org/s/aB3xY9"},"Error notification":{isNotifOpen:!0},Disabled:{onClick:void 0}},children:r=>e.jsx(v,{...r})})};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
2
2
  render: () => <UseCases base={{
3
3
  labels: {
4
4
  title: 'Short URL',
@@ -1,4 +1,4 @@
1
- import{r as C,n as B,o as h,p as i,j as e,s as g,R as j}from"./iframe-a_pZB-t6.js";import{c as b}from"./index-DS-XPpOX.js";import{g as D}from"./utils-BRr-vONA.js";import{u as _}from"./useTheme-pGXs_ROT.js";import{a as A,g as L,b as T,d as I,s as R,U as N}from"./UseCases-CyXRdmDK.js";import{P}from"./Paper-CGj07eAk.js";import{G as v}from"./Grid-CJO61dRG.js";import{T as y}from"./Typography-BSx6QP1S.js";import{m as U}from"./makeStyles-DjbLSwJE.js";import{L as x}from"./Link-IITWMAlI.js";import"./preload-helper-PPVm8Dsz.js";import"./_isObject-CRQ-CL0p.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./keys-MRUazFsh.js";import"./prop-Dm-FEtu4.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./pipe-CU_CAGp7.js";import"./curryN-DVrTryA3.js";import"./_curry3-CWUzJcT3.js";import"./_reduce-BIM_BjAq.js";import"./toString-CzFgYQbH.js";import"./invoker-BytErN_V.js";function z(o){return A("MuiAppBar",o)}L("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 I(a,z,s)},d=(o,r)=>o?`${o?.replace(")","")}, ${r})`:r,G=R(P,{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=C.forwardRef(function(r,t){const s=B({props:r,name:"MuiAppBar"}),{className:a,color:l="primary",enableColorOnDark:n=!1,position:c="fixed"}=s,f=h(s,M),p=i({},s,{color:l,position:c,enableColorOnDark:n}),m=$(p);return e.jsx(G,i({square:!0,component:"header",ownerState:p,elevation:4,className:T(m.root,a,c==="fixed"&&"mui-fixed"),ref:t},f))});function E(o){return A("MuiToolbar",o)}L("MuiToolbar",["root","gutters","regular","dense"]);const F=["className","component","disableGutters","variant"],W=o=>{const{classes:r,disableGutters:t,variant:s}=o;return I({root:["root",!t&&"gutters",s]},E,r)},q=R("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),H=C.forwardRef(function(r,t){const s=B({props:r,name:"MuiToolbar"}),{className:a,component:l="div",disableGutters:n=!1,variant:c="regular"}=s,f=h(s,F),p=i({},s,{component:l,disableGutters:n,variant:c}),m=W(p);return e.jsx(q,i({as:l,className:T(m.root,a),ref:t,ownerState:p},f))}),V=U(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}})),Y=[],k=j.forwardRef(({leftLabel:o,rightLabel:r=Y,isFixed:t},s)=>{const a=V(),l=_(),n=D(l);return e.jsx(O,{ref:s,"data-testid":"footer-bar-test-id",role:"contentinfo",position:"static",component:"footer",className:b(a.appBar,{[a.fixed]:t}),children:e.jsxs(H,{classes:{root:a.root,gutters:a.gutters},children:[e.jsx(v,{xs:4,item:!0,container:!0,justifyContent:"flex-start",alignItems:"flex-start",children:e.jsx(y,{variant:"body2",className:b(a.leftLabel,{[a.rtl]:n}),children:o})}),e.jsx(v,{xs:8,item:!0,container:!0,justifyContent:"flex-end",alignItems:"flex-start",children:e.jsx(y,{variant:"body2",className:b(a.rightLabel,{[a.rtl]:!n}),children:r})})]})})});k.__docgenInfo={description:"",methods:[],displayName:"SisccFooter",props:{rightLabel:{defaultValue:{value:"[]",computed:!1},required:!1}}};const ko={title:"Layout/SisccFooter",component:k,tags:["autodocs"]},u={render:()=>e.jsx(N,{base:{leftLabel:"© 2026 .Stat Suite"},cases:{Default:{rightLabel:["Powered by ",e.jsx(x,{href:"https://siscc.org",target:"_blank",rel:"noopener noreferrer",children:"SIS-CC"},"link")]},"Terms and privacy":{rightLabel:[e.jsx(x,{href:"#terms",children:"Terms and conditions"},"terms")," · ",e.jsx(x,{href:"#privacy",children:"Privacy policy"},"privacy")]}},toggles:{rtl:{label:"Right to left",dir:"rtl"}},children:o=>e.jsx(k,{...o})})};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
1
+ import{r as C,n as B,o as h,p as i,j as e,s as g,R as j}from"./iframe-DtQmhjUk.js";import{c as b}from"./index-KWYsdMX_.js";import{g as D}from"./utils-DfDfYiK9.js";import{u as _}from"./useTheme-oCpgGYKx.js";import{a as A,g as L,b as T,d as I,s as R,U as N}from"./UseCases-CTSiSN6M.js";import{P}from"./Paper-DMevUzQW.js";import{G as v}from"./Grid-2ZIYp-Sv.js";import{T as y}from"./Typography-Dk5KhhNl.js";import{m as U}from"./makeStyles-DbQ_Cm1S.js";import{L as x}from"./Link-J7VB0nAH.js";import"./preload-helper-PPVm8Dsz.js";import"./_isObject-CRQ-CL0p.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./keys-MRUazFsh.js";import"./prop-Dm-FEtu4.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./pipe-CU_CAGp7.js";import"./curryN-DVrTryA3.js";import"./_curry3-CWUzJcT3.js";import"./_reduce-BIM_BjAq.js";import"./toString-CzFgYQbH.js";import"./invoker-BytErN_V.js";function z(o){return A("MuiAppBar",o)}L("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 I(a,z,s)},d=(o,r)=>o?`${o?.replace(")","")}, ${r})`:r,G=R(P,{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=C.forwardRef(function(r,t){const s=B({props:r,name:"MuiAppBar"}),{className:a,color:l="primary",enableColorOnDark:n=!1,position:c="fixed"}=s,f=h(s,M),p=i({},s,{color:l,position:c,enableColorOnDark:n}),m=$(p);return e.jsx(G,i({square:!0,component:"header",ownerState:p,elevation:4,className:T(m.root,a,c==="fixed"&&"mui-fixed"),ref:t},f))});function E(o){return A("MuiToolbar",o)}L("MuiToolbar",["root","gutters","regular","dense"]);const F=["className","component","disableGutters","variant"],W=o=>{const{classes:r,disableGutters:t,variant:s}=o;return I({root:["root",!t&&"gutters",s]},E,r)},q=R("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),H=C.forwardRef(function(r,t){const s=B({props:r,name:"MuiToolbar"}),{className:a,component:l="div",disableGutters:n=!1,variant:c="regular"}=s,f=h(s,F),p=i({},s,{component:l,disableGutters:n,variant:c}),m=W(p);return e.jsx(q,i({as:l,className:T(m.root,a),ref:t,ownerState:p},f))}),V=U(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}})),Y=[],k=j.forwardRef(({leftLabel:o,rightLabel:r=Y,isFixed:t},s)=>{const a=V(),l=_(),n=D(l);return e.jsx(O,{ref:s,"data-testid":"footer-bar-test-id",role:"contentinfo",position:"static",component:"footer",className:b(a.appBar,{[a.fixed]:t}),children:e.jsxs(H,{classes:{root:a.root,gutters:a.gutters},children:[e.jsx(v,{xs:4,item:!0,container:!0,justifyContent:"flex-start",alignItems:"flex-start",children:e.jsx(y,{variant:"body2",className:b(a.leftLabel,{[a.rtl]:n}),children:o})}),e.jsx(v,{xs:8,item:!0,container:!0,justifyContent:"flex-end",alignItems:"flex-start",children:e.jsx(y,{variant:"body2",className:b(a.rightLabel,{[a.rtl]:!n}),children:r})})]})})});k.__docgenInfo={description:"",methods:[],displayName:"SisccFooter",props:{rightLabel:{defaultValue:{value:"[]",computed:!1},required:!1}}};const ko={title:"Layout/SisccFooter",component:k,tags:["autodocs"]},u={render:()=>e.jsx(N,{base:{leftLabel:"© 2026 .Stat Suite"},cases:{Default:{rightLabel:["Powered by ",e.jsx(x,{href:"https://siscc.org",target:"_blank",rel:"noopener noreferrer",children:"SIS-CC"},"link")]},"Terms and privacy":{rightLabel:[e.jsx(x,{href:"#terms",children:"Terms and conditions"},"terms")," · ",e.jsx(x,{href:"#privacy",children:"Privacy policy"},"privacy")]}},toggles:{rtl:{label:"Right to left",dir:"rtl"}},children:o=>e.jsx(k,{...o})})};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
2
2
  render: () => <UseCases base={{
3
3
  leftLabel: '© 2026 .Stat Suite'
4
4
  }} cases={{
@@ -1 +1 @@
1
- import{j as t,R as $,r as m}from"./iframe-a_pZB-t6.js";import{P as r}from"./index-MWRVRKRi.js";import{c as S}from"./index-DS-XPpOX.js";import{c as T,B as k}from"./UseCases-CyXRdmDK.js";import{p as b}from"./prop-Dm-FEtu4.js";import{P as H,I as K}from"./Popover-NnzkJg8l.js";import{p as z}from"./pipe-CU_CAGp7.js";import{m as V}from"./map-DAmoZ62-.js";import{v as D}from"./values-CAwOW2HW.js";import{m as G}from"./makeStyles-DjbLSwJE.js";import{p as N}from"./pathOr-B-yGj57C.js";import{p as A}from"./path-BOH92ih4.js";import{p as j}from"./propOr-CKFZAF61.js";import{C as Y}from"./Cross-snf9VeuL.js";import{u as J}from"./useTheme-pGXs_ROT.js";import{e as Q}from"./_isObject-CRQ-CL0p.js";import{P as U}from"./Paper-CGj07eAk.js";import{I as F}from"./IconButton-BmV2jvz-.js";import{S as X}from"./Search-DqbF4LDH.js";import{i as P}from"./isEmpty-CZ36qNF2.js";import{g as Z}from"./gt-Dy4ZroB7.js";import{A as ee}from"./ArrowForward-QrCHpLlJ.js";import{l as re}from"./length-DIGTZ5xz.js";const te=T(t.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),se=T(t.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),ae=T(t.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),oe={},w=({spotlight:e=oe,onChangeField:d,isRtl:p,classes:o})=>{const[l,c]=$.useState(null),n=i=>{c(i.currentTarget)},u=()=>{c(null)},f=!!l,g=f?"visions-spotlight-popover":void 0;return t.jsxs(m.Fragment,{children:[t.jsx(k,{"aria-describedby":g,onClick:n,children:t.jsxs("div",{className:o.buttonContainer,children:[b("searchLabel",e),t.jsx(se,{fontSize:"small"})]})}),t.jsx(H,{id:g,open:f,anchorEl:l,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:t.jsx("div",{dir:p?"rtl":"ltr",className:o.popoverButton,children:z(D,V(i=>t.jsxs(k,{className:o.buttonContainer,onClick:d(i),disabled:i.disabled,children:[t.jsx(ae,{fontSize:"small",className:S({[o.selected]:!b("isSelected")(i)})}),t.jsx(e.FieldLabelRenderer,{id:i.id})]},i.id)))(b("fields",e))})})]})};w.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};w.__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 ie=G(e=>({container:{padding:e.spacing(1.875),borderRadius:e.spacing(.5),backgroundColor:A(["palette","button","mainOpacity"],e)||e.palette.primary.dark},fullWidth:{width:"100%"},defaultWidth:{maxWidth:420,minWidth:250},containerFocus:{backgroundColor:A(["palette","highlight","hl1"],e)||e.palette.primary.light,borderRadius:e.shape.borderRadius,...N({},["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:{...N({},["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"}})),ne=(e,d="",p,o=()=>{})=>{const[l,c]=m.useState(d),[n={},u]=m.useState(p),[f,g]=m.useState(!1);return m.useEffect(()=>{c(d),u(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 u(x),o({term:l,spotlight:x})},onCommitTerm:s=>(s.preventDefault(),o({term:l,spotlight:n}))}},le=z(D,re),E=({placeholder:e,hasClearAll:d,hasCommit:p,withBorder:o,defaultSpotlight:l,term:c,action:n,fullWidth:u,className:f,withAutoFocus:g=!1,labels:i,testId:C="spotlight",subject:v})=>{const{value:y,spotlight:q,isFocus:s,onKeyPress:h,onClearTerm:x,onChangeTerm:O,onChangeField:M,onCommitTerm:W,setFocus:R}=ne(p,c,l,n),a=ie(),L=J(),B=Q("rtl",b("direction",L)),I=j("search","searchSpotlight")(i),_=v?`${I} ${v}`:I;return t.jsx("div",{"data-testid":C,className:S(b("container",f),{[a.container]:o,[a.containerFocus]:s,[a.fullWidth]:u,[a.defaultWidth]:!u}),children:t.jsxs(U,{className:a.root,elevation:0,children:[t.jsx(F,{className:a.leftIcon,disabled:!0,"aria-hidden":"true",size:"large",children:t.jsx(X,{})}),t.jsx(K,{inputProps:{"aria-label":_,"data-testid":`${C}_input`},className:a.input,sx:{"& input::placeholder":{color:L.palette.grey[700],opacity:1}},classes:{root:a.inputBase,input:a.inputBaseMargin},placeholder:e,onKeyDown:h,value:y,onChange:O,onFocus:()=>R(!0),onBlur:()=>R(!1),autoFocus:g}),d&&!P(y)?t.jsx(F,{"aria-label":j("clear","clearSpotlight")(i),onClick:x,className:S(a.rightIcon,a.clear),size:"large",children:t.jsx(Y,{})}):null,Z(le(b("fields",q)),1)?t.jsx(m.Fragment,{children:t.jsx(w,{spotlight:q,onChangeField:M,isRtl:B,term:y,classes:a})}):null,p?t.jsx(m.Fragment,{children:t.jsx(F,{disabled:P(y),color:"primary",className:a.rightIcon,"aria-label":j("commit","commitSpotlight")(i),onClick:W,size:"large",children:B?t.jsx(te,{}):t.jsx(ee,{})})}):null]})})};E.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,subject:r.string};E.__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},subject:{description:"",type:{name:"string"},required:!1}}};export{te as A,E as S};
1
+ import{j as t,R as $,r as m}from"./iframe-DtQmhjUk.js";import{P as r}from"./index-CGi-u7D6.js";import{c as S}from"./index-KWYsdMX_.js";import{c as T,B as k}from"./UseCases-CTSiSN6M.js";import{p as b}from"./prop-Dm-FEtu4.js";import{P as H,I as K}from"./Popover-eG2KpABL.js";import{p as z}from"./pipe-CU_CAGp7.js";import{m as V}from"./map-DAmoZ62-.js";import{v as D}from"./values-CAwOW2HW.js";import{m as G}from"./makeStyles-DbQ_Cm1S.js";import{p as N}from"./pathOr-B-yGj57C.js";import{p as A}from"./path-BOH92ih4.js";import{p as j}from"./propOr-CKFZAF61.js";import{C as Y}from"./Cross-5fO48c27.js";import{u as J}from"./useTheme-oCpgGYKx.js";import{e as Q}from"./_isObject-CRQ-CL0p.js";import{P as U}from"./Paper-DMevUzQW.js";import{I as F}from"./IconButton-dIWC1_r5.js";import{S as X}from"./Search-CpKtzHBZ.js";import{i as P}from"./isEmpty-CZ36qNF2.js";import{g as Z}from"./gt-Dy4ZroB7.js";import{A as ee}from"./ArrowForward-CGmWVEHF.js";import{l as re}from"./length-IXM-4ocd.js";const te=T(t.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),se=T(t.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),ae=T(t.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),oe={},w=({spotlight:e=oe,onChangeField:d,isRtl:p,classes:o})=>{const[l,c]=$.useState(null),n=i=>{c(i.currentTarget)},u=()=>{c(null)},f=!!l,g=f?"visions-spotlight-popover":void 0;return t.jsxs(m.Fragment,{children:[t.jsx(k,{"aria-describedby":g,onClick:n,children:t.jsxs("div",{className:o.buttonContainer,children:[b("searchLabel",e),t.jsx(se,{fontSize:"small"})]})}),t.jsx(H,{id:g,open:f,anchorEl:l,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:t.jsx("div",{dir:p?"rtl":"ltr",className:o.popoverButton,children:z(D,V(i=>t.jsxs(k,{className:o.buttonContainer,onClick:d(i),disabled:i.disabled,children:[t.jsx(ae,{fontSize:"small",className:S({[o.selected]:!b("isSelected")(i)})}),t.jsx(e.FieldLabelRenderer,{id:i.id})]},i.id)))(b("fields",e))})})]})};w.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};w.__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 ie=G(e=>({container:{padding:e.spacing(1.875),borderRadius:e.spacing(.5),backgroundColor:A(["palette","button","mainOpacity"],e)||e.palette.primary.dark},fullWidth:{width:"100%"},defaultWidth:{maxWidth:420,minWidth:250},containerFocus:{backgroundColor:A(["palette","highlight","hl1"],e)||e.palette.primary.light,borderRadius:e.shape.borderRadius,...N({},["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:{...N({},["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"}})),ne=(e,d="",p,o=()=>{})=>{const[l,c]=m.useState(d),[n={},u]=m.useState(p),[f,g]=m.useState(!1);return m.useEffect(()=>{c(d),u(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 u(x),o({term:l,spotlight:x})},onCommitTerm:s=>(s.preventDefault(),o({term:l,spotlight:n}))}},le=z(D,re),E=({placeholder:e,hasClearAll:d,hasCommit:p,withBorder:o,defaultSpotlight:l,term:c,action:n,fullWidth:u,className:f,withAutoFocus:g=!1,labels:i,testId:C="spotlight",subject:v})=>{const{value:y,spotlight:q,isFocus:s,onKeyPress:h,onClearTerm:x,onChangeTerm:O,onChangeField:M,onCommitTerm:W,setFocus:R}=ne(p,c,l,n),a=ie(),L=J(),B=Q("rtl",b("direction",L)),I=j("search","searchSpotlight")(i),_=v?`${I} ${v}`:I;return t.jsx("div",{"data-testid":C,className:S(b("container",f),{[a.container]:o,[a.containerFocus]:s,[a.fullWidth]:u,[a.defaultWidth]:!u}),children:t.jsxs(U,{className:a.root,elevation:0,children:[t.jsx(F,{className:a.leftIcon,disabled:!0,"aria-hidden":"true",size:"large",children:t.jsx(X,{})}),t.jsx(K,{inputProps:{"aria-label":_,"data-testid":`${C}_input`},className:a.input,sx:{"& input::placeholder":{color:L.palette.grey[700],opacity:1}},classes:{root:a.inputBase,input:a.inputBaseMargin},placeholder:e,onKeyDown:h,value:y,onChange:O,onFocus:()=>R(!0),onBlur:()=>R(!1),autoFocus:g}),d&&!P(y)?t.jsx(F,{"aria-label":j("clear","clearSpotlight")(i),onClick:x,className:S(a.rightIcon,a.clear),size:"large",children:t.jsx(Y,{})}):null,Z(le(b("fields",q)),1)?t.jsx(m.Fragment,{children:t.jsx(w,{spotlight:q,onChangeField:M,isRtl:B,term:y,classes:a})}):null,p?t.jsx(m.Fragment,{children:t.jsx(F,{disabled:P(y),color:"primary",className:a.rightIcon,"aria-label":j("commit","commitSpotlight")(i),onClick:W,size:"large",children:B?t.jsx(te,{}):t.jsx(ee,{})})}):null]})})};E.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,subject:r.string};E.__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},subject:{description:"",type:{name:"string"},required:!1}}};export{te as A,E as S};