@elliemae/pui-app-sdk 6.0.0-alpha.2 → 6.0.0-alpha.4

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 (805) hide show
  1. package/README.md +8 -4
  2. package/demo/1088.29acec16.iframe.bundle.js +30 -0
  3. package/demo/1088.29acec16.iframe.bundle.js.br +0 -0
  4. package/demo/1088.29acec16.iframe.bundle.js.gz +0 -0
  5. package/demo/1199.9df9a3af.iframe.bundle.js +30 -0
  6. package/demo/1199.9df9a3af.iframe.bundle.js.br +0 -0
  7. package/demo/1199.9df9a3af.iframe.bundle.js.gz +0 -0
  8. package/demo/1372.e2754361.iframe.bundle.js +30 -0
  9. package/demo/1372.e2754361.iframe.bundle.js.br +0 -0
  10. package/demo/1372.e2754361.iframe.bundle.js.gz +0 -0
  11. package/demo/182.25795e09.iframe.bundle.js +3 -0
  12. package/demo/182.25795e09.iframe.bundle.js.br +0 -0
  13. package/demo/182.25795e09.iframe.bundle.js.gz +0 -0
  14. package/demo/197.4305f232.iframe.bundle.js +323 -0
  15. package/demo/197.4305f232.iframe.bundle.js.br +0 -0
  16. package/demo/197.4305f232.iframe.bundle.js.gz +0 -0
  17. package/demo/2139.d6ce163c.iframe.bundle.js +889 -0
  18. package/demo/2139.d6ce163c.iframe.bundle.js.br +0 -0
  19. package/demo/2139.d6ce163c.iframe.bundle.js.gz +0 -0
  20. package/demo/2167.7e435a04.iframe.bundle.js +3 -0
  21. package/demo/2167.7e435a04.iframe.bundle.js.br +0 -0
  22. package/demo/2167.7e435a04.iframe.bundle.js.gz +0 -0
  23. package/demo/226.28364fb9c1cd62630203.manager.bundle.js +296 -0
  24. package/demo/226.28364fb9c1cd62630203.manager.bundle.js.br +0 -0
  25. package/demo/226.28364fb9c1cd62630203.manager.bundle.js.gz +0 -0
  26. package/demo/2706.3ac48b3e.iframe.bundle.js +184 -0
  27. package/demo/2706.3ac48b3e.iframe.bundle.js.br +0 -0
  28. package/demo/2706.3ac48b3e.iframe.bundle.js.gz +0 -0
  29. package/demo/283.ee7481e9dbe9dd5be45a.manager.bundle.js +10 -0
  30. package/demo/283.ee7481e9dbe9dd5be45a.manager.bundle.js.br +0 -0
  31. package/demo/283.ee7481e9dbe9dd5be45a.manager.bundle.js.gz +0 -0
  32. package/demo/2833.3f16f167.iframe.bundle.js +142 -0
  33. package/demo/2833.3f16f167.iframe.bundle.js.br +0 -0
  34. package/demo/2833.3f16f167.iframe.bundle.js.gz +0 -0
  35. package/demo/3330.2b981d37.iframe.bundle.js +128 -0
  36. package/demo/3330.2b981d37.iframe.bundle.js.br +0 -0
  37. package/demo/3330.2b981d37.iframe.bundle.js.gz +0 -0
  38. package/demo/3421.cb9d4b03.iframe.bundle.js +230 -0
  39. package/demo/3421.cb9d4b03.iframe.bundle.js.br +0 -0
  40. package/demo/3421.cb9d4b03.iframe.bundle.js.gz +0 -0
  41. package/demo/4018.bf34442a.iframe.bundle.js +19128 -0
  42. package/demo/4018.bf34442a.iframe.bundle.js.br +0 -0
  43. package/demo/4018.bf34442a.iframe.bundle.js.gz +0 -0
  44. package/demo/418.59707edaa88bb92bc4b1.manager.bundle.js +1 -0
  45. package/demo/418.59707edaa88bb92bc4b1.manager.bundle.js.br +0 -0
  46. package/demo/418.59707edaa88bb92bc4b1.manager.bundle.js.gz +0 -0
  47. package/demo/4333.7e82f3b9.iframe.bundle.js +22 -0
  48. package/demo/4333.7e82f3b9.iframe.bundle.js.br +0 -0
  49. package/demo/4333.7e82f3b9.iframe.bundle.js.gz +0 -0
  50. package/demo/453.0d9c1619.iframe.bundle.js +173 -0
  51. package/demo/453.0d9c1619.iframe.bundle.js.br +0 -0
  52. package/demo/453.0d9c1619.iframe.bundle.js.gz +0 -0
  53. package/demo/4545.f7205e3b.iframe.bundle.js +114 -0
  54. package/demo/4545.f7205e3b.iframe.bundle.js.br +0 -0
  55. package/demo/4545.f7205e3b.iframe.bundle.js.gz +0 -0
  56. package/demo/4705.e8cb3817.iframe.bundle.js +706 -0
  57. package/demo/4705.e8cb3817.iframe.bundle.js.br +0 -0
  58. package/demo/4705.e8cb3817.iframe.bundle.js.gz +0 -0
  59. package/demo/4776.7d09bd49.iframe.bundle.js +882 -0
  60. package/demo/4776.7d09bd49.iframe.bundle.js.br +0 -0
  61. package/demo/4776.7d09bd49.iframe.bundle.js.gz +0 -0
  62. package/demo/4cbbcfa9ded96b660559.html +26 -0
  63. package/demo/63.8a4920901abfb66b6c5f.manager.bundle.js +1 -0
  64. package/demo/63.8a4920901abfb66b6c5f.manager.bundle.js.br +0 -0
  65. package/demo/63.8a4920901abfb66b6c5f.manager.bundle.js.gz +0 -0
  66. package/demo/6503.ab6fa585.iframe.bundle.js +1 -0
  67. package/demo/6503.ab6fa585.iframe.bundle.js.br +0 -0
  68. package/demo/6503.ab6fa585.iframe.bundle.js.gz +0 -0
  69. package/demo/7086.5c700657.iframe.bundle.js +312 -0
  70. package/demo/7086.5c700657.iframe.bundle.js.br +0 -0
  71. package/demo/7086.5c700657.iframe.bundle.js.gz +0 -0
  72. package/demo/721.06bba888.iframe.bundle.js +796 -0
  73. package/demo/721.06bba888.iframe.bundle.js.br +0 -0
  74. package/demo/721.06bba888.iframe.bundle.js.gz +0 -0
  75. package/demo/786.6c70980fba796c81e61a.manager.bundle.js +1168 -0
  76. package/demo/786.6c70980fba796c81e61a.manager.bundle.js.br +0 -0
  77. package/demo/786.6c70980fba796c81e61a.manager.bundle.js.gz +0 -0
  78. package/demo/805.5b6c22fe354791d0c1e8.manager.bundle.js +17 -0
  79. package/demo/805.5b6c22fe354791d0c1e8.manager.bundle.js.br +0 -0
  80. package/demo/805.5b6c22fe354791d0c1e8.manager.bundle.js.gz +0 -0
  81. package/demo/8070.093eadd6.iframe.bundle.js +1 -0
  82. package/demo/8070.093eadd6.iframe.bundle.js.br +0 -0
  83. package/demo/8070.093eadd6.iframe.bundle.js.gz +0 -0
  84. package/demo/8165.7add50e2.iframe.bundle.js +1 -0
  85. package/demo/8165.7add50e2.iframe.bundle.js.br +0 -0
  86. package/demo/8165.7add50e2.iframe.bundle.js.gz +0 -0
  87. package/demo/840.beb66c5e.iframe.bundle.js +174 -0
  88. package/demo/840.beb66c5e.iframe.bundle.js.br +0 -0
  89. package/demo/840.beb66c5e.iframe.bundle.js.gz +0 -0
  90. package/demo/8553.243669a4.iframe.bundle.js +26 -0
  91. package/demo/8553.243669a4.iframe.bundle.js.br +0 -0
  92. package/demo/8553.243669a4.iframe.bundle.js.gz +0 -0
  93. package/demo/9046.8a9f60b2.iframe.bundle.js +109 -0
  94. package/demo/9046.8a9f60b2.iframe.bundle.js.br +0 -0
  95. package/demo/9046.8a9f60b2.iframe.bundle.js.gz +0 -0
  96. package/demo/929.9310f611b7d9886ddb18.manager.bundle.js +2 -0
  97. package/demo/929.9310f611b7d9886ddb18.manager.bundle.js.br +0 -0
  98. package/demo/929.9310f611b7d9886ddb18.manager.bundle.js.gz +0 -0
  99. package/demo/9332.04709039.iframe.bundle.js +717 -0
  100. package/demo/9332.04709039.iframe.bundle.js.br +0 -0
  101. package/demo/9332.04709039.iframe.bundle.js.gz +0 -0
  102. package/demo/9431.f74d6cf1.iframe.bundle.js +152 -0
  103. package/demo/9431.f74d6cf1.iframe.bundle.js.br +0 -0
  104. package/demo/9431.f74d6cf1.iframe.bundle.js.gz +0 -0
  105. package/demo/9488.af21db24.iframe.bundle.js +214 -0
  106. package/demo/9488.af21db24.iframe.bundle.js.br +0 -0
  107. package/demo/9488.af21db24.iframe.bundle.js.gz +0 -0
  108. package/demo/9576.77449673.iframe.bundle.js +1 -0
  109. package/demo/9576.77449673.iframe.bundle.js.br +0 -0
  110. package/demo/9576.77449673.iframe.bundle.js.gz +0 -0
  111. package/demo/993.4602c8bbb99f9be8eaa2.manager.bundle.js +15 -0
  112. package/demo/993.4602c8bbb99f9be8eaa2.manager.bundle.js.br +0 -0
  113. package/demo/993.4602c8bbb99f9be8eaa2.manager.bundle.js.gz +0 -0
  114. package/demo/9965.7e432ba2.iframe.bundle.js +2 -0
  115. package/demo/9965.7e432ba2.iframe.bundle.js.br +0 -0
  116. package/demo/9965.7e432ba2.iframe.bundle.js.gz +0 -0
  117. package/demo/app.config.json +127 -0
  118. package/demo/docs/1088.29acec16.iframe.bundle.js +30 -0
  119. package/demo/docs/1088.29acec16.iframe.bundle.js.br +0 -0
  120. package/demo/docs/1088.29acec16.iframe.bundle.js.gz +0 -0
  121. package/demo/docs/1199.9df9a3af.iframe.bundle.js +30 -0
  122. package/demo/docs/1199.9df9a3af.iframe.bundle.js.br +0 -0
  123. package/demo/docs/1199.9df9a3af.iframe.bundle.js.gz +0 -0
  124. package/demo/docs/1372.e2754361.iframe.bundle.js +30 -0
  125. package/demo/docs/1372.e2754361.iframe.bundle.js.br +0 -0
  126. package/demo/docs/1372.e2754361.iframe.bundle.js.gz +0 -0
  127. package/demo/docs/182.25795e09.iframe.bundle.js +3 -0
  128. package/demo/docs/182.25795e09.iframe.bundle.js.br +0 -0
  129. package/demo/docs/182.25795e09.iframe.bundle.js.gz +0 -0
  130. package/demo/docs/197.4305f232.iframe.bundle.js +323 -0
  131. package/demo/docs/197.4305f232.iframe.bundle.js.br +0 -0
  132. package/demo/docs/197.4305f232.iframe.bundle.js.gz +0 -0
  133. package/demo/docs/2139.d6ce163c.iframe.bundle.js +889 -0
  134. package/demo/docs/2139.d6ce163c.iframe.bundle.js.br +0 -0
  135. package/demo/docs/2139.d6ce163c.iframe.bundle.js.gz +0 -0
  136. package/demo/docs/2167.7e435a04.iframe.bundle.js +3 -0
  137. package/demo/docs/2167.7e435a04.iframe.bundle.js.br +0 -0
  138. package/demo/docs/2167.7e435a04.iframe.bundle.js.gz +0 -0
  139. package/demo/docs/226.28364fb9c1cd62630203.manager.bundle.js +296 -0
  140. package/demo/docs/226.28364fb9c1cd62630203.manager.bundle.js.br +0 -0
  141. package/demo/docs/226.28364fb9c1cd62630203.manager.bundle.js.gz +0 -0
  142. package/demo/docs/2706.3ac48b3e.iframe.bundle.js +184 -0
  143. package/demo/docs/2706.3ac48b3e.iframe.bundle.js.br +0 -0
  144. package/demo/docs/2706.3ac48b3e.iframe.bundle.js.gz +0 -0
  145. package/demo/docs/283.ee7481e9dbe9dd5be45a.manager.bundle.js +10 -0
  146. package/demo/docs/283.ee7481e9dbe9dd5be45a.manager.bundle.js.br +0 -0
  147. package/demo/docs/283.ee7481e9dbe9dd5be45a.manager.bundle.js.gz +0 -0
  148. package/demo/docs/2833.3f16f167.iframe.bundle.js +142 -0
  149. package/demo/docs/2833.3f16f167.iframe.bundle.js.br +0 -0
  150. package/demo/docs/2833.3f16f167.iframe.bundle.js.gz +0 -0
  151. package/demo/docs/3330.2b981d37.iframe.bundle.js +128 -0
  152. package/demo/docs/3330.2b981d37.iframe.bundle.js.br +0 -0
  153. package/demo/docs/3330.2b981d37.iframe.bundle.js.gz +0 -0
  154. package/demo/docs/3421.cb9d4b03.iframe.bundle.js +230 -0
  155. package/demo/docs/3421.cb9d4b03.iframe.bundle.js.br +0 -0
  156. package/demo/docs/3421.cb9d4b03.iframe.bundle.js.gz +0 -0
  157. package/demo/docs/4018.bf34442a.iframe.bundle.js +19128 -0
  158. package/demo/docs/4018.bf34442a.iframe.bundle.js.br +0 -0
  159. package/demo/docs/4018.bf34442a.iframe.bundle.js.gz +0 -0
  160. package/demo/docs/418.59707edaa88bb92bc4b1.manager.bundle.js +1 -0
  161. package/demo/docs/418.59707edaa88bb92bc4b1.manager.bundle.js.br +0 -0
  162. package/demo/docs/418.59707edaa88bb92bc4b1.manager.bundle.js.gz +0 -0
  163. package/demo/docs/4333.7e82f3b9.iframe.bundle.js +22 -0
  164. package/demo/docs/4333.7e82f3b9.iframe.bundle.js.br +0 -0
  165. package/demo/docs/4333.7e82f3b9.iframe.bundle.js.gz +0 -0
  166. package/demo/docs/453.0d9c1619.iframe.bundle.js +173 -0
  167. package/demo/docs/453.0d9c1619.iframe.bundle.js.br +0 -0
  168. package/demo/docs/453.0d9c1619.iframe.bundle.js.gz +0 -0
  169. package/demo/docs/4545.f7205e3b.iframe.bundle.js +114 -0
  170. package/demo/docs/4545.f7205e3b.iframe.bundle.js.br +0 -0
  171. package/demo/docs/4545.f7205e3b.iframe.bundle.js.gz +0 -0
  172. package/demo/docs/4705.e8cb3817.iframe.bundle.js +706 -0
  173. package/demo/docs/4705.e8cb3817.iframe.bundle.js.br +0 -0
  174. package/demo/docs/4705.e8cb3817.iframe.bundle.js.gz +0 -0
  175. package/demo/docs/4776.7d09bd49.iframe.bundle.js +882 -0
  176. package/demo/docs/4776.7d09bd49.iframe.bundle.js.br +0 -0
  177. package/demo/docs/4776.7d09bd49.iframe.bundle.js.gz +0 -0
  178. package/demo/docs/4cbbcfa9ded96b660559.html +26 -0
  179. package/demo/docs/63.8a4920901abfb66b6c5f.manager.bundle.js +1 -0
  180. package/demo/docs/63.8a4920901abfb66b6c5f.manager.bundle.js.br +0 -0
  181. package/demo/docs/63.8a4920901abfb66b6c5f.manager.bundle.js.gz +0 -0
  182. package/demo/docs/6503.ab6fa585.iframe.bundle.js +1 -0
  183. package/demo/docs/6503.ab6fa585.iframe.bundle.js.br +0 -0
  184. package/demo/docs/6503.ab6fa585.iframe.bundle.js.gz +0 -0
  185. package/demo/docs/7086.5c700657.iframe.bundle.js +312 -0
  186. package/demo/docs/7086.5c700657.iframe.bundle.js.br +0 -0
  187. package/demo/docs/7086.5c700657.iframe.bundle.js.gz +0 -0
  188. package/demo/docs/721.06bba888.iframe.bundle.js +796 -0
  189. package/demo/docs/721.06bba888.iframe.bundle.js.br +0 -0
  190. package/demo/docs/721.06bba888.iframe.bundle.js.gz +0 -0
  191. package/demo/docs/786.6c70980fba796c81e61a.manager.bundle.js +1168 -0
  192. package/demo/docs/786.6c70980fba796c81e61a.manager.bundle.js.br +0 -0
  193. package/demo/docs/786.6c70980fba796c81e61a.manager.bundle.js.gz +0 -0
  194. package/demo/docs/805.5b6c22fe354791d0c1e8.manager.bundle.js +17 -0
  195. package/demo/docs/805.5b6c22fe354791d0c1e8.manager.bundle.js.br +0 -0
  196. package/demo/docs/805.5b6c22fe354791d0c1e8.manager.bundle.js.gz +0 -0
  197. package/demo/docs/8070.093eadd6.iframe.bundle.js +1 -0
  198. package/demo/docs/8070.093eadd6.iframe.bundle.js.br +0 -0
  199. package/demo/docs/8070.093eadd6.iframe.bundle.js.gz +0 -0
  200. package/demo/docs/8165.7add50e2.iframe.bundle.js +1 -0
  201. package/demo/docs/8165.7add50e2.iframe.bundle.js.br +0 -0
  202. package/demo/docs/8165.7add50e2.iframe.bundle.js.gz +0 -0
  203. package/demo/docs/840.beb66c5e.iframe.bundle.js +174 -0
  204. package/demo/docs/840.beb66c5e.iframe.bundle.js.br +0 -0
  205. package/demo/docs/840.beb66c5e.iframe.bundle.js.gz +0 -0
  206. package/demo/docs/8553.243669a4.iframe.bundle.js +26 -0
  207. package/demo/docs/8553.243669a4.iframe.bundle.js.br +0 -0
  208. package/demo/docs/8553.243669a4.iframe.bundle.js.gz +0 -0
  209. package/demo/docs/9046.8a9f60b2.iframe.bundle.js +109 -0
  210. package/demo/docs/9046.8a9f60b2.iframe.bundle.js.br +0 -0
  211. package/demo/docs/9046.8a9f60b2.iframe.bundle.js.gz +0 -0
  212. package/demo/docs/929.9310f611b7d9886ddb18.manager.bundle.js +2 -0
  213. package/demo/docs/929.9310f611b7d9886ddb18.manager.bundle.js.br +0 -0
  214. package/demo/docs/929.9310f611b7d9886ddb18.manager.bundle.js.gz +0 -0
  215. package/demo/docs/9332.04709039.iframe.bundle.js +717 -0
  216. package/demo/docs/9332.04709039.iframe.bundle.js.br +0 -0
  217. package/demo/docs/9332.04709039.iframe.bundle.js.gz +0 -0
  218. package/demo/docs/9431.f74d6cf1.iframe.bundle.js +152 -0
  219. package/demo/docs/9431.f74d6cf1.iframe.bundle.js.br +0 -0
  220. package/demo/docs/9431.f74d6cf1.iframe.bundle.js.gz +0 -0
  221. package/demo/docs/9488.af21db24.iframe.bundle.js +214 -0
  222. package/demo/docs/9488.af21db24.iframe.bundle.js.br +0 -0
  223. package/demo/docs/9488.af21db24.iframe.bundle.js.gz +0 -0
  224. package/demo/docs/9576.77449673.iframe.bundle.js +1 -0
  225. package/demo/docs/9576.77449673.iframe.bundle.js.br +0 -0
  226. package/demo/docs/9576.77449673.iframe.bundle.js.gz +0 -0
  227. package/demo/docs/993.4602c8bbb99f9be8eaa2.manager.bundle.js +15 -0
  228. package/demo/docs/993.4602c8bbb99f9be8eaa2.manager.bundle.js.br +0 -0
  229. package/demo/docs/993.4602c8bbb99f9be8eaa2.manager.bundle.js.gz +0 -0
  230. package/demo/docs/9965.7e432ba2.iframe.bundle.js +2 -0
  231. package/demo/docs/9965.7e432ba2.iframe.bundle.js.br +0 -0
  232. package/demo/docs/9965.7e432ba2.iframe.bundle.js.gz +0 -0
  233. package/demo/docs/app.config.json +127 -0
  234. package/demo/docs/favicon.ico +0 -0
  235. package/demo/docs/iframe.html +377 -0
  236. package/demo/docs/index.html +59 -0
  237. package/demo/docs/main.0a93f2d0ad0dd1fa412d.manager.bundle.js +1 -0
  238. package/demo/docs/main.0a93f2d0ad0dd1fa412d.manager.bundle.js.br +0 -0
  239. package/demo/docs/main.0a93f2d0ad0dd1fa412d.manager.bundle.js.gz +0 -0
  240. package/demo/docs/main.a95267f2.iframe.bundle.js +5 -0
  241. package/demo/docs/main.a95267f2.iframe.bundle.js.br +0 -0
  242. package/demo/docs/main.a95267f2.iframe.bundle.js.gz +0 -0
  243. package/demo/docs/project.json +1 -0
  244. package/demo/docs/runtime~main.4e5ba139d118c130bf55.manager.bundle.js +2 -0
  245. package/demo/docs/runtime~main.4e5ba139d118c130bf55.manager.bundle.js.br +0 -0
  246. package/demo/docs/runtime~main.4e5ba139d118c130bf55.manager.bundle.js.gz +0 -0
  247. package/demo/docs/runtime~main.e8cb76b7.iframe.bundle.js +2 -0
  248. package/demo/docs/runtime~main.e8cb76b7.iframe.bundle.js.br +0 -0
  249. package/demo/docs/runtime~main.e8cb76b7.iframe.bundle.js.gz +0 -0
  250. package/demo/docs/static/media/ProximaLight.1c840f2e.woff +0 -0
  251. package/demo/docs/static/media/ProximaLightItalic.26edbdf9.woff +0 -0
  252. package/demo/docs/static/media/ProximaMedium.8648a446.woff +0 -0
  253. package/demo/docs/static/media/ProximaMediumItalic.6dd91f36.woff +0 -0
  254. package/demo/docs/static/media/ProximaNovaBlack.f1ff9416.woff +0 -0
  255. package/demo/docs/static/media/ProximaNovaBlackItalic.aa93a937.woff +0 -0
  256. package/demo/docs/static/media/ProximaNovaBold.690419e8.woff +0 -0
  257. package/demo/docs/static/media/ProximaNovaBoldItalic.f322b739.woff +0 -0
  258. package/demo/docs/static/media/ProximaNovaExtrabold.404c9e74.woff +0 -0
  259. package/demo/docs/static/media/ProximaNovaExtraboldItalic.d97ffa0f.woff +0 -0
  260. package/demo/docs/static/media/ProximaNovaRegular.7abe9fa6.woff +0 -0
  261. package/demo/docs/static/media/ProximaNovaRegularItalic.1073d28d.woff +0 -0
  262. package/demo/docs/static/media/ProximaNovaSemibold.1b57a486.woff +0 -0
  263. package/demo/docs/static/media/ProximaNovaSemiboldItalic.47673788.woff +0 -0
  264. package/demo/docs/static/media/ProximaNovaThin.730c623c.woff +0 -0
  265. package/demo/docs/static/media/ProximaNovaThinItalic.2915a90e.woff +0 -0
  266. package/demo/docs/stories.json +1 -0
  267. package/demo/docs/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js +101 -0
  268. package/demo/docs/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js.br +0 -0
  269. package/demo/docs/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js.gz +0 -0
  270. package/demo/docs/view-error-toast-index-stories.abbda66b.iframe.bundle.js +377 -0
  271. package/demo/docs/view-error-toast-index-stories.abbda66b.iframe.bundle.js.br +0 -0
  272. package/demo/docs/view-error-toast-index-stories.abbda66b.iframe.bundle.js.gz +0 -0
  273. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js +669 -0
  274. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js.br +0 -0
  275. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js.gz +0 -0
  276. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js +477 -0
  277. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js.br +0 -0
  278. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js.gz +0 -0
  279. package/demo/docs/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js +245 -0
  280. package/demo/docs/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js.br +0 -0
  281. package/demo/docs/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js.gz +0 -0
  282. package/demo/docs/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js +181 -0
  283. package/demo/docs/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js.br +0 -0
  284. package/demo/docs/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js.gz +0 -0
  285. package/demo/docs/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js +237 -0
  286. package/demo/docs/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js.br +0 -0
  287. package/demo/docs/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js.gz +0 -0
  288. package/demo/docs/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js +209 -0
  289. package/demo/docs/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js.br +0 -0
  290. package/demo/docs/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js.gz +0 -0
  291. package/demo/docs/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js +229 -0
  292. package/demo/docs/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js.br +0 -0
  293. package/demo/docs/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js.gz +0 -0
  294. package/demo/docs/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js +189 -0
  295. package/demo/docs/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js.br +0 -0
  296. package/demo/docs/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js.gz +0 -0
  297. package/demo/docs/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js +189 -0
  298. package/demo/docs/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js.br +0 -0
  299. package/demo/docs/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js.gz +0 -0
  300. package/demo/docs/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js +161 -0
  301. package/demo/docs/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js.br +0 -0
  302. package/demo/docs/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js.gz +0 -0
  303. package/demo/docs/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js +649 -0
  304. package/demo/docs/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js.br +0 -0
  305. package/demo/docs/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js.gz +0 -0
  306. package/demo/docs/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js +149 -0
  307. package/demo/docs/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js.br +0 -0
  308. package/demo/docs/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js.gz +0 -0
  309. package/demo/docs/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js +266 -0
  310. package/demo/docs/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js.br +0 -0
  311. package/demo/docs/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js.gz +0 -0
  312. package/demo/docs/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js +225 -0
  313. package/demo/docs/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js.br +0 -0
  314. package/demo/docs/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js.gz +0 -0
  315. package/demo/docs/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js +161 -0
  316. package/demo/docs/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js.br +0 -0
  317. package/demo/docs/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js.gz +0 -0
  318. package/demo/docs/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js +254 -0
  319. package/demo/docs/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js.br +0 -0
  320. package/demo/docs/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js.gz +0 -0
  321. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js +213 -0
  322. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js.br +0 -0
  323. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js.gz +0 -0
  324. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js +185 -0
  325. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js.br +0 -0
  326. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js.gz +0 -0
  327. package/demo/docs/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js +281 -0
  328. package/demo/docs/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js.br +0 -0
  329. package/demo/docs/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js.gz +0 -0
  330. package/demo/docs/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js +342 -0
  331. package/demo/docs/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js.br +0 -0
  332. package/demo/docs/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js.gz +0 -0
  333. package/demo/docs/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js +366 -0
  334. package/demo/docs/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js.br +0 -0
  335. package/demo/docs/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js.gz +0 -0
  336. package/demo/docs/view-fields-text-box-index-stories.2361b028.iframe.bundle.js +258 -0
  337. package/demo/docs/view-fields-text-box-index-stories.2361b028.iframe.bundle.js.br +0 -0
  338. package/demo/docs/view-fields-text-box-index-stories.2361b028.iframe.bundle.js.gz +0 -0
  339. package/demo/docs/view-fields-toggle-index-stories.49385e35.iframe.bundle.js +145 -0
  340. package/demo/docs/view-fields-toggle-index-stories.49385e35.iframe.bundle.js.br +0 -0
  341. package/demo/docs/view-fields-toggle-index-stories.49385e35.iframe.bundle.js.gz +0 -0
  342. package/demo/docs/view-form-index-stories.662377c2.iframe.bundle.js +373 -0
  343. package/demo/docs/view-form-index-stories.662377c2.iframe.bundle.js.br +0 -0
  344. package/demo/docs/view-form-index-stories.662377c2.iframe.bundle.js.gz +0 -0
  345. package/demo/docs/view-form-usecases-stories.c30ac9ae.iframe.bundle.js +305 -0
  346. package/demo/docs/view-form-usecases-stories.c30ac9ae.iframe.bundle.js.br +0 -0
  347. package/demo/docs/view-form-usecases-stories.c30ac9ae.iframe.bundle.js.gz +0 -0
  348. package/demo/docs/view-intro-stories-mdx.1e4b9514.iframe.bundle.js +6 -0
  349. package/demo/docs/view-intro-stories-mdx.1e4b9514.iframe.bundle.js.br +0 -0
  350. package/demo/docs/view-intro-stories-mdx.1e4b9514.iframe.bundle.js.gz +0 -0
  351. package/demo/docs/view-live-message-index-stories.8971291c.iframe.bundle.js +169 -0
  352. package/demo/docs/view-live-message-index-stories.8971291c.iframe.bundle.js.br +0 -0
  353. package/demo/docs/view-live-message-index-stories.8971291c.iframe.bundle.js.gz +0 -0
  354. package/demo/docs/view-modals-error-index-stories.ec19ae67.iframe.bundle.js +93 -0
  355. package/demo/docs/view-modals-error-index-stories.ec19ae67.iframe.bundle.js.br +0 -0
  356. package/demo/docs/view-modals-error-index-stories.ec19ae67.iframe.bundle.js.gz +0 -0
  357. package/demo/docs/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js +101 -0
  358. package/demo/docs/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js.br +0 -0
  359. package/demo/docs/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js.gz +0 -0
  360. package/demo/docs/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js +101 -0
  361. package/demo/docs/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js.br +0 -0
  362. package/demo/docs/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js.gz +0 -0
  363. package/demo/docs/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js +53 -0
  364. package/demo/docs/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js.br +0 -0
  365. package/demo/docs/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js.gz +0 -0
  366. package/demo/docs/view-wait-message-index-stories.4b3880d6.iframe.bundle.js +177 -0
  367. package/demo/docs/view-wait-message-index-stories.4b3880d6.iframe.bundle.js.br +0 -0
  368. package/demo/docs/view-wait-message-index-stories.4b3880d6.iframe.bundle.js.gz +0 -0
  369. package/demo/favicon.ico +0 -0
  370. package/demo/iframe.html +377 -0
  371. package/demo/index.html +59 -0
  372. package/demo/main.0a93f2d0ad0dd1fa412d.manager.bundle.js +1 -0
  373. package/demo/main.0a93f2d0ad0dd1fa412d.manager.bundle.js.br +0 -0
  374. package/demo/main.0a93f2d0ad0dd1fa412d.manager.bundle.js.gz +0 -0
  375. package/demo/main.a95267f2.iframe.bundle.js +5 -0
  376. package/demo/main.a95267f2.iframe.bundle.js.br +0 -0
  377. package/demo/main.a95267f2.iframe.bundle.js.gz +0 -0
  378. package/demo/project.json +1 -0
  379. package/demo/runtime~main.4e5ba139d118c130bf55.manager.bundle.js +2 -0
  380. package/demo/runtime~main.4e5ba139d118c130bf55.manager.bundle.js.br +0 -0
  381. package/demo/runtime~main.4e5ba139d118c130bf55.manager.bundle.js.gz +0 -0
  382. package/demo/runtime~main.e8cb76b7.iframe.bundle.js +2 -0
  383. package/demo/runtime~main.e8cb76b7.iframe.bundle.js.br +0 -0
  384. package/demo/runtime~main.e8cb76b7.iframe.bundle.js.gz +0 -0
  385. package/demo/static/media/ProximaLight.1c840f2e.woff +0 -0
  386. package/demo/static/media/ProximaLightItalic.26edbdf9.woff +0 -0
  387. package/demo/static/media/ProximaMedium.8648a446.woff +0 -0
  388. package/demo/static/media/ProximaMediumItalic.6dd91f36.woff +0 -0
  389. package/demo/static/media/ProximaNovaBlack.f1ff9416.woff +0 -0
  390. package/demo/static/media/ProximaNovaBlackItalic.aa93a937.woff +0 -0
  391. package/demo/static/media/ProximaNovaBold.690419e8.woff +0 -0
  392. package/demo/static/media/ProximaNovaBoldItalic.f322b739.woff +0 -0
  393. package/demo/static/media/ProximaNovaExtrabold.404c9e74.woff +0 -0
  394. package/demo/static/media/ProximaNovaExtraboldItalic.d97ffa0f.woff +0 -0
  395. package/demo/static/media/ProximaNovaRegular.7abe9fa6.woff +0 -0
  396. package/demo/static/media/ProximaNovaRegularItalic.1073d28d.woff +0 -0
  397. package/demo/static/media/ProximaNovaSemibold.1b57a486.woff +0 -0
  398. package/demo/static/media/ProximaNovaSemiboldItalic.47673788.woff +0 -0
  399. package/demo/static/media/ProximaNovaThin.730c623c.woff +0 -0
  400. package/demo/static/media/ProximaNovaThinItalic.2915a90e.woff +0 -0
  401. package/demo/stories.json +1 -0
  402. package/demo/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js +101 -0
  403. package/demo/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js.br +0 -0
  404. package/demo/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js.gz +0 -0
  405. package/demo/view-error-toast-index-stories.abbda66b.iframe.bundle.js +377 -0
  406. package/demo/view-error-toast-index-stories.abbda66b.iframe.bundle.js.br +0 -0
  407. package/demo/view-error-toast-index-stories.abbda66b.iframe.bundle.js.gz +0 -0
  408. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js +669 -0
  409. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js.br +0 -0
  410. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js.gz +0 -0
  411. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js +477 -0
  412. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js.br +0 -0
  413. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js.gz +0 -0
  414. package/demo/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js +245 -0
  415. package/demo/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js.br +0 -0
  416. package/demo/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js.gz +0 -0
  417. package/demo/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js +181 -0
  418. package/demo/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js.br +0 -0
  419. package/demo/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js.gz +0 -0
  420. package/demo/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js +237 -0
  421. package/demo/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js.br +0 -0
  422. package/demo/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js.gz +0 -0
  423. package/demo/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js +209 -0
  424. package/demo/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js.br +0 -0
  425. package/demo/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js.gz +0 -0
  426. package/demo/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js +229 -0
  427. package/demo/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js.br +0 -0
  428. package/demo/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js.gz +0 -0
  429. package/demo/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js +189 -0
  430. package/demo/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js.br +0 -0
  431. package/demo/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js.gz +0 -0
  432. package/demo/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js +189 -0
  433. package/demo/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js.br +0 -0
  434. package/demo/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js.gz +0 -0
  435. package/demo/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js +161 -0
  436. package/demo/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js.br +0 -0
  437. package/demo/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js.gz +0 -0
  438. package/demo/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js +649 -0
  439. package/demo/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js.br +0 -0
  440. package/demo/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js.gz +0 -0
  441. package/demo/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js +149 -0
  442. package/demo/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js.br +0 -0
  443. package/demo/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js.gz +0 -0
  444. package/demo/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js +266 -0
  445. package/demo/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js.br +0 -0
  446. package/demo/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js.gz +0 -0
  447. package/demo/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js +225 -0
  448. package/demo/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js.br +0 -0
  449. package/demo/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js.gz +0 -0
  450. package/demo/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js +161 -0
  451. package/demo/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js.br +0 -0
  452. package/demo/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js.gz +0 -0
  453. package/demo/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js +254 -0
  454. package/demo/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js.br +0 -0
  455. package/demo/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js.gz +0 -0
  456. package/demo/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js +213 -0
  457. package/demo/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js.br +0 -0
  458. package/demo/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js.gz +0 -0
  459. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js +185 -0
  460. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js.br +0 -0
  461. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js.gz +0 -0
  462. package/demo/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js +281 -0
  463. package/demo/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js.br +0 -0
  464. package/demo/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js.gz +0 -0
  465. package/demo/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js +342 -0
  466. package/demo/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js.br +0 -0
  467. package/demo/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js.gz +0 -0
  468. package/demo/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js +366 -0
  469. package/demo/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js.br +0 -0
  470. package/demo/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js.gz +0 -0
  471. package/demo/view-fields-text-box-index-stories.2361b028.iframe.bundle.js +258 -0
  472. package/demo/view-fields-text-box-index-stories.2361b028.iframe.bundle.js.br +0 -0
  473. package/demo/view-fields-text-box-index-stories.2361b028.iframe.bundle.js.gz +0 -0
  474. package/demo/view-fields-toggle-index-stories.49385e35.iframe.bundle.js +145 -0
  475. package/demo/view-fields-toggle-index-stories.49385e35.iframe.bundle.js.br +0 -0
  476. package/demo/view-fields-toggle-index-stories.49385e35.iframe.bundle.js.gz +0 -0
  477. package/demo/view-form-index-stories.662377c2.iframe.bundle.js +373 -0
  478. package/demo/view-form-index-stories.662377c2.iframe.bundle.js.br +0 -0
  479. package/demo/view-form-index-stories.662377c2.iframe.bundle.js.gz +0 -0
  480. package/demo/view-form-usecases-stories.c30ac9ae.iframe.bundle.js +305 -0
  481. package/demo/view-form-usecases-stories.c30ac9ae.iframe.bundle.js.br +0 -0
  482. package/demo/view-form-usecases-stories.c30ac9ae.iframe.bundle.js.gz +0 -0
  483. package/demo/view-intro-stories-mdx.1e4b9514.iframe.bundle.js +6 -0
  484. package/demo/view-intro-stories-mdx.1e4b9514.iframe.bundle.js.br +0 -0
  485. package/demo/view-intro-stories-mdx.1e4b9514.iframe.bundle.js.gz +0 -0
  486. package/demo/view-live-message-index-stories.8971291c.iframe.bundle.js +169 -0
  487. package/demo/view-live-message-index-stories.8971291c.iframe.bundle.js.br +0 -0
  488. package/demo/view-live-message-index-stories.8971291c.iframe.bundle.js.gz +0 -0
  489. package/demo/view-modals-error-index-stories.ec19ae67.iframe.bundle.js +93 -0
  490. package/demo/view-modals-error-index-stories.ec19ae67.iframe.bundle.js.br +0 -0
  491. package/demo/view-modals-error-index-stories.ec19ae67.iframe.bundle.js.gz +0 -0
  492. package/demo/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js +101 -0
  493. package/demo/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js.br +0 -0
  494. package/demo/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js.gz +0 -0
  495. package/demo/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js +101 -0
  496. package/demo/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js.br +0 -0
  497. package/demo/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js.gz +0 -0
  498. package/demo/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js +53 -0
  499. package/demo/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js.br +0 -0
  500. package/demo/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js.gz +0 -0
  501. package/demo/view-wait-message-index-stories.4b3880d6.iframe.bundle.js +177 -0
  502. package/demo/view-wait-message-index-stories.4b3880d6.iframe.bundle.js.br +0 -0
  503. package/demo/view-wait-message-index-stories.4b3880d6.iframe.bundle.js.gz +0 -0
  504. package/dist/cjs/analytics/index.js +4 -3
  505. package/dist/cjs/analytics/user-session-event.js +3 -3
  506. package/dist/cjs/api/users/index.js +6 -4
  507. package/dist/cjs/communication/http-client/baseQuery.js +17 -3
  508. package/dist/cjs/communication/http-client/index.js +9 -3
  509. package/dist/cjs/data/auth/actions.js +20 -4
  510. package/dist/cjs/data/breakpoint/index.js +1 -0
  511. package/dist/cjs/data/webpack-hmr.js +3 -4
  512. package/dist/cjs/index.js +11 -6
  513. package/dist/cjs/package.json +4 -1
  514. package/dist/cjs/utils/app-config/config.js +6 -4
  515. package/dist/cjs/utils/app-config/index.js +3 -4
  516. package/dist/cjs/utils/auth/index.js +85 -26
  517. package/dist/cjs/utils/auth/loginParams.js +12 -1
  518. package/dist/cjs/utils/constants.js +2 -0
  519. package/dist/cjs/utils/decorators/classDecorators.js +1 -1
  520. package/dist/cjs/utils/decorators/functionDecorators.js +98 -0
  521. package/dist/cjs/utils/decorators/index.js +4 -1
  522. package/dist/cjs/utils/helpers.js +16 -0
  523. package/dist/cjs/utils/logrocket.js +45 -0
  524. package/dist/cjs/utils/micro-frontend/app-bridge.js +45 -0
  525. package/dist/cjs/utils/micro-frontend/guest.js +276 -35
  526. package/dist/cjs/utils/micro-frontend/host.js +68 -17
  527. package/dist/cjs/utils/micro-frontend/index.js +5 -3
  528. package/dist/cjs/utils/micro-frontend/module-so.js +92 -0
  529. package/dist/cjs/utils/micro-frontend/ssf-host.js +44 -0
  530. package/dist/cjs/utils/micro-frontend/tests/__snapshots__/guest.test.ts.snap +242 -0
  531. package/dist/cjs/utils/micro-frontend/tests/app.config.json +200 -0
  532. package/dist/cjs/utils/micro-frontend/tests/utils.js +116 -0
  533. package/dist/cjs/utils/micro-frontend/types.js +18 -0
  534. package/dist/cjs/utils/session.js +2 -3
  535. package/dist/cjs/utils/testing/index.js +25 -4
  536. package/dist/cjs/utils/testing/performance-mock.js +110 -0
  537. package/dist/cjs/utils/window.js +2 -1
  538. package/dist/cjs/view/breakpoint/use-breakpoint.js +3 -2
  539. package/dist/cjs/view/error-toast/index.js +15 -3
  540. package/dist/cjs/view/fields/combo-box/index.js +2 -2
  541. package/dist/cjs/view/fields/date-input/index.js +2 -2
  542. package/dist/cjs/view/fields/date-picker/index.js +2 -2
  543. package/dist/cjs/view/fields/form-item-layout/index.js +5 -7
  544. package/dist/cjs/view/fields/form-layout-block-item/index.js +2 -4
  545. package/dist/cjs/view/fields/input-mask/index.js +4 -4
  546. package/dist/cjs/view/fields/large-text-box/index.js +2 -2
  547. package/dist/cjs/view/fields/masked-input-text/index.js +2 -2
  548. package/dist/cjs/view/fields/radio-group/index.js +2 -2
  549. package/dist/cjs/view/fields/text-box/index.js +2 -2
  550. package/dist/cjs/view/form/submit-button/index.js +2 -2
  551. package/dist/cjs/view/guest-microapp.js +221 -0
  552. package/dist/cjs/view/login/index.js +33 -3
  553. package/dist/cjs/view/micro-app/app-factory/index.js +28 -25
  554. package/dist/cjs/view/micro-app/resources/manifest.js +10 -0
  555. package/dist/cjs/view/micro-app/resources/script.js +4 -2
  556. package/dist/cjs/view/micro-iframe-app/iframe/index.js +7 -2
  557. package/dist/cjs/view/micro-iframe-app/iframe.html +7 -8
  558. package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +3 -1
  559. package/dist/cjs/view/modals/navigation-prompt/index.js +4 -4
  560. package/dist/cjs/view/modals/session-expiry/index.js +13 -3
  561. package/dist/cjs/view/page.js +12 -19
  562. package/dist/cjs/view/require-auth.js +24 -2
  563. package/dist/cjs/view/tests/__snapshots__/guest-microapp.test.tsx.snap +75 -0
  564. package/dist/cjs/view/tests/__snapshots__/micro-iframe-app.test.tsx.snap +355 -0
  565. package/dist/cjs/view/tests/app.config.json +211 -0
  566. package/dist/cjs/view/tests/constants.js +46 -0
  567. package/dist/cjs/view/tests/flights/23.1/app.checksum1.css +3 -0
  568. package/dist/cjs/view/tests/flights/23.1/app.checksum1.js +52 -0
  569. package/dist/cjs/view/tests/flights/23.1/manifest.json +4 -0
  570. package/dist/cjs/view/tests/flights/latest/app.checksum.css +3 -0
  571. package/dist/cjs/view/tests/flights/latest/app.checksum.js +52 -0
  572. package/dist/cjs/view/tests/flights/latest/manifest.json +4 -0
  573. package/dist/cjs/view/tests/hotels/23.1/app.checksum.css +3 -0
  574. package/dist/cjs/view/tests/hotels/23.1/app.checksum.js +52 -0
  575. package/dist/cjs/view/tests/hotels/23.1/manifest.json +4 -0
  576. package/dist/cjs/view/tests/hotels/latest/app.checksum.css +3 -0
  577. package/dist/cjs/view/tests/hotels/latest/app.checksum.js +52 -0
  578. package/dist/cjs/view/tests/hotels/latest/manifest.json +4 -0
  579. package/dist/cjs/view/tests/loan/latest/index.js +116 -0
  580. package/dist/cjs/view/tests/loan/latest/manifest.json +3 -0
  581. package/dist/cjs/view/tests/scriptingObjects/appraisalServiceModule.js +81 -0
  582. package/dist/cjs/{utils/micro-frontend/host-app.js → view/tests/scriptingObjects/constant.js} +5 -10
  583. package/dist/cjs/view/tests/scriptingObjects/global.js +40 -0
  584. package/dist/cjs/view/tests/scriptingObjects/loan.js +204 -0
  585. package/dist/cjs/{utils/micro-frontend/scripting-objects/web-analytics.js → view/tests/server.js} +9 -14
  586. package/dist/cjs/view/tests/serverHandlers.js +225 -0
  587. package/dist/cjs/view/tests/ssfapp/index.html +14 -0
  588. package/dist/cjs/view/tests/ssfapp/latest/index.js +16 -0
  589. package/dist/cjs/view/tests/ssfapp/latest/manifest.json +3 -0
  590. package/dist/cjs/view/tests/task/latest/index.dev.js +67 -0
  591. package/dist/cjs/view/tests/task/latest/index.js +67 -0
  592. package/dist/cjs/view/tests/task/latest/manifest.json +4 -0
  593. package/dist/cjs/view/tests/travelhub/23.1/app.checksum.css +3 -0
  594. package/dist/cjs/view/tests/travelhub/23.1/app.checksum.js +25 -0
  595. package/dist/cjs/view/tests/travelhub/23.1/landing.checksum1.css +3 -0
  596. package/dist/cjs/view/tests/travelhub/23.1/landing.checksum1.js +6 -0
  597. package/dist/cjs/view/tests/travelhub/23.1/manifest.json +6 -0
  598. package/dist/cjs/view/tests/travelhub/latest/app.checksum.css +3 -0
  599. package/dist/cjs/view/tests/travelhub/latest/app.checksum.js +30 -0
  600. package/dist/cjs/view/tests/travelhub/latest/landing.checksum.css +3 -0
  601. package/dist/cjs/view/tests/travelhub/latest/landing.checksum.js +8 -0
  602. package/dist/cjs/view/tests/travelhub/latest/manifest.json +6 -0
  603. package/dist/cjs/{analytics/appdynamics.js → view/tests/utils.js} +33 -18
  604. package/dist/cjs/view/wait-message/index.js +3 -0
  605. package/dist/esm/analytics/index.js +3 -2
  606. package/dist/esm/analytics/user-session-event.js +1 -1
  607. package/dist/esm/api/users/index.js +6 -4
  608. package/dist/esm/communication/http-client/baseQuery.js +17 -3
  609. package/dist/esm/communication/http-client/index.js +9 -3
  610. package/dist/esm/data/auth/actions.js +20 -4
  611. package/dist/esm/data/breakpoint/index.js +1 -0
  612. package/dist/esm/data/webpack-hmr.js +3 -3
  613. package/dist/esm/index.js +19 -6
  614. package/dist/esm/package.json +4 -1
  615. package/dist/esm/utils/app-config/config.js +6 -4
  616. package/dist/esm/utils/app-config/index.js +3 -4
  617. package/dist/esm/utils/auth/index.js +85 -26
  618. package/dist/esm/utils/auth/loginParams.js +12 -1
  619. package/dist/esm/utils/constants.js +2 -0
  620. package/dist/esm/utils/decorators/classDecorators.js +1 -1
  621. package/dist/esm/utils/decorators/functionDecorators.js +98 -0
  622. package/dist/esm/utils/decorators/index.js +8 -2
  623. package/dist/esm/utils/helpers.js +16 -0
  624. package/dist/esm/utils/logrocket.js +29 -0
  625. package/dist/esm/utils/micro-frontend/app-bridge.js +25 -0
  626. package/dist/esm/utils/micro-frontend/guest.js +276 -35
  627. package/dist/esm/utils/micro-frontend/host.js +68 -16
  628. package/dist/esm/utils/micro-frontend/index.js +5 -3
  629. package/dist/esm/utils/micro-frontend/module-so.js +72 -0
  630. package/dist/esm/utils/micro-frontend/ssf-host.js +24 -0
  631. package/dist/esm/utils/micro-frontend/tests/__snapshots__/guest.test.ts.snap +242 -0
  632. package/dist/esm/utils/micro-frontend/tests/app.config.json +200 -0
  633. package/dist/esm/utils/micro-frontend/tests/utils.js +96 -0
  634. package/dist/esm/utils/micro-frontend/types.js +14 -0
  635. package/dist/esm/utils/session.js +4 -2
  636. package/dist/esm/utils/testing/index.js +24 -3
  637. package/dist/esm/utils/testing/performance-mock.js +90 -0
  638. package/dist/esm/utils/window.js +2 -1
  639. package/dist/esm/view/breakpoint/use-breakpoint.js +3 -2
  640. package/dist/esm/view/error-toast/index.js +21 -4
  641. package/dist/esm/view/fields/combo-box/index.js +1 -1
  642. package/dist/esm/view/fields/date-input/index.js +1 -1
  643. package/dist/esm/view/fields/date-picker/index.js +1 -1
  644. package/dist/esm/view/fields/form-item-layout/index.js +5 -7
  645. package/dist/esm/view/fields/form-layout-block-item/index.js +3 -5
  646. package/dist/esm/view/fields/input-mask/index.js +1 -1
  647. package/dist/esm/view/fields/large-text-box/index.js +1 -1
  648. package/dist/esm/view/fields/masked-input-text/index.js +2 -2
  649. package/dist/esm/view/fields/radio-group/index.js +1 -1
  650. package/dist/esm/view/fields/text-box/index.js +1 -1
  651. package/dist/esm/view/form/submit-button/index.js +1 -1
  652. package/dist/esm/view/guest-microapp.js +196 -0
  653. package/dist/esm/view/login/index.js +33 -3
  654. package/dist/esm/view/micro-app/app-factory/index.js +28 -32
  655. package/dist/esm/view/micro-app/resources/manifest.js +10 -0
  656. package/dist/esm/view/micro-app/resources/script.js +4 -2
  657. package/dist/esm/view/micro-iframe-app/iframe/index.js +8 -3
  658. package/dist/esm/view/micro-iframe-app/iframe.html +7 -8
  659. package/dist/esm/view/micro-iframe-app/use-frame-loaded.js +3 -1
  660. package/dist/esm/view/modals/navigation-prompt/index.js +1 -1
  661. package/dist/esm/view/modals/session-expiry/index.js +12 -2
  662. package/dist/esm/view/page.js +12 -9
  663. package/dist/esm/view/require-auth.js +24 -2
  664. package/dist/esm/view/tests/__snapshots__/guest-microapp.test.tsx.snap +75 -0
  665. package/dist/esm/view/tests/__snapshots__/micro-iframe-app.test.tsx.snap +355 -0
  666. package/dist/esm/view/tests/app.config.json +211 -0
  667. package/dist/esm/view/tests/constants.js +26 -0
  668. package/dist/esm/view/tests/flights/23.1/app.checksum1.css +3 -0
  669. package/dist/esm/view/tests/flights/23.1/app.checksum1.js +51 -0
  670. package/dist/esm/view/tests/flights/23.1/manifest.json +4 -0
  671. package/dist/esm/view/tests/flights/latest/app.checksum.css +3 -0
  672. package/dist/esm/view/tests/flights/latest/app.checksum.js +51 -0
  673. package/dist/esm/view/tests/flights/latest/manifest.json +4 -0
  674. package/dist/esm/view/tests/hotels/23.1/app.checksum.css +3 -0
  675. package/dist/esm/view/tests/hotels/23.1/app.checksum.js +51 -0
  676. package/dist/esm/view/tests/hotels/23.1/manifest.json +4 -0
  677. package/dist/esm/view/tests/hotels/latest/app.checksum.css +3 -0
  678. package/dist/esm/view/tests/hotels/latest/app.checksum.js +51 -0
  679. package/dist/esm/view/tests/hotels/latest/manifest.json +4 -0
  680. package/dist/esm/view/tests/loan/latest/index.js +115 -0
  681. package/dist/esm/view/tests/loan/latest/manifest.json +3 -0
  682. package/dist/esm/view/tests/scriptingObjects/appraisalServiceModule.js +63 -0
  683. package/dist/esm/view/tests/scriptingObjects/constant.js +4 -0
  684. package/dist/esm/view/tests/scriptingObjects/global.js +22 -0
  685. package/dist/esm/view/tests/scriptingObjects/loan.js +184 -0
  686. package/dist/esm/view/tests/server.js +9 -0
  687. package/dist/esm/view/tests/serverHandlers.js +195 -0
  688. package/dist/esm/view/tests/ssfapp/index.html +14 -0
  689. package/dist/esm/view/tests/ssfapp/latest/index.js +15 -0
  690. package/dist/esm/view/tests/ssfapp/latest/manifest.json +3 -0
  691. package/dist/esm/view/tests/task/latest/index.dev.js +66 -0
  692. package/dist/esm/view/tests/task/latest/index.js +66 -0
  693. package/dist/esm/view/tests/task/latest/manifest.json +4 -0
  694. package/dist/esm/view/tests/travelhub/23.1/app.checksum.css +3 -0
  695. package/dist/esm/view/tests/travelhub/23.1/app.checksum.js +24 -0
  696. package/dist/esm/view/tests/travelhub/23.1/landing.checksum1.css +3 -0
  697. package/dist/esm/view/tests/travelhub/23.1/landing.checksum1.js +5 -0
  698. package/dist/esm/view/tests/travelhub/23.1/manifest.json +6 -0
  699. package/dist/esm/view/tests/travelhub/latest/app.checksum.css +3 -0
  700. package/dist/esm/view/tests/travelhub/latest/app.checksum.js +29 -0
  701. package/dist/esm/view/tests/travelhub/latest/landing.checksum.css +3 -0
  702. package/dist/esm/view/tests/travelhub/latest/landing.checksum.js +7 -0
  703. package/dist/esm/view/tests/travelhub/latest/manifest.json +6 -0
  704. package/dist/esm/view/tests/utils.js +33 -0
  705. package/dist/esm/view/wait-message/index.js +3 -0
  706. package/dist/types/lib/analytics/index.d.ts +17 -5
  707. package/dist/types/lib/api/auth/index.d.ts +2 -0
  708. package/dist/types/lib/api/users/index.d.ts +2 -1
  709. package/dist/types/lib/communication/http-client/baseQuery.d.ts +57 -1
  710. package/dist/types/lib/communication/http-client/index.d.ts +38 -3
  711. package/dist/types/lib/communication/http-client/response-interceptor.d.ts +14 -0
  712. package/dist/types/lib/communication/http-client/tests/baseQuery.test.d.ts +1 -0
  713. package/dist/types/lib/data/auth/actions.d.ts +4 -2
  714. package/dist/types/lib/data/breakpoint/index.d.ts +2 -1
  715. package/dist/types/lib/data/listenerMiddleware.d.ts +29 -0
  716. package/dist/types/lib/data/store.d.ts +24 -0
  717. package/dist/types/lib/data/useAppDispatch.d.ts +17 -0
  718. package/dist/types/lib/data/useAppSelector.d.ts +13 -0
  719. package/dist/types/lib/data/useInjectQuery.d.ts +29 -0
  720. package/dist/types/lib/index.d.ts +7 -6
  721. package/dist/types/lib/utils/app-config/config.d.ts +51 -0
  722. package/dist/types/lib/utils/app-config/index.d.ts +19 -1
  723. package/dist/types/lib/utils/auth/helper.d.ts +17 -0
  724. package/dist/types/lib/utils/auth/index.d.ts +124 -4
  725. package/dist/types/lib/utils/auth/loginParams.d.ts +21 -0
  726. package/dist/types/lib/utils/auth/types.d.ts +5 -4
  727. package/dist/types/lib/utils/constants.d.ts +1 -0
  728. package/dist/types/lib/utils/custom-hooks/use-state-selector.d.ts +2 -2
  729. package/dist/types/lib/utils/decorators/classDecorators.d.ts +7 -2
  730. package/dist/types/lib/utils/decorators/functionDecorators.d.ts +126 -6
  731. package/dist/types/lib/utils/decorators/index.d.ts +4 -1
  732. package/dist/types/lib/utils/helpers.d.ts +7 -0
  733. package/dist/types/lib/utils/logrocket.d.ts +26 -0
  734. package/dist/types/lib/utils/micro-frontend/app-bridge.d.ts +15 -0
  735. package/dist/types/lib/utils/micro-frontend/guest.d.ts +91 -11
  736. package/dist/types/lib/utils/micro-frontend/host.d.ts +50 -11
  737. package/dist/types/lib/utils/micro-frontend/module-so.d.ts +82 -0
  738. package/dist/types/lib/utils/micro-frontend/ssf-host.d.ts +5 -0
  739. package/dist/types/lib/utils/micro-frontend/tests/guest-initialize.test.d.ts +1 -0
  740. package/dist/types/lib/utils/micro-frontend/tests/host.test.d.ts +1 -0
  741. package/dist/types/lib/utils/micro-frontend/tests/module-so.test.d.ts +1 -0
  742. package/dist/types/lib/utils/micro-frontend/tests/utils.d.ts +39 -0
  743. package/dist/types/lib/utils/micro-frontend/types.d.ts +120 -2
  744. package/dist/types/lib/utils/redact-pii.d.ts +24 -0
  745. package/dist/types/lib/utils/session.d.ts +79 -4
  746. package/dist/types/lib/utils/testing/index.d.ts +58 -2
  747. package/dist/types/lib/utils/testing/performance-mock.d.ts +27 -0
  748. package/dist/types/lib/utils/tests/logrocket.test.d.ts +1 -0
  749. package/dist/types/lib/utils/window.d.ts +22 -6
  750. package/dist/types/lib/view/app-root/index.d.ts +27 -0
  751. package/dist/types/lib/view/error-boundary/index.d.ts +21 -0
  752. package/dist/types/lib/view/fields/combo-box/index.d.ts +25 -0
  753. package/dist/types/lib/view/fields/date-picker/index.d.ts +21 -0
  754. package/dist/types/lib/view/fields/date-time-picker/index.stories.d.ts +37 -12
  755. package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
  756. package/dist/types/lib/view/fields/form-layout-block-item/index.d.ts +1 -1
  757. package/dist/types/lib/view/fields/input-mask/index.d.ts +1 -1
  758. package/dist/types/lib/view/fields/text-box/index.d.ts +25 -0
  759. package/dist/types/lib/view/form/index.d.ts +32 -0
  760. package/dist/types/lib/view/guest-microapp.d.ts +35 -0
  761. package/dist/types/lib/view/loadable/index.d.ts +22 -0
  762. package/dist/types/lib/view/login/index.d.ts +41 -1
  763. package/dist/types/lib/view/login/tests/index.test.d.ts +1 -0
  764. package/dist/types/lib/view/micro-app/index.d.ts +5 -0
  765. package/dist/types/lib/view/micro-app/resources/script.d.ts +1 -1
  766. package/dist/types/lib/view/micro-iframe-app/index.d.ts +5 -0
  767. package/dist/types/lib/view/require-auth.d.ts +42 -1
  768. package/dist/types/lib/view/tests/constants.d.ts +12 -0
  769. package/dist/types/lib/view/tests/flights/23.1/app.checksum1.d.ts +7 -0
  770. package/dist/types/lib/view/tests/flights/latest/app.checksum.d.ts +7 -0
  771. package/dist/types/lib/view/tests/guest-microapp.test.d.ts +1 -0
  772. package/dist/types/lib/view/tests/hotels/23.1/app.checksum.d.ts +7 -0
  773. package/dist/types/lib/view/tests/hotels/latest/app.checksum.d.ts +7 -0
  774. package/dist/types/lib/view/tests/loan/latest/index.d.ts +11 -0
  775. package/dist/types/lib/view/tests/micro-iframe-app.test.d.ts +1 -0
  776. package/dist/types/lib/view/tests/require-auth.test.d.ts +1 -0
  777. package/dist/types/lib/view/tests/scriptingObjects/appraisalServiceModule.d.ts +36 -0
  778. package/dist/types/lib/view/tests/scriptingObjects/constant.d.ts +1 -0
  779. package/dist/types/lib/view/tests/scriptingObjects/global.d.ts +9 -0
  780. package/dist/types/lib/view/tests/scriptingObjects/loan.d.ts +32 -0
  781. package/dist/types/lib/view/tests/server.d.ts +1 -0
  782. package/dist/types/lib/view/tests/serverHandlers.d.ts +5 -0
  783. package/dist/types/lib/view/tests/ssfapp/latest/index.d.ts +2 -0
  784. package/dist/types/lib/view/tests/task/latest/index.d.ts +10 -0
  785. package/dist/types/lib/view/tests/task/latest/index.dev.d.ts +10 -0
  786. package/dist/types/lib/view/tests/travelhub/23.1/app.checksum.d.ts +7 -0
  787. package/dist/types/lib/view/tests/travelhub/23.1/landing.checksum1.d.ts +2 -0
  788. package/dist/types/lib/view/tests/travelhub/latest/app.checksum.d.ts +0 -0
  789. package/dist/types/lib/view/tests/travelhub/latest/landing.checksum.d.ts +0 -0
  790. package/dist/types/lib/view/tests/utils.d.ts +7 -0
  791. package/dist/types/tsconfig.tsbuildinfo +1 -1
  792. package/package.json +69 -71
  793. package/dist/cjs/utils/micro-frontend/scripting-objects/analytics.js +0 -195
  794. package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +0 -58
  795. package/dist/esm/analytics/appdynamics.js +0 -18
  796. package/dist/esm/utils/micro-frontend/host-app.js +0 -9
  797. package/dist/esm/utils/micro-frontend/scripting-objects/analytics.js +0 -165
  798. package/dist/esm/utils/micro-frontend/scripting-objects/web-analytics.js +0 -14
  799. package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +0 -28
  800. package/dist/types/lib/analytics/appdynamics.d.ts +0 -10
  801. package/dist/types/lib/utils/micro-frontend/host-app.d.ts +0 -11
  802. package/dist/types/lib/utils/micro-frontend/scripting-objects/analytics.d.ts +0 -61
  803. package/dist/types/lib/utils/micro-frontend/scripting-objects/web-analytics.d.ts +0 -10
  804. package/dist/types/lib/utils/micro-frontend/ssfguest-adapter.d.ts +0 -7
  805. /package/dist/types/lib/{utils/micro-frontend/tests/guest-ssf-host.test.d.ts → communication/http-client/tests/auth-header.test.d.ts} +0 -0
@@ -0,0 +1,882 @@
1
+ (globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[4776],{"./node_modules/.pnpm/react-virtual@2.10.4/node_modules/react-virtual/dist/react-virtual.production.min.js"(Ut,Ye,P){(function(d,a){a(Ye,P("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"))})(this,function(d,a){"use strict";function W(){return(W=Object.assign||function(N){for(var Q=1;Q<arguments.length;Q++){var X=arguments[Q];for(var H in X)Object.prototype.hasOwnProperty.call(X,H)&&(N[H]=X[H])}return N}).apply(this,arguments)}a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var ie,J=["bottom","height","left","right","top","width"],$=new Map,dt=function N(){var Q=[];$.forEach(function(X,H){var fe,le,We=H.getBoundingClientRect();fe=We,le=X.rect,fe===void 0&&(fe={}),le===void 0&&(le={}),J.some(function(Xe){return fe[Xe]!==le[Xe]})&&(X.rect=We,Q.push(X))}),Q.forEach(function(X){X.callbacks.forEach(function(H){return H(X.rect)})}),ie=window.requestAnimationFrame(N)},ct=typeof window<"u"?a.useLayoutEffect:a.useEffect;function Tt(N,Q){Q===void 0&&(Q={width:0,height:0});var X=a.useState(N.current),H=X[0],fe=X[1],le=a.useReducer(Pe,Q),We=le[0],Xe=le[1],ut=a.useRef(!1);return ct(function(){N.current!==H&&fe(N.current)}),ct(function(){if(H&&!ut.current){ut.current=!0;var be=H.getBoundingClientRect();Xe({rect:be})}},[H]),a.useEffect(function(){if(H){var be,qe,tt=(be=H,qe=function(ge){Xe({rect:ge})},{observe:function(){var ge=$.size===0;$.has(be)?$.get(be).callbacks.push(qe):$.set(be,{rect:void 0,hasRectChanged:!1,callbacks:[qe]}),ge&&dt()},unobserve:function(){var ge=$.get(be);if(ge){var nt=ge.callbacks.indexOf(qe);nt>=0&&ge.callbacks.splice(nt,1),ge.callbacks.length||$.delete(be),$.size||cancelAnimationFrame(ie)}}});return tt.observe(),function(){tt.unobserve()}}},[H]),We}function Pe(N,Q){var X=Q.rect;return N.height!==X.height||N.width!==X.width?X:N}var Te=function(){return 50},re=function(N){return N},i=function(N,Q){return N[Q?"offsetWidth":"offsetHeight"]},Et=function(N){for(var Q=Math.max(N.start-N.overscan,0),X=Math.min(N.end+N.overscan,N.size-1),H=[],fe=Q;fe<=X;fe++)H.push(fe);return H};d.defaultRangeExtractor=Et,d.useVirtual=function(N){var Q,X=N.size,H=X===void 0?0:X,fe=N.estimateSize,le=fe===void 0?Te:fe,We=N.overscan,Xe=We===void 0?1:We,ut=N.paddingStart,be=ut===void 0?0:ut,qe=N.paddingEnd,tt=qe===void 0?0:qe,ge=N.parentRef,nt=N.horizontal,Ce=N.scrollToFn,Mt=N.useObserver,z=N.initialRect,ot=N.onScrollElement,ft=N.scrollOffsetFn,gt=N.keyExtractor,zt=gt===void 0?re:gt,Gt=N.measureSize,U=Gt===void 0?i:Gt,G=N.rangeExtractor,k=G===void 0?Et:G,V=nt?"width":"height",K=nt?"scrollLeft":"scrollTop",te=a.useRef({scrollOffset:0,measurements:[]}),Se=a.useState(0),se=Se[0],ce=Se[1];te.current.scrollOffset=se;var ue=(Mt||Tt)(ge,z)[V];te.current.outerSize=ue;var ye=a.useCallback(function(Y){ge.current&&(ge.current[K]=Y)},[ge,K]),Fe=Ce||ye;Ce=a.useCallback(function(Y){Fe(Y,ye)},[ye,Fe]);var $e=a.useState({}),Ze=$e[0],ve=$e[1],st=a.useCallback(function(){return ve({})},[]),De=a.useRef([]),Ae=a.useMemo(function(){var Y=De.current.length>0?Math.min.apply(Math,De.current):0;De.current=[];for(var ne=te.current.measurements.slice(0,Y),q=Y;q<H;q++){var xe=zt(q),pe=Ze[xe],Re=ne[q-1]?ne[q-1].end:be,ae=typeof pe=="number"?pe:le(q),me=Re+ae;ne[q]={index:q,start:Re,size:ae,end:me,key:xe}}return ne},[le,Ze,be,H,zt]),Je=(((Q=Ae[H-1])==null?void 0:Q.end)||be)+tt;te.current.measurements=Ae,te.current.totalSize=Je;var _e=ot?ot.current:ge.current,Kt=a.useRef(ft);Kt.current=ft,ct(function(){if(_e){var Y=function(ne){var q=Kt.current?Kt.current(ne):_e[K];ce(q)};return Y(),_e.addEventListener("scroll",Y,{capture:!1,passive:!0}),function(){_e.removeEventListener("scroll",Y)}}ce(0)},[_e,K]);var bn=function(Y){for(var ne=Y.measurements,q=Y.outerSize,xe=Y.scrollOffset,pe=ne.length-1,Re=function(me,he,pt,Oe){for(;me<=he;){var Ve=(me+he)/2|0,T=pt(Ve);if(T<Oe)me=Ve+1;else{if(!(T>Oe))return Ve;he=Ve-1}}return me>0?me-1:0}(0,pe,function(me){return ne[me].start},xe),ae=Re;ae<pe&&ne[ae].end<xe+q;)ae++;return{start:Re,end:ae}}(te.current),yt=bn.start,gn=bn.end,Yt=a.useMemo(function(){return k({start:yt,end:gn,overscan:Xe,size:Ae.length})},[yt,gn,Xe,Ae.length,k]),Xt=a.useRef(U);Xt.current=U;var Un=a.useMemo(function(){for(var Y=[],ne=function(pe,Re){var ae=Yt[pe],me=W(W({},Ae[ae]),{},{measureRef:function(he){if(he){var pt=Xt.current(he,nt);if(pt!==me.size){var Oe=te.current.scrollOffset;me.start<Oe&&ye(Oe+(pt-me.size)),De.current.push(ae),ve(function(Ve){var T;return W(W({},Ve),{},((T={})[me.key]=pt,T))})}}}});Y.push(me)},q=0,xe=Yt.length;q<xe;q++)ne(q);return Y},[Yt,ye,nt,Ae]),yn=a.useRef(!1);ct(function(){yn.current&&ve({}),yn.current=!0},[le]);var qt=a.useCallback(function(Y,ne){var q=(ne===void 0?{}:ne).align,xe=q===void 0?"start":q,pe=te.current,Re=pe.scrollOffset,ae=pe.outerSize;xe==="auto"&&(xe=Y<=Re?"start":Y>=Re+ae?"end":"start"),xe==="start"?Ce(Y):xe==="end"?Ce(Y-ae):xe==="center"&&Ce(Y-ae/2)},[Ce]),Zt=a.useCallback(function(Y,ne){var q=ne===void 0?{}:ne,xe=q.align,pe=xe===void 0?"auto":xe,Re=function(T,we){if(T==null)return{};var Be,ke,it={},Gn=Object.keys(T);for(ke=0;ke<Gn.length;ke++)Be=Gn[ke],we.indexOf(Be)>=0||(it[Be]=T[Be]);return it}(q,["align"]),ae=te.current,me=ae.measurements,he=ae.scrollOffset,pt=ae.outerSize,Oe=me[Math.max(0,Math.min(Y,H-1))];if(Oe){if(pe==="auto")if(Oe.end>=he+pt)pe="end";else{if(!(Oe.start<=he))return;pe="start"}var Ve=pe==="center"?Oe.start+Oe.size/2:pe==="end"?Oe.end:Oe.start;qt(Ve,W({align:pe},Re))}},[qt,H]),zn=a.useCallback(function(){for(var Y=arguments.length,ne=new Array(Y),q=0;q<Y;q++)ne[q]=arguments[q];Zt.apply(void 0,ne),requestAnimationFrame(function(){Zt.apply(void 0,ne)})},[Zt]);return{virtualItems:Un,totalSize:Je,scrollToOffset:qt,scrollToIndex:zn,measure:st}},Object.defineProperty(d,"__esModule",{value:!0})})},"./node_modules/.pnpm/@elliemae+ds-form-combobox@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-form-combobox/dist/esm/ComboBox.js"(Ut,Ye,P){"use strict";P.d(Ye,{NB:()=>Mo});var d=P("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),a=P("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),W=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),ie=P("./node_modules/.pnpm/uid@2.0.2/node_modules/uid/dist/index.mjs"),J=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/defaultProps/useMemoMergePropsWithDefault.js"),$=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/validation/typescriptValidator.js");function dt(...e){}const ct={hasError:!1,inline:!1,withoutPortal:!1,disabled:!1,useMask:dt,innerRef:(0,d.createRef)(),startPlacementPreference:"bottom-start",placementOrderPreference:["bottom-start","top-start"],noOptionsMessage:"No Matches Found",isNonClearable:!1,onlySelectable:!1,isSkeleton:!1,applyAriaDisabled:!1,readOnly:!1,isMenuOpenableWithReadOnly:!1,forceFocusFirstOptionOnType:!1},Tt={},Pe=(0,d.createContext)(Tt);var Te=Pe,re=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/globalAttributesPropTypes.js"),i=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js");function Et(...e){}const N={...re.P,placeholder:i.A.string.description("input's placeholder value").defaultValue(""),allOptions:i.A.oneOfType([i.A.array,i.A.object]).isRequired.description("List of original options").defaultValue([]),filteredOptions:i.A.oneOfType([i.A.array,i.A.object]).description("List of filtered options to show in the menu based on the current internal input filter value").defaultValue([]),selectedValues:i.A.oneOfType([i.A.arrayOf(i.A.object),i.A.object]).isRequired.description("Array of option or single option selected"),disabled:i.A.bool.description("wheter or not the input is disabled").defaultValue("false"),autoFocus:i.A.bool.description("Whether the combo box uses auto focus or not").defaultValue("false"),hasError:i.A.bool.description("Whether the combo box has error or not").defaultValue("false"),noOptionsMessage:i.A.string.description("Custome message to be display when no matches found after filtering").defaultValue("No Matches Found"),onChange:i.A.func.isRequired.description("function triggered when an option is selected it will send the options selected").defaultValue("() => {}"),onFilter:i.A.func.description("function triggered when user type in the combobox input").defaultValue(""),onCreate:i.A.func.description('function triggered when user select "create" a new item whenever is not a match in the all option list').defaultValue(""),onCancel:i.A.func.description("function triggered when user press ESC key").defaultValue("() => {}"),onMenuChange:i.A.func.description("function triggered when user open or close the menu list").defaultValue("() => {}"),menuMinWidth:i.A.any.description("Minimum width for the dropdown menu").defaultValue(void 0),menuMaxHeight:i.A.any.description("Maximum height for the dropdown menu").defaultValue(void 0),withoutPortal:i.A.bool.description("Whether the combobox menu is rendered in a portal or not").defaultValue(!1),innerRef:i.A.oneOfType([i.A.func,i.A.shape({current:i.A.any})]).description("reference to the component"),onlySelectable:i.A.bool.description("filtering is disabled"),isSkeleton:i.A.bool.description("whether or not the component is in skeleton state").defaultValue(!1),applyAriaDisabled:i.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1),readOnly:i.A.bool.description("Makes the component non-editable while remaining accessible.").defaultValue(!1),isMenuOpenableWithReadOnly:i.A.bool.description("Whether the menu can be opened when the input is readonly").defaultValue(!1),onSelectAll:i.A.func.description("function triggered when user select all the options").defaultValue("() => {}").deprecated({version:"25.2"}),popperProps:i.A.object.description("props to be passed to the FloatingWrapper component").defaultValue(void 0),forceFocusFirstOptionOnType:i.A.bool.description("Whether to focus the first option when typing in the input.").defaultValue(!1)},Q="DSCombobox",X={CONTAINER:"root",INPUT_WRAPPER:"input-wrapper",INPUT:"input"},H={OPTION:"option",SECTION:"section",SEPARATOR:"separator"},fe={CREATABLE:"creatable"},le={SELECT_OPTION:"selectOption",CLOSE:"close",OPEN:"open",BLUR:"blur"};var We;const Xe=e=>e.filter(t=>t.type===We.OPTION&&!t.disabled),ut=e=>e.filter(t=>t.type===H.OPTION),be=e=>Array.isArray(e)?e.length===0:!e,qe=e=>Array.isArray(e),tt=(e,t)=>qe(e)?e.some(s=>s?.value===t?.value):e?.value===t.value;function ge(e){return Array.isArray(e)&&e.length>0}const nt=e=>!Array.isArray(e)&&e!==null&&typeof e=="object",Ce=(e,t,n,o=1)=>{if(e.length===0)return t;let s=(t+o+e.length)%e.length,r=0;for(;r<e.length;){if(n(e[s]))return s;s=(s+o+e.length)%e.length,r+=1}return t},Mt=e=>Array.isArray(e)?e[e.length-1]:e,z=(e,t)=>{if(t){const n=Mt(t);if(n)return n.dsId}for(let n=0;n<e.length;n+=1)if(!["section","separator"].includes(e[n].type)&&!e[n].disabled)return e[n].dsId;return""},ot=(e,t,n)=>Array.isArray(t)?t.find(s=>s.type==="option"&&s.value===e.value)?n?t:t.filter(s=>s.type==="option"&&s.value!==e.value):[...t,e]:t&&t.dsId===e.dsId?n?e:null:e,ft=(e,t)=>e?t.filter(n=>n.type===H.OPTION&&n.label.toLowerCase().includes(e.toLowerCase())):t,gt=(e,t)=>e.filter(n=>n.type===We.OPTION&&tt(t,n)),zt=(e,t={behavior:"smooth",block:"end",inline:"nearest"})=>{const n=e.getBoundingClientRect();n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)||e.scrollIntoView(t)},Gt=(e,t)=>{const{filteredOptions:n,allOptions:o,onCreate:s}=e;return(0,d.useMemo)(()=>{let r=o;o?.every(c=>typeof c=="string")&&(r=o.map((c,u)=>({dsId:u.toString(),label:c,type:H.OPTION,value:c})));const l=n??ft(t,r);return s&&t&&l.findIndex(c=>c.type===H.OPTION&&c.label===t)===-1?[{dsId:`creatable-${(0,ie.L)()}`,label:t,type:"creatable","aria-describedby":"aria-creatable"},...l]:l},[n,o,s,t])},U=e=>(0,d.useMemo)(()=>{const t=[];let n=null;return e.forEach(o=>{o.type==="section"?(n={dsId:o.dsId,type:o.type,label:o.label,options:[]},t.push(n)):(o.type==="option"||o.type==="separator")&&n?n.options.push(o):(o.type==="option"||o.type==="creatable"||o.type==="separator")&&t.push(o)}),t},[e]),G=e=>{const t=(0,J.b)(e,ct);(0,$.D)(t,N,Q);const[n,o]=(0,d.useState)(!1),[s,r]=(0,d.useState)(null),[l,c]=(0,d.useState)(""),[u,p]=(0,d.useState)(!1),m=(0,d.useRef)(null),h=(0,d.useRef)(null),f=(0,d.useRef)(null),g=(0,d.useRef)(null),S=(0,d.useRef)(null),{id:y,selectedValues:b,isMenuOpen:x,onMenuChange:O,applyAriaDisabled:I}=t,v=(0,d.useMemo)(()=>y||(0,ie.L)(5),[y]),w=(0,d.useMemo)(()=>x!==void 0?x:n,[n,x]),C=Gt(t,l),E=U(C),R={scrollTo:()=>{}},_=(0,d.useRef)(R),B=(0,d.useCallback)((F,Ke={align:"center"})=>{_.current.scrollTo(C.findIndex(Ie=>Ie.dsId===F),Ke),requestAnimationFrame(()=>{_.current.scrollTo(C.findIndex(Ie=>Ie.dsId===F),Ke)})},[C]),[L,A]=(0,d.useState)("");(0,d.useEffect)(()=>{if(l&&t.forceFocusFirstOptionOnType){const F=z(C);A(F),B(F,{align:"center"})}},[C,l,t.forceFocusFirstOptionOnType,B,b]);const D=(0,d.useCallback)((F,Ke,Ie)=>{if(!I)if(O!==void 0&&O(F,Ke,Ie),o(F),!l&&F&&!L&&!be(b)){const je=z(C,b);A(je),B(je,{align:"center"})}else A("")},[I,O,l,L,b,C,B]);(0,d.useEffect)(()=>{t.inline&&D(!0,"inline")},[]);const M=t.readOnly&&!t.isMenuOpenableWithReadOnly;return(0,d.useMemo)(()=>({props:{...t},menuState:w,referenceElement:s,listRef:_,focusOptionIdx:L,selectedOptionsRef:f,controlsWrapperRef:g,inputValue:l,setInputValue:c,setMenuState:D,hasFocus:u,pillGroupRef:S,wrapperListRef:h,setHasFocus:p,setFocusOptionIdx:A,scrollOptionIntoView:B,setReferenceElement:r,setShowPopover:o,internalRef:m,correctOptions:C,instanceUid:v,optionsPerSection:E,shouldPreventContextMenuOpening:M}),[B,D,C,u,t,l,L,h,w,S,s,f,g,_,m,v,E,M])};var k=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/useGetGlobalAttributes.js"),V=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/useGetXstyledProps.js"),K=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/useOwnerProps/index.js"),te=P("./node_modules/.pnpm/@elliemae+ds-hooks-headless-tooltip@3.57.10_styled-components@5.3.11/node_modules/@elliemae/ds-hooks-headless-tooltip/dist/esm/DSHooksHeadlessTooltip.js");const Se={withoutAnimation:!1,animationDuration:300,withoutPortal:!1,placement:"top",customOffset:[0,12]},se={withoutPortal:i.A.bool.description("If true, the tooltip will not be rendered inside a portal.").defaultValue(!1),withoutAnimation:i.A.bool.description("If true, the tooltip will not have an animation.").defaultValue(!1),portalDOMContainer:i.A.instanceOf(HTMLElement).description("The DOM element where the tooltip will be rendered.").defaultValue('the first "main" landmark available in the document or the body if no "main" is found'),animationDuration:i.A.number.description("The duration of the animation in milliseconds.").defaultValue(300),placement:i.A.oneOf(["top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"]).description("The placement of the tooltip.").defaultValue("top"),customOffset:i.A.arrayOf(i.A.number).description("The custom offset of the tooltip.").defaultValue([12,12]),placementOrderPreference:i.A.oneOfType([i.A.tuple([i.A.oneOf(["top-start"])]),i.A.tuple([i.A.oneOf(["top"])]),i.A.tuple([i.A.oneOf(["top-end"])]),i.A.tuple([i.A.oneOf(["right-start"])]),i.A.tuple([i.A.oneOf(["right"])]),i.A.tuple([i.A.oneOf(["right-end"])]),i.A.tuple([i.A.oneOf(["bottom-end"])]),i.A.tuple([i.A.oneOf(["bottom"])]),i.A.tuple([i.A.oneOf(["bottom-start"])]),i.A.tuple([i.A.oneOf(["left-end"])]),i.A.tuple([i.A.oneOf(["left"])]),i.A.tuple([i.A.oneOf(["left-start"])])]).description("The order of the placement preference."),onOpen:i.A.func.description("Callback when the tooltip is opened."),onClose:i.A.func.description("Callback when the tooltip is closed."),externallyControlledIsOpen:i.A.bool.description("If true, the context open/close state will be controlled externally.")};var ce=P("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js");const ue={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(e){return e.replace(/left|right|bottom|top/g,t=>ue[t])}const Fe={start:"end",end:"start"};function $e(e){const t=e.replace(/start|end/g,n=>Fe[n]);return t===e?e==="right"?"left":"right":t}const Ze={left:"top",right:"bottom",bottom:"right",top:"left"};function ve(e){return e.replace(/left|right|bottom|top/g,t=>Ze[t])}const st={left:"bottom-start",right:"top-start",bottom:"top-start",top:"bottom-start"};function De(e){return e.replace(/left|right|bottom|top/g,t=>st[t])}const Ae=e=>[ye(e),$e(e),ve(e),ye(ve(e)),De(e),ye(De(e))],Je=(e,t,n)=>Math.min(n,Math.max(t,e)),_e=({placement:e,referenceRect:t,floatingRect:n,x:o,y:s,withoutPortal:r,parentOffsets:l,floatingEl:c,arrowPadding:u=12})=>{const p=e.split("-")[0],m=p==="top"||p==="bottom",h=t.left+t.width/2,f=t.top+t.height/2;let g,S;if(!r)g=h+window.scrollX,S=f+window.scrollY;else{const b=c.offsetParent,x=b?.getBoundingClientRect(),O=x?.left??0,I=x?.top??0,v=b?.scrollLeft??0,w=b?.scrollTop??0;g=h-l.left-O+v,S=f-l.top-I+w}return m?{left:`${Je(g-o,u,n.width-u)}px`}:{top:`${Je(S-s,u,n.height-u)}px`}};function Kt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bn(e,t,n){const o=e.split("-")[0],s=e.split("-")[1],r=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2;let c={x:0,y:0};switch(o){case"top":c={x:r,y:t.y-n.height};break;case"bottom":c={x:r,y:t.y+t.height};break;case"right":c={x:t.x+t.width,y:l};break;case"left":c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}const u=o?Kt(o):null;if(u!=null){const p=u==="y"?"height":"width";switch(s){case"start":c[u]=c[u]-(t[p]/2-n[p]/2);break;case"end":c[u]=c[u]+(t[p]/2-n[p]/2);break;default:}}return c}const yt={top:0,right:0,bottom:0,left:0};function gn(e){return{...e,left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}function Yt(e){return{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,toJSON:()=>{}}}const Xt=(e,t,n,o,s)=>{const r=n.split("-")[0],l=["top","bottom"].indexOf(r)>=0,c=s??{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight},u=bn(n,e,t),p=gn({...Yt(t),...u}),m={top:c.top-p.top+yt.top,bottom:p.bottom-c.bottom+yt.bottom,left:c.left-p.left+yt.left,right:p.right-c.right+yt.right},h={x:r==="left"?-(o?.[0]??12):o?.[0]??12,y:r==="top"?-(o?.[1]??12):o?.[1]??12};if(!l){const f=h.x;h.x=h.y*(r==="right"?1:-1),h.y=f}return Object.keys(m).forEach(f=>{const g=f==="right"||f==="bottom"?1:-1,S=f==="top"||f==="bottom"?"y":"x";m[f]+=h[S]*g}),m},Un=e=>{let t=e;for(;t&&t!==document.body;){if(getComputedStyle(t).position==="fixed")return t;t=t.parentElement}return null},yn=e=>{const t=Un(e);if(t){const n=t.getBoundingClientRect();return{top:n.top,left:n.left}}return{top:0,left:0}},qt=e=>{let t=e?.parentElement??null;for(;t&&t!==document.body;){const n=getComputedStyle(t),o=n.overflowX||n.overflow,s=n.overflowY||n.overflow,r=/(auto|scroll|hidden|clip)/.test(o),l=/(auto|scroll|hidden|clip)/.test(s);if(r||l)return t;t=t.parentElement}return null},Zt=()=>({top:0,left:0,right:window.innerWidth,bottom:window.innerHeight}),zn=(e,t,n)=>{let o=e,s=t;return n.left>0&&(o+=n.left),n.right>0&&(o-=n.right),n.top>0&&(s+=n.top),n.bottom>0&&(s-=n.bottom),{x:o,y:s}},Y=e=>e.top<=0&&e.bottom<=0&&e.left<=0&&e.right<=0,ne=e=>{const t=Math.max(0,e.top),n=Math.max(0,e.bottom),o=Math.max(0,e.left),s=Math.max(0,e.right),r=t+n+o+s,l=Math.max(t,n,o,s);return{total:r,maxSide:l}},q=e=>{const t=[],n=new Set,o=s=>{n.has(s)||(n.add(s),t.push(s))};return e.forEach(s=>{o(s);const[r,l]=s.split("-");l||(o(`${r}-start`),o(`${r}-end`))}),t},xe=e=>{const t=e.offsetParent;if(!t)return{left:0,top:0,scrollLeft:0,scrollTop:0};const n=t.getBoundingClientRect();return{left:n.left,top:n.top,scrollLeft:t.scrollLeft??0,scrollTop:t.scrollTop??0}},pe=e=>{const{reference:t,floating:n,placement:o,placementOrderPreference:s,customOffset:r,withoutPortal:l}=e,c=l?yn(t):{top:0,left:0},u=t.getBoundingClientRect(),p=n.getBoundingClientRect(),m=s||Ae(o),h=q([o].concat(m)),f=l?qt(t):null,g=f?f.getBoundingClientRect():Zt();let S=o,y=null,b={total:Number.POSITIVE_INFINITY,maxSide:Number.POSITIVE_INFINITY};for(let C=0;C<h.length;C+=1){const E=h[C],R=Xt(u,p,E,r,g);if(Y(R)){S=E,y=R;break}const _=ne(R);(_.maxSide<b.maxSide||_.maxSide===b.maxSide&&_.total<b.total)&&(S=E,y=R,b=_)}const x=S,O=y??Xt(u,p,x,r,g);let I=-O.left-c.left,v=-O.top-c.top;if(!l)I+=window.scrollX,v+=window.scrollY;else{const C=xe(n);I=I-C.left+C.scrollLeft,v=v-C.top+C.scrollTop}({x:I,y:v}=zn(I,v,O));const w=_e({placement:x,referenceRect:u,floatingRect:p,x:I,y:v,withoutPortal:l,parentOffsets:c,floatingEl:n,arrowPadding:12});return{coordsStyle:{transform:`translate3d(${Math.round(I)}px, ${Math.round(v)}px, 0)`,top:0,left:0},finalPlacement:x,coordsArrow:w}},Re=e=>{const{reference:t,floating:n,placement:o,placementOrderPreference:s,customOffset:r,withoutPortal:l,preventComputing:c=!1,debounceMs:u=150}=e,[p,m]=(0,d.useState)({style:{left:0},placement:"top"}),[h,f]=(0,d.useState)({position:"absolute",zIndex:3e3,visibility:"hidden",willChange:"transform"}),[g,S]=(0,d.useState)(!1),y=t!==null&&n!==null&&!c,b=(0,d.useCallback)(()=>{if(!y)return;const{coordsStyle:w,finalPlacement:C,coordsArrow:E}=pe({reference:t,floating:n,placement:o,placementOrderPreference:s,customOffset:r,withoutPortal:l});f(R=>({position:"absolute",zIndex:3e3,...R,...w})),m({style:E,placement:C}),S(!0)},[y,t,n,o,s,r,l]),x=(0,d.useRef)(b);x.current=b;const O=(0,d.useMemo)(()=>(0,ce.debounce)(()=>{x.current()},u),[u]);(0,d.useLayoutEffect)(()=>()=>{O.cancel()},[O]),(0,d.useLayoutEffect)(()=>{y&&x.current()},[y,t,n,o,s,r,l]);const I=(0,d.useCallback)(()=>{x.current()},[]),v=(0,d.useCallback)(()=>{f(w=>({...w,visibility:"hidden"}))},[]);return(0,d.useMemo)(()=>({arrowStyles:p,floatingStyles:h,hasComputedOnce:g,updateStyles:I,debouncedUpdateStyles:O,mutableUpdateStyles:x,resetVisibilityOnly:v}),[p,h,g,I,O,v])};class ae{intersectionObserver;positionObserverCallback;thresholdList;constructor(t,n=1e3){this.positionObserverCallback=t,this.thresholdList=new Array(n+1).fill(0).map((o,s)=>s/n)}observe(t){this.intersectionObserver=new IntersectionObserver(this.viewportCallback.bind(this),{threshold:this.thresholdList,rootMargin:"0px 0px 0px 0px",root:document}),this.intersectionObserver.observe(t)}viewportCallback(t){const n=t[0],{target:o}=n,s=n.boundingClientRect;if(this.positionObserverCallback&&this.positionObserverCallback({x:s.left,y:s.top,target:o,outOfViewport:!n.isIntersecting,rootBounds:n.rootBounds}),n.intersectionRatio>0){this.intersectionObserver?.unobserve(o),this.intersectionObserver?.disconnect();const r={threshold:this.thresholdList,rootMargin:this.getMargins(this.constructBoxWindow(s,n.rootBounds),n.rootBounds),root:document};this.intersectionObserver=new IntersectionObserver(this.intersectionObsCallback.bind(this),r),this.intersectionObserver?.observe(o)}}intersectionObsCallback(t){const n=t[0],{target:o}=n,s=n.boundingClientRect;this.positionObserverCallback&&this.positionObserverCallback({x:s.left,y:s.top,target:o,outOfViewport:!1,rootBounds:n.rootBounds}),n.intersectionRatio===0&&(this.intersectionObserver?.unobserve(o),this.intersectionObserver?.disconnect(),this.intersectionObserver=new IntersectionObserver(this.viewportCallback.bind(this),{threshold:this.thresholdList,rootMargin:"0px 0px 0px 0px",root:document}),this.intersectionObserver?.observe(o))}disconnect(){this.intersectionObserver?.disconnect()}constructBoxWindow(t,n){const o=Math.min(Math.max(n.left,t.left),n.right-t.width),s=Math.min(Math.max(n.top,t.top),n.bottom-t.height),r=o+t.width,l=s+t.height;return{left:o,top:s,right:r,bottom:l}}getMargins(t,n){let o;n?o=n:o={top:visualViewport.offsetTop,left:visualViewport.offsetLeft,right:visualViewport.width+visualViewport.offsetLeft,bottom:visualViewport.height+visualViewport.offsetTop};const s=Math.min(-(t.top-1-o.top),0),r=Math.min(-(o.right-(t.right+1)),0),l=Math.min(-(o.bottom-(t.bottom+1)),0),c=Math.min(-(t.left-1-o.left),0);return`${s}px ${r}px ${l}px ${c}px`}}const me=(e,t=()=>{})=>{d.useEffect(()=>{if(!!!window.IntersectionObserver||!e)return()=>{};const o=new ae(t);return o.observe(e),()=>{o.disconnect()}},[e,t])},he=(e={})=>{const t=(0,J.b)(e,Se);(0,$.D)(t,se,"FloatingContext");const{withoutPortal:n,withoutAnimation:o,portalDOMContainer:s,animationDuration:r,placement:l,customOffset:c,placementOrderPreference:u,onOpen:p,onClose:m,externallyControlledIsOpen:h}=t,[f,g]=d.useState(!1),S=(0,d.useMemo)(()=>h!==void 0?h:f,[h,f]),y=d.useCallback(()=>{g(!0),p?.()},[p]),b=d.useCallback(()=>{g(!1),m?.()},[m]),x=(0,te.E)({onOpen:y,onClose:b}),{setReferenceElement:O,referenceElement:I,hideTooltip:v,showTooltip:w}=x,[C,E]=d.useState(null),{arrowStyles:R,floatingStyles:_,hasComputedOnce:B,updateStyles:L,debouncedUpdateStyles:A,mutableUpdateStyles:D}=Re({reference:I,floating:C,placement:l,placementOrderPreference:u,customOffset:c,withoutPortal:n,preventComputing:!S,debounceMs:150});(0,d.useEffect)(()=>{if(!S)return;const Ie=[];if(C){const je=new ResizeObserver(()=>{D.current()});je.observe(C),Ie.push(je)}return()=>Ie.forEach(je=>je.disconnect())},[S,C,L,D]);const M=d.useCallback(()=>{S&&A()},[S,A]);me(I,M);const j=(0,d.useMemo)(()=>({..._,visibility:S&&B?"visible":"hidden"}),[_,B,S]),F=(0,d.useMemo)(()=>({setReference:O,setFloating:E,floating:C,reference:I}),[O,C,I]),Ke=(0,d.useMemo)(()=>({onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onFocus:x.onFocus,onBlur:x.onBlur}),[x.onBlur,x.onFocus,x.onMouseEnter,x.onMouseLeave]);return(0,d.useMemo)(()=>({refs:F,floatingStyles:j,handlers:Ke,isOpen:S,arrowStyles:R,hideTooltip:v,showTooltip:w,context:{withoutPortal:n,withoutAnimation:o,portalDOMContainer:s,animationDuration:r},mutableUpdateStyles:D,forceUpdatePosition:L}),[F,j,Ke,S,R,v,w,n,o,s,r,D,L])};he.displayName="FloatingContext";const pt=(0,W.A)(he);pt.propTypes=se;var Oe=P("./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js"),Ve=P("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.cjs.js"),T=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/styled.js"),we=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/system.js"),Be=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/helpers.js");const ke="DSFloatingwrapper",it={ROOT:"root",CONTENT:"content",ARROW:"arrow",ARROW_SHADOW:"arrow_shadow",ARROW_FILL:"arrow_fill"},Gn={...(0,Be.lD)(ke,it),ROOT:"ds-floating-wrapper-root",ARROW:"ds-tooltip-arrow"},ni=(0,Ve.keyframes)`
2
+ from {
3
+ opacity: 0;
4
+ transform: scale(0.8);
5
+ }
6
+
7
+ to {
8
+ opacity: 1;
9
+ transform: scale(1);
10
+ visibility: visible;
11
+ }
12
+ `,oi=(0,Ve.keyframes)`
13
+ from {
14
+ opacity: 1;
15
+ transform: scale(1);
16
+ }
17
+
18
+ to {
19
+ opacity: 0;
20
+ transform: scale(0.8);
21
+ visibility: hidden;
22
+ }
23
+ `,si=(0,T.I)("div",{name:ke,slot:it.CONTENT})`
24
+ background-color: #fff;
25
+ box-shadow:
26
+ 0 0 0 1px rgba(16, 22, 26, 0.1),
27
+ 0 2px 4px rgba(16, 22, 26, 0.2),
28
+ 0 8px 24px rgba(16, 22, 26, 0.2);
29
+
30
+ ${({isOpen:e,animationDuration:t,withoutAnimation:n})=>!n&&(0,we.AH)`
31
+ animation: ${e?ni:oi} ${t??100}ms ease-in;
32
+ `}
33
+ `,ii=(0,T.I)("div",{name:ke,slot:it.ROOT})``;var Jt=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),Ee=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/xstyledPropTypes.js");const ri={context:{withoutPortal:!1,animationDuration:300,withoutAnimation:!1},customOffset:[0,12]},li={...(0,Jt.Y)(ke,it),...re.P,...Ee.w,children:i.A.node.description("Content of the floating wrapper").isRequired,innerRef:i.A.oneOfType([i.A.object,i.A.func]).description("Ref for the floating wrapper").isRequired,isOpen:i.A.bool.description("Whether the floating wrapper is open").isRequired,floatingStyles:i.A.object.description("Style for the floating wrapper").isRequired,context:i.A.shape({portalDOMContainer:i.A.instanceOf(HTMLElement).description("The DOM element where the tooltip will be rendered.").defaultValue('the first "main" landmark available in the document or the body if no "main" is found'),withoutPortal:i.A.bool.description("Whether to render the floating wrapper without a portal"),animationDuration:i.A.number.description("Duration of the animation"),withoutAnimation:i.A.bool.description("Whether to render the floating wrapper without animation")}).description("Context for the floating wrapper"),onAnimationStartTriggered:i.A.func.description("Callback invoked when the component trigger the animation start. Required to properly position nested floating context without visual artefacts in case animations are used."),onAnimationEnd:i.A.func.description("Callback when the animation ends. Required to properly position nested floating context without visual artefacts in case animations are used."),customOffset:i.A.arrayOf(i.A.number).description("Custom offset for the floating wrapper")},eu=null,ai=e=>{const t=d.useMemo(()=>({...ri,...e}),[e]),n=(0,V.d)(t),o=(0,k.u)(t),s=d.useMemo(()=>(0,ie.L)(5),[]);return d.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:s,globalsAttrs:o}),[t,n,s,o])},di=()=>{const e=document.querySelector("main");return e||console.log(`No "main" element found in the document. Using body instead.
34
+ Not having a main element is usually the start of accessibility issues related to landmarks.
35
+ If this is actually intentional, you should provide the correct DOM element to host the portal via portalDOMContainer`),e||document.body},Co=d.memo(({children:e,innerRef:t,floatingStyles:n,isOpen:o,animationDuration:s,withoutAnimation:r,handleAnimationEnd:l,xstyledProps:c,globalsAttrs:u,ownerPropsConfig:p})=>(0,a.jsx)(ii,{innerRef:t,style:n,...c,"data-testid":"ds-floating-wrapper-root",...u,...p,children:(0,a.jsx)(si,{onAnimationEnd:l,isOpen:o,animationDuration:s,withoutAnimation:r,...p,children:e})})),Qt=e=>{const{propsWithDefault:t,xstyledProps:n,globalsAttrs:o}=ai(e),{isOpen:s}=t,r=(0,K.j)(e),{context:l,onAnimationEnd:c,onAnimationStartTriggered:u,...p}=t,{portalDOMContainer:m,withoutPortal:h,withoutAnimation:f}=l,[g,S]=d.useState(!1);d.useEffect(()=>{s&&!f&&(S(!0),u?.())},[s,u,f]);const y=d.useCallback(b=>{S(!1),c&&c(b)},[c]);if(s||g){if(h===!0)return(0,a.jsx)(Co,{xstyledProps:n,globalsAttrs:o,ownerPropsConfig:r,...p,...l,handleAnimationEnd:y});if(!h)return(0,a.jsx)(a.Fragment,{children:(0,Oe.createPortal)((0,a.jsx)(Co,{xstyledProps:n,globalsAttrs:o,ownerPropsConfig:r,...p,...l,handleAnimationEnd:y}),m||di())})}return null};Qt.displayName=ke;const ci=(0,W.A)(Qt);ci.propTypes=li;var Pt=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/xStyledWrapper.js");const ui=(0,T.I)("div",{name:Q,slot:X.CONTAINER})`
36
+ position: relative;
37
+ cursor: ${({disabled:e})=>e?"not-allowed":"default"};
38
+ cursor: ${({applyAriaDisabled:e})=>e?"not-allowed":"default"};
39
+ min-width: 64px;
40
+ ${Pt.L1}
41
+ `,pi=(0,T.I)("div")`
42
+ position: relative;
43
+ cursor: ${({disabled:e})=>e?"not-allowed":"default"};
44
+ cursor: ${({applyAriaDisabled:e})=>e?"not-allowed":"default"};
45
+ overflow: auto;
46
+ `;var Kn=P("./node_modules/.pnpm/@elliemae+ds-truncated-tooltip-text@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-truncated-tooltip-text/dist/esm/SimpleTruncatedTooltipText.js");const He={CONTROLS_WRAPPER:"combobox-controls-wrapper",CONTAINER:"combobox-container",INPUT:"combobox-input",LIST:"combobox-menu-list",NO_MATCHES_FOUND:"combobox-no-matches-found",SELECTED_VALUES:"combobox-selected-values",DROPDOWN:"combobox-dropdown-btn",OPTION:"combobox-option",ALLY_SELECTED_VALUES:"combobox-ally-selected-values"};var Do=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/mergeRefs.js");const mi=(0,T.I)("input")`
47
+ color: transparent;
48
+ position: absolute;
49
+ top: 0;
50
+ left: 0;
51
+ z-index: 2;
52
+ border: none;
53
+ outline: none;
54
+ background: transparent;
55
+ width: 100%;
56
+ &:focus {
57
+ outline: none;
58
+ }
59
+ ${({isDisabled:e})=>e&&"cursor: not-allowed;"}
60
+ `,hi=(0,T.I)("input",{name:Q,slot:X.INPUT})`
61
+ line-height: 1rem;
62
+ background: transparent;
63
+ font-size: 1rem;
64
+ border: none;
65
+ overflow: hidden;
66
+ padding: 0;
67
+ z-index: 2;
68
+ outline: none;
69
+ color: ${e=>e.theme.colors.neutral[700]};
70
+ &:focus {
71
+ outline: none;
72
+ }
73
+ ${({withoutCaret:e})=>e&&"caret-color: transparent;"}
74
+ &::placeholder {
75
+ color: transparent;
76
+ }
77
+ transition: none;
78
+ ${({applyAriaDisabled:e})=>e&&"cursor: not-allowed; caret-color: transparent;"}
79
+ `,fi=T.I.div`
80
+ font-style: italic;
81
+ color: ${e=>e.theme.colors.neutral[500]};
82
+ position: absolute;
83
+ display: flex;
84
+ align-items: center;
85
+ width: 100%;
86
+ user-select: none;
87
+
88
+ line-height: 1rem;
89
+ font-size: 1rem;
90
+
91
+ & span::after {
92
+ content: '';
93
+ padding: 1px;
94
+ // solve italic font style clipping issue with overflow hidden.
95
+ }
96
+ `,bi=T.I.span`
97
+ visibility: hidden;
98
+ position: absolute;
99
+ top: -9999px;
100
+ z-index: 1;
101
+ `,gi=(0,T.I)("div")`
102
+ position: relative;
103
+ align-items: center;
104
+ display: flex;
105
+ padding-right: 1px;
106
+ overflow: hidden;
107
+ `,_o=(0,T.I)("div")`
108
+ display: none;
109
+ `,yi=()=>{const{props:{useMask:e,onFilter:t,allOptions:n,applyAriaDisabled:o},setMenuState:s,setInputValue:r,setFocusOptionIdx:l}=(0,d.useContext)(Te),c=(0,d.useCallback)(m=>{o||(s(!0,"filter",m),t&&t(ft(m.currentTarget.value,n),m.currentTarget.value),l(""),r(m.currentTarget.value))},[o,s,t,l,r,n]),u=(0,d.useCallback)((m,h)=>{s(!0,"filter",m),h&&t?t(ft(h,n),h):!h&&t&&t(n,"")},[s,t,n]);return e({valueSetter:r,onChange:u})?.onChange||c},xi=2,Si=()=>{const{props:{selectedValues:e,allOptions:t,placeholder:n,onFilter:o,inline:s},setHasFocus:r,inputValue:l,setInputValue:c}=(0,d.useContext)(Te),[u,p]=(0,d.useState)(1),m=(0,d.useRef)(null),h=!l&&(s||be(e))?n:null,f=(l||"").replace(/\s/g,"\xA0")||"";(0,d.useLayoutEffect)(()=>{const b=m.current;if(!b)return;const x=Math.ceil(b.offsetWidth)+xi;Math.abs(x-u)>=1&&p(x)},[f,u]);const g=yi(),S=(0,d.useCallback)(()=>{c(""),o&&o(t),r(!1)},[c,o,t,r]),y=(0,d.useCallback)(()=>r(!0),[r]);return(0,d.useMemo)(()=>({handleOnBlur:S,handleOnChange:g,handleOnFocus:y,showPlaceholder:h,spanReferenceText:f,width:u,spanReference:m}),[S,g,y,h,f,u])},xn=e=>!["section","separator"].includes(e.type),Ii=(e,t)=>e.label!==void 0&&e.label.toLowerCase().startsWith(t.toLowerCase()),Ai=()=>{const{props:{allOptions:e,isNonClearable:t,onCancel:n,disabled:o,onKeyDown:s,onChange:r,onCreate:l,onFilter:c,onSelectAll:u,inline:p,selectedValues:m,withoutPortal:h,onlySelectable:f,applyAriaDisabled:g,readOnly:S,isMenuOpenableWithReadOnly:y},inputValue:b,correctOptions:x,menuState:O,focusOptionIdx:I,listRef:v,setMenuState:w,setInputValue:C,scrollOptionIntoView:E,setFocusOptionIdx:R}=(0,d.useContext)(Pe),_=Array.isArray(m),B=ut(x),L=x.findIndex(M=>M.dsId===I),A=x.find(M=>M.dsId===I);return{onInputKeyDown:(0,d.useCallback)(M=>{if(!(g||S&&!y||o)){if(s&&A?.type===H.OPTION&&s(M,A),["ArrowDown","ArrowUp","Enter","Spacebar"].includes(M.key)&&!O&&w(!0,le.OPEN,M),M.key==="Escape"&&(n&&n(),b&&(c&&c(e,b),C("")),p||w(!1,le.CLOSE,M)),!S&&M.key==="Enter"&&A?.type===fe.CREATABLE&&l){l(b),R(""),c&&c(e,""),C("");return}if(y&&M.key.length===1&&!M.ctrlKey&&!M.altKey&&!M.metaKey&&(O||w(!0,le.OPEN,M)),M.key==="Enter"||M.key===" "&&M.altKey||M.key==="Tab"&&!_&&!p){if(S||A?.applyAriaDisabled)return;M.key!=="Tab"&&M.preventDefault(),M.stopPropagation(),I!==""&&(O||p)&&A?.type===H.OPTION&&!A.disabled&&(c&&c(e,""),C(""),_||w(!1,le.SELECT_OPTION,M),r(ot(A,m,t),A,M))}if(M.key==="Enter"&&M.altKey&&w(!1,"selectOption",M),M.key==="a"&&M.ctrlKey&&_&&u&&u(x.filter(j=>j.type==="option"&&!j.disabled),M),M.key==="ArrowDown"&&(M.preventDefault(),M.stopPropagation(),(O||p)&&(B.length||l))){const j=Ce(x,L,xn);j>-1&&(R(x[j].dsId),E(x[j].dsId))}if(M.key==="ArrowUp"){if(M.preventDefault(),M.stopPropagation(),!B.length&&!l)return;const j=Ce(x,L===-1?0:L,xn,-1);if(j>-1)if(O||p)R(x[j].dsId),E(x[j].dsId);else{w(!0,le.OPEN,M);const F=Ce(x,0,xn,-1);R(x[F].dsId),setTimeout(()=>{E(x[F].dsId)})}}if(M.key==="Backspace"&&M.currentTarget.value.length<=0&&!p){if(S)return;const j=Mt(m);!M.currentTarget.value&&j&&!t&&!j.applyAriaDisabled&&r(ot(j,m),j,M)}if(M.key==="Tab"&&!p&&O&&w(!1,le.BLUR,M),f&&/^[a-zA-Z\d]$/.test(M.key)){O||w(!0,le.OPEN,M);const F=Ce(x,L,Ie=>xn(Ie)&&Ii(Ie,M.key));if(!x[F])return;R(x[F].dsId),E(x[F].dsId)}}},[s,A,l,_,b,p,h,w,n,c,C,v,I,O,B.length,x,L,R,m,r,t])}},Oi=()=>{const{props:e,props:{autoFocus:t,inline:n,selectedValues:o,placeholder:s,disabled:r,innerRef:l,isLoading:c,onlySelectable:u,applyAriaDisabled:p,readOnly:m,...h},focusOptionIdx:f,hasFocus:g,internalRef:S,inputValue:y,setInputValue:b,menuState:x,instanceUid:O}=(0,d.useContext)(Pe),{onInputKeyDown:I}=Ai(),{spanReference:v,width:w,spanReferenceText:C,showPlaceholder:E,handleOnBlur:R,handleOnChange:_,handleOnFocus:B}=Si(),{getOwnerProps:L,getOwnerPropsArguments:A}=(0,K.j)(e),{tabIndex:D,id:M,"aria-describedby":j,...F}=(0,k.u)(h,{onFocus:B,onBlur:R}),Ke=(0,d.useMemo)(()=>M?`${j??""} ${M}_current_placeholder ${M}_feedback_message ${M}_error_message`:j,[j,M]),Ie=(0,d.useMemo)(()=>ge(o)?`options ${o.map(Le=>Le.label).join(", ")} selected. ${m?"Read only":""}`:typeof o?.label=="string"?`option ${o.label} selected. ${m?"Read only":""}`:m?`${s}. Read only`:s,[s,o,m]),je=(0,d.useMemo)(()=>{if(!c&&g&&x)return f},[f,g,c,x]),Ht=Le=>{Le.preventDefault(),b(Le.clipboardData.getData("text/plain")),S.current?.focus()};return(0,a.jsxs)(gi,{children:[(0,a.jsx)(bi,{innerRef:v,children:C}),E&&(0,a.jsx)(fi,{"aria-hidden":"true",children:(0,a.jsx)(Kn.n,{value:E})}),x===!1&&!n?(0,a.jsx)(_o,{id:`combo-listbox-${O}`}):null,(0,a.jsx)(_o,{id:`${M}_current_placeholder`,children:Ie}),(0,a.jsx)(hi,{getOwnerProps:L,getOwnerPropsArguments:A,onBlur:R,onFocus:B,readOnly:m||u,...F,id:M,"data-testid":He.INPUT,autoFocus:t,placeholder:Ie,"aria-activedescendant":je,"aria-expanded":x,"aria-controls":`combo-listbox-${O}`,"aria-describedby":Ke,"aria-autocomplete":"list",role:"combobox",disabled:r,applyAriaDisabled:p,style:{width:w},innerRef:(0,Do.Px)(l,S),value:y,type:"text",onKeyDown:I,onChange:_,tabIndex:D,withoutCaret:u,autoComplete:"off","aria-readonly":m}),(0,a.jsx)(mi,{type:"text",disabled:r||p,readOnly:m,name:"hidden",tabIndex:-1,onPaste:Ht,"aria-hidden":"true",isDisabled:r||p})]})};var Ro=P("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV2/DSButtonV2.js"),Yn=P("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronSmallDown.js");const rt="DSCombobox",lt={ROOT:"root",INPUT_WRAPPER:"input-wrapper",INPUT:"input",DROPDOWN_BUTTON:"dropdown-button",FAST_LIST:"fast-list",SECTION_WRAPPER:"section-wrapper",SECTION_LABEL:"section-label",SINGLE_MENU_ITEM:"single-menu-item",MULTI_MENU_ITEM:"multi-menu-item",LOADING_INDICATOR:"loading-indicator",SKELETON_MENU_ITEM:"skeleton-menu-item"},tu={...(0,Be.lD)(rt,lt),CONTROLS_WRAPPER:"combobox-controls-wrapper",CONTAINER:"combobox-container",INPUT:"combobox-input",LIST:"combobox-menu-list",NO_MATCHES_FOUND:"combobox-no-matches-found",SELECTED_VALUES:"combobox-selected-values",DROPDOWN:"combobox-dropdown-btn",OPTION:"combobox-option",ALLY_SELECTED_VALUES:"combobox-ally-selected-values"},vi=(0,T.I)(Ro.e,{name:rt,slot:lt.DROPDOWN_BUTTON})`
110
+ &:focus::after {
111
+ border: none;
112
+ }
113
+ &:hover:not(:disabled) {
114
+ background-color: transparent;
115
+ }
116
+
117
+ & svg {
118
+ fill: ${({theme:e,disabled:t,readOnly:n,applyAriaDisabled:o})=>t||n||o?e.colors.neutral[400]:e.colors.brand[600]};
119
+ }
120
+
121
+ ${({applyAriaDisabled:e})=>e&&"cursor: not-allowed"}
122
+ `,wi=()=>{const{props:e,props:{disabled:t,applyAriaDisabled:n,readOnly:o,isMenuOpenableWithReadOnly:s},menuState:r,instanceUid:l}=(0,d.useContext)(Te),{getOwnerProps:c,getOwnerPropsArguments:u}=(0,K.j)(e),p=(0,d.useCallback)(m=>{m.preventDefault()},[]);return(0,a.jsx)(vi,{getOwnerProps:c,getOwnerPropsArguments:u,onClick:p,"data-testid":He.DROPDOWN,"aria-controls":`combo-listbox-${l}`,"aria-labelledby":"combo-label",disabled:t,"aria-disabled":o&&!s,"aria-expanded":r,"aria-haspopup":"listbox","aria-hidden":!0,buttonType:"icon",tabIndex:-1,size:"s",applyAriaDisabled:n,children:(0,a.jsx)(Yn.A,{size:"s"})})};var Z=P("./node_modules/.pnpm/@elliemae+ds-grid@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-grid/dist/esm/Grid.js"),ko=P("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV3/react-desc-prop-types.js");const en="DSMenubutton",at={SEPARATOR:"separator",ACTIVABLE_ITEM:"activable-item",ACTIVABLE_WITH_SUBMENU_ITEM:"activable-with-submenu-item",SKELETON_ITEM:"skeleton-item",MULTIPLE_SELECT_ITEM:"multiple-select-item",MULTIPLE_SELECT_WITH_SUBMENU_ITEM:"multiple-select-with-submenu-item",WITH_SUBMENU_ITEM:"with-submenu-item",SINGLE_SELECT_ITEM:"single-select-item",SINGLE_SELECT_WITH_SUBMENU_ITEM:"single-select-with-submenu-item",GROUP:"group"},Xn={ROOT:"root"},Ti=(0,Be.lD)(en,Xn),Sn={onClickOutside:()=>null,onOptionClick:()=>null,openedSubmenus:{},onSubmenuToggle:()=>null,isLoading:!1,isSkeleton:!1,maxHeight:"256px"},No={onItemSelected:i.A.func.description("IoC function in charge of handling the selection of a menu item, required if the menu has selectionable items").signature(`((
123
+ newSelection: DSMenuButtonT.PseudoFocusableMenuNodes[],
124
+ metainfo: { itemNode: DSMenuButtonT.PseudoFocusableMenuNodes; event?: React.SyntheticEvent },
125
+ ) => void)`),onActivateItem:i.A.func.description("IoC function in charge of handling the activation (NOT INVOKED ON SELECTION) of a menu item, required if the menu has activable items").signature(`((
126
+ itemNode: DSMenuButtonT.PseudoFocusableMenuNodes,
127
+ metainfo: { itemNode: DSMenuButtonT.PseudoFocusableMenuNodes; event?: React.SyntheticEvent },
128
+ ) => void)`),onOpen:i.A.func.description("function triggered when the widget opens the menu").signature("(()=>void)"),onClose:i.A.func.description("function triggered when the widget closes the menu").signature("(()=>void)"),onDisplayedSubmenuChange:i.A.func.description("function triggered when the widget's closes or opens a submenu").signature(`((
129
+ newOpenedItems: DSMenuButtonT.PseudoFocusableMenuNodes[],
130
+ metainfo: { itemNode: DSMenuButtonT.PseudoFocusableMenuNodes; event?: React.SyntheticEvent },
131
+ ) => void)`)},qn={ItemRenderer:i.A.node.description("Component to be used to render the items"),onClickOutside:i.A.func.description("Callback executed when you click outside the dropdown menu, or press the Esc key").defaultValue(()=>null),onOptionClick:i.A.func.description("Callback triggered when an item is clicked or pressed. We provide the next selected options, the clicked option and the event, in that order").defaultValue(()=>null),openedSubmenus:i.A.object.description("Object with the ids of the submenus as keys, and booleans as keys. Represents the state of the current opened submenus").defaultValue({}),onSubmenuToggle:i.A.func.description("Callback triggered when a submenu is opened or closed.").signature("((nextOpenedSubmenus: Record<string, boolean>, submenu: Item, e: React.MouseEvent | React.KeyboardEvent) => void)").defaultValue(()=>null),isLoading:i.A.bool.description("Whether the flyout menu should render the loading indicator").defaultValue(!1),isSkeleton:i.A.bool.description("Whether the flyout menu should render the skeleton").defaultValue(!1),maxHeight:i.A.oneOfType([i.A.string,i.A.number]).description("The maximum height of the flyout menu").defaultValue("256px")},Zn={options:i.A.oneOfType([i.A.array,i.A.object]).description("Array of options to display in the menu or a DSTree node to build branches from").isRequired,selectedItems:i.A.arrayOf(i.A.object).description("an array of tree-nodes or tree-items that have to be marked as selected in the GUI, required if the menu has selectionable items"),...ko.t,...No,...qn,...(0,Jt.Y)(en,Xn)},Ei=Zn,Ue=e=>{const t=e;return typeof e=="object"&&e!==null&&typeof t.plainItem=="object"&&t.plainItem?.type!==void 0&&t.dsId!==void 0},Jn=e=>Ue(e)&&e.plainItem?.type===at.ACTIVABLE_ITEM,jo=e=>Ue(e)&&e.plainItem?.type===at.SKELETON_ITEM,Qn=e=>Ue(e)&&e.plainItem?.type===at.MULTIPLE_SELECT_ITEM,xt=e=>Ue(e)&&e.plainItem?.type===at.MULTIPLE_SELECT_WITH_SUBMENU_ITEM,Ct=e=>Qn(e)||xt(e),Lo=e=>Ue(e)&&e.plainItem?.type===at.SINGLE_SELECT_ITEM,In=e=>Ue(e)&&e.plainItem?.type===at.SINGLE_SELECT_WITH_SUBMENU_ITEM,An=e=>Lo(e)||In(e),tn=e=>Ct(e)||An(e),nu=e=>e.flatten().filter(tn),On=e=>Ue(e)&&e.plainItem?.type===at.WITH_SUBMENU_ITEM,Wo=e=>In(e)||xt(e),eo=e=>Ue(e)&&e.plainItem?.type===at.ACTIVABLE_WITH_SUBMENU_ITEM,mt=e=>On(e)||Wo(e)||eo(e),ou=e=>e.flatten().filter(mt),Dt=e=>tn(e)||Jn(e)||mt(e)||jo(e),Mi=e=>e.flatten().filter(Dt),Pi=e=>Ue(e)&&e.plainItem?.type===at.SEPARATOR,_t=e=>Ue(e)&&e.plainItem?.type===at.GROUP,nn=e=>Ue(e)&&e.plainItem?.type==="ROOT_ITEM",to=e=>nn(e)||mt(e)||_t(e)||In(e)||xt(e)||eo(e);class vn{dsId;childIndex;depth;plainItem;plainChildren;parent;children;tree;_hash;constructor(t,{childIndex:n,depth:o,parent:s,tree:r}){this.dsId=r.getUniqueId(t),this.childIndex=n,this.depth=o,this.parent=s??null,this.tree=r,this._hash=0,this.children=[],this.plainChildren=[],(t.subitems??[]).forEach((c,u)=>{this.plainChildren.push(this.getCleanItem(c)),this.children.push(new vn(c,{childIndex:u,depth:o+1,parent:this,tree:r}))}),this.plainItem=this.getCleanItem(t)}fixChildIndexes=()=>{for(let t=0;t<this.children.length;t+=1)this.children[t].childIndex=t;this._hash+=1};getCleanItem=t=>{const{subitems:n,...o}=t;return(0,ce.cloneDeep)(o)};get hash(){return this._hash}walk=t=>{if(t(this))for(const o of this.children)o.walk(t)};walkParents=t=>{t(this)&&this.parent&&this.parent.walkParents(t)};findNode=t=>{let n=null;return this.walk(o=>n?!1:(t(o)&&(n=o),!n)),n};findAllNodes=t=>{const n=[];return this.walk(o=>(t(o)&&n.push(o),!0)),n};flatten=()=>{const t=[];return this.walk(n=>(t.push(n),!0)),t};getPath=t=>{const n=[],o=this.tree.getNode(t);return o?(o.walkParents(s=>(n.push(s),s.dsId!==this.dsId)),n.reverse()):n};getPathIds=t=>this.getPath(t).map(n=>n.dsId);getJson=()=>({...this.plainItem,subitems:this.children?.map?.(t=>t.getJson())??void 0});addNode=t=>{const n=t.childIndex;if(n<0||n>this.children.length)throw new Error(`Invalid position ${n} for parent ${this.dsId} with item ${t.dsId}`);this.children.splice(n,0,t),this.fixChildIndexes(),t.walk(o=>(this.tree.addNodeToNodesDictionary(o),!0)),this._hash+=1};removeNode=()=>{if(!this.parent)throw new Error(`Cannot remove root node with id ${this.dsId}`);this.parent.children.splice(this.childIndex,1),this.parent.fixChildIndexes(),this.walk(t=>(this.tree.removeNodeFromNodesDictionary(t),!0)),this._hash+=1}}class Ci{root;_hash;nodes;getUniqueId;constructor(t,n){this.getUniqueId=n.getUniqueId,this.root=new vn(t,{childIndex:0,depth:0,tree:this}),this.nodes={},this._hash=0,this.root.walk(o=>(this.nodes[o.dsId]=o,!0))}addNodeToNodesDictionary(t){if(this.nodes[t.dsId])throw new Error(`DSTree: repeated dsId ${t.dsId}`);this.nodes[t.dsId]=t}removeNodeFromNodesDictionary(t){delete this.nodes[t.dsId]}get hash(){return this._hash}getRoot=()=>this.root;getNode=t=>this.nodes[t];getNodes=()=>this.nodes;walk=t=>{this.root.walk(t)};walkParents=t=>{this.root.walkParents(t)};findNode=t=>this.root.findNode(t);findAllNodes=t=>this.root.findAllNodes(t);flatten=()=>this.root.flatten();addNode=(t,n={})=>{const{position:o,parent:s,callback:r}=n,l=s||this.root,c=o??l.children.length,u=new vn(t,{childIndex:c,depth:l.depth+1,parent:l,tree:this});return this.getNode(l.dsId).addNode(u),this._hash+=1,r?.(u,this),u};removeNode=(t,n={})=>{const o=this.getNode(t);if(!o)throw new Error(`Node with id ${t} not found`);return o.removeNode(),this._hash+=1,n.callback?.(o,this),o};moveNode=(t,n={})=>{const o=this.removeNode(t),s=this.addNode(o.getJson(),n);return this._hash+=1,s};replaceNode=(t,n,o={})=>{const s=this.removeNode(t),r=this.addNode(n,{parent:s.parent,position:s.childIndex});return this._hash+=1,o.callback?.(r,this),r};getPath=t=>this.getRoot().getPath(t);getPathIds=t=>this.getRoot().getPathIds(t)}const Fo={dsId:i.A.oneOfType([i.A.string,i.A.number]).description("Id of the root item."),label:i.A.string.description("Item label."),"[key]":i.A.string.description("Any custom key you want to add to the item.")},Di={rootItem:i.A.shape({...Fo,subitems:i.A.arrayOf(i.A.shape(Fo)).description("Array of subitems. Each subitem can also have subitems.")}).description("First parameter.").isRequired,opts:i.A.shape({getUniqueId:i.A.func.signature("(item) => string | number").description("Callback to get the id of each item.").isRequired}).description("Second parameter.").isRequired},_i={hash:i.A.number.description("Tree hash value."),getRoot:i.A.func.signature("() => rootItem").description("Callback to get the root item."),getNode:i.A.func.signature("(id: string | number) => item").description("Callback to get an item by id."),walk:i.A.func.signature("(callback: (item: FirstParameter) => boolean) => void").description("Callback applied to each item to determine whether to continue walking or not."),walkParents:i.A.func.signature("(callback: (item: FirstParameter) => boolean) => void").description("Callback applied to each item to determine whether to continue walking the item's parents or not."),findNode:i.A.func.signature("(callback: (item: FirstParameter) => boolean) => FirstParameter | null").description("Callback to find an item that matches the condition."),findAllNodes:i.A.func.signature("(callback: (item: FirstParameter) => boolean) => FirstParameter[]").description("Callback to find all the items that matches the condition."),flatten:i.A.func.signature("() => item[]").description("Returns an array of hte tree items."),addNode:i.A.func.signature("(item: FirstParameter, options?: AddOptions<FirstParameter> | undefined) => FirstParameter").description("Adds an item to the tree."),removeNode:i.A.func.signature("(id: string, options?: RemoveOptions<FirstParameter> | undefined) => FirstParameter").description("Removes an item from the tree."),moveNode:i.A.func.signature("(id: string, options?: MoveOptions<FirstParameter> | undefined) => FirstParameter").description("Move an item within the tree."),replaceNode:i.A.func.signature("id: string, item: FirstParameter, options?: MutateOptions<FirstParameter> | undefined) => FirstParameter").description("Replace a noe within the tree."),getPath:i.A.func.signature("(id: string | number) => FirstParameter[]").description("Get the path to an item given the item's id."),getPathIds:i.A.func.signature("(id: string | number) => (string | number)[]").description("Get the path ids to an item given the item's id.")},no=(e,t)=>{const n=(0,d.useMemo)(()=>new Ci(e,t),[t,e]),[o,s]=(0,d.useState)(n.hash),r=(0,d.useCallback)((p,m)=>{const h=(f,g)=>{m?.callback?.(f,g),s(g.hash)};return n.addNode(p,{...m,callback:h})},[n]),l=(0,d.useCallback)((p,m)=>{const h=(f,g)=>{m?.callback?.(f,g),s(g.hash)};return n.removeNode(p,{...m,callback:h})},[n]),c=(0,d.useCallback)((p,m)=>{const h=(f,g)=>{m?.callback?.(f,g),s(g.hash)};return n.moveNode(p,{...m,callback:h})},[n]),u=(0,d.useCallback)((p,m,h)=>{const f=(g,S)=>{h?.callback?.(g,S),s(S.hash)};return n.replaceNode(p,m,{...h,callback:f})},[n]);return{hash:o,getRoot:n.getRoot,getNode:n.getNode,walk:n.walk,walkParents:n.walkParents,findNode:n.findNode,findAllNodes:n.findAllNodes,flatten:n.flatten,addNode:r,removeNode:l,moveNode:c,replaceNode:u,getPath:n.getPath,getPathIds:n.getPathIds}};no.displayName="useDSTree";const $o=(0,W.A)(no);$o.propTypes=Di,$o.returnType=_i;const Ri={getUniqueId:e=>e.dsId},ki=({options:e,instanceUid:t,propsWithDefault:n})=>{const{maxHeight:o}=n||Sn,s=d.useMemo(()=>({dsId:`root-${t}`,type:"ROOT_ITEM",subitems:e,maxHeight:o}),[t,o,e]);return no(s,Ri)},Vo=(e,t)=>{typeof e=="function"&&e(t),"current"in e&&(e.current=t)},Ni=(e,t)=>{const n=[];return e.forEach(o=>{if(!!Ue(o)){n.push(o);return}const{dsId:r}=o,l=t.findNode(c=>c.dsId===r);if(!l)throw new Error(`Selected option with dsId ${r} not found in the menu tree.`);if(!tn(l)){console.warn(`Selected option with dsId ${r} is not a selectionable node and will be ignored.`);return}n.push(l)}),n},ji=({propsWithDefault:e,focusableNodes:t,treeRootNode:n})=>{const o=d.useRef(null),{options:s,onClickOutside:r,onOptionClick:l,openedSubmenus:c,onSubmenuToggle:u,isLoading:p,isSkeleton:m,ItemRenderer:h,innerRef:f,selectedItems:g,onDisplayedSubmenuChange:S,onItemSelected:y,onActivateItem:b,onOpen:x,onClose:O,maxHeight:I,...v}=e,w=d.useCallback(R=>{o.current=R,f&&Vo(f,R)},[f]),C=d.useMemo(()=>g?Ni(g,n):[],[g,n]),E=d.useMemo(()=>({options:s,onClickOutside:r,onOptionClick:l,openedSubmenus:c,onSubmenuToggle:u,isLoading:p,isSkeleton:m,ItemRenderer:h}),[s,r,l,c,u,p,m,h]);return d.useMemo(()=>({menuBehaviouralLayerProps:{buttonDOMNodeRef:o,selectedNodes:C,focusableNodes:t,optionsTree:n,onDisplayedSubmenuChange:S,onItemSelected:y,onActivateItem:b,onOpen:x,onClose:O},opinionatedButtonProps:{...v,innerRef:w,menuSpecificProps:E}}),[C,t,n,S,y,b,x,O,v,w,E])},Li=(e,t)=>{(0,$.D)(e,t,en)},Wi=e=>{const t=(0,J.b)(e,Sn);Li(t,Zn);const n=(0,V.d)(t),o=d.useMemo(()=>`menu-button${(0,ie.L)(5)}`,[]),{options:s}=t,r=Array.isArray(s)?s:[],l=ki({options:r,instanceUid:o,propsWithDefault:t}).getRoot(),c=d.useMemo(()=>Array.isArray(s)?l:s,[s,l]),u=d.useMemo(()=>Mi(c),[c]),p=ji({propsWithDefault:t,focusableNodes:u,treeRootNode:c});return d.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:o,...p}),[t,n,o,p])};var Fi=P("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV3/DSButtonV3.js"),$i=P("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/SharedButtonBaseline/react-desc-prop-types.js");const on="DSOpinionatedbutton",su={},oo={ROOT:"root"},iu=(0,Be.lD)(on,oo),Vi={...$i.G},Bo={...(0,Jt.Y)(on,oo),...ko.t,menuSpecificProps:i.A.shape(qn).description("Props for the main flyout menu").isRequired,innerRef:i.A.func.description("Ref callback for the button, if not provided how is the flyout menu being positioned?").isRequired},Bi={},ze=(0,d.createContext)(Bi);var lu=null;const Ho="DSMenubehaviouralcontextprovider",ee={TRIGGER:"trigger",ITEM_BY_DSID:e=>`item-${e}`,RESET:""},Hi=({propsWithDefault:e,floatingContext:t})=>{const{focusRegion:n,isMenuOpen:o,onOpinionatedOpen:s,onOpinionatedClose:r,trackFocusTrigger:l,shouldFocusImmediately:c}=d.useContext(ze),{onClick:u,onFocus:p,innerRef:m,onKeyDown:h}=e,{refs:{setReference:f}}=t,g=d.useRef(n),S=n===ee.TRIGGER&&g.current!==n;g.current=n;const y=d.useRef(o);y.current=o;const b=d.useCallback((v,...w)=>{u&&u(v,...w),y.current?r():s()},[u,r,s]),x=d.useCallback((v,...w)=>{g.current!==ee.TRIGGER&&l(),p&&p(v,...w)},[p,l]),O=d.useCallback(v=>{S&&v&&(c.current?v.focus():requestAnimationFrame(()=>{v.focus()})),f(v),m&&Vo(m,v)},[m,S,f,c]),I=d.useCallback((v,...w)=>{v.key==="ArrowDown"&&s(),v.key==="ArrowUp"&&s({focusLastChild:!0}),v.key==="Escape"&&r(),h&&h(v,...w)},[h,s,r]);return d.useMemo(()=>({handleTriggerKeyDown:I,handleOnClick:b,handleOnFocus:x,handleFocusIfTriggerIsFocusRegion:O}),[O,b,x,I])},Ui=(e,t)=>{(0,$.D)(e,t,on)},Uo=["bottom-start","bottom-end","bottom","right-start","right-start","right","left-start","left-end","left","top-start","top-end","top"],zi=(e,t)=>{const n=d.useMemo(()=>({...Vi,...e}),[e]);Ui(n,Bo);const o=d.useMemo(()=>`ds-opinionated-button-${(0,ie.L)(5)}`,[]),s=he({placement:Uo[0],placementOrderPreference:Uo,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:t.isMenuOpen}),r=Hi({propsWithDefault:n,floatingContext:s});return d.useMemo(()=>({propsWithDefault:n,instanceUid:o,eventsHandlers:r,floatingContext:s}),[n,o,r,s])},de="DSMenuitem",Ge={MENU_ITEM_WRAPPER:"menu-item-wrapper",MENU_ITEM_LABEL:"menu-item-label",MENU_ITEM_SECONDARY_LABEL:"menu-item-secondary-label",MENU_ITEM_ICON:"menu-item-icon",MENU_ITEM_ELLIPSIS_BUTTON:"menu-item-ellipsis-button",MENU_ITEM_CONTENT:"menu-item-content",MENU_ITEM_SEPARATOR:"menu-item-separator",MENU_ITEM_SEPARATOR_WRAPPER:"menu-item-separator-wrapper",MENU_ITEM_GROUP_LABEL:"menu-item-group-label",MENU_ITEM_SECTION_WRAPPER:"menu-item-section-wrapper",MENU_ITEM_VERTICAL_SEPARATOR:"menu-item-vertical-separator",MENU_ITEM_CONTENT_WRAPPER:"menu-item-content-wrapper"},so=()=>(0,we.AH)`
132
+ :after {
133
+ display: block;
134
+ content: ' ';
135
+ position: absolute;
136
+ top: 0;
137
+ left: 0;
138
+ right: 0;
139
+ bottom: 0;
140
+ border: 1px solid ${({theme:e})=>e.colors.brand[500]};
141
+ pointer-events: none;
142
+ z-index: 7;
143
+ }
144
+ `,io=()=>(0,we.AH)`
145
+ color: ${({theme:e})=>e.colors.neutral[500]};
146
+ :hover {
147
+ color: ${({theme:e})=>e.colors.neutral[600]};
148
+ // lets target the label to controll the checkbox for multi select menu item.
149
+ label {
150
+ color: ${({theme:e})=>e.colors.neutral[600]};
151
+ }
152
+ }
153
+ cursor: not-allowed;
154
+ * {
155
+ cursor: not-allowed;
156
+ }
157
+ `,Me=(0,T.I)("li",{name:de,slot:Ge.MENU_ITEM_WRAPPER})`
158
+ cursor: pointer;
159
+ min-height: 32px;
160
+
161
+ padding-left: 16px;
162
+ padding-right: 16px;
163
+ display: grid;
164
+ align-items: center;
165
+ list-style: none;
166
+ position: relative;
167
+
168
+ ${e=>e.isActive?so():""};
169
+
170
+ ${e=>e.disabled||e.applyAriaDisabled?io():""};
171
+
172
+ background-color: ${e=>e.isActive?e.theme.colors.brand[200]:e.theme.colors.neutral["000"]};
173
+
174
+ // focus style for standalone version
175
+ &:focus {
176
+ ${e=>e.disabled?io():e.disabled?"":so()};
177
+ outline: none;
178
+ background-color: ${e=>e.disabled?e.theme.colors.neutral["000"]:e.theme.colors.brand[200]};
179
+ }
180
+ &:hover {
181
+ background-color: ${e=>(!e.disabled||!e.applyAriaDisabled||!e.readOnly)&&e.theme.colors.brand[200]};
182
+ }
183
+
184
+ &[aria-disabled='true'] {
185
+ ${io()}
186
+ }
187
+
188
+ ${Pt.L1}
189
+ `,Qe=(0,T.I)("span",{name:de,slot:Ge.MENU_ITEM_LABEL})`
190
+ padding: 8px 0;
191
+ font-size: 1rem;
192
+ `,et=(0,T.I)("span",{name:de,slot:Ge.MENU_ITEM_SECONDARY_LABEL})`
193
+ padding: 8px 0;
194
+ font-size: 0.8462rem;
195
+ font-style: italic;
196
+ color: ${e=>e.disabled?e.theme.colors.neutral[500]:e.theme.colors.brand[800]};
197
+ text-align: right;
198
+ `,zo=(0,T.I)("div",{name:de,slot:Ge.MENU_ITEM_ICON})`
199
+ width: 25px;
200
+ height: 24px;
201
+ display: grid;
202
+ grid-template-columns: min-content auto;
203
+ place-items: center;
204
+ `,Go=(0,T.I)("div",{name:de,slot:Ge.MENU_ITEM_ELLIPSIS_BUTTON})`
205
+ position: relative;
206
+ width: 100%;
207
+ height: 100%;
208
+ display: grid;
209
+ place-items: center;
210
+ background: transparent;
211
+ :active {
212
+ ${e=>e.disabled||e.applyAriaDisabled?"":so()}
213
+ }
214
+ `,Gi=(0,T.I)("div",{name:de,slot:Ge.MENU_ITEM_CONTENT})`
215
+ display: flex;
216
+ width: 100%;
217
+ margin: 8px 0px;
218
+ `,Ko=(0,T.I)("hr",{name:de,slot:Ge.MENU_ITEM_SEPARATOR})`
219
+ border: 0;
220
+ border-top: 1px solid #697489;
221
+ margin: 4px 0px;
222
+ padding: 0;
223
+ `,Yo=(0,T.I)("li",{name:de,slot:Ge.MENU_ITEM_SEPARATOR_WRAPPER})`
224
+ list-style: none;
225
+ padding: 0px 16px;
226
+
227
+ ${Pt.L1}
228
+ `,Xo=(0,T.I)("span",{name:de,slot:Ge.MENU_ITEM_GROUP_LABEL})`
229
+ font-size: 1rem;
230
+ color: neutral-500;
231
+ `,Ki=(0,T.I)("li",{name:de,slot:Ge.MENU_ITEM_SECTION_WRAPPER})`
232
+ list-style: none;
233
+ padding: 0px 16px;
234
+ min-height: 24px;
235
+ display: flex;
236
+ align-items: center;
237
+
238
+ ${Pt.L1}
239
+ `,qo=(0,T.I)("div",{name:de,slot:Ge.MENU_ITEM_VERTICAL_SEPARATOR})`
240
+ width: 1px;
241
+ height: 18px;
242
+ background-color: neutral-300;
243
+ `,Ne=(0,T.I)(Z.Ay,{name:de,slot:Ge.MENU_ITEM_CONTENT_WRAPPER})``,bt=(0,ce.throttle)(e=>{e.focus()},10,{leading:!1,trailing:!0}),Yi=({itemNode:e})=>{const{dsId:t,plainItem:n}=e,{label:o,secondaryLabel:s,leftDecoration:r,minWidth:l,disabled:c}=n,{focusRegion:u,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:p,handleFocusableMenuItemClick:m,handleFocusableMenuItemOnMouseEnter:h,handleFocusableMenuItemNativeFocusEvent:f}}=d.useContext(ze),g=d.useMemo(()=>{const v=r?["min-content","auto"]:["auto"];return s&&v.push("auto"),v},[r,s]),S=d.useRef(u);S.current=u;const y=u===ee.ITEM_BY_DSID(t),b=d.useCallback(v=>{v&&u===ee.ITEM_BY_DSID(t)&&bt(v)},[t,u]),x=d.useCallback(()=>{h(e)},[h,e]),O=d.useCallback(v=>{f(e,v)},[f,e]),I=`ds-menu-item-${`${t}`.replace(/\s/g,"")}`;return(0,a.jsx)(Me,{innerRef:b,onKeyDown:p,onClick:m,onMouseEnter:x,onFocus:O,as:"div",id:`${I}`,role:"menuitem",tabIndex:y?0:-1,"aria-disabled":c,applyAriaDisabled:c,children:(0,a.jsxs)(Ne,{cols:g,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:l??void 0,children:[r?(0,a.jsx)(r,{}):null,(0,a.jsx)(Qe,{children:o}),s!==void 0&&(0,a.jsx)(et,{disabled:c,children:s})]})})},Zo=["right-start","right-start","right","left-start","left-end","left"],Xi=({itemNode:e,FlyoutMenuCircularDepInject:t})=>{const{dsId:n,plainItem:o}=e,{label:s,secondaryLabel:r,leftDecoration:l,minWidth:c,disabled:u}=o,{focusRegion:p,openedSubItems:m,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:h,handleFocusableMenuItemClick:f,handleFocusableMenuItemOnMouseEnter:g,handleFocusableMenuItemNativeFocusEvent:S}}=d.useContext(ze),y=d.useMemo(()=>{const _=l?["min-content","auto"]:["auto"];return r&&_.push("auto"),_},[l,r]),b=d.useRef(p);b.current=p;const x=m.some(_=>_.dsId===n),O=p===ee.ITEM_BY_DSID(n),I=he({placement:Zo[0],placementOrderPreference:Zo,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:x}),{refs:{setReference:v}}=I,w=d.useCallback(_=>{v(_),_&&p===ee.ITEM_BY_DSID(n)&&bt(_)},[n,p,v]),C=d.useCallback(()=>{g(e)},[g,e]),E=d.useCallback(_=>{S(e,_)},[S,e]),R=`ds-menu-item-${`${n}`.replace(/\s/g,"")}`;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Me,{innerRef:w,onKeyDown:h,onClick:f,onMouseEnter:C,onFocus:E,as:"div",id:`${R}`,tabIndex:O?0:-1,role:"menuitem","aria-controls":x?e.plainChildren.map(_=>`ds-menu-item-${`${_.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-haspopup":"menu","aria-expanded":x,"aria-disabled":u,applyAriaDisabled:u,children:(0,a.jsxs)(Ne,{cols:y,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:c??void 0,children:[l?(0,a.jsx)(l,{}):null,(0,a.jsx)(Qe,{children:s}),r!==void 0&&(0,a.jsx)(et,{disabled:u,children:r})]})}),(0,a.jsx)(t,{isMenuOpen:x,floatingContext:I.context,floatingStyles:I.floatingStyles,setFloatingRef:I.refs.setFloating,itemNode:e})]})};var wn=P("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/createIcon.js"),Tn=(0,wn.w)({paths:["M7.5 12.875L4.625 10l-.875.875 3.75 3.75 8.75-8.75L15.375 5z"],height:20,width:20});const qi=d.memo(({isSelected:e})=>(0,a.jsx)(Z.Ay,{width:"16px",children:e?(0,a.jsx)(Tn,{size:"s",color:["brand-primary","600"]}):(0,a.jsx)("div",{})})),Zi=({itemNode:e})=>{const{dsId:t,plainItem:n}=e,{label:o,secondaryLabel:s,leftDecoration:r,minWidth:l,disabled:c}=n,{focusRegion:u,propsWithDefault:p,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:m,handleFocusableMenuItemClick:h,handleFocusableMenuItemOnMouseEnter:f,handleFocusableMenuItemNativeFocusEvent:g}}=d.useContext(ze),{selectedNodes:S}=p,y=d.useMemo(()=>{const E=r?["min-content","min-content","auto"]:["min-content","auto"];return s&&E.push("auto"),E},[r,s]),b=d.useRef(u);b.current=u;const x=u===ee.ITEM_BY_DSID(t),O=S.some(E=>E.dsId===t),I=d.useCallback(E=>{E&&u===ee.ITEM_BY_DSID(t)&&bt(E)},[t,u]),v=d.useCallback(()=>{f(e)},[f,e]),w=d.useCallback(E=>{g(e,E)},[g,e]),C=`ds-menu-item-${`${t}`.replace(/\s/g,"")}`;return(0,a.jsx)(Me,{innerRef:I,onKeyDown:m,onClick:h,onMouseEnter:v,onFocus:w,as:"div",id:`${C}`,tabIndex:x?0:-1,role:"menuitemcheckbox","aria-checked":O,"aria-disabled":c,applyAriaDisabled:c,children:(0,a.jsxs)(Ne,{cols:y,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:l??void 0,children:[(0,a.jsx)(qi,{isSelected:O}),r?(0,a.jsx)(r,{}):null,(0,a.jsx)(Qe,{children:o}),s!==void 0&&(0,a.jsx)(et,{disabled:c,children:s})]})})};var Ji=(0,wn.w)({paths:["M20.5 22h-1.9229c-.2763 0-.5-.2236-.5-.5s.2237-.5.5-.5H20.5a.501.501 0 00.5-.5v-16c0-.2759-.2246-.5-.5-.5h-2c-.2764 0-.5-.2236-.5-.5s.2236-.5.5-.5h2c.8271 0 1.5.6729 1.5 1.5v16c0 .8271-.6729 1.5-1.5 1.5zm-15.5767-.5c0-.2764-.2236-.5-.5-.5H2.5a.5007.5007 0 01-.5-.5v-16c0-.2759.2241-.5.5-.5h2c.2764 0 .5-.2236.5-.5S4.7764 3 4.5 3h-2C1.6729 3 1 3.6729 1 4.5v16c0 .8271.6729 1.5 1.5 1.5h1.9233c.2764 0 .5-.2236.5-.5zM16 12.5c0-.275-.225-.5-.5-.5h-7c-.275 0-.5.225-.5.5s.225.5.5.5h7c.275 0 .5-.225.5-.5z"],height:24,width:24}),ro=(0,wn.w)({paths:["M12 10.5a.503.503 0 0 0-.109-.313l-4-5a.5013.5013 0 0 0-.703-.078c-.214.173-.25.488-.078.703l3.75 4.688-3.75 4.688c-.172.218-.136.531.078.703.216.172.53.138.703-.078l4-5A.501.501 0 0 0 12 10.5z"],height:20,width:20});const En={PARENT_NOT_GROUP:new Error("Tree structure violation: parent node of single-selectionable node MUST ALWAYS be a single select group node"),GROUP_WITHOUT_PARENT:new Error("Tree structure violation: single select group node has no parent"),NODE_CANNOT_HAVE_CHILDREN:new Error("Tree structure violation: node cannot have children")},lo={TRYING_TO_FOCUS_NON_FOCUSABLE_NODE:new Error("Behavioural violation: trying to focus a non-focusable node"),TRYING_TO_OPEN_SUBMENU_OF_NODE_WITHOUT_SUBMENU:new Error("Behavioural violation: trying to open submenu of node without submenu")},Rt={FOCUSED_ITEM_NODE_NOT_SET:new Error("Internal error: focused item node not set"),FOCUSED_ITEM_HAS_NO_PARENT:new Error("Internal error: focused item has no parent node (is root?)"),NODE_WITHOUT_PARENT:new Error("Internal error: the node has no parent"),CALCULATING_MULTI_SELECTION_OF_NON_MULTI_SELECTION_NODE:new Error("Internal error: the node is not multi-selectable or wrongly recognized as non-multi-selectable")},sn=e=>{const t=[];return e.walkParents(n=>(n.dsId===e.dsId||mt(n)&&t.push(n),!0)),t.reverse()},Mn=e=>{const{parent:t}=e;if(!t)throw console.log("getFocusableSiblingsList > itemNode",e),Rt.NODE_WITHOUT_PARENT;if(!to(t))throw console.log("parentNode",t),console.log("itemNode",e),En.NODE_CANNOT_HAVE_CHILDREN;const n=[];let o=t;if(_t(t)){if(!t.parent)throw En.GROUP_WITHOUT_PARENT;o=t.parent}return o.children.forEach(s=>{Dt(s)&&n.push(s),_t(s)&&s.children.forEach(r=>{Dt(r)&&n.push(r)})}),n},Qi=e=>{const t=[];return e.walk(n=>(An(n)&&t.push(n.dsId),!0)),t},er=e=>{let t;const n=[],o=[];if(e.walkParents(s=>{if(s.dsId===e.dsId)return!0;const r=s;return _t(r)?(t=r,o.push(t),!0):(Wo(r)&&n.push(r),!0)}),!t)throw console.log("node:",e),console.log("parent:",e.parent),En.PARENT_NOT_GROUP;return{oldestGroup:t,selectionableParentsWithSubmenu:n,groupParents:o}},tr=e=>{const t=[],n=[];return e.walk(o=>{if(o.dsId===e.dsId)return!0;const s=o;return tn(s)&&(t.push(s),Ct(s)&&n.push(s)),!0}),{selectionableChilrens:t,multiSelectionableChilrens:n}},Pn=({itemNode:e,selectedNodes:t})=>{if(t.length===0)return!1;const{multiSelectionableChilrens:n}=tr(e),o=[];let s=!1;return t.forEach(r=>{r.dsId===e.dsId&&(s=!0),Ct(r)&&n.some(l=>l.dsId===r.dsId)&&o.push(r)}),s?n.length===0?!0:o.length===0?!1:o.length!==n.length?"mixed":!0:!1},nr=(e,t)=>{const n=e.find(c=>c.dsId===t.dsId)??!1;let o=n?e.filter(({dsId:c})=>c!==t.dsId):[...e,t];const s=[],r=[],l=[];return t.walkParents(c=>{if(c.dsId===t.dsId)return!0;const u=c;return xt(u)&&(o.find(m=>m.dsId===u.dsId)?(r.push(u),Pn({itemNode:u,selectedNodes:o})===!1&&l.push(u)):s.push(u)),!0}),n?o=o.filter(({dsId:c})=>!l.some(u=>u.dsId===c)):o.push(...s),o},or=(e,t)=>{const o=Pn({itemNode:t,selectedNodes:e})===!0;let s=o?e.filter(({dsId:u})=>u!==t.dsId):[...e,t];t.walk(u=>{const p=u;return o?s=s.filter(({dsId:m})=>m!==p.dsId):Ct(p)&&!s.find(m=>m.dsId===p.dsId)&&s.push(p),!0});const r=[],l=[],c=[];return t.walkParents(u=>{if(u.dsId===t.dsId)return!0;const p=u;return xt(p)&&(s.find(h=>h.dsId===p.dsId)?(l.push(p),Pn({itemNode:p,selectedNodes:s})===!1&&c.push(p)):r.push(p)),!0}),o?s=s.filter(({dsId:u})=>!c.some(p=>p.dsId===u)):s.push(...r),s},Jo=(e,t)=>{if(Qn(t))return nr(e,t);if(xt(t))return or(e,t);throw console.log(t),Rt.CALCULATING_MULTI_SELECTION_OF_NON_MULTI_SELECTION_NODE},Qo=["right-start","right-start","right","left-start","left-end","left"],sr=d.memo(({isSelected:e})=>(0,a.jsx)(Z.Ay,{width:"16px",children:e?e==="mixed"?(0,a.jsx)(Ji,{size:"s",color:["brand-primary","600"]}):(0,a.jsx)(Tn,{size:"s",color:["brand-primary","600"]}):(0,a.jsx)("div",{})})),ir=({itemNode:e,FlyoutMenuCircularDepInject:t})=>{const{dsId:n,plainItem:o}=e,{label:s,secondaryLabel:r,leftDecoration:l,minWidth:c,disabled:u}=o,{focusRegion:p,propsWithDefault:m,openedSubItems:h,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:f,handleFocusableMenuItemClick:g,handleFocusableMenuItemOnMouseEnter:S,handleFocusableMenuItemNativeFocusEvent:y}}=d.useContext(ze),{selectedNodes:b}=m,x=d.useMemo(()=>{const A=l?["min-content","min-content","auto"]:["min-content","auto"];return r&&A.push("auto"),A.push("min-content"),A},[l,r]),O=d.useRef(p);O.current=p;const I=h.some(A=>A.dsId===n),v=p===ee.ITEM_BY_DSID(n),w=d.useMemo(()=>Pn({itemNode:e,selectedNodes:b}),[e,b]),C=he({placement:Qo[0],placementOrderPreference:Qo,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:I}),{refs:{setReference:E}}=C,R=d.useCallback(A=>{E(A),A&&p===ee.ITEM_BY_DSID(n)&&bt(A)},[n,p,E]),_=d.useCallback(()=>{S(e)},[S,e]),B=d.useCallback(A=>{y(e,A)},[y,e]),L=`ds-menu-item-${`${n}`.replace(/\s/g,"")}`;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Me,{innerRef:R,onKeyDown:f,onClick:g,onMouseEnter:_,onFocus:B,as:"div",id:`${L}`,tabIndex:v?0:-1,role:"menuitemcheckbox","aria-checked":w,"aria-controls":I?e.plainChildren.map(A=>`ds-menu-item-${`${A.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-haspopup":"menu","aria-expanded":I,"aria-disabled":u,applyAriaDisabled:u,children:(0,a.jsxs)(Ne,{cols:x,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:c??void 0,children:[(0,a.jsx)(sr,{isSelected:w}),l?(0,a.jsx)(l,{}):null,(0,a.jsx)(Qe,{children:s}),r!==void 0&&(0,a.jsx)(et,{disabled:u,children:r}),(0,a.jsx)(ro,{})]})}),(0,a.jsx)(t,{isMenuOpen:I,floatingContext:C.context,floatingStyles:C.floatingStyles,setFloatingRef:C.refs.setFloating,itemNode:e})]})},rr=(0,T.I)("div")`
244
+ width: 8px;
245
+ height: 8px;
246
+ border-radius: 50%;
247
+ background-color: #005ea2;
248
+ `,lr=d.memo(({isSelected:e})=>(0,a.jsx)(Z.Ay,{width:"16px",children:e?(0,a.jsx)(rr,{}):(0,a.jsx)("div",{})})),ar=({itemNode:e})=>{const{dsId:t,plainItem:n}=e,{label:o,secondaryLabel:s,leftDecoration:r,minWidth:l,disabled:c}=n,{focusRegion:u,propsWithDefault:p,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:m,handleFocusableMenuItemClick:h,handleFocusableMenuItemOnMouseEnter:f,handleFocusableMenuItemNativeFocusEvent:g}}=d.useContext(ze),{selectedNodes:S}=p,y=d.useMemo(()=>{const E=r?["min-content","min-content","auto"]:["min-content","auto"];return s&&E.push("auto"),E},[r,s]),b=d.useRef(u);b.current=u;const x=u===ee.ITEM_BY_DSID(t),O=S.some(E=>E.dsId===t),I=d.useCallback(E=>{E&&u===ee.ITEM_BY_DSID(t)&&bt(E)},[t,u]),v=d.useCallback(()=>{f(e)},[f,e]),w=d.useCallback(E=>{g(e,E)},[g,e]),C=`ds-menu-item-${`${t}`.replace(/\s/g,"")}`;return(0,a.jsx)(Me,{innerRef:I,onKeyDown:m,onClick:h,onMouseEnter:v,onFocus:w,as:"div",id:`${C}`,tabIndex:x?0:-1,role:"menuitemradio","aria-checked":O,"aria-disabled":c,applyAriaDisabled:c,children:(0,a.jsxs)(Ne,{cols:y,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:l??void 0,children:[(0,a.jsx)(lr,{isSelected:O}),r?(0,a.jsx)(r,{}):null,(0,a.jsx)(Qe,{children:o}),s!==void 0&&(0,a.jsx)(et,{disabled:c,children:s})]})})},es=["right-start","right-start","right","left-start","left-end","left"],dr=(0,T.I)("div")`
249
+ width: 8px;
250
+ height: 8px;
251
+ border-radius: 50%;
252
+ background-color: #005ea2;
253
+ `,cr=d.memo(({isSelected:e})=>(0,a.jsx)(Z.Ay,{width:"16px",children:e?(0,a.jsx)(dr,{}):(0,a.jsx)("div",{})})),ur=({itemNode:e,FlyoutMenuCircularDepInject:t})=>{const{dsId:n,plainItem:o}=e,{label:s,secondaryLabel:r,leftDecoration:l,minWidth:c,disabled:u}=o,{focusRegion:p,propsWithDefault:m,openedSubItems:h,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:f,handleFocusableMenuItemClick:g,handleFocusableMenuItemOnMouseEnter:S,handleFocusableMenuItemNativeFocusEvent:y}}=d.useContext(ze),{selectedNodes:b}=m,x=d.useMemo(()=>{const A=l?["min-content","min-content","auto"]:["min-content","auto"];return r&&A.push("auto"),A.push("min-content"),A},[l,r]),O=d.useRef(p);O.current=p;const I=h.some(A=>A.dsId===n),v=p===ee.ITEM_BY_DSID(n),w=b.some(A=>A.dsId===n),C=he({placement:es[0],placementOrderPreference:es,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:I}),{refs:{setReference:E}}=C,R=d.useCallback(A=>{E(A),A&&p===ee.ITEM_BY_DSID(n)&&bt(A)},[n,p,E]),_=d.useCallback(()=>{S(e)},[S,e]),B=d.useCallback(A=>{y(e,A)},[y,e]),L=`ds-menu-item-${`${n}`.replace(/\s/g,"")}`;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Me,{innerRef:R,onKeyDown:f,onClick:g,onMouseEnter:_,onFocus:B,as:"div",id:`${L}`,tabIndex:v?0:-1,role:"menuitemradio","aria-checked":w,"aria-controls":I?e.plainChildren.map(A=>`ds-menu-item-${`${A.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-haspopup":"menu","aria-expanded":I,"aria-disabled":u,applyAriaDisabled:u,children:(0,a.jsxs)(Ne,{cols:x,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:c??void 0,children:[(0,a.jsx)(cr,{isSelected:w}),l?(0,a.jsx)(l,{}):null,(0,a.jsx)(Qe,{children:s}),r!==void 0&&(0,a.jsx)(et,{disabled:u,children:r}),(0,a.jsx)(ro,{})]})}),(0,a.jsx)(t,{isMenuOpen:I,floatingContext:C.context,floatingStyles:C.floatingStyles,setFloatingRef:C.refs.setFloating,itemNode:e})]})};var ts=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/th.js");const ns="DSSkeleton",pr={ROOT:"root"},mr=(0,Ve.keyframes)`
254
+ 0% {
255
+ opacity: 1;
256
+ }
257
+ 50% {
258
+ opacity: 0.4;
259
+ }
260
+ 100% {
261
+ opacity: 1;
262
+ }
263
+ `,hr=(0,we.AH)`
264
+ margin-top: 0;
265
+ margin-bottom: 0;
266
+ height: auto;
267
+ transform-origin: 0 55%;
268
+ transform: scale(1, 0.6);
269
+ border-radius: 4px/4%;
270
+ &:empty:before {
271
+ content: '\\00a0';
272
+ }
273
+ `,fr=(0,we.AH)`
274
+ border-radius: 50%;
275
+ `,br=(0,we.AH)`
276
+ & > * {
277
+ visibility: hidden;
278
+ }
279
+
280
+ ${({w:e})=>e?"":"width: fit-content;"}
281
+ ${({h:e})=>e?"":"height: auto;"}
282
+ `,gr=(0,T.I)("div",{name:ns,slot:pr.ROOT})`
283
+ display: block;
284
+ height: 20px;
285
+ background-color: ${ts.th.color("neutral-400")}2f;
286
+ ${e=>e.variant==="circular"?fr:e.variant==="text"?hr:""}
287
+ ${e=>e.withChildren?br:""}
288
+
289
+ animation: ${mr} 1.5s ease-in-out 0.5s infinite;
290
+ ${Pt.L1}
291
+ `,yr={variant:"text"},os={...re.P,...Ee.w,variant:i.A.oneOf(["circular","rectangular","text"]).description("Variant for the skeleton").defaultValue("text")},xr=e=>{const t=(0,J.b)(e,yr);(0,$.D)(e,os,ns);const n=(0,k.u)(t),o=(0,V.d)(t);return{propsWithDefault:t,globalAttributes:n,xstyledProps:o,withChildren:!!t.children}},kt=e=>{const{propsWithDefault:{variant:t},withChildren:n,xstyledProps:o,globalAttributes:s}=xr(e);return(0,a.jsx)(gr,{...s,...o,variant:t,withChildren:n,as:"span"})};kt.displayName="DSSkeleton";const Sr=(0,W.A)(kt);Sr.propTypes=os;const ss="16px",Ir=[ss,"1fr"],Ar=({itemNode:e})=>{const{dsId:t,plainItem:n}=e,{minWidth:o}=n,{focusRegion:s,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:r,handleFocusableMenuItemOnMouseEnter:l,handleFocusableMenuItemNativeFocusEvent:c}}=d.useContext(ze),u=d.useRef(s);u.current=s;const p=s===ee.ITEM_BY_DSID(t),m=d.useCallback(b=>{b&&s===ee.ITEM_BY_DSID(t)&&bt(b)},[t,s]),h=d.useCallback(()=>{l(e)},[l,e]),f=d.useCallback(b=>{c(e,b)},[c,e]),g=`ds-menu-item-${`${t}`.replace(/\s/g,"")}`,S=16+8,y=o?`calc(${o} - ${S})`:`${150-S}px`;return(0,a.jsx)(Me,{innerRef:m,onKeyDown:r,onMouseEnter:h,onFocus:f,as:"div",id:`${g}`,role:"menuitem",tabIndex:p?0:-1,children:(0,a.jsxs)(Ne,{cols:Ir,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:o??"150px",children:[(0,a.jsx)(kt,{variant:"rectangular",width:ss}),(0,a.jsx)(kt,{variant:"rectangular",width:y})]})})},is=["right-start","right-start","right","left-start","left-end","left"],Or=({itemNode:e,FlyoutMenuCircularDepInject:t})=>{const{dsId:n,plainItem:o}=e,{label:s,secondaryLabel:r,leftDecoration:l,minWidth:c,disabled:u}=o,{focusRegion:p,openedSubItems:m,menuItemEventsHandlers:{handleFocusableMenuItemKeyDown:h,handleFocusableMenuItemClick:f,handleFocusableMenuItemOnMouseEnter:g,handleFocusableMenuItemNativeFocusEvent:S}}=d.useContext(ze),y=d.useMemo(()=>{const _=l?["min-content","auto"]:["auto"];return r&&_.push("auto"),_.push("min-content"),_},[l,r]),b=d.useRef(p);b.current=p;const x=p===ee.ITEM_BY_DSID(n),O=m.some(_=>_.dsId===n),I=he({placement:is[0],placementOrderPreference:is,animationDuration:100,customOffset:[0,0],externallyControlledIsOpen:O}),{refs:{setReference:v}}=I,w=d.useCallback(_=>{v(_),_&&p===ee.ITEM_BY_DSID(n)&&bt(_)},[n,p,v]),C=d.useCallback(()=>{g(e)},[g,e]),E=d.useCallback(_=>{S(e,_)},[S,e]),R=`ds-menu-item-${`${n}`.replace(/\s/g,"")}`;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Me,{innerRef:w,onKeyDown:h,onClick:f,onMouseEnter:C,onFocus:E,as:"div",id:`${R}`,tabIndex:x?0:-1,role:"menuitem","aria-haspopup":"menu","aria-expanded":O,"aria-controls":O?e.plainChildren.map(_=>`ds-menu-item-${`${_.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-disabled":u,applyAriaDisabled:u,children:(0,a.jsxs)(Ne,{cols:y,minHeight:"16px",gutter:"xxs",alignItems:"center",minWidth:c??void 0,children:[l?(0,a.jsx)(l,{}):null,(0,a.jsx)(Qe,{children:s}),r!==void 0&&(0,a.jsx)(et,{disabled:u,children:r}),(0,a.jsx)(ro,{})]})}),(0,a.jsx)(t,{isMenuOpen:O,floatingContext:I.context,floatingStyles:I.floatingStyles,setFloatingRef:I.refs.setFloating,itemNode:e})]})},Nt="DSMenuitemrendererfactory",au={},Cn={ROOT:"root",GROUP_LABEL_WRAPPER:"group-label-wrapper",LABEL_WITH_LEFT_DEC_WRAPPER:"group-label-wrapper"},du=(0,Be.lD)(Nt,Cn),vr={},rs={...(0,Jt.Y)(Nt,Cn),...re.P,...Ee.w,itemNode:i.A.object.description("The polymorphic item to render").isRequired,ItemRenderer:i.A.func.description("The custom item renderer"),FlyoutMenuCircularDepInject:i.A.func.description("Flyout menu component, passed to the factory to avoid circular dependency")},wr=(e,t)=>{(0,$.D)(e,t,Nt)},Tr=e=>{const t=d.useMemo(()=>({...vr,...e}),[e]);wr(t,rs);const n=(0,V.d)(t),o=d.useMemo(()=>`ds-menu-item-renderer-factory-${(0,ie.L)(5)}`,[]);return d.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:o}),[t,n,o])},Er=(0,T.I)(Z.Ay,{name:Nt,slot:Cn.GROUP_LABEL_WRAPPER})`
292
+ padding: ${({theme:e})=>e.space.xxxs} ${({theme:e})=>e.space.xs};
293
+ `,Mr=(0,T.I)(Z.Ay,{name:Nt,slot:Cn.LABEL_WITH_LEFT_DEC_WRAPPER})`
294
+ padding-left: ${({theme:e})=>e.space.xxs};
295
+ `,Dn=e=>{const{propsWithDefault:t,instanceUid:n}=Tr(e),{itemNode:o,ItemRenderer:s,FlyoutMenuCircularDepInject:r}=t;if(s)return(0,a.jsx)(s,{itemNode:o});if(Pi(o))return(0,a.jsx)(Yo,{as:"div",role:"presentation",children:(0,a.jsx)(Ko,{})});if(jo(o))return(0,a.jsx)(Ar,{itemNode:o});if(Jn(o))return(0,a.jsx)(Yi,{itemNode:o});if(Qn(o))return(0,a.jsx)(Zi,{itemNode:o});if(Lo(o))return(0,a.jsx)(ar,{itemNode:o});if(On(o))return(0,a.jsx)(Or,{itemNode:o,FlyoutMenuCircularDepInject:r});if(In(o))return(0,a.jsx)(ur,{itemNode:o,FlyoutMenuCircularDepInject:r});if(xt(o))return(0,a.jsx)(ir,{itemNode:o,FlyoutMenuCircularDepInject:r});if(eo(o))return(0,a.jsx)(Xi,{itemNode:o,FlyoutMenuCircularDepInject:r});if(_t(o)){const{leftDecoration:l,label:c,minWidth:u}=o.plainItem,p=c?`label-${c.replace(/\s/g,"")}`:void 0;return(0,a.jsxs)("div",{role:"group","aria-labelledby":p,style:u?{minWidth:u}:{},children:[c?(0,a.jsxs)(Er,{cols:l?["min-content","1fr"]:["1fr"],children:[l?(0,a.jsx)(l,{}):null,(0,a.jsx)(Xo,{role:"presentation",id:p,children:l?(0,a.jsx)(Mr,{children:c}):c})]}):null,o.children.map(m=>(0,a.jsx)(Dn,{itemNode:m,FlyoutMenuCircularDepInject:r},`item-factory-${m.dsId}-${n}`))]})}throw new Error(`Invalid item type: ${JSON.stringify(o)}`)};Dn.displayName=Nt;const Pr=(0,W.A)(Dn);Pr.propTypes=rs;const jt="DSFlyoutmenu",uu={},_n={ROOT:"root",LIST_WRAPPER:"list-wrapper"},pu=(0,Be.lD)(jt,_n),Cr={...Sn},ls={itemNode:i.A.object.description("The parent menu node to render the menu from").isRequired,setFloatingRef:i.A.func.description("The function to set the ref of the floating element (from useFloatingContext.refs.setFloating)").isRequired,floatingStyles:i.A.object.description("The styles to apply to the floating element to correctly position it (from useFloatingContext.floatingStyles)").isRequired,floatingContext:i.A.object.description("The context object from useFloatingContext, used to allow FloatingWrapper correct functionality").isRequired,isMenuOpen:i.A.bool.description("Wheter or not this particular instance of the flyout menu is open").isRequired,...(0,Jt.Y)(jt,_n),...re.P,...qn,...Ee.w},Dr=(e,t)=>{(0,$.D)(e,t,jt)},_r=e=>{const t=d.useMemo(()=>({...Cr,...e}),[e]);Dr(t,ls);const n=(0,V.d)(t),o=d.useMemo(()=>`ds-flyout-menu-${(0,ie.L)(5)}`,[]);return d.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:o}),[t,n,o])},Rr=(0,T.I)(Z.Ay,{name:jt,slot:_n.ROOT})`
296
+ min-width: 1px;
297
+ background-color: white;
298
+ padding: ${({theme:e})=>e.space.xxxs} 0;
299
+ ${Pt.L1}
300
+ `,kr=(0,T.I)("div",{name:jt,slot:_n.LIST_WRAPPER})`
301
+ max-height: ${({$maxHeight:e})=>typeof e=="number"?`${e}px`:e};
302
+ overflow-y: auto;
303
+ padding: 0;
304
+ margin: 0;
305
+ `,Nr=()=>null,Rn=e=>{const{propsWithDefault:t,xstyledProps:n}=_r(e),{instanceUid:o,globalEventsHelpers:{mainMenuRef:s,handleSubmenusRefChange:r}}=d.useContext(ze),[l,c]=d.useState(!1),{setFloatingRef:u,floatingStyles:p,floatingContext:m,ItemRenderer:h,isMenuOpen:f,itemNode:g}=t,S=d.useCallback(x=>{if(nn(g)){s.current=x;return}r(x,g.dsId)},[r,g,s]),y=d.useCallback(()=>{c(!1)},[]),b=d.useCallback(()=>{c(!0)},[]);return(0,a.jsx)(Qt,{innerRef:u,floatingStyles:p,isOpen:f,context:m,onAnimationStartTriggered:y,onAnimationEnd:b,children:(0,a.jsx)(Rr,{getOwnerProps:()=>t,getOwnerPropsArguments:()=>({}),...n,children:(0,a.jsx)(kr,{role:"menu",innerRef:S,$maxHeight:g.plainItem.maxHeight??Sn.maxHeight,children:g.children.map(x=>(0,a.jsx)(Dn,{itemNode:x,ItemRenderer:h,FlyoutMenuCircularDepInject:l?Rn:Nr},`flyout-menu-item-${x.dsId}-${o}`))})})})};Rn.displayName=jt;const jr=(0,W.A)(Rn);jr.propTypes=ls;const Lr=(0,T.I)(Fi.l,{name:on,slot:oo.ROOT})``,ao=e=>{const t=d.useContext(ze),{isMenuOpen:n,propsWithDefault:{optionsTree:o}}=t,{propsWithDefault:{children:s,menuSpecificProps:r,...l},eventsHandlers:{handleOnClick:c,handleOnFocus:u,handleFocusIfTriggerIsFocusRegion:p,handleTriggerKeyDown:m},floatingContext:h}=zi(e,t);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Lr,{...l,onClick:c,onFocus:u,onKeyDown:m,innerRef:p,"aria-haspopup":"menu","aria-controls":n?o.plainChildren.map(f=>`ds-menu-item-${`${f.dsId}`.replace(/\s/g,"")}`).join(" "):void 0,"aria-expanded":n,children:s}),(0,a.jsx)(Rn,{...r,isMenuOpen:n,floatingContext:h.context,floatingStyles:h.floatingStyles,setFloatingRef:h.refs.setFloating,itemNode:o})]})};ao.displayName=on;const Wr=(0,W.A)(ao);Wr.propTypes=Bo;const Fr={onBlur:i.A.func.description("The function to be invoked when focus exits the wrapping container").signature("((e: React.FocusEvent, ...args: unknown[]) => void)").isRequired},as=({onBlur:e})=>(0,d.useCallback)((t,...n)=>{const{currentTarget:o}=t;requestAnimationFrame(()=>{o.contains(document.activeElement)||e(t,...n)})},[e]),ds=(0,W.A)(as);ds.propTypes=Fr,ds.returnType=i.A.func.description("On blur event callback for input").signature("((e: React.FocusEvent, ...args: unknown[]) => void)");const $r={},cs={buttonDOMNodeRef:i.A.object.description("The DOM node of the button as a mutable Refs (required for performance reasons)").isRequired,children:i.A.node.description("the menu trigger and the menu components").isRequired,optionsTree:i.A.object.description("DSTree node to build branches from").isRequired,focusableNodes:i.A.arrayOf(i.A.object).description("an array of nodes that can receive pseudoFocus, obtainable via ds-tree flatten + filter(isFocusable)").isRequired,selectedNodes:i.A.arrayOf(i.A.object).description("an array of tree-nodes that have to be marked as selected in the GUI, required if the menu has selectionable items"),...No},Vr=({propsWithDefault:e})=>{const{onActivateItem:t,onItemSelected:n,selectedNodes:o,optionsTree:s}=e;(0,d.useEffect)(()=>{const r=s.flatten(),l={},c={};let u=!1,p=!1,m=!1;if(r.forEach(h=>{const{dsId:f}=h;Array.isArray(l[f])?(l[f].push(h),m=!0,c[f]=l[f]):l[f]=[h],Jn(h)&&(u=!0),tn(h)&&(p=!0)}),m)throw console.log("duplicatedIdsNodes",c),new Error(`DSMenuButton:
306
+ The following dsId are repeated:
307
+ ${Object.keys(c).join(`
308
+ `)}
309
+
310
+ The dsId must be unique.`);if(u&&!t)throw new Error(`DSMenuButton:
311
+ Some items are activable, but onActivateItem is not provided.
312
+
313
+ You must provide onActivateItem to handle activation.`);if(p&&(!n||!o))throw new Error(`DSMenuButton:
314
+ Some items are selectionable, but onItemSelected or selectedNodes are not provided.
315
+
316
+ You must provide onItemSelected and selectedNodes to handle selection.`)},[t,n,o,s])},Br=()=>{const e=d.useRef(!1),[t,n]=d.useState(""),o=d.useRef(""),s=d.useRef(!1),r=d.useRef(null),l=d.useCallback((0,ce.throttle)((y,b,x)=>(n(y),o.current=y,r.current=b,e.current=x?.shouldFocusImmediately??!1,b),50,{leading:!0,trailing:!0}),[]),c=d.useCallback((y={shouldFocusImmediately:!1})=>l(ee.TRIGGER,null,y),[l]),u=d.useCallback(y=>{const b=ee.ITEM_BY_DSID(y.dsId);l(b,y)},[l]),p=d.useCallback(()=>l(ee.RESET,null),[l]),m=d.useCallback(y=>{if(!to(y))throw console.log("focus first child item > itemNode",y),En.NODE_CANNOT_HAVE_CHILDREN;if(y.children.length===0)throw console.log(y),new Error("No children found in the item node");const b=Mn(y.children[0]);if(b.length===0)throw console.log("focus first child item > itemNode",y),new Error("No focusable nodes found in the children of the item node");const x=b[0];return l(ee.ITEM_BY_DSID(x.dsId),x)},[l]),h=d.useCallback(y=>{if(!to(y))throw console.log("focus last child item > itemNode",y),new Error("Item node is not allowed to have children");if(y.children.length===0)throw console.log(y),new Error("No children found in the item node");const b=Mn(y.children[0]);if(b.length===0)throw console.log("focus last child item > itemNode",y),new Error("No focusable nodes found in the children of the item node");return l(ee.ITEM_BY_DSID(b[b.length-1].dsId),b[b.length-1])},[l]),f=d.useCallback(y=>{const b=Mn(y),x=b.findIndex(v=>v.dsId===y.dsId),O=x+1<b.length?x+1:0,I=b[O];return l(ee.ITEM_BY_DSID(I.dsId),I)},[l]),g=d.useCallback(y=>{const b=Mn(y),x=b.findIndex(v=>v.dsId===y.dsId),O=x-1>=0?x-1:b.length-1,I=b[O];return l(ee.ITEM_BY_DSID(I.dsId),I)},[l]),S=d.useCallback(y=>{const{parent:b}=y,x=b;if(!x)throw console.log("focus parent item",{itemNode:y,parentNode:x}),new Error("No parent node found for the item node");let O=x;if(_t(x)){const w=x.parent;if(!Dt(w)&&!nn(w))throw console.log("focus parent item",{itemNode:y,parentNode:x,groupParent:w}),new Error("No focusable parent node found for the item node");O=w}const I=nn(O)?null:O,v=I;return v?u(v):c(),I},[u,c]);return d.useMemo(()=>({preventBlurReset:s,focusRegion:t,focusedElementItemNode:r,shouldFocusImmediately:e,trackFocusTrigger:c,trackFocusNode:u,trackFocusRegionReset:p,trackFocusFirstChildItem:m,trackFocusLastChildItem:h,trackFocusNextItem:f,trackFocusPreviousItem:g,trackFocusParentItem:S}),[t,m,h,f,u,S,g,p,c])},Hr=({menuOpenStatus:e,handleChangeOpenedSubItems:t,propsWithDefault:n})=>{const{onOpinionatedClose:o,isMenuOpen:s}=e,{buttonDOMNodeRef:r}=n,l=d.useRef(null),c=d.useRef({}),u=d.useCallback((p,m)=>{p?c.current[m]=p:delete c.current[m]},[]);return d.useEffect(()=>{const p=h=>{t([],{itemNode:null,event:h}),o({skipFocus:!0})},m=h=>{!s||r.current===h.target||l.current?.contains(h.target)||Object.values(c.current).filter(Boolean).some(y=>y.contains(h.target))||(t([],{itemNode:null,event:h}),o({skipFocus:!0}))};return window.addEventListener("blur",p),document.addEventListener("mousedown",m),document.addEventListener("touchstart",m),()=>{window.removeEventListener("blur",p),document.removeEventListener("mousedown",m),document.removeEventListener("touchstart",m)}},[r,t,s,o]),d.useMemo(()=>({mainMenuRef:l,submenusRefs:c,handleSubmenusRefChange:u}),[u])},us=(e,t)=>{const{oldestGroup:n,selectionableParentsWithSubmenu:o}=er(t),s=Qi(n),r=e.filter(l=>!s.includes(l.plainItem.dsId));return r.push(...o),r.push(t),r},Ur=({propsWithDefault:e,focusTrackers:t,menuOpenStatus:n,handleChangeOpenedSubItems:o})=>{const{onItemSelected:s,onActivateItem:r,selectedNodes:l}=e,{onOpinionatedClose:c}=n,{trackFocusFirstChildItem:u,trackFocusLastChildItem:p,trackFocusNextItem:m,trackFocusPreviousItem:h,trackFocusParentItem:f,trackFocusNode:g,focusedElementItemNode:S,trackFocusTrigger:y}=t,b=d.useCallback(({itemNode:A,event:D})=>{if(!mt(A))throw console.log("openSubmenu -> itemNode:",A),lo.TRYING_TO_OPEN_SUBMENU_OF_NODE_WITHOUT_SUBMENU;const M=sn(A),j={itemNode:A,event:D},F=[...M,A];o(F,j)},[o]),x=d.useCallback(({itemNode:A,event:D})=>{const M=sn(A),j={itemNode:A,event:D},F=[...M];o(F,j)},[o]),O=d.useCallback(({itemNode:A,event:D})=>{const M={itemNode:A,event:D},j=sn(A);return j.length===0?(o([],M),{currentSubmenuWasMainMenu:!0}):(j.pop(),o(j,M),{currentSubmenuWasMainMenu:!1})},[o]),I=d.useCallback(({pseudoFocusedItemNode:A,event:D})=>{if(On(A))b({itemNode:A,event:D}),u(A);else{if(Ct(A)){const F=Jo(l,A);s(F,{itemNode:A,event:D})}else if(An(A)){const F=us(l,A);s(F,{itemNode:A,event:D})}else r(A,{itemNode:A,event:D});o([],{itemNode:A,event:D}),c()}},[u,b,o,c,l,s,r]),v=d.useCallback(({pseudoFocusedItemNode:A,event:D})=>{if(On(A)){b({itemNode:A,event:D}),u(A);return}if(Ct(A)){const F=Jo(l,A);s(F,{itemNode:A,event:D});return}if(An(A)){const F=us(l,A);s(F,{itemNode:A,event:D});return}r?.(A,{itemNode:A,event:D}),o([],{itemNode:A,event:D}),c()},[r,o,c,u,b,l,s]),w=d.useCallback(({pseudoFocusedItemNode:A,event:D})=>{if(mt(A)){b({itemNode:A,event:D}),u(A);return}},[b,u]),C=d.useCallback(({pseudoFocusedItemNode:A,event:D})=>{const{currentSubmenuWasMainMenu:M}=O({itemNode:A,event:D});M||f(A)},[O,f]),E=d.useCallback(A=>{const D=S.current;if(D===null)throw Rt.FOCUSED_ITEM_NODE_NOT_SET;if(D.plainItem.onKeyDown&&D.plainItem.onKeyDown(A),A.key==="Tab"){y({shouldFocusImmediately:!0}),c();return}if(A.key==="ArrowDown"){A?.preventDefault(),m(D);return}if(A.key==="ArrowUp"){A?.preventDefault(),h(D);return}if(A.key==="ArrowLeft"){A?.preventDefault(),C({pseudoFocusedItemNode:D,event:A});return}if(A.key==="Home"){if(!D.parent)throw console.log("handleFocusableMenuItemKeyDown -> Home > focused item node",D),Rt.FOCUSED_ITEM_HAS_NO_PARENT;u(D.parent);return}if(A.key==="End"){if(!D.parent)throw console.log("handleFocusableMenuItemKeyDown -> Home > focused item node",D),Rt.FOCUSED_ITEM_HAS_NO_PARENT;p(D.parent);return}if(A.key==="Escape"){if(A.altKey&&mt(D)){x({itemNode:D,event:A});return}const{currentSubmenuWasMainMenu:M}=O({itemNode:D,event:A});f(D),M&&c();return}if(!D.plainItem.disabled){if(A.key==="Enter"){I({pseudoFocusedItemNode:D,event:A});return}if(A.key===" "){A?.preventDefault(),v({pseudoFocusedItemNode:D,event:A});return}if(A.key==="ArrowRight"){A?.preventDefault(),w({pseudoFocusedItemNode:D,event:A});return}}},[S,y,m,h,C,u,p,O,f,x,c,I,v,w]),R=d.useCallback(A=>{const D=S.current;if(D===null)throw Rt.FOCUSED_ITEM_NODE_NOT_SET;if(D.plainItem.disabled)return;const M=D.parent;if(nn(M))o([],{itemNode:D,event:A});else{const j=[...sn(D)];mt(D)&&j.push(D),o(j,{itemNode:D,event:A})}v({pseudoFocusedItemNode:D,event:A}),D.plainItem.onClick&&D.plainItem.onClick(A)},[S,v,o]),_=d.useCallback((A,D)=>{if(!Dt(A))throw console.log("handleFocusableMenuItemOnMouseEnter > itemNode:",A),lo.TRYING_TO_FOCUS_NON_FOCUSABLE_NODE;if(g(A),!mt(A)){const M=sn(A),j={itemNode:A,event:D},F=[...M];o(F,j);return}A.plainItem.disabled||b({itemNode:A,event:D})},[o,b,g]),B=d.useCallback(A=>{if(!Dt(A))throw console.log("handleFocusableMenuItemOnMouseEnter > itemNode:",A),lo.TRYING_TO_FOCUS_NON_FOCUSABLE_NODE;g(A)},[g]),L=d.useCallback((A,D)=>{_(A,D)},[_]);return d.useMemo(()=>({handleFocusableMenuItemKeyDown:E,handleFocusableMenuItemClick:R,handleFocusableMenuItemOnMouseEnter:B,handleFocusableMenuItemNativeFocusEvent:L}),[R,E,L,B])},zr=({propsWithDefault:e,focusTrackers:t})=>{const{trackFocusTrigger:n,trackFocusFirstChildItem:o,trackFocusLastChildItem:s,preventBlurReset:r}=t,{onClose:l,onOpen:c,optionsTree:u}=e,[p,m]=d.useState(!1),h=d.useCallback(({skipFocus:g}={skipFocus:!1})=>{m(!1),l&&l(),g||n(),r.current=!1},[l,r,n]),f=d.useCallback(g=>{const{focusLastChild:S=!1}=g||{};m(!0),c&&c();const y=u;S?s(y):o(y),r.current=!0},[c,u,r,o,s]);return d.useMemo(()=>({isMenuOpen:p,onOpinionatedClose:h,onOpinionatedOpen:f}),[p,h,f])},Gr=(e,t)=>{(0,$.D)(e,t,Ho)},Kr=e=>{const t=d.useMemo(()=>({...$r,...e}),[e]);Gr(t,cs),Vr({propsWithDefault:t});const{onDisplayedSubmenuChange:n}=t,o=d.useMemo(()=>`ds-menu-behavioural-context-provider-${(0,ie.L)(5)}`,[]),[s,r]=d.useState([]),l=d.useCallback((h,f)=>{r(h),n?.(h,f)},[n]),c=Br(),u=zr({propsWithDefault:t,focusTrackers:c}),p=Ur({propsWithDefault:t,focusTrackers:c,menuOpenStatus:u,handleChangeOpenedSubItems:l}),m=Hr({menuOpenStatus:u,handleChangeOpenedSubItems:l,propsWithDefault:t});return d.useMemo(()=>({propsWithDefault:t,instanceUid:o,...c,...u,menuItemEventsHandlers:p,openedSubItems:s,handleChangeOpenedSubItems:l,globalEventsHelpers:m}),[t,o,c,u,p,s,l,m])},co=e=>{const t=Kr(e),{trackFocusRegionReset:n,propsWithDefault:{children:o},preventBlurReset:s}=t,r=d.useMemo(()=>({onBlur:()=>{s.current||(n(),setTimeout(()=>{s.current=!1}))}}),[s,n]),l=as(r);return(0,a.jsx)(ze.Provider,{value:t,children:(0,a.jsx)("div",{onBlur:l,children:o})})};co.displayName=Ho;const Yr=(0,W.A)(co);Yr.propTypes=cs;const Xr=(0,T.I)(Z.Ay,{name:en,slot:Xn.ROOT})``,uo=e=>{const{propsWithDefault:t,opinionatedButtonProps:n,menuBehaviouralLayerProps:o}=Wi(e);return(0,a.jsx)(Xr,{"data-testid":Ti.ROOT,getOwnerProps:()=>t,getOwnerPropsArguments:()=>({}),children:(0,a.jsx)(co,{...o,children:(0,a.jsx)(ao,{...n,children:n.children})})})};uo.displayName=en;const qr=(0,W.A)(uo);qr.propTypes=Ei;const St=({color:e,size:t=1,zIndex:n=0,borderRadius:o="12px"})=>(0,we.AH)`
317
+ :after {
318
+ content: ' ';
319
+ position: absolute;
320
+ top: 0px;
321
+ left: 0px;
322
+ right: 0px;
323
+ bottom: 0px;
324
+ border: ${t}px solid
325
+ ${({disabled:s,applyAriaDisabled:r,readOnly:l,theme:c})=>s||r||l?c.colors.neutral[400]:e};
326
+ border-top-left-radius: ${o};
327
+ border-top-right-radius: ${o};
328
+ border-bottom-left-radius: ${o};
329
+ border-bottom-right-radius: ${o};
330
+ pointer-events: none;
331
+ z-index: ${n||""};
332
+ }
333
+ `,It=(0,we.AH)`
334
+ height: ${e=>e?.pillSize==="m"?"1.846rem":"1.3846rem"};
335
+ @media (max-width: ${e=>e.theme.breakpoints?.small}) {
336
+ height: ${e=>e?.pillSize==="m"?"1.5rem":"1.125rem"};
337
+ }
338
+ position: relative;
339
+
340
+ width: fit-content;
341
+
342
+ background-color: ${({theme:e,disabled:t,applyAriaDisabled:n,readOnly:o})=>t?e.colors.neutral["080"]:n||o?e.colors.neutral["050"]:e.colors.brand[250]};
343
+
344
+ outline: none;
345
+
346
+ white-space: nowrap;
347
+
348
+ padding: 0px 12px 0 12px;
349
+ border-radius: 12px;
350
+
351
+ font-size: 1rem;
352
+ line-height: 1;
353
+ user-select: ${({disabled:e,applyAriaDisabled:t})=>e||t?"none":"auto"};
354
+ cursor: ${({disabled:e,applyAriaDisabled:t})=>e||t?"not-allowed":"default"};
355
+ color: ${({theme:e,disabled:t,applyAriaDisabled:n,readOnly:o})=>t||n||o?"#616b7f":e.colors.brand[800]};
356
+ `,Zr=(0,T.I)(Z.Ay)`
357
+ ${It}
358
+
359
+ font-weight: ${e=>e.theme.fontWeights.semibold};
360
+ padding-left: ${e=>e.hasIcon||e.applyAriaDisabled||e.readOnly?"0px !important":"12px"};
361
+ `,Jr=(0,T.I)(Z.Ay)`
362
+ ${It}
363
+
364
+ font-weight: ${e=>e.theme.fontWeights.regular};
365
+ padding-left: ${e=>e.hasIcon||e.applyAriaDisabled?"0px !important":"12px"};
366
+ `,Qr=(0,T.I)(Z.Ay)`
367
+ ${It}
368
+
369
+ font-weight: ${e=>e.theme.fontWeights.regular};
370
+ padding-left: ${e=>e.hasIcon||e.disabled?"0px !important":"12px"};
371
+ `,el=(0,T.I)(Z.Ay)`
372
+ ${It}
373
+
374
+ background: ${e=>e.theme.colors.neutral["000"]};
375
+ padding: 0;
376
+
377
+ ${({theme:e,hasError:t})=>St(t?{color:e.colors.danger[900]}:{color:e.colors.brand[500]})}
378
+
379
+ :focus-within {
380
+ ${e=>e.inputHasFocus?St({color:e.theme.colors.brand[700],size:2}):""}
381
+ }
382
+
383
+ :active {
384
+ ${e=>e.inputHasFocus?St({color:e.theme.colors.brand[500]}):""}
385
+ }
386
+
387
+ & .em-ds-input {
388
+ outline: none !important;
389
+ border: none !important;
390
+ box-shadow: none !important;
391
+ border-radius: 0 !important;
392
+ height: 100%;
393
+ background: transparent;
394
+ width: ${e=>`${e.inputWidth+(e.value===""?24:0)}px`};
395
+ padding: 0;
396
+ margin: 0 0 0 8px;
397
+ }
398
+
399
+ & .em-ds-input__tooltip-ref {
400
+ height: 100%;
401
+ }
402
+ `,ps=(0,T.I)(Z.Ay)`
403
+ ${It}
404
+ font-weight: ${e=>e.theme.fontWeights.semibold};
405
+
406
+ padding: 0 0 0 12px;
407
+ `,tl=(0,T.I)(Z.Ay)`
408
+ ${It}
409
+ font-weight: ${e=>e.theme.fontWeights.semibold};
410
+ padding-right: ${e=>e.hasIconRight?"0 !important":"12px"};
411
+ padding-left: ${e=>e.hasIconLeft?"0 !important":"12px"};
412
+ `,nl=(0,T.I)(Z.Ay)`
413
+ ${It}
414
+ font-weight: ${e=>e.theme.fontWeights.regular};
415
+ padding: 0 0 0 12px;
416
+ padding: ${({disabled:e,applyAriaDisabled:t,readOnly:n})=>e||t||n?"0 12px 0 12px":"0 0 0 12px"};
417
+ line-height: 1.2307rem;
418
+ @media (max-width: ${e=>e.theme.breakpoints?.small}) {
419
+ line-height: 1rem;
420
+ }
421
+ `,ol=(0,T.I)(Z.Ay)`
422
+ width: ${({width:e})=>e};
423
+
424
+ // Pill edges
425
+ & .ds-pill-wrapper {
426
+ &:not(:first-of-type) {
427
+ &,
428
+ :after,
429
+ :before,
430
+ .ds-pill-tooltip-value:after {
431
+ border-top-left-radius: 0px;
432
+ border-bottom-left-radius: 0px;
433
+ }
434
+ }
435
+ &:not(:last-of-type) {
436
+ &,
437
+ :after,
438
+ :before,
439
+ .ds-pill-tooltip-value:after {
440
+ border-top-right-radius: 0px;
441
+ border-bottom-right-radius: 0px;
442
+ }
443
+ }
444
+ }
445
+
446
+ // Pill paddings to the left / right
447
+ & .ds-pill-wrapper-label,
448
+ & .ds-pill-wrapper-value,
449
+ & .ds-pill-wrapper-readonly {
450
+ &:not(:first-of-type) {
451
+ padding-left: 8px;
452
+ }
453
+ &:not(:last-of-type) {
454
+ padding-right: 8px;
455
+ }
456
+ }
457
+
458
+ & .ds-pill-wrapper-removable:not(:first-of-type) {
459
+ padding-left: 8px;
460
+ }
461
+
462
+ & .ds-pill-wrapper-dropdown:not(:first-of-type) {
463
+ padding-left: 8px;
464
+ }
465
+
466
+ & .ds-pill-wrapper {
467
+ :not(:first-of-type) {
468
+ .ds-pill-button-left {
469
+ border-radius: 0px;
470
+ }
471
+ .ds-pill-button-only {
472
+ border-top-left-radius: 0px;
473
+ border-bottom-left-radius: 0px;
474
+ }
475
+ }
476
+ :not(:last-of-type) {
477
+ .ds-pill-button-right {
478
+ border-radius: 0px;
479
+ }
480
+ .ds-pill-button-only {
481
+ border-top-right-radius: 0px;
482
+ border-bottom-right-radius: 0px;
483
+ }
484
+ }
485
+ }
486
+ `,sl=T.I.span`
487
+ outline: none;
488
+ :focus {
489
+ ${e=>St({color:e.theme.colors.brand[700],size:2,zIndex:3})}
490
+ }
491
+ `,il=(0,T.I)(Ro.e)`
492
+ display: grid;
493
+ place-items: center;
494
+
495
+ position: relative;
496
+
497
+ padding: 0;
498
+ ${({width:e,height:t,theme:n})=>String(e).includes("px")&&String(t).includes("px")?`
499
+ width: ${parseInt(e,10)/13}rem;
500
+ height: ${parseInt(t,10)/13}rem;
501
+
502
+ @media (max-width: ${n.breakpoints?.small}) {
503
+ width: ${parseInt(e,10)/16}rem;
504
+ height: ${parseInt(t,10)/16}rem;
505
+ }`:`
506
+ width: ${e};
507
+ height: ${t};
508
+ `}
509
+
510
+ border-radius: 12px;
511
+
512
+ :focus {
513
+ ${e=>St({color:e.theme.colors.brand[700],size:2,zIndex:1,borderRadius:"inherit"})}
514
+ }
515
+
516
+ cursor: pointer;
517
+ `,rl=(0,T.I)(uo)`
518
+ display: grid;
519
+ place-items: center;
520
+
521
+ position: relative;
522
+
523
+ padding: 0;
524
+ ${({width:e,height:t,theme:n})=>String(e).includes("px")&&String(t).includes("px")?`
525
+ width: ${parseInt(e,10)/13}rem;
526
+ height: ${parseInt(t,10)/13}rem;
527
+
528
+ @media (max-width: ${n.breakpoints?.small}) {
529
+ width: ${parseInt(e,10)/16}rem;
530
+ height: ${parseInt(t,10)/16}rem;
531
+ }`:`
532
+ width: ${e};
533
+ height: ${t};
534
+ `}
535
+
536
+ border-radius: 12px;
537
+
538
+ :focus {
539
+ ${e=>St({color:e.theme.colors.brand[700],size:2,zIndex:1,borderRadius:"inherit"})}
540
+ }
541
+
542
+ cursor: pointer;
543
+ `,ms="DSPill",hs="DSPillbutton",fs="DSPillgroup";var ll=P("./node_modules/.pnpm/@elliemae+ds-legacy-common@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-common/dist/esm/Input/DSInput.js");const al={innerRef:()=>null,disabled:!1,applyAriaDisabled:!1,readOnly:!1,applyTooltipOverflowWrap:!1,hasError:!1,ariaLabel:"",size:"m",labelTruncated:!0,tooltipValue:"",iconLeft:null,IconLeft:null,IconRight:null,iconRight:null,onRemove:()=>null,inputPlaceholder:"",onInputChange:()=>null,onInputClear:()=>null,inputWidth:72,inputRender:ll._C,dropdownProps:{options:[],isSkeleton:!1,isOpened:!1},onDropdownClick:()=>null,tabIndex:0},po={type:"right",width:"100%",height:"100%"},dl={width:"fit-content",innerRef:()=>null},cl=i.A.oneOf(["label","labelOnly","value","input","dropdown","removable","readonly","menubutton"]),{children:fu,...ul}=Zn,pl={...re.P,...Ee.w,label:i.A.string.description("Label to show in the pill").isRequired,type:cl.description("The type of pill that you want to render").isRequired,innerRef:i.A.oneOfType([i.A.object,i.A.func]).description("Reference to the focuseable internal element of each pill (remove icons, inputs, dropdown, etc.)").defaultValue(()=>null),size:i.A.oneOf(["s","m"]).description("Vertical pill size").defaultValue("m"),ariaLabel:i.A.string.description("Aria label for the pill. If not provided we will use the label").defaultValue(""),labelTruncated:i.A.bool.description("Whether to truncate the pills label").defaultValue(!0),tooltipValue:i.A.string.description("String to show as a tooltip in the value pill").defaultValue(""),iconLeft:i.A.node.description("A component to show int the left of a readonly pill").defaultValue(null).deprecated({version:"4.x",message:"Use IconLeft instead for accessibility reasons"}),IconLeft:i.A.node.description("A component to show int the left of a label pill").defaultValue(null),IconRight:i.A.node.description("A component to show in the right of a readonly pill").defaultValue(null),iconRight:i.A.node.description("A component to show in the right of a readonly pill").defaultValue(null).deprecated({version:"4.x",message:"Use IconRight instead for accessibility reasons"}),onRemove:i.A.func.description("Callback triggered when removing a pill with the close icon").defaultValue(()=>null),inputPlaceholder:i.A.string.description("Placeholder for the input pill").defaultValue(""),onInputChange:i.A.func.description("Callback triggered when user provides input to the input pill").defaultValue(()=>null),onInputClear:i.A.func.description("Callback triggered when the user clears an input pill").defaultValue(()=>null),inputWidth:i.A.number.description("Width in pixels for the input tag in the input pill").defaultValue(150),inputId:i.A.string.description("ID for the input pill").defaultValue(void 0),disabled:i.A.bool.description("Whether the pill should be disabled. Only for value and removable pill").defaultValue(!1),applyAriaDisabled:i.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1),readOnly:i.A.bool.description("Whether the Pill is in readonly state or not.").defaultValue(!1),applyTooltipOverflowWrap:i.A.bool.description("when a tooltip is present, the tooltip text may be too long to fit in the pill. If true, the tooltip will wrap to the next line using overflow-wrap").defaultValue(!1),hasError:i.A.bool.description("Whether the pill should be in an error state. Only for input pill").defaultValue(!1),inputRender:i.A.func.description("Custom render function for the input pill").defaultValue("DSInput"),menuButtonProps:i.A.shape(ul).description("Props for the menu button pill").isRequiredIf(e=>e.type==="menubutton"),trailingComma:i.A.bool.description("Whether the disabled/aria-disabled/readonly pill should include a trailing comma or not"),dropdownProps:i.A.object.description("Properties that will be used for the dropdown-menu. For accessibility reasons this is deprecated in favour of menuButtonProps").defaultValue({}).deprecated({version:"25.3"}),onDropdownClick:i.A.func.description("Callback when dropdown button is clicked or pressed. For accessibility reasons this is deprecated in favour of menuButtonProps").defaultValue(()=>null).deprecated({version:"25.3"})},ml={...re.P,...Ee.w,type:i.A.oneOf(["only","left","right"]).description("The position in which this button will be placed. Only used for css styling internally").defaultValue("right"),width:i.A.string.description("Width of the button").defaultValue("100%"),height:i.A.string.description("Height of the button").defaultValue("100%"),innerRef:i.A.oneOfType([i.A.object,i.A.func]).description("Inner ref to button component."),"data-testid":i.A.string.description("root element data-testid"),applyAriaDisabled:i.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},bs={...re.P,width:i.A.string.description("Width of the group").defaultValue("fit-content"),innerRef:i.A.oneOfType([i.A.object,i.A.func]).description("Reference to the pill group wrapper").defaultValue(()=>null),children:i.A.node.description("Pills to render in the group").isRequired},gs=pl,ys=ml,bu=null,xs=(0,d.createContext)({onKeyboardRemove:()=>null,onKeyboardNavigation:()=>null}),mo=e=>{const t=(0,J.b)(e,dl);(0,$.D)(t,bs,fs);const n=(0,k.u)(t),o=(0,d.useMemo)(()=>`ds-pill-group-${(0,ie.L)()}`,[]),{children:s,width:r,innerRef:l}=t,c=(0,d.useCallback)(m=>{const h=[...document.querySelectorAll(`#${o} .ds-pill-focus-point`)],f=h.findIndex(g=>g.id===m);f>0?h[f-1].focus():f+1<h.length&&h[f+1].focus()},[o]),u=(0,d.useCallback)((m,h,f)=>{const g=[...document.querySelectorAll(`#${o} .ds-pill-focus-point`)],S=g.findIndex(y=>y.id===m);S>=0&&g[S+h]&&(f.stopPropagation(),g[S+h].focus())},[o]),p=(0,d.useMemo)(()=>({onKeyboardRemove:c,onKeyboardNavigation:u}),[c,u]);return(0,a.jsx)(xs.Provider,{value:p,children:(0,a.jsx)(ol,{...n,width:r,id:o,cols:d.Children.map(s,()=>"auto"),gutter:"2px",innerRef:l,children:s})})};mo.displayName=fs;const hl=(0,W.A)(mo);hl.propTypes=bs;const fl=i.A.shape({dsId:i.A.string.isRequired,type:i.A.oneOf(["action"]),label:i.A.string.isRequired,secondaryLabel:i.A.string,disabled:i.A.bool,render:i.A.func}),bl=i.A.shape({dsId:i.A.string.isRequired,type:i.A.oneOf(["single"]),label:i.A.string.isRequired,secondaryLabel:i.A.string,value:i.A.any.isRequired,disabled:i.A.bool,render:i.A.func}),gl=i.A.shape({dsId:i.A.string.isRequired,type:i.A.oneOf(["checkbox"]),label:i.A.string.isRequired,secondaryLabel:i.A.string,value:i.A.any.isRequired,disabled:i.A.bool,render:i.A.func}),yl=i.A.shape({dsId:i.A.string.isRequired,type:i.A.oneOf(["submenu"]),label:i.A.string.isRequired,secondaryLabel:i.A.string,value:i.A.any.isRequired,disabled:i.A.bool,rightAddon:i.A.oneOf(["chevron","ellipsis"]),options:i.A.array,minWidth:i.A.any,maxHeight:i.A.any,render:i.A.func}),xl=i.A.shape({dsId:i.A.string.isRequired,type:i.A.oneOf(["singleWithSubmenu"]),label:i.A.string.isRequired,secondaryLabel:i.A.string,value:i.A.any.isRequired,disabled:i.A.bool,rightAddon:i.A.oneOf(["chevron","ellipsis"]),options:i.A.array,minWidth:i.A.any,maxHeight:i.A.any,render:i.A.func}),Sl=i.A.shape({dsId:i.A.string.isRequired,type:i.A.oneOf(["separator"]),label:i.A.string.isRequired,render:i.A.func}),Il=i.A.shape({dsId:i.A.string.isRequired,type:i.A.oneOf(["section"]),label:i.A.string.isRequired,render:i.A.func}),Al=i.A.oneOfType([fl,bl,gl,yl,xl,Sl,Il]),Ss={options:i.A.arrayOf(Al).description("The array of option for the menu").omitValidation().isRequired,isOpened:i.A.bool.description("Whether the dropdown menu is opened or not").isRequired,onClickOutside:i.A.func.description("Callback executed when you click outside the dropdown menu, or press the Esc key").defaultValue(()=>null),selectedOptions:i.A.object.description("Object with the ids of the options as keys, and booleans as keys. Represents the state of the current selection in the dropdown menu").defaultValue({}),onOptionClick:i.A.func.description("Callback triggered when an item is clicked or pressed. We provide the next selected options, the clicked option and the event, in that order").defaultValue(()=>null),openedSubmenus:i.A.object.description("Object with the ids of the submenus as keys, and booleans as keys. Represents the state of the current opened submenus").defaultValue({}),onSubmenuToggle:i.A.func.description("Callback triggered when a submenu is opened or closed. We provide the next opened submenus, the clicked one and the event, in that order").defaultValue(()=>null),startPlacementPreference:i.A.string.description("Where to place the popper for the dropdown menu").defaultValue("bottom-start"),placementOrderPreference:i.A.arrayOf(i.A.string).description("Placement priorities for the dropdown menu").defaultValue(["bottom-start","top-start","right-start","right-end","left-start","left-end"]),customOffset:i.A.arrayOf(i.A.number).description("Custom offset for the dropdown menu").defaultValue([0,4]),wrapperStyles:i.A.object.description("Styling for the dropdown menu wrapper").defaultValue({}),isLoading:i.A.bool.description("Whether the dropdown menu should render the loading indicator").defaultValue(!1),zIndex:i.A.number.description("ZIndex for the popper").defaultValue(10),HeaderComp:i.A.func.description("Component to render as a header for the dropdown menu").defaultValue(void 0),actionRef:i.A.object.description("Reference where all the exposed action callbacks will be exposed"),minWidth:i.A.any.description("Minimum width for the dropdown menu").defaultValue(void 0),maxHeight:i.A.any.description("Maximum height for the dropdown menu").defaultValue(void 0),...re.P,onKeyDown:i.A.func.description("Callback executed when a key is pressed").defaultValue(()=>null),onMouseEnter:i.A.func.description("Callback executed when the mouse enter the dropdown menu").defaultValue(()=>null),onMouseLeave:i.A.func.description("Callback executed when the mouse leaves the dropdown menu").defaultValue(()=>null),isSkeleton:i.A.bool.description("Whether the dropdown menu should render the skeleton").defaultValue(!1)},Ol={onClickOutside:()=>null,onKeyDown:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,selectedOptions:{},onOptionClick:()=>null,openedSubmenus:{},onSubmenuToggle:()=>null,isLoading:!1,hasInput:!1,inputValue:"",inputPlaceholder:"Hint text",onInputChange:()=>null,startPlacementPreference:"bottom-start",placementOrderPreference:["bottom-start","top-start","right-start","right-end","left-start","left-end"],customOffset:[0,4],wrapperStyles:{},actionRef:{current:{}},as:"div",isSkeleton:!1},ht=(0,d.createContext)(void 0);var vl=P("./node_modules/.pnpm/react-virtual@2.10.4/node_modules/react-virtual/dist/react-virtual.production.min.js");const wl=()=>{const[e,t]=(0,d.useState)(null),n=(0,d.useRef)(null),o=(0,d.useRef)(null);return{triggerReferenceElement:e,setTriggerReferenceElement:t,listboxReference:n,inputReference:o}},Lt=e=>!["section","separator"].includes(e.type)&&!("disabled"in e&&e.disabled),At="DSDropdownmenu",Wt={ROOT:"root",LOADING_WRAPPER:"loading-wrapper",LISTBOX_WRAPPER:"listbox-wrapper",HEADER_WRAPPER:"header-wrapper",OPTION_LIST_WRAPPER:"option-list-wrapper",EMPTY_STATE_WRAPPER:"empty-state-wrapper"},gu={TOP_START:"top-start",TOP:"top",TOP_END:"top-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",BOTTOM_END:"bottom-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",LEFT_END:"left-end",LEFT:"left",LEFT_START:"left-start"},Tl=()=>32,El=(e,t)=>{const n=(0,J.b)(e,Ol);(0,$.D)(n,Ss,At);const{options:o,inputValue:s,isOpened:r,actionRef:l}=n,{triggerReferenceElement:c,setTriggerReferenceElement:u,listboxReference:p,inputReference:m}=wl(),[h,f]=(0,d.useState)(o.find(Lt)?.dsId??"");(0,d.useEffect)(()=>{r&&f(o.find(Lt)?.dsId??"")},[r,s]);const g=(0,vl.useVirtual)({size:o.length,parentRef:p,overscan:15,paddingStart:0,estimateSize:Tl}),{scrollToIndex:S}=g,y=(0,d.useCallback)((O,I)=>{S(O,I),window.requestAnimationFrame(()=>{S(O,I)})},[S]),b=(0,d.useCallback)((O,I={align:"center"})=>{const v=o.findIndex(w=>w.dsId===O);y(v,I)},[o,y]);return(0,d.useEffect)(()=>{l?.current&&(l.current={setActiveDescendant:f,scrollOptionIntoView:b,scrollToIndex:y})},[l,b,y]),(0,d.useMemo)(()=>({props:n,virtualListHelpers:g,triggerReferenceElement:c,setTriggerReferenceElement:u,listboxReference:p,inputReference:m,activeDescendant:h,setActiveDescendant:f,scrollOptionIntoView:b,DSDropdownMenuV2:t}),[n,g,c,u,p,m,h,b,t])};var Ml=P("./node_modules/.pnpm/@elliemae+ds-popperjs@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-popperjs/dist/esm/index.js");const rn={TRIGGER_WRAPPER:"dropdown-menu-trigger-wrapper",LISTBOX:"dropdown-menu-listbox",MENU_WRAPPER:"dropdown-menu-wrapper",LOADING:"dropdown-menu-loading-wrapper",OPTION:"ds-menu-item"};var Pl=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/system-utilities/space.js"),Is=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/system-utilities/sizing.js"),As=P("./node_modules/.pnpm/@xstyled+system@3.7.5/node_modules/@xstyled/system/dist/index.mjs");const Cl=(0,T.I)("div",{name:At,slot:Wt.ROOT})`
544
+ width: fit-content;
545
+ ${Pl.x}
546
+ ${Is.v}
547
+ ${As.G1C}
548
+ ${As.Zpx}
549
+ `,Dl=(0,T.I)("div",{name:At,slot:Wt.LISTBOX_WRAPPER})`
550
+ ${Is.v}
551
+ padding: ${e=>e.hasHeader?0:"4px"} 0 4px 0;
552
+ overflow-y: auto;
553
+ background-color: white;
554
+ outline: none;
555
+ list-style: none;
556
+ `,_l=(0,T.I)("ul",{name:At,slot:Wt.OPTION_LIST_WRAPPER})`
557
+ position: relative;
558
+ margin: 0;
559
+ padding: 0;
560
+ list-style: none;
561
+ outline: none;
562
+ `,Rl=(0,T.I)(Z.Ay,{name:At,slot:Wt.LOADING_WRAPPER})`
563
+ height: ${e=>e.theme.space.xxl};
564
+ min-width: ${e=>e.minWidth}px;
565
+ background-color: white;
566
+ outline: none;
567
+ `,kl=(0,T.I)(Z.Ay,{name:At,slot:Wt.EMPTY_STATE_WRAPPER})`
568
+ font-weight: ${e=>e.theme.fontWeights.regular};
569
+ font-size: ${e=>e.theme.fontSizes.value[500]};
570
+ color: ${e=>e.theme.colors.neutral[500]};
571
+ `,Nl=(0,T.I)(Z.Ay)`
572
+ padding-top: ${e=>e.hasHeader?e.theme.space.xxs:0};
573
+ padding-left: ${e=>e.theme.space.xxs};
574
+ padding-right: ${e=>e.theme.space.xxs};
575
+ padding-bottom: ${e=>e.theme.space.xxs};
576
+
577
+ .em-ds-input {
578
+ :focus,
579
+ :hover {
580
+ outline: none !important;
581
+ border: none !important;
582
+ box-shadow: none !important;
583
+ }
584
+ :focus {
585
+ border: 1px solid ${e=>e.theme.colors.brand[700]} !important;
586
+ box-shadow: inset 0 0 0 1px ${e=>e.theme.colors.brand[700]} !important;
587
+ }
588
+ }
589
+ `,jl=(0,T.I)(Z.Ay,{name:At,slot:Wt.HEADER_WRAPPER})`
590
+ width: 100%;
591
+ border-bottom: 1px solid ${e=>e.theme.colors.neutral[300]};
592
+ color: ${e=>e.theme.colors.neutral[500]};
593
+ font-size: 12px;
594
+ padding-left: ${e=>e.theme.space.xxxs};
595
+ position: sticky;
596
+ top: 0;
597
+ z-index: 20;
598
+ background-color: white;
599
+ min-height: 16px;
600
+ `;var Ll=P("./node_modules/.pnpm/@elliemae+ds-form-input-text@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-form-input-text/dist/esm/DSInputText.js");const kn=(e,t,n,o=1)=>{for(let s=(t+o+e.length)%e.length;s!==t;s=(s+o+e.length)%e.length)if(n(e[s]))return s;return t},Os=e=>e.type==="submenu"||e.type==="singleWithSubmenu",vs=(e,t="__root")=>{let n={};return e?.forEach(o=>{Os(o)&&(n[o.dsId]=t,"options"in o&&(n={...n,...vs(o.options,o.dsId)}))}),n},ho=(e,t,n)=>{if(!Os(n)||t[n.dsId]===!1)return t;const o=vs(e),s={...t};Object.keys(o).forEach(l=>{s[l]=!1});let r=n.dsId;for(;r!=="__root";)s[r]=!0,r=o[r];return s},Wl=()=>{const{props:{options:e,onOptionClick:t,openedSubmenus:n,onSubmenuToggle:o,onKeyDown:s,selectedOptions:r,onClickOutside:l,onMouseEnter:c,onMouseLeave:u},activeDescendant:p,setActiveDescendant:m,scrollOptionIntoView:h,listboxReference:f,inputReference:g}=(0,d.useContext)(ht),S=(0,d.useCallback)(b=>{const x=e.findIndex(I=>I.dsId===p);if(x===-1)return;const O=e[x];if(b.stopPropagation(),b.code==="ArrowDown"){b.preventDefault();const I=kn(e,x,Lt);m(e[I].dsId),h(e[I].dsId)}else if(b.code==="ArrowUp"){b.preventDefault();const I=kn(e,x,Lt,-1);m(e[I].dsId),h(e[I].dsId)}else if(b.code==="ArrowRight"&&["submenu","singleWithSubmenu"].includes(O.type)&&!n[O.dsId]){b.preventDefault();const{type:I}=O;if((I==="submenu"||I==="singleWithSubmenu")&&O.applyAriaDisabled)return;o(ho(e,{...n,[O.dsId]:!0},O),O,b)}else if(["Space","Enter"].includes(b.code)){b.preventDefault();const{type:I}=O;if(I==="singleWithSubmenu"&&O.applyAriaDisabled)return;const v={...r};if(v[O.dsId]=!r[O.dsId],O?.disabled)return;t(v,O,b),O.onClick&&O.onClick(b)}else if(b.code==="Escape")l(b);else if(b.code==="Home"){const I=kn(e,e.length-1,Lt);m(e[I].dsId),h(e[I].dsId)}else if(b.code==="End"){const I=kn(e,0,Lt,-1);m(e[I].dsId),h(e[I].dsId)}O.onKeyDown&&O.onKeyDown(b),s(b)},[e,n,s,p,m,h,o,r,t,l]),y=(0,d.useCallback)(b=>{g.current?g.current.focus():f.current?.focus(),c(b)},[g,f,c]);return{onKeyDown:S,onMouseEnter:y,onMouseLeave:u}},Fl=e=>(0,a.jsx)(kl,{px:"xxs",py:"xxxs",role:"alert",...e,children:"No content available"}),Ot={innerRef:()=>{},wrapperStyles:{}},Ft={dsId:i.A.string.description("unique identifier that MUST NOT be repeated to ensure all functionalities works as expected").isRequired,wrapperStyles:i.A.object.description("Styles to be applied to the wrapper element.").defaultValue(Ot.wrapperStyles),render:i.A.func.description("A React component that can be used to render the menu item.").signature("React.ComponentType"),innerRef:i.A.oneOfType([i.A.shape({current:i.A.node}),i.A.func.description(" A ref object or callback function to access the main underlying DOM element of the menu item.")]).defaultValue("(() => {})"),original:i.A.object.description("")},yu=null,$l={...Ot,label:"",value:void 0,disabled:!1,isActive:!1,onClick:()=>{},onKeyDown:()=>{},optionsShouldHavePadding:!1,tabIndex:0,applyAriaDisabled:!1,as:"li"},{tabIndex:xu,label:Su,value:Iu,...Vl}=re.P,ws={...Vl,...Ee.w,...Ft,tabIndex:i.A.oneOfType([i.A.number,i.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed."),label:i.A.string.description("The label of the menu item."),value:i.A.any.description("The value of the menu item."),isActive:i.A.bool.description("Whether the menu item is active."),optionsShouldHavePadding:i.A.bool.description("Whether the menu item should have padding. This is used in the context of a menu with options."),secondaryLabel:i.A.string.description("The secondary label of the menu item."),applyAriaDisabled:i.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1),as:i.A.string.description("The HTML element to render the menu item as.")},Bl=ws,Hl=`${de}Action`,Ul=(e,t)=>{(0,$.D)(e,t,Hl)},zl=e=>{const t=(0,J.b)(e,$l);Ul(t,ws);const n=(0,k.u)(t),o=(0,V.d)(t);return d.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o}),[t,n,o])},fo=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=zl(e),{dsId:s,label:r,secondaryLabel:l,onClick:c,onKeyDown:u,isActive:p,disabled:m,innerRef:h,wrapperStyles:f,optionsShouldHavePadding:g,render:S,applyAriaDisabled:y,readOnly:b,as:x}=t,O=d.useCallback(w=>{m||y||b||c?.(w)},[m,y,b,c]),I=d.useCallback(w=>{(y||b)&&(w.code==="Space"||w.code==="Enter")||u?.(w)},[y,b,u]),v=d.useMemo(()=>{const w=["auto"];return l&&w.push("min-content"),w},[l]);return(0,a.jsx)(Me,{id:s,role:"option",isActive:p,disabled:m,innerRef:h,pl:g?40:16,style:f,"data-type":"action","aria-disabled":y,...n,onClick:O,onKeyDown:I,...o,as:x,children:S!==void 0?(0,a.jsx)(S,{...t}):(0,a.jsx)(Ne,{cols:v,minHeight:"16px",gutter:"xxs",alignItems:"center",children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Qe,{children:r}),l!==void 0&&(0,a.jsx)(et,{children:l})]})})})};fo.displayName="DSActionMenuItem";const Gl=(0,W.A)(fo);Gl.propTypes=Bl;const Kl={...Ot,label:"",isActive:!1,disabled:!1,isSelected:!1,onClick:()=>{},onMouseDown:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},onKeyDown:()=>{},dataTestid:"ds-menu-item",tabIndex:0,applyAriaDisabled:!1},{tabIndex:Au,label:Ou,value:vu,...Yl}=re.P,Ts={...Yl,...Ee.w,...Ft,tabIndex:i.A.oneOfType([i.A.number,i.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed."),label:i.A.string.description("The label of the menu item."),value:i.A.any.description("The value of the menu item."),isActive:i.A.bool.description("Whether the menu item is active."),secondaryLabel:i.A.string.description("The secondary label of the menu item."),disabled:i.A.bool.description("Whether the menu item is disabled."),isSelected:i.A.bool.description("Whether the menu item is selected."),dataTestid:i.A.string.description("A custom data-testid for your e2e testing"),applyAriaDisabled:i.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},Xl=Ts,ql=`${de}Single`,Zl=(e,t)=>{(0,$.D)(e,t,ql)},Jl=e=>{const t=(0,J.b)(e,Kl);Zl(t,Ts);const n=t.original??t,o=(0,k.u)(n),s=(0,V.d)(n);return d.useMemo(()=>({propsWithDefault:t,globalProps:o,xstyledProps:s}),[t,o,s])},ln=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=Jl(e),{dsId:s,label:r,secondaryLabel:l,isSelected:c,onClick:u,onKeyDown:p,isActive:m,innerRef:h,onMouseDown:f,onMouseEnter:g,onMouseLeave:S,wrapperStyles:y,render:b,dataTestid:x,disabled:O,applyAriaDisabled:I,readOnly:v}=t,{getOwnerProps:w}=(0,K.j)(t),C=d.useCallback(L=>{O||f?.(L)},[O,f]),E=d.useCallback(L=>{O||I||v||u?.(L)},[O,I,v,u]),R=d.useCallback(L=>{(I||v)&&(L.code==="Space"||L.code==="Enter")||p?.(L)},[I,v,p]),_=d.useMemo(()=>{const L={small:["1rem","auto"],medium:["1.2308rem","auto"]};return l&&(L.small.push("min-content"),L.medium.push("min-content")),L},[l]),B=I?["neutral","400"]:["brand-primary","600"];return(0,a.jsx)(Me,{"aria-selected":c,id:s,role:"option",isActive:m,isSelected:c,innerRef:h,onMouseDown:C,onMouseEnter:g,onMouseLeave:S,className:m?"ds-list-item-active":"",style:y,"data-testid":x,disabled:O,"data-type":"single","aria-disabled":I||O,...n,onClick:E,onKeyDown:R,getOwnerProps:w,...o,children:b!==void 0?(0,a.jsx)(b,{...t}):(0,a.jsxs)(Ne,{cols:_,minHeight:"16px",gutter:"xxs",alignItems:"center",getOwnerProps:w,children:[(0,a.jsx)("div",{children:c&&(0,a.jsx)(Tn,{size:"s",color:B})}),(0,a.jsx)(Qe,{getOwnerProps:w,children:r}),l!==void 0&&(0,a.jsx)(et,{getOwnerProps:w,children:l})]})})};ln.displayName="DSSingleMenuItem";const Ql=(0,W.A)(ln);Ql.propTypes=Xl;var ea=P("./node_modules/.pnpm/@elliemae+ds-form-checkbox@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-form-checkbox/dist/esm/index.js");const ta={...Ot,label:"",isActive:!1,disabled:!1,applyAriaDisabled:!1,isSelected:!1,onClick:()=>{},onMouseDown:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},tabIndex:0},{tabIndex:wu,label:Tu,value:Eu,...na}=re.P,Es={...na,...Ee.w,...Ft,tabIndex:i.A.oneOfType([i.A.number,i.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed."),label:i.A.string.description("The label of the menu item."),isActive:i.A.bool.description("Whether the menu item is active."),isSelected:i.A.bool.description("Whether the menu item has to show the selected state or not."),value:i.A.any.description("The value of the menu item."),dataTestid:i.A.string.description("The data-testid of the menu item."),applyAriaDisabled:i.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},oa=Es,sa=`${de}Multi`,ia=(e,t)=>{(0,$.D)(e,t,sa)},ra=e=>{const t=(0,J.b)(e,ta);ia(t,Es);const n=(0,k.u)(t),o=(0,V.d)(t);return d.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o}),[t,n,o])},la=()=>{},an=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=ra(e),{dsId:s,label:r,disabled:l,isSelected:c,isActive:u,onClick:p,dataTestid:m,innerRef:h,onMouseEnter:f,onMouseLeave:g,onMouseDown:S,wrapperStyles:y,tabIndex:b,render:x,applyAriaDisabled:O,readOnly:I}=t,{getOwnerProps:v,getOwnerPropsArguments:w}=(0,K.j)(e),C=d.useCallback(E=>{l||O||I||p?.(E)},[l,O,I,p]);return(0,a.jsx)(Me,{id:s,disabled:l,isActive:u,isSelected:c,innerRef:h,onMouseDown:S,onMouseEnter:f,onMouseLeave:g,role:"option",className:u?"ds-list-item-active":"","aria-selected":c,style:y,"data-testid":m,"data-type":"multi","aria-disabled":O||l,applyAriaDisabled:O,readOnly:I,...n,onClick:C,getOwnerProps:v,getOwnerPropsArguments:w,...o,children:x!==void 0?(0,a.jsx)(x,{...t}):(0,a.jsx)(Gi,{getOwnerProps:v,getOwnerPropsArguments:w,children:(0,a.jsx)(ea.Lt,{disabled:l,applyAriaDisabled:O,readOnly:I,checked:c,onMouseDown:S,name:r,label:r,onChange:la,tabIndex:b,wrapLabel:!0})})})};an.displayName="DSMultiMenuItem";const aa=(0,W.A)(an);aa.propTypes=oa;var Ms=(0,wn.w)({paths:["M9.496 12c-.828 0-1.5-.672-1.5-1.5S8.668 9 9.496 9s1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM9.496 7c-.828 0-1.5-.672-1.5-1.5S8.668 4 9.496 4s1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM9.496 17c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5z"],height:20,width:20}),Ps=P("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronRight.js");const Nn={...Ot,label:"",isActive:!1,disabled:!1,applyAriaDisabled:!1,isSubmenuOpened:!1,onSubmenuOpen:()=>{},rightAddon:"chevron",optionsShouldHavePadding:!1,Dropdown:()=>null,dropdownProps:{options:[],onSubmenuToggle:()=>{},openedSubmenus:{},selectedOptions:{},onKeyDown:()=>{},onOptionClick:()=>{},onClickOutside:()=>{},minWidth:"auto",maxHeight:"auto"}},Cs={...re.P,...Ee.w,...Ft,tabIndex:i.A.oneOfType([i.A.number,i.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed."),label:i.A.string.description("The label of the menu item."),value:i.A.any.description("The value of the menu item."),isActive:i.A.bool.description("Whether the menu item is active.").defaultValue(Nn.isActive),optionsShouldHavePadding:i.A.bool.description("Whether the menu item should have padding. This is used in the context of a menu with options.").defaultValue(Nn.optionsShouldHavePadding),secondaryLabel:i.A.string.description("The secondary label of the menu item."),isSubmenuOpened:i.A.bool.description("Whether the submenu is opened or not.").defaultValue(Nn.isSubmenuOpened),onSubmenuOpen:i.A.func.description("Callback fired when the user tries to open the submenu."),onSubmenuClose:i.A.func.description("Callback fired when the user tries to close the submenu."),rightAddon:i.A.oneOf(["ellipsis","chevron"]).description("The visual element to display on the right side of the menu item."),Dropdown:i.A.func.description("The Dropdown component to use to render the submenu."),dropdownProps:i.A.object.description("The props to pass to the Dropdown component."),applyAriaDisabled:i.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},da=Cs,ca=`${de}Submenu`,ua=(e,t)=>{(0,$.D)(e,t,ca)},pa=({disabled:e,isSubmenuOpened:t,onMouseEnter:n,onSubmenuOpen:o,onSubmenuClose:s,onMouseLeave:r,onMouseDown:l})=>({onMouseEnterHandler:h=>n?.(h),onMouseLeaveHandler:h=>r?.(h),onMouseDownHandler:h=>{if(e){h.preventDefault();return}l?.(h)},onEllipsisClick:h=>{e||(h.stopPropagation(),t?s?.(h):o(h))}}),ma=({isSubmenuOpened:e,onMouseEnter:t,onSubmenuOpen:n,onSubmenuClose:o,onMouseLeave:s,onMouseDown:r,disabled:l,applyAriaDisabled:c})=>{const u={current:null};return{onMouseEnterHandler:g=>{c||(u.current!==null?clearTimeout(u.current):e||n?.(g),u.current=null,t?.(g))},onMouseLeaveHandler:g=>{u.current===null&&(u.current=setTimeout(()=>{u.current=null,o?.(g)},300)),s?.(g)},onMouseDownHandler:g=>{l||r?.(g)},onEllipsisClick:()=>{throw new Error("Invoking onEllipsisClick from chevron handlers... this should never happen")}}},ha=e=>{const{rightAddon:t}=e;return(0,d.useMemo)(()=>t==="ellipsis"?pa(e):ma(e),[e,t])},fa=e=>{const t=(0,J.b)(e,Nn);ua(t,Cs);const n=t.original??t,o=(0,k.u)(n),s=(0,V.d)(n),r=ha(t);return d.useMemo(()=>({propsWithDefault:t,globalProps:o,xstyledProps:s,eventHandlers:r}),[t,o,s,r])},bo=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o,eventHandlers:s}=fa(e),{dsId:r,label:l,secondaryLabel:c,isActive:u,disabled:p,applyAriaDisabled:m,isSubmenuOpened:h,rightAddon:f,innerRef:g,wrapperStyles:S,optionsShouldHavePadding:y,render:b,Dropdown:x,dropdownProps:{options:O,openedSubmenus:I,onSubmenuToggle:v,selectedOptions:w,onKeyDown:C,onOptionClick:E,onClickOutside:R,minWidth:_,maxHeight:B}}=t,[L,A]=d.useState(!1);d.useEffect(()=>{setTimeout(()=>A(Boolean(h)))},[h]);const D=d.useMemo(()=>{const Po=["auto"];return c!==void 0&&Po.push("min-content"),Po.push("min-content"),Po},[c]),{minWidth:M,...j}=o,{onMouseLeave:F,onMouseEnter:Ke,onMouseDown:Ie,...je}=n,{onMouseEnterHandler:Ht,onMouseLeaveHandler:Le,onMouseDownHandler:Jc,onEllipsisClick:Qc}=s;return(0,a.jsx)(x,{isOpened:L,options:O??[],onOptionClick:E,startPlacementPreference:"right-start",placementOrderPreference:["right-start","right-end","left-start","left-end"],selectedOptions:w,openedSubmenus:I,onSubmenuToggle:v,onKeyDown:C,onClickOutside:R,customOffset:[-4,1],wrapperStyles:{...S,w:"100%"},as:"li",role:"option",minWidth:_,maxHeight:B,"aria-selected":h,"aria-describedby":`dropdownmenu-submenu-${r}`,"data-popover-label":l,id:r,onMouseEnter:Ht,onMouseLeave:Le,onMouseDown:Jc,...je,...j,children:(0,a.jsxs)(Me,{pr:0,isSelected:h,isActive:u,onMouseEnter:Ht,onMouseLeave:Le,innerRef:g,disabled:p,"aria-disabled":m,pl:y?40:16,as:"div","data-type":"submenu",children:[b!==void 0?(0,a.jsx)(b,{...t}):(0,a.jsxs)(Ne,{cols:D,gutter:"xxs",alignItems:"center",children:[(0,a.jsx)(Qe,{children:l}),c!==void 0&&(0,a.jsx)(et,{children:c}),(0,a.jsxs)(zo,{children:[(0,a.jsx)(qo,{}),f==="ellipsis"?(0,a.jsx)(Go,{tabIndex:-1,onClick:Qc,disabled:p,applyAriaDisabled:m,children:(0,a.jsx)(Ms,{className:"ds-dropdown-menu-v2-more-options",color:p||m?["neutral","500"]:["brand-primary","600"],size:"s"})}):(0,a.jsx)(Ps.A,{color:p||m?["neutral","500"]:["brand-primary","600"],size:"s"})]})]}),(0,a.jsx)("span",{id:`dropdownmenu-submenu-${r}`,style:{display:"none"},children:"submenu, to open this submenu press the Right Arrow key"})]})})};bo.displayName="DSMenuItemSubmenu";const ba=(0,W.A)(bo);ba.propTypes=da;const ga={...Ot,role:"option"},{dsId:Mu,...ya}=Ft,Ds={...Ee.w,...ya,...re.P,role:i.A.string.description('the arial role to apply to the separator, defaults to "option"').defaultValue("option"),tabIndex:i.A.oneOfType([i.A.number,i.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed.")},xa=Ds,Sa=`${de}Separator`,Ia=(e,t)=>{(0,$.D)(e,t,Sa)},Aa=e=>{const t=(0,J.b)(e,ga);Ia(t,Ds);const n=t.original??t,o=(0,k.u)(n),s=(0,V.d)(n);return d.useMemo(()=>({propsWithDefault:t,globalProps:o,xstyledProps:s}),[t,o,s])},dn=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=Aa(e),{wrapperStyles:s,innerRef:r,render:l}=t;return(0,a.jsx)(Yo,{style:s,innerRef:r,"aria-label":"separator",role:"option",tabIndex:void 0,...n,...o,"aria-hidden":"true",children:l?(0,a.jsx)(l,{...t}):(0,a.jsx)(Ko,{})})};dn.displayName="DSMenuItemSeparator";const Oa=(0,W.A)(dn);Oa.propTypes=xa;const va={},_s={...re.P,...Ee.w,label:i.A.string.description("The label of the menu item."),wrapperStyles:i.A.object.description("Styles to be applied to the wrapper element if any."),render:i.A.func.description("A React component that can be used to render the menu item if the default one is not the desired one.").signature("React.ComponentType"),innerRef:i.A.oneOfType([i.A.shape({current:i.A.node}),i.A.func.description(" A ref object or callback function to access the main underlying DOM element of the menu item.")])},wa=_s,Ta=`${de}Section`,Ea=(e,t)=>{(0,$.D)(e,t,Ta)},Ma=e=>{const t=(0,J.b)(e,va);Ea(t,_s);const n=(0,k.u)(t),o=(0,V.d)(t);return d.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o}),[t,n,o])},go=e=>{const{globalProps:t,xstyledProps:n}=Ma(e),{label:o,wrapperStyles:s,innerRef:r,render:l}=e;return(0,a.jsx)(Ki,{style:s,innerRef:r,role:"option",...t,...n,children:l!==void 0?(0,a.jsx)(l,{...e}):(0,a.jsx)(Xo,{children:o})})};go.displayName="DSSectionMenuItem";const Pa=(0,W.A)(go);Pa.propTypes=wa;const vt={...Ot,isSelected:!1,onClick:()=>{},onMouseDown:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},dataTestid:"ds-menu-item",tabIndex:0,label:"",isActive:!1,disabled:!1,applyAriaDisabled:!1,isSubmenuOpened:!1,onSubmenuOpen:()=>{},rightAddon:"chevron",optionsShouldHavePadding:!1,Dropdown:()=>null,dropdownProps:{options:[],onSubmenuToggle:()=>{},openedSubmenus:{},selectedOptions:{},onKeyDown:()=>{},onOptionClick:()=>{},onClickOutside:()=>{},minWidth:"auto",maxHeight:"auto"}},{tabIndex:Pu,label:Cu,value:Du,...Ca}=re.P,Rs={...Ca,...Ee.w,...Ft,tabIndex:i.A.oneOfType([i.A.number,i.A.string]).description("The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed.").defaultValue(vt.tabIndex),label:i.A.string.description("The label of the menu item."),value:i.A.any.description("The value of the menu item."),isActive:i.A.bool.description("Whether the menu item is active.").defaultValue(vt.isActive),optionsShouldHavePadding:i.A.bool.description("Whether the menu item should have padding. This is used in the context of a menu with options.").defaultValue(vt.optionsShouldHavePadding),secondaryLabel:i.A.string.description("The secondary label of the menu item."),isSelected:i.A.bool.description("Whether the menu item has to show the selected state or not.").defaultValue(vt.isSelected),dataTestid:i.A.string.description("The data-testid of the menu item.").defaultValue(vt.dataTestid),isSubmenuOpened:i.A.bool.description("Whether the submenu is opened or not.").defaultValue(vt.isSubmenuOpened),onSubmenuOpen:i.A.func.description("Callback fired when the user tries to open the submenu."),onSubmenuClose:i.A.func.description("Callback fired when the user tries to close the submenu."),rightAddon:i.A.oneOf(["ellipsis","chevron"]).description("The visual element to display on the right side of the menu item."),Dropdown:i.A.func.description("The Dropdown component to use to render the submenu."),dropdownProps:i.A.shape({options:i.A.arrayOf(i.A.any).description("The options to display in the submenu."),onSubmenuToggle:i.A.func.description("Callback fired when the user tries to toggle the submenu. It receives the next opened submenus, the submenu and the event.").signature("((nextOpenedSubmenus: Record<string, boolean>, submenu: unknown, e: React.MouseEvent | React.KeyboardEvent) => void)"),openedSubmenus:i.A.objectOf(i.A.bool).description("The opened submenus."),selectedOptions:i.A.objectOf(i.A.bool).description("The selected options."),onKeyDown:i.A.func.description("Callback fired when the user presses a key."),onOptionClick:i.A.func.description("Callback fired when the user clicks on an option. It receives the next selected options, the clicked option and the event.").signature("((nextSelectedOptions: Record<string, boolean>, clickedOption: unknown, e: React.MouseEvent | React.KeyboardEvent) => void)"),onClickOutside:i.A.func.description("Callback fired when the user clicks outside the submenu.").signature("((e: MouseEvent | React.KeyboardEvent | TouchEvent) => void)"),minWidth:i.A.oneOfType([i.A.number,i.A.string]).description("The min width of the submenu."),maxHeight:i.A.oneOfType([i.A.number,i.A.string]).description("The max height of the submenu.")}).description("The props to pass to the Dropdown component."),applyAriaDisabled:i.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.").defaultValue(!1)},Da=Rs,_a=`${de}SingleWithSubmenu`,Ra=(e,t)=>{(0,$.D)(e,t,_a)},ka=({disabled:e,applyAriaDisabled:t,rightAddon:n,isSubmenuOpened:o,onMouseEnter:s,onSubmenuOpen:r,onSubmenuClose:l,onMouseLeave:c})=>{const u=d.useRef(null),p=d.useCallback(f=>{n!=="ellipsis"&&(u.current!==null?clearTimeout(u.current):o||r(f),u.current=null),s(f)},[o,s,r,n]),m=d.useCallback(f=>{n!=="ellipsis"&&u.current===null&&(u.current=setTimeout(()=>{u.current=null,l?.(f)},300)),c(f)},[c,l,n]),h=d.useCallback(f=>{e||t||(f.stopPropagation(),o?l?.(f):r(f))},[e,t,o,l,r]);return d.useMemo(()=>({onMouseEnterHandler:p,onMouseLeaveHandler:m,onEllipsisClick:h}),[p,m,h])},Na=e=>{const t=(0,J.b)(e,vt);Ra(t,Rs);const n=(0,k.u)(t),o=(0,V.d)(t),s=ka(t);return d.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o,eventHandlers:s}),[t,n,o,s])},yo=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o,eventHandlers:s}=Na(e),{onMouseEnterHandler:r,onMouseLeaveHandler:l,onEllipsisClick:c}=s,{dsId:u,label:p,secondaryLabel:m,isActive:h,disabled:f,applyAriaDisabled:g,onClick:S,isSelected:y,isSubmenuOpened:b,rightAddon:x,innerRef:O,wrapperStyles:I,render:v,Dropdown:w,dropdownProps:{options:C,openedSubmenus:E,onSubmenuToggle:R,selectedOptions:_,onKeyDown:B,onOptionClick:L,onClickOutside:A,minWidth:D,maxHeight:M}}=t,[j,F]=d.useState(!1),{minWidth:Ke,...Ie}=o;d.useEffect(()=>{setTimeout(()=>F(b))},[b]);const je=d.useMemo(()=>{const Le=["16px","auto"];return m&&Le.push("min-content"),Le.push("min-content"),Le},[m]),Ht=d.useCallback(Le=>{f||g||S?.(Le)},[f,g,S]);return(0,a.jsx)(w,{isOpened:j,options:C??[],onOptionClick:L,startPlacementPreference:"right-start",placementOrderPreference:["right-start","right-end","left-start","left-end"],selectedOptions:_,openedSubmenus:E,onSubmenuToggle:R,onKeyDown:B,onClickOutside:A,customOffset:[-4,1],onMouseEnter:r,onMouseLeave:l,wrapperStyles:{...I,w:"100%"},minWidth:D,maxHeight:M,"data-popover-label":p,as:"li",role:"option","aria-selected":b,"aria-describedby":`dropdownmenu-submenu-${u}`,id:u,...n,...Ie,children:(0,a.jsxs)(Me,{pr:0,onClick:Ht,isSelected:b,disabled:f,"aria-disabled":g,isActive:h,onMouseEnter:r,onMouseLeave:l,as:"div",innerRef:O,"data-type":"single-with-submenu",children:[v!==void 0?(0,a.jsx)(v,{...t}):(0,a.jsxs)(Ne,{cols:je,gutter:"xxs",alignItems:"center",children:[y?(0,a.jsx)(Tn,{size:"s",color:f||g?["neutral","500"]:["brand-primary","600"]}):(0,a.jsx)("div",{}),(0,a.jsx)(Qe,{children:p}),m!==void 0&&(0,a.jsx)(et,{children:m}),(0,a.jsxs)(zo,{children:[(0,a.jsx)(qo,{}),x==="ellipsis"?(0,a.jsx)(Go,{tabIndex:-1,onClick:c,disabled:f,applyAriaDisabled:g,children:(0,a.jsx)(Ms,{className:"ds-dropdown-menu-v2-more-options",color:f||g?["neutral","500"]:["brand-primary","600"],size:"s"})}):(0,a.jsx)(Ps.A,{color:f||g?["neutral","500"]:["brand-primary","600"],size:"s"})]})]}),(0,a.jsx)("span",{id:`dropdownmenu-submenu-${u}`,style:{display:"none"},children:"submenu, to open this submenu press the Right Arrow key"})]})})};yo.displayName="DSMenuItemSingleWithSubmenu";const ja=(0,W.A)(yo);ja.propTypes=Da;const La={wrapperStyles:{}},ks={...re.P,...Ee.w,dsId:i.A.string.description('This is used as "id" in the DOM, you need this to be able to make this A11Y accessible.').isRequired,isActive:i.A.bool.description("Whether the menu item is active."),wrapperStyles:i.A.object.description("The styles to apply to the wrapper element, if any.")},Wa=ks,Fa=`${de}Skeleton`,$a=(e,t)=>{(0,$.D)(e,t,Fa)},Va=e=>{const t=(0,J.b)(e,La);$a(t,ks);const n=(0,k.u)(t),o=(0,V.d)(t);return d.useMemo(()=>({propsWithDefault:t,globalProps:n,xstyledProps:o}),[t,n,o])},Ba=["16px","auto"],cn=e=>{const{propsWithDefault:t,globalProps:n,xstyledProps:o}=Va(e),{wrapperStyles:s,isActive:r,dsId:l}=t,{getOwnerProps:c}=(0,K.j)(e);return(0,a.jsx)(Me,{id:l,"data-type":"skeleton","data-testid":"ds-skeleton-menu-item",role:"presentation",style:s,isActive:r,getOwnerProps:c,...n,...o,children:(0,a.jsxs)(Ne,{cols:Ba,minHeight:"16px",gutter:"xxs",alignItems:"center",children:[(0,a.jsx)(kt,{variant:"rectangular",width:"20px"}),(0,a.jsx)(kt,{variant:"rectangular",width:"100%"})]})})};cn.displayName="DSMenuItemSkeleton";const Ha=(0,W.A)(cn);Ha.propTypes=Wa;const $t=e=>{const t=(0,d.useRef)(e);return(0,d.useEffect)(()=>{t.current=e},[e]),t},Ua=e=>{const{props:{options:t,selectedOptions:n,onOptionClick:o,openedSubmenus:s,onSubmenuToggle:r,onMouseEnter:l,onMouseLeave:c,onMouseDown:u},listboxReference:p,inputReference:m}=(0,d.useContext)(ht),h=$t(e),f=$t(t),g=$t(s),S=$t(r),y=$t(o),b=$t(n),x=(0,d.useCallback)(w=>{if(w.stopPropagation(),w.preventDefault(),h?.current?.type==="singleWithSubmenu"){const{applyAriaDisabled:E}=h.current;if(E)return}const C={...b.current};C[h.current.dsId]=!b.current[h.current.dsId],!h?.current?.disabled&&(y?.current?.(C,h.current,w),w.type==="click"&&h?.current?.onClick?.(w))},[y,h,b]),O=(0,d.useCallback)(w=>{S?.current?.(ho(f.current,{...g?.current||{},[h.current.dsId]:!0},h.current),h.current,w)},[S,g,h,f]),I=(0,d.useCallback)(w=>{S?.current?.(ho(f.current,{...g?.current||{},[h.current.dsId]:!1},h.current),h.current,w),m.current?m.current.focus():p.current?.focus()},[m,p,S,g,h,f]),v=(0,d.useCallback)(w=>{w.code==="ArrowLeft"&&(I(w),w.preventDefault())},[I]);return(0,d.useMemo)(()=>({onClick:x,onSubmenuOpen:O,onSubmenuClose:I,onDropdownKeyDown:v,onMouseEnter:l,onMouseLeave:c,onMouseDown:u}),[x,O,I,v,l,c,u])},za=["action","single","checkbox","submenu","separator","section","singleWithSubmenu","skeleton"],Ga=e=>{const{type:t}=e;switch(t){case"action":return(0,a.jsx)(fo,{...e});case"single":return(0,a.jsx)(ln,{...e});case"checkbox":return(0,a.jsx)(an,{...e});case"submenu":return(0,a.jsx)(bo,{...e});case"separator":return(0,a.jsx)(dn,{...e});case"section":return(0,a.jsx)(go,{...e});case"singleWithSubmenu":return(0,a.jsx)(yo,{...e});case"skeleton":return(0,a.jsx)(cn,{...e});default:const n=t;throw new Error(`Provided option type (${t}) is not valid. Please provide one of: ${za.join(", ")}`)}},Ka=({option:e,style:t,innerRef:n,optionsShouldHavePadding:o})=>{const{props:{selectedOptions:s,onOptionClick:r,openedSubmenus:l,onSubmenuToggle:c,onClickOutside:u},activeDescendant:p,DSDropdownMenuV2:m}=(0,d.useContext)(ht),{onDropdownKeyDown:h,...f}=Ua(e),g=(0,d.useMemo)(()=>({...f,innerRef:n,isActive:p===e.dsId,isSelected:s?!!s[e.dsId]:!1,isSubmenuOpened:l?!!l[e.dsId]:!1,tabIndex:-1,optionsShouldHavePadding:o,wrapperStyles:t,Dropdown:m,dropdownProps:{...e,options:e.type==="submenu"||e.type==="singleWithSubmenu"?e.options:[],onClickOutside:u,onOptionClick:r,onSubmenuToggle:c,selectedOptions:s,openedSubmenus:l,onKeyDown:h}}),[f,n,p,e,s,l,o,t,m,u,r,c,h]);return(0,a.jsx)(Ga,{...e,...g})},Ya=()=>(0,a.jsx)(Z.Ay,{children:Array(5).fill(0).map((t,n)=>(0,a.jsx)(cn,{dsId:`${n}-skeleton`},`prefilled-${n}-skeleton`))}),Xa=()=>{const{listboxReference:e,inputReference:t}=(0,d.useContext)(ht);(0,d.useLayoutEffect)(()=>{requestAnimationFrame(()=>{t.current?t.current.focus():e.current&&e.current.focus()})},[t,e])},qa=()=>{const{props:{options:e}}=(0,d.useContext)(ht);return{optionsShouldHavePadding:(0,d.useMemo)(()=>e.some(n=>["single","checkbox","singleWithSubmenu"].includes(n.type)),[e])}},Za=()=>{const e=(0,d.useContext)(ht),{triggerReferenceElement:t,props:{isSkeleton:n,options:o,hasInput:s,inputValue:r,onInputChange:l,HeaderComp:c,minWidth:u,maxHeight:p},activeDescendant:m,listboxReference:h,inputReference:f,virtualListHelpers:{totalSize:g,virtualItems:S}}=e;Xa();const{onKeyDown:y,onMouseEnter:b,onMouseLeave:x}=Wl(),{optionsShouldHavePadding:O}=qa(),I=(0,d.useMemo)(()=>u!==void 0?u:Math.max(t?.offsetWidth??0,162),[t?.offsetWidth,u]);return(0,d.useMemo)(()=>S.length===0?(0,a.jsx)(Fl,{minWidth:I,maxHeight:p||400}):(0,a.jsx)(Dl,{minWidth:I,maxHeight:p||400,innerRef:h,tabIndex:0,"data-testid":rn.MENU_WRAPPER,onKeyDown:y,onMouseEnter:b,onMouseLeave:x,hasHeader:!!c,children:n?(0,a.jsx)(Ya,{}):(0,a.jsxs)(a.Fragment,{children:[c&&(0,a.jsx)(jl,{alignItems:"center",children:(0,a.jsx)(c,{ctx:e})}),s&&(0,a.jsx)(Nl,{hasHeader:!!c,children:(0,a.jsx)(Ll.B,{value:r,onChange:l,innerRef:f})},"dropdown-listbox-input-wrapper"),(0,a.jsx)(_l,{"aria-activedescendant":m,"data-testid":rn.LISTBOX,role:"listbox","aria-label":"List of options",style:{height:g||16},children:S.map(v=>(0,a.jsx)(Ka,{option:o[v.index],style:{position:"absolute",top:v.start,left:0,width:"100%"},innerRef:v.measureRef,optionsShouldHavePadding:O},`dropdown-listbox-option-${o[v.index].dsId}`))})]})}),[c,m,e,s,f,r,n,h,I,l,y,b,x,o,O,g,p,S])};var Ns=P("./node_modules/.pnpm/@elliemae+ds-legacy-classnames@1.0.16_styled-components@5.3.11/node_modules/@elliemae/ds-legacy-classnames/dist/esm/classNameManager.js");const js=({componentName:e,version:t})=>{(0,d.useEffect)(()=>{console.warn(`Warning: ${e}:: this component will be deprecated in version: ${t}.`)},[e,t])};var oe=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0_styled-components@5.3.11/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),Ls=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0_styled-components@5.3.11/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),Ws=P("./node_modules/.pnpm/@elliemae+ds-legacy-classnames@1.0.16_styled-components@5.3.11/node_modules/@elliemae/ds-legacy-classnames/dist/esm/aggregatedClasses.js"),xo=P("./node_modules/.pnpm/@elliemae+ds-legacy-popper@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-popper/dist/esm/positions.js"),So=P("./node_modules/.pnpm/@elliemae+ds-legacy-popper@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-popper/dist/esm/interaction.js"),Ja=P("./node_modules/.pnpm/@elliemae+ds-legacy-popper@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-popper/dist/esm/DSPopper.js"),jn=P("./node_modules/.pnpm/@elliemae+ds-legacy-shared@1.0.16_@elliemae+pui-theme@2.13.0_styled-components@5.3.11/node_modules/@elliemae/ds-legacy-shared/dist/esm/constants.js");const Io={TOOLTIP:"tooltip",TOOLBAR:"toolbar"},Qa=(e,t,n=[])=>{if(!e)return null;const o=typeof e!="function"&&e.props?Array.isArray(e.props.children)?e.props.children:[e.props.children]:null;return typeof e=="function"?(0,a.jsx)(e,{...t,children:n}):d.cloneElement(e,{...e.props,...t},o?[...o,...n]:[...n])},Ao="tooltip",ed=(0,Ws.A)("div")(Ao,null,{propsToRemoveFromFinalElement:["isHovered","isDragged"]}),td=(0,Ws.A)("span")(Ao,"text",{propsToRemoveFromFinalElement:["isHovered","isDragged"]}),Oo=({containerProps:e={},innerRef:t,placement:n=xo.y.TOP,title:o="",delayClose:s=jn.$Z,delayOpen:r=jn.xp,interactionType:l=So.N.HOVER,triggerComponent:c,className:u="",isOpen:p=void 0,onOpen:m=()=>null,tooltipType:h=Io.TOOLTIP,showArrow:f=!0,zIndex:g,...S})=>{js({componentName:"ds-tooltip",version:"TBD Date: 2023 Q3"});const{cssClassName:y}=(0,Ns.Ay)(Ao);let b=o;return typeof o=="string"&&(b=(0,a.jsx)(td,{children:o})),(0,a.jsx)(Ja.Cj,{blockName:y,contentComponent:(0,a.jsx)(ed,{...e,...S,className:`tooltip-container--${h} ${u}`,innerRef:t,children:b}),delayClose:s,delayOpen:r,interactionType:l,isOpen:p,onOpen:m,placement:n,showArrow:h===Io.TOOLTIP?f:!1,triggerComponent:Qa(c,{}),zIndex:g,wrapExtraComponent:void 0,children:void 0,renderReference:void 0,referenceNode:void 0})},nd={containerProps:oe.A.object.description("Set of Properties attached to the main container"),placement:oe.A.oneOf(xo.X).description("Tooltip position").defaultValue(xo.y.TOP),title:oe.A.oneOfType([oe.A.string,oe.A.element]).description("Tooltip content").isRequired,delayClose:oe.A.string.description("Delay to close the tooltip").defaultValue(jn.$Z),delayOpen:oe.A.string.description("Delay to open the tooltip ").defaultValue(jn.xp),interactionType:oe.A.oneOf(So.y).description("A type indicating how to open/close the tooltip").defaultValue(So.N.HOVER),triggerComponent:oe.A.element.description(`The component that will open/close the tooltip.
601
+ Cannot be used with disabled elements.
602
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled`).isRequired,isOpen:oe.A.bool.description("Whether the tooltip is visible or not").defaultValue(void 0),onOpen:oe.A.func.description("Handler when the tooltip opens"),springAnimationComponent:oe.A.element.description("Spring animation component"),showArrow:oe.A.bool.description("Whether to show an arrow or not").defaultValue(!0),className:oe.A.string.description("css class"),tooltipType:oe.A.oneOf(["tooltip","toolbar"]).description("Type of tooltip").defaultValue(Io.TOOLTIP),zIndex:oe.A.number.description("z-index value assigned to the tooltip").defaultValue(void 0),innerRef:oe.A.oneOfType([oe.A.func,oe.A.object]).description("Ref to the tooltip container element")};Oo.displayName="DSTooltip";const od=(0,Ls.A)(Oo);od.propTypes=nd;var _u=null;const{classNameBlock:sd,classNameElement:un}=(0,Ns.Ay)("circular-progress-indicator"),Ln=({size:e,showLabel:t,showTooltip:n,waiting:o,loading:s})=>{js({componentName:"ds-circular-progress-indicator",version:"TBD Date: 2023 Q3"});const r="Waiting...",l="Loading...",c=o&&!s?r:l;let u,p,m,h,f="0.7",g="4.8",S="45 170",y="127.5";switch(e.toUpperCase()){case"XS":u=8,p=12,m=10,h=3,f="1",S="46 174",y="133";break;case"S":u=16,p=12,m=8,h=3,f="1",S="46 174",y="133";break;case"M":u=24,p=12,m=7,h=3,f="1",g="5.5",S="46 174",y="133";break;case"L":u=32,p=13,m=6,h=3,g="5";break;case"XL":u=48,p=14,m=5,h=1;break;case"XXL":u=56,p=16,m=4,h=1;break;case"XXXL":u=64,p=16,m=5,h=2;break;default:break}const b=(0,a.jsx)("p",{"data-testid":"circular-indicator-label",className:un("label"),style:{fontSize:`${p}px`},children:c}),x=w=>u<17||n?(0,a.jsx)(Oo,{containerProps:{id:"ds-circular-progress-indicator","data-testid":"circular-indicator-title"},interactionType:"hover",title:c,triggerComponent:w,placement:"bottom"}):w,O=(0,a.jsx)("circle",{className:un("track"),cx:"50%",cy:"50%",fill:"none",r:"28",strokeWidth:`${h}px`}),I=(0,a.jsx)("circle",{className:un("arc-gray"),stroke:"#E0E3E8",strokeDasharray:`${S}`,strokeDashoffset:`${y}`,cx:"50%",cy:"50%",fill:"none",r:"28",strokeWidth:`${h}px`}),v=(0,a.jsxs)("svg",{height:`${u}px`,version:"1.1",viewBox:"0 0 66 66",width:`${u}px`,"data-testid":"circular-indicator","aria-label":o&&!s?r:l,children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"grad1",x1:"0%",x2:"100%",y1:"100%",y2:"0%",children:[(0,a.jsx)("stop",{offset:"0%",style:{stopColor:"#E0E3E8",stopOpacity:1}}),(0,a.jsx)("stop",{offset:"89%",style:{stopColor:"#5594e2",stopOpacity:1}}),(0,a.jsx)("stop",{offset:"100%",style:{stopColor:"#5594e2",stopOpacity:1}})]}),(0,a.jsxs)("linearGradient",{id:"grad2",x1:"0%",x2:"100%",y1:"100%",y2:"0%",children:[(0,a.jsx)("stop",{offset:"0%",style:{stopColor:"#5594e2",stopOpacity:1}}),(0,a.jsx)("stop",{offset:"11%",style:{stopColor:"#5594e2",stopOpacity:1}}),(0,a.jsx)("stop",{offset:"100%",style:{stopColor:"#E0E3E8",stopOpacity:1}})]}),(0,a.jsx)("marker",{id:"inverseL",viewBox:"0 0 5 10",refX:"0.5",refY:`${g}`,markerUnits:"strokeWidth",markerWidth:"0.5",markerHeight:`${f}`,orient:"auto",children:(0,a.jsx)("path",{d:"M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z",fill:"#FFF"})}),(0,a.jsx)("marker",{id:"inverseR",viewBox:"0 0 5 10",refX:"0",refY:"5",markerUnits:"strokeWidth",markerWidth:"0.7",markerHeight:`${f}`,children:(0,a.jsx)("path",{d:"M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z",fill:"#FFF"})})]}),O,!o&&(0,a.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,a.jsx)("path",{className:un("arc-blue"),d:"M30,5 C17.536025,6 6,17.536027 5,31",stroke:"#5594e2",strokeWidth:`${m-.5}px`,strokeLinecap:"round","data-testid":"circular-indicator-blue-arc"}),(0,a.jsx)("path",{className:un("arc-white"),d:"M33,5 C17.536027,5 5,17.536027 5,33",stroke:"#FFF",strokeWidth:`${m+2}px`,markerStart:"url(#inverseR)",markerEnd:"url(#inverseL)"}),I]})]});return(0,a.jsxs)("div",{className:sd("wrapper"),role:"status","aria-hidden":o||s?"false":"true",children:[x(v),t&&b]})};Ln.defaultProps={size:"m",showLabel:!1,showTooltip:!1,waiting:!1,loading:!1};const id={size:oe.A.oneOf(["xs","s","m","l","xl","xxl","xxxl"]).description("Defines the size of the indicator").defaultValue("m"),showLabel:oe.A.bool.description("Wheter the indicator displays its state on a label or not").defaultValue(!1),showTooltip:oe.A.bool.description("Wheter the indicator displays its state on a tooltip or not").defaultValue(!1),waiting:oe.A.bool.description("Defines the state of the indicator as Waiting and only displays the gray track").defaultValue(!1),loading:oe.A.bool.description("Defines the state of the indicator as Loading and displays a blue spinner animation").defaultValue(!1)};Ln.displayName="CircularProgressIndicator";const rd=(0,Ls.A)(Ln);rd.propTypes=id;var ld=Ln;const ad=()=>{const{props:{onClickOutside:e},triggerReferenceElement:t}=(0,d.useContext)(ht),n=(0,d.useRef)(null);(0,d.useLayoutEffect)(()=>{n.current?.focus()},[n]);const o=(0,d.useCallback)(s=>{(s.code==="Escape"||s.code==="ArrowLeft")&&e(s)},[e]);return(0,a.jsx)(Rl,{minWidth:t?.offsetWidth??0,justifyContent:"center",alignItems:"center","data-testid":rn.LOADING,tabIndex:0,role:"status",innerRef:n,"aria-busy":"true",onKeyDown:o,children:(0,a.jsx)(ld,{size:"l"})})},dd=()=>{const{props:e,triggerReferenceElement:t,setTriggerReferenceElement:n}=(0,d.useContext)(ht),{children:o,isOpened:s,onClickOutside:r,startPlacementPreference:l,placementOrderPreference:c,customOffset:u,wrapperStyles:p,isLoading:m,zIndex:h,as:f}=e,{"data-popover-label":g,...S}=(0,k.u)(e),{minWidth:y,minHeight:b,...x}=(0,V.d)(e),O=I=>{[...document.body.querySelectorAll(`[data-testid="${rn.MENU_WRAPPER}"]`)].every(w=>!w.contains(I.target))&&r(I)};return(0,a.jsxs)(Cl,{"data-testid":`${rn.TRIGGER_WRAPPER}`,innerRef:n,"aria-haspopup":"listbox",...p,...S,...x,as:f,children:[o,t&&(0,a.jsx)(Ml.B2,{referenceElement:t,showPopover:s,withoutArrow:!0,withoutAnimation:!0,customOffset:u,onClickOutside:O,startPlacementPreference:l,placementOrderPreference:c,zIndex:h,"aria-label":g||"dropdown-menu popover",children:m?(0,a.jsx)(ad,{}):(0,a.jsx)(Za,{})})]})},Wn=e=>{const t=El(e,Wn);return(0,a.jsx)(ht.Provider,{value:t,children:(0,a.jsx)(dd,{})})};Wn.displayName="DSDropdownMenuV2";const cd=(0,W.A)(Wn).description("Dropdown Menu");cd.propTypes=Ss;const ud={only:"ds-pill-button-only",left:"ds-pill-button-left",right:"ds-pill-button-right"},pn=e=>{const{children:t,...n}=e,o=(0,J.b)(n,po);(0,$.D)(o,ys,hs);const{type:s,onClick:r,applyAriaDisabled:l,...c}=o,u=(0,d.useCallback)(p=>{l||r&&r(p)},[r,l]);return(0,a.jsx)(il,{...c,buttonType:"raw",className:`${ud[s]} ${c.className??""}`,type:"button",onClick:u,"aria-disabled":l,children:t})};pn.displayName=hs;const pd=(0,W.A)(pn).description("Pill button");pd.propTypes=ys;const wt=d.memo(({labelTruncated:e,label:t})=>e?(0,a.jsx)(Kn.n,{value:t}):t),md=d.memo(({label:e,size:t,labelTruncated:n,dropdownProps:o,innerRef:s,ariaLabel:r,onDropdownClick:l})=>{const c=(0,d.useRef)(null),u=(0,d.useMemo)(()=>`ds-pill-${(0,ie.L)()}`,[]);return(0,a.jsxs)(ps,{pillSize:t,id:u,className:"ds-pill-wrapper ds-pill-wrapper-dropdown","data-testid":"ds-pill-wrapper",cols:["auto","minmax(24px, auto)"],gutter:"2px",alignItems:"center",justifyItems:"center",children:[(0,a.jsx)(wt,{labelTruncated:n,label:e}),(0,a.jsx)(Wn,{placementOrderPreference:["bottom-start","bottom","bottom-end","right-end","top-start","top","top-end"],...o,onClickOutside:p=>{"code"in p&&p.code==="Escape"&&c.current?.focus(),o.onClickOutside&&o.onClickOutside(p)},wrapperStyles:{w:"100%",h:"100%"},children:(0,a.jsx)(pn,{className:"ds-pill-focus-point","data-testid":"ds-pill-dropdown-chevron",innerRef:(0,Do.Px)(c,s),"aria-label":r||e,type:"right",onClick:l,children:(0,a.jsx)(Yn.A,{color:["brand-primary","800"],width:20,height:20})})})]})}),hd=e=>e==="m"?{small:["1.5rem"],medium:["1.846rem"]}:{small:["1.125rem"],medium:["1.3846rem"]},fd=e=>e==="m"?{small:["auto","minmax(1.5rem, auto)"],medium:["auto","minmax(1.846rem, auto)"]}:{small:["auto","minmax(1.125rem, auto)"],medium:["auto","minmax(1.3846rem, auto)"]},bd=d.memo(({label:e,size:t,labelTruncated:n,innerRef:o,ariaLabel:s,menuButtonProps:r})=>{const l=(0,d.useMemo)(()=>`ds-pill-${(0,ie.L)()}`,[]);if(!r)throw console.log("menuButtonProps",r),new Error("menuButtonProps was not provided");if(Object.keys(r).length===0)throw console.log("menuButtonProps",r),new Error("menuButtonProps is empty");const{width:c=po.width,height:u=po.height}=r,p=(0,d.useMemo)(()=>hd(t),[t]),m=(0,d.useMemo)(()=>fd(t),[t]),h=(0,d.useMemo)(()=>({width:`${c}`,height:`${u}`}),[u,c]),f=s||e;return(0,a.jsxs)(ps,{pillSize:t,id:l,className:"ds-pill-wrapper ds-pill-wrapper-dropdown","data-testid":"ds-pill-wrapper",cols:m,rows:p,gutter:"2px",alignItems:"center",justifyItems:"center",children:[(0,a.jsx)(wt,{labelTruncated:n,label:e}),(0,a.jsx)(rl,{innerRef:o,"aria-label":f,dsMenubuttonRoot:h,...r,"data-testid":"ds-pill-menu-button-chevron",buttonType:"raw",className:"ds-pill-button-right ds-pill-focus-point",type:"button",width:`${c}`,height:`${u}`,children:(0,a.jsx)(Yn.A,{color:["brand-primary","800"]})})]})});var gd=P("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/SvgIcon.js"),Fs=e=>(0,a.jsx)(gd.Ah,{...e,viewBox:"0 0 20 20",children:(0,a.jsx)("path",{d:"M13.071 13.289l-2.828-2.828 2.828-2.828-.707-.707-2.828 2.828-2.828-2.828-.707.707 2.828 2.828-2.828 2.828.707.707 2.828-2.828 2.828 2.828z"})});const yd=d.memo(({label:e,size:t,inputPlaceholder:n,inputWidth:o,inputRender:s,onInputChange:r,onInputClear:l,innerRef:c,hasError:u,inputId:p})=>{const m=(0,d.useRef)(null),h=(0,d.useMemo)(()=>s,[s]),f=(0,d.useMemo)(()=>p??`ds-pill-${(0,ie.L)()}`,[p]),g=(0,d.useCallback)(b=>{("code"in b&&["Enter","Space"].includes(b.code)||!("code"in b))&&(b.preventDefault(),l?.(b),m.current?.focus())},[l]),[S,y]=(0,d.useState)(!1);return(0,a.jsxs)(el,{pillSize:t,className:"ds-pill-wrapper","data-testid":"ds-pill-wrapper",cols:e===""?["auto"]:["auto","24px"],inputWidth:o,value:e??"",inputHasFocus:S,hasError:u,children:[(0,a.jsx)(h,{id:f,className:"ds-pill-focus-point","data-testid":"ds-pill-input",innerRef:b=>{m.current=b},value:e,onChange:r,placeholder:n,onFocus:()=>y(!0),onBlur:()=>y(!1),disableTooltip:!1}),e!==""&&(0,a.jsx)(pn,{id:f,"data-testid":"ds-pill-clear-icon",innerRef:c,onClick:g,"aria-label":"Clear input",type:"right",children:(0,a.jsx)(Fs,{size:"s",color:["brand-primary","700"]})})]})}),xd=d.memo(({label:e,size:t,labelTruncated:n,iconLeft:o,IconLeft:s,ariaLabel:r})=>(0,a.jsxs)(Zr,{pillSize:t,alignItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-label","data-testid":"ds-pill-wrapper","data-label":r||e,cols:[(o||s)&&"min-content","auto"].filter(l=>l),gutter:"xxxs",hasIcon:(o||s)!==null,role:"group","aria-label":e,children:[s?(0,a.jsx)(s,{label:e}):o,(0,a.jsx)(wt,{labelTruncated:n,label:e})]})),Sd=d.memo(({label:e,size:t,labelTruncated:n,iconLeft:o,IconLeft:s,ariaLabel:r,applyAriaDisabled:l,readOnly:c,trailingComma:u})=>(0,a.jsxs)(Jr,{pillSize:t,alignItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-label","data-testid":"ds-pill-wrapper","data-label":r||e,cols:[(o||s)&&"min-content","auto"].filter(p=>p),gutter:"xxxs",hasIcon:(o||s)!==null,role:"group","aria-label":e,applyAriaDisabled:l,readOnly:c,children:[s?(0,a.jsx)(s,{label:e}):o,(0,a.jsx)(wt,{labelTruncated:n,label:`${e}${u?",":""}`})]})),Id=d.memo(({label:e,size:t,labelTruncated:n,iconLeft:o,iconRight:s,ariaLabel:r,IconLeft:l,IconRight:c})=>{const u=o!==null||s!==null&&e==="",p=s!==null||o!==null&&e==="",m=l!==null||c!==null&&e==="",h=c!==null||l!==null&&e==="";return(0,a.jsxs)(tl,{pillSize:t,alignItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-readonly","data-testid":"ds-pill-wrapper","data-label":r||e,cols:[(o||l)&&"min-content",e&&"auto",(s||c)&&"min-content"].filter(f=>f),gutter:"xxxs",hasIconRight:p||h,hasIconLeft:u||m,children:[l?(0,a.jsx)(l,{label:e}):o,e?(0,a.jsx)(wt,{labelTruncated:n,label:e}):null,c?(0,a.jsx)(c,{label:e}):s]})}),Ad=d.memo(({label:e,size:t,disabled:n,labelTruncated:o,onRemove:s,innerRef:r,ariaLabel:l,tabIndex:c,applyAriaDisabled:u})=>{const{onKeyboardRemove:p,onKeyboardNavigation:m}=(0,d.useContext)(xs),h=(0,d.useMemo)(()=>`ds-pill-${(0,ie.L)()}`,[]),f=(0,d.useCallback)(y=>{if(["Enter","Space"].includes(y.code)){if(u)return;y.preventDefault(),p&&p(h)}y.code==="ArrowLeft"&&(y.preventDefault(),m&&m(h,-1,y)),y.code==="ArrowRight"&&(y.preventDefault(),m&&m(h,1,y))},[p,m,h,u]),g=(0,d.useCallback)(y=>{u||s&&s(y)},[s,u]),S=(0,d.useMemo)(()=>n||u?["auto"]:["auto","minmax(24px, auto)"],[n,u]);return(0,a.jsxs)(nl,{pillSize:t,cols:S,disabled:n,applyAriaDisabled:u,gutter:"2px",alignItems:"center",justifyItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-removable","data-testid":"ds-pill-wrapper","data-label":l||e,children:[(0,a.jsx)(wt,{labelTruncated:o,label:e}),!n&&!u?(0,a.jsx)(pn,{className:"ds-pill-focus-point",id:h,"data-testid":"ds-pill-close-icon",innerRef:r,onClick:g,onKeyDown:f,"aria-label":`Remove ${e}`,type:"right",tabIndex:c,applyAriaDisabled:u,children:(0,a.jsx)(Fs,{width:t==="s"?18:22.65,height:t==="s"?18:22.65,color:["brand-primary","700"]})}):null]})}),$s=18,Vs=.25,mn=$s/13,Od=Vs/13,hn=$s/16,vd=Vs/16,Fn=mn-Od,$n=hn-vd,Bs=e=>e.startsWith("top")||e.startsWith("bottom"),Hs=e=>e.startsWith("left")||e.startsWith("right"),wd=(0,T.I)("div",{name:ke,slot:it.ARROW})`
603
+ line-height: 0;
604
+ position: absolute;
605
+ width: ${hn}rem;
606
+ height: ${hn}rem;
607
+ pointer-events: none;
608
+ background-color: transparent;
609
+ & .stroke {
610
+ fill: rgb(105, 116, 137);
611
+ fill-opacity: 0.4;
612
+ }
613
+ & .fill {
614
+ fill: rgb(255, 255, 255);
615
+ }
616
+
617
+ &[data-placement^='top'] {
618
+ svg {
619
+ transform: rotateZ(180deg);
620
+ }
621
+ bottom: -${$n}rem;
622
+ left: ${e=>e["data-placement"].endsWith("start")?"25%":e["data-placement"].endsWith("end")?"75%":""};
623
+ }
624
+ &[data-placement^='right'] {
625
+ svg {
626
+ transform: rotateZ(-90deg);
627
+ }
628
+ left: -${$n}rem;
629
+ }
630
+ &[data-placement^='bottom'] {
631
+ top: -${$n}rem;
632
+ left: ${e=>e["data-placement"].endsWith("start")?"25%":e["data-placement"].endsWith("end")?"75%":""};
633
+ }
634
+ &[data-placement^='left'] {
635
+ svg {
636
+ transform: rotateZ(90deg);
637
+ }
638
+ right: -${$n}rem;
639
+ }
640
+ margin-left: ${e=>Bs(e["data-placement"])?`-${hn/2}rem`:"0"};
641
+ margin-top: ${e=>Hs(e["data-placement"])?`-${hn/2}rem`:"0"};
642
+
643
+ @media (min-width: ${({theme:e})=>e.breakpoints.small}) {
644
+ width: ${mn}rem;
645
+ height: ${mn}rem;
646
+
647
+ &[data-placement^='top'] {
648
+ bottom: -${Fn}rem;
649
+ }
650
+
651
+ &[data-placement^='bottom'] {
652
+ top: -${Fn}rem;
653
+ }
654
+
655
+ &[data-placement^='left'] {
656
+ right: -${Fn}rem;
657
+ }
658
+
659
+ &[data-placement^='right'] {
660
+ left: -${Fn}rem;
661
+ }
662
+
663
+ margin-left: ${e=>Bs(e["data-placement"])?`-${mn/2}rem`:"0"};
664
+
665
+ margin-top: ${e=>Hs(e["data-placement"])?`-${mn/2}rem`:"0"};
666
+ }
667
+ `,Td=(0,T.I)("path",{name:ke,slot:it.ARROW_SHADOW})``,Ed=(0,T.I)("path",{name:ke,slot:it.ARROW_FILL})``,Md=({placement:e,style:t,arrowElementRef:n,...o})=>{const s=(0,K.j)(o),r=(0,k.u)(o),l=(0,V.d)(o);return(0,a.jsx)(wd,{"data-placement":e,style:t,innerRef:n,"data-testid":"ds-tooltip-arrow","aria-hidden":"true",...s,...r,...l,children:(0,a.jsxs)("svg",{viewBox:"0 0 30 30",children:[(0,a.jsx)(Td,{...s,className:"stroke",d:`M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26
668
+ C26.7,29,24.6,28.1,23.7,27.1z`}),(0,a.jsx)(Ed,{...s,className:"fill",d:"M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"})]})},"popper-arrow")},Pd=["top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Cd=["left","right","center","justify","initial","inherit"],Us="DSTooltipV3",ku={TOP:"top",BOTTOM:"bottom",RIGHT:"right",LEFT:"left",TOP_START:"top-start",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",RIGHT_START:"right-start",RIGHT_END:"right-end",LEFT_START:"left-start",LEFT_END:"left-end"},zs={text:i.A.string.description("Tooltip text to be displayed on hover/focus. If both `text` and `Text` are provided, only `Text` will take precedence.").isRequiredIf(e=>!e.Text),textAlign:i.A.oneOf(Cd).description("Tooltip text alignment").defaultValue("left"),applyTooltipOverflowWrap:i.A.bool.description("when a tooltip is present, the tooltip text may be too long to fit in the pill. If true, the tooltip will wrap to the next line using overflow-wrap").defaultValue(!1),wrapWords:i.A.bool.description("Break words into a new line. Useful when words exceed tooltip max-lenght.").defaultValue(!1),children:i.A.node.description("Element to tie the tooltip to, must be a single node").isRequired,withoutPortal:i.A.bool.description("Whether or not the tooltip content should appear in a DOM portal or not").defaultValue(!0),withoutArrow:i.A.bool.description("Whether or not the tooltip should use the arrow").defaultValue(!1),withoutAnimation:i.A.bool.description("Whether or not the popper context menu should be animated").defaultValue(!1),animationDuration:i.A.number.description("Popper context menus Animation duration in ms").defaultValue(100),portalDOMContainer:i.A.oneOfType([i.A.node,i.A.oneOf([null])]).description("When using portal, the container in which to append the DOM content, defaults to document body").defaultValue(void 0),startPlacementPreference:i.A.oneOf(Pd).description("start placement preferences, as per popperjs placement option").defaultValue("'top'"),customOffset:i.A.arrayOf(i.A.number).description("placement offset array").defaultValue([0,14]),id:i.A.string.description("Optional id appended to data-testid").defaultValue(""),onOpen:i.A.func.description("Optional callback to be invoked when the tooltip opens").defaultValue("() => {}"),onClose:i.A.func.description("Optional callback to be invoked when the tooltip closes").defaultValue("() => {}"),showPopover:i.A.bool.description("Whether or not the tooltip should be always shown"),Text:i.A.func.description("Custom component to be displayed in the tooltip, will receive textProps as props. If both `text` and `Text` are provided, only `Text` will take precedence.").isRequiredIf(e=>!e.text),textProps:i.A.object.description("Props to be passed to the custom Text component, if provided, used mainly to avoiding inline components definition to improve performance")},Dd=zs,vo={TRIGGER_WRAPPER:"ds-tooltip-v3-trigger-wrapper",TOOLTIP_TEXT_WRAPPER:"ds-tooltip-v3-tooltip-text-wrapper",OPINIONATED_TEXT_WRAPPER:"ds-tooltip-v3-opinionated-text-wrapper"},_d=T.I.div`
669
+ text-align: center;
670
+ min-width: ${({theme:e})=>e.space.l};
671
+ max-width: 250px;
672
+ min-height: 30px;
673
+ display: grid;
674
+ align-items: center;
675
+ padding: ${({theme:e})=>`${e.space.xxxs} ${e.space.xs}`};
676
+ position: relative;
677
+ background-color: white;
678
+ border-radius: 2px;
679
+ font-size: 13px;
680
+ color: ${({theme:e})=>e.colors.neutral[600]};
681
+ `,Rd=T.I.div`
682
+ display: inline-block;
683
+ text-align: ${({textAlign:e})=>e};
684
+
685
+ ${({wrapWords:e,$applyTooltipOverflowWrap:t})=>t?`overflow-wrap: break-word;
686
+ white-space: pre-wrap;
687
+ min-width: 0px;`:e?`white-space: pre-wrap;
688
+ word-break: break-all;
689
+ overflow-wrap: break-word;`:`white-space: normal;
690
+ overflow-wrap: break-word;`};
691
+ `,kd=T.I.div`
692
+ position: absolute;
693
+ top: -15px;
694
+ right: -15px;
695
+ width: calc(100% + 30px);
696
+ height: calc(100% + 30px);
697
+ z-index: -1;
698
+ `,Nd=T.I.div`
699
+ display: inline-flex;
700
+ width: 100%;
701
+ `,Gs=()=>{},jd={onOpen:Gs,onClose:Gs,id:"",textAlign:"left",wrapWords:!1,startPlacementPreference:"top",applyTooltipOverflowWrap:!1,customOffset:[0,12]},Ld=(e,t)=>{(0,$.D)(e,t,Us)},Wd=e=>{const t=(0,J.b)(e,jd);Ld(t,zs);const n=(0,V.d)(t),o=d.useMemo(()=>`ds-tooltip-v3-${(0,ie.L)(5)}`,[]);return d.useMemo(()=>({propsWithDefault:t,xstyledProps:n,instanceUid:o}),[t,n,o])},wo=e=>{const{propsWithDefault:t}=Wd(e),{text:n,startPlacementPreference:o,children:s,onOpen:r,onClose:l,id:c,textAlign:u,wrapWords:p,withoutArrow:m,customOffset:h,animationDuration:f,withoutAnimation:g,withoutPortal:S,portalDOMContainer:y,applyTooltipOverflowWrap:b,showPopover:x,Text:O,textProps:I}=t,{handlers:v,arrowStyles:w,floatingStyles:C,isOpen:E,refs:R,context:_}=he({placement:o,customOffset:h,onOpen:r,onClose:l,withoutPortal:S,withoutAnimation:g,portalDOMContainer:y,animationDuration:f,externallyControlledIsOpen:x}),B=d.useMemo(()=>x!==void 0?x:E,[x,E]);return(0,a.jsxs)(Nd,{...v,innerRef:R.setReference,"data-testid":`${vo.TRIGGER_WRAPPER}${c!==""?`_${c}`:""}`,children:[(0,a.jsxs)(Qt,{innerRef:R.setFloating,isOpen:B,floatingStyles:C,context:_,children:[(0,a.jsxs)(_d,{"data-testid":vo.TOOLTIP_TEXT_WRAPPER,children:[O?(0,a.jsx)(O,{...I}):(0,a.jsx)(Rd,{"data-testid":vo.OPINIONATED_TEXT_WRAPPER,textAlign:u,wrapWords:p,$applyTooltipOverflowWrap:b,children:n}),(0,a.jsx)(kd,{})]}),m?null:(0,a.jsx)(Md,{...w})]}),s]})};wo.displayName=Us;const Fd=(0,W.A)(wo);Fd.propTypes=Dd;var Nu=null;const $d=d.memo(({label:e,size:t,labelTruncated:n,disabled:o,tooltipValue:s,iconLeft:r,ariaLabel:l,applyAriaDisabled:c,readOnly:u,applyTooltipOverflowWrap:p,trailingComma:m})=>(0,a.jsxs)(Qr,{disabled:o,pillSize:t,alignItems:"center",className:"ds-pill-wrapper ds-pill-wrapper-value","data-testid":"ds-pill-wrapper",cols:[r&&"min-content","auto"].filter(h=>h),gutter:"xxxs",hasIcon:r!==null,"data-label":l||e,applyAriaDisabled:c,readOnly:u,children:[r,s!==""?(0,a.jsx)(wo,{text:s??"",applyTooltipOverflowWrap:p,children:(0,a.jsx)(sl,{className:"ds-pill-tooltip-value","aria-disabled":c,tabIndex:0,children:e})}):(0,a.jsx)(wt,{labelTruncated:n,label:`${e}${m?",":""}`})]})),Vd={dropdown:md,menubutton:bd,input:yd,label:xd,labelOnly:Sd,readonly:Id,removable:Ad,value:$d},Vn=e=>{const t=(0,J.b)(e,al);(0,$.D)(t,gs,ms);const{type:n}=t,o=Vd[n];return(0,a.jsx)(o,{...t})};Vn.displayName=ms;const Bd=(0,W.A)(Vn).description("Pill");Bd.propTypes=gs;const To=e=>{const[t,n]=(0,d.useState)(e.current?.offsetWidth??0),[o,s]=(0,d.useState)(e.current?.offsetHeight??0),r=(0,d.useRef)();return(0,d.useEffect)(()=>{function l(){n(e.current?.offsetWidth??0),s(e.current?.offsetHeight??0)}r.current=new ResizeObserver(l);const c=e.current;return c&&r.current.observe(c),()=>{c&&r.current?.disconnect()}},[e]),(0,d.useMemo)(()=>({width:t,height:o}),[t,o])},Hd=e=>e===0?0:8*(e.toString().length-1)+31,Ud=()=>{const{props:{selectedValues:e,isNonClearable:t,disabled:n,innerRef:o,applyAriaDisabled:s},selectedOptionsRef:r,controlsWrapperRef:l,pillGroupRef:c}=(0,d.useContext)(Pe),u=e,p=Math.min(30,u.length),[m,h]=(0,d.useState)(p),{width:f}=To(l),{width:g}=To(o||null);return(0,d.useEffect)(()=>{p!==m&&h(p)},[p,f,g]),(0,d.useLayoutEffect)(()=>{if(r.current&&c.current){c.current&&(c.current.style.width="max-content");let S=-1,y=0;const b=r.current.offsetWidth;if([...c.current.querySelectorAll(n||s||t?".ds-pill-wrapper-value":".ds-pill-wrapper-removable, .ds-pill-wrapper-label")].map(I=>I?.offsetWidth).forEach((I,v)=>{y+=I,y+Hd(p-v-1)<=b&&(S=v)}),!(p>0&&m!==p)){const I=S+1;I!==m&&h(I)}c.current&&(c.current.style.width="fit-content")}},[r,o,u,m,c,f,g,n,s,p,t]),m||1},zd=e=>{const{pill:t,trailingComma:n}=e,{props:{onChange:o,isNonClearable:s,disabled:r,selectedValues:l,applyAriaDisabled:c,readOnly:u},internalRef:p}=(0,d.useContext)(Te),m=d.useMemo(()=>r||s?"value":c||u?"labelOnly":"removable",[r,s,c,u]);return(0,a.jsx)(Vn,{size:"s",label:t.label,disabled:r,type:m,applyAriaDisabled:c||t.applyAriaDisabled,readOnly:u,trailingComma:n,tabIndex:-1,onRemove:h=>{u||(h.stopPropagation(),o(ot(t,l),t,h),p.current?.focus())}},t.value)},Gd=()=>{const{props:{selectedValues:e,disabled:t,applyAriaDisabled:n,readOnly:o},pillGroupRef:s}=(0,d.useContext)(Te),r=e,l=Ud();return(0,d.useMemo)(()=>(0,a.jsx)("div",{style:{width:r.length>0?"max-content":"0px"},"data-testid":He.SELECTED_VALUES,children:(0,a.jsxs)(mo,{innerRef:s,children:[r.length>0&&r.slice(0,l).map((c,u)=>(0,a.jsx)(zd,{pill:c,trailingComma:(t||n||o)&&u+1<l||r.length>0&&l!==r.length},c.dsId)),r.length>0&&l!==r.length&&(0,a.jsx)(Vn,{size:"s",labelTruncated:!1,label:`+${r.length-l}`,type:"value",disabled:t,applyAriaDisabled:n,readOnly:o},"grouped")]})}),[s,r,l,t,n,o])},Kd=(0,we.AH)`
702
+ border: 1px solid ${({theme:e})=>e.colors.neutral["080"]};
703
+ border-bottom: 1px solid ${({theme:e})=>e.colors.neutral[400]};
704
+ `,Yd=(0,we.AH)`
705
+ border: 1px solid ${({hasError:e,theme:t})=>e?t.colors.danger[900]:t.colors.neutral[400]};
706
+ ${({readOnly:e,applyAriaDisabled:t})=>e||t?Kd:""}
707
+ `,Xd=(0,we.AH)`
708
+ background: ${({disabled:e,applyAriaDisabled:t,readOnly:n,theme:o})=>n||t?o.colors.neutral["050"]:e?o.colors.neutral["080"]:"#ffffff"};
709
+ `,qd=(0,we.AH)`
710
+ outline: 2px solid ${({theme:e})=>e.colors.brand[700]};
711
+ outline-offset: -2px;
712
+ `,Zd=(0,we.AH)`
713
+ border: 1px solid ${({theme:e})=>e.colors.brand[600]};
714
+ `,Jd=(0,T.I)(Z.Ay,{name:Q,slot:X.INPUT_WRAPPER})`
715
+ ${Xd}
716
+ position: relative;
717
+ border-radius: 2px;
718
+ min-width: ${({minWidth:e,inline:t})=>t||!e?"":`${e}px`};
719
+ align-items: center;
720
+ align-content: center;
721
+ min-height: 28px;
722
+ padding: 3px 0px 3px 8px;
723
+ @media (max-width: ${ts.th.breakpoint("small")}) {
724
+ padding: 1.25px 0px 1.25px 8px;
725
+ }
726
+ margin: ${({inline:e})=>e?"10px 16px":""};
727
+ ${Yd}
728
+ &:hover {
729
+ ${({disabled:e})=>e?"":Zd}
730
+ }
731
+ &:focus-within {
732
+ ${qd}
733
+ }
734
+ `,Qd=T.I.div`
735
+ display: flex;
736
+ width: 100%;
737
+ align-items: center;
738
+ color: ${({disabled:e,readOnly:t,theme:n})=>e||t?n.colors.neutral[600]:n.colors.neutral[700]};
739
+ user-select: ${({disabled:e,applyAriaDisabled:t})=>e||t?"none":""};
740
+ `,ec=T.I.div`
741
+ font-size: 1rem;
742
+ margin-right: 3px;
743
+ display: flex;
744
+ `,tc=(0,T.I)(Z.Ay)`
745
+ height: 100%;
746
+ .em-ds-button--text:focus::after {
747
+ border: none;
748
+ }
749
+ `,ju=T.I.div``,nc=T.I.span`
750
+ height: 100%;
751
+ width: 1px;
752
+ background-color: ${({theme:e})=>e.colors.neutral[400]};
753
+ `,oc=()=>{const{internalRef:e,inputValue:t,hasFocus:n,setMenuState:o,selectedOptionsRef:s,props:{applyAriaDisabled:r,readOnly:l,isMenuOpenableWithReadOnly:c}}=(0,d.useContext)(Te),u=".ds-pill-wrapper-removable button";return{onKeyDownPills:(0,d.useCallback)(m=>{if(!(r||l&&!c)&&(m.key==="ArrowLeft"||m.key==="ArrowRight"||m.key==="ArrowUp"||m.key==="ArrowDown")&&t===""){if(m.key==="ArrowUp"||m.key==="ArrowDown"){e.current?.focus(),o(!0,"open",m);return}if(m.key==="ArrowLeft"){const h=s.current?.querySelectorAll(u);n&&h&&h[h.length-1]?.focus()}m.key==="ArrowRight"&&(m.preventDefault(),e.current?.focus())}},[t,e,o,s,n,r,l,c])}},sc=()=>{const{props:e,props:{inline:t,disabled:n,hasError:o,selectedValues:s,applyAriaDisabled:r,readOnly:l,isMenuOpenableWithReadOnly:c},selectedOptionsRef:u,setMenuState:p,setFocusOptionIdx:m,hasFocus:h,inputValue:f,listRef:g,focusOptionIdx:S,menuState:y,controlsWrapperRef:b,internalRef:x,shouldPreventContextMenuOpening:O}=(0,d.useContext)(Te),{getOwnerProps:I,getOwnerPropsArguments:v}=(0,K.j)(e),w=(0,d.useCallback)(()=>{if(!n){if(r||O){x.current?.focus();return}if(h&&y&&!t){p(!1,"click"),m(""),x.current?.blur();return}x.current?.focus(),p(!0,"click")}},[n,g,h,y,t,p,S,l,r,c]),C=(0,d.useCallback)(B=>{r||(y||n||O?B.stopPropagation():(x.current?.focus(),p(!0,"pill-click")))},[r,y,n,x,p,O]),E=(0,d.useCallback)(B=>{(document.activeElement===x.current||t)&&B.preventDefault()},[x,t]),{onKeyDownPills:R}=oc(),_=(0,d.useMemo)(()=>t?["minmax(0px, auto)"]:["minmax(0px,max-content)","minmax(20px, auto)","8px","2.231rem"],[t]);return(0,a.jsxs)(Jd,{getOwnerProps:I,getOwnerPropsArguments:v,innerRef:b,readOnly:l,cols:_,disabled:n,applyAriaDisabled:r,hasError:o,inline:t,onClick:w,onMouseDown:E,onKeyDown:R,"aria-disabled":r,"data-testid":He.CONTROLS_WRAPPER,children:[!t&&(0,a.jsx)(ec,{innerRef:u,onClick:C,children:Array.isArray(s)?(0,a.jsx)(Gd,{}):(0,a.jsx)(Qd,{readOnly:l,"data-testid":He.SELECTED_VALUES,disabled:n,applyAriaDisabled:r,children:s&&f===""?(0,a.jsx)(Kn.n,{value:s.label}):null})}),(0,a.jsx)(Oi,{}),(0,a.jsx)("div",{}),!t&&(0,a.jsxs)(tc,{justifyItems:"center",cols:["min-content","minmax(28px,max-content)"],justifyContent:"flex-end",children:[(0,a.jsx)(nc,{disabled:n,applyAriaDisabled:r,readOnly:l}),(0,a.jsx)(wi,{})]})]})};function Vt(e,t,n){let o=n.initialDeps??[],s;function r(){var l,c,u,p;let m;n.key&&((l=n.debug)!=null&&l.call(n))&&(m=Date.now());const h=e();if(!(h.length!==o.length||h.some((S,y)=>o[y]!==S)))return s;o=h;let g;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(g=Date.now()),s=t(...h),n.key&&((u=n.debug)!=null&&u.call(n))){const S=Math.round((Date.now()-m)*100)/100,y=Math.round((Date.now()-g)*100)/100,b=y/16,x=(O,I)=>{for(O=String(O);O.length<I;)O=" "+O;return O};console.info(`%c\u23F1 ${x(y,5)} /${x(S,5)} ms`,`
754
+ font-size: .6rem;
755
+ font-weight: bold;
756
+ color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,n?.key)}return(p=n?.onChange)==null||p.call(n,s),s}return r.updateDeps=l=>{o=l},r}function Ks(e,t){if(e===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return e}const ic=(e,t)=>Math.abs(e-t)<=1,rc=(e,t,n)=>{let o;return function(...s){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,s),n)}};var lc;const Ys=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},ac=e=>e,dc=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let s=t;s<=n;s++)o.push(s);return o},cc=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;const s=l=>{const{width:c,height:u}=l;t({width:Math.round(c),height:Math.round(u)})};if(s(Ys(n)),!o.ResizeObserver)return()=>{};const r=new o.ResizeObserver(l=>{const c=()=>{const u=l[0];if(u?.borderBoxSize){const p=u.borderBoxSize[0];if(p){s({width:p.inlineSize,height:p.blockSize});return}}s(Ys(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return r.observe(n,{box:"border-box"}),()=>{r.unobserve(n)}},fn={passive:!0},Lu=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=()=>{t({width:n.innerWidth,height:n.innerHeight})};return o(),n.addEventListener("resize",o,fn),()=>{n.removeEventListener("resize",o)}},Bn=typeof window>"u"?!0:"onscrollend"in window,uc=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let s=0;const r=e.options.useScrollendEvent&&Bn?()=>{}:rc(o,()=>{t(s,!1)},e.options.isScrollingResetDelay),l=m=>()=>{const{horizontal:h,isRtl:f}=e.options;s=h?n.scrollLeft*(f&&-1||1):n.scrollTop,r(),t(s,m)},c=l(!0),u=l(!1);u(),n.addEventListener("scroll",c,fn);const p=e.options.useScrollendEvent&&Bn;return p&&n.addEventListener("scrollend",u,fn),()=>{n.removeEventListener("scroll",c),p&&n.removeEventListener("scrollend",u)}},Wu=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let s=0;const r=e.options.useScrollendEvent&&Bn?()=>{}:lc(o,()=>{t(s,!1)},e.options.isScrollingResetDelay),l=m=>()=>{s=n[e.options.horizontal?"scrollX":"scrollY"],r(),t(s,m)},c=l(!0),u=l(!1);u(),n.addEventListener("scroll",c,fn);const p=e.options.useScrollendEvent&&Bn;return p&&n.addEventListener("scrollend",u,fn),()=>{n.removeEventListener("scroll",c),p&&n.removeEventListener("scrollend",u)}},pc=(e,t,n)=>{if(t?.borderBoxSize){const o=t.borderBoxSize[0];if(o)return Math.round(o[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Fu=(e,{adjustments:t=0,behavior:n},o)=>{var s,r;const l=e+t;(r=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||r.call(s,{[o.options.horizontal?"left":"top"]:l,behavior:n})},mc=(e,{adjustments:t=0,behavior:n},o)=>{var s,r;const l=e+t;(r=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||r.call(s,{[o.options.horizontal?"left":"top"]:l,behavior:n})};class hc{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const o=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(r=>{const l=()=>{this._measureElement(r.target,r)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var s;(s=o())==null||s.disconnect(),n=null},observe:s=>{var r;return(r=o())==null?void 0:r.observe(s,{box:"border-box"})},unobserve:s=>{var r;return(r=o())==null?void 0:r.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([o,s])=>{typeof s>"u"&&delete n[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ac,rangeExtractor:dc,onChange:()=>{},measureElement:pc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var o,s;(s=(o=this.options).onChange)==null||s.call(o,this,n)},this.maybeNotify=Vt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,r)=>{this.scrollAdjustments=0,this.scrollDirection=r?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=r,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,o)=>{const s=new Map,r=new Map;for(let l=o-1;l>=0;l--){const c=n[l];if(s.has(c.lane))continue;const u=r.get(c.lane);if(u==null||c.end>u.end?r.set(c.lane,c):c.end<u.end&&s.set(c.lane,!0),s.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=Vt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,o,s,r,l)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:o,scrollMargin:s,getItemKey:r,enabled:l}),{key:!1}),this.getMeasurements=Vt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:o,scrollMargin:s,getItemKey:r,enabled:l},c)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(m=>{this.itemSizeCache.set(m.key,m.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,u);for(let m=u;m<n;m++){const h=r(m),f=this.options.lanes===1?p[m-1]:this.getFurthestMeasurement(p,m),g=f?f.end+this.options.gap:o+s,S=c.get(h),y=typeof S=="number"?S:this.options.estimateSize(m),b=g+y,x=f?f.lane:m%this.options.lanes;p[m]={index:m,start:g,size:y,end:b,key:h,lane:x}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Vt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,o,s,r)=>this.range=n.length>0&&o>0?fc({measurements:n,outerSize:o,scrollOffset:s,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Vt(()=>{let n=null,o=null;const s=this.calculateRange();return s&&(n=s.startIndex,o=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,o]},(n,o,s,r,l)=>r===null||l===null?[]:n({startIndex:r,endIndex:l,overscan:o,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const o=this.options.indexAttribute,s=n.getAttribute(o);return s?parseInt(s,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(n,o)=>{const s=this.indexFromElement(n),r=this.measurementsCache[s];if(!r)return;const l=r.key,c=this.elementsCache.get(l);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(l,n)),n.isConnected&&this.resizeItem(s,this.options.measureElement(n,o,this))},this.resizeItem=(n,o)=>{const s=this.measurementsCache[n];if(!s)return;const r=this.itemSizeCache.get(s.key)??s.size,l=o-r;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,l,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,o)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,s)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(s))});return}this._measureElement(n,void 0)},this.getVirtualItems=Vt(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,o)=>{const s=[];for(let r=0,l=n.length;r<l;r++){const c=n[r],u=o[c];s.push(u)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return Ks(o[Xs(0,o.length-1,s=>Ks(o[s]).start,n)])},this.getOffsetForAlignment=(n,o,s=0)=>{const r=this.getSize(),l=this.getScrollOffset();o==="auto"&&(o=n>=l+r?"end":"start"),o==="center"?n+=(s-r)/2:o==="end"&&(n-=r);const c=this.getTotalSize()-r;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,o="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.measurementsCache[n];if(!s)return;const r=this.getSize(),l=this.getScrollOffset();if(o==="auto")if(s.end>=l+r-this.options.scrollPaddingEnd)o="end";else if(s.start<=l+this.options.scrollPaddingStart)o="start";else return[l,o];const c=o==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,o,s.size),o]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:o="start",behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,o),{adjustments:void 0,behavior:s})},this.scrollToIndex=(n,{align:o="auto",behavior:s}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(n,o);if(!r)return;const[l,c]=r;this._scrollToOffset(l,{adjustments:void 0,behavior:s}),s!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const p=this.getOffsetForIndex(n,c);if(!p)return;const[m]=p,h=this.getScrollOffset();ic(m,h)||this.scrollToIndex(n,{align:c,behavior:s})}else this.scrollToIndex(n,{align:c,behavior:s})}))},this.scrollBy=(n,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var n;const o=this.getMeasurements();let s;if(o.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((n=o[o.length-1])==null?void 0:n.end)??0;else{const r=Array(this.options.lanes).fill(null);let l=o.length-1;for(;l>=0&&r.some(c=>c===null);){const c=o[l];r[c.lane]===null&&(r[c.lane]=c.end),l--}s=Math.max(...r.filter(c=>c!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:o,behavior:s})=>{this.options.scrollToFn(n,{behavior:s,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Xs=(e,t,n,o)=>{for(;e<=t;){const s=(e+t)/2|0,r=n(s);if(r<o)e=s+1;else if(r>o)t=s-1;else return s}return e>0?e-1:0};function fc({measurements:e,outerSize:t,scrollOffset:n,lanes:o}){const s=e.length-1,r=u=>e[u].start;if(e.length<=o)return{startIndex:0,endIndex:s};let l=Xs(0,s,r,n),c=l;if(o===1)for(;c<s&&e[c].end<n+t;)c++;else if(o>1){const u=Array(o).fill(0);for(;c<s&&u.some(m=>m<n+t);){const m=e[c];u[m.lane]=m.end,c++}const p=Array(o).fill(n+t);for(;l>=0&&p.some(m=>m>=n);){const m=e[l];p[m.lane]=m.start,l--}l=Math.max(0,l-l%o),c=Math.min(s,c+(o-1-c%o))}return{startIndex:l,endIndex:c}}var bc,gc,yc;const qs=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Zs(e){const t=d.useReducer(()=>({}),{})[1],n={...e,onChange:(s,r)=>{var l;r?(0,Oe.flushSync)(t):t(),(l=e.onChange)==null||l.call(e,s,r)}},[o]=d.useState(()=>new hc(n));return o.setOptions(n),qs(()=>o._didMount(),[]),qs(()=>o._willUpdate()),o}function xc(e){return Zs({observeElementRect:cc,observeElementOffset:uc,scrollToFn:mc,...e})}function $u(e){return Zs({getScrollElement:()=>typeof document<"u"?window:null,observeElementRect:bc,observeElementOffset:gc,scrollToFn:yc,initialOffset:()=>typeof document<"u"?window.scrollY:0,...e})}const Sc={estimateSize:()=>36},Js={actionRef:i.A.shape({current:i.A.oneOfType([i.A.oneOf([null]),i.A.shape({scrollTo:i.A.func.description("Scroll to a index inside the list").signature("((index: number, { align: 'start' | 'center' | 'end' | 'auto' }) => void)")})])}).description("mutable reference where methods will be stored"),ItemRenderer:i.A.oneOfType([i.A.object,i.A.func]).isRequired.description("Render function for each item"),count:i.A.number.isRequired.description("Number of items to render"),extraItemProps:i.A.object.description("Extra props to pass to each item"),getId:i.A.func.isRequired.description("Function to get the key for each item"),estimateSize:i.A.func.description("Function to estimate the size of each item")},Bt="DSFastlist",Hn={CONTAINER:"container",WRAPPER_LIST:"wrapper-list",ITEM:"item"},Vu=(0,Be.lD)(Bt,Hn),Ic=(e,t)=>{(0,$.D)(e,t,Bt)},Ac=e=>{const t=(0,J.b)(e,Sc);Ic(t,Js);const{actionRef:n,count:o,estimateSize:s}=t,r=d.useRef(null),l=xc({count:o,getScrollElement:()=>r.current,overscan:15,estimateSize:s}),c=l.getTotalSize();d.useEffect(()=>{n&&n.current&&(n.current.scrollTo=l.scrollToIndex)},[n,l]);const u=d.useMemo(()=>`ds-fast-list-${(0,ie.L)(6)}${o}`,[o]);return d.useMemo(()=>({instanceUid:u,parentRef:r,getVirtualItems:l.getVirtualItems,totalSize:c,measureElement:l.measureElement}),[l.getVirtualItems,l.measureElement,c,u])},Oc=(0,T.I)("div",{name:Bt,slot:Hn.WRAPPER_LIST})`
757
+ width: 100%;
758
+ position: relative;
759
+ `,vc=(0,T.I)("div",{name:Bt,slot:Hn.ITEM})`
760
+ position: absolute;
761
+ top: 0;
762
+ left: 0;
763
+ width: 100%;
764
+ `,wc=(0,T.I)("div",{name:Bt,slot:Hn.CONTAINER})`
765
+ overflow: auto;
766
+ width: 100%;
767
+ height: 100%;
768
+ padding-bottom: 0;
769
+ `,Tc=e=>{const{parentRef:t,getVirtualItems:n,totalSize:o,instanceUid:s,measureElement:r}=Ac(e),{ItemRenderer:l,extraItemProps:c,getId:u}=e,p=n(),m=d.useCallback(g=>r(g),[r]),h=(0,d.useCallback)(()=>e,[e]),f=(0,k.u)(e);return(0,a.jsx)(wc,{innerRef:t,tabIndex:-1,getOwnerProps:h,...f,children:(0,a.jsx)(Oc,{style:{height:`${o+.5}px`},role:"list",getOwnerProps:h,children:p.map(g=>{const{index:S,start:y}=g;return(0,a.jsx)(vc,{innerRef:m,"data-index":S,style:{transform:`translateY(${y}px)`},role:"listitem",getOwnerProps:h,getOwnerPropsArguments:()=>({index:u(S)}),children:(0,a.jsx)(l,{extraItemProps:c,index:S})},u(S))})})},s)},Eo=e=>(0,a.jsx)(Tc,{...e});Eo.displayName=Bt;const Ec=(0,W.A)(Eo).description("DSFastList");Ec.propTypes=Js;const Mc=(0,T.I)(Z.Ay)`
770
+ min-width: ${({inline:e,minWidth:t})=>e?"100%":`${String(t)}px`};
771
+ width: ${({width:e})=>`${e}px`};
772
+ background-color: #ffffff;
773
+ z-index: 100;
774
+ `,Pc=T.I.span`
775
+ font-weight: bold;
776
+ font-style: italic;
777
+ `,Cc=T.I.span`
778
+ word-break: break-all;
779
+ `,Dc=T.I.div`
780
+ padding: 14px;
781
+ `,_c=(0,T.I)("section",{name:rt,slot:lt.SECTION_WRAPPER})`
782
+ list-style: none;
783
+ min-height: 24px;
784
+ display: grid;
785
+ align-items: center;
786
+ `,Rc=(0,T.I)("header",{name:rt,slot:lt.SECTION_LABEL})`
787
+ display: flex;
788
+ align-items: center;
789
+ padding: 0px 16px;
790
+ min-height: 24px;
791
+ font-size: 1rem;
792
+ color: neutral-500;
793
+ `,kc=(0,T.I)(ln,{name:rt,slot:lt.SINGLE_MENU_ITEM})``,Nc=d.memo(e=>{const{label:t,wrapperStyles:n,focusOptionIdx:o,selectedValues:s,innerRef:r,handleOnMouseDown:l,options:c,handleClick:u,getOwnerProps:p,getOwnerPropsArguments:m}=e,h=`${t.replace(/ /g,"")}-section`,f=Array.isArray(s)?an:kc;return(0,a.jsxs)(_c,{role:"group","aria-labelledby":h,style:n,innerRef:r,getOwnerProps:p,getOwnerPropsArguments:m,children:[(0,a.jsx)(Rc,{id:h,role:"presentation",getOwnerProps:p,getOwnerPropsArguments:m,children:t}),c?.map(g=>{const{dsId:S,type:y,value:b,label:x,readOnly:O,disabled:I,applyAriaDisabled:v,render:w,...C}=g;return y===H.SEPARATOR?(0,a.jsx)(dn,{},S):(0,d.createElement)(f,{getOwnerProps:p,getOwnerPropsArguments:m,value:b,label:x,dataTestid:He.OPTION,disabled:I,applyAriaDisabled:v||O,onClick:E=>{v||u(g,E)},onMouseDown:l,isActive:S===o,isSelected:tt(s,g),tabIndex:-1,...C,key:g.dsId,dsId:g.dsId})})]})}),Qs=(0,T.I)(ln,{name:rt,slot:lt.SINGLE_MENU_ITEM,preserveLegacyDataTestId:!0})``,jc=(0,T.I)(an,{name:rt,slot:lt.MULTI_MENU_ITEM,preserveLegacyDataTestId:!0})``,Lc=({index:e,extraItemProps:t})=>{const{props:n,props:{onCreate:o,onChange:s,isNonClearable:r,selectedValues:l,onFilter:c,allOptions:u,readOnly:p},setMenuState:m,inputValue:h,focusOptionIdx:f,setInputValue:g,optionsPerSection:S}=(0,d.useContext)(Pe),{getOwnerProps:y}=(0,K.j)(n),b=(0,d.useCallback)(()=>({index:e}),[e]),x=t?.itemList?.[e],O=Array.isArray(l),I=O?jc:Qs,v=(0,d.useCallback)(()=>{h&&o&&(o(h),g(""),c&&c(u,h))},[c,o,h,u,g]),w=(0,d.useCallback)((E,R)=>{p||(E.type===H.OPTION&&(E.disabled||(c&&c(u,h),g(""),O||m(!1,"selectOption",R),s(ot(E,l,r),E,R))),R.stopPropagation(),R.preventDefault())},[c,l,u,s,m,O]),C=(0,d.useCallback)(E=>{E.preventDefault()},[]);return(0,d.useMemo)(()=>{if(x){const{dsId:E,type:R,disabled:_,applyAriaDisabled:B,readOnly:L,...A}=x,D={key:`${E}`,dsId:E.toString(),...A};return R===H.SECTION?(0,a.jsx)(Nc,{label:x.label,...D,options:x.options,handleClick:w,focusOptionIdx:f,handleOnMouseDown:C,selectedValues:l,getOwnerProps:y,getOwnerPropsArguments:b}):R===H.SEPARATOR?(0,a.jsx)(dn,{...D,render:void 0}):x.type===H.OPTION?(0,a.jsx)(I,{...D,value:x.value,label:x.label,dataTestid:He.OPTION,disabled:_,applyAriaDisabled:B||L,onClick:M=>{B||w(x,M)},onMouseDown:C,isActive:E===f,tabIndex:-1,isSelected:tt(l,x),getOwnerProps:y,getOwnerPropsArguments:b}):R===fe.CREATABLE?(0,a.jsx)(Qs,{getOwnerProps:y,getOwnerPropsArguments:b,dataTestid:He.OPTION,isActive:E===f,...D,render:({label:M})=>(0,a.jsxs)(Z.Ay,{p:"8px",cols:["min-content","auto"],gutter:"xxs",alignItems:"center",children:[(0,a.jsx)(Pc,{children:"Add:"}),(0,a.jsx)(Cc,{children:`"${M}"`})]}),label:x.label,onClick:v}):null}return null},[S,f,l,u,o,h,p])};var Wc=P("./node_modules/.pnpm/@elliemae+ds-circular-progress-indicator@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-circular-progress-indicator/dist/esm/v2/DSCircularIndeterminateIndicator.js");const Fc=T.I.div`
794
+ display: flex;
795
+ justify-content: center;
796
+ height: 56px;
797
+ `,$c=(0,T.I)(Wc.p,{name:rt,slot:lt.LOADING_INDICATOR})``,Vc=({getOwnerProps:e})=>(0,a.jsx)(Fc,{id:"combobox-list",children:(0,a.jsx)($c,{size:"m",getOwnerProps:e})});var Bu=null;const Bc=(0,T.I)(cn,{name:rt,slot:lt.SKELETON_MENU_ITEM,preserveLegacyDataTestId:!0})``,Hc=({instanceUid:e,getOwnerProps:t})=>{const n=[0,1,2,3,4];return(0,a.jsx)(Z.Ay,{id:`combo-listbox-${e}`,children:n.map((o,s)=>(0,a.jsx)(Bc,{dsId:s.toString(),role:"presentation",getOwnerProps:t},o))})},Uc=(0,T.I)(Eo,{name:rt,slot:lt.FAST_LIST})``,zc=(0,T.I)(Z.Ay)`
798
+ max-height: ${({maxHeight:e})=>e?`${String(e)}px`:"300px"};
799
+ `,Gc=()=>32,ei=()=>{const{props:e,props:{isLoading:t,menuMinWidth:n,noOptionsMessage:o,menuMaxHeight:s,onCreate:r,inline:l,isSkeleton:c},controlsWrapperRef:u,listRef:p,wrapperListRef:m,correctOptions:h,instanceUid:f}=(0,d.useContext)(Pe),{getOwnerProps:g}=(0,K.j)(e),{width:S}=To(u),y=(0,d.useCallback)(x=>{x.preventDefault()},[]);let b;return c?b=(0,a.jsx)(Hc,{instanceUid:f,getOwnerProps:g}):t?b=(0,a.jsx)(Vc,{getOwnerProps:g}):(h?.length??0)>0||r?b=(0,a.jsx)(zc,{maxHeight:s,id:`combo-listbox-${f}`,children:(0,a.jsx)(Uc,{dsFastlistWrapperList:{role:"listbox","data-testid":He.LIST,"aria-label":"listbox"},dsFastlistItem:{role:"none"},actionRef:p,count:h.length,ItemRenderer:Lc,extraItemProps:{itemList:h},getId:x=>h[x].dsId,estimateSize:Gc,getOwnerProps:g})}):b=(0,a.jsx)(Dc,{id:`combo-listbox-${f}`,"data-testid":He.NO_MATCHES_FOUND,role:"alert",children:o}),(0,a.jsx)(Mc,{innerRef:m,inline:l,onMouseDown:y,width:S,minWidth:n,children:b})},ti=T.I.span`
800
+ position: absolute;
801
+ width: 1px;
802
+ height: 1px;
803
+ margin: -1px;
804
+ border: 0;
805
+ padding: 0;
806
+ overflow: hidden;
807
+ clip: rect(0 0 0 0);
808
+ clip-path: inset(100%);
809
+ white-space: nowrap;
810
+ `,Kc=()=>{const{props:{onCreate:e},hasFocus:t}=(0,d.useContext)(Te),n=e?(0,a.jsx)("span",{id:"aria-creatable",children:"press enter to create the option"}):"";return(0,a.jsx)(ti,{"data-testid":He.ALLY_SELECTED_VALUES,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text",children:t&&n})},Yc=d.memo(({message:e})=>(0,a.jsx)(ti,{"aria-live":"assertive","aria-relevant":"all",children:e}));function Xc(e,t,n){(0,d.useEffect)(()=>{const o=s=>{!e||e?.contains?.(s.target)||n&&n.contains(s.target)||t(s)};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t,n])}const qc=()=>{const{props:e,internalRef:t,setMenuState:n,menuState:o}=(0,d.useContext)(Te),{inline:s,startPlacementPreference:r,placementOrderPreference:l,isLoading:c,isSkeleton:u,applyAriaDisabled:p}=e,m=(0,k.u)(e),{zIndex:h,...f}=(0,V.d)(e),{getOwnerProps:g,getOwnerPropsArguments:S}=(0,K.j)(e),y=h?parseInt(h,10):void 0,{className:b,"data-testid":x}=m,O=(0,d.useCallback)(_=>{_.preventDefault()},[]),I=(0,d.useCallback)(()=>{n(!1,"blur"),t?.current&&t.current.blur()},[t,n]);(0,d.useEffect)(()=>{const _=()=>{o&&n(!1,"blur")};return window.addEventListener("blur",_),()=>{window.removeEventListener("blur",_)}},[o,n]);const v=(0,d.useMemo)(()=>({placement:"bottom",withoutAnimation:!0,startPlacementPreference:r,placementOrderPreference:l,zIndex:y,customOffset:[0,5],handleCloseMenu:I,externallyControlledIsOpen:o}),[r,l,y,I,o]),{refs:w,floatingStyles:C,context:E}=he(v),R=(0,d.useCallback)(()=>{n(!1,"blur")},[n]);return Xc(w.reference,R,w.floating),(0,a.jsxs)(ui,{"data-testid":x??He.CONTAINER,innerRef:w.setReference,className:b,applyAriaDisabled:p,...f,getOwnerProps:g,getOwnerPropsArguments:S,children:[(0,a.jsx)(Kc,{}),(0,a.jsx)(sc,{}),o&&s?(0,a.jsx)(ei,{}):null,o&&!s&&w.reference?(0,d.createElement)(Qt,{innerRef:w.setFloating,floatingStyles:C,isOpen:o,context:E,...e.popperProps,key:`${c}${u}`},(0,a.jsx)(pi,{tabIndex:-1,onMouseDown:O,applyAriaDisabled:p,children:(0,a.jsx)(ei,{})})):null]})},Hu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,width:"1px",position:"absolute"},Mo=e=>{const t=G(e);return(0,a.jsxs)(Pe.Provider,{value:t,children:[(0,a.jsx)(qc,{}),(0,a.jsx)(Yc,{message:e.isLoading||e.isSkeleton?"Loading options please wait":""})]})};Mo.displayName="DSComboBox";const Zc=(0,W.A)(Mo);Zc.propTypes=N},"./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronRight.js"(Ut,Ye,P){"use strict";P.d(Ye,{A:()=>W});var d=P("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),a=P("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/createIcon.js"),W=(0,a.w)({paths:["M 11.531 8.5 C 11.531 8.605 11.498 8.711 11.431 8.8 L 5.431 16.8 C 5.265 17.021 4.952 17.066 4.731 16.9 S 4.465 16.421 4.63 16.2 L 10.405 8.5 L 4.63 0.8 C 4.465 0.58 4.51 0.267 4.731 0.1 C 4.952 -0.065 5.265 -0.02 5.431 0.201 L 11.431 8.201 C 11.497 8.29 11.531 8.395 11.531 8.501 Z"],height:17,width:16})},"./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronSmallDown.js"(Ut,Ye,P){"use strict";P.d(Ye,{A:()=>J});var d=P("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),a=P("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),W=P("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/SvgIcon.js"),J=$=>(0,a.jsx)(W.Ah,{...$,viewBox:"0 0 20 20",children:(0,a.jsx)("path",{d:"M9.5 13a.503.503 0 0 1-.313-.109l-5-4a.5013.5013 0 0 1-.078-.703c.173-.214.488-.25.703-.078L9.5 11.86l4.688-3.75c.218-.172.531-.136.703.078.172.216.138.53-.078.703l-5 4A.501.501 0 0 1 9.5 13z"})})},"./node_modules/.pnpm/@elliemae+ds-legacy-shared@1.0.16_@elliemae+pui-theme@2.13.0_styled-components@5.3.11/node_modules/@elliemae/ds-legacy-shared/dist/esm/constants.js"(Ut,Ye,P){"use strict";P.d(Ye,{$Z:()=>W,xp:()=>a});var d=P("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");const a=200,W=300,ie=null,J="am",$="pm",dt="ArrowUp",ct="ArrowDown",Tt="Backspace",Pe="Escape",Te="Home",re="Shift",i="End",Et={min:0,max:12},N={min:0,max:24},Q={min:0,max:59},X={hour:"hour",minutes:"minutes",seconds:"seconds",meridiem:"meridiem"}},"./node_modules/.pnpm/@elliemae+ds-popperjs@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-popperjs/dist/esm/index.js"(Ut,Ye,P){"use strict";P.d(Ye,{B2:()=>gt});var d=P("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),a=P("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),W=P("./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js"),ie=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),J=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/styled.js");const $=18,dt=18,ct=J.I.div`
811
+ position: absolute;
812
+ width: ${$}px;
813
+ height: ${dt}px;
814
+ pointer-events: none;
815
+ background-color: transparent;
816
+ & .stroke {
817
+ fill: neutral-500;
818
+ fill-opacity: 0.4;
819
+ }
820
+ & .fill {
821
+ fill: neutral-000;
822
+ }
823
+
824
+ &[data-placement^='top'] {
825
+ svg {
826
+ transform: rotateZ(180deg);
827
+ }
828
+ bottom: -${dt}px;
829
+ }
830
+ &[data-placement^='right'] {
831
+ svg {
832
+ transform: rotateZ(-90deg);
833
+ }
834
+ left: -${$}px;
835
+ }
836
+ &[data-placement^='bottom'] {
837
+ top: -${dt}px;
838
+ }
839
+ &[data-placement^='left'] {
840
+ svg {
841
+ transform: rotateZ(90deg);
842
+ }
843
+ right: -${$}px;
844
+ }
845
+ margin-left: ${U=>U["data-placement"].startsWith("top")||U["data-placement"].startsWith("bottom")?`-${$/2}px;`:"0;"};
846
+ margin-top: ${U=>U["data-placement"].startsWith("left")||U["data-placement"].startsWith("right")?`-${dt/2}px;`:"0;"};
847
+ `,Tt=({placement:U,style:G,arrowElementRef:k})=>(0,a.jsx)(ct,{"data-placement":U,style:G,innerRef:k,"data-testid":"ds-tooltip-arrow","aria-hidden":"true",children:(0,a.jsxs)("svg",{viewBox:"0 0 30 30",children:[(0,a.jsx)("path",{className:"stroke",d:`M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26
848
+ C26.7,29,24.6,28.1,23.7,27.1z`}),(0,a.jsx)("path",{className:"fill",d:"M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"})]})},"popper-arrow");var Pe=P("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.cjs.js"),Te=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/xStyledWrapper.js"),re=P("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/system.js");const i=(0,Pe.keyframes)`
849
+ from {
850
+ opacity: 0;
851
+ transform: scale(0.8);
852
+ }
853
+
854
+ to {
855
+ opacity: 1;
856
+ transform: scale(1);
857
+ visibility: visible;
858
+ }
859
+ `,Et=(0,Pe.keyframes)`
860
+ from {
861
+ opacity: 1;
862
+ transform: scale(1);
863
+ }
864
+
865
+ to {
866
+ opacity: 0;
867
+ transform: scale(0.8);
868
+ visibility: hidden;
869
+ }
870
+ `,N=(0,J.I)("div")`
871
+ z-index: ${({theme:U,zIndex:G})=>G??U.zIndex.popper};
872
+ ${Te.L1}
873
+ `,Q=J.I.div`
874
+ box-shadow:
875
+ 0 0 0 1px rgba(16, 22, 26, 0.1),
876
+ 0 2px 4px rgba(16, 22, 26, 0.2),
877
+ 0 8px 24px rgba(16, 22, 26, 0.2);
878
+
879
+ ${({showPopover:U,animationDuration:G,withoutAnimation:k})=>!k&&(0,re.AH)`
880
+ animation: ${U?i:Et} ${G}ms ease-in;
881
+ `}
882
+ `,X=({setPopperElement:U,popperStyles:G,popperAttributes:k,children:V,showPopover:K,setArrowElement:te,setIsAnimating:Se,arrowStyle:se,withoutArrow:ce,withoutAnimation:ue,animationDuration:ye,zIndex:Fe,globalAttrs:$e,xStyledAttrs:Ze})=>{const ve=(0,d.useCallback)(()=>{!K&&!ue&&Se(!1)},[K,ue,Se]),st=(0,d.useMemo)(()=>(0,a.jsxs)(a.Fragment,{children:[V,ce===!1?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Tt,{arrowElementRef:te,style:se,placement:k?k["data-popper-placement"]:"bottom"}),(0,a.jsx)("div",{ref:te,style:se})]}):null]}),[V,ce,se,k,te]);return(0,a.jsx)(N,{innerRef:U,role:"region","aria-label":"popover menu",style:G,...k,...$e,...Ze,zIndex:Fe,children:(0,a.jsx)(Q,{showPopover:K,animationDuration:ye,withoutAnimation:ue,onAnimationEnd:ve,children:st})})};var H=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/useGetGlobalAttributes.js"),fe=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/useGetXstyledProps.js"),le=P("./node_modules/.pnpm/react-popper@2.3.0_@popperjs+core@2.11.8/node_modules/react-popper/lib/cjs/index.js");function We(U,G){(0,d.useEffect)(()=>{const k=V=>{!U||U?.contains?.(V.target)||G(V)};return document.addEventListener("mousedown",k),document.addEventListener("touchstart",k),()=>{document.removeEventListener("mousedown",k),document.removeEventListener("touchstart",k)}},[U,G])}var Xe=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/defaultProps/useMemoMergePropsWithDefault.js");const ut=({props:U,arrowElement:G,defaultProps:k})=>{const{boundaryElement:V,withoutArrow:K=!1,placementOrderPreference:te=["top","bottom","left","right"],customOffset:Se=void 0}=U,se=(0,d.useMemo)(()=>{const ue=[];if(ue.push({name:"hide",enabled:!0}),ue.push({name:"flip",options:{fallbackPlacements:te}}),!K||Se){const ye=Se||k.customOffset;ue.push({name:"offset",enabled:!0,options:{offset:ye}})}return K||ue.push({name:"arrow",options:{element:G,padding:18}}),V&&ue.push({name:"preventOverflow",options:{boundary:V}}),ue},[G,k,V,K,te,Se]),{modifiers:ce=se}=U;return(0,d.useMemo)(()=>({modifiers:ce}),[ce])},be=()=>{},qe={},tt=({props:U,arrowElement:G})=>{const k=(0,d.useMemo)(()=>({referenceElement:null,showPopover:!1,closeContextMenu:be,onClickOutside:be,withoutPortal:!1,withoutArrow:!1,withoutAnimation:!1,animationDuration:100,portalDOMContainer:document.body,startPlacementPreference:"top",placementOrderPreference:["top","bottom","left","right"],extraPopperStyles:qe,customOffset:[0,14]}),[]),{modifiers:V}=ut({props:U,arrowElement:G,defaultProps:k});return(0,d.useMemo)(()=>({...k,modifiers:V}),[V,k])},ge=({props:U,arrowElement:G})=>{const k=tt({props:U,arrowElement:G});return(0,Xe.b)(U,k)},nt=U=>{const[G,k]=(0,d.useState)(null),[V,K]=(0,d.useState)(null),[te,Se]=(0,d.useState)(!1),se=ge({props:U,arrowElement:V}),{referenceElement:ce,closeContextMenu:ue,onClickOutside:ye,modifiers:Fe,startPlacementPreference:$e}=se,Ze=(0,d.useMemo)(()=>({placement:$e,modifiers:Fe}),[Fe,$e]),ve=(0,le.Eq)(ce,G,Ze),{showPopover:st,withoutAnimation:De}=se;(0,d.useEffect)(()=>{st&&!De&&Se(!0)},[st,De]),(0,d.useEffect)(()=>{se.actionRef&&(se.actionRef.current.update=ve.update)},[se.actionRef,ve.update]),We(G,_e=>{ce?.contains?.(_e?.target)||(ye(_e),ue())});const Ae=(0,H.u)(se),Je=(0,fe.d)(se);return(0,d.useMemo)(()=>({props:se,popperElement:G,setPopperElement:k,arrowElement:V,setArrowElement:K,popoverHelper:ve,isAnimating:te,setIsAnimating:Se,globalAttrs:Ae,xStyledAttrs:Je}),[se,G,V,ve,te,Ae,Je])};var Ce=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/globalAttributesPropTypes.js"),Mt=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/xstyledPropTypes.js"),z=P("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js");const ot=["top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ft={...Ce.P,...Mt.w,children:z.A.node.description("The content of the popper").isRequired,referenceElement:z.A.oneOfType([z.A.node,z.A.oneOf([null])]).description("The DOM element that needs to be used as a reference for positioning the popper.").isRequired,showPopover:z.A.bool.description("whether or not to show the popper content").isRequired,closeContextMenu:z.A.func.description('Callback to close the context menu, used for "on click outside", if not provided click outside will not trigger anything').defaultValue("() => {}"),withoutPortal:z.A.bool.description("Whether or not the popper content should appear in a DOM portal or not").defaultValue(!0),withoutArrow:z.A.bool.description("Whether or not the popper context menu should print the arrow").defaultValue(!1),withoutAnimation:z.A.bool.description("Whether or not the popper context menu should be animated").defaultValue(!1),animationDuration:z.A.number.description("Popper context menus Animation duration in ms").defaultValue(100),startPlacementPreference:z.A.oneOf(ot).description("start placement preferences, as per popperjs placement option").defaultValue("'top'"),placementOrderPreference:z.A.arrayOf(z.A.oneOf(ot)).description('Array of placement preferences, as per popperjs "flip" placement option').defaultValue("['top', 'bottom', 'left', 'right']"),zIndex:z.A.number.description("popperjs content z-index").defaultValue("theme.zIndex.popper"),customOffset:z.A.arrayOf(z.A.number).description("placement offset array").defaultValue("[0,14]"),extraPopperStyles:z.A.object.description("Extra object styles to attach to the popper element").defaultValue({}),onClickOutside:z.A.func.description("Callback triggered when clicking outside the popper").defaultValue(()=>null),boundaryElement:z.A.oneOfType([z.A.node,z.A.oneOf([null])]).description('Bounding element to calculate upon, defaults to "clippingParents",which are the scrolling containers that may cause element to be partially or fully cut off'),portalDOMContainer:z.A.oneOfType([z.A.node,z.A.oneOf([null])]).description("When using portal, the container in which to append the DOM content, defaults to document body"),modifiers:z.A.array.description('If you provide the modifiers array for full-custom override in popper.js, it means you are responsible for completely overwriting all the existing modifiers. This includes the modifiers that control "boundaryElement," "withoutArrow," "placementOrderPreference," and "customOffset".For more detailed information, please refer to the documentation at https://popper.js.org/docs/v2/modifiers/.'),actionRef:z.A.object.description("Ref object to access the popperjs instance methods")},gt=U=>{const{props:{showPopover:G,withoutAnimation:k,animationDuration:V,withoutPortal:K,withoutArrow:te,portalDOMContainer:Se,zIndex:se,extraPopperStyles:ce},globalAttrs:ue,xStyledAttrs:ye,setPopperElement:Fe,setArrowElement:$e,setIsAnimating:Ze,popoverHelper:ve,isAnimating:st}=nt(U),{children:De}=U,{styles:Ae,attributes:Je}=ve,_e=(0,d.useMemo)(()=>(0,a.jsx)(X,{setPopperElement:Fe,popperStyles:{...Ae.popper,...ce},popperAttributes:Je.popper,setArrowElement:$e,arrowStyle:Ae.arrow,withoutArrow:te,withoutAnimation:k,animationDuration:V,zIndex:se,showPopover:G,setIsAnimating:Ze,globalAttrs:ue,xStyledAttrs:ye,children:De}),[Je.popper,De,Ze,G,ce,$e,Fe,Ae.arrow,Ae.popper,te,k,V,se,ue,ye]);if(G||st){if(K===!0)return _e;if(Se&&K===!1)return(0,a.jsx)(a.Fragment,{children:(0,W.createPortal)(_e,Se)})}return null};gt.displayName="DSPopperJS";const zt=(0,ie.A)(gt).description("A dimsum custom styling wrapper on top of popperjs");zt.propTypes=ft;var Gt=null}}]);