@mieweb/ui 0.10.0-dev.31 → 0.10.0-dev.33

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 (493) hide show
  1. package/dist/CsvBlock-CFXSDPBI.js +9 -0
  2. package/dist/{CsvBlock-VLMG7GUO.js.map → CsvBlock-CFXSDPBI.js.map} +1 -1
  3. package/dist/CsvBlock-RGO7JXHJ.cjs +18 -0
  4. package/dist/{CsvBlock-FX5YNGNE.cjs.map → CsvBlock-RGO7JXHJ.cjs.map} +1 -1
  5. package/dist/HtmlPreviewBlock-VBYXCXVT.cjs +18 -0
  6. package/dist/{HtmlPreviewBlock-UO37JQ3K.cjs.map → HtmlPreviewBlock-VBYXCXVT.cjs.map} +1 -1
  7. package/dist/HtmlPreviewBlock-Z2GCK325.js +9 -0
  8. package/dist/{HtmlPreviewBlock-5JE7L3GR.js.map → HtmlPreviewBlock-Z2GCK325.js.map} +1 -1
  9. package/dist/MermaidBlock-I2R2BQOX.cjs +18 -0
  10. package/dist/{MermaidBlock-RZ75RPZA.cjs.map → MermaidBlock-I2R2BQOX.cjs.map} +1 -1
  11. package/dist/MermaidBlock-XCAK7IA5.js +9 -0
  12. package/dist/{MermaidBlock-3XHFBAMV.js.map → MermaidBlock-XCAK7IA5.js.map} +1 -1
  13. package/dist/SurveyBlock-KI5JOWCL.js +9 -0
  14. package/dist/{SurveyBlock-MUVJ3JUI.js.map → SurveyBlock-KI5JOWCL.js.map} +1 -1
  15. package/dist/SurveyBlock-UKSGISRT.cjs +18 -0
  16. package/dist/{SurveyBlock-VH47YXZC.cjs.map → SurveyBlock-UKSGISRT.cjs.map} +1 -1
  17. package/dist/brands/index.cjs +7 -7
  18. package/dist/brands/index.js +2 -2
  19. package/dist/{chunk-6ZPTZTKN.js → chunk-24AFHH4J.js} +3 -3
  20. package/dist/{chunk-6ZPTZTKN.js.map → chunk-24AFHH4J.js.map} +1 -1
  21. package/dist/{chunk-BNH4SXJB.js → chunk-2X54ZLT6.js} +6 -6
  22. package/dist/{chunk-BNH4SXJB.js.map → chunk-2X54ZLT6.js.map} +1 -1
  23. package/dist/{chunk-TYE5K5WV.cjs → chunk-32ZCJOSR.cjs} +4 -4
  24. package/dist/{chunk-TYE5K5WV.cjs.map → chunk-32ZCJOSR.cjs.map} +1 -1
  25. package/dist/chunk-47P5QLX4.cjs +42 -0
  26. package/dist/chunk-47P5QLX4.cjs.map +1 -0
  27. package/dist/chunk-4ZB7RSMY.cjs +306 -0
  28. package/dist/chunk-4ZB7RSMY.cjs.map +1 -0
  29. package/dist/chunk-56VTM4OX.js +261 -0
  30. package/dist/chunk-56VTM4OX.js.map +1 -0
  31. package/dist/{chunk-D22GE27K.js → chunk-5A4SL436.js} +4 -4
  32. package/dist/{chunk-D22GE27K.js.map → chunk-5A4SL436.js.map} +1 -1
  33. package/dist/chunk-6BNZLN4B.cjs +548 -0
  34. package/dist/chunk-6BNZLN4B.cjs.map +1 -0
  35. package/dist/chunk-6JSFT2J5.js +130 -0
  36. package/dist/chunk-6JSFT2J5.js.map +1 -0
  37. package/dist/chunk-6N7NMOSV.js +233 -0
  38. package/dist/chunk-6N7NMOSV.js.map +1 -0
  39. package/dist/chunk-6TTCZY3P.cjs +4 -0
  40. package/dist/chunk-6TTCZY3P.cjs.map +1 -0
  41. package/dist/{chunk-TTSSUOEV.cjs → chunk-7C5W744U.cjs} +8 -8
  42. package/dist/{chunk-TTSSUOEV.cjs.map → chunk-7C5W744U.cjs.map} +1 -1
  43. package/dist/chunk-7HUTR6RX.js +178 -0
  44. package/dist/chunk-7HUTR6RX.js.map +1 -0
  45. package/dist/chunk-7IRTD4JT.cjs +61 -0
  46. package/dist/chunk-7IRTD4JT.cjs.map +1 -0
  47. package/dist/{chunk-YU55JD35.js → chunk-7QW6TU4X.js} +3 -3
  48. package/dist/{chunk-YU55JD35.js.map → chunk-7QW6TU4X.js.map} +1 -1
  49. package/dist/chunk-7WJ6MBF5.cjs +47 -0
  50. package/dist/chunk-7WJ6MBF5.cjs.map +1 -0
  51. package/dist/chunk-A4W5CSK7.cjs +216 -0
  52. package/dist/chunk-A4W5CSK7.cjs.map +1 -0
  53. package/dist/{chunk-WXFGHDTV.cjs → chunk-AJPFQF3H.cjs} +18 -18
  54. package/dist/{chunk-WXFGHDTV.cjs.map → chunk-AJPFQF3H.cjs.map} +1 -1
  55. package/dist/chunk-AMYFRY7K.js +3 -0
  56. package/dist/chunk-AMYFRY7K.js.map +1 -0
  57. package/dist/{chunk-X6A27RGO.cjs → chunk-ANMX7YDL.cjs} +2 -2
  58. package/dist/{chunk-X6A27RGO.cjs.map → chunk-ANMX7YDL.cjs.map} +1 -1
  59. package/dist/{chunk-DVOQ3JNO.js → chunk-B4CKCNWD.js} +16 -8
  60. package/dist/chunk-B4CKCNWD.js.map +1 -0
  61. package/dist/chunk-BJ6ABRSQ.cjs +256 -0
  62. package/dist/chunk-BJ6ABRSQ.cjs.map +1 -0
  63. package/dist/chunk-BXRQ6HEP.cjs +4 -0
  64. package/dist/chunk-BXRQ6HEP.cjs.map +1 -0
  65. package/dist/{chunk-TJCX4OML.cjs → chunk-C77FAR3F.cjs} +2 -2
  66. package/dist/{chunk-TJCX4OML.cjs.map → chunk-C77FAR3F.cjs.map} +1 -1
  67. package/dist/chunk-CBBKWRLG.js +213 -0
  68. package/dist/chunk-CBBKWRLG.js.map +1 -0
  69. package/dist/{chunk-ZTMYKAVU.cjs → chunk-CCAVJSWL.cjs} +49 -48
  70. package/dist/chunk-CCAVJSWL.cjs.map +1 -0
  71. package/dist/chunk-CPDNX3LS.cjs +47 -0
  72. package/dist/chunk-CPDNX3LS.cjs.map +1 -0
  73. package/dist/chunk-CVNPNZMX.js +44 -0
  74. package/dist/chunk-CVNPNZMX.js.map +1 -0
  75. package/dist/chunk-DHGCLPFZ.js +91 -0
  76. package/dist/chunk-DHGCLPFZ.js.map +1 -0
  77. package/dist/chunk-DO2YN46R.cjs +201 -0
  78. package/dist/chunk-DO2YN46R.cjs.map +1 -0
  79. package/dist/chunk-DVDT7TX7.js +151 -0
  80. package/dist/chunk-DVDT7TX7.js.map +1 -0
  81. package/dist/{chunk-R5Z7AOVU.cjs → chunk-DZ3JTMKM.cjs} +9 -9
  82. package/dist/{chunk-R5Z7AOVU.cjs.map → chunk-DZ3JTMKM.cjs.map} +1 -1
  83. package/dist/chunk-EACNRR3C.cjs +4 -0
  84. package/dist/chunk-EACNRR3C.cjs.map +1 -0
  85. package/dist/{chunk-E2PBPQGS.js → chunk-EEOGIGIA.js} +2 -2
  86. package/dist/{chunk-E2PBPQGS.js.map → chunk-EEOGIGIA.js.map} +1 -1
  87. package/dist/chunk-EPCUPHEO.js +193 -0
  88. package/dist/chunk-EPCUPHEO.js.map +1 -0
  89. package/dist/chunk-EPTP3VKT.js +283 -0
  90. package/dist/chunk-EPTP3VKT.js.map +1 -0
  91. package/dist/{chunk-HIZWOAWY.cjs → chunk-ERACGSDY.cjs} +8 -8
  92. package/dist/{chunk-HIZWOAWY.cjs.map → chunk-ERACGSDY.cjs.map} +1 -1
  93. package/dist/{chunk-VOQJHSXN.cjs → chunk-F2FOG4EG.cjs} +9 -9
  94. package/dist/{chunk-VOQJHSXN.cjs.map → chunk-F2FOG4EG.cjs.map} +1 -1
  95. package/dist/{chunk-GBUVIGD5.js → chunk-F3EWRDIT.js} +99 -3
  96. package/dist/chunk-F3EWRDIT.js.map +1 -0
  97. package/dist/{chunk-GVLNXPJX.js → chunk-FGLIP6YR.js} +4 -4
  98. package/dist/{chunk-GVLNXPJX.js.map → chunk-FGLIP6YR.js.map} +1 -1
  99. package/dist/chunk-FKGFOBC2.js +314 -0
  100. package/dist/chunk-FKGFOBC2.js.map +1 -0
  101. package/dist/chunk-FSGJXCBG.cjs +318 -0
  102. package/dist/chunk-FSGJXCBG.cjs.map +1 -0
  103. package/dist/chunk-FTEZNCRI.js +29 -0
  104. package/dist/chunk-FTEZNCRI.js.map +1 -0
  105. package/dist/{chunk-COM7RNZU.cjs → chunk-FYQZWLAM.cjs} +2 -2
  106. package/dist/{chunk-COM7RNZU.cjs.map → chunk-FYQZWLAM.cjs.map} +1 -1
  107. package/dist/{chunk-YVPC65ZJ.cjs → chunk-GF2BE4FB.cjs} +91 -32
  108. package/dist/chunk-GF2BE4FB.cjs.map +1 -0
  109. package/dist/{chunk-JEIW7BSV.cjs → chunk-GKDHMNUA.cjs} +2 -52
  110. package/dist/chunk-GKDHMNUA.cjs.map +1 -0
  111. package/dist/{chunk-N7C4OEP7.cjs → chunk-GM32IDVL.cjs} +6 -6
  112. package/dist/{chunk-N7C4OEP7.cjs.map → chunk-GM32IDVL.cjs.map} +1 -1
  113. package/dist/chunk-GY5SP4ST.js +3 -0
  114. package/dist/chunk-GY5SP4ST.js.map +1 -0
  115. package/dist/chunk-H2Y7HZV5.js +3 -0
  116. package/dist/chunk-H2Y7HZV5.js.map +1 -0
  117. package/dist/chunk-H3QPREIJ.js +195 -0
  118. package/dist/chunk-H3QPREIJ.js.map +1 -0
  119. package/dist/{chunk-QOVJ6Z6R.js → chunk-HDY7YQFX.js} +3 -3
  120. package/dist/{chunk-QOVJ6Z6R.js.map → chunk-HDY7YQFX.js.map} +1 -1
  121. package/dist/chunk-HNFFFFYH.cjs +114 -0
  122. package/dist/chunk-HNFFFFYH.cjs.map +1 -0
  123. package/dist/chunk-HNXLLDPN.js +25 -0
  124. package/dist/chunk-HNXLLDPN.js.map +1 -0
  125. package/dist/chunk-I2MMUFCN.cjs +154 -0
  126. package/dist/chunk-I2MMUFCN.cjs.map +1 -0
  127. package/dist/{chunk-GYXUS65N.cjs → chunk-IGDO62KR.cjs} +5 -5
  128. package/dist/{chunk-GYXUS65N.cjs.map → chunk-IGDO62KR.cjs.map} +1 -1
  129. package/dist/{chunk-HC3NAN55.cjs → chunk-IPL2O2OL.cjs} +19 -19
  130. package/dist/{chunk-HC3NAN55.cjs.map → chunk-IPL2O2OL.cjs.map} +1 -1
  131. package/dist/chunk-ISUIKUX7.cjs +337 -0
  132. package/dist/chunk-ISUIKUX7.cjs.map +1 -0
  133. package/dist/{chunk-N5O47VGS.cjs → chunk-IVGI353O.cjs} +2 -2
  134. package/dist/{chunk-N5O47VGS.cjs.map → chunk-IVGI353O.cjs.map} +1 -1
  135. package/dist/chunk-IWRBJHO3.cjs +51 -0
  136. package/dist/chunk-IWRBJHO3.cjs.map +1 -0
  137. package/dist/{chunk-BIQ7GSO2.js → chunk-JMAZ2GKT.js} +3 -3
  138. package/dist/{chunk-BIQ7GSO2.js.map → chunk-JMAZ2GKT.js.map} +1 -1
  139. package/dist/{chunk-KRU6IGV7.js → chunk-JUJGWUAN.js} +28 -6
  140. package/dist/chunk-JUJGWUAN.js.map +1 -0
  141. package/dist/{chunk-BUT6MF5K.cjs → chunk-KQ6GLYFZ.cjs} +4 -4
  142. package/dist/{chunk-BUT6MF5K.cjs.map → chunk-KQ6GLYFZ.cjs.map} +1 -1
  143. package/dist/chunk-L6K4PRZK.cjs +4 -0
  144. package/dist/chunk-L6K4PRZK.cjs.map +1 -0
  145. package/dist/{chunk-T4L7Q5FA.cjs → chunk-LC3JL2HB.cjs} +6 -2
  146. package/dist/chunk-LC3JL2HB.cjs.map +1 -0
  147. package/dist/{chunk-P7UMS4E6.cjs → chunk-LC7PVBXH.cjs} +16 -8
  148. package/dist/chunk-LC7PVBXH.cjs.map +1 -0
  149. package/dist/chunk-LRRSD7LR.js +248 -0
  150. package/dist/chunk-LRRSD7LR.js.map +1 -0
  151. package/dist/chunk-LSMS6DY7.cjs +331 -0
  152. package/dist/chunk-LSMS6DY7.cjs.map +1 -0
  153. package/dist/chunk-M3VPGJMV.js +283 -0
  154. package/dist/chunk-M3VPGJMV.js.map +1 -0
  155. package/dist/{chunk-QURJVPRH.cjs → chunk-MJJJDQ5P.cjs} +46 -2
  156. package/dist/chunk-MJJJDQ5P.cjs.map +1 -0
  157. package/dist/{chunk-2JICT4A2.js → chunk-N54FYWG6.js} +3 -3
  158. package/dist/{chunk-2JICT4A2.js.map → chunk-N54FYWG6.js.map} +1 -1
  159. package/dist/chunk-N5JDL4VE.js +3 -0
  160. package/dist/chunk-N5JDL4VE.js.map +1 -0
  161. package/dist/{chunk-KGKBZN3T.cjs → chunk-NAH65KPK.cjs} +8 -8
  162. package/dist/{chunk-KGKBZN3T.cjs.map → chunk-NAH65KPK.cjs.map} +1 -1
  163. package/dist/{chunk-NKV76R65.cjs → chunk-O6BJMVGT.cjs} +45 -45
  164. package/dist/{chunk-NKV76R65.cjs.map → chunk-O6BJMVGT.cjs.map} +1 -1
  165. package/dist/{chunk-SVSHA7XV.js → chunk-O6XDA3SI.js} +31 -33
  166. package/dist/chunk-O6XDA3SI.js.map +1 -0
  167. package/dist/chunk-OIF34LEN.cjs +425 -0
  168. package/dist/chunk-OIF34LEN.cjs.map +1 -0
  169. package/dist/chunk-ORCCJ5VY.cjs +218 -0
  170. package/dist/chunk-ORCCJ5VY.cjs.map +1 -0
  171. package/dist/{chunk-CRS2CQWM.js → chunk-OSTSZDQC.js} +3 -3
  172. package/dist/{chunk-CRS2CQWM.js.map → chunk-OSTSZDQC.js.map} +1 -1
  173. package/dist/chunk-P22YCUVM.cjs +4 -0
  174. package/dist/chunk-P22YCUVM.cjs.map +1 -0
  175. package/dist/chunk-P55LNEDH.cjs +306 -0
  176. package/dist/chunk-P55LNEDH.cjs.map +1 -0
  177. package/dist/{chunk-R6KPWIGO.js → chunk-P7D7BYFE.js} +4 -4
  178. package/dist/{chunk-R6KPWIGO.js.map → chunk-P7D7BYFE.js.map} +1 -1
  179. package/dist/{chunk-GU5OS7JJ.cjs → chunk-PYI2IWNX.cjs} +4 -4
  180. package/dist/{chunk-GU5OS7JJ.cjs.map → chunk-PYI2IWNX.cjs.map} +1 -1
  181. package/dist/chunk-Q3YVLO52.cjs +174 -0
  182. package/dist/chunk-Q3YVLO52.cjs.map +1 -0
  183. package/dist/{chunk-K34DXMLZ.js → chunk-QJ2L5RU6.js} +7 -7
  184. package/dist/{chunk-K34DXMLZ.js.map → chunk-QJ2L5RU6.js.map} +1 -1
  185. package/dist/{chunk-X4LBUPJO.cjs → chunk-QX6AAVDE.cjs} +31 -33
  186. package/dist/chunk-QX6AAVDE.cjs.map +1 -0
  187. package/dist/{chunk-LFPJ3OUM.cjs → chunk-RIUQP2QS.cjs} +5 -5
  188. package/dist/{chunk-LFPJ3OUM.cjs.map → chunk-RIUQP2QS.cjs.map} +1 -1
  189. package/dist/{chunk-JHG3ELS2.js → chunk-RPFATYUI.js} +2 -2
  190. package/dist/{chunk-JHG3ELS2.js.map → chunk-RPFATYUI.js.map} +1 -1
  191. package/dist/{chunk-FZURBQJ2.js → chunk-RSJGTWLM.js} +3 -3
  192. package/dist/{chunk-FZURBQJ2.js.map → chunk-RSJGTWLM.js.map} +1 -1
  193. package/dist/{chunk-XBTKZCZF.js → chunk-RZSSQ7AT.js} +3 -3
  194. package/dist/{chunk-XBTKZCZF.js.map → chunk-RZSSQ7AT.js.map} +1 -1
  195. package/dist/{chunk-SD7ONW6S.js → chunk-S2JZL4JC.js} +5 -5
  196. package/dist/{chunk-SD7ONW6S.js.map → chunk-S2JZL4JC.js.map} +1 -1
  197. package/dist/{chunk-VROIMIHB.cjs → chunk-SHBCUXFS.cjs} +28 -6
  198. package/dist/chunk-SHBCUXFS.cjs.map +1 -0
  199. package/dist/{chunk-JELTRRR5.cjs → chunk-SW2E7XKY.cjs} +9 -9
  200. package/dist/{chunk-JELTRRR5.cjs.map → chunk-SW2E7XKY.cjs.map} +1 -1
  201. package/dist/chunk-SZSRGUVO.js +402 -0
  202. package/dist/chunk-SZSRGUVO.js.map +1 -0
  203. package/dist/{chunk-HZ4MBUC3.js → chunk-TI3TQQ7F.js} +4 -53
  204. package/dist/chunk-TI3TQQ7F.js.map +1 -0
  205. package/dist/{chunk-MLAWXPRY.js → chunk-TKWNXAFI.js} +46 -2
  206. package/dist/chunk-TKWNXAFI.js.map +1 -0
  207. package/dist/{chunk-H2IAMSHK.js → chunk-TVEJKKIM.js} +3 -3
  208. package/dist/{chunk-H2IAMSHK.js.map → chunk-TVEJKKIM.js.map} +1 -1
  209. package/dist/{chunk-LHBWRMNC.cjs → chunk-TVU4KB27.cjs} +130 -12
  210. package/dist/chunk-TVU4KB27.cjs.map +1 -0
  211. package/dist/{chunk-ENMXHZNE.js → chunk-TWQSMUE6.js} +6 -2
  212. package/dist/chunk-TWQSMUE6.js.map +1 -0
  213. package/dist/{chunk-ZYL4SNOR.js → chunk-UJDWFDKE.js} +3 -3
  214. package/dist/{chunk-ZYL4SNOR.js.map → chunk-UJDWFDKE.js.map} +1 -1
  215. package/dist/{chunk-4HC2IBOX.js → chunk-UNFDIBKJ.js} +3 -3
  216. package/dist/{chunk-4HC2IBOX.js.map → chunk-UNFDIBKJ.js.map} +1 -1
  217. package/dist/chunk-UTIPENPW.cjs +286 -0
  218. package/dist/chunk-UTIPENPW.cjs.map +1 -0
  219. package/dist/{chunk-IYWG72DM.js → chunk-VEE46VTX.js} +4 -4
  220. package/dist/{chunk-IYWG72DM.js.map → chunk-VEE46VTX.js.map} +1 -1
  221. package/dist/{chunk-Y4E2WRUR.cjs → chunk-VFFV7EMT.cjs} +6 -6
  222. package/dist/{chunk-Y4E2WRUR.cjs.map → chunk-VFFV7EMT.cjs.map} +1 -1
  223. package/dist/chunk-VNEAQCY2.js +308 -0
  224. package/dist/chunk-VNEAQCY2.js.map +1 -0
  225. package/dist/chunk-VOYLX32A.cjs +271 -0
  226. package/dist/chunk-VOYLX32A.cjs.map +1 -0
  227. package/dist/{chunk-7ZV67VZE.js → chunk-VSRO4PAI.js} +21 -3
  228. package/dist/chunk-VSRO4PAI.js.map +1 -0
  229. package/dist/{chunk-L6MDULYB.js → chunk-VU3ZMJBN.js} +2 -2
  230. package/dist/{chunk-L6MDULYB.js.map → chunk-VU3ZMJBN.js.map} +1 -1
  231. package/dist/{chunk-CPPUT74P.cjs → chunk-VV2U36T6.cjs} +9 -9
  232. package/dist/{chunk-CPPUT74P.cjs.map → chunk-VV2U36T6.cjs.map} +1 -1
  233. package/dist/{chunk-35Y4ILCU.cjs → chunk-VXW7D5LR.cjs} +21 -3
  234. package/dist/chunk-VXW7D5LR.cjs.map +1 -0
  235. package/dist/{chunk-7YO7DNUV.js → chunk-WFBUBT54.js} +2 -2
  236. package/dist/{chunk-7YO7DNUV.js.map → chunk-WFBUBT54.js.map} +1 -1
  237. package/dist/chunk-WQHBMZSC.js +295 -0
  238. package/dist/chunk-WQHBMZSC.js.map +1 -0
  239. package/dist/chunk-X5JOEZVR.js +525 -0
  240. package/dist/chunk-X5JOEZVR.js.map +1 -0
  241. package/dist/chunk-XBAAHOCP.js +3 -0
  242. package/dist/chunk-XBAAHOCP.js.map +1 -0
  243. package/dist/chunk-XNPDZANN.cjs +238 -0
  244. package/dist/chunk-XNPDZANN.cjs.map +1 -0
  245. package/dist/chunk-XXA4NZUC.js +3 -0
  246. package/dist/chunk-XXA4NZUC.js.map +1 -0
  247. package/dist/chunk-Y424YL55.js +59 -0
  248. package/dist/chunk-Y424YL55.js.map +1 -0
  249. package/dist/chunk-YGS2TRMP.js +38 -0
  250. package/dist/chunk-YGS2TRMP.js.map +1 -0
  251. package/dist/{chunk-JBIGSP2T.js → chunk-YMILRSRO.js} +6 -5
  252. package/dist/chunk-YMILRSRO.js.map +1 -0
  253. package/dist/chunk-YUMOM3KE.js +167 -0
  254. package/dist/chunk-YUMOM3KE.js.map +1 -0
  255. package/dist/{chunk-3KPDQG5O.cjs → chunk-ZG6FXMDX.cjs} +5 -5
  256. package/dist/{chunk-3KPDQG5O.cjs.map → chunk-ZG6FXMDX.cjs.map} +1 -1
  257. package/dist/chunk-ZNUMOJOI.cjs +4 -0
  258. package/dist/chunk-ZNUMOJOI.cjs.map +1 -0
  259. package/dist/components/Accordion/index.cjs +2 -2
  260. package/dist/components/Accordion/index.d.cts +6 -0
  261. package/dist/components/Accordion/index.d.ts +6 -0
  262. package/dist/components/Accordion/index.js +1 -1
  263. package/dist/components/ActionPlan/index.cjs +34 -0
  264. package/dist/components/ActionPlan/index.cjs.map +1 -0
  265. package/dist/components/ActionPlan/index.d.cts +65 -0
  266. package/dist/components/ActionPlan/index.d.ts +65 -0
  267. package/dist/components/ActionPlan/index.js +21 -0
  268. package/dist/components/ActionPlan/index.js.map +1 -0
  269. package/dist/components/ActivityFeed/index.cjs +31 -0
  270. package/dist/components/ActivityFeed/index.cjs.map +1 -0
  271. package/dist/components/ActivityFeed/index.d.cts +99 -0
  272. package/dist/components/ActivityFeed/index.d.ts +99 -0
  273. package/dist/components/ActivityFeed/index.js +18 -0
  274. package/dist/components/ActivityFeed/index.js.map +1 -0
  275. package/dist/components/AlertDialog/index.cjs +17 -4
  276. package/dist/components/AlertDialog/index.d.cts +66 -13
  277. package/dist/components/AlertDialog/index.d.ts +66 -13
  278. package/dist/components/AlertDialog/index.js +4 -3
  279. package/dist/components/AssociationList/index.cjs +29 -0
  280. package/dist/components/AssociationList/index.cjs.map +1 -0
  281. package/dist/components/AssociationList/index.d.cts +50 -0
  282. package/dist/components/AssociationList/index.d.ts +50 -0
  283. package/dist/components/AssociationList/index.js +16 -0
  284. package/dist/components/AssociationList/index.js.map +1 -0
  285. package/dist/components/Avatar/index.cjs +9 -7
  286. package/dist/components/Avatar/index.d.cts +45 -14
  287. package/dist/components/Avatar/index.d.ts +45 -14
  288. package/dist/components/Avatar/index.js +3 -1
  289. package/dist/components/AvatarGroup/index.cjs +20 -0
  290. package/dist/components/AvatarGroup/index.cjs.map +1 -0
  291. package/dist/components/AvatarGroup/index.d.cts +57 -0
  292. package/dist/components/AvatarGroup/index.d.ts +57 -0
  293. package/dist/components/AvatarGroup/index.js +7 -0
  294. package/dist/components/AvatarGroup/index.js.map +1 -0
  295. package/dist/components/Button/index.cjs +3 -2
  296. package/dist/components/Button/index.js +2 -1
  297. package/dist/components/CalendarHeatmap/index.cjs +18 -0
  298. package/dist/components/CalendarHeatmap/index.cjs.map +1 -0
  299. package/dist/components/CalendarHeatmap/index.d.cts +47 -0
  300. package/dist/components/CalendarHeatmap/index.d.ts +47 -0
  301. package/dist/components/CalendarHeatmap/index.js +5 -0
  302. package/dist/components/CalendarHeatmap/index.js.map +1 -0
  303. package/dist/components/CalendarView/index.cjs +5 -4
  304. package/dist/components/CalendarView/index.js +3 -2
  305. package/dist/components/ClampedText/index.cjs +3 -2
  306. package/dist/components/ClampedText/index.js +2 -1
  307. package/dist/components/CollabStatus/index.cjs +6 -4
  308. package/dist/components/CollabStatus/index.d.cts +11 -0
  309. package/dist/components/CollabStatus/index.d.ts +11 -0
  310. package/dist/components/CollabStatus/index.js +3 -1
  311. package/dist/components/Collapsible/index.cjs +4 -4
  312. package/dist/components/Collapsible/index.d.cts +6 -0
  313. package/dist/components/Collapsible/index.d.ts +6 -0
  314. package/dist/components/Collapsible/index.js +1 -1
  315. package/dist/components/CompletenessMeter/index.cjs +22 -0
  316. package/dist/components/CompletenessMeter/index.cjs.map +1 -0
  317. package/dist/components/CompletenessMeter/index.d.cts +52 -0
  318. package/dist/components/CompletenessMeter/index.d.ts +52 -0
  319. package/dist/components/CompletenessMeter/index.js +5 -0
  320. package/dist/components/CompletenessMeter/index.js.map +1 -0
  321. package/dist/components/CustomizableDashboard/index.cjs +10 -9
  322. package/dist/components/CustomizableDashboard/index.js +3 -2
  323. package/dist/components/DateInput/index.d.cts +36 -4
  324. package/dist/components/DateInput/index.d.ts +36 -4
  325. package/dist/components/Dropdown/index.cjs +9 -8
  326. package/dist/components/Dropdown/index.js +2 -1
  327. package/dist/components/FieldHistory/index.cjs +34 -0
  328. package/dist/components/FieldHistory/index.cjs.map +1 -0
  329. package/dist/components/FieldHistory/index.d.cts +66 -0
  330. package/dist/components/FieldHistory/index.d.ts +66 -0
  331. package/dist/components/FieldHistory/index.js +21 -0
  332. package/dist/components/FieldHistory/index.js.map +1 -0
  333. package/dist/components/FloatingWindow/index.cjs +5 -4
  334. package/dist/components/FloatingWindow/index.js +3 -2
  335. package/dist/components/InlineEdit/index.cjs +20 -0
  336. package/dist/components/InlineEdit/index.cjs.map +1 -0
  337. package/dist/components/InlineEdit/index.d.cts +56 -0
  338. package/dist/components/InlineEdit/index.d.ts +56 -0
  339. package/dist/components/InlineEdit/index.js +7 -0
  340. package/dist/components/InlineEdit/index.js.map +1 -0
  341. package/dist/components/KeyboardShortcutsOverlay/index.cjs +4 -4
  342. package/dist/components/KeyboardShortcutsOverlay/index.js +2 -2
  343. package/dist/components/ListView/index.cjs +5 -4
  344. package/dist/components/ListView/index.js +3 -2
  345. package/dist/components/LogoUploader/index.cjs +18 -0
  346. package/dist/components/LogoUploader/index.cjs.map +1 -0
  347. package/dist/components/LogoUploader/index.d.cts +49 -0
  348. package/dist/components/LogoUploader/index.d.ts +49 -0
  349. package/dist/components/LogoUploader/index.js +5 -0
  350. package/dist/components/LogoUploader/index.js.map +1 -0
  351. package/dist/components/Markdown/index.cjs +17 -16
  352. package/dist/components/Markdown/index.js +8 -7
  353. package/dist/components/MediaEditor/index.cjs +10 -9
  354. package/dist/components/MediaEditor/index.js +5 -4
  355. package/dist/components/MediaFeed/index.cjs +9 -6
  356. package/dist/components/MediaFeed/index.js +8 -5
  357. package/dist/components/MediaPlayer/index.cjs +6 -5
  358. package/dist/components/MediaPlayer/index.js +3 -2
  359. package/dist/components/MegaMenu/index.cjs +2 -1
  360. package/dist/components/MegaMenu/index.js +2 -1
  361. package/dist/components/Modal/index.cjs +9 -9
  362. package/dist/components/Modal/index.js +1 -1
  363. package/dist/components/PhiMask/index.cjs +18 -0
  364. package/dist/components/PhiMask/index.cjs.map +1 -0
  365. package/dist/components/PhiMask/index.d.cts +45 -0
  366. package/dist/components/PhiMask/index.d.ts +45 -0
  367. package/dist/components/PhiMask/index.js +5 -0
  368. package/dist/components/PhiMask/index.js.map +1 -0
  369. package/dist/components/PhoneInput/index.d.cts +3 -36
  370. package/dist/components/PhoneInput/index.d.ts +3 -36
  371. package/dist/components/PropertyList/index.cjs +25 -0
  372. package/dist/components/PropertyList/index.cjs.map +1 -0
  373. package/dist/components/PropertyList/index.d.cts +71 -0
  374. package/dist/components/PropertyList/index.d.ts +71 -0
  375. package/dist/components/PropertyList/index.js +12 -0
  376. package/dist/components/PropertyList/index.js.map +1 -0
  377. package/dist/components/RadialExplorer/index.cjs +2 -1
  378. package/dist/components/RadialExplorer/index.js +2 -1
  379. package/dist/components/Rating/index.cjs +28 -0
  380. package/dist/components/Rating/index.cjs.map +1 -0
  381. package/dist/components/Rating/index.d.cts +85 -0
  382. package/dist/components/Rating/index.d.ts +85 -0
  383. package/dist/components/Rating/index.js +7 -0
  384. package/dist/components/Rating/index.js.map +1 -0
  385. package/dist/components/RecordHeader/index.cjs +29 -0
  386. package/dist/components/RecordHeader/index.cjs.map +1 -0
  387. package/dist/components/RecordHeader/index.d.cts +86 -0
  388. package/dist/components/RecordHeader/index.d.ts +86 -0
  389. package/dist/components/RecordHeader/index.js +16 -0
  390. package/dist/components/RecordHeader/index.js.map +1 -0
  391. package/dist/components/RecordLayout/index.cjs +21 -0
  392. package/dist/components/RecordLayout/index.cjs.map +1 -0
  393. package/dist/components/RecordLayout/index.d.cts +40 -0
  394. package/dist/components/RecordLayout/index.d.ts +40 -0
  395. package/dist/components/RecordLayout/index.js +8 -0
  396. package/dist/components/RecordLayout/index.js.map +1 -0
  397. package/dist/components/RichTextEditor/index.cjs +8 -6
  398. package/dist/components/RichTextEditor/index.js +5 -3
  399. package/dist/components/SectionSpyNav/index.cjs +2 -1
  400. package/dist/components/SectionSpyNav/index.js +2 -1
  401. package/dist/components/SuperChat/index.cjs +23 -19
  402. package/dist/components/SuperChat/index.cjs.map +1 -1
  403. package/dist/components/SuperChat/index.js +11 -7
  404. package/dist/components/SuperChat/index.js.map +1 -1
  405. package/dist/components/SuperChat/plugins/index.cjs +5 -4
  406. package/dist/components/SuperChat/plugins/index.cjs.map +1 -1
  407. package/dist/components/SuperChat/plugins/index.js +4 -3
  408. package/dist/components/SuperChat/plugins/index.js.map +1 -1
  409. package/dist/components/Tabs/index.cjs +9 -7
  410. package/dist/components/Tabs/index.d.cts +12 -1
  411. package/dist/components/Tabs/index.d.ts +12 -1
  412. package/dist/components/Tabs/index.js +3 -1
  413. package/dist/components/TagEditor/index.cjs +20 -0
  414. package/dist/components/TagEditor/index.cjs.map +1 -0
  415. package/dist/components/TagEditor/index.d.cts +46 -0
  416. package/dist/components/TagEditor/index.d.ts +46 -0
  417. package/dist/components/TagEditor/index.js +7 -0
  418. package/dist/components/TagEditor/index.js.map +1 -0
  419. package/dist/components/UserPicker/index.cjs +24 -0
  420. package/dist/components/UserPicker/index.cjs.map +1 -0
  421. package/dist/components/UserPicker/index.d.cts +60 -0
  422. package/dist/components/UserPicker/index.d.ts +60 -0
  423. package/dist/components/UserPicker/index.js +11 -0
  424. package/dist/components/UserPicker/index.js.map +1 -0
  425. package/dist/components/ViewSet/index.cjs +6 -5
  426. package/dist/components/ViewSet/index.d.cts +2 -1
  427. package/dist/components/ViewSet/index.d.ts +2 -1
  428. package/dist/components/ViewSet/index.js +5 -4
  429. package/dist/components/ViewSwitcher/index.d.cts +39 -4
  430. package/dist/components/ViewSwitcher/index.d.ts +39 -4
  431. package/dist/datavis.cjs +3 -2
  432. package/dist/datavis.cjs.map +1 -1
  433. package/dist/datavis.js +2 -1
  434. package/dist/datavis.js.map +1 -1
  435. package/dist/esheet.cjs +9 -7
  436. package/dist/esheet.cjs.map +1 -1
  437. package/dist/esheet.js +6 -4
  438. package/dist/esheet.js.map +1 -1
  439. package/dist/hooks/index.cjs +53 -27
  440. package/dist/hooks/index.d.cts +91 -6
  441. package/dist/hooks/index.d.ts +91 -6
  442. package/dist/hooks/index.js +5 -3
  443. package/dist/index.cjs +1391 -847
  444. package/dist/index.cjs.map +1 -1
  445. package/dist/index.d.cts +1253 -168
  446. package/dist/index.d.ts +1253 -168
  447. package/dist/index.js +539 -171
  448. package/dist/index.js.map +1 -1
  449. package/dist/org-chart.cjs +1302 -0
  450. package/dist/org-chart.cjs.map +1 -0
  451. package/dist/org-chart.d.cts +164 -0
  452. package/dist/org-chart.d.ts +164 -0
  453. package/dist/org-chart.js +1277 -0
  454. package/dist/org-chart.js.map +1 -0
  455. package/dist/styles.css +1 -1
  456. package/dist/tailwind-preset.cjs +4 -4
  457. package/dist/tailwind-preset.js +1 -1
  458. package/dist/{index-DoYYWsNc.d.cts → types-CDeBNZiE.d.cts} +1 -36
  459. package/dist/{index-DoYYWsNc.d.ts → types-CDeBNZiE.d.ts} +1 -36
  460. package/package.json +22 -2
  461. package/dist/CsvBlock-FX5YNGNE.cjs +0 -17
  462. package/dist/CsvBlock-VLMG7GUO.js +0 -8
  463. package/dist/HtmlPreviewBlock-5JE7L3GR.js +0 -8
  464. package/dist/HtmlPreviewBlock-UO37JQ3K.cjs +0 -17
  465. package/dist/MermaidBlock-3XHFBAMV.js +0 -8
  466. package/dist/MermaidBlock-RZ75RPZA.cjs +0 -17
  467. package/dist/SurveyBlock-MUVJ3JUI.js +0 -8
  468. package/dist/SurveyBlock-VH47YXZC.cjs +0 -17
  469. package/dist/chunk-35Y4ILCU.cjs.map +0 -1
  470. package/dist/chunk-6N6LIAUJ.cjs +0 -80
  471. package/dist/chunk-6N6LIAUJ.cjs.map +0 -1
  472. package/dist/chunk-7ZV67VZE.js.map +0 -1
  473. package/dist/chunk-7ZVTLTJF.js +0 -109
  474. package/dist/chunk-7ZVTLTJF.js.map +0 -1
  475. package/dist/chunk-DVOQ3JNO.js.map +0 -1
  476. package/dist/chunk-ENMXHZNE.js.map +0 -1
  477. package/dist/chunk-GBUVIGD5.js.map +0 -1
  478. package/dist/chunk-HZ4MBUC3.js.map +0 -1
  479. package/dist/chunk-JBIGSP2T.js.map +0 -1
  480. package/dist/chunk-JEIW7BSV.cjs.map +0 -1
  481. package/dist/chunk-KRU6IGV7.js.map +0 -1
  482. package/dist/chunk-LHBWRMNC.cjs.map +0 -1
  483. package/dist/chunk-MLAWXPRY.js.map +0 -1
  484. package/dist/chunk-P7UMS4E6.cjs.map +0 -1
  485. package/dist/chunk-QURJVPRH.cjs.map +0 -1
  486. package/dist/chunk-SVSHA7XV.js.map +0 -1
  487. package/dist/chunk-T4L7Q5FA.cjs.map +0 -1
  488. package/dist/chunk-UBSH27C2.js +0 -78
  489. package/dist/chunk-UBSH27C2.js.map +0 -1
  490. package/dist/chunk-VROIMIHB.cjs.map +0 -1
  491. package/dist/chunk-X4LBUPJO.cjs.map +0 -1
  492. package/dist/chunk-YVPC65ZJ.cjs.map +0 -1
  493. package/dist/chunk-ZTMYKAVU.cjs.map +0 -1
@@ -0,0 +1,1302 @@
1
+ 'use strict';
2
+
3
+ require('./chunk-P22YCUVM.cjs');
4
+ require('./chunk-Q3YVLO52.cjs');
5
+ var chunkGKDHMNUA_cjs = require('./chunk-GKDHMNUA.cjs');
6
+ var chunk4NCDU5IG_cjs = require('./chunk-4NCDU5IG.cjs');
7
+ var chunkXXVUHLQN_cjs = require('./chunk-XXVUHLQN.cjs');
8
+ require('./chunk-EACNRR3C.cjs');
9
+ var chunkANMX7YDL_cjs = require('./chunk-ANMX7YDL.cjs');
10
+ require('./chunk-DXEPYK3I.cjs');
11
+ var chunkS5RVSXDV_cjs = require('./chunk-S5RVSXDV.cjs');
12
+ require('./chunk-EUAMEVVI.cjs');
13
+ var React3 = require('react');
14
+ var lucideReact = require('lucide-react');
15
+ var react = require('@xyflow/react');
16
+ var jsxRuntime = require('react/jsx-runtime');
17
+
18
+ function _interopNamespace(e) {
19
+ if (e && e.__esModule) return e;
20
+ var n = Object.create(null);
21
+ if (e) {
22
+ Object.keys(e).forEach(function (k) {
23
+ if (k !== 'default') {
24
+ var d = Object.getOwnPropertyDescriptor(e, k);
25
+ Object.defineProperty(n, k, d.get ? d : {
26
+ enumerable: true,
27
+ get: function () { return e[k]; }
28
+ });
29
+ }
30
+ });
31
+ }
32
+ n.default = e;
33
+ return Object.freeze(n);
34
+ }
35
+
36
+ var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
37
+
38
+ // src/components/OrgChart/layout.ts
39
+ var ORG_CHART_LAYOUT_OPTIONS = {
40
+ "elk.algorithm": "layered",
41
+ "elk.layered.considerModelOrder.strategy": "NODES_AND_EDGES",
42
+ "elk.layered.nodePlacement.strategy": "BRANDES_KOEPF",
43
+ "elk.layered.spacing.nodeNodeBetweenLayers": "64",
44
+ "elk.spacing.nodeNode": "28",
45
+ "elk.spacing.componentComponent": "64",
46
+ "elk.edgeRouting": "ORTHOGONAL"
47
+ };
48
+ var elkPromise = null;
49
+ function getElk() {
50
+ elkPromise ??= import('elkjs/lib/elk.bundled.js').then(
51
+ (m) => new m.default()
52
+ );
53
+ return elkPromise;
54
+ }
55
+ async function layoutOrgChart(req) {
56
+ const graph = {
57
+ id: "org-chart-root",
58
+ layoutOptions: {
59
+ ...ORG_CHART_LAYOUT_OPTIONS,
60
+ "elk.direction": req.direction
61
+ },
62
+ children: req.ids.map((id) => ({
63
+ id,
64
+ width: req.width,
65
+ height: req.height
66
+ })),
67
+ edges: req.edges.map((e) => ({
68
+ id: JSON.stringify([e.source, e.target]),
69
+ sources: [e.source],
70
+ targets: [e.target]
71
+ }))
72
+ };
73
+ try {
74
+ const elk = await getElk();
75
+ const out = await elk.layout(graph);
76
+ return new Map(
77
+ (out.children ?? []).map((c) => [c.id, { x: c.x ?? 0, y: c.y ?? 0 }])
78
+ );
79
+ } catch {
80
+ return gridLayout(req);
81
+ }
82
+ }
83
+ function gridLayout(req) {
84
+ const parent = new Map(req.edges.map((e) => [e.target, e.source]));
85
+ const perDepth = /* @__PURE__ */ new Map();
86
+ const out = /* @__PURE__ */ new Map();
87
+ for (const id of req.ids) {
88
+ let depth = 0;
89
+ for (let p = parent.get(id); p != null; p = parent.get(p)) depth++;
90
+ const slot = perDepth.get(depth) ?? 0;
91
+ perDepth.set(depth, slot + 1);
92
+ const along = slot * (req.direction === "DOWN" ? req.width + 28 : req.height + 28);
93
+ const across = depth * (req.direction === "DOWN" ? req.height + 64 : req.width + 64);
94
+ out.set(
95
+ id,
96
+ req.direction === "DOWN" ? { x: along, y: across } : { x: across, y: along }
97
+ );
98
+ }
99
+ return out;
100
+ }
101
+
102
+ // src/components/OrgChart/shared.ts
103
+ var plural = (n, one, many) => `${n} ${n === 1 ? one : many}`;
104
+ var defaultOrgChartLabels = {
105
+ chart: "Organization chart",
106
+ tree: "Organization",
107
+ toolbar: "Organization chart tools",
108
+ search: "Search",
109
+ searchPlaceholder: "Search name, title or group",
110
+ results: (n) => n === 0 ? "No matches" : plural(n, "match", "matches"),
111
+ groupFilter: "Filter by group",
112
+ allGroups: "All groups",
113
+ expandAll: "Expand all",
114
+ collapseAll: "Collapse all",
115
+ fitView: "Fit to view",
116
+ minimap: "Minimap",
117
+ fullscreen: "Full screen",
118
+ viewToggle: "View",
119
+ chartView: "Chart",
120
+ listView: "List",
121
+ canvasHint: "Use the card buttons to show details or expand reports. Switch to the list view to browse with arrow keys.",
122
+ expand: (name, n) => `Expand ${name}, ${plural(n, "report", "reports")}`,
123
+ collapse: (name) => `Collapse ${name}`,
124
+ directReports: (n) => plural(n, "direct report", "direct reports"),
125
+ orgSize: (n) => `${n} in organization`,
126
+ reportsTo: (name) => `Reports to ${name}`,
127
+ highlighted: "Current",
128
+ open: "Open",
129
+ close: "Close details",
130
+ loading: "Loading organization",
131
+ empty: "No one to show",
132
+ error: "Could not load the organization",
133
+ retry: "Try again"
134
+ };
135
+ var ORG_CHART_GROUP_ACCENTS = [
136
+ "primary",
137
+ "info",
138
+ "success",
139
+ "warning",
140
+ "neutral"
141
+ ];
142
+ var accentClassesFor = (accent) => accent ? chunk4NCDU5IG_cjs.accentClasses[accent] : void 0;
143
+ var ORG_CHART_NODE_SIZE = {
144
+ person: { width: 248, height: 92 },
145
+ location: { width: 248, height: 76 }
146
+ };
147
+ function prefersReducedMotion() {
148
+ return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
149
+ }
150
+ function GroupPill({
151
+ group,
152
+ accent
153
+ }) {
154
+ const a = accentClassesFor(accent);
155
+ return /* @__PURE__ */ jsxRuntime.jsxs(
156
+ "span",
157
+ {
158
+ className: chunkS5RVSXDV_cjs.cn(
159
+ "text-foreground inline-flex max-w-full items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-medium",
160
+ a?.tint ?? "bg-muted"
161
+ ),
162
+ children: [
163
+ /* @__PURE__ */ jsxRuntime.jsx(
164
+ "span",
165
+ {
166
+ "aria-hidden": "true",
167
+ className: chunkS5RVSXDV_cjs.cn("size-1.5 shrink-0 rounded-full", a?.marker)
168
+ }
169
+ ),
170
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: group })
171
+ ]
172
+ }
173
+ );
174
+ }
175
+ function NodeBody({
176
+ node,
177
+ variant,
178
+ accent
179
+ }) {
180
+ const secondary = variant === "person" ? node.title : node.subtitle;
181
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
182
+ variant === "person" ? /* @__PURE__ */ jsxRuntime.jsx(chunkGKDHMNUA_cjs.Avatar, { src: node.avatarUrl, name: node.name, alt: "", size: "md" }) : /* @__PURE__ */ jsxRuntime.jsx(
183
+ "span",
184
+ {
185
+ "aria-hidden": "true",
186
+ className: "bg-primary-500/10 text-primary-700 dark:text-primary-300 flex size-10 shrink-0 items-center justify-center rounded-md",
187
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Building2, { className: "size-5" })
188
+ }
189
+ ),
190
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
191
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground truncate text-sm font-semibold", children: node.name }),
192
+ secondary && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground truncate text-xs", children: secondary }),
193
+ node.group && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-0.5 flex", children: /* @__PURE__ */ jsxRuntime.jsx(GroupPill, { group: node.group, accent }) })
194
+ ] })
195
+ ] });
196
+ }
197
+ var CanvasContext = React3__namespace.createContext(null);
198
+ var hiddenHandle = { opacity: 0, pointerEvents: "none" };
199
+ function OrgFlowNodeView({ data }) {
200
+ const c = React3__namespace.useContext(CanvasContext);
201
+ const { node, ctx, focused } = data;
202
+ const accent = accentClassesFor(ctx.accent);
203
+ const start = c.horizontal ? c.rtl ? react.Position.Right : react.Position.Left : react.Position.Top;
204
+ const end = c.horizontal ? c.rtl ? react.Position.Left : react.Position.Right : react.Position.Bottom;
205
+ const Chevron = ctx.expanded ? lucideReact.ChevronDown : lucideReact.ChevronRight;
206
+ return /* @__PURE__ */ jsxRuntime.jsxs(
207
+ "div",
208
+ {
209
+ "data-slot": "org-chart-node",
210
+ "data-highlighted": ctx.highlighted || void 0,
211
+ "data-matched": ctx.matched || void 0,
212
+ style: { pointerEvents: "auto" },
213
+ className: chunkS5RVSXDV_cjs.cn(
214
+ "bg-card text-foreground relative h-full w-full rounded-lg border border-s-4 shadow-sm",
215
+ "motion-safe:transition-[opacity,box-shadow]",
216
+ accent?.border ?? "border-border",
217
+ (ctx.highlighted || focused) && "ring-primary-500 ring-offset-background ring-2 ring-offset-2",
218
+ ctx.matched && "ring-ring ring-2",
219
+ ctx.dimmed && "opacity-40",
220
+ c.classNames?.node
221
+ ),
222
+ children: [
223
+ /* @__PURE__ */ jsxRuntime.jsx(
224
+ react.Handle,
225
+ {
226
+ type: "target",
227
+ position: start,
228
+ isConnectable: false,
229
+ style: hiddenHandle
230
+ }
231
+ ),
232
+ /* @__PURE__ */ jsxRuntime.jsx(
233
+ "button",
234
+ {
235
+ type: "button",
236
+ "aria-haspopup": "dialog",
237
+ onClick: () => c.onSelect(node.id),
238
+ className: "nodrag nopan focus-visible:ring-ring flex h-full w-full items-center gap-3 rounded-md px-3 text-start focus-visible:ring-2 focus-visible:outline-none",
239
+ children: c.renderNode ? c.renderNode(node, ctx) : /* @__PURE__ */ jsxRuntime.jsx(NodeBody, { node, variant: ctx.variant, accent: ctx.accent })
240
+ }
241
+ ),
242
+ (ctx.highlighted || c.renderBadges) && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "absolute end-2 -top-2.5 flex gap-1", children: [
243
+ ctx.highlighted && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-primary-600 rounded-full px-1.5 py-0.5 text-[10px] font-bold text-white uppercase shadow-sm", children: c.labels.highlighted }),
244
+ c.renderBadges?.(node)
245
+ ] }),
246
+ ctx.directReports > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
247
+ "button",
248
+ {
249
+ type: "button",
250
+ "aria-expanded": ctx.expanded,
251
+ "aria-label": ctx.expanded ? c.labels.collapse(node.name) : c.labels.expand(node.name, ctx.directReports),
252
+ onClick: () => c.onToggle(node.id),
253
+ className: chunkS5RVSXDV_cjs.cn(
254
+ "nodrag nopan absolute z-10 flex h-6 min-w-6 items-center justify-center gap-0.5 rounded-full border px-1.5 text-[11px] font-semibold shadow-sm",
255
+ "focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none",
256
+ c.horizontal ? "-end-3 top-1/2 -translate-y-1/2" : "-bottom-3 left-1/2 -translate-x-1/2",
257
+ ctx.expanded ? "border-primary-600 bg-primary-600 text-white" : "border-border bg-card text-foreground hover:border-primary-500"
258
+ ),
259
+ children: [
260
+ /* @__PURE__ */ jsxRuntime.jsx(Chevron, { "aria-hidden": "true", className: "size-3 rtl:-scale-x-100" }),
261
+ ctx.directReports
262
+ ]
263
+ }
264
+ ),
265
+ /* @__PURE__ */ jsxRuntime.jsx(
266
+ react.Handle,
267
+ {
268
+ type: "source",
269
+ position: end,
270
+ isConnectable: false,
271
+ style: hiddenHandle
272
+ }
273
+ )
274
+ ]
275
+ }
276
+ );
277
+ }
278
+ var nodeTypes = { org: OrgFlowNodeView };
279
+ var flowStyle = {
280
+ "--xy-background-color": "transparent",
281
+ "--xy-background-pattern-color": "var(--mieweb-border)",
282
+ "--xy-edge-stroke": "var(--mieweb-muted-foreground)",
283
+ "--xy-edge-stroke-width": "1.25",
284
+ "--xy-node-background-color": "transparent",
285
+ "--xy-node-border": "none",
286
+ "--xy-node-border-radius": "0.5rem",
287
+ "--xy-node-boxshadow-hover": "none",
288
+ "--xy-node-boxshadow-selected": "none",
289
+ "--xy-node-color": "inherit",
290
+ "--xy-minimap-background-color": "var(--mieweb-card)",
291
+ "--xy-minimap-mask-background-color": "color-mix(in srgb, var(--mieweb-muted) 70%, transparent)",
292
+ "--xy-minimap-node-background-color": "var(--mieweb-muted-foreground)",
293
+ "--xy-attribution-background-color": "transparent"
294
+ };
295
+ function OrgChartCanvas(props) {
296
+ return /* @__PURE__ */ jsxRuntime.jsx(react.ReactFlowProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(CanvasInner, { ...props }) });
297
+ }
298
+ function CanvasInner({
299
+ forest,
300
+ visible,
301
+ nodeContext,
302
+ focusId,
303
+ direction,
304
+ variant,
305
+ showMinimap,
306
+ fitTargets,
307
+ fitRequest,
308
+ labels,
309
+ classNames,
310
+ renderNode,
311
+ renderBadges,
312
+ onToggle,
313
+ onSelect,
314
+ children
315
+ }) {
316
+ const { fitView } = react.useReactFlow();
317
+ const wrapRef = React3__namespace.useRef(null);
318
+ const [rtl, setRtl] = React3__namespace.useState(false);
319
+ const [positions, setPositions] = React3__namespace.useState(null);
320
+ const size = ORG_CHART_NODE_SIZE[variant];
321
+ const horizontal = direction === "RIGHT";
322
+ React3__namespace.useLayoutEffect(() => {
323
+ const el = wrapRef.current;
324
+ if (el) setRtl(getComputedStyle(el).direction === "rtl");
325
+ }, []);
326
+ const edgeList = React3__namespace.useMemo(() => {
327
+ const out = [];
328
+ for (const v of visible) {
329
+ const p = forest.parentOf.get(v.node.id);
330
+ if (p != null) out.push({ source: p, target: v.node.id });
331
+ }
332
+ return out;
333
+ }, [visible, forest]);
334
+ const layoutKey = JSON.stringify([
335
+ direction,
336
+ variant,
337
+ visible.map((v) => v.node.id),
338
+ edgeList.map((e) => [e.source, e.target])
339
+ ]);
340
+ React3__namespace.useEffect(() => {
341
+ let cancelled = false;
342
+ void layoutOrgChart({
343
+ ids: visible.map((v) => v.node.id),
344
+ edges: edgeList,
345
+ direction,
346
+ ...size
347
+ }).then((p) => {
348
+ if (!cancelled) setPositions(p);
349
+ });
350
+ return () => {
351
+ cancelled = true;
352
+ };
353
+ }, [layoutKey]);
354
+ const flowNodes = React3__namespace.useMemo(() => {
355
+ if (!positions) return [];
356
+ const out = [];
357
+ for (const v of visible) {
358
+ const pos = positions.get(v.node.id);
359
+ if (!pos) continue;
360
+ out.push({
361
+ id: v.node.id,
362
+ type: "org",
363
+ position: { x: rtl ? -pos.x - size.width : pos.x, y: pos.y },
364
+ width: size.width,
365
+ height: size.height,
366
+ draggable: false,
367
+ selectable: false,
368
+ connectable: false,
369
+ data: {
370
+ node: v.node,
371
+ ctx: nodeContext(v),
372
+ focused: v.node.id === focusId
373
+ }
374
+ });
375
+ }
376
+ return out;
377
+ }, [positions, visible, nodeContext, focusId, rtl, size.width, size.height]);
378
+ const flowEdges = React3__namespace.useMemo(
379
+ () => positions ? edgeList.filter((e) => positions.has(e.source) && positions.has(e.target)).map((e) => ({
380
+ id: JSON.stringify([e.source, e.target]),
381
+ source: e.source,
382
+ target: e.target,
383
+ type: "smoothstep",
384
+ focusable: false
385
+ })) : [],
386
+ [edgeList, positions]
387
+ );
388
+ const fitKey = JSON.stringify(fitTargets);
389
+ const pendingFit = React3__namespace.useRef(true);
390
+ React3__namespace.useEffect(() => {
391
+ pendingFit.current = true;
392
+ }, [fitKey, fitRequest]);
393
+ React3__namespace.useEffect(() => {
394
+ if (!pendingFit.current || !positions || positions.size === 0) return;
395
+ const targets = fitTargets?.filter((id) => positions.has(id));
396
+ if (fitTargets && fitTargets.length && !targets?.length) return;
397
+ const raf = requestAnimationFrame(() => {
398
+ pendingFit.current = false;
399
+ void fitView({
400
+ nodes: targets?.length ? targets.map((id) => ({ id })) : void 0,
401
+ padding: 0.2,
402
+ maxZoom: 1.1,
403
+ duration: prefersReducedMotion() ? 0 : 300
404
+ });
405
+ });
406
+ return () => cancelAnimationFrame(raf);
407
+ }, [positions, fitKey, fitRequest, fitTargets, fitView]);
408
+ const ctxValue = React3__namespace.useMemo(
409
+ () => ({
410
+ labels,
411
+ classNames,
412
+ horizontal,
413
+ rtl,
414
+ renderNode,
415
+ renderBadges,
416
+ onToggle,
417
+ onSelect
418
+ }),
419
+ [
420
+ labels,
421
+ classNames,
422
+ horizontal,
423
+ rtl,
424
+ renderNode,
425
+ renderBadges,
426
+ onToggle,
427
+ onSelect
428
+ ]
429
+ );
430
+ return /* @__PURE__ */ jsxRuntime.jsx(CanvasContext.Provider, { value: ctxValue, children: /* @__PURE__ */ jsxRuntime.jsxs(
431
+ "div",
432
+ {
433
+ ref: wrapRef,
434
+ role: "region",
435
+ "aria-label": labels.chart,
436
+ "data-slot": "org-chart-canvas",
437
+ className: chunkS5RVSXDV_cjs.cn("relative h-[560px] w-full", classNames?.canvas),
438
+ children: [
439
+ /* @__PURE__ */ jsxRuntime.jsxs(
440
+ react.ReactFlow,
441
+ {
442
+ nodes: flowNodes,
443
+ edges: flowEdges,
444
+ nodeTypes,
445
+ nodesDraggable: false,
446
+ nodesConnectable: false,
447
+ nodesFocusable: false,
448
+ edgesFocusable: false,
449
+ elementsSelectable: false,
450
+ minZoom: 0.1,
451
+ maxZoom: 2,
452
+ style: flowStyle,
453
+ proOptions: { hideAttribution: true },
454
+ ariaLabelConfig: {
455
+ "node.a11yDescription.default": labels.canvasHint,
456
+ "node.a11yDescription.keyboardDisabled": labels.canvasHint,
457
+ "edge.a11yDescription.default": labels.canvasHint,
458
+ "minimap.ariaLabel": labels.minimap
459
+ },
460
+ children: [
461
+ /* @__PURE__ */ jsxRuntime.jsx(react.Background, { variant: react.BackgroundVariant.Dots, gap: 20, size: 1 }),
462
+ /* @__PURE__ */ jsxRuntime.jsx(react.Panel, { position: rtl ? "bottom-right" : "bottom-left", children: /* @__PURE__ */ jsxRuntime.jsx(
463
+ "a",
464
+ {
465
+ href: "https://reactflow.dev",
466
+ target: "_blank",
467
+ rel: "noopener noreferrer",
468
+ className: "text-muted-foreground hover:text-foreground focus-visible:ring-ring rounded-sm text-[10px] focus-visible:ring-2 focus-visible:outline-none",
469
+ children: "React Flow"
470
+ }
471
+ ) }),
472
+ showMinimap && /* @__PURE__ */ jsxRuntime.jsx(
473
+ react.MiniMap,
474
+ {
475
+ pannable: true,
476
+ zoomable: true,
477
+ position: rtl ? "bottom-left" : "bottom-right",
478
+ className: "border-border overflow-hidden rounded-md border"
479
+ }
480
+ )
481
+ ]
482
+ }
483
+ ),
484
+ children
485
+ ]
486
+ }
487
+ ) });
488
+ }
489
+
490
+ // src/components/OrgChart/tree.ts
491
+ var EMPTY = [];
492
+ function buildOrgForest(nodes) {
493
+ const byId = /* @__PURE__ */ new Map();
494
+ for (const n of nodes) if (!byId.has(n.id)) byId.set(n.id, n);
495
+ const declared = /* @__PURE__ */ new Map();
496
+ const roots = [];
497
+ for (const n of byId.values()) {
498
+ const p = n.parentId;
499
+ if (p != null && p !== n.id && byId.has(p)) {
500
+ const list = declared.get(p);
501
+ if (list) list.push(n);
502
+ else declared.set(p, [n]);
503
+ } else {
504
+ roots.push(n);
505
+ }
506
+ }
507
+ const children = /* @__PURE__ */ new Map();
508
+ const parentOf = /* @__PURE__ */ new Map();
509
+ const depth = /* @__PURE__ */ new Map();
510
+ const order = [];
511
+ const walk = (root) => {
512
+ parentOf.set(root.id, null);
513
+ depth.set(root.id, 0);
514
+ const stack = [root];
515
+ while (stack.length) {
516
+ const u = stack.pop();
517
+ order.push(u.id);
518
+ const kids = [];
519
+ for (const c of declared.get(u.id) ?? EMPTY) {
520
+ if (depth.has(c.id)) continue;
521
+ depth.set(c.id, depth.get(u.id) + 1);
522
+ parentOf.set(c.id, u.id);
523
+ kids.push(c);
524
+ }
525
+ if (kids.length) children.set(u.id, kids);
526
+ for (let i = kids.length - 1; i >= 0; i--) stack.push(kids[i]);
527
+ }
528
+ };
529
+ for (const r of roots) walk(r);
530
+ for (const n of byId.values()) {
531
+ if (depth.has(n.id)) continue;
532
+ roots.push(n);
533
+ walk(n);
534
+ }
535
+ const orgSize = /* @__PURE__ */ new Map();
536
+ for (let i = order.length - 1; i >= 0; i--) {
537
+ const id = order[i];
538
+ let size = 0;
539
+ for (const c of children.get(id) ?? EMPTY) size += 1 + orgSize.get(c.id);
540
+ orgSize.set(id, size);
541
+ }
542
+ return { byId, roots, children, parentOf, depth, orgSize };
543
+ }
544
+ function childrenOf(forest, id) {
545
+ return forest.children.get(id) ?? EMPTY;
546
+ }
547
+ function ancestorsOf(forest, id) {
548
+ const out = [];
549
+ let p = forest.parentOf.get(id) ?? null;
550
+ while (p != null) {
551
+ out.push(p);
552
+ p = forest.parentOf.get(p) ?? null;
553
+ }
554
+ return out;
555
+ }
556
+ function initialExpanded(forest, levels) {
557
+ const out = /* @__PURE__ */ new Set();
558
+ for (const [id, d] of forest.depth) {
559
+ if (d < levels - 1 && forest.children.has(id)) out.add(id);
560
+ }
561
+ return out;
562
+ }
563
+ function allExpandable(forest) {
564
+ return new Set(forest.children.keys());
565
+ }
566
+ function visibleNodes(forest, expanded) {
567
+ const out = [];
568
+ const visit = (n, depth) => {
569
+ out.push({ node: n, depth });
570
+ if (!expanded.has(n.id)) return;
571
+ for (const c of childrenOf(forest, n.id)) visit(c, depth + 1);
572
+ };
573
+ for (const r of forest.roots) visit(r, 0);
574
+ return out;
575
+ }
576
+ function matchesQuery(node, query) {
577
+ const q = query.trim().toLocaleLowerCase();
578
+ if (!q) return false;
579
+ return [node.name, node.title, node.subtitle, node.group].some(
580
+ (v) => v?.toLocaleLowerCase().includes(q)
581
+ );
582
+ }
583
+ function distinctGroups(nodes) {
584
+ const set = /* @__PURE__ */ new Set();
585
+ for (const n of nodes) if (n.group) set.add(n.group);
586
+ return [...set].sort((a, b) => a.localeCompare(b));
587
+ }
588
+ function OrgChartTree({
589
+ forest,
590
+ visible,
591
+ nodeContext,
592
+ selectedId,
593
+ labels,
594
+ classNames,
595
+ renderBadges,
596
+ onToggle,
597
+ onSelect
598
+ }) {
599
+ const listRef = React3__namespace.useRef(null);
600
+ const items = React3__namespace.useRef(/* @__PURE__ */ new Map());
601
+ const [activeId, setActiveId] = React3__namespace.useState(selectedId);
602
+ const active = activeId && visible.some((v) => v.node.id === activeId) ? activeId : visible[0]?.node.id ?? null;
603
+ const move = (id) => {
604
+ if (!id) return;
605
+ setActiveId(id);
606
+ items.current.get(id)?.focus();
607
+ };
608
+ const onKeyDown = (e) => {
609
+ const index = visible.findIndex((v) => v.node.id === active);
610
+ if (index < 0) return;
611
+ const current = visible[index];
612
+ const id = current.node.id;
613
+ const hasKids = childrenOf(forest, id).length > 0;
614
+ const expanded = nodeContext(current).expanded;
615
+ const rtl = !!listRef.current && getComputedStyle(listRef.current).direction === "rtl";
616
+ let key = e.key;
617
+ if (rtl && key === "ArrowLeft") key = "ArrowRight";
618
+ else if (rtl && key === "ArrowRight") key = "ArrowLeft";
619
+ switch (key) {
620
+ case "ArrowDown":
621
+ move(visible[index + 1]?.node.id);
622
+ break;
623
+ case "ArrowUp":
624
+ move(visible[index - 1]?.node.id);
625
+ break;
626
+ case "Home":
627
+ move(visible[0]?.node.id);
628
+ break;
629
+ case "End":
630
+ move(visible[visible.length - 1]?.node.id);
631
+ break;
632
+ case "ArrowRight":
633
+ if (hasKids && !expanded) onToggle(id);
634
+ else if (hasKids) move(childrenOf(forest, id)[0]?.id);
635
+ break;
636
+ case "ArrowLeft":
637
+ if (hasKids && expanded) onToggle(id);
638
+ else move(forest.parentOf.get(id) ?? void 0);
639
+ break;
640
+ case "Enter":
641
+ case " ":
642
+ onSelect(id);
643
+ break;
644
+ default:
645
+ return;
646
+ }
647
+ e.preventDefault();
648
+ };
649
+ return /* @__PURE__ */ jsxRuntime.jsx(
650
+ "ul",
651
+ {
652
+ ref: listRef,
653
+ role: "tree",
654
+ "aria-label": labels.tree,
655
+ "data-slot": "org-chart-tree",
656
+ className: chunkS5RVSXDV_cjs.cn("max-h-[560px] overflow-auto p-2", classNames?.tree),
657
+ children: visible.map((v) => {
658
+ const { node } = v;
659
+ const ctx = nodeContext(v);
660
+ const parent = forest.parentOf.get(node.id);
661
+ const siblings = parent != null ? childrenOf(forest, parent) : forest.roots;
662
+ const Chevron = ctx.expanded ? lucideReact.ChevronDown : lucideReact.ChevronRight;
663
+ const secondary = ctx.variant === "person" ? node.title : node.subtitle;
664
+ return /* @__PURE__ */ jsxRuntime.jsxs(
665
+ "li",
666
+ {
667
+ ref: (el) => {
668
+ if (el) items.current.set(node.id, el);
669
+ else items.current.delete(node.id);
670
+ },
671
+ role: "treeitem",
672
+ "aria-level": v.depth + 1,
673
+ "aria-setsize": siblings.length,
674
+ "aria-posinset": siblings.indexOf(node) + 1,
675
+ "aria-expanded": ctx.directReports > 0 ? ctx.expanded : void 0,
676
+ "aria-selected": node.id === selectedId,
677
+ "aria-current": ctx.highlighted || void 0,
678
+ tabIndex: node.id === active ? 0 : -1,
679
+ "data-slot": "org-chart-tree-item",
680
+ "data-matched": ctx.matched || void 0,
681
+ onFocus: () => setActiveId(node.id),
682
+ onKeyDown,
683
+ onClick: (e) => {
684
+ setActiveId(node.id);
685
+ const onChevron = e.target.closest(
686
+ '[data-slot="org-chart-tree-toggle"]'
687
+ );
688
+ if (onChevron && ctx.directReports > 0) onToggle(node.id);
689
+ else onSelect(node.id);
690
+ },
691
+ style: { paddingInlineStart: `${v.depth * 1.25 + 0.25}rem` },
692
+ className: chunkS5RVSXDV_cjs.cn(
693
+ "flex cursor-pointer items-center gap-2 rounded-md py-1.5 pe-2 text-sm",
694
+ "hover:bg-muted focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none",
695
+ node.id === selectedId && "bg-primary-500/10",
696
+ ctx.matched && "ring-ring ring-1",
697
+ ctx.dimmed && "opacity-50",
698
+ classNames?.treeItem
699
+ ),
700
+ children: [
701
+ /* @__PURE__ */ jsxRuntime.jsx(
702
+ "span",
703
+ {
704
+ "aria-hidden": "true",
705
+ "data-slot": "org-chart-tree-toggle",
706
+ className: "text-muted-foreground flex size-5 shrink-0 items-center justify-center",
707
+ children: ctx.directReports > 0 && /* @__PURE__ */ jsxRuntime.jsx(Chevron, { className: "size-4 rtl:-scale-x-100" })
708
+ }
709
+ ),
710
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2", children: [
711
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground font-medium", children: node.name }),
712
+ secondary && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs", children: secondary })
713
+ ] }),
714
+ ctx.highlighted && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-primary-600 rounded-full px-1.5 text-[10px] font-bold text-white uppercase", children: labels.highlighted }),
715
+ renderBadges?.(node),
716
+ node.group && /* @__PURE__ */ jsxRuntime.jsx(GroupPill, { group: node.group, accent: ctx.accent }),
717
+ ctx.directReports > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs tabular-nums", children: ctx.directReports })
718
+ ]
719
+ },
720
+ node.id
721
+ );
722
+ })
723
+ }
724
+ );
725
+ }
726
+ var isNarrow = () => typeof window !== "undefined" && !!window.matchMedia?.("(max-width: 639px)").matches;
727
+ var union = (a, ids) => {
728
+ let out = null;
729
+ for (const id of ids) {
730
+ if (a.has(id)) continue;
731
+ out ??= new Set(a);
732
+ out.add(id);
733
+ }
734
+ return out ?? a;
735
+ };
736
+ var ancestorsOfAll = (forest, ids) => {
737
+ const out = [];
738
+ for (const id of ids) out.push(...ancestorsOf(forest, id));
739
+ return out;
740
+ };
741
+ var OrgChart = React3__namespace.forwardRef(
742
+ function OrgChart2({
743
+ nodes,
744
+ loading = false,
745
+ error = null,
746
+ onRetry,
747
+ nodeVariant = "person",
748
+ direction = "DOWN",
749
+ initialDepth = 2,
750
+ focusId = null,
751
+ highlightedId = null,
752
+ defaultQuery = "",
753
+ defaultGroup = "",
754
+ view: viewProp,
755
+ defaultView,
756
+ onViewChange,
757
+ defaultShowMinimap = false,
758
+ getGroupAccent,
759
+ onSelect,
760
+ onOpen,
761
+ getHref,
762
+ renderNode,
763
+ renderBadges,
764
+ renderDetail,
765
+ emptyState,
766
+ labels: labelsProp,
767
+ classNames,
768
+ className,
769
+ ...rest
770
+ }, ref) {
771
+ const labels = React3__namespace.useMemo(
772
+ () => ({ ...defaultOrgChartLabels, ...labelsProp }),
773
+ [labelsProp]
774
+ );
775
+ const rootRef = React3__namespace.useRef(null);
776
+ React3__namespace.useImperativeHandle(ref, () => rootRef.current);
777
+ const searchId = React3__namespace.useId();
778
+ const forest = React3__namespace.useMemo(() => buildOrgForest(nodes), [nodes]);
779
+ const groups = React3__namespace.useMemo(() => distinctGroups(nodes), [nodes]);
780
+ const accentOf = React3__namespace.useMemo(() => {
781
+ const map = /* @__PURE__ */ new Map();
782
+ groups.forEach(
783
+ (g, i) => map.set(
784
+ g,
785
+ getGroupAccent?.(g, i) ?? ORG_CHART_GROUP_ACCENTS[i % ORG_CHART_GROUP_ACCENTS.length]
786
+ )
787
+ );
788
+ return map;
789
+ }, [groups, getGroupAccent]);
790
+ const [expanded, setExpanded] = React3__namespace.useState(
791
+ () => union(
792
+ initialExpanded(forest, initialDepth),
793
+ ancestorsOfAll(
794
+ forest,
795
+ [focusId, highlightedId].filter((id) => !!id)
796
+ )
797
+ )
798
+ );
799
+ const seeded = React3__namespace.useRef(forest.byId.size > 0);
800
+ const [query, setQuery] = React3__namespace.useState(defaultQuery);
801
+ const [groupState, setGroup] = React3__namespace.useState(defaultGroup);
802
+ const group = groupState && groups.includes(groupState) ? groupState : "";
803
+ const [selectedId, setSelectedId] = React3__namespace.useState(null);
804
+ const [viewState, setViewState] = React3__namespace.useState(
805
+ defaultView ?? "chart"
806
+ );
807
+ const appliedNarrowDefault = React3__namespace.useRef(false);
808
+ React3__namespace.useEffect(() => {
809
+ if (appliedNarrowDefault.current) return;
810
+ appliedNarrowDefault.current = true;
811
+ if (defaultView === void 0 && isNarrow()) setViewState("list");
812
+ }, [defaultView]);
813
+ const view = viewProp ?? viewState;
814
+ const [showMinimap, setShowMinimap] = React3__namespace.useState(defaultShowMinimap);
815
+ const [nativeFull, setNativeFull] = React3__namespace.useState(false);
816
+ const [pseudoFull, setPseudoFull] = React3__namespace.useState(false);
817
+ const fullscreen = nativeFull || pseudoFull;
818
+ const [fitRequest, setFitRequest] = React3__namespace.useState(0);
819
+ const returnFocus = React3__namespace.useRef(null);
820
+ React3__namespace.useEffect(() => {
821
+ if (seeded.current || forest.byId.size === 0) return;
822
+ seeded.current = true;
823
+ setExpanded((prev) => union(prev, initialExpanded(forest, initialDepth)));
824
+ }, [forest, initialDepth]);
825
+ React3__namespace.useEffect(() => {
826
+ const ids = [focusId, highlightedId].filter(
827
+ (id) => !!id && forest.byId.has(id)
828
+ );
829
+ if (ids.length)
830
+ setExpanded((prev) => union(prev, ancestorsOfAll(forest, ids)));
831
+ }, [forest, focusId, highlightedId]);
832
+ const matches = React3__namespace.useMemo(() => {
833
+ if (!query.trim()) return null;
834
+ const out = [];
835
+ for (const n of forest.byId.values())
836
+ if (matchesQuery(n, query)) out.push(n.id);
837
+ return out;
838
+ }, [forest, query]);
839
+ const groupMembers = React3__namespace.useMemo(() => {
840
+ if (!group) return null;
841
+ const out = [];
842
+ for (const n of forest.byId.values())
843
+ if (n.group === group) out.push(n.id);
844
+ return out;
845
+ }, [forest, group]);
846
+ const revealKey = JSON.stringify([matches, groupMembers]);
847
+ React3__namespace.useEffect(() => {
848
+ const ids = [...matches ?? [], ...groupMembers ?? []];
849
+ if (ids.length)
850
+ setExpanded((prev) => union(prev, ancestorsOfAll(forest, ids)));
851
+ }, [revealKey, forest]);
852
+ React3__namespace.useEffect(() => {
853
+ const onChange = () => setNativeFull(
854
+ !!rootRef.current && document.fullscreenElement === rootRef.current
855
+ );
856
+ document.addEventListener("fullscreenchange", onChange);
857
+ return () => document.removeEventListener("fullscreenchange", onChange);
858
+ }, []);
859
+ React3__namespace.useEffect(() => {
860
+ if (!pseudoFull) return;
861
+ const onKey = (e) => {
862
+ if (e.key === "Escape") setPseudoFull(false);
863
+ };
864
+ document.addEventListener("keydown", onKey);
865
+ return () => document.removeEventListener("keydown", onKey);
866
+ }, [pseudoFull]);
867
+ const visible = React3__namespace.useMemo(
868
+ () => visibleNodes(forest, expanded),
869
+ [forest, expanded]
870
+ );
871
+ const matchSet = React3__namespace.useMemo(() => new Set(matches ?? []), [matches]);
872
+ const groupSet = React3__namespace.useMemo(
873
+ () => groupMembers ? new Set(groupMembers) : null,
874
+ [groupMembers]
875
+ );
876
+ const nodeContext = React3__namespace.useCallback(
877
+ (v) => ({
878
+ variant: nodeVariant,
879
+ depth: v.depth,
880
+ directReports: childrenOf(forest, v.node.id).length,
881
+ expanded: expanded.has(v.node.id),
882
+ highlighted: v.node.id === highlightedId,
883
+ matched: matchSet.has(v.node.id),
884
+ dimmed: !!groupSet && !groupSet.has(v.node.id),
885
+ accent: v.node.group ? accentOf.get(v.node.group) : void 0
886
+ }),
887
+ [
888
+ nodeVariant,
889
+ forest,
890
+ expanded,
891
+ highlightedId,
892
+ matchSet,
893
+ groupSet,
894
+ accentOf
895
+ ]
896
+ );
897
+ const fitTargets = React3__namespace.useMemo(() => {
898
+ if (matches?.length) return matches;
899
+ if (groupMembers?.length) return groupMembers;
900
+ if (focusId && forest.byId.has(focusId)) return [focusId];
901
+ return null;
902
+ }, [matches, groupMembers, focusId, forest]);
903
+ const toggle = React3__namespace.useCallback((id) => {
904
+ setExpanded((prev) => {
905
+ const next = new Set(prev);
906
+ if (next.has(id)) next.delete(id);
907
+ else next.add(id);
908
+ return next;
909
+ });
910
+ }, []);
911
+ const select = React3__namespace.useCallback(
912
+ (id) => {
913
+ if (id && typeof document !== "undefined")
914
+ returnFocus.current = document.activeElement;
915
+ setSelectedId(id);
916
+ onSelect?.(id, id ? forest.byId.get(id) ?? null : null);
917
+ },
918
+ [forest, onSelect]
919
+ );
920
+ const closeDetail = React3__namespace.useCallback(() => {
921
+ select(null);
922
+ const el = returnFocus.current;
923
+ if (el?.isConnected) el.focus();
924
+ }, [select]);
925
+ const setView = (v) => {
926
+ setViewState(v);
927
+ onViewChange?.(v);
928
+ };
929
+ const toggleFullscreen = async () => {
930
+ const el = rootRef.current;
931
+ if (!el) return;
932
+ if (fullscreen) {
933
+ setPseudoFull(false);
934
+ if (document.fullscreenElement) await document.exitFullscreen?.();
935
+ return;
936
+ }
937
+ try {
938
+ if (!el.requestFullscreen) throw new Error("unsupported");
939
+ await el.requestFullscreen();
940
+ } catch {
941
+ setPseudoFull(true);
942
+ }
943
+ };
944
+ const stateBox = (content) => /* @__PURE__ */ jsxRuntime.jsx(
945
+ "div",
946
+ {
947
+ "data-slot": "org-chart-state",
948
+ className: chunkS5RVSXDV_cjs.cn(
949
+ "text-muted-foreground flex min-h-48 flex-col items-center justify-center gap-3 p-6 text-center text-sm",
950
+ classNames?.state
951
+ ),
952
+ children: content
953
+ }
954
+ );
955
+ let body;
956
+ if (error) {
957
+ body = stateBox(
958
+ /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
959
+ /* @__PURE__ */ jsxRuntime.jsx(
960
+ "p",
961
+ {
962
+ role: "alert",
963
+ className: "text-destructive-700 dark:text-destructive-400",
964
+ children: labels.error
965
+ }
966
+ ),
967
+ onRetry && /* @__PURE__ */ jsxRuntime.jsx(chunkANMX7YDL_cjs.Button, { variant: "outline", size: "sm", onClick: onRetry, children: labels.retry })
968
+ ] })
969
+ );
970
+ } else if (loading) {
971
+ body = stateBox(
972
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "status", className: "flex items-center gap-2", children: [
973
+ /* @__PURE__ */ jsxRuntime.jsx(chunkXXVUHLQN_cjs.Spinner, { size: "sm" }),
974
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: labels.loading })
975
+ ] })
976
+ );
977
+ } else if (forest.byId.size === 0) {
978
+ body = stateBox(emptyState ?? /* @__PURE__ */ jsxRuntime.jsx("p", { children: labels.empty }));
979
+ }
980
+ const selected = selectedId ? forest.byId.get(selectedId) ?? null : null;
981
+ const detail = selected && /* @__PURE__ */ jsxRuntime.jsx(
982
+ DetailPanel,
983
+ {
984
+ node: selected,
985
+ forest,
986
+ variant: nodeVariant,
987
+ accent: selected.group ? accentOf.get(selected.group) : void 0,
988
+ labels,
989
+ className: classNames?.detail,
990
+ onClose: closeDetail,
991
+ onOpen,
992
+ getHref,
993
+ renderDetail,
994
+ renderBadges
995
+ },
996
+ selected.id
997
+ );
998
+ const iconButton = (label, icon, onClick, pressed) => /* @__PURE__ */ jsxRuntime.jsx(
999
+ chunkANMX7YDL_cjs.Button,
1000
+ {
1001
+ type: "button",
1002
+ variant: "ghost",
1003
+ size: "icon",
1004
+ "aria-label": label,
1005
+ title: label,
1006
+ "aria-pressed": pressed,
1007
+ onClick,
1008
+ className: chunkS5RVSXDV_cjs.cn(pressed && "bg-primary-500/10"),
1009
+ children: icon
1010
+ }
1011
+ );
1012
+ return /* @__PURE__ */ jsxRuntime.jsx(
1013
+ "div",
1014
+ {
1015
+ ref: rootRef,
1016
+ "data-slot": "org-chart",
1017
+ "data-view": view,
1018
+ className: chunkS5RVSXDV_cjs.cn(
1019
+ "bg-card text-foreground border-border relative flex flex-col overflow-hidden rounded-lg border",
1020
+ fullscreen && "bg-background",
1021
+ pseudoFull && "fixed inset-0 z-50 rounded-none",
1022
+ className,
1023
+ classNames?.root
1024
+ ),
1025
+ ...rest,
1026
+ children: body ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1027
+ /* @__PURE__ */ jsxRuntime.jsxs(
1028
+ "div",
1029
+ {
1030
+ role: "toolbar",
1031
+ "aria-label": labels.toolbar,
1032
+ "data-slot": "org-chart-toolbar",
1033
+ className: chunkS5RVSXDV_cjs.cn(
1034
+ "border-border flex flex-wrap items-center gap-2 border-b p-2",
1035
+ classNames?.toolbar
1036
+ ),
1037
+ children: [
1038
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative min-w-40 flex-1", children: [
1039
+ /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: searchId, className: "sr-only", children: labels.search }),
1040
+ /* @__PURE__ */ jsxRuntime.jsx(
1041
+ lucideReact.Search,
1042
+ {
1043
+ "aria-hidden": "true",
1044
+ className: "text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-4 -translate-y-1/2"
1045
+ }
1046
+ ),
1047
+ /* @__PURE__ */ jsxRuntime.jsx(
1048
+ "input",
1049
+ {
1050
+ id: searchId,
1051
+ type: "search",
1052
+ value: query,
1053
+ placeholder: labels.searchPlaceholder,
1054
+ onChange: (e) => setQuery(e.target.value),
1055
+ className: "border-border bg-background text-foreground placeholder:text-muted-foreground focus-visible:ring-ring h-9 w-full rounded-md border ps-8 pe-2 text-sm focus-visible:ring-2 focus-visible:outline-none"
1056
+ }
1057
+ )
1058
+ ] }),
1059
+ /* @__PURE__ */ jsxRuntime.jsx(
1060
+ "p",
1061
+ {
1062
+ role: "status",
1063
+ "aria-live": "polite",
1064
+ className: "text-muted-foreground min-w-0 text-xs empty:hidden",
1065
+ children: matches ? labels.results(matches.length) : ""
1066
+ }
1067
+ ),
1068
+ groups.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
1069
+ "select",
1070
+ {
1071
+ "aria-label": labels.groupFilter,
1072
+ value: group,
1073
+ onChange: (e) => setGroup(e.target.value),
1074
+ className: "border-border bg-background text-foreground focus-visible:ring-ring h-9 max-w-48 rounded-md border px-2 text-sm focus-visible:ring-2 focus-visible:outline-none",
1075
+ children: [
1076
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: labels.allGroups }),
1077
+ groups.map((g) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: g, children: g }, g))
1078
+ ]
1079
+ }
1080
+ ),
1081
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ms-auto flex flex-wrap items-center gap-1", children: [
1082
+ iconButton(
1083
+ labels.expandAll,
1084
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UnfoldVertical, { "aria-hidden": "true", className: "size-4" }),
1085
+ () => setExpanded(allExpandable(forest))
1086
+ ),
1087
+ iconButton(
1088
+ labels.collapseAll,
1089
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FoldVertical, { "aria-hidden": "true", className: "size-4" }),
1090
+ () => setExpanded(/* @__PURE__ */ new Set())
1091
+ ),
1092
+ view === "chart" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1093
+ iconButton(
1094
+ labels.fitView,
1095
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Scan, { "aria-hidden": "true", className: "size-4" }),
1096
+ () => setFitRequest((n) => n + 1)
1097
+ ),
1098
+ iconButton(
1099
+ labels.minimap,
1100
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Map, { "aria-hidden": "true", className: "size-4" }),
1101
+ () => setShowMinimap((v) => !v),
1102
+ showMinimap
1103
+ )
1104
+ ] }),
1105
+ iconButton(
1106
+ labels.fullscreen,
1107
+ fullscreen ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minimize, { "aria-hidden": "true", className: "size-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Maximize, { "aria-hidden": "true", className: "size-4" }),
1108
+ () => void toggleFullscreen(),
1109
+ fullscreen
1110
+ ),
1111
+ /* @__PURE__ */ jsxRuntime.jsx(
1112
+ "div",
1113
+ {
1114
+ role: "group",
1115
+ "aria-label": labels.viewToggle,
1116
+ className: "border-border ms-1 flex rounded-md border p-0.5",
1117
+ children: [
1118
+ ["chart", labels.chartView, lucideReact.Network],
1119
+ ["list", labels.listView, lucideReact.List]
1120
+ ].map(([v, label, Icon]) => /* @__PURE__ */ jsxRuntime.jsxs(
1121
+ "button",
1122
+ {
1123
+ type: "button",
1124
+ "aria-pressed": view === v,
1125
+ onClick: () => setView(v),
1126
+ className: chunkS5RVSXDV_cjs.cn(
1127
+ "focus-visible:ring-ring flex h-7 items-center gap-1 rounded px-2 text-xs font-medium focus-visible:ring-2 focus-visible:outline-none",
1128
+ view === v ? "bg-primary-500/10 text-foreground" : "text-muted-foreground hover:bg-muted"
1129
+ ),
1130
+ children: [
1131
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { "aria-hidden": "true", className: "size-3.5" }),
1132
+ label
1133
+ ]
1134
+ },
1135
+ v
1136
+ ))
1137
+ }
1138
+ )
1139
+ ] })
1140
+ ]
1141
+ }
1142
+ ),
1143
+ view === "chart" ? /* @__PURE__ */ jsxRuntime.jsx(
1144
+ OrgChartCanvas,
1145
+ {
1146
+ forest,
1147
+ visible,
1148
+ nodeContext,
1149
+ focusId,
1150
+ direction,
1151
+ variant: nodeVariant,
1152
+ showMinimap,
1153
+ fitTargets,
1154
+ fitRequest,
1155
+ labels,
1156
+ classNames: fullscreen ? {
1157
+ ...classNames,
1158
+ canvas: chunkS5RVSXDV_cjs.cn(classNames?.canvas, "h-auto flex-1")
1159
+ } : classNames,
1160
+ renderNode,
1161
+ renderBadges,
1162
+ onToggle: toggle,
1163
+ onSelect: select,
1164
+ children: detail
1165
+ }
1166
+ ) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkS5RVSXDV_cjs.cn("relative", fullscreen && "flex-1"), children: [
1167
+ /* @__PURE__ */ jsxRuntime.jsx(
1168
+ OrgChartTree,
1169
+ {
1170
+ forest,
1171
+ visible,
1172
+ nodeContext,
1173
+ selectedId,
1174
+ labels,
1175
+ classNames,
1176
+ renderBadges,
1177
+ onToggle: toggle,
1178
+ onSelect: select
1179
+ }
1180
+ ),
1181
+ detail
1182
+ ] })
1183
+ ] })
1184
+ }
1185
+ );
1186
+ }
1187
+ );
1188
+ function DetailPanel({
1189
+ node,
1190
+ forest,
1191
+ variant,
1192
+ accent,
1193
+ labels,
1194
+ className,
1195
+ onClose,
1196
+ onOpen,
1197
+ getHref,
1198
+ renderDetail,
1199
+ renderBadges
1200
+ }) {
1201
+ const ref = React3__namespace.useRef(null);
1202
+ const closeRef = React3__namespace.useRef(onClose);
1203
+ React3__namespace.useEffect(() => {
1204
+ closeRef.current = onClose;
1205
+ });
1206
+ React3__namespace.useEffect(() => {
1207
+ const el = ref.current;
1208
+ if (!el) return;
1209
+ el.focus();
1210
+ const onKey = (e) => {
1211
+ if (e.key !== "Escape") return;
1212
+ e.stopPropagation();
1213
+ closeRef.current();
1214
+ };
1215
+ el.addEventListener("keydown", onKey);
1216
+ return () => el.removeEventListener("keydown", onKey);
1217
+ }, []);
1218
+ const directReports = childrenOf(forest, node.id).length;
1219
+ const orgSize = forest.orgSize.get(node.id) ?? 0;
1220
+ const parentId = forest.parentOf.get(node.id);
1221
+ const parent = parentId ? forest.byId.get(parentId) ?? null : null;
1222
+ const secondary = variant === "person" ? node.title : node.subtitle;
1223
+ const href = getHref?.(node.id, node);
1224
+ const actionClass = "bg-primary-600 hover:bg-primary-700 focus-visible:ring-ring inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-sm font-medium text-white focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none";
1225
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1226
+ "div",
1227
+ {
1228
+ ref,
1229
+ role: "dialog",
1230
+ "aria-modal": "false",
1231
+ "aria-label": node.name,
1232
+ tabIndex: -1,
1233
+ "data-slot": "org-chart-detail",
1234
+ className: chunkS5RVSXDV_cjs.cn(
1235
+ "bg-card text-foreground border-border absolute end-3 top-3 z-10 w-72 max-w-[calc(100%-1.5rem)] rounded-lg border p-4 shadow-lg focus:outline-none",
1236
+ className
1237
+ ),
1238
+ children: [
1239
+ /* @__PURE__ */ jsxRuntime.jsx(
1240
+ "button",
1241
+ {
1242
+ type: "button",
1243
+ "aria-label": labels.close,
1244
+ onClick: onClose,
1245
+ className: "text-muted-foreground hover:bg-muted focus-visible:ring-ring absolute end-2 top-2 rounded p-1 focus-visible:ring-2 focus-visible:outline-none",
1246
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { "aria-hidden": "true", className: "size-4" })
1247
+ }
1248
+ ),
1249
+ renderDetail ? renderDetail(node, { directReports, orgSize, parent, close: onClose }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-3 pe-6", children: [
1250
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
1251
+ variant === "person" && /* @__PURE__ */ jsxRuntime.jsx(chunkGKDHMNUA_cjs.Avatar, { src: node.avatarUrl, name: node.name, alt: "", size: "lg" }),
1252
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
1253
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground font-semibold", children: node.name }),
1254
+ secondary && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm", children: secondary })
1255
+ ] })
1256
+ ] }),
1257
+ (node.group || renderBadges) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-1.5", children: [
1258
+ node.group && /* @__PURE__ */ jsxRuntime.jsx(GroupPill, { group: node.group, accent }),
1259
+ renderBadges?.(node)
1260
+ ] }),
1261
+ /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "text-muted-foreground flex flex-col gap-1 text-sm", children: [
1262
+ parent && /* @__PURE__ */ jsxRuntime.jsx("li", { children: labels.reportsTo(parent.name) }),
1263
+ /* @__PURE__ */ jsxRuntime.jsx("li", { children: labels.directReports(directReports) }),
1264
+ orgSize > directReports && /* @__PURE__ */ jsxRuntime.jsx("li", { children: labels.orgSize(orgSize) })
1265
+ ] }),
1266
+ href ? /* @__PURE__ */ jsxRuntime.jsxs(
1267
+ "a",
1268
+ {
1269
+ href,
1270
+ className: chunkS5RVSXDV_cjs.cn(actionClass, "self-start"),
1271
+ onClick: (e) => {
1272
+ if (!onOpen || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey)
1273
+ return;
1274
+ e.preventDefault();
1275
+ onOpen(node.id, node);
1276
+ },
1277
+ children: [
1278
+ labels.open,
1279
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ExternalLink, { "aria-hidden": "true", className: "size-3.5" })
1280
+ ]
1281
+ }
1282
+ ) : onOpen && /* @__PURE__ */ jsxRuntime.jsx(
1283
+ "button",
1284
+ {
1285
+ type: "button",
1286
+ className: chunkS5RVSXDV_cjs.cn(actionClass, "self-start"),
1287
+ onClick: () => onOpen(node.id, node),
1288
+ children: labels.open
1289
+ }
1290
+ )
1291
+ ] })
1292
+ ]
1293
+ }
1294
+ );
1295
+ }
1296
+
1297
+ exports.ORG_CHART_GROUP_ACCENTS = ORG_CHART_GROUP_ACCENTS;
1298
+ exports.ORG_CHART_LAYOUT_OPTIONS = ORG_CHART_LAYOUT_OPTIONS;
1299
+ exports.OrgChart = OrgChart;
1300
+ exports.defaultOrgChartLabels = defaultOrgChartLabels;
1301
+ //# sourceMappingURL=org-chart.cjs.map
1302
+ //# sourceMappingURL=org-chart.cjs.map