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

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 (222) hide show
  1. package/custom-elements.json +86 -2
  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/banner/index.js +1 -1
  12. package/dist/esm/bottom-sheet/index.js +1 -1
  13. package/dist/esm/busy-indicator/index.js +1 -1
  14. package/dist/esm/button/index.js +1 -1
  15. package/dist/esm/button-area/index.js +1 -1
  16. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  17. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  18. package/dist/esm/button-toggle/index.js +1 -1
  19. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  20. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  21. package/dist/esm/calendar/index.js +1 -1
  22. package/dist/esm/checkbox/index.js +1 -1
  23. package/dist/esm/chip-field/index.js +1 -1
  24. package/dist/esm/chips/chip/index.js +1 -1
  25. package/dist/esm/chips/chip-set/index.js +1 -1
  26. package/dist/esm/chips/index.js +1 -1
  27. package/dist/esm/chunks/{chunk.6J27XSTE.js → chunk.2AVJJJNS.js} +2 -2
  28. package/dist/esm/chunks/{chunk.H6AG3EFX.js → chunk.2F2N4WBN.js} +2 -2
  29. package/dist/esm/chunks/chunk.3WT7HPA7.js +12 -0
  30. package/dist/esm/chunks/{chunk.W7CM652O.js → chunk.4EBFMRTJ.js} +2 -2
  31. package/dist/esm/chunks/{chunk.6RZCV4ZV.js → chunk.4HZ6SNRV.js} +2 -2
  32. package/dist/esm/chunks/{chunk.HPCXVNG6.js → chunk.4SP42UG3.js} +2 -2
  33. package/dist/esm/chunks/{chunk.HPCXVNG6.js.map → chunk.4SP42UG3.js.map} +3 -3
  34. package/dist/esm/chunks/{chunk.BRLXEKLE.js → chunk.4YKLCBP2.js} +2 -2
  35. package/dist/esm/chunks/{chunk.A6N7ZGN5.js → chunk.54DNA2QP.js} +2 -2
  36. package/dist/esm/chunks/{chunk.A6N7ZGN5.js.map → chunk.54DNA2QP.js.map} +1 -1
  37. package/dist/esm/chunks/{chunk.2NGPMBVU.js → chunk.5JSCGQ7H.js} +2 -2
  38. package/dist/esm/chunks/{chunk.42VNZ74O.js → chunk.5NHGVUVR.js} +2 -2
  39. package/dist/esm/chunks/{chunk.Z7SLVU2O.js → chunk.5PNJOQDZ.js} +2 -2
  40. package/dist/esm/chunks/{chunk.IDB4KFSQ.js → chunk.66RZ2CUB.js} +2 -2
  41. package/dist/esm/chunks/{chunk.PR76A5VF.js → chunk.6DPDC4ON.js} +2 -2
  42. package/dist/esm/chunks/{chunk.ZZRAZZ3N.js → chunk.7AE3ATT3.js} +2 -2
  43. package/dist/esm/chunks/{chunk.AWEDY45N.js → chunk.AXBMJBED.js} +2 -2
  44. package/dist/esm/chunks/{chunk.KOGQOU27.js → chunk.B2RYZJGJ.js} +2 -2
  45. package/dist/esm/chunks/{chunk.S3KKICL3.js → chunk.CISGGM56.js} +2 -2
  46. package/dist/esm/chunks/{chunk.LXFL2C62.js → chunk.CJUX3PL5.js} +2 -2
  47. package/dist/esm/chunks/{chunk.VOL4DT5F.js → chunk.DYBD4IRT.js} +2 -2
  48. package/dist/esm/chunks/{chunk.LDHY3O6H.js → chunk.E2FS4PJS.js} +2 -2
  49. package/dist/esm/chunks/chunk.E7TIN4JS.js +7 -0
  50. package/dist/esm/chunks/chunk.E7TIN4JS.js.map +7 -0
  51. package/dist/esm/chunks/{chunk.OJHNLDNM.js → chunk.F3FWXBDS.js} +2 -2
  52. package/dist/esm/chunks/{chunk.3PHNRX5D.js → chunk.FOQH2SSU.js} +2 -2
  53. package/dist/esm/chunks/{chunk.GFKYBECY.js → chunk.FXDHZCID.js} +2 -2
  54. package/dist/esm/chunks/{chunk.SN3VXOWN.js → chunk.FZC3WXSY.js} +2 -2
  55. package/dist/esm/chunks/chunk.GAQ3POUT.js +7 -0
  56. package/dist/esm/chunks/chunk.GAQ3POUT.js.map +7 -0
  57. package/dist/esm/chunks/{chunk.HBFU4EGB.js → chunk.IE42X2LV.js} +2 -2
  58. package/dist/esm/chunks/{chunk.JRROGJ2G.js → chunk.IO3A5OM6.js} +2 -2
  59. package/dist/esm/chunks/{chunk.EPVNVBZI.js → chunk.J5MWS2KZ.js} +2 -2
  60. package/dist/esm/chunks/{chunk.6YDMW2GO.js → chunk.JO6GPIMF.js} +2 -2
  61. package/dist/esm/chunks/{chunk.5YTYVHYR.js → chunk.JUXSSZ3B.js} +2 -2
  62. package/dist/esm/chunks/{chunk.FTADCSFT.js → chunk.KIQZLNDG.js} +2 -2
  63. package/dist/esm/chunks/{chunk.VX7H6YHF.js → chunk.LNMQ5A25.js} +2 -2
  64. package/dist/esm/chunks/{chunk.YCG7OVYF.js → chunk.MBXBM6UI.js} +2 -2
  65. package/dist/esm/chunks/{chunk.SUR46MJG.js → chunk.N2DHFDXD.js} +2 -2
  66. package/dist/esm/chunks/{chunk.OD54UG2G.js → chunk.NSKIEZWE.js} +2 -2
  67. package/dist/esm/chunks/{chunk.3QUIEBYX.js → chunk.NY3N6KUZ.js} +2 -2
  68. package/dist/esm/chunks/{chunk.ZTBOQMRE.js → chunk.O6WN2UP6.js} +2 -2
  69. package/dist/esm/chunks/{chunk.JMIUB3S3.js → chunk.OWYOZF53.js} +2 -2
  70. package/dist/esm/chunks/{chunk.ND2X5OQ4.js → chunk.OXGCNOUY.js} +2 -2
  71. package/dist/esm/chunks/{chunk.OAZXY4Q5.js → chunk.QIMAHW7V.js} +2 -2
  72. package/dist/esm/chunks/{chunk.ZJQLVAJY.js → chunk.QXZ3AAXD.js} +2 -2
  73. package/dist/esm/chunks/{chunk.TGGC2THA.js → chunk.RB435MRJ.js} +2 -2
  74. package/dist/esm/chunks/{chunk.O7DID7GP.js → chunk.RBG6AMLV.js} +2 -2
  75. package/dist/esm/chunks/{chunk.ZZV7P3FR.js → chunk.RN634NOB.js} +2 -2
  76. package/dist/esm/chunks/{chunk.7QO5JEOC.js → chunk.RQ3RHGLB.js} +2 -2
  77. package/dist/esm/chunks/{chunk.NPCUVYWP.js → chunk.S2KPWTRW.js} +2 -2
  78. package/dist/esm/chunks/{chunk.ME7ICFCZ.js → chunk.SWDOKJUF.js} +2 -2
  79. package/dist/esm/chunks/{chunk.IQ3JWZ2P.js → chunk.ULZJYWM2.js} +2 -2
  80. package/dist/esm/chunks/{chunk.PGSL6NFZ.js → chunk.VGKNQYHG.js} +2 -2
  81. package/dist/esm/chunks/{chunk.VLADAZRB.js → chunk.VRTR7WMN.js} +2 -2
  82. package/dist/esm/chunks/{chunk.NBYCIDFC.js → chunk.W2W3NTFC.js} +2 -2
  83. package/dist/esm/chunks/{chunk.ZSHN7Z45.js → chunk.WKLDPPHS.js} +2 -2
  84. package/dist/esm/chunks/{chunk.4X4SSZQU.js → chunk.WM6ZUVDR.js} +2 -2
  85. package/dist/esm/chunks/{chunk.TRSICKKS.js → chunk.XH63INIK.js} +2 -2
  86. package/dist/esm/chunks/{chunk.VNH44AGF.js → chunk.Y7ZZ7HDC.js} +2 -2
  87. package/dist/esm/chunks/{chunk.MTZOQQXR.js → chunk.YGXXWF52.js} +2 -2
  88. package/dist/esm/chunks/{chunk.KVPKVWCZ.js → chunk.YHIHHGMQ.js} +2 -2
  89. package/dist/esm/chunks/{chunk.OVDO5RVX.js → chunk.YOKBWEXF.js} +2 -2
  90. package/dist/esm/chunks/{chunk.L5OB7WM2.js → chunk.ZYYPOLIG.js} +2 -2
  91. package/dist/esm/color-picker/index.js +1 -1
  92. package/dist/esm/core/index.js +1 -1
  93. package/dist/esm/core/utils/index.js +1 -1
  94. package/dist/esm/date-picker/index.js +1 -1
  95. package/dist/esm/date-range-picker/index.js +1 -1
  96. package/dist/esm/deprecated/button/index.js +1 -1
  97. package/dist/esm/deprecated/index.js +1 -1
  98. package/dist/esm/expansion-panel/index.js +1 -1
  99. package/dist/esm/file-picker/index.js +1 -1
  100. package/dist/esm/floating-action-button/index.js +1 -1
  101. package/dist/esm/focus-indicator/index.js +1 -1
  102. package/dist/esm/icon/index.js +1 -1
  103. package/dist/esm/icon-button/index.js +1 -1
  104. package/dist/esm/index.js +1 -1
  105. package/dist/esm/label/index.js +1 -1
  106. package/dist/esm/list/index.js +1 -1
  107. package/dist/esm/list/list/index.js +1 -1
  108. package/dist/esm/list/list-item/index.js +1 -1
  109. package/dist/esm/list-dropdown/index.js +1 -1
  110. package/dist/esm/menu/index.js +1 -1
  111. package/dist/esm/open-icon/index.js +1 -1
  112. package/dist/esm/overlay/index.js +1 -1
  113. package/dist/esm/paginator/index.js +1 -1
  114. package/dist/esm/popover/index.js +1 -1
  115. package/dist/esm/profile-card/index.js +1 -1
  116. package/dist/esm/quantity-field/index.js +1 -1
  117. package/dist/esm/radio/index.js +1 -1
  118. package/dist/esm/radio/radio/index.js +1 -1
  119. package/dist/esm/radio/radio-group/index.js +1 -1
  120. package/dist/esm/select/core/index.js +1 -1
  121. package/dist/esm/select/index.js +1 -1
  122. package/dist/esm/select/select/index.js +1 -1
  123. package/dist/esm/select/select-dropdown/index.js +1 -1
  124. package/dist/esm/slider/index.js +1 -1
  125. package/dist/esm/split-button/index.js +1 -1
  126. package/dist/esm/split-view/index.js +1 -1
  127. package/dist/esm/split-view/split-view/index.js +1 -1
  128. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  129. package/dist/esm/state-layer/index.js +1 -1
  130. package/dist/esm/stepper/index.js +1 -1
  131. package/dist/esm/stepper/step/index.js +1 -1
  132. package/dist/esm/stepper/stepper/index.js +1 -1
  133. package/dist/esm/switch/index.js +1 -1
  134. package/dist/esm/table/index.js +1 -1
  135. package/dist/esm/tabs/index.js +1 -1
  136. package/dist/esm/tabs/tab/index.js +1 -1
  137. package/dist/esm/tabs/tab-bar/index.js +1 -1
  138. package/dist/esm/time-picker/index.js +1 -1
  139. package/dist/esm/toast/index.js +1 -1
  140. package/dist/esm/tooltip/index.js +1 -1
  141. package/esm/banner/banner-adapter.d.ts +4 -0
  142. package/esm/banner/banner-adapter.js +11 -0
  143. package/esm/banner/banner-constants.d.ts +3 -0
  144. package/esm/banner/banner-constants.js +5 -2
  145. package/esm/banner/banner-foundation.js +7 -1
  146. package/esm/banner/banner.d.ts +3 -0
  147. package/esm/banner/banner.js +5 -3
  148. package/esm/core/utils/position-utils.d.ts +2 -10
  149. package/esm/core/utils/position-utils.js +8 -17
  150. package/esm/core/utils/utils.d.ts +6 -0
  151. package/esm/core/utils/utils.js +9 -0
  152. package/esm/overlay/overlay-adapter.d.ts +1 -2
  153. package/esm/overlay/overlay-adapter.js +9 -13
  154. package/esm/overlay/overlay-constants.d.ts +6 -1
  155. package/esm/overlay/overlay-constants.js +22 -0
  156. package/esm/overlay/overlay-foundation.js +1 -5
  157. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  158. package/package.json +1 -1
  159. package/styles/banner/_core.scss +6 -0
  160. package/styles/banner/banner.scss +30 -2
  161. package/styles/core/styles/tokens/banner/_tokens.scss +1 -0
  162. package/dist/esm/chunks/chunk.4MEXAG3E.js +0 -7
  163. package/dist/esm/chunks/chunk.4MEXAG3E.js.map +0 -7
  164. package/dist/esm/chunks/chunk.53HPDCFR.js +0 -7
  165. package/dist/esm/chunks/chunk.53HPDCFR.js.map +0 -7
  166. package/dist/esm/chunks/chunk.NES5KNAU.js +0 -12
  167. /package/dist/esm/chunks/{chunk.6J27XSTE.js.map → chunk.2AVJJJNS.js.map} +0 -0
  168. /package/dist/esm/chunks/{chunk.H6AG3EFX.js.map → chunk.2F2N4WBN.js.map} +0 -0
  169. /package/dist/esm/chunks/{chunk.NES5KNAU.js.map → chunk.3WT7HPA7.js.map} +0 -0
  170. /package/dist/esm/chunks/{chunk.W7CM652O.js.map → chunk.4EBFMRTJ.js.map} +0 -0
  171. /package/dist/esm/chunks/{chunk.6RZCV4ZV.js.map → chunk.4HZ6SNRV.js.map} +0 -0
  172. /package/dist/esm/chunks/{chunk.BRLXEKLE.js.map → chunk.4YKLCBP2.js.map} +0 -0
  173. /package/dist/esm/chunks/{chunk.2NGPMBVU.js.map → chunk.5JSCGQ7H.js.map} +0 -0
  174. /package/dist/esm/chunks/{chunk.42VNZ74O.js.map → chunk.5NHGVUVR.js.map} +0 -0
  175. /package/dist/esm/chunks/{chunk.Z7SLVU2O.js.map → chunk.5PNJOQDZ.js.map} +0 -0
  176. /package/dist/esm/chunks/{chunk.IDB4KFSQ.js.map → chunk.66RZ2CUB.js.map} +0 -0
  177. /package/dist/esm/chunks/{chunk.PR76A5VF.js.map → chunk.6DPDC4ON.js.map} +0 -0
  178. /package/dist/esm/chunks/{chunk.ZZRAZZ3N.js.map → chunk.7AE3ATT3.js.map} +0 -0
  179. /package/dist/esm/chunks/{chunk.AWEDY45N.js.map → chunk.AXBMJBED.js.map} +0 -0
  180. /package/dist/esm/chunks/{chunk.KOGQOU27.js.map → chunk.B2RYZJGJ.js.map} +0 -0
  181. /package/dist/esm/chunks/{chunk.S3KKICL3.js.map → chunk.CISGGM56.js.map} +0 -0
  182. /package/dist/esm/chunks/{chunk.LXFL2C62.js.map → chunk.CJUX3PL5.js.map} +0 -0
  183. /package/dist/esm/chunks/{chunk.VOL4DT5F.js.map → chunk.DYBD4IRT.js.map} +0 -0
  184. /package/dist/esm/chunks/{chunk.LDHY3O6H.js.map → chunk.E2FS4PJS.js.map} +0 -0
  185. /package/dist/esm/chunks/{chunk.OJHNLDNM.js.map → chunk.F3FWXBDS.js.map} +0 -0
  186. /package/dist/esm/chunks/{chunk.3PHNRX5D.js.map → chunk.FOQH2SSU.js.map} +0 -0
  187. /package/dist/esm/chunks/{chunk.GFKYBECY.js.map → chunk.FXDHZCID.js.map} +0 -0
  188. /package/dist/esm/chunks/{chunk.SN3VXOWN.js.map → chunk.FZC3WXSY.js.map} +0 -0
  189. /package/dist/esm/chunks/{chunk.HBFU4EGB.js.map → chunk.IE42X2LV.js.map} +0 -0
  190. /package/dist/esm/chunks/{chunk.JRROGJ2G.js.map → chunk.IO3A5OM6.js.map} +0 -0
  191. /package/dist/esm/chunks/{chunk.EPVNVBZI.js.map → chunk.J5MWS2KZ.js.map} +0 -0
  192. /package/dist/esm/chunks/{chunk.6YDMW2GO.js.map → chunk.JO6GPIMF.js.map} +0 -0
  193. /package/dist/esm/chunks/{chunk.5YTYVHYR.js.map → chunk.JUXSSZ3B.js.map} +0 -0
  194. /package/dist/esm/chunks/{chunk.FTADCSFT.js.map → chunk.KIQZLNDG.js.map} +0 -0
  195. /package/dist/esm/chunks/{chunk.VX7H6YHF.js.map → chunk.LNMQ5A25.js.map} +0 -0
  196. /package/dist/esm/chunks/{chunk.YCG7OVYF.js.map → chunk.MBXBM6UI.js.map} +0 -0
  197. /package/dist/esm/chunks/{chunk.SUR46MJG.js.map → chunk.N2DHFDXD.js.map} +0 -0
  198. /package/dist/esm/chunks/{chunk.OD54UG2G.js.map → chunk.NSKIEZWE.js.map} +0 -0
  199. /package/dist/esm/chunks/{chunk.3QUIEBYX.js.map → chunk.NY3N6KUZ.js.map} +0 -0
  200. /package/dist/esm/chunks/{chunk.ZTBOQMRE.js.map → chunk.O6WN2UP6.js.map} +0 -0
  201. /package/dist/esm/chunks/{chunk.JMIUB3S3.js.map → chunk.OWYOZF53.js.map} +0 -0
  202. /package/dist/esm/chunks/{chunk.ND2X5OQ4.js.map → chunk.OXGCNOUY.js.map} +0 -0
  203. /package/dist/esm/chunks/{chunk.OAZXY4Q5.js.map → chunk.QIMAHW7V.js.map} +0 -0
  204. /package/dist/esm/chunks/{chunk.ZJQLVAJY.js.map → chunk.QXZ3AAXD.js.map} +0 -0
  205. /package/dist/esm/chunks/{chunk.TGGC2THA.js.map → chunk.RB435MRJ.js.map} +0 -0
  206. /package/dist/esm/chunks/{chunk.O7DID7GP.js.map → chunk.RBG6AMLV.js.map} +0 -0
  207. /package/dist/esm/chunks/{chunk.ZZV7P3FR.js.map → chunk.RN634NOB.js.map} +0 -0
  208. /package/dist/esm/chunks/{chunk.7QO5JEOC.js.map → chunk.RQ3RHGLB.js.map} +0 -0
  209. /package/dist/esm/chunks/{chunk.NPCUVYWP.js.map → chunk.S2KPWTRW.js.map} +0 -0
  210. /package/dist/esm/chunks/{chunk.ME7ICFCZ.js.map → chunk.SWDOKJUF.js.map} +0 -0
  211. /package/dist/esm/chunks/{chunk.IQ3JWZ2P.js.map → chunk.ULZJYWM2.js.map} +0 -0
  212. /package/dist/esm/chunks/{chunk.PGSL6NFZ.js.map → chunk.VGKNQYHG.js.map} +0 -0
  213. /package/dist/esm/chunks/{chunk.VLADAZRB.js.map → chunk.VRTR7WMN.js.map} +0 -0
  214. /package/dist/esm/chunks/{chunk.NBYCIDFC.js.map → chunk.W2W3NTFC.js.map} +0 -0
  215. /package/dist/esm/chunks/{chunk.ZSHN7Z45.js.map → chunk.WKLDPPHS.js.map} +0 -0
  216. /package/dist/esm/chunks/{chunk.4X4SSZQU.js.map → chunk.WM6ZUVDR.js.map} +0 -0
  217. /package/dist/esm/chunks/{chunk.TRSICKKS.js.map → chunk.XH63INIK.js.map} +0 -0
  218. /package/dist/esm/chunks/{chunk.VNH44AGF.js.map → chunk.Y7ZZ7HDC.js.map} +0 -0
  219. /package/dist/esm/chunks/{chunk.MTZOQQXR.js.map → chunk.YGXXWF52.js.map} +0 -0
  220. /package/dist/esm/chunks/{chunk.KVPKVWCZ.js.map → chunk.YHIHHGMQ.js.map} +0 -0
  221. /package/dist/esm/chunks/{chunk.OVDO5RVX.js.map → chunk.YOKBWEXF.js.map} +0 -0
  222. /package/dist/esm/chunks/{chunk.L5OB7WM2.js.map → chunk.ZYYPOLIG.js.map} +0 -0
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as L}from"./chunk.QQUSMJIM.js";import{b as o}from"./chunk.SZETPZGY.js";import{a as G}from"./chunk.IDB4KFSQ.js";import{h as P,i as k}from"./chunk.LXFL2C62.js";import{a as V}from"./chunk.253H47GA.js";import{a as B}from"./chunk.ZY3ETQ3D.js";import{a as d}from"./chunk.NVUMRW44.js";import{i as S}from"./chunk.HZUQXCOQ.js";import{a as T,b as c,j as I,k as y,n as x}from"./chunk.J2M2MXP2.js";import{a as b,d as a}from"./chunk.M3QDAYD2.js";var M={VALUE:"value",MULTIPLE:"multiple",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text"},U=b({},M),R={CHANGE:"change"},m={attributes:U,events:R};var N=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(N||{});function C(r,O){let e=r.some(i=>D(i)),t=r.some(i=>W(i));return e&&O===1||t&&O===0}function D(r){return c(r)&&I(r)&&r.hasOwnProperty("options")}function W(r){return c(r)&&I(r)&&r.hasOwnProperty("label")&&r.hasOwnProperty("value")}var H=class extends k{constructor(e){super();this._adapter=e;this._options=[];this._value=[];this._multiple=!1;this._open=!1;this._selectedValues=[];this._selectedLabels=[];this._selectedIndexes=[];this._filterString="";this._focusListener=t=>this._onFocus(t),this._blurListener=t=>this._onBlur(t),this._clickListener=t=>this._onClick(t),this._keydownListener=t=>this._onKeydown(t),this._optionsChangedListener=t=>this._onOptionsChanged(t),this._activeChangeListener=t=>this._onActiveOptionChanged(t),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dismissListener=()=>this._onDismiss(),this._identifier=T()}_onFocus(e){}initialize(){this._optionListenerDestructor&&this._optionListenerDestructor(),this._optionListenerDestructor=this._adapter.setOptionsListener(this._optionsChangedListener),this._initializeValue()}initializeTarget(){this._adapter.initializeAccessibility(),this._adapter.setMultiple(this._multiple),this._adapter.addClickListener(this._clickListener),this._adapter.addTargetListener("blur",this._blurListener),this._adapter.addTargetListener("focus",this._focusListener),this._adapter.addTargetListener("keydown",this._keydownListener)}disconnect(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeTargetListener("blur",this._blurListener),this._adapter.removeTargetListener("focus",this._focusListener),this._adapter.removeTargetListener("keydown",this._keydownListener),this._open&&this._closeDropdown(),this._optionListenerDestructor&&this._optionListenerDestructor()}appendOptions(e){this._adapter.setOptions(e,!1),this._open&&this._adapter.appendDropdownOptions(e)}selectAll(){this._multiple&&(this.value=this._flatOptions.map(e=>e.value))}deselectAll(){this._multiple&&(this.value=[])}get _flatOptions(){return C(this._options,1)?[].concat.apply([],this._options.map(e=>e.options)):this._options}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}_initializeValue(){let e=this._options.length&&this._options||this._adapter.getOptions();c(this._value)&&e.length&&this._applyValue(this._value)}_onClick(e){e.button===0&&(this._open?this._closeDropdown():this._openDropdown())}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._open&&this._closeDropdown()}_openDropdown(){if(this._options=this._adapter.getOptions(),!this._flatOptions.length)return;this._open=!0;let e={options:this._options,multiple:this._multiple,selectedValues:[...this._selectedValues],id:this._identifier,optionBuilder:this._optionBuilder,syncWidth:this._syncPopupWidth,constrainViewportWidth:this._constrainPopupWidth,wrapOptionText:this._wrapOptionText,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,popupClasses:this._popupClasses,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,closeCallback:()=>this._closeDropdown(),selectCallback:t=>{let i=this._flatOptions,n=i.find(l=>l.value===t);if(n){let l=i.indexOf(n);this._onSelect(n,l,!0)}}};this._adapter.open(e),this._adapter.setDismissListener(this._dismissListener)}_closeDropdown(){this._open=!1,this._adapter.close()}async _onSelect(e,t,i=!0){return new Promise(async n=>{if(this._valueChanging)return Promise.resolve(!1);let l=e?e.value:"",u=e?e.label:"",v=[...this._value],f=[...this._selectedValues],g=[...this._selectedLabels],w=[...this._selectedIndexes];if(this._multiple)if(this._selectedValues.includes(l)){let h=this._selectedValues.indexOf(l);this._selectedValues.splice(h,1),this._selectedLabels.splice(h,1),this._selectedIndexes.splice(h,1)}else this._selectedValues.push(l),this._selectedLabels.push(u),this._selectedIndexes.push(t);else c(l)?(this._selectedValues[0]=l,this._selectedLabels[0]=u,this._selectedIndexes[0]=t):(this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]);this._value=[...this._selectedValues];let s=()=>{this._selectedValues=[...f],this._selectedLabels=[...g],this._selectedIndexes=[...w],this._value=[...v]},_=()=>{if(this._multiple){let h=this._selectedIndexes.includes(t);this._adapter.toggleOptionMultiple(t,h)}this._applySelection()},A=this.multiple?[...this._selectedValues]:this._selectedValues[0];if(this._open&&i&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"){this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,A));let h=await this._valueChanging;if(this._valueChanging=void 0,!h)return s(),this._tryUpdateDropdownPosition(),n(!1)}let E=!this._adapter.emitHostEvent(m.events.CHANGE,A,!0,!0);E?s():_(),this._tryUpdateDropdownPosition(),n(!E)})}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._onSelect(this._nonDividerOptions[e],e)}_tryUpdateDropdownPosition(){this._open&&this._adapter.queueDropdownPositionUpdate()}_reset(){this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]}_applyValue(e){this._selectedValues=[],this._selectedLabels=[],this._options=this._adapter.getOptions(),Array.isArray(e)||(e=[e]),this._value=[];for(let t of e){this._value.includes(t)||this._value.push(t);let i=this._flatOptions.find(n=>x(n.value,t));i&&(this._selectedValues.push(i.value),this._selectedLabels.push(i.label))}this._selectedIndexes=this._selectedValues.map(t=>this._flatOptions.findIndex(i=>i.value===t)),this._adapter.patchSelectedValues(this._selectedValues)}_onDismiss(){this._closeDropdown()}_getSelectedText(){if(typeof this._selectedTextBuilder=="function"){let e=this._flatOptions.filter(t=>this._selectedValues.includes(t.value));return this._selectedTextBuilder(e)}return this._multiple?this._selectedLabels.length?this._selectedLabels.length===1?this._selectedLabels[0]:`${this._selectedLabels.length} options selected`:"":this._selectedLabels.filter(e=>e&&e.length).join(" ").trim()}_onKeydown(e){let t=e.key==="Escape"||e.keyCode===27,i=e.key==="Enter"||e.keyCode===13,n=e.key==="Space"||e.keyCode===32,l=e.key==="ArrowDown"||e.keyCode===40,u=e.key==="ArrowUp"||e.keyCode===38,v=e.keyCode>=48&&e.keyCode<=90,f=e.key==="Home"||e.keyCode===36,g=e.key==="End"||e.keyCode===35;if(e.key==="Tab"&&this._open&&!this._multiple){this._selectActiveOption();return}if(!v&&this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterString="",this._filterTimeout=void 0),t&&(e.preventDefault(),e.stopPropagation(),this._open)){this._closeDropdown();return}if(n)e.preventDefault(),this._open?this._closeDropdown():this._openDropdown();else if(i)this._open&&(e.stopPropagation(),e.preventDefault(),this._options=this._adapter.getOptions(),this._selectActiveOption());else if(u||l){if(e.preventDefault(),!this._open){this._openDropdown(),this._adapter.activateFirstOption();return}if(this._flatOptions.length===0)return;let s=0;this._open?(s=this._adapter.getActiveOptionIndex(),s===-1&&(s=this._getFirstSelectedOptionIndex())):s=this._getFirstSelectedOptionIndex(),u?s=this._getPreviousHighlightableOptionIndex(s,this._nonDividerOptions):s=this._getNextHighlightableOptionIndex(s,this._nonDividerOptions),this._adapter.highlightActiveOption(s)}else if(f)this._open&&(e.preventDefault(),this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(s=>!s.disabled)));else if(g){if(this._open){e.preventDefault();let s=this._nonDividerOptions;for(let _=s.length-1;_>=0;_--)if(!s[_].disabled){this._adapter.highlightActiveOption(_);break}}}else v&&this._filter(e.key)}_getFirstSelectedOptionIndex(){return this._nonDividerOptions.findIndex(e=>this._selectedValues.includes(e.value))}_getPreviousHighlightableOptionIndex(e,t){let i=e;return i<=0?i=t.length-1:i--,t[i].disabled?this._getPreviousHighlightableOptionIndex(i,t):i}_getNextHighlightableOptionIndex(e,t){let i=e;return i===t.length-1?i=0:i++,t[i].disabled?this._getNextHighlightableOptionIndex(i,t):i}_filter(e){this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterTimeout=void 0),this._filterString+=e,this._filterTimeout=window.setTimeout(()=>{this._filterString="",this._filterTimeout=void 0},300),this._options=this._adapter.getOptions();let t=this._flatOptions.find(({disabled:i,label:n})=>!i&&n.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase()));if(t){let i=this._flatOptions.indexOf(t);this._open?this._adapter.highlightActiveOption(i):this._multiple||this._onSelect(t,i,!1)}}_onOptionsChanged(e){this._options=e,this._applyValue(this._value)}_onActiveOptionChanged(e){this._adapter.updateActiveDescendant(e)}get value(){return this._multiple?[...this._value]:this._value[0]}set value(e){let t;Array.isArray(e)?t=[...e]:t=e,this._applyValue(t)}get selectedIndex(){return this._multiple?[...this._selectedIndexes]:this._selectedIndexes[0]}set selectedIndex(e){this._options=this._adapter.getOptions();let t;if(Array.isArray(e)?t=[...e]:t=[e],t.sort(),this.multiple)this.value=t.map(i=>this._flatOptions[i]).filter(i=>i).map(i=>i.value);else{let i=this._flatOptions[t[t.length-1]];if(!i)return;this.value=i.value}}get options(){return this._adapter.getOptions()}set options(e){let t;C(e,1)?t=e.map(i=>b({},i)):t=e.map(i=>b({},i)),this._options=t,this._adapter.setOptions(t),this._initializeValue(),this._open&&this._adapter.setDropdownOptions(t)}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._reset(),this._open&&this._closeDropdown(),this._adapter.setMultiple(this._multiple))}get open(){return this._open}set open(e){this._open!==e&&(e?this._openDropdown():this._closeDropdown())}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit=e}get popupClasses(){return this._popupClasses}set popupClasses(e){this._popupClasses=e}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(e){this._popupFooterBuilder=e}get popupElement(){return this._adapter.popupElement}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){this._beforeValueChange=e}};var p=class extends G{constructor(){super()}attributeChangedCallback(e,t,i){switch(super.attributeChangedCallback(e,t,i),e){case m.attributes.MULTIPLE:this.multiple=y(i);break;case m.attributes.VALUE:this.value=i;break}}appendOptions(e){this._foundation.appendOptions(e)}selectAll(){this._foundation.selectAll()}deselectAll(){this._foundation.deselectAll()}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}};a([d()],p.prototype,"value",2),a([d()],p.prototype,"selectedIndex",2),a([d()],p.prototype,"options",2),a([d()],p.prototype,"multiple",2),a([d()],p.prototype,"open",2),a([d()],p.prototype,"optionBuilder",2),a([d()],p.prototype,"selectedTextBuilder",2),a([d()],p.prototype,"beforeValueChange",2),a([d({set:!1})],p.prototype,"popupElement",2);var F=class extends B{constructor(e){super(e)}get popupElement(){var e;return(e=this._listDropdown)==null?void 0:e.dropdownElement}getOptions(){let e=Array.from(this._component.querySelectorAll(L.elementName));if(e.length)return e.map(t=>{let i=Array.from(t.querySelectorAll(o.elementName)),n=this._createOptionsFromElements(i);return{text:t.label,builder:t.builder,value:t.value,options:n}});{let t=Array.from(this._component.querySelectorAll(o.elementName));return this._createOptionsFromElements(t)}}_createOptionsFromElements(e){return e.map(t=>{let i=t.hasAttribute(o.attributes.OPTION_CLASS)?t.getAttribute(o.attributes.OPTION_CLASS):t.optionClass;return typeof i=="string"&&(i=i.split(" ")),{label:t.hasAttribute(o.attributes.LABEL)?t.getAttribute(o.attributes.LABEL):c(t.label)?t.label:t.innerText,secondaryLabel:t.hasAttribute(o.attributes.SECONDARY_LABEL)?t.getAttribute(o.attributes.SECONDARY_LABEL):c(t.secondaryLabel)?t.secondaryLabel:void 0,value:t.hasAttribute(o.attributes.VALUE)?t.getAttribute(o.attributes.VALUE):t.value,disabled:t.hasAttribute(o.attributes.DISABLED),divider:t.hasAttribute(o.attributes.DIVIDER),optionClass:i,leadingIcon:t.hasAttribute(o.attributes.LEADING_ICON)?t.getAttribute(o.attributes.LEADING_ICON):t.leadingIcon,leadingIconClass:t.hasAttribute(o.attributes.LEADING_ICON_CLASS)?t.getAttribute(o.attributes.LEADING_ICON_CLASS):t.leadingIconClass,leadingIconType:t.hasAttribute(o.attributes.LEADING_ICON_TYPE)?t.getAttribute(o.attributes.LEADING_ICON_TYPE):t.leadingIconType,leadingIconComponentProps:t.leadingIconComponentProps,trailingIcon:t.hasAttribute(o.attributes.TRAILING_ICON)?t.getAttribute(o.attributes.TRAILING_ICON):t.trailingIcon,trailingIconClass:t.hasAttribute(o.attributes.TRAILING_ICON_CLASS)?t.getAttribute(o.attributes.TRAILING_ICON_CLASS):t.trailingIconClass,trailingIconType:t.hasAttribute(o.attributes.TRAILING_ICON_TYPE)?t.getAttribute(o.attributes.TRAILING_ICON_TYPE):t.trailingIconType,trailingIconComponentProps:t.trailingIconComponentProps,leadingBuilder:t.leadingBuilder,trailingBuilder:t.trailingBuilder}})}open(e){this._listDropdown=new P(this._targetElement,e),this._listDropdown.open()}close(){this._listDropdown&&(this._listDropdown.close(),this._listDropdown.destroy(),this._listDropdown=void 0)}setDismissListener(e){if(!this._listDropdown||!this._listDropdown.dropdownElement)return;let t=this._listDropdown.dropdownElement;t.targetElement&&t.targetElement.addEventListener(V.events.BLUR,e)}toggleOptionMultiple(e,t){var i;(i=this._listDropdown)==null||i.toggleOptionMultiple(e,t)}getActiveOptionIndex(){var e,t;return(t=(e=this._listDropdown)==null?void 0:e.getActiveOptionIndex())!=null?t:-1}activateSelectedOption(){var e;(e=this._listDropdown)==null||e.activateSelectedOption()}activateFirstOption(){var e;(e=this._listDropdown)==null||e.activateFirstOption()}highlightActiveOption(e){var t;(t=this._listDropdown)==null||t.activateOption(e)}patchSelectedValues(e){var t;(t=this._listDropdown)==null||t.setSelectedValues(e)}setOptionsListener(e){let t=n=>{n.stopPropagation(),e(this.getOptions())};this._component.addEventListener(o.events.VALUE_CHANGE,t);let i=new MutationObserver(()=>e(this.getOptions()));return i.observe(this._component,{childList:!0,subtree:!0}),()=>{this._component.removeEventListener(o.events.VALUE_CHANGE,t),i.disconnect()}}setOptions(e,t=!0){t&&this._clearOptions();for(let i of e)if(D(i)){let n=this._createOptionGroupElement(i);for(let l of i.options){let u=this._createOptionElement(l);n.appendChild(u)}this._component.appendChild(n)}else{let n=this._createOptionElement(i);this._component.appendChild(n)}}appendDropdownOptions(e){var t;(t=this._listDropdown)==null||t.appendOptions(e)}setDropdownOptions(e){var t;(t=this._listDropdown)==null||t.setOptions(e)}scrollSelectedOptionIntoView(){var e;(e=this._listDropdown)==null||e.scrollSelectedOptionIntoView()}isFocusWithinPopup(e){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(e)}queueDropdownPositionUpdate(){this.popupElement&&window.requestAnimationFrame(()=>{let e=this.popupElement;e==null||e.position()})}_clearOptions(){Array.from(this._component.querySelectorAll(L.elementName)).forEach(i=>S(i)),Array.from(this._component.querySelectorAll(o.elementName)).forEach(i=>S(i))}_createOptionGroupElement(e){let t=document.createElement("forge-option-group");return Object.assign(t,e),t}_createOptionElement(e){let t=document.createElement("forge-option");return Object.assign(t,e),t.textContent=e.label,t}};export{m as a,N as b,C as c,D as d,W as e,H as f,p as g,F as h};
7
- //# sourceMappingURL=chunk.LDHY3O6H.js.map
6
+ import{a as L}from"./chunk.QQUSMJIM.js";import{b as o}from"./chunk.SZETPZGY.js";import{a as G}from"./chunk.66RZ2CUB.js";import{h as P,i as k}from"./chunk.CJUX3PL5.js";import{a as V}from"./chunk.253H47GA.js";import{a as B}from"./chunk.ZY3ETQ3D.js";import{a as d}from"./chunk.NVUMRW44.js";import{i as S}from"./chunk.HZUQXCOQ.js";import{a as T,b as c,j as I,k as y,n as x}from"./chunk.J2M2MXP2.js";import{a as b,d as a}from"./chunk.M3QDAYD2.js";var M={VALUE:"value",MULTIPLE:"multiple",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text"},U=b({},M),R={CHANGE:"change"},m={attributes:U,events:R};var N=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(N||{});function C(r,O){let e=r.some(i=>D(i)),t=r.some(i=>W(i));return e&&O===1||t&&O===0}function D(r){return c(r)&&I(r)&&r.hasOwnProperty("options")}function W(r){return c(r)&&I(r)&&r.hasOwnProperty("label")&&r.hasOwnProperty("value")}var H=class extends k{constructor(e){super();this._adapter=e;this._options=[];this._value=[];this._multiple=!1;this._open=!1;this._selectedValues=[];this._selectedLabels=[];this._selectedIndexes=[];this._filterString="";this._focusListener=t=>this._onFocus(t),this._blurListener=t=>this._onBlur(t),this._clickListener=t=>this._onClick(t),this._keydownListener=t=>this._onKeydown(t),this._optionsChangedListener=t=>this._onOptionsChanged(t),this._activeChangeListener=t=>this._onActiveOptionChanged(t),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dismissListener=()=>this._onDismiss(),this._identifier=T()}_onFocus(e){}initialize(){this._optionListenerDestructor&&this._optionListenerDestructor(),this._optionListenerDestructor=this._adapter.setOptionsListener(this._optionsChangedListener),this._initializeValue()}initializeTarget(){this._adapter.initializeAccessibility(),this._adapter.setMultiple(this._multiple),this._adapter.addClickListener(this._clickListener),this._adapter.addTargetListener("blur",this._blurListener),this._adapter.addTargetListener("focus",this._focusListener),this._adapter.addTargetListener("keydown",this._keydownListener)}disconnect(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeTargetListener("blur",this._blurListener),this._adapter.removeTargetListener("focus",this._focusListener),this._adapter.removeTargetListener("keydown",this._keydownListener),this._open&&this._closeDropdown(),this._optionListenerDestructor&&this._optionListenerDestructor()}appendOptions(e){this._adapter.setOptions(e,!1),this._open&&this._adapter.appendDropdownOptions(e)}selectAll(){this._multiple&&(this.value=this._flatOptions.map(e=>e.value))}deselectAll(){this._multiple&&(this.value=[])}get _flatOptions(){return C(this._options,1)?[].concat.apply([],this._options.map(e=>e.options)):this._options}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}_initializeValue(){let e=this._options.length&&this._options||this._adapter.getOptions();c(this._value)&&e.length&&this._applyValue(this._value)}_onClick(e){e.button===0&&(this._open?this._closeDropdown():this._openDropdown())}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._open&&this._closeDropdown()}_openDropdown(){if(this._options=this._adapter.getOptions(),!this._flatOptions.length)return;this._open=!0;let e={options:this._options,multiple:this._multiple,selectedValues:[...this._selectedValues],id:this._identifier,optionBuilder:this._optionBuilder,syncWidth:this._syncPopupWidth,constrainViewportWidth:this._constrainPopupWidth,wrapOptionText:this._wrapOptionText,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,popupClasses:this._popupClasses,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,closeCallback:()=>this._closeDropdown(),selectCallback:t=>{let i=this._flatOptions,n=i.find(l=>l.value===t);if(n){let l=i.indexOf(n);this._onSelect(n,l,!0)}}};this._adapter.open(e),this._adapter.setDismissListener(this._dismissListener)}_closeDropdown(){this._open=!1,this._adapter.close()}async _onSelect(e,t,i=!0){return new Promise(async n=>{if(this._valueChanging)return Promise.resolve(!1);let l=e?e.value:"",u=e?e.label:"",v=[...this._value],f=[...this._selectedValues],g=[...this._selectedLabels],w=[...this._selectedIndexes];if(this._multiple)if(this._selectedValues.includes(l)){let h=this._selectedValues.indexOf(l);this._selectedValues.splice(h,1),this._selectedLabels.splice(h,1),this._selectedIndexes.splice(h,1)}else this._selectedValues.push(l),this._selectedLabels.push(u),this._selectedIndexes.push(t);else c(l)?(this._selectedValues[0]=l,this._selectedLabels[0]=u,this._selectedIndexes[0]=t):(this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]);this._value=[...this._selectedValues];let s=()=>{this._selectedValues=[...f],this._selectedLabels=[...g],this._selectedIndexes=[...w],this._value=[...v]},_=()=>{if(this._multiple){let h=this._selectedIndexes.includes(t);this._adapter.toggleOptionMultiple(t,h)}this._applySelection()},A=this.multiple?[...this._selectedValues]:this._selectedValues[0];if(this._open&&i&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"){this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,A));let h=await this._valueChanging;if(this._valueChanging=void 0,!h)return s(),this._tryUpdateDropdownPosition(),n(!1)}let E=!this._adapter.emitHostEvent(m.events.CHANGE,A,!0,!0);E?s():_(),this._tryUpdateDropdownPosition(),n(!E)})}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._onSelect(this._nonDividerOptions[e],e)}_tryUpdateDropdownPosition(){this._open&&this._adapter.queueDropdownPositionUpdate()}_reset(){this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]}_applyValue(e){this._selectedValues=[],this._selectedLabels=[],this._options=this._adapter.getOptions(),Array.isArray(e)||(e=[e]),this._value=[];for(let t of e){this._value.includes(t)||this._value.push(t);let i=this._flatOptions.find(n=>x(n.value,t));i&&(this._selectedValues.push(i.value),this._selectedLabels.push(i.label))}this._selectedIndexes=this._selectedValues.map(t=>this._flatOptions.findIndex(i=>i.value===t)),this._adapter.patchSelectedValues(this._selectedValues)}_onDismiss(){this._closeDropdown()}_getSelectedText(){if(typeof this._selectedTextBuilder=="function"){let e=this._flatOptions.filter(t=>this._selectedValues.includes(t.value));return this._selectedTextBuilder(e)}return this._multiple?this._selectedLabels.length?this._selectedLabels.length===1?this._selectedLabels[0]:`${this._selectedLabels.length} options selected`:"":this._selectedLabels.filter(e=>e&&e.length).join(" ").trim()}_onKeydown(e){let t=e.key==="Escape"||e.keyCode===27,i=e.key==="Enter"||e.keyCode===13,n=e.key==="Space"||e.keyCode===32,l=e.key==="ArrowDown"||e.keyCode===40,u=e.key==="ArrowUp"||e.keyCode===38,v=e.keyCode>=48&&e.keyCode<=90,f=e.key==="Home"||e.keyCode===36,g=e.key==="End"||e.keyCode===35;if(e.key==="Tab"&&this._open&&!this._multiple){this._selectActiveOption();return}if(!v&&this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterString="",this._filterTimeout=void 0),t&&(e.preventDefault(),e.stopPropagation(),this._open)){this._closeDropdown();return}if(n)e.preventDefault(),this._open?this._closeDropdown():this._openDropdown();else if(i)this._open&&(e.stopPropagation(),e.preventDefault(),this._options=this._adapter.getOptions(),this._selectActiveOption());else if(u||l){if(e.preventDefault(),!this._open){this._openDropdown(),this._adapter.activateFirstOption();return}if(this._flatOptions.length===0)return;let s=0;this._open?(s=this._adapter.getActiveOptionIndex(),s===-1&&(s=this._getFirstSelectedOptionIndex())):s=this._getFirstSelectedOptionIndex(),u?s=this._getPreviousHighlightableOptionIndex(s,this._nonDividerOptions):s=this._getNextHighlightableOptionIndex(s,this._nonDividerOptions),this._adapter.highlightActiveOption(s)}else if(f)this._open&&(e.preventDefault(),this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(s=>!s.disabled)));else if(g){if(this._open){e.preventDefault();let s=this._nonDividerOptions;for(let _=s.length-1;_>=0;_--)if(!s[_].disabled){this._adapter.highlightActiveOption(_);break}}}else v&&this._filter(e.key)}_getFirstSelectedOptionIndex(){return this._nonDividerOptions.findIndex(e=>this._selectedValues.includes(e.value))}_getPreviousHighlightableOptionIndex(e,t){let i=e;return i<=0?i=t.length-1:i--,t[i].disabled?this._getPreviousHighlightableOptionIndex(i,t):i}_getNextHighlightableOptionIndex(e,t){let i=e;return i===t.length-1?i=0:i++,t[i].disabled?this._getNextHighlightableOptionIndex(i,t):i}_filter(e){this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterTimeout=void 0),this._filterString+=e,this._filterTimeout=window.setTimeout(()=>{this._filterString="",this._filterTimeout=void 0},300),this._options=this._adapter.getOptions();let t=this._flatOptions.find(({disabled:i,label:n})=>!i&&n.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase()));if(t){let i=this._flatOptions.indexOf(t);this._open?this._adapter.highlightActiveOption(i):this._multiple||this._onSelect(t,i,!1)}}_onOptionsChanged(e){this._options=e,this._applyValue(this._value)}_onActiveOptionChanged(e){this._adapter.updateActiveDescendant(e)}get value(){return this._multiple?[...this._value]:this._value[0]}set value(e){let t;Array.isArray(e)?t=[...e]:t=e,this._applyValue(t)}get selectedIndex(){return this._multiple?[...this._selectedIndexes]:this._selectedIndexes[0]}set selectedIndex(e){this._options=this._adapter.getOptions();let t;if(Array.isArray(e)?t=[...e]:t=[e],t.sort(),this.multiple)this.value=t.map(i=>this._flatOptions[i]).filter(i=>i).map(i=>i.value);else{let i=this._flatOptions[t[t.length-1]];if(!i)return;this.value=i.value}}get options(){return this._adapter.getOptions()}set options(e){let t;C(e,1)?t=e.map(i=>b({},i)):t=e.map(i=>b({},i)),this._options=t,this._adapter.setOptions(t),this._initializeValue(),this._open&&this._adapter.setDropdownOptions(t)}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._reset(),this._open&&this._closeDropdown(),this._adapter.setMultiple(this._multiple))}get open(){return this._open}set open(e){this._open!==e&&(e?this._openDropdown():this._closeDropdown())}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit=e}get popupClasses(){return this._popupClasses}set popupClasses(e){this._popupClasses=e}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(e){this._popupFooterBuilder=e}get popupElement(){return this._adapter.popupElement}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){this._beforeValueChange=e}};var p=class extends G{constructor(){super()}attributeChangedCallback(e,t,i){switch(super.attributeChangedCallback(e,t,i),e){case m.attributes.MULTIPLE:this.multiple=y(i);break;case m.attributes.VALUE:this.value=i;break}}appendOptions(e){this._foundation.appendOptions(e)}selectAll(){this._foundation.selectAll()}deselectAll(){this._foundation.deselectAll()}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}};a([d()],p.prototype,"value",2),a([d()],p.prototype,"selectedIndex",2),a([d()],p.prototype,"options",2),a([d()],p.prototype,"multiple",2),a([d()],p.prototype,"open",2),a([d()],p.prototype,"optionBuilder",2),a([d()],p.prototype,"selectedTextBuilder",2),a([d()],p.prototype,"beforeValueChange",2),a([d({set:!1})],p.prototype,"popupElement",2);var F=class extends B{constructor(e){super(e)}get popupElement(){var e;return(e=this._listDropdown)==null?void 0:e.dropdownElement}getOptions(){let e=Array.from(this._component.querySelectorAll(L.elementName));if(e.length)return e.map(t=>{let i=Array.from(t.querySelectorAll(o.elementName)),n=this._createOptionsFromElements(i);return{text:t.label,builder:t.builder,value:t.value,options:n}});{let t=Array.from(this._component.querySelectorAll(o.elementName));return this._createOptionsFromElements(t)}}_createOptionsFromElements(e){return e.map(t=>{let i=t.hasAttribute(o.attributes.OPTION_CLASS)?t.getAttribute(o.attributes.OPTION_CLASS):t.optionClass;return typeof i=="string"&&(i=i.split(" ")),{label:t.hasAttribute(o.attributes.LABEL)?t.getAttribute(o.attributes.LABEL):c(t.label)?t.label:t.innerText,secondaryLabel:t.hasAttribute(o.attributes.SECONDARY_LABEL)?t.getAttribute(o.attributes.SECONDARY_LABEL):c(t.secondaryLabel)?t.secondaryLabel:void 0,value:t.hasAttribute(o.attributes.VALUE)?t.getAttribute(o.attributes.VALUE):t.value,disabled:t.hasAttribute(o.attributes.DISABLED),divider:t.hasAttribute(o.attributes.DIVIDER),optionClass:i,leadingIcon:t.hasAttribute(o.attributes.LEADING_ICON)?t.getAttribute(o.attributes.LEADING_ICON):t.leadingIcon,leadingIconClass:t.hasAttribute(o.attributes.LEADING_ICON_CLASS)?t.getAttribute(o.attributes.LEADING_ICON_CLASS):t.leadingIconClass,leadingIconType:t.hasAttribute(o.attributes.LEADING_ICON_TYPE)?t.getAttribute(o.attributes.LEADING_ICON_TYPE):t.leadingIconType,leadingIconComponentProps:t.leadingIconComponentProps,trailingIcon:t.hasAttribute(o.attributes.TRAILING_ICON)?t.getAttribute(o.attributes.TRAILING_ICON):t.trailingIcon,trailingIconClass:t.hasAttribute(o.attributes.TRAILING_ICON_CLASS)?t.getAttribute(o.attributes.TRAILING_ICON_CLASS):t.trailingIconClass,trailingIconType:t.hasAttribute(o.attributes.TRAILING_ICON_TYPE)?t.getAttribute(o.attributes.TRAILING_ICON_TYPE):t.trailingIconType,trailingIconComponentProps:t.trailingIconComponentProps,leadingBuilder:t.leadingBuilder,trailingBuilder:t.trailingBuilder}})}open(e){this._listDropdown=new P(this._targetElement,e),this._listDropdown.open()}close(){this._listDropdown&&(this._listDropdown.close(),this._listDropdown.destroy(),this._listDropdown=void 0)}setDismissListener(e){if(!this._listDropdown||!this._listDropdown.dropdownElement)return;let t=this._listDropdown.dropdownElement;t.targetElement&&t.targetElement.addEventListener(V.events.BLUR,e)}toggleOptionMultiple(e,t){var i;(i=this._listDropdown)==null||i.toggleOptionMultiple(e,t)}getActiveOptionIndex(){var e,t;return(t=(e=this._listDropdown)==null?void 0:e.getActiveOptionIndex())!=null?t:-1}activateSelectedOption(){var e;(e=this._listDropdown)==null||e.activateSelectedOption()}activateFirstOption(){var e;(e=this._listDropdown)==null||e.activateFirstOption()}highlightActiveOption(e){var t;(t=this._listDropdown)==null||t.activateOption(e)}patchSelectedValues(e){var t;(t=this._listDropdown)==null||t.setSelectedValues(e)}setOptionsListener(e){let t=n=>{n.stopPropagation(),e(this.getOptions())};this._component.addEventListener(o.events.VALUE_CHANGE,t);let i=new MutationObserver(()=>e(this.getOptions()));return i.observe(this._component,{childList:!0,subtree:!0}),()=>{this._component.removeEventListener(o.events.VALUE_CHANGE,t),i.disconnect()}}setOptions(e,t=!0){t&&this._clearOptions();for(let i of e)if(D(i)){let n=this._createOptionGroupElement(i);for(let l of i.options){let u=this._createOptionElement(l);n.appendChild(u)}this._component.appendChild(n)}else{let n=this._createOptionElement(i);this._component.appendChild(n)}}appendDropdownOptions(e){var t;(t=this._listDropdown)==null||t.appendOptions(e)}setDropdownOptions(e){var t;(t=this._listDropdown)==null||t.setOptions(e)}scrollSelectedOptionIntoView(){var e;(e=this._listDropdown)==null||e.scrollSelectedOptionIntoView()}isFocusWithinPopup(e){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(e)}queueDropdownPositionUpdate(){this.popupElement&&window.requestAnimationFrame(()=>{let e=this.popupElement;e==null||e.position()})}_clearOptions(){Array.from(this._component.querySelectorAll(L.elementName)).forEach(i=>S(i)),Array.from(this._component.querySelectorAll(o.elementName)).forEach(i=>S(i))}_createOptionGroupElement(e){let t=document.createElement("forge-option-group");return Object.assign(t,e),t}_createOptionElement(e){let t=document.createElement("forge-option");return Object.assign(t,e),t.textContent=e.label,t}};export{m as a,N as b,C as c,D as d,W as e,H as f,p as g,F as h};
7
+ //# sourceMappingURL=chunk.E2FS4PJS.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import{c as I}from"./chunk.YGXXWF52.js";import{d as B}from"./chunk.S2KPWTRW.js";import{f as S}from"./chunk.EWT2PBEP.js";import{d as T}from"./chunk.L7BSLZCB.js";import{a as _}from"./chunk.ZY3ETQ3D.js";import{a as d}from"./chunk.NVUMRW44.js";import{a as u,b as E}from"./chunk.UVXKHQQZ.js";import{a as h,e as f,f as i,k as v}from"./chunk.TPXXHX5J.js";import{k as a}from"./chunk.J2M2MXP2.js";import{a as g,d as o}from"./chunk.M3QDAYD2.js";var l=`${E}banner`,k={DISMISSED:"dismissed",PERSISTENT:"persistent",CAN_DISMISS:"can-dismiss",THEME:"theme"},y=g({},k),D={HAS_ICON:"has-icon",HAS_BUTTON:"has-button"},L={DISMISS_BUTTON:"[part=dismiss-button]",ICON_SLOT:"slot[name=icon]",BUTTON_SLOT:"slot[name=button]"},x={THEME:"info"},C={BEFORE_DISMISS:`${l}-before-dismiss`,DISMISSED:`${l}-dismissed`},t={elementName:l,observedAttributes:k,attributes:y,classes:D,selectors:L,defaults:x,events:C};var c=class extends _{constructor(e){super(e);this._rootElement=this._component;this._rootElement=i(e,".forge-banner"),this._dismissButtonElement=i(e,t.selectors.DISMISS_BUTTON),this._iconSlotElement=i(e,t.selectors.ICON_SLOT),this._buttonSlotElement=i(e,t.selectors.BUTTON_SLOT)}initialize(){this._iconSlotElement.addEventListener("slotchange",this._onIconSlotChange.bind(this)),this._buttonSlotElement.addEventListener("slotchange",this._onButtonSlotChange.bind(this)),this._onIconSlotChange(),this._onButtonSlotChange()}setDismissButtonVisibility(e){this._dismissButtonElement.hidden=!e}addDismissListener(e){this._dismissButtonElement.addEventListener("click",e)}removeDismissListener(e){this._dismissButtonElement.removeEventListener("click",e)}setDismissed(e){this._rootElement.inert=e}async startDismissCompleteListener(){return new Promise(e=>{this._rootElement.addEventListener("transitionend",()=>e(),{once:!0})})}_onIconSlotChange(){this._rootElement.classList.toggle(t.classes.HAS_ICON,this._iconSlotElement.assignedNodes().length>0)}_onButtonSlotChange(){this._rootElement.classList.toggle(t.classes.HAS_BUTTON,this._buttonSlotElement.assignedNodes().length>0)}};var m=class{constructor(n){this._adapter=n;this._dismissed=!1;this._persistent=!1;this._theme=t.defaults.THEME;this._dismissListener=this._onDismiss.bind(this)}initialize(){this._adapter.initialize(),this._persistent||this._addDismissListener()}async _onDismiss(){if(this._dismissed||this._persistent)return;let n=this._dismissed;this._dismissed=!this._dismissed;let e=new CustomEvent(t.events.BEFORE_DISMISS,{bubbles:!0,composed:!0,cancelable:!0});if(this._adapter.dispatchHostEvent(e),this._dismissed=n,e.defaultPrevented)return;let p=this._adapter.startDismissCompleteListener();this.dismissed=!this._dismissed,await p,this._adapter.dispatchHostEvent(new CustomEvent(t.events.DISMISSED,{bubbles:!0,composed:!0}))}_addDismissListener(){this._adapter.addDismissListener(this._dismissListener)}_removeDismissEventListener(){this._adapter.removeDismissListener(this._dismissListener)}_applyPersistent(){this._adapter.setDismissButtonVisibility(!this._persistent),this._persistent?this._removeDismissEventListener():this._addDismissListener()}get dismissed(){return this._dismissed}set dismissed(n){n=!!n,this.dismissed!==n&&(this._dismissed=n,this._adapter.setDismissed(this._dismissed),this._adapter.toggleHostAttribute(t.attributes.DISMISSED,this.dismissed))}get persistent(){return this._persistent}set persistent(n){n=!!n,this._persistent!==n&&(this._persistent=n,this._applyPersistent(),this._adapter.toggleHostAttribute(t.attributes.PERSISTENT,this._persistent))}get theme(){return this._theme}set theme(n){this._theme!==n&&(this._theme=n!=null?n:t.defaults.THEME,this._adapter.setHostAttribute(t.attributes.THEME,this._theme))}};var N='<template><div class="forge-banner" part="root"><div class="inner"><div class="container"><slot name="icon"></slot><slot></slot><div class="button-container"><slot name="button"></slot></div></div><div class="dismiss-button-container"><slot name="dismiss-button"><forge-icon-button part="dismiss-button"><forge-icon name="cancel"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="bottom"><slot name="dismiss-tooltip">Dismiss</slot></forge-tooltip></slot></div></div></div></template>',A=":host{display:block;container-type:inline-size}:host([hidden]){display:none}.forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-info-container, #c7daf0));--_banner-color:var(--forge-banner-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-info-container, #0b3768));--_banner-gap:var(--forge-banner-gap, var(--forge-spacing-small, 12px));--_banner-padding-inline:var(--forge-banner-padding-inline, var(--forge-spacing-large, 24px));--_banner-padding-block:var(--forge-banner-padding-block, var(--forge-spacing-small, 12px));--_banner-transition-duration:var(--forge-banner-transition-duration, var(--forge-animation-duration-short4, 200ms));--_banner-transition-easing:var(--forge-banner-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-banner{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:opacity,grid-template-rows,min-height;transition-property:opacity,grid-template-rows,min-height;transition-property:opacity,grid-template-rows,min-height,-ms-grid-rows;-webkit-transition-duration:var(--_banner-transition-duration);transition-duration:var(--_banner-transition-duration);-webkit-transition-timing-function:var(--_banner-transition-easing);transition-timing-function:var(--_banner-transition-easing);background:var(--_banner-background);color:var(--_banner-color);opacity:1}.forge-banner .inner{display:grid;grid-template-columns:1fr auto;place-items:center;gap:var(--_banner-gap);overflow:hidden;padding-inline:var(--_banner-padding-inline)}.forge-banner .container{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;gap:var(--_banner-gap);-webkit-box-flex:1;flex:1 1 auto;padding-block:var(--_banner-padding-block)}.forge-banner .dismiss-button-container{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;gap:var(--_banner-gap)}.forge-banner ::slotted(forge-button[slot=dismiss-button]){--forge-button-primary-color:var(--_banner-color)}.forge-banner ::slotted(forge-icon-button[slot=dismiss-button]),.forge-banner forge-icon-button[part=dismiss-button]{color:var(--_banner-icon-color);--forge-icon-button-focus-indicator-color:var(--_banner-color)}::slotted(forge-button[slot=button]){--forge-button-primary-color:var(--_banner-color)}::slotted([slot=icon]){color:var(--_banner-icon-color)}:host([dismissed]) .forge-banner{grid-template-rows:0fr;opacity:0}:host([theme=primary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-primary-container, #d1d5ed));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-primary-container, #222c62))}:host([theme=secondary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-secondary-container, #fff0c3));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-secondary-container, #8a6804))}:host([theme=tertiary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-tertiary-container, #d0d7ff));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-tertiary-container, #213189))}:host([theme=success]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-success-container, #cde0ce));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-success-container, #19441b))}:host([theme=error]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-error-container, #ecc2c9));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-error-container, #5f0011))}:host([theme=warning]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-warning-container, #f4d3c2));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-warning-container, #712700))}:host([theme=danger]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-error-container, #ecc2c9));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-error-container, #5f0011))}:host([theme=info-secondary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-surface-container, #e0e0e0));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-surface-container, #000000))}@container (max-width:600px){.forge-banner.has-button .container{display:grid;grid-template-rows:[content] 1fr [button] auto;grid-template-columns:[content] 1fr;place-items:normal}.forge-banner.has-button.has-icon .container{grid-template-columns:[icon] auto [content] 1fr}.forge-banner.has-button .inner{place-items:normal}.forge-banner.has-button .button-container{grid-row:button;grid-column:content}.forge-banner.has-button .dismiss-button-container{-webkit-box-align:start;align-items:flex-start}}",r=class extends v{constructor(){super();T.define(S),f(this,N,A),this._foundation=new m(new c(this))}static get observedAttributes(){return Object.values(t.observedAttributes)}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(e,p,s){switch(e){case t.observedAttributes.DISMISSED:this.dismissed=a(s);break;case t.observedAttributes.PERSISTENT:this.persistent=a(s);break;case t.observedAttributes.CAN_DISMISS:this.persistent=a(s)===!1;break;case t.observedAttributes.THEME:this.theme=s;break}}get canDismiss(){return!this.persistent}set canDismiss(e){this.persistent=!e}};o([d()],r.prototype,"dismissed",2),o([d()],r.prototype,"persistent",2),o([d()],r.prototype,"theme",2),r=o([u({name:t.elementName,dependencies:[B,I]})],r);function se(){h(r)}export{t as a,c as b,m as c,r as d,se as e};
7
+ //# sourceMappingURL=chunk.E7TIN4JS.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/banner/banner-constants.ts", "../../src/banner/banner-adapter.ts", "../../src/banner/banner-foundation.ts", "../../src/banner/banner.ts", "../../src/banner/index.ts"],
4
+ "sourcesContent": ["import { COMPONENT_NAME_PREFIX, Theme } from '../constants';\n\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}banner`;\n\nconst observedAttributes = {\n DISMISSED: 'dismissed',\n PERSISTENT: 'persistent',\n CAN_DISMISS: 'can-dismiss',\n THEME: 'theme'\n};\n\nconst attributes = {\n ...observedAttributes\n};\n\nconst classes = {\n HAS_ICON: 'has-icon',\n HAS_BUTTON: 'has-button'\n};\n\nconst selectors = {\n DISMISS_BUTTON: '[part=dismiss-button]',\n ICON_SLOT: 'slot[name=icon]',\n BUTTON_SLOT: 'slot[name=button]'\n};\n\nconst defaults = {\n THEME: 'info' as BannerTheme\n};\n\nconst events = {\n BEFORE_DISMISS: `${elementName}-before-dismiss`,\n DISMISSED: `${elementName}-dismissed`\n};\n\nexport const BANNER_CONSTANTS = {\n elementName,\n observedAttributes,\n attributes,\n classes,\n selectors,\n defaults,\n events\n};\n\nexport type BannerTheme = Theme | 'danger' | 'info-secondary';\n", "import { getShadowElement } from '@tylertech/forge-core';\nimport { BaseAdapter, IBaseAdapter } from '../core/base/base-adapter';\nimport type { IBannerComponent } from './banner';\nimport { BANNER_CONSTANTS } from './banner-constants';\n\nexport interface IBannerAdapter extends IBaseAdapter {\n initialize(): void;\n setDismissButtonVisibility(visible: boolean): void;\n addDismissListener(callback: EventListener): void;\n removeDismissListener(callback: EventListener): void;\n startDismissCompleteListener(): Promise<void>;\n setDismissed(value: boolean): void;\n}\n\nexport class BannerAdapter extends BaseAdapter<IBannerComponent> implements IBannerAdapter {\n private _rootElement: HTMLElement = this._component;\n private _dismissButtonElement: HTMLButtonElement;\n private _iconSlotElement: HTMLSlotElement;\n private _buttonSlotElement: HTMLSlotElement;\n\n constructor(component: IBannerComponent) {\n super(component);\n this._rootElement = getShadowElement(component, '.forge-banner');\n this._dismissButtonElement = getShadowElement(component, BANNER_CONSTANTS.selectors.DISMISS_BUTTON) as HTMLButtonElement;\n this._iconSlotElement = getShadowElement(component, BANNER_CONSTANTS.selectors.ICON_SLOT) as HTMLSlotElement;\n this._buttonSlotElement = getShadowElement(component, BANNER_CONSTANTS.selectors.BUTTON_SLOT) as HTMLSlotElement;\n }\n \n public initialize(): void {\n this._iconSlotElement.addEventListener('slotchange', this._onIconSlotChange.bind(this));\n this._buttonSlotElement.addEventListener('slotchange', this._onButtonSlotChange.bind(this));\n\n this._onIconSlotChange();\n this._onButtonSlotChange();\n }\n\n public setDismissButtonVisibility(visible: boolean): void {\n this._dismissButtonElement.hidden = !visible;\n }\n\n public addDismissListener(callback: EventListener): void {\n this._dismissButtonElement.addEventListener('click', callback);\n }\n\n public removeDismissListener(callback: EventListener): void {\n this._dismissButtonElement.removeEventListener('click', callback);\n }\n\n public setDismissed(value: boolean): void {\n this._rootElement.inert = value;\n }\n\n public async startDismissCompleteListener(): Promise<void> {\n return new Promise<void>(resolve => {\n this._rootElement.addEventListener('transitionend', () => resolve(), { once: true });\n });\n }\n\n private _onIconSlotChange(): void {\n this._rootElement.classList.toggle(BANNER_CONSTANTS.classes.HAS_ICON, this._iconSlotElement.assignedNodes().length > 0);\n }\n\n private _onButtonSlotChange(): void {\n this._rootElement.classList.toggle(BANNER_CONSTANTS.classes.HAS_BUTTON, this._buttonSlotElement.assignedNodes().length > 0);\n }\n}\n", "import { ICustomElementFoundation } from '@tylertech/forge-core';\nimport { IBannerAdapter } from './banner-adapter';\nimport { BannerTheme, BANNER_CONSTANTS } from './banner-constants';\n\nexport interface IBannerFoundation extends ICustomElementFoundation {\n dismissed: boolean;\n persistent: boolean;\n theme: BannerTheme;\n}\n\nexport class BannerFoundation implements IBannerFoundation {\n private _dismissed = false;\n private _persistent = false;\n private _theme: BannerTheme = BANNER_CONSTANTS.defaults.THEME;\n private _dismissListener: EventListener = this._onDismiss.bind(this);\n\n constructor(private _adapter: IBannerAdapter) {}\n\n public initialize(): void {\n this._adapter.initialize();\n\n if (!this._persistent) {\n this._addDismissListener();\n }\n }\n\n private async _onDismiss(): Promise<void> {\n if (this._dismissed || this._persistent) {\n return;\n }\n\n const originalDismissed = this._dismissed;\n this._dismissed = !this._dismissed;\n\n const evt = new CustomEvent(BANNER_CONSTANTS.events.BEFORE_DISMISS, { bubbles: true, composed: true, cancelable: true });\n this._adapter.dispatchHostEvent(evt);\n this._dismissed = originalDismissed;\n\n if (evt.defaultPrevented) {\n return;\n }\n\n const dismissComplete = this._adapter.startDismissCompleteListener();\n this.dismissed = !this._dismissed;\n await dismissComplete;\n this._adapter.dispatchHostEvent(new CustomEvent(BANNER_CONSTANTS.events.DISMISSED, { bubbles: true, composed: true }));\n }\n\n private _addDismissListener(): void {\n this._adapter.addDismissListener(this._dismissListener);\n }\n\n private _removeDismissEventListener(): void {\n this._adapter.removeDismissListener(this._dismissListener);\n }\n\n private _applyPersistent(): void {\n this._adapter.setDismissButtonVisibility(!this._persistent);\n if (this._persistent) {\n this._removeDismissEventListener();\n } else {\n this._addDismissListener();\n }\n }\n\n public get dismissed(): boolean {\n return this._dismissed;\n }\n public set dismissed(value: boolean) {\n value = Boolean(value);\n if (this.dismissed !== value) {\n this._dismissed = value;\n this._adapter.setDismissed(this._dismissed);\n this._adapter.toggleHostAttribute(BANNER_CONSTANTS.attributes.DISMISSED, this.dismissed);\n }\n }\n\n public get persistent(): boolean {\n return this._persistent;\n }\n public set persistent(value: boolean) {\n value = Boolean(value);\n if (this._persistent !== value) {\n this._persistent = value;\n this._applyPersistent();\n this._adapter.toggleHostAttribute(BANNER_CONSTANTS.attributes.PERSISTENT, this._persistent);\n }\n }\n\n public get theme(): BannerTheme {\n return this._theme;\n }\n public set theme(value: BannerTheme) {\n if (this._theme !== value) {\n this._theme = value ?? BANNER_CONSTANTS.defaults.THEME;\n this._adapter.setHostAttribute(BANNER_CONSTANTS.attributes.THEME, this._theme);\n }\n }\n}\n", "import { attachShadowTemplate, coerceBoolean, CustomElement, FoundationProperty } from '@tylertech/forge-core';\nimport { tylIconCancel } from '@tylertech/tyler-icons/standard';\nimport { BaseComponent, IBaseComponent } from '../core/base/base-component';\nimport { IconRegistry } from '../icon';\nimport { IconButtonComponent } from '../icon-button';\nimport { TooltipComponent } from '../tooltip';\nimport { BannerAdapter } from './banner-adapter';\nimport { BannerTheme, BANNER_CONSTANTS } from './banner-constants';\nimport { BannerFoundation } from './banner-foundation';\n\nconst template = '<template><div class=\\\"forge-banner\\\" part=\\\"root\\\"><div class=\\\"inner\\\"><div class=\\\"container\\\"><slot name=\\\"icon\\\"></slot><slot></slot><div class=\\\"button-container\\\"><slot name=\\\"button\\\"></slot></div></div><div class=\\\"dismiss-button-container\\\"><slot name=\\\"dismiss-button\\\"><forge-icon-button part=\\\"dismiss-button\\\"><forge-icon name=\\\"cancel\\\"></forge-icon></forge-icon-button><forge-tooltip type=\\\"label\\\" placement=\\\"bottom\\\"><slot name=\\\"dismiss-tooltip\\\">Dismiss</slot></forge-tooltip></slot></div></div></div></template>';\nconst styles = ':host{display:block;container-type:inline-size}:host([hidden]){display:none}.forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-info-container, #c7daf0));--_banner-color:var(--forge-banner-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-info-container, #0b3768));--_banner-gap:var(--forge-banner-gap, var(--forge-spacing-small, 12px));--_banner-padding-inline:var(--forge-banner-padding-inline, var(--forge-spacing-large, 24px));--_banner-padding-block:var(--forge-banner-padding-block, var(--forge-spacing-small, 12px));--_banner-transition-duration:var(--forge-banner-transition-duration, var(--forge-animation-duration-short4, 200ms));--_banner-transition-easing:var(--forge-banner-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-banner{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:opacity,grid-template-rows,min-height;transition-property:opacity,grid-template-rows,min-height;transition-property:opacity,grid-template-rows,min-height,-ms-grid-rows;-webkit-transition-duration:var(--_banner-transition-duration);transition-duration:var(--_banner-transition-duration);-webkit-transition-timing-function:var(--_banner-transition-easing);transition-timing-function:var(--_banner-transition-easing);background:var(--_banner-background);color:var(--_banner-color);opacity:1}.forge-banner .inner{display:grid;grid-template-columns:1fr auto;place-items:center;gap:var(--_banner-gap);overflow:hidden;padding-inline:var(--_banner-padding-inline)}.forge-banner .container{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;gap:var(--_banner-gap);-webkit-box-flex:1;flex:1 1 auto;padding-block:var(--_banner-padding-block)}.forge-banner .dismiss-button-container{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;gap:var(--_banner-gap)}.forge-banner ::slotted(forge-button[slot=dismiss-button]){--forge-button-primary-color:var(--_banner-color)}.forge-banner ::slotted(forge-icon-button[slot=dismiss-button]),.forge-banner forge-icon-button[part=dismiss-button]{color:var(--_banner-icon-color);--forge-icon-button-focus-indicator-color:var(--_banner-color)}::slotted(forge-button[slot=button]){--forge-button-primary-color:var(--_banner-color)}::slotted([slot=icon]){color:var(--_banner-icon-color)}:host([dismissed]) .forge-banner{grid-template-rows:0fr;opacity:0}:host([theme=primary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-primary-container, #d1d5ed));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-primary-container, #222c62))}:host([theme=secondary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-secondary-container, #fff0c3));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-secondary-container, #8a6804))}:host([theme=tertiary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-tertiary-container, #d0d7ff));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-tertiary-container, #213189))}:host([theme=success]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-success-container, #cde0ce));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-success-container, #19441b))}:host([theme=error]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-error-container, #ecc2c9));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-error-container, #5f0011))}:host([theme=warning]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-warning-container, #f4d3c2));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-warning-container, #712700))}:host([theme=danger]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-error-container, #ecc2c9));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-error-container, #5f0011))}:host([theme=info-secondary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-surface-container, #e0e0e0));--_banner-icon-color:var(--forge-banner-icon-color, var(--forge-theme-on-surface-container, #000000))}@container (max-width:600px){.forge-banner.has-button .container{display:grid;grid-template-rows:[content] 1fr [button] auto;grid-template-columns:[content] 1fr;place-items:normal}.forge-banner.has-button.has-icon .container{grid-template-columns:[icon] auto [content] 1fr}.forge-banner.has-button .inner{place-items:normal}.forge-banner.has-button .button-container{grid-row:button;grid-column:content}.forge-banner.has-button .dismiss-button-container{-webkit-box-align:start;align-items:flex-start}}';\n\nexport interface IBannerComponent extends IBaseComponent {\n dismissed: boolean;\n persistent: boolean;\n theme: BannerTheme;\n /** @deprecated Use `persistent` instead. */\n canDismiss: boolean;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'forge-banner': IBannerComponent;\n }\n\n interface HTMLElementEventMap {\n 'forge-banner-before-dismiss': CustomEvent<void>;\n 'forge-banner-dismissed': CustomEvent<void>;\n }\n}\n\n/**\n * @tag forge-banner\n * \n * @summary Banners are used to inform users of important information, such as errors, warnings, or success messages.\n * \n * @property {boolean} dismissed - Controls the visibility of the banner.\n * @property {boolean} persistent - Controls the visibility of the built-in dismiss button.\n * @property {BannerTheme} theme - The theme of the banner.\n * \n * @attribute {boolean} dismissed - Controls the visibility of the banner.\n * @attribute {boolean} persistent - Controls the visibility of the built-in dismiss button.\n * @attribute {BannerTheme} theme - The theme of the banner.\n * \n * @event {CustomEvent} forge-banner-before-dismiss - Dispatched before the banner is dismissed. Cancelable to prevent dismissal.\n * @event {CustomEvent} forge-banner-dismissed - Dispatched when the banner is dismissed.\n * \n * @cssproperty --forge-banner-background - The background color of the banner.\n * @cssproperty --forge-banner-color - The text color of the banner.\n * @cssproperty --forge-banner-icon-color - The color of the icon.\n * @cssproperty --forge-banner-gap - The gap between the contents.\n * @cssproperty --forge-banner-padding-inline - The inline padding.\n * @cssproperty --forge-banner-padding-block - The block padding.\n * @cssproperty --forge-banner-transition-duration - The transition duration.\n * @cssproperty --forge-banner-transition-easing - The transition easing function.\n * \n * @slot - The content of the banner.\n * @slot icon - The icon to display.\n * @slot button - The optional button to display.\n */\n@CustomElement({\n name: BANNER_CONSTANTS.elementName,\n dependencies: [\n IconButtonComponent,\n TooltipComponent\n ]\n})\nexport class BannerComponent extends BaseComponent implements IBannerComponent {\n public static get observedAttributes(): string[] {\n return Object.values(BANNER_CONSTANTS.observedAttributes);\n }\n\n protected _foundation: BannerFoundation;\n\n constructor() {\n super();\n IconRegistry.define(tylIconCancel);\n attachShadowTemplate(this, template, styles);\n this._foundation = new BannerFoundation(new BannerAdapter(this));\n }\n\n public connectedCallback(): void {\n this._foundation.initialize();\n }\n\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n switch (name) {\n case BANNER_CONSTANTS.observedAttributes.DISMISSED:\n this.dismissed = coerceBoolean(newValue);\n break;\n case BANNER_CONSTANTS.observedAttributes.PERSISTENT:\n this.persistent = coerceBoolean(newValue);\n break;\n case BANNER_CONSTANTS.observedAttributes.CAN_DISMISS:\n this.persistent = coerceBoolean(newValue) === false;\n break;\n case BANNER_CONSTANTS.observedAttributes.THEME:\n this.theme = newValue as BannerTheme;\n break;\n }\n }\n\n @FoundationProperty()\n public declare dismissed: boolean;\n\n @FoundationProperty()\n public declare persistent: boolean;\n\n @FoundationProperty()\n public declare theme: BannerTheme;\n\n /** @deprecated Use `persistent` instead. */\n public get canDismiss(): boolean {\n return !this.persistent;\n }\n public set canDismiss(value: boolean) {\n this.persistent = !value;\n }\n}\n", "import { defineCustomElement } from '@tylertech/forge-core';\n\nimport { BannerComponent } from './banner';\n\nexport * from './banner-adapter';\nexport * from './banner-constants';\nexport * from './banner-foundation';\nexport * from './banner';\n\nexport function defineBannerComponent(): void {\n defineCustomElement(BannerComponent);\n}\n"],
5
+ "mappings": "mbAEA,IAAMA,EAA2C,GAAGC,UAE9CC,EAAqB,CACzB,UAAW,YACX,WAAY,aACZ,YAAa,cACb,MAAO,OACT,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAU,CACd,SAAU,WACV,WAAY,YACd,EAEMC,EAAY,CAChB,eAAgB,wBAChB,UAAW,kBACX,YAAa,mBACf,EAEMC,EAAW,CACf,MAAO,MACT,EAEMC,EAAS,CACb,eAAgB,GAAGR,mBACnB,UAAW,GAAGA,aAChB,EAEaS,EAAmB,CAC9B,YAAAT,EACA,mBAAAE,EACA,WAAAC,EACA,QAAAE,EACA,UAAAC,EACA,SAAAC,EACA,OAAAC,CACF,EC7BO,IAAME,EAAN,cAA4BC,CAAwD,CAMzF,YAAYC,EAA6B,CACvC,MAAMA,CAAS,EANjB,KAAQ,aAA4B,KAAK,WAOvC,KAAK,aAAeC,EAAiBD,EAAW,eAAe,EAC/D,KAAK,sBAAwBC,EAAiBD,EAAWE,EAAiB,UAAU,cAAc,EAClG,KAAK,iBAAmBD,EAAiBD,EAAWE,EAAiB,UAAU,SAAS,EACxF,KAAK,mBAAqBD,EAAiBD,EAAWE,EAAiB,UAAU,WAAW,CAC9F,CAEO,YAAmB,CACxB,KAAK,iBAAiB,iBAAiB,aAAc,KAAK,kBAAkB,KAAK,IAAI,CAAC,EACtF,KAAK,mBAAmB,iBAAiB,aAAc,KAAK,oBAAoB,KAAK,IAAI,CAAC,EAE1F,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,CAC3B,CAEO,2BAA2BC,EAAwB,CACxD,KAAK,sBAAsB,OAAS,CAACA,CACvC,CAEO,mBAAmBC,EAA+B,CACvD,KAAK,sBAAsB,iBAAiB,QAASA,CAAQ,CAC/D,CAEO,sBAAsBA,EAA+B,CAC1D,KAAK,sBAAsB,oBAAoB,QAASA,CAAQ,CAClE,CAEO,aAAaC,EAAsB,CACxC,KAAK,aAAa,MAAQA,CAC5B,CAEA,MAAa,8BAA8C,CACzD,OAAO,IAAI,QAAcC,GAAW,CAClC,KAAK,aAAa,iBAAiB,gBAAiB,IAAMA,EAAQ,EAAG,CAAE,KAAM,EAAK,CAAC,CACrF,CAAC,CACH,CAEQ,mBAA0B,CAChC,KAAK,aAAa,UAAU,OAAOJ,EAAiB,QAAQ,SAAU,KAAK,iBAAiB,cAAc,EAAE,OAAS,CAAC,CACxH,CAEQ,qBAA4B,CAClC,KAAK,aAAa,UAAU,OAAOA,EAAiB,QAAQ,WAAY,KAAK,mBAAmB,cAAc,EAAE,OAAS,CAAC,CAC5H,CACF,ECvDO,IAAMK,EAAN,KAAoD,CAMzD,YAAoBC,EAA0B,CAA1B,cAAAA,EALpB,KAAQ,WAAa,GACrB,KAAQ,YAAc,GACtB,KAAQ,OAAsBC,EAAiB,SAAS,MACxD,KAAQ,iBAAkC,KAAK,WAAW,KAAK,IAAI,CAEpB,CAExC,YAAmB,CACxB,KAAK,SAAS,WAAW,EAEpB,KAAK,aACR,KAAK,oBAAoB,CAE7B,CAEA,MAAc,YAA4B,CACxC,GAAI,KAAK,YAAc,KAAK,YAC1B,OAGF,IAAMC,EAAoB,KAAK,WAC/B,KAAK,WAAa,CAAC,KAAK,WAExB,IAAMC,EAAM,IAAI,YAAYF,EAAiB,OAAO,eAAgB,CAAE,QAAS,GAAM,SAAU,GAAM,WAAY,EAAK,CAAC,EAIvH,GAHA,KAAK,SAAS,kBAAkBE,CAAG,EACnC,KAAK,WAAaD,EAEdC,EAAI,iBACN,OAGF,IAAMC,EAAkB,KAAK,SAAS,6BAA6B,EACnE,KAAK,UAAY,CAAC,KAAK,WACvB,MAAMA,EACN,KAAK,SAAS,kBAAkB,IAAI,YAAYH,EAAiB,OAAO,UAAW,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,CACvH,CAEQ,qBAA4B,CAClC,KAAK,SAAS,mBAAmB,KAAK,gBAAgB,CACxD,CAEQ,6BAAoC,CAC1C,KAAK,SAAS,sBAAsB,KAAK,gBAAgB,CAC3D,CAEQ,kBAAyB,CAC/B,KAAK,SAAS,2BAA2B,CAAC,KAAK,WAAW,EACtD,KAAK,YACP,KAAK,4BAA4B,EAEjC,KAAK,oBAAoB,CAE7B,CAEA,IAAW,WAAqB,CAC9B,OAAO,KAAK,UACd,CACA,IAAW,UAAUI,EAAgB,CACnCA,EAAQ,EAAQA,EACZ,KAAK,YAAcA,IACrB,KAAK,WAAaA,EAClB,KAAK,SAAS,aAAa,KAAK,UAAU,EAC1C,KAAK,SAAS,oBAAoBJ,EAAiB,WAAW,UAAW,KAAK,SAAS,EAE3F,CAEA,IAAW,YAAsB,CAC/B,OAAO,KAAK,WACd,CACA,IAAW,WAAWI,EAAgB,CACpCA,EAAQ,EAAQA,EACZ,KAAK,cAAgBA,IACvB,KAAK,YAAcA,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,oBAAoBJ,EAAiB,WAAW,WAAY,KAAK,WAAW,EAE9F,CAEA,IAAW,OAAqB,CAC9B,OAAO,KAAK,MACd,CACA,IAAW,MAAMI,EAAoB,CAC/B,KAAK,SAAWA,IAClB,KAAK,OAASA,GAAA,KAAAA,EAASJ,EAAiB,SAAS,MACjD,KAAK,SAAS,iBAAiBA,EAAiB,WAAW,MAAO,KAAK,MAAM,EAEjF,CACF,ECxFA,IAAMK,EAAW,4fACXC,EAAS,s7JAyDFC,EAAN,cAA8BC,CAA0C,CAO7E,aAAc,CACZ,MAAM,EACNC,EAAa,OAAOC,CAAa,EACjCC,EAAqB,KAAMN,EAAUC,CAAM,EAC3C,KAAK,YAAc,IAAIM,EAAiB,IAAIC,EAAc,IAAI,CAAC,CACjE,CAXA,WAAkB,oBAA+B,CAC/C,OAAO,OAAO,OAAOC,EAAiB,kBAAkB,CAC1D,CAWO,mBAA0B,CAC/B,KAAK,YAAY,WAAW,CAC9B,CAEO,yBAAyBC,EAAcC,EAAkBC,EAAwB,CACtF,OAAQF,EAAM,CACZ,KAAKD,EAAiB,mBAAmB,UACvC,KAAK,UAAYI,EAAcD,CAAQ,EACvC,MACF,KAAKH,EAAiB,mBAAmB,WACvC,KAAK,WAAaI,EAAcD,CAAQ,EACxC,MACF,KAAKH,EAAiB,mBAAmB,YACvC,KAAK,WAAaI,EAAcD,CAAQ,IAAM,GAC9C,MACF,KAAKH,EAAiB,mBAAmB,MACvC,KAAK,MAAQG,EACb,KACJ,CACF,CAYA,IAAW,YAAsB,CAC/B,MAAO,CAAC,KAAK,UACf,CACA,IAAW,WAAWE,EAAgB,CACpC,KAAK,WAAa,CAACA,CACrB,CACF,EAfiBC,EAAA,CADdC,EAAmB,GAnCTd,EAoCI,yBAGAa,EAAA,CADdC,EAAmB,GAtCTd,EAuCI,0BAGAa,EAAA,CADdC,EAAmB,GAzCTd,EA0CI,qBA1CJA,EAANa,EAAA,CAPNE,EAAc,CACb,KAAMR,EAAiB,YACvB,aAAc,CACZS,EACAC,CACF,CACF,CAAC,GACYjB,GC3DN,SAASkB,IAA8B,CAC5CC,EAAoBC,CAAe,CACrC",
6
+ "names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "classes", "selectors", "defaults", "events", "BANNER_CONSTANTS", "BannerAdapter", "BaseAdapter", "component", "getShadowElement", "BANNER_CONSTANTS", "visible", "callback", "value", "resolve", "BannerFoundation", "_adapter", "BANNER_CONSTANTS", "originalDismissed", "evt", "dismissComplete", "value", "template", "styles", "BannerComponent", "BaseComponent", "IconRegistry", "tylIconCancel", "attachShadowTemplate", "BannerFoundation", "BannerAdapter", "BANNER_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "value", "__decorateClass", "FoundationProperty", "CustomElement", "IconButtonComponent", "TooltipComponent", "defineBannerComponent", "defineCustomElement", "BannerComponent"]
7
+ }
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{j as m}from"./chunk.HPCXVNG6.js";import{a as b}from"./chunk.ZY3ETQ3D.js";import{a as s}from"./chunk.NVUMRW44.js";import{a as _,b as g}from"./chunk.UVXKHQQZ.js";import{e as h,k as p}from"./chunk.TPXXHX5J.js";import{k as c}from"./chunk.J2M2MXP2.js";import{a as f,d as n}from"./chunk.M3QDAYD2.js";var d=class extends b{constructor(e){super(e);this._targetElement=null}destroy(){this._targetElement=null}hasTargetElement(){return!!this._targetElement}addTargetListener(e,o){var r;(r=this._targetElement)==null||r.addEventListener(e,o)}removeTargetListener(e,o){var r;(r=this._targetElement)==null||r.removeEventListener(e,o)}getTargetElement(){return this._targetElement}setTargetElement(e){this._targetElement=e}trySetTarget(e){this._targetElement=m(this._component,e)}isActive(e,o){let r=o!=null?o:this._targetElement;return!!(r!=null&&r.matches(e))}};var v=`${g}focus-indicator`,w={TARGET:"target",ACTIVE:"active",INWARD:"inward",CIRCULAR:"circular",ALLOW_FOCUS:"allow-focus"},T=f({},w),i={elementName:v,attributes:T};var l=class{constructor(t){this._adapter=t;this._target=null;this._active=!1;this._inward=!1;this._circular=!1;this._allowFocus=!1;this._interactionListener=e=>this._onInteraction(e)}initialize(){this._adapter.hasTargetElement()||this._adapter.trySetTarget(this._target),this._addListeners()}destroy(){this._removeListeners(),this._adapter.destroy()}_addListeners(){this._adapter.addTargetListener("focusin",this._interactionListener),this._adapter.addTargetListener("focusout",this._interactionListener),this._adapter.addTargetListener("pointerdown",this._interactionListener)}_removeListeners(){this._adapter.removeTargetListener("focusin",this._interactionListener),this._adapter.removeTargetListener("focusout",this._interactionListener),this._adapter.removeTargetListener("pointerdown",this._interactionListener)}_onInteraction(t){let e=t.target;switch(t.type){case"focusin":this.active=this._adapter.isActive(this._allowFocus?":focus":":focus-visible",e);break;case"focusout":this.active=!1;break;case"pointerdown":this.active=this._allowFocus?this._adapter.isActive(":focus",e):this._adapter.isActive(":focus-visible",e);break}}get targetElement(){return this._adapter.getTargetElement()}set targetElement(t){this._removeListeners(),this._adapter.setTargetElement(t),this._addListeners()}get target(){return this._adapter.getHostAttribute(i.attributes.TARGET)}set target(t){this._target!==t&&(this._target=t,this._adapter.isConnected&&this._adapter.trySetTarget(t),this._adapter.toggleHostAttribute(i.attributes.TARGET,!!this._target,this._target))}get active(){return this._active}set active(t){t=!!t,this._active!==t&&(this._active=t,this._adapter.toggleHostAttribute(i.attributes.ACTIVE,this._active))}get inward(){return this._inward}set inward(t){t=!!t,this._inward!==t&&(this._inward=t,this._adapter.toggleHostAttribute(i.attributes.INWARD,this._inward))}get circular(){return this._circular}set circular(t){t=!!t,this._circular!==t&&(this._circular=t,this._adapter.toggleHostAttribute(i.attributes.CIRCULAR,this._circular))}get allowFocus(){return this._allowFocus}set allowFocus(t){t=!!t,this._allowFocus!==t&&(this._allowFocus=t,this._adapter.toggleHostAttribute(i.attributes.ALLOW_FOCUS,this._allowFocus))}};var E="<template></template>",L=":host{--_focus-indicator-width:var(--forge-focus-indicator-width, var(--forge-border-medium, 2px));--_focus-indicator-active-width:var(--forge-focus-indicator-active-width, 6px);--_focus-indicator-color:var(--forge-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_focus-indicator-shape:var(--forge-focus-indicator-shape, var(--forge-shape-extra-small, 1px));--_focus-indicator-duration:var(--forge-focus-indicator-duration, var(--forge-animation-duration-long4, 600ms));--_focus-indicator-easing:var(--forge-focus-indicator-easing, var(--forge-animation-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)));--_focus-indicator-shape-start-start:var(--forge-focus-indicator-shape-start-start, var(--_focus-indicator-shape));--_focus-indicator-shape-start-end:var(--forge-focus-indicator-shape-start-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-end:var(--forge-focus-indicator-shape-end-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-start:var(--forge-focus-indicator-shape-end-start, var(--_focus-indicator-shape));--_focus-indicator-outward-offset:var(--forge-focus-indicator-outward-offset, var(--forge-spacing-xxsmall, 4px));--_focus-indicator-inward-offset:var(--forge-focus-indicator-inward-offset, 0px);--_focus-indicator-offset-block:var(--forge-focus-indicator-offset-block, 0);--_focus-indicator-offset-inline:var(--forge-focus-indicator-offset-inline, 0)}:host{-webkit-animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);-webkit-animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);-webkit-animation-timing-function:var(--_focus-indicator-easing);animation-timing-function:var(--_focus-indicator-easing);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--_focus-indicator-color);display:none;pointer-events:none;position:absolute;margin-block:var(--_focus-indicator-offset-block);margin-inline:var(--_focus-indicator-offset-inline)}:host([hidden]){display:none}:host([active]){display:-webkit-box;display:flex}:host(:not([inward])){-webkit-animation-name:outward-grow,outward-shrink;animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) + var(--_focus-indicator-outward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) + var(--_focus-indicator-outward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) + var(--_focus-indicator-outward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) + var(--_focus-indicator-outward-offset));inset:calc(-1 * var(--_focus-indicator-outward-offset));outline:var(--_focus-indicator-width) solid currentColor}:host([inward]){-webkit-animation-name:inward-grow,inward-shrink;animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) - var(--_focus-indicator-inward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) - var(--_focus-indicator-inward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) - var(--_focus-indicator-inward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) - var(--_focus-indicator-inward-offset));border:var(--_focus-indicator-width) solid currentColor;inset:var(--_focus-indicator-inward-offset)}:host([circular]){--_focus-indicator-shape:var(--forge-focus-indicator-shape, 50%)}@-webkit-keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@media (prefers-reduced-motion){:host{-webkit-animation:none;animation:none}}",a=class extends p{constructor(){super();h(this,E,L),this._foundation=new l(new d(this))}static get observedAttributes(){return[i.attributes.TARGET,i.attributes.ACTIVE,i.attributes.INWARD,i.attributes.CIRCULAR,i.attributes.ALLOW_FOCUS]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(e,o,r){switch(e){case i.attributes.TARGET:this.target=r;break;case i.attributes.ACTIVE:this.active=c(r);break;case i.attributes.INWARD:this.inward=c(r);break;case i.attributes.CIRCULAR:this.circular=c(r);break;case i.attributes.ALLOW_FOCUS:this.allowFocus=c(r);break}}};n([s()],a.prototype,"targetElement",2),n([s()],a.prototype,"target",2),n([s()],a.prototype,"active",2),n([s()],a.prototype,"inward",2),n([s()],a.prototype,"circular",2),n([s()],a.prototype,"allowFocus",2),a=n([_({name:i.elementName})],a);export{d as a,i as b,l as c,a as d};
7
- //# sourceMappingURL=chunk.OJHNLDNM.js.map
6
+ import{j as m}from"./chunk.4SP42UG3.js";import{a as b}from"./chunk.ZY3ETQ3D.js";import{a as s}from"./chunk.NVUMRW44.js";import{a as _,b as g}from"./chunk.UVXKHQQZ.js";import{e as h,k as p}from"./chunk.TPXXHX5J.js";import{k as c}from"./chunk.J2M2MXP2.js";import{a as f,d as n}from"./chunk.M3QDAYD2.js";var d=class extends b{constructor(e){super(e);this._targetElement=null}destroy(){this._targetElement=null}hasTargetElement(){return!!this._targetElement}addTargetListener(e,o){var r;(r=this._targetElement)==null||r.addEventListener(e,o)}removeTargetListener(e,o){var r;(r=this._targetElement)==null||r.removeEventListener(e,o)}getTargetElement(){return this._targetElement}setTargetElement(e){this._targetElement=e}trySetTarget(e){this._targetElement=m(this._component,e)}isActive(e,o){let r=o!=null?o:this._targetElement;return!!(r!=null&&r.matches(e))}};var v=`${g}focus-indicator`,w={TARGET:"target",ACTIVE:"active",INWARD:"inward",CIRCULAR:"circular",ALLOW_FOCUS:"allow-focus"},T=f({},w),i={elementName:v,attributes:T};var l=class{constructor(t){this._adapter=t;this._target=null;this._active=!1;this._inward=!1;this._circular=!1;this._allowFocus=!1;this._interactionListener=e=>this._onInteraction(e)}initialize(){this._adapter.hasTargetElement()||this._adapter.trySetTarget(this._target),this._addListeners()}destroy(){this._removeListeners(),this._adapter.destroy()}_addListeners(){this._adapter.addTargetListener("focusin",this._interactionListener),this._adapter.addTargetListener("focusout",this._interactionListener),this._adapter.addTargetListener("pointerdown",this._interactionListener)}_removeListeners(){this._adapter.removeTargetListener("focusin",this._interactionListener),this._adapter.removeTargetListener("focusout",this._interactionListener),this._adapter.removeTargetListener("pointerdown",this._interactionListener)}_onInteraction(t){let e=t.target;switch(t.type){case"focusin":this.active=this._adapter.isActive(this._allowFocus?":focus":":focus-visible",e);break;case"focusout":this.active=!1;break;case"pointerdown":this.active=this._allowFocus?this._adapter.isActive(":focus",e):this._adapter.isActive(":focus-visible",e);break}}get targetElement(){return this._adapter.getTargetElement()}set targetElement(t){this._removeListeners(),this._adapter.setTargetElement(t),this._addListeners()}get target(){return this._adapter.getHostAttribute(i.attributes.TARGET)}set target(t){this._target!==t&&(this._target=t,this._adapter.isConnected&&this._adapter.trySetTarget(t),this._adapter.toggleHostAttribute(i.attributes.TARGET,!!this._target,this._target))}get active(){return this._active}set active(t){t=!!t,this._active!==t&&(this._active=t,this._adapter.toggleHostAttribute(i.attributes.ACTIVE,this._active))}get inward(){return this._inward}set inward(t){t=!!t,this._inward!==t&&(this._inward=t,this._adapter.toggleHostAttribute(i.attributes.INWARD,this._inward))}get circular(){return this._circular}set circular(t){t=!!t,this._circular!==t&&(this._circular=t,this._adapter.toggleHostAttribute(i.attributes.CIRCULAR,this._circular))}get allowFocus(){return this._allowFocus}set allowFocus(t){t=!!t,this._allowFocus!==t&&(this._allowFocus=t,this._adapter.toggleHostAttribute(i.attributes.ALLOW_FOCUS,this._allowFocus))}};var E="<template></template>",L=":host{--_focus-indicator-width:var(--forge-focus-indicator-width, var(--forge-border-medium, 2px));--_focus-indicator-active-width:var(--forge-focus-indicator-active-width, 6px);--_focus-indicator-color:var(--forge-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_focus-indicator-shape:var(--forge-focus-indicator-shape, var(--forge-shape-extra-small, 1px));--_focus-indicator-duration:var(--forge-focus-indicator-duration, var(--forge-animation-duration-long4, 600ms));--_focus-indicator-easing:var(--forge-focus-indicator-easing, var(--forge-animation-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)));--_focus-indicator-shape-start-start:var(--forge-focus-indicator-shape-start-start, var(--_focus-indicator-shape));--_focus-indicator-shape-start-end:var(--forge-focus-indicator-shape-start-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-end:var(--forge-focus-indicator-shape-end-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-start:var(--forge-focus-indicator-shape-end-start, var(--_focus-indicator-shape));--_focus-indicator-outward-offset:var(--forge-focus-indicator-outward-offset, var(--forge-spacing-xxsmall, 4px));--_focus-indicator-inward-offset:var(--forge-focus-indicator-inward-offset, 0px);--_focus-indicator-offset-block:var(--forge-focus-indicator-offset-block, 0);--_focus-indicator-offset-inline:var(--forge-focus-indicator-offset-inline, 0)}:host{-webkit-animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);-webkit-animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);-webkit-animation-timing-function:var(--_focus-indicator-easing);animation-timing-function:var(--_focus-indicator-easing);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--_focus-indicator-color);display:none;pointer-events:none;position:absolute;margin-block:var(--_focus-indicator-offset-block);margin-inline:var(--_focus-indicator-offset-inline)}:host([hidden]){display:none}:host([active]){display:-webkit-box;display:flex}:host(:not([inward])){-webkit-animation-name:outward-grow,outward-shrink;animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) + var(--_focus-indicator-outward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) + var(--_focus-indicator-outward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) + var(--_focus-indicator-outward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) + var(--_focus-indicator-outward-offset));inset:calc(-1 * var(--_focus-indicator-outward-offset));outline:var(--_focus-indicator-width) solid currentColor}:host([inward]){-webkit-animation-name:inward-grow,inward-shrink;animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) - var(--_focus-indicator-inward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) - var(--_focus-indicator-inward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) - var(--_focus-indicator-inward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) - var(--_focus-indicator-inward-offset));border:var(--_focus-indicator-width) solid currentColor;inset:var(--_focus-indicator-inward-offset)}:host([circular]){--_focus-indicator-shape:var(--forge-focus-indicator-shape, 50%)}@-webkit-keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@keyframes outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@-webkit-keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@keyframes inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@media (prefers-reduced-motion){:host{-webkit-animation:none;animation:none}}",a=class extends p{constructor(){super();h(this,E,L),this._foundation=new l(new d(this))}static get observedAttributes(){return[i.attributes.TARGET,i.attributes.ACTIVE,i.attributes.INWARD,i.attributes.CIRCULAR,i.attributes.ALLOW_FOCUS]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(e,o,r){switch(e){case i.attributes.TARGET:this.target=r;break;case i.attributes.ACTIVE:this.active=c(r);break;case i.attributes.INWARD:this.inward=c(r);break;case i.attributes.CIRCULAR:this.circular=c(r);break;case i.attributes.ALLOW_FOCUS:this.allowFocus=c(r);break}}};n([s()],a.prototype,"targetElement",2),n([s()],a.prototype,"target",2),n([s()],a.prototype,"active",2),n([s()],a.prototype,"inward",2),n([s()],a.prototype,"circular",2),n([s()],a.prototype,"allowFocus",2),a=n([_({name:i.elementName})],a);export{d as a,i as b,l as c,a as d};
7
+ //# sourceMappingURL=chunk.F3FWXBDS.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as x}from"./chunk.KZMXTOLO.js";import{b as I,d as L}from"./chunk.OJHNLDNM.js";import{a as E,p as T}from"./chunk.FTADCSFT.js";import{a as w,b as A}from"./chunk.KD4DVSJR.js";import{c as k}from"./chunk.BX4AQRHB.js";import{a as m}from"./chunk.ZY3ETQ3D.js";import{a as i}from"./chunk.NVUMRW44.js";import{a as v,b as y,l as b,m as s}from"./chunk.UVXKHQQZ.js";import{e as h,f as c,k as _}from"./chunk.TPXXHX5J.js";import{k as l}from"./chunk.J2M2MXP2.js";import{a as f,d as a}from"./chunk.M3QDAYD2.js";var g=class extends m{constructor(e){super(e);this._focusIndicatorElement=c(e,I.elementName),this._stateLayerElement=c(e,E.elementName)}initialize(){this._component[s]({role:"button"},{setAttribute:!this._component.hasAttribute("role")}),this._component[s]({ariaPressed:`${!!this._component.selected}`,ariaDisabled:`${!!this._component.disabled}`}),this._component[b]=!this._component.disabled}setSelected(e){this._component[s]({ariaPressed:`${!!e}`})}setDisabled(e){this._component[s]({ariaDisabled:`${!!e}`}),this._component[b]=!e,this._stateLayerElement.disabled=e}forceFocusVisible(){this._focusIndicatorElement.active=!0}};var C=`${y}button-toggle`,S={SELECTED:"selected",VALUE:"value",DISABLED:"disabled",READONLY:"readonly",TABINDEX:"tabindex"},D=f({},S),N={SELECT:`${C}-select`},o={elementName:C,observedAttributes:S,attributes:D,events:N};var d=class{constructor(t){this._adapter=t;this._selected=!1;this._disabled=!1;this._readonly=!1;this._clickListener=t=>this._onClick(t);this._keydownListener=t=>this._onKeyDown(t)}initialize(){this._adapter.initialize(),!this._disabled&&!this._readonly&&this._applyListeners()}destroy(){this._removeListeners()}focus(t={focusVisible:!0}){this._adapter.focusHost(t),t.focusVisible&&this._adapter.forceFocusVisible()}click(){this._adapter.clickHost()}_applyListeners(){this._adapter.addHostListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keydownListener)}_removeListeners(){this._adapter.removeHostListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keydownListener)}async _onClick(t){let e=this._selected;this._selected=!this._selected;let u={value:this._value,selected:this._selected},r=new CustomEvent(o.events.SELECT,{detail:u,bubbles:!0,cancelable:!0});this._adapter.dispatchHostEvent(r),await k(),this._selected=e,!r.defaultPrevented&&(this.selected=!e)}_onKeyDown(t){t.key===" "&&(t.preventDefault(),this.click())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.setHostAttribute(o.attributes.VALUE,`${this._value}`))}get selected(){return this._selected}set selected(t){t=!!t,this._selected!==t&&(this._selected=t,this._adapter.setSelected(this._selected),this._adapter.toggleHostAttribute(o.attributes.SELECTED,this._selected))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._disabled?this._removeListeners():this._applyListeners(),this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(o.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){t=!!t,this._readonly!==t&&(this._readonly=t,this._readonly?this._removeListeners():this._applyListeners(),this._adapter.toggleHostAttribute(o.attributes.READONLY,this._readonly))}};var B='<template><div class="forge-button-toggle" part="root"><slot name="start"></slot><slot></slot><slot name="end"></slot><forge-focus-indicator target=":host" part="focus-indicator"></forge-focus-indicator><forge-state-layer target=":host" exportparts="surface:state-layer"></forge-state-layer></div></template>',F=':host{--_button-toggle-display:var(--forge-button-toggle-display, inline-flex)}:host{display:var(--_button-toggle-display);position:relative;outline:0;height:100%;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-button-toggle{--_button-toggle-min-width:var(--forge-button-toggle-min-width, auto);--_button-toggle-spacing:var(--forge-button-toggle-spacing, var(--forge-spacing-xsmall, 8px));--_button-toggle-padding-block:var(--forge-button-toggle-padding-block, 2px);--_button-toggle-padding-inline:var(--forge-button-toggle-padding-inline, 8px);--_button-toggle-icon-size:var(--forge-button-toggle-icon-size, var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125)));--_button-toggle-color:var(--forge-button-toggle-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_button-toggle-background:var(--forge-button-toggle-background, transparent);--_button-toggle-hover-background:var(--forge-button-toggle-hover-background, var(--_button-toggle-background));--_button-toggle-active-background:var(--forge-button-toggle-active-background, var(--_button-toggle-background));--_button-toggle-cursor:var(--forge-button-toggle-cursor, pointer);--_button-toggle-border-width:var(--forge-button-toggle-border-width, medium);--_button-toggle-border-style:var(--forge-button-toggle-border-style, none);--_button-toggle-border-color:var(--forge-button-toggle-border-color, var(--forge-theme-outline-medium, #757575));--_button-toggle-shape:var(--forge-button-toggle-shape, var(--forge-shape-small, 2px));--_button-toggle-shape-start-start:var(--forge-button-toggle-shape-start-start, var(--_button-toggle-shape));--_button-toggle-shape-start-end:var(--forge-button-toggle-shape-start-end, var(--_button-toggle-shape));--_button-toggle-shape-end-start:var(--forge-button-toggle-shape-end-start, var(--_button-toggle-shape));--_button-toggle-shape-end-end:var(--forge-button-toggle-shape-end-end, var(--_button-toggle-shape));--_button-toggle-selected-background:var(--forge-button-toggle-selected-background, var(--forge-theme-tertiary-container, #d0d7ff));--_button-toggle-selected-color:var(--forge-button-toggle-selected-color, var(--forge-theme-on-tertiary-container, #213189));--_button-toggle-selected-disabled-background:var(--forge-button-toggle-selected-disabled-background, var(--forge-theme-surface-container, #e0e0e0));--_button-toggle-dense-height:var(--forge-button-toggle-dense-height, 24px);--_button-toggle-disabled-opacity:var(--forge-button-toggle-disabled-opacity, 0.38);--_button-toggle-disabled-cursor:var(--forge-button-toggle-disabled-cursor, not-allowed);--_button-toggle-disabled-color:var(--forge-button-toggle-disabled-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-toggle-disabled-background:var(--forge-button-toggle-disabled-background, transparent);--_button-toggle-transition-duration:var(--forge-button-toggle-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-toggle-transition-timing:var(--forge-button-toggle-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-toggle-focus-indicator-color:var(--forge-button-toggle-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_button-toggle-focus-indicator-offset:var(--forge-button-toggle-focus-indicator-offset, 0px)}.forge-button-toggle{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-button-text-decoration,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-toggle-display);-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;gap:var(--_button-toggle-spacing);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;min-inline-size:var(--_button-toggle-min-width);inline-size:100%;border-width:var(--_button-toggle-border-width);border-style:var(--_button-toggle-border-style);border-color:var(--_button-toggle-border-color);border-start-start-radius:var(--_button-toggle-shape-start-start);border-start-end-radius:var(--_button-toggle-shape-start-end);border-end-start-radius:var(--_button-toggle-shape-end-start);border-end-end-radius:var(--_button-toggle-shape-end-end);padding-block:var(--_button-toggle-padding-block);padding-inline:var(--_button-toggle-padding-inline);outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-toggle-background);color:var(--_button-toggle-color);cursor:var(--_button-toggle-cursor);-webkit-transition-property:color,background-color,border-color;transition-property:color,background-color,border-color;-webkit-transition-duration:var(--_button-toggle-transition-duration);transition-duration:var(--_button-toggle-transition-duration);-webkit-transition-timing-function:var(--_button-toggle-transition-timing);transition-timing-function:var(--_button-toggle-transition-timing)}.forge-button-toggle forge-state-layer{--forge-state-layer-color:var(--_button-toggle-color)}.forge-button-toggle forge-focus-indicator{--forge-focus-indicator-outward-offset:var(--_button-toggle-focus-indicator-offset);--forge-focus-indicator-color:var(--_button-toggle-focus-indicator-color);--forge-focus-indicator-shape:var(--_button-toggle-shape);--forge-focus-indicator-shape-start-start:var(--_button-toggle-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_button-toggle-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_button-toggle-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_button-toggle-shape-end-end)}::slotted(:is([slot=start],[slot=end])){font-size:var(--_button-toggle-icon-size)}:host([selected]) .forge-button-toggle{--_button-toggle-background:var(--_button-toggle-selected-background);--_button-toggle-color:var(--_button-toggle-selected-color);--_button-toggle-border-color:var(--_button-toggle-background)}:host([disabled]){--_button-toggle-cursor:var(--_button-toggle-disabled-cursor);cursor:not-allowed}:host([disabled]) .forge-button-toggle{--_button-toggle-background:var(--_button-toggle-disabled-background);--_button-toggle-color:var(--_button-toggle-disabled-color);opacity:var(--_button-toggle-disabled-opacity);pointer-events:none}:host([disabled][selected]) .forge-button-toggle{--_button-toggle-background:var(--_button-toggle-selected-disabled-background)}',O=A(w(x(_))),n=class extends O{constructor(){super();h(this,B,F),this._foundation=new d(new g(this))}static get observedAttributes(){return Object.values(o.observedAttributes)}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(e,u,r){switch(e){case o.attributes.VALUE:this.value=r;return;case o.attributes.SELECTED:this.selected=l(r);return;case o.attributes.DISABLED:this.disabled=l(r);return;case o.attributes.READONLY:this.readonly=l(r);return}super.attributeChangedCallback(e,u,r)}focus(e){this._foundation.focus(e)}click(){this._foundation.click()}};a([i()],n.prototype,"value",2),a([i()],n.prototype,"selected",2),a([i()],n.prototype,"disabled",2),a([i()],n.prototype,"readonly",2),n=a([v({name:o.elementName,dependencies:[L,T]})],n);export{g as a,o as b,d as c,n as d};
7
- //# sourceMappingURL=chunk.3PHNRX5D.js.map
6
+ import{a as x}from"./chunk.KZMXTOLO.js";import{b as I,d as L}from"./chunk.F3FWXBDS.js";import{a as E,p as T}from"./chunk.KIQZLNDG.js";import{a as w,b as A}from"./chunk.KD4DVSJR.js";import{c as k}from"./chunk.BX4AQRHB.js";import{a as m}from"./chunk.ZY3ETQ3D.js";import{a as i}from"./chunk.NVUMRW44.js";import{a as v,b as y,l as b,m as s}from"./chunk.UVXKHQQZ.js";import{e as h,f as c,k as _}from"./chunk.TPXXHX5J.js";import{k as l}from"./chunk.J2M2MXP2.js";import{a as f,d as a}from"./chunk.M3QDAYD2.js";var g=class extends m{constructor(e){super(e);this._focusIndicatorElement=c(e,I.elementName),this._stateLayerElement=c(e,E.elementName)}initialize(){this._component[s]({role:"button"},{setAttribute:!this._component.hasAttribute("role")}),this._component[s]({ariaPressed:`${!!this._component.selected}`,ariaDisabled:`${!!this._component.disabled}`}),this._component[b]=!this._component.disabled}setSelected(e){this._component[s]({ariaPressed:`${!!e}`})}setDisabled(e){this._component[s]({ariaDisabled:`${!!e}`}),this._component[b]=!e,this._stateLayerElement.disabled=e}forceFocusVisible(){this._focusIndicatorElement.active=!0}};var C=`${y}button-toggle`,S={SELECTED:"selected",VALUE:"value",DISABLED:"disabled",READONLY:"readonly",TABINDEX:"tabindex"},D=f({},S),N={SELECT:`${C}-select`},o={elementName:C,observedAttributes:S,attributes:D,events:N};var d=class{constructor(t){this._adapter=t;this._selected=!1;this._disabled=!1;this._readonly=!1;this._clickListener=t=>this._onClick(t);this._keydownListener=t=>this._onKeyDown(t)}initialize(){this._adapter.initialize(),!this._disabled&&!this._readonly&&this._applyListeners()}destroy(){this._removeListeners()}focus(t={focusVisible:!0}){this._adapter.focusHost(t),t.focusVisible&&this._adapter.forceFocusVisible()}click(){this._adapter.clickHost()}_applyListeners(){this._adapter.addHostListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keydownListener)}_removeListeners(){this._adapter.removeHostListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keydownListener)}async _onClick(t){let e=this._selected;this._selected=!this._selected;let u={value:this._value,selected:this._selected},r=new CustomEvent(o.events.SELECT,{detail:u,bubbles:!0,cancelable:!0});this._adapter.dispatchHostEvent(r),await k(),this._selected=e,!r.defaultPrevented&&(this.selected=!e)}_onKeyDown(t){t.key===" "&&(t.preventDefault(),this.click())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.setHostAttribute(o.attributes.VALUE,`${this._value}`))}get selected(){return this._selected}set selected(t){t=!!t,this._selected!==t&&(this._selected=t,this._adapter.setSelected(this._selected),this._adapter.toggleHostAttribute(o.attributes.SELECTED,this._selected))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._disabled?this._removeListeners():this._applyListeners(),this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(o.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){t=!!t,this._readonly!==t&&(this._readonly=t,this._readonly?this._removeListeners():this._applyListeners(),this._adapter.toggleHostAttribute(o.attributes.READONLY,this._readonly))}};var B='<template><div class="forge-button-toggle" part="root"><slot name="start"></slot><slot></slot><slot name="end"></slot><forge-focus-indicator target=":host" part="focus-indicator"></forge-focus-indicator><forge-state-layer target=":host" exportparts="surface:state-layer"></forge-state-layer></div></template>',F=':host{--_button-toggle-display:var(--forge-button-toggle-display, inline-flex)}:host{display:var(--_button-toggle-display);position:relative;outline:0;height:100%;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-button-toggle{--_button-toggle-min-width:var(--forge-button-toggle-min-width, auto);--_button-toggle-spacing:var(--forge-button-toggle-spacing, var(--forge-spacing-xsmall, 8px));--_button-toggle-padding-block:var(--forge-button-toggle-padding-block, 2px);--_button-toggle-padding-inline:var(--forge-button-toggle-padding-inline, 8px);--_button-toggle-icon-size:var(--forge-button-toggle-icon-size, var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125)));--_button-toggle-color:var(--forge-button-toggle-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_button-toggle-background:var(--forge-button-toggle-background, transparent);--_button-toggle-hover-background:var(--forge-button-toggle-hover-background, var(--_button-toggle-background));--_button-toggle-active-background:var(--forge-button-toggle-active-background, var(--_button-toggle-background));--_button-toggle-cursor:var(--forge-button-toggle-cursor, pointer);--_button-toggle-border-width:var(--forge-button-toggle-border-width, medium);--_button-toggle-border-style:var(--forge-button-toggle-border-style, none);--_button-toggle-border-color:var(--forge-button-toggle-border-color, var(--forge-theme-outline-medium, #757575));--_button-toggle-shape:var(--forge-button-toggle-shape, var(--forge-shape-small, 2px));--_button-toggle-shape-start-start:var(--forge-button-toggle-shape-start-start, var(--_button-toggle-shape));--_button-toggle-shape-start-end:var(--forge-button-toggle-shape-start-end, var(--_button-toggle-shape));--_button-toggle-shape-end-start:var(--forge-button-toggle-shape-end-start, var(--_button-toggle-shape));--_button-toggle-shape-end-end:var(--forge-button-toggle-shape-end-end, var(--_button-toggle-shape));--_button-toggle-selected-background:var(--forge-button-toggle-selected-background, var(--forge-theme-tertiary-container, #d0d7ff));--_button-toggle-selected-color:var(--forge-button-toggle-selected-color, var(--forge-theme-on-tertiary-container, #213189));--_button-toggle-selected-disabled-background:var(--forge-button-toggle-selected-disabled-background, var(--forge-theme-surface-container, #e0e0e0));--_button-toggle-dense-height:var(--forge-button-toggle-dense-height, 24px);--_button-toggle-disabled-opacity:var(--forge-button-toggle-disabled-opacity, 0.38);--_button-toggle-disabled-cursor:var(--forge-button-toggle-disabled-cursor, not-allowed);--_button-toggle-disabled-color:var(--forge-button-toggle-disabled-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-toggle-disabled-background:var(--forge-button-toggle-disabled-background, transparent);--_button-toggle-transition-duration:var(--forge-button-toggle-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-toggle-transition-timing:var(--forge-button-toggle-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-toggle-focus-indicator-color:var(--forge-button-toggle-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_button-toggle-focus-indicator-offset:var(--forge-button-toggle-focus-indicator-offset, 0px)}.forge-button-toggle{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-button-text-decoration,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-toggle-display);-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;gap:var(--_button-toggle-spacing);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;min-inline-size:var(--_button-toggle-min-width);inline-size:100%;border-width:var(--_button-toggle-border-width);border-style:var(--_button-toggle-border-style);border-color:var(--_button-toggle-border-color);border-start-start-radius:var(--_button-toggle-shape-start-start);border-start-end-radius:var(--_button-toggle-shape-start-end);border-end-start-radius:var(--_button-toggle-shape-end-start);border-end-end-radius:var(--_button-toggle-shape-end-end);padding-block:var(--_button-toggle-padding-block);padding-inline:var(--_button-toggle-padding-inline);outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-toggle-background);color:var(--_button-toggle-color);cursor:var(--_button-toggle-cursor);-webkit-transition-property:color,background-color,border-color;transition-property:color,background-color,border-color;-webkit-transition-duration:var(--_button-toggle-transition-duration);transition-duration:var(--_button-toggle-transition-duration);-webkit-transition-timing-function:var(--_button-toggle-transition-timing);transition-timing-function:var(--_button-toggle-transition-timing)}.forge-button-toggle forge-state-layer{--forge-state-layer-color:var(--_button-toggle-color)}.forge-button-toggle forge-focus-indicator{--forge-focus-indicator-outward-offset:var(--_button-toggle-focus-indicator-offset);--forge-focus-indicator-color:var(--_button-toggle-focus-indicator-color);--forge-focus-indicator-shape:var(--_button-toggle-shape);--forge-focus-indicator-shape-start-start:var(--_button-toggle-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_button-toggle-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_button-toggle-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_button-toggle-shape-end-end)}::slotted(:is([slot=start],[slot=end])){font-size:var(--_button-toggle-icon-size)}:host([selected]) .forge-button-toggle{--_button-toggle-background:var(--_button-toggle-selected-background);--_button-toggle-color:var(--_button-toggle-selected-color);--_button-toggle-border-color:var(--_button-toggle-background)}:host([disabled]){--_button-toggle-cursor:var(--_button-toggle-disabled-cursor);cursor:not-allowed}:host([disabled]) .forge-button-toggle{--_button-toggle-background:var(--_button-toggle-disabled-background);--_button-toggle-color:var(--_button-toggle-disabled-color);opacity:var(--_button-toggle-disabled-opacity);pointer-events:none}:host([disabled][selected]) .forge-button-toggle{--_button-toggle-background:var(--_button-toggle-selected-disabled-background)}',O=A(w(x(_))),n=class extends O{constructor(){super();h(this,B,F),this._foundation=new d(new g(this))}static get observedAttributes(){return Object.values(o.observedAttributes)}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(e,u,r){switch(e){case o.attributes.VALUE:this.value=r;return;case o.attributes.SELECTED:this.selected=l(r);return;case o.attributes.DISABLED:this.disabled=l(r);return;case o.attributes.READONLY:this.readonly=l(r);return}super.attributeChangedCallback(e,u,r)}focus(e){this._foundation.focus(e)}click(){this._foundation.click()}};a([i()],n.prototype,"value",2),a([i()],n.prototype,"selected",2),a([i()],n.prototype,"disabled",2),a([i()],n.prototype,"readonly",2),n=a([v({name:o.elementName,dependencies:[L,T]})],n);export{g as a,o as b,d as c,n as d};
7
+ //# sourceMappingURL=chunk.FOQH2SSU.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{f as e}from"./chunk.JRROGJ2G.js";import{a as o}from"./chunk.TPXXHX5J.js";function t(){o(e)}export{t as a};
7
- //# sourceMappingURL=chunk.GFKYBECY.js.map
6
+ import{f as e}from"./chunk.IO3A5OM6.js";import{a as o}from"./chunk.TPXXHX5J.js";function t(){o(e)}export{t as a};
7
+ //# sourceMappingURL=chunk.FXDHZCID.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as z}from"./chunk.KPNGLSCU.js";import{d as V}from"./chunk.OJHNLDNM.js";import{p as T}from"./chunk.FTADCSFT.js";import{i as I,j as L,m as x,n as S,o as O,p as C,q as A}from"./chunk.QG5EYBS3.js";import{a as k}from"./chunk.YTBNAGLS.js";import{a as y}from"./chunk.ZY3ETQ3D.js";import{a as l}from"./chunk.NVUMRW44.js";import{a as m,b as E,j as n}from"./chunk.UVXKHQQZ.js";import{a as w,e as g,f as h}from"./chunk.TPXXHX5J.js";import{u as p,v as d}from"./chunk.HZUQXCOQ.js";import{b as u,c as f,k as c}from"./chunk.J2M2MXP2.js";import{d as s}from"./chunk.M3QDAYD2.js";var N=`${E}switch`,P={HIDDEN:"hidden"},F={ON:"on",SELECTED:"selected",DEFAULT_ON:"default-on",VALUE:"value",DENSE:"dense",DISABLED:"disabled",REQUIRED:"required",READONLY:"readonly",ICON:"icon",LABEL_POSITION:"label-position"},H={ROOT:".forge-switch",INPUT:"#input",LABEL:"#label",ICON_ON:"#icon-on",ICON_OFF:"#icon-off",INPUT_SLOT:"slot[name=input]",STATE_LAYER:"forge-state-layer",SLOTTED_INPUT:"input[type=checkbox]"},M={CHANGE:`${N}-change`},R={ON:"on",OFF:"off"},B=[...I],i={classes:P,selectors:H,attributes:F,elementName:N,events:M,state:R,forwardedAttributes:B};var b=class extends y{constructor(t){super(t);this._rootElement=h(t,i.selectors.ROOT),this._inputElement=h(t,i.selectors.INPUT),this._labelElement=h(t,i.selectors.LABEL),this._iconOnElement=h(t,i.selectors.ICON_ON),this._iconOffElement=h(t,i.selectors.ICON_OFF),this._stateLayerElement=h(t,i.selectors.STATE_LAYER),this._inputAdapter=new A}get _activeInputElement(){var t;return(t=this._inputAdapter.el)!=null?t:this._inputElement}initialize(){let t=this._component.querySelector(i.selectors.SLOTTED_INPUT);t?(t.slot="input",this._switchInput(t,this._inputElement)):this._initializeForwardObserver(this._inputElement),this._observeInput(t!=null?t:this._inputElement)}setOn(t){this._activeInputElement.checked=t}setDefaultOn(t){this._activeInputElement.toggleAttribute("checked",t)}setValue(t){this._activeInputElement.value=t}setDisabled(t){this._activeInputElement.disabled=t,this._stateLayerElement.disabled=t}setRequired(t){this._activeInputElement.required=t}setReadonly(t){this._activeInputElement.readOnly=t,d(this._activeInputElement,t,"aria-readonly",t.toString()),this._stateLayerElement.disabled=t}setIconVisibility(t){let o=t==="none"||t==="off",a=t==="none"||t==="on";p(this._iconOnElement,o,i.classes.HIDDEN),p(this._iconOffElement,a,i.classes.HIDDEN)}setLabelPosition(t){this._labelElement.remove(),t==="start"?this._rootElement.prepend(this._labelElement):this._rootElement.append(this._labelElement)}addRootListener(t,o){this._rootElement.addEventListener(t,o)}addInputSlotListener(t){this._inputElement.addEventListener("slotchange",t)}detectInputElement(){let t=this._inputSlotElement.assignedElements()[0];t?this._inputAdapter.attachElement(t):this._inputAdapter.attachElement(this._inputElement)}proxyClick(){this._activeInputElement.click(),this._activeInputElement.focus()}proxyLabel(t){this._labelElementText=t!=null?t:void 0,this._setAriaLabel()}syncValue(t){if(t===null){this._component[n].setFormValue(null,i.state.OFF);return}let o=new FormData;o.append(this._component.name,t),this._component[n].setFormValue(o,i.state.ON)}syncValidity(t){t?this._activeInputElement.setCustomValidity(this._component[n].validationMessage):this._activeInputElement.setCustomValidity(""),this._component[n].setValidity(this._activeInputElement.validity,this._activeInputElement.validationMessage,this._activeInputElement)}setValidity(t,o){this._component[n].setValidity(t,o,this._activeInputElement)}_initializeInput(){var t;(t=this._forwardObserver)==null||t.disconnect(),this._initializeForwardObserver(this._activeInputElement)}_initializeForwardObserver(t){this._forwardObserver=x(this._component,i.forwardedAttributes,(o,a)=>{if(o==="aria-label"){this._forwardedAriaLabel=a!=null?a:void 0,this._setAriaLabel();return}d(t,!!a,o,a!=null?a:void 0)})}_setAriaLabel(){var o;let t=!!this._forwardedAriaLabel||!!this._labelElementText;d(this._activeInputElement,t,"aria-label",(o=this._forwardedAriaLabel)!=null?o:this._labelElementText)}_switchInput(t,o){S(o,t,["type","role","checked","aria-readonly"]),O(o,t,L),C(o,t)}_observeInput(t=this._inputElement){this._inputAdapter.initialize(t,(o,a)=>{this._switchInput(o,a),this._initializeInput()})}};var v=class{constructor(e){this._adapter=e;this._on=!1;this._defaultOn=!1;this._value="on";this._dense=!1;this._disabled=!1;this._required=!1;this._readonly=!1;this._icon="on";this._labelPosition="end";this._changeListener=t=>this._handleChange(t),this._inputSlotListener=()=>this._handleInputSlotChange()}get _submittedValue(){return this._on?this._value:null}initialize(){this._adapter.initialize(),this._adapter.addRootListener("change",this._changeListener),this._adapter.addInputSlotListener(this._inputSlotListener),this._adapter.setIconVisibility(this._icon),this._adapter.syncValue(this._submittedValue)}proxyClick(){this._adapter.proxyClick()}proxyLabel(e){this._adapter.proxyLabel(e)}syncValidity(e){this._adapter.syncValidity(e)}setValidity(e,t){this._adapter.setValidity(e,t)}_handleChange(e){if(this._readonly){this._adapter.setOn(this._on);return}let o=e.target.checked,a=this._on;if(this._on=o,!this._adapter.emitHostEvent(i.events.CHANGE,o,!0,!0)){this._on=a,this._adapter.setOn(this._on);return}this._adapter.syncValue(this._submittedValue),this._setOnAttribute()}_handleInputSlotChange(){this._adapter.detectInputElement()}_setOnAttribute(){this._adapter.toggleHostAttribute(i.attributes.ON,this._on),this._adapter.toggleHostAttribute(i.attributes.SELECTED,this._on)}get on(){return this._on}set on(e){this._on!==e&&(this._on=e,this._adapter.setOn(this._on),this._adapter.syncValue(this._submittedValue),this._setOnAttribute())}get defaultOn(){return this._defaultOn}set defaultOn(e){this._defaultOn!==e&&(this._defaultOn=e,this._adapter.setDefaultOn(this._defaultOn),this._adapter.toggleHostAttribute(i.attributes.DEFAULT_ON,this._defaultOn))}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._adapter.setValue(this._value),this._adapter.syncValue(this._submittedValue),this._adapter.toggleHostAttribute(i.attributes.VALUE,!0,this._value))}get dense(){return this._dense}set dense(e){this._dense!==e&&(this._dense=e,this._adapter.toggleHostAttribute(i.attributes.DENSE,this._dense))}get disabled(){return this._disabled}set disabled(e){this._disabled!==e&&(this._disabled=e,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(i.attributes.DISABLED,this._disabled))}get required(){return this._required}set required(e){this._required!==e&&(this._required=e,this._adapter.setRequired(this._required),this._adapter.toggleHostAttribute(i.attributes.REQUIRED,this._required))}get readonly(){return this._readonly}set readonly(e){this._readonly!==e&&(this._readonly=e,this._adapter.setReadonly(this._readonly),this._adapter.toggleHostAttribute(i.attributes.READONLY,this._readonly))}get icon(){return this._icon}set icon(e){this._icon!==e&&(this._icon=e,this._adapter.setIconVisibility(this._icon),this._adapter.setHostAttribute(i.attributes.ICON,this._icon))}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition!==e&&(this._labelPosition=e,this._adapter.setLabelPosition(this._labelPosition),this._adapter.setHostAttribute(i.attributes.LABEL_POSITION,this._labelPosition))}};var q='<template><div class="forge-switch" part="switch"><div id="container" class="container"><slot name="input"><input id="input" class="input" type="checkbox" role="switch"></slot><div class="track" part="track"></div><div class="handle" part="handle"><div id="icon-off" class="icon icon__off" part="icon-off"><slot name="icon-off"><svg aria-hidden="true" viewBox="0 0 24 24"><path d="M20 13H4v-2h16v2z"/></svg></slot></div><div id="icon-on" class="icon icon__on" part="icon-on"><slot name="icon-on"><svg aria-hidden="true" viewBox="0 0 24 24"><path d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"/></svg></slot></div><forge-state-layer target="container" exportparts="surface:state-layer"></forge-state-layer></div><forge-focus-indicator target="container" part="focus-indicator"></forge-focus-indicator></div><label id="label" for="input" class="label" part="label"><slot></slot></label></div></template>',U=':host{display:inline-block;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-switch{--_switch-handle-size:var(--forge-switch-handle-size, 20px);--_switch-handle-scale:var(--forge-switch-handle-scale, 1);--_switch-handle-elevation:var(--forge-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));--_switch-track-border-width:var(--forge-switch-track-border-width, 0);--_switch-track-border-color:var(--forge-switch-track-border-color, transparent);--_switch-icon-color:var(--forge-switch-icon-color, var(--forge-theme-on-tertiary, #ffffff));--_switch-icon-size:var(--forge-switch-icon-size, 16px);--_switch-icon-scale:var(--forge-switch-icon-scale, 1);--_switch-state-layer-size:var(--forge-switch-state-layer-size, 40px);--_switch-state-layer-dense-size:var(--forge-switch-state-layer-dense-size, 28px);--_switch-handle-on-color:var(--forge-switch-handle-on-color, var(--forge-theme-tertiary, #3d5afe));--_switch-handle-off-color:var(--forge-switch-handle-off-color, var(--forge-theme-surface-container-high, #9e9e9e));--_switch-handle-width:var(--forge-switch-handle-width, var(--_switch-handle-size));--_switch-handle-height:var(--forge-switch-handle-height, var(--_switch-handle-size));--_switch-handle-on-scale:var(--forge-switch-handle-on-scale, var(--_switch-handle-scale));--_switch-handle-off-scale:var(--forge-switch-handle-off-scale, var(--_switch-handle-scale));--_switch-handle-shape:var(--forge-switch-handle-shape, var(--forge-shape-round, 50%));--_switch-handle-on-elevation:var(--forge-switch-handle-on-elevation, var(--_switch-handle-elevation));--_switch-handle-off-elevation:var(--forge-switch-handle-off-elevation, var(--_switch-handle-elevation));--_switch-track-on-color:var(--forge-switch-track-on-color, var(--forge-theme-tertiary-container, #d0d7ff));--_switch-track-off-color:var(--forge-switch-track-off-color, var(--forge-theme-surface-container, #e0e0e0));--_switch-track-width:var(--forge-switch-track-width, 36px);--_switch-track-height:var(--forge-switch-track-height, 14px);--_switch-track-shape:var(--forge-switch-track-shape, var(--forge-shape-full, 9999px));--_switch-track-on-border-width:var(--forge-switch-track-on-border-width, var(--_switch-track-border-width));--_switch-track-off-border-width:var(--forge-switch-track-off-border-width, var(--_switch-track-border-width));--_switch-track-on-border-color:var(--forge-switch-track-on-border-color, var(--_switch-track-border-color));--_switch-track-off-border-color:var(--forge-switch-track-off-border-color, var(--_switch-track-border-color));--_switch-icon-on-color:var(--forge-switch-icon-on-color, var(--_switch-icon-color));--_switch-icon-off-color:var(--forge-switch-icon-off-color, var(--_switch-icon-color));--_switch-icon-on-size:var(--forge-switch-icon-on-size, var(--_switch-icon-size));--_switch-icon-off-size:var(--forge-switch-icon-off-size, var(--_switch-icon-size));--_switch-icon-on-scale:var(--forge-switch-icon-on-scale, var(--_switch-icon-scale));--_switch-icon-off-scale:var(--forge-switch-icon-off-scale, var(--_switch-icon-scale));--_switch-gap:var(--forge-switch-gap, 0);--_switch-justify:var(--forge-switch-justify, space-between);--_switch-direction:var(--forge-switch-direction, initial);--_switch-state-layer-width:var(--forge-switch-state-layer-width, var(--_switch-state-layer-size));--_switch-state-layer-height:var(--forge-switch-state-layer-height, var(--_switch-state-layer-size));--_switch-state-layer-on-color:var(--forge-switch-state-layer-on-color, var(--_switch-handle-on-color));--_switch-state-layer-off-color:var(--forge-switch-state-layer-off-color, var(--_switch-color));--_switch-state-layer-dense-width:var(--forge-switch-state-layer-dense-width, var(--_switch-state-layer-dense-size));--_switch-state-layer-dense-height:var(--forge-switch-state-layer-dense-height, var(--_switch-state-layer-dense-size));--_switch-disabled-opacity:var(--forge-switch-disabled-opacity, 0.38);--_switch-handle-active-on-color:var(--forge-switch-handle-active-on-color, var(--_switch-handle-on-color));--_switch-handle-active-off-color:var(--forge-switch-handle-active-off-color, var(--_switch-handle-off-color));--_switch-handle-active-scale:var(--forge-switch-handle-active-scale, 1.2);--_switch-handle-active-on-scale:var(--forge-switch-handle-active-on-scale, var(--_switch-handle-active-scale));--_switch-handle-active-off-scale:var(--forge-switch-handle-active-off-scale, var(--_switch-handle-active-scale));--_switch-handle-active-elevation:var(--forge-switch-handle-active-elevation, var(--_switch-handle-elevation));--_switch-handle-active-on-elevation:var(--forge-switch-handle-active-on-elevation, var(--_switch-handle-active-elevation));--_switch-handle-active-off-elevation:var(--forge-switch-handle-active-off-elevation, var(--_switch-handle-active-elevation));--_switch-track-active-on-color:var(--forge-switch-track-active-on-color, var(--_switch-track-on-color));--_switch-track-active-off-color:var(--forge-switch-track-active-off-color, var(--_switch-track-off-color));--_switch-track-active-on-border-width:var(--forge-switch-track-active-on-border-width, var(--_switch-track-on-border-width));--_switch-track-active-off-border-width:var(--forge-switch-track-active-off-border-width, var(--_switch-track-off-border-width));--_switch-track-active-on-border-color:var(--forge-switch-track-active-on-border-color, var(--_switch-track-on-border-color));--_switch-track-active-off-border-color:var(--forge-switch-track-active-off-border-color, var(--_switch-track-off-border-color));--_switch-icon-active-on-color:var(--forge-switch-icon-active-on-color, var(--_switch-icon-on-color));--_switch-icon-active-off-color:var(--forge-switch-icon-active-off-color, var(--_switch-icon-off-color));--_switch-icon-active-on-scale:var(--forge-switch-icon-active-on-scale, var(--_switch-icon-on-scale));--_switch-icon-active-off-scale:var(--forge-switch-icon-active-off-scale, var(--_switch-icon-off-scale));--_switch-animation-duration:var(--forge-switch-animation-duration, var(--forge-animation-duration-short2, 100ms));--_switch-animation-timing:var(--forge-switch-animation-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_switch-active-animation-timing:var(--forge-switch-active-animation-timing, var(--forge-animation-easing-linear, cubic-bezier(0, 0, 1, 1)))}.forge-switch{position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:var(--_switch-direction);flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:var(--_switch-justify);justify-content:var(--_switch-justify);gap:var(--_switch-gap);display:-webkit-box;display:flex;--_switch-current-state-layer-width:var(--_switch-state-layer-width);--_switch-current-state-layer-height:var(--_switch-state-layer-height)}.forge-switch .container{position:relative;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;block-size:max(var(--_switch-handle-height),var(--_switch-track-height),var(--_switch-current-state-layer-height));cursor:pointer}.forge-switch .input{position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}.forge-switch .track{-webkit-transition-property:background-color,border-color,border-width;transition-property:background-color,border-color,border-width;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);-webkit-box-sizing:border-box;box-sizing:border-box;margin-inline:calc(max(var(--_switch-handle-width),var(--_switch-current-state-layer-width))/ 2 - calc(var(--_switch-track-height)/ 2));border-width:var(--_switch-track-off-border-width);border-color:var(--_switch-track-off-border-color);border-style:solid;border-radius:var(--_switch-track-shape);inline-size:var(--_switch-track-width);block-size:var(--_switch-track-height);background-color:var(--_switch-track-off-color)}.forge-switch .handle{position:absolute;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;-webkit-transition-property:translate;transition-property:translate;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-current-state-layer-width);block-size:var(--_switch-current-state-layer-height)}.forge-switch .handle::before{content:"";position:relative;display:block;scale:var(--_switch-handle-off-scale);-webkit-transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);-webkit-box-shadow:var(--_switch-handle-off-elevation);box-shadow:var(--_switch-handle-off-elevation);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-handle-width);block-size:var(--_switch-handle-height);background-color:var(--_switch-handle-off-color)}.forge-switch .icon{position:absolute;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;display:-webkit-box;display:flex;-webkit-transition-property:opacity,scale;transition-property:opacity,scale;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);inline-size:var(--_switch-icon-off-size);block-size:var(--_switch-icon-off-size);color:var(--_switch-icon-off-color);fill:var(--_switch-icon-off-color);font-size:var(--_switch-icon-off-size);--forge-icon-font-size:var(--_switch-icon-off-size)}.forge-switch .icon__on{--forge-icon-font-size:var(--_switch-icon-on-size);inline-size:var(--_switch-icon-on-size);block-size:var(--_switch-icon-on-size);color:var(--_switch-icon-on-color);fill:var(--_switch-icon-on-color);font-size:var(--_switch-icon-on-size);opacity:0;scale:0.4}.forge-switch .icon__off{opacity:1;scale:var(--_switch-icon-off-scale)}.forge-switch .label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label-font-weight,400);line-height:var(--forge-typography-label-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-label-text-decoration,inherit);text-decoration:var(--forge-typography-label-text-decoration,inherit)}.forge-switch .label:empty{display:none}.forge-switch .hidden{display:none}.forge-switch ::slotted([slot=input]){position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}:host([on]) .track{border-width:var(--_switch-track-on-border-width);border-color:var(--_switch-track-on-border-color);background-color:var(--_switch-track-on-color)}:host([on]) .handle{translate:calc(var(--_switch-track-width) - calc(var(--_switch-track-height)/ 2) * 2)}:host([on]) .handle::before{scale:var(--_switch-handle-on-scale);-webkit-box-shadow:var(--_switch-handle-on-elevation);box-shadow:var(--_switch-handle-on-elevation);background-color:var(--_switch-handle-on-color)}:host([on]) .handle .icon__on{opacity:1;scale:var(--_switch-icon-on-scale)}:host([on]) .handle .icon__off{opacity:0;scale:0.4}:host([on]) forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-on-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .track{border-width:var(--_switch-track-active-off-border-width);border-color:var(--_switch-track-active-off-border-color);background-color:var(--_switch-track-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-off-scale);-webkit-box-shadow:var(--_switch-handle-active-off-elevation);box-shadow:var(--_switch-handle-active-off-elevation);background-color:var(--_switch-handle-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-off-scale);color:var(--_switch-icon-active-off-color);fill:var(--_switch-icon-active-off-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .track{border-width:var(--_switch-track-active-on-border-width);border-color:var(--_switch-track-active-on-border-color);background-color:var(--_switch-track-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-on-scale);-webkit-box-shadow:var(--_switch-handle-active-on-elevation);box-shadow:var(--_switch-handle-active-on-elevation);background-color:var(--_switch-handle-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-on-scale);color:var(--_switch-icon-active-on-color);fill:var(--_switch-icon-active-on-color)}:host([dense]) .forge-switch{--_switch-current-state-layer-width:var(--_switch-state-layer-dense-width);--_switch-current-state-layer-height:var(--_switch-state-layer-dense-height)}:host([disabled]) .forge-switch{opacity:var(--_switch-disabled-opacity)}:host([disabled]) .forge-switch .container{cursor:not-allowed}:host([disabled]) .forge-switch .handle::before{-webkit-box-shadow:none;box-shadow:none}:host([readonly]) .forge-switch .container{cursor:not-allowed}@media (prefers-reduced-motion){.switch{--_switch-animation-duration:var(--forge-switch-animation-duration, 0s)}}forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-off-color)}forge-focus-indicator{--forge-focus-indicator-shape:var(--_switch-track-shape);--forge-focus-indicator-outward-offset:0px}',r=class extends z{constructor(){super();g(this,q,U,!0),this[n]=this.attachInternals(),this._foundation=new v(new b(this))}static get observedAttributes(){return[i.attributes.ON,i.attributes.SELECTED,i.attributes.DEFAULT_ON,i.attributes.VALUE,i.attributes.DENSE,i.attributes.DISABLED,i.attributes.REQUIRED,i.attributes.READONLY,i.attributes.ICON,i.attributes.LABEL_POSITION]}get form(){return this[n].form}get labels(){return this[n].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){d(this,!!t,"name",t!=null?t:"")}get validity(){return this._foundation.syncValidity(this._hasCustomValidityError),this[n].validity}get validationMessage(){return this._foundation.syncValidity(this._hasCustomValidityError),this[n].validationMessage}get willValidate(){return this[n].willValidate}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(t,o,a){switch(t){case i.attributes.ON:case i.attributes.SELECTED:this.on=c(a);break;case i.attributes.DEFAULT_ON:this.defaultOn=c(a);break;case i.attributes.VALUE:this.value=a;break;case i.attributes.DENSE:this.dense=c(a);break;case i.attributes.DISABLED:this.disabled=c(a);break;case i.attributes.REQUIRED:this.required=c(a);break;case i.attributes.READONLY:this.readonly=c(a);break;case i.attributes.ICON:this.icon=a;break;case i.attributes.LABEL_POSITION:this.labelPosition=a;break}}setFormValue(t,o){if(this[n].setFormValue(t,o),o){let a=f(o)?o:o[this.name];this.on=a===i.state.ON;return}f(t)?this.on=!!t:t!=null&&t[this.name]?this.on=!!t[this.name]:this.on=!1}checkValidity(){return this._foundation.syncValidity(this._hasCustomValidityError),this[n].checkValidity()}reportValidity(){return this._foundation.syncValidity(this._hasCustomValidityError),this[n].reportValidity()}setCustomValidity(t){this._hasCustomValidityError=!!t,this._foundation.setValidity({customError:!!t},t)}formResetCallback(){this.on=this.defaultOn}formStateRestoreCallback(t){this.on=t===i.state.ON}formDisabledCallback(t){this.disabled=t}labelClickedCallback(){this._foundation.proxyClick()}labelChangedCallback(t){this._foundation.proxyLabel(t)}toggle(t){u(t)?this._foundation.on=t:this._foundation.on=!this._foundation.on}};n,s([l()],r.prototype,"on",2),s([l({name:"on"})],r.prototype,"selected",2),s([l()],r.prototype,"defaultOn",2),s([l()],r.prototype,"value",2),s([l()],r.prototype,"dense",2),s([l()],r.prototype,"disabled",2),s([l()],r.prototype,"required",2),s([l()],r.prototype,"readonly",2),s([l()],r.prototype,"icon",2),s([l()],r.prototype,"labelPosition",2),r=s([m({name:i.elementName,dependencies:[V,T]})],r);var D=class extends k{constructor(e){super(e)}get value(){return this._element.value}set value(e){this._element.value=e}get on(){return this._element.on}set on(e){this._element.on=e}get selected(){return this._element.selected}set selected(e){this._element.selected=e}get defaultOn(){return this._element.defaultOn}set defaultOn(e){this._element.defaultOn=e}get icon(){return this._element.icon}set icon(e){this._element.icon=e}get disabled(){return this._element.disabled}set disabled(e){this._element.disabled=e}get dense(){return this._element.dense}set dense(e){this._element.dense=e}get required(){return this._element.required}set required(e){this._element.required=e}get readonly(){return this._element.readonly}set readonly(e){this._element.readonly=e}get name(){return this._element.name}set name(e){this._element.name=e}get labelPosition(){return this._element.labelPosition}set labelPosition(e){this._element.labelPosition=e}onChange(e){this._element.addEventListener("forge-switch-change",({detail:t})=>e(t))}onFocus(e){this._element.addEventListener("focus",t=>e(t))}onBlur(e){this._element.addEventListener("blur",t=>e(t))}setLabel(e){this._element.innerText=e!=null?e:""}toggle(e){this._element.toggle(e)}_build(){return document.createElement(i.elementName)}_configure(){var e,t;(e=this._config.options)!=null&&e.id&&(this._element.id=this._config.options.id),(t=this._config.options)!=null&&t.label&&(this._element.innerText=this._config.options.label)}};function St(){w(r)}export{i as a,b,v as c,r as d,D as e,St as f};
7
- //# sourceMappingURL=chunk.SN3VXOWN.js.map
6
+ import{a as z}from"./chunk.KPNGLSCU.js";import{d as V}from"./chunk.F3FWXBDS.js";import{p as T}from"./chunk.KIQZLNDG.js";import{i as I,j as L,m as x,n as S,o as O,p as C,q as A}from"./chunk.QG5EYBS3.js";import{a as k}from"./chunk.YTBNAGLS.js";import{a as y}from"./chunk.ZY3ETQ3D.js";import{a as l}from"./chunk.NVUMRW44.js";import{a as m,b as E,j as n}from"./chunk.UVXKHQQZ.js";import{a as w,e as g,f as h}from"./chunk.TPXXHX5J.js";import{u as p,v as d}from"./chunk.HZUQXCOQ.js";import{b as u,c as f,k as c}from"./chunk.J2M2MXP2.js";import{d as s}from"./chunk.M3QDAYD2.js";var N=`${E}switch`,P={HIDDEN:"hidden"},F={ON:"on",SELECTED:"selected",DEFAULT_ON:"default-on",VALUE:"value",DENSE:"dense",DISABLED:"disabled",REQUIRED:"required",READONLY:"readonly",ICON:"icon",LABEL_POSITION:"label-position"},H={ROOT:".forge-switch",INPUT:"#input",LABEL:"#label",ICON_ON:"#icon-on",ICON_OFF:"#icon-off",INPUT_SLOT:"slot[name=input]",STATE_LAYER:"forge-state-layer",SLOTTED_INPUT:"input[type=checkbox]"},M={CHANGE:`${N}-change`},R={ON:"on",OFF:"off"},B=[...I],i={classes:P,selectors:H,attributes:F,elementName:N,events:M,state:R,forwardedAttributes:B};var b=class extends y{constructor(t){super(t);this._rootElement=h(t,i.selectors.ROOT),this._inputElement=h(t,i.selectors.INPUT),this._labelElement=h(t,i.selectors.LABEL),this._iconOnElement=h(t,i.selectors.ICON_ON),this._iconOffElement=h(t,i.selectors.ICON_OFF),this._stateLayerElement=h(t,i.selectors.STATE_LAYER),this._inputAdapter=new A}get _activeInputElement(){var t;return(t=this._inputAdapter.el)!=null?t:this._inputElement}initialize(){let t=this._component.querySelector(i.selectors.SLOTTED_INPUT);t?(t.slot="input",this._switchInput(t,this._inputElement)):this._initializeForwardObserver(this._inputElement),this._observeInput(t!=null?t:this._inputElement)}setOn(t){this._activeInputElement.checked=t}setDefaultOn(t){this._activeInputElement.toggleAttribute("checked",t)}setValue(t){this._activeInputElement.value=t}setDisabled(t){this._activeInputElement.disabled=t,this._stateLayerElement.disabled=t}setRequired(t){this._activeInputElement.required=t}setReadonly(t){this._activeInputElement.readOnly=t,d(this._activeInputElement,t,"aria-readonly",t.toString()),this._stateLayerElement.disabled=t}setIconVisibility(t){let o=t==="none"||t==="off",a=t==="none"||t==="on";p(this._iconOnElement,o,i.classes.HIDDEN),p(this._iconOffElement,a,i.classes.HIDDEN)}setLabelPosition(t){this._labelElement.remove(),t==="start"?this._rootElement.prepend(this._labelElement):this._rootElement.append(this._labelElement)}addRootListener(t,o){this._rootElement.addEventListener(t,o)}addInputSlotListener(t){this._inputElement.addEventListener("slotchange",t)}detectInputElement(){let t=this._inputSlotElement.assignedElements()[0];t?this._inputAdapter.attachElement(t):this._inputAdapter.attachElement(this._inputElement)}proxyClick(){this._activeInputElement.click(),this._activeInputElement.focus()}proxyLabel(t){this._labelElementText=t!=null?t:void 0,this._setAriaLabel()}syncValue(t){if(t===null){this._component[n].setFormValue(null,i.state.OFF);return}let o=new FormData;o.append(this._component.name,t),this._component[n].setFormValue(o,i.state.ON)}syncValidity(t){t?this._activeInputElement.setCustomValidity(this._component[n].validationMessage):this._activeInputElement.setCustomValidity(""),this._component[n].setValidity(this._activeInputElement.validity,this._activeInputElement.validationMessage,this._activeInputElement)}setValidity(t,o){this._component[n].setValidity(t,o,this._activeInputElement)}_initializeInput(){var t;(t=this._forwardObserver)==null||t.disconnect(),this._initializeForwardObserver(this._activeInputElement)}_initializeForwardObserver(t){this._forwardObserver=x(this._component,i.forwardedAttributes,(o,a)=>{if(o==="aria-label"){this._forwardedAriaLabel=a!=null?a:void 0,this._setAriaLabel();return}d(t,!!a,o,a!=null?a:void 0)})}_setAriaLabel(){var o;let t=!!this._forwardedAriaLabel||!!this._labelElementText;d(this._activeInputElement,t,"aria-label",(o=this._forwardedAriaLabel)!=null?o:this._labelElementText)}_switchInput(t,o){S(o,t,["type","role","checked","aria-readonly"]),O(o,t,L),C(o,t)}_observeInput(t=this._inputElement){this._inputAdapter.initialize(t,(o,a)=>{this._switchInput(o,a),this._initializeInput()})}};var v=class{constructor(e){this._adapter=e;this._on=!1;this._defaultOn=!1;this._value="on";this._dense=!1;this._disabled=!1;this._required=!1;this._readonly=!1;this._icon="on";this._labelPosition="end";this._changeListener=t=>this._handleChange(t),this._inputSlotListener=()=>this._handleInputSlotChange()}get _submittedValue(){return this._on?this._value:null}initialize(){this._adapter.initialize(),this._adapter.addRootListener("change",this._changeListener),this._adapter.addInputSlotListener(this._inputSlotListener),this._adapter.setIconVisibility(this._icon),this._adapter.syncValue(this._submittedValue)}proxyClick(){this._adapter.proxyClick()}proxyLabel(e){this._adapter.proxyLabel(e)}syncValidity(e){this._adapter.syncValidity(e)}setValidity(e,t){this._adapter.setValidity(e,t)}_handleChange(e){if(this._readonly){this._adapter.setOn(this._on);return}let o=e.target.checked,a=this._on;if(this._on=o,!this._adapter.emitHostEvent(i.events.CHANGE,o,!0,!0)){this._on=a,this._adapter.setOn(this._on);return}this._adapter.syncValue(this._submittedValue),this._setOnAttribute()}_handleInputSlotChange(){this._adapter.detectInputElement()}_setOnAttribute(){this._adapter.toggleHostAttribute(i.attributes.ON,this._on),this._adapter.toggleHostAttribute(i.attributes.SELECTED,this._on)}get on(){return this._on}set on(e){this._on!==e&&(this._on=e,this._adapter.setOn(this._on),this._adapter.syncValue(this._submittedValue),this._setOnAttribute())}get defaultOn(){return this._defaultOn}set defaultOn(e){this._defaultOn!==e&&(this._defaultOn=e,this._adapter.setDefaultOn(this._defaultOn),this._adapter.toggleHostAttribute(i.attributes.DEFAULT_ON,this._defaultOn))}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._adapter.setValue(this._value),this._adapter.syncValue(this._submittedValue),this._adapter.toggleHostAttribute(i.attributes.VALUE,!0,this._value))}get dense(){return this._dense}set dense(e){this._dense!==e&&(this._dense=e,this._adapter.toggleHostAttribute(i.attributes.DENSE,this._dense))}get disabled(){return this._disabled}set disabled(e){this._disabled!==e&&(this._disabled=e,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(i.attributes.DISABLED,this._disabled))}get required(){return this._required}set required(e){this._required!==e&&(this._required=e,this._adapter.setRequired(this._required),this._adapter.toggleHostAttribute(i.attributes.REQUIRED,this._required))}get readonly(){return this._readonly}set readonly(e){this._readonly!==e&&(this._readonly=e,this._adapter.setReadonly(this._readonly),this._adapter.toggleHostAttribute(i.attributes.READONLY,this._readonly))}get icon(){return this._icon}set icon(e){this._icon!==e&&(this._icon=e,this._adapter.setIconVisibility(this._icon),this._adapter.setHostAttribute(i.attributes.ICON,this._icon))}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition!==e&&(this._labelPosition=e,this._adapter.setLabelPosition(this._labelPosition),this._adapter.setHostAttribute(i.attributes.LABEL_POSITION,this._labelPosition))}};var q='<template><div class="forge-switch" part="switch"><div id="container" class="container"><slot name="input"><input id="input" class="input" type="checkbox" role="switch"></slot><div class="track" part="track"></div><div class="handle" part="handle"><div id="icon-off" class="icon icon__off" part="icon-off"><slot name="icon-off"><svg aria-hidden="true" viewBox="0 0 24 24"><path d="M20 13H4v-2h16v2z"/></svg></slot></div><div id="icon-on" class="icon icon__on" part="icon-on"><slot name="icon-on"><svg aria-hidden="true" viewBox="0 0 24 24"><path d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"/></svg></slot></div><forge-state-layer target="container" exportparts="surface:state-layer"></forge-state-layer></div><forge-focus-indicator target="container" part="focus-indicator"></forge-focus-indicator></div><label id="label" for="input" class="label" part="label"><slot></slot></label></div></template>',U=':host{display:inline-block;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-switch{--_switch-handle-size:var(--forge-switch-handle-size, 20px);--_switch-handle-scale:var(--forge-switch-handle-scale, 1);--_switch-handle-elevation:var(--forge-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));--_switch-track-border-width:var(--forge-switch-track-border-width, 0);--_switch-track-border-color:var(--forge-switch-track-border-color, transparent);--_switch-icon-color:var(--forge-switch-icon-color, var(--forge-theme-on-tertiary, #ffffff));--_switch-icon-size:var(--forge-switch-icon-size, 16px);--_switch-icon-scale:var(--forge-switch-icon-scale, 1);--_switch-state-layer-size:var(--forge-switch-state-layer-size, 40px);--_switch-state-layer-dense-size:var(--forge-switch-state-layer-dense-size, 28px);--_switch-handle-on-color:var(--forge-switch-handle-on-color, var(--forge-theme-tertiary, #3d5afe));--_switch-handle-off-color:var(--forge-switch-handle-off-color, var(--forge-theme-surface-container-high, #9e9e9e));--_switch-handle-width:var(--forge-switch-handle-width, var(--_switch-handle-size));--_switch-handle-height:var(--forge-switch-handle-height, var(--_switch-handle-size));--_switch-handle-on-scale:var(--forge-switch-handle-on-scale, var(--_switch-handle-scale));--_switch-handle-off-scale:var(--forge-switch-handle-off-scale, var(--_switch-handle-scale));--_switch-handle-shape:var(--forge-switch-handle-shape, var(--forge-shape-round, 50%));--_switch-handle-on-elevation:var(--forge-switch-handle-on-elevation, var(--_switch-handle-elevation));--_switch-handle-off-elevation:var(--forge-switch-handle-off-elevation, var(--_switch-handle-elevation));--_switch-track-on-color:var(--forge-switch-track-on-color, var(--forge-theme-tertiary-container, #d0d7ff));--_switch-track-off-color:var(--forge-switch-track-off-color, var(--forge-theme-surface-container, #e0e0e0));--_switch-track-width:var(--forge-switch-track-width, 36px);--_switch-track-height:var(--forge-switch-track-height, 14px);--_switch-track-shape:var(--forge-switch-track-shape, var(--forge-shape-full, 9999px));--_switch-track-on-border-width:var(--forge-switch-track-on-border-width, var(--_switch-track-border-width));--_switch-track-off-border-width:var(--forge-switch-track-off-border-width, var(--_switch-track-border-width));--_switch-track-on-border-color:var(--forge-switch-track-on-border-color, var(--_switch-track-border-color));--_switch-track-off-border-color:var(--forge-switch-track-off-border-color, var(--_switch-track-border-color));--_switch-icon-on-color:var(--forge-switch-icon-on-color, var(--_switch-icon-color));--_switch-icon-off-color:var(--forge-switch-icon-off-color, var(--_switch-icon-color));--_switch-icon-on-size:var(--forge-switch-icon-on-size, var(--_switch-icon-size));--_switch-icon-off-size:var(--forge-switch-icon-off-size, var(--_switch-icon-size));--_switch-icon-on-scale:var(--forge-switch-icon-on-scale, var(--_switch-icon-scale));--_switch-icon-off-scale:var(--forge-switch-icon-off-scale, var(--_switch-icon-scale));--_switch-gap:var(--forge-switch-gap, 0);--_switch-justify:var(--forge-switch-justify, space-between);--_switch-direction:var(--forge-switch-direction, initial);--_switch-state-layer-width:var(--forge-switch-state-layer-width, var(--_switch-state-layer-size));--_switch-state-layer-height:var(--forge-switch-state-layer-height, var(--_switch-state-layer-size));--_switch-state-layer-on-color:var(--forge-switch-state-layer-on-color, var(--_switch-handle-on-color));--_switch-state-layer-off-color:var(--forge-switch-state-layer-off-color, var(--_switch-color));--_switch-state-layer-dense-width:var(--forge-switch-state-layer-dense-width, var(--_switch-state-layer-dense-size));--_switch-state-layer-dense-height:var(--forge-switch-state-layer-dense-height, var(--_switch-state-layer-dense-size));--_switch-disabled-opacity:var(--forge-switch-disabled-opacity, 0.38);--_switch-handle-active-on-color:var(--forge-switch-handle-active-on-color, var(--_switch-handle-on-color));--_switch-handle-active-off-color:var(--forge-switch-handle-active-off-color, var(--_switch-handle-off-color));--_switch-handle-active-scale:var(--forge-switch-handle-active-scale, 1.2);--_switch-handle-active-on-scale:var(--forge-switch-handle-active-on-scale, var(--_switch-handle-active-scale));--_switch-handle-active-off-scale:var(--forge-switch-handle-active-off-scale, var(--_switch-handle-active-scale));--_switch-handle-active-elevation:var(--forge-switch-handle-active-elevation, var(--_switch-handle-elevation));--_switch-handle-active-on-elevation:var(--forge-switch-handle-active-on-elevation, var(--_switch-handle-active-elevation));--_switch-handle-active-off-elevation:var(--forge-switch-handle-active-off-elevation, var(--_switch-handle-active-elevation));--_switch-track-active-on-color:var(--forge-switch-track-active-on-color, var(--_switch-track-on-color));--_switch-track-active-off-color:var(--forge-switch-track-active-off-color, var(--_switch-track-off-color));--_switch-track-active-on-border-width:var(--forge-switch-track-active-on-border-width, var(--_switch-track-on-border-width));--_switch-track-active-off-border-width:var(--forge-switch-track-active-off-border-width, var(--_switch-track-off-border-width));--_switch-track-active-on-border-color:var(--forge-switch-track-active-on-border-color, var(--_switch-track-on-border-color));--_switch-track-active-off-border-color:var(--forge-switch-track-active-off-border-color, var(--_switch-track-off-border-color));--_switch-icon-active-on-color:var(--forge-switch-icon-active-on-color, var(--_switch-icon-on-color));--_switch-icon-active-off-color:var(--forge-switch-icon-active-off-color, var(--_switch-icon-off-color));--_switch-icon-active-on-scale:var(--forge-switch-icon-active-on-scale, var(--_switch-icon-on-scale));--_switch-icon-active-off-scale:var(--forge-switch-icon-active-off-scale, var(--_switch-icon-off-scale));--_switch-animation-duration:var(--forge-switch-animation-duration, var(--forge-animation-duration-short2, 100ms));--_switch-animation-timing:var(--forge-switch-animation-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_switch-active-animation-timing:var(--forge-switch-active-animation-timing, var(--forge-animation-easing-linear, cubic-bezier(0, 0, 1, 1)))}.forge-switch{position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:var(--_switch-direction);flex-shrink:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:var(--_switch-justify);justify-content:var(--_switch-justify);gap:var(--_switch-gap);display:-webkit-box;display:flex;--_switch-current-state-layer-width:var(--_switch-state-layer-width);--_switch-current-state-layer-height:var(--_switch-state-layer-height)}.forge-switch .container{position:relative;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;block-size:max(var(--_switch-handle-height),var(--_switch-track-height),var(--_switch-current-state-layer-height));cursor:pointer}.forge-switch .input{position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}.forge-switch .track{-webkit-transition-property:background-color,border-color,border-width;transition-property:background-color,border-color,border-width;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);-webkit-box-sizing:border-box;box-sizing:border-box;margin-inline:calc(max(var(--_switch-handle-width),var(--_switch-current-state-layer-width))/ 2 - calc(var(--_switch-track-height)/ 2));border-width:var(--_switch-track-off-border-width);border-color:var(--_switch-track-off-border-color);border-style:solid;border-radius:var(--_switch-track-shape);inline-size:var(--_switch-track-width);block-size:var(--_switch-track-height);background-color:var(--_switch-track-off-color)}.forge-switch .handle{position:absolute;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;display:-webkit-box;display:flex;-webkit-transition-property:translate;transition-property:translate;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-current-state-layer-width);block-size:var(--_switch-current-state-layer-height)}.forge-switch .handle::before{content:"";position:relative;display:block;scale:var(--_switch-handle-off-scale);-webkit-transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing);transition:background-color var(--_switch-animation-duration) var(--_switch-animation-timing),box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing),scale var(--_switch-animation-duration) var(--_switch-active-animation-timing),-webkit-box-shadow var(--_switch-animation-duration) var(--_switch-animation-timing);-webkit-box-shadow:var(--_switch-handle-off-elevation);box-shadow:var(--_switch-handle-off-elevation);border-radius:var(--_switch-handle-shape);inline-size:var(--_switch-handle-width);block-size:var(--_switch-handle-height);background-color:var(--_switch-handle-off-color)}.forge-switch .icon{position:absolute;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;display:-webkit-box;display:flex;-webkit-transition-property:opacity,scale;transition-property:opacity,scale;-webkit-transition-duration:var(--_switch-animation-duration);transition-duration:var(--_switch-animation-duration);-webkit-transition-timing-function:var(--_switch-animation-timing);transition-timing-function:var(--_switch-animation-timing);inline-size:var(--_switch-icon-off-size);block-size:var(--_switch-icon-off-size);color:var(--_switch-icon-off-color);fill:var(--_switch-icon-off-color);font-size:var(--_switch-icon-off-size);--forge-icon-font-size:var(--_switch-icon-off-size)}.forge-switch .icon__on{--forge-icon-font-size:var(--_switch-icon-on-size);inline-size:var(--_switch-icon-on-size);block-size:var(--_switch-icon-on-size);color:var(--_switch-icon-on-color);fill:var(--_switch-icon-on-color);font-size:var(--_switch-icon-on-size);opacity:0;scale:0.4}.forge-switch .icon__off{opacity:1;scale:var(--_switch-icon-off-scale)}.forge-switch .label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label-font-weight,400);line-height:var(--forge-typography-label-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label-text-transform,inherit);-webkit-text-decoration:var(--forge-typography-label-text-decoration,inherit);text-decoration:var(--forge-typography-label-text-decoration,inherit)}.forge-switch .label:empty{display:none}.forge-switch .hidden{display:none}.forge-switch ::slotted([slot=input]){position:absolute;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;margin:0;inline-size:100%;block-size:100%;cursor:unset}:host([on]) .track{border-width:var(--_switch-track-on-border-width);border-color:var(--_switch-track-on-border-color);background-color:var(--_switch-track-on-color)}:host([on]) .handle{translate:calc(var(--_switch-track-width) - calc(var(--_switch-track-height)/ 2) * 2)}:host([on]) .handle::before{scale:var(--_switch-handle-on-scale);-webkit-box-shadow:var(--_switch-handle-on-elevation);box-shadow:var(--_switch-handle-on-elevation);background-color:var(--_switch-handle-on-color)}:host([on]) .handle .icon__on{opacity:1;scale:var(--_switch-icon-on-scale)}:host([on]) .handle .icon__off{opacity:0;scale:0.4}:host([on]) forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-on-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .track{border-width:var(--_switch-track-active-off-border-width);border-color:var(--_switch-track-active-off-border-color);background-color:var(--_switch-track-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-off-scale);-webkit-box-shadow:var(--_switch-handle-active-off-elevation);box-shadow:var(--_switch-handle-active-off-elevation);background-color:var(--_switch-handle-active-off-color)}:host(:not([disabled]):not([readonly])) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-off-scale);color:var(--_switch-icon-active-off-color);fill:var(--_switch-icon-active-off-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .track{border-width:var(--_switch-track-active-on-border-width);border-color:var(--_switch-track-active-on-border-color);background-color:var(--_switch-track-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle::before{scale:var(--_switch-handle-active-on-scale);-webkit-box-shadow:var(--_switch-handle-active-on-elevation);box-shadow:var(--_switch-handle-active-on-elevation);background-color:var(--_switch-handle-active-on-color)}:host(:not([disabled]):not([readonly])[on]) .forge-switch .container:active .handle .icon{scale:var(--_switch-icon-active-on-scale);color:var(--_switch-icon-active-on-color);fill:var(--_switch-icon-active-on-color)}:host([dense]) .forge-switch{--_switch-current-state-layer-width:var(--_switch-state-layer-dense-width);--_switch-current-state-layer-height:var(--_switch-state-layer-dense-height)}:host([disabled]) .forge-switch{opacity:var(--_switch-disabled-opacity)}:host([disabled]) .forge-switch .container{cursor:not-allowed}:host([disabled]) .forge-switch .handle::before{-webkit-box-shadow:none;box-shadow:none}:host([readonly]) .forge-switch .container{cursor:not-allowed}@media (prefers-reduced-motion){.switch{--_switch-animation-duration:var(--forge-switch-animation-duration, 0s)}}forge-state-layer{--forge-state-layer-color:var(--_switch-state-layer-off-color)}forge-focus-indicator{--forge-focus-indicator-shape:var(--_switch-track-shape);--forge-focus-indicator-outward-offset:0px}',r=class extends z{constructor(){super();g(this,q,U,!0),this[n]=this.attachInternals(),this._foundation=new v(new b(this))}static get observedAttributes(){return[i.attributes.ON,i.attributes.SELECTED,i.attributes.DEFAULT_ON,i.attributes.VALUE,i.attributes.DENSE,i.attributes.DISABLED,i.attributes.REQUIRED,i.attributes.READONLY,i.attributes.ICON,i.attributes.LABEL_POSITION]}get form(){return this[n].form}get labels(){return this[n].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){d(this,!!t,"name",t!=null?t:"")}get validity(){return this._foundation.syncValidity(this._hasCustomValidityError),this[n].validity}get validationMessage(){return this._foundation.syncValidity(this._hasCustomValidityError),this[n].validationMessage}get willValidate(){return this[n].willValidate}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(t,o,a){switch(t){case i.attributes.ON:case i.attributes.SELECTED:this.on=c(a);break;case i.attributes.DEFAULT_ON:this.defaultOn=c(a);break;case i.attributes.VALUE:this.value=a;break;case i.attributes.DENSE:this.dense=c(a);break;case i.attributes.DISABLED:this.disabled=c(a);break;case i.attributes.REQUIRED:this.required=c(a);break;case i.attributes.READONLY:this.readonly=c(a);break;case i.attributes.ICON:this.icon=a;break;case i.attributes.LABEL_POSITION:this.labelPosition=a;break}}setFormValue(t,o){if(this[n].setFormValue(t,o),o){let a=f(o)?o:o[this.name];this.on=a===i.state.ON;return}f(t)?this.on=!!t:t!=null&&t[this.name]?this.on=!!t[this.name]:this.on=!1}checkValidity(){return this._foundation.syncValidity(this._hasCustomValidityError),this[n].checkValidity()}reportValidity(){return this._foundation.syncValidity(this._hasCustomValidityError),this[n].reportValidity()}setCustomValidity(t){this._hasCustomValidityError=!!t,this._foundation.setValidity({customError:!!t},t)}formResetCallback(){this.on=this.defaultOn}formStateRestoreCallback(t){this.on=t===i.state.ON}formDisabledCallback(t){this.disabled=t}labelClickedCallback(){this._foundation.proxyClick()}labelChangedCallback(t){this._foundation.proxyLabel(t)}toggle(t){u(t)?this._foundation.on=t:this._foundation.on=!this._foundation.on}};n,s([l()],r.prototype,"on",2),s([l({name:"on"})],r.prototype,"selected",2),s([l()],r.prototype,"defaultOn",2),s([l()],r.prototype,"value",2),s([l()],r.prototype,"dense",2),s([l()],r.prototype,"disabled",2),s([l()],r.prototype,"required",2),s([l()],r.prototype,"readonly",2),s([l()],r.prototype,"icon",2),s([l()],r.prototype,"labelPosition",2),r=s([m({name:i.elementName,dependencies:[V,T]})],r);var D=class extends k{constructor(e){super(e)}get value(){return this._element.value}set value(e){this._element.value=e}get on(){return this._element.on}set on(e){this._element.on=e}get selected(){return this._element.selected}set selected(e){this._element.selected=e}get defaultOn(){return this._element.defaultOn}set defaultOn(e){this._element.defaultOn=e}get icon(){return this._element.icon}set icon(e){this._element.icon=e}get disabled(){return this._element.disabled}set disabled(e){this._element.disabled=e}get dense(){return this._element.dense}set dense(e){this._element.dense=e}get required(){return this._element.required}set required(e){this._element.required=e}get readonly(){return this._element.readonly}set readonly(e){this._element.readonly=e}get name(){return this._element.name}set name(e){this._element.name=e}get labelPosition(){return this._element.labelPosition}set labelPosition(e){this._element.labelPosition=e}onChange(e){this._element.addEventListener("forge-switch-change",({detail:t})=>e(t))}onFocus(e){this._element.addEventListener("focus",t=>e(t))}onBlur(e){this._element.addEventListener("blur",t=>e(t))}setLabel(e){this._element.innerText=e!=null?e:""}toggle(e){this._element.toggle(e)}_build(){return document.createElement(i.elementName)}_configure(){var e,t;(e=this._config.options)!=null&&e.id&&(this._element.id=this._config.options.id),(t=this._config.options)!=null&&t.label&&(this._element.innerText=this._config.options.label)}};function St(){w(r)}export{i as a,b,v as c,r as d,D as e,St as f};
7
+ //# sourceMappingURL=chunk.FZC3WXSY.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
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