@bikdotai/bik-component-library 0.0.807-beta.2 → 0.0.808-beta.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 (1549) hide show
  1. package/dist/cjs/assets/icons/AiEdit.svg.js +1 -1
  2. package/dist/cjs/assets/icons/AiEdit.svg.js.map +1 -1
  3. package/dist/cjs/assets/icons/Ai_event_generating.svg.js +1 -1
  4. package/dist/cjs/assets/icons/Ai_event_generating.svg.js.map +1 -1
  5. package/dist/cjs/assets/icons/Bik_logo.svg.js +1 -1
  6. package/dist/cjs/assets/icons/Bik_logo.svg.js.map +1 -1
  7. package/dist/cjs/assets/icons/ChartBar.svg.js +1 -1
  8. package/dist/cjs/assets/icons/ChartBar.svg.js.map +1 -1
  9. package/dist/cjs/assets/icons/ChartPie.svg.js +1 -1
  10. package/dist/cjs/assets/icons/ChartPie.svg.js.map +1 -1
  11. package/dist/cjs/assets/icons/CheckSquareOffset.svg.js +1 -1
  12. package/dist/cjs/assets/icons/CheckSquareOffset.svg.js.map +1 -1
  13. package/dist/cjs/assets/icons/HelpIcon.svg.js +1 -1
  14. package/dist/cjs/assets/icons/HelpIcon.svg.js.map +1 -1
  15. package/dist/cjs/assets/icons/Idea.svg.js +1 -1
  16. package/dist/cjs/assets/icons/Idea.svg.js.map +1 -1
  17. package/dist/cjs/assets/icons/OnboardingLogo.js +1 -1
  18. package/dist/cjs/assets/icons/OnboardingLogo.js.map +1 -1
  19. package/dist/cjs/assets/icons/RCS_PDF.svg.js +1 -1
  20. package/dist/cjs/assets/icons/RCS_PDF.svg.js.map +1 -1
  21. package/dist/cjs/assets/icons/RedirectToNew.svg.js +1 -1
  22. package/dist/cjs/assets/icons/RedirectToNew.svg.js.map +1 -1
  23. package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +1 -1
  24. package/dist/cjs/assets/icons/WhiteStarFilled.svg.js.map +1 -1
  25. package/dist/cjs/assets/icons/actionButton.svg.js +1 -1
  26. package/dist/cjs/assets/icons/actionButton.svg.js.map +1 -1
  27. package/dist/cjs/assets/icons/aiContentIcon.svg.js +1 -1
  28. package/dist/cjs/assets/icons/aiContentIcon.svg.js.map +1 -1
  29. package/dist/cjs/assets/icons/alarm.svg.js +1 -1
  30. package/dist/cjs/assets/icons/alarm.svg.js.map +1 -1
  31. package/dist/cjs/assets/icons/alert.svg.js +1 -1
  32. package/dist/cjs/assets/icons/alert.svg.js.map +1 -1
  33. package/dist/cjs/assets/icons/alert_triangle.svg.js +1 -1
  34. package/dist/cjs/assets/icons/alert_triangle.svg.js.map +1 -1
  35. package/dist/cjs/assets/icons/arrow_back.svg.js +1 -1
  36. package/dist/cjs/assets/icons/arrow_back.svg.js.map +1 -1
  37. package/dist/cjs/assets/icons/arrow_down.svg.js +1 -1
  38. package/dist/cjs/assets/icons/arrow_down.svg.js.map +1 -1
  39. package/dist/cjs/assets/icons/arrow_left.svg.js +1 -1
  40. package/dist/cjs/assets/icons/arrow_left.svg.js.map +1 -1
  41. package/dist/cjs/assets/icons/arrow_up.svg.js +1 -1
  42. package/dist/cjs/assets/icons/arrow_up.svg.js.map +1 -1
  43. package/dist/cjs/assets/icons/back_icon.svg.js +1 -1
  44. package/dist/cjs/assets/icons/back_icon.svg.js.map +1 -1
  45. package/dist/cjs/assets/icons/bik_ai_stars_icon.svg.js +1 -1
  46. package/dist/cjs/assets/icons/bik_ai_stars_icon.svg.js.map +1 -1
  47. package/dist/cjs/assets/icons/bik_livechat.svg.js +1 -1
  48. package/dist/cjs/assets/icons/bik_livechat.svg.js.map +1 -1
  49. package/dist/cjs/assets/icons/bold.svg.js +1 -1
  50. package/dist/cjs/assets/icons/bold.svg.js.map +1 -1
  51. package/dist/cjs/assets/icons/box.svg.js +1 -1
  52. package/dist/cjs/assets/icons/box.svg.js.map +1 -1
  53. package/dist/cjs/assets/icons/boxV2.svg.js +1 -1
  54. package/dist/cjs/assets/icons/boxV2.svg.js.map +1 -1
  55. package/dist/cjs/assets/icons/box_round.svg.js +1 -1
  56. package/dist/cjs/assets/icons/box_round.svg.js.map +1 -1
  57. package/dist/cjs/assets/icons/box_search.svg.js +1 -1
  58. package/dist/cjs/assets/icons/box_search.svg.js.map +1 -1
  59. package/dist/cjs/assets/icons/brand_home.svg.js +1 -1
  60. package/dist/cjs/assets/icons/brand_home.svg.js.map +1 -1
  61. package/dist/cjs/assets/icons/broken_media_image.svg.js +1 -1
  62. package/dist/cjs/assets/icons/broken_media_image.svg.js.map +1 -1
  63. package/dist/cjs/assets/icons/calendar.svg.js +1 -1
  64. package/dist/cjs/assets/icons/calendar.svg.js.map +1 -1
  65. package/dist/cjs/assets/icons/card_footer_arraw.svg.js +1 -1
  66. package/dist/cjs/assets/icons/card_footer_arraw.svg.js.map +1 -1
  67. package/dist/cjs/assets/icons/chat-channel.svg.js +1 -1
  68. package/dist/cjs/assets/icons/chat-channel.svg.js.map +1 -1
  69. package/dist/cjs/assets/icons/chat.svg.js +1 -1
  70. package/dist/cjs/assets/icons/chat.svg.js.map +1 -1
  71. package/dist/cjs/assets/icons/check.svg.js +1 -1
  72. package/dist/cjs/assets/icons/check.svg.js.map +1 -1
  73. package/dist/cjs/assets/icons/checkCircle.svg.js +1 -1
  74. package/dist/cjs/assets/icons/checkCircle.svg.js.map +1 -1
  75. package/dist/cjs/assets/icons/checklistIcon.svg.js +1 -1
  76. package/dist/cjs/assets/icons/checklistIcon.svg.js.map +1 -1
  77. package/dist/cjs/assets/icons/chevronDown.svg.js +1 -1
  78. package/dist/cjs/assets/icons/chevronDown.svg.js.map +1 -1
  79. package/dist/cjs/assets/icons/chevronDownOutline.svg.js +1 -1
  80. package/dist/cjs/assets/icons/chevronDownOutline.svg.js.map +1 -1
  81. package/dist/cjs/assets/icons/chevronLeft.svg.js +1 -1
  82. package/dist/cjs/assets/icons/chevronLeft.svg.js.map +1 -1
  83. package/dist/cjs/assets/icons/chevronLeft2.svg.js +1 -1
  84. package/dist/cjs/assets/icons/chevronLeft2.svg.js.map +1 -1
  85. package/dist/cjs/assets/icons/chevronRight.svg.js +1 -1
  86. package/dist/cjs/assets/icons/chevronRight.svg.js.map +1 -1
  87. package/dist/cjs/assets/icons/chevronRight2.svg.js +1 -1
  88. package/dist/cjs/assets/icons/chevronRight2.svg.js.map +1 -1
  89. package/dist/cjs/assets/icons/chevronRightAlt.svg.js +1 -1
  90. package/dist/cjs/assets/icons/chevronRightAlt.svg.js.map +1 -1
  91. package/dist/cjs/assets/icons/chevronUpOutline.svg.js +1 -1
  92. package/dist/cjs/assets/icons/chevronUpOutline.svg.js.map +1 -1
  93. package/dist/cjs/assets/icons/circular-cross-icon.svg.js +1 -1
  94. package/dist/cjs/assets/icons/circular-cross-icon.svg.js.map +1 -1
  95. package/dist/cjs/assets/icons/click.svg.js +1 -1
  96. package/dist/cjs/assets/icons/click.svg.js.map +1 -1
  97. package/dist/cjs/assets/icons/clock.svg.js +1 -1
  98. package/dist/cjs/assets/icons/clock.svg.js.map +1 -1
  99. package/dist/cjs/assets/icons/copy-code-icon.svg.js +1 -1
  100. package/dist/cjs/assets/icons/copy-code-icon.svg.js.map +1 -1
  101. package/dist/cjs/assets/icons/cross.svg.js +1 -1
  102. package/dist/cjs/assets/icons/cross.svg.js.map +1 -1
  103. package/dist/cjs/assets/icons/cubeIcon.svg.js +1 -1
  104. package/dist/cjs/assets/icons/cubeIcon.svg.js.map +1 -1
  105. package/dist/cjs/assets/icons/cursor.svg.js +1 -1
  106. package/dist/cjs/assets/icons/cursor.svg.js.map +1 -1
  107. package/dist/cjs/assets/icons/delete.svg.js +1 -1
  108. package/dist/cjs/assets/icons/delete.svg.js.map +1 -1
  109. package/dist/cjs/assets/icons/desktop_custom.svg.js +1 -1
  110. package/dist/cjs/assets/icons/desktop_custom.svg.js.map +1 -1
  111. package/dist/cjs/assets/icons/document_pdf.svg.js +1 -1
  112. package/dist/cjs/assets/icons/document_pdf.svg.js.map +1 -1
  113. package/dist/cjs/assets/icons/drag_handle.svg.js +1 -1
  114. package/dist/cjs/assets/icons/drag_handle.svg.js.map +1 -1
  115. package/dist/cjs/assets/icons/edit.svg.js +1 -1
  116. package/dist/cjs/assets/icons/edit.svg.js.map +1 -1
  117. package/dist/cjs/assets/icons/email-channel.svg.js +1 -1
  118. package/dist/cjs/assets/icons/email-channel.svg.js.map +1 -1
  119. package/dist/cjs/assets/icons/emoji.svg.js +1 -1
  120. package/dist/cjs/assets/icons/emoji.svg.js.map +1 -1
  121. package/dist/cjs/assets/icons/errorIcon.svg.js +1 -1
  122. package/dist/cjs/assets/icons/errorIcon.svg.js.map +1 -1
  123. package/dist/cjs/assets/icons/errorInfo.svg.js +1 -1
  124. package/dist/cjs/assets/icons/errorInfo.svg.js.map +1 -1
  125. package/dist/cjs/assets/icons/expressionless_emoji.svg.js +1 -1
  126. package/dist/cjs/assets/icons/expressionless_emoji.svg.js.map +1 -1
  127. package/dist/cjs/assets/icons/facebook_channel.svg.js +1 -1
  128. package/dist/cjs/assets/icons/facebook_channel.svg.js.map +1 -1
  129. package/dist/cjs/assets/icons/file.svg.js +1 -1
  130. package/dist/cjs/assets/icons/file.svg.js.map +1 -1
  131. package/dist/cjs/assets/icons/filePdf.svg.js +1 -1
  132. package/dist/cjs/assets/icons/filePdf.svg.js.map +1 -1
  133. package/dist/cjs/assets/icons/gift_icon.svg.js +1 -1
  134. package/dist/cjs/assets/icons/gift_icon.svg.js.map +1 -1
  135. package/dist/cjs/assets/icons/gmail.svg.js +1 -1
  136. package/dist/cjs/assets/icons/gmail.svg.js.map +1 -1
  137. package/dist/cjs/assets/icons/graph.svg.js +1 -1
  138. package/dist/cjs/assets/icons/graph.svg.js.map +1 -1
  139. package/dist/cjs/assets/icons/grid.svg.js +1 -1
  140. package/dist/cjs/assets/icons/grid.svg.js.map +1 -1
  141. package/dist/cjs/assets/icons/halfRectangle.svg.js +1 -1
  142. package/dist/cjs/assets/icons/halfRectangle.svg.js.map +1 -1
  143. package/dist/cjs/assets/icons/help.svg.js +1 -1
  144. package/dist/cjs/assets/icons/help.svg.js.map +1 -1
  145. package/dist/cjs/assets/icons/home.svg.js +1 -1
  146. package/dist/cjs/assets/icons/home.svg.js.map +1 -1
  147. package/dist/cjs/assets/icons/horizontal_dots.svg.js +1 -1
  148. package/dist/cjs/assets/icons/horizontal_dots.svg.js.map +1 -1
  149. package/dist/cjs/assets/icons/hover_home.svg.js +1 -1
  150. package/dist/cjs/assets/icons/hover_home.svg.js.map +1 -1
  151. package/dist/cjs/assets/icons/image.svg.js +1 -1
  152. package/dist/cjs/assets/icons/image.svg.js.map +1 -1
  153. package/dist/cjs/assets/icons/info.svg.js +1 -1
  154. package/dist/cjs/assets/icons/info.svg.js.map +1 -1
  155. package/dist/cjs/assets/icons/instagram-channel.svg.js +1 -1
  156. package/dist/cjs/assets/icons/instagram-channel.svg.js.map +1 -1
  157. package/dist/cjs/assets/icons/instagram.svg.js +1 -1
  158. package/dist/cjs/assets/icons/instagram.svg.js.map +1 -1
  159. package/dist/cjs/assets/icons/italic.svg.js +1 -1
  160. package/dist/cjs/assets/icons/italic.svg.js.map +1 -1
  161. package/dist/cjs/assets/icons/list.svg.js +1 -1
  162. package/dist/cjs/assets/icons/list.svg.js.map +1 -1
  163. package/dist/cjs/assets/icons/locked.svg.js +1 -1
  164. package/dist/cjs/assets/icons/locked.svg.js.map +1 -1
  165. package/dist/cjs/assets/icons/log_out.svg.js +1 -1
  166. package/dist/cjs/assets/icons/log_out.svg.js.map +1 -1
  167. package/dist/cjs/assets/icons/lto_icon.svg.js +1 -1
  168. package/dist/cjs/assets/icons/lto_icon.svg.js.map +1 -1
  169. package/dist/cjs/assets/icons/magic-line.svg.js +1 -1
  170. package/dist/cjs/assets/icons/magic-line.svg.js.map +1 -1
  171. package/dist/cjs/assets/icons/maximize.svg.js +1 -1
  172. package/dist/cjs/assets/icons/maximize.svg.js.map +1 -1
  173. package/dist/cjs/assets/icons/mobile_custom.svg.js +1 -1
  174. package/dist/cjs/assets/icons/mobile_custom.svg.js.map +1 -1
  175. package/dist/cjs/assets/icons/more_vertical.svg.js +1 -1
  176. package/dist/cjs/assets/icons/more_vertical.svg.js.map +1 -1
  177. package/dist/cjs/assets/icons/openai.svg.js +1 -1
  178. package/dist/cjs/assets/icons/openai.svg.js.map +1 -1
  179. package/dist/cjs/assets/icons/paperclip.svg.js +1 -1
  180. package/dist/cjs/assets/icons/paperclip.svg.js.map +1 -1
  181. package/dist/cjs/assets/icons/percentage_icon.svg.js +1 -1
  182. package/dist/cjs/assets/icons/percentage_icon.svg.js.map +1 -1
  183. package/dist/cjs/assets/icons/phone.svg.js +1 -1
  184. package/dist/cjs/assets/icons/phone.svg.js.map +1 -1
  185. package/dist/cjs/assets/icons/phone_round.svg.js +1 -1
  186. package/dist/cjs/assets/icons/phone_round.svg.js.map +1 -1
  187. package/dist/cjs/assets/icons/play.svg.js +1 -1
  188. package/dist/cjs/assets/icons/play.svg.js.map +1 -1
  189. package/dist/cjs/assets/icons/plus.svg.js +1 -1
  190. package/dist/cjs/assets/icons/plus.svg.js.map +1 -1
  191. package/dist/cjs/assets/icons/pointer.svg.js +1 -1
  192. package/dist/cjs/assets/icons/pointer.svg.js.map +1 -1
  193. package/dist/cjs/assets/icons/profile.svg.js +1 -1
  194. package/dist/cjs/assets/icons/profile.svg.js.map +1 -1
  195. package/dist/cjs/assets/icons/qrb.svg.js +1 -1
  196. package/dist/cjs/assets/icons/qrb.svg.js.map +1 -1
  197. package/dist/cjs/assets/icons/question-mark.svg.js +1 -1
  198. package/dist/cjs/assets/icons/question-mark.svg.js.map +1 -1
  199. package/dist/cjs/assets/icons/quotes.svg.js +1 -1
  200. package/dist/cjs/assets/icons/quotes.svg.js.map +1 -1
  201. package/dist/cjs/assets/icons/redirect.svg.js +1 -1
  202. package/dist/cjs/assets/icons/redirect.svg.js.map +1 -1
  203. package/dist/cjs/assets/icons/refresh-purple.svg.js +1 -1
  204. package/dist/cjs/assets/icons/refresh-purple.svg.js.map +1 -1
  205. package/dist/cjs/assets/icons/refresh.svg.js +1 -1
  206. package/dist/cjs/assets/icons/refresh.svg.js.map +1 -1
  207. package/dist/cjs/assets/icons/retry.svg.js +1 -1
  208. package/dist/cjs/assets/icons/retry.svg.js.map +1 -1
  209. package/dist/cjs/assets/icons/retryIcon.svg.js +1 -1
  210. package/dist/cjs/assets/icons/retryIcon.svg.js.map +1 -1
  211. package/dist/cjs/assets/icons/rewind.svg.js +1 -1
  212. package/dist/cjs/assets/icons/rewind.svg.js.map +1 -1
  213. package/dist/cjs/assets/icons/sad_emoji.svg.js +1 -1
  214. package/dist/cjs/assets/icons/sad_emoji.svg.js.map +1 -1
  215. package/dist/cjs/assets/icons/search.svg.js +1 -1
  216. package/dist/cjs/assets/icons/search.svg.js.map +1 -1
  217. package/dist/cjs/assets/icons/searchIcon.svg.js +1 -1
  218. package/dist/cjs/assets/icons/searchIcon.svg.js.map +1 -1
  219. package/dist/cjs/assets/icons/send.svg.js +1 -1
  220. package/dist/cjs/assets/icons/send.svg.js.map +1 -1
  221. package/dist/cjs/assets/icons/send_template.svg.js +1 -1
  222. package/dist/cjs/assets/icons/send_template.svg.js.map +1 -1
  223. package/dist/cjs/assets/icons/shipping_icon.svg.js +1 -1
  224. package/dist/cjs/assets/icons/shipping_icon.svg.js.map +1 -1
  225. package/dist/cjs/assets/icons/similar.svg.js +1 -1
  226. package/dist/cjs/assets/icons/similar.svg.js.map +1 -1
  227. package/dist/cjs/assets/icons/smile_emoji.svg.js +1 -1
  228. package/dist/cjs/assets/icons/smile_emoji.svg.js.map +1 -1
  229. package/dist/cjs/assets/icons/smiley_emoji.svg.js +1 -1
  230. package/dist/cjs/assets/icons/smiley_emoji.svg.js.map +1 -1
  231. package/dist/cjs/assets/icons/sparkle.svg.js +1 -1
  232. package/dist/cjs/assets/icons/sparkle.svg.js.map +1 -1
  233. package/dist/cjs/assets/icons/speedometer.svg.js +1 -1
  234. package/dist/cjs/assets/icons/speedometer.svg.js.map +1 -1
  235. package/dist/cjs/assets/icons/starEmpty.svg.js +1 -1
  236. package/dist/cjs/assets/icons/starEmpty.svg.js.map +1 -1
  237. package/dist/cjs/assets/icons/starFilled.svg.js +1 -1
  238. package/dist/cjs/assets/icons/starFilled.svg.js.map +1 -1
  239. package/dist/cjs/assets/icons/starFilledV2.svg.js +1 -1
  240. package/dist/cjs/assets/icons/starFilledV2.svg.js.map +1 -1
  241. package/dist/cjs/assets/icons/state_icon.svg.js +1 -1
  242. package/dist/cjs/assets/icons/state_icon.svg.js.map +1 -1
  243. package/dist/cjs/assets/icons/strikeThrough.svg.js +1 -1
  244. package/dist/cjs/assets/icons/strikeThrough.svg.js.map +1 -1
  245. package/dist/cjs/assets/icons/sub_category.svg.js +1 -1
  246. package/dist/cjs/assets/icons/sub_category.svg.js.map +1 -1
  247. package/dist/cjs/assets/icons/successIcon.svg.js +1 -1
  248. package/dist/cjs/assets/icons/successIcon.svg.js.map +1 -1
  249. package/dist/cjs/assets/icons/sync.svg.js +1 -1
  250. package/dist/cjs/assets/icons/sync.svg.js.map +1 -1
  251. package/dist/cjs/assets/icons/task.svg.js +1 -1
  252. package/dist/cjs/assets/icons/task.svg.js.map +1 -1
  253. package/dist/cjs/assets/icons/text_t9.svg.js +1 -1
  254. package/dist/cjs/assets/icons/text_t9.svg.js.map +1 -1
  255. package/dist/cjs/assets/icons/thumb-down-line.svg.js +1 -1
  256. package/dist/cjs/assets/icons/thumb-down-line.svg.js.map +1 -1
  257. package/dist/cjs/assets/icons/thumb-up-line.svg.js +1 -1
  258. package/dist/cjs/assets/icons/thumb-up-line.svg.js.map +1 -1
  259. package/dist/cjs/assets/icons/tick.svg.js +1 -1
  260. package/dist/cjs/assets/icons/tick.svg.js.map +1 -1
  261. package/dist/cjs/assets/icons/tick_double.svg.js +1 -1
  262. package/dist/cjs/assets/icons/tick_double.svg.js.map +1 -1
  263. package/dist/cjs/assets/icons/triangle_error.svg.js +1 -1
  264. package/dist/cjs/assets/icons/triangle_error.svg.js.map +1 -1
  265. package/dist/cjs/assets/icons/undo.svg.js +1 -1
  266. package/dist/cjs/assets/icons/undo.svg.js.map +1 -1
  267. package/dist/cjs/assets/icons/union.svg.js +1 -1
  268. package/dist/cjs/assets/icons/union.svg.js.map +1 -1
  269. package/dist/cjs/assets/icons/upload.svg.js +1 -1
  270. package/dist/cjs/assets/icons/upload.svg.js.map +1 -1
  271. package/dist/cjs/assets/icons/user_icon.svg.js +1 -1
  272. package/dist/cjs/assets/icons/user_icon.svg.js.map +1 -1
  273. package/dist/cjs/assets/icons/vertical_dots.svg.js +1 -1
  274. package/dist/cjs/assets/icons/vertical_dots.svg.js.map +1 -1
  275. package/dist/cjs/assets/icons/videoRecorder.svg.js +1 -1
  276. package/dist/cjs/assets/icons/videoRecorder.svg.js.map +1 -1
  277. package/dist/cjs/assets/icons/video_camcorder.svg.js +1 -1
  278. package/dist/cjs/assets/icons/video_camcorder.svg.js.map +1 -1
  279. package/dist/cjs/assets/icons/warning.svg.js +1 -1
  280. package/dist/cjs/assets/icons/warning.svg.js.map +1 -1
  281. package/dist/cjs/assets/icons/warningIcon.svg.js +1 -1
  282. package/dist/cjs/assets/icons/warningIcon.svg.js.map +1 -1
  283. package/dist/cjs/assets/icons/website.svg.js +1 -1
  284. package/dist/cjs/assets/icons/website.svg.js.map +1 -1
  285. package/dist/cjs/assets/icons/whatsNew.svg.js +1 -1
  286. package/dist/cjs/assets/icons/whatsNew.svg.js.map +1 -1
  287. package/dist/cjs/assets/icons/whatsapp-channel.svg.js +1 -1
  288. package/dist/cjs/assets/icons/whatsapp-channel.svg.js.map +1 -1
  289. package/dist/cjs/assets/icons/whatsapp_color.svg.js +1 -1
  290. package/dist/cjs/assets/icons/whatsapp_color.svg.js.map +1 -1
  291. package/dist/cjs/components/BikGiftedChat/GiftedChat/Day.js +1 -1
  292. package/dist/cjs/components/BikGiftedChat/GiftedChat/Day.js.map +1 -1
  293. package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
  294. package/dist/cjs/components/BikGiftedChat/GiftedChat/scrollHooks.js +1 -1
  295. package/dist/cjs/components/BikGiftedChat/GiftedChat/scrollHooks.js.map +1 -1
  296. package/dist/cjs/components/InfiniteScroll/InfiniteScroll.js +1 -1
  297. package/dist/cjs/components/InfiniteScroll/InfiniteScroll.js.map +1 -1
  298. package/dist/cjs/components/ProgressChecklist/MultiChecklistItem.js +1 -1
  299. package/dist/cjs/components/ProgressChecklist/MultiChecklistItem.js.map +1 -1
  300. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.js +1 -1
  301. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.js.map +1 -1
  302. package/dist/cjs/components/ProgressChecklist/ProgressStepper.js +1 -1
  303. package/dist/cjs/components/ProgressChecklist/ProgressStepper.js.map +1 -1
  304. package/dist/cjs/components/ProgressChecklist/SimpleChecklistItem.js +1 -1
  305. package/dist/cjs/components/ProgressChecklist/SimpleChecklistItem.js.map +1 -1
  306. package/dist/cjs/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  307. package/dist/cjs/components/QueryBuilder/Filters/CustomField/components/CustomField.js.map +1 -1
  308. package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  309. package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js.map +1 -1
  310. package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  311. package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js.map +1 -1
  312. package/dist/cjs/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  313. package/dist/cjs/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js.map +1 -1
  314. package/dist/cjs/components/QueryBuilder/QueryBuilder.js +1 -1
  315. package/dist/cjs/components/QueryBuilder/QueryBuilder.js.map +1 -1
  316. package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  317. package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js.map +1 -1
  318. package/dist/cjs/components/QueryBuilder/components/AddNodeButton.js +1 -1
  319. package/dist/cjs/components/QueryBuilder/components/AddNodeButton.js.map +1 -1
  320. package/dist/cjs/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
  321. package/dist/cjs/components/QueryBuilder/components/AllowedListDropdown.js.map +1 -1
  322. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
  323. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js.map +1 -1
  324. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
  325. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FreeText.js.map +1 -1
  326. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +1 -1
  327. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js.map +1 -1
  328. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.js.map +1 -1
  329. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  330. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js.map +1 -1
  331. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  332. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js.map +1 -1
  333. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
  334. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js.map +1 -1
  335. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
  336. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js.map +1 -1
  337. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
  338. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js.map +1 -1
  339. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  340. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js.map +1 -1
  341. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
  342. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleDate.js.map +1 -1
  343. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  344. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js.map +1 -1
  345. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
  346. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js.map +1 -1
  347. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
  348. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoDate.js.map +1 -1
  349. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
  350. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js.map +1 -1
  351. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  352. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js.map +1 -1
  353. package/dist/cjs/components/QueryBuilder/components/DeleteButton.js +1 -1
  354. package/dist/cjs/components/QueryBuilder/components/DeleteButton.js.map +1 -1
  355. package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js +1 -1
  356. package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js.map +1 -1
  357. package/dist/cjs/components/QueryBuilder/components/InputLoader.js +4 -4
  358. package/dist/cjs/components/QueryBuilder/components/InputLoader.js.map +1 -1
  359. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
  360. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js.map +1 -1
  361. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
  362. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js.map +1 -1
  363. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
  364. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js.map +1 -1
  365. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js.map +1 -1
  366. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  367. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js.map +1 -1
  368. package/dist/cjs/components/QueryBuilder/hooks/useQueryBuilderCache.js +1 -1
  369. package/dist/cjs/components/QueryBuilder/hooks/useQueryBuilderCache.js.map +1 -1
  370. package/dist/cjs/components/SearchFilter/components/DatePickerButton.js.map +1 -1
  371. package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js.map +1 -1
  372. package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  373. package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js.map +1 -1
  374. package/dist/cjs/components/SearchFilter/index.js +1 -1
  375. package/dist/cjs/components/SearchFilter/index.js.map +1 -1
  376. package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
  377. package/dist/cjs/components/TablePagination/TablePagination.js.map +1 -1
  378. package/dist/cjs/components/TablePagination/TablePagination.styled.js.map +1 -1
  379. package/dist/cjs/components/WhatsAppTextEditor/AIRephrase.styled.js.map +1 -1
  380. package/dist/cjs/components/WhatsAppTextEditor/AIRephraseButton.js +1 -1
  381. package/dist/cjs/components/WhatsAppTextEditor/AIRephraseButton.js.map +1 -1
  382. package/dist/cjs/components/WhatsAppTextEditor/BorderAnimation.js +1 -1
  383. package/dist/cjs/components/WhatsAppTextEditor/BorderAnimation.js.map +1 -1
  384. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
  385. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js.map +1 -1
  386. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +1 -1
  387. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js.map +1 -1
  388. package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
  389. package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js.map +1 -1
  390. package/dist/cjs/components/accordion/Accordion.js.map +1 -1
  391. package/dist/cjs/components/action-button/ActionButton.styled.js.map +1 -1
  392. package/dist/cjs/components/action-button/ActionButtons.js +1 -1
  393. package/dist/cjs/components/action-button/ActionButtons.js.map +1 -1
  394. package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
  395. package/dist/cjs/components/add-variableV2/AddVariableV2.js.map +1 -1
  396. package/dist/cjs/components/ai-modals/ActivateBikAI.js +1 -1
  397. package/dist/cjs/components/ai-modals/ActivateBikAI.js.map +1 -1
  398. package/dist/cjs/components/ai-modals/AiCreditsExhausted.js +1 -1
  399. package/dist/cjs/components/ai-modals/AiCreditsExhausted.js.map +1 -1
  400. package/dist/cjs/components/ai-modals/AiCreditsLow.js +1 -1
  401. package/dist/cjs/components/ai-modals/AiCreditsLow.js.map +1 -1
  402. package/dist/cjs/components/ai-modals/AiSyncProgress.js +1 -1
  403. package/dist/cjs/components/ai-modals/AiSyncProgress.js.map +1 -1
  404. package/dist/cjs/components/analytics-card/AnalyticsCard.styled.js.map +1 -1
  405. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  406. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js.map +1 -1
  407. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
  408. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js.map +1 -1
  409. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
  410. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js.map +1 -1
  411. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  412. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js.map +1 -1
  413. package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js.map +1 -1
  414. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js.map +1 -1
  415. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +1 -1
  416. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js.map +1 -1
  417. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
  418. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js.map +1 -1
  419. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +1 -1
  420. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js.map +1 -1
  421. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  422. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js.map +1 -1
  423. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  424. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js.map +1 -1
  425. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
  426. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js.map +1 -1
  427. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
  428. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js.map +1 -1
  429. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js.map +1 -1
  430. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  431. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js.map +1 -1
  432. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +1 -1
  433. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js.map +1 -1
  434. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
  435. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js.map +1 -1
  436. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -1
  437. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js.map +1 -1
  438. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -1
  439. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js.map +1 -1
  440. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -1
  441. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js.map +1 -1
  442. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +1 -1
  443. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js.map +1 -1
  444. package/dist/cjs/components/bik-chatbot/components/AIChat.js +1 -1
  445. package/dist/cjs/components/bik-chatbot/components/AIChat.js.map +1 -1
  446. package/dist/cjs/components/bik-chatbot/components/BIKChatbot.js +1 -1
  447. package/dist/cjs/components/bik-chatbot/components/BIKChatbot.js.map +1 -1
  448. package/dist/cjs/components/bik-chatbot/components/ChatLoadingState.js +1 -1
  449. package/dist/cjs/components/bik-chatbot/components/ChatLoadingState.js.map +1 -1
  450. package/dist/cjs/components/bik-chatbot/components/ChatWindow.js +1 -1
  451. package/dist/cjs/components/bik-chatbot/components/ChatWindow.js.map +1 -1
  452. package/dist/cjs/components/bik-chatbot/components/ThinkingIndicator.js.map +1 -1
  453. package/dist/cjs/components/bik-chatbot/contexts/AIContext.js +1 -1
  454. package/dist/cjs/components/bik-chatbot/contexts/AIContext.js.map +1 -1
  455. package/dist/cjs/components/bik-chatbot/services/aiService.js +1 -1
  456. package/dist/cjs/components/bik-chatbot/services/aiService.js.map +1 -1
  457. package/dist/cjs/components/bik-chatbot/services/callToChatbot.js +1 -1
  458. package/dist/cjs/components/bik-chatbot/services/callToChatbot.js.map +1 -1
  459. package/dist/cjs/components/bik-chatbot/services/db.js.map +1 -1
  460. package/dist/cjs/components/bik-chatbot/services/useAIChat.js +1 -1
  461. package/dist/cjs/components/bik-chatbot/services/useAIChat.js.map +1 -1
  462. package/dist/cjs/components/bik-chatbot/utils/guardrails.js.map +1 -1
  463. package/dist/cjs/components/bik-layout/BikLayout.js.map +1 -1
  464. package/dist/cjs/components/bik-layout/BikSidebar.js +1 -1
  465. package/dist/cjs/components/bik-layout/BikSidebar.js.map +1 -1
  466. package/dist/cjs/components/bik-layout/SimpleSidebar.js.map +1 -1
  467. package/dist/cjs/components/button/Button.styled.js.map +1 -1
  468. package/dist/cjs/components/button/themes.js +1 -1
  469. package/dist/cjs/components/button/themes.js.map +1 -1
  470. package/dist/cjs/components/carousel-preview/CarouselPreview.js +1 -1
  471. package/dist/cjs/components/carousel-preview/CarouselPreview.js.map +1 -1
  472. package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js +1 -1
  473. package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js.map +1 -1
  474. package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
  475. package/dist/cjs/components/carousel-secondary/CarouselSecondary.js.map +1 -1
  476. package/dist/cjs/components/code-block/CodeBlock.js +1 -1
  477. package/dist/cjs/components/code-block/CodeBlock.js.map +1 -1
  478. package/dist/cjs/components/code-block/CodeBlock.styled.js +33 -33
  479. package/dist/cjs/components/code-block/CodeBlock.styled.js.map +1 -1
  480. package/dist/cjs/components/code-block/CodeBlockHelper.js +1 -1
  481. package/dist/cjs/components/code-block/CodeBlockHelper.js.map +1 -1
  482. package/dist/cjs/components/country-code-picker/CountryPicker.js +1 -1
  483. package/dist/cjs/components/country-code-picker/CountryPicker.js.map +1 -1
  484. package/dist/cjs/components/custom-date-time/CustomDateTime.js.map +1 -1
  485. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  486. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js.map +1 -1
  487. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.js +1 -1
  488. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.js.map +1 -1
  489. package/dist/cjs/components/dashboard-review-popup/components/Form.js +1 -1
  490. package/dist/cjs/components/dashboard-review-popup/components/Form.js.map +1 -1
  491. package/dist/cjs/components/dashboard-review-popup/components/ZeroState.js +1 -1
  492. package/dist/cjs/components/dashboard-review-popup/components/ZeroState.js.map +1 -1
  493. package/dist/cjs/components/data-source-panel/DataSourceInfoFooter.js.map +1 -1
  494. package/dist/cjs/components/data-source-panel/DataSourcePanel.js +1 -1
  495. package/dist/cjs/components/data-source-panel/DataSourcePanel.js.map +1 -1
  496. package/dist/cjs/components/datePicker/DatePicker.js +1 -1
  497. package/dist/cjs/components/datePicker/DatePicker.js.map +1 -1
  498. package/dist/cjs/components/datePicker/DatePickerWrapper.js +1 -1
  499. package/dist/cjs/components/datePicker/DatePickerWrapper.js.map +1 -1
  500. package/dist/cjs/components/datePicker/TimePicker.js +1 -1
  501. package/dist/cjs/components/datePicker/TimePicker.js.map +1 -1
  502. package/dist/cjs/components/discount-modal/DiscountModal.js.map +1 -1
  503. package/dist/cjs/components/discount-modal/DiscountUtils.js.map +1 -1
  504. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js.map +1 -1
  505. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +6 -6
  506. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js.map +1 -1
  507. package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js.map +1 -1
  508. package/dist/cjs/components/dot-pulse/DotPulse.js +2 -2
  509. package/dist/cjs/components/dot-pulse/DotPulse.js.map +1 -1
  510. package/dist/cjs/components/dropShadow/DropShadow.js +1 -1
  511. package/dist/cjs/components/dropShadow/DropShadow.js.map +1 -1
  512. package/dist/cjs/components/dropdown/ChipDropdown.js.map +1 -1
  513. package/dist/cjs/components/dropdown/ChipInput.js +1 -1
  514. package/dist/cjs/components/dropdown/ChipInput.js.map +1 -1
  515. package/dist/cjs/components/dropdown/Common.styled.js.map +1 -1
  516. package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  517. package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js.map +1 -1
  518. package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
  519. package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.js.map +1 -1
  520. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
  521. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js.map +1 -1
  522. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +5 -5
  523. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js.map +1 -1
  524. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  525. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js.map +1 -1
  526. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
  527. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js.map +1 -1
  528. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
  529. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js.map +1 -1
  530. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
  531. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js.map +1 -1
  532. package/dist/cjs/components/dropdown/hooks/useDropdown.js +1 -1
  533. package/dist/cjs/components/dropdown/hooks/useDropdown.js.map +1 -1
  534. package/dist/cjs/components/dynamic-tabs/DynamicTabs.js.map +1 -1
  535. package/dist/cjs/components/fab-menu/FABMenu.js.map +1 -1
  536. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  537. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js.map +1 -1
  538. package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js +1 -1
  539. package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js.map +1 -1
  540. package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js +1 -1
  541. package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js.map +1 -1
  542. package/dist/cjs/components/feature-announcements/VideoModal.js +1 -1
  543. package/dist/cjs/components/feature-announcements/VideoModal.js.map +1 -1
  544. package/dist/cjs/components/feature-announcements/constants/animations.js.map +1 -1
  545. package/dist/cjs/components/feature-announcements/hooks/useFeatureAnnouncements.js +1 -1
  546. package/dist/cjs/components/feature-announcements/hooks/useFeatureAnnouncements.js.map +1 -1
  547. package/dist/cjs/components/feature-announcements/styles/majorPopup.styles.js +1 -1
  548. package/dist/cjs/components/feature-announcements/styles/majorPopup.styles.js.map +1 -1
  549. package/dist/cjs/components/feature-announcements/styles/minorPopup.styles.js.map +1 -1
  550. package/dist/cjs/components/feature-announcements/utils/animationHelpers.js +1 -1
  551. package/dist/cjs/components/feature-announcements/utils/animationHelpers.js.map +1 -1
  552. package/dist/cjs/components/feature-announcements/utils/elementHelpers.js +1 -1
  553. package/dist/cjs/components/feature-announcements/utils/elementHelpers.js.map +1 -1
  554. package/dist/cjs/components/file-uploader/FileUploader.js.map +1 -1
  555. package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.js.map +1 -1
  556. package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.js +4 -4
  557. package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.js.map +1 -1
  558. package/dist/cjs/components/half-doughnut-chart/HalfDoughnutChart.js +1 -1
  559. package/dist/cjs/components/half-doughnut-chart/HalfDoughnutChart.js.map +1 -1
  560. package/dist/cjs/components/helpers/FileUploaderHelper.js.map +1 -1
  561. package/dist/cjs/components/icon-button/IconButton.styled.js.map +1 -1
  562. package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
  563. package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.js.map +1 -1
  564. package/dist/cjs/components/input/ChipInput.js +1 -1
  565. package/dist/cjs/components/input/ChipInput.js.map +1 -1
  566. package/dist/cjs/components/input/ChipInput.styled.js.map +1 -1
  567. package/dist/cjs/components/input/Input-helper.js +1 -1
  568. package/dist/cjs/components/input/Input-helper.js.map +1 -1
  569. package/dist/cjs/components/input/Input.js +1 -1
  570. package/dist/cjs/components/input/Input.js.map +1 -1
  571. package/dist/cjs/components/input/Input.styled.js +1 -1
  572. package/dist/cjs/components/input/Input.styled.js.map +1 -1
  573. package/dist/cjs/components/input-with-vars/InputWithVariables.js +1 -1
  574. package/dist/cjs/components/input-with-vars/InputWithVariables.js.map +1 -1
  575. package/dist/cjs/components/list-item/themes.js.map +1 -1
  576. package/dist/cjs/components/markdown/MarkdownRender.js +1 -1
  577. package/dist/cjs/components/markdown/MarkdownRender.js.map +1 -1
  578. package/dist/cjs/components/markdown/utils.js +1 -1
  579. package/dist/cjs/components/markdown/utils.js.map +1 -1
  580. package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.js +1 -1
  581. package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.js.map +1 -1
  582. package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -1
  583. package/dist/cjs/components/multi-level-dropdown/MenuItem.js.map +1 -1
  584. package/dist/cjs/components/multi-level-dropdown/MenuList.js +1 -1
  585. package/dist/cjs/components/multi-level-dropdown/MenuList.js.map +1 -1
  586. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  587. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.js.map +1 -1
  588. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.styled.js +20 -20
  589. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.styled.js.map +1 -1
  590. package/dist/cjs/components/navigation-hyperlink/NavigationHyperlink.js.map +1 -1
  591. package/dist/cjs/components/plans/NewSubscriptionPlan.js.map +1 -1
  592. package/dist/cjs/components/plans/SubscriptionPlan.js.map +1 -1
  593. package/dist/cjs/components/plans/SubscriptionPlansCollected.js +1 -1
  594. package/dist/cjs/components/plans/SubscriptionPlansCollected.js.map +1 -1
  595. package/dist/cjs/components/post-live-checklist/PostLiveChecklist.js +1 -1
  596. package/dist/cjs/components/post-live-checklist/PostLiveChecklist.js.map +1 -1
  597. package/dist/cjs/components/postPicker/postPicker.js.map +1 -1
  598. package/dist/cjs/components/product-picker/ProductPickerModal.js +1 -1
  599. package/dist/cjs/components/product-picker/ProductPickerModal.js.map +1 -1
  600. package/dist/cjs/components/product-picker-v2/emptyState.js +1 -1
  601. package/dist/cjs/components/product-picker-v2/emptyState.js.map +1 -1
  602. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +1 -1
  603. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js.map +1 -1
  604. package/dist/cjs/components/product-picker-v2/modal.js.map +1 -1
  605. package/dist/cjs/components/product-picker-v2/product.js.map +1 -1
  606. package/dist/cjs/components/product-picker-v2/productInfoOverlay.js.map +1 -1
  607. package/dist/cjs/components/product-picker-v2/utility.js +1 -1
  608. package/dist/cjs/components/product-picker-v2/utility.js.map +1 -1
  609. package/dist/cjs/components/product-picker-v2/variant.js.map +1 -1
  610. package/dist/cjs/components/product-picker-v2/variantComponents.js +1 -1
  611. package/dist/cjs/components/product-picker-v2/variantComponents.js.map +1 -1
  612. package/dist/cjs/components/progress-bar/CircularProgressBar.js +1 -1
  613. package/dist/cjs/components/progress-bar/CircularProgressBar.js.map +1 -1
  614. package/dist/cjs/components/progress-bar-v2/ProgressBarV2.js.map +1 -1
  615. package/dist/cjs/components/resizeImage/index.js +1 -1
  616. package/dist/cjs/components/resizeImage/index.js.map +1 -1
  617. package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
  618. package/dist/cjs/components/shimmer-image/ShimmerImage.js.map +1 -1
  619. package/dist/cjs/components/side-modal/SideModal.style.js +16 -16
  620. package/dist/cjs/components/side-modal/SideModal.style.js.map +1 -1
  621. package/dist/cjs/components/slider/slider.js +1 -1
  622. package/dist/cjs/components/slider/slider.js.map +1 -1
  623. package/dist/cjs/components/spinner/Spinner.js +1 -1
  624. package/dist/cjs/components/spinner/Spinner.js.map +1 -1
  625. package/dist/cjs/components/star-rating/Star.js +1 -1
  626. package/dist/cjs/components/star-rating/Star.js.map +1 -1
  627. package/dist/cjs/components/star-rating/StarRating.js +1 -1
  628. package/dist/cjs/components/star-rating/StarRating.js.map +1 -1
  629. package/dist/cjs/components/states/StateComponent.styled.js.map +1 -1
  630. package/dist/cjs/components/stepper/Stepper.js.map +1 -1
  631. package/dist/cjs/components/stepper/themes.js.map +1 -1
  632. package/dist/cjs/components/switch/Switch.js +1 -1
  633. package/dist/cjs/components/switch/Switch.js.map +1 -1
  634. package/dist/cjs/components/tabs/Tabs.styles.js.map +1 -1
  635. package/dist/cjs/components/tag/Tag.js +1 -1
  636. package/dist/cjs/components/tag/Tag.js.map +1 -1
  637. package/dist/cjs/components/tag/Tag.styled.js.map +1 -1
  638. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js.map +1 -1
  639. package/dist/cjs/components/template-context-mapper/helpers/WebpushTemplateHelper.js.map +1 -1
  640. package/dist/cjs/components/template-context-mapper/modalElements/Body.js.map +1 -1
  641. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +1 -1
  642. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js.map +1 -1
  643. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  644. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js.map +1 -1
  645. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  646. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js.map +1 -1
  647. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  648. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js.map +1 -1
  649. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  650. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js.map +1 -1
  651. package/dist/cjs/components/template-context-mapper/modalElements/Footer.js +1 -1
  652. package/dist/cjs/components/template-context-mapper/modalElements/Footer.js.map +1 -1
  653. package/dist/cjs/components/template-context-mapper/modalElements/Header.js +1 -1
  654. package/dist/cjs/components/template-context-mapper/modalElements/Header.js.map +1 -1
  655. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +1 -1
  656. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js.map +1 -1
  657. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
  658. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js.map +1 -1
  659. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  660. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js.map +1 -1
  661. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js.map +1 -1
  662. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js.map +1 -1
  663. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +1 -1
  664. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js.map +1 -1
  665. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +2 -2
  666. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js.map +1 -1
  667. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  668. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js.map +1 -1
  669. package/dist/cjs/components/template-context-mapper/styles/TemplateAnalyticsStyles.js.map +1 -1
  670. package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js.map +1 -1
  671. package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  672. package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.js.map +1 -1
  673. package/dist/cjs/components/template-preview/RCS/RCSButtons.js +1 -1
  674. package/dist/cjs/components/template-preview/RCS/RCSButtons.js.map +1 -1
  675. package/dist/cjs/components/template-preview/RCS/RCSMediaCard.js +1 -1
  676. package/dist/cjs/components/template-preview/RCS/RCSMediaCard.js.map +1 -1
  677. package/dist/cjs/components/template-preview/RCS/RCSPreview.styled.js.map +1 -1
  678. package/dist/cjs/components/template-preview/RCS/RCSTemplateLikePreview.js.map +1 -1
  679. package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
  680. package/dist/cjs/components/template-preview/SmsTemplatePreview.js.map +1 -1
  681. package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
  682. package/dist/cjs/components/template-preview/TemplatePreview.js.map +1 -1
  683. package/dist/cjs/components/template-preview/WhatsApp/ChatBtn.js +1 -1
  684. package/dist/cjs/components/template-preview/WhatsApp/ChatBtn.js.map +1 -1
  685. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.js.map +1 -1
  686. package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -1
  687. package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js.map +1 -1
  688. package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js.map +1 -1
  689. package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  690. package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js.map +1 -1
  691. package/dist/cjs/components/template-preview/constants/TemplateConstants.js.map +1 -1
  692. package/dist/cjs/components/template-preview/helpers/SmsTemplateHelper.js +1 -1
  693. package/dist/cjs/components/template-preview/helpers/SmsTemplateHelper.js.map +1 -1
  694. package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
  695. package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js.map +1 -1
  696. package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js +1 -1
  697. package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js.map +1 -1
  698. package/dist/cjs/components/template-preview/utils/TemplateHelperUtils.js +1 -1
  699. package/dist/cjs/components/template-preview/utils/TemplateHelperUtils.js.map +1 -1
  700. package/dist/cjs/components/template-preview/webpush/WebpushPreview.js.map +1 -1
  701. package/dist/cjs/components/text-picker/TextPickerCategoryCard.js +5 -5
  702. package/dist/cjs/components/text-picker/TextPickerCategoryCard.js.map +1 -1
  703. package/dist/cjs/components/text-picker/TextPickerFooter.js +3 -3
  704. package/dist/cjs/components/text-picker/TextPickerFooter.js.map +1 -1
  705. package/dist/cjs/components/text-picker/TextPickerItemRow.js +4 -4
  706. package/dist/cjs/components/text-picker/TextPickerItemRow.js.map +1 -1
  707. package/dist/cjs/components/text-picker/TextPickerModal.js.map +1 -1
  708. package/dist/cjs/components/text-picker/TextPickerSelectAllRow.js +4 -4
  709. package/dist/cjs/components/text-picker/TextPickerSelectAllRow.js.map +1 -1
  710. package/dist/cjs/components/toaster/Toaster.js.map +1 -1
  711. package/dist/cjs/components/tooltips/Tooltip.js +1 -1
  712. package/dist/cjs/components/tooltips/Tooltip.js.map +1 -1
  713. package/dist/cjs/components/variable-picker-v3/Content.js.map +1 -1
  714. package/dist/cjs/components/variable-picker-v3/NoResult.js.map +1 -1
  715. package/dist/cjs/components/variable-picker-v3/searchVariables.js +1 -1
  716. package/dist/cjs/components/variable-picker-v3/searchVariables.js.map +1 -1
  717. package/dist/cjs/components/vertical-full-screen-modal/component.js +1 -1
  718. package/dist/cjs/components/vertical-full-screen-modal/component.js.map +1 -1
  719. package/dist/cjs/components/whats-new/WhatsNew.js +1 -1
  720. package/dist/cjs/components/whats-new/WhatsNew.js.map +1 -1
  721. package/dist/cjs/components/whats-new/WhatsNewButton.js +1 -1
  722. package/dist/cjs/components/whats-new/WhatsNewButton.js.map +1 -1
  723. package/dist/cjs/components/whats-new/WhatsNewPanel.js +1 -1
  724. package/dist/cjs/components/whats-new/WhatsNewPanel.js.map +1 -1
  725. package/dist/cjs/components/whats-new/WhatsNewProvider.js +1 -1
  726. package/dist/cjs/components/whats-new/WhatsNewProvider.js.map +1 -1
  727. package/dist/cjs/components/whats-new/useWhatsNew.js +1 -1
  728. package/dist/cjs/components/whats-new/useWhatsNew.js.map +1 -1
  729. package/dist/cjs/editor/BikEditor.js +1 -1
  730. package/dist/cjs/editor/BikEditor.js.map +1 -1
  731. package/dist/cjs/editor/BikEditor.styles.js +2 -2
  732. package/dist/cjs/editor/BikEditor.styles.js.map +1 -1
  733. package/dist/cjs/editor/extensions/FontSizeExtension.js +1 -1
  734. package/dist/cjs/editor/extensions/FontSizeExtension.js.map +1 -1
  735. package/dist/cjs/editor/extensions/editorDropdown.styles.js +5 -5
  736. package/dist/cjs/editor/extensions/editorDropdown.styles.js.map +1 -1
  737. package/dist/cjs/editor/extensions/mention/MentionDropdown.js +1 -1
  738. package/dist/cjs/editor/extensions/mention/MentionDropdown.js.map +1 -1
  739. package/dist/cjs/editor/extensions/mention/MentionExtension.js +1 -1
  740. package/dist/cjs/editor/extensions/mention/MentionExtension.js.map +1 -1
  741. package/dist/cjs/editor/extensions/sectionDivider/SectionDividerNode.js +1 -1
  742. package/dist/cjs/editor/extensions/sectionDivider/SectionDividerNode.js.map +1 -1
  743. package/dist/cjs/editor/extensions/slashCommand/SlashCommandExtension.js +1 -1
  744. package/dist/cjs/editor/extensions/slashCommand/SlashCommandExtension.js.map +1 -1
  745. package/dist/cjs/editor/extensions/slashCommand/SlashCommandMenu.js +1 -1
  746. package/dist/cjs/editor/extensions/slashCommand/SlashCommandMenu.js.map +1 -1
  747. package/dist/cjs/editor/extensions/suggestionPopup.js.map +1 -1
  748. package/dist/cjs/editor/floating/LinkBubbleMenu.js +1 -1
  749. package/dist/cjs/editor/floating/LinkBubbleMenu.js.map +1 -1
  750. package/dist/cjs/editor/serializers/toLiveChatText.js.map +1 -1
  751. package/dist/cjs/editor/serializers/toWhatsAppText.js.map +1 -1
  752. package/dist/cjs/editor/toolbar/BikEditorToolbar.js +1 -1
  753. package/dist/cjs/editor/toolbar/BikEditorToolbar.js.map +1 -1
  754. package/dist/cjs/helpers/BaseWhatsappContentLang.helper.js.map +1 -1
  755. package/dist/cjs/hooks/useCurreny.js +1 -1
  756. package/dist/cjs/hooks/useCurreny.js.map +1 -1
  757. package/dist/cjs/hooks/useOutside.js +1 -1
  758. package/dist/cjs/hooks/useOutside.js.map +1 -1
  759. package/dist/cjs/src/amplitude/Track.stories.d.ts +5 -3
  760. package/dist/cjs/src/components/banner/Banner.stories.d.ts +38 -8
  761. package/dist/cjs/src/components/bik-layout/MockMenus.d.ts +0 -1
  762. package/dist/cjs/src/components/post-live-checklist/PostLiveChecklist.stories.d.ts +104 -11
  763. package/dist/cjs/src/components/shimmer-image/ShimmerImage.stories.d.ts +15 -5
  764. package/dist/cjs/src/components/tag/Tag.stories.d.ts +54 -21
  765. package/dist/cjs/utils/DateUtils.js +1 -1
  766. package/dist/cjs/utils/DateUtils.js.map +1 -1
  767. package/dist/cjs/utils/StringUtils.js +1 -1
  768. package/dist/cjs/utils/StringUtils.js.map +1 -1
  769. package/dist/cjs/utils/logging/ErrorConstructor/CustomError.js +1 -1
  770. package/dist/cjs/utils/logging/ErrorConstructor/CustomError.js.map +1 -1
  771. package/dist/cjs/utils/logging/ErrorConstructor/FirebaseCallError.js.map +1 -1
  772. package/dist/cjs/utils/logging/ErrorConstructor/FirebaseSubscriptionError.js.map +1 -1
  773. package/dist/cjs/utils/logging/Logger.js +1 -1
  774. package/dist/cjs/utils/logging/Logger.js.map +1 -1
  775. package/dist/esm/assets/icons/AiEdit.svg.js +1 -1
  776. package/dist/esm/assets/icons/AiEdit.svg.js.map +1 -1
  777. package/dist/esm/assets/icons/Ai_event_generating.svg.js +1 -1
  778. package/dist/esm/assets/icons/Ai_event_generating.svg.js.map +1 -1
  779. package/dist/esm/assets/icons/Bik_logo.svg.js +1 -1
  780. package/dist/esm/assets/icons/Bik_logo.svg.js.map +1 -1
  781. package/dist/esm/assets/icons/ChartBar.svg.js +1 -1
  782. package/dist/esm/assets/icons/ChartBar.svg.js.map +1 -1
  783. package/dist/esm/assets/icons/ChartPie.svg.js +1 -1
  784. package/dist/esm/assets/icons/ChartPie.svg.js.map +1 -1
  785. package/dist/esm/assets/icons/CheckSquareOffset.svg.js +1 -1
  786. package/dist/esm/assets/icons/CheckSquareOffset.svg.js.map +1 -1
  787. package/dist/esm/assets/icons/HelpIcon.svg.js +1 -1
  788. package/dist/esm/assets/icons/HelpIcon.svg.js.map +1 -1
  789. package/dist/esm/assets/icons/Idea.svg.js +1 -1
  790. package/dist/esm/assets/icons/Idea.svg.js.map +1 -1
  791. package/dist/esm/assets/icons/OnboardingLogo.js +1 -1
  792. package/dist/esm/assets/icons/OnboardingLogo.js.map +1 -1
  793. package/dist/esm/assets/icons/RCS_PDF.svg.js +1 -1
  794. package/dist/esm/assets/icons/RCS_PDF.svg.js.map +1 -1
  795. package/dist/esm/assets/icons/RedirectToNew.svg.js +1 -1
  796. package/dist/esm/assets/icons/RedirectToNew.svg.js.map +1 -1
  797. package/dist/esm/assets/icons/WhiteStarFilled.svg.js +1 -1
  798. package/dist/esm/assets/icons/WhiteStarFilled.svg.js.map +1 -1
  799. package/dist/esm/assets/icons/actionButton.svg.js +1 -1
  800. package/dist/esm/assets/icons/actionButton.svg.js.map +1 -1
  801. package/dist/esm/assets/icons/aiContentIcon.svg.js +1 -1
  802. package/dist/esm/assets/icons/aiContentIcon.svg.js.map +1 -1
  803. package/dist/esm/assets/icons/alarm.svg.js +1 -1
  804. package/dist/esm/assets/icons/alarm.svg.js.map +1 -1
  805. package/dist/esm/assets/icons/alert.svg.js +1 -1
  806. package/dist/esm/assets/icons/alert.svg.js.map +1 -1
  807. package/dist/esm/assets/icons/alert_triangle.svg.js +1 -1
  808. package/dist/esm/assets/icons/alert_triangle.svg.js.map +1 -1
  809. package/dist/esm/assets/icons/arrow_back.svg.js +1 -1
  810. package/dist/esm/assets/icons/arrow_back.svg.js.map +1 -1
  811. package/dist/esm/assets/icons/arrow_down.svg.js +1 -1
  812. package/dist/esm/assets/icons/arrow_down.svg.js.map +1 -1
  813. package/dist/esm/assets/icons/arrow_left.svg.js +1 -1
  814. package/dist/esm/assets/icons/arrow_left.svg.js.map +1 -1
  815. package/dist/esm/assets/icons/arrow_up.svg.js +1 -1
  816. package/dist/esm/assets/icons/arrow_up.svg.js.map +1 -1
  817. package/dist/esm/assets/icons/back_icon.svg.js +1 -1
  818. package/dist/esm/assets/icons/back_icon.svg.js.map +1 -1
  819. package/dist/esm/assets/icons/bik_ai_stars_icon.svg.js +1 -1
  820. package/dist/esm/assets/icons/bik_ai_stars_icon.svg.js.map +1 -1
  821. package/dist/esm/assets/icons/bik_livechat.svg.js +1 -1
  822. package/dist/esm/assets/icons/bik_livechat.svg.js.map +1 -1
  823. package/dist/esm/assets/icons/bold.svg.js +1 -1
  824. package/dist/esm/assets/icons/bold.svg.js.map +1 -1
  825. package/dist/esm/assets/icons/box.svg.js +1 -1
  826. package/dist/esm/assets/icons/box.svg.js.map +1 -1
  827. package/dist/esm/assets/icons/boxV2.svg.js +1 -1
  828. package/dist/esm/assets/icons/boxV2.svg.js.map +1 -1
  829. package/dist/esm/assets/icons/box_round.svg.js +1 -1
  830. package/dist/esm/assets/icons/box_round.svg.js.map +1 -1
  831. package/dist/esm/assets/icons/box_search.svg.js +1 -1
  832. package/dist/esm/assets/icons/box_search.svg.js.map +1 -1
  833. package/dist/esm/assets/icons/brand_home.svg.js +1 -1
  834. package/dist/esm/assets/icons/brand_home.svg.js.map +1 -1
  835. package/dist/esm/assets/icons/broken_media_image.svg.js +1 -1
  836. package/dist/esm/assets/icons/broken_media_image.svg.js.map +1 -1
  837. package/dist/esm/assets/icons/calendar.svg.js +1 -1
  838. package/dist/esm/assets/icons/calendar.svg.js.map +1 -1
  839. package/dist/esm/assets/icons/card_footer_arraw.svg.js +1 -1
  840. package/dist/esm/assets/icons/card_footer_arraw.svg.js.map +1 -1
  841. package/dist/esm/assets/icons/chat-channel.svg.js +1 -1
  842. package/dist/esm/assets/icons/chat-channel.svg.js.map +1 -1
  843. package/dist/esm/assets/icons/chat.svg.js +1 -1
  844. package/dist/esm/assets/icons/chat.svg.js.map +1 -1
  845. package/dist/esm/assets/icons/check.svg.js +1 -1
  846. package/dist/esm/assets/icons/check.svg.js.map +1 -1
  847. package/dist/esm/assets/icons/checkCircle.svg.js +1 -1
  848. package/dist/esm/assets/icons/checkCircle.svg.js.map +1 -1
  849. package/dist/esm/assets/icons/checklistIcon.svg.js +1 -1
  850. package/dist/esm/assets/icons/checklistIcon.svg.js.map +1 -1
  851. package/dist/esm/assets/icons/chevronDown.svg.js +1 -1
  852. package/dist/esm/assets/icons/chevronDown.svg.js.map +1 -1
  853. package/dist/esm/assets/icons/chevronDownOutline.svg.js +1 -1
  854. package/dist/esm/assets/icons/chevronDownOutline.svg.js.map +1 -1
  855. package/dist/esm/assets/icons/chevronLeft.svg.js +1 -1
  856. package/dist/esm/assets/icons/chevronLeft.svg.js.map +1 -1
  857. package/dist/esm/assets/icons/chevronLeft2.svg.js +1 -1
  858. package/dist/esm/assets/icons/chevronLeft2.svg.js.map +1 -1
  859. package/dist/esm/assets/icons/chevronRight.svg.js +1 -1
  860. package/dist/esm/assets/icons/chevronRight.svg.js.map +1 -1
  861. package/dist/esm/assets/icons/chevronRight2.svg.js +1 -1
  862. package/dist/esm/assets/icons/chevronRight2.svg.js.map +1 -1
  863. package/dist/esm/assets/icons/chevronRightAlt.svg.js +1 -1
  864. package/dist/esm/assets/icons/chevronRightAlt.svg.js.map +1 -1
  865. package/dist/esm/assets/icons/chevronUpOutline.svg.js +1 -1
  866. package/dist/esm/assets/icons/chevronUpOutline.svg.js.map +1 -1
  867. package/dist/esm/assets/icons/circular-cross-icon.svg.js +1 -1
  868. package/dist/esm/assets/icons/circular-cross-icon.svg.js.map +1 -1
  869. package/dist/esm/assets/icons/click.svg.js +1 -1
  870. package/dist/esm/assets/icons/click.svg.js.map +1 -1
  871. package/dist/esm/assets/icons/clock.svg.js +1 -1
  872. package/dist/esm/assets/icons/clock.svg.js.map +1 -1
  873. package/dist/esm/assets/icons/copy-code-icon.svg.js +1 -1
  874. package/dist/esm/assets/icons/copy-code-icon.svg.js.map +1 -1
  875. package/dist/esm/assets/icons/cross.svg.js +1 -1
  876. package/dist/esm/assets/icons/cross.svg.js.map +1 -1
  877. package/dist/esm/assets/icons/cubeIcon.svg.js +1 -1
  878. package/dist/esm/assets/icons/cubeIcon.svg.js.map +1 -1
  879. package/dist/esm/assets/icons/cursor.svg.js +1 -1
  880. package/dist/esm/assets/icons/cursor.svg.js.map +1 -1
  881. package/dist/esm/assets/icons/delete.svg.js +1 -1
  882. package/dist/esm/assets/icons/delete.svg.js.map +1 -1
  883. package/dist/esm/assets/icons/desktop_custom.svg.js +1 -1
  884. package/dist/esm/assets/icons/desktop_custom.svg.js.map +1 -1
  885. package/dist/esm/assets/icons/document_pdf.svg.js +1 -1
  886. package/dist/esm/assets/icons/document_pdf.svg.js.map +1 -1
  887. package/dist/esm/assets/icons/drag_handle.svg.js +1 -1
  888. package/dist/esm/assets/icons/drag_handle.svg.js.map +1 -1
  889. package/dist/esm/assets/icons/edit.svg.js +1 -1
  890. package/dist/esm/assets/icons/edit.svg.js.map +1 -1
  891. package/dist/esm/assets/icons/email-channel.svg.js +1 -1
  892. package/dist/esm/assets/icons/email-channel.svg.js.map +1 -1
  893. package/dist/esm/assets/icons/emoji.svg.js +1 -1
  894. package/dist/esm/assets/icons/emoji.svg.js.map +1 -1
  895. package/dist/esm/assets/icons/errorIcon.svg.js +1 -1
  896. package/dist/esm/assets/icons/errorIcon.svg.js.map +1 -1
  897. package/dist/esm/assets/icons/errorInfo.svg.js +1 -1
  898. package/dist/esm/assets/icons/errorInfo.svg.js.map +1 -1
  899. package/dist/esm/assets/icons/expressionless_emoji.svg.js +1 -1
  900. package/dist/esm/assets/icons/expressionless_emoji.svg.js.map +1 -1
  901. package/dist/esm/assets/icons/facebook_channel.svg.js +1 -1
  902. package/dist/esm/assets/icons/facebook_channel.svg.js.map +1 -1
  903. package/dist/esm/assets/icons/file.svg.js +1 -1
  904. package/dist/esm/assets/icons/file.svg.js.map +1 -1
  905. package/dist/esm/assets/icons/filePdf.svg.js +1 -1
  906. package/dist/esm/assets/icons/filePdf.svg.js.map +1 -1
  907. package/dist/esm/assets/icons/gift_icon.svg.js +1 -1
  908. package/dist/esm/assets/icons/gift_icon.svg.js.map +1 -1
  909. package/dist/esm/assets/icons/gmail.svg.js +1 -1
  910. package/dist/esm/assets/icons/gmail.svg.js.map +1 -1
  911. package/dist/esm/assets/icons/graph.svg.js +1 -1
  912. package/dist/esm/assets/icons/graph.svg.js.map +1 -1
  913. package/dist/esm/assets/icons/grid.svg.js +1 -1
  914. package/dist/esm/assets/icons/grid.svg.js.map +1 -1
  915. package/dist/esm/assets/icons/halfRectangle.svg.js +1 -1
  916. package/dist/esm/assets/icons/halfRectangle.svg.js.map +1 -1
  917. package/dist/esm/assets/icons/help.svg.js +1 -1
  918. package/dist/esm/assets/icons/help.svg.js.map +1 -1
  919. package/dist/esm/assets/icons/home.svg.js +1 -1
  920. package/dist/esm/assets/icons/home.svg.js.map +1 -1
  921. package/dist/esm/assets/icons/horizontal_dots.svg.js +1 -1
  922. package/dist/esm/assets/icons/horizontal_dots.svg.js.map +1 -1
  923. package/dist/esm/assets/icons/hover_home.svg.js +1 -1
  924. package/dist/esm/assets/icons/hover_home.svg.js.map +1 -1
  925. package/dist/esm/assets/icons/image.svg.js +1 -1
  926. package/dist/esm/assets/icons/image.svg.js.map +1 -1
  927. package/dist/esm/assets/icons/info.svg.js +1 -1
  928. package/dist/esm/assets/icons/info.svg.js.map +1 -1
  929. package/dist/esm/assets/icons/instagram-channel.svg.js +1 -1
  930. package/dist/esm/assets/icons/instagram-channel.svg.js.map +1 -1
  931. package/dist/esm/assets/icons/instagram.svg.js +1 -1
  932. package/dist/esm/assets/icons/instagram.svg.js.map +1 -1
  933. package/dist/esm/assets/icons/italic.svg.js +1 -1
  934. package/dist/esm/assets/icons/italic.svg.js.map +1 -1
  935. package/dist/esm/assets/icons/list.svg.js +1 -1
  936. package/dist/esm/assets/icons/list.svg.js.map +1 -1
  937. package/dist/esm/assets/icons/locked.svg.js +1 -1
  938. package/dist/esm/assets/icons/locked.svg.js.map +1 -1
  939. package/dist/esm/assets/icons/log_out.svg.js +1 -1
  940. package/dist/esm/assets/icons/log_out.svg.js.map +1 -1
  941. package/dist/esm/assets/icons/lto_icon.svg.js +1 -1
  942. package/dist/esm/assets/icons/lto_icon.svg.js.map +1 -1
  943. package/dist/esm/assets/icons/magic-line.svg.js +1 -1
  944. package/dist/esm/assets/icons/magic-line.svg.js.map +1 -1
  945. package/dist/esm/assets/icons/maximize.svg.js +1 -1
  946. package/dist/esm/assets/icons/maximize.svg.js.map +1 -1
  947. package/dist/esm/assets/icons/mobile_custom.svg.js +1 -1
  948. package/dist/esm/assets/icons/mobile_custom.svg.js.map +1 -1
  949. package/dist/esm/assets/icons/more_vertical.svg.js +1 -1
  950. package/dist/esm/assets/icons/more_vertical.svg.js.map +1 -1
  951. package/dist/esm/assets/icons/openai.svg.js +1 -1
  952. package/dist/esm/assets/icons/openai.svg.js.map +1 -1
  953. package/dist/esm/assets/icons/paperclip.svg.js +1 -1
  954. package/dist/esm/assets/icons/paperclip.svg.js.map +1 -1
  955. package/dist/esm/assets/icons/percentage_icon.svg.js +1 -1
  956. package/dist/esm/assets/icons/percentage_icon.svg.js.map +1 -1
  957. package/dist/esm/assets/icons/phone.svg.js +1 -1
  958. package/dist/esm/assets/icons/phone.svg.js.map +1 -1
  959. package/dist/esm/assets/icons/phone_round.svg.js +1 -1
  960. package/dist/esm/assets/icons/phone_round.svg.js.map +1 -1
  961. package/dist/esm/assets/icons/play.svg.js +1 -1
  962. package/dist/esm/assets/icons/play.svg.js.map +1 -1
  963. package/dist/esm/assets/icons/plus.svg.js +1 -1
  964. package/dist/esm/assets/icons/plus.svg.js.map +1 -1
  965. package/dist/esm/assets/icons/pointer.svg.js +1 -1
  966. package/dist/esm/assets/icons/pointer.svg.js.map +1 -1
  967. package/dist/esm/assets/icons/profile.svg.js +1 -1
  968. package/dist/esm/assets/icons/profile.svg.js.map +1 -1
  969. package/dist/esm/assets/icons/qrb.svg.js +1 -1
  970. package/dist/esm/assets/icons/qrb.svg.js.map +1 -1
  971. package/dist/esm/assets/icons/question-mark.svg.js +1 -1
  972. package/dist/esm/assets/icons/question-mark.svg.js.map +1 -1
  973. package/dist/esm/assets/icons/quotes.svg.js +1 -1
  974. package/dist/esm/assets/icons/quotes.svg.js.map +1 -1
  975. package/dist/esm/assets/icons/redirect.svg.js +1 -1
  976. package/dist/esm/assets/icons/redirect.svg.js.map +1 -1
  977. package/dist/esm/assets/icons/refresh-purple.svg.js +1 -1
  978. package/dist/esm/assets/icons/refresh-purple.svg.js.map +1 -1
  979. package/dist/esm/assets/icons/refresh.svg.js +1 -1
  980. package/dist/esm/assets/icons/refresh.svg.js.map +1 -1
  981. package/dist/esm/assets/icons/retry.svg.js +1 -1
  982. package/dist/esm/assets/icons/retry.svg.js.map +1 -1
  983. package/dist/esm/assets/icons/retryIcon.svg.js +1 -1
  984. package/dist/esm/assets/icons/retryIcon.svg.js.map +1 -1
  985. package/dist/esm/assets/icons/rewind.svg.js +1 -1
  986. package/dist/esm/assets/icons/rewind.svg.js.map +1 -1
  987. package/dist/esm/assets/icons/sad_emoji.svg.js +1 -1
  988. package/dist/esm/assets/icons/sad_emoji.svg.js.map +1 -1
  989. package/dist/esm/assets/icons/search.svg.js +1 -1
  990. package/dist/esm/assets/icons/search.svg.js.map +1 -1
  991. package/dist/esm/assets/icons/searchIcon.svg.js +1 -1
  992. package/dist/esm/assets/icons/searchIcon.svg.js.map +1 -1
  993. package/dist/esm/assets/icons/send.svg.js +1 -1
  994. package/dist/esm/assets/icons/send.svg.js.map +1 -1
  995. package/dist/esm/assets/icons/send_template.svg.js +1 -1
  996. package/dist/esm/assets/icons/send_template.svg.js.map +1 -1
  997. package/dist/esm/assets/icons/shipping_icon.svg.js +1 -1
  998. package/dist/esm/assets/icons/shipping_icon.svg.js.map +1 -1
  999. package/dist/esm/assets/icons/similar.svg.js +1 -1
  1000. package/dist/esm/assets/icons/similar.svg.js.map +1 -1
  1001. package/dist/esm/assets/icons/smile_emoji.svg.js +1 -1
  1002. package/dist/esm/assets/icons/smile_emoji.svg.js.map +1 -1
  1003. package/dist/esm/assets/icons/smiley_emoji.svg.js +1 -1
  1004. package/dist/esm/assets/icons/smiley_emoji.svg.js.map +1 -1
  1005. package/dist/esm/assets/icons/sparkle.svg.js +1 -1
  1006. package/dist/esm/assets/icons/sparkle.svg.js.map +1 -1
  1007. package/dist/esm/assets/icons/speedometer.svg.js +1 -1
  1008. package/dist/esm/assets/icons/speedometer.svg.js.map +1 -1
  1009. package/dist/esm/assets/icons/starEmpty.svg.js +1 -1
  1010. package/dist/esm/assets/icons/starEmpty.svg.js.map +1 -1
  1011. package/dist/esm/assets/icons/starFilled.svg.js +1 -1
  1012. package/dist/esm/assets/icons/starFilled.svg.js.map +1 -1
  1013. package/dist/esm/assets/icons/starFilledV2.svg.js +1 -1
  1014. package/dist/esm/assets/icons/starFilledV2.svg.js.map +1 -1
  1015. package/dist/esm/assets/icons/state_icon.svg.js +1 -1
  1016. package/dist/esm/assets/icons/state_icon.svg.js.map +1 -1
  1017. package/dist/esm/assets/icons/strikeThrough.svg.js +1 -1
  1018. package/dist/esm/assets/icons/strikeThrough.svg.js.map +1 -1
  1019. package/dist/esm/assets/icons/sub_category.svg.js +1 -1
  1020. package/dist/esm/assets/icons/sub_category.svg.js.map +1 -1
  1021. package/dist/esm/assets/icons/successIcon.svg.js +1 -1
  1022. package/dist/esm/assets/icons/successIcon.svg.js.map +1 -1
  1023. package/dist/esm/assets/icons/sync.svg.js +1 -1
  1024. package/dist/esm/assets/icons/sync.svg.js.map +1 -1
  1025. package/dist/esm/assets/icons/task.svg.js +1 -1
  1026. package/dist/esm/assets/icons/task.svg.js.map +1 -1
  1027. package/dist/esm/assets/icons/text_t9.svg.js +1 -1
  1028. package/dist/esm/assets/icons/text_t9.svg.js.map +1 -1
  1029. package/dist/esm/assets/icons/thumb-down-line.svg.js +1 -1
  1030. package/dist/esm/assets/icons/thumb-down-line.svg.js.map +1 -1
  1031. package/dist/esm/assets/icons/thumb-up-line.svg.js +1 -1
  1032. package/dist/esm/assets/icons/thumb-up-line.svg.js.map +1 -1
  1033. package/dist/esm/assets/icons/tick.svg.js +1 -1
  1034. package/dist/esm/assets/icons/tick.svg.js.map +1 -1
  1035. package/dist/esm/assets/icons/tick_double.svg.js +1 -1
  1036. package/dist/esm/assets/icons/tick_double.svg.js.map +1 -1
  1037. package/dist/esm/assets/icons/triangle_error.svg.js +1 -1
  1038. package/dist/esm/assets/icons/triangle_error.svg.js.map +1 -1
  1039. package/dist/esm/assets/icons/undo.svg.js +1 -1
  1040. package/dist/esm/assets/icons/undo.svg.js.map +1 -1
  1041. package/dist/esm/assets/icons/union.svg.js +1 -1
  1042. package/dist/esm/assets/icons/union.svg.js.map +1 -1
  1043. package/dist/esm/assets/icons/upload.svg.js +1 -1
  1044. package/dist/esm/assets/icons/upload.svg.js.map +1 -1
  1045. package/dist/esm/assets/icons/user_icon.svg.js +1 -1
  1046. package/dist/esm/assets/icons/user_icon.svg.js.map +1 -1
  1047. package/dist/esm/assets/icons/vertical_dots.svg.js +1 -1
  1048. package/dist/esm/assets/icons/vertical_dots.svg.js.map +1 -1
  1049. package/dist/esm/assets/icons/videoRecorder.svg.js +1 -1
  1050. package/dist/esm/assets/icons/videoRecorder.svg.js.map +1 -1
  1051. package/dist/esm/assets/icons/video_camcorder.svg.js +1 -1
  1052. package/dist/esm/assets/icons/video_camcorder.svg.js.map +1 -1
  1053. package/dist/esm/assets/icons/warning.svg.js +1 -1
  1054. package/dist/esm/assets/icons/warning.svg.js.map +1 -1
  1055. package/dist/esm/assets/icons/warningIcon.svg.js +1 -1
  1056. package/dist/esm/assets/icons/warningIcon.svg.js.map +1 -1
  1057. package/dist/esm/assets/icons/website.svg.js +1 -1
  1058. package/dist/esm/assets/icons/website.svg.js.map +1 -1
  1059. package/dist/esm/assets/icons/whatsNew.svg.js +1 -1
  1060. package/dist/esm/assets/icons/whatsNew.svg.js.map +1 -1
  1061. package/dist/esm/assets/icons/whatsapp-channel.svg.js +1 -1
  1062. package/dist/esm/assets/icons/whatsapp-channel.svg.js.map +1 -1
  1063. package/dist/esm/assets/icons/whatsapp_color.svg.js +1 -1
  1064. package/dist/esm/assets/icons/whatsapp_color.svg.js.map +1 -1
  1065. package/dist/esm/components/BikGiftedChat/GiftedChat/Day.js +1 -1
  1066. package/dist/esm/components/BikGiftedChat/GiftedChat/Day.js.map +1 -1
  1067. package/dist/esm/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
  1068. package/dist/esm/components/BikGiftedChat/GiftedChat/scrollHooks.js +1 -1
  1069. package/dist/esm/components/BikGiftedChat/GiftedChat/scrollHooks.js.map +1 -1
  1070. package/dist/esm/components/InfiniteScroll/InfiniteScroll.js +1 -1
  1071. package/dist/esm/components/InfiniteScroll/InfiniteScroll.js.map +1 -1
  1072. package/dist/esm/components/ProgressChecklist/MultiChecklistItem.js +1 -1
  1073. package/dist/esm/components/ProgressChecklist/MultiChecklistItem.js.map +1 -1
  1074. package/dist/esm/components/ProgressChecklist/ProgressChecklist.js +1 -1
  1075. package/dist/esm/components/ProgressChecklist/ProgressChecklist.js.map +1 -1
  1076. package/dist/esm/components/ProgressChecklist/ProgressStepper.js +1 -1
  1077. package/dist/esm/components/ProgressChecklist/ProgressStepper.js.map +1 -1
  1078. package/dist/esm/components/ProgressChecklist/SimpleChecklistItem.js +1 -1
  1079. package/dist/esm/components/ProgressChecklist/SimpleChecklistItem.js.map +1 -1
  1080. package/dist/esm/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  1081. package/dist/esm/components/QueryBuilder/Filters/CustomField/components/CustomField.js.map +1 -1
  1082. package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  1083. package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js.map +1 -1
  1084. package/dist/esm/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  1085. package/dist/esm/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js.map +1 -1
  1086. package/dist/esm/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  1087. package/dist/esm/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js.map +1 -1
  1088. package/dist/esm/components/QueryBuilder/QueryBuilder.js +1 -1
  1089. package/dist/esm/components/QueryBuilder/QueryBuilder.js.map +1 -1
  1090. package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  1091. package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js.map +1 -1
  1092. package/dist/esm/components/QueryBuilder/components/AddNodeButton.js +1 -1
  1093. package/dist/esm/components/QueryBuilder/components/AddNodeButton.js.map +1 -1
  1094. package/dist/esm/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
  1095. package/dist/esm/components/QueryBuilder/components/AllowedListDropdown.js.map +1 -1
  1096. package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
  1097. package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js.map +1 -1
  1098. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
  1099. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FreeText.js.map +1 -1
  1100. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  1101. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js.map +1 -1
  1102. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IgPicker.js.map +1 -1
  1103. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  1104. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js.map +1 -1
  1105. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  1106. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js.map +1 -1
  1107. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
  1108. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js.map +1 -1
  1109. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
  1110. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js.map +1 -1
  1111. package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
  1112. package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js.map +1 -1
  1113. package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  1114. package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js.map +1 -1
  1115. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
  1116. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleDate.js.map +1 -1
  1117. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  1118. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js.map +1 -1
  1119. package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
  1120. package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js.map +1 -1
  1121. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
  1122. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoDate.js.map +1 -1
  1123. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
  1124. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js.map +1 -1
  1125. package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  1126. package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js.map +1 -1
  1127. package/dist/esm/components/QueryBuilder/components/DeleteButton.js +1 -1
  1128. package/dist/esm/components/QueryBuilder/components/DeleteButton.js.map +1 -1
  1129. package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js +1 -1
  1130. package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js.map +1 -1
  1131. package/dist/esm/components/QueryBuilder/components/InputLoader.js +4 -4
  1132. package/dist/esm/components/QueryBuilder/components/InputLoader.js.map +1 -1
  1133. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
  1134. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js.map +1 -1
  1135. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
  1136. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js.map +1 -1
  1137. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
  1138. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js.map +1 -1
  1139. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js.map +1 -1
  1140. package/dist/esm/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  1141. package/dist/esm/components/QueryBuilder/components/QueryBuilderNodes.js.map +1 -1
  1142. package/dist/esm/components/QueryBuilder/hooks/useQueryBuilderCache.js +1 -1
  1143. package/dist/esm/components/QueryBuilder/hooks/useQueryBuilderCache.js.map +1 -1
  1144. package/dist/esm/components/SearchFilter/components/DatePickerButton.js.map +1 -1
  1145. package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.js.map +1 -1
  1146. package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  1147. package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js.map +1 -1
  1148. package/dist/esm/components/SearchFilter/index.js +1 -1
  1149. package/dist/esm/components/SearchFilter/index.js.map +1 -1
  1150. package/dist/esm/components/TablePagination/TablePagination.js +1 -1
  1151. package/dist/esm/components/TablePagination/TablePagination.js.map +1 -1
  1152. package/dist/esm/components/TablePagination/TablePagination.styled.js.map +1 -1
  1153. package/dist/esm/components/WhatsAppTextEditor/AIRephrase.styled.js.map +1 -1
  1154. package/dist/esm/components/WhatsAppTextEditor/AIRephraseButton.js +1 -1
  1155. package/dist/esm/components/WhatsAppTextEditor/AIRephraseButton.js.map +1 -1
  1156. package/dist/esm/components/WhatsAppTextEditor/BorderAnimation.js +1 -1
  1157. package/dist/esm/components/WhatsAppTextEditor/BorderAnimation.js.map +1 -1
  1158. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
  1159. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js.map +1 -1
  1160. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +1 -1
  1161. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js.map +1 -1
  1162. package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
  1163. package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js.map +1 -1
  1164. package/dist/esm/components/accordion/Accordion.js.map +1 -1
  1165. package/dist/esm/components/action-button/ActionButton.styled.js.map +1 -1
  1166. package/dist/esm/components/action-button/ActionButtons.js +1 -1
  1167. package/dist/esm/components/action-button/ActionButtons.js.map +1 -1
  1168. package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
  1169. package/dist/esm/components/add-variableV2/AddVariableV2.js.map +1 -1
  1170. package/dist/esm/components/ai-modals/ActivateBikAI.js +1 -1
  1171. package/dist/esm/components/ai-modals/ActivateBikAI.js.map +1 -1
  1172. package/dist/esm/components/ai-modals/AiCreditsExhausted.js +1 -1
  1173. package/dist/esm/components/ai-modals/AiCreditsExhausted.js.map +1 -1
  1174. package/dist/esm/components/ai-modals/AiCreditsLow.js +1 -1
  1175. package/dist/esm/components/ai-modals/AiCreditsLow.js.map +1 -1
  1176. package/dist/esm/components/ai-modals/AiSyncProgress.js +1 -1
  1177. package/dist/esm/components/ai-modals/AiSyncProgress.js.map +1 -1
  1178. package/dist/esm/components/analytics-card/AnalyticsCard.styled.js.map +1 -1
  1179. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  1180. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js.map +1 -1
  1181. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
  1182. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js.map +1 -1
  1183. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
  1184. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js.map +1 -1
  1185. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  1186. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js.map +1 -1
  1187. package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js.map +1 -1
  1188. package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js.map +1 -1
  1189. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +1 -1
  1190. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js.map +1 -1
  1191. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
  1192. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js.map +1 -1
  1193. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +2 -2
  1194. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js.map +1 -1
  1195. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  1196. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js.map +1 -1
  1197. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  1198. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js.map +1 -1
  1199. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
  1200. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js.map +1 -1
  1201. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
  1202. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js.map +1 -1
  1203. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js.map +1 -1
  1204. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  1205. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js.map +1 -1
  1206. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +1 -1
  1207. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js.map +1 -1
  1208. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
  1209. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js.map +1 -1
  1210. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -1
  1211. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js.map +1 -1
  1212. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -1
  1213. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js.map +1 -1
  1214. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -1
  1215. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js.map +1 -1
  1216. package/dist/esm/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +1 -1
  1217. package/dist/esm/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js.map +1 -1
  1218. package/dist/esm/components/bik-chatbot/components/AIChat.js +1 -1
  1219. package/dist/esm/components/bik-chatbot/components/AIChat.js.map +1 -1
  1220. package/dist/esm/components/bik-chatbot/components/BIKChatbot.js +1 -1
  1221. package/dist/esm/components/bik-chatbot/components/BIKChatbot.js.map +1 -1
  1222. package/dist/esm/components/bik-chatbot/components/ChatLoadingState.js +1 -1
  1223. package/dist/esm/components/bik-chatbot/components/ChatLoadingState.js.map +1 -1
  1224. package/dist/esm/components/bik-chatbot/components/ChatWindow.js +1 -1
  1225. package/dist/esm/components/bik-chatbot/components/ChatWindow.js.map +1 -1
  1226. package/dist/esm/components/bik-chatbot/components/ThinkingIndicator.js.map +1 -1
  1227. package/dist/esm/components/bik-chatbot/contexts/AIContext.js +1 -1
  1228. package/dist/esm/components/bik-chatbot/contexts/AIContext.js.map +1 -1
  1229. package/dist/esm/components/bik-chatbot/services/aiService.js +1 -1
  1230. package/dist/esm/components/bik-chatbot/services/aiService.js.map +1 -1
  1231. package/dist/esm/components/bik-chatbot/services/callToChatbot.js +1 -1
  1232. package/dist/esm/components/bik-chatbot/services/callToChatbot.js.map +1 -1
  1233. package/dist/esm/components/bik-chatbot/services/db.js.map +1 -1
  1234. package/dist/esm/components/bik-chatbot/services/useAIChat.js +1 -1
  1235. package/dist/esm/components/bik-chatbot/services/useAIChat.js.map +1 -1
  1236. package/dist/esm/components/bik-chatbot/utils/guardrails.js.map +1 -1
  1237. package/dist/esm/components/bik-layout/BikLayout.js.map +1 -1
  1238. package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
  1239. package/dist/esm/components/bik-layout/BikSidebar.js.map +1 -1
  1240. package/dist/esm/components/bik-layout/SimpleSidebar.js.map +1 -1
  1241. package/dist/esm/components/button/Button.styled.js.map +1 -1
  1242. package/dist/esm/components/button/themes.js +1 -1
  1243. package/dist/esm/components/button/themes.js.map +1 -1
  1244. package/dist/esm/components/carousel-preview/CarouselPreview.js +1 -1
  1245. package/dist/esm/components/carousel-preview/CarouselPreview.js.map +1 -1
  1246. package/dist/esm/components/carousel-preview/CarouselPreviewCard.js +1 -1
  1247. package/dist/esm/components/carousel-preview/CarouselPreviewCard.js.map +1 -1
  1248. package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
  1249. package/dist/esm/components/carousel-secondary/CarouselSecondary.js.map +1 -1
  1250. package/dist/esm/components/code-block/CodeBlock.js +1 -1
  1251. package/dist/esm/components/code-block/CodeBlock.js.map +1 -1
  1252. package/dist/esm/components/code-block/CodeBlock.styled.js +31 -31
  1253. package/dist/esm/components/code-block/CodeBlock.styled.js.map +1 -1
  1254. package/dist/esm/components/code-block/CodeBlockHelper.js +1 -1
  1255. package/dist/esm/components/code-block/CodeBlockHelper.js.map +1 -1
  1256. package/dist/esm/components/country-code-picker/CountryPicker.js +1 -1
  1257. package/dist/esm/components/country-code-picker/CountryPicker.js.map +1 -1
  1258. package/dist/esm/components/custom-date-time/CustomDateTime.js.map +1 -1
  1259. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  1260. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js.map +1 -1
  1261. package/dist/esm/components/dashboard-review-popup/components/FiveStar.js +1 -1
  1262. package/dist/esm/components/dashboard-review-popup/components/FiveStar.js.map +1 -1
  1263. package/dist/esm/components/dashboard-review-popup/components/Form.js +1 -1
  1264. package/dist/esm/components/dashboard-review-popup/components/Form.js.map +1 -1
  1265. package/dist/esm/components/dashboard-review-popup/components/ZeroState.js +1 -1
  1266. package/dist/esm/components/dashboard-review-popup/components/ZeroState.js.map +1 -1
  1267. package/dist/esm/components/data-source-panel/DataSourceInfoFooter.js.map +1 -1
  1268. package/dist/esm/components/data-source-panel/DataSourcePanel.js +1 -1
  1269. package/dist/esm/components/data-source-panel/DataSourcePanel.js.map +1 -1
  1270. package/dist/esm/components/datePicker/DatePicker.js +1 -1
  1271. package/dist/esm/components/datePicker/DatePicker.js.map +1 -1
  1272. package/dist/esm/components/datePicker/DatePickerWrapper.js +1 -1
  1273. package/dist/esm/components/datePicker/DatePickerWrapper.js.map +1 -1
  1274. package/dist/esm/components/datePicker/TimePicker.js +1 -1
  1275. package/dist/esm/components/datePicker/TimePicker.js.map +1 -1
  1276. package/dist/esm/components/discount-modal/DiscountModal.js.map +1 -1
  1277. package/dist/esm/components/discount-modal/DiscountUtils.js.map +1 -1
  1278. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js.map +1 -1
  1279. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +8 -8
  1280. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js.map +1 -1
  1281. package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js.map +1 -1
  1282. package/dist/esm/components/dot-pulse/DotPulse.js +2 -2
  1283. package/dist/esm/components/dot-pulse/DotPulse.js.map +1 -1
  1284. package/dist/esm/components/dropShadow/DropShadow.js +1 -1
  1285. package/dist/esm/components/dropShadow/DropShadow.js.map +1 -1
  1286. package/dist/esm/components/dropdown/ChipDropdown.js.map +1 -1
  1287. package/dist/esm/components/dropdown/ChipInput.js +1 -1
  1288. package/dist/esm/components/dropdown/ChipInput.js.map +1 -1
  1289. package/dist/esm/components/dropdown/Common.styled.js.map +1 -1
  1290. package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  1291. package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js.map +1 -1
  1292. package/dist/esm/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
  1293. package/dist/esm/components/dropdown/OpenedDropdown/components/description/Description.js.map +1 -1
  1294. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
  1295. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js.map +1 -1
  1296. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +5 -5
  1297. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js.map +1 -1
  1298. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  1299. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js.map +1 -1
  1300. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
  1301. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js.map +1 -1
  1302. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
  1303. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js.map +1 -1
  1304. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
  1305. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js.map +1 -1
  1306. package/dist/esm/components/dropdown/hooks/useDropdown.js +1 -1
  1307. package/dist/esm/components/dropdown/hooks/useDropdown.js.map +1 -1
  1308. package/dist/esm/components/dynamic-tabs/DynamicTabs.js.map +1 -1
  1309. package/dist/esm/components/fab-menu/FABMenu.js.map +1 -1
  1310. package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  1311. package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js.map +1 -1
  1312. package/dist/esm/components/feature-announcements/MajorUpdatePopup.js +1 -1
  1313. package/dist/esm/components/feature-announcements/MajorUpdatePopup.js.map +1 -1
  1314. package/dist/esm/components/feature-announcements/MinorUpdatePopup.js +1 -1
  1315. package/dist/esm/components/feature-announcements/MinorUpdatePopup.js.map +1 -1
  1316. package/dist/esm/components/feature-announcements/VideoModal.js +1 -1
  1317. package/dist/esm/components/feature-announcements/VideoModal.js.map +1 -1
  1318. package/dist/esm/components/feature-announcements/constants/animations.js.map +1 -1
  1319. package/dist/esm/components/feature-announcements/hooks/useFeatureAnnouncements.js +1 -1
  1320. package/dist/esm/components/feature-announcements/hooks/useFeatureAnnouncements.js.map +1 -1
  1321. package/dist/esm/components/feature-announcements/styles/majorPopup.styles.js +1 -1
  1322. package/dist/esm/components/feature-announcements/styles/majorPopup.styles.js.map +1 -1
  1323. package/dist/esm/components/feature-announcements/styles/minorPopup.styles.js.map +1 -1
  1324. package/dist/esm/components/feature-announcements/utils/animationHelpers.js +1 -1
  1325. package/dist/esm/components/feature-announcements/utils/animationHelpers.js.map +1 -1
  1326. package/dist/esm/components/feature-announcements/utils/elementHelpers.js +1 -1
  1327. package/dist/esm/components/feature-announcements/utils/elementHelpers.js.map +1 -1
  1328. package/dist/esm/components/file-uploader/FileUploader.js.map +1 -1
  1329. package/dist/esm/components/floating-action-button/FloatingActionButton.styles.js.map +1 -1
  1330. package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.js +3 -3
  1331. package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.js.map +1 -1
  1332. package/dist/esm/components/half-doughnut-chart/HalfDoughnutChart.js +1 -1
  1333. package/dist/esm/components/half-doughnut-chart/HalfDoughnutChart.js.map +1 -1
  1334. package/dist/esm/components/helpers/FileUploaderHelper.js.map +1 -1
  1335. package/dist/esm/components/icon-button/IconButton.styled.js.map +1 -1
  1336. package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
  1337. package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.js.map +1 -1
  1338. package/dist/esm/components/input/ChipInput.js +1 -1
  1339. package/dist/esm/components/input/ChipInput.js.map +1 -1
  1340. package/dist/esm/components/input/ChipInput.styled.js.map +1 -1
  1341. package/dist/esm/components/input/Input-helper.js +1 -1
  1342. package/dist/esm/components/input/Input-helper.js.map +1 -1
  1343. package/dist/esm/components/input/Input.js +1 -1
  1344. package/dist/esm/components/input/Input.js.map +1 -1
  1345. package/dist/esm/components/input/Input.styled.js +1 -1
  1346. package/dist/esm/components/input/Input.styled.js.map +1 -1
  1347. package/dist/esm/components/input-with-vars/InputWithVariables.js +1 -1
  1348. package/dist/esm/components/input-with-vars/InputWithVariables.js.map +1 -1
  1349. package/dist/esm/components/list-item/themes.js.map +1 -1
  1350. package/dist/esm/components/markdown/MarkdownRender.js +1 -1
  1351. package/dist/esm/components/markdown/MarkdownRender.js.map +1 -1
  1352. package/dist/esm/components/markdown/utils.js +1 -1
  1353. package/dist/esm/components/markdown/utils.js.map +1 -1
  1354. package/dist/esm/components/multi-level-dropdown/GroupedMenuList.js +1 -1
  1355. package/dist/esm/components/multi-level-dropdown/GroupedMenuList.js.map +1 -1
  1356. package/dist/esm/components/multi-level-dropdown/MenuItem.js +1 -1
  1357. package/dist/esm/components/multi-level-dropdown/MenuItem.js.map +1 -1
  1358. package/dist/esm/components/multi-level-dropdown/MenuList.js +1 -1
  1359. package/dist/esm/components/multi-level-dropdown/MenuList.js.map +1 -1
  1360. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  1361. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.js.map +1 -1
  1362. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.styled.js +25 -25
  1363. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.styled.js.map +1 -1
  1364. package/dist/esm/components/navigation-hyperlink/NavigationHyperlink.js.map +1 -1
  1365. package/dist/esm/components/plans/NewSubscriptionPlan.js.map +1 -1
  1366. package/dist/esm/components/plans/SubscriptionPlan.js.map +1 -1
  1367. package/dist/esm/components/plans/SubscriptionPlansCollected.js +2 -2
  1368. package/dist/esm/components/plans/SubscriptionPlansCollected.js.map +1 -1
  1369. package/dist/esm/components/post-live-checklist/PostLiveChecklist.js +1 -1
  1370. package/dist/esm/components/post-live-checklist/PostLiveChecklist.js.map +1 -1
  1371. package/dist/esm/components/postPicker/postPicker.js.map +1 -1
  1372. package/dist/esm/components/product-picker/ProductPickerModal.js +1 -1
  1373. package/dist/esm/components/product-picker/ProductPickerModal.js.map +1 -1
  1374. package/dist/esm/components/product-picker-v2/emptyState.js +1 -1
  1375. package/dist/esm/components/product-picker-v2/emptyState.js.map +1 -1
  1376. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +1 -1
  1377. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js.map +1 -1
  1378. package/dist/esm/components/product-picker-v2/modal.js.map +1 -1
  1379. package/dist/esm/components/product-picker-v2/product.js.map +1 -1
  1380. package/dist/esm/components/product-picker-v2/productInfoOverlay.js.map +1 -1
  1381. package/dist/esm/components/product-picker-v2/utility.js +1 -1
  1382. package/dist/esm/components/product-picker-v2/utility.js.map +1 -1
  1383. package/dist/esm/components/product-picker-v2/variant.js.map +1 -1
  1384. package/dist/esm/components/product-picker-v2/variantComponents.js +1 -1
  1385. package/dist/esm/components/product-picker-v2/variantComponents.js.map +1 -1
  1386. package/dist/esm/components/progress-bar/CircularProgressBar.js +1 -1
  1387. package/dist/esm/components/progress-bar/CircularProgressBar.js.map +1 -1
  1388. package/dist/esm/components/progress-bar-v2/ProgressBarV2.js.map +1 -1
  1389. package/dist/esm/components/resizeImage/index.js +1 -1
  1390. package/dist/esm/components/resizeImage/index.js.map +1 -1
  1391. package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
  1392. package/dist/esm/components/shimmer-image/ShimmerImage.js.map +1 -1
  1393. package/dist/esm/components/side-modal/SideModal.style.js +9 -9
  1394. package/dist/esm/components/side-modal/SideModal.style.js.map +1 -1
  1395. package/dist/esm/components/slider/slider.js +1 -1
  1396. package/dist/esm/components/slider/slider.js.map +1 -1
  1397. package/dist/esm/components/spinner/Spinner.js +1 -1
  1398. package/dist/esm/components/spinner/Spinner.js.map +1 -1
  1399. package/dist/esm/components/star-rating/Star.js +1 -1
  1400. package/dist/esm/components/star-rating/Star.js.map +1 -1
  1401. package/dist/esm/components/star-rating/StarRating.js +1 -1
  1402. package/dist/esm/components/star-rating/StarRating.js.map +1 -1
  1403. package/dist/esm/components/states/StateComponent.styled.js.map +1 -1
  1404. package/dist/esm/components/stepper/Stepper.js.map +1 -1
  1405. package/dist/esm/components/stepper/themes.js.map +1 -1
  1406. package/dist/esm/components/switch/Switch.js +1 -1
  1407. package/dist/esm/components/switch/Switch.js.map +1 -1
  1408. package/dist/esm/components/tabs/Tabs.styles.js.map +1 -1
  1409. package/dist/esm/components/tag/Tag.js +1 -1
  1410. package/dist/esm/components/tag/Tag.js.map +1 -1
  1411. package/dist/esm/components/tag/Tag.styled.js.map +1 -1
  1412. package/dist/esm/components/template-context-mapper/TemplateContextMapper.js.map +1 -1
  1413. package/dist/esm/components/template-context-mapper/helpers/WebpushTemplateHelper.js.map +1 -1
  1414. package/dist/esm/components/template-context-mapper/modalElements/Body.js.map +1 -1
  1415. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +1 -1
  1416. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js.map +1 -1
  1417. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  1418. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js.map +1 -1
  1419. package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  1420. package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.js.map +1 -1
  1421. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  1422. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js.map +1 -1
  1423. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  1424. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js.map +1 -1
  1425. package/dist/esm/components/template-context-mapper/modalElements/Footer.js +2 -2
  1426. package/dist/esm/components/template-context-mapper/modalElements/Footer.js.map +1 -1
  1427. package/dist/esm/components/template-context-mapper/modalElements/Header.js +2 -2
  1428. package/dist/esm/components/template-context-mapper/modalElements/Header.js.map +1 -1
  1429. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +1 -1
  1430. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js.map +1 -1
  1431. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
  1432. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js.map +1 -1
  1433. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  1434. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js.map +1 -1
  1435. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js.map +1 -1
  1436. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js.map +1 -1
  1437. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +1 -1
  1438. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js.map +1 -1
  1439. package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +2 -2
  1440. package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js.map +1 -1
  1441. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  1442. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js.map +1 -1
  1443. package/dist/esm/components/template-context-mapper/styles/TemplateAnalyticsStyles.js.map +1 -1
  1444. package/dist/esm/components/template-preview/EmailTemplatePreview.styled.js.map +1 -1
  1445. package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  1446. package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.js.map +1 -1
  1447. package/dist/esm/components/template-preview/RCS/RCSButtons.js +1 -1
  1448. package/dist/esm/components/template-preview/RCS/RCSButtons.js.map +1 -1
  1449. package/dist/esm/components/template-preview/RCS/RCSMediaCard.js +1 -1
  1450. package/dist/esm/components/template-preview/RCS/RCSMediaCard.js.map +1 -1
  1451. package/dist/esm/components/template-preview/RCS/RCSPreview.styled.js.map +1 -1
  1452. package/dist/esm/components/template-preview/RCS/RCSTemplateLikePreview.js.map +1 -1
  1453. package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
  1454. package/dist/esm/components/template-preview/SmsTemplatePreview.js.map +1 -1
  1455. package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
  1456. package/dist/esm/components/template-preview/TemplatePreview.js.map +1 -1
  1457. package/dist/esm/components/template-preview/WhatsApp/ChatBtn.js +1 -1
  1458. package/dist/esm/components/template-preview/WhatsApp/ChatBtn.js.map +1 -1
  1459. package/dist/esm/components/template-preview/WhatsApp/ChatUI.style.js.map +1 -1
  1460. package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
  1461. package/dist/esm/components/template-preview/WhatsApp/MediaCard.js.map +1 -1
  1462. package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js.map +1 -1
  1463. package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  1464. package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js.map +1 -1
  1465. package/dist/esm/components/template-preview/constants/TemplateConstants.js.map +1 -1
  1466. package/dist/esm/components/template-preview/helpers/SmsTemplateHelper.js +1 -1
  1467. package/dist/esm/components/template-preview/helpers/SmsTemplateHelper.js.map +1 -1
  1468. package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
  1469. package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js.map +1 -1
  1470. package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js +1 -1
  1471. package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js.map +1 -1
  1472. package/dist/esm/components/template-preview/utils/TemplateHelperUtils.js +1 -1
  1473. package/dist/esm/components/template-preview/utils/TemplateHelperUtils.js.map +1 -1
  1474. package/dist/esm/components/template-preview/webpush/WebpushPreview.js.map +1 -1
  1475. package/dist/esm/components/text-picker/TextPickerCategoryCard.js +4 -4
  1476. package/dist/esm/components/text-picker/TextPickerCategoryCard.js.map +1 -1
  1477. package/dist/esm/components/text-picker/TextPickerFooter.js +5 -5
  1478. package/dist/esm/components/text-picker/TextPickerFooter.js.map +1 -1
  1479. package/dist/esm/components/text-picker/TextPickerItemRow.js +6 -6
  1480. package/dist/esm/components/text-picker/TextPickerItemRow.js.map +1 -1
  1481. package/dist/esm/components/text-picker/TextPickerModal.js.map +1 -1
  1482. package/dist/esm/components/text-picker/TextPickerSelectAllRow.js +5 -5
  1483. package/dist/esm/components/text-picker/TextPickerSelectAllRow.js.map +1 -1
  1484. package/dist/esm/components/toaster/Toaster.js.map +1 -1
  1485. package/dist/esm/components/tooltips/Tooltip.js +1 -1
  1486. package/dist/esm/components/tooltips/Tooltip.js.map +1 -1
  1487. package/dist/esm/components/variable-picker-v3/Content.js.map +1 -1
  1488. package/dist/esm/components/variable-picker-v3/NoResult.js.map +1 -1
  1489. package/dist/esm/components/variable-picker-v3/searchVariables.js +1 -1
  1490. package/dist/esm/components/variable-picker-v3/searchVariables.js.map +1 -1
  1491. package/dist/esm/components/vertical-full-screen-modal/component.js +1 -1
  1492. package/dist/esm/components/vertical-full-screen-modal/component.js.map +1 -1
  1493. package/dist/esm/components/whats-new/WhatsNew.js +1 -1
  1494. package/dist/esm/components/whats-new/WhatsNew.js.map +1 -1
  1495. package/dist/esm/components/whats-new/WhatsNewButton.js +1 -1
  1496. package/dist/esm/components/whats-new/WhatsNewButton.js.map +1 -1
  1497. package/dist/esm/components/whats-new/WhatsNewPanel.js +1 -1
  1498. package/dist/esm/components/whats-new/WhatsNewPanel.js.map +1 -1
  1499. package/dist/esm/components/whats-new/WhatsNewProvider.js +1 -1
  1500. package/dist/esm/components/whats-new/WhatsNewProvider.js.map +1 -1
  1501. package/dist/esm/components/whats-new/useWhatsNew.js +1 -1
  1502. package/dist/esm/components/whats-new/useWhatsNew.js.map +1 -1
  1503. package/dist/esm/editor/BikEditor.js +1 -1
  1504. package/dist/esm/editor/BikEditor.js.map +1 -1
  1505. package/dist/esm/editor/BikEditor.styles.js +2 -2
  1506. package/dist/esm/editor/BikEditor.styles.js.map +1 -1
  1507. package/dist/esm/editor/extensions/FontSizeExtension.js +1 -1
  1508. package/dist/esm/editor/extensions/FontSizeExtension.js.map +1 -1
  1509. package/dist/esm/editor/extensions/editorDropdown.styles.js +5 -5
  1510. package/dist/esm/editor/extensions/editorDropdown.styles.js.map +1 -1
  1511. package/dist/esm/editor/extensions/mention/MentionDropdown.js +1 -1
  1512. package/dist/esm/editor/extensions/mention/MentionDropdown.js.map +1 -1
  1513. package/dist/esm/editor/extensions/mention/MentionExtension.js +1 -1
  1514. package/dist/esm/editor/extensions/mention/MentionExtension.js.map +1 -1
  1515. package/dist/esm/editor/extensions/sectionDivider/SectionDividerNode.js +1 -1
  1516. package/dist/esm/editor/extensions/sectionDivider/SectionDividerNode.js.map +1 -1
  1517. package/dist/esm/editor/extensions/slashCommand/SlashCommandExtension.js +1 -1
  1518. package/dist/esm/editor/extensions/slashCommand/SlashCommandExtension.js.map +1 -1
  1519. package/dist/esm/editor/extensions/slashCommand/SlashCommandMenu.js +1 -1
  1520. package/dist/esm/editor/extensions/slashCommand/SlashCommandMenu.js.map +1 -1
  1521. package/dist/esm/editor/extensions/suggestionPopup.js.map +1 -1
  1522. package/dist/esm/editor/floating/LinkBubbleMenu.js +1 -1
  1523. package/dist/esm/editor/floating/LinkBubbleMenu.js.map +1 -1
  1524. package/dist/esm/editor/serializers/toLiveChatText.js.map +1 -1
  1525. package/dist/esm/editor/serializers/toWhatsAppText.js.map +1 -1
  1526. package/dist/esm/editor/toolbar/BikEditorToolbar.js +1 -1
  1527. package/dist/esm/editor/toolbar/BikEditorToolbar.js.map +1 -1
  1528. package/dist/esm/helpers/BaseWhatsappContentLang.helper.js.map +1 -1
  1529. package/dist/esm/hooks/useCurreny.js +1 -1
  1530. package/dist/esm/hooks/useCurreny.js.map +1 -1
  1531. package/dist/esm/hooks/useOutside.js +1 -1
  1532. package/dist/esm/hooks/useOutside.js.map +1 -1
  1533. package/dist/esm/src/amplitude/Track.stories.d.ts +5 -3
  1534. package/dist/esm/src/components/banner/Banner.stories.d.ts +38 -8
  1535. package/dist/esm/src/components/bik-layout/MockMenus.d.ts +0 -1
  1536. package/dist/esm/src/components/post-live-checklist/PostLiveChecklist.stories.d.ts +104 -11
  1537. package/dist/esm/src/components/shimmer-image/ShimmerImage.stories.d.ts +15 -5
  1538. package/dist/esm/src/components/tag/Tag.stories.d.ts +54 -21
  1539. package/dist/esm/utils/DateUtils.js +1 -1
  1540. package/dist/esm/utils/DateUtils.js.map +1 -1
  1541. package/dist/esm/utils/StringUtils.js +1 -1
  1542. package/dist/esm/utils/StringUtils.js.map +1 -1
  1543. package/dist/esm/utils/logging/ErrorConstructor/CustomError.js +1 -1
  1544. package/dist/esm/utils/logging/ErrorConstructor/CustomError.js.map +1 -1
  1545. package/dist/esm/utils/logging/ErrorConstructor/FirebaseCallError.js.map +1 -1
  1546. package/dist/esm/utils/logging/ErrorConstructor/FirebaseSubscriptionError.js.map +1 -1
  1547. package/dist/esm/utils/logging/Logger.js +1 -1
  1548. package/dist/esm/utils/logging/Logger.js.map +1 -1
  1549. package/package.json +12 -18
@@ -1,2 +1,2 @@
1
- import{__awaiter as e}from"../../../../../_virtual/_tslib.js";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as t,useEffect as a}from"react";import{iterateOnOptions as i}from"../../../../dropdown/OpenedDropdown/utils/iterationOnOptions.js";import l from"../../../components/AllowedListDropdown.js";import n from"../../../components/Connectors/Connector.js";import{ApiResponseHelper as d}from"../../../helpers/ApiResponse.helper.js";import{useQueryBuilder as u}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as v}from"../../../hooks/useQueryBuilderCache.js";import{QueryBuilderConnectorType as p}from"../../../types/QueryBuilderEnum.type.js";import{FREQUENCY_OPERATORS as s,DATE_OPERATORS as c}from"../../../types/QueryBuilderOperator.type.js";import y from"../../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as m}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";import{CONTAINS_OPERATORS as f,getContainsFilterError as h}from"../../../helpers/SegmentValidator.js";const g=new d,w=d=>{let{node:w,allowedNodes:T,apiHandler:_,mode:j,selectorKey:O}=d;var k,b,N,P,S,E,q,V,x,C,B,A,D,Q,M,L,R,$;const[F,J]=t([]),[K,W]=t(!1),{deleteProperty:G,createProperty:H,selectType:z,createMeta:I,updateMeta:U,updateProperty:X,selectPropertyJoinOperator:Y,clearProperty:Z}=u(O),{cacheWrap:ee}=v(),[oe,re]=t(!0),[te,ae]=t(),ie=null===(k=null==w?void 0:w.metas)||void 0===k?void 0:k.find((e=>"date"===e.key)),le=null===(b=null==w?void 0:w.metas)||void 0===b?void 0:b.find((e=>"frequency"===e.key)),ne=null===(N=null==w?void 0:w.metas)||void 0===N?void 0:N.find((e=>"eventName"===e.key)),[de,ue]=t(!1),[ve,pe]=t(!1),[se,ce]=t(!1);const ye=()=>e(void 0,void 0,void 0,(function*(){re(!0),ae(void 0);const e=yield ee((()=>_({})),"EVENT_NAMES");if(re(!1),!e)return J([]),void ae("Something went wrong while fetching the list. Please try again");const o=g.convertToGroupOptions(e,(null==ne?void 0:ne.value)?[ne.value]:void 0);if("create"!==j&&ne)return J([...o]),void W(!0);J([...o]),W(!0)}));return a((()=>{ye()}),[]),o(m,Object.assign({selectPropertyJoinOperator:Y,node:w,addPropertyBtnText:(null==ne?void 0:ne.value)&&"Add event property",deleteProperty:G,createProperty:H,propertySelectorText:"Select property",fetchPropertyData:function(){return e(this,void 0,void 0,(function*(){var e;return yield(e=null==ne?void 0:ne.value,ee((()=>_({query:{eventName:e}})),`EVENT_NAMES_${e}`))}))},onPropertyNameSelect:function(o,r){return e(this,void 0,void 0,(function*(){if(r.name===o.id&&r.dataType===o.type||X(Object.assign(Object.assign({},r),{name:o.id,dataType:o.type,operator:void 0,value:void 0,error:{}}),w._id),!o.needValuesRetrieval)return[];const e=yield((e,o)=>ee((()=>_({query:{eventName:e,propertyName:o}})),`EVENT_NAMES_${e}_${o}`))(null==ne?void 0:ne.value,o.id);if(!e)throw new Error("Something went wrong while fetching the list. Please try again");return e}))},onPropertyOperatorChange:function(e,o){X(Object.assign(Object.assign({},o),{operator:e,value:void 0,error:{}}),w._id)},onPropertyValueChange:function(e,o){var r;const t="string"===o.dataType&&f.includes(null!==(r=o.operator)&&void 0!==r?r:"")?h(e):{};X(Object.assign(Object.assign({},o),{value:e,error:t}),w._id)},mode:j,onPropertyValueSearch:function(o,r){return e(this,void 0,void 0,(function*(){const t=yield((o,r,t)=>e(void 0,void 0,void 0,(function*(){return yield _({query:{eventName:o,propertyName:r,searchKey:t}})})))(null==ne?void 0:ne.value,r.name,o);if((null==t?void 0:t.error)||!(null==t?void 0:t.data))throw new Error((null==t?void 0:t.error)||"Something went wrong while fetching the list. Please try again");return t.data.map((e=>({label:e.name,value:e.id,selected:!1})))}))}},{children:r("div",Object.assign({style:{flexDirection:"column",display:"flex",gap:12}},{children:[r("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[o(l,{disabled:"view"===j,selectedType:w.type,allowedList:T,onSelect:function(e){ue(!0),J((e=>[...i(e,{selected:!1})])),setTimeout((()=>{z(e.value,w._id),ue(!1)}),1)}}),!de&&o(y,{isSearchable:!0,isLoading:oe,optionsErrorState:te?{title:"Failed to load options",subTitle:te}:void 0,onRetryOptionsFetch:ye,disabled:"view"===j,width:"200px",dropdownLabel:"Select event name",options:F,selectedValues:(null==ne?void 0:ne.value)?[ne.value]:void 0,onSelect:function(e){Array.isArray(e)||(Z(w._id),ne?U({key:"eventName",value:e.value,error:{}},w._id):I({key:"eventName",value:e.value},w._id),le?(pe(!0),setTimeout((()=>{U({key:"frequency",value:{dataType:p.frequency,operator:s.atleast,value:1},error:{}},w._id),pe(!1)}),1)):I({key:"frequency",value:{dataType:p.frequency,operator:s.atleast,value:1}},w._id),ie?(ce(!0),setTimeout((()=>{U({key:"date",value:{dataType:p.date,operator:c["last 30 days"]},error:{}},w._id),ce(!1)}),1)):I({key:"date",value:{dataType:p.date,operator:c["last 30 days"]}},w._id))},error:null!==(x=null!==(q=null===(E=null===(S=null===(P=w.metas)||void 0===P?void 0:P[0])||void 0===S?void 0:S.error)||void 0===E?void 0:E.key)&&void 0!==q?q:null===(V=null==ne?void 0:ne.error)||void 0===V?void 0:V.key)&&void 0!==x?x:null===(C=null==ne?void 0:ne.error)||void 0===C?void 0:C.value})]})),(null==le?void 0:le.key)&&!ve&&o(n,{disabled:"view"===j,extra:{},errors:{val:null===(A=null===(B=le.error)||void 0===B?void 0:B.value)||void 0===A?void 0:A.value,operator:null===(Q=null===(D=le.error)||void 0===D?void 0:D.value)||void 0===Q?void 0:Q.operator},connectorVal:le.value.value,connectorType:le.value.dataType,defaultConnector:le.value.operator,onOperatorChange:function(e){U({key:"frequency",value:{dataType:p.frequency,operator:e,value:1},error:{}},w._id)},onValueChange:function(e){var o;K&&U({key:"frequency",value:{dataType:p.frequency,operator:null===(o=null==le?void 0:le.value)||void 0===o?void 0:o.operator,value:e},error:{}},w._id)}}),(null==ie?void 0:ie.key)&&!se&&o(n,{disabled:"view"===j,extra:{},errors:{val:null===(L=null===(M=ie.error)||void 0===M?void 0:M.value)||void 0===L?void 0:L.value,operator:null===($=null===(R=ie.error)||void 0===R?void 0:R.value)||void 0===$?void 0:$.operator},connectorVal:ie.value.value,connectorType:ie.value.dataType,defaultConnector:ie.value.operator,onOperatorChange:function(e){U({key:"date",value:{dataType:p.date,operator:e,value:void 0},error:{}},w._id)},onValueChange:function(e){var o;K&&U({key:"date",value:{dataType:p.date,operator:null===(o=null==ie?void 0:ie.value)||void 0===o?void 0:o.operator,value:e},error:{}},w._id)}})]}))}))};export{w as default};
1
+ import{__awaiter as e}from"../../../../../_virtual/_tslib.js";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as t,useEffect as a}from"react";import{iterateOnOptions as i}from"../../../../dropdown/OpenedDropdown/utils/iterationOnOptions.js";import l from"../../../components/AllowedListDropdown.js";import n from"../../../components/Connectors/Connector.js";import{ApiResponseHelper as d}from"../../../helpers/ApiResponse.helper.js";import{useQueryBuilder as u}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as v}from"../../../hooks/useQueryBuilderCache.js";import{QueryBuilderConnectorType as p}from"../../../types/QueryBuilderEnum.type.js";import{FREQUENCY_OPERATORS as s,DATE_OPERATORS as c}from"../../../types/QueryBuilderOperator.type.js";import y from"../../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as m}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";import{CONTAINS_OPERATORS as f,getContainsFilterError as h}from"../../../helpers/SegmentValidator.js";const g=new d,w=({node:d,allowedNodes:w,apiHandler:T,mode:_,selectorKey:j})=>{var O,k,b,N,P,S,E,q,V,x,C,B,A,D,Q,M,L,R;const[$,F]=t([]),[J,K]=t(!1),{deleteProperty:W,createProperty:G,selectType:H,createMeta:z,updateMeta:I,updateProperty:U,selectPropertyJoinOperator:X,clearProperty:Y}=u(j),{cacheWrap:Z}=v(),[ee,oe]=t(!0),[re,te]=t(),ae=null===(O=null==d?void 0:d.metas)||void 0===O?void 0:O.find((e=>"date"===e.key)),ie=null===(k=null==d?void 0:d.metas)||void 0===k?void 0:k.find((e=>"frequency"===e.key)),le=null===(b=null==d?void 0:d.metas)||void 0===b?void 0:b.find((e=>"eventName"===e.key)),[ne,de]=t(!1),[ue,ve]=t(!1),[pe,se]=t(!1);const ce=()=>e(void 0,void 0,void 0,(function*(){oe(!0),te(void 0);const e=yield Z((()=>T({})),"EVENT_NAMES");if(oe(!1),!e)return F([]),void te("Something went wrong while fetching the list. Please try again");const o=g.convertToGroupOptions(e,(null==le?void 0:le.value)?[le.value]:void 0);if("create"!==_&&le)return F([...o]),void K(!0);F([...o]),K(!0)}));return a((()=>{ce()}),[]),o(m,Object.assign({selectPropertyJoinOperator:X,node:d,addPropertyBtnText:(null==le?void 0:le.value)&&"Add event property",deleteProperty:W,createProperty:G,propertySelectorText:"Select property",fetchPropertyData:function(){return e(this,void 0,void 0,(function*(){var e;return yield(e=null==le?void 0:le.value,Z((()=>T({query:{eventName:e}})),`EVENT_NAMES_${e}`))}))},onPropertyNameSelect:function(o,r){return e(this,void 0,void 0,(function*(){if(r.name===o.id&&r.dataType===o.type||U(Object.assign(Object.assign({},r),{name:o.id,dataType:o.type,operator:void 0,value:void 0,error:{}}),d._id),!o.needValuesRetrieval)return[];const e=yield((e,o)=>Z((()=>T({query:{eventName:e,propertyName:o}})),`EVENT_NAMES_${e}_${o}`))(null==le?void 0:le.value,o.id);if(!e)throw new Error("Something went wrong while fetching the list. Please try again");return e}))},onPropertyOperatorChange:function(e,o){U(Object.assign(Object.assign({},o),{operator:e,value:void 0,error:{}}),d._id)},onPropertyValueChange:function(e,o){var r;const t="string"===o.dataType&&f.includes(null!==(r=o.operator)&&void 0!==r?r:"")?h(e):{};U(Object.assign(Object.assign({},o),{value:e,error:t}),d._id)},mode:_,onPropertyValueSearch:function(o,r){return e(this,void 0,void 0,(function*(){const t=yield((o,r,t)=>e(void 0,void 0,void 0,(function*(){return yield T({query:{eventName:o,propertyName:r,searchKey:t}})})))(null==le?void 0:le.value,r.name,o);if((null==t?void 0:t.error)||!(null==t?void 0:t.data))throw new Error((null==t?void 0:t.error)||"Something went wrong while fetching the list. Please try again");return t.data.map((e=>({label:e.name,value:e.id,selected:!1})))}))}},{children:r("div",Object.assign({style:{flexDirection:"column",display:"flex",gap:12}},{children:[r("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[o(l,{disabled:"view"===_,selectedType:d.type,allowedList:w,onSelect:function(e){de(!0),F((e=>[...i(e,{selected:!1})])),setTimeout((()=>{H(e.value,d._id),de(!1)}),1)}}),!ne&&o(y,{isSearchable:!0,isLoading:ee,optionsErrorState:re?{title:"Failed to load options",subTitle:re}:void 0,onRetryOptionsFetch:ce,disabled:"view"===_,width:"200px",dropdownLabel:"Select event name",options:$,selectedValues:(null==le?void 0:le.value)?[le.value]:void 0,onSelect:function(e){Array.isArray(e)||(Y(d._id),le?I({key:"eventName",value:e.value,error:{}},d._id):z({key:"eventName",value:e.value},d._id),ie?(ve(!0),setTimeout((()=>{I({key:"frequency",value:{dataType:p.frequency,operator:s.atleast,value:1},error:{}},d._id),ve(!1)}),1)):z({key:"frequency",value:{dataType:p.frequency,operator:s.atleast,value:1}},d._id),ae?(se(!0),setTimeout((()=>{I({key:"date",value:{dataType:p.date,operator:c["last 30 days"]},error:{}},d._id),se(!1)}),1)):z({key:"date",value:{dataType:p.date,operator:c["last 30 days"]}},d._id))},error:null!==(V=null!==(E=null===(S=null===(P=null===(N=d.metas)||void 0===N?void 0:N[0])||void 0===P?void 0:P.error)||void 0===S?void 0:S.key)&&void 0!==E?E:null===(q=null==le?void 0:le.error)||void 0===q?void 0:q.key)&&void 0!==V?V:null===(x=null==le?void 0:le.error)||void 0===x?void 0:x.value})]})),(null==ie?void 0:ie.key)&&!ue&&o(n,{disabled:"view"===_,extra:{},errors:{val:null===(B=null===(C=ie.error)||void 0===C?void 0:C.value)||void 0===B?void 0:B.value,operator:null===(D=null===(A=ie.error)||void 0===A?void 0:A.value)||void 0===D?void 0:D.operator},connectorVal:ie.value.value,connectorType:ie.value.dataType,defaultConnector:ie.value.operator,onOperatorChange:function(e){I({key:"frequency",value:{dataType:p.frequency,operator:e,value:1},error:{}},d._id)},onValueChange:function(e){var o;J&&I({key:"frequency",value:{dataType:p.frequency,operator:null===(o=null==ie?void 0:ie.value)||void 0===o?void 0:o.operator,value:e},error:{}},d._id)}}),(null==ae?void 0:ae.key)&&!pe&&o(n,{disabled:"view"===_,extra:{},errors:{val:null===(M=null===(Q=ae.error)||void 0===Q?void 0:Q.value)||void 0===M?void 0:M.value,operator:null===(R=null===(L=ae.error)||void 0===L?void 0:L.value)||void 0===R?void 0:R.operator},connectorVal:ae.value.value,connectorType:ae.value.dataType,defaultConnector:ae.value.operator,onOperatorChange:function(e){I({key:"date",value:{dataType:p.date,operator:e,value:void 0},error:{}},d._id)},onValueChange:function(e){var o;J&&I({key:"date",value:{dataType:p.date,operator:null===(o=null==ae?void 0:ae.value)||void 0===o?void 0:o.operator,value:e},error:{}},d._id)}})]}))}))};export{w as default};
2
2
  //# sourceMappingURL=EventFilter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventFilter.js","sources":["../../../../../../../src/components/QueryBuilder/Filters/Event/components/EventFilter.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { iterateOnOptions } from '@src/components/dropdown/OpenedDropdown/utils/iterationOnOptions';\nimport { DropdownOption, SingleOption } from '@src/components/dropdown/type';\nimport AllowedListDropdown from '@src/components/QueryBuilder/components/AllowedListDropdown';\nimport Connector from '@src/components/QueryBuilder/components/Connectors/Connector';\nimport { ApiResponseHelper } from '@src/components/QueryBuilder/helpers/ApiResponse.helper';\nimport { useQueryBuilder } from '@src/components/QueryBuilder/hooks/useQueryBuilder';\nimport { useQueryBuilderCache } from '@src/components/QueryBuilder/hooks/useQueryBuilderCache';\nimport {\n\tConnectorError,\n\tQueryBuilderConnector,\n\tQueryBuilderProperty,\n\tQueryBuilderType,\n} from '@src/components/QueryBuilder/types/QueryBuilder.type';\nimport { QueryBuilderAPIData } from '@src/components/QueryBuilder/types/QueryBuilderAPI.type';\nimport { CONNECTOR_VALUE_TYPE } from '@src/components/QueryBuilder/types/QueryBuilderConnector.type';\nimport { QueryBuilderConnectorType } from '@src/components/QueryBuilder/types/QueryBuilderEnum.type';\nimport { QueryBuilderNodeProps } from '@src/components/QueryBuilder/types/QueryBuilderNodeProps.type';\nimport {\n\tCONNECTOR_OPERATORS,\n\tDATE_OPERATORS,\n\tFREQUENCY_OPERATORS,\n} from '@src/components/QueryBuilder/types/QueryBuilderOperator.type';\nimport DropdownWrapper from '../../../components/DropdownWrapper';\nimport { BaseQueryBuilderNode } from '../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode';\nimport {\n\tCONTAINS_OPERATORS,\n\tgetContainsFilterError,\n} from '../../../helpers/SegmentValidator';\n\nconst apiResponseHelper = new ApiResponseHelper();\n\nconst EventFilter: React.FC<QueryBuilderNodeProps> = ({\n\tnode,\n\tallowedNodes,\n\tapiHandler,\n\tmode,\n\tselectorKey,\n}) => {\n\tconst [eventNames, setEventName] = useState<DropdownOption[]>([]);\n\tconst [mounted, setMountFlag] = useState(false);\n\n\tconst {\n\t\tdeleteProperty,\n\t\tcreateProperty,\n\t\tselectType,\n\t\tcreateMeta,\n\t\tupdateMeta,\n\t\tupdateProperty,\n\t\tselectPropertyJoinOperator,\n\t\tclearProperty,\n\t} = useQueryBuilder(selectorKey);\n\tconst { cacheWrap } = useQueryBuilderCache();\n\n\tconst [eventNameFetching, setEventNameFetchingStatus] = useState(true);\n\tconst [eventNameFetchError, setEventNameFetchError] = useState<string>();\n\n\tconst dateMeta = node?.metas?.find((meta) => meta.key === 'date');\n\tconst frequencyMeta = node?.metas?.find((meta) => meta.key === 'frequency');\n\tconst nameMeta = node?.metas?.find((meta) => meta.key === 'eventName');\n\n\tconst [refreshEventName, setRefreshEventName] = useState(false);\n\tconst [refreshFreq, setRefreshFreq] = useState(false);\n\tconst [refreshDate, setRefreshDate] = useState(false);\n\n\tconst getEventNames = () =>\n\t\tcacheWrap(() => apiHandler<undefined>({}), 'EVENT_NAMES');\n\n\tconst getEventPropertyKeys = (eventName: string) =>\n\t\tcacheWrap(\n\t\t\t() => apiHandler<{ eventName: string }>({ query: { eventName } }),\n\t\t\t`EVENT_NAMES_${eventName}`,\n\t\t);\n\n\tconst getEventPropertiesValue = (\n\t\teventName: string,\n\t\tpropertyName: string | number,\n\t) =>\n\t\tcacheWrap(\n\t\t\t() =>\n\t\t\t\tapiHandler<{ eventName: string; propertyName: string | number }>({\n\t\t\t\t\tquery: { eventName, propertyName },\n\t\t\t\t}),\n\t\t\t`EVENT_NAMES_${eventName}_${propertyName}`,\n\t\t);\n\n\tconst searchEventPropertiesValue = async (\n\t\teventName: string,\n\t\tpropertyName: string | number,\n\t\tsearchKey: string,\n\t) =>\n\t\tawait apiHandler<{\n\t\t\teventName: string;\n\t\t\tpropertyName: string | number;\n\t\t\tsearchKey: string;\n\t\t}>({\n\t\t\tquery: { eventName, propertyName, searchKey },\n\t\t});\n\n\tfunction handleEventNameSelection(option: DropdownOption | DropdownOption[]) {\n\t\tif (!Array.isArray(option)) {\n\t\t\tclearProperty(node._id);\n\n\t\t\tif (nameMeta) {\n\t\t\t\tupdateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'eventName',\n\t\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\t\terror: {},\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'eventName',\n\t\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (frequencyMeta) {\n\t\t\t\tsetRefreshFreq(true);\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tupdateMeta(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'frequency',\n\t\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\t\tdataType: QueryBuilderConnectorType.frequency,\n\t\t\t\t\t\t\t\toperator: FREQUENCY_OPERATORS.atleast,\n\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terror: {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tnode._id,\n\t\t\t\t\t);\n\t\t\t\t\tsetRefreshFreq(false);\n\t\t\t\t}, 1);\n\t\t\t} else {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'frequency',\n\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\tdataType: QueryBuilderConnectorType.frequency,\n\t\t\t\t\t\t\toperator: FREQUENCY_OPERATORS.atleast,\n\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (dateMeta) {\n\t\t\t\tsetRefreshDate(true);\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tupdateMeta(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'date',\n\t\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\t\tdataType: QueryBuilderConnectorType.date,\n\t\t\t\t\t\t\t\toperator: DATE_OPERATORS['last 30 days'],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terror: {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tnode._id,\n\t\t\t\t\t);\n\t\t\t\t\tsetRefreshDate(false);\n\t\t\t\t}, 1);\n\t\t\t} else {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'date',\n\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\tdataType: QueryBuilderConnectorType.date,\n\t\t\t\t\t\t\toperator: DATE_OPERATORS['last 30 days'],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\t\t} else {\n\t\t\t/** this will never be true, as option will never be an array */\n\t\t}\n\t}\n\n\tfunction handleFrequencyOperatorChange(operator: CONNECTOR_OPERATORS) {\n\t\tupdateMeta(\n\t\t\t{\n\t\t\t\tkey: 'frequency',\n\t\t\t\tvalue: {\n\t\t\t\t\tdataType: QueryBuilderConnectorType.frequency,\n\t\t\t\t\toperator: operator as FREQUENCY_OPERATORS,\n\t\t\t\t\tvalue: 1,\n\t\t\t\t},\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction handleFrequencyValueChange(value: CONNECTOR_VALUE_TYPE) {\n\t\tif (mounted)\n\t\t\tupdateMeta(\n\t\t\t\t{\n\t\t\t\t\tkey: 'frequency',\n\t\t\t\t\tvalue: {\n\t\t\t\t\t\tdataType: QueryBuilderConnectorType.frequency,\n\t\t\t\t\t\toperator: (\n\t\t\t\t\t\t\tfrequencyMeta?.value /** frequency meta has a connector as value */ as QueryBuilderConnector\n\t\t\t\t\t\t)?.operator,\n\t\t\t\t\t\tvalue: value as number,\n\t\t\t\t\t},\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t}\n\n\tfunction handleDateOperatorChange(operator: CONNECTOR_OPERATORS) {\n\t\tupdateMeta(\n\t\t\t{\n\t\t\t\tkey: 'date',\n\t\t\t\tvalue: {\n\t\t\t\t\tdataType: QueryBuilderConnectorType.date,\n\t\t\t\t\toperator: operator as DATE_OPERATORS,\n\t\t\t\t\tvalue: undefined,\n\t\t\t\t},\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction handleDateValueChange(value: CONNECTOR_VALUE_TYPE) {\n\t\tif (mounted)\n\t\t\tupdateMeta(\n\t\t\t\t{\n\t\t\t\t\tkey: 'date',\n\t\t\t\t\tvalue: {\n\t\t\t\t\t\tdataType: QueryBuilderConnectorType.date,\n\t\t\t\t\t\toperator: (\n\t\t\t\t\t\t\tdateMeta?.value as /** date meta has a connector as value */ QueryBuilderConnector\n\t\t\t\t\t\t)?.operator,\n\t\t\t\t\t\tvalue: value as Date | Date[],\n\t\t\t\t\t},\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t}\n\n\tconst loadEventNames = async () => {\n\t\tsetEventNameFetchingStatus(true);\n\t\tsetEventNameFetchError(undefined);\n\n\t\tconst response = await getEventNames();\n\t\tsetEventNameFetchingStatus(false);\n\n\t\tif (!response) {\n\t\t\tsetEventName([]);\n\t\t\tsetEventNameFetchError(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tconst eventNameOptions = apiResponseHelper.convertToGroupOptions(\n\t\t\tresponse,\n\t\t\tnameMeta?.value ? [nameMeta.value as string] : undefined,\n\t\t);\n\n\t\tif (mode !== 'create') {\n\t\t\tif (nameMeta) {\n\t\t\t\tsetEventName([...eventNameOptions]);\n\t\t\t\tsetMountFlag(true);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tsetEventName([...eventNameOptions]);\n\t\tsetMountFlag(true);\n\t};\n\n\tuseEffect(() => {\n\t\tloadEventNames();\n\t}, []);\n\n\tasync function fetchPropertyData() {\n\t\tconst response = await getEventPropertyKeys(\n\t\t\tnameMeta?.value /** value for name meta is always */ as string,\n\t\t);\n\n\t\treturn response;\n\t}\n\n\tasync function onPropertyNameSelect(\n\t\tpropertyName: QueryBuilderAPIData,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst isRetry =\n\t\t\tproperty.name === propertyName.id &&\n\t\t\tproperty.dataType === propertyName.type;\n\n\t\tif (!isRetry) {\n\t\t\tupdateProperty(\n\t\t\t\t{\n\t\t\t\t\t...property,\n\t\t\t\t\tname: propertyName.id,\n\t\t\t\t\tdataType: propertyName.type,\n\t\t\t\t\toperator: undefined,\n\t\t\t\t\tvalue: undefined,\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\n\t\tif (!propertyName.needValuesRetrieval) return [];\n\n\t\tconst response = await getEventPropertiesValue(\n\t\t\tnameMeta?.value /** value for name meta is always */ as string,\n\t\t\tpropertyName.id,\n\t\t);\n\n\t\tif (!response) {\n\t\t\tthrow new Error(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\treturn response;\n\t}\n\n\tfunction onPropertyOperatorChange(\n\t\toption: CONNECTOR_OPERATORS,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\toperator: option,\n\t\t\t\tvalue: undefined,\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction onPropertyValueChange(\n\t\tvalue: CONNECTOR_VALUE_TYPE,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst isContainsFilter =\n\t\t\tproperty.dataType === 'string' &&\n\t\t\tCONTAINS_OPERATORS.includes(property.operator ?? '');\n\t\tconst error = isContainsFilter ? getContainsFilterError(value) : {};\n\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\tvalue,\n\t\t\t\terror,\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction handleFilterSelection(option: DropdownOption | DropdownOption[]) {\n\t\tsetRefreshEventName(true);\n\n\t\tsetEventName((prev) => {\n\t\t\tconst updatedOptions = iterateOnOptions(prev, {\n\t\t\t\tselected: false,\n\t\t\t});\n\n\t\t\treturn [...updatedOptions];\n\t\t});\n\t\tsetTimeout(() => {\n\t\t\tselectType((option as SingleOption).value as QueryBuilderType, node._id);\n\t\t\tsetRefreshEventName(false);\n\t\t}, 1);\n\t}\n\n\tasync function onPropertyValueSearch(\n\t\tsearchKey: string,\n\t\tproperty: QueryBuilderProperty,\n\t): Promise<DropdownOption[]> {\n\t\tconst response = await searchEventPropertiesValue(\n\t\t\tnameMeta?.value as string,\n\t\t\tproperty.name as string,\n\t\t\tsearchKey,\n\t\t);\n\n\t\tif (response?.error || !response?.data) {\n\t\t\tthrow new Error(\n\t\t\t\tresponse?.error ||\n\t\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\treturn (response.data as QueryBuilderAPIData[]).map((option) => ({\n\t\t\tlabel: option.name,\n\t\t\tvalue: option.id,\n\t\t\tselected: false,\n\t\t})) as DropdownOption[];\n\t}\n\n\treturn (\n\t\t<BaseQueryBuilderNode\n\t\t\tselectPropertyJoinOperator={selectPropertyJoinOperator}\n\t\t\tnode={node}\n\t\t\taddPropertyBtnText={nameMeta?.value && 'Add event property'}\n\t\t\tdeleteProperty={deleteProperty}\n\t\t\tcreateProperty={createProperty}\n\t\t\tpropertySelectorText=\"Select property\"\n\t\t\tfetchPropertyData={fetchPropertyData}\n\t\t\tonPropertyNameSelect={onPropertyNameSelect}\n\t\t\tonPropertyOperatorChange={onPropertyOperatorChange}\n\t\t\tonPropertyValueChange={onPropertyValueChange}\n\t\t\tmode={mode}\n\t\t\tonPropertyValueSearch={onPropertyValueSearch}\n\t\t>\n\t\t\t<div style={{ flexDirection: 'column', display: 'flex', gap: 12 }}>\n\t\t\t\t<div style={{ flexDirection: 'row', display: 'flex', gap: 12 }}>\n\t\t\t\t\t<AllowedListDropdown\n\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\tselectedType={node.type}\n\t\t\t\t\t\tallowedList={allowedNodes}\n\t\t\t\t\t\tonSelect={handleFilterSelection}\n\t\t\t\t\t/>\n\n\t\t\t\t\t{!refreshEventName && (\n\t\t\t\t\t\t<DropdownWrapper\n\t\t\t\t\t\t\tisSearchable\n\t\t\t\t\t\t\tisLoading={eventNameFetching}\n\t\t\t\t\t\t\toptionsErrorState={\n\t\t\t\t\t\t\t\teventNameFetchError\n\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\ttitle: 'Failed to load options',\n\t\t\t\t\t\t\t\t\t\t\tsubTitle: eventNameFetchError,\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonRetryOptionsFetch={loadEventNames}\n\t\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\t\twidth={'200px'}\n\t\t\t\t\t\t\tdropdownLabel={'Select event name'}\n\t\t\t\t\t\t\toptions={eventNames}\n\t\t\t\t\t\t\tselectedValues={\n\t\t\t\t\t\t\t\tnameMeta?.value ? [nameMeta.value as string] : undefined\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonSelect={handleEventNameSelection}\n\t\t\t\t\t\t\terror={\n\t\t\t\t\t\t\t\t(node.metas?.[0]?.error?.key ??\n\t\t\t\t\t\t\t\t\tnameMeta?.error?.key ??\n\t\t\t\t\t\t\t\t\tnameMeta?.error?.value) as string\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t{frequencyMeta?.key && !refreshFreq && (\n\t\t\t\t\t<Connector\n\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\textra={{}}\n\t\t\t\t\t\terrors={{\n\t\t\t\t\t\t\tval: (frequencyMeta.error?.value as ConnectorError)?.value,\n\t\t\t\t\t\t\toperator: (frequencyMeta.error?.value as ConnectorError)\n\t\t\t\t\t\t\t\t?.operator,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tconnectorVal={\n\t\t\t\t\t\t\t(frequencyMeta.value as QueryBuilderConnector).value as number\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconnectorType={\n\t\t\t\t\t\t\t(frequencyMeta.value as QueryBuilderConnector).dataType\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefaultConnector={\n\t\t\t\t\t\t\t(frequencyMeta.value as QueryBuilderConnector).operator\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonOperatorChange={handleFrequencyOperatorChange}\n\t\t\t\t\t\tonValueChange={handleFrequencyValueChange}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{dateMeta?.key && !refreshDate && (\n\t\t\t\t\t<Connector\n\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\textra={{}}\n\t\t\t\t\t\terrors={{\n\t\t\t\t\t\t\tval: (dateMeta.error?.value as ConnectorError)?.value,\n\t\t\t\t\t\t\toperator: (dateMeta.error?.value as ConnectorError)?.operator,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tconnectorVal={\n\t\t\t\t\t\t\t(dateMeta.value as QueryBuilderConnector).value as Date | Date[]\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconnectorType={(dateMeta.value as QueryBuilderConnector).dataType}\n\t\t\t\t\t\tdefaultConnector={\n\t\t\t\t\t\t\t(dateMeta.value as QueryBuilderConnector).operator\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonOperatorChange={handleDateOperatorChange}\n\t\t\t\t\t\tonValueChange={handleDateValueChange}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</BaseQueryBuilderNode>\n\t);\n};\n\nexport default EventFilter;\n"],"names":["apiResponseHelper","ApiResponseHelper","EventFilter","_ref","node","allowedNodes","apiHandler","mode","selectorKey","eventNames","setEventName","useState","mounted","setMountFlag","deleteProperty","createProperty","selectType","createMeta","updateMeta","updateProperty","selectPropertyJoinOperator","clearProperty","useQueryBuilder","cacheWrap","useQueryBuilderCache","eventNameFetching","setEventNameFetchingStatus","eventNameFetchError","setEventNameFetchError","dateMeta","_a","metas","find","meta","key","frequencyMeta","_b","nameMeta","_c","refreshEventName","setRefreshEventName","refreshFreq","setRefreshFreq","refreshDate","setRefreshDate","loadEventNames","__awaiter","undefined","response","eventNameOptions","convertToGroupOptions","value","useEffect","_jsx","BaseQueryBuilderNode","Object","assign","addPropertyBtnText","propertySelectorText","fetchPropertyData","eventName","query","onPropertyNameSelect","propertyName","property","name","id","dataType","type","operator","error","_id","needValuesRetrieval","getEventPropertiesValue","Error","onPropertyOperatorChange","option","onPropertyValueChange","CONTAINS_OPERATORS","includes","getContainsFilterError","onPropertyValueSearch","searchKey","searchEventPropertiesValue","data","map","label","selected","children","_jsxs","style","flexDirection","display","gap","AllowedListDropdown","disabled","selectedType","allowedList","onSelect","prev","iterateOnOptions","setTimeout","DropdownWrapper","isSearchable","isLoading","optionsErrorState","title","subTitle","onRetryOptionsFetch","width","dropdownLabel","options","selectedValues","Array","isArray","QueryBuilderConnectorType","frequency","FREQUENCY_OPERATORS","atleast","date","DATE_OPERATORS","_j","_g","_f","_e","_d","_h","_k","Connector","extra","errors","val","_l","_m","_o","_p","connectorVal","connectorType","defaultConnector","onOperatorChange","onValueChange","_q","_r","_s","_t"],"mappings":"ohCA8BA,MAAMA,EAAoB,IAAIC,EAExBC,EAA+CC,IAMhD,IANiDC,KACrDA,EAAIC,aACJA,EAAYC,WACZA,EAAUC,KACVA,EAAIC,YACJA,GACAL,0CACA,MAAOM,EAAYC,GAAgBC,EAA2B,KACvDC,EAASC,GAAgBF,GAAS,IAEnCG,eACLA,EAAcC,eACdA,EAAcC,WACdA,EAAUC,WACVA,EAAUC,WACVA,EAAUC,eACVA,EAAcC,2BACdA,EAA0BC,cAC1BA,GACGC,EAAgBd,IACde,UAAEA,IAAcC,KAEfC,GAAmBC,IAA8Bf,GAAS,IAC1DgB,GAAqBC,IAA0BjB,IAEhDkB,GAAwB,QAAbC,EAAA1B,aAAA,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OACLiB,MAAO,CACNgB,SAAUgD,EAA0BI,KACpClD,SAEC,QADAvC,EAAAD,gBAAAA,GAAUsB,aACV,IAAArB,OAAA,EAAAA,EAAEuC,SACHlB,MAAOA,GAERmB,MAAO,CAAE,GAEVlE,EAAKmE,IAER,UA8PwB"}
1
+ {"version":3,"file":"EventFilter.js","sources":["../../../../../../../src/components/QueryBuilder/Filters/Event/components/EventFilter.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { iterateOnOptions } from '@src/components/dropdown/OpenedDropdown/utils/iterationOnOptions';\nimport { DropdownOption, SingleOption } from '@src/components/dropdown/type';\nimport AllowedListDropdown from '@src/components/QueryBuilder/components/AllowedListDropdown';\nimport Connector from '@src/components/QueryBuilder/components/Connectors/Connector';\nimport { ApiResponseHelper } from '@src/components/QueryBuilder/helpers/ApiResponse.helper';\nimport { useQueryBuilder } from '@src/components/QueryBuilder/hooks/useQueryBuilder';\nimport { useQueryBuilderCache } from '@src/components/QueryBuilder/hooks/useQueryBuilderCache';\nimport {\n\tConnectorError,\n\tQueryBuilderConnector,\n\tQueryBuilderProperty,\n\tQueryBuilderType,\n} from '@src/components/QueryBuilder/types/QueryBuilder.type';\nimport { QueryBuilderAPIData } from '@src/components/QueryBuilder/types/QueryBuilderAPI.type';\nimport { CONNECTOR_VALUE_TYPE } from '@src/components/QueryBuilder/types/QueryBuilderConnector.type';\nimport { QueryBuilderConnectorType } from '@src/components/QueryBuilder/types/QueryBuilderEnum.type';\nimport { QueryBuilderNodeProps } from '@src/components/QueryBuilder/types/QueryBuilderNodeProps.type';\nimport {\n\tCONNECTOR_OPERATORS,\n\tDATE_OPERATORS,\n\tFREQUENCY_OPERATORS,\n} from '@src/components/QueryBuilder/types/QueryBuilderOperator.type';\nimport DropdownWrapper from '../../../components/DropdownWrapper';\nimport { BaseQueryBuilderNode } from '../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode';\nimport {\n\tCONTAINS_OPERATORS,\n\tgetContainsFilterError,\n} from '../../../helpers/SegmentValidator';\n\nconst apiResponseHelper = new ApiResponseHelper();\n\nconst EventFilter: React.FC<QueryBuilderNodeProps> = ({\n\tnode,\n\tallowedNodes,\n\tapiHandler,\n\tmode,\n\tselectorKey,\n}) => {\n\tconst [eventNames, setEventName] = useState<DropdownOption[]>([]);\n\tconst [mounted, setMountFlag] = useState(false);\n\n\tconst {\n\t\tdeleteProperty,\n\t\tcreateProperty,\n\t\tselectType,\n\t\tcreateMeta,\n\t\tupdateMeta,\n\t\tupdateProperty,\n\t\tselectPropertyJoinOperator,\n\t\tclearProperty,\n\t} = useQueryBuilder(selectorKey);\n\tconst { cacheWrap } = useQueryBuilderCache();\n\n\tconst [eventNameFetching, setEventNameFetchingStatus] = useState(true);\n\tconst [eventNameFetchError, setEventNameFetchError] = useState<string>();\n\n\tconst dateMeta = node?.metas?.find((meta) => meta.key === 'date');\n\tconst frequencyMeta = node?.metas?.find((meta) => meta.key === 'frequency');\n\tconst nameMeta = node?.metas?.find((meta) => meta.key === 'eventName');\n\n\tconst [refreshEventName, setRefreshEventName] = useState(false);\n\tconst [refreshFreq, setRefreshFreq] = useState(false);\n\tconst [refreshDate, setRefreshDate] = useState(false);\n\n\tconst getEventNames = () =>\n\t\tcacheWrap(() => apiHandler<undefined>({}), 'EVENT_NAMES');\n\n\tconst getEventPropertyKeys = (eventName: string) =>\n\t\tcacheWrap(\n\t\t\t() => apiHandler<{ eventName: string }>({ query: { eventName } }),\n\t\t\t`EVENT_NAMES_${eventName}`,\n\t\t);\n\n\tconst getEventPropertiesValue = (\n\t\teventName: string,\n\t\tpropertyName: string | number,\n\t) =>\n\t\tcacheWrap(\n\t\t\t() =>\n\t\t\t\tapiHandler<{ eventName: string; propertyName: string | number }>({\n\t\t\t\t\tquery: { eventName, propertyName },\n\t\t\t\t}),\n\t\t\t`EVENT_NAMES_${eventName}_${propertyName}`,\n\t\t);\n\n\tconst searchEventPropertiesValue = async (\n\t\teventName: string,\n\t\tpropertyName: string | number,\n\t\tsearchKey: string,\n\t) =>\n\t\tawait apiHandler<{\n\t\t\teventName: string;\n\t\t\tpropertyName: string | number;\n\t\t\tsearchKey: string;\n\t\t}>({\n\t\t\tquery: { eventName, propertyName, searchKey },\n\t\t});\n\n\tfunction handleEventNameSelection(option: DropdownOption | DropdownOption[]) {\n\t\tif (!Array.isArray(option)) {\n\t\t\tclearProperty(node._id);\n\n\t\t\tif (nameMeta) {\n\t\t\t\tupdateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'eventName',\n\t\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\t\terror: {},\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'eventName',\n\t\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (frequencyMeta) {\n\t\t\t\tsetRefreshFreq(true);\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tupdateMeta(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'frequency',\n\t\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\t\tdataType: QueryBuilderConnectorType.frequency,\n\t\t\t\t\t\t\t\toperator: FREQUENCY_OPERATORS.atleast,\n\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terror: {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tnode._id,\n\t\t\t\t\t);\n\t\t\t\t\tsetRefreshFreq(false);\n\t\t\t\t}, 1);\n\t\t\t} else {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'frequency',\n\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\tdataType: QueryBuilderConnectorType.frequency,\n\t\t\t\t\t\t\toperator: FREQUENCY_OPERATORS.atleast,\n\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (dateMeta) {\n\t\t\t\tsetRefreshDate(true);\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tupdateMeta(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'date',\n\t\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\t\tdataType: QueryBuilderConnectorType.date,\n\t\t\t\t\t\t\t\toperator: DATE_OPERATORS['last 30 days'],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terror: {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tnode._id,\n\t\t\t\t\t);\n\t\t\t\t\tsetRefreshDate(false);\n\t\t\t\t}, 1);\n\t\t\t} else {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'date',\n\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\tdataType: QueryBuilderConnectorType.date,\n\t\t\t\t\t\t\toperator: DATE_OPERATORS['last 30 days'],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\t\t} else {\n\t\t\t/** this will never be true, as option will never be an array */\n\t\t}\n\t}\n\n\tfunction handleFrequencyOperatorChange(operator: CONNECTOR_OPERATORS) {\n\t\tupdateMeta(\n\t\t\t{\n\t\t\t\tkey: 'frequency',\n\t\t\t\tvalue: {\n\t\t\t\t\tdataType: QueryBuilderConnectorType.frequency,\n\t\t\t\t\toperator: operator as FREQUENCY_OPERATORS,\n\t\t\t\t\tvalue: 1,\n\t\t\t\t},\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction handleFrequencyValueChange(value: CONNECTOR_VALUE_TYPE) {\n\t\tif (mounted)\n\t\t\tupdateMeta(\n\t\t\t\t{\n\t\t\t\t\tkey: 'frequency',\n\t\t\t\t\tvalue: {\n\t\t\t\t\t\tdataType: QueryBuilderConnectorType.frequency,\n\t\t\t\t\t\toperator: (\n\t\t\t\t\t\t\tfrequencyMeta?.value /** frequency meta has a connector as value */ as QueryBuilderConnector\n\t\t\t\t\t\t)?.operator,\n\t\t\t\t\t\tvalue: value as number,\n\t\t\t\t\t},\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t}\n\n\tfunction handleDateOperatorChange(operator: CONNECTOR_OPERATORS) {\n\t\tupdateMeta(\n\t\t\t{\n\t\t\t\tkey: 'date',\n\t\t\t\tvalue: {\n\t\t\t\t\tdataType: QueryBuilderConnectorType.date,\n\t\t\t\t\toperator: operator as DATE_OPERATORS,\n\t\t\t\t\tvalue: undefined,\n\t\t\t\t},\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction handleDateValueChange(value: CONNECTOR_VALUE_TYPE) {\n\t\tif (mounted)\n\t\t\tupdateMeta(\n\t\t\t\t{\n\t\t\t\t\tkey: 'date',\n\t\t\t\t\tvalue: {\n\t\t\t\t\t\tdataType: QueryBuilderConnectorType.date,\n\t\t\t\t\t\toperator: (\n\t\t\t\t\t\t\tdateMeta?.value as /** date meta has a connector as value */ QueryBuilderConnector\n\t\t\t\t\t\t)?.operator,\n\t\t\t\t\t\tvalue: value as Date | Date[],\n\t\t\t\t\t},\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t}\n\n\tconst loadEventNames = async () => {\n\t\tsetEventNameFetchingStatus(true);\n\t\tsetEventNameFetchError(undefined);\n\n\t\tconst response = await getEventNames();\n\t\tsetEventNameFetchingStatus(false);\n\n\t\tif (!response) {\n\t\t\tsetEventName([]);\n\t\t\tsetEventNameFetchError(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tconst eventNameOptions = apiResponseHelper.convertToGroupOptions(\n\t\t\tresponse,\n\t\t\tnameMeta?.value ? [nameMeta.value as string] : undefined,\n\t\t);\n\n\t\tif (mode !== 'create') {\n\t\t\tif (nameMeta) {\n\t\t\t\tsetEventName([...eventNameOptions]);\n\t\t\t\tsetMountFlag(true);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tsetEventName([...eventNameOptions]);\n\t\tsetMountFlag(true);\n\t};\n\n\tuseEffect(() => {\n\t\tloadEventNames();\n\t}, []);\n\n\tasync function fetchPropertyData() {\n\t\tconst response = await getEventPropertyKeys(\n\t\t\tnameMeta?.value /** value for name meta is always */ as string,\n\t\t);\n\n\t\treturn response;\n\t}\n\n\tasync function onPropertyNameSelect(\n\t\tpropertyName: QueryBuilderAPIData,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst isRetry =\n\t\t\tproperty.name === propertyName.id &&\n\t\t\tproperty.dataType === propertyName.type;\n\n\t\tif (!isRetry) {\n\t\t\tupdateProperty(\n\t\t\t\t{\n\t\t\t\t\t...property,\n\t\t\t\t\tname: propertyName.id,\n\t\t\t\t\tdataType: propertyName.type,\n\t\t\t\t\toperator: undefined,\n\t\t\t\t\tvalue: undefined,\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\n\t\tif (!propertyName.needValuesRetrieval) return [];\n\n\t\tconst response = await getEventPropertiesValue(\n\t\t\tnameMeta?.value /** value for name meta is always */ as string,\n\t\t\tpropertyName.id,\n\t\t);\n\n\t\tif (!response) {\n\t\t\tthrow new Error(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\treturn response;\n\t}\n\n\tfunction onPropertyOperatorChange(\n\t\toption: CONNECTOR_OPERATORS,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\toperator: option,\n\t\t\t\tvalue: undefined,\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction onPropertyValueChange(\n\t\tvalue: CONNECTOR_VALUE_TYPE,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst isContainsFilter =\n\t\t\tproperty.dataType === 'string' &&\n\t\t\tCONTAINS_OPERATORS.includes(property.operator ?? '');\n\t\tconst error = isContainsFilter ? getContainsFilterError(value) : {};\n\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\tvalue,\n\t\t\t\terror,\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction handleFilterSelection(option: DropdownOption | DropdownOption[]) {\n\t\tsetRefreshEventName(true);\n\n\t\tsetEventName((prev) => {\n\t\t\tconst updatedOptions = iterateOnOptions(prev, {\n\t\t\t\tselected: false,\n\t\t\t});\n\n\t\t\treturn [...updatedOptions];\n\t\t});\n\t\tsetTimeout(() => {\n\t\t\tselectType((option as SingleOption).value as QueryBuilderType, node._id);\n\t\t\tsetRefreshEventName(false);\n\t\t}, 1);\n\t}\n\n\tasync function onPropertyValueSearch(\n\t\tsearchKey: string,\n\t\tproperty: QueryBuilderProperty,\n\t): Promise<DropdownOption[]> {\n\t\tconst response = await searchEventPropertiesValue(\n\t\t\tnameMeta?.value as string,\n\t\t\tproperty.name as string,\n\t\t\tsearchKey,\n\t\t);\n\n\t\tif (response?.error || !response?.data) {\n\t\t\tthrow new Error(\n\t\t\t\tresponse?.error ||\n\t\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\treturn (response.data as QueryBuilderAPIData[]).map((option) => ({\n\t\t\tlabel: option.name,\n\t\t\tvalue: option.id,\n\t\t\tselected: false,\n\t\t})) as DropdownOption[];\n\t}\n\n\treturn (\n\t\t<BaseQueryBuilderNode\n\t\t\tselectPropertyJoinOperator={selectPropertyJoinOperator}\n\t\t\tnode={node}\n\t\t\taddPropertyBtnText={nameMeta?.value && 'Add event property'}\n\t\t\tdeleteProperty={deleteProperty}\n\t\t\tcreateProperty={createProperty}\n\t\t\tpropertySelectorText=\"Select property\"\n\t\t\tfetchPropertyData={fetchPropertyData}\n\t\t\tonPropertyNameSelect={onPropertyNameSelect}\n\t\t\tonPropertyOperatorChange={onPropertyOperatorChange}\n\t\t\tonPropertyValueChange={onPropertyValueChange}\n\t\t\tmode={mode}\n\t\t\tonPropertyValueSearch={onPropertyValueSearch}\n\t\t>\n\t\t\t<div style={{ flexDirection: 'column', display: 'flex', gap: 12 }}>\n\t\t\t\t<div style={{ flexDirection: 'row', display: 'flex', gap: 12 }}>\n\t\t\t\t\t<AllowedListDropdown\n\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\tselectedType={node.type}\n\t\t\t\t\t\tallowedList={allowedNodes}\n\t\t\t\t\t\tonSelect={handleFilterSelection}\n\t\t\t\t\t/>\n\n\t\t\t\t\t{!refreshEventName && (\n\t\t\t\t\t\t<DropdownWrapper\n\t\t\t\t\t\t\tisSearchable\n\t\t\t\t\t\t\tisLoading={eventNameFetching}\n\t\t\t\t\t\t\toptionsErrorState={\n\t\t\t\t\t\t\t\teventNameFetchError\n\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\ttitle: 'Failed to load options',\n\t\t\t\t\t\t\t\t\t\t\tsubTitle: eventNameFetchError,\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonRetryOptionsFetch={loadEventNames}\n\t\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\t\twidth={'200px'}\n\t\t\t\t\t\t\tdropdownLabel={'Select event name'}\n\t\t\t\t\t\t\toptions={eventNames}\n\t\t\t\t\t\t\tselectedValues={\n\t\t\t\t\t\t\t\tnameMeta?.value ? [nameMeta.value as string] : undefined\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonSelect={handleEventNameSelection}\n\t\t\t\t\t\t\terror={\n\t\t\t\t\t\t\t\t(node.metas?.[0]?.error?.key ??\n\t\t\t\t\t\t\t\t\tnameMeta?.error?.key ??\n\t\t\t\t\t\t\t\t\tnameMeta?.error?.value) as string\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t{frequencyMeta?.key && !refreshFreq && (\n\t\t\t\t\t<Connector\n\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\textra={{}}\n\t\t\t\t\t\terrors={{\n\t\t\t\t\t\t\tval: (frequencyMeta.error?.value as ConnectorError)?.value,\n\t\t\t\t\t\t\toperator: (frequencyMeta.error?.value as ConnectorError)\n\t\t\t\t\t\t\t\t?.operator,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tconnectorVal={\n\t\t\t\t\t\t\t(frequencyMeta.value as QueryBuilderConnector).value as number\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconnectorType={\n\t\t\t\t\t\t\t(frequencyMeta.value as QueryBuilderConnector).dataType\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefaultConnector={\n\t\t\t\t\t\t\t(frequencyMeta.value as QueryBuilderConnector).operator\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonOperatorChange={handleFrequencyOperatorChange}\n\t\t\t\t\t\tonValueChange={handleFrequencyValueChange}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{dateMeta?.key && !refreshDate && (\n\t\t\t\t\t<Connector\n\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\textra={{}}\n\t\t\t\t\t\terrors={{\n\t\t\t\t\t\t\tval: (dateMeta.error?.value as ConnectorError)?.value,\n\t\t\t\t\t\t\toperator: (dateMeta.error?.value as ConnectorError)?.operator,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tconnectorVal={\n\t\t\t\t\t\t\t(dateMeta.value as QueryBuilderConnector).value as Date | Date[]\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconnectorType={(dateMeta.value as QueryBuilderConnector).dataType}\n\t\t\t\t\t\tdefaultConnector={\n\t\t\t\t\t\t\t(dateMeta.value as QueryBuilderConnector).operator\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonOperatorChange={handleDateOperatorChange}\n\t\t\t\t\t\tonValueChange={handleDateValueChange}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</BaseQueryBuilderNode>\n\t);\n};\n\nexport default EventFilter;\n"],"names":["apiResponseHelper","ApiResponseHelper","EventFilter","node","allowedNodes","apiHandler","mode","selectorKey","eventNames","setEventName","useState","mounted","setMountFlag","deleteProperty","createProperty","selectType","createMeta","updateMeta","updateProperty","selectPropertyJoinOperator","clearProperty","useQueryBuilder","cacheWrap","useQueryBuilderCache","eventNameFetching","setEventNameFetchingStatus","eventNameFetchError","setEventNameFetchError","dateMeta","_a","metas","find","meta","key","frequencyMeta","_b","nameMeta","_c","refreshEventName","setRefreshEventName","refreshFreq","setRefreshFreq","refreshDate","setRefreshDate","loadEventNames","__awaiter","undefined","response","eventNameOptions","convertToGroupOptions","value","useEffect","_jsx","BaseQueryBuilderNode","Object","assign","addPropertyBtnText","propertySelectorText","fetchPropertyData","eventName","query","onPropertyNameSelect","propertyName","property","name","id","dataType","type","operator","error","_id","needValuesRetrieval","getEventPropertiesValue","Error","onPropertyOperatorChange","option","onPropertyValueChange","CONTAINS_OPERATORS","includes","getContainsFilterError","onPropertyValueSearch","searchKey","searchEventPropertiesValue","data","map","label","selected","children","_jsxs","style","flexDirection","display","gap","AllowedListDropdown","disabled","selectedType","allowedList","onSelect","prev","iterateOnOptions","setTimeout","DropdownWrapper","isSearchable","isLoading","optionsErrorState","title","subTitle","onRetryOptionsFetch","width","dropdownLabel","options","selectedValues","Array","isArray","QueryBuilderConnectorType","frequency","FREQUENCY_OPERATORS","atleast","date","DATE_OPERATORS","_j","_g","_f","_e","_d","_h","_k","Connector","extra","errors","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AA,EAAAA,EAAE3F,MAChDkB,SAAmD,UAA1B,QAAd0E,EAAAlH,GAASyC,aAAK,IAAAyE,OAAA,EAAAA,EAAE5F,aAAwB,IAAA6F,OAAA,EAAAA,EAAE3E,UAEtDmE,aACE3G,GAASsB,MAAgCA,MAE3CsF,cAAgB5G,GAASsB,MAAgCgB,SACzDuE,iBACE7G,GAASsB,MAAgCkB,SAE3CsE,iBAxRL,SAAkCtE,GACjCnD,EACC,CACCgB,IAAK,OACLiB,MAAO,CACNgB,SAAUgD,EAA0BI,KACpClD,SAAUA,EACVlB,WAAOJ,GAERuB,MAAO,CAAE,GAEVlE,EAAKmE,IAEP,EA4QKqE,cA1QL,SAA+BzF,SAC1BvC,GACHM,EACC,CACCgB,IAAK,OACLiB,MAAO,CACNgB,SAAUgD,EAA0BI,KACpClD,SAEC,QADAvC,EAAAD,gBAAAA,GAAUsB,aACV,IAAArB,OAAA,EAAAA,EAAEuC,SACHlB,MAAOA,GAERmB,MAAO,CAAE,GAEVlE,EAAKmE,IAER,UA8PwB"}
@@ -1,2 +1,2 @@
1
- import{__awaiter as e}from"../../../../../_virtual/_tslib.js";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{useState as l,useEffect as r}from"react";import t from"../../../components/AllowedListDropdown.js";import{ApiResponseHelper as d}from"../../../helpers/ApiResponse.helper.js";import{useQueryBuilder as n}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as s}from"../../../hooks/useQueryBuilderCache.js";import{QueryBuilderType as a}from"../../../types/QueryBuilder.type.js";import u from"../../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as v}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const p=new d,c=d=>{let{node:c,allowedNodes:m,apiHandler:y,mode:f,selectorKey:h}=d;var g,w,j,b,k,A,S,T,_;const{updateMeta:B,selectType:D,createMeta:E}=n(h),{cacheWrap:I}=s(),[L,x]=l(!1),[N,Q]=l(),[F,M]=l([]),O=c.metas.find((e=>"segmentID"===e.key));const R=()=>e(void 0,void 0,void 0,(function*(){x(!0),Q(void 0);const e=yield I((()=>y({})),"SEGMENT_FILTER");if(e&&Array.isArray(e))M([...e.map((e=>({label:e.name,value:e.id,description:e.description,selected:"create"!==f&&(!!(null==O?void 0:O.value)&&O.value===e.id)})))]);else if(e){const o=p.convertToGroupOptions(e,(null==O?void 0:O.value)?[O.value]:void 0);M([...o])}else M([]),Q("Something went wrong while fetching the list. Please try again");x(!1)}));return r((()=>{O||E({key:"segmentID"},c._id),R()}),[]),o(v,Object.assign({node:c,mode:f},{children:i("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[o(t,{disabled:"view"===f,loading:L,selectedType:c.type,allowedList:m,onSelect:function(e){Array.isArray(e)||(x(!0),D(e.value,c._id),e.value==a.SEGMENT_FILTER&&E({key:"segmentID"},c._id)),x(!1)}}),(null===(w=null===(g=null==c?void 0:c.metas)||void 0===g?void 0:g[0])||void 0===w?void 0:w.key)&&o(u,{selectedValues:(null==O?void 0:O.value)?[O.value]:void 0,isSearchable:!0,isLoading:L,optionsErrorState:N?{title:"Failed to load options",subTitle:N}:void 0,onRetryOptionsFetch:R,disabled:"view"===f,width:"200px",dropdownLabel:"Select segment",options:F,onSelect:function(e){Array.isArray(e)||B({key:"segmentID",value:e.value,error:{}},c._id)},error:null!==(T=null!==(A=null===(k=null===(b=null===(j=c.metas)||void 0===j?void 0:j[0])||void 0===b?void 0:b.error)||void 0===k?void 0:k.key)&&void 0!==A?A:null===(S=null==O?void 0:O.error)||void 0===S?void 0:S.key)&&void 0!==T?T:null===(_=null==O?void 0:O.error)||void 0===_?void 0:_.value})]}))}))};export{c as default};
1
+ import{__awaiter as e}from"../../../../../_virtual/_tslib.js";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{useState as r,useEffect as l}from"react";import t from"../../../components/AllowedListDropdown.js";import{ApiResponseHelper as d}from"../../../helpers/ApiResponse.helper.js";import{useQueryBuilder as n}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as s}from"../../../hooks/useQueryBuilderCache.js";import{QueryBuilderType as a}from"../../../types/QueryBuilder.type.js";import u from"../../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as v}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const p=new d,c=({node:d,allowedNodes:c,apiHandler:m,mode:y,selectorKey:f})=>{var h,g,w,j,b,k,A,S,T;const{updateMeta:_,selectType:B,createMeta:D}=n(f),{cacheWrap:E}=s(),[I,L]=r(!1),[x,N]=r(),[Q,F]=r([]),M=d.metas.find((e=>"segmentID"===e.key));const O=()=>e(void 0,void 0,void 0,(function*(){L(!0),N(void 0);const e=yield E((()=>m({})),"SEGMENT_FILTER");if(e&&Array.isArray(e))F([...e.map((e=>({label:e.name,value:e.id,description:e.description,selected:"create"!==y&&(!!(null==M?void 0:M.value)&&M.value===e.id)})))]);else if(e){const o=p.convertToGroupOptions(e,(null==M?void 0:M.value)?[M.value]:void 0);F([...o])}else F([]),N("Something went wrong while fetching the list. Please try again");L(!1)}));return l((()=>{M||D({key:"segmentID"},d._id),O()}),[]),o(v,Object.assign({node:d,mode:y},{children:i("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[o(t,{disabled:"view"===y,loading:I,selectedType:d.type,allowedList:c,onSelect:function(e){Array.isArray(e)||(L(!0),B(e.value,d._id),e.value==a.SEGMENT_FILTER&&D({key:"segmentID"},d._id)),L(!1)}}),(null===(g=null===(h=null==d?void 0:d.metas)||void 0===h?void 0:h[0])||void 0===g?void 0:g.key)&&o(u,{selectedValues:(null==M?void 0:M.value)?[M.value]:void 0,isSearchable:!0,isLoading:I,optionsErrorState:x?{title:"Failed to load options",subTitle:x}:void 0,onRetryOptionsFetch:O,disabled:"view"===y,width:"200px",dropdownLabel:"Select segment",options:Q,onSelect:function(e){Array.isArray(e)||_({key:"segmentID",value:e.value,error:{}},d._id)},error:null!==(S=null!==(k=null===(b=null===(j=null===(w=d.metas)||void 0===w?void 0:w[0])||void 0===j?void 0:j.error)||void 0===b?void 0:b.key)&&void 0!==k?k:null===(A=null==M?void 0:M.error)||void 0===A?void 0:A.key)&&void 0!==S?S:null===(T=null==M?void 0:M.error)||void 0===T?void 0:T.value})]}))}))};export{c as default};
2
2
  //# sourceMappingURL=SegmentFilter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentFilter.js","sources":["../../../../../../../src/components/QueryBuilder/Filters/Segment/components/SegmentFilter.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { DropdownOption, SingleOption } from '@src/components/dropdown/type';\nimport AllowedListDropdown from '@src/components/QueryBuilder/components/AllowedListDropdown';\nimport { ApiResponseHelper } from '@src/components/QueryBuilder/helpers/ApiResponse.helper';\nimport { useQueryBuilder } from '@src/components/QueryBuilder/hooks/useQueryBuilder';\nimport { useQueryBuilderCache } from '@src/components/QueryBuilder/hooks/useQueryBuilderCache';\nimport { QueryBuilderType } from '@src/components/QueryBuilder/types/QueryBuilder.type';\nimport { QueryBuilderNodeProps } from '@src/components/QueryBuilder/types/QueryBuilderNodeProps.type';\nimport DropdownWrapper from '../../../components/DropdownWrapper';\nimport { BaseQueryBuilderNode } from '../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode';\n\nconst apiResponseHelper = new ApiResponseHelper();\n\nconst SegmentFilter: React.FC<QueryBuilderNodeProps> = ({\n\tnode,\n\tallowedNodes,\n\tapiHandler,\n\tmode,\n\tselectorKey,\n}) => {\n\tconst { updateMeta, selectType, createMeta } = useQueryBuilder(selectorKey);\n\tconst { cacheWrap } = useQueryBuilderCache();\n\tconst [loading, setLoading] = useState(false);\n\tconst [segmentFetchError, setSegmentFetchError] = useState<string>();\n\tconst [options, setOptions] = useState<DropdownOption[]>([]);\n\n\tconst segmentNameMeta = node.metas.find((meta) => meta.key === 'segmentID');\n\tconst getSegmentName = () =>\n\t\tcacheWrap(() => apiHandler<undefined>({}), 'SEGMENT_FILTER');\n\n\tfunction handleTypeSelection(option: DropdownOption | DropdownOption[]) {\n\t\tif (!Array.isArray(option)) {\n\t\t\tsetLoading(true);\n\t\t\tselectType((option as SingleOption).value as QueryBuilderType, node._id);\n\t\t\tif (option['value'] == QueryBuilderType.SEGMENT_FILTER) {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'segmentID',\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tsetLoading(false);\n\t}\n\n\tfunction handleSegmentIDSelection(option: DropdownOption | DropdownOption[]) {\n\t\tif (!Array.isArray(option)) {\n\t\t\t/** this will always be true, as option will never be an array */\n\t\t\tupdateMeta(\n\t\t\t\t{\n\t\t\t\t\tkey: 'segmentID',\n\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\t}\n\n\tconst loadSegmentNames = async () => {\n\t\tsetLoading(true);\n\t\tsetSegmentFetchError(undefined);\n\n\t\tconst response = await getSegmentName();\n\n\t\tif (response && Array.isArray(response)) {\n\t\t\tsetOptions([\n\t\t\t\t...response.map((data) => ({\n\t\t\t\t\tlabel: data.name as string,\n\t\t\t\t\tvalue: data.id as string,\n\t\t\t\t\tdescription: data.description,\n\t\t\t\t\tselected:\n\t\t\t\t\t\tmode !== 'create'\n\t\t\t\t\t\t\t? segmentNameMeta?.value\n\t\t\t\t\t\t\t\t? segmentNameMeta.value === data.id\n\t\t\t\t\t\t\t\t: false\n\t\t\t\t\t\t\t: false,\n\t\t\t\t})),\n\t\t\t]);\n\t\t} else if (response) {\n\t\t\tconst eventNameOptions = apiResponseHelper.convertToGroupOptions(\n\t\t\t\tresponse,\n\t\t\t\tsegmentNameMeta?.value ? [segmentNameMeta.value as string] : undefined,\n\t\t\t);\n\n\t\t\tsetOptions([...eventNameOptions]);\n\t\t} else {\n\t\t\tsetOptions([]);\n\t\t\tsetSegmentFetchError(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\tsetLoading(false);\n\t};\n\n\tuseEffect(() => {\n\t\tif (!segmentNameMeta) {\n\t\t\tcreateMeta(\n\t\t\t\t{\n\t\t\t\t\tkey: 'segmentID',\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\n\t\tloadSegmentNames();\n\t}, []);\n\n\treturn (\n\t\t<BaseQueryBuilderNode node={node} mode={mode}>\n\t\t\t<div style={{ flexDirection: 'row', display: 'flex', gap: 12 }}>\n\t\t\t\t<AllowedListDropdown\n\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\tloading={loading}\n\t\t\t\t\tselectedType={node.type}\n\t\t\t\t\tallowedList={allowedNodes}\n\t\t\t\t\tonSelect={handleTypeSelection}\n\t\t\t\t/>\n\n\t\t\t\t{node?.metas?.[0]?.key && (\n\t\t\t\t\t<DropdownWrapper\n\t\t\t\t\t\tselectedValues={\n\t\t\t\t\t\t\tsegmentNameMeta?.value\n\t\t\t\t\t\t\t\t? [segmentNameMeta.value as string]\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisSearchable\n\t\t\t\t\t\tisLoading={loading}\n\t\t\t\t\t\toptionsErrorState={\n\t\t\t\t\t\t\tsegmentFetchError\n\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\ttitle: 'Failed to load options',\n\t\t\t\t\t\t\t\t\t\tsubTitle: segmentFetchError,\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonRetryOptionsFetch={loadSegmentNames}\n\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\twidth=\"200px\"\n\t\t\t\t\t\tdropdownLabel={'Select segment'}\n\t\t\t\t\t\toptions={options}\n\t\t\t\t\t\tonSelect={handleSegmentIDSelection}\n\t\t\t\t\t\terror={\n\t\t\t\t\t\t\t(node.metas?.[0]?.error?.key ??\n\t\t\t\t\t\t\t\tsegmentNameMeta?.error?.key ??\n\t\t\t\t\t\t\t\tsegmentNameMeta?.error?.value) as string\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</BaseQueryBuilderNode>\n\t);\n};\n\nexport default SegmentFilter;\n"],"names":["apiResponseHelper","ApiResponseHelper","SegmentFilter","_ref","node","allowedNodes","apiHandler","mode","selectorKey","updateMeta","selectType","createMeta","useQueryBuilder","cacheWrap","useQueryBuilderCache","loading","setLoading","useState","segmentFetchError","setSegmentFetchError","options","setOptions","segmentNameMeta","metas","find","meta","key","loadSegmentNames","__awaiter","undefined","response","Array","isArray","map","data","label","name","value","id","description","selected","eventNameOptions","convertToGroupOptions","useEffect","_id","_jsx","BaseQueryBuilderNode","_jsxs","Object","assign","style","flexDirection","display","gap","AllowedListDropdown","disabled","selectedType","type","allowedList","onSelect","option","QueryBuilderType","SEGMENT_FILTER","_b","DropdownWrapper","selectedValues","isSearchable","isLoading","optionsErrorState","title","subTitle","onRetryOptionsFetch","width","dropdownLabel","error","_h","_f","_d","_c","_e","_g","_j"],"mappings":"6pBAWA,MAAMA,EAAoB,IAAIC,EAExBC,EAAiDC,IAMlD,IANmDC,KACvDA,EAAIC,aACJA,EAAYC,WACZA,EAAUC,KACVA,EAAIC,YACJA,GACAL,wBACA,MAAMM,WAAEA,EAAUC,WAAEA,EAAUC,WAAEA,GAAeC,EAAgBJ,IACzDK,UAAEA,GAAcC,KACfC,EAASC,GAAcC,GAAS,IAChCC,EAAmBC,GAAwBF,KAC3CG,EAASC,GAAcJ,EAA2B,IAEnDK,EAAkBlB,EAAKmB,MAAMC,MAAMC,GAAsB,cAAbA,EAAKC,MAmCvD,MAAMC,EAAmBA,IAAWC,OAAA,OAAA,OAAA,GAAA,YACnCZ,GAAW,GACXG,OAAqBU,GAErB,MAAMC,QArCNjB,GAAU,IAAMP,EAAsB,CAAE,IAAG,kBAuC3C,GAA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AC5B7B,MAAMC,QAAQ4B,IAElBnD,EACC,CACCiB,IAAK,YACLW,MAAQuB,EAAwBvB,MAChCqC,MAAO,CAAE,GAEVtE,EAAKwC,IAGR,EAsFK8B,MAE6B,QAD3BC,EACA,QADAC,EAAwB,UAAT,QAAfC,EAAa,QAAbC,EAAA1E,EAAKmB,aAAQ,IAAAuD,OAAA,EAAAA,EAAA,UAAE,IAAAD,OAAA,EAAAA,EAAEH,aAAO,IAAAK,OAAA,EAAAA,EAAArD,WACxB,IAAAkD,EAAAA,EAAsB,QAAtBI,EAAA1D,aAAA,EAAAA,EAAiBoD,aAAK,IAAAM,OAAA,EAAAA,EAAEtD,WAAG,IAAAiD,EAAAA,EACH,UAAxBrD,aAAe,EAAfA,EAAiBoD,aAAO,IAAAO,OAAA,EAAAA,EAAA5C,cAKP"}
1
+ {"version":3,"file":"SegmentFilter.js","sources":["../../../../../../../src/components/QueryBuilder/Filters/Segment/components/SegmentFilter.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { DropdownOption, SingleOption } from '@src/components/dropdown/type';\nimport AllowedListDropdown from '@src/components/QueryBuilder/components/AllowedListDropdown';\nimport { ApiResponseHelper } from '@src/components/QueryBuilder/helpers/ApiResponse.helper';\nimport { useQueryBuilder } from '@src/components/QueryBuilder/hooks/useQueryBuilder';\nimport { useQueryBuilderCache } from '@src/components/QueryBuilder/hooks/useQueryBuilderCache';\nimport { QueryBuilderType } from '@src/components/QueryBuilder/types/QueryBuilder.type';\nimport { QueryBuilderNodeProps } from '@src/components/QueryBuilder/types/QueryBuilderNodeProps.type';\nimport DropdownWrapper from '../../../components/DropdownWrapper';\nimport { BaseQueryBuilderNode } from '../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode';\n\nconst apiResponseHelper = new ApiResponseHelper();\n\nconst SegmentFilter: React.FC<QueryBuilderNodeProps> = ({\n\tnode,\n\tallowedNodes,\n\tapiHandler,\n\tmode,\n\tselectorKey,\n}) => {\n\tconst { updateMeta, selectType, createMeta } = useQueryBuilder(selectorKey);\n\tconst { cacheWrap } = useQueryBuilderCache();\n\tconst [loading, setLoading] = useState(false);\n\tconst [segmentFetchError, setSegmentFetchError] = useState<string>();\n\tconst [options, setOptions] = useState<DropdownOption[]>([]);\n\n\tconst segmentNameMeta = node.metas.find((meta) => meta.key === 'segmentID');\n\tconst getSegmentName = () =>\n\t\tcacheWrap(() => apiHandler<undefined>({}), 'SEGMENT_FILTER');\n\n\tfunction handleTypeSelection(option: DropdownOption | DropdownOption[]) {\n\t\tif (!Array.isArray(option)) {\n\t\t\tsetLoading(true);\n\t\t\tselectType((option as SingleOption).value as QueryBuilderType, node._id);\n\t\t\tif (option['value'] == QueryBuilderType.SEGMENT_FILTER) {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: 'segmentID',\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tsetLoading(false);\n\t}\n\n\tfunction handleSegmentIDSelection(option: DropdownOption | DropdownOption[]) {\n\t\tif (!Array.isArray(option)) {\n\t\t\t/** this will always be true, as option will never be an array */\n\t\t\tupdateMeta(\n\t\t\t\t{\n\t\t\t\t\tkey: 'segmentID',\n\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\t}\n\n\tconst loadSegmentNames = async () => {\n\t\tsetLoading(true);\n\t\tsetSegmentFetchError(undefined);\n\n\t\tconst response = await getSegmentName();\n\n\t\tif (response && Array.isArray(response)) {\n\t\t\tsetOptions([\n\t\t\t\t...response.map((data) => ({\n\t\t\t\t\tlabel: data.name as string,\n\t\t\t\t\tvalue: data.id as string,\n\t\t\t\t\tdescription: data.description,\n\t\t\t\t\tselected:\n\t\t\t\t\t\tmode !== 'create'\n\t\t\t\t\t\t\t? segmentNameMeta?.value\n\t\t\t\t\t\t\t\t? segmentNameMeta.value === data.id\n\t\t\t\t\t\t\t\t: false\n\t\t\t\t\t\t\t: false,\n\t\t\t\t})),\n\t\t\t]);\n\t\t} else if (response) {\n\t\t\tconst eventNameOptions = apiResponseHelper.convertToGroupOptions(\n\t\t\t\tresponse,\n\t\t\t\tsegmentNameMeta?.value ? [segmentNameMeta.value as string] : undefined,\n\t\t\t);\n\n\t\t\tsetOptions([...eventNameOptions]);\n\t\t} else {\n\t\t\tsetOptions([]);\n\t\t\tsetSegmentFetchError(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\tsetLoading(false);\n\t};\n\n\tuseEffect(() => {\n\t\tif (!segmentNameMeta) {\n\t\t\tcreateMeta(\n\t\t\t\t{\n\t\t\t\t\tkey: 'segmentID',\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\n\t\tloadSegmentNames();\n\t}, []);\n\n\treturn (\n\t\t<BaseQueryBuilderNode node={node} mode={mode}>\n\t\t\t<div style={{ flexDirection: 'row', display: 'flex', gap: 12 }}>\n\t\t\t\t<AllowedListDropdown\n\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\tloading={loading}\n\t\t\t\t\tselectedType={node.type}\n\t\t\t\t\tallowedList={allowedNodes}\n\t\t\t\t\tonSelect={handleTypeSelection}\n\t\t\t\t/>\n\n\t\t\t\t{node?.metas?.[0]?.key && (\n\t\t\t\t\t<DropdownWrapper\n\t\t\t\t\t\tselectedValues={\n\t\t\t\t\t\t\tsegmentNameMeta?.value\n\t\t\t\t\t\t\t\t? [segmentNameMeta.value as string]\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisSearchable\n\t\t\t\t\t\tisLoading={loading}\n\t\t\t\t\t\toptionsErrorState={\n\t\t\t\t\t\t\tsegmentFetchError\n\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\ttitle: 'Failed to load options',\n\t\t\t\t\t\t\t\t\t\tsubTitle: segmentFetchError,\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonRetryOptionsFetch={loadSegmentNames}\n\t\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\t\twidth=\"200px\"\n\t\t\t\t\t\tdropdownLabel={'Select segment'}\n\t\t\t\t\t\toptions={options}\n\t\t\t\t\t\tonSelect={handleSegmentIDSelection}\n\t\t\t\t\t\terror={\n\t\t\t\t\t\t\t(node.metas?.[0]?.error?.key ??\n\t\t\t\t\t\t\t\tsegmentNameMeta?.error?.key ??\n\t\t\t\t\t\t\t\tsegmentNameMeta?.error?.value) as string\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</BaseQueryBuilderNode>\n\t);\n};\n\nexport default SegmentFilter;\n"],"names":["apiResponseHelper","ApiResponseHelper","SegmentFilter","node","allowedNodes","apiHandler","mode","selectorKey","updateMeta","selectType","createMeta","useQueryBuilder","cacheWrap","useQueryBuilderCache","loading","setLoading","useState","segmentFetchError","setSegmentFetchError","options","setOptions","segmentNameMeta","metas","find","meta","key","loadSegmentNames","__awaiter","undefined","response","Array","isArray","map","data","label","name","value","id","description","selected","eventNameOptions","convertToGroupOptions","useEffect","_id","_jsx","BaseQueryBuilderNode","_jsxs","Object","assign","style","flexDirection","display","gap","AllowedListDropdown","disabled","selectedType","type","allowedList","onSelect","option","QueryBuilderType","SEGMENT_FILTER","_b","DropdownWrapper","selectedValues","isSearchable","isLoading","optionsErrorState","title","subTitle","onRetryOptionsFetch","width","dropdownLabel","error","_h","_f","_d","_c","_e","_g","_j"],"mappings":"6pBAWA,MAAMA,EAAoB,IAAIC,EAExBC,EAAiDA,EACtDC,OACAC,eACAC,aACAC,OACAC,wCAEA,MAAMC,WAAEA,EAAUC,WAAEA,EAAUC,WAAEA,GAAeC,EAAgBJ,IACzDK,UAAEA,GAAcC,KACfC,EAASC,GAAcC,GAAS,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AClBmB,EAACmB,GACAC,gBACC3C,aAAA,EAAAA,EAAiBe,OACd,CAACf,EAAgBe,YACjBR,EAEJqC,cAAY,EACZC,UAAWpD,EACXqD,kBACClD,EACG,CACAmD,MAAO,yBACPC,SAAUpD,QAEVW,EAEJ0C,oBAAqB5C,EACrB4B,SAAmB,SAAThD,EACViE,MAAM,QACNC,cAAe,iBACfrD,QAASA,EACTuC,SAjGL,SAAkCC,GAC5B7B,MAAMC,QAAQ4B,IAElBnD,EACC,CACCiB,IAAK,YACLW,MAAQuB,EAAwBvB,MAChCqC,MAAO,CAAE,GAEVtE,EAAKwC,IAGR,EAsFK8B,MAE6B,QAD3BC,EACA,QADAC,EAAwB,UAAT,QAAfC,EAAa,QAAbC,EAAA1E,EAAKmB,aAAQ,IAAAuD,OAAA,EAAAA,EAAA,UAAE,IAAAD,OAAA,EAAAA,EAAEH,aAAO,IAAAK,OAAA,EAAAA,EAAArD,WACxB,IAAAkD,EAAAA,EAAsB,QAAtBI,EAAA1D,aAAA,EAAAA,EAAiBoD,aAAK,IAAAM,OAAA,EAAAA,EAAEtD,WAAG,IAAAiD,EAAAA,EACH,UAAxBrD,aAAe,EAAfA,EAAiBoD,aAAO,IAAAO,OAAA,EAAAA,EAAA5C,cAKP"}
@@ -1,2 +1,2 @@
1
- import{__awaiter as e}from"../../../../../_virtual/_tslib.js";import{jsx as r,jsxs as o}from"react/jsx-runtime";import t from"../../../components/AllowedListDropdown.js";import{PropertyNodeHeadless as i}from"../../../components/QueryBuilderNode/Property/PropertyNode.js";import{CONTAINS_OPERATORS as n,getContainsFilterError as a}from"../../../helpers/SegmentValidator.js";import{useQueryBuilder as d}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as l}from"../../../hooks/useQueryBuilderCache.js";import{BaseQueryBuilderNode as s}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const p=p=>{let{node:u,allowedNodes:c,apiHandler:y,mode:m,selectorKey:v}=p;var f;const{selectType:h,createProperty:g,updateProperty:j}=d(v),{cacheWrap:w}=l();return r(s,Object.assign({node:u,mode:m},{children:o("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12,alignItems:"flex-start"}},{children:[r(t,{disabled:"view"===m,selectedType:u.type,allowedList:c,onSelect:e=>h(e.value,u._id)}),r(i,{mode:m,property:null===(f=null==u?void 0:u.properties)||void 0===f?void 0:f[0],fetchPropertyData:()=>w((()=>y({})),"USER_PROPERTIES"),onPropertyNameSelect:function(r){var o;return e(this,void 0,void 0,(function*(){const e=null===(o=u.properties)||void 0===o?void 0:o[0],t=!!e&&e.name===r.id&&e.dataType===r.type;if(e?t||j(Object.assign(Object.assign({},e),{name:r.id,dataType:r.type,operator:void 0,value:void 0,error:{}}),u._id):g({name:r.id,dataType:r.type},u._id),r.needValuesRetrieval){const e=yield(e=>w((()=>y({query:{propertyName:e}})),`USER_PROPERTIES-${e}`))(r.id);if(!e)throw new Error("Something went wrong while fetching the list. Please try again");return e}return[]}))},onPropertyOperatorChange:function(e){j(Object.assign(Object.assign({},u.properties[0]),{operator:e,value:void 0,error:{}}),u._id)},onPropertyValueChange:function(e){var r;const o=u.properties[0],t="string"===o.dataType&&n.includes(null!==(r=o.operator)&&void 0!==r?r:"")?a(e):{};j(Object.assign(Object.assign({},o),{value:e,error:t}),u._id)},onPropertyValueSearch:function(r,o){return e(this,void 0,void 0,(function*(){const t=yield((r,o)=>e(void 0,void 0,void 0,(function*(){return yield y({query:{propertyName:r,searchKey:o}})})))(o.name,r);if((null==t?void 0:t.error)||!(null==t?void 0:t.data))throw new Error((null==t?void 0:t.error)||"Something went wrong while fetching the list. Please try again");return t.data.map((e=>({label:e.name,value:e.id,selected:!1})))}))}})]}))}))};export{p as default};
1
+ import{__awaiter as e}from"../../../../../_virtual/_tslib.js";import{jsx as r,jsxs as o}from"react/jsx-runtime";import t from"../../../components/AllowedListDropdown.js";import{PropertyNodeHeadless as i}from"../../../components/QueryBuilderNode/Property/PropertyNode.js";import{CONTAINS_OPERATORS as n,getContainsFilterError as a}from"../../../helpers/SegmentValidator.js";import{useQueryBuilder as d}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as s}from"../../../hooks/useQueryBuilderCache.js";import{BaseQueryBuilderNode as l}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const p=({node:p,allowedNodes:u,apiHandler:c,mode:y,selectorKey:m})=>{var v;const{selectType:f,createProperty:h,updateProperty:g}=d(m),{cacheWrap:j}=s();return r(l,Object.assign({node:p,mode:y},{children:o("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12,alignItems:"flex-start"}},{children:[r(t,{disabled:"view"===y,selectedType:p.type,allowedList:u,onSelect:e=>f(e.value,p._id)}),r(i,{mode:y,property:null===(v=null==p?void 0:p.properties)||void 0===v?void 0:v[0],fetchPropertyData:()=>j((()=>c({})),"USER_PROPERTIES"),onPropertyNameSelect:function(r){var o;return e(this,void 0,void 0,(function*(){const e=null===(o=p.properties)||void 0===o?void 0:o[0],t=!!e&&e.name===r.id&&e.dataType===r.type;if(e?t||g(Object.assign(Object.assign({},e),{name:r.id,dataType:r.type,operator:void 0,value:void 0,error:{}}),p._id):h({name:r.id,dataType:r.type},p._id),r.needValuesRetrieval){const e=yield(e=>j((()=>c({query:{propertyName:e}})),`USER_PROPERTIES-${e}`))(r.id);if(!e)throw new Error("Something went wrong while fetching the list. Please try again");return e}return[]}))},onPropertyOperatorChange:function(e){g(Object.assign(Object.assign({},p.properties[0]),{operator:e,value:void 0,error:{}}),p._id)},onPropertyValueChange:function(e){var r;const o=p.properties[0],t="string"===o.dataType&&n.includes(null!==(r=o.operator)&&void 0!==r?r:"")?a(e):{};g(Object.assign(Object.assign({},o),{value:e,error:t}),p._id)},onPropertyValueSearch:function(r,o){return e(this,void 0,void 0,(function*(){const t=yield((r,o)=>e(void 0,void 0,void 0,(function*(){return yield c({query:{propertyName:r,searchKey:o}})})))(o.name,r);if((null==t?void 0:t.error)||!(null==t?void 0:t.data))throw new Error((null==t?void 0:t.error)||"Something went wrong while fetching the list. Please try again");return t.data.map((e=>({label:e.name,value:e.id,selected:!1})))}))}})]}))}))};export{p as default};
2
2
  //# sourceMappingURL=UserPropertyFilter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserPropertyFilter.js","sources":["../../../../../../../src/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.tsx"],"sourcesContent":["import React from 'react';\nimport { DropdownOption, SingleOption } from '@src/components/dropdown/type';\nimport AllowedListDropdown from '@src/components/QueryBuilder/components/AllowedListDropdown';\nimport { PropertyNodeHeadless } from '@src/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode';\nimport {\n\tCONTAINS_OPERATORS,\n\tgetContainsFilterError,\n} from '@src/components/QueryBuilder/helpers/SegmentValidator';\nimport { useQueryBuilder } from '@src/components/QueryBuilder/hooks/useQueryBuilder';\nimport { useQueryBuilderCache } from '@src/components/QueryBuilder/hooks/useQueryBuilderCache';\nimport {\n\tQueryBuilderProperty,\n\tQueryBuilderType,\n} from '@src/components/QueryBuilder/types/QueryBuilder.type';\nimport { QueryBuilderAPIData } from '@src/components/QueryBuilder/types/QueryBuilderAPI.type';\nimport { CONNECTOR_VALUE_TYPE } from '@src/components/QueryBuilder/types/QueryBuilderConnector.type';\nimport { QueryBuilderNodeProps } from '@src/components/QueryBuilder/types/QueryBuilderNodeProps.type';\nimport { CONNECTOR_OPERATORS } from '@src/components/QueryBuilder/types/QueryBuilderOperator.type';\nimport { BaseQueryBuilderNode } from '../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode';\n\nconst UserPropertyFilter: React.FC<QueryBuilderNodeProps> = ({\n\tnode,\n\tallowedNodes,\n\tapiHandler,\n\tmode,\n\tselectorKey,\n}) => {\n\tconst { selectType, createProperty, updateProperty } =\n\t\tuseQueryBuilder(selectorKey);\n\tconst { cacheWrap } = useQueryBuilderCache();\n\n\t/** DATA LAYER */\n\tconst getUserProperties = () =>\n\t\tcacheWrap(() => apiHandler<undefined>({}), 'USER_PROPERTIES');\n\n\tconst getUserPropertyValues = (propertyName: string) =>\n\t\tcacheWrap(\n\t\t\t() => apiHandler<{ propertyName: string }>({ query: { propertyName } }),\n\t\t\t`USER_PROPERTIES-${propertyName}`,\n\t\t);\n\n\tconst searchUserPropertiesValue = async (\n\t\tpropertyName: string | number,\n\t\tsearchKey: string,\n\t) =>\n\t\tawait apiHandler<{\n\t\t\tpropertyName: string | number;\n\t\t\tsearchKey: string;\n\t\t}>({\n\t\t\tquery: { propertyName, searchKey },\n\t\t});\n\n\t/**\n\t * User property name selection handler. it creates property if 0th property is not present else updates that\n\t * also, it call the property value API the values are required for the property\n\t * @param propertyName\n\t * @returns\n\t */\n\tasync function handlePropertyNameSelection(\n\t\tpropertyName: QueryBuilderAPIData,\n\t) {\n\t\tconst currentProperty = node.properties?.[0];\n\t\tconst isRetry =\n\t\t\t!!currentProperty &&\n\t\t\tcurrentProperty.name === propertyName.id &&\n\t\t\tcurrentProperty.dataType === propertyName.type;\n\n\t\tif (!currentProperty) {\n\t\t\tcreateProperty(\n\t\t\t\t{\n\t\t\t\t\tname: propertyName.id,\n\t\t\t\t\tdataType: propertyName.type,\n\t\t\t\t} as QueryBuilderProperty,\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t} else if (!isRetry) {\n\t\t\tupdateProperty(\n\t\t\t\t{\n\t\t\t\t\t...currentProperty,\n\t\t\t\t\tname: propertyName.id,\n\t\t\t\t\tdataType: propertyName.type,\n\t\t\t\t\toperator: undefined,\n\t\t\t\t\tvalue: undefined,\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\n\t\tif (propertyName.needValuesRetrieval) {\n\t\t\tconst response = await getUserPropertyValues(propertyName.id as string);\n\n\t\t\tif (!response) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn response;\n\t\t}\n\n\t\treturn [];\n\t}\n\n\tfunction handleOperatorChange(operator: CONNECTOR_OPERATORS) {\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...node.properties![0],\n\t\t\t\toperator,\n\t\t\t\tvalue: undefined,\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction handleValueChange(value: CONNECTOR_VALUE_TYPE) {\n\t\tconst property = node.properties![0];\n\t\tconst isContainsFilter =\n\t\t\tproperty.dataType === 'string' &&\n\t\t\tCONTAINS_OPERATORS.includes(property.operator ?? '');\n\t\tconst error = isContainsFilter ? getContainsFilterError(value) : {};\n\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\tvalue: value,\n\t\t\t\terror,\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tasync function onPropertyValueSearch(\n\t\tsearchKey: string,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst response = await searchUserPropertiesValue(\n\t\t\tproperty.name as string,\n\t\t\tsearchKey,\n\t\t);\n\n\t\tif (response?.error || !response?.data) {\n\t\t\tthrow new Error(\n\t\t\t\tresponse?.error ||\n\t\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\treturn (response.data as QueryBuilderAPIData[]).map((option) => ({\n\t\t\tlabel: option.name,\n\t\t\tvalue: option.id,\n\t\t\tselected: false,\n\t\t}));\n\t}\n\n\treturn (\n\t\t<BaseQueryBuilderNode node={node} mode={mode}>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tflexDirection: 'row',\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tgap: 12,\n\t\t\t\t\talignItems: 'flex-start',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<AllowedListDropdown\n\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\tselectedType={node.type}\n\t\t\t\t\tallowedList={allowedNodes}\n\t\t\t\t\tonSelect={(option) =>\n\t\t\t\t\t\tselectType(\n\t\t\t\t\t\t\t(option as SingleOption).value as QueryBuilderType,\n\t\t\t\t\t\t\tnode._id,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t/>\n\n\t\t\t\t<PropertyNodeHeadless\n\t\t\t\t\tmode={mode}\n\t\t\t\t\tproperty={node?.properties?.[0]}\n\t\t\t\t\tfetchPropertyData={getUserProperties}\n\t\t\t\t\tonPropertyNameSelect={handlePropertyNameSelection}\n\t\t\t\t\tonPropertyOperatorChange={handleOperatorChange}\n\t\t\t\t\tonPropertyValueChange={handleValueChange}\n\t\t\t\t\tonPropertyValueSearch={\n\t\t\t\t\t\tonPropertyValueSearch as (\n\t\t\t\t\t\t\tsearchKey: string,\n\t\t\t\t\t\t\tproperty: QueryBuilderProperty,\n\t\t\t\t\t\t) => Promise<DropdownOption[]>\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</BaseQueryBuilderNode>\n\t);\n};\n\nexport default UserPropertyFilter;\n"],"names":["UserPropertyFilter","_ref","node","allowedNodes","apiHandler","mode","selectorKey","selectType","createProperty","updateProperty","useQueryBuilder","cacheWrap","useQueryBuilderCache","_jsx","BaseQueryBuilderNode","Object","assign","children","_jsxs","style","flexDirection","display","gap","alignItems","AllowedListDropdown","disabled","selectedType","type","allowedList","onSelect","option","value","_id","PropertyNodeHeadless","property","_a","properties","fetchPropertyData","getUserProperties","onPropertyNameSelect","propertyName","currentProperty","isRetry","name","id","dataType","operator","undefined","error","needValuesRetrieval","response","query","getUserPropertyValues","Error","onPropertyOperatorChange","onPropertyValueChange","CONTAINS_OPERATORS","includes","getContainsFilterError","onPropertyValueSearch","searchKey","searchUserPropertiesValue","__awaiter","data","map","label","selected"],"mappings":"gnBAoBMA,MAAAA,EAAsDC,IAMvD,IANwDC,KAC5DA,EAAIC,aACJA,EAAYC,WACZA,EAAUC,KACVA,EAAIC,YACJA,GACAL,QACA,MAAMM,WAAEA,EAAUC,eAAEA,EAAcC,eAAEA,GACnCC,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7BrC,EAAcM,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAETd,EAAKkC,WAAY,IACpB,CAAAU,WACAf,WAAOgB,EACPC,MAAO,CAAA,IAER9C,EAAK8B,IAEP,EAsEIuB,sBApEJ,SAA2BxB,SAC1B,MAAMG,EAAWhC,EAAKkC,WAAY,GAI5BY,EAFiB,WAAtBd,EAASW,UACTW,EAAmBC,SAA0B,QAAjBtB,EAAAD,EAASY,gBAAQ,IAAAX,EAAAA,EAAI,IACjBuB,EAAuB3B,GAAS,CAAA,EAEjEtB,EAEKM,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAAAkB,GACH,CAAAH,MAAOA,EACPiB,UAED9C,EAAK8B,IAEP,EAsDI2B,sBApDJ,SACCC,EACA1B,4CAEA,MAAMgB,OAhG2BW,EACjCrB,EACAoB,IACGE,OAAA,OAAA,OAAA,GAAA,YACH,aAAM1D,EAGH,CACF+C,MAAO,CAAEX,eAAcoB,kBAwFDC,CACtB3B,EAASS,KACTiB,GAGD,IAAIV,aAAA,EAAAA,EAAUF,UAAUE,aAAQ,EAARA,EAAUa,MACjC,MAAM,IAAIV,OACTH,aAAQ,EAARA,EAAUF,QACT,kEAIH,OAAQE,EAASa,KAA+BC,KAAKlC,IAAY,CAChEmC,MAAOnC,EAAOa,KACdZ,MAAOD,EAAOc,GACdsB,UAAU,KAEZ,GAAC,UAuCuB"}
1
+ {"version":3,"file":"UserPropertyFilter.js","sources":["../../../../../../../src/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.tsx"],"sourcesContent":["import React from 'react';\nimport { DropdownOption, SingleOption } from '@src/components/dropdown/type';\nimport AllowedListDropdown from '@src/components/QueryBuilder/components/AllowedListDropdown';\nimport { PropertyNodeHeadless } from '@src/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode';\nimport {\n\tCONTAINS_OPERATORS,\n\tgetContainsFilterError,\n} from '@src/components/QueryBuilder/helpers/SegmentValidator';\nimport { useQueryBuilder } from '@src/components/QueryBuilder/hooks/useQueryBuilder';\nimport { useQueryBuilderCache } from '@src/components/QueryBuilder/hooks/useQueryBuilderCache';\nimport {\n\tQueryBuilderProperty,\n\tQueryBuilderType,\n} from '@src/components/QueryBuilder/types/QueryBuilder.type';\nimport { QueryBuilderAPIData } from '@src/components/QueryBuilder/types/QueryBuilderAPI.type';\nimport { CONNECTOR_VALUE_TYPE } from '@src/components/QueryBuilder/types/QueryBuilderConnector.type';\nimport { QueryBuilderNodeProps } from '@src/components/QueryBuilder/types/QueryBuilderNodeProps.type';\nimport { CONNECTOR_OPERATORS } from '@src/components/QueryBuilder/types/QueryBuilderOperator.type';\nimport { BaseQueryBuilderNode } from '../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode';\n\nconst UserPropertyFilter: React.FC<QueryBuilderNodeProps> = ({\n\tnode,\n\tallowedNodes,\n\tapiHandler,\n\tmode,\n\tselectorKey,\n}) => {\n\tconst { selectType, createProperty, updateProperty } =\n\t\tuseQueryBuilder(selectorKey);\n\tconst { cacheWrap } = useQueryBuilderCache();\n\n\t/** DATA LAYER */\n\tconst getUserProperties = () =>\n\t\tcacheWrap(() => apiHandler<undefined>({}), 'USER_PROPERTIES');\n\n\tconst getUserPropertyValues = (propertyName: string) =>\n\t\tcacheWrap(\n\t\t\t() => apiHandler<{ propertyName: string }>({ query: { propertyName } }),\n\t\t\t`USER_PROPERTIES-${propertyName}`,\n\t\t);\n\n\tconst searchUserPropertiesValue = async (\n\t\tpropertyName: string | number,\n\t\tsearchKey: string,\n\t) =>\n\t\tawait apiHandler<{\n\t\t\tpropertyName: string | number;\n\t\t\tsearchKey: string;\n\t\t}>({\n\t\t\tquery: { propertyName, searchKey },\n\t\t});\n\n\t/**\n\t * User property name selection handler. it creates property if 0th property is not present else updates that\n\t * also, it call the property value API the values are required for the property\n\t * @param propertyName\n\t * @returns\n\t */\n\tasync function handlePropertyNameSelection(\n\t\tpropertyName: QueryBuilderAPIData,\n\t) {\n\t\tconst currentProperty = node.properties?.[0];\n\t\tconst isRetry =\n\t\t\t!!currentProperty &&\n\t\t\tcurrentProperty.name === propertyName.id &&\n\t\t\tcurrentProperty.dataType === propertyName.type;\n\n\t\tif (!currentProperty) {\n\t\t\tcreateProperty(\n\t\t\t\t{\n\t\t\t\t\tname: propertyName.id,\n\t\t\t\t\tdataType: propertyName.type,\n\t\t\t\t} as QueryBuilderProperty,\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t} else if (!isRetry) {\n\t\t\tupdateProperty(\n\t\t\t\t{\n\t\t\t\t\t...currentProperty,\n\t\t\t\t\tname: propertyName.id,\n\t\t\t\t\tdataType: propertyName.type,\n\t\t\t\t\toperator: undefined,\n\t\t\t\t\tvalue: undefined,\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\n\t\tif (propertyName.needValuesRetrieval) {\n\t\t\tconst response = await getUserPropertyValues(propertyName.id as string);\n\n\t\t\tif (!response) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn response;\n\t\t}\n\n\t\treturn [];\n\t}\n\n\tfunction handleOperatorChange(operator: CONNECTOR_OPERATORS) {\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...node.properties![0],\n\t\t\t\toperator,\n\t\t\t\tvalue: undefined,\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction handleValueChange(value: CONNECTOR_VALUE_TYPE) {\n\t\tconst property = node.properties![0];\n\t\tconst isContainsFilter =\n\t\t\tproperty.dataType === 'string' &&\n\t\t\tCONTAINS_OPERATORS.includes(property.operator ?? '');\n\t\tconst error = isContainsFilter ? getContainsFilterError(value) : {};\n\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\tvalue: value,\n\t\t\t\terror,\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tasync function onPropertyValueSearch(\n\t\tsearchKey: string,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst response = await searchUserPropertiesValue(\n\t\t\tproperty.name as string,\n\t\t\tsearchKey,\n\t\t);\n\n\t\tif (response?.error || !response?.data) {\n\t\t\tthrow new Error(\n\t\t\t\tresponse?.error ||\n\t\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\treturn (response.data as QueryBuilderAPIData[]).map((option) => ({\n\t\t\tlabel: option.name,\n\t\t\tvalue: option.id,\n\t\t\tselected: false,\n\t\t}));\n\t}\n\n\treturn (\n\t\t<BaseQueryBuilderNode node={node} mode={mode}>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tflexDirection: 'row',\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tgap: 12,\n\t\t\t\t\talignItems: 'flex-start',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<AllowedListDropdown\n\t\t\t\t\tdisabled={mode === 'view'}\n\t\t\t\t\tselectedType={node.type}\n\t\t\t\t\tallowedList={allowedNodes}\n\t\t\t\t\tonSelect={(option) =>\n\t\t\t\t\t\tselectType(\n\t\t\t\t\t\t\t(option as SingleOption).value as QueryBuilderType,\n\t\t\t\t\t\t\tnode._id,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t/>\n\n\t\t\t\t<PropertyNodeHeadless\n\t\t\t\t\tmode={mode}\n\t\t\t\t\tproperty={node?.properties?.[0]}\n\t\t\t\t\tfetchPropertyData={getUserProperties}\n\t\t\t\t\tonPropertyNameSelect={handlePropertyNameSelection}\n\t\t\t\t\tonPropertyOperatorChange={handleOperatorChange}\n\t\t\t\t\tonPropertyValueChange={handleValueChange}\n\t\t\t\t\tonPropertyValueSearch={\n\t\t\t\t\t\tonPropertyValueSearch as (\n\t\t\t\t\t\t\tsearchKey: string,\n\t\t\t\t\t\t\tproperty: QueryBuilderProperty,\n\t\t\t\t\t\t) => Promise<DropdownOption[]>\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</BaseQueryBuilderNode>\n\t);\n};\n\nexport default UserPropertyFilter;\n"],"names":["UserPropertyFilter","node","allowedNodes","apiHandler","mode","selectorKey","selectType","createProperty","updateProperty","useQueryBuilder","cacheWrap","useQueryBuilderCache","_jsx","BaseQueryBuilderNode","Object","assign","children","_jsxs","style","flexDirection","display","gap","alignItems","AllowedListDropdown","disabled","selectedType","type","allowedList","onSelect","option","value","_id","PropertyNodeHeadless","property","_a","properties","fetchPropertyData","getUserProperties","onPropertyNameSelect","propertyName","currentProperty","isRetry","name","id","dataType","operator","undefined","error","needValuesRetrieval","response","query","getUserPropertyValues","Error","onPropertyOperatorChange","onPropertyValueChange","CONTAINS_OPERATORS","includes","getContainsFilterError","onPropertyValueSearch","searchKey","searchUserPropertiesValue","__awaiter","data","map","label","selected"],"mappings":"gnBAoBMA,MAAAA,EAAsDA,EAC3DC,OACAC,eACAC,aACAC,OACAC,wBAEA,MAAMC,WAAEA,EAAUC,eAAEA,EAAcC,eAAEA,GACnCC,EAAgBJ,IACXK,UAAEA,GAAcC,IA+HtB,OACCC,EAACC,EAAoBC,OAAAC,OAAA,CAACd,KAAMA,EAAMG,KAAMA,GACvC,CAAAY,SAAAC,EAAA,MAAAH,OAAAC,OAAA,CACCG,MAAO,CACNC,cAAe,MACfC,QAAS,OACTC,IAAK,GACLC,WAAY,eACZ,CAAAN,SAAA,CAEDJ,EAACW,EAAmB,CACnBC,SAAmB,SAATpB,EACVqB,aAAcxB,EAAKyB,KACnBC,YAAazB,EACb0B,SAAWC,GACVvB,EACEuB,EAAwBC,MACzB7B,EAAK8B,OAKRnB,EAACoB,EAAoB,CACpB5B,KAAMA,EACN6B,SAA0B,QAAhBC,EAAAjC,aAAA,EAAAA,EAAMkC,kBAAU,IAAAD,OAAA,EAAAA,EAAG,GAC7BE,kBArJsBC,IACzB3B,GAAU,IAAMP,EAAsB,CAAE,IAAG,mBAqJxCm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,EAGH,CACF+C,MAAO,CAAEX,eAAcoB,kBAwFDC,CACtB3B,EAASS,KACTiB,GAGD,IAAIV,aAAA,EAAAA,EAAUF,UAAUE,aAAQ,EAARA,EAAUa,MACjC,MAAM,IAAIV,OACTH,aAAQ,EAARA,EAAUF,QACT,kEAIH,OAAQE,EAASa,KAA+BC,KAAKlC,IAAY,CAChEmC,MAAOnC,EAAOa,KACdZ,MAAOD,EAAOc,GACdsB,UAAU,KAEZ,GAAC,UAuCuB"}
@@ -1,2 +1,2 @@
1
- import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import o,{useEffect as n}from"react";import{BodyPrimary as i}from"../TypographyStyle.js";import s from"./components/QueryBuilderNodes.js";import{useQueryBuilder as d}from"./hooks/useQueryBuilder.js";const l=o.forwardRef(((o,l)=>{let{queryPreText:a,infinite:m,addNodeBtnText:y,typesAPIHandlers:p,onStateChange:u,mode:c,selectorKey:f,state:h,errorState:j}=o;const{init:B,fillState:g}=d(f),x=p?Object.keys(p):[];return n((()=>{h?g(h):B(null==x?void 0:x[0])}),[]),n((()=>{j&&g(j)}),[j]),e(t,{children:[r(i,Object.assign({style:{marginBottom:12}},{children:a})),r(s,{ref:l,selectorKey:f,onStateChange:u,typesAPIHandlers:p,allowedNodes:x,infinite:null==m||m,addNodeBtnText:y,mode:c})]})}));l.displayName="QueryBuilder";export{l as QueryBuilder};
1
+ import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import o,{useEffect as n}from"react";import{BodyPrimary as i}from"../TypographyStyle.js";import s from"./components/QueryBuilderNodes.js";import{useQueryBuilder as d}from"./hooks/useQueryBuilder.js";const a=o.forwardRef((({queryPreText:o,infinite:a,addNodeBtnText:l,typesAPIHandlers:m,onStateChange:y,mode:p,selectorKey:u,state:c,errorState:f},h)=>{const{init:j,fillState:B}=d(u),g=m?Object.keys(m):[];return n((()=>{c?B(c):j(null==g?void 0:g[0])}),[]),n((()=>{f&&B(f)}),[f]),e(t,{children:[r(i,Object.assign({style:{marginBottom:12}},{children:o})),r(s,{ref:h,selectorKey:u,onStateChange:y,typesAPIHandlers:m,allowedNodes:g,infinite:null==a||a,addNodeBtnText:l,mode:p})]})}));a.displayName="QueryBuilder";export{a as QueryBuilder};
2
2
  //# sourceMappingURL=QueryBuilder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilder.js","sources":["../../../../src/components/QueryBuilder/QueryBuilder.tsx"],"sourcesContent":["import React, { Ref, useEffect } from 'react';\nimport { BodyPrimary } from '../TypographyStyle';\nimport QueryBuilderNodes from './components/QueryBuilderNodes';\nimport { useQueryBuilder } from './hooks/useQueryBuilder';\nimport { QueryBuilderType } from './types/QueryBuilder.type';\nimport {\n\tQueryBuilderProps,\n\tQueryBuilderRef,\n} from './types/QueryBuilderProps.type';\n\n/**\n * @exported\n * @statfull\n * @param param0\n * @returns\n */\nexport const QueryBuilder = React.forwardRef<\n\tQueryBuilderRef,\n\tQueryBuilderProps\n>(\n\t(\n\t\t{\n\t\t\tqueryPreText,\n\t\t\tinfinite,\n\t\t\taddNodeBtnText,\n\t\t\ttypesAPIHandlers,\n\t\t\tonStateChange,\n\t\t\tmode,\n\t\t\tselectorKey,\n\t\t\tstate,\n\t\t\terrorState,\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst { init, fillState } = useQueryBuilder(selectorKey);\n\t\tconst allowedNodes = (\n\t\t\ttypesAPIHandlers ? Object.keys(typesAPIHandlers) : []\n\t\t) as QueryBuilderType[];\n\n\t\tuseEffect(() => {\n\t\t\tif (state) {\n\t\t\t\tfillState(state);\n\t\t\t} else {\n\t\t\t\tinit(allowedNodes?.[0]);\n\t\t\t}\n\t\t}, []);\n\n\t\tuseEffect(() => {\n\t\t\tif (errorState) {\n\t\t\t\tfillState(errorState);\n\t\t\t}\n\t\t}, [errorState]);\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<BodyPrimary style={{ marginBottom: 12 }}>{queryPreText}</BodyPrimary>\n\t\t\t\t<QueryBuilderNodes\n\t\t\t\t\tref={ref as Ref<QueryBuilderRef>}\n\t\t\t\t\tselectorKey={selectorKey}\n\t\t\t\t\tonStateChange={onStateChange}\n\t\t\t\t\ttypesAPIHandlers={typesAPIHandlers}\n\t\t\t\t\tallowedNodes={allowedNodes}\n\t\t\t\t\tinfinite={infinite ?? true}\n\t\t\t\t\taddNodeBtnText={addNodeBtnText}\n\t\t\t\t\tmode={mode}\n\t\t\t\t/>\n\t\t\t</>\n\t\t);\n\t},\n);\n\nQueryBuilder.displayName = 'QueryBuilder';\n"],"names":["QueryBuilder","React","forwardRef","_ref","ref","queryPreText","infinite","addNodeBtnText","typesAPIHandlers","onStateChange","mode","selectorKey","state","errorState","init","fillState","useQueryBuilder","allowedNodes","Object","keys","useEffect","_jsxs","_Fragment","children","_jsx","BodyPrimary","assign","style","marginBottom","QueryBuilderNodes","displayName"],"mappings":"uQAgBO,MAAMA,EAAeC,EAAMC,YAIjC,CAAAC,EAYCC,KACG,IAZHC,aACCA,EAAYC,SACZA,EAAQC,eACRA,EAAcC,iBACdA,EAAgBC,cAChBA,EAAaC,KACbA,EAAIC,YACJA,EAAWC,MACXA,EAAKC,WACLA,GACAV,EAGD,MAAMW,KAAEA,EAAIC,UAAEA,GAAcC,EAAgBL,GACtCM,EACLT,EAAmBU,OAAOC,KAAKX,GAAoB,GAiBpD,OAdAY,GAAU,KACLR,EACHG,EAAUH,GAEVE,EAAKG,aAAY,EAAZA,EAAe,GACpB,GACC,IAEHG,GAAU,KACLP,GACHE,EAAUF,EACV,GACC,CAACA,IAGHQ,EACCC,EAAA,CAAAC,SAAA,CAAAC,EAACC,EAAWP,OAAAQ,OAAA,CAACC,MAAO,CAAEC,aAAc,KAAI,CAAAL,SAAGlB,KAC3CmB,EAACK,EAAiB,CACjBzB,IAAKA,EACLO,YAAaA,EACbF,cAAeA,EACfD,iBAAkBA,EAClBS,aAAcA,EACdX,SAAUA,SAAAA,EACVC,eAAgBA,EAChBG,KAAMA,MAEL,IAKNV,EAAa8B,YAAc"}
1
+ {"version":3,"file":"QueryBuilder.js","sources":["../../../../src/components/QueryBuilder/QueryBuilder.tsx"],"sourcesContent":["import React, { Ref, useEffect } from 'react';\nimport { BodyPrimary } from '../TypographyStyle';\nimport QueryBuilderNodes from './components/QueryBuilderNodes';\nimport { useQueryBuilder } from './hooks/useQueryBuilder';\nimport { QueryBuilderType } from './types/QueryBuilder.type';\nimport {\n\tQueryBuilderProps,\n\tQueryBuilderRef,\n} from './types/QueryBuilderProps.type';\n\n/**\n * @exported\n * @statfull\n * @param param0\n * @returns\n */\nexport const QueryBuilder = React.forwardRef<\n\tQueryBuilderRef,\n\tQueryBuilderProps\n>(\n\t(\n\t\t{\n\t\t\tqueryPreText,\n\t\t\tinfinite,\n\t\t\taddNodeBtnText,\n\t\t\ttypesAPIHandlers,\n\t\t\tonStateChange,\n\t\t\tmode,\n\t\t\tselectorKey,\n\t\t\tstate,\n\t\t\terrorState,\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst { init, fillState } = useQueryBuilder(selectorKey);\n\t\tconst allowedNodes = (\n\t\t\ttypesAPIHandlers ? Object.keys(typesAPIHandlers) : []\n\t\t) as QueryBuilderType[];\n\n\t\tuseEffect(() => {\n\t\t\tif (state) {\n\t\t\t\tfillState(state);\n\t\t\t} else {\n\t\t\t\tinit(allowedNodes?.[0]);\n\t\t\t}\n\t\t}, []);\n\n\t\tuseEffect(() => {\n\t\t\tif (errorState) {\n\t\t\t\tfillState(errorState);\n\t\t\t}\n\t\t}, [errorState]);\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<BodyPrimary style={{ marginBottom: 12 }}>{queryPreText}</BodyPrimary>\n\t\t\t\t<QueryBuilderNodes\n\t\t\t\t\tref={ref as Ref<QueryBuilderRef>}\n\t\t\t\t\tselectorKey={selectorKey}\n\t\t\t\t\tonStateChange={onStateChange}\n\t\t\t\t\ttypesAPIHandlers={typesAPIHandlers}\n\t\t\t\t\tallowedNodes={allowedNodes}\n\t\t\t\t\tinfinite={infinite ?? true}\n\t\t\t\t\taddNodeBtnText={addNodeBtnText}\n\t\t\t\t\tmode={mode}\n\t\t\t\t/>\n\t\t\t</>\n\t\t);\n\t},\n);\n\nQueryBuilder.displayName = 'QueryBuilder';\n"],"names":["QueryBuilder","React","forwardRef","queryPreText","infinite","addNodeBtnText","typesAPIHandlers","onStateChange","mode","selectorKey","state","errorState","ref","init","fillState","useQueryBuilder","allowedNodes","Object","keys","useEffect","_jsxs","_Fragment","children","_jsx","BodyPrimary","assign","style","marginBottom","QueryBuilderNodes","displayName"],"mappings":"6QAgBaA,EAAeC,EAAMC,YAIjC,EAEEC,eACAC,WACAC,iBACAC,mBACAC,gBACAC,OACAC,cACAC,QACAC,cAEDC,KAEA,MAAMC,KAAEA,EAAIC,UAAEA,GAAcC,EAAgBN,GACtCO,EACLV,EAAmBW,OAAOC,KAAKZ,GAAoB,GAiBpD,OAdAa,GAAU,KACLT,EACHI,EAAUJ,GAEVG,EAAKG,aAAY,EAAZA,EAAe,GACpB,GACC,IAEHG,GAAU,KACLR,GACHG,EAAUH,EACV,GACC,CAACA,IAGHS,EACCC,EAAA,CAAAC,SAAA,CAAAC,EAACC,EAAWP,OAAAQ,OAAA,CAACC,MAAO,CAAEC,aAAc,KAAI,CAAAL,SAAGnB,KAC3CoB,EAACK,EAAiB,CACjBhB,IAAKA,EACLH,YAAaA,EACbF,cAAeA,EACfD,iBAAkBA,EAClBU,aAAcA,EACdZ,SAAUA,SAAAA,EACVC,eAAgBA,EAChBG,KAAMA,MAEL,IAKNR,EAAa6B,YAAc"}
@@ -1,2 +1,2 @@
1
- import{__awaiter as e}from"../../../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import{useState as t,useEffect as o}from"react";import{ApiResponseHelper as i}from"../../helpers/ApiResponse.helper.js";import{CONTAINS_OPERATORS as a,getContainsFilterError as n}from"../../helpers/SegmentValidator.js";import{useQueryBuilder as s}from"../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as l}from"../../hooks/useQueryBuilderCache.js";import d from"../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as c}from"../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const p=new i,u="triggerName",v=i=>{let{node:v,apiHandler:y,cacheKey:g,propertyAddBtnText:m,mode:f,selectorKey:h,onPropertyValueSearch:j}=i;var O;const[b,P]=t([]),{updateMeta:w,createMeta:S,createProperty:_,deleteProperty:x,updateProperty:A,selectPropertyJoinOperator:B,clearProperty:T}=s(h),{cacheWrap:N}=l(),[k,$]=t(!0),[D,Q]=t(),V=v.metas.find((e=>e.key===u)),C=()=>e(void 0,void 0,void 0,(function*(){var e;$(!0),Q(void 0);const r=yield N((()=>y({})),g);if(r)if(Array.isArray(r)){const t=null!==(e=null==r?void 0:r.map((e=>({label:e.name,value:e.id,description:e.description,selected:"create"!==f&&(!!(null==V?void 0:V.value)&&V.value===e.id)}))))&&void 0!==e?e:[];P([...t])}else{const e=p.convertToGroupOptions(r,(null==V?void 0:V.value)?[V.value]:void 0);P([...e])}else P([]),Q("Something went wrong while fetching the list. Please try again");$(!1)}));return o((()=>{C()}),[]),r(c,Object.assign({node:v,addPropertyBtnText:(null==V?void 0:V.value)&&m,deleteProperty:x,createProperty:_,propertySelectorText:"Select condition",fetchPropertyData:function(){return e(this,void 0,void 0,(function*(){if(null==V?void 0:V.value){return yield(e=null==V?void 0:V.value,N((()=>y({query:{triggerName:e}})),`${g}_${e}`))}var e;return null}))},onPropertyNameSelect:function(r,t){return e(this,void 0,void 0,(function*(){t.name===r.id&&t.dataType===r.type||A(Object.assign(Object.assign({},t),{name:r.id,dataType:r.type,operator:void 0,value:void 0,error:{}}),v._id);const e=yield((e,r)=>N((()=>y({query:{triggerName:e,propertyName:r}})),`${g}_${e}_${r}`))(null==V?void 0:V.value,r.id);if(!e)throw new Error("Something went wrong while fetching the list. Please try again");return{normalized:e,originalData:e}}))},onPropertyOperatorChange:function(e,r){A(Object.assign(Object.assign({},r),{operator:e,value:void 0,error:{}}),v._id)},onPropertyValueChange:function(e,r){var t;const o="string"===r.dataType&&a.includes(null!==(t=r.operator)&&void 0!==t?t:"")?n(e):{};A(Object.assign(Object.assign({},r),{value:e,error:o}),v._id)},selectPropertyJoinOperator:B,onPropertyValueSearch:j,mode:f},{children:r("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:8}},{children:r(d,{isSearchable:!0,isLoading:k,optionsErrorState:D?{title:"Failed to load options",subTitle:D}:void 0,onRetryOptionsFetch:C,error:null===(O=null==V?void 0:V.error)||void 0===O?void 0:O.key,width:"200px",options:b,onSelect:function(e){Array.isArray(e)||(T(v._id),Array.isArray(b)&&P([...b.map((r=>{if(r.options){const t=r.options.map((r=>r.value===e.value?Object.assign(Object.assign({},r),{selected:!0}):Object.assign(Object.assign({},r),{selected:!1})));return Object.assign(Object.assign({},r),{options:t})}return r.value===e.value?Object.assign(Object.assign({},r),{selected:!0}):Object.assign(Object.assign({},r),{selected:!1})}))]),(null==V?void 0:V.key)===u?w(Object.assign(Object.assign({},V),{value:e.value,error:{}}),v._id):S({key:u,value:e.value},v._id))}})}))}))};export{v as default};
1
+ import{__awaiter as e}from"../../../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import{useState as t,useEffect as o}from"react";import{ApiResponseHelper as i}from"../../helpers/ApiResponse.helper.js";import{CONTAINS_OPERATORS as a,getContainsFilterError as n}from"../../helpers/SegmentValidator.js";import{useQueryBuilder as s}from"../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as l}from"../../hooks/useQueryBuilderCache.js";import d from"../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as c}from"../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const p=new i,u="triggerName",v=({node:i,apiHandler:v,cacheKey:y,propertyAddBtnText:g,mode:m,selectorKey:f,onPropertyValueSearch:h})=>{var j;const[O,b]=t([]),{updateMeta:P,createMeta:w,createProperty:S,deleteProperty:_,updateProperty:x,selectPropertyJoinOperator:A,clearProperty:B}=s(f),{cacheWrap:T}=l(),[N,k]=t(!0),[$,D]=t(),Q=i.metas.find((e=>e.key===u)),V=()=>e(void 0,void 0,void 0,(function*(){var e;k(!0),D(void 0);const r=yield T((()=>v({})),y);if(r)if(Array.isArray(r)){const t=null!==(e=null==r?void 0:r.map((e=>({label:e.name,value:e.id,description:e.description,selected:"create"!==m&&(!!(null==Q?void 0:Q.value)&&Q.value===e.id)}))))&&void 0!==e?e:[];b([...t])}else{const e=p.convertToGroupOptions(r,(null==Q?void 0:Q.value)?[Q.value]:void 0);b([...e])}else b([]),D("Something went wrong while fetching the list. Please try again");k(!1)}));return o((()=>{V()}),[]),r(c,Object.assign({node:i,addPropertyBtnText:(null==Q?void 0:Q.value)&&g,deleteProperty:_,createProperty:S,propertySelectorText:"Select condition",fetchPropertyData:function(){return e(this,void 0,void 0,(function*(){if(null==Q?void 0:Q.value){return yield(e=null==Q?void 0:Q.value,T((()=>v({query:{triggerName:e}})),`${y}_${e}`))}var e;return null}))},onPropertyNameSelect:function(r,t){return e(this,void 0,void 0,(function*(){t.name===r.id&&t.dataType===r.type||x(Object.assign(Object.assign({},t),{name:r.id,dataType:r.type,operator:void 0,value:void 0,error:{}}),i._id);const e=yield((e,r)=>T((()=>v({query:{triggerName:e,propertyName:r}})),`${y}_${e}_${r}`))(null==Q?void 0:Q.value,r.id);if(!e)throw new Error("Something went wrong while fetching the list. Please try again");return{normalized:e,originalData:e}}))},onPropertyOperatorChange:function(e,r){x(Object.assign(Object.assign({},r),{operator:e,value:void 0,error:{}}),i._id)},onPropertyValueChange:function(e,r){var t;const o="string"===r.dataType&&a.includes(null!==(t=r.operator)&&void 0!==t?t:"")?n(e):{};x(Object.assign(Object.assign({},r),{value:e,error:o}),i._id)},selectPropertyJoinOperator:A,onPropertyValueSearch:h,mode:m},{children:r("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:8}},{children:r(d,{isSearchable:!0,isLoading:N,optionsErrorState:$?{title:"Failed to load options",subTitle:$}:void 0,onRetryOptionsFetch:V,error:null===(j=null==Q?void 0:Q.error)||void 0===j?void 0:j.key,width:"200px",options:O,onSelect:function(e){Array.isArray(e)||(B(i._id),Array.isArray(O)&&b([...O.map((r=>{if(r.options){const t=r.options.map((r=>r.value===e.value?Object.assign(Object.assign({},r),{selected:!0}):Object.assign(Object.assign({},r),{selected:!1})));return Object.assign(Object.assign({},r),{options:t})}return r.value===e.value?Object.assign(Object.assign({},r),{selected:!0}):Object.assign(Object.assign({},r),{selected:!1})}))]),(null==Q?void 0:Q.key)===u?P(Object.assign(Object.assign({},Q),{value:e.value,error:{}}),i._id):w({key:u,value:e.value},i._id))}})}))}))};export{v as default};
2
2
  //# sourceMappingURL=BaseTriggerQueryBuilderNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTriggerQueryBuilderNode.js","sources":["../../../../../../src/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport {\n\tDropdownOption,\n\tGroupedOption,\n\tSingleOption,\n} from '@src/components/dropdown/type';\nimport { ApiResponseHelper } from '@src/components/QueryBuilder/helpers/ApiResponse.helper';\nimport {\n\tCONTAINS_OPERATORS,\n\tgetContainsFilterError,\n} from '@src/components/QueryBuilder/helpers/SegmentValidator';\nimport { useQueryBuilder } from '@src/components/QueryBuilder/hooks/useQueryBuilder';\nimport { useQueryBuilderCache } from '@src/components/QueryBuilder/hooks/useQueryBuilderCache';\nimport {\n\tQueryBuilderMeta,\n\tQueryBuilderProperty,\n} from '@src/components/QueryBuilder/types/QueryBuilder.type';\nimport { QueryBuilderAPIData } from '@src/components/QueryBuilder/types/QueryBuilderAPI.type';\nimport { CONNECTOR_VALUE_TYPE } from '@src/components/QueryBuilder/types/QueryBuilderConnector.type';\nimport { QueryBuilderNodeProps } from '@src/components/QueryBuilder/types/QueryBuilderNodeProps.type';\nimport DropdownWrapper from '../../components/DropdownWrapper';\nimport { BaseQueryBuilderNode } from '../../components/QueryBuilderNode/Base/BaseQueryBuilderNode';\nimport { CONNECTOR_OPERATORS } from '../../types/QueryBuilderOperator.type';\n\nconst apiResponseHelper = new ApiResponseHelper();\nconst META_KEY = 'triggerName';\n\nconst BaseTriggerQueryBuilderNode: React.FC<\n\tQueryBuilderNodeProps & {\n\t\tcacheKey: string;\n\t\tpropertyAddBtnText: string;\n\t\tonPropertyValueSearch?: (\n\t\t\tsearchKey: string,\n\t\t\tproperty: QueryBuilderProperty,\n\t\t) => Promise<DropdownOption[]>;\n\t}\n> = ({\n\tnode,\n\tapiHandler,\n\tcacheKey,\n\tpropertyAddBtnText,\n\tmode,\n\tselectorKey,\n\tonPropertyValueSearch,\n}) => {\n\tconst [triggerNameOptions, setTriggerNameOptions] = useState<\n\t\tDropdownOption[]\n\t>([]);\n\tconst {\n\t\tupdateMeta,\n\t\tcreateMeta,\n\t\tcreateProperty,\n\t\tdeleteProperty,\n\t\tupdateProperty,\n\t\tselectPropertyJoinOperator,\n\t\tclearProperty,\n\t} = useQueryBuilder(selectorKey);\n\tconst { cacheWrap } = useQueryBuilderCache();\n\tconst [triggerNameLoading, setTriggerNameLoading] = useState(true);\n\tconst [triggerNameFetchError, setTriggerNameFetchError] = useState<string>();\n\tconst triggeNameMeta = node.metas.find((meta) => meta.key === META_KEY);\n\n\tconst getTriggerNames = () =>\n\t\tcacheWrap(() => apiHandler<undefined>({}), cacheKey);\n\n\tconst getTriggerPropertyNames = (key: string | number) =>\n\t\tcacheWrap(\n\t\t\t() =>\n\t\t\t\tapiHandler<{ triggerName: string | number }>({\n\t\t\t\t\tquery: { triggerName: key },\n\t\t\t\t}),\n\t\t\t`${cacheKey}_${key}`,\n\t\t);\n\n\tconst getTriggerPropertyValues = (\n\t\ttriggerName: string,\n\t\tpropertyName: string,\n\t) =>\n\t\tcacheWrap(\n\t\t\t() =>\n\t\t\t\tapiHandler<{ triggerName: string; propertyName: string }>({\n\t\t\t\t\tquery: {\n\t\t\t\t\t\ttriggerName,\n\t\t\t\t\t\tpropertyName,\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t`${cacheKey}_${triggerName}_${propertyName}`,\n\t\t);\n\n\tconst loadTriggerNames = async () => {\n\t\tsetTriggerNameLoading(true);\n\t\tsetTriggerNameFetchError(undefined);\n\t\tconst triggerNameResponse = await getTriggerNames();\n\n\t\tif (triggerNameResponse) {\n\t\t\tif (Array.isArray(triggerNameResponse)) {\n\t\t\t\tconst options: DropdownOption[] =\n\t\t\t\t\ttriggerNameResponse?.map((response) => ({\n\t\t\t\t\t\tlabel: response.name as string,\n\t\t\t\t\t\tvalue: response.id as string,\n\t\t\t\t\t\tdescription: response.description,\n\t\t\t\t\t\tselected:\n\t\t\t\t\t\t\tmode !== 'create'\n\t\t\t\t\t\t\t\t? triggeNameMeta?.value\n\t\t\t\t\t\t\t\t\t? triggeNameMeta.value === response.id\n\t\t\t\t\t\t\t\t\t: false\n\t\t\t\t\t\t\t\t: false,\n\t\t\t\t\t})) ?? [];\n\n\t\t\t\tsetTriggerNameOptions([...options]);\n\t\t\t} else {\n\t\t\t\tconst eventNameOptions = apiResponseHelper.convertToGroupOptions(\n\t\t\t\t\ttriggerNameResponse,\n\t\t\t\t\ttriggeNameMeta?.value ? [triggeNameMeta.value as string] : undefined,\n\t\t\t\t);\n\t\t\t\tsetTriggerNameOptions([...eventNameOptions]);\n\t\t\t}\n\t\t} else {\n\t\t\tsetTriggerNameOptions([]);\n\t\t\tsetTriggerNameFetchError(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\tsetTriggerNameLoading(false);\n\t};\n\n\tuseEffect(() => {\n\t\tloadTriggerNames();\n\t}, []);\n\n\tfunction handleTriggerNameSelection(\n\t\toption: DropdownOption | DropdownOption[],\n\t) {\n\t\tif (!Array.isArray(option)) {\n\t\t\tclearProperty(node._id);\n\t\t\t/** always true */\n\n\t\t\tif (Array.isArray(triggerNameOptions)) {\n\t\t\t\tsetTriggerNameOptions([\n\t\t\t\t\t...triggerNameOptions.map((op) => {\n\t\t\t\t\t\tif ((op as GroupedOption).options) {\n\t\t\t\t\t\t\t/** grouped */\n\t\t\t\t\t\t\tconst groupedOptions = (op as GroupedOption).options.map((gp) => {\n\t\t\t\t\t\t\t\tif (gp.value === (option as SingleOption).value) {\n\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t...gp,\n\t\t\t\t\t\t\t\t\t\tselected: true,\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t...gp,\n\t\t\t\t\t\t\t\t\tselected: false,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...op,\n\t\t\t\t\t\t\t\toptions: groupedOptions,\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t(op as SingleOption).value === (option as SingleOption).value\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t...op,\n\t\t\t\t\t\t\t\t\tselected: true,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn { ...op, selected: false };\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\t]);\n\t\t\t}\n\n\t\t\tif (triggeNameMeta?.key === META_KEY) {\n\t\t\t\tupdateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\t...triggeNameMeta,\n\t\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\t\terror: {},\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: META_KEY,\n\t\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\t} as QueryBuilderMeta,\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tasync function fetchPropertyData() {\n\t\tif (triggeNameMeta?.value) {\n\t\t\tconst response = await getTriggerPropertyNames(\n\t\t\t\ttriggeNameMeta?.value as string,\n\t\t\t);\n\t\t\treturn response;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tasync function onPropertyNameSelect(\n\t\tpropertyName: QueryBuilderAPIData,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst isRetry =\n\t\t\tproperty.name === propertyName.id &&\n\t\t\tproperty.dataType === propertyName.type;\n\n\t\tif (!isRetry) {\n\t\t\tupdateProperty(\n\t\t\t\t{\n\t\t\t\t\t...property,\n\t\t\t\t\tname: propertyName.id,\n\t\t\t\t\tdataType: propertyName.type,\n\t\t\t\t\toperator: undefined,\n\t\t\t\t\tvalue: undefined,\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\n\t\t// if (!propertyName.needValuesRetrieval) return [];\n\n\t\tconst response = await getTriggerPropertyValues(\n\t\t\ttriggeNameMeta?.value as string,\n\t\t\tpropertyName.id as string,\n\t\t);\n\n\t\tif (!response) {\n\t\t\tthrow new Error(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\treturn {\n\t\t\tnormalized: response as QueryBuilderAPIData[],\n\t\t\toriginalData: response,\n\t\t};\n\t}\n\n\tfunction onPropertyOperatorChange(\n\t\toption: CONNECTOR_OPERATORS,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\toperator: option,\n\t\t\t\tvalue: undefined,\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction onPropertyValueChange(\n\t\tvalue: CONNECTOR_VALUE_TYPE | QueryBuilderAPIData[],\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst isContainsFilter =\n\t\t\tproperty.dataType === 'string' &&\n\t\t\tCONTAINS_OPERATORS.includes(property.operator ?? '');\n\t\tconst error = isContainsFilter ? getContainsFilterError(value) : {};\n\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\tvalue,\n\t\t\t\terror,\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\treturn (\n\t\t<BaseQueryBuilderNode\n\t\t\tnode={node}\n\t\t\taddPropertyBtnText={triggeNameMeta?.value && propertyAddBtnText}\n\t\t\tdeleteProperty={deleteProperty}\n\t\t\tcreateProperty={createProperty}\n\t\t\tpropertySelectorText=\"Select condition\"\n\t\t\tfetchPropertyData={fetchPropertyData}\n\t\t\tonPropertyNameSelect={onPropertyNameSelect}\n\t\t\tonPropertyOperatorChange={onPropertyOperatorChange}\n\t\t\tonPropertyValueChange={onPropertyValueChange}\n\t\t\tselectPropertyJoinOperator={selectPropertyJoinOperator}\n\t\t\tonPropertyValueSearch={onPropertyValueSearch}\n\t\t\tmode={mode}\n\t\t>\n\t\t\t<div style={{ flexDirection: 'row', display: 'flex', gap: 8 }}>\n\t\t\t\t<DropdownWrapper\n\t\t\t\t\tisSearchable\n\t\t\t\t\tisLoading={triggerNameLoading}\n\t\t\t\t\toptionsErrorState={\n\t\t\t\t\t\ttriggerNameFetchError\n\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\ttitle: 'Failed to load options',\n\t\t\t\t\t\t\t\t\tsubTitle: triggerNameFetchError,\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t\tonRetryOptionsFetch={loadTriggerNames}\n\t\t\t\t\terror={triggeNameMeta?.error?.key}\n\t\t\t\t\twidth=\"200px\"\n\t\t\t\t\toptions={triggerNameOptions}\n\t\t\t\t\tonSelect={handleTriggerNameSelection}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</BaseQueryBuilderNode>\n\t);\n};\n\nexport default BaseTriggerQueryBuilderNode;\n"],"names":["apiResponseHelper","ApiResponseHelper","META_KEY","BaseTriggerQueryBuilderNode","_ref","node","apiHandler","cacheKey","propertyAddBtnText","mode","selectorKey","onPropertyValueSearch","triggerNameOptions","setTriggerNameOptions","useState","updateMeta","createMeta","createProperty","deleteProperty","updateProperty","selectPropertyJoinOperator","clearProperty","useQueryBuilder","cacheWrap","useQueryBuilderCache","triggerNameLoading","setTriggerNameLoading","triggerNameFetchError","setTriggerNameFetchError","triggeNameMeta","metas","find","meta","key","loadTriggerNames","__awaiter","undefined","triggerNameResponse","Array","isArray","options","_b","map","response","label","name","value","id","description","selected","eventNameOptions","convertToGroupOptions","useEffect","_jsx","BaseQueryBuilderNode","addPropertyBtnText","propertySelectorText","fetchPropertyData","query","triggerName","onPropertyNameSelect","propertyName","property","dataType","type","Object","assign","operator","error","_id","getTriggerPropertyValues","Error","normalized","originalData","onPropertyOperatorChange","option","onPropertyValueChange","CONTAINS_OPERATORS","includes","_a","getContainsFilterError","children","style","flexDirection","display","gap","DropdownWrapper","isSearchable","isLoading","optionsErrorState","title","subTitle","onRetryOptionsFetch","width","onSelect","op","groupedOptions","gp"],"mappings":"mmBAwBA,MAAMA,EAAoB,IAAIC,EACxBC,EAAW,cAEXC,EASFC,IAQC,IARAC,KACJA,EAAIC,WACJA,EAAUC,SACVA,EAAQC,mBACRA,EAAkBC,KAClBA,EAAIC,YACJA,EAAWC,sBACXA,GACAP,QACA,MAAOQ,EAAoBC,GAAyBC,EAElD,KACIC,WACLA,EAAUC,WACVA,EAAUC,eACVA,EAAcC,eACdA,EAAcC,eACdA,EAAcC,2BACdA,EAA0BC,cAC1BA,GACGC,EAAgBZ,IACda,UAAEA,GAAcC,KACfC,EAAoBC,GAAyBZ,GAAS,IACtDa,EAAuBC,GAA4Bd,IACpDe,EAAiBxB,EAAKyB,MAAMC,MAAMC,GAASA,EAAKC,MAAQ/B,IA6BxDgC,EAAmBA,IAAWC,OAAA,OAAA,OAAA,GAAA,kB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AAS,CAElC,MAAMwD,EAAkBD,EAAqBvD,QAAQE,KAAKuD,GACrDA,EAAGnD,QAAW6B,EAAwB7B,MACzCmB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACI+B,GAAE,CACLhD,UAAU,IAIZgB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACI+B,GAAE,CACLhD,UAAU,MAIZ,OAAAgB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACI6B,GAAE,CACLvD,QAASwD,GAEV,CACA,OACED,EAAoBjD,QAAW6B,EAAwB7B,MAExDmB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACI6B,GAAE,CACL9C,UAAU,IAIZgB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAAY6B,GAAE,CAAE9C,UAAU,GAC1B,OAKApB,aAAc,EAAdA,EAAgBI,OAAQ/B,EAC3Ba,iCAEKc,GAAc,CACjBiB,MAAQ6B,EAAwB7B,MAChCsB,MAAO,CAAE,IAEV/D,EAAKgE,KAGNrD,EACC,CACCiB,IAAK/B,EACL4C,MAAQ6B,EAAwB7B,OAEjCzC,EAAKgE,KAIT,SA0HwB"}
1
+ {"version":3,"file":"BaseTriggerQueryBuilderNode.js","sources":["../../../../../../src/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport {\n\tDropdownOption,\n\tGroupedOption,\n\tSingleOption,\n} from '@src/components/dropdown/type';\nimport { ApiResponseHelper } from '@src/components/QueryBuilder/helpers/ApiResponse.helper';\nimport {\n\tCONTAINS_OPERATORS,\n\tgetContainsFilterError,\n} from '@src/components/QueryBuilder/helpers/SegmentValidator';\nimport { useQueryBuilder } from '@src/components/QueryBuilder/hooks/useQueryBuilder';\nimport { useQueryBuilderCache } from '@src/components/QueryBuilder/hooks/useQueryBuilderCache';\nimport {\n\tQueryBuilderMeta,\n\tQueryBuilderProperty,\n} from '@src/components/QueryBuilder/types/QueryBuilder.type';\nimport { QueryBuilderAPIData } from '@src/components/QueryBuilder/types/QueryBuilderAPI.type';\nimport { CONNECTOR_VALUE_TYPE } from '@src/components/QueryBuilder/types/QueryBuilderConnector.type';\nimport { QueryBuilderNodeProps } from '@src/components/QueryBuilder/types/QueryBuilderNodeProps.type';\nimport DropdownWrapper from '../../components/DropdownWrapper';\nimport { BaseQueryBuilderNode } from '../../components/QueryBuilderNode/Base/BaseQueryBuilderNode';\nimport { CONNECTOR_OPERATORS } from '../../types/QueryBuilderOperator.type';\n\nconst apiResponseHelper = new ApiResponseHelper();\nconst META_KEY = 'triggerName';\n\nconst BaseTriggerQueryBuilderNode: React.FC<\n\tQueryBuilderNodeProps & {\n\t\tcacheKey: string;\n\t\tpropertyAddBtnText: string;\n\t\tonPropertyValueSearch?: (\n\t\t\tsearchKey: string,\n\t\t\tproperty: QueryBuilderProperty,\n\t\t) => Promise<DropdownOption[]>;\n\t}\n> = ({\n\tnode,\n\tapiHandler,\n\tcacheKey,\n\tpropertyAddBtnText,\n\tmode,\n\tselectorKey,\n\tonPropertyValueSearch,\n}) => {\n\tconst [triggerNameOptions, setTriggerNameOptions] = useState<\n\t\tDropdownOption[]\n\t>([]);\n\tconst {\n\t\tupdateMeta,\n\t\tcreateMeta,\n\t\tcreateProperty,\n\t\tdeleteProperty,\n\t\tupdateProperty,\n\t\tselectPropertyJoinOperator,\n\t\tclearProperty,\n\t} = useQueryBuilder(selectorKey);\n\tconst { cacheWrap } = useQueryBuilderCache();\n\tconst [triggerNameLoading, setTriggerNameLoading] = useState(true);\n\tconst [triggerNameFetchError, setTriggerNameFetchError] = useState<string>();\n\tconst triggeNameMeta = node.metas.find((meta) => meta.key === META_KEY);\n\n\tconst getTriggerNames = () =>\n\t\tcacheWrap(() => apiHandler<undefined>({}), cacheKey);\n\n\tconst getTriggerPropertyNames = (key: string | number) =>\n\t\tcacheWrap(\n\t\t\t() =>\n\t\t\t\tapiHandler<{ triggerName: string | number }>({\n\t\t\t\t\tquery: { triggerName: key },\n\t\t\t\t}),\n\t\t\t`${cacheKey}_${key}`,\n\t\t);\n\n\tconst getTriggerPropertyValues = (\n\t\ttriggerName: string,\n\t\tpropertyName: string,\n\t) =>\n\t\tcacheWrap(\n\t\t\t() =>\n\t\t\t\tapiHandler<{ triggerName: string; propertyName: string }>({\n\t\t\t\t\tquery: {\n\t\t\t\t\t\ttriggerName,\n\t\t\t\t\t\tpropertyName,\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t`${cacheKey}_${triggerName}_${propertyName}`,\n\t\t);\n\n\tconst loadTriggerNames = async () => {\n\t\tsetTriggerNameLoading(true);\n\t\tsetTriggerNameFetchError(undefined);\n\t\tconst triggerNameResponse = await getTriggerNames();\n\n\t\tif (triggerNameResponse) {\n\t\t\tif (Array.isArray(triggerNameResponse)) {\n\t\t\t\tconst options: DropdownOption[] =\n\t\t\t\t\ttriggerNameResponse?.map((response) => ({\n\t\t\t\t\t\tlabel: response.name as string,\n\t\t\t\t\t\tvalue: response.id as string,\n\t\t\t\t\t\tdescription: response.description,\n\t\t\t\t\t\tselected:\n\t\t\t\t\t\t\tmode !== 'create'\n\t\t\t\t\t\t\t\t? triggeNameMeta?.value\n\t\t\t\t\t\t\t\t\t? triggeNameMeta.value === response.id\n\t\t\t\t\t\t\t\t\t: false\n\t\t\t\t\t\t\t\t: false,\n\t\t\t\t\t})) ?? [];\n\n\t\t\t\tsetTriggerNameOptions([...options]);\n\t\t\t} else {\n\t\t\t\tconst eventNameOptions = apiResponseHelper.convertToGroupOptions(\n\t\t\t\t\ttriggerNameResponse,\n\t\t\t\t\ttriggeNameMeta?.value ? [triggeNameMeta.value as string] : undefined,\n\t\t\t\t);\n\t\t\t\tsetTriggerNameOptions([...eventNameOptions]);\n\t\t\t}\n\t\t} else {\n\t\t\tsetTriggerNameOptions([]);\n\t\t\tsetTriggerNameFetchError(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\tsetTriggerNameLoading(false);\n\t};\n\n\tuseEffect(() => {\n\t\tloadTriggerNames();\n\t}, []);\n\n\tfunction handleTriggerNameSelection(\n\t\toption: DropdownOption | DropdownOption[],\n\t) {\n\t\tif (!Array.isArray(option)) {\n\t\t\tclearProperty(node._id);\n\t\t\t/** always true */\n\n\t\t\tif (Array.isArray(triggerNameOptions)) {\n\t\t\t\tsetTriggerNameOptions([\n\t\t\t\t\t...triggerNameOptions.map((op) => {\n\t\t\t\t\t\tif ((op as GroupedOption).options) {\n\t\t\t\t\t\t\t/** grouped */\n\t\t\t\t\t\t\tconst groupedOptions = (op as GroupedOption).options.map((gp) => {\n\t\t\t\t\t\t\t\tif (gp.value === (option as SingleOption).value) {\n\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t...gp,\n\t\t\t\t\t\t\t\t\t\tselected: true,\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t...gp,\n\t\t\t\t\t\t\t\t\tselected: false,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...op,\n\t\t\t\t\t\t\t\toptions: groupedOptions,\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t(op as SingleOption).value === (option as SingleOption).value\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t...op,\n\t\t\t\t\t\t\t\t\tselected: true,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn { ...op, selected: false };\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\t]);\n\t\t\t}\n\n\t\t\tif (triggeNameMeta?.key === META_KEY) {\n\t\t\t\tupdateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\t...triggeNameMeta,\n\t\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\t\terror: {},\n\t\t\t\t\t},\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tcreateMeta(\n\t\t\t\t\t{\n\t\t\t\t\t\tkey: META_KEY,\n\t\t\t\t\t\tvalue: (option as SingleOption).value,\n\t\t\t\t\t} as QueryBuilderMeta,\n\t\t\t\t\tnode._id,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tasync function fetchPropertyData() {\n\t\tif (triggeNameMeta?.value) {\n\t\t\tconst response = await getTriggerPropertyNames(\n\t\t\t\ttriggeNameMeta?.value as string,\n\t\t\t);\n\t\t\treturn response;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tasync function onPropertyNameSelect(\n\t\tpropertyName: QueryBuilderAPIData,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst isRetry =\n\t\t\tproperty.name === propertyName.id &&\n\t\t\tproperty.dataType === propertyName.type;\n\n\t\tif (!isRetry) {\n\t\t\tupdateProperty(\n\t\t\t\t{\n\t\t\t\t\t...property,\n\t\t\t\t\tname: propertyName.id,\n\t\t\t\t\tdataType: propertyName.type,\n\t\t\t\t\toperator: undefined,\n\t\t\t\t\tvalue: undefined,\n\t\t\t\t\terror: {},\n\t\t\t\t},\n\t\t\t\tnode._id,\n\t\t\t);\n\t\t}\n\n\t\t// if (!propertyName.needValuesRetrieval) return [];\n\n\t\tconst response = await getTriggerPropertyValues(\n\t\t\ttriggeNameMeta?.value as string,\n\t\t\tpropertyName.id as string,\n\t\t);\n\n\t\tif (!response) {\n\t\t\tthrow new Error(\n\t\t\t\t'Something went wrong while fetching the list. Please try again',\n\t\t\t);\n\t\t}\n\n\t\treturn {\n\t\t\tnormalized: response as QueryBuilderAPIData[],\n\t\t\toriginalData: response,\n\t\t};\n\t}\n\n\tfunction onPropertyOperatorChange(\n\t\toption: CONNECTOR_OPERATORS,\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\toperator: option,\n\t\t\t\tvalue: undefined,\n\t\t\t\terror: {},\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\tfunction onPropertyValueChange(\n\t\tvalue: CONNECTOR_VALUE_TYPE | QueryBuilderAPIData[],\n\t\tproperty: QueryBuilderProperty,\n\t) {\n\t\tconst isContainsFilter =\n\t\t\tproperty.dataType === 'string' &&\n\t\t\tCONTAINS_OPERATORS.includes(property.operator ?? '');\n\t\tconst error = isContainsFilter ? getContainsFilterError(value) : {};\n\n\t\tupdateProperty(\n\t\t\t{\n\t\t\t\t...property,\n\t\t\t\tvalue,\n\t\t\t\terror,\n\t\t\t},\n\t\t\tnode._id,\n\t\t);\n\t}\n\n\treturn (\n\t\t<BaseQueryBuilderNode\n\t\t\tnode={node}\n\t\t\taddPropertyBtnText={triggeNameMeta?.value && propertyAddBtnText}\n\t\t\tdeleteProperty={deleteProperty}\n\t\t\tcreateProperty={createProperty}\n\t\t\tpropertySelectorText=\"Select condition\"\n\t\t\tfetchPropertyData={fetchPropertyData}\n\t\t\tonPropertyNameSelect={onPropertyNameSelect}\n\t\t\tonPropertyOperatorChange={onPropertyOperatorChange}\n\t\t\tonPropertyValueChange={onPropertyValueChange}\n\t\t\tselectPropertyJoinOperator={selectPropertyJoinOperator}\n\t\t\tonPropertyValueSearch={onPropertyValueSearch}\n\t\t\tmode={mode}\n\t\t>\n\t\t\t<div style={{ flexDirection: 'row', display: 'flex', gap: 8 }}>\n\t\t\t\t<DropdownWrapper\n\t\t\t\t\tisSearchable\n\t\t\t\t\tisLoading={triggerNameLoading}\n\t\t\t\t\toptionsErrorState={\n\t\t\t\t\t\ttriggerNameFetchError\n\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\ttitle: 'Failed to load options',\n\t\t\t\t\t\t\t\t\tsubTitle: triggerNameFetchError,\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t\tonRetryOptionsFetch={loadTriggerNames}\n\t\t\t\t\terror={triggeNameMeta?.error?.key}\n\t\t\t\t\twidth=\"200px\"\n\t\t\t\t\toptions={triggerNameOptions}\n\t\t\t\t\tonSelect={handleTriggerNameSelection}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</BaseQueryBuilderNode>\n\t);\n};\n\nexport default BaseTriggerQueryBuilderNode;\n"],"names":["apiResponseHelper","ApiResponseHelper","META_KEY","BaseTriggerQueryBuilderNode","node","apiHandler","cacheKey","propertyAddBtnText","mode","selectorKey","onPropertyValueSearch","triggerNameOptions","setTriggerNameOptions","useState","updateMeta","createMeta","createProperty","deleteProperty","updateProperty","selectPropertyJoinOperator","clearProperty","useQueryBuilder","cacheWrap","useQueryBuilderCache","triggerNameLoading","setTriggerNameLoading","triggerNameFetchError","setTriggerNameFetchError","triggeNameMeta","metas","find","meta","key","loadTriggerNames","__awaiter","undefined","triggerNameResponse","Array","isArray","options","_b","map","response","label","name","value","id","description","selected","eventNameOptions","convertToGroupOptions","useEffect","_jsx","BaseQueryBuilderNode","addPropertyBtnText","propertySelectorText","fetchPropertyData","query","triggerName","onPropertyNameSelect","propertyName","property","dataType","type","Object","assign","operator","error","_id","getTriggerPropertyValues","Error","normalized","originalData","onPropertyOperatorChange","option","onPropertyValueChange","CONTAINS_OPERATORS","includes","_a","getContainsFilterError","children","style","flexDirection","display","gap","DropdownWrapper","isSearchable","isLoading","optionsErrorState","title","subTitle","onRetryOptionsFetch","width","onSelect","op","groupedOptions","gp"],"mappings":"mmBAwBA,MAAMA,EAAoB,IAAIC,EACxBC,EAAW,cAEXC,EASFA,EACHC,OACAC,aACAC,WACAC,qBACAC,OACAC,cACAC,kCAEA,MAAOC,EAAoBC,GAAyBC,EAElD,KACIC,WACLA,EAAUC,WACVA,EAAUC,eACVA,EAAcC,eACdA,EAAcC,eACdA,EAAcC,2BACdA,EAA0BC,cAC1BA,GACGC,EAAgBZ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A9C,IAC9B4D,MAAM,QACNrD,QAAS5B,EACTkF,SAxLJ,SACCnB,GAEKrC,MAAMC,QAAQoC,KAClBtD,EAAchB,EAAKgE,KAGf/B,MAAMC,QAAQ3B,IACjBC,EAAsB,IAClBD,EAAmB8B,KAAKqD,IAC1B,GAAKA,EAAqBvD,QAAS,CAElC,MAAMwD,EAAkBD,EAAqBvD,QAAQE,KAAKuD,GACrDA,EAAGnD,QAAW6B,EAAwB7B,MACzCmB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACI+B,GAAE,CACLhD,UAAU,IAIZgB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACI+B,GAAE,CACLhD,UAAU,MAIZ,OAAAgB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACI6B,GAAE,CACLvD,QAASwD,GAEV,CACA,OACED,EAAoBjD,QAAW6B,EAAwB7B,MAExDmB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACI6B,GAAE,CACL9C,UAAU,IAIZgB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAAY6B,GAAE,CAAE9C,UAAU,GAC1B,OAKApB,aAAc,EAAdA,EAAgBI,OAAQ9B,EAC3BY,iCAEKc,GAAc,CACjBiB,MAAQ6B,EAAwB7B,MAChCsB,MAAO,CAAE,IAEV/D,EAAKgE,KAGNrD,EACC,CACCiB,IAAK9B,EACL2C,MAAQ6B,EAAwB7B,OAEjCzC,EAAKgE,KAIT,SA0HwB"}
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import{Button as o}from"../../button/Button.js";import e from"../../../assets/icons/plus.svg.js";import{useQueryBuilder as s}from"../hooks/useQueryBuilder.js";const r=r=>{let{buttonText:u,allowedNodes:n,selectorKey:i}=r;const{addNode:m}=s(i);return t(o,{buttonText:u,size:"medium",buttonType:"dashRegular",LeadingIcon:e,onClick:()=>{m(n[0])}})};export{r as default};
1
+ import{jsx as o}from"react/jsx-runtime";import{Button as t}from"../../button/Button.js";import e from"../../../assets/icons/plus.svg.js";import{useQueryBuilder as s}from"../hooks/useQueryBuilder.js";const r=({buttonText:r,allowedNodes:u,selectorKey:n})=>{const{addNode:i}=s(n);return o(t,{buttonText:r,size:"medium",buttonType:"dashRegular",LeadingIcon:e,onClick:()=>{i(u[0])}})};export{r as default};
2
2
  //# sourceMappingURL=AddNodeButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddNodeButton.js","sources":["../../../../../src/components/QueryBuilder/components/AddNodeButton.tsx"],"sourcesContent":["import React from 'react';\nimport { Button } from '@src/components/button';\nimport PlusIcon from '../../../assets/icons/plus.svg';\nimport { useQueryBuilder } from '../hooks/useQueryBuilder';\nimport { QueryBuilderType } from '../types/QueryBuilder.type';\n\nconst AddNodeButton: React.FC<{\n\tbuttonText: string;\n\tallowedNodes: QueryBuilderType[];\n\tselectorKey: string;\n}> = ({ buttonText, allowedNodes, selectorKey }) => {\n\tconst { addNode } = useQueryBuilder(selectorKey);\n\n\treturn (\n\t\t<Button\n\t\t\tbuttonText={buttonText}\n\t\t\tsize=\"medium\"\n\t\t\tbuttonType=\"dashRegular\"\n\t\t\tLeadingIcon={PlusIcon}\n\t\t\tonClick={() => {\n\t\t\t\taddNode(allowedNodes[0]);\n\t\t\t}}\n\t\t/>\n\t);\n};\n\nexport default AddNodeButton;\n"],"names":["AddNodeButton","_ref","buttonText","allowedNodes","selectorKey","addNode","useQueryBuilder","_jsx","Button","size","buttonType","LeadingIcon","PlusIcon","onClick"],"mappings":"uMAMMA,MAAAA,EAIDC,IAA8C,IAA7CC,WAAEA,EAAUC,aAAEA,EAAYC,YAAEA,GAAaH,EAC9C,MAAMI,QAAEA,GAAYC,EAAgBF,GAEpC,OACCG,EAACC,EAAM,CACNN,WAAYA,EACZO,KAAK,SACLC,WAAW,cACXC,YAAaC,EACbC,QAASA,KACRR,EAAQF,EAAa,GAAG,GAExB"}
1
+ {"version":3,"file":"AddNodeButton.js","sources":["../../../../../src/components/QueryBuilder/components/AddNodeButton.tsx"],"sourcesContent":["import React from 'react';\nimport { Button } from '@src/components/button';\nimport PlusIcon from '../../../assets/icons/plus.svg';\nimport { useQueryBuilder } from '../hooks/useQueryBuilder';\nimport { QueryBuilderType } from '../types/QueryBuilder.type';\n\nconst AddNodeButton: React.FC<{\n\tbuttonText: string;\n\tallowedNodes: QueryBuilderType[];\n\tselectorKey: string;\n}> = ({ buttonText, allowedNodes, selectorKey }) => {\n\tconst { addNode } = useQueryBuilder(selectorKey);\n\n\treturn (\n\t\t<Button\n\t\t\tbuttonText={buttonText}\n\t\t\tsize=\"medium\"\n\t\t\tbuttonType=\"dashRegular\"\n\t\t\tLeadingIcon={PlusIcon}\n\t\t\tonClick={() => {\n\t\t\t\taddNode(allowedNodes[0]);\n\t\t\t}}\n\t\t/>\n\t);\n};\n\nexport default AddNodeButton;\n"],"names":["AddNodeButton","buttonText","allowedNodes","selectorKey","addNode","useQueryBuilder","_jsx","Button","size","buttonType","LeadingIcon","PlusIcon","onClick"],"mappings":"uMAMMA,MAAAA,EAIDA,EAAGC,aAAYC,eAAcC,kBACjC,MAAMC,QAAEA,GAAYC,EAAgBF,GAEpC,OACCG,EAACC,EAAM,CACNN,WAAYA,EACZO,KAAK,SACLC,WAAW,cACXC,YAAaC,EACbC,QAASA,KACRR,EAAQF,EAAa,GAAG,GAExB"}
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{QueryBuilderType as l}from"../types/QueryBuilder.type.js";import r from"./DropdownWrapper.js";const a={[l.EVENT_FILTER]:{label:"Performed event",value:l.EVENT_FILTER},[l.NO_EVENT_FILTER]:{label:"Didn’t perform event",value:l.NO_EVENT_FILTER},[l.USER_PROPERTY_FILTER]:{label:"Have user property",value:l.USER_PROPERTY_FILTER},[l.SEGMENT_FILTER]:{label:"Part of segment",value:l.SEGMENT_FILTER},[l.ORDER_PROPERTY_FILTER]:{label:"Have order property",value:l.ORDER_PROPERTY_FILTER},[l.HAS_CUSTOM_FIELD]:{label:"Has Custom Field",value:l.HAS_CUSTOM_FIELD}},t=l=>{let{allowedList:t,onSelect:E,selectedType:o,loading:i,disabled:n}=l;const u=t.map((e=>{var l;return null!==(l=a[e])&&void 0!==l?l:null})).filter((e=>e)).map((e=>{var l;if(o)return(null==e?void 0:e.value)===(null===(l=a[o])||void 0===l?void 0:l.value)?Object.assign(Object.assign({},e),{selected:!0}):e}));return e(r,{nativeID:"query-builder-initial-node",disabled:n,width:"200px",isLoading:null!=i&&i,options:u,onSelect:E})};export{a as QUERY_TYPE_TO_OPTION_MAP,t as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{QueryBuilderType as l}from"../types/QueryBuilder.type.js";import r from"./DropdownWrapper.js";const a={[l.EVENT_FILTER]:{label:"Performed event",value:l.EVENT_FILTER},[l.NO_EVENT_FILTER]:{label:"Didn’t perform event",value:l.NO_EVENT_FILTER},[l.USER_PROPERTY_FILTER]:{label:"Have user property",value:l.USER_PROPERTY_FILTER},[l.SEGMENT_FILTER]:{label:"Part of segment",value:l.SEGMENT_FILTER},[l.ORDER_PROPERTY_FILTER]:{label:"Have order property",value:l.ORDER_PROPERTY_FILTER},[l.HAS_CUSTOM_FIELD]:{label:"Has Custom Field",value:l.HAS_CUSTOM_FIELD}},t=({allowedList:l,onSelect:t,selectedType:E,loading:o,disabled:i})=>{const n=l.map((e=>{var l;return null!==(l=a[e])&&void 0!==l?l:null})).filter((e=>e)).map((e=>{var l;if(E)return(null==e?void 0:e.value)===(null===(l=a[E])||void 0===l?void 0:l.value)?Object.assign(Object.assign({},e),{selected:!0}):e}));return e(r,{nativeID:"query-builder-initial-node",disabled:i,width:"200px",isLoading:null!=o&&o,options:n,onSelect:t})};export{a as QUERY_TYPE_TO_OPTION_MAP,t as default};
2
2
  //# sourceMappingURL=AllowedListDropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AllowedListDropdown.js","sources":["../../../../../src/components/QueryBuilder/components/AllowedListDropdown.tsx"],"sourcesContent":["import React from 'react';\nimport { DropdownOption, SingleOption } from '@src/components/dropdown/type';\nimport { QueryBuilderType } from '../types/QueryBuilder.type';\nimport DropdownWrapper from './DropdownWrapper';\n\nexport const QUERY_TYPE_TO_OPTION_MAP: {\n\t[key in QueryBuilderType]?: SingleOption;\n} = {\n\t[QueryBuilderType.EVENT_FILTER]: {\n\t\tlabel: 'Performed event',\n\t\tvalue: QueryBuilderType.EVENT_FILTER,\n\t},\n\t[QueryBuilderType.NO_EVENT_FILTER]: {\n\t\tlabel: `Didn’t perform event`,\n\t\tvalue: QueryBuilderType.NO_EVENT_FILTER,\n\t},\n\t[QueryBuilderType.USER_PROPERTY_FILTER]: {\n\t\tlabel: 'Have user property',\n\t\tvalue: QueryBuilderType.USER_PROPERTY_FILTER,\n\t},\n\t[QueryBuilderType.SEGMENT_FILTER]: {\n\t\tlabel: 'Part of segment',\n\t\tvalue: QueryBuilderType.SEGMENT_FILTER,\n\t},\n\t[QueryBuilderType.ORDER_PROPERTY_FILTER]: {\n\t\tlabel: 'Have order property',\n\t\tvalue: QueryBuilderType.ORDER_PROPERTY_FILTER,\n\t},\n\t[QueryBuilderType.HAS_CUSTOM_FIELD]: {\n\t\tlabel: 'Has Custom Field',\n\t\tvalue: QueryBuilderType.HAS_CUSTOM_FIELD,\n\t},\n};\n\n/**\n * @stateless (being consumed by stateless components)\n * @param param0\n * @returns\n */\nconst AllowedListDropdown: React.FC<{\n\tallowedList: QueryBuilderType[];\n\tselectedType?: QueryBuilderType;\n\tonSelect: (option: DropdownOption | DropdownOption[]) => void;\n\tloading?: boolean;\n\tdisabled?: boolean;\n}> = ({ allowedList, onSelect, selectedType, loading, disabled }) => {\n\tconst options = allowedList\n\t\t.map((type) => QUERY_TYPE_TO_OPTION_MAP[type] ?? null)\n\t\t.filter((op) => op)\n\t\t.map((op) => {\n\t\t\tif (selectedType) {\n\t\t\t\tif (op?.value === QUERY_TYPE_TO_OPTION_MAP[selectedType]?.value) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...op,\n\t\t\t\t\t\tselected: true,\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn op;\n\t\t\t}\n\t\t});\n\n\treturn (\n\t\t<DropdownWrapper\n\t\t\tnativeID={'query-builder-initial-node'}\n\t\t\tdisabled={disabled}\n\t\t\twidth={'200px'}\n\t\t\tisLoading={loading ?? false}\n\t\t\toptions={options as SingleOption[]}\n\t\t\tonSelect={onSelect}\n\t\t/>\n\t);\n};\n\nexport default AllowedListDropdown;\n"],"names":["QUERY_TYPE_TO_OPTION_MAP","QueryBuilderType","EVENT_FILTER","label","value","NO_EVENT_FILTER","USER_PROPERTY_FILTER","SEGMENT_FILTER","ORDER_PROPERTY_FILTER","HAS_CUSTOM_FIELD","AllowedListDropdown","_ref","allowedList","onSelect","selectedType","loading","disabled","options","map","type","_a","filter","op","Object","assign","selected","_jsx","DropdownWrapper","nativeID","width","isLoading"],"mappings":"6IAKO,MAAMA,EAET,CACH,CAACC,EAAiBC,cAAe,CAChCC,MAAO,kBACPC,MAAOH,EAAiBC,cAEzB,CAACD,EAAiBI,iBAAkB,CACnCF,MAA6B,uBAC7BC,MAAOH,EAAiBI,iBAEzB,CAACJ,EAAiBK,sBAAuB,CACxCH,MAAO,qBACPC,MAAOH,EAAiBK,sBAEzB,CAACL,EAAiBM,gBAAiB,CAClCJ,MAAO,kBACPC,MAAOH,EAAiBM,gBAEzB,CAACN,EAAiBO,uBAAwB,CACzCL,MAAO,sBACPC,MAAOH,EAAiBO,uBAEzB,CAACP,EAAiBQ,kBAAmB,CACpCN,MAAO,mBACPC,MAAOH,EAAiBQ,mBASpBC,EAMDC,IAA+D,IAA9DC,YAAEA,EAAWC,SAAEA,EAAQC,aAAEA,EAAYC,QAAEA,EAAOC,SAAEA,GAAUL,EAC/D,MAAMM,EAAUL,EACdM,KAAKC,UAAS,OAA8B,QAA9BC,EAAApB,EAAyBmB,UAAK,IAAAC,EAAAA,EAAI,IAAI,IACpDC,QAAQC,GAAOA,IACfJ,KAAKI,UACL,GAAIR,EACH,OAAIQ,aAAE,EAAFA,EAAIlB,UAAkD,QAAxCgB,EAAApB,EAAyBc,UAAe,IAAAM,OAAA,EAAAA,EAAAhB,OACzDmB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACIF,GAAE,CACLG,UAAU,IAILH,CACP,IAGH,OACCI,EAACC,EAAe,CACfC,SAAU,6BACVZ,SAAUA,EACVa,MAAO,QACPC,UAAWf,SAAAA,EACXE,QAASA,EACTJ,SAAUA,GACT"}
1
+ {"version":3,"file":"AllowedListDropdown.js","sources":["../../../../../src/components/QueryBuilder/components/AllowedListDropdown.tsx"],"sourcesContent":["import React from 'react';\nimport { DropdownOption, SingleOption } from '@src/components/dropdown/type';\nimport { QueryBuilderType } from '../types/QueryBuilder.type';\nimport DropdownWrapper from './DropdownWrapper';\n\nexport const QUERY_TYPE_TO_OPTION_MAP: {\n\t[key in QueryBuilderType]?: SingleOption;\n} = {\n\t[QueryBuilderType.EVENT_FILTER]: {\n\t\tlabel: 'Performed event',\n\t\tvalue: QueryBuilderType.EVENT_FILTER,\n\t},\n\t[QueryBuilderType.NO_EVENT_FILTER]: {\n\t\tlabel: `Didn’t perform event`,\n\t\tvalue: QueryBuilderType.NO_EVENT_FILTER,\n\t},\n\t[QueryBuilderType.USER_PROPERTY_FILTER]: {\n\t\tlabel: 'Have user property',\n\t\tvalue: QueryBuilderType.USER_PROPERTY_FILTER,\n\t},\n\t[QueryBuilderType.SEGMENT_FILTER]: {\n\t\tlabel: 'Part of segment',\n\t\tvalue: QueryBuilderType.SEGMENT_FILTER,\n\t},\n\t[QueryBuilderType.ORDER_PROPERTY_FILTER]: {\n\t\tlabel: 'Have order property',\n\t\tvalue: QueryBuilderType.ORDER_PROPERTY_FILTER,\n\t},\n\t[QueryBuilderType.HAS_CUSTOM_FIELD]: {\n\t\tlabel: 'Has Custom Field',\n\t\tvalue: QueryBuilderType.HAS_CUSTOM_FIELD,\n\t},\n};\n\n/**\n * @stateless (being consumed by stateless components)\n * @param param0\n * @returns\n */\nconst AllowedListDropdown: React.FC<{\n\tallowedList: QueryBuilderType[];\n\tselectedType?: QueryBuilderType;\n\tonSelect: (option: DropdownOption | DropdownOption[]) => void;\n\tloading?: boolean;\n\tdisabled?: boolean;\n}> = ({ allowedList, onSelect, selectedType, loading, disabled }) => {\n\tconst options = allowedList\n\t\t.map((type) => QUERY_TYPE_TO_OPTION_MAP[type] ?? null)\n\t\t.filter((op) => op)\n\t\t.map((op) => {\n\t\t\tif (selectedType) {\n\t\t\t\tif (op?.value === QUERY_TYPE_TO_OPTION_MAP[selectedType]?.value) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...op,\n\t\t\t\t\t\tselected: true,\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn op;\n\t\t\t}\n\t\t});\n\n\treturn (\n\t\t<DropdownWrapper\n\t\t\tnativeID={'query-builder-initial-node'}\n\t\t\tdisabled={disabled}\n\t\t\twidth={'200px'}\n\t\t\tisLoading={loading ?? false}\n\t\t\toptions={options as SingleOption[]}\n\t\t\tonSelect={onSelect}\n\t\t/>\n\t);\n};\n\nexport default AllowedListDropdown;\n"],"names":["QUERY_TYPE_TO_OPTION_MAP","QueryBuilderType","EVENT_FILTER","label","value","NO_EVENT_FILTER","USER_PROPERTY_FILTER","SEGMENT_FILTER","ORDER_PROPERTY_FILTER","HAS_CUSTOM_FIELD","AllowedListDropdown","allowedList","onSelect","selectedType","loading","disabled","options","map","type","_a","filter","op","Object","assign","selected","_jsx","DropdownWrapper","nativeID","width","isLoading"],"mappings":"6IAKO,MAAMA,EAET,CACH,CAACC,EAAiBC,cAAe,CAChCC,MAAO,kBACPC,MAAOH,EAAiBC,cAEzB,CAACD,EAAiBI,iBAAkB,CACnCF,MAAO,uBACPC,MAAOH,EAAiBI,iBAEzB,CAACJ,EAAiBK,sBAAuB,CACxCH,MAAO,qBACPC,MAAOH,EAAiBK,sBAEzB,CAACL,EAAiBM,gBAAiB,CAClCJ,MAAO,kBACPC,MAAOH,EAAiBM,gBAEzB,CAACN,EAAiBO,uBAAwB,CACzCL,MAAO,sBACPC,MAAOH,EAAiBO,uBAEzB,CAACP,EAAiBQ,kBAAmB,CACpCN,MAAO,mBACPC,MAAOH,EAAiBQ,mBASpBC,EAMDA,EAAGC,cAAaC,WAAUC,eAAcC,UAASC,eACrD,MAAMC,EAAUL,EACdM,KAAKC,UAAS,OAA8B,QAA9BC,EAAAnB,EAAyBkB,UAAK,IAAAC,EAAAA,EAAI,IAAI,IACpDC,QAAQC,GAAOA,IACfJ,KAAKI,UACL,GAAIR,EACH,OAAIQ,aAAE,EAAFA,EAAIjB,UAAkD,QAAxCe,EAAAnB,EAAyBa,UAAe,IAAAM,OAAA,EAAAA,EAAAf,OACzDkB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACIF,GAAE,CACLG,UAAU,IAILH,CACP,IAGH,OACCI,EAACC,EAAe,CACfC,SAAU,6BACVZ,SAAUA,EACVa,MAAO,QACPC,UAAWf,SAAAA,EACXE,QAASA,EACTJ,SAAUA,GACT"}
@@ -1,2 +1,2 @@
1
- import I from"@emotion/styled/base";import{__awaiter as g}from"../../../../../_virtual/_tslib.js";import{jsx as C,jsxs as A}from"react/jsx-runtime";import c from"../../../../../assets/icons/emoji.svg.js";import b,{useState as l,useRef as i,Suspense as a}from"react";import{IconButton as B}from"../../../../icon-button/IconButton.js";import n from"../../../../input/ChipInput.js";import{useOutside as p}from"../../../../../hooks/useOutside.js";function d(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const o=b.lazy((()=>g(void 0,void 0,void 0,(function*(){return{default:(yield import("emoji-picker-react")).default}})))),G=I=>{let{val:g,onChange:b,errors:d,nativeID:G,disabled:X}=I;const[y,u]=l(!1),Z=(Array.isArray(g)?g:[]).map((I=>I)),H=i();return p(H,(()=>{u(!1)})),A("div",Object.assign({style:{position:"relative",opacity:X?.5:1,width:300},id:G},{children:[!!X&&C("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,zIndex:1}}),A(t,{children:[C(n,{error:null==d?void 0:d.val,onChipsChange:b,chipsContainerCustomStyle:{padding:"0px 32px 0px 8px"},createChipKeys:[13,188],placeholder:"add emojis",chips:Z}),C(e,{children:C(B,{Icon:c,onClick:()=>u(!0)})}),y&&C("div",Object.assign({ref:H,className:"absolute-picker"},{children:C(a,Object.assign({fallback:null},{children:C(o,{previewConfig:{showPreview:!1},skinTonesDisabled:!0,searchDisabled:!0,theme:"dark",emojiStyle:"native",onEmojiClick:I=>{Z.find((g=>I.emoji===g))||null==b||b([...Z,I.emoji])}})}))}))]})]}))};function X(I){return C(G,Object.assign({},I))}const e=I("div","production"===process.env.NODE_ENV?{target:"ej9r8ia1"}:{target:"ej9r8ia1",label:"EmojiContainer"})("production"===process.env.NODE_ENV?{name:"14nrdl8",styles:"position:absolute;right:0;top:0"}:{name:"14nrdl8",styles:"position:absolute;right:0;top:0",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkVtb2ppUGlja2VyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyQ2tDIiwiZmlsZSI6IkVtb2ppUGlja2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fYXdhaXRlciB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJyZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCBFbW9qaUljb24gZnJvbSAnQHNyYy9hc3NldHMvaWNvbnMvZW1vamkuc3ZnJztcclxuaW1wb3J0IFJlYWN0LCB7IFN1c3BlbnNlLCB1c2VSZWYsIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnO1x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0eTogZGlzYWJsZWQgPyAwLjUgOiAxLCB3aWR0aDogMzAwIH0sIGlkOiBuYXRpdmVJRCB9LCB7IGNoaWxkcmVuOiBbISFkaXNhYmxlZCAmJiAoX2pzeChcImRpdlwiLCB7IHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXHJcbiAgICAgICAgICAgICAgICAgICAgd2lkdGg6ICcxMDAlJyxcclxuICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6ICcxMDAlJyxcclxuICAgICAgICAgICAgICAgICAgICB0b3A6IDAsXHJcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogMCxcclxuICAgICAgICAgICAgICAgICAgICB6SW5kZXg6IDEsXHJcbiAgICAgICAgICAgICAgICB9IH0pKSwgX2pzeHMoRW1vamlJbnB1dCwgeyBjaGlsZHJlbjogW19qc3goQ2hpcElucHV0LCB7IGVycm9yOiBlcnJvcnMgPT09IG51bGwgfHwgZXJyb3JzID09PSB2b2lkIDAgPyB2b2lkIDAgOiBlcnJvcnMudmFsLCBvbkNoaXBzQ2hhbmdlOiBvbkNoYW5nZSwgY2hpcHNDb250YWluZXJDdXN0b21TdHlsZToge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogJzBweCAzMnB4IDBweCA4cHgnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCBjcmVhdGVDaGlwS2V5czogWzEzLCAxODhdLCBwbGFjZWhvbGRlcjogJ2FkZCBlbW9qaXMnLCBjaGlwczogdmFsQXJyIH0pLCBfanN4KEVtb2ppQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBfanN4KEljb25CdXR0b24sIHsgSWNvbjogRW1vamlJY29uLCBvbkNsaWNrOiAoKSA9PiBzZXRTaG93UGlja2VyKHRydWUpIH0pIH0pLCBzaG93UGlja2VyICYmIChfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyByZWY6IHJlZiwgY2xhc3NOYW1lOiBcImFic29sdXRlLXBpY2tlclwiIH0sIHsgY2hpbGRyZW46IF9qc3goU3VzcGVuc2UsIE9iamVjdC5hc3NpZ24oeyBmYWxsYmFjazogbnVsbCB9LCB7IGNoaWxkcmVuOiBfanN4KExhenlFbW9qaVBpY2tlciwgeyBwcmV2aWV3Q29uZmlnOiB7IHNob3dQcmV2aWV3OiBmYWxzZSB9LCBza2luVG9uZXNEaXNhYmxlZDogdHJ1ZSwgc2VhcmNoRGlzYWJsZWQ6IHRydWUsIHRoZW1lOiAnZGFyaycsIGVtb2ppU3R5bGU6ICduYXRpdmUnLCBvbkVtb2ppQ2xpY2s6IChlbW9qaSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBleGlzdHMgPSB2YWxBcnIuZmluZCgoZW0pID0+IGVtb2ppLmVtb2ppID09PSBlbSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChleGlzdHMpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlID09PSBudWxsIHx8IG9uQ2hhbmdlID09PSB2b2lkIDAgPyB2b2lkIDAgOiBvbkNoYW5nZShbXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuLi52YWxBcnIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbW9qaS5lbW9qaSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSB9KSB9KSkgfSkpKV0gfSldIH0pKSk7XHJcbn07XHJcbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIEVtb2ppUGlja2VyQ29ubmVjdG9yKHByb3BzKSB7XHJcbiAgICByZXR1cm4gX2pzeChFbW9qaVBpY2tlciwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcHMpKTtcclxufVxyXG5jb25zdCBFbW9qaUNvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdHJpZ2h0OiAwO1xuXHR0b3A6IDA7XG5gO1xyXG5jb25zdCBFbW9qaUlucHV0ID0gc3R5bGVkLmRpdiBgXG5cdGlucHV0IHtcblx0XHRwb2ludGVyLWV2ZW50czogbm9uZTtcblx0fVxuXHQuYWJzb2x1dGUtcGlja2VyIHtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0dG9wOiA1MHB4O1xuXHRcdHotaW5kZXg6IDE7XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVtb2ppUGlja2VyLmpzLm1hcCJdfQ== */",toString:d}),t=I("div","production"===process.env.NODE_ENV?{target:"ej9r8ia0"}:{target:"ej9r8ia0",label:"EmojiInput"})("production"===process.env.NODE_ENV?{name:"18i7njg",styles:"input{pointer-events:none;}.absolute-picker{position:absolute;top:50px;z-index:1;}"}:{name:"18i7njg",styles:"input{pointer-events:none;}.absolute-picker{position:absolute;top:50px;z-index:1;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkVtb2ppUGlja2VyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnRDhCIiwiZmlsZSI6IkVtb2ppUGlja2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fYXdhaXRlciB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJyZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCBFb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WNrZXIoZmFsc2UpO1xyXG4gICAgfSk7XHJcbiAgICByZXR1cm4gKF9qc3hzKFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBzdHlsZTogeyBwb3NpdGlvbjogJ3JlbGF0aXZlJywgb3BhY2l0eTogZGlzYWJsZWQgPyAwLjUgOiAxLCB3aWR0aDogMzAwIH0sIGlkOiBuYXRpdmVJRCB9LCB7IGNoaWxkcmVuOiBbISFkaXNhYmxlZCAmJiAoX2pzeChcImRpdlwiLCB7IHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXHJcbiAgICAgICAgICAgICAgICAgICAgd2lkdGg6ICcxMDAlJyxcclxuICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6ICcxMDAlJyxcclxuICAgICAgICAgICAgICAgICAgICB0b3A6IDAsXHJcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogMCxcclxuICAgICAgICAgICAgICAgICAgICB6SW5kZXg6IDEsXHJcbiAgICAgICAgICAgICAgICB9IH0pKSwgX2pzeHMoRW1vamlJbnB1dCwgeyBjaGlsZHJlbjogW19qc3goQ2hpcElucHV0LCB7IGVycm9yOiBlcnJvcnMgPT09IG51bGwgfHwgZXJyb3JzID09PSB2b2lkIDAgPyB2b2lkIDAgOiBlcnJvcnMudmFsLCBvbkNoaXBzQ2hhbmdlOiBvbkNoYW5nZSwgY2hpcHNDb250YWluZXJDdXN0b21TdHlsZToge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogJzBweCAzMnB4IDBweCA4cHgnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCBjcmVhdGVDaGlwS2V5czogWzEzLCAxODhdLCBwbGFjZWhvbGRlcjogJ2FkZCBlbW9qaXMnLCBjaGlwczogdmFsQXJyIH0pLCBfanN4KEVtb2ppQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBfanN4KEljb25CdXR0b24sIHsgSWNvbjogRW1vamlJY29uLCBvbkNsaWNrOiAoKSA9PiBzZXRTaG93UGlja2VyKHRydWUpIH0pIH0pLCBzaG93UGlja2VyICYmIChfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyByZWY6IHJlZiwgY2xhc3NOYW1lOiBcImFic29sdXRlLXBpY2tlclwiIH0sIHsgY2hpbGRyZW46IF9qc3goU3VzcGVuc2UsIE9iamVjdC5hc3NpZ24oeyBmYWxsYmFjazogbnVsbCB9LCB7IGNoaWxkcmVuOiBfanN4KExhenlFbW9qaVBpY2tlciwgeyBwcmV2aWV3Q29uZmlnOiB7IHNob3dQcmV2aWV3OiBmYWxzZSB9LCBza2luVG9uZXNEaXNhYmxlZDogdHJ1ZSwgc2VhcmNoRGlzYWJsZWQ6IHRydWUsIHRoZW1lOiAnZGFyaycsIGVtb2ppU3R5bGU6ICduYXRpdmUnLCBvbkVtb2ppQ2xpY2s6IChlbW9qaSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBleGlzdHMgPSB2YWxBcnIuZmluZCgoZW0pID0+IGVtb2ppLmVtb2ppID09PSBlbSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChleGlzdHMpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlID09PSBudWxsIHx8IG9uQ2hhbmdlID09PSB2b2lkIDAgPyB2b2lkIDAgOiBvbkNoYW5nZShbXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuLi52YWxBcnIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbW9qaS5lbW9qaSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSB9KSB9KSkgfSkpKV0gfSldIH0pKSk7XHJcbn07XHJcbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIEVtb2ppUGlja2VyQ29ubmVjdG9yKHByb3BzKSB7XHJcbiAgICByZXR1cm4gX2pzeChFbW9qaVBpY2tlciwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcHMpKTtcclxufVxyXG5jb25zdCBFbW9qaUNvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdHJpZ2h0OiAwO1xuXHR0b3A6IDA7XG5gO1xyXG5jb25zdCBFbW9qaUlucHV0ID0gc3R5bGVkLmRpdiBgXG5cdGlucHV0IHtcblx0XHRwb2ludGVyLWV2ZW50czogbm9uZTtcblx0fVxuXHQuYWJzb2x1dGUtcGlja2VyIHtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0dG9wOiA1MHB4O1xuXHRcdHotaW5kZXg6IDE7XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVtb2ppUGlja2VyLmpzLm1hcCJdfQ== */",toString:d});export{X as default};
1
+ import I from"@emotion/styled/base";import{__awaiter as g}from"../../../../../_virtual/_tslib.js";import{jsx as C,jsxs as A}from"react/jsx-runtime";import c from"../../../../../assets/icons/emoji.svg.js";import b,{useState as l,useRef as i,Suspense as a}from"react";import{IconButton as B}from"../../../../icon-button/IconButton.js";import n from"../../../../input/ChipInput.js";import{useOutside as p}from"../../../../../hooks/useOutside.js";function d(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const o=b.lazy((()=>g(void 0,void 0,void 0,(function*(){return{default:(yield import("emoji-picker-react")).default}})))),G=({val:I,onChange:g,errors:b,nativeID:d,disabled:G})=>{const[X,y]=l(!1),u=(Array.isArray(I)?I:[]).map((I=>I)),Z=i();return p(Z,(()=>{y(!1)})),A("div",Object.assign({style:{position:"relative",opacity:G?.5:1,width:300},id:d},{children:[!!G&&C("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,zIndex:1}}),A(t,{children:[C(n,{error:null==b?void 0:b.val,onChipsChange:g,chipsContainerCustomStyle:{padding:"0px 32px 0px 8px"},createChipKeys:[13,188],placeholder:"add emojis",chips:u}),C(e,{children:C(B,{Icon:c,onClick:()=>y(!0)})}),X&&C("div",Object.assign({ref:Z,className:"absolute-picker"},{children:C(a,Object.assign({fallback:null},{children:C(o,{previewConfig:{showPreview:!1},skinTonesDisabled:!0,searchDisabled:!0,theme:"dark",emojiStyle:"native",onEmojiClick:I=>{u.find((g=>I.emoji===g))||null==g||g([...u,I.emoji])}})}))}))]})]}))};function X(I){return C(G,Object.assign({},I))}const e=I("div","production"===process.env.NODE_ENV?{target:"ej9r8ia1"}:{target:"ej9r8ia1",label:"EmojiContainer"})("production"===process.env.NODE_ENV?{name:"14nrdl8",styles:"position:absolute;right:0;top:0"}:{name:"14nrdl8",styles:"position:absolute;right:0;top:0",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkVtb2ppUGlja2VyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyQ2tDIiwiZmlsZSI6IkVtb2ppUGlja2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fYXdhaXRlciB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJyZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCBFbW9qaUljb24gZnJvbSAnQHNyYy9hc3NldHMvaWNvbnMvZW1vamkuc3ZnJztcclxuaW1wb3J0IFJlYWN0LCB7IFN1c3BlbnNlL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dHlsZTogeyBwb3NpdGlvbjogJ3JlbGF0aXZlJywgb3BhY2l0eTogZGlzYWJsZWQgPyAwLjUgOiAxLCB3aWR0aDogMzAwIH0sIGlkOiBuYXRpdmVJRCB9LCB7IGNoaWxkcmVuOiBbISFkaXNhYmxlZCAmJiAoX2pzeChcImRpdlwiLCB7IHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXHJcbiAgICAgICAgICAgICAgICAgICAgd2lkdGg6ICcxMDAlJyxcclxuICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6ICcxMDAlJyxcclxuICAgICAgICAgICAgICAgICAgICB0b3A6IDAsXHJcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogMCxcclxuICAgICAgICAgICAgICAgICAgICB6SW5kZXg6IDEsXHJcbiAgICAgICAgICAgICAgICB9IH0pKSwgX2pzeHMoRW1vamlJbnB1dCwgeyBjaGlsZHJlbjogW19qc3goQ2hpcElucHV0LCB7IGVycm9yOiBlcnJvcnMgPT09IG51bGwgfHwgZXJyb3JzID09PSB2b2lkIDAgPyB2b2lkIDAgOiBlcnJvcnMudmFsLCBvbkNoaXBzQ2hhbmdlOiBvbkNoYW5nZSwgY2hpcHNDb250YWluZXJDdXN0b21TdHlsZToge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogJzBweCAzMnB4IDBweCA4cHgnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCBjcmVhdGVDaGlwS2V5czogWzEzLCAxODhdLCBwbGFjZWhvbGRlcjogJ2FkZCBlbW9qaXMnLCBjaGlwczogdmFsQXJyIH0pLCBfanN4KEVtb2ppQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBfanN4KEljb25CdXR0b24sIHsgSWNvbjogRW1vamlJY29uLCBvbkNsaWNrOiAoKSA9PiBzZXRTaG93UGlja2VyKHRydWUpIH0pIH0pLCBzaG93UGlja2VyICYmIChfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyByZWY6IHJlZiwgY2xhc3NOYW1lOiBcImFic29sdXRlLXBpY2tlclwiIH0sIHsgY2hpbGRyZW46IF9qc3goU3VzcGVuc2UsIE9iamVjdC5hc3NpZ24oeyBmYWxsYmFjazogbnVsbCB9LCB7IGNoaWxkcmVuOiBfanN4KExhenlFbW9qaVBpY2tlciwgeyBwcmV2aWV3Q29uZmlnOiB7IHNob3dQcmV2aWV3OiBmYWxzZSB9LCBza2luVG9uZXNEaXNhYmxlZDogdHJ1ZSwgc2VhcmNoRGlzYWJsZWQ6IHRydWUsIHRoZW1lOiAnZGFyaycsIGVtb2ppU3R5bGU6ICduYXRpdmUnLCBvbkVtb2ppQ2xpY2s6IChlbW9qaSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBleGlzdHMgPSB2YWxBcnIuZmluZCgoZW0pID0+IGVtb2ppLmVtb2ppID09PSBlbSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChleGlzdHMpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlID09PSBudWxsIHx8IG9uQ2hhbmdlID09PSB2b2lkIDAgPyB2b2lkIDAgOiBvbkNoYW5nZShbXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuLi52YWxBcnIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbW9qaS5lbW9qaSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSB9KSB9KSkgfSkpKV0gfSldIH0pKSk7XHJcbn07XHJcbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIEVtb2ppUGlja2VyQ29ubmVjdG9yKHByb3BzKSB7XHJcbiAgICByZXR1cm4gX2pzeChFbW9qaVBpY2tlciwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcHMpKTtcclxufVxyXG5jb25zdCBFbW9qaUNvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdHJpZ2h0OiAwO1xuXHR0b3A6IDA7XG5gO1xyXG5jb25zdCBFbW9qaUlucHV0ID0gc3R5bGVkLmRpdiBgXG5cdGlucHV0IHtcblx0XHRwb2ludGVyLWV2ZW50czogbm9uZTtcblx0fVxuXHQuYWJzb2x1dGUtcGlja2VyIHtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0dG9wOiA1MHB4O1xuXHRcdHotaW5kZXg6IDE7XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVtb2ppUGlja2VyLmpzLm1hcCJdfQ== */",toString:d}),t=I("div","production"===process.env.NODE_ENV?{target:"ej9r8ia0"}:{target:"ej9r8ia0",label:"EmojiInput"})("production"===process.env.NODE_ENV?{name:"18i7njg",styles:"input{pointer-events:none;}.absolute-picker{position:absolute;top:50px;z-index:1;}"}:{name:"18i7njg",styles:"input{pointer-events:none;}.absolute-picker{position:absolute;top:50px;z-index:1;}",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkVtb2ppUGlja2VyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnRDhCIiwiZmlsZSI6IkVtb2ppUGlja2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fYXdhaXRlciB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJyZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgc3R5bGVkIG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aWRlKHJlZiwgKCkgPT4ge1xyXG4gICAgICAgIHNldFNob3dQaWNrZXIoZmFsc2UpO1xyXG4gICAgfSk7XHJcbiAgICByZXR1cm4gKF9qc3hzKFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBzdHlsZTogeyBwb3NpdGlvbjogJ3JlbGF0aXZlJywgb3BhY2l0eTogZGlzYWJsZWQgPyAwLjUgOiAxLCB3aWR0aDogMzAwIH0sIGlkOiBuYXRpdmVJRCB9LCB7IGNoaWxkcmVuOiBbISFkaXNhYmxlZCAmJiAoX2pzeChcImRpdlwiLCB7IHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXHJcbiAgICAgICAgICAgICAgICAgICAgd2lkdGg6ICcxMDAlJyxcclxuICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6ICcxMDAlJyxcclxuICAgICAgICAgICAgICAgICAgICB0b3A6IDAsXHJcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogMCxcclxuICAgICAgICAgICAgICAgICAgICB6SW5kZXg6IDEsXHJcbiAgICAgICAgICAgICAgICB9IH0pKSwgX2pzeHMoRW1vamlJbnB1dCwgeyBjaGlsZHJlbjogW19qc3goQ2hpcElucHV0LCB7IGVycm9yOiBlcnJvcnMgPT09IG51bGwgfHwgZXJyb3JzID09PSB2b2lkIDAgPyB2b2lkIDAgOiBlcnJvcnMudmFsLCBvbkNoaXBzQ2hhbmdlOiBvbkNoYW5nZSwgY2hpcHNDb250YWluZXJDdXN0b21TdHlsZToge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogJzBweCAzMnB4IDBweCA4cHgnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCBjcmVhdGVDaGlwS2V5czogWzEzLCAxODhdLCBwbGFjZWhvbGRlcjogJ2FkZCBlbW9qaXMnLCBjaGlwczogdmFsQXJyIH0pLCBfanN4KEVtb2ppQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBfanN4KEljb25CdXR0b24sIHsgSWNvbjogRW1vamlJY29uLCBvbkNsaWNrOiAoKSA9PiBzZXRTaG93UGlja2VyKHRydWUpIH0pIH0pLCBzaG93UGlja2VyICYmIChfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyByZWY6IHJlZiwgY2xhc3NOYW1lOiBcImFic29sdXRlLXBpY2tlclwiIH0sIHsgY2hpbGRyZW46IF9qc3goU3VzcGVuc2UsIE9iamVjdC5hc3NpZ24oeyBmYWxsYmFjazogbnVsbCB9LCB7IGNoaWxkcmVuOiBfanN4KExhenlFbW9qaVBpY2tlciwgeyBwcmV2aWV3Q29uZmlnOiB7IHNob3dQcmV2aWV3OiBmYWxzZSB9LCBza2luVG9uZXNEaXNhYmxlZDogdHJ1ZSwgc2VhcmNoRGlzYWJsZWQ6IHRydWUsIHRoZW1lOiAnZGFyaycsIGVtb2ppU3R5bGU6ICduYXRpdmUnLCBvbkVtb2ppQ2xpY2s6IChlbW9qaSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBleGlzdHMgPSB2YWxBcnIuZmluZCgoZW0pID0+IGVtb2ppLmVtb2ppID09PSBlbSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChleGlzdHMpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlID09PSBudWxsIHx8IG9uQ2hhbmdlID09PSB2b2lkIDAgPyB2b2lkIDAgOiBvbkNoYW5nZShbXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuLi52YWxBcnIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbW9qaS5lbW9qaSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSB9KSB9KSkgfSkpKV0gfSldIH0pKSk7XHJcbn07XHJcbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIEVtb2ppUGlja2VyQ29ubmVjdG9yKHByb3BzKSB7XHJcbiAgICByZXR1cm4gX2pzeChFbW9qaVBpY2tlciwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcHMpKTtcclxufVxyXG5jb25zdCBFbW9qaUNvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdHJpZ2h0OiAwO1xuXHR0b3A6IDA7XG5gO1xyXG5jb25zdCBFbW9qaUlucHV0ID0gc3R5bGVkLmRpdiBgXG5cdGlucHV0IHtcblx0XHRwb2ludGVyLWV2ZW50czogbm9uZTtcblx0fVxuXHQuYWJzb2x1dGUtcGlja2VyIHtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0dG9wOiA1MHB4O1xuXHRcdHotaW5kZXg6IDE7XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUVtb2ppUGlja2VyLmpzLm1hcCJdfQ== */",toString:d});export{X as default};
2
2
  //# sourceMappingURL=EmojiPicker.js.map