@bikdotai/bik-component-library 0.0.748-beta.62 → 0.0.748-beta.64

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 (879) hide show
  1. package/dist/cjs/_virtual/_tslib.js +1 -1
  2. package/dist/cjs/amplitude/index.js +1 -1
  3. package/dist/cjs/assets/icons/AiEdit.svg.js +1 -1
  4. package/dist/cjs/assets/icons/Ai_event_generating.svg.js +1 -1
  5. package/dist/cjs/assets/icons/Bik_logo.svg.js +1 -1
  6. package/dist/cjs/assets/icons/ChartBar.svg.js +1 -1
  7. package/dist/cjs/assets/icons/ChartPie.svg.js +1 -1
  8. package/dist/cjs/assets/icons/HelpIcon.svg.js +1 -1
  9. package/dist/cjs/assets/icons/Idea.svg.js +1 -1
  10. package/dist/cjs/assets/icons/RCS_PDF.svg.js +1 -1
  11. package/dist/cjs/assets/icons/RedirectToNew.svg.js +1 -1
  12. package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +1 -1
  13. package/dist/cjs/assets/icons/aiContentIcon.svg.js +1 -1
  14. package/dist/cjs/assets/icons/alert.svg.js +1 -1
  15. package/dist/cjs/assets/icons/alert_triangle.svg.js +1 -1
  16. package/dist/cjs/assets/icons/arrow_back.svg.js +1 -1
  17. package/dist/cjs/assets/icons/arrow_down.svg.js +1 -1
  18. package/dist/cjs/assets/icons/arrow_left.svg.js +1 -1
  19. package/dist/cjs/assets/icons/arrow_up.svg.js +1 -1
  20. package/dist/cjs/assets/icons/back_icon.svg.js +1 -1
  21. package/dist/cjs/assets/icons/bik_livechat.svg.js +1 -1
  22. package/dist/cjs/assets/icons/bold.svg.js +1 -1
  23. package/dist/cjs/assets/icons/box.svg.js +1 -1
  24. package/dist/cjs/assets/icons/boxV2.svg.js +1 -1
  25. package/dist/cjs/assets/icons/box_round.svg.js +1 -1
  26. package/dist/cjs/assets/icons/box_search.svg.js +1 -1
  27. package/dist/cjs/assets/icons/broken_media_image.svg.js +1 -1
  28. package/dist/cjs/assets/icons/calendar.svg.js +1 -1
  29. package/dist/cjs/assets/icons/card_footer_arraw.svg.js +1 -1
  30. package/dist/cjs/assets/icons/chat-channel.svg.js +1 -1
  31. package/dist/cjs/assets/icons/check.svg.js +1 -1
  32. package/dist/cjs/assets/icons/checkCircle.svg.js +1 -1
  33. package/dist/cjs/assets/icons/checklistIcon.svg.js +1 -1
  34. package/dist/cjs/assets/icons/chevronDown.svg.js +1 -1
  35. package/dist/cjs/assets/icons/chevronDownOutline.svg.js +1 -1
  36. package/dist/cjs/assets/icons/chevronLeft.svg.js +1 -1
  37. package/dist/cjs/assets/icons/chevronLeft2.svg.js +1 -1
  38. package/dist/cjs/assets/icons/chevronRight.svg.js +1 -1
  39. package/dist/cjs/assets/icons/chevronRight2.svg.js +1 -1
  40. package/dist/cjs/assets/icons/chevronRightAlt.svg.js +1 -1
  41. package/dist/cjs/assets/icons/chevronUpOutline.svg.js +1 -1
  42. package/dist/cjs/assets/icons/click.svg.js +1 -1
  43. package/dist/cjs/assets/icons/clock.svg.js +1 -1
  44. package/dist/cjs/assets/icons/copy-code-icon.svg.js +1 -1
  45. package/dist/cjs/assets/icons/cross.svg.js +1 -1
  46. package/dist/cjs/assets/icons/cubeIcon.svg.js +1 -1
  47. package/dist/cjs/assets/icons/cursor.svg.js +1 -1
  48. package/dist/cjs/assets/icons/delete.svg.js +1 -1
  49. package/dist/cjs/assets/icons/desktop_custom.svg.js +1 -1
  50. package/dist/cjs/assets/icons/document_pdf.svg.js +1 -1
  51. package/dist/cjs/assets/icons/drag_handle.svg.js +1 -1
  52. package/dist/cjs/assets/icons/edit.svg.js +1 -1
  53. package/dist/cjs/assets/icons/email-channel.svg.js +1 -1
  54. package/dist/cjs/assets/icons/emoji.svg.js +1 -1
  55. package/dist/cjs/assets/icons/errorIcon.svg.js +1 -1
  56. package/dist/cjs/assets/icons/errorInfo.svg.js +1 -1
  57. package/dist/cjs/assets/icons/expressionless_emoji.svg.js +1 -1
  58. package/dist/cjs/assets/icons/facebook_channel.svg.js +1 -1
  59. package/dist/cjs/assets/icons/file.svg.js +1 -1
  60. package/dist/cjs/assets/icons/filePdf.svg.js +1 -1
  61. package/dist/cjs/assets/icons/gift_icon.svg.js +1 -1
  62. package/dist/cjs/assets/icons/gmail.svg.js +1 -1
  63. package/dist/cjs/assets/icons/graph.svg.js +1 -1
  64. package/dist/cjs/assets/icons/halfRectangle.svg.js +1 -1
  65. package/dist/cjs/assets/icons/help.svg.js +1 -1
  66. package/dist/cjs/assets/icons/horizontal_dots.svg.js +1 -1
  67. package/dist/cjs/assets/icons/image.svg.js +1 -1
  68. package/dist/cjs/assets/icons/info.svg.js +1 -1
  69. package/dist/cjs/assets/icons/instagram-channel.svg.js +1 -1
  70. package/dist/cjs/assets/icons/instagram.svg.js +1 -1
  71. package/dist/cjs/assets/icons/italic.svg.js +1 -1
  72. package/dist/cjs/assets/icons/locked.svg.js +1 -1
  73. package/dist/cjs/assets/icons/log_out.svg.js +1 -1
  74. package/dist/cjs/assets/icons/lto_icon.svg.js +1 -1
  75. package/dist/cjs/assets/icons/maximize.svg.js +1 -1
  76. package/dist/cjs/assets/icons/mobile_custom.svg.js +1 -1
  77. package/dist/cjs/assets/icons/more_vertical.svg.js +1 -1
  78. package/dist/cjs/assets/icons/openai.svg.js +1 -1
  79. package/dist/cjs/assets/icons/percentage_icon.svg.js +1 -1
  80. package/dist/cjs/assets/icons/phone.svg.js +1 -1
  81. package/dist/cjs/assets/icons/phone_round.svg.js +1 -1
  82. package/dist/cjs/assets/icons/plus.svg.js +1 -1
  83. package/dist/cjs/assets/icons/qrb.svg.js +1 -1
  84. package/dist/cjs/assets/icons/question-mark.svg.js +1 -1
  85. package/dist/cjs/assets/icons/quotes.svg.js +1 -1
  86. package/dist/cjs/assets/icons/redirect.svg.js +1 -1
  87. package/dist/cjs/assets/icons/refresh.svg.js +1 -1
  88. package/dist/cjs/assets/icons/retryIcon.svg.js +1 -1
  89. package/dist/cjs/assets/icons/sad_emoji.svg.js +1 -1
  90. package/dist/cjs/assets/icons/search.svg.js +1 -1
  91. package/dist/cjs/assets/icons/searchIcon.svg.js +1 -1
  92. package/dist/cjs/assets/icons/send_template.svg.js +1 -1
  93. package/dist/cjs/assets/icons/shipping_icon.svg.js +1 -1
  94. package/dist/cjs/assets/icons/similar.svg.js +1 -1
  95. package/dist/cjs/assets/icons/smiley_emoji.svg.js +1 -1
  96. package/dist/cjs/assets/icons/sparkle.svg.js +1 -1
  97. package/dist/cjs/assets/icons/speedometer.svg.js +1 -1
  98. package/dist/cjs/assets/icons/starEmpty.svg.js +1 -1
  99. package/dist/cjs/assets/icons/starFilled.svg.js +1 -1
  100. package/dist/cjs/assets/icons/starFilledV2.svg.js +1 -1
  101. package/dist/cjs/assets/icons/state_icon.svg.js +1 -1
  102. package/dist/cjs/assets/icons/strikeThrough.svg.js +1 -1
  103. package/dist/cjs/assets/icons/sub_category.svg.js +1 -1
  104. package/dist/cjs/assets/icons/successIcon.svg.js +1 -1
  105. package/dist/cjs/assets/icons/sync.svg.js +1 -1
  106. package/dist/cjs/assets/icons/task.svg.js +1 -1
  107. package/dist/cjs/assets/icons/text_t9.svg.js +1 -1
  108. package/dist/cjs/assets/icons/tick.svg.js +1 -1
  109. package/dist/cjs/assets/icons/tick_double.svg.js +1 -1
  110. package/dist/cjs/assets/icons/triangle_error.svg.js +1 -1
  111. package/dist/cjs/assets/icons/undo.svg.js +1 -1
  112. package/dist/cjs/assets/icons/union.svg.js +1 -1
  113. package/dist/cjs/assets/icons/upload.svg.js +1 -1
  114. package/dist/cjs/assets/icons/user_icon.svg.js +1 -1
  115. package/dist/cjs/assets/icons/vertical_dots.svg.js +1 -1
  116. package/dist/cjs/assets/icons/videoRecorder.svg.js +1 -1
  117. package/dist/cjs/assets/icons/warning.svg.js +1 -1
  118. package/dist/cjs/assets/icons/warningIcon.svg.js +1 -1
  119. package/dist/cjs/assets/icons/website.svg.js +1 -1
  120. package/dist/cjs/assets/icons/whatsNew.svg.js +1 -1
  121. package/dist/cjs/assets/icons/whatsapp-channel.svg.js +1 -1
  122. package/dist/cjs/assets/icons/whatsapp_color.svg.js +1 -1
  123. package/dist/cjs/components/BikGiftedChat/Bubble/Bubble.js +1 -1
  124. package/dist/cjs/components/BikGiftedChat/GiftedChat/Day.js +1 -1
  125. package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js +1 -1
  126. package/dist/cjs/components/BikGiftedChat/GiftedChat/scrollHooks.js +1 -1
  127. package/dist/cjs/components/InfiniteScroll/InfiniteScroll.js +1 -1
  128. package/dist/cjs/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  129. package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  130. package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  131. package/dist/cjs/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  132. package/dist/cjs/components/QueryBuilder/QueryBuilder.js +1 -1
  133. package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.js +1 -1
  134. package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  135. package/dist/cjs/components/QueryBuilder/components/AddNodeButton.js +1 -1
  136. package/dist/cjs/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
  137. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
  138. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
  139. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +1 -1
  140. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.js +1 -1
  141. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  142. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  143. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
  144. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
  145. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
  146. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  147. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
  148. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  149. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
  150. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
  151. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
  152. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  153. package/dist/cjs/components/QueryBuilder/components/DeleteButton.js +1 -1
  154. package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js +1 -1
  155. package/dist/cjs/components/QueryBuilder/components/InputLoader.js +4 -4
  156. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
  157. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
  158. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
  159. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -1
  160. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  161. package/dist/cjs/components/QueryBuilder/helpers/ApiResponse.helper.js +1 -1
  162. package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.js +1 -1
  163. package/dist/cjs/components/QueryBuilder/hooks/useQueryBuilderCache.js +1 -1
  164. package/dist/cjs/components/QueryBuilder/redux/queryBuilder.reducer.js +1 -1
  165. package/dist/cjs/components/QueryBuilder/redux/selectors/useQueryBuilderCacheSelector.js +1 -1
  166. package/dist/cjs/components/SearchFilter/components/DatePickerButton.js +1 -1
  167. package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js +1 -1
  168. package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  169. package/dist/cjs/components/SearchFilter/index.js +1 -1
  170. package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
  171. package/dist/cjs/components/TablePagination/TablePaginationCard.js +1 -1
  172. package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.js +1 -1
  173. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
  174. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +1 -1
  175. package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
  176. package/dist/cjs/components/accordion/Accordion.js +1 -1
  177. package/dist/cjs/components/accordion/AccordionArrow.js +1 -1
  178. package/dist/cjs/components/action-button/ActionButtons.js +1 -1
  179. package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
  180. package/dist/cjs/components/ai-modals/ActivateBikAI.js +1 -1
  181. package/dist/cjs/components/ai-modals/AiCreditsExhausted.js +1 -1
  182. package/dist/cjs/components/ai-modals/AiCreditsLow.js +1 -1
  183. package/dist/cjs/components/ai-modals/AiSyncProgress.js +1 -1
  184. package/dist/cjs/components/analytics-card/AnalyticsCard.js +1 -1
  185. package/dist/cjs/components/analytics-card/AnalyticsCard.styled.js +1 -1
  186. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  187. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
  188. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
  189. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  190. package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
  191. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  192. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +1 -1
  193. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
  194. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +1 -1
  195. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +1 -1
  196. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  197. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  198. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -1
  199. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
  200. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
  201. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  202. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  203. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +1 -1
  204. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +1 -1
  205. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
  206. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +1 -1
  207. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -1
  208. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -1
  209. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -1
  210. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +1 -1
  211. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +1 -1
  212. package/dist/cjs/components/avatar/Avatar.js +1 -1
  213. package/dist/cjs/components/banner/BannerInline.js +1 -1
  214. package/dist/cjs/components/banner/CardBanner.js +1 -1
  215. package/dist/cjs/components/bik-chatbot/components/AIChat.js +1 -1
  216. package/dist/cjs/components/bik-chatbot/components/BIKChatbot.js +1 -1
  217. package/dist/cjs/components/bik-chatbot/components/ChatLoadingState.js +1 -1
  218. package/dist/cjs/components/bik-chatbot/components/ChatWindow.js +1 -1
  219. package/dist/cjs/components/bik-chatbot/components/ThinkingIndicator.js +1 -1
  220. package/dist/cjs/components/bik-chatbot/contexts/AIContext.js +1 -1
  221. package/dist/cjs/components/bik-chatbot/services/aiService.js +1 -1
  222. package/dist/cjs/components/bik-chatbot/services/callToChatbot.js +1 -1
  223. package/dist/cjs/components/bik-chatbot/services/db.js +1 -1
  224. package/dist/cjs/components/bik-chatbot/services/useAIChat.js +1 -1
  225. package/dist/cjs/components/bik-chatbot/utils/markdown.js +1 -1
  226. package/dist/cjs/components/bik-layout/BikProfile.js +1 -1
  227. package/dist/cjs/components/bik-layout/BikSidebar.js +1 -1
  228. package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
  229. package/dist/cjs/components/bik-layout/SidebarPopup.js +1 -1
  230. package/dist/cjs/components/bik-layout/SidebarSkeleton.js +1 -1
  231. package/dist/cjs/components/bik-layout/SimpleSidebar.js +1 -1
  232. package/dist/cjs/components/button/Button.js +1 -1
  233. package/dist/cjs/components/button/Button.styled.js +1 -1
  234. package/dist/cjs/components/button/themes.js +1 -1
  235. package/dist/cjs/components/buttonGroup/ButtonGroup.js +1 -1
  236. package/dist/cjs/components/card-selection-modal/CardSelectionModal.js +1 -1
  237. package/dist/cjs/components/card-selector/CardSelectorGroup.js +1 -1
  238. package/dist/cjs/components/carousel-preview/CarouselPreview.js +1 -1
  239. package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js +1 -1
  240. package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
  241. package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.js +1 -1
  242. package/dist/cjs/components/checkBox/CheckBox.js +1 -1
  243. package/dist/cjs/components/checkList/CheckList.js +1 -1
  244. package/dist/cjs/components/code-block/CodeBlock.js +1 -1
  245. package/dist/cjs/components/code-block/CodeBlock.styled.js +33 -33
  246. package/dist/cjs/components/code-block/CodeBlockHelper.js +1 -1
  247. package/dist/cjs/components/country-code-picker/CountryCodePicker.js +1 -1
  248. package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.js +1 -1
  249. package/dist/cjs/components/country-code-picker/CountryPicker.js +1 -1
  250. package/dist/cjs/components/country-code-picker/CountryPicker.styled.js +1 -1
  251. package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
  252. package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  253. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  254. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.js +1 -1
  255. package/dist/cjs/components/dashboard-review-popup/components/Form.js +1 -1
  256. package/dist/cjs/components/dashboard-review-popup/components/Form.styled.js +1 -1
  257. package/dist/cjs/components/dashboard-review-popup/components/ZeroState.js +1 -1
  258. package/dist/cjs/components/data-source-panel/DataSourceInfoFooter.js +1 -1
  259. package/dist/cjs/components/data-source-panel/DataSourcePanel.js +1 -1
  260. package/dist/cjs/components/data-source-panel/Modals/DescriptionModal.js +1 -1
  261. package/dist/cjs/components/datePicker/DatePicker.js +1 -1
  262. package/dist/cjs/components/datePicker/DatePicker.styled.js +1 -1
  263. package/dist/cjs/components/datePicker/DatePickerWrapper.js +1 -1
  264. package/dist/cjs/components/datePicker/TimePicker.js +1 -1
  265. package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  266. package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
  267. package/dist/cjs/components/discount-modal/DiscountModal.styled.js +1 -1
  268. package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
  269. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  270. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +6 -6
  271. package/dist/cjs/components/dot-pulse/DotPulse.js +2 -2
  272. package/dist/cjs/components/dropShadow/DropShadow.js +1 -1
  273. package/dist/cjs/components/dropdown/ChipInput.js +1 -1
  274. package/dist/cjs/components/dropdown/Dropdown.js +1 -1
  275. package/dist/cjs/components/dropdown/DropdownPopover/index.js +1 -1
  276. package/dist/cjs/components/dropdown/MultilevelDropdownPopover/index.js +1 -1
  277. package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  278. package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
  279. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
  280. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +5 -5
  281. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  282. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
  283. package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
  284. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
  285. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
  286. package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
  287. package/dist/cjs/components/dropdown/hooks/useDropdown.js +1 -1
  288. package/dist/cjs/components/dynamic-tabs/DynamicTabs.js +1 -1
  289. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  290. package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js +1 -1
  291. package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js +1 -1
  292. package/dist/cjs/components/feature-announcements/VideoModal.js +1 -1
  293. package/dist/cjs/components/feature-announcements/hooks/useFeatureAnnouncements.js +1 -1
  294. package/dist/cjs/components/feature-announcements/utils/animationHelpers.js +1 -1
  295. package/dist/cjs/components/feature-announcements/utils/elementHelpers.js +1 -1
  296. package/dist/cjs/components/file-uploader/FileUploader.js +1 -1
  297. package/dist/cjs/components/floater/floater.js +1 -1
  298. package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.js +4 -4
  299. package/dist/cjs/components/icon-button/IconButton.js +1 -1
  300. package/dist/cjs/components/image-compress/ImageCompress.js +1 -1
  301. package/dist/cjs/components/image-cropper/BikImageCropper.js +1 -1
  302. package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
  303. package/dist/cjs/components/input/ChipInput.js +1 -1
  304. package/dist/cjs/components/input/Input-helper.js +1 -1
  305. package/dist/cjs/components/input/Input.js +1 -1
  306. package/dist/cjs/components/input/Input.styled.js +1 -1
  307. package/dist/cjs/components/input-with-vars/InputWithVariables.js +1 -1
  308. package/dist/cjs/components/keywords-input/KeywordsInput.js +1 -1
  309. package/dist/cjs/components/list-item/ListItem.js +1 -1
  310. package/dist/cjs/components/list-item/ListItem.styled.js +1 -1
  311. package/dist/cjs/components/markdown/MarkdownRender.js +1 -1
  312. package/dist/cjs/components/markdown/utils.js +1 -1
  313. package/dist/cjs/components/modals/Modal.js +1 -1
  314. package/dist/cjs/components/modals/modal.styled.js +1 -1
  315. package/dist/cjs/components/modals/styledModal.js +1 -1
  316. package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.js +1 -1
  317. package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -1
  318. package/dist/cjs/components/multi-level-dropdown/MenuList.js +1 -1
  319. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  320. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.styled.js +20 -20
  321. package/dist/cjs/components/pagination/Pagination.js +1 -1
  322. package/dist/cjs/components/plans/NewSubscriptionPlan.js +1 -1
  323. package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
  324. package/dist/cjs/components/plans/SubscriptionPlanSelector.js +1 -1
  325. package/dist/cjs/components/plans/SubscriptionPlanStyled.js +1 -1
  326. package/dist/cjs/components/plans/SubscriptionPlansCollected.js +1 -1
  327. package/dist/cjs/components/postPicker/postPicker.js +1 -1
  328. package/dist/cjs/components/product-picker/ProductPickerModal.js +1 -1
  329. package/dist/cjs/components/product-picker-v2/ProductPickerShimmer.js +1 -1
  330. package/dist/cjs/components/product-picker-v2/collectionScreen.js +1 -1
  331. package/dist/cjs/components/product-picker-v2/emptyState.js +1 -1
  332. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +1 -1
  333. package/dist/cjs/components/product-picker-v2/modal.js +1 -1
  334. package/dist/cjs/components/product-picker-v2/product.js +1 -1
  335. package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
  336. package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +1 -1
  337. package/dist/cjs/components/product-picker-v2/searchScreen.js +1 -1
  338. package/dist/cjs/components/product-picker-v2/selectedScreen.js +1 -1
  339. package/dist/cjs/components/product-picker-v2/utility.js +1 -1
  340. package/dist/cjs/components/product-picker-v2/variantComponents.js +1 -1
  341. package/dist/cjs/components/progress-bar/CircularProgressBar.js +1 -1
  342. package/dist/cjs/components/progress-bar/ProgressBarComponent.js +1 -1
  343. package/dist/cjs/components/progress-bar-v2/ProgressBarV2.js +1 -1
  344. package/dist/cjs/components/radioButton/RadioButton.js +1 -1
  345. package/dist/cjs/components/radioList/RadioList.js +1 -1
  346. package/dist/cjs/components/resizeImage/index.js +1 -1
  347. package/dist/cjs/components/sample-button/themes.d.ts +1 -1
  348. package/dist/cjs/components/searchBar/searchBar.js +1 -1
  349. package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
  350. package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.js +1 -1
  351. package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
  352. package/dist/cjs/components/side-modal/SideModal.js +1 -1
  353. package/dist/cjs/components/side-modal/SideModal.style.js +16 -16
  354. package/dist/cjs/components/slider/slider.js +1 -1
  355. package/dist/cjs/components/spinner/Spinner.js +1 -1
  356. package/dist/cjs/components/star-rating/Star.js +1 -1
  357. package/dist/cjs/components/star-rating/StarRating.js +1 -1
  358. package/dist/cjs/components/states/ShopifyScopeWrapper.js +1 -1
  359. package/dist/cjs/components/stepper/Stepper.js +1 -1
  360. package/dist/cjs/components/switch/Switch.js +1 -1
  361. package/dist/cjs/components/tabs/Tabs.js +1 -1
  362. package/dist/cjs/components/tabs/Tabs.styles.js +1 -1
  363. package/dist/cjs/components/tag/Tag.js +1 -1
  364. package/dist/cjs/components/tag/Tag.styled.js +1 -1
  365. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
  366. package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -1
  367. package/dist/cjs/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
  368. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +1 -1
  369. package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
  370. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  371. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  372. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  373. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  374. package/dist/cjs/components/template-context-mapper/modalElements/Footer.js +4 -4
  375. package/dist/cjs/components/template-context-mapper/modalElements/Header.js +1 -1
  376. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +1 -1
  377. package/dist/cjs/components/template-context-mapper/modalElements/QueryParamsComponent.js +1 -1
  378. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
  379. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -1
  380. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  381. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +1 -1
  382. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  383. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +1 -1
  384. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +2 -2
  385. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  386. package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  387. package/dist/cjs/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.js +1 -1
  388. package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
  389. package/dist/cjs/components/template-context-mapper/utils/highlightFor.js +1 -1
  390. package/dist/cjs/components/template-context-mapper/utils/validateName.js +1 -1
  391. package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  392. package/dist/cjs/components/template-preview/RCS/RCSButtons.js +1 -1
  393. package/dist/cjs/components/template-preview/RCS/RCSChatPreview.js +1 -1
  394. package/dist/cjs/components/template-preview/RCS/RCSMediaCard.js +1 -1
  395. package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
  396. package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
  397. package/dist/cjs/components/template-preview/WhatsApp/ChatBtn.js +1 -1
  398. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.js +1 -1
  399. package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +1 -1
  400. package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -1
  401. package/dist/cjs/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +1 -1
  402. package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  403. package/dist/cjs/components/template-preview/helpers/SmsTemplateHelper.js +1 -1
  404. package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
  405. package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js +1 -1
  406. package/dist/cjs/components/template-preview/utils/TemplateHelperUtils.js +1 -1
  407. package/dist/cjs/components/template-preview/utils/getPreviewPropLen.js +1 -1
  408. package/dist/cjs/components/template-preview/webpush/WebpushPreview.js +1 -1
  409. package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +1 -1
  410. package/dist/cjs/components/text-picker/TextPickerCategoryCard.js +5 -5
  411. package/dist/cjs/components/text-picker/TextPickerFooter.js +3 -3
  412. package/dist/cjs/components/text-picker/TextPickerItemRow.js +4 -4
  413. package/dist/cjs/components/text-picker/TextPickerModal.js +1 -1
  414. package/dist/cjs/components/text-picker/TextPickerSelectAllRow.js +4 -4
  415. package/dist/cjs/components/toaster/Toaster.js +1 -1
  416. package/dist/cjs/components/toaster/Toaster.styled.js +1 -1
  417. package/dist/cjs/components/tooltips/TooltipInternal.js +1 -1
  418. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js +1 -1
  419. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -1
  420. package/dist/cjs/components/variable-picker-v3/Content.js +1 -1
  421. package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js +1 -1
  422. package/dist/cjs/components/variable-picker-v3/recommendVaribles.js +1 -1
  423. package/dist/cjs/components/variable-picker-v3/searchVariables.js +1 -1
  424. package/dist/cjs/components/whats-new/WhatsNew.js +1 -1
  425. package/dist/cjs/components/whats-new/WhatsNewButton.js +1 -1
  426. package/dist/cjs/components/whats-new/WhatsNewPanel.js +1 -1
  427. package/dist/cjs/components/whats-new/WhatsNewProvider.js +1 -1
  428. package/dist/cjs/components/whats-new/useWhatsNew.js +1 -1
  429. package/dist/cjs/helpers/BaseWhatsappContentLang.helper.js +1 -1
  430. package/dist/cjs/hooks/useCurreny.js +1 -1
  431. package/dist/cjs/hooks/useOutside.js +1 -1
  432. package/dist/cjs/hooks/useWindowSize.js +1 -1
  433. package/dist/cjs/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js +1 -1
  434. package/dist/cjs/node_modules/immer/dist/immer.esm.mjs.js +1 -1
  435. package/dist/cjs/node_modules/lodash.debounce/index.js +1 -1
  436. package/dist/cjs/utils/DateUtils.js +1 -1
  437. package/dist/cjs/utils/StringUtils.js +1 -1
  438. package/dist/cjs/utils/resizeImage.js +1 -1
  439. package/dist/cjs/utils/unCamelCase.js +1 -1
  440. package/dist/esm/_virtual/_tslib.js +1 -1
  441. package/dist/esm/amplitude/index.js +1 -1
  442. package/dist/esm/assets/icons/AiEdit.svg.js +1 -1
  443. package/dist/esm/assets/icons/Ai_event_generating.svg.js +1 -1
  444. package/dist/esm/assets/icons/Bik_logo.svg.js +1 -1
  445. package/dist/esm/assets/icons/ChartBar.svg.js +1 -1
  446. package/dist/esm/assets/icons/ChartPie.svg.js +1 -1
  447. package/dist/esm/assets/icons/HelpIcon.svg.js +1 -1
  448. package/dist/esm/assets/icons/Idea.svg.js +1 -1
  449. package/dist/esm/assets/icons/RCS_PDF.svg.js +1 -1
  450. package/dist/esm/assets/icons/RedirectToNew.svg.js +1 -1
  451. package/dist/esm/assets/icons/WhiteStarFilled.svg.js +1 -1
  452. package/dist/esm/assets/icons/aiContentIcon.svg.js +1 -1
  453. package/dist/esm/assets/icons/alert.svg.js +1 -1
  454. package/dist/esm/assets/icons/alert_triangle.svg.js +1 -1
  455. package/dist/esm/assets/icons/arrow_back.svg.js +1 -1
  456. package/dist/esm/assets/icons/arrow_down.svg.js +1 -1
  457. package/dist/esm/assets/icons/arrow_left.svg.js +1 -1
  458. package/dist/esm/assets/icons/arrow_up.svg.js +1 -1
  459. package/dist/esm/assets/icons/back_icon.svg.js +1 -1
  460. package/dist/esm/assets/icons/bik_livechat.svg.js +1 -1
  461. package/dist/esm/assets/icons/bold.svg.js +1 -1
  462. package/dist/esm/assets/icons/box.svg.js +1 -1
  463. package/dist/esm/assets/icons/boxV2.svg.js +1 -1
  464. package/dist/esm/assets/icons/box_round.svg.js +1 -1
  465. package/dist/esm/assets/icons/box_search.svg.js +1 -1
  466. package/dist/esm/assets/icons/broken_media_image.svg.js +1 -1
  467. package/dist/esm/assets/icons/calendar.svg.js +1 -1
  468. package/dist/esm/assets/icons/card_footer_arraw.svg.js +1 -1
  469. package/dist/esm/assets/icons/chat-channel.svg.js +1 -1
  470. package/dist/esm/assets/icons/check.svg.js +1 -1
  471. package/dist/esm/assets/icons/checkCircle.svg.js +1 -1
  472. package/dist/esm/assets/icons/checklistIcon.svg.js +1 -1
  473. package/dist/esm/assets/icons/chevronDown.svg.js +1 -1
  474. package/dist/esm/assets/icons/chevronDownOutline.svg.js +1 -1
  475. package/dist/esm/assets/icons/chevronLeft.svg.js +1 -1
  476. package/dist/esm/assets/icons/chevronLeft2.svg.js +1 -1
  477. package/dist/esm/assets/icons/chevronRight.svg.js +1 -1
  478. package/dist/esm/assets/icons/chevronRight2.svg.js +1 -1
  479. package/dist/esm/assets/icons/chevronRightAlt.svg.js +1 -1
  480. package/dist/esm/assets/icons/chevronUpOutline.svg.js +1 -1
  481. package/dist/esm/assets/icons/click.svg.js +1 -1
  482. package/dist/esm/assets/icons/clock.svg.js +1 -1
  483. package/dist/esm/assets/icons/copy-code-icon.svg.js +1 -1
  484. package/dist/esm/assets/icons/cross.svg.js +1 -1
  485. package/dist/esm/assets/icons/cubeIcon.svg.js +1 -1
  486. package/dist/esm/assets/icons/cursor.svg.js +1 -1
  487. package/dist/esm/assets/icons/delete.svg.js +1 -1
  488. package/dist/esm/assets/icons/desktop_custom.svg.js +1 -1
  489. package/dist/esm/assets/icons/document_pdf.svg.js +1 -1
  490. package/dist/esm/assets/icons/drag_handle.svg.js +1 -1
  491. package/dist/esm/assets/icons/edit.svg.js +1 -1
  492. package/dist/esm/assets/icons/email-channel.svg.js +1 -1
  493. package/dist/esm/assets/icons/emoji.svg.js +1 -1
  494. package/dist/esm/assets/icons/errorIcon.svg.js +1 -1
  495. package/dist/esm/assets/icons/errorInfo.svg.js +1 -1
  496. package/dist/esm/assets/icons/expressionless_emoji.svg.js +1 -1
  497. package/dist/esm/assets/icons/facebook_channel.svg.js +1 -1
  498. package/dist/esm/assets/icons/file.svg.js +1 -1
  499. package/dist/esm/assets/icons/filePdf.svg.js +1 -1
  500. package/dist/esm/assets/icons/gift_icon.svg.js +1 -1
  501. package/dist/esm/assets/icons/gmail.svg.js +1 -1
  502. package/dist/esm/assets/icons/graph.svg.js +1 -1
  503. package/dist/esm/assets/icons/halfRectangle.svg.js +1 -1
  504. package/dist/esm/assets/icons/help.svg.js +1 -1
  505. package/dist/esm/assets/icons/horizontal_dots.svg.js +1 -1
  506. package/dist/esm/assets/icons/image.svg.js +1 -1
  507. package/dist/esm/assets/icons/info.svg.js +1 -1
  508. package/dist/esm/assets/icons/instagram-channel.svg.js +1 -1
  509. package/dist/esm/assets/icons/instagram.svg.js +1 -1
  510. package/dist/esm/assets/icons/italic.svg.js +1 -1
  511. package/dist/esm/assets/icons/locked.svg.js +1 -1
  512. package/dist/esm/assets/icons/log_out.svg.js +1 -1
  513. package/dist/esm/assets/icons/lto_icon.svg.js +1 -1
  514. package/dist/esm/assets/icons/maximize.svg.js +1 -1
  515. package/dist/esm/assets/icons/mobile_custom.svg.js +1 -1
  516. package/dist/esm/assets/icons/more_vertical.svg.js +1 -1
  517. package/dist/esm/assets/icons/openai.svg.js +1 -1
  518. package/dist/esm/assets/icons/percentage_icon.svg.js +1 -1
  519. package/dist/esm/assets/icons/phone.svg.js +1 -1
  520. package/dist/esm/assets/icons/phone_round.svg.js +1 -1
  521. package/dist/esm/assets/icons/plus.svg.js +1 -1
  522. package/dist/esm/assets/icons/qrb.svg.js +1 -1
  523. package/dist/esm/assets/icons/question-mark.svg.js +1 -1
  524. package/dist/esm/assets/icons/quotes.svg.js +1 -1
  525. package/dist/esm/assets/icons/redirect.svg.js +1 -1
  526. package/dist/esm/assets/icons/refresh.svg.js +1 -1
  527. package/dist/esm/assets/icons/retryIcon.svg.js +1 -1
  528. package/dist/esm/assets/icons/sad_emoji.svg.js +1 -1
  529. package/dist/esm/assets/icons/search.svg.js +1 -1
  530. package/dist/esm/assets/icons/searchIcon.svg.js +1 -1
  531. package/dist/esm/assets/icons/send_template.svg.js +1 -1
  532. package/dist/esm/assets/icons/shipping_icon.svg.js +1 -1
  533. package/dist/esm/assets/icons/similar.svg.js +1 -1
  534. package/dist/esm/assets/icons/smiley_emoji.svg.js +1 -1
  535. package/dist/esm/assets/icons/sparkle.svg.js +1 -1
  536. package/dist/esm/assets/icons/speedometer.svg.js +1 -1
  537. package/dist/esm/assets/icons/starEmpty.svg.js +1 -1
  538. package/dist/esm/assets/icons/starFilled.svg.js +1 -1
  539. package/dist/esm/assets/icons/starFilledV2.svg.js +1 -1
  540. package/dist/esm/assets/icons/state_icon.svg.js +1 -1
  541. package/dist/esm/assets/icons/strikeThrough.svg.js +1 -1
  542. package/dist/esm/assets/icons/sub_category.svg.js +1 -1
  543. package/dist/esm/assets/icons/successIcon.svg.js +1 -1
  544. package/dist/esm/assets/icons/sync.svg.js +1 -1
  545. package/dist/esm/assets/icons/task.svg.js +1 -1
  546. package/dist/esm/assets/icons/text_t9.svg.js +1 -1
  547. package/dist/esm/assets/icons/tick.svg.js +1 -1
  548. package/dist/esm/assets/icons/tick_double.svg.js +1 -1
  549. package/dist/esm/assets/icons/triangle_error.svg.js +1 -1
  550. package/dist/esm/assets/icons/undo.svg.js +1 -1
  551. package/dist/esm/assets/icons/union.svg.js +1 -1
  552. package/dist/esm/assets/icons/upload.svg.js +1 -1
  553. package/dist/esm/assets/icons/user_icon.svg.js +1 -1
  554. package/dist/esm/assets/icons/vertical_dots.svg.js +1 -1
  555. package/dist/esm/assets/icons/videoRecorder.svg.js +1 -1
  556. package/dist/esm/assets/icons/warning.svg.js +1 -1
  557. package/dist/esm/assets/icons/warningIcon.svg.js +1 -1
  558. package/dist/esm/assets/icons/website.svg.js +1 -1
  559. package/dist/esm/assets/icons/whatsNew.svg.js +1 -1
  560. package/dist/esm/assets/icons/whatsapp-channel.svg.js +1 -1
  561. package/dist/esm/assets/icons/whatsapp_color.svg.js +1 -1
  562. package/dist/esm/components/BikGiftedChat/Bubble/Bubble.js +1 -1
  563. package/dist/esm/components/BikGiftedChat/GiftedChat/Day.js +1 -1
  564. package/dist/esm/components/BikGiftedChat/GiftedChat/GiftedChat.js +1 -1
  565. package/dist/esm/components/BikGiftedChat/GiftedChat/scrollHooks.js +1 -1
  566. package/dist/esm/components/InfiniteScroll/InfiniteScroll.js +1 -1
  567. package/dist/esm/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  568. package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  569. package/dist/esm/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  570. package/dist/esm/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  571. package/dist/esm/components/QueryBuilder/QueryBuilder.js +1 -1
  572. package/dist/esm/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.js +1 -1
  573. package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  574. package/dist/esm/components/QueryBuilder/components/AddNodeButton.js +1 -1
  575. package/dist/esm/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
  576. package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
  577. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
  578. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  579. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IgPicker.js +1 -1
  580. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  581. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  582. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
  583. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
  584. package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
  585. package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  586. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
  587. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  588. package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
  589. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
  590. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
  591. package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  592. package/dist/esm/components/QueryBuilder/components/DeleteButton.js +1 -1
  593. package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js +1 -1
  594. package/dist/esm/components/QueryBuilder/components/InputLoader.js +4 -4
  595. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
  596. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
  597. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
  598. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -1
  599. package/dist/esm/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  600. package/dist/esm/components/QueryBuilder/helpers/ApiResponse.helper.js +1 -1
  601. package/dist/esm/components/QueryBuilder/helpers/Connector.helper.js +1 -1
  602. package/dist/esm/components/QueryBuilder/hooks/useQueryBuilderCache.js +1 -1
  603. package/dist/esm/components/QueryBuilder/redux/queryBuilder.reducer.js +1 -1
  604. package/dist/esm/components/QueryBuilder/redux/selectors/useQueryBuilderCacheSelector.js +1 -1
  605. package/dist/esm/components/SearchFilter/components/DatePickerButton.js +1 -1
  606. package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.js +1 -1
  607. package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  608. package/dist/esm/components/SearchFilter/index.js +1 -1
  609. package/dist/esm/components/TablePagination/TablePagination.js +1 -1
  610. package/dist/esm/components/TablePagination/TablePaginationCard.js +1 -1
  611. package/dist/esm/components/WhatsAppTextEditor/CustomEditor.styled.js +1 -1
  612. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
  613. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +1 -1
  614. package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
  615. package/dist/esm/components/accordion/Accordion.js +1 -1
  616. package/dist/esm/components/accordion/AccordionArrow.js +1 -1
  617. package/dist/esm/components/action-button/ActionButtons.js +1 -1
  618. package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
  619. package/dist/esm/components/ai-modals/ActivateBikAI.js +1 -1
  620. package/dist/esm/components/ai-modals/AiCreditsExhausted.js +1 -1
  621. package/dist/esm/components/ai-modals/AiCreditsLow.js +1 -1
  622. package/dist/esm/components/ai-modals/AiSyncProgress.js +1 -1
  623. package/dist/esm/components/analytics-card/AnalyticsCard.js +1 -1
  624. package/dist/esm/components/analytics-card/AnalyticsCard.styled.js +1 -1
  625. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  626. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
  627. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
  628. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  629. package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
  630. package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  631. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +1 -1
  632. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
  633. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +1 -1
  634. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +2 -2
  635. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  636. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  637. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -1
  638. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
  639. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
  640. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  641. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  642. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +1 -1
  643. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +1 -1
  644. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
  645. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +1 -1
  646. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -1
  647. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -1
  648. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -1
  649. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +1 -1
  650. package/dist/esm/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +1 -1
  651. package/dist/esm/components/avatar/Avatar.js +1 -1
  652. package/dist/esm/components/banner/BannerInline.js +1 -1
  653. package/dist/esm/components/banner/CardBanner.js +1 -1
  654. package/dist/esm/components/bik-chatbot/components/AIChat.js +1 -1
  655. package/dist/esm/components/bik-chatbot/components/BIKChatbot.js +1 -1
  656. package/dist/esm/components/bik-chatbot/components/ChatLoadingState.js +1 -1
  657. package/dist/esm/components/bik-chatbot/components/ChatWindow.js +1 -1
  658. package/dist/esm/components/bik-chatbot/components/ThinkingIndicator.js +1 -1
  659. package/dist/esm/components/bik-chatbot/contexts/AIContext.js +1 -1
  660. package/dist/esm/components/bik-chatbot/services/aiService.js +1 -1
  661. package/dist/esm/components/bik-chatbot/services/callToChatbot.js +1 -1
  662. package/dist/esm/components/bik-chatbot/services/db.js +1 -1
  663. package/dist/esm/components/bik-chatbot/services/useAIChat.js +1 -1
  664. package/dist/esm/components/bik-chatbot/utils/markdown.js +1 -1
  665. package/dist/esm/components/bik-layout/BikProfile.js +1 -1
  666. package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
  667. package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
  668. package/dist/esm/components/bik-layout/SidebarPopup.js +1 -1
  669. package/dist/esm/components/bik-layout/SidebarSkeleton.js +1 -1
  670. package/dist/esm/components/bik-layout/SimpleSidebar.js +1 -1
  671. package/dist/esm/components/button/Button.js +1 -1
  672. package/dist/esm/components/button/Button.styled.js +1 -1
  673. package/dist/esm/components/button/themes.js +1 -1
  674. package/dist/esm/components/buttonGroup/ButtonGroup.js +1 -1
  675. package/dist/esm/components/card-selection-modal/CardSelectionModal.js +1 -1
  676. package/dist/esm/components/card-selector/CardSelectorGroup.js +1 -1
  677. package/dist/esm/components/carousel-preview/CarouselPreview.js +1 -1
  678. package/dist/esm/components/carousel-preview/CarouselPreviewCard.js +1 -1
  679. package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
  680. package/dist/esm/components/carousel-secondary/CarouselSecondary.style.js +1 -1
  681. package/dist/esm/components/checkBox/CheckBox.js +1 -1
  682. package/dist/esm/components/checkList/CheckList.js +1 -1
  683. package/dist/esm/components/code-block/CodeBlock.js +1 -1
  684. package/dist/esm/components/code-block/CodeBlock.styled.js +31 -31
  685. package/dist/esm/components/code-block/CodeBlockHelper.js +1 -1
  686. package/dist/esm/components/country-code-picker/CountryCodePicker.js +1 -1
  687. package/dist/esm/components/country-code-picker/CountryCodePicker.styled.js +1 -1
  688. package/dist/esm/components/country-code-picker/CountryPicker.js +1 -1
  689. package/dist/esm/components/country-code-picker/CountryPicker.styled.js +1 -1
  690. package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
  691. package/dist/esm/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  692. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  693. package/dist/esm/components/dashboard-review-popup/components/FiveStar.js +1 -1
  694. package/dist/esm/components/dashboard-review-popup/components/Form.js +1 -1
  695. package/dist/esm/components/dashboard-review-popup/components/Form.styled.js +1 -1
  696. package/dist/esm/components/dashboard-review-popup/components/ZeroState.js +1 -1
  697. package/dist/esm/components/data-source-panel/DataSourceInfoFooter.js +1 -1
  698. package/dist/esm/components/data-source-panel/DataSourcePanel.js +1 -1
  699. package/dist/esm/components/data-source-panel/Modals/DescriptionModal.js +1 -1
  700. package/dist/esm/components/datePicker/DatePicker.js +1 -1
  701. package/dist/esm/components/datePicker/DatePicker.styled.js +1 -1
  702. package/dist/esm/components/datePicker/DatePickerWrapper.js +1 -1
  703. package/dist/esm/components/datePicker/TimePicker.js +1 -1
  704. package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  705. package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
  706. package/dist/esm/components/discount-modal/DiscountModal.styled.js +1 -1
  707. package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
  708. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  709. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +8 -8
  710. package/dist/esm/components/dot-pulse/DotPulse.js +2 -2
  711. package/dist/esm/components/dropShadow/DropShadow.js +1 -1
  712. package/dist/esm/components/dropdown/ChipInput.js +1 -1
  713. package/dist/esm/components/dropdown/Dropdown.js +1 -1
  714. package/dist/esm/components/dropdown/DropdownPopover/index.js +1 -1
  715. package/dist/esm/components/dropdown/MultilevelDropdownPopover/index.js +1 -1
  716. package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  717. package/dist/esm/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
  718. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
  719. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +5 -5
  720. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  721. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
  722. package/dist/esm/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
  723. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
  724. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
  725. package/dist/esm/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
  726. package/dist/esm/components/dropdown/hooks/useDropdown.js +1 -1
  727. package/dist/esm/components/dynamic-tabs/DynamicTabs.js +1 -1
  728. package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  729. package/dist/esm/components/feature-announcements/MajorUpdatePopup.js +1 -1
  730. package/dist/esm/components/feature-announcements/MinorUpdatePopup.js +1 -1
  731. package/dist/esm/components/feature-announcements/VideoModal.js +1 -1
  732. package/dist/esm/components/feature-announcements/hooks/useFeatureAnnouncements.js +1 -1
  733. package/dist/esm/components/feature-announcements/utils/animationHelpers.js +1 -1
  734. package/dist/esm/components/feature-announcements/utils/elementHelpers.js +1 -1
  735. package/dist/esm/components/file-uploader/FileUploader.js +1 -1
  736. package/dist/esm/components/floater/floater.js +1 -1
  737. package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.js +3 -3
  738. package/dist/esm/components/icon-button/IconButton.js +1 -1
  739. package/dist/esm/components/image-compress/ImageCompress.js +1 -1
  740. package/dist/esm/components/image-cropper/BikImageCropper.js +1 -1
  741. package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
  742. package/dist/esm/components/input/ChipInput.js +1 -1
  743. package/dist/esm/components/input/Input-helper.js +1 -1
  744. package/dist/esm/components/input/Input.js +1 -1
  745. package/dist/esm/components/input/Input.styled.js +1 -1
  746. package/dist/esm/components/input-with-vars/InputWithVariables.js +1 -1
  747. package/dist/esm/components/keywords-input/KeywordsInput.js +1 -1
  748. package/dist/esm/components/list-item/ListItem.js +1 -1
  749. package/dist/esm/components/list-item/ListItem.styled.js +1 -1
  750. package/dist/esm/components/markdown/MarkdownRender.js +1 -1
  751. package/dist/esm/components/markdown/utils.js +1 -1
  752. package/dist/esm/components/modals/Modal.js +1 -1
  753. package/dist/esm/components/modals/modal.styled.js +1 -1
  754. package/dist/esm/components/modals/styledModal.js +1 -1
  755. package/dist/esm/components/multi-level-dropdown/GroupedMenuList.js +1 -1
  756. package/dist/esm/components/multi-level-dropdown/MenuItem.js +1 -1
  757. package/dist/esm/components/multi-level-dropdown/MenuList.js +1 -1
  758. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  759. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.styled.js +25 -25
  760. package/dist/esm/components/pagination/Pagination.js +1 -1
  761. package/dist/esm/components/plans/NewSubscriptionPlan.js +1 -1
  762. package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
  763. package/dist/esm/components/plans/SubscriptionPlanSelector.js +1 -1
  764. package/dist/esm/components/plans/SubscriptionPlanStyled.js +1 -1
  765. package/dist/esm/components/plans/SubscriptionPlansCollected.js +1 -1
  766. package/dist/esm/components/postPicker/postPicker.js +1 -1
  767. package/dist/esm/components/product-picker/ProductPickerModal.js +1 -1
  768. package/dist/esm/components/product-picker-v2/ProductPickerShimmer.js +1 -1
  769. package/dist/esm/components/product-picker-v2/collectionScreen.js +1 -1
  770. package/dist/esm/components/product-picker-v2/emptyState.js +1 -1
  771. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +1 -1
  772. package/dist/esm/components/product-picker-v2/modal.js +1 -1
  773. package/dist/esm/components/product-picker-v2/product.js +1 -1
  774. package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
  775. package/dist/esm/components/product-picker-v2/rearrangeScreen.js +1 -1
  776. package/dist/esm/components/product-picker-v2/searchScreen.js +1 -1
  777. package/dist/esm/components/product-picker-v2/selectedScreen.js +1 -1
  778. package/dist/esm/components/product-picker-v2/utility.js +1 -1
  779. package/dist/esm/components/product-picker-v2/variantComponents.js +1 -1
  780. package/dist/esm/components/progress-bar/CircularProgressBar.js +1 -1
  781. package/dist/esm/components/progress-bar/ProgressBarComponent.js +1 -1
  782. package/dist/esm/components/progress-bar-v2/ProgressBarV2.js +1 -1
  783. package/dist/esm/components/radioButton/RadioButton.js +1 -1
  784. package/dist/esm/components/radioList/RadioList.js +1 -1
  785. package/dist/esm/components/resizeImage/index.js +1 -1
  786. package/dist/esm/components/sample-button/themes.d.ts +1 -1
  787. package/dist/esm/components/searchBar/searchBar.js +1 -1
  788. package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
  789. package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.js +1 -1
  790. package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
  791. package/dist/esm/components/side-modal/SideModal.js +1 -1
  792. package/dist/esm/components/side-modal/SideModal.style.js +9 -9
  793. package/dist/esm/components/slider/slider.js +1 -1
  794. package/dist/esm/components/spinner/Spinner.js +1 -1
  795. package/dist/esm/components/star-rating/Star.js +1 -1
  796. package/dist/esm/components/star-rating/StarRating.js +1 -1
  797. package/dist/esm/components/states/ShopifyScopeWrapper.js +1 -1
  798. package/dist/esm/components/stepper/Stepper.js +1 -1
  799. package/dist/esm/components/switch/Switch.js +1 -1
  800. package/dist/esm/components/tabs/Tabs.js +1 -1
  801. package/dist/esm/components/tabs/Tabs.styles.js +1 -1
  802. package/dist/esm/components/tag/Tag.js +1 -1
  803. package/dist/esm/components/tag/Tag.styled.js +1 -1
  804. package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
  805. package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -1
  806. package/dist/esm/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
  807. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +1 -1
  808. package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
  809. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  810. package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  811. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  812. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  813. package/dist/esm/components/template-context-mapper/modalElements/Footer.js +1 -1
  814. package/dist/esm/components/template-context-mapper/modalElements/Header.js +2 -2
  815. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +1 -1
  816. package/dist/esm/components/template-context-mapper/modalElements/QueryParamsComponent.js +1 -1
  817. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
  818. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -1
  819. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  820. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +1 -1
  821. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  822. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +1 -1
  823. package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +2 -2
  824. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  825. package/dist/esm/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  826. package/dist/esm/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.js +1 -1
  827. package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
  828. package/dist/esm/components/template-context-mapper/utils/highlightFor.js +1 -1
  829. package/dist/esm/components/template-context-mapper/utils/validateName.js +1 -1
  830. package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  831. package/dist/esm/components/template-preview/RCS/RCSButtons.js +1 -1
  832. package/dist/esm/components/template-preview/RCS/RCSChatPreview.js +1 -1
  833. package/dist/esm/components/template-preview/RCS/RCSMediaCard.js +1 -1
  834. package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
  835. package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
  836. package/dist/esm/components/template-preview/WhatsApp/ChatBtn.js +1 -1
  837. package/dist/esm/components/template-preview/WhatsApp/ChatUI.js +1 -1
  838. package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +1 -1
  839. package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
  840. package/dist/esm/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +1 -1
  841. package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  842. package/dist/esm/components/template-preview/helpers/SmsTemplateHelper.js +1 -1
  843. package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
  844. package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js +1 -1
  845. package/dist/esm/components/template-preview/utils/TemplateHelperUtils.js +1 -1
  846. package/dist/esm/components/template-preview/utils/getPreviewPropLen.js +1 -1
  847. package/dist/esm/components/template-preview/webpush/WebpushPreview.js +1 -1
  848. package/dist/esm/components/testimonial-card/TestimonialCard.style.js +1 -1
  849. package/dist/esm/components/text-picker/TextPickerCategoryCard.js +4 -4
  850. package/dist/esm/components/text-picker/TextPickerFooter.js +5 -5
  851. package/dist/esm/components/text-picker/TextPickerItemRow.js +6 -6
  852. package/dist/esm/components/text-picker/TextPickerModal.js +1 -1
  853. package/dist/esm/components/text-picker/TextPickerSelectAllRow.js +5 -5
  854. package/dist/esm/components/toaster/Toaster.js +1 -1
  855. package/dist/esm/components/toaster/Toaster.styled.js +1 -1
  856. package/dist/esm/components/tooltips/TooltipInternal.js +1 -1
  857. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js +1 -1
  858. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -1
  859. package/dist/esm/components/variable-picker-v3/Content.js +1 -1
  860. package/dist/esm/components/variable-picker-v3/SubHeaderItems.js +1 -1
  861. package/dist/esm/components/variable-picker-v3/recommendVaribles.js +1 -1
  862. package/dist/esm/components/variable-picker-v3/searchVariables.js +1 -1
  863. package/dist/esm/components/whats-new/WhatsNew.js +1 -1
  864. package/dist/esm/components/whats-new/WhatsNewButton.js +1 -1
  865. package/dist/esm/components/whats-new/WhatsNewPanel.js +1 -1
  866. package/dist/esm/components/whats-new/WhatsNewProvider.js +1 -1
  867. package/dist/esm/components/whats-new/useWhatsNew.js +1 -1
  868. package/dist/esm/helpers/BaseWhatsappContentLang.helper.js +1 -1
  869. package/dist/esm/hooks/useCurreny.js +1 -1
  870. package/dist/esm/hooks/useOutside.js +1 -1
  871. package/dist/esm/hooks/useWindowSize.js +1 -1
  872. package/dist/esm/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js +1 -1
  873. package/dist/esm/node_modules/immer/dist/immer.esm.mjs.js +1 -1
  874. package/dist/esm/node_modules/lodash.debounce/index.js +1 -1
  875. package/dist/esm/utils/DateUtils.js +1 -1
  876. package/dist/esm/utils/StringUtils.js +1 -1
  877. package/dist/esm/utils/resizeImage.js +1 -1
  878. package/dist/esm/utils/unCamelCase.js +1 -1
  879. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../../assets/icons/click.svg.js"),n=require("../../../assets/icons/speedometer.svg.js"),a=require("react"),i=require("../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js"),s=require("../../modals/styledModal.js"),l=require("../../tag/Tag.js"),r=require("../../template-preview/models/WhatsAppTemplate.js"),c=require("../../TypographyStyle.js"),o=require("../../../constants/Theme.js"),d=require("../styles/TemplateAnalyticsStyles.js"),u=require("../utils/TemplateConstants.js"),h=require("./TemplateAnalyticsSkeleton.js");const m=n=>{var a;const{analyticsData:i,skipTitle:s,fullWidth:l}=n;return e.jsxs(d.RightPanelContainer,Object.assign({fullWidth:l},{children:[s?e.jsx(e.Fragment,{}):e.jsx(c.TitleSmall,{children:"Here are your template's delivery & engagement stats for the last 30 days"}),e.jsx("div",Object.assign({className:"mt-3"},{children:u.ANALYTICS_ENGAGEMENT_MAP.map((t,n)=>e.jsx(T,{icon:t.icon,title:t.title,value:i[t.valName]||0,percentValue:t.percentValName?i[t.percentValName]:null},n))})),(null==i?void 0:i.clickAnalytics)&&Object.keys(null==i?void 0:i.clickAnalytics)&&Object.keys(null==i?void 0:i.clickAnalytics).length?e.jsxs(e.Fragment,{children:[e.jsx(c.TitleSmall,Object.assign({color:o.COLORS.content.secondary},{children:"Clicked"})),e.jsx("div",Object.assign({className:"mt-3"},{children:Object.entries(i.clickAnalytics).map(([n,a],i)=>e.jsx(T,{icon:t.default,title:n,value:a.totalClicks||0,percentValue:a.clickPercentage},i))}))]}):e.jsx(e.Fragment,{}),(null===(a=null==i?void 0:i.performance)||void 0===a?void 0:a.qualityTimeLine)&&i.performance.qualityTimeLine.length>0?e.jsxs(e.Fragment,{children:[e.jsx(c.TitleSmall,Object.assign({color:o.COLORS.content.secondary},{children:"Performance"})),e.jsx("div",Object.assign({className:"mt-3"},{children:e.jsx(g,{qualityTimeLine:i.performance.qualityTimeLine})}))]}):e.jsx(e.Fragment,{})]}))},T=t=>{const{icon:n,title:a,value:i,percentValue:s}=t;return e.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[e.jsx("div",Object.assign({className:"each--icon--container"},{children:e.jsx(n,{width:"16px",height:"16px",color:o.COLORS.background.brand})})),e.jsx(c.Caption,{children:a})]})),e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s?e.jsx(l.Tag,{tagText:`${s}%`||0,theme:"light",type:"neutral"}):e.jsx(e.Fragment,{}),e.jsx(d.CustomTitleMedium,{children:i})]}))]}))},g=t=>{const{qualityTimeLine:a}=t,s=a.map(e=>{switch(e){case r.TEMPLATE_QUALITY.GREEN:return 2;case r.TEMPLATE_QUALITY.YELLOW:return 1;case r.TEMPLATE_QUALITY.RED:return.2;default:return 0}}),l=a.map((e,t)=>`T${t+1}`),d=a.map(e=>(e=>{switch(e){case r.TEMPLATE_QUALITY.GREEN:return o.COLORS.content.positive;case r.TEMPLATE_QUALITY.YELLOW:return o.COLORS.content.warning;case r.TEMPLATE_QUALITY.RED:return o.COLORS.content.negative;default:return o.COLORS.content.secondary}})(e));return e.jsxs("div",Object.assign({className:"each--analytics--container",style:{padding:16,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",borderRadius:8,border:`1px solid ${o.COLORS.background.inactive}`}},{children:[e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8,width:"50%"}},{children:[e.jsx("div",Object.assign({className:"each--icon--container"},{children:e.jsx(n.default,{width:16,height:16,color:o.COLORS.content.secondary})})),e.jsx(c.Caption,{children:"Quality timeline"})]})),e.jsx("div",Object.assign({className:"d-flex align--center",style:{width:"50%",height:"62px",marginTop:-80}},{children:e.jsx(i.LineChart,{datas:[{data:s,lineColor:"green",lineWidth:1,gradientColor:{start:"#E6F4E7",end:"#E6F4E7"},gradient:!0,pointColors:d}],labels:l,legends:[],canvasHeight:120,maintainAspectRatio:!1,min:0,max:4,stepSize:1,isNewStyles:!0,pointRadius:3.5,scaleText:{xDrawBorder:!1,yDrawBorder:!1},ticksLabelCallback:()=>"",labelCallback:e=>`${(e=>{switch(e){case 2:return"High";case 1:return"Medium";case.2:return"Low";default:return"Unknown"}})(e.parsed.y)}`,titleTooltipCallback:()=>"",customYHeaders:{0:"",1:"",2:""}})}))]}))};exports.AnalyticsItem=T,exports.QualityTimelineChart=g,exports.RightPanelTemplateAnalytics=m,exports.TemplateAnalyticsComponent=t=>{const{templateAnalytics:n,onClose:i,onProceed:l,onCancel:T,headingTitle:g,headingSubtitle:j,templateId:p}=t,{templateQuality:y=r.TEMPLATE_QUALITY.GREEN,fetchAnalytics:x}=n||{},{Icon:L,title:O,subline:E,sublineTextType:b,sublineColor:A}=u.TEMPLATE_QUALITY_MAP[y||r.TEMPLATE_QUALITY.GREEN],[C,v]=a.useState((null==t?void 0:t.analyticsData)||{}),[N,S]=a.useState(!0);a.useEffect(()=>{(null==t?void 0:t.analyticsData)?S(!1):null==x||x(p||"").then(e=>{e.analytics&&v(e.analytics),S(!1)})},[]);const R=a.useMemo(()=>({primaryButton:{buttonText:"Proceed with selection",buttonType:"primary",onClick:l,disabled:N},secondaryButton:{buttonText:"Cancel",buttonType:"tertiaryGray",onClick:()=>{null==i||i(),null==T||T()},disabled:N}}),[y,N,l,i,T]),f=b||c.Caption;return e.jsx(s.StyledModal,Object.assign({open:!0,headingTitle:g,tintedHeader:!0,modalHeaderStyles:{backgroundColor:o.COLORS.surface.subdued},onBackPress:()=>{null==i||i()},headingSubtitle:j,footerShadow:!0,primaryButton:R.primaryButton,secondaryButton:R.secondaryButton,onClose:()=>{null==i||i()},width:"700px"},{children:e.jsxs(d.TemplateContainer,{children:[y!==r.TEMPLATE_QUALITY.UNKNOWN&&e.jsx(d.LeftPanelContainer,{children:e.jsxs("div",Object.assign({className:"inside--container"},{children:[e.jsx("div",Object.assign({className:"icon--container",style:{background:y===r.TEMPLATE_QUALITY.GREEN?o.COLORS.background.positive.light:o.COLORS.background.warning.light}},{children:e.jsx(L,{width:40,height:40,color:y===r.TEMPLATE_QUALITY.GREEN?o.COLORS.content.positive:o.COLORS.content.warning})})),O&&e.jsx(c.TitleRegular,Object.assign({style:{textAlign:"center"}},{children:O})),e.jsx(f,Object.assign({style:{textAlign:"center",color:A||o.COLORS.content.primary}},{children:E}))]}))}),N?e.jsx(h.TemplateAnalyticsSkeleton,{fullWidth:y===r.TEMPLATE_QUALITY.UNKNOWN}):e.jsx(m,{analyticsData:C,fullWidth:y===r.TEMPLATE_QUALITY.UNKNOWN})]})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../../assets/icons/click.svg.js"),n=require("../../../assets/icons/speedometer.svg.js"),a=require("react"),i=require("../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js"),s=require("../../modals/styledModal.js"),l=require("../../tag/Tag.js"),r=require("../../template-preview/models/WhatsAppTemplate.js"),c=require("../../TypographyStyle.js"),o=require("../../../constants/Theme.js"),d=require("../styles/TemplateAnalyticsStyles.js"),u=require("../utils/TemplateConstants.js"),h=require("./TemplateAnalyticsSkeleton.js");const m=n=>{var a;const{analyticsData:i,skipTitle:s,fullWidth:l}=n;return e.jsxs(d.RightPanelContainer,Object.assign({fullWidth:l},{children:[s?e.jsx(e.Fragment,{}):e.jsx(c.TitleSmall,{children:"Here are your template's delivery & engagement stats for the last 30 days"}),e.jsx("div",Object.assign({className:"mt-3"},{children:u.ANALYTICS_ENGAGEMENT_MAP.map(((t,n)=>e.jsx(T,{icon:t.icon,title:t.title,value:i[t.valName]||0,percentValue:t.percentValName?i[t.percentValName]:null},n)))})),(null==i?void 0:i.clickAnalytics)&&Object.keys(null==i?void 0:i.clickAnalytics)&&Object.keys(null==i?void 0:i.clickAnalytics).length?e.jsxs(e.Fragment,{children:[e.jsx(c.TitleSmall,Object.assign({color:o.COLORS.content.secondary},{children:"Clicked"})),e.jsx("div",Object.assign({className:"mt-3"},{children:Object.entries(i.clickAnalytics).map(((n,a)=>{let[i,s]=n;return e.jsx(T,{icon:t.default,title:i,value:s.totalClicks||0,percentValue:s.clickPercentage},a)}))}))]}):e.jsx(e.Fragment,{}),(null===(a=null==i?void 0:i.performance)||void 0===a?void 0:a.qualityTimeLine)&&i.performance.qualityTimeLine.length>0?e.jsxs(e.Fragment,{children:[e.jsx(c.TitleSmall,Object.assign({color:o.COLORS.content.secondary},{children:"Performance"})),e.jsx("div",Object.assign({className:"mt-3"},{children:e.jsx(g,{qualityTimeLine:i.performance.qualityTimeLine})}))]}):e.jsx(e.Fragment,{})]}))},T=t=>{const{icon:n,title:a,value:i,percentValue:s}=t;return e.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[e.jsx("div",Object.assign({className:"each--icon--container"},{children:e.jsx(n,{width:"16px",height:"16px",color:o.COLORS.background.brand})})),e.jsx(c.Caption,{children:a})]})),e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[s?e.jsx(l.Tag,{tagText:`${s}%`||0,theme:"light",type:"neutral"}):e.jsx(e.Fragment,{}),e.jsx(d.CustomTitleMedium,{children:i})]}))]}))},g=t=>{const{qualityTimeLine:a}=t,s=a.map((e=>{switch(e){case r.TEMPLATE_QUALITY.GREEN:return 2;case r.TEMPLATE_QUALITY.YELLOW:return 1;case r.TEMPLATE_QUALITY.RED:return.2;default:return 0}})),l=a.map(((e,t)=>`T${t+1}`)),d=a.map((e=>(e=>{switch(e){case r.TEMPLATE_QUALITY.GREEN:return o.COLORS.content.positive;case r.TEMPLATE_QUALITY.YELLOW:return o.COLORS.content.warning;case r.TEMPLATE_QUALITY.RED:return o.COLORS.content.negative;default:return o.COLORS.content.secondary}})(e)));return e.jsxs("div",Object.assign({className:"each--analytics--container",style:{padding:16,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",borderRadius:8,border:`1px solid ${o.COLORS.background.inactive}`}},{children:[e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8,width:"50%"}},{children:[e.jsx("div",Object.assign({className:"each--icon--container"},{children:e.jsx(n.default,{width:16,height:16,color:o.COLORS.content.secondary})})),e.jsx(c.Caption,{children:"Quality timeline"})]})),e.jsx("div",Object.assign({className:"d-flex align--center",style:{width:"50%",height:"62px",marginTop:-80}},{children:e.jsx(i.LineChart,{datas:[{data:s,lineColor:"green",lineWidth:1,gradientColor:{start:"#E6F4E7",end:"#E6F4E7"},gradient:!0,pointColors:d}],labels:l,legends:[],canvasHeight:120,maintainAspectRatio:!1,min:0,max:4,stepSize:1,isNewStyles:!0,pointRadius:3.5,scaleText:{xDrawBorder:!1,yDrawBorder:!1},ticksLabelCallback:()=>"",labelCallback:e=>`${(e=>{switch(e){case 2:return"High";case 1:return"Medium";case.2:return"Low";default:return"Unknown"}})(e.parsed.y)}`,titleTooltipCallback:()=>"",customYHeaders:{0:"",1:"",2:""}})}))]}))};exports.AnalyticsItem=T,exports.QualityTimelineChart=g,exports.RightPanelTemplateAnalytics=m,exports.TemplateAnalyticsComponent=t=>{const{templateAnalytics:n,onClose:i,onProceed:l,onCancel:T,headingTitle:g,headingSubtitle:j,templateId:p}=t,{templateQuality:y=r.TEMPLATE_QUALITY.GREEN,fetchAnalytics:x}=n||{},{Icon:L,title:O,subline:E,sublineTextType:b,sublineColor:A}=u.TEMPLATE_QUALITY_MAP[y||r.TEMPLATE_QUALITY.GREEN],[C,v]=a.useState((null==t?void 0:t.analyticsData)||{}),[N,S]=a.useState(!0);a.useEffect((()=>{(null==t?void 0:t.analyticsData)?S(!1):null==x||x(p||"").then((e=>{e.analytics&&v(e.analytics),S(!1)}))}),[]);const R=a.useMemo((()=>({primaryButton:{buttonText:"Proceed with selection",buttonType:"primary",onClick:l,disabled:N},secondaryButton:{buttonText:"Cancel",buttonType:"tertiaryGray",onClick:()=>{null==i||i(),null==T||T()},disabled:N}})),[y,N,l,i,T]),f=b||c.Caption;return e.jsx(s.StyledModal,Object.assign({open:!0,headingTitle:g,tintedHeader:!0,modalHeaderStyles:{backgroundColor:o.COLORS.surface.subdued},onBackPress:()=>{null==i||i()},headingSubtitle:j,footerShadow:!0,primaryButton:R.primaryButton,secondaryButton:R.secondaryButton,onClose:()=>{null==i||i()},width:"700px"},{children:e.jsxs(d.TemplateContainer,{children:[y!==r.TEMPLATE_QUALITY.UNKNOWN&&e.jsx(d.LeftPanelContainer,{children:e.jsxs("div",Object.assign({className:"inside--container"},{children:[e.jsx("div",Object.assign({className:"icon--container",style:{background:y===r.TEMPLATE_QUALITY.GREEN?o.COLORS.background.positive.light:o.COLORS.background.warning.light}},{children:e.jsx(L,{width:40,height:40,color:y===r.TEMPLATE_QUALITY.GREEN?o.COLORS.content.positive:o.COLORS.content.warning})})),O&&e.jsx(c.TitleRegular,Object.assign({style:{textAlign:"center"}},{children:O})),e.jsx(f,Object.assign({style:{textAlign:"center",color:A||o.COLORS.content.primary}},{children:E}))]}))}),N?e.jsx(h.TemplateAnalyticsSkeleton,{fullWidth:y===r.TEMPLATE_QUALITY.UNKNOWN}):e.jsx(m,{analyticsData:C,fullWidth:y===r.TEMPLATE_QUALITY.UNKNOWN})]})}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../shimmer/ShimmerComponent/BikShimmer.js"),i=require("../styles/TemplateAnalyticsStyles.js");const t=()=>e.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[e.jsx(s.BikShimmer,{boxes:[{width:"24px",height:"24px"}]}),e.jsx(s.BikShimmer,{boxes:[{width:"69px",height:"11px"}]})]})),e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[e.jsx(s.BikShimmer,{boxes:[{width:"43px",height:"18px"}]}),e.jsx(s.BikShimmer,{boxes:[{width:"69px",height:"28px"}]})]}))]}));exports.TemplateAnalyticsSkeleton=h=>{const{skipTitleShimmer:r,fullWidth:x}=h;return e.jsxs(i.RightPanelContainer,Object.assign({fullWidth:x},{children:[e.jsx("div",{children:r?e.jsx(e.Fragment,{}):e.jsx(s.BikShimmer,{boxes:[{width:"76px",height:"18px"}]})}),e.jsx("div",Object.assign({className:"mt-3"},{children:[0,1,2].map(s=>e.jsx(t,{},s))})),e.jsxs(e.Fragment,{children:[e.jsx("div",{children:e.jsx(s.BikShimmer,{boxes:[{width:"76px",height:"18px"}]})}),e.jsx("div",Object.assign({className:"mt-3"},{children:e.jsx(t,{})}))]})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../shimmer/ShimmerComponent/BikShimmer.js"),i=require("../styles/TemplateAnalyticsStyles.js");const t=()=>e.jsxs("div",Object.assign({className:"each--analytics--container"},{children:[e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[e.jsx(s.BikShimmer,{boxes:[{width:"24px",height:"24px"}]}),e.jsx(s.BikShimmer,{boxes:[{width:"69px",height:"11px"}]})]})),e.jsxs("div",Object.assign({className:"d-flex align--center",style:{gap:8}},{children:[e.jsx(s.BikShimmer,{boxes:[{width:"43px",height:"18px"}]}),e.jsx(s.BikShimmer,{boxes:[{width:"69px",height:"28px"}]})]}))]}));exports.TemplateAnalyticsSkeleton=h=>{const{skipTitleShimmer:r,fullWidth:x}=h;return e.jsxs(i.RightPanelContainer,Object.assign({fullWidth:x},{children:[e.jsx("div",{children:r?e.jsx(e.Fragment,{}):e.jsx(s.BikShimmer,{boxes:[{width:"76px",height:"18px"}]})}),e.jsx("div",Object.assign({className:"mt-3"},{children:[0,1,2].map((s=>e.jsx(t,{},s)))})),e.jsxs(e.Fragment,{children:[e.jsx("div",{children:e.jsx(s.BikShimmer,{boxes:[{width:"76px",height:"18px"}]})}),e.jsx("div",Object.assign({className:"mt-3"},{children:e.jsx(t,{})}))]})]}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("../../template-preview/models/Channels.js"),s=require("./Body.js"),i=require("./Header.js");exports.default=({channel:t,showVariableMapping:o,variableListFromProps:r,showOnlyContent:l,whatsappSpecificPickerMeta:n,showVariableModal:d,discountCode:p,setDiscountCode:u,variableListForImage:c,showSampleValues:h,fileName:m,setFileName:b,skipDefaultVariableContent:w})=>e.jsx("div",Object.assign({style:{paddingBottom:0}},{children:e.jsxs("div",{children:[t===a.CHANNEL_TYPE.EMAIL&&e.jsx(i.default,{showOnlyContent:l}),e.jsx(s.default,{variableListFromProps:r,whatsappSpecificPickerMeta:n,showVariableMapping:!!o,showOnlyContent:l,showVariableModal:d,discountCode:p,setDiscountCode:u,variableListForImage:c,showSampleValues:h,fileName:m,setFileName:b,skipDefaultVariableContent:w})]})}));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("../../template-preview/models/Channels.js"),s=require("./Body.js"),t=require("./Header.js");exports.default=i=>{let{channel:r,showVariableMapping:l,variableListFromProps:o,showOnlyContent:n,whatsappSpecificPickerMeta:d,showVariableModal:p,discountCode:u,setDiscountCode:c,variableListForImage:h,showSampleValues:m,fileName:b,setFileName:w,skipDefaultVariableContent:C}=i;return e.jsx("div",Object.assign({style:{paddingBottom:0}},{children:e.jsxs("div",{children:[r===a.CHANNEL_TYPE.EMAIL&&e.jsx(t.default,{showOnlyContent:n}),e.jsx(s.default,{variableListFromProps:o,whatsappSpecificPickerMeta:d,showVariableMapping:!!l,showOnlyContent:n,showVariableModal:p,discountCode:u,setDiscountCode:c,variableListForImage:h,showSampleValues:m,fileName:b,setFileName:w,skipDefaultVariableContent:C})]})}))};
@@ -16,4 +16,4 @@
16
16
  height: 100%;
17
17
  width: 48%;
18
18
  background: rgba(0, 0, 0, 0.1);
19
- `,L={value:"custom_link",label:"Custom URL"},S={value:"custom_text",label:"Custom text"},H={value:"static_expiry",label:"Static Expiry"};exports.Container=N,exports.default=s=>{var C,f,V,k,B,D,Y,w,U;const{onFocus:R,variable:q,index:I,showVariableModal:W,setShowDiscountCheckBox:M,componentType:$,CTAoptions:z,buttonType:Z}=s,[F,G]=n.useState(!1),[Q,K]=n.useState(""),[J,X]=n.useState([]),[ee,te]=n.useState(),[le,ie]=n.useState(!1),{variableList:ae,setVariableList:ne,setVariableCallback:se,setShowVariablePicker:oe,device:ue,channel:de,isError:re,originalVariableList:ce,template:pe,templateSelectionTriggered:ve,setTemplate:me,setDisplayContent:be,setOriginalVariableList:ge,globalNormalizedPlaceholders:Oe,enabledCustomText:je,pod:xe,selectedCarouselIndex:Te,isProductCarouselType:Ee,isWhatsappCarousel:ye,disableEditVariable:_e,disableEditExpiry:he,templateErrorIndexes:Ce,maxCharLimit:fe,disableDatePicker:Ne,showDiscountCodeExpiryInfo:Pe,cardIndex:Ae=1}=E.useTemplateModalContext();function Le(e,t){var l,i,a,n;const s=e;K(""),te(s),de===b.CHANNEL_TYPE.WHATSAPP||de===b.CHANNEL_TYPE.RCS?"custom_text"!==s.value&&"custom_link"!==s.value&&"static_expiry"!==s.value?(He(null!==(l=s.value)&&void 0!==l?l:"","string"),null==Ve||Ve(null!==(i=q.index)&&void 0!==i?i:0,s.value,!0)):(null==Ve||Ve(null!==(a=q.index)&&void 0!==a?a:0,"",!0,s.value),He("","url"===s.bikPlaceholderType?"link":"string")):"custom_text"!==s.value&&"custom_link"!==s.value?(He(s.value,"url"===s.bikPlaceholderType?"link":"string"),de==b.CHANNEL_TYPE.WEBPUSH&&(null==Be||Be(null!==(n=q.index)&&void 0!==n?n:0,s.value))):(K(""),He("",s.value))}function Se(e,t){var l,i;K(t);const a="custom_link"===(null==ee?void 0:ee.value)&&t?t.includes("https")?t:`https://${t}`:t;He(a,"static_expiry"===e?"string":e),de!==b.CHANNEL_TYPE.WHATSAPP&&de!==b.CHANNEL_TYPE.RCS||null==Ve||Ve(null!==(l=q.index)&&void 0!==l?l:0,a,"custom_link"===e||xe===O.POD.CHATBOT&&"custom_text"===e,e),de===b.CHANNEL_TYPE.WEBPUSH&&(null==Be||Be(null!==(i=q.index)&&void 0!==i?i:0,a))}function He(e,t,l){var i,n,s,o,u;const d="custom_link"===t?"link":"custom_text"===t?"string":t;if(de!==b.CHANNEL_TYPE.WHATSAPP&&de!==b.CHANNEL_TYPE.WEBPUSH&&de!==b.CHANNEL_TYPE.RCS){const l=_.getVariableNameForEmailByIndex(I+1),a=null===document||void 0===document?void 0:document.getElementById("mobile"===ue?"template_html_mobile":"template_html_desktop"),n=de===b.CHANNEL_TYPE.EMAIL?null===(i=null==a?void 0:a.contentWindow)||void 0===i?void 0:i.document.getElementById(l):document.getElementById(l);n&&(n.textContent="custom_text"!==t&&"custom_link"!==t||e?e:q.variableName);const s=ce.map((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t);null==ge||ge(s)}if(de===b.CHANNEL_TYPE.WEBPUSH){const t=ce,l=t=>null==t?void 0:t.map((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t),i={BODY:"BODY"===$?l(t.body):t.body,TITLE:$===g.WEB_PUSH_COMPONENT_TYPE.TITLE.toUpperCase()?l(t.title):t.title};null==ge||ge(e=>Object.assign(Object.assign({},e),{title:i.TITLE,body:i.BODY,buttons:t.buttons}))}if(de===b.CHANNEL_TYPE.WHATSAPP||de===b.CHANNEL_TYPE.RCS){if(null!=Te&&Te>-1&&Ee){const l=Object.assign({},ce).cards.map((l,i)=>{var a,n,s;return"BODY"===$?Object.assign(Object.assign({},l),{body:null===(a=l.body)||void 0===a?void 0:a.map((t,l)=>I===l?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t)}):"TITLE"===$?Object.assign(Object.assign({},l),{title:null===(n=l.title)||void 0===n?void 0:n.map((t,l)=>I===l?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t)}):"BUTTONS"===$?Object.assign(Object.assign({},l),{buttons:null===(s=l.buttons)||void 0===s?void 0:s.map((l,i)=>i===I?Object.assign(Object.assign({},l),{buttonVariable:"custom_link"===t?"((customPlaceholderName))":e,example:"COPY_CODE"===l.type?e:[e]}):l)}):l});return void(null==ge||ge(e=>Object.assign(Object.assign({},e),{cards:l})))}const i=null!=Te&&Te>-1?ce.cards[Te]:ce;let r=i.body,c=i.title,p=i.header,v=i.buttons;if("BODY"===$?r=null===(n=i.body)||void 0===n?void 0:n.map((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t):"TITLE"===$?c=null===(s=null==i?void 0:i.title)||void 0===s?void 0:s.map((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t):"HEADER"===$?p=null===(o=i.header)||void 0===o?void 0:o.map((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t):"BUTTONS"===$&&(v=null===(u=i.buttons)||void 0===u?void 0:u.map((i,a)=>a===I?Object.assign(Object.assign({},i),{buttonVariable:"custom_link"===t?"((customPlaceholderName))":e,example:"COPY_CODE"===i.type?e:[e],queryParams:null!=l?l:[]}):i)),null!=Te&&Te>-1){const e=a.cloneDeep(ce.cards);e[Te]={header:p,body:r,buttons:v,title:c},null==ge||ge(t=>Object.assign(Object.assign({},t),{cards:e}))}else null==ge||ge(e=>Object.assign(Object.assign({},e),{header:p,body:r,buttons:v,title:c}))}}function Ve(e,t,l,i){var n,s,o,u,d,r,c,p,v,b,g,O;if(null!=Te&&Te>-1&&Ee){const s=Object.assign({},pe).components.map(l=>{var i;return m.isCarouselComponent(l.type)?Object.assign(Object.assign({},l),{cards:null===(i=l.cards)||void 0===i?void 0:i.map(l=>Object.assign(Object.assign({},l),{components:l.components.map(l=>{var i,a,n,s,o,u,d,r,c,p,v;if("BODY"===l.type&&"BODY"===$){if(null===(a=null===(i=l.example)||void 0===i?void 0:i.body_text)||void 0===a?void 0:a[0]){const i=[...null!==(o=null===(s=null===(n=l.example)||void 0===n?void 0:n.body_text)||void 0===s?void 0:s[0])&&void 0!==o?o:[]];i[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const a=Object.assign(Object.assign({},l.example),{body_text:[i]});return Object.assign(Object.assign({},l),{example:a})}return l}if("TITLE"===l.type&&"TITLE"===$){if(null===(d=null===(u=l.example)||void 0===u?void 0:u.title_text)||void 0===d?void 0:d[0]){const i=[...null!==(p=null===(c=null===(r=l.example)||void 0===r?void 0:r.title_text)||void 0===c?void 0:c[0])&&void 0!==p?p:[]];i[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const a=Object.assign(Object.assign({},l.example),{title_text:[i]});return Object.assign(Object.assign({},l),{example:a})}return l}if("BUTTONS"===l.type&&"BUTTONS"===$){const i=null===(v=l.buttons)||void 0===v?void 0:v.map((l,i)=>i===e?Object.assign(Object.assign({},l),{example:[t]}):l);return i?Object.assign(Object.assign({},l),{buttons:i}):l}return l})}))}):l}),o=a.cloneDeep(pe);if(l){const l=null===(n=Object.assign({},pe).mapping.cards)||void 0===n?void 0:n.map((l,a)=>{var n,s,o,u;if("BODY"===$)return Object.assign(Object.assign({},l),{body:null===(n=l.body)||void 0===n?void 0:n.map((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+10}))`:t:l)});if("TITLE"===$)return Object.assign(Object.assign({},l),{title:null===(s=null==l?void 0:l.title)||void 0===s?void 0:s.map((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+10}))`:t:l)});if("BUTTONS"===$&&(null==l?void 0:l.buttons)){let n=-1,s=-1;return null===(o=pe.components[Ae].cards)||void 0===o||o[a].components.forEach(t=>{var l;"BUTTONS"===t.type&&(null===(l=t.buttons)||void 0===l||l.forEach((t,l)=>{"URL"===t.type&&(n++,l===e&&"URL"==t.type&&(s=n))}))}),Object.assign(Object.assign({},l),{buttons:null===(u=l.buttons)||void 0===u?void 0:u.map((e,l)=>l===s?"custom_link"===i?"((customPlaceholderName))":t:e)})}return l});o.mapping.cards=l}return o.components=s,void(null==me||me(o))}const j=null!=Te&&Te>-1?{components:null===(s=Object.assign({},pe).components[Ae].cards)||void 0===s?void 0:s[Te].components,mapping:null===(o=Object.assign({},pe).mapping.cards)||void 0===o?void 0:o[Te]}:Object.assign({},pe),x=null===(u=null==j?void 0:j.components)||void 0===u?void 0:u.map(l=>{var i,a,n,s,o,u,d,r,c,p,v,m,b,g,O,j;const x=Object.assign({},l);if("BODY"===l.type&&"BODY"===$&&(Array.isArray(null===(i=l.example)||void 0===i?void 0:i.body_text)||(null===(n=null===(a=l.example)||void 0===a?void 0:a.body_text)||void 0===n?void 0:n[0]))){const l=[...null!==(u=null===(o=null===(s=x.example)||void 0===s?void 0:s.body_text)||void 0===o?void 0:o[0])&&void 0!==u?u:[]];l[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const i=Object.assign(Object.assign({},x.example),{body_text:[l]});return Object.assign(Object.assign({},x),{example:i})}if("TITLE"===l.type&&"TITLE"===$){if(Array.isArray(null===(d=l.example)||void 0===d?void 0:d.title_text)||(null===(c=null===(r=l.example)||void 0===r?void 0:r.title_text)||void 0===c?void 0:c[0])){const l=[...null!==(m=null===(v=null===(p=x.example)||void 0===p?void 0:p.title_text)||void 0===v?void 0:v[0])&&void 0!==m?m:[]];l[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const i=Object.assign(Object.assign({},x.example),{title_text:[l]});return Object.assign(Object.assign({},x),{example:i})}}else if("HEADER"===l.type&&"HEADER"===$){if(null===(b=l.example)||void 0===b?void 0:b.header_text){const l=[...null!==(O=null===(g=x.example)||void 0===g?void 0:g.header_text)&&void 0!==O?O:[]];l[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const i=Object.assign(Object.assign({},x.example),{header_text:l});return Object.assign(Object.assign({},x),{example:i})}}else{if("BUTTONS"===l.type&&"BUTTONS"===$){const i=null===(j=l.buttons)||void 0===j?void 0:j.map((l,i)=>i===e?Object.assign(Object.assign({},l),{example:"COPY_CODE"===l.type?t:[t]}):l);return i?Object.assign(Object.assign({},x),{buttons:i}):x}if("limited_time_offer"===l.type&&"limited_time_offer"===$)return Object.assign(Object.assign({},x),{example:Object.assign(Object.assign({},x.example),{limited_time_offer:t})})}return l});if(j.components=x,l)if("BODY"===$&&(null===(d=null==j?void 0:j.mapping)||void 0===d?void 0:d.body))j.mapping=Object.assign(Object.assign({},j.mapping),{body:null===(c=null===(r=j.mapping)||void 0===r?void 0:r.body)||void 0===c?void 0:c.map((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+10}))`:t:l)});else if("TITLE"===$&&(null===(p=null==j?void 0:j.mapping)||void 0===p?void 0:p.title))j.mapping=Object.assign(Object.assign({},j.mapping),{title:null===(b=null===(v=j.mapping)||void 0===v?void 0:v.title)||void 0===b?void 0:b.map((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+10}))`:t:l)});else if("HEADER"===$&&(null===(g=null==j?void 0:j.mapping)||void 0===g?void 0:g.header))j.mapping=Object.assign(Object.assign({},j.mapping),{header:j.mapping.header.map((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+20}))`:t:l)});else if("BUTTONS"===$&&(null===(O=null==j?void 0:j.mapping)||void 0===O?void 0:O.buttons)){let l=-1,a=-1;x.forEach(t=>{var i;"BUTTONS"===t.type&&(null===(i=t.buttons)||void 0===i||i.forEach((t,i)=>{"URL"===t.type&&(l++,i===e&&"URL"==t.type&&(a=l))}))}),j.mapping=Object.assign(Object.assign({},j.mapping),{buttons:j.mapping.buttons.map((e,l)=>l===a?"custom_link"===i?"((customPlaceholderName))":t:e)})}if(null!=Te&&Te>-1&&pe){const e=a.cloneDeep(pe);e.components[Ae].cards[Te].components=j.components,e.mapping.cards[Te]=j.mapping,null==me||me(e)}else null==me||me(Object.assign({},j))}n.useEffect(()=>{F&&(null==R||R())},[F]),n.useEffect(()=>{!function(){var e,t,l,i,a;const n="mobile"===ue?"template_html_mobile":"template_html_desktop",s=document.getElementById(n),o=(null!==(i=null===(l=null===(t=null===(e=null==s?void 0:s.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.body)||void 0===l?void 0:l.innerHTML)&&void 0!==i?i:"")+(null===(a=null==s?void 0:s.contentWindow)||void 0===a?void 0:a.document.head.innerHTML);de===b.CHANNEL_TYPE.EMAIL&&(null==be||be(o))}()},[ve]),n.useEffect(()=>{!function(){var e,t;const l=[];let i=[];if(de!==b.CHANNEL_TYPE.MESSAGE||je){"link"===(null==q?void 0:q.type)?(l.push({label:"",options:[L,S]}),te(L)):"date_time"===(null==q?void 0:q.type)?(l.push({label:"",options:[L,S]}),te(H)):(l.push({label:"",options:[L,S,H]}),te(S));const e=null!=Oe?Oe:[];X([...l,...e.map(e=>{var t,l;return Object.assign(Object.assign({},e),{label:x.default.toCapitilize(null===(l=null===(t=e.label)||void 0===t?void 0:t.replace(/([A-Z])/g," $1"))||void 0===l?void 0:l.toLowerCase())})})]),i=[...l,...e]}else{const e=null!=Oe?Oe:[];X([{label:"",options:[S,L]},...e]),i=[{label:"",options:[S,L]},...e]}if((de===b.CHANNEL_TYPE.WHATSAPP||de===b.CHANNEL_TYPE.EMAIL||de===b.CHANNEL_TYPE.MESSAGE||de===b.CHANNEL_TYPE.WEBPUSH||de===b.CHANNEL_TYPE.RCS)&&q.updatedValue)if(v.placeHolderNamePattern.test(q.updatedValue)&&(de===b.CHANNEL_TYPE.WHATSAPP||de===b.CHANNEL_TYPE.RCS)||q.updatedValue.startsWith("{{")&&de!==b.CHANNEL_TYPE.WHATSAPP&&de!==b.CHANNEL_TYPE.RCS){const e=function(e,t,l){var i;let a={label:"",value:""};const n=l===(b.CHANNEL_TYPE.WHATSAPP||b.CHANNEL_TYPE.RCS)?e.updatedValue.replace("[[","").replace("]]",""):e.updatedValue.replace("{{","").replace("}}","");if(W){let t=e.updatedValue;if(xe===O.POD.CHATBOT&&"BUTTONS"===$){const l=null==z?void 0:z.filter(t=>t.placeHolder===e.updatedValue);l&&l.length>0&&(t=l[0].label)}a={label:t?t.replace("{{","").replace("}}","").trim().replace("."," "):"",value:null!==(i=e.updatedValue)&&void 0!==i?i:""}}else t.map(e=>{e.options.map(e=>{var t;(null===(t=e.value)||void 0===t?void 0:t.replace("{{","").replace("}}","").trim())===n.trim()&&(a=e)})});return a}(q,i,de);e.value&&te(e)}else"date_time"===q.type?(te(H),K(q.updatedValue),Ve(null!==(e=q.index)&&void 0!==e?e:0,q.updatedValue)):(null===(t=q.updatedValue)||void 0===t?void 0:t.startsWith("https"))?(te(L),K(q.updatedValue.split("https://")[1])):(te(S),K(q.updatedValue))}()},[Te]),n.useEffect(()=>{ue&&ee&&Q&&setTimeout(()=>{He("custom_link"===(null==ee?void 0:ee.value)&&Q?Q.includes("https")?Q:`https://${Q}`:Q,ee.value)},100)},[ue]),n.useEffect(()=>{!le&&ee&&q.updatedValue&&setTimeout(()=>{He("custom_link"===(null==ee?void 0:ee.value)&&q.updatedValue?q.updatedValue.includes("https")?q.updatedValue:`https://${q.updatedValue}`:q.updatedValue,ee.value),ie(!0)},100)},[ee]);const ke=e=>{null==M||M(!1),"{{custom.url}}"===e.actualValue?Le({label:e.displayName,selected:!0,value:"custom_link"}):"{{custom.text}}"==e.actualValue?Le({label:e.displayName,selected:!0,value:"custom_text"}):"{{static.expiry}}"==e.actualValue?Le({label:e.displayName,selected:!0,value:"static_expiry"}):Le({label:e.displayName.replace("{{","").replace("}}","").trim().replace("."," "),selected:!0,value:e.actualValue,bikPlaceholderType:"string"})};function Be(e,t){var l;const i=a.cloneDeep(pe),n=$.toLocaleLowerCase();(null===(l=i.webpushBroadcastConfig)||void 0===l?void 0:l[n])&&(i.webpushBroadcastConfig[n][e]=t),null==me||me(Object.assign({},i))}return e.jsxs(N,Object.assign({channel:de,focused:F,onMouseEnter:()=>G(!0),onMouseLeave:()=>G(!1)},{children:[e.jsx("div",Object.assign({style:{marginBottom:8}},{children:e.jsxs(j.BodySecondary,Object.assign({style:{color:re&&!ee?T.COLORS.content.negative:T.COLORS.content.primary}},{children:[null===(C=q.variableName)||void 0===C?void 0:C.replace("{{","").replace("}}","")," ","link"===(null==q?void 0:q.type)?"link":"variable"]}))})),e.jsx("div",Object.assign({style:{marginBottom:12}},{children:W?e.jsxs("div",Object.assign({style:{display:"flex",border:"#E0E0E0 1px solid",borderRadius:4,padding:10,justifyContent:(null==ee?void 0:ee.label)?"space-between":"flex-end",backgroundColor:"date_time"===(null==q?void 0:q.type)&&he?T.COLORS.background.base:void 0}},{children:[e.jsx(j.BodyPrimary,Object.assign({numberOfLines:1},{children:xe===O.POD.CHATBOT?["static_expiry","custom_text","custom_link"].includes(null!==(f=null==ee?void 0:ee.value)&&void 0!==f?f:"")?null==ee?void 0:ee.label:null==ee?void 0:ee.value:p.truncate(null!==(V=null==ee?void 0:ee.label)&&void 0!==V?V:"",20,!0)})),_e||"date_time"===(null==q?void 0:q.type)&&he?e.jsx(e.Fragment,{}):e.jsx(t.default,{onClick:()=>{(()=>{let e=Array.isArray(ae)?[...ae]:[];const t=(t,l,i)=>{const a=y.updateVariables({variableList:e,categoryDisplayName:t,variableDisplayName:l,variableValue:i});Array.isArray(a)&&(e=a)};xe===O.POD.CHATBOT&&Z!==O.BUTTON_TYPE.URL&&"limited_time_offer"!==$&&t("Custom Variables","Custom Text","{{custom.text}}"),Z===O.BUTTON_TYPE.URL&&xe===O.POD.CHATBOT?t("Custom Variables","Custom URL","{{custom.url}}"):"limited_time_offer"===$?t("Static Variables","Static Expiry","{{static.expiry}}"):Z===O.BUTTON_TYPE.COPY_CODE&&t("Custom Variables","Custom Text","{{custom.text}}"),ne(e)})(),se(()=>ke),oe(!0)},width:24,height:24,color:T.COLORS.content.primary})]})):e.jsx(r.Dropdown,{disabled:_e,options:J,isSearchable:!1,onSelect:Le,defaultOptions:ee?[Object.assign(Object.assign({},ee),{selected:!0})]:[]})})),("custom_text"===(null==ee?void 0:ee.value)||"custom_link"===(null==ee?void 0:ee.value))&&e.jsx(c.Input,{state:_e?"disabled":"none",labelText:"custom_text"===(null==ee?void 0:ee.value)?"Custom text value":"custom_link"===(null==ee?void 0:ee.value)?"Custom URL value":"",id:`variable-value-${null==ee?void 0:ee.value}-${I}`,value:Q,errorMessage:re&&(null===(k=null==Ce?void 0:Ce.buttons)||void 0===k?void 0:k.includes(null!==(B=null==q?void 0:q.index)&&void 0!==B?B:-1))?Q&&0!==Q.trim().length?"custom_link"!==ee.value||/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/.test(`https://${Q.trim()}`)&&0!==Q.trim().length?"custom_link"!==ee.value&&Q.length>30?"Length cannot be more than 30":"BUTTONS"===$&&"custom_link"!==ee.value?"Enter valid alpha numeric code":"":"Enter valid URL":"Required field":"",maxCharLimit:fe||("custom_link"===(null==ee?void 0:ee.value)?2e3:"BUTTONS"===$?15:30),noKeyDownChange:!0,prefixText:"custom_link"===(null==ee?void 0:ee.value)?"https://":"",placeholder:"link"===q.type||"custom_link"===ee.value?"Enter custom URL here":"Enter custom text here",onChangeText:e=>{Se(ee.value,e)}}),"static_expiry"===(null==ee?void 0:ee.value)&&e.jsxs("div",Object.assign({style:{position:"relative"}},{children:[(_e||Ne)&&e.jsxs(P,Object.assign({onClick:e=>e.preventDefault(),style:{display:"flex",justifyContent:"space-between"}},{children:[e.jsx(A,{}),e.jsx(A,{})]})),e.jsx(d.CustomDateTime,{placement:"auto",time:Q?i.format(new Date(Q),"hh:mm a"):i.format(new Date,"hh:mm a"),date:Q?new Date(Q):new Date,minDate:new Date,error:"",setError:()=>{},onChange:e=>{Se("static_expiry",e.toISOString())}})]})),"static_expiry"===(null==ee?void 0:ee.value)&&Pe&&e.jsx("div",Object.assign({style:{marginTop:8}},{children:e.jsx(o.Alert,{containerStyle:{padding:"4px 8px"},icon:()=>e.jsx(l.default,{width:16,height:16,color:T.COLORS.content.secondary}),type:u.ALERT_TYPES.NEUTRAL,text:"Please use the same expiration code that you applied when creating\nthe code on Shopify"})})),"link"===q.type&&"custom_link"!==(null==ee?void 0:ee.value)&&!Ee&&!ye&&xe===O.POD.CHATBOT&&e.jsx(h.QueryParamsComponent,{isError:null!==(w=null===(D=null==Ce?void 0:Ce.buttons)||void 0===D?void 0:D.includes(null!==(Y=null==q?void 0:q.index)&&void 0!==Y?Y:-1))&&void 0!==w&&w,params:null!==(U=q.queryParams)&&void 0!==U?U:[],onChange:e=>{He(q.updatedValue,"link",e)},variableValue:q.updatedValue})]}))};
19
+ `,L={value:"custom_link",label:"Custom URL"},S={value:"custom_text",label:"Custom text"},H={value:"static_expiry",label:"Static Expiry"};exports.Container=N,exports.default=s=>{var C,f,V,k,B,D,Y,w,U;const{onFocus:R,variable:q,index:I,showVariableModal:W,setShowDiscountCheckBox:M,componentType:$,CTAoptions:z,buttonType:Z}=s,[F,G]=n.useState(!1),[Q,K]=n.useState(""),[J,X]=n.useState([]),[ee,te]=n.useState(),[le,ie]=n.useState(!1),{variableList:ae,setVariableList:ne,setVariableCallback:se,setShowVariablePicker:oe,device:ue,channel:de,isError:re,originalVariableList:ce,template:pe,templateSelectionTriggered:ve,setTemplate:me,setDisplayContent:be,setOriginalVariableList:ge,globalNormalizedPlaceholders:Oe,enabledCustomText:je,pod:xe,selectedCarouselIndex:Te,isProductCarouselType:Ee,isWhatsappCarousel:ye,disableEditVariable:_e,disableEditExpiry:he,templateErrorIndexes:Ce,maxCharLimit:fe,disableDatePicker:Ne,showDiscountCodeExpiryInfo:Pe,cardIndex:Ae=1}=E.useTemplateModalContext();function Le(e,t){var l,i,a,n;const s=e;K(""),te(s),de===b.CHANNEL_TYPE.WHATSAPP||de===b.CHANNEL_TYPE.RCS?"custom_text"!==s.value&&"custom_link"!==s.value&&"static_expiry"!==s.value?(He(null!==(l=s.value)&&void 0!==l?l:"","string"),null==Ve||Ve(null!==(i=q.index)&&void 0!==i?i:0,s.value,!0)):(null==Ve||Ve(null!==(a=q.index)&&void 0!==a?a:0,"",!0,s.value),He("","url"===s.bikPlaceholderType?"link":"string")):"custom_text"!==s.value&&"custom_link"!==s.value?(He(s.value,"url"===s.bikPlaceholderType?"link":"string"),de==b.CHANNEL_TYPE.WEBPUSH&&(null==Be||Be(null!==(n=q.index)&&void 0!==n?n:0,s.value))):(K(""),He("",s.value))}function Se(e,t){var l,i;K(t);const a="custom_link"===(null==ee?void 0:ee.value)&&t?t.includes("https")?t:`https://${t}`:t;He(a,"static_expiry"===e?"string":e),de!==b.CHANNEL_TYPE.WHATSAPP&&de!==b.CHANNEL_TYPE.RCS||null==Ve||Ve(null!==(l=q.index)&&void 0!==l?l:0,a,"custom_link"===e||xe===O.POD.CHATBOT&&"custom_text"===e,e),de===b.CHANNEL_TYPE.WEBPUSH&&(null==Be||Be(null!==(i=q.index)&&void 0!==i?i:0,a))}function He(e,t,l){var i,n,s,o,u;const d="custom_link"===t?"link":"custom_text"===t?"string":t;if(de!==b.CHANNEL_TYPE.WHATSAPP&&de!==b.CHANNEL_TYPE.WEBPUSH&&de!==b.CHANNEL_TYPE.RCS){const l=_.getVariableNameForEmailByIndex(I+1),a=null===document||void 0===document?void 0:document.getElementById("mobile"===ue?"template_html_mobile":"template_html_desktop"),n=de===b.CHANNEL_TYPE.EMAIL?null===(i=null==a?void 0:a.contentWindow)||void 0===i?void 0:i.document.getElementById(l):document.getElementById(l);n&&(n.textContent="custom_text"!==t&&"custom_link"!==t||e?e:q.variableName);const s=ce.map(((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t));null==ge||ge(s)}if(de===b.CHANNEL_TYPE.WEBPUSH){const t=ce,l=t=>null==t?void 0:t.map(((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t)),i={BODY:"BODY"===$?l(t.body):t.body,TITLE:$===g.WEB_PUSH_COMPONENT_TYPE.TITLE.toUpperCase()?l(t.title):t.title};null==ge||ge((e=>Object.assign(Object.assign({},e),{title:i.TITLE,body:i.BODY,buttons:t.buttons})))}if(de===b.CHANNEL_TYPE.WHATSAPP||de===b.CHANNEL_TYPE.RCS){if(null!=Te&&Te>-1&&Ee){const l=Object.assign({},ce).cards.map(((l,i)=>{var a,n,s;return"BODY"===$?Object.assign(Object.assign({},l),{body:null===(a=l.body)||void 0===a?void 0:a.map(((t,l)=>I===l?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t))}):"TITLE"===$?Object.assign(Object.assign({},l),{title:null===(n=l.title)||void 0===n?void 0:n.map(((t,l)=>I===l?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t))}):"BUTTONS"===$?Object.assign(Object.assign({},l),{buttons:null===(s=l.buttons)||void 0===s?void 0:s.map(((l,i)=>i===I?Object.assign(Object.assign({},l),{buttonVariable:"custom_link"===t?"((customPlaceholderName))":e,example:"COPY_CODE"===l.type?e:[e]}):l))}):l}));return void(null==ge||ge((e=>Object.assign(Object.assign({},e),{cards:l}))))}const i=null!=Te&&Te>-1?ce.cards[Te]:ce;let r=i.body,c=i.title,p=i.header,v=i.buttons;if("BODY"===$?r=null===(n=i.body)||void 0===n?void 0:n.map(((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t)):"TITLE"===$?c=null===(s=null==i?void 0:i.title)||void 0===s?void 0:s.map(((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t)):"HEADER"===$?p=null===(o=i.header)||void 0===o?void 0:o.map(((t,l)=>l===I?Object.assign(Object.assign({},t),{type:d,updatedValue:e}):t)):"BUTTONS"===$&&(v=null===(u=i.buttons)||void 0===u?void 0:u.map(((i,a)=>a===I?Object.assign(Object.assign({},i),{buttonVariable:"custom_link"===t?"((customPlaceholderName))":e,example:"COPY_CODE"===i.type?e:[e],queryParams:null!=l?l:[]}):i))),null!=Te&&Te>-1){const e=a.cloneDeep(ce.cards);e[Te]={header:p,body:r,buttons:v,title:c},null==ge||ge((t=>Object.assign(Object.assign({},t),{cards:e})))}else null==ge||ge((e=>Object.assign(Object.assign({},e),{header:p,body:r,buttons:v,title:c})))}}function Ve(e,t,l,i){var n,s,o,u,d,r,c,p,v,b,g,O;if(null!=Te&&Te>-1&&Ee){const s=Object.assign({},pe).components.map((l=>{var i;return m.isCarouselComponent(l.type)?Object.assign(Object.assign({},l),{cards:null===(i=l.cards)||void 0===i?void 0:i.map((l=>Object.assign(Object.assign({},l),{components:l.components.map((l=>{var i,a,n,s,o,u,d,r,c,p,v;if("BODY"===l.type&&"BODY"===$){if(null===(a=null===(i=l.example)||void 0===i?void 0:i.body_text)||void 0===a?void 0:a[0]){const i=[...null!==(o=null===(s=null===(n=l.example)||void 0===n?void 0:n.body_text)||void 0===s?void 0:s[0])&&void 0!==o?o:[]];i[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const a=Object.assign(Object.assign({},l.example),{body_text:[i]});return Object.assign(Object.assign({},l),{example:a})}return l}if("TITLE"===l.type&&"TITLE"===$){if(null===(d=null===(u=l.example)||void 0===u?void 0:u.title_text)||void 0===d?void 0:d[0]){const i=[...null!==(p=null===(c=null===(r=l.example)||void 0===r?void 0:r.title_text)||void 0===c?void 0:c[0])&&void 0!==p?p:[]];i[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const a=Object.assign(Object.assign({},l.example),{title_text:[i]});return Object.assign(Object.assign({},l),{example:a})}return l}if("BUTTONS"===l.type&&"BUTTONS"===$){const i=null===(v=l.buttons)||void 0===v?void 0:v.map(((l,i)=>i===e?Object.assign(Object.assign({},l),{example:[t]}):l));return i?Object.assign(Object.assign({},l),{buttons:i}):l}return l}))})))}):l})),o=a.cloneDeep(pe);if(l){const l=null===(n=Object.assign({},pe).mapping.cards)||void 0===n?void 0:n.map(((l,a)=>{var n,s,o,u;if("BODY"===$)return Object.assign(Object.assign({},l),{body:null===(n=l.body)||void 0===n?void 0:n.map(((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+10}))`:t:l))});if("TITLE"===$)return Object.assign(Object.assign({},l),{title:null===(s=null==l?void 0:l.title)||void 0===s?void 0:s.map(((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+10}))`:t:l))});if("BUTTONS"===$&&(null==l?void 0:l.buttons)){let n=-1,s=-1;return null===(o=pe.components[Ae].cards)||void 0===o||o[a].components.forEach((t=>{var l;"BUTTONS"===t.type&&(null===(l=t.buttons)||void 0===l||l.forEach(((t,l)=>{"URL"===t.type&&(n++,l===e&&"URL"==t.type&&(s=n))})))})),Object.assign(Object.assign({},l),{buttons:null===(u=l.buttons)||void 0===u?void 0:u.map(((e,l)=>l===s?"custom_link"===i?"((customPlaceholderName))":t:e))})}return l}));o.mapping.cards=l}return o.components=s,void(null==me||me(o))}const j=null!=Te&&Te>-1?{components:null===(s=Object.assign({},pe).components[Ae].cards)||void 0===s?void 0:s[Te].components,mapping:null===(o=Object.assign({},pe).mapping.cards)||void 0===o?void 0:o[Te]}:Object.assign({},pe),x=null===(u=null==j?void 0:j.components)||void 0===u?void 0:u.map((l=>{var i,a,n,s,o,u,d,r,c,p,v,m,b,g,O,j;const x=Object.assign({},l);if("BODY"===l.type&&"BODY"===$&&(Array.isArray(null===(i=l.example)||void 0===i?void 0:i.body_text)||(null===(n=null===(a=l.example)||void 0===a?void 0:a.body_text)||void 0===n?void 0:n[0]))){const l=[...null!==(u=null===(o=null===(s=x.example)||void 0===s?void 0:s.body_text)||void 0===o?void 0:o[0])&&void 0!==u?u:[]];l[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const i=Object.assign(Object.assign({},x.example),{body_text:[l]});return Object.assign(Object.assign({},x),{example:i})}if("TITLE"===l.type&&"TITLE"===$){if(Array.isArray(null===(d=l.example)||void 0===d?void 0:d.title_text)||(null===(c=null===(r=l.example)||void 0===r?void 0:r.title_text)||void 0===c?void 0:c[0])){const l=[...null!==(m=null===(v=null===(p=x.example)||void 0===p?void 0:p.title_text)||void 0===v?void 0:v[0])&&void 0!==m?m:[]];l[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const i=Object.assign(Object.assign({},x.example),{title_text:[l]});return Object.assign(Object.assign({},x),{example:i})}}else if("HEADER"===l.type&&"HEADER"===$){if(null===(b=l.example)||void 0===b?void 0:b.header_text){const l=[...null!==(O=null===(g=x.example)||void 0===g?void 0:g.header_text)&&void 0!==O?O:[]];l[e]=t.replace("{{","").replace("}}","").replace("((","").replace("))","");const i=Object.assign(Object.assign({},x.example),{header_text:l});return Object.assign(Object.assign({},x),{example:i})}}else{if("BUTTONS"===l.type&&"BUTTONS"===$){const i=null===(j=l.buttons)||void 0===j?void 0:j.map(((l,i)=>i===e?Object.assign(Object.assign({},l),{example:"COPY_CODE"===l.type?t:[t]}):l));return i?Object.assign(Object.assign({},x),{buttons:i}):x}if("limited_time_offer"===l.type&&"limited_time_offer"===$)return Object.assign(Object.assign({},x),{example:Object.assign(Object.assign({},x.example),{limited_time_offer:t})})}return l}));if(j.components=x,l)if("BODY"===$&&(null===(d=null==j?void 0:j.mapping)||void 0===d?void 0:d.body))j.mapping=Object.assign(Object.assign({},j.mapping),{body:null===(c=null===(r=j.mapping)||void 0===r?void 0:r.body)||void 0===c?void 0:c.map(((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+10}))`:t:l))});else if("TITLE"===$&&(null===(p=null==j?void 0:j.mapping)||void 0===p?void 0:p.title))j.mapping=Object.assign(Object.assign({},j.mapping),{title:null===(b=null===(v=j.mapping)||void 0===v?void 0:v.title)||void 0===b?void 0:b.map(((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+10}))`:t:l))});else if("HEADER"===$&&(null===(g=null==j?void 0:j.mapping)||void 0===g?void 0:g.header))j.mapping=Object.assign(Object.assign({},j.mapping),{header:j.mapping.header.map(((l,a)=>e===a?"custom_text"===i?`((editableVariable${a+20}))`:t:l))});else if("BUTTONS"===$&&(null===(O=null==j?void 0:j.mapping)||void 0===O?void 0:O.buttons)){let l=-1,a=-1;x.forEach((t=>{var i;"BUTTONS"===t.type&&(null===(i=t.buttons)||void 0===i||i.forEach(((t,i)=>{"URL"===t.type&&(l++,i===e&&"URL"==t.type&&(a=l))})))})),j.mapping=Object.assign(Object.assign({},j.mapping),{buttons:j.mapping.buttons.map(((e,l)=>l===a?"custom_link"===i?"((customPlaceholderName))":t:e))})}if(null!=Te&&Te>-1&&pe){const e=a.cloneDeep(pe);e.components[Ae].cards[Te].components=j.components,e.mapping.cards[Te]=j.mapping,null==me||me(e)}else null==me||me(Object.assign({},j))}n.useEffect((()=>{F&&(null==R||R())}),[F]),n.useEffect((()=>{!function(){var e,t,l,i,a;const n="mobile"===ue?"template_html_mobile":"template_html_desktop",s=document.getElementById(n),o=(null!==(i=null===(l=null===(t=null===(e=null==s?void 0:s.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.body)||void 0===l?void 0:l.innerHTML)&&void 0!==i?i:"")+(null===(a=null==s?void 0:s.contentWindow)||void 0===a?void 0:a.document.head.innerHTML);de===b.CHANNEL_TYPE.EMAIL&&(null==be||be(o))}()}),[ve]),n.useEffect((()=>{!function(){var e,t;const l=[];let i=[];if(de!==b.CHANNEL_TYPE.MESSAGE||je){"link"===(null==q?void 0:q.type)?(l.push({label:"",options:[L,S]}),te(L)):"date_time"===(null==q?void 0:q.type)?(l.push({label:"",options:[L,S]}),te(H)):(l.push({label:"",options:[L,S,H]}),te(S));const e=null!=Oe?Oe:[];X([...l,...e.map((e=>{var t,l;return Object.assign(Object.assign({},e),{label:x.default.toCapitilize(null===(l=null===(t=e.label)||void 0===t?void 0:t.replace(/([A-Z])/g," $1"))||void 0===l?void 0:l.toLowerCase())})}))]),i=[...l,...e]}else{const e=null!=Oe?Oe:[];X([{label:"",options:[S,L]},...e]),i=[{label:"",options:[S,L]},...e]}if((de===b.CHANNEL_TYPE.WHATSAPP||de===b.CHANNEL_TYPE.EMAIL||de===b.CHANNEL_TYPE.MESSAGE||de===b.CHANNEL_TYPE.WEBPUSH||de===b.CHANNEL_TYPE.RCS)&&q.updatedValue)if(v.placeHolderNamePattern.test(q.updatedValue)&&(de===b.CHANNEL_TYPE.WHATSAPP||de===b.CHANNEL_TYPE.RCS)||q.updatedValue.startsWith("{{")&&de!==b.CHANNEL_TYPE.WHATSAPP&&de!==b.CHANNEL_TYPE.RCS){const e=function(e,t,l){var i;let a={label:"",value:""};const n=l===(b.CHANNEL_TYPE.WHATSAPP||b.CHANNEL_TYPE.RCS)?e.updatedValue.replace("[[","").replace("]]",""):e.updatedValue.replace("{{","").replace("}}","");if(W){let t=e.updatedValue;if(xe===O.POD.CHATBOT&&"BUTTONS"===$){const l=null==z?void 0:z.filter((t=>t.placeHolder===e.updatedValue));l&&l.length>0&&(t=l[0].label)}a={label:t?t.replace("{{","").replace("}}","").trim().replace("."," "):"",value:null!==(i=e.updatedValue)&&void 0!==i?i:""}}else t.map((e=>{e.options.map((e=>{var t;(null===(t=e.value)||void 0===t?void 0:t.replace("{{","").replace("}}","").trim())===n.trim()&&(a=e)}))}));return a}(q,i,de);e.value&&te(e)}else"date_time"===q.type?(te(H),K(q.updatedValue),Ve(null!==(e=q.index)&&void 0!==e?e:0,q.updatedValue)):(null===(t=q.updatedValue)||void 0===t?void 0:t.startsWith("https"))?(te(L),K(q.updatedValue.split("https://")[1])):(te(S),K(q.updatedValue))}()}),[Te]),n.useEffect((()=>{ue&&ee&&Q&&setTimeout((()=>{He("custom_link"===(null==ee?void 0:ee.value)&&Q?Q.includes("https")?Q:`https://${Q}`:Q,ee.value)}),100)}),[ue]),n.useEffect((()=>{!le&&ee&&q.updatedValue&&setTimeout((()=>{He("custom_link"===(null==ee?void 0:ee.value)&&q.updatedValue?q.updatedValue.includes("https")?q.updatedValue:`https://${q.updatedValue}`:q.updatedValue,ee.value),ie(!0)}),100)}),[ee]);const ke=e=>{null==M||M(!1),"{{custom.url}}"===e.actualValue?Le({label:e.displayName,selected:!0,value:"custom_link"}):"{{custom.text}}"==e.actualValue?Le({label:e.displayName,selected:!0,value:"custom_text"}):"{{static.expiry}}"==e.actualValue?Le({label:e.displayName,selected:!0,value:"static_expiry"}):Le({label:e.displayName.replace("{{","").replace("}}","").trim().replace("."," "),selected:!0,value:e.actualValue,bikPlaceholderType:"string"})};function Be(e,t){var l;const i=a.cloneDeep(pe),n=$.toLocaleLowerCase();(null===(l=i.webpushBroadcastConfig)||void 0===l?void 0:l[n])&&(i.webpushBroadcastConfig[n][e]=t),null==me||me(Object.assign({},i))}return e.jsxs(N,Object.assign({channel:de,focused:F,onMouseEnter:()=>G(!0),onMouseLeave:()=>G(!1)},{children:[e.jsx("div",Object.assign({style:{marginBottom:8}},{children:e.jsxs(j.BodySecondary,Object.assign({style:{color:re&&!ee?T.COLORS.content.negative:T.COLORS.content.primary}},{children:[null===(C=q.variableName)||void 0===C?void 0:C.replace("{{","").replace("}}","")," ","link"===(null==q?void 0:q.type)?"link":"variable"]}))})),e.jsx("div",Object.assign({style:{marginBottom:12}},{children:W?e.jsxs("div",Object.assign({style:{display:"flex",border:"#E0E0E0 1px solid",borderRadius:4,padding:10,justifyContent:(null==ee?void 0:ee.label)?"space-between":"flex-end",backgroundColor:"date_time"===(null==q?void 0:q.type)&&he?T.COLORS.background.base:void 0}},{children:[e.jsx(j.BodyPrimary,Object.assign({numberOfLines:1},{children:xe===O.POD.CHATBOT?["static_expiry","custom_text","custom_link"].includes(null!==(f=null==ee?void 0:ee.value)&&void 0!==f?f:"")?null==ee?void 0:ee.label:null==ee?void 0:ee.value:p.truncate(null!==(V=null==ee?void 0:ee.label)&&void 0!==V?V:"",20,!0)})),_e||"date_time"===(null==q?void 0:q.type)&&he?e.jsx(e.Fragment,{}):e.jsx(t.default,{onClick:()=>{(()=>{let e=Array.isArray(ae)?[...ae]:[];const t=(t,l,i)=>{const a=y.updateVariables({variableList:e,categoryDisplayName:t,variableDisplayName:l,variableValue:i});Array.isArray(a)&&(e=a)};xe===O.POD.CHATBOT&&Z!==O.BUTTON_TYPE.URL&&"limited_time_offer"!==$&&t("Custom Variables","Custom Text","{{custom.text}}"),Z===O.BUTTON_TYPE.URL&&xe===O.POD.CHATBOT?t("Custom Variables","Custom URL","{{custom.url}}"):"limited_time_offer"===$?t("Static Variables","Static Expiry","{{static.expiry}}"):Z===O.BUTTON_TYPE.COPY_CODE&&t("Custom Variables","Custom Text","{{custom.text}}"),ne(e)})(),se((()=>ke)),oe(!0)},width:24,height:24,color:T.COLORS.content.primary})]})):e.jsx(r.Dropdown,{disabled:_e,options:J,isSearchable:!1,onSelect:Le,defaultOptions:ee?[Object.assign(Object.assign({},ee),{selected:!0})]:[]})})),("custom_text"===(null==ee?void 0:ee.value)||"custom_link"===(null==ee?void 0:ee.value))&&e.jsx(c.Input,{state:_e?"disabled":"none",labelText:"custom_text"===(null==ee?void 0:ee.value)?"Custom text value":"custom_link"===(null==ee?void 0:ee.value)?"Custom URL value":"",id:`variable-value-${null==ee?void 0:ee.value}-${I}`,value:Q,errorMessage:re&&(null===(k=null==Ce?void 0:Ce.buttons)||void 0===k?void 0:k.includes(null!==(B=null==q?void 0:q.index)&&void 0!==B?B:-1))?Q&&0!==Q.trim().length?"custom_link"!==ee.value||/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/.test(`https://${Q.trim()}`)&&0!==Q.trim().length?"custom_link"!==ee.value&&Q.length>30?"Length cannot be more than 30":"BUTTONS"===$&&"custom_link"!==ee.value?"Enter valid alpha numeric code":"":"Enter valid URL":"Required field":"",maxCharLimit:fe||("custom_link"===(null==ee?void 0:ee.value)?2e3:"BUTTONS"===$?15:30),noKeyDownChange:!0,prefixText:"custom_link"===(null==ee?void 0:ee.value)?"https://":"",placeholder:"link"===q.type||"custom_link"===ee.value?"Enter custom URL here":"Enter custom text here",onChangeText:e=>{Se(ee.value,e)}}),"static_expiry"===(null==ee?void 0:ee.value)&&e.jsxs("div",Object.assign({style:{position:"relative"}},{children:[(_e||Ne)&&e.jsxs(P,Object.assign({onClick:e=>e.preventDefault(),style:{display:"flex",justifyContent:"space-between"}},{children:[e.jsx(A,{}),e.jsx(A,{})]})),e.jsx(d.CustomDateTime,{placement:"auto",time:Q?i.format(new Date(Q),"hh:mm a"):i.format(new Date,"hh:mm a"),date:Q?new Date(Q):new Date,minDate:new Date,error:"",setError:()=>{},onChange:e=>{Se("static_expiry",e.toISOString())}})]})),"static_expiry"===(null==ee?void 0:ee.value)&&Pe&&e.jsx("div",Object.assign({style:{marginTop:8}},{children:e.jsx(o.Alert,{containerStyle:{padding:"4px 8px"},icon:()=>e.jsx(l.default,{width:16,height:16,color:T.COLORS.content.secondary}),type:u.ALERT_TYPES.NEUTRAL,text:"Please use the same expiration code that you applied when creating\nthe code on Shopify"})})),"link"===q.type&&"custom_link"!==(null==ee?void 0:ee.value)&&!Ee&&!ye&&xe===O.POD.CHATBOT&&e.jsx(h.QueryParamsComponent,{isError:null!==(w=null===(D=null==Ce?void 0:Ce.buttons)||void 0===D?void 0:D.includes(null!==(Y=null==q?void 0:q.index)&&void 0!==Y?Y:-1))&&void 0!==w&&w,params:null!==(U=q.queryParams)&&void 0!==U?U:[],onChange:e=>{He(q.updatedValue,"link",e)},variableValue:q.updatedValue})]}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("../../input/Input.js");require("../../template-preview/TemplatePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js");var a=require("../../../constants/Theme.js");require("../../curtain/CurtainHelper.js"),require("../../variable-picker-v3/model.js"),require("../../template-preview/models/TemplateMeta.js"),require("../../template-preview/models/WhatsAppTemplate.js");var r=require("../../template-preview/models/Channels.js"),t=require("../../TypographyStyle.js"),l=require("../context/templateModalContext.js"),s=require("./VariableConnector.js");exports.default=d=>{var n,o,p,u,v,c,m;const{descriptionComponent:x,type:b,showVariableModal:j,originalList:h,channel:y}=d,{originalVariableList:T,disableEditVariable:E,selectedCarouselIndex:C,initialExpiryDateTime:L}=l.useTemplateModalContext();let f=T;y&&(y==r.CHANNEL_TYPE.WHATSAPP||y==r.CHANNEL_TYPE.RCS)&&h&&(f=h);const w=x.type;if("BODY"===w||"TITLE"===w.toLocaleUpperCase())return e.jsx("div",{children:null===(o=null!=C&&C>-1?"TITLE"===w.toLocaleUpperCase()?null===(n=f.cards[C])||void 0===n?void 0:n.title:f.cards[C].body:"TITLE"===w.toLocaleUpperCase()?(r.CHANNEL_TYPE.RCS,null==f?void 0:f.title):null==f?void 0:f.body)||void 0===o?void 0:o.map((r,l)=>E||!r.isEditableVariable?e.jsxs("div",Object.assign({style:{margin:"16px 8px"}},{children:[e.jsxs(t.BodySecondary,Object.assign({style:{color:a.COLORS.content.primary}},{children:["HEADER"===b?"Header":""," Locked variable ",l+1]})),e.jsx(i.Input,{state:"disabled",placeholder:r.variableName,onChangeText:()=>{}})]}),l):e.jsx(s.default,{index:l,variable:r,showVariableModal:j,componentType:w},`${l}-${r.index}`))});if("HEADER"===w)return e.jsx("div",{children:null===(p=null!=C&&C>-1?f.cards[C].header:null==f?void 0:f.header)||void 0===p?void 0:p.map((r,l)=>r.isEditableVariable?e.jsx(s.default,{index:l,variable:r,showVariableModal:j,componentType:w},`${l}-${r.index}`):e.jsxs("div",Object.assign({style:{margin:"16px 8px"}},{children:[e.jsxs(t.BodySecondary,Object.assign({style:{color:a.COLORS.content.primary}},{children:["HEADER"===b?"Header":""," Locked variable ",l+1]})),e.jsx(i.Input,{state:"disabled",placeholder:r.variableName,onChangeText:()=>{}})]}),l))});if("limited_time_offer"===w){let i=null!==(v=null===(u=x.example)||void 0===u?void 0:u.limited_time_offer)&&void 0!==v?v:(new Date).toISOString();return L&&(i=new Date(L).toISOString()),e.jsx("div",{children:e.jsx(s.default,{index:0,variable:{variableName:null!==(m=null===(c=null==x?void 0:x.limited_time_offer)||void 0===c?void 0:c.text)&&void 0!==m?m:"Expires after",updatedValue:i,type:"date_time",isEditableVariable:!0,index:0},showVariableModal:j,componentType:w},`${w}`)})}return e.jsx(e.Fragment,{})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("../../input/Input.js");require("../../template-preview/TemplatePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js");var a=require("../../../constants/Theme.js");require("../../curtain/CurtainHelper.js"),require("../../variable-picker-v3/model.js"),require("../../template-preview/models/TemplateMeta.js"),require("../../template-preview/models/WhatsAppTemplate.js");var r=require("../../template-preview/models/Channels.js"),t=require("../../TypographyStyle.js"),l=require("../context/templateModalContext.js"),s=require("./VariableConnector.js");exports.default=d=>{var n,o,p,u,v,c,m;const{descriptionComponent:x,type:b,showVariableModal:j,originalList:h,channel:y}=d,{originalVariableList:T,disableEditVariable:E,selectedCarouselIndex:C,initialExpiryDateTime:L}=l.useTemplateModalContext();let f=T;y&&(y==r.CHANNEL_TYPE.WHATSAPP||y==r.CHANNEL_TYPE.RCS)&&h&&(f=h);const w=x.type;if("BODY"===w||"TITLE"===w.toLocaleUpperCase())return e.jsx("div",{children:null===(o=null!=C&&C>-1?"TITLE"===w.toLocaleUpperCase()?null===(n=f.cards[C])||void 0===n?void 0:n.title:f.cards[C].body:"TITLE"===w.toLocaleUpperCase()?(r.CHANNEL_TYPE.RCS,null==f?void 0:f.title):null==f?void 0:f.body)||void 0===o?void 0:o.map(((r,l)=>E||!r.isEditableVariable?e.jsxs("div",Object.assign({style:{margin:"16px 8px"}},{children:[e.jsxs(t.BodySecondary,Object.assign({style:{color:a.COLORS.content.primary}},{children:["HEADER"===b?"Header":""," Locked variable ",l+1]})),e.jsx(i.Input,{state:"disabled",placeholder:r.variableName,onChangeText:()=>{}})]}),l):e.jsx(s.default,{index:l,variable:r,showVariableModal:j,componentType:w},`${l}-${r.index}`)))});if("HEADER"===w)return e.jsx("div",{children:null===(p=null!=C&&C>-1?f.cards[C].header:null==f?void 0:f.header)||void 0===p?void 0:p.map(((r,l)=>r.isEditableVariable?e.jsx(s.default,{index:l,variable:r,showVariableModal:j,componentType:w},`${l}-${r.index}`):e.jsxs("div",Object.assign({style:{margin:"16px 8px"}},{children:[e.jsxs(t.BodySecondary,Object.assign({style:{color:a.COLORS.content.primary}},{children:["HEADER"===b?"Header":""," Locked variable ",l+1]})),e.jsx(i.Input,{state:"disabled",placeholder:r.variableName,onChangeText:()=>{}})]}),l)))});if("limited_time_offer"===w){let i=null!==(v=null===(u=x.example)||void 0===u?void 0:u.limited_time_offer)&&void 0!==v?v:(new Date).toISOString();return L&&(i=new Date(L).toISOString()),e.jsx("div",{children:e.jsx(s.default,{index:0,variable:{variableName:null!==(m=null===(c=null==x?void 0:x.limited_time_offer)||void 0===c?void 0:c.text)&&void 0!==m?m:"Expires after",updatedValue:i,type:"date_time",isEditableVariable:!0,index:0},showVariableModal:j,componentType:w},`${w}`)})}return e.jsx(e.Fragment,{})};
@@ -25,4 +25,4 @@
25
25
  align-items: center;
26
26
  gap: 5px;
27
27
  }
28
- `;exports.AddVariableStyled=g,exports.Container=p,exports.default=({onFocus:s,showVariableModal:h,discountCode:x,setDiscountCode:j})=>{const{originalVariableList:b,disableEditVariable:f,setVariableCallback:y,setShowVariablePicker:m}=d.useTemplateModalContext(),[v,O]=i.useState(!1),[C,k]=i.useState(!1),[S,V]=i.useState(""),[w,q]=i.useState(!1),T=i.useRef(),B=i.useRef();i.useEffect(()=>{j&&j(x+S)},[S]);i.useEffect(()=>{b.some(e=>"checkout.checkoutUrl"===e.updatedValue.replace("{{","").replace("}}",""))?(O(!0),x&&q(!0)):(O(!1),null==q||q(!1),null==j||j(""))},[b]);const L=e=>{V(e.actualValue)};return e.jsxs(p,{children:[e.jsxs("div",Object.assign({style:{padding:8}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",gap:8,alignItems:"center",marginBottom:4}},{children:[e.jsx(n.TitleRegular,Object.assign({style:{color:o.COLORS.content.primary}},{children:"Edit variables and links"})),e.jsx(l.Tooltip,Object.assign({body:"Variables are placeholder texts which can either be filled by data, eg: customer name or can have any custom text within them"},{children:e.jsx("div",Object.assign({style:{display:"flex"}},{children:e.jsx(t.default,{width:20,height:20,color:o.COLORS.content.placeholder})}))}))]})),e.jsx(n.BodySecondary,Object.assign({style:{color:o.COLORS.content.secondary}},{children:"You can view variables and links on the left underlined in purple colour."}))]})),null==b?void 0:b.map((t,i)=>!t.isEditableVariable||f?e.jsxs("div",Object.assign({style:{margin:"16px 8px"}},{children:[e.jsxs(n.BodySecondary,Object.assign({style:{color:o.COLORS.content.primary}},{children:["Locked variable ",i+1]})),e.jsx(r.Input,{state:"disabled",placeholder:t.variableName,onChangeText:()=>{}})]}),i):e.jsx("div",Object.assign({style:{marginTop:16}},{children:e.jsx(u.default,{index:i,variable:t,onFocus:()=>null==s?void 0:s(i),showVariableModal:h,setShowDiscountCheckBox:O})}),i)),(v||x)&&e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",marginLeft:10,marginTop:8}},{children:[e.jsx(a.CheckBox,{isChecked:w,onValueChange:()=>{w&&j&&j(""),q(!w)}}),e.jsx(n.TitleSmall,Object.assign({style:{marginLeft:8}},{children:"Add discount code"}))]})),w&&e.jsxs("div",Object.assign({ref:T,style:{margin:10}},{children:[e.jsx(r.Input,{placeholder:"Enter your discount code",onChangeText:e=>{j&&j(e)},value:x,onFocus:()=>{k(!0)},onBlur:e=>{var t;"addVar"===(null===(t=e.relatedTarget)||void 0===t?void 0:t.id)?(T.current&&T.current.focus(),k(!0)):k(!1)},noErrorHint:!0,validate:e=>[!0,""]}),C&&e.jsx(g,Object.assign({ref:B,id:"addVar",onClick:e=>{e.stopPropagation(),y(()=>L),m(!0)}},{children:e.jsxs("div",Object.assign({className:"add"},{children:[e.jsx(c.default,{width:20,height:20,color:"white"}),e.jsx("div",Object.assign({className:"variable"},{children:"Add variable"}))]}))}))]}))]})};
28
+ `;exports.AddVariableStyled=g,exports.Container=p,exports.default=s=>{let{onFocus:h,showVariableModal:x,discountCode:j,setDiscountCode:b}=s;const{originalVariableList:f,disableEditVariable:y,setVariableCallback:m,setShowVariablePicker:v}=d.useTemplateModalContext(),[O,C]=i.useState(!1),[k,S]=i.useState(!1),[V,w]=i.useState(""),[q,T]=i.useState(!1),B=i.useRef(),L=i.useRef();i.useEffect((()=>{b&&b(j+V)}),[V]);i.useEffect((()=>{f.some((e=>"checkout.checkoutUrl"===e.updatedValue.replace("{{","").replace("}}","")))?(C(!0),j&&T(!0)):(C(!1),null==T||T(!1),null==b||b(""))}),[f]);const E=e=>{w(e.actualValue)};return e.jsxs(p,{children:[e.jsxs("div",Object.assign({style:{padding:8}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",gap:8,alignItems:"center",marginBottom:4}},{children:[e.jsx(n.TitleRegular,Object.assign({style:{color:o.COLORS.content.primary}},{children:"Edit variables and links"})),e.jsx(l.Tooltip,Object.assign({body:"Variables are placeholder texts which can either be filled by data, eg: customer name or can have any custom text within them"},{children:e.jsx("div",Object.assign({style:{display:"flex"}},{children:e.jsx(t.default,{width:20,height:20,color:o.COLORS.content.placeholder})}))}))]})),e.jsx(n.BodySecondary,Object.assign({style:{color:o.COLORS.content.secondary}},{children:"You can view variables and links on the left underlined in purple colour."}))]})),null==f?void 0:f.map(((t,i)=>!t.isEditableVariable||y?e.jsxs("div",Object.assign({style:{margin:"16px 8px"}},{children:[e.jsxs(n.BodySecondary,Object.assign({style:{color:o.COLORS.content.primary}},{children:["Locked variable ",i+1]})),e.jsx(r.Input,{state:"disabled",placeholder:t.variableName,onChangeText:()=>{}})]}),i):e.jsx("div",Object.assign({style:{marginTop:16}},{children:e.jsx(u.default,{index:i,variable:t,onFocus:()=>null==h?void 0:h(i),showVariableModal:x,setShowDiscountCheckBox:C})}),i))),(O||j)&&e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",marginLeft:10,marginTop:8}},{children:[e.jsx(a.CheckBox,{isChecked:q,onValueChange:()=>{q&&b&&b(""),T(!q)}}),e.jsx(n.TitleSmall,Object.assign({style:{marginLeft:8}},{children:"Add discount code"}))]})),q&&e.jsxs("div",Object.assign({ref:B,style:{margin:10}},{children:[e.jsx(r.Input,{placeholder:"Enter your discount code",onChangeText:e=>{b&&b(e)},value:j,onFocus:()=>{S(!0)},onBlur:e=>{var t;"addVar"===(null===(t=e.relatedTarget)||void 0===t?void 0:t.id)?(B.current&&B.current.focus(),S(!0)):S(!1)},noErrorHint:!0,validate:e=>[!0,""]}),k&&e.jsx(g,Object.assign({ref:L,id:"addVar",onClick:e=>{e.stopPropagation(),m((()=>E)),v(!0)}},{children:e.jsxs("div",Object.assign({className:"add"},{children:[e.jsx(c.default,{width:20,height:20,color:"white"}),e.jsx("div",Object.assign({className:"variable"},{children:"Add variable"}))]}))}))]}))]})};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../../assets/icons/info.svg.js"),i=require("styled-components"),s=require("../../tooltips/Tooltip.js"),n=require("../../TypographyStyle.js"),o=require("../../../constants/Theme.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(i);const a=l.default(n.BodySecondary)`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../../assets/icons/info.svg.js"),i=require("styled-components"),s=require("../../tooltips/Tooltip.js"),r=require("../../TypographyStyle.js"),n=require("../../../constants/Theme.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(i);const a=l.default(r.BodySecondary)`
2
2
  line-height: 1.5 !important;
3
3
  `,d=l.default.div`
4
4
  padding-top: 24px;
@@ -6,4 +6,4 @@
6
6
  padding-right: 10px;
7
7
  margin-bottom: 8px;
8
8
  line-height: normal;
9
- `;exports.default=({headerText:i,subText:r,toolTipInfo:l,containerStyle:c})=>e.jsxs(d,Object.assign({style:Object.assign({},c)},{children:[e.jsxs("div",Object.assign({style:{display:"flex",gap:8}},{children:[e.jsx(n.TitleRegular,Object.assign({style:{color:o.COLORS.content.primary}},{children:i})),l&&e.jsx(s.Tooltip,Object.assign({body:l},{children:e.jsx("div",{children:e.jsx(t.default,{width:20,height:20,color:o.COLORS.content.placeholder})})}))]})),e.jsx(a,Object.assign({style:{color:o.COLORS.content.secondary,marginBottom:0,lineHeight:20,display:"block"}},{children:r}))]}));
9
+ `;exports.default=i=>{let{headerText:o,subText:l,toolTipInfo:c,containerStyle:p}=i;return e.jsxs(d,Object.assign({style:Object.assign({},p)},{children:[e.jsxs("div",Object.assign({style:{display:"flex",gap:8}},{children:[e.jsx(r.TitleRegular,Object.assign({style:{color:n.COLORS.content.primary}},{children:o})),c&&e.jsx(s.Tooltip,Object.assign({body:c},{children:e.jsx("div",{children:e.jsx(t.default,{width:20,height:20,color:n.COLORS.content.placeholder})})}))]})),e.jsx(a,Object.assign({style:{color:n.COLORS.content.secondary,marginBottom:0,lineHeight:20,display:"block"}},{children:l}))]}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("lodash"),l=require("react"),s=require("../../dropdown/Dropdown.js"),a=require("../../input/Input.js"),n=require("../../template-preview/constants/regexPatterns.js"),i=require("../../template-preview/models/TemplateMeta.js"),o=require("../../template-preview/models/WhatsAppTemplate.js"),r=require("../../TypographyStyle.js"),u=require("../../../constants/Theme.js"),c=require("../context/templateModalContext.js"),d=require("../utils/constants.js"),b=require("../utils/validateIsUrl.js"),p=require("./VariableConnector.js");exports.default=({variableListIndex:j,button:v,updateSelectedURLTemplateBtn:O,updateSelectedQRBTemplateBtn:m,currentVariableList:g,CTAoptions:x,QRBoptions:f,disableEdit:y})=>{var R,L,U,T,h;const[I,C]=l.useState(""),[_,V]=l.useState(),E=null==x?void 0:x.map(e=>Object.assign(Object.assign({},e),{selected:(null==_?void 0:_.value)===e.value&&_.label===e.label})),q=null==f?void 0:f.map(e=>Object.assign(Object.assign({},e),{selected:(null==_?void 0:_.value)===e.value})),{isError:P,disableEditVariable:S,pod:N,selectedCarouselIndex:w,originalVariableList:B,setOriginalVariableList:A,isProductCarouselType:H,ctaOptionsErrors:M,setCtaOptionsErrors:Q}=c.useTemplateModalContext();function k(e){if(C(e),null!=w&&w>-1&&H){const l=t.cloneDeep(B);if("URL"===v.type){const t=l.cards.map(t=>{let l=t.buttons.filter(e=>"URL"===e.type)[j];l=Object.assign(Object.assign({},l),{buttonVariable:"((customPlaceholderName))",example:[`https://${e}`]});const s=t.buttons.map(e=>"URL"===e.type&&(null==e?void 0:e.text)===(null==l?void 0:l.text)?l:e);return Object.assign(Object.assign({},t),{buttons:s})});null==A||A(e=>Object.assign(Object.assign({},e),{cards:t})),null==O||O(`https://${e}`,"custom",j)}return}let l=g.buttons.filter(e=>"URL"===e.type)[j];l=Object.assign(Object.assign({},l),{buttonVariable:"((customPlaceholderName))",example:[`https://${e}`]});const s=g.buttons.map(e=>"URL"===e.type&&(null==e?void 0:e.text)===(null==l?void 0:l.text)?l:e),a=Object.assign({},null!=w&&w>-1?B.cards[w]:B);if(a.buttons=s,null!=w&&w>-1){const e=[...B.cards];e[w]=a,null==A||A(t=>Object.assign(Object.assign({},t),{cards:e}))}else null==A||A(e=>Object.assign(Object.assign({},e),{buttons:[...s]}));null==O||O(`https://${e}`,"custom",j)}return l.useEffect(()=>{var e,t;if(v.buttonVariable===d.UNSUBSCRIBE_URL_VARIABLE)return V(i.UNSUBSCRIBE_URL_OPTION),void C((null===(e=v.example)||void 0===e?void 0:e[0].split("https://")[1])||"");if(v.buttonVariable&&n.editableVarPattern.test(v.buttonVariable))v.buttonVariable===d.STATIC_URL_VARIABLE_NAME?V(i.STATIC_URL_CTA_OPTION):V(i.CUSTOM_URL_NAME),C((null===(t=v.example)||void 0===t?void 0:t[0].split("https://")[1])||"");else{let e=-1;const t="URL"===v.type?x:f;e="URL"===v.type?t.findIndex(e=>e.placeHolder===v.buttonVariable):t.findIndex(e=>e.label===v.flowName),e>-1?V(t[e]):null==Q||Q(e=>Object.assign(Object.assign({},e),{[j]:"Required field!"}))}},[]),N!==o.POD.CHATBOT?e.jsxs(p.Container,{children:[e.jsx("div",Object.assign({style:{marginBottom:8}},{children:e.jsxs(r.BodySecondary,Object.assign({style:{color:u.COLORS.content.primary}},{children:[v.text," button"]}))})),e.jsx("div",Object.assign({style:{marginBottom:12}},{children:e.jsx(s.Dropdown,{disabled:S||y,truncatedText:!1,options:"URL"===v.type?"static_link"===(null==_?void 0:_.value)?[i.STATIC_URL_CTA_OPTION]:E:q,isSearchable:!0,onSelect:function(e,l){null==Q||Q(e=>(delete e[j],Object.assign({},e)));const s=e;V(s);const a=("URL"===v.type?x:f).find(e=>e.placeHolder===s.placeHolder);if(a)if("custom_link"!==a.value){if(null!=w&&w>-1&&H){const e=t.cloneDeep(B);if("URL"===v.type){const t=e.cards.map(e=>{let t=e.buttons.filter(e=>"URL"===e.type)[j];t=Object.assign(Object.assign({},t),{buttonVariable:s.placeHolder});const l=e.buttons.map(e=>"URL"===e.type&&(null==e?void 0:e.text)===(null==t?void 0:t.text)?t:e);return Object.assign(Object.assign({},e),{buttons:l})});null==O||O({defaultValue:a.value,placeHolder:a.placeHolder},"placeholder",j),null==A||A(e=>Object.assign(Object.assign({},e),{cards:t}))}else if("QUICK_REPLY"===v.type){const t=e.cards.map(e=>{let t=e.buttons.filter(e=>"QUICK_REPLY"===e.type)[j];t=Object.assign(Object.assign({},t),{flowName:s.label,flowId:s.value});const l=e.buttons.map(e=>"QUICK_REPLY"===e.type&&(null==e?void 0:e.text)===(null==t?void 0:t.text)?t:e);return Object.assign(Object.assign({},e),{buttons:l})});null==m||m({flowName:s.label,flowId:s.value},"placeholder",j),null==A||A(e=>Object.assign(Object.assign({},e),{cards:t}))}return}let e;if("URL"===v.type){let t=g.buttons.filter(e=>"URL"===e.type)[j];t=Object.assign(Object.assign({},t),{buttonVariable:s.placeHolder,example:[(null==s?void 0:s.value)||"https://d.bik.ai/"]}),e=g.buttons.map(e=>"URL"===e.type&&(null==e?void 0:e.text)===(null==t?void 0:t.text)?t:e),null==O||O({defaultValue:a.value,placeHolder:a.placeHolder},"placeholder",j)}else{let t=g.buttons.filter(e=>"QUICK_REPLY"===e.type)[j];t=Object.assign(Object.assign({},t),{flowName:s.label,flowId:s.value}),e=g.buttons.map(e=>"QUICK_REPLY"===e.type&&(null==e?void 0:e.text)===(null==t?void 0:t.text)?t:e),null==m||m({flowName:s.label,flowId:s.value},"placeholder",j)}const l=Object.assign({},null!=w&&w>-1?B.cards[w]:B);if(l.buttons=e,null!=w&&w>-1){const e=[...B.cards];e[w]=l,null==A||A(t=>Object.assign(Object.assign({},t),{cards:e}))}else null==A||A(t=>Object.assign(Object.assign({},t),{buttons:[...e]}))}else k("")},defaultOptions:_?[Object.assign(Object.assign({},_),{selected:!0})]:[],error:P?null==M?void 0:M[j]:void 0})})),("custom_link"===(null==_?void 0:_.value)||"static_link"===(null==_?void 0:_.value))&&e.jsx("div",Object.assign({style:{marginBottom:20}},{children:e.jsx(a.Input,{state:S||y?"disabled":"none",errorMessage:P?I?b.validateIsUrl(I)?"":"Enter valid URL":"Required field":"",value:I,prefixText:"https://",placeholder:"Enter custom URL here",onChangeText:k,maxCharLimit:2e3})}))]}):e.jsx(p.default,{index:j,variable:{variableName:null!==(R=v.text)&&void 0!==R?R:"",updatedValue:"((customPlaceholderName))"===v.buttonVariable?`${null===(L=v.example)||void 0===L?void 0:L[0]}`:null!==(U=v.buttonVariable)&&void 0!==U?U:"",type:"link",isEditableVariable:!0,index:null!==(T=v.index)&&void 0!==T?T:0,queryParams:null!==(h=v.queryParams)&&void 0!==h?h:[]},showVariableModal:!0,componentType:"BUTTONS",buttonType:v.type,CTAoptions:x})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("lodash"),l=require("react"),s=require("../../dropdown/Dropdown.js"),a=require("../../input/Input.js"),n=require("../../template-preview/constants/regexPatterns.js"),i=require("../../template-preview/models/TemplateMeta.js"),o=require("../../template-preview/models/WhatsAppTemplate.js"),r=require("../../TypographyStyle.js"),u=require("../../../constants/Theme.js"),c=require("../context/templateModalContext.js"),d=require("../utils/constants.js"),b=require("../utils/validateIsUrl.js"),p=require("./VariableConnector.js");exports.default=j=>{let{variableListIndex:v,button:O,updateSelectedURLTemplateBtn:m,updateSelectedQRBTemplateBtn:g,currentVariableList:x,CTAoptions:f,QRBoptions:y,disableEdit:R}=j;var L,U,T,h,I;const[C,_]=l.useState(""),[V,E]=l.useState(),q=null==f?void 0:f.map((e=>Object.assign(Object.assign({},e),{selected:(null==V?void 0:V.value)===e.value&&V.label===e.label}))),P=null==y?void 0:y.map((e=>Object.assign(Object.assign({},e),{selected:(null==V?void 0:V.value)===e.value}))),{isError:S,disableEditVariable:N,pod:w,selectedCarouselIndex:B,originalVariableList:A,setOriginalVariableList:H,isProductCarouselType:M,ctaOptionsErrors:Q,setCtaOptionsErrors:k}=c.useTemplateModalContext();function D(e){if(_(e),null!=B&&B>-1&&M){const l=t.cloneDeep(A);if("URL"===O.type){const t=l.cards.map((t=>{let l=t.buttons.filter((e=>"URL"===e.type))[v];l=Object.assign(Object.assign({},l),{buttonVariable:"((customPlaceholderName))",example:[`https://${e}`]});const s=t.buttons.map((e=>"URL"===e.type&&(null==e?void 0:e.text)===(null==l?void 0:l.text)?l:e));return Object.assign(Object.assign({},t),{buttons:s})}));null==H||H((e=>Object.assign(Object.assign({},e),{cards:t}))),null==m||m(`https://${e}`,"custom",v)}return}let l=x.buttons.filter((e=>"URL"===e.type))[v];l=Object.assign(Object.assign({},l),{buttonVariable:"((customPlaceholderName))",example:[`https://${e}`]});const s=x.buttons.map((e=>"URL"===e.type&&(null==e?void 0:e.text)===(null==l?void 0:l.text)?l:e)),a=Object.assign({},null!=B&&B>-1?A.cards[B]:A);if(a.buttons=s,null!=B&&B>-1){const e=[...A.cards];e[B]=a,null==H||H((t=>Object.assign(Object.assign({},t),{cards:e})))}else null==H||H((e=>Object.assign(Object.assign({},e),{buttons:[...s]})));null==m||m(`https://${e}`,"custom",v)}return l.useEffect((()=>{var e,t;if(O.buttonVariable===d.UNSUBSCRIBE_URL_VARIABLE)return E(i.UNSUBSCRIBE_URL_OPTION),void _((null===(e=O.example)||void 0===e?void 0:e[0].split("https://")[1])||"");if(O.buttonVariable&&n.editableVarPattern.test(O.buttonVariable))O.buttonVariable===d.STATIC_URL_VARIABLE_NAME?E(i.STATIC_URL_CTA_OPTION):E(i.CUSTOM_URL_NAME),_((null===(t=O.example)||void 0===t?void 0:t[0].split("https://")[1])||"");else{let e=-1;const t="URL"===O.type?f:y;e="URL"===O.type?t.findIndex((e=>e.placeHolder===O.buttonVariable)):t.findIndex((e=>e.label===O.flowName)),e>-1?E(t[e]):null==k||k((e=>Object.assign(Object.assign({},e),{[v]:"Required field!"})))}}),[]),w!==o.POD.CHATBOT?e.jsxs(p.Container,{children:[e.jsx("div",Object.assign({style:{marginBottom:8}},{children:e.jsxs(r.BodySecondary,Object.assign({style:{color:u.COLORS.content.primary}},{children:[O.text," button"]}))})),e.jsx("div",Object.assign({style:{marginBottom:12}},{children:e.jsx(s.Dropdown,{disabled:N||R,truncatedText:!1,options:"URL"===O.type?"static_link"===(null==V?void 0:V.value)?[i.STATIC_URL_CTA_OPTION]:q:P,isSearchable:!0,onSelect:function(e,l){null==k||k((e=>(delete e[v],Object.assign({},e))));const s=e;E(s);const a=("URL"===O.type?f:y).find((e=>e.placeHolder===s.placeHolder));if(a)if("custom_link"!==a.value){if(null!=B&&B>-1&&M){const e=t.cloneDeep(A);if("URL"===O.type){const t=e.cards.map((e=>{let t=e.buttons.filter((e=>"URL"===e.type))[v];t=Object.assign(Object.assign({},t),{buttonVariable:s.placeHolder});const l=e.buttons.map((e=>"URL"===e.type&&(null==e?void 0:e.text)===(null==t?void 0:t.text)?t:e));return Object.assign(Object.assign({},e),{buttons:l})}));null==m||m({defaultValue:a.value,placeHolder:a.placeHolder},"placeholder",v),null==H||H((e=>Object.assign(Object.assign({},e),{cards:t})))}else if("QUICK_REPLY"===O.type){const t=e.cards.map((e=>{let t=e.buttons.filter((e=>"QUICK_REPLY"===e.type))[v];t=Object.assign(Object.assign({},t),{flowName:s.label,flowId:s.value});const l=e.buttons.map((e=>"QUICK_REPLY"===e.type&&(null==e?void 0:e.text)===(null==t?void 0:t.text)?t:e));return Object.assign(Object.assign({},e),{buttons:l})}));null==g||g({flowName:s.label,flowId:s.value},"placeholder",v),null==H||H((e=>Object.assign(Object.assign({},e),{cards:t})))}return}let e;if("URL"===O.type){let t=x.buttons.filter((e=>"URL"===e.type))[v];t=Object.assign(Object.assign({},t),{buttonVariable:s.placeHolder,example:[(null==s?void 0:s.value)||"https://d.bik.ai/"]}),e=x.buttons.map((e=>"URL"===e.type&&(null==e?void 0:e.text)===(null==t?void 0:t.text)?t:e)),null==m||m({defaultValue:a.value,placeHolder:a.placeHolder},"placeholder",v)}else{let t=x.buttons.filter((e=>"QUICK_REPLY"===e.type))[v];t=Object.assign(Object.assign({},t),{flowName:s.label,flowId:s.value}),e=x.buttons.map((e=>"QUICK_REPLY"===e.type&&(null==e?void 0:e.text)===(null==t?void 0:t.text)?t:e)),null==g||g({flowName:s.label,flowId:s.value},"placeholder",v)}const l=Object.assign({},null!=B&&B>-1?A.cards[B]:A);if(l.buttons=e,null!=B&&B>-1){const e=[...A.cards];e[B]=l,null==H||H((t=>Object.assign(Object.assign({},t),{cards:e})))}else null==H||H((t=>Object.assign(Object.assign({},t),{buttons:[...e]})))}else D("")},defaultOptions:V?[Object.assign(Object.assign({},V),{selected:!0})]:[],error:S?null==Q?void 0:Q[v]:void 0})})),("custom_link"===(null==V?void 0:V.value)||"static_link"===(null==V?void 0:V.value))&&e.jsx("div",Object.assign({style:{marginBottom:20}},{children:e.jsx(a.Input,{state:N||R?"disabled":"none",errorMessage:S?C?b.validateIsUrl(C)?"":"Enter valid URL":"Required field":"",value:C,prefixText:"https://",placeholder:"Enter custom URL here",onChangeText:D,maxCharLimit:2e3})}))]}):e.jsx(p.default,{index:v,variable:{variableName:null!==(L=O.text)&&void 0!==L?L:"",updatedValue:"((customPlaceholderName))"===O.buttonVariable?`${null===(U=O.example)||void 0===U?void 0:U[0]}`:null!==(T=O.buttonVariable)&&void 0!==T?T:"",type:"link",isEditableVariable:!0,index:null!==(h=O.index)&&void 0!==h?h:0,queryParams:null!==(I=O.queryParams)&&void 0!==I?I:[]},showVariableModal:!0,componentType:"BUTTONS",buttonType:O.type,CTAoptions:f})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),i=require("lodash"),t=require("react"),n=require("../../helpers/FileUploaderHelper.js"),o=require("../../template-preview/models/TemplateMeta.js"),l=require("../context/templateModalContext.js"),a=require("../utils/validateIsUrl.js");exports.useEditWhatsappTemplateMedia=s=>{const{uploadMediaLink:r,updateTemplateImageUrl:d,validateMimeType:c,mediaComponent:p,uploadMediaFiles:u,fileRef:m}=s,{template:v,selectedCarouselIndex:f,setTemplate:E}=l.useTemplateModalContext(),[g,h]=t.useState(void 0),[b,y]=t.useState(),[M,T]=t.useState(!1),[_,I]=t.useState(""),[A,S]=t.useState(!1),[j,R]=t.useState(),U=t.useRef(null);function D(i){var t;return e.__awaiter(this,void 0,void 0,function*(){const e=new n.FileUploaderHelper;if(i instanceof Blob){if(c){const{isValid:e,mimeType:t}=yield c(i);if(!e)return void I(`MIME type ${t} is not supported`)}const n=e.validate({file:i});if(n)I(n),S(!1),T(!1);else{const e=p.format===o.HEADER_TYPES.IMAGE,n=yield u({file:i,fileName:g,isImage:e});if(n.success){const[e]=i.type.split("/");d(null!==(t=n.url)&&void 0!==t?t:"","application"===e?o.HEADER_TYPES.DOCUMENT:o.HEADER_TYPES[e.toUpperCase()])}else S(!1),I("An unknown technical error occurred");S(!1),T(!1)}}else I("An unknown technical error occurred"),S(!1)})}function O(){var e;(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.click)&&m.current.click()}return t.useEffect(()=>{h(void 0),R(void 0),y(void 0),T(!1),S(!1),I("")},[f]),{uploadMedia:function(t){var l,s,c,u,m,g;return e.__awaiter(this,void 0,void 0,function*(){if(I(""),y(""),t)if(t.startsWith("https"))try{if(S(!0),r){const e=yield r(t),{type:i,size:a,success:s}=e;if(s){const t=(new n.FileUploaderHelper).validate({linkData:{type:i,size:a}});if(t)return I(t),void S(!1);const[s]=i.split("/");d(null!==(l=e.url)&&void 0!==l?l:"",s.includes("application")?o.HEADER_TYPES.DOCUMENT:o.HEADER_TYPES[s.toUpperCase()])}else S(!1),I("An unknown technical error occurred");S(!1)}else{const e=yield fetch(t),i=yield e.blob();yield D(i)}}catch(e){S(!1),I("An unknown technical error occurred")}else if(a.isVariable(t)){let e;if(y(t),e=null!=f&&f>-1?{components:null===(c=null===(s=v.components[1])||void 0===s?void 0:s.cards)||void 0===c?void 0:c[f].components,mapping:null===(m=null===(u=null==v?void 0:v.mapping)||void 0===u?void 0:u.cards)||void 0===m?void 0:m[f]}:Object.assign({},v),e.components){const i=null===(g=null==e?void 0:e.components)||void 0===g?void 0:g.findIndex(e=>{if("HEADER"===e.type&&"NONE"!==e.format&&"TEXT"!==e.format)return!0});if(void 0!==i&&i>-1&&(null==e?void 0:e.components[i])){const n=Object.assign(Object.assign({},e.components[i]),{format:p.format,example:{header_handle:[t]}}),o=[...e.components];o[i]=n,e.components=o}}if(e.mapping&&(e.mapping=Object.assign(Object.assign({},e.mapping),{header:[t]})),S(!1),null!=f&&f>-1){const t=i.cloneDeep(v);t.components[1].cards[f].components=e.components,t.mapping.cards[f]=e.mapping,null==E||E(Object.assign({},t))}else null==E||E(Object.assign({},e))}else S(!1),I("Invalid URL or variable");else O()})},processImageUpload:D,handleImageUpload:function(e){var i;I(""),S(!0);const t=null===(i=e.target.files)||void 0===i?void 0:i[0];if(p.format===o.HEADER_TYPES.IMAGE){const e=new FileReader;R(""),h(""),e.onload=()=>{R(e.result),h(null==t?void 0:t.name)},t&&e.readAsDataURL(t)}else D(t)},handleImageChange:O,onCropComplete:function(i){return e.__awaiter(this,void 0,void 0,function*(){S(!1),I("");const e=yield fetch(i),t=yield e.blob();yield D(t),R(void 0),T(!1)})},editIconRef:U,fileName:g,setFileName:h,selectedVariable:b,setSelectedVariable:y,openEditMedia:M,setOpenEditMedia:T,selectedImage:j,setSelectedImage:R,loading:A,setLoading:S,error:_,setError:I}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),i=require("lodash"),t=require("react"),n=require("../../helpers/FileUploaderHelper.js"),o=require("../../template-preview/models/TemplateMeta.js"),l=require("../context/templateModalContext.js"),a=require("../utils/validateIsUrl.js");exports.useEditWhatsappTemplateMedia=s=>{const{uploadMediaLink:r,updateTemplateImageUrl:d,validateMimeType:c,mediaComponent:p,uploadMediaFiles:u,fileRef:m}=s,{template:v,selectedCarouselIndex:f,setTemplate:E}=l.useTemplateModalContext(),[g,h]=t.useState(void 0),[b,y]=t.useState(),[M,T]=t.useState(!1),[_,I]=t.useState(""),[A,S]=t.useState(!1),[j,R]=t.useState(),U=t.useRef(null);function D(i){var t;return e.__awaiter(this,void 0,void 0,(function*(){const e=new n.FileUploaderHelper;if(i instanceof Blob){if(c){const{isValid:e,mimeType:t}=yield c(i);if(!e)return void I(`MIME type ${t} is not supported`)}const n=e.validate({file:i});if(n)I(n),S(!1),T(!1);else{const e=p.format===o.HEADER_TYPES.IMAGE,n=yield u({file:i,fileName:g,isImage:e});if(n.success){const[e]=i.type.split("/");d(null!==(t=n.url)&&void 0!==t?t:"","application"===e?o.HEADER_TYPES.DOCUMENT:o.HEADER_TYPES[e.toUpperCase()])}else S(!1),I("An unknown technical error occurred");S(!1),T(!1)}}else I("An unknown technical error occurred"),S(!1)}))}function O(){var e;(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.click)&&m.current.click()}return t.useEffect((()=>{h(void 0),R(void 0),y(void 0),T(!1),S(!1),I("")}),[f]),{uploadMedia:function(t){var l,s,c,u,m,g;return e.__awaiter(this,void 0,void 0,(function*(){if(I(""),y(""),t)if(t.startsWith("https"))try{if(S(!0),r){const e=yield r(t),{type:i,size:a,success:s}=e;if(s){const t=(new n.FileUploaderHelper).validate({linkData:{type:i,size:a}});if(t)return I(t),void S(!1);const[s]=i.split("/");d(null!==(l=e.url)&&void 0!==l?l:"",s.includes("application")?o.HEADER_TYPES.DOCUMENT:o.HEADER_TYPES[s.toUpperCase()])}else S(!1),I("An unknown technical error occurred");S(!1)}else{const e=yield fetch(t),i=yield e.blob();yield D(i)}}catch(e){S(!1),I("An unknown technical error occurred")}else if(a.isVariable(t)){let e;if(y(t),e=null!=f&&f>-1?{components:null===(c=null===(s=v.components[1])||void 0===s?void 0:s.cards)||void 0===c?void 0:c[f].components,mapping:null===(m=null===(u=null==v?void 0:v.mapping)||void 0===u?void 0:u.cards)||void 0===m?void 0:m[f]}:Object.assign({},v),e.components){const i=null===(g=null==e?void 0:e.components)||void 0===g?void 0:g.findIndex((e=>{if("HEADER"===e.type&&"NONE"!==e.format&&"TEXT"!==e.format)return!0}));if(void 0!==i&&i>-1&&(null==e?void 0:e.components[i])){const n=Object.assign(Object.assign({},e.components[i]),{format:p.format,example:{header_handle:[t]}}),o=[...e.components];o[i]=n,e.components=o}}if(e.mapping&&(e.mapping=Object.assign(Object.assign({},e.mapping),{header:[t]})),S(!1),null!=f&&f>-1){const t=i.cloneDeep(v);t.components[1].cards[f].components=e.components,t.mapping.cards[f]=e.mapping,null==E||E(Object.assign({},t))}else null==E||E(Object.assign({},e))}else S(!1),I("Invalid URL or variable");else O()}))},processImageUpload:D,handleImageUpload:function(e){var i;I(""),S(!0);const t=null===(i=e.target.files)||void 0===i?void 0:i[0];if(p.format===o.HEADER_TYPES.IMAGE){const e=new FileReader;R(""),h(""),e.onload=()=>{R(e.result),h(null==t?void 0:t.name)},t&&e.readAsDataURL(t)}else D(t)},handleImageChange:O,onCropComplete:function(i){return e.__awaiter(this,void 0,void 0,(function*(){S(!1),I("");const e=yield fetch(i),t=yield e.blob();yield D(t),R(void 0),T(!1)}))},editIconRef:U,fileName:g,setFileName:h,selectedVariable:b,setSelectedVariable:y,openEditMedia:M,setOpenEditMedia:T,selectedImage:j,setSelectedImage:R,loading:A,setLoading:S,error:_,setError:I}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.convertPlaceholdersToBikDropdown=e=>{const l=[];return e&&Object.keys(e).forEach(o=>{var r;const t=e[o],n=null!==(r=null==t?void 0:t.map(e=>{var l;return{label:e.title,value:e.placeHolder,bikPlaceholderType:null!==(l=e.type)&&void 0!==l?l:"string"}}))&&void 0!==r?r:[];l.push({label:o,options:n})}),l};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.convertPlaceholdersToBikDropdown=e=>{const l=[];return e&&Object.keys(e).forEach((o=>{var r;const t=e[o],n=null!==(r=null==t?void 0:t.map((e=>{var l;return{label:e.title,value:e.placeHolder,bikPlaceholderType:null!==(l=e.type)&&void 0!==l?l:"string"}})))&&void 0!==r?r:[];l.push({label:o,options:n})})),l};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.getAllDataFromTemplateComponent=e=>{var o,t,i;const n=[],l=[],p=[],a=[],s=[],d=[];let r=null;return e.components.forEach((e,o)=>{var t,i,a,s,d,m;if("BODY"===e.type&&e.text&&n.push({component:e,i:o,type:"BODY"}),"TITLE"===e.type&&e.text&&n.push({component:e,i:o,type:"TITLE"}),"HEADER"===e.type&&"NONE"!==e.format&&"TEXT"!==e.format&&(null===(i=null===(t=e.example)||void 0===t?void 0:t.header_handle)||void 0===i?void 0:i[0])&&(r=e),"HEADER"===e.type&&"TEXT"===e.format&&n.push({component:e,i:o,type:"HEADER"}),"BUTTONS"===e.type){const t=null===(s=null===(a=e.buttons)||void 0===a?void 0:a.filter)||void 0===s?void 0:s.call(a,e=>"URL"===e.type);l.push({component:Object.assign(Object.assign({},e),{buttons:t}),i:o});const i=null===(m=null===(d=e.buttons)||void 0===d?void 0:d.filter)||void 0===m?void 0:m.call(d,e=>"QUICK_REPLY"===e.type);p.push({component:Object.assign(Object.assign({},e),{buttons:i}),i:o})}"limited_time_offer"===e.type&&n.push({component:e,i:o,type:"limited_time_offer"})}),e.mapping&&(null===(o=e.mapping.body)||void 0===o||o.forEach(e=>{a.push(e)})),e.mapping&&(null===(t=e.mapping.header)||void 0===t||t.forEach(e=>{s.push(e)})),e.mapping&&(null===(i=e.mapping.title)||void 0===i||i.forEach(e=>{d.push(e)})),{imageComponent:r,descriptionComponents:n,urlBtns:l,qrbBtns:p,bodyVariables:a,headerVariables:s,titleVariables:d}},exports.getAllDataFromWebpushTemplateComponent=(e,o)=>{var t,i,n,l,p;return{bodyVariables:(null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.map(e=>e))||[],titleVariables:(null===(i=null==e?void 0:e.title)||void 0===i?void 0:i.map(e=>e))||[],iconImage:(null===(n=null==e?void 0:e.icon)||void 0===n?void 0:n.map(e=>e))||[],bannerImage:(null===(l=null==e?void 0:e.image)||void 0===l?void 0:l.map(e=>e))||[],redirectionLink:(null===(p=null==e?void 0:e.redirectionLink)||void 0===p?void 0:p.map(e=>e))||[],descriptionComponents:Object.keys(o).map(e=>({type:e.toUpperCase(),component:Object.assign(Object.assign({},o[e]),{type:e.toUpperCase()})}))}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.getAllDataFromTemplateComponent=e=>{var o,t,i;const n=[],l=[],p=[],a=[],s=[],d=[];let r=null;return e.components.forEach(((e,o)=>{var t,i,a,s,d,m;if("BODY"===e.type&&e.text&&n.push({component:e,i:o,type:"BODY"}),"TITLE"===e.type&&e.text&&n.push({component:e,i:o,type:"TITLE"}),"HEADER"===e.type&&"NONE"!==e.format&&"TEXT"!==e.format&&(null===(i=null===(t=e.example)||void 0===t?void 0:t.header_handle)||void 0===i?void 0:i[0])&&(r=e),"HEADER"===e.type&&"TEXT"===e.format&&n.push({component:e,i:o,type:"HEADER"}),"BUTTONS"===e.type){const t=null===(s=null===(a=e.buttons)||void 0===a?void 0:a.filter)||void 0===s?void 0:s.call(a,(e=>"URL"===e.type));l.push({component:Object.assign(Object.assign({},e),{buttons:t}),i:o});const i=null===(m=null===(d=e.buttons)||void 0===d?void 0:d.filter)||void 0===m?void 0:m.call(d,(e=>"QUICK_REPLY"===e.type));p.push({component:Object.assign(Object.assign({},e),{buttons:i}),i:o})}"limited_time_offer"===e.type&&n.push({component:e,i:o,type:"limited_time_offer"})})),e.mapping&&(null===(o=e.mapping.body)||void 0===o||o.forEach((e=>{a.push(e)}))),e.mapping&&(null===(t=e.mapping.header)||void 0===t||t.forEach((e=>{s.push(e)}))),e.mapping&&(null===(i=e.mapping.title)||void 0===i||i.forEach((e=>{d.push(e)}))),{imageComponent:r,descriptionComponents:n,urlBtns:l,qrbBtns:p,bodyVariables:a,headerVariables:s,titleVariables:d}},exports.getAllDataFromWebpushTemplateComponent=(e,o)=>{var t,i,n,l,p;return{bodyVariables:(null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.map((e=>e)))||[],titleVariables:(null===(i=null==e?void 0:e.title)||void 0===i?void 0:i.map((e=>e)))||[],iconImage:(null===(n=null==e?void 0:e.icon)||void 0===n?void 0:n.map((e=>e)))||[],bannerImage:(null===(l=null==e?void 0:e.image)||void 0===l?void 0:l.map((e=>e)))||[],redirectionLink:(null===(p=null==e?void 0:e.redirectionLink)||void 0===p?void 0:p.map((e=>e)))||[],descriptionComponents:Object.keys(o).map((e=>({type:e.toUpperCase(),component:Object.assign(Object.assign({},o[e]),{type:e.toUpperCase()})})))}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../template-preview/models/Channels.js");exports.highlightFor=function(t,o,l,n,d){var i;const u=null===document||void 0===document?void 0:document.getElementById("mobile"===d?"template_html_mobile":"template_html_desktop"),m=n===e.CHANNEL_TYPE.EMAIL?null===(i=null==u?void 0:u.contentWindow)||void 0===i?void 0:i.document.getElementById(t):document.getElementById(t);if(m){const e=m.style.backgroundColor;m.style.backgroundColor=o,setTimeout(function(){m.style.backgroundColor=e},1e3*l)}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../template-preview/models/Channels.js");exports.highlightFor=function(t,o,l,n,d){var i;const u=null===document||void 0===document?void 0:document.getElementById("mobile"===d?"template_html_mobile":"template_html_desktop"),m=n===e.CHANNEL_TYPE.EMAIL?null===(i=null==u?void 0:u.contentWindow)||void 0===i?void 0:i.document.getElementById(t):document.getElementById(t);if(m){const e=m.style.backgroundColor;m.style.backgroundColor=o,setTimeout((function(){m.style.backgroundColor=e}),1e3*l)}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.validateInputName=t=>!!/[^a-zA-Z0-9._ ]/.test(t),exports.validateInputNameChatbot=t=>{const e=/[^a-zA-Z0-9._ {}]/.test(t),a=t.match(/\{\{[a-zA-Z0-9._]+\}\}/g)||[],s=a.every(t=>t.startsWith("{{")&&t.endsWith("}}"));return!(!(e||t.includes("{{")&&0===a.length)&&s)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.validateInputName=t=>!!/[^a-zA-Z0-9._ ]/.test(t),exports.validateInputNameChatbot=t=>{const e=/[^a-zA-Z0-9._ {}]/.test(t),a=t.match(/\{\{[a-zA-Z0-9._]+\}\}/g)||[],s=a.every((t=>t.startsWith("{{")&&t.endsWith("}}")));return!(!(e||t.includes("{{")&&0===a.length)&&s)};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../button/Button.js"),a=require("../TypographyStyle.js"),n=require("./EmailTemplatePreview.styled.js");const s="https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c";exports.DEFAULT_IMAGE=s,exports.default=({template:r,handleViewTemplate:o,hideHeader:i,hideViewButton:l,containerStyle:p,emailHtmlContainerId:d,emailDisplayContent:c,applyBorderBottom:u,hidePointerEvents:m})=>{return e.jsxs(n.EmailContainer,Object.assign({hideHeader:i,style:Object.assign({},null!=p?p:{})},{children:[!i&&e.jsx(n.Header,{children:e.jsx(a.TitleRegular,Object.assign({style:{maxWidth:"100%"}},{children:r.name}))}),e.jsx(n.IframeContainer,Object.assign({applyBorderBottom:u},{children:c?e.jsx("iframe",{title:"Email template preview",id:null!=d?d:"",width:"100%",srcDoc:(h=c,h.replace(/<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{##orderProducts}}<\/span><span>\s*<\/span>/g,"").replace(/src="<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{product.photoUrl}}<\/span><span> <\/span>"/g,`src=${s}`).replace(/<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{\/\/orderProducts}}<\/span><span>\s*<\/span>/g,"").replace(/<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{##abandonedCartProducts}}<\/span><span>\s*<\/span>/g,"").replace(/<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{\/\/abandonedCartProducts}}<\/span><span>\s*<\/span>/g,"")),height:"100%",style:{pointerEvents:m?void 0:"none"}}):e.jsx(n.ImageContainer,Object.assign({hideHeader:i},{children:e.jsx(n.CardLoadingContainer,{})}))})),!l&&e.jsx(n.ViewButton,{children:e.jsx(t.Button,{buttonType:"tertiary",buttonText:"View",onClick:()=>{o&&o()}})})]}));var h};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../button/Button.js"),a=require("../TypographyStyle.js"),n=require("./EmailTemplatePreview.styled.js");const s="https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c";exports.DEFAULT_IMAGE=s,exports.default=r=>{let{template:o,handleViewTemplate:i,hideHeader:l,hideViewButton:p,containerStyle:d,emailHtmlContainerId:c,emailDisplayContent:u,applyBorderBottom:m,hidePointerEvents:h}=r;return e.jsxs(n.EmailContainer,Object.assign({hideHeader:l,style:Object.assign({},null!=d?d:{})},{children:[!l&&e.jsx(n.Header,{children:e.jsx(a.TitleRegular,Object.assign({style:{maxWidth:"100%"}},{children:o.name}))}),e.jsx(n.IframeContainer,Object.assign({applyBorderBottom:m},{children:u?e.jsx("iframe",{title:"Email template preview",id:null!=c?c:"",width:"100%",srcDoc:(x=u,x.replace(/<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{##orderProducts}}<\/span><span>\s*<\/span>/g,"").replace(/src="<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{product.photoUrl}}<\/span><span> <\/span>"/g,`src=${s}`).replace(/<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{\/\/orderProducts}}<\/span><span>\s*<\/span>/g,"").replace(/<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{##abandonedCartProducts}}<\/span><span>\s*<\/span>/g,"").replace(/<span><\/span><span style="color: #731DCF; text-decoration: underline;">{{\/\/abandonedCartProducts}}<\/span><span>\s*<\/span>/g,"")),height:"100%",style:{pointerEvents:h?void 0:"none"}}):e.jsx(n.ImageContainer,Object.assign({hideHeader:l},{children:e.jsx(n.CardLoadingContainer,{})}))})),!p&&e.jsx(n.ViewButton,{children:e.jsx(t.Button,{buttonType:"tertiary",buttonText:"View",onClick:()=>{i&&i()}})})]}));var x};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../TypographyStyle.js"),r=require("../../../constants/Theme.js");exports.RCSButtons=({Icon:i,text:n,extraContent:s,placeholder:o,textTypography:l,size:c})=>{const a=l||t.BodySecondary;return e.jsx(e.Fragment,{children:e.jsxs("div",Object.assign({style:{textAlign:"center",maxWidth:"100%"}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},{children:[i&&e.jsx(i,{color:r.COLORS.special.brand.facebook,height:16,width:16,style:{marginRight:8}}),e.jsx("div",Object.assign({style:{border:"1px solid #E0E0E0",width:"100%",borderRadius:30,padding:"8px 12px"}},{children:e.jsx(a,Object.assign({style:{color:r.COLORS.special.brand.facebook,textAlign:"center",fontSize:"small"===c?12:14,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},{children:n}))}))]})),!!s&&e.jsx(t.Caption,Object.assign({style:{marginTop:2,color:r.COLORS.content.placeholder,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},{children:o?function(e){return e.replace("[[","").replace("]]","").replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()})}(o):s}))]}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../TypographyStyle.js"),r=require("../../../constants/Theme.js");exports.RCSButtons=i=>{let{Icon:n,text:s,extraContent:l,placeholder:o,textTypography:c,size:a}=i;const d=c||t.BodySecondary;return e.jsx(e.Fragment,{children:e.jsxs("div",Object.assign({style:{textAlign:"center",maxWidth:"100%"}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},{children:[n&&e.jsx(n,{color:r.COLORS.special.brand.facebook,height:16,width:16,style:{marginRight:8}}),e.jsx("div",Object.assign({style:{border:"1px solid #E0E0E0",width:"100%",borderRadius:30,padding:"8px 12px"}},{children:e.jsx(d,Object.assign({style:{color:r.COLORS.special.brand.facebook,textAlign:"center",fontSize:"small"===a?12:14,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},{children:s}))}))]})),!!l&&e.jsx(t.Caption,Object.assign({style:{marginTop:2,color:r.COLORS.content.placeholder,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},{children:o?function(e){return e.replace("[[","").replace("]]","").replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()}))}(o):l}))]}))})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../../template-context-mapper/context/templateModalContext.js"),s=require("../helpers/templateMiscHelper.js"),a=require("../helpers/VariableEditorHelper.js"),l=require("../models/TemplateMeta.js"),i=require("../WhatsApp/ChatBtn.js"),n=require("./RCSButtons.js"),d=require("./RCSMediaCard.js"),o=require("./RCSPreview.styled.js");const u=new a.VariableEditorHelper;exports.RCSChatPreview=a=>{const{bodyText:p,titleText:C,headerMediaType:h,headerText:m,headerAssetLink:x,headerAssetName:c,imagePreviewStyles:E,size:T,bodyVariableList:j,headerVariableList:g,buttons:S,carouselCardIndex:A,isWhatsappCarousel:v,isPreview:R,titleVariableList:H,templateConfiguration:M}=a,y=u.format(null==p?void 0:p.replace(/</g,"&lt;").replace(/>/g,"&gt;"),j),P=u.format(null==m?void 0:m.replace(/</g,"&lt;").replace(/>/g,"&gt;"),g),_=u.format(null==C?void 0:C.replace(/</g,"&lt;").replace(/>/g,"&gt;"),H),{selectedCarouselIndex:b,isProductCarouselType:N,errorIndexes:O,isCarouselHovered:w}=r.useTemplateModalContext(),D=t.useMemo(()=>s.isRichAndCarouselCards(null==M?void 0:M.templateType),[null==M?void 0:M.templateType]),L=t.useMemo(()=>"HORIZONTAL"==(null==M?void 0:M.orientation),[M]);return e.jsxs(o.RCSPreviewContainer,Object.assign({isCarouselCard:null!=A&&A>-1,showBorder:null!=A&&A===b||N&&null!=A&&A>-1&&null!=b&&b>-1,hasError:null==O?void 0:O.includes(null!=A?A:-2),isWhatsappCarousel:v,isPreview:R,showDashedBorder:N&&w&&(null!=b?b:-1)<0&&(null!=A?A:-1)>-1,needBorder:D,isHorizontalOrientation:L},{children:[!L&&e.jsx(e.Fragment,{children:h===l.HEADER_TYPES.TEXT?e.jsx(o.HeaderTextContainer,{dangerouslySetInnerHTML:{__html:P}}):h!==l.HEADER_TYPES.NONE&&x&&h!==l.HEADER_TYPES.DOCUMENT?e.jsx(d.RCSMediaCard,{headerAssetLink:x,headerAssetName:c,mediaType:h,imagePreviewStyles:h===l.HEADER_TYPES.IMAGE?E:{}}):null}),e.jsxs("div",Object.assign({style:{width:L?"50%":""}},{children:[e.jsxs("div",Object.assign({className:D?"":"text--template"},{children:[!!C&&e.jsx(e.Fragment,{children:e.jsx(o.TitleTextContainer,{dangerouslySetInnerHTML:{__html:_}})}),!!p&&e.jsx(e.Fragment,{children:e.jsx(o.RcsHtmlContainer,{dangerouslySetInnerHTML:{__html:y},style:{paddingTop:C?0:12}})}),h===l.HEADER_TYPES.DOCUMENT?e.jsx(d.PdfMediaCard,Object.assign({},{headerAssetLink:x,headerAssetName:c})):e.jsx(e.Fragment,{})]})),S&&S.length>0?s.isRichAndCarouselCards(null==M?void 0:M.templateType)?e.jsx(e.Fragment,{children:S.map((t,r)=>e.jsx(i.ChatBtn,{text:t.text,size:T},r))}):e.jsx(o.RCSChatBtnContainer,{children:S.map((t,r)=>e.jsx(n.RCSButtons,{text:t.text,size:T},r))}):null]})),L&&h!==l.HEADER_TYPES.NONE&&x&&h!==l.HEADER_TYPES.DOCUMENT&&e.jsx(d.RCSMediaCard,{headerAssetLink:x,headerAssetName:c,mediaType:h,imagePreviewStyles:h===l.HEADER_TYPES.IMAGE?E:{},isHorizontal:L})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../../template-context-mapper/context/templateModalContext.js"),s=require("../helpers/templateMiscHelper.js"),a=require("../helpers/VariableEditorHelper.js"),l=require("../models/TemplateMeta.js"),i=require("../WhatsApp/ChatBtn.js"),n=require("./RCSButtons.js"),d=require("./RCSMediaCard.js"),o=require("./RCSPreview.styled.js");const u=new a.VariableEditorHelper;exports.RCSChatPreview=a=>{const{bodyText:p,titleText:C,headerMediaType:h,headerText:m,headerAssetLink:x,headerAssetName:c,imagePreviewStyles:E,size:T,bodyVariableList:j,headerVariableList:g,buttons:S,carouselCardIndex:A,isWhatsappCarousel:v,isPreview:R,titleVariableList:H,templateConfiguration:M}=a,y=u.format(null==p?void 0:p.replace(/</g,"&lt;").replace(/>/g,"&gt;"),j),P=u.format(null==m?void 0:m.replace(/</g,"&lt;").replace(/>/g,"&gt;"),g),_=u.format(null==C?void 0:C.replace(/</g,"&lt;").replace(/>/g,"&gt;"),H),{selectedCarouselIndex:b,isProductCarouselType:N,errorIndexes:O,isCarouselHovered:w}=r.useTemplateModalContext(),D=t.useMemo((()=>s.isRichAndCarouselCards(null==M?void 0:M.templateType)),[null==M?void 0:M.templateType]),L=t.useMemo((()=>"HORIZONTAL"==(null==M?void 0:M.orientation)),[M]);return e.jsxs(o.RCSPreviewContainer,Object.assign({isCarouselCard:null!=A&&A>-1,showBorder:null!=A&&A===b||N&&null!=A&&A>-1&&null!=b&&b>-1,hasError:null==O?void 0:O.includes(null!=A?A:-2),isWhatsappCarousel:v,isPreview:R,showDashedBorder:N&&w&&(null!=b?b:-1)<0&&(null!=A?A:-1)>-1,needBorder:D,isHorizontalOrientation:L},{children:[!L&&e.jsx(e.Fragment,{children:h===l.HEADER_TYPES.TEXT?e.jsx(o.HeaderTextContainer,{dangerouslySetInnerHTML:{__html:P}}):h!==l.HEADER_TYPES.NONE&&x&&h!==l.HEADER_TYPES.DOCUMENT?e.jsx(d.RCSMediaCard,{headerAssetLink:x,headerAssetName:c,mediaType:h,imagePreviewStyles:h===l.HEADER_TYPES.IMAGE?E:{}}):null}),e.jsxs("div",Object.assign({style:{width:L?"50%":""}},{children:[e.jsxs("div",Object.assign({className:D?"":"text--template"},{children:[!!C&&e.jsx(e.Fragment,{children:e.jsx(o.TitleTextContainer,{dangerouslySetInnerHTML:{__html:_}})}),!!p&&e.jsx(e.Fragment,{children:e.jsx(o.RcsHtmlContainer,{dangerouslySetInnerHTML:{__html:y},style:{paddingTop:C?0:12}})}),h===l.HEADER_TYPES.DOCUMENT?e.jsx(d.PdfMediaCard,Object.assign({},{headerAssetLink:x,headerAssetName:c})):e.jsx(e.Fragment,{})]})),S&&S.length>0?s.isRichAndCarouselCards(null==M?void 0:M.templateType)?e.jsx(e.Fragment,{children:S.map(((t,r)=>e.jsx(i.ChatBtn,{text:t.text,size:T},r)))}):e.jsx(o.RCSChatBtnContainer,{children:S.map(((t,r)=>e.jsx(n.RCSButtons,{text:t.text,size:T},r)))}):null]})),L&&h!==l.HEADER_TYPES.NONE&&x&&h!==l.HEADER_TYPES.DOCUMENT&&e.jsx(d.RCSMediaCard,{headerAssetLink:x,headerAssetName:c,mediaType:h,imagePreviewStyles:h===l.HEADER_TYPES.IMAGE?E:{},isHorizontal:L})]}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../../assets/icons/RCS_PDF.svg.js"),r=require("../../shimmer-image/ShimmerImage.js"),i=require("../../../constants/Theme.js"),t=require("../models/TemplateMeta.js"),a=require("./RCSPreview.styled.js");exports.PdfMediaCard=({headerAssetLink:r,headerAssetName:t})=>{var d;const n=s.default,o=t||(null===(d=null==r?void 0:r.split("/").pop())||void 0===d?void 0:d.replace(".pdf",""))||"xxxxxxxx";return e.jsxs(a.RCSPdfContainer,{children:[e.jsx(n,{height:24,width:24,color:i.COLORS.icon.placeholder}),!!o&&e.jsxs(a.PdfComineText,{children:[e.jsx(a.PdfText,{children:o}),e.jsx(a.PdfText,{children:".pdf"})]})]})},exports.RCSMediaCard=({headerAssetLink:s,headerAssetName:i,mediaType:d,imagePreviewStyles:n,isHorizontal:o})=>{const l={width:"100%",minHeight:o?"100%":"240px",height:o?"100%":"240px",objectFit:"cover",borderRadius:o?"8px":""};return e.jsx(a.RCSMediaContainer,Object.assign({isHorizontal:!!o},{children:d===t.HEADER_TYPES.IMAGE?e.jsx(r.ShimmerImage,{imageUrl:s,alt:s,width:"100%",height:o?"100%":240,imagePreviewStyles:Object.assign(Object.assign({},n),{borderTopRightRadius:8,borderTopLeftRadius:8})}):d===t.HEADER_TYPES.VIDEO?e.jsx("video",Object.assign({src:s,style:l,controls:!0,muted:!0},{children:e.jsx("track",{default:!0,kind:"captions",srcLang:"en",src:s})})):e.jsx(e.Fragment,{})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../../assets/icons/RCS_PDF.svg.js"),r=require("../../shimmer-image/ShimmerImage.js"),i=require("../../../constants/Theme.js"),t=require("../models/TemplateMeta.js"),a=require("./RCSPreview.styled.js");exports.PdfMediaCard=r=>{let{headerAssetLink:t,headerAssetName:d}=r;var n;const o=s.default,l=d||(null===(n=null==t?void 0:t.split("/").pop())||void 0===n?void 0:n.replace(".pdf",""))||"xxxxxxxx";return e.jsxs(a.RCSPdfContainer,{children:[e.jsx(o,{height:24,width:24,color:i.COLORS.icon.placeholder}),!!l&&e.jsxs(a.PdfComineText,{children:[e.jsx(a.PdfText,{children:l}),e.jsx(a.PdfText,{children:".pdf"})]})]})},exports.RCSMediaCard=s=>{let{headerAssetLink:i,headerAssetName:d,mediaType:n,imagePreviewStyles:o,isHorizontal:l}=s;const c={width:"100%",minHeight:l?"100%":"240px",height:l?"100%":"240px",objectFit:"cover",borderRadius:l?"8px":""};return e.jsx(a.RCSMediaContainer,Object.assign({isHorizontal:!!l},{children:n===t.HEADER_TYPES.IMAGE?e.jsx(r.ShimmerImage,{imageUrl:i,alt:i,width:"100%",height:l?"100%":240,imagePreviewStyles:Object.assign(Object.assign({},o),{borderTopRightRadius:8,borderTopLeftRadius:8})}):n===t.HEADER_TYPES.VIDEO?e.jsx("video",Object.assign({src:i,style:c,controls:!0,muted:!0},{children:e.jsx("track",{default:!0,kind:"captions",srcLang:"en",src:i})})):e.jsx(e.Fragment,{})}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../assets/icons/arrow_left.svg.js"),t=require("../../assets/icons/more_vertical.svg.js"),s=require("../../assets/icons/search.svg.js"),l=require("../../constants/Theme.js"),i=require("../template-context-mapper/context/templateModalContext.js"),n=require("../TypographyStyle.js"),a=require("./helpers/SmsTemplateHelper.js"),o=require("./SMS/SMSBubble.js"),d=require("./SmsTemplatePreview.styled.js");exports.default=({template:c,variableStore:u,hideHeader:j,display_content:h,onlyTemplateContent:x,size:p,uniqueId:v})=>{var g;const S=null==c?void 0:c.content,{hideDeviceContainerInPreview:m}=i.useTemplateModalContext();return m?e.jsx(d.SMSBubbleContainer,Object.assign({size:p},{children:e.jsx(o.default,{size:null!=p?p:"large",content:null!=h?h:a.renderVariableUIForPreview(S,null!=u?u:[],void 0,null!=v?v:"")})})):e.jsxs(e.Fragment,{children:[!j&&!x&&e.jsx(d.SMSCardHeader,{children:e.jsx(n.TitleRegular,Object.assign({style:{maxWidth:"100%"}},{children:c.name}))}),!x&&e.jsx(d.SMSHeader,{children:e.jsxs(e.Fragment,{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:8}},{children:[e.jsx(r.default,{width:16,height:16,color:l.COLORS.content.secondary}),e.jsx(n.Caption,{children:null===(g=null==c?void 0:c.headers)||void 0===g?void 0:g[0]})]})),e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:8}},{children:[e.jsx(s.default,{width:16,height:16,color:l.COLORS.content.secondary}),e.jsx(t.default,{width:16,height:16,color:l.COLORS.content.secondary})]}))]})}),e.jsx(d.SMSBubbleContainer,Object.assign({size:p},{children:e.jsx(o.default,{size:null!=p?p:"large",content:null!=h?h:a.renderVariableUIForPreview(S,null!=u?u:[],void 0,null!=v?v:"")})}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../assets/icons/arrow_left.svg.js"),t=require("../../assets/icons/more_vertical.svg.js"),s=require("../../assets/icons/search.svg.js"),l=require("../../constants/Theme.js"),i=require("../template-context-mapper/context/templateModalContext.js"),n=require("../TypographyStyle.js"),a=require("./helpers/SmsTemplateHelper.js"),o=require("./SMS/SMSBubble.js"),d=require("./SmsTemplatePreview.styled.js");exports.default=c=>{let{template:u,variableStore:j,hideHeader:h,display_content:x,onlyTemplateContent:p,size:v,uniqueId:g}=c;var S;const m=null==u?void 0:u.content,{hideDeviceContainerInPreview:b}=i.useTemplateModalContext();return b?e.jsx(d.SMSBubbleContainer,Object.assign({size:v},{children:e.jsx(o.default,{size:null!=v?v:"large",content:null!=x?x:a.renderVariableUIForPreview(m,null!=j?j:[],void 0,null!=g?g:"")})})):e.jsxs(e.Fragment,{children:[!h&&!p&&e.jsx(d.SMSCardHeader,{children:e.jsx(n.TitleRegular,Object.assign({style:{maxWidth:"100%"}},{children:u.name}))}),!p&&e.jsx(d.SMSHeader,{children:e.jsxs(e.Fragment,{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:8}},{children:[e.jsx(r.default,{width:16,height:16,color:l.COLORS.content.secondary}),e.jsx(n.Caption,{children:null===(S=null==u?void 0:u.headers)||void 0===S?void 0:S[0]})]})),e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:8}},{children:[e.jsx(s.default,{width:16,height:16,color:l.COLORS.content.secondary}),e.jsx(t.default,{width:16,height:16,color:l.COLORS.content.secondary})]}))]})}),e.jsx(d.SMSBubbleContainer,Object.assign({size:v},{children:e.jsx(o.default,{size:null!=v?v:"large",content:null!=x?x:a.renderVariableUIForPreview(m,null!=j?j:[],void 0,null!=g?g:"")})}))]})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../template-context-mapper/context/templateModalContext.js"),i=require("../../utils/StringUtils.js"),l=require("../../constants/Theme.js"),a=require("../../assets/icons/aiContentIcon.svg.js"),n=require("../TypographyStyle.js"),s=require("./EmailTemplateThumbnailPreview.js"),r=require("./models/Channels.js"),o=require("./SmsTemplatePreview.js"),d=require("./webpush/WebpushPreview.js"),u=require("./WhatsAppTemplatePreview.js");const p={WhatsAppWrapper:{backgroundColor:l.COLORS.surface.standard,borderRadius:4,border:`1px solid ${l.COLORS.background.inactive}`,marginTop:16}};exports.TemplatePreview=({template:c,channel:m,whatsAppSpecificMeta:v,templateCreationsInfo:h,hideHeader:j,size:C,onlyTemplateContent:g,emailSpecificMeta:b,smsSpecificMeta:x,showSampleValues:y,carouselCardIndex:S,isWhatsappCarousel:T,isPreview:w,applyBorderBottom:O,webPushSpecificMeta:P,hidePointerEvents:f})=>{var E,H;const{setSelectedCarouselIndex:A}=t.useTemplateModalContext();return m===r.CHANNEL_TYPE.SMS?e.jsx("div",Object.assign({style:Object.assign({marginTop:h?16:0,border:h?`1px solid ${l.COLORS.stroke.primary}`:"none",borderRadius:4},null==x?void 0:x.templateContainerStyles)},{children:e.jsx(o.default,{template:c,hideHeader:j,onlyTemplateContent:g,size:null!=C?C:"large",variableStore:null==x?void 0:x.smsVariableStore,display_content:null==x?void 0:x.smsDisplayContent,uniqueId:null==x?void 0:x.uniqueId})})):m===r.CHANNEL_TYPE.EMAIL?e.jsx("div",Object.assign({style:Object.assign({marginTop:h?16:0},null==b?void 0:b.templateContainerStyles)},{children:e.jsx(s.default,{template:c,handleViewTemplate:()=>{var e;null===(e=null==b?void 0:b.handleViewTemplate)||void 0===e||e.call(b)},hideHeader:j,hideViewButton:null==b?void 0:b.hideViewButtonForEmail,containerStyle:null==b?void 0:b.containerStyle,emailDisplayContent:null==b?void 0:b.emailDisplayContent,emailHtmlContainerId:null==b?void 0:b.emailHtmlContainerId,applyBorderBottom:O,hidePointerEvents:f})})):m===r.CHANNEL_TYPE.WHATSAPP||m===r.CHANNEL_TYPE.RCS?e.jsxs("div",Object.assign({style:Object.assign(Object.assign(Object.assign({},null==v?void 0:v.templateContainerStyles),h?p.WhatsAppWrapper:{}),{position:"relative"}),onClick:()=>{var e,t;if(A&&T){if(-1===S&&!(null===(t=null===(e=null==c?void 0:c.mapping)||void 0===e?void 0:e.body)||void 0===t?void 0:t.length))return;A(null!=S?S:-1)}}},{children:[h?e.jsx("div",Object.assign({style:{padding:16}},{children:e.jsx(n.TitleRegular,{children:i.default.convertToTitleCase(null!==(E=null==c?void 0:c.label)&&void 0!==E?E:"")})})):e.jsx(e.Fragment,{}),e.jsx(u.default,{showSampleValues:y,showHeader:null==v?void 0:v.showWhatsAppHeader,extras:null==v?void 0:v.whatsAppExtras,template:c,size:h?"small":null!=C?C:"large",containerStyle:Object.assign(Object.assign({borderWidth:h?0:1,borderTopWidth:1},null!==(H=null==v?void 0:v.containerStyle)&&void 0!==H?H:{}),{height:"100%"}),zeroStateComponent:null==v?void 0:v.zeroStateComponent,usePlaceHolderName:null==v?void 0:v.usePlaceHolderName,carouselCardIndex:S,isWhatsappCarousel:T,isPreview:w,channel:m}),!!(null==c?void 0:c.aiContentConfigId)&&e.jsx("div",Object.assign({style:{position:"absolute",top:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:48,height:48,zIndex:5}},{children:e.jsx(a.default,{width:48,height:48})}))]})):m==r.CHANNEL_TYPE.WEBPUSH?e.jsx("div",Object.assign({style:Object.assign({},null==P?void 0:P.containerStyle)},{children:e.jsx(d.default,{template:c,extraContainerCss:null==P?void 0:P.extraContainerCss})})):e.jsx(e.Fragment,{})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../template-context-mapper/context/templateModalContext.js"),l=require("../../utils/StringUtils.js"),i=require("../../constants/Theme.js"),a=require("../../assets/icons/aiContentIcon.svg.js"),n=require("../TypographyStyle.js"),s=require("./EmailTemplateThumbnailPreview.js"),r=require("./models/Channels.js"),o=require("./SmsTemplatePreview.js"),d=require("./webpush/WebpushPreview.js"),u=require("./WhatsAppTemplatePreview.js");const p={WhatsAppWrapper:{backgroundColor:i.COLORS.surface.standard,borderRadius:4,border:`1px solid ${i.COLORS.background.inactive}`,marginTop:16}};exports.TemplatePreview=c=>{let{template:m,channel:v,whatsAppSpecificMeta:h,templateCreationsInfo:j,hideHeader:C,size:g,onlyTemplateContent:b,emailSpecificMeta:x,smsSpecificMeta:y,showSampleValues:S,carouselCardIndex:T,isWhatsappCarousel:w,isPreview:O,applyBorderBottom:P,webPushSpecificMeta:f,hidePointerEvents:E}=c;var H,A;const{setSelectedCarouselIndex:q}=t.useTemplateModalContext();return v===r.CHANNEL_TYPE.SMS?e.jsx("div",Object.assign({style:Object.assign({marginTop:j?16:0,border:j?`1px solid ${i.COLORS.stroke.primary}`:"none",borderRadius:4},null==y?void 0:y.templateContainerStyles)},{children:e.jsx(o.default,{template:m,hideHeader:C,onlyTemplateContent:b,size:null!=g?g:"large",variableStore:null==y?void 0:y.smsVariableStore,display_content:null==y?void 0:y.smsDisplayContent,uniqueId:null==y?void 0:y.uniqueId})})):v===r.CHANNEL_TYPE.EMAIL?e.jsx("div",Object.assign({style:Object.assign({marginTop:j?16:0},null==x?void 0:x.templateContainerStyles)},{children:e.jsx(s.default,{template:m,handleViewTemplate:()=>{var e;null===(e=null==x?void 0:x.handleViewTemplate)||void 0===e||e.call(x)},hideHeader:C,hideViewButton:null==x?void 0:x.hideViewButtonForEmail,containerStyle:null==x?void 0:x.containerStyle,emailDisplayContent:null==x?void 0:x.emailDisplayContent,emailHtmlContainerId:null==x?void 0:x.emailHtmlContainerId,applyBorderBottom:P,hidePointerEvents:E})})):v===r.CHANNEL_TYPE.WHATSAPP||v===r.CHANNEL_TYPE.RCS?e.jsxs("div",Object.assign({style:Object.assign(Object.assign(Object.assign({},null==h?void 0:h.templateContainerStyles),j?p.WhatsAppWrapper:{}),{position:"relative"}),onClick:()=>{var e,t;if(q&&w){if(-1===T&&!(null===(t=null===(e=null==m?void 0:m.mapping)||void 0===e?void 0:e.body)||void 0===t?void 0:t.length))return;q(null!=T?T:-1)}}},{children:[j?e.jsx("div",Object.assign({style:{padding:16}},{children:e.jsx(n.TitleRegular,{children:l.default.convertToTitleCase(null!==(H=null==m?void 0:m.label)&&void 0!==H?H:"")})})):e.jsx(e.Fragment,{}),e.jsx(u.default,{showSampleValues:S,showHeader:null==h?void 0:h.showWhatsAppHeader,extras:null==h?void 0:h.whatsAppExtras,template:m,size:j?"small":null!=g?g:"large",containerStyle:Object.assign(Object.assign({borderWidth:j?0:1,borderTopWidth:1},null!==(A=null==h?void 0:h.containerStyle)&&void 0!==A?A:{}),{height:"100%"}),zeroStateComponent:null==h?void 0:h.zeroStateComponent,usePlaceHolderName:null==h?void 0:h.usePlaceHolderName,carouselCardIndex:T,isWhatsappCarousel:w,isPreview:O,channel:v}),!!(null==m?void 0:m.aiContentConfigId)&&e.jsx("div",Object.assign({style:{position:"absolute",top:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:48,height:48,zIndex:5}},{children:e.jsx(a.default,{width:48,height:48})}))]})):v==r.CHANNEL_TYPE.WEBPUSH?e.jsx("div",Object.assign({style:Object.assign({},null==f?void 0:f.containerStyle)},{children:e.jsx(d.default,{template:m,extraContainerCss:null==f?void 0:f.extraContainerCss})})):e.jsx(e.Fragment,{})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../TypographyStyle.js"),r=require("../../../constants/Theme.js"),i=require("./ChatUI.style.js");exports.ChatBtn=({Icon:n,text:o,extraContent:s,placeholder:l,textTypography:a,size:c,iconPosition:p="left"})=>{const h=a||t.BodySecondary;return e.jsx(i.ChatBtnContainer,{children:e.jsxs("div",Object.assign({style:{textAlign:"center",maxWidth:"100%"}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},{children:[n&&"left"===p&&e.jsx(n,{color:r.COLORS.special.brand.facebook,height:16,width:16,style:{marginRight:8}}),e.jsx(h,Object.assign({style:{color:r.COLORS.special.brand.facebook,textAlign:"center",fontSize:"small"===c?12:14,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},{children:o})),n&&"right"===p&&e.jsx(n,{color:r.COLORS.special.brand.facebook,height:16,width:16,style:{marginLeft:8}})]})),!!s&&e.jsx(t.Caption,Object.assign({style:{marginTop:2,color:r.COLORS.content.placeholder,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},{children:l?function(e){return e.replace("[[","").replace("]]","").replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()})}(l):s}))]}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../TypographyStyle.js"),r=require("../../../constants/Theme.js"),i=require("./ChatUI.style.js");exports.ChatBtn=n=>{let{Icon:o,text:s,extraContent:l,placeholder:a,textTypography:c,size:p,iconPosition:h="left"}=n;const d=c||t.BodySecondary;return e.jsx(i.ChatBtnContainer,{children:e.jsxs("div",Object.assign({style:{textAlign:"center",maxWidth:"100%"}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},{children:[o&&"left"===h&&e.jsx(o,{color:r.COLORS.special.brand.facebook,height:16,width:16,style:{marginRight:8}}),e.jsx(d,Object.assign({style:{color:r.COLORS.special.brand.facebook,textAlign:"center",fontSize:"small"===p?12:14,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},{children:s})),o&&"right"===h&&e.jsx(o,{color:r.COLORS.special.brand.facebook,height:16,width:16,style:{marginLeft:8}})]})),!!l&&e.jsx(t.Caption,Object.assign({style:{marginTop:2,color:r.COLORS.content.placeholder,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},{children:a?function(e){return e.replace("[[","").replace("]]","").replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()}))}(a):l}))]}))})};
@@ -4,4 +4,4 @@
4
4
  height: 8px;
5
5
  left: -7.7px;
6
6
  top: -8px;
7
- `;exports.default=a=>{const{bodyText:T,footerText:m,headerMediaType:y,headerText:g,headerAssetLink:S,headerAssetName:f,quickReplybtn:v,ctaBtn:q,actionTypes:E,textType:b,extras:w,showHeader:C,imagePreviewStyles:A,size:N,children:F,isPreview:O}=a,M=new d.WhatsAppFormatToHTML,P=i.useMemo(()=>({color:l.COLORS.content.primary,margin:12,fontSize:C?l.FONTS.caption.fontSize:l.FONTS.bodySecondary.fontSize,fontWeight:l.FONTS.bodySecondary.fontWeight,maxWidth:"100%",whiteSpace:"pre-wrap",marginBottom:0,marginTop:8,wordBreak:"break-word"}),[]);return e.jsxs(h.Container,Object.assign({isPreview:O},{children:[e.jsx(j,{children:e.jsx(t.default,{color:"white",height:8,width:8})}),y===c.HEADER_TYPES.TEXT?e.jsx(u.default,{bold:!0,text:null==g?void 0:g.replace(/</g,"&lt;").replace(/>/g,"&gt;")}):y!==c.HEADER_TYPES.NONE?e.jsx(x.MediaCard,{headerAssetLink:S,headerAssetName:f,mediaType:y,imagePreviewStyles:y===c.HEADER_TYPES.IMAGE?A:{}}):e.jsx(e.Fragment,{}),!!T&&e.jsx(e.Fragment,{children:F?e.jsx(e.Fragment,{children:F}):e.jsx(e.Fragment,{children:"html"===b?e.jsx("div",{className:"richTextEditor",style:P,dangerouslySetInnerHTML:{__html:M.convertToHTML(T)}}):e.jsx(n.BodySecondary,{children:null==T?void 0:T.replace(/</g,"&lt;").replace(/>/g,"&gt;")})})}),e.jsxs(h.FooterWrapper,{children:[e.jsx(o.Tooltip,Object.assign({body:null!=m?m:"",placement:"top"},{children:e.jsx(h.FooterText,Object.assign({style:{flex:1}},{children:m}))})),e.jsx(h.TimeStamp,{children:"16:48"})]}),E===c.ACTIONS_TYPES.QUICK_REPLY?e.jsx("div",{children:null==v?void 0:v.map((t,r)=>e.jsx(p.ChatBtn,{text:t.text},r))}):E===c.ACTIONS_TYPES.CTA_BTN?e.jsx("div",{children:null==q?void 0:q.map((t,i)=>e.jsx(p.ChatBtn,{textTypography:C?n.Caption:n.BodySecondary,extraContent:w?t.extra:void 0,placeholder:t.placeholder,text:t.text,Icon:"phoneNumber"===t.type?r.default:s.default,size:N},i))}):e.jsx(e.Fragment,{})]}))};
7
+ `;exports.default=a=>{const{bodyText:T,footerText:m,headerMediaType:y,headerText:g,headerAssetLink:S,headerAssetName:f,quickReplybtn:v,ctaBtn:q,actionTypes:E,textType:b,extras:w,showHeader:C,imagePreviewStyles:A,size:N,children:F,isPreview:O}=a,M=new d.WhatsAppFormatToHTML,P=i.useMemo((()=>({color:l.COLORS.content.primary,margin:12,fontSize:C?l.FONTS.caption.fontSize:l.FONTS.bodySecondary.fontSize,fontWeight:l.FONTS.bodySecondary.fontWeight,maxWidth:"100%",whiteSpace:"pre-wrap",marginBottom:0,marginTop:8,wordBreak:"break-word"})),[]);return e.jsxs(h.Container,Object.assign({isPreview:O},{children:[e.jsx(j,{children:e.jsx(t.default,{color:"white",height:8,width:8})}),y===c.HEADER_TYPES.TEXT?e.jsx(u.default,{bold:!0,text:null==g?void 0:g.replace(/</g,"&lt;").replace(/>/g,"&gt;")}):y!==c.HEADER_TYPES.NONE?e.jsx(x.MediaCard,{headerAssetLink:S,headerAssetName:f,mediaType:y,imagePreviewStyles:y===c.HEADER_TYPES.IMAGE?A:{}}):e.jsx(e.Fragment,{}),!!T&&e.jsx(e.Fragment,{children:F?e.jsx(e.Fragment,{children:F}):e.jsx(e.Fragment,{children:"html"===b?e.jsx("div",{className:"richTextEditor",style:P,dangerouslySetInnerHTML:{__html:M.convertToHTML(T)}}):e.jsx(n.BodySecondary,{children:null==T?void 0:T.replace(/</g,"&lt;").replace(/>/g,"&gt;")})})}),e.jsxs(h.FooterWrapper,{children:[e.jsx(o.Tooltip,Object.assign({body:null!=m?m:"",placement:"top"},{children:e.jsx(h.FooterText,Object.assign({style:{flex:1}},{children:m}))})),e.jsx(h.TimeStamp,{children:"16:48"})]}),E===c.ACTIONS_TYPES.QUICK_REPLY?e.jsx("div",{children:null==v?void 0:v.map(((t,r)=>e.jsx(p.ChatBtn,{text:t.text},r)))}):E===c.ACTIONS_TYPES.CTA_BTN?e.jsx("div",{children:null==q?void 0:q.map(((t,i)=>e.jsx(p.ChatBtn,{textTypography:C?n.Caption:n.BodySecondary,extraContent:w?t.extra:void 0,placeholder:t.placeholder,text:t.text,Icon:"phoneNumber"===t.type?r.default:s.default,size:N},i)))}):e.jsx(e.Fragment,{})]}))};
@@ -16,4 +16,4 @@
16
16
  `,v=T.default(g)`
17
17
  font-weight: 600;
18
18
  margin-bottom: 8px;
19
- `,E=new x.VariableEditorHelper;exports.ChatUIV2=l=>{const{bodyText:u,footerText:x,headerMediaType:C,headerText:T,headerAssetLink:O,headerAssetName:I,quickReplybtn:S,ctaBtn:L,actionTypes:_,extras:q,showHeader:P,imagePreviewStyles:b,size:w,bodyVariableList:A,headerVariableList:M,buttons:N,limitedTimeOfferComponent:R,carouselCardIndex:H,isWhatsappCarousel:B,isPreview:Y,children:D,hideFooter:F=!1}=l,U=E.format(null==u?void 0:u.replace(/</g,"&lt;").replace(/>/g,"&gt;"),A),V=E.format(null==T?void 0:T.replace(/</g,"&lt;").replace(/>/g,"&gt;"),M),{selectedCarouselIndex:k,isProductCarouselType:z,errorIndexes:W,isCarouselHovered:K}=n.useTemplateModalContext(),Q={COPY_CODE:r.default,PHONE_NUMBER:i.default,URL:o.default,QUICK_REPLY:a.default,VOICE_CALL:i.default,CALL_PERMISSION:t.default};return e.jsxs(m.Container,Object.assign({isCarouselCard:null!=H&&H>-1,showBorder:null!=H&&H===k||z&&null!=H&&H>-1&&null!=k&&k>-1,hasError:null==W?void 0:W.includes(null!=H?H:-2),isWhatsappCarousel:B,isPreview:Y,showDashedBorder:z&&K&&(null!=k?k:-1)<0&&(null!=H?H:-1)>-1},{children:[!B&&e.jsx(y,{children:e.jsx(s.default,{color:"white",height:8,width:8})}),C===c.HEADER_TYPES.TEXT?e.jsx(v,{dangerouslySetInnerHTML:{__html:V}}):C!==c.HEADER_TYPES.NONE?e.jsx(f.MediaCard,{headerAssetLink:O,headerAssetName:I,mediaType:C,imagePreviewStyles:C===c.HEADER_TYPES.IMAGE?b:{}}):e.jsx(e.Fragment,{}),(null==R?void 0:R.dateTime)?e.jsx(j.LimitedTimeOffer,{text:R.text,dateTime:R.dateTime,code:R.code}):e.jsx(e.Fragment,{}),!!u&&e.jsx(e.Fragment,{children:e.jsx(g,{dangerouslySetInnerHTML:{__html:U},style:{flex:1}})}),D,!F&&e.jsxs(m.FooterWrapper,{children:[e.jsx(d.Tooltip,Object.assign({body:null!=x?x:"",placement:"top"},{children:e.jsx(m.FooterText,Object.assign({style:{flex:1}},{children:x}))})),e.jsx(m.TimeStamp,{children:"16:48"})]}),N&&N.length>0?N.map((t,r)=>e.jsx(h.ChatBtn,{text:"COPY_CODE"===t.type?"Copy code":t.text,Icon:Q[t.type],size:w,iconPosition:"CALL_PERMISSION"===t.type?"right":"left",textTypography:"CALL_PERMISSION"===t.type?p.TitleSmall:void 0},r)):_===c.ACTIONS_TYPES.QUICK_REPLY?e.jsx("div",{children:null==S?void 0:S.map((t,r)=>e.jsx(h.ChatBtn,{text:t.text},r))}):_===c.ACTIONS_TYPES.CTA_BTN?e.jsx("div",{children:null==L?void 0:L.map((t,r)=>e.jsx(h.ChatBtn,{textTypography:P?p.Caption:p.BodySecondary,extraContent:q?t.extra:void 0,placeholder:t.placeholder,text:t.text,Icon:"phoneNumber"===t.type?i.default:o.default,size:w},r))}):e.jsx(e.Fragment,{})]}))},exports.HtmlContainer=g;
19
+ `,E=new x.VariableEditorHelper;exports.ChatUIV2=l=>{const{bodyText:u,footerText:x,headerMediaType:C,headerText:T,headerAssetLink:O,headerAssetName:I,quickReplybtn:S,ctaBtn:L,actionTypes:_,extras:q,showHeader:P,imagePreviewStyles:b,size:w,bodyVariableList:A,headerVariableList:M,buttons:N,limitedTimeOfferComponent:R,carouselCardIndex:H,isWhatsappCarousel:B,isPreview:Y,children:D,hideFooter:F=!1}=l,U=E.format(null==u?void 0:u.replace(/</g,"&lt;").replace(/>/g,"&gt;"),A),V=E.format(null==T?void 0:T.replace(/</g,"&lt;").replace(/>/g,"&gt;"),M),{selectedCarouselIndex:k,isProductCarouselType:z,errorIndexes:W,isCarouselHovered:K}=n.useTemplateModalContext(),Q={COPY_CODE:r.default,PHONE_NUMBER:i.default,URL:o.default,QUICK_REPLY:a.default,VOICE_CALL:i.default,CALL_PERMISSION:t.default};return e.jsxs(m.Container,Object.assign({isCarouselCard:null!=H&&H>-1,showBorder:null!=H&&H===k||z&&null!=H&&H>-1&&null!=k&&k>-1,hasError:null==W?void 0:W.includes(null!=H?H:-2),isWhatsappCarousel:B,isPreview:Y,showDashedBorder:z&&K&&(null!=k?k:-1)<0&&(null!=H?H:-1)>-1},{children:[!B&&e.jsx(y,{children:e.jsx(s.default,{color:"white",height:8,width:8})}),C===c.HEADER_TYPES.TEXT?e.jsx(v,{dangerouslySetInnerHTML:{__html:V}}):C!==c.HEADER_TYPES.NONE?e.jsx(f.MediaCard,{headerAssetLink:O,headerAssetName:I,mediaType:C,imagePreviewStyles:C===c.HEADER_TYPES.IMAGE?b:{}}):e.jsx(e.Fragment,{}),(null==R?void 0:R.dateTime)?e.jsx(j.LimitedTimeOffer,{text:R.text,dateTime:R.dateTime,code:R.code}):e.jsx(e.Fragment,{}),!!u&&e.jsx(e.Fragment,{children:e.jsx(g,{dangerouslySetInnerHTML:{__html:U},style:{flex:1}})}),D,!F&&e.jsxs(m.FooterWrapper,{children:[e.jsx(d.Tooltip,Object.assign({body:null!=x?x:"",placement:"top"},{children:e.jsx(m.FooterText,Object.assign({style:{flex:1}},{children:x}))})),e.jsx(m.TimeStamp,{children:"16:48"})]}),N&&N.length>0?N.map(((t,r)=>e.jsx(h.ChatBtn,{text:"COPY_CODE"===t.type?"Copy code":t.text,Icon:Q[t.type],size:w,iconPosition:"CALL_PERMISSION"===t.type?"right":"left",textTypography:"CALL_PERMISSION"===t.type?p.TitleSmall:void 0},r))):_===c.ACTIONS_TYPES.QUICK_REPLY?e.jsx("div",{children:null==S?void 0:S.map(((t,r)=>e.jsx(h.ChatBtn,{text:t.text},r)))}):_===c.ACTIONS_TYPES.CTA_BTN?e.jsx("div",{children:null==L?void 0:L.map(((t,r)=>e.jsx(h.ChatBtn,{textTypography:P?p.Caption:p.BodySecondary,extraContent:q?t.extra:void 0,placeholder:t.placeholder,text:t.text,Icon:"phoneNumber"===t.type?i.default:o.default,size:w},r)))}):e.jsx(e.Fragment,{})]}))},exports.HtmlContainer=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../../assets/icons/filePdf.svg.js"),r=require("../../../assets/icons/image.svg.js"),i=require("../../../assets/icons/videoRecorder.svg.js"),t=require("../../shimmer-image/ShimmerImage.js"),a=require("../../TypographyStyle.js"),d=require("../../../constants/Theme.js"),n=require("../models/TemplateMeta.js"),o=require("./ChatUI.style.js");const c=({headerAssetName:t,mediaType:c})=>{const h=c===n.HEADER_TYPES.IMAGE?r.default:c===n.HEADER_TYPES.VIDEO?i.default:s.default;return e.jsxs(o.MediaContainer,{children:[e.jsx(h,{height:40,width:40,color:d.COLORS.icon.placeholder}),!!t&&e.jsx(a.BodySecondary,Object.assign({style:{color:d.COLORS.content.secondary,marginTop:8}},{children:t}))]})};exports.MediaCard=({headerAssetLink:s,headerAssetName:r,mediaType:i,imagePreviewStyles:a})=>{if(!s||i===n.HEADER_TYPES.DOCUMENT)return e.jsx(c,Object.assign({},{headerAssetLink:s,headerAssetName:r,mediaType:i}));return e.jsx(o.MediaContainer,{children:i===n.HEADER_TYPES.IMAGE?e.jsx(t.ShimmerImage,{imageUrl:s,alt:s,width:"100%",height:240,borderRadius:8}):i===n.HEADER_TYPES.VIDEO?e.jsx("video",Object.assign({src:s,style:{width:"100%",minHeight:"240px",height:"240px",borderRadius:8},controls:!0,muted:!0},{children:e.jsx("track",{default:!0,kind:"captions",srcLang:"en",src:s})})):e.jsx(e.Fragment,{})})},exports.NoMediaCard=c;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../../assets/icons/filePdf.svg.js"),r=require("../../../assets/icons/image.svg.js"),i=require("../../../assets/icons/videoRecorder.svg.js"),t=require("../../shimmer-image/ShimmerImage.js"),a=require("../../TypographyStyle.js"),d=require("../../../constants/Theme.js"),n=require("../models/TemplateMeta.js"),o=require("./ChatUI.style.js");const c=t=>{let{headerAssetName:c,mediaType:l}=t;const h=l===n.HEADER_TYPES.IMAGE?r.default:l===n.HEADER_TYPES.VIDEO?i.default:s.default;return e.jsxs(o.MediaContainer,{children:[e.jsx(h,{height:40,width:40,color:d.COLORS.icon.placeholder}),!!c&&e.jsx(a.BodySecondary,Object.assign({style:{color:d.COLORS.content.secondary,marginTop:8}},{children:c}))]})};exports.MediaCard=s=>{let{headerAssetLink:r,headerAssetName:i,mediaType:a,imagePreviewStyles:d}=s;if(!r||a===n.HEADER_TYPES.DOCUMENT)return e.jsx(c,Object.assign({},{headerAssetLink:r,headerAssetName:i,mediaType:a}));return e.jsx(o.MediaContainer,{children:a===n.HEADER_TYPES.IMAGE?e.jsx(t.ShimmerImage,{imageUrl:r,alt:r,width:"100%",height:240,borderRadius:8}):a===n.HEADER_TYPES.VIDEO?e.jsx("video",Object.assign({src:r,style:{width:"100%",minHeight:"240px",height:"240px",borderRadius:8},controls:!0,muted:!0},{children:e.jsx("track",{default:!0,kind:"captions",srcLang:"en",src:r})})):e.jsx(e.Fragment,{})})},exports.NoMediaCard=c;
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("styled-components"),r=require("../../TypographyStyle.js"),n=require("../../../constants/Theme.js"),s=require("../constants/regexPatterns.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const l=a(t).default.div`
2
2
  padding: 8px 12px 0px;
3
3
  /* display: inline; */
4
- `;exports.default=t=>{const{text:a,bold:i}=t,o=null==a?void 0:a.match(s.templateVariablePattern),d=i?{fontWeight:"600"}:{};return a?e.jsx(l,{children:a.split(s.templateVariablePattern).map((t,s)=>e.jsxs(e.Fragment,{children:[e.jsx(r.BodyRegular,Object.assign({style:d},{children:t})),!!(null==o?void 0:o[s])&&e.jsx(r.BodyRegular,Object.assign({style:Object.assign({color:n.COLORS.content.brand},d)},{children:null==o?void 0:o[s]}))]}))}):e.jsx(e.Fragment,{})};
4
+ `;exports.default=t=>{const{text:a,bold:i}=t,o=null==a?void 0:a.match(s.templateVariablePattern),d=i?{fontWeight:"600"}:{};return a?e.jsx(l,{children:a.split(s.templateVariablePattern).map(((t,s)=>e.jsxs(e.Fragment,{children:[e.jsx(r.BodyRegular,Object.assign({style:d},{children:t})),!!(null==o?void 0:o[s])&&e.jsx(r.BodyRegular,Object.assign({style:Object.assign({color:n.COLORS.content.brand},d)},{children:null==o?void 0:o[s]}))]})))}):e.jsx(e.Fragment,{})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),a=require("../template-context-mapper/context/templateModalContext.js"),t=require("./helpers/TemplateCreatorHelper.js"),i=require("./helpers/templateMiscHelper.js"),r=require("./models/TemplateMeta.js"),o=require("./RCS/RCSTemplateLikePreview.js"),n=require("./utils/TemplateHelperUtils.js"),d=require("./WhatsApp/WhatsAppLikePreview.js"),s=require("./WhatsApp/WhatsAppLikePreviewV2.js");exports.default=({template:u,extras:p,containerStyle:v,usePlaceHolderName:h,showHeader:m,zeroStateComponent:x,size:c,showSampleValues:b,carouselCardIndex:T,isWhatsappCarousel:y,isPreview:w,channel:C})=>{var N,P,V,k,j,S,f,L,B,A,g,q,E,F,H,R,O,W,I,M,D,U,z,_,Y,G,J,K,Q,X;const{selectedCarouselIndex:Z,pod:$}=a.useTemplateModalContext(),[ee,le]=l.useState(),ae=new t.TemplateCreatorHelper,te=new n.TemplateHelperUtils,ie=[];if((null===(P=null===(N=null==ee?void 0:ee.ctaBtn)||void 0===N?void 0:N.phoneNumber)||void 0===P?void 0:P.isChecked)&&ie.push({type:"phoneNumber",text:null!==(V=ee.ctaBtn.phoneNumber.btnText)&&void 0!==V?V:"",extra:null!==(k=ee.ctaBtn.phoneNumber.phoneNumber)&&void 0!==k?k:""}),(null===(S=null===(j=null==ee?void 0:ee.ctaBtn)||void 0===j?void 0:j.websiteLinkBtn)||void 0===S?void 0:S.isChecked)&&ie.push({type:"website",text:null!==(f=ee.ctaBtn.websiteLinkBtn.btnText)&&void 0!==f?f:"",extra:null!==(B=null===(L=ee.ctaBtn.websiteLinkBtn)||void 0===L?void 0:L.linkOpens)&&void 0!==B?B:"",placeholder:null!==(A=ee.ctaBtn.websiteLinkBtn.placeholder)&&void 0!==A?A:""}),l.useEffect(()=>{u&&ae.parseUITemplateFromDBFormat({dbFormattedTemplate:u,isDuplicate:!1,showSampleValues:b,isV2:!u.htmlContentUrl,pod:$}).then(e=>{le(Object.assign({},e))})},[u,b]),l.useEffect(()=>{u&&ae.parseUITemplateFromDBFormat({dbFormattedTemplate:u,isDuplicate:!1,showSampleValues:b,isV2:!u.htmlContentUrl,pod:$}).then(e=>{le(Object.assign({},e))})},[Z]),!u)return e.jsx(e.Fragment,{children:x});if(i.isRCSChannel(C||(null==u?void 0:u.channel))){const l=ae.parseTemplateConfiguration(u);return e.jsx(o.RCSTemplateLikePreview,{showHeader:m,containerPadding:"large"===c?"16px 36px 12px 16px":"12px 36px 12px 12px",containerStyle:v,textType:"html",bodyText:null==ee?void 0:ee.bodyText,titleText:null==ee?void 0:ee.titleText,footerText:null==ee?void 0:ee.footerText,headerMediaType:(null==ee?void 0:ee.headerType)||r.HEADER_TYPES.NONE,headerText:null==ee?void 0:ee.headerText,headerAssetLink:null!==(g=null==ee?void 0:ee.headerAssetLink)&&void 0!==g?g:"",headerAssetName:null!==(q=null==ee?void 0:ee.headerAssetName)&&void 0!==q?q:"",quickReplybtn:null==ee?void 0:ee.quickReply,ctaBtn:ie,actionTypes:null==ee?void 0:ee.actionsType,extras:p,hidePreviewText:!0,imagePreviewStyles:{objectFit:"cover"},carouselCardIndex:T,zeroStateComponent:null!=x?x:e.jsx(e.Fragment,{children:" "}),bodyVariableList:null!==(F=null===(E=null==ee?void 0:ee.bodyVariables)||void 0===E?void 0:E.map(e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}}))&&void 0!==F?F:[],headerVariableList:null!==(R=null===(H=null==ee?void 0:ee.headerVariables)||void 0===H?void 0:H.map(e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}}))&&void 0!==R?R:[],titleVariableList:null!==(W=null===(O=null==ee?void 0:ee.titleVariables)||void 0===O?void 0:O.map(e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}}))&&void 0!==W?W:[],buttons:null==ee?void 0:ee.allButtons,isWhatsappCarousel:y,isPreview:w,templateConfiguration:l})}return u.htmlContentUrl?e.jsx(d.WhatsappLikePreview,{showHeader:m,containerPadding:"large"===c?"16px 56px 12px 16px":"12px 56px 12px 12px",containerStyle:v,textType:"html",bodyText:te.whatsappOnlyFillVariablesValueInBodyText(null!==(Y=null==ee?void 0:ee.bodyText)&&void 0!==Y?Y:"",null!==(G=null==ee?void 0:ee.bodyVariables)&&void 0!==G?G:[],h),footerText:null==ee?void 0:ee.footerText,headerMediaType:(null==ee?void 0:ee.headerType)||r.HEADER_TYPES.NONE,headerText:te.fillVariablesValInBodyText(null!==(J=null==ee?void 0:ee.headerText)&&void 0!==J?J:"",null!==(K=null==ee?void 0:ee.headerVariables)&&void 0!==K?K:[],h),headerAssetLink:null!==(Q=null==ee?void 0:ee.headerAssetLink)&&void 0!==Q?Q:"",headerAssetName:null!==(X=null==ee?void 0:ee.headerAssetName)&&void 0!==X?X:"",quickReplybtn:null==ee?void 0:ee.quickReply,ctaBtn:ie,actionTypes:null==ee?void 0:ee.actionsType,extras:p,hidePreviewText:!0,imagePreviewStyles:{objectFit:"cover"},zeroStateComponent:null!=x?x:e.jsx(e.Fragment,{children:" "}),isPreview:w}):e.jsx(s.WhatsappLikePreviewV2,{showHeader:m,containerPadding:"large"===c?"16px 56px 12px 16px":"12px 56px 12px 12px",containerStyle:v,textType:"html",bodyText:null==ee?void 0:ee.bodyText,footerText:null==ee?void 0:ee.footerText,headerMediaType:(null==ee?void 0:ee.headerType)||r.HEADER_TYPES.NONE,headerText:null==ee?void 0:ee.headerText,headerAssetLink:null!==(I=null==ee?void 0:ee.headerAssetLink)&&void 0!==I?I:"",headerAssetName:null!==(M=null==ee?void 0:ee.headerAssetName)&&void 0!==M?M:"",quickReplybtn:null==ee?void 0:ee.quickReply,ctaBtn:ie,actionTypes:null==ee?void 0:ee.actionsType,extras:p,hidePreviewText:!0,imagePreviewStyles:{objectFit:"cover"},carouselCardIndex:T,zeroStateComponent:null!=x?x:e.jsx(e.Fragment,{children:" "}),bodyVariableList:null!==(U=null===(D=null==ee?void 0:ee.bodyVariables)||void 0===D?void 0:D.map(e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}}))&&void 0!==U?U:[],headerVariableList:null!==(_=null===(z=null==ee?void 0:ee.headerVariables)||void 0===z?void 0:z.map(e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}}))&&void 0!==_?_:[],buttons:null==ee?void 0:ee.allButtons,limitedTimeOfferComponent:null==ee?void 0:ee.limitedTimeOfferComponent,isWhatsappCarousel:y,isPreview:w,showCallPermissionCard:null==ee?void 0:ee.showCallPermissionCard,callPermissionText:null==ee?void 0:ee.callPermissionText})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),a=require("../template-context-mapper/context/templateModalContext.js"),t=require("./helpers/TemplateCreatorHelper.js"),i=require("./helpers/templateMiscHelper.js"),r=require("./models/TemplateMeta.js"),o=require("./RCS/RCSTemplateLikePreview.js"),n=require("./utils/TemplateHelperUtils.js"),d=require("./WhatsApp/WhatsAppLikePreview.js"),s=require("./WhatsApp/WhatsAppLikePreviewV2.js");exports.default=u=>{let{template:p,extras:v,containerStyle:h,usePlaceHolderName:m,showHeader:x,zeroStateComponent:c,size:b,showSampleValues:T,carouselCardIndex:y,isWhatsappCarousel:w,isPreview:C,channel:N}=u;var P,V,k,j,S,f,L,B,A,g,q,E,F,H,R,O,W,I,M,D,U,z,_,Y,G,J,K,Q,X,Z;const{selectedCarouselIndex:$,pod:ee}=a.useTemplateModalContext(),[le,ae]=l.useState(),te=new t.TemplateCreatorHelper,ie=new n.TemplateHelperUtils,re=[];if((null===(V=null===(P=null==le?void 0:le.ctaBtn)||void 0===P?void 0:P.phoneNumber)||void 0===V?void 0:V.isChecked)&&re.push({type:"phoneNumber",text:null!==(k=le.ctaBtn.phoneNumber.btnText)&&void 0!==k?k:"",extra:null!==(j=le.ctaBtn.phoneNumber.phoneNumber)&&void 0!==j?j:""}),(null===(f=null===(S=null==le?void 0:le.ctaBtn)||void 0===S?void 0:S.websiteLinkBtn)||void 0===f?void 0:f.isChecked)&&re.push({type:"website",text:null!==(L=le.ctaBtn.websiteLinkBtn.btnText)&&void 0!==L?L:"",extra:null!==(A=null===(B=le.ctaBtn.websiteLinkBtn)||void 0===B?void 0:B.linkOpens)&&void 0!==A?A:"",placeholder:null!==(g=le.ctaBtn.websiteLinkBtn.placeholder)&&void 0!==g?g:""}),l.useEffect((()=>{p&&te.parseUITemplateFromDBFormat({dbFormattedTemplate:p,isDuplicate:!1,showSampleValues:T,isV2:!p.htmlContentUrl,pod:ee}).then((e=>{ae(Object.assign({},e))}))}),[p,T]),l.useEffect((()=>{p&&te.parseUITemplateFromDBFormat({dbFormattedTemplate:p,isDuplicate:!1,showSampleValues:T,isV2:!p.htmlContentUrl,pod:ee}).then((e=>{ae(Object.assign({},e))}))}),[$]),!p)return e.jsx(e.Fragment,{children:c});if(i.isRCSChannel(N||(null==p?void 0:p.channel))){const l=te.parseTemplateConfiguration(p);return e.jsx(o.RCSTemplateLikePreview,{showHeader:x,containerPadding:"large"===b?"16px 36px 12px 16px":"12px 36px 12px 12px",containerStyle:h,textType:"html",bodyText:null==le?void 0:le.bodyText,titleText:null==le?void 0:le.titleText,footerText:null==le?void 0:le.footerText,headerMediaType:(null==le?void 0:le.headerType)||r.HEADER_TYPES.NONE,headerText:null==le?void 0:le.headerText,headerAssetLink:null!==(q=null==le?void 0:le.headerAssetLink)&&void 0!==q?q:"",headerAssetName:null!==(E=null==le?void 0:le.headerAssetName)&&void 0!==E?E:"",quickReplybtn:null==le?void 0:le.quickReply,ctaBtn:re,actionTypes:null==le?void 0:le.actionsType,extras:v,hidePreviewText:!0,imagePreviewStyles:{objectFit:"cover"},carouselCardIndex:y,zeroStateComponent:null!=c?c:e.jsx(e.Fragment,{children:" "}),bodyVariableList:null!==(H=null===(F=null==le?void 0:le.bodyVariables)||void 0===F?void 0:F.map((e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}})))&&void 0!==H?H:[],headerVariableList:null!==(O=null===(R=null==le?void 0:le.headerVariables)||void 0===R?void 0:R.map((e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}})))&&void 0!==O?O:[],titleVariableList:null!==(I=null===(W=null==le?void 0:le.titleVariables)||void 0===W?void 0:W.map((e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}})))&&void 0!==I?I:[],buttons:null==le?void 0:le.allButtons,isWhatsappCarousel:w,isPreview:C,templateConfiguration:l})}return p.htmlContentUrl?e.jsx(d.WhatsappLikePreview,{showHeader:x,containerPadding:"large"===b?"16px 56px 12px 16px":"12px 56px 12px 12px",containerStyle:h,textType:"html",bodyText:ie.whatsappOnlyFillVariablesValueInBodyText(null!==(G=null==le?void 0:le.bodyText)&&void 0!==G?G:"",null!==(J=null==le?void 0:le.bodyVariables)&&void 0!==J?J:[],m),footerText:null==le?void 0:le.footerText,headerMediaType:(null==le?void 0:le.headerType)||r.HEADER_TYPES.NONE,headerText:ie.fillVariablesValInBodyText(null!==(K=null==le?void 0:le.headerText)&&void 0!==K?K:"",null!==(Q=null==le?void 0:le.headerVariables)&&void 0!==Q?Q:[],m),headerAssetLink:null!==(X=null==le?void 0:le.headerAssetLink)&&void 0!==X?X:"",headerAssetName:null!==(Z=null==le?void 0:le.headerAssetName)&&void 0!==Z?Z:"",quickReplybtn:null==le?void 0:le.quickReply,ctaBtn:re,actionTypes:null==le?void 0:le.actionsType,extras:v,hidePreviewText:!0,imagePreviewStyles:{objectFit:"cover"},zeroStateComponent:null!=c?c:e.jsx(e.Fragment,{children:" "}),isPreview:C}):e.jsx(s.WhatsappLikePreviewV2,{showHeader:x,containerPadding:"large"===b?"16px 56px 12px 16px":"12px 56px 12px 12px",containerStyle:h,textType:"html",bodyText:null==le?void 0:le.bodyText,footerText:null==le?void 0:le.footerText,headerMediaType:(null==le?void 0:le.headerType)||r.HEADER_TYPES.NONE,headerText:null==le?void 0:le.headerText,headerAssetLink:null!==(M=null==le?void 0:le.headerAssetLink)&&void 0!==M?M:"",headerAssetName:null!==(D=null==le?void 0:le.headerAssetName)&&void 0!==D?D:"",quickReplybtn:null==le?void 0:le.quickReply,ctaBtn:re,actionTypes:null==le?void 0:le.actionsType,extras:v,hidePreviewText:!0,imagePreviewStyles:{objectFit:"cover"},carouselCardIndex:y,zeroStateComponent:null!=c?c:e.jsx(e.Fragment,{children:" "}),bodyVariableList:null!==(z=null===(U=null==le?void 0:le.bodyVariables)||void 0===U?void 0:U.map((e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}})))&&void 0!==z?z:[],headerVariableList:null!==(Y=null===(_=null==le?void 0:le.headerVariables)||void 0===_?void 0:_.map((e=>{var l;return{placeholder:e.variableName,value:null!==(l=e.variableVal)&&void 0!==l?l:e.variableName}})))&&void 0!==Y?Y:[],buttons:null==le?void 0:le.allButtons,limitedTimeOfferComponent:null==le?void 0:le.limitedTimeOfferComponent,isWhatsappCarousel:w,isPreview:C,showCallPermissionCard:null==le?void 0:le.showCallPermissionCard,callPermissionText:null==le?void 0:le.callPermissionText})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../constants/Theme.js"),r=require("../constants/regexPatterns.js");exports.renderVariableUIForPreview=(a,n,t=e.COLORS.content.brand,l)=>{const o=(null==n?void 0:n.length)?null==n?void 0:n.map(e=>e.updatedValue):a.match(r.variablePatternGlobal);return r.variablePatternGlobal.lastIndex=0,a.split(r.variablePattern).map((e,r)=>{var a;return(null==o?void 0:o[r])?`${e}<span></span><span id="${l||""}connectors_variable_${r+1}" style="color: ${t}; text-decoration: underline; word-break: break-word;">${null!==(a=null==o?void 0:o[r])&&void 0!==a?a:""}</span><span> </span>`:e}).join("")};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../constants/Theme.js"),n=require("../constants/regexPatterns.js");exports.renderVariableUIForPreview=function(r,a){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.COLORS.content.brand,l=arguments.length>3?arguments[3]:void 0;const o=(null==a?void 0:a.length)?null==a?void 0:a.map((e=>e.updatedValue)):r.match(n.variablePatternGlobal);return n.variablePatternGlobal.lastIndex=0,r.split(n.variablePattern).map(((e,n)=>{var r;return(null==o?void 0:o[n])?`${e}<span></span><span id="${l||""}connectors_variable_${n+1}" style="color: ${t}; text-decoration: underline; word-break: break-word;">${null!==(r=null==o?void 0:o[n])&&void 0!==r?r:""}</span><span> </span>`:e})).join("")};