@bikdotai/bik-component-library 0.0.784-beta.0 → 0.0.784-beta.2

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 (937) hide show
  1. package/dist/cjs/assets/icons/Ai_event_generating.svg.js +1 -1
  2. package/dist/cjs/components/ProgressChecklist/MultiChecklistItem.d.ts +1 -29
  3. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.d.ts +27 -1
  4. package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  5. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.d.ts +2 -1
  6. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
  7. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.d.ts +2 -5
  8. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  9. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  10. package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +1 -1
  11. package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
  12. package/dist/cjs/components/QueryBuilder/constants/connectorPosition.js +1 -1
  13. package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.d.ts +1 -1
  14. package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.js +1 -1
  15. package/dist/cjs/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +1 -1
  16. package/dist/cjs/components/QueryBuilder/helpers/SegmentValidator.d.ts +15 -3
  17. package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.d.ts +22 -2
  18. package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
  19. package/dist/cjs/components/QueryBuilder/types/QueryBuilderAPI.type.d.ts +1 -1
  20. package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -1
  21. package/dist/cjs/components/QueryBuilder/types/index.d.ts +1 -2
  22. package/dist/cjs/components/SearchFilter/components/DatePickerButton.d.ts +1 -1
  23. package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.d.ts +1 -1
  24. package/dist/cjs/components/SearchFilter/components/SearchFilterItem.d.ts +1 -1
  25. package/dist/cjs/components/SearchFilter/types/SearchFilter.type.d.ts +1 -1
  26. package/dist/cjs/components/WhatsAppTextEditor/AIRephraseButton.d.ts +1 -4
  27. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.d.ts +1 -4
  28. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +4 -1
  29. package/dist/cjs/components/WhatsAppTextEditor/ai/actionRegistry.d.ts +1 -2
  30. package/dist/cjs/components/accordion/Accordion.d.ts +35 -2
  31. package/dist/cjs/components/accordion/Accordion.style.d.ts +1 -1
  32. package/dist/cjs/components/analytics-card/AnalyticsCard.d.ts +1 -1
  33. package/dist/cjs/components/analytics-card/AnalyticsCard.styled.d.ts +1 -1
  34. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.d.ts +17 -1
  35. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChipChannelFooter.d.ts +1 -1
  36. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.d.ts +1 -1
  37. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  38. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  39. package/dist/cjs/components/avatar/Avatar.js +1 -1
  40. package/dist/cjs/components/bik-layout/BikSidebar.d.ts +1 -1
  41. package/dist/cjs/components/bik-layout/SidebarPopup.d.ts +1 -1
  42. package/dist/cjs/components/bik-layout/SidebarSkeleton.d.ts +1 -1
  43. package/dist/cjs/components/bik-layout/SidebarStyles.d.ts +1 -1
  44. package/dist/cjs/components/bik-layout/SimpleSidebar.d.ts +27 -1
  45. package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.d.ts +1 -1
  46. package/dist/cjs/components/image-cropper/BikImageCropper.d.ts +6 -1
  47. package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.d.ts +1 -1
  48. package/dist/cjs/components/input/ChipInput.js +1 -1
  49. package/dist/cjs/components/input/ChipInput.styled.d.ts +66 -6
  50. package/dist/cjs/components/input/ChipInput.styled.js +1 -1
  51. package/dist/cjs/components/input/Input-helper.d.ts +1 -1
  52. package/dist/cjs/components/input/Input.d.ts +72 -1
  53. package/dist/cjs/components/input/Input.styled.d.ts +1 -1
  54. package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +1 -1
  55. package/dist/cjs/components/list-item/ListItem.d.ts +17 -1
  56. package/dist/cjs/components/list-item/ListItem.styled.d.ts +1 -1
  57. package/dist/cjs/components/list-item/themes.d.ts +1 -1
  58. package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.d.ts +1 -2
  59. package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.js +1 -1
  60. package/dist/cjs/components/multi-level-dropdown/MenuItem.d.ts +1 -2
  61. package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -1
  62. package/dist/cjs/components/multi-level-dropdown/MenuList.js +1 -1
  63. package/dist/cjs/components/multi-level-dropdown/type.d.ts +1 -2
  64. package/dist/cjs/components/product-picker-v2/ProductPickerTag.d.ts +2 -2
  65. package/dist/cjs/components/product-picker-v2/collectionScreen.d.ts +3 -3
  66. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.d.ts +4 -3
  67. package/dist/cjs/components/product-picker-v2/index.d.ts +1 -1
  68. package/dist/cjs/components/product-picker-v2/modal.d.ts +58 -2
  69. package/dist/cjs/components/product-picker-v2/product.d.ts +3 -2
  70. package/dist/cjs/components/product-picker-v2/productInfoOverlay.d.ts +2 -1
  71. package/dist/cjs/components/product-picker-v2/productScreen.d.ts +3 -3
  72. package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
  73. package/dist/cjs/components/product-picker-v2/rearrangeScreen.d.ts +4 -3
  74. package/dist/cjs/components/product-picker-v2/reducers.d.ts +1 -1
  75. package/dist/cjs/components/product-picker-v2/reducers.js +1 -1
  76. package/dist/cjs/components/product-picker-v2/searchScreen.d.ts +4 -3
  77. package/dist/cjs/components/product-picker-v2/selectedScreen.d.ts +4 -3
  78. package/dist/cjs/components/product-picker-v2/type.d.ts +0 -65
  79. package/dist/cjs/components/product-picker-v2/utility.d.ts +3 -3
  80. package/dist/cjs/components/product-picker-v2/utility.js +1 -1
  81. package/dist/cjs/components/product-picker-v2/variant.d.ts +12 -2
  82. package/dist/cjs/components/product-picker-v2/variantComponents.d.ts +3 -2
  83. package/dist/cjs/components/sample-button/SampleButton.d.ts +16 -1
  84. package/dist/cjs/components/sample-button/SampleButton.styled.d.ts +1 -1
  85. package/dist/cjs/components/sample-button/themes.d.ts +1 -1
  86. package/dist/cjs/components/searchBar/searchBar.d.ts +1 -1
  87. package/dist/cjs/components/slider/slider.js +1 -1
  88. package/dist/cjs/components/stepper/Stepper.d.ts +17 -1
  89. package/dist/cjs/components/stepper/Stepper.styled.d.ts +1 -1
  90. package/dist/cjs/components/stepper/StepperService.d.ts +1 -1
  91. package/dist/cjs/components/stepper/themes.d.ts +1 -1
  92. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +9 -9
  93. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
  94. package/dist/cjs/components/template-context-mapper/context/templateModalContext.d.ts +7 -7
  95. package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +1 -1
  96. package/dist/cjs/components/template-context-mapper/helpers/WebpushTemplateHelper.d.ts +4 -6
  97. package/dist/cjs/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
  98. package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +2 -2
  99. package/dist/cjs/components/template-context-mapper/modalElements/Body.js +10 -10
  100. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
  101. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.d.ts +3 -3
  102. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  103. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.d.ts +2 -2
  104. package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  105. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.d.ts +14 -3
  106. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  107. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +5 -5
  108. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +2 -2
  109. package/dist/cjs/components/template-context-mapper/modalElements/Footer.js +4 -4
  110. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.d.ts +1 -1
  111. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +3 -3
  112. package/dist/cjs/components/template-context-mapper/modalElements/QualityWarningModal.d.ts +1 -1
  113. package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts +1 -1
  114. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +2 -2
  115. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +1 -1
  116. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +4 -4
  117. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.d.ts +4 -5
  118. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  119. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.d.ts +1 -1
  120. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +2 -2
  121. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  122. package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.d.ts +1 -1
  123. package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  124. package/dist/cjs/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.d.ts +2 -2
  125. package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.d.ts +2 -2
  126. package/dist/cjs/components/template-context-mapper/utils/highlightFor.d.ts +1 -1
  127. package/dist/cjs/components/template-preview/models/TemplateMeta.d.ts +1 -1
  128. package/dist/cjs/components/template-preview/models/WhatsappCarouselTemplate.d.ts +2 -2
  129. package/dist/cjs/components/toaster/Toaster.styled.js +1 -1
  130. package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js +1 -1
  131. package/dist/cjs/icons/Actions/Common actions/Activate.d.ts +7 -0
  132. package/dist/cjs/icons/Actions/Common actions/Code.d.ts +7 -0
  133. package/dist/cjs/icons/Actions/Common actions/Cross.d.ts +7 -0
  134. package/dist/cjs/icons/Actions/Common actions/Deactivate.d.ts +7 -0
  135. package/dist/cjs/icons/Actions/Common actions/Delete.d.ts +7 -0
  136. package/dist/cjs/icons/Actions/Common actions/Edit.d.ts +7 -0
  137. package/dist/cjs/icons/Actions/Common actions/Forward.d.ts +7 -0
  138. package/dist/cjs/icons/Actions/Common actions/Fullscreen.d.ts +7 -0
  139. package/dist/cjs/icons/Actions/Common actions/LinkSimpleHorizontal.d.ts +7 -0
  140. package/dist/cjs/icons/Actions/Common actions/Minus.d.ts +7 -0
  141. package/dist/cjs/icons/Actions/Common actions/Plus.d.ts +7 -0
  142. package/dist/cjs/icons/Actions/Common actions/SendAirplane.d.ts +7 -0
  143. package/dist/cjs/icons/Actions/Common actions/ShareAndroid.d.ts +7 -0
  144. package/dist/cjs/icons/Actions/Common actions/index.d.ts +13 -0
  145. package/dist/cjs/icons/Actions/Formatting/CheckboxIcon.d.ts +7 -0
  146. package/dist/cjs/icons/Actions/Formatting/Copy.d.ts +7 -0
  147. package/dist/cjs/icons/Actions/Formatting/Dropdown.d.ts +7 -0
  148. package/dist/cjs/icons/Actions/Formatting/MultiLine.d.ts +7 -0
  149. package/dist/cjs/icons/Actions/Formatting/MultiSelect.d.ts +7 -0
  150. package/dist/cjs/icons/Actions/Formatting/Number.d.ts +7 -0
  151. package/dist/cjs/icons/Actions/Formatting/Text.d.ts +7 -0
  152. package/dist/cjs/icons/Actions/Formatting/Textbox.d.ts +7 -0
  153. package/dist/cjs/icons/Actions/Formatting/index.d.ts +8 -0
  154. package/dist/cjs/icons/Actions/Navigation/ArrowRedo.d.ts +7 -0
  155. package/dist/cjs/icons/Actions/Navigation/ArrowUndo.d.ts +7 -0
  156. package/dist/cjs/icons/Actions/Navigation/LogIn.d.ts +7 -0
  157. package/dist/cjs/icons/Actions/Navigation/LogOut.d.ts +7 -0
  158. package/dist/cjs/icons/Actions/Navigation/OpenNewWindow.d.ts +7 -0
  159. package/dist/cjs/icons/Actions/Navigation/Refresh.d.ts +7 -0
  160. package/dist/cjs/icons/Actions/Navigation/Rewind.d.ts +7 -0
  161. package/dist/cjs/icons/Actions/Navigation/Sync.d.ts +7 -0
  162. package/dist/cjs/icons/Actions/Navigation/index.d.ts +8 -0
  163. package/dist/cjs/icons/Actions/Selection/HandleDrag.d.ts +7 -0
  164. package/dist/cjs/icons/Actions/Selection/SelectDocManually.d.ts +7 -0
  165. package/dist/cjs/icons/Actions/Selection/SingleChoice.d.ts +7 -0
  166. package/dist/cjs/icons/Actions/Selection/index.d.ts +3 -0
  167. package/dist/cjs/icons/Arrows/Carat/CaratDown.d.ts +7 -0
  168. package/dist/cjs/icons/Arrows/Carat/CaratLeft.d.ts +7 -0
  169. package/dist/cjs/icons/Arrows/Carat/CaratRight.d.ts +7 -0
  170. package/dist/cjs/icons/Arrows/Carat/CaratUp.d.ts +7 -0
  171. package/dist/cjs/icons/Arrows/Carat/index.d.ts +4 -0
  172. package/dist/cjs/icons/Arrows/Chevron/ChevronDown.d.ts +7 -0
  173. package/dist/cjs/icons/Arrows/Chevron/ChevronLeft.d.ts +7 -0
  174. package/dist/cjs/icons/Arrows/Chevron/ChevronRight.d.ts +7 -0
  175. package/dist/cjs/icons/Arrows/Chevron/ChevronUp.d.ts +7 -0
  176. package/dist/cjs/icons/Arrows/Chevron/index.d.ts +4 -0
  177. package/dist/cjs/icons/Arrows/Double chevron/ChevronDoubleDown.d.ts +7 -0
  178. package/dist/cjs/icons/Arrows/Double chevron/ChevronDoubleLeft.d.ts +7 -0
  179. package/dist/cjs/icons/Arrows/Double chevron/ChevronDoubleRight.d.ts +7 -0
  180. package/dist/cjs/icons/Arrows/Double chevron/ChevronDoubleUp.d.ts +7 -0
  181. package/dist/cjs/icons/Arrows/Double chevron/index.d.ts +4 -0
  182. package/dist/cjs/icons/Arrows/Normal arrows/ArrowDown.d.ts +7 -0
  183. package/dist/cjs/icons/Arrows/Normal arrows/ArrowDown1.d.ts +7 -0
  184. package/dist/cjs/icons/Arrows/Normal arrows/ArrowDownLeft.d.ts +7 -0
  185. package/dist/cjs/icons/Arrows/Normal arrows/ArrowDownLeft1.d.ts +7 -0
  186. package/dist/cjs/icons/Arrows/Normal arrows/ArrowDownRight.d.ts +7 -0
  187. package/dist/cjs/icons/Arrows/Normal arrows/ArrowDownRight1.d.ts +7 -0
  188. package/dist/cjs/icons/Arrows/Normal arrows/ArrowLeft.d.ts +7 -0
  189. package/dist/cjs/icons/Arrows/Normal arrows/ArrowLeft1.d.ts +7 -0
  190. package/dist/cjs/icons/Arrows/Normal arrows/ArrowRight.d.ts +7 -0
  191. package/dist/cjs/icons/Arrows/Normal arrows/ArrowRight1.d.ts +7 -0
  192. package/dist/cjs/icons/Arrows/Normal arrows/ArrowUp.d.ts +7 -0
  193. package/dist/cjs/icons/Arrows/Normal arrows/ArrowUp1.d.ts +7 -0
  194. package/dist/cjs/icons/Arrows/Normal arrows/ArrowUpLeft.d.ts +7 -0
  195. package/dist/cjs/icons/Arrows/Normal arrows/ArrowUpLeft1.d.ts +7 -0
  196. package/dist/cjs/icons/Arrows/Normal arrows/ArrowUpRight.d.ts +7 -0
  197. package/dist/cjs/icons/Arrows/Normal arrows/ArrowUpRight1.d.ts +7 -0
  198. package/dist/cjs/icons/Arrows/Normal arrows/index.d.ts +16 -0
  199. package/dist/cjs/icons/Arrows/Special/ArrowSwitch.d.ts +7 -0
  200. package/dist/cjs/icons/Arrows/Special/ArrowSwitch1.d.ts +7 -0
  201. package/dist/cjs/icons/Arrows/Special/index.d.ts +2 -0
  202. package/dist/cjs/icons/BIK AI specific/AiEmoji.d.ts +7 -0
  203. package/dist/cjs/icons/BIK AI specific/AiRobot.d.ts +7 -0
  204. package/dist/cjs/icons/BIK AI specific/Expand.d.ts +7 -0
  205. package/dist/cjs/icons/BIK AI specific/Frame27202.d.ts +7 -0
  206. package/dist/cjs/icons/BIK AI specific/Frame27389.d.ts +7 -0
  207. package/dist/cjs/icons/BIK AI specific/Frame27597.d.ts +7 -0
  208. package/dist/cjs/icons/BIK AI specific/Frame27598.d.ts +7 -0
  209. package/dist/cjs/icons/BIK AI specific/Frame27599.d.ts +7 -0
  210. package/dist/cjs/icons/BIK AI specific/PricePlease.d.ts +7 -0
  211. package/dist/cjs/icons/BIK AI specific/Shape.d.ts +7 -0
  212. package/dist/cjs/icons/BIK AI specific/Shorter.d.ts +7 -0
  213. package/dist/cjs/icons/BIK AI specific/Sparkling2Line.d.ts +7 -0
  214. package/dist/cjs/icons/BIK AI specific/Write.d.ts +7 -0
  215. package/dist/cjs/icons/BIK AI specific/index.d.ts +13 -0
  216. package/dist/cjs/icons/Informational/Common UI/Bell.d.ts +7 -0
  217. package/dist/cjs/icons/Informational/Common UI/BellSync.d.ts +7 -0
  218. package/dist/cjs/icons/Informational/Common UI/Bulb.d.ts +7 -0
  219. package/dist/cjs/icons/Informational/Common UI/MenuHamburger.d.ts +7 -0
  220. package/dist/cjs/icons/Informational/Common UI/MessageSearch.d.ts +7 -0
  221. package/dist/cjs/icons/Informational/Common UI/MoreHorizontal.d.ts +7 -0
  222. package/dist/cjs/icons/Informational/Common UI/MoreVertical.d.ts +7 -0
  223. package/dist/cjs/icons/Informational/Common UI/Search.d.ts +7 -0
  224. package/dist/cjs/icons/Informational/Common UI/Settings.d.ts +7 -0
  225. package/dist/cjs/icons/Informational/Common UI/Training.d.ts +7 -0
  226. package/dist/cjs/icons/Informational/Common UI/index.d.ts +10 -0
  227. package/dist/cjs/icons/Informational/Communication/Chat.d.ts +7 -0
  228. package/dist/cjs/icons/Informational/Communication/ChatCheck.d.ts +7 -0
  229. package/dist/cjs/icons/Informational/Communication/ChatQuestion.d.ts +7 -0
  230. package/dist/cjs/icons/Informational/Communication/ChatStar.d.ts +7 -0
  231. package/dist/cjs/icons/Informational/Communication/Email.d.ts +7 -0
  232. package/dist/cjs/icons/Informational/Communication/Headphone.d.ts +7 -0
  233. package/dist/cjs/icons/Informational/Communication/LiveChat.d.ts +7 -0
  234. package/dist/cjs/icons/Informational/Communication/Phone.d.ts +7 -0
  235. package/dist/cjs/icons/Informational/Communication/index.d.ts +8 -0
  236. package/dist/cjs/icons/Informational/Customer intent/ClipboardCheck.d.ts +7 -0
  237. package/dist/cjs/icons/Informational/Customer intent/Experimental.d.ts +7 -0
  238. package/dist/cjs/icons/Informational/Customer intent/Frame27202.d.ts +7 -0
  239. package/dist/cjs/icons/Informational/Customer intent/Help.d.ts +7 -0
  240. package/dist/cjs/icons/Informational/Customer intent/Percent.d.ts +7 -0
  241. package/dist/cjs/icons/Informational/Customer intent/Purchase.d.ts +7 -0
  242. package/dist/cjs/icons/Informational/Customer intent/Services.d.ts +7 -0
  243. package/dist/cjs/icons/Informational/Customer intent/ShoppingCart.d.ts +7 -0
  244. package/dist/cjs/icons/Informational/Customer intent/SingleChoice.d.ts +7 -0
  245. package/dist/cjs/icons/Informational/Customer intent/Unsatisfactory.d.ts +7 -0
  246. package/dist/cjs/icons/Informational/Customer intent/UserSound.d.ts +7 -0
  247. package/dist/cjs/icons/Informational/Customer intent/index.d.ts +11 -0
  248. package/dist/cjs/icons/Informational/Date and time/Calendar.d.ts +7 -0
  249. package/dist/cjs/icons/Informational/Date and time/CalendarAdd.d.ts +7 -0
  250. package/dist/cjs/icons/Informational/Date and time/Clock.d.ts +7 -0
  251. package/dist/cjs/icons/Informational/Date and time/HourGlass.d.ts +7 -0
  252. package/dist/cjs/icons/Informational/Date and time/WorkingHours.d.ts +7 -0
  253. package/dist/cjs/icons/Informational/Date and time/index.d.ts +5 -0
  254. package/dist/cjs/icons/Informational/Files and folders/Archive1.d.ts +7 -0
  255. package/dist/cjs/icons/Informational/Files and folders/Excel.d.ts +7 -0
  256. package/dist/cjs/icons/Informational/Files and folders/File.d.ts +7 -0
  257. package/dist/cjs/icons/Informational/Files and folders/FileCsv.d.ts +7 -0
  258. package/dist/cjs/icons/Informational/Files and folders/FilePage.d.ts +7 -0
  259. package/dist/cjs/icons/Informational/Files and folders/FilePdf.d.ts +7 -0
  260. package/dist/cjs/icons/Informational/Files and folders/Folder.d.ts +7 -0
  261. package/dist/cjs/icons/Informational/Files and folders/MediaMessage.d.ts +7 -0
  262. package/dist/cjs/icons/Informational/Files and folders/Move.d.ts +7 -0
  263. package/dist/cjs/icons/Informational/Files and folders/OrderHistory.d.ts +7 -0
  264. package/dist/cjs/icons/Informational/Files and folders/TextMessage.d.ts +7 -0
  265. package/dist/cjs/icons/Informational/Files and folders/Unarchive.d.ts +7 -0
  266. package/dist/cjs/icons/Informational/Files and folders/index.d.ts +12 -0
  267. package/dist/cjs/icons/Informational/Finance/Bank.d.ts +7 -0
  268. package/dist/cjs/icons/Informational/Finance/CashOnDelivery.d.ts +7 -0
  269. package/dist/cjs/icons/Informational/Finance/ChartLine.d.ts +7 -0
  270. package/dist/cjs/icons/Informational/Finance/CreditCard.d.ts +7 -0
  271. package/dist/cjs/icons/Informational/Finance/Growth.d.ts +7 -0
  272. package/dist/cjs/icons/Informational/Finance/Money1.d.ts +7 -0
  273. package/dist/cjs/icons/Informational/Finance/NoCredits.d.ts +7 -0
  274. package/dist/cjs/icons/Informational/Finance/Percent.d.ts +7 -0
  275. package/dist/cjs/icons/Informational/Finance/Rupee.d.ts +7 -0
  276. package/dist/cjs/icons/Informational/Finance/TablerTicket.d.ts +7 -0
  277. package/dist/cjs/icons/Informational/Finance/Wallet.d.ts +7 -0
  278. package/dist/cjs/icons/Informational/Finance/index.d.ts +11 -0
  279. package/dist/cjs/icons/Informational/General/AlertTriangle.d.ts +7 -0
  280. package/dist/cjs/icons/Informational/General/Check.d.ts +7 -0
  281. package/dist/cjs/icons/Informational/General/CheckDouble.d.ts +7 -0
  282. package/dist/cjs/icons/Informational/General/CloseTicket1.d.ts +7 -0
  283. package/dist/cjs/icons/Informational/General/Error.d.ts +7 -0
  284. package/dist/cjs/icons/Informational/General/FailDoc.d.ts +7 -0
  285. package/dist/cjs/icons/Informational/General/Help.d.ts +7 -0
  286. package/dist/cjs/icons/Informational/General/IcList.d.ts +7 -0
  287. package/dist/cjs/icons/Informational/General/Info.d.ts +7 -0
  288. package/dist/cjs/icons/Informational/General/NewTicket.d.ts +7 -0
  289. package/dist/cjs/icons/Informational/General/RoundCheck.d.ts +7 -0
  290. package/dist/cjs/icons/Informational/General/Slash.d.ts +7 -0
  291. package/dist/cjs/icons/Informational/General/index.d.ts +12 -0
  292. package/dist/cjs/icons/Informational/Identity/Chatbot.d.ts +7 -0
  293. package/dist/cjs/icons/Informational/Identity/Contacts.d.ts +7 -0
  294. package/dist/cjs/icons/Informational/Identity/Group.d.ts +7 -0
  295. package/dist/cjs/icons/Informational/Identity/IdCard.d.ts +7 -0
  296. package/dist/cjs/icons/Informational/Identity/Person.d.ts +7 -0
  297. package/dist/cjs/icons/Informational/Identity/Robot.d.ts +7 -0
  298. package/dist/cjs/icons/Informational/Identity/Union.d.ts +7 -0
  299. package/dist/cjs/icons/Informational/Identity/Union1.d.ts +7 -0
  300. package/dist/cjs/icons/Informational/Identity/UserMinus1.d.ts +7 -0
  301. package/dist/cjs/icons/Informational/Identity/UserPlus.d.ts +7 -0
  302. package/dist/cjs/icons/Informational/Identity/index.d.ts +10 -0
  303. package/dist/cjs/icons/Informational/Location/Address.d.ts +7 -0
  304. package/dist/cjs/icons/Informational/Location/LanguageChange.d.ts +7 -0
  305. package/dist/cjs/icons/Informational/Location/MapPin.d.ts +7 -0
  306. package/dist/cjs/icons/Informational/Location/Truck.d.ts +7 -0
  307. package/dist/cjs/icons/Informational/Location/index.d.ts +4 -0
  308. package/dist/cjs/icons/Informational/Store related/AllDocs.d.ts +7 -0
  309. package/dist/cjs/icons/Informational/Store related/AllProduct.d.ts +7 -0
  310. package/dist/cjs/icons/Informational/Store related/Clipboard.d.ts +7 -0
  311. package/dist/cjs/icons/Informational/Store related/ClipboardCheck.d.ts +7 -0
  312. package/dist/cjs/icons/Informational/Store related/CustomerReport.d.ts +7 -0
  313. package/dist/cjs/icons/Informational/Store related/Head112.d.ts +7 -0
  314. package/dist/cjs/icons/Informational/Store related/InventoryReport.d.ts +7 -0
  315. package/dist/cjs/icons/Informational/Store related/OrderReport.d.ts +7 -0
  316. package/dist/cjs/icons/Informational/Store related/PaymentReport.d.ts +7 -0
  317. package/dist/cjs/icons/Informational/Store related/Store.d.ts +7 -0
  318. package/dist/cjs/icons/Informational/Store related/StoreSync.d.ts +7 -0
  319. package/dist/cjs/icons/Informational/Store related/index.d.ts +11 -0
  320. package/dist/cjs/icons/Informational/eCommerce/AddLabel.d.ts +7 -0
  321. package/dist/cjs/icons/Informational/eCommerce/Click.d.ts +7 -0
  322. package/dist/cjs/icons/Informational/eCommerce/Filter.d.ts +7 -0
  323. package/dist/cjs/icons/Informational/eCommerce/Gift1.d.ts +7 -0
  324. package/dist/cjs/icons/Informational/eCommerce/GiftMinus.d.ts +7 -0
  325. package/dist/cjs/icons/Informational/eCommerce/GiftPlus.d.ts +7 -0
  326. package/dist/cjs/icons/Informational/eCommerce/Promocode.d.ts +7 -0
  327. package/dist/cjs/icons/Informational/eCommerce/Receipt.d.ts +7 -0
  328. package/dist/cjs/icons/Informational/eCommerce/ShieldCheck.d.ts +7 -0
  329. package/dist/cjs/icons/Informational/eCommerce/ShoppingBag.d.ts +7 -0
  330. package/dist/cjs/icons/Informational/eCommerce/ShoppingBasket.d.ts +7 -0
  331. package/dist/cjs/icons/Informational/eCommerce/ShoppingCart.d.ts +7 -0
  332. package/dist/cjs/icons/Informational/eCommerce/index.d.ts +12 -0
  333. package/dist/cjs/icons/Legacy - Bikayi specific/Categories/Box.d.ts +7 -0
  334. package/dist/cjs/icons/Legacy - Bikayi specific/Categories/Box2.d.ts +7 -0
  335. package/dist/cjs/icons/Legacy - Bikayi specific/Categories/index.d.ts +2 -0
  336. package/dist/cjs/icons/Legacy - Bikayi specific/Navigation/Journeys.d.ts +7 -0
  337. package/dist/cjs/icons/Legacy - Bikayi specific/Navigation/Services.d.ts +7 -0
  338. package/dist/cjs/icons/Legacy - Bikayi specific/Navigation/index.d.ts +2 -0
  339. package/dist/cjs/icons/Legacy - Bikayi specific/Plans/PlanUltimate.d.ts +7 -0
  340. package/dist/cjs/icons/Legacy - Bikayi specific/Plans/index.d.ts +1 -0
  341. package/dist/cjs/icons/Legacy - Bikayi specific/Services/Businesscard.d.ts +7 -0
  342. package/dist/cjs/icons/Legacy - Bikayi specific/Services/Customdomain.d.ts +7 -0
  343. package/dist/cjs/icons/Legacy - Bikayi specific/Services/Marketing.d.ts +7 -0
  344. package/dist/cjs/icons/Legacy - Bikayi specific/Services/PaymentLink.d.ts +7 -0
  345. package/dist/cjs/icons/Legacy - Bikayi specific/Services/Theme.d.ts +7 -0
  346. package/dist/cjs/icons/Legacy - Bikayi specific/Services/index.d.ts +5 -0
  347. package/dist/cjs/icons/Media/Audio/Microphone.d.ts +7 -0
  348. package/dist/cjs/icons/Media/Audio/Pause.d.ts +7 -0
  349. package/dist/cjs/icons/Media/Audio/Play.d.ts +7 -0
  350. package/dist/cjs/icons/Media/Audio/Sleep.d.ts +7 -0
  351. package/dist/cjs/icons/Media/Audio/VolumeMute.d.ts +7 -0
  352. package/dist/cjs/icons/Media/Audio/VolumeOneline.d.ts +7 -0
  353. package/dist/cjs/icons/Media/Audio/VolumeTwoline.d.ts +7 -0
  354. package/dist/cjs/icons/Media/Audio/index.d.ts +7 -0
  355. package/dist/cjs/icons/Media/Devices/Desktop.d.ts +7 -0
  356. package/dist/cjs/icons/Media/Devices/Smartphone.d.ts +7 -0
  357. package/dist/cjs/icons/Media/Devices/index.d.ts +2 -0
  358. package/dist/cjs/icons/Media/Others/BarcodeScan.d.ts +7 -0
  359. package/dist/cjs/icons/Media/Others/Download.d.ts +7 -0
  360. package/dist/cjs/icons/Media/Others/EmojiSmile.d.ts +7 -0
  361. package/dist/cjs/icons/Media/Others/Paperclip.d.ts +7 -0
  362. package/dist/cjs/icons/Media/Others/Upload.d.ts +7 -0
  363. package/dist/cjs/icons/Media/Others/index.d.ts +5 -0
  364. package/dist/cjs/icons/Media/Visual/Camera.d.ts +7 -0
  365. package/dist/cjs/icons/Media/Visual/CameraAdd.d.ts +7 -0
  366. package/dist/cjs/icons/Media/Visual/Crop.d.ts +7 -0
  367. package/dist/cjs/icons/Media/Visual/FlashOff.d.ts +7 -0
  368. package/dist/cjs/icons/Media/Visual/FlashOn.d.ts +7 -0
  369. package/dist/cjs/icons/Media/Visual/Image.d.ts +7 -0
  370. package/dist/cjs/icons/Media/Visual/ImageAdd.d.ts +7 -0
  371. package/dist/cjs/icons/Media/Visual/Images.d.ts +7 -0
  372. package/dist/cjs/icons/Media/Visual/Maximize.d.ts +7 -0
  373. package/dist/cjs/icons/Media/Visual/RotateAnticlockwise.d.ts +7 -0
  374. package/dist/cjs/icons/Media/Visual/RotateClockwise.d.ts +7 -0
  375. package/dist/cjs/icons/Media/Visual/VideoCamcorder.d.ts +7 -0
  376. package/dist/cjs/icons/Media/Visual/VideoFilm.d.ts +7 -0
  377. package/dist/cjs/icons/Media/Visual/index.d.ts +13 -0
  378. package/dist/cjs/icons/Social/Channels /Email.d.ts +6 -0
  379. package/dist/cjs/icons/Social/Channels /EmailMarketing.d.ts +6 -0
  380. package/dist/cjs/icons/Social/Channels /Facebook.d.ts +6 -0
  381. package/dist/cjs/icons/Social/Channels /FacebookComment.d.ts +6 -0
  382. package/dist/cjs/icons/Social/Channels /Instagram.d.ts +6 -0
  383. package/dist/cjs/icons/Social/Channels /InstagramIcon.d.ts +6 -0
  384. package/dist/cjs/icons/Social/Channels /Messenger.d.ts +6 -0
  385. package/dist/cjs/icons/Social/Channels /Tasks.d.ts +6 -0
  386. package/dist/cjs/icons/Social/Channels /WebPush.d.ts +6 -0
  387. package/dist/cjs/icons/Social/Channels /WhatsApp.d.ts +6 -0
  388. package/dist/cjs/icons/Social/Channels /index.d.ts +10 -0
  389. package/dist/cjs/icons/Social/Social/EmailMarketing.d.ts +7 -0
  390. package/dist/cjs/icons/Social/Social/Facebook.d.ts +7 -0
  391. package/dist/cjs/icons/Social/Social/Google.d.ts +7 -0
  392. package/dist/cjs/icons/Social/Social/Instagram.d.ts +7 -0
  393. package/dist/cjs/icons/Social/Social/Messenger.d.ts +7 -0
  394. package/dist/cjs/icons/Social/Social/Rcs.d.ts +7 -0
  395. package/dist/cjs/icons/Social/Social/Twitter.d.ts +7 -0
  396. package/dist/cjs/icons/Social/Social/Website.d.ts +7 -0
  397. package/dist/cjs/icons/Social/Social/Whatsapp.d.ts +7 -0
  398. package/dist/cjs/icons/Social/Social/Youtube.d.ts +7 -0
  399. package/dist/cjs/icons/Social/Social/index.d.ts +10 -0
  400. package/dist/cjs/icons/Toggles/General/Eye.d.ts +7 -0
  401. package/dist/cjs/icons/Toggles/General/EyeClosed.d.ts +7 -0
  402. package/dist/cjs/icons/Toggles/General/EyeOff.d.ts +7 -0
  403. package/dist/cjs/icons/Toggles/General/HeartEmpty.d.ts +7 -0
  404. package/dist/cjs/icons/Toggles/General/HeartFilled.d.ts +7 -0
  405. package/dist/cjs/icons/Toggles/General/Lock.d.ts +7 -0
  406. package/dist/cjs/icons/Toggles/General/StarEmpty.d.ts +7 -0
  407. package/dist/cjs/icons/Toggles/General/StarFilled.d.ts +7 -0
  408. package/dist/cjs/icons/Toggles/General/StarHalf.d.ts +7 -0
  409. package/dist/cjs/icons/Toggles/General/Unlock.d.ts +7 -0
  410. package/dist/cjs/icons/Toggles/General/index.d.ts +10 -0
  411. package/dist/cjs/icons/index.d.ts +56 -0
  412. package/dist/cjs/icons/registry.d.ts +10 -0
  413. package/dist/cjs/index.d.ts +0 -3
  414. package/dist/cjs/index.js +1 -1
  415. package/dist/esm/assets/icons/Ai_event_generating.svg.js +1 -1
  416. package/dist/esm/components/ProgressChecklist/MultiChecklistItem.d.ts +1 -29
  417. package/dist/esm/components/ProgressChecklist/ProgressChecklist.d.ts +27 -1
  418. package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  419. package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.d.ts +2 -1
  420. package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
  421. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.d.ts +2 -5
  422. package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
  423. package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  424. package/dist/esm/components/QueryBuilder/constants/connector.d.ts +1 -1
  425. package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
  426. package/dist/esm/components/QueryBuilder/constants/connectorPosition.js +1 -1
  427. package/dist/esm/components/QueryBuilder/helpers/Connector.helper.d.ts +1 -1
  428. package/dist/esm/components/QueryBuilder/helpers/Connector.helper.js +1 -1
  429. package/dist/esm/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +1 -1
  430. package/dist/esm/components/QueryBuilder/helpers/SegmentValidator.d.ts +15 -3
  431. package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.d.ts +22 -2
  432. package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
  433. package/dist/esm/components/QueryBuilder/types/QueryBuilderAPI.type.d.ts +1 -1
  434. package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -1
  435. package/dist/esm/components/QueryBuilder/types/index.d.ts +1 -2
  436. package/dist/esm/components/SearchFilter/components/DatePickerButton.d.ts +1 -1
  437. package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.d.ts +1 -1
  438. package/dist/esm/components/SearchFilter/components/SearchFilterItem.d.ts +1 -1
  439. package/dist/esm/components/SearchFilter/types/SearchFilter.type.d.ts +1 -1
  440. package/dist/esm/components/WhatsAppTextEditor/AIRephraseButton.d.ts +1 -4
  441. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.d.ts +1 -4
  442. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +4 -1
  443. package/dist/esm/components/WhatsAppTextEditor/ai/actionRegistry.d.ts +1 -2
  444. package/dist/esm/components/accordion/Accordion.d.ts +35 -2
  445. package/dist/esm/components/accordion/Accordion.style.d.ts +1 -1
  446. package/dist/esm/components/analytics-card/AnalyticsCard.d.ts +1 -1
  447. package/dist/esm/components/analytics-card/AnalyticsCard.styled.d.ts +1 -1
  448. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.d.ts +17 -1
  449. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChipChannelFooter.d.ts +1 -1
  450. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.d.ts +1 -1
  451. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  452. package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
  453. package/dist/esm/components/avatar/Avatar.js +1 -1
  454. package/dist/esm/components/bik-layout/BikSidebar.d.ts +1 -1
  455. package/dist/esm/components/bik-layout/SidebarPopup.d.ts +1 -1
  456. package/dist/esm/components/bik-layout/SidebarSkeleton.d.ts +1 -1
  457. package/dist/esm/components/bik-layout/SidebarStyles.d.ts +1 -1
  458. package/dist/esm/components/bik-layout/SimpleSidebar.d.ts +27 -1
  459. package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.d.ts +1 -1
  460. package/dist/esm/components/image-cropper/BikImageCropper.d.ts +6 -1
  461. package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.d.ts +1 -1
  462. package/dist/esm/components/input/ChipInput.js +1 -1
  463. package/dist/esm/components/input/ChipInput.styled.d.ts +66 -6
  464. package/dist/esm/components/input/ChipInput.styled.js +1 -1
  465. package/dist/esm/components/input/Input-helper.d.ts +1 -1
  466. package/dist/esm/components/input/Input.d.ts +72 -1
  467. package/dist/esm/components/input/Input.styled.d.ts +1 -1
  468. package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +1 -1
  469. package/dist/esm/components/list-item/ListItem.d.ts +17 -1
  470. package/dist/esm/components/list-item/ListItem.styled.d.ts +1 -1
  471. package/dist/esm/components/list-item/themes.d.ts +1 -1
  472. package/dist/esm/components/multi-level-dropdown/GroupedMenuList.d.ts +1 -2
  473. package/dist/esm/components/multi-level-dropdown/GroupedMenuList.js +1 -1
  474. package/dist/esm/components/multi-level-dropdown/MenuItem.d.ts +1 -2
  475. package/dist/esm/components/multi-level-dropdown/MenuItem.js +1 -1
  476. package/dist/esm/components/multi-level-dropdown/MenuList.js +1 -1
  477. package/dist/esm/components/multi-level-dropdown/type.d.ts +1 -2
  478. package/dist/esm/components/product-picker-v2/ProductPickerTag.d.ts +2 -2
  479. package/dist/esm/components/product-picker-v2/collectionScreen.d.ts +3 -3
  480. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.d.ts +4 -3
  481. package/dist/esm/components/product-picker-v2/index.d.ts +1 -1
  482. package/dist/esm/components/product-picker-v2/modal.d.ts +58 -2
  483. package/dist/esm/components/product-picker-v2/product.d.ts +3 -2
  484. package/dist/esm/components/product-picker-v2/productInfoOverlay.d.ts +2 -1
  485. package/dist/esm/components/product-picker-v2/productScreen.d.ts +3 -3
  486. package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
  487. package/dist/esm/components/product-picker-v2/rearrangeScreen.d.ts +4 -3
  488. package/dist/esm/components/product-picker-v2/reducers.d.ts +1 -1
  489. package/dist/esm/components/product-picker-v2/reducers.js +1 -1
  490. package/dist/esm/components/product-picker-v2/searchScreen.d.ts +4 -3
  491. package/dist/esm/components/product-picker-v2/selectedScreen.d.ts +4 -3
  492. package/dist/esm/components/product-picker-v2/type.d.ts +0 -65
  493. package/dist/esm/components/product-picker-v2/utility.d.ts +3 -3
  494. package/dist/esm/components/product-picker-v2/utility.js +1 -1
  495. package/dist/esm/components/product-picker-v2/variant.d.ts +12 -2
  496. package/dist/esm/components/product-picker-v2/variantComponents.d.ts +3 -2
  497. package/dist/esm/components/sample-button/SampleButton.d.ts +16 -1
  498. package/dist/esm/components/sample-button/SampleButton.styled.d.ts +1 -1
  499. package/dist/esm/components/sample-button/themes.d.ts +1 -1
  500. package/dist/esm/components/searchBar/searchBar.d.ts +1 -1
  501. package/dist/esm/components/slider/slider.js +1 -1
  502. package/dist/esm/components/stepper/Stepper.d.ts +17 -1
  503. package/dist/esm/components/stepper/Stepper.styled.d.ts +1 -1
  504. package/dist/esm/components/stepper/StepperService.d.ts +1 -1
  505. package/dist/esm/components/stepper/themes.d.ts +1 -1
  506. package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +9 -9
  507. package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
  508. package/dist/esm/components/template-context-mapper/context/templateModalContext.d.ts +7 -7
  509. package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +1 -1
  510. package/dist/esm/components/template-context-mapper/helpers/WebpushTemplateHelper.d.ts +4 -6
  511. package/dist/esm/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
  512. package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +2 -2
  513. package/dist/esm/components/template-context-mapper/modalElements/Body.js +10 -10
  514. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +6 -6
  515. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.d.ts +3 -3
  516. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  517. package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.d.ts +2 -2
  518. package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
  519. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.d.ts +14 -3
  520. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  521. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +5 -5
  522. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  523. package/dist/esm/components/template-context-mapper/modalElements/Footer.js +4 -4
  524. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.d.ts +1 -1
  525. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +5 -5
  526. package/dist/esm/components/template-context-mapper/modalElements/QualityWarningModal.d.ts +1 -1
  527. package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts +1 -1
  528. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +2 -2
  529. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +1 -1
  530. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +1 -1
  531. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.d.ts +4 -5
  532. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  533. package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.d.ts +1 -1
  534. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +2 -2
  535. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  536. package/dist/esm/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.d.ts +1 -1
  537. package/dist/esm/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
  538. package/dist/esm/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.d.ts +2 -2
  539. package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.d.ts +2 -2
  540. package/dist/esm/components/template-context-mapper/utils/highlightFor.d.ts +1 -1
  541. package/dist/esm/components/template-preview/models/TemplateMeta.d.ts +1 -1
  542. package/dist/esm/components/template-preview/models/WhatsappCarouselTemplate.d.ts +2 -2
  543. package/dist/esm/components/toaster/Toaster.styled.js +1 -1
  544. package/dist/esm/components/variable-picker-v3/SubHeaderItems.js +1 -1
  545. package/dist/esm/icons/Actions/Common actions/Activate.d.ts +7 -0
  546. package/dist/esm/icons/Actions/Common actions/Code.d.ts +7 -0
  547. package/dist/esm/icons/Actions/Common actions/Cross.d.ts +7 -0
  548. package/dist/esm/icons/Actions/Common actions/Deactivate.d.ts +7 -0
  549. package/dist/esm/icons/Actions/Common actions/Delete.d.ts +7 -0
  550. package/dist/esm/icons/Actions/Common actions/Edit.d.ts +7 -0
  551. package/dist/esm/icons/Actions/Common actions/Forward.d.ts +7 -0
  552. package/dist/esm/icons/Actions/Common actions/Fullscreen.d.ts +7 -0
  553. package/dist/esm/icons/Actions/Common actions/LinkSimpleHorizontal.d.ts +7 -0
  554. package/dist/esm/icons/Actions/Common actions/Minus.d.ts +7 -0
  555. package/dist/esm/icons/Actions/Common actions/Plus.d.ts +7 -0
  556. package/dist/esm/icons/Actions/Common actions/SendAirplane.d.ts +7 -0
  557. package/dist/esm/icons/Actions/Common actions/ShareAndroid.d.ts +7 -0
  558. package/dist/esm/icons/Actions/Common actions/index.d.ts +13 -0
  559. package/dist/esm/icons/Actions/Formatting/CheckboxIcon.d.ts +7 -0
  560. package/dist/esm/icons/Actions/Formatting/Copy.d.ts +7 -0
  561. package/dist/esm/icons/Actions/Formatting/Dropdown.d.ts +7 -0
  562. package/dist/esm/icons/Actions/Formatting/MultiLine.d.ts +7 -0
  563. package/dist/esm/icons/Actions/Formatting/MultiSelect.d.ts +7 -0
  564. package/dist/esm/icons/Actions/Formatting/Number.d.ts +7 -0
  565. package/dist/esm/icons/Actions/Formatting/Text.d.ts +7 -0
  566. package/dist/esm/icons/Actions/Formatting/Textbox.d.ts +7 -0
  567. package/dist/esm/icons/Actions/Formatting/index.d.ts +8 -0
  568. package/dist/esm/icons/Actions/Navigation/ArrowRedo.d.ts +7 -0
  569. package/dist/esm/icons/Actions/Navigation/ArrowUndo.d.ts +7 -0
  570. package/dist/esm/icons/Actions/Navigation/LogIn.d.ts +7 -0
  571. package/dist/esm/icons/Actions/Navigation/LogOut.d.ts +7 -0
  572. package/dist/esm/icons/Actions/Navigation/OpenNewWindow.d.ts +7 -0
  573. package/dist/esm/icons/Actions/Navigation/Refresh.d.ts +7 -0
  574. package/dist/esm/icons/Actions/Navigation/Rewind.d.ts +7 -0
  575. package/dist/esm/icons/Actions/Navigation/Sync.d.ts +7 -0
  576. package/dist/esm/icons/Actions/Navigation/index.d.ts +8 -0
  577. package/dist/esm/icons/Actions/Selection/HandleDrag.d.ts +7 -0
  578. package/dist/esm/icons/Actions/Selection/SelectDocManually.d.ts +7 -0
  579. package/dist/esm/icons/Actions/Selection/SingleChoice.d.ts +7 -0
  580. package/dist/esm/icons/Actions/Selection/index.d.ts +3 -0
  581. package/dist/esm/icons/Arrows/Carat/CaratDown.d.ts +7 -0
  582. package/dist/esm/icons/Arrows/Carat/CaratLeft.d.ts +7 -0
  583. package/dist/esm/icons/Arrows/Carat/CaratRight.d.ts +7 -0
  584. package/dist/esm/icons/Arrows/Carat/CaratUp.d.ts +7 -0
  585. package/dist/esm/icons/Arrows/Carat/index.d.ts +4 -0
  586. package/dist/esm/icons/Arrows/Chevron/ChevronDown.d.ts +7 -0
  587. package/dist/esm/icons/Arrows/Chevron/ChevronLeft.d.ts +7 -0
  588. package/dist/esm/icons/Arrows/Chevron/ChevronRight.d.ts +7 -0
  589. package/dist/esm/icons/Arrows/Chevron/ChevronUp.d.ts +7 -0
  590. package/dist/esm/icons/Arrows/Chevron/index.d.ts +4 -0
  591. package/dist/esm/icons/Arrows/Double chevron/ChevronDoubleDown.d.ts +7 -0
  592. package/dist/esm/icons/Arrows/Double chevron/ChevronDoubleLeft.d.ts +7 -0
  593. package/dist/esm/icons/Arrows/Double chevron/ChevronDoubleRight.d.ts +7 -0
  594. package/dist/esm/icons/Arrows/Double chevron/ChevronDoubleUp.d.ts +7 -0
  595. package/dist/esm/icons/Arrows/Double chevron/index.d.ts +4 -0
  596. package/dist/esm/icons/Arrows/Normal arrows/ArrowDown.d.ts +7 -0
  597. package/dist/esm/icons/Arrows/Normal arrows/ArrowDown1.d.ts +7 -0
  598. package/dist/esm/icons/Arrows/Normal arrows/ArrowDownLeft.d.ts +7 -0
  599. package/dist/esm/icons/Arrows/Normal arrows/ArrowDownLeft1.d.ts +7 -0
  600. package/dist/esm/icons/Arrows/Normal arrows/ArrowDownRight.d.ts +7 -0
  601. package/dist/esm/icons/Arrows/Normal arrows/ArrowDownRight1.d.ts +7 -0
  602. package/dist/esm/icons/Arrows/Normal arrows/ArrowLeft.d.ts +7 -0
  603. package/dist/esm/icons/Arrows/Normal arrows/ArrowLeft1.d.ts +7 -0
  604. package/dist/esm/icons/Arrows/Normal arrows/ArrowRight.d.ts +7 -0
  605. package/dist/esm/icons/Arrows/Normal arrows/ArrowRight1.d.ts +7 -0
  606. package/dist/esm/icons/Arrows/Normal arrows/ArrowUp.d.ts +7 -0
  607. package/dist/esm/icons/Arrows/Normal arrows/ArrowUp1.d.ts +7 -0
  608. package/dist/esm/icons/Arrows/Normal arrows/ArrowUpLeft.d.ts +7 -0
  609. package/dist/esm/icons/Arrows/Normal arrows/ArrowUpLeft1.d.ts +7 -0
  610. package/dist/esm/icons/Arrows/Normal arrows/ArrowUpRight.d.ts +7 -0
  611. package/dist/esm/icons/Arrows/Normal arrows/ArrowUpRight1.d.ts +7 -0
  612. package/dist/esm/icons/Arrows/Normal arrows/index.d.ts +16 -0
  613. package/dist/esm/icons/Arrows/Special/ArrowSwitch.d.ts +7 -0
  614. package/dist/esm/icons/Arrows/Special/ArrowSwitch1.d.ts +7 -0
  615. package/dist/esm/icons/Arrows/Special/index.d.ts +2 -0
  616. package/dist/esm/icons/BIK AI specific/AiEmoji.d.ts +7 -0
  617. package/dist/esm/icons/BIK AI specific/AiRobot.d.ts +7 -0
  618. package/dist/esm/icons/BIK AI specific/Expand.d.ts +7 -0
  619. package/dist/esm/icons/BIK AI specific/Frame27202.d.ts +7 -0
  620. package/dist/esm/icons/BIK AI specific/Frame27389.d.ts +7 -0
  621. package/dist/esm/icons/BIK AI specific/Frame27597.d.ts +7 -0
  622. package/dist/esm/icons/BIK AI specific/Frame27598.d.ts +7 -0
  623. package/dist/esm/icons/BIK AI specific/Frame27599.d.ts +7 -0
  624. package/dist/esm/icons/BIK AI specific/PricePlease.d.ts +7 -0
  625. package/dist/esm/icons/BIK AI specific/Shape.d.ts +7 -0
  626. package/dist/esm/icons/BIK AI specific/Shorter.d.ts +7 -0
  627. package/dist/esm/icons/BIK AI specific/Sparkling2Line.d.ts +7 -0
  628. package/dist/esm/icons/BIK AI specific/Write.d.ts +7 -0
  629. package/dist/esm/icons/BIK AI specific/index.d.ts +13 -0
  630. package/dist/esm/icons/Informational/Common UI/Bell.d.ts +7 -0
  631. package/dist/esm/icons/Informational/Common UI/BellSync.d.ts +7 -0
  632. package/dist/esm/icons/Informational/Common UI/Bulb.d.ts +7 -0
  633. package/dist/esm/icons/Informational/Common UI/MenuHamburger.d.ts +7 -0
  634. package/dist/esm/icons/Informational/Common UI/MessageSearch.d.ts +7 -0
  635. package/dist/esm/icons/Informational/Common UI/MoreHorizontal.d.ts +7 -0
  636. package/dist/esm/icons/Informational/Common UI/MoreVertical.d.ts +7 -0
  637. package/dist/esm/icons/Informational/Common UI/Search.d.ts +7 -0
  638. package/dist/esm/icons/Informational/Common UI/Settings.d.ts +7 -0
  639. package/dist/esm/icons/Informational/Common UI/Training.d.ts +7 -0
  640. package/dist/esm/icons/Informational/Common UI/index.d.ts +10 -0
  641. package/dist/esm/icons/Informational/Communication/Chat.d.ts +7 -0
  642. package/dist/esm/icons/Informational/Communication/ChatCheck.d.ts +7 -0
  643. package/dist/esm/icons/Informational/Communication/ChatQuestion.d.ts +7 -0
  644. package/dist/esm/icons/Informational/Communication/ChatStar.d.ts +7 -0
  645. package/dist/esm/icons/Informational/Communication/Email.d.ts +7 -0
  646. package/dist/esm/icons/Informational/Communication/Headphone.d.ts +7 -0
  647. package/dist/esm/icons/Informational/Communication/LiveChat.d.ts +7 -0
  648. package/dist/esm/icons/Informational/Communication/Phone.d.ts +7 -0
  649. package/dist/esm/icons/Informational/Communication/index.d.ts +8 -0
  650. package/dist/esm/icons/Informational/Customer intent/ClipboardCheck.d.ts +7 -0
  651. package/dist/esm/icons/Informational/Customer intent/Experimental.d.ts +7 -0
  652. package/dist/esm/icons/Informational/Customer intent/Frame27202.d.ts +7 -0
  653. package/dist/esm/icons/Informational/Customer intent/Help.d.ts +7 -0
  654. package/dist/esm/icons/Informational/Customer intent/Percent.d.ts +7 -0
  655. package/dist/esm/icons/Informational/Customer intent/Purchase.d.ts +7 -0
  656. package/dist/esm/icons/Informational/Customer intent/Services.d.ts +7 -0
  657. package/dist/esm/icons/Informational/Customer intent/ShoppingCart.d.ts +7 -0
  658. package/dist/esm/icons/Informational/Customer intent/SingleChoice.d.ts +7 -0
  659. package/dist/esm/icons/Informational/Customer intent/Unsatisfactory.d.ts +7 -0
  660. package/dist/esm/icons/Informational/Customer intent/UserSound.d.ts +7 -0
  661. package/dist/esm/icons/Informational/Customer intent/index.d.ts +11 -0
  662. package/dist/esm/icons/Informational/Date and time/Calendar.d.ts +7 -0
  663. package/dist/esm/icons/Informational/Date and time/CalendarAdd.d.ts +7 -0
  664. package/dist/esm/icons/Informational/Date and time/Clock.d.ts +7 -0
  665. package/dist/esm/icons/Informational/Date and time/HourGlass.d.ts +7 -0
  666. package/dist/esm/icons/Informational/Date and time/WorkingHours.d.ts +7 -0
  667. package/dist/esm/icons/Informational/Date and time/index.d.ts +5 -0
  668. package/dist/esm/icons/Informational/Files and folders/Archive1.d.ts +7 -0
  669. package/dist/esm/icons/Informational/Files and folders/Excel.d.ts +7 -0
  670. package/dist/esm/icons/Informational/Files and folders/File.d.ts +7 -0
  671. package/dist/esm/icons/Informational/Files and folders/FileCsv.d.ts +7 -0
  672. package/dist/esm/icons/Informational/Files and folders/FilePage.d.ts +7 -0
  673. package/dist/esm/icons/Informational/Files and folders/FilePdf.d.ts +7 -0
  674. package/dist/esm/icons/Informational/Files and folders/Folder.d.ts +7 -0
  675. package/dist/esm/icons/Informational/Files and folders/MediaMessage.d.ts +7 -0
  676. package/dist/esm/icons/Informational/Files and folders/Move.d.ts +7 -0
  677. package/dist/esm/icons/Informational/Files and folders/OrderHistory.d.ts +7 -0
  678. package/dist/esm/icons/Informational/Files and folders/TextMessage.d.ts +7 -0
  679. package/dist/esm/icons/Informational/Files and folders/Unarchive.d.ts +7 -0
  680. package/dist/esm/icons/Informational/Files and folders/index.d.ts +12 -0
  681. package/dist/esm/icons/Informational/Finance/Bank.d.ts +7 -0
  682. package/dist/esm/icons/Informational/Finance/CashOnDelivery.d.ts +7 -0
  683. package/dist/esm/icons/Informational/Finance/ChartLine.d.ts +7 -0
  684. package/dist/esm/icons/Informational/Finance/CreditCard.d.ts +7 -0
  685. package/dist/esm/icons/Informational/Finance/Growth.d.ts +7 -0
  686. package/dist/esm/icons/Informational/Finance/Money1.d.ts +7 -0
  687. package/dist/esm/icons/Informational/Finance/NoCredits.d.ts +7 -0
  688. package/dist/esm/icons/Informational/Finance/Percent.d.ts +7 -0
  689. package/dist/esm/icons/Informational/Finance/Rupee.d.ts +7 -0
  690. package/dist/esm/icons/Informational/Finance/TablerTicket.d.ts +7 -0
  691. package/dist/esm/icons/Informational/Finance/Wallet.d.ts +7 -0
  692. package/dist/esm/icons/Informational/Finance/index.d.ts +11 -0
  693. package/dist/esm/icons/Informational/General/AlertTriangle.d.ts +7 -0
  694. package/dist/esm/icons/Informational/General/Check.d.ts +7 -0
  695. package/dist/esm/icons/Informational/General/CheckDouble.d.ts +7 -0
  696. package/dist/esm/icons/Informational/General/CloseTicket1.d.ts +7 -0
  697. package/dist/esm/icons/Informational/General/Error.d.ts +7 -0
  698. package/dist/esm/icons/Informational/General/FailDoc.d.ts +7 -0
  699. package/dist/esm/icons/Informational/General/Help.d.ts +7 -0
  700. package/dist/esm/icons/Informational/General/IcList.d.ts +7 -0
  701. package/dist/esm/icons/Informational/General/Info.d.ts +7 -0
  702. package/dist/esm/icons/Informational/General/NewTicket.d.ts +7 -0
  703. package/dist/esm/icons/Informational/General/RoundCheck.d.ts +7 -0
  704. package/dist/esm/icons/Informational/General/Slash.d.ts +7 -0
  705. package/dist/esm/icons/Informational/General/index.d.ts +12 -0
  706. package/dist/esm/icons/Informational/Identity/Chatbot.d.ts +7 -0
  707. package/dist/esm/icons/Informational/Identity/Contacts.d.ts +7 -0
  708. package/dist/esm/icons/Informational/Identity/Group.d.ts +7 -0
  709. package/dist/esm/icons/Informational/Identity/IdCard.d.ts +7 -0
  710. package/dist/esm/icons/Informational/Identity/Person.d.ts +7 -0
  711. package/dist/esm/icons/Informational/Identity/Robot.d.ts +7 -0
  712. package/dist/esm/icons/Informational/Identity/Union.d.ts +7 -0
  713. package/dist/esm/icons/Informational/Identity/Union1.d.ts +7 -0
  714. package/dist/esm/icons/Informational/Identity/UserMinus1.d.ts +7 -0
  715. package/dist/esm/icons/Informational/Identity/UserPlus.d.ts +7 -0
  716. package/dist/esm/icons/Informational/Identity/index.d.ts +10 -0
  717. package/dist/esm/icons/Informational/Location/Address.d.ts +7 -0
  718. package/dist/esm/icons/Informational/Location/LanguageChange.d.ts +7 -0
  719. package/dist/esm/icons/Informational/Location/MapPin.d.ts +7 -0
  720. package/dist/esm/icons/Informational/Location/Truck.d.ts +7 -0
  721. package/dist/esm/icons/Informational/Location/index.d.ts +4 -0
  722. package/dist/esm/icons/Informational/Store related/AllDocs.d.ts +7 -0
  723. package/dist/esm/icons/Informational/Store related/AllProduct.d.ts +7 -0
  724. package/dist/esm/icons/Informational/Store related/Clipboard.d.ts +7 -0
  725. package/dist/esm/icons/Informational/Store related/ClipboardCheck.d.ts +7 -0
  726. package/dist/esm/icons/Informational/Store related/CustomerReport.d.ts +7 -0
  727. package/dist/esm/icons/Informational/Store related/Head112.d.ts +7 -0
  728. package/dist/esm/icons/Informational/Store related/InventoryReport.d.ts +7 -0
  729. package/dist/esm/icons/Informational/Store related/OrderReport.d.ts +7 -0
  730. package/dist/esm/icons/Informational/Store related/PaymentReport.d.ts +7 -0
  731. package/dist/esm/icons/Informational/Store related/Store.d.ts +7 -0
  732. package/dist/esm/icons/Informational/Store related/StoreSync.d.ts +7 -0
  733. package/dist/esm/icons/Informational/Store related/index.d.ts +11 -0
  734. package/dist/esm/icons/Informational/eCommerce/AddLabel.d.ts +7 -0
  735. package/dist/esm/icons/Informational/eCommerce/Click.d.ts +7 -0
  736. package/dist/esm/icons/Informational/eCommerce/Filter.d.ts +7 -0
  737. package/dist/esm/icons/Informational/eCommerce/Gift1.d.ts +7 -0
  738. package/dist/esm/icons/Informational/eCommerce/GiftMinus.d.ts +7 -0
  739. package/dist/esm/icons/Informational/eCommerce/GiftPlus.d.ts +7 -0
  740. package/dist/esm/icons/Informational/eCommerce/Promocode.d.ts +7 -0
  741. package/dist/esm/icons/Informational/eCommerce/Receipt.d.ts +7 -0
  742. package/dist/esm/icons/Informational/eCommerce/ShieldCheck.d.ts +7 -0
  743. package/dist/esm/icons/Informational/eCommerce/ShoppingBag.d.ts +7 -0
  744. package/dist/esm/icons/Informational/eCommerce/ShoppingBasket.d.ts +7 -0
  745. package/dist/esm/icons/Informational/eCommerce/ShoppingCart.d.ts +7 -0
  746. package/dist/esm/icons/Informational/eCommerce/index.d.ts +12 -0
  747. package/dist/esm/icons/Legacy - Bikayi specific/Categories/Box.d.ts +7 -0
  748. package/dist/esm/icons/Legacy - Bikayi specific/Categories/Box2.d.ts +7 -0
  749. package/dist/esm/icons/Legacy - Bikayi specific/Categories/index.d.ts +2 -0
  750. package/dist/esm/icons/Legacy - Bikayi specific/Navigation/Journeys.d.ts +7 -0
  751. package/dist/esm/icons/Legacy - Bikayi specific/Navigation/Services.d.ts +7 -0
  752. package/dist/esm/icons/Legacy - Bikayi specific/Navigation/index.d.ts +2 -0
  753. package/dist/esm/icons/Legacy - Bikayi specific/Plans/PlanUltimate.d.ts +7 -0
  754. package/dist/esm/icons/Legacy - Bikayi specific/Plans/index.d.ts +1 -0
  755. package/dist/esm/icons/Legacy - Bikayi specific/Services/Businesscard.d.ts +7 -0
  756. package/dist/esm/icons/Legacy - Bikayi specific/Services/Customdomain.d.ts +7 -0
  757. package/dist/esm/icons/Legacy - Bikayi specific/Services/Marketing.d.ts +7 -0
  758. package/dist/esm/icons/Legacy - Bikayi specific/Services/PaymentLink.d.ts +7 -0
  759. package/dist/esm/icons/Legacy - Bikayi specific/Services/Theme.d.ts +7 -0
  760. package/dist/esm/icons/Legacy - Bikayi specific/Services/index.d.ts +5 -0
  761. package/dist/esm/icons/Media/Audio/Microphone.d.ts +7 -0
  762. package/dist/esm/icons/Media/Audio/Pause.d.ts +7 -0
  763. package/dist/esm/icons/Media/Audio/Play.d.ts +7 -0
  764. package/dist/esm/icons/Media/Audio/Sleep.d.ts +7 -0
  765. package/dist/esm/icons/Media/Audio/VolumeMute.d.ts +7 -0
  766. package/dist/esm/icons/Media/Audio/VolumeOneline.d.ts +7 -0
  767. package/dist/esm/icons/Media/Audio/VolumeTwoline.d.ts +7 -0
  768. package/dist/esm/icons/Media/Audio/index.d.ts +7 -0
  769. package/dist/esm/icons/Media/Devices/Desktop.d.ts +7 -0
  770. package/dist/esm/icons/Media/Devices/Smartphone.d.ts +7 -0
  771. package/dist/esm/icons/Media/Devices/index.d.ts +2 -0
  772. package/dist/esm/icons/Media/Others/BarcodeScan.d.ts +7 -0
  773. package/dist/esm/icons/Media/Others/Download.d.ts +7 -0
  774. package/dist/esm/icons/Media/Others/EmojiSmile.d.ts +7 -0
  775. package/dist/esm/icons/Media/Others/Paperclip.d.ts +7 -0
  776. package/dist/esm/icons/Media/Others/Upload.d.ts +7 -0
  777. package/dist/esm/icons/Media/Others/index.d.ts +5 -0
  778. package/dist/esm/icons/Media/Visual/Camera.d.ts +7 -0
  779. package/dist/esm/icons/Media/Visual/CameraAdd.d.ts +7 -0
  780. package/dist/esm/icons/Media/Visual/Crop.d.ts +7 -0
  781. package/dist/esm/icons/Media/Visual/FlashOff.d.ts +7 -0
  782. package/dist/esm/icons/Media/Visual/FlashOn.d.ts +7 -0
  783. package/dist/esm/icons/Media/Visual/Image.d.ts +7 -0
  784. package/dist/esm/icons/Media/Visual/ImageAdd.d.ts +7 -0
  785. package/dist/esm/icons/Media/Visual/Images.d.ts +7 -0
  786. package/dist/esm/icons/Media/Visual/Maximize.d.ts +7 -0
  787. package/dist/esm/icons/Media/Visual/RotateAnticlockwise.d.ts +7 -0
  788. package/dist/esm/icons/Media/Visual/RotateClockwise.d.ts +7 -0
  789. package/dist/esm/icons/Media/Visual/VideoCamcorder.d.ts +7 -0
  790. package/dist/esm/icons/Media/Visual/VideoFilm.d.ts +7 -0
  791. package/dist/esm/icons/Media/Visual/index.d.ts +13 -0
  792. package/dist/esm/icons/Social/Channels /Email.d.ts +6 -0
  793. package/dist/esm/icons/Social/Channels /EmailMarketing.d.ts +6 -0
  794. package/dist/esm/icons/Social/Channels /Facebook.d.ts +6 -0
  795. package/dist/esm/icons/Social/Channels /FacebookComment.d.ts +6 -0
  796. package/dist/esm/icons/Social/Channels /Instagram.d.ts +6 -0
  797. package/dist/esm/icons/Social/Channels /InstagramIcon.d.ts +6 -0
  798. package/dist/esm/icons/Social/Channels /Messenger.d.ts +6 -0
  799. package/dist/esm/icons/Social/Channels /Tasks.d.ts +6 -0
  800. package/dist/esm/icons/Social/Channels /WebPush.d.ts +6 -0
  801. package/dist/esm/icons/Social/Channels /WhatsApp.d.ts +6 -0
  802. package/dist/esm/icons/Social/Channels /index.d.ts +10 -0
  803. package/dist/esm/icons/Social/Social/EmailMarketing.d.ts +7 -0
  804. package/dist/esm/icons/Social/Social/Facebook.d.ts +7 -0
  805. package/dist/esm/icons/Social/Social/Google.d.ts +7 -0
  806. package/dist/esm/icons/Social/Social/Instagram.d.ts +7 -0
  807. package/dist/esm/icons/Social/Social/Messenger.d.ts +7 -0
  808. package/dist/esm/icons/Social/Social/Rcs.d.ts +7 -0
  809. package/dist/esm/icons/Social/Social/Twitter.d.ts +7 -0
  810. package/dist/esm/icons/Social/Social/Website.d.ts +7 -0
  811. package/dist/esm/icons/Social/Social/Whatsapp.d.ts +7 -0
  812. package/dist/esm/icons/Social/Social/Youtube.d.ts +7 -0
  813. package/dist/esm/icons/Social/Social/index.d.ts +10 -0
  814. package/dist/esm/icons/Toggles/General/Eye.d.ts +7 -0
  815. package/dist/esm/icons/Toggles/General/EyeClosed.d.ts +7 -0
  816. package/dist/esm/icons/Toggles/General/EyeOff.d.ts +7 -0
  817. package/dist/esm/icons/Toggles/General/HeartEmpty.d.ts +7 -0
  818. package/dist/esm/icons/Toggles/General/HeartFilled.d.ts +7 -0
  819. package/dist/esm/icons/Toggles/General/Lock.d.ts +7 -0
  820. package/dist/esm/icons/Toggles/General/StarEmpty.d.ts +7 -0
  821. package/dist/esm/icons/Toggles/General/StarFilled.d.ts +7 -0
  822. package/dist/esm/icons/Toggles/General/StarHalf.d.ts +7 -0
  823. package/dist/esm/icons/Toggles/General/Unlock.d.ts +7 -0
  824. package/dist/esm/icons/Toggles/General/index.d.ts +10 -0
  825. package/dist/esm/icons/index.d.ts +56 -0
  826. package/dist/esm/icons/registry.d.ts +10 -0
  827. package/dist/esm/index.d.ts +0 -3
  828. package/dist/esm/index.js +1 -1
  829. package/package.json +19 -10
  830. package/dist/cjs/components/QueryBuilder/types/QueryBuilderEnum.type.d.ts +0 -21
  831. package/dist/cjs/components/QueryBuilder/types/QueryBuilderEnum.type.js +0 -1
  832. package/dist/cjs/components/accordion/Accordion.model.d.ts +0 -35
  833. package/dist/cjs/components/analytics-card/AnalyticsCard.model.d.ts +0 -1
  834. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.model.d.ts +0 -18
  835. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LazyCharts.d.ts +0 -2
  836. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LazyCharts.js +0 -1
  837. package/dist/cjs/components/bik-layout/Sidebar.model.d.ts +0 -27
  838. package/dist/cjs/components/image-cropper/BikImageCropper.model.d.ts +0 -6
  839. package/dist/cjs/components/input/Input.model.d.ts +0 -73
  840. package/dist/cjs/components/list-item/List.model.d.ts +0 -18
  841. package/dist/cjs/components/sample-button/SampleButton.model.d.ts +0 -17
  842. package/dist/cjs/components/stepper/Stepper.model.d.ts +0 -17
  843. package/dist/cjs/components/template-context-mapper/modalElements/modal.d.ts +0 -13
  844. package/dist/cjs/firebase/environment.d.ts +0 -58
  845. package/dist/cjs/firebase/environment.js +0 -1
  846. package/dist/cjs/firebase/firebaseUserFetcher.d.ts +0 -34
  847. package/dist/cjs/firebase/firebaseUserFetcher.js +0 -1
  848. package/dist/cjs/firebase/index.d.ts +0 -7
  849. package/dist/cjs/firebase/lazyFirebaseApp.d.ts +0 -22
  850. package/dist/cjs/firebase/lazyFirebaseApp.js +0 -1
  851. package/dist/cjs/firebase/lazyFirebaseMethods.d.ts +0 -589
  852. package/dist/cjs/firebase/lazyFirebaseMethods.js +0 -1
  853. package/dist/cjs/firebase/lazyFirestore.d.ts +0 -6
  854. package/dist/cjs/firebase/lazyFirestore.js +0 -1
  855. package/dist/cjs/firebase/lazyFirestoreLite.d.ts +0 -6
  856. package/dist/cjs/firebase/lazyFirestoreLite.js +0 -1
  857. package/dist/cjs/firebase/lazyStorage.d.ts +0 -5
  858. package/dist/cjs/firebase/lazyStorage.js +0 -1
  859. package/dist/cjs/request-executor/executor.d.ts +0 -99
  860. package/dist/cjs/request-executor/executor.js +0 -1
  861. package/dist/cjs/request-executor/index.d.ts +0 -2
  862. package/dist/cjs/request-executor/model.d.ts +0 -14
  863. package/dist/cjs/utils/logging/ErrorConstructor/ApiError.d.ts +0 -3
  864. package/dist/cjs/utils/logging/ErrorConstructor/ApiError.js +0 -1
  865. package/dist/cjs/utils/logging/ErrorConstructor/BroadcastFlowError.d.ts +0 -4
  866. package/dist/cjs/utils/logging/ErrorConstructor/BroadcastFlowError.js +0 -1
  867. package/dist/cjs/utils/logging/ErrorConstructor/CohortError.d.ts +0 -4
  868. package/dist/cjs/utils/logging/ErrorConstructor/CohortError.js +0 -1
  869. package/dist/cjs/utils/logging/ErrorConstructor/CustomError.d.ts +0 -3
  870. package/dist/cjs/utils/logging/ErrorConstructor/CustomError.js +0 -1
  871. package/dist/cjs/utils/logging/ErrorConstructor/ExcelUploadError.d.ts +0 -3
  872. package/dist/cjs/utils/logging/ErrorConstructor/ExcelUploadError.js +0 -1
  873. package/dist/cjs/utils/logging/ErrorConstructor/FirebaseCallError.d.ts +0 -3
  874. package/dist/cjs/utils/logging/ErrorConstructor/FirebaseCallError.js +0 -1
  875. package/dist/cjs/utils/logging/ErrorConstructor/FirebaseSubscriptionError.d.ts +0 -3
  876. package/dist/cjs/utils/logging/ErrorConstructor/FirebaseSubscriptionError.js +0 -1
  877. package/dist/cjs/utils/logging/ErrorConstructor/RechargeFailure.d.ts +0 -3
  878. package/dist/cjs/utils/logging/ErrorConstructor/RechargeFailure.js +0 -1
  879. package/dist/cjs/utils/logging/ErrorConstructor/WhatsappIntegrationError.d.ts +0 -3
  880. package/dist/cjs/utils/logging/ErrorConstructor/WhatsappIntegrationError.js +0 -1
  881. package/dist/cjs/utils/logging/Logger.d.ts +0 -24
  882. package/dist/cjs/utils/logging/Logger.js +0 -1
  883. package/dist/cjs/utils/logging/index.d.ts +0 -10
  884. package/dist/esm/components/QueryBuilder/types/QueryBuilderEnum.type.d.ts +0 -21
  885. package/dist/esm/components/QueryBuilder/types/QueryBuilderEnum.type.js +0 -1
  886. package/dist/esm/components/accordion/Accordion.model.d.ts +0 -35
  887. package/dist/esm/components/analytics-card/AnalyticsCard.model.d.ts +0 -1
  888. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.model.d.ts +0 -18
  889. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LazyCharts.d.ts +0 -2
  890. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LazyCharts.js +0 -1
  891. package/dist/esm/components/bik-layout/Sidebar.model.d.ts +0 -27
  892. package/dist/esm/components/image-cropper/BikImageCropper.model.d.ts +0 -6
  893. package/dist/esm/components/input/Input.model.d.ts +0 -73
  894. package/dist/esm/components/list-item/List.model.d.ts +0 -18
  895. package/dist/esm/components/sample-button/SampleButton.model.d.ts +0 -17
  896. package/dist/esm/components/stepper/Stepper.model.d.ts +0 -17
  897. package/dist/esm/components/template-context-mapper/modalElements/modal.d.ts +0 -13
  898. package/dist/esm/firebase/environment.d.ts +0 -58
  899. package/dist/esm/firebase/environment.js +0 -1
  900. package/dist/esm/firebase/firebaseUserFetcher.d.ts +0 -34
  901. package/dist/esm/firebase/firebaseUserFetcher.js +0 -1
  902. package/dist/esm/firebase/index.d.ts +0 -7
  903. package/dist/esm/firebase/lazyFirebaseApp.d.ts +0 -22
  904. package/dist/esm/firebase/lazyFirebaseApp.js +0 -1
  905. package/dist/esm/firebase/lazyFirebaseMethods.d.ts +0 -589
  906. package/dist/esm/firebase/lazyFirebaseMethods.js +0 -1
  907. package/dist/esm/firebase/lazyFirestore.d.ts +0 -6
  908. package/dist/esm/firebase/lazyFirestore.js +0 -1
  909. package/dist/esm/firebase/lazyFirestoreLite.d.ts +0 -6
  910. package/dist/esm/firebase/lazyFirestoreLite.js +0 -1
  911. package/dist/esm/firebase/lazyStorage.d.ts +0 -5
  912. package/dist/esm/firebase/lazyStorage.js +0 -1
  913. package/dist/esm/request-executor/executor.d.ts +0 -99
  914. package/dist/esm/request-executor/executor.js +0 -1
  915. package/dist/esm/request-executor/index.d.ts +0 -2
  916. package/dist/esm/request-executor/model.d.ts +0 -14
  917. package/dist/esm/utils/logging/ErrorConstructor/ApiError.d.ts +0 -3
  918. package/dist/esm/utils/logging/ErrorConstructor/ApiError.js +0 -1
  919. package/dist/esm/utils/logging/ErrorConstructor/BroadcastFlowError.d.ts +0 -4
  920. package/dist/esm/utils/logging/ErrorConstructor/BroadcastFlowError.js +0 -1
  921. package/dist/esm/utils/logging/ErrorConstructor/CohortError.d.ts +0 -4
  922. package/dist/esm/utils/logging/ErrorConstructor/CohortError.js +0 -1
  923. package/dist/esm/utils/logging/ErrorConstructor/CustomError.d.ts +0 -3
  924. package/dist/esm/utils/logging/ErrorConstructor/CustomError.js +0 -1
  925. package/dist/esm/utils/logging/ErrorConstructor/ExcelUploadError.d.ts +0 -3
  926. package/dist/esm/utils/logging/ErrorConstructor/ExcelUploadError.js +0 -1
  927. package/dist/esm/utils/logging/ErrorConstructor/FirebaseCallError.d.ts +0 -3
  928. package/dist/esm/utils/logging/ErrorConstructor/FirebaseCallError.js +0 -1
  929. package/dist/esm/utils/logging/ErrorConstructor/FirebaseSubscriptionError.d.ts +0 -3
  930. package/dist/esm/utils/logging/ErrorConstructor/FirebaseSubscriptionError.js +0 -1
  931. package/dist/esm/utils/logging/ErrorConstructor/RechargeFailure.d.ts +0 -3
  932. package/dist/esm/utils/logging/ErrorConstructor/RechargeFailure.js +0 -1
  933. package/dist/esm/utils/logging/ErrorConstructor/WhatsappIntegrationError.d.ts +0 -3
  934. package/dist/esm/utils/logging/ErrorConstructor/WhatsappIntegrationError.js +0 -1
  935. package/dist/esm/utils/logging/Logger.d.ts +0 -24
  936. package/dist/esm/utils/logging/Logger.js +0 -1
  937. package/dist/esm/utils/logging/index.d.ts +0 -10
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
3
- import { type SelectedCollectionsActions } from './reducers';
4
- import { type Collection, type FbStatusFetcherReturn, OUT_OF_STOCK_ACTION, type SelectedItems } from './type';
2
+ import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
3
+ import { Collection, FbStatusFetcherReturn, SelectedItems } from '.';
4
+ import { SelectedCollectionsActions } from './reducers';
5
+ import { OUT_OF_STOCK_ACTION } from './type';
5
6
  interface SelectedScreenInterface {
6
7
  selectedCollections: SelectedItems;
7
8
  selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
@@ -17,68 +17,3 @@ export declare enum ScreenName {
17
17
  SearchProducts = "searchProducts",
18
18
  Products = "products"
19
19
  }
20
- export type FbProductStatus = 'APPROVED' | 'REJECTED';
21
- export interface ProductVariant {
22
- name: string;
23
- price: string;
24
- image: string;
25
- quantity: number;
26
- skipSync?: boolean;
27
- displayOrder?: number | null;
28
- fbStatus?: FbProductStatus;
29
- description?: string;
30
- id?: string;
31
- actualPrice?: string;
32
- currency?: string;
33
- skuId?: string;
34
- }
35
- export interface Product {
36
- name: string;
37
- image: string;
38
- description?: string;
39
- variants?: {
40
- [key: string]: ProductVariant;
41
- };
42
- id?: string;
43
- handle?: string;
44
- currency?: string;
45
- }
46
- export interface Collection {
47
- name: string;
48
- image: string;
49
- isSmartCollection: boolean;
50
- products?: {
51
- [key: string]: Product;
52
- };
53
- }
54
- export type SelectedItems = {
55
- [key: string]: Collection;
56
- };
57
- export type SearchedItems = {
58
- collections: SelectedItems;
59
- products: SelectedItems;
60
- };
61
- export type CollectionFetcherReturn = Promise<{
62
- collections: {
63
- [key: string]: {
64
- image: string;
65
- name: string;
66
- isSmartCollection: string;
67
- };
68
- };
69
- }>;
70
- export type ProductFetcherReturn = Promise<{
71
- [key: string]: Product;
72
- }>;
73
- export type FbStatusFetcherReturn = Promise<{
74
- [key: string]: FbProductStatus;
75
- }>;
76
- /**
77
- * Extended type from Product Variant, which contains ids and name.
78
- */
79
- export type ProductVariantForRearrange = ProductVariant & {
80
- variantId: string;
81
- productId: string;
82
- collectionId: string;
83
- productName: string;
84
- };
@@ -1,6 +1,6 @@
1
- import type { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
2
- import type { CollectionsActions } from './reducers';
3
- import type { Collection, FbStatusFetcherReturn, Product, ProductVariant, SearchedItems, SelectedItems } from './type';
1
+ import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
2
+ import { Collection, FbStatusFetcherReturn, Product, ProductVariant, SearchedItems, SelectedItems } from './modal';
3
+ import { CollectionsActions } from './reducers';
4
4
  export declare const liftTheStateUp: (payload: any, data: any) => any;
5
5
  export declare function paginateSelectedItems(selectedItems: SelectedItems, limit: number, offset: number): {
6
6
  [key: string]: Collection;
@@ -1 +1 @@
1
- "use strict";function o(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}Object.defineProperty(exports,"__esModule",{value:!0});var t=o(require("lodash/cloneDeep"));function l(o,t,l){if(!o)return{};const i=Object.keys(o).slice(l,l+t),d={};return i.forEach((t=>{d[t]=o[t]})),d}const i=(o,t,l)=>{Object.keys(o).forEach((t=>{var l,i;const d=null!==(i=null===(l=o[t])||void 0===l?void 0:l.products)&&void 0!==i?i:{};Object.keys(d).forEach((l=>{var i,d,n,v;const s=null!==(v=null===(n=null===(d=null===(i=o[t])||void 0===i?void 0:i.products)||void 0===d?void 0:d[l])||void 0===n?void 0:n.variants)&&void 0!==v?v:{};Object.keys(s).forEach((i=>{var d,n,v,s;const e=null===(s=null===(v=null===(n=null===(d=o[t])||void 0===d?void 0:d.products)||void 0===n?void 0:n[l])||void 0===v?void 0:v.variants)||void 0===s?void 0:s[i];e&&!e.fbStatus&&(e.fbStatus="APPROVED")}))}))})),t({type:l,data:o})};exports.fetchFbStatusCollection=function(o,t,l,d,n){let v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"paged";n||i(o,d,v);const s=(o=>{const t=[];return Object.keys(o).forEach((l=>{var i,d;const n=null!==(d=null===(i=o[l])||void 0===i?void 0:i.products)&&void 0!==d?d:{};Object.keys(n).forEach((i=>{var d,n,v,s;const e=null!==(s=null===(v=null===(n=null===(d=o[l])||void 0===d?void 0:d.products)||void 0===n?void 0:n[i])||void 0===v?void 0:v.variants)&&void 0!==s?s:{};Object.keys(e).forEach((d=>{var n,v,s,e;const u=null===(e=null===(s=null===(v=null===(n=o[l])||void 0===n?void 0:n.products)||void 0===v?void 0:v[i])||void 0===s?void 0:s.variants)||void 0===e?void 0:e[d];(null==u?void 0:u.fbStatus)||t.push(d)}))}))})),t})(o);s.length>0&&n&&n(t,s,l).then((t=>{const l=Object.assign({},o);Object.keys(l).forEach((o=>{var i,d;const n=null!==(d=null===(i=l[o])||void 0===i?void 0:i.products)&&void 0!==d?d:{};Object.keys(n).forEach((i=>{var d,n,v,s;const e=null!==(s=null===(v=null===(n=null===(d=l[o])||void 0===d?void 0:d.products)||void 0===n?void 0:n[i])||void 0===v?void 0:v.variants)&&void 0!==s?s:{};Object.keys(e).forEach((d=>{var n,v,s,e;const u=null===(e=null===(s=null===(v=null===(n=l[o])||void 0===n?void 0:n.products)||void 0===v?void 0:v[i])||void 0===s?void 0:s.variants)||void 0===e?void 0:e[d];u&&"REJECTED"===t[d]?u.fbStatus="REJECTED":u&&"APPROVED"===t[d]&&(u.fbStatus="APPROVED")}))}))})),d({type:v,data:l})})).catch((t=>{console.error("Error in fbStatusFetcher",t),i(o,d,v)}))},exports.getSkuId=(o,t)=>{var l;if(t)return o.skuId;const i=Object.values(null!==(l=null==o?void 0:o.variants)&&void 0!==l?l:{});return 1===i.length&&i[0].name.includes(o.name)?i[0].skuId:""},exports.getVariantIdsToFetchAtProductLevel=(o,t)=>{const l=[];return Object.keys(null!=o?o:{}).forEach((i=>{var d,n;const v=null!==(n=null===(d=null==o?void 0:o[i])||void 0===d?void 0:d.variants)&&void 0!==n?n:{};Object.keys(v).forEach((d=>{var n,v,s,e,u;let r;r=t?null===(s=null===(v=null===(n=null==t?void 0:t.products)||void 0===n?void 0:n[i])||void 0===v?void 0:v.variants)||void 0===s?void 0:s[d]:null===(u=null===(e=null==o?void 0:o[i])||void 0===e?void 0:e.variants)||void 0===u?void 0:u[d],(null==r?void 0:r.fbStatus)||l.push(d)}))})),l},exports.isCollectionPartiallyChecked=function(o,t,l){var i,d,n,v;let s=0,e=0;if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]){const v=null!==(i=null==t?void 0:t.products)&&void 0!==i?i:{};s=Object.keys(v).length;const u=null!==(n=null===(d=l[o])||void 0===d?void 0:d.products)&&void 0!==n?n:{};e=Object.keys(u).length}else if(l[o]){const i=null==t?void 0:t.products;i&&Object.keys(i).forEach((o=>{var t;const l=null===(t=i[o])||void 0===t?void 0:t.variants;l&&Object.keys(l).forEach((o=>s+=1))}));const d=null===(v=l[o])||void 0===v?void 0:v.products;if(d&&Object.keys(d).forEach((o=>{var t;const l=null===(t=d[o])||void 0===t?void 0:t.variants;l&&Object.keys(l).forEach((o=>e+=1))})),s<=0&&e>0)return!1}return e>0&&s!==e},exports.isProductPartiallyChecked=(o,t,l,i,d)=>{var n,v,s,e,u,r,a,c,p,f,b,O,j,h,y,g,k,E,P;let S=0,V=0;if(null===(v=null===(n=null==l?void 0:l[o])||void 0===n?void 0:n.products)||void 0===v?void 0:v[t]){if(d)return!1;const n=(null===(u=null===(e=null===(s=null==l?void 0:l[o])||void 0===s?void 0:s.products)||void 0===e?void 0:e[t])||void 0===u?void 0:u.variants)||[];if(1===Object.keys(n).length)for(const i in n){const d=null===(a=null===(r=null==l?void 0:l[o])||void 0===r?void 0:r.products)||void 0===a?void 0:a[t],n=null===(b=null===(f=null===(p=null===(c=null==l?void 0:l[o])||void 0===c?void 0:c.products)||void 0===p?void 0:p[t])||void 0===f?void 0:f.variants)||void 0===b?void 0:b[i];if(null===(O=null==n?void 0:n.name)||void 0===O?void 0:O.includes(null!==(j=null==d?void 0:d.name)&&void 0!==j?j:""))return!1}if(null===(g=Object.keys((null===(y=null===(h=null==i?void 0:i.products)||void 0===h?void 0:h[t])||void 0===y?void 0:y.variants)||[]))||void 0===g||g.forEach((()=>V++)),Object.keys((null===(P=null===(E=null===(k=null==l?void 0:l[o])||void 0===k?void 0:k.products)||void 0===E?void 0:E[t])||void 0===P?void 0:P.variants)||[]).forEach((()=>S++)),S>0&&V!==S)return!0}return!1},exports.liftTheStateUp=(o,l)=>{const i=t.default(l);if(delete i.products,(o=Object.assign(Object.assign({},o),{catalogOnlyData:i})).productId&&l.products){const d=t.default(l.products[o.productId]);(null==d?void 0:d.variants)&&delete d.variants,o=Object.assign(Object.assign({},o),{catalogOnlyData:i,productOnlyData:d})}return o},exports.markVariantsAsApprovedProductsLevel=(o,t,l,i,d)=>{const n=Object.assign({},o);if(Object.keys(o).forEach((t=>{var l,i;Object.keys(null!==(i=null===(l=null==o?void 0:o[t])||void 0===l?void 0:l.variants)&&void 0!==i?i:{}).forEach((l=>{var i,d;const v=null===(i=null==o?void 0:o[t].variants)||void 0===i?void 0:i[l];v&&(v.fbStatus="APPROVED");const s=null===(d=null==n?void 0:n[t])||void 0===d?void 0:d.variants;s&&s[l]&&(s[l]=v)}))})),i&&d){const o=Object.assign({},i);o.products=n,d(o),t({type:"productsPaged",data:{collectionId:l,products:n}})}else t({type:"productsPaged",data:{collectionId:l,products:n}})},exports.paginateSelectedItems=function(o,t,i){var d;const n={};let v=0;for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const e=o[s],u=l(e.products,t,i-v);u&&Object.keys(u).length>0&&(n[s]=Object.assign(Object.assign({},e),{products:u})),v+=Object.keys(null!==(d=e.products)&&void 0!==d?d:{}).length}return n},exports.shouldShowVariant=o=>{const t=Object.keys(o.variants||[]);let l=!1;return!(t.length<=1)||(t.forEach((t=>{var i,d;l=null!==(d=null===(i=o.variants)||void 0===i?void 0:i[t].name.includes(o.name))&&void 0!==d&&d})),!l)},exports.updateAllVariantsForSelectedProducts=(o,l,i)=>Object.keys(o).reduce(((d,n)=>{var v;return n in l?(d[n]=Object.assign(Object.assign({},o[n]),{products:Object.keys(null!==(v=o[n].products)&&void 0!==v?v:{}).reduce(((d,v)=>{var s,e,u,r,a,c,p,f,b,O;const j=null===(s=l[n].products)||void 0===s?void 0:s[v],h=null===(r=null===(u=null===(e=null==i?void 0:i.products)||void 0===e?void 0:e[n])||void 0===u?void 0:u.products)||void 0===r?void 0:r[v];return j?d[v]=Object.assign(Object.assign({},(null===(a=o[n].products)||void 0===a?void 0:a[v])||{}),{allVariants:t.default(j.variants)}):h?d[v]=Object.assign(Object.assign({},(null===(c=o[n].products)||void 0===c?void 0:c[v])||{}),{allVariants:t.default(h.variants)}):(null===(f=null===(p=o[n].products)||void 0===p?void 0:p[v])||void 0===f?void 0:f.allVariants)&&(d[v]=Object.assign(Object.assign({},(null===(b=o[n].products)||void 0===b?void 0:b[v])||{}),{allVariants:t.default(null===(O=o[n].products)||void 0===O?void 0:O[v].allVariants)})),d}),{})}),d):d}),{});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("lodash");function l(o,l,t){if(!o)return{};const i=Object.keys(o).slice(t,t+l),n={};return i.forEach((l=>{n[l]=o[l]})),n}const t=(o,l,t)=>{Object.keys(o).forEach((l=>{var t,i;const n=null!==(i=null===(t=o[l])||void 0===t?void 0:t.products)&&void 0!==i?i:{};Object.keys(n).forEach((t=>{var i,n,d,v;const s=null!==(v=null===(d=null===(n=null===(i=o[l])||void 0===i?void 0:i.products)||void 0===n?void 0:n[t])||void 0===d?void 0:d.variants)&&void 0!==v?v:{};Object.keys(s).forEach((i=>{var n,d,v,s;const e=null===(s=null===(v=null===(d=null===(n=o[l])||void 0===n?void 0:n.products)||void 0===d?void 0:d[t])||void 0===v?void 0:v.variants)||void 0===s?void 0:s[i];e&&!e.fbStatus&&(e.fbStatus="APPROVED")}))}))})),l({type:t,data:o})};exports.fetchFbStatusCollection=function(o,l,i,n,d){let v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"paged";d||t(o,n,v);const s=(o=>{const l=[];return Object.keys(o).forEach((t=>{var i,n;const d=null!==(n=null===(i=o[t])||void 0===i?void 0:i.products)&&void 0!==n?n:{};Object.keys(d).forEach((i=>{var n,d,v,s;const e=null!==(s=null===(v=null===(d=null===(n=o[t])||void 0===n?void 0:n.products)||void 0===d?void 0:d[i])||void 0===v?void 0:v.variants)&&void 0!==s?s:{};Object.keys(e).forEach((n=>{var d,v,s,e;const u=null===(e=null===(s=null===(v=null===(d=o[t])||void 0===d?void 0:d.products)||void 0===v?void 0:v[i])||void 0===s?void 0:s.variants)||void 0===e?void 0:e[n];(null==u?void 0:u.fbStatus)||l.push(n)}))}))})),l})(o);s.length>0&&d&&d(l,s,i).then((l=>{const t=Object.assign({},o);Object.keys(t).forEach((o=>{var i,n;const d=null!==(n=null===(i=t[o])||void 0===i?void 0:i.products)&&void 0!==n?n:{};Object.keys(d).forEach((i=>{var n,d,v,s;const e=null!==(s=null===(v=null===(d=null===(n=t[o])||void 0===n?void 0:n.products)||void 0===d?void 0:d[i])||void 0===v?void 0:v.variants)&&void 0!==s?s:{};Object.keys(e).forEach((n=>{var d,v,s,e;const u=null===(e=null===(s=null===(v=null===(d=t[o])||void 0===d?void 0:d.products)||void 0===v?void 0:v[i])||void 0===s?void 0:s.variants)||void 0===e?void 0:e[n];u&&"REJECTED"===l[n]?u.fbStatus="REJECTED":u&&"APPROVED"===l[n]&&(u.fbStatus="APPROVED")}))}))})),n({type:v,data:t})})).catch((l=>{console.error("Error in fbStatusFetcher",l),t(o,n,v)}))},exports.getSkuId=(o,l)=>{var t;if(l)return o.skuId;const i=Object.values(null!==(t=null==o?void 0:o.variants)&&void 0!==t?t:{});return 1===i.length&&i[0].name.includes(o.name)?i[0].skuId:""},exports.getVariantIdsToFetchAtProductLevel=(o,l)=>{const t=[];return Object.keys(null!=o?o:{}).forEach((i=>{var n,d;const v=null!==(d=null===(n=null==o?void 0:o[i])||void 0===n?void 0:n.variants)&&void 0!==d?d:{};Object.keys(v).forEach((n=>{var d,v,s,e,u;let r;r=l?null===(s=null===(v=null===(d=null==l?void 0:l.products)||void 0===d?void 0:d[i])||void 0===v?void 0:v.variants)||void 0===s?void 0:s[n]:null===(u=null===(e=null==o?void 0:o[i])||void 0===e?void 0:e.variants)||void 0===u?void 0:u[n],(null==r?void 0:r.fbStatus)||t.push(n)}))})),t},exports.isCollectionPartiallyChecked=function(o,l,t){var i,n,d,v;let s=0,e=0;if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]){const v=null!==(i=null==l?void 0:l.products)&&void 0!==i?i:{};s=Object.keys(v).length;const u=null!==(d=null===(n=t[o])||void 0===n?void 0:n.products)&&void 0!==d?d:{};e=Object.keys(u).length}else if(t[o]){const i=null==l?void 0:l.products;i&&Object.keys(i).forEach((o=>{var l;const t=null===(l=i[o])||void 0===l?void 0:l.variants;t&&Object.keys(t).forEach((o=>s+=1))}));const n=null===(v=t[o])||void 0===v?void 0:v.products;if(n&&Object.keys(n).forEach((o=>{var l;const t=null===(l=n[o])||void 0===l?void 0:l.variants;t&&Object.keys(t).forEach((o=>e+=1))})),s<=0&&e>0)return!1}return e>0&&s!==e},exports.isProductPartiallyChecked=(o,l,t,i,n)=>{var d,v,s,e,u,r,c,a,p,b,O,f,j,h,y,g,k,E,P;let D=0,S=0;if(null===(v=null===(d=null==t?void 0:t[o])||void 0===d?void 0:d.products)||void 0===v?void 0:v[l]){if(n)return!1;const d=(null===(u=null===(e=null===(s=null==t?void 0:t[o])||void 0===s?void 0:s.products)||void 0===e?void 0:e[l])||void 0===u?void 0:u.variants)||[];if(1===Object.keys(d).length)for(const i in d){const n=null===(c=null===(r=null==t?void 0:t[o])||void 0===r?void 0:r.products)||void 0===c?void 0:c[l],d=null===(O=null===(b=null===(p=null===(a=null==t?void 0:t[o])||void 0===a?void 0:a.products)||void 0===p?void 0:p[l])||void 0===b?void 0:b.variants)||void 0===O?void 0:O[i];if(null===(f=null==d?void 0:d.name)||void 0===f?void 0:f.includes(null!==(j=null==n?void 0:n.name)&&void 0!==j?j:""))return!1}if(null===(g=Object.keys((null===(y=null===(h=null==i?void 0:i.products)||void 0===h?void 0:h[l])||void 0===y?void 0:y.variants)||[]))||void 0===g||g.forEach((()=>S++)),Object.keys((null===(P=null===(E=null===(k=null==t?void 0:t[o])||void 0===k?void 0:k.products)||void 0===E?void 0:E[l])||void 0===P?void 0:P.variants)||[]).forEach((()=>D++)),D>0&&S!==D)return!0}return!1},exports.liftTheStateUp=(l,t)=>{const i=o.cloneDeep(t);if(delete i.products,(l=Object.assign(Object.assign({},l),{catalogOnlyData:i})).productId&&t.products){const n=o.cloneDeep(t.products[l.productId]);(null==n?void 0:n.variants)&&delete n.variants,l=Object.assign(Object.assign({},l),{catalogOnlyData:i,productOnlyData:n})}return l},exports.markVariantsAsApprovedProductsLevel=(o,l,t,i,n)=>{const d=Object.assign({},o);if(Object.keys(o).forEach((l=>{var t,i;Object.keys(null!==(i=null===(t=null==o?void 0:o[l])||void 0===t?void 0:t.variants)&&void 0!==i?i:{}).forEach((t=>{var i,n;const v=null===(i=null==o?void 0:o[l].variants)||void 0===i?void 0:i[t];v&&(v.fbStatus="APPROVED");const s=null===(n=null==d?void 0:d[l])||void 0===n?void 0:n.variants;s&&s[t]&&(s[t]=v)}))})),i&&n){const o=Object.assign({},i);o.products=d,n(o),l({type:"productsPaged",data:{collectionId:t,products:d}})}else l({type:"productsPaged",data:{collectionId:t,products:d}})},exports.paginateSelectedItems=function(o,t,i){var n;const d={};let v=0;for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const e=o[s],u=l(e.products,t,i-v);u&&Object.keys(u).length>0&&(d[s]=Object.assign(Object.assign({},e),{products:u})),v+=Object.keys(null!==(n=e.products)&&void 0!==n?n:{}).length}return d},exports.shouldShowVariant=o=>{const l=Object.keys(o.variants||[]);let t=!1;return!(l.length<=1)||(l.forEach((l=>{var i,n;t=null!==(n=null===(i=o.variants)||void 0===i?void 0:i[l].name.includes(o.name))&&void 0!==n&&n})),!t)},exports.updateAllVariantsForSelectedProducts=(l,t,i)=>Object.keys(l).reduce(((n,d)=>{var v;return d in t?(n[d]=Object.assign(Object.assign({},l[d]),{products:Object.keys(null!==(v=l[d].products)&&void 0!==v?v:{}).reduce(((n,v)=>{var s,e,u,r,c,a,p,b,O,f;const j=null===(s=t[d].products)||void 0===s?void 0:s[v],h=null===(r=null===(u=null===(e=null==i?void 0:i.products)||void 0===e?void 0:e[d])||void 0===u?void 0:u.products)||void 0===r?void 0:r[v];return j?n[v]=Object.assign(Object.assign({},(null===(c=l[d].products)||void 0===c?void 0:c[v])||{}),{allVariants:o.cloneDeep(j.variants)}):h?n[v]=Object.assign(Object.assign({},(null===(a=l[d].products)||void 0===a?void 0:a[v])||{}),{allVariants:o.cloneDeep(h.variants)}):(null===(b=null===(p=l[d].products)||void 0===p?void 0:p[v])||void 0===b?void 0:b.allVariants)&&(n[v]=Object.assign(Object.assign({},(null===(O=l[d].products)||void 0===O?void 0:O[v])||{}),{allVariants:o.cloneDeep(null===(f=l[d].products)||void 0===f?void 0:f[v].allVariants)})),n}),{})}),n):n}),{});
@@ -1,6 +1,16 @@
1
1
  /// <reference types="react" />
2
- import type { SelectedCollectionsActions } from './reducers';
3
- import { OUT_OF_STOCK_ACTION, type ProductVariantForRearrange } from './type';
2
+ import { ProductVariant } from './modal';
3
+ import { SelectedCollectionsActions } from './reducers';
4
+ import { OUT_OF_STOCK_ACTION } from './type';
5
+ /**
6
+ * Extended type from Product Variant, which contains ids and name.
7
+ */
8
+ export type ProductVariantForRearrange = ProductVariant & {
9
+ variantId: string;
10
+ productId: string;
11
+ collectionId: string;
12
+ productName: string;
13
+ };
4
14
  /**
5
15
  * Props type for variant card in rearrange screen
6
16
  */
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import type { SelectedCollectionsActions } from './reducers';
3
- import { OUT_OF_STOCK_ACTION, type ProductVariantForRearrange } from './type';
2
+ import { SelectedCollectionsActions } from './reducers';
3
+ import { OUT_OF_STOCK_ACTION } from './type';
4
+ import { ProductVariantForRearrange } from './variant';
4
5
  /**
5
6
  * Props for list of variants - applicable both in list and grid view
6
7
  */
@@ -1,3 +1,18 @@
1
1
  /// <reference types="react" />
2
- import { SampleButtonProps } from './SampleButton.model';
2
+ export type Color = 'primary' | 'secondary' | 'success' | 'error' | 'warn';
3
+ export type Variant = 'solid' | 'outline' | 'text';
4
+ export interface SampleButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ /**
6
+ * The color of the Button.
7
+ *
8
+ * @default 'primary'
9
+ */
10
+ color?: Color;
11
+ /**
12
+ * The visual style of the Button.
13
+ *
14
+ * @default 'solid'
15
+ */
16
+ variant?: Variant;
17
+ }
3
18
  export declare const SampleButton: import("react").ForwardRefExoticComponent<SampleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { Color, Variant } from './SampleButton.model';
2
+ import type { Color, Variant } from './SampleButton';
3
3
  export declare const SampleButton: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
@@ -1,2 +1,2 @@
1
- import type { Color, Variant } from './SampleButton.model';
1
+ import type { Color, Variant } from './SampleButton';
2
2
  export declare function getTheme(color: Color, variant: Variant): import("@emotion/utils").SerializedStyles;
@@ -1,5 +1,5 @@
1
1
  import { ButtonProps } from '../button/model';
2
- import { InputVariant } from '../input/Input.model';
2
+ import { InputVariant } from '../input/Input';
3
3
  export interface SearchBarProps {
4
4
  width: string;
5
5
  isEnabled: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("../../constants/Theme.js");exports.BikSlider=n=>{let{min:r=0,max:o=100,defaultValue:s,onChange:i,step:l=1,disabled:u=!1}=n;const b=void 0!==s?s:r,[c,d]=t.useState(b),[g,h]=t.useState(!1),[m,p]=t.useState(!1),[x,f]=t.useState(!1),v=t.useRef(null),k=t.useRef(null),w=t.useMemo((()=>(e=>({container:{position:"relative",marginTop:"30px",height:"8px",width:"100%",cursor:e?"not-allowed":"pointer",opacity:e?.5:1},track:{position:"absolute",top:0,left:0,right:0,height:"8px",backgroundColor:"#E0E0E0",borderRadius:"4px"},filledTrack:{position:"absolute",top:0,left:0,height:"8px",backgroundColor:a.COLORS.background.brand,borderRadius:"4px",transition:"width 0.1s ease"},filledTrackDragging:{position:"absolute",top:0,left:0,height:"8px",backgroundColor:a.COLORS.background.brand,borderRadius:"4px",transition:"none"},thumb:{position:"absolute",top:"50%",width:"24px",height:"24px",backgroundColor:a.COLORS.background.brand,border:`2px solid ${a.COLORS.background.brand}`,borderRadius:"50%",transform:"translate(-50%, -50%)",cursor:e?"not-allowed":"grab",transition:"box-shadow 0.2s ease",outline:"none",zIndex:1},thumbDisabled:{cursor:"not-allowed"},valueLabel:{position:"absolute",bottom:"100%",left:"50%",marginBottom:"16px",width:"32px",height:"32px",backgroundColor:a.COLORS.background.brand,borderRadius:"50% 50% 50% 0",transform:"translate(0, 0) rotate(-45deg) scale(0)",transformOrigin:"bottom left",transition:"transform 0.2s ease",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},valueLabelVisible:{transform:"translate(0, 0) rotate(-45deg) scale(1)"},valueLabelText:{transform:"rotate(45deg)",color:"white",fontSize:"12px",lineHeight:1.2,fontWeight:500}}))(u)),[u]);t.useEffect((()=>{d(void 0!==s?s:r)}),[s,r]);const O=t.useCallback((e=>{if(!v.current)return r;const t=v.current.getBoundingClientRect(),a=Math.max(0,Math.min(1,(e-t.left)/t.width)),n=r+a*(o-r),s=Math.round(n/l)*l;return Math.max(r,Math.min(o,s))}),[r,o,l]),j=t.useCallback((e=>{if(u)return;e.preventDefault(),h(!0),f(!0);const t=O(e.clientX);d(t);const a=new Event("change",{bubbles:!0});i(a,t)}),[u,O,i]),L=t.useCallback((e=>{if(!g||u)return;const t=O(e.clientX);d(t);const a=new Event("change",{bubbles:!0});i(a,t)}),[g,u,O,i]),C=t.useCallback((()=>{h(!1),f(!1)}),[]),M=t.useCallback((e=>{if(u)return;let t=c;switch(e.key){case"ArrowLeft":case"ArrowDown":t=Math.max(r,c-l);break;case"ArrowRight":case"ArrowUp":t=Math.min(o,c+l);break;case"Home":t=r;break;case"End":t=o;break;default:return}e.preventDefault(),d(t);const a=new Event("change",{bubbles:!0});i(a,t)}),[u,c,r,o,l,i]);t.useEffect((()=>{if(g)return document.addEventListener("mousemove",L),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",C)}}),[g,L,C]);const E=(c-r)/(o-r)*100,R=isNaN(E)?0:Math.max(0,Math.min(100,E)),S=t.useMemo((()=>{const e=Object.assign({},w.thumb);return u?Object.assign(Object.assign({},e),w.thumbDisabled):(g?(e.boxShadow="0px 0px 0px 8px rgba(115, 29, 207, 0.5)",e.cursor="grabbing"):m&&(e.boxShadow="0px 0px 0px 8px rgba(115, 29, 207, 0.08)"),e.left=`${R}%`,e)}),[w.thumb,w.thumbDisabled,u,g,m,R]),y=t.useMemo((()=>{const e=Object.assign({},w.valueLabel);return x||m?Object.assign(Object.assign({},e),w.valueLabelVisible):e}),[w.valueLabel,w.valueLabelVisible,x,m]);return e.jsxs("div",Object.assign({ref:v,style:w.container,onMouseDown:j,role:"slider","aria-label":"bik slider","aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":c,tabIndex:u?-1:0,onKeyDown:M},{children:[e.jsx("div",{style:w.track}),e.jsx("div",{style:Object.assign(Object.assign({},g?w.filledTrackDragging:w.filledTrack),{width:`${R}%`})}),e.jsx("div",Object.assign({ref:k,style:S,onMouseEnter:()=>!u&&p(!0),onMouseLeave:()=>!u&&p(!1),onFocus:()=>!u&&f(!0),onBlur:()=>!u&&f(!1)},{children:e.jsx("div",Object.assign({style:y},{children:e.jsx("span",Object.assign({style:w.valueLabelText},{children:c}))}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("../../constants/Theme.js");exports.BikSlider=n=>{let{min:r=0,max:s=100,defaultValue:o,onChange:i,step:l=1,disabled:u=!1}=n;const c=void 0!==o?o:r,[b,d]=t.useState(c),[g,h]=t.useState(!1),[p,x]=t.useState(!1),[m,f]=t.useState(!1),v=t.useRef(null),w=t.useRef(null),k=(e=>({container:{position:"relative",marginTop:"30px",height:"8px",width:"100%",cursor:e?"not-allowed":"pointer",opacity:e?.5:1},track:{position:"absolute",top:0,left:0,right:0,height:"8px",backgroundColor:"#E0E0E0",borderRadius:"4px"},filledTrack:{position:"absolute",top:0,left:0,height:"8px",backgroundColor:a.COLORS.background.brand,borderRadius:"4px",transition:"width 0.1s ease"},thumb:{position:"absolute",top:"50%",width:"24px",height:"24px",backgroundColor:a.COLORS.background.brand,border:`2px solid ${a.COLORS.background.brand}`,borderRadius:"50%",transform:"translate(-50%, -50%)",cursor:e?"not-allowed":"grab",transition:"box-shadow 0.2s ease",outline:"none",zIndex:1},thumbDisabled:{cursor:"not-allowed"},valueLabel:{position:"absolute",bottom:"100%",left:"50%",marginBottom:"16px",width:"32px",height:"32px",backgroundColor:a.COLORS.background.brand,borderRadius:"50% 50% 50% 0",transform:"translate(0, 0) rotate(-45deg) scale(0)",transformOrigin:"bottom left",transition:"transform 0.2s ease",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},valueLabelVisible:{transform:"translate(0, 0) rotate(-45deg) scale(1)"},valueLabelText:{transform:"rotate(45deg)",color:"white",fontSize:"12px",lineHeight:1.2,fontWeight:500}}))(u);t.useEffect((()=>{d(void 0!==o?o:r)}),[o,r]);const j=t.useCallback((e=>{if(!v.current)return r;const t=v.current.getBoundingClientRect(),a=Math.max(0,Math.min(1,(e-t.left)/t.width)),n=r+a*(s-r),o=Math.round(n/l)*l;return Math.max(r,Math.min(s,o))}),[r,s,l]),O=t.useCallback((e=>{if(u)return;e.preventDefault(),h(!0),f(!0);const t=j(e.clientX);d(t);const a=new Event("change",{bubbles:!0});i(a,t)}),[u,j,i]),C=t.useCallback((e=>{if(!g||u)return;const t=j(e.clientX);d(t);const a=new Event("change",{bubbles:!0});i(a,t)}),[g,u,j,i]),L=t.useCallback((()=>{h(!1),f(!1)}),[]),E=t.useCallback((e=>{if(u)return;let t=b;switch(e.key){case"ArrowLeft":case"ArrowDown":t=Math.max(r,b-l);break;case"ArrowRight":case"ArrowUp":t=Math.min(s,b+l);break;case"Home":t=r;break;case"End":t=s;break;default:return}e.preventDefault(),d(t);const a=new Event("change",{bubbles:!0});i(a,t)}),[u,b,r,s,l,i]);t.useEffect((()=>{if(g)return document.addEventListener("mousemove",C),document.addEventListener("mouseup",L),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",L)}}),[g,C,L]);const M=(b-r)/(s-r)*100,y=isNaN(M)?0:Math.max(0,Math.min(100,M));return e.jsxs("div",Object.assign({ref:v,style:k.container,onMouseDown:O,role:"slider","aria-label":"bik slider","aria-valuemin":r,"aria-valuemax":s,"aria-valuenow":b,tabIndex:u?-1:0,onKeyDown:E},{children:[e.jsx("div",{style:k.track}),e.jsx("div",{style:Object.assign(Object.assign({},k.filledTrack),{width:`${y}%`})}),e.jsx("div",Object.assign({ref:w,style:(()=>{const e=Object.assign({},k.thumb);return u?Object.assign(Object.assign({},e),k.thumbDisabled):(g?(e.boxShadow="0px 0px 0px 8px rgba(115, 29, 207, 0.5)",e.cursor="grabbing"):p&&(e.boxShadow="0px 0px 0px 8px rgba(115, 29, 207, 0.08)"),e.left=`${y}%`,e)})(),onMouseEnter:()=>!u&&x(!0),onMouseLeave:()=>!u&&x(!1),onFocus:()=>!u&&f(!0),onBlur:()=>!u&&f(!1)},{children:e.jsx("div",Object.assign({style:(()=>{const e=Object.assign({},k.valueLabel);return m||p?Object.assign(Object.assign({},e),k.valueLabelVisible):e})()},{children:e.jsx("span",Object.assign({style:k.valueLabelText},{children:b}))}))}))]}))};
@@ -1,8 +1,24 @@
1
- import { EachStep } from './Stepper.model';
1
+ export type StepperStates = 'default' | 'completed' | 'error' | 'active' | 'inactive';
2
2
  export interface StepperProps {
3
3
  steps: EachStep[];
4
4
  activeStep: EachStep;
5
5
  onClickingEachStep: (step: EachStep) => void;
6
6
  hideHoverState?: boolean;
7
7
  }
8
+ export interface EachStep {
9
+ stepKey: string;
10
+ stepName: string;
11
+ isCompleted: boolean;
12
+ isError: boolean;
13
+ isInActive: boolean;
14
+ }
15
+ export interface SingleStepperProps {
16
+ index: number;
17
+ isLastElement: boolean;
18
+ eachStep: EachStep;
19
+ isActive: boolean;
20
+ onClickingStep: (step: EachStep) => void;
21
+ stepsCount: number;
22
+ hideHoverState?: boolean;
23
+ }
8
24
  export declare const Stepper: (stepperDetails: StepperProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { StepperStates } from './Stepper.model';
1
+ import { StepperStates } from './Stepper';
2
2
  export declare const StepperContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const SingleStepperChildContainer: import("styled-components").StyledComponent<"div", any, {
4
4
  selectedState: StepperStates;
@@ -1,4 +1,4 @@
1
- import { EachStep } from './Stepper.model';
1
+ import { EachStep } from './Stepper';
2
2
  export default class StepperService {
3
3
  updateSteps: (steps: EachStep[], stepToUpdate: EachStep, propertiesToUpdate: Partial<EachStep>) => EachStep[];
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { StepperStates } from './Stepper.model';
1
+ import type { StepperStates } from './Stepper';
2
2
  export declare function getTheme(step: StepperStates): {
3
3
  textColor: string;
4
4
  badgeColor: string;
@@ -1,13 +1,13 @@
1
- import type { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
2
- import type { VariableListInterfaceV2 } from "../add-variableV2/AddVariableV2";
3
- import type { WhatsAppCarouselTemplateVariables } from "../template-preview/models/WhatsappCarouselTemplate";
1
+ import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
2
+ import { VariableListInterfaceV2 } from "../add-variableV2/AddVariableV2";
3
+ import { CarouselProduct } from "./modalElements/EditWhatsAppCarouselTemplateV2";
4
+ import { WhatsAppCarouselTemplateVariables } from "../template-preview/models/WhatsappCarouselTemplate";
4
5
  import { CHANNEL_TYPE } from '../template-preview/models/Channels';
5
- import { CUSTOM_VARIABLE, type GlobalPlaceholderType } from '../template-preview/models/TemplateMeta';
6
- import type { AllTemplateTypes, AllTemplateVariables, NonNullTemplateTypes } from '../template-preview/models/types';
7
- import type { WebpushTemplateVariables } from '../template-preview/models/WebpushTemplate';
8
- import { type ExtrasWhatsapp, POD, type TemplateAnalyticsI, type WhatsAppPickerMeta, type WhatsAppTemplateVariables } from '../template-preview/models/WhatsAppTemplate';
9
- import type { VariableV3 } from '../variable-picker-v3/model';
10
- import { CarouselProduct } from './modalElements/modal';
6
+ import { CUSTOM_VARIABLE, GlobalPlaceholderType } from '../template-preview/models/TemplateMeta';
7
+ import { AllTemplateTypes, AllTemplateVariables, NonNullTemplateTypes } from '../template-preview/models/types';
8
+ import { WebpushTemplateVariables } from '../template-preview/models/WebpushTemplate';
9
+ import { ExtrasWhatsapp, POD, TemplateAnalyticsI, WhatsAppPickerMeta, WhatsAppTemplateVariables } from '../template-preview/models/WhatsAppTemplate';
10
+ import { VariableV3 } from '../variable-picker-v3/model';
11
11
  export interface TemplateContextMapperProps {
12
12
  selectedTemplate: NonNullTemplateTypes;
13
13
  closeDialog?: () => void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("lodash/cloneDeep"),l=require("react"),a=require("../../utils/StringUtils.js"),o=require("../../constants/Theme.js"),i=require("../modals/styledModal.js"),r=require("../template-preview/helpers/templateMiscHelper.js"),s=require("../template-preview/models/Channels.js"),n=require("../template-preview/models/WhatsAppTemplate.js"),d=require("./context/templateModalContext.js"),u=require("./modalElements/Footer.js"),c=require("./modalElements/TemplateAnalyticsComponent.js"),p=require("./modalElements/TemplateSelectModalContent.js"),v=require("./utils/convertPlaceholdersToBikDropdown.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var C=m(t);exports.TemplateContextMapper=t=>{var m,h,b,S,f,E,x,T;const{selectedTemplate:P,closeDialog:g,showVariableMapping:y,channel:I,htmlContent:j,templateVariables:D,onTemplateSelect:L,globalPlaceholders:w,showOnlyContent:A,whatsappSpecificPickerMeta:k,zIndex:M,showVariableModal:V,variableList:H,discountCode:N,setDiscountCode:O,onBackPress:q,enabledCustomText:B,variableListForImage:F,showSampleValues:_,disableEditVariable:W,pod:Y,extras:R,pickerConf:$,selectedCarouselProducts:z,disableEditExpiry:Q,cardWidth:U,onDeleteSelectedProducts:G,fileName:J,setFileName:K,hideDeviceContainerInPreview:X,maxCharLimit:Z,onDefaultVariableSelect:ee,skipDefaultVariableContent:te,disableDatePicker:le,disableCopyCode:ae,initialExpiryDateTime:oe,showDiscountCodeExpiryInfo:ie,footerButtonText:re,footerInfoText:se,templateAnalytics:ne}=t;l.useEffect((()=>{be(j)}),[j]);const de=r.determineCardIndex(I),ue=r.isItCarousal(I,P),ce=null==P?void 0:P.isProductCarouselType,[pe,ve]=l.useState(I===s.CHANNEL_TYPE.EMAIL||I==s.CHANNEL_TYPE.WEBPUSH||ue?"desktop":"mobile"),[me,Ce]=l.useState(!1),[he,be]=l.useState(j),[Se,fe]=l.useState(!1),[Ee,xe]=l.useState([]),[Te,Pe]=l.useState({}),[ge,ye]=l.useState(P),[Ie,je]=l.useState([]),[De,Le]=l.useState(null),[we,Ae]=l.useState(!1),[ke,Me]=l.useState(null!=D?D:[]),[Ve,He]=l.useState(!1),[Ne,Oe]=l.useState(ue?(null===(h=null===(m=null==ge?void 0:ge.mapping)||void 0===m?void 0:m.body)||void 0===h?void 0:h.length)?-1:0:-1),[qe,Be]=l.useState([]),[Fe,_e]=l.useState(void 0),We=l.useRef(null),[Ye,Re]=l.useState(!1),[$e,ze]=l.useState(!1),[Qe,Ue]=l.useState(!1),[Ge,Je]=l.useState(!0),[Ke,Xe]=l.useState(!0),[Ze,et]=l.useState({});l.useEffect((()=>{z?Be(z):ce&&Be([])}),[z]),l.useEffect((()=>{var e;if(!we&&ce&&(!z||0===Be.length)){const t=null===(e=null==ge?void 0:ge.components)||void 0===e?void 0:e[de].cards,l=[];null==t||t.forEach((e=>{var t;null===(t=null==e?void 0:e.components)||void 0===t||t.forEach((e=>{var t,a,o;"HEADER"===e.type&&l.push(null!==(o=null===(a=null===(t=e.example)||void 0===t?void 0:t.header_handle)||void 0===a?void 0:a[0])&&void 0!==o?o:"")}))})),je(l),Ae(!0)}}),[we]);const tt=l.useMemo((()=>v.convertPlaceholdersToBikDropdown(w)),[w]);return l.useEffect((()=>{_e(C.default(H))}),[H]),(null==ne?void 0:ne.show)&&Ge&&ne.templateQuality&&Object.values(n.TEMPLATE_QUALITY).find((e=>e===String(ne.templateQuality)))?e.jsx(c.TemplateAnalyticsComponent,{headingTitle:null==ge?void 0:ge.label,headingSubtitle:I===s.CHANNEL_TYPE.WHATSAPP?`${a.default.capitaliseFirstLetterOfString(null!==(b=null==ge?void 0:ge.category)&&void 0!==b?b:"")} • ${null!==(S=null==ge?void 0:ge.templateCategory)&&void 0!==S?S:""}`:"",templateAnalytics:ne,analyticsData:ne.data,onClose:()=>{null==g||g(),Je(!1),Xe(!1)},onCancel:()=>{Je(!1),Xe(!1)},onProceed:()=>{Je(!1),Xe(!0)},templateId:(null==ge?void 0:ge.templateId)||""}):e.jsx(d.TemplateModalContext.Provider,Object.assign({value:{hideFooterButton:Qe,setHideFooterButton:Ue,hideCrossButton:$e,setHideCrossButton:ze,variableList:Fe,setVariableList:_e,variableCallback:De,setVariableCallback:Le,showVariablePicker:me,setShowVariablePicker:Ce,template:ge,setTemplate:ye,device:pe,setDevice:ve,display_content:he,setDisplayContent:be,originalVariableList:ke,setOriginalVariableList:Me,isError:Se,setIsError:fe,channel:I,globalNormalizedPlaceholders:tt,templateSelectionTriggered:Ve,setTemplateSelectionTriggered:He,enabledCustomText:B,disableEditVariable:W,pod:Y,extras:R,isWhatsappCarousel:ue,selectedCarouselIndex:Ne,setSelectedCarouselIndex:Oe,isProductCarouselType:ce,templateErrorIndexes:Te,cardCount:ue?null===(E=null===(f=P.components)||void 0===f?void 0:f[de].cards)||void 0===E?void 0:E.length:void 0,errorIndexes:Ee,setErrorIndexes:xe,pickerConf:$,carouselProducts:qe,setCarouselProducts:Be,disableEditExpiry:Q,cardWidth:U,cardImages:Ie,onDeleteSelectedProducts:G,hideDeviceContainerInPreview:X,sliderRef:We,isCarouselHovered:Ye,setIsCarouselHovered:Re,maxCharLimit:Z,ctaOptionsErrors:Ze,setCtaOptionsErrors:et,onDefaultVariableSelect:ee,disableDatePicker:le,disableCopyCode:ae,initialExpiryDateTime:oe,showDiscountCodeExpiryInfo:ie,cardIndex:de}},{children:A?e.jsx(p.default,{variableListFromProps:H,channel:s.CHANNEL_TYPE.EMAIL,hideHeader:!0}):e.jsxs(i.StyledModal,Object.assign({hideCrossButton:$e,zIndex:M,centralContainerStyles:{width:ue?900:I===s.CHANNEL_TYPE.EMAIL&&y?1e3:800},open:Ke,onClose:()=>{Xe(!1),null==g||g()},headingTitle:null==ge?void 0:ge.label,headingSubtitle:I===s.CHANNEL_TYPE.WHATSAPP||r.isRCSChannel(I)?`${a.default.capitaliseFirstLetterOfString(null!==(x=null==ge?void 0:ge.category)&&void 0!==x?x:"")} • ${null!==(T=null==ge?void 0:ge.templateCategory)&&void 0!==T?T:""}`:"",onBackPress:()=>{if(null==ne?void 0:ne.show)return Je(!0),void Xe(!1);null==q||q()},modalHeaderStyles:{borderBottom:`1px solid ${o.COLORS.stroke.primary}`}},{children:[e.jsx(p.default,{variableListFromProps:H,showSampleValues:_,showVariableMapping:y,channel:I,whatsappSpecificPickerMeta:k,showVariableModal:V,discountCode:N,setDiscountCode:O,variableListForImage:F&&(null==F?void 0:F.length)>0?F:Fe,fileName:J,setFileName:e=>{null==K||K(e)},skipDefaultVariableContent:te}),L?e.jsx(u.default,{isWhatsappCarousel:null!=ue&&ue,onSelect:function(){var e;if((null==qe?void 0:qe.length)<1&&ce)return void fe(!0);if(Object.keys(Ze).length>0&&Y!==n.POD.CHATBOT)return void fe(!0);const t=null==L?void 0:L(ge,ke,null!=he?he:"",qe);Pe(null!==(e=null==t?void 0:t.templateErrorIndexes)&&void 0!==e?e:{body:[],buttons:[]}),(null==t?void 0:t.errorIndexes)||(null==t?void 0:t.error)?((null==t?void 0:t.errorIndexes)&&xe(t.errorIndexes),(null==t?void 0:t.error)&&fe(!!(null==t?void 0:t.error))):He(!0)},footerButtonText:re,footerInfoText:se}):e.jsx(e.Fragment,{})]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("lodash"),l=require("react"),a=require("../../utils/StringUtils.js"),o=require("../../constants/Theme.js"),i=require("../modals/styledModal.js"),r=require("../template-preview/helpers/templateMiscHelper.js"),s=require("../template-preview/models/Channels.js"),n=require("../template-preview/models/WhatsAppTemplate.js"),d=require("./context/templateModalContext.js"),u=require("./modalElements/Footer.js"),c=require("./modalElements/TemplateAnalyticsComponent.js"),p=require("./modalElements/TemplateSelectModalContent.js"),v=require("./utils/convertPlaceholdersToBikDropdown.js");exports.TemplateContextMapper=m=>{var C,h,b,S,E,x,f,T;const{selectedTemplate:P,closeDialog:g,showVariableMapping:y,channel:I,htmlContent:D,templateVariables:L,onTemplateSelect:j,globalPlaceholders:w,showOnlyContent:A,whatsappSpecificPickerMeta:k,zIndex:M,showVariableModal:V,variableList:H,discountCode:N,setDiscountCode:O,onBackPress:q,enabledCustomText:B,variableListForImage:F,showSampleValues:_,disableEditVariable:W,pod:Y,extras:R,pickerConf:$,selectedCarouselProducts:z,disableEditExpiry:Q,cardWidth:U,onDeleteSelectedProducts:G,fileName:J,setFileName:K,hideDeviceContainerInPreview:X,maxCharLimit:Z,onDefaultVariableSelect:ee,skipDefaultVariableContent:te,disableDatePicker:le,disableCopyCode:ae,initialExpiryDateTime:oe,showDiscountCodeExpiryInfo:ie,footerButtonText:re,footerInfoText:se,templateAnalytics:ne}=m;l.useEffect((()=>{be(D)}),[D]);const de=r.determineCardIndex(I),ue=r.isItCarousal(I,P),ce=null==P?void 0:P.isProductCarouselType,[pe,ve]=l.useState(I===s.CHANNEL_TYPE.EMAIL||I==s.CHANNEL_TYPE.WEBPUSH||ue?"desktop":"mobile"),[me,Ce]=l.useState(!1),[he,be]=l.useState(D),[Se,Ee]=l.useState(!1),[xe,fe]=l.useState([]),[Te,Pe]=l.useState({}),[ge,ye]=l.useState(P),[Ie,De]=l.useState([]),[Le,je]=l.useState(null),[we,Ae]=l.useState(!1),[ke,Me]=l.useState(null!=L?L:[]),[Ve,He]=l.useState(!1),[Ne,Oe]=l.useState(ue?(null===(h=null===(C=null==ge?void 0:ge.mapping)||void 0===C?void 0:C.body)||void 0===h?void 0:h.length)?-1:0:-1),[qe,Be]=l.useState([]),[Fe,_e]=l.useState(void 0),We=l.useRef(null),[Ye,Re]=l.useState(!1),[$e,ze]=l.useState(!1),[Qe,Ue]=l.useState(!1),[Ge,Je]=l.useState(!0),[Ke,Xe]=l.useState(!0),[Ze,et]=l.useState({});l.useEffect((()=>{z?Be(z):ce&&Be([])}),[z]),l.useEffect((()=>{var e;if(!we&&ce&&(!z||0===Be.length)){const t=null===(e=null==ge?void 0:ge.components)||void 0===e?void 0:e[de].cards,l=[];null==t||t.forEach((e=>{var t;null===(t=null==e?void 0:e.components)||void 0===t||t.forEach((e=>{var t,a,o;"HEADER"===e.type&&l.push(null!==(o=null===(a=null===(t=e.example)||void 0===t?void 0:t.header_handle)||void 0===a?void 0:a[0])&&void 0!==o?o:"")}))})),De(l),Ae(!0)}}),[we]);const tt=l.useMemo((()=>v.convertPlaceholdersToBikDropdown(w)),[w]);return l.useEffect((()=>{_e(t.cloneDeep(H))}),[H]),(null==ne?void 0:ne.show)&&Ge&&ne.templateQuality&&Object.values(n.TEMPLATE_QUALITY).find((e=>e===String(ne.templateQuality)))?e.jsx(c.TemplateAnalyticsComponent,{headingTitle:null==ge?void 0:ge.label,headingSubtitle:I===s.CHANNEL_TYPE.WHATSAPP?`${a.default.capitaliseFirstLetterOfString(null!==(b=null==ge?void 0:ge.category)&&void 0!==b?b:"")} • ${null!==(S=null==ge?void 0:ge.templateCategory)&&void 0!==S?S:""}`:"",templateAnalytics:ne,analyticsData:ne.data,onClose:()=>{null==g||g(),Je(!1),Xe(!1)},onCancel:()=>{Je(!1),Xe(!1)},onProceed:()=>{Je(!1),Xe(!0)},templateId:(null==ge?void 0:ge.templateId)||""}):e.jsx(d.TemplateModalContext.Provider,Object.assign({value:{hideFooterButton:Qe,setHideFooterButton:Ue,hideCrossButton:$e,setHideCrossButton:ze,variableList:Fe,setVariableList:_e,variableCallback:Le,setVariableCallback:je,showVariablePicker:me,setShowVariablePicker:Ce,template:ge,setTemplate:ye,device:pe,setDevice:ve,display_content:he,setDisplayContent:be,originalVariableList:ke,setOriginalVariableList:Me,isError:Se,setIsError:Ee,channel:I,globalNormalizedPlaceholders:tt,templateSelectionTriggered:Ve,setTemplateSelectionTriggered:He,enabledCustomText:B,disableEditVariable:W,pod:Y,extras:R,isWhatsappCarousel:ue,selectedCarouselIndex:Ne,setSelectedCarouselIndex:Oe,isProductCarouselType:ce,templateErrorIndexes:Te,cardCount:ue?null===(x=null===(E=P.components)||void 0===E?void 0:E[de].cards)||void 0===x?void 0:x.length:void 0,errorIndexes:xe,setErrorIndexes:fe,pickerConf:$,carouselProducts:qe,setCarouselProducts:Be,disableEditExpiry:Q,cardWidth:U,cardImages:Ie,onDeleteSelectedProducts:G,hideDeviceContainerInPreview:X,sliderRef:We,isCarouselHovered:Ye,setIsCarouselHovered:Re,maxCharLimit:Z,ctaOptionsErrors:Ze,setCtaOptionsErrors:et,onDefaultVariableSelect:ee,disableDatePicker:le,disableCopyCode:ae,initialExpiryDateTime:oe,showDiscountCodeExpiryInfo:ie,cardIndex:de}},{children:A?e.jsx(p.default,{variableListFromProps:H,channel:s.CHANNEL_TYPE.EMAIL,hideHeader:!0}):e.jsxs(i.StyledModal,Object.assign({hideCrossButton:$e,zIndex:M,centralContainerStyles:{width:ue?900:I===s.CHANNEL_TYPE.EMAIL&&y?1e3:800},open:Ke,onClose:()=>{Xe(!1),null==g||g()},headingTitle:null==ge?void 0:ge.label,headingSubtitle:I===s.CHANNEL_TYPE.WHATSAPP||r.isRCSChannel(I)?`${a.default.capitaliseFirstLetterOfString(null!==(f=null==ge?void 0:ge.category)&&void 0!==f?f:"")} • ${null!==(T=null==ge?void 0:ge.templateCategory)&&void 0!==T?T:""}`:"",onBackPress:()=>{if(null==ne?void 0:ne.show)return Je(!0),void Xe(!1);null==q||q()},modalHeaderStyles:{borderBottom:`1px solid ${o.COLORS.stroke.primary}`}},{children:[e.jsx(p.default,{variableListFromProps:H,showSampleValues:_,showVariableMapping:y,channel:I,whatsappSpecificPickerMeta:k,showVariableModal:V,discountCode:N,setDiscountCode:O,variableListForImage:F&&(null==F?void 0:F.length)>0?F:Fe,fileName:J,setFileName:e=>{null==K||K(e)},skipDefaultVariableContent:te}),j?e.jsx(u.default,{isWhatsappCarousel:null!=ue&&ue,onSelect:function(){var e;if((null==qe?void 0:qe.length)<1&&ce)return void Ee(!0);if(Object.keys(Ze).length>0&&Y!==n.POD.CHATBOT)return void Ee(!0);const t=null==j?void 0:j(ge,ke,null!=he?he:"",qe);Pe(null!==(e=null==t?void 0:t.templateErrorIndexes)&&void 0!==e?e:{body:[],buttons:[]}),(null==t?void 0:t.errorIndexes)||(null==t?void 0:t.error)?((null==t?void 0:t.errorIndexes)&&fe(t.errorIndexes),(null==t?void 0:t.error)&&Ee(!!(null==t?void 0:t.error))):He(!0)},footerButtonText:re,footerInfoText:se}):e.jsx(e.Fragment,{})]}))}))};
@@ -1,13 +1,13 @@
1
- import type { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
2
- import type { VariableV3 } from "../../../helpers";
1
+ import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
2
+ import { VariableV3 } from "../../../helpers";
3
3
  import React, { LegacyRef } from 'react';
4
4
  import Slider from 'react-slick';
5
- import type { VariableListInterfaceV2 } from "../../add-variableV2/AddVariableV2";
5
+ import { VariableListInterfaceV2 } from "../../add-variableV2";
6
+ import { CarouselProduct } from "../modalElements/EditWhatsAppCarouselTemplateV2";
6
7
  import { CHANNEL_TYPE } from "../../template-preview/models/Channels";
7
- import type { globalNormalizedPlaceholdersType } from "../../template-preview/models/TemplateMeta";
8
- import type { AllTemplateTypes, AllTemplateVariables } from "../../template-preview/models/types";
9
- import type { ExtrasWhatsapp } from "../../template-preview/models/WhatsAppTemplate";
10
- import { CarouselProduct } from '../modalElements/modal';
8
+ import { globalNormalizedPlaceholdersType } from "../../template-preview/models/TemplateMeta";
9
+ import { AllTemplateTypes, AllTemplateVariables } from "../../template-preview/models/types";
10
+ import { ExtrasWhatsapp } from "../../template-preview/models/WhatsAppTemplate";
11
11
  export type DEVICE_TYPES = 'desktop' | 'mobile';
12
12
  export declare const TemplateModalContext: React.Context<{
13
13
  showDiscountCodeExpiryInfo?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import type { VariableListInterfaceV2 } from "../../add-variableV2/AddVariableV2";
1
+ import { VariableListInterfaceV2 } from "../../add-variableV2/AddVariableV2";
2
2
  export type AdditionalVariableProps = {
3
3
  variableList?: VariableListInterfaceV2[];
4
4
  categoryDisplayName: string;
@@ -1,8 +1,6 @@
1
- import type { VariableListInterfaceV2 } from "../../add-variableV2/AddVariableV2";
2
- import type { CUSTOM_VARIABLE } from "../../template-preview/models/TemplateMeta";
3
- import type { AllTemplateVariables } from "../../template-preview/models/types";
4
- import type { WebPushTemplateComponent, WebpushTemplateType } from "../../template-preview/models/WebpushTemplate";
5
- import { BUTTON_TYPE } from "../../template-preview/models/WhatsAppTemplate";
1
+ import { VariableListInterfaceV2 } from "../../add-variableV2";
2
+ import { AllTemplateVariables, BUTTON_TYPE, CUSTOM_VARIABLE } from "../../template-preview";
3
+ import { WebPushTemplateComponent, WebpushTemplateType } from "../../template-preview/models/WebpushTemplate";
6
4
  declare const useWebPushTemplate: () => {
7
5
  processWebpushTemplate: (template: WebpushTemplateType, variableList: VariableListInterfaceV2[], originalVar?: AllTemplateVariables, disableEditVariable?: boolean) => Promise<{
8
6
  templateVariableMapping: {
@@ -51,7 +49,7 @@ declare const useWebPushTemplate: () => {
51
49
  redirectionLink?: string[] | undefined;
52
50
  } | undefined;
53
51
  components: WebPushTemplateComponent;
54
- whatsappSpecificPickerMeta?: import("../../template-preview/models/WhatsAppTemplate").WhatsAppPickerMeta | undefined;
52
+ whatsappSpecificPickerMeta?: import("../../template-preview").WhatsAppPickerMeta | undefined;
55
53
  };
56
54
  }>;
57
55
  isValidUrl: (url: string) => boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../_virtual/_tslib.js"),e=require("../../template-preview/constants/TemplateConstants.js"),i=require("../../template-preview/models/WhatsAppTemplate.js"),l=require("../../../utils/variableUtils.js");exports.default=()=>{function n(t,e,i,n){const o=e.map(((e,o)=>{const u=a(e);if(n)return{variableName:e,isEditableVariable:!1,updatedValue:e,index:o,variableValue:e,type:"string"};const s=function(t,e,i){const n=i&&i.length?i:l.extractVariables(t);if(!n||!n.length)return[];const a=[];return n.forEach(((t,i)=>{const l=r(e,`{{${t}}}`);if(l){const{actualValue:t,defaultValue:e}=l,n="{{custom.text}}"===t||"{{custom.url}}"===t;a.push({editable:n,variableVal:e,editableDefaultValues:e,variableName:t,idx:i})}})),a}(u?e:i,t);if(s.length>0){const t=s[0];return{variableName:t.variableName,isEditableVariable:!0,updatedValue:(null==t?void 0:t.updatedValue)?null==t?void 0:t.updatedValue:u?t.variableName:e,index:o,variableValue:t.variableVal,type:"string"}}return null})).filter((t=>null!==t));return o}const a=t=>t.includes("{{")&&t.includes("}}"),o=(t,e)=>t&&t.length?t.flatMap(((t,i)=>{var n;return a(t)?t.includes("editableVariable")?(null===(n=null==e?void 0:e[i])||void 0===n?void 0:n.value)||t:l.extractVariables(t).map((t=>`{{${t}}}`))||[]:t})):[];const r=(t,e)=>{for(const i of t)for(const t in i.variables){const l=i.variables[t];if(l.actualValue===e||e.includes("editableVariable")&&l.actualValue.includes("custom.text"))return l}return null};return{processWebpushTemplate:function(r,u,s,d){var b,c,v,p,f,m,L,V;return t.__awaiter(this,void 0,void 0,(function*(){const t=Object.assign({},r);t.components=function(t){let e;if("string"==typeof t)try{e=JSON.parse(t)}catch(t){console.error("Error parsing webpush component JSON:",t),e={}}else e=t;return e}(t.components);const{components:{title:h,body:g,buttons:y,icon:_,image:x},webpushBroadcastConfig:C}=t;let w={title:o(null!==(b=null==C?void 0:C.title)&&void 0!==b?b:[]),body:o(null!==(c=null==C?void 0:C.body)&&void 0!==c?c:[],null==g?void 0:g.variables),buttonsW:null!==(v=null==C?void 0:C.buttons)&&void 0!==v?v:[]};if(!t.webpushBroadcastConfig){const i=null!==(p=null==g?void 0:g.text)&&void 0!==p?p:"string"==typeof g?g:"",n=y&&(null==y?void 0:y.length)?y.map((t=>(null==t?void 0:t.websiteLink)==e.CUSTOM_URL_PLACEHOLDER?null==t?void 0:t.redirectionLink:null==t?void 0:t.websiteLink)).filter((t=>void 0!==t)):[],a=l.extractVariables(i).map(((t,e)=>{var i,l;return t.includes("editableVariable")?(null===(l=null===(i=null==g?void 0:g.variables)||void 0===i?void 0:i[e])||void 0===l?void 0:l.value)||t:`{{${t}}}`}));w={title:l.extractVariables(h).map((t=>`{{${t}}}`)),body:a,buttonsW:[]};const o={title:null!==(f=w.title)&&void 0!==f?f:[],body:null!==(m=w.body)&&void 0!==m?m:[],buttons:n,icon:_?[_]:void 0,image:x?[x]:void 0,redirectionLink:(null==g?void 0:g.redirectionLink)?[null==g?void 0:g.redirectionLink]:[]};t.webpushBroadcastConfig=o}const E=y&&y.length?y.map(((t,l)=>({type:i.BUTTON_TYPE.URL,text:null==t?void 0:t.text,url:"https://d.bik.ai/{{1}}",example:w.buttonsW&&w.buttonsW.length?a(w.buttonsW[l])?[""]:[w.buttonsW[l]]:t.redirectionLink?[t.redirectionLink]:void 0,buttonVariable:w.buttonsW&&w.buttonsW.length?a(w.buttonsW[l])?w.buttonsW[l]:e.CUSTOM_URL_PLACEHOLDER_VAR:t.websiteLink?t.websiteLink==e.CUSTOM_URL_PLACEHOLDER?e.CUSTOM_URL_PLACEHOLDER_VAR:t.websiteLink:e.CUSTOM_URL_PLACEHOLDER_VAR,index:l}))):[],O={title:n(u,w.title,h,d),body:n(u,w.body,(null==g?void 0:g.text)||"",d),buttons:E};return{templateVariableMapping:{title:(null===(L=null==s?void 0:s.title)||void 0===L?void 0:L.length)?s.title:O.title,body:(null===(V=null==s?void 0:s.body)||void 0===V?void 0:V.length)?s.body:O.body,buttons:O.buttons,icon:[],header:[]},webpushBroadcastConfig:t.webpushBroadcastConfig,template:t}}))},isValidUrl:t=>{try{return new URL(t),!0}catch(t){return!1}}}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js");require("../../template-preview/TemplatePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js"),require("../../../constants/Theme.js"),require("../../curtain/CurtainHelper.js"),require("../../variable-picker-v3/model.js"),require("../../template-preview/models/TemplateMeta.js");var t=require("../../template-preview/models/WhatsAppTemplate.js");require("../../template-preview/models/Channels.js");var i=require("../../template-preview/constants/TemplateConstants.js"),l=require("../../../utils/variableUtils.js");exports.default=()=>{function n(e,t,i,n){const r=t.map(((t,r)=>{const u=a(t);if(n)return{variableName:t,isEditableVariable:!1,updatedValue:t,index:r,variableValue:t,type:"string"};const s=function(e,t,i){const n=i&&i.length?i:l.extractVariables(e);if(!n||!n.length)return[];const a=[];return n.forEach(((e,i)=>{const l=o(t,`{{${e}}}`);if(l){const{actualValue:e,defaultValue:t}=l,n="{{custom.text}}"===e||"{{custom.url}}"===e;a.push({editable:n,variableVal:t,editableDefaultValues:t,variableName:e,idx:i})}})),a}(u?t:i,e);if(s.length>0){const e=s[0];return{variableName:e.variableName,isEditableVariable:!0,updatedValue:(null==e?void 0:e.updatedValue)?null==e?void 0:e.updatedValue:u?e.variableName:t,index:r,variableValue:e.variableVal,type:"string"}}return null})).filter((e=>null!==e));return r}const a=e=>e.includes("{{")&&e.includes("}}"),r=(e,t)=>e&&e.length?e.flatMap(((e,i)=>{var n;return a(e)?e.includes("editableVariable")?(null===(n=null==t?void 0:t[i])||void 0===n?void 0:n.value)||e:l.extractVariables(e).map((e=>`{{${e}}}`))||[]:e})):[];const o=(e,t)=>{for(const i of e)for(const e in i.variables){const l=i.variables[e];if(l.actualValue===t||t.includes("editableVariable")&&l.actualValue.includes("custom.text"))return l}return null};return{processWebpushTemplate:function(o,u,s,d){var b,v,c,p,m,h,f,L;return e.__awaiter(this,void 0,void 0,(function*(){const e=Object.assign({},o);e.components=function(e){let t;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){console.error("Error parsing webpush component JSON:",e),t={}}else t=e;return t}(e.components);const{components:{title:V,body:g,buttons:w,icon:y,image:_},webpushBroadcastConfig:C}=e;let x={title:r(null!==(b=null==C?void 0:C.title)&&void 0!==b?b:[]),body:r(null!==(v=null==C?void 0:C.body)&&void 0!==v?v:[],null==g?void 0:g.variables),buttonsW:null!==(c=null==C?void 0:C.buttons)&&void 0!==c?c:[]};if(!e.webpushBroadcastConfig){const t=null!==(p=null==g?void 0:g.text)&&void 0!==p?p:"string"==typeof g?g:"",n=w&&(null==w?void 0:w.length)?w.map((e=>(null==e?void 0:e.websiteLink)==i.CUSTOM_URL_PLACEHOLDER?null==e?void 0:e.redirectionLink:null==e?void 0:e.websiteLink)).filter((e=>void 0!==e)):[],a=l.extractVariables(t).map(((e,t)=>{var i,l;return e.includes("editableVariable")?(null===(l=null===(i=null==g?void 0:g.variables)||void 0===i?void 0:i[t])||void 0===l?void 0:l.value)||e:`{{${e}}}`}));x={title:l.extractVariables(V).map((e=>`{{${e}}}`)),body:a,buttonsW:[]};const r={title:null!==(m=x.title)&&void 0!==m?m:[],body:null!==(h=x.body)&&void 0!==h?h:[],buttons:n,icon:y?[y]:void 0,image:_?[_]:void 0,redirectionLink:(null==g?void 0:g.redirectionLink)?[null==g?void 0:g.redirectionLink]:[]};e.webpushBroadcastConfig=r}const W=w&&w.length?w.map(((e,l)=>({type:t.BUTTON_TYPE.URL,text:null==e?void 0:e.text,url:"https://d.bik.ai/{{1}}",example:x.buttonsW&&x.buttonsW.length?a(x.buttonsW[l])?[""]:[x.buttonsW[l]]:e.redirectionLink?[e.redirectionLink]:void 0,buttonVariable:x.buttonsW&&x.buttonsW.length?a(x.buttonsW[l])?x.buttonsW[l]:i.CUSTOM_URL_PLACEHOLDER_VAR:e.websiteLink?e.websiteLink==i.CUSTOM_URL_PLACEHOLDER?i.CUSTOM_URL_PLACEHOLDER_VAR:e.websiteLink:i.CUSTOM_URL_PLACEHOLDER_VAR,index:l}))):[],k={title:n(u,x.title,V,d),body:n(u,x.body,(null==g?void 0:g.text)||"",d),buttons:W};return{templateVariableMapping:{title:(null===(f=null==s?void 0:s.title)||void 0===f?void 0:f.length)?s.title:k.title,body:(null===(L=null==s?void 0:s.body)||void 0===L?void 0:L.length)?s.body:k.body,buttons:k.buttons,icon:[],header:[]},webpushBroadcastConfig:e.webpushBroadcastConfig,template:e}}))},isValidUrl:e=>{try{return new URL(e),!0}catch(e){return!1}}}};
@@ -1,5 +1,5 @@
1
- import type { VariableListInterfaceV2 } from "../../add-variableV2/AddVariableV2";
2
- import type { WhatsAppPickerMeta } from "../../template-preview/models/WhatsAppTemplate";
1
+ import { VariableListInterfaceV2 } from "../../add-variableV2/AddVariableV2";
2
+ import { WhatsAppPickerMeta } from "../../template-preview/models/WhatsAppTemplate";
3
3
  export interface BodyProps {
4
4
  showVariableMapping: boolean;
5
5
  showOnlyContent?: boolean;
@@ -1,22 +1,22 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("../../curtain/CurtainHelper.js");var a=require("../../variable-picker-v3/model.js"),t=require("lodash/cloneDeep"),i=require("react"),l=require("styled-components"),r=require("../../carousel-preview/CarouselPreview.js"),o=require("./EditWhatsAppCarouselTemplateV2.js"),s=require("../../template-preview/TemplatePreview.js"),n=require("../../template-preview/models/Channels.js"),d=require("../../TypographyStyle.js"),p=require("../../variable-picker-v3/VariablePicker.js"),u=require("../../../constants/Theme.js"),c=require("../context/templateModalContext.js"),h=require("../utils/constants.js"),C=require("../utils/getVariableNameEmail.js"),m=require("../utils/highlightFor.js"),P=require("./DesktopPreview.js"),E=require("./EditWebpushTemplate.js"),v=require("./EditWhatsAppTemplateV2.js"),w=require("./MobilePreview.js"),b=require("./VariableConnectorsPanel.js");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=f(t),N=f(l);const g=N.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("../../curtain/CurtainHelper.js");var a=require("../../variable-picker-v3/model.js"),t=require("lodash"),i=require("react"),l=require("styled-components"),r=require("../../carousel-preview/CarouselPreview.js"),s=require("./EditWhatsAppCarouselTemplateV2.js"),o=require("../../template-preview/TemplatePreview.js");require("../../template-preview/WhatsApp/WhatsAppLikePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js");var n=require("../../../constants/Theme.js");require("../../template-preview/models/TemplateMeta.js"),require("../../template-preview/models/WhatsAppTemplate.js");var p=require("../../template-preview/models/Channels.js"),d=require("../../TypographyStyle.js"),u=require("../../variable-picker-v3/VariablePicker.js"),c=require("../context/templateModalContext.js"),h=require("../utils/constants.js"),m=require("../utils/getVariableNameEmail.js"),C=require("../utils/highlightFor.js"),v=require("./DesktopPreview.js"),P=require("./EditWebpushTemplate.js"),w=require("./EditWhatsAppTemplateV2.js"),E=require("./MobilePreview.js"),b=require("./VariableConnectorsPanel.js");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=f(l);const A=x.default.div`
2
2
  display: flex;
3
3
  // height: 100%;
4
- `,j=N.default.div`
4
+ `,j=x.default.div`
5
5
  max-width: 450px;
6
- max-width: ${e=>e.channel===n.CHANNEL_TYPE.EMAIL?"400px":"450px"};
6
+ max-width: ${e=>e.channel===p.CHANNEL_TYPE.EMAIL?"400px":"450px"};
7
7
 
8
- height: ${e=>e.channel===n.CHANNEL_TYPE.WHATSAPP?"500px":"475px"};
8
+ height: ${e=>e.channel===p.CHANNEL_TYPE.WHATSAPP?"500px":"475px"};
9
9
  overflow-y: auto;
10
10
  padding-bottom: 24px;
11
- border-left: ${u.COLORS.stroke.primary} 1px solid;
12
- border-top: ${e=>e.isWhatsappCarousel?`${u.COLORS.stroke.primary} 1px solid`:void 0};
11
+ border-left: ${n.COLORS.stroke.primary} 1px solid;
12
+ border-top: ${e=>e.isWhatsappCarousel?`${n.COLORS.stroke.primary} 1px solid`:void 0};
13
13
  ${e=>!e.showVariableMapping&&"width: 340px; height: 500px"};
14
- `,A=N.default.div`
14
+ `,N=x.default.div`
15
15
  padding: ${e=>e.isWhatsappCarousel?void 0:e.showOnlyContent?"16px 14px":"16px 32px"};
16
16
  flex: 1;
17
17
  height: ${e=>e.isWhatsappCarousel||e.hideDeviceContainerInPreview?"500px":"475px"};
18
18
  overflow-y: auto;
19
- background-image: ${e=>e.hideDeviceContainerInPreview&&e.channel===n.CHANNEL_TYPE.WHATSAPP?`url(${h.BACKGROUND_PREVIEW_IMAGE});`:"none"};
20
- display: ${e=>!e.hideDeviceContainerInPreview||e.channel!==n.CHANNEL_TYPE.WHATSAPP&&e.channel!==n.CHANNEL_TYPE.RCS?"initial":"flex"};
19
+ background-image: ${e=>e.hideDeviceContainerInPreview&&e.channel===p.CHANNEL_TYPE.WHATSAPP?`url(${h.BACKGROUND_PREVIEW_IMAGE});`:"none"};
20
+ display: ${e=>!e.hideDeviceContainerInPreview||e.channel!==p.CHANNEL_TYPE.WHATSAPP&&e.channel!==p.CHANNEL_TYPE.RCS?"initial":"flex"};
21
21
  align-items: flex-start;
22
- `;exports.default=t=>{const{showVariableMapping:l,showOnlyContent:h,whatsappSpecificPickerMeta:f,showVariableModal:N,discountCode:T,setDiscountCode:S,variableListForImage:L,showSampleValues:y,variableListFromProps:H,fileName:_,setFileName:V,skipDefaultVariableContent:k}=t,M=i.useRef(),q=i.useRef(),{variableList:W,setVariableList:D,variableCallback:O,showVariablePicker:Y,setShowVariablePicker:I,device:B,display_content:R,channel:F,template:$,setTemplate:G,isWhatsappCarousel:U,isProductCarouselType:K,hideDeviceContainerInPreview:z,onDefaultVariableSelect:J}=c.useTemplateModalContext();const Q=e=>{let a=0;for(;e;)a+=e.offsetTop,e=e.offsetParent;return a};return e.jsxs(g,{children:[e.jsx(A,Object.assign({showOnlyContent:h,showVariableMapping:l,isWhatsappCarousel:U,hideDeviceContainerInPreview:z,channel:F,skipDefaultVariableContent:k},{children:"mobile"===B?e.jsx(w.default,{ref:q,display_content:null!=R?R:"",channel:F,template:$,showSampleValues:y}):F!==n.CHANNEL_TYPE.WHATSAPP&&F!==n.CHANNEL_TYPE.RCS||!U?F===n.CHANNEL_TYPE.WEBPUSH?e.jsx(s.TemplatePreview,{showSampleValues:y,channel:F,hideHeader:!0,template:$}):F!==n.CHANNEL_TYPE.MESSAGE?e.jsx(P.default,{ref:M,channel:F,display_content:null!=R?R:"",showSampleValues:y}):e.jsx(e.Fragment,{}):e.jsx(r.CarouselPreview,{ref:M,channel:F,template:$,showSampleValues:y,isPreview:!1,showArrows:!0})})),(K||l)&&e.jsxs(j,Object.assign({channel:F,isWhatsappCarousel:U,showVariableMapping:!0},{children:[e.jsx("div",Object.assign({style:{height:"100%",width:"whatsapp"===F?428:400,display:Y?"block":"none"}},{children:e.jsx(p.VariablePicker,{hideHeaderCross:!0,showHeader:!0,showBackButton:!0,onBackButtonClick:()=>{D(x.default(H)),I(!1)},onSelect:e=>{O(e),D(x.default(H)),I(!1)},type:a.PickerType.EMBEDDED,data:null!=W?W:[],onDefaultVariableSelect:J,skipDefaultVariableContent:k},Math.random())})),e.jsx("div",Object.assign({style:{padding:"16px 14px",width:"whatsapp"===F||"webpush"==F||"rcs"==F?428:400,display:Y?"none":"block"}},{children:F!==n.CHANNEL_TYPE.WHATSAPP&&F!==(null===n.CHANNEL_TYPE||void 0===n.CHANNEL_TYPE?void 0:n.CHANNEL_TYPE.RCS)?F==n.CHANNEL_TYPE.WEBPUSH?e.jsx(E.default,{whatsappSpecificPickerMeta:f,template:$,onTemplateChange:e=>{null==G||G(e)},showVariableModal:N}):e.jsx(b.default,{onFocus:F===n.CHANNEL_TYPE.EMAIL?function(e){var a,t,i;const l=null===document||void 0===document?void 0:document.getElementById("mobile"===B?"template_html_mobile":"template_html_desktop"),r=C.getVariableNameForEmailByIndex(e+1),o=F===n.CHANNEL_TYPE.EMAIL?null===(a=null==l?void 0:l.contentWindow)||void 0===a?void 0:a.document.getElementById(r):document.getElementById(r),s=Q(o),d=null==o?void 0:o.offsetLeft;"desktop"===B?s&&M.current&&(null===(t=null==l?void 0:l.contentWindow)||void 0===t||t.scrollTo(null!=d?d:0,s),m.highlightFor(r,u.COLORS.background.warning.light,2,F,B)):s&&q.current&&(null===(i=null==l?void 0:l.contentWindow)||void 0===i||i.scrollTo(null!=d?d:0,s),m.highlightFor(r,u.COLORS.background.warning.light,2,F,B))}:void 0,showVariableModal:N,discountCode:T,setDiscountCode:S}):F!==n.CHANNEL_TYPE.WHATSAPP&&F!==n.CHANNEL_TYPE.RCS||!U?e.jsx(v.default,{whatsappSpecificPickerMeta:f,template:$,onTemplateChange:e=>{null==G||G(e)},showVariableModal:N,variableListForImage:L,discountCode:T,setDiscountCode:S,fileName:_,setFileName:V}):e.jsx(o.default,{whatsappSpecificPickerMeta:f,template:$,showVariableModal:N,variableListForImage:L,discountCode:T,setDiscountCode:S})}))]})),[n.CHANNEL_TYPE.WHATSAPP,n.CHANNEL_TYPE.SMS].includes(F)&&!l&&!K&&e.jsx(j,{children:e.jsx(d.BodySecondary,Object.assign({color:u.COLORS.content.secondary,style:{fontStyle:"italic"}},{children:"Click on ‘Select template’ below to use it"}))})]})};
22
+ `;exports.default=l=>{const{showVariableMapping:h,showOnlyContent:f,whatsappSpecificPickerMeta:x,showVariableModal:T,discountCode:g,setDiscountCode:S,variableListForImage:L,showSampleValues:y,variableListFromProps:H,fileName:k,setFileName:V,skipDefaultVariableContent:_}=l,W=i.useRef(),q=i.useRef(),{variableList:M,setVariableList:D,variableCallback:O,showVariablePicker:Y,setShowVariablePicker:I,device:B,display_content:R,channel:F,template:$,setTemplate:G,isWhatsappCarousel:U,isProductCarouselType:K,hideDeviceContainerInPreview:z,onDefaultVariableSelect:J}=c.useTemplateModalContext();const Q=e=>{let a=0;for(;e;)a+=e.offsetTop,e=e.offsetParent;return a};return e.jsxs(A,{children:[e.jsx(N,Object.assign({showOnlyContent:f,showVariableMapping:h,isWhatsappCarousel:U,hideDeviceContainerInPreview:z,channel:F,skipDefaultVariableContent:_},{children:"mobile"===B?e.jsx(E.default,{ref:q,display_content:null!=R?R:"",channel:F,template:$,showSampleValues:y}):F!==p.CHANNEL_TYPE.WHATSAPP&&F!==p.CHANNEL_TYPE.RCS||!U?F===p.CHANNEL_TYPE.WEBPUSH?e.jsx(o.TemplatePreview,{showSampleValues:y,channel:F,hideHeader:!0,template:$}):F!==p.CHANNEL_TYPE.MESSAGE?e.jsx(v.default,{ref:W,channel:F,display_content:null!=R?R:"",showSampleValues:y}):e.jsx(e.Fragment,{}):e.jsx(r.CarouselPreview,{ref:W,channel:F,template:$,showSampleValues:y,isPreview:!1,showArrows:!0})})),(K||h)&&e.jsxs(j,Object.assign({channel:F,isWhatsappCarousel:U,showVariableMapping:!0},{children:[e.jsx("div",Object.assign({style:{height:"100%",width:"whatsapp"===F?428:400,display:Y?"block":"none"}},{children:e.jsx(u.VariablePicker,{hideHeaderCross:!0,showHeader:!0,showBackButton:!0,onBackButtonClick:()=>{D(t.cloneDeep(H)),I(!1)},onSelect:e=>{O(e),D(t.cloneDeep(H)),I(!1)},type:a.PickerType.EMBEDDED,data:null!=M?M:[],onDefaultVariableSelect:J,skipDefaultVariableContent:_},Math.random())})),e.jsx("div",Object.assign({style:{padding:"16px 14px",width:"whatsapp"===F||"webpush"==F||"rcs"==F?428:400,display:Y?"none":"block"}},{children:F!==p.CHANNEL_TYPE.WHATSAPP&&F!==(null===p.CHANNEL_TYPE||void 0===p.CHANNEL_TYPE?void 0:p.CHANNEL_TYPE.RCS)?F==p.CHANNEL_TYPE.WEBPUSH?e.jsx(P.default,{whatsappSpecificPickerMeta:x,template:$,onTemplateChange:e=>{null==G||G(e)},showVariableModal:T}):e.jsx(b.default,{onFocus:F===p.CHANNEL_TYPE.EMAIL?function(e){var a,t,i;const l=null===document||void 0===document?void 0:document.getElementById("mobile"===B?"template_html_mobile":"template_html_desktop"),r=m.getVariableNameForEmailByIndex(e+1),s=F===p.CHANNEL_TYPE.EMAIL?null===(a=null==l?void 0:l.contentWindow)||void 0===a?void 0:a.document.getElementById(r):document.getElementById(r),o=Q(s),d=null==s?void 0:s.offsetLeft;"desktop"===B?o&&W.current&&(null===(t=null==l?void 0:l.contentWindow)||void 0===t||t.scrollTo(null!=d?d:0,o),C.highlightFor(r,n.COLORS.background.warning.light,2,F,B)):o&&q.current&&(null===(i=null==l?void 0:l.contentWindow)||void 0===i||i.scrollTo(null!=d?d:0,o),C.highlightFor(r,n.COLORS.background.warning.light,2,F,B))}:void 0,showVariableModal:T,discountCode:g,setDiscountCode:S}):F!==p.CHANNEL_TYPE.WHATSAPP&&F!==p.CHANNEL_TYPE.RCS||!U?e.jsx(w.default,{whatsappSpecificPickerMeta:x,template:$,onTemplateChange:e=>{null==G||G(e)},showVariableModal:T,variableListForImage:L,discountCode:g,setDiscountCode:S,fileName:k,setFileName:V}):e.jsx(s.default,{whatsappSpecificPickerMeta:x,template:$,showVariableModal:T,variableListForImage:L,discountCode:g,setDiscountCode:S})}))]})),[p.CHANNEL_TYPE.WHATSAPP,p.CHANNEL_TYPE.SMS].includes(F)&&!h&&!K&&e.jsx(j,{children:e.jsx(d.BodySecondary,Object.assign({color:n.COLORS.content.secondary,style:{fontStyle:"italic"}},{children:"Click on ‘Select template’ below to use it"}))})]})};
@@ -1,20 +1,20 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),i=require("../../spinner/Spinner.js"),a=require("../../template-preview/TemplatePreview.js"),s=require("../../template-preview/models/Channels.js"),d=require("../../../constants/Theme.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(r),n=l(t);const p=n.default.div`
2
- background: ${d.COLORS.surface.standard};
3
- border: 1px solid ${d.COLORS.stroke.primary};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),i=require("../../spinner/Spinner.js"),a=require("../../template-preview/TemplatePreview.js");require("../../template-preview/WhatsApp/WhatsAppLikePreview.js"),require("../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js");var s=require("../../../constants/Theme.js");require("../../curtain/CurtainHelper.js"),require("../../variable-picker-v3/model.js"),require("../../template-preview/models/TemplateMeta.js"),require("../../template-preview/models/WhatsAppTemplate.js");var p=require("../../template-preview/models/Channels.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=l(r),o=l(t);const n=o.default.div`
2
+ background: ${s.COLORS.surface.standard};
3
+ border: 1px solid ${s.COLORS.stroke.primary};
4
4
  border-radius: 8px;
5
5
  overflow-y: auto;
6
6
  /* max-height: 420px; */
7
7
  scroll-behavior: smooth;
8
8
  height: 100%;
9
- `,u=n.default.div`
9
+ `,u=o.default.div`
10
10
  padding: 18px 24px 12px;
11
11
  display: flex;
12
12
  gap: 4px;
13
13
  border-bottom-width: 1px;
14
- border-bottom-color: ${d.COLORS.stroke.primary};
15
- `,h=n.default.div`
14
+ border-bottom-color: ${s.COLORS.stroke.primary};
15
+ `,m=o.default.div`
16
16
  width: 6px;
17
17
  height: 6px;
18
18
  background: #d9d9d9;
19
19
  border-radius: 3px;
20
- `,m=o.default.forwardRef(((r,t)=>{let{display_content:d,showSampleValues:l}=r;return e.jsxs(p,Object.assign({ref:t},{children:[e.jsxs(u,{children:[e.jsx(h,{}),e.jsx(h,{}),e.jsx(h,{})]}),e.jsx("div",{children:d?e.jsx(a.TemplatePreview,{showSampleValues:l,channel:s.CHANNEL_TYPE.EMAIL,hideHeader:!0,emailSpecificMeta:{emailDisplayContent:d,hideViewButtonForEmail:!0,emailHtmlContainerId:"template_html_desktop",containerStyle:{height:441},templateContainerStyles:{height:"100%"}},hidePointerEvents:!0}):e.jsx("div",Object.assign({style:{padding:20}},{children:e.jsx(i.Spinner,{size:"small"})}))})]}))}));m.displayName="DesktopPreview",exports.default=m;
20
+ `,h=d.default.forwardRef(((r,t)=>{let{display_content:s,showSampleValues:l}=r;return e.jsxs(n,Object.assign({ref:t},{children:[e.jsxs(u,{children:[e.jsx(m,{}),e.jsx(m,{}),e.jsx(m,{})]}),e.jsx("div",{children:s?e.jsx(a.TemplatePreview,{showSampleValues:l,channel:p.CHANNEL_TYPE.EMAIL,hideHeader:!0,emailSpecificMeta:{emailDisplayContent:s,hideViewButtonForEmail:!0,emailHtmlContainerId:"template_html_desktop",containerStyle:{height:441},templateContainerStyles:{height:"100%"}},hidePointerEvents:!0}):e.jsx("div",Object.assign({style:{padding:20}},{children:e.jsx(i.Spinner,{size:"small"})}))})]}))}));h.displayName="DesktopPreview",exports.default=h;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { VariableListInterfaceV2 } from "../../add-variableV2/AddVariableV2";
3
- import { HEADER_TYPES } from "../../template-preview/models/TemplateMeta";
4
- import type { UseEditWhatsappTemplateMediaResponse } from './useEditWhtasappTemplateMedia';
2
+ import { VariableListInterfaceV2 } from "../../add-variableV2";
3
+ import { HEADER_TYPES } from "../../template-preview";
4
+ import { UseEditWhatsappTemplateMediaResponse } from './useEditWhtasappTemplateMedia';
5
5
  interface EditMediaModalProps {
6
6
  setOpenEditMedia: React.Dispatch<React.SetStateAction<boolean>>;
7
7
  openEditMedia: boolean;