@bikdotai/bik-component-library 0.0.736-beta.10 → 0.0.736-beta.3

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 (847) hide show
  1. package/dist/cjs/_virtual/_tslib.js +1 -1
  2. package/dist/cjs/amplitude/Track.stories.d.ts +4 -0
  3. package/dist/cjs/amplitude/index.js +1 -1
  4. package/dist/cjs/assets/icons/AiEdit.svg.js +1 -1
  5. package/dist/cjs/assets/icons/Ai_event_generating.svg.js +1 -1
  6. package/dist/cjs/assets/icons/Bik_logo.svg.js +1 -1
  7. package/dist/cjs/assets/icons/ChartBar.svg.js +1 -1
  8. package/dist/cjs/assets/icons/ChartPie.svg.js +1 -1
  9. package/dist/cjs/assets/icons/HelpIcon.svg.js +1 -1
  10. package/dist/cjs/assets/icons/Idea.svg.js +1 -1
  11. package/dist/cjs/assets/icons/RCS_PDF.svg.js +1 -1
  12. package/dist/cjs/assets/icons/RedirectToNew.svg.js +1 -1
  13. package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +1 -1
  14. package/dist/cjs/assets/icons/aiContentIcon.svg.js +1 -1
  15. package/dist/cjs/assets/icons/alert.svg.js +1 -1
  16. package/dist/cjs/assets/icons/alert_triangle.svg.js +1 -1
  17. package/dist/cjs/assets/icons/arrow_back.svg.js +1 -1
  18. package/dist/cjs/assets/icons/arrow_down.svg.js +1 -1
  19. package/dist/cjs/assets/icons/arrow_left.svg.js +1 -1
  20. package/dist/cjs/assets/icons/arrow_up.svg.js +1 -1
  21. package/dist/cjs/assets/icons/back_icon.svg.js +1 -1
  22. package/dist/cjs/assets/icons/bik_livechat.svg.js +1 -1
  23. package/dist/cjs/assets/icons/bold.svg.js +1 -1
  24. package/dist/cjs/assets/icons/box.svg.js +1 -1
  25. package/dist/cjs/assets/icons/boxV2.svg.js +1 -1
  26. package/dist/cjs/assets/icons/box_round.svg.js +1 -1
  27. package/dist/cjs/assets/icons/box_search.svg.js +1 -1
  28. package/dist/cjs/assets/icons/broken_media_image.svg.js +1 -1
  29. package/dist/cjs/assets/icons/calendar.svg.js +1 -1
  30. package/dist/cjs/assets/icons/card_footer_arraw.svg.js +1 -1
  31. package/dist/cjs/assets/icons/chat-channel.svg.js +1 -1
  32. package/dist/cjs/assets/icons/check.svg.js +1 -1
  33. package/dist/cjs/assets/icons/checkCircle.svg.js +1 -1
  34. package/dist/cjs/assets/icons/checklistIcon.svg.js +1 -1
  35. package/dist/cjs/assets/icons/chevronDown.svg.js +1 -1
  36. package/dist/cjs/assets/icons/chevronDownOutline.svg.js +1 -1
  37. package/dist/cjs/assets/icons/chevronLeft.svg.js +1 -1
  38. package/dist/cjs/assets/icons/chevronLeft2.svg.js +1 -1
  39. package/dist/cjs/assets/icons/chevronRight.svg.js +1 -1
  40. package/dist/cjs/assets/icons/chevronRight2.svg.js +1 -1
  41. package/dist/cjs/assets/icons/chevronRightAlt.svg.js +1 -1
  42. package/dist/cjs/assets/icons/chevronUpOutline.svg.js +1 -1
  43. package/dist/cjs/assets/icons/click.svg.js +1 -1
  44. package/dist/cjs/assets/icons/clock.svg.js +1 -1
  45. package/dist/cjs/assets/icons/copy-code-icon.svg.js +1 -1
  46. package/dist/cjs/assets/icons/cross.svg.js +1 -1
  47. package/dist/cjs/assets/icons/cubeIcon.svg.js +1 -1
  48. package/dist/cjs/assets/icons/cursor.svg.js +1 -1
  49. package/dist/cjs/assets/icons/delete.svg.js +1 -1
  50. package/dist/cjs/assets/icons/desktop_custom.svg.js +1 -1
  51. package/dist/cjs/assets/icons/document_pdf.svg.js +1 -1
  52. package/dist/cjs/assets/icons/drag_handle.svg.js +1 -1
  53. package/dist/cjs/assets/icons/edit.svg.js +1 -1
  54. package/dist/cjs/assets/icons/email-channel.svg.js +1 -1
  55. package/dist/cjs/assets/icons/emoji.svg.js +1 -1
  56. package/dist/cjs/assets/icons/errorIcon.svg.js +1 -1
  57. package/dist/cjs/assets/icons/errorInfo.svg.js +1 -1
  58. package/dist/cjs/assets/icons/expressionless_emoji.svg.js +1 -1
  59. package/dist/cjs/assets/icons/facebook_channel.svg.js +1 -1
  60. package/dist/cjs/assets/icons/file.svg.js +1 -1
  61. package/dist/cjs/assets/icons/filePdf.svg.js +1 -1
  62. package/dist/cjs/assets/icons/gift_icon.svg.js +1 -1
  63. package/dist/cjs/assets/icons/gmail.svg.js +1 -1
  64. package/dist/cjs/assets/icons/graph.svg.js +1 -1
  65. package/dist/cjs/assets/icons/halfRectangle.svg.js +1 -1
  66. package/dist/cjs/assets/icons/help.svg.js +1 -1
  67. package/dist/cjs/assets/icons/horizontal_dots.svg.js +1 -1
  68. package/dist/cjs/assets/icons/image.svg.js +1 -1
  69. package/dist/cjs/assets/icons/info.svg.js +1 -1
  70. package/dist/cjs/assets/icons/instagram-channel.svg.js +1 -1
  71. package/dist/cjs/assets/icons/instagram.svg.js +1 -1
  72. package/dist/cjs/assets/icons/italic.svg.js +1 -1
  73. package/dist/cjs/assets/icons/locked.svg.js +1 -1
  74. package/dist/cjs/assets/icons/log_out.svg.js +1 -1
  75. package/dist/cjs/assets/icons/lto_icon.svg.js +1 -1
  76. package/dist/cjs/assets/icons/maximize.svg.js +1 -1
  77. package/dist/cjs/assets/icons/mobile_custom.svg.js +1 -1
  78. package/dist/cjs/assets/icons/more_vertical.svg.js +1 -1
  79. package/dist/cjs/assets/icons/openai.svg.js +1 -1
  80. package/dist/cjs/assets/icons/percentage_icon.svg.js +1 -1
  81. package/dist/cjs/assets/icons/phone.svg.js +1 -1
  82. package/dist/cjs/assets/icons/phone_round.svg.js +1 -1
  83. package/dist/cjs/assets/icons/plus.svg.js +1 -1
  84. package/dist/cjs/assets/icons/qrb.svg.js +1 -1
  85. package/dist/cjs/assets/icons/question-mark.svg.js +1 -1
  86. package/dist/cjs/assets/icons/quotes.svg.js +1 -1
  87. package/dist/cjs/assets/icons/redirect.svg.js +1 -1
  88. package/dist/cjs/assets/icons/refresh.svg.js +1 -1
  89. package/dist/cjs/assets/icons/retryIcon.svg.js +1 -1
  90. package/dist/cjs/assets/icons/sad_emoji.svg.js +1 -1
  91. package/dist/cjs/assets/icons/search.svg.js +1 -1
  92. package/dist/cjs/assets/icons/searchIcon.svg.js +1 -1
  93. package/dist/cjs/assets/icons/send_template.svg.js +1 -1
  94. package/dist/cjs/assets/icons/shipping_icon.svg.js +1 -1
  95. package/dist/cjs/assets/icons/similar.svg.js +1 -1
  96. package/dist/cjs/assets/icons/smiley_emoji.svg.js +1 -1
  97. package/dist/cjs/assets/icons/sparkle.svg.js +1 -1
  98. package/dist/cjs/assets/icons/speedometer.svg.js +1 -1
  99. package/dist/cjs/assets/icons/starEmpty.svg.js +1 -1
  100. package/dist/cjs/assets/icons/starFilled.svg.js +1 -1
  101. package/dist/cjs/assets/icons/starFilledV2.svg.js +1 -1
  102. package/dist/cjs/assets/icons/state_icon.svg.js +1 -1
  103. package/dist/cjs/assets/icons/strikeThrough.svg.js +1 -1
  104. package/dist/cjs/assets/icons/sub_category.svg.js +1 -1
  105. package/dist/cjs/assets/icons/successIcon.svg.js +1 -1
  106. package/dist/cjs/assets/icons/sync.svg.js +1 -1
  107. package/dist/cjs/assets/icons/task.svg.js +1 -1
  108. package/dist/cjs/assets/icons/text_t9.svg.js +1 -1
  109. package/dist/cjs/assets/icons/tick.svg.js +1 -1
  110. package/dist/cjs/assets/icons/tick_double.svg.js +1 -1
  111. package/dist/cjs/assets/icons/triangle_error.svg.js +1 -1
  112. package/dist/cjs/assets/icons/undo.svg.js +1 -1
  113. package/dist/cjs/assets/icons/union.svg.js +1 -1
  114. package/dist/cjs/assets/icons/upload.svg.js +1 -1
  115. package/dist/cjs/assets/icons/user_icon.svg.js +1 -1
  116. package/dist/cjs/assets/icons/vertical_dots.svg.js +1 -1
  117. package/dist/cjs/assets/icons/videoRecorder.svg.js +1 -1
  118. package/dist/cjs/assets/icons/warning.svg.js +1 -1
  119. package/dist/cjs/assets/icons/warningIcon.svg.js +1 -1
  120. package/dist/cjs/assets/icons/website.svg.js +1 -1
  121. package/dist/cjs/assets/icons/whatsNew.svg.js +1 -1
  122. package/dist/cjs/assets/icons/whatsapp-channel.svg.js +1 -1
  123. package/dist/cjs/assets/icons/whatsapp_color.svg.js +1 -1
  124. package/dist/cjs/components/InfiniteScroll/InfiniteScroll.js +1 -1
  125. package/dist/cjs/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  126. package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  127. package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  128. package/dist/cjs/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  129. package/dist/cjs/components/QueryBuilder/QueryBuilder.js +1 -1
  130. package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.js +1 -1
  131. package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  132. package/dist/cjs/components/QueryBuilder/components/AddNodeButton.js +1 -1
  133. package/dist/cjs/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
  134. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +3 -6
  135. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
  136. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +1 -1
  137. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.js +1 -1
  138. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  139. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  140. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
  141. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
  142. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
  143. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  144. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
  145. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  146. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
  147. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
  148. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
  149. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  150. package/dist/cjs/components/QueryBuilder/components/DeleteButton.js +1 -1
  151. package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js +1 -1
  152. package/dist/cjs/components/QueryBuilder/components/InputLoader.js +1 -1
  153. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
  154. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
  155. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
  156. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -1
  157. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  158. package/dist/cjs/components/QueryBuilder/helpers/ApiResponse.helper.js +1 -1
  159. package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.js +1 -1
  160. package/dist/cjs/components/QueryBuilder/hooks/useQueryBuilderCache.js +1 -1
  161. package/dist/cjs/components/QueryBuilder/redux/queryBuilder.reducer.js +1 -1
  162. package/dist/cjs/components/QueryBuilder/redux/selectors/useQueryBuilderCacheSelector.js +1 -1
  163. package/dist/cjs/components/SearchFilter/components/DatePickerButton.js +1 -1
  164. package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js +1 -1
  165. package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  166. package/dist/cjs/components/SearchFilter/index.js +1 -1
  167. package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
  168. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
  169. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +2 -2
  170. package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
  171. package/dist/cjs/components/accordion/Accordion.js +1 -1
  172. package/dist/cjs/components/accordion/Accordion.style.js +1 -1
  173. package/dist/cjs/components/accordion/AccordionArrow.js +1 -1
  174. package/dist/cjs/components/action-button/ActionButton.styled.js +1 -1
  175. package/dist/cjs/components/action-button/ActionButtons.js +1 -1
  176. package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
  177. package/dist/cjs/components/ai-modals/ActivateBikAI.js +1 -1
  178. package/dist/cjs/components/ai-modals/AiCreditsExhausted.js +1 -1
  179. package/dist/cjs/components/ai-modals/AiCreditsLow.js +1 -1
  180. package/dist/cjs/components/ai-modals/AiSyncProgress.js +1 -1
  181. package/dist/cjs/components/analytics-card/AnalyticsCard.js +1 -1
  182. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  183. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
  184. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
  185. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  186. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  187. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +2 -2
  188. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
  189. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +1 -1
  190. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +2 -2
  191. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  192. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.js +1 -1
  193. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -1
  194. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
  195. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
  196. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  197. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  198. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +1 -1
  199. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
  200. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -1
  201. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -1
  202. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -1
  203. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +8 -8
  204. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +1 -1
  205. package/dist/cjs/components/avatar/Avatar.js +1 -1
  206. package/dist/cjs/components/banner/BannerInline.js +1 -1
  207. package/dist/cjs/components/banner/CardBanner.js +1 -1
  208. package/dist/cjs/components/bik-chatbot/components/AIChat.js +1 -1
  209. package/dist/cjs/components/bik-chatbot/components/BIKChatbot.js +1 -1
  210. package/dist/cjs/components/bik-chatbot/components/ChatLoadingState.js +1 -1
  211. package/dist/cjs/components/bik-chatbot/components/ChatWindow.js +1 -1
  212. package/dist/cjs/components/bik-chatbot/components/ThinkingIndicator.js +1 -1
  213. package/dist/cjs/components/bik-chatbot/contexts/AIContext.js +1 -1
  214. package/dist/cjs/components/bik-chatbot/services/aiService.js +1 -1
  215. package/dist/cjs/components/bik-chatbot/services/callToChatbot.js +1 -1
  216. package/dist/cjs/components/bik-chatbot/services/db.js +1 -1
  217. package/dist/cjs/components/bik-chatbot/services/useAIChat.js +1 -1
  218. package/dist/cjs/components/bik-chatbot/utils/markdown.js +1 -1
  219. package/dist/cjs/components/bik-layout/BikProfile.js +1 -1
  220. package/dist/cjs/components/bik-layout/BikSidebar.js +1 -1
  221. package/dist/cjs/components/bik-layout/SidebarPopup.js +1 -1
  222. package/dist/cjs/components/bik-layout/SidebarSkeleton.js +1 -1
  223. package/dist/cjs/components/bik-layout/SimpleSidebar.js +1 -1
  224. package/dist/cjs/components/button/Button.js +1 -1
  225. package/dist/cjs/components/button/Button.styled.js +1 -1
  226. package/dist/cjs/components/button/themes.js +1 -1
  227. package/dist/cjs/components/buttonGroup/ButtonGroup.js +1 -1
  228. package/dist/cjs/components/card-selection-modal/CardSelectionModal.js +1 -1
  229. package/dist/cjs/components/card-selector/CardSelectorGroup.js +1 -1
  230. package/dist/cjs/components/carousel-preview/CarouselPreview.js +1 -1
  231. package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js +1 -1
  232. package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
  233. package/dist/cjs/components/checkBox/CheckBox.js +1 -1
  234. package/dist/cjs/components/checkList/CheckList.js +1 -1
  235. package/dist/cjs/components/code-block/CodeBlock.js +1 -1
  236. package/dist/cjs/components/code-block/CodeBlock.styled.js +33 -33
  237. package/dist/cjs/components/code-block/CodeBlockHelper.js +1 -1
  238. package/dist/cjs/components/country-code-picker/CountryCodePicker.js +1 -1
  239. package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
  240. package/dist/cjs/components/custom-date-time/CustomDateTime.styled.js +1 -0
  241. package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  242. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  243. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.js +1 -1
  244. package/dist/cjs/components/dashboard-review-popup/components/Form.js +1 -1
  245. package/dist/cjs/components/dashboard-review-popup/components/ZeroState.js +1 -1
  246. package/dist/cjs/components/data-source-panel/DataSourceInfoFooter.js +1 -1
  247. package/dist/cjs/components/data-source-panel/DataSourcePanel.js +1 -1
  248. package/dist/cjs/components/data-source-panel/Modals/DescriptionModal.js +1 -1
  249. package/dist/cjs/components/datePicker/DatePicker.js +1 -1
  250. package/dist/cjs/components/datePicker/DatePickerWrapper.js +1 -1
  251. package/dist/cjs/components/datePicker/TimePicker.js +1 -1
  252. package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  253. package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
  254. package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
  255. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  256. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +6 -6
  257. package/dist/cjs/components/dot-pulse/DotPulse.js +2 -2
  258. package/dist/cjs/components/dropShadow/DropShadow.js +1 -1
  259. package/dist/cjs/components/dropdown/ChipInput.js +1 -1
  260. package/dist/cjs/components/dropdown/Dropdown.js +1 -1
  261. package/dist/cjs/components/dropdown/DropdownPopover/index.js +1 -1
  262. package/dist/cjs/components/dropdown/MenuItem/MenuItem.js +1 -1
  263. package/dist/cjs/components/dropdown/MultilevelDropdownPopover/index.js +1 -1
  264. package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  265. package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
  266. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
  267. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +5 -5
  268. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  269. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
  270. package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
  271. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
  272. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
  273. package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
  274. package/dist/cjs/components/dropdown/hooks/useDropdown.js +1 -1
  275. package/dist/cjs/components/dynamic-tabs/DynamicTabs.js +1 -1
  276. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  277. package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js +1 -1
  278. package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js +1 -1
  279. package/dist/cjs/components/feature-announcements/VideoModal.js +1 -1
  280. package/dist/cjs/components/feature-announcements/hooks/useFeatureAnnouncements.js +1 -1
  281. package/dist/cjs/components/feature-announcements/utils/animationHelpers.js +1 -1
  282. package/dist/cjs/components/feature-announcements/utils/elementHelpers.js +1 -1
  283. package/dist/cjs/components/file-uploader/FileUploader.js +1 -1
  284. package/dist/cjs/components/floater/floater.js +1 -1
  285. package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.js +4 -4
  286. package/dist/cjs/components/icon-button/IconButton.js +1 -1
  287. package/dist/cjs/components/icon-button/IconButton.styled.js +1 -1
  288. package/dist/cjs/components/image-compress/ImageCompress.js +1 -1
  289. package/dist/cjs/components/image-cropper/BikImageCropper.js +1 -1
  290. package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
  291. package/dist/cjs/components/input/ChipInput.js +1 -1
  292. package/dist/cjs/components/input/ChipInput.styled.js +1 -146
  293. package/dist/cjs/components/input/Input-helper.js +1 -1
  294. package/dist/cjs/components/input/Input.js +1 -1
  295. package/dist/cjs/components/input/Input.styled.js +1 -1
  296. package/dist/cjs/components/input-with-vars/InputWithVariables.js +1 -1
  297. package/dist/cjs/components/keywords-input/KeywordsInput.js +1 -1
  298. package/dist/cjs/components/list-item/ListItem.js +1 -1
  299. package/dist/cjs/components/markdown/index.js +1 -1
  300. package/dist/cjs/components/modals/Modal.js +1 -1
  301. package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.js +1 -1
  302. package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -1
  303. package/dist/cjs/components/multi-level-dropdown/MenuList.js +1 -1
  304. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  305. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.styled.js +20 -20
  306. package/dist/cjs/components/pagination/Pagination.js +1 -1
  307. package/dist/cjs/components/plans/NewSubscriptionPlan.js +1 -1
  308. package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
  309. package/dist/cjs/components/plans/SubscriptionPlanSelector.js +1 -1
  310. package/dist/cjs/components/plans/SubscriptionPlansCollected.js +1 -1
  311. package/dist/cjs/components/postPicker/postPicker.js +1 -1
  312. package/dist/cjs/components/product-picker/ProductPickerModal.js +1 -1
  313. package/dist/cjs/components/product-picker-v2/ProductPickerShimmer.js +1 -1
  314. package/dist/cjs/components/product-picker-v2/collectionScreen.js +1 -1
  315. package/dist/cjs/components/product-picker-v2/emptyState.js +1 -1
  316. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +1 -1
  317. package/dist/cjs/components/product-picker-v2/modal.js +1 -1
  318. package/dist/cjs/components/product-picker-v2/product.js +1 -1
  319. package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
  320. package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +1 -1
  321. package/dist/cjs/components/product-picker-v2/searchScreen.js +1 -1
  322. package/dist/cjs/components/product-picker-v2/selectedScreen.js +1 -1
  323. package/dist/cjs/components/product-picker-v2/utility.js +1 -1
  324. package/dist/cjs/components/product-picker-v2/variantComponents.js +1 -1
  325. package/dist/cjs/components/progress-bar/CircularProgressBar.js +1 -1
  326. package/dist/cjs/components/progress-bar/ProgressBarComponent.js +1 -1
  327. package/dist/cjs/components/radioButton/RadioButton.js +1 -1
  328. package/dist/cjs/components/radioList/RadioList.js +1 -1
  329. package/dist/cjs/components/resizeImage/index.js +1 -1
  330. package/dist/cjs/components/searchBar/searchBar.js +1 -1
  331. package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
  332. package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
  333. package/dist/cjs/components/side-modal/SideModal.style.js +16 -16
  334. package/dist/cjs/components/slider/slider.js +1 -1
  335. package/dist/cjs/components/spinner/Spinner.js +1 -1
  336. package/dist/cjs/components/star-rating/Star.js +1 -1
  337. package/dist/cjs/components/star-rating/StarRating.js +1 -1
  338. package/dist/cjs/components/states/ShopifyScopeWrapper.js +1 -1
  339. package/dist/cjs/components/stepper/Stepper.js +1 -1
  340. package/dist/cjs/components/switch/Switch.js +1 -1
  341. package/dist/cjs/components/tabs/Tabs.js +1 -1
  342. package/dist/cjs/components/tag/Tag.js +1 -1
  343. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
  344. package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -1
  345. package/dist/cjs/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
  346. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +1 -1
  347. package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
  348. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  349. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  350. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  351. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  352. package/dist/cjs/components/template-context-mapper/modalElements/Footer.js +1 -1
  353. package/dist/cjs/components/template-context-mapper/modalElements/Header.js +1 -1
  354. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +1 -1
  355. package/dist/cjs/components/template-context-mapper/modalElements/QueryParamsComponent.js +1 -1
  356. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
  357. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -1
  358. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  359. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +1 -1
  360. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  361. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +1 -1
  362. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +2 -2
  363. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  364. package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  365. package/dist/cjs/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.js +1 -1
  366. package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
  367. package/dist/cjs/components/template-context-mapper/utils/highlightFor.js +1 -1
  368. package/dist/cjs/components/template-context-mapper/utils/validateName.js +1 -1
  369. package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  370. package/dist/cjs/components/template-preview/RCS/RCSButtons.js +1 -1
  371. package/dist/cjs/components/template-preview/RCS/RCSChatPreview.js +1 -1
  372. package/dist/cjs/components/template-preview/RCS/RCSMediaCard.js +1 -1
  373. package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
  374. package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
  375. package/dist/cjs/components/template-preview/WhatsApp/ChatBtn.js +1 -1
  376. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.js +1 -1
  377. package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +1 -1
  378. package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -1
  379. package/dist/cjs/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +1 -1
  380. package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  381. package/dist/cjs/components/template-preview/helpers/SmsTemplateHelper.js +1 -1
  382. package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
  383. package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js +1 -1
  384. package/dist/cjs/components/template-preview/utils/TemplateHelperUtils.js +1 -1
  385. package/dist/cjs/components/template-preview/utils/getPreviewPropLen.js +1 -1
  386. package/dist/cjs/components/template-preview/webpush/WebpushPreview.js +1 -1
  387. package/dist/cjs/components/text-picker/TextPickerCategoryCard.js +5 -5
  388. package/dist/cjs/components/text-picker/TextPickerFooter.js +3 -3
  389. package/dist/cjs/components/text-picker/TextPickerItemRow.js +4 -4
  390. package/dist/cjs/components/text-picker/TextPickerModal.js +1 -1
  391. package/dist/cjs/components/text-picker/TextPickerSelectAllRow.js +5 -5
  392. package/dist/cjs/components/toaster/Toaster.js +1 -1
  393. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js +1 -1
  394. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -1
  395. package/dist/cjs/components/variable-picker-v3/Content.js +1 -1
  396. package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js +1 -1
  397. package/dist/cjs/components/variable-picker-v3/recommendVaribles.js +1 -1
  398. package/dist/cjs/components/variable-picker-v3/searchVariables.js +1 -1
  399. package/dist/cjs/components/whats-new/WhatsNew.js +1 -1
  400. package/dist/cjs/components/whats-new/WhatsNewButton.js +1 -1
  401. package/dist/cjs/components/whats-new/WhatsNewPanel.js +1 -1
  402. package/dist/cjs/components/whats-new/WhatsNewProvider.js +1 -1
  403. package/dist/cjs/components/whats-new/useWhatsNew.js +1 -1
  404. package/dist/cjs/helpers/BaseWhatsappContentLang.helper.js +1 -1
  405. package/dist/cjs/hooks/useCurreny.js +1 -1
  406. package/dist/cjs/hooks/useOutside.js +1 -1
  407. package/dist/cjs/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs.js +1 -1
  408. package/dist/cjs/node_modules/immer/dist/immer.mjs.js +1 -1
  409. package/dist/cjs/node_modules/lodash.debounce/index.js +1 -1
  410. package/dist/cjs/src/components/banner/Banner.stories.d.ts +6 -9
  411. package/dist/cjs/src/components/bik-layout/CommonStyles.d.ts +2 -2
  412. package/dist/cjs/src/components/floating-action-button/FloatingActionButton.styles.d.ts +8 -8
  413. package/dist/cjs/src/components/input/ChipInput.d.ts +0 -1
  414. package/dist/cjs/src/components/input/ChipInput.styled.d.ts +14 -871
  415. package/dist/cjs/src/components/progress-bar/ProgressBarComponent.d.ts +0 -1
  416. package/dist/cjs/src/components/shimmer-image/ShimmerImage.stories.d.ts +5 -6
  417. package/dist/cjs/src/components/tag/Tag.stories.d.ts +19 -34
  418. package/dist/cjs/utils/DateUtils.js +1 -1
  419. package/dist/cjs/utils/StringUtils.js +1 -1
  420. package/dist/cjs/utils/resizeImage.js +1 -1
  421. package/dist/cjs/utils/unCamelCase.js +1 -1
  422. package/dist/esm/_virtual/_tslib.js +1 -1
  423. package/dist/esm/amplitude/Track.stories.d.ts +4 -0
  424. package/dist/esm/amplitude/index.js +1 -1
  425. package/dist/esm/assets/icons/AiEdit.svg.js +1 -1
  426. package/dist/esm/assets/icons/Ai_event_generating.svg.js +1 -1
  427. package/dist/esm/assets/icons/Bik_logo.svg.js +1 -1
  428. package/dist/esm/assets/icons/ChartBar.svg.js +1 -1
  429. package/dist/esm/assets/icons/ChartPie.svg.js +1 -1
  430. package/dist/esm/assets/icons/HelpIcon.svg.js +1 -1
  431. package/dist/esm/assets/icons/Idea.svg.js +1 -1
  432. package/dist/esm/assets/icons/RCS_PDF.svg.js +1 -1
  433. package/dist/esm/assets/icons/RedirectToNew.svg.js +1 -1
  434. package/dist/esm/assets/icons/WhiteStarFilled.svg.js +1 -1
  435. package/dist/esm/assets/icons/aiContentIcon.svg.js +1 -1
  436. package/dist/esm/assets/icons/alert.svg.js +1 -1
  437. package/dist/esm/assets/icons/alert_triangle.svg.js +1 -1
  438. package/dist/esm/assets/icons/arrow_back.svg.js +1 -1
  439. package/dist/esm/assets/icons/arrow_down.svg.js +1 -1
  440. package/dist/esm/assets/icons/arrow_left.svg.js +1 -1
  441. package/dist/esm/assets/icons/arrow_up.svg.js +1 -1
  442. package/dist/esm/assets/icons/back_icon.svg.js +1 -1
  443. package/dist/esm/assets/icons/bik_livechat.svg.js +1 -1
  444. package/dist/esm/assets/icons/bold.svg.js +1 -1
  445. package/dist/esm/assets/icons/box.svg.js +1 -1
  446. package/dist/esm/assets/icons/boxV2.svg.js +1 -1
  447. package/dist/esm/assets/icons/box_round.svg.js +1 -1
  448. package/dist/esm/assets/icons/box_search.svg.js +1 -1
  449. package/dist/esm/assets/icons/broken_media_image.svg.js +1 -1
  450. package/dist/esm/assets/icons/calendar.svg.js +1 -1
  451. package/dist/esm/assets/icons/card_footer_arraw.svg.js +1 -1
  452. package/dist/esm/assets/icons/chat-channel.svg.js +1 -1
  453. package/dist/esm/assets/icons/check.svg.js +1 -1
  454. package/dist/esm/assets/icons/checkCircle.svg.js +1 -1
  455. package/dist/esm/assets/icons/checklistIcon.svg.js +1 -1
  456. package/dist/esm/assets/icons/chevronDown.svg.js +1 -1
  457. package/dist/esm/assets/icons/chevronDownOutline.svg.js +1 -1
  458. package/dist/esm/assets/icons/chevronLeft.svg.js +1 -1
  459. package/dist/esm/assets/icons/chevronLeft2.svg.js +1 -1
  460. package/dist/esm/assets/icons/chevronRight.svg.js +1 -1
  461. package/dist/esm/assets/icons/chevronRight2.svg.js +1 -1
  462. package/dist/esm/assets/icons/chevronRightAlt.svg.js +1 -1
  463. package/dist/esm/assets/icons/chevronUpOutline.svg.js +1 -1
  464. package/dist/esm/assets/icons/click.svg.js +1 -1
  465. package/dist/esm/assets/icons/clock.svg.js +1 -1
  466. package/dist/esm/assets/icons/copy-code-icon.svg.js +1 -1
  467. package/dist/esm/assets/icons/cross.svg.js +1 -1
  468. package/dist/esm/assets/icons/cubeIcon.svg.js +1 -1
  469. package/dist/esm/assets/icons/cursor.svg.js +1 -1
  470. package/dist/esm/assets/icons/delete.svg.js +1 -1
  471. package/dist/esm/assets/icons/desktop_custom.svg.js +1 -1
  472. package/dist/esm/assets/icons/document_pdf.svg.js +1 -1
  473. package/dist/esm/assets/icons/drag_handle.svg.js +1 -1
  474. package/dist/esm/assets/icons/edit.svg.js +1 -1
  475. package/dist/esm/assets/icons/email-channel.svg.js +1 -1
  476. package/dist/esm/assets/icons/emoji.svg.js +1 -1
  477. package/dist/esm/assets/icons/errorIcon.svg.js +1 -1
  478. package/dist/esm/assets/icons/errorInfo.svg.js +1 -1
  479. package/dist/esm/assets/icons/expressionless_emoji.svg.js +1 -1
  480. package/dist/esm/assets/icons/facebook_channel.svg.js +1 -1
  481. package/dist/esm/assets/icons/file.svg.js +1 -1
  482. package/dist/esm/assets/icons/filePdf.svg.js +1 -1
  483. package/dist/esm/assets/icons/gift_icon.svg.js +1 -1
  484. package/dist/esm/assets/icons/gmail.svg.js +1 -1
  485. package/dist/esm/assets/icons/graph.svg.js +1 -1
  486. package/dist/esm/assets/icons/halfRectangle.svg.js +1 -1
  487. package/dist/esm/assets/icons/help.svg.js +1 -1
  488. package/dist/esm/assets/icons/horizontal_dots.svg.js +1 -1
  489. package/dist/esm/assets/icons/image.svg.js +1 -1
  490. package/dist/esm/assets/icons/info.svg.js +1 -1
  491. package/dist/esm/assets/icons/instagram-channel.svg.js +1 -1
  492. package/dist/esm/assets/icons/instagram.svg.js +1 -1
  493. package/dist/esm/assets/icons/italic.svg.js +1 -1
  494. package/dist/esm/assets/icons/locked.svg.js +1 -1
  495. package/dist/esm/assets/icons/log_out.svg.js +1 -1
  496. package/dist/esm/assets/icons/lto_icon.svg.js +1 -1
  497. package/dist/esm/assets/icons/maximize.svg.js +1 -1
  498. package/dist/esm/assets/icons/mobile_custom.svg.js +1 -1
  499. package/dist/esm/assets/icons/more_vertical.svg.js +1 -1
  500. package/dist/esm/assets/icons/openai.svg.js +1 -1
  501. package/dist/esm/assets/icons/percentage_icon.svg.js +1 -1
  502. package/dist/esm/assets/icons/phone.svg.js +1 -1
  503. package/dist/esm/assets/icons/phone_round.svg.js +1 -1
  504. package/dist/esm/assets/icons/plus.svg.js +1 -1
  505. package/dist/esm/assets/icons/qrb.svg.js +1 -1
  506. package/dist/esm/assets/icons/question-mark.svg.js +1 -1
  507. package/dist/esm/assets/icons/quotes.svg.js +1 -1
  508. package/dist/esm/assets/icons/redirect.svg.js +1 -1
  509. package/dist/esm/assets/icons/refresh.svg.js +1 -1
  510. package/dist/esm/assets/icons/retryIcon.svg.js +1 -1
  511. package/dist/esm/assets/icons/sad_emoji.svg.js +1 -1
  512. package/dist/esm/assets/icons/search.svg.js +1 -1
  513. package/dist/esm/assets/icons/searchIcon.svg.js +1 -1
  514. package/dist/esm/assets/icons/send_template.svg.js +1 -1
  515. package/dist/esm/assets/icons/shipping_icon.svg.js +1 -1
  516. package/dist/esm/assets/icons/similar.svg.js +1 -1
  517. package/dist/esm/assets/icons/smiley_emoji.svg.js +1 -1
  518. package/dist/esm/assets/icons/sparkle.svg.js +1 -1
  519. package/dist/esm/assets/icons/speedometer.svg.js +1 -1
  520. package/dist/esm/assets/icons/starEmpty.svg.js +1 -1
  521. package/dist/esm/assets/icons/starFilled.svg.js +1 -1
  522. package/dist/esm/assets/icons/starFilledV2.svg.js +1 -1
  523. package/dist/esm/assets/icons/state_icon.svg.js +1 -1
  524. package/dist/esm/assets/icons/strikeThrough.svg.js +1 -1
  525. package/dist/esm/assets/icons/sub_category.svg.js +1 -1
  526. package/dist/esm/assets/icons/successIcon.svg.js +1 -1
  527. package/dist/esm/assets/icons/sync.svg.js +1 -1
  528. package/dist/esm/assets/icons/task.svg.js +1 -1
  529. package/dist/esm/assets/icons/text_t9.svg.js +1 -1
  530. package/dist/esm/assets/icons/tick.svg.js +1 -1
  531. package/dist/esm/assets/icons/tick_double.svg.js +1 -1
  532. package/dist/esm/assets/icons/triangle_error.svg.js +1 -1
  533. package/dist/esm/assets/icons/undo.svg.js +1 -1
  534. package/dist/esm/assets/icons/union.svg.js +1 -1
  535. package/dist/esm/assets/icons/upload.svg.js +1 -1
  536. package/dist/esm/assets/icons/user_icon.svg.js +1 -1
  537. package/dist/esm/assets/icons/vertical_dots.svg.js +1 -1
  538. package/dist/esm/assets/icons/videoRecorder.svg.js +1 -1
  539. package/dist/esm/assets/icons/warning.svg.js +1 -1
  540. package/dist/esm/assets/icons/warningIcon.svg.js +1 -1
  541. package/dist/esm/assets/icons/website.svg.js +1 -1
  542. package/dist/esm/assets/icons/whatsNew.svg.js +1 -1
  543. package/dist/esm/assets/icons/whatsapp-channel.svg.js +1 -1
  544. package/dist/esm/assets/icons/whatsapp_color.svg.js +1 -1
  545. package/dist/esm/components/InfiniteScroll/InfiniteScroll.js +1 -1
  546. package/dist/esm/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  547. package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  548. package/dist/esm/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  549. package/dist/esm/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  550. package/dist/esm/components/QueryBuilder/QueryBuilder.js +1 -1
  551. package/dist/esm/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.js +1 -1
  552. package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  553. package/dist/esm/components/QueryBuilder/components/AddNodeButton.js +1 -1
  554. package/dist/esm/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
  555. package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +4 -7
  556. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
  557. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  558. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IgPicker.js +1 -1
  559. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  560. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  561. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
  562. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
  563. package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
  564. package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  565. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
  566. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  567. package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
  568. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
  569. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
  570. package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  571. package/dist/esm/components/QueryBuilder/components/DeleteButton.js +1 -1
  572. package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js +1 -1
  573. package/dist/esm/components/QueryBuilder/components/InputLoader.js +4 -4
  574. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
  575. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
  576. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
  577. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -1
  578. package/dist/esm/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  579. package/dist/esm/components/QueryBuilder/helpers/ApiResponse.helper.js +1 -1
  580. package/dist/esm/components/QueryBuilder/helpers/Connector.helper.js +1 -1
  581. package/dist/esm/components/QueryBuilder/hooks/useQueryBuilderCache.js +1 -1
  582. package/dist/esm/components/QueryBuilder/redux/queryBuilder.reducer.js +1 -1
  583. package/dist/esm/components/QueryBuilder/redux/selectors/useQueryBuilderCacheSelector.js +1 -1
  584. package/dist/esm/components/SearchFilter/components/DatePickerButton.js +1 -1
  585. package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.js +1 -1
  586. package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  587. package/dist/esm/components/SearchFilter/index.js +1 -1
  588. package/dist/esm/components/TablePagination/TablePagination.js +1 -1
  589. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
  590. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +2 -2
  591. package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
  592. package/dist/esm/components/accordion/Accordion.js +1 -1
  593. package/dist/esm/components/accordion/Accordion.style.js +1 -1
  594. package/dist/esm/components/accordion/AccordionArrow.js +1 -1
  595. package/dist/esm/components/action-button/ActionButton.styled.js +1 -1
  596. package/dist/esm/components/action-button/ActionButtons.js +1 -1
  597. package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
  598. package/dist/esm/components/ai-modals/ActivateBikAI.js +1 -1
  599. package/dist/esm/components/ai-modals/AiCreditsExhausted.js +1 -1
  600. package/dist/esm/components/ai-modals/AiCreditsLow.js +1 -1
  601. package/dist/esm/components/ai-modals/AiSyncProgress.js +1 -1
  602. package/dist/esm/components/analytics-card/AnalyticsCard.js +1 -1
  603. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  604. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
  605. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
  606. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  607. package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  608. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +2 -2
  609. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
  610. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +1 -1
  611. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +2 -2
  612. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  613. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.js +1 -1
  614. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -1
  615. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
  616. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
  617. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  618. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  619. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +1 -1
  620. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
  621. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -1
  622. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -1
  623. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -1
  624. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +5 -5
  625. package/dist/esm/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +1 -1
  626. package/dist/esm/components/avatar/Avatar.js +1 -1
  627. package/dist/esm/components/banner/BannerInline.js +1 -1
  628. package/dist/esm/components/banner/CardBanner.js +1 -1
  629. package/dist/esm/components/bik-chatbot/components/AIChat.js +1 -1
  630. package/dist/esm/components/bik-chatbot/components/BIKChatbot.js +1 -1
  631. package/dist/esm/components/bik-chatbot/components/ChatLoadingState.js +1 -1
  632. package/dist/esm/components/bik-chatbot/components/ChatWindow.js +1 -1
  633. package/dist/esm/components/bik-chatbot/components/ThinkingIndicator.js +1 -1
  634. package/dist/esm/components/bik-chatbot/contexts/AIContext.js +1 -1
  635. package/dist/esm/components/bik-chatbot/services/aiService.js +1 -1
  636. package/dist/esm/components/bik-chatbot/services/callToChatbot.js +1 -1
  637. package/dist/esm/components/bik-chatbot/services/db.js +1 -1
  638. package/dist/esm/components/bik-chatbot/services/useAIChat.js +1 -1
  639. package/dist/esm/components/bik-chatbot/utils/markdown.js +1 -1
  640. package/dist/esm/components/bik-layout/BikProfile.js +1 -1
  641. package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
  642. package/dist/esm/components/bik-layout/SidebarPopup.js +1 -1
  643. package/dist/esm/components/bik-layout/SidebarSkeleton.js +1 -1
  644. package/dist/esm/components/bik-layout/SimpleSidebar.js +1 -1
  645. package/dist/esm/components/button/Button.js +1 -1
  646. package/dist/esm/components/button/Button.styled.js +1 -1
  647. package/dist/esm/components/button/themes.js +1 -1
  648. package/dist/esm/components/buttonGroup/ButtonGroup.js +1 -1
  649. package/dist/esm/components/card-selection-modal/CardSelectionModal.js +1 -1
  650. package/dist/esm/components/card-selector/CardSelectorGroup.js +1 -1
  651. package/dist/esm/components/carousel-preview/CarouselPreview.js +1 -1
  652. package/dist/esm/components/carousel-preview/CarouselPreviewCard.js +1 -1
  653. package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
  654. package/dist/esm/components/checkBox/CheckBox.js +1 -1
  655. package/dist/esm/components/checkList/CheckList.js +1 -1
  656. package/dist/esm/components/code-block/CodeBlock.js +1 -1
  657. package/dist/esm/components/code-block/CodeBlock.styled.js +31 -31
  658. package/dist/esm/components/code-block/CodeBlockHelper.js +1 -1
  659. package/dist/esm/components/country-code-picker/CountryCodePicker.js +1 -1
  660. package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
  661. package/dist/esm/components/custom-date-time/CustomDateTime.styled.js +1 -0
  662. package/dist/esm/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  663. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  664. package/dist/esm/components/dashboard-review-popup/components/FiveStar.js +1 -1
  665. package/dist/esm/components/dashboard-review-popup/components/Form.js +1 -1
  666. package/dist/esm/components/dashboard-review-popup/components/ZeroState.js +2 -2
  667. package/dist/esm/components/data-source-panel/DataSourceInfoFooter.js +1 -1
  668. package/dist/esm/components/data-source-panel/DataSourcePanel.js +1 -1
  669. package/dist/esm/components/data-source-panel/Modals/DescriptionModal.js +1 -1
  670. package/dist/esm/components/datePicker/DatePicker.js +1 -1
  671. package/dist/esm/components/datePicker/DatePickerWrapper.js +1 -1
  672. package/dist/esm/components/datePicker/TimePicker.js +1 -1
  673. package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  674. package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
  675. package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
  676. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  677. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +8 -8
  678. package/dist/esm/components/dot-pulse/DotPulse.js +2 -2
  679. package/dist/esm/components/dropShadow/DropShadow.js +1 -1
  680. package/dist/esm/components/dropdown/ChipInput.js +1 -1
  681. package/dist/esm/components/dropdown/Dropdown.js +1 -1
  682. package/dist/esm/components/dropdown/DropdownPopover/index.js +1 -1
  683. package/dist/esm/components/dropdown/MenuItem/MenuItem.js +1 -1
  684. package/dist/esm/components/dropdown/MultilevelDropdownPopover/index.js +1 -1
  685. package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  686. package/dist/esm/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
  687. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
  688. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +5 -5
  689. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  690. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
  691. package/dist/esm/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
  692. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
  693. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
  694. package/dist/esm/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
  695. package/dist/esm/components/dropdown/hooks/useDropdown.js +1 -1
  696. package/dist/esm/components/dynamic-tabs/DynamicTabs.js +1 -1
  697. package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  698. package/dist/esm/components/feature-announcements/MajorUpdatePopup.js +1 -1
  699. package/dist/esm/components/feature-announcements/MinorUpdatePopup.js +1 -1
  700. package/dist/esm/components/feature-announcements/VideoModal.js +1 -1
  701. package/dist/esm/components/feature-announcements/hooks/useFeatureAnnouncements.js +1 -1
  702. package/dist/esm/components/feature-announcements/utils/animationHelpers.js +1 -1
  703. package/dist/esm/components/feature-announcements/utils/elementHelpers.js +1 -1
  704. package/dist/esm/components/file-uploader/FileUploader.js +1 -1
  705. package/dist/esm/components/floater/floater.js +1 -1
  706. package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.js +3 -3
  707. package/dist/esm/components/icon-button/IconButton.js +1 -1
  708. package/dist/esm/components/icon-button/IconButton.styled.js +1 -1
  709. package/dist/esm/components/image-compress/ImageCompress.js +1 -1
  710. package/dist/esm/components/image-cropper/BikImageCropper.js +1 -1
  711. package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
  712. package/dist/esm/components/input/ChipInput.js +1 -1
  713. package/dist/esm/components/input/ChipInput.styled.js +1 -146
  714. package/dist/esm/components/input/Input-helper.js +1 -1
  715. package/dist/esm/components/input/Input.js +1 -1
  716. package/dist/esm/components/input/Input.styled.js +1 -1
  717. package/dist/esm/components/input-with-vars/InputWithVariables.js +1 -1
  718. package/dist/esm/components/keywords-input/KeywordsInput.js +1 -1
  719. package/dist/esm/components/list-item/ListItem.js +1 -1
  720. package/dist/esm/components/markdown/index.js +1 -1
  721. package/dist/esm/components/modals/Modal.js +1 -1
  722. package/dist/esm/components/multi-level-dropdown/GroupedMenuList.js +1 -1
  723. package/dist/esm/components/multi-level-dropdown/MenuItem.js +1 -1
  724. package/dist/esm/components/multi-level-dropdown/MenuList.js +1 -1
  725. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  726. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.styled.js +25 -25
  727. package/dist/esm/components/pagination/Pagination.js +1 -1
  728. package/dist/esm/components/plans/NewSubscriptionPlan.js +1 -1
  729. package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
  730. package/dist/esm/components/plans/SubscriptionPlanSelector.js +1 -1
  731. package/dist/esm/components/plans/SubscriptionPlansCollected.js +1 -1
  732. package/dist/esm/components/postPicker/postPicker.js +1 -1
  733. package/dist/esm/components/product-picker/ProductPickerModal.js +1 -1
  734. package/dist/esm/components/product-picker-v2/ProductPickerShimmer.js +1 -1
  735. package/dist/esm/components/product-picker-v2/collectionScreen.js +1 -1
  736. package/dist/esm/components/product-picker-v2/emptyState.js +1 -1
  737. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +1 -1
  738. package/dist/esm/components/product-picker-v2/modal.js +1 -1
  739. package/dist/esm/components/product-picker-v2/product.js +1 -1
  740. package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
  741. package/dist/esm/components/product-picker-v2/rearrangeScreen.js +1 -1
  742. package/dist/esm/components/product-picker-v2/searchScreen.js +1 -1
  743. package/dist/esm/components/product-picker-v2/selectedScreen.js +1 -1
  744. package/dist/esm/components/product-picker-v2/utility.js +1 -1
  745. package/dist/esm/components/product-picker-v2/variantComponents.js +1 -1
  746. package/dist/esm/components/progress-bar/CircularProgressBar.js +1 -1
  747. package/dist/esm/components/progress-bar/ProgressBarComponent.js +3 -3
  748. package/dist/esm/components/radioButton/RadioButton.js +1 -1
  749. package/dist/esm/components/radioList/RadioList.js +1 -1
  750. package/dist/esm/components/resizeImage/index.js +1 -1
  751. package/dist/esm/components/searchBar/searchBar.js +1 -1
  752. package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
  753. package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
  754. package/dist/esm/components/side-modal/SideModal.style.js +9 -9
  755. package/dist/esm/components/slider/slider.js +1 -1
  756. package/dist/esm/components/spinner/Spinner.js +1 -1
  757. package/dist/esm/components/star-rating/Star.js +1 -1
  758. package/dist/esm/components/star-rating/StarRating.js +2 -2
  759. package/dist/esm/components/states/ShopifyScopeWrapper.js +1 -1
  760. package/dist/esm/components/stepper/Stepper.js +1 -1
  761. package/dist/esm/components/switch/Switch.js +1 -1
  762. package/dist/esm/components/tabs/Tabs.js +1 -1
  763. package/dist/esm/components/tag/Tag.js +1 -1
  764. package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
  765. package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -1
  766. package/dist/esm/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
  767. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +3 -3
  768. package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
  769. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  770. package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  771. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  772. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  773. package/dist/esm/components/template-context-mapper/modalElements/Footer.js +1 -1
  774. package/dist/esm/components/template-context-mapper/modalElements/Header.js +1 -1
  775. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +1 -1
  776. package/dist/esm/components/template-context-mapper/modalElements/QueryParamsComponent.js +1 -1
  777. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
  778. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -1
  779. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  780. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +1 -1
  781. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  782. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -2
  783. package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
  784. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  785. package/dist/esm/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  786. package/dist/esm/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.js +1 -1
  787. package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
  788. package/dist/esm/components/template-context-mapper/utils/highlightFor.js +1 -1
  789. package/dist/esm/components/template-context-mapper/utils/validateName.js +1 -1
  790. package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  791. package/dist/esm/components/template-preview/RCS/RCSButtons.js +1 -1
  792. package/dist/esm/components/template-preview/RCS/RCSChatPreview.js +1 -1
  793. package/dist/esm/components/template-preview/RCS/RCSMediaCard.js +1 -1
  794. package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
  795. package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
  796. package/dist/esm/components/template-preview/WhatsApp/ChatBtn.js +1 -1
  797. package/dist/esm/components/template-preview/WhatsApp/ChatUI.js +1 -1
  798. package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +1 -1
  799. package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
  800. package/dist/esm/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +1 -1
  801. package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  802. package/dist/esm/components/template-preview/helpers/SmsTemplateHelper.js +1 -1
  803. package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
  804. package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js +1 -1
  805. package/dist/esm/components/template-preview/utils/TemplateHelperUtils.js +1 -1
  806. package/dist/esm/components/template-preview/utils/getPreviewPropLen.js +1 -1
  807. package/dist/esm/components/template-preview/webpush/WebpushPreview.js +1 -1
  808. package/dist/esm/components/text-picker/TextPickerCategoryCard.js +4 -4
  809. package/dist/esm/components/text-picker/TextPickerFooter.js +4 -4
  810. package/dist/esm/components/text-picker/TextPickerItemRow.js +6 -6
  811. package/dist/esm/components/text-picker/TextPickerModal.js +1 -1
  812. package/dist/esm/components/text-picker/TextPickerSelectAllRow.js +5 -5
  813. package/dist/esm/components/toaster/Toaster.js +1 -1
  814. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js +1 -1
  815. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -1
  816. package/dist/esm/components/variable-picker-v3/Content.js +1 -1
  817. package/dist/esm/components/variable-picker-v3/SubHeaderItems.js +1 -1
  818. package/dist/esm/components/variable-picker-v3/recommendVaribles.js +1 -1
  819. package/dist/esm/components/variable-picker-v3/searchVariables.js +1 -1
  820. package/dist/esm/components/whats-new/WhatsNew.js +1 -1
  821. package/dist/esm/components/whats-new/WhatsNewButton.js +1 -1
  822. package/dist/esm/components/whats-new/WhatsNewPanel.js +1 -1
  823. package/dist/esm/components/whats-new/WhatsNewProvider.js +1 -1
  824. package/dist/esm/components/whats-new/useWhatsNew.js +1 -1
  825. package/dist/esm/helpers/BaseWhatsappContentLang.helper.js +1 -1
  826. package/dist/esm/hooks/useCurreny.js +1 -1
  827. package/dist/esm/hooks/useOutside.js +1 -1
  828. package/dist/esm/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs.js +1 -1
  829. package/dist/esm/node_modules/immer/dist/immer.mjs.js +1 -1
  830. package/dist/esm/node_modules/lodash.debounce/index.js +1 -1
  831. package/dist/esm/src/components/banner/Banner.stories.d.ts +6 -9
  832. package/dist/esm/src/components/bik-layout/CommonStyles.d.ts +2 -2
  833. package/dist/esm/src/components/floating-action-button/FloatingActionButton.styles.d.ts +8 -8
  834. package/dist/esm/src/components/input/ChipInput.d.ts +0 -1
  835. package/dist/esm/src/components/input/ChipInput.styled.d.ts +14 -871
  836. package/dist/esm/src/components/progress-bar/ProgressBarComponent.d.ts +0 -1
  837. package/dist/esm/src/components/shimmer-image/ShimmerImage.stories.d.ts +5 -6
  838. package/dist/esm/src/components/tag/Tag.stories.d.ts +19 -34
  839. package/dist/esm/utils/DateUtils.js +1 -1
  840. package/dist/esm/utils/StringUtils.js +1 -1
  841. package/dist/esm/utils/resizeImage.js +1 -1
  842. package/dist/esm/utils/unCamelCase.js +1 -1
  843. package/package.json +24 -40
  844. package/dist/cjs/src/amplitude/Track.stories.d.ts +0 -6
  845. package/dist/esm/src/amplitude/Track.stories.d.ts +0 -6
  846. /package/dist/cjs/{src/amplitude → amplitude}/index.d.ts +0 -0
  847. /package/dist/esm/{src/amplitude → amplitude}/index.d.ts +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("../../tooltips/Tooltip.js"),require("../../../constants/Theme.js"),require("../../TypographyStyle.js"),require("../../analytics-chips-and-dropdowns/CommonStyles.js");var r=require("../../analytics-chips-and-dropdowns/AnalyticsDropdown.js");require("react"),require("../../analytics-chips-and-dropdowns/AnalyticsMetric.js"),require("../../shimmer/ShimmerComponent/ShimmerStyled.js"),require("../../../utils/DateUtils.js");var a=require("../../tag/Tag.js");require("../../analytics-chips-and-dropdowns/chart/utils/calcPercentage.js"),require("../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js"),require("react-bootstrap"),require("../../analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js"),require("../../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js"),require("../../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js"),require("../../analytics-chips-and-dropdowns/chart/Pie/PieChart.js"),require("../../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js"),require("../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js"),require("../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js"),require("../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.model.js"),require("../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js"),require("../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js"),require("../../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js"),require("../../analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js"),require("../../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js");var i=require("../../../assets/icons/cross.svg.js"),t=require("../types/SearchFilter.type.js");exports.FilterChipListRenderer=({selectedState:n,onDeSelect:l})=>e.jsx(e.Fragment,{children:n.map(n=>{var s,o,d,c,p,u,h,y,v,j,g;if(n.type===t.FilterType.Multiple)return e.jsx(e.Fragment,{children:null===(s=n.value)||void 0===s?void 0:s.map(r=>{var t,s;return e.jsx(a.Tag,{onTrailingIconClicked:()=>l(n.id,r),style:{cursor:"pointer"},tagText:null!==(s=null===(t=r.label)||void 0===t?void 0:t.slice(0,10))&&void 0!==s?s:"",type:"neutral",theme:"light",TrailingIcon:i.default},`${n.id}-${r.value}`)})});if(n.type===t.FilterType.Date)return e.jsx(a.Tag,{onTrailingIconClicked:()=>l(n.id,n.value),style:{cursor:"pointer"},tagText:r.formatDate(n.value),type:"neutral",theme:"light",TrailingIcon:i.default},n.id);if(n.type===t.FilterType.DateRange)return e.jsx(a.Tag,{onTrailingIconClicked:()=>l(n.id,n.value),style:{cursor:"pointer"},tagText:`${r.formatDate(null===(o=n.value)||void 0===o?void 0:o[0])} to ${r.formatDate(null===(d=n.value)||void 0===d?void 0:d[1])}`,type:"neutral",theme:"light",TrailingIcon:i.default},n.id);return(n.type===t.FilterType.Single?null!==(p=null===(c=n.value)||void 0===c?void 0:c.label)&&void 0!==p?p:"":null!==(h=null===(u=n.value)||void 0===u?void 0:u.toString())&&void 0!==h?h:"")?e.jsx(a.Tag,{onTrailingIconClicked:()=>l(n.id,n.value),style:{cursor:"pointer"},tagText:n.type===t.FilterType.Single?null!==(v=null===(y=n.value)||void 0===y?void 0:y.label)&&void 0!==v?v:"":null!==(g=null===(j=n.value)||void 0===j?void 0:j.toString())&&void 0!==g?g:"",type:"neutral",theme:"light",TrailingIcon:i.default},n.id):e.jsx(e.Fragment,{})})});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("../../tooltips/Tooltip.js"),require("../../../constants/Theme.js"),require("../../TypographyStyle.js"),require("../../analytics-chips-and-dropdowns/CommonStyles.js");var r=require("../../analytics-chips-and-dropdowns/AnalyticsDropdown.js");require("react"),require("../../analytics-chips-and-dropdowns/AnalyticsMetric.js"),require("../../shimmer/ShimmerComponent/ShimmerStyled.js"),require("../../../utils/DateUtils.js");var a=require("../../tag/Tag.js");require("../../analytics-chips-and-dropdowns/chart/utils/calcPercentage.js"),require("../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js"),require("react-bootstrap"),require("../../analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js"),require("../../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js"),require("../../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js"),require("../../analytics-chips-and-dropdowns/chart/Pie/PieChart.js"),require("../../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js"),require("../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js"),require("../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js"),require("../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.model.js"),require("../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js"),require("../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js"),require("../../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js"),require("../../analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js"),require("../../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js");var i=require("../../../assets/icons/cross.svg.js"),t=require("../types/SearchFilter.type.js");exports.FilterChipListRenderer=n=>{let{selectedState:l,onDeSelect:s}=n;return e.jsx(e.Fragment,{children:l.map((n=>{var l,o,d,c,p,u,h,y,v,j,g;if(n.type===t.FilterType.Multiple)return e.jsx(e.Fragment,{children:null===(l=n.value)||void 0===l?void 0:l.map((r=>{var t,l;return e.jsx(a.Tag,{onTrailingIconClicked:()=>s(n.id,r),style:{cursor:"pointer"},tagText:null!==(l=null===(t=r.label)||void 0===t?void 0:t.slice(0,10))&&void 0!==l?l:"",type:"neutral",theme:"light",TrailingIcon:i.default},`${n.id}-${r.value}`)}))});if(n.type===t.FilterType.Date)return e.jsx(a.Tag,{onTrailingIconClicked:()=>s(n.id,n.value),style:{cursor:"pointer"},tagText:r.formatDate(n.value),type:"neutral",theme:"light",TrailingIcon:i.default},n.id);if(n.type===t.FilterType.DateRange)return e.jsx(a.Tag,{onTrailingIconClicked:()=>s(n.id,n.value),style:{cursor:"pointer"},tagText:`${r.formatDate(null===(o=n.value)||void 0===o?void 0:o[0])} to ${r.formatDate(null===(d=n.value)||void 0===d?void 0:d[1])}`,type:"neutral",theme:"light",TrailingIcon:i.default},n.id);return(n.type===t.FilterType.Single?null!==(p=null===(c=n.value)||void 0===c?void 0:c.label)&&void 0!==p?p:"":null!==(h=null===(u=n.value)||void 0===u?void 0:u.toString())&&void 0!==h?h:"")?e.jsx(a.Tag,{onTrailingIconClicked:()=>s(n.id,n.value),style:{cursor:"pointer"},tagText:n.type===t.FilterType.Single?null!==(v=null===(y=n.value)||void 0===y?void 0:y.label)&&void 0!==v?v:"":null!==(g=null===(j=n.value)||void 0===j?void 0:j.toString())&&void 0!==g?g:"",type:"neutral",theme:"light",TrailingIcon:i.default},n.id):e.jsx(e.Fragment,{})}))})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react/jsx-runtime"),r=require("../searchBar/searchBar.js"),i=require("./components/FilterChipListRenderer.js"),l=require("./components/SearchFilterItem.js"),n=require("./types/SearchFilter.type.js");exports.SearchFilter=({direction:a="row",schema:s,variant:d,onChange:c,showSelectedChips:u})=>{var p,o,f;const v=e.useRef(null!==(p=null==s?void 0:s.filter(e=>e.defaultValue).map(e=>({id:e.id,value:e.defaultValue,type:e.type,text:e.text})))&&void 0!==p?p:[]),[h,x]=e.useState([]),y=s.find(e=>e.type===n.FilterType.Search),g=e=>{y&&"string"==typeof e&&j(y.id,e)},j=(e,t)=>{const r=s.find(t=>t.id===e),i=[...h];if(r){const l=i.findIndex(t=>t.id===e);-1!==l?i[l]={id:r.id,value:t}:i.push({id:r.id,value:t});const n=v.current.find(t=>t.id===e);v.current=n?v.current.map(r=>r.id===e?{id:r.id,value:t,type:r.type,text:r.text}:r):[...v.current,{id:e,value:t,type:r.type,text:r.text}],c(r.id,v.current,t),x([...i])}};return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[t.jsxs("div",{style:{display:"flex",flexDirection:a,gap:8,flexWrap:"wrap",alignItems:"row"===a?"center":"self-start"},children:[y&&t.jsx(r.SearchBar,{width:null!==(f=null===(o=y.width)||void 0===o?void 0:o.toString())&&void 0!==f?f:"100%",isEnabled:!0,onChange:g,onEnter:g,placeholder:y.text,variant:"small"}),t.jsx("div",{style:{display:"flex",flexDirection:"row",gap:8,flexWrap:"wrap",alignItems:"row"===a?"center":"self-start"},children:s.filter(e=>e.type!==n.FilterType.Search).map((t,r)=>e.createElement(l.SearchFilterItem,Object.assign({},t,{key:r,variant:d,onChange:e=>{j(t.id,e)}})))})]}),u&&t.jsx("div",{style:{display:"flex",flexDirection:"row",gap:8},children:t.jsx(i.FilterChipListRenderer,{selectedState:v.current,onDeSelect:(e,t)=>{const r=s.find(t=>t.id===e);let i=[...h];r&&(r.type===n.FilterType.Multiple?(i=i.map(r=>{if(r.id===e){const e=r.value.filter(e=>e.value!==t.value);return e.length?Object.assign(Object.assign({},r),{value:e}):null}return r}).filter(e=>!!e),v.current=v.current.map(r=>{var i;if(r.id===e){const e=null===(i=r.value)||void 0===i?void 0:i.filter(e=>e.value!==t.value);return e.length?Object.assign(Object.assign({},r),{value:e}):null}return r}).filter(e=>!!e)):(i=i.filter(t=>t.id!==e),v.current=v.current.filter(t=>t.id!==e)),c(r.id,v.current,t),x([...i]))}})})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react/jsx-runtime"),r=require("../searchBar/searchBar.js"),i=require("./components/FilterChipListRenderer.js"),l=require("./components/SearchFilterItem.js"),n=require("./types/SearchFilter.type.js");exports.SearchFilter=a=>{let{direction:s="row",schema:d,variant:c,onChange:u,showSelectedChips:p}=a;var o,f,v;const h=e.useRef(null!==(o=null==d?void 0:d.filter((e=>e.defaultValue)).map((e=>({id:e.id,value:e.defaultValue,type:e.type,text:e.text}))))&&void 0!==o?o:[]),[x,y]=e.useState([]),g=d.find((e=>e.type===n.FilterType.Search)),j=e=>{g&&"string"==typeof e&&m(g.id,e)},m=(e,t)=>{const r=d.find((t=>t.id===e)),i=[...x];if(r){const l=i.findIndex((t=>t.id===e));-1!==l?i[l]={id:r.id,value:t}:i.push({id:r.id,value:t});const n=h.current.find((t=>t.id===e));h.current=n?h.current.map((r=>r.id===e?{id:r.id,value:t,type:r.type,text:r.text}:r)):[...h.current,{id:e,value:t,type:r.type,text:r.text}],u(r.id,h.current,t),y([...i])}};return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[t.jsxs("div",{style:{display:"flex",flexDirection:s,gap:8,flexWrap:"wrap",alignItems:"row"===s?"center":"self-start"},children:[g&&t.jsx(r.SearchBar,{width:null!==(v=null===(f=g.width)||void 0===f?void 0:f.toString())&&void 0!==v?v:"100%",isEnabled:!0,onChange:j,onEnter:j,placeholder:g.text,variant:"small"}),t.jsx("div",{style:{display:"flex",flexDirection:"row",gap:8,flexWrap:"wrap",alignItems:"row"===s?"center":"self-start"},children:d.filter((e=>e.type!==n.FilterType.Search)).map(((t,r)=>e.createElement(l.SearchFilterItem,Object.assign({},t,{key:r,variant:c,onChange:e=>{m(t.id,e)}}))))})]}),p&&t.jsx("div",{style:{display:"flex",flexDirection:"row",gap:8},children:t.jsx(i.FilterChipListRenderer,{selectedState:h.current,onDeSelect:(e,t)=>{const r=d.find((t=>t.id===e));let i=[...x];r&&(r.type===n.FilterType.Multiple?(i=i.map((r=>{if(r.id===e){const e=r.value.filter((e=>e.value!==t.value));return e.length?Object.assign(Object.assign({},r),{value:e}):null}return r})).filter((e=>!!e)),h.current=h.current.map((r=>{var i;if(r.id===e){const e=null===(i=r.value)||void 0===i?void 0:i.filter((e=>e.value!==t.value));return e.length?Object.assign(Object.assign({},r),{value:e}):null}return r})).filter((e=>!!e))):(i=i.filter((t=>t.id!==e)),h.current=h.current.filter((t=>t.id!==e))),u(r.id,h.current,t),y([...i]))}})})]})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("../../assets/icons/chevronLeft.svg.js"),r=require("../../assets/icons/chevronRight.svg.js");require("../dropdown/DropdownPopover/index.js");var n=require("../dropdown/Dropdown.js");require("../dropdown/ChipDropdown.js"),require("react"),require("../zeroState/ZeroState.js");var t=require("../TypographyStyle.js"),s=require("../../constants/Theme.js");require("../dropdown/OpenedDropdown/components/description/Description.styled.js"),require("../checkBox/CheckBox.styled.js"),require("../list-item/ListItem.js"),require("../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js"),require("../dropdown/OpenedDropdown/components/menu/MenuItem.js"),require("../dropdown/OpenedDropdown/components/menu/MenuList.styled.js"),require("../button/Button.js"),require("../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js"),require("../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js"),require("../icon-button/IconButton.js"),require("../input/Input.js"),require("../dropdown/MenuItem/MenuItem.js");var i=require("./TablePagination.styled.js");exports.TablePagination=({pageNumber:d,pageSize:a,totalRows:l,updatePageNumber:c,updatePageSize:p,hidePageSizeOptions:u,showTotalText:j})=>{const h=s.DEFAULT_THEME.colorsV2,w=(d-1)*a+1,y=(d-1)*a+a,g=Math.ceil(l/a),m=1==g;let q=[];q=g>=5?d===g?[d-4,d-3,d-2,d-1,d]:1===d?[d,d+1,d+2,d+3,d+4]:2===d?[d-1,d,d+1,d+2,d+3]:d===g-1?[d-3,d-2,d-1,d,d+1]:[d-2,d-1,d,d+1,d+2]:Array.from({length:g},(e,o)=>o+1);const x=[{label:"5 rows per page",value:"5",selected:5===a},{label:"10 rows per page",value:"10",selected:10===a},{label:"20 rows per page",value:"20",selected:20===a}];return e.jsxs(i.StyledTablePaginationContainer,{children:[!u&&e.jsx("div",{children:e.jsx(n.Dropdown,{size:"small",options:x,onSelect:p,width:"162px"})}),e.jsxs("div",{className:"paging__container",children:[!u&&l&&e.jsxs(t.BodySecondary,{style:{color:h.content.placeholder},children:["Showing ",w,"-",y>l?l:y," of"," ",l," results"]}),e.jsxs("div",{className:"pages__buttons-container",children:[!m&&e.jsx(i.StyledPagingContainer,{active:!1,onClick:()=>{1!==d&&c(Math.max(d-1,1))},disabled:1===d,children:e.jsx(o.default,{color:h.content.secondary,height:14,width:14})}),q.map(o=>e.jsx(i.StyledPagingContainer,{active:o==d,onClick:()=>c(o),style:{display:1==o&&l<=a?"none":"flex"},children:e.jsx(t.BodySecondary,{style:{color:o==d?h.content.primaryInverse:h.content.secondary},children:o})},o)),!m&&e.jsx(i.StyledPagingContainer,{isLast:!0,active:!1,onClick:()=>{d!==g&&c(Math.min(d+1,g))},disabled:d===g,children:e.jsx(r.default,{color:h.content.secondary,height:14,width:14})})]}),u&&l&&j&&e.jsxs(t.BodySecondary,{style:{color:h.content.placeholder},children:["Showing ",w,"-",y>l?l:y," of"," ",l," results"]})]})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("../../assets/icons/chevronLeft.svg.js"),r=require("../../assets/icons/chevronRight.svg.js");require("../dropdown/DropdownPopover/index.js");var n=require("../dropdown/Dropdown.js");require("../dropdown/ChipDropdown.js"),require("react"),require("../zeroState/ZeroState.js");var t=require("../TypographyStyle.js"),s=require("../../constants/Theme.js");require("../dropdown/OpenedDropdown/components/description/Description.styled.js"),require("../checkBox/CheckBox.styled.js"),require("../list-item/ListItem.js"),require("../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js"),require("../dropdown/OpenedDropdown/components/menu/MenuItem.js"),require("../dropdown/OpenedDropdown/components/menu/MenuList.styled.js"),require("../button/Button.js"),require("../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js"),require("../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js"),require("../icon-button/IconButton.js"),require("../input/Input.js"),require("../dropdown/MenuItem/MenuItem.js");var i=require("./TablePagination.styled.js");exports.TablePagination=d=>{let{pageNumber:a,pageSize:l,totalRows:c,updatePageNumber:p,updatePageSize:u,hidePageSizeOptions:j,showTotalText:h}=d;const w=s.DEFAULT_THEME.colorsV2,y=(a-1)*l+1,g=(a-1)*l+l,m=Math.ceil(c/l),q=1==m;let x=[];x=m>=5?a===m?[a-4,a-3,a-2,a-1,a]:1===a?[a,a+1,a+2,a+3,a+4]:2===a?[a-1,a,a+1,a+2,a+3]:a===m-1?[a-3,a-2,a-1,a,a+1]:[a-2,a-1,a,a+1,a+2]:Array.from({length:m},((e,o)=>o+1));const v=[{label:"5 rows per page",value:"5",selected:5===l},{label:"10 rows per page",value:"10",selected:10===l},{label:"20 rows per page",value:"20",selected:20===l}];return e.jsxs(i.StyledTablePaginationContainer,{children:[!j&&e.jsx("div",{children:e.jsx(n.Dropdown,{size:"small",options:v,onSelect:u,width:"162px"})}),e.jsxs("div",{className:"paging__container",children:[!j&&c&&e.jsxs(t.BodySecondary,{style:{color:w.content.placeholder},children:["Showing ",y,"-",g>c?c:g," of"," ",c," results"]}),e.jsxs("div",{className:"pages__buttons-container",children:[!q&&e.jsx(i.StyledPagingContainer,{active:!1,onClick:()=>{1!==a&&p(Math.max(a-1,1))},disabled:1===a,children:e.jsx(o.default,{color:w.content.secondary,height:14,width:14})}),x.map((o=>e.jsx(i.StyledPagingContainer,{active:o==a,onClick:()=>p(o),style:{display:1==o&&c<=l?"none":"flex"},children:e.jsx(t.BodySecondary,{style:{color:o==a?w.content.primaryInverse:w.content.secondary},children:o})},o))),!q&&e.jsx(i.StyledPagingContainer,{isLast:!0,active:!1,onClick:()=>{a!==m&&p(Math.min(a+1,m))},disabled:a===m,children:e.jsx(r.default,{color:w.content.secondary,height:14,width:14})})]}),j&&c&&h&&e.jsxs(t.BodySecondary,{style:{color:w.content.placeholder},children:["Showing ",y,"-",g>c?c:g," of"," ",c," results"]})]})]})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),n=require("../../assets/icons/info.svg.js"),r=require("../../helpers/BaseWhatsappContentLang.helper.js"),l=require("react"),o=require("../../constants/Theme.js"),i=require("../TypographyStyle.js"),u=require("./CustomEditor.styled.js"),c=require("./WhatsAppTextEditorHeader.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(l);const d="Character limit reached",v=new r.BaseWhatsappContentLangHelper,h={[c.EditorActionTypes.BOLD]:"*",[c.EditorActionTypes.ITALIC]:"_",[c.EditorActionTypes.STRIKETHROUGH]:"~"},p=a.default.forwardRef((r,s)=>{var a,p,{onChange:f,onClickVariable:x,text:g,RightComponent:C,error:j,limit:m,onError:E,rows:T,actions:y}=r,O=e.__rest(r,["onChange","onClickVariable","text","RightComponent","error","limit","onError","rows","actions"]);const L=l.useRef(null);function S(e){const t=null==L?void 0:L.current;null!=t&&(t.selectionStart?(t.focus(),t.selectionEnd=e):t.focus())}function R(e){var t,n;let r=null!==(n=null===(t=L.current)||void 0===t?void 0:t.value)&&void 0!==n?n:"";if(L.current&&e){const t=L.current.selectionStart,n=L.current.selectionEnd,l=e;if(t===n)return H(l);{r=v.wrappWildcard(t,n,l,r);const e=v.getHTML(r);return L.current.value=r,{text:r,html:e}}}return{text:r,html:r}}function H(e){var t,n;let r=null!==(n=null===(t=L.current)||void 0===t?void 0:t.value)&&void 0!==n?n:"";if(L.current&&e){const t=L.current.selectionStart;if(t===L.current.selectionEnd)return q(e,t)}return{text:r,html:r}}function q(e,t){var n,r;let l=null!==(r=null===(n=L.current)||void 0===n?void 0:n.value)&&void 0!==r?r:"";l=l.slice(0,t)+e+l.slice(t);const o=v.getHTML(l);return L.current.value=l,{text:l,html:o}}return l.useImperativeHandle(s,()=>({addTextOrWrap:R,addText:H,get(){var e,t;return null!==(t=null===(e=L.current)||void 0===e?void 0:e.value)&&void 0!==t?t:""},setCaretPosition:S})),l.useEffect(()=>{if(null==L?void 0:L.current){L.current.value=g||"";const e=v.getHTML(g||"");null==f||f(g||"",e)}},[g]),l.useEffect(()=>{var e,t;(null===(e=null==L?void 0:L.current)||void 0===e?void 0:e.value)&&m&&((null===(t=null==L?void 0:L.current)||void 0===t?void 0:t.value.length)>m?null==E||E(d):null==E||E(null!=j?j:""))},[null===(a=null==L?void 0:L.current)||void 0===a?void 0:a.value.length]),t.jsxs(u.OuterContainer,{children:[t.jsxs(u.Container,{isError:!!j,children:[t.jsx(c.WhatsAppTextEditorHeader,{actions:y,ref:L,onActionSelect:function(e){if((null==h?void 0:h[e])&&L.current){const t=L.current.selectionStart;if(t===L.current.selectionEnd){q(null==h?void 0:h[e],t);const{text:n,html:r}=q(null==h?void 0:h[e],t);S(t+1),null==f||f(n,r)}else{const{text:t,html:n}=R(null==h?void 0:h[e]);null==f||f(t,n)}}},RightComponent:C,onEmojiClick:function(e){const{text:t,html:n}=H(e);null==f||f(t,n)}}),t.jsx(u.TextSpace,Object.assign({ref:L,onChange:function(e){const t=e.target.value,n=v.getHTML(t);null==f||f(t,n)}},O,{rows:T}))]}),j&&j!==d?t.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx(n.default,{width:16,height:16,color:o.COLORS.content.negative}),t.jsx(i.BodyCaption,{color:o.COLORS.content.negative,children:j})]}):t.jsx(t.Fragment,{children:m&&(null==L?void 0:L.current)?t.jsxs(i.BodyCaption,{style:{color:j===d||(null===(p=null==L?void 0:L.current)||void 0===p?void 0:p.value.length)>m?o.COLORS.content.negative:o.COLORS.content.secondary},children:[L.current.value.length,"/",m]}):t.jsx(t.Fragment,{})})]})});p.displayName="WhatsAppTextEditor",exports.WhatsAppTextEditor=p;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),n=require("../../assets/icons/info.svg.js"),r=require("../../helpers/BaseWhatsappContentLang.helper.js"),l=require("react"),o=require("../../constants/Theme.js"),i=require("../TypographyStyle.js"),u=require("./CustomEditor.styled.js"),c=require("./WhatsAppTextEditorHeader.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(l);const d="Character limit reached",v=new r.BaseWhatsappContentLangHelper,h={[c.EditorActionTypes.BOLD]:"*",[c.EditorActionTypes.ITALIC]:"_",[c.EditorActionTypes.STRIKETHROUGH]:"~"},p=a.default.forwardRef(((r,s)=>{var a,p,{onChange:f,onClickVariable:x,text:g,RightComponent:C,error:j,limit:m,onError:E,rows:T,actions:y}=r,O=e.__rest(r,["onChange","onClickVariable","text","RightComponent","error","limit","onError","rows","actions"]);const L=l.useRef(null);function S(e){const t=null==L?void 0:L.current;null!=t&&(t.selectionStart?(t.focus(),t.selectionEnd=e):t.focus())}function R(e){var t,n;let r=null!==(n=null===(t=L.current)||void 0===t?void 0:t.value)&&void 0!==n?n:"";if(L.current&&e){const t=L.current.selectionStart,n=L.current.selectionEnd,l=e;if(t===n)return H(l);{r=v.wrappWildcard(t,n,l,r);const e=v.getHTML(r);return L.current.value=r,{text:r,html:e}}}return{text:r,html:r}}function H(e){var t,n;let r=null!==(n=null===(t=L.current)||void 0===t?void 0:t.value)&&void 0!==n?n:"";if(L.current&&e){const t=L.current.selectionStart;if(t===L.current.selectionEnd)return q(e,t)}return{text:r,html:r}}function q(e,t){var n,r;let l=null!==(r=null===(n=L.current)||void 0===n?void 0:n.value)&&void 0!==r?r:"";l=l.slice(0,t)+e+l.slice(t);const o=v.getHTML(l);return L.current.value=l,{text:l,html:o}}return l.useImperativeHandle(s,(()=>({addTextOrWrap:R,addText:H,get(){var e,t;return null!==(t=null===(e=L.current)||void 0===e?void 0:e.value)&&void 0!==t?t:""},setCaretPosition:S}))),l.useEffect((()=>{if(null==L?void 0:L.current){L.current.value=g||"";const e=v.getHTML(g||"");null==f||f(g||"",e)}}),[g]),l.useEffect((()=>{var e,t;(null===(e=null==L?void 0:L.current)||void 0===e?void 0:e.value)&&m&&((null===(t=null==L?void 0:L.current)||void 0===t?void 0:t.value.length)>m?null==E||E(d):null==E||E(null!=j?j:""))}),[null===(a=null==L?void 0:L.current)||void 0===a?void 0:a.value.length]),t.jsxs(u.OuterContainer,{children:[t.jsxs(u.Container,{isError:!!j,children:[t.jsx(c.WhatsAppTextEditorHeader,{actions:y,ref:L,onActionSelect:function(e){if((null==h?void 0:h[e])&&L.current){const t=L.current.selectionStart;if(t===L.current.selectionEnd){q(null==h?void 0:h[e],t);const{text:n,html:r}=q(null==h?void 0:h[e],t);S(t+1),null==f||f(n,r)}else{const{text:t,html:n}=R(null==h?void 0:h[e]);null==f||f(t,n)}}},RightComponent:C,onEmojiClick:function(e){const{text:t,html:n}=H(e);null==f||f(t,n)}}),t.jsx(u.TextSpace,Object.assign({ref:L,onChange:function(e){const t=e.target.value,n=v.getHTML(t);null==f||f(t,n)}},O,{rows:T}))]}),j&&j!==d?t.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx(n.default,{width:16,height:16,color:o.COLORS.content.negative}),t.jsx(i.BodyCaption,{color:o.COLORS.content.negative,children:j})]}):t.jsx(t.Fragment,{children:m&&(null==L?void 0:L.current)?t.jsxs(i.BodyCaption,{style:{color:j===d||(null===(p=null==L?void 0:L.current)||void 0===p?void 0:p.value.length)>m?o.COLORS.content.negative:o.COLORS.content.secondary},children:[L.current.value.length,"/",m]}):t.jsx(t.Fragment,{})})]})}));p.displayName="WhatsAppTextEditor",exports.WhatsAppTextEditor=p;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),o=require("styled-components"),i=require("../../hooks/useOutside.js"),r=require("../../constants/Theme.js"),s=require("../../assets/icons/bold.svg.js"),n=require("../../assets/icons/emoji.svg.js"),d=require("../../assets/icons/italic.svg.js"),c=require("../../assets/icons/strikeThrough.svg.js"),l=require("../tooltips/Tooltip.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var u=a(t),x=a(o);let j=()=>e.jsx(e.Fragment,{});"undefined"!=typeof window&&Promise.resolve().then(function(){return p(require("emoji-picker-react"))}).then(e=>{j=e.default});const O=e=>e?r.COLORS.background.inverseLight:r.COLORS.content.placeholder,h=x.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),o=require("styled-components"),i=require("../../hooks/useOutside.js"),r=require("../../constants/Theme.js"),s=require("../../assets/icons/bold.svg.js"),n=require("../../assets/icons/emoji.svg.js"),d=require("../../assets/icons/italic.svg.js"),c=require("../../assets/icons/strikeThrough.svg.js"),l=require("../tooltips/Tooltip.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var u=a(t),x=a(o);let j=()=>e.jsx(e.Fragment,{});"undefined"!=typeof window&&Promise.resolve().then((function(){return p(require("emoji-picker-react"))})).then((e=>{j=e.default}));const O=e=>e?r.COLORS.background.inverseLight:r.COLORS.content.placeholder,h=x.default.div`
2
2
  background: ${r.COLORS.surface.subdued};
3
3
  border-bottom: 1px solid ${r.COLORS.stroke.primary};
4
4
  display: flex;
@@ -31,4 +31,4 @@
31
31
  position: absolute;
32
32
  top: calc(100% + 8px);
33
33
  z-index: 1;
34
- `;var y;exports.EditorActionTypes=void 0,(y=exports.EditorActionTypes||(exports.EditorActionTypes={})).BOLD="BOLD",y.ITALIC="ITALIC",y.STRIKETHROUGH="STRIKETHROUGH",y.EMOJI="EMOJI";const b=u.default.forwardRef(({onActionSelect:o,RightComponent:r,onEmojiClick:a,actions:p},u)=>{const x=t.useRef(null),[y,b]=t.useState({[exports.EditorActionTypes.BOLD]:!1,[exports.EditorActionTypes.ITALIC]:!1,[exports.EditorActionTypes.STRIKETHROUGH]:!1,[exports.EditorActionTypes.EMOJI]:!1}),v=t.useCallback(()=>{b(e=>Object.assign(Object.assign({},e),{[exports.EditorActionTypes.EMOJI]:!1}))},[y]);function I(e,t){var i;null===(i=e.preventDefault)||void 0===i||i.call(e),t===exports.EditorActionTypes.EMOJI&&b(e=>Object.assign(Object.assign({},e),{[exports.EditorActionTypes.EMOJI]:!y.EMOJI})),o(t)}return i.useOutside(x,()=>{v()}),(null==p?void 0:p.length)||r?e.jsxs(h,{children:[(null==p?void 0:p.includes(exports.EditorActionTypes.EMOJI))&&e.jsxs(e.Fragment,{children:[e.jsx(l.Tooltip,{body:"Emoji",placement:"bottom",children:e.jsx(f,{style:{marginLeft:0},active:!!y.EMOJI,onClick:e=>I(e,exports.EditorActionTypes.EMOJI),children:e.jsx(n.default,{width:16,height:16,color:O(y.EMOJI)})})}),y.EMOJI&&e.jsx(g,{ref:x,children:e.jsx(j,{onEmojiClick:e=>{v(),null==a||a(e.emoji)}})})]}),(null==p?void 0:p.includes(exports.EditorActionTypes.BOLD))&&e.jsxs(e.Fragment,{children:[e.jsx(T,{}),e.jsx(l.Tooltip,{body:"Bold",placement:"bottom",children:e.jsx(f,{active:!!y.BOLD,onClick:e=>I(e,exports.EditorActionTypes.BOLD),children:e.jsx(s.default,{width:10,height:17,color:O(y.BOLD)})})})]}),(null==p?void 0:p.includes(exports.EditorActionTypes.ITALIC))&&e.jsxs(e.Fragment,{children:[e.jsx(T,{}),e.jsx(l.Tooltip,{body:"Italics",placement:"bottom",children:e.jsx(f,{onClick:e=>I(e,exports.EditorActionTypes.ITALIC),active:!!y.ITALIC,children:e.jsx(d.default,{width:9,height:16,color:O(y.ITALIC)})})})]}),(null==p?void 0:p.includes(exports.EditorActionTypes.STRIKETHROUGH))&&e.jsxs(e.Fragment,{children:[e.jsx(T,{}),e.jsx(l.Tooltip,{body:"Strikethrough",placement:"bottom",children:e.jsx(f,{active:!!y.STRIKETHROUGH,style:{borderRight:0},onClick:e=>I(e,exports.EditorActionTypes.STRIKETHROUGH),children:e.jsx(c.default,{width:12,height:18,color:O(y.STRIKETHROUGH)})})})]}),e.jsx(E,{children:r&&e.jsx(r,{})})]}):e.jsx(e.Fragment,{})});b.displayName="WhatsAppTextEditorHeader",exports.CustomRightBorder=T,exports.WhatsAppTextEditorHeader=b;
34
+ `;var y;exports.EditorActionTypes=void 0,(y=exports.EditorActionTypes||(exports.EditorActionTypes={})).BOLD="BOLD",y.ITALIC="ITALIC",y.STRIKETHROUGH="STRIKETHROUGH",y.EMOJI="EMOJI";const b=u.default.forwardRef(((o,r)=>{let{onActionSelect:a,RightComponent:p,onEmojiClick:u,actions:x}=o;const y=t.useRef(null),[b,v]=t.useState({[exports.EditorActionTypes.BOLD]:!1,[exports.EditorActionTypes.ITALIC]:!1,[exports.EditorActionTypes.STRIKETHROUGH]:!1,[exports.EditorActionTypes.EMOJI]:!1}),I=t.useCallback((()=>{v((e=>Object.assign(Object.assign({},e),{[exports.EditorActionTypes.EMOJI]:!1})))}),[b]);function m(e,t){var o;null===(o=e.preventDefault)||void 0===o||o.call(e),t===exports.EditorActionTypes.EMOJI&&v((e=>Object.assign(Object.assign({},e),{[exports.EditorActionTypes.EMOJI]:!b.EMOJI}))),a(t)}return i.useOutside(y,(()=>{I()})),(null==x?void 0:x.length)||p?e.jsxs(h,{children:[(null==x?void 0:x.includes(exports.EditorActionTypes.EMOJI))&&e.jsxs(e.Fragment,{children:[e.jsx(l.Tooltip,{body:"Emoji",placement:"bottom",children:e.jsx(f,{style:{marginLeft:0},active:!!b.EMOJI,onClick:e=>m(e,exports.EditorActionTypes.EMOJI),children:e.jsx(n.default,{width:16,height:16,color:O(b.EMOJI)})})}),b.EMOJI&&e.jsx(g,{ref:y,children:e.jsx(j,{onEmojiClick:e=>{I(),null==u||u(e.emoji)}})})]}),(null==x?void 0:x.includes(exports.EditorActionTypes.BOLD))&&e.jsxs(e.Fragment,{children:[e.jsx(T,{}),e.jsx(l.Tooltip,{body:"Bold",placement:"bottom",children:e.jsx(f,{active:!!b.BOLD,onClick:e=>m(e,exports.EditorActionTypes.BOLD),children:e.jsx(s.default,{width:10,height:17,color:O(b.BOLD)})})})]}),(null==x?void 0:x.includes(exports.EditorActionTypes.ITALIC))&&e.jsxs(e.Fragment,{children:[e.jsx(T,{}),e.jsx(l.Tooltip,{body:"Italics",placement:"bottom",children:e.jsx(f,{onClick:e=>m(e,exports.EditorActionTypes.ITALIC),active:!!b.ITALIC,children:e.jsx(d.default,{width:9,height:16,color:O(b.ITALIC)})})})]}),(null==x?void 0:x.includes(exports.EditorActionTypes.STRIKETHROUGH))&&e.jsxs(e.Fragment,{children:[e.jsx(T,{}),e.jsx(l.Tooltip,{body:"Strikethrough",placement:"bottom",children:e.jsx(f,{active:!!b.STRIKETHROUGH,style:{borderRight:0},onClick:e=>m(e,exports.EditorActionTypes.STRIKETHROUGH),children:e.jsx(c.default,{width:12,height:18,color:O(b.STRIKETHROUGH)})})})]}),e.jsx(E,{children:p&&e.jsx(p,{})})]}):e.jsx(e.Fragment,{})}));b.displayName="WhatsAppTextEditorHeader",exports.CustomRightBorder=T,exports.WhatsAppTextEditorHeader=b;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/alert.svg.js"),s=require("../../constants/Theme.js"),n=require("../modals/styledModal.js"),l=require("../TypographyStyle.js"),o=require("./AccessTokenTroubleshootDialog.styles.js");const r=({info:t,hideBullet:s,last:n})=>e.jsxs(o.EachStep,{last:n,children:[!s&&e.jsx(o.BulletWrapper,{children:e.jsx(o.Bullet,{})}),e.jsx(l.BodyCaption,{dangerouslySetInnerHTML:{__html:t}})]});exports.AccessTokenTroubleshootDialog=({onCancel:i,titleIconContainerStyles:a,isModalOpen:c,title:d,desc:h,primaryButton:u,TitleIcon:j,stepsDetails:y,titleIconColor:x,secondaryButtonText:p,content:g})=>e.jsxs(n.StyledModal,{open:!!c,primaryButton:u?Object.assign({},u):void 0,secondaryButton:{buttonText:null!=p?p:"Cancel",onClick:i,buttonType:"tertiaryGray"},onClose:i,children:[e.jsxs(o.Header,{children:[e.jsx(o.IconContainer,{style:Object.assign({},a),children:j?e.jsx(j,{width:18,height:18,color:x}):e.jsx(t.default,{width:18,height:18,color:s.COLORS.content.negative})}),e.jsx(l.TitleMedium,{children:d})]}),e.jsx(o.Description,{children:e.jsx(l.BodySecondary,{dangerouslySetInnerHTML:{__html:h}})}),e.jsxs(o.StepsContainer,{children:[y&&!!y.length&&e.jsxs(e.Fragment,{children:[e.jsx(l.TitleSmall,{children:"Follow the steps:"}),y.map((t,s)=>e.jsx(r,{info:t.info,hideBullet:t.hideBullet,last:y.length-1===s},s))]}),g&&e.jsx(l.BodySecondary,{dangerouslySetInnerHTML:{__html:g}})]})]});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/alert.svg.js"),s=require("../../constants/Theme.js"),n=require("../modals/styledModal.js"),l=require("../TypographyStyle.js"),o=require("./AccessTokenTroubleshootDialog.styles.js");const r=t=>{let{info:s,hideBullet:n,last:r}=t;return e.jsxs(o.EachStep,{last:r,children:[!n&&e.jsx(o.BulletWrapper,{children:e.jsx(o.Bullet,{})}),e.jsx(l.BodyCaption,{dangerouslySetInnerHTML:{__html:s}})]})};exports.AccessTokenTroubleshootDialog=i=>{let{onCancel:a,titleIconContainerStyles:c,isModalOpen:d,title:u,desc:h,primaryButton:j,TitleIcon:y,stepsDetails:x,titleIconColor:p,secondaryButtonText:g,content:T}=i;return e.jsxs(n.StyledModal,{open:!!d,primaryButton:j?Object.assign({},j):void 0,secondaryButton:{buttonText:null!=g?g:"Cancel",onClick:a,buttonType:"tertiaryGray"},onClose:a,children:[e.jsxs(o.Header,{children:[e.jsx(o.IconContainer,{style:Object.assign({},c),children:y?e.jsx(y,{width:18,height:18,color:p}):e.jsx(t.default,{width:18,height:18,color:s.COLORS.content.negative})}),e.jsx(l.TitleMedium,{children:u})]}),e.jsx(o.Description,{children:e.jsx(l.BodySecondary,{dangerouslySetInnerHTML:{__html:h}})}),e.jsxs(o.StepsContainer,{children:[x&&!!x.length&&e.jsxs(e.Fragment,{children:[e.jsx(l.TitleSmall,{children:"Follow the steps:"}),x.map(((t,s)=>e.jsx(r,{info:t.info,hideBullet:t.hideBullet,last:x.length-1===s},s)))]}),T&&e.jsx(l.BodySecondary,{dangerouslySetInnerHTML:{__html:T}})]})]})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),o=require("../TypographyStyle.js"),t=require("../button/Button.js"),n=require("../icon-button/IconButton.js"),i=require("./Accordion.style.js"),l=require("./AccordionArrow.js");exports.BikAccordion=s=>{var c,d,a,u;const[h,v]=r.useState(!1),p=r.useRef(null),x=r.useRef(null);r.useEffect(()=>{s.autoOpen&&g(s.autoOpen,{})},[s.autoOpen]),r.useEffect(()=>{void 0!==s.isOpen&&g(s.isOpen,{})},[s.isOpen]);const g=(e,r)=>{var o,t;x.current&&p.current&&("keydown"===r.type&&"Enter"!==r.key||(e!==h&&v(e),e?(x.current.style.maxHeight=(null!==(o=s.childrenMaxHeight)&&void 0!==o?o:x.current.scrollHeight)+"px",p.current.style.transform="rotate(180deg)",p.current.style.transition="transform 0.25s ease-in-out",x.current.style.transition="max-height 0.25s ease-in-out"):(x.current.style.maxHeight="",p.current.style.transform="rotate(0deg)",p.current.style.transition="transform 0.25s ease-in-out",x.current.style.transition="padding 0s"),null===(t=s.onToggleAccordion)||void 0===t||t.call(s,e)))};return r.useEffect(()=>{const e=new MutationObserver(()=>{h&&x.current&&(x.current.style.maxHeight=x.current.scrollHeight+"px")});return x.current&&e.observe(x.current,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[h]),r.useEffect(()=>{var e;h&&(null==s?void 0:s.refresh)&&(null===(e=null==x?void 0:x.current)||void 0===e?void 0:e.scrollHeight)&&!s.childrenMaxHeight&&setTimeout(()=>{x.current.style.maxHeight=x.current.scrollHeight+"px"},100)},[h,null==s?void 0:s.refresh,null===(c=null==x?void 0:x.current)||void 0===c?void 0:c.scrollHeight]),e.jsxs(i.default,{className:"accordion",isActive:h,width:null==s?void 0:s.width,contentMargin:null==s?void 0:s.contentMargin,headerPadding:s.headerPadding,skipHoverState:s.skipHoverHeader,showBorders:s.showBorders,borderColor:s.borderColor,backgroundColor:s.backgroundColor,openDirection:s.openDirection,borderRadius:s.borderRadius,children:[e.jsxs("div",{className:"accordion__overview "+(h?"active":""),style:null!==(d=null==s?void 0:s.containerStyle)&&void 0!==d?d:{},onClick:e=>g(!h,e),onKeyDown:e=>g(!h,e),role:"button",tabIndex:0,children:[!s.rightActionComponent&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"accordion__overview__header",style:null!==(a=s.headerStyles)&&void 0!==a?a:{},children:[e.jsxs(i.AccordionHeaderGroup,{children:["string"==typeof s.header?e.jsx(o.TitleRegular,{children:null==s?void 0:s.header}):s.header,s.buttonLinkText&&e.jsx(t.Button,{buttonText:s.buttonLinkText,buttonType:"text",darkMode:!0,onClick:s.onButtonLinkClick})]}),e.jsxs(i.AccordionHeaderGroup2,{children:[s.headerButtons&&e.jsx("div",{className:"accordion__overview__header-buttons",children:null===(u=s.headerButtons)||void 0===u?void 0:u.map(r=>e.jsx(n.IconButton,{Icon:r.icon,onClick:e=>{e.stopPropagation(),r.onClick()},width:16,height:16,style:r.style,title:r.title},r.title))}),e.jsx(l.default,{arrowColor:s.arrowColor,isNewIcon:!0,ref:p})]})]}),(null==s?void 0:s.subHeader)?null==s?void 0:s.subHeader:null]}),s.rightActionComponent&&e.jsxs("div",{className:"accordion__overview__header",children:[e.jsxs("div",{className:"accordion__overview__title-wrapper",children:[e.jsx(l.default,{arrowColor:s.arrowColor,isNewIcon:!0,ref:p}),"string"==typeof s.header?e.jsx(o.TitleRegular,{children:null==s?void 0:s.header}):s.header]}),e.jsx("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},role:"button",tabIndex:0,children:s.rightActionComponent})]}),(null==s?void 0:s.caption)&&e.jsx("div",{className:"accordion__overview__caption",children:e.jsx(o.BodySecondary,{children:e.jsx("div",{style:s.captionStyle,children:s.caption})})})]}),e.jsx("div",{ref:x,className:"accordion__content",children:s.children})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),o=require("../TypographyStyle.js"),t=require("../button/Button.js"),n=require("../icon-button/IconButton.js"),i=require("./Accordion.style.js"),l=require("./AccordionArrow.js");exports.BikAccordion=s=>{var c,d,a,u;const[h,v]=r.useState(!1),p=r.useRef(null),x=r.useRef(null);r.useEffect((()=>{s.autoOpen&&g(s.autoOpen,{})}),[s.autoOpen]),r.useEffect((()=>{void 0!==s.isOpen&&g(s.isOpen,{})}),[s.isOpen]);const g=(e,r)=>{var o,t;x.current&&p.current&&("keydown"===r.type&&"Enter"!==r.key||(e!==h&&v(e),e?(x.current.style.maxHeight=(null!==(o=s.childrenMaxHeight)&&void 0!==o?o:x.current.scrollHeight)+"px",p.current.style.transform="rotate(180deg)",p.current.style.transition="transform 0.25s ease-in-out",x.current.style.transition="max-height 0.25s ease-in-out"):(x.current.style.maxHeight="",p.current.style.transform="rotate(0deg)",p.current.style.transition="transform 0.25s ease-in-out",x.current.style.transition="padding 0s"),null===(t=s.onToggleAccordion)||void 0===t||t.call(s,e)))};return r.useEffect((()=>{const e=new MutationObserver((()=>{h&&x.current&&(x.current.style.maxHeight=x.current.scrollHeight+"px")}));return x.current&&e.observe(x.current,{childList:!0,subtree:!0}),()=>{e.disconnect()}}),[h]),r.useEffect((()=>{var e;h&&(null==s?void 0:s.refresh)&&(null===(e=null==x?void 0:x.current)||void 0===e?void 0:e.scrollHeight)&&!s.childrenMaxHeight&&setTimeout((()=>{x.current.style.maxHeight=x.current.scrollHeight+"px"}),100)}),[h,null==s?void 0:s.refresh,null===(c=null==x?void 0:x.current)||void 0===c?void 0:c.scrollHeight]),e.jsxs(i.default,{className:"accordion",isActive:h,width:null==s?void 0:s.width,contentMargin:null==s?void 0:s.contentMargin,headerPadding:s.headerPadding,skipHoverState:s.skipHoverHeader,showBorders:s.showBorders,borderColor:s.borderColor,backgroundColor:s.backgroundColor,openDirection:s.openDirection,borderRadius:s.borderRadius,children:[e.jsxs("div",{className:"accordion__overview "+(h?"active":""),style:null!==(d=null==s?void 0:s.containerStyle)&&void 0!==d?d:{},onClick:e=>g(!h,e),onKeyDown:e=>g(!h,e),role:"button",tabIndex:0,children:[!s.rightActionComponent&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"accordion__overview__header",style:null!==(a=s.headerStyles)&&void 0!==a?a:{},children:[e.jsxs(i.AccordionHeaderGroup,{children:["string"==typeof s.header?e.jsx(o.TitleRegular,{children:null==s?void 0:s.header}):s.header,s.buttonLinkText&&e.jsx(t.Button,{buttonText:s.buttonLinkText,buttonType:"text",darkMode:!0,onClick:s.onButtonLinkClick})]}),e.jsxs(i.AccordionHeaderGroup2,{children:[s.headerButtons&&e.jsx("div",{className:"accordion__overview__header-buttons",children:null===(u=s.headerButtons)||void 0===u?void 0:u.map((r=>e.jsx(n.IconButton,{Icon:r.icon,onClick:e=>{e.stopPropagation(),r.onClick()},width:16,height:16,style:r.style,title:r.title},r.title)))}),e.jsx(l.default,{arrowColor:s.arrowColor,isNewIcon:!0,ref:p})]})]}),(null==s?void 0:s.subHeader)?null==s?void 0:s.subHeader:null]}),s.rightActionComponent&&e.jsxs("div",{className:"accordion__overview__header",children:[e.jsxs("div",{className:"accordion__overview__title-wrapper",children:[e.jsx(l.default,{arrowColor:s.arrowColor,isNewIcon:!0,ref:p}),"string"==typeof s.header?e.jsx(o.TitleRegular,{children:null==s?void 0:s.header}):s.header]}),e.jsx("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},role:"button",tabIndex:0,children:s.rightActionComponent})]}),(null==s?void 0:s.caption)&&e.jsx("div",{className:"accordion__overview__caption",children:e.jsx(o.BodySecondary,{children:e.jsx("div",{style:s.captionStyle,children:s.caption})})})]}),e.jsx("div",{ref:x,className:"accordion__content",children:s.children})]})};
@@ -28,7 +28,7 @@
28
28
  display: flex;
29
29
  gap: 8px;
30
30
  }
31
- &:hover {
31
+ :hover {
32
32
  background: ${e=>e.skipHoverState?null:r.COLORS.surface.subdued};
33
33
  border-radius: ${e=>e.skipHoverState?null:"4px"};
34
34
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const l=r(require("react")).default.forwardRef((r,l)=>{var o,t;return e.jsxs("div",{ref:l,className:"d-flex align-items-center",children:[!r.isNewIcon&&e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.7071 10.7071C7.07713 10.0771 7.5233 9 8.41421 9H15.5858C16.4767 9 16.9228 10.0771 16.2929 10.7071L12.7071 14.2929C12.3166 14.6834 11.6834 14.6834 11.2929 14.2929L7.7071 10.7071Z",fill:null!==(o=r.arrowColor)&&void 0!==o?o:"currentColor"})}),r.isNewIcon&&e.jsx("svg",{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.528758 0.52827C0.789108 0.26792 1.21122 0.26792 1.47157 0.52827L5.00016 4.05687L8.52876 0.52827C8.78911 0.26792 9.21122 0.26792 9.47157 0.52827C9.73192 0.788619 9.73192 1.21073 9.47157 1.47108L5.47157 5.47108C5.21122 5.73143 4.78911 5.73143 4.52876 5.47108L0.528758 1.47108C0.268409 1.21073 0.268409 0.788619 0.528758 0.52827Z",fill:null!==(t=r.arrowColor)&&void 0!==t?t:"currentColor"})})]})});l.displayName="BikAccordionArrow",exports.default=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const l=r(require("react")).default.forwardRef(((r,l)=>{var o,t;return e.jsxs("div",{ref:l,className:"d-flex align-items-center",children:[!r.isNewIcon&&e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.7071 10.7071C7.07713 10.0771 7.5233 9 8.41421 9H15.5858C16.4767 9 16.9228 10.0771 16.2929 10.7071L12.7071 14.2929C12.3166 14.6834 11.6834 14.6834 11.2929 14.2929L7.7071 10.7071Z",fill:null!==(o=r.arrowColor)&&void 0!==o?o:"currentColor"})}),r.isNewIcon&&e.jsx("svg",{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.528758 0.52827C0.789108 0.26792 1.21122 0.26792 1.47157 0.52827L5.00016 4.05687L8.52876 0.52827C8.78911 0.26792 9.21122 0.26792 9.47157 0.52827C9.73192 0.788619 9.73192 1.21073 9.47157 1.47108L5.47157 5.47108C5.21122 5.73143 4.78911 5.73143 4.52876 5.47108L0.528758 1.47108C0.268409 1.21073 0.268409 0.788619 0.528758 0.52827Z",fill:null!==(t=r.arrowColor)&&void 0!==t?t:"currentColor"})})]})}));l.displayName="BikAccordionArrow",exports.default=l;
@@ -11,7 +11,7 @@
11
11
  border-radius: 4px;
12
12
  border: ${e=>{var o;return null!==(o=e.border)&&void 0!==o?o:`1px solid ${r.BASE_COLORS.grayscale[200]}`}};
13
13
  cursor: pointer;
14
- &:hover {
14
+ :hover {
15
15
  background-color: ${e=>e.isSelected||e.isError?"":r.BASE_COLORS.grayscale[200]};
16
16
  border: ${e=>e.isSelected||e.isError?"":e.isConfigured?`1px solid ${r.BASE_COLORS.grayscale[400]}`:`1px dashed ${r.BASE_COLORS.grayscale[400]}`};
17
17
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../constants/Theme.js"),o=require("../../assets/icons/similar.svg.js"),s=require("../TypographyStyle.js"),i=require("./ActionButton.styled.js");exports.ActionButtons=({state:t,buttonText:l,icon:c=o.default,isSelected:a,isError:d,onClick:S})=>{const{color:n,border:O}="CONFIGURED"===t?(({isSelected:e,isError:o})=>e&&o?{color:r.BASE_COLORS.negative[700],border:`1px solid ${r.BASE_COLORS.negative[700]}`}:e?{color:r.BASE_COLORS.brand[500],border:`1px solid ${r.BASE_COLORS.brand[500]}`}:o?{color:r.BASE_COLORS.grayscale[900],border:`1px solid ${r.BASE_COLORS.negative[700]}`}:{color:r.BASE_COLORS.grayscale[900],border:`1px solid ${r.BASE_COLORS.grayscale[200]}`})({isSelected:a,isError:d}):(({isSelected:e,isError:o})=>e&&o?{color:r.BASE_COLORS.negative[700],border:`1px solid ${r.BASE_COLORS.negative[700]}`}:e?{color:r.BASE_COLORS.brand[500],border:`1px solid ${r.BASE_COLORS.brand[500]}`}:o?{color:r.BASE_COLORS.grayscale[700],border:`1px solid ${r.BASE_COLORS.negative[700]}`}:{color:r.BASE_COLORS.grayscale[700],border:`1px dashed ${r.BASE_COLORS.grayscale[200]}`})({isSelected:a,isError:d}),E={height:20,width:20,color:n,style:{display:"block"},className:"icon"};return e.jsxs(i.ActionButtonContainer,{isSelected:a,isError:d,border:O,isConfigured:"CONFIGURED"===t,onClick:S,children:[e.jsx("div",{className:"action__icon",children:e.jsx(c,Object.assign({},E))}),e.jsx(s.BodyPrimary,{style:{fontWeight:600,color:n},children:l})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../constants/Theme.js"),o=require("../../assets/icons/similar.svg.js"),s=require("../TypographyStyle.js"),i=require("./ActionButton.styled.js");exports.ActionButtons=t=>{let{state:l,buttonText:c,icon:a=o.default,isSelected:d,isError:n,onClick:S}=t;const{color:O,border:E}="CONFIGURED"===l?(e=>{let{isSelected:o,isError:s}=e;return o&&s?{color:r.BASE_COLORS.negative[700],border:`1px solid ${r.BASE_COLORS.negative[700]}`}:o?{color:r.BASE_COLORS.brand[500],border:`1px solid ${r.BASE_COLORS.brand[500]}`}:s?{color:r.BASE_COLORS.grayscale[900],border:`1px solid ${r.BASE_COLORS.negative[700]}`}:{color:r.BASE_COLORS.grayscale[900],border:`1px solid ${r.BASE_COLORS.grayscale[200]}`}})({isSelected:d,isError:n}):(e=>{let{isSelected:o,isError:s}=e;return o&&s?{color:r.BASE_COLORS.negative[700],border:`1px solid ${r.BASE_COLORS.negative[700]}`}:o?{color:r.BASE_COLORS.brand[500],border:`1px solid ${r.BASE_COLORS.brand[500]}`}:s?{color:r.BASE_COLORS.grayscale[700],border:`1px solid ${r.BASE_COLORS.negative[700]}`}:{color:r.BASE_COLORS.grayscale[700],border:`1px dashed ${r.BASE_COLORS.grayscale[200]}`}})({isSelected:d,isError:n}),C={height:20,width:20,color:O,style:{display:"block"},className:"icon"};return e.jsxs(i.ActionButtonContainer,{isSelected:d,isError:n,border:E,isConfigured:"CONFIGURED"===l,onClick:S,children:[e.jsx("div",{className:"action__icon",children:e.jsx(a,Object.assign({},C))}),e.jsx(s.BodyPrimary,{style:{fontWeight:600,color:O},children:c})]})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),a=require("react/jsx-runtime"),s=require("../../assets/icons/back_icon.svg.js"),i=require("../../assets/icons/chevronRightAlt.svg.js"),l=require("../../assets/icons/cross.svg.js"),t=require("../../assets/icons/plus.svg.js"),r=require("../../assets/icons/undo.svg.js"),n=require("react"),o=require("./AddVariableV2.styled.js"),d=require("../button/Button.js"),c=require("../icon-button/IconButton.js"),u=require("../searchBar/searchBar.js"),v=require("../tooltips/Tooltip.js"),b=require("../../constants/Theme.js"),h=require("../modals/modal.styled.js"),m=require("../switch/Switch.js"),j=require("../TypographyStyle.js");const p=n.memo(p=>{const{data:y,hasHeader:g=!0,needsBorder:x=!0,styledCloseBtn:f=!1,readonly:S=!1}=p,[N,C]=n.useState({}),[V,w]=n.useState(),[_,T]=n.useState(""),[O,B]=n.useState(""),[k,q]=n.useState(!0),L=/.*\..*/,[F,I]=n.useState(p.data),[E,A]=n.useState(!0);n.useEffect(()=>{const e={};y.forEach(a=>{e[a.displayName]=[]}),w(e)},[y]),n.useEffect(()=>{z(!0)},[]),n.useEffect(()=>{z(E,!_)},[N,_]),n.useEffect(()=>{A(!0),B(""),R([],_),w(e=>Object.assign(Object.assign({},e),{[_]:[]})),T("");const e=p.data.map(e=>$(e)).filter(e=>null!==e);I(e),e.length>0?q(!0):q(!1)},[p.reRender]),n.useEffect(()=>{let e=p.data;_&&(e=[N[_]]);H(e,E).length>0?q(!0):q(!1)},[O]);const H=(e,a=!1)=>e.flatMap(e=>Object.keys(e.variables).filter(s=>{var i;return(null===(i=e.variables[s].displayName)||void 0===i?void 0:i.toLowerCase().includes(O.toLowerCase()))&&(!a||e.variables[s].isAvailable===a)||P(e.variables[s])})),R=(e,a)=>{const s=y.find(e=>e.displayName===a);if(s){let i=s;e.forEach((e,a)=>{i=i.variables[e]}),C(e=>Object.assign(Object.assign({},e),{[a]:i}))}},P=e=>{let a=!1;if(e.isSubHeader&&e.variables){const s=Object.keys(e.variables);for(let i=0;i<s.length;i++){const l=s[i];if(e.variables&&e.variables[l].displayName.toLowerCase().includes(O.toLowerCase())&&e.variables[l].isAvailable===E){a=!0;break}}}return a},z=(e,a=!1)=>{if(A(e),e){let s=[];if(!_||a)s=p.data.map(e=>$(e)).filter(e=>null!==e);else{const e=N[_];s=p.data.filter(e=>e.displayName===_).map(a=>$(a,e)).filter(e=>null!=e)}I(s),O&&(s=H(s,e)),s.length>0?q(!0):q(!1)}else if(I(p.data),O){H(p.data,e).length>0?q(!0):q(!1)}else q(!0)};function $(e,a,s={}){if(a)for(const i in e.variables)if(e.variables[i].displayName===a.displayName)for(const a in e.variables[i].variables)e.variables[i].variables[a].isAvailable&&(s[a]=e.variables[i].variables[a]);else e.variables[i].isSubHeader&&$(e.variables[i],a,s);else for(const a in e.variables)e.variables[a].isAvailable&&(s[a]=e.variables[a]);return 0===Object.keys(s).length?null:Object.assign(Object.assign({},e),{variables:s})}const M=e=>{const s=e.item.description;return e.readonly?a.jsx("div",{children:a.jsx(W,{item:e.item,readonly:e.readonly})}):a.jsx(a.Fragment,{children:a.jsx(v.Tooltip,{body:"",tooltipContent:a.jsx(j.BodyCaption,{color:b.COLORS.content.primaryInverse,style:{whiteSpace:"pre-line",padding:8},children:e.item.isAvailable?s?`• ${s}\n• Recommended here`:"Recommended here":"Not recommended here"}),width:300,delay:300,placement:"bottom",children:a.jsx("div",{children:a.jsx(W,{item:e.item})})})})},W=e=>a.jsx(d.Button,{darkMode:p.enableVariable?p.enableVariable:e.item.isAvailable,size:"chip",disabled:!!e.readonly&&!e.item.isSubHeader,LeadingIcon:e.item.isSubHeader||e.readonly?void 0:t.default,TrailingIcon:()=>e.item.isSubHeader?a.jsx("div",{className:"icon-trailing",style:{display:"flex"},children:a.jsx(i.default,{})}):a.jsx(a.Fragment,{}),buttonText:e.item.displayName}),D=(e,s)=>E&&!e.isAvailable?a.jsx(a.Fragment,{}):a.jsx("div",{onClick:e.isSubHeader?()=>{H([e],E).length||q(!1),B("");const a=[...V[_],s];R(a,_),w(e=>Object.assign(Object.assign({},e),{[_]:a}))}:()=>{p.customTrigger?(p.customTrigger(e),p.setShowVariable(!1)):p.isEvaluationList?J(e):p.setVariableValue(p.selectWithTypes?{actualValue:e.actualValue,variableType:e.variableType,needsFetching:e.needsFetching}:e.actualValue)},children:a.jsx(M,{item:e,readonly:S})}),G=(e,a)=>{const s=[...V[e.displayName],a];R(s,e.displayName),w(a=>Object.assign(Object.assign({},a),{[e.displayName]:s})),T(e.displayName)},J=e=>{if(e.actualValue.match(L)){const a=e.actualValue.replace("{{","").replace("}}","").split(".");let s=a[0];a.forEach((e,a)=>{if(0===a)return;const i=(e=>/\w+\[\d+\]/g.test(e))(e);if(i){const a=e.match(/(\w+)\[(\d+)\]/);if(a){const e=a[1],i=a[2];s+=`['${e}'][${i}]`}}else s+=`['${e}']`}),p.setVariableValue(p.selectWithTypes?{actualValue:s,variableType:e.variableType,needsFetching:e.needsFetching}:s)}else{const a=e.actualValueEval?e.actualValueEval:e.actualValue;p.setVariableValue(p.selectWithTypes?{actualValue:a,variableType:e.variableType,needsFetching:e.needsFetching}:a)}},K=(e,a)=>{if(p.customTrigger)p.customTrigger(e.variables[a]),p.setShowVariable(!1);else if(p.isEvaluationList){const s=e.variables[a];J(s)}else p.setVariableValue(p.selectWithTypes?{actualValue:e.variables[a].actualValue,variableType:e.variables[a].variableType,needsFetching:e.variables[a].needsFetching}:e.variables[a].actualValue)},Q=p.isModalState?void 0:{top:`${p.topPosition?p.topPosition:"small"===p.pickerSize?"300px":"60px"}`,left:`${p.leftPosition?p.leftPosition+24:430}px`};return a.jsx("div",{id:"varList",tabIndex:-1,children:a.jsxs(o.AddVariableStyled,{style:Q,onClick:e=>{e.stopPropagation()},pickerSize:p.pickerSize||"large",isModalState:p.isModalState,positionStrategy:p.positionStrategy,zIndex:p.zindex,height:p.height,needsBorder:x,width:p.width,children:[f&&a.jsx(h.CloseButtonContainer,{onClick:()=>{p.setShowVariable(!1)},style:{zIndex:300},children:a.jsx(l.default,{height:20,width:20,color:b.COLORS.content.secondary})}),p.showVariable&&a.jsxs("div",{className:"popup",children:[a.jsxs("div",{className:"sticky__bar",children:[g&&a.jsxs("div",{className:"header__bar",children:[a.jsx("div",{className:"add__variable",children:"Add a new variable"}),!f&&a.jsx("div",{onClick:()=>{p.setShowVariable(!1)},style:{display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(c.IconButton,{iconButtonType:"default",Icon:l.default})})]}),a.jsxs("div",{className:"search__bar",onBlur:e=>{p.onSearchBlur&&p.onSearchBlur(e)},children:[a.jsx(u.SearchBar,{width:"100%",isEnabled:!0,onChange:e=>{B(e)},onEnter:()=>{},reset:!O,placeholder:"Search...",variant:"default"}),a.jsxs("div",{style:{display:"flex",alignItems:"center",marginTop:8,justifyContent:"space-between"},children:[a.jsx(j.BodySecondary,{style:{color:b.COLORS.content.secondary},children:"Show only recommended variables"}),a.jsx(m.Switch,{value:E,onValueChange:a=>e.__awaiter(void 0,void 0,void 0,function*(){return yield z(a)})})]})]}),_&&V[_].length>0&&a.jsxs("div",{className:"nav__bar",children:[a.jsxs("div",{className:"left__nav",children:[a.jsx(c.IconButton,{Icon:s.default,style:{color:"#919191",display:"flex"},onClick:()=>{B("");const e=V[_].slice(0,-1);R(e,_),w(a=>Object.assign(Object.assign({},a),{[_]:e})),e.length||T("")}}),a.jsxs("div",{className:"block",children:[a.jsx(j.TitleSmall,{children:N[_].displayName}),N[_].description&&a.jsx(j.BodyCaption,{children:N[_].description})]})]}),a.jsxs("div",{className:"right__nav",children:[a.jsx(c.IconButton,{Icon:r.default,style:{display:"flex"},onClick:()=>{B(""),R([],_),w(e=>Object.assign(Object.assign({},e),{[_]:[]})),T("")}}),a.jsx("div",{children:"First page"})]})]})]}),!k&&a.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginTop:16},children:[a.jsx(j.TitleSmall,{children:"No results found!"}),E?a.jsx(j.BodyCaption,{children:"Sorry we could not find any recommended variables"}):a.jsx(j.BodyCaption,{children:`Sorry we could not find any results for "${O}"`})]}),a.jsx("div",{className:"wrapper",children:a.jsx("div",{className:"list__map",children:a.jsxs("div",{className:"items",children:[!_&&F.map(e=>{let s=[];return O&&(s=Object.keys(e.variables).filter(a=>{var s;return(null===(s=e.variables[a].displayName)||void 0===s?void 0:s.toLowerCase().includes(O.toLowerCase()))||P(e.variables[a])})),a.jsxs(a.Fragment,{children:[O?s.length>0?a.jsxs("div",{className:"block",children:[a.jsx("div",{className:"heading__font",children:null==e?void 0:e.displayName}),a.jsx(j.BodyCaption,{style:{marginBottom:8,color:"#616161"},children:null==e?void 0:e.description})]}):a.jsx(a.Fragment,{}):a.jsxs("div",{className:"block",children:[a.jsx("div",{className:"heading__font",children:null==e?void 0:e.displayName}),a.jsx(j.BodyCaption,{style:{marginBottom:8,color:"#616161"},children:null==e?void 0:e.description})]}),Object.keys(e.variables).map(s=>{var i;return O?(null===(i=e.variables[s].displayName)||void 0===i?void 0:i.toLowerCase().includes(O.toLowerCase()))||P(e.variables[s])?a.jsx("div",{onClick:e.variables[s].isSubHeader?()=>G(e,s):()=>K(e,s),children:a.jsx(M,{item:e.variables[s],readonly:S})}):a.jsx(a.Fragment,{}):a.jsx("div",{onClick:e.variables[s].isSubHeader?()=>G(e,s):()=>K(e,s),children:a.jsx(M,{item:e.variables[s],readonly:S})})})]})}),_&&a.jsx("div",{className:"list__map",children:a.jsx("div",{className:"items",style:{marginTop:16},children:Object.keys(N[_].variables).map((e,s)=>{var i;return O?(null===(i=N[_].variables[e].displayName)||void 0===i?void 0:i.toLowerCase().includes(O.toLowerCase()))||P(N[_].variables[e])?D(N[_].variables[e],e):a.jsx(a.Fragment,{}):D(N[_].variables[e],e)})})})]})})}),a.jsx("div",{className:"bottom__padding"})]})]})})},(e,a)=>e.enableVariable===a.enableVariable&&(e.leftPosition===a.leftPosition&&e.reRender===a.reRender));exports.AddVariableV2=p;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),a=require("react/jsx-runtime"),s=require("../../assets/icons/back_icon.svg.js"),i=require("../../assets/icons/chevronRightAlt.svg.js"),l=require("../../assets/icons/cross.svg.js"),t=require("../../assets/icons/plus.svg.js"),r=require("../../assets/icons/undo.svg.js"),n=require("react"),o=require("./AddVariableV2.styled.js"),d=require("../button/Button.js"),c=require("../icon-button/IconButton.js"),u=require("../searchBar/searchBar.js"),v=require("../tooltips/Tooltip.js"),b=require("../../constants/Theme.js"),h=require("../modals/modal.styled.js"),m=require("../switch/Switch.js"),j=require("../TypographyStyle.js");const p=n.memo((p=>{const{data:y,hasHeader:g=!0,needsBorder:x=!0,styledCloseBtn:f=!1,readonly:S=!1}=p,[N,C]=n.useState({}),[V,w]=n.useState(),[_,T]=n.useState(""),[O,B]=n.useState(""),[k,q]=n.useState(!0),L=/.*\..*/,[F,I]=n.useState(p.data),[E,A]=n.useState(!0);n.useEffect((()=>{const e={};y.forEach((a=>{e[a.displayName]=[]})),w(e)}),[y]),n.useEffect((()=>{z(!0)}),[]),n.useEffect((()=>{z(E,!_)}),[N,_]),n.useEffect((()=>{A(!0),B(""),R([],_),w((e=>Object.assign(Object.assign({},e),{[_]:[]}))),T("");const e=p.data.map((e=>$(e))).filter((e=>null!==e));I(e),e.length>0?q(!0):q(!1)}),[p.reRender]),n.useEffect((()=>{let e=p.data;_&&(e=[N[_]]);H(e,E).length>0?q(!0):q(!1)}),[O]);const H=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.flatMap((e=>Object.keys(e.variables).filter((s=>{var i;return(null===(i=e.variables[s].displayName)||void 0===i?void 0:i.toLowerCase().includes(O.toLowerCase()))&&(!a||e.variables[s].isAvailable===a)||P(e.variables[s])}))))},R=(e,a)=>{const s=y.find((e=>e.displayName===a));if(s){let i=s;e.forEach(((e,a)=>{i=i.variables[e]})),C((e=>Object.assign(Object.assign({},e),{[a]:i})))}},P=e=>{let a=!1;if(e.isSubHeader&&e.variables){const s=Object.keys(e.variables);for(let i=0;i<s.length;i++){const l=s[i];if(e.variables&&e.variables[l].displayName.toLowerCase().includes(O.toLowerCase())&&e.variables[l].isAvailable===E){a=!0;break}}}return a},z=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(A(e),e){let s=[];if(!_||a)s=p.data.map((e=>$(e))).filter((e=>null!==e));else{const e=N[_];s=p.data.filter((e=>e.displayName===_)).map((a=>$(a,e))).filter((e=>null!=e))}I(s),O&&(s=H(s,e)),s.length>0?q(!0):q(!1)}else if(I(p.data),O){H(p.data,e).length>0?q(!0):q(!1)}else q(!0)};function $(e,a){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a)for(const i in e.variables)if(e.variables[i].displayName===a.displayName)for(const a in e.variables[i].variables)e.variables[i].variables[a].isAvailable&&(s[a]=e.variables[i].variables[a]);else e.variables[i].isSubHeader&&$(e.variables[i],a,s);else for(const a in e.variables)e.variables[a].isAvailable&&(s[a]=e.variables[a]);return 0===Object.keys(s).length?null:Object.assign(Object.assign({},e),{variables:s})}const M=e=>{const s=e.item.description;return e.readonly?a.jsx("div",{children:a.jsx(W,{item:e.item,readonly:e.readonly})}):a.jsx(a.Fragment,{children:a.jsx(v.Tooltip,{body:"",tooltipContent:a.jsx(j.BodyCaption,{color:b.COLORS.content.primaryInverse,style:{whiteSpace:"pre-line",padding:8},children:e.item.isAvailable?s?`• ${s}\n• Recommended here`:"Recommended here":"Not recommended here"}),width:300,delay:300,placement:"bottom",children:a.jsx("div",{children:a.jsx(W,{item:e.item})})})})},W=e=>a.jsx(d.Button,{darkMode:p.enableVariable?p.enableVariable:e.item.isAvailable,size:"chip",disabled:!!e.readonly&&!e.item.isSubHeader,LeadingIcon:e.item.isSubHeader||e.readonly?void 0:t.default,TrailingIcon:()=>e.item.isSubHeader?a.jsx("div",{className:"icon-trailing",style:{display:"flex"},children:a.jsx(i.default,{})}):a.jsx(a.Fragment,{}),buttonText:e.item.displayName}),D=(e,s)=>E&&!e.isAvailable?a.jsx(a.Fragment,{}):a.jsx("div",{onClick:e.isSubHeader?()=>{H([e],E).length||q(!1),B("");const a=[...V[_],s];R(a,_),w((e=>Object.assign(Object.assign({},e),{[_]:a})))}:()=>{p.customTrigger?(p.customTrigger(e),p.setShowVariable(!1)):p.isEvaluationList?J(e):p.setVariableValue(p.selectWithTypes?{actualValue:e.actualValue,variableType:e.variableType,needsFetching:e.needsFetching}:e.actualValue)},children:a.jsx(M,{item:e,readonly:S})}),G=(e,a)=>{const s=[...V[e.displayName],a];R(s,e.displayName),w((a=>Object.assign(Object.assign({},a),{[e.displayName]:s}))),T(e.displayName)},J=e=>{if(e.actualValue.match(L)){const a=e.actualValue.replace("{{","").replace("}}","").split(".");let s=a[0];a.forEach(((e,a)=>{if(0===a)return;const i=(e=>/\w+\[\d+\]/g.test(e))(e);if(i){const a=e.match(/(\w+)\[(\d+)\]/);if(a){const e=a[1],i=a[2];s+=`['${e}'][${i}]`}}else s+=`['${e}']`})),p.setVariableValue(p.selectWithTypes?{actualValue:s,variableType:e.variableType,needsFetching:e.needsFetching}:s)}else{const a=e.actualValueEval?e.actualValueEval:e.actualValue;p.setVariableValue(p.selectWithTypes?{actualValue:a,variableType:e.variableType,needsFetching:e.needsFetching}:a)}},K=(e,a)=>{if(p.customTrigger)p.customTrigger(e.variables[a]),p.setShowVariable(!1);else if(p.isEvaluationList){const s=e.variables[a];J(s)}else p.setVariableValue(p.selectWithTypes?{actualValue:e.variables[a].actualValue,variableType:e.variables[a].variableType,needsFetching:e.variables[a].needsFetching}:e.variables[a].actualValue)},Q=p.isModalState?void 0:{top:`${p.topPosition?p.topPosition:"small"===p.pickerSize?"300px":"60px"}`,left:`${p.leftPosition?p.leftPosition+24:430}px`};return a.jsx("div",{id:"varList",tabIndex:-1,children:a.jsxs(o.AddVariableStyled,{style:Q,onClick:e=>{e.stopPropagation()},pickerSize:p.pickerSize||"large",isModalState:p.isModalState,positionStrategy:p.positionStrategy,zIndex:p.zindex,height:p.height,needsBorder:x,width:p.width,children:[f&&a.jsx(h.CloseButtonContainer,{onClick:()=>{p.setShowVariable(!1)},style:{zIndex:300},children:a.jsx(l.default,{height:20,width:20,color:b.COLORS.content.secondary})}),p.showVariable&&a.jsxs("div",{className:"popup",children:[a.jsxs("div",{className:"sticky__bar",children:[g&&a.jsxs("div",{className:"header__bar",children:[a.jsx("div",{className:"add__variable",children:"Add a new variable"}),!f&&a.jsx("div",{onClick:()=>{p.setShowVariable(!1)},style:{display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(c.IconButton,{iconButtonType:"default",Icon:l.default})})]}),a.jsxs("div",{className:"search__bar",onBlur:e=>{p.onSearchBlur&&p.onSearchBlur(e)},children:[a.jsx(u.SearchBar,{width:"100%",isEnabled:!0,onChange:e=>{B(e)},onEnter:()=>{},reset:!O,placeholder:"Search...",variant:"default"}),a.jsxs("div",{style:{display:"flex",alignItems:"center",marginTop:8,justifyContent:"space-between"},children:[a.jsx(j.BodySecondary,{style:{color:b.COLORS.content.secondary},children:"Show only recommended variables"}),a.jsx(m.Switch,{value:E,onValueChange:a=>e.__awaiter(void 0,void 0,void 0,(function*(){return yield z(a)}))})]})]}),_&&V[_].length>0&&a.jsxs("div",{className:"nav__bar",children:[a.jsxs("div",{className:"left__nav",children:[a.jsx(c.IconButton,{Icon:s.default,style:{color:"#919191",display:"flex"},onClick:()=>{B("");const e=V[_].slice(0,-1);R(e,_),w((a=>Object.assign(Object.assign({},a),{[_]:e}))),e.length||T("")}}),a.jsxs("div",{className:"block",children:[a.jsx(j.TitleSmall,{children:N[_].displayName}),N[_].description&&a.jsx(j.BodyCaption,{children:N[_].description})]})]}),a.jsxs("div",{className:"right__nav",children:[a.jsx(c.IconButton,{Icon:r.default,style:{display:"flex"},onClick:()=>{B(""),R([],_),w((e=>Object.assign(Object.assign({},e),{[_]:[]}))),T("")}}),a.jsx("div",{children:"First page"})]})]})]}),!k&&a.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginTop:16},children:[a.jsx(j.TitleSmall,{children:"No results found!"}),E?a.jsx(j.BodyCaption,{children:"Sorry we could not find any recommended variables"}):a.jsx(j.BodyCaption,{children:`Sorry we could not find any results for "${O}"`})]}),a.jsx("div",{className:"wrapper",children:a.jsx("div",{className:"list__map",children:a.jsxs("div",{className:"items",children:[!_&&F.map((e=>{let s=[];return O&&(s=Object.keys(e.variables).filter((a=>{var s;return(null===(s=e.variables[a].displayName)||void 0===s?void 0:s.toLowerCase().includes(O.toLowerCase()))||P(e.variables[a])}))),a.jsxs(a.Fragment,{children:[O?s.length>0?a.jsxs("div",{className:"block",children:[a.jsx("div",{className:"heading__font",children:null==e?void 0:e.displayName}),a.jsx(j.BodyCaption,{style:{marginBottom:8,color:"#616161"},children:null==e?void 0:e.description})]}):a.jsx(a.Fragment,{}):a.jsxs("div",{className:"block",children:[a.jsx("div",{className:"heading__font",children:null==e?void 0:e.displayName}),a.jsx(j.BodyCaption,{style:{marginBottom:8,color:"#616161"},children:null==e?void 0:e.description})]}),Object.keys(e.variables).map((s=>{var i;return O?(null===(i=e.variables[s].displayName)||void 0===i?void 0:i.toLowerCase().includes(O.toLowerCase()))||P(e.variables[s])?a.jsx("div",{onClick:e.variables[s].isSubHeader?()=>G(e,s):()=>K(e,s),children:a.jsx(M,{item:e.variables[s],readonly:S})}):a.jsx(a.Fragment,{}):a.jsx("div",{onClick:e.variables[s].isSubHeader?()=>G(e,s):()=>K(e,s),children:a.jsx(M,{item:e.variables[s],readonly:S})})}))]})})),_&&a.jsx("div",{className:"list__map",children:a.jsx("div",{className:"items",style:{marginTop:16},children:Object.keys(N[_].variables).map(((e,s)=>{var i;return O?(null===(i=N[_].variables[e].displayName)||void 0===i?void 0:i.toLowerCase().includes(O.toLowerCase()))||P(N[_].variables[e])?D(N[_].variables[e],e):a.jsx(a.Fragment,{}):D(N[_].variables[e],e)}))})})]})})}),a.jsx("div",{className:"bottom__padding"})]})]})})}),((e,a)=>e.enableVariable===a.enableVariable&&(e.leftPosition===a.leftPosition&&e.reRender===a.reRender)));exports.AddVariableV2=p;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../../assets/icons/graph.svg.js"),r=require("../../assets/icons/sparkle.svg.js"),s=require("../button/Button.js"),n=require("../modals/Modal.js"),o=require("../TypographyStyle.js");exports.ActivateBikAi=({open:l,onModalClose:d,onRightBtnClick:a,onLeftBtnClick:c,source:x})=>e.jsx(n.Modal,{open:l,centralContainerStyles:{height:"430px",width:"464px",borderRadius:"12px"},zIndex:40,onClose:d,closeOnOutsideClick:!0,children:e.jsxs("div",{children:[e.jsxs("div",{style:{height:"180px",width:"100%",backgroundColor:"rgba(142, 142, 142, 0.2)",display:"flex",justifyContent:"center",alignItems:"center",gap:"18px",padding:"24px"},children:[e.jsx("div",{children:e.jsx(i.default,{width:100,height:90})}),e.jsx("div",{children:"CHATBOT"===x?e.jsx(o.TitleMedium,{children:"Unlock higher conversion and ease agent work with BIK.AI"}):e.jsx(o.TitleMedium,{children:"Experience reduced Average Handling Time of your tickets with Bik.AI!"})})]}),e.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"16px",padding:"24px"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"4px"},children:[e.jsx(o.TitleLarge,{children:"Activate BIK AI"}),e.jsx(r.default,{width:32,height:32})]}),"CHATBOT"===x?e.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[e.jsx(o.BodyPrimary,{color:"#888888",children:"Sync your Shopify Data to Bik.AI to supercharge it with"}),e.jsx(o.BodyPrimary,{color:"#888888",children:"your store’s data to start personalizing it to your"}),e.jsx(o.BodyPrimary,{color:"#888888",children:"customers!"})]}):e.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[e.jsxs(o.BodyPrimary,{color:"#888888",children:["Sync your Shopify Data to Bik.AI to supercharge it with"," "]}),e.jsx(o.BodyPrimary,{color:"#888888",children:"your store’s data to start responding to customer"}),e.jsx(o.BodyPrimary,{color:"#888888",children:"queries right away!"})]})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px",paddingBottom:"24px",paddingLeft:"24px",paddingRight:"24px"},children:[e.jsx(s.Button,{buttonText:"Learn More",buttonType:"text",size:"large",onClick:c}),e.jsx(s.Button,{buttonText:"Sync Shopify Data",size:"large",style:{backgroundColor:t.COLORS.background.brand},onClick:a})]})]})});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../../assets/icons/graph.svg.js"),r=require("../../assets/icons/sparkle.svg.js"),n=require("../button/Button.js"),s=require("../modals/Modal.js"),o=require("../TypographyStyle.js");exports.ActivateBikAi=l=>{let{open:d,onModalClose:a,onRightBtnClick:c,onLeftBtnClick:x,source:u}=l;return e.jsx(s.Modal,{open:d,centralContainerStyles:{height:"430px",width:"464px",borderRadius:"12px"},zIndex:40,onClose:a,closeOnOutsideClick:!0,children:e.jsxs("div",{children:[e.jsxs("div",{style:{height:"180px",width:"100%",backgroundColor:"rgba(142, 142, 142, 0.2)",display:"flex",justifyContent:"center",alignItems:"center",gap:"18px",padding:"24px"},children:[e.jsx("div",{children:e.jsx(i.default,{width:100,height:90})}),e.jsx("div",{children:"CHATBOT"===u?e.jsx(o.TitleMedium,{children:"Unlock higher conversion and ease agent work with BIK.AI"}):e.jsx(o.TitleMedium,{children:"Experience reduced Average Handling Time of your tickets with Bik.AI!"})})]}),e.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"16px",padding:"24px"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"4px"},children:[e.jsx(o.TitleLarge,{children:"Activate BIK AI"}),e.jsx(r.default,{width:32,height:32})]}),"CHATBOT"===u?e.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[e.jsx(o.BodyPrimary,{color:"#888888",children:"Sync your Shopify Data to Bik.AI to supercharge it with"}),e.jsx(o.BodyPrimary,{color:"#888888",children:"your store’s data to start personalizing it to your"}),e.jsx(o.BodyPrimary,{color:"#888888",children:"customers!"})]}):e.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[e.jsxs(o.BodyPrimary,{color:"#888888",children:["Sync your Shopify Data to Bik.AI to supercharge it with"," "]}),e.jsx(o.BodyPrimary,{color:"#888888",children:"your store’s data to start responding to customer"}),e.jsx(o.BodyPrimary,{color:"#888888",children:"queries right away!"})]})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px",paddingBottom:"24px",paddingLeft:"24px",paddingRight:"24px"},children:[e.jsx(n.Button,{buttonText:"Learn More",buttonType:"text",size:"large",onClick:x}),e.jsx(n.Button,{buttonText:"Sync Shopify Data",size:"large",style:{backgroundColor:t.COLORS.background.brand},onClick:c})]})]})})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),s=require("../../assets/icons/alert_triangle.svg.js"),n=require("../button/Button.js"),i=require("../modals/Modal.js"),r=require("../progress-bar/ProgressBarComponent.js"),o=require("../TypographyStyle.js");exports.AiCreditsExhausted=({open:l,onModalClose:d,body:a,onRightBtnClick:c,onLeftBtnClick:x})=>e.jsx(i.Modal,{open:l,centralContainerStyles:{width:"498px",height:"312px",borderRadius:"12px"},onClose:d,closeOnOutsideClick:!0,zIndex:40,children:e.jsxs("div",{style:{padding:"24px",display:"flex",flexDirection:"column"},children:[e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(o.TitleLarge,{children:"Free AI Credits Exhausted"})}),e.jsx("div",{style:{height:"24px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsx(s.default,{color:t.COLORS.content.negative,width:20,height:20}),e.jsx("div",{style:{width:"8px"}}),e.jsx(o.TitleRegular,{children:"0/100"}),e.jsx(o.BodySecondary,{color:t.COLORS.content.secondary,children:"Free Credits left"})]}),e.jsx(r.ProgressBarComponent,{completed:100,isAnimated:!1,height:16,color:t.COLORS.content.negative})]}),e.jsx("div",{style:{height:"24px"}}),e.jsx(o.BodyPrimary,{color:t.COLORS.content.secondary,children:a||"Contact support to add credits to generate replies using AI, and enjoy continued AI assistance!"}),e.jsx("div",{style:{height:"44px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"},children:[e.jsx(n.Button,{buttonText:"Learn More",buttonType:"text",size:"small",onClick:x}),e.jsx(n.Button,{buttonText:"Contact Support",size:"small",style:{backgroundColor:t.COLORS.background.brand},onClick:c})]})]})});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),s=require("../../assets/icons/alert_triangle.svg.js"),n=require("../button/Button.js"),r=require("../modals/Modal.js"),i=require("../progress-bar/ProgressBarComponent.js"),o=require("../TypographyStyle.js");exports.AiCreditsExhausted=l=>{let{open:d,onModalClose:a,body:c,onRightBtnClick:x,onLeftBtnClick:p}=l;return e.jsx(r.Modal,{open:d,centralContainerStyles:{width:"498px",height:"312px",borderRadius:"12px"},onClose:a,closeOnOutsideClick:!0,zIndex:40,children:e.jsxs("div",{style:{padding:"24px",display:"flex",flexDirection:"column"},children:[e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(o.TitleLarge,{children:"Free AI Credits Exhausted"})}),e.jsx("div",{style:{height:"24px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsx(s.default,{color:t.COLORS.content.negative,width:20,height:20}),e.jsx("div",{style:{width:"8px"}}),e.jsx(o.TitleRegular,{children:"0/100"}),e.jsx(o.BodySecondary,{color:t.COLORS.content.secondary,children:"Free Credits left"})]}),e.jsx(i.ProgressBarComponent,{completed:100,isAnimated:!1,height:16,color:t.COLORS.content.negative})]}),e.jsx("div",{style:{height:"24px"}}),e.jsx(o.BodyPrimary,{color:t.COLORS.content.secondary,children:c||"Contact support to add credits to generate replies using AI, and enjoy continued AI assistance!"}),e.jsx("div",{style:{height:"44px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"},children:[e.jsx(n.Button,{buttonText:"Learn More",buttonType:"text",size:"small",onClick:p}),e.jsx(n.Button,{buttonText:"Contact Support",size:"small",style:{backgroundColor:t.COLORS.background.brand},onClick:x})]})]})})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../../assets/icons/alert_triangle.svg.js"),r=require("../button/Button.js"),n=require("../modals/Modal.js"),o=require("../TypographyStyle.js");exports.AiCreditsLow=({open:s,onModalClose:l,onLeftBtnClick:d,onRightBtnClick:c})=>e.jsx(n.Modal,{open:s,centralContainerStyles:{width:"498px",borderRadius:"12px"},onClose:l,closeOnOutsideClick:!0,zIndex:40,children:e.jsxs("div",{style:{padding:"24px",display:"flex",flexDirection:"column",width:"100%"},children:[e.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:e.jsx("div",{style:{backgroundColor:t.COLORS.background.negative.light,width:"64px",height:"64px",padding:"12px",borderRadius:"40px"},children:e.jsx(i.default,{width:40,height:40,color:t.COLORS.content.negative})})}),e.jsx("div",{style:{height:"32px"}}),e.jsx(o.TitleLarge,{children:"Your AI Credits are running low"}),e.jsx("div",{style:{height:"24px"}}),e.jsx(o.BodyPrimary,{color:t.COLORS.content.secondary,children:"Recharge your credits now to ensure uninterrupted service."}),e.jsx("div",{style:{height:"12px"}}),e.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:e.jsx(o.BodyPrimary,{color:t.COLORS.content.secondary,children:"Don’t let the growth stop. Add AI Credits"})}),e.jsx("div",{style:{height:"32px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"},children:[e.jsx(r.Button,{buttonText:"Close",buttonType:"text",size:"small",onClick:d}),e.jsx(r.Button,{buttonText:"Contact Support",size:"small",style:{backgroundColor:t.COLORS.background.brand},onClick:c})]})]})});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../../assets/icons/alert_triangle.svg.js"),r=require("../button/Button.js"),n=require("../modals/Modal.js"),o=require("../TypographyStyle.js");exports.AiCreditsLow=s=>{let{open:l,onModalClose:d,onLeftBtnClick:c,onRightBtnClick:x}=s;return e.jsx(n.Modal,{open:l,centralContainerStyles:{width:"498px",borderRadius:"12px"},onClose:d,closeOnOutsideClick:!0,zIndex:40,children:e.jsxs("div",{style:{padding:"24px",display:"flex",flexDirection:"column",width:"100%"},children:[e.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:e.jsx("div",{style:{backgroundColor:t.COLORS.background.negative.light,width:"64px",height:"64px",padding:"12px",borderRadius:"40px"},children:e.jsx(i.default,{width:40,height:40,color:t.COLORS.content.negative})})}),e.jsx("div",{style:{height:"32px"}}),e.jsx(o.TitleLarge,{children:"Your AI Credits are running low"}),e.jsx("div",{style:{height:"24px"}}),e.jsx(o.BodyPrimary,{color:t.COLORS.content.secondary,children:"Recharge your credits now to ensure uninterrupted service."}),e.jsx("div",{style:{height:"12px"}}),e.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:e.jsx(o.BodyPrimary,{color:t.COLORS.content.secondary,children:"Don’t let the growth stop. Add AI Credits"})}),e.jsx("div",{style:{height:"32px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"},children:[e.jsx(r.Button,{buttonText:"Close",buttonType:"text",size:"small",onClick:c}),e.jsx(r.Button,{buttonText:"Contact Support",size:"small",style:{backgroundColor:t.COLORS.background.brand},onClick:x})]})]})})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../../assets/icons/sync.svg.js"),s=require("../button/Button.js"),r=require("../modals/Modal.js"),o=require("../progress-bar/ProgressBarComponent.js"),n=require("../TypographyStyle.js");exports.AiSyncProgress=({open:l,onModalClose:a,completedPercent:c,onLeftBtnClick:d,onRightBtnClick:x})=>e.jsx(r.Modal,{open:l,centralContainerStyles:{width:"498px",height:"324px",borderRadius:"12px"},onClose:a,closeOnOutsideClick:!0,zIndex:40,children:e.jsxs("div",{style:{padding:"24px",display:"flex",flexDirection:"column"},children:[e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(n.TitleLarge,{children:"Wait for Sync to complete"})}),e.jsx("div",{style:{height:"24px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"12px"},children:[e.jsx(i.default,{width:24,height:24}),e.jsx(n.BodyPrimary,{color:"#616161",children:"Syncing Shopify Store Data..."})]}),e.jsx(o.ProgressBarComponent,{completed:c,isAnimated:!1,height:16,color:t.COLORS.background.positive.vibrant})]}),e.jsx("div",{style:{height:"24px"}}),e.jsx(n.BodyPrimary,{color:t.COLORS.content.secondary,children:"You can start replying with AI after sync is complete. In the meanwhile, learn how to leverage AI for maximum efficiency"}),e.jsx("div",{style:{height:"32px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"},children:[e.jsx(s.Button,{buttonText:"Close",buttonType:"text",size:"small",onClick:d}),e.jsx(s.Button,{buttonText:"Explore Bik.ai",size:"small",style:{backgroundColor:t.COLORS.background.brand},onClick:x})]})]})});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../../assets/icons/sync.svg.js"),s=require("../button/Button.js"),r=require("../modals/Modal.js"),o=require("../progress-bar/ProgressBarComponent.js"),n=require("../TypographyStyle.js");exports.AiSyncProgress=l=>{let{open:a,onModalClose:c,completedPercent:d,onLeftBtnClick:x,onRightBtnClick:p}=l;return e.jsx(r.Modal,{open:a,centralContainerStyles:{width:"498px",height:"324px",borderRadius:"12px"},onClose:c,closeOnOutsideClick:!0,zIndex:40,children:e.jsxs("div",{style:{padding:"24px",display:"flex",flexDirection:"column"},children:[e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(n.TitleLarge,{children:"Wait for Sync to complete"})}),e.jsx("div",{style:{height:"24px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"12px"},children:[e.jsx(i.default,{width:24,height:24}),e.jsx(n.BodyPrimary,{color:"#616161",children:"Syncing Shopify Store Data..."})]}),e.jsx(o.ProgressBarComponent,{completed:d,isAnimated:!1,height:16,color:t.COLORS.background.positive.vibrant})]}),e.jsx("div",{style:{height:"24px"}}),e.jsx(n.BodyPrimary,{color:t.COLORS.content.secondary,children:"You can start replying with AI after sync is complete. In the meanwhile, learn how to leverage AI for maximum efficiency"}),e.jsx("div",{style:{height:"32px"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"},children:[e.jsx(s.Button,{buttonText:"Close",buttonType:"text",size:"small",onClick:x}),e.jsx(s.Button,{buttonText:"Explore Bik.ai",size:"small",style:{backgroundColor:t.COLORS.background.brand},onClick:p})]})]})})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../shimmer/ShimmerComponent/BikShimmer.js"),s=require("../TypographyStyle.js"),r=require("./AnalyticsCard.styled.js");exports.AnalyticsCard=a=>{const{cardInfo:n,width:h,mode:c}=a;return e.jsx(r.AnalyticsContainer,{width:h,mode:c,count:Object.keys(n).length,children:a.isLoading?e.jsxs("div",{className:"shimmers",children:[e.jsx(i.BikShimmer,{isBrand:"light"!=a.mode,boxes:[{height:"18px",width:"120px"},{height:"18px",width:"120px"}]}),e.jsx(i.BikShimmer,{isBrand:"light"!=a.mode,boxes:[{height:"18px",width:"120px"},{height:"18px",width:"120px"}]})]}):Object.keys(n).map(i=>{const h=n[i],c=i;return e.jsxs(r.CardDataContainer,{className:"analytics__card",count:Object.keys(n).length,children:[e.jsx(s.TitleSmall,{className:"statistic",color:"light"==a.mode?t.BASE_COLORS.brand[900]:t.BASE_COLORS.grayscale.white,children:h}),e.jsx(s.BodyCaption,{className:"category",color:"light"==a.mode?t.BASE_COLORS.brand[900]:t.COLORS.content.secondaryInverse,children:c})]},c)})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),i=require("../shimmer/ShimmerComponent/BikShimmer.js"),s=require("../TypographyStyle.js"),r=require("./AnalyticsCard.styled.js");exports.AnalyticsCard=a=>{const{cardInfo:n,width:h,mode:c}=a;return e.jsx(r.AnalyticsContainer,{width:h,mode:c,count:Object.keys(n).length,children:a.isLoading?e.jsxs("div",{className:"shimmers",children:[e.jsx(i.BikShimmer,{isBrand:"light"!=a.mode,boxes:[{height:"18px",width:"120px"},{height:"18px",width:"120px"}]}),e.jsx(i.BikShimmer,{isBrand:"light"!=a.mode,boxes:[{height:"18px",width:"120px"},{height:"18px",width:"120px"}]})]}):Object.keys(n).map((i=>{const h=n[i],c=i;return e.jsxs(r.CardDataContainer,{className:"analytics__card",count:Object.keys(n).length,children:[e.jsx(s.TitleSmall,{className:"statistic",color:"light"==a.mode?t.BASE_COLORS.brand[900]:t.BASE_COLORS.grayscale.white,children:h}),e.jsx(s.BodyCaption,{className:"category",color:"light"==a.mode?t.BASE_COLORS.brand[900]:t.COLORS.content.secondaryInverse,children:c})]},c)}))})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react"),t=require("react-bootstrap"),n=require("react-dom"),r=require("../../constants/Theme.js"),i=require("../datePicker/DatePicker.js");require("react-calendar"),require("../../utils/DateUtils.js");var s=require("../TypographyStyle.js");require("../datePicker/DatePickerWrapper.styled.js"),require("../datePicker/model.js"),require("../dropdown/DropdownPopover/index.js"),require("../dropdown/Dropdown.js"),require("../dropdown/ChipDropdown.js"),require("../zeroState/ZeroState.js"),require("../dropdown/OpenedDropdown/components/description/Description.styled.js"),require("../checkBox/CheckBox.styled.js"),require("../list-item/ListItem.js"),require("../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js"),require("../dropdown/OpenedDropdown/components/menu/MenuItem.js"),require("../dropdown/OpenedDropdown/components/menu/MenuList.styled.js"),require("../button/Button.js"),require("../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js"),require("../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js"),require("../icon-button/IconButton.js"),require("../input/Input.js"),require("../dropdown/MenuItem/MenuItem.js"),require("../datePicker/DatePicker.styled.js");var d=require("./CommonStyles.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(n);const c=({eachOption:o,selectedOption:t,selectedDate:n,onClickingEachItem:i,rangeSelection:l,isLastItem:a,isFirstItem:c,showTimePicker:p})=>e.jsxs(d.ItemMenuContainer,{isFirstItem:c,isLastItem:a,onClick:()=>i(o),isSelected:o.isCustom?o.key==(null==t?void 0:t.key)&&!!n:o.key==(null==t?void 0:t.key),children:[e.jsx(s.BodySecondary,{color:o.key==(null==t?void 0:t.key)?r.BASE_COLORS.positive[900]:r.BASE_COLORS.grayscale[900],children:o.label}),o.subLabel?e.jsx(s.BodyCaption,{style:{color:r.BASE_COLORS.grayscale[700]},children:o.subLabel}):e.jsx(e.Fragment,{}),n&&(null==t?void 0:t.isCustom)&&o.key==(null==t?void 0:t.key)&&e.jsx(s.BodyCaption,{style:{whiteSpace:"normal",wordBreak:"break-word",textAlign:"left"},children:l?`${u(n[0],p)} to ${u(n[1],p)}`:`${u(n[0],p)}`})]},o.key),u=(e,o)=>{const t=e.toLocaleString("default",{day:"numeric",month:"short",year:"numeric"});if(o){return`${t} (${e.toLocaleString("default",{hour:"numeric",minute:"2-digit",hour12:!0})})`}return t};exports.AnalyticsDropdown=({options:n,placeholder:l="Select an option",selected:p,onOptionSelected:m,resetDropdown:g,maxHeight:v,backgroundcolor:w,calendarPopperConfig:j,variant:y="default",datePickerPlacement:D,closeDropdown:h,labelColor:S,styleProps:O,showTimePicker:f=!1})=>{var k,x,b;const[q,C]=o.useState(!1),[R,I]=o.useState(p),[P,E]=o.useState(),[L,T]=o.useState(!1),[B,M]=o.useState(p),F=o.useRef(null),A="small"===y?s.Caption:s.BodySecondary;o.useEffect(()=>{g&&I(void 0)},[g]),o.useEffect(()=>{var e;(null==p?void 0:p.isCustom)&&(null===(e=p.dateRangeSelectionOptions)||void 0===e?void 0:e.selectedDates)?E(p.dateRangeSelectionOptions.selectedDates):E(void 0),I(p)},[p]),o.useEffect(()=>{T(!1),C(!1)},[h]);const $=e=>{void 0!==e?(T(e),q&&C(!1)):T(e=>!e)},_=e=>{F.current&&!F.current.contains(e.target)&&(q&&C(!1),$(!1))};return o.useEffect(()=>(L&&document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}),[L]),e.jsx(e.Fragment,{children:e.jsxs(d.MainDropdown,{drop:"down",show:L,onToggle:$,bgColor:w,id:"analytic-dropdown",children:[e.jsx(t.Dropdown.Toggle,{id:"dropdown-autoclose-outside",className:"main--dropdown",style:"small"===y?{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",backgroundColor:"#FAFAFA",borderRadius:4,border:`1px solid ${r.DEFAULT_THEME.colorsV2.stroke.primary}`}:O||void 0,children:e.jsx(A,{style:"small"===y||S?{color:S||r.DEFAULT_THEME.colorsV2.content.secondary}:void 0,children:(null==R?void 0:R.isCustom)?P?u(P[0],f)===u(P[1],f)?`${u(P[0],f)}`:`${u(P[0],f)} to ${u(P[1],f)}`:(null==B?void 0:B.label)?null==B?void 0:B.label:l:R?null==R?void 0:R.label:l})}),a.default.createPortal(e.jsx(t.Dropdown.Menu,{className:"main--dropdown",style:{padding:0},ref:F,children:e.jsxs(d.MainDropdown,{drop:null!=D?D:"end",id:"sub--dropdown",show:q,onToggle:e=>{!e&&T(!1),C(!q)},children:[e.jsx("div",{style:{maxHeight:v||"auto",overflowY:"scroll"},children:n.map((o,r)=>{var i;return e.jsx("div",{children:(null==o?void 0:o.isCustom)?e.jsx(t.Dropdown.Toggle,{className:"sub--dropdown",children:e.jsx(c,{isFirstItem:0===r,isLastItem:r===n.length-1,eachOption:o,selectedOption:R,selectedDate:P,onClickingEachItem:e=>{I(e),C(!0)},rangeSelection:!!(null===(i=null==o?void 0:o.dateRangeSelectionOptions)||void 0===i?void 0:i.selectRange),showTimePicker:f})}):e.jsx(c,{isFirstItem:0===r,isLastItem:r===n.length-1,eachOption:o,selectedOption:R,selectedDate:P,onClickingEachItem:e=>{if(E(void 0),I(e),M(e),$(),!e.noOfDays)return void m(e);const o=new Date,t=new Date;t.setDate(o.getDate()-e.noOfDays),m(Object.assign(Object.assign({},e),{selectedRange:[t,o]}))},showTimePicker:f})},null==o?void 0:o.key)})}),e.jsx(t.Dropdown.Menu,{className:"sub--dropdown",popperConfig:{modifiers:[{name:"offset",options:{offset:[(null==j?void 0:j.offsetSkid)||0,(null==j?void 0:j.offsetDistance)||0]}}]},children:e.jsx(i.DatePicker,{selectRange:(null===(k=null==R?void 0:R.dateRangeSelectionOptions)||void 0===k?void 0:k.selectRange)||!1,showTimePicker:f,maxDate:null===(x=null==R?void 0:R.dateRangeSelectionOptions)||void 0===x?void 0:x.maxDate,minDate:null===(b=null==R?void 0:R.dateRangeSelectionOptions)||void 0===b?void 0:b.minDate,selectedDates:P,onSelectRange:(e,o)=>{const t=[e,o];(null==R?void 0:R.dateRangeSelectionOptions)&&(R.dateRangeSelectionOptions.selectedDates=t,m(Object.assign(Object.assign({},R),{selectedRange:[e,o]}))),M(R),C(!1),E(t),T(!L)},onSelectDate:e=>{(null==R?void 0:R.dateRangeSelectionOptions)&&(R.dateRangeSelectionOptions.selectedDates=[e,e],m(Object.assign(Object.assign({},R),{selectedRange:[e,e]}))),M(R),C(!1),E([e,e]),T(!L)}})})]})}),document.body)]})})},exports.EachItem=c,exports.formatDate=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react"),t=require("react-bootstrap"),n=require("react-dom"),r=require("../../constants/Theme.js"),i=require("../datePicker/DatePicker.js");require("react-calendar"),require("../../utils/DateUtils.js");var s=require("../TypographyStyle.js");require("../datePicker/DatePickerWrapper.styled.js"),require("../datePicker/model.js"),require("../dropdown/DropdownPopover/index.js"),require("../dropdown/Dropdown.js"),require("../dropdown/ChipDropdown.js"),require("../zeroState/ZeroState.js"),require("../dropdown/OpenedDropdown/components/description/Description.styled.js"),require("../checkBox/CheckBox.styled.js"),require("../list-item/ListItem.js"),require("../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js"),require("../dropdown/OpenedDropdown/components/menu/MenuItem.js"),require("../dropdown/OpenedDropdown/components/menu/MenuList.styled.js"),require("../button/Button.js"),require("../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js"),require("../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js"),require("../icon-button/IconButton.js"),require("../input/Input.js"),require("../dropdown/MenuItem/MenuItem.js"),require("../datePicker/DatePicker.styled.js");var d=require("./CommonStyles.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(n);const c=o=>{let{eachOption:t,selectedOption:n,selectedDate:i,onClickingEachItem:l,rangeSelection:a,isLastItem:c,isFirstItem:p,showTimePicker:m}=o;return e.jsxs(d.ItemMenuContainer,{isFirstItem:p,isLastItem:c,onClick:()=>l(t),isSelected:t.isCustom?t.key==(null==n?void 0:n.key)&&!!i:t.key==(null==n?void 0:n.key),children:[e.jsx(s.BodySecondary,{color:t.key==(null==n?void 0:n.key)?r.BASE_COLORS.positive[900]:r.BASE_COLORS.grayscale[900],children:t.label}),t.subLabel?e.jsx(s.BodyCaption,{style:{color:r.BASE_COLORS.grayscale[700]},children:t.subLabel}):e.jsx(e.Fragment,{}),i&&(null==n?void 0:n.isCustom)&&t.key==(null==n?void 0:n.key)&&e.jsx(s.BodyCaption,{style:{whiteSpace:"normal",wordBreak:"break-word",textAlign:"left"},children:a?`${u(i[0],m)} to ${u(i[1],m)}`:`${u(i[0],m)}`})]},t.key)},u=(e,o)=>{const t=e.toLocaleString("default",{day:"numeric",month:"short",year:"numeric"});if(o){return`${t} (${e.toLocaleString("default",{hour:"numeric",minute:"2-digit",hour12:!0})})`}return t};exports.AnalyticsDropdown=n=>{let{options:l,placeholder:p="Select an option",selected:m,onOptionSelected:g,resetDropdown:v,maxHeight:w,backgroundcolor:j,calendarPopperConfig:y,variant:D="default",datePickerPlacement:h,closeDropdown:S,labelColor:O,styleProps:f,showTimePicker:k=!1}=n;var x,b,q;const[C,R]=o.useState(!1),[I,P]=o.useState(m),[E,L]=o.useState(),[T,B]=o.useState(!1),[M,F]=o.useState(m),A=o.useRef(null),$="small"===D?s.Caption:s.BodySecondary;o.useEffect((()=>{v&&P(void 0)}),[v]),o.useEffect((()=>{var e;(null==m?void 0:m.isCustom)&&(null===(e=m.dateRangeSelectionOptions)||void 0===e?void 0:e.selectedDates)?L(m.dateRangeSelectionOptions.selectedDates):L(void 0),P(m)}),[m]),o.useEffect((()=>{B(!1),R(!1)}),[S]);const _=e=>{void 0!==e?(B(e),C&&R(!1)):B((e=>!e))},H=e=>{A.current&&!A.current.contains(e.target)&&(C&&R(!1),_(!1))};return o.useEffect((()=>(T&&document.addEventListener("mousedown",H),()=>{document.removeEventListener("mousedown",H)})),[T]),e.jsx(e.Fragment,{children:e.jsxs(d.MainDropdown,{drop:"down",show:T,onToggle:_,bgColor:j,id:"analytic-dropdown",children:[e.jsx(t.Dropdown.Toggle,{id:"dropdown-autoclose-outside",className:"main--dropdown",style:"small"===D?{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",backgroundColor:"#FAFAFA",borderRadius:4,border:`1px solid ${r.DEFAULT_THEME.colorsV2.stroke.primary}`}:f||void 0,children:e.jsx($,{style:"small"===D||O?{color:O||r.DEFAULT_THEME.colorsV2.content.secondary}:void 0,children:(null==I?void 0:I.isCustom)?E?u(E[0],k)===u(E[1],k)?`${u(E[0],k)}`:`${u(E[0],k)} to ${u(E[1],k)}`:(null==M?void 0:M.label)?null==M?void 0:M.label:p:I?null==I?void 0:I.label:p})}),a.default.createPortal(e.jsx(t.Dropdown.Menu,{className:"main--dropdown",style:{padding:0},ref:A,children:e.jsxs(d.MainDropdown,{drop:null!=h?h:"end",id:"sub--dropdown",show:C,onToggle:e=>{!e&&B(!1),R(!C)},children:[e.jsx("div",{style:{maxHeight:w||"auto",overflowY:"scroll"},children:l.map(((o,n)=>{var r;return e.jsx("div",{children:(null==o?void 0:o.isCustom)?e.jsx(t.Dropdown.Toggle,{className:"sub--dropdown",children:e.jsx(c,{isFirstItem:0===n,isLastItem:n===l.length-1,eachOption:o,selectedOption:I,selectedDate:E,onClickingEachItem:e=>{P(e),R(!0)},rangeSelection:!!(null===(r=null==o?void 0:o.dateRangeSelectionOptions)||void 0===r?void 0:r.selectRange),showTimePicker:k})}):e.jsx(c,{isFirstItem:0===n,isLastItem:n===l.length-1,eachOption:o,selectedOption:I,selectedDate:E,onClickingEachItem:e=>{if(L(void 0),P(e),F(e),_(),!e.noOfDays)return void g(e);const o=new Date,t=new Date;t.setDate(o.getDate()-e.noOfDays),g(Object.assign(Object.assign({},e),{selectedRange:[t,o]}))},showTimePicker:k})},null==o?void 0:o.key)}))}),e.jsx(t.Dropdown.Menu,{className:"sub--dropdown",popperConfig:{modifiers:[{name:"offset",options:{offset:[(null==y?void 0:y.offsetSkid)||0,(null==y?void 0:y.offsetDistance)||0]}}]},children:e.jsx(i.DatePicker,{selectRange:(null===(x=null==I?void 0:I.dateRangeSelectionOptions)||void 0===x?void 0:x.selectRange)||!1,showTimePicker:k,maxDate:null===(b=null==I?void 0:I.dateRangeSelectionOptions)||void 0===b?void 0:b.maxDate,minDate:null===(q=null==I?void 0:I.dateRangeSelectionOptions)||void 0===q?void 0:q.minDate,selectedDates:E,onSelectRange:(e,o)=>{const t=[e,o];(null==I?void 0:I.dateRangeSelectionOptions)&&(I.dateRangeSelectionOptions.selectedDates=t,g(Object.assign(Object.assign({},I),{selectedRange:[e,o]}))),F(I),R(!1),L(t),B(!T)},onSelectDate:e=>{(null==I?void 0:I.dateRangeSelectionOptions)&&(I.dateRangeSelectionOptions.selectedDates=[e,e],g(Object.assign(Object.assign({},I),{selectedRange:[e,e]}))),F(I),R(!1),L([e,e]),B(!T)}})})]})}),document.body)]})})},exports.EachItem=c,exports.formatDate=u;
@@ -2,4 +2,4 @@
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  flex-wrap: wrap;
5
- `;exports.AnalyticsMetric=({title:t,trends:l,RightHeaderComponent:s,containerStyle:a,titleSize:o,titleColor:c,perRow:y,isLoading:p,trendStyle:g,trendContainerStyle:h,trendIconStyle:u,hideHeaderDiv:x,isInternationalStore:j})=>{const f="large"===o?i.TitleMedium:i.TitleRegular,m=y||(l.length<=4?l.length:l.length%3==0?3:4),S=Math.ceil(l.length/m);return e.jsxs("div",{style:Object.assign({paddingTop:24,paddingBottom:24},null!=a?a:{}),children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingBottom:x?0:12},children:[t&&e.jsx(f,{color:null!=c?c:n.COLORS.content.secondary,style:{paddingLeft:24,paddingRight:24},children:t}),s]}),e.jsx(d,{children:Array.from({length:S}).map((t,n)=>e.jsx(e.Fragment,{children:e.jsx("div",{style:{display:"flex",width:"100%",marginTop:0===n?0:16},children:l.slice(n*m,(n+1)*m).map((t,i)=>{var d;return e.jsx("div",{style:{flex:1,maxWidth:1===l.length?"100%":"50%"},children:e.jsx(r.AnalyticsTrend,Object.assign({},t,{isLoading:p,card:!1,size:null!==(d=t.size)&&void 0!==d?d:"small",rightSeparator:i+n*m<Math.min((n+1)*m-1,l.length-1),trendStyle:g,trendIconStyle:u,trendContainerStyle:h,isInternationalStore:j}))},i)})},n)}))})]})};
5
+ `;exports.AnalyticsMetric=t=>{let{title:l,trends:s,RightHeaderComponent:a,containerStyle:o,titleSize:c,titleColor:y,perRow:p,isLoading:g,trendStyle:h,trendContainerStyle:u,trendIconStyle:x,hideHeaderDiv:j,isInternationalStore:f}=t;const m="large"===c?i.TitleMedium:i.TitleRegular,S=p||(s.length<=4?s.length:s.length%3==0?3:4),v=Math.ceil(s.length/S);return e.jsxs("div",{style:Object.assign({paddingTop:24,paddingBottom:24},null!=o?o:{}),children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",paddingBottom:j?0:12},children:[l&&e.jsx(m,{color:null!=y?y:n.COLORS.content.secondary,style:{paddingLeft:24,paddingRight:24},children:l}),a]}),e.jsx(d,{children:Array.from({length:v}).map(((t,n)=>e.jsx(e.Fragment,{children:e.jsx("div",{style:{display:"flex",width:"100%",marginTop:0===n?0:16},children:s.slice(n*S,(n+1)*S).map(((t,i)=>{var l;return e.jsx("div",{style:{flex:1,maxWidth:1===s.length?"100%":"50%"},children:e.jsx(r.AnalyticsTrend,Object.assign({},t,{isLoading:g,card:!1,size:null!==(l=t.size)&&void 0!==l?l:"small",rightSeparator:i+n*S<Math.min((n+1)*S-1,s.length-1),trendStyle:h,trendIconStyle:x,trendContainerStyle:u,isInternationalStore:f}))},i)}))},n)})))})]})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("./AnalyticsChip.js"),i=require("./CommonStyles.js");exports.AnalyticsMultiChip=({chipDetails:s,wrapperStyle:l})=>e.jsx(i.AnalyticsMultiWrapper,{style:null!=l?l:{},children:s.map((e,i)=>r.createElement(t.AnalyticsChip,Object.assign({},e,{key:i+"_chip"})))});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("./AnalyticsChip.js"),i=require("./CommonStyles.js");exports.AnalyticsMultiChip=s=>{let{chipDetails:l,wrapperStyle:a}=s;return e.jsx(i.AnalyticsMultiWrapper,{style:null!=a?a:{},children:l.map(((e,i)=>r.createElement(t.AnalyticsChip,Object.assign({},e,{key:i+"_chip"}))))})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("../shimmer/ShimmerComponent/ShimmerStyled.js"),i=require("../../utils/DateUtils.js"),r=require("../../constants/Theme.js"),l=require("../../assets/icons/arrow_down.svg.js"),o=require("../../assets/icons/arrow_up.svg.js"),a=require("../../assets/icons/info.svg.js"),s=require("../tag/Tag.js"),c=require("../tooltips/Tooltip.js"),d=require("../TypographyStyle.js"),u=require("./chart/utils/calcPercentage.js"),h=require("./CommonStyles.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=m(t);const p=({percent:n,direction:a,timeline:s,customRange:h,trendRaw:m,trendRawString:g,prefixSymbol:p,trendIconStyle:y,isInternationalStore:x,tooltipTimelineText:j,customTimelineText:f})=>{const S=()=>{const e=((null!=m?m:0)>0?"+":"")+(null!=p?p:"");return void 0===m?"--":`${null!=e?e:""}${(()=>{let e="--";if(m)return e=String(x?u.truncateValueForInternationalStore(Math.abs(m)):u.truncateValueForIndianStore(Math.abs(m))),m<0?"-"+e:e})()}`},[T,v]=t.useState(S()),[b,C]=t.useState(f||"");t.useEffect(()=>{f||C("today"===s?"vs yesterday":"yesterday"===s?"vs 1 day before":"7 days"===s?"vs last 7 days":"30 days"===s?"vs last 30 days":"custom"===s&&h?i.default.getAnalyticsCustomDateTimelineText(h):"")},[s,h]),t.useEffect(()=>{v(S())},[m]);const O="negative"===a?l.default:o.default,R="negative"===a?r.COLORS.background.negative.vibrant:"positive"===a?r.COLORS.background.positive.vibrant:r.COLORS.content.placeholder;return e.jsxs("div",{style:{display:"flex",alignItems:"center",flexDirection:"row",flexWrap:"wrap"},children:["number"==typeof n&&e.jsx(O,{color:R,height:16,width:16,style:Object.assign({marginRight:2},null!=y?y:{})}),"number"==typeof n&&a&&e.jsxs(d.Caption,{style:{color:R},children:["neutral"===a?0:n<1e3?n:">999","%"]}),!!m&&e.jsx(d.Caption,{style:{marginLeft:4,color:r.COLORS.content.placeholder},children:`(${T})`}),!m&&((null==g?void 0:g.length)||0)>0&&e.jsx(d.Caption,{style:{marginLeft:4,color:r.COLORS.content.placeholder},children:`${g}`}),s&&(j?e.jsx(c.Tooltip,{body:j,placement:"bottom",children:e.jsx(d.Caption,{style:{marginLeft:4,color:r.COLORS.content.placeholder},children:f||b})}):e.jsx(d.Caption,{style:{marginLeft:4,color:r.COLORS.content.placeholder},children:f||b}))]})};exports.AnalyticsTrend=({title:t,value:i,trendPercent:l,type:o="horizontal",timeline:m,customRange:y,tooltip:x,card:j=!0,rightSeparator:f=!1,size:S="big",share:T=!1,formatVal:v,prefixSymbol:b,trailingIcon:C,onTrailIconClick:O,iconTooltipBody:R,funnelPercent:w,isLoading:I,trendRaw:$,trendRawString:L,suffixText:q,trendStyle:D,trendContainerStyle:F,trendIconStyle:M,containerStyle:k,prevTrendDiff:P,relativePercentageDiff:V,isInternationalStore:z,Icon:_,iconContainerStyle:A,tooltipTimelineText:E,customTimelineText:N})=>{const B="big"===S?d.TitleLarge:d.TitleMedium,W=void 0!==l?l<0?"negative":0===l?"neutral":"positive":void 0,U=void 0!==l?T?Math.round(l):Math.abs(Math.round(l)):void 0;return e.jsx(h.AnalyticsTrendContainer,{card:j,style:Object.assign({},k),children:e.jsxs("div",{style:Object.assign({display:"flex",flexDirection:"row",gap:_?12:4,borderRightWidth:f?1:0,borderRightColor:r.COLORS.stroke.primary,borderRightStyle:"solid",paddingLeft:j?0:24,paddingRight:j?0:24,height:"100%",justifyContent:_?"flex-start":"space-between",alignItems:"center"},null!=F?F:{}),children:[!!_&&e.jsx(h.IconContainer,{style:Object.assign({},A),children:e.jsx(_,{})}),e.jsxs("div",{style:Object.assign({display:"flex",flexDirection:"column",gap:4,height:"100%"},null!=D?D:{}),children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"},children:[e.jsx(d.BodyCaption,{style:{color:r.COLORS.content.secondary},children:t}),x&&e.jsx(c.Tooltip,{body:x,placement:"right",width:300,children:e.jsx("div",{style:{display:"flex",cursor:"pointer",height:"100%"},children:e.jsx(a.default,{color:r.COLORS.content.primary,height:16,width:16})})})]}),e.jsxs("div",{style:Object.assign({display:"flex",flexDirection:"row",gap:12,alignItems:"center"},T?{justifyContent:"space-between"}:{}),children:[I&&e.jsx(n.ShimmerComponentStyled,{width:108,height:26}),!I&&e.jsx(B,{style:{color:r.COLORS.content.primary},children:void 0===i?"--":"number"==typeof i&&v?i>999?z?`${null!=b?b:""}${u.truncateValueForInternationalStore(i)} ${null!=q?q:""}`:`${null!=b?b:""}${u.truncateValueForIndianStore(i)} ${null!=q?q:""}`:`${null!=b?b:""}${new Intl.NumberFormat("en-IN",{maximumFractionDigits:2}).format(i)} ${null!=q?q:""}`:`${null!=b?b:""}${i} ${null!=q?q:""}`}),"number"==typeof V&&e.jsx(s.Tag,{tagText:`${V}%`,theme:"light",type:"neutral"}),"horizontal"===o&&!I&&!T&&e.jsx(p,{timeline:m,customRange:y,percent:U,direction:W,trendRaw:$,trendRawString:L,prefixSymbol:b,trendIconStyle:M,isInternationalStore:z,tooltipTimelineText:E,customTimelineText:N}),I&&!T&&"horizontal"===o&&e.jsx(n.ShimmerComponentStyled,{height:20,width:141,marginTop:6}),"vertical"===o&&!I&&void 0!==w&&e.jsx(s.Tag,{tagText:`${w} %`,theme:"light",type:"neutral"}),T&&!I&&void 0!==U&&e.jsx(s.Tag,{tagText:`${U} %`,theme:"light",type:"neutral"}),T||I||!P||0==P?e.jsx(e.Fragment,{}):e.jsx(s.Tag,{tagText:(e=>{const t=Math.abs(e);return t%1!=0?`${t.toFixed(1)} %`:`${t} %`})(P),theme:"light",type:"neutral"})]}),"vertical"===o&&!I&&!T&&e.jsx("div",{style:{marginTop:10},children:e.jsx(p,{timeline:m,customRange:y,percent:U,direction:W,trendRaw:$,trendRawString:L,prefixSymbol:b,trendIconStyle:M,isInternationalStore:z,tooltipTimelineText:E,customTimelineText:N})}),I&&"vertical"===o&&e.jsx(n.ShimmerComponentStyled,{height:20,width:141,marginTop:6})]}),R&&!I&&e.jsx(c.Tooltip,{body:R,placement:"right",children:C&&e.jsx("div",{className:"icon--holder",onClick:O,children:g.default.createElement(C,{height:20,width:20,color:r.COLORS.content.secondary})})})]})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("../shimmer/ShimmerComponent/ShimmerStyled.js"),i=require("../../utils/DateUtils.js"),r=require("../../constants/Theme.js"),l=require("../../assets/icons/arrow_down.svg.js"),o=require("../../assets/icons/arrow_up.svg.js"),a=require("../../assets/icons/info.svg.js"),s=require("../tag/Tag.js"),c=require("../tooltips/Tooltip.js"),d=require("../TypographyStyle.js"),u=require("./chart/utils/calcPercentage.js"),h=require("./CommonStyles.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=m(t);const p=n=>{let{percent:a,direction:s,timeline:h,customRange:m,trendRaw:g,trendRawString:p,prefixSymbol:y,trendIconStyle:x,isInternationalStore:j,tooltipTimelineText:f,customTimelineText:S}=n;const T=()=>{const e=((null!=g?g:0)>0?"+":"")+(null!=y?y:"");return void 0===g?"--":`${null!=e?e:""}${(()=>{let e="--";if(g)return e=String(j?u.truncateValueForInternationalStore(Math.abs(g)):u.truncateValueForIndianStore(Math.abs(g))),g<0?"-"+e:e})()}`},[v,b]=t.useState(T()),[C,O]=t.useState(S||"");t.useEffect((()=>{S||O("today"===h?"vs yesterday":"yesterday"===h?"vs 1 day before":"7 days"===h?"vs last 7 days":"30 days"===h?"vs last 30 days":"custom"===h&&m?i.default.getAnalyticsCustomDateTimelineText(m):"")}),[h,m]),t.useEffect((()=>{b(T())}),[g]);const R="negative"===s?l.default:o.default,w="negative"===s?r.COLORS.background.negative.vibrant:"positive"===s?r.COLORS.background.positive.vibrant:r.COLORS.content.placeholder;return e.jsxs("div",{style:{display:"flex",alignItems:"center",flexDirection:"row",flexWrap:"wrap"},children:["number"==typeof a&&e.jsx(R,{color:w,height:16,width:16,style:Object.assign({marginRight:2},null!=x?x:{})}),"number"==typeof a&&s&&e.jsxs(d.Caption,{style:{color:w},children:["neutral"===s?0:a<1e3?a:">999","%"]}),!!g&&e.jsx(d.Caption,{style:{marginLeft:4,color:r.COLORS.content.placeholder},children:`(${v})`}),!g&&((null==p?void 0:p.length)||0)>0&&e.jsx(d.Caption,{style:{marginLeft:4,color:r.COLORS.content.placeholder},children:`${p}`}),h&&(f?e.jsx(c.Tooltip,{body:f,placement:"bottom",children:e.jsx(d.Caption,{style:{marginLeft:4,color:r.COLORS.content.placeholder},children:S||C})}):e.jsx(d.Caption,{style:{marginLeft:4,color:r.COLORS.content.placeholder},children:S||C}))]})};exports.AnalyticsTrend=t=>{let{title:i,value:l,trendPercent:o,type:m="horizontal",timeline:y,customRange:x,tooltip:j,card:f=!0,rightSeparator:S=!1,size:T="big",share:v=!1,formatVal:b,prefixSymbol:C,trailingIcon:O,onTrailIconClick:R,iconTooltipBody:w,funnelPercent:I,isLoading:$,trendRaw:L,trendRawString:q,suffixText:D,trendStyle:F,trendContainerStyle:M,trendIconStyle:k,containerStyle:P,prevTrendDiff:V,relativePercentageDiff:z,isInternationalStore:_,Icon:A,iconContainerStyle:E,tooltipTimelineText:N,customTimelineText:B}=t;const W="big"===T?d.TitleLarge:d.TitleMedium,U=void 0!==o?o<0?"negative":0===o?"neutral":"positive":void 0,G=void 0!==o?v?Math.round(o):Math.abs(Math.round(o)):void 0;return e.jsx(h.AnalyticsTrendContainer,{card:f,style:Object.assign({},P),children:e.jsxs("div",{style:Object.assign({display:"flex",flexDirection:"row",gap:A?12:4,borderRightWidth:S?1:0,borderRightColor:r.COLORS.stroke.primary,borderRightStyle:"solid",paddingLeft:f?0:24,paddingRight:f?0:24,height:"100%",justifyContent:A?"flex-start":"space-between",alignItems:"center"},null!=M?M:{}),children:[!!A&&e.jsx(h.IconContainer,{style:Object.assign({},E),children:e.jsx(A,{})}),e.jsxs("div",{style:Object.assign({display:"flex",flexDirection:"column",gap:4,height:"100%"},null!=F?F:{}),children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"},children:[e.jsx(d.BodyCaption,{style:{color:r.COLORS.content.secondary},children:i}),j&&e.jsx(c.Tooltip,{body:j,placement:"right",width:300,children:e.jsx("div",{style:{display:"flex",cursor:"pointer",height:"100%"},children:e.jsx(a.default,{color:r.COLORS.content.primary,height:16,width:16})})})]}),e.jsxs("div",{style:Object.assign({display:"flex",flexDirection:"row",gap:12,alignItems:"center"},v?{justifyContent:"space-between"}:{}),children:[$&&e.jsx(n.ShimmerComponentStyled,{width:108,height:26}),!$&&e.jsx(W,{style:{color:r.COLORS.content.primary},children:void 0===l?"--":"number"==typeof l&&b?l>999?_?`${null!=C?C:""}${u.truncateValueForInternationalStore(l)} ${null!=D?D:""}`:`${null!=C?C:""}${u.truncateValueForIndianStore(l)} ${null!=D?D:""}`:`${null!=C?C:""}${new Intl.NumberFormat("en-IN",{maximumFractionDigits:2}).format(l)} ${null!=D?D:""}`:`${null!=C?C:""}${l} ${null!=D?D:""}`}),"number"==typeof z&&e.jsx(s.Tag,{tagText:`${z}%`,theme:"light",type:"neutral"}),"horizontal"===m&&!$&&!v&&e.jsx(p,{timeline:y,customRange:x,percent:G,direction:U,trendRaw:L,trendRawString:q,prefixSymbol:C,trendIconStyle:k,isInternationalStore:_,tooltipTimelineText:N,customTimelineText:B}),$&&!v&&"horizontal"===m&&e.jsx(n.ShimmerComponentStyled,{height:20,width:141,marginTop:6}),"vertical"===m&&!$&&void 0!==I&&e.jsx(s.Tag,{tagText:`${I} %`,theme:"light",type:"neutral"}),v&&!$&&void 0!==G&&e.jsx(s.Tag,{tagText:`${G} %`,theme:"light",type:"neutral"}),v||$||!V||0==V?e.jsx(e.Fragment,{}):e.jsx(s.Tag,{tagText:(e=>{const t=Math.abs(e);return t%1!=0?`${t.toFixed(1)} %`:`${t} %`})(V),theme:"light",type:"neutral"})]}),"vertical"===m&&!$&&!v&&e.jsx("div",{style:{marginTop:10},children:e.jsx(p,{timeline:y,customRange:x,percent:G,direction:U,trendRaw:L,trendRawString:q,prefixSymbol:C,trendIconStyle:k,isInternationalStore:_,tooltipTimelineText:N,customTimelineText:B})}),$&&"vertical"===m&&e.jsx(n.ShimmerComponentStyled,{height:20,width:141,marginTop:6})]}),w&&!$&&e.jsx(c.Tooltip,{body:w,placement:"right",children:O&&e.jsx("div",{className:"icon--holder",onClick:R,children:g.default.createElement(O,{height:20,width:20,color:r.COLORS.content.secondary})})})]})})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("chart.js"),a=require("chartjs-plugin-datalabels"),o=require("react-chartjs-2"),i=require("../../../TypographyStyle.js"),r=require("../../../../constants/Theme.js"),l=require("../utils/calcPercentage.js"),n=require("./HorizontalGraph.styles.js");function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var d=s(a);e.Chart.register(e.CategoryScale,e.LinearScale,e.BarElement,e.Tooltip,d.default);exports.HorizontalGraph=e=>{var a,s,d,c,u,p,x,g,b;const y=-1===e.xAxis.data.findIndex(t=>0!==t),S={min:0,max:2e3,stepSize:null!==(a=e.xAxis.stepSize)&&void 0!==a?a:200},h={indexAxis:"y",elements:{},responsive:!0,maintainAspectRatio:e.maintainAspectRatio,layout:{padding:{right:e.showTotal?50:0}},plugins:{legend:{display:!1},tooltip:{enabled:!y,callbacks:{label:e.xAxis.toolTipCallback,footer:null===(s=e.tooltipConfig)||void 0===s?void 0:s.footerCallback},footerFont:null===(c=null===(d=e.tooltipConfig)||void 0===d?void 0:d.footerStyles)||void 0===c?void 0:c.footerFont},datalabels:{display:null!==(u=!y&&e.showTotal)&&void 0!==u&&u,anchor:"end",align:"end",clamp:!0,formatter:(t,a)=>{var o;const i=a.datasetIndex,r=a.chart.data.datasets;if(i!==r.length-1)return"";const n=a.dataIndex;let s=0;for(let t=0;t<r.length;t++)s+=null!==(o=r[t].data[n])&&void 0!==o?o:0;return s?e.isInternationalStore?l.truncateValueForInternationalStore(s):l.truncateValueForIndianStore(s):""},color:r.COLORS.content.secondary}},scales:{y:{title:{display:!!e.yAxis.title,text:e.yAxis.title,color:e.yAxis.titleColor,font:{size:r.FONTS.caption.fontSize,color:e.yAxis.titleColor},padding:{bottom:10}},grid:{display:!1,borderColor:r.COLORS.background.base},ticks:{fontSize:r.FONTS.caption.fontSize,color:null!==(p=e.yAxis.labelColor)&&void 0!==p?p:r.COLORS.content.secondary}},x:{title:{display:!!e.xAxis.title,text:e.xAxis.title,color:e.xAxis.titleColor,font:{size:r.FONTS.caption.fontSize},padding:{top:10}},grid:{borderColor:"white",color:r.COLORS.background.base},ticks:Object.assign({callback:e.xAxis.ticksCallback,fontSize:r.FONTS.caption.fontSize,color:null!==(x=e.xAxis.labelColor)&&void 0!==x?x:r.COLORS.content.secondary},y?S:{max:e.xAxis.max,stepSize:e.xAxis.stepSize})}}},f={labels:e.yAxis.data.map(t=>t.toString()),datasets:[{data:y?[250,1e3,800,1500,300,600]:e.xAxis.data,backgroundColor:t=>(t=>{var a;const o=t.chart.ctx.createLinearGradient(0,0,0,200);let i="";if(y)i="rgba(0,0,0,0)";else if(e.barColorRGBA){const t=e.barColorRGBA;i=`rgba(${t.r}, ${t.g}, ${t.b}, ${null!==(a=t.a)&&void 0!==a?a:"0.3"})`}return o.addColorStop(0,i||"rgba(146, 96, 237, 0.3)"),o.addColorStop(1,i||"rgba(146, 96, 237, 0.3)"),o})(t),barPercentage:.4,categoryPercentage:1,borderRadius:4}]};return t.jsxs(n.GraphContainerWrapper,{padding:e.outerPadding,skipOuterLayout:e.skipOuterLayout,children:[e.chartHeading&&t.jsx(i.TitleRegular,{color:null!==(g=e.chartHeading.color)&&void 0!==g?g:r.COLORS.content.secondary,children:e.chartHeading.heading}),t.jsx("div",{style:{height:e.maintainAspectRatio?void 0:null!==(b=e.graphCanvasHeight)&&void 0!==b?b:500},children:t.jsx(o.Bar,{options:h,data:f})})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("chart.js"),a=require("chartjs-plugin-datalabels"),o=require("react-chartjs-2"),i=require("../../../TypographyStyle.js"),r=require("../../../../constants/Theme.js"),l=require("../utils/calcPercentage.js"),n=require("./HorizontalGraph.styles.js");function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var d=s(a);e.Chart.register(e.CategoryScale,e.LinearScale,e.BarElement,e.Tooltip,d.default);exports.HorizontalGraph=e=>{var a,s,d,c,u,p,x,g,b;const y=-1===e.xAxis.data.findIndex((t=>0!==t)),S={min:0,max:2e3,stepSize:null!==(a=e.xAxis.stepSize)&&void 0!==a?a:200},h={indexAxis:"y",elements:{},responsive:!0,maintainAspectRatio:e.maintainAspectRatio,layout:{padding:{right:e.showTotal?50:0}},plugins:{legend:{display:!1},tooltip:{enabled:!y,callbacks:{label:e.xAxis.toolTipCallback,footer:null===(s=e.tooltipConfig)||void 0===s?void 0:s.footerCallback},footerFont:null===(c=null===(d=e.tooltipConfig)||void 0===d?void 0:d.footerStyles)||void 0===c?void 0:c.footerFont},datalabels:{display:null!==(u=!y&&e.showTotal)&&void 0!==u&&u,anchor:"end",align:"end",clamp:!0,formatter:(t,a)=>{var o;const i=a.datasetIndex,r=a.chart.data.datasets;if(i!==r.length-1)return"";const n=a.dataIndex;let s=0;for(let t=0;t<r.length;t++)s+=null!==(o=r[t].data[n])&&void 0!==o?o:0;return s?e.isInternationalStore?l.truncateValueForInternationalStore(s):l.truncateValueForIndianStore(s):""},color:r.COLORS.content.secondary}},scales:{y:{title:{display:!!e.yAxis.title,text:e.yAxis.title,color:e.yAxis.titleColor,font:{size:r.FONTS.caption.fontSize,color:e.yAxis.titleColor},padding:{bottom:10}},grid:{display:!1,borderColor:r.COLORS.background.base},ticks:{fontSize:r.FONTS.caption.fontSize,color:null!==(p=e.yAxis.labelColor)&&void 0!==p?p:r.COLORS.content.secondary}},x:{title:{display:!!e.xAxis.title,text:e.xAxis.title,color:e.xAxis.titleColor,font:{size:r.FONTS.caption.fontSize},padding:{top:10}},grid:{borderColor:"white",color:r.COLORS.background.base},ticks:Object.assign({callback:e.xAxis.ticksCallback,fontSize:r.FONTS.caption.fontSize,color:null!==(x=e.xAxis.labelColor)&&void 0!==x?x:r.COLORS.content.secondary},y?S:{max:e.xAxis.max,stepSize:e.xAxis.stepSize})}}},f={labels:e.yAxis.data.map((t=>t.toString())),datasets:[{data:y?[250,1e3,800,1500,300,600]:e.xAxis.data,backgroundColor:t=>(t=>{var a;const o=t.chart.ctx.createLinearGradient(0,0,0,200);let i="";if(y)i="rgba(0,0,0,0)";else if(e.barColorRGBA){const t=e.barColorRGBA;i=`rgba(${t.r}, ${t.g}, ${t.b}, ${null!==(a=t.a)&&void 0!==a?a:"0.3"})`}return o.addColorStop(0,i||"rgba(146, 96, 237, 0.3)"),o.addColorStop(1,i||"rgba(146, 96, 237, 0.3)"),o})(t),barPercentage:.4,categoryPercentage:1,borderRadius:4}]};return t.jsxs(n.GraphContainerWrapper,{padding:e.outerPadding,skipOuterLayout:e.skipOuterLayout,children:[e.chartHeading&&t.jsx(i.TitleRegular,{color:null!==(g=e.chartHeading.color)&&void 0!==g?g:r.COLORS.content.secondary,children:e.chartHeading.heading}),t.jsx("div",{style:{height:e.maintainAspectRatio?void 0:null!==(b=e.graphCanvasHeight)&&void 0!==b?b:500},children:t.jsx(o.Bar,{options:h,data:f})})]})};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("styled-components"),t=require("../../../TypographyStyle.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const l=i(r).default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("styled-components"),t=require("../../../TypographyStyle.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const i=l(r).default.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  flex-direction: row;
@@ -16,4 +16,4 @@
16
16
  margin-right: 12px;
17
17
  flex: 1;
18
18
  }
19
- `;exports.Legend=({color:r,text:i})=>{return e.jsxs(l,{children:[e.jsx("div",{className:"color",style:{backgroundColor:r}}),e.jsx(t.BodyPrimary,{className:"title",children:(o=i,o.charAt(0).toUpperCase()+o.slice(1))})]});var o};
19
+ `;exports.Legend=r=>{let{color:l,text:o}=r;return e.jsxs(i,{children:[e.jsx("div",{className:"color",style:{backgroundColor:l}}),e.jsx(t.BodyPrimary,{className:"title",children:(s=o,s.charAt(0).toUpperCase()+s.slice(1))})]});var s};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("chart.js"),r=require("react"),l=require("react-chartjs-2"),n=require("../../../TypographyStyle.js"),i=require("../../../../constants/Theme.js"),o=require("../utils/calcPercentage.js"),a=require("./LineChart.styled.js");t.Chart.register(t.CategoryScale,t.LinearScale,t.PointElement,t.BarElement,t.LineElement,t.ArcElement,t.Filler,t.Title,t.Tooltip,t.Legend);exports.LineChart=({scaleText:t,labels:d,canvasHeight:s,datas:c,maintainAspectRatio:u=!1,stepSize:p,min:y,max:g,isZeroState:v,tension:C,isNewStyles:x,prefixCurrencyInYAxis:b,pointRadius:h,useKFormat:S,lineThickness:O,ticksLabelCallback:m,labelCallback:f,afterBodyCallBack:j,titleTooltipCallback:L,isInternationalStore:k,customYHeaders:R,headerIcons:w=[],legendsAndIconDirection:B="row",hasSecondYAxis:q=!1,min2:F,max2:I,stepSize2:$,prefixCurrencyInY2Axis:A,useKFormat2:z,customY2Headers:T})=>{var D,E,P,Y;const[V,W]=r.useState(null),H=r.useRef();r.useEffect(()=>{var e,t,r,l;if(null===(l=null===(r=null===(t=null===(e=H.current)||void 0===e?void 0:e.scales)||void 0===t?void 0:t.y)||void 0===r?void 0:r.ticks)||void 0===l?void 0:l.length){const e=38*H.current.scales.y.ticks.length;W(e)}},[H]);const Z=c.map(e=>({text:e.legend,color:e.lineColor?e.lineColor:e.dotted?i.COLORS.content.placeholder:i.COLORS.background.brand,square:e.squareLegends})),K={labels:d,datasets:c.map((e,t)=>{var r,l,n;return Object.assign(Object.assign({tension:null!=C?C:.4,fill:e.gradient?"start":0},((e,t,r)=>{const l={borderColor:e||(t?i.COLORS.content.placeholder:i.COLORS.background.brand)};return x?Object.assign({pointStyle:"circle",pointRadius:h||(d&&d.length>10?2.5:4),pointBorderColor:"transparent",pointBackgroundColor:r||e||(t?i.COLORS.content.placeholder:i.COLORS.background.brand)},l):Object.assign({pointRadius:null!=h?h:1},l)})(e.lineColor,e.dotted,e.pointColors)),{borderDash:e.dotted?[8,3]:void 0,data:e.data,borderWidth:null!==(l=null!==(r=e.lineWidth)&&void 0!==r?r:O)&&void 0!==l?l:2,backgroundColor:e.gradient?t=>{const r=t.chart.ctx.createLinearGradient(0,0,0,V?V-75:150);return e.gradientColor?(r.addColorStop(0,e.gradientColor.start),r.addColorStop(1,e.gradientColor.end),r):(r.addColorStop(0,"#F1EEFB"),r.addColorStop(1,"rgba(127, 86, 217, 0)"),r)}:null!==(n=e.backgroundColor)&&void 0!==n?n:"transparent",legend:e.legend,yAxisID:e.useSecondYAxis?"y1":"y"})})},_={maintainAspectRatio:u,responsive:!0,plugins:{legend:{display:!1},title:{display:!1},tooltip:{displayColors:null!=x&&x,titleFont:()=>({weight:"600",size:14,family:"inter"}),titleColor:()=>i.COLORS.content.primaryInverse,backgroundColor:i.COLORS.content.primary,callbacks:{labelTextColor:()=>i.COLORS.content.primaryInverse,title:L,label:f,afterBody:j},bodyFont:()=>({weight:"400",size:14,family:"inter"})}},scales:{y:{beginAtZero:!0,min:v?0:y,max:v?10:g,position:"left",id:"y",ticks:{color:i.COLORS.content.secondary,callback:e=>{var r,l;return S?`${null!==(r=null==t?void 0:t.yPrefix)&&void 0!==r?r:""}${k?o.truncateValueForInternationalStore(e):o.truncateValueForIndianStore(e)}${null!=b?b:""}`:R&&Object.keys(R).length>0?R[e]:`${null!==(l=null==t?void 0:t.yPrefix)&&void 0!==l?l:""}${e}${null!=b?b:""}`},font:{family:"inter",size:12,weight:"400"},stepSize:v?1:p,padding:x?24:0},title:{display:!!(null==t?void 0:t.y),text:null==t?void 0:t.y},grid:{color:i.COLORS.background.base,drawBorder:null===(D=null==t?void 0:t.yDrawBorder)||void 0===D||D}},y1:{beginAtZero:!0,min:v?0:F,max:v?10:I,position:"right",id:"y1",display:q,ticks:{color:i.COLORS.content.secondary,callback:e=>{var r,l;return z?`${null!==(r=null==t?void 0:t.y2Prefix)&&void 0!==r?r:""}${k?o.truncateValueForInternationalStore(e):o.truncateValueForIndianStore(e)}${null!=A?A:""}`:T&&Object.keys(T).length>0?T[e]:`${null!==(l=null==t?void 0:t.y2Prefix)&&void 0!==l?l:""}${e}${null!=A?A:""}`},font:{family:"inter",size:12,weight:"400"},stepSize:v?1:$,padding:x?24:0},title:{display:!!(null==t?void 0:t.y2),text:null==t?void 0:t.y2},grid:{color:"transparent",drawBorder:null===(E=null==t?void 0:t.y2DrawBorder)||void 0===E||E}},x:{ticks:{callback:m,color:i.COLORS.content.secondary,font:{family:"inter",size:12,weight:"400"}},title:{display:!!(null==t?void 0:t.x),text:null==t?void 0:t.x},grid:{display:!1,drawBorder:null!==(P=null==t?void 0:t.xDrawBorder)&&void 0!==P&&P}}}};return e.jsxs("div",{style:Object.assign(Object.assign({},u?{}:{height:null!==(Y=null!=s?s:V)&&void 0!==Y?Y:204}),{display:"flex",flexDirection:"column",gap:2,width:"100%"}),children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",flexDirection:B},children:[e.jsx(a.LegendWrapper,{children:w.map((t,r)=>e.jsx(a.LegendContainer,{children:t},r))}),e.jsx(a.LegendWrapper,{children:Z.map(({text:t,color:r,square:l},i)=>t?e.jsxs(a.LegendContainer,{children:[e.jsx(a.LegendColor,{color:r,square:l,newStyle:x}),e.jsx(n.BodyTiny,{color:"#667085",children:t})]},i):e.jsx(e.Fragment,{}))})]}),e.jsx("div",{style:{flex:1},children:e.jsx(l.Line,{ref:H,options:_,data:K})})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("chart.js"),r=require("react"),l=require("react-chartjs-2"),n=require("../../../TypographyStyle.js"),i=require("../../../../constants/Theme.js"),o=require("../utils/calcPercentage.js"),a=require("./LineChart.styled.js");t.Chart.register(t.CategoryScale,t.LinearScale,t.PointElement,t.BarElement,t.LineElement,t.ArcElement,t.Filler,t.Title,t.Tooltip,t.Legend);exports.LineChart=t=>{let{scaleText:d,labels:s,canvasHeight:c,datas:u,maintainAspectRatio:p=!1,stepSize:y,min:g,max:v,isZeroState:C,tension:x,isNewStyles:b,prefixCurrencyInYAxis:h,pointRadius:S,useKFormat:O,lineThickness:m,ticksLabelCallback:f,labelCallback:j,afterBodyCallBack:L,titleTooltipCallback:k,isInternationalStore:R,customYHeaders:w,headerIcons:B=[],legendsAndIconDirection:q="row",hasSecondYAxis:F=!1,min2:I,max2:$,stepSize2:A,prefixCurrencyInY2Axis:z,useKFormat2:T,customY2Headers:D}=t;var E,P,Y,V;const[W,H]=r.useState(null),Z=r.useRef();r.useEffect((()=>{var e,t,r,l;if(null===(l=null===(r=null===(t=null===(e=Z.current)||void 0===e?void 0:e.scales)||void 0===t?void 0:t.y)||void 0===r?void 0:r.ticks)||void 0===l?void 0:l.length){const e=38*Z.current.scales.y.ticks.length;H(e)}}),[Z]);const K=u.map((e=>({text:e.legend,color:e.lineColor?e.lineColor:e.dotted?i.COLORS.content.placeholder:i.COLORS.background.brand,square:e.squareLegends}))),_={labels:s,datasets:u.map(((e,t)=>{var r,l,n;return Object.assign(Object.assign({tension:null!=x?x:.4,fill:e.gradient?"start":0},((e,t,r)=>{const l={borderColor:e||(t?i.COLORS.content.placeholder:i.COLORS.background.brand)};return b?Object.assign({pointStyle:"circle",pointRadius:S||(s&&s.length>10?2.5:4),pointBorderColor:"transparent",pointBackgroundColor:r||e||(t?i.COLORS.content.placeholder:i.COLORS.background.brand)},l):Object.assign({pointRadius:null!=S?S:1},l)})(e.lineColor,e.dotted,e.pointColors)),{borderDash:e.dotted?[8,3]:void 0,data:e.data,borderWidth:null!==(l=null!==(r=e.lineWidth)&&void 0!==r?r:m)&&void 0!==l?l:2,backgroundColor:e.gradient?t=>{const r=t.chart.ctx.createLinearGradient(0,0,0,W?W-75:150);return e.gradientColor?(r.addColorStop(0,e.gradientColor.start),r.addColorStop(1,e.gradientColor.end),r):(r.addColorStop(0,"#F1EEFB"),r.addColorStop(1,"rgba(127, 86, 217, 0)"),r)}:null!==(n=e.backgroundColor)&&void 0!==n?n:"transparent",legend:e.legend,yAxisID:e.useSecondYAxis?"y1":"y"})}))},G={maintainAspectRatio:p,responsive:!0,plugins:{legend:{display:!1},title:{display:!1},tooltip:{displayColors:null!=b&&b,titleFont:()=>({weight:"600",size:14,family:"inter"}),titleColor:()=>i.COLORS.content.primaryInverse,backgroundColor:i.COLORS.content.primary,callbacks:{labelTextColor:()=>i.COLORS.content.primaryInverse,title:k,label:j,afterBody:L},bodyFont:()=>({weight:"400",size:14,family:"inter"})}},scales:{y:{beginAtZero:!0,min:C?0:g,max:C?10:v,position:"left",id:"y",ticks:{color:i.COLORS.content.secondary,callback:e=>{var t,r;return O?`${null!==(t=null==d?void 0:d.yPrefix)&&void 0!==t?t:""}${R?o.truncateValueForInternationalStore(e):o.truncateValueForIndianStore(e)}${null!=h?h:""}`:w&&Object.keys(w).length>0?w[e]:`${null!==(r=null==d?void 0:d.yPrefix)&&void 0!==r?r:""}${e}${null!=h?h:""}`},font:{family:"inter",size:12,weight:"400"},stepSize:C?1:y,padding:b?24:0},title:{display:!!(null==d?void 0:d.y),text:null==d?void 0:d.y},grid:{color:i.COLORS.background.base,drawBorder:null===(E=null==d?void 0:d.yDrawBorder)||void 0===E||E}},y1:{beginAtZero:!0,min:C?0:I,max:C?10:$,position:"right",id:"y1",display:F,ticks:{color:i.COLORS.content.secondary,callback:e=>{var t,r;return T?`${null!==(t=null==d?void 0:d.y2Prefix)&&void 0!==t?t:""}${R?o.truncateValueForInternationalStore(e):o.truncateValueForIndianStore(e)}${null!=z?z:""}`:D&&Object.keys(D).length>0?D[e]:`${null!==(r=null==d?void 0:d.y2Prefix)&&void 0!==r?r:""}${e}${null!=z?z:""}`},font:{family:"inter",size:12,weight:"400"},stepSize:C?1:A,padding:b?24:0},title:{display:!!(null==d?void 0:d.y2),text:null==d?void 0:d.y2},grid:{color:"transparent",drawBorder:null===(P=null==d?void 0:d.y2DrawBorder)||void 0===P||P}},x:{ticks:{callback:f,color:i.COLORS.content.secondary,font:{family:"inter",size:12,weight:"400"}},title:{display:!!(null==d?void 0:d.x),text:null==d?void 0:d.x},grid:{display:!1,drawBorder:null!==(Y=null==d?void 0:d.xDrawBorder)&&void 0!==Y&&Y}}}};return e.jsxs("div",{style:Object.assign(Object.assign({},p?{}:{height:null!==(V=null!=c?c:W)&&void 0!==V?V:204}),{display:"flex",flexDirection:"column",gap:2,width:"100%"}),children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",flexDirection:q},children:[e.jsx(a.LegendWrapper,{children:B.map(((t,r)=>e.jsx(a.LegendContainer,{children:t},r)))}),e.jsx(a.LegendWrapper,{children:K.map(((t,r)=>{let{text:l,color:i,square:o}=t;return l?e.jsxs(a.LegendContainer,{children:[e.jsx(a.LegendColor,{color:i,square:o,newStyle:b}),e.jsx(n.BodyTiny,{color:"#667085",children:l})]},r):e.jsx(e.Fragment,{})}))})]}),e.jsx("div",{style:{flex:1},children:e.jsx(l.Line,{ref:Z,options:G,data:_})})]})};
@@ -25,4 +25,4 @@
25
25
  display: block;
26
26
  width: 8px;
27
27
  }
28
- `;exports.PieChart=({slices:s,size:i})=>{const[l,c]=t.useState(0),[o,d]=t.useState(i?{height:`${i}px`}:{});t.useEffect(()=>{let e=0;s.forEach(t=>{e+=t.count}),c(e),0===s.reduce((e,t)=>e+t.count,0)&&1===s.length?d(e=>Object.assign(Object.assign({},e),{justifyContent:"center"})):d(e=>Object.assign(Object.assign({},e),{justifyContent:"flex-start"}))},[s]);return e.jsx(n,{style:o,children:s.map(t=>{return e.jsxs("div",{className:"slice-row",style:{justifyContent:"space-between",gap:"8px",padding:"0 8px",maxWidth:"400px"},children:[e.jsx("div",{style:{width:"fit-content"},children:e.jsx(r.Legend,{color:t.color,text:t.name},t.name)}),e.jsxs("div",{style:{display:"flex",alignItems:"center",flexDirection:"column"},children:[e.jsxs(a.BodySecondary,{className:"percentage",children:[(s=t.count,0===l?0:parseFloat((s/l*100).toFixed(1))),"%"]}),t.rawValue&&e.jsxs(a.BodyTiny,{className:"raw-value",children:["(",t.rawValue,")"]})]})]},t.name);var s})})};
28
+ `;exports.PieChart=s=>{let{slices:i,size:l}=s;const[c,o]=t.useState(0),[d,u]=t.useState(l?{height:`${l}px`}:{});t.useEffect((()=>{let e=0;i.forEach((t=>{e+=t.count})),o(e),0===i.reduce(((e,t)=>e+t.count),0)&&1===i.length?u((e=>Object.assign(Object.assign({},e),{justifyContent:"center"}))):u((e=>Object.assign(Object.assign({},e),{justifyContent:"flex-start"})))}),[i]);return e.jsx(n,{style:d,children:i.map((t=>{return e.jsxs("div",{className:"slice-row",style:{justifyContent:"space-between",gap:"8px",padding:"0 8px",maxWidth:"400px"},children:[e.jsx("div",{style:{width:"fit-content"},children:e.jsx(r.Legend,{color:t.color,text:t.name},t.name)}),e.jsxs("div",{style:{display:"flex",alignItems:"center",flexDirection:"column"},children:[e.jsxs(a.BodySecondary,{className:"percentage",children:[(s=t.count,0===c?0:parseFloat((s/c*100).toFixed(1))),"%"]}),t.rawValue&&e.jsxs(a.BodyTiny,{className:"raw-value",children:["(",t.rawValue,")"]})]})]},t.name);var s}))})};