@bikdotai/bik-component-library 0.0.814 → 0.0.815

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 (733) 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/RCS_PDF.svg.js +1 -1
  18. package/dist/cjs/assets/icons/RCS_PDF.svg.js.map +1 -1
  19. package/dist/cjs/assets/icons/RedirectToNew.svg.js +1 -1
  20. package/dist/cjs/assets/icons/RedirectToNew.svg.js.map +1 -1
  21. package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +1 -1
  22. package/dist/cjs/assets/icons/WhiteStarFilled.svg.js.map +1 -1
  23. package/dist/cjs/assets/icons/actionButton.svg.js +1 -1
  24. package/dist/cjs/assets/icons/actionButton.svg.js.map +1 -1
  25. package/dist/cjs/assets/icons/aiContentIcon.svg.js +1 -1
  26. package/dist/cjs/assets/icons/aiContentIcon.svg.js.map +1 -1
  27. package/dist/cjs/assets/icons/alarm.svg.js +1 -1
  28. package/dist/cjs/assets/icons/alarm.svg.js.map +1 -1
  29. package/dist/cjs/assets/icons/alert.svg.js +1 -1
  30. package/dist/cjs/assets/icons/alert.svg.js.map +1 -1
  31. package/dist/cjs/assets/icons/alert_triangle.svg.js +1 -1
  32. package/dist/cjs/assets/icons/alert_triangle.svg.js.map +1 -1
  33. package/dist/cjs/assets/icons/arrow_back.svg.js +1 -1
  34. package/dist/cjs/assets/icons/arrow_back.svg.js.map +1 -1
  35. package/dist/cjs/assets/icons/arrow_down.svg.js +1 -1
  36. package/dist/cjs/assets/icons/arrow_down.svg.js.map +1 -1
  37. package/dist/cjs/assets/icons/arrow_left.svg.js +1 -1
  38. package/dist/cjs/assets/icons/arrow_left.svg.js.map +1 -1
  39. package/dist/cjs/assets/icons/arrow_up.svg.js +1 -1
  40. package/dist/cjs/assets/icons/arrow_up.svg.js.map +1 -1
  41. package/dist/cjs/assets/icons/back_icon.svg.js +1 -1
  42. package/dist/cjs/assets/icons/back_icon.svg.js.map +1 -1
  43. package/dist/cjs/assets/icons/bik_ai_stars_icon.svg.js +1 -1
  44. package/dist/cjs/assets/icons/bik_ai_stars_icon.svg.js.map +1 -1
  45. package/dist/cjs/assets/icons/bik_livechat.svg.js +1 -1
  46. package/dist/cjs/assets/icons/bik_livechat.svg.js.map +1 -1
  47. package/dist/cjs/assets/icons/bold.svg.js +1 -1
  48. package/dist/cjs/assets/icons/bold.svg.js.map +1 -1
  49. package/dist/cjs/assets/icons/box.svg.js +1 -1
  50. package/dist/cjs/assets/icons/box.svg.js.map +1 -1
  51. package/dist/cjs/assets/icons/boxV2.svg.js +1 -1
  52. package/dist/cjs/assets/icons/boxV2.svg.js.map +1 -1
  53. package/dist/cjs/assets/icons/box_round.svg.js +1 -1
  54. package/dist/cjs/assets/icons/box_round.svg.js.map +1 -1
  55. package/dist/cjs/assets/icons/box_search.svg.js +1 -1
  56. package/dist/cjs/assets/icons/box_search.svg.js.map +1 -1
  57. package/dist/cjs/assets/icons/brand_home.svg.js +1 -1
  58. package/dist/cjs/assets/icons/brand_home.svg.js.map +1 -1
  59. package/dist/cjs/assets/icons/broken_media_image.svg.js +1 -1
  60. package/dist/cjs/assets/icons/broken_media_image.svg.js.map +1 -1
  61. package/dist/cjs/assets/icons/calendar.svg.js +1 -1
  62. package/dist/cjs/assets/icons/calendar.svg.js.map +1 -1
  63. package/dist/cjs/assets/icons/card_footer_arraw.svg.js +1 -1
  64. package/dist/cjs/assets/icons/card_footer_arraw.svg.js.map +1 -1
  65. package/dist/cjs/assets/icons/chat-channel.svg.js +1 -1
  66. package/dist/cjs/assets/icons/chat-channel.svg.js.map +1 -1
  67. package/dist/cjs/assets/icons/chat.svg.js +1 -1
  68. package/dist/cjs/assets/icons/chat.svg.js.map +1 -1
  69. package/dist/cjs/assets/icons/check.svg.js +1 -1
  70. package/dist/cjs/assets/icons/check.svg.js.map +1 -1
  71. package/dist/cjs/assets/icons/checkCircle.svg.js +1 -1
  72. package/dist/cjs/assets/icons/checkCircle.svg.js.map +1 -1
  73. package/dist/cjs/assets/icons/checklistIcon.svg.js +1 -1
  74. package/dist/cjs/assets/icons/checklistIcon.svg.js.map +1 -1
  75. package/dist/cjs/assets/icons/chevronDown.svg.js +1 -1
  76. package/dist/cjs/assets/icons/chevronDown.svg.js.map +1 -1
  77. package/dist/cjs/assets/icons/chevronDownOutline.svg.js +1 -1
  78. package/dist/cjs/assets/icons/chevronDownOutline.svg.js.map +1 -1
  79. package/dist/cjs/assets/icons/chevronLeft.svg.js +1 -1
  80. package/dist/cjs/assets/icons/chevronLeft.svg.js.map +1 -1
  81. package/dist/cjs/assets/icons/chevronLeft2.svg.js +1 -1
  82. package/dist/cjs/assets/icons/chevronLeft2.svg.js.map +1 -1
  83. package/dist/cjs/assets/icons/chevronRight.svg.js +1 -1
  84. package/dist/cjs/assets/icons/chevronRight.svg.js.map +1 -1
  85. package/dist/cjs/assets/icons/chevronRight2.svg.js +1 -1
  86. package/dist/cjs/assets/icons/chevronRight2.svg.js.map +1 -1
  87. package/dist/cjs/assets/icons/chevronRightAlt.svg.js +1 -1
  88. package/dist/cjs/assets/icons/chevronRightAlt.svg.js.map +1 -1
  89. package/dist/cjs/assets/icons/chevronUpOutline.svg.js +1 -1
  90. package/dist/cjs/assets/icons/chevronUpOutline.svg.js.map +1 -1
  91. package/dist/cjs/assets/icons/circular-cross-icon.svg.js +1 -1
  92. package/dist/cjs/assets/icons/circular-cross-icon.svg.js.map +1 -1
  93. package/dist/cjs/assets/icons/click.svg.js +1 -1
  94. package/dist/cjs/assets/icons/click.svg.js.map +1 -1
  95. package/dist/cjs/assets/icons/clock.svg.js +1 -1
  96. package/dist/cjs/assets/icons/clock.svg.js.map +1 -1
  97. package/dist/cjs/assets/icons/copy-code-icon.svg.js +1 -1
  98. package/dist/cjs/assets/icons/copy-code-icon.svg.js.map +1 -1
  99. package/dist/cjs/assets/icons/cross.svg.js +1 -1
  100. package/dist/cjs/assets/icons/cross.svg.js.map +1 -1
  101. package/dist/cjs/assets/icons/cubeIcon.svg.js +1 -1
  102. package/dist/cjs/assets/icons/cubeIcon.svg.js.map +1 -1
  103. package/dist/cjs/assets/icons/cursor.svg.js +1 -1
  104. package/dist/cjs/assets/icons/cursor.svg.js.map +1 -1
  105. package/dist/cjs/assets/icons/delete.svg.js +1 -1
  106. package/dist/cjs/assets/icons/delete.svg.js.map +1 -1
  107. package/dist/cjs/assets/icons/desktop_custom.svg.js +1 -1
  108. package/dist/cjs/assets/icons/desktop_custom.svg.js.map +1 -1
  109. package/dist/cjs/assets/icons/document_pdf.svg.js +1 -1
  110. package/dist/cjs/assets/icons/document_pdf.svg.js.map +1 -1
  111. package/dist/cjs/assets/icons/drag_handle.svg.js +1 -1
  112. package/dist/cjs/assets/icons/drag_handle.svg.js.map +1 -1
  113. package/dist/cjs/assets/icons/edit.svg.js +1 -1
  114. package/dist/cjs/assets/icons/edit.svg.js.map +1 -1
  115. package/dist/cjs/assets/icons/email-channel.svg.js +1 -1
  116. package/dist/cjs/assets/icons/email-channel.svg.js.map +1 -1
  117. package/dist/cjs/assets/icons/emoji.svg.js +1 -1
  118. package/dist/cjs/assets/icons/emoji.svg.js.map +1 -1
  119. package/dist/cjs/assets/icons/errorIcon.svg.js +1 -1
  120. package/dist/cjs/assets/icons/errorIcon.svg.js.map +1 -1
  121. package/dist/cjs/assets/icons/errorInfo.svg.js +1 -1
  122. package/dist/cjs/assets/icons/errorInfo.svg.js.map +1 -1
  123. package/dist/cjs/assets/icons/expressionless_emoji.svg.js +1 -1
  124. package/dist/cjs/assets/icons/expressionless_emoji.svg.js.map +1 -1
  125. package/dist/cjs/assets/icons/facebook_channel.svg.js +1 -1
  126. package/dist/cjs/assets/icons/facebook_channel.svg.js.map +1 -1
  127. package/dist/cjs/assets/icons/file.svg.js +1 -1
  128. package/dist/cjs/assets/icons/file.svg.js.map +1 -1
  129. package/dist/cjs/assets/icons/filePdf.svg.js +1 -1
  130. package/dist/cjs/assets/icons/filePdf.svg.js.map +1 -1
  131. package/dist/cjs/assets/icons/gift_icon.svg.js +1 -1
  132. package/dist/cjs/assets/icons/gift_icon.svg.js.map +1 -1
  133. package/dist/cjs/assets/icons/gmail.svg.js +1 -1
  134. package/dist/cjs/assets/icons/gmail.svg.js.map +1 -1
  135. package/dist/cjs/assets/icons/graph.svg.js +1 -1
  136. package/dist/cjs/assets/icons/graph.svg.js.map +1 -1
  137. package/dist/cjs/assets/icons/grid.svg.js +1 -1
  138. package/dist/cjs/assets/icons/grid.svg.js.map +1 -1
  139. package/dist/cjs/assets/icons/halfRectangle.svg.js +1 -1
  140. package/dist/cjs/assets/icons/halfRectangle.svg.js.map +1 -1
  141. package/dist/cjs/assets/icons/help.svg.js +1 -1
  142. package/dist/cjs/assets/icons/help.svg.js.map +1 -1
  143. package/dist/cjs/assets/icons/home.svg.js +1 -1
  144. package/dist/cjs/assets/icons/home.svg.js.map +1 -1
  145. package/dist/cjs/assets/icons/horizontal_dots.svg.js +1 -1
  146. package/dist/cjs/assets/icons/horizontal_dots.svg.js.map +1 -1
  147. package/dist/cjs/assets/icons/hover_home.svg.js +1 -1
  148. package/dist/cjs/assets/icons/hover_home.svg.js.map +1 -1
  149. package/dist/cjs/assets/icons/image.svg.js +1 -1
  150. package/dist/cjs/assets/icons/image.svg.js.map +1 -1
  151. package/dist/cjs/assets/icons/info.svg.js +1 -1
  152. package/dist/cjs/assets/icons/info.svg.js.map +1 -1
  153. package/dist/cjs/assets/icons/instagram-channel.svg.js +1 -1
  154. package/dist/cjs/assets/icons/instagram-channel.svg.js.map +1 -1
  155. package/dist/cjs/assets/icons/instagram.svg.js +1 -1
  156. package/dist/cjs/assets/icons/instagram.svg.js.map +1 -1
  157. package/dist/cjs/assets/icons/italic.svg.js +1 -1
  158. package/dist/cjs/assets/icons/italic.svg.js.map +1 -1
  159. package/dist/cjs/assets/icons/list.svg.js +1 -1
  160. package/dist/cjs/assets/icons/list.svg.js.map +1 -1
  161. package/dist/cjs/assets/icons/locked.svg.js +1 -1
  162. package/dist/cjs/assets/icons/locked.svg.js.map +1 -1
  163. package/dist/cjs/assets/icons/log_out.svg.js +1 -1
  164. package/dist/cjs/assets/icons/log_out.svg.js.map +1 -1
  165. package/dist/cjs/assets/icons/lto_icon.svg.js +1 -1
  166. package/dist/cjs/assets/icons/lto_icon.svg.js.map +1 -1
  167. package/dist/cjs/assets/icons/magic-line.svg.js +1 -1
  168. package/dist/cjs/assets/icons/magic-line.svg.js.map +1 -1
  169. package/dist/cjs/assets/icons/maximize.svg.js +1 -1
  170. package/dist/cjs/assets/icons/maximize.svg.js.map +1 -1
  171. package/dist/cjs/assets/icons/mobile_custom.svg.js +1 -1
  172. package/dist/cjs/assets/icons/mobile_custom.svg.js.map +1 -1
  173. package/dist/cjs/assets/icons/more_vertical.svg.js +1 -1
  174. package/dist/cjs/assets/icons/more_vertical.svg.js.map +1 -1
  175. package/dist/cjs/assets/icons/openai.svg.js +1 -1
  176. package/dist/cjs/assets/icons/openai.svg.js.map +1 -1
  177. package/dist/cjs/assets/icons/paperclip.svg.js +1 -1
  178. package/dist/cjs/assets/icons/paperclip.svg.js.map +1 -1
  179. package/dist/cjs/assets/icons/percentage_icon.svg.js +1 -1
  180. package/dist/cjs/assets/icons/percentage_icon.svg.js.map +1 -1
  181. package/dist/cjs/assets/icons/phone.svg.js +1 -1
  182. package/dist/cjs/assets/icons/phone.svg.js.map +1 -1
  183. package/dist/cjs/assets/icons/phone_round.svg.js +1 -1
  184. package/dist/cjs/assets/icons/phone_round.svg.js.map +1 -1
  185. package/dist/cjs/assets/icons/play.svg.js +1 -1
  186. package/dist/cjs/assets/icons/play.svg.js.map +1 -1
  187. package/dist/cjs/assets/icons/plus.svg.js +1 -1
  188. package/dist/cjs/assets/icons/plus.svg.js.map +1 -1
  189. package/dist/cjs/assets/icons/pointer.svg.js +1 -1
  190. package/dist/cjs/assets/icons/pointer.svg.js.map +1 -1
  191. package/dist/cjs/assets/icons/profile.svg.js +1 -1
  192. package/dist/cjs/assets/icons/profile.svg.js.map +1 -1
  193. package/dist/cjs/assets/icons/qrb.svg.js +1 -1
  194. package/dist/cjs/assets/icons/qrb.svg.js.map +1 -1
  195. package/dist/cjs/assets/icons/question-mark.svg.js +1 -1
  196. package/dist/cjs/assets/icons/question-mark.svg.js.map +1 -1
  197. package/dist/cjs/assets/icons/quotes.svg.js +1 -1
  198. package/dist/cjs/assets/icons/quotes.svg.js.map +1 -1
  199. package/dist/cjs/assets/icons/redirect.svg.js +1 -1
  200. package/dist/cjs/assets/icons/redirect.svg.js.map +1 -1
  201. package/dist/cjs/assets/icons/refresh-purple.svg.js +1 -1
  202. package/dist/cjs/assets/icons/refresh-purple.svg.js.map +1 -1
  203. package/dist/cjs/assets/icons/refresh.svg.js +1 -1
  204. package/dist/cjs/assets/icons/refresh.svg.js.map +1 -1
  205. package/dist/cjs/assets/icons/retry.svg.js +1 -1
  206. package/dist/cjs/assets/icons/retry.svg.js.map +1 -1
  207. package/dist/cjs/assets/icons/retryIcon.svg.js +1 -1
  208. package/dist/cjs/assets/icons/retryIcon.svg.js.map +1 -1
  209. package/dist/cjs/assets/icons/rewind.svg.js +1 -1
  210. package/dist/cjs/assets/icons/rewind.svg.js.map +1 -1
  211. package/dist/cjs/assets/icons/sad_emoji.svg.js +1 -1
  212. package/dist/cjs/assets/icons/sad_emoji.svg.js.map +1 -1
  213. package/dist/cjs/assets/icons/search.svg.js +1 -1
  214. package/dist/cjs/assets/icons/search.svg.js.map +1 -1
  215. package/dist/cjs/assets/icons/searchIcon.svg.js +1 -1
  216. package/dist/cjs/assets/icons/searchIcon.svg.js.map +1 -1
  217. package/dist/cjs/assets/icons/send.svg.js +1 -1
  218. package/dist/cjs/assets/icons/send.svg.js.map +1 -1
  219. package/dist/cjs/assets/icons/send_template.svg.js +1 -1
  220. package/dist/cjs/assets/icons/send_template.svg.js.map +1 -1
  221. package/dist/cjs/assets/icons/shipping_icon.svg.js +1 -1
  222. package/dist/cjs/assets/icons/shipping_icon.svg.js.map +1 -1
  223. package/dist/cjs/assets/icons/similar.svg.js +1 -1
  224. package/dist/cjs/assets/icons/similar.svg.js.map +1 -1
  225. package/dist/cjs/assets/icons/smile_emoji.svg.js +1 -1
  226. package/dist/cjs/assets/icons/smile_emoji.svg.js.map +1 -1
  227. package/dist/cjs/assets/icons/smiley_emoji.svg.js +1 -1
  228. package/dist/cjs/assets/icons/smiley_emoji.svg.js.map +1 -1
  229. package/dist/cjs/assets/icons/sparkle.svg.js +1 -1
  230. package/dist/cjs/assets/icons/sparkle.svg.js.map +1 -1
  231. package/dist/cjs/assets/icons/speedometer.svg.js +1 -1
  232. package/dist/cjs/assets/icons/speedometer.svg.js.map +1 -1
  233. package/dist/cjs/assets/icons/starEmpty.svg.js +1 -1
  234. package/dist/cjs/assets/icons/starEmpty.svg.js.map +1 -1
  235. package/dist/cjs/assets/icons/starFilled.svg.js +1 -1
  236. package/dist/cjs/assets/icons/starFilled.svg.js.map +1 -1
  237. package/dist/cjs/assets/icons/starFilledV2.svg.js +1 -1
  238. package/dist/cjs/assets/icons/starFilledV2.svg.js.map +1 -1
  239. package/dist/cjs/assets/icons/state_icon.svg.js +1 -1
  240. package/dist/cjs/assets/icons/state_icon.svg.js.map +1 -1
  241. package/dist/cjs/assets/icons/strikeThrough.svg.js +1 -1
  242. package/dist/cjs/assets/icons/strikeThrough.svg.js.map +1 -1
  243. package/dist/cjs/assets/icons/sub_category.svg.js +1 -1
  244. package/dist/cjs/assets/icons/sub_category.svg.js.map +1 -1
  245. package/dist/cjs/assets/icons/successIcon.svg.js +1 -1
  246. package/dist/cjs/assets/icons/successIcon.svg.js.map +1 -1
  247. package/dist/cjs/assets/icons/sync.svg.js +1 -1
  248. package/dist/cjs/assets/icons/sync.svg.js.map +1 -1
  249. package/dist/cjs/assets/icons/task.svg.js +1 -1
  250. package/dist/cjs/assets/icons/task.svg.js.map +1 -1
  251. package/dist/cjs/assets/icons/text_t9.svg.js +1 -1
  252. package/dist/cjs/assets/icons/text_t9.svg.js.map +1 -1
  253. package/dist/cjs/assets/icons/thumb-down-line.svg.js +1 -1
  254. package/dist/cjs/assets/icons/thumb-down-line.svg.js.map +1 -1
  255. package/dist/cjs/assets/icons/thumb-up-line.svg.js +1 -1
  256. package/dist/cjs/assets/icons/thumb-up-line.svg.js.map +1 -1
  257. package/dist/cjs/assets/icons/tick.svg.js +1 -1
  258. package/dist/cjs/assets/icons/tick.svg.js.map +1 -1
  259. package/dist/cjs/assets/icons/tick_double.svg.js +1 -1
  260. package/dist/cjs/assets/icons/tick_double.svg.js.map +1 -1
  261. package/dist/cjs/assets/icons/triangle_error.svg.js +1 -1
  262. package/dist/cjs/assets/icons/triangle_error.svg.js.map +1 -1
  263. package/dist/cjs/assets/icons/undo.svg.js +1 -1
  264. package/dist/cjs/assets/icons/undo.svg.js.map +1 -1
  265. package/dist/cjs/assets/icons/union.svg.js +1 -1
  266. package/dist/cjs/assets/icons/union.svg.js.map +1 -1
  267. package/dist/cjs/assets/icons/upload.svg.js +1 -1
  268. package/dist/cjs/assets/icons/upload.svg.js.map +1 -1
  269. package/dist/cjs/assets/icons/user_icon.svg.js +1 -1
  270. package/dist/cjs/assets/icons/user_icon.svg.js.map +1 -1
  271. package/dist/cjs/assets/icons/vertical_dots.svg.js +1 -1
  272. package/dist/cjs/assets/icons/vertical_dots.svg.js.map +1 -1
  273. package/dist/cjs/assets/icons/videoRecorder.svg.js +1 -1
  274. package/dist/cjs/assets/icons/videoRecorder.svg.js.map +1 -1
  275. package/dist/cjs/assets/icons/video_camcorder.svg.js +1 -1
  276. package/dist/cjs/assets/icons/video_camcorder.svg.js.map +1 -1
  277. package/dist/cjs/assets/icons/warning.svg.js +1 -1
  278. package/dist/cjs/assets/icons/warning.svg.js.map +1 -1
  279. package/dist/cjs/assets/icons/warningIcon.svg.js +1 -1
  280. package/dist/cjs/assets/icons/warningIcon.svg.js.map +1 -1
  281. package/dist/cjs/assets/icons/website.svg.js +1 -1
  282. package/dist/cjs/assets/icons/website.svg.js.map +1 -1
  283. package/dist/cjs/assets/icons/whatsNew.svg.js +1 -1
  284. package/dist/cjs/assets/icons/whatsNew.svg.js.map +1 -1
  285. package/dist/cjs/assets/icons/whatsapp-channel.svg.js +1 -1
  286. package/dist/cjs/assets/icons/whatsapp-channel.svg.js.map +1 -1
  287. package/dist/cjs/assets/icons/whatsapp_color.svg.js +1 -1
  288. package/dist/cjs/assets/icons/whatsapp_color.svg.js.map +1 -1
  289. package/dist/cjs/components/BikGiftedChat/Bubble/Bubble.js +1 -1
  290. package/dist/cjs/components/BikGiftedChat/Bubble/Bubble.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 +1 -1
  294. package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
  295. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.style.js +30 -30
  296. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.style.js.map +1 -1
  297. package/dist/cjs/components/ProgressChecklist/ProgressStepper.js +1 -1
  298. package/dist/cjs/components/ProgressChecklist/ProgressStepper.js.map +1 -1
  299. package/dist/cjs/components/QueryBuilder/QueryBuilder.js +1 -1
  300. package/dist/cjs/components/QueryBuilder/QueryBuilder.js.map +1 -1
  301. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +3 -3
  302. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js.map +1 -1
  303. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  304. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js.map +1 -1
  305. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.js +3 -3
  306. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.js.map +1 -1
  307. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +2 -2
  308. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js.map +1 -1
  309. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +2 -2
  310. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js.map +1 -1
  311. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.styled.js +2 -2
  312. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.styled.js.map +1 -1
  313. package/dist/cjs/components/QueryBuilder/components/InputLoader.js +4 -4
  314. package/dist/cjs/components/QueryBuilder/components/InputLoader.js.map +1 -1
  315. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js +4 -4
  316. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js.map +1 -1
  317. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.styled.js +2 -2
  318. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.styled.js.map +1 -1
  319. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.styled.js +6 -6
  320. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.styled.js.map +1 -1
  321. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  322. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js.map +1 -1
  323. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.styled.js +4 -4
  324. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.styled.js.map +1 -1
  325. package/dist/cjs/components/TablePagination/TablePagination.styled.js +8 -8
  326. package/dist/cjs/components/TablePagination/TablePagination.styled.js.map +1 -1
  327. package/dist/cjs/components/TablePagination/TablePaginationCard.js +4 -4
  328. package/dist/cjs/components/TablePagination/TablePaginationCard.js.map +1 -1
  329. package/dist/cjs/components/TypographyStyle.js +29 -29
  330. package/dist/cjs/components/TypographyStyle.js.map +1 -1
  331. package/dist/cjs/components/WhatsAppTextEditor/AIRephrase.styled.js +6 -6
  332. package/dist/cjs/components/WhatsAppTextEditor/AIRephrase.styled.js.map +1 -1
  333. package/dist/cjs/components/WhatsAppTextEditor/AIRephraseButton.js +8 -8
  334. package/dist/cjs/components/WhatsAppTextEditor/AIRephraseButton.js.map +1 -1
  335. package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.js +11 -11
  336. package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.js.map +1 -1
  337. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +27 -27
  338. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js.map +1 -1
  339. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +15 -15
  340. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js.map +1 -1
  341. package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.styles.js +16 -16
  342. package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.styles.js.map +1 -1
  343. package/dist/cjs/components/accordion/Accordion.style.js +4 -4
  344. package/dist/cjs/components/accordion/Accordion.style.js.map +1 -1
  345. package/dist/cjs/components/accordion/AccordionArrow.js +1 -1
  346. package/dist/cjs/components/accordion/AccordionArrow.js.map +1 -1
  347. package/dist/cjs/components/action-button/ActionButton.styled.js +5 -5
  348. package/dist/cjs/components/action-button/ActionButton.styled.js.map +1 -1
  349. package/dist/cjs/components/add-variableV2/AddVariableBox.styled.js +2 -2
  350. package/dist/cjs/components/add-variableV2/AddVariableBox.styled.js.map +1 -1
  351. package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js +3 -3
  352. package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js.map +1 -1
  353. package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.js +1 -1
  354. package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.js.map +1 -1
  355. package/dist/cjs/components/alerts/Alert.styled.js +4 -4
  356. package/dist/cjs/components/alerts/Alert.styled.js.map +1 -1
  357. package/dist/cjs/components/analytics-card/AnalyticsCard.styled.js +3 -3
  358. package/dist/cjs/components/analytics-card/AnalyticsCard.styled.js.map +1 -1
  359. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  360. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js.map +1 -1
  361. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +2 -2
  362. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js.map +1 -1
  363. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  364. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js.map +1 -1
  365. package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +22 -22
  366. package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js.map +1 -1
  367. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  368. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js.map +1 -1
  369. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.styles.js +4 -4
  370. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.styles.js.map +1 -1
  371. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LazyCharts.js +1 -1
  372. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LazyCharts.js.map +1 -1
  373. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +2 -2
  374. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js.map +1 -1
  375. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +4 -4
  376. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js.map +1 -1
  377. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +2 -2
  378. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js.map +1 -1
  379. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +4 -4
  380. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js.map +1 -1
  381. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  382. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js.map +1 -1
  383. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.js +3 -3
  384. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.js.map +1 -1
  385. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -1
  386. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js.map +1 -1
  387. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.styles.js +8 -8
  388. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.styles.js.map +1 -1
  389. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  390. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js.map +1 -1
  391. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.styles.js +3 -3
  392. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.styles.js.map +1 -1
  393. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +9 -9
  394. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js.map +1 -1
  395. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +3 -3
  396. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js.map +1 -1
  397. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +10 -10
  398. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js.map +1 -1
  399. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +10 -10
  400. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js.map +1 -1
  401. package/dist/cjs/components/avatar/Avatar.styled.js +6 -6
  402. package/dist/cjs/components/avatar/Avatar.styled.js.map +1 -1
  403. package/dist/cjs/components/banner/Banner.styled.js +22 -22
  404. package/dist/cjs/components/banner/Banner.styled.js.map +1 -1
  405. package/dist/cjs/components/bik-chatbot/components/ChatLoadingState.js +25 -25
  406. package/dist/cjs/components/bik-chatbot/components/ChatLoadingState.js.map +1 -1
  407. package/dist/cjs/components/bik-chatbot/components/ChatWindow.js +34 -34
  408. package/dist/cjs/components/bik-chatbot/components/ChatWindow.js.map +1 -1
  409. package/dist/cjs/components/bik-chatbot/components/ThinkingIndicator.js +2 -2
  410. package/dist/cjs/components/bik-chatbot/components/ThinkingIndicator.js.map +1 -1
  411. package/dist/cjs/components/bik-layout/CommonStyles.js +48 -48
  412. package/dist/cjs/components/bik-layout/CommonStyles.js.map +1 -1
  413. package/dist/cjs/components/bik-layout/FeatureModal.js +1 -1
  414. package/dist/cjs/components/bik-layout/FeatureModal.js.map +1 -1
  415. package/dist/cjs/components/bik-layout/FeatureModalV2.js +1 -1
  416. package/dist/cjs/components/bik-layout/FeatureModalV2.js.map +1 -1
  417. package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js +1 -1
  418. package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js.map +1 -1
  419. package/dist/cjs/components/bik-layout/SidebarStyles.js +21 -21
  420. package/dist/cjs/components/bik-layout/SidebarStyles.js.map +1 -1
  421. package/dist/cjs/components/button/Button.js +1 -1
  422. package/dist/cjs/components/button/Button.js.map +1 -1
  423. package/dist/cjs/components/button/Button.styled.js +2 -2
  424. package/dist/cjs/components/button/Button.styled.js.map +1 -1
  425. package/dist/cjs/components/buttonGroup/ButtonGroupStyle.js +4 -4
  426. package/dist/cjs/components/buttonGroup/ButtonGroupStyle.js.map +1 -1
  427. package/dist/cjs/components/card-selection-modal/CardSelectionModal.styled.js +3 -3
  428. package/dist/cjs/components/card-selection-modal/CardSelectionModal.styled.js.map +1 -1
  429. package/dist/cjs/components/card-selector/CardSelector.styled.js +6 -6
  430. package/dist/cjs/components/card-selector/CardSelector.styled.js.map +1 -1
  431. package/dist/cjs/components/carousel/carousel.js +2 -2
  432. package/dist/cjs/components/carousel/carousel.js.map +1 -1
  433. package/dist/cjs/components/carousel-preview/CarouselPreview.js +1 -1
  434. package/dist/cjs/components/carousel-preview/CarouselPreview.js.map +1 -1
  435. package/dist/cjs/components/carousel-preview/CarouselPreview.style.js +4 -4
  436. package/dist/cjs/components/carousel-preview/CarouselPreview.style.js.map +1 -1
  437. package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js +1 -1
  438. package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js.map +1 -1
  439. package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.js +12 -12
  440. package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.js.map +1 -1
  441. package/dist/cjs/components/checkBox/CheckBox.styled.js +13 -13
  442. package/dist/cjs/components/checkBox/CheckBox.styled.js.map +1 -1
  443. package/dist/cjs/components/checkList/CheckList.styled.js +2 -2
  444. package/dist/cjs/components/checkList/CheckList.styled.js.map +1 -1
  445. package/dist/cjs/components/code-block/CodeBlock.styled.js +33 -33
  446. package/dist/cjs/components/code-block/CodeBlock.styled.js.map +1 -1
  447. package/dist/cjs/components/colourInput/ColourInput.styled.js +5 -5
  448. package/dist/cjs/components/colourInput/ColourInput.styled.js.map +1 -1
  449. package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.js +4 -4
  450. package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.js.map +1 -1
  451. package/dist/cjs/components/country-code-picker/CountryPicker.styled.js +3 -3
  452. package/dist/cjs/components/country-code-picker/CountryPicker.styled.js.map +1 -1
  453. package/dist/cjs/components/curtain/Curtain.styled.js +5 -5
  454. package/dist/cjs/components/curtain/Curtain.styled.js.map +1 -1
  455. package/dist/cjs/components/custom-date-time/CustomDateTime.styled.js +3 -3
  456. package/dist/cjs/components/custom-date-time/CustomDateTime.styled.js.map +1 -1
  457. package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  458. package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.js.map +1 -1
  459. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.styled.js +5 -5
  460. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.styled.js.map +1 -1
  461. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.styled.js +4 -4
  462. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.styled.js.map +1 -1
  463. package/dist/cjs/components/dashboard-review-popup/components/Form.styled.js +11 -11
  464. package/dist/cjs/components/dashboard-review-popup/components/Form.styled.js.map +1 -1
  465. package/dist/cjs/components/dashboard-review-popup/components/ZeroState.js +2 -2
  466. package/dist/cjs/components/dashboard-review-popup/components/ZeroState.js.map +1 -1
  467. package/dist/cjs/components/data-source-panel/DataSourcePanel.style.js +5 -5
  468. package/dist/cjs/components/data-source-panel/DataSourcePanel.style.js.map +1 -1
  469. package/dist/cjs/components/data-source-panel/Modals/DescriptionModal.js +7 -7
  470. package/dist/cjs/components/data-source-panel/Modals/DescriptionModal.js.map +1 -1
  471. package/dist/cjs/components/datePicker/DatePicker.js +1 -1
  472. package/dist/cjs/components/datePicker/DatePicker.js.map +1 -1
  473. package/dist/cjs/components/datePicker/DatePicker.styled.js +7 -7
  474. package/dist/cjs/components/datePicker/DatePicker.styled.js.map +1 -1
  475. package/dist/cjs/components/datePicker/DatePickerWrapper.js +1 -1
  476. package/dist/cjs/components/datePicker/DatePickerWrapper.js.map +1 -1
  477. package/dist/cjs/components/datePicker/DatePickerWrapper.styled.js +4 -4
  478. package/dist/cjs/components/datePicker/DatePickerWrapper.styled.js.map +1 -1
  479. package/dist/cjs/components/discount-modal/DiscountModal.styled.js +13 -13
  480. package/dist/cjs/components/discount-modal/DiscountModal.styled.js.map +1 -1
  481. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +18 -18
  482. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js.map +1 -1
  483. package/dist/cjs/components/discount-modal/DynamicCoupon/ZeroState.js +3 -3
  484. package/dist/cjs/components/discount-modal/DynamicCoupon/ZeroState.js.map +1 -1
  485. package/dist/cjs/components/dot-pulse/DotPulse.js +6 -6
  486. package/dist/cjs/components/dot-pulse/DotPulse.js.map +1 -1
  487. package/dist/cjs/components/dropdown/ChipDropdown.js +3 -3
  488. package/dist/cjs/components/dropdown/ChipDropdown.js.map +1 -1
  489. package/dist/cjs/components/dropdown/Common.styled.js +8 -8
  490. package/dist/cjs/components/dropdown/Common.styled.js.map +1 -1
  491. package/dist/cjs/components/dropdown/DropdownPopover/index.js +1 -1
  492. package/dist/cjs/components/dropdown/DropdownPopover/index.js.map +1 -1
  493. package/dist/cjs/components/dropdown/MenuItem/MenuItem.js +2 -2
  494. package/dist/cjs/components/dropdown/MenuItem/MenuItem.js.map +1 -1
  495. package/dist/cjs/components/dropdown/MultilevelDropdownPopover/index.js +1 -1
  496. package/dist/cjs/components/dropdown/MultilevelDropdownPopover/index.js.map +1 -1
  497. package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.styled.js +7 -7
  498. package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.styled.js.map +1 -1
  499. package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.styled.js +3 -3
  500. package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.styled.js.map +1 -1
  501. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js +4 -4
  502. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js.map +1 -1
  503. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +8 -8
  504. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js.map +1 -1
  505. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.styled.js +2 -2
  506. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.styled.js.map +1 -1
  507. package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js +3 -3
  508. package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js.map +1 -1
  509. package/dist/cjs/components/dropdown/hooks/useDropdown.js +1 -1
  510. package/dist/cjs/components/dropdown/hooks/useDropdown.js.map +1 -1
  511. package/dist/cjs/components/dropdown-button/DropdownButton.style.js +6 -6
  512. package/dist/cjs/components/dropdown-button/DropdownButton.style.js.map +1 -1
  513. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js +2 -2
  514. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js.map +1 -1
  515. package/dist/cjs/components/file-uploader/FileUploaderStyle.js +3 -3
  516. package/dist/cjs/components/file-uploader/FileUploaderStyle.js.map +1 -1
  517. package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.js +6 -6
  518. package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.js.map +1 -1
  519. package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.js +4 -4
  520. package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.js.map +1 -1
  521. package/dist/cjs/components/half-doughnut-chart/HalfDoughnutChart.styled.js +14 -14
  522. package/dist/cjs/components/half-doughnut-chart/HalfDoughnutChart.styled.js.map +1 -1
  523. package/dist/cjs/components/icon-button/IconButton.js +1 -1
  524. package/dist/cjs/components/icon-button/IconButton.js.map +1 -1
  525. package/dist/cjs/components/icon-button/IconButton.styled.js +4 -4
  526. package/dist/cjs/components/icon-button/IconButton.styled.js.map +1 -1
  527. package/dist/cjs/components/image-compress/ImageCompress.js +1 -1
  528. package/dist/cjs/components/image-compress/ImageCompress.js.map +1 -1
  529. package/dist/cjs/components/image-cropper/BikImageCropper.js +1 -1
  530. package/dist/cjs/components/image-cropper/BikImageCropper.js.map +1 -1
  531. package/dist/cjs/components/input/Input.styled.js +49 -49
  532. package/dist/cjs/components/input/Input.styled.js.map +1 -1
  533. package/dist/cjs/components/input/context/InputStyleProvider.js +1 -1
  534. package/dist/cjs/components/input/context/InputStyleProvider.js.map +1 -1
  535. package/dist/cjs/components/input-with-vars/InputWithVariables.js +3 -3
  536. package/dist/cjs/components/input-with-vars/InputWithVariables.js.map +1 -1
  537. package/dist/cjs/components/input-with-vars/customPortal.js +1 -1
  538. package/dist/cjs/components/input-with-vars/customPortal.js.map +1 -1
  539. package/dist/cjs/components/list-item/ListItem.styled.js +6 -6
  540. package/dist/cjs/components/list-item/ListItem.styled.js.map +1 -1
  541. package/dist/cjs/components/modals/modal.styled.js +6 -6
  542. package/dist/cjs/components/modals/modal.styled.js.map +1 -1
  543. package/dist/cjs/components/modals/styledModal.js +10 -10
  544. package/dist/cjs/components/modals/styledModal.js.map +1 -1
  545. package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -1
  546. package/dist/cjs/components/multi-level-dropdown/MenuItem.js.map +1 -1
  547. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  548. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.js.map +1 -1
  549. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.styled.js +25 -25
  550. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.styled.js.map +1 -1
  551. package/dist/cjs/components/navigation-hyperlink/NavigationHyperlink.js +2 -2
  552. package/dist/cjs/components/navigation-hyperlink/NavigationHyperlink.js.map +1 -1
  553. package/dist/cjs/components/pagination/Pagination.styled.js +2 -2
  554. package/dist/cjs/components/pagination/Pagination.styled.js.map +1 -1
  555. package/dist/cjs/components/plans/SubscriptionPlanSelector.js +5 -5
  556. package/dist/cjs/components/plans/SubscriptionPlanSelector.js.map +1 -1
  557. package/dist/cjs/components/plans/SubscriptionPlanStyled.js +39 -39
  558. package/dist/cjs/components/plans/SubscriptionPlanStyled.js.map +1 -1
  559. package/dist/cjs/components/plans/SubscriptionPlansCollected.js +2 -2
  560. package/dist/cjs/components/plans/SubscriptionPlansCollected.js.map +1 -1
  561. package/dist/cjs/components/postPicker/PostPicker.styled.js +16 -16
  562. package/dist/cjs/components/postPicker/PostPicker.styled.js.map +1 -1
  563. package/dist/cjs/components/product-picker/ProductPicker.styled.js +8 -8
  564. package/dist/cjs/components/product-picker/ProductPicker.styled.js.map +1 -1
  565. package/dist/cjs/components/product-picker-v2/emptyState.js +2 -2
  566. package/dist/cjs/components/product-picker-v2/emptyState.js.map +1 -1
  567. package/dist/cjs/components/product-picker-v2/productInfoOverlay.js +7 -7
  568. package/dist/cjs/components/product-picker-v2/productInfoOverlay.js.map +1 -1
  569. package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
  570. package/dist/cjs/components/product-picker-v2/productScreen.js.map +1 -1
  571. package/dist/cjs/components/product-picker-v2/reducers.js +1 -1
  572. package/dist/cjs/components/product-picker-v2/reducers.js.map +1 -1
  573. package/dist/cjs/components/product-picker-v2/style.js +20 -20
  574. package/dist/cjs/components/product-picker-v2/style.js.map +1 -1
  575. package/dist/cjs/components/product-picker-v2/utility.js +1 -1
  576. package/dist/cjs/components/product-picker-v2/utility.js.map +1 -1
  577. package/dist/cjs/components/progress-bar/ProgressBarComponent.js +2 -2
  578. package/dist/cjs/components/progress-bar/ProgressBarComponent.js.map +1 -1
  579. package/dist/cjs/components/progress-bar-v2/ProgressBarV2.js +12 -12
  580. package/dist/cjs/components/progress-bar-v2/ProgressBarV2.js.map +1 -1
  581. package/dist/cjs/components/radioButton/RadioButton.styled.js +3 -3
  582. package/dist/cjs/components/radioButton/RadioButton.styled.js.map +1 -1
  583. package/dist/cjs/components/radioList/RadioList.styled.js +2 -2
  584. package/dist/cjs/components/radioList/RadioList.styled.js.map +1 -1
  585. package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.js +6 -6
  586. package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.js.map +1 -1
  587. package/dist/cjs/components/side-modal/SideModal.js +1 -1
  588. package/dist/cjs/components/side-modal/SideModal.js.map +1 -1
  589. package/dist/cjs/components/side-modal/SideModal.style.js +20 -20
  590. package/dist/cjs/components/side-modal/SideModal.style.js.map +1 -1
  591. package/dist/cjs/components/spinner/Spinner.js +3 -3
  592. package/dist/cjs/components/spinner/Spinner.js.map +1 -1
  593. package/dist/cjs/components/star-rating/Star.js +1 -1
  594. package/dist/cjs/components/star-rating/Star.js.map +1 -1
  595. package/dist/cjs/components/star-rating/StarRating.js +2 -2
  596. package/dist/cjs/components/star-rating/StarRating.js.map +1 -1
  597. package/dist/cjs/components/states/ShopifyScopeWrapper.js +1 -1
  598. package/dist/cjs/components/states/ShopifyScopeWrapper.js.map +1 -1
  599. package/dist/cjs/components/states/StateComponent.styled.js +6 -6
  600. package/dist/cjs/components/states/StateComponent.styled.js.map +1 -1
  601. package/dist/cjs/components/stepper/Stepper.styled.js +4 -4
  602. package/dist/cjs/components/stepper/Stepper.styled.js.map +1 -1
  603. package/dist/cjs/components/switch/Switch.js +4 -4
  604. package/dist/cjs/components/switch/Switch.js.map +1 -1
  605. package/dist/cjs/components/tabs/Tabs.styles.js +14 -14
  606. package/dist/cjs/components/tabs/Tabs.styles.js.map +1 -1
  607. package/dist/cjs/components/tag/Tag.js +1 -1
  608. package/dist/cjs/components/tag/Tag.js.map +1 -1
  609. package/dist/cjs/components/tag/Tag.styled.js +6 -6
  610. package/dist/cjs/components/tag/Tag.styled.js.map +1 -1
  611. package/dist/cjs/components/template-context-mapper/Badge/index.js +4 -4
  612. package/dist/cjs/components/template-context-mapper/Badge/index.js.map +1 -1
  613. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
  614. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js.map +1 -1
  615. package/dist/cjs/components/template-context-mapper/context/templateModalContext.js +1 -1
  616. package/dist/cjs/components/template-context-mapper/context/templateModalContext.js.map +1 -1
  617. package/dist/cjs/components/template-context-mapper/modalElements/Body.js +13 -13
  618. package/dist/cjs/components/template-context-mapper/modalElements/Body.js.map +1 -1
  619. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
  620. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js.map +1 -1
  621. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js +3 -3
  622. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js.map +1 -1
  623. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.style.js +10 -10
  624. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.style.js.map +1 -1
  625. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  626. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js.map +1 -1
  627. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  628. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js.map +1 -1
  629. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +2 -2
  630. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js.map +1 -1
  631. package/dist/cjs/components/template-context-mapper/modalElements/Footer.js +2 -2
  632. package/dist/cjs/components/template-context-mapper/modalElements/Footer.js.map +1 -1
  633. package/dist/cjs/components/template-context-mapper/modalElements/Header.js +10 -10
  634. package/dist/cjs/components/template-context-mapper/modalElements/Header.js.map +1 -1
  635. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
  636. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js.map +1 -1
  637. package/dist/cjs/components/template-context-mapper/modalElements/ProductBox.js +2 -2
  638. package/dist/cjs/components/template-context-mapper/modalElements/ProductBox.js.map +1 -1
  639. package/dist/cjs/components/template-context-mapper/modalElements/QueryParamsComponent.js +2 -2
  640. package/dist/cjs/components/template-context-mapper/modalElements/QueryParamsComponent.js.map +1 -1
  641. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +6 -6
  642. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js.map +1 -1
  643. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +3 -3
  644. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js.map +1 -1
  645. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +3 -3
  646. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js.map +1 -1
  647. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  648. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js.map +1 -1
  649. package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  650. package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js.map +1 -1
  651. package/dist/cjs/components/template-context-mapper/styles/TemplateAnalyticsStyles.js +9 -9
  652. package/dist/cjs/components/template-context-mapper/styles/TemplateAnalyticsStyles.js.map +1 -1
  653. package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js +21 -21
  654. package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js.map +1 -1
  655. package/dist/cjs/components/template-preview/RCS/RCSPreview.styled.js +25 -25
  656. package/dist/cjs/components/template-preview/RCS/RCSPreview.styled.js.map +1 -1
  657. package/dist/cjs/components/template-preview/RCS/RCSTemplateLikePreview.js +4 -4
  658. package/dist/cjs/components/template-preview/RCS/RCSTemplateLikePreview.js.map +1 -1
  659. package/dist/cjs/components/template-preview/SMS/SMSBubble.js +4 -4
  660. package/dist/cjs/components/template-preview/SMS/SMSBubble.js.map +1 -1
  661. package/dist/cjs/components/template-preview/SmsTemplatePreview.styled.js +20 -20
  662. package/dist/cjs/components/template-preview/SmsTemplatePreview.styled.js.map +1 -1
  663. package/dist/cjs/components/template-preview/TemplatePreview.styled.js +2 -2
  664. package/dist/cjs/components/template-preview/TemplatePreview.styled.js.map +1 -1
  665. package/dist/cjs/components/template-preview/WhatsApp/ChatHeader.style.js +7 -7
  666. package/dist/cjs/components/template-preview/WhatsApp/ChatHeader.style.js.map +1 -1
  667. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.js +2 -2
  668. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.js.map +1 -1
  669. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.js +9 -9
  670. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.js.map +1 -1
  671. package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
  672. package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js.map +1 -1
  673. package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +4 -4
  674. package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js.map +1 -1
  675. package/dist/cjs/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +2 -2
  676. package/dist/cjs/components/template-preview/WhatsApp/RenderTemplateWithVariable.js.map +1 -1
  677. package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreview.js +5 -5
  678. package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreview.js.map +1 -1
  679. package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js +5 -5
  680. package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js.map +1 -1
  681. package/dist/cjs/components/template-preview/webpush/WebpushPreview.styled.js +3 -3
  682. package/dist/cjs/components/template-preview/webpush/WebpushPreview.styled.js.map +1 -1
  683. package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +19 -19
  684. package/dist/cjs/components/testimonial-card/TestimonialCard.style.js.map +1 -1
  685. package/dist/cjs/components/text-picker/TextPickerCategoryCard.js +5 -5
  686. package/dist/cjs/components/text-picker/TextPickerCategoryCard.js.map +1 -1
  687. package/dist/cjs/components/text-picker/TextPickerFooter.js +5 -5
  688. package/dist/cjs/components/text-picker/TextPickerFooter.js.map +1 -1
  689. package/dist/cjs/components/text-picker/TextPickerItemRow.js +6 -6
  690. package/dist/cjs/components/text-picker/TextPickerItemRow.js.map +1 -1
  691. package/dist/cjs/components/text-picker/TextPickerModal.js +10 -10
  692. package/dist/cjs/components/text-picker/TextPickerModal.js.map +1 -1
  693. package/dist/cjs/components/text-picker/TextPickerSelectAllRow.js +6 -6
  694. package/dist/cjs/components/text-picker/TextPickerSelectAllRow.js.map +1 -1
  695. package/dist/cjs/components/thumbnail/Thumbnail.styled.js +2 -2
  696. package/dist/cjs/components/thumbnail/Thumbnail.styled.js.map +1 -1
  697. package/dist/cjs/components/toaster/Toaster.js +1 -1
  698. package/dist/cjs/components/toaster/Toaster.js.map +1 -1
  699. package/dist/cjs/components/toaster/Toaster.styled.js +28 -28
  700. package/dist/cjs/components/toaster/Toaster.styled.js.map +1 -1
  701. package/dist/cjs/components/tooltips/Tooltip.js +2 -2
  702. package/dist/cjs/components/tooltips/Tooltip.js.map +1 -1
  703. package/dist/cjs/components/tooltips/TooltipInternal.js +2 -2
  704. package/dist/cjs/components/tooltips/TooltipInternal.js.map +1 -1
  705. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.style.js +6 -6
  706. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.style.js.map +1 -1
  707. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.style.js +4 -4
  708. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.style.js.map +1 -1
  709. package/dist/cjs/components/variable-picker-v3/NoResult.js +5 -5
  710. package/dist/cjs/components/variable-picker-v3/NoResult.js.map +1 -1
  711. package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js +1 -1
  712. package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js.map +1 -1
  713. package/dist/cjs/components/variable-picker-v3/context.js +1 -1
  714. package/dist/cjs/components/variable-picker-v3/context.js.map +1 -1
  715. package/dist/cjs/components/variable-picker-v3/styles.js +11 -11
  716. package/dist/cjs/components/variable-picker-v3/styles.js.map +1 -1
  717. package/dist/cjs/components/vertical-full-screen-modal/styles.js +14 -14
  718. package/dist/cjs/components/vertical-full-screen-modal/styles.js.map +1 -1
  719. package/dist/cjs/components/whats-new/WhatsNew.styles.js +20 -20
  720. package/dist/cjs/components/whats-new/WhatsNew.styles.js.map +1 -1
  721. package/dist/cjs/components/zeroState/ZeroState.js +5 -5
  722. package/dist/cjs/components/zeroState/ZeroState.js.map +1 -1
  723. package/dist/cjs/editor/BikEditor.styles.js +2 -2
  724. package/dist/cjs/editor/BikEditor.styles.js.map +1 -1
  725. package/dist/cjs/editor/extensions/buildExtensions.js +1 -1
  726. package/dist/cjs/editor/extensions/buildExtensions.js.map +1 -1
  727. package/dist/cjs/editor/extensions/editorDropdown.styles.js +20 -20
  728. package/dist/cjs/editor/extensions/editorDropdown.styles.js.map +1 -1
  729. package/dist/cjs/editor/extensions/mention/MentionExtension.js +1 -1
  730. package/dist/cjs/editor/extensions/mention/MentionExtension.js.map +1 -1
  731. package/dist/cjs/editor/extensions/slashCommand/SlashCommandExtension.js +1 -1
  732. package/dist/cjs/editor/extensions/slashCommand/SlashCommandExtension.js.map +1 -1
  733. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"EditWhatsAppTemplateV2.js","sources":["../../../../../src/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.tsx"],"sourcesContent":["import { PickerType } from '@src/helpers';\nimport cloneDeep from 'lodash/cloneDeep';\nimport { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport type { VariableListInterfaceV2 } from '@src/components/add-variableV2/AddVariableV2';\nimport { Input } from '@src/components/input';\nimport { InputWithVariables } from '@src/components/input-with-vars';\nimport {\n\tisCarouselComponent,\n\tisRCSChannel,\n} from '@src/components/template-preview/helpers/templateMiscHelper';\nimport type { EmailTemplateType } from '@src/components/template-preview/models/EmailTemplate';\nimport type { SMSTemplateType } from '@src/components/template-preview/models/SmsTemplate';\nimport {\n\tButtonPlaceHolderOptions,\n\tHEADER_TYPES,\n} from '@src/components/template-preview/models/TemplateMeta';\nimport type {\n\tWhatsAppCarouselTemplate,\n\tWhatsAppCarouselTemplateVariables,\n} from '@src/components/template-preview/models/WhatsappCarouselTemplate';\nimport {\n\ttype CTABtnValType,\n\tPOD,\n\ttype QRBBtnValType,\n} from '@src/components/template-preview/models/WhatsAppTemplate';\nimport {\n\ttype WhatsAppPickerMeta,\n\ttype WhatsAppTemplate,\n\ttype WhatsAppTemplateVariables,\n} from '@src/components/template-preview/models/WhatsAppTemplate';\nimport { useTemplateModalContext } from '../context/templateModalContext';\nimport {\n\tSTATIC_URL_VARIABLE_NAME,\n\tUNSUBSCRIBE_URL_VARIABLE,\n} from '../utils/constants';\nimport { getAllDataFromTemplateComponent } from '../utils/getDataFromTemplateComponent';\nimport { isVariable } from '../utils/validateIsUrl';\nimport {\n\tvalidateInputName,\n\tvalidateInputNameChatbot,\n} from '../utils/validateName';\nimport { BackTrackComponent } from './BackTrackComponent';\nimport { DiscountCodeComponent } from './DiscountCodeComponent';\nimport EditMediaModal from './EditMediaModal';\nimport EditMediaV2 from './EditMediaV2';\nimport { EditTemplateMediaContainer } from './EditMediaV2.style';\nimport { useEditWhatsappTemplateMedia } from './useEditWhtasappTemplateMedia';\nimport VariableConnector from './VariableConnector';\nimport { Container } from './VariableConnectorsPanel';\nimport VariableConnectorWhatsApp from './VariableConnectorWhatsApp';\nimport VariableEditorHeader from './VariableEditorHeader';\nimport WhatsAppTemplateCardButtonV2, {\n\tQRBBtnUpdateFunctionType,\n\tURLBtnUpdateFunctionType,\n} from './WhatsAppTemplateCardButtonV2';\n\nexport interface EditWhatsAppTemplateV2Props {\n\twhatsappSpecificPickerMeta?: WhatsAppPickerMeta;\n\ttemplate: WhatsAppTemplate | WhatsAppCarouselTemplate;\n\tonTemplateChange?: (\n\t\ttemplate:\n\t\t\t| WhatsAppTemplate\n\t\t\t| EmailTemplateType\n\t\t\t| SMSTemplateType\n\t\t\t| WhatsAppCarouselTemplate,\n\t) => void;\n\tshowVariableModal?: boolean;\n\tvariableListForImage?: VariableListInterfaceV2[];\n\tdiscountCode?: string;\n\tsetDiscountCode?: (code: string) => void;\n\tfileName?: string;\n\tsetFileName?: (name: string) => void;\n}\n\nconst EditWhatsAppTemplateV2 = ({\n\ttemplate,\n\tonTemplateChange,\n\twhatsappSpecificPickerMeta,\n\tshowVariableModal,\n\tvariableListForImage,\n\tsetDiscountCode,\n\tfileName,\n\tsetFileName,\n}: EditWhatsAppTemplateV2Props) => {\n\tconst isCarouselType = (template as WhatsAppCarouselTemplate).isCarouselType;\n\tconst {\n\t\toriginalVariableList,\n\t\tpod,\n\t\textras,\n\t\tselectedCarouselIndex,\n\t\tisProductCarouselType,\n\t\tdisableCopyCode,\n\t\tisError,\n\t\tcardIndex,\n\t} = useTemplateModalContext();\n\tconst {\n\t\tdescriptionComponents,\n\t\turlBtns,\n\t\tqrbBtns,\n\t\timageComponent,\n\t\tbodyVariables,\n\t\theaderVariables,\n\t\ttitleVariables,\n\t} = getAllDataFromTemplateComponent(template as WhatsAppTemplate);\n\n\tconst fileRef = useRef<HTMLInputElement>(null);\n\n\tconst [showDiscountCheckBox, setShowDiscountCheckBox] =\n\t\tuseState<boolean>(false);\n\tconst [templateComponentData, setTemplateComponentData] = useState<any>(\n\t\tselectedCarouselIndex === -1\n\t\t\t? {\n\t\t\t\t\tdescriptionComponents,\n\t\t\t\t\turlBtns,\n\t\t\t\t\tqrbBtns,\n\t\t\t\t\timageComponent,\n\t\t\t\t\tbodyVariables,\n\t\t\t\t\theaderVariables,\n\t\t\t\t\ttitleVariables,\n\t\t\t }\n\t\t\t: {},\n\t);\n\n\tconst { uploadMediaLink, uploadMediaFiles, validateMimeType } =\n\t\twhatsappSpecificPickerMeta as WhatsAppPickerMeta;\n\n\tconst useEditWhatsappTemplateMediaResponse = useEditWhatsappTemplateMedia({\n\t\tuploadMediaLink,\n\t\tuploadMediaFiles,\n\t\tupdateTemplateImageUrl,\n\t\tvalidateMimeType,\n\t\tmediaComponent: !isCarouselType\n\t\t\t? imageComponent\n\t\t\t: templateComponentData.imageComponent,\n\t\tfileRef,\n\t});\n\n\tconst [hasNewImageUpload, setHasNewImageUpload] = useState<boolean>(false);\n\tconst [enteredPdf, setEnteredPdf] = useState(fileName);\n\tconst [pdfInputError, setPdfInputError] = useState<string | undefined>();\n\n\t/**\n\t * Whenever template changes, check if we have Checkout URL in the button mapping.\n\t * If yes, show discount check box\n\t */\n\tuseEffect(() => {\n\t\tconst discountCheckboxEnabled = template.mapping.buttons?.find(\n\t\t\t(button) => button.slice(2, -2) === 'checkout.checkoutUrl',\n\t\t);\n\t\tif (discountCheckboxEnabled) {\n\t\t\tsetShowDiscountCheckBox(true);\n\t\t} else {\n\t\t\tsetShowDiscountCheckBox(false);\n\t\t\tconst setDiscountCode = extras?.discountCodeExtra?.[1];\n\t\t\tsetDiscountCode?.('');\n\t\t}\n\t}, [template]);\n\n\tuseEffect(() => {\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tconst currentCarousel = {\n\t\t\t\tcomponents: (template as WhatsAppCarouselTemplate).components[cardIndex]\n\t\t\t\t\t?.cards?.[selectedCarouselIndex].components,\n\t\t\t\tmapping: (template as WhatsAppCarouselTemplate)?.mapping?.cards?.[\n\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t],\n\t\t\t};\n\t\t\tconst {\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t} = getAllDataFromTemplateComponent(currentCarousel as WhatsAppTemplate);\n\n\t\t\tsetTemplateComponentData({\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t});\n\t\t} else if (\n\t\t\tselectedCarouselIndex != undefined &&\n\t\t\tselectedCarouselIndex === -1\n\t\t) {\n\t\t\tconst {\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent: mediaComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t} = getAllDataFromTemplateComponent(template as WhatsAppTemplate);\n\t\t\tsetTemplateComponentData({\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent: mediaComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t});\n\t\t}\n\t}, [selectedCarouselIndex]);\n\n\tuseEffect(() => {\n\t\tif (\n\t\t\tselectedCarouselIndex != undefined &&\n\t\t\tselectedCarouselIndex > -1 &&\n\t\t\thasNewImageUpload\n\t\t) {\n\t\t\tconst currentCarousel = {\n\t\t\t\tcomponents: (template as WhatsAppCarouselTemplate).components[cardIndex]\n\t\t\t\t\t?.cards?.[selectedCarouselIndex].components,\n\t\t\t\tmapping: (template as WhatsAppCarouselTemplate)?.mapping?.cards?.[\n\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t],\n\t\t\t};\n\t\t\tconst {\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t} = getAllDataFromTemplateComponent(currentCarousel as WhatsAppTemplate);\n\n\t\t\tsetTemplateComponentData({\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t});\n\t\t\tsetHasNewImageUpload(false);\n\t\t}\n\t}, [hasNewImageUpload]);\n\n\tfunction updateTemplateImageUrl(\n\t\turl: string,\n\t\tformat: WhatsAppTemplate['components'][0]['format'],\n\t) {\n\t\tlet localTemplate: any;\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tlocalTemplate = {\n\t\t\t\tcomponents: (template as WhatsAppCarouselTemplate).components[cardIndex]\n\t\t\t\t\t?.cards?.[selectedCarouselIndex].components,\n\t\t\t\tmapping: (template as WhatsAppCarouselTemplate)?.mapping?.cards?.[\n\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t],\n\t\t\t};\n\t\t} else {\n\t\t\tlocalTemplate = { ...template };\n\t\t}\n\n\t\tconst imageComponentIndex = localTemplate?.components?.findIndex(\n\t\t\t(component) => {\n\t\t\t\tif (\n\t\t\t\t\tcomponent.type === 'HEADER' &&\n\t\t\t\t\tcomponent.format !== 'NONE' &&\n\t\t\t\t\tcomponent.format !== 'TEXT'\n\t\t\t\t) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t},\n\t\t);\n\n\t\tif (\n\t\t\ttypeof imageComponentIndex !== 'undefined' &&\n\t\t\timageComponentIndex > -1 &&\n\t\t\tlocalTemplate?.components[imageComponentIndex]\n\t\t) {\n\t\t\tconst updatedComponent: WhatsAppTemplate['components'][0] = {\n\t\t\t\t...localTemplate.components[imageComponentIndex],\n\t\t\t\tformat,\n\t\t\t\texample: {\n\t\t\t\t\theader_handle: [url],\n\t\t\t\t},\n\t\t\t};\n\n\t\t\tconst components = [...localTemplate.components];\n\t\t\tcomponents[imageComponentIndex] = updatedComponent;\n\t\t\tlocalTemplate = { ...localTemplate, components };\n\t\t}\n\n\t\tif (localTemplate.mapping) {\n\t\t\tlocalTemplate.mapping = {\n\t\t\t\t...localTemplate.mapping,\n\t\t\t\theader: undefined,\n\t\t\t};\n\t\t}\n\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tconst templateCopy = cloneDeep(template as WhatsAppCarouselTemplate);\n\t\t\ttemplateCopy.components[cardIndex].cards![\n\t\t\t\tselectedCarouselIndex\n\t\t\t].components = localTemplate.components;\n\t\t\tif (\n\t\t\t\ttemplateCopy?.mapping?.cards &&\n\t\t\t\ttemplateCopy?.mapping?.cards.length > 0\n\t\t\t) {\n\t\t\t\ttemplateCopy.mapping.cards![selectedCarouselIndex] =\n\t\t\t\t\tlocalTemplate.mapping ?? {};\n\t\t\t}\n\t\t\tonTemplateChange?.({ ...templateCopy });\n\t\t\tsetHasNewImageUpload(true);\n\t\t} else {\n\t\t\tonTemplateChange?.({ ...localTemplate });\n\t\t}\n\t}\n\n\tfunction updateSelectedTemplateURLBtn(\n\t\tval: CTABtnValType,\n\t\tmode: 'custom' | 'placeholder',\n\t\tbtnIndex: number,\n\t) {\n\t\tconst tempCopy =\n\t\t\tselectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? {\n\t\t\t\t\t\tcomponents: ({ ...template } as WhatsAppCarouselTemplate)\n\t\t\t\t\t\t\t.components[cardIndex].cards?.[selectedCarouselIndex]\n\t\t\t\t\t\t\t.components as any,\n\t\t\t\t\t\tmapping: ({ ...template } as WhatsAppCarouselTemplate).mapping\n\t\t\t\t\t\t\t.cards?.[selectedCarouselIndex],\n\t\t\t\t }\n\t\t\t\t: { ...template };\n\t\tconst selectedTemplate = cloneDeep(tempCopy);\n\n\t\tconst isCustom = mode === 'custom' && typeof val === 'string';\n\t\tconst customValue = isCustom\n\t\t\t? val\n\t\t\t: typeof val !== 'string'\n\t\t\t? val.defaultValue\n\t\t\t\t? val.defaultValue\n\t\t\t\t: 'https://d.bik.ai/'\n\t\t\t: 'https://d.bik.ai';\n\t\tif (\n\t\t\tselectedCarouselIndex != undefined &&\n\t\t\tselectedCarouselIndex > -1 &&\n\t\t\tisProductCarouselType\n\t\t) {\n\t\t\tconst newComponent = {\n\t\t\t\t...(template as WhatsAppCarouselTemplate),\n\t\t\t}.components.map((component) => {\n\t\t\t\tif (isCarouselComponent(component.type)) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...component,\n\t\t\t\t\t\tcards: component.cards?.map((cardComponent) => {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...cardComponent,\n\t\t\t\t\t\t\t\tcomponents: cardComponent.components.map((card) => {\n\t\t\t\t\t\t\t\t\tif (card.type === 'BUTTONS') {\n\t\t\t\t\t\t\t\t\t\tconst ctaBtns = card.buttons?.filter(\n\t\t\t\t\t\t\t\t\t\t\t(btn) => btn.type === 'URL',\n\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\tlet currentButton: any = ctaBtns?.[btnIndex] ?? {};\n\t\t\t\t\t\t\t\t\t\tcurrentButton = {\n\t\t\t\t\t\t\t\t\t\t\t...currentButton,\n\t\t\t\t\t\t\t\t\t\t\turl: 'https://d.bik.ai/{{1}}',\n\t\t\t\t\t\t\t\t\t\t\texample: [customValue],\n\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\tconst newButtonList = card.buttons?.map((btn) => {\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\tbtn.type === 'URL' &&\n\t\t\t\t\t\t\t\t\t\t\t\tbtn?.text === currentButton?.text\n\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn currentButton;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\treturn btn;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t...card,\n\t\t\t\t\t\t\t\t\t\t\tbuttons: newButtonList,\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\treturn card;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\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} else {\n\t\t\t\t\treturn component;\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst mappingButtonsComponent = {\n\t\t\t\t...(template as WhatsAppCarouselTemplate),\n\t\t\t}.mapping?.cards?.map((card) => {\n\t\t\t\treturn {\n\t\t\t\t\t...card,\n\t\t\t\t\tbuttons: card?.buttons?.map((button, index: number) => {\n\t\t\t\t\t\tif (index === btnIndex) {\n\t\t\t\t\t\t\treturn isCustom\n\t\t\t\t\t\t\t\t? '((customBtnPlaceholder))'\n\t\t\t\t\t\t\t\t: typeof val !== 'string'\n\t\t\t\t\t\t\t\t? val.placeHolder\n\t\t\t\t\t\t\t\t: '';\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn button;\n\t\t\t\t\t}),\n\t\t\t\t};\n\t\t\t});\n\t\t\tconst newTemplate = cloneDeep(template as WhatsAppCarouselTemplate);\n\t\t\tnewTemplate.components = newComponent as any;\n\t\t\tnewTemplate.mapping.cards = mappingButtonsComponent;\n\t\t\tonTemplateChange?.({ ...newTemplate });\n\t\t\treturn;\n\t\t}\n\n\t\tconst btnComponentIndex = selectedTemplate?.components.findIndex(\n\t\t\t(component) => component.type === 'BUTTONS',\n\t\t);\n\n\t\tif (typeof btnComponentIndex !== 'undefined' && btnComponentIndex > -1) {\n\t\t\tconst ctaBtns = selectedTemplate?.components[\n\t\t\t\tbtnComponentIndex\n\t\t\t].buttons?.filter((btn) => btn.type === 'URL');\n\n\t\t\tif (ctaBtns?.length > 0) {\n\t\t\t\tconst isCustom = mode === 'custom' && typeof val === 'string';\n\t\t\t\tconst customValue = isCustom\n\t\t\t\t\t? val\n\t\t\t\t\t: typeof val !== 'string'\n\t\t\t\t\t? val.defaultValue\n\t\t\t\t\t\t? val.defaultValue\n\t\t\t\t\t\t: 'https://d.bik.ai/'\n\t\t\t\t\t: 'https://d.bik.ai/';\n\n\t\t\t\tlet currentButton = ctaBtns[btnIndex];\n\t\t\t\tcurrentButton = {\n\t\t\t\t\t...currentButton,\n\t\t\t\t\turl: 'https://d.bik.ai/{{1}}',\n\t\t\t\t\texample: [customValue],\n\t\t\t\t};\n\n\t\t\t\tconst buttons = [\n\t\t\t\t\t...(selectedTemplate.components?.[btnComponentIndex]?.buttons ?? []),\n\t\t\t\t];\n\t\t\t\tconst newButtonList = buttons.map((btn) => {\n\t\t\t\t\tif (btn.type === 'URL' && btn?.text === currentButton?.text) {\n\t\t\t\t\t\treturn currentButton;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn btn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tconst btnComponent = {\n\t\t\t\t\t...selectedTemplate.components[btnComponentIndex],\n\t\t\t\t\tbuttons: newButtonList,\n\t\t\t\t};\n\n\t\t\t\tconst mappingButtons = selectedTemplate.mapping?.buttons;\n\n\t\t\t\tif (mappingButtons && mappingButtons.length > 0) {\n\t\t\t\t\tmappingButtons[btnIndex] = isCustom\n\t\t\t\t\t\t? '((customBtnPlaceholder))'\n\t\t\t\t\t\t: typeof val !== 'string'\n\t\t\t\t\t\t? val.placeHolder\n\t\t\t\t\t\t: '';\n\t\t\t\t}\n\n\t\t\t\tconst mapping = {\n\t\t\t\t\t...selectedTemplate.mapping,\n\t\t\t\t\tbuttons: mappingButtons,\n\t\t\t\t};\n\n\t\t\t\tselectedTemplate.mapping = mapping;\n\t\t\t\tconst components = [...selectedTemplate.components];\n\t\t\t\tcomponents[btnComponentIndex] = btnComponent;\n\t\t\t\tselectedTemplate.components = components;\n\t\t\t}\n\t\t}\n\n\t\tif (typeof val !== 'string') {\n\t\t\tconst discountCheckBoxEnabled =\n\t\t\t\tval.placeHolder?.slice(2, -2) === 'checkout.checkoutUrl';\n\t\t\tif (discountCheckBoxEnabled) {\n\t\t\t\tsetShowDiscountCheckBox(true);\n\t\t\t} else {\n\t\t\t\tsetShowDiscountCheckBox(false);\n\t\t\t\tsetDiscountCode?.('');\n\t\t\t}\n\t\t}\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tconst templateCopy = cloneDeep(template as WhatsAppCarouselTemplate);\n\t\t\ttemplateCopy.components[cardIndex].cards![\n\t\t\t\tselectedCarouselIndex\n\t\t\t].components = selectedTemplate.components;\n\t\t\ttemplateCopy.mapping.cards![selectedCarouselIndex] =\n\t\t\t\tselectedTemplate.mapping!;\n\t\t\tonTemplateChange?.({ ...templateCopy });\n\t\t} else {\n\t\t\tonTemplateChange?.(selectedTemplate as WhatsAppTemplate);\n\t\t}\n\t}\n\n\tfunction updateSelectedTemplateQRBBtn(\n\t\tval: QRBBtnValType,\n\t\tmode: 'custom' | 'placeholder',\n\t\tbtnIndex: number,\n\t) {\n\t\tconst selectedTemplate =\n\t\t\tselectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? {\n\t\t\t\t\t\tcomponents: ({ ...template } as WhatsAppCarouselTemplate)\n\t\t\t\t\t\t\t.components[cardIndex].cards?.[selectedCarouselIndex]\n\t\t\t\t\t\t\t.components as any,\n\t\t\t\t\t\tmapping: ({ ...template } as WhatsAppCarouselTemplate).mapping\n\t\t\t\t\t\t\t.cards?.[selectedCarouselIndex],\n\t\t\t\t }\n\t\t\t\t: { ...template };\n\n\t\tif (\n\t\t\tselectedCarouselIndex != undefined &&\n\t\t\tselectedCarouselIndex > -1 &&\n\t\t\tisProductCarouselType\n\t\t) {\n\t\t\tconst newComponent = {\n\t\t\t\t...(template as WhatsAppCarouselTemplate),\n\t\t\t}.components.map((component) => {\n\t\t\t\tif (isCarouselComponent(component.type)) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...component,\n\t\t\t\t\t\tcards: component.cards?.map((cardComponent) => {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...cardComponent,\n\t\t\t\t\t\t\t\tcomponents: cardComponent.components.map((card) => {\n\t\t\t\t\t\t\t\t\tif (card.type === 'BUTTONS') {\n\t\t\t\t\t\t\t\t\t\tconst qrbButtons = card?.buttons?.filter(\n\t\t\t\t\t\t\t\t\t\t\t(btn) => btn.type === 'QUICK_REPLY',\n\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\tlet currentButton: any = qrbButtons?.[btnIndex] ?? {};\n\t\t\t\t\t\t\t\t\t\tcurrentButton = {\n\t\t\t\t\t\t\t\t\t\t\t...currentButton,\n\t\t\t\t\t\t\t\t\t\t\tflowId: val.flowId,\n\t\t\t\t\t\t\t\t\t\t\tflowName: val.flowName,\n\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\tconst newButtonList = card?.buttons?.map((btn) => {\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\tbtn.type === 'QUICK_REPLY' &&\n\t\t\t\t\t\t\t\t\t\t\t\tbtn?.text === currentButton?.text\n\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn currentButton;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\treturn btn;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t...card,\n\t\t\t\t\t\t\t\t\t\t\tbuttons: newButtonList,\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\treturn card;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\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} else {\n\t\t\t\t\treturn component;\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst newTemplate = cloneDeep(template);\n\t\t\tnewTemplate.components = newComponent as any;\n\t\t\tonTemplateChange?.({ ...newTemplate });\n\t\t\treturn;\n\t\t}\n\n\t\tconst btnComponentIndex = selectedTemplate?.components.findIndex(\n\t\t\t(component) => component.type === 'BUTTONS',\n\t\t);\n\t\tif (typeof btnComponentIndex !== 'undefined' && btnComponentIndex > -1) {\n\t\t\tconst qrbButtons = selectedTemplate?.components[\n\t\t\t\tbtnComponentIndex\n\t\t\t]?.buttons?.filter((btn) => btn.type === 'QUICK_REPLY');\n\n\t\t\tif (qrbButtons) {\n\t\t\t\tlet currentButton = qrbButtons[btnIndex];\n\t\t\t\tcurrentButton = {\n\t\t\t\t\t...currentButton,\n\t\t\t\t\tflowId: val.flowId,\n\t\t\t\t\tflowName: val.flowName,\n\t\t\t\t};\n\n\t\t\t\tconst buttons = [\n\t\t\t\t\t...(selectedTemplate.components?.[btnComponentIndex]?.buttons ?? []),\n\t\t\t\t];\n\n\t\t\t\tconst newButtonList = buttons.map((btn) => {\n\t\t\t\t\tif (btn.type === 'QUICK_REPLY' && btn?.text === currentButton?.text) {\n\t\t\t\t\t\treturn currentButton;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn btn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tconst btnComponent = {\n\t\t\t\t\t...selectedTemplate.components[btnComponentIndex],\n\t\t\t\t\tbuttons: newButtonList,\n\t\t\t\t};\n\t\t\t\tconst components = [...selectedTemplate.components];\n\t\t\t\tcomponents[btnComponentIndex] = btnComponent;\n\t\t\t\tselectedTemplate.components = components;\n\t\t\t}\n\t\t}\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tconst templateCopy = cloneDeep(template as WhatsAppCarouselTemplate);\n\t\t\ttemplateCopy.components[cardIndex].cards![\n\t\t\t\tselectedCarouselIndex\n\t\t\t].components = selectedTemplate.components;\n\t\t\tonTemplateChange?.({ ...templateCopy });\n\t\t} else {\n\t\t\tonTemplateChange?.(selectedTemplate as WhatsAppTemplate);\n\t\t}\n\t}\n\n\tconst validatePdfName = () => {\n\t\tif (!enteredPdf) {\n\t\t\tsetFileName?.('');\n\t\t\tsetPdfInputError('PDF name is Required');\n\t\t\treturn;\n\t\t}\n\t\tconst isValid = validateInputName(enteredPdf);\n\t\tsetFileName?.(enteredPdf);\n\n\t\tif (isValid) {\n\t\t\tsetPdfInputError('Please enter a valid PDF name');\n\t\t\treturn;\n\t\t}\n\t\tsetPdfInputError(undefined);\n\t};\n\n\tconst validatePdfNameChatbot = () => {\n\t\tif (!fileName) {\n\t\t\tsetPdfInputError('PDF name is Required');\n\t\t\treturn;\n\t\t}\n\t\tconst isInvalid = validateInputNameChatbot(fileName);\n\n\t\tsetFileName?.(fileName ?? '');\n\t\tif (isInvalid) {\n\t\t\tsetPdfInputError('Please enter a valid PDF name');\n\t\t\treturn;\n\t\t}\n\t\tsetPdfInputError(undefined);\n\t};\n\n\tuseEffect(() => {\n\t\tif (isError && pod === POD.CHATBOT) {\n\t\t\tvalidatePdfNameChatbot();\n\t\t}\n\t}, [isError]);\n\n\tconst _mediaComponent = !isCarouselType\n\t\t? imageComponent\n\t\t: templateComponentData.imageComponent;\n\n\tif (useEditWhatsappTemplateMediaResponse.openEditMedia) {\n\t\treturn (\n\t\t\t<Container\n\t\t\t\tstyle={{\n\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\twidth: 400,\n\t\t\t\t\tmaxHeight: 460,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<EditMediaModal\n\t\t\t\t\tmediaComponentFormat={_mediaComponent.format ?? HEADER_TYPES.IMAGE}\n\t\t\t\t\tuploadMedia={useEditWhatsappTemplateMediaResponse.uploadMedia}\n\t\t\t\t\tvariableListForImage={variableListForImage || []}\n\t\t\t\t\tuseEditWhatsappTemplateMediaResponse={\n\t\t\t\t\t\tuseEditWhatsappTemplateMediaResponse\n\t\t\t\t\t}\n\t\t\t\t\tsetOpenEditMedia={\n\t\t\t\t\t\tuseEditWhatsappTemplateMediaResponse.setOpenEditMedia\n\t\t\t\t\t}\n\t\t\t\t\topenEditMedia={useEditWhatsappTemplateMediaResponse.openEditMedia}\n\t\t\t\t\teditIconRef={useEditWhatsappTemplateMediaResponse.editIconRef}\n\t\t\t\t\tfileRef={fileRef}\n\t\t\t\t/>\n\t\t\t</Container>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Container\n\t\t\tstyle={{\n\t\t\t\tflexDirection: 'column',\n\t\t\t\twidth: 400,\n\t\t\t\tmaxHeight: 460,\n\t\t\t\tminWidth: isProductCarouselType ? '420px' : 'auto',\n\t\t\t}}\n\t\t>\n\t\t\t{!!templateComponentData.imageComponent &&\n\t\t\t\t!isProductCarouselType &&\n\t\t\t\t!isRCSChannel(template?.channel) && (\n\t\t\t\t\t<EditTemplateMediaContainer>\n\t\t\t\t\t\t<EditMediaV2\n\t\t\t\t\t\t\timageName={_mediaComponent?.example?.header_handle ?? []}\n\t\t\t\t\t\t\thandleImageChange={\n\t\t\t\t\t\t\t\tuseEditWhatsappTemplateMediaResponse.handleImageChange\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmediaType={_mediaComponent?.format}\n\t\t\t\t\t\t\terror={useEditWhatsappTemplateMediaResponse.error}\n\t\t\t\t\t\t\tisLoading={useEditWhatsappTemplateMediaResponse.loading}\n\t\t\t\t\t\t\tsetOpenEditMedia={\n\t\t\t\t\t\t\t\tuseEditWhatsappTemplateMediaResponse.setOpenEditMedia\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tselectedVariable={\n\t\t\t\t\t\t\t\tisVariable(_mediaComponent?.example?.header_handle?.[0] ?? '')\n\t\t\t\t\t\t\t\t\t? _mediaComponent?.example?.header_handle?.[0]\n\t\t\t\t\t\t\t\t\t: template?.mapping?.header?.[0]\n\t\t\t\t\t\t\t\t\t? template?.mapping?.header?.[0]\n\t\t\t\t\t\t\t\t\t: useEditWhatsappTemplateMediaResponse.selectedVariable\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{imageComponent?.['format'] == HEADER_TYPES.DOCUMENT ? (\n\t\t\t\t\t\t\t<PdfContainer>\n\t\t\t\t\t\t\t\t{pod === POD.CHATBOT ? (\n\t\t\t\t\t\t\t\t\t<InputWithVariables\n\t\t\t\t\t\t\t\t\t\tlabelText=\"PDF Name\"\n\t\t\t\t\t\t\t\t\t\tplaceHolder={'Enter the name'}\n\t\t\t\t\t\t\t\t\t\terrorMessage={pdfInputError ? pdfInputError : undefined}\n\t\t\t\t\t\t\t\t\t\tonChange={(name) => {\n\t\t\t\t\t\t\t\t\t\t\tsetPdfInputError('');\n\t\t\t\t\t\t\t\t\t\t\tsetFileName?.(name?.actualValue ?? '');\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tpickerType={PickerType.EMBEDDED}\n\t\t\t\t\t\t\t\t\t\tnoMaxCharCheck={true}\n\t\t\t\t\t\t\t\t\t\tallowMix={true}\n\t\t\t\t\t\t\t\t\t\tshowVarHeader\n\t\t\t\t\t\t\t\t\t\tvarHeaderText=\"Select variable\"\n\t\t\t\t\t\t\t\t\t\tprevVariable={{\n\t\t\t\t\t\t\t\t\t\t\tactualValue: fileName ?? '',\n\t\t\t\t\t\t\t\t\t\t\tvariableType: 'string',\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tvariablesList={variableListForImage}\n\t\t\t\t\t\t\t\t\t\tshowAddButton={true}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\tlabelText=\"PDF Name\"\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Enter the name\"\n\t\t\t\t\t\t\t\t\t\tvalue={enteredPdf}\n\t\t\t\t\t\t\t\t\t\terrorMessage={pdfInputError ? pdfInputError : undefined}\n\t\t\t\t\t\t\t\t\t\tonBlur={validatePdfName}\n\t\t\t\t\t\t\t\t\t\tonChangeText={(name) => {\n\t\t\t\t\t\t\t\t\t\t\tsetPdfInputError('');\n\t\t\t\t\t\t\t\t\t\t\tsetEnteredPdf(name);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</PdfContainer>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<></>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</EditTemplateMediaContainer>\n\t\t\t\t)}\n\n\t\t\t{templateComponentData.bodyVariables?.length > 0 && (\n\t\t\t\t<VariableEditorHeader\n\t\t\t\t\tcontainerStyle={{\n\t\t\t\t\t\tpaddingTop: templateComponentData.mediaComponent ? 24 : 8,\n\t\t\t\t\t}}\n\t\t\t\t\theaderText={'Edit variable values'}\n\t\t\t\t\tsubText={'Edit values for the variables used in template'}\n\t\t\t\t\ttoolTipInfo={\n\t\t\t\t\t\t'Variables are placeholder texts which can either be filled through data or custom texts. These can be edited through the dropdowns below'\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{templateComponentData.descriptionComponents?.map(\n\t\t\t\t(descriptionComponent, i) => (\n\t\t\t\t\t<VariableConnectorWhatsApp\n\t\t\t\t\t\toriginalVariableList={\n\t\t\t\t\t\t\tselectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables)\n\t\t\t\t\t\t\t\t\t\t.cards[selectedCarouselIndex]\n\t\t\t\t\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttype={descriptionComponent.type}\n\t\t\t\t\t\tdescriptionComponent={descriptionComponent.component}\n\t\t\t\t\t\tkey={i}\n\t\t\t\t\t\tshowVariableModal={showVariableModal}\n\t\t\t\t\t/>\n\t\t\t\t),\n\t\t\t)}\n\n\t\t\t{(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t ]?.buttons\n\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t)?.filter((btn) => btn.type === 'URL')?.length > 0 && (\n\t\t\t\t<VariableEditorHeader\n\t\t\t\t\theaderText={'Edit buttons'}\n\t\t\t\t\tsubText={'Edit the link connected to the CTA button'}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t ]?.buttons\n\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t)\n\t\t\t\t?.filter((btn) => (pod !== POD.CHATBOT ? btn.type === 'URL' : true))\n\t\t\t\t?.map((btn, i) => {\n\t\t\t\t\tconst isStaticUrl = btn.buttonVariable === STATIC_URL_VARIABLE_NAME;\n\t\t\t\t\tconst isUnsubscribeUrl =\n\t\t\t\t\t\tbtn.buttonVariable === UNSUBSCRIBE_URL_VARIABLE;\n\t\t\t\t\tif (btn.type === 'URL') {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<WhatsAppTemplateCardButtonV2\n\t\t\t\t\t\t\t\tvariableListIndex={i}\n\t\t\t\t\t\t\t\tdisableEdit={isStaticUrl || isUnsubscribeUrl}\n\t\t\t\t\t\t\t\tCTAoptions={\n\t\t\t\t\t\t\t\t\twhatsappSpecificPickerMeta?.CTAoptions as ButtonPlaceHolderOptions[]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbutton={btn}\n\t\t\t\t\t\t\t\tkey={`${i}_${selectedCarouselIndex}`}\n\t\t\t\t\t\t\t\tcurrentVariableList={\n\t\t\t\t\t\t\t\t\tselectedCarouselIndex != undefined &&\n\t\t\t\t\t\t\t\t\tselectedCarouselIndex > -1\n\t\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\t\t...(\n\t\t\t\t\t\t\t\t\t\t\t\t\toriginalVariableList as WhatsAppCarouselTemplateVariables\n\t\t\t\t\t\t\t\t\t\t\t\t).cards[selectedCarouselIndex],\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t: { ...(originalVariableList as WhatsAppTemplateVariables) }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tupdateSelectedURLTemplateBtn={\n\t\t\t\t\t\t\t\t\tupdateSelectedTemplateURLBtn as URLBtnUpdateFunctionType\n\t\t\t\t\t\t\t\t}\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})}\n\n\t\t\t{/* If pod is chatbot and qrb button is there, Backtrack should be present */}\n\t\t\t{pod === POD.CHATBOT &&\n\t\t\t\tqrbBtns[0]?.component?.buttons &&\n\t\t\t\tqrbBtns[0]?.component?.buttons?.length > 0 && (\n\t\t\t\t\t<BackTrackComponent\n\t\t\t\t\t\tbackTrackMessage={extras?.backTrackExtra?.[0]}\n\t\t\t\t\t\tsetBackTrackMessage={extras?.backTrackExtra?.[1]}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t{!isRCSChannel(template?.channel) &&\n\t\t\t\t(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t\t ]?.buttons\n\t\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t\t)?.filter((btn) => btn.type === 'QUICK_REPLY')?.length > 0 &&\n\t\t\t\t(pod !== POD.CHATBOT ? (\n\t\t\t\t\t<VariableEditorHeader\n\t\t\t\t\t\theaderText={'Edit buttons'}\n\t\t\t\t\t\tsubText={'Edit the chatflows triggered on clicking the buttons'}\n\t\t\t\t\t\ttoolTipInfo={\n\t\t\t\t\t\t\t'There is an option to trigger chatflows through the buttons which can keep the user engaged'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<BackTrackComponent\n\t\t\t\t\t\tbackTrackMessage={extras?.backTrackExtra?.[0]}\n\t\t\t\t\t\tsetBackTrackMessage={extras?.backTrackExtra?.[1]}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\n\t\t\t{!isRCSChannel(template?.channel) &&\n\t\t\t\t(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t\t ]?.buttons\n\t\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t\t)\n\t\t\t\t\t?.filter((btn) => btn.type === 'QUICK_REPLY')\n\t\t\t\t\t?.map((btn, i) => {\n\t\t\t\t\t\tif (btn.type === 'QUICK_REPLY' && pod !== POD.CHATBOT) {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<WhatsAppTemplateCardButtonV2\n\t\t\t\t\t\t\t\t\tvariableListIndex={i}\n\t\t\t\t\t\t\t\t\tQRBoptions={\n\t\t\t\t\t\t\t\t\t\twhatsappSpecificPickerMeta?.QRBoptions as ButtonPlaceHolderOptions[]\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbutton={btn}\n\t\t\t\t\t\t\t\t\tkey={`${i}_${selectedCarouselIndex}`}\n\t\t\t\t\t\t\t\t\tcurrentVariableList={\n\t\t\t\t\t\t\t\t\t\tselectedCarouselIndex != undefined &&\n\t\t\t\t\t\t\t\t\t\tselectedCarouselIndex > -1\n\t\t\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\t\t\t...(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\toriginalVariableList as WhatsAppCarouselTemplateVariables\n\t\t\t\t\t\t\t\t\t\t\t\t\t).cards[selectedCarouselIndex],\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t...(originalVariableList as WhatsAppTemplateVariables),\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tupdateSelectedQRBTemplateBtn={\n\t\t\t\t\t\t\t\t\t\tupdateSelectedTemplateQRBBtn as QRBBtnUpdateFunctionType\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\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{pod === POD.CHATBOT && showDiscountCheckBox && (\n\t\t\t\t<DiscountCodeComponent\n\t\t\t\t\tdiscountCode={extras?.discountCodeExtra?.[0]}\n\t\t\t\t\tsetDiscountCode={extras?.discountCodeExtra?.[1]}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t ]?.buttons\n\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t)?.map((button, i) => {\n\t\t\t\tif (button.type === 'COPY_CODE') {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{disableCopyCode ? (\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 20,\n\t\t\t\t\t\t\t\t\t\tborderRadius: 4,\n\t\t\t\t\t\t\t\t\t\tpadding: '8px 10px',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\tstate={'disabled'}\n\t\t\t\t\t\t\t\t\t\tlabelText={button.text ?? 'Copy Code'}\n\t\t\t\t\t\t\t\t\t\tvalue={button.buttonVariable ?? ''}\n\t\t\t\t\t\t\t\t\t\tonChangeText={() => {\n\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<VariableConnector\n\t\t\t\t\t\t\t\t\tindex={i}\n\t\t\t\t\t\t\t\t\tvariable={{\n\t\t\t\t\t\t\t\t\t\tvariableName: button.text ?? 'Copy Code',\n\t\t\t\t\t\t\t\t\t\tupdatedValue: button.buttonVariable ?? '',\n\t\t\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\t\t\tisEditableVariable: true,\n\t\t\t\t\t\t\t\t\t\tindex: button.index ?? 0, // this index is respect to components -> buttons\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tkey={i}\n\t\t\t\t\t\t\t\t\tshowVariableModal={true}\n\t\t\t\t\t\t\t\t\tcomponentType={'BUTTONS'}\n\t\t\t\t\t\t\t\t\tbuttonType={button.type}\n\t\t\t\t\t\t\t\t/>\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}\n\t\t\t})}\n\t\t</Container>\n\t);\n};\n\nexport default EditWhatsAppTemplateV2;\n\nconst PdfContainer = styled.div`\n\tpadding-top: 24px;\n\tpadding-left: 10px;\n\tpadding-right: 10px;\n\tmargin-bottom: 8px;\n\tline-height: normal;\n`;\n"],"names":["EditWhatsAppTemplateV2","template","onTemplateChange","whatsappSpecificPickerMeta","showVariableModal","variableListForImage","setDiscountCode","fileName","setFileName","isCarouselType","originalVariableList","pod","extras","selectedCarouselIndex","isProductCarouselType","disableCopyCode","isError","cardIndex","useTemplateModalContext","descriptionComponents","urlBtns","qrbBtns","imageComponent","bodyVariables","headerVariables","titleVariables","getAllDataFromTemplateComponent","fileRef","useRef","showDiscountCheckBox","setShowDiscountCheckBox","useState","templateComponentData","setTemplateComponentData","uploadMediaLink","uploadMediaFiles","validateMimeType","useEditWhatsappTemplateMediaResponse","useEditWhatsappTemplateMedia","updateTemplateImageUrl","hasNewImageUpload","setHasNewImageUpload","enteredPdf","setEnteredPdf","pdfInputError","setPdfInputError","useEffect","button","currentCarousel","mediaComponent","url","format","localTemplate","imageComponentIndex","component","updatedComponent","components","templateCopy","cloneDeep","updateSelectedTemplateURLBtn","val","mode","btnIndex","tempCopy","selectedTemplate","isCustom","customValue","newComponent","isCarouselComponent","cardComponent","card","currentButton","btn","newButtonList","mappingButtonsComponent","index","newTemplate","btnComponentIndex","ctaBtns","btnComponent","mappingButtons","mapping","updateSelectedTemplateQRBBtn","qrbButtons","validatePdfName","isValid","validateInputName","validatePdfNameChatbot","isInvalid","validateInputNameChatbot","POD","_mediaComponent","jsx","Container","EditMediaModal","HEADER_TYPES","jsxs","isRCSChannel","EditTemplateMediaContainer","EditMediaV2","isVariable","PdfContainer","InputWithVariables","name","PickerType","Input","Fragment","VariableEditorHeader","descriptionComponent","i","VariableConnectorWhatsApp","isStaticUrl","STATIC_URL_VARIABLE_NAME","isUnsubscribeUrl","UNSUBSCRIBE_URL_VARIABLE","WhatsAppTemplateCardButtonV2","BackTrackComponent","DiscountCodeComponent","VariableConnector","styled"],"mappings":"8rCA2EMA,GAAyB,CAAC,CAC/B,SAAAC,EACA,iBAAAC,EACA,2BAAAC,EACA,kBAAAC,GACA,qBAAAC,EACA,gBAAAC,GACA,SAAAC,EACA,YAAAC,CACD,IAAmC,CAClC,MAAMC,EAAkBR,EAAsC,eACxD,CACL,qBAAAS,EACA,IAAAC,EACA,OAAAC,EACA,sBAAAC,EACA,sBAAAC,EACA,gBAAAC,GACA,QAAAC,EACA,UAAAC,CAAA,EACGC,2BAAA,EACE,CACL,sBAAAC,GACA,QAAAC,GACA,QAAAC,EACA,eAAAC,EACA,cAAAC,GACA,gBAAAC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AAAA;AAAA;AAAA;AAAA;AAAA"}
1
+ {"version":3,"file":"EditWhatsAppTemplateV2.js","sources":["../../../../../src/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.tsx"],"sourcesContent":["import { PickerType } from '@src/helpers';\nimport cloneDeep from 'lodash/cloneDeep';\nimport { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport type { VariableListInterfaceV2 } from '@src/components/add-variableV2/AddVariableV2';\nimport { Input } from '@src/components/input';\nimport { InputWithVariables } from '@src/components/input-with-vars';\nimport {\n\tisCarouselComponent,\n\tisRCSChannel,\n} from '@src/components/template-preview/helpers/templateMiscHelper';\nimport type { EmailTemplateType } from '@src/components/template-preview/models/EmailTemplate';\nimport type { SMSTemplateType } from '@src/components/template-preview/models/SmsTemplate';\nimport {\n\tButtonPlaceHolderOptions,\n\tHEADER_TYPES,\n} from '@src/components/template-preview/models/TemplateMeta';\nimport type {\n\tWhatsAppCarouselTemplate,\n\tWhatsAppCarouselTemplateVariables,\n} from '@src/components/template-preview/models/WhatsappCarouselTemplate';\nimport {\n\ttype CTABtnValType,\n\tPOD,\n\ttype QRBBtnValType,\n} from '@src/components/template-preview/models/WhatsAppTemplate';\nimport {\n\ttype WhatsAppPickerMeta,\n\ttype WhatsAppTemplate,\n\ttype WhatsAppTemplateVariables,\n} from '@src/components/template-preview/models/WhatsAppTemplate';\nimport { useTemplateModalContext } from '../context/templateModalContext';\nimport {\n\tSTATIC_URL_VARIABLE_NAME,\n\tUNSUBSCRIBE_URL_VARIABLE,\n} from '../utils/constants';\nimport { getAllDataFromTemplateComponent } from '../utils/getDataFromTemplateComponent';\nimport { isVariable } from '../utils/validateIsUrl';\nimport {\n\tvalidateInputName,\n\tvalidateInputNameChatbot,\n} from '../utils/validateName';\nimport { BackTrackComponent } from './BackTrackComponent';\nimport { DiscountCodeComponent } from './DiscountCodeComponent';\nimport EditMediaModal from './EditMediaModal';\nimport EditMediaV2 from './EditMediaV2';\nimport { EditTemplateMediaContainer } from './EditMediaV2.style';\nimport { useEditWhatsappTemplateMedia } from './useEditWhtasappTemplateMedia';\nimport VariableConnector from './VariableConnector';\nimport { Container } from './VariableConnectorsPanel';\nimport VariableConnectorWhatsApp from './VariableConnectorWhatsApp';\nimport VariableEditorHeader from './VariableEditorHeader';\nimport WhatsAppTemplateCardButtonV2, {\n\tQRBBtnUpdateFunctionType,\n\tURLBtnUpdateFunctionType,\n} from './WhatsAppTemplateCardButtonV2';\n\nexport interface EditWhatsAppTemplateV2Props {\n\twhatsappSpecificPickerMeta?: WhatsAppPickerMeta;\n\ttemplate: WhatsAppTemplate | WhatsAppCarouselTemplate;\n\tonTemplateChange?: (\n\t\ttemplate:\n\t\t\t| WhatsAppTemplate\n\t\t\t| EmailTemplateType\n\t\t\t| SMSTemplateType\n\t\t\t| WhatsAppCarouselTemplate,\n\t) => void;\n\tshowVariableModal?: boolean;\n\tvariableListForImage?: VariableListInterfaceV2[];\n\tdiscountCode?: string;\n\tsetDiscountCode?: (code: string) => void;\n\tfileName?: string;\n\tsetFileName?: (name: string) => void;\n}\n\nconst EditWhatsAppTemplateV2 = ({\n\ttemplate,\n\tonTemplateChange,\n\twhatsappSpecificPickerMeta,\n\tshowVariableModal,\n\tvariableListForImage,\n\tsetDiscountCode,\n\tfileName,\n\tsetFileName,\n}: EditWhatsAppTemplateV2Props) => {\n\tconst isCarouselType = (template as WhatsAppCarouselTemplate).isCarouselType;\n\tconst {\n\t\toriginalVariableList,\n\t\tpod,\n\t\textras,\n\t\tselectedCarouselIndex,\n\t\tisProductCarouselType,\n\t\tdisableCopyCode,\n\t\tisError,\n\t\tcardIndex,\n\t} = useTemplateModalContext();\n\tconst {\n\t\tdescriptionComponents,\n\t\turlBtns,\n\t\tqrbBtns,\n\t\timageComponent,\n\t\tbodyVariables,\n\t\theaderVariables,\n\t\ttitleVariables,\n\t} = getAllDataFromTemplateComponent(template as WhatsAppTemplate);\n\n\tconst fileRef = useRef<HTMLInputElement>(null);\n\n\tconst [showDiscountCheckBox, setShowDiscountCheckBox] =\n\t\tuseState<boolean>(false);\n\tconst [templateComponentData, setTemplateComponentData] = useState<any>(\n\t\tselectedCarouselIndex === -1\n\t\t\t? {\n\t\t\t\t\tdescriptionComponents,\n\t\t\t\t\turlBtns,\n\t\t\t\t\tqrbBtns,\n\t\t\t\t\timageComponent,\n\t\t\t\t\tbodyVariables,\n\t\t\t\t\theaderVariables,\n\t\t\t\t\ttitleVariables,\n\t\t\t }\n\t\t\t: {},\n\t);\n\n\tconst { uploadMediaLink, uploadMediaFiles, validateMimeType } =\n\t\twhatsappSpecificPickerMeta as WhatsAppPickerMeta;\n\n\tconst useEditWhatsappTemplateMediaResponse = useEditWhatsappTemplateMedia({\n\t\tuploadMediaLink,\n\t\tuploadMediaFiles,\n\t\tupdateTemplateImageUrl,\n\t\tvalidateMimeType,\n\t\tmediaComponent: !isCarouselType\n\t\t\t? imageComponent\n\t\t\t: templateComponentData.imageComponent,\n\t\tfileRef,\n\t});\n\n\tconst [hasNewImageUpload, setHasNewImageUpload] = useState<boolean>(false);\n\tconst [enteredPdf, setEnteredPdf] = useState(fileName);\n\tconst [pdfInputError, setPdfInputError] = useState<string | undefined>();\n\n\t/**\n\t * Whenever template changes, check if we have Checkout URL in the button mapping.\n\t * If yes, show discount check box\n\t */\n\tuseEffect(() => {\n\t\tconst discountCheckboxEnabled = template.mapping.buttons?.find(\n\t\t\t(button) => button.slice(2, -2) === 'checkout.checkoutUrl',\n\t\t);\n\t\tif (discountCheckboxEnabled) {\n\t\t\tsetShowDiscountCheckBox(true);\n\t\t} else {\n\t\t\tsetShowDiscountCheckBox(false);\n\t\t\tconst setDiscountCode = extras?.discountCodeExtra?.[1];\n\t\t\tsetDiscountCode?.('');\n\t\t}\n\t}, [template]);\n\n\tuseEffect(() => {\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tconst currentCarousel = {\n\t\t\t\tcomponents: (template as WhatsAppCarouselTemplate).components[cardIndex]\n\t\t\t\t\t?.cards?.[selectedCarouselIndex].components,\n\t\t\t\tmapping: (template as WhatsAppCarouselTemplate)?.mapping?.cards?.[\n\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t],\n\t\t\t};\n\t\t\tconst {\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t} = getAllDataFromTemplateComponent(currentCarousel as WhatsAppTemplate);\n\n\t\t\tsetTemplateComponentData({\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t});\n\t\t} else if (\n\t\t\tselectedCarouselIndex != undefined &&\n\t\t\tselectedCarouselIndex === -1\n\t\t) {\n\t\t\tconst {\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent: mediaComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t} = getAllDataFromTemplateComponent(template as WhatsAppTemplate);\n\t\t\tsetTemplateComponentData({\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent: mediaComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t});\n\t\t}\n\t}, [selectedCarouselIndex]);\n\n\tuseEffect(() => {\n\t\tif (\n\t\t\tselectedCarouselIndex != undefined &&\n\t\t\tselectedCarouselIndex > -1 &&\n\t\t\thasNewImageUpload\n\t\t) {\n\t\t\tconst currentCarousel = {\n\t\t\t\tcomponents: (template as WhatsAppCarouselTemplate).components[cardIndex]\n\t\t\t\t\t?.cards?.[selectedCarouselIndex].components,\n\t\t\t\tmapping: (template as WhatsAppCarouselTemplate)?.mapping?.cards?.[\n\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t],\n\t\t\t};\n\t\t\tconst {\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t} = getAllDataFromTemplateComponent(currentCarousel as WhatsAppTemplate);\n\n\t\t\tsetTemplateComponentData({\n\t\t\t\tdescriptionComponents,\n\t\t\t\turlBtns,\n\t\t\t\tqrbBtns,\n\t\t\t\timageComponent,\n\t\t\t\tbodyVariables,\n\t\t\t\theaderVariables,\n\t\t\t\ttitleVariables,\n\t\t\t});\n\t\t\tsetHasNewImageUpload(false);\n\t\t}\n\t}, [hasNewImageUpload]);\n\n\tfunction updateTemplateImageUrl(\n\t\turl: string,\n\t\tformat: WhatsAppTemplate['components'][0]['format'],\n\t) {\n\t\tlet localTemplate: any;\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tlocalTemplate = {\n\t\t\t\tcomponents: (template as WhatsAppCarouselTemplate).components[cardIndex]\n\t\t\t\t\t?.cards?.[selectedCarouselIndex].components,\n\t\t\t\tmapping: (template as WhatsAppCarouselTemplate)?.mapping?.cards?.[\n\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t],\n\t\t\t};\n\t\t} else {\n\t\t\tlocalTemplate = { ...template };\n\t\t}\n\n\t\tconst imageComponentIndex = localTemplate?.components?.findIndex(\n\t\t\t(component) => {\n\t\t\t\tif (\n\t\t\t\t\tcomponent.type === 'HEADER' &&\n\t\t\t\t\tcomponent.format !== 'NONE' &&\n\t\t\t\t\tcomponent.format !== 'TEXT'\n\t\t\t\t) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t},\n\t\t);\n\n\t\tif (\n\t\t\ttypeof imageComponentIndex !== 'undefined' &&\n\t\t\timageComponentIndex > -1 &&\n\t\t\tlocalTemplate?.components[imageComponentIndex]\n\t\t) {\n\t\t\tconst updatedComponent: WhatsAppTemplate['components'][0] = {\n\t\t\t\t...localTemplate.components[imageComponentIndex],\n\t\t\t\tformat,\n\t\t\t\texample: {\n\t\t\t\t\theader_handle: [url],\n\t\t\t\t},\n\t\t\t};\n\n\t\t\tconst components = [...localTemplate.components];\n\t\t\tcomponents[imageComponentIndex] = updatedComponent;\n\t\t\tlocalTemplate = { ...localTemplate, components };\n\t\t}\n\n\t\tif (localTemplate.mapping) {\n\t\t\tlocalTemplate.mapping = {\n\t\t\t\t...localTemplate.mapping,\n\t\t\t\theader: undefined,\n\t\t\t};\n\t\t}\n\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tconst templateCopy = cloneDeep(template as WhatsAppCarouselTemplate);\n\t\t\ttemplateCopy.components[cardIndex].cards![\n\t\t\t\tselectedCarouselIndex\n\t\t\t].components = localTemplate.components;\n\t\t\tif (\n\t\t\t\ttemplateCopy?.mapping?.cards &&\n\t\t\t\ttemplateCopy?.mapping?.cards.length > 0\n\t\t\t) {\n\t\t\t\ttemplateCopy.mapping.cards![selectedCarouselIndex] =\n\t\t\t\t\tlocalTemplate.mapping ?? {};\n\t\t\t}\n\t\t\tonTemplateChange?.({ ...templateCopy });\n\t\t\tsetHasNewImageUpload(true);\n\t\t} else {\n\t\t\tonTemplateChange?.({ ...localTemplate });\n\t\t}\n\t}\n\n\tfunction updateSelectedTemplateURLBtn(\n\t\tval: CTABtnValType,\n\t\tmode: 'custom' | 'placeholder',\n\t\tbtnIndex: number,\n\t) {\n\t\tconst tempCopy =\n\t\t\tselectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? {\n\t\t\t\t\t\tcomponents: ({ ...template } as WhatsAppCarouselTemplate)\n\t\t\t\t\t\t\t.components[cardIndex].cards?.[selectedCarouselIndex]\n\t\t\t\t\t\t\t.components as any,\n\t\t\t\t\t\tmapping: ({ ...template } as WhatsAppCarouselTemplate).mapping\n\t\t\t\t\t\t\t.cards?.[selectedCarouselIndex],\n\t\t\t\t }\n\t\t\t\t: { ...template };\n\t\tconst selectedTemplate = cloneDeep(tempCopy);\n\n\t\tconst isCustom = mode === 'custom' && typeof val === 'string';\n\t\tconst customValue = isCustom\n\t\t\t? val\n\t\t\t: typeof val !== 'string'\n\t\t\t? val.defaultValue\n\t\t\t\t? val.defaultValue\n\t\t\t\t: 'https://d.bik.ai/'\n\t\t\t: 'https://d.bik.ai';\n\t\tif (\n\t\t\tselectedCarouselIndex != undefined &&\n\t\t\tselectedCarouselIndex > -1 &&\n\t\t\tisProductCarouselType\n\t\t) {\n\t\t\tconst newComponent = {\n\t\t\t\t...(template as WhatsAppCarouselTemplate),\n\t\t\t}.components.map((component) => {\n\t\t\t\tif (isCarouselComponent(component.type)) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...component,\n\t\t\t\t\t\tcards: component.cards?.map((cardComponent) => {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...cardComponent,\n\t\t\t\t\t\t\t\tcomponents: cardComponent.components.map((card) => {\n\t\t\t\t\t\t\t\t\tif (card.type === 'BUTTONS') {\n\t\t\t\t\t\t\t\t\t\tconst ctaBtns = card.buttons?.filter(\n\t\t\t\t\t\t\t\t\t\t\t(btn) => btn.type === 'URL',\n\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\tlet currentButton: any = ctaBtns?.[btnIndex] ?? {};\n\t\t\t\t\t\t\t\t\t\tcurrentButton = {\n\t\t\t\t\t\t\t\t\t\t\t...currentButton,\n\t\t\t\t\t\t\t\t\t\t\turl: 'https://d.bik.ai/{{1}}',\n\t\t\t\t\t\t\t\t\t\t\texample: [customValue],\n\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\tconst newButtonList = card.buttons?.map((btn) => {\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\tbtn.type === 'URL' &&\n\t\t\t\t\t\t\t\t\t\t\t\tbtn?.text === currentButton?.text\n\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn currentButton;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\treturn btn;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t...card,\n\t\t\t\t\t\t\t\t\t\t\tbuttons: newButtonList,\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\treturn card;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\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} else {\n\t\t\t\t\treturn component;\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst mappingButtonsComponent = {\n\t\t\t\t...(template as WhatsAppCarouselTemplate),\n\t\t\t}.mapping?.cards?.map((card) => {\n\t\t\t\treturn {\n\t\t\t\t\t...card,\n\t\t\t\t\tbuttons: card?.buttons?.map((button, index: number) => {\n\t\t\t\t\t\tif (index === btnIndex) {\n\t\t\t\t\t\t\treturn isCustom\n\t\t\t\t\t\t\t\t? '((customBtnPlaceholder))'\n\t\t\t\t\t\t\t\t: typeof val !== 'string'\n\t\t\t\t\t\t\t\t? val.placeHolder\n\t\t\t\t\t\t\t\t: '';\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn button;\n\t\t\t\t\t}),\n\t\t\t\t};\n\t\t\t});\n\t\t\tconst newTemplate = cloneDeep(template as WhatsAppCarouselTemplate);\n\t\t\tnewTemplate.components = newComponent as any;\n\t\t\tnewTemplate.mapping.cards = mappingButtonsComponent;\n\t\t\tonTemplateChange?.({ ...newTemplate });\n\t\t\treturn;\n\t\t}\n\n\t\tconst btnComponentIndex = selectedTemplate?.components.findIndex(\n\t\t\t(component) => component.type === 'BUTTONS',\n\t\t);\n\n\t\tif (typeof btnComponentIndex !== 'undefined' && btnComponentIndex > -1) {\n\t\t\tconst ctaBtns = selectedTemplate?.components[\n\t\t\t\tbtnComponentIndex\n\t\t\t].buttons?.filter((btn) => btn.type === 'URL');\n\n\t\t\tif (ctaBtns?.length > 0) {\n\t\t\t\tconst isCustom = mode === 'custom' && typeof val === 'string';\n\t\t\t\tconst customValue = isCustom\n\t\t\t\t\t? val\n\t\t\t\t\t: typeof val !== 'string'\n\t\t\t\t\t? val.defaultValue\n\t\t\t\t\t\t? val.defaultValue\n\t\t\t\t\t\t: 'https://d.bik.ai/'\n\t\t\t\t\t: 'https://d.bik.ai/';\n\n\t\t\t\tlet currentButton = ctaBtns[btnIndex];\n\t\t\t\tcurrentButton = {\n\t\t\t\t\t...currentButton,\n\t\t\t\t\turl: 'https://d.bik.ai/{{1}}',\n\t\t\t\t\texample: [customValue],\n\t\t\t\t};\n\n\t\t\t\tconst buttons = [\n\t\t\t\t\t...(selectedTemplate.components?.[btnComponentIndex]?.buttons ?? []),\n\t\t\t\t];\n\t\t\t\tconst newButtonList = buttons.map((btn) => {\n\t\t\t\t\tif (btn.type === 'URL' && btn?.text === currentButton?.text) {\n\t\t\t\t\t\treturn currentButton;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn btn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tconst btnComponent = {\n\t\t\t\t\t...selectedTemplate.components[btnComponentIndex],\n\t\t\t\t\tbuttons: newButtonList,\n\t\t\t\t};\n\n\t\t\t\tconst mappingButtons = selectedTemplate.mapping?.buttons;\n\n\t\t\t\tif (mappingButtons && mappingButtons.length > 0) {\n\t\t\t\t\tmappingButtons[btnIndex] = isCustom\n\t\t\t\t\t\t? '((customBtnPlaceholder))'\n\t\t\t\t\t\t: typeof val !== 'string'\n\t\t\t\t\t\t? val.placeHolder\n\t\t\t\t\t\t: '';\n\t\t\t\t}\n\n\t\t\t\tconst mapping = {\n\t\t\t\t\t...selectedTemplate.mapping,\n\t\t\t\t\tbuttons: mappingButtons,\n\t\t\t\t};\n\n\t\t\t\tselectedTemplate.mapping = mapping;\n\t\t\t\tconst components = [...selectedTemplate.components];\n\t\t\t\tcomponents[btnComponentIndex] = btnComponent;\n\t\t\t\tselectedTemplate.components = components;\n\t\t\t}\n\t\t}\n\n\t\tif (typeof val !== 'string') {\n\t\t\tconst discountCheckBoxEnabled =\n\t\t\t\tval.placeHolder?.slice(2, -2) === 'checkout.checkoutUrl';\n\t\t\tif (discountCheckBoxEnabled) {\n\t\t\t\tsetShowDiscountCheckBox(true);\n\t\t\t} else {\n\t\t\t\tsetShowDiscountCheckBox(false);\n\t\t\t\tsetDiscountCode?.('');\n\t\t\t}\n\t\t}\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tconst templateCopy = cloneDeep(template as WhatsAppCarouselTemplate);\n\t\t\ttemplateCopy.components[cardIndex].cards![\n\t\t\t\tselectedCarouselIndex\n\t\t\t].components = selectedTemplate.components;\n\t\t\ttemplateCopy.mapping.cards![selectedCarouselIndex] =\n\t\t\t\tselectedTemplate.mapping!;\n\t\t\tonTemplateChange?.({ ...templateCopy });\n\t\t} else {\n\t\t\tonTemplateChange?.(selectedTemplate as WhatsAppTemplate);\n\t\t}\n\t}\n\n\tfunction updateSelectedTemplateQRBBtn(\n\t\tval: QRBBtnValType,\n\t\tmode: 'custom' | 'placeholder',\n\t\tbtnIndex: number,\n\t) {\n\t\tconst selectedTemplate =\n\t\t\tselectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? {\n\t\t\t\t\t\tcomponents: ({ ...template } as WhatsAppCarouselTemplate)\n\t\t\t\t\t\t\t.components[cardIndex].cards?.[selectedCarouselIndex]\n\t\t\t\t\t\t\t.components as any,\n\t\t\t\t\t\tmapping: ({ ...template } as WhatsAppCarouselTemplate).mapping\n\t\t\t\t\t\t\t.cards?.[selectedCarouselIndex],\n\t\t\t\t }\n\t\t\t\t: { ...template };\n\n\t\tif (\n\t\t\tselectedCarouselIndex != undefined &&\n\t\t\tselectedCarouselIndex > -1 &&\n\t\t\tisProductCarouselType\n\t\t) {\n\t\t\tconst newComponent = {\n\t\t\t\t...(template as WhatsAppCarouselTemplate),\n\t\t\t}.components.map((component) => {\n\t\t\t\tif (isCarouselComponent(component.type)) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...component,\n\t\t\t\t\t\tcards: component.cards?.map((cardComponent) => {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...cardComponent,\n\t\t\t\t\t\t\t\tcomponents: cardComponent.components.map((card) => {\n\t\t\t\t\t\t\t\t\tif (card.type === 'BUTTONS') {\n\t\t\t\t\t\t\t\t\t\tconst qrbButtons = card?.buttons?.filter(\n\t\t\t\t\t\t\t\t\t\t\t(btn) => btn.type === 'QUICK_REPLY',\n\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\tlet currentButton: any = qrbButtons?.[btnIndex] ?? {};\n\t\t\t\t\t\t\t\t\t\tcurrentButton = {\n\t\t\t\t\t\t\t\t\t\t\t...currentButton,\n\t\t\t\t\t\t\t\t\t\t\tflowId: val.flowId,\n\t\t\t\t\t\t\t\t\t\t\tflowName: val.flowName,\n\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\tconst newButtonList = card?.buttons?.map((btn) => {\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\tbtn.type === 'QUICK_REPLY' &&\n\t\t\t\t\t\t\t\t\t\t\t\tbtn?.text === currentButton?.text\n\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn currentButton;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\treturn btn;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t...card,\n\t\t\t\t\t\t\t\t\t\t\tbuttons: newButtonList,\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\treturn card;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\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} else {\n\t\t\t\t\treturn component;\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst newTemplate = cloneDeep(template);\n\t\t\tnewTemplate.components = newComponent as any;\n\t\t\tonTemplateChange?.({ ...newTemplate });\n\t\t\treturn;\n\t\t}\n\n\t\tconst btnComponentIndex = selectedTemplate?.components.findIndex(\n\t\t\t(component) => component.type === 'BUTTONS',\n\t\t);\n\t\tif (typeof btnComponentIndex !== 'undefined' && btnComponentIndex > -1) {\n\t\t\tconst qrbButtons = selectedTemplate?.components[\n\t\t\t\tbtnComponentIndex\n\t\t\t]?.buttons?.filter((btn) => btn.type === 'QUICK_REPLY');\n\n\t\t\tif (qrbButtons) {\n\t\t\t\tlet currentButton = qrbButtons[btnIndex];\n\t\t\t\tcurrentButton = {\n\t\t\t\t\t...currentButton,\n\t\t\t\t\tflowId: val.flowId,\n\t\t\t\t\tflowName: val.flowName,\n\t\t\t\t};\n\n\t\t\t\tconst buttons = [\n\t\t\t\t\t...(selectedTemplate.components?.[btnComponentIndex]?.buttons ?? []),\n\t\t\t\t];\n\n\t\t\t\tconst newButtonList = buttons.map((btn) => {\n\t\t\t\t\tif (btn.type === 'QUICK_REPLY' && btn?.text === currentButton?.text) {\n\t\t\t\t\t\treturn currentButton;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn btn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tconst btnComponent = {\n\t\t\t\t\t...selectedTemplate.components[btnComponentIndex],\n\t\t\t\t\tbuttons: newButtonList,\n\t\t\t\t};\n\t\t\t\tconst components = [...selectedTemplate.components];\n\t\t\t\tcomponents[btnComponentIndex] = btnComponent;\n\t\t\t\tselectedTemplate.components = components;\n\t\t\t}\n\t\t}\n\t\tif (selectedCarouselIndex != undefined && selectedCarouselIndex > -1) {\n\t\t\tconst templateCopy = cloneDeep(template as WhatsAppCarouselTemplate);\n\t\t\ttemplateCopy.components[cardIndex].cards![\n\t\t\t\tselectedCarouselIndex\n\t\t\t].components = selectedTemplate.components;\n\t\t\tonTemplateChange?.({ ...templateCopy });\n\t\t} else {\n\t\t\tonTemplateChange?.(selectedTemplate as WhatsAppTemplate);\n\t\t}\n\t}\n\n\tconst validatePdfName = () => {\n\t\tif (!enteredPdf) {\n\t\t\tsetFileName?.('');\n\t\t\tsetPdfInputError('PDF name is Required');\n\t\t\treturn;\n\t\t}\n\t\tconst isValid = validateInputName(enteredPdf);\n\t\tsetFileName?.(enteredPdf);\n\n\t\tif (isValid) {\n\t\t\tsetPdfInputError('Please enter a valid PDF name');\n\t\t\treturn;\n\t\t}\n\t\tsetPdfInputError(undefined);\n\t};\n\n\tconst validatePdfNameChatbot = () => {\n\t\tif (!fileName) {\n\t\t\tsetPdfInputError('PDF name is Required');\n\t\t\treturn;\n\t\t}\n\t\tconst isInvalid = validateInputNameChatbot(fileName);\n\n\t\tsetFileName?.(fileName ?? '');\n\t\tif (isInvalid) {\n\t\t\tsetPdfInputError('Please enter a valid PDF name');\n\t\t\treturn;\n\t\t}\n\t\tsetPdfInputError(undefined);\n\t};\n\n\tuseEffect(() => {\n\t\tif (isError && pod === POD.CHATBOT) {\n\t\t\tvalidatePdfNameChatbot();\n\t\t}\n\t}, [isError]);\n\n\tconst _mediaComponent = !isCarouselType\n\t\t? imageComponent\n\t\t: templateComponentData.imageComponent;\n\n\tif (useEditWhatsappTemplateMediaResponse.openEditMedia) {\n\t\treturn (\n\t\t\t<Container\n\t\t\t\tstyle={{\n\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\twidth: 400,\n\t\t\t\t\tmaxHeight: 460,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<EditMediaModal\n\t\t\t\t\tmediaComponentFormat={_mediaComponent.format ?? HEADER_TYPES.IMAGE}\n\t\t\t\t\tuploadMedia={useEditWhatsappTemplateMediaResponse.uploadMedia}\n\t\t\t\t\tvariableListForImage={variableListForImage || []}\n\t\t\t\t\tuseEditWhatsappTemplateMediaResponse={\n\t\t\t\t\t\tuseEditWhatsappTemplateMediaResponse\n\t\t\t\t\t}\n\t\t\t\t\tsetOpenEditMedia={\n\t\t\t\t\t\tuseEditWhatsappTemplateMediaResponse.setOpenEditMedia\n\t\t\t\t\t}\n\t\t\t\t\topenEditMedia={useEditWhatsappTemplateMediaResponse.openEditMedia}\n\t\t\t\t\teditIconRef={useEditWhatsappTemplateMediaResponse.editIconRef}\n\t\t\t\t\tfileRef={fileRef}\n\t\t\t\t/>\n\t\t\t</Container>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Container\n\t\t\tstyle={{\n\t\t\t\tflexDirection: 'column',\n\t\t\t\twidth: 400,\n\t\t\t\tmaxHeight: 460,\n\t\t\t\tminWidth: isProductCarouselType ? '420px' : 'auto',\n\t\t\t}}\n\t\t>\n\t\t\t{!!templateComponentData.imageComponent &&\n\t\t\t\t!isProductCarouselType &&\n\t\t\t\t!isRCSChannel(template?.channel) && (\n\t\t\t\t\t<EditTemplateMediaContainer>\n\t\t\t\t\t\t<EditMediaV2\n\t\t\t\t\t\t\timageName={_mediaComponent?.example?.header_handle ?? []}\n\t\t\t\t\t\t\thandleImageChange={\n\t\t\t\t\t\t\t\tuseEditWhatsappTemplateMediaResponse.handleImageChange\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmediaType={_mediaComponent?.format}\n\t\t\t\t\t\t\terror={useEditWhatsappTemplateMediaResponse.error}\n\t\t\t\t\t\t\tisLoading={useEditWhatsappTemplateMediaResponse.loading}\n\t\t\t\t\t\t\tsetOpenEditMedia={\n\t\t\t\t\t\t\t\tuseEditWhatsappTemplateMediaResponse.setOpenEditMedia\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tselectedVariable={\n\t\t\t\t\t\t\t\tisVariable(_mediaComponent?.example?.header_handle?.[0] ?? '')\n\t\t\t\t\t\t\t\t\t? _mediaComponent?.example?.header_handle?.[0]\n\t\t\t\t\t\t\t\t\t: template?.mapping?.header?.[0]\n\t\t\t\t\t\t\t\t\t? template?.mapping?.header?.[0]\n\t\t\t\t\t\t\t\t\t: useEditWhatsappTemplateMediaResponse.selectedVariable\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{imageComponent?.['format'] == HEADER_TYPES.DOCUMENT ? (\n\t\t\t\t\t\t\t<PdfContainer>\n\t\t\t\t\t\t\t\t{pod === POD.CHATBOT ? (\n\t\t\t\t\t\t\t\t\t<InputWithVariables\n\t\t\t\t\t\t\t\t\t\tlabelText=\"PDF Name\"\n\t\t\t\t\t\t\t\t\t\tplaceHolder={'Enter the name'}\n\t\t\t\t\t\t\t\t\t\terrorMessage={pdfInputError ? pdfInputError : undefined}\n\t\t\t\t\t\t\t\t\t\tonChange={(name) => {\n\t\t\t\t\t\t\t\t\t\t\tsetPdfInputError('');\n\t\t\t\t\t\t\t\t\t\t\tsetFileName?.(name?.actualValue ?? '');\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tpickerType={PickerType.EMBEDDED}\n\t\t\t\t\t\t\t\t\t\tnoMaxCharCheck={true}\n\t\t\t\t\t\t\t\t\t\tallowMix={true}\n\t\t\t\t\t\t\t\t\t\tshowVarHeader\n\t\t\t\t\t\t\t\t\t\tvarHeaderText=\"Select variable\"\n\t\t\t\t\t\t\t\t\t\tprevVariable={{\n\t\t\t\t\t\t\t\t\t\t\tactualValue: fileName ?? '',\n\t\t\t\t\t\t\t\t\t\t\tvariableType: 'string',\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tvariablesList={variableListForImage}\n\t\t\t\t\t\t\t\t\t\tshowAddButton={true}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\tlabelText=\"PDF Name\"\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Enter the name\"\n\t\t\t\t\t\t\t\t\t\tvalue={enteredPdf}\n\t\t\t\t\t\t\t\t\t\terrorMessage={pdfInputError ? pdfInputError : undefined}\n\t\t\t\t\t\t\t\t\t\tonBlur={validatePdfName}\n\t\t\t\t\t\t\t\t\t\tonChangeText={(name) => {\n\t\t\t\t\t\t\t\t\t\t\tsetPdfInputError('');\n\t\t\t\t\t\t\t\t\t\t\tsetEnteredPdf(name);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</PdfContainer>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<></>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</EditTemplateMediaContainer>\n\t\t\t\t)}\n\n\t\t\t{templateComponentData.bodyVariables?.length > 0 && (\n\t\t\t\t<VariableEditorHeader\n\t\t\t\t\tcontainerStyle={{\n\t\t\t\t\t\tpaddingTop: templateComponentData.mediaComponent ? 24 : 8,\n\t\t\t\t\t}}\n\t\t\t\t\theaderText={'Edit variable values'}\n\t\t\t\t\tsubText={'Edit values for the variables used in template'}\n\t\t\t\t\ttoolTipInfo={\n\t\t\t\t\t\t'Variables are placeholder texts which can either be filled through data or custom texts. These can be edited through the dropdowns below'\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{templateComponentData.descriptionComponents?.map(\n\t\t\t\t(descriptionComponent, i) => (\n\t\t\t\t\t<VariableConnectorWhatsApp\n\t\t\t\t\t\toriginalVariableList={\n\t\t\t\t\t\t\tselectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables)\n\t\t\t\t\t\t\t\t\t\t.cards[selectedCarouselIndex]\n\t\t\t\t\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttype={descriptionComponent.type}\n\t\t\t\t\t\tdescriptionComponent={descriptionComponent.component}\n\t\t\t\t\t\tkey={i}\n\t\t\t\t\t\tshowVariableModal={showVariableModal}\n\t\t\t\t\t/>\n\t\t\t\t),\n\t\t\t)}\n\n\t\t\t{(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t ]?.buttons\n\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t)?.filter((btn) => btn.type === 'URL')?.length > 0 && (\n\t\t\t\t<VariableEditorHeader\n\t\t\t\t\theaderText={'Edit buttons'}\n\t\t\t\t\tsubText={'Edit the link connected to the CTA button'}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t ]?.buttons\n\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t)\n\t\t\t\t?.filter((btn) => (pod !== POD.CHATBOT ? btn.type === 'URL' : true))\n\t\t\t\t?.map((btn, i) => {\n\t\t\t\t\tconst isStaticUrl = btn.buttonVariable === STATIC_URL_VARIABLE_NAME;\n\t\t\t\t\tconst isUnsubscribeUrl =\n\t\t\t\t\t\tbtn.buttonVariable === UNSUBSCRIBE_URL_VARIABLE;\n\t\t\t\t\tif (btn.type === 'URL') {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<WhatsAppTemplateCardButtonV2\n\t\t\t\t\t\t\t\tvariableListIndex={i}\n\t\t\t\t\t\t\t\tdisableEdit={isStaticUrl || isUnsubscribeUrl}\n\t\t\t\t\t\t\t\tCTAoptions={\n\t\t\t\t\t\t\t\t\twhatsappSpecificPickerMeta?.CTAoptions as ButtonPlaceHolderOptions[]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbutton={btn}\n\t\t\t\t\t\t\t\tkey={`${i}_${selectedCarouselIndex}`}\n\t\t\t\t\t\t\t\tcurrentVariableList={\n\t\t\t\t\t\t\t\t\tselectedCarouselIndex != undefined &&\n\t\t\t\t\t\t\t\t\tselectedCarouselIndex > -1\n\t\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\t\t...(\n\t\t\t\t\t\t\t\t\t\t\t\t\toriginalVariableList as WhatsAppCarouselTemplateVariables\n\t\t\t\t\t\t\t\t\t\t\t\t).cards[selectedCarouselIndex],\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t: { ...(originalVariableList as WhatsAppTemplateVariables) }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tupdateSelectedURLTemplateBtn={\n\t\t\t\t\t\t\t\t\tupdateSelectedTemplateURLBtn as URLBtnUpdateFunctionType\n\t\t\t\t\t\t\t\t}\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})}\n\n\t\t\t{/* If pod is chatbot and qrb button is there, Backtrack should be present */}\n\t\t\t{pod === POD.CHATBOT &&\n\t\t\t\tqrbBtns[0]?.component?.buttons &&\n\t\t\t\tqrbBtns[0]?.component?.buttons?.length > 0 && (\n\t\t\t\t\t<BackTrackComponent\n\t\t\t\t\t\tbackTrackMessage={extras?.backTrackExtra?.[0]}\n\t\t\t\t\t\tsetBackTrackMessage={extras?.backTrackExtra?.[1]}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t{!isRCSChannel(template?.channel) &&\n\t\t\t\t(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t\t ]?.buttons\n\t\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t\t)?.filter((btn) => btn.type === 'QUICK_REPLY')?.length > 0 &&\n\t\t\t\t(pod !== POD.CHATBOT ? (\n\t\t\t\t\t<VariableEditorHeader\n\t\t\t\t\t\theaderText={'Edit buttons'}\n\t\t\t\t\t\tsubText={'Edit the chatflows triggered on clicking the buttons'}\n\t\t\t\t\t\ttoolTipInfo={\n\t\t\t\t\t\t\t'There is an option to trigger chatflows through the buttons which can keep the user engaged'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<BackTrackComponent\n\t\t\t\t\t\tbackTrackMessage={extras?.backTrackExtra?.[0]}\n\t\t\t\t\t\tsetBackTrackMessage={extras?.backTrackExtra?.[1]}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\n\t\t\t{!isRCSChannel(template?.channel) &&\n\t\t\t\t(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t\t ]?.buttons\n\t\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t\t)\n\t\t\t\t\t?.filter((btn) => btn.type === 'QUICK_REPLY')\n\t\t\t\t\t?.map((btn, i) => {\n\t\t\t\t\t\tif (btn.type === 'QUICK_REPLY' && pod !== POD.CHATBOT) {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<WhatsAppTemplateCardButtonV2\n\t\t\t\t\t\t\t\t\tvariableListIndex={i}\n\t\t\t\t\t\t\t\t\tQRBoptions={\n\t\t\t\t\t\t\t\t\t\twhatsappSpecificPickerMeta?.QRBoptions as ButtonPlaceHolderOptions[]\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbutton={btn}\n\t\t\t\t\t\t\t\t\tkey={`${i}_${selectedCarouselIndex}`}\n\t\t\t\t\t\t\t\t\tcurrentVariableList={\n\t\t\t\t\t\t\t\t\t\tselectedCarouselIndex != undefined &&\n\t\t\t\t\t\t\t\t\t\tselectedCarouselIndex > -1\n\t\t\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\t\t\t...(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\toriginalVariableList as WhatsAppCarouselTemplateVariables\n\t\t\t\t\t\t\t\t\t\t\t\t\t).cards[selectedCarouselIndex],\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t...(originalVariableList as WhatsAppTemplateVariables),\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tupdateSelectedQRBTemplateBtn={\n\t\t\t\t\t\t\t\t\t\tupdateSelectedTemplateQRBBtn as QRBBtnUpdateFunctionType\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\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{pod === POD.CHATBOT && showDiscountCheckBox && (\n\t\t\t\t<DiscountCodeComponent\n\t\t\t\t\tdiscountCode={extras?.discountCodeExtra?.[0]}\n\t\t\t\t\tsetDiscountCode={extras?.discountCodeExtra?.[1]}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{(selectedCarouselIndex != undefined && selectedCarouselIndex > -1\n\t\t\t\t? (originalVariableList as WhatsAppCarouselTemplateVariables).cards[\n\t\t\t\t\t\tselectedCarouselIndex\n\t\t\t\t ]?.buttons\n\t\t\t\t: (originalVariableList as WhatsAppTemplateVariables)?.buttons\n\t\t\t)?.map((button, i) => {\n\t\t\t\tif (button.type === 'COPY_CODE') {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{disableCopyCode ? (\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 20,\n\t\t\t\t\t\t\t\t\t\tborderRadius: 4,\n\t\t\t\t\t\t\t\t\t\tpadding: '8px 10px',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\tstate={'disabled'}\n\t\t\t\t\t\t\t\t\t\tlabelText={button.text ?? 'Copy Code'}\n\t\t\t\t\t\t\t\t\t\tvalue={button.buttonVariable ?? ''}\n\t\t\t\t\t\t\t\t\t\tonChangeText={() => {\n\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<VariableConnector\n\t\t\t\t\t\t\t\t\tindex={i}\n\t\t\t\t\t\t\t\t\tvariable={{\n\t\t\t\t\t\t\t\t\t\tvariableName: button.text ?? 'Copy Code',\n\t\t\t\t\t\t\t\t\t\tupdatedValue: button.buttonVariable ?? '',\n\t\t\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\t\t\tisEditableVariable: true,\n\t\t\t\t\t\t\t\t\t\tindex: button.index ?? 0, // this index is respect to components -> buttons\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tkey={i}\n\t\t\t\t\t\t\t\t\tshowVariableModal={true}\n\t\t\t\t\t\t\t\t\tcomponentType={'BUTTONS'}\n\t\t\t\t\t\t\t\t\tbuttonType={button.type}\n\t\t\t\t\t\t\t\t/>\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}\n\t\t\t})}\n\t\t</Container>\n\t);\n};\n\nexport default EditWhatsAppTemplateV2;\n\nconst PdfContainer = styled.div`\n\tpadding-top: 24px;\n\tpadding-left: 10px;\n\tpadding-right: 10px;\n\tmargin-bottom: 8px;\n\tline-height: normal;\n`;\n"],"names":["EditWhatsAppTemplateV2","template","onTemplateChange","whatsappSpecificPickerMeta","showVariableModal","variableListForImage","setDiscountCode","fileName","setFileName","isCarouselType","originalVariableList","pod","extras","selectedCarouselIndex","isProductCarouselType","disableCopyCode","isError","cardIndex","useTemplateModalContext","descriptionComponents","urlBtns","qrbBtns","imageComponent","bodyVariables","headerVariables","titleVariables","getAllDataFromTemplateComponent","fileRef","useRef","showDiscountCheckBox","setShowDiscountCheckBox","useState","templateComponentData","setTemplateComponentData","uploadMediaLink","uploadMediaFiles","validateMimeType","useEditWhatsappTemplateMediaResponse","useEditWhatsappTemplateMedia","updateTemplateImageUrl","hasNewImageUpload","setHasNewImageUpload","enteredPdf","setEnteredPdf","pdfInputError","setPdfInputError","useEffect","button","currentCarousel","mediaComponent","url","format","localTemplate","imageComponentIndex","component","updatedComponent","components","templateCopy","cloneDeep","updateSelectedTemplateURLBtn","val","mode","btnIndex","tempCopy","selectedTemplate","isCustom","customValue","newComponent","isCarouselComponent","cardComponent","card","currentButton","btn","newButtonList","mappingButtonsComponent","index","newTemplate","btnComponentIndex","ctaBtns","btnComponent","mappingButtons","mapping","updateSelectedTemplateQRBBtn","qrbButtons","validatePdfName","isValid","validateInputName","validatePdfNameChatbot","isInvalid","validateInputNameChatbot","POD","_mediaComponent","jsx","Container","EditMediaModal","HEADER_TYPES","jsxs","isRCSChannel","EditTemplateMediaContainer","EditMediaV2","isVariable","PdfContainer","InputWithVariables","name","PickerType","Input","Fragment","VariableEditorHeader","descriptionComponent","i","VariableConnectorWhatsApp","isStaticUrl","STATIC_URL_VARIABLE_NAME","isUnsubscribeUrl","UNSUBSCRIBE_URL_VARIABLE","WhatsAppTemplateCardButtonV2","BackTrackComponent","DiscountCodeComponent","VariableConnector","styled"],"mappings":"2wCA2EMA,GAAyB,CAAC,CAC/B,SAAAC,EACA,iBAAAC,EACA,2BAAAC,EACA,kBAAAC,GACA,qBAAAC,EACA,gBAAAC,GACA,SAAAC,EACA,YAAAC,CACD,IAAmC,CAClC,MAAMC,EAAkBR,EAAsC,eACxD,CACL,qBAAAS,EACA,IAAAC,EACA,OAAAC,EACA,sBAAAC,EACA,sBAAAC,EACA,gBAAAC,GACA,QAAAC,EACA,UAAAC,CAAA,EACGC,2BAAA,EACE,CACL,sBAAAC,GACA,QAAAC,GACA,QAAAC,EACA,eAAAC,EACA,cAAAC,GACA,gBAAAC,GACA,eAAAC,EAAA,EACGC,EAAAA,gCAAgCzB,CAA4B,EAE1D0B,EAAUC,EAAAA,OAAyB,IAAI,EAEvC,CAACC,GAAsBC,CAAuB,EACnDC,EAAAA,SAAkB,EAAK,EAClB,CAACC,EAAuBC,CAAwB,EAAIF,EAAAA,SACzDlB,IAA0B,GACvB,CACA,sBAAAM,GACA,QAAAC,GACA,QAAAC,EACA,eAAAC,EACA,cAAAC,GACA,gBAAAC,GACA,eAAAC,EAAA,EAEA,CAAA,CAAC,EAGC,CAAE,gBAAAS,GAAiB,iBAAAC,GAAkB,iBAAAC,EAAA,EAC1CjC,EAEKkC,EAAuCC,GAAAA,6BAA6B,CACzE,gBAAAJ,GACA,iBAAAC,GACA,uBAAAI,GACA,iBAAAH,GACA,eAAiB3B,EAEduB,EAAsB,eADtBV,EAEH,QAAAK,CAAA,CACA,EAEK,CAACa,EAAmBC,CAAoB,EAAIV,EAAAA,SAAkB,EAAK,EACnE,CAACW,EAAYC,EAAa,EAAIZ,EAAAA,SAASxB,CAAQ,EAC/C,CAACqC,EAAeC,CAAgB,EAAId,WAAA,EAM1Ce,EAAAA,UAAU,IAAM,CAIf,GAHgC7C,EAAS,QAAQ,SAAS,KACxD8C,GAAWA,EA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,MAAO,CACN,aAAc,GACd,aAAc,EACd,QAAS,UAAA,EAGV,SAAAA,EAAAA,IAACa,GAAAA,MAAA,CACA,MAAO,WACP,UAAW1D,EAAO,MAAQ,YAC1B,MAAOA,EAAO,gBAAkB,GAChC,aAAc,IAAM,CAEpB,CAAA,CAAA,CACD,CAAA,EAGD6C,EAAAA,IAAC0B,GAAAA,QAAA,CACA,MAAOT,EACP,SAAU,CACT,aAAc9D,EAAO,MAAQ,YAC7B,aAAcA,EAAO,gBAAkB,GACvC,KAAM,SACN,mBAAoB,GACpB,MAAOA,EAAO,OAAS,CAAA,EAGxB,kBAAmB,GACnB,cAAe,UACf,WAAYA,EAAO,IAAA,EAHd8D,CAAA,EAMR,CAGH,CAAC,CAAA,CAAA,CAAA,CAGJ,EAIMR,GAAekB,GAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),h=require("../../../assets/icons/info.svg.js"),a=require("react"),S=require("styled-components"),j=require("../../button/Button.js"),T=require("../../tag/Tag.js"),q=require("../../template-preview/helpers/templateMiscHelper.js"),C=require("../../template-preview/models/Channels.js"),u=require("../../TypographyStyle.js"),i=require("../../../constants/Theme.js"),R=require("../Badge/index.js"),v=require("../context/templateModalContext.js"),O=S.div`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),h=require("../../../assets/icons/info.svg.js"),a=require("react"),S=require("styled-components"),j=require("../../button/Button.js"),T=require("../../tag/Tag.js"),q=require("../../template-preview/helpers/templateMiscHelper.js"),C=require("../../template-preview/models/Channels.js"),u=require("../../TypographyStyle.js"),i=require("../../../constants/Theme.js"),R=require("../Badge/index.js"),v=require("../context/templateModalContext.js"),O=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},k=O(S),w=k.default.div`
2
2
  background: ${i.COLORS.surface.standard};
3
3
  border-top-width: 1px;
4
4
  border-top-color: ${i.COLORS.stroke.primary};
@@ -12,5 +12,5 @@
12
12
  border-bottom-left-radius: 4px;
13
13
  border-bottom-right-radius: 4px;
14
14
  height: ${e=>e.isWhatsappCarousel?64:80}px;
15
- `,k=({isWhatsappCarousel:e,onSelect:x,footerButtonText:s,footerInfoText:l})=>{const{isError:c,selectedCarouselIndex:t,setSelectedCarouselIndex:d,setErrorIndexes:g,template:n,showVariablePicker:m,hideFooterButton:p,carouselBodyError:b}=v.useTemplateModalContext(),[y,o]=a.useState(e?"Next":"Select template");function f(){e&&t===-1&&d?d(0):(g?.([]),x())}return a.useEffect(()=>{s?o(s):e&&t===-1?o("Next"):e&&t!=null&&t>-1&&o("Save & Select Template")},[t]),r.jsxs(O,{isWhatsappCarousel:e,justifyContent:e&&n?.mapping?.body?.length?"space-between":"end",children:[q.isRCSChannel(n?.channel||C.CHANNEL_TYPE.WHATSAPP)?r.jsx(u.TitleRegular,{}):e&&t!=null&&t>=-1&&!!n?.mapping?.body?.length&&r.jsx(u.TitleRegular,{color:i.COLORS.text.secondary,children:`Step ${t===-1?1:2}/2`}),r.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[c&&r.jsx(R.Badge,{errorText:b||"Some inputs are missing or incorrect. Please check"}),!c&&l&&r.jsx("div",{style:{marginRight:12},children:r.jsx(T.Tag,{tagText:l,LeadingIcon:h.default})}),!p&&r.jsx(j.Button,{disabled:m,id:"select-template-btn",buttonText:y,size:e?"small":"large",onClick:f})]})]})};exports.default=k;
15
+ `,B=({isWhatsappCarousel:e,onSelect:x,footerButtonText:l,footerInfoText:s})=>{const{isError:d,selectedCarouselIndex:t,setSelectedCarouselIndex:c,setErrorIndexes:g,template:n,showVariablePicker:p,hideFooterButton:f,carouselBodyError:m}=v.useTemplateModalContext(),[b,o]=a.useState(e?"Next":"Select template");function y(){e&&t===-1&&c?c(0):(g?.([]),x())}return a.useEffect(()=>{l?o(l):e&&t===-1?o("Next"):e&&t!=null&&t>-1&&o("Save & Select Template")},[t]),r.jsxs(w,{isWhatsappCarousel:e,justifyContent:e&&n?.mapping?.body?.length?"space-between":"end",children:[q.isRCSChannel(n?.channel||C.CHANNEL_TYPE.WHATSAPP)?r.jsx(u.TitleRegular,{}):e&&t!=null&&t>=-1&&!!n?.mapping?.body?.length&&r.jsx(u.TitleRegular,{color:i.COLORS.text.secondary,children:`Step ${t===-1?1:2}/2`}),r.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[d&&r.jsx(R.Badge,{errorText:m||"Some inputs are missing or incorrect. Please check"}),!d&&s&&r.jsx("div",{style:{marginRight:12},children:r.jsx(T.Tag,{tagText:s,LeadingIcon:h.default})}),!f&&r.jsx(j.Button,{disabled:p,id:"select-template-btn",buttonText:b,size:e?"small":"large",onClick:y})]})]})};exports.default=B;
16
16
  //# sourceMappingURL=Footer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sources":["../../../../../src/components/template-context-mapper/modalElements/Footer.tsx"],"sourcesContent":["import InfoIcon from '@src/assets/icons/info.svg';\nimport { useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { Button } from '@src/components/button/Button';\nimport { Tag } from '@src/components/tag/Tag';\nimport { isRCSChannel } from '@src/components/template-preview/helpers/templateMiscHelper';\nimport { CHANNEL_TYPE } from '@src/components/template-preview/models/Channels';\nimport { TitleRegular } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\nimport { Badge } from '../Badge';\nimport { useTemplateModalContext } from '../context/templateModalContext';\n\nconst Container = styled.div<{\n\tjustifyContent?: string;\n\tisWhatsappCarousel: boolean;\n}>`\n\tbackground: ${COLORS.surface.standard};\n\tborder-top-width: 1px;\n\tborder-top-color: ${COLORS.stroke.primary};\n\tbox-shadow: 0px -4px 12px rgba(0, 0, 0, 0.12);\n\twidth: 100%;\n\tpadding: 0 24px;\n\tdisplay: flex;\n\tjustify-content: ${(props) => props.justifyContent ?? 'end'};\n\talign-items: center;\n\tgap: 12;\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\theight: ${(props) => (props.isWhatsappCarousel ? 64 : 80)}px;\n`;\n\nexport interface FooterProps {\n\tisWhatsappCarousel: boolean;\n\tonSelect: () => void;\n\tfooterButtonText?: string;\n\tfooterInfoText?: string;\n}\nconst Footer = ({\n\tisWhatsappCarousel,\n\tonSelect,\n\tfooterButtonText,\n\tfooterInfoText,\n}: FooterProps) => {\n\tconst {\n\t\tisError,\n\t\tselectedCarouselIndex,\n\t\tsetSelectedCarouselIndex,\n\t\tsetErrorIndexes,\n\t\ttemplate,\n\t\tshowVariablePicker,\n\t\thideFooterButton,\n\t\tcarouselBodyError,\n\t} = useTemplateModalContext();\n\tconst [buttonText, setButtonText] = useState<string>(\n\t\tisWhatsappCarousel ? 'Next' : 'Select template',\n\t);\n\n\tfunction onButtonClick() {\n\t\tif (\n\t\t\tisWhatsappCarousel &&\n\t\t\tselectedCarouselIndex === -1 &&\n\t\t\tsetSelectedCarouselIndex\n\t\t) {\n\t\t\tsetSelectedCarouselIndex(0);\n\t\t} else {\n\t\t\tsetErrorIndexes?.([]);\n\t\t\tonSelect();\n\t\t}\n\t}\n\n\tuseEffect(() => {\n\t\tif (footerButtonText) {\n\t\t\tsetButtonText(footerButtonText);\n\t\t} else {\n\t\t\tif (isWhatsappCarousel && selectedCarouselIndex === -1) {\n\t\t\t\tsetButtonText('Next');\n\t\t\t} else if (\n\t\t\t\tisWhatsappCarousel &&\n\t\t\t\tselectedCarouselIndex != undefined &&\n\t\t\t\tselectedCarouselIndex > -1\n\t\t\t) {\n\t\t\t\tsetButtonText('Save & Select Template');\n\t\t\t}\n\t\t}\n\t}, [selectedCarouselIndex]);\n\n\treturn (\n\t\t<Container\n\t\t\tisWhatsappCarousel={isWhatsappCarousel}\n\t\t\tjustifyContent={\n\t\t\t\tisWhatsappCarousel && !!template?.mapping?.body?.length\n\t\t\t\t\t? 'space-between'\n\t\t\t\t\t: 'end'\n\t\t\t}\n\t\t>\n\t\t\t{!isRCSChannel(template?.channel || CHANNEL_TYPE.WHATSAPP) ? (\n\t\t\t\tisWhatsappCarousel &&\n\t\t\t\tselectedCarouselIndex != undefined &&\n\t\t\t\tselectedCarouselIndex >= -1 &&\n\t\t\t\t!!template?.mapping?.body?.length && (\n\t\t\t\t\t<TitleRegular color={COLORS.text.secondary}>{`Step ${\n\t\t\t\t\t\tselectedCarouselIndex === -1 ? 1 : 2\n\t\t\t\t\t}/2`}</TitleRegular>\n\t\t\t\t)\n\t\t\t) : (\n\t\t\t\t<TitleRegular />\n\t\t\t)}\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tflexDirection: 'row',\n\t\t\t\t\talignItems: 'center',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{isError && (\n\t\t\t\t\t<Badge\n\t\t\t\t\t\terrorText={\n\t\t\t\t\t\t\tcarouselBodyError ||\n\t\t\t\t\t\t\t'Some inputs are missing or incorrect. Please check'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{!isError && footerInfoText && (\n\t\t\t\t\t<div style={{ marginRight: 12 }}>\n\t\t\t\t\t\t<Tag tagText={footerInfoText} LeadingIcon={InfoIcon} />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{!hideFooterButton && (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tdisabled={showVariablePicker}\n\t\t\t\t\t\tid=\"select-template-btn\"\n\t\t\t\t\t\tbuttonText={buttonText}\n\t\t\t\t\t\tsize={isWhatsappCarousel ? 'small' : 'large'}\n\t\t\t\t\t\tonClick={onButtonClick}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</Container>\n\t);\n};\n\nexport default Footer;\n"],"names":["Container","styled","COLORS","props","Footer","isWhatsappCarousel","onSelect","footerButtonText","footerInfoText","isError","selectedCarouselIndex","setSelectedCarouselIndex","setErrorIndexes","template","showVariablePicker","hideFooterButton","carouselBodyError","useTemplateModalContext","buttonText","setButtonText","useState","onButtonClick","useEffect","jsxs","isRCSChannel","CHANNEL_TYPE","TitleRegular","jsx","Badge","Tag","InfoIcon","Button"],"mappings":"2kBAYMA,EAAYC,EAAO;AAAA,eAIVC,EAAAA,OAAO,QAAQ,QAAQ;AAAA;AAAA,qBAEjBA,EAAAA,OAAO,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,oBAKrBC,GAAUA,EAAM,gBAAkB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,WAKhDA,GAAWA,EAAM,mBAAqB,GAAK,EAAG;AAAA,EASpDC,EAAS,CAAC,CACf,mBAAAC,EACA,SAAAC,EACA,iBAAAC,EACA,eAAAC,CACD,IAAmB,CAClB,KAAM,CACL,QAAAC,EACA,sBAAAC,EACA,yBAAAC,EACA,gBAAAC,EACA,SAAAC,EACA,mBAAAC,EACA,iBAAAC,EACA,kBAAAC,CAAA,EACGC,0BAAA,EACE,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SACnCf,EAAqB,OAAS,iBAAA,EAG/B,SAASgB,GAAgB,CAEvBhB,GACAK,IAA0B,IAC1BC,EAEAA,EAAyB,CAAC,GAE1BC,IAAkB,CAAA,CAAE,EACpBN,EAAA,EAEF,CAEAgB,OAAAA,EAAAA,UAAU,IAAM,CACXf,EACHY,EAAcZ,CAAgB,EAE1BF,GAAsBK,IAA0B,GACnDS,EAAc,MAAM,EAEpBd,GACAK,GAAyB,MACzBA,EAAwB,IAExBS,EAAc,wBAAwB,CAGzC,EAAG,CAACT,CAAqB,CAAC,EAGzBa,EAAAA,KAACvB,EAAA,CACA,mBAAAK,EACA,eACCA,GAAwBQ,GAAU,SAAS,MAAM,OAC9C,gBACA,MAGH,SAAA,CAACW,EAAAA,aAAaX,GAAU,SAAWY,EAAAA,aAAa,QAAQ,QAUvDC,EAAAA,aAAA,EAAa,EATdrB,GACAK,GAAyB,MACzBA,GAAyB,IACzB,CAAC,CAACG,GAAU,SAAS,MAAM,QAC1Bc,EAAAA,IAACD,EAAAA,aAAA,CAAa,MAAOxB,EAAAA,OAAO,KAAK,UAAY,SAAA,QAC5CQ,IAA0B,GAAK,EAAI,CACpC,IAAA,CAAK,EAKPa,EAAAA,KAAC,MAAA,CACA,MAAO,CACN,QAAS,OACT,cAAe,MACf,WAAY,QAAA,EAGZ,SAAA,CAAAd,GACAkB,EAAAA,IAACC,EAAAA,MAAA,CACA,UACCZ,GACA,oDAAA,CAAA,EAIF,CAACP,GAAWD,GACZmB,EAAAA,IAAC,MAAA,CAAI,MAAO,CAAE,YAAa,EAAA,EAC1B,eAACE,EAAAA,IAAA,CAAI,QAASrB,EAAgB,YAAasB,EAAAA,QAAU,EACtD,EAEA,CAACf,GACDY,EAAAA,IAACI,EAAAA,OAAA,CACA,SAAUjB,EACV,GAAG,sBACH,WAAAI,EACA,KAAMb,EAAqB,QAAU,QACrC,QAASgB,CAAA,CAAA,CACV,CAAA,CAAA,CAEF,CAAA,CAAA,CAGH"}
1
+ {"version":3,"file":"Footer.js","sources":["../../../../../src/components/template-context-mapper/modalElements/Footer.tsx"],"sourcesContent":["import InfoIcon from '@src/assets/icons/info.svg';\nimport { useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { Button } from '@src/components/button/Button';\nimport { Tag } from '@src/components/tag/Tag';\nimport { isRCSChannel } from '@src/components/template-preview/helpers/templateMiscHelper';\nimport { CHANNEL_TYPE } from '@src/components/template-preview/models/Channels';\nimport { TitleRegular } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\nimport { Badge } from '../Badge';\nimport { useTemplateModalContext } from '../context/templateModalContext';\n\nconst Container = styled.div<{\n\tjustifyContent?: string;\n\tisWhatsappCarousel: boolean;\n}>`\n\tbackground: ${COLORS.surface.standard};\n\tborder-top-width: 1px;\n\tborder-top-color: ${COLORS.stroke.primary};\n\tbox-shadow: 0px -4px 12px rgba(0, 0, 0, 0.12);\n\twidth: 100%;\n\tpadding: 0 24px;\n\tdisplay: flex;\n\tjustify-content: ${(props) => props.justifyContent ?? 'end'};\n\talign-items: center;\n\tgap: 12;\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\theight: ${(props) => (props.isWhatsappCarousel ? 64 : 80)}px;\n`;\n\nexport interface FooterProps {\n\tisWhatsappCarousel: boolean;\n\tonSelect: () => void;\n\tfooterButtonText?: string;\n\tfooterInfoText?: string;\n}\nconst Footer = ({\n\tisWhatsappCarousel,\n\tonSelect,\n\tfooterButtonText,\n\tfooterInfoText,\n}: FooterProps) => {\n\tconst {\n\t\tisError,\n\t\tselectedCarouselIndex,\n\t\tsetSelectedCarouselIndex,\n\t\tsetErrorIndexes,\n\t\ttemplate,\n\t\tshowVariablePicker,\n\t\thideFooterButton,\n\t\tcarouselBodyError,\n\t} = useTemplateModalContext();\n\tconst [buttonText, setButtonText] = useState<string>(\n\t\tisWhatsappCarousel ? 'Next' : 'Select template',\n\t);\n\n\tfunction onButtonClick() {\n\t\tif (\n\t\t\tisWhatsappCarousel &&\n\t\t\tselectedCarouselIndex === -1 &&\n\t\t\tsetSelectedCarouselIndex\n\t\t) {\n\t\t\tsetSelectedCarouselIndex(0);\n\t\t} else {\n\t\t\tsetErrorIndexes?.([]);\n\t\t\tonSelect();\n\t\t}\n\t}\n\n\tuseEffect(() => {\n\t\tif (footerButtonText) {\n\t\t\tsetButtonText(footerButtonText);\n\t\t} else {\n\t\t\tif (isWhatsappCarousel && selectedCarouselIndex === -1) {\n\t\t\t\tsetButtonText('Next');\n\t\t\t} else if (\n\t\t\t\tisWhatsappCarousel &&\n\t\t\t\tselectedCarouselIndex != undefined &&\n\t\t\t\tselectedCarouselIndex > -1\n\t\t\t) {\n\t\t\t\tsetButtonText('Save & Select Template');\n\t\t\t}\n\t\t}\n\t}, [selectedCarouselIndex]);\n\n\treturn (\n\t\t<Container\n\t\t\tisWhatsappCarousel={isWhatsappCarousel}\n\t\t\tjustifyContent={\n\t\t\t\tisWhatsappCarousel && !!template?.mapping?.body?.length\n\t\t\t\t\t? 'space-between'\n\t\t\t\t\t: 'end'\n\t\t\t}\n\t\t>\n\t\t\t{!isRCSChannel(template?.channel || CHANNEL_TYPE.WHATSAPP) ? (\n\t\t\t\tisWhatsappCarousel &&\n\t\t\t\tselectedCarouselIndex != undefined &&\n\t\t\t\tselectedCarouselIndex >= -1 &&\n\t\t\t\t!!template?.mapping?.body?.length && (\n\t\t\t\t\t<TitleRegular color={COLORS.text.secondary}>{`Step ${\n\t\t\t\t\t\tselectedCarouselIndex === -1 ? 1 : 2\n\t\t\t\t\t}/2`}</TitleRegular>\n\t\t\t\t)\n\t\t\t) : (\n\t\t\t\t<TitleRegular />\n\t\t\t)}\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tflexDirection: 'row',\n\t\t\t\t\talignItems: 'center',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{isError && (\n\t\t\t\t\t<Badge\n\t\t\t\t\t\terrorText={\n\t\t\t\t\t\t\tcarouselBodyError ||\n\t\t\t\t\t\t\t'Some inputs are missing or incorrect. Please check'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{!isError && footerInfoText && (\n\t\t\t\t\t<div style={{ marginRight: 12 }}>\n\t\t\t\t\t\t<Tag tagText={footerInfoText} LeadingIcon={InfoIcon} />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{!hideFooterButton && (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tdisabled={showVariablePicker}\n\t\t\t\t\t\tid=\"select-template-btn\"\n\t\t\t\t\t\tbuttonText={buttonText}\n\t\t\t\t\t\tsize={isWhatsappCarousel ? 'small' : 'large'}\n\t\t\t\t\t\tonClick={onButtonClick}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</Container>\n\t);\n};\n\nexport default Footer;\n"],"names":["Container","styled","COLORS","props","Footer","isWhatsappCarousel","onSelect","footerButtonText","footerInfoText","isError","selectedCarouselIndex","setSelectedCarouselIndex","setErrorIndexes","template","showVariablePicker","hideFooterButton","carouselBodyError","useTemplateModalContext","buttonText","setButtonText","useState","onButtonClick","useEffect","jsxs","isRCSChannel","CHANNEL_TYPE","TitleRegular","jsx","Badge","Tag","InfoIcon","Button"],"mappings":"0oBAYMA,EAAYC,EAAAA,QAAO;AAAA,eAIVC,EAAAA,OAAO,QAAQ,QAAQ;AAAA;AAAA,qBAEjBA,EAAAA,OAAO,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,oBAKrBC,GAAUA,EAAM,gBAAkB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,WAKhDA,GAAWA,EAAM,mBAAqB,GAAK,EAAG;AAAA,EASpDC,EAAS,CAAC,CACf,mBAAAC,EACA,SAAAC,EACA,iBAAAC,EACA,eAAAC,CACD,IAAmB,CAClB,KAAM,CACL,QAAAC,EACA,sBAAAC,EACA,yBAAAC,EACA,gBAAAC,EACA,SAAAC,EACA,mBAAAC,EACA,iBAAAC,EACA,kBAAAC,CAAA,EACGC,0BAAA,EACE,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SACnCf,EAAqB,OAAS,iBAAA,EAG/B,SAASgB,GAAgB,CAEvBhB,GACAK,IAA0B,IAC1BC,EAEAA,EAAyB,CAAC,GAE1BC,IAAkB,CAAA,CAAE,EACpBN,EAAA,EAEF,CAEAgB,OAAAA,EAAAA,UAAU,IAAM,CACXf,EACHY,EAAcZ,CAAgB,EAE1BF,GAAsBK,IAA0B,GACnDS,EAAc,MAAM,EAEpBd,GACAK,GAAyB,MACzBA,EAAwB,IAExBS,EAAc,wBAAwB,CAGzC,EAAG,CAACT,CAAqB,CAAC,EAGzBa,EAAAA,KAACvB,EAAA,CACA,mBAAAK,EACA,eACCA,GAAwBQ,GAAU,SAAS,MAAM,OAC9C,gBACA,MAGH,SAAA,CAACW,EAAAA,aAAaX,GAAU,SAAWY,EAAAA,aAAa,QAAQ,QAUvDC,EAAAA,aAAA,EAAa,EATdrB,GACAK,GAAyB,MACzBA,GAAyB,IACzB,CAAC,CAACG,GAAU,SAAS,MAAM,QAC1Bc,EAAAA,IAACD,EAAAA,aAAA,CAAa,MAAOxB,EAAAA,OAAO,KAAK,UAAY,SAAA,QAC5CQ,IAA0B,GAAK,EAAI,CACpC,IAAA,CAAK,EAKPa,EAAAA,KAAC,MAAA,CACA,MAAO,CACN,QAAS,OACT,cAAe,MACf,WAAY,QAAA,EAGZ,SAAA,CAAAd,GACAkB,EAAAA,IAACC,EAAAA,MAAA,CACA,UACCZ,GACA,oDAAA,CAAA,EAIF,CAACP,GAAWD,GACZmB,EAAAA,IAAC,MAAA,CAAI,MAAO,CAAE,YAAa,EAAA,EAC1B,eAACE,EAAAA,IAAA,CAAI,QAASrB,EAAgB,YAAasB,EAAAA,QAAU,EACtD,EAEA,CAACf,GACDY,EAAAA,IAACI,EAAAA,OAAA,CACA,SAAUjB,EACV,GAAG,sBACH,WAAAI,EACA,KAAMb,EAAqB,QAAU,QACrC,QAASgB,CAAA,CAAA,CACV,CAAA,CAAA,CAEF,CAAA,CAAA,CAGH"}
@@ -1,24 +1,24 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),s=require("../../../assets/icons/desktop_custom.svg.js"),c=require("../../../assets/icons/mobile_custom.svg.js"),n=require("styled-components"),l=require("../../TypographyStyle.js"),e=require("../../../constants/Theme.js"),a=require("../context/templateModalContext.js"),p=n.div`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),s=require("../../../assets/icons/desktop_custom.svg.js"),c=require("../../../assets/icons/mobile_custom.svg.js"),l=require("styled-components"),a=require("../../TypographyStyle.js"),t=require("../../../constants/Theme.js"),p=require("../context/templateModalContext.js"),u=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},r=u(l),b=r.default.div`
2
2
  padding-top: 12px;
3
3
  padding-bottom: 12px;
4
4
  padding-left: 30px;
5
5
  padding-right: 30px;
6
- background-color: ${e.COLORS.surface.subdued};
6
+ background-color: ${t.COLORS.surface.subdued};
7
7
  align-items: center;
8
8
  display: flex;
9
- filter: ${o=>o.showOnlyContent?"none":"drop-shadow(rgba(0, 0, 0, 0.12) 0px 12px 12px)"};
10
- `,u=n.div`
9
+ filter: ${e=>e.showOnlyContent?"none":"drop-shadow(rgba(0, 0, 0, 0.12) 0px 12px 12px)"};
10
+ `,x=r.default.div`
11
11
  display: flex;
12
- border: 1px solid ${e.COLORS.stroke.primary};
12
+ border: 1px solid ${t.COLORS.stroke.primary};
13
13
  border-radius: 4px;
14
14
  overflow: hidden;
15
15
  width: min-content;
16
- `,d=n.div`
17
- background: ${o=>o.active?e.COLORS.background.brandLight:e.COLORS.background.base};
16
+ `,i=r.default.div`
17
+ background: ${e=>e.active?t.COLORS.background.brandLight:t.COLORS.background.base};
18
18
  padding: 6px 8px;
19
19
  justify-content: center;
20
20
  align-items: center;
21
- `,b=n(d)`
22
- border-left: 1px solid ${e.COLORS.stroke.primary};
23
- `,x=({showOnlyContent:o})=>{const{device:r,setDevice:i}=a.useTemplateModalContext();return t.jsxs(p,{showOnlyContent:o,children:[t.jsxs(u,{children:[t.jsx(d,{active:r==="mobile",onClick:()=>i?.("mobile"),children:t.jsx(c.default,{color:r==="mobile"?e.COLORS.content.brand:e.COLORS.content.secondary,height:20,width:20})}),t.jsx(b,{active:r==="desktop",onClick:()=>i?.("desktop"),children:t.jsx(s.default,{color:r==="desktop"?e.COLORS.content.brand:e.COLORS.content.secondary,height:20,width:20})})]}),t.jsxs(l.BodyPrimary,{style:{color:e.COLORS.content.primary,marginLeft:16},children:[r==="mobile"?"Mobile":"Web"," view"]})]})};exports.default=x;
21
+ `,f=r.default(i)`
22
+ border-left: 1px solid ${t.COLORS.stroke.primary};
23
+ `,m=({showOnlyContent:e})=>{const{device:n,setDevice:d}=p.useTemplateModalContext();return o.jsxs(b,{showOnlyContent:e,children:[o.jsxs(x,{children:[o.jsx(i,{active:n==="mobile",onClick:()=>d?.("mobile"),children:o.jsx(c.default,{color:n==="mobile"?t.COLORS.content.brand:t.COLORS.content.secondary,height:20,width:20})}),o.jsx(f,{active:n==="desktop",onClick:()=>d?.("desktop"),children:o.jsx(s.default,{color:n==="desktop"?t.COLORS.content.brand:t.COLORS.content.secondary,height:20,width:20})})]}),o.jsxs(a.BodyPrimary,{style:{color:t.COLORS.content.primary,marginLeft:16},children:[n==="mobile"?"Mobile":"Web"," view"]})]})};exports.default=m;
24
24
  //# sourceMappingURL=Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sources":["../../../../../src/components/template-context-mapper/modalElements/Header.tsx"],"sourcesContent":["import DesktopIcon from '@src/assets/icons/desktop_custom.svg';\nimport MobileIcon from '@src/assets/icons/mobile_custom.svg';\nimport styled from 'styled-components';\nimport { BodyPrimary } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\nimport { useTemplateModalContext } from '../context/templateModalContext';\n\nconst Container = styled.div<{ showOnlyContent?: boolean }>`\n\tpadding-top: 12px;\n\tpadding-bottom: 12px;\n\tpadding-left: 30px;\n\tpadding-right: 30px;\n\tbackground-color: ${COLORS.surface.subdued};\n\talign-items: center;\n\tdisplay: flex;\n\tfilter: ${(props) =>\n\t\tprops.showOnlyContent\n\t\t\t? 'none'\n\t\t\t: 'drop-shadow(rgba(0, 0, 0, 0.12) 0px 12px 12px)'};\n`;\n\nconst DeviceIconWrapper = styled.div`\n\tdisplay: flex;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\toverflow: hidden;\n\twidth: min-content;\n`;\n\nconst MobileIconHolder = styled.div<{\n\tactive?: boolean;\n}>`\n\tbackground: ${(props) =>\n\t\tprops.active ? COLORS.background.brandLight : COLORS.background.base};\n\tpadding: 6px 8px;\n\tjustify-content: center;\n\talign-items: center;\n`;\n\nconst DesktopIconHolder = styled(MobileIconHolder)`\n\tborder-left: 1px solid ${COLORS.stroke.primary};\n`;\n\nexport interface HeaderProps {\n\tshowOnlyContent?: boolean;\n}\n\nconst Header = ({ showOnlyContent }: HeaderProps) => {\n\tconst { device, setDevice } = useTemplateModalContext();\n\n\treturn (\n\t\t<Container showOnlyContent={showOnlyContent}>\n\t\t\t<DeviceIconWrapper>\n\t\t\t\t<MobileIconHolder\n\t\t\t\t\tactive={device === 'mobile'}\n\t\t\t\t\tonClick={() => setDevice?.('mobile')}\n\t\t\t\t>\n\t\t\t\t\t<MobileIcon\n\t\t\t\t\t\tcolor={\n\t\t\t\t\t\t\tdevice === 'mobile'\n\t\t\t\t\t\t\t\t? COLORS.content.brand\n\t\t\t\t\t\t\t\t: COLORS.content.secondary\n\t\t\t\t\t\t}\n\t\t\t\t\t\theight={20}\n\t\t\t\t\t\twidth={20}\n\t\t\t\t\t/>\n\t\t\t\t</MobileIconHolder>\n\t\t\t\t<DesktopIconHolder\n\t\t\t\t\tactive={device === 'desktop'}\n\t\t\t\t\tonClick={() => setDevice?.('desktop')}\n\t\t\t\t>\n\t\t\t\t\t<DesktopIcon\n\t\t\t\t\t\tcolor={\n\t\t\t\t\t\t\tdevice === 'desktop'\n\t\t\t\t\t\t\t\t? COLORS.content.brand\n\t\t\t\t\t\t\t\t: COLORS.content.secondary\n\t\t\t\t\t\t}\n\t\t\t\t\t\theight={20}\n\t\t\t\t\t\twidth={20}\n\t\t\t\t\t/>\n\t\t\t\t</DesktopIconHolder>\n\t\t\t</DeviceIconWrapper>\n\t\t\t<BodyPrimary style={{ color: COLORS.content.primary, marginLeft: 16 }}>\n\t\t\t\t{device === 'mobile' ? 'Mobile' : 'Web'} view\n\t\t\t</BodyPrimary>\n\t\t</Container>\n\t);\n};\n\nexport default Header;\n"],"names":["Container","styled","COLORS","props","DeviceIconWrapper","MobileIconHolder","DesktopIconHolder","Header","showOnlyContent","device","setDevice","useTemplateModalContext","jsxs","jsx","MobileIcon","DesktopIcon","BodyPrimary"],"mappings":"gaAOMA,EAAYC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,qBAKJC,EAAAA,OAAO,QAAQ,OAAO;AAAA;AAAA;AAAA,WAG/BC,GACVA,EAAM,gBACH,OACA,gDAAgD;AAAA,EAG/CC,EAAoBH,EAAO;AAAA;AAAA,qBAEZC,EAAAA,OAAO,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,EAMpCG,EAAmBJ,EAAO;AAAA,eAGhBE,GACdA,EAAM,OAASD,EAAAA,OAAO,WAAW,WAAaA,EAAAA,OAAO,WAAW,IAAI;AAAA;AAAA;AAAA;AAAA,EAMhEI,EAAoBL,EAAOI,CAAgB;AAAA,0BACvBH,EAAAA,OAAO,OAAO,OAAO;AAAA,EAOzCK,EAAS,CAAC,CAAE,gBAAAC,KAAmC,CACpD,KAAM,CAAE,OAAAC,EAAQ,UAAAC,CAAA,EAAcC,0BAAA,EAE9B,OACCC,OAACZ,GAAU,gBAAAQ,EACV,SAAA,CAAAI,OAACR,EAAA,CACA,SAAA,CAAAS,EAAAA,IAACR,EAAA,CACA,OAAQI,IAAW,SACnB,QAAS,IAAMC,IAAY,QAAQ,EAEnC,SAAAG,EAAAA,IAACC,EAAAA,QAAA,CACA,MACCL,IAAW,SACRP,EAAAA,OAAO,QAAQ,MACfA,EAAAA,OAAO,QAAQ,UAEnB,OAAQ,GACR,MAAO,EAAA,CAAA,CACR,CAAA,EAEDW,EAAAA,IAACP,EAAA,CACA,OAAQG,IAAW,UACnB,QAAS,IAAMC,IAAY,SAAS,EAEpC,SAAAG,EAAAA,IAACE,EAAAA,QAAA,CACA,MACCN,IAAW,UACRP,EAAAA,OAAO,QAAQ,MACfA,EAAAA,OAAO,QAAQ,UAEnB,OAAQ,GACR,MAAO,EAAA,CAAA,CACR,CAAA,CACD,EACD,EACAU,EAAAA,KAACI,EAAAA,YAAA,CAAY,MAAO,CAAE,MAAOd,EAAAA,OAAO,QAAQ,QAAS,WAAY,EAAA,EAC/D,SAAA,CAAAO,IAAW,SAAW,SAAW,MAAM,OAAA,CAAA,CACzC,CAAA,EACD,CAEF"}
1
+ {"version":3,"file":"Header.js","sources":["../../../../../src/components/template-context-mapper/modalElements/Header.tsx"],"sourcesContent":["import DesktopIcon from '@src/assets/icons/desktop_custom.svg';\nimport MobileIcon from '@src/assets/icons/mobile_custom.svg';\nimport styled from 'styled-components';\nimport { BodyPrimary } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\nimport { useTemplateModalContext } from '../context/templateModalContext';\n\nconst Container = styled.div<{ showOnlyContent?: boolean }>`\n\tpadding-top: 12px;\n\tpadding-bottom: 12px;\n\tpadding-left: 30px;\n\tpadding-right: 30px;\n\tbackground-color: ${COLORS.surface.subdued};\n\talign-items: center;\n\tdisplay: flex;\n\tfilter: ${(props) =>\n\t\tprops.showOnlyContent\n\t\t\t? 'none'\n\t\t\t: 'drop-shadow(rgba(0, 0, 0, 0.12) 0px 12px 12px)'};\n`;\n\nconst DeviceIconWrapper = styled.div`\n\tdisplay: flex;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\toverflow: hidden;\n\twidth: min-content;\n`;\n\nconst MobileIconHolder = styled.div<{\n\tactive?: boolean;\n}>`\n\tbackground: ${(props) =>\n\t\tprops.active ? COLORS.background.brandLight : COLORS.background.base};\n\tpadding: 6px 8px;\n\tjustify-content: center;\n\talign-items: center;\n`;\n\nconst DesktopIconHolder = styled(MobileIconHolder)`\n\tborder-left: 1px solid ${COLORS.stroke.primary};\n`;\n\nexport interface HeaderProps {\n\tshowOnlyContent?: boolean;\n}\n\nconst Header = ({ showOnlyContent }: HeaderProps) => {\n\tconst { device, setDevice } = useTemplateModalContext();\n\n\treturn (\n\t\t<Container showOnlyContent={showOnlyContent}>\n\t\t\t<DeviceIconWrapper>\n\t\t\t\t<MobileIconHolder\n\t\t\t\t\tactive={device === 'mobile'}\n\t\t\t\t\tonClick={() => setDevice?.('mobile')}\n\t\t\t\t>\n\t\t\t\t\t<MobileIcon\n\t\t\t\t\t\tcolor={\n\t\t\t\t\t\t\tdevice === 'mobile'\n\t\t\t\t\t\t\t\t? COLORS.content.brand\n\t\t\t\t\t\t\t\t: COLORS.content.secondary\n\t\t\t\t\t\t}\n\t\t\t\t\t\theight={20}\n\t\t\t\t\t\twidth={20}\n\t\t\t\t\t/>\n\t\t\t\t</MobileIconHolder>\n\t\t\t\t<DesktopIconHolder\n\t\t\t\t\tactive={device === 'desktop'}\n\t\t\t\t\tonClick={() => setDevice?.('desktop')}\n\t\t\t\t>\n\t\t\t\t\t<DesktopIcon\n\t\t\t\t\t\tcolor={\n\t\t\t\t\t\t\tdevice === 'desktop'\n\t\t\t\t\t\t\t\t? COLORS.content.brand\n\t\t\t\t\t\t\t\t: COLORS.content.secondary\n\t\t\t\t\t\t}\n\t\t\t\t\t\theight={20}\n\t\t\t\t\t\twidth={20}\n\t\t\t\t\t/>\n\t\t\t\t</DesktopIconHolder>\n\t\t\t</DeviceIconWrapper>\n\t\t\t<BodyPrimary style={{ color: COLORS.content.primary, marginLeft: 16 }}>\n\t\t\t\t{device === 'mobile' ? 'Mobile' : 'Web'} view\n\t\t\t</BodyPrimary>\n\t\t</Container>\n\t);\n};\n\nexport default Header;\n"],"names":["Container","styled","COLORS","props","DeviceIconWrapper","MobileIconHolder","DesktopIconHolder","Header","showOnlyContent","device","setDevice","useTemplateModalContext","jsxs","jsx","MobileIcon","DesktopIcon","BodyPrimary"],"mappings":"+dAOMA,EAAYC,EAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAAA,qBAKJC,EAAAA,OAAO,QAAQ,OAAO;AAAA;AAAA;AAAA,WAG/BC,GACVA,EAAM,gBACH,OACA,gDAAgD;AAAA,EAG/CC,EAAoBH,EAAAA,QAAO;AAAA;AAAA,qBAEZC,EAAAA,OAAO,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,EAMpCG,EAAmBJ,EAAAA,QAAO;AAAA,eAGhBE,GACdA,EAAM,OAASD,EAAAA,OAAO,WAAW,WAAaA,EAAAA,OAAO,WAAW,IAAI;AAAA;AAAA;AAAA;AAAA,EAMhEI,EAAoBL,EAAAA,QAAOI,CAAgB;AAAA,0BACvBH,EAAAA,OAAO,OAAO,OAAO;AAAA,EAOzCK,EAAS,CAAC,CAAE,gBAAAC,KAAmC,CACpD,KAAM,CAAE,OAAAC,EAAQ,UAAAC,CAAA,EAAcC,0BAAA,EAE9B,OACCC,OAACZ,GAAU,gBAAAQ,EACV,SAAA,CAAAI,OAACR,EAAA,CACA,SAAA,CAAAS,EAAAA,IAACR,EAAA,CACA,OAAQI,IAAW,SACnB,QAAS,IAAMC,IAAY,QAAQ,EAEnC,SAAAG,EAAAA,IAACC,EAAAA,QAAA,CACA,MACCL,IAAW,SACRP,EAAAA,OAAO,QAAQ,MACfA,EAAAA,OAAO,QAAQ,UAEnB,OAAQ,GACR,MAAO,EAAA,CAAA,CACR,CAAA,EAEDW,EAAAA,IAACP,EAAA,CACA,OAAQG,IAAW,UACnB,QAAS,IAAMC,IAAY,SAAS,EAEpC,SAAAG,EAAAA,IAACE,EAAAA,QAAA,CACA,MACCN,IAAW,UACRP,EAAAA,OAAO,QAAQ,MACfA,EAAAA,OAAO,QAAQ,UAEnB,OAAQ,GACR,MAAO,EAAA,CAAA,CACR,CAAA,CACD,EACD,EACAU,EAAAA,KAACI,EAAAA,YAAA,CAAY,MAAO,CAAE,MAAOd,EAAAA,OAAO,QAAQ,QAAS,WAAY,EAAA,EAC/D,SAAA,CAAAO,IAAW,SAAW,SAAW,MAAM,OAAA,CAAA,CACzC,CAAA,EACD,CAEF"}
@@ -1,12 +1,12 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react"),r=require("styled-components"),a=require("../../template-preview/TemplatePreview.js"),m=require("../../template-preview/models/Channels.js"),v=require("../../template-preview/models/WhatsAppTemplate.js"),w=require("../context/templateModalContext.js"),s=require("../utils/getPreviewDimension.js"),b=r.div`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),m=require("react"),f=require("styled-components"),a=require("../../template-preview/TemplatePreview.js"),v=require("../../template-preview/models/Channels.js"),w=require("../../template-preview/models/WhatsAppTemplate.js"),b=require("../context/templateModalContext.js"),s=require("../utils/getPreviewDimension.js"),l=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},g=l(m),o=l(f),x=o.default.div`
2
2
  position: relative;
3
3
  height: 100%;
4
4
  border-radius: 31px;
5
- width: ${t=>s.getPreviewWidth(t.channel)}px;
5
+ width: ${e=>s.getPreviewWidth(e.channel)}px;
6
6
  background-color: white;
7
7
  margin: auto;
8
8
  overflow-y: auto;
9
- `,g=r.div`
9
+ `,P=o.default.div`
10
10
  position: absolute;
11
11
  flex: 1;
12
12
  background-color: white;
@@ -17,7 +17,7 @@
17
17
  height: calc(100% - 17px);
18
18
  border-radius: 16px;
19
19
  overflow-y: auto;
20
- `,n=u.forwardRef(({display_content:t,channel:i,template:l,showSampleValues:c},d)=>{const{pod:p,hideDeviceContainerInPreview:h}=w.useTemplateModalContext(),o={showSampleValues:c,template:l,channel:i,smsSpecificMeta:{smsDisplayContent:t},whatsAppSpecificMeta:{showWhatsAppHeader:!0,whatsAppExtras:p!==v.POD.CHATBOT,containerStyle:{border:"none",borderBottomRightRadius:0,borderBottomLeftRadius:0,minHeight:426,width:i==m.CHANNEL_TYPE.RCS?"unset":240}},size:"small",hideHeader:!0,emailSpecificMeta:{emailDisplayContent:t,hideViewButtonForEmail:!0,emailHtmlContainerId:"template_html_mobile",containerStyle:{height:"100%",width:"100%"},templateContainerStyles:{height:"100%"}},isPreview:!0,hidePointerEvents:!0};return h?e.jsx(f,{children:e.jsx(a.TemplatePreview,{...o})}):e.jsx(e.Fragment,{children:e.jsxs(b,{channel:i,children:[e.jsx("img",{alt:"",src:"https://firebasestorage.googleapis.com/v0/b/staging-bikayi.appspot.com/o/bik%2FkNwEVoGlLpVjOsXoO1M8WgvWicP2%2F6f07b850-8b4b-4d58-96cc-8ba6df7b4e4a-Device___Frame.jpg?alt=media&token=253f1bfe-8481-4f54-bdef-3c0a73697d6a",style:{width:s.getPreviewWidth(i),height:443}}),e.jsx(g,{ref:d,children:e.jsx(a.TemplatePreview,{...o})})]})})});n.displayName="MobilePreview";const f=r.div`
20
+ `,n=g.default.forwardRef(({display_content:e,channel:i,template:d,showSampleValues:c},p)=>{const{pod:u,hideDeviceContainerInPreview:h}=b.useTemplateModalContext(),r={showSampleValues:c,template:d,channel:i,smsSpecificMeta:{smsDisplayContent:e},whatsAppSpecificMeta:{showWhatsAppHeader:!0,whatsAppExtras:u!==w.POD.CHATBOT,containerStyle:{border:"none",borderBottomRightRadius:0,borderBottomLeftRadius:0,minHeight:426,width:i==v.CHANNEL_TYPE.RCS?"unset":240}},size:"small",hideHeader:!0,emailSpecificMeta:{emailDisplayContent:e,hideViewButtonForEmail:!0,emailHtmlContainerId:"template_html_mobile",containerStyle:{height:"100%",width:"100%"},templateContainerStyles:{height:"100%"}},isPreview:!0,hidePointerEvents:!0};return h?t.jsx(y,{children:t.jsx(a.TemplatePreview,{...r})}):t.jsx(t.Fragment,{children:t.jsxs(x,{channel:i,children:[t.jsx("img",{alt:"",src:"https://firebasestorage.googleapis.com/v0/b/staging-bikayi.appspot.com/o/bik%2FkNwEVoGlLpVjOsXoO1M8WgvWicP2%2F6f07b850-8b4b-4d58-96cc-8ba6df7b4e4a-Device___Frame.jpg?alt=media&token=253f1bfe-8481-4f54-bdef-3c0a73697d6a",style:{width:s.getPreviewWidth(i),height:443}}),t.jsx(P,{ref:p,children:t.jsx(a.TemplatePreview,{...r})})]})})});n.displayName="MobilePreview";const y=o.default.div`
21
21
  display: flex;
22
22
  align-items: center;
23
23
  justify-content: center;
@@ -1 +1 @@
1
- {"version":3,"file":"MobilePreview.js","sources":["../../../../../src/components/template-context-mapper/modalElements/MobilePreview.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport {\n\tTemplatePreview,\n\ttype TemplatePreviewProps,\n} from '@src/components/template-preview/TemplatePreview';\nimport { CHANNEL_TYPE } from '@src/components/template-preview/models/Channels';\nimport type {\n\tAllTemplateTypes,\n\tNonNullTemplateTypes,\n} from '@src/components/template-preview/models/types';\nimport { POD } from '@src/components/template-preview/models/WhatsAppTemplate';\nimport { useTemplateModalContext } from '../context/templateModalContext';\nimport { getPreviewWidth } from '../utils/getPreviewDimension';\n\nconst DeviceContainer = styled.div<{ channel: CHANNEL_TYPE }>`\n\tposition: relative;\n\theight: 100%;\n\tborder-radius: 31px;\n\twidth: ${(props) => getPreviewWidth(props.channel)}px;\n\tbackground-color: white;\n\tmargin: auto;\n\toverflow-y: auto;\n`;\n\nconst ContentWrapper = styled.div`\n\tposition: absolute;\n\tflex: 1;\n\tbackground-color: white;\n\tscroll-behavior: smooth;\n\tleft: 12px;\n\ttop: 8px;\n\twidth: calc(100% - 25px);\n\theight: calc(100% - 17px);\n\tborder-radius: 16px;\n\toverflow-y: auto;\n`;\n\nconst MobilePreview = React.forwardRef<\n\tHTMLDivElement,\n\t{\n\t\tdisplay_content: string;\n\t\tchannel: CHANNEL_TYPE;\n\t\ttemplate: AllTemplateTypes;\n\t\tshowSampleValues?: boolean;\n\t}\n>(({ display_content, channel, template, showSampleValues }, ref) => {\n\tconst { pod, hideDeviceContainerInPreview } = useTemplateModalContext();\n\n\tconst templatePreviewProps: TemplatePreviewProps = {\n\t\tshowSampleValues,\n\t\ttemplate: template as NonNullTemplateTypes,\n\t\tchannel,\n\t\tsmsSpecificMeta: {\n\t\t\tsmsDisplayContent: display_content,\n\t\t},\n\t\twhatsAppSpecificMeta: {\n\t\t\tshowWhatsAppHeader: true,\n\t\t\twhatsAppExtras: pod !== POD.CHATBOT,\n\t\t\tcontainerStyle: {\n\t\t\t\tborder: 'none',\n\t\t\t\tborderBottomRightRadius: 0,\n\t\t\t\tborderBottomLeftRadius: 0,\n\t\t\t\tminHeight: 426,\n\t\t\t\twidth: channel == CHANNEL_TYPE.RCS ? 'unset' : 240,\n\t\t\t},\n\t\t},\n\t\tsize: 'small',\n\t\thideHeader: true,\n\t\temailSpecificMeta: {\n\t\t\temailDisplayContent: display_content,\n\t\t\thideViewButtonForEmail: true,\n\t\t\temailHtmlContainerId: 'template_html_mobile',\n\t\t\tcontainerStyle: {\n\t\t\t\theight: '100%',\n\t\t\t\twidth: '100%',\n\t\t\t},\n\t\t\ttemplateContainerStyles: {\n\t\t\t\theight: '100%',\n\t\t\t},\n\t\t},\n\t\tisPreview: true,\n\t\thidePointerEvents: true,\n\t};\n\n\tif (hideDeviceContainerInPreview) {\n\t\treturn (\n\t\t\t<StyledPlainPreview>\n\t\t\t\t<TemplatePreview {...templatePreviewProps} />\n\t\t\t</StyledPlainPreview>\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<DeviceContainer channel={channel}>\n\t\t\t\t<img\n\t\t\t\t\talt=\"\"\n\t\t\t\t\tsrc={\n\t\t\t\t\t\t'https://firebasestorage.googleapis.com/v0/b/staging-bikayi.appspot.com/o/bik%2FkNwEVoGlLpVjOsXoO1M8WgvWicP2%2F6f07b850-8b4b-4d58-96cc-8ba6df7b4e4a-Device___Frame.jpg?alt=media&token=253f1bfe-8481-4f54-bdef-3c0a73697d6a'\n\t\t\t\t\t}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\twidth: getPreviewWidth(channel),\n\t\t\t\t\t\theight: 443,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t<ContentWrapper ref={ref}>\n\t\t\t\t\t<TemplatePreview {...templatePreviewProps} />\n\t\t\t\t</ContentWrapper>\n\t\t\t</DeviceContainer>\n\t\t</>\n\t);\n});\n\nMobilePreview.displayName = 'MobilePreview';\n\nconst StyledPlainPreview = styled.div`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tflex: 1;\n`;\n\nexport default MobilePreview;\n"],"names":["DeviceContainer","styled","props","getPreviewWidth","ContentWrapper","MobilePreview","React","display_content","channel","template","showSampleValues","ref","pod","hideDeviceContainerInPreview","useTemplateModalContext","templatePreviewProps","POD","CHANNEL_TYPE","StyledPlainPreview","jsx","TemplatePreview","Fragment","jsxs"],"mappings":"6cAeMA,EAAkBC,EAAO;AAAA;AAAA;AAAA;AAAA,UAIpBC,GAAUC,EAAAA,gBAAgBD,EAAM,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA,EAM7CE,EAAiBH,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaxBI,EAAgBC,EAAM,WAQ1B,CAAC,CAAE,gBAAAC,EAAiB,QAAAC,EAAS,SAAAC,EAAU,iBAAAC,CAAA,EAAoBC,IAAQ,CACpE,KAAM,CAAE,IAAAC,EAAK,6BAAAC,CAAA,EAAiCC,0BAAA,EAExCC,EAA6C,CAClD,iBAAAL,EACA,SAAAD,EACA,QAAAD,EACA,gBAAiB,CAChB,kBAAmBD,CAAA,EAEpB,qBAAsB,CACrB,mBAAoB,GACpB,eAAgBK,IAAQI,EAAAA,IAAI,QAC5B,eAAgB,CACf,OAAQ,OACR,wBAAyB,EACzB,uBAAwB,EACxB,UAAW,IACX,MAAOR,GAAWS,eAAa,IAAM,QAAU,GAAA,CAChD,EAED,KAAM,QACN,WAAY,GACZ,kBAAmB,CAClB,oBAAqBV,EACrB,uBAAwB,GACxB,qBAAsB,uBACtB,eAAgB,CACf,OAAQ,OACR,MAAO,MAAA,EAER,wBAAyB,CACxB,OAAQ,MAAA,CACT,EAED,UAAW,GACX,kBAAmB,EAAA,EAGpB,OAAIM,QAEDK,EAAA,CACA,SAAAC,EAAAA,IAACC,EAAAA,gBAAA,CAAiB,GAAGL,EAAsB,EAC5C,EAKDI,EAAAA,IAAAE,EAAAA,SAAA,CACC,SAAAC,EAAAA,KAACtB,EAAA,CAAgB,QAAAQ,EAChB,SAAA,CAAAW,EAAAA,IAAC,MAAA,CACA,IAAI,GACJ,IACC,6NAED,MAAO,CACN,MAAOhB,EAAAA,gBAAgBK,CAAO,EAC9B,OAAQ,GAAA,CACT,CAAA,QAEAJ,EAAA,CAAe,IAAAO,EACf,eAACS,kBAAA,CAAiB,GAAGL,EAAsB,CAAA,CAC5C,CAAA,CAAA,CACD,CAAA,CACD,CAEF,CAAC,EAEDV,EAAc,YAAc,gBAE5B,MAAMa,EAAqBjB,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA"}
1
+ {"version":3,"file":"MobilePreview.js","sources":["../../../../../src/components/template-context-mapper/modalElements/MobilePreview.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport {\n\tTemplatePreview,\n\ttype TemplatePreviewProps,\n} from '@src/components/template-preview/TemplatePreview';\nimport { CHANNEL_TYPE } from '@src/components/template-preview/models/Channels';\nimport type {\n\tAllTemplateTypes,\n\tNonNullTemplateTypes,\n} from '@src/components/template-preview/models/types';\nimport { POD } from '@src/components/template-preview/models/WhatsAppTemplate';\nimport { useTemplateModalContext } from '../context/templateModalContext';\nimport { getPreviewWidth } from '../utils/getPreviewDimension';\n\nconst DeviceContainer = styled.div<{ channel: CHANNEL_TYPE }>`\n\tposition: relative;\n\theight: 100%;\n\tborder-radius: 31px;\n\twidth: ${(props) => getPreviewWidth(props.channel)}px;\n\tbackground-color: white;\n\tmargin: auto;\n\toverflow-y: auto;\n`;\n\nconst ContentWrapper = styled.div`\n\tposition: absolute;\n\tflex: 1;\n\tbackground-color: white;\n\tscroll-behavior: smooth;\n\tleft: 12px;\n\ttop: 8px;\n\twidth: calc(100% - 25px);\n\theight: calc(100% - 17px);\n\tborder-radius: 16px;\n\toverflow-y: auto;\n`;\n\nconst MobilePreview = React.forwardRef<\n\tHTMLDivElement,\n\t{\n\t\tdisplay_content: string;\n\t\tchannel: CHANNEL_TYPE;\n\t\ttemplate: AllTemplateTypes;\n\t\tshowSampleValues?: boolean;\n\t}\n>(({ display_content, channel, template, showSampleValues }, ref) => {\n\tconst { pod, hideDeviceContainerInPreview } = useTemplateModalContext();\n\n\tconst templatePreviewProps: TemplatePreviewProps = {\n\t\tshowSampleValues,\n\t\ttemplate: template as NonNullTemplateTypes,\n\t\tchannel,\n\t\tsmsSpecificMeta: {\n\t\t\tsmsDisplayContent: display_content,\n\t\t},\n\t\twhatsAppSpecificMeta: {\n\t\t\tshowWhatsAppHeader: true,\n\t\t\twhatsAppExtras: pod !== POD.CHATBOT,\n\t\t\tcontainerStyle: {\n\t\t\t\tborder: 'none',\n\t\t\t\tborderBottomRightRadius: 0,\n\t\t\t\tborderBottomLeftRadius: 0,\n\t\t\t\tminHeight: 426,\n\t\t\t\twidth: channel == CHANNEL_TYPE.RCS ? 'unset' : 240,\n\t\t\t},\n\t\t},\n\t\tsize: 'small',\n\t\thideHeader: true,\n\t\temailSpecificMeta: {\n\t\t\temailDisplayContent: display_content,\n\t\t\thideViewButtonForEmail: true,\n\t\t\temailHtmlContainerId: 'template_html_mobile',\n\t\t\tcontainerStyle: {\n\t\t\t\theight: '100%',\n\t\t\t\twidth: '100%',\n\t\t\t},\n\t\t\ttemplateContainerStyles: {\n\t\t\t\theight: '100%',\n\t\t\t},\n\t\t},\n\t\tisPreview: true,\n\t\thidePointerEvents: true,\n\t};\n\n\tif (hideDeviceContainerInPreview) {\n\t\treturn (\n\t\t\t<StyledPlainPreview>\n\t\t\t\t<TemplatePreview {...templatePreviewProps} />\n\t\t\t</StyledPlainPreview>\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<DeviceContainer channel={channel}>\n\t\t\t\t<img\n\t\t\t\t\talt=\"\"\n\t\t\t\t\tsrc={\n\t\t\t\t\t\t'https://firebasestorage.googleapis.com/v0/b/staging-bikayi.appspot.com/o/bik%2FkNwEVoGlLpVjOsXoO1M8WgvWicP2%2F6f07b850-8b4b-4d58-96cc-8ba6df7b4e4a-Device___Frame.jpg?alt=media&token=253f1bfe-8481-4f54-bdef-3c0a73697d6a'\n\t\t\t\t\t}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\twidth: getPreviewWidth(channel),\n\t\t\t\t\t\theight: 443,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t<ContentWrapper ref={ref}>\n\t\t\t\t\t<TemplatePreview {...templatePreviewProps} />\n\t\t\t\t</ContentWrapper>\n\t\t\t</DeviceContainer>\n\t\t</>\n\t);\n});\n\nMobilePreview.displayName = 'MobilePreview';\n\nconst StyledPlainPreview = styled.div`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tflex: 1;\n`;\n\nexport default MobilePreview;\n"],"names":["DeviceContainer","styled","props","getPreviewWidth","ContentWrapper","MobilePreview","React","display_content","channel","template","showSampleValues","ref","pod","hideDeviceContainerInPreview","useTemplateModalContext","templatePreviewProps","POD","CHANNEL_TYPE","StyledPlainPreview","jsx","TemplatePreview","Fragment","jsxs"],"mappings":"mhBAeMA,EAAkBC,EAAAA,QAAO;AAAA;AAAA;AAAA;AAAA,UAIpBC,GAAUC,EAAAA,gBAAgBD,EAAM,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA,EAM7CE,EAAiBH,EAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaxBI,EAAgBC,EAAAA,QAAM,WAQ1B,CAAC,CAAE,gBAAAC,EAAiB,QAAAC,EAAS,SAAAC,EAAU,iBAAAC,CAAA,EAAoBC,IAAQ,CACpE,KAAM,CAAE,IAAAC,EAAK,6BAAAC,CAAA,EAAiCC,0BAAA,EAExCC,EAA6C,CAClD,iBAAAL,EACA,SAAAD,EACA,QAAAD,EACA,gBAAiB,CAChB,kBAAmBD,CAAA,EAEpB,qBAAsB,CACrB,mBAAoB,GACpB,eAAgBK,IAAQI,EAAAA,IAAI,QAC5B,eAAgB,CACf,OAAQ,OACR,wBAAyB,EACzB,uBAAwB,EACxB,UAAW,IACX,MAAOR,GAAWS,eAAa,IAAM,QAAU,GAAA,CAChD,EAED,KAAM,QACN,WAAY,GACZ,kBAAmB,CAClB,oBAAqBV,EACrB,uBAAwB,GACxB,qBAAsB,uBACtB,eAAgB,CACf,OAAQ,OACR,MAAO,MAAA,EAER,wBAAyB,CACxB,OAAQ,MAAA,CACT,EAED,UAAW,GACX,kBAAmB,EAAA,EAGpB,OAAIM,QAEDK,EAAA,CACA,SAAAC,EAAAA,IAACC,EAAAA,gBAAA,CAAiB,GAAGL,EAAsB,EAC5C,EAKDI,EAAAA,IAAAE,EAAAA,SAAA,CACC,SAAAC,EAAAA,KAACtB,EAAA,CAAgB,QAAAQ,EAChB,SAAA,CAAAW,EAAAA,IAAC,MAAA,CACA,IAAI,GACJ,IACC,6NAED,MAAO,CACN,MAAOhB,EAAAA,gBAAgBK,CAAO,EAC9B,OAAQ,GAAA,CACT,CAAA,QAEAJ,EAAA,CAAe,IAAAO,EACf,eAACS,kBAAA,CAAiB,GAAGL,EAAsB,CAAA,CAC5C,CAAA,CAAA,CACD,CAAA,CACD,CAEF,CAAC,EAEDV,EAAc,YAAc,gBAE5B,MAAMa,EAAqBjB,EAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../../assets/icons/box.svg.js"),a=require("../../../assets/icons/delete.svg.js"),f=require("../../../assets/icons/edit.svg.js"),h=require("styled-components"),x=require("../../TypographyStyle.js"),n=require("../../../constants/Theme.js"),l=require("../../icon-button/IconButton.js"),p=h.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../../assets/icons/box.svg.js"),a=require("../../../assets/icons/delete.svg.js"),f=require("../../../assets/icons/edit.svg.js"),h=require("styled-components"),p=require("../../TypographyStyle.js"),n=require("../../../constants/Theme.js"),l=require("../../icon-button/IconButton.js"),u=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},x=u(h),y=x.default.div`
2
2
  width: ${t=>t.width};
3
3
  padding: 12px;
4
4
  display: flex;
@@ -44,5 +44,5 @@
44
44
  color: #000000;
45
45
  }
46
46
  }
47
- `,y=t=>{const{cardBody:r,deleteItem:c,editItem:i,hideIcon:d}=t;return e.jsxs(p,{width:"100%",children:[!d&&e.jsx("div",{style:{width:36,height:36},children:e.jsx(s.default,{})}),e.jsx("div",{className:"card-body",children:e.jsx(x.TitleSmall,{color:n.COLORS.content.secondary,children:r})}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[i&&e.jsx(l.IconButton,{style:{display:"flex"},Icon:()=>e.jsx(f.default,{width:24,height:24,color:n.COLORS.content.placeholder}),onClick:o=>{i(),o.stopPropagation()}}),e.jsx(l.IconButton,{style:{display:"flex",color:"#919191"},Icon:()=>e.jsx(a.default,{width:24,height:24,color:n.COLORS.content.placeholder}),onClick:o=>{c(),o.stopPropagation()}})]})]})};exports.ProductBox=y;
47
+ `,m=t=>{const{cardBody:r,deleteItem:c,editItem:i,hideIcon:d}=t;return e.jsxs(y,{width:"100%",children:[!d&&e.jsx("div",{style:{width:36,height:36},children:e.jsx(s.default,{})}),e.jsx("div",{className:"card-body",children:e.jsx(p.TitleSmall,{color:n.COLORS.content.secondary,children:r})}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[i&&e.jsx(l.IconButton,{style:{display:"flex"},Icon:()=>e.jsx(f.default,{width:24,height:24,color:n.COLORS.content.placeholder}),onClick:o=>{i(),o.stopPropagation()}}),e.jsx(l.IconButton,{style:{display:"flex",color:"#919191"},Icon:()=>e.jsx(a.default,{width:24,height:24,color:n.COLORS.content.placeholder}),onClick:o=>{c(),o.stopPropagation()}})]})]})};exports.ProductBox=m;
48
48
  //# sourceMappingURL=ProductBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductBox.js","sources":["../../../../../src/components/template-context-mapper/modalElements/ProductBox.tsx"],"sourcesContent":["import BoxIcon from '@src/assets/icons/box.svg';\nimport DeleteIcon from '@src/assets/icons/delete.svg';\nimport EditIcon from '@src/assets/icons/edit.svg';\nimport styled from 'styled-components';\nimport { IconButton } from '@src/components/icon-button';\nimport { TitleSmall } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\n\nconst SimpleCardStyle = styled.div<{ width: string }>`\n\twidth: ${(props) => props.width};\n\tpadding: 12px;\n\tdisplay: flex;\n\tflex-direction: row;\n\tcolumn-gap: 14px;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground: #ffffff;\n\n\tborder: 1px solid #e0e0e0;\n\tborder-radius: 4px;\n\n\t.card-body {\n\t\twidth: 256px;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\n\t\t&__dynamic {\n\t\t\tfont-family: 'Inter';\n\t\t\tfont-style: normal;\n\t\t\tfont-weight: 400;\n\t\t\tfont-size: 16px;\n\t\t\tline-height: 24px;\n\t\t\tcolor: #731dcf;\n\n\t\t\t&__desc {\n\t\t\t\tfont-family: 'Inter';\n\t\t\t\tfont-style: normal;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 12px;\n\t\t\t\tline-height: 16px;\n\t\t\t\tcolor: #616161;\n\t\t\t}\n\t\t}\n\n\t\t&__simple {\n\t\t\tfont-family: 'Inter';\n\t\t\tfont-style: normal;\n\t\t\tfont-weight: 400;\n\t\t\tfont-size: 16px;\n\t\t\tline-height: 24px;\n\t\t\tcolor: #000000;\n\t\t}\n\t}\n`;\n\ninterface ProductBoxProps {\n\tcardBody: string;\n\tdeleteItem: any;\n\teditItem?: any;\n\thideIcon?: boolean;\n}\n\nexport const ProductBox = (props: ProductBoxProps) => {\n\tconst { cardBody, deleteItem, editItem, hideIcon } = props;\n\n\treturn (\n\t\t<SimpleCardStyle width={'100%'}>\n\t\t\t{!hideIcon && (\n\t\t\t\t<div style={{ width: 36, height: 36 }}>\n\t\t\t\t\t<BoxIcon />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className=\"card-body\">\n\t\t\t\t<TitleSmall color={COLORS.content.secondary}>{cardBody}</TitleSmall>\n\t\t\t</div>\n\t\t\t<div style={{ display: 'flex', alignItems: 'center' }}>\n\t\t\t\t{editItem && (\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\tstyle={{ display: 'flex' }}\n\t\t\t\t\t\tIcon={() => (\n\t\t\t\t\t\t\t<EditIcon\n\t\t\t\t\t\t\t\twidth={24}\n\t\t\t\t\t\t\t\theight={24}\n\t\t\t\t\t\t\t\tcolor={COLORS.content.placeholder}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonClick={(e: any) => {\n\t\t\t\t\t\t\teditItem();\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t<IconButton\n\t\t\t\t\tstyle={{ display: 'flex', color: '#919191' }}\n\t\t\t\t\tIcon={() => (\n\t\t\t\t\t\t<DeleteIcon\n\t\t\t\t\t\t\twidth={24}\n\t\t\t\t\t\t\theight={24}\n\t\t\t\t\t\t\tcolor={COLORS.content.placeholder}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\tonClick={(e: any) => {\n\t\t\t\t\t\tdeleteItem();\n\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</SimpleCardStyle>\n\t);\n};\n"],"names":["SimpleCardStyle","styled","props","ProductBox","cardBody","deleteItem","editItem","hideIcon","jsxs","jsx","BoxIcon","TitleSmall","COLORS","IconButton","EditIcon","e","DeleteIcon"],"mappings":"8ZAQMA,EAAkBC,EAAO;AAAA,UACpBC,GAAUA,EAAM,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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D,CAAA,CACD,CAAA,EACD,CAEF"}
1
+ {"version":3,"file":"ProductBox.js","sources":["../../../../../src/components/template-context-mapper/modalElements/ProductBox.tsx"],"sourcesContent":["import BoxIcon from '@src/assets/icons/box.svg';\nimport DeleteIcon from '@src/assets/icons/delete.svg';\nimport EditIcon from '@src/assets/icons/edit.svg';\nimport styled from 'styled-components';\nimport { IconButton } from '@src/components/icon-button';\nimport { TitleSmall } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\n\nconst SimpleCardStyle = styled.div<{ width: string }>`\n\twidth: ${(props) => props.width};\n\tpadding: 12px;\n\tdisplay: flex;\n\tflex-direction: row;\n\tcolumn-gap: 14px;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground: #ffffff;\n\n\tborder: 1px solid #e0e0e0;\n\tborder-radius: 4px;\n\n\t.card-body {\n\t\twidth: 256px;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\n\t\t&__dynamic {\n\t\t\tfont-family: 'Inter';\n\t\t\tfont-style: normal;\n\t\t\tfont-weight: 400;\n\t\t\tfont-size: 16px;\n\t\t\tline-height: 24px;\n\t\t\tcolor: #731dcf;\n\n\t\t\t&__desc {\n\t\t\t\tfont-family: 'Inter';\n\t\t\t\tfont-style: normal;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 12px;\n\t\t\t\tline-height: 16px;\n\t\t\t\tcolor: #616161;\n\t\t\t}\n\t\t}\n\n\t\t&__simple {\n\t\t\tfont-family: 'Inter';\n\t\t\tfont-style: normal;\n\t\t\tfont-weight: 400;\n\t\t\tfont-size: 16px;\n\t\t\tline-height: 24px;\n\t\t\tcolor: #000000;\n\t\t}\n\t}\n`;\n\ninterface ProductBoxProps {\n\tcardBody: string;\n\tdeleteItem: any;\n\teditItem?: any;\n\thideIcon?: boolean;\n}\n\nexport const ProductBox = (props: ProductBoxProps) => {\n\tconst { cardBody, deleteItem, editItem, hideIcon } = props;\n\n\treturn (\n\t\t<SimpleCardStyle width={'100%'}>\n\t\t\t{!hideIcon && (\n\t\t\t\t<div style={{ width: 36, height: 36 }}>\n\t\t\t\t\t<BoxIcon />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className=\"card-body\">\n\t\t\t\t<TitleSmall color={COLORS.content.secondary}>{cardBody}</TitleSmall>\n\t\t\t</div>\n\t\t\t<div style={{ display: 'flex', alignItems: 'center' }}>\n\t\t\t\t{editItem && (\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\tstyle={{ display: 'flex' }}\n\t\t\t\t\t\tIcon={() => (\n\t\t\t\t\t\t\t<EditIcon\n\t\t\t\t\t\t\t\twidth={24}\n\t\t\t\t\t\t\t\theight={24}\n\t\t\t\t\t\t\t\tcolor={COLORS.content.placeholder}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonClick={(e: any) => {\n\t\t\t\t\t\t\teditItem();\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t<IconButton\n\t\t\t\t\tstyle={{ display: 'flex', color: '#919191' }}\n\t\t\t\t\tIcon={() => (\n\t\t\t\t\t\t<DeleteIcon\n\t\t\t\t\t\t\twidth={24}\n\t\t\t\t\t\t\theight={24}\n\t\t\t\t\t\t\tcolor={COLORS.content.placeholder}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\tonClick={(e: any) => {\n\t\t\t\t\t\tdeleteItem();\n\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</SimpleCardStyle>\n\t);\n};\n"],"names":["SimpleCardStyle","styled","props","ProductBox","cardBody","deleteItem","editItem","hideIcon","jsxs","jsx","BoxIcon","TitleSmall","COLORS","IconButton","EditIcon","e","DeleteIcon"],"mappings":"6dAQMA,EAAkBC,EAAAA,QAAO;AAAA,UACpBC,GAAUA,EAAM,KAAK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BV,EAAA,EACAU,EAAE,gBAAA,CACH,CAAA,CAAA,CACD,CAAA,CACD,CAAA,EACD,CAEF"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("../../../assets/icons/delete.svg.js"),C=require("../../../assets/icons/PlusIcon.js"),p=require("react"),j=require("styled-components"),v=require("../../button/Button.js"),q=require("../../checkBox/CheckBox.js"),I=require("../../icon-button/IconButton.js"),h=require("../../input/Input.js"),k=require("../../TypographyStyle.js"),S=require("../../../constants/Theme.js"),T=m=>{const{params:u,onChange:l,isError:y,variableValue:x}=m,[i,g]=p.useState(u.length>0),[a,r]=p.useState(u);return p.useEffect(()=>{r(u)},[x]),e.jsxs(P,{children:[e.jsxs("div",{style:{display:"flex"},children:[e.jsx(q.CheckBox,{isChecked:i,onValueChange:t=>{r([]),l([]),g(t)}}),e.jsx(k.TitleSmall,{style:{marginLeft:8},children:"Add custom query params"})]}),i&&a.map((t,c)=>e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx(h.Input,{placeholder:"Key",value:t.key,onChangeText:s=>{const o=a.map((n,d)=>d===c?{...n,key:s}:n);r(o),l(o)},state:y&&!t.key.length?"invalid":"none"}),e.jsx(h.Input,{placeholder:"Value",value:t.value,onChangeText:s=>{const o=a.map((n,d)=>d===c?{...n,value:s}:n);r(o),l(o)},state:y&&!t.value.length?"invalid":"none"}),e.jsx(I.IconButton,{Icon:f.default,width:20,height:20,onClick:()=>{const s=a.filter((o,n)=>n!=c);r(s),l(s)}})]},c)),i&&u.length<10&&e.jsx(v.Button,{buttonText:"Add Params",buttonType:"dashRegular",style:{display:"flex",alignItems:"center",justifyContent:"center"},IconComponent:()=>e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"},children:e.jsx(C.default,{width:16,height:16,color:S.COLORS.content.secondary})}),onClick:()=>{const t=[...a,{key:"",value:""}];r(t),l(t)}})]})},P=j.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("../../../assets/icons/delete.svg.js"),C=require("../../../assets/icons/PlusIcon.js"),y=require("react"),j=require("styled-components"),v=require("../../button/Button.js"),q=require("../../checkBox/CheckBox.js"),I=require("../../icon-button/IconButton.js"),m=require("../../input/Input.js"),k=require("../../TypographyStyle.js"),S=require("../../../constants/Theme.js"),T=n=>n&&typeof n=="object"&&"default"in n?n:{default:n},b=T(j),P=n=>{const{params:c,onChange:a,isError:h,variableValue:x}=n,[d,f]=y.useState(c.length>0),[u,s]=y.useState(c);return y.useEffect(()=>{s(c)},[x]),e.jsxs(B,{children:[e.jsxs("div",{style:{display:"flex"},children:[e.jsx(q.CheckBox,{isChecked:d,onValueChange:t=>{s([]),a([]),f(t)}}),e.jsx(k.TitleSmall,{style:{marginLeft:8},children:"Add custom query params"})]}),d&&u.map((t,i)=>e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx(m.Input,{placeholder:"Key",value:t.key,onChangeText:o=>{const l=u.map((r,p)=>p===i?{...r,key:o}:r);s(l),a(l)},state:h&&!t.key.length?"invalid":"none"}),e.jsx(m.Input,{placeholder:"Value",value:t.value,onChangeText:o=>{const l=u.map((r,p)=>p===i?{...r,value:o}:r);s(l),a(l)},state:h&&!t.value.length?"invalid":"none"}),e.jsx(I.IconButton,{Icon:g.default,width:20,height:20,onClick:()=>{const o=u.filter((l,r)=>r!=i);s(o),a(o)}})]},i)),d&&c.length<10&&e.jsx(v.Button,{buttonText:"Add Params",buttonType:"dashRegular",style:{display:"flex",alignItems:"center",justifyContent:"center"},IconComponent:()=>e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"},children:e.jsx(C.default,{width:16,height:16,color:S.COLORS.content.secondary})}),onClick:()=>{const t=[...u,{key:"",value:""}];s(t),a(t)}})]})},B=b.default.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -8,5 +8,5 @@
8
8
  justify-content: center;
9
9
  padding: 12px !important;
10
10
  }
11
- `;exports.QueryParamsComponent=T;
11
+ `;exports.QueryParamsComponent=P;
12
12
  //# sourceMappingURL=QueryParamsComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryParamsComponent.js","sources":["../../../../../src/components/template-context-mapper/modalElements/QueryParamsComponent.tsx"],"sourcesContent":["import DeleteIcon from '@src/assets/icons/delete.svg';\nimport PlusIcon from '@src/assets/icons/PlusIcon';\nimport { useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { Button } from '@src/components/button/Button';\nimport { CheckBox } from '@src/components/checkBox/CheckBox';\nimport { IconButton } from '@src/components/icon-button/IconButton';\nimport { Input } from '@src/components/input/Input';\nimport { TitleSmall } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\n\nexport const QueryParamsComponent = (props: {\n\tparams: { key: string; value: string }[];\n\tonChange: (params: { key: string; value: string }[]) => void;\n\tisError: boolean;\n\tvariableValue?: string;\n}) => {\n\tconst { params, onChange, isError, variableValue } = props;\n\tconst [isChecked, setIsChecked] = useState<boolean>(params.length > 0);\n\tconst [paramsLocal, setParamsLocal] =\n\t\tuseState<{ key: string; value: string }[]>(params);\n\n\t// When variable value changes, reset params\n\tuseEffect(() => {\n\t\tsetParamsLocal(params);\n\t}, [variableValue]);\n\n\treturn (\n\t\t<StyledQueryParamsComponent>\n\t\t\t<div style={{ display: 'flex' }}>\n\t\t\t\t<CheckBox\n\t\t\t\t\tisChecked={isChecked}\n\t\t\t\t\tonValueChange={(checked: boolean) => {\n\t\t\t\t\t\tsetParamsLocal([]);\n\t\t\t\t\t\tonChange([]);\n\t\t\t\t\t\tsetIsChecked(checked);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t<TitleSmall style={{ marginLeft: 8 }}>\n\t\t\t\t\tAdd custom query params\n\t\t\t\t</TitleSmall>\n\t\t\t</div>\n\n\t\t\t{isChecked &&\n\t\t\t\tparamsLocal.map((param, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<div style={{ display: 'flex', gap: '8px' }} key={index}>\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tplaceholder={'Key'}\n\t\t\t\t\t\t\t\tvalue={param.key}\n\t\t\t\t\t\t\t\tonChangeText={(input) => {\n\t\t\t\t\t\t\t\t\t// param.key = input;\n\t\t\t\t\t\t\t\t\tconst temp = paramsLocal.map((p, i) => {\n\t\t\t\t\t\t\t\t\t\tif (i === index) {\n\t\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t\t...p,\n\t\t\t\t\t\t\t\t\t\t\t\tkey: input,\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn p;\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tsetParamsLocal(temp);\n\t\t\t\t\t\t\t\t\tonChange(temp);\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tstate={isError && !param.key.length ? 'invalid' : 'none'}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tplaceholder={'Value'}\n\t\t\t\t\t\t\t\tvalue={param.value}\n\t\t\t\t\t\t\t\tonChangeText={(input) => {\n\t\t\t\t\t\t\t\t\t// param.key = input;\n\t\t\t\t\t\t\t\t\tconst temp = paramsLocal.map((p, i) => {\n\t\t\t\t\t\t\t\t\t\tif (i === index) {\n\t\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t\t...p,\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: input,\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn p;\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tsetParamsLocal(temp);\n\t\t\t\t\t\t\t\t\tonChange(temp);\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tstate={isError && !param.value.length ? 'invalid' : 'none'}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\tIcon={DeleteIcon}\n\t\t\t\t\t\t\t\twidth={20}\n\t\t\t\t\t\t\t\theight={20}\n\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\tconst temp = paramsLocal.filter(\n\t\t\t\t\t\t\t\t\t\t(_, curIndex) => curIndex != index,\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\tsetParamsLocal(temp);\n\t\t\t\t\t\t\t\t\tonChange(temp);\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t{isChecked && params.length < 10 && (\n\t\t\t\t<Button\n\t\t\t\t\tbuttonText={'Add Params'}\n\t\t\t\t\tbuttonType={'dashRegular'}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t}}\n\t\t\t\t\tIconComponent={() => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\twidth: '20px',\n\t\t\t\t\t\t\t\theight: '20px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<PlusIcon\n\t\t\t\t\t\t\t\twidth={16}\n\t\t\t\t\t\t\t\theight={16}\n\t\t\t\t\t\t\t\tcolor={COLORS.content.secondary}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tconst temp = [...paramsLocal, { key: '', value: '' }];\n\t\t\t\t\t\tsetParamsLocal(temp);\n\t\t\t\t\t\tonChange(temp);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</StyledQueryParamsComponent>\n\t);\n};\n\nconst StyledQueryParamsComponent = styled.div`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 12px;\n\n\t.button-container {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\tpadding: 12px !important;\n\t}\n`;\n"],"names":["QueryParamsComponent","props","params","onChange","isError","variableValue","isChecked","setIsChecked","useState","paramsLocal","setParamsLocal","useEffect","StyledQueryParamsComponent","jsxs","jsx","CheckBox","checked","TitleSmall","param","index","Input","input","temp","p","i","IconButton","DeleteIcon","_","curIndex","Button","PlusIcon","COLORS","styled"],"mappings":"ifAWaA,EAAwBC,GAK/B,CACL,KAAM,CAAE,OAAAC,EAAQ,SAAAC,EAAU,QAAAC,EAAS,cAAAC,GAAkBJ,EAC/C,CAACK,EAAWC,CAAY,EAAIC,EAAAA,SAAkBN,EAAO,OAAS,CAAC,EAC/D,CAACO,EAAaC,CAAc,EACjCF,EAAAA,SAA2CN,CAAM,EAGlDS,OAAAA,EAAAA,UAAU,IAAM,CACfD,EAAeR,CAAM,CACtB,EAAG,CAACG,CAAa,CAAC,SAGhBO,EAAA,CACA,SAAA,CAAAC,EAAAA,KAAC,MAAA,CAAI,MAAO,CAAE,QAAS,QACtB,SAAA,CAAAC,EAAAA,IAACC,EAAAA,SAAA,CACA,UAAAT,EACA,cAAgBU,GAAqB,CACpCN,EAAe,CAAA,CAAE,EACjBP,EAAS,CAAA,CAAE,EACXI,EAAaS,CAAO,CACrB,CAAA,CAAA,QAEAC,EAAAA,WAAA,CAAW,MAAO,CAAE,WAAY,CAAA,EAAK,SAA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AAA,EAGT,SAAAA,EAAAA,IAACgB,EAAAA,QAAA,CACA,MAAO,GACP,OAAQ,GACR,MAAOC,EAAAA,OAAO,QAAQ,SAAA,CAAA,CACvB,CAAA,EAGF,QAAS,IAAM,CACd,MAAMT,EAAO,CAAC,GAAGb,EAAa,CAAE,IAAK,GAAI,MAAO,GAAI,EACpDC,EAAeY,CAAI,EACnBnB,EAASmB,CAAI,CACd,CAAA,CAAA,CACD,EAEF,CAEF,EAEMV,EAA6BoB,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
1
+ {"version":3,"file":"QueryParamsComponent.js","sources":["../../../../../src/components/template-context-mapper/modalElements/QueryParamsComponent.tsx"],"sourcesContent":["import DeleteIcon from '@src/assets/icons/delete.svg';\nimport PlusIcon from '@src/assets/icons/PlusIcon';\nimport { useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { Button } from '@src/components/button/Button';\nimport { CheckBox } from '@src/components/checkBox/CheckBox';\nimport { IconButton } from '@src/components/icon-button/IconButton';\nimport { Input } from '@src/components/input/Input';\nimport { TitleSmall } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\n\nexport const QueryParamsComponent = (props: {\n\tparams: { key: string; value: string }[];\n\tonChange: (params: { key: string; value: string }[]) => void;\n\tisError: boolean;\n\tvariableValue?: string;\n}) => {\n\tconst { params, onChange, isError, variableValue } = props;\n\tconst [isChecked, setIsChecked] = useState<boolean>(params.length > 0);\n\tconst [paramsLocal, setParamsLocal] =\n\t\tuseState<{ key: string; value: string }[]>(params);\n\n\t// When variable value changes, reset params\n\tuseEffect(() => {\n\t\tsetParamsLocal(params);\n\t}, [variableValue]);\n\n\treturn (\n\t\t<StyledQueryParamsComponent>\n\t\t\t<div style={{ display: 'flex' }}>\n\t\t\t\t<CheckBox\n\t\t\t\t\tisChecked={isChecked}\n\t\t\t\t\tonValueChange={(checked: boolean) => {\n\t\t\t\t\t\tsetParamsLocal([]);\n\t\t\t\t\t\tonChange([]);\n\t\t\t\t\t\tsetIsChecked(checked);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t<TitleSmall style={{ marginLeft: 8 }}>\n\t\t\t\t\tAdd custom query params\n\t\t\t\t</TitleSmall>\n\t\t\t</div>\n\n\t\t\t{isChecked &&\n\t\t\t\tparamsLocal.map((param, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<div style={{ display: 'flex', gap: '8px' }} key={index}>\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tplaceholder={'Key'}\n\t\t\t\t\t\t\t\tvalue={param.key}\n\t\t\t\t\t\t\t\tonChangeText={(input) => {\n\t\t\t\t\t\t\t\t\t// param.key = input;\n\t\t\t\t\t\t\t\t\tconst temp = paramsLocal.map((p, i) => {\n\t\t\t\t\t\t\t\t\t\tif (i === index) {\n\t\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t\t...p,\n\t\t\t\t\t\t\t\t\t\t\t\tkey: input,\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn p;\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tsetParamsLocal(temp);\n\t\t\t\t\t\t\t\t\tonChange(temp);\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tstate={isError && !param.key.length ? 'invalid' : 'none'}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tplaceholder={'Value'}\n\t\t\t\t\t\t\t\tvalue={param.value}\n\t\t\t\t\t\t\t\tonChangeText={(input) => {\n\t\t\t\t\t\t\t\t\t// param.key = input;\n\t\t\t\t\t\t\t\t\tconst temp = paramsLocal.map((p, i) => {\n\t\t\t\t\t\t\t\t\t\tif (i === index) {\n\t\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t\t...p,\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: input,\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn p;\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tsetParamsLocal(temp);\n\t\t\t\t\t\t\t\t\tonChange(temp);\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tstate={isError && !param.value.length ? 'invalid' : 'none'}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\tIcon={DeleteIcon}\n\t\t\t\t\t\t\t\twidth={20}\n\t\t\t\t\t\t\t\theight={20}\n\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\tconst temp = paramsLocal.filter(\n\t\t\t\t\t\t\t\t\t\t(_, curIndex) => curIndex != index,\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\tsetParamsLocal(temp);\n\t\t\t\t\t\t\t\t\tonChange(temp);\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t{isChecked && params.length < 10 && (\n\t\t\t\t<Button\n\t\t\t\t\tbuttonText={'Add Params'}\n\t\t\t\t\tbuttonType={'dashRegular'}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t}}\n\t\t\t\t\tIconComponent={() => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\twidth: '20px',\n\t\t\t\t\t\t\t\theight: '20px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<PlusIcon\n\t\t\t\t\t\t\t\twidth={16}\n\t\t\t\t\t\t\t\theight={16}\n\t\t\t\t\t\t\t\tcolor={COLORS.content.secondary}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tconst temp = [...paramsLocal, { key: '', value: '' }];\n\t\t\t\t\t\tsetParamsLocal(temp);\n\t\t\t\t\t\tonChange(temp);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</StyledQueryParamsComponent>\n\t);\n};\n\nconst StyledQueryParamsComponent = styled.div`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 12px;\n\n\t.button-container {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\tpadding: 12px !important;\n\t}\n`;\n"],"names":["QueryParamsComponent","props","params","onChange","isError","variableValue","isChecked","setIsChecked","useState","paramsLocal","setParamsLocal","useEffect","StyledQueryParamsComponent","jsxs","jsx","CheckBox","checked","TitleSmall","param","index","Input","input","temp","p","i","IconButton","DeleteIcon","_","curIndex","Button","PlusIcon","COLORS","styled"],"mappings":"gjBAWaA,EAAwBC,GAK/B,CACL,KAAM,CAAE,OAAAC,EAAQ,SAAAC,EAAU,QAAAC,EAAS,cAAAC,GAAkBJ,EAC/C,CAACK,EAAWC,CAAY,EAAIC,EAAAA,SAAkBN,EAAO,OAAS,CAAC,EAC/D,CAACO,EAAaC,CAAc,EACjCF,EAAAA,SAA2CN,CAAM,EAGlDS,OAAAA,EAAAA,UAAU,IAAM,CACfD,EAAeR,CAAM,CACtB,EAAG,CAACG,CAAa,CAAC,SAGhBO,EAAA,CACA,SAAA,CAAAC,EAAAA,KAAC,MAAA,CAAI,MAAO,CAAE,QAAS,QACtB,SAAA,CAAAC,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