tuikit-atomicx-vue3 6.0.0 → 6.2.0

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 (297) hide show
  1. package/dist/{PopoverPortal-Boz6txZy.js → PopoverPortal-CW9vHs8x.js} +5 -5
  2. package/dist/{PopoverTrigger-CFFNDZLC.js → PopoverTrigger-CqYkhDVb.js} +10 -10
  3. package/dist/{PopperContent-B-k_-BkW.js → PopperContent-ChxEHlA9.js} +7 -7
  4. package/dist/{Teleport-7kDHKhp8.js → Teleport-CWAzY-Xf.js} +59 -59
  5. package/dist/baseComp/Modal/Modal.js +29 -23
  6. package/dist/chat-store/composables/useContactStore.js +1 -1
  7. package/dist/chat-store/composables/useConversationGroupStore.js +1 -1
  8. package/dist/chat-store/composables/useConversationListStore.js +1 -1
  9. package/dist/chat-store/composables/useGroupMemberStore.js +1 -1
  10. package/dist/chat-store/composables/useGroupStore.js +1 -1
  11. package/dist/chat-store/composables/useLoginStore.js +1 -1
  12. package/dist/chat-store/composables/useMessageActionStore.js +1 -1
  13. package/dist/chat-store/composables/useMessageInputStore.js +1 -1
  14. package/dist/chat-store/composables/useMessageListStore.js +1 -1
  15. package/dist/chat-store/composables/useSearchStore.js +1 -1
  16. package/dist/chat-store/context/useChatContext.js +1 -1
  17. package/dist/components/AudioSettingPanel/MicrophoneSelect.js +10 -10
  18. package/dist/components/AudioSettingPanel/SpeakerSelect.js +6 -6
  19. package/dist/components/BarrageInput/BarrageInput.js +2 -2
  20. package/dist/components/BarrageInput/BarrageInputH5.js +68 -57
  21. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +2 -2
  22. package/dist/components/BarrageInput/MessageInputState.js +6 -6
  23. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  24. package/dist/components/BarrageInput/TextEditor/EditorCore.js +4 -4
  25. package/dist/components/BarrageList/BarrageList.js +98 -93
  26. package/dist/components/BarrageList/BarrageList.vue.d.ts +1 -1
  27. package/dist/components/BarrageList/BarrageListH5.js +83 -76
  28. package/dist/components/BarrageList/BarrageListState.js +4 -4
  29. package/dist/components/BarrageList/ClickAction/UserActionMenu.js +1 -1
  30. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +1 -1
  31. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +25 -27
  32. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +14 -14
  33. package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +1 -1
  34. package/dist/components/ChatSetting/ChatSetting.js +6 -6
  35. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +1 -1
  36. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +14 -14
  37. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +1 -1
  38. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +1 -1
  39. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +1 -1
  40. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +1 -1
  41. package/dist/components/CoGuestPanel/CoGuestPanel.js +1 -1
  42. package/dist/components/CoHostPanel/BattlePanel.js +72 -71
  43. package/dist/components/CoHostPanel/CoHostPanel.js +76 -68
  44. package/dist/components/CoHostPanel/ConnectionPanel.js +134 -134
  45. package/dist/components/CoHostPanel/RecommendHostList.js +5 -5
  46. package/dist/components/CoHostPanel/RecommendHostList.vue.d.ts +3 -1
  47. package/dist/components/CoHostPanel/constants.d.ts +13 -0
  48. package/dist/components/CoHostPanel/constants.js +5 -3
  49. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
  50. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +9 -9
  51. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
  52. package/dist/components/ContactList/ContactList.js +1 -1
  53. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +1 -1
  54. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +1 -1
  55. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +6 -6
  56. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +1 -1
  57. package/dist/components/ConversationList/ConversationList.js +1 -1
  58. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +1 -1
  59. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +14 -14
  60. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +4 -4
  61. package/dist/components/ConversationList/ConversationPreview/utils.js +2 -2
  62. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +10 -10
  63. package/dist/components/ConversationList/hooks/useConversationCreate.js +3 -3
  64. package/dist/components/ConversationList/index.js +7 -7
  65. package/dist/components/LiveAudienceList/LiveAudienceList.js +111 -3
  66. package/dist/components/LiveAudienceList/LiveAudienceList.vue.d.ts +2 -3
  67. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +71 -3
  68. package/dist/components/LiveAudienceList/LiveAudienceListH5.vue.d.ts +2 -3
  69. package/dist/components/LiveAudienceList/UserActionMenu.js +7 -7
  70. package/dist/components/LiveAudienceList/constants.d.ts +12 -0
  71. package/dist/components/LiveAudienceList/constants.js +4 -0
  72. package/dist/components/LiveAudienceList/index.d.ts +4 -3
  73. package/dist/components/LiveAudienceList/index.js +12 -7
  74. package/dist/components/LiveGift/LiveGiftH5/GiftCard.js +1 -1
  75. package/dist/components/LiveGift/LiveGiftH5/LiveGift.js +7 -7
  76. package/dist/components/LiveGift/LiveGiftPC/LiveGift.js +7 -7
  77. package/dist/components/LiveList/LiveList.js +7 -7
  78. package/dist/components/LiveList/LiveListH5.js +9 -9
  79. package/dist/components/LiveScenePanel/LiveSceneSelect.js +5 -5
  80. package/dist/components/LiveScenePanel/index.js +22 -22
  81. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +6 -6
  82. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +12 -12
  83. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +5 -5
  84. package/dist/components/LiveView/DefaultStreamViewUI.js +6 -6
  85. package/dist/components/LiveView/OverlayState.d.ts +18 -1
  86. package/dist/components/LiveView/OverlayState.js +58 -45
  87. package/dist/components/LiveView/PlayerControl/ControlBarItem.js +1 -1
  88. package/dist/components/LiveView/PlayerControl/PlayerControl.js +82 -78
  89. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +11 -11
  90. package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +4 -0
  91. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +19 -11
  92. package/dist/components/LiveView/constants.d.ts +1 -0
  93. package/dist/components/LiveView/constants.js +4 -0
  94. package/dist/components/LiveView/index.d.ts +10 -9
  95. package/dist/components/LiveView/index.js +181 -171
  96. package/dist/components/MessageInput/AttachmentPicker/index.js +2 -2
  97. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +52 -50
  98. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +2 -2
  99. package/dist/components/MessageInput/QuickConferencePicker/QuickConferencePicker.js +7 -7
  100. package/dist/components/MessageInput/QuotedMessagePreview/index.js +5 -5
  101. package/dist/components/MessageInput/TextEditor/EditorCore.js +1 -1
  102. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +22 -22
  103. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
  104. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +1 -1
  105. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +1 -1
  106. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +8 -8
  107. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +16 -16
  108. package/dist/components/MessageInput/TextEditor/index.js +1 -1
  109. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +49 -47
  110. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +34 -27
  111. package/dist/components/MessageList/Message/CustomMessage/QuickConferenceMessage/QuickConferenceMessage.js +1 -1
  112. package/dist/components/MessageList/Message/GroupTipMessage/index.js +2 -2
  113. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
  114. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
  115. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +15 -15
  116. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +4 -4
  117. package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +4 -4
  118. package/dist/components/MessageList/Message/TextMessage/TextMessage.js +6 -6
  119. package/dist/components/MessageList/MessageList.js +1 -1
  120. package/dist/components/RoomParticipantList/useParticpantAction/index.js +3 -3
  121. package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.js +1 -1
  122. package/dist/components/RoomParticipantView/StreamPlayManager/index.js +1 -1
  123. package/dist/components/RoomView/FloatMixLayout.js +12 -12
  124. package/dist/components/RoomView/index.js +1 -1
  125. package/dist/components/RoomView/usePlayStream/RTCStreamPlayer.js +1 -1
  126. package/dist/components/RoomView/usePlayStream/index.js +14 -14
  127. package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +1 -1
  128. package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +1 -1
  129. package/dist/components/Search/Search.js +1 -1
  130. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +1 -1
  131. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +4 -4
  132. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +5 -5
  133. package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +1 -1
  134. package/dist/components/StreamMixer/LocalMixer/index.js +15 -15
  135. package/dist/components/UserPicker/index.d.ts +2 -2
  136. package/dist/components/VideoSettingPanel/CameraSelect.js +6 -6
  137. package/dist/hooks/useMessageActions.js +4 -4
  138. package/dist/hooks/useOfflinePushInfo/utils.js +1 -1
  139. package/dist/hooks/useReadReceipt/useReadReceipt.js +48 -50
  140. package/dist/{index-Bx7tbGhD.js → index-BG0SygPh.js} +1 -1
  141. package/dist/index-BTIOpjNf.js +101 -0
  142. package/dist/{index-B_4JqmDM.js → index-Blg782zP.js} +3 -3
  143. package/dist/{index-DR3K_qw_.js → index-BqLIloNy.js} +232 -232
  144. package/dist/index-Bya5UkNn.js +291 -0
  145. package/dist/{index-Du3phCj7.js → index-CjTlxZJy.js} +1297 -1259
  146. package/dist/index-DOrJqoXX.js +76 -0
  147. package/dist/{index-BejtWwxH.js → index-zPloDst2.js} +58 -58
  148. package/dist/index.d.ts +2 -0
  149. package/dist/index.js +350 -328
  150. package/dist/login-BF4inxYw.js +5 -0
  151. package/dist/seat-D9-cB-I1.js +9 -0
  152. package/dist/states/BarrageState/BarrageState.d.ts +2 -1
  153. package/dist/states/BarrageState/BarrageState.js +26 -25
  154. package/dist/states/BattleState/index.d.ts +118 -1
  155. package/dist/states/BattleState/index.js +15 -2
  156. package/dist/states/CoGuestState.js +5 -5
  157. package/dist/states/CoHostState/index.d.ts +109 -1
  158. package/dist/states/CoHostState/index.js +94 -2
  159. package/dist/states/DeviceState/DeviceState.js +13 -13
  160. package/dist/states/GroupSettingState/GroupSettingState.js +61 -63
  161. package/dist/states/LiveAudienceState/index.d.ts +74 -0
  162. package/dist/states/LiveAudienceState/index.js +228 -0
  163. package/dist/states/LiveGiftState/LiveGiftState.js +20 -20
  164. package/dist/states/LiveListState/index.d.ts +120 -1
  165. package/dist/states/LiveListState/index.js +291 -2
  166. package/dist/states/LiveMonitorState/api/http.js +545 -495
  167. package/dist/states/LivePlayerState/index.d.ts +100 -1
  168. package/dist/states/LivePlayerState/index.js +141 -2
  169. package/dist/states/LiveSeatState/index.d.ts +6 -6
  170. package/dist/states/LiveSeatState/seatEventManager.js +14 -14
  171. package/dist/states/LiveSeatState/seatManager.js +5 -5
  172. package/dist/states/LiveSeatState/store.d.ts +1 -1
  173. package/dist/states/LiveSeatState/store.js +1 -1
  174. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +31 -27
  175. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +15 -11
  176. package/dist/states/LiveSeatState/usePlayStream/index.js +7 -7
  177. package/dist/states/LoginState/index.d.ts +45 -0
  178. package/dist/states/LoginState/index.js +35 -0
  179. package/dist/states/MessageInputState/MessageInputState.js +65 -67
  180. package/dist/states/RoomParticipantState/StandardParticipant/participantEventManager.js +1 -1
  181. package/dist/states/RoomParticipantState/StandardParticipant/scheduleEventManager.js +6 -6
  182. package/dist/states/RoomParticipantState/StandardParticipant/store.js +1 -1
  183. package/dist/states/RoomParticipantState/WebinarParticipant/WebinarParticipantEventManager.js +1 -1
  184. package/dist/states/RoomParticipantState/WebinarParticipant/webinarParticipantManager.js +7 -7
  185. package/dist/states/RoomParticipantState/index.js +1 -1
  186. package/dist/states/RoomState/callManager.js +4 -4
  187. package/dist/states/RoomState/roomManager.js +1 -1
  188. package/dist/states/RoomState/store.js +4 -4
  189. package/dist/states/SeatStore.d.ts +6 -6
  190. package/dist/states/SeatStore.js +48 -48
  191. package/dist/states/UIKitModalState/UIKitModalState.js +3 -3
  192. package/dist/states/UserState/index.js +1 -1
  193. package/dist/states/UserState/store.js +1 -1
  194. package/dist/states/VideoMixerState/VideoMixerState.js +4 -4
  195. package/dist/store-B7WKbQlg.js +108 -0
  196. package/dist/store-CKnF0jLH.js +330 -0
  197. package/dist/store-DNsii2Zo.js +128 -0
  198. package/dist/styles/index.css +1 -1
  199. package/dist/subEntry/chat/chat.d.ts +2 -5
  200. package/dist/subEntry/chat/chat.js +116 -138
  201. package/dist/subEntry/chat/index.js +116 -138
  202. package/dist/subEntry/common/base.d.ts +2 -1
  203. package/dist/subEntry/common/base.js +19 -15
  204. package/dist/subEntry/common/index.js +25 -21
  205. package/dist/subEntry/live/index.js +175 -172
  206. package/dist/subEntry/live/live.js +43 -43
  207. package/dist/subEntry/live/server.js +13 -13
  208. package/dist/subEntry/room/index.js +148 -158
  209. package/dist/subEntry/room/room.d.ts +0 -5
  210. package/dist/subEntry/room/room.js +12 -25
  211. package/dist/subEntry/room/server.js +17 -17
  212. package/dist/types/audience.d.ts +12 -273
  213. package/dist/types/barrage.d.ts +71 -16
  214. package/dist/types/barrage.js +2 -2
  215. package/dist/types/battle.d.ts +5 -365
  216. package/dist/types/chatSetting.js +1 -1
  217. package/dist/types/coHost.d.ts +4 -162
  218. package/dist/types/groupSetting.js +1 -1
  219. package/dist/types/index.d.ts +3 -1
  220. package/dist/types/index.js +127 -125
  221. package/dist/types/player.d.ts +39 -250
  222. package/dist/types/seat.d.ts +4 -337
  223. package/dist/types/seat.js +6 -6
  224. package/dist/useId-XX8BALCT.js +12 -0
  225. package/dist/utils/call.js +94 -95
  226. package/dist/utils/index.d.ts +3 -0
  227. package/dist/utils/index.js +43 -33
  228. package/dist/{components/MessageList/Message/GroupTipMessage → utils}/resolveGroupTipMessage.d.ts +1 -1
  229. package/dist/{components/MessageList/Message/GroupTipMessage → utils}/resolveGroupTipMessage.js +1 -1
  230. package/dist/{utils-Dq1MrcNM.js → utils-BMLu9pAy.js} +3 -3
  231. package/package.json +4 -3
  232. package/src/components/BarrageInput/BarrageInputH5.vue +74 -2
  233. package/src/components/BarrageList/BarrageList.vue +74 -11
  234. package/src/components/BarrageList/BarrageListH5.vue +64 -8
  235. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +2 -4
  236. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -0
  237. package/src/components/CoHostPanel/BattlePanel.vue +8 -5
  238. package/src/components/CoHostPanel/CoHostPanel.vue +43 -1
  239. package/src/components/CoHostPanel/ConnectionPanel.vue +7 -5
  240. package/src/components/CoHostPanel/RecommendHostList.vue +3 -3
  241. package/src/components/CoHostPanel/constants.ts +15 -0
  242. package/src/components/ConversationList/ConversationPreview/utils.ts +1 -1
  243. package/src/components/LiveAudienceList/LiveAudienceList.vue +1 -1
  244. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +1 -1
  245. package/src/components/LiveAudienceList/constants.ts +13 -0
  246. package/src/components/LiveAudienceList/index.ts +1 -1
  247. package/src/components/LiveScenePanel/LiveSceneSelect.vue +7 -7
  248. package/src/components/LiveView/OverlayState.ts +75 -9
  249. package/src/components/LiveView/PlayerControl/PlayerControl.vue +44 -5
  250. package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +11 -1
  251. package/src/components/LiveView/constants.ts +4 -0
  252. package/src/components/LiveView/index.ts +1 -2
  253. package/src/components/LiveView/index.vue +71 -28
  254. package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +3 -2
  255. package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +3 -2
  256. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +9 -4
  257. package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +1 -1
  258. package/src/components/UserPicker/index.ts +2 -0
  259. package/src/hooks/useReadReceipt/useReadReceipt.ts +4 -2
  260. package/src/index.ts +6 -0
  261. package/src/subEntry/chat/chat.ts +28 -24
  262. package/src/subEntry/common/base.ts +17 -1
  263. package/src/subEntry/room/room.ts +5 -5
  264. package/src/types/audience.ts +38 -281
  265. package/src/types/barrage.ts +70 -15
  266. package/src/types/battle.ts +28 -379
  267. package/src/types/coHost.ts +14 -163
  268. package/src/types/index.ts +16 -3
  269. package/src/types/player.ts +59 -254
  270. package/src/types/seat.ts +23 -349
  271. package/src/utils/call.ts +8 -3
  272. package/src/utils/index.ts +4 -0
  273. package/tsconfig.json +3 -1
  274. package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +0 -4
  275. package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.vue.d.ts +0 -2
  276. package/dist/components/BarrageList/Message/CustomMessage/index.d.ts +0 -3
  277. package/dist/components/BarrageList/Message/CustomMessage/index.js +0 -10
  278. package/dist/index-B1KO9p6W.js +0 -182
  279. package/dist/states/BattleState/BattleState.d.ts +0 -49
  280. package/dist/states/BattleState/BattleState.js +0 -217
  281. package/dist/states/CoHostState/CoHostState.d.ts +0 -188
  282. package/dist/states/CoHostState/CoHostState.js +0 -276
  283. package/dist/states/LiveAudienceState.d.ts +0 -61
  284. package/dist/states/LiveAudienceState.js +0 -205
  285. package/dist/states/LiveListState/LiveListState.d.ts +0 -150
  286. package/dist/states/LiveListState/LiveListState.js +0 -355
  287. package/dist/states/LivePlayerState/LivePlayerState.d.ts +0 -186
  288. package/dist/states/LivePlayerState/LivePlayerState.js +0 -262
  289. package/dist/states/LoginState.d.ts +0 -161
  290. package/dist/states/LoginState.js +0 -161
  291. package/dist/types/login.d.ts +0 -152
  292. package/dist/types/login.js +0 -5
  293. package/dist/useId-Ck7Lv4Fv.js +0 -16
  294. package/src/components/BarrageList/Message/CustomMessage/CustomMessage.vue +0 -7
  295. package/src/components/BarrageList/Message/CustomMessage/index.ts +0 -3
  296. package/src/types/login.ts +0 -159
  297. /package/src/{components/MessageList/Message/GroupTipMessage → utils}/resolveGroupTipMessage.ts +0 -0
@@ -1,6 +1,6 @@
1
- import { b as D, n as k, r as A, l as b, F as N, D as E, h as R, m as I, P as M, T as $ } from "./Teleport-7kDHKhp8.js";
2
- import { c as K, d as L, u as j, b as z, e as w } from "./PopperContent-B-k_-BkW.js";
3
- import { u as T } from "./useId-Ck7Lv4Fv.js";
1
+ import { c as D, a as k, r as A, u as b, F as N, D as E, b as R, d as I, e as M, T as $ } from "./Teleport-CWAzY-Xf.js";
2
+ import { a as K, u as L, b as j, c as z, d as w } from "./PopperContent-ChxEHlA9.js";
3
+ import { u as T } from "./useId-XX8BALCT.js";
4
4
  import { defineComponent as m, toRefs as U, ref as P, openBlock as c, createBlock as v, unref as e, withCtx as f, renderSlot as g, createVNode as h, mergeProps as _, withModifiers as C, normalizeProps as x, guardReactiveProps as W } from "vue";
5
5
  const [B, V] = /* @__PURE__ */ D("PopoverRoot");
6
6
  var G = /* @__PURE__ */ m({
@@ -571,8 +571,8 @@ var G = /* @__PURE__ */ m({
571
571
  }
572
572
  }), le = ee;
573
573
  export {
574
- ie as P,
574
+ se as P,
575
575
  le as a,
576
- se as b,
576
+ ie as b,
577
577
  B as i
578
578
  };
@@ -1,9 +1,9 @@
1
- import { l as p, a } from "./Teleport-7kDHKhp8.js";
2
- import { u as d } from "./useId-Ck7Lv4Fv.js";
3
- import { P as u } from "./PopperContent-B-k_-BkW.js";
4
- import { i as c } from "./PopoverPortal-Boz6txZy.js";
5
- import { defineComponent as g, onMounted as f, openBlock as m, createBlock as v, resolveDynamicComponent as _, unref as r, withCtx as t, createVNode as h, renderSlot as C } from "vue";
6
- var P = /* @__PURE__ */ g({
1
+ import { u as l, P as a } from "./Teleport-CWAzY-Xf.js";
2
+ import { u as d } from "./useId-XX8BALCT.js";
3
+ import { P as u } from "./PopperContent-ChxEHlA9.js";
4
+ import { i as c } from "./PopoverPortal-CW9vHs8x.js";
5
+ import { defineComponent as g, onMounted as f, openBlock as m, createBlock as v, resolveDynamicComponent as _, unref as r, withCtx as t, createVNode as h, renderSlot as P } from "vue";
6
+ var C = /* @__PURE__ */ g({
7
7
  __name: "PopoverTrigger",
8
8
  props: {
9
9
  asChild: {
@@ -17,9 +17,9 @@ var P = /* @__PURE__ */ g({
17
17
  }
18
18
  },
19
19
  setup(n) {
20
- const i = n, e = c(), { forwardRef: s, currentElement: l } = p();
20
+ const i = n, e = c(), { forwardRef: s, currentElement: p } = l();
21
21
  return e.triggerId || (e.triggerId = d(void 0, "reka-popover-trigger")), f(() => {
22
- e.triggerElement.value = l.value;
22
+ e.triggerElement.value = p.value;
23
23
  }), (o, y) => (m(), v(_(r(e).hasCustomAnchor.value ? r(a) : r(u)), { "as-child": "" }, {
24
24
  default: t(() => [h(r(a), {
25
25
  id: r(e).triggerId,
@@ -33,7 +33,7 @@ var P = /* @__PURE__ */ g({
33
33
  "as-child": i.asChild,
34
34
  onClick: r(e).onOpenToggle
35
35
  }, {
36
- default: t(() => [C(o.$slots, "default")]),
36
+ default: t(() => [P(o.$slots, "default")]),
37
37
  _: 3
38
38
  }, 8, [
39
39
  "id",
@@ -48,7 +48,7 @@ var P = /* @__PURE__ */ g({
48
48
  _: 3
49
49
  }));
50
50
  }
51
- }), w = P;
51
+ }), w = C;
52
52
  export {
53
53
  w as P
54
54
  };
@@ -1,5 +1,5 @@
1
1
  import { watchEffect as It, getCurrentInstance as fe, toRef as ue, computed as P, camelize as de, ref as V, onMounted as pe, defineComponent as Ct, renderSlot as Pt, watchPostEffect as Xt, openBlock as Yt, createBlock as he, unref as M, withCtx as Ut, shallowRef as me, watch as mt, getCurrentScope as ge, onScopeDispose as we, shallowReadonly as tt, createElementBlock as ye, normalizeStyle as ve, createVNode as xe, mergeProps as be, mergeDefaults as Ae } from "vue";
2
- import { e as Oe, j as Ce, u as Pe, b as Gt, l as Kt, a as Zt, c as Re } from "./Teleport-7kDHKhp8.js";
2
+ import { h as Oe, f as Ce, j as Pe, c as Gt, u as Kt, P as Zt, k as Re } from "./Teleport-CWAzY-Xf.js";
3
3
  let gt = 0;
4
4
  function Fn() {
5
5
  It((t) => {
@@ -1604,10 +1604,10 @@ var kn = /* @__PURE__ */ Ct({
1604
1604
  }), Vn = kn;
1605
1605
  export {
1606
1606
  zn as P,
1607
- Ln as a,
1608
- Vn as b,
1609
- Wn as c,
1610
- Se as d,
1611
- Mn as e,
1612
- Fn as u
1607
+ Wn as a,
1608
+ Fn as b,
1609
+ Vn as c,
1610
+ Mn as d,
1611
+ Ln as e,
1612
+ Se as u
1613
1613
  };
@@ -1,4 +1,4 @@
1
- import { inject as Ee, provide as be, onBeforeUnmount as Oe, effectScope as se, getCurrentInstance as I, computed as w, shallowRef as ue, watchEffect as L, readonly as we, getCurrentScope as Se, onScopeDispose as Pe, isRef as K, reactive as R, unref as A, customRef as Ae, toValue as b, watch as _, toRefs as G, ref as E, nextTick as M, onMounted as Ce, Fragment as _e, toHandlerKey as De, camelize as Te, onUpdated as Le, triggerRef as Me, onUnmounted as ae, defineComponent as x, h as $, Comment as Ne, mergeProps as Fe, cloneVNode as Ie, openBlock as X, createBlock as Q, normalizeStyle as xe, withCtx as le, renderSlot as Z, Teleport as Be, createCommentVNode as ke } from "vue";
1
+ import { inject as Ee, provide as be, onBeforeUnmount as Oe, effectScope as se, getCurrentInstance as I, computed as w, shallowRef as ue, watchEffect as F, readonly as we, getCurrentScope as Se, onScopeDispose as Pe, isRef as K, reactive as R, unref as A, customRef as Ae, toValue as b, watch as C, toRefs as G, ref as E, nextTick as L, onMounted as Ce, Fragment as _e, toHandlerKey as De, camelize as Te, onUpdated as Le, triggerRef as Me, onUnmounted as ae, defineComponent as x, h as $, Comment as Ne, mergeProps as Fe, cloneVNode as Ie, openBlock as X, createBlock as Q, normalizeStyle as xe, withCtx as le, renderSlot as Z, Teleport as Be, createCommentVNode as ke } from "vue";
2
2
  function je(e, t) {
3
3
  const n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
4
4
  return [(a) => {
@@ -7,7 +7,7 @@ function je(e, t) {
7
7
  throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
8
8
  }, (a) => (be(r, a), a)];
9
9
  }
10
- function F() {
10
+ function N() {
11
11
  let e = document.activeElement;
12
12
  if (e == null) return null;
13
13
  for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null; ) e = e.shadowRoot.activeElement;
@@ -27,7 +27,7 @@ function $e(e) {
27
27
  function Tt(e, t) {
28
28
  var n;
29
29
  const r = ue();
30
- return L(() => {
30
+ return F(() => {
31
31
  r.value = e();
32
32
  }, {
33
33
  ...t,
@@ -117,7 +117,7 @@ function Ge(e, t) {
117
117
  He() && Oe(e, t);
118
118
  }
119
119
  function Je(e, t, n) {
120
- return _(e, t, {
120
+ return C(e, t, {
121
121
  ...n,
122
122
  immediate: !0
123
123
  });
@@ -182,9 +182,9 @@ function Nt(e, t, n, r = {}) {
182
182
  if (u) {
183
183
  const p = E(g());
184
184
  let S = !1;
185
- return _(() => e[t], (P) => {
186
- S || (S = !0, p.value = h(P), M(() => S = !1));
187
- }), _(p, (P) => {
185
+ return C(() => e[t], (P) => {
186
+ S || (S = !0, p.value = h(P), L(() => S = !1));
187
+ }), C(p, (P) => {
188
188
  !S && (P !== e[t] || v) && m(P);
189
189
  }, { deep: v }), p;
190
190
  } else return w({
@@ -238,7 +238,7 @@ const rt = nt(), ot = /* @__PURE__ */ Ve(() => {
238
238
  const o = () => {
239
239
  document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", ne && (i == null || i()), t.value = void 0;
240
240
  };
241
- return _(n, (a, u) => {
241
+ return C(n, (a, u) => {
242
242
  var s;
243
243
  if (!D) return;
244
244
  if (!a) {
@@ -256,7 +256,7 @@ const rt = nt(), ot = /* @__PURE__ */ Ve(() => {
256
256
  padding: 0,
257
257
  margin: 0
258
258
  };
259
- f > 0 && (document.body.style.paddingRight = typeof l.padding == "number" ? `${l.padding}px` : String(l.padding), document.body.style.marginRight = typeof l.margin == "number" ? `${l.margin}px` : String(l.margin), document.documentElement.style.setProperty("--scrollbar-width", `${f}px`), document.body.style.overflow = "hidden"), ne && (i = fe(document, "touchmove", (c) => it(c), { passive: !1 })), M(() => {
259
+ f > 0 && (document.body.style.paddingRight = typeof l.padding == "number" ? `${l.padding}px` : String(l.padding), document.body.style.marginRight = typeof l.margin == "number" ? `${l.margin}px` : String(l.margin), document.documentElement.style.setProperty("--scrollbar-width", `${f}px`), document.body.style.overflow = "hidden"), ne && (i = fe(document, "touchmove", (c) => it(c), { passive: !1 })), L(() => {
260
260
  n.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
261
261
  });
262
262
  }, {
@@ -343,7 +343,7 @@ var st = function(e) {
343
343
  return null;
344
344
  var t = Array.isArray(e) ? e[0] : e;
345
345
  return t.ownerDocument.body;
346
- }, N = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), k = {}, V = 0, me = function(e) {
346
+ }, M = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), k = {}, V = 0, me = function(e) {
347
347
  return e && (e.host || me(e.parentNode));
348
348
  }, ut = function(e, t) {
349
349
  return t.map(function(n) {
@@ -367,8 +367,8 @@ var st = function(e) {
367
367
  l(c);
368
368
  else
369
369
  try {
370
- var d = c.getAttribute(r), y = d !== null && d !== "false", h = (N.get(c) || 0) + 1, g = (o.get(c) || 0) + 1;
371
- N.set(c, h), o.set(c, g), a.push(c), h === 1 && y && B.set(c, !0), g === 1 && c.setAttribute(n, "true"), y || c.setAttribute(r, "true");
370
+ var d = c.getAttribute(r), y = d !== null && d !== "false", h = (M.get(c) || 0) + 1, g = (o.get(c) || 0) + 1;
371
+ M.set(c, h), o.set(c, g), a.push(c), h === 1 && y && B.set(c, !0), g === 1 && c.setAttribute(n, "true"), y || c.setAttribute(r, "true");
372
372
  } catch (m) {
373
373
  console.error("aria-hidden: cannot operate on ", c, m);
374
374
  }
@@ -376,9 +376,9 @@ var st = function(e) {
376
376
  };
377
377
  return l(t), u.clear(), V++, function() {
378
378
  a.forEach(function(s) {
379
- var c = N.get(s) - 1, d = o.get(s) - 1;
380
- N.set(s, c), o.set(s, d), c || (B.has(s) || s.removeAttribute(r), B.delete(s)), d || s.removeAttribute(n);
381
- }), V--, V || (N = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), k = {});
379
+ var c = M.get(s) - 1, d = o.get(s) - 1;
380
+ M.set(s, c), o.set(s, d), c || (B.has(s) || s.removeAttribute(r), B.delete(s)), d || s.removeAttribute(n);
381
+ }), V--, V || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), k = {});
382
382
  };
383
383
  }, lt = function(e, t, n) {
384
384
  n === void 0 && (n = "data-aria-hidden");
@@ -389,7 +389,7 @@ var st = function(e) {
389
389
  };
390
390
  function xt(e) {
391
391
  let t;
392
- _(() => U(e), (n) => {
392
+ C(() => U(e), (n) => {
393
393
  let r = !1;
394
394
  try {
395
395
  r = !!(n != null && n.closest("[popover]:not(:popover-open)"));
@@ -436,10 +436,10 @@ function dt(e, t) {
436
436
  (p = t.value) == null || p.dispatchEvent(S);
437
437
  }
438
438
  };
439
- _(e, async (m, p) => {
439
+ C(e, async (m, p) => {
440
440
  var P;
441
441
  const S = p !== m;
442
- if (await M(), S) {
442
+ if (await L(), S) {
443
443
  const W = r.value, T = j(t.value);
444
444
  m ? (v("MOUNT"), l("enter"), T === "none" && l("after-enter")) : T === "none" || T === "undefined" || ((P = n.value) == null ? void 0 : P.display) === "none" ? (v("UNMOUNT"), l("leave"), l("after-leave")) : p && W !== T ? (v("ANIMATION_OUT"), l("leave")) : (v("UNMOUNT"), l("after-leave"));
445
445
  }
@@ -456,9 +456,9 @@ function dt(e, t) {
456
456
  m.target === t.value && p === "none" && v("ANIMATION_END");
457
457
  }, c = (m) => {
458
458
  m.target === t.value && (r.value = j(t.value));
459
- }, d = _(t, (m, p) => {
459
+ }, d = C(t, (m, p) => {
460
460
  m ? (n.value = getComputedStyle(m), m.addEventListener("animationstart", c), m.addEventListener("animationcancel", s), m.addEventListener("animationend", s)) : (v("ANIMATION_END"), a !== void 0 && (u == null || u.clearTimeout(a)), p == null || p.removeEventListener("animationstart", c), p == null || p.removeEventListener("animationcancel", s), p == null || p.removeEventListener("animationend", s));
461
- }, { immediate: !0 }), y = _(f, () => {
461
+ }, { immediate: !0 }), y = C(f, () => {
462
462
  const m = j(t.value);
463
463
  r.value = f.value === "mounted" ? m : "none";
464
464
  });
@@ -553,7 +553,7 @@ function yt(e, t, n = !0) {
553
553
  var a;
554
554
  const r = ((a = t == null ? void 0 : t.value) == null ? void 0 : a.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), i = E(!1), o = E(() => {
555
555
  });
556
- return L((u) => {
556
+ return F((u) => {
557
557
  if (!D || !b(n)) return;
558
558
  const f = async (l) => {
559
559
  const s = l.target;
@@ -584,11 +584,11 @@ function yt(e, t, n = !0) {
584
584
  function ht(e, t, n = !0) {
585
585
  var o;
586
586
  const r = ((o = t == null ? void 0 : t.value) == null ? void 0 : o.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), i = E(!1);
587
- return L((a) => {
587
+ return F((a) => {
588
588
  if (!D || !b(n)) return;
589
589
  const u = async (f) => {
590
590
  if (!(t != null && t.value)) return;
591
- await M(), await M();
591
+ await L(), await L();
592
592
  const v = f.target;
593
593
  !t.value || !v || he(t.value, v) || f.target && !i.value && ce(mt, e, { originalEvent: f });
594
594
  };
@@ -641,17 +641,17 @@ var gt = /* @__PURE__ */ x({
641
641
  return f.value >= h;
642
642
  }), s = yt(async (d) => {
643
643
  const y = [...O.branches].some((h) => h == null ? void 0 : h.contains(d.target));
644
- !l.value || y || (r("pointerDownOutside", d), r("interactOutside", d), await M(), d.defaultPrevented || r("dismiss"));
644
+ !l.value || y || (r("pointerDownOutside", d), r("interactOutside", d), await L(), d.defaultPrevented || r("dismiss"));
645
645
  }, o), c = ht((d) => {
646
646
  [...O.branches].some((h) => h == null ? void 0 : h.contains(d.target)) || (r("focusOutside", d), r("interactOutside", d), d.defaultPrevented || r("dismiss"));
647
647
  }, o);
648
648
  return Ze("Escape", (d) => {
649
649
  f.value === u.value.size - 1 && (r("escapeKeyDown", d), d.defaultPrevented || r("dismiss"));
650
- }), L((d) => {
651
- o.value && (n.disableOutsidePointerEvents && (O.layersWithOutsidePointerEventsDisabled.size === 0 && (O.originalBodyPointerEvents = a.value.body.style.pointerEvents, a.value.body.style.pointerEvents = "none"), O.layersWithOutsidePointerEventsDisabled.add(o.value)), u.value.add(o.value), d(() => {
652
- n.disableOutsidePointerEvents && O.layersWithOutsidePointerEventsDisabled.size === 1 && !$e(O.originalBodyPointerEvents) && (a.value.body.style.pointerEvents = O.originalBodyPointerEvents);
653
- }));
654
- }), L((d) => {
650
+ }), C([o, () => n.disableOutsidePointerEvents], ([d, y], h, g) => {
651
+ d && (y && (O.layersWithOutsidePointerEventsDisabled.size === 0 && (O.originalBodyPointerEvents = a.value.body.style.pointerEvents, a.value.body.style.pointerEvents = "none"), O.layersWithOutsidePointerEventsDisabled.add(d), g(() => {
652
+ O.layersWithOutsidePointerEventsDisabled.delete(d), O.layersWithOutsidePointerEventsDisabled.size === 0 && !$e(O.originalBodyPointerEvents) && (a.value.body.style.pointerEvents = O.originalBodyPointerEvents);
653
+ })), u.value.add(d));
654
+ }, { immediate: !0 }), F((d) => {
655
655
  d(() => {
656
656
  o.value && (u.value.delete(o.value), O.layersWithOutsidePointerEventsDisabled.delete(o.value));
657
657
  });
@@ -700,9 +700,9 @@ const z = "focusScope.autoFocusOnMount", Y = "focusScope.autoFocusOnUnmount", oe
700
700
  cancelable: !0
701
701
  };
702
702
  function Ot(e, { select: t = !1 } = {}) {
703
- const n = F();
703
+ const n = N();
704
704
  for (const r of e)
705
- if (C(r, { select: t }), F() !== n) return !0;
705
+ if (_(r, { select: t }), N() !== n) return !0;
706
706
  }
707
707
  function wt(e) {
708
708
  const t = ge(e), n = ie(t, e), r = ie(t.reverse(), e);
@@ -731,9 +731,9 @@ function St(e, { upTo: t }) {
731
731
  function Pt(e) {
732
732
  return e instanceof HTMLInputElement && "select" in e;
733
733
  }
734
- function C(e, { select: t = !1 } = {}) {
734
+ function _(e, { select: t = !1 } = {}) {
735
735
  if (e && e.focus) {
736
- const n = F();
736
+ const n = N();
737
737
  e.focus({ preventScroll: !0 }), e !== n && Pt(e) && t && e.select();
738
738
  }
739
739
  }
@@ -770,24 +770,24 @@ var At = /* @__PURE__ */ x({
770
770
  this.paused = !1;
771
771
  }
772
772
  });
773
- L((l) => {
773
+ F((l) => {
774
774
  if (!D) return;
775
775
  const s = o.value;
776
776
  if (!n.trapped) return;
777
777
  function c(g) {
778
778
  if (f.paused || !s) return;
779
779
  const m = g.target;
780
- s.contains(m) ? a.value = m : C(a.value, { select: !0 });
780
+ s.contains(m) ? a.value = m : _(a.value, { select: !0 });
781
781
  }
782
782
  function d(g) {
783
783
  if (f.paused || !s) return;
784
784
  const m = g.relatedTarget;
785
- m !== null && (s.contains(m) || C(a.value, { select: !0 }));
785
+ m !== null && (s.contains(m) || _(a.value, { select: !0 }));
786
786
  }
787
787
  function y(g) {
788
788
  const m = a.value;
789
789
  if (m === null || !g.some((P) => P.removedNodes.length > 0)) return;
790
- s.contains(m) || C(s);
790
+ s.contains(m) || _(s);
791
791
  }
792
792
  document.addEventListener("focusin", c), document.addEventListener("focusout", d);
793
793
  const h = new MutationObserver(y);
@@ -797,14 +797,14 @@ var At = /* @__PURE__ */ x({
797
797
  }), l(() => {
798
798
  document.removeEventListener("focusin", c), document.removeEventListener("focusout", d), h.disconnect();
799
799
  });
800
- }), L(async (l) => {
800
+ }), F(async (l) => {
801
801
  const s = o.value;
802
- if (await M(), !s) return;
802
+ if (await L(), !s) return;
803
803
  u.add(f);
804
- const c = F();
804
+ const c = N();
805
805
  if (!s.contains(c)) {
806
806
  const y = new CustomEvent(z, oe);
807
- s.addEventListener(z, (h) => r("mountAutoFocus", h)), s.dispatchEvent(y), y.defaultPrevented || (Ot(ge(s), { select: !0 }), F() === c && C(s));
807
+ s.addEventListener(z, (h) => r("mountAutoFocus", h)), s.dispatchEvent(y), y.defaultPrevented || (Ot(ge(s), { select: !0 }), N() === c && _(s));
808
808
  }
809
809
  l(() => {
810
810
  s.removeEventListener(z, (g) => r("mountAutoFocus", g));
@@ -812,16 +812,16 @@ var At = /* @__PURE__ */ x({
812
812
  r("unmountAutoFocus", g);
813
813
  };
814
814
  s.addEventListener(Y, h), s.dispatchEvent(y), s.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
815
- y.defaultPrevented || C(c ?? document.body, { select: !0 }), s.removeEventListener(Y, h), u.remove(f), s.removeAttribute("data-focus-scope-unmounting");
815
+ y.defaultPrevented || _(c ?? document.body, { select: !0 }), s.removeEventListener(Y, h), u.remove(f), s.removeAttribute("data-focus-scope-unmounting");
816
816
  }, 0);
817
817
  });
818
818
  });
819
819
  function v(l) {
820
820
  if (!n.loop && !n.trapped || f.paused) return;
821
- const s = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, c = F();
821
+ const s = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, c = N();
822
822
  if (s && c) {
823
823
  const d = l.currentTarget, [y, h] = wt(d);
824
- y && h ? !l.shiftKey && c === h ? (l.preventDefault(), n.loop && C(y, { select: !0 })) : l.shiftKey && c === y && (l.preventDefault(), n.loop && C(h, { select: !0 })) : c === d && l.preventDefault();
824
+ y && h ? !l.shiftKey && c === h ? (l.preventDefault(), n.loop && _(y, { select: !0 })) : l.shiftKey && c === y && (l.preventDefault(), n.loop && _(h, { select: !0 })) : c === d && l.preventDefault();
825
825
  }
826
826
  }
827
827
  return (l, s) => (X(), Q(A(ye), {
@@ -874,23 +874,23 @@ var At = /* @__PURE__ */ x({
874
874
  export {
875
875
  kt as D,
876
876
  jt as F,
877
- Bt as P,
877
+ ye as P,
878
878
  ft as S,
879
879
  $t as T,
880
- ye as a,
881
- je as b,
882
- Tt as c,
883
- Ve as d,
884
- D as e,
885
- Mt as f,
886
- F as g,
887
- Ft as h,
880
+ Nt as a,
881
+ Ft as b,
882
+ je as c,
883
+ xt as d,
884
+ Bt as e,
885
+ It as f,
886
+ N as g,
887
+ D as h,
888
888
  tt as i,
889
- It as j,
890
- fe as k,
891
- pe as l,
892
- xt as m,
893
- Nt as n,
889
+ U as j,
890
+ Tt as k,
891
+ Mt as l,
892
+ Ve as m,
893
+ fe as n,
894
894
  Lt as r,
895
- U as u
895
+ pe as u
896
896
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as g, ref as E, toRefs as P, renderSlot as _, unref as t, onMounted as A, openBlock as v, createBlock as m, withCtx as f, createVNode as C, mergeProps as y, withModifiers as h, createCommentVNode as $, normalizeProps as T, guardReactiveProps as R, normalizeClass as k } from "vue";
2
- import { b as N, n as S, l as D, g as I, F as L, D as K, j as q, m as V, P as F, h as U, a as W, T as j } from "../../Teleport-7kDHKhp8.js";
3
- import { u as w } from "../../useId-Ck7Lv4Fv.js";
4
- import { g as z } from "../../utils-Dq1MrcNM.js";
5
- import { _ as G } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
- const [O, H] = /* @__PURE__ */ N("DialogRoot");
1
+ import { defineComponent as g, ref as E, toRefs as M, renderSlot as _, unref as t, onMounted as A, openBlock as v, createBlock as m, withCtx as f, createVNode as C, mergeProps as y, withModifiers as $, createCommentVNode as h, normalizeProps as T, guardReactiveProps as R, normalizeClass as k } from "vue";
2
+ import { c as N, a as S, u as D, g as I, F as L, D as K, f as q, d as V, e as P, b as U, P as W, T as z } from "../../Teleport-CWAzY-Xf.js";
3
+ import { u as w } from "../../useId-XX8BALCT.js";
4
+ import { g as G } from "../../utils-BMLu9pAy.js";
5
+ import { _ as H } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const [O, j] = /* @__PURE__ */ N("DialogRoot");
7
7
  var J = /* @__PURE__ */ g({
8
8
  inheritAttrs: !1,
9
9
  __name: "DialogRoot",
@@ -29,8 +29,8 @@ var J = /* @__PURE__ */ g({
29
29
  const a = u, e = S(a, "open", i, {
30
30
  defaultValue: a.defaultOpen,
31
31
  passive: a.open === void 0
32
- }), l = E(), p = E(), { modal: r } = P(a);
33
- return H({
32
+ }), l = E(), p = E(), { modal: r } = M(a);
33
+ return j({
34
34
  open: e,
35
35
  modal: r,
36
36
  openModal: () => {
@@ -126,7 +126,7 @@ var x = /* @__PURE__ */ g({
126
126
  role: "dialog",
127
127
  "aria-describedby": t(e).descriptionId,
128
128
  "aria-labelledby": t(e).titleId,
129
- "data-state": t(z)(t(e).open.value)
129
+ "data-state": t(G)(t(e).open.value)
130
130
  }, r.$attrs, {
131
131
  onDismiss: n[0] || (n[0] = (s) => t(e).onOpenChange(!1)),
132
132
  onEscapeKeyDown: n[1] || (n[1] = (s) => o("escapeKeyDown", s)),
@@ -148,7 +148,7 @@ var x = /* @__PURE__ */ g({
148
148
  _: 3
149
149
  }, 8, ["trapped"]));
150
150
  }
151
- }), M = x, ee = /* @__PURE__ */ g({
151
+ }), F = x, ee = /* @__PURE__ */ g({
152
152
  __name: "DialogContentModal",
153
153
  props: {
154
154
  forceMount: {
@@ -161,7 +161,8 @@ var x = /* @__PURE__ */ g({
161
161
  },
162
162
  disableOutsidePointerEvents: {
163
163
  type: Boolean,
164
- required: !1
164
+ required: !1,
165
+ default: !0
165
166
  },
166
167
  asChild: {
167
168
  type: Boolean,
@@ -182,13 +183,13 @@ var x = /* @__PURE__ */ g({
182
183
  ],
183
184
  setup(u, { emit: i }) {
184
185
  const a = u, o = i, e = O(), l = q(o), { forwardRef: p, currentElement: r } = D();
185
- return V(r), (n, s) => (v(), m(M, y({
186
+ return V(r), (n, s) => (v(), m(F, y({
186
187
  ...a,
187
188
  ...t(l)
188
189
  }, {
189
190
  ref: t(p),
190
191
  "trap-focus": t(e).open.value,
191
- "disable-outside-pointer-events": !0,
192
+ "disable-outside-pointer-events": a.disableOutsidePointerEvents,
192
193
  onCloseAutoFocus: s[0] || (s[0] = (d) => {
193
194
  var c;
194
195
  d.defaultPrevented || (d.preventDefault(), (c = t(e).triggerElement.value) == null || c.focus());
@@ -203,7 +204,7 @@ var x = /* @__PURE__ */ g({
203
204
  }), {
204
205
  default: f(() => [_(n.$slots, "default")]),
205
206
  _: 3
206
- }, 16, ["trap-focus"]));
207
+ }, 16, ["trap-focus", "disable-outside-pointer-events"]));
207
208
  }
208
209
  }), te = ee, oe = /* @__PURE__ */ g({
209
210
  __name: "DialogContentNonModal",
@@ -241,7 +242,7 @@ var x = /* @__PURE__ */ g({
241
242
  const a = u, e = q(i);
242
243
  D();
243
244
  const l = O(), p = E(!1), r = E(!1);
244
- return (n, s) => (v(), m(M, y({
245
+ return (n, s) => (v(), m(F, y({
245
246
  ...a,
246
247
  ...t(e)
247
248
  }, {
@@ -271,7 +272,8 @@ var x = /* @__PURE__ */ g({
271
272
  },
272
273
  disableOutsidePointerEvents: {
273
274
  type: Boolean,
274
- required: !1
275
+ required: !1,
276
+ default: void 0
275
277
  },
276
278
  asChild: {
277
279
  type: Boolean,
@@ -292,7 +294,7 @@ var x = /* @__PURE__ */ g({
292
294
  ],
293
295
  setup(u, { emit: i }) {
294
296
  const a = u, o = i, e = O(), l = q(o), { forwardRef: p } = D();
295
- return (r, n) => (v(), m(t(F), { present: r.forceMount || t(e).open.value }, {
297
+ return (r, n) => (v(), m(t(P), { present: r.forceMount || t(e).open.value }, {
296
298
  default: f(() => [t(e).modal.value ? (v(), m(te, y({
297
299
  key: 0,
298
300
  ref: t(p)
@@ -336,8 +338,12 @@ var x = /* @__PURE__ */ g({
336
338
  "as-child": a.asChild,
337
339
  "data-state": t(i).open.value ? "open" : "closed",
338
340
  style: { "pointer-events": "auto" },
339
- onPointerdown: o[0] || (o[0] = h(() => {
340
- }, ["left", "prevent"]))
341
+ onPointerdown: o[0] || (o[0] = $(() => {
342
+ }, [
343
+ "left",
344
+ "self",
345
+ "prevent"
346
+ ]))
341
347
  }, {
342
348
  default: f(() => [_(a.$slots, "default")]),
343
349
  _: 3
@@ -367,7 +373,7 @@ var x = /* @__PURE__ */ g({
367
373
  const i = O(), { forwardRef: a } = D();
368
374
  return (o, e) => {
369
375
  var l;
370
- return (l = t(i)) != null && l.modal.value ? (v(), m(t(F), {
376
+ return (l = t(i)) != null && l.modal.value ? (v(), m(t(P), {
371
377
  key: 0,
372
378
  present: o.forceMount || t(i).open.value
373
379
  }, {
@@ -380,7 +386,7 @@ var x = /* @__PURE__ */ g({
380
386
  _: 3
381
387
  }, 16, ["as", "as-child"])]),
382
388
  _: 3
383
- }, 8, ["present"])) : $("v-if", !0);
389
+ }, 8, ["present"])) : h("v-if", !0);
384
390
  };
385
391
  }
386
392
  }), ue = ie, de = /* @__PURE__ */ g({
@@ -405,7 +411,7 @@ var x = /* @__PURE__ */ g({
405
411
  },
406
412
  setup(u) {
407
413
  const i = u;
408
- return (a, o) => (v(), m(t(j), T(R(i)), {
414
+ return (a, o) => (v(), m(t(z), T(R(i)), {
409
415
  default: f(() => [_(a.$slots, "default")]),
410
416
  _: 3
411
417
  }, 16));
@@ -451,7 +457,7 @@ const fe = /* @__PURE__ */ g({
451
457
  _: 3
452
458
  }, 8, ["open"]));
453
459
  }
454
- }), ye = /* @__PURE__ */ G(fe, [["__scopeId", "data-v-bef96a30"]]);
460
+ }), ye = /* @__PURE__ */ H(fe, [["__scopeId", "data-v-bef96a30"]]);
455
461
  export {
456
462
  ye as default
457
463
  };
@@ -1,4 +1,4 @@
1
- import { b as e } from "../../index-DR3K_qw_.js";
1
+ import { m as e } from "../../index-BqLIloNy.js";
2
2
  import { createSingletonComposable as o } from "../internal/createSingletonComposable.js";
3
3
  const t = o(
4
4
  e,
@@ -1,4 +1,4 @@
1
- import { d as r } from "../../index-DR3K_qw_.js";
1
+ import { n as r } from "../../index-BqLIloNy.js";
2
2
  import { createSingletonComposable as e } from "../internal/createSingletonComposable.js";
3
3
  const o = e(
4
4
  r,
@@ -1,4 +1,4 @@
1
- import { e as t } from "../../index-DR3K_qw_.js";
1
+ import { o as t } from "../../index-BqLIloNy.js";
2
2
  import { createInstanceComposable as n } from "../internal/createInstanceComposable.js";
3
3
  const o = n(
4
4
  (e) => t.create(e),
@@ -1,4 +1,4 @@
1
- import { l as o } from "../../index-DR3K_qw_.js";
1
+ import { p as o } from "../../index-BqLIloNy.js";
2
2
  import { createInstanceComposable as t } from "../internal/createInstanceComposable.js";
3
3
  const r = t(
4
4
  (e) => {
@@ -1,4 +1,4 @@
1
- import { m as t } from "../../index-DR3K_qw_.js";
1
+ import { q as t } from "../../index-BqLIloNy.js";
2
2
  import { createSingletonComposable as e } from "../internal/createSingletonComposable.js";
3
3
  const o = e(
4
4
  t,
@@ -1,4 +1,4 @@
1
- import { L as t } from "../../index-DR3K_qw_.js";
1
+ import { L as t } from "../../index-BqLIloNy.js";
2
2
  import { createSingletonComposable as e } from "../internal/createSingletonComposable.js";
3
3
  const o = e(
4
4
  t,
@@ -1,4 +1,4 @@
1
- import { o as r } from "../../index-DR3K_qw_.js";
1
+ import { r } from "../../index-BqLIloNy.js";
2
2
  import { createInstanceComposable as s } from "../internal/createInstanceComposable.js";
3
3
  const o = s(
4
4
  (e) => {
@@ -1,5 +1,5 @@
1
1
  import { getCurrentScope as o, onScopeDispose as r, computed as n } from "vue";
2
- import { p as a } from "../../index-DR3K_qw_.js";
2
+ import { s as a } from "../../index-BqLIloNy.js";
3
3
  function s(t) {
4
4
  const e = a.create(t);
5
5
  return o() && r(() => e.destroy()), {
@@ -1,4 +1,4 @@
1
- import { q as a } from "../../index-DR3K_qw_.js";
1
+ import { t as a } from "../../index-BqLIloNy.js";
2
2
  import { createInstanceComposable as t } from "../internal/createInstanceComposable.js";
3
3
  const s = t(
4
4
  (e) => {
@@ -1,4 +1,4 @@
1
- import { S as r } from "../../index-DR3K_qw_.js";
1
+ import { u as r } from "../../index-BqLIloNy.js";
2
2
  import { createInstanceComposable as o } from "../internal/createInstanceComposable.js";
3
3
  const e = o(
4
4
  () => r.create(),
@@ -1,5 +1,5 @@
1
1
  import { shallowRef as r, onScopeDispose as i, computed as a } from "vue";
2
- import { v as l } from "../../index-DR3K_qw_.js";
2
+ import { v as l } from "../../index-BqLIloNy.js";
3
3
  function d(t = "default") {
4
4
  const o = l(t), e = o.getSnapshot(), s = r(e), n = o.subscribe(() => {
5
5
  s.value = o.getSnapshot();