@elliemae/pui-app-sdk 5.31.0 → 5.31.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 (564) hide show
  1. package/demo/1221.9db93c68.iframe.bundle.js +881 -0
  2. package/demo/1221.9db93c68.iframe.bundle.js.br +0 -0
  3. package/demo/1221.9db93c68.iframe.bundle.js.gz +0 -0
  4. package/demo/1805.d8a27ec4.iframe.bundle.js +17 -0
  5. package/demo/1805.d8a27ec4.iframe.bundle.js.br +0 -0
  6. package/demo/1805.d8a27ec4.iframe.bundle.js.gz +0 -0
  7. package/demo/181.e5c654c8.iframe.bundle.js +214 -0
  8. package/demo/181.e5c654c8.iframe.bundle.js.br +0 -0
  9. package/demo/181.e5c654c8.iframe.bundle.js.gz +0 -0
  10. package/demo/1816.1b050d17.iframe.bundle.js +19062 -0
  11. package/demo/1816.1b050d17.iframe.bundle.js.br +0 -0
  12. package/demo/1816.1b050d17.iframe.bundle.js.gz +0 -0
  13. package/demo/1886.bbb1a12c.iframe.bundle.js +114 -0
  14. package/demo/1886.bbb1a12c.iframe.bundle.js.br +0 -0
  15. package/demo/1886.bbb1a12c.iframe.bundle.js.gz +0 -0
  16. package/demo/1993.d3eb262b.iframe.bundle.js +1 -0
  17. package/demo/1993.d3eb262b.iframe.bundle.js.br +0 -0
  18. package/demo/1993.d3eb262b.iframe.bundle.js.gz +0 -0
  19. package/demo/2167.7bd13b0b.iframe.bundle.js +3 -0
  20. package/demo/2167.7bd13b0b.iframe.bundle.js.br +0 -0
  21. package/demo/2167.7bd13b0b.iframe.bundle.js.gz +0 -0
  22. package/demo/226.1ea419d9.iframe.bundle.js +296 -0
  23. package/demo/226.1ea419d9.iframe.bundle.js.br +0 -0
  24. package/demo/226.1ea419d9.iframe.bundle.js.gz +0 -0
  25. package/demo/226.6273b6dbc68e59030aa4.manager.bundle.js +296 -0
  26. package/demo/226.6273b6dbc68e59030aa4.manager.bundle.js.br +0 -0
  27. package/demo/226.6273b6dbc68e59030aa4.manager.bundle.js.gz +0 -0
  28. package/demo/2371.a29dfdf6.iframe.bundle.js +230 -0
  29. package/demo/2371.a29dfdf6.iframe.bundle.js.br +0 -0
  30. package/demo/2371.a29dfdf6.iframe.bundle.js.gz +0 -0
  31. package/demo/2468.f55299fb.iframe.bundle.js +52 -0
  32. package/demo/2468.f55299fb.iframe.bundle.js.br +0 -0
  33. package/demo/2468.f55299fb.iframe.bundle.js.gz +0 -0
  34. package/demo/2493.c69f231e.iframe.bundle.js +30 -0
  35. package/demo/2493.c69f231e.iframe.bundle.js.br +0 -0
  36. package/demo/2493.c69f231e.iframe.bundle.js.gz +0 -0
  37. package/demo/2776.66887231.iframe.bundle.js +26 -0
  38. package/demo/2776.66887231.iframe.bundle.js.br +0 -0
  39. package/demo/2776.66887231.iframe.bundle.js.gz +0 -0
  40. package/demo/283.e7b51df6384e8e6d11ce.manager.bundle.js +10 -0
  41. package/demo/283.e7b51df6384e8e6d11ce.manager.bundle.js.br +0 -0
  42. package/demo/283.e7b51df6384e8e6d11ce.manager.bundle.js.gz +0 -0
  43. package/demo/2986.4925d38a.iframe.bundle.js +184 -0
  44. package/demo/2986.4925d38a.iframe.bundle.js.br +0 -0
  45. package/demo/2986.4925d38a.iframe.bundle.js.gz +0 -0
  46. package/demo/3043.70113436.iframe.bundle.js +142 -0
  47. package/demo/3043.70113436.iframe.bundle.js.br +0 -0
  48. package/demo/3043.70113436.iframe.bundle.js.gz +0 -0
  49. package/demo/3338.89babe4a.iframe.bundle.js +726 -0
  50. package/demo/3338.89babe4a.iframe.bundle.js.br +0 -0
  51. package/demo/3338.89babe4a.iframe.bundle.js.gz +0 -0
  52. package/demo/3520.3f37c08a.iframe.bundle.js +102 -0
  53. package/demo/3520.3f37c08a.iframe.bundle.js.br +0 -0
  54. package/demo/3520.3f37c08a.iframe.bundle.js.gz +0 -0
  55. package/demo/36.b24a172c86ce4462ac09.manager.bundle.js +1167 -0
  56. package/demo/36.b24a172c86ce4462ac09.manager.bundle.js.br +0 -0
  57. package/demo/36.b24a172c86ce4462ac09.manager.bundle.js.gz +0 -0
  58. package/demo/3782.4ea68682.iframe.bundle.js +8 -0
  59. package/demo/3782.4ea68682.iframe.bundle.js.br +0 -0
  60. package/demo/3782.4ea68682.iframe.bundle.js.gz +0 -0
  61. package/demo/418.2c8010cdc47d84c9e906.manager.bundle.js +1 -0
  62. package/demo/418.2c8010cdc47d84c9e906.manager.bundle.js.br +0 -0
  63. package/demo/418.2c8010cdc47d84c9e906.manager.bundle.js.gz +0 -0
  64. package/demo/4246.ffabc1f1.iframe.bundle.js +1 -0
  65. package/demo/4246.ffabc1f1.iframe.bundle.js.br +0 -0
  66. package/demo/4246.ffabc1f1.iframe.bundle.js.gz +0 -0
  67. package/demo/4333.d0850d2d.iframe.bundle.js +22 -0
  68. package/demo/4333.d0850d2d.iframe.bundle.js.br +0 -0
  69. package/demo/4333.d0850d2d.iframe.bundle.js.gz +0 -0
  70. package/demo/4454.ae23211c.iframe.bundle.js +1 -0
  71. package/demo/4454.ae23211c.iframe.bundle.js.br +0 -0
  72. package/demo/4454.ae23211c.iframe.bundle.js.gz +0 -0
  73. package/demo/4540.ad9f26ad.iframe.bundle.js +395 -0
  74. package/demo/4540.ad9f26ad.iframe.bundle.js.br +0 -0
  75. package/demo/4540.ad9f26ad.iframe.bundle.js.gz +0 -0
  76. package/demo/5054.a62cb16f.iframe.bundle.js +270 -0
  77. package/demo/5054.a62cb16f.iframe.bundle.js.br +0 -0
  78. package/demo/5054.a62cb16f.iframe.bundle.js.gz +0 -0
  79. package/demo/5418.31ca82e4.iframe.bundle.js +1 -0
  80. package/demo/5418.31ca82e4.iframe.bundle.js.br +0 -0
  81. package/demo/5418.31ca82e4.iframe.bundle.js.gz +0 -0
  82. package/demo/5449.afc5080d.iframe.bundle.js +174 -0
  83. package/demo/5449.afc5080d.iframe.bundle.js.br +0 -0
  84. package/demo/5449.afc5080d.iframe.bundle.js.gz +0 -0
  85. package/demo/5929.409dadbf.iframe.bundle.js +2 -0
  86. package/demo/5929.409dadbf.iframe.bundle.js.br +0 -0
  87. package/demo/5929.409dadbf.iframe.bundle.js.gz +0 -0
  88. package/demo/597.ca2a1f93.iframe.bundle.js +1 -0
  89. package/demo/597.ca2a1f93.iframe.bundle.js.br +0 -0
  90. package/demo/597.ca2a1f93.iframe.bundle.js.gz +0 -0
  91. package/demo/5988.f63555d0.iframe.bundle.js +128 -0
  92. package/demo/5988.f63555d0.iframe.bundle.js.br +0 -0
  93. package/demo/5988.f63555d0.iframe.bundle.js.gz +0 -0
  94. package/demo/5997.41b839a8.iframe.bundle.js +450 -0
  95. package/demo/5997.41b839a8.iframe.bundle.js.br +0 -0
  96. package/demo/5997.41b839a8.iframe.bundle.js.gz +0 -0
  97. package/demo/63.7d6a97d4f68fc6ecc316.manager.bundle.js +1 -0
  98. package/demo/63.7d6a97d4f68fc6ecc316.manager.bundle.js.br +0 -0
  99. package/demo/63.7d6a97d4f68fc6ecc316.manager.bundle.js.gz +0 -0
  100. package/demo/671d9de68be598da64ca.html +47 -0
  101. package/demo/7619.25d5eead.iframe.bundle.js +173 -0
  102. package/demo/7619.25d5eead.iframe.bundle.js.br +0 -0
  103. package/demo/7619.25d5eead.iframe.bundle.js.gz +0 -0
  104. package/demo/805.dec4fc1fbd260eaa7efc.manager.bundle.js +17 -0
  105. package/demo/805.dec4fc1fbd260eaa7efc.manager.bundle.js.br +0 -0
  106. package/demo/805.dec4fc1fbd260eaa7efc.manager.bundle.js.gz +0 -0
  107. package/demo/8165.2ab64e0d.iframe.bundle.js +1 -0
  108. package/demo/8165.2ab64e0d.iframe.bundle.js.br +0 -0
  109. package/demo/8165.2ab64e0d.iframe.bundle.js.gz +0 -0
  110. package/demo/8283.68c1e5a5.iframe.bundle.js +10 -0
  111. package/demo/8283.68c1e5a5.iframe.bundle.js.br +0 -0
  112. package/demo/8283.68c1e5a5.iframe.bundle.js.gz +0 -0
  113. package/demo/8423.605e2219.iframe.bundle.js +706 -0
  114. package/demo/8423.605e2219.iframe.bundle.js.br +0 -0
  115. package/demo/8423.605e2219.iframe.bundle.js.gz +0 -0
  116. package/demo/929.283d1fb14b0e12a0b125.manager.bundle.js +2 -0
  117. package/demo/929.283d1fb14b0e12a0b125.manager.bundle.js.br +0 -0
  118. package/demo/929.283d1fb14b0e12a0b125.manager.bundle.js.gz +0 -0
  119. package/demo/9429.5ea2da94.iframe.bundle.js +817 -0
  120. package/demo/9429.5ea2da94.iframe.bundle.js.br +0 -0
  121. package/demo/9429.5ea2da94.iframe.bundle.js.gz +0 -0
  122. package/demo/9576.803152ab.iframe.bundle.js +1 -0
  123. package/demo/9576.803152ab.iframe.bundle.js.br +0 -0
  124. package/demo/9576.803152ab.iframe.bundle.js.gz +0 -0
  125. package/demo/9799.1b759ba7.iframe.bundle.js +2 -0
  126. package/demo/9799.1b759ba7.iframe.bundle.js.br +0 -0
  127. package/demo/9799.1b759ba7.iframe.bundle.js.gz +0 -0
  128. package/demo/993.17f8b6b4.iframe.bundle.js +15 -0
  129. package/demo/993.17f8b6b4.iframe.bundle.js.br +0 -0
  130. package/demo/993.17f8b6b4.iframe.bundle.js.gz +0 -0
  131. package/demo/993.fd7af0b0b330df7398d7.manager.bundle.js +15 -0
  132. package/demo/993.fd7af0b0b330df7398d7.manager.bundle.js.br +0 -0
  133. package/demo/993.fd7af0b0b330df7398d7.manager.bundle.js.gz +0 -0
  134. package/demo/app.config.json +127 -0
  135. package/demo/docs/1221.9db93c68.iframe.bundle.js +881 -0
  136. package/demo/docs/1221.9db93c68.iframe.bundle.js.br +0 -0
  137. package/demo/docs/1221.9db93c68.iframe.bundle.js.gz +0 -0
  138. package/demo/docs/1805.d8a27ec4.iframe.bundle.js +17 -0
  139. package/demo/docs/1805.d8a27ec4.iframe.bundle.js.br +0 -0
  140. package/demo/docs/1805.d8a27ec4.iframe.bundle.js.gz +0 -0
  141. package/demo/docs/181.e5c654c8.iframe.bundle.js +214 -0
  142. package/demo/docs/181.e5c654c8.iframe.bundle.js.br +0 -0
  143. package/demo/docs/181.e5c654c8.iframe.bundle.js.gz +0 -0
  144. package/demo/docs/1816.1b050d17.iframe.bundle.js +19062 -0
  145. package/demo/docs/1816.1b050d17.iframe.bundle.js.br +0 -0
  146. package/demo/docs/1816.1b050d17.iframe.bundle.js.gz +0 -0
  147. package/demo/docs/1886.bbb1a12c.iframe.bundle.js +114 -0
  148. package/demo/docs/1886.bbb1a12c.iframe.bundle.js.br +0 -0
  149. package/demo/docs/1886.bbb1a12c.iframe.bundle.js.gz +0 -0
  150. package/demo/docs/1993.d3eb262b.iframe.bundle.js +1 -0
  151. package/demo/docs/1993.d3eb262b.iframe.bundle.js.br +0 -0
  152. package/demo/docs/1993.d3eb262b.iframe.bundle.js.gz +0 -0
  153. package/demo/docs/2167.7bd13b0b.iframe.bundle.js +3 -0
  154. package/demo/docs/2167.7bd13b0b.iframe.bundle.js.br +0 -0
  155. package/demo/docs/2167.7bd13b0b.iframe.bundle.js.gz +0 -0
  156. package/demo/docs/226.1ea419d9.iframe.bundle.js +296 -0
  157. package/demo/docs/226.1ea419d9.iframe.bundle.js.br +0 -0
  158. package/demo/docs/226.1ea419d9.iframe.bundle.js.gz +0 -0
  159. package/demo/docs/226.6273b6dbc68e59030aa4.manager.bundle.js +296 -0
  160. package/demo/docs/226.6273b6dbc68e59030aa4.manager.bundle.js.br +0 -0
  161. package/demo/docs/226.6273b6dbc68e59030aa4.manager.bundle.js.gz +0 -0
  162. package/demo/docs/2371.a29dfdf6.iframe.bundle.js +230 -0
  163. package/demo/docs/2371.a29dfdf6.iframe.bundle.js.br +0 -0
  164. package/demo/docs/2371.a29dfdf6.iframe.bundle.js.gz +0 -0
  165. package/demo/docs/2468.f55299fb.iframe.bundle.js +52 -0
  166. package/demo/docs/2468.f55299fb.iframe.bundle.js.br +0 -0
  167. package/demo/docs/2468.f55299fb.iframe.bundle.js.gz +0 -0
  168. package/demo/docs/2493.c69f231e.iframe.bundle.js +30 -0
  169. package/demo/docs/2493.c69f231e.iframe.bundle.js.br +0 -0
  170. package/demo/docs/2493.c69f231e.iframe.bundle.js.gz +0 -0
  171. package/demo/docs/2776.66887231.iframe.bundle.js +26 -0
  172. package/demo/docs/2776.66887231.iframe.bundle.js.br +0 -0
  173. package/demo/docs/2776.66887231.iframe.bundle.js.gz +0 -0
  174. package/demo/docs/283.e7b51df6384e8e6d11ce.manager.bundle.js +10 -0
  175. package/demo/docs/283.e7b51df6384e8e6d11ce.manager.bundle.js.br +0 -0
  176. package/demo/docs/283.e7b51df6384e8e6d11ce.manager.bundle.js.gz +0 -0
  177. package/demo/docs/2986.4925d38a.iframe.bundle.js +184 -0
  178. package/demo/docs/2986.4925d38a.iframe.bundle.js.br +0 -0
  179. package/demo/docs/2986.4925d38a.iframe.bundle.js.gz +0 -0
  180. package/demo/docs/3043.70113436.iframe.bundle.js +142 -0
  181. package/demo/docs/3043.70113436.iframe.bundle.js.br +0 -0
  182. package/demo/docs/3043.70113436.iframe.bundle.js.gz +0 -0
  183. package/demo/docs/3338.89babe4a.iframe.bundle.js +726 -0
  184. package/demo/docs/3338.89babe4a.iframe.bundle.js.br +0 -0
  185. package/demo/docs/3338.89babe4a.iframe.bundle.js.gz +0 -0
  186. package/demo/docs/3520.3f37c08a.iframe.bundle.js +102 -0
  187. package/demo/docs/3520.3f37c08a.iframe.bundle.js.br +0 -0
  188. package/demo/docs/3520.3f37c08a.iframe.bundle.js.gz +0 -0
  189. package/demo/docs/36.b24a172c86ce4462ac09.manager.bundle.js +1167 -0
  190. package/demo/docs/36.b24a172c86ce4462ac09.manager.bundle.js.br +0 -0
  191. package/demo/docs/36.b24a172c86ce4462ac09.manager.bundle.js.gz +0 -0
  192. package/demo/docs/3782.4ea68682.iframe.bundle.js +8 -0
  193. package/demo/docs/3782.4ea68682.iframe.bundle.js.br +0 -0
  194. package/demo/docs/3782.4ea68682.iframe.bundle.js.gz +0 -0
  195. package/demo/docs/418.2c8010cdc47d84c9e906.manager.bundle.js +1 -0
  196. package/demo/docs/418.2c8010cdc47d84c9e906.manager.bundle.js.br +0 -0
  197. package/demo/docs/418.2c8010cdc47d84c9e906.manager.bundle.js.gz +0 -0
  198. package/demo/docs/4246.ffabc1f1.iframe.bundle.js +1 -0
  199. package/demo/docs/4246.ffabc1f1.iframe.bundle.js.br +0 -0
  200. package/demo/docs/4246.ffabc1f1.iframe.bundle.js.gz +0 -0
  201. package/demo/docs/4333.d0850d2d.iframe.bundle.js +22 -0
  202. package/demo/docs/4333.d0850d2d.iframe.bundle.js.br +0 -0
  203. package/demo/docs/4333.d0850d2d.iframe.bundle.js.gz +0 -0
  204. package/demo/docs/4454.ae23211c.iframe.bundle.js +1 -0
  205. package/demo/docs/4454.ae23211c.iframe.bundle.js.br +0 -0
  206. package/demo/docs/4454.ae23211c.iframe.bundle.js.gz +0 -0
  207. package/demo/docs/4540.ad9f26ad.iframe.bundle.js +395 -0
  208. package/demo/docs/4540.ad9f26ad.iframe.bundle.js.br +0 -0
  209. package/demo/docs/4540.ad9f26ad.iframe.bundle.js.gz +0 -0
  210. package/demo/docs/5054.a62cb16f.iframe.bundle.js +270 -0
  211. package/demo/docs/5054.a62cb16f.iframe.bundle.js.br +0 -0
  212. package/demo/docs/5054.a62cb16f.iframe.bundle.js.gz +0 -0
  213. package/demo/docs/5418.31ca82e4.iframe.bundle.js +1 -0
  214. package/demo/docs/5418.31ca82e4.iframe.bundle.js.br +0 -0
  215. package/demo/docs/5418.31ca82e4.iframe.bundle.js.gz +0 -0
  216. package/demo/docs/5449.afc5080d.iframe.bundle.js +174 -0
  217. package/demo/docs/5449.afc5080d.iframe.bundle.js.br +0 -0
  218. package/demo/docs/5449.afc5080d.iframe.bundle.js.gz +0 -0
  219. package/demo/docs/5929.409dadbf.iframe.bundle.js +2 -0
  220. package/demo/docs/5929.409dadbf.iframe.bundle.js.br +0 -0
  221. package/demo/docs/5929.409dadbf.iframe.bundle.js.gz +0 -0
  222. package/demo/docs/597.ca2a1f93.iframe.bundle.js +1 -0
  223. package/demo/docs/597.ca2a1f93.iframe.bundle.js.br +0 -0
  224. package/demo/docs/597.ca2a1f93.iframe.bundle.js.gz +0 -0
  225. package/demo/docs/5988.f63555d0.iframe.bundle.js +128 -0
  226. package/demo/docs/5988.f63555d0.iframe.bundle.js.br +0 -0
  227. package/demo/docs/5988.f63555d0.iframe.bundle.js.gz +0 -0
  228. package/demo/docs/5997.41b839a8.iframe.bundle.js +450 -0
  229. package/demo/docs/5997.41b839a8.iframe.bundle.js.br +0 -0
  230. package/demo/docs/5997.41b839a8.iframe.bundle.js.gz +0 -0
  231. package/demo/docs/63.7d6a97d4f68fc6ecc316.manager.bundle.js +1 -0
  232. package/demo/docs/63.7d6a97d4f68fc6ecc316.manager.bundle.js.br +0 -0
  233. package/demo/docs/63.7d6a97d4f68fc6ecc316.manager.bundle.js.gz +0 -0
  234. package/demo/docs/671d9de68be598da64ca.html +47 -0
  235. package/demo/docs/7619.25d5eead.iframe.bundle.js +173 -0
  236. package/demo/docs/7619.25d5eead.iframe.bundle.js.br +0 -0
  237. package/demo/docs/7619.25d5eead.iframe.bundle.js.gz +0 -0
  238. package/demo/docs/805.dec4fc1fbd260eaa7efc.manager.bundle.js +17 -0
  239. package/demo/docs/805.dec4fc1fbd260eaa7efc.manager.bundle.js.br +0 -0
  240. package/demo/docs/805.dec4fc1fbd260eaa7efc.manager.bundle.js.gz +0 -0
  241. package/demo/docs/8165.2ab64e0d.iframe.bundle.js +1 -0
  242. package/demo/docs/8165.2ab64e0d.iframe.bundle.js.br +0 -0
  243. package/demo/docs/8165.2ab64e0d.iframe.bundle.js.gz +0 -0
  244. package/demo/docs/8283.68c1e5a5.iframe.bundle.js +10 -0
  245. package/demo/docs/8283.68c1e5a5.iframe.bundle.js.br +0 -0
  246. package/demo/docs/8283.68c1e5a5.iframe.bundle.js.gz +0 -0
  247. package/demo/docs/8423.605e2219.iframe.bundle.js +706 -0
  248. package/demo/docs/8423.605e2219.iframe.bundle.js.br +0 -0
  249. package/demo/docs/8423.605e2219.iframe.bundle.js.gz +0 -0
  250. package/demo/docs/929.283d1fb14b0e12a0b125.manager.bundle.js +2 -0
  251. package/demo/docs/929.283d1fb14b0e12a0b125.manager.bundle.js.br +0 -0
  252. package/demo/docs/929.283d1fb14b0e12a0b125.manager.bundle.js.gz +0 -0
  253. package/demo/docs/9429.5ea2da94.iframe.bundle.js +817 -0
  254. package/demo/docs/9429.5ea2da94.iframe.bundle.js.br +0 -0
  255. package/demo/docs/9429.5ea2da94.iframe.bundle.js.gz +0 -0
  256. package/demo/docs/9576.803152ab.iframe.bundle.js +1 -0
  257. package/demo/docs/9576.803152ab.iframe.bundle.js.br +0 -0
  258. package/demo/docs/9576.803152ab.iframe.bundle.js.gz +0 -0
  259. package/demo/docs/9799.1b759ba7.iframe.bundle.js +2 -0
  260. package/demo/docs/9799.1b759ba7.iframe.bundle.js.br +0 -0
  261. package/demo/docs/9799.1b759ba7.iframe.bundle.js.gz +0 -0
  262. package/demo/docs/993.17f8b6b4.iframe.bundle.js +15 -0
  263. package/demo/docs/993.17f8b6b4.iframe.bundle.js.br +0 -0
  264. package/demo/docs/993.17f8b6b4.iframe.bundle.js.gz +0 -0
  265. package/demo/docs/993.fd7af0b0b330df7398d7.manager.bundle.js +15 -0
  266. package/demo/docs/993.fd7af0b0b330df7398d7.manager.bundle.js.br +0 -0
  267. package/demo/docs/993.fd7af0b0b330df7398d7.manager.bundle.js.gz +0 -0
  268. package/demo/docs/app.config.json +127 -0
  269. package/demo/docs/favicon.ico +0 -0
  270. package/demo/docs/iframe.html +377 -0
  271. package/demo/docs/index.html +59 -0
  272. package/demo/docs/main.4677f29d.iframe.bundle.js +6 -0
  273. package/demo/docs/main.4677f29d.iframe.bundle.js.br +0 -0
  274. package/demo/docs/main.4677f29d.iframe.bundle.js.gz +0 -0
  275. package/demo/docs/main.954a8357cbbc4ca4db5e.manager.bundle.js +1 -0
  276. package/demo/docs/main.954a8357cbbc4ca4db5e.manager.bundle.js.br +0 -0
  277. package/demo/docs/main.954a8357cbbc4ca4db5e.manager.bundle.js.gz +0 -0
  278. package/demo/docs/project.json +1 -0
  279. package/demo/docs/runtime~main.527063655a0d613db5dd.manager.bundle.js +2 -0
  280. package/demo/docs/runtime~main.527063655a0d613db5dd.manager.bundle.js.br +0 -0
  281. package/demo/docs/runtime~main.527063655a0d613db5dd.manager.bundle.js.gz +0 -0
  282. package/demo/docs/runtime~main.672b2a5d.iframe.bundle.js +2 -0
  283. package/demo/docs/runtime~main.672b2a5d.iframe.bundle.js.br +0 -0
  284. package/demo/docs/runtime~main.672b2a5d.iframe.bundle.js.gz +0 -0
  285. package/demo/docs/static/media/ProximaLight.1c840f2e.woff +0 -0
  286. package/demo/docs/static/media/ProximaLightItalic.26edbdf9.woff +0 -0
  287. package/demo/docs/static/media/ProximaMedium.8648a446.woff +0 -0
  288. package/demo/docs/static/media/ProximaMediumItalic.6dd91f36.woff +0 -0
  289. package/demo/docs/static/media/ProximaNovaBlack.f1ff9416.woff +0 -0
  290. package/demo/docs/static/media/ProximaNovaBlackItalic.aa93a937.woff +0 -0
  291. package/demo/docs/static/media/ProximaNovaBold.690419e8.woff +0 -0
  292. package/demo/docs/static/media/ProximaNovaBoldItalic.f322b739.woff +0 -0
  293. package/demo/docs/static/media/ProximaNovaExtrabold.404c9e74.woff +0 -0
  294. package/demo/docs/static/media/ProximaNovaExtraboldItalic.d97ffa0f.woff +0 -0
  295. package/demo/docs/static/media/ProximaNovaRegular.7abe9fa6.woff +0 -0
  296. package/demo/docs/static/media/ProximaNovaRegularItalic.1073d28d.woff +0 -0
  297. package/demo/docs/static/media/ProximaNovaSemibold.1b57a486.woff +0 -0
  298. package/demo/docs/static/media/ProximaNovaSemiboldItalic.47673788.woff +0 -0
  299. package/demo/docs/static/media/ProximaNovaThin.730c623c.woff +0 -0
  300. package/demo/docs/static/media/ProximaNovaThinItalic.2915a90e.woff +0 -0
  301. package/demo/docs/stories.json +1 -0
  302. package/demo/docs/view-breakpoint-index-stories.39d53b06.iframe.bundle.js +101 -0
  303. package/demo/docs/view-breakpoint-index-stories.39d53b06.iframe.bundle.js.br +0 -0
  304. package/demo/docs/view-breakpoint-index-stories.39d53b06.iframe.bundle.js.gz +0 -0
  305. package/demo/docs/view-error-toast-index-stories.10975752.iframe.bundle.js +361 -0
  306. package/demo/docs/view-error-toast-index-stories.10975752.iframe.bundle.js.br +0 -0
  307. package/demo/docs/view-error-toast-index-stories.10975752.iframe.bundle.js.gz +0 -0
  308. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.86694d7a.iframe.bundle.js +669 -0
  309. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.86694d7a.iframe.bundle.js.br +0 -0
  310. package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.86694d7a.iframe.bundle.js.gz +0 -0
  311. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.72d255f0.iframe.bundle.js +477 -0
  312. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.72d255f0.iframe.bundle.js.br +0 -0
  313. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.72d255f0.iframe.bundle.js.gz +0 -0
  314. package/demo/docs/view-fields-autocomplete-index-stories.02666728.iframe.bundle.js +245 -0
  315. package/demo/docs/view-fields-autocomplete-index-stories.02666728.iframe.bundle.js.br +0 -0
  316. package/demo/docs/view-fields-autocomplete-index-stories.02666728.iframe.bundle.js.gz +0 -0
  317. package/demo/docs/view-fields-check-box-index-stories.ee068c3e.iframe.bundle.js +181 -0
  318. package/demo/docs/view-fields-check-box-index-stories.ee068c3e.iframe.bundle.js.br +0 -0
  319. package/demo/docs/view-fields-check-box-index-stories.ee068c3e.iframe.bundle.js.gz +0 -0
  320. package/demo/docs/view-fields-check-box-set-value-stories.174d03c4.iframe.bundle.js +237 -0
  321. package/demo/docs/view-fields-check-box-set-value-stories.174d03c4.iframe.bundle.js.br +0 -0
  322. package/demo/docs/view-fields-check-box-set-value-stories.174d03c4.iframe.bundle.js.gz +0 -0
  323. package/demo/docs/view-fields-combo-box-index-stories.d12d33ea.iframe.bundle.js +209 -0
  324. package/demo/docs/view-fields-combo-box-index-stories.d12d33ea.iframe.bundle.js.br +0 -0
  325. package/demo/docs/view-fields-combo-box-index-stories.d12d33ea.iframe.bundle.js.gz +0 -0
  326. package/demo/docs/view-fields-combo-box-v3-index-stories.eb2d72b2.iframe.bundle.js +229 -0
  327. package/demo/docs/view-fields-combo-box-v3-index-stories.eb2d72b2.iframe.bundle.js.br +0 -0
  328. package/demo/docs/view-fields-combo-box-v3-index-stories.eb2d72b2.iframe.bundle.js.gz +0 -0
  329. package/demo/docs/view-fields-date-input-index-stories.c90663b8.iframe.bundle.js +189 -0
  330. package/demo/docs/view-fields-date-input-index-stories.c90663b8.iframe.bundle.js.br +0 -0
  331. package/demo/docs/view-fields-date-input-index-stories.c90663b8.iframe.bundle.js.gz +0 -0
  332. package/demo/docs/view-fields-date-picker-index-stories.c4b58d7e.iframe.bundle.js +189 -0
  333. package/demo/docs/view-fields-date-picker-index-stories.c4b58d7e.iframe.bundle.js.br +0 -0
  334. package/demo/docs/view-fields-date-picker-index-stories.c4b58d7e.iframe.bundle.js.gz +0 -0
  335. package/demo/docs/view-fields-date-range-picker-index-stories.3acc2b53.iframe.bundle.js +161 -0
  336. package/demo/docs/view-fields-date-range-picker-index-stories.3acc2b53.iframe.bundle.js.br +0 -0
  337. package/demo/docs/view-fields-date-range-picker-index-stories.3acc2b53.iframe.bundle.js.gz +0 -0
  338. package/demo/docs/view-fields-date-time-picker-index-stories.1049cef2.iframe.bundle.js +649 -0
  339. package/demo/docs/view-fields-date-time-picker-index-stories.1049cef2.iframe.bundle.js.br +0 -0
  340. package/demo/docs/view-fields-date-time-picker-index-stories.1049cef2.iframe.bundle.js.gz +0 -0
  341. package/demo/docs/view-fields-form-item-layout-index-stories.ea8d439e.iframe.bundle.js +149 -0
  342. package/demo/docs/view-fields-form-item-layout-index-stories.ea8d439e.iframe.bundle.js.br +0 -0
  343. package/demo/docs/view-fields-form-item-layout-index-stories.ea8d439e.iframe.bundle.js.gz +0 -0
  344. package/demo/docs/view-fields-form-layout-block-item-index-stories.33388bf1.iframe.bundle.js +266 -0
  345. package/demo/docs/view-fields-form-layout-block-item-index-stories.33388bf1.iframe.bundle.js.br +0 -0
  346. package/demo/docs/view-fields-form-layout-block-item-index-stories.33388bf1.iframe.bundle.js.gz +0 -0
  347. package/demo/docs/view-fields-input-mask-index-stories.f7a2f67f.iframe.bundle.js +225 -0
  348. package/demo/docs/view-fields-input-mask-index-stories.f7a2f67f.iframe.bundle.js.br +0 -0
  349. package/demo/docs/view-fields-input-mask-index-stories.f7a2f67f.iframe.bundle.js.gz +0 -0
  350. package/demo/docs/view-fields-input-text-index-stories.ce91cce1.iframe.bundle.js +161 -0
  351. package/demo/docs/view-fields-input-text-index-stories.ce91cce1.iframe.bundle.js.br +0 -0
  352. package/demo/docs/view-fields-input-text-index-stories.ce91cce1.iframe.bundle.js.gz +0 -0
  353. package/demo/docs/view-fields-large-text-box-index-stories.e0a0c395.iframe.bundle.js +254 -0
  354. package/demo/docs/view-fields-large-text-box-index-stories.e0a0c395.iframe.bundle.js.br +0 -0
  355. package/demo/docs/view-fields-large-text-box-index-stories.e0a0c395.iframe.bundle.js.gz +0 -0
  356. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.3b95e3a9.iframe.bundle.js +213 -0
  357. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.3b95e3a9.iframe.bundle.js.br +0 -0
  358. package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.3b95e3a9.iframe.bundle.js.gz +0 -0
  359. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.5fd0b83c.iframe.bundle.js +185 -0
  360. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.5fd0b83c.iframe.bundle.js.br +0 -0
  361. package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.5fd0b83c.iframe.bundle.js.gz +0 -0
  362. package/demo/docs/view-fields-radio-group-index-stories.b73d0ceb.iframe.bundle.js +281 -0
  363. package/demo/docs/view-fields-radio-group-index-stories.b73d0ceb.iframe.bundle.js.br +0 -0
  364. package/demo/docs/view-fields-radio-group-index-stories.b73d0ceb.iframe.bundle.js.gz +0 -0
  365. package/demo/docs/view-fields-radio-index-stories.b8dead02.iframe.bundle.js +342 -0
  366. package/demo/docs/view-fields-radio-index-stories.b8dead02.iframe.bundle.js.br +0 -0
  367. package/demo/docs/view-fields-radio-index-stories.b8dead02.iframe.bundle.js.gz +0 -0
  368. package/demo/docs/view-fields-radio-set-value-stories.d5016424.iframe.bundle.js +366 -0
  369. package/demo/docs/view-fields-radio-set-value-stories.d5016424.iframe.bundle.js.br +0 -0
  370. package/demo/docs/view-fields-radio-set-value-stories.d5016424.iframe.bundle.js.gz +0 -0
  371. package/demo/docs/view-fields-text-box-index-stories.4f390ff4.iframe.bundle.js +258 -0
  372. package/demo/docs/view-fields-text-box-index-stories.4f390ff4.iframe.bundle.js.br +0 -0
  373. package/demo/docs/view-fields-text-box-index-stories.4f390ff4.iframe.bundle.js.gz +0 -0
  374. package/demo/docs/view-fields-toggle-index-stories.48a6767d.iframe.bundle.js +145 -0
  375. package/demo/docs/view-fields-toggle-index-stories.48a6767d.iframe.bundle.js.br +0 -0
  376. package/demo/docs/view-fields-toggle-index-stories.48a6767d.iframe.bundle.js.gz +0 -0
  377. package/demo/docs/view-form-index-stories.ebbc665b.iframe.bundle.js +373 -0
  378. package/demo/docs/view-form-index-stories.ebbc665b.iframe.bundle.js.br +0 -0
  379. package/demo/docs/view-form-index-stories.ebbc665b.iframe.bundle.js.gz +0 -0
  380. package/demo/docs/view-form-usecases-stories.b1056f80.iframe.bundle.js +305 -0
  381. package/demo/docs/view-form-usecases-stories.b1056f80.iframe.bundle.js.br +0 -0
  382. package/demo/docs/view-form-usecases-stories.b1056f80.iframe.bundle.js.gz +0 -0
  383. package/demo/docs/view-intro-stories-mdx.2f0f47f8.iframe.bundle.js +6 -0
  384. package/demo/docs/view-intro-stories-mdx.2f0f47f8.iframe.bundle.js.br +0 -0
  385. package/demo/docs/view-intro-stories-mdx.2f0f47f8.iframe.bundle.js.gz +0 -0
  386. package/demo/docs/view-live-message-index-stories.4dee2a92.iframe.bundle.js +169 -0
  387. package/demo/docs/view-live-message-index-stories.4dee2a92.iframe.bundle.js.br +0 -0
  388. package/demo/docs/view-live-message-index-stories.4dee2a92.iframe.bundle.js.gz +0 -0
  389. package/demo/docs/view-modals-error-index-stories.b64a6916.iframe.bundle.js +93 -0
  390. package/demo/docs/view-modals-error-index-stories.b64a6916.iframe.bundle.js.br +0 -0
  391. package/demo/docs/view-modals-error-index-stories.b64a6916.iframe.bundle.js.gz +0 -0
  392. package/demo/docs/view-modals-navigation-prompt-index-stories.c5eaf827.iframe.bundle.js +101 -0
  393. package/demo/docs/view-modals-navigation-prompt-index-stories.c5eaf827.iframe.bundle.js.br +0 -0
  394. package/demo/docs/view-modals-navigation-prompt-index-stories.c5eaf827.iframe.bundle.js.gz +0 -0
  395. package/demo/docs/view-modals-session-expiry-index-stories.2d8aae87.iframe.bundle.js +101 -0
  396. package/demo/docs/view-modals-session-expiry-index-stories.2d8aae87.iframe.bundle.js.br +0 -0
  397. package/demo/docs/view-modals-session-expiry-index-stories.2d8aae87.iframe.bundle.js.gz +0 -0
  398. package/demo/docs/view-session-timeout-index-stories.2055de22.iframe.bundle.js +53 -0
  399. package/demo/docs/view-session-timeout-index-stories.2055de22.iframe.bundle.js.br +0 -0
  400. package/demo/docs/view-session-timeout-index-stories.2055de22.iframe.bundle.js.gz +0 -0
  401. package/demo/docs/view-wait-message-index-stories.c74a9836.iframe.bundle.js +177 -0
  402. package/demo/docs/view-wait-message-index-stories.c74a9836.iframe.bundle.js.br +0 -0
  403. package/demo/docs/view-wait-message-index-stories.c74a9836.iframe.bundle.js.gz +0 -0
  404. package/demo/favicon.ico +0 -0
  405. package/demo/iframe.html +377 -0
  406. package/demo/index.html +59 -0
  407. package/demo/main.4677f29d.iframe.bundle.js +6 -0
  408. package/demo/main.4677f29d.iframe.bundle.js.br +0 -0
  409. package/demo/main.4677f29d.iframe.bundle.js.gz +0 -0
  410. package/demo/main.954a8357cbbc4ca4db5e.manager.bundle.js +1 -0
  411. package/demo/main.954a8357cbbc4ca4db5e.manager.bundle.js.br +0 -0
  412. package/demo/main.954a8357cbbc4ca4db5e.manager.bundle.js.gz +0 -0
  413. package/demo/project.json +1 -0
  414. package/demo/runtime~main.527063655a0d613db5dd.manager.bundle.js +2 -0
  415. package/demo/runtime~main.527063655a0d613db5dd.manager.bundle.js.br +0 -0
  416. package/demo/runtime~main.527063655a0d613db5dd.manager.bundle.js.gz +0 -0
  417. package/demo/runtime~main.672b2a5d.iframe.bundle.js +2 -0
  418. package/demo/runtime~main.672b2a5d.iframe.bundle.js.br +0 -0
  419. package/demo/runtime~main.672b2a5d.iframe.bundle.js.gz +0 -0
  420. package/demo/static/media/ProximaLight.1c840f2e.woff +0 -0
  421. package/demo/static/media/ProximaLightItalic.26edbdf9.woff +0 -0
  422. package/demo/static/media/ProximaMedium.8648a446.woff +0 -0
  423. package/demo/static/media/ProximaMediumItalic.6dd91f36.woff +0 -0
  424. package/demo/static/media/ProximaNovaBlack.f1ff9416.woff +0 -0
  425. package/demo/static/media/ProximaNovaBlackItalic.aa93a937.woff +0 -0
  426. package/demo/static/media/ProximaNovaBold.690419e8.woff +0 -0
  427. package/demo/static/media/ProximaNovaBoldItalic.f322b739.woff +0 -0
  428. package/demo/static/media/ProximaNovaExtrabold.404c9e74.woff +0 -0
  429. package/demo/static/media/ProximaNovaExtraboldItalic.d97ffa0f.woff +0 -0
  430. package/demo/static/media/ProximaNovaRegular.7abe9fa6.woff +0 -0
  431. package/demo/static/media/ProximaNovaRegularItalic.1073d28d.woff +0 -0
  432. package/demo/static/media/ProximaNovaSemibold.1b57a486.woff +0 -0
  433. package/demo/static/media/ProximaNovaSemiboldItalic.47673788.woff +0 -0
  434. package/demo/static/media/ProximaNovaThin.730c623c.woff +0 -0
  435. package/demo/static/media/ProximaNovaThinItalic.2915a90e.woff +0 -0
  436. package/demo/stories.json +1 -0
  437. package/demo/view-breakpoint-index-stories.39d53b06.iframe.bundle.js +101 -0
  438. package/demo/view-breakpoint-index-stories.39d53b06.iframe.bundle.js.br +0 -0
  439. package/demo/view-breakpoint-index-stories.39d53b06.iframe.bundle.js.gz +0 -0
  440. package/demo/view-error-toast-index-stories.10975752.iframe.bundle.js +361 -0
  441. package/demo/view-error-toast-index-stories.10975752.iframe.bundle.js.br +0 -0
  442. package/demo/view-error-toast-index-stories.10975752.iframe.bundle.js.gz +0 -0
  443. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.86694d7a.iframe.bundle.js +669 -0
  444. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.86694d7a.iframe.bundle.js.br +0 -0
  445. package/demo/view-fields-autocomplete-advanced-autocomplete-stories.86694d7a.iframe.bundle.js.gz +0 -0
  446. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.72d255f0.iframe.bundle.js +477 -0
  447. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.72d255f0.iframe.bundle.js.br +0 -0
  448. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.72d255f0.iframe.bundle.js.gz +0 -0
  449. package/demo/view-fields-autocomplete-index-stories.02666728.iframe.bundle.js +245 -0
  450. package/demo/view-fields-autocomplete-index-stories.02666728.iframe.bundle.js.br +0 -0
  451. package/demo/view-fields-autocomplete-index-stories.02666728.iframe.bundle.js.gz +0 -0
  452. package/demo/view-fields-check-box-index-stories.ee068c3e.iframe.bundle.js +181 -0
  453. package/demo/view-fields-check-box-index-stories.ee068c3e.iframe.bundle.js.br +0 -0
  454. package/demo/view-fields-check-box-index-stories.ee068c3e.iframe.bundle.js.gz +0 -0
  455. package/demo/view-fields-check-box-set-value-stories.174d03c4.iframe.bundle.js +237 -0
  456. package/demo/view-fields-check-box-set-value-stories.174d03c4.iframe.bundle.js.br +0 -0
  457. package/demo/view-fields-check-box-set-value-stories.174d03c4.iframe.bundle.js.gz +0 -0
  458. package/demo/view-fields-combo-box-index-stories.d12d33ea.iframe.bundle.js +209 -0
  459. package/demo/view-fields-combo-box-index-stories.d12d33ea.iframe.bundle.js.br +0 -0
  460. package/demo/view-fields-combo-box-index-stories.d12d33ea.iframe.bundle.js.gz +0 -0
  461. package/demo/view-fields-combo-box-v3-index-stories.eb2d72b2.iframe.bundle.js +229 -0
  462. package/demo/view-fields-combo-box-v3-index-stories.eb2d72b2.iframe.bundle.js.br +0 -0
  463. package/demo/view-fields-combo-box-v3-index-stories.eb2d72b2.iframe.bundle.js.gz +0 -0
  464. package/demo/view-fields-date-input-index-stories.c90663b8.iframe.bundle.js +189 -0
  465. package/demo/view-fields-date-input-index-stories.c90663b8.iframe.bundle.js.br +0 -0
  466. package/demo/view-fields-date-input-index-stories.c90663b8.iframe.bundle.js.gz +0 -0
  467. package/demo/view-fields-date-picker-index-stories.c4b58d7e.iframe.bundle.js +189 -0
  468. package/demo/view-fields-date-picker-index-stories.c4b58d7e.iframe.bundle.js.br +0 -0
  469. package/demo/view-fields-date-picker-index-stories.c4b58d7e.iframe.bundle.js.gz +0 -0
  470. package/demo/view-fields-date-range-picker-index-stories.3acc2b53.iframe.bundle.js +161 -0
  471. package/demo/view-fields-date-range-picker-index-stories.3acc2b53.iframe.bundle.js.br +0 -0
  472. package/demo/view-fields-date-range-picker-index-stories.3acc2b53.iframe.bundle.js.gz +0 -0
  473. package/demo/view-fields-date-time-picker-index-stories.1049cef2.iframe.bundle.js +649 -0
  474. package/demo/view-fields-date-time-picker-index-stories.1049cef2.iframe.bundle.js.br +0 -0
  475. package/demo/view-fields-date-time-picker-index-stories.1049cef2.iframe.bundle.js.gz +0 -0
  476. package/demo/view-fields-form-item-layout-index-stories.ea8d439e.iframe.bundle.js +149 -0
  477. package/demo/view-fields-form-item-layout-index-stories.ea8d439e.iframe.bundle.js.br +0 -0
  478. package/demo/view-fields-form-item-layout-index-stories.ea8d439e.iframe.bundle.js.gz +0 -0
  479. package/demo/view-fields-form-layout-block-item-index-stories.33388bf1.iframe.bundle.js +266 -0
  480. package/demo/view-fields-form-layout-block-item-index-stories.33388bf1.iframe.bundle.js.br +0 -0
  481. package/demo/view-fields-form-layout-block-item-index-stories.33388bf1.iframe.bundle.js.gz +0 -0
  482. package/demo/view-fields-input-mask-index-stories.f7a2f67f.iframe.bundle.js +225 -0
  483. package/demo/view-fields-input-mask-index-stories.f7a2f67f.iframe.bundle.js.br +0 -0
  484. package/demo/view-fields-input-mask-index-stories.f7a2f67f.iframe.bundle.js.gz +0 -0
  485. package/demo/view-fields-input-text-index-stories.ce91cce1.iframe.bundle.js +161 -0
  486. package/demo/view-fields-input-text-index-stories.ce91cce1.iframe.bundle.js.br +0 -0
  487. package/demo/view-fields-input-text-index-stories.ce91cce1.iframe.bundle.js.gz +0 -0
  488. package/demo/view-fields-large-text-box-index-stories.e0a0c395.iframe.bundle.js +254 -0
  489. package/demo/view-fields-large-text-box-index-stories.e0a0c395.iframe.bundle.js.br +0 -0
  490. package/demo/view-fields-large-text-box-index-stories.e0a0c395.iframe.bundle.js.gz +0 -0
  491. package/demo/view-fields-masked-input-text-with-money-mask-stories.3b95e3a9.iframe.bundle.js +213 -0
  492. package/demo/view-fields-masked-input-text-with-money-mask-stories.3b95e3a9.iframe.bundle.js.br +0 -0
  493. package/demo/view-fields-masked-input-text-with-money-mask-stories.3b95e3a9.iframe.bundle.js.gz +0 -0
  494. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.5fd0b83c.iframe.bundle.js +185 -0
  495. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.5fd0b83c.iframe.bundle.js.br +0 -0
  496. package/demo/view-fields-masked-input-text-with-percentage-mask-stories.5fd0b83c.iframe.bundle.js.gz +0 -0
  497. package/demo/view-fields-radio-group-index-stories.b73d0ceb.iframe.bundle.js +281 -0
  498. package/demo/view-fields-radio-group-index-stories.b73d0ceb.iframe.bundle.js.br +0 -0
  499. package/demo/view-fields-radio-group-index-stories.b73d0ceb.iframe.bundle.js.gz +0 -0
  500. package/demo/view-fields-radio-index-stories.b8dead02.iframe.bundle.js +342 -0
  501. package/demo/view-fields-radio-index-stories.b8dead02.iframe.bundle.js.br +0 -0
  502. package/demo/view-fields-radio-index-stories.b8dead02.iframe.bundle.js.gz +0 -0
  503. package/demo/view-fields-radio-set-value-stories.d5016424.iframe.bundle.js +366 -0
  504. package/demo/view-fields-radio-set-value-stories.d5016424.iframe.bundle.js.br +0 -0
  505. package/demo/view-fields-radio-set-value-stories.d5016424.iframe.bundle.js.gz +0 -0
  506. package/demo/view-fields-text-box-index-stories.4f390ff4.iframe.bundle.js +258 -0
  507. package/demo/view-fields-text-box-index-stories.4f390ff4.iframe.bundle.js.br +0 -0
  508. package/demo/view-fields-text-box-index-stories.4f390ff4.iframe.bundle.js.gz +0 -0
  509. package/demo/view-fields-toggle-index-stories.48a6767d.iframe.bundle.js +145 -0
  510. package/demo/view-fields-toggle-index-stories.48a6767d.iframe.bundle.js.br +0 -0
  511. package/demo/view-fields-toggle-index-stories.48a6767d.iframe.bundle.js.gz +0 -0
  512. package/demo/view-form-index-stories.ebbc665b.iframe.bundle.js +373 -0
  513. package/demo/view-form-index-stories.ebbc665b.iframe.bundle.js.br +0 -0
  514. package/demo/view-form-index-stories.ebbc665b.iframe.bundle.js.gz +0 -0
  515. package/demo/view-form-usecases-stories.b1056f80.iframe.bundle.js +305 -0
  516. package/demo/view-form-usecases-stories.b1056f80.iframe.bundle.js.br +0 -0
  517. package/demo/view-form-usecases-stories.b1056f80.iframe.bundle.js.gz +0 -0
  518. package/demo/view-intro-stories-mdx.2f0f47f8.iframe.bundle.js +6 -0
  519. package/demo/view-intro-stories-mdx.2f0f47f8.iframe.bundle.js.br +0 -0
  520. package/demo/view-intro-stories-mdx.2f0f47f8.iframe.bundle.js.gz +0 -0
  521. package/demo/view-live-message-index-stories.4dee2a92.iframe.bundle.js +169 -0
  522. package/demo/view-live-message-index-stories.4dee2a92.iframe.bundle.js.br +0 -0
  523. package/demo/view-live-message-index-stories.4dee2a92.iframe.bundle.js.gz +0 -0
  524. package/demo/view-modals-error-index-stories.b64a6916.iframe.bundle.js +93 -0
  525. package/demo/view-modals-error-index-stories.b64a6916.iframe.bundle.js.br +0 -0
  526. package/demo/view-modals-error-index-stories.b64a6916.iframe.bundle.js.gz +0 -0
  527. package/demo/view-modals-navigation-prompt-index-stories.c5eaf827.iframe.bundle.js +101 -0
  528. package/demo/view-modals-navigation-prompt-index-stories.c5eaf827.iframe.bundle.js.br +0 -0
  529. package/demo/view-modals-navigation-prompt-index-stories.c5eaf827.iframe.bundle.js.gz +0 -0
  530. package/demo/view-modals-session-expiry-index-stories.2d8aae87.iframe.bundle.js +101 -0
  531. package/demo/view-modals-session-expiry-index-stories.2d8aae87.iframe.bundle.js.br +0 -0
  532. package/demo/view-modals-session-expiry-index-stories.2d8aae87.iframe.bundle.js.gz +0 -0
  533. package/demo/view-session-timeout-index-stories.2055de22.iframe.bundle.js +53 -0
  534. package/demo/view-session-timeout-index-stories.2055de22.iframe.bundle.js.br +0 -0
  535. package/demo/view-session-timeout-index-stories.2055de22.iframe.bundle.js.gz +0 -0
  536. package/demo/view-wait-message-index-stories.c74a9836.iframe.bundle.js +177 -0
  537. package/demo/view-wait-message-index-stories.c74a9836.iframe.bundle.js.br +0 -0
  538. package/demo/view-wait-message-index-stories.c74a9836.iframe.bundle.js.gz +0 -0
  539. package/dist/cjs/package.json +4 -1
  540. package/dist/cjs/utils/auth/index.js +7 -17
  541. package/dist/cjs/utils/micro-frontend/guest.js +6 -1
  542. package/dist/cjs/utils/micro-frontend/scripting-objects/analytics.js +1 -4
  543. package/dist/cjs/utils/micro-frontend/scripting-objects/logrocket.js +31 -0
  544. package/dist/cjs/view/fields/form-item-layout/index.js +3 -5
  545. package/dist/cjs/view/fields/form-layout-block-item/index.js +2 -4
  546. package/dist/cjs/view/page.js +3 -10
  547. package/dist/cjs/view/tests/__snapshots__/guest-microapp.test.tsx.snap +2 -2
  548. package/dist/cjs/view/wait-message/index.js +3 -16
  549. package/dist/esm/package.json +4 -1
  550. package/dist/esm/utils/auth/index.js +11 -21
  551. package/dist/esm/utils/micro-frontend/guest.js +6 -1
  552. package/dist/esm/utils/micro-frontend/scripting-objects/analytics.js +2 -5
  553. package/dist/esm/utils/micro-frontend/scripting-objects/logrocket.js +31 -0
  554. package/dist/esm/view/fields/form-item-layout/index.js +4 -6
  555. package/dist/esm/view/fields/form-layout-block-item/index.js +3 -5
  556. package/dist/esm/view/page.js +4 -11
  557. package/dist/esm/view/tests/__snapshots__/guest-microapp.test.tsx.snap +2 -2
  558. package/dist/esm/view/wait-message/index.js +4 -17
  559. package/dist/types/lib/utils/micro-frontend/guest.d.ts +4 -0
  560. package/dist/types/lib/utils/micro-frontend/scripting-objects/logrocket.d.ts +12 -0
  561. package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
  562. package/dist/types/lib/view/fields/form-layout-block-item/index.d.ts +1 -1
  563. package/dist/types/tsconfig.tsbuildinfo +1 -1
  564. package/package.json +58 -59
@@ -0,0 +1,706 @@
1
+ "use strict";(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[8423],{"./node_modules/.pnpm/@elliemae+ds-form-date-time-picker@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-form-date-time-picker/dist/esm/ControlledDateTimePicker.js":(fa,Xt,ee)=>{ee.d(Xt,{l:()=>Mt});var r=ee("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),l=ee("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),It=ee("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),zt=ee("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/useGetXstyledProps.js"),Jt=ee("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/useGetGlobalAttributes.js"),Zt=ee("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/defaultProps/useMemoMergePropsWithDefault.js");const Qt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Qe=["January","February","March","April","May","June","July","August","September","October","November","December"],Rt={1:"first",2:"second",3:"third",4:"fourth",5:"fifth",6:"sixth",7:"seventh",8:"eighth",9:"ninth",10:"tenth",11:"eleventh",12:"twelfth",13:"thirteenth",14:"fourteenth",15:"fifteenth",16:"sixteenth",17:"seventeenth",18:"eighteenth",19:"ninteenth",20:"twentieth",21:"twentie first",22:"twentie second",23:"twentie third",24:"twentie fourth",25:"twentie fifth",26:"twentie sixth",27:"twentie seventh",28:"twentie eighth",29:"twentie ninth",30:"thirtieth",31:"thirty first"},Te={isAutomaticFillTrigger:!1},Q=e=>{const t=Number.parseInt(e,10);return Number.isNaN(t)?-1:t},ne=(e,t,n="0")=>{if(e.length===t)return e;const o=e.split("").reverse();return new Array(t).fill(n).map((a,s)=>o[s]?o[s]:n).reverse().join("")},be=(e,t,n="_")=>{if(e.length===t)return e;const o=e.split("");return new Array(t).fill(n).map((a,s)=>o[s]?o[s]:n).join("")},Pe=({month:e,day:t,year:n})=>{const o=be(e,2),a=be(t,2),s=be(n,4);return`${o}/${a}/${s}`},qe=e=>e?.split?.(" ")?.[0],Ee=e=>{const[t="",n="",o=""]=e.split("/"),a=/_/g;return{month:(t||"").replace(a,""),day:(n||"").replace(a,""),year:(o||"").replace(a,"")}},bt=e=>{const[t="",n=""]=e.split(":"),[o="",a=""]=n.split(" "),s=/_/g;return{hours:(t||"").replace(s,""),minutes:(o||"").replace(s,""),meridiem:(a||"").replace(s,"")}},qt=/^[0-9_][0-9_]\/[0-9_][0-9_]\/[0-9_]{4}$/,_t=e=>{if(e==="")return!0;if(!qt.test(e))return!1;const{month:n,day:o,year:a}=Ee(e);return!(Number.parseInt(n,10)>12||Number.parseInt(o,10)>31||Number.parseInt(a,10)>9999)},et=({hours:e,minutes:t,meridiem:n})=>{const o=be(e,2),a=be(t,2),s=be(n,2);return`${o}:${a} ${s}`},Ke=e=>{const[t,n="__:__",o="__"]=e.split(" ");return`${n} ${o}`},wt=e=>{const[t="",n]=e.split(" "),[o,a]=t.split(":"),s=/_/g;return{hours:(o||"").replace(s,""),minutes:(a||"").replace(s,""),meridiem:(n||"").replace(s,"")}},en=/^[0-9_][0-9_]:[0-9_][0-9_]\s[aApP_][mM_]$/,Nt=e=>{if(e==="")return!0;if(!en.test(e))return!1;const{hours:n,minutes:o}=wt(e);return!(Number.parseInt(n,10)>12||Number.parseInt(o,10)>60)},tt=(e,t="_")=>e===""||e.includes(t),xt=e=>e==="__/__/____",kt=e=>e==="__:__ __",nt=e=>e==="__/__/____ __:__ __",tn=e=>{const{month:t,day:n,year:o}=Ee(e),a=Q(t),s=Q(n),i=Q(o);return a===-1||s===-1||i===-1?"":`${Qe[a-1]} ${Rt[s]} ${i}`},ye=e=>({month:e?.getMonth?.(),day:e?.getDate?.(),year:e?.getFullYear?.()}),Me=e=>{const t=ne(`${e.getMonth()+1}`,2),n=ne(`${e.getDate()}`,2),o=ne(`${e.getFullYear()}`,4);return`${t}/${n}/${o}`},nn=e=>{const t=ne(`${e.getMonth()+1}`,2),n=ne(`${e.getFullYear()}`,4);return`${t}/__/${n}`},rn=e=>{const t=e.getHours(),n=t>12?"PM":"AM",o=t>12?t-12:t,a=e.getMinutes(),s=ne(`${o}`,2),i=ne(`${a}`,2);return`${s}:${i} ${n}`},on=e=>Qe[e],an=(e,t)=>e?.getTime?.()===t?.getTime?.(),Ue=(e,t)=>{const{day:n,month:o,year:a}=ye(e),{day:s,month:i,year:c}=ye(t);return n===s&&o===i&&a===c},Ot=(e,t)=>{const{month:n,year:o}=ye(e),{month:a,year:s}=ye(t);return n===a&&o===s},sn=(e,t)=>{const{month:n,year:o}=ye(e),{month:a,year:s}=ye(t);return n-1===a&&o===s||n-1===-1&&o-1===s&&a===11},ln=(e,t)=>{const{month:n,year:o}=ye(e),{month:a,year:s}=ye(t);return n+1===a&&o===s||n+1===12&&o+1===s&&a===0},Ea=(e,t)=>new Date(t,e+1,0),rt=(e,t,n)=>new Date(t,e,n)?.getMonth?.()===e,Ve=e=>{const{month:t,day:n,year:o}=Ee(e),a=Q(t),s=Q(n),i=Q(o);return a!==-1&&s!==-1&&i!==-1&&rt(a-1,i,s)?new Date(i,a-1,s):null},cn=e=>{if(tt(e))return!0;const{month:t}=Ee(e),n=Q(t);if(n===-1)return!1;const o=n-1;return Ve(e)?.getMonth?.()===o},_e=(e,t=o=>!1,n=o=>!1)=>{const o={};return tt(e)||(o.isDayPresentInMonth=cn(e),o.isDayPresentInMonth||(o.suggestedErrorMsg="The selected day is not part of the selected month"),Ve(e)&&(o.isOutOfRangeDay=t(e),o.isDisabledDay=n(e),(o.isOutOfRangeDay||o.isDisabledDay)&&(o.suggestedErrorMsg="The selected day is not allowed"))),o},Lt=e=>e%4===0&&e%100!==0||e%400===0,dn=(e,t)=>[31,Lt(e)?29:28,31,30,31,30,31,31,30,31,30,31][t],ya=e=>Lt(e.getFullYear()),un=e=>dn(e.getFullYear(),e.getMonth()),Pt=(e,t)=>{const n=new Date(e.getTime()),o=n.getDate();return n.setDate(1),n.setMonth(n.getMonth()+t),n.setDate(Math.min(o,un(n))),n},mn=(e,t)=>Pt(e,t*12),je=({month:e,year:t,day:n=1},{monthsToSum:o=0,yearsToSum:a=0,daysToSum:s=0})=>{let i=new Date(t,e,n);return a&&(i=mn(i,a)),o&&(i=Pt(i,o)),s&&i.setDate(i.getDate()+s),{month:i.getMonth(),day:i.getDate(),year:i.getFullYear()}},ve=(e,t)=>{const n=ye(e),{month:o,year:a,day:s}=je(n,t);return new Date(a,o,s)},Ca=(e,t=1)=>{const n=new Date(e.getTime());return n.setFullYear(e.getFullYear()-t),n},Da=(e,t=1)=>{const n=new Date(e.getTime());return n.setMonth(e.getMonth()-t),n},pn=(e,t=1)=>{const n=new Date(e.getTime());return n.setMonth(e.getMonth()+t),n},Ta=(e,t=1)=>{const n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n},hn=(e,t)=>{const n=new Date(t,e,1),o=[];for(;n.getMonth()===e;)o.push(new Date(n)),n.setDate(n.getDate()+1);return o},vt=(e,t,n)=>{const o=new Date(t,e,1),a=[];for(;a.length!==n;)o.setDate(o.getDate()-1),a.push(new Date(o));return a.reverse()},St=(e,t,n)=>{const o=pn(new Date(t,e,1),1),a=[];for(;a.length!==n;)a.push(new Date(o)),o.setDate(o.getDate()+1);return a},gn=(e,t)=>{const n=hn(e,t).map(f=>({day:f,dayAsString:Me(f),isPrevMonthDay:!1,isNextMonthDay:!1,isCurrMonthDay:!0,isHidden:!1,dayBtnRef:(0,r.createRef)()})),o=n?.[0]?.day?.getDay(),a=vt(e,t,o).map(f=>({day:f,dayAsString:Me(f),isPrevMonthDay:!0,isNextMonthDay:!1,isCurrMonthDay:!1,isHidden:!1,dayBtnRef:(0,r.createRef)()})),s=n?.[n.length-1]?.day?.getDay(),i=St(e,t,6-s).map(f=>({day:f,dayAsString:Me(f),isPrevMonthDay:!1,isNextMonthDay:!0,isCurrMonthDay:!1,isHidden:!1,dayBtnRef:(0,r.createRef)()})),c=[...a,...n,...i];if(c.length===42)return c;const u=7+o;let h=6-s;a.length===0&&n.length===28&&i.length===0&&(h=7);const p=vt(e,t,u).map(f=>({day:f,dayAsString:Me(f),isPrevMonthDay:!0,isNextMonthDay:!1,isCurrMonthDay:!1,isHidden:!1,dayBtnRef:(0,r.createRef)()})),m=St(e,t,h).map(f=>({day:f,dayAsString:Me(f),isPrevMonthDay:!1,isNextMonthDay:!0,isCurrMonthDay:!1,isHidden:!1,dayBtnRef:(0,r.createRef)()}));return[...p,...n,...m]};var fn=ee("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),En=ee("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/globalAttributesPropTypes.js"),yn=ee("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/xstyledPropTypes.js"),V=ee("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js");const Cn=e=>typeof e=="string",Dn=e=>typeof e=="object",Ht=e=>Object.keys(e).reduce((o,a)=>{const s=e[a];return Cn(s)?o.push(`${s}`):Dn(s)&&o.push(...Ht(s)),o},[]),Tn=e=>{const t=Ht(e),n={};return t.forEach(o=>{n[o]=V.A.shape({"aria-*":V.A.string.description("Aria related properties"),"data-*":V.A.string.description("Any data property to attach to the root container"),"on-*":V.A.func.description("Any supported React event"),"all HTML attributes":V.A.any.description("HTML attributes such as id, className, autoComplete, href and so on")}).description(`an object containing the definitions for ${o} aria and data props`).dataTestId()}),n};var Mn=ee("./node_modules/.pnpm/@elliemae+ds-system@3.56.4_@elliemae+pui-theme@2.13.0_lodash-es@4.17.21/node_modules/@elliemae/ds-system/dist/esm/styled/helpers.js");const q="DSControlleddatetimepicker",te={CONTAINER:"root",DATE_INPUTS_MONTH:"time-picker-month-input",DATE_INPUTS_DAY:"time-picker-day-input",DATE_INPUTS_YEAR:"time-picker-year-input",TIME_INPUTS_HOUR:"time-picker-hour-input",TIME_INPUTS_MINUTE:"time-picker-minute-input",TIME_INPUTS_MERIDIEM:"time-picker-meridiem-input",PICKER_ICONS_CALENDAR:"calendar-trigger-icon",PICKER_ICONS_TIMEWHEEL:"timewheel-trigger-icon",PICKER_ICONS_CALENDAR_TIMEWHEEL:"calendar-timewheel-trigger-icon",CALENDAR_DAY_BUTTON:"calendar-day",CALENDAR_HEADER_LABEL:"calendar-header-label",CALENDAR_HEADER_BUTTON:"calendar-header-buttons",CALENDAR_HEADER_WEEKLY_DAY_LIST:"calendar-header-weekly-day-list",TIMEWHEEL_TIME_BUTTON:"timewheel-time-button",TIMEWHEEL_TIME_CHANGE_BUTTON:"timewheel-time-change-button",TIMEWHEEL_HEADER_LABEL:"timewheel-header-label",CONTEXTUAL_MENU_CALENDAR:"calendar-context-content-wrapper",CONTEXTUAL_MENU_TIMEWHEEL:"timewheel-context-content-wrapper",CONTEXTUAL_MENU_CALENDAR_TIMEWHEEL:"calendar-timewheel-context-content-wrapper",FOOTERS_CALENDAR:"calendar-context-footer",FOOTERS_TIMEWHEEL:"timewheel-context-footer",FOOTERS_CALENDAR_TIMEWHEEL:"calendar-timewheel-context-footer",CONTROLLER_COMPONENT_CALENDAR:"calendar-controller-wrapper",CONTROLLER_COMPONENT_TIMEWHEEL:"timewheel-controller-wrapper",CONTROLLER_COMPONENT_CALENDAR_TIMEWHEEL:"calendar-timewheel-controller-wrapper",CLEAR_BUTTON:"clear-btn"},An={CONTAINER:"ds-controlled-date-time-picker-container",DATE_INPUTS_MONTH:"ds-controlled-date-time-picker-month-input",DATE_INPUTS_DAY:"ds-controlled-date-time-picker-day-input",DATE_INPUTS_YEAR:"ds-controlled-date-time-picker-year-input",TIME_INPUTS_HOUR:"ds-controlled-date-time-picker-hour-input",TIME_INPUTS_MINUTE:"ds-controlled-date-time-picker-minute-input",TIME_INPUTS_MERIDIEM:"ds-controlled-date-time-picker-meridiem-input",PICKER_ICONS_CALENDAR:"ds-controlled-date-time-picker-calendar-trigger-icon",PICKER_ICONS_TIMEWHEEL:"ds-controlled-date-time-picker-timewheel-trigger-icon",PICKER_ICONS_CALENDAR_TIMEWHEEL:"ds-controlled-date-time-picker-calendar-timewheel-trigger-icon",CALENDAR_TABLE_WRAPPER:"ds-controlled-date-time-picker-calendar-table-wrapper",CALENDAR_HEADER_LABEL:"ds-controlled-date-time-picker-calendar-header-label",CALENDAR_PREV_YEAR:"ds-controlled-date-time-picker-calendar-prev-year",CALENDAR_PREV_MONTH:"ds-controlled-date-time-picker-calendar-prev-month",CALENDAR_DAY:"ds-controlled-date-time-picker-calendar-day",CALENDAR_FOCUSED_DAY:"ds-controlled-date-time-picker-calendar-focused-day",CALENDAR_START_RANGE_DAY:"ds-controlled-date-time-picker-calendar-start-range-day",CALENDAR_IN_RANGE_DAY:"ds-controlled-date-time-picker-calendar-in-range-day",CALENDAR_END_RANGE_DAY:"ds-controlled-date-time-picker-calendar-end-range-day",CALENDAR_SELECTED_DAY:"ds-controlled-date-time-picker-calendar-selected-day",CALENDAR_SELECTED_FOCUSED_DAY:"ds-controlled-date-time-picker-calendar-selected-focused-day",CALENDAR_NEXT_MONTH:"ds-controlled-date-time-picker-calendar-next-month",CALENDAR_NEXT_YEAR:"ds-controlled-date-time-picker-calendar-next-year",TIMEWHEEL_HEADER_LABEL:"ds-controlled-date-time-picker-timewheel-header-label",TIMEWHEEL_PREV_HOUR:"ds-controlled-date-time-picker-timewheel-prev-hour",TIMEWHEEL_HOUR:"ds-controlled-date-time-picker-timewheel-hour",TIMEWHEEL_CURRENT_HOUR:"ds-controlled-date-time-picker-timewheel-current-hour",TIMEWHEEL_NEXT_HOUR:"ds-controlled-date-time-picker-timewheel-next-hour",TIMEWHEEL_PREV_MINUTE:"ds-controlled-date-time-picker-timewheel-prev-minute",TIMEWHEEL_MINUTE:"ds-controlled-date-time-picker-timewheel-minute",TIMEWHEEL_CURRENT_MINUTE:"ds-controlled-date-time-picker-timewheel-current-minute",TIMEWHEEL_NEXT_MINUTE:"ds-controlled-date-time-picker-timewheel-next-minute",TIMEWHEEL_PREV_MERIDIEM:"ds-controlled-date-time-picker-timewheel-prev-meridiem",TIMEWHEEL_MERIDIEM:"ds-controlled-date-time-picker-timewheel-meridiem",TIMEWHEEL_CURRENT_MERIDIEM:"ds-controlled-date-time-picker-timewheel-current-meridiem",TIMEWHEEL_NEXT_MERIDIEM:"ds-controlled-date-time-picker-timewheel-next-meridiem",CONTEXTUAL_MENU_CALENDAR:"ds-controlled-date-time-picker-calendar-context-content-wrapper",CONTEXTUAL_MENU_TIMEWHEEL:"ds-controlled-date-time-picker-timewheel-context-content-wrapper",CONTEXTUAL_MENU_CALENDAR_TIMEWHEEL:"ds-controlled-date-time-picker-calendar-timewheel-context-content-wrapper",CONTROLLER_COMPONENT_CALENDAR:"ds-controlled-date-time-picker-calendar-controller-wrapper",CONTROLLER_COMPONENT_TIMEWHEEL:"ds-controlled-date-time-picker-timewheel-controller-wrapper",CONTROLLER_COMPONENT_CALENDAR_TIMEWHEEL:"ds-controlled-date-time-picker-calendar-timewheel-controller-wrapper",FOOTERS_CALENDAR:"ds-controlled-date-time-picker-calendar-context-footer",FOOTERS_TIMEWHEEL:"ds-controlled-date-time-picker-timewheel-context-footer",FOOTERS_CALENDAR_TIMEWHEEL:"ds-controlled-date-time-picker-calendar-timewheel-context-footer",CLEAR_BUTTON:"ds-controlled-date-time-picker-clear-btn"},U={...(0,Mn.lD)(q,te),...An},In=te,re={CONTAINER:te.CONTAINER,DATE_INPUTS:{MONTH:te.DATE_INPUTS_MONTH,DAY:te.DATE_INPUTS_DAY,YEAR:te.DATE_INPUTS_YEAR},TIME_INPUTS:{HOUR:te.TIME_INPUTS_HOUR,MINUTE:te.TIME_INPUTS_MINUTE,MERIDIEM:te.TIME_INPUTS_MERIDIEM},PICKER_ICONS:{CALENDAR:te.PICKER_ICONS_CALENDAR,TIMEWHEEL:te.PICKER_ICONS_TIMEWHEEL,CALENDAR_TIMEWHEEL:te.PICKER_ICONS_CALENDAR_TIMEWHEEL},CALENDAR:{DAY_BUTTON:te.CALENDAR_DAY_BUTTON,HEADER_LABEL:te.CALENDAR_HEADER_LABEL,HEADER_BUTTON:te.CALENDAR_HEADER_BUTTON,HEADER_WEEKLY_DAY_LIST:te.CALENDAR_HEADER_WEEKLY_DAY_LIST},TIMEWHEEL:{TIME_BUTTON:te.TIMEWHEEL_TIME_BUTTON,TIME_CHANGE_BUTTON:te.TIMEWHEEL_TIME_CHANGE_BUTTON,HEADER_LABEL:te.TIMEWHEEL_HEADER_LABEL},CONTEXTUAL_MENU:{CALENDAR:te.CONTEXTUAL_MENU_CALENDAR,TIMEWHEEL:te.CONTEXTUAL_MENU_TIMEWHEEL,CALENDAR_TIMEWHEEL:te.CONTEXTUAL_MENU_CALENDAR_TIMEWHEEL},FOOTERS:{CALENDAR:te.FOOTERS_CALENDAR,TIMEWHEEL:te.FOOTERS_TIMEWHEEL,CALENDAR_TIMEWHEEL:te.FOOTERS_CALENDAR_TIMEWHEEL},CONTROLLER_COMPONENT:{CALENDAR:te.CONTROLLER_COMPONENT_CALENDAR,TIMEWHEEL:te.CONTROLLER_COMPONENT_TIMEWHEEL,CALENDAR_TIMEWHEEL:te.CONTROLLER_COMPONENT_CALENDAR_TIMEWHEEL},CLEAR_BUTTON:te.CLEAR_BUTTON},Ma=null,K={CONTAINER:U.CONTAINER,DATE_INPUTS:{MONTH:U.DATE_INPUTS_MONTH,DAY:U.DATE_INPUTS_DAY,YEAR:U.DATE_INPUTS_YEAR},TIME_INPUTS:{HOUR:U.TIME_INPUTS_HOUR,MINUTE:U.TIME_INPUTS_MINUTE,MERIDIEM:U.TIME_INPUTS_MERIDIEM},PICKER_ICONS:{CALENDAR:U.PICKER_ICONS_CALENDAR,TIMEWHEEL:U.PICKER_ICONS_TIMEWHEEL,CALENDAR_TIMEWHEEL:U.PICKER_ICONS_CALENDAR_TIMEWHEEL},CALENDAR:{TABLE_WRAPPER:U.CALENDAR_TABLE_WRAPPER,HEADER_LABEL:U.CALENDAR_HEADER_LABEL,PREV_YEAR:U.CALENDAR_PREV_YEAR,PREV_MONTH:U.CALENDAR_PREV_MONTH,DAY:U.CALENDAR_DAY,FOCUSED_DAY:U.CALENDAR_FOCUSED_DAY,START_RANGE_DAY:U.CALENDAR_START_RANGE_DAY,IN_RANGE_DAY:U.CALENDAR_IN_RANGE_DAY,END_RANGE_DAY:U.CALENDAR_END_RANGE_DAY,SELECTED_DAY:U.CALENDAR_SELECTED_DAY,SELECTED_FOCUSED_DAY:U.CALENDAR_SELECTED_FOCUSED_DAY,NEXT_MONTH:U.CALENDAR_NEXT_MONTH,NEXT_YEAR:U.CALENDAR_NEXT_YEAR},TIMEWHEEL:{HEADER_LABEL:U.TIMEWHEEL_HEADER_LABEL,PREV_HOUR:U.TIMEWHEEL_PREV_HOUR,HOUR:U.TIMEWHEEL_HOUR,CURRENT_HOUR:U.TIMEWHEEL_CURRENT_HOUR,NEXT_HOUR:U.TIMEWHEEL_NEXT_HOUR,PREV_MINUTE:U.TIMEWHEEL_PREV_MINUTE,MINUTE:U.TIMEWHEEL_MINUTE,CURRENT_MINUTE:U.TIMEWHEEL_CURRENT_MINUTE,NEXT_MINUTE:U.TIMEWHEEL_NEXT_MINUTE,PREV_MERIDIEM:U.TIMEWHEEL_PREV_MERIDIEM,MERIDIEM:U.TIMEWHEEL_MERIDIEM,CURRENT_MERIDIEM:U.TIMEWHEEL_CURRENT_MERIDIEM,NEXT_MERIDIEM:U.TIMEWHEEL_NEXT_MERIDIEM},CONTEXTUAL_MENU:{CALENDAR:U.CONTEXTUAL_MENU_CALENDAR,TIMEWHEEL:U.CONTEXTUAL_MENU_TIMEWHEEL,CALENDAR_TIMEWHEEL:U.CONTEXTUAL_MENU_CALENDAR_TIMEWHEEL},CONTROLLER_COMPONENT:{CALENDAR:U.CONTROLLER_COMPONENT_CALENDAR,TIMEWHEEL:U.CONTROLLER_COMPONENT_TIMEWHEEL,CALENDAR_TIMEWHEEL:U.CONTROLLER_COMPONENT_CALENDAR_TIMEWHEEL},FOOTERS:{CALENDAR:U.FOOTERS_CALENDAR,TIMEWHEEL:U.FOOTERS_TIMEWHEEL,CALENDAR_TIMEWHEEL:U.FOOTERS_CALENDAR_TIMEWHEEL},CLEAR_BUTTON:U.CLEAR_BUTTON},Ae=()=>{},Se=()=>!1,Rn={type:"full-date-time",onDateChange:Ae,onMonthChange:Ae,onDayChange:Ae,onYearChange:Ae,onTimeChange:Ae,onHourChange:Ae,onMinuteChange:Ae,onMeridiemChange:Ae,onPickerOpen:Ae,onPickerClose:Ae,getIsDisabledDay:Se,getIsOutOfRangeDay:Se,getIsStartRangeDay:Se,getIsDayInRange:Se,getIsEndRangeDay:Se,getIsDisabledTime:Se,minutesInterval:1,isClearable:!1,disabled:!1,readOnly:!1,hasError:!1,autoFocus:!1,preventCloseOnSelection:!1},bn={...(0,fn.Y)(q,In),...En.P,...yn.w,type:V.A.oneOf(["full-date-time","date-time-inputs","date-time-picker","date-time-picker-controller-only","full-date","date-inputs","date-picker","date-picker-controller-only","full-time","time-inputs","time-picker","time-picker-controller-only"]).description("Type of time form control to use").defaultValue("full-date-time"),disabled:V.A.bool.description("wheter or not the input is disabled").defaultValue(!1),applyAriaDisabled:V.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION."),readOnly:V.A.bool.description("Makes the component non-editable while remaining accessible").defaultValue(!1),isClearable:V.A.bool.description("with or without clearable button").defaultValue(!1),dateTime:V.A.string.description("when using date-time types, this is the value of the controller"),date:V.A.string.description("when using date types, this is the value of the controller"),time:V.A.string.description("when using time types, this is the value of the controller"),onDateChange:V.A.func.description("(newDateString, metaInformations) => void"),onTimeChange:V.A.func.description("(newTimeString, metaInformations) => void"),onDateTimeChange:V.A.func.description("(newDateTimeString, metaInformations) => void"),onMonthChange:V.A.func.description("(newMonthString, event, metaInformations) => void"),onDayChange:V.A.func.description("(newDayString, event, metaInformations) => void"),onYearChange:V.A.func.description("(newYearString, event, metaInformations) => void"),onHourChange:V.A.func.description("(newHourString, event, metaInformations) => void"),onMinuteChange:V.A.func.description("(newMinuteString, event, metaInformations) => void"),onMeridiemChange:V.A.func.description("(newMeridiemString, event, metaInformations) => void"),getIsDisabledDay:V.A.func.description("(dayAsString) => true for marking as disabled, false for marking as valid"),getIsOutOfRangeDay:V.A.func.description("(dayAsString) => true for marking as disabled, false for marking as valid"),getIsDisabledTime:V.A.func.description("(timeAsString) => true for marking as disabled, false for marking as valid"),emptyPickerStartingMonth:V.A.string.description('which month to start the calendar on open, when value is empty, string following the "MM/__/YYYY" pattern'),onCalendarOpenFocusedDay:V.A.string.description('which day to focus on calendar open when value is empty, string following the "MM/DD/YYYY" pattern').defaultValue("if value is empty current month, else current month"),onTimeWheelOpenStartingTime:V.A.string.description('which day to start the timewheel on picker open when value is empty, string following the HH:MM AA" pattern').defaultValue("01:00 AM"),minutesInterval:V.A.number.description("increments/decrements of minutes in time related controllers interactions").defaultValue("1"),"data-testid":V.A.string.description("Unique id for tests.").defaultValue(""),...Tn(K),innerRef:V.A.oneOfType([V.A.func,V.A.object]).description("inner ref for the month input"),fromDate:V.A.string.description(`Strictly formatted string representing user's selected "from" date, this prop comes from the DateRangePicker and it's used internally for the range selection announcement`),toDate:V.A.string.description(`Strictly formatted string representing user's selected "to" date, this prop comes from the DateRangePicker and it's used internally for the range selection announcement`),hasError:V.A.bool.description("whether the input has error or not").defaultValue(!1)},_n=e=>{const t=new Date,n=Me(t),o=nn(t),a=e.emptyPickerStartingMonth,c={...Rn,...a===void 0||o===a?{onCalendarOpenFocusedDay:n,emptyPickerStartingMonth:o}:{}};return(0,Zt.b)(e,c)},wn=({DOMRefs:e,flags:t})=>{const[n,o]=(0,r.useState)(""),[a,s]=(0,r.useState)(""),{firstSegment:i,lastSegment:c}=e,{isDateSelector:d,isTimeSelector:u}=t,h=(0,r.useCallback)(()=>{let E="datetime-picker-icon";d&&(E="date-picker-icon"),u&&(E="time-picker-icon"),n!=="picker-icon"&&o("picker-icon"),E!==a&&s(E)},[a,d,u,n]),g=(0,r.useCallback)(()=>{let E="date-inputs";i==="hour-input"&&(E="time-inputs"),i==="date-picker-icon"&&(E="picker-icon"),i==="time-picker-icon"&&(E="picker-icon"),i==="datetime-picker-icon"&&(E="picker-icon"),E!==n&&o(E),i!==a&&s(i)},[a,i,n]),p=(0,r.useCallback)(()=>{let E="date-inputs";c==="meridiem-input"&&(E="time-inputs"),c==="clear-btn"&&(E="clear-btn"),c==="date-picker-icon"&&(E="picker-icon"),c==="time-picker-icon"&&(E="picker-icon"),c==="datetime-picker-icon"&&(E="picker-icon"),E!==n&&o(E),c!==a&&s(c)},[a,c,n]),m=(0,r.useCallback)(()=>{n!==""&&o(""),a!==""&&s("")},[a,n]),f=(0,r.useCallback)(()=>{let E=!1;n==="calendar-days"&&a==="calendar-metafocused-day"&&(E=!0),n==="calendar-head"&&a==="calendar-prev-month"&&(E=!0),n==="timewheel"&&a==="timewheel-curr-hour"&&(E=!0),!E&&m()},[a,n,m]);return(0,r.useMemo)(()=>({latestInteractionRegion:n,setLatestInteractionRegion:o,currFocusDescriber:a,setCurrFocusDescriber:s,trackFocusResetter:m,trackFocusMonthInput:()=>{n!=="date-inputs"&&o("date-inputs"),a!=="month-input"&&s("month-input")},trackFocusDayInput:()=>{n!=="date-inputs"&&o("date-inputs"),a!=="day-input"&&s("day-input")},trackFocusYearInput:()=>{n!=="date-inputs"&&o("date-inputs"),a!=="year-input"&&s("year-input")},trackFocusHourInput:()=>{n!=="time-inputs"&&o("time-inputs"),a!=="hour-input"&&s("hour-input")},trackFocusMinuteInput:()=>{n!=="time-inputs"&&o("time-inputs"),a!=="minute-input"&&s("minute-input")},trackFocusMeridiemInput:()=>{n!=="time-inputs"&&o("time-inputs"),a!=="meridiem-input"&&s("meridiem-input")},trackFocusClearBtn:()=>{n!=="clear-btn"&&o("clear-btn"),a!=="clear-btn"&&s("clear-btn")},trackFocusDatePickerIcon:()=>{n!=="picker-icon"&&o("picker-icon"),a!=="date-picker-icon"&&s("date-picker-icon")},trackFocusTimePickerIcon:()=>{n!=="picker-icon"&&o("picker-icon"),a!=="time-picker-icon"&&s("time-picker-icon")},trackFocusDatetimePickerIcon:()=>{n!=="picker-icon"&&o("picker-icon"),a!=="datetime-picker-icon"&&s("datetime-picker-icon")},trackFocusCalendarPrevMonth:()=>{n!=="calendar-head"&&o("calendar-head"),a!=="calendar-prev-month"&&s("calendar-prev-month")},trackFocusCalendarNextMonth:()=>{n!=="calendar-head"&&o("calendar-head"),a!=="calendar-next-month"&&s("calendar-next-month")},trackFocusCalendarPrevYear:()=>{n!=="calendar-head"&&o("calendar-head"),a!=="calendar-prev-year"&&s("calendar-prev-year")},trackFocusCalendarNextYear:()=>{n!=="calendar-head"&&o("calendar-head"),a!=="calendar-next-year"&&s("calendar-next-year")},trackFocusCalendarMetafocusedDay:()=>{n!=="calendar-days"&&o("calendar-days"),a!=="calendar-metafocused-day"&&s("calendar-metafocused-day")},trackFocusTimewheelCurrHour:()=>{n!=="timewheel"&&o("timewheel"),a!=="timewheel-curr-hour"&&s("timewheel-curr-hour")},trackFocusTimewheelCurrMinute:()=>{n!=="timewheel"&&o("timewheel"),a!=="timewheel-curr-minute"&&s("timewheel-curr-minute")},trackFocusTimewheelCurrMeridiem:()=>{n!=="timewheel"&&o("timewheel"),a!=="timewheel-curr-meridiem"&&s("timewheel-curr-meridiem")},trackFocusPicker:h,trackFocusFirstSegment:g,trackFocusLastSegment:p,handleComponentBlurs:f}),[n,a,m,h,g,p,f])},de={DATE_TIME:{FULL:"full-date-time",CONTROLLER_ONLY:"date-time-picker-controller-only",PICKER:"date-time-picker",INPUTS:"date-time-inputs"},DATE:{FULL:"full-date",CONTROLLER_ONLY:"date-picker-controller-only",PICKER:"date-picker",INPUTS:"date-inputs"},TIME:{FULL:"full-time",CONTROLLER_ONLY:"time-picker-controller-only",PICKER:"time-picker",INPUTS:"time-inputs"}},Nn=["full-date-time","date-time-inputs","date-time-picker","date-time-picker-controller-only"],xn=["full-date","date-inputs","date-picker","date-picker-controller-only"],kn=["full-time","time-inputs","time-picker","time-picker-controller-only"],He=e=>Nn.includes(e.type),Ye=e=>xn.includes(e.type),ot=e=>kn.includes(e.type),On=e=>{const{type:t,isClearable:n,dateTime:o,autoFocus:a,innerRef:s}=e,i={hideDatePicker:!0,hideTimePicker:!0,isDateSelector:!1,isTimeSelector:!1,isDateTimeSelector:!0,isWithDateInputsOnly:!1,isWithTimeInputsOnly:!1,autoFocusHourInput:!1,autoFocusHourTimeWheel:!1},c=t===de.DATE_TIME.FULL||t===de.DATE_TIME.INPUTS,d=t!==de.DATE_TIME.FULL&&t!==de.DATE_TIME.PICKER&&t!==de.DATE_TIME.CONTROLLER_ONLY,u=t===de.DATE_TIME.CONTROLLER_ONLY,h=!d,g=c&&n&&o!==""&&o!=="__/__/____ __:__ __",p=n&&c;return{hideDate:!c,hideTime:!c,hideDateTimePicker:d,isControllerOnly:u,isWithTimeWheelToo:!d,isWithCalendarToo:!d,withAnyInputs:c,withAnyPicker:h,withClearBtn:g,isWithDateInputs:c,isWithTimeInputs:c,autoFocusMonthInput:c&&a,autoFocusPrevMonthArrow:u&&a,innerRefMonthInput:c?s:void 0,innerRefPrevMonthArrow:u?s:void 0,shouldPreserveClearableSpace:p,withAnyRightController:h||g||p,...i}},Ln=e=>{const{type:t,isClearable:n,date:o,autoFocus:a,innerRef:s}=e,i={isDateSelector:!0,hideTime:!0,hideDateTimePicker:!0,hideTimePicker:!0,isTimeSelector:!1,isDateTimeSelector:!1,isWithCalendarToo:!1,isWithTimeWheelToo:!1,isWithTimeInputs:!1,isWithTimeInputsOnly:!1,autoFocusHourTimeWheel:!1,autoFocusHourInput:!1},c=t===de.DATE.FULL||t===de.DATE.INPUTS,d=t!==de.DATE.FULL&&t!==de.DATE.PICKER&&t!==de.DATE.CONTROLLER_ONLY,u=t===de.DATE.CONTROLLER_ONLY,h=!d,g=c&&n&&o!==""&&o!=="__/__/____",p=n&&c;return{hideDate:!c,hideDatePicker:d,isControllerOnly:u,withAnyInputs:c,withAnyPicker:h,withClearBtn:g,isWithDateInputs:c,isWithDateInputsOnly:c,autoFocusMonthInput:c&&a,autoFocusPrevMonthArrow:u&&a,innerRefMonthInput:c?s:void 0,innerRefPrevMonthArrow:u?s:void 0,shouldPreserveClearableSpace:p,withAnyRightController:h||g||p,...i}},Pn=e=>{const{type:t,isClearable:n,time:o,autoFocus:a,innerRef:s}=e,i={hideDate:!0,hideDateTimePicker:!0,hideDatePicker:!0,isDateSelector:!1,isDateTimeSelector:!1,isWithDateInputs:!1,isWithDateInputsOnly:!1,isTimeSelector:!0,isWithTimeWheelToo:!1,isWithCalendarToo:!1,autoFocusMonthInput:!1,autoFocusPrevMonthArrow:!1,innerRefMonthInput:void 0,innerRefPrevMonthArrow:void 0},c=t===de.TIME.FULL||t===de.TIME.INPUTS,d=t!==de.TIME.FULL&&t!==de.TIME.PICKER&&t!==de.TIME.CONTROLLER_ONLY,u=t===de.TIME.CONTROLLER_ONLY,h=c&&n&&o!==""&&o!=="__:__ __",g=n&&c,p=!d;return{hideTime:!c,hideTimePicker:d,isControllerOnly:u,withAnyInputs:c,withAnyPicker:p,withClearBtn:h,isWithTimeInputs:c,isWithTimeInputsOnly:c,autoFocusHourInput:c&&a,autoFocusHourTimeWheel:u&&a,innerRefHourInput:c?s:void 0,innerRefHourTimeWheel:u?s:void 0,shouldPreserveClearableSpace:g,withAnyRightController:p||h||g,...i}},vn=e=>(0,r.useMemo)(()=>He(e)?On(e):Ye(e)?Ln(e):Pn(e),[e]),Sn=({isWithDateInputs:e,isWithTimeInputs:t,isDateSelector:n,isTimeSelector:o,isDateTimeSelector:a,withAnyPicker:s,withClearBtn:i})=>{const[c,d]=(0,r.useState)(""),[u,h]=(0,r.useState)(""),g=(0,r.useRef)(null),p=(0,r.useRef)(null),m=(0,r.useRef)(null),f=(0,r.useRef)(null),E=(0,r.useRef)(null),y=(0,r.useRef)(null),C=(0,r.useRef)(null),M=(0,r.useRef)(null),R=(0,r.useRef)(null),P=(0,r.useRef)(null),I=(0,r.useRef)(null),b=(0,r.useRef)(null),A=(0,r.useRef)(null),_=(0,r.useRef)(null),L=(0,r.useRef)(null),v=(0,r.useRef)(null),F=(0,r.useRef)(null),Y=(0,r.useRef)(null),x=(0,r.useRef)(null),k=(0,r.useRef)(null),w=(0,r.useRef)(null),B=(0,r.useRef)(null);let Z=(0,r.useRef)(null);e?(Z=g,c!=="month-input"&&d("month-input")):t?(Z=f,c!=="hour-input"&&d("hour-input")):s&&(Z=M,n&&c!=="date-picker-icon"&&d("date-picker-icon"),o&&c!=="time-picker-icon"&&d("time-picker-icon"),a&&c!=="datetime-picker-icon"&&d("datetime-picker-icon"));let $=(0,r.useRef)(null);return s?($=M,n&&u!=="date-picker-icon"&&h("date-picker-icon"),o&&u!=="time-picker-icon"&&h("time-picker-icon"),a&&u!=="datetime-picker-icon"&&h("datetime-picker-icon")):i?($=C,u!=="clear-btn"&&h("clear-btn")):t?($=y,u!=="meridiem-input"&&h("meridiem-input")):e&&($=m,u!=="year-input"&&h("year-input")),(0,r.useMemo)(()=>({monthInputRef:g,dayInputRef:p,yearInputRef:m,hourInputRef:f,minutesInputRef:E,meridiemInputRef:y,clearButtonRef:C,pickerButtonRef:M,prevYearBtnRef:R,prevMonthBtnRef:P,nextMonthBtnRef:I,nextYearBtnRef:b,calendarDaysWrapperRef:A,prevHourBtnRef:_,currHourBtnRef:L,nextHourBtnRef:v,prevMinutesBtnRef:F,currMinutesBtnRef:Y,nextMinutesBtnRef:x,prevMeridiemBtnRef:k,currMeridiemBtnRef:w,nextMeridiemBtnRef:B,firstSegmentRef:Z,lastSegmentRef:$,firstSegment:c,lastSegment:u}),[c,u])},Hn=e=>{const t=(0,r.useMemo)(()=>He(e)?e.dateTime!==""?qe(e.dateTime):"__/__/____":Ye(e)&&e.date!==""?e.date:"__/__/____",[e]),n=(0,r.useMemo)(()=>He(e)?e.dateTime!==""?Ke(e.dateTime):"__:__ __":ot(e)&&e.time!==""?e.time:"__:__ __",[e]),[o,a]=(0,r.useState)(t),[s,i]=(0,r.useState)(n);return(0,r.useMemo)(()=>({dateStringFromProps:t,timeStringFromProps:n,tempDateString:o,setTempDateString:a,tempTimeString:s,setTimeString:i}),[t,o,s,n])},ge=()=>{},at=()=>!1,Fn=e=>{const t=He(e),n=Ye(e),o=ot(e),a=(t||n)&&e.getIsDisabledDay?e.getIsDisabledDay:at,s=(t||n)&&e.getIsOutOfRangeDay?e.getIsOutOfRangeDay:at,i=(t||n)&&e.onMonthChange?e.onMonthChange:ge,c=(t||n)&&e.onDayChange?e.onDayChange:ge,d=(t||n)&&e.onYearChange?e.onYearChange:ge,u=`${new Date().getMonth()+1}/__/${new Date().getFullYear()}`,h=(t||n)&&e.emptyPickerStartingMonth?e.emptyPickerStartingMonth:u,g=(t||n)&&e.onCalendarOpenFocusedDay?e.onCalendarOpenFocusedDay:void 0,p=(t||o)&&e.getIsDisabledTime?e.getIsDisabledTime:at,m=(t||o)&&e.onHourChange?e.onHourChange:ge,f=(t||o)&&e.onMinuteChange?e.onMinuteChange:ge,E=(t||o)&&e.onMeridiemChange?e.onMeridiemChange:ge,y=(t||o)&&e.minutesInterval?e.minutesInterval:1,C=(t||o)&&e.onTimeWheelOpenStartingTime?e.onTimeWheelOpenStartingTime:"01:00 AM",M=(t||n)&&e.onDateChange?e.onDateChange:ge,R=(t||o)&&e.onTimeChange?e.onTimeChange:ge,P=(t||n)&&e.getIsStartRangeDay?e.getIsStartRangeDay:ge,I=(t||n)&&e.getIsDayInRange?e.getIsDayInRange:ge,b=(t||n)&&e.getIsEndRangeDay?e.getIsEndRangeDay:ge,A=(t||n)&&e.fromDate,_=(t||n)&&e.toDate,L=n?e.date:"",v=o?e.time:"",F=t?e.dateTime:"",Y=t?e.onDateTimeChange:ge;return(0,r.useMemo)(()=>({getIsDisabledDay:a,getIsOutOfRangeDay:s,getIsStartRangeDay:P,getIsDayInRange:I,getIsEndRangeDay:b,appOnDateChange:M,appOnMonthChange:i,appOnDayChange:c,appOnYearChange:d,appDate:L,getIsDisabledTime:p,appOnTimeChange:R,appOnHourChange:m,appOnMinuteChange:f,appOnMeridiemChange:E,appTime:v,appDateTime:F,appOnDateTimeChange:Y,emptyPickerStartingMonth:h,onCalendarOpenFocusedDay:g,minutesInterval:y,onTimeWheelOpenStartingTime:C,isDate:n,isTime:o,isDateTime:t,fromDate:A,toDate:_}),[a,s,P,I,b,M,i,c,d,L,p,R,m,f,E,v,F,Y,h,g,y,C,n,o,t,A,_])},$n=({appDate:e,appDateTime:t,isDateTimeSelector:n})=>{const o=n?qe(t):e,a=Ee(o),{month:s,day:i,year:c}=a,d=Q(s),u=Q(i),h=Q(c),g=d!==-1?Qe[d-1]:"empty month",p=u!==-1?Rt[u]:"empty day",m=h!==-1?be(`${h}`,4,"0"):"empty year",f=`${g}, ${p}, ${m}`;return(0,r.useMemo)(()=>({month:s,day:i,year:c,monthNum:d,dayNum:u,yearNum:h,announcedMonth:g,announcedDay:p,announcedYear:m,announcedDateValues:f}),[p,g,m,f,i,u,s,d,c,h])},Wn=({appTime:e,appDateTime:t,isDateTimeSelector:n})=>{const o=n?Ke(t):e,a=wt(o),{hours:s,minutes:i,meridiem:c}=a,d=Q(s),u=Q(i),h=d!==-1?`${d}`:"empty hours",g=u!==-1?`${u}`:"empty minutes",p=c==="PM"?"post meridiem":c==="AM"?"ante meridiem":"empty meriediem",m=`${h}, ${g}, ${p}`;return(0,r.useMemo)(()=>({hours:s,minutes:i,meridiem:c,hoursNum:d,minutesNum:u,announcedHours:h,announcedMinutes:g,announcedMeridiem:p,announcedTimeValues:m}),[s,i,c,d,u,h,g,p,m])},Un=e=>{const t=$n(e),n=Wn(e);return(0,r.useMemo)(()=>({...t,...n}),[t,n])},Be=(e,t=n=>!1)=>{const n={};return tt(e)||(n.isDisabledTime=t(e),n.isDisabledTime&&(n.suggestedErrorMsg="The selected time is not allowed")),n},jn=({relevantValues:e,destructuredValues:t,propsBasedOnType:n,focusTrackers:o})=>{const{tempDateString:a,setTempDateString:s,tempTimeString:i,setTimeString:c}=e,{getIsDisabledDay:d,getIsOutOfRangeDay:u,appOnDateChange:h,appOnMonthChange:g,appOnDayChange:p,appOnYearChange:m,getIsDisabledTime:f,appOnTimeChange:E,appOnHourChange:y,appOnMinuteChange:C,appOnMeridiemChange:M,appOnDateTimeChange:R,isDateTime:P,isDate:I,isTime:b}=n,{month:A,day:_,year:L,hours:v,minutes:F,meridiem:Y}=t,{trackFocusFirstSegment:x}=o,k=(0,r.useCallback)((S=null,H={})=>({...H,..._e(S||a,u,d)}),[a,d,u]),w=(0,r.useCallback)((S=null,H={})=>({...H,...Be(S||i,f)}),[i,f]),B=(0,r.useCallback)((S,H,X)=>{const T=xt(S)?"":S,D=kt(H)?"":H;h(T,X),s(S),E(D,X),c(H);const le=`${S} ${H}`,oe={...X,...w(H,X),...k(S,X),newDateString:S,newTimeString:H,newDateTimeString:le},J=nt(le)?"":le;R(J,oe)},[h,s,E,c,w,k,R]),Z=(0,r.useCallback)((S,H)=>{const X=xt(S)?"":S;h(X,H),s(S);const T=`${S} ${i}`,D={...H,...w(i,H),...k(S,H),newDateString:S,newTimeString:i,newDateTimeString:T},le=nt(T)?"":T;R(le,D)},[h,s,i,w,k,R]),$=(0,r.useCallback)((S,H)=>{const X=kt(S)?"":S;E(X,H),c(S);const T=`${a} ${S}`,D={...H,...w(S,H),...k(a,H),newDateTimeString:T,newDateString:a,newTimeString:S},le=nt(T)?"":T;R(le,D)},[E,c,a,w,k,R]),W=(0,r.useCallback)((S,H,X=Te)=>{const T=Pe({month:S,day:_,year:L}),D={...X,..._e(T,u,d),newDateString:T};g(S,H,D),Z(T,D)},[_,L,u,d,g,Z]),z=(0,r.useCallback)((S,H,X=Te)=>{const T=Pe({month:A,day:S,year:L}),D={...X,..._e(T,u,d),newDateString:T};p(S,H,D),Z(T,D)},[A,L,u,d,p,Z]),se=(0,r.useCallback)((S,H,X=Te)=>{const T=Pe({month:A,day:_,year:S}),D={...X,..._e(T,u,d),newDateString:T};m(S,H,D),Z(T,D)},[A,_,u,d,m,Z]),O=(0,r.useCallback)((S,H,X=Te)=>{const T=et({hours:S,minutes:F,meridiem:Y}),D={...X,...Be(T,f),newTimeString:T};y(S,H,D),$(T,D)},[F,Y,f,y,$]),N=(0,r.useCallback)((S,H,X=Te)=>{const T=et({hours:v,minutes:S,meridiem:Y}),D={...X,...Be(T,f),newTimeString:T};C(S,H,D),$(T,D)},[v,Y,f,C,$]),ie=(0,r.useCallback)((S,H,X=Te)=>{const T=et({hours:v,minutes:F,meridiem:S}),D={...X,...Be(T,f),newTimeString:T};M(S,H,D),$(T,D)},[v,F,f,M,$]),pe=(0,r.useCallback)(S=>{const H={isAutomaticFillTrigger:!1,isClearButtonAction:!0,newDateString:"",newTimeString:"",newDateTimeString:""};g("",S,H),p("",S,H),m("",S,H),y("",S,H),C("",S,H),M("",S,H),P&&B("__/__/____","__:__ __",H),I&&Z("__/__/____",H),b&&$("__:__ __",H),x()},[p,y,M,C,g,m,Z,B,$,I,P,b,x]);return(0,r.useMemo)(()=>({handleChangeComposedDateTimeString:B,handleChangeComposedDateString:Z,handleChangeComposedTimeString:$,handleChangeMonth:W,handleChangeDay:z,handleChangeYear:se,handleChangeHours:O,handleChangeMinutes:N,handleChangeMeridiem:ie,handleClearAll:pe}),[Z,B,$,z,O,ie,N,W,se,pe])},Yn=({propsBasedOnType:e,changeHandlers:t,focusTrackers:n,flags:o})=>{const{getIsOutOfRangeDay:a,getIsDisabledDay:s,getIsDisabledTime:i,appOnMonthChange:c,appOnDayChange:d,appOnYearChange:u,appOnHourChange:h,appOnMinuteChange:g,appOnMeridiemChange:p}=e,{handleChangeComposedDateTimeString:m,handleClearAll:f}=t,{trackFocusLastSegment:E,trackFocusClearBtn:y}=n,{withAnyPicker:C,shouldPreserveClearableSpace:M}=o,R=(0,r.useCallback)((I,b={isAutomaticFillTrigger:!0})=>{const A=new Date,_=Me(A),L=rn(A),v={...b,..._e(_,a,s),...Be(L,i),newDateString:_},{month:F,day:Y,year:x}=Ee(_);c(F,I,b),d(Y,I,b),u(x,I,b);const{hours:k,minutes:w,meridiem:B}=bt(L);h(k,I,b),g(w,I,b),p(B,I,b),m(_,L,v),M&&!C?y():E()},[d,h,p,g,c,u,s,i,a,m,M,y,E,C]),P=(0,r.useCallback)(I=>{const{key:b,ctrlKey:A,metaKey:_}=I;(A||_)&&b===";"&&R(I),(A||_)&&(b==="Delete"||b==="Backspace")&&f(I)},[f,R]);return(0,r.useMemo)(()=>({onFillWithCurrentDateKeys:R,onGlobalKeyDown:P}),[R,P])},we=`ControlledDateTimePicker:
2
+ Invalid configuration detected::
3
+
4
+ `,Ne="",st=`
5
+
6
+ Received:`,Bn=e=>{throw new Error(`${we}the "dateTime" you are providing is not respecting the format it must respect.${st}${e}(${typeof e})${Ne}`)},Kn=e=>{throw new Error(`${we}the "date" you are providing is not respecting the format it must respect.${st}${e}(${typeof e})${Ne}`)},Vn=e=>{throw new Error(`${we}the "time" you are providing is not respecting the format it must respect.${st}${e}(${typeof e})${Ne}`)},Gn=(e,t)=>{throw new Error(`${we}you are trying to use a date selector while providing a non-string "date" or providing a non-function to "onDateChange"
7
+ the full-controlled pattern must be used
8
+ check https://reactjs.org/docs/forms.html#controlled-components for more informations
9
+
10
+ Received:
11
+ date: ${e}(${typeof e})
12
+ onDateChange: (${typeof t})
13
+ ${Ne}`)},Xn=(e,t)=>{throw new Error(`${we}you are trying to use a time selector while providing a non-string "time" or providing a non-function to "onTimeChange"
14
+ the full-controlled pattern must be used
15
+ check https://reactjs.org/docs/forms.html#controlled-components for more informations
16
+
17
+ Received:
18
+ time: ${e}(${typeof e})
19
+ onTimeChange: (${typeof t})
20
+ ${Ne}`)},zn=(e,t)=>{throw new Error(`${we}you are trying to use a date-time selector while providing a non-string "dateTime" or providing a non-function to "onDateTimeChange"
21
+ the full-controlled pattern must be used
22
+ check https://reactjs.org/docs/forms.html#controlled-components for more informations
23
+
24
+ Received:
25
+ dateTime: ${e}(${typeof e})
26
+ onDateTimeChange: (${typeof t})
27
+ ${Ne}`)},Jn=e=>{throw new Error(`${we}the provided emptyPickerStartingMonth props is invalid. please provide a string with the format mm/__/yyyy, (mm 01~12, yyyy 0001~9999)
28
+
29
+ Received:
30
+ ${e}(${typeof e})
31
+ ${Ne}`)},Zn=e=>{throw new Error(`${we}the provided onCalendarOpenFocusedDay props is invalid. please provide a string with the format mm/dd/yyyy, (mm 01~12, dd 01~31, yyyy 0001~9999)
32
+
33
+ Received:
34
+ ${e}(${typeof e})
35
+ ${Ne}`)},Qn=e=>{if(He(e)||Ye(e)){const{emptyPickerStartingMonth:t,onCalendarOpenFocusedDay:n}=e;if(t){const{month:o,year:a}=Ee(t),s=Q(o),i=Q(a);(s<=0||s>=13||i<=0||i>9999)&&Jn(t)}if(n){const{month:o,day:a,year:s}=Ee(n),i=Q(o),c=Q(a),d=Q(s);(i<=0||i>=13||c<=0||c>31||d<=0||d>9999)&&Zn(n)}}if(He(e)){const{dateTime:t,onDateTimeChange:n}=e;typeof t!="string"||typeof n!="function"?zn(t,n):(!_t(qe(t))||!Nt(Ke(t)))&&Bn(Ke(t))}if(Ye(e)){const{date:t,onDateChange:n}=e;typeof t!="string"||typeof n!="function"?Gn(t,n):_t(t)||Kn(t)}if(ot(e)){const{time:t,onTimeChange:n}=e;typeof t!="string"||typeof n!="function"?Xn(t,n):Nt(t)||Vn(t)}},qn=e=>{Qn(e);const t=_n(e),n=vn(t),o=Sn(n),a=wn({DOMRefs:o,flags:n}),s=Hn(t),i=Fn(t),c=Un({...i,...n}),d=jn({relevantValues:s,destructuredValues:c,propsBasedOnType:i,DOMRefs:o,focusTrackers:a}),u=Yn({changeHandlers:d,propsBasedOnType:i,DOMRefs:o,flags:n,focusTrackers:a}),h=(0,zt.d)(t),g=(0,Jt.u)(t),{announcedDateValues:p,announcedTimeValues:m}=c,{isWithDateInputs:f,isDateTimeSelector:E,isWithTimeInputs:y}=n,C=`current values: ${f?`${p}`:""}${E?", ":""}${y?`${m}`:""}`,M=(0,r.useCallback)(()=>t,[t]);return r.useMemo(()=>({props:t,getProps:M,ariaCurrentValueForInputs:C,xstyledAttrs:h,globalAttrs:g,...a,...n,...o,...s,...i,...c,...d,...u}),[t,M,C,h,g,a,n,o,s,i,c,d,u])},er={},G=(0,r.createContext)(er);var Aa=null,Ce=ee("./node_modules/.pnpm/@elliemae+ds-grid@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-grid/dist/esm/Grid.js"),tr=ee("./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/omit.js"),xe=ee("./node_modules/.pnpm/@elliemae+ds-button-v2@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/constants.js"),nr=ee("./node_modules/.pnpm/@elliemae+ds-icons@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/CloseMedium.js"),Oe=ee("./node_modules/.pnpm/@elliemae+ds-button-v2@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV2/DSButtonV2.js"),j=ee("./node_modules/.pnpm/@elliemae+ds-system@3.56.4_@elliemae+pui-theme@2.13.0_lodash-es@4.17.21/node_modules/@elliemae/ds-system/dist/esm/styled/styled.js"),it=ee("./node_modules/.pnpm/@elliemae+ds-system@3.56.4_@elliemae+pui-theme@2.13.0_lodash-es@4.17.21/node_modules/@elliemae/ds-system/dist/esm/th.js");const Ft=(0,j.I)("input")`
36
+ border: none;
37
+ box-shadow: none;
38
+ background: none;
39
+ text-align: center;
40
+ height: 100%;
41
+ display: flex;
42
+ align-items: center;
43
+ :focus {
44
+ outline: none;
45
+ }
46
+ padding-top: 2px;
47
+
48
+ color: ${it.th.color("neutral-700")};
49
+
50
+ ::placeholder {
51
+ font-weight: ${it.th.fontWeight("regular")};
52
+ color: ${it.th.color("neutral-500")};
53
+ }
54
+ `,lt=(0,j.I)(Ce.Ay)`
55
+ padding-top: 2px;
56
+ margin: auto;
57
+ color: neutral-500;
58
+ `,rr=(0,j.I)(Ce.Ay)`
59
+ padding-bottom: 1px;
60
+ margin: auto;
61
+ `,Fe=(0,j.I)(Ft)`
62
+ width: 100%;
63
+ height: 100%;
64
+ ${({disabled:e})=>e?"color: #616b7f;":""}
65
+ `,or=(0,j.I)(Fe,{name:q,slot:re.DATE_INPUTS.DAY})``,ar=(0,j.I)(Fe,{name:q,slot:re.DATE_INPUTS.MONTH})``,sr=(0,j.I)(Fe,{name:q,slot:re.DATE_INPUTS.YEAR})``,ir=(0,j.I)(Fe,{name:q,slot:re.TIME_INPUTS.HOUR})``,lr=(0,j.I)(Fe,{name:q,slot:re.TIME_INPUTS.MINUTE})``,cr=(0,j.I)(Fe,{name:q,slot:re.TIME_INPUTS.MERIDIEM})``,Ia=(0,j.I)(Ft)`
66
+ width: 100%;
67
+ height: 100%;
68
+ ${({disabled:e})=>e?"color: #616b7f;":""}
69
+ `,dr=(0,j.I)(Ce.Ay,{name:q,slot:re.CONTAINER})`
70
+ width: max-content;
71
+ align-items: center;
72
+ background-color: white;
73
+ ${({isControllerOnly:e})=>e?"":`
74
+ height: 2.153rem;
75
+ border-width: 1px;
76
+ border-style: solid;
77
+ `}
78
+
79
+ border-color: ${({theme:e,hasError:t})=>t?e.colors.danger[900]:e.colors.neutral[400]};
80
+
81
+ border-radius: 2px;
82
+ padding-left: ${({justPicker:e})=>e?"0":"2px"};
83
+
84
+ position: relative;
85
+ ${({theme:e,disabled:t})=>t?`background-color: ${e.colors.neutral[100]};`:""}
86
+ ${({readOnlyStyles:e,hasError:t,onlyPicker:n,theme:o})=>e&&!t&&!n&&`
87
+ border-left: 1px solid ${o.colors.neutral["080"]};
88
+ border-top: 1px solid ${o.colors.neutral["080"]};
89
+ border-right: 1px solid ${o.colors.neutral["080"]};
90
+
91
+ `}
92
+ ${({readOnlyStyles:e,hasError:t,theme:n})=>e&&!t&&`
93
+ background-color: ${n.colors.neutral["050"]};
94
+ `}
95
+ `,Ra=j.I.div`
96
+ display: grid;
97
+ grid-template-columns: 24px min-content 24px min-content 48px;
98
+ grid-template-rows: min-content;
99
+ padding: 6px 0;
100
+ gap: 0px 0px;
101
+ align-items: center;
102
+ input,
103
+ p {
104
+ margin: 0;
105
+ }
106
+ `,ba=j.I.div`
107
+ display: grid;
108
+ grid-template-columns: 24px min-content 24px min-content 24px min-content 24px;
109
+ grid-template-rows: min-content;
110
+ padding: 6px 0;
111
+ gap: 0px 0px;
112
+ align-items: center;
113
+ input,
114
+ p {
115
+ margin: 0;
116
+ }
117
+ `,ur=(0,j.I)(Ce.Ay)`
118
+ position: relative;
119
+ ${({isControllerOnly:e})=>e?"":"height: 2rem;"}
120
+ :before {
121
+ content: '';
122
+ position: absolute;
123
+ top: 0px;
124
+ left: -1px;
125
+ width: 100%;
126
+ height: 100%;
127
+ // this shoudnt be rounded as specified in the design
128
+ /* border-radius: 2px; */
129
+ ${({theme:e,isControllerOnly:t,hasError:n})=>t?"":`
130
+ border-left: 1px solid ${n?e.colors.danger[900]:e.colors.neutral[400]}
131
+ `}
132
+ }
133
+ `,$e=(0,j.I)(Ce.Ay)`
134
+ position: relative;
135
+ &:focus-within {
136
+ &:after {
137
+ display: block;
138
+ content: ' ';
139
+ position: absolute;
140
+ top: -5px;
141
+ left: -2px;
142
+ width: calc(100% + 4px);
143
+ height: calc(100% + 10px);
144
+ border: 2px solid ${({theme:e})=>e.colors.brand[700]};
145
+ border-radius: 2px;
146
+ pointer-events: none;
147
+ }
148
+ }
149
+ `,mr=(0,j.I)(Oe.e,{name:q,slot:re.CLEAR_BUTTON})`
150
+ height: 26px;
151
+ position: relative;
152
+ visibility: ${({shouldDisplay:e})=>e?"visible":"hidden"};
153
+ &:focus {
154
+ &:after {
155
+ z-index: 1;
156
+ }
157
+ }
158
+ `,pr=()=>{const{handleClearAll:e,clearButtonRef:t,withAnyPicker:n,withClearBtn:o,withAnyInputs:a,isWithTimeInputs:s,isWithDateInputs:i,trackFocusFirstSegment:c,trackFocusMeridiemInput:d,trackFocusYearInput:u,trackFocusPicker:h}=(0,r.useContext)(G),g=(0,r.useCallback)(E=>{e(E),c()},[e,c]),p=(0,r.useCallback)(()=>{c()},[c]),m=(0,r.useCallback)(()=>{n&&h()},[n,h]),f=(0,r.useCallback)(E=>{const{key:y}=E,C=["Home","End"],M=["Home","End"];C.includes(y)&&E.preventDefault(),M.includes(y)&&E.stopPropagation(),y==="Home"&&p(),y==="End"&&m(),y==="Backspace"&&a&&(s?d():i&&u())},[i,s,m,p,d,u,a]);return(0,r.useMemo)(()=>({onClearClick:g,onClearButtonKeyDown:f,clearButtonRef:t,withAnyPicker:n,withClearBtn:o}),[g,f,t,n,o])},hr=()=>{const{onClearClick:e,onClearButtonKeyDown:t,clearButtonRef:n,withClearBtn:o}=pr(),a={shouldDisplay:o},{latestInteractionRegion:s,currFocusDescriber:i,getProps:c,props:{tabIndex:d}}=(0,r.useContext)(G);return(0,l.jsx)(mr,{"aria-label":"clear selected date",buttonType:"icon",size:xe.GO.M,"data-testid":K.CLEAR_BUTTON,innerRef:u=>{n.current=u,s==="clear-btn"&&i==="clear-btn"&&u?.focus?.()},tabIndex:d,onClick:e,onKeyDown:t,type:"button",getOwnerProps:c,...a,children:(0,l.jsx)(nr.A,{color:["brand-primary","600"]})})};var gr=ee("./node_modules/.pnpm/@elliemae+ds-system@3.56.4_@elliemae+pui-theme@2.13.0_lodash-es@4.17.21/node_modules/@elliemae/ds-system/dist/esm/mergeRefs.js");const fr=/^[0-9]+$/,Er=e=>{if(e==="")return!1;const t=fr.test(e);return e.length>2||e==="00"||!t||Number.parseInt(e,10)>12},yr=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:a,disabled:s,applyAriaDisabled:i,hasError:c,placeholder:d,contextRef:u,innerRef:h,tabIndex:g,autoFocusMonthInput:p,ariaCurrentValueForInputs:m,isFocused:f,getProps:E,readOnly:y})=>{const C=(0,r.useCallback)(P=>{if(Er(P?.target?.value)){P.preventDefault();return}e(P)},[e]),M=(0,r.useCallback)(P=>{u.current=P,f&&P?.focus?.()},[u,f]),R=(0,r.useMemo)(()=>h?(0,gr.hU)([M,h]):M,[M,h]);return(0,l.jsx)(ar,{autoFocus:p,onChange:C,onBlur:t,onFocus:n,onKeyDown:o,value:a,innerRef:R,tabIndex:g,placeholder:d,"aria-label":`month input field, ${m}`,"data-testid":K.DATE_INPUTS.MONTH,disabled:s,"aria-disabled":i,"aria-invalid":c,getOwnerProps:E,readOnly:y})}),Cr=/^[0-9]+$/,Dr=e=>{if(e==="")return!1;const t=Cr.test(e);return e.length>2||e==="00"||!t||Number.parseInt(e,10)>31},Tr=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:a,disabled:s,applyAriaDisabled:i,hasError:c,contextRef:d,tabIndex:u,placeholder:h,ariaCurrentValueForInputs:g,isFocused:p,getProps:m,readOnly:f})=>{const E=(0,r.useCallback)(y=>{if(Dr(y?.currentTarget?.value)){y.preventDefault();return}e(y)},[e]);return(0,l.jsx)(or,{onChange:E,onBlur:t,onFocus:n,onKeyDown:o,value:a,innerRef:y=>{d.current=y,p&&y?.focus?.()},tabIndex:u,placeholder:h,"aria-label":`day input field, ${g}`,"data-testid":K.DATE_INPUTS.DAY,disabled:s,"aria-disabled":i,"aria-invalid":c,getOwnerProps:m,readOnly:f})}),Mr=/^[0-9]+$/,Ar=e=>{if(e==="")return!1;const t=Mr.test(e);return e.length>4||!t||Number.parseInt(e,10)>9999},Ir=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:a,disabled:s,applyAriaDisabled:i,hasError:c,placeholder:d,contextRef:u,tabIndex:h,ariaCurrentValueForInputs:g,isFocused:p,getProps:m,readOnly:f})=>{const E=(0,r.useCallback)(y=>{if(Ar(y?.currentTarget?.value)){y.preventDefault();return}e(y)},[e]);return(0,l.jsx)(sr,{onChange:E,onBlur:t,onFocus:n,onKeyDown:o,value:a,innerRef:y=>{u.current=y,p&&y?.focus?.()},tabIndex:h,"data-testid":K.DATE_INPUTS.YEAR,placeholder:d,"aria-label":`year input field, ${g}`,disabled:s,"aria-disabled":i,"aria-invalid":c,getOwnerProps:m,readOnly:f})}),Rr=()=>{const{props:{disabled:e,applyAriaDisabled:t,readOnly:n},appOnMonthChange:o,appOnDayChange:a,appOnYearChange:s,getIsDisabledDay:i,getIsOutOfRangeDay:c,month:d,day:u,year:h,hideTime:g,handleChangeComposedDateString:p,withClearBtn:m,withAnyPicker:f,withAnyRightController:E,autoFocusMonthInput:y,innerRefMonthInput:C,trackFocusResetter:M,trackFocusFirstSegment:R,trackFocusLastSegment:P,trackFocusDayInput:I,trackFocusMonthInput:b,trackFocusYearInput:A,trackFocusHourInput:_,trackFocusClearBtn:L,trackFocusPicker:v}=(0,r.useContext)(G),F=e||t||n,Y=(0,r.useCallback)(()=>{R()},[R]),x=(0,r.useCallback)(()=>{P()},[P]),k=(0,r.useCallback)((T,D,le=Te)=>{if(F)return;const oe=Pe({month:T,day:u,year:h}),J={...le,..._e(oe,c,i),newDateString:oe};o(T,D,J),p(oe,J)},[F,u,h,c,i,o,p]),w=(0,r.useCallback)(()=>{b()},[b]),B=(0,r.useCallback)(T=>{if(F)return;let D=T?.target?.value;Number.parseInt(D,10)>1&&(D=ne(D,2)),k(D,T),D.length===2&&I()},[k,F,I]),Z=(0,r.useCallback)(T=>{const{key:D,ctrlKey:le,metaKey:oe}=T,J=Number.parseInt(d,10);if(["Home","End","ArrowUp","ArrowDown","-","/","\\"].includes(D)&&T.preventDefault(),["Home","End","ArrowUp","ArrowDown","-","/","\\"].includes(D)&&T.stopPropagation(),D==="Home"&&Y(),D==="End"&&x(),(le||oe)&&D===";"&&P(),!F){if(D==="ArrowUp"||D==="ArrowDown"){const me=Number.isNaN(J)?0:J;let ue;D==="ArrowUp"?ue=me+1<=12?me+1:me:ue=me-1>0?me-1:1,ue=ne(`${ue}`,2),k(ue,T)}if(!Number.isNaN(J)&&(D==="-"||D==="/"||D==="\\")){let me=ne(`${J}`,2);me==="00"&&(me="01"),k(me,T),I()}}},[d,Y,x,P,F,k,I]),$=(0,r.useCallback)(T=>{const D=T?.target?.value;D==="0"?k("01",T,{isAutomaticFillTrigger:!0}):D.length>0&&D.length<2&&k(ne(D,2),T,{isAutomaticFillTrigger:!0})},[k]),W=(0,r.useCallback)((T,D,le=Te)=>{if(F)return;const oe=Pe({month:d,day:T,year:h}),J={...le,..._e(oe,c,i),newDateString:oe};a(T,D,J),p(oe,J)},[F,d,h,c,i,a,p]),z=(0,r.useCallback)(()=>{I()},[I]),se=(0,r.useCallback)(T=>{if(F)return;let D=T?.target?.value;Number.parseInt(D,10)>3&&(D=ne(D,2)),W(D,T),D.length===2&&A()},[W,F,A]),O=(0,r.useCallback)(T=>{const{key:D,ctrlKey:le,metaKey:oe,target:J,currentTarget:me}=T,ue=Number.parseInt(u,10);if(["Home","End","ArrowUp","ArrowDown","-","/","\\"].includes(D)&&T.preventDefault(),["Home","End","ArrowUp","ArrowDown","-","/","\\"].includes(D)&&T.stopPropagation(),D==="Home"&&Y(),D==="End"&&x(),(le||oe)&&D===";"&&P(),!F){if(D==="ArrowUp"||D==="ArrowDown"){const ce=Number.isNaN(ue)?0:ue;let fe;D==="ArrowUp"?fe=ce+1<=31?ce+1:ce:fe=ce-1>0?ce-1:1,fe=ne(`${fe}`,2),W(fe,T)}if(!Number.isNaN(ue)&&(D==="-"||D==="/"||D==="\\")){let ce=ne(`${ue}`,2);ce==="00"&&(ce="01"),W(ce,T),A()}D==="Backspace"&&J===me&&J.selectionStart===0&&J.selectionEnd===0&&(T.preventDefault(),b())}},[u,Y,x,P,F,W,A,b]),N=(0,r.useCallback)(T=>{const D=T?.target?.value;D==="0"?W("01",T,{isAutomaticFillTrigger:!0}):D.length>0&&D.length<2&&W(ne(D,2),T,{isAutomaticFillTrigger:!0})},[W]),ie=(0,r.useCallback)((T,D,le=Te)=>{if(F)return;const oe=Pe({month:d,day:u,year:T}),J={...le,..._e(oe,c,i),newDateString:oe};s(T,D,J),p(oe,J)},[F,d,u,c,i,s,p]),pe=(0,r.useCallback)(()=>{A()},[A]),S=(0,r.useCallback)(T=>{if(F)return;const D=T?.target?.value;ie(D,T),D.length===4&&(g?E&&(m?L():f&&v()):_())},[F,ie,g,_,E,m,L,f,v]),H=(0,r.useCallback)(T=>{const{key:D,ctrlKey:le,metaKey:oe,target:J,currentTarget:me}=T,ue=Number.parseInt(h,10),ce=Number.isNaN(ue)?0:ue;let fe=ce!==0?be(`${ce}`,4,"0"):"";if(D==="ArrowUp"||D==="ArrowDown"){let At;D==="ArrowUp"?At=ce+1<=9999?ce+1:ce:At=ce-1>0?ce-1:1,fe=ne(`${At}`,4)}const Je=fe!==h&&["Tab"," "].includes(D),ga={isAutomaticFillTrigger:Je};let Ze=M;g?m?Ze=L:f&&(Ze=v):Ze=_,["Home","End","ArrowUp","ArrowDown"," "].includes(D)&&T.preventDefault(),["Home","End","ArrowUp","ArrowDown"," "].includes(D)&&T.stopPropagation(),D==="Home"&&Y(),D==="End"&&x(),(le||oe)&&D===";"&&P(),!F&&((D==="ArrowUp"||D==="ArrowDown"||Je)&&ie(fe,T,ga),["Tab"," "].includes(D)&&(h!==""&&ce===0&&ie("0000",T),D===" "&&Ze()),D==="Backspace"&&J===me&&J.selectionStart===0&&J.selectionEnd===0&&(T.preventDefault(),I()))},[h,M,g,_,m,L,f,v,Y,x,P,F,ie,I]),X=(0,r.useCallback)(T=>{const D=T?.target?.value;D==="0"?ie("0000",T,{isAutomaticFillTrigger:!0}):D.length>0&&D.length<4&&ie(be(D,4,"0"),T,{isAutomaticFillTrigger:!0})},[ie]);return(0,r.useMemo)(()=>({month:d,day:u,year:h,autoFocusMonthInput:y,innerRefMonthInput:C,disabled:e,applyAriaDisabled:t,onMonthFocus:w,onMonthChange:B,onDayFocus:z,onDayChange:se,onYearFocus:pe,onYearChange:S,onMonthBlur:$,onDayBlur:N,onYearBlur:X,onMonthKeyDown:Z,onDayKeyDown:O,onYearKeyDown:H}),[d,u,h,y,C,e,t,w,B,z,se,pe,S,$,N,X,Z,O,H])},Ie={smallInputWidth:"2.153rem",largeInputWidth:"3.153rem",separatorWidth:"0.538rem"},br=()=>{const{month:e,day:t,year:n,autoFocusMonthInput:o,innerRefMonthInput:a,onMonthChange:s,onDayChange:i,onYearChange:c,onMonthBlur:d,onDayBlur:u,onYearBlur:h,onMonthFocus:g,onDayFocus:p,onYearFocus:m,onMonthKeyDown:f,onDayKeyDown:E,onYearKeyDown:y,disabled:C,applyAriaDisabled:M}=Rr(),{monthInputRef:R,dayInputRef:P,yearInputRef:I,ariaCurrentValueForInputs:b,latestInteractionRegion:A,currFocusDescriber:_,getProps:L,props:{tabIndex:v,hasError:F,readOnly:Y}}=(0,r.useContext)(G);return(0,l.jsxs)(Ce.Ay,{cols:[Ie.smallInputWidth,Ie.separatorWidth,Ie.smallInputWidth,Ie.separatorWidth,Ie.largeInputWidth],children:[(0,l.jsx)($e,{children:(0,l.jsx)(yr,{onChange:s,onBlur:d,onFocus:g,onKeyDown:f,value:e,contextRef:R,innerRef:a,tabIndex:v,autoFocusMonthInput:o,placeholder:"MM",ariaCurrentValueForInputs:b,disabled:C,applyAriaDisabled:M,hasError:F,isFocused:A==="date-inputs"&&_==="month-input",getProps:L,readOnly:Y})}),(0,l.jsx)(lt,{alignItems:"center",children:"/"}),(0,l.jsx)($e,{children:(0,l.jsx)(Tr,{onChange:i,onBlur:u,onFocus:p,onKeyDown:E,value:t,contextRef:P,tabIndex:v,placeholder:"DD",ariaCurrentValueForInputs:b,disabled:C,applyAriaDisabled:M,hasError:F,isFocused:A==="date-inputs"&&_==="day-input",getProps:L,readOnly:Y})}),(0,l.jsx)(lt,{alignItems:"center",children:"/"}),(0,l.jsx)($e,{children:(0,l.jsx)(Ir,{onChange:c,onBlur:h,onFocus:m,onKeyDown:y,value:n,contextRef:I,tabIndex:v,placeholder:"YYYY",ariaCurrentValueForInputs:b,disabled:C,applyAriaDisabled:M,hasError:F,isFocused:A==="date-inputs"&&_==="year-input",getProps:L,readOnly:Y})})]})};var Ge=ee("./node_modules/.pnpm/@elliemae+ds-icons@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/createIcon.js"),$t=(0,Ge.w)({paths:["M15.99 2H14v-.52c0-.27-.21-.48-.48-.48h-.05c-.26 0-.47.21-.47.48V2H7v-.52C7 1.21 6.79 1 6.52 1h-.04c-.27 0-.48.21-.48.48V2H4.01C2.9 2 2 2.9 2 4.01V17c0 1.1.9 2 2.01 2H16c1.1 0 2.01-.9 2.01-2.01V4.01C18 2.9 17.1 2 15.99 2zM17 16.99c0 .56-.45 1.01-1.01 1.01H4.01C3.45 18 3 17.55 3 16.99V6h14v10.99zM3 5v-.99C3 3.45 3.45 3 4.01 3H6v.52c0 .27.21.48.48.48h.05c.26 0 .47-.21.47-.48V3h6v.52c0 .27.21.48.48.48h.05c.26 0 .47-.21.47-.48V3h1.99c.56 0 1.01.45 1.01 1.01V5H3z","M5 8h2v2H5V8zM13 8h2v2h-2V8zM9 8h2v2H9V8zM5 11h2v2H5v-2zM13 11h2v2h-2v-2zM9 11h2v2H9v-2zM5 14h2v2H5v-2zM9 14h2v2H9v-2z"],height:20,width:20});const _r={},ct=(0,r.createContext)(_r);var _a=null,wr=ee("./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js"),Nr=ee("./node_modules/.pnpm/uid@2.0.2/node_modules/uid/dist/index.mjs");const xr={id:V.A.string.description("Id of the live region"),portal:V.A.object.description("Portal to render the live region")},wa={id:V.A.string.description("Id of the live region"),portal:V.A.object.description("Portal to render the live region"),role:V.A.string.description("Role of the live region"),"aria-live":V.A.string.description("Aria live attribute"),methods:V.A.object.description("Methods to read the live region")},kr=j.I.div`
159
+ position: absolute;
160
+ width: 1px;
161
+ height: 1px;
162
+ margin: -1px;
163
+ border: 0;
164
+ padding: 0;
165
+ overflow: hidden;
166
+ clip: rect(0 0 0 0);
167
+ clip-path: inset(100%);
168
+ white-space: nowrap;
169
+ `,Or=(0,r.memo)(e=>{const[t,n]=(0,r.useState)(""),[o,a]=(0,r.useState)(!1),[s,i]=(0,r.useState)(void 0),[c,d]=(0,r.useState)("polite"),{id:u,portal:h}=e,g=(0,r.useCallback)(()=>{n(""),a(!1),d("polite"),i(void 0)},[]),p=(0,r.useCallback)((m,f)=>{g(),setTimeout(()=>{f?.unsafe_emulateAssertiveNVDA&&a(!0),setTimeout(()=>{(f?.assertive||f?.unsafe_emulateAssertiveNVDA)&&d("assertive"),f?.unsafe_emulateAssertiveNVDA&&(i("alert"),a(!1)),f?.delay?setTimeout(()=>{n(m)},f?.delay):n(m)})})},[g]);return(0,r.useEffect)(()=>{e.methods&&(e.methods.current.read=p)},[p,e.methods]),o?null:wr.createPortal((0,l.jsx)(kr,{"aria-atomic":!0,id:u,role:s,"aria-live":c,children:t}),h?.current||document.body)}),dt=e=>{const t=(0,r.useRef)({}),{id:n,portal:o}=e||{},a=(0,r.useMemo)(()=>`ds-live-region-${(0,Nr.L)(5)}`,[]),s=(0,r.useCallback)((i,c)=>t.current.read?.(i,c),[]);return(0,r.useMemo)(()=>({LiveRegion:()=>(0,l.jsx)(Or,{methods:t,id:n??a,portal:o}),read:s}),[n,a,o,s])};dt.displayName="useLiveRegion";const Lr=(0,It.A)(dt);Lr.propTypes=xr;const Pr={},Re=(0,r.createContext)(Pr);var Na=null,De=ee("./node_modules/.pnpm/@elliemae+ds-system@3.56.4_@elliemae+pui-theme@2.13.0_lodash-es@4.17.21/node_modules/@elliemae/ds-system/dist/esm/styled/system.js");const vr=(0,De.AH)`
170
+ &:before {
171
+ position: absolute;
172
+ content: '';
173
+ top: 48%;
174
+ left: -2px;
175
+ height: 1px;
176
+ width: calc(100% + 4px);
177
+ transform: rotate(45deg);
178
+ background-color: ${({theme:e})=>e.colors.neutral[500]};
179
+ }
180
+ `,Wt=(0,De.AH)`
181
+ &:after {
182
+ position: absolute;
183
+ content: '';
184
+ top: -4px;
185
+ left: -4px;
186
+ width: calc(100% + 8px);
187
+ height: calc(100% + 8px);
188
+ border-radius: 50%;
189
+ }
190
+ `,ut={inRange:(0,De.AH)`
191
+ background-color: ${({theme:e})=>e.colors.brand[200]};
192
+ box-shadow: 4px 0 0 0 ${({theme:e})=>e.colors.brand[200]};
193
+ `,startRange:(0,De.AH)`
194
+ background-color: ${({theme:e})=>e.colors.brand[200]};
195
+ border-radius: 50% 0 0 50%;
196
+ box-shadow: 4px 0 0 0 ${({theme:e})=>e.colors.brand[200]};
197
+ `,endRange:(0,De.AH)`
198
+ background-color: ${({theme:e})=>e.colors.brand[200]};
199
+ border-radius: 0 50% 50% 0;
200
+ `},Sr=(0,j.I)(Oe.e,{name:q,slot:re.PICKER_ICONS.CALENDAR})`
201
+ color: ${({theme:e})=>e.colors.brand[800]};
202
+ width: 2rem;
203
+ height: 2rem;
204
+ `,Hr=(0,j.I)("div",{name:q,slot:re.CONTROLLER_COMPONENT.CALENDAR})``,Fr=j.I.div`
205
+ display: grid;
206
+ min-width: 260px;
207
+ background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
208
+ grid-template-rows: auto auto;
209
+ `,$r=j.I.section`
210
+ * {
211
+ margin: 0;
212
+ padding: 0;
213
+ box-sizing: border-box;
214
+ }
215
+ display: grid;
216
+ padding: ${({theme:e})=>e.space.xxxs};
217
+ grid-template-columns: min-content min-content 1fr min-content min-content;
218
+ grid-template-rows: 1fr;
219
+ align-items: center;
220
+ justify-content: center;
221
+ text-align: center;
222
+ background: ${({theme:e})=>e.colors.neutral["050"]};
223
+ `,Wr=(0,j.I)("h3",{name:q,slot:re.CALENDAR.HEADER_LABEL})`
224
+ font-size: 1rem;
225
+ `,Xe=(0,j.I)(Oe.e,{name:q,slot:re.CALENDAR.HEADER_BUTTON})`
226
+ position: relative;
227
+ width: 2.1538rem;
228
+ height: 2.1538rem;
229
+ &:focus {
230
+ &:after {
231
+ content: '';
232
+ position: absolute;
233
+ top: 0;
234
+ left: 0;
235
+ width: 100%;
236
+ height: 100%;
237
+ border: 2px solid ${({theme:e})=>e.colors.brand[700]};
238
+ border-radius: 2px;
239
+ pointer-events: none;
240
+ }
241
+ }
242
+ &:hover {
243
+ background: ${({theme:e})=>e.colors.brand[200]};
244
+ }
245
+ `,Ur=j.I.section`
246
+ padding: ${({theme:e})=>e.space.xxxs};
247
+ `,ae=(0,j.I)(Oe.e,{name:q,slot:re.CALENDAR.DAY_BUTTON})`
248
+ height: 2.4615rem;
249
+ width: 2.4615rem;
250
+ border-radius: 50%;
251
+ position: relative;
252
+ border-width: 2px;
253
+ border-style: solid;
254
+ border-color: transparent;
255
+ line-height: 1;
256
+ color: ${({theme:e})=>e.colors.neutral[800]};
257
+ &:hover {
258
+ cursor: pointer;
259
+ color: ${({theme:e})=>e.colors.brand[700]};
260
+ background-color: ${({theme:e})=>e.colors.brand[200]};
261
+ }
262
+ &:focus {
263
+ ${Wt}
264
+ }
265
+ display: flex;
266
+ justify-content: center;
267
+ align-items: center;
268
+ `,Ut=(0,j.I)(Ce.Ay,{name:q,slot:re.CALENDAR.HEADER_WEEKLY_DAY_LIST})`
269
+ font-size: ${({theme:e})=>e.fontSizes.label[400]};
270
+ text-align: center;
271
+ justify-items: center;
272
+ ${({isHeader:e,theme:t})=>e?`background: ${t.colors.neutral["050"]}`:""};
273
+ ${({isHeader:e})=>e?"text-transform: capitalize":""};
274
+
275
+ .dayWrapper.selectedDay,
276
+ .dayWrapper.startRangeDay,
277
+ .dayWrapper.endRangeDay {
278
+ ${ae} {
279
+ color: ${({theme:e})=>e.colors.neutral["000"]};
280
+ font-weight: ${({theme:e})=>e.fontWeights.semibold};
281
+ }
282
+ &:not(.disabledDay),
283
+ &:not(.outOfRangeDay) {
284
+ ${ae} {
285
+ background-color: ${({theme:e})=>e.colors.brand[700]};
286
+ }
287
+ }
288
+
289
+ &.disabledDay,
290
+ &.outOfRangeDay {
291
+ ${ae} {
292
+ color: ${({theme:e})=>e.colors.neutral["000"]};
293
+ background-color: ${({theme:e})=>e.colors.danger[900]};
294
+ &:before {
295
+ background-color: ${({theme:e})=>e.colors.neutral["000"]};
296
+ }
297
+ }
298
+ }
299
+
300
+ &.focusedDay {
301
+ ${ae} {
302
+ color: ${({theme:e})=>e.colors.neutral["000"]};
303
+ border-color: ${({theme:e})=>e.colors.neutral["000"]};
304
+ }
305
+ }
306
+
307
+ &.outOfRangeDay.focusedDay {
308
+ ${ae} {
309
+ color: ${({theme:e})=>e.colors.neutral["000"]};
310
+ &:before {
311
+ background-color: ${({theme:e})=>e.colors.neutral["000"]};
312
+ }
313
+ }
314
+ }
315
+ }
316
+
317
+ .dayWrapper.disabledDay,
318
+ .dayWrapper.outOfRangeDay {
319
+ ${ae} {
320
+ color: ${({theme:e})=>e.colors.neutral[500]};
321
+ ${vr}
322
+ &:before {
323
+ background-color: ${({theme:e})=>e.colors.neutral[500]};
324
+ }
325
+ }
326
+ &.focusedDay {
327
+ ${ae} {
328
+ &:after {
329
+ border: 2px solid ${({theme:e})=>e.colors.danger[900]};
330
+ }
331
+ }
332
+ }
333
+ }
334
+
335
+ .dayWrapper.focusedDay {
336
+ ${ae} {
337
+ ${Wt}
338
+ &:after {
339
+ border: 2px solid ${({theme:e})=>e.colors.brand[700]};
340
+ }
341
+ }
342
+
343
+ &:not(.readOnly) {
344
+ ${ae} {
345
+ color: ${({theme:e})=>e.colors.brand[600]};
346
+ }
347
+ }
348
+ &.disabledDay,
349
+ &.outOfRangeDay {
350
+ ${ae} {
351
+ color: ${({theme:e})=>e.colors.danger[900]};
352
+ &:before {
353
+ background-color: ${({theme:e})=>e.colors.danger[900]};
354
+ }
355
+ }
356
+ }
357
+ &.selectedDay {
358
+ ${ae} {
359
+ color: ${({theme:e})=>e.colors.neutral["000"]};
360
+ }
361
+ }
362
+ }
363
+
364
+ .dayWrapper.selectedDay.disabledDay.focusedDay {
365
+ ${ae} {
366
+ color: ${({theme:e})=>e.colors.neutral["000"]};
367
+ &:before {
368
+ background-color: ${({theme:e})=>e.colors.neutral["000"]};
369
+ }
370
+ }
371
+ }
372
+
373
+ .dayWrapper.readOnly {
374
+ ${ae} {
375
+ :hover {
376
+ cursor: not-allowed;
377
+ background-color: ${({theme:e})=>e.colors.neutral[100]};
378
+ color: ${({theme:e})=>e.colors.neutral[700]};
379
+ }
380
+ }
381
+ }
382
+
383
+ .dayWrapper.selectedDay.readOnly {
384
+ ${ae} {
385
+ background-color: ${({theme:e})=>e.colors.neutral[500]};
386
+ font-weight: semibold;
387
+ color: ${({theme:e})=>e.colors.neutral["000"]};
388
+ &:before {
389
+ background-color: ${({theme:e})=>e.colors.neutral["000"]};
390
+ }
391
+ :hover {
392
+ background-color: ${({theme:e})=>e.colors.neutral[700]};
393
+ }
394
+ :focus {
395
+ background-color: ${({theme:e})=>e.colors.neutral[700]};
396
+ }
397
+ }
398
+ }
399
+
400
+ .dayWrapper.notCurrentMonth {
401
+ ${ae} {
402
+ color: ${({theme:e})=>e.colors.neutral[500]};
403
+ }
404
+
405
+ &.focusedDay {
406
+ ${ae} {
407
+ color: ${({theme:e})=>e.colors.brand[600]};
408
+ }
409
+
410
+ &.disabledDay,
411
+ &.outOfRangeDay {
412
+ ${ae} {
413
+ color: ${({theme:e})=>e.colors.danger[900]};
414
+ }
415
+
416
+ &.inRangeDay,
417
+ &.startRangeDay,
418
+ &.endRangeDay {
419
+ ${ae} {
420
+ color: ${({theme:e})=>e.colors.neutral["000"]};
421
+ }
422
+ }
423
+ }
424
+ }
425
+
426
+ &.selectedDay,
427
+ &.startRangeDay,
428
+ &.endRangeDay {
429
+ ${ae} {
430
+ color: ${({theme:e})=>e.colors.neutral["000"]};
431
+ }
432
+ }
433
+ }
434
+
435
+ .dayWrapper.inRangeDay {
436
+ ${ut.inRange}
437
+ &.disabledDay,
438
+ &.outOfRangeDay {
439
+ ${ae} {
440
+ color: ${({theme:e})=>e.colors.neutral["000"]};
441
+ background-color: ${({theme:e})=>e.colors.danger[900]};
442
+ &:before {
443
+ background-color: ${({theme:e})=>e.colors.neutral["000"]};
444
+ }
445
+ }
446
+ &.focusedDay {
447
+ ${ae} {
448
+ border-color: ${({theme:e})=>e.colors.neutral["000"]};
449
+ }
450
+ }
451
+ }
452
+ }
453
+
454
+ .dayWrapper.startRangeDay {
455
+ &.inRangeImproperDay {
456
+ ${ut.startRange}
457
+ }
458
+ &.focusedDay {
459
+ ${ae} {
460
+ color: ${({theme:e})=>e.colors.neutral["000"]};
461
+ }
462
+ }
463
+ &.disabledDay,
464
+ &.outOfRangeDay {
465
+ ${ae} {
466
+ color: ${({theme:e})=>e.colors.neutral["000"]};
467
+ &:before {
468
+ background-color: ${({theme:e})=>e.colors.neutral["000"]};
469
+ }
470
+ }
471
+ }
472
+ }
473
+
474
+ .dayWrapper.endRangeDay {
475
+ &.inRangeImproperDay {
476
+ ${ut.endRange}
477
+ }
478
+ &.focusedDay {
479
+ ${ae} {
480
+ color: ${({theme:e})=>e.colors.neutral["000"]};
481
+ }
482
+ }
483
+ &.disabledDay,
484
+ &.outOfRangeDay {
485
+ ${ae} {
486
+ color: ${({theme:e})=>e.colors.neutral["000"]};
487
+ &:before {
488
+ background-color: ${({theme:e})=>e.colors.neutral["000"]};
489
+ }
490
+ }
491
+ }
492
+ }
493
+
494
+ .dayWrapper.endRangeDay.startRangeDay {
495
+ background-color: transparent;
496
+ box-shadow: none;
497
+ }
498
+ `,Le=j.I.div`
499
+ min-width: 2.4615rem;
500
+ display: flex;
501
+ justify-content: center;
502
+ align-items: center;
503
+ `,jr=(0,j.I)("div",{name:q,slot:re.FOOTERS.CALENDAR})`
504
+ border-top: solid 1px ${({theme:e})=>e.colors.neutral[300]};
505
+ margin: 0 ${({theme:e})=>e.space.xxs2};
506
+ padding: ${({theme:e})=>e.space.xxs2} 0;
507
+ color: ${({theme:e})=>e.colors.danger[900]};
508
+ font-size: ${({theme:e})=>e.fontSizes.microText[200]};
509
+ text-align: right;
510
+ background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
511
+ `,Yr={display:"none"},mt=({metaDay:e,colIndex:t,isInvisible:n})=>{const{day:o,isCurrMonthDay:a,isHidden:s,dayBtnRef:i,dayAsString:c}=e,{handleChangeComposedDateString:d,dateStringFromProps:u,getProps:h,props:{preventCloseOnSelection:g,readOnly:p,applyAriaDisabled:m},getIsDisabledDay:f,getIsOutOfRangeDay:E,getIsStartRangeDay:y,getIsDayInRange:C,getIsEndRangeDay:M,appOnMonthChange:R,appOnDayChange:P,appOnYearChange:I,latestInteractionRegion:b,isWithTimeWheelToo:A,trackFocusCalendarMetafocusedDay:_,fromDate:L,toDate:v}=(0,r.useContext)(G),{read:F,LiveRegion:Y}=dt({}),{focusedDay:x,handleDayOnKeyDown:k,handleFocusMetaDayByDay:w,closeCalendar:B}=(0,r.useContext)(Re),Z=x?.day?Ue(e?.day,x?.day):!1,$=(0,r.useMemo)(()=>{const J=Ve(u);return J?an(o,J):!1},[u,o]),W=b==="calendar-days"&&Z,z=f(e.dayAsString),se=E(e.dayAsString),O=y(e.dayAsString),N=M(e.dayAsString),ie=C(e.dayAsString),pe=!O&&!N&&ie,S=(0,r.useMemo)(()=>`${tn(c)}, ${Qt[e.day.getDay()]}`,[c,e]),H=(0,r.useMemo)(()=>L&&v?L===v?"Please select another day to complete range selection.":`Range from ${L} to ${v} selected.`:L&&!v?"Please select another day to complete range selection.":"",[L,v]),X=(0,r.useCallback)(J=>{if(w(o),!z&&!se&&!p&&!m){const me=Me(o),ue={...Te,newDateString:me},{month:ce,day:fe,year:Je}=ye(o);R(`${ce+1}`,J,ue),fe&&P(`${fe}`,J,ue),I(`${Je}`,J,ue),d(me,ue),_(),!A&&!g&&B(),F(`${S} selected.`,{})}},[w,o,z,se,p,m,R,P,I,d,_,A,g,B,F,S]),T=(0,r.useCallback)(J=>{window.requestAnimationFrame(()=>{i.current=J,W&&J?.focus?.()})},[i,W]),D=(0,r.useCallback)(()=>{_()},[_]),le=(0,r.useMemo)(()=>`dayWrapper ${$?"selectedDay ":""}${z?"disabledDay ":""}${se?"outOfRangeDay ":""}${W?"focusedDay ":""}${O?"startRangeDay ":""}${ie?"inRangeImproperDay ":""}${pe?"inRangeDay ":""}${N?"endRangeDay ":""}${a?"":"notCurrentMonth"}
512
+ ${p||m?"readOnly":""}`,[$,z,se,W,O,ie,pe,N,a,p,m]);let oe=K.CALENDAR.DAY;return $&&(oe=K.CALENDAR.SELECTED_DAY),W&&(oe=K.CALENDAR.FOCUSED_DAY),W&&$&&(oe=K.CALENDAR.SELECTED_FOCUSED_DAY),O&&(oe=K.CALENDAR.START_RANGE_DAY,W&&F(`${S} selected. ${H}`,{})),N&&(oe=K.CALENDAR.END_RANGE_DAY,W&&F(`${S} selected. ${H}`,{})),pe&&(oe=K.CALENDAR.IN_RANGE_DAY),(0,l.jsxs)("div",{className:le,style:s?Yr:void 0,role:"gridcell",...Number.isInteger(t)&&{"aria-colindex":t},children:[(0,l.jsx)(ae,{"aria-label":S,"aria-disabled":se||z||p||m,applyAriaDisabled:m,"aria-hidden":!!n,buttonType:"raw",size:"m",onClick:X,onFocus:D,onKeyDown:J=>{k(J,e)},innerRef:T,tabIndex:-1,"data-isfocused":W,"data-testid":oe,type:"button",getOwnerProps:h,readOnlyStyles:p||m,children:`${o.getDate()}`}),(0,l.jsx)(Y,{})]})},Br=r.memo(({invisibleFirstDay:e,daysMatrixByWeekday:t,invisibleLastDay:n,innerRef:o})=>{const{getProps:a}=r.useContext(G);return(0,l.jsxs)("div",{ref:o,role:"rowgroup",children:[e?(0,l.jsx)("div",{role:"row",style:{display:"none"},children:(0,l.jsx)(mt,{metaDay:e,isInvisible:!0},`ds-calendar-${e.day.toString()}`)}):null,t.map((s,i)=>(0,l.jsx)(Ut,{role:"row","aria-rowindex":i+1,cols:["2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem"],rows:["2.1538rem"],py:"xxxs",px:"2px",justifyContent:"space-between",alignItems:"center",getOwnerProps:a,children:s.map((c,d)=>(0,l.jsx)(mt,{metaDay:c,colIndex:d+1},`ds-calendar-${c.day.toString()}`))},`ds-calendar-week-${s[0].day.toString()}-${s[6].day.toString()}`)),n?(0,l.jsx)("div",{role:"row",style:{display:"none"},children:(0,l.jsx)(mt,{metaDay:n,isInvisible:!0},`ds-calendar-${n.day.toString()}`)}):null]})}),Kr=()=>{const{invisibleFirstDay:e,daysMatrixByWeekday:t,invisibleLastDay:n}=(0,r.useContext)(Re),{calendarDaysWrapperRef:o}=(0,r.useContext)(G);return(0,l.jsx)(Br,{invisibleFirstDay:e,daysMatrixByWeekday:t,invisibleLastDay:n,innerRef:o})},Vr=r.memo(()=>(0,l.jsx)("span",{role:"rowgroup",children:(0,l.jsxs)(Ut,{role:"row",cols:["2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem"],rows:["1.6923rem"],py:"xxxs",px:"6px",justifyContent:"space-between",alignItems:"center",isHeader:!0,children:[(0,l.jsx)(Le,{role:"columnheader","aria-colindex":1,children:"sun"}),(0,l.jsx)(Le,{role:"columnheader","aria-colindex":2,children:"mon"}),(0,l.jsx)(Le,{role:"columnheader","aria-colindex":3,children:"tue"}),(0,l.jsx)(Le,{role:"columnheader","aria-colindex":4,children:"wed"}),(0,l.jsx)(Le,{role:"columnheader","aria-colindex":5,children:"thu"}),(0,l.jsx)(Le,{role:"columnheader","aria-colindex":6,children:"fri"}),(0,l.jsx)(Le,{role:"columnheader","aria-colindex":7,children:"sat"})]})})),Gr=r.memo(({weekRowsNum:e})=>(0,l.jsxs)("span",{role:"grid","aria-label":"calendar","aria-colcount":7,"aria-rowcount":e,"data-testid":K.CALENDAR.TABLE_WRAPPER,children:[(0,l.jsx)(Vr,{}),(0,l.jsx)(Ur,{children:(0,l.jsx)(Kr,{})})]}));var pt=ee("./node_modules/.pnpm/@elliemae+ds-icons@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/AlertsSmallFill.js");const Xr=()=>{const{props:{pickerFooterMsg:e,hasError:t,readOnly:n,applyAriaDisabled:o},getProps:a,isWithTimeWheelToo:s}=(0,r.useContext)(G);return e!==void 0&&!s&&t?(0,l.jsxs)(jr,{role:"alert",getOwnerProps:a,"data-testid":K.FOOTERS.CALENDAR,readOnlyStyles:n||o,children:[(0,l.jsx)(pt.A,{width:8,height:8,color:["danger","900"],style:{marginRight:"0.5rem",marginBottom:"2px"}}),e]}):null};var jt=ee("./node_modules/.pnpm/@elliemae+ds-icons@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/SvgIcon.js"),zr=e=>(0,l.jsx)(jt.Ah,{width:16,height:16,...e,viewBox:"0 0 16 16",paths:["M0,8c0,0.1,0,0.2,0.1,0.3l5.6,7.5c0.2,0.2,0.5,0.3,0.7,0.1c0.2-0.2,0.3-0.5,0.1-0.7L1.1,8l5.4-7.2c0.2-0.2,0.1-0.5-0.1-0.7C6.2-0.1,5.9,0,5.7,0.2L0.1,7.7C0,7.8,0,7.9,0,8L0,8z M9,8c0,0.1,0,0.2,0.1,0.3l5.6,7.5c0.2,0.2,0.5,0.3,0.7,0.1c0.2-0.2,0.3-0.5,0.1-0.7L10.1,8l5.4-7.2c0.2-0.2,0.1-0.5-0.1-0.7c-0.2-0.2-0.5-0.1-0.7,0.1L9.1,7.7C9,7.8,9,7.9,9,8L9,8z"]}),Jr=(0,Ge.w)({paths:["M 4.465 8.5 C 4.465 8.605 4.498 8.711 4.565 8.8 L 10.565 16.8 C 10.731 17.021 11.044 17.066 11.265 16.9 S 11.531 16.421 11.366 16.2 L 5.591 8.5 L 11.366 0.8 C 11.531 0.58 11.486 0.267 11.265 0.1 A 0.5007 0.5007 0 0 0 10.565 0.201 L 4.565 8.201 A 0.503 0.503 0 0 0 4.465 8.501 Z"],height:17,width:16}),Zr=ee("./node_modules/.pnpm/@elliemae+ds-icons@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronRight.js"),Qr=e=>(0,l.jsx)(jt.Ah,{width:16,height:16,...e,viewBox:"0 0 16 16",children:(0,l.jsx)("path",{d:`M6.6,8c0,0.1,0,0.2-0.1,0.3l-5.6,7.5c-0.2,0.2-0.5,0.3-0.7,0.1c-0.2-0.2-0.3-0.5-0.1-0.7L5.5,8L0.1,0.8
513
+ C-0.1,0.5,0,0.3,0.2,0.1C0.4-0.1,0.7,0,0.8,0.2l5.6,7.5C6.6,7.8,6.6,7.9,6.6,8L6.6,8z M15.6,8c0,0.1,0,0.2-0.1,0.3l-5.6,7.5
514
+ c-0.2,0.2-0.5,0.3-0.7,0.1c-0.2-0.2-0.3-0.5-0.1-0.7L14.5,8L9.1,0.8C8.9,0.5,9,0.3,9.2,0.1C9.4-0.1,9.7,0,9.8,0.2l5.6,7.5
515
+ C15.6,7.8,15.6,7.9,15.6,8L15.6,8z`})});const qr=()=>{const{currentMonth:e,currentYear:t}=(0,r.useContext)(Re),n=e>=0&&e<=11?`${on(e)} `:"";return(0,r.useMemo)(()=>`${n}${t}`,[n,t])},eo=()=>{const e=qr(),{handlePrevYear:t,handlePrevMonth:n,handleNextMonth:o,handleNextYear:a,handlePrevYearKeyDown:s,handlePrevMonthKeyDown:i,handleNextMonthKeyDown:c,handleNextYearKeyDown:d,onPrevYearFocus:u,onPrevMonthFocus:h,onNextMonthFocus:g,onNextYearFocus:p}=(0,r.useContext)(Re),{isControllerOnly:m,autoFocusPrevMonthArrow:f,prevYearBtnRef:E,prevMonthBtnRef:y,nextMonthBtnRef:C,nextYearBtnRef:M,latestInteractionRegion:R,currFocusDescriber:P,getProps:I}=(0,r.useContext)(G),b=(0,r.useCallback)(v=>{E.current=v,R==="calendar-head"&&P==="calendar-prev-year"&&v?.focus?.()},[P,R,E]),A=(0,r.useCallback)(v=>{y.current=v,R==="calendar-head"&&P==="calendar-prev-month"&&v?.focus?.()},[P,R,y]),_=(0,r.useCallback)(v=>{C.current=v,R==="calendar-head"&&P==="calendar-next-month"&&v?.focus?.()},[P,R,C]),L=(0,r.useCallback)(v=>{M.current=v,R==="calendar-head"&&P==="calendar-next-year"&&v?.focus?.()},[P,R,M]);return(0,l.jsxs)($r,{children:[(0,l.jsx)(Xe,{"aria-label":"previous year",buttonType:"raw",size:xe.GO.M,onClick:t,innerRef:b,onKeyDown:s,onFocus:u,tabIndex:m?-1:0,"data-testid":K.CALENDAR.PREV_YEAR,type:"button",getOwnerProps:I,children:(0,l.jsx)(zr,{height:14,width:14,fill:"#25292f"})}),(0,l.jsx)(Xe,{autoFocus:f,"aria-label":"previous month",buttonType:"raw",size:xe.GO.M,onClick:n,innerRef:A,onKeyDown:i,onFocus:h,"data-testid":K.CALENDAR.PREV_MONTH,type:"button",getOwnerProps:I,children:(0,l.jsx)(Jr,{height:14,width:14,fill:"#25292f"})}),(0,l.jsx)(Wr,{"aria-live":"polite","data-testid":K.CALENDAR.HEADER_LABEL,getOwnerProps:I,children:e}),(0,l.jsx)(Xe,{"aria-label":"next month",buttonType:"raw",size:xe.GO.M,onClick:o,innerRef:_,onKeyDown:c,onFocus:g,"data-testid":K.CALENDAR.NEXT_MONTH,type:"button",getOwnerProps:I,children:(0,l.jsx)(Zr.A,{height:14,width:14,fill:"#25292f"})}),(0,l.jsx)(Xe,{"aria-label":"next year",buttonType:"raw",size:xe.GO.M,onClick:a,innerRef:L,onKeyDown:d,onFocus:p,"data-testid":K.CALENDAR.NEXT_YEAR,type:"button",getOwnerProps:I,children:(0,l.jsx)(Qr,{height:14,width:14,fill:"#25292f"})})]})},ht=({className:e=""})=>{const{getProps:t,props:{readOnly:n,applyAriaDisabled:o}}=(0,r.useContext)(G),{daysMatrixByWeekday:a}=(0,r.useContext)(Re);return(0,l.jsx)(Hr,{className:e,"data-testid":K.CONTROLLER_COMPONENT.CALENDAR,getOwnerProps:t,children:(0,l.jsxs)(Fr,{readOnlyStyles:n||o,children:[(0,l.jsx)(eo,{}),(0,l.jsx)(Gr,{weekRowsNum:a.length}),(0,l.jsx)(Xr,{})]})})},to=(0,j.I)(Oe.e,{name:q,slot:re.PICKER_ICONS.CALENDAR_TIMEWHEEL})`
516
+ color: ${({theme:e})=>e.colors.brand[800]};
517
+ width: 2rem;
518
+ height: 2rem;
519
+ `,no=(0,j.I)("div",{name:q,slot:re.CONTROLLER_COMPONENT.CALENDAR_TIMEWHEEL})`
520
+ background: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
521
+ display: grid;
522
+ grid-template-columns: 260px 192px;
523
+ grid-template-rows: 1fr;
524
+ // this gap and background color simulate the border separator between the calendar and time wheel
525
+ column-gap: 1px;
526
+ background-color: ${({theme:e})=>e.colors.neutral[200]};
527
+ `,ro=(0,j.I)(ht)`
528
+ box-shadow: none;
529
+ `,oo=(0,j.I)("div",{name:q,slot:re.FOOTERS.CALENDAR_TIMEWHEEL})`
530
+ border-top: solid 1px ${({theme:e})=>e.colors.neutral[300]};
531
+ padding: ${({theme:e})=>e.space.xxs2};
532
+ color: ${({theme:e})=>e.colors.danger[900]};
533
+ font-size: ${({theme:e})=>e.fontSizes.microText[200]};
534
+ text-align: right;
535
+ grid-column: 1/3;
536
+ background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
537
+ `,ao=()=>{const{handleSetTriggerRef:e,handleToggleCalendarWithTimeWheel:t,handlePickerIconKeyDown:n,ariaCurrentValueForInputs:o,disabled:a}=(0,r.useContext)(ct),{getProps:s,props:{tabIndex:i}}=(0,r.useContext)(G);return(0,r.useMemo)(()=>(0,l.jsx)(to,{"aria-label":`date time picker context menu trigger, ${o}`,buttonType:"icon",type:"button",size:xe.GO.M,innerRef:e,tabIndex:i,onClick:t,onKeyDown:n,"data-testid":K.PICKER_ICONS.CALENDAR_TIMEWHEEL,disabled:a,getOwnerProps:s,children:(0,l.jsx)($t,{color:a?["neutral","500"]:["brand-primary","800"]})}),[o,a,s,n,e,t,i])};var gt=ee("./node_modules/.pnpm/@elliemae+ds-popperjs@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-popperjs/dist/esm/index.js"),ft=(0,Ge.w)({paths:["M9.499 6.969a.503.503 0 0 0-.313.109l-5 4a.5013.5013 0 0 0-.078.703c.173.214.488.25.703.078l4.688-3.75 4.688 3.75c.218.172.531.136.703-.078a.5004.5004 0 0 0-.078-.703l-5-4a.501.501 0 0 0-.313-.109z"],height:20,width:20}),Et=ee("./node_modules/.pnpm/@elliemae+ds-icons@3.56.4_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronSmallDown.js");const so=(0,De.AH)`
538
+ &:after {
539
+ position: absolute;
540
+ content: '';
541
+ top: -2px;
542
+ left: -2px;
543
+ width: calc(100% + 4px);
544
+ height: calc(100% + 4px);
545
+ border-radius: 50%;
546
+ border: 2px solid ${({theme:e,isDisabled:t})=>t?e.colors.danger[900]:e.colors.brand[700]};
547
+ }
548
+ `,io=(0,De.AH)`
549
+ &:before {
550
+ position: absolute;
551
+ content: '';
552
+ top: 48%;
553
+ left: -1px;
554
+ height: 1px;
555
+ width: calc(100% + 2px);
556
+ transform: rotate(45deg);
557
+ background-color: ${({theme:e,isCurrentListItem:t,selected:n})=>n?e.colors.neutral["000"]:t?e.colors.danger[900]:e.colors.neutral[500]};
558
+ }
559
+ `,lo=(0,De.AH)`
560
+ ${({theme:e,isDisabled:t,isCurrentListItem:n,selected:o})=>o?e.colors.neutral["000"]:t&&n?e.colors.danger[900]:t?e.colors.neutral[500]:n?e.colors.brand[600]:e.colors.neutral[800]};
561
+ `,co=(0,De.AH)`
562
+ ${({theme:e,selected:t,isDisabled:n})=>n&&t?e.colors.danger[900]:t?e.colors.brand[700]:e.colors.neutral["000"]}
563
+ `,uo=(0,j.I)(Oe.e,{name:q,slot:re.PICKER_ICONS.TIMEWHEEL})`
564
+ color: ${({theme:e})=>e.colors.brand[800]};
565
+ width: 2rem;
566
+ height: 2rem;
567
+ `,yt=j.I.div`
568
+ width: 100%;
569
+ height: 100%;
570
+ margin: auto;
571
+ padding: 0;
572
+ position: relative;
573
+ display: flex;
574
+ flex-direction: column;
575
+ align-items: center;
576
+ &:focus-within {
577
+ &:before {
578
+ content: '';
579
+ position: absolute;
580
+ top: 0;
581
+ left: 0;
582
+ width: 100%;
583
+ height: 100%;
584
+ border-radius: 2px;
585
+ border: 2px solid ${({theme:e})=>e.colors.brand[700]};
586
+ box-shadow: 0 0 2px ${({theme:e})=>e.colors.brand[700]};
587
+ }
588
+ }
589
+ `,mo=(0,j.I)("div",{name:q,slot:re.CONTROLLER_COMPONENT.TIMEWHEEL})`
590
+ display: grid;
591
+ position: relative;
592
+ grid-template-columns: 192px;
593
+ grid-template-rows: 36px 30px auto;
594
+ grid-template-areas:
595
+ 'TimePickerHead'
596
+ 'TimePickerWheelsLegend'
597
+ 'VerticalWheelWrapper';
598
+ `,po=(0,j.I)(Ce.Ay,{name:q,slot:re.TIMEWHEEL.HEADER_LABEL})`
599
+ width: 100%;
600
+ grid-area: TimePickerHead;
601
+ justify-content: center;
602
+ align-items: center;
603
+ background: ${({theme:e})=>e.colors.neutral["050"]};
604
+ `,ho=j.I.div`
605
+ width: 100%;
606
+ height: 100%;
607
+ grid-area: TimePickerWheelsLegend;
608
+ display: grid;
609
+ grid-template-columns: ${({theme:e})=>e.space.xl} ${({theme:e})=>e.space.xl} ${({theme:e})=>e.space.xl};
610
+ align-items: center;
611
+ justify-content: center;
612
+ text-align: center;
613
+ background: ${({theme:e})=>e.colors.neutral["050"]};
614
+ `,go=j.I.div`
615
+ background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
616
+ width: 100%;
617
+ grid-area: VerticalWheelWrapper;
618
+ display: grid;
619
+ grid-template-columns: ${({theme:e})=>e.space.xl} ${({theme:e})=>e.space.xl} ${({theme:e})=>e.space.xl};
620
+ grid-template-rows: 100%;
621
+ & ul:not(:last-child) {
622
+ position: relative;
623
+ &:after {
624
+ content: '';
625
+ position: absolute;
626
+ left: 100%;
627
+ top: 5%;
628
+ height: 90%;
629
+ width: 1px;
630
+ background: ${({theme:e})=>e.colors.neutral[300]};
631
+ }
632
+ }
633
+
634
+ > *:not(:last-child) {
635
+ border-right: 1px solid ${({theme:e})=>e.colors.neutral[200]};
636
+ }
637
+ `,ze=(0,j.I)(Ce.Ay,{name:q,slot:re.TIMEWHEEL.TIME_BUTTON})`
638
+ position: relative;
639
+ height: ${({theme:e})=>e.space.s};
640
+ width: ${({theme:e})=>e.space.s};
641
+ border-radius: 50%;
642
+
643
+ &:hover {
644
+ background-color: ${co};
645
+ }
646
+
647
+ &:focus {
648
+ outline: none;
649
+ }
650
+
651
+ color: ${lo};
652
+
653
+ ${({selected:e,isCurrentListItem:t})=>t&&!e?so:""}
654
+
655
+ ${({isDisabled:e})=>e?(0,De.AH)`
656
+ cursor: not-allowed;
657
+ ${io};
658
+ `:""}
659
+
660
+ ${({theme:e,selected:t,isDisabled:n})=>t?(0,De.AH)`
661
+ font-weight: ${e.fontWeights.semibold};
662
+ background-color ${n?e.colors.danger[900]:e.colors.brand[700]};
663
+ `:""};
664
+ display: flex;
665
+ justify-content: center;
666
+ align-items: center;
667
+
668
+ ${({theme:e,readOnly:t,selected:n})=>t&&n?`
669
+ background-color: ${e.colors.neutral[500]};
670
+ font-weight: semibold;
671
+ color: ${e.colors.neutral["000"]};
672
+ &:before {
673
+ background-color: ${e.colors.neutral["000"]};
674
+ }
675
+ :hover {
676
+ background-color: ${e.colors.neutral[700]};
677
+ }
678
+ :focus {
679
+ background-color: ${e.colors.neutral[700]};
680
+ }
681
+ `:t&&!n?`
682
+ :hover {
683
+ background-color: ${e.colors.neutral[100]};
684
+ }
685
+ `:""}
686
+ `,he=j.I.div`
687
+ margin: auto;
688
+ width: 36px;
689
+ height: 36px;
690
+ display: flex;
691
+ align-items: center;
692
+ justify-content: center;
693
+ position: relative;
694
+ `,We=(0,j.I)(Oe.e,{name:q,slot:re.TIMEWHEEL.TIME_CHANGE_BUTTON})`
695
+ height: ${({theme:e})=>e.space.s};
696
+ width: ${({theme:e})=>e.space.s};
697
+ min-width: ${({theme:e})=>e.space.s};
698
+ border-radius: 50%;
699
+ `,fo=(0,j.I)("div",{name:q,slot:re.FOOTERS.TIMEWHEEL})`
700
+ border-top: solid 1px ${({theme:e})=>e.colors.neutral[300]};
701
+ padding: ${({theme:e})=>e.space.xxs2};
702
+ color: ${({theme:e})=>e.colors.danger[900]};
703
+ font-size: ${({theme:e})=>e.fontSizes.microText[200]};
704
+ text-align: right;
705
+ background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
706
+ `,Eo={},ke=(0,r.createContext)(Eo);var Oa=null;const yo=()=>{const{currHourNum:e,currMinuteNum:t,currMeridiem:n,visibleHours:o,handlePrevHour:a,handleNextHour:s,handleTimeWheelBtnChangeHours:i,handleCurrHourOnKeyDown:c}=(0,r.useContext)(ke),{prevHourBtnRef:d,currHourBtnRef:u,nextHourBtnRef:h,getIsDisabledTime:g,autoFocusHourTimeWheel:p,hours:m,latestInteractionRegion:f,currFocusDescriber:E,getProps:y,props:{readOnly:C,applyAriaDisabled:M}}=(0,r.useContext)(G),R=(0,r.useCallback)(b=>{setTimeout(()=>{u.current=b,f==="timewheel"&&E==="timewheel-curr-hour"&&b?.focus?.()})},[E,f,u]),I=C||M?void 0:["brand-primary","700"];return(0,l.jsxs)(yt,{children:[(0,l.jsx)(he,{children:(0,l.jsx)(We,{"aria-label":"subtract one hour",buttonType:"raw",size:"m",onClick:a,innerRef:d,"data-testid":K.TIMEWHEEL.PREV_HOUR,"aria-disabled":C||M,applyAriaDisabled:M,getOwnerProps:y,tabIndex:-1,type:"button",children:(0,l.jsx)(ft,{color:I})})}),o.map(b=>{const A=`timewheel-hour-${b||""}`;if(!b)return(0,l.jsx)(he,{},A);const _=`${b}:${t} ${n}`,v=!m&&Q(b)===e||m===b,F=g(_),Y=v?0:-1,x={role:"spinbutton","aria-valuenow":Q(b),"aria-valuetext":`${b} hours`,"aria-valuemin":1,"aria-valuemax":12,"aria-label":`${b} hours`,"aria-disabled":F||C||M,"aria-readonly":C||M,onKeyDown:v?c:void 0,innerRef:v?R:void 0},k={isCurrentListItem:v,isDisabled:F},w=m.length===2&&Q(b)===e;return(0,l.jsx)(he,{isCurrentListItem:v,children:(0,l.jsx)(ze,{...k,autoFocus:p&&v,"data-testid":K.TIMEWHEEL[v?"CURRENT_HOUR":"HOUR"],selected:w,applyAriaDisabled:M,onClick:B=>i(b,B),tabIndex:Y,...x,getOwnerProps:y,readOnly:C||M,children:b})},A)}),(0,l.jsx)(he,{children:(0,l.jsx)(We,{"aria-label":"add one hour",buttonType:"raw",size:"m",onClick:s,innerRef:h,tabIndex:-1,"data-testid":K.TIMEWHEEL.NEXT_HOUR,"aria-disabled":C||M,applyAriaDisabled:M,getOwnerProps:y,type:"button",children:(0,l.jsx)(Et.A,{color:I})})})]})},Co=()=>{const{currMeridiem:e,handleTimeWheelBtnChangeMeridiem:t,handleCurrMeridiemOnKeyDown:n}=(0,r.useContext)(ke),{prevMeridiemBtnRef:o,currMeridiemBtnRef:a,nextMeridiemBtnRef:s,getIsDisabledTime:i,hours:c,minutes:d,latestInteractionRegion:u,currFocusDescriber:h,getProps:g,props:{readOnly:p,applyAriaDisabled:m}}=(0,r.useContext)(G),f=!e||e==="AM",E=e==="PM",y=`${c||"01"}:${d||"00"}`,C=`${y} AM`,M=`${y} PM`,R=i(C),P=i(M),I={isDisabled:R},b={isCurrentListItem:f,isDisabled:R},A={isCurrentListItem:E,isDisabled:P},_={isDisabled:P},L=(0,r.useCallback)(x=>{setTimeout(()=>{a.current=x,u==="timewheel"&&h==="timewheel-curr-meridiem"&&x?.focus?.()})},[h,u,a]),v={"aria-valuetext":e,"aria-label":`${e} meridiem`,"aria-disabled":R||P||p||m},Y=p||m?void 0:["brand-primary","700"];return(0,l.jsxs)(yt,{children:[(0,l.jsx)(he,{children:(0,l.jsx)(We,{...I,"aria-label":"set am meridiem","aria-disabled":R||p||m,"data-testid":K.TIMEWHEEL.PREV_MERIDIEM,buttonType:"raw",size:"m",onClick:x=>t("AM",x),innerRef:o,tabIndex:-1,type:"button",getOwnerProps:g,children:(0,l.jsx)(ft,{color:Y})})}),e==="AM"||e===""?(0,l.jsx)(he,{}):null,(0,l.jsx)(he,{isCurrentListItem:f,children:(0,l.jsx)(ze,{role:"spinbutton",...e==="AM"||e===""?v:{},...b,"data-testid":K.TIMEWHEEL[f?"CURRENT_MERIDIEM":"MERIDIEM"],selected:e==="AM","aria-label":`AM ${f?"selected":""}`,"aria-disabled":R||p||m,onClick:x=>t("AM",x),onKeyDown:f?n:void 0,innerRef:f?L:void 0,tabIndex:f?0:-1,getOwnerProps:g,readOnly:p||m,children:"AM"})}),(0,l.jsx)(he,{isCurrentListItem:E,children:(0,l.jsx)(ze,{role:"spinbutton",...e==="PM"?v:{},...A,"data-testid":K.TIMEWHEEL[E?"CURRENT_MERIDIEM":"MERIDIEM"],selected:e==="PM","aria-label":`PM ${E?"selected":""}`,"aria-disabled":P||p||m,onClick:x=>t("PM",x),onKeyDown:E?n:void 0,innerRef:E?L:void 0,tabIndex:E?0:-1,getOwnerProps:g,readOnly:p||m,children:"PM"})}),e==="PM"?(0,l.jsx)(he,{}):null,(0,l.jsx)(he,{children:(0,l.jsx)(We,{..._,"aria-label":"set pm meridiem","aria-disabled":P||p||m,"data-testid":K.TIMEWHEEL.NEXT_MERIDIEM,buttonType:"raw",size:"m",onClick:x=>t("PM",x),innerRef:s,tabIndex:-1,type:"button",getOwnerProps:g,children:(0,l.jsx)(Et.A,{color:Y})})})]})};var La=null;const Do=()=>{const{currHourNum:e,currMinuteNum:t,currMeridiem:n,visibleMinutes:o,handlePrevMinute:a,handleNextMinute:s,handleTimeWheelBtnChangeMinutes:i,handleCurrMinutesOnKeyDown:c}=(0,r.useContext)(ke),{prevMinutesBtnRef:d,currMinutesBtnRef:u,nextMinutesBtnRef:h,getIsDisabledTime:g,minutes:p,currFocusDescriber:m,latestInteractionRegion:f,getProps:E,props:{readOnly:y,applyAriaDisabled:C}}=(0,r.useContext)(G),M=(0,r.useCallback)(I=>{setTimeout(()=>{u.current=I,f==="timewheel"&&m==="timewheel-curr-minute"&&I?.focus?.()})},[m,f,u]),P=y||C?void 0:["brand-primary","700"];return(0,l.jsxs)(yt,{children:[(0,l.jsx)(he,{children:(0,l.jsx)(We,{"aria-label":"subtract one minute",buttonType:"raw",size:"m",onClick:a,innerRef:d,tabIndex:-1,"data-testid":K.TIMEWHEEL.PREV_MINUTE,"aria-disabled":y||C,type:"button",getOwnerProps:E,children:(0,l.jsx)(ft,{color:P})})}),o.map(I=>{const b=`timewheel-minutes-${I||""}`;if(!I)return(0,l.jsx)(he,{},b);const A=`${e}:${I} ${n}`,L=!p&&Q(I)===t||p===I,v=g(A),F=L?0:-1,Y={role:"spinbutton","aria-valuenow":Q(I),"aria-valuetext":`${I} minutes`,"aria-label":`${I} minutes`,"aria-valuemin":1,"aria-valuemax":59,"aria-disabled":v||y||C,onKeyDown:L?c:void 0,innerRef:L?M:void 0},x={isCurrentListItem:L,isDisabled:v};return(0,l.jsx)(he,{isCurrentListItem:L,selected:Q(I)===t,children:(0,l.jsx)(ze,{...x,"data-testid":K.TIMEWHEEL[L?"CURRENT_MINUTE":"MINUTE"],selected:p.length===2&&Q(I)===t,onClick:k=>i(I,k),tabIndex:F,type:"button",...Y,getOwnerProps:E,readOnly:y||C,children:I})},b)}),(0,l.jsx)(he,{children:(0,l.jsx)(We,{"aria-label":"add one minute",buttonType:"raw",size:"m",onClick:s,innerRef:h,"data-testid":K.TIMEWHEEL.NEXT_MINUTE,tabIndex:-1,"aria-disabled":y||C,type:"button",getOwnerProps:E,children:(0,l.jsx)(Et.A,{color:P})})})]})};var Pa=null;const To=()=>{const{props:{pickerFooterMsg:e,hasError:t,readOnly:n,applyAriaDisabled:o},getProps:a,isWithCalendarToo:s}=(0,r.useContext)(G);return!s&&e!==void 0&&t?(0,l.jsxs)(fo,{role:"alert","data-testid":K.FOOTERS.TIMEWHEEL,getOwnerProps:a,readOnlyStyles:n||o,children:[(0,l.jsx)(pt.A,{width:8,height:8,color:["danger","900"],style:{marginRight:"0.5rem",marginBottom:"2px"}}),e]}):null},Ct=r.memo(()=>{const{isControllerOnly:e,hours:t,minutes:n,meridiem:o,getProps:a,props:{readOnly:s,applyAriaDisabled:i}}=(0,r.useContext)(G);return(0,l.jsxs)(mo,{isControllerOnly:e,"data-testid":K.CONTROLLER_COMPONENT.TIMEWHEEL,getOwnerProps:a,role:"region","aria-label":"timewheel",children:[(0,l.jsx)(po,{"data-testid":K.TIMEWHEEL.HEADER_LABEL,getOwnerProps:a,children:`${t||"__"}:${n||"__"} ${o||"__"}`}),(0,l.jsxs)(ho,{children:[(0,l.jsx)("div",{children:"H"}),(0,l.jsx)("div",{children:"M"}),(0,l.jsx)("div",{children:"A"})]}),(0,l.jsxs)(go,{readOnlyStyles:s||i,children:[(0,l.jsx)(yo,{}),(0,l.jsx)(Do,{}),(0,l.jsx)(Co,{})]}),(0,l.jsx)(To,{})]})}),Mo=()=>{const{props:{pickerFooterMsg:e,hasError:t,readOnly:n,applyAriaDisabled:o},getProps:a}=(0,r.useContext)(G);return e!==void 0&&t?(0,l.jsxs)(oo,{role:"alert","data-testid":K.FOOTERS.CALENDAR_TIMEWHEEL,getOwnerProps:a,readOnlyStyles:n||o,children:[(0,l.jsx)(pt.A,{width:8,height:8,color:["danger","900"],style:{marginRight:"0.5rem",marginBottom:"2px"}}),e]}):null},Yt=()=>{const{getProps:e,props:{readOnly:t,applyAriaDisabled:n}}=(0,r.useContext)(G);return(0,l.jsxs)(no,{"data-testid":K.CONTROLLER_COMPONENT.CALENDAR_TIMEWHEEL,getOwnerProps:e,readOnlyStyles:t||n,children:[(0,l.jsx)(ro,{}),(0,l.jsx)(Ct,{}),(0,l.jsx)(Mo,{})]})},Ao=(0,j.I)(gt.B2,{name:q,slot:re.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL})``,Io=()=>{const{referenceElement:e,closeCalendar:t,isControllerOnly:n}=(0,r.useContext)(ct),{getProps:o}=(0,r.useContext)(G);return n?(0,l.jsx)(Yt,{}):e?(0,l.jsx)(Ao,{showPopover:!0,"data-testid":K.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL,referenceElement:e,withoutArrow:!0,onClickOutside:t,getOwnerProps:o,"aria-label":"calendar header",role:"dialog",children:(0,l.jsx)(Yt,{})}):null},Ro=()=>{const{pickerButtonRef:e,props:{type:t,onPickerOpen:n,onPickerClose:o,disabled:a,applyAriaDisabled:s},withAnyInputs:i,isWithTimeInputs:c,ariaCurrentValueForInputs:d,trackFocusFirstSegment:u,trackFocusMeridiemInput:h,trackFocusYearInput:g,trackFocusPicker:p,latestInteractionRegion:m,currFocusDescriber:f}=(0,r.useContext)(G),{handleToggleCalendar:E}=(0,r.useContext)(Re),{handleToggleTimePicker:y}=(0,r.useContext)(ke),[C,M]=(0,r.useState)(!1),R=(0,r.useCallback)(()=>{u()},[u]),P=(0,r.useCallback)(x=>{const{key:k}=x;["Home","End"].includes(k)&&x.preventDefault(),["Home","End"].includes(k)&&x.stopPropagation(),k==="Home"&&R(),k==="Backspace"&&i&&(c?h():g())},[c,R,h,g,i]),[I,b]=(0,r.useState)(null),A=(0,r.useCallback)(()=>{a||(M(!0),n(),setTimeout(()=>E()),setTimeout(()=>y()))},[E,y,n,a]),_=(0,r.useCallback)(()=>{M(!1),o(),setTimeout(()=>E()),setTimeout(()=>y())},[E,y,o]),L=(0,r.useCallback)(()=>{C?_():A()},[_,A,C]),v=(0,r.useCallback)(x=>{e.current=x,b(x),m==="picker-icon"&&f==="datetime-picker-icon"&&x?.focus()},[f,m,e]),F=(0,r.useCallback)(x=>{const{key:k}=x;k==="Escape"&&(_(),p())},[_,p]),Y=(0,r.useMemo)(()=>t===de.DATE_TIME.CONTROLLER_ONLY,[t]);return(0,r.useMemo)(()=>({referenceElement:I,showCalendarWithTimeWheel:C,closeCalendar:_,handleToggleCalendarWithTimeWheel:L,handleSetTriggerRef:v,handleMenuWrapperKeyDown:F,handlePickerIconKeyDown:P,isControllerOnly:Y,disabled:a,applyAriaDisabled:s,ariaCurrentValueForInputs:d}),[I,C,_,L,v,F,P,Y,a,s,d])},bo=()=>{const{handleToggleCalendar:e,handleSetTriggerRef:t,handlePickerIconKeyDown:n}=(0,r.useContext)(Re),{props:{disabled:o,tabIndex:a},getProps:s,ariaCurrentValueForInputs:i}=(0,r.useContext)(G);return(0,r.useMemo)(()=>(0,l.jsx)(Sr,{"aria-label":`date picker context menu trigger, ${i}`,buttonType:"icon",size:xe.GO.M,innerRef:t,tabIndex:a,onClick:e,onKeyDown:n,"data-testid":K.PICKER_ICONS.CALENDAR,disabled:o,type:"button",getOwnerProps:s,children:(0,l.jsx)($t,{color:o?["neutral","500"]:["brand-primary","800"]})}),[i,t,a,e,n,o,s])},_o=(0,j.I)(gt.B2,{name:q,slot:re.CONTEXTUAL_MENU.CALENDAR})``,wo=()=>{const{isControllerOnly:e,getProps:t}=(0,r.useContext)(G),{referenceElement:n,closeCalendar:o}=(0,r.useContext)(Re);return e?(0,l.jsx)(ht,{}):n?(0,l.jsx)(_o,{showPopover:!0,"data-testid":K.CONTEXTUAL_MENU.CALENDAR,referenceElement:n,withoutArrow:!0,onClickOutside:o,getOwnerProps:t,"aria-label":"calendar header",role:"dialog",children:(0,l.jsx)(ht,{})}):null},No=()=>{const{dateStringFromProps:e,emptyPickerStartingMonth:t}=(0,r.useContext)(G);return(0,r.useMemo)(()=>{const{month:n,year:o}=Ee(e),{month:a,year:s}=Ee(t),i=Number.parseInt(a,10),c=Number.parseInt(s,10),d=n===""||n.length!==2?i-1:Number.parseInt(n,10)-1;return{year:o===""?c:Number.parseInt(o,10),month:d}},[e,t])};function xo(e,t){const n=[];for(let o=0;o<e.length;o+=t){const a=e.slice(o,o+t);n.push(a)}return n}const Dt=(e,t)=>{const n=gn(e,t),o=ve(n[0].day,{daysToSum:-1}),a={day:o,dayAsString:Me(o),isPrevMonthDay:!0,isNextMonthDay:!1,isCurrMonthDay:!1,dayBtnRef:(0,r.createRef)(),isHidden:!0},s=ve(n[n.length-1].day,{daysToSum:1}),i={day:s,dayAsString:Me(s),isPrevMonthDay:!1,isNextMonthDay:!0,isCurrMonthDay:!1,dayBtnRef:(0,r.createRef)(),isHidden:!0};return[a,...n,i]},ko=()=>{const{month:e,year:t}=No(),[n,o]=(0,r.useState)(e),[a,s]=(0,r.useState)(t),i=(0,r.useRef)([]),c=(0,r.useCallback)(()=>{o(e),s(t)},[e,t]);(0,r.useEffect)(()=>{o(e)},[e]),(0,r.useEffect)(()=>{s(t)},[t]);const d=(0,r.useMemo)(()=>Dt(n,a),[n,a]);i.current=d;const u=(0,r.useCallback)(()=>{const{year:y}=je({month:n,year:a},{yearsToSum:-1});s(y)},[n,a]),h=(0,r.useCallback)(()=>{const{month:y,year:C}=je({month:n,year:a},{monthsToSum:-1});o(y),s(C),i.current=Dt(y,C)},[n,a]),g=(0,r.useCallback)(()=>{const{month:y,year:C}=je({month:n,year:a},{monthsToSum:1});o(y),s(C),i.current=Dt(y,C)},[n,a]),p=(0,r.useCallback)(()=>{const{year:y}=je({month:n,year:a},{yearsToSum:1});s(y)},[n,a]),{invisibleFirstDay:m,daysMatrixByWeekday:f,invisibleLastDay:E}=(0,r.useMemo)(()=>{const[y,...C]=[...d],M=C.pop();return{invisibleFirstDay:y,daysMatrixByWeekday:xo(C,7),invisibleLastDay:M}},[d]);return(0,r.useMemo)(()=>({currentMonth:n,currentYear:a,daysArray:d,invisibleFirstDay:m,daysMatrixByWeekday:f,invisibleLastDay:E,handlePrevYear:u,handlePrevMonth:h,handleNextMonth:g,handleNextYear:p,daysArraysRef:i,resetMonthYear:c}),[n,a,d,f,g,p,h,u,m,E,c])},Oo=()=>{const{dateStringFromProps:e}=(0,r.useContext)(G);return(0,r.useMemo)(()=>Ve(e),[e])},Bt={startFocusedYear:null,startFocusedDay:null,startFocusedMonth:null,startFocusedDate:null},Lo=()=>{const{onCalendarOpenFocusedDay:e}=(0,r.useContext)(G),t=Oo(),{month:n,day:o,year:a}=t?ye(t):{month:null,day:null,year:null},s=n!==null&&o!==null&&a!==null&&rt(n,a,o),i=!e,c=!s&&!i;return(0,r.useMemo)(()=>{const d={...Bt};if(s)d.startFocusedMonth=n,d.startFocusedDay=o,d.startFocusedYear=a,d.startFocusedDate=t;else{if(i)return Bt;if(c){const{month:u,day:h,year:g}=Ee(e),p=Q(u),m=Q(h),f=Q(g);p!==-1&&m!==-1&&f!==-1&&rt(p-1,f,m)&&(d.startFocusedMonth=p,d.startFocusedDay=m,d.startFocusedYear=f,d.startFocusedDate=new Date(f,p-1,m))}}return d},[t,a,o,n,s,i,e,c])},Po=({currentDisplayedMonthLogic:e})=>{const{daysArraysRef:t,daysArray:n}=e,{startFocusedDate:o}=Lo(),[a,s]=(0,r.useState)(void 0),i=(0,r.useMemo)(()=>{let h;return a?h=n.find(({day:g})=>Ue(g,a.day)):o&&(h=n.find(({day:g})=>Ue(g,o))),h},[n,o,a]),c=(0,r.useCallback)(h=>{const g=t.current.find(({day:p})=>Ue(p,h.day));i!==g&&s(g)},[t,i]),d=(0,r.useCallback)(h=>{const g=t.current.find(({day:p})=>Ue(p,h));i!==g&&s(g)},[t,i]),u=(0,r.useCallback)(()=>{s(void 0)},[]);return(0,r.useMemo)(()=>({focusedDay:i,resetFocusedDayToStartDate:u,handleFocusMetaDay:c,handleFocusMetaDayByDay:d}),[i,u,c,d])},vo=({focusLogic:e,showCalendar:t,setShowCalendar:n,resetMonthYear:o})=>{const{focusedDay:a,resetFocusedDayToStartDate:s}=e,{props:{onPickerOpen:i,onPickerClose:c,disabled:d},pickerButtonRef:u,trackFocusCalendarMetafocusedDay:h,trackFocusCalendarPrevMonth:g,trackFocusPicker:p,latestInteractionRegion:m,currFocusDescriber:f}=(0,r.useContext)(G),[E,y]=(0,r.useState)(null),C=(0,r.useCallback)(()=>{i()},[i]),M=(0,r.useCallback)(()=>{d||(a?h():setTimeout(()=>g()),n(!0),C())},[d,a,C,n,h,g]),R=(0,r.useCallback)(()=>{n(!1),c(),s(),p(),o()},[n,c,s,p,o]),P=(0,r.useCallback)(()=>{!t?M():R()},[R,M,t]),I=(0,r.useCallback)(A=>{u.current=A,y(A),m==="picker-icon"&&f==="date-picker-icon"&&A?.focus()},[f,m,u]),b=(0,r.useCallback)(A=>{const{key:_}=A;_==="Escape"&&(R(),p())},[R,p]);return(0,r.useMemo)(()=>({referenceElement:E,closeCalendar:R,handleSetTriggerRef:I,handleToggleCalendar:P,handleMenuWrapperKeyDown:b}),[R,b,I,P,E])},So=({currentDisplayedMonthLogic:e,focusLogic:t})=>{const{isControllerOnly:n,isWithTimeWheelToo:o,withAnyInputs:a,isWithTimeInputs:s,isWithDateInputs:i,trackFocusFirstSegment:c,trackFocusMeridiemInput:d,trackFocusYearInput:u,trackFocusCalendarPrevMonth:h,trackFocusCalendarNextMonth:g,trackFocusCalendarNextYear:p,trackFocusCalendarPrevYear:m,trackFocusTimewheelCurrMeridiem:f,trackFocusCalendarMetafocusedDay:E,trackFocusTimewheelCurrHour:y}=(0,r.useContext)(G),{focusedDay:C,handleFocusMetaDay:M,handleFocusMetaDayByDay:R}=t,{daysArray:P,handlePrevMonth:I,handleNextMonth:b}=e,A=(0,r.useCallback)(()=>{const $=C?P.some(({day:W})=>Ot(W,C.day)):!1;if(!C||!$){const W=P.find(z=>z.isCurrMonthDay);W&&M(W)}E()},[P,C,M,E]),_=(0,r.useCallback)(()=>{h()},[h]),L=(0,r.useCallback)(()=>{o?f():A()},[o,f,A]),v=(0,r.useCallback)(()=>{c()},[c]),F=(0,r.useCallback)($=>{const{key:W}=$;["Home","End"].includes(W)&&$.preventDefault(),["Home","End"].includes(W)&&$.stopPropagation(),W==="Home"&&v(),W==="Backspace"&&a&&(s?d():i&&u())},[i,s,v,d,u,a]),Y=!1,x=(0,r.useCallback)(($,W)=>{let z;const{day:se}=W,{key:O,shiftKey:N}=$;if(["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(O)&&$.preventDefault(),["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(O)&&$.stopPropagation(),O==="ArrowUp"&&(z=ve(se,{daysToSum:-7})),O==="ArrowDown"&&(z=ve(se,{daysToSum:7})),O==="ArrowLeft"&&(z=ve(se,{daysToSum:-1})),O==="ArrowRight"&&(z=ve(se,{daysToSum:1})),z){if(!Ot(se,z)&&Y)return;sn(se,z)&&I(),ln(se,z)&&b(),R(z)}O==="Home"&&_(),O==="End"&&L(),O==="Tab"&&!N&&n===!1&&!o&&($.preventDefault(),h()),O==="Tab"&&!N&&n===!1&&o&&($.preventDefault(),y())},[R,b,I,n,o,L,_,Y,h,y]),k=(0,r.useCallback)($=>{const{key:W,shiftKey:z}=$;W==="Tab"&&($.preventDefault(),z?g():p()),W==="Home"&&(_(),$.preventDefault()),W==="End"&&(L(),$.preventDefault())},[L,_,g,p]),w=(0,r.useCallback)($=>{const{key:W,shiftKey:z}=$;W==="Tab"&&(z?n||($.preventDefault(),o?f():A()):($.preventDefault(),g())),W==="Home"&&(_(),$.preventDefault()),W==="End"&&(L(),$.preventDefault())},[n,o,L,_,g,f,A]),B=(0,r.useCallback)($=>{const{key:W,shiftKey:z}=$;W==="Tab"&&($.preventDefault(),z?h():m()),W==="Home"&&(_(),$.preventDefault()),W==="End"&&(L(),$.preventDefault())},[L,_,h,m]),Z=(0,r.useCallback)($=>{const{key:W,shiftKey:z}=$;W==="Tab"&&($.preventDefault(),z&&m(),z||A()),W==="Home"&&(_(),$.preventDefault()),W==="End"&&(L(),$.preventDefault())},[A,m,_,L]);return(0,r.useMemo)(()=>({handleDayOnKeyDown:x,handlePrevYearKeyDown:k,handlePrevMonthKeyDown:w,handleNextMonthKeyDown:B,handleNextYearKeyDown:Z,handlePickerIconKeyDown:F}),[x,k,w,B,Z,F])},Ho=()=>{const{trackFocusCalendarPrevYear:e,trackFocusCalendarNextYear:t,trackFocusCalendarPrevMonth:n,trackFocusCalendarNextMonth:o}=(0,r.useContext)(G),[a,s]=(0,r.useState)(!1),i=(0,r.useCallback)(()=>{e()},[e]),c=(0,r.useCallback)(()=>{n()},[n]),d=(0,r.useCallback)(()=>{o()},[o]),u=(0,r.useCallback)(()=>{t()},[t]),h=ko(),g=Po({currentDisplayedMonthLogic:h,showCalendar:a}),p=vo({focusLogic:g,showCalendar:a,setShowCalendar:s,resetMonthYear:h.resetMonthYear}),m=So({currentDisplayedMonthLogic:h,focusLogic:g});return(0,r.useMemo)(()=>({showCalendar:a,setShowCalendar:s,onPrevYearFocus:i,onPrevMonthFocus:c,onNextMonthFocus:d,onNextYearFocus:u,...h,...g,...p,...m}),[a,i,c,d,u,h,g,p,m])},Kt=({children:e})=>{const t=Ho();return(0,l.jsx)(Re.Provider,{value:t,children:e})},Fo=()=>{const{showCalendar:e,handleMenuWrapperKeyDown:t}=(0,r.useContext)(Re),{isControllerOnly:n}=(0,r.useContext)(G);return(0,l.jsxs)(l.Fragment,{children:[n?null:(0,l.jsx)(bo,{}),n||e?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{onKeyDown:t,children:(0,l.jsx)(wo,{})})}):null]})},$o=()=>(0,l.jsx)(Kt,{children:(0,l.jsx)(Fo,{})});var Wo=(0,Ge.w)({paths:["M10 1c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm0 17c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z","M10 6H9v5h6v-1h-5z"],height:20,width:20});const Uo=()=>{const{handleSetTriggerRef:e,handleToggleTimePicker:t,handlePickerIconKeyDown:n}=(0,r.useContext)(ke),{props:{disabled:o,tabIndex:a},getProps:s,ariaCurrentValueForInputs:i}=(0,r.useContext)(G);return(0,r.useMemo)(()=>(0,l.jsx)(uo,{"aria-label":`time picker context menu trigger, ${i}`,buttonType:"icon",size:xe.GO.M,innerRef:e,tabIndex:a,onClick:t,onKeyDown:n,"data-testid":K.PICKER_ICONS.TIMEWHEEL,disabled:o,type:"button",getOwnerProps:s,children:(0,l.jsx)(Wo,{color:o?["neutral","500"]:["brand-primary","800"]})}),[i,o,s,n,e,t,a])},jo=(0,j.I)(gt.B2,{name:q,slot:re.CONTEXTUAL_MENU.TIMEWHEEL})``,Yo=()=>{const{referenceElement:e,closeTimePicker:t}=r.useContext(ke),{isControllerOnly:n,getProps:o}=r.useContext(G);return n?(0,l.jsx)(Ct,{}):e?(0,l.jsx)(jo,{showPopover:!0,"data-testid":K.CONTEXTUAL_MENU.TIMEWHEEL,referenceElement:e,withoutArrow:!0,onClickOutside:t,getOwnerProps:o,"aria-label":"time wheel header",role:"dialog",children:(0,l.jsx)(Ct,{})}):null},Bo=()=>{const{pickerButtonRef:e,props:{onPickerClose:t,onPickerOpen:n,disabled:o},isWithCalendarToo:a,trackFocusTimewheelCurrHour:s,trackFocusPicker:i,latestInteractionRegion:c,currFocusDescriber:d}=(0,r.useContext)(G),[u,h]=(0,r.useState)(!1),[g,p]=(0,r.useState)(null),m=(0,r.useCallback)(()=>{h(!1),t()},[t]),f=(0,r.useCallback)(()=>{o||h(C=>(C?t():(n(),a||s()),!C))},[o,a,t,n,s]),E=(0,r.useCallback)(C=>{e.current=C,p(C),c==="picker-icon"&&d==="time-picker-icon"&&C?.focus()},[d,c,e]),y=(0,r.useCallback)(C=>{const{key:M}=C;M==="Escape"&&(m(),i())},[m,i]);return(0,r.useMemo)(()=>({referenceElement:g,showTimePicker:u,setShowTimePicker:h,handleToggleTimePicker:f,handleSetTriggerRef:E,handleMenuWrapperKeyDown:y,closeTimePicker:m}),[m,y,E,f,g,u])},Vt=()=>{const{props:{disabled:e,readOnly:t,applyAriaDisabled:n},hours:o,minutes:a,meridiem:s,withAnyRightController:i,withAnyPicker:c,withClearBtn:d,isWithDateInputs:u,autoFocusHourInput:h,handleChangeHours:g,handleChangeMinutes:p,handleChangeMeridiem:m,minutesInterval:f,trackFocusFirstSegment:E,trackFocusLastSegment:y,trackFocusHourInput:C,trackFocusMinuteInput:M,trackFocusMeridiemInput:R,trackFocusClearBtn:P,trackFocusPicker:I,trackFocusYearInput:b}=(0,r.useContext)(G),A=e||n||t,_=(0,r.useCallback)(()=>{E()},[E]),L=(0,r.useCallback)(()=>{y()},[y]),v=(0,r.useCallback)(()=>{C()},[C]),F=(0,r.useCallback)(O=>{if(A)return;let N=O?.target?.value;Number.parseInt(N,10)>1&&(N=ne(N,2)),g(N,O),N.length===2&&M()},[g,A,M]),Y=(0,r.useCallback)(O=>{const{key:N,ctrlKey:ie,metaKey:pe}=O,S=Number.parseInt(o,10);if(["Home","End","ArrowUp","ArrowDown",":"].includes(N)&&O.preventDefault(),["Home","End","ArrowUp","ArrowDown",":"].includes(N)&&O.stopPropagation(),N==="Home"&&_(),N==="End"&&L(),(ie||pe)&&N===";"&&y(),!A){if(N==="ArrowUp"||N==="ArrowDown"){const H=Number.isNaN(S)?0:S;let X;N==="ArrowUp"?X=H+1<=12?H+1:H:X=H-1>1?H-1:1,X=ne(`${X}`,2),g(X,O)}if(!Number.isNaN(S)&&N===":"){let H=ne(`${S}`,2);H==="00"&&(H="01"),g(H,O),H.length===2&&M()}N==="Backspace"&&O.target===O.currentTarget&&u&&O.target.selectionStart===0&&O.target.selectionEnd===0&&(O.preventDefault(),b())}},[o,_,L,y,A,u,g,M,b]),x=(0,r.useCallback)(O=>{const N=O?.target?.value;N==="0"?g("01",O,{isAutomaticFillTrigger:!0}):N.length>0&&N.length<2&&g(ne(N,2),O,{isAutomaticFillTrigger:!0})},[g]),k=(0,r.useCallback)(()=>{M()},[M]),w=(0,r.useCallback)(O=>{if(A)return;let N=O?.target?.value;Number.parseInt(N,10)>6&&(N=ne(N,2)),p(N,O),N.length===2&&R()},[p,A,R]),B=(0,r.useCallback)(O=>{const{key:N,ctrlKey:ie,metaKey:pe}=O,S=Number.parseInt(a,10);if(["Home","End","ArrowUp","ArrowDown"," "].includes(N)&&O.preventDefault(),["Home","End","ArrowUp","ArrowDown"," "].includes(N)&&O.stopPropagation(),N==="Home"&&_(),N==="End"&&L(),(ie||pe)&&N===";"&&y(),!A){if(N==="ArrowUp"||N==="ArrowDown"){const H=Number.isNaN(S)?0:S;let X;N==="ArrowUp"?X=H+f<=59?H+f:H:X=H-f>0?H-f:0,X=ne(`${X}`,2),p(X,O)}if(!Number.isNaN(S)&&N===" "){const H=ne(`${S}`,2);p(H,O),H.length===2&&R()}N==="Backspace"&&O.target===O.currentTarget&&O.target.selectionStart===0&&O.target.selectionEnd===0&&(O.preventDefault(),C())}},[a,_,L,y,A,f,p,R,C]),Z=(0,r.useCallback)(O=>{const N=O?.target?.value;N.length>0&&N.length<2&&p(ne(N,2),O,{isAutomaticFillTrigger:!0})},[p]),$=(0,r.useCallback)(()=>{R()},[R]),W=(0,r.useCallback)(O=>{if(A)return;let N=O?.target?.value?.toUpperCase?.();N.length===1&&(s===""?N=`${N}M`:N=""),m(N,O),N.length===2&&i&&(d?P():c&&I())},[A,s,m,i,d,P,c,I]),z=(0,r.useCallback)(O=>{const{key:N,ctrlKey:ie,metaKey:pe}=O;["Home","End","ArrowUp","ArrowDown"].includes(N)&&O.preventDefault(),["Home","End","ArrowUp","ArrowDown"].includes(N)&&O.stopPropagation(),N==="Home"&&_(),N==="End"&&L(),(ie||pe)&&N===";"&&y(),!A&&(N==="ArrowUp"&&s!=="AM"&&m("AM",O),N==="ArrowDown"&&s!=="PM"&&m("PM",O),N==="Backspace"&&(O.target===O.currentTarget&&O.target.selectionStart===0&&O.target.selectionEnd===0?(O.preventDefault(),M()):s?.length===2&&m("",O)))},[_,L,y,A,s,m,M]),se=(0,r.useCallback)(O=>{const N=O?.target?.value?.toUpperCase?.();N.length===1&&m(`${N}M`,O,{isAutomaticFillTrigger:!0})},[m]);return(0,r.useMemo)(()=>({autoFocusHourInput:h,disabled:e,applyAriaDisabled:n,handleChangeHours:g,onHoursFocus:v,onHoursChange:F,handleChangeMinutes:p,onMinutesFocus:k,onMinutesChange:w,handleChangeMeridiem:m,onMeridiemFocus:$,onMeridiemChange:W,onHoursBlur:x,onMinutesBlur:Z,onMeridiemBlur:se,onHoursKeyDown:Y,onMinutesKeyDown:B,onMeridiemKeyDown:z}),[h,e,n,g,v,F,p,k,w,m,$,W,x,Z,se,Y,B,z])},Tt=["01","02","03","04","05","06","07","08","09","10","11","12"],Ko=1,Vo=1,Go=(e=1)=>{const t=Math.ceil(60/e);return new Array(t).fill("_").map((n,o)=>ne(`${o*e}`,2))},Xo=()=>{const{minutesInterval:e,onTimeWheelOpenStartingTime:t,hours:n,minutes:o,meridiem:a,props:{readOnly:s,applyAriaDisabled:i,disabled:c}}=(0,r.useContext)(G),{handleChangeHours:d,handleChangeMinutes:u,handleChangeMeridiem:h}=Vt(),{startingHours:g,startingMinutes:p,startingMeridiem:m}=(0,r.useMemo)(()=>{const w=bt(t);return{startingHours:w.hours,startingMinutes:w.minutes,startingMeridiem:w.meridiem}},[t]),f=(0,r.useMemo)(()=>{const w=Q(n);if(n&&w!==-1)return w;const B=Q(g);return B===-1?1:B},[n,g]),E=(0,r.useMemo)(()=>{const w=Q(o);if(o&&w!==-1)return w;const B=Q(p);return B===-1?0:B},[o,p]),y=(0,r.useMemo)(()=>a!==""?a:m!==""?m:"AM",[a,m]),C=(0,r.useMemo)(()=>Go(e),[e]),M=(0,r.useMemo)(()=>Math.floor(E/e),[E,e]),R=(0,r.useMemo)(()=>Math.floor(f/Ko)-Vo,[f]),P=(0,r.useMemo)(()=>{const w=[];return R>=1?w.push(Tt[R-1]):w.push(null),w.push(Tt[R]),R<=11?w.push(Tt[R+1]):w.push(null),w},[R]),I=(0,r.useMemo)(()=>{const w=[];return M>=1?w.push(C[M-1]):w.push(null),w.push(C[M]),M<C.length?w.push(C[M+1]):w.push(null),w},[M,C]),b=(0,r.useCallback)((w,B)=>{s||i||c||d(w,B)},[s,i,c,d]),A=(0,r.useCallback)((w,B)=>{const Z=f+w;Z>0&&Z<=12&&d(ne(`${Z}`,2),B)},[f,d]),_=(0,r.useCallback)(w=>{s||i||c||A(-1,w)},[s,i,c,A]),L=(0,r.useCallback)(w=>{s||i||c||A(1,w)},[s,i,c,A]),v=(0,r.useCallback)((w,B)=>{s||i||c||u(w,B)},[s,i,c,u]),F=(0,r.useCallback)((w,B)=>{const Z=E+w;Z>=0&&Z<=59&&u(ne(`${Z}`,2),B)},[E,u]),Y=(0,r.useCallback)(w=>{s||i||c||F(-e,w)},[s,i,c,F,e]),x=(0,r.useCallback)(w=>{s||i||c||F(e,w)},[s,i,c,F,e]),k=(0,r.useCallback)((w,B)=>{s||i||c||h(w,B)},[s,i,c,h]);return(0,r.useMemo)(()=>({currHourNum:f,visibleHours:P,handlePrevHour:_,handleNextHour:L,handleTimeWheelBtnChangeHours:b,currMinuteNum:E,visibleMinutes:I,handlePrevMinute:Y,handleNextMinute:x,handleTimeWheelBtnChangeMinutes:v,handleTimeWheelBtnChangeMeridiem:k,currMeridiem:y}),[f,E,y,L,x,_,Y,b,k,v,P,I])},zo=({currentDisplayedTimeWheelLogic:e})=>{const{handlePrevHour:t,handleNextHour:n,handlePrevMinute:o,handleNextMinute:a,handleTimeWheelBtnChangeMeridiem:s}=e,{withAnyInputs:i,isWithTimeInputs:c,isWithDateInputs:d,isWithCalendarToo:u,isControllerOnly:h,props:{readOnly:g,applyAriaDisabled:p,disabled:m},trackFocusCalendarPrevMonth:f,trackFocusTimewheelCurrHour:E,trackFocusTimewheelCurrMinute:y,trackFocusTimewheelCurrMeridiem:C,trackFocusFirstSegment:M,trackFocusMeridiemInput:R,trackFocusYearInput:P,trackFocusCalendarMetafocusedDay:I}=(0,r.useContext)(G),b=(0,r.useCallback)(()=>{u?f():E()},[u,f,E]),A=(0,r.useCallback)(()=>{C()},[C]),_=(0,r.useCallback)(()=>{M()},[M]),L=(0,r.useCallback)(x=>{const{key:k}=x;["Home","End"].includes(k)&&x.preventDefault(),["Home","End"].includes(k)&&x.stopPropagation(),k==="Home"&&_(),k==="Backspace"&&i&&(c?R():d&&P())},[d,c,_,R,P,i]),v=(0,r.useCallback)(x=>{const{key:k,shiftKey:w}=x;["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(k)&&x.preventDefault(),["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(k)&&x.stopPropagation();let B=!1;if(k==="ArrowUp"){if(g||p||m)return;t(x),B=!0}if(k==="ArrowDown"){if(g||p||m)return;n(x),B=!0}k==="ArrowRight"&&y(),k==="Home"&&b(),k==="End"&&A(),B&&E(),h||k==="Tab"&&w&&!u&&(x.preventDefault(),C()),k==="Tab"&&w&&u&&I()},[b,A,E,h,u,g,p,m,t,n,y,C,I]),F=(0,r.useCallback)(x=>{const{key:k}=x;["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(k)&&x.preventDefault(),["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(k)&&x.stopPropagation();let w=!1;if(k==="ArrowUp"){if(g||p||m)return;o(x),w=!0}if(k==="ArrowDown"){if(g||p||m)return;a(x),w=!0}k==="ArrowLeft"&&E(),k==="ArrowRight"&&C(),k==="Home"&&b(),k==="End"&&A(),w&&y()},[b,A,y,g,p,m,o,a,E,C]),Y=(0,r.useCallback)(x=>{const{key:k,shiftKey:w}=x;["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(k)&&x.preventDefault(),["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(k)&&x.stopPropagation();let B=!1;if(k==="ArrowUp"){if(g||p||m)return;s("AM",x),B=!0}if(k==="ArrowDown"){if(g||p||m)return;s("PM",x),B=!0}k==="ArrowLeft"&&y(),k==="Home"&&b(),k==="End"&&A(),B&&C(),h||k==="Tab"&&!w&&(x.preventDefault(),u?f():E())},[b,A,C,h,g,p,m,s,y,u,f,E]);return(0,r.useMemo)(()=>({handleCurrHourOnKeyDown:v,handleCurrMinutesOnKeyDown:F,handleCurrMeridiemOnKeyDown:Y,handlePickerIconKeyDown:L}),[v,Y,F,L])},Jo=()=>{const e=Xo(),t=Bo(),n=zo({currentDisplayedTimeWheelLogic:e});return(0,r.useMemo)(()=>({...e,...t,...n}),[e,t,n])},Gt=({children:e})=>{const t=Jo();return(0,l.jsx)(ke.Provider,{value:t,children:e})},Zo=()=>{const{showTimePicker:e,handleMenuWrapperKeyDown:t}=(0,r.useContext)(ke),{isControllerOnly:n}=(0,r.useContext)(G);return(0,l.jsxs)(l.Fragment,{children:[n?null:(0,l.jsx)(Uo,{}),n||e?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{onKeyDown:t,children:(0,l.jsx)(Yo,{})})}):null]})},Qo=()=>(0,l.jsx)(Gt,{children:(0,l.jsx)(Zo,{})}),qo=()=>{const e=Ro(),{showCalendarWithTimeWheel:t,isControllerOnly:n,handleMenuWrapperKeyDown:o}=e;return(0,l.jsxs)(ct.Provider,{value:e,children:[n?null:(0,l.jsx)(ao,{}),n||t?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{onKeyDown:o,children:(0,l.jsx)(Io,{})})}):null]})},ea=()=>(0,l.jsx)(Kt,{children:(0,l.jsx)(Gt,{children:(0,l.jsx)(qo,{})})}),ta=()=>{const{hideDatePicker:e,hideTimePicker:t,hideDateTimePicker:n,isControllerOnly:o,props:{hasError:a}}=r.useContext(G);return(0,l.jsxs)(ur,{hasError:a,isControllerOnly:o,children:[!e&&t&&n?(0,l.jsx)($o,{}):null,e&&!t&&n?(0,l.jsx)(Qo,{}):null,e&&t&&!n?(0,l.jsx)(ea,{}):null]})},na=/^[0-9]+$/,ra=e=>{if(e==="")return!1;const t=na.test(e);return e.length>2||e==="00"||!t||Number.parseInt(e,10)>12},oa=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:a,disabled:s,applyAriaDisabled:i,placeholder:c,ariaCurrentValueForInputs:d,contextRef:u,autoFocusHourInput:h,isFocused:g,getProps:p,tabIndex:m,readOnly:f})=>{const E=(0,r.useCallback)(y=>{if(f||i||s||ra(y.target.value)){y.preventDefault();return}e(y)},[i,s,e,f]);return(0,l.jsx)(ir,{autoFocus:h,onChange:E,onBlur:t,onFocus:n,onKeyDown:o,value:a,innerRef:y=>{u.current=y,g&&y?.focus?.()},tabIndex:m,placeholder:c,"data-testid":K.TIME_INPUTS.HOUR,"aria-label":`hours input field ${d}`,disabled:s,"aria-disabled":i,getOwnerProps:p,readOnly:f})}),aa=/^[0-9]+$/,sa=e=>{if(e==="")return!1;const t=aa.test(e);return e.length>2||!t||Number.parseInt(e,10)>60},ia=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:a,disabled:s,applyAriaDisabled:i,placeholder:c,ariaCurrentValueForInputs:d,contextRef:u,isFocused:h,getProps:g,tabIndex:p,readOnly:m})=>{const f=(0,r.useCallback)(E=>{if(m||i||s||sa(E?.target?.value)){E.preventDefault();return}e(E)},[i,s,e,m]);return(0,l.jsx)(lr,{onChange:f,onBlur:t,onFocus:n,onKeyDown:o,value:a,innerRef:E=>{u.current=E,h&&E?.focus?.()},tabIndex:p,"data-testid":K.TIME_INPUTS.MINUTE,placeholder:c,"aria-label":`minutes input field ${d}`,disabled:s,"aria-disabled":i,getOwnerProps:g,readOnly:m})}),la=["a","A","p","P"],ca=["m","M"],da=e=>{if(e==="")return!1;const[t,n]=e.split(""),o=e.length<1&&!t||la.includes(t),a=!n||ca.includes(n);return e.length>2||!o||!a},ua=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:a,disabled:s,applyAriaDisabled:i,placeholder:c,ariaCurrentValueForInputs:d,contextRef:u,isFocused:h,getProps:g,tabIndex:p,readOnly:m})=>{const f=(0,r.useCallback)(E=>{if(m||i||s||da(E?.target?.value)){E.preventDefault();return}e(E)},[i,s,e,m]);return(0,l.jsx)(cr,{onChange:f,onBlur:t,onFocus:n,onKeyDown:o,value:a,innerRef:E=>{u.current=E,h&&E?.focus?.()},tabIndex:p,"data-testid":K.TIME_INPUTS.MERIDIEM,placeholder:c,"aria-label":`meridiem input field ${d}`,disabled:s,"aria-disabled":i,getOwnerProps:g,readOnly:m})}),ma=()=>{const{autoFocusHourInput:e,disabled:t,applyAriaDisabled:n,onHoursChange:o,onMinutesChange:a,onMeridiemChange:s,onHoursBlur:i,onMinutesBlur:c,onMeridiemBlur:d,onHoursFocus:u,onMeridiemFocus:h,onMinutesFocus:g,onHoursKeyDown:p,onMinutesKeyDown:m,onMeridiemKeyDown:f}=Vt(),{hours:E,minutes:y,meridiem:C,hourInputRef:M,minutesInputRef:R,meridiemInputRef:P,ariaCurrentValueForInputs:I,latestInteractionRegion:b,currFocusDescriber:A,getProps:_,props:{tabIndex:L,readOnly:v}}=(0,r.useContext)(G);return(0,l.jsxs)(Ce.Ay,{cols:[Ie.smallInputWidth,Ie.separatorWidth,Ie.smallInputWidth,Ie.separatorWidth,Ie.smallInputWidth],children:[(0,l.jsx)($e,{children:(0,l.jsx)(oa,{value:E,onChange:o,onBlur:i,onFocus:u,onKeyDown:p,contextRef:M,tabIndex:L,placeholder:"HH",ariaCurrentValueForInputs:I,autoFocusHourInput:e,disabled:t,"aria-disabled":n,applyAriaDisabled:n,isFocused:b==="time-inputs"&&A==="hour-input",getProps:_,readOnly:v})}),(0,l.jsx)(rr,{alignItems:"center",children:":"}),(0,l.jsx)($e,{children:(0,l.jsx)(ia,{value:y,onChange:a,onBlur:c,onFocus:g,onKeyDown:m,contextRef:R,tabIndex:L,placeholder:"MM",ariaCurrentValueForInputs:I,disabled:t,"aria-disabled":n,applyAriaDisabled:n,isFocused:b==="time-inputs"&&A==="minute-input",getProps:_,readOnly:v})}),(0,l.jsx)(lt,{children:" "}),(0,l.jsx)($e,{children:(0,l.jsx)(ua,{value:C,onChange:s,onBlur:d,onFocus:h,onKeyDown:f,contextRef:P,tabIndex:L,placeholder:"AM",ariaCurrentValueForInputs:I,disabled:t,"aria-disabled":n,applyAriaDisabled:n,isFocused:b==="time-inputs"&&A==="meridiem-input",getProps:_,readOnly:v})})]})},pa=()=>{const{props:{hasError:e,disabled:t,readOnly:n,applyAriaDisabled:o},getProps:a,hideDate:s,hideTime:i,withAnyPicker:c,withAnyRightController:d,shouldPreserveClearableSpace:u,isControllerOnly:h,globalAttrs:g,xstyledAttrs:p,onGlobalKeyDown:m,handleComponentBlurs:f}=(0,r.useContext)(G),E={justPicker:s&&i,withAnyPicker:c,hasError:e,isControllerOnly:h},y=[];s||y.push("auto"),i||y.push("auto"),d&&y.push("auto");const C=[];u&&C.push("28px"),c&&C.push("auto");const M=s&&i;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(dr,{cols:y,gutter:"xxs",pr:d?"0px":"2px",onKeyDown:m,disabled:t,onBlur:f,"data-testid":K.CONTAINER,getOwnerProps:a,onlyPicker:M,readOnlyStyles:n||o,...E,...(0,tr.A)(g,"tabIndex","autoFocus"),...p,children:[s?null:(0,l.jsx)(br,{}),i?null:(0,l.jsx)(ma,{}),d?(0,l.jsxs)(Ce.Ay,{cols:C,children:[u?(0,l.jsx)(hr,{}):null,c?(0,l.jsx)(ta,{}):null]}):null]})})},Mt=e=>{const t=qn(e);return(0,l.jsx)(G.Provider,{value:t,children:(0,l.jsx)(pa,{})})};Mt.displayName=q;const ha=(0,It.A)(Mt);ha.propTypes=bn}}]);