@tylertech/forge 3.0.0-next.19 → 3.0.0-next.20

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 (705) hide show
  1. package/custom-elements.json +33314 -31340
  2. package/dist/esm/accordion/index.js +1 -1
  3. package/dist/esm/app-bar/app-bar/index.js +1 -1
  4. package/dist/esm/app-bar/help-button/index.js +1 -1
  5. package/dist/esm/app-bar/index.js +1 -1
  6. package/dist/esm/app-bar/menu-button/index.js +1 -1
  7. package/dist/esm/app-bar/notification-button/index.js +1 -1
  8. package/dist/esm/app-bar/profile-button/index.js +1 -1
  9. package/dist/esm/app-bar/search/index.js +1 -1
  10. package/dist/esm/autocomplete/index.js +1 -1
  11. package/dist/esm/avatar/index.js +1 -1
  12. package/dist/esm/backdrop/index.js +1 -1
  13. package/dist/esm/badge/index.js +1 -1
  14. package/dist/esm/banner/index.js +1 -1
  15. package/dist/esm/bottom-sheet/index.js +1 -1
  16. package/dist/esm/busy-indicator/index.js +1 -1
  17. package/dist/esm/button/index.js +1 -1
  18. package/dist/esm/button-area/index.js +1 -1
  19. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  20. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  21. package/dist/esm/button-toggle/index.js +1 -1
  22. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  23. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  24. package/dist/esm/calendar/index.js +1 -1
  25. package/dist/esm/card/index.js +1 -1
  26. package/dist/esm/checkbox/index.js +1 -1
  27. package/dist/esm/chip-field/index.js +1 -1
  28. package/dist/esm/chips/chip/index.js +1 -1
  29. package/dist/esm/chips/chip-set/index.js +1 -1
  30. package/dist/esm/chips/index.js +1 -1
  31. package/dist/esm/chunks/{chunk.WJ26N3FC.js → chunk.22C7GQLX.js} +2 -2
  32. package/dist/esm/chunks/{chunk.CPD4RUF2.js → chunk.24MZM3AY.js} +2 -2
  33. package/dist/esm/chunks/{chunk.O6WN2UP6.js → chunk.2537XOFQ.js} +2 -2
  34. package/dist/esm/chunks/{chunk.KZMXTOLO.js → chunk.2AM2BKEO.js} +2 -2
  35. package/dist/esm/chunks/chunk.2N5KNNQX.js +7 -0
  36. package/dist/esm/chunks/chunk.2N5KNNQX.js.map +7 -0
  37. package/dist/esm/chunks/chunk.2W276VOR.js +7 -0
  38. package/dist/esm/chunks/chunk.2W276VOR.js.map +7 -0
  39. package/dist/esm/chunks/{chunk.KD4DVSJR.js → chunk.2WRAXA3H.js} +2 -2
  40. package/dist/esm/chunks/{chunk.ZYYPOLIG.js → chunk.2XPAYTK4.js} +2 -2
  41. package/dist/esm/chunks/chunk.35MHQH7Z.js +7 -0
  42. package/dist/esm/chunks/chunk.35MHQH7Z.js.map +7 -0
  43. package/dist/esm/chunks/chunk.3L77JY5H.js +7 -0
  44. package/dist/esm/chunks/chunk.3TIBP6QT.js +7 -0
  45. package/dist/esm/chunks/chunk.3TIBP6QT.js.map +7 -0
  46. package/dist/esm/chunks/{chunk.W2W3NTFC.js → chunk.3U222LE4.js} +2 -2
  47. package/dist/esm/chunks/{chunk.W2W3NTFC.js.map → chunk.3U222LE4.js.map} +2 -2
  48. package/dist/esm/chunks/{chunk.JPOTN7LL.js → chunk.45PPQY45.js} +2 -2
  49. package/dist/esm/chunks/{chunk.JPOTN7LL.js.map → chunk.45PPQY45.js.map} +1 -1
  50. package/dist/esm/chunks/{chunk.MBXBM6UI.js → chunk.47U6GVGZ.js} +2 -2
  51. package/dist/esm/chunks/chunk.4AEQ7KVU.js +7 -0
  52. package/dist/esm/chunks/chunk.4AEQ7KVU.js.map +7 -0
  53. package/dist/esm/chunks/{chunk.KWP42KR7.js → chunk.4NABD6XG.js} +2 -2
  54. package/dist/esm/chunks/{chunk.KWP42KR7.js.map → chunk.4NABD6XG.js.map} +2 -2
  55. package/dist/esm/chunks/{chunk.WKLDPPHS.js → chunk.4UU6PWR2.js} +2 -2
  56. package/dist/esm/chunks/{chunk.WKLDPPHS.js.map → chunk.4UU6PWR2.js.map} +1 -1
  57. package/dist/esm/chunks/{chunk.UYAP5GFT.js → chunk.5A34DJLZ.js} +2 -2
  58. package/dist/esm/chunks/{chunk.GAHE4QVB.js → chunk.5S7XNYRQ.js} +2 -2
  59. package/dist/esm/chunks/chunk.66YURKP2.js +7 -0
  60. package/dist/esm/chunks/chunk.66YURKP2.js.map +7 -0
  61. package/dist/esm/chunks/chunk.6GSVB5NB.js +7 -0
  62. package/dist/esm/chunks/chunk.6GSVB5NB.js.map +7 -0
  63. package/dist/esm/chunks/{chunk.DOAQODLZ.js → chunk.6XLTVIUD.js} +2 -2
  64. package/dist/esm/chunks/{chunk.4YKLCBP2.js → chunk.7IJUN75W.js} +2 -2
  65. package/dist/esm/chunks/chunk.7UBIT4NP.js +7 -0
  66. package/dist/esm/chunks/chunk.7UBIT4NP.js.map +7 -0
  67. package/dist/esm/chunks/{chunk.66RZ2CUB.js → chunk.A4UH52SA.js} +2 -2
  68. package/dist/esm/chunks/chunk.AFJ7QEVI.js +7 -0
  69. package/dist/esm/chunks/chunk.AFJ7QEVI.js.map +7 -0
  70. package/dist/esm/chunks/{chunk.KIQZLNDG.js → chunk.AN2E2SSN.js} +2 -2
  71. package/dist/esm/chunks/{chunk.XH63INIK.js → chunk.AOSBUJWW.js} +2 -2
  72. package/dist/esm/chunks/chunk.BETICEYY.js +7 -0
  73. package/dist/esm/chunks/chunk.BETICEYY.js.map +7 -0
  74. package/dist/esm/chunks/chunk.BEUQVZKZ.js +7 -0
  75. package/dist/esm/chunks/chunk.BEUQVZKZ.js.map +7 -0
  76. package/dist/esm/chunks/chunk.BIQTNLIF.js +7 -0
  77. package/dist/esm/chunks/chunk.BIQTNLIF.js.map +7 -0
  78. package/dist/esm/chunks/{chunk.CLODJYSW.js → chunk.BSV27GU7.js} +2 -2
  79. package/dist/esm/chunks/{chunk.FOQH2SSU.js → chunk.CBLUXYH2.js} +2 -2
  80. package/dist/esm/chunks/{chunk.L7BSLZCB.js → chunk.CIUPY66Y.js} +2 -2
  81. package/dist/esm/chunks/chunk.CSCZRSDT.js +7 -0
  82. package/dist/esm/chunks/chunk.CSCZRSDT.js.map +7 -0
  83. package/dist/esm/chunks/{chunk.OUIWXKO2.js → chunk.CSOKFDFQ.js} +2 -2
  84. package/dist/esm/chunks/{chunk.4HZ6SNRV.js → chunk.CWBDPBYO.js} +2 -2
  85. package/dist/esm/chunks/{chunk.4HZ6SNRV.js.map → chunk.CWBDPBYO.js.map} +2 -2
  86. package/dist/esm/chunks/{chunk.E2FS4PJS.js → chunk.D7RH43XD.js} +2 -2
  87. package/dist/esm/chunks/{chunk.E2FS4PJS.js.map → chunk.D7RH43XD.js.map} +2 -2
  88. package/dist/esm/chunks/{chunk.HZUQXCOQ.js → chunk.DCCFF327.js} +2 -2
  89. package/dist/esm/chunks/{chunk.HZUQXCOQ.js.map → chunk.DCCFF327.js.map} +2 -2
  90. package/dist/esm/chunks/{chunk.YLJTJKN4.js → chunk.EO3HELQ2.js} +2 -2
  91. package/dist/esm/chunks/{chunk.YGXXWF52.js → chunk.FB4MXEIW.js} +2 -2
  92. package/dist/esm/chunks/{chunk.YGXXWF52.js.map → chunk.FB4MXEIW.js.map} +2 -2
  93. package/dist/esm/chunks/{chunk.RKG66YKS.js → chunk.FBDRM4YN.js} +2 -2
  94. package/dist/esm/chunks/{chunk.GAQ3POUT.js → chunk.FOSKVNVV.js} +2 -2
  95. package/dist/esm/chunks/{chunk.Z7JF5PPO.js → chunk.FRTSXX33.js} +2 -2
  96. package/dist/esm/chunks/{chunk.253H47GA.js → chunk.G2HRYIIZ.js} +2 -2
  97. package/dist/esm/chunks/chunk.G3GTO5ZC.js +7 -0
  98. package/dist/esm/chunks/chunk.G3GTO5ZC.js.map +7 -0
  99. package/dist/esm/chunks/{chunk.D7L2IMHJ.js → chunk.GA6AO6FJ.js} +2 -2
  100. package/dist/esm/chunks/{chunk.YOKBWEXF.js → chunk.GBGGUYTE.js} +2 -2
  101. package/dist/esm/chunks/{chunk.CISGGM56.js → chunk.GTKYO6VB.js} +2 -2
  102. package/dist/esm/chunks/{chunk.STIZCKQA.js → chunk.HBAC6E7O.js} +2 -2
  103. package/dist/esm/chunks/{chunk.WM6ZUVDR.js → chunk.IM36A2ZI.js} +2 -2
  104. package/dist/esm/chunks/{chunk.YHIHHGMQ.js → chunk.IWVAI6XM.js} +2 -2
  105. package/dist/esm/chunks/chunk.IZ63EJ32.js +7 -0
  106. package/dist/esm/chunks/{chunk.VN7JOJVU.js.map → chunk.IZ63EJ32.js.map} +1 -1
  107. package/dist/esm/chunks/{chunk.J5MWS2KZ.js → chunk.IZRURH7C.js} +2 -2
  108. package/dist/esm/chunks/chunk.JCEKCW4B.js +7 -0
  109. package/dist/esm/chunks/chunk.JCEKCW4B.js.map +7 -0
  110. package/dist/esm/chunks/{chunk.E7TIN4JS.js → chunk.JLSFTWPE.js} +2 -2
  111. package/dist/esm/chunks/{chunk.HP4333ZN.js → chunk.JSTCCUKZ.js} +2 -2
  112. package/dist/esm/chunks/chunk.JVWJHSPM.js +7 -0
  113. package/dist/esm/chunks/{chunk.JUXSSZ3B.js.map → chunk.JVWJHSPM.js.map} +1 -1
  114. package/dist/esm/chunks/chunk.KDUH2DUE.js +7 -0
  115. package/dist/esm/chunks/{chunk.54DNA2QP.js → chunk.KEFJZO5K.js} +2 -2
  116. package/dist/esm/chunks/{chunk.54DNA2QP.js.map → chunk.KEFJZO5K.js.map} +1 -1
  117. package/dist/esm/chunks/chunk.KRKKMTXR.js +7 -0
  118. package/dist/esm/chunks/chunk.KRKKMTXR.js.map +7 -0
  119. package/dist/esm/chunks/chunk.LGEZI5SZ.js +7 -0
  120. package/dist/esm/chunks/chunk.LGEZI5SZ.js.map +7 -0
  121. package/dist/esm/chunks/{chunk.M7RYU4HQ.js → chunk.LKA5HQQY.js} +2 -2
  122. package/dist/esm/chunks/{chunk.IC4DLKE3.js → chunk.MC3UAHWS.js} +2 -2
  123. package/dist/esm/chunks/chunk.MCR34SZQ.js +7 -0
  124. package/dist/esm/chunks/{chunk.5NHGVUVR.js.map → chunk.MCR34SZQ.js.map} +1 -1
  125. package/dist/esm/chunks/{chunk.B2RYZJGJ.js → chunk.MDDX4MJU.js} +2 -2
  126. package/dist/esm/chunks/{chunk.B2RYZJGJ.js.map → chunk.MDDX4MJU.js.map} +3 -3
  127. package/dist/esm/chunks/chunk.MPUP6QAP.js +7 -0
  128. package/dist/esm/chunks/chunk.MZRAL4MY.js +7 -0
  129. package/dist/esm/chunks/chunk.MZRAL4MY.js.map +7 -0
  130. package/dist/esm/chunks/{chunk.KPNGLSCU.js → chunk.N632SJ7X.js} +2 -2
  131. package/dist/esm/chunks/{chunk.WJLHVUHN.js → chunk.O56VP4OZ.js} +2 -2
  132. package/dist/esm/chunks/{chunk.ULZJYWM2.js → chunk.OFXSMOV6.js} +2 -2
  133. package/dist/esm/chunks/chunk.OT4AIOMN.js +7 -0
  134. package/dist/esm/chunks/chunk.OT4AIOMN.js.map +7 -0
  135. package/dist/esm/chunks/{chunk.SWDOKJUF.js → chunk.OY3TG55O.js} +2 -2
  136. package/dist/esm/chunks/chunk.PDDBNHVU.js +7 -0
  137. package/dist/esm/chunks/chunk.PDDBNHVU.js.map +7 -0
  138. package/dist/esm/chunks/{chunk.IO3A5OM6.js → chunk.PXRGQHWR.js} +2 -2
  139. package/dist/esm/chunks/chunk.QCRO5NSG.js +7 -0
  140. package/dist/esm/chunks/chunk.QCRO5NSG.js.map +7 -0
  141. package/dist/esm/chunks/chunk.QKYCMDLB.js +7 -0
  142. package/dist/esm/chunks/{chunk.WINWKU4K.js → chunk.QUWEAFGI.js} +2 -2
  143. package/dist/esm/chunks/{chunk.LNMQ5A25.js → chunk.R3AWIPPK.js} +2 -2
  144. package/dist/esm/chunks/{chunk.KYACLC66.js → chunk.R66CYS27.js} +2 -2
  145. package/dist/esm/chunks/chunk.R6VPRRTT.js +7 -0
  146. package/dist/esm/chunks/{chunk.4EBFMRTJ.js.map → chunk.R6VPRRTT.js.map} +1 -1
  147. package/dist/esm/chunks/{chunk.V7HN24VV.js → chunk.RFCIELJM.js} +2 -2
  148. package/dist/esm/chunks/chunk.RLQB7224.js +7 -0
  149. package/dist/esm/chunks/{chunk.EWT2PBEP.js.map → chunk.RLQB7224.js.map} +2 -2
  150. package/dist/esm/chunks/chunk.ROMRJIFR.js +7 -0
  151. package/dist/esm/chunks/chunk.ROMRJIFR.js.map +7 -0
  152. package/dist/esm/chunks/chunk.SB2LOK2R.js +7 -0
  153. package/dist/esm/chunks/{chunk.4SP42UG3.js.map → chunk.SB2LOK2R.js.map} +3 -3
  154. package/dist/esm/chunks/chunk.SHBDQPPH.js +7 -0
  155. package/dist/esm/chunks/chunk.SHBDQPPH.js.map +7 -0
  156. package/dist/esm/chunks/{chunk.LFLIYBAB.js → chunk.SIGRWU4V.js} +2 -2
  157. package/dist/esm/chunks/{chunk.LFLIYBAB.js.map → chunk.SIGRWU4V.js.map} +2 -2
  158. package/dist/esm/chunks/chunk.SKBOB2BD.js +7 -0
  159. package/dist/esm/chunks/chunk.SKBOB2BD.js.map +7 -0
  160. package/dist/esm/chunks/chunk.SOKORSUV.js +7 -0
  161. package/dist/esm/chunks/{chunk.GDKJ4RZX.js → chunk.STSAE2XP.js} +2 -2
  162. package/dist/esm/chunks/{chunk.CJUX3PL5.js → chunk.SWKKDBO6.js} +2 -2
  163. package/dist/esm/chunks/chunk.SYKZ74SL.js +7 -0
  164. package/dist/esm/chunks/chunk.SYKZ74SL.js.map +7 -0
  165. package/dist/esm/chunks/chunk.TPNZYEC7.js +12 -0
  166. package/dist/esm/chunks/chunk.TPNZYEC7.js.map +7 -0
  167. package/dist/esm/chunks/{chunk.QQUSMJIM.js → chunk.UEYPCCFG.js} +2 -2
  168. package/dist/esm/chunks/chunk.UKVC23E5.js +7 -0
  169. package/dist/esm/chunks/chunk.UKVC23E5.js.map +7 -0
  170. package/dist/esm/chunks/chunk.UOD3A7M4.js +7 -0
  171. package/dist/esm/chunks/{chunk.OXGCNOUY.js.map → chunk.UOD3A7M4.js.map} +1 -1
  172. package/dist/esm/chunks/{chunk.UVXKHQQZ.js → chunk.UQQQSJVM.js} +2 -2
  173. package/dist/esm/chunks/{chunk.UVXKHQQZ.js.map → chunk.UQQQSJVM.js.map} +2 -2
  174. package/dist/esm/chunks/chunk.USO2XVOI.js +7 -0
  175. package/dist/esm/chunks/{chunk.Y7ZZ7HDC.js.map → chunk.USO2XVOI.js.map} +1 -1
  176. package/dist/esm/chunks/chunk.USQEIRST.js +7 -0
  177. package/dist/esm/chunks/chunk.USQEIRST.js.map +7 -0
  178. package/dist/esm/chunks/chunk.V3X77TCO.js +7 -0
  179. package/dist/esm/chunks/chunk.V3X77TCO.js.map +7 -0
  180. package/dist/esm/chunks/{chunk.F3FWXBDS.js → chunk.VBJ4WUVH.js} +2 -2
  181. package/dist/esm/chunks/chunk.VOTT5COZ.js +7 -0
  182. package/dist/esm/chunks/chunk.VOTT5COZ.js.map +7 -0
  183. package/dist/esm/chunks/{chunk.AQOLBID6.js → chunk.VZ2XONDI.js} +2 -2
  184. package/dist/esm/chunks/{chunk.AQOLBID6.js.map → chunk.VZ2XONDI.js.map} +2 -2
  185. package/dist/esm/chunks/chunk.WAMFFIMP.js +7 -0
  186. package/dist/esm/chunks/chunk.WAMFFIMP.js.map +7 -0
  187. package/dist/esm/chunks/{chunk.U7S4DJTU.js → chunk.WBCQTZPS.js} +2 -2
  188. package/dist/esm/chunks/chunk.WBI34ZVP.js +7 -0
  189. package/dist/esm/chunks/chunk.WPVGFQNY.js +7 -0
  190. package/dist/esm/chunks/{chunk.RN634NOB.js.map → chunk.WPVGFQNY.js.map} +1 -1
  191. package/dist/esm/chunks/{chunk.SZETPZGY.js → chunk.WTUXAH7Z.js} +2 -2
  192. package/dist/esm/chunks/chunk.XAZ6EDIZ.js +7 -0
  193. package/dist/esm/chunks/{chunk.QIMAHW7V.js.map → chunk.XAZ6EDIZ.js.map} +1 -1
  194. package/dist/esm/chunks/{chunk.2F2N4WBN.js → chunk.XCI7O2KJ.js} +2 -2
  195. package/dist/esm/chunks/{chunk.2F2N4WBN.js.map → chunk.XCI7O2KJ.js.map} +2 -2
  196. package/dist/esm/chunks/chunk.XNJROSDZ.js +7 -0
  197. package/dist/esm/chunks/chunk.XNJROSDZ.js.map +7 -0
  198. package/dist/esm/chunks/chunk.XU3YSZPA.js +7 -0
  199. package/dist/esm/chunks/chunk.XYBVD3IE.js +7 -0
  200. package/dist/esm/chunks/chunk.XYBVD3IE.js.map +7 -0
  201. package/dist/esm/chunks/chunk.YNXWVL4B.js +7 -0
  202. package/dist/esm/chunks/chunk.YNXWVL4B.js.map +7 -0
  203. package/dist/esm/chunks/{chunk.5JSCGQ7H.js → chunk.YS5JZHJ6.js} +2 -2
  204. package/dist/esm/chunks/{chunk.QXZ3AAXD.js → chunk.YXHMD73U.js} +2 -2
  205. package/dist/esm/chunks/{chunk.6DPDC4ON.js → chunk.Z6GRWPPN.js} +2 -2
  206. package/dist/esm/chunks/chunk.ZAREP2QH.js +7 -0
  207. package/dist/esm/chunks/chunk.ZAREP2QH.js.map +7 -0
  208. package/dist/esm/chunks/{chunk.2K3T63I2.js → chunk.ZIGVO6FN.js} +2 -2
  209. package/dist/esm/chunks/{chunk.2K3T63I2.js.map → chunk.ZIGVO6FN.js.map} +2 -2
  210. package/dist/esm/chunks/{chunk.4JEBLMI3.js → chunk.ZLNI2M3F.js} +2 -2
  211. package/dist/esm/chunks/chunk.ZPXMKY72.js +7 -0
  212. package/dist/esm/chunks/chunk.ZPXMKY72.js.map +7 -0
  213. package/dist/esm/chunks/chunk.ZYKP23JP.js +7 -0
  214. package/dist/esm/chunks/chunk.ZYKP23JP.js.map +7 -0
  215. package/dist/esm/circular-progress/index.js +1 -1
  216. package/dist/esm/color-picker/index.js +1 -1
  217. package/dist/esm/core/base/index.js +1 -1
  218. package/dist/esm/core/delegates/index.js +1 -1
  219. package/dist/esm/core/index.js +1 -1
  220. package/dist/esm/core/utils/index.js +1 -1
  221. package/dist/esm/date-picker/index.js +1 -1
  222. package/dist/esm/date-range-picker/index.js +1 -1
  223. package/dist/esm/deprecated/button/index.js +1 -1
  224. package/dist/esm/deprecated/index.js +1 -1
  225. package/dist/esm/dialog/index.js +1 -1
  226. package/dist/esm/divider/index.js +1 -1
  227. package/dist/esm/drawer/base/index.js +1 -1
  228. package/dist/esm/drawer/drawer/index.js +1 -1
  229. package/dist/esm/drawer/index.js +1 -1
  230. package/dist/esm/drawer/mini-drawer/index.js +1 -1
  231. package/dist/esm/drawer/modal-drawer/index.js +1 -1
  232. package/dist/esm/expansion-panel/index.js +1 -1
  233. package/dist/esm/field-next/base/index.js +7 -0
  234. package/dist/esm/field-next/index.js +7 -0
  235. package/dist/esm/file-picker/index.js +1 -1
  236. package/dist/esm/floating-action-button/index.js +1 -1
  237. package/dist/esm/floating-label/index.js +1 -1
  238. package/dist/esm/focus-indicator/index.js +1 -1
  239. package/dist/esm/icon/index.js +1 -1
  240. package/dist/esm/icon-button/index.js +1 -1
  241. package/dist/esm/index.js +1 -1
  242. package/dist/esm/inline-message/index.js +1 -1
  243. package/dist/esm/keyboard-shortcut/index.js +1 -1
  244. package/dist/esm/label/index.js +1 -1
  245. package/dist/esm/label-value/index.js +1 -1
  246. package/dist/esm/linear-progress/index.js +1 -1
  247. package/dist/esm/list/index.js +1 -1
  248. package/dist/esm/list/list/index.js +1 -1
  249. package/dist/esm/list/list-item/index.js +1 -1
  250. package/dist/esm/list-dropdown/index.js +1 -1
  251. package/dist/esm/menu/index.js +1 -1
  252. package/dist/esm/open-icon/index.js +1 -1
  253. package/dist/esm/overlay/index.js +1 -1
  254. package/dist/esm/page-state/index.js +1 -1
  255. package/dist/esm/paginator/index.js +1 -1
  256. package/dist/esm/popover/index.js +1 -1
  257. package/dist/esm/popup/index.js +1 -1
  258. package/dist/esm/profile-card/index.js +1 -1
  259. package/dist/esm/quantity-field/index.js +1 -1
  260. package/dist/esm/radio/index.js +1 -1
  261. package/dist/esm/radio/radio/index.js +1 -1
  262. package/dist/esm/radio/radio-group/index.js +1 -1
  263. package/dist/esm/ripple/index.js +1 -1
  264. package/dist/esm/scaffold/index.js +1 -1
  265. package/dist/esm/select/core/index.js +1 -1
  266. package/dist/esm/select/index.js +1 -1
  267. package/dist/esm/select/option/index.js +1 -1
  268. package/dist/esm/select/option-group/index.js +1 -1
  269. package/dist/esm/select/select/index.js +1 -1
  270. package/dist/esm/select/select-dropdown/index.js +1 -1
  271. package/dist/esm/skeleton/index.js +1 -1
  272. package/dist/esm/slider/index.js +1 -1
  273. package/dist/esm/split-button/index.js +1 -1
  274. package/dist/esm/split-view/index.js +1 -1
  275. package/dist/esm/split-view/split-view/index.js +1 -1
  276. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  277. package/dist/esm/stack/index.js +1 -1
  278. package/dist/esm/state-layer/index.js +1 -1
  279. package/dist/esm/stepper/index.js +1 -1
  280. package/dist/esm/stepper/step/index.js +1 -1
  281. package/dist/esm/stepper/stepper/index.js +1 -1
  282. package/dist/esm/switch/index.js +1 -1
  283. package/dist/esm/table/index.js +1 -1
  284. package/dist/esm/tabs/index.js +1 -1
  285. package/dist/esm/tabs/tab/index.js +1 -1
  286. package/dist/esm/tabs/tab-bar/index.js +1 -1
  287. package/dist/esm/text-field/index.js +1 -1
  288. package/dist/esm/time-picker/index.js +1 -1
  289. package/dist/esm/toast/index.js +1 -1
  290. package/dist/esm/toolbar/index.js +1 -1
  291. package/dist/esm/tooltip/index.js +1 -1
  292. package/dist/esm/view-switcher/index.js +1 -1
  293. package/dist/esm/view-switcher/view/index.js +1 -1
  294. package/dist/forge-dark.css +1 -1
  295. package/dist/forge.css +1 -1
  296. package/dist/typography/forge-typography.css +1 -1
  297. package/esm/autocomplete/autocomplete-adapter.js +6 -9
  298. package/esm/autocomplete/autocomplete.d.ts +8 -2
  299. package/esm/badge/badge.js +1 -1
  300. package/esm/button-area/button-area-adapter.d.ts +20 -21
  301. package/esm/button-area/button-area-adapter.js +32 -74
  302. package/esm/button-area/button-area-constants.d.ts +3 -1
  303. package/esm/button-area/button-area-constants.js +5 -3
  304. package/esm/button-area/button-area-foundation.d.ts +2 -0
  305. package/esm/button-area/button-area-foundation.js +31 -11
  306. package/esm/button-area/button-area.d.ts +19 -2
  307. package/esm/button-area/button-area.js +25 -6
  308. package/esm/calendar/calendar-foundation.js +14 -6
  309. package/esm/calendar/calendar.d.ts +1 -0
  310. package/esm/card/card.js +1 -1
  311. package/esm/checkbox/checkbox.js +1 -1
  312. package/esm/chip-field/chip-field-foundation.js +1 -1
  313. package/esm/chips/chip/chip-adapter.d.ts +45 -50
  314. package/esm/chips/chip/chip-adapter.js +150 -129
  315. package/esm/chips/chip/chip-constants.d.ts +28 -20
  316. package/esm/chips/chip/chip-constants.js +14 -23
  317. package/esm/chips/chip/chip-foundation.d.ts +42 -34
  318. package/esm/chips/chip/chip-foundation.js +177 -171
  319. package/esm/chips/chip/chip.d.ts +106 -21
  320. package/esm/chips/chip/chip.js +142 -35
  321. package/esm/chips/chip-set/chip-set-constants.d.ts +9 -3
  322. package/esm/chips/chip-set/chip-set-constants.js +7 -8
  323. package/esm/chips/chip-set/chip-set.d.ts +46 -9
  324. package/esm/chips/chip-set/chip-set.js +128 -33
  325. package/esm/chips/chip-set/index.d.ts +0 -2
  326. package/esm/chips/chip-set/index.js +0 -2
  327. package/esm/constants.d.ts +8 -3
  328. package/esm/constants.js +8 -3
  329. package/esm/core/base/base-adapter.d.ts +2 -1
  330. package/esm/core/base/base-adapter.js +1 -0
  331. package/esm/core/utils/utils.d.ts +11 -0
  332. package/esm/core/utils/utils.js +35 -0
  333. package/esm/date-picker/base/base-date-picker-adapter.js +7 -12
  334. package/esm/date-picker/base/base-date-picker-foundation.js +6 -0
  335. package/esm/date-picker/base/base-date-picker-utils.js +1 -2
  336. package/esm/date-range-picker/date-range-picker-adapter.d.ts +1 -0
  337. package/esm/date-range-picker/date-range-picker-adapter.js +11 -1
  338. package/esm/date-range-picker/date-range-picker-component-delegate.d.ts +3 -3
  339. package/esm/date-range-picker/date-range-picker-component-delegate.js +2 -2
  340. package/esm/dialog/dialog-adapter.d.ts +2 -0
  341. package/esm/dialog/dialog-adapter.js +14 -0
  342. package/esm/dialog/dialog-foundation.js +1 -0
  343. package/esm/divider/divider-constants.d.ts +2 -2
  344. package/esm/divider/divider-constants.js +3 -3
  345. package/esm/divider/divider.d.ts +26 -5
  346. package/esm/divider/divider.js +42 -6
  347. package/esm/drawer/drawer/drawer.js +1 -1
  348. package/esm/drawer/mini-drawer/mini-drawer.js +1 -1
  349. package/esm/drawer/modal-drawer/modal-drawer.js +1 -1
  350. package/esm/expansion-panel/expansion-panel.js +1 -1
  351. package/esm/field-next/base/base-field-adapter.d.ts +27 -0
  352. package/esm/field-next/base/base-field-adapter.js +14 -0
  353. package/esm/field-next/base/base-field-constants.d.ts +56 -0
  354. package/esm/field-next/base/base-field-constants.js +36 -0
  355. package/esm/field-next/base/base-field-foundation.d.ts +79 -0
  356. package/esm/field-next/base/base-field-foundation.js +176 -0
  357. package/esm/field-next/base/base-field.d.ts +52 -0
  358. package/esm/field-next/base/base-field.js +116 -0
  359. package/esm/field-next/base/index.d.ts +9 -0
  360. package/esm/field-next/base/index.js +9 -0
  361. package/esm/field-next/field-adapter.d.ts +56 -0
  362. package/esm/field-next/field-adapter.js +132 -0
  363. package/esm/field-next/field-constants.d.ts +95 -0
  364. package/esm/field-next/field-constants.js +64 -0
  365. package/esm/field-next/field-foundation.d.ts +86 -0
  366. package/esm/field-next/field-foundation.js +221 -0
  367. package/esm/field-next/field.d.ts +205 -0
  368. package/esm/field-next/field.js +287 -0
  369. package/esm/field-next/index.d.ts +11 -0
  370. package/esm/field-next/index.js +15 -0
  371. package/esm/file-picker/file-picker-adapter.js +1 -1
  372. package/esm/file-picker/file-picker.d.ts +46 -2
  373. package/esm/file-picker/file-picker.js +48 -4
  374. package/esm/index.d.ts +1 -1
  375. package/esm/index.js +3 -3
  376. package/esm/label/label-constants.d.ts +9 -3
  377. package/esm/label/label-constants.js +5 -3
  378. package/esm/label/label-foundation.d.ts +7 -4
  379. package/esm/label/label-foundation.js +20 -10
  380. package/esm/label/label.d.ts +6 -4
  381. package/esm/label/label.js +11 -12
  382. package/esm/list/list/list-adapter.d.ts +1 -1
  383. package/esm/list/list/list-adapter.js +22 -9
  384. package/esm/list/list/list-constants.d.ts +3 -0
  385. package/esm/list/list/list-constants.js +5 -1
  386. package/esm/list/list/list-foundation.js +6 -0
  387. package/esm/list/list-item/list-item-constants.js +1 -1
  388. package/esm/list/list-item/list-item.d.ts +33 -38
  389. package/esm/list/list-item/list-item.js +34 -39
  390. package/esm/menu/menu-foundation.js +1 -0
  391. package/esm/menu/menu.d.ts +4 -1
  392. package/esm/page-state/page-state.d.ts +24 -1
  393. package/esm/page-state/page-state.js +26 -3
  394. package/esm/paginator/paginator-adapter.d.ts +6 -2
  395. package/esm/paginator/paginator-adapter.js +34 -54
  396. package/esm/paginator/paginator-constants.d.ts +1 -1
  397. package/esm/paginator/paginator-foundation.js +7 -17
  398. package/esm/popover/popover-constants.d.ts +2 -0
  399. package/esm/popover/popover-constants.js +3 -1
  400. package/esm/popover/popover-foundation.d.ts +5 -0
  401. package/esm/popover/popover-foundation.js +26 -1
  402. package/esm/popover/popover.d.ts +4 -0
  403. package/esm/popover/popover.js +9 -0
  404. package/esm/profile-card/profile-card.js +1 -1
  405. package/esm/radio/radio/radio.js +2 -2
  406. package/esm/radio/radio-group/radio-group-adapter.js +1 -1
  407. package/{styles/stack/_variables.scss → esm/radio/radio-group/radio-group-component-delegate.d.ts} +0 -1
  408. package/{styles/chips/chip-set/_variables.scss → esm/radio/radio-group/radio-group-component-delegate.js} +0 -1
  409. package/esm/ripple/forge-ripple.d.ts +1 -1
  410. package/esm/ripple/forge-ripple.js +1 -1
  411. package/esm/select/core/base-select.d.ts +4 -1
  412. package/esm/skeleton/skeleton.d.ts +32 -2
  413. package/esm/skeleton/skeleton.js +33 -3
  414. package/esm/slider/slider.js +1 -1
  415. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  416. package/esm/stack/stack-constants.d.ts +1 -0
  417. package/esm/stack/stack-constants.js +2 -1
  418. package/esm/stack/stack-foundation.d.ts +6 -1
  419. package/esm/stack/stack-foundation.js +12 -1
  420. package/esm/stack/stack.d.ts +37 -3
  421. package/esm/stack/stack.js +42 -4
  422. package/esm/switch/switch.js +1 -1
  423. package/esm/text-field/index.d.ts +2 -2
  424. package/esm/text-field/index.js +2 -2
  425. package/esm/text-field/text-field-adapter.d.ts +42 -25
  426. package/esm/text-field/text-field-adapter.js +125 -84
  427. package/esm/text-field/text-field-component-delegate.d.ts +11 -3
  428. package/esm/text-field/text-field-component-delegate.js +66 -36
  429. package/esm/text-field/text-field-constants.d.ts +19 -8
  430. package/esm/text-field/text-field-constants.js +21 -11
  431. package/esm/text-field/text-field-foundation.d.ts +28 -6
  432. package/esm/text-field/text-field-foundation.js +97 -4
  433. package/esm/text-field/text-field.d.ts +43 -5
  434. package/esm/text-field/text-field.js +73 -9
  435. package/esm/time-picker/time-picker-adapter.js +8 -10
  436. package/esm/toolbar/toolbar-constants.d.ts +5 -5
  437. package/esm/toolbar/toolbar-constants.js +9 -10
  438. package/esm/toolbar/toolbar.d.ts +35 -6
  439. package/esm/toolbar/toolbar.js +44 -26
  440. package/esm/tooltip/tooltip.js +1 -1
  441. package/package.json +2 -2
  442. package/{dist/esm/chunks/chunk.SKLCDWYQ.js → styles/avatar/index.scss} +1 -1
  443. package/styles/badge/_core.scss +1 -1
  444. package/styles/button/button.scss +1 -1
  445. package/styles/button-area/_core.scss +25 -0
  446. package/styles/button-area/_token-utils.scss +30 -0
  447. package/styles/button-area/button-area.scss +48 -3
  448. package/styles/{divider/_variables.scss → button-area/index.scss} +1 -2
  449. package/styles/card/_mixins.scss +1 -0
  450. package/styles/checkbox/_core.scss +1 -1
  451. package/styles/chips/chip/_core.scss +137 -0
  452. package/styles/chips/chip/_token-utils.scss +30 -0
  453. package/styles/chips/chip/chip.scss +259 -7
  454. package/styles/chips/chip/index.scss +6 -0
  455. package/styles/chips/chip-set/_core.scss +22 -0
  456. package/styles/chips/chip-set/_token-utils.scss +30 -0
  457. package/styles/chips/chip-set/chip-set.scss +27 -3
  458. package/styles/chips/chip-set/index.scss +6 -0
  459. package/styles/core/styles/tokens/_token-utils.scss +3 -2
  460. package/styles/core/styles/tokens/button-area/_tokens.scss +28 -0
  461. package/styles/core/styles/tokens/chips/chip/_tokens.scss +87 -0
  462. package/styles/core/styles/tokens/chips/chip-set/_tokens.scss +16 -0
  463. package/styles/core/styles/tokens/divider/_tokens.scss +20 -0
  464. package/styles/core/styles/tokens/field/_tokens.scss +148 -0
  465. package/styles/core/styles/tokens/file-picker/_tokens.scss +42 -0
  466. package/styles/core/styles/tokens/list/list-item/_tokens.scss +5 -12
  467. package/styles/core/styles/tokens/page-state/_tokens.scss +43 -0
  468. package/styles/core/styles/tokens/skeleton/_tokens.scss +55 -0
  469. package/styles/core/styles/tokens/stack/_tokens.scss +21 -0
  470. package/styles/core/styles/tokens/toolbar/_tokens.scss +41 -0
  471. package/styles/core/styles/tokens/typography/_scale.scss +1 -0
  472. package/styles/core/styles/tokens/typography/_tokens.label.scss +9 -2
  473. package/styles/divider/_core.scss +39 -0
  474. package/styles/divider/_token-utils.scss +30 -0
  475. package/styles/divider/divider.scss +16 -9
  476. package/styles/divider/index.scss +6 -0
  477. package/styles/drawer/drawer/drawer.scss +2 -0
  478. package/styles/drawer/mini-drawer/mini-drawer.scss +2 -0
  479. package/styles/drawer/modal-drawer/modal-drawer.scss +5 -0
  480. package/styles/expansion-panel/_mixins.scss +1 -0
  481. package/styles/field-next/_core.layout.scss +350 -0
  482. package/styles/field-next/_core.scss +212 -0
  483. package/styles/field-next/_core.shape.scss +25 -0
  484. package/styles/field-next/_core.slotted.scss +60 -0
  485. package/styles/field-next/_core.state.scss +198 -0
  486. package/styles/field-next/_core.variant.scss +225 -0
  487. package/styles/field-next/_token-utils.scss +30 -0
  488. package/styles/field-next/field.scss +770 -0
  489. package/styles/{product-icon/_variables.scss → field-next/index.scss} +2 -2
  490. package/styles/file-picker/_core.scss +85 -0
  491. package/styles/file-picker/_token-utils.scss +30 -0
  492. package/styles/file-picker/file-picker.scss +68 -3
  493. package/styles/file-picker/index.scss +6 -0
  494. package/styles/label/_core.scss +1 -1
  495. package/styles/list/list-item/_core.scss +4 -20
  496. package/styles/list/list-item/list-item.scss +0 -12
  497. package/styles/page-state/_core.scss +79 -0
  498. package/styles/page-state/_token-utils.scss +30 -0
  499. package/styles/page-state/index.scss +6 -0
  500. package/styles/page-state/page-state.scss +51 -3
  501. package/styles/profile-card/profile-card.scss +10 -10
  502. package/styles/radio/radio/_core.scss +1 -1
  503. package/styles/radio/radio-group/_core.scss +5 -0
  504. package/styles/radio/radio-group/index.scss +5 -0
  505. package/styles/radio/radio-group/radio-group.scss +5 -0
  506. package/styles/skeleton/_animations.scss +10 -0
  507. package/styles/skeleton/_core.scss +78 -0
  508. package/styles/skeleton/_token-utils.scss +30 -0
  509. package/styles/skeleton/index.scss +6 -0
  510. package/styles/skeleton/skeleton.scss +55 -4
  511. package/styles/slider/_core.scss +1 -1
  512. package/styles/stack/_core.scss +29 -0
  513. package/styles/stack/_token-utils.scss +30 -0
  514. package/styles/stack/stack.scss +38 -12
  515. package/styles/switch/_core.scss +1 -1
  516. package/styles/text-field/_core.scss +5 -12
  517. package/styles/text-field/index.scss +6 -0
  518. package/styles/text-field/text-field.scss +14 -5
  519. package/styles/theme/_theme-dark.scss +6 -3
  520. package/styles/toolbar/_core.scss +73 -0
  521. package/styles/toolbar/_token-utils.scss +30 -0
  522. package/styles/toolbar/index.scss +6 -0
  523. package/styles/toolbar/toolbar.scss +64 -17
  524. package/styles/tooltip/_core.scss +1 -0
  525. package/styles/utils/_mixins-container.scss +38 -0
  526. package/dist/esm/chunks/chunk.2AVJJJNS.js +0 -7
  527. package/dist/esm/chunks/chunk.2AVJJJNS.js.map +0 -7
  528. package/dist/esm/chunks/chunk.2UVBQKJI.js +0 -7
  529. package/dist/esm/chunks/chunk.2UVBQKJI.js.map +0 -7
  530. package/dist/esm/chunks/chunk.3WT7HPA7.js +0 -12
  531. package/dist/esm/chunks/chunk.3WT7HPA7.js.map +0 -7
  532. package/dist/esm/chunks/chunk.4EBFMRTJ.js +0 -7
  533. package/dist/esm/chunks/chunk.4SP42UG3.js +0 -7
  534. package/dist/esm/chunks/chunk.5BQT3E7Y.js +0 -7
  535. package/dist/esm/chunks/chunk.5BQT3E7Y.js.map +0 -7
  536. package/dist/esm/chunks/chunk.5NHGVUVR.js +0 -7
  537. package/dist/esm/chunks/chunk.5PNJOQDZ.js +0 -7
  538. package/dist/esm/chunks/chunk.5PNJOQDZ.js.map +0 -7
  539. package/dist/esm/chunks/chunk.6P4G73VL.js +0 -7
  540. package/dist/esm/chunks/chunk.6P4G73VL.js.map +0 -7
  541. package/dist/esm/chunks/chunk.7AE3ATT3.js +0 -7
  542. package/dist/esm/chunks/chunk.7AE3ATT3.js.map +0 -7
  543. package/dist/esm/chunks/chunk.AXBMJBED.js +0 -7
  544. package/dist/esm/chunks/chunk.DYBD4IRT.js +0 -7
  545. package/dist/esm/chunks/chunk.EWT2PBEP.js +0 -7
  546. package/dist/esm/chunks/chunk.F2327OUE.js +0 -7
  547. package/dist/esm/chunks/chunk.F2327OUE.js.map +0 -7
  548. package/dist/esm/chunks/chunk.FXDHZCID.js +0 -7
  549. package/dist/esm/chunks/chunk.FZC3WXSY.js +0 -7
  550. package/dist/esm/chunks/chunk.FZC3WXSY.js.map +0 -7
  551. package/dist/esm/chunks/chunk.GYGIU62J.js +0 -7
  552. package/dist/esm/chunks/chunk.GYGIU62J.js.map +0 -7
  553. package/dist/esm/chunks/chunk.IE42X2LV.js +0 -7
  554. package/dist/esm/chunks/chunk.IE42X2LV.js.map +0 -7
  555. package/dist/esm/chunks/chunk.JBQXD3FJ.js +0 -7
  556. package/dist/esm/chunks/chunk.JBQXD3FJ.js.map +0 -7
  557. package/dist/esm/chunks/chunk.JLDKNU5Q.js +0 -7
  558. package/dist/esm/chunks/chunk.JLDKNU5Q.js.map +0 -7
  559. package/dist/esm/chunks/chunk.JO6GPIMF.js +0 -7
  560. package/dist/esm/chunks/chunk.JO6GPIMF.js.map +0 -7
  561. package/dist/esm/chunks/chunk.JUXSSZ3B.js +0 -7
  562. package/dist/esm/chunks/chunk.LEN33O6V.js +0 -7
  563. package/dist/esm/chunks/chunk.LEN33O6V.js.map +0 -7
  564. package/dist/esm/chunks/chunk.N2DHFDXD.js +0 -7
  565. package/dist/esm/chunks/chunk.N2DHFDXD.js.map +0 -7
  566. package/dist/esm/chunks/chunk.NSKIEZWE.js +0 -7
  567. package/dist/esm/chunks/chunk.NY3N6KUZ.js +0 -7
  568. package/dist/esm/chunks/chunk.NY3N6KUZ.js.map +0 -7
  569. package/dist/esm/chunks/chunk.O5HBMTSZ.js +0 -7
  570. package/dist/esm/chunks/chunk.O5HBMTSZ.js.map +0 -7
  571. package/dist/esm/chunks/chunk.OJFSECZE.js +0 -7
  572. package/dist/esm/chunks/chunk.OR5GB6X3.js +0 -7
  573. package/dist/esm/chunks/chunk.OWYOZF53.js +0 -7
  574. package/dist/esm/chunks/chunk.OWYOZF53.js.map +0 -7
  575. package/dist/esm/chunks/chunk.OXGCNOUY.js +0 -7
  576. package/dist/esm/chunks/chunk.PZAL7VQF.js +0 -7
  577. package/dist/esm/chunks/chunk.PZAL7VQF.js.map +0 -7
  578. package/dist/esm/chunks/chunk.QIMAHW7V.js +0 -7
  579. package/dist/esm/chunks/chunk.RB435MRJ.js +0 -7
  580. package/dist/esm/chunks/chunk.RB435MRJ.js.map +0 -7
  581. package/dist/esm/chunks/chunk.RBG6AMLV.js +0 -7
  582. package/dist/esm/chunks/chunk.RBG6AMLV.js.map +0 -7
  583. package/dist/esm/chunks/chunk.RCYIHHYO.js +0 -7
  584. package/dist/esm/chunks/chunk.RCYIHHYO.js.map +0 -7
  585. package/dist/esm/chunks/chunk.RLOZYTNN.js +0 -7
  586. package/dist/esm/chunks/chunk.RLOZYTNN.js.map +0 -7
  587. package/dist/esm/chunks/chunk.RN634NOB.js +0 -7
  588. package/dist/esm/chunks/chunk.RQ3RHGLB.js +0 -7
  589. package/dist/esm/chunks/chunk.RQ3RHGLB.js.map +0 -7
  590. package/dist/esm/chunks/chunk.S2KPWTRW.js +0 -7
  591. package/dist/esm/chunks/chunk.S2KPWTRW.js.map +0 -7
  592. package/dist/esm/chunks/chunk.TPXXHX5J.js +0 -7
  593. package/dist/esm/chunks/chunk.TPXXHX5J.js.map +0 -7
  594. package/dist/esm/chunks/chunk.UCIVBX64.js +0 -7
  595. package/dist/esm/chunks/chunk.UCIVBX64.js.map +0 -7
  596. package/dist/esm/chunks/chunk.VGKNQYHG.js +0 -7
  597. package/dist/esm/chunks/chunk.VGKNQYHG.js.map +0 -7
  598. package/dist/esm/chunks/chunk.VN7JOJVU.js +0 -7
  599. package/dist/esm/chunks/chunk.VNFATHAQ.js +0 -7
  600. package/dist/esm/chunks/chunk.VNFATHAQ.js.map +0 -7
  601. package/dist/esm/chunks/chunk.VRTR7WMN.js +0 -7
  602. package/dist/esm/chunks/chunk.VRTR7WMN.js.map +0 -7
  603. package/dist/esm/chunks/chunk.WXFJYCGO.js +0 -7
  604. package/dist/esm/chunks/chunk.WXFJYCGO.js.map +0 -7
  605. package/dist/esm/chunks/chunk.Y7ZZ7HDC.js +0 -7
  606. package/dist/esm/chunks/chunk.YTBNAGLS.js +0 -7
  607. package/dist/esm/chunks/chunk.ZY3ETQ3D.js +0 -7
  608. package/dist/esm/chunks/chunk.ZY3ETQ3D.js.map +0 -7
  609. package/dist/esm/product-icon/index.js +0 -7
  610. package/esm/chips/chip-set/chip-set-adapter.d.ts +0 -27
  611. package/esm/chips/chip-set/chip-set-adapter.js +0 -57
  612. package/esm/chips/chip-set/chip-set-foundation.d.ts +0 -38
  613. package/esm/chips/chip-set/chip-set-foundation.js +0 -82
  614. package/esm/product-icon/index.d.ts +0 -10
  615. package/esm/product-icon/index.js +0 -14
  616. package/esm/product-icon/product-icon-adapter.d.ts +0 -27
  617. package/esm/product-icon/product-icon-adapter.js +0 -50
  618. package/esm/product-icon/product-icon-constants.d.ts +0 -38
  619. package/esm/product-icon/product-icon-constants.js +0 -46
  620. package/esm/product-icon/product-icon-foundation.d.ts +0 -40
  621. package/esm/product-icon/product-icon-foundation.js +0 -116
  622. package/esm/product-icon/product-icon.d.ts +0 -37
  623. package/esm/product-icon/product-icon.js +0 -70
  624. package/styles/button-area/_mixins.scss +0 -47
  625. package/styles/chips/chip/_mixins.scss +0 -306
  626. package/styles/chips/chip/_variables.scss +0 -8
  627. package/styles/chips/chip-set/_mixins.scss +0 -40
  628. package/styles/divider/_mixins.scss +0 -47
  629. package/styles/file-picker/_mixins.scss +0 -155
  630. package/styles/file-picker/_variables.scss +0 -8
  631. package/styles/page-state/_mixins.scss +0 -123
  632. package/styles/page-state/_variables.scss +0 -9
  633. package/styles/product-icon/_mixins.scss +0 -49
  634. package/styles/product-icon/product-icon.scss +0 -16
  635. package/styles/skeleton/_mixins.scss +0 -132
  636. package/styles/skeleton/_variables.scss +0 -45
  637. package/styles/stack/_mixins.scss +0 -49
  638. package/styles/text-field/_base.scss +0 -76
  639. package/styles/text-field/_mixins.scss +0 -28
  640. package/styles/text-field/_selector.scss +0 -57
  641. package/styles/text-field/_variables.scss +0 -20
  642. package/styles/toolbar/_mixins.scss +0 -78
  643. package/styles/toolbar/_variables.scss +0 -10
  644. /package/dist/esm/chunks/{chunk.WJ26N3FC.js.map → chunk.22C7GQLX.js.map} +0 -0
  645. /package/dist/esm/chunks/{chunk.CPD4RUF2.js.map → chunk.24MZM3AY.js.map} +0 -0
  646. /package/dist/esm/chunks/{chunk.O6WN2UP6.js.map → chunk.2537XOFQ.js.map} +0 -0
  647. /package/dist/esm/chunks/{chunk.KZMXTOLO.js.map → chunk.2AM2BKEO.js.map} +0 -0
  648. /package/dist/esm/chunks/{chunk.KD4DVSJR.js.map → chunk.2WRAXA3H.js.map} +0 -0
  649. /package/dist/esm/chunks/{chunk.ZYYPOLIG.js.map → chunk.2XPAYTK4.js.map} +0 -0
  650. /package/dist/esm/chunks/{chunk.OJFSECZE.js.map → chunk.3L77JY5H.js.map} +0 -0
  651. /package/dist/esm/chunks/{chunk.MBXBM6UI.js.map → chunk.47U6GVGZ.js.map} +0 -0
  652. /package/dist/esm/chunks/{chunk.UYAP5GFT.js.map → chunk.5A34DJLZ.js.map} +0 -0
  653. /package/dist/esm/chunks/{chunk.GAHE4QVB.js.map → chunk.5S7XNYRQ.js.map} +0 -0
  654. /package/dist/esm/chunks/{chunk.DOAQODLZ.js.map → chunk.6XLTVIUD.js.map} +0 -0
  655. /package/dist/esm/chunks/{chunk.4YKLCBP2.js.map → chunk.7IJUN75W.js.map} +0 -0
  656. /package/dist/esm/chunks/{chunk.66RZ2CUB.js.map → chunk.A4UH52SA.js.map} +0 -0
  657. /package/dist/esm/chunks/{chunk.KIQZLNDG.js.map → chunk.AN2E2SSN.js.map} +0 -0
  658. /package/dist/esm/chunks/{chunk.XH63INIK.js.map → chunk.AOSBUJWW.js.map} +0 -0
  659. /package/dist/esm/chunks/{chunk.CLODJYSW.js.map → chunk.BSV27GU7.js.map} +0 -0
  660. /package/dist/esm/chunks/{chunk.FOQH2SSU.js.map → chunk.CBLUXYH2.js.map} +0 -0
  661. /package/dist/esm/chunks/{chunk.L7BSLZCB.js.map → chunk.CIUPY66Y.js.map} +0 -0
  662. /package/dist/esm/chunks/{chunk.OUIWXKO2.js.map → chunk.CSOKFDFQ.js.map} +0 -0
  663. /package/dist/esm/chunks/{chunk.YLJTJKN4.js.map → chunk.EO3HELQ2.js.map} +0 -0
  664. /package/dist/esm/chunks/{chunk.RKG66YKS.js.map → chunk.FBDRM4YN.js.map} +0 -0
  665. /package/dist/esm/chunks/{chunk.GAQ3POUT.js.map → chunk.FOSKVNVV.js.map} +0 -0
  666. /package/dist/esm/chunks/{chunk.Z7JF5PPO.js.map → chunk.FRTSXX33.js.map} +0 -0
  667. /package/dist/esm/chunks/{chunk.253H47GA.js.map → chunk.G2HRYIIZ.js.map} +0 -0
  668. /package/dist/esm/chunks/{chunk.D7L2IMHJ.js.map → chunk.GA6AO6FJ.js.map} +0 -0
  669. /package/dist/esm/chunks/{chunk.YOKBWEXF.js.map → chunk.GBGGUYTE.js.map} +0 -0
  670. /package/dist/esm/chunks/{chunk.CISGGM56.js.map → chunk.GTKYO6VB.js.map} +0 -0
  671. /package/dist/esm/chunks/{chunk.STIZCKQA.js.map → chunk.HBAC6E7O.js.map} +0 -0
  672. /package/dist/esm/chunks/{chunk.WM6ZUVDR.js.map → chunk.IM36A2ZI.js.map} +0 -0
  673. /package/dist/esm/chunks/{chunk.YHIHHGMQ.js.map → chunk.IWVAI6XM.js.map} +0 -0
  674. /package/dist/esm/chunks/{chunk.J5MWS2KZ.js.map → chunk.IZRURH7C.js.map} +0 -0
  675. /package/dist/esm/chunks/{chunk.E7TIN4JS.js.map → chunk.JLSFTWPE.js.map} +0 -0
  676. /package/dist/esm/chunks/{chunk.HP4333ZN.js.map → chunk.JSTCCUKZ.js.map} +0 -0
  677. /package/dist/esm/chunks/{chunk.AXBMJBED.js.map → chunk.KDUH2DUE.js.map} +0 -0
  678. /package/dist/esm/chunks/{chunk.M7RYU4HQ.js.map → chunk.LKA5HQQY.js.map} +0 -0
  679. /package/dist/esm/chunks/{chunk.IC4DLKE3.js.map → chunk.MC3UAHWS.js.map} +0 -0
  680. /package/dist/esm/chunks/{chunk.DYBD4IRT.js.map → chunk.MPUP6QAP.js.map} +0 -0
  681. /package/dist/esm/chunks/{chunk.KPNGLSCU.js.map → chunk.N632SJ7X.js.map} +0 -0
  682. /package/dist/esm/chunks/{chunk.WJLHVUHN.js.map → chunk.O56VP4OZ.js.map} +0 -0
  683. /package/dist/esm/chunks/{chunk.ULZJYWM2.js.map → chunk.OFXSMOV6.js.map} +0 -0
  684. /package/dist/esm/chunks/{chunk.SWDOKJUF.js.map → chunk.OY3TG55O.js.map} +0 -0
  685. /package/dist/esm/chunks/{chunk.IO3A5OM6.js.map → chunk.PXRGQHWR.js.map} +0 -0
  686. /package/dist/esm/chunks/{chunk.FXDHZCID.js.map → chunk.QKYCMDLB.js.map} +0 -0
  687. /package/dist/esm/chunks/{chunk.WINWKU4K.js.map → chunk.QUWEAFGI.js.map} +0 -0
  688. /package/dist/esm/chunks/{chunk.LNMQ5A25.js.map → chunk.R3AWIPPK.js.map} +0 -0
  689. /package/dist/esm/chunks/{chunk.KYACLC66.js.map → chunk.R66CYS27.js.map} +0 -0
  690. /package/dist/esm/chunks/{chunk.V7HN24VV.js.map → chunk.RFCIELJM.js.map} +0 -0
  691. /package/dist/esm/chunks/{chunk.OR5GB6X3.js.map → chunk.SOKORSUV.js.map} +0 -0
  692. /package/dist/esm/chunks/{chunk.GDKJ4RZX.js.map → chunk.STSAE2XP.js.map} +0 -0
  693. /package/dist/esm/chunks/{chunk.CJUX3PL5.js.map → chunk.SWKKDBO6.js.map} +0 -0
  694. /package/dist/esm/chunks/{chunk.QQUSMJIM.js.map → chunk.UEYPCCFG.js.map} +0 -0
  695. /package/dist/esm/chunks/{chunk.F3FWXBDS.js.map → chunk.VBJ4WUVH.js.map} +0 -0
  696. /package/dist/esm/chunks/{chunk.U7S4DJTU.js.map → chunk.WBCQTZPS.js.map} +0 -0
  697. /package/dist/esm/chunks/{chunk.NSKIEZWE.js.map → chunk.WBI34ZVP.js.map} +0 -0
  698. /package/dist/esm/chunks/{chunk.SZETPZGY.js.map → chunk.WTUXAH7Z.js.map} +0 -0
  699. /package/dist/esm/chunks/{chunk.YTBNAGLS.js.map → chunk.XU3YSZPA.js.map} +0 -0
  700. /package/dist/esm/chunks/{chunk.5JSCGQ7H.js.map → chunk.YS5JZHJ6.js.map} +0 -0
  701. /package/dist/esm/chunks/{chunk.QXZ3AAXD.js.map → chunk.YXHMD73U.js.map} +0 -0
  702. /package/dist/esm/chunks/{chunk.6DPDC4ON.js.map → chunk.Z6GRWPPN.js.map} +0 -0
  703. /package/dist/esm/chunks/{chunk.4JEBLMI3.js.map → chunk.ZLNI2M3F.js.map} +0 -0
  704. /package/dist/esm/{product-icon → field-next/base}/index.js.map +0 -0
  705. /package/dist/esm/{chunks/chunk.SKLCDWYQ.js.map → field-next/index.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tooltip/tooltip-adapter.ts", "../../src/tooltip/tooltip-foundation.ts", "../../src/tooltip/tooltip.ts", "../../src/tooltip/index.ts"],
4
- "sourcesContent": ["import { getShadowElement, randomChars } from '@tylertech/forge-core';\nimport { setDefaultAria } from '../constants';\nimport { locateElementById } from '../core/utils/utils';\nimport { BaseAdapter, IBaseAdapter } from '../core/base/base-adapter';\nimport { IOverlayComponent, OVERLAY_CONSTANTS } from '../overlay';\nimport { ITooltipComponent } from './tooltip';\nimport { TOOLTIP_CONSTANTS } from './tooltip-constants';\n\nexport interface ITooltipAdapter extends IBaseAdapter {\n readonly anchorElement: HTMLElement | null;\n syncAria(): void;\n detachAria(): void;\n setAnchorElement(element: HTMLElement | null): void;\n tryLocateAnchorElement(id: string): void;\n addAnchorListener(type: string, listener: EventListener, opts?: AddEventListenerOptions): void;\n removeAnchorListener(type: string, listener: EventListener): void;\n addLightDismissListener(listener: EventListener): void;\n removeLightDismissListener(listener: EventListener): void;\n show(): void;\n hide(): void;\n}\n\nexport class TooltipAdapter extends BaseAdapter<ITooltipComponent> implements ITooltipAdapter {\n private _contentElement: HTMLElement;\n private _arrowElement: HTMLElement;\n private _anchorElement: HTMLElement | null = null;\n private _overlayElement: IOverlayComponent | null = null;\n\n constructor(component: ITooltipComponent) {\n super(component);\n this._contentElement = getShadowElement(this._component, TOOLTIP_CONSTANTS.selectors.CONTENT);\n this._arrowElement = getShadowElement(this._component, TOOLTIP_CONSTANTS.selectors.ARROW);\n }\n\n public get anchorElement(): HTMLElement | null {\n return this._anchorElement;\n }\n\n public syncAria(): void {\n const role = this._component.type === 'description' ? 'tooltip' : null;\n this._component[setDefaultAria]({ role });\n this._component[setDefaultAria]({ ariaHidden: 'true' }, { setAttribute: !this._component.hasAttribute('aria-hidden') });\n\n if (this._anchorElement) {\n if (this._component.type === 'label' && this._anchorElement.hasAttribute('aria-labelledby')) {\n return;\n }\n if (this._component.type === 'description' && this._anchorElement.hasAttribute('aria-describedby')) {\n return;\n }\n\n if (!this._component.hasAttribute('id') && this._component.type !== 'presentation') {\n this._component.id = `forge-tooltip-${randomChars()}`;\n }\n\n switch (this._component.type) {\n case 'description':\n this._anchorElement.setAttribute('aria-describedby', this._component.id);\n break;\n case 'label':\n this._anchorElement.setAttribute('aria-labelledby', this._component.id);\n break;\n }\n }\n }\n\n public detachAria(): void {\n if (this._component.type === 'description' && this._anchorElement?.getAttribute('aria-describedby') === this._component.id) {\n this._anchorElement?.removeAttribute('aria-describedby');\n }\n\n if (this._component.type === 'label' && this._anchorElement?.getAttribute('aria-labelledby') === this._component.id) {\n this._anchorElement?.removeAttribute('aria-labelledby');\n }\n }\n\n public setAnchorElement(element: HTMLElement | null): void {\n this._anchorElement = element;\n }\n\n public tryLocateAnchorElement(id: string): void {\n this._anchorElement = this._tryFindAnchorElement(id);\n }\n\n public addAnchorListener(type: string, listener: EventListener, opts?: AddEventListenerOptions): void {\n this._anchorElement?.addEventListener(type, listener, opts);\n }\n\n public removeAnchorListener(type: string, listener: EventListener): void {\n this._anchorElement?.removeEventListener(type, listener);\n }\n\n public addLightDismissListener(listener: EventListener): void {\n this._overlayElement?.addEventListener(OVERLAY_CONSTANTS.events.LIGHT_DISMISS, listener);\n }\n\n public removeLightDismissListener(listener: EventListener): void {\n this._overlayElement?.removeEventListener(OVERLAY_CONSTANTS.events.LIGHT_DISMISS, listener);\n }\n\n public show(): void {\n // Tooltips are shown above all content via <forge-overlay>\n // We do this by dynamically creating an overlay element and appending it to the shadow root\n // then we move the tooltip content into the overlay element so that it can be presented.\n if (!this._overlayElement) {\n this._overlayElement = document.createElement(OVERLAY_CONSTANTS.elementName);\n this._overlayElement.setAttribute('part', 'root:overlay');\n }\n\n this._overlayElement.placement = this._component.placement;\n this._overlayElement.anchorElement = this._anchorElement;\n this._overlayElement.arrowElement = this._arrowElement;\n this._overlayElement.offset = { mainAxis: this._component.offset };\n this._overlayElement.flip = this._component.flip;\n\n if (this._component.fallbackPlacements) {\n this._overlayElement.fallbackPlacements = this._component.fallbackPlacements;\n }\n\n if (this._component.boundaryElement) {\n this._overlayElement.boundaryElement = this._component.boundaryElement;\n } else if (this._component.boundary) {\n const boundaryEl = locateElementById(this._component, this._component.boundary);\n this._overlayElement.boundaryElement = boundaryEl;\n } else {\n this._overlayElement.boundaryElement = null;\n }\n\n this._component.shadowRoot?.appendChild(this._overlayElement);\n this._overlayElement.appendChild(this._contentElement);\n\n this._overlayElement.open = true;\n }\n\n public hide(): void {\n // Move the tooltip content back into the component, and remove the overlay element to hide the tooltip visually\n // Tooltips are still accessible when hidden, so we don't need to do anything else.\n if (this._overlayElement) {\n this._overlayElement.open = false;\n }\n this._component.shadowRoot?.appendChild(this._contentElement);\n this._overlayElement?.remove();\n }\n\n /**\n * Attempts to find an element with the given id. If no element is found, the previous sibling or parent element is returned.\n * \n * For backwards compatibility we allow for `id` to be a selector string, so that is evaluated if no element is found for the id.\n */\n private _tryFindAnchorElement(id: string): HTMLElement | null {\n if (id) {\n const rootNode = this._component.getRootNode() as Document | ShadowRoot;\n const targetEl = rootNode.getElementById(id) ?? rootNode.querySelector<HTMLElement>(id);\n if (targetEl) {\n return targetEl;\n }\n }\n return (this._component.previousElementSibling ?? this._component.parentElement) as HTMLElement;\n }\n}\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\nimport { ITooltipAdapter } from './tooltip-adapter';\nimport { TOOLTIP_CONSTANTS, TooltipPlacement, TooltipTriggerType, TooltipType } from './tooltip-constants';\nimport { WithLongpressListener } from '../core/mixins/interactions/longpress/with-longpress-listener';\nimport { canUserHoverElements } from '../constants';\nimport { OverlayFlipState } from '../overlay/overlay-constants';\nimport { PositionPlacement } from '../core/utils/position-utils';\n\nexport interface ITooltipFoundation extends ICustomElementFoundation {\n open: boolean;\n type: TooltipType;\n placement: `${TooltipPlacement}`;\n delay: number;\n anchor: string;\n anchorElement: HTMLElement | null;\n offset: number;\n flip: OverlayFlipState;\n boundary: string | null;\n boundaryElement: HTMLElement | null;\n fallbackPlacements: PositionPlacement[] | null;\n triggerType: TooltipTriggerType | TooltipTriggerType[];\n syncTooltipAria(): void;\n}\n\nconst BaseClass = WithLongpressListener();\n\nexport class TooltipFoundation extends BaseClass implements ITooltipFoundation {\n private _open = false;\n private _type: TooltipType = TOOLTIP_CONSTANTS.defaults.TYPE;\n private _anchor: string;\n private _delay = TOOLTIP_CONSTANTS.defaults.DELAY;\n private _placement: TooltipPlacement = TOOLTIP_CONSTANTS.defaults.PLACEMENT;\n private _offset = TOOLTIP_CONSTANTS.defaults.OFFSET;\n private _flip: OverlayFlipState = TOOLTIP_CONSTANTS.defaults.FLIP;\n private _boundary: string | null = null;\n private _boundaryElement: HTMLElement | null = null;\n private _fallbackPlacements: PositionPlacement[] | null = null;\n private _triggerTypes: TooltipTriggerType[] = TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n \n // Hover trigger type\n private _hoverStartListener: (evt: MouseEvent) => void = this._onHoverStart.bind(this);\n private _hoverEndListener: (evt: MouseEvent) => void = this._onHoverEnd.bind(this);\n private _hoverTimeout: number | undefined;\n\n // Focus trigger type\n private _focusListener: (evt: FocusEvent) => void = this._onFocus.bind(this);\n private _blurListener: (evt: FocusEvent) => void = this._onBlur.bind(this);\n\n // Longpress trigger type\n private _longpressVisibilityTimeout: number | undefined;\n\n // Dismiss/hide triggers\n private _scrollListener: (evt: Event) => void = this._onTryHide.bind(this);\n private _mouseDownListener: (evt: MouseEvent) => void = this._onTryHide.bind(this);\n private _dragListener: (evt: DragEvent) => void = this._onTryHide.bind(this);\n private _lightDismissListener: (evt: Event) => void = this._onTryHide.bind(this);\n \n constructor(private _adapter: ITooltipAdapter) {\n super();\n }\n\n public initialize(): void {\n if (!this._adapter.anchorElement) {\n this._adapter.tryLocateAnchorElement(this._anchor);\n }\n\n this._adapter.syncAria();\n this._attachAnchorListeners();\n\n if (this._open) {\n this._show();\n }\n }\n\n public destroy(): void {\n if (this._open) {\n this._hide();\n }\n this._adapter.detachAria();\n this._detachAnchorListeners();\n }\n\n public syncTooltipAria(): void {\n this._adapter.syncAria();\n }\n\n private _attachAnchorListeners(): void {\n if (!this._adapter.anchorElement) {\n return;\n }\n\n const triggerTypes = [...this._triggerTypes];\n\n // If the users input mechanism doesn't support hover, then we need to force longpress as their alternative\n /* c8 ignore next 4 */\n if (!canUserHoverElements) {\n triggerTypes.splice(triggerTypes.indexOf('hover'), 1);\n triggerTypes.push('longpress');\n }\n\n const triggerInitializers: Record<TooltipTriggerType, () => void> = {\n 'hover': () => this._adapter.addAnchorListener('mouseenter', this._hoverStartListener),\n 'longpress': () => this._startLongpressListener(this._adapter.anchorElement as HTMLElement),\n 'focus': () => this._adapter.addAnchorListener('focusin', this._focusListener)\n };\n triggerTypes.forEach(triggerType => triggerInitializers[triggerType]());\n }\n\n private _detachAnchorListeners(): void {\n if (!this._adapter.anchorElement) {\n return;\n }\n\n const triggerTypes = [...this._triggerTypes];\n\n /* c8 ignore next 3 */\n if (!canUserHoverElements) {\n triggerTypes.push('longpress');\n }\n\n const triggerRemovers: Record<TooltipTriggerType, () => void> = {\n 'hover': () => {\n this._adapter.removeAnchorListener('mouseenter', this._hoverStartListener);\n this._adapter.removeAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.removeAnchorListener('mouseleave', this._hoverEndListener);\n },\n 'longpress': () => this._stopLongpressListener(this._adapter.anchorElement as HTMLElement),\n 'focus': () => {\n this._adapter.removeAnchorListener('focusin', this._focusListener);\n this._adapter.removeAnchorListener('focusout', this._blurListener);\n }\n };\n triggerTypes.forEach(triggerType => triggerRemovers[triggerType]());\n }\n\n private _show(): void {\n this._open = true;\n this._adapter.show();\n this._attachDismissListeners();\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OPEN, this._open);\n }\n\n private _hide(): void {\n window.clearTimeout(this._hoverTimeout);\n window.clearTimeout(this._longpressVisibilityTimeout);\n\n this._open = false;\n this._adapter.hide();\n this._detachDismissListeners();\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OPEN, this._open);\n }\n\n private _attachDismissListeners(): void {\n this._adapter.addAnchorListener('mousedown', this._mouseDownListener);\n this._adapter.addAnchorListener('dragstart', this._dragListener);\n this._adapter.addDocumentListener('scroll', this._scrollListener);\n this._adapter.addDocumentListener('wheel', this._scrollListener);\n this._adapter.addLightDismissListener(this._lightDismissListener);\n }\n \n private _detachDismissListeners(): void {\n this._adapter.removeAnchorListener('mousedown', this._mouseDownListener);\n this._adapter.removeAnchorListener('dragstart', this._dragListener);\n this._adapter.removeDocumentListener('scroll', this._scrollListener);\n this._adapter.removeDocumentListener('wheel', this._scrollListener);\n this._adapter.removeLightDismissListener(this._lightDismissListener);\n }\n\n private _onHoverStart(_evt: MouseEvent): void {\n /* c8 ignore next 3 */\n if (this._open) {\n return;\n }\n\n this._adapter.addAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.addAnchorListener('mouseleave', this._hoverEndListener);\n \n if (this._delay) {\n this._hoverTimeout = window.setTimeout(() => {\n this._onTryShow();\n }, this._delay);\n } else {\n this._onTryShow();\n }\n }\n\n private _onHoverEnd(_evt: MouseEvent): void {\n this._adapter.removeAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.removeAnchorListener('mouseleave', this._hoverEndListener);\n window.clearTimeout(this._hoverTimeout);\n this._onTryHide();\n }\n\n private _onFocus(_evt: FocusEvent): void {\n /* c8 ignore next 3 */\n if (this._open) {\n return;\n }\n this._adapter.addAnchorListener('focusout', this._blurListener);\n this._onTryShow();\n }\n\n private _onBlur(_evt: FocusEvent): void {\n this._adapter.removeAnchorListener('focusout', this._blurListener);\n this._onTryHide();\n }\n\n protected _onLongpress(): void {\n this._onTryShow();\n }\n\n protected override _onLongpressEnd(evt: PointerEvent | TouchEvent): void {\n super._onLongpressEnd(evt);\n\n // We only start the timeout to hide the tooltip after the user lifts the pointer\n this._longpressVisibilityTimeout = window.setTimeout(() => {\n this._onTryHide();\n }, TOOLTIP_CONSTANTS.numbers.LONGPRESS_VISIBILITY_DURATION);\n }\n\n private _onTryShow(): void {\n if (!this._open) {\n this._show();\n }\n }\n\n private _onTryHide(): void {\n if (this._open) {\n this._hide();\n }\n }\n \n public get open(): boolean {\n return this._open;\n }\n public set open(value: boolean) {\n value = Boolean(value);\n if (this._open !== value) {\n if (this._adapter.isConnected) {\n if (!this._open) {\n this._show();\n } else {\n this._hide();\n }\n } else {\n this._open = value;\n }\n }\n }\n\n public get type(): TooltipType {\n return this._type;\n }\n public set type(value: TooltipType) {\n value ??= TOOLTIP_CONSTANTS.defaults.TYPE;\n if (this._type !== value) {\n this._type = value;\n if (this._adapter.isConnected) {\n this._adapter.syncAria();\n }\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.TYPE, this._type !== TOOLTIP_CONSTANTS.defaults.TYPE, this._type);\n }\n }\n\n public get anchor(): string {\n return this._anchor;\n }\n public set anchor(value: string) {\n if (this._anchor !== value) {\n this._anchor = value;\n\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n this._adapter.detachAria();\n this._adapter.tryLocateAnchorElement(this._anchor);\n this._adapter.syncAria();\n this._attachAnchorListeners();\n }\n\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.ANCHOR, !!this._anchor, this._anchor);\n }\n }\n\n public get anchorElement(): HTMLElement | null {\n return this._adapter.anchorElement;\n }\n public set anchorElement(element: HTMLElement | null) {\n if (this._adapter.anchorElement !== element) {\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n this._adapter.detachAria();\n }\n\n this._adapter.setAnchorElement(element);\n \n if (this._adapter.isConnected) {\n this._adapter.syncAria();\n this._attachAnchorListeners();\n }\n }\n }\n\n public get delay(): number {\n return this._delay;\n }\n public set delay(value: number) {\n if (this._delay !== value) {\n this._delay = value;\n this._adapter.setHostAttribute(TOOLTIP_CONSTANTS.attributes.DELAY, String(this._delay));\n }\n }\n\n public get placement(): TooltipPlacement {\n return this._placement;\n }\n public set placement(value: TooltipPlacement) {\n value ??= TOOLTIP_CONSTANTS.defaults.PLACEMENT;\n if (this._placement !== value) {\n this._placement = value;\n this._adapter.setHostAttribute(TOOLTIP_CONSTANTS.attributes.PLACEMENT, String(this._placement));\n }\n }\n\n public get offset(): number {\n return this._offset;\n }\n public set offset(value: number) {\n value ??= TOOLTIP_CONSTANTS.defaults.OFFSET;\n if (this._offset !== value) {\n this._offset = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OFFSET, this._offset !== TOOLTIP_CONSTANTS.defaults.OFFSET, String(this._offset));\n }\n }\n\n public get flip(): OverlayFlipState {\n return this._flip;\n }\n public set flip(value: OverlayFlipState) {\n value ??= TOOLTIP_CONSTANTS.defaults.FLIP;\n if (this._flip !== value) {\n this._flip = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.FLIP, this._flip !== TOOLTIP_CONSTANTS.defaults.FLIP, String(this._flip));\n }\n }\n\n public get boundary(): string | null {\n return this._boundary;\n }\n public set boundary(value: string | null) {\n if (this._boundary !== value) {\n this._boundary = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.BOUNDARY, !!this._boundary, this._boundary as string);\n }\n }\n\n public get boundaryElement(): HTMLElement | null {\n return this._boundaryElement;\n }\n public set boundaryElement(element: HTMLElement | null) {\n if (this._boundaryElement !== element) {\n this._boundaryElement = element;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.BOUNDARY, !!this._boundaryElement, this._boundaryElement?.id);\n }\n }\n\n public get fallbackPlacements(): PositionPlacement[] | null {\n return this._fallbackPlacements;\n }\n public set fallbackPlacements(value: PositionPlacement[] | null) {\n if (this._fallbackPlacements !== value) {\n this._fallbackPlacements = value;\n }\n }\n\n public get triggerType(): TooltipTriggerType | TooltipTriggerType[] {\n return this._triggerTypes.length === 1 ? this._triggerTypes[0] : this._triggerTypes;\n }\n public set triggerType(value: TooltipTriggerType | TooltipTriggerType[]) {\n if (this._triggerTypes !== value) {\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n }\n\n this._triggerTypes = Array.isArray(value) ? value : [value];\n this._triggerTypes = this._triggerTypes.filter(type => !!type);\n\n if (!this._triggerTypes.length) {\n this._triggerTypes = TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n }\n\n if (this._adapter.isConnected) {\n this._attachAnchorListeners();\n }\n }\n }\n}\n", "import { CustomElement, coerceNumber, FoundationProperty, coerceBoolean, attachShadowTemplate } from '@tylertech/forge-core';\nimport { TooltipAdapter } from './tooltip-adapter';\nimport { TooltipFoundation } from './tooltip-foundation';\nimport { TooltipPlacement, TooltipTriggerType, TooltipType, TOOLTIP_CONSTANTS } from './tooltip-constants';\nimport { BaseComponent } from '../core/base/base-component';\nimport { OverlayComponent } from '../overlay/overlay';\nimport { coerceStringToArray } from '../core/utils/utils';\nimport { IWithDefaultAria, WithDefaultAria } from '../core/mixins/internals/with-default-aria';\nimport { IWithElementInternals, WithElementInternals } from '../core/mixins/internals/with-element-internals';\nimport { OverlayFlipState } from '../overlay/overlay-constants';\nimport { PositionPlacement } from '../core/utils/position-utils';\n\nconst template = '<template><div class=\\\"forge-tooltip\\\" part=\\\"surface\\\"><slot></slot><div class=\\\"arrow\\\" part=\\\"arrow\\\"></div></div></template>';\nconst styles = '@-webkit-keyframes slidein{from{opacity:0;-webkit-transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;-webkit-transform:translateX(0) translateY(0);transform:translateX(0) translateY(0)}}@keyframes slidein{from{opacity:0;-webkit-transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;-webkit-transform:translateX(0) translateY(0);transform:translateX(0) translateY(0)}}:host{display:contents;pointer-events:none}:host([hidden]){display:none}.forge-tooltip{--_tooltip-background:var(--forge-tooltip-background, var(--forge-theme-surface-inverse, #333333));--_tooltip-color:var(--forge-tooltip-color, var(--forge-theme-on-surface-inverse, #ffffff));--_tooltip-shape:var(--forge-tooltip-shape, var(--forge-shape-medium, 4px));--_tooltip-padding:var(--forge-tooltip-padding, var(--forge-spacing-xsmall, 8px));--_tooltip-padding-block:var(--forge-tooltip-padding-block, var(--_tooltip-padding));--_tooltip-padding-inline:var(--forge-tooltip-padding-inline, var(--_tooltip-padding));--_tooltip-width:var(--forge-tooltip-width, max-content);--_tooltip-max-width:var(--forge-tooltip-max-width, 320px);--_tooltip-elevation:var(--forge-tooltip-elevation, var(--forge-theme-popup-elevation, var(--forge-theme-surface-bright-shadow)));--_tooltip-content-align:var(--forge-tooltip-content-align, center);--_tooltip-border-width:var(--forge-tooltip-border-width, 0);--_tooltip-border-style:var(--forge-tooltip-border-style, solid);--_tooltip-border-color:var(--forge-tooltip-border-color, var(--forge-theme-outline, #e0e0e0));--_tooltip-animation-timing:var(--forge-tooltip-animation-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_tooltip-animation-duration:var(--forge-tooltip-animation-duration, var(--forge-animation-duration-short3, 150ms));--_tooltip-animation-offset:var(--forge-tooltip-animation-offset, 24px);--_tooltip-arrow-size:var(--forge-tooltip-arrow-size, 8px);--_tooltip-arrow-height:var(--forge-tooltip-arrow-height, var(--_tooltip-arrow-size));--_tooltip-arrow-width:var(--forge-tooltip-arrow-width, var(--_tooltip-arrow-size));--_tooltip-arrow-shape:var(--forge-tooltip-arrow-shape, var(--forge-shape-small, 2px));--_tooltip-arrow-rotation:var(--forge-tooltip-arrow-rotation, 0deg);--_tooltip-arrow-top-rotation:var(--forge-tooltip-arrow-top-rotation, 315deg);--_tooltip-arrow-right-rotation:var(--forge-tooltip-arrow-right-rotation, 45deg);--_tooltip-arrow-bottom-rotation:var(--forge-tooltip-arrow-bottom-rotation, 135deg);--_tooltip-arrow-left-rotation:var(--forge-tooltip-arrow-left-rotation, 225deg)}.forge-tooltip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, \\\"Roboto\\\", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-body1-text-decoration,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);position:relative;background:var(--_tooltip-background);color:var(--_tooltip-color);border-radius:var(--_tooltip-shape);border-width:var(--_tooltip-border-width);border-style:var(--_tooltip-border-style);border-color:var(--_tooltip-border-color);padding-block:var(--_tooltip-padding-block);padding-inline:var(--_tooltip-padding-inline);-webkit-box-shadow:var(--_tooltip-elevation);box-shadow:var(--_tooltip-elevation);width:var(--_tooltip-width);max-width:var(--_tooltip-max-width);pointer-events:none;text-align:var(--_tooltip-content-align);line-height:normal;-webkit-animation-duration:var(--_tooltip-animation-duration);animation-duration:var(--_tooltip-animation-duration);-webkit-animation-timing-function:var(--_tooltip-animation-timing);animation-timing-function:var(--_tooltip-animation-timing);-webkit-animation-name:slidein;animation-name:slidein;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(:not([open])) .forge-tooltip{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.arrow{position:absolute;contain:strict;background-color:inherit;height:var(--_tooltip-arrow-height);width:var(--_tooltip-arrow-width);-webkit-box-shadow:inherit;box-shadow:inherit;border:inherit;border-end-start-radius:var(--_tooltip-arrow-shape);rotate:var(--_tooltip-arrow-rotation);-webkit-clip-path:var(--_tooltip-arrow-clip-path);clip-path:var(--_tooltip-arrow-clip-path);--_tooltip-arrow-translate-x:0;--_tooltip-arrow-translate-y:0;--_tooltip-arrow-clip-path:polygon(0 0, 0 100%, 100% 100%)}.forge-tooltip{--_tooltip-slidein-x:0;--_tooltip-slidein-y:0}forge-overlay[open][position-placement^=top] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=top] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-top-rotation);-webkit-margin-after:var(--_tooltip-border-width);margin-block-end:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=right] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=right] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-right-rotation);-webkit-margin-start:var(--_tooltip-border-width);margin-inline-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=bottom] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=bottom] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-bottom-rotation);-webkit-margin-before:var(--_tooltip-border-width);margin-block-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=left] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=left] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-left-rotation);-webkit-margin-end:var(--_tooltip-border-width);margin-inline-end:var(--_tooltip-border-width)}';\n\nexport interface ITooltipComponent extends IWithDefaultAria, IWithElementInternals {\n open: boolean;\n type: TooltipType;\n anchor: string;\n anchorElement: HTMLElement | null;\n /** @deprecated use `anchor` instead */\n target: string;\n placement: `${TooltipPlacement}`;\n /** @deprecated use `placement` instead */\n position: `${TooltipPlacement}`;\n delay: number;\n offset: number;\n flip: OverlayFlipState;\n boundary: string | null;\n boundaryElement: HTMLElement | null;\n fallbackPlacements: PositionPlacement[] | null;\n triggerType: TooltipTriggerType | TooltipTriggerType[];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-tooltip': ITooltipComponent;\n }\n}\n\nconst BaseClass = WithDefaultAria(WithElementInternals(BaseComponent));\n\n/**\n * @tag forge-tooltip\n * \n * @summary Tooltips display information related to an element when the user hovers over an element.\n *\n * @property {boolean} open - Whether or not the tooltip is open.\n * @property {TooltipType} type - The type of tooltip. Valid values are `presentation` (default), `label`, and `description`.\n * @property {string} anchor - The id of the element that the tooltip is anchored to.\n * @property {TooltipPlacement} placement - The placement of the tooltip relative to the anchor element.\n * @property {number} delay - The delay in milliseconds before the tooltip is shown.\n * @property {number} offset - The offset in pixels between the tooltip and the anchor element.\n * @property {OverlayFlipState} - flip - How the tooltip should place itself if there is not enough space at the desired placement.\n * @property {string | null} boundary - The id of the element that the tooltip should be constrained to.\n * @property {HTMLElement | null} boundaryElement - The element that the tooltip should be constrained to.\n * @property {PositionPlacement[] | null} fallbackPlacements - The fallback placements of the tooltip relative to the anchor element.\n * @property {TooltipTriggerType | TooltipTriggerType[]} triggerType - The trigger type(s) that will open the tooltip. Valid values are `hover` (default), `longpress`, and `focus`.\n * \n * @attribute {boolean} open - Whether or not the tooltip is open.\n * @attribute {TooltipType} type - The type of tooltip. Valid values are `presentation` (default), `label`, and `description`.\n * @attribute {string} anchor - The id of the element that the tooltip is anchored to.\n * @attribute {TooltipPlacement} placement - The placement of the tooltip relative to the anchor element.\n * @attribute {number} delay - The delay in milliseconds before the tooltip is shown.\n * @attribute {number} offset - The offset in pixels between the tooltip and the anchor element.\n * @attribute {OverlayFlipState} flip - How the tooltip should place itself if there is not enough space at the desired placement.\n * @attribute {string | null} boundary - The id of the element that the tooltip should be constrained to.\n * @attribute {PositionPlacement[]} fallbackPlacements - The fallback placements of the tooltip relative to the anchor element.\n * \n * @cssproperty --forge-tooltip-background - The background color of the tooltip surface.\n * @cssproperty --forge-tooltip-color - The text color of the tooltip surface.\n * @cssproperty --forge-tooltip-shape - The shape of the tooltip surface.\n * @cssproperty --forge-tooltip-padding - The padding of the tooltip surface.\n * @cssproperty --forge-tooltip-padding-block - The block padding of the tooltip surface.\n * @cssproperty --forge-tooltip-padding-inline - The inline padding of the tooltip surface.\n * @cssproperty --forge-tooltip-max-width - The maximum width of the tooltip surface.\n * @cssproperty --forge-tooltip-elevation - The elevation of the tooltip surface.\n * @cssproperty --forge-tooltip-border-width - The border width of the tooltip surface.\n * @cssproperty --forge-tooltip-border-style - The border style of the tooltip surface.\n * @cssproperty --forge-tooltip-border-color - The border color of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-timing - The animation timing function of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-duration - The animation duration of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-offset - The animation offset of the tooltip surface.\n * @cssproperty --forge-tooltip-arrow-size - The size of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-height - The height of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-width - The width of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-shape - The shape of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-clip-path - The clip path of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-rotation - The rotation of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-top-rotation - The rotation of the tooltip arrow when the tooltip is placed on top.\n * @cssproperty --forge-tooltip-arrow-right-rotation - The rotation of the tooltip arrow when the tooltip is placed on the right.\n * @cssproperty --forge-tooltip-arrow-bottom-rotation - The rotation of the tooltip arrow when the tooltip is placed on the bottom.\n * @cssproperty --forge-tooltip-arrow-left-rotation- The rotation of the tooltip arrow when the tooltip is placed on the left.\n * \n * @slot - The content to display in the tooltip.\n * \n * @csspart surface - The tooltip surface.\n * @csspart arrow - The tooltip arrow.\n * @csspart overlay - The overlay surface.\n */\n@CustomElement({\n name: TOOLTIP_CONSTANTS.elementName,\n dependencies: [\n OverlayComponent\n ]\n})\nexport class TooltipComponent extends BaseClass implements ITooltipComponent {\n public static get observedAttributes(): string[] {\n return Object.values(TOOLTIP_CONSTANTS.observedAttributes);\n }\n\n private _foundation: TooltipFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new TooltipFoundation(new TooltipAdapter(this));\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public disconnectedCallback(): void {\n this._foundation.destroy();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case TOOLTIP_CONSTANTS.observedAttributes.ID:\n this._foundation.syncTooltipAria();\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.OPEN:\n this.open = coerceBoolean(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TYPE:\n this.type = newValue?.trim() ? newValue as TooltipType : TOOLTIP_CONSTANTS.defaults.TYPE;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TARGET:\n case TOOLTIP_CONSTANTS.observedAttributes.ANCHOR:\n this.anchor = newValue;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.DELAY:\n this.delay = coerceNumber(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.POSITION:\n case TOOLTIP_CONSTANTS.observedAttributes.PLACEMENT:\n this.placement = newValue as TooltipPlacement;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.OFFSET:\n this.offset = coerceNumber(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.FLIP:\n this.flip = newValue as OverlayFlipState;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.BOUNDARY:\n this.boundary = newValue;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.FALLBACK_PLACEMENTS:\n this.fallbackPlacements = newValue?.trim() ? coerceStringToArray<PositionPlacement>(newValue) : null;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TRIGGER_TYPE:\n this.triggerType = newValue?.trim() ? coerceStringToArray<TooltipTriggerType>(newValue) : TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n break;\n }\n }\n\n @FoundationProperty()\n public declare open: boolean;\n\n @FoundationProperty()\n public declare type: TooltipType;\n\n @FoundationProperty()\n public declare anchor: string;\n\n @FoundationProperty()\n public declare anchorElement: HTMLElement | null;\n\n /** @deprecated use `anchor` instead */\n @FoundationProperty({ name: 'anchor' })\n public declare target: string;\n\n @FoundationProperty()\n public declare placement: `${TooltipPlacement}`;\n\n /** @deprecated use `placement` instead */\n @FoundationProperty({ name: 'placement' })\n public declare position: `${TooltipPlacement}`;\n\n @FoundationProperty()\n public declare delay: number;\n\n @FoundationProperty()\n public declare offset: number;\n\n @FoundationProperty()\n public declare flip: OverlayFlipState;\n\n @FoundationProperty()\n public declare boundary: string | null;\n\n @FoundationProperty()\n public declare boundaryElement: HTMLElement | null;\n\n @FoundationProperty()\n public declare fallbackPlacements: PositionPlacement[] | null;\n\n @FoundationProperty()\n public declare triggerType: TooltipTriggerType | TooltipTriggerType[];\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { TooltipComponent } from './tooltip';\n\nexport * from './tooltip-adapter';\nexport * from './tooltip-constants';\nexport * from './tooltip-foundation';\nexport * from './tooltip';\n\nexport function defineTooltipComponent(): void {\n defineCustomElement(TooltipComponent);\n}\n"],
5
- "mappings": "yfAsBO,IAAMA,EAAN,cAA6BC,CAA0D,CAM5F,YAAYC,EAA8B,CACxC,MAAMA,CAAS,EAJjB,KAAQ,eAAqC,KAC7C,KAAQ,gBAA4C,KAIlD,KAAK,gBAAkBC,EAAiB,KAAK,WAAYC,EAAkB,UAAU,OAAO,EAC5F,KAAK,c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mB,GA7DTZ,EA8DI,oBAGAW,EAAA,CADdC,EAAmB,GAhETZ,EAiEI,oBAGAW,EAAA,CADdC,EAAmB,GAnETZ,EAoEI,sBAGAW,EAAA,CADdC,EAAmB,GAtETZ,EAuEI,6BAIAW,EAAA,CADdC,EAAmB,CAAE,KAAM,QAAS,CAAC,GA1E3BZ,EA2EI,sBAGAW,EAAA,CADdC,EAAmB,GA7ETZ,EA8EI,yBAIAW,EAAA,CADdC,EAAmB,CAAE,KAAM,WAAY,CAAC,GAjF9BZ,EAkFI,wBAGAW,EAAA,CADdC,EAAmB,GApFTZ,EAqFI,qBAGAW,EAAA,CADdC,EAAmB,GAvFTZ,EAwFI,sBAGAW,EAAA,CADdC,EAAmB,GA1FTZ,EA2FI,oBAGAW,EAAA,CADdC,EAAmB,GA7FTZ,EA8FI,wBAGAW,EAAA,CADdC,EAAmB,GAhGTZ,EAiGI,+BAGAW,EAAA,CADdC,EAAmB,GAnGTZ,EAoGI,kCAGAW,EAAA,CADdC,EAAmB,GAtGTZ,EAuGI,2BAvGJA,EAANW,EAAA,CANNE,EAAc,CACb,KAAMT,EAAkB,YACxB,aAAc,CACZU,CACF,CACF,CAAC,GACYd,GCjGN,SAASe,IAA+B,CAC7CC,EAAoBC,CAAgB,CACtC",
4
+ "sourcesContent": ["import { getShadowElement, randomChars } from '@tylertech/forge-core';\nimport { setDefaultAria } from '../constants';\nimport { locateElementById } from '../core/utils/utils';\nimport { BaseAdapter, IBaseAdapter } from '../core/base/base-adapter';\nimport { IOverlayComponent, OVERLAY_CONSTANTS } from '../overlay';\nimport { ITooltipComponent } from './tooltip';\nimport { TOOLTIP_CONSTANTS } from './tooltip-constants';\n\nexport interface ITooltipAdapter extends IBaseAdapter {\n readonly anchorElement: HTMLElement | null;\n syncAria(): void;\n detachAria(): void;\n setAnchorElement(element: HTMLElement | null): void;\n tryLocateAnchorElement(id: string): void;\n addAnchorListener(type: string, listener: EventListener, opts?: AddEventListenerOptions): void;\n removeAnchorListener(type: string, listener: EventListener): void;\n addLightDismissListener(listener: EventListener): void;\n removeLightDismissListener(listener: EventListener): void;\n show(): void;\n hide(): void;\n}\n\nexport class TooltipAdapter extends BaseAdapter<ITooltipComponent> implements ITooltipAdapter {\n private _contentElement: HTMLElement;\n private _arrowElement: HTMLElement;\n private _anchorElement: HTMLElement | null = null;\n private _overlayElement: IOverlayComponent | null = null;\n\n constructor(component: ITooltipComponent) {\n super(component);\n this._contentElement = getShadowElement(this._component, TOOLTIP_CONSTANTS.selectors.CONTENT);\n this._arrowElement = getShadowElement(this._component, TOOLTIP_CONSTANTS.selectors.ARROW);\n }\n\n public get anchorElement(): HTMLElement | null {\n return this._anchorElement;\n }\n\n public syncAria(): void {\n const role = this._component.type === 'description' ? 'tooltip' : null;\n this._component[setDefaultAria]({ role });\n this._component[setDefaultAria]({ ariaHidden: 'true' }, { setAttribute: !this._component.hasAttribute('aria-hidden') });\n\n if (this._anchorElement) {\n if (this._component.type === 'label' && this._anchorElement.hasAttribute('aria-labelledby')) {\n return;\n }\n if (this._component.type === 'description' && this._anchorElement.hasAttribute('aria-describedby')) {\n return;\n }\n\n if (!this._component.hasAttribute('id') && this._component.type !== 'presentation') {\n this._component.id = `forge-tooltip-${randomChars()}`;\n }\n\n switch (this._component.type) {\n case 'description':\n this._anchorElement.setAttribute('aria-describedby', this._component.id);\n break;\n case 'label':\n this._anchorElement.setAttribute('aria-labelledby', this._component.id);\n break;\n }\n }\n }\n\n public detachAria(): void {\n if (this._component.type === 'description' && this._anchorElement?.getAttribute('aria-describedby') === this._component.id) {\n this._anchorElement?.removeAttribute('aria-describedby');\n }\n\n if (this._component.type === 'label' && this._anchorElement?.getAttribute('aria-labelledby') === this._component.id) {\n this._anchorElement?.removeAttribute('aria-labelledby');\n }\n }\n\n public setAnchorElement(element: HTMLElement | null): void {\n this._anchorElement = element;\n }\n\n public tryLocateAnchorElement(id: string): void {\n this._anchorElement = this._tryFindAnchorElement(id);\n }\n\n public addAnchorListener(type: string, listener: EventListener, opts?: AddEventListenerOptions): void {\n this._anchorElement?.addEventListener(type, listener, opts);\n }\n\n public removeAnchorListener(type: string, listener: EventListener): void {\n this._anchorElement?.removeEventListener(type, listener);\n }\n\n public addLightDismissListener(listener: EventListener): void {\n this._overlayElement?.addEventListener(OVERLAY_CONSTANTS.events.LIGHT_DISMISS, listener);\n }\n\n public removeLightDismissListener(listener: EventListener): void {\n this._overlayElement?.removeEventListener(OVERLAY_CONSTANTS.events.LIGHT_DISMISS, listener);\n }\n\n public show(): void {\n // Tooltips are shown above all content via <forge-overlay>\n // We do this by dynamically creating an overlay element and appending it to the shadow root\n // then we move the tooltip content into the overlay element so that it can be presented.\n if (!this._overlayElement) {\n this._overlayElement = document.createElement(OVERLAY_CONSTANTS.elementName);\n this._overlayElement.setAttribute('part', 'root:overlay');\n }\n\n this._overlayElement.placement = this._component.placement;\n this._overlayElement.anchorElement = this._anchorElement;\n this._overlayElement.arrowElement = this._arrowElement;\n this._overlayElement.offset = { mainAxis: this._component.offset };\n this._overlayElement.flip = this._component.flip;\n\n if (this._component.fallbackPlacements) {\n this._overlayElement.fallbackPlacements = this._component.fallbackPlacements;\n }\n\n if (this._component.boundaryElement) {\n this._overlayElement.boundaryElement = this._component.boundaryElement;\n } else if (this._component.boundary) {\n const boundaryEl = locateElementById(this._component, this._component.boundary);\n this._overlayElement.boundaryElement = boundaryEl;\n } else {\n this._overlayElement.boundaryElement = null;\n }\n\n this._component.shadowRoot?.appendChild(this._overlayElement);\n this._overlayElement.appendChild(this._contentElement);\n\n this._overlayElement.open = true;\n }\n\n public hide(): void {\n // Move the tooltip content back into the component, and remove the overlay element to hide the tooltip visually\n // Tooltips are still accessible when hidden, so we don't need to do anything else.\n if (this._overlayElement) {\n this._overlayElement.open = false;\n }\n this._component.shadowRoot?.appendChild(this._contentElement);\n this._overlayElement?.remove();\n }\n\n /**\n * Attempts to find an element with the given id. If no element is found, the previous sibling or parent element is returned.\n * \n * For backwards compatibility we allow for `id` to be a selector string, so that is evaluated if no element is found for the id.\n */\n private _tryFindAnchorElement(id: string): HTMLElement | null {\n if (id) {\n const rootNode = this._component.getRootNode() as Document | ShadowRoot;\n const targetEl = rootNode.getElementById(id) ?? rootNode.querySelector<HTMLElement>(id);\n if (targetEl) {\n return targetEl;\n }\n }\n return (this._component.previousElementSibling ?? this._component.parentElement) as HTMLElement;\n }\n}\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\nimport { ITooltipAdapter } from './tooltip-adapter';\nimport { TOOLTIP_CONSTANTS, TooltipPlacement, TooltipTriggerType, TooltipType } from './tooltip-constants';\nimport { WithLongpressListener } from '../core/mixins/interactions/longpress/with-longpress-listener';\nimport { canUserHoverElements } from '../constants';\nimport { OverlayFlipState } from '../overlay/overlay-constants';\nimport { PositionPlacement } from '../core/utils/position-utils';\n\nexport interface ITooltipFoundation extends ICustomElementFoundation {\n open: boolean;\n type: TooltipType;\n placement: `${TooltipPlacement}`;\n delay: number;\n anchor: string;\n anchorElement: HTMLElement | null;\n offset: number;\n flip: OverlayFlipState;\n boundary: string | null;\n boundaryElement: HTMLElement | null;\n fallbackPlacements: PositionPlacement[] | null;\n triggerType: TooltipTriggerType | TooltipTriggerType[];\n syncTooltipAria(): void;\n}\n\nconst BaseClass = WithLongpressListener();\n\nexport class TooltipFoundation extends BaseClass implements ITooltipFoundation {\n private _open = false;\n private _type: TooltipType = TOOLTIP_CONSTANTS.defaults.TYPE;\n private _anchor: string;\n private _delay = TOOLTIP_CONSTANTS.defaults.DELAY;\n private _placement: TooltipPlacement = TOOLTIP_CONSTANTS.defaults.PLACEMENT;\n private _offset = TOOLTIP_CONSTANTS.defaults.OFFSET;\n private _flip: OverlayFlipState = TOOLTIP_CONSTANTS.defaults.FLIP;\n private _boundary: string | null = null;\n private _boundaryElement: HTMLElement | null = null;\n private _fallbackPlacements: PositionPlacement[] | null = null;\n private _triggerTypes: TooltipTriggerType[] = TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n \n // Hover trigger type\n private _hoverStartListener: (evt: MouseEvent) => void = this._onHoverStart.bind(this);\n private _hoverEndListener: (evt: MouseEvent) => void = this._onHoverEnd.bind(this);\n private _hoverTimeout: number | undefined;\n\n // Focus trigger type\n private _focusListener: (evt: FocusEvent) => void = this._onFocus.bind(this);\n private _blurListener: (evt: FocusEvent) => void = this._onBlur.bind(this);\n\n // Longpress trigger type\n private _longpressVisibilityTimeout: number | undefined;\n\n // Dismiss/hide triggers\n private _scrollListener: (evt: Event) => void = this._onTryHide.bind(this);\n private _mouseDownListener: (evt: MouseEvent) => void = this._onTryHide.bind(this);\n private _dragListener: (evt: DragEvent) => void = this._onTryHide.bind(this);\n private _lightDismissListener: (evt: Event) => void = this._onTryHide.bind(this);\n \n constructor(private _adapter: ITooltipAdapter) {\n super();\n }\n\n public initialize(): void {\n if (!this._adapter.anchorElement) {\n this._adapter.tryLocateAnchorElement(this._anchor);\n }\n\n this._adapter.syncAria();\n this._attachAnchorListeners();\n\n if (this._open) {\n this._show();\n }\n }\n\n public destroy(): void {\n if (this._open) {\n this._hide();\n }\n this._adapter.detachAria();\n this._detachAnchorListeners();\n }\n\n public syncTooltipAria(): void {\n this._adapter.syncAria();\n }\n\n private _attachAnchorListeners(): void {\n if (!this._adapter.anchorElement) {\n return;\n }\n\n const triggerTypes = [...this._triggerTypes];\n\n // If the users input mechanism doesn't support hover, then we need to force longpress as their alternative\n /* c8 ignore next 4 */\n if (!canUserHoverElements) {\n triggerTypes.splice(triggerTypes.indexOf('hover'), 1);\n triggerTypes.push('longpress');\n }\n\n const triggerInitializers: Record<TooltipTriggerType, () => void> = {\n 'hover': () => this._adapter.addAnchorListener('mouseenter', this._hoverStartListener),\n 'longpress': () => this._startLongpressListener(this._adapter.anchorElement as HTMLElement),\n 'focus': () => this._adapter.addAnchorListener('focusin', this._focusListener)\n };\n triggerTypes.forEach(triggerType => triggerInitializers[triggerType]());\n }\n\n private _detachAnchorListeners(): void {\n if (!this._adapter.anchorElement) {\n return;\n }\n\n const triggerTypes = [...this._triggerTypes];\n\n /* c8 ignore next 3 */\n if (!canUserHoverElements) {\n triggerTypes.push('longpress');\n }\n\n const triggerRemovers: Record<TooltipTriggerType, () => void> = {\n 'hover': () => {\n this._adapter.removeAnchorListener('mouseenter', this._hoverStartListener);\n this._adapter.removeAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.removeAnchorListener('mouseleave', this._hoverEndListener);\n },\n 'longpress': () => this._stopLongpressListener(this._adapter.anchorElement as HTMLElement),\n 'focus': () => {\n this._adapter.removeAnchorListener('focusin', this._focusListener);\n this._adapter.removeAnchorListener('focusout', this._blurListener);\n }\n };\n triggerTypes.forEach(triggerType => triggerRemovers[triggerType]());\n }\n\n private _show(): void {\n this._open = true;\n this._adapter.show();\n this._attachDismissListeners();\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OPEN, this._open);\n }\n\n private _hide(): void {\n window.clearTimeout(this._hoverTimeout);\n window.clearTimeout(this._longpressVisibilityTimeout);\n\n this._open = false;\n this._adapter.hide();\n this._detachDismissListeners();\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OPEN, this._open);\n }\n\n private _attachDismissListeners(): void {\n this._adapter.addAnchorListener('mousedown', this._mouseDownListener);\n this._adapter.addAnchorListener('dragstart', this._dragListener);\n this._adapter.addDocumentListener('scroll', this._scrollListener);\n this._adapter.addDocumentListener('wheel', this._scrollListener);\n this._adapter.addLightDismissListener(this._lightDismissListener);\n }\n \n private _detachDismissListeners(): void {\n this._adapter.removeAnchorListener('mousedown', this._mouseDownListener);\n this._adapter.removeAnchorListener('dragstart', this._dragListener);\n this._adapter.removeDocumentListener('scroll', this._scrollListener);\n this._adapter.removeDocumentListener('wheel', this._scrollListener);\n this._adapter.removeLightDismissListener(this._lightDismissListener);\n }\n\n private _onHoverStart(_evt: MouseEvent): void {\n /* c8 ignore next 3 */\n if (this._open) {\n return;\n }\n\n this._adapter.addAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.addAnchorListener('mouseleave', this._hoverEndListener);\n \n if (this._delay) {\n this._hoverTimeout = window.setTimeout(() => {\n this._onTryShow();\n }, this._delay);\n } else {\n this._onTryShow();\n }\n }\n\n private _onHoverEnd(_evt: MouseEvent): void {\n this._adapter.removeAnchorListener('mousedown', this._hoverEndListener);\n this._adapter.removeAnchorListener('mouseleave', this._hoverEndListener);\n window.clearTimeout(this._hoverTimeout);\n this._onTryHide();\n }\n\n private _onFocus(_evt: FocusEvent): void {\n /* c8 ignore next 3 */\n if (this._open) {\n return;\n }\n this._adapter.addAnchorListener('focusout', this._blurListener);\n this._onTryShow();\n }\n\n private _onBlur(_evt: FocusEvent): void {\n this._adapter.removeAnchorListener('focusout', this._blurListener);\n this._onTryHide();\n }\n\n protected _onLongpress(): void {\n this._onTryShow();\n }\n\n protected override _onLongpressEnd(evt: PointerEvent | TouchEvent): void {\n super._onLongpressEnd(evt);\n\n // We only start the timeout to hide the tooltip after the user lifts the pointer\n this._longpressVisibilityTimeout = window.setTimeout(() => {\n this._onTryHide();\n }, TOOLTIP_CONSTANTS.numbers.LONGPRESS_VISIBILITY_DURATION);\n }\n\n private _onTryShow(): void {\n if (!this._open) {\n this._show();\n }\n }\n\n private _onTryHide(): void {\n if (this._open) {\n this._hide();\n }\n }\n \n public get open(): boolean {\n return this._open;\n }\n public set open(value: boolean) {\n value = Boolean(value);\n if (this._open !== value) {\n if (this._adapter.isConnected) {\n if (!this._open) {\n this._show();\n } else {\n this._hide();\n }\n } else {\n this._open = value;\n }\n }\n }\n\n public get type(): TooltipType {\n return this._type;\n }\n public set type(value: TooltipType) {\n value ??= TOOLTIP_CONSTANTS.defaults.TYPE;\n if (this._type !== value) {\n this._type = value;\n if (this._adapter.isConnected) {\n this._adapter.syncAria();\n }\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.TYPE, this._type !== TOOLTIP_CONSTANTS.defaults.TYPE, this._type);\n }\n }\n\n public get anchor(): string {\n return this._anchor;\n }\n public set anchor(value: string) {\n if (this._anchor !== value) {\n this._anchor = value;\n\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n this._adapter.detachAria();\n this._adapter.tryLocateAnchorElement(this._anchor);\n this._adapter.syncAria();\n this._attachAnchorListeners();\n }\n\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.ANCHOR, !!this._anchor, this._anchor);\n }\n }\n\n public get anchorElement(): HTMLElement | null {\n return this._adapter.anchorElement;\n }\n public set anchorElement(element: HTMLElement | null) {\n if (this._adapter.anchorElement !== element) {\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n this._adapter.detachAria();\n }\n\n this._adapter.setAnchorElement(element);\n \n if (this._adapter.isConnected) {\n this._adapter.syncAria();\n this._attachAnchorListeners();\n }\n }\n }\n\n public get delay(): number {\n return this._delay;\n }\n public set delay(value: number) {\n if (this._delay !== value) {\n this._delay = value;\n this._adapter.setHostAttribute(TOOLTIP_CONSTANTS.attributes.DELAY, String(this._delay));\n }\n }\n\n public get placement(): TooltipPlacement {\n return this._placement;\n }\n public set placement(value: TooltipPlacement) {\n value ??= TOOLTIP_CONSTANTS.defaults.PLACEMENT;\n if (this._placement !== value) {\n this._placement = value;\n this._adapter.setHostAttribute(TOOLTIP_CONSTANTS.attributes.PLACEMENT, String(this._placement));\n }\n }\n\n public get offset(): number {\n return this._offset;\n }\n public set offset(value: number) {\n value ??= TOOLTIP_CONSTANTS.defaults.OFFSET;\n if (this._offset !== value) {\n this._offset = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.OFFSET, this._offset !== TOOLTIP_CONSTANTS.defaults.OFFSET, String(this._offset));\n }\n }\n\n public get flip(): OverlayFlipState {\n return this._flip;\n }\n public set flip(value: OverlayFlipState) {\n value ??= TOOLTIP_CONSTANTS.defaults.FLIP;\n if (this._flip !== value) {\n this._flip = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.FLIP, this._flip !== TOOLTIP_CONSTANTS.defaults.FLIP, String(this._flip));\n }\n }\n\n public get boundary(): string | null {\n return this._boundary;\n }\n public set boundary(value: string | null) {\n if (this._boundary !== value) {\n this._boundary = value;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.BOUNDARY, !!this._boundary, this._boundary as string);\n }\n }\n\n public get boundaryElement(): HTMLElement | null {\n return this._boundaryElement;\n }\n public set boundaryElement(element: HTMLElement | null) {\n if (this._boundaryElement !== element) {\n this._boundaryElement = element;\n this._adapter.toggleHostAttribute(TOOLTIP_CONSTANTS.attributes.BOUNDARY, !!this._boundaryElement, this._boundaryElement?.id);\n }\n }\n\n public get fallbackPlacements(): PositionPlacement[] | null {\n return this._fallbackPlacements;\n }\n public set fallbackPlacements(value: PositionPlacement[] | null) {\n if (this._fallbackPlacements !== value) {\n this._fallbackPlacements = value;\n }\n }\n\n public get triggerType(): TooltipTriggerType | TooltipTriggerType[] {\n return this._triggerTypes.length === 1 ? this._triggerTypes[0] : this._triggerTypes;\n }\n public set triggerType(value: TooltipTriggerType | TooltipTriggerType[]) {\n if (this._triggerTypes !== value) {\n if (this._adapter.isConnected) {\n this._detachAnchorListeners();\n }\n\n this._triggerTypes = Array.isArray(value) ? value : [value];\n this._triggerTypes = this._triggerTypes.filter(type => !!type);\n\n if (!this._triggerTypes.length) {\n this._triggerTypes = TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n }\n\n if (this._adapter.isConnected) {\n this._attachAnchorListeners();\n }\n }\n }\n}\n", "import { CustomElement, coerceNumber, FoundationProperty, coerceBoolean, attachShadowTemplate } from '@tylertech/forge-core';\nimport { TooltipAdapter } from './tooltip-adapter';\nimport { TooltipFoundation } from './tooltip-foundation';\nimport { TooltipPlacement, TooltipTriggerType, TooltipType, TOOLTIP_CONSTANTS } from './tooltip-constants';\nimport { BaseComponent } from '../core/base/base-component';\nimport { OverlayComponent } from '../overlay/overlay';\nimport { coerceStringToArray } from '../core/utils/utils';\nimport { IWithDefaultAria, WithDefaultAria } from '../core/mixins/internals/with-default-aria';\nimport { IWithElementInternals, WithElementInternals } from '../core/mixins/internals/with-element-internals';\nimport { OverlayFlipState } from '../overlay/overlay-constants';\nimport { PositionPlacement } from '../core/utils/position-utils';\n\nconst template = '<template><div class=\\\"forge-tooltip\\\" part=\\\"surface\\\"><slot></slot><div class=\\\"arrow\\\" part=\\\"arrow\\\"></div></div></template>';\nconst styles = '@-webkit-keyframes slidein{from{opacity:0;-webkit-transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;-webkit-transform:translateX(0) translateY(0);transform:translateX(0) translateY(0)}}@keyframes slidein{from{opacity:0;-webkit-transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;-webkit-transform:translateX(0) translateY(0);transform:translateX(0) translateY(0)}}:host{display:contents;pointer-events:none}:host([hidden]){display:none}.forge-tooltip{--_tooltip-background:var(--forge-tooltip-background, var(--forge-theme-surface-inverse, #333333));--_tooltip-color:var(--forge-tooltip-color, var(--forge-theme-on-surface-inverse, #ffffff));--_tooltip-shape:var(--forge-tooltip-shape, var(--forge-shape-medium, 4px));--_tooltip-padding:var(--forge-tooltip-padding, var(--forge-spacing-xsmall, 8px));--_tooltip-padding-block:var(--forge-tooltip-padding-block, var(--_tooltip-padding));--_tooltip-padding-inline:var(--forge-tooltip-padding-inline, var(--_tooltip-padding));--_tooltip-width:var(--forge-tooltip-width, max-content);--_tooltip-max-width:var(--forge-tooltip-max-width, 320px);--_tooltip-elevation:var(--forge-tooltip-elevation, var(--forge-theme-popup-elevation, var(--forge-theme-surface-bright-shadow)));--_tooltip-content-align:var(--forge-tooltip-content-align, center);--_tooltip-border-width:var(--forge-tooltip-border-width, 0);--_tooltip-border-style:var(--forge-tooltip-border-style, solid);--_tooltip-border-color:var(--forge-tooltip-border-color, var(--forge-theme-outline, #e0e0e0));--_tooltip-animation-timing:var(--forge-tooltip-animation-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_tooltip-animation-duration:var(--forge-tooltip-animation-duration, var(--forge-animation-duration-short3, 150ms));--_tooltip-animation-offset:var(--forge-tooltip-animation-offset, 24px);--_tooltip-arrow-size:var(--forge-tooltip-arrow-size, 8px);--_tooltip-arrow-height:var(--forge-tooltip-arrow-height, var(--_tooltip-arrow-size));--_tooltip-arrow-width:var(--forge-tooltip-arrow-width, var(--_tooltip-arrow-size));--_tooltip-arrow-shape:var(--forge-tooltip-arrow-shape, var(--forge-shape-small, 2px));--_tooltip-arrow-rotation:var(--forge-tooltip-arrow-rotation, 0deg);--_tooltip-arrow-top-rotation:var(--forge-tooltip-arrow-top-rotation, 315deg);--_tooltip-arrow-right-rotation:var(--forge-tooltip-arrow-right-rotation, 45deg);--_tooltip-arrow-bottom-rotation:var(--forge-tooltip-arrow-bottom-rotation, 135deg);--_tooltip-arrow-left-rotation:var(--forge-tooltip-arrow-left-rotation, 225deg)}.forge-tooltip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, \\\"Roboto\\\", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-body1-text-decoration,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);position:relative;background:var(--_tooltip-background);color:var(--_tooltip-color);border-radius:var(--_tooltip-shape);border-width:var(--_tooltip-border-width);border-style:var(--_tooltip-border-style);border-color:var(--_tooltip-border-color);padding-block:var(--_tooltip-padding-block);padding-inline:var(--_tooltip-padding-inline);-webkit-box-shadow:var(--_tooltip-elevation);box-shadow:var(--_tooltip-elevation);width:var(--_tooltip-width);max-width:var(--_tooltip-max-width);pointer-events:none;text-align:var(--_tooltip-content-align);line-height:normal;white-space:normal;-webkit-animation-duration:var(--_tooltip-animation-duration);animation-duration:var(--_tooltip-animation-duration);-webkit-animation-timing-function:var(--_tooltip-animation-timing);animation-timing-function:var(--_tooltip-animation-timing);-webkit-animation-name:slidein;animation-name:slidein;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(:not([open])) .forge-tooltip{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.arrow{position:absolute;contain:strict;background-color:inherit;height:var(--_tooltip-arrow-height);width:var(--_tooltip-arrow-width);-webkit-box-shadow:inherit;box-shadow:inherit;border:inherit;border-end-start-radius:var(--_tooltip-arrow-shape);rotate:var(--_tooltip-arrow-rotation);-webkit-clip-path:var(--_tooltip-arrow-clip-path);clip-path:var(--_tooltip-arrow-clip-path);--_tooltip-arrow-translate-x:0;--_tooltip-arrow-translate-y:0;--_tooltip-arrow-clip-path:polygon(0 0, 0 100%, 100% 100%)}.forge-tooltip{--_tooltip-slidein-x:0;--_tooltip-slidein-y:0}forge-overlay[open][position-placement^=top] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=top] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-top-rotation);-webkit-margin-after:var(--_tooltip-border-width);margin-block-end:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=right] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=right] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-right-rotation);-webkit-margin-start:var(--_tooltip-border-width);margin-inline-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=bottom] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=bottom] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-bottom-rotation);-webkit-margin-before:var(--_tooltip-border-width);margin-block-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=left] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=left] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-left-rotation);-webkit-margin-end:var(--_tooltip-border-width);margin-inline-end:var(--_tooltip-border-width)}';\n\nexport interface ITooltipComponent extends IWithDefaultAria, IWithElementInternals {\n open: boolean;\n type: TooltipType;\n anchor: string;\n anchorElement: HTMLElement | null;\n /** @deprecated use `anchor` instead */\n target: string;\n placement: `${TooltipPlacement}`;\n /** @deprecated use `placement` instead */\n position: `${TooltipPlacement}`;\n delay: number;\n offset: number;\n flip: OverlayFlipState;\n boundary: string | null;\n boundaryElement: HTMLElement | null;\n fallbackPlacements: PositionPlacement[] | null;\n triggerType: TooltipTriggerType | TooltipTriggerType[];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-tooltip': ITooltipComponent;\n }\n}\n\nconst BaseClass = WithDefaultAria(WithElementInternals(BaseComponent));\n\n/**\n * @tag forge-tooltip\n * \n * @summary Tooltips display information related to an element when the user hovers over an element.\n *\n * @property {boolean} open - Whether or not the tooltip is open.\n * @property {TooltipType} type - The type of tooltip. Valid values are `presentation` (default), `label`, and `description`.\n * @property {string} anchor - The id of the element that the tooltip is anchored to.\n * @property {TooltipPlacement} placement - The placement of the tooltip relative to the anchor element.\n * @property {number} delay - The delay in milliseconds before the tooltip is shown.\n * @property {number} offset - The offset in pixels between the tooltip and the anchor element.\n * @property {OverlayFlipState} - flip - How the tooltip should place itself if there is not enough space at the desired placement.\n * @property {string | null} boundary - The id of the element that the tooltip should be constrained to.\n * @property {HTMLElement | null} boundaryElement - The element that the tooltip should be constrained to.\n * @property {PositionPlacement[] | null} fallbackPlacements - The fallback placements of the tooltip relative to the anchor element.\n * @property {TooltipTriggerType | TooltipTriggerType[]} triggerType - The trigger type(s) that will open the tooltip. Valid values are `hover` (default), `longpress`, and `focus`.\n * \n * @attribute {boolean} open - Whether or not the tooltip is open.\n * @attribute {TooltipType} type - The type of tooltip. Valid values are `presentation` (default), `label`, and `description`.\n * @attribute {string} anchor - The id of the element that the tooltip is anchored to.\n * @attribute {TooltipPlacement} placement - The placement of the tooltip relative to the anchor element.\n * @attribute {number} delay - The delay in milliseconds before the tooltip is shown.\n * @attribute {number} offset - The offset in pixels between the tooltip and the anchor element.\n * @attribute {OverlayFlipState} flip - How the tooltip should place itself if there is not enough space at the desired placement.\n * @attribute {string | null} boundary - The id of the element that the tooltip should be constrained to.\n * @attribute {PositionPlacement[]} fallbackPlacements - The fallback placements of the tooltip relative to the anchor element.\n * \n * @cssproperty --forge-tooltip-background - The background color of the tooltip surface.\n * @cssproperty --forge-tooltip-color - The text color of the tooltip surface.\n * @cssproperty --forge-tooltip-shape - The shape of the tooltip surface.\n * @cssproperty --forge-tooltip-padding - The padding of the tooltip surface.\n * @cssproperty --forge-tooltip-padding-block - The block padding of the tooltip surface.\n * @cssproperty --forge-tooltip-padding-inline - The inline padding of the tooltip surface.\n * @cssproperty --forge-tooltip-max-width - The maximum width of the tooltip surface.\n * @cssproperty --forge-tooltip-elevation - The elevation of the tooltip surface.\n * @cssproperty --forge-tooltip-border-width - The border width of the tooltip surface.\n * @cssproperty --forge-tooltip-border-style - The border style of the tooltip surface.\n * @cssproperty --forge-tooltip-border-color - The border color of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-timing - The animation timing function of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-duration - The animation duration of the tooltip surface.\n * @cssproperty --forge-tooltip-animation-offset - The animation offset of the tooltip surface.\n * @cssproperty --forge-tooltip-arrow-size - The size of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-height - The height of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-width - The width of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-shape - The shape of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-clip-path - The clip path of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-rotation - The rotation of the tooltip arrow.\n * @cssproperty --forge-tooltip-arrow-top-rotation - The rotation of the tooltip arrow when the tooltip is placed on top.\n * @cssproperty --forge-tooltip-arrow-right-rotation - The rotation of the tooltip arrow when the tooltip is placed on the right.\n * @cssproperty --forge-tooltip-arrow-bottom-rotation - The rotation of the tooltip arrow when the tooltip is placed on the bottom.\n * @cssproperty --forge-tooltip-arrow-left-rotation- The rotation of the tooltip arrow when the tooltip is placed on the left.\n * \n * @slot - The content to display in the tooltip.\n * \n * @csspart surface - The tooltip surface.\n * @csspart arrow - The tooltip arrow.\n * @csspart overlay - The overlay surface.\n */\n@CustomElement({\n name: TOOLTIP_CONSTANTS.elementName,\n dependencies: [\n OverlayComponent\n ]\n})\nexport class TooltipComponent extends BaseClass implements ITooltipComponent {\n public static get observedAttributes(): string[] {\n return Object.values(TOOLTIP_CONSTANTS.observedAttributes);\n }\n\n private _foundation: TooltipFoundation;\n\n constructor() {\n super();\n attachShadowTemplate(this, template, styles);\n this._foundation = new TooltipFoundation(new TooltipAdapter(this));\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public disconnectedCallback(): void {\n this._foundation.destroy();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case TOOLTIP_CONSTANTS.observedAttributes.ID:\n this._foundation.syncTooltipAria();\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.OPEN:\n this.open = coerceBoolean(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TYPE:\n this.type = newValue?.trim() ? newValue as TooltipType : TOOLTIP_CONSTANTS.defaults.TYPE;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TARGET:\n case TOOLTIP_CONSTANTS.observedAttributes.ANCHOR:\n this.anchor = newValue;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.DELAY:\n this.delay = coerceNumber(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.POSITION:\n case TOOLTIP_CONSTANTS.observedAttributes.PLACEMENT:\n this.placement = newValue as TooltipPlacement;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.OFFSET:\n this.offset = coerceNumber(newValue);\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.FLIP:\n this.flip = newValue as OverlayFlipState;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.BOUNDARY:\n this.boundary = newValue;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.FALLBACK_PLACEMENTS:\n this.fallbackPlacements = newValue?.trim() ? coerceStringToArray<PositionPlacement>(newValue) : null;\n break;\n case TOOLTIP_CONSTANTS.observedAttributes.TRIGGER_TYPE:\n this.triggerType = newValue?.trim() ? coerceStringToArray<TooltipTriggerType>(newValue) : TOOLTIP_CONSTANTS.defaults.TRIGGER_TYPES;\n break;\n }\n }\n\n @FoundationProperty()\n public declare open: boolean;\n\n @FoundationProperty()\n public declare type: TooltipType;\n\n @FoundationProperty()\n public declare anchor: string;\n\n @FoundationProperty()\n public declare anchorElement: HTMLElement | null;\n\n /** @deprecated use `anchor` instead */\n @FoundationProperty({ name: 'anchor' })\n public declare target: string;\n\n @FoundationProperty()\n public declare placement: `${TooltipPlacement}`;\n\n /** @deprecated use `placement` instead */\n @FoundationProperty({ name: 'placement' })\n public declare position: `${TooltipPlacement}`;\n\n @FoundationProperty()\n public declare delay: number;\n\n @FoundationProperty()\n public declare offset: number;\n\n @FoundationProperty()\n public declare flip: OverlayFlipState;\n\n @FoundationProperty()\n public declare boundary: string | null;\n\n @FoundationProperty()\n public declare boundaryElement: HTMLElement | null;\n\n @FoundationProperty()\n public declare fallbackPlacements: PositionPlacement[] | null;\n\n @FoundationProperty()\n public declare triggerType: TooltipTriggerType | TooltipTriggerType[];\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { TooltipComponent } from './tooltip';\n\nexport * from './tooltip-adapter';\nexport * from './tooltip-constants';\nexport * from './tooltip-foundation';\nexport * from './tooltip';\n\nexport function defineTooltipComponent(): void {\n defineCustomElement(TooltipComponent);\n}\n"],
5
+ "mappings": "yfAsBO,IAAMA,EAAN,cAA6BC,CAA0D,CAM5F,YAAYC,EAA8B,CACxC,MAAMA,CAAS,EAJjB,KAAQ,eAAqC,KAC7C,KAAQ,gBAA4C,KAIlD,KAAK,gBAAkBC,EAAiB,KAAK,WAAYC,EAAkB,UAAU,OAAO,EAC5F,KAAK,cAAgBD,EAAiB,KAAK,WAAYC,EAAkB,UAAU,KAAK,CAC1F,CAEA,IAAW,eAAoC,CAC7C,OAAO,KAAK,cACd,CAEO,UAAiB,CACtB,IAAMC,EAAO,KAAK,WAAW,OAAS,cAAgB,UAAY,KAIlE,GAHA,KAAK,WAAWC,CAAc,EAAE,CAAE,KAAAD,CAAK,CAAC,EACxC,KAAK,WAAWC,CAAc,EAAE,CAAE,WAAY,MAAO,EAAG,CAAE,aAAc,CAAC,KAAK,WAAW,aAAa,aAAa,CAAE,CAAC,EAElH,KAAK,eAAgB,CAIvB,GAHI,KAAK,WAAW,OAAS,SAAW,KAAK,eAAe,aAAa,iBAAiB,GAGtF,KAAK,WAAW,OAAS,eAAiB,KAAK,eAAe,aAAa,kBAAkB,EAC/F,OAOF,OAJI,CAAC,KAAK,WAAW,aAAa,IAAI,GAAK,KAAK,WAAW,OAAS,iBAClE,KAAK,WAAW,GAAK,iBAAiBC,EAAY,KAG5C,KAAK,WAAW,KAAM,CAC5B,IAAK,cACH,KAAK,eAAe,aAAa,mBAAoB,KAAK,WAAW,EAAE,EACvE,MACF,IAAK,QACH,KAAK,eAAe,aAAa,kBAAmB,KAAK,WAAW,EAAE,E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AASe,IAA+B,CAC7CC,EAAoBC,CAAgB,CACtC",
6
6
  "names": ["TooltipAdapter", "BaseAdapter", "component", "getShadowElement", "TOOLTIP_CONSTANTS", "role", "setDefaultAria", "randomChars", "_a", "_b", "_c", "_d", "element", "id", "type", "listener", "opts", "OVERLAY_CONSTANTS", "boundaryEl", "locateElementById", "rootNode", "targetEl", "BaseClass", "WithLongpressListener", "TooltipFoundation", "_adapter", "TOOLTIP_CONSTANTS", "triggerTypes", "canUserHoverElements", "triggerInitializers", "triggerType", "triggerRemovers", "_evt", "evt", "value", "element", "_a", "type", "template", "styles", "BaseClass", "WithDefaultAria", "WithElementInternals", "BaseComponent", "TooltipComponent", "attachShadowTemplate", "TooltipFoundation", "TooltipAdapter", "TOOLTIP_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "coerceNumber", "coerceStringToArray", "__decorateClass", "FoundationProperty", "CustomElement", "OverlayComponent", "defineTooltipComponent", "defineCustomElement", "TooltipComponent"]
7
7
  }
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as E}from"./chunk.BX4AQRHB.js";import{a as v}from"./chunk.ZY3ETQ3D.js";import{a as o}from"./chunk.NVUMRW44.js";import{f as m,k as h}from"./chunk.TPXXHX5J.js";import{f as l,g as _}from"./chunk.HZUQXCOQ.js";import{b as p,k as c}from"./chunk.J2M2MXP2.js";import{d as s}from"./chunk.M3QDAYD2.js";var f={OPEN:"open",DIRECTION:"direction"},D={DRAWER:"forge-drawer",LEFT:"forge-drawer--left",RIGHT:"forge-drawer--right",CLOSING:"forge-drawer--closing",CLOSED:"forge-drawer--closed",NO_TRANSITION:"forge-drawer--no-transition"},w={DRAWER:`.${D.DRAWER}`},b={AFTER_OPEN:"forge-drawer-after-open",AFTER_CLOSE:"forge-drawer-after-close"},e={attributes:f,classes:D,selectors:w,events:b};var u=class extends v{constructor(t){super(t);this._component=t;this._drawerElement=m(this._component,e.selectors.DRAWER)}proxyScrollEvent(){this.tryUnproxyScrollEvent(),this._unproxyScrollEventCb=E(this._component.shadowRoot,this._component)}tryUnproxyScrollEvent(){this._unproxyScrollEventCb&&this._unproxyScrollEventCb()}setDirection(t){switch(t){case"left":this._drawerElement.classList.remove(e.classes.RIGHT),this._drawerElement.classList.add(e.classes.LEFT);break;case"right":this._drawerElement.classList.remove(e.classes.LEFT),this._drawerElement.classList.add(e.classes.RIGHT);break}}removeDrawerClass(t){_(t,this._drawerElement)}setDrawerClass(t){l(t,this._drawerElement)}listenTransitionComplete(t){this._activeTransitionListener&&this._drawerElement.removeEventListener("transitionend",this._activeTransitionListener),this._activeTransitionListener=a=>{a.propertyName==="transform"&&(this._activeTransitionListener&&(this._drawerElement.removeEventListener("transitionend",this._activeTransitionListener),this._activeTransitionListener=void 0),t())},this._drawerElement.addEventListener("transitionend",this._activeTransitionListener)}};var C=class{constructor(r){this._adapter=r;this._open=!0;this._direction="left";this._hasInitialized=!1;this._openAnimationListener=()=>this._onOpenComplete(),this._closeAnimationListener=()=>this._onCloseComplete()}connect(){this._open?this._setOpened():this._setClosed(),this._applyDirection(),this._adapter.proxyScrollEvent(),this._hasInitialized=!0}disconnect(){this._adapter.tryUnproxyScrollEvent(),this._hasInitialized=!1}_applyDirection(){this._adapter.setDirection(this._direction),this._adapter.setHostAttribute(e.attributes.DIRECTION,p(this._direction)?this._direction.toString():"")}_onOpenComplete(){this._open&&(this._setOpened(),this._adapter.emitHostEvent(e.events.AFTER_OPEN))}_onCloseComplete(){this._open||(this._setClosed(),this._adapter.emitHostEvent(e.events.AFTER_CLOSE))}_setOpened(){this._adapter.removeDrawerClass([e.classes.CLOSED,e.classes.CLOSING]),this._adapter.setHostAttribute(e.attributes.OPEN)}_setClosed(){this._adapter.removeDrawerClass([e.classes.CLOSING,e.classes.NO_TRANSITION]),this._adapter.setDrawerClass(e.classes.CLOSED),this._adapter.removeHostAttribute(e.attributes.OPEN)}_applyOpen(){this._open?(this._triggerDrawerOpen(),this._adapter.setHostAttribute(e.attributes.OPEN)):(this._triggerDrawerClose(),this._adapter.removeHostAttribute(e.attributes.OPEN))}_triggerDrawerOpen(){this._adapter.listenTransitionComplete(this._openAnimationListener),this._adapter.removeDrawerClass([e.classes.CLOSED,e.classes.CLOSING])}_triggerDrawerClose(){this._adapter.listenTransitionComplete(this._closeAnimationListener),this._adapter.setDrawerClass(e.classes.CLOSING)}get open(){return this._open}set open(r){this._open!==r&&(this._open=r,this._hasInitialized&&this._applyOpen())}get direction(){return this._direction}set direction(r){this._direction!==r&&(this._direction=r,this._hasInitialized&&this._applyDirection())}};var i=class extends h{constructor(){super()}static get observedAttributes(){return[e.attributes.OPEN,e.attributes.DIRECTION]}connectedCallback(){this._foundation.connect()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,a,d){switch(t){case e.attributes.OPEN:this.open=c(d);break;case e.attributes.DIRECTION:this.direction=d;break}}};s([o()],i.prototype,"open",2),s([o()],i.prototype,"direction",2);export{e as a,u as b,C as c,i as d};
7
- //# sourceMappingURL=chunk.RKG66YKS.js.map
6
+ import{a as E}from"./chunk.BX4AQRHB.js";import{a as v}from"./chunk.6GSVB5NB.js";import{a as o}from"./chunk.NVUMRW44.js";import{f as m,k as h}from"./chunk.BIQTNLIF.js";import{f as l,g as _}from"./chunk.DCCFF327.js";import{b as p,k as c}from"./chunk.J2M2MXP2.js";import{d as s}from"./chunk.M3QDAYD2.js";var f={OPEN:"open",DIRECTION:"direction"},D={DRAWER:"forge-drawer",LEFT:"forge-drawer--left",RIGHT:"forge-drawer--right",CLOSING:"forge-drawer--closing",CLOSED:"forge-drawer--closed",NO_TRANSITION:"forge-drawer--no-transition"},w={DRAWER:`.${D.DRAWER}`},b={AFTER_OPEN:"forge-drawer-after-open",AFTER_CLOSE:"forge-drawer-after-close"},e={attributes:f,classes:D,selectors:w,events:b};var u=class extends v{constructor(t){super(t);this._component=t;this._drawerElement=m(this._component,e.selectors.DRAWER)}proxyScrollEvent(){this.tryUnproxyScrollEvent(),this._unproxyScrollEventCb=E(this._component.shadowRoot,this._component)}tryUnproxyScrollEvent(){this._unproxyScrollEventCb&&this._unproxyScrollEventCb()}setDirection(t){switch(t){case"left":this._drawerElement.classList.remove(e.classes.RIGHT),this._drawerElement.classList.add(e.classes.LEFT);break;case"right":this._drawerElement.classList.remove(e.classes.LEFT),this._drawerElement.classList.add(e.classes.RIGHT);break}}removeDrawerClass(t){_(t,this._drawerElement)}setDrawerClass(t){l(t,this._drawerElement)}listenTransitionComplete(t){this._activeTransitionListener&&this._drawerElement.removeEventListener("transitionend",this._activeTransitionListener),this._activeTransitionListener=a=>{a.propertyName==="transform"&&(this._activeTransitionListener&&(this._drawerElement.removeEventListener("transitionend",this._activeTransitionListener),this._activeTransitionListener=void 0),t())},this._drawerElement.addEventListener("transitionend",this._activeTransitionListener)}};var C=class{constructor(r){this._adapter=r;this._open=!0;this._direction="left";this._hasInitialized=!1;this._openAnimationListener=()=>this._onOpenComplete(),this._closeAnimationListener=()=>this._onCloseComplete()}connect(){this._open?this._setOpened():this._setClosed(),this._applyDirection(),this._adapter.proxyScrollEvent(),this._hasInitialized=!0}disconnect(){this._adapter.tryUnproxyScrollEvent(),this._hasInitialized=!1}_applyDirection(){this._adapter.setDirection(this._direction),this._adapter.setHostAttribute(e.attributes.DIRECTION,p(this._direction)?this._direction.toString():"")}_onOpenComplete(){this._open&&(this._setOpened(),this._adapter.emitHostEvent(e.events.AFTER_OPEN))}_onCloseComplete(){this._open||(this._setClosed(),this._adapter.emitHostEvent(e.events.AFTER_CLOSE))}_setOpened(){this._adapter.removeDrawerClass([e.classes.CLOSED,e.classes.CLOSING]),this._adapter.setHostAttribute(e.attributes.OPEN)}_setClosed(){this._adapter.removeDrawerClass([e.classes.CLOSING,e.classes.NO_TRANSITION]),this._adapter.setDrawerClass(e.classes.CLOSED),this._adapter.removeHostAttribute(e.attributes.OPEN)}_applyOpen(){this._open?(this._triggerDrawerOpen(),this._adapter.setHostAttribute(e.attributes.OPEN)):(this._triggerDrawerClose(),this._adapter.removeHostAttribute(e.attributes.OPEN))}_triggerDrawerOpen(){this._adapter.listenTransitionComplete(this._openAnimationListener),this._adapter.removeDrawerClass([e.classes.CLOSED,e.classes.CLOSING])}_triggerDrawerClose(){this._adapter.listenTransitionComplete(this._closeAnimationListener),this._adapter.setDrawerClass(e.classes.CLOSING)}get open(){return this._open}set open(r){this._open!==r&&(this._open=r,this._hasInitialized&&this._applyOpen())}get direction(){return this._direction}set direction(r){this._direction!==r&&(this._direction=r,this._hasInitialized&&this._applyDirection())}};var i=class extends h{constructor(){super()}static get observedAttributes(){return[e.attributes.OPEN,e.attributes.DIRECTION]}connectedCallback(){this._foundation.connect()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,a,d){switch(t){case e.attributes.OPEN:this.open=c(d);break;case e.attributes.DIRECTION:this.direction=d;break}}};s([o()],i.prototype,"open",2),s([o()],i.prototype,"direction",2);export{e as a,u as b,C as c,i as d};
7
+ //# sourceMappingURL=chunk.FBDRM4YN.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{k as Vt,m as zt,n as Lt}from"./chunk.4SP42UG3.js";import{a as Wt}from"./chunk.ZY3ETQ3D.js";import{a as A}from"./chunk.NVUMRW44.js";import{a as Ft,b as Yt}from"./chunk.UVXKHQQZ.js";import{a as $t}from"./chunk.NHOGZDLN.js";import{a as Mt,e as kt,f as Nt,k as Bt}from"./chunk.TPXXHX5J.js";import{k as tt}from"./chunk.J2M2MXP2.js";import{a as E,b as S,c as yt,d as _}from"./chunk.M3QDAYD2.js";var Ut=["top","right","bottom","left"];var U=Math.min,Y=Math.max,pt=Math.round,mt=Math.floor,V=t=>({x:t,y:t}),Ae={left:"right",right:"left",bottom:"top",top:"bottom"},Pe={start:"end",end:"start"};function Ot(t,n,e){return Y(t,U(n,e))}function q(t,n){return typeof t=="function"?t(n):t}function j(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Tt(t){return t==="x"?"y":"x"}function Et(t){return t==="y"?"height":"width"}function dt(t){return["top","bottom"].includes(j(t))?"y":"x"}function xt(t){return Tt(dt(t))}function jt(t,n,e){e===void 0&&(e=!1);let i=et(t),o=xt(t),s=Et(o),r=o==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(r=ft(r)),[r,ft(r)]}function Xt(t){let n=ft(t);return[vt(t),n,vt(n)]}function vt(t){return t.replace(/start|end/g,n=>Pe[n])}function Se(t,n,e){let i=["left","right"],o=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?s:r;default:return[]}}function Kt(t,n,e,i){let o=et(t),s=Se(j(t),e==="start",i);return o&&(s=s.map(r=>r+"-"+o),n&&(s=s.concat(s.map(vt)))),s}function ft(t){return t.replace(/left|right|bottom|top/g,n=>Ae[n])}function Le(t){return E({top:0,right:0,bottom:0,left:0},t)}function Ct(t){return typeof t!="number"?Le(t):{top:t,right:t,bottom:t,left:t}}function J(t){return S(E({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function Gt(t,n,e){let{reference:i,floating:o}=t,s=dt(n),r=xt(n),l=Et(r),a=j(n),c=s==="y",d=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,m=i[l]/2-o[l]/2,f;switch(a){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:p};break;case"left":f={x:i.x-o.width,y:p};break;default:f={x:i.x,y:i.y}}switch(et(n)){case"start":f[r]-=m*(e&&c?-1:1);break;case"end":f[r]+=m*(e&&c?-1:1);break}return f}var Qt=async(t,n,e)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=e,l=s.filter(Boolean),a=await(r.isRTL==null?void 0:r.isRTL(n)),c=await r.getElementRects({reference:t,floating:n,strategy:o}),{x:d,y:p}=Gt(c,i,a),m=i,f={},u=0;for(let h=0;h<l.length;h++){let{name:y,fn:b}=l[h],{x:v,y:O,data:x,reset:w}=await b({x:d,y:p,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:c,platform:r,elements:{reference:t,floating:n}});d=v!=null?v:d,p=O!=null?O:p,f=S(E({},f),{[y]:E(E({},f[y]),x)}),w&&u<=50&&(u++,typeof w=="object"&&(w.placement&&(m=w.placement),w.rects&&(c=w.rects===!0?await r.getElementRects({reference:t,floating:n,strategy:o}):w.rects),{x:d,y:p}=Gt(c,m,a)),h=-1)}return{x:d,y:p,placement:m,strategy:o,middlewareData:f}};async function ut(t,n){var e;n===void 0&&(n={});let{x:i,y:o,platform:s,rects:r,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:f=0}=q(n,t),u=Ct(f),y=l[m?p==="floating"?"reference":"floating":p],b=J(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(y)))==null||e?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:a})),v=p==="floating"?S(E({},r.floating),{x:i,y:o}):r.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(O))?await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1}:{x:1,y:1},w=J(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:O,strategy:a}):v);return{top:(b.top-w.top+u.top)/x.y,bottom:(w.bottom-b.bottom+u.bottom)/x.y,left:(b.left-w.left+u.left)/x.x,right:(w.right-b.right+u.right)/x.x}}var Zt=t=>({name:"arrow",options:t,async fn(n){let{x:e,y:i,placement:o,rects:s,platform:r,elements:l,middlewareData:a}=n,{element:c,padding:d=0}=q(t,n)||{};if(c==null)return{};let p=Ct(d),m={x:e,y:i},f=xt(o),u=Et(f),h=await r.getDimensions(c),y=f==="y",b=y?"top":"left",v=y?"bottom":"right",O=y?"clientHeight":"clientWidth",x=s.reference[u]+s.reference[f]-m[f]-s.floating[u],w=m[f]-s.reference[f],L=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c)),R=L?L[O]:0;(!R||!await(r.isElement==null?void 0:r.isElement(L)))&&(R=l.floating[O]||s.floating[u]);let D=x/2-w/2,st=R/2-h[u]/2-1,lt=U(p[b],st),at=U(p[v],st),G=lt,M=R-h[u]-at,k=R/2-h[u]/2+D,$=Ot(G,k,M),N=!a.arrow&&et(o)!=null&&k!==$&&s.reference[u]/2-(k<G?lt:at)-h[u]/2<0,F=N?k<G?k-G:k-M:0;return{[f]:m[f]+F,data:E({[f]:$,centerOffset:k-$-F},N&&{alignmentOffset:F}),reset:N}}});var te=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var e,i;let{placement:o,middlewareData:s,rects:r,initialPlacement:l,platform:a,elements:c}=n,G=q(t,n),{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:h=!0}=G,y=yt(G,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let b=j(o),v=j(l)===l,O=await(a.isRTL==null?void 0:a.isRTL(c.floating)),x=m||(v||!h?[ft(l)]:Xt(l));!m&&u!=="none"&&x.push(...Kt(l,h,u,O));let w=[l,...x],L=await ut(n,y),R=[],D=((i=s.flip)==null?void 0:i.overflows)||[];if(d&&R.push(L[b]),p){let M=jt(o,r,O);R.push(L[M[0]],L[M[1]])}if(D=[...D,{placement:o,overflows:R}],!R.every(M=>M<=0)){var st,lt;let M=(((st=s.flip)==null?void 0:st.index)||0)+1,k=w[M];if(k)return{data:{index:M,overflows:D},reset:{placement:k}};let $=(lt=D.filter(N=>N.overflows[0]<=0).sort((N,F)=>N.overflows[1]-F.overflows[1])[0])==null?void 0:lt.placement;if(!$)switch(f){case"bestFit":{var at;let N=(at=D.map(F=>[F.placement,F.overflows.filter(ct=>ct>0).reduce((ct,_e)=>ct+_e,0)]).sort((F,ct)=>F[1]-ct[1])[0])==null?void 0:at[0];N&&($=N);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function qt(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function Jt(t){return Ut.some(n=>t[n]>=0)}var ee=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){let{rects:e}=n,s=q(t,n),{strategy:i="referenceHidden"}=s,o=yt(s,["strategy"]);switch(i){case"referenceHidden":{let r=await ut(n,S(E({},o),{elementContext:"reference"})),l=qt(r,e.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Jt(l)}}}case"escaped":{let r=await ut(n,S(E({},o),{altBoundary:!0})),l=qt(r,e.floating);return{data:{escapedOffsets:l,escaped:Jt(l)}}}default:return{}}}}};async function Te(t,n){let{placement:e,platform:i,elements:o}=t,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=j(e),l=et(e),a=dt(e)==="y",c=["left","top"].includes(r)?-1:1,d=s&&a?-1:1,p=q(n,t),{mainAxis:m,crossAxis:f,alignmentAxis:u}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:E({mainAxis:0,crossAxis:0,alignmentAxis:null},p);return l&&typeof u=="number"&&(f=l==="end"?u*-1:u),a?{x:f*d,y:m*c}:{x:m*c,y:f*d}}var Rt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var e,i;let{x:o,y:s,placement:r,middlewareData:l}=n,a=await Te(n,t);return r===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:S(E({},a),{placement:r})}}}},ne=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){let{x:e,y:i,placement:o}=n,y=q(t,n),{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:b=>{let{x:v,y:O}=b;return{x:v,y:O}}}}=y,a=yt(y,["mainAxis","crossAxis","limiter"]),c={x:e,y:i},d=await ut(n,a),p=dt(j(o)),m=Tt(p),f=c[m],u=c[p];if(s){let b=m==="y"?"top":"left",v=m==="y"?"bottom":"right",O=f+d[b],x=f-d[v];f=Ot(O,f,x)}if(r){let b=p==="y"?"top":"left",v=p==="y"?"bottom":"right",O=u+d[b],x=u-d[v];u=Ot(O,u,x)}let h=l.fn(S(E({},n),{[m]:f,[p]:u}));return S(E({},h),{data:{x:h.x-e,y:h.y-i}})}}};function z(t){return oe(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function B(t){var n;return(n=(oe(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function oe(t){return t instanceof Node||t instanceof T(t).Node}function W(t){return t instanceof Element||t instanceof T(t).Element}function H(t){return t instanceof HTMLElement||t instanceof T(t).HTMLElement}function ie(t){return typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof T(t).ShadowRoot}function it(t){let{overflow:n,overflowX:e,overflowY:i,display:o}=I(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function re(t){return["table","td","th"].includes(z(t))}function ot(t){let n=_t(),e=I(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!n&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!n&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function wt(t){let n=Q(t);for(;H(n)&&!ht(n);){if(ot(n))return n;n=Q(n)}return null}function _t(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ht(t){return["html","body","#document"].includes(z(t))}function I(t){return T(t).getComputedStyle(t)}function gt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Q(t){if(z(t)==="html")return t;let n=t.assignedSlot||t.parentNode||ie(t)&&t.host||B(t);return ie(n)?n.host:n}function se(t){let n=Q(t);return ht(n)?t.ownerDocument?t.ownerDocument.body:t.body:H(n)&&it(n)?n:se(n)}function nt(t,n,e){var i;n===void 0&&(n=[]),e===void 0&&(e=!0);let o=se(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),r=T(o);return s?n.concat(r,r.visualViewport||[],it(o)?o:[],r.frameElement&&e?nt(r.frameElement):[]):n.concat(o,nt(o,[],e))}function ce(t){let n=I(t),e=parseFloat(n.width)||0,i=parseFloat(n.height)||0,o=H(t),s=o?t.offsetWidth:e,r=o?t.offsetHeight:i,l=pt(e)!==s||pt(i)!==r;return l&&(e=s,i=r),{width:e,height:i,$:l}}function It(t){return W(t)?t:t.contextElement}function rt(t){let n=It(t);if(!H(n))return V(1);let e=n.getBoundingClientRect(),{width:i,height:o,$:s}=ce(n),r=(s?pt(e.width):e.width)/i,l=(s?pt(e.height):e.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}var Ce=V(0);function fe(t){let n=T(t);return!_t()||!n.visualViewport?Ce:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Re(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==T(t)?!1:n}function Z(t,n,e,i){n===void 0&&(n=!1),e===void 0&&(e=!1);let o=t.getBoundingClientRect(),s=It(t),r=V(1);n&&(i?W(i)&&(r=rt(i)):r=rt(t));let l=Re(s,e,i)?fe(s):V(0),a=(o.left+l.x)/r.x,c=(o.top+l.y)/r.y,d=o.width/r.x,p=o.height/r.y;if(s){let m=T(s),f=i&&W(i)?T(i):i,u=m.frameElement;for(;u&&i&&f!==m;){let h=rt(u),y=u.getBoundingClientRect(),b=I(u),v=y.left+(u.clientLeft+parseFloat(b.paddingLeft))*h.x,O=y.top+(u.clientTop+parseFloat(b.paddingTop))*h.y;a*=h.x,c*=h.y,d*=h.x,p*=h.y,a+=v,c+=O,u=T(u).frameElement}}return J({width:d,height:p,x:a,y:c})}function Ie(t){let{rect:n,offsetParent:e,strategy:i}=t,o=H(e),s=B(e);if(e===s)return n;let r={scrollLeft:0,scrollTop:0},l=V(1),a=V(0);if((o||!o&&i!=="fixed")&&((z(e)!=="body"||it(s))&&(r=gt(e)),H(e))){let c=Z(e);l=rt(e),a.x=c.x+e.clientLeft,a.y=c.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-r.scrollLeft*l.x+a.x,y:n.y*l.y-r.scrollTop*l.y+a.y}}function De(t){return Array.from(t.getClientRects())}function pe(t){return Z(B(t)).left+gt(t).scrollLeft}function He(t){let n=B(t),e=gt(t),i=t.ownerDocument.body,o=Y(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=Y(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight),r=-e.scrollLeft+pe(t),l=-e.scrollTop;return I(i).direction==="rtl"&&(r+=Y(n.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:l}}function Me(t,n){let e=T(t),i=B(t),o=e.visualViewport,s=i.clientWidth,r=i.clientHeight,l=0,a=0;if(o){s=o.width,r=o.height;let c=_t();(!c||c&&n==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:r,x:l,y:a}}function ke(t,n){let e=Z(t,!0,n==="fixed"),i=e.top+t.clientTop,o=e.left+t.clientLeft,s=H(t)?rt(t):V(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,a=o*s.x,c=i*s.y;return{width:r,height:l,x:a,y:c}}function le(t,n,e){let i;if(n==="viewport")i=Me(t,e);else if(n==="document")i=He(B(t));else if(W(n))i=ke(n,e);else{let o=fe(t);i=S(E({},n),{x:n.x-o.x,y:n.y-o.y})}return J(i)}function me(t,n){let e=Q(t);return e===n||!W(e)||ht(e)?!1:I(e).position==="fixed"||me(e,n)}function Ne(t,n){let e=n.get(t);if(e)return e;let i=nt(t,[],!1).filter(l=>W(l)&&z(l)!=="body"),o=null,s=I(t).position==="fixed",r=s?Q(t):t;for(;W(r)&&!ht(r);){let l=I(r),a=ot(r);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||it(r)&&!a&&me(t,r))?i=i.filter(d=>d!==r):o=l,r=Q(r)}return n.set(t,i),i}function Fe(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t,r=[...e==="clippingAncestors"?Ne(n,this._c):[].concat(e),i],l=r[0],a=r.reduce((c,d)=>{let p=le(n,d,o);return c.top=Y(p.top,c.top),c.right=U(p.right,c.right),c.bottom=U(p.bottom,c.bottom),c.left=Y(p.left,c.left),c},le(n,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Be(t){let{width:n,height:e}=ce(t);return{width:n,height:e}}function We(t,n,e){let i=H(n),o=B(n),s=e==="fixed",r=Z(t,!0,s,n),l={scrollLeft:0,scrollTop:0},a=V(0);if(i||!i&&!s)if((z(n)!=="body"||it(o))&&(l=gt(n)),i){let c=Z(n,!0,s,n);a.x=c.x+n.clientLeft,a.y=c.y+n.clientTop}else o&&(a.x=pe(o));return{x:r.left+l.scrollLeft-a.x,y:r.top+l.scrollTop-a.y,width:r.width,height:r.height}}function ae(t,n){return!H(t)||I(t).position==="fixed"?null:n?n(t):t.offsetParent}function de(t,n){let e=T(t);if(!H(t))return e;let i=ae(t,n);for(;i&&re(i)&&I(i).position==="static";)i=ae(i,n);return i&&(z(i)==="html"||z(i)==="body"&&I(i).position==="static"&&!ot(i))?e:i||wt(t)||e}var $e=async function(t){let{reference:n,floating:e,strategy:i}=t,o=this.getOffsetParent||de,s=this.getDimensions;return{reference:We(n,await o(e),i),floating:E({x:0,y:0},await s(e))}};function Ye(t){return I(t).direction==="rtl"}var Ve={convertOffsetParentRelativeRectToViewportRelativeRect:Ie,getDocumentElement:B,getClippingRect:Fe,getOffsetParent:de,getElementRects:$e,getClientRects:De,getDimensions:Be,getScale:rt,isElement:W,isRTL:Ye};function ze(t,n){let e=null,i,o=B(t);function s(){clearTimeout(i),e&&e.disconnect(),e=null}function r(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();let{left:c,top:d,width:p,height:m}=t.getBoundingClientRect();if(l||n(),!p||!m)return;let f=mt(d),u=mt(o.clientWidth-(c+p)),h=mt(o.clientHeight-(d+m)),y=mt(c),v={rootMargin:-f+"px "+-u+"px "+-h+"px "+-y+"px",threshold:Y(0,U(1,a))||1},O=!0;function x(w){let L=w[0].intersectionRatio;if(L!==a){if(!O)return r();L?r(!1,L):i=setTimeout(()=>{r(!1,1e-7)},100)}O=!1}try{e=new IntersectionObserver(x,S(E({},v),{root:o.ownerDocument}))}catch(w){e=new IntersectionObserver(x,v)}e.observe(t)}return r(!0),s}function ue(t,n,e,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=It(t),d=o||s?[...c?nt(c):[],...nt(n)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",e,{passive:!0}),s&&b.addEventListener("resize",e)});let p=c&&l?ze(c,e):null,m=-1,f=null;r&&(f=new ResizeObserver(b=>{let[v]=b;v&&v.target===c&&f&&(f.unobserve(n),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{f&&f.observe(n)})),e()}),c&&!a&&f.observe(c),f.observe(n));let u,h=a?Z(t):null;a&&y();function y(){let b=Z(t);h&&(b.x!==h.x||b.y!==h.y||b.width!==h.width||b.height!==h.height)&&e(),h=b,u=requestAnimationFrame(y)}return e(),()=>{d.forEach(b=>{o&&b.removeEventListener("scroll",e),s&&b.removeEventListener("resize",e)}),p&&p(),f&&f.disconnect(),f=null,a&&cancelAnimationFrame(u)}}var he=ne,ge=te;var be=ee,ye=Zt;var ve=(t,n,e)=>{let i=new Map,o=E({platform:Ve},e),s=S(E({},o.platform),{_c:i});return Qt(t,n,S(E({},o),{platform:s}))};var Dt=["top-start","top","top-end","left-start","left","left-end","right-start","right","right-end"],bt=class t{constructor(n,e,i=0,o=0){this.x=n;this.y=e;this.height=i;this.width=o}getBoundingClientRect(){return{x:this.x,y:this.y,top:this.y,left:this.x,bottom:this.y,right:this.x,width:this.height,height:this.width,toJSON(){}}}static fromElement(n){let e=n.getBoundingClientRect();return new t(e.left,e.top,e.height,e.width)}static fromEvent(n){if(n instanceof MouseEvent)return new t(n.clientX,n.clientY);if(n instanceof TouchEvent)return new t(n.touches[0].clientX,n.touches[0].clientY);throw new Error("Unsupported event type")}};async function Oe({element:t,anchorElement:n,placement:e="bottom",offset:i=!1,offsetOptions:o,strategy:s="fixed",apply:r=!0,flip:l=!0,flipOptions:a={fallbackPlacements:Dt,fallbackStrategy:"initialPlacement"},shift:c=!0,shiftOptions:d,hide:p=!1,hideOptions:m,arrowElement:f,arrowOptions:u={},topLayer:h=!1}){var w,L,R;let y=[];i&&y.push(Rt(o)),c&&y.push(he(d)),l&&y.push(ge(a)),p&&y.push(be(m)),f&&y.push(ye(S(E({},u),{element:f}))),h&&y.push(Ue());let{x:b,y:v,placement:O,middlewareData:x}=await ve(n,t,{strategy:s,placement:e,middleware:y});if(r){let D={left:"0",top:"0",translate:`${Lt(b)}px ${Lt(v)}px`};Object.assign(t.style,D),(w=x.hide)!=null&&w.referenceHidden?t.style.display="none":t.style.removeProperty("display")}return{x:b,y:v,hidden:(R=(L=x.hide)==null?void 0:L.referenceHidden)!=null?R:!1,placement:O,arrow:x.arrow}}var Ue=()=>({name:"topLayer",async fn({x:t,y:n,elements:{reference:e,floating:i}}){let o=!1,s=!1,r=!1,l={x:0,y:0};try{o=o||i.matches(":popover-open")}catch(d){}try{o=o||i.matches(":open")}catch(d){}try{o=o||i.matches(":modal")}catch(d){}s=o;let a=new Event("floating-ui-dialog-test",{composed:!0,bubbles:!0});i.addEventListener("floating-ui-dialog-test",d=>{d.composedPath().forEach(p=>{if(r=r||p===e,!(p===i||p.localName!=="dialog"))try{o=o||p.matches(":modal")}catch(m){}})},{once:!0}),i.dispatchEvent(a);let c=!1;if(!(e instanceof bt)){let d=r?e:i,p=ot(d)?d:wt(d),m={};if(p!==null&&T(p)!==p&&(m=getComputedStyle(p),c=m.transform!=="none"||m.translate!=="none"||(m.containerType?m.containerType!=="normal":!1)||(m.backdropFilter?m.backdropFilter!=="none":!1)||(m.filter?m.filter!=="none":!1)||m.willChange.search("transform")>-1||m.willChange.search("translate")>-1||["paint","layout","strict","content"].some(f=>(m.contain||"").includes(f))),o&&c&&p){let f=p.getBoundingClientRect(),{marginInlineStart:u="0",marginBlockStart:h="0",borderInlineWidth:y="0",borderBlockWidth:b="0"}=m,v=parseFloat(u)+parseFloat(y),O=parseFloat(h)+parseFloat(b);l.x=f.x+v-p.scrollLeft,l.y=f.y+O-p.scrollTop}}return o&&s?{x:t+l.x,y:n+l.y,data:l}:o?{x:t,y:n,data:l}:{x:t-l.x,y:n-l.y,data:l}}});var Ht=`${Yt}overlay`,Ee={ANCHOR:"anchor",NO_ANCHOR:"no-anchor",OPEN:"open",INLINE:"inline",PLACEMENT:"placement",POSITION_STRATEGY:"position-strategy",HIDE:"hide",PERSISTENT:"persistent",SHIFT:"shift",FLIP:"flip",BOUNDARY:"boundary",FALLBACK_PLACEMENTS:"fallback-placements"},je=S(E({},Ee),{POSITION_PLACEMENT:"position-placement"}),xe={OVERLAY:"forge-overlay"},Xe={ROOT:`.${xe.OVERLAY}`},Ke={LIGHT_DISMISS:`${Ht}-light-dismiss`,DESCENDANT_TEST:`${Ht}-descendant-test`},Ge={HIDE:"anchor-hidden",FLIP:"auto"},g={elementName:Ht,observedAttributes:Ee,attributes:je,classes:xe,selectors:Xe,events:Ke,defaults:Ge},X=$t(),K=Symbol("overlayStack"),we={left:["right","bottom","top","top-start","top-end","left-start","left-end","right-start","right-end"],"left-start":["left-end","right-start","right-end","bottom","top"],"left-end":["left-start","right-end","right-start","bottom","top","bottom-start","bottom-end"],right:["left","bottom","top","top-start","top-end","left-start","left-end","right-start","right-end"],"right-start":["right-end","left-start","left-end","bottom","top"],"right-end":["right-start","left-end","left-start","bottom","top","bottom-start","bottom-end"],top:["bottom","left","right","bottom-start","left-start","left-end","right-start","right-end"],"top-start":["bottom-start","left","right","left-start","left-end","right-start","right-end"],"top-end":["bottom-end","left","right","right-start","right-end","left-start","left-end"],bottom:["top","left","right","top-start","left-start","left-end","right-start","right-end"],"bottom-start":["top-start","left","right","left-start","left-end","right-start","right-end"],"bottom-end":["top-end","left","right","right-start","right-end","left-start","left-end"]};var At=class extends Wt{constructor(e){super(e);this._lightDismissController=new AbortController;this._rootElement=Nt(e,g.selectors.ROOT)}async show(){!this._component.inline&&X?(this._rootElement.popover="manual",this._rootElement.showPopover()):this._rootElement.removeAttribute("popover"),C[K].add(this._component)}hide(){var e;window.clearTimeout(this._overlayStackAddTimeout),this.tryCleanupAutoUpdate(),X&&this._rootElement.matches(":popover-open")&&(this._rootElement.hidePopover(),this._rootElement.removeAttribute("popover")),this._rootElement.style.removeProperty("top"),this._rootElement.style.removeProperty("left"),this._rootElement.style.removeProperty("display"),(e=this._component.arrowElement)==null||e.removeAttribute("style"),this._component.removeAttribute(g.attributes.POSITION_PLACEMENT),C[K].delete(this._component)}tryHideDescendantOverlays(){this._findDescendantOverlays().filter(i=>!i.persistent).forEach(i=>i.open=!1)}locateAnchorElement(e){return Vt(this._component,e)}positionElement({anchorElement:e,strategy:i,placement:o,hide:s,offset:r,shift:l,flip:a,boundary:c,boundaryElement:d,fallbackPlacements:p}){var u;this.tryCleanupAutoUpdate();let m=E({},r),f=(u=d||(c?this._component.closest(`#${c}`):null))!=null?u:"clippingAncestors";this._autoUpdateCleanup=ue(e,this._rootElement,async()=>{var O;let h=E({},m);if(this._component.arrowElement){let x=this._component.arrowElementOffset||Math.sqrt(2*this._component.arrowElement.offsetWidth**2)/2;h.mainAxis==null&&(h.mainAxis=0),h.mainAxis+=x}let y=await Oe({element:this._rootElement,anchorElement:e,strategy:i,placement:o,hide:s!=="never",shift:l,shiftOptions:{boundary:f},flip:a!=="never",flipOptions:{boundary:X?document.body:"clippingAncestors",fallbackStrategy:"initialPlacement",fallbackPlacements:(O=p!=null?p:we[o])!=null?O:Dt,crossAxis:a==="cross"||a==="auto",mainAxis:a==="main"||a==="auto"},arrowElement:this._component.arrowElement,topLayer:!this._component.inline&&X,offset:!!h,offsetOptions:h}),b=y.placement.split("-")[0],v={top:"bottom",right:"left",bottom:"top",left:"right"}[b];if(v&&this._component.setAttribute(g.attributes.POSITION_PLACEMENT,y.placement),this._component.arrowElement&&y.arrow){let{x,y:w}=y.arrow,L=this._component.arrowElement.offsetWidth,{borderWidth:R="0"}=getComputedStyle(this._component.arrowElement),D=parseFloat(R);Object.assign(this._component.arrowElement.style,{top:w!=null?`${w}px`:"",left:x!=null?`${x}px`:"",right:"",bottom:"",[v]:`${-L/2-D}px`})}})}tryCleanupAutoUpdate(){var e;(e=this._autoUpdateCleanup)==null||e.call(this),this._autoUpdateCleanup=void 0}isMostRecentOpenOverlay(){return Array.from(C[K]).at(-1)===this._component}addLightDismissListener(e){this.removeLightDismissListener();let i=s=>{s.key==="Escape"&&this.isMostRecentOpenOverlay()&&(s.preventDefault(),s.stopPropagation(),e("escape"))};this._component.ownerDocument.addEventListener("keydown",i,{signal:this._lightDismissController.signal});let o=s=>{let r=s.composedPath(),l=Array.from(C[K]),a=l.indexOf(this._component),c=r.some(f=>f instanceof C&&l.indexOf(f)>a),d=s.button===2;if(c||d)return;let p=this._component.anchorElement instanceof bt?!1:this._component.anchorElement&&r.includes(this._component.anchorElement),m=r.includes(this._rootElement);!p&&!m&&e("click")};this._component.ownerDocument.addEventListener("pointerup",o,{capture:!0,signal:this._lightDismissController.signal})}removeLightDismissListener(){this._lightDismissController.abort(),this._lightDismissController=new AbortController}_findDescendantOverlays(){let e=Array.from(C[K]),i=e.slice(e.indexOf(this._component)+1).reverse(),o=[];if(i.length){let s=r=>o.push(r.target);this._component.addEventListener(g.events.DESCENDANT_TEST,s),i.forEach(r=>r.dispatchEvent(new CustomEvent(g.events.DESCENDANT_TEST,{bubbles:!0,composed:!0}))),this._component.removeEventListener(g.events.DESCENDANT_TEST,s)}return o}};var Pt=class{constructor(n){this._adapter=n}initialize(){}};var St=class extends Pt{constructor(e){super(e);this._noAnchor=!1;this._open=!1;this._inline=!1;this._placement="bottom";this._positionStrategy="fixed";this._offset={};this._shift=!1;this._hide=g.defaults.HIDE;this._flip=g.defaults.FLIP;this._fallbackPlacements=null;this._persistent=!1;this._arrowElementOffset=0;this._lightDismissListener=this._onLightDismiss.bind(this)}initialize(){!this._noAnchor&&!this._anchorElement&&this._anchor&&(this._anchorElement=this._adapter.locateAnchorElement(this._anchor)),X||(this.inline=!0),this._adapter.hasHostAttribute(g.attributes.OPEN)&&this._applyOpen(!0)}destroy(){this._open&&this._hideOverlay()}position(){var e;!this._open||this._noAnchor||!this._anchorElement||this._adapter.positionElement({anchorElement:this._anchorElement,strategy:this._positionStrategy,placement:this._placement,hide:this._hide,offset:this._offset,shift:this._shift,flip:this._flip,boundary:this._boundary,boundaryElement:this._boundaryElement,fallbackPlacements:(e=this._fallbackPlacements)!=null?e:void 0})}_onLightDismiss(e){let i={reason:e},o=new CustomEvent(g.events.LIGHT_DISMISS,{bubbles:!1,cancelable:!0,detail:i});this._adapter.dispatchHostEvent(o),!o.defaultPrevented&&this._applyOpen(!1)}_applyOpen(e){this._adapter.isConnected&&(this._open=e,this._open?this._showOverlay():this._hideOverlay(),this._adapter.toggleHostAttribute(g.attributes.OPEN,this._open))}_showOverlay(){this._adapter.show(),this._persistent||this._applyLightDismissListener(),!this._noAnchor&&this._anchorElement&&this.position()}_hideOverlay(){this._adapter.tryHideDescendantOverlays(),this._adapter.hide(),this._adapter.removeLightDismissListener()}_applyLightDismissListener(){this._adapter.addLightDismissListener(this._lightDismissListener)}get anchorElement(){return this._anchorElement}set anchorElement(e){this._anchorElement=e,this._open&&this.position()}get anchor(){return this._anchor}set anchor(e){this._anchor!==e&&(this._anchor=e,this._adapter.isConnected&&(this._anchorElement=this._anchor?this._adapter.locateAnchorElement(this._anchor):null),this._adapter.toggleHostAttribute(g.attributes.ANCHOR,!!this._anchor,this._anchor))}get noAnchor(){return this._noAnchor}set noAnchor(e){e=!!e,this._noAnchor!==e&&(this._noAnchor=e,this._adapter.toggleHostAttribute(g.attributes.NO_ANCHOR,this._noAnchor))}get open(){return this._open}set open(e){e=!!e,this._open!==e&&this._applyOpen(e)}get arrowElement(){return this._arrowElement}set arrowElement(e){this._arrowElement=e,this._open&&this.position()}get arrowElementOffset(){return this._arrowElementOffset}set arrowElementOffset(e){this._arrowElementOffset=e,this._open&&this.position()}get inline(){return this._inline}set inline(e){e=X?!!e:!0,this._inline!==e&&(this._inline=e,this._adapter.toggleHostAttribute(g.attributes.INLINE,this._inline))}get placement(){return this._placement}set placement(e){this._placement!==e&&(this._placement=e,this._open&&this.position(),this._adapter.setHostAttribute(g.attributes.PLACEMENT,this._placement))}get positionStrategy(){return this._positionStrategy}set positionStrategy(e){this._positionStrategy!==e&&(this._positionStrategy=e,this._open&&this.position(),this._adapter.setHostAttribute(g.attributes.POSITION_STRATEGY,this._positionStrategy))}get offset(){return this._offset}set offset(e){this._offset=e,this._open&&this.position()}get shift(){return this._shift}set shift(e){e=!!e,this._shift!==e&&(this._shift=e,this._open&&this.position(),this._adapter.toggleHostAttribute(g.attributes.SHIFT,this._shift))}get hide(){return this._hide}set hide(e){this._hide!==e&&(this._hide=e!=null?e:g.defaults.HIDE,this._open&&this.position(),this._adapter.toggleHostAttribute(g.attributes.HIDE,this._hide!==g.defaults.HIDE,String(this._hide)))}get persistent(){return this._persistent}set persistent(e){e=!!e,this._persistent!==e&&(this._persistent=e,this._persistent?this._adapter.removeLightDismissListener():this._open&&this._applyLightDismissListener(),this._adapter.toggleHostAttribute(g.attributes.PERSISTENT,this._persistent))}get flip(){return this._flip}set flip(e){this._flip!==e&&(this._flip=e!=null?e:g.defaults.FLIP,this._open&&this.position(),this._adapter.toggleHostAttribute(g.attributes.FLIP,this._flip!==g.defaults.FLIP,String(this._flip)))}get boundary(){return this._boundary}set boundary(e){this._boundary!==e&&(this._boundary=e,this._open&&this.position(),this._adapter.toggleHostAttribute(g.attributes.BOUNDARY,!!this._boundary,this._boundary))}get boundaryElement(){return this._boundaryElement}set boundaryElement(e){this._boundaryElement=e,this._open&&this.position()}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(e){this._fallbackPlacements=e,this._open&&this.position()}};var P=class extends Bt{constructor(){super()}position(){this._foundation.position()}attributeChangedCallback(e,i,o){switch(e){case g.observedAttributes.ANCHOR:this.anchor=o;break;case g.observedAttributes.NO_ANCHOR:this.noAnchor=tt(o);break;case g.observedAttributes.OPEN:this.open=tt(o);break;case g.observedAttributes.INLINE:this.inline=tt(o);break;case g.observedAttributes.PLACEMENT:this.placement=o;break;case g.observedAttributes.POSITION_STRATEGY:this.positionStrategy=o;break;case g.observedAttributes.HIDE:this.hide=o;break;case g.observedAttributes.PERSISTENT:this.persistent=tt(o);break;case g.observedAttributes.SHIFT:this.shift=tt(o);break;case g.observedAttributes.FLIP:this.flip=o;break;case g.observedAttributes.BOUNDARY:this.boundary=o;break;case g.observedAttributes.FALLBACK_PLACEMENTS:this.fallbackPlacements=o!=null&&o.trim()?zt(o):null;break}}};_([A()],P.prototype,"anchorElement",2),_([A()],P.prototype,"anchor",2),_([A()],P.prototype,"noAnchor",2),_([A()],P.prototype,"open",2),_([A()],P.prototype,"inline",2),_([A()],P.prototype,"placement",2),_([A()],P.prototype,"positionStrategy",2),_([A()],P.prototype,"offset",2),_([A()],P.prototype,"shift",2),_([A()],P.prototype,"hide",2),_([A()],P.prototype,"persistent",2),_([A()],P.prototype,"flip",2),_([A()],P.prototype,"boundary",2),_([A()],P.prototype,"boundaryElement",2),_([A()],P.prototype,"fallbackPlacements",2),_([A()],P.prototype,"auto",2);var qe='<template><div class="forge-overlay" part="root"><slot></slot></div></template>',Je=":host{display:contents}:host([hidden]){display:none}.forge-overlay{--_overlay-position:var(--forge-overlay-position, fixed);--_overlay-z-index:var(--forge-overlay-z-index, var(--forge-z-index-popup, 10));--_overlay-height:var(--forge-overlay-height, fit-content);--_overlay-width:var(--forge-overlay-width, fit-content);--_overlay-position-inline-start:var(--forge-overlay-position-inline-start, auto);--_overlay-position-inline-end:var(--forge-overlay-position-inline-end, auto);--_overlay-position-block-start:var(--forge-overlay-position-block-start, auto);--_overlay-position-block-end:var(--forge-overlay-position-block-end, auto)}.forge-overlay{display:none;-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--_overlay-height);width:var(--_overlay-width);border-radius:inherit;position:var(--_overlay-position);top:0;left:0;z-index:var(--_overlay-z-index);background:inherit;color:inherit}:host([position-strategy=absolute]) .forge-overlay{--_overlay-position:var(--forge-overlay-position, absolute)}:host([open][inline]) .forge-overlay{display:block;padding:0;margin:0;border:none;overflow:visible;inset:unset}:host([open]) .forge-overlay:popover-open{display:block;padding:0;margin:0;border:none;overflow:visible;inset:unset}:host([open][no-anchor]) .forge-overlay:popover-open{inset:0;margin:auto;-webkit-margin-start:var(--_overlay-position-inline-start);margin-inline-start:var(--_overlay-position-inline-start);-webkit-margin-end:var(--_overlay-position-inline-end);margin-inline-end:var(--_overlay-position-inline-end);-webkit-margin-before:var(--_overlay-position-block-start);margin-block-start:var(--_overlay-position-block-start);-webkit-margin-after:var(--_overlay-position-block-end);margin-block-end:var(--_overlay-position-block-end)}",Qe,C=class extends P{constructor(){super();kt(this,qe,Je),this._foundation=new St(new At(this))}static get observedAttributes(){return Object.values(g.observedAttributes)}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}};Qe=K,C[Qe]=new Set,_([A()],C.prototype,"arrowElement",2),_([A()],C.prototype,"arrowElementOffset",2),C=_([Ft({name:g.elementName})],C);function ki(){Mt(C)}export{bt as a,g as b,X as c,K as d,we as e,At as f,St as g,C as h,ki as i};
7
- //# sourceMappingURL=chunk.GAQ3POUT.js.map
6
+ import{k as Vt,m as zt,p as Lt}from"./chunk.SB2LOK2R.js";import{a as Wt}from"./chunk.6GSVB5NB.js";import{a as A}from"./chunk.NVUMRW44.js";import{a as Ft,b as Yt}from"./chunk.UQQQSJVM.js";import{a as $t}from"./chunk.NHOGZDLN.js";import{a as Mt,e as kt,f as Nt,k as Bt}from"./chunk.BIQTNLIF.js";import{k as tt}from"./chunk.J2M2MXP2.js";import{a as E,b as S,c as yt,d as _}from"./chunk.M3QDAYD2.js";var Ut=["top","right","bottom","left"];var U=Math.min,Y=Math.max,pt=Math.round,mt=Math.floor,V=t=>({x:t,y:t}),Ae={left:"right",right:"left",bottom:"top",top:"bottom"},Pe={start:"end",end:"start"};function Ot(t,n,e){return Y(t,U(n,e))}function q(t,n){return typeof t=="function"?t(n):t}function j(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Tt(t){return t==="x"?"y":"x"}function Et(t){return t==="y"?"height":"width"}function dt(t){return["top","bottom"].includes(j(t))?"y":"x"}function xt(t){return Tt(dt(t))}function jt(t,n,e){e===void 0&&(e=!1);let i=et(t),o=xt(t),s=Et(o),r=o==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(r=ft(r)),[r,ft(r)]}function Xt(t){let n=ft(t);return[vt(t),n,vt(n)]}function vt(t){return t.replace(/start|end/g,n=>Pe[n])}function Se(t,n,e){let i=["left","right"],o=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?s:r;default:return[]}}function Kt(t,n,e,i){let o=et(t),s=Se(j(t),e==="start",i);return o&&(s=s.map(r=>r+"-"+o),n&&(s=s.concat(s.map(vt)))),s}function ft(t){return t.replace(/left|right|bottom|top/g,n=>Ae[n])}function Le(t){return E({top:0,right:0,bottom:0,left:0},t)}function Ct(t){return typeof t!="number"?Le(t):{top:t,right:t,bottom:t,left:t}}function J(t){return S(E({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function Gt(t,n,e){let{reference:i,floating:o}=t,s=dt(n),r=xt(n),l=Et(r),a=j(n),c=s==="y",d=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,m=i[l]/2-o[l]/2,f;switch(a){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:p};break;case"left":f={x:i.x-o.width,y:p};break;default:f={x:i.x,y:i.y}}switch(et(n)){case"start":f[r]-=m*(e&&c?-1:1);break;case"end":f[r]+=m*(e&&c?-1:1);break}return f}var Qt=async(t,n,e)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=e,l=s.filter(Boolean),a=await(r.isRTL==null?void 0:r.isRTL(n)),c=await r.getElementRects({reference:t,floating:n,strategy:o}),{x:d,y:p}=Gt(c,i,a),m=i,f={},u=0;for(let h=0;h<l.length;h++){let{name:y,fn:b}=l[h],{x:v,y:O,data:x,reset:w}=await b({x:d,y:p,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:c,platform:r,elements:{reference:t,floating:n}});d=v!=null?v:d,p=O!=null?O:p,f=S(E({},f),{[y]:E(E({},f[y]),x)}),w&&u<=50&&(u++,typeof w=="object"&&(w.placement&&(m=w.placement),w.rects&&(c=w.rects===!0?await r.getElementRects({reference:t,floating:n,strategy:o}):w.rects),{x:d,y:p}=Gt(c,m,a)),h=-1)}return{x:d,y:p,placement:m,strategy:o,middlewareData:f}};async function ut(t,n){var e;n===void 0&&(n={});let{x:i,y:o,platform:s,rects:r,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:f=0}=q(n,t),u=Ct(f),y=l[m?p==="floating"?"reference":"floating":p],b=J(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(y)))==null||e?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:a})),v=p==="floating"?S(E({},r.floating),{x:i,y:o}):r.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(O))?await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1}:{x:1,y:1},w=J(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:O,strategy:a}):v);return{top:(b.top-w.top+u.top)/x.y,bottom:(w.bottom-b.bottom+u.bottom)/x.y,left:(b.left-w.left+u.left)/x.x,right:(w.right-b.right+u.right)/x.x}}var Zt=t=>({name:"arrow",options:t,async fn(n){let{x:e,y:i,placement:o,rects:s,platform:r,elements:l,middlewareData:a}=n,{element:c,padding:d=0}=q(t,n)||{};if(c==null)return{};let p=Ct(d),m={x:e,y:i},f=xt(o),u=Et(f),h=await r.getDimensions(c),y=f==="y",b=y?"top":"left",v=y?"bottom":"right",O=y?"clientHeight":"clientWidth",x=s.reference[u]+s.reference[f]-m[f]-s.floating[u],w=m[f]-s.reference[f],L=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c)),R=L?L[O]:0;(!R||!await(r.isElement==null?void 0:r.isElement(L)))&&(R=l.floating[O]||s.floating[u]);let D=x/2-w/2,st=R/2-h[u]/2-1,lt=U(p[b],st),at=U(p[v],st),G=lt,M=R-h[u]-at,k=R/2-h[u]/2+D,$=Ot(G,k,M),N=!a.arrow&&et(o)!=null&&k!==$&&s.reference[u]/2-(k<G?lt:at)-h[u]/2<0,F=N?k<G?k-G:k-M:0;return{[f]:m[f]+F,data:E({[f]:$,centerOffset:k-$-F},N&&{alignmentOffset:F}),reset:N}}});var te=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var e,i;let{placement:o,middlewareData:s,rects:r,initialPlacement:l,platform:a,elements:c}=n,G=q(t,n),{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:h=!0}=G,y=yt(G,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let b=j(o),v=j(l)===l,O=await(a.isRTL==null?void 0:a.isRTL(c.floating)),x=m||(v||!h?[ft(l)]:Xt(l));!m&&u!=="none"&&x.push(...Kt(l,h,u,O));let w=[l,...x],L=await ut(n,y),R=[],D=((i=s.flip)==null?void 0:i.overflows)||[];if(d&&R.push(L[b]),p){let M=jt(o,r,O);R.push(L[M[0]],L[M[1]])}if(D=[...D,{placement:o,overflows:R}],!R.every(M=>M<=0)){var st,lt;let M=(((st=s.flip)==null?void 0:st.index)||0)+1,k=w[M];if(k)return{data:{index:M,overflows:D},reset:{placement:k}};let $=(lt=D.filter(N=>N.overflows[0]<=0).sort((N,F)=>N.overflows[1]-F.overflows[1])[0])==null?void 0:lt.placement;if(!$)switch(f){case"bestFit":{var at;let N=(at=D.map(F=>[F.placement,F.overflows.filter(ct=>ct>0).reduce((ct,_e)=>ct+_e,0)]).sort((F,ct)=>F[1]-ct[1])[0])==null?void 0:at[0];N&&($=N);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function qt(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function Jt(t){return Ut.some(n=>t[n]>=0)}var ee=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){let{rects:e}=n,s=q(t,n),{strategy:i="referenceHidden"}=s,o=yt(s,["strategy"]);switch(i){case"referenceHidden":{let r=await ut(n,S(E({},o),{elementContext:"reference"})),l=qt(r,e.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Jt(l)}}}case"escaped":{let r=await ut(n,S(E({},o),{altBoundary:!0})),l=qt(r,e.floating);return{data:{escapedOffsets:l,escaped:Jt(l)}}}default:return{}}}}};async function Te(t,n){let{placement:e,platform:i,elements:o}=t,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=j(e),l=et(e),a=dt(e)==="y",c=["left","top"].includes(r)?-1:1,d=s&&a?-1:1,p=q(n,t),{mainAxis:m,crossAxis:f,alignmentAxis:u}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:E({mainAxis:0,crossAxis:0,alignmentAxis:null},p);return l&&typeof u=="number"&&(f=l==="end"?u*-1:u),a?{x:f*d,y:m*c}:{x:m*c,y:f*d}}var Rt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var e,i;let{x:o,y:s,placement:r,middlewareData:l}=n,a=await Te(n,t);return r===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:S(E({},a),{placement:r})}}}},ne=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){let{x:e,y:i,placement:o}=n,y=q(t,n),{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:b=>{let{x:v,y:O}=b;return{x:v,y:O}}}}=y,a=yt(y,["mainAxis","crossAxis","limiter"]),c={x:e,y:i},d=await ut(n,a),p=dt(j(o)),m=Tt(p),f=c[m],u=c[p];if(s){let b=m==="y"?"top":"left",v=m==="y"?"bottom":"right",O=f+d[b],x=f-d[v];f=Ot(O,f,x)}if(r){let b=p==="y"?"top":"left",v=p==="y"?"bottom":"right",O=u+d[b],x=u-d[v];u=Ot(O,u,x)}let h=l.fn(S(E({},n),{[m]:f,[p]:u}));return S(E({},h),{data:{x:h.x-e,y:h.y-i}})}}};function z(t){return oe(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function B(t){var n;return(n=(oe(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function oe(t){return t instanceof Node||t instanceof T(t).Node}function W(t){return t instanceof Element||t instanceof T(t).Element}function H(t){return t instanceof HTMLElement||t instanceof T(t).HTMLElement}function ie(t){return typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof T(t).ShadowRoot}function it(t){let{overflow:n,overflowX:e,overflowY:i,display:o}=I(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function re(t){return["table","td","th"].includes(z(t))}function ot(t){let n=_t(),e=I(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!n&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!n&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function wt(t){let n=Q(t);for(;H(n)&&!ht(n);){if(ot(n))return n;n=Q(n)}return null}function _t(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ht(t){return["html","body","#document"].includes(z(t))}function I(t){return T(t).getComputedStyle(t)}function gt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Q(t){if(z(t)==="html")return t;let n=t.assignedSlot||t.parentNode||ie(t)&&t.host||B(t);return ie(n)?n.host:n}function se(t){let n=Q(t);return ht(n)?t.ownerDocument?t.ownerDocument.body:t.body:H(n)&&it(n)?n:se(n)}function nt(t,n,e){var i;n===void 0&&(n=[]),e===void 0&&(e=!0);let o=se(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),r=T(o);return s?n.concat(r,r.visualViewport||[],it(o)?o:[],r.frameElement&&e?nt(r.frameElement):[]):n.concat(o,nt(o,[],e))}function ce(t){let n=I(t),e=parseFloat(n.width)||0,i=parseFloat(n.height)||0,o=H(t),s=o?t.offsetWidth:e,r=o?t.offsetHeight:i,l=pt(e)!==s||pt(i)!==r;return l&&(e=s,i=r),{width:e,height:i,$:l}}function It(t){return W(t)?t:t.contextElement}function rt(t){let n=It(t);if(!H(n))return V(1);let e=n.getBoundingClientRect(),{width:i,height:o,$:s}=ce(n),r=(s?pt(e.width):e.width)/i,l=(s?pt(e.height):e.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}var Ce=V(0);function fe(t){let n=T(t);return!_t()||!n.visualViewport?Ce:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Re(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==T(t)?!1:n}function Z(t,n,e,i){n===void 0&&(n=!1),e===void 0&&(e=!1);let o=t.getBoundingClientRect(),s=It(t),r=V(1);n&&(i?W(i)&&(r=rt(i)):r=rt(t));let l=Re(s,e,i)?fe(s):V(0),a=(o.left+l.x)/r.x,c=(o.top+l.y)/r.y,d=o.width/r.x,p=o.height/r.y;if(s){let m=T(s),f=i&&W(i)?T(i):i,u=m.frameElement;for(;u&&i&&f!==m;){let h=rt(u),y=u.getBoundingClientRect(),b=I(u),v=y.left+(u.clientLeft+parseFloat(b.paddingLeft))*h.x,O=y.top+(u.clientTop+parseFloat(b.paddingTop))*h.y;a*=h.x,c*=h.y,d*=h.x,p*=h.y,a+=v,c+=O,u=T(u).frameElement}}return J({width:d,height:p,x:a,y:c})}function Ie(t){let{rect:n,offsetParent:e,strategy:i}=t,o=H(e),s=B(e);if(e===s)return n;let r={scrollLeft:0,scrollTop:0},l=V(1),a=V(0);if((o||!o&&i!=="fixed")&&((z(e)!=="body"||it(s))&&(r=gt(e)),H(e))){let c=Z(e);l=rt(e),a.x=c.x+e.clientLeft,a.y=c.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-r.scrollLeft*l.x+a.x,y:n.y*l.y-r.scrollTop*l.y+a.y}}function De(t){return Array.from(t.getClientRects())}function pe(t){return Z(B(t)).left+gt(t).scrollLeft}function He(t){let n=B(t),e=gt(t),i=t.ownerDocument.body,o=Y(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=Y(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight),r=-e.scrollLeft+pe(t),l=-e.scrollTop;return I(i).direction==="rtl"&&(r+=Y(n.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:l}}function Me(t,n){let e=T(t),i=B(t),o=e.visualViewport,s=i.clientWidth,r=i.clientHeight,l=0,a=0;if(o){s=o.width,r=o.height;let c=_t();(!c||c&&n==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:r,x:l,y:a}}function ke(t,n){let e=Z(t,!0,n==="fixed"),i=e.top+t.clientTop,o=e.left+t.clientLeft,s=H(t)?rt(t):V(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,a=o*s.x,c=i*s.y;return{width:r,height:l,x:a,y:c}}function le(t,n,e){let i;if(n==="viewport")i=Me(t,e);else if(n==="document")i=He(B(t));else if(W(n))i=ke(n,e);else{let o=fe(t);i=S(E({},n),{x:n.x-o.x,y:n.y-o.y})}return J(i)}function me(t,n){let e=Q(t);return e===n||!W(e)||ht(e)?!1:I(e).position==="fixed"||me(e,n)}function Ne(t,n){let e=n.get(t);if(e)return e;let i=nt(t,[],!1).filter(l=>W(l)&&z(l)!=="body"),o=null,s=I(t).position==="fixed",r=s?Q(t):t;for(;W(r)&&!ht(r);){let l=I(r),a=ot(r);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||it(r)&&!a&&me(t,r))?i=i.filter(d=>d!==r):o=l,r=Q(r)}return n.set(t,i),i}function Fe(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t,r=[...e==="clippingAncestors"?Ne(n,this._c):[].concat(e),i],l=r[0],a=r.reduce((c,d)=>{let p=le(n,d,o);return c.top=Y(p.top,c.top),c.right=U(p.right,c.right),c.bottom=U(p.bottom,c.bottom),c.left=Y(p.left,c.left),c},le(n,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Be(t){let{width:n,height:e}=ce(t);return{width:n,height:e}}function We(t,n,e){let i=H(n),o=B(n),s=e==="fixed",r=Z(t,!0,s,n),l={scrollLeft:0,scrollTop:0},a=V(0);if(i||!i&&!s)if((z(n)!=="body"||it(o))&&(l=gt(n)),i){let c=Z(n,!0,s,n);a.x=c.x+n.clientLeft,a.y=c.y+n.clientTop}else o&&(a.x=pe(o));return{x:r.left+l.scrollLeft-a.x,y:r.top+l.scrollTop-a.y,width:r.width,height:r.height}}function ae(t,n){return!H(t)||I(t).position==="fixed"?null:n?n(t):t.offsetParent}function de(t,n){let e=T(t);if(!H(t))return e;let i=ae(t,n);for(;i&&re(i)&&I(i).position==="static";)i=ae(i,n);return i&&(z(i)==="html"||z(i)==="body"&&I(i).position==="static"&&!ot(i))?e:i||wt(t)||e}var $e=async function(t){let{reference:n,floating:e,strategy:i}=t,o=this.getOffsetParent||de,s=this.getDimensions;return{reference:We(n,await o(e),i),floating:E({x:0,y:0},await s(e))}};function Ye(t){return I(t).direction==="rtl"}var Ve={convertOffsetParentRelativeRectToViewportRelativeRect:Ie,getDocumentElement:B,getClippingRect:Fe,getOffsetParent:de,getElementRects:$e,getClientRects:De,getDimensions:Be,getScale:rt,isElement:W,isRTL:Ye};function ze(t,n){let e=null,i,o=B(t);function s(){clearTimeout(i),e&&e.disconnect(),e=null}function r(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();let{left:c,top:d,width:p,height:m}=t.getBoundingClientRect();if(l||n(),!p||!m)return;let f=mt(d),u=mt(o.clientWidth-(c+p)),h=mt(o.clientHeight-(d+m)),y=mt(c),v={rootMargin:-f+"px "+-u+"px "+-h+"px "+-y+"px",threshold:Y(0,U(1,a))||1},O=!0;function x(w){let L=w[0].intersectionRatio;if(L!==a){if(!O)return r();L?r(!1,L):i=setTimeout(()=>{r(!1,1e-7)},100)}O=!1}try{e=new IntersectionObserver(x,S(E({},v),{root:o.ownerDocument}))}catch(w){e=new IntersectionObserver(x,v)}e.observe(t)}return r(!0),s}function ue(t,n,e,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=It(t),d=o||s?[...c?nt(c):[],...nt(n)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",e,{passive:!0}),s&&b.addEventListener("resize",e)});let p=c&&l?ze(c,e):null,m=-1,f=null;r&&(f=new ResizeObserver(b=>{let[v]=b;v&&v.target===c&&f&&(f.unobserve(n),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{f&&f.observe(n)})),e()}),c&&!a&&f.observe(c),f.observe(n));let u,h=a?Z(t):null;a&&y();function y(){let b=Z(t);h&&(b.x!==h.x||b.y!==h.y||b.width!==h.width||b.height!==h.height)&&e(),h=b,u=requestAnimationFrame(y)}return e(),()=>{d.forEach(b=>{o&&b.removeEventListener("scroll",e),s&&b.removeEventListener("resize",e)}),p&&p(),f&&f.disconnect(),f=null,a&&cancelAnimationFrame(u)}}var he=ne,ge=te;var be=ee,ye=Zt;var ve=(t,n,e)=>{let i=new Map,o=E({platform:Ve},e),s=S(E({},o.platform),{_c:i});return Qt(t,n,S(E({},o),{platform:s}))};var Dt=["top-start","top","top-end","left-start","left","left-end","right-start","right","right-end"],bt=class t{constructor(n,e,i=0,o=0){this.x=n;this.y=e;this.height=i;this.width=o}getBoundingClientRect(){return{x:this.x,y:this.y,top:this.y,left:this.x,bottom:this.y,right:this.x,width:this.height,height:this.width,toJSON(){}}}static fromElement(n){let e=n.getBoundingClientRect();return new t(e.left,e.top,e.height,e.width)}static fromEvent(n){if(n instanceof MouseEvent)return new t(n.clientX,n.clientY);if(n instanceof TouchEvent)return new t(n.touches[0].clientX,n.touches[0].clientY);throw new Error("Unsupported event type")}};async function Oe({element:t,anchorElement:n,placement:e="bottom",offset:i=!1,offsetOptions:o,strategy:s="fixed",apply:r=!0,flip:l=!0,flipOptions:a={fallbackPlacements:Dt,fallbackStrategy:"initialPlacement"},shift:c=!0,shiftOptions:d,hide:p=!1,hideOptions:m,arrowElement:f,arrowOptions:u={},topLayer:h=!1}){var w,L,R;let y=[];i&&y.push(Rt(o)),c&&y.push(he(d)),l&&y.push(ge(a)),p&&y.push(be(m)),f&&y.push(ye(S(E({},u),{element:f}))),h&&y.push(Ue());let{x:b,y:v,placement:O,middlewareData:x}=await ve(n,t,{strategy:s,placement:e,middleware:y});if(r){let D={left:"0",top:"0",translate:`${Lt(b)}px ${Lt(v)}px`};Object.assign(t.style,D),(w=x.hide)!=null&&w.referenceHidden?t.style.display="none":t.style.removeProperty("display")}return{x:b,y:v,hidden:(R=(L=x.hide)==null?void 0:L.referenceHidden)!=null?R:!1,placement:O,arrow:x.arrow}}var Ue=()=>({name:"topLayer",async fn({x:t,y:n,elements:{reference:e,floating:i}}){let o=!1,s=!1,r=!1,l={x:0,y:0};try{o=o||i.matches(":popover-open")}catch(d){}try{o=o||i.matches(":open")}catch(d){}try{o=o||i.matches(":modal")}catch(d){}s=o;let a=new Event("floating-ui-dialog-test",{composed:!0,bubbles:!0});i.addEventListener("floating-ui-dialog-test",d=>{d.composedPath().forEach(p=>{if(r=r||p===e,!(p===i||p.localName!=="dialog"))try{o=o||p.matches(":modal")}catch(m){}})},{once:!0}),i.dispatchEvent(a);let c=!1;if(!(e instanceof bt)){let d=r?e:i,p=ot(d)?d:wt(d),m={};if(p!==null&&T(p)!==p&&(m=getComputedStyle(p),c=m.transform!=="none"||m.translate!=="none"||(m.containerType?m.containerType!=="normal":!1)||(m.backdropFilter?m.backdropFilter!=="none":!1)||(m.filter?m.filter!=="none":!1)||m.willChange.search("transform")>-1||m.willChange.search("translate")>-1||["paint","layout","strict","content"].some(f=>(m.contain||"").includes(f))),o&&c&&p){let f=p.getBoundingClientRect(),{marginInlineStart:u="0",marginBlockStart:h="0",borderInlineWidth:y="0",borderBlockWidth:b="0"}=m,v=parseFloat(u)+parseFloat(y),O=parseFloat(h)+parseFloat(b);l.x=f.x+v-p.scrollLeft,l.y=f.y+O-p.scrollTop}}return o&&s?{x:t+l.x,y:n+l.y,data:l}:o?{x:t,y:n,data:l}:{x:t-l.x,y:n-l.y,data:l}}});var Ht=`${Yt}overlay`,Ee={ANCHOR:"anchor",NO_ANCHOR:"no-anchor",OPEN:"open",INLINE:"inline",PLACEMENT:"placement",POSITION_STRATEGY:"position-strategy",HIDE:"hide",PERSISTENT:"persistent",SHIFT:"shift",FLIP:"flip",BOUNDARY:"boundary",FALLBACK_PLACEMENTS:"fallback-placements"},je=S(E({},Ee),{POSITION_PLACEMENT:"position-placement"}),xe={OVERLAY:"forge-overlay"},Xe={ROOT:`.${xe.OVERLAY}`},Ke={LIGHT_DISMISS:`${Ht}-light-dismiss`,DESCENDANT_TEST:`${Ht}-descendant-test`},Ge={HIDE:"anchor-hidden",FLIP:"auto"},g={elementName:Ht,observedAttributes:Ee,attributes:je,classes:xe,selectors:Xe,events:Ke,defaults:Ge},X=$t(),K=Symbol("overlayStack"),we={left:["right","bottom","top","top-start","top-end","left-start","left-end","right-start","right-end"],"left-start":["left-end","right-start","right-end","bottom","top"],"left-end":["left-start","right-end","right-start","bottom","top","bottom-start","bottom-end"],right:["left","bottom","top","top-start","top-end","left-start","left-end","right-start","right-end"],"right-start":["right-end","left-start","left-end","bottom","top"],"right-end":["right-start","left-end","left-start","bottom","top","bottom-start","bottom-end"],top:["bottom","left","right","bottom-start","left-start","left-end","right-start","right-end"],"top-start":["bottom-start","left","right","left-start","left-end","right-start","right-end"],"top-end":["bottom-end","left","right","right-start","right-end","left-start","left-end"],bottom:["top","left","right","top-start","left-start","left-end","right-start","right-end"],"bottom-start":["top-start","left","right","left-start","left-end","right-start","right-end"],"bottom-end":["top-end","left","right","right-start","right-end","left-start","left-end"]};var At=class extends Wt{constructor(e){super(e);this._lightDismissController=new AbortController;this._rootElement=Nt(e,g.selectors.ROOT)}async show(){!this._component.inline&&X?(this._rootElement.popover="manual",this._rootElement.showPopover()):this._rootElement.removeAttribute("popover"),C[K].add(this._component)}hide(){var e;window.clearTimeout(this._overlayStackAddTimeout),this.tryCleanupAutoUpdate(),X&&this._rootElement.matches(":popover-open")&&(this._rootElement.hidePopover(),this._rootElement.removeAttribute("popover")),this._rootElement.style.removeProperty("top"),this._rootElement.style.removeProperty("left"),this._rootElement.style.removeProperty("display"),(e=this._component.arrowElement)==null||e.removeAttribute("style"),this._component.removeAttribute(g.attributes.POSITION_PLACEMENT),C[K].delete(this._component)}tryHideDescendantOverlays(){this._findDescendantOverlays().filter(i=>!i.persistent).forEach(i=>i.open=!1)}locateAnchorElement(e){return Vt(this._component,e)}positionElement({anchorElement:e,strategy:i,placement:o,hide:s,offset:r,shift:l,flip:a,boundary:c,boundaryElement:d,fallbackPlacements:p}){var u;this.tryCleanupAutoUpdate();let m=E({},r),f=(u=d||(c?this._component.closest(`#${c}`):null))!=null?u:"clippingAncestors";this._autoUpdateCleanup=ue(e,this._rootElement,async()=>{var O;let h=E({},m);if(this._component.arrowElement){let x=this._component.arrowElementOffset||Math.sqrt(2*this._component.arrowElement.offsetWidth**2)/2;h.mainAxis==null&&(h.mainAxis=0),h.mainAxis+=x}let y=await Oe({element:this._rootElement,anchorElement:e,strategy:i,placement:o,hide:s!=="never",shift:l,shiftOptions:{boundary:f},flip:a!=="never",flipOptions:{boundary:X?document.body:"clippingAncestors",fallbackStrategy:"initialPlacement",fallbackPlacements:(O=p!=null?p:we[o])!=null?O:Dt,crossAxis:a==="cross"||a==="auto",mainAxis:a==="main"||a==="auto"},arrowElement:this._component.arrowElement,topLayer:!this._component.inline&&X,offset:!!h,offsetOptions:h}),b=y.placement.split("-")[0],v={top:"bottom",right:"left",bottom:"top",left:"right"}[b];if(v&&this._component.setAttribute(g.attributes.POSITION_PLACEMENT,y.placement),this._component.arrowElement&&y.arrow){let{x,y:w}=y.arrow,L=this._component.arrowElement.offsetWidth,{borderWidth:R="0"}=getComputedStyle(this._component.arrowElement),D=parseFloat(R);Object.assign(this._component.arrowElement.style,{top:w!=null?`${w}px`:"",left:x!=null?`${x}px`:"",right:"",bottom:"",[v]:`${-L/2-D}px`})}})}tryCleanupAutoUpdate(){var e;(e=this._autoUpdateCleanup)==null||e.call(this),this._autoUpdateCleanup=void 0}isMostRecentOpenOverlay(){return Array.from(C[K]).at(-1)===this._component}addLightDismissListener(e){this.removeLightDismissListener();let i=s=>{s.key==="Escape"&&this.isMostRecentOpenOverlay()&&(s.preventDefault(),s.stopPropagation(),e("escape"))};this._component.ownerDocument.addEventListener("keydown",i,{signal:this._lightDismissController.signal});let o=s=>{let r=s.composedPath(),l=Array.from(C[K]),a=l.indexOf(this._component),c=r.some(f=>f instanceof C&&l.indexOf(f)>a),d=s.button===2;if(c||d)return;let p=this._component.anchorElement instanceof bt?!1:this._component.anchorElement&&r.includes(this._component.anchorElement),m=r.includes(this._rootElement);!p&&!m&&e("click")};this._component.ownerDocument.addEventListener("pointerup",o,{capture:!0,signal:this._lightDismissController.signal})}removeLightDismissListener(){this._lightDismissController.abort(),this._lightDismissController=new AbortController}_findDescendantOverlays(){let e=Array.from(C[K]),i=e.slice(e.indexOf(this._component)+1).reverse(),o=[];if(i.length){let s=r=>o.push(r.target);this._component.addEventListener(g.events.DESCENDANT_TEST,s),i.forEach(r=>r.dispatchEvent(new CustomEvent(g.events.DESCENDANT_TEST,{bubbles:!0,composed:!0}))),this._component.removeEventListener(g.events.DESCENDANT_TEST,s)}return o}};var Pt=class{constructor(n){this._adapter=n}initialize(){}};var St=class extends Pt{constructor(e){super(e);this._noAnchor=!1;this._open=!1;this._inline=!1;this._placement="bottom";this._positionStrategy="fixed";this._offset={};this._shift=!1;this._hide=g.defaults.HIDE;this._flip=g.defaults.FLIP;this._fallbackPlacements=null;this._persistent=!1;this._arrowElementOffset=0;this._lightDismissListener=this._onLightDismiss.bind(this)}initialize(){!this._noAnchor&&!this._anchorElement&&this._anchor&&(this._anchorElement=this._adapter.locateAnchorElement(this._anchor)),X||(this.inline=!0),this._adapter.hasHostAttribute(g.attributes.OPEN)&&this._applyOpen(!0)}destroy(){this._open&&this._hideOverlay()}position(){var e;!this._open||this._noAnchor||!this._anchorElement||this._adapter.positionElement({anchorElement:this._anchorElement,strategy:this._positionStrategy,placement:this._placement,hide:this._hide,offset:this._offset,shift:this._shift,flip:this._flip,boundary:this._boundary,boundaryElement:this._boundaryElement,fallbackPlacements:(e=this._fallbackPlacements)!=null?e:void 0})}_onLightDismiss(e){let i={reason:e},o=new CustomEvent(g.events.LIGHT_DISMISS,{bubbles:!1,cancelable:!0,detail:i});this._adapter.dispatchHostEvent(o),!o.defaultPrevented&&this._applyOpen(!1)}_applyOpen(e){this._adapter.isConnected&&(this._open=e,this._open?this._showOverlay():this._hideOverlay(),this._adapter.toggleHostAttribute(g.attributes.OPEN,this._open))}_showOverlay(){this._adapter.show(),this._persistent||this._applyLightDismissListener(),!this._noAnchor&&this._anchorElement&&this.position()}_hideOverlay(){this._adapter.tryHideDescendantOverlays(),this._adapter.hide(),this._adapter.removeLightDismissListener()}_applyLightDismissListener(){this._adapter.addLightDismissListener(this._lightDismissListener)}get anchorElement(){return this._anchorElement}set anchorElement(e){this._anchorElement=e,this._open&&this.position()}get anchor(){return this._anchor}set anchor(e){this._anchor!==e&&(this._anchor=e,this._adapter.isConnected&&(this._anchorElement=this._anchor?this._adapter.locateAnchorElement(this._anchor):null),this._adapter.toggleHostAttribute(g.attributes.ANCHOR,!!this._anchor,this._anchor))}get noAnchor(){return this._noAnchor}set noAnchor(e){e=!!e,this._noAnchor!==e&&(this._noAnchor=e,this._adapter.toggleHostAttribute(g.attributes.NO_ANCHOR,this._noAnchor))}get open(){return this._open}set open(e){e=!!e,this._open!==e&&this._applyOpen(e)}get arrowElement(){return this._arrowElement}set arrowElement(e){this._arrowElement=e,this._open&&this.position()}get arrowElementOffset(){return this._arrowElementOffset}set arrowElementOffset(e){this._arrowElementOffset=e,this._open&&this.position()}get inline(){return this._inline}set inline(e){e=X?!!e:!0,this._inline!==e&&(this._inline=e,this._adapter.toggleHostAttribute(g.attributes.INLINE,this._inline))}get placement(){return this._placement}set placement(e){this._placement!==e&&(this._placement=e,this._open&&this.position(),this._adapter.setHostAttribute(g.attributes.PLACEMENT,this._placement))}get positionStrategy(){return this._positionStrategy}set positionStrategy(e){this._positionStrategy!==e&&(this._positionStrategy=e,this._open&&this.position(),this._adapter.setHostAttribute(g.attributes.POSITION_STRATEGY,this._positionStrategy))}get offset(){return this._offset}set offset(e){this._offset=e,this._open&&this.position()}get shift(){return this._shift}set shift(e){e=!!e,this._shift!==e&&(this._shift=e,this._open&&this.position(),this._adapter.toggleHostAttribute(g.attributes.SHIFT,this._shift))}get hide(){return this._hide}set hide(e){this._hide!==e&&(this._hide=e!=null?e:g.defaults.HIDE,this._open&&this.position(),this._adapter.toggleHostAttribute(g.attributes.HIDE,this._hide!==g.defaults.HIDE,String(this._hide)))}get persistent(){return this._persistent}set persistent(e){e=!!e,this._persistent!==e&&(this._persistent=e,this._persistent?this._adapter.removeLightDismissListener():this._open&&this._applyLightDismissListener(),this._adapter.toggleHostAttribute(g.attributes.PERSISTENT,this._persistent))}get flip(){return this._flip}set flip(e){this._flip!==e&&(this._flip=e!=null?e:g.defaults.FLIP,this._open&&this.position(),this._adapter.toggleHostAttribute(g.attributes.FLIP,this._flip!==g.defaults.FLIP,String(this._flip)))}get boundary(){return this._boundary}set boundary(e){this._boundary!==e&&(this._boundary=e,this._open&&this.position(),this._adapter.toggleHostAttribute(g.attributes.BOUNDARY,!!this._boundary,this._boundary))}get boundaryElement(){return this._boundaryElement}set boundaryElement(e){this._boundaryElement=e,this._open&&this.position()}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(e){this._fallbackPlacements=e,this._open&&this.position()}};var P=class extends Bt{constructor(){super()}position(){this._foundation.position()}attributeChangedCallback(e,i,o){switch(e){case g.observedAttributes.ANCHOR:this.anchor=o;break;case g.observedAttributes.NO_ANCHOR:this.noAnchor=tt(o);break;case g.observedAttributes.OPEN:this.open=tt(o);break;case g.observedAttributes.INLINE:this.inline=tt(o);break;case g.observedAttributes.PLACEMENT:this.placement=o;break;case g.observedAttributes.POSITION_STRATEGY:this.positionStrategy=o;break;case g.observedAttributes.HIDE:this.hide=o;break;case g.observedAttributes.PERSISTENT:this.persistent=tt(o);break;case g.observedAttributes.SHIFT:this.shift=tt(o);break;case g.observedAttributes.FLIP:this.flip=o;break;case g.observedAttributes.BOUNDARY:this.boundary=o;break;case g.observedAttributes.FALLBACK_PLACEMENTS:this.fallbackPlacements=o!=null&&o.trim()?zt(o):null;break}}};_([A()],P.prototype,"anchorElement",2),_([A()],P.prototype,"anchor",2),_([A()],P.prototype,"noAnchor",2),_([A()],P.prototype,"open",2),_([A()],P.prototype,"inline",2),_([A()],P.prototype,"placement",2),_([A()],P.prototype,"positionStrategy",2),_([A()],P.prototype,"offset",2),_([A()],P.prototype,"shift",2),_([A()],P.prototype,"hide",2),_([A()],P.prototype,"persistent",2),_([A()],P.prototype,"flip",2),_([A()],P.prototype,"boundary",2),_([A()],P.prototype,"boundaryElement",2),_([A()],P.prototype,"fallbackPlacements",2),_([A()],P.prototype,"auto",2);var qe='<template><div class="forge-overlay" part="root"><slot></slot></div></template>',Je=":host{display:contents}:host([hidden]){display:none}.forge-overlay{--_overlay-position:var(--forge-overlay-position, fixed);--_overlay-z-index:var(--forge-overlay-z-index, var(--forge-z-index-popup, 10));--_overlay-height:var(--forge-overlay-height, fit-content);--_overlay-width:var(--forge-overlay-width, fit-content);--_overlay-position-inline-start:var(--forge-overlay-position-inline-start, auto);--_overlay-position-inline-end:var(--forge-overlay-position-inline-end, auto);--_overlay-position-block-start:var(--forge-overlay-position-block-start, auto);--_overlay-position-block-end:var(--forge-overlay-position-block-end, auto)}.forge-overlay{display:none;-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--_overlay-height);width:var(--_overlay-width);border-radius:inherit;position:var(--_overlay-position);top:0;left:0;z-index:var(--_overlay-z-index);background:inherit;color:inherit}:host([position-strategy=absolute]) .forge-overlay{--_overlay-position:var(--forge-overlay-position, absolute)}:host([open][inline]) .forge-overlay{display:block;padding:0;margin:0;border:none;overflow:visible;inset:unset}:host([open]) .forge-overlay:popover-open{display:block;padding:0;margin:0;border:none;overflow:visible;inset:unset}:host([open][no-anchor]) .forge-overlay:popover-open{inset:0;margin:auto;-webkit-margin-start:var(--_overlay-position-inline-start);margin-inline-start:var(--_overlay-position-inline-start);-webkit-margin-end:var(--_overlay-position-inline-end);margin-inline-end:var(--_overlay-position-inline-end);-webkit-margin-before:var(--_overlay-position-block-start);margin-block-start:var(--_overlay-position-block-start);-webkit-margin-after:var(--_overlay-position-block-end);margin-block-end:var(--_overlay-position-block-end)}",Qe,C=class extends P{constructor(){super();kt(this,qe,Je),this._foundation=new St(new At(this))}static get observedAttributes(){return Object.values(g.observedAttributes)}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}};Qe=K,C[Qe]=new Set,_([A()],C.prototype,"arrowElement",2),_([A()],C.prototype,"arrowElementOffset",2),C=_([Ft({name:g.elementName})],C);function ki(){Mt(C)}export{bt as a,g as b,X as c,K as d,we as e,At as f,St as g,C as h,ki as i};
7
+ //# sourceMappingURL=chunk.FOSKVNVV.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{q as g,s as h}from"./chunk.EWT2PBEP.js";import{a as u,d as C,l as T}from"./chunk.L7BSLZCB.js";import{a as _}from"./chunk.ZY3ETQ3D.js";import{a as p}from"./chunk.NVUMRW44.js";import{a as f,b}from"./chunk.UVXKHQQZ.js";import{a as O,e as d,f as s,k as N}from"./chunk.TPXXHX5J.js";import{u as I}from"./chunk.HZUQXCOQ.js";import{k as l}from"./chunk.J2M2MXP2.js";import{d as i}from"./chunk.M3QDAYD2.js";var E=`${b}open-icon`,A={ICON:"forge-open-icon",ICON_OPEN:"forge-open-icon--open"},x={OPEN:"open",ORIENTATION:"orientation"},S={ORIENTATION_VERTICAL:"vertical",ORIENTATION_HORIZONTAL:"horizontal"},e={elementName:E,classes:A,attributes:x,strings:S};var r=class{constructor(o){this._adapter=o;this._open=!1;this._orientation=e.strings.ORIENTATION_VERTICAL}initialize(){this._adapter.setOrientation(this._orientation),this._adapter.setOpenState(this._open)}get open(){return this._open}set open(o){o=!!o,this._open!==o&&(this._open=o,this._adapter.setOpenState(this._open))}get orientation(){return this._orientation}set orientation(o){this._orientation=o,this._adapter.setOrientation(this._orientation)}};var a=class extends _{constructor(t){super(t);this._openIcon=s(t,`.${e.classes.ICON}`),this._iconElement=s(t,u.elementName)}setOrientation(t){t===e.strings.ORIENTATION_HORIZONTAL?this._iconElement.name="keyboard_arrow_right":this._iconElement.name="keyboard_arrow_down"}setOpenState(t){I(this._openIcon,t,e.classes.ICON_OPEN)}};var w='<template><span class="forge-open-icon" part="root"><forge-icon class="icon" part="icon"></forge-icon></span></template>',v=".forge-open-icon{color:#757575;color:var(--forge-theme-icon-color,#757575)}.forge-open-icon .icon{-webkit-transition:-webkit-transform .4s;transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.forge-open-icon.forge-open-icon--open .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host{line-height:.5}:host([hidden]){display:none}",n=class extends N{constructor(){super();C.define([h,g]),d(this,w,v),this._foundation=new r(new a(this))}static get observedAttributes(){return[e.attributes.OPEN,e.attributes.ORIENTATION]}initializedCallback(){this._foundation.initialize()}attributeChangedCallback(t,R,m){switch(t){case e.attributes.OPEN:this.open=l(m);break;case e.attributes.ORIENTATION:this.orientation=m;break}}};i([p()],n.prototype,"open",2),i([p()],n.prototype,"orientation",2),n=i([f({name:e.elementName,dependencies:[T]})],n);function ee(){O(n)}export{e as a,r as b,a as c,n as d,ee as e};
7
- //# sourceMappingURL=chunk.Z7JF5PPO.js.map
6
+ import{r as g,t as h}from"./chunk.RLQB7224.js";import{a as u,d as C,l as T}from"./chunk.CIUPY66Y.js";import{a as _}from"./chunk.6GSVB5NB.js";import{a as p}from"./chunk.NVUMRW44.js";import{a as f,b}from"./chunk.UQQQSJVM.js";import{a as O,e as d,f as s,k as N}from"./chunk.BIQTNLIF.js";import{t as I}from"./chunk.DCCFF327.js";import{k as l}from"./chunk.J2M2MXP2.js";import{d as i}from"./chunk.M3QDAYD2.js";var E=`${b}open-icon`,A={ICON:"forge-open-icon",ICON_OPEN:"forge-open-icon--open"},x={OPEN:"open",ORIENTATION:"orientation"},S={ORIENTATION_VERTICAL:"vertical",ORIENTATION_HORIZONTAL:"horizontal"},e={elementName:E,classes:A,attributes:x,strings:S};var r=class{constructor(o){this._adapter=o;this._open=!1;this._orientation=e.strings.ORIENTATION_VERTICAL}initialize(){this._adapter.setOrientation(this._orientation),this._adapter.setOpenState(this._open)}get open(){return this._open}set open(o){o=!!o,this._open!==o&&(this._open=o,this._adapter.setOpenState(this._open))}get orientation(){return this._orientation}set orientation(o){this._orientation=o,this._adapter.setOrientation(this._orientation)}};var a=class extends _{constructor(t){super(t);this._openIcon=s(t,`.${e.classes.ICON}`),this._iconElement=s(t,u.elementName)}setOrientation(t){t===e.strings.ORIENTATION_HORIZONTAL?this._iconElement.name="keyboard_arrow_right":this._iconElement.name="keyboard_arrow_down"}setOpenState(t){I(this._openIcon,t,e.classes.ICON_OPEN)}};var w='<template><span class="forge-open-icon" part="root"><forge-icon class="icon" part="icon"></forge-icon></span></template>',v=".forge-open-icon{color:#757575;color:var(--forge-theme-icon-color,#757575)}.forge-open-icon .icon{-webkit-transition:-webkit-transform .4s;transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.forge-open-icon.forge-open-icon--open .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host{line-height:.5}:host([hidden]){display:none}",n=class extends N{constructor(){super();C.define([h,g]),d(this,w,v),this._foundation=new r(new a(this))}static get observedAttributes(){return[e.attributes.OPEN,e.attributes.ORIENTATION]}initializedCallback(){this._foundation.initialize()}attributeChangedCallback(t,R,m){switch(t){case e.attributes.OPEN:this.open=l(m);break;case e.attributes.ORIENTATION:this.orientation=m;break}}};i([p()],n.prototype,"open",2),i([p()],n.prototype,"orientation",2),n=i([f({name:e.elementName,dependencies:[T]})],n);function ee(){O(n)}export{e as a,r as b,a as c,n as d,ee as e};
7
+ //# sourceMappingURL=chunk.FRTSXX33.js.map