@bikdotai/bik-component-library 0.0.734-beta.2 → 0.0.734-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 (919) hide show
  1. package/dist/cjs/assets/icons/PlusIcon.js +1 -1
  2. package/dist/cjs/assets/icons/searchIcon.js +1 -1
  3. package/dist/cjs/components/InfiniteScroll/InfiniteScroll.js +1 -1
  4. package/dist/cjs/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  5. package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  6. package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  7. package/dist/cjs/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  8. package/dist/cjs/components/QueryBuilder/QueryBuilder.js +1 -1
  9. package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.js +1 -1
  10. package/dist/cjs/components/QueryBuilder/Triggers/IG/components/IGTrigger.js +1 -1
  11. package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  12. package/dist/cjs/components/QueryBuilder/components/AddNodeButton.js +1 -1
  13. package/dist/cjs/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
  14. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
  15. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
  16. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  17. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.js +1 -1
  18. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  19. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +1 -1
  20. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  21. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
  22. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
  23. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
  24. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NoInput.js +1 -1
  25. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  26. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
  27. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  28. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
  29. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
  30. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
  31. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  32. package/dist/cjs/components/QueryBuilder/components/DeleteButton.js +1 -1
  33. package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js +1 -1
  34. package/dist/cjs/components/QueryBuilder/components/InputLoader.js +4 -4
  35. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js +2 -2
  36. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
  37. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
  38. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
  39. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -1
  40. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/QueryBuilderNode.js +1 -1
  41. package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  42. package/dist/cjs/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +1 -1
  43. package/dist/cjs/components/SearchFilter/components/DatePickerButton.js +1 -1
  44. package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js +1 -1
  45. package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  46. package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -1
  47. package/dist/cjs/components/SearchFilter/index.js +1 -1
  48. package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
  49. package/dist/cjs/components/TablePagination/TablePaginationCard.js +1 -1
  50. package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.js +1 -1
  51. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
  52. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +1 -1
  53. package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
  54. package/dist/cjs/components/accordion/Accordion.js +1 -1
  55. package/dist/cjs/components/accordion/AccordionArrow.js +1 -1
  56. package/dist/cjs/components/action-button/ActionButtons.js +1 -1
  57. package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
  58. package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.js +1 -1
  59. package/dist/cjs/components/ai-modals/ActivateBikAI.js +1 -1
  60. package/dist/cjs/components/ai-modals/AiCreditsExhausted.js +1 -1
  61. package/dist/cjs/components/ai-modals/AiCreditsLow.js +1 -1
  62. package/dist/cjs/components/ai-modals/AiSyncProgress.js +1 -1
  63. package/dist/cjs/components/alerts/Alert.js +1 -1
  64. package/dist/cjs/components/analytics-card/AnalyticsCard.js +1 -1
  65. package/dist/cjs/components/analytics-card/AnalyticsCard.styled.js +1 -1
  66. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.js +1 -1
  67. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChipChannelFooter.js +1 -1
  68. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  69. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
  70. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
  71. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  72. package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
  73. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  74. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +1 -1
  75. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
  76. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +1 -1
  77. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +2 -2
  78. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  79. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  80. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -1
  81. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
  82. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
  83. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  84. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  85. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +1 -1
  86. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +1 -1
  87. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
  88. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +1 -1
  89. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -1
  90. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -1
  91. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -1
  92. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +1 -1
  93. package/dist/cjs/components/avatar/Avatar.js +1 -1
  94. package/dist/cjs/components/banner/AdBanner.js +1 -1
  95. package/dist/cjs/components/banner/Banner.styled.js +1 -1
  96. package/dist/cjs/components/banner/BannerInline.js +1 -1
  97. package/dist/cjs/components/banner/BannerWithImage.js +1 -1
  98. package/dist/cjs/components/banner/CardBanner.js +1 -1
  99. package/dist/cjs/components/banner/CardBannerWithImage.js +1 -1
  100. package/dist/cjs/components/bik-chatbot/components/AIChat.js +1 -1
  101. package/dist/cjs/components/bik-chatbot/components/BIKChatbot.js +1 -1
  102. package/dist/cjs/components/bik-chatbot/components/ChatLoadingState.js +13 -13
  103. package/dist/cjs/components/bik-chatbot/components/ChatWindow.js +21 -21
  104. package/dist/cjs/components/bik-chatbot/components/ThinkingIndicator.js +2 -2
  105. package/dist/cjs/components/bik-chatbot/contexts/AIContext.js +1 -1
  106. package/dist/cjs/components/bik-layout/BikHeader.js +1 -1
  107. package/dist/cjs/components/bik-layout/BikLayout.js +1 -1
  108. package/dist/cjs/components/bik-layout/BikProfile.js +1 -1
  109. package/dist/cjs/components/bik-layout/BikSidebar.js +1 -1
  110. package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
  111. package/dist/cjs/components/bik-layout/FeatureModal.js +1 -1
  112. package/dist/cjs/components/bik-layout/FeatureModalV2.js +1 -1
  113. package/dist/cjs/components/bik-layout/MockMenus.d.ts +0 -1
  114. package/dist/cjs/components/bik-layout/PageLoader.js +1 -1
  115. package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js +1 -1
  116. package/dist/cjs/components/bik-layout/SidebarPopup.js +1 -1
  117. package/dist/cjs/components/bik-layout/SidebarSkeleton.js +1 -1
  118. package/dist/cjs/components/bik-layout/SimpleSidebar.js +1 -1
  119. package/dist/cjs/components/button/Button.js +1 -1
  120. package/dist/cjs/components/button/Button.styled.js +1 -1
  121. package/dist/cjs/components/buttonGroup/ButtonGroup.js +1 -1
  122. package/dist/cjs/components/card-selection-modal/CardSelectionModal.js +1 -1
  123. package/dist/cjs/components/card-selection-modal/CardSelectionModal.styled.js +1 -1
  124. package/dist/cjs/components/card-selector/CardSelector.js +1 -1
  125. package/dist/cjs/components/card-selector/CardSelectorGroup.js +1 -1
  126. package/dist/cjs/components/carousel/carousel.js +2 -2
  127. package/dist/cjs/components/carousel-preview/CarouselPreview.js +1 -1
  128. package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js +1 -1
  129. package/dist/cjs/components/carousel-preview/CustomCarouselArrows.js +1 -1
  130. package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
  131. package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.js +1 -1
  132. package/dist/cjs/components/checkBox/CheckBox.js +1 -1
  133. package/dist/cjs/components/checkList/CheckList.js +1 -1
  134. package/dist/cjs/components/checkList/CheckList.styled.js +1 -1
  135. package/dist/cjs/components/code-block/CodeBlock.js +1 -1
  136. package/dist/cjs/components/colourInput/ColourInput.js +1 -1
  137. package/dist/cjs/components/colourInput/ColourInput.styled.js +1 -1
  138. package/dist/cjs/components/country-code-picker/CountryCodePicker.js +1 -1
  139. package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.js +1 -1
  140. package/dist/cjs/components/curtain/Curtain.js +1 -1
  141. package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
  142. package/dist/cjs/components/custom-date-time/CustomDateTime.styled.js +1 -1
  143. package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  144. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  145. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.styled.js +1 -1
  146. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.js +1 -1
  147. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.styled.js +1 -1
  148. package/dist/cjs/components/dashboard-review-popup/components/Form.js +1 -1
  149. package/dist/cjs/components/dashboard-review-popup/components/Form.styled.js +1 -1
  150. package/dist/cjs/components/dashboard-review-popup/components/ZeroState.js +1 -1
  151. package/dist/cjs/components/data-source-panel/DataSourceInfoFooter.js +1 -1
  152. package/dist/cjs/components/data-source-panel/DataSourcePanel.js +1 -1
  153. package/dist/cjs/components/data-source-panel/Modals/DescriptionModal.js +7 -7
  154. package/dist/cjs/components/datePicker/DatePicker.js +1 -1
  155. package/dist/cjs/components/datePicker/DatePicker.styled.js +1 -1
  156. package/dist/cjs/components/datePicker/DatePickerWrapper.js +1 -1
  157. package/dist/cjs/components/datePicker/TimePicker.js +1 -1
  158. package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  159. package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
  160. package/dist/cjs/components/discount-modal/DiscountModal.styled.js +1 -1
  161. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  162. package/dist/cjs/components/discount-modal/DynamicCoupon/MinimumRequirementComponent.js +1 -1
  163. package/dist/cjs/components/discount-modal/DynamicCoupon/ZeroState.js +3 -3
  164. package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
  165. package/dist/cjs/components/dot-pulse/DotPulse.js +3 -3
  166. package/dist/cjs/components/dropShadow/DropShadow.js +1 -1
  167. package/dist/cjs/components/dropdown/ChipDropdown.js +1 -1
  168. package/dist/cjs/components/dropdown/ChipInput.js +1 -1
  169. package/dist/cjs/components/dropdown/Dropdown.js +1 -1
  170. package/dist/cjs/components/dropdown/DropdownPopover/index.js +1 -1
  171. package/dist/cjs/components/dropdown/MenuItem/MenuItem.js +2 -2
  172. package/dist/cjs/components/dropdown/MultilevelDropdownPopover/index.js +1 -1
  173. package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  174. package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
  175. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
  176. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +3 -3
  177. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  178. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
  179. package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
  180. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
  181. package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
  182. package/dist/cjs/components/dropdown-button/DropdownButton.js +1 -1
  183. package/dist/cjs/components/dynamic-tabs/DynamicTabs.js +1 -1
  184. package/dist/cjs/components/fab-menu/FABMenu.js +1 -1
  185. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  186. package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js +1 -1
  187. package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js +1 -1
  188. package/dist/cjs/components/feature-announcements/VideoModal.js +1 -1
  189. package/dist/cjs/components/file-uploader/FileUploader.js +1 -1
  190. package/dist/cjs/components/floater/floater.js +1 -1
  191. package/dist/cjs/components/floating-action-button/FloatingActionButton.js +1 -1
  192. package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.js +2 -2
  193. package/dist/cjs/components/icon-button/IconButton.js +1 -1
  194. package/dist/cjs/components/image-cropper/BikImageCropper.js +1 -1
  195. package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
  196. package/dist/cjs/components/input/ChipInput.js +1 -1
  197. package/dist/cjs/components/input/Input.js +1 -1
  198. package/dist/cjs/components/input/Input.styled.js +1 -1
  199. package/dist/cjs/components/input-with-vars/InputWithVariables.js +2 -2
  200. package/dist/cjs/components/input-with-vars/customPortal.js +1 -1
  201. package/dist/cjs/components/keywords-input/KeywordsInput.js +1 -1
  202. package/dist/cjs/components/list-item/ListItem.js +1 -1
  203. package/dist/cjs/components/list-item/ListItem.styled.js +1 -1
  204. package/dist/cjs/components/markdown/index.js +1 -1
  205. package/dist/cjs/components/modals/Modal.js +1 -1
  206. package/dist/cjs/components/modals/modal.styled.js +1 -1
  207. package/dist/cjs/components/modals/styledModal.js +1 -1
  208. package/dist/cjs/components/multi-level-dropdown/MenuList.js +1 -1
  209. package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  210. package/dist/cjs/components/navigation-hyperlink/NavigationHyperlink.js +2 -2
  211. package/dist/cjs/components/pagination/Pagination.js +1 -1
  212. package/dist/cjs/components/pagination/Pagination.styled.js +1 -1
  213. package/dist/cjs/components/plans/NewSubscriptionPlan.js +1 -1
  214. package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
  215. package/dist/cjs/components/plans/SubscriptionPlanSelector.js +1 -1
  216. package/dist/cjs/components/plans/SubscriptionPlanStyled.js +1 -1
  217. package/dist/cjs/components/plans/SubscriptionPlansCollected.js +2 -2
  218. package/dist/cjs/components/postPicker/postPicker.js +1 -1
  219. package/dist/cjs/components/product-picker/ProductPicker.styled.js +1 -1
  220. package/dist/cjs/components/product-picker/ProductPickerModal.js +1 -1
  221. package/dist/cjs/components/product-picker-v2/ProductPickerShimmer.js +1 -1
  222. package/dist/cjs/components/product-picker-v2/ProductPickerTag.js +1 -1
  223. package/dist/cjs/components/product-picker-v2/collectionScreen.js +1 -1
  224. package/dist/cjs/components/product-picker-v2/emptyState.js +2 -2
  225. package/dist/cjs/components/product-picker-v2/modal.js +1 -1
  226. package/dist/cjs/components/product-picker-v2/product.js +1 -1
  227. package/dist/cjs/components/product-picker-v2/productInfoOverlay.js +7 -7
  228. package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
  229. package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +1 -1
  230. package/dist/cjs/components/product-picker-v2/reducers.js +1 -1
  231. package/dist/cjs/components/product-picker-v2/searchScreen.js +1 -1
  232. package/dist/cjs/components/product-picker-v2/selectedScreen.js +1 -1
  233. package/dist/cjs/components/product-picker-v2/utility.js +1 -1
  234. package/dist/cjs/components/product-picker-v2/variant.js +1 -1
  235. package/dist/cjs/components/product-picker-v2/variantComponents.js +1 -1
  236. package/dist/cjs/components/progress-bar/CircularProgressBar.js +1 -1
  237. package/dist/cjs/components/progress-bar/ProgressBarComponent.js +1 -1
  238. package/dist/cjs/components/progress-bar-v2/ProgressBarV2.js +1 -1
  239. package/dist/cjs/components/radioButton/RadioButton.js +1 -1
  240. package/dist/cjs/components/radioList/RadioList.js +1 -1
  241. package/dist/cjs/components/radioList/RadioList.styled.js +1 -1
  242. package/dist/cjs/components/resizeImage/index.js +1 -1
  243. package/dist/cjs/components/searchBar/searchBar.js +1 -1
  244. package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
  245. package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.js +2 -2
  246. package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
  247. package/dist/cjs/components/side-modal/SideModal.js +1 -1
  248. package/dist/cjs/components/slider/slider.js +1 -1
  249. package/dist/cjs/components/spinner/Spinner.js +2 -2
  250. package/dist/cjs/components/star-rating/Star.js +1 -1
  251. package/dist/cjs/components/star-rating/StarRating.js +1 -1
  252. package/dist/cjs/components/states/ShopifyScopeWrapper.js +1 -1
  253. package/dist/cjs/components/states/StateComponent.js +1 -1
  254. package/dist/cjs/components/states-modal/DeleteConfirmationModal.js +1 -1
  255. package/dist/cjs/components/states-modal/StateModalComponent.js +1 -1
  256. package/dist/cjs/components/stepper/Stepper.js +1 -1
  257. package/dist/cjs/components/switch/Switch.js +1 -1
  258. package/dist/cjs/components/tabs/Tabs.js +1 -1
  259. package/dist/cjs/components/tabs/Tabs.styles.js +1 -1
  260. package/dist/cjs/components/tag/Tag.js +1 -1
  261. package/dist/cjs/components/tag/Tag.styled.js +1 -1
  262. package/dist/cjs/components/template-context-mapper/Badge/index.js +4 -4
  263. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
  264. package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.js +1 -1
  265. package/dist/cjs/components/template-context-mapper/modalElements/Body.js +6 -6
  266. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
  267. package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
  268. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  269. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js +3 -3
  270. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  271. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  272. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +2 -2
  273. package/dist/cjs/components/template-context-mapper/modalElements/Footer.js +4 -4
  274. package/dist/cjs/components/template-context-mapper/modalElements/Header.js +8 -8
  275. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
  276. package/dist/cjs/components/template-context-mapper/modalElements/ProductBox.js +2 -2
  277. package/dist/cjs/components/template-context-mapper/modalElements/QueryParamsComponent.js +2 -2
  278. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
  279. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -1
  280. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  281. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +5 -5
  282. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  283. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +3 -3
  284. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +2 -2
  285. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  286. package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  287. package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  288. package/dist/cjs/components/template-preview/RCS/RCSButtons.js +1 -1
  289. package/dist/cjs/components/template-preview/RCS/RCSChatHeader.js +1 -1
  290. package/dist/cjs/components/template-preview/RCS/RCSChatPreview.js +1 -1
  291. package/dist/cjs/components/template-preview/RCS/RCSMediaCard.js +1 -1
  292. package/dist/cjs/components/template-preview/RCS/RCSTemplateLikePreview.js +4 -4
  293. package/dist/cjs/components/template-preview/SMS/SMSBubble.js +4 -4
  294. package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
  295. package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
  296. package/dist/cjs/components/template-preview/WhatsApp/ChatBtn.js +1 -1
  297. package/dist/cjs/components/template-preview/WhatsApp/ChatHeader.js +1 -1
  298. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.js +2 -2
  299. package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
  300. package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +3 -3
  301. package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -1
  302. package/dist/cjs/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +2 -2
  303. package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreview.js +3 -3
  304. package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js +5 -5
  305. package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  306. package/dist/cjs/components/template-preview/webpush/WebpushPreview.js +1 -1
  307. package/dist/cjs/components/testimonial-card/TestimonialCard.js +1 -1
  308. package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +1 -1
  309. package/dist/cjs/components/text-picker/TextPickerCategoryCard.js +5 -5
  310. package/dist/cjs/components/text-picker/TextPickerFooter.js +4 -4
  311. package/dist/cjs/components/text-picker/TextPickerItemRow.js +6 -6
  312. package/dist/cjs/components/text-picker/TextPickerModal.js +6 -6
  313. package/dist/cjs/components/text-picker/TextPickerSelectAllRow.js +6 -6
  314. package/dist/cjs/components/thumbnail/Thumbnail.js +1 -1
  315. package/dist/cjs/components/toaster/Toaster.js +1 -1
  316. package/dist/cjs/components/toaster/Toaster.styled.js +1 -1
  317. package/dist/cjs/components/tooltips/Tooltip.js +1 -1
  318. package/dist/cjs/components/tooltips/TooltipInternal.js +1 -1
  319. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js +1 -1
  320. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -1
  321. package/dist/cjs/components/variable-picker-v3/Content.js +1 -1
  322. package/dist/cjs/components/variable-picker-v3/DefaultVariableContent.js +1 -1
  323. package/dist/cjs/components/variable-picker-v3/NoResult.js +3 -3
  324. package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js +1 -1
  325. package/dist/cjs/components/variable-picker-v3/VariablePicker.js +1 -1
  326. package/dist/cjs/components/variable-picker-v3/highlightSearchText.js +1 -1
  327. package/dist/cjs/components/whats-new/WhatsNew.js +1 -1
  328. package/dist/cjs/components/whats-new/WhatsNewButton.js +1 -1
  329. package/dist/cjs/components/whats-new/WhatsNewPanel.js +1 -1
  330. package/dist/cjs/components/whats-new/WhatsNewProvider.js +1 -1
  331. package/dist/cjs/components/zeroState/ZeroState.js +5 -5
  332. package/dist/cjs/index.js +1 -1
  333. package/dist/esm/assets/icons/PlusIcon.js +1 -1
  334. package/dist/esm/assets/icons/searchIcon.js +1 -1
  335. package/dist/esm/components/InfiniteScroll/InfiniteScroll.js +1 -1
  336. package/dist/esm/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
  337. package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  338. package/dist/esm/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  339. package/dist/esm/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
  340. package/dist/esm/components/QueryBuilder/QueryBuilder.js +1 -1
  341. package/dist/esm/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.js +1 -1
  342. package/dist/esm/components/QueryBuilder/Triggers/IG/components/IGTrigger.js +1 -1
  343. package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
  344. package/dist/esm/components/QueryBuilder/components/AddNodeButton.js +1 -1
  345. package/dist/esm/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
  346. package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
  347. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
  348. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  349. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IgPicker.js +1 -1
  350. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  351. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +1 -1
  352. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -1
  353. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
  354. package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
  355. package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
  356. package/dist/esm/components/QueryBuilder/components/Connectors/Components/NoInput.js +1 -1
  357. package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  358. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
  359. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  360. package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
  361. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
  362. package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
  363. package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  364. package/dist/esm/components/QueryBuilder/components/DeleteButton.js +1 -1
  365. package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js +1 -1
  366. package/dist/esm/components/QueryBuilder/components/InputLoader.js +4 -4
  367. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js +4 -4
  368. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
  369. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
  370. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
  371. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -1
  372. package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/QueryBuilderNode.js +1 -1
  373. package/dist/esm/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
  374. package/dist/esm/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +1 -1
  375. package/dist/esm/components/SearchFilter/components/DatePickerButton.js +1 -1
  376. package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.js +1 -1
  377. package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  378. package/dist/esm/components/SearchFilter/components/SearchFilterItem.js +1 -1
  379. package/dist/esm/components/SearchFilter/index.js +1 -1
  380. package/dist/esm/components/TablePagination/TablePagination.js +1 -1
  381. package/dist/esm/components/TablePagination/TablePaginationCard.js +1 -1
  382. package/dist/esm/components/WhatsAppTextEditor/CustomEditor.styled.js +1 -1
  383. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
  384. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +1 -1
  385. package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
  386. package/dist/esm/components/accordion/Accordion.js +1 -1
  387. package/dist/esm/components/accordion/AccordionArrow.js +1 -1
  388. package/dist/esm/components/action-button/ActionButtons.js +1 -1
  389. package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
  390. package/dist/esm/components/add-variableV2/AddVariableV2SideModal.js +1 -1
  391. package/dist/esm/components/ai-modals/ActivateBikAI.js +1 -1
  392. package/dist/esm/components/ai-modals/AiCreditsExhausted.js +1 -1
  393. package/dist/esm/components/ai-modals/AiCreditsLow.js +1 -1
  394. package/dist/esm/components/ai-modals/AiSyncProgress.js +1 -1
  395. package/dist/esm/components/alerts/Alert.js +1 -1
  396. package/dist/esm/components/analytics-card/AnalyticsCard.js +1 -1
  397. package/dist/esm/components/analytics-card/AnalyticsCard.styled.js +1 -1
  398. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.js +1 -1
  399. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChipChannelFooter.js +1 -1
  400. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  401. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
  402. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
  403. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  404. package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
  405. package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
  406. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +1 -1
  407. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
  408. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +1 -1
  409. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +2 -2
  410. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  411. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
  412. package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -1
  413. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
  414. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
  415. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  416. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
  417. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +1 -1
  418. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +1 -1
  419. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
  420. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +1 -1
  421. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -1
  422. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -1
  423. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -1
  424. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +1 -1
  425. package/dist/esm/components/avatar/Avatar.js +1 -1
  426. package/dist/esm/components/banner/AdBanner.js +1 -1
  427. package/dist/esm/components/banner/Banner.styled.js +1 -1
  428. package/dist/esm/components/banner/BannerInline.js +1 -1
  429. package/dist/esm/components/banner/BannerWithImage.js +1 -1
  430. package/dist/esm/components/banner/CardBanner.js +1 -1
  431. package/dist/esm/components/banner/CardBannerWithImage.js +1 -1
  432. package/dist/esm/components/bik-chatbot/components/AIChat.js +1 -1
  433. package/dist/esm/components/bik-chatbot/components/BIKChatbot.js +1 -1
  434. package/dist/esm/components/bik-chatbot/components/ChatLoadingState.js +23 -23
  435. package/dist/esm/components/bik-chatbot/components/ChatWindow.js +21 -21
  436. package/dist/esm/components/bik-chatbot/components/ThinkingIndicator.js +2 -2
  437. package/dist/esm/components/bik-chatbot/contexts/AIContext.js +1 -1
  438. package/dist/esm/components/bik-layout/BikHeader.js +1 -1
  439. package/dist/esm/components/bik-layout/BikLayout.js +1 -1
  440. package/dist/esm/components/bik-layout/BikProfile.js +1 -1
  441. package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
  442. package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
  443. package/dist/esm/components/bik-layout/FeatureModal.js +1 -1
  444. package/dist/esm/components/bik-layout/FeatureModalV2.js +1 -1
  445. package/dist/esm/components/bik-layout/MockMenus.d.ts +0 -1
  446. package/dist/esm/components/bik-layout/PageLoader.js +1 -1
  447. package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.js +1 -1
  448. package/dist/esm/components/bik-layout/SidebarPopup.js +1 -1
  449. package/dist/esm/components/bik-layout/SidebarSkeleton.js +1 -1
  450. package/dist/esm/components/bik-layout/SimpleSidebar.js +1 -1
  451. package/dist/esm/components/button/Button.js +1 -1
  452. package/dist/esm/components/button/Button.styled.js +1 -1
  453. package/dist/esm/components/buttonGroup/ButtonGroup.js +1 -1
  454. package/dist/esm/components/card-selection-modal/CardSelectionModal.js +1 -1
  455. package/dist/esm/components/card-selection-modal/CardSelectionModal.styled.js +1 -1
  456. package/dist/esm/components/card-selector/CardSelector.js +1 -1
  457. package/dist/esm/components/card-selector/CardSelectorGroup.js +1 -1
  458. package/dist/esm/components/carousel/carousel.js +2 -2
  459. package/dist/esm/components/carousel-preview/CarouselPreview.js +1 -1
  460. package/dist/esm/components/carousel-preview/CarouselPreviewCard.js +1 -1
  461. package/dist/esm/components/carousel-preview/CustomCarouselArrows.js +1 -1
  462. package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
  463. package/dist/esm/components/carousel-secondary/CarouselSecondary.style.js +1 -1
  464. package/dist/esm/components/checkBox/CheckBox.js +1 -1
  465. package/dist/esm/components/checkList/CheckList.js +1 -1
  466. package/dist/esm/components/checkList/CheckList.styled.js +1 -1
  467. package/dist/esm/components/code-block/CodeBlock.js +1 -1
  468. package/dist/esm/components/colourInput/ColourInput.js +1 -1
  469. package/dist/esm/components/colourInput/ColourInput.styled.js +1 -1
  470. package/dist/esm/components/country-code-picker/CountryCodePicker.js +1 -1
  471. package/dist/esm/components/country-code-picker/CountryCodePicker.styled.js +1 -1
  472. package/dist/esm/components/curtain/Curtain.js +1 -1
  473. package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
  474. package/dist/esm/components/custom-date-time/CustomDateTime.styled.js +1 -1
  475. package/dist/esm/components/custom-date-time/DateSelector/DateSelector.js +1 -1
  476. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  477. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.styled.js +1 -1
  478. package/dist/esm/components/dashboard-review-popup/components/FiveStar.js +1 -1
  479. package/dist/esm/components/dashboard-review-popup/components/FiveStar.styled.js +1 -1
  480. package/dist/esm/components/dashboard-review-popup/components/Form.js +1 -1
  481. package/dist/esm/components/dashboard-review-popup/components/Form.styled.js +1 -1
  482. package/dist/esm/components/dashboard-review-popup/components/ZeroState.js +1 -1
  483. package/dist/esm/components/data-source-panel/DataSourceInfoFooter.js +1 -1
  484. package/dist/esm/components/data-source-panel/DataSourcePanel.js +1 -1
  485. package/dist/esm/components/data-source-panel/Modals/DescriptionModal.js +7 -7
  486. package/dist/esm/components/datePicker/DatePicker.js +1 -1
  487. package/dist/esm/components/datePicker/DatePicker.styled.js +1 -1
  488. package/dist/esm/components/datePicker/DatePickerWrapper.js +1 -1
  489. package/dist/esm/components/datePicker/TimePicker.js +1 -1
  490. package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  491. package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
  492. package/dist/esm/components/discount-modal/DiscountModal.styled.js +1 -1
  493. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  494. package/dist/esm/components/discount-modal/DynamicCoupon/MinimumRequirementComponent.js +1 -1
  495. package/dist/esm/components/discount-modal/DynamicCoupon/ZeroState.js +4 -4
  496. package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
  497. package/dist/esm/components/dot-pulse/DotPulse.js +3 -3
  498. package/dist/esm/components/dropShadow/DropShadow.js +1 -1
  499. package/dist/esm/components/dropdown/ChipDropdown.js +3 -3
  500. package/dist/esm/components/dropdown/ChipInput.js +1 -1
  501. package/dist/esm/components/dropdown/Dropdown.js +1 -1
  502. package/dist/esm/components/dropdown/DropdownPopover/index.js +1 -1
  503. package/dist/esm/components/dropdown/MenuItem/MenuItem.js +5 -5
  504. package/dist/esm/components/dropdown/MultilevelDropdownPopover/index.js +1 -1
  505. package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
  506. package/dist/esm/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
  507. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
  508. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +4 -4
  509. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  510. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
  511. package/dist/esm/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
  512. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
  513. package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
  514. package/dist/esm/components/dropdown-button/DropdownButton.js +1 -1
  515. package/dist/esm/components/dynamic-tabs/DynamicTabs.js +1 -1
  516. package/dist/esm/components/fab-menu/FABMenu.js +1 -1
  517. package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  518. package/dist/esm/components/feature-announcements/MajorUpdatePopup.js +1 -1
  519. package/dist/esm/components/feature-announcements/MinorUpdatePopup.js +1 -1
  520. package/dist/esm/components/feature-announcements/VideoModal.js +1 -1
  521. package/dist/esm/components/file-uploader/FileUploader.js +1 -1
  522. package/dist/esm/components/floater/floater.js +1 -1
  523. package/dist/esm/components/floating-action-button/FloatingActionButton.js +1 -1
  524. package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.js +2 -2
  525. package/dist/esm/components/icon-button/IconButton.js +1 -1
  526. package/dist/esm/components/image-cropper/BikImageCropper.js +1 -1
  527. package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
  528. package/dist/esm/components/input/ChipInput.js +1 -1
  529. package/dist/esm/components/input/Input.js +1 -1
  530. package/dist/esm/components/input/Input.styled.js +1 -1
  531. package/dist/esm/components/input-with-vars/InputWithVariables.js +3 -3
  532. package/dist/esm/components/input-with-vars/customPortal.js +1 -1
  533. package/dist/esm/components/keywords-input/KeywordsInput.js +1 -1
  534. package/dist/esm/components/list-item/ListItem.js +1 -1
  535. package/dist/esm/components/list-item/ListItem.styled.js +1 -1
  536. package/dist/esm/components/markdown/index.js +1 -1
  537. package/dist/esm/components/modals/Modal.js +1 -1
  538. package/dist/esm/components/modals/modal.styled.js +1 -1
  539. package/dist/esm/components/modals/styledModal.js +1 -1
  540. package/dist/esm/components/multi-level-dropdown/MenuList.js +1 -1
  541. package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
  542. package/dist/esm/components/navigation-hyperlink/NavigationHyperlink.js +1 -1
  543. package/dist/esm/components/pagination/Pagination.js +1 -1
  544. package/dist/esm/components/pagination/Pagination.styled.js +1 -1
  545. package/dist/esm/components/plans/NewSubscriptionPlan.js +1 -1
  546. package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
  547. package/dist/esm/components/plans/SubscriptionPlanSelector.js +1 -1
  548. package/dist/esm/components/plans/SubscriptionPlanStyled.js +1 -1
  549. package/dist/esm/components/plans/SubscriptionPlansCollected.js +3 -3
  550. package/dist/esm/components/postPicker/postPicker.js +1 -1
  551. package/dist/esm/components/product-picker/ProductPicker.styled.js +1 -1
  552. package/dist/esm/components/product-picker/ProductPickerModal.js +1 -1
  553. package/dist/esm/components/product-picker-v2/ProductPickerShimmer.js +1 -1
  554. package/dist/esm/components/product-picker-v2/ProductPickerTag.js +1 -1
  555. package/dist/esm/components/product-picker-v2/collectionScreen.js +1 -1
  556. package/dist/esm/components/product-picker-v2/emptyState.js +2 -2
  557. package/dist/esm/components/product-picker-v2/modal.js +1 -1
  558. package/dist/esm/components/product-picker-v2/product.js +1 -1
  559. package/dist/esm/components/product-picker-v2/productInfoOverlay.js +8 -8
  560. package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
  561. package/dist/esm/components/product-picker-v2/rearrangeScreen.js +1 -1
  562. package/dist/esm/components/product-picker-v2/reducers.js +1 -1
  563. package/dist/esm/components/product-picker-v2/searchScreen.js +1 -1
  564. package/dist/esm/components/product-picker-v2/selectedScreen.js +1 -1
  565. package/dist/esm/components/product-picker-v2/utility.js +1 -1
  566. package/dist/esm/components/product-picker-v2/variant.js +1 -1
  567. package/dist/esm/components/product-picker-v2/variantComponents.js +1 -1
  568. package/dist/esm/components/progress-bar/CircularProgressBar.js +1 -1
  569. package/dist/esm/components/progress-bar/ProgressBarComponent.js +1 -1
  570. package/dist/esm/components/progress-bar-v2/ProgressBarV2.js +1 -1
  571. package/dist/esm/components/radioButton/RadioButton.js +1 -1
  572. package/dist/esm/components/radioList/RadioList.js +1 -1
  573. package/dist/esm/components/radioList/RadioList.styled.js +1 -1
  574. package/dist/esm/components/resizeImage/index.js +1 -1
  575. package/dist/esm/components/searchBar/searchBar.js +1 -1
  576. package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
  577. package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.js +2 -2
  578. package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
  579. package/dist/esm/components/side-modal/SideModal.js +1 -1
  580. package/dist/esm/components/slider/slider.js +1 -1
  581. package/dist/esm/components/spinner/Spinner.js +3 -3
  582. package/dist/esm/components/star-rating/Star.js +1 -1
  583. package/dist/esm/components/star-rating/StarRating.js +1 -1
  584. package/dist/esm/components/states/ShopifyScopeWrapper.js +1 -1
  585. package/dist/esm/components/states/StateComponent.js +1 -1
  586. package/dist/esm/components/states-modal/DeleteConfirmationModal.js +1 -1
  587. package/dist/esm/components/states-modal/StateModalComponent.js +1 -1
  588. package/dist/esm/components/stepper/Stepper.js +1 -1
  589. package/dist/esm/components/switch/Switch.js +1 -1
  590. package/dist/esm/components/tabs/Tabs.js +1 -1
  591. package/dist/esm/components/tabs/Tabs.styles.js +1 -1
  592. package/dist/esm/components/tag/Tag.js +1 -1
  593. package/dist/esm/components/tag/Tag.styled.js +1 -1
  594. package/dist/esm/components/template-context-mapper/Badge/index.js +4 -4
  595. package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
  596. package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.js +1 -1
  597. package/dist/esm/components/template-context-mapper/modalElements/Body.js +10 -10
  598. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
  599. package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
  600. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  601. package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.js +3 -3
  602. package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  603. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  604. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +2 -2
  605. package/dist/esm/components/template-context-mapper/modalElements/Footer.js +4 -4
  606. package/dist/esm/components/template-context-mapper/modalElements/Header.js +9 -9
  607. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +5 -5
  608. package/dist/esm/components/template-context-mapper/modalElements/ProductBox.js +2 -2
  609. package/dist/esm/components/template-context-mapper/modalElements/QueryParamsComponent.js +2 -2
  610. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
  611. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -1
  612. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  613. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +5 -5
  614. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  615. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +3 -3
  616. package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +3 -3
  617. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  618. package/dist/esm/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  619. package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
  620. package/dist/esm/components/template-preview/RCS/RCSButtons.js +1 -1
  621. package/dist/esm/components/template-preview/RCS/RCSChatHeader.js +1 -1
  622. package/dist/esm/components/template-preview/RCS/RCSChatPreview.js +1 -1
  623. package/dist/esm/components/template-preview/RCS/RCSMediaCard.js +1 -1
  624. package/dist/esm/components/template-preview/RCS/RCSTemplateLikePreview.js +4 -4
  625. package/dist/esm/components/template-preview/SMS/SMSBubble.js +4 -4
  626. package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
  627. package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
  628. package/dist/esm/components/template-preview/WhatsApp/ChatBtn.js +1 -1
  629. package/dist/esm/components/template-preview/WhatsApp/ChatHeader.js +1 -1
  630. package/dist/esm/components/template-preview/WhatsApp/ChatUI.js +2 -2
  631. package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
  632. package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +4 -4
  633. package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
  634. package/dist/esm/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +2 -2
  635. package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreview.js +5 -5
  636. package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js +7 -7
  637. package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  638. package/dist/esm/components/template-preview/webpush/WebpushPreview.js +1 -1
  639. package/dist/esm/components/testimonial-card/TestimonialCard.js +1 -1
  640. package/dist/esm/components/testimonial-card/TestimonialCard.style.js +1 -1
  641. package/dist/esm/components/text-picker/TextPickerCategoryCard.js +5 -5
  642. package/dist/esm/components/text-picker/TextPickerFooter.js +4 -4
  643. package/dist/esm/components/text-picker/TextPickerItemRow.js +6 -6
  644. package/dist/esm/components/text-picker/TextPickerModal.js +10 -10
  645. package/dist/esm/components/text-picker/TextPickerSelectAllRow.js +6 -6
  646. package/dist/esm/components/thumbnail/Thumbnail.js +1 -1
  647. package/dist/esm/components/toaster/Toaster.js +1 -1
  648. package/dist/esm/components/toaster/Toaster.styled.js +1 -1
  649. package/dist/esm/components/tooltips/Tooltip.js +1 -1
  650. package/dist/esm/components/tooltips/TooltipInternal.js +1 -1
  651. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js +1 -1
  652. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -1
  653. package/dist/esm/components/variable-picker-v3/Content.js +1 -1
  654. package/dist/esm/components/variable-picker-v3/DefaultVariableContent.js +1 -1
  655. package/dist/esm/components/variable-picker-v3/NoResult.js +4 -4
  656. package/dist/esm/components/variable-picker-v3/SubHeaderItems.js +1 -1
  657. package/dist/esm/components/variable-picker-v3/VariablePicker.js +1 -1
  658. package/dist/esm/components/variable-picker-v3/highlightSearchText.js +1 -1
  659. package/dist/esm/components/whats-new/WhatsNew.js +1 -1
  660. package/dist/esm/components/whats-new/WhatsNewButton.js +1 -1
  661. package/dist/esm/components/whats-new/WhatsNewPanel.js +1 -1
  662. package/dist/esm/components/whats-new/WhatsNewProvider.js +1 -1
  663. package/dist/esm/components/zeroState/ZeroState.js +5 -5
  664. package/dist/esm/index.js +1 -1
  665. package/package.json +1 -1
  666. package/dist/cjs/_virtual/_cloneBuffer.js +0 -1
  667. package/dist/cjs/_virtual/_nodeUtil.js +0 -1
  668. package/dist/cjs/_virtual/isBuffer.js +0 -1
  669. package/dist/cjs/_virtual/jsx-runtime.js +0 -1
  670. package/dist/cjs/_virtual/react-jsx-runtime.development.js +0 -1
  671. package/dist/cjs/_virtual/react-jsx-runtime.production.min.js +0 -1
  672. package/dist/cjs/assets/bundle-c485438b.css +0 -333
  673. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
  674. package/dist/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -1
  675. package/dist/cjs/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -1
  676. package/dist/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -1
  677. package/dist/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -1
  678. package/dist/cjs/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +0 -1
  679. package/dist/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -1
  680. package/dist/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -1
  681. package/dist/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -1
  682. package/dist/cjs/node_modules/lodash/_DataView.js +0 -1
  683. package/dist/cjs/node_modules/lodash/_Hash.js +0 -1
  684. package/dist/cjs/node_modules/lodash/_ListCache.js +0 -1
  685. package/dist/cjs/node_modules/lodash/_Map.js +0 -1
  686. package/dist/cjs/node_modules/lodash/_MapCache.js +0 -1
  687. package/dist/cjs/node_modules/lodash/_Promise.js +0 -1
  688. package/dist/cjs/node_modules/lodash/_Set.js +0 -1
  689. package/dist/cjs/node_modules/lodash/_Stack.js +0 -1
  690. package/dist/cjs/node_modules/lodash/_Symbol.js +0 -1
  691. package/dist/cjs/node_modules/lodash/_Uint8Array.js +0 -1
  692. package/dist/cjs/node_modules/lodash/_WeakMap.js +0 -1
  693. package/dist/cjs/node_modules/lodash/_arrayEach.js +0 -1
  694. package/dist/cjs/node_modules/lodash/_arrayFilter.js +0 -1
  695. package/dist/cjs/node_modules/lodash/_arrayLikeKeys.js +0 -1
  696. package/dist/cjs/node_modules/lodash/_arrayPush.js +0 -1
  697. package/dist/cjs/node_modules/lodash/_assignValue.js +0 -1
  698. package/dist/cjs/node_modules/lodash/_assocIndexOf.js +0 -1
  699. package/dist/cjs/node_modules/lodash/_baseAssign.js +0 -1
  700. package/dist/cjs/node_modules/lodash/_baseAssignIn.js +0 -1
  701. package/dist/cjs/node_modules/lodash/_baseAssignValue.js +0 -1
  702. package/dist/cjs/node_modules/lodash/_baseClone.js +0 -1
  703. package/dist/cjs/node_modules/lodash/_baseCreate.js +0 -1
  704. package/dist/cjs/node_modules/lodash/_baseGetAllKeys.js +0 -1
  705. package/dist/cjs/node_modules/lodash/_baseGetTag.js +0 -1
  706. package/dist/cjs/node_modules/lodash/_baseIsArguments.js +0 -1
  707. package/dist/cjs/node_modules/lodash/_baseIsMap.js +0 -1
  708. package/dist/cjs/node_modules/lodash/_baseIsNative.js +0 -1
  709. package/dist/cjs/node_modules/lodash/_baseIsSet.js +0 -1
  710. package/dist/cjs/node_modules/lodash/_baseIsTypedArray.js +0 -1
  711. package/dist/cjs/node_modules/lodash/_baseKeys.js +0 -1
  712. package/dist/cjs/node_modules/lodash/_baseKeysIn.js +0 -1
  713. package/dist/cjs/node_modules/lodash/_baseTimes.js +0 -1
  714. package/dist/cjs/node_modules/lodash/_baseUnary.js +0 -1
  715. package/dist/cjs/node_modules/lodash/_cloneArrayBuffer.js +0 -1
  716. package/dist/cjs/node_modules/lodash/_cloneBuffer.js +0 -1
  717. package/dist/cjs/node_modules/lodash/_cloneDataView.js +0 -1
  718. package/dist/cjs/node_modules/lodash/_cloneRegExp.js +0 -1
  719. package/dist/cjs/node_modules/lodash/_cloneSymbol.js +0 -1
  720. package/dist/cjs/node_modules/lodash/_cloneTypedArray.js +0 -1
  721. package/dist/cjs/node_modules/lodash/_copyArray.js +0 -1
  722. package/dist/cjs/node_modules/lodash/_copyObject.js +0 -1
  723. package/dist/cjs/node_modules/lodash/_copySymbols.js +0 -1
  724. package/dist/cjs/node_modules/lodash/_copySymbolsIn.js +0 -1
  725. package/dist/cjs/node_modules/lodash/_coreJsData.js +0 -1
  726. package/dist/cjs/node_modules/lodash/_defineProperty.js +0 -1
  727. package/dist/cjs/node_modules/lodash/_freeGlobal.js +0 -1
  728. package/dist/cjs/node_modules/lodash/_getAllKeys.js +0 -1
  729. package/dist/cjs/node_modules/lodash/_getAllKeysIn.js +0 -1
  730. package/dist/cjs/node_modules/lodash/_getMapData.js +0 -1
  731. package/dist/cjs/node_modules/lodash/_getNative.js +0 -1
  732. package/dist/cjs/node_modules/lodash/_getPrototype.js +0 -1
  733. package/dist/cjs/node_modules/lodash/_getRawTag.js +0 -1
  734. package/dist/cjs/node_modules/lodash/_getSymbols.js +0 -1
  735. package/dist/cjs/node_modules/lodash/_getSymbolsIn.js +0 -1
  736. package/dist/cjs/node_modules/lodash/_getTag.js +0 -1
  737. package/dist/cjs/node_modules/lodash/_getValue.js +0 -1
  738. package/dist/cjs/node_modules/lodash/_hashClear.js +0 -1
  739. package/dist/cjs/node_modules/lodash/_hashDelete.js +0 -1
  740. package/dist/cjs/node_modules/lodash/_hashGet.js +0 -1
  741. package/dist/cjs/node_modules/lodash/_hashHas.js +0 -1
  742. package/dist/cjs/node_modules/lodash/_hashSet.js +0 -1
  743. package/dist/cjs/node_modules/lodash/_initCloneArray.js +0 -1
  744. package/dist/cjs/node_modules/lodash/_initCloneByTag.js +0 -1
  745. package/dist/cjs/node_modules/lodash/_initCloneObject.js +0 -1
  746. package/dist/cjs/node_modules/lodash/_isIndex.js +0 -1
  747. package/dist/cjs/node_modules/lodash/_isKeyable.js +0 -1
  748. package/dist/cjs/node_modules/lodash/_isMasked.js +0 -1
  749. package/dist/cjs/node_modules/lodash/_isPrototype.js +0 -1
  750. package/dist/cjs/node_modules/lodash/_listCacheClear.js +0 -1
  751. package/dist/cjs/node_modules/lodash/_listCacheDelete.js +0 -1
  752. package/dist/cjs/node_modules/lodash/_listCacheGet.js +0 -1
  753. package/dist/cjs/node_modules/lodash/_listCacheHas.js +0 -1
  754. package/dist/cjs/node_modules/lodash/_listCacheSet.js +0 -1
  755. package/dist/cjs/node_modules/lodash/_mapCacheClear.js +0 -1
  756. package/dist/cjs/node_modules/lodash/_mapCacheDelete.js +0 -1
  757. package/dist/cjs/node_modules/lodash/_mapCacheGet.js +0 -1
  758. package/dist/cjs/node_modules/lodash/_mapCacheHas.js +0 -1
  759. package/dist/cjs/node_modules/lodash/_mapCacheSet.js +0 -1
  760. package/dist/cjs/node_modules/lodash/_nativeCreate.js +0 -1
  761. package/dist/cjs/node_modules/lodash/_nativeKeys.js +0 -1
  762. package/dist/cjs/node_modules/lodash/_nativeKeysIn.js +0 -1
  763. package/dist/cjs/node_modules/lodash/_nodeUtil.js +0 -1
  764. package/dist/cjs/node_modules/lodash/_objectToString.js +0 -1
  765. package/dist/cjs/node_modules/lodash/_overArg.js +0 -1
  766. package/dist/cjs/node_modules/lodash/_root.js +0 -1
  767. package/dist/cjs/node_modules/lodash/_stackClear.js +0 -1
  768. package/dist/cjs/node_modules/lodash/_stackDelete.js +0 -1
  769. package/dist/cjs/node_modules/lodash/_stackGet.js +0 -1
  770. package/dist/cjs/node_modules/lodash/_stackHas.js +0 -1
  771. package/dist/cjs/node_modules/lodash/_stackSet.js +0 -1
  772. package/dist/cjs/node_modules/lodash/_toSource.js +0 -1
  773. package/dist/cjs/node_modules/lodash/cloneDeep.js +0 -1
  774. package/dist/cjs/node_modules/lodash/eq.js +0 -1
  775. package/dist/cjs/node_modules/lodash/isArguments.js +0 -1
  776. package/dist/cjs/node_modules/lodash/isArray.js +0 -1
  777. package/dist/cjs/node_modules/lodash/isArrayLike.js +0 -1
  778. package/dist/cjs/node_modules/lodash/isBuffer.js +0 -1
  779. package/dist/cjs/node_modules/lodash/isFunction.js +0 -1
  780. package/dist/cjs/node_modules/lodash/isLength.js +0 -1
  781. package/dist/cjs/node_modules/lodash/isMap.js +0 -1
  782. package/dist/cjs/node_modules/lodash/isObject.js +0 -1
  783. package/dist/cjs/node_modules/lodash/isObjectLike.js +0 -1
  784. package/dist/cjs/node_modules/lodash/isSet.js +0 -1
  785. package/dist/cjs/node_modules/lodash/isTypedArray.js +0 -1
  786. package/dist/cjs/node_modules/lodash/keys.js +0 -1
  787. package/dist/cjs/node_modules/lodash/keysIn.js +0 -1
  788. package/dist/cjs/node_modules/lodash/stubArray.js +0 -1
  789. package/dist/cjs/node_modules/lodash/stubFalse.js +0 -1
  790. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.development.js +0 -10
  791. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
  792. package/dist/cjs/node_modules/react/jsx-runtime.js +0 -1
  793. package/dist/esm/_virtual/_cloneBuffer.js +0 -1
  794. package/dist/esm/_virtual/_nodeUtil.js +0 -1
  795. package/dist/esm/_virtual/isBuffer.js +0 -1
  796. package/dist/esm/_virtual/jsx-runtime.js +0 -1
  797. package/dist/esm/_virtual/react-jsx-runtime.development.js +0 -1
  798. package/dist/esm/_virtual/react-jsx-runtime.production.min.js +0 -1
  799. package/dist/esm/assets/bundle-c485438b.css +0 -333
  800. package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
  801. package/dist/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -1
  802. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -1
  803. package/dist/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -1
  804. package/dist/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -1
  805. package/dist/esm/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +0 -1
  806. package/dist/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -1
  807. package/dist/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -1
  808. package/dist/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -1
  809. package/dist/esm/node_modules/lodash/_DataView.js +0 -1
  810. package/dist/esm/node_modules/lodash/_Hash.js +0 -1
  811. package/dist/esm/node_modules/lodash/_ListCache.js +0 -1
  812. package/dist/esm/node_modules/lodash/_Map.js +0 -1
  813. package/dist/esm/node_modules/lodash/_MapCache.js +0 -1
  814. package/dist/esm/node_modules/lodash/_Promise.js +0 -1
  815. package/dist/esm/node_modules/lodash/_Set.js +0 -1
  816. package/dist/esm/node_modules/lodash/_Stack.js +0 -1
  817. package/dist/esm/node_modules/lodash/_Symbol.js +0 -1
  818. package/dist/esm/node_modules/lodash/_Uint8Array.js +0 -1
  819. package/dist/esm/node_modules/lodash/_WeakMap.js +0 -1
  820. package/dist/esm/node_modules/lodash/_arrayEach.js +0 -1
  821. package/dist/esm/node_modules/lodash/_arrayFilter.js +0 -1
  822. package/dist/esm/node_modules/lodash/_arrayLikeKeys.js +0 -1
  823. package/dist/esm/node_modules/lodash/_arrayPush.js +0 -1
  824. package/dist/esm/node_modules/lodash/_assignValue.js +0 -1
  825. package/dist/esm/node_modules/lodash/_assocIndexOf.js +0 -1
  826. package/dist/esm/node_modules/lodash/_baseAssign.js +0 -1
  827. package/dist/esm/node_modules/lodash/_baseAssignIn.js +0 -1
  828. package/dist/esm/node_modules/lodash/_baseAssignValue.js +0 -1
  829. package/dist/esm/node_modules/lodash/_baseClone.js +0 -1
  830. package/dist/esm/node_modules/lodash/_baseCreate.js +0 -1
  831. package/dist/esm/node_modules/lodash/_baseGetAllKeys.js +0 -1
  832. package/dist/esm/node_modules/lodash/_baseGetTag.js +0 -1
  833. package/dist/esm/node_modules/lodash/_baseIsArguments.js +0 -1
  834. package/dist/esm/node_modules/lodash/_baseIsMap.js +0 -1
  835. package/dist/esm/node_modules/lodash/_baseIsNative.js +0 -1
  836. package/dist/esm/node_modules/lodash/_baseIsSet.js +0 -1
  837. package/dist/esm/node_modules/lodash/_baseIsTypedArray.js +0 -1
  838. package/dist/esm/node_modules/lodash/_baseKeys.js +0 -1
  839. package/dist/esm/node_modules/lodash/_baseKeysIn.js +0 -1
  840. package/dist/esm/node_modules/lodash/_baseTimes.js +0 -1
  841. package/dist/esm/node_modules/lodash/_baseUnary.js +0 -1
  842. package/dist/esm/node_modules/lodash/_cloneArrayBuffer.js +0 -1
  843. package/dist/esm/node_modules/lodash/_cloneBuffer.js +0 -1
  844. package/dist/esm/node_modules/lodash/_cloneDataView.js +0 -1
  845. package/dist/esm/node_modules/lodash/_cloneRegExp.js +0 -1
  846. package/dist/esm/node_modules/lodash/_cloneSymbol.js +0 -1
  847. package/dist/esm/node_modules/lodash/_cloneTypedArray.js +0 -1
  848. package/dist/esm/node_modules/lodash/_copyArray.js +0 -1
  849. package/dist/esm/node_modules/lodash/_copyObject.js +0 -1
  850. package/dist/esm/node_modules/lodash/_copySymbols.js +0 -1
  851. package/dist/esm/node_modules/lodash/_copySymbolsIn.js +0 -1
  852. package/dist/esm/node_modules/lodash/_coreJsData.js +0 -1
  853. package/dist/esm/node_modules/lodash/_defineProperty.js +0 -1
  854. package/dist/esm/node_modules/lodash/_freeGlobal.js +0 -1
  855. package/dist/esm/node_modules/lodash/_getAllKeys.js +0 -1
  856. package/dist/esm/node_modules/lodash/_getAllKeysIn.js +0 -1
  857. package/dist/esm/node_modules/lodash/_getMapData.js +0 -1
  858. package/dist/esm/node_modules/lodash/_getNative.js +0 -1
  859. package/dist/esm/node_modules/lodash/_getPrototype.js +0 -1
  860. package/dist/esm/node_modules/lodash/_getRawTag.js +0 -1
  861. package/dist/esm/node_modules/lodash/_getSymbols.js +0 -1
  862. package/dist/esm/node_modules/lodash/_getSymbolsIn.js +0 -1
  863. package/dist/esm/node_modules/lodash/_getTag.js +0 -1
  864. package/dist/esm/node_modules/lodash/_getValue.js +0 -1
  865. package/dist/esm/node_modules/lodash/_hashClear.js +0 -1
  866. package/dist/esm/node_modules/lodash/_hashDelete.js +0 -1
  867. package/dist/esm/node_modules/lodash/_hashGet.js +0 -1
  868. package/dist/esm/node_modules/lodash/_hashHas.js +0 -1
  869. package/dist/esm/node_modules/lodash/_hashSet.js +0 -1
  870. package/dist/esm/node_modules/lodash/_initCloneArray.js +0 -1
  871. package/dist/esm/node_modules/lodash/_initCloneByTag.js +0 -1
  872. package/dist/esm/node_modules/lodash/_initCloneObject.js +0 -1
  873. package/dist/esm/node_modules/lodash/_isIndex.js +0 -1
  874. package/dist/esm/node_modules/lodash/_isKeyable.js +0 -1
  875. package/dist/esm/node_modules/lodash/_isMasked.js +0 -1
  876. package/dist/esm/node_modules/lodash/_isPrototype.js +0 -1
  877. package/dist/esm/node_modules/lodash/_listCacheClear.js +0 -1
  878. package/dist/esm/node_modules/lodash/_listCacheDelete.js +0 -1
  879. package/dist/esm/node_modules/lodash/_listCacheGet.js +0 -1
  880. package/dist/esm/node_modules/lodash/_listCacheHas.js +0 -1
  881. package/dist/esm/node_modules/lodash/_listCacheSet.js +0 -1
  882. package/dist/esm/node_modules/lodash/_mapCacheClear.js +0 -1
  883. package/dist/esm/node_modules/lodash/_mapCacheDelete.js +0 -1
  884. package/dist/esm/node_modules/lodash/_mapCacheGet.js +0 -1
  885. package/dist/esm/node_modules/lodash/_mapCacheHas.js +0 -1
  886. package/dist/esm/node_modules/lodash/_mapCacheSet.js +0 -1
  887. package/dist/esm/node_modules/lodash/_nativeCreate.js +0 -1
  888. package/dist/esm/node_modules/lodash/_nativeKeys.js +0 -1
  889. package/dist/esm/node_modules/lodash/_nativeKeysIn.js +0 -1
  890. package/dist/esm/node_modules/lodash/_nodeUtil.js +0 -1
  891. package/dist/esm/node_modules/lodash/_objectToString.js +0 -1
  892. package/dist/esm/node_modules/lodash/_overArg.js +0 -1
  893. package/dist/esm/node_modules/lodash/_root.js +0 -1
  894. package/dist/esm/node_modules/lodash/_stackClear.js +0 -1
  895. package/dist/esm/node_modules/lodash/_stackDelete.js +0 -1
  896. package/dist/esm/node_modules/lodash/_stackGet.js +0 -1
  897. package/dist/esm/node_modules/lodash/_stackHas.js +0 -1
  898. package/dist/esm/node_modules/lodash/_stackSet.js +0 -1
  899. package/dist/esm/node_modules/lodash/_toSource.js +0 -1
  900. package/dist/esm/node_modules/lodash/cloneDeep.js +0 -1
  901. package/dist/esm/node_modules/lodash/eq.js +0 -1
  902. package/dist/esm/node_modules/lodash/isArguments.js +0 -1
  903. package/dist/esm/node_modules/lodash/isArray.js +0 -1
  904. package/dist/esm/node_modules/lodash/isArrayLike.js +0 -1
  905. package/dist/esm/node_modules/lodash/isBuffer.js +0 -1
  906. package/dist/esm/node_modules/lodash/isFunction.js +0 -1
  907. package/dist/esm/node_modules/lodash/isLength.js +0 -1
  908. package/dist/esm/node_modules/lodash/isMap.js +0 -1
  909. package/dist/esm/node_modules/lodash/isObject.js +0 -1
  910. package/dist/esm/node_modules/lodash/isObjectLike.js +0 -1
  911. package/dist/esm/node_modules/lodash/isSet.js +0 -1
  912. package/dist/esm/node_modules/lodash/isTypedArray.js +0 -1
  913. package/dist/esm/node_modules/lodash/keys.js +0 -1
  914. package/dist/esm/node_modules/lodash/keysIn.js +0 -1
  915. package/dist/esm/node_modules/lodash/stubArray.js +0 -1
  916. package/dist/esm/node_modules/lodash/stubFalse.js +0 -1
  917. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js +0 -10
  918. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
  919. package/dist/esm/node_modules/react/jsx-runtime.js +0 -1
@@ -1 +1 @@
1
- import{__rest as e}from"../../../_virtual/_tslib.js";import{j as i}from"../../../node_modules/react/jsx-runtime.js";import t from"../../../assets/icons/info.svg.js";import{Alert as o}from"../../alerts/Alert.js";import{ALERT_TYPES as s,CONTENT_POSITION as n}from"../../alerts/AlertHelper.js";import{Button as l}from"../../button/Button.js";import{CheckBox as r}from"../../checkBox/CheckBox.js";import{DISCOUNT_APPLIES_TO as a,OFFER_APPLIES_TO as d,DISCOUNT_TYPES as c,COUPON_EXPIRATION as u,DISCOUNT_VALUE_TYPES as p,DISCOUNT_TARGET_TYPES as m,DISCOUNT_TARGET_SELECTION as C}from"../type.js";import"../../dropdown/DropdownPopover/index.js";import{Dropdown as E}from"../../dropdown/Dropdown.js";import"../../dropdown/ChipDropdown.js";import"react";import"../../zeroState/ZeroState.js";import{BodySecondary as v,TitleRegular as j,TitleSmall as x}from"../../TypographyStyle.js";import{DEFAULT_THEME as D}from"../../../constants/Theme.js";import"../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../list-item/ListItem.js";import"../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../icon-button/IconButton.js";import{Input as b}from"../../input/Input.js";import g from"../../../assets/icons/cross.svg.js";import"../../dropdown/MenuItem/MenuItem.js";import{RadioButton as T}from"../../radioButton/RadioButton.js";import h from"../../../assets/icons/cubeIcon.svg.js";import y from"../../../assets/icons/delete.svg.js";import O from"../../../assets/icons/edit.svg.js";import P from"../../../assets/icons/plus.svg.js";import{CouponExpiration as I}from"../CouponExpiration/CouponExpiration.js";import{DynamicCouponContainer as V}from"../DiscountModal.styled.js";import{DiscountOptionsContainer as S,DiscountDetailsOption as f,AddProductButtonsContainer as R,ProductCollectionCard as _,CubeIconContainer as N,IconContainer as F,ProductVariableCard as A}from"./DynamicCoupon.styled.js";import L from"./MinimumRequirementComponent.js";import w from"./ZeroState.js";var q;!function(e){e.ENTITLED="entitled",e.PREREQUISITE="prerequisite"}(q||(q={}));const U=U=>{var k,B,M,G,Q,X,Y,$;const W=[{selected:U.discountCouponAppliesTo===a.ENTIRE_ORDER,label:"Entire Order",value:a.ENTIRE_ORDER},{selected:U.discountCouponAppliesTo===a.SPECIFIC_PRODUCTS,label:"Specific Product",value:a.SPECIFIC_PRODUCTS},{selected:U.discountCouponAppliesTo===a.SPECIFIC_COLLECTIONS,label:"Specific Collections",value:a.SPECIFIC_COLLECTIONS}],z=[{selected:U.offerAppliesToBuy===d.SPECIFIC_PRODUCTS,label:"Specific Product",value:d.SPECIFIC_PRODUCTS},{selected:U.offerAppliesToBuy===d.SPECIFIC_COLLECTIONS,label:"Specific Collections",value:d.SPECIFIC_COLLECTIONS}],Z=[{selected:U.offerAppliesToGet===d.SPECIFIC_PRODUCTS,label:"Specific Product",value:d.SPECIFIC_PRODUCTS},{selected:U.offerAppliesToGet===d.SPECIFIC_COLLECTIONS,label:"Specific Collections",value:d.SPECIFIC_COLLECTIONS}],H=(e,r,d)=>{var c,u,p,m,C,E,j,b,T,I,V,S;let f=[],L=[],w={},k={};U.useNewPicker?(w=r===q.ENTITLED?U.entitledProducts:U.prerequisiteProducts,k=null!==(c=r===q.ENTITLED?U.entitledCollections:U.prerequisiteCollections)&&void 0!==c?c:[],(null==w?void 0:w.isCustom)&&delete w.isCustom,(null==k?void 0:k.isCustom)&&delete k.isCustom,Object.values(w).forEach((e=>{Object.keys(e.products).forEach((i=>{f.push({id:i,name:e.products[i].name,image:e.products[i].image})}))})),Object.keys(k).forEach((e=>{"isCustom"!==e&&L.push({id:e,name:k[e].name,image:k[e].image})}))):(f=r===q.ENTITLED?U.entitledProducts:U.prerequisiteProducts,L=null!==(u=r===q.ENTITLED?U.entitledCollections:U.prerequisiteCollections)&&void 0!==u?u:[]);const B=[null===(p=U.dynamicDiscountValidationError)||void 0===p?void 0:p.inValidProductSelection,null===(m=U.dynamicDiscountValidationError)||void 0===m?void 0:m.inValidProductVariableSelection,null===(C=U.dynamicDiscountValidationError)||void 0===C?void 0:C.inValidCollectionSelection],M=[null===(E=U.dynamicDiscountValidationError)||void 0===E?void 0:E.inValidBuyXCollectionSelection,null===(j=U.dynamicDiscountValidationError)||void 0===j?void 0:j.inValidBuyXProductSelection,null===(b=U.dynamicDiscountValidationError)||void 0===b?void 0:b.inValidBuyXProductVariableSelection],G=[null===(T=U.dynamicDiscountValidationError)||void 0===T?void 0:T.inValidGetYCollectionSelection,null===(I=U.dynamicDiscountValidationError)||void 0===I?void 0:I.inValidGetYProductSelection,null===(V=U.dynamicDiscountValidationError)||void 0===V?void 0:V.inValidGetYProductVariableSelection];let Q=!1;return"couponAppliesTo"===d&&(Q=B.some(Boolean)),"buyX"===d&&(Q=M.some(Boolean)),"getY"===d&&(Q=G.some(Boolean)),i.jsxs(i.Fragment,{children:[i.jsxs("div",Object.assign({style:{display:"flex",gap:18}},{children:[e===a.SPECIFIC_PRODUCTS&&0===f.length&&(r===q.ENTITLED&&!U.entitledProductVariable||r===q.PREREQUISITE&&!U.preRequisiteProductVariable)&&!(null==L?void 0:L.length)&&i.jsxs(R,{children:[i.jsx("div",Object.assign({style:{width:U.isProductVariableSupported?"284px":"300px",display:"flex"}},{children:i.jsx(l,{buttonText:"Add Product(s)",buttonType:"dashRegular",LeadingIcon:P,matchParentWidth:!0,onClick:()=>{U.setIsProductPickerOpen(r)},error:Q})})),U.isProductVariableSupported&&U.productVariableList&&i.jsxs(i.Fragment,{children:[i.jsx(v,Object.assign({color:D.colorsV2.content.placeholder},{children:"OR"})),i.jsx(l,{buttonText:"Add Product(s) Variable",buttonType:"dashRegular",LeadingIcon:P,matchParentWidth:!0,onClick:()=>{U.setIsProductVariablePickerOpen(r)},error:Q})]})]}),e===a.SPECIFIC_COLLECTIONS&&0===L.length&&!(null==f?void 0:f.length)&&i.jsx("div",Object.assign({style:{width:"300px",display:"flex"}},{children:i.jsx(l,{buttonText:"Add collection(s)",buttonType:"dashRegular",LeadingIcon:P,matchParentWidth:!0,onClick:()=>{U.setIsCollectionPickerOpen(r)},style:{marginTop:"16px"},error:Q})}))]})),Q&&i.jsx("div",Object.assign({style:{margin:"8px 0 0"}},{children:i.jsx(o,{type:s.NEGATIVE,text:"Required Field",contentPosition:n.START,icon:()=>i.jsx(t,{width:16,height:16,color:D.colorsV2.content.negative})})})),f.length||L.length?i.jsxs("div",{children:[i.jsx(v,Object.assign({style:{margin:"8px 0"}},{children:e===a.SPECIFIC_COLLECTIONS?"Collection(s)":"Product(s)"})),i.jsxs(_,{children:[i.jsx(N,{children:i.jsx(h,{width:20,height:20,color:D.colorsV2.content.secondary})}),i.jsxs(x,{children:[e===a.SPECIFIC_PRODUCTS?f.length:L.length," ",e===a.SPECIFIC_PRODUCTS?"Product(s)":"Collection(s)"," ","added"]}),i.jsxs("div",Object.assign({style:{display:"flex",gap:4}},{children:[i.jsx(F,Object.assign({onClick:()=>{e===a.SPECIFIC_PRODUCTS?U.setIsProductPickerOpen(r):U.setIsCollectionPickerOpen(r)}},{children:i.jsx(O,{width:24,height:24,color:D.colorsV2.content.placeholder})})),i.jsx(F,Object.assign({onClick:()=>{e===a.SPECIFIC_PRODUCTS?r===q.ENTITLED?U.setEntitledProducts([]):U.setPrerequisiteProducts([]):r===q.ENTITLED?U.setEntitledCollections([]):U.setPrerequisiteCollections([])}},{children:i.jsx(y,{width:24,height:24,color:D.colorsV2.content.placeholder})}))]}))]})]}):r===q.ENTITLED&&U.entitledProductVariable?i.jsxs("div",{children:[i.jsx(v,Object.assign({style:{margin:"16px 0 8px"}},{children:"Product Variable"})),i.jsxs(A,{children:[i.jsx(x,{children:U.entitledProductVariable.displayName}),i.jsx("div",Object.assign({style:{display:"flex",gap:4}},{children:i.jsx(F,Object.assign({onClick:()=>{U.setEntitledProductVariable(void 0)}},{children:i.jsx(g,{width:24,height:24,color:D.colorsV2.content.primary})}))}))]})]}):r===q.PREREQUISITE&&(null===(S=U.preRequisiteProductVariable)||void 0===S?void 0:S.displayName)?i.jsxs("div",{children:[i.jsx(v,Object.assign({style:{margin:"16px 0 8px"}},{children:"Product Variable"})),i.jsxs(A,{children:[i.jsx(x,{children:U.preRequisiteProductVariable.displayName}),i.jsx("div",Object.assign({style:{display:"flex",gap:4}},{children:i.jsx(F,Object.assign({onClick:()=>{U.setPreRequisiteProductVariable(void 0)}},{children:i.jsx(g,{width:24,height:24,color:D.colorsV2.content.primary})}))}))]})]}):i.jsx(i.Fragment,{children:" "})]})},J=(e,t)=>{var o,s,n,l,r,c,u,p,m,C;let j=[],D=[],g={},T={};U.useNewPicker?(g=e===q.ENTITLED?U.entitledProducts:U.prerequisiteProducts,T=null!==(o=e===q.ENTITLED?U.entitledCollections:U.prerequisiteCollections)&&void 0!==o?o:[],(null==g?void 0:g.isCustom)&&delete g.isCustom,(null==T?void 0:T.isCustom)&&delete T.isCustom,Object.values(g).forEach((e=>{Object.keys(e.products).forEach((i=>{j.push({id:i,name:e.products[i].name,image:e.products[i].image})}))})),Object.keys(T).forEach((e=>{"isCustom"!==e&&D.push({id:e,name:T[e].name,image:T[e].image})}))):(j=e===q.ENTITLED?U.entitledProducts:U.prerequisiteProducts,D=null!==(s=e===q.ENTITLED?U.entitledCollections:U.prerequisiteCollections)&&void 0!==s?s:[]);const h=e===q.PREREQUISITE?U.offerAppliesToBuy:U.offerAppliesToGet,y=e===q.PREREQUISITE?q.PREREQUISITE:q.ENTITLED,O=h===d.SPECIFIC_PRODUCTS?a.SPECIFIC_PRODUCTS:a.SPECIFIC_COLLECTIONS;return i.jsxs("div",{children:[i.jsx(x,Object.assign({style:{marginBottom:16}},{children:e===q.PREREQUISITE?"Customer buys":"Customer gets"})),i.jsxs("div",Object.assign({style:{display:"flex"}},{children:[!t&&i.jsx("div",{children:i.jsxs("div",Object.assign({className:"input__rows"},{children:[i.jsx("div",Object.assign({className:"input__wrapper"},{children:i.jsx(b,{value:e===q.ENTITLED?null!==(l=null===(n=U.discountData.entitledQuantity)||void 0===n?void 0:n.toString())&&void 0!==l?l:"":null!==(c=null===(r=U.discountData.prerequisiteQuantity)||void 0===r?void 0:r.toString())&&void 0!==c?c:"",type:"number",onChangeText:i=>{e===q.ENTITLED?U.setDiscountData(Object.assign(Object.assign({},U.discountData),{entitledQuantity:parseInt(i)})):U.setDiscountData(Object.assign(Object.assign({},U.discountData),{prerequisiteQuantity:parseInt(i)}))},labelText:"Quantity of products",placeholder:"Eg. 2",width:"300px",errorMessage:e===q.PREREQUISITE&&(null===(u=U.dynamicDiscountValidationError)||void 0===u?void 0:u.inValidBuyXValue)||e===q.ENTITLED&&(null===(p=U.dynamicDiscountValidationError)||void 0===p?void 0:p.inValidGetYValue)?"Required Field":"",state:e===q.PREREQUISITE&&(null===(m=U.dynamicDiscountValidationError)||void 0===m?void 0:m.inValidBuyXValue)||e===q.ENTITLED&&(null===(C=U.dynamicDiscountValidationError)||void 0===C?void 0:C.inValidGetYValue)?"invalid":"none"})})),i.jsx("div",{className:"input__wrapper"})]}))}),i.jsxs("div",{children:[i.jsx(v,Object.assign({style:{marginBottom:8}},{children:"Any items from"})),e===q.PREREQUISITE&&i.jsx(E,{width:"244px",options:z,placement:"bottom-start",onSelect:e=>{var i,t,o;U.setOfferAppliesToBuy(e.value),U.setPrerequisiteProducts([]),U.setPrerequisiteCollections([]),U.setPreRequisiteProductVariable(void 0),U.setDynamicDiscountValidationError((e=>Object.assign(Object.assign({},e),{inValidBuyXCollectionSelection:!1,inValidBuyXProductSelection:!1,inValidBuyXProductVariableSelection:!1}))),U.setDiscountData(Object.assign(Object.assign({},U.discountData),{prerequisiteCollectionIds:[],prerequisiteProductIds:[],collectionsConf:{entitledCollections:null===(i=U.discountData.collectionsConf)||void 0===i?void 0:i.entitledCollections,prerequisiteCollections:{}},productsConf:{entitledProducts:null===(t=U.discountData.productsConf)||void 0===t?void 0:t.entitledProducts,prerequisiteProducts:{}},productVariableConf:{entitledProductVariable:null===(o=U.discountData.productVariableConf)||void 0===o?void 0:o.entitledProductVariable,prerequisiteProductVariable:{}}}))}}),e===q.ENTITLED&&i.jsx(E,{width:"244px",options:Z,placement:"bottom-start",onSelect:e=>{var i,t,o;U.setOfferAppliesToGet(e.value),U.setEntitledProducts([]),U.setEntitledCollections([]),U.setEntitledProductVariable(void 0),U.setDynamicDiscountValidationError((e=>Object.assign(Object.assign({},e),{inValidGetYCollectionSelection:!1,inValidGetYProductSelection:!1,inValidGetYProductVariableSelection:!1}))),U.setDiscountData(Object.assign(Object.assign({},U.discountData),{entitledCollectionIds:[],entitledProductIds:[],collectionsConf:{entitledCollections:{},prerequisiteCollections:null===(i=U.discountData.collectionsConf)||void 0===i?void 0:i.prerequisiteCollections},productsConf:{entitledProducts:{},prerequisiteProducts:null===(t=U.discountData.productsConf)||void 0===t?void 0:t.prerequisiteProducts},productVariableConf:{entitledProductVariable:{},prerequisiteProductVariable:null===(o=U.discountData.productVariableConf)||void 0===o?void 0:o.prerequisiteProductVariable}}))}})]})]})),H(O,y,e===q.PREREQUISITE?"buyX":"getY")]})};return i.jsxs(V,Object.assign({style:U.noTopMargin?{marginTop:0}:{}},{children:[i.jsxs("div",{children:[i.jsxs("div",Object.assign({style:{display:"flex",gap:16}},{children:[i.jsx("div",Object.assign({className:"input__wrapper"},{children:i.jsx(b,{value:null!==(k=U.discountData.title)&&void 0!==k?k:"",onChangeText:e=>{var i;U.setDiscountData(Object.assign(Object.assign({},U.discountData),{title:null!==(i=null==e?void 0:e.trim())&&void 0!==i?i:""}))},maxCharLimit:30,labelText:"Discount Coupon Title",placeholder:`Eg. “Flat ${null!==(B=U.currency)&&void 0!==B?B:""} 15 Off”`,hintText:"Will be same for everyone. Can’t be changed later",width:"300px",isRequired:!0,errorMessage:(null===(M=U.dynamicDiscountValidationError)||void 0===M?void 0:M.invalidCouponTitle)?"Required Field":"",state:(null===(G=U.dynamicDiscountValidationError)||void 0===G?void 0:G.invalidCouponTitle)?"invalid":"none"})})),!U.hideProbability&&i.jsx(b,{value:null!==(X=null===(Q=U.discountData.probability)||void 0===Q?void 0:Q.toString())&&void 0!==X?X:"",type:"number",onChangeText:e=>{U.setDiscountData(Object.assign(Object.assign({},U.discountData),{probability:e.startsWith(".")?parseFloat(parseFloat(`0${e}`).toFixed(2)):parseFloat(parseFloat(e).toFixed(2))}))},labelText:"Probability of getting coupon ",hintText:"Enter a decimal value between 0-1",placeholder:"Eg. 0.5",maxCharLimit:4,width:"300px",isRequired:!0,errorMessage:(null===(Y=U.dynamicDiscountValidationError)||void 0===Y?void 0:Y.inValidProbability)?"Required Field":"",state:(null===($=U.dynamicDiscountValidationError)||void 0===$?void 0:$.inValidProbability)?"invalid":"none"})]})),i.jsx("div",{style:{height:"1px",width:"100%",background:D.colorsV2.stroke.primary,margin:"24px 0 8px"}})]}),U.allowStaticCoupon&&i.jsx((()=>i.jsxs("div",{children:[i.jsx(j,{children:"Discount Details"}),i.jsx(S,{children:U.discountDetailsOptions.map((t=>{return i.jsxs(f,Object.assign({selected:U.selectedDiscountDetails.id===t.id,onClick:()=>(i=>{if(U.selectedDiscountDetails.id!==i.id)if(U.resetValidationErrors(),U.setValidationErrorMessage(""),U.setDiscountCouponAppliesTo(a.ENTIRE_ORDER),U.setSelectedDiscountDetails(i),U.setDiscountData(Object.assign(Object.assign({},U.discountData),{value:void 0})),U.setPreRequisiteProductVariable(void 0),U.setEntitledProductVariable(void 0),["percentage","amount"].includes(i.value)){U.onChangeCouponType({label:"Amount off on order",selected:!0,value:c.AMOUNT_OFF_ORDER});const t=Object.assign(Object.assign({},U.discountData),{valueType:"percentage"===i.value?p.PERCENTAGE:p.FIXED_AMOUNT,value:void 0,targetType:m.LINE_ITEM,targetSelection:C.ALL,entitledCollectionIds:[],entitledProductIds:[],prerequisiteCollectionIds:[],prerequisiteProductIds:[],collectionsConf:{entitledCollections:{},prerequisiteCollections:{}},productsConf:{entitledProducts:{},prerequisiteProducts:{}},productVariableConf:{entitledProductVariable:{},prerequisiteProductVariable:{}}}),o=e(t,["entitledQuantity","prerequisiteQuantity"]);U.setDiscountData(o)}else U.onChangeCouponType({label:i.label,selected:!0,value:i.value})})(t)},{children:[t.icon((o=t.id,U.selectedDiscountDetails.id===o?D.colorsV2.stroke.brand:D.colorsV2.text.secondary)),t.label]}),t.id);var o}))})]})),{}),(U.selectedCouponType===c.AMOUNT_OFF_ORDER||U.selectedCouponType===c.AMOUNT_OFF_PRODUCTS)&&(()=>{var e,t,o,s,n,l;return i.jsxs(i.Fragment,{children:[i.jsx("div",Object.assign({className:"input__rows"},{children:i.jsx("div",Object.assign({className:"input__wrapper"},{children:i.jsx(b,{value:null!==(o=null===(t=null===(e=U.discountData)||void 0===e?void 0:e.value)||void 0===t?void 0:t.toString())&&void 0!==o?o:"",labelText:"Discount amount",type:"number",width:"300px",onChangeText:e=>{U.setDiscountData(Object.assign(Object.assign({},U.discountData),{value:parseInt(e)}))},placeholder:"15",prefixText:U.discountData.valueType===p.FIXED_AMOUNT?null!==(s=U.currency)&&void 0!==s?s:"":void 0,suffixText:U.discountData.valueType===p.PERCENTAGE?"%":void 0,errorMessage:(null===(n=U.dynamicDiscountValidationError)||void 0===n?void 0:n.inValidDiscountAmount)?"Required Field":"",state:(null===(l=U.dynamicDiscountValidationError)||void 0===l?void 0:l.inValidDiscountAmount)?"invalid":"none"})}))})),i.jsx("div",Object.assign({style:{paddingTop:"24px",marginTop:16,borderTop:`1px solid ${D.colorsV2.stroke.primary}`}},{children:i.jsxs("div",Object.assign({className:"input__wrapper"},{children:[i.jsx(j,Object.assign({style:{marginBottom:10}},{children:"Applies to"})),i.jsx("div",Object.assign({style:{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto"}},{children:i.jsx(E,{width:"300px",options:W,placement:"bottom-start",onSelect:e=>{const i="value"in e&&e.value===a.ENTIRE_ORDER?{label:"Amount off on order",selected:!0,value:c.AMOUNT_OFF_ORDER}:{label:"Amount off on products",selected:!0,value:c.AMOUNT_OFF_PRODUCTS};U.onChangeCouponType(i),U.setDiscountCouponAppliesTo(e.value),U.setEntitledProductVariable(void 0),U.setDynamicDiscountValidationError((e=>Object.assign(Object.assign({},e),{inValidProductVariableSelection:!1,inValidProductSelection:!1,inValidCollectionSelection:!1})))}})})),(U.discountCouponAppliesTo===a.SPECIFIC_PRODUCTS||U.discountCouponAppliesTo===a.SPECIFIC_COLLECTIONS)&&H(U.discountCouponAppliesTo,q.ENTITLED,"couponAppliesTo")]}))}))]})})(),U.selectedCouponType===c.BUY_X_GET_Y&&(()=>{var e,t,o,s,n;return i.jsxs(V,Object.assign({style:{border:`1px solid ${D.colorsV2.stroke.primary}`,padding:"16px",borderRadius:"4px",margin:0}},{children:[J(q.PREREQUISITE),i.jsx("div",{style:{width:"100%",height:"1px",backgroundColor:D.colorsV2.stroke.primary,margin:"8px 0"}}),J(q.ENTITLED),i.jsx(v,Object.assign({style:{marginTop:"8px"}},{children:"At a discounted value"})),i.jsx("div",{children:i.jsx(T,{label:"Free",isActive:100===U.discountData.value,onValueChange:e=>{e?U.setDiscountData(Object.assign(Object.assign({},U.discountData),{value:100})):U.setDiscountData(Object.assign(Object.assign({},U.discountData),{value:void 0}))}})}),i.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[i.jsx(T,{label:"Percentage off",isActive:100!==U.discountData.value,onValueChange:()=>{U.setDiscountData(Object.assign(Object.assign({},U.discountData),{value:void 0}))}}),100!==U.discountData.value&&i.jsx("div",Object.assign({style:{marginTop:8}},{children:i.jsx(b,{value:null!==(o=null===(t=null===(e=U.discountData)||void 0===e?void 0:e.value)||void 0===t?void 0:t.toString())&&void 0!==o?o:"",onChangeText:e=>{U.setDiscountData(Object.assign(Object.assign({},U.discountData),{value:parseInt(e)}))},type:"number",placeholder:"Eg. 50",suffixText:"%",width:"300px",errorMessage:(null===(s=U.dynamicDiscountValidationError)||void 0===s?void 0:s.inValidDiscountAmount)?"Required Field":"",state:(null===(n=U.dynamicDiscountValidationError)||void 0===n?void 0:n.inValidDiscountAmount)?"invalid":"none"})}))]}))]}))})(),!U.selectedCouponType&&i.jsx(w,{}),U.allowStaticCoupon&&U.selectedCouponType!==c.BUY_X_GET_Y&&i.jsx("div",Object.assign({style:{padding:"24px 0 16px",marginTop:16,borderTop:`1px solid ${D.colorsV2.stroke.primary}`}},{children:i.jsx(L,{selectedMinimumRequirement:U.selectedMinimumRequirement,setSelectedMinimumRequirement:U.setSelectedMinimumRequirement,discountData:U.discountData,setDiscountData:U.setDiscountData,currency:U.currency,dynamicDiscountValidationError:U.dynamicDiscountValidationError})})),U.selectedCouponType&&!U.hideExpiration&&i.jsxs("div",Object.assign({style:{padding:U.selectedCouponType!==c.BUY_X_GET_Y?"24px 0 16px":"8px 0",borderTop:U.selectedCouponType!==c.BUY_X_GET_Y?`1px solid ${D.colorsV2.stroke.primary}`:"none"}},{children:[i.jsx(r,{label:"Add expiration",isDisabled:!!U.makeExpiryMandatory,isChecked:U.isAddExpirationChecked,onValueChange:e=>{U.setIsAddExpirationChecked(e),U.setDiscountData(Object.assign(Object.assign({},U.discountData),{expireAfter:void 0,expireAt:void 0})),U.setSelectedExpiration(U.isUsageFromStatic?u.FIXED_EXPIRATION:u.DYNAMIC_EXPIRATION)},boldOnChecked:!0,labelSize:"DEFAULT"}),i.jsx(v,Object.assign({style:{color:D.colorsV2.text.secondary,marginLeft:28}},{children:"Make coupon only valid till a certain time"})),U.isAddExpirationChecked&&i.jsx(I,{discountData:U.discountData,setDiscountData:U.setDiscountData,isAddExpirationChecked:U.isAddExpirationChecked,inValidCouponExpiry:U.dynamicDiscountValidationError.inValidCouponExpiry,selectedExpiration:U.selectedExpiration,setSelectedExpiration:U.setSelectedExpiration,hideExpirationOptions:U.isUsageFromStatic})]}))]}))};export{q as DISCOUNT_PRODUCTS,U as default};
1
+ import{__rest as e}from"../../../_virtual/_tslib.js";import{jsxs as i,jsx as t,Fragment as o}from"react/jsx-runtime";import n from"../../../assets/icons/info.svg.js";import{Alert as l}from"../../alerts/Alert.js";import{ALERT_TYPES as s,CONTENT_POSITION as r}from"../../alerts/AlertHelper.js";import{Button as a}from"../../button/Button.js";import{CheckBox as d}from"../../checkBox/CheckBox.js";import{DISCOUNT_APPLIES_TO as c,OFFER_APPLIES_TO as u,DISCOUNT_TYPES as p,COUPON_EXPIRATION as m,DISCOUNT_VALUE_TYPES as C,DISCOUNT_TARGET_TYPES as E,DISCOUNT_TARGET_SELECTION as v}from"../type.js";import"../../dropdown/DropdownPopover/index.js";import{Dropdown as D}from"../../dropdown/Dropdown.js";import"../../dropdown/ChipDropdown.js";import"react";import"../../zeroState/ZeroState.js";import{BodySecondary as b,TitleRegular as g,TitleSmall as T}from"../../TypographyStyle.js";import{DEFAULT_THEME as h}from"../../../constants/Theme.js";import"../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../list-item/ListItem.js";import"../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../icon-button/IconButton.js";import{Input as y}from"../../input/Input.js";import O from"../../../assets/icons/cross.svg.js";import"../../dropdown/MenuItem/MenuItem.js";import{RadioButton as P}from"../../radioButton/RadioButton.js";import I from"../../../assets/icons/cubeIcon.svg.js";import V from"../../../assets/icons/delete.svg.js";import S from"../../../assets/icons/edit.svg.js";import j from"../../../assets/icons/plus.svg.js";import{CouponExpiration as f}from"../CouponExpiration/CouponExpiration.js";import{DynamicCouponContainer as x}from"../DiscountModal.styled.js";import{DiscountOptionsContainer as R,DiscountDetailsOption as _,AddProductButtonsContainer as N,ProductCollectionCard as A,CubeIconContainer as F,IconContainer as L,ProductVariableCard as w}from"./DynamicCoupon.styled.js";import q from"./MinimumRequirementComponent.js";import U from"./ZeroState.js";var k;!function(e){e.ENTITLED="entitled",e.PREREQUISITE="prerequisite"}(k||(k={}));const B=B=>{var M,G,Q,X,Y,$,W,z;const Z=[{selected:B.discountCouponAppliesTo===c.ENTIRE_ORDER,label:"Entire Order",value:c.ENTIRE_ORDER},{selected:B.discountCouponAppliesTo===c.SPECIFIC_PRODUCTS,label:"Specific Product",value:c.SPECIFIC_PRODUCTS},{selected:B.discountCouponAppliesTo===c.SPECIFIC_COLLECTIONS,label:"Specific Collections",value:c.SPECIFIC_COLLECTIONS}],H=[{selected:B.offerAppliesToBuy===u.SPECIFIC_PRODUCTS,label:"Specific Product",value:u.SPECIFIC_PRODUCTS},{selected:B.offerAppliesToBuy===u.SPECIFIC_COLLECTIONS,label:"Specific Collections",value:u.SPECIFIC_COLLECTIONS}],J=[{selected:B.offerAppliesToGet===u.SPECIFIC_PRODUCTS,label:"Specific Product",value:u.SPECIFIC_PRODUCTS},{selected:B.offerAppliesToGet===u.SPECIFIC_COLLECTIONS,label:"Specific Collections",value:u.SPECIFIC_COLLECTIONS}],K=(e,d,u)=>{var p,m,C,E,v,D,g,y,P,f,x,R;let _=[],q=[],U={},M={};B.useNewPicker?(U=d===k.ENTITLED?B.entitledProducts:B.prerequisiteProducts,M=null!==(p=d===k.ENTITLED?B.entitledCollections:B.prerequisiteCollections)&&void 0!==p?p:[],(null==U?void 0:U.isCustom)&&delete U.isCustom,(null==M?void 0:M.isCustom)&&delete M.isCustom,Object.values(U).forEach((e=>{Object.keys(e.products).forEach((i=>{_.push({id:i,name:e.products[i].name,image:e.products[i].image})}))})),Object.keys(M).forEach((e=>{"isCustom"!==e&&q.push({id:e,name:M[e].name,image:M[e].image})}))):(_=d===k.ENTITLED?B.entitledProducts:B.prerequisiteProducts,q=null!==(m=d===k.ENTITLED?B.entitledCollections:B.prerequisiteCollections)&&void 0!==m?m:[]);const G=[null===(C=B.dynamicDiscountValidationError)||void 0===C?void 0:C.inValidProductSelection,null===(E=B.dynamicDiscountValidationError)||void 0===E?void 0:E.inValidProductVariableSelection,null===(v=B.dynamicDiscountValidationError)||void 0===v?void 0:v.inValidCollectionSelection],Q=[null===(D=B.dynamicDiscountValidationError)||void 0===D?void 0:D.inValidBuyXCollectionSelection,null===(g=B.dynamicDiscountValidationError)||void 0===g?void 0:g.inValidBuyXProductSelection,null===(y=B.dynamicDiscountValidationError)||void 0===y?void 0:y.inValidBuyXProductVariableSelection],X=[null===(P=B.dynamicDiscountValidationError)||void 0===P?void 0:P.inValidGetYCollectionSelection,null===(f=B.dynamicDiscountValidationError)||void 0===f?void 0:f.inValidGetYProductSelection,null===(x=B.dynamicDiscountValidationError)||void 0===x?void 0:x.inValidGetYProductVariableSelection];let Y=!1;return"couponAppliesTo"===u&&(Y=G.some(Boolean)),"buyX"===u&&(Y=Q.some(Boolean)),"getY"===u&&(Y=X.some(Boolean)),i(o,{children:[i("div",Object.assign({style:{display:"flex",gap:18}},{children:[e===c.SPECIFIC_PRODUCTS&&0===_.length&&(d===k.ENTITLED&&!B.entitledProductVariable||d===k.PREREQUISITE&&!B.preRequisiteProductVariable)&&!(null==q?void 0:q.length)&&i(N,{children:[t("div",Object.assign({style:{width:B.isProductVariableSupported?"284px":"300px",display:"flex"}},{children:t(a,{buttonText:"Add Product(s)",buttonType:"dashRegular",LeadingIcon:j,matchParentWidth:!0,onClick:()=>{B.setIsProductPickerOpen(d)},error:Y})})),B.isProductVariableSupported&&B.productVariableList&&i(o,{children:[t(b,Object.assign({color:h.colorsV2.content.placeholder},{children:"OR"})),t(a,{buttonText:"Add Product(s) Variable",buttonType:"dashRegular",LeadingIcon:j,matchParentWidth:!0,onClick:()=>{B.setIsProductVariablePickerOpen(d)},error:Y})]})]}),e===c.SPECIFIC_COLLECTIONS&&0===q.length&&!(null==_?void 0:_.length)&&t("div",Object.assign({style:{width:"300px",display:"flex"}},{children:t(a,{buttonText:"Add collection(s)",buttonType:"dashRegular",LeadingIcon:j,matchParentWidth:!0,onClick:()=>{B.setIsCollectionPickerOpen(d)},style:{marginTop:"16px"},error:Y})}))]})),Y&&t("div",Object.assign({style:{margin:"8px 0 0"}},{children:t(l,{type:s.NEGATIVE,text:"Required Field",contentPosition:r.START,icon:()=>t(n,{width:16,height:16,color:h.colorsV2.content.negative})})})),_.length||q.length?i("div",{children:[t(b,Object.assign({style:{margin:"8px 0"}},{children:e===c.SPECIFIC_COLLECTIONS?"Collection(s)":"Product(s)"})),i(A,{children:[t(F,{children:t(I,{width:20,height:20,color:h.colorsV2.content.secondary})}),i(T,{children:[e===c.SPECIFIC_PRODUCTS?_.length:q.length," ",e===c.SPECIFIC_PRODUCTS?"Product(s)":"Collection(s)"," ","added"]}),i("div",Object.assign({style:{display:"flex",gap:4}},{children:[t(L,Object.assign({onClick:()=>{e===c.SPECIFIC_PRODUCTS?B.setIsProductPickerOpen(d):B.setIsCollectionPickerOpen(d)}},{children:t(S,{width:24,height:24,color:h.colorsV2.content.placeholder})})),t(L,Object.assign({onClick:()=>{e===c.SPECIFIC_PRODUCTS?d===k.ENTITLED?B.setEntitledProducts([]):B.setPrerequisiteProducts([]):d===k.ENTITLED?B.setEntitledCollections([]):B.setPrerequisiteCollections([])}},{children:t(V,{width:24,height:24,color:h.colorsV2.content.placeholder})}))]}))]})]}):d===k.ENTITLED&&B.entitledProductVariable?i("div",{children:[t(b,Object.assign({style:{margin:"16px 0 8px"}},{children:"Product Variable"})),i(w,{children:[t(T,{children:B.entitledProductVariable.displayName}),t("div",Object.assign({style:{display:"flex",gap:4}},{children:t(L,Object.assign({onClick:()=>{B.setEntitledProductVariable(void 0)}},{children:t(O,{width:24,height:24,color:h.colorsV2.content.primary})}))}))]})]}):d===k.PREREQUISITE&&(null===(R=B.preRequisiteProductVariable)||void 0===R?void 0:R.displayName)?i("div",{children:[t(b,Object.assign({style:{margin:"16px 0 8px"}},{children:"Product Variable"})),i(w,{children:[t(T,{children:B.preRequisiteProductVariable.displayName}),t("div",Object.assign({style:{display:"flex",gap:4}},{children:t(L,Object.assign({onClick:()=>{B.setPreRequisiteProductVariable(void 0)}},{children:t(O,{width:24,height:24,color:h.colorsV2.content.primary})}))}))]})]}):t(o,{children:" "})]})},ee=(e,o)=>{var n,l,s,r,a,d,p,m,C,E;let v=[],g=[],h={},O={};B.useNewPicker?(h=e===k.ENTITLED?B.entitledProducts:B.prerequisiteProducts,O=null!==(n=e===k.ENTITLED?B.entitledCollections:B.prerequisiteCollections)&&void 0!==n?n:[],(null==h?void 0:h.isCustom)&&delete h.isCustom,(null==O?void 0:O.isCustom)&&delete O.isCustom,Object.values(h).forEach((e=>{Object.keys(e.products).forEach((i=>{v.push({id:i,name:e.products[i].name,image:e.products[i].image})}))})),Object.keys(O).forEach((e=>{"isCustom"!==e&&g.push({id:e,name:O[e].name,image:O[e].image})}))):(v=e===k.ENTITLED?B.entitledProducts:B.prerequisiteProducts,g=null!==(l=e===k.ENTITLED?B.entitledCollections:B.prerequisiteCollections)&&void 0!==l?l:[]);const P=e===k.PREREQUISITE?B.offerAppliesToBuy:B.offerAppliesToGet,I=e===k.PREREQUISITE?k.PREREQUISITE:k.ENTITLED,V=P===u.SPECIFIC_PRODUCTS?c.SPECIFIC_PRODUCTS:c.SPECIFIC_COLLECTIONS;return i("div",{children:[t(T,Object.assign({style:{marginBottom:16}},{children:e===k.PREREQUISITE?"Customer buys":"Customer gets"})),i("div",Object.assign({style:{display:"flex"}},{children:[!o&&t("div",{children:i("div",Object.assign({className:"input__rows"},{children:[t("div",Object.assign({className:"input__wrapper"},{children:t(y,{value:e===k.ENTITLED?null!==(r=null===(s=B.discountData.entitledQuantity)||void 0===s?void 0:s.toString())&&void 0!==r?r:"":null!==(d=null===(a=B.discountData.prerequisiteQuantity)||void 0===a?void 0:a.toString())&&void 0!==d?d:"",type:"number",onChangeText:i=>{e===k.ENTITLED?B.setDiscountData(Object.assign(Object.assign({},B.discountData),{entitledQuantity:parseInt(i)})):B.setDiscountData(Object.assign(Object.assign({},B.discountData),{prerequisiteQuantity:parseInt(i)}))},labelText:"Quantity of products",placeholder:"Eg. 2",width:"300px",errorMessage:e===k.PREREQUISITE&&(null===(p=B.dynamicDiscountValidationError)||void 0===p?void 0:p.inValidBuyXValue)||e===k.ENTITLED&&(null===(m=B.dynamicDiscountValidationError)||void 0===m?void 0:m.inValidGetYValue)?"Required Field":"",state:e===k.PREREQUISITE&&(null===(C=B.dynamicDiscountValidationError)||void 0===C?void 0:C.inValidBuyXValue)||e===k.ENTITLED&&(null===(E=B.dynamicDiscountValidationError)||void 0===E?void 0:E.inValidGetYValue)?"invalid":"none"})})),t("div",{className:"input__wrapper"})]}))}),i("div",{children:[t(b,Object.assign({style:{marginBottom:8}},{children:"Any items from"})),e===k.PREREQUISITE&&t(D,{width:"244px",options:H,placement:"bottom-start",onSelect:e=>{var i,t,o;B.setOfferAppliesToBuy(e.value),B.setPrerequisiteProducts([]),B.setPrerequisiteCollections([]),B.setPreRequisiteProductVariable(void 0),B.setDynamicDiscountValidationError((e=>Object.assign(Object.assign({},e),{inValidBuyXCollectionSelection:!1,inValidBuyXProductSelection:!1,inValidBuyXProductVariableSelection:!1}))),B.setDiscountData(Object.assign(Object.assign({},B.discountData),{prerequisiteCollectionIds:[],prerequisiteProductIds:[],collectionsConf:{entitledCollections:null===(i=B.discountData.collectionsConf)||void 0===i?void 0:i.entitledCollections,prerequisiteCollections:{}},productsConf:{entitledProducts:null===(t=B.discountData.productsConf)||void 0===t?void 0:t.entitledProducts,prerequisiteProducts:{}},productVariableConf:{entitledProductVariable:null===(o=B.discountData.productVariableConf)||void 0===o?void 0:o.entitledProductVariable,prerequisiteProductVariable:{}}}))}}),e===k.ENTITLED&&t(D,{width:"244px",options:J,placement:"bottom-start",onSelect:e=>{var i,t,o;B.setOfferAppliesToGet(e.value),B.setEntitledProducts([]),B.setEntitledCollections([]),B.setEntitledProductVariable(void 0),B.setDynamicDiscountValidationError((e=>Object.assign(Object.assign({},e),{inValidGetYCollectionSelection:!1,inValidGetYProductSelection:!1,inValidGetYProductVariableSelection:!1}))),B.setDiscountData(Object.assign(Object.assign({},B.discountData),{entitledCollectionIds:[],entitledProductIds:[],collectionsConf:{entitledCollections:{},prerequisiteCollections:null===(i=B.discountData.collectionsConf)||void 0===i?void 0:i.prerequisiteCollections},productsConf:{entitledProducts:{},prerequisiteProducts:null===(t=B.discountData.productsConf)||void 0===t?void 0:t.prerequisiteProducts},productVariableConf:{entitledProductVariable:{},prerequisiteProductVariable:null===(o=B.discountData.productVariableConf)||void 0===o?void 0:o.prerequisiteProductVariable}}))}})]})]})),K(V,I,e===k.PREREQUISITE?"buyX":"getY")]})};return i(x,Object.assign({style:B.noTopMargin?{marginTop:0}:{}},{children:[i("div",{children:[i("div",Object.assign({style:{display:"flex",gap:16}},{children:[t("div",Object.assign({className:"input__wrapper"},{children:t(y,{value:null!==(M=B.discountData.title)&&void 0!==M?M:"",onChangeText:e=>{var i;B.setDiscountData(Object.assign(Object.assign({},B.discountData),{title:null!==(i=null==e?void 0:e.trim())&&void 0!==i?i:""}))},maxCharLimit:30,labelText:"Discount Coupon Title",placeholder:`Eg. “Flat ${null!==(G=B.currency)&&void 0!==G?G:""} 15 Off”`,hintText:"Will be same for everyone. Can’t be changed later",width:"300px",isRequired:!0,errorMessage:(null===(Q=B.dynamicDiscountValidationError)||void 0===Q?void 0:Q.invalidCouponTitle)?"Required Field":"",state:(null===(X=B.dynamicDiscountValidationError)||void 0===X?void 0:X.invalidCouponTitle)?"invalid":"none"})})),!B.hideProbability&&t(y,{value:null!==($=null===(Y=B.discountData.probability)||void 0===Y?void 0:Y.toString())&&void 0!==$?$:"",type:"number",onChangeText:e=>{B.setDiscountData(Object.assign(Object.assign({},B.discountData),{probability:e.startsWith(".")?parseFloat(parseFloat(`0${e}`).toFixed(2)):parseFloat(parseFloat(e).toFixed(2))}))},labelText:"Probability of getting coupon ",hintText:"Enter a decimal value between 0-1",placeholder:"Eg. 0.5",maxCharLimit:4,width:"300px",isRequired:!0,errorMessage:(null===(W=B.dynamicDiscountValidationError)||void 0===W?void 0:W.inValidProbability)?"Required Field":"",state:(null===(z=B.dynamicDiscountValidationError)||void 0===z?void 0:z.inValidProbability)?"invalid":"none"})]})),t("div",{style:{height:"1px",width:"100%",background:h.colorsV2.stroke.primary,margin:"24px 0 8px"}})]}),B.allowStaticCoupon&&t((()=>i("div",{children:[t(g,{children:"Discount Details"}),t(R,{children:B.discountDetailsOptions.map((t=>{return i(_,Object.assign({selected:B.selectedDiscountDetails.id===t.id,onClick:()=>(i=>{if(B.selectedDiscountDetails.id!==i.id)if(B.resetValidationErrors(),B.setValidationErrorMessage(""),B.setDiscountCouponAppliesTo(c.ENTIRE_ORDER),B.setSelectedDiscountDetails(i),B.setDiscountData(Object.assign(Object.assign({},B.discountData),{value:void 0})),B.setPreRequisiteProductVariable(void 0),B.setEntitledProductVariable(void 0),["percentage","amount"].includes(i.value)){B.onChangeCouponType({label:"Amount off on order",selected:!0,value:p.AMOUNT_OFF_ORDER});const t=Object.assign(Object.assign({},B.discountData),{valueType:"percentage"===i.value?C.PERCENTAGE:C.FIXED_AMOUNT,value:void 0,targetType:E.LINE_ITEM,targetSelection:v.ALL,entitledCollectionIds:[],entitledProductIds:[],prerequisiteCollectionIds:[],prerequisiteProductIds:[],collectionsConf:{entitledCollections:{},prerequisiteCollections:{}},productsConf:{entitledProducts:{},prerequisiteProducts:{}},productVariableConf:{entitledProductVariable:{},prerequisiteProductVariable:{}}}),o=e(t,["entitledQuantity","prerequisiteQuantity"]);B.setDiscountData(o)}else B.onChangeCouponType({label:i.label,selected:!0,value:i.value})})(t)},{children:[t.icon((o=t.id,B.selectedDiscountDetails.id===o?h.colorsV2.stroke.brand:h.colorsV2.text.secondary)),t.label]}),t.id);var o}))})]})),{}),(B.selectedCouponType===p.AMOUNT_OFF_ORDER||B.selectedCouponType===p.AMOUNT_OFF_PRODUCTS)&&(()=>{var e,n,l,s,r,a;return i(o,{children:[t("div",Object.assign({className:"input__rows"},{children:t("div",Object.assign({className:"input__wrapper"},{children:t(y,{value:null!==(l=null===(n=null===(e=B.discountData)||void 0===e?void 0:e.value)||void 0===n?void 0:n.toString())&&void 0!==l?l:"",labelText:"Discount amount",type:"number",width:"300px",onChangeText:e=>{B.setDiscountData(Object.assign(Object.assign({},B.discountData),{value:parseInt(e)}))},placeholder:"15",prefixText:B.discountData.valueType===C.FIXED_AMOUNT?null!==(s=B.currency)&&void 0!==s?s:"":void 0,suffixText:B.discountData.valueType===C.PERCENTAGE?"%":void 0,errorMessage:(null===(r=B.dynamicDiscountValidationError)||void 0===r?void 0:r.inValidDiscountAmount)?"Required Field":"",state:(null===(a=B.dynamicDiscountValidationError)||void 0===a?void 0:a.inValidDiscountAmount)?"invalid":"none"})}))})),t("div",Object.assign({style:{paddingTop:"24px",marginTop:16,borderTop:`1px solid ${h.colorsV2.stroke.primary}`}},{children:i("div",Object.assign({className:"input__wrapper"},{children:[t(g,Object.assign({style:{marginBottom:10}},{children:"Applies to"})),t("div",Object.assign({style:{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto"}},{children:t(D,{width:"300px",options:Z,placement:"bottom-start",onSelect:e=>{const i="value"in e&&e.value===c.ENTIRE_ORDER?{label:"Amount off on order",selected:!0,value:p.AMOUNT_OFF_ORDER}:{label:"Amount off on products",selected:!0,value:p.AMOUNT_OFF_PRODUCTS};B.onChangeCouponType(i),B.setDiscountCouponAppliesTo(e.value),B.setEntitledProductVariable(void 0),B.setDynamicDiscountValidationError((e=>Object.assign(Object.assign({},e),{inValidProductVariableSelection:!1,inValidProductSelection:!1,inValidCollectionSelection:!1})))}})})),(B.discountCouponAppliesTo===c.SPECIFIC_PRODUCTS||B.discountCouponAppliesTo===c.SPECIFIC_COLLECTIONS)&&K(B.discountCouponAppliesTo,k.ENTITLED,"couponAppliesTo")]}))}))]})})(),B.selectedCouponType===p.BUY_X_GET_Y&&(()=>{var e,o,n,l,s;return i(x,Object.assign({style:{border:`1px solid ${h.colorsV2.stroke.primary}`,padding:"16px",borderRadius:"4px",margin:0}},{children:[ee(k.PREREQUISITE),t("div",{style:{width:"100%",height:"1px",backgroundColor:h.colorsV2.stroke.primary,margin:"8px 0"}}),ee(k.ENTITLED),t(b,Object.assign({style:{marginTop:"8px"}},{children:"At a discounted value"})),t("div",{children:t(P,{label:"Free",isActive:100===B.discountData.value,onValueChange:e=>{e?B.setDiscountData(Object.assign(Object.assign({},B.discountData),{value:100})):B.setDiscountData(Object.assign(Object.assign({},B.discountData),{value:void 0}))}})}),i("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[t(P,{label:"Percentage off",isActive:100!==B.discountData.value,onValueChange:()=>{B.setDiscountData(Object.assign(Object.assign({},B.discountData),{value:void 0}))}}),100!==B.discountData.value&&t("div",Object.assign({style:{marginTop:8}},{children:t(y,{value:null!==(n=null===(o=null===(e=B.discountData)||void 0===e?void 0:e.value)||void 0===o?void 0:o.toString())&&void 0!==n?n:"",onChangeText:e=>{B.setDiscountData(Object.assign(Object.assign({},B.discountData),{value:parseInt(e)}))},type:"number",placeholder:"Eg. 50",suffixText:"%",width:"300px",errorMessage:(null===(l=B.dynamicDiscountValidationError)||void 0===l?void 0:l.inValidDiscountAmount)?"Required Field":"",state:(null===(s=B.dynamicDiscountValidationError)||void 0===s?void 0:s.inValidDiscountAmount)?"invalid":"none"})}))]}))]}))})(),!B.selectedCouponType&&t(U,{}),B.allowStaticCoupon&&B.selectedCouponType!==p.BUY_X_GET_Y&&t("div",Object.assign({style:{padding:"24px 0 16px",marginTop:16,borderTop:`1px solid ${h.colorsV2.stroke.primary}`}},{children:t(q,{selectedMinimumRequirement:B.selectedMinimumRequirement,setSelectedMinimumRequirement:B.setSelectedMinimumRequirement,discountData:B.discountData,setDiscountData:B.setDiscountData,currency:B.currency,dynamicDiscountValidationError:B.dynamicDiscountValidationError})})),B.selectedCouponType&&!B.hideExpiration&&i("div",Object.assign({style:{padding:B.selectedCouponType!==p.BUY_X_GET_Y?"24px 0 16px":"8px 0",borderTop:B.selectedCouponType!==p.BUY_X_GET_Y?`1px solid ${h.colorsV2.stroke.primary}`:"none"}},{children:[t(d,{label:"Add expiration",isDisabled:!!B.makeExpiryMandatory,isChecked:B.isAddExpirationChecked,onValueChange:e=>{B.setIsAddExpirationChecked(e),B.setDiscountData(Object.assign(Object.assign({},B.discountData),{expireAfter:void 0,expireAt:void 0})),B.setSelectedExpiration(B.isUsageFromStatic?m.FIXED_EXPIRATION:m.DYNAMIC_EXPIRATION)},boldOnChecked:!0,labelSize:"DEFAULT"}),t(b,Object.assign({style:{color:h.colorsV2.text.secondary,marginLeft:28}},{children:"Make coupon only valid till a certain time"})),B.isAddExpirationChecked&&t(f,{discountData:B.discountData,setDiscountData:B.setDiscountData,isAddExpirationChecked:B.isAddExpirationChecked,inValidCouponExpiry:B.dynamicDiscountValidationError.inValidCouponExpiry,selectedExpiration:B.selectedExpiration,setSelectedExpiration:B.setSelectedExpiration,hideExpirationOptions:B.isUsageFromStatic})]}))]}))};export{k as DISCOUNT_PRODUCTS,B as default};
@@ -1 +1 @@
1
- import{j as e}from"../../../node_modules/react/jsx-runtime.js";import{CheckBox as n}from"../../checkBox/CheckBox.js";import"../../dropdown/DropdownPopover/index.js";import{Dropdown as t}from"../../dropdown/Dropdown.js";import"../../dropdown/ChipDropdown.js";import"react";import"../../zeroState/ZeroState.js";import{BodySecondary as i}from"../../TypographyStyle.js";import{DEFAULT_THEME as o}from"../../../constants/Theme.js";import"../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../list-item/ListItem.js";import"../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../button/Button.js";import"../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../icon-button/IconButton.js";import{Input as s}from"../../input/Input.js";import"../../dropdown/MenuItem/MenuItem.js";import{MIN_PURCHASE_REQUIREMENT as m}from"../type.js";const r=r=>{var d,u,a,l,c,p,j,M,v;const D=[{selected:r.selectedMinimumRequirement===m.AMOUNT,label:"Minimum order value",value:m.AMOUNT},{selected:r.selectedMinimumRequirement===m.QUANTITY,label:"Minimum number of items",value:m.QUANTITY}];return e.jsxs(e.Fragment,{children:[e.jsx(n,{label:"Minimum Purchase Requirements",isChecked:r.selectedMinimumRequirement!==m.NA,onValueChange:e=>{e?(r.setSelectedMinimumRequirement(m.AMOUNT),r.setDiscountData(Object.assign(Object.assign({},r.discountData),{minQuantity:void 0,minAmount:void 0}))):(r.setSelectedMinimumRequirement(m.NA),r.setDiscountData(Object.assign(Object.assign({},r.discountData),{minQuantity:void 0,minAmount:void 0})))},boldOnChecked:!0,labelSize:"DEFAULT"}),e.jsx(i,Object.assign({style:{color:o.colorsV2.text.secondary,marginLeft:28}},{children:"Enable coupon only after a minimum order value"})),r.selectedMinimumRequirement!==m.NA&&e.jsxs("div",Object.assign({style:{margin:"16px 0 0 28px"},className:"input__rows"},{children:[e.jsxs("div",Object.assign({className:"input__wrapper"},{children:[e.jsx(i,Object.assign({style:{marginBottom:10}},{children:"Requirements"})),e.jsx(t,{options:D,placement:"bottom-start",onSelect:e=>{const n=e.value;r.setSelectedMinimumRequirement(n),r.setDiscountData(Object.assign(Object.assign({},r.discountData),{minQuantity:void 0,minAmount:void 0}))},truncatedText:!1,width:"272px"})]})),e.jsx("div",Object.assign({className:"input__wrapper"},{children:e.jsx(s,{value:r.selectedMinimumRequirement===m.AMOUNT?null!==(u=null===(d=r.discountData.minAmount)||void 0===d?void 0:d.toString())&&void 0!==u?u:"":null!==(l=null===(a=r.discountData.minQuantity)||void 0===a?void 0:a.toString())&&void 0!==l?l:"",onChangeText:e=>{r.selectedMinimumRequirement===m.AMOUNT?r.setDiscountData(Object.assign(Object.assign({},r.discountData),{minAmount:parseInt(e)})):r.selectedMinimumRequirement===m.QUANTITY&&r.setDiscountData(Object.assign(Object.assign({},r.discountData),{minQuantity:parseInt(e)}))},labelText:r.selectedMinimumRequirement===m.AMOUNT?"Minimum amount":"Minimum no. of items",prefixText:r.selectedMinimumRequirement===m.AMOUNT?null!==(c=r.currency)&&void 0!==c?c:"":void 0,type:"number",placeholder:r.selectedMinimumRequirement===m.AMOUNT?"Eg. 5000":"Eg. 5",errorMessage:(null===(p=r.dynamicDiscountValidationError)||void 0===p?void 0:p.inValidMinimumAmount)||(null===(j=r.dynamicDiscountValidationError)||void 0===j?void 0:j.inValidMinimumQuantity)?"Required Field":"",state:(null===(M=r.dynamicDiscountValidationError)||void 0===M?void 0:M.inValidMinimumAmount)||(null===(v=r.dynamicDiscountValidationError)||void 0===v?void 0:v.inValidMinimumQuantity)?"invalid":"none"})}))]}))]})};export{r as default};
1
+ import{jsxs as e,Fragment as t,jsx as n}from"react/jsx-runtime";import{CheckBox as i}from"../../checkBox/CheckBox.js";import"../../dropdown/DropdownPopover/index.js";import{Dropdown as o}from"../../dropdown/Dropdown.js";import"../../dropdown/ChipDropdown.js";import"react";import"../../zeroState/ZeroState.js";import{BodySecondary as m}from"../../TypographyStyle.js";import{DEFAULT_THEME as s}from"../../../constants/Theme.js";import"../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../list-item/ListItem.js";import"../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../button/Button.js";import"../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../icon-button/IconButton.js";import{Input as r}from"../../input/Input.js";import"../../dropdown/MenuItem/MenuItem.js";import{MIN_PURCHASE_REQUIREMENT as d}from"../type.js";const u=u=>{var a,c,l,p,M,j,v,D,O;const b=[{selected:u.selectedMinimumRequirement===d.AMOUNT,label:"Minimum order value",value:d.AMOUNT},{selected:u.selectedMinimumRequirement===d.QUANTITY,label:"Minimum number of items",value:d.QUANTITY}];return e(t,{children:[n(i,{label:"Minimum Purchase Requirements",isChecked:u.selectedMinimumRequirement!==d.NA,onValueChange:e=>{e?(u.setSelectedMinimumRequirement(d.AMOUNT),u.setDiscountData(Object.assign(Object.assign({},u.discountData),{minQuantity:void 0,minAmount:void 0}))):(u.setSelectedMinimumRequirement(d.NA),u.setDiscountData(Object.assign(Object.assign({},u.discountData),{minQuantity:void 0,minAmount:void 0})))},boldOnChecked:!0,labelSize:"DEFAULT"}),n(m,Object.assign({style:{color:s.colorsV2.text.secondary,marginLeft:28}},{children:"Enable coupon only after a minimum order value"})),u.selectedMinimumRequirement!==d.NA&&e("div",Object.assign({style:{margin:"16px 0 0 28px"},className:"input__rows"},{children:[e("div",Object.assign({className:"input__wrapper"},{children:[n(m,Object.assign({style:{marginBottom:10}},{children:"Requirements"})),n(o,{options:b,placement:"bottom-start",onSelect:e=>{const t=e.value;u.setSelectedMinimumRequirement(t),u.setDiscountData(Object.assign(Object.assign({},u.discountData),{minQuantity:void 0,minAmount:void 0}))},truncatedText:!1,width:"272px"})]})),n("div",Object.assign({className:"input__wrapper"},{children:n(r,{value:u.selectedMinimumRequirement===d.AMOUNT?null!==(c=null===(a=u.discountData.minAmount)||void 0===a?void 0:a.toString())&&void 0!==c?c:"":null!==(p=null===(l=u.discountData.minQuantity)||void 0===l?void 0:l.toString())&&void 0!==p?p:"",onChangeText:e=>{u.selectedMinimumRequirement===d.AMOUNT?u.setDiscountData(Object.assign(Object.assign({},u.discountData),{minAmount:parseInt(e)})):u.selectedMinimumRequirement===d.QUANTITY&&u.setDiscountData(Object.assign(Object.assign({},u.discountData),{minQuantity:parseInt(e)}))},labelText:u.selectedMinimumRequirement===d.AMOUNT?"Minimum amount":"Minimum no. of items",prefixText:u.selectedMinimumRequirement===d.AMOUNT?null!==(M=u.currency)&&void 0!==M?M:"":void 0,type:"number",placeholder:u.selectedMinimumRequirement===d.AMOUNT?"Eg. 5000":"Eg. 5",errorMessage:(null===(j=u.dynamicDiscountValidationError)||void 0===j?void 0:j.inValidMinimumAmount)||(null===(v=u.dynamicDiscountValidationError)||void 0===v?void 0:v.inValidMinimumQuantity)?"Required Field":"",state:(null===(D=u.dynamicDiscountValidationError)||void 0===D?void 0:D.inValidMinimumAmount)||(null===(O=u.dynamicDiscountValidationError)||void 0===O?void 0:O.inValidMinimumQuantity)?"invalid":"none"})}))]}))]})};export{u as default};
@@ -1,16 +1,16 @@
1
- import{j as e}from"../../../node_modules/react/jsx-runtime.js";import s from"styled-components";import{TitleMedium as o,BodyPrimary as t}from"../../TypographyStyle.js";import{DEFAULT_THEME as r}from"../../../constants/Theme.js";import n from"../../../assets/icons/cursor.svg.js";const i=()=>e.jsxs(c,{children:[e.jsx(d,{children:e.jsx(n,{width:32,color:r.colorsV2.content.primaryInverse})}),e.jsx(o,{children:"No discount has been selected"}),e.jsx(t,{children:"Please select a discount type"})]}),c=s.div`
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import r from"styled-components";import{TitleMedium as o,BodyPrimary as n}from"../../TypographyStyle.js";import{DEFAULT_THEME as s}from"../../../constants/Theme.js";import i from"../../../assets/icons/cursor.svg.js";const c=()=>e(d,{children:[t(l,{children:t(i,{width:32,color:s.colorsV2.content.primaryInverse})}),t(o,{children:"No discount has been selected"}),t(n,{children:"Please select a discount type"})]}),d=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 10px;
5
5
  padding: 40px 0;
6
6
  justify-content: center;
7
7
  align-items: center;
8
- `,d=s.div`
8
+ `,l=r.div`
9
9
  height: 52px;
10
10
  width: 52px;
11
- background-color: ${r.colorsV2.background.inverse};
11
+ background-color: ${s.colorsV2.background.inverse};
12
12
  border-radius: 50%;
13
13
  display: flex;
14
14
  justify-content: center;
15
15
  align-items: center;
16
- `;export{i as default};
16
+ `;export{c as default};
@@ -1 +1 @@
1
- import{j as e}from"../../../node_modules/react/jsx-runtime.js";import i from"../../../assets/icons/info.svg.js";import{Alert as t}from"../../alerts/Alert.js";import{ALERT_TYPES as o,CONTENT_POSITION as s}from"../../alerts/AlertHelper.js";import{Input as n}from"../../input/Input.js";import{DEFAULT_THEME as r}from"../../../constants/Theme.js";import{StaticCouponContainerStyled as a}from"../DiscountModal.styled.js";import l from"../DynamicCoupon/DynamicCoupon.js";const d=d=>{var c,u,p,D,m,b,C,v,x,P,T,h,E,g,y,j;return d.getDetailedDescription?e.jsxs(a,Object.assign({style:{marginTop:0}},{children:[e.jsx(n,{maxCharLimit:30,onChangeText:e=>{d.setDiscountData(Object.assign(Object.assign({},d.discountData),{couponCode:null==e?void 0:e.trim()}))},labelText:"Discount Code",value:d.discountData.couponCode,placeholder:"Eg. FLAT15OFF",isRequired:!0,errorMessage:(null===(c=d.staticDiscountValidationError)||void 0===c?void 0:c.invalidDiscountCode)?"Required Field":"",state:(null===(u=d.staticDiscountValidationError)||void 0===u?void 0:u.invalidDiscountCode)?"invalid":"none",hintText:"Code created on Shopify",width:"300px"}),e.jsx(l,{currency:d.currency,entitledProducts:null!==(p=d.entitledProducts)&&void 0!==p?p:[],prerequisiteProducts:null!==(D=d.prerequisiteProducts)&&void 0!==D?D:[],setEntitledProducts:d.setEntitledProducts,setPrerequisiteProducts:d.setPrerequisiteProducts,discountData:d.discountData,productPickerOpen:d.productPickerOpen,productVariablePickerOpen:d.productVariablePickerOpen,setIsProductPickerOpen:d.setIsProductPickerOpen,setIsProductVariablePickerOpen:d.setIsProductVariablePickerOpen,setDiscountData:d.setDiscountData,selectedCouponType:d.selectedCouponType,setSelectedCouponType:d.setSelectedCouponType,selectedMinimumRequirement:d.selectedMinimumRequirement,setSelectedMinimumRequirement:d.setSelectedMinimumRequirement,discountCouponAppliesTo:d.discountCouponAppliesTo,offerAppliesToBuy:d.offerAppliesToBuy,offerAppliesToGet:d.offerAppliesToGet,setDiscountCouponAppliesTo:d.setDiscountCouponAppliesTo,setOfferAppliesToBuy:d.setOfferAppliesToBuy,setOfferAppliesToGet:d.setOfferAppliesToGet,hideProbability:!0,hideExpiration:d.hideExpiration||!1,allowStaticCoupon:!0,noTopMargin:!0,onChangeCouponType:d.onChangeCouponType,collectionPickerOpen:d.collectionPickerOpen,entitledCollections:null!==(m=d.entitledCollections)&&void 0!==m?m:[],prerequisiteCollections:null!==(b=d.prerequisiteCollections)&&void 0!==b?b:[],setIsCollectionPickerOpen:d.setIsCollectionPickerOpen,setEntitledCollections:d.setEntitledCollections,setPrerequisiteCollections:d.setPrerequisiteCollections,useNewPicker:d.useNewPicker,setSelectedDiscountDetails:d.setSelectedDiscountDetails,selectedDiscountDetails:d.selectedDiscountDetails,isProductVariableSupported:d.isProductVariableSupported,entitledProductVariable:d.entitledProductVariable,setEntitledProductVariable:d.setEntitledProductVariable,preRequisiteProductVariable:d.preRequisiteProductVariable,setPreRequisiteProductVariable:d.setPreRequisiteProductVariable,productVariableList:d.productVariableList,isAddExpirationChecked:d.isAddExpirationChecked,setIsAddExpirationChecked:d.setIsAddExpirationChecked,dynamicDiscountValidationError:d.dynamicDiscountValidationError,setDynamicDiscountValidationError:d.setDynamicDiscountValidationError,setValidationErrorMessage:d.setValidationErrorMessage,resetValidationErrors:d.resetValidationErrors,discountDetailsOptions:d.discountDetailsOptions,selectedExpiration:d.selectedExpiration,setSelectedExpiration:d.setSelectedExpiration,makeExpiryMandatory:null!==(C=d.makeExpiryMandatory)&&void 0!==C&&C,isUsageFromStatic:!0})]})):e.jsxs(a,{children:[e.jsxs("div",Object.assign({className:"static-coupon__data"},{children:[e.jsx("div",Object.assign({className:"static-input__wrapper"},{children:e.jsx(n,{maxCharLimit:30,onChangeText:e=>{d.setDiscountData(Object.assign(Object.assign({},d.discountData),{couponCode:null==e?void 0:e.trim()}))},labelText:"Discount Code",value:d.discountData.couponCode,placeholder:"Eg. FLAT15OFF",isRequired:!0,errorMessage:(null===(v=d.staticDiscountValidationError)||void 0===v?void 0:v.invalidDiscountCode)?"Required Field":"",state:(null===(x=d.staticDiscountValidationError)||void 0===x?void 0:x.invalidDiscountCode)?"invalid":"none",hintText:"Code created on Shopify"})})),e.jsx("div",Object.assign({className:"static-input__wrapper"},{children:e.jsx(n,{maxCharLimit:30,labelText:"Discount Coupon Title",value:d.discountData.title,onChangeText:e=>{d.setDiscountData(Object.assign(Object.assign({},d.discountData),{title:null==e?void 0:e.trim()}))},hintText:"Same for everyone. Can’t be changed later",isRequired:!0,placeholder:`Eg. “Flat ${null!==(P=d.currency)&&void 0!==P?P:""}15 Off”`,errorMessage:(null===(T=d.staticDiscountValidationError)||void 0===T?void 0:T.invalidCouponTitle)?"Required Field":"",state:(null===(h=d.staticDiscountValidationError)||void 0===h?void 0:h.invalidCouponTitle)?"invalid":"none"})}))]})),e.jsx(n,{maxCharLimit:60,labelText:"Coupon Description",value:d.discountData.description,onChangeText:e=>{d.setDiscountData(Object.assign(Object.assign({},d.discountData),{description:null==e?void 0:e.trim()}))},placeholder:"Eg. “Get Flat 15% off”",isRequired:!0,errorMessage:(null===(E=d.staticDiscountValidationError)||void 0===E?void 0:E.invalidCouponDescription)?"Required Field":"",state:(null===(g=d.staticDiscountValidationError)||void 0===g?void 0:g.invalidCouponDescription)?"invalid":"none"}),!d.hideProbability&&e.jsx(n,{labelText:"Probability of getting coupon",value:null!==d.discountData.probability&&void 0!==d.discountData.probability?d.discountData.probability.toString():"",type:"number",onChangeText:e=>{d.setDiscountData(Object.assign(Object.assign({},d.discountData),{probability:e.startsWith(".")?parseFloat(parseFloat(`0${e}`).toFixed(2)):parseFloat(parseFloat(e).toFixed(2))}))},placeholder:"Eg. 0.5",width:"288px",hintText:"Enter a decimal value between 0-1",isRequired:!0,errorMessage:(null===(y=d.staticDiscountValidationError)||void 0===y?void 0:y.inValidProbability)?"Enter probability in decimals (0 - 1)":"",state:(null===(j=d.staticDiscountValidationError)||void 0===j?void 0:j.inValidProbability)?"invalid":"none"}),d.discountAdminUrl&&e.jsx(t,{type:o.NEUTRAL,text:"To create a discount code on Shopify,",contentPosition:s.START,redirectToText:"click here",redirectTo:d.discountAdminUrl,icon:()=>e.jsx(i,{width:16,height:16,color:r.colorsV2.content.secondary})})]})};export{d as default};
1
+ import{jsxs as e,jsx as i}from"react/jsx-runtime";import t from"../../../assets/icons/info.svg.js";import{Alert as o}from"../../alerts/Alert.js";import{ALERT_TYPES as n,CONTENT_POSITION as s}from"../../alerts/AlertHelper.js";import{Input as r}from"../../input/Input.js";import{DEFAULT_THEME as a}from"../../../constants/Theme.js";import{StaticCouponContainerStyled as l}from"../DiscountModal.styled.js";import d from"../DynamicCoupon/DynamicCoupon.js";const c=c=>{var u,p,D,m,b,C,v,P,T,h,E,g,y,x,V,f;return c.getDetailedDescription?e(l,Object.assign({style:{marginTop:0}},{children:[i(r,{maxCharLimit:30,onChangeText:e=>{c.setDiscountData(Object.assign(Object.assign({},c.discountData),{couponCode:null==e?void 0:e.trim()}))},labelText:"Discount Code",value:c.discountData.couponCode,placeholder:"Eg. FLAT15OFF",isRequired:!0,errorMessage:(null===(u=c.staticDiscountValidationError)||void 0===u?void 0:u.invalidDiscountCode)?"Required Field":"",state:(null===(p=c.staticDiscountValidationError)||void 0===p?void 0:p.invalidDiscountCode)?"invalid":"none",hintText:"Code created on Shopify",width:"300px"}),i(d,{currency:c.currency,entitledProducts:null!==(D=c.entitledProducts)&&void 0!==D?D:[],prerequisiteProducts:null!==(m=c.prerequisiteProducts)&&void 0!==m?m:[],setEntitledProducts:c.setEntitledProducts,setPrerequisiteProducts:c.setPrerequisiteProducts,discountData:c.discountData,productPickerOpen:c.productPickerOpen,productVariablePickerOpen:c.productVariablePickerOpen,setIsProductPickerOpen:c.setIsProductPickerOpen,setIsProductVariablePickerOpen:c.setIsProductVariablePickerOpen,setDiscountData:c.setDiscountData,selectedCouponType:c.selectedCouponType,setSelectedCouponType:c.setSelectedCouponType,selectedMinimumRequirement:c.selectedMinimumRequirement,setSelectedMinimumRequirement:c.setSelectedMinimumRequirement,discountCouponAppliesTo:c.discountCouponAppliesTo,offerAppliesToBuy:c.offerAppliesToBuy,offerAppliesToGet:c.offerAppliesToGet,setDiscountCouponAppliesTo:c.setDiscountCouponAppliesTo,setOfferAppliesToBuy:c.setOfferAppliesToBuy,setOfferAppliesToGet:c.setOfferAppliesToGet,hideProbability:!0,hideExpiration:c.hideExpiration||!1,allowStaticCoupon:!0,noTopMargin:!0,onChangeCouponType:c.onChangeCouponType,collectionPickerOpen:c.collectionPickerOpen,entitledCollections:null!==(b=c.entitledCollections)&&void 0!==b?b:[],prerequisiteCollections:null!==(C=c.prerequisiteCollections)&&void 0!==C?C:[],setIsCollectionPickerOpen:c.setIsCollectionPickerOpen,setEntitledCollections:c.setEntitledCollections,setPrerequisiteCollections:c.setPrerequisiteCollections,useNewPicker:c.useNewPicker,setSelectedDiscountDetails:c.setSelectedDiscountDetails,selectedDiscountDetails:c.selectedDiscountDetails,isProductVariableSupported:c.isProductVariableSupported,entitledProductVariable:c.entitledProductVariable,setEntitledProductVariable:c.setEntitledProductVariable,preRequisiteProductVariable:c.preRequisiteProductVariable,setPreRequisiteProductVariable:c.setPreRequisiteProductVariable,productVariableList:c.productVariableList,isAddExpirationChecked:c.isAddExpirationChecked,setIsAddExpirationChecked:c.setIsAddExpirationChecked,dynamicDiscountValidationError:c.dynamicDiscountValidationError,setDynamicDiscountValidationError:c.setDynamicDiscountValidationError,setValidationErrorMessage:c.setValidationErrorMessage,resetValidationErrors:c.resetValidationErrors,discountDetailsOptions:c.discountDetailsOptions,selectedExpiration:c.selectedExpiration,setSelectedExpiration:c.setSelectedExpiration,makeExpiryMandatory:null!==(v=c.makeExpiryMandatory)&&void 0!==v&&v,isUsageFromStatic:!0})]})):e(l,{children:[e("div",Object.assign({className:"static-coupon__data"},{children:[i("div",Object.assign({className:"static-input__wrapper"},{children:i(r,{maxCharLimit:30,onChangeText:e=>{c.setDiscountData(Object.assign(Object.assign({},c.discountData),{couponCode:null==e?void 0:e.trim()}))},labelText:"Discount Code",value:c.discountData.couponCode,placeholder:"Eg. FLAT15OFF",isRequired:!0,errorMessage:(null===(P=c.staticDiscountValidationError)||void 0===P?void 0:P.invalidDiscountCode)?"Required Field":"",state:(null===(T=c.staticDiscountValidationError)||void 0===T?void 0:T.invalidDiscountCode)?"invalid":"none",hintText:"Code created on Shopify"})})),i("div",Object.assign({className:"static-input__wrapper"},{children:i(r,{maxCharLimit:30,labelText:"Discount Coupon Title",value:c.discountData.title,onChangeText:e=>{c.setDiscountData(Object.assign(Object.assign({},c.discountData),{title:null==e?void 0:e.trim()}))},hintText:"Same for everyone. Can’t be changed later",isRequired:!0,placeholder:`Eg. “Flat ${null!==(h=c.currency)&&void 0!==h?h:""}15 Off”`,errorMessage:(null===(E=c.staticDiscountValidationError)||void 0===E?void 0:E.invalidCouponTitle)?"Required Field":"",state:(null===(g=c.staticDiscountValidationError)||void 0===g?void 0:g.invalidCouponTitle)?"invalid":"none"})}))]})),i(r,{maxCharLimit:60,labelText:"Coupon Description",value:c.discountData.description,onChangeText:e=>{c.setDiscountData(Object.assign(Object.assign({},c.discountData),{description:null==e?void 0:e.trim()}))},placeholder:"Eg. “Get Flat 15% off”",isRequired:!0,errorMessage:(null===(y=c.staticDiscountValidationError)||void 0===y?void 0:y.invalidCouponDescription)?"Required Field":"",state:(null===(x=c.staticDiscountValidationError)||void 0===x?void 0:x.invalidCouponDescription)?"invalid":"none"}),!c.hideProbability&&i(r,{labelText:"Probability of getting coupon",value:null!==c.discountData.probability&&void 0!==c.discountData.probability?c.discountData.probability.toString():"",type:"number",onChangeText:e=>{c.setDiscountData(Object.assign(Object.assign({},c.discountData),{probability:e.startsWith(".")?parseFloat(parseFloat(`0${e}`).toFixed(2)):parseFloat(parseFloat(e).toFixed(2))}))},placeholder:"Eg. 0.5",width:"288px",hintText:"Enter a decimal value between 0-1",isRequired:!0,errorMessage:(null===(V=c.staticDiscountValidationError)||void 0===V?void 0:V.inValidProbability)?"Enter probability in decimals (0 - 1)":"",state:(null===(f=c.staticDiscountValidationError)||void 0===f?void 0:f.inValidProbability)?"invalid":"none"}),c.discountAdminUrl&&i(o,{type:n.NEUTRAL,text:"To create a discount code on Shopify,",contentPosition:s.START,redirectToText:"click here",redirectTo:c.discountAdminUrl,icon:()=>i(t,{width:16,height:16,color:a.colorsV2.content.secondary})})]})};export{c as default};
@@ -1,7 +1,7 @@
1
- import{j as i}from"../../node_modules/react/jsx-runtime.js";import e from"styled-components";const o=e=>{let{color:o="linear-gradient(90deg, #ff166a 0%, #ff317dff 100%)",size:n=4}=e;return i.jsxs(s,{children:[i.jsx(a,{$color:o,$size:n}),i.jsx(a,{$color:o,$size:n}),i.jsx(a,{$color:o,$size:n})]})},s=e.span`
1
+ import{jsxs as i,jsx as e}from"react/jsx-runtime";import o from"styled-components";const a=o=>{let{color:a="linear-gradient(90deg, #ff166a 0%, #ff317dff 100%)",size:t=4}=o;return i(n,{children:[e(r,{$color:a,$size:t}),e(r,{$color:a,$size:t}),e(r,{$color:a,$size:t})]})},n=o.span`
2
2
  display: inline-flex;
3
3
  align-items: center;
4
- `,a=e.span`
4
+ `,r=o.span`
5
5
  display: block;
6
6
  width: ${i=>i.$size}px;
7
7
  height: ${i=>i.$size}px;
@@ -32,4 +32,4 @@ import{j as i}from"../../node_modules/react/jsx-runtime.js";import e from"styled
32
32
  transform: scale(1.4);
33
33
  }
34
34
  }
35
- `;export{o as DotPulse};
35
+ `;export{a as DotPulse};
@@ -1 +1 @@
1
- import{j as p}from"../../node_modules/react/jsx-runtime.js";const x={z1:{up:"0px -2px 8px rgba(0, 0, 0, 0.12)",down:"0px 2px 8px rgba(0, 0, 0, 0.12)"},z2:{up:"0px -4px 12px rgba(0, 0, 0, 0.12)",down:"0px 4px 12px rgba(0, 0, 0, 0.12)"}},e=e=>{let{level:n="z1",position:o="down",children:s,style:r}=e;const t=x[n][o];return p.jsx("div",Object.assign({style:Object.assign({boxShadow:t},null!=r?r:{})},{children:s}))};export{e as DropShadow};
1
+ import{jsx as p}from"react/jsx-runtime";const x={z1:{up:"0px -2px 8px rgba(0, 0, 0, 0.12)",down:"0px 2px 8px rgba(0, 0, 0, 0.12)"},z2:{up:"0px -4px 12px rgba(0, 0, 0, 0.12)",down:"0px 4px 12px rgba(0, 0, 0, 0.12)"}},e=e=>{let{level:n="z1",position:r="down",children:t,style:o}=e;const s=x[n][r];return p("div",Object.assign({style:Object.assign({boxShadow:s},null!=o?o:{})},{children:t}))};export{e as DropShadow};
@@ -1,4 +1,4 @@
1
- import{__rest as o}from"../../_virtual/_tslib.js";import{j as t}from"../../node_modules/react/jsx-runtime.js";import{useState as r,useRef as e}from"react";import i from"styled-components";import{Tag as n}from"../tag/Tag.js";import{COLORS as l}from"../../constants/Theme.js";import s from"../../assets/icons/chevronDown.svg.js";import d from"../../assets/icons/chevronDownOutline.svg.js";import a from"../../assets/icons/chevronUpOutline.svg.js";import{BodySecondary as p}from"../TypographyStyle.js";import{DropdownPopover as c}from"./DropdownPopover/index.js";const g=i=>{var g,m,{placeHolder:u,onSelect:j,backgroundColor:f}=i,v=o(i,["placeHolder","onSelect","backgroundColor"]);const[x,y]=r(!1),b=e();return t.jsx(c,Object.assign({ref:b,onDropdownVisbilityChange:o=>y(o),onSelect:function(o){null==j||j(o)}},v,{children:"default"==v.inputType?t.jsxs(h,Object.assign({width:null===(g=null==v?void 0:v.inputStyle)||void 0===g?void 0:g.width,height:null===(m=null==v?void 0:v.inputStyle)||void 0===m?void 0:m.height,backgroundColor:f},{children:[t.jsx(p,Object.assign({color:l.content.placeholder},{children:u})),t.jsx(s,{style:{transform:x?"rotate(180deg)":"rotate(0deg)"},width:20,height:20,color:l.content.primary})]})):t.jsx(n,{tagText:null!=u?u:"",theme:"light",type:"neutral",variant:"regular",TrailingIcon:x?a:d})}))};g.displayName="ChipDropdown";const h=i.div`
1
+ import{__rest as o}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{useState as e,useRef as i}from"react";import n from"styled-components";import{Tag as l}from"../tag/Tag.js";import{COLORS as s}from"../../constants/Theme.js";import d from"../../assets/icons/chevronDown.svg.js";import a from"../../assets/icons/chevronDownOutline.svg.js";import p from"../../assets/icons/chevronUpOutline.svg.js";import{BodySecondary as c}from"../TypographyStyle.js";import{DropdownPopover as g}from"./DropdownPopover/index.js";const h=n=>{var h,u,{placeHolder:f,onSelect:v,backgroundColor:y}=n,b=o(n,["placeHolder","onSelect","backgroundColor"]);const[j,w]=e(!1),x=i();return t(g,Object.assign({ref:x,onDropdownVisbilityChange:o=>w(o),onSelect:function(o){null==v||v(o)}},b,{children:"default"==b.inputType?r(m,Object.assign({width:null===(h=null==b?void 0:b.inputStyle)||void 0===h?void 0:h.width,height:null===(u=null==b?void 0:b.inputStyle)||void 0===u?void 0:u.height,backgroundColor:y},{children:[t(c,Object.assign({color:s.content.placeholder},{children:f})),t(d,{style:{transform:j?"rotate(180deg)":"rotate(0deg)"},width:20,height:20,color:s.content.primary})]})):t(l,{tagText:null!=f?f:"",theme:"light",type:"neutral",variant:"regular",TrailingIcon:j?p:a})}))};h.displayName="ChipDropdown";const m=n.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  width: ${o=>(null==o?void 0:o.width)?o.width:"240px"};
@@ -6,10 +6,10 @@ import{__rest as o}from"../../_virtual/_tslib.js";import{j as t}from"../../node_
6
6
  gap: 8px;
7
7
  justify-content: space-between;
8
8
  align-items: center;
9
- border: 1px solid ${l.stroke.primary};
9
+ border: 1px solid ${s.stroke.primary};
10
10
  border-radius: 4px;
11
11
  padding-left: 8px;
12
12
  padding-right: 8px;
13
13
  cursor: pointer;
14
14
  ${o=>o.backgroundColor&&`background-color: ${o.backgroundColor};`}
15
- `;export{g as ChipDropdown,h as ChipDropdownContainer};
15
+ `;export{h as ChipDropdown,m as ChipDropdownContainer};
@@ -1 +1 @@
1
- import{j as e}from"../../node_modules/react/jsx-runtime.js";import{useState as t,useEffect as s}from"react";import o from"../../utils/StringUtils.js";import{COLORS as l}from"../../constants/Theme.js";import n from"../../assets/icons/chevronDown.svg.js";import r from"../../assets/icons/cross.svg.js";import i from"../../assets/icons/errorInfo.svg.js";import{InputFooter as c}from"../input/Input.styled.js";import{Tag as a}from"../tag/Tag.js";import{Tooltip as d}from"../tooltips/Tooltip.js";import{BodyCaption as m}from"../TypographyStyle.js";import{ChipInputWrapper as h}from"./Common.styled.js";const j=j=>{let{chips:g,onDeleteChip:p,containerStyle:x={},sizeToUse:b="default",isDropdownOpened:f,placeholder:v="Select..",errorMessage:y="",showLabelsOnMoreHover:u=!1}=j;const[O,T]=t(),[w,I]=t(0),[C,S]=t([]);return s((()=>{if(!g)return;let e=0;const t=(e=>1===e.length?100:2===e.length?40:34)(g);let s=g.filter((s=>(e+=s.label.length,e<=t)));0===s.length&&g.length>0&&(s=[g[0]]),T(s);const o=g.filter((e=>!s.includes(e))).map((e=>e.label));S(o),I(g.length-s.length)}),[g]),e.jsxs(e.Fragment,{children:[e.jsxs(h,Object.assign({style:Object.assign({},x),error:!!y},{children:[e.jsxs("div",Object.assign({className:"chips-container"},{children:[null==O?void 0:O.map(((t,s)=>e.jsx("div",Object.assign({style:{zIndex:2}},{children:e.jsx(a,Object.assign({tagText:o.truncateText(t.selectedLabel||t.label,40),TrailingIcon:()=>e.jsx(r,{width:12,height:12,style:{cursor:"pointer"},onClick:()=>{p(t)}})},{children:t.selectedLabel||t.label}))}),s))),!!w&&e.jsx("div",Object.assign({style:{position:"relative",zIndex:2,pointerEvents:"auto"}},{children:e.jsx(d,Object.assign({body:"",placement:"bottom",tooltipContent:u&&C.length>0?e.jsx("div",Object.assign({style:{padding:"4px"}},{children:C.map(((t,s)=>e.jsx(m,Object.assign({style:{color:l.text.white}},{children:t}),s)))})):void 0},{children:e.jsx(m,Object.assign({color:l.content.placeholder},{children:`+${w} more`}))}))})),0===g.length&&e.jsx("div",Object.assign({style:{color:l.content.placeholder}},{children:v}))]})),e.jsx("div",{children:e.jsx(n,{style:{transform:f?"rotate(180deg)":"rotate(0deg)"},width:"x-small"===b?16:"small"===b?20:24,height:"x-small"===b?16:"small"===b?20:24,color:l.content.primary})})]})),!!y&&e.jsxs(c,Object.assign({invalid:!0},{children:[!!y&&e.jsx(i,{width:16,height:16}),y]}))]})};export{j as default};
1
+ import{jsxs as e,Fragment as t,jsx as s}from"react/jsx-runtime";import{useState as o,useEffect as l}from"react";import i from"../../utils/StringUtils.js";import{COLORS as r}from"../../constants/Theme.js";import n from"../../assets/icons/chevronDown.svg.js";import c from"../../assets/icons/cross.svg.js";import a from"../../assets/icons/errorInfo.svg.js";import{InputFooter as d}from"../input/Input.styled.js";import{Tag as h}from"../tag/Tag.js";import{Tooltip as m}from"../tooltips/Tooltip.js";import{BodyCaption as p}from"../TypographyStyle.js";import{ChipInputWrapper as g}from"./Common.styled.js";const j=j=>{let{chips:b,onDeleteChip:f,containerStyle:v={},sizeToUse:y="default",isDropdownOpened:O,placeholder:u="Select..",errorMessage:x="",showLabelsOnMoreHover:T=!1}=j;const[w,I]=o(),[C,S]=o(0),[z,D]=o([]);return l((()=>{if(!b)return;let e=0;const t=(e=>1===e.length?100:2===e.length?40:34)(b);let s=b.filter((s=>(e+=s.label.length,e<=t)));0===s.length&&b.length>0&&(s=[b[0]]),I(s);const o=b.filter((e=>!s.includes(e))).map((e=>e.label));D(o),S(b.length-s.length)}),[b]),e(t,{children:[e(g,Object.assign({style:Object.assign({},v),error:!!x},{children:[e("div",Object.assign({className:"chips-container"},{children:[null==w?void 0:w.map(((e,t)=>s("div",Object.assign({style:{zIndex:2}},{children:s(h,Object.assign({tagText:i.truncateText(e.selectedLabel||e.label,40),TrailingIcon:()=>s(c,{width:12,height:12,style:{cursor:"pointer"},onClick:()=>{f(e)}})},{children:e.selectedLabel||e.label}))}),t))),!!C&&s("div",Object.assign({style:{position:"relative",zIndex:2,pointerEvents:"auto"}},{children:s(m,Object.assign({body:"",placement:"bottom",tooltipContent:T&&z.length>0?s("div",Object.assign({style:{padding:"4px"}},{children:z.map(((e,t)=>s(p,Object.assign({style:{color:r.text.white}},{children:e}),t)))})):void 0},{children:s(p,Object.assign({color:r.content.placeholder},{children:`+${C} more`}))}))})),0===b.length&&s("div",Object.assign({style:{color:r.content.placeholder}},{children:u}))]})),s("div",{children:s(n,{style:{transform:O?"rotate(180deg)":"rotate(0deg)"},width:"x-small"===y?16:"small"===y?20:24,height:"x-small"===y?16:"small"===y?20:24,color:r.content.primary})})]})),!!x&&e(d,Object.assign({invalid:!0},{children:[!!x&&s(a,{width:16,height:16}),x]}))]})};export{j as default};
@@ -1 +1 @@
1
- import{__rest as e}from"../../_virtual/_tslib.js";import{j as o}from"../../node_modules/react/jsx-runtime.js";import{useState as n,useRef as t,useEffect as l}from"react";import{COLORS as r}from"../../constants/Theme.js";import i from"../../assets/icons/chevronDown.svg.js";import{Input as s}from"../input/Input.js";import{InputStyleContext as a}from"../input/context/InputStyleProvider.js";import d from"./ChipInput.js";import{DropdownPopover as c}from"./DropdownPopover/index.js";import{getSelectedOptionsAsText as p}from"./OpenedDropdown/utils/iterationOnOptions.js";function h(){}const u=u=>{var m,v,g,x,j,{placeHolder:f,size:w,onSelect:b,defaultOptions:I,disabled:O,noErrorHint:y,placeHolderHeight:H,showPlaceholderWhenSelected:S=!1,inputStyle:T={},inputType:D="default",onDeleteChip:P,truncatedText:C,showLeadingIconInPlaceholder:E=!1,showTrailingIconPlaceholder:L=!1,showLabelsOnMoreHover:M=!1}=u,z=e(u,["placeHolder","size","onSelect","defaultOptions","disabled","noErrorHint","placeHolderHeight","showPlaceholderWhenSelected","inputStyle","inputType","onDeleteChip","truncatedText","showLeadingIconInPlaceholder","showTrailingIconPlaceholder","showLabelsOnMoreHover"]);const[W,_]=n(!1),A=null!=w?w:"default",k=t(),[F,N]=n(null!=I?I:[]);l((()=>{var e;const o=[];null===(e=null==z?void 0:z.options)||void 0===e||e.forEach((e=>{e.options?e.options.forEach((e=>{e.selected&&o.push(Object.assign(Object.assign({},e),{label:e.label}))})):e.selected&&o.push(e)})),N([...o])}),[z.options]),l((()=>{I&&N([...I])}),[I]);const U=p(F);return o.jsx(a.Provider,Object.assign({value:{InputWrapper:Object.assign({height:H||("x-small"===A?24:"small"===A?32:48),width:null!==(v=null!==(m=z.buttonWidth)&&void 0!==m?m:z.width)&&void 0!==v?v:"100%",zIndex:1,cursor:"pointer",padding:"x-small"===A?"4px 8px":"6px 8px"},T),input:{minHeight:"100%"}}},{children:o.jsxs(c,Object.assign({"data-test":z["data-test"],ref:k,onSelect:function(e){Array.isArray(e)?N([...e]):N([e]),null==b||b(e)},disabled:O,onDropdownVisbilityChange:e=>_(e)},z,{children:["default"==D&&o.jsx(s,{version:z.version,noErrorHint:y,state:O?"disabled":"none",value:S?f:null!=U?U:"",errorMessage:z.error,variant:A,placeholder:null!=f?f:"Select an option",width:null!==(g=z.width)&&void 0!==g?g:"100%",onChangeText:h,leftIcon:E&&(null===(x=F[0])||void 0===x?void 0:x.leadingIcon)?{icon:()=>{var e;return o.jsx(o.Fragment,{children:null===(e=F[0])||void 0===e?void 0:e.leadingIcon})}}:void 0,rightIcon:{icon:()=>{var e;return o.jsxs("div",Object.assign({style:{display:"flex"}},{children:[L&&(null===(e=F[0])||void 0===e?void 0:e.trailingIcon),o.jsx(i,{style:{transform:W?"rotate(180deg)":"rotate(0deg)"},onClick:h,width:"x-small"===A?16:"small"===A?20:24,height:"x-small"===A?16:"small"===A?20:24,color:r.content.primary})]}))}},truncateText:null==C||C}),"chip"==D&&o.jsx(d,{placeholder:null!=f?f:"Select options",chips:F,onDeleteChip:e=>{null==P||P(e)},errorMessage:z.error,isDropdownOpened:W,sizeToUse:A,containerStyle:{width:null!==(j=z.width)&&void 0!==j?j:"100%",cursor:"pointer"},showLabelsOnMoreHover:M})]}))}))};u.displayName="Dropdown";export{u as Dropdown};
1
+ import{__rest as e}from"../../_virtual/_tslib.js";import{jsx as o,jsxs as n,Fragment as t}from"react/jsx-runtime";import{useState as l,useRef as r,useEffect as i}from"react";import{COLORS as s}from"../../constants/Theme.js";import a from"../../assets/icons/chevronDown.svg.js";import{Input as d}from"../input/Input.js";import{InputStyleContext as c}from"../input/context/InputStyleProvider.js";import p from"./ChipInput.js";import{DropdownPopover as h}from"./DropdownPopover/index.js";import{getSelectedOptionsAsText as u}from"./OpenedDropdown/utils/iterationOnOptions.js";function m(){}const v=v=>{var g,f,w,b,x,{placeHolder:I,size:j,onSelect:O,defaultOptions:y,disabled:H,noErrorHint:S,placeHolderHeight:T,showPlaceholderWhenSelected:D=!1,inputStyle:P={},inputType:C="default",onDeleteChip:E,truncatedText:L,showLeadingIconInPlaceholder:M=!1,showTrailingIconPlaceholder:z=!1,showLabelsOnMoreHover:W=!1}=v,A=e(v,["placeHolder","size","onSelect","defaultOptions","disabled","noErrorHint","placeHolderHeight","showPlaceholderWhenSelected","inputStyle","inputType","onDeleteChip","truncatedText","showLeadingIconInPlaceholder","showTrailingIconPlaceholder","showLabelsOnMoreHover"]);const[_,k]=l(!1),N=null!=j?j:"default",U=r(),[V,q]=l(null!=y?y:[]);i((()=>{var e;const o=[];null===(e=null==A?void 0:A.options)||void 0===e||e.forEach((e=>{e.options?e.options.forEach((e=>{e.selected&&o.push(Object.assign(Object.assign({},e),{label:e.label}))})):e.selected&&o.push(e)})),q([...o])}),[A.options]),i((()=>{y&&q([...y])}),[y]);const B=u(V);return o(c.Provider,Object.assign({value:{InputWrapper:Object.assign({height:T||("x-small"===N?24:"small"===N?32:48),width:null!==(f=null!==(g=A.buttonWidth)&&void 0!==g?g:A.width)&&void 0!==f?f:"100%",zIndex:1,cursor:"pointer",padding:"x-small"===N?"4px 8px":"6px 8px"},P),input:{minHeight:"100%"}}},{children:n(h,Object.assign({"data-test":A["data-test"],ref:U,onSelect:function(e){Array.isArray(e)?q([...e]):q([e]),null==O||O(e)},disabled:H,onDropdownVisbilityChange:e=>k(e)},A,{children:["default"==C&&o(d,{version:A.version,noErrorHint:S,state:H?"disabled":"none",value:D?I:null!=B?B:"",errorMessage:A.error,variant:N,placeholder:null!=I?I:"Select an option",width:null!==(w=A.width)&&void 0!==w?w:"100%",onChangeText:m,leftIcon:M&&(null===(b=V[0])||void 0===b?void 0:b.leadingIcon)?{icon:()=>{var e;return o(t,{children:null===(e=V[0])||void 0===e?void 0:e.leadingIcon})}}:void 0,rightIcon:{icon:()=>{var e;return n("div",Object.assign({style:{display:"flex"}},{children:[z&&(null===(e=V[0])||void 0===e?void 0:e.trailingIcon),o(a,{style:{transform:_?"rotate(180deg)":"rotate(0deg)"},onClick:m,width:"x-small"===N?16:"small"===N?20:24,height:"x-small"===N?16:"small"===N?20:24,color:s.content.primary})]}))}},truncateText:null==L||L}),"chip"==C&&o(p,{placeholder:null!=I?I:"Select options",chips:V,onDeleteChip:e=>{null==E||E(e)},errorMessage:A.error,isDropdownOpened:_,sizeToUse:N,containerStyle:{width:null!==(x=A.width)&&void 0!==x?x:"100%",cursor:"pointer"},showLabelsOnMoreHover:W})]}))}))};v.displayName="Dropdown";export{v as Dropdown};
@@ -1 +1 @@
1
- import{__rest as o}from"../../../_virtual/_tslib.js";import{j as e}from"../../../node_modules/react/jsx-runtime.js";import t,{useState as n,useRef as l,useImperativeHandle as i,useEffect as r}from"react";import{usePopper as s}from"react-popper";import{DropShadow as a}from"../../dropShadow/DropShadow.js";import{Tooltip as d}from"../../tooltips/Tooltip.js";import{OverLapAbs as p,OpenDropdownContainer as c}from"../Common.styled.js";import{OpenedDropdown as m}from"../OpenedDropdown/components/OpennedDropdown.js";const j=t.forwardRef(((t,j)=>{var{children:v,onDropdownVisbilityChange:u,version:h="1.0",tooltipContent:w,tooltipDirection:b,showTooltipArrow:g,isChildLoading:f,forceOpen:O}=t,x=o(t,["children","onDropdownVisbilityChange","version","tooltipContent","tooltipDirection","showTooltipArrow","isChildLoading","forceOpen"]);const D=j,[y,C]=n(!1),[S,z]=n(null),[E,A]=n(null),L=l(null),{styles:R,attributes:T}=s(S,E,{placement:x.placement,strategy:x.strategy}),_=o=>{var e,t;"2.0"===h&&x.isMultiSelect&&o&&(null===(e=x.onSelect)||void 0===e||e.call(x,[...o])),C(!1),null===(t=null==x?void 0:x.onClose)||void 0===t||t.call(x)};i(D,(()=>({openDropdown:y})),[]),r((()=>{(null==D?void 0:D.current)&&(D.current.openDropdown=y)}),[y]),r((()=>{null==u||u(y)}),[y]);const F=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",Object.assign({style:{position:"relative"},ref:z},{children:[e.jsx(p,Object.assign({ref:L,allowEvents:x.allowEvents,disabled:x.disabled,onClick:o=>{var e;null===(e=x.onDropdownOpen)||void 0===e||e.call(x),y?(C(!1),o.preventDefault()):x.disabled||C(!0)},isChildLoading:f},{children:x.allowEvents?v:null})),x.allowEvents?null:v]})),(y||O)&&e.jsx(c,Object.assign({ref:A,style:Object.assign(Object.assign({},R.popper),{zIndex:3})},T.popper,{"data-test":x["data-test"]},{children:e.jsx(a,Object.assign({level:"z2",position:"down",style:{borderRadius:8}},{children:e.jsx(m,Object.assign({},x,{onSelect:o=>{var e;"2.0"===h&&x.isMultiSelect||(null===(e=x.onSelect)||void 0===e||e.call(x,o),C(!1))},onClose:_,version:h,headerRef:L,zeroState:null==x?void 0:x.zeroState}))}))}))]});return e.jsx(e.Fragment,{children:y||O||void 0===w?F():e.jsx(d,Object.assign({body:w,placement:b,hideArrow:!g},{children:e.jsx("div",Object.assign({"data-test":x["data-test"]},{children:F()}))}))})}));j.displayName="DropdownPopover";export{j as DropdownPopover};
1
+ import{__rest as o}from"../../../_virtual/_tslib.js";import{jsx as e,Fragment as t,jsxs as l}from"react/jsx-runtime";import n,{useState as i,useRef as r,useImperativeHandle as s,useEffect as d}from"react";import{usePopper as a}from"react-popper";import{DropShadow as p}from"../../dropShadow/DropShadow.js";import{Tooltip as c}from"../../tooltips/Tooltip.js";import{OverLapAbs as v,OpenDropdownContainer as m}from"../Common.styled.js";import{OpenedDropdown as u}from"../OpenedDropdown/components/OpennedDropdown.js";const h=n.forwardRef(((n,h)=>{var{children:w,onDropdownVisbilityChange:b,version:f="1.0",tooltipContent:g,tooltipDirection:j,showTooltipArrow:O,isChildLoading:D,forceOpen:y}=n,C=o(n,["children","onDropdownVisbilityChange","version","tooltipContent","tooltipDirection","showTooltipArrow","isChildLoading","forceOpen"]);const S=h,[z,E]=i(!1),[x,A]=i(null),[L,R]=i(null),T=r(null),{styles:M,attributes:V}=a(x,L,{placement:C.placement,strategy:C.strategy}),_=o=>{var e,t;"2.0"===f&&C.isMultiSelect&&o&&(null===(e=C.onSelect)||void 0===e||e.call(C,[...o])),E(!1),null===(t=null==C?void 0:C.onClose)||void 0===t||t.call(C)};s(S,(()=>({openDropdown:z})),[]),d((()=>{(null==S?void 0:S.current)&&(S.current.openDropdown=z)}),[z]),d((()=>{null==b||b(z)}),[z]);const k=()=>l(t,{children:[l("div",Object.assign({style:{position:"relative"},ref:A},{children:[e(v,Object.assign({ref:T,allowEvents:C.allowEvents,disabled:C.disabled,onClick:o=>{var e;null===(e=C.onDropdownOpen)||void 0===e||e.call(C),z?(E(!1),o.preventDefault()):C.disabled||E(!0)},isChildLoading:D},{children:C.allowEvents?w:null})),C.allowEvents?null:w]})),(z||y)&&e(m,Object.assign({ref:R,style:Object.assign(Object.assign({},M.popper),{zIndex:3})},V.popper,{"data-test":C["data-test"]},{children:e(p,Object.assign({level:"z2",position:"down",style:{borderRadius:8}},{children:e(u,Object.assign({},C,{onSelect:o=>{var e;"2.0"===f&&C.isMultiSelect||(null===(e=C.onSelect)||void 0===e||e.call(C,o),E(!1))},onClose:_,version:f,headerRef:T,zeroState:null==C?void 0:C.zeroState}))}))}))]});return e(t,{children:z||y||void 0===g?k():e(c,Object.assign({body:g,placement:j,hideArrow:!O},{children:e("div",Object.assign({"data-test":C["data-test"]},{children:k()}))}))})}));h.displayName="DropdownPopover";export{h as DropdownPopover};
@@ -1,6 +1,6 @@
1
- import{j as o}from"../../../node_modules/react/jsx-runtime.js";import s from"../../../assets/icons/horizontal_dots.svg.js";import e from"../../../assets/icons/vertical_dots.svg.js";import i from"styled-components";import{IconButton as r}from"../../icon-button/IconButton.js";import{COLORS as t}from"../../../constants/Theme.js";import{DropdownPopover as n}from"../DropdownPopover/index.js";const a=i.div`
1
+ import{jsx as o,jsxs as e}from"react/jsx-runtime";import i from"../../../assets/icons/horizontal_dots.svg.js";import r from"../../../assets/icons/vertical_dots.svg.js";import s from"styled-components";import{IconButton as t}from"../../icon-button/IconButton.js";import{COLORS as n}from"../../../constants/Theme.js";import{DropdownPopover as a}from"../DropdownPopover/index.js";const d=s.div`
2
2
  :hover {
3
- background: ${t.surface.subdued};
3
+ background: ${n.surface.subdued};
4
4
  }
5
5
  position: ${o=>o.isNewTag?"relative":""};
6
6
  .new--tag {
@@ -11,10 +11,10 @@ import{j as o}from"../../../node_modules/react/jsx-runtime.js";import s from"../
11
11
  border-radius: 50%;
12
12
  width: 14px;
13
13
  height: 14px;
14
- background: ${t.background.negative.vibrant};
15
- border: 1.25px solid ${t.surface.standard};
14
+ background: ${n.background.negative.vibrant};
15
+ border: 1.25px solid ${n.surface.standard};
16
16
  display: flex;
17
17
  justify-content: center;
18
18
  align-items: center;
19
19
  }
20
- `,d=i=>o.jsx(a,Object.assign({isNewTag:i.isNewTag},{children:o.jsxs(n,Object.assign({},i,{children:[o.jsx("div",{children:o.jsx(r,{Icon:i.isHorizontal?s:e,bordered:!(null==i?void 0:i.hideBorder)})}),i.isNewTag?o.jsx("div",{className:"new--tag"}):null]}))}));d.displayName="MenuItemDropdown";export{d as MenuItemDropdown};
20
+ `,c=s=>o(d,Object.assign({isNewTag:s.isNewTag},{children:e(a,Object.assign({},s,{children:[o("div",{children:o(t,{Icon:s.isHorizontal?i:r,bordered:!(null==s?void 0:s.hideBorder)})}),s.isNewTag?o("div",{className:"new--tag"}):null]}))}));c.displayName="MenuItemDropdown";export{c as MenuItemDropdown};
@@ -1 +1 @@
1
- import{__rest as o}from"../../../_virtual/_tslib.js";import{j as e}from"../../../node_modules/react/jsx-runtime.js";import n,{useState as r,useRef as t,useImperativeHandle as l,useEffect as i}from"react";import{usePopper as s}from"react-popper";import{DropShadow as p}from"../../dropShadow/DropShadow.js";import{Tooltip as d}from"../../tooltips/Tooltip.js";import{OverLapAbs as a,OpenDropdownContainer as c}from"../Common.styled.js";import{OpenedDropdown as m}from"../OpenedDropdown/components/OpennedDropdown.js";const j=n.forwardRef(((n,j)=>{var{children:u,onDropdownVisbilityChange:v,version:h="1.0",tooltipContent:w,tooltipDirection:b,showTooltipArrow:f}=n,g=o(n,["children","onDropdownVisbilityChange","version","tooltipContent","tooltipDirection","showTooltipArrow"]);const x=j,[D,y]=r(!1),[O,C]=r(null),[S,A]=r(null),M=t(null),{styles:R,attributes:T}=s(O,S,{placement:g.placement,strategy:g.strategy}),_=o=>{var e,n;g.isMultiSelect&&o&&(null===(e=g.onSelect)||void 0===e||e.call(g,[...o])),y(!1),null===(n=null==g?void 0:g.onClose)||void 0===n||n.call(g)};l(x,(()=>({openDropdown:D})),[]),i((()=>{(null==x?void 0:x.current)&&(x.current.openDropdown=D)}),[D]),i((()=>{null==v||v(D)}),[D]);const z=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",Object.assign({style:{position:"relative"},ref:C},{children:[e.jsx(a,{ref:M,disabled:g.disabled,onClick:o=>{var e;null===(e=g.onDropdownOpen)||void 0===e||e.call(g),D?(y(!1),o.preventDefault()):g.disabled||y(!0)}}),u]})),D&&e.jsx(c,Object.assign({ref:A,style:Object.assign(Object.assign({},R.popper),{zIndex:3})},T.popper,{children:e.jsx(p,Object.assign({level:"z2",position:"down",style:{borderRadius:8}},{children:e.jsx(m,Object.assign({},g,{onSelect:o=>{var e;"2.0"===h&&g.isMultiSelect||(null===(e=g.onSelect)||void 0===e||e.call(g,o),y(!1))},onClose:_,version:h,headerRef:M}))}))}))]});return e.jsx(e.Fragment,{children:D||void 0===w?z():e.jsx(d,Object.assign({body:w,placement:b,hideArrow:!f},{children:e.jsx("div",{children:z()})}))})}));j.displayName="MultilevelDropdownPopover";export{j as MultilevelDropdownPopover};
1
+ import{__rest as o}from"../../../_virtual/_tslib.js";import{jsx as e,Fragment as r,jsxs as l}from"react/jsx-runtime";import n,{useState as t,useRef as i,useImperativeHandle as s,useEffect as p}from"react";import{usePopper as d}from"react-popper";import{DropShadow as c}from"../../dropShadow/DropShadow.js";import{Tooltip as a}from"../../tooltips/Tooltip.js";import{OverLapAbs as m,OpenDropdownContainer as v}from"../Common.styled.js";import{OpenedDropdown as u}from"../OpenedDropdown/components/OpennedDropdown.js";const h=n.forwardRef(((n,h)=>{var{children:w,onDropdownVisbilityChange:b,version:f="1.0",tooltipContent:j,tooltipDirection:D,showTooltipArrow:g}=n,y=o(n,["children","onDropdownVisbilityChange","version","tooltipContent","tooltipDirection","showTooltipArrow"]);const O=h,[C,S]=t(!1),[x,A]=t(null),[M,R]=t(null),T=i(null),{styles:z,attributes:V}=d(x,M,{placement:y.placement,strategy:y.strategy}),_=o=>{var e,r;y.isMultiSelect&&o&&(null===(e=y.onSelect)||void 0===e||e.call(y,[...o])),S(!1),null===(r=null==y?void 0:y.onClose)||void 0===r||r.call(y)};s(O,(()=>({openDropdown:C})),[]),p((()=>{(null==O?void 0:O.current)&&(O.current.openDropdown=C)}),[C]),p((()=>{null==b||b(C)}),[C]);const k=()=>l(r,{children:[l("div",Object.assign({style:{position:"relative"},ref:A},{children:[e(m,{ref:T,disabled:y.disabled,onClick:o=>{var e;null===(e=y.onDropdownOpen)||void 0===e||e.call(y),C?(S(!1),o.preventDefault()):y.disabled||S(!0)}}),w]})),C&&e(v,Object.assign({ref:R,style:Object.assign(Object.assign({},z.popper),{zIndex:3})},V.popper,{children:e(c,Object.assign({level:"z2",position:"down",style:{borderRadius:8}},{children:e(u,Object.assign({},y,{onSelect:o=>{var e;"2.0"===f&&y.isMultiSelect||(null===(e=y.onSelect)||void 0===e||e.call(y,o),S(!1))},onClose:_,version:f,headerRef:T}))}))}))]});return e(r,{children:C||void 0===j?k():e(a,Object.assign({body:j,placement:D,hideArrow:!g},{children:e("div",{children:k()})}))})}));h.displayName="MultilevelDropdownPopover";export{h as MultilevelDropdownPopover};
@@ -1 +1 @@
1
- import{j as e}from"../../../../node_modules/react/jsx-runtime.js";import{useState as t,useRef as o,useEffect as n}from"react";import{ZeroState as s}from"../../../zeroState/ZeroState.js";import{useOutside as r}from"../../../../hooks/useOutside.js";import{useDropdown as i}from"../../hooks/useDropdown.js";import{Description as l}from"./description/Description.js";import{FreeFormMenu as c}from"./menu/FreeFormMenu.js";import{MenuList as a}from"./menu/MenuList.js";import{SelectAllMenu as u}from"./menu/SelectAllMenu.js";import d from"./multiSelect/MultiSelectDropdownBottomBar.js";import{OpennedDropdownContainer as p,MenuListContainer as h}from"./OpennedDropdown.styled.js";import{SearchBox as f}from"./searchbox/SearchBox.js";import{SearchZeroState as m}from"./searchbox/SearchZeroState.js";const b=304,j=290,g=g=>{let{options:S,isSearchable:v,isMultiSelect:x,maxSelections:w,width:O,allowFreeForm:y,height:C,onClose:D,onSelect:k,onSearch:L,version:M,skipSorting:I,headerRef:A,hideSelectAll:T,primaryButtonText:E,onInfiniteScroll:F,onMultiSelectClear:B,onDropdownItemClick:H,buttonOptions:q,isSearchLoading:z,disableSearchOptions:R,disableSearchedOptionExcept:V,useDefaultCursor:W,containerStyle:Z={},zeroState:$}=g;const{dropdownOptions:K,search:N,searchedString:P,searchedOptions:U,onApplyHandler:_,selectAllHandler:G,onMultiSelectClear:J,onFreeFormSelect:Q,onMultiSelectApply:X,latestDropdownOptionsRef:Y,getSelectedOptions:ee,getCurrentSelectionCount:te}=i(M,S,k,I,x,L,R,V,w),[oe,ne]=t(null!=O?O:j),[se,re]=t(null),[ie,le]=t(-1),ce=o(null),ae=o([]),ue=o(null);r(ce,(()=>{if(re(null),x&&"2.0"===M){const e=ee(Y.current);null==D||D(e)}else null==D||D(K)}),[A,ae]),n((()=>{const e=setTimeout((()=>{ce.current&&ce.current.focus({preventScroll:!0})}),0);return()=>clearTimeout(e)}),[]);n((()=>{const e=e=>{const t=(e=>{const t=[];return e.forEach((e=>{if(e.options)e.options.forEach((e=>{e.disabled||t.push(e)}));else{const o=e;o.disabled||t.push(o)}})),t})(P&&L?U:K);if(0!==t.length)if("ArrowDown"===e.key)e.preventDefault(),le((e=>{const o=e<t.length-1?e+1:0;return setTimeout((()=>{var e;const t=null===(e=ue.current)||void 0===e?void 0:e.querySelector(`[data-option-index="${o}"]`);t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})}),0),o}));else if("ArrowUp"===e.key)e.preventDefault(),le((e=>{const o=e>0?e-1:t.length-1;return setTimeout((()=>{var e;const t=null===(e=ue.current)||void 0===e?void 0:e.querySelector(`[data-option-index="${o}"]`);t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})}),0),o}));else if("Enter"===e.key&&ie>=0){e.preventDefault();const o=t[ie];o&&(_(Object.assign(Object.assign({},o),{selected:!o.selected})),H&&H(o))}},t=ce.current;if(t)return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[ie,P,U,K,L,_,H]);const de=null!=C?C:b,pe="number"==typeof de?v&&x?de-96:v&&!x||!v&&x?de-48:de:de;n((()=>{const e=null!=O?O:j;if(null===se)ne(e);else if("number"==typeof e)ne(2*e);else if("string"==typeof e&&e.endsWith("px")){const t=2*parseInt(e.replace("px",""));ne(t)}}),[se]);const he=[],fe=(e=>{if(!x||!w&&0!==w)return e;const t=te(e)>=w;return t?e.map((e=>{if(e.options)return Object.assign(Object.assign({},e),{options:e.options.map((e=>Object.assign(Object.assign({},e),{disabled:e.disabled||!e.selected&&t})))});{const o=e;return Object.assign(Object.assign({},o),{disabled:o.disabled||!o.selected&&t})}})):e})((P&&L?U:K).map((e=>{var t,o;if(P&&!L){if(e.options){const t=Object.assign({},e);return t.options=t.options.filter((e=>{var t;return!!(null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(P.toLowerCase()))&&(he.push(!P||e.label===P),!0)})),t.options.length>0?t:null}return(null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(P.toLowerCase()))||(null===(o=e.searchKey)||void 0===o?void 0:o.toLowerCase().includes(P.toLowerCase()))?(he.push(!P||e.label===P),e):null}return e})).filter((e=>null!==e))),me=!!v&&P&&0===fe.length;return e.jsxs(p,Object.assign({version:M,ref:ce,tabIndex:-1,style:Object.assign(Object.assign({width:oe},Z),{outline:"none"})},{children:[e.jsxs("div",Object.assign({style:{width:se?"50%":"100%",display:"flex",flexDirection:"column",background:"white"}},{children:[!!v&&e.jsx(f,{onSearch:N,version:M}),fe.length||P?e.jsxs(h,Object.assign({minHeight:de,maxHeight:pe,ref:ue},{children:[!!x&&!me&&!T&&e.jsx(u,{version:M,options:P&&L?U:K,onSelect:G}),!y&&me&&e.jsx(m,{isLoading:z,height:pe,searchedString:P,containerWidth:O}),y&&(me||!!he.length&&he.every((e=>!1===e)))&&e.jsx(c,{version:M,isMultiSelect:x,onSelect:Q,searchedString:P}),e.jsx(a,{onInfiniteScroll:F,onDropdownItemClick:H,version:M,onSelect:_,showDescription:function(e,t){re(e&&t?{title:e,description:t}:null)},isMultiSelect:x,options:fe,useDefaultCursor:W,ref:ae,focusedIndex:ie})]})):e.jsx("div",Object.assign({style:{height:de,display:"flex"}},{children:e.jsx(s,Object.assign({},$,{title:(null==$?void 0:$.title)||"No results found",subTitle:(null==$?void 0:$.subTitle)||"Please try again later or contact us at support@bik.ai if you require further assistance."}))})),!!x&&!(!fe.length&&!P)&&"2.0"!==M&&e.jsx(d,{onClear:()=>{J(),null==B||B()},onApply:X,list:P&&L?U:K,buttonText:E,buttonOptions:q})]})),!!se&&e.jsx(l,{title:se.title,description:se.description,version:M})]}))};export{g as OpenedDropdown};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as o,useRef as n,useEffect as r}from"react";import{ZeroState as i}from"../../../zeroState/ZeroState.js";import{useOutside as s}from"../../../../hooks/useOutside.js";import{useDropdown as l}from"../../hooks/useDropdown.js";import{Description as c}from"./description/Description.js";import{FreeFormMenu as a}from"./menu/FreeFormMenu.js";import{MenuList as u}from"./menu/MenuList.js";import{SelectAllMenu as d}from"./menu/SelectAllMenu.js";import p from"./multiSelect/MultiSelectDropdownBottomBar.js";import{OpennedDropdownContainer as h,MenuListContainer as f}from"./OpennedDropdown.styled.js";import{SearchBox as m}from"./searchbox/SearchBox.js";import{SearchZeroState as b}from"./searchbox/SearchZeroState.js";const g=304,S=290,v=v=>{let{options:j,isSearchable:w,isMultiSelect:O,maxSelections:y,width:x,allowFreeForm:C,height:D,onClose:k,onSelect:L,onSearch:M,version:I,skipSorting:A,headerRef:T,hideSelectAll:E,primaryButtonText:F,onInfiniteScroll:B,onMultiSelectClear:H,onDropdownItemClick:q,buttonOptions:z,isSearchLoading:R,disableSearchOptions:V,disableSearchedOptionExcept:W,useDefaultCursor:Z,containerStyle:$={},zeroState:K}=v;const{dropdownOptions:N,search:P,searchedString:U,searchedOptions:G,onApplyHandler:J,selectAllHandler:Q,onMultiSelectClear:X,onFreeFormSelect:Y,onMultiSelectApply:_,latestDropdownOptionsRef:ee,getSelectedOptions:te,getCurrentSelectionCount:oe}=l(I,j,L,A,O,M,V,W,y),[ne,re]=o(null!=x?x:S),[ie,se]=o(null),[le,ce]=o(-1),ae=n(null),ue=n([]),de=n(null);s(ae,(()=>{if(se(null),O&&"2.0"===I){const e=te(ee.current);null==k||k(e)}else null==k||k(N)}),[T,ue]),r((()=>{const e=setTimeout((()=>{ae.current&&ae.current.focus({preventScroll:!0})}),0);return()=>clearTimeout(e)}),[]);r((()=>{const e=e=>{const t=(e=>{const t=[];return e.forEach((e=>{if(e.options)e.options.forEach((e=>{e.disabled||t.push(e)}));else{const o=e;o.disabled||t.push(o)}})),t})(U&&M?G:N);if(0!==t.length)if("ArrowDown"===e.key)e.preventDefault(),ce((e=>{const o=e<t.length-1?e+1:0;return setTimeout((()=>{var e;const t=null===(e=de.current)||void 0===e?void 0:e.querySelector(`[data-option-index="${o}"]`);t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})}),0),o}));else if("ArrowUp"===e.key)e.preventDefault(),ce((e=>{const o=e>0?e-1:t.length-1;return setTimeout((()=>{var e;const t=null===(e=de.current)||void 0===e?void 0:e.querySelector(`[data-option-index="${o}"]`);t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})}),0),o}));else if("Enter"===e.key&&le>=0){e.preventDefault();const o=t[le];o&&(J(Object.assign(Object.assign({},o),{selected:!o.selected})),q&&q(o))}},t=ae.current;if(t)return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[le,U,G,N,M,J,q]);const pe=null!=D?D:g,he="number"==typeof pe?w&&O?pe-96:w&&!O||!w&&O?pe-48:pe:pe;r((()=>{const e=null!=x?x:S;if(null===ie)re(e);else if("number"==typeof e)re(2*e);else if("string"==typeof e&&e.endsWith("px")){const t=2*parseInt(e.replace("px",""));re(t)}}),[ie]);const fe=[],me=(e=>{if(!O||!y&&0!==y)return e;const t=oe(e)>=y;return t?e.map((e=>{if(e.options)return Object.assign(Object.assign({},e),{options:e.options.map((e=>Object.assign(Object.assign({},e),{disabled:e.disabled||!e.selected&&t})))});{const o=e;return Object.assign(Object.assign({},o),{disabled:o.disabled||!o.selected&&t})}})):e})((U&&M?G:N).map((e=>{var t,o;if(U&&!M){if(e.options){const t=Object.assign({},e);return t.options=t.options.filter((e=>{var t;return!!(null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(U.toLowerCase()))&&(fe.push(!U||e.label===U),!0)})),t.options.length>0?t:null}return(null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(U.toLowerCase()))||(null===(o=e.searchKey)||void 0===o?void 0:o.toLowerCase().includes(U.toLowerCase()))?(fe.push(!U||e.label===U),e):null}return e})).filter((e=>null!==e))),be=!!w&&U&&0===me.length;return e(h,Object.assign({version:I,ref:ae,tabIndex:-1,style:Object.assign(Object.assign({width:ne},$),{outline:"none"})},{children:[e("div",Object.assign({style:{width:ie?"50%":"100%",display:"flex",flexDirection:"column",background:"white"}},{children:[!!w&&t(m,{onSearch:P,version:I}),me.length||U?e(f,Object.assign({minHeight:pe,maxHeight:he,ref:de},{children:[!!O&&!be&&!E&&t(d,{version:I,options:U&&M?G:N,onSelect:Q}),!C&&be&&t(b,{isLoading:R,height:he,searchedString:U,containerWidth:x}),C&&(be||!!fe.length&&fe.every((e=>!1===e)))&&t(a,{version:I,isMultiSelect:O,onSelect:Y,searchedString:U}),t(u,{onInfiniteScroll:B,onDropdownItemClick:q,version:I,onSelect:J,showDescription:function(e,t){se(e&&t?{title:e,description:t}:null)},isMultiSelect:O,options:me,useDefaultCursor:Z,ref:ue,focusedIndex:le})]})):t("div",Object.assign({style:{height:pe,display:"flex"}},{children:t(i,Object.assign({},K,{title:(null==K?void 0:K.title)||"No results found",subTitle:(null==K?void 0:K.subTitle)||"Please try again later or contact us at support@bik.ai if you require further assistance."}))})),!!O&&!(!me.length&&!U)&&"2.0"!==I&&t(p,{onClear:()=>{X(),null==H||H()},onApply:_,list:U&&M?G:N,buttonText:F,buttonOptions:z})]})),!!ie&&t(c,{title:ie.title,description:ie.description,version:I})]}))};export{v as OpenedDropdown};
@@ -1 +1 @@
1
- import{j as s}from"../../../../../node_modules/react/jsx-runtime.js";import{TitleRegular as t,BodySecondary as e}from"../../../../TypographyStyle.js";import{COLORS as r}from"../../../../../constants/Theme.js";import{DescriptionContainer as o}from"./Description.styled.js";const n=n=>{let{title:i,description:c,version:j}=n;return s.jsx(o,Object.assign({version:j},{children:s.jsxs("div",Object.assign({style:{padding:"2.0"===j?12:24}},{children:[s.jsx(t,Object.assign({style:{color:r.content.primary,marginBottom:4}},{children:i})),s.jsx(e,Object.assign({style:{color:r.content.secondary}},{children:c}))]}))}))};export{n as Description};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";import{TitleRegular as r,BodySecondary as o}from"../../../../TypographyStyle.js";import{COLORS as i}from"../../../../../constants/Theme.js";import{DescriptionContainer as n}from"./Description.styled.js";const s=s=>{let{title:c,description:l,version:m}=s;return t(n,Object.assign({version:m},{children:e("div",Object.assign({style:{padding:"2.0"===m?12:24}},{children:[t(r,Object.assign({style:{color:i.content.primary,marginBottom:4}},{children:c})),t(o,Object.assign({style:{color:i.content.secondary}},{children:l}))]}))}))};export{s as Description};
@@ -1 +1 @@
1
- import{j as e}from"../../../../../node_modules/react/jsx-runtime.js";import{useState as t}from"react";import{CheckBox as o}from"../../../../checkBox/CheckBox.js";import{ListItem as r}from"../../../../list-item/ListItem.js";import{BodyCaption as s}from"../../../../TypographyStyle.js";import{COLORS as n}from"../../../../../constants/Theme.js";import{FreeFormContainer as i}from"./FreeFormMenu.styled.js";const m=m=>{let{searchedString:c,onSelect:l,isMultiSelect:a,version:j}=m;const[p,f]=t(!1);function d(){f(!p),l(!p)}return e.jsx(r,{version:j,onClick:e=>{e.preventDefault(),d()},listItem:{label:c,value:c},leadingIcon:a?e.jsx(o,{size:"2.0"===j?"SMALL":"DEFAULT",isChecked:p,onValueChange:d}):e.jsx(e.Fragment,{}),trailingIcon:e.jsx(i,{children:e.jsx(s,Object.assign({style:{color:n.content.secondary}},{children:"Freeform"}))})})};export{m as FreeFormMenu};
1
+ import{jsx as e,Fragment as t}from"react/jsx-runtime";import{useState as o}from"react";import{CheckBox as r}from"../../../../checkBox/CheckBox.js";import{ListItem as i}from"../../../../list-item/ListItem.js";import{BodyCaption as n}from"../../../../TypographyStyle.js";import{COLORS as s}from"../../../../../constants/Theme.js";import{FreeFormContainer as c}from"./FreeFormMenu.styled.js";const m=m=>{let{searchedString:l,onSelect:a,isMultiSelect:p,version:f}=m;const[h,u]=o(!1);function d(){u(!h),a(!h)}return e(i,{version:f,onClick:e=>{e.preventDefault(),d()},listItem:{label:l,value:l},leadingIcon:p?e(r,{size:"2.0"===f?"SMALL":"DEFAULT",isChecked:h,onValueChange:d}):e(t,{}),trailingIcon:e(c,{children:e(n,Object.assign({style:{color:s.content.secondary}},{children:"Freeform"}))})})};export{m as FreeFormMenu};
@@ -1,13 +1,13 @@
1
- import{j as e}from"../../../../../node_modules/react/jsx-runtime.js";import t from"../../../../../assets/icons/chevronRight.svg.js";import{forwardRef as o,useState as n}from"react";import i from"styled-components";import{CheckBox as s}from"../../../../checkBox/CheckBox.js";import{ListItem as r}from"../../../../list-item/ListItem.js";import{Tooltip as l}from"../../../../tooltips/Tooltip.js";import{BodyCaption as a}from"../../../../TypographyStyle.js";import{DEFAULT_THEME as d,COLORS as c}from"../../../../../constants/Theme.js";import{FreeFormContainer as p}from"./FreeFormMenu.styled.js";const m=i(r)`
1
+ import{jsx as e,Fragment as t,jsxs as o}from"react/jsx-runtime";import n from"../../../../../assets/icons/chevronRight.svg.js";import{forwardRef as i,useState as r}from"react";import s from"styled-components";import{CheckBox as l}from"../../../../checkBox/CheckBox.js";import{ListItem as a}from"../../../../list-item/ListItem.js";import{Tooltip as c}from"../../../../tooltips/Tooltip.js";import{BodyCaption as d}from"../../../../TypographyStyle.js";import{DEFAULT_THEME as p,COLORS as m}from"../../../../../constants/Theme.js";import{FreeFormContainer as u}from"./FreeFormMenu.styled.js";const g=s(a)`
2
2
  padding: ${e=>"2.0"===e.version?"8px 12px":"14px 16px"} !important;
3
3
  cursor: pointer;
4
4
  margin-top: ${e=>"2.0"===e.version?"2px":"0"};
5
- `,u=i.div`
5
+ `,v=s.div`
6
6
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.12);
7
7
  border-radius: ${e=>{let{version:t}=e;return"1.0"===t?"0":"8px"}};
8
8
  padding: ${e=>{let{version:t}=e;return"1.0"===t?"0":"4px"}};
9
9
  min-width: 148px;
10
- border: ${e=>{let{version:t}=e;return"1.0"===t?`1px solid ${d.colorsV2.stroke.primary}`:"none"}};
10
+ border: ${e=>{let{version:t}=e;return"1.0"===t?`1px solid ${p.colorsV2.stroke.primary}`:"none"}};
11
11
  max-height: 248px;
12
12
  overflow-y: auto;
13
- `,g=o(((o,i)=>{let{option:r,isMultiSelect:g,showDescription:x,onSelect:j,last:v,version:h,onDropdownItemClick:b,useDefaultCursor:f,isFocused:y=!1,dataIndex:I=-1}=o;var C;const[O,F]=n(r.selected),k=(e,t)=>{if(!e.children){w(!e.selected);const o=t?Object.assign(Object.assign({},e),{parent:t}):e;null==b||b(o)}},w=e=>{r.disabled||j(Object.assign(Object.assign({},r),{selected:e}))},T=f?{cursor:"default"}:{};return e.jsx(e.Fragment,{children:e.jsx(l,Object.assign({body:"",tooltipContent:r.children?e.jsx("div",Object.assign({style:{backgroundColor:d.colorsV2.surface.standard},ref:i,onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1)},{children:e.jsx(u,Object.assign({version:null!=h?h:"2.0"},{children:r.children.map((t=>{var o;return e.jsx(m,{version:h,style:"1.0"!==h&&(null!==(o=null==r?void 0:r.children)&&void 0!==o?o:[]).length-1?{borderBottom:0}:{},onClick:e=>{e.preventDefault(),k(t,r)},listItem:{value:t.value,label:t.label},subText:t.subText,leadingIcon:t.leadingIcon||void 0,customComponent:t.customComponent,trailingIcon:t.trailingIcon||void 0,variant:r.disabled?"inactive":t.selected?"selected":"default"},t.value)}))}))})):e.jsx(e.Fragment,{}),placement:"right-start",hideArrow:!0},{children:e.jsx(m,{version:h,style:v?Object.assign({borderBottom:0},T):Object.assign({},T),onClick:e=>{e.preventDefault(),k(r)},onMouseOver:()=>{r.description?x(r.label,r.description):x()},listItem:{value:r.value,label:r.label},subText:r.subText,"data-option-index":I,role:"option",id:`dropdown-option-${I}`,"aria-selected":!!r.selected,leadingIcon:g?e.jsxs("div",Object.assign({style:{display:"flex",alignContent:"center",justifyContent:"center",gap:8}},{children:[e.jsx(s,{size:"2.0"===h?"SMALL":"DEFAULT",isDisabled:null!==(C=r.disabled)&&void 0!==C&&C,isChecked:!!r.selected,onValueChange:w}),e.jsx("div",Object.assign({style:{marginRight:"-4px"}},{children:r.leadingIcon}))]})):r.leadingIcon?e.jsx(e.Fragment,{children:r.leadingIcon}):void 0,customComponent:r.customComponent,trailingIcon:r.isFreeForm?e.jsx(p,{children:e.jsx(a,Object.assign({style:{color:c.content.secondary}},{children:"Freeform"}))}):r.children?e.jsx(t,{width:12,height:12}):r.trailingIcon?e.jsx(e.Fragment,{children:r.trailingIcon}):void 0,variant:r.disabled?"inactive":y||r.selected||!g&&O?"selected":"default"})}))})}));export{g as MenuItem};
13
+ `,h=i(((i,s)=>{let{option:a,isMultiSelect:h,showDescription:b,onSelect:x,last:f,version:j,onDropdownItemClick:y,useDefaultCursor:I,isFocused:C=!1,dataIndex:O=-1}=i;var k;const[w,T]=r(a.selected),D=(e,t)=>{if(!e.children){F(!e.selected);const o=t?Object.assign(Object.assign({},e),{parent:t}):e;null==y||y(o)}},F=e=>{a.disabled||x(Object.assign(Object.assign({},a),{selected:e}))},$=I?{cursor:"default"}:{};return e(t,{children:e(c,Object.assign({body:"",tooltipContent:a.children?e("div",Object.assign({style:{backgroundColor:p.colorsV2.surface.standard},ref:s,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1)},{children:e(v,Object.assign({version:null!=j?j:"2.0"},{children:a.children.map((t=>{var o;return e(g,{version:j,style:"1.0"!==j&&(null!==(o=null==a?void 0:a.children)&&void 0!==o?o:[]).length-1?{borderBottom:0}:{},onClick:e=>{e.preventDefault(),D(t,a)},listItem:{value:t.value,label:t.label},subText:t.subText,leadingIcon:t.leadingIcon||void 0,customComponent:t.customComponent,trailingIcon:t.trailingIcon||void 0,variant:a.disabled?"inactive":t.selected?"selected":"default"},t.value)}))}))})):e(t,{}),placement:"right-start",hideArrow:!0},{children:e(g,{version:j,style:f?Object.assign({borderBottom:0},$):Object.assign({},$),onClick:e=>{e.preventDefault(),D(a)},onMouseOver:()=>{a.description?b(a.label,a.description):b()},listItem:{value:a.value,label:a.label},subText:a.subText,"data-option-index":O,role:"option",id:`dropdown-option-${O}`,"aria-selected":!!a.selected,leadingIcon:h?o("div",Object.assign({style:{display:"flex",alignContent:"center",justifyContent:"center",gap:8}},{children:[e(l,{size:"2.0"===j?"SMALL":"DEFAULT",isDisabled:null!==(k=a.disabled)&&void 0!==k&&k,isChecked:!!a.selected,onValueChange:F}),e("div",Object.assign({style:{marginRight:"-4px"}},{children:a.leadingIcon}))]})):a.leadingIcon?e(t,{children:a.leadingIcon}):void 0,customComponent:a.customComponent,trailingIcon:a.isFreeForm?e(u,{children:e(d,Object.assign({style:{color:m.content.secondary}},{children:"Freeform"}))}):a.children?e(n,{width:12,height:12}):a.trailingIcon?e(t,{children:a.trailingIcon}):void 0,variant:a.disabled?"inactive":C||a.selected||!h&&w?"selected":"default"})}))})}));export{h as MenuItem};
@@ -1 +1 @@
1
- import{j as e}from"../../../../../node_modules/react/jsx-runtime.js";import{forwardRef as n,useRef as t,useCallback as s,useEffect as r}from"react";import{MenuItem as o}from"./MenuItem.js";import{StyledGroupedLabel as i}from"./MenuList.styled.js";const c=n(((n,c)=>{let{options:l,isMultiSelect:u,showDescription:a,onSelect:d,version:p,onInfiniteScroll:f,onDropdownItemClick:j,useDefaultCursor:m,focusedIndex:g=-1}=n;const x=t(null),h=t(null),b=s((()=>{x.current&&x.current.disconnect(),x.current=new IntersectionObserver((e=>{e[0].isIntersecting&&(null==f||f())})),h.current&&x.current.observe(h.current)}),[f]);r((()=>(b(),()=>{x.current&&x.current.disconnect()})),[b,l]);const I=new Map;let D=-1;return l.forEach((e=>{if(e.options)e.options.forEach((e=>{e.disabled||(D++,I.set(e,D))}));else{const n=e;n.disabled||(D++,I.set(n,D))}})),e.jsx(e.Fragment,{children:l.map(((n,t)=>{const s=t===l.length-1;if(n.options){const r=n;return e.jsxs("div",Object.assign({style:{marginTop:"2.0"===p?2:0}},{children:[e.jsxs(i,Object.assign({version:p},{children:[r.leadingIcon?e.jsx("span",Object.assign({style:{marginRight:8}},{children:r.leadingIcon})):null,r.label]})),r.options.map(((n,s)=>{const i=I.get(n),l=i===g&&!n.disabled;return e.jsx(o,{version:p,last:s===r.options.length-1,onSelect:d,showDescription:a,onDropdownItemClick:j,isMultiSelect:u,option:n,useDefaultCursor:m,isFocused:l,dataIndex:i,ref:e=>{c&&"object"==typeof c&&c.current&&e&&e&&e&&e&&(c.current[t]=e)}},`${t}-${s}`)})),s?e.jsx("span",{ref:h}):null]}),t)}const r=n,f=I.get(r),x=f===g&&!r.disabled;return e.jsxs("div",{children:[e.jsx(o,{version:p,last:s,onSelect:d,showDescription:a,onDropdownItemClick:j,isMultiSelect:u,option:r,useDefaultCursor:m,isFocused:x,dataIndex:f,ref:e=>{c&&"object"==typeof c&&c.current&&e&&(c.current[t]=e)}},t),s?e.jsx("span",{ref:h}):null]},t)}))})}));export{c as MenuList};
1
+ import{jsx as e,Fragment as n,jsxs as t}from"react/jsx-runtime";import{forwardRef as r,useRef as o,useCallback as s,useEffect as i}from"react";import{MenuItem as c}from"./MenuItem.js";import{StyledGroupedLabel as l}from"./MenuList.styled.js";const u=r(((r,u)=>{let{options:a,isMultiSelect:d,showDescription:p,onSelect:f,version:m,onInfiniteScroll:g,onDropdownItemClick:h,useDefaultCursor:b,focusedIndex:I=-1}=r;const D=o(null),j=o(null),v=s((()=>{D.current&&D.current.disconnect(),D.current=new IntersectionObserver((e=>{e[0].isIntersecting&&(null==g||g())})),j.current&&D.current.observe(j.current)}),[g]);i((()=>(v(),()=>{D.current&&D.current.disconnect()})),[v,a]);const w=new Map;let S=-1;return a.forEach((e=>{if(e.options)e.options.forEach((e=>{e.disabled||(S++,w.set(e,S))}));else{const n=e;n.disabled||(S++,w.set(n,S))}})),e(n,{children:a.map(((n,r)=>{const o=r===a.length-1;if(n.options){const s=n;return t("div",Object.assign({style:{marginTop:"2.0"===m?2:0}},{children:[t(l,Object.assign({version:m},{children:[s.leadingIcon?e("span",Object.assign({style:{marginRight:8}},{children:s.leadingIcon})):null,s.label]})),s.options.map(((n,t)=>{const o=w.get(n),i=o===I&&!n.disabled;return e(c,{version:m,last:t===s.options.length-1,onSelect:f,showDescription:p,onDropdownItemClick:h,isMultiSelect:d,option:n,useDefaultCursor:b,isFocused:i,dataIndex:o,ref:e=>{u&&"object"==typeof u&&u.current&&e&&e&&e&&e&&(u.current[r]=e)}},`${r}-${t}`)})),o?e("span",{ref:j}):null]}),r)}const s=n,i=w.get(s),g=i===I&&!s.disabled;return t("div",{children:[e(c,{version:m,last:o,onSelect:f,showDescription:p,onDropdownItemClick:h,isMultiSelect:d,option:s,useDefaultCursor:b,isFocused:g,dataIndex:i,ref:e=>{u&&"object"==typeof u&&u.current&&e&&(u.current[r]=e)}},r),o?e("span",{ref:j}):null]},r)}))})}));export{u as MenuList};
@@ -1 +1 @@
1
- import{j as e}from"../../../../../node_modules/react/jsx-runtime.js";import{useState as t,useEffect as l}from"react";import{CheckBox as o}from"../../../../checkBox/CheckBox.js";import{ListItem as i}from"../../../../list-item/ListItem.js";const s=s=>{let{options:c,onSelect:n,version:r}=s;const[a,d]=t("notSelected");function p(){"partiallySelected"===a&&n("notSelected"),"selectAll"===a&&n("notSelected"),"notSelected"===a&&n("selectAll")}return l((()=>{const e=[];c.filter((e=>!e.disabled)).forEach((t=>{t.options?t.options.filter((e=>!e.disabled)).forEach((t=>{e.push(t.selected||!1)})):e.push(t.selected||!1)})),e.every(Boolean)?d("selectAll"):e.filter(Boolean).length>0?d("partiallySelected"):d("notSelected")}),[c]),e.jsx(i,{version:r,onClick:e=>{e.preventDefault(),p()},listItem:{label:"Select All",value:"All"},leadingIcon:e.jsx("div",Object.assign({style:{width:18,height:18}},{children:e.jsx(o,{size:"2.0"===r?"SMALL":"DEFAULT",isChecked:"selectAll"===a||"partiallySelected"===a,isPartiallyChecked:"partiallySelected"===a,onValueChange:p})})),variant:"default"})};export{s as SelectAllMenu};
1
+ import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as l}from"react";import{CheckBox as o}from"../../../../checkBox/CheckBox.js";import{ListItem as i}from"../../../../list-item/ListItem.js";const c=c=>{let{options:n,onSelect:r,version:s}=c;const[a,d]=t("notSelected");function p(){"partiallySelected"===a&&r("notSelected"),"selectAll"===a&&r("notSelected"),"notSelected"===a&&r("selectAll")}return l((()=>{const e=[];n.filter((e=>!e.disabled)).forEach((t=>{t.options?t.options.filter((e=>!e.disabled)).forEach((t=>{e.push(t.selected||!1)})):e.push(t.selected||!1)})),e.every(Boolean)?d("selectAll"):e.filter(Boolean).length>0?d("partiallySelected"):d("notSelected")}),[n]),e(i,{version:s,onClick:e=>{e.preventDefault(),p()},listItem:{label:"Select All",value:"All"},leadingIcon:e("div",Object.assign({style:{width:18,height:18}},{children:e(o,{size:"2.0"===s?"SMALL":"DEFAULT",isChecked:"selectAll"===a||"partiallySelected"===a,isPartiallyChecked:"partiallySelected"===a,onValueChange:p})})),variant:"default"})};export{c as SelectAllMenu};
@@ -1 +1 @@
1
- import{j as t}from"../../../../../node_modules/react/jsx-runtime.js";import{Button as e}from"../../../../button/Button.js";import{BodySecondary as o}from"../../../../TypographyStyle.js";import{COLORS as s}from"../../../../../constants/Theme.js";import{BottomBarContainer as n}from"./MultiSelectDropdownBottomBar.styled.js";const r=r=>{const{onClear:l,onApply:i,list:p,buttonText:a,buttonOptions:c}=r,{primaryButtonText:u,primaryButtonType:y,secondaryButtonText:m,secondaryButtonType:d}=null!=c?c:{},j=p.reduce(((t,e)=>{if(e.options){return t+e.options.filter((t=>!0===t.selected)).length}return e.selected?t+1:t}),0);return t.jsxs(n,Object.assign({style:{justifyContent:"space-between"}},{children:[t.jsx(o,Object.assign({style:{flex:1,color:s.content.primary}},{children:j?`${j} selected`:""})),t.jsxs("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[t.jsx(e,{size:"small",buttonType:d||"primary",buttonText:m||"Clear",onClick:l}),t.jsx(e,{size:"small",buttonText:u||a||"Apply",buttonType:y||"primary",onClick:()=>{i()}})]}))]}))};export{r as default};
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{Button as o}from"../../../../button/Button.js";import{BodySecondary as n}from"../../../../TypographyStyle.js";import{COLORS as r}from"../../../../../constants/Theme.js";import{BottomBarContainer as s}from"./MultiSelectDropdownBottomBar.styled.js";const l=l=>{const{onClear:i,onApply:p,list:a,buttonText:c,buttonOptions:y}=l,{primaryButtonText:u,primaryButtonType:m,secondaryButtonText:d,secondaryButtonType:f}=null!=y?y:{},b=a.reduce(((t,e)=>{if(e.options){return t+e.options.filter((t=>!0===t.selected)).length}return e.selected?t+1:t}),0);return t(s,Object.assign({style:{justifyContent:"space-between"}},{children:[e(n,Object.assign({style:{flex:1,color:r.content.primary}},{children:b?`${b} selected`:""})),t("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[e(o,{size:"small",buttonType:f||"primary",buttonText:d||"Clear",onClick:i}),e(o,{size:"small",buttonText:u||c||"Apply",buttonType:m||"primary",onClick:()=>{p()}})]}))]}))};export{l as default};
@@ -1 +1 @@
1
- import{j as o}from"../../../../../node_modules/react/jsx-runtime.js";import{useState as r}from"react";import{IconButton as t}from"../../../../icon-button/IconButton.js";import{Input as e}from"../../../../input/Input.js";import{InputStyleContext as n}from"../../../../input/context/InputStyleProvider.js";import{COLORS as s}from"../../../../../constants/Theme.js";import i from"../../../../../assets/icons/cross.svg.js";import c from"../../../../../assets/icons/search.svg.js";const p=p=>{let{onSearch:a,version:m}=p;const[l,d]=r(""),[h,j]=r(!1);return o.jsx(n.Provider,Object.assign({value:{InputWrapper:{borderRadius:0,border:0,borderBottom:`${"2.0"===m?.5:1}px solid ${s.stroke.primary}`,padding:""+("2.0"===m?"6px 8px":"14px 16px")},IconHolder:{marginLeft:0},input:{marginLeft:4,minHeight:"100%"}}},{children:o.jsx(e,{noKeyDownChange:!0,skipFocus:!0,placeholder:"Search",variant:"2.0"===m?"small":"default",leftIcon:{icon:()=>o.jsx(c,{width:"2.0"===m?18:24,height:"2.0"===m?18:24,color:s.content.placeholder})},rightIcon:{icon:()=>l?o.jsx(t,{onClick:()=>{j(!0),a(""),d("")},Icon:i,width:"2.0"===m?18:24,height:"2.0"===m?18:24,iconColor:s.content.placeholder}):o.jsx(o.Fragment,{})},reset:h,onChangeText:o=>{j(!1),d(o),a(o)}})}))};export{p as SearchBox};
1
+ import{jsx as o,Fragment as r}from"react/jsx-runtime";import{useState as t}from"react";import{IconButton as e}from"../../../../icon-button/IconButton.js";import{Input as n}from"../../../../input/Input.js";import{InputStyleContext as i}from"../../../../input/context/InputStyleProvider.js";import{COLORS as s}from"../../../../../constants/Theme.js";import c from"../../../../../assets/icons/cross.svg.js";import p from"../../../../../assets/icons/search.svg.js";const a=a=>{let{onSearch:m,version:l}=a;const[h,d]=t(""),[u,f]=t(!1);return o(i.Provider,Object.assign({value:{InputWrapper:{borderRadius:0,border:0,borderBottom:`${"2.0"===l?.5:1}px solid ${s.stroke.primary}`,padding:""+("2.0"===l?"6px 8px":"14px 16px")},IconHolder:{marginLeft:0},input:{marginLeft:4,minHeight:"100%"}}},{children:o(n,{noKeyDownChange:!0,skipFocus:!0,placeholder:"Search",variant:"2.0"===l?"small":"default",leftIcon:{icon:()=>o(p,{width:"2.0"===l?18:24,height:"2.0"===l?18:24,color:s.content.placeholder})},rightIcon:{icon:()=>h?o(e,{onClick:()=>{f(!0),m(""),d("")},Icon:c,width:"2.0"===l?18:24,height:"2.0"===l?18:24,iconColor:s.content.placeholder}):o(r,{})},reset:u,onChangeText:o=>{f(!1),d(o),m(o)}})}))};export{a as SearchBox};
@@ -1 +1 @@
1
- import{j as e}from"../../../../../node_modules/react/jsx-runtime.js";import{ZeroState as t}from"../../../../zeroState/ZeroState.js";const i=i=>{let{searchedString:r,height:s,isLoading:n,containerWidth:o}=i;return e.jsx("div",Object.assign({style:{height:s,display:"flex",alignItems:"center"}},{children:e.jsx(t,{isLoading:n,title:"No results found",subTitle:`Sorry we could not find any results for "${null!=r?r:""}"`,containerWidth:o})}))};export{i as SearchZeroState};
1
+ import{jsx as t}from"react/jsx-runtime";import{ZeroState as e}from"../../../../zeroState/ZeroState.js";const i=i=>{let{searchedString:r,height:n,isLoading:o,containerWidth:s}=i;return t("div",Object.assign({style:{height:n,display:"flex",alignItems:"center"}},{children:t(e,{isLoading:o,title:"No results found",subTitle:`Sorry we could not find any results for "${null!=r?r:""}"`,containerWidth:s})}))};export{i as SearchZeroState};
@@ -1 +1 @@
1
- import{__rest as o}from"../../_virtual/_tslib.js";import{j as t}from"../../node_modules/react/jsx-runtime.js";import{DropdownPopover as n}from"../dropdown/DropdownPopover/index.js";import"../dropdown/Dropdown.js";import"../dropdown/ChipDropdown.js";import"react";import"../zeroState/ZeroState.js";import"../TypographyStyle.js";import"../../constants/Theme.js";import"../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../checkBox/CheckBox.styled.js";import"../list-item/ListItem.js";import"../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import{Button as r}from"../button/Button.js";import"../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../icon-button/IconButton.js";import"../input/Input.js";import"../dropdown/MenuItem/MenuItem.js";import{SpinnerColorMap as e}from"../button/themes.js";import{Spinner as s}from"../spinner/Spinner.js";import{DropdownButtonStyle as p,LoaderContainer as i}from"./DropdownButton.style.js";const d=d=>{var m,u;const j=d.buttonProps,l=o(j,["onClick"]);return t.jsxs(p,Object.assign({type:d.buttonProps.buttonType,disabled:d.buttonProps.disabled},{children:[(null===(m=d.buttonProps)||void 0===m?void 0:m.isLoading)&&t.jsx(i,{children:t.jsx(s,{className:"spinner",size:"small",color:e(d.buttonProps.buttonType||"primary",d.buttonProps.inverse)})}),t.jsx(r,Object.assign({},d.buttonProps,{isLoading:!1,style:{borderRadius:"0px",borderTopLeftRadius:"4px",borderBottomLeftRadius:"4px",borderRight:"0px"}})),t.jsx("div",{className:"dd-button-divider"}),t.jsx(n,Object.assign({},d.dropdownProps,{isChildLoading:null===(u=d.buttonProps)||void 0===u?void 0:u.isLoading},{children:t.jsx(r,Object.assign({},l,{isLoading:!1,buttonText:"",TrailingIcon:d.iconProps,style:{borderRadius:"0px",borderTopRightRadius:"4px",borderBottomRightRadius:"4px"}}))}))]}))};export{d as DropdownButton};
1
+ import{__rest as o}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{DropdownPopover as r}from"../dropdown/DropdownPopover/index.js";import"../dropdown/Dropdown.js";import"../dropdown/ChipDropdown.js";import"react";import"../zeroState/ZeroState.js";import"../TypographyStyle.js";import"../../constants/Theme.js";import"../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../checkBox/CheckBox.styled.js";import"../list-item/ListItem.js";import"../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import{Button as e}from"../button/Button.js";import"../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../icon-button/IconButton.js";import"../input/Input.js";import"../dropdown/MenuItem/MenuItem.js";import{SpinnerColorMap as p}from"../button/themes.js";import{Spinner as s}from"../spinner/Spinner.js";import{DropdownButtonStyle as i,LoaderContainer as d}from"./DropdownButton.style.js";const m=m=>{var u,l;const a=m.buttonProps,c=o(a,["onClick"]);return t(i,Object.assign({type:m.buttonProps.buttonType,disabled:m.buttonProps.disabled},{children:[(null===(u=m.buttonProps)||void 0===u?void 0:u.isLoading)&&n(d,{children:n(s,{className:"spinner",size:"small",color:p(m.buttonProps.buttonType||"primary",m.buttonProps.inverse)})}),n(e,Object.assign({},m.buttonProps,{isLoading:!1,style:{borderRadius:"0px",borderTopLeftRadius:"4px",borderBottomLeftRadius:"4px",borderRight:"0px"}})),n("div",{className:"dd-button-divider"}),n(r,Object.assign({},m.dropdownProps,{isChildLoading:null===(l=m.buttonProps)||void 0===l?void 0:l.isLoading},{children:n(e,Object.assign({},c,{isLoading:!1,buttonText:"",TrailingIcon:m.iconProps,style:{borderRadius:"0px",borderTopRightRadius:"4px",borderBottomRightRadius:"4px"}}))}))]}))};export{m as DropdownButton};