@bikdotai/bik-component-library 0.0.533-beta.13 → 0.0.533-beta.133

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 (191) hide show
  1. package/dist/cjs/assets/icons/graph.svg.js +1 -0
  2. package/dist/cjs/assets/icons/sparkle.svg.js +1 -0
  3. package/dist/cjs/assets/icons/sync.svg.js +1 -0
  4. package/dist/cjs/components/TypographyStyle.d.ts +17 -0
  5. package/dist/cjs/components/TypographyStyle.js +82 -19
  6. package/dist/cjs/components/ai-modals/ActivateBikAI.d.ts +8 -0
  7. package/dist/cjs/components/ai-modals/ActivateBikAI.js +1 -0
  8. package/dist/cjs/components/ai-modals/AiCreditsExhausted.d.ts +11 -0
  9. package/dist/cjs/components/ai-modals/AiCreditsExhausted.js +1 -0
  10. package/dist/cjs/components/ai-modals/AiCreditsLow.d.ts +7 -0
  11. package/dist/cjs/components/ai-modals/AiCreditsLow.js +1 -0
  12. package/dist/cjs/components/ai-modals/AiSyncProgress.d.ts +8 -0
  13. package/dist/cjs/components/ai-modals/AiSyncProgress.js +1 -0
  14. package/dist/cjs/components/ai-modals/index.d.ts +4 -0
  15. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  16. package/dist/cjs/components/button/Button.js +1 -1
  17. package/dist/cjs/components/button/model.d.ts +1 -1
  18. package/dist/cjs/components/button/themes.d.ts +2 -2
  19. package/dist/cjs/components/button/themes.js +1 -1
  20. package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js +1 -1
  21. package/dist/cjs/components/floater/floater.d.ts +2 -1
  22. package/dist/cjs/components/floater/floater.js +1 -1
  23. package/dist/cjs/components/icon-button/IconButton.styled.js +1 -1
  24. package/dist/cjs/components/icon-button/model.d.ts +1 -1
  25. package/dist/cjs/components/icon-button/theme.js +1 -1
  26. package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +2 -6
  27. package/dist/cjs/components/input-with-vars/InputWithVariables.js +2 -2
  28. package/dist/cjs/components/list-item/ListItem.d.ts +1 -2
  29. package/dist/cjs/components/list-item/ListItem.js +1 -1
  30. package/dist/cjs/components/list-item/themes.js +1 -1
  31. package/dist/cjs/components/progress-bar/ProgressBarComponent.js +1 -1
  32. package/dist/cjs/components/side-modal/SideModal.d.ts +3 -1
  33. package/dist/cjs/components/side-modal/SideModal.js +1 -1
  34. package/dist/cjs/components/side-modal/SideModal.style.d.ts +4 -1
  35. package/dist/cjs/components/side-modal/SideModal.style.js +13 -7
  36. package/dist/cjs/components/tag/Tag.js +1 -1
  37. package/dist/cjs/components/tag/Tag.styled.js +1 -1
  38. package/dist/cjs/components/tag/model.d.ts +11 -1
  39. package/dist/cjs/components/tag/model.js +1 -1
  40. package/dist/cjs/components/tag/themes.d.ts +1 -1
  41. package/dist/cjs/components/tag/themes.js +1 -1
  42. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +1 -1
  43. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
  44. package/dist/cjs/components/template-context-mapper/context/templateModalContext.d.ts +0 -17
  45. package/dist/cjs/components/template-context-mapper/context/templateModalContext.js +1 -1
  46. package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +1 -1
  47. package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -1
  48. package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +1 -1
  49. package/dist/cjs/components/template-context-mapper/modalElements/Body.js +11 -11
  50. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +1 -1
  51. package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +2 -0
  52. package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
  53. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  54. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.d.ts +2 -1
  55. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  56. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +2 -1
  57. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +2 -2
  58. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +3 -3
  59. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +2 -2
  60. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  61. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -2
  62. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +4 -4
  63. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.d.ts +3 -1
  64. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  65. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +3 -1
  66. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +3 -3
  67. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +3 -1
  68. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  69. package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js +1 -1
  70. package/dist/cjs/helpers/index.d.ts +0 -1
  71. package/dist/cjs/hooks/useOutside.js +1 -1
  72. package/dist/cjs/index.d.ts +1 -1
  73. package/dist/cjs/index.js +1 -1
  74. package/dist/esm/assets/icons/graph.svg.js +1 -0
  75. package/dist/esm/assets/icons/sparkle.svg.js +1 -0
  76. package/dist/esm/assets/icons/sync.svg.js +1 -0
  77. package/dist/esm/components/TypographyStyle.d.ts +17 -0
  78. package/dist/esm/components/TypographyStyle.js +84 -21
  79. package/dist/esm/components/ai-modals/ActivateBikAI.d.ts +8 -0
  80. package/dist/esm/components/ai-modals/ActivateBikAI.js +1 -0
  81. package/dist/esm/components/ai-modals/AiCreditsExhausted.d.ts +11 -0
  82. package/dist/esm/components/ai-modals/AiCreditsExhausted.js +1 -0
  83. package/dist/esm/components/ai-modals/AiCreditsLow.d.ts +7 -0
  84. package/dist/esm/components/ai-modals/AiCreditsLow.js +1 -0
  85. package/dist/esm/components/ai-modals/AiSyncProgress.d.ts +8 -0
  86. package/dist/esm/components/ai-modals/AiSyncProgress.js +1 -0
  87. package/dist/esm/components/ai-modals/index.d.ts +4 -0
  88. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  89. package/dist/esm/components/button/Button.js +1 -1
  90. package/dist/esm/components/button/model.d.ts +1 -1
  91. package/dist/esm/components/button/themes.d.ts +2 -2
  92. package/dist/esm/components/button/themes.js +1 -1
  93. package/dist/esm/components/carousel-preview/CarouselPreviewCard.js +1 -1
  94. package/dist/esm/components/floater/floater.d.ts +2 -1
  95. package/dist/esm/components/floater/floater.js +1 -1
  96. package/dist/esm/components/icon-button/IconButton.styled.js +1 -1
  97. package/dist/esm/components/icon-button/model.d.ts +1 -1
  98. package/dist/esm/components/icon-button/theme.js +1 -1
  99. package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +2 -6
  100. package/dist/esm/components/input-with-vars/InputWithVariables.js +3 -3
  101. package/dist/esm/components/list-item/ListItem.d.ts +1 -2
  102. package/dist/esm/components/list-item/ListItem.js +1 -1
  103. package/dist/esm/components/list-item/themes.js +1 -1
  104. package/dist/esm/components/progress-bar/ProgressBarComponent.js +1 -1
  105. package/dist/esm/components/side-modal/SideModal.d.ts +3 -1
  106. package/dist/esm/components/side-modal/SideModal.js +1 -1
  107. package/dist/esm/components/side-modal/SideModal.style.d.ts +4 -1
  108. package/dist/esm/components/side-modal/SideModal.style.js +6 -0
  109. package/dist/esm/components/tag/Tag.js +1 -1
  110. package/dist/esm/components/tag/Tag.styled.js +1 -1
  111. package/dist/esm/components/tag/model.d.ts +11 -1
  112. package/dist/esm/components/tag/model.js +1 -1
  113. package/dist/esm/components/tag/themes.d.ts +1 -1
  114. package/dist/esm/components/tag/themes.js +1 -1
  115. package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +1 -1
  116. package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
  117. package/dist/esm/components/template-context-mapper/context/templateModalContext.d.ts +0 -17
  118. package/dist/esm/components/template-context-mapper/context/templateModalContext.js +1 -1
  119. package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +1 -1
  120. package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -1
  121. package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +1 -1
  122. package/dist/esm/components/template-context-mapper/modalElements/Body.js +11 -11
  123. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +2 -2
  124. package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +2 -0
  125. package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
  126. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
  127. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.d.ts +2 -1
  128. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
  129. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +2 -1
  130. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +2 -2
  131. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +3 -3
  132. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +2 -2
  133. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  134. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -2
  135. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +4 -4
  136. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.d.ts +3 -1
  137. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  138. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +3 -1
  139. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +3 -3
  140. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +3 -1
  141. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  142. package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js +1 -1
  143. package/dist/esm/helpers/index.d.ts +0 -1
  144. package/dist/esm/hooks/useOutside.js +1 -1
  145. package/dist/esm/index.d.ts +1 -1
  146. package/dist/esm/index.js +1 -1
  147. package/package.json +1 -1
  148. package/dist/cjs/assets/icons/sub_category.svg.js +0 -1
  149. package/dist/cjs/components/input-with-vars/customPortal.d.ts +0 -8
  150. package/dist/cjs/components/input-with-vars/customPortal.js +0 -1
  151. package/dist/cjs/components/variable-picker-v3/Content.d.ts +0 -6
  152. package/dist/cjs/components/variable-picker-v3/Content.js +0 -1
  153. package/dist/cjs/components/variable-picker-v3/NoResult.d.ts +0 -6
  154. package/dist/cjs/components/variable-picker-v3/NoResult.js +0 -17
  155. package/dist/cjs/components/variable-picker-v3/SubHeaderItems.d.ts +0 -14
  156. package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js +0 -1
  157. package/dist/cjs/components/variable-picker-v3/VariablePicker.d.ts +0 -5
  158. package/dist/cjs/components/variable-picker-v3/VariablePicker.js +0 -1
  159. package/dist/cjs/components/variable-picker-v3/context.d.ts +0 -21
  160. package/dist/cjs/components/variable-picker-v3/context.js +0 -1
  161. package/dist/cjs/components/variable-picker-v3/index.d.ts +0 -1
  162. package/dist/cjs/components/variable-picker-v3/model.d.ts +0 -57
  163. package/dist/cjs/components/variable-picker-v3/model.js +0 -1
  164. package/dist/cjs/components/variable-picker-v3/recommendVaribles.d.ts +0 -1
  165. package/dist/cjs/components/variable-picker-v3/recommendVaribles.js +0 -1
  166. package/dist/cjs/components/variable-picker-v3/searchVariables.d.ts +0 -2
  167. package/dist/cjs/components/variable-picker-v3/searchVariables.js +0 -1
  168. package/dist/cjs/components/variable-picker-v3/styles.d.ts +0 -6
  169. package/dist/cjs/components/variable-picker-v3/styles.js +0 -42
  170. package/dist/esm/assets/icons/sub_category.svg.js +0 -1
  171. package/dist/esm/components/input-with-vars/customPortal.d.ts +0 -8
  172. package/dist/esm/components/input-with-vars/customPortal.js +0 -1
  173. package/dist/esm/components/variable-picker-v3/Content.d.ts +0 -6
  174. package/dist/esm/components/variable-picker-v3/Content.js +0 -1
  175. package/dist/esm/components/variable-picker-v3/NoResult.d.ts +0 -6
  176. package/dist/esm/components/variable-picker-v3/NoResult.js +0 -17
  177. package/dist/esm/components/variable-picker-v3/SubHeaderItems.d.ts +0 -14
  178. package/dist/esm/components/variable-picker-v3/SubHeaderItems.js +0 -1
  179. package/dist/esm/components/variable-picker-v3/VariablePicker.d.ts +0 -5
  180. package/dist/esm/components/variable-picker-v3/VariablePicker.js +0 -1
  181. package/dist/esm/components/variable-picker-v3/context.d.ts +0 -21
  182. package/dist/esm/components/variable-picker-v3/context.js +0 -1
  183. package/dist/esm/components/variable-picker-v3/index.d.ts +0 -1
  184. package/dist/esm/components/variable-picker-v3/model.d.ts +0 -57
  185. package/dist/esm/components/variable-picker-v3/model.js +0 -1
  186. package/dist/esm/components/variable-picker-v3/recommendVaribles.d.ts +0 -1
  187. package/dist/esm/components/variable-picker-v3/recommendVaribles.js +0 -1
  188. package/dist/esm/components/variable-picker-v3/searchVariables.d.ts +0 -2
  189. package/dist/esm/components/variable-picker-v3/searchVariables.js +0 -1
  190. package/dist/esm/components/variable-picker-v3/styles.d.ts +0 -6
  191. package/dist/esm/components/variable-picker-v3/styles.js +0 -42
@@ -28,7 +28,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
28
28
  overflow: hidden;
29
29
  display: -webkit-box;
30
30
  -webkit-line-clamp: ${e=>e.numberOfLines};
31
- `,f=e.div`
31
+ `,a=e.div`
32
32
  font-family: Inter;
33
33
  color: ${e=>e.color||i.text.primary};
34
34
  font-weight: ${t.title4.fontWeight};
@@ -38,7 +38,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
38
38
  overflow: hidden;
39
39
  display: -webkit-box;
40
40
  -webkit-line-clamp: ${e=>e.numberOfLines};
41
- `,a=e.div`
41
+ `,f=e.div`
42
42
  font-family: Inter;
43
43
  color: ${e=>e.color||i.text.primary};
44
44
  font-weight: ${t.titleRegular.fontWeight};
@@ -58,7 +58,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
58
58
  overflow: hidden;
59
59
  display: -webkit-box;
60
60
  -webkit-line-clamp: ${e=>e.numberOfLines};
61
- `,h=e.div`
61
+ `,d=e.div`
62
62
  font-family: Inter;
63
63
  color: ${e=>e.color||i.text.primary};
64
64
  font-weight: ${t.display.fontWeight};
@@ -68,7 +68,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
68
68
  overflow: hidden;
69
69
  display: -webkit-box;
70
70
  -webkit-line-clamp: ${e=>e.numberOfLines};
71
- `,d=e.div`
71
+ `,c=e.div`
72
72
  font-family: Inter;
73
73
  color: ${e=>e.color||i.text.primary};
74
74
  font-weight: ${t.bodyPrimary.fontWeight};
@@ -78,7 +78,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
78
78
  overflow: hidden;
79
79
  display: -webkit-box;
80
80
  -webkit-line-clamp: ${e=>e.numberOfLines};
81
- `,c=e.div`
81
+ `,h=e.div`
82
82
  font-family: Inter;
83
83
  color: ${e=>e.color||i.text.primary};
84
84
  font-weight: ${t.bodyPrimary.fontWeight};
@@ -88,7 +88,17 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
88
88
  overflow: hidden;
89
89
  display: -webkit-box;
90
90
  -webkit-line-clamp: ${e=>e.numberOfLines};
91
- `,$=e.div`
91
+ `,g=e.div`
92
+ font-family: Inter;
93
+ color: ${e=>e.color||i.text.primary};
94
+ font-weight: ${t.bodySecondary.fontWeight};
95
+ font-size: ${o(t.bodySecondary.fontSize)};
96
+ line-height: ${o(t.bodySecondary.lineHeight)};
97
+ -webkit-box-orient: vertical;
98
+ overflow: hidden;
99
+ display: -webkit-box;
100
+ -webkit-line-clamp: ${e=>e.numberOfLines};
101
+ `,w=e.div`
92
102
  font-family: Inter;
93
103
  color: ${e=>e.color||i.text.primary};
94
104
  font-weight: ${t.bodySecondary.fontWeight};
@@ -98,17 +108,23 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
98
108
  overflow: hidden;
99
109
  display: -webkit-box;
100
110
  -webkit-line-clamp: ${e=>e.numberOfLines};
101
- `,g=e(c)`
111
+ z-index: 1;
112
+ background: linear-gradient(93deg, #ff166a 0.37%, #fb5f08 100%);
113
+ -webkit-background-clip: text;
114
+ -webkit-text-fill-color: transparent;
115
+ background-clip: text;
116
+ text-fill-color: transparent;
117
+ `,$=e(h)`
102
118
  text-decoration: underline;
103
119
  color: ${i.content.brand};
104
120
  text-decoration-color: ${i.content.brand};
105
121
  cursor: pointer;
106
- `,w=e($)`
122
+ `,m=e(g)`
107
123
  text-decoration: underline;
108
124
  color: ${i.content.brand};
109
125
  text-decoration-color: ${i.content.brand};
110
126
  cursor: pointer;
111
- `,m=e.div`
127
+ `,y=e.div`
112
128
  font-family: Inter;
113
129
  color: ${e=>e.color||i.text.primary};
114
130
  font-weight: ${t.caption.fontWeight};
@@ -118,7 +134,23 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
118
134
  overflow: hidden;
119
135
  display: -webkit-box;
120
136
  -webkit-line-clamp: ${e=>e.numberOfLines};
121
- `,y=e.div`
137
+ `,p=e.div`
138
+ font-family: Inter;
139
+ color: ${e=>e.color||i.text.primary};
140
+ font-weight: ${t.caption.fontWeight};
141
+ font-size: ${o(t.caption.fontSize)};
142
+ line-height: ${o(t.caption.lineHeight)};
143
+ -webkit-box-orient: vertical;
144
+ overflow: hidden;
145
+ display: -webkit-box;
146
+ -webkit-line-clamp: ${e=>e.numberOfLines};
147
+ z-index: 1;
148
+ background: linear-gradient(93deg, #ff166a 0.37%, #fb5f08 100%);
149
+ -webkit-background-clip: text;
150
+ -webkit-text-fill-color: transparent;
151
+ background-clip: text;
152
+ text-fill-color: transparent;
153
+ `,x=e.div`
122
154
  color: ${e=>e.color||i.text.primary};
123
155
  font-weight: ${t.tiny.fontWeight};
124
156
  font-size: ${o(t.tiny.fontSize)};
@@ -127,7 +159,22 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
127
159
  overflow: hidden;
128
160
  display: -webkit-box;
129
161
  -webkit-line-clamp: ${e=>e.numberOfLines};
130
- `,p=e.div`
162
+ `,s=e.div`
163
+ color: ${e=>e.color||i.text.primary};
164
+ font-weight: ${t.tiny.fontWeight};
165
+ font-size: ${o(t.tiny.fontSize)};
166
+ line-height: ${o(t.tiny.lineHeight)};
167
+ -webkit-box-orient: vertical;
168
+ overflow: hidden;
169
+ display: -webkit-box;
170
+ -webkit-line-clamp: ${e=>e.numberOfLines};
171
+ z-index: 1;
172
+ background: linear-gradient(93deg, #ff166a 0.37%, #fb5f08 100%);
173
+ -webkit-background-clip: text;
174
+ -webkit-text-fill-color: transparent;
175
+ background-clip: text;
176
+ text-fill-color: transparent;
177
+ `,k=e.div`
131
178
  font-family: Inter;
132
179
  color: ${e=>e.color||i.text.primary};
133
180
  font-weight: ${t.buttonLarge.fontWeight};
@@ -137,7 +184,23 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
137
184
  overflow: hidden;
138
185
  display: -webkit-box;
139
186
  -webkit-line-clamp: ${e=>e.numberOfLines};
140
- `,s=e.div`
187
+ `,v=e.div`
188
+ font-family: Inter;
189
+ color: ${e=>e.color||i.text.primary};
190
+ font-weight: ${t.buttonLarge.fontWeight};
191
+ font-size: ${o(t.buttonLarge.fontSize)};
192
+ line-height: ${o(t.buttonLarge.lineHeight)};
193
+ -webkit-box-orient: vertical;
194
+ overflow: hidden;
195
+ display: -webkit-box;
196
+ -webkit-line-clamp: ${e=>e.numberOfLines};
197
+ background: linear-gradient(93deg, #ff166a 0.37%, #fb5f08 100%);
198
+ z-index: 1;
199
+ -webkit-background-clip: text;
200
+ -webkit-text-fill-color: transparent;
201
+ background-clip: text;
202
+ text-fill-color: transparent;
203
+ `,u=e.div`
141
204
  font-family: Inter;
142
205
  color: ${e=>e.color||i.text.primary};
143
206
  font-weight: ${t.buttonRegular.fontWeight};
@@ -147,7 +210,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
147
210
  overflow: hidden;
148
211
  display: -webkit-box;
149
212
  -webkit-line-clamp: ${e=>e.numberOfLines};
150
- `,x=e.div`
213
+ `,z=e.div`
151
214
  font-family: Inter;
152
215
  color: ${e=>e.color||i.text.primary};
153
216
  font-weight: ${t.subHeading.fontWeight};
@@ -157,7 +220,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
157
220
  overflow: hidden;
158
221
  display: -webkit-box;
159
222
  -webkit-line-clamp: ${e=>e.numberOfLines};
160
- `,k=e.div`
223
+ `,L=e.div`
161
224
  font-family: Inter;
162
225
  color: ${e=>e.color||i.text.primary};
163
226
  font-weight: ${t.bodyRegular.fontWeight};
@@ -167,7 +230,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
167
230
  overflow: hidden;
168
231
  display: -webkit-box;
169
232
  -webkit-line-clamp: ${e=>e.numberOfLines};
170
- `,v=e.div`
233
+ `,S=e.div`
171
234
  font-family: Inter;
172
235
  color: ${i.text.primary};
173
236
  font-weight: ${t.caption.fontWeight};
@@ -177,7 +240,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
177
240
  overflow: hidden;
178
241
  display: -webkit-box;
179
242
  -webkit-line-clamp: ${e=>e.numberOfLines};
180
- `,u=e.div`
243
+ `,H=e.div`
181
244
  font-family: Inter;
182
245
  color: ${i.text.primary};
183
246
  font-weight: ${t.textPlaceholder.fontWeight};
@@ -187,7 +250,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
187
250
  overflow: hidden;
188
251
  display: -webkit-box;
189
252
  -webkit-line-clamp: ${e=>e.numberOfLines};
190
- `,z=e.div`
253
+ `,O=e.div`
191
254
  font-family: Inter;
192
255
  color: ${i.text.primary};
193
256
  font-weight: ${t.title4.fontWeight};
@@ -197,7 +260,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
197
260
  overflow: hidden;
198
261
  display: -webkit-box;
199
262
  -webkit-line-clamp: ${e=>e.numberOfLines};
200
- `,L=e.div`
263
+ `,W=e.div`
201
264
  font-family: Inter;
202
265
  color: ${i.text.primary};
203
266
  font-weight: ${t.bodySmall.fontWeight};
@@ -207,7 +270,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
207
270
  overflow: hidden;
208
271
  display: -webkit-box;
209
272
  -webkit-line-clamp: ${e=>e.numberOfLines};
210
- `,S=e.div`
273
+ `,I=e.div`
211
274
  font-family: Inter;
212
275
  color: ${i.text.primary};
213
276
  font-weight: ${t.captionBold.fontWeight};
@@ -217,7 +280,7 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
217
280
  overflow: hidden;
218
281
  display: -webkit-box;
219
282
  -webkit-line-clamp: ${e=>e.numberOfLines};
220
- `,H=e.div`
283
+ `,R=e.div`
221
284
  font-family: Inter;
222
285
  color: ${i.text.primary};
223
286
  font-weight: ${t.tiny.fontWeight};
@@ -227,4 +290,4 @@ import e from"styled-components";import{COLORS as i,FONTS as t}from"../constants
227
290
  overflow: hidden;
228
291
  display: -webkit-box;
229
292
  -webkit-line-clamp: ${e=>e.numberOfLines};
230
- `;export{m as BodyCaption,d as BodyLarge,c as BodyPrimary,g as BodyPrimaryLink,k as BodyRegular,$ as BodySecondary,w as BodySecondaryLink,L as BodySmall,y as BodyTiny,p as ButtonLarge,s as ButtonRegular,v as Caption,S as CaptionBold,h as Display,f as SmallRegular,x as SubHeading,u as TextPlaceholder,H as Tiny,z as TitleFour,l as TitleLarge,r as TitleMedium,a as TitleRegular,b as TitleSmall,n as TitleXlarge};
293
+ `;export{p as AiBodyCaption,s as AiBodyTiny,y as BodyCaption,c as BodyLarge,h as BodyPrimary,$ as BodyPrimaryLink,L as BodyRegular,g as BodySecondary,m as BodySecondaryLink,W as BodySmall,x as BodyTiny,k as ButtonLarge,v as ButtonLargeAI,u as ButtonRegular,w as ButtonRegularAI,S as Caption,I as CaptionBold,d as Display,a as SmallRegular,z as SubHeading,H as TextPlaceholder,R as Tiny,O as TitleFour,l as TitleLarge,r as TitleMedium,f as TitleRegular,b as TitleSmall,n as TitleXlarge};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const ActivateBikAi: React.FC<{
3
+ open: boolean;
4
+ onModalClose: () => void;
5
+ onRightBtnClick: () => void;
6
+ onLeftBtnClick: () => void;
7
+ source: 'chatbot' | 'crm';
8
+ }>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as i}from"../../constants/Theme.js";import n from"../../assets/icons/graph.svg.js";import o from"../../assets/icons/sparkle.svg.js";import{Button as r}from"../button/Button.js";import{Modal as s}from"../modals/Modal.js";import{TitleMedium as c,TitleLarge as a,BodyPrimary as l}from"../TypographyStyle.js";const d=d=>{let{open:g,onModalClose:h,onRightBtnClick:p,onLeftBtnClick:y,source:u}=d;return e(s,Object.assign({open:g,centralContainerStyles:{height:"430px",width:"464px",borderRadius:"12px"},zIndex:40,onClose:h,closeOnOutsideClick:!0},{children:t("div",{children:[t("div",Object.assign({style:{height:"180px",width:"100%",backgroundColor:"rgba(142, 142, 142, 0.2)",display:"flex",justifyContent:"center",alignItems:"center",gap:"18px"}},{children:[e(n,{width:100,height:90}),e("div",Object.assign({style:{width:"302px"}},{children:e(c,"chatbot"===u?{children:"Unlock higher conversion and ease agent work with BIK.ai"}:{children:"Experience reduced Average Handling Time of your tickets with Bik.AI!"})}))]})),t("div",Object.assign({style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"16px",padding:"24px"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:"4px"}},{children:[e(a,{children:"Activate BIK AI"}),e(o,{width:32,height:32})]})),t("div","chatbot"===u?Object.assign({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[e(l,Object.assign({color:"#888888"},{children:"Sync your Shopify Data to Bik.ai to supercharge it with"})),e(l,Object.assign({color:"#888888"},{children:"your store’s data to start personalizing it to your"})),e(l,Object.assign({color:"#888888"},{children:"customers!"}))]}):Object.assign({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[e(l,Object.assign({color:"#888888"},{children:"Sync your Shopify Data to Bik.ai to supercharge it with "})),e(l,Object.assign({color:"#888888"},{children:"your store’s data to start responding to customer"})),e(l,Object.assign({color:"#888888"},{children:"queries right away!"}))]}))]})),t("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px",paddingBottom:"24px",paddingLeft:"24px",paddingRight:"24px"}},{children:[e(r,{buttonText:"Learn More",buttonType:"text",size:"large",onClick:y}),e(r,{buttonText:"Sync Shopify Data",size:"large",style:{backgroundColor:i.background.brand},onClick:p})]}))]})}))};export{d as ActivateBikAi};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export declare const AiCreditsExhausted: React.FC<{
3
+ open: boolean;
4
+ onModalClose: () => void;
5
+ body?: string;
6
+ onRightBtnClick: () => void;
7
+ onLeftBtnClick: () => void;
8
+ isTestModeConf?: {
9
+ isLive: boolean;
10
+ };
11
+ }>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as o}from"../../constants/Theme.js";import n from"../../assets/icons/alert_triangle.svg.js";import{Button as i}from"../button/Button.js";import{Modal as s}from"../modals/Modal.js";import{ProgressBarComponent as r}from"../progress-bar/ProgressBarComponent.js";import{TitleLarge as l,TitleRegular as c,BodySecondary as a,BodyPrimary as d}from"../TypographyStyle.js";const p=p=>{let{open:u,onModalClose:y,body:g,onRightBtnClick:m,onLeftBtnClick:x,isTestModeConf:h}=p;return e(s,Object.assign({open:u,centralContainerStyles:{width:"498px",height:"312px",borderRadius:"12px"},onClose:y,closeOnOutsideClick:!0,zIndex:40},{children:t("div",Object.assign({style:{padding:"24px",display:"flex",flexDirection:"column"}},{children:[e("div",Object.assign({style:{display:"flex",justifyContent:"center"}},{children:e(l,{children:"Free AI Credits Exhausted"})})),e("div",{style:{height:"24px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"}},{children:[e(n,{color:o.content.negative,width:20,height:20}),e("div",{style:{width:"8px"}}),e(c,{children:"0/100"}),e(a,Object.assign({color:o.content.secondary},{children:"Free Credits left"}))]})),e(r,{completed:100,isAnimated:!1,height:16,color:o.content.negative})]})),e("div",{style:{height:"24px"}}),h?h.isLive?e(d,Object.assign({color:o.content.secondary},{children:"Contact support to add credits to make journey live for all your customers"})):e(d,Object.assign({color:o.content.secondary},{children:"Contact support to add credits to make journey live. You may turn on the journey in test mode to experience it."})):e(d,Object.assign({color:o.content.secondary},{children:g||"Contact support to add credits to generate replies using AI, and enjoy continued AI assistance!"})),e("div",{style:{height:"44px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"}},{children:[h?h.isLive?e(i,{buttonText:"Close",buttonType:"text",size:"small",onClick:x}):e(i,{buttonText:"Contact Support",buttonType:"secondary",size:"small",onClick:x}):e(i,{buttonText:"Learn More",buttonType:"text",size:"small",onClick:x}),(null==h?void 0:h.isLive)?e(i,{buttonText:"Contact Support",size:"small",style:{backgroundColor:o.background.brand},onClick:m}):e(i,{buttonText:"Turn on in Test Mode",size:"small",style:{backgroundColor:o.background.brand},onClick:m})]}))]}))}))};export{p as AiCreditsExhausted};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const AiCreditsLow: React.FC<{
3
+ open: boolean;
4
+ onModalClose: () => void;
5
+ onRightBtnClick: () => void;
6
+ onLeftBtnClick: () => void;
7
+ }>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as n}from"../../constants/Theme.js";import i from"../../assets/icons/alert_triangle.svg.js";import{Button as o}from"../button/Button.js";import{Modal as r}from"../modals/Modal.js";import{TitleLarge as s,BodyPrimary as l}from"../TypographyStyle.js";const d=d=>{let{open:c,onModalClose:a,onLeftBtnClick:p,onRightBtnClick:g}=d;return e(r,Object.assign({open:c,centralContainerStyles:{width:"498px",borderRadius:"12px"},onClose:a,closeOnOutsideClick:!0,zIndex:40},{children:t("div",Object.assign({style:{padding:"24px",display:"flex",flexDirection:"column",width:"100%"}},{children:[e("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"center"}},{children:e("div",Object.assign({style:{backgroundColor:n.background.negative.light,width:"64px",height:"64px",padding:"12px",borderRadius:"40px"}},{children:e(i,{width:40,height:40,color:n.content.negative})}))})),e("div",{style:{height:"32px"}}),e(s,{children:"Your AI Credits are running low"}),e("div",{style:{height:"24px"}}),e(l,Object.assign({color:n.content.secondary},{children:"Recharge your credits now to ensure uninterrupted service."})),e("div",{style:{height:"12px"}}),e("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"center"}},{children:e(l,Object.assign({color:n.content.secondary},{children:"Don’t let the growth stop. Add AI Credits"}))})),e("div",{style:{height:"32px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"}},{children:[e(o,{buttonText:"Close",buttonType:"text",size:"small",onClick:p}),e(o,{buttonText:"Contact Support",size:"small",style:{backgroundColor:n.background.brand},onClick:g})]}))]}))}))};export{d as AiCreditsLow};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const AiSyncProgress: React.FC<{
3
+ open: boolean;
4
+ onModalClose: () => void;
5
+ completedPercent: number;
6
+ onRightBtnClick: () => void;
7
+ onLeftBtnClick: () => void;
8
+ }>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as i}from"../../constants/Theme.js";import o from"../../assets/icons/sync.svg.js";import{Button as n}from"../button/Button.js";import{Modal as s}from"../modals/Modal.js";import{ProgressBarComponent as l}from"../progress-bar/ProgressBarComponent.js";import{TitleLarge as r,BodyPrimary as c}from"../TypographyStyle.js";const a=a=>{let{open:d,onModalClose:p,completedPercent:m,onLeftBtnClick:h,onRightBtnClick:g}=a;return e(s,Object.assign({open:d,centralContainerStyles:{width:"498px",height:"324px",borderRadius:"12px"},onClose:p,closeOnOutsideClick:!0,zIndex:40},{children:t("div",Object.assign({style:{padding:"24px",display:"flex",flexDirection:"column"}},{children:[e("div",Object.assign({style:{display:"flex",justifyContent:"center"}},{children:e(r,{children:"Wait for Sync to complete"})})),e("div",{style:{height:"24px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:"12px"}},{children:[e(o,{width:24,height:24}),e(c,Object.assign({color:"#616161"},{children:"Syncing Shopify Store Data..."}))]})),e(l,{completed:m,isAnimated:!1,height:16,color:i.background.positive.vibrant})]})),e("div",{style:{height:"24px"}}),e(c,Object.assign({color:i.content.secondary},{children:"You can start replying with AI after sync is complete. In the meanwhile, learn how to leverage AI for maximum efficiency"})),e("div",{style:{height:"32px"}}),t("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"12px"}},{children:[e(n,{buttonText:"Close",buttonType:"text",size:"small",onClick:h}),e(n,{buttonText:"Explore Bik.ai",size:"small",style:{backgroundColor:i.background.brand},onClick:g})]}))]}))}))};export{a as AiSyncProgress};
@@ -0,0 +1,4 @@
1
+ export * from './ActivateBikAI';
2
+ export * from './AiSyncProgress';
3
+ export * from './AiCreditsExhausted';
4
+ export * from './AiCreditsLow';
@@ -1 +1 @@
1
- import t from"@emotion/styled/base";import{jsx as o,Fragment as e,jsxs as r}from"react/jsx-runtime";import i from"../../../../utils/StringUtils.js";import{COLORS as g}from"../../../../constants/Theme.js";import"../../../../constants/zindex.js";import{useState as s,useEffect as p}from"react";import"../../../checkBox/CheckBox.styled.js";import{TitleMedium as I}from"../../../TypographyStyle.js";import"../../../list-item/ListItem.js";import"../../../pagination/Pagination.js";import"../../../radioButton/RadioButton.styled.js";import"react-dom";import"react-toastify";import"../../../toaster/Toaster.styled.js";import"../../../tooltips/Tooltip.js";import"../../../spinner/Spinner.js";import"../../../stepper/Stepper.styled.js";import"../../../tag/Tag.js";import"../../../icon-button/IconButton.js";import"../../../template-preview/TemplatePreview.js";import"../../../template-preview/WhatsApp/WhatsAppLikePreview.js";import"../../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js";import"../../../curtain/CurtainHelper.js";import"../../../variable-picker-v3/model.js";import"../../../template-preview/models/TemplateMeta.js";import"../../../template-preview/models/WhatsAppTemplate.js";import"lodash";import"../../../modals/styledModal.js";import"../../../template-preview/models/Channels.js";import"../../../template-context-mapper/context/templateModalContext.js";import"../../../template-context-mapper/modalElements/Footer.js";import"../../../template-context-mapper/modalElements/Body.js";import"../../../template-context-mapper/modalElements/Header.js";import"../../../zeroState/ZeroState.js";import"../../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../../button/Button.js";import"../../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../../input/Input.js";import"react-bootstrap";import"../../../floating-action-button/FloatingActionButton.styles.js";import"../../../image-compress/ImageCompress.js";import"../../../progress-bar/ProgressBarComponent.js";import"../../../progress-bar-v2/ProgressBarV2.js";import"../../../QueryBuilder/QueryBuilder.js";import"../../../QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";import"../../../QueryBuilder/constants/connectorPosition.js";import"../../../QueryBuilder/constants/connector.js";import"../../../QueryBuilder/types/QueryBuilder.type.js";import"../../../dropdown/Dropdown.js";import"../../../QueryBuilder/components/InputLoader.js";import"../../../QueryBuilder/components/Connectors/Components/EmojiPicker.js";import"react-chips";import"../../../input/ChipInput.styled.js";import"../../../QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js";import"../../../QueryBuilder/components/Connectors/Components/IgPicker.js";import"../../../QueryBuilder/components/Connectors/Components/InTheLast.js";import"../../../QueryBuilder/components/Connectors/Components/InTwoLast.js";import"react-calendar";import"../../../../utils/DateUtils.js";import"../../../datePicker/DatePickerWrapper.styled.js";import"../../../QueryBuilder/components/Connectors/Connector.styled.js";import"../../../QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.styled.js";import"../../../QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.styled.js";import"../../../QueryBuilder/redux/queryBuilder.reducer.js";import"../../../QueryBuilder/redux/queryBuilderCache.reducer.js";import"../../../QueryBuilder/types/QueryBuilderOperator.type.js";import"../../../dropdown/DropdownPopover/index.js";import"../../../dropdown/ChipDropdown.js";import"../../../dropdown/MenuItem/MenuItem.js";import"../../../shimmer/ShimmerComponent/ShimmerStyled.js";import"../../../analytics-card/AnalyticsCard.styled.js";import"../../CommonStyles.js";import"../../../datePicker/DatePicker.styled.js";import"../../AnalyticsMetric.js";import"../LineChart/LineChart.js";import"../linearChipGroupedChart/LinearChipGroupedChart.styled.js";import{PieChart as C}from"./PieChart.js";import"../HorizontalBarGraph/HorizontalGraph.js";import"../StackedBarChart/StackedBarChart.js";import"../StackedBarChart/StackedBarDistributionChart.js";import"../StackedBarChart/StackedBarDistributionChart.model.js";import"../VerticalBarGraph/VerticalGraph.js";import"../heatmap/HeatMap.js";import"../heatmap/HeatMapVertical.js";import"../VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";import"../../../avatar/Avatar.js";import"../../../avatar/AvatarHelper.js";import"../../../alerts/Alert.styled.js";import"../../../alerts/AlertHelper.js";import"../../../thumbnail/Thumbnail.js";import"../../../curtain/Curtain.styled.js";import"../../../switch/Switch.js";import"../../../plans/SubscriptionPlanStyled.js";import"../../../plans/SubscriptionPlanSelector.js";import"../../../plans/SubscriptionPlansCollected.js";import"../../../tabs/Tabs.js";import"../../../TablePagination/TablePagination.styled.js";import"../../../TablePagination/TablePaginationCard.js";import"../../../states/StateComponent.js";import"../../../../_virtual/_tslib.js";import"../../../WhatsAppTextEditor/WhatsAppTextEditor.js";import"../../../WhatsAppTextEditor/WhatsAppTextEditorHeader.js";import"../../../card-selection-modal/CardSelectionModal.styled.js";import"react-image-crop";import"../../../buttonGroup/ButtonGroupStyle.js";import"../../../accordion/Accordion.style.js";import"../../../accordion/AccordionArrow.js";import"../../../file-uploader/FileUploaderStyle.js";import"../../../colourInput/ColourInput.styled.js";import"../../../bik-layout/CommonStyles.js";import"../../../navigation-hyperlink/NavigationHyperlink.js";import"../../../bik-layout/SidebarStyles.js";import"date-fns";import"react-popper";import"../../../dropdown/Common.styled.js";import"../../../custom-date-time/CustomDateTime.styled.js";import"../../../../node_modules/lodash.debounce/index.js";import"../../../product-picker/ProductPicker.styled.js";import"../../../discount-modal/type.js";import"../../../product-picker-v2/modal.js";import"../../../discount-modal/DiscountModal.styled.js";import"../../../discount-modal/DynamicCoupon/DynamicCoupon.js";import"../../../discount-modal/CouponExpiration/CouponExpiration.js";import"../../../country-code-picker/CountryCodePicker.styled.js";import"../../../carousel/carousel.js";import"../../../carousel-secondary/CarouselSecondary.style.js";import"../../../access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.styles.js";import"../../../radioList/RadioList.styled.js";import"../../../checkList/CheckList.styled.js";import"../../../postPicker/postPicker.js";import"../../../dropdown-button/DropdownButton.style.js";import"../../../side-modal/SideModal.style.js";import"../../../add-variableV2/AddVariableV2.styled.js";import"../../../modals/modal.styled.js";import"../../../SearchFilter/types/SearchFilter.type.js";import"../../../SearchFilter/components/DatePickerButton.js";import"../../../SearchFilter/components/DateRangeOnlyButton.js";import"../../../input-with-vars/InputWithVariables.js";import"../../../star-rating/StarRating.js";import"../../../dashboard-review-popup/components/FiveStar.styled.js";import"../../../dashboard-review-popup/components/Form.styled.js";import"../../../dashboard-review-popup/components/ZeroState.js";import"../../../dashboard-review-popup/DashboardReviewPopUp.styled.js";import"../../../testimonial-card/TestimonialCard.style.js";import"../../../slider/slider.js";import"react-slick";import"../../../carousel-preview/CarouselPreview.style.js";import"../../../card-selector/CardSelector.styled.js";import"../../../variable-picker-v3/NoResult.js";import"../../../variable-picker-v3/styles.js";import"../../../action-button/ActionButton.styled.js";import{Chart as c,ArcElement as a,Legend as l}from"chart.js";import{Doughnut as d}from"react-chartjs-2";c.register(a,l);const A={plugins:{legend:{display:!1},tooltip:{enabled:!0,callbacks:{label:t=>{if(!t.label)return" 0%";const o=t.dataset.data.reduce(((t,o)=>t+o),0),e=parseFloat((t.raw/o*100).toFixed(1));return` ${t.label}: ${e}%`}}}}},m=["#5E07BB","#9E77ED","#D2AEFF","#CDE1FF","#92AFFA","#3935E1"],n=t("div","production"===process.env.NODE_ENV?{target:"elaov7f0"}:{target:"elaov7f0",label:"CartStyled"})("background:",(t=>g.surface.standard),";border:1px solid ",(t=>g.stroke.primary),";border-radius:4px;"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBpZUNoYXJ0QW5hbHl0aWNzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQzhCIiwiZmlsZSI6IlBpZUNoYXJ0QW5hbHl0aWNzLnRzeCIsInNvdXJjZXNDb250ZW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cmRlcldpZHRoOiAwLFxyXG4gICAgICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICBdLFxyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICBzZXREYXRhKGRhdGFTZXQpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgY29uc3QgZGF0YVNldCA9IHtcclxuICAgICAgICAgICAgICAgIGxhYmVsczogc2xpY2VzLm1hcCgoc2xpY2UpID0+IFN0cmluZ1V0aWxzLmNhcGl0YWxpemUoc2xpY2UubmFtZSkpLFxyXG4gICAgICAgICAgICAgICAgZGF0YXNldHM6IFtcclxuICAgICAgICAgICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IHNsaWNlcy5tYXAoKHNsaWNlKSA9PiBzbGljZS5jb3VudCksXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogc2xpY2VzLm1hcCgoc2xpY2UsIGluZGV4KSA9PiB7IHZhciBfYTsgcmV0dXJuIChfYSA9IHNsaWNlLmNvbG9yKSAhPT0gbnVsbCAmJiBfYSAhPT0gdm9pZCAwID8gX2EgOiBHUkFQSF9DT0xPUlNbaW5kZXggJSBHUkFQSF9DT0xPUlMubGVuZ3RoXTsgfSksXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJvcmRlckNvbG9yOiBbJ3doaXRlJywgJ3doaXRlJywgJ3doaXRlJywgJ3doaXRlJywgJ3doaXRlJywgJ3doaXRlJ10sXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJvcmRlcldpZHRoOiA0LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBib3JkZXJSYWRpdXM6IDgsXHJcbiAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIF0sXHJcbiAgICAgICAgICAgIH07XHJcbiAgICAgICAgICAgIHNldERhdGEoZGF0YVNldCk7XHJcbiAgICAgICAgfVx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gICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNwbGF5OiAnZmxleCcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGp1c3RpZnlDb250ZW50OiAnY2VudGVyJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSB9LCB7IGNoaWxkcmVuOiBfanN4KFBpZUNoYXJ0LCB7IHNsaWNlczogc2xpY2VzV2l0aENvbG9yIH0pIH0pKV0gfSkpXSB9KSk7XHJcbn07XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVBpZUNoYXJ0QW5hbHl0aWNzLmpzLm1hcCJdfQ== */")),b=t=>o(n,Object.assign({style:{padding:24}},{children:t.children})),u=t=>{let{title:g,slices:c,size:a}=t;const[l,n]=s([]),[b,u]=s();return p((()=>{const t=c.reduce(((t,o)=>t+o.count),0);let o=[];if(o=Object.keys(c).map(((t,o)=>Object.assign({color:m[o%m.length]},c[t]))),n([...o]),0===t){u({datasets:[{data:[100],backgroundColor:["#F0F0F0"],borderWidth:0}]})}else{const t={labels:c.map((t=>i.capitalize(t.name))),datasets:[{data:c.map((t=>t.count)),backgroundColor:c.map(((t,o)=>{var e;return null!==(e=t.color)&&void 0!==e?e:m[o%m.length]})),borderColor:["white","white","white","white","white","white"],borderWidth:4,borderRadius:8}]};u(t)}}),[c]),b?r(e,{children:[g&&o(I,Object.assign({style:{marginBottom:16}},{children:g})),r("div",Object.assign({className:"row"},{children:[o("div",Object.assign({className:"col-6"},{children:o("div",Object.assign({style:{width:a,height:a}},{children:o(d,{data:b,options:Object.assign(Object.assign({},A),{maintainAspectRatio:!a})})}))})),o("div",Object.assign({className:"col-6",style:{paddingLeft:48,display:"flex",flexDirection:"column",justifyContent:"center"}},{children:o(C,{slices:l})}))]}))]}):o(e,{})};export{b as Card,u as PieChartAnalytics};
1
+ import t from"@emotion/styled/base";import{jsx as o,Fragment as e,jsxs as r}from"react/jsx-runtime";import i from"../../../../utils/StringUtils.js";import{COLORS as g}from"../../../../constants/Theme.js";import"../../../../constants/zindex.js";import{useState as s,useEffect as I}from"react";import"../../../checkBox/CheckBox.styled.js";import{TitleMedium as p}from"../../../TypographyStyle.js";import"../../../list-item/ListItem.js";import"../../../pagination/Pagination.js";import"../../../radioButton/RadioButton.styled.js";import"react-dom";import"react-toastify";import"../../../toaster/Toaster.styled.js";import"../../../tooltips/Tooltip.js";import"../../../spinner/Spinner.js";import"../../../stepper/Stepper.styled.js";import"../../../tag/Tag.js";import"../../../icon-button/IconButton.js";import"../../../template-preview/TemplatePreview.js";import"../../../template-preview/WhatsApp/WhatsAppLikePreview.js";import"../../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js";import"../../../curtain/CurtainHelper.js";import"../../../template-preview/models/TemplateMeta.js";import"../../../template-preview/models/WhatsAppTemplate.js";import"../../../modals/styledModal.js";import"../../../template-preview/models/Channels.js";import"../../../template-context-mapper/context/templateModalContext.js";import"../../../template-context-mapper/modalElements/Footer.js";import"../../../template-context-mapper/modalElements/Body.js";import"../../../template-context-mapper/modalElements/Header.js";import"../../../zeroState/ZeroState.js";import"../../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../../button/Button.js";import"../../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../../input/Input.js";import"react-bootstrap";import"../../../floating-action-button/FloatingActionButton.styles.js";import"../../../image-compress/ImageCompress.js";import"../../../progress-bar/ProgressBarComponent.js";import"../../../progress-bar-v2/ProgressBarV2.js";import"../../../QueryBuilder/QueryBuilder.js";import"../../../QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";import"../../../QueryBuilder/constants/connectorPosition.js";import"../../../QueryBuilder/constants/connector.js";import"../../../QueryBuilder/types/QueryBuilder.type.js";import"../../../dropdown/Dropdown.js";import"../../../QueryBuilder/components/InputLoader.js";import"../../../QueryBuilder/components/Connectors/Components/EmojiPicker.js";import"react-chips";import"../../../input/ChipInput.styled.js";import"../../../QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js";import"../../../QueryBuilder/components/Connectors/Components/IgPicker.js";import"../../../QueryBuilder/components/Connectors/Components/InTheLast.js";import"../../../QueryBuilder/components/Connectors/Components/InTwoLast.js";import"react-calendar";import"../../../../utils/DateUtils.js";import"../../../datePicker/DatePickerWrapper.styled.js";import"../../../QueryBuilder/components/Connectors/Connector.styled.js";import"../../../QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.styled.js";import"../../../QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.styled.js";import"../../../QueryBuilder/redux/queryBuilder.reducer.js";import"../../../QueryBuilder/redux/queryBuilderCache.reducer.js";import"../../../QueryBuilder/types/QueryBuilderOperator.type.js";import"../../../dropdown/DropdownPopover/index.js";import"../../../dropdown/ChipDropdown.js";import"../../../dropdown/MenuItem/MenuItem.js";import"../../../shimmer/ShimmerComponent/ShimmerStyled.js";import"../../../analytics-card/AnalyticsCard.styled.js";import"../../CommonStyles.js";import"../../../datePicker/DatePicker.styled.js";import"../../AnalyticsMetric.js";import"../LineChart/LineChart.js";import"../linearChipGroupedChart/LinearChipGroupedChart.styled.js";import{PieChart as C}from"./PieChart.js";import"../HorizontalBarGraph/HorizontalGraph.js";import"../StackedBarChart/StackedBarChart.js";import"../StackedBarChart/StackedBarDistributionChart.js";import"../StackedBarChart/StackedBarDistributionChart.model.js";import"../VerticalBarGraph/VerticalGraph.js";import"../heatmap/HeatMap.js";import"../heatmap/HeatMapVertical.js";import"../VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";import"../../../avatar/Avatar.js";import"../../../avatar/AvatarHelper.js";import"../../../alerts/Alert.styled.js";import"../../../alerts/AlertHelper.js";import"../../../thumbnail/Thumbnail.js";import"../../../curtain/Curtain.styled.js";import"../../../switch/Switch.js";import"../../../plans/SubscriptionPlanStyled.js";import"../../../plans/SubscriptionPlanSelector.js";import"../../../plans/SubscriptionPlansCollected.js";import"../../../tabs/Tabs.js";import"../../../TablePagination/TablePagination.styled.js";import"../../../TablePagination/TablePaginationCard.js";import"../../../states/StateComponent.js";import"../../../../_virtual/_tslib.js";import"../../../WhatsAppTextEditor/WhatsAppTextEditor.js";import"../../../WhatsAppTextEditor/WhatsAppTextEditorHeader.js";import"../../../card-selection-modal/CardSelectionModal.styled.js";import"react-image-crop";import"../../../buttonGroup/ButtonGroupStyle.js";import"../../../accordion/Accordion.style.js";import"../../../accordion/AccordionArrow.js";import"../../../file-uploader/FileUploaderStyle.js";import"../../../colourInput/ColourInput.styled.js";import"../../../bik-layout/CommonStyles.js";import"../../../navigation-hyperlink/NavigationHyperlink.js";import"../../../bik-layout/SidebarStyles.js";import"date-fns";import"react-popper";import"../../../dropdown/Common.styled.js";import"../../../custom-date-time/CustomDateTime.styled.js";import"../../../../node_modules/lodash.debounce/index.js";import"../../../product-picker/ProductPicker.styled.js";import"../../../discount-modal/type.js";import"../../../product-picker-v2/modal.js";import"../../../discount-modal/DiscountModal.styled.js";import"../../../discount-modal/DynamicCoupon/DynamicCoupon.js";import"../../../discount-modal/CouponExpiration/CouponExpiration.js";import"../../../country-code-picker/CountryCodePicker.styled.js";import"../../../carousel/carousel.js";import"../../../carousel-secondary/CarouselSecondary.style.js";import"../../../access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.styles.js";import"../../../radioList/RadioList.styled.js";import"../../../checkList/CheckList.styled.js";import"../../../postPicker/postPicker.js";import"../../../dropdown-button/DropdownButton.style.js";import"../../../side-modal/SideModal.style.js";import"../../../add-variableV2/AddVariableV2.styled.js";import"../../../modals/modal.styled.js";import"../../../SearchFilter/types/SearchFilter.type.js";import"../../../SearchFilter/components/DatePickerButton.js";import"../../../SearchFilter/components/DateRangeOnlyButton.js";import"../../../input-with-vars/InputWithVariables.js";import"../../../star-rating/StarRating.js";import"../../../dashboard-review-popup/components/FiveStar.styled.js";import"../../../dashboard-review-popup/components/Form.styled.js";import"../../../dashboard-review-popup/components/ZeroState.js";import"../../../dashboard-review-popup/DashboardReviewPopUp.styled.js";import"../../../testimonial-card/TestimonialCard.style.js";import"../../../slider/slider.js";import"react-slick";import"../../../carousel-preview/CarouselPreview.style.js";import"../../../card-selector/CardSelector.styled.js";import"../../../action-button/ActionButton.styled.js";import{Chart as c,ArcElement as a,Legend as l}from"chart.js";import{Doughnut as A}from"react-chartjs-2";c.register(a,l);const d={plugins:{legend:{display:!1},tooltip:{enabled:!0,callbacks:{label:t=>{if(!t.label)return" 0%";const o=t.dataset.data.reduce(((t,o)=>t+o),0),e=parseFloat((t.raw/o*100).toFixed(1));return` ${t.label}: ${e}%`}}}}},n=["#5E07BB","#9E77ED","#D2AEFF","#CDE1FF","#92AFFA","#3935E1"],m=t("div","production"===process.env.NODE_ENV?{target:"elaov7f0"}:{target:"elaov7f0",label:"CartStyled"})("background:",(t=>g.surface.standard),";border:1px solid ",(t=>g.stroke.primary),";border-radius:4px;"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBpZUNoYXJ0QW5hbHl0aWNzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQzhCIiwiZmlsZSI6IlBpZUNoYXJ0QW5hbHl0aWNzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGpzeCBhcyBfanN4LCBGcmFnbWVudCBhcyBfRnJhZ21lbnQsIGpzeHMgYXMgX2pzeHMgfSBmcm9tIFwicmVhY3QvanN4LXJ1bnRpbWVcIjtcclxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1x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ldFNsaWNlc1dpdGhDb2xvcl0gPSB1c2VTdGF0ZShbXSk7XHJcbiAgICBjb25zdCBbZGF0YSwgc2V0RGF0YV0gPSB1c2VTdGF0ZSgpO1xyXG4gICAgdXNlRWZmZWN0KCgpID0+IHtcclxuICAgICAgICBjb25zdCB0b3RhbFN1bSA9IHNsaWNlcy5yZWR1Y2UoKHN1bSwgc2xpY2UpID0+IHN1bSArIHNsaWNlLmNvdW50LCAwKTtcclxuICAgICAgICBsZXQgdXBkYXRlZFNsaWNlc1dpdGhDb2xvciA9IFtdO1xyXG4gICAgICAgIHVwZGF0ZWRTbGljZXNXaXRoQ29sb3IgPSBPYmplY3Qua2V5cyhzbGljZXMpLm1hcCgoa2V5LCBpbmRleCkgPT4gKE9iamVjdC5hc3NpZ24oeyBjb2xvcjogR1JBUEhfQ09MT1JTW2luZGV4ICUgR1JBUEhfQ09MT1JTLmxlbmd0aF0gfSwgc2xpY2VzW2tleV0pKSk7XHJcbiAgICAgICAgc2V0U2xpY2VzV2l0aENvbG9yKFsuLi51cGRhdGVkU2xpY2VzV2l0aENvbG9yXSk7XHJcbiAgICAgICAgaWYgKHRvdGFsU3VtID09PSAwKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IGRhdGFTZXQgPSB7XHJcbiAgICAgICAgICAgICAgICBkYXRhc2V0czogW1xyXG4gICAgICAgICAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YTogWzEwMF0sXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogWycjRjBGMEYwJ10sXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJvcmRlcldpZHRoOiAwLFxyXG4gICAgICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICBdLFxyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICBzZXREYXRhKGRhdGFTZXQpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgY29uc3QgZGF0YVNldCA9IHtcclxuICAgICAgICAgICAgICAgIGxhYmVsczogc2xpY2VzLm1hcCgoc2xpY2UpID0+IFN0cmluZ1V0aWxzLmNhcGl0YWxpemUoc2xpY2UubmFtZSkpLFxyXG4gICAgICAgICAgICAgICAgZGF0YXNldHM6IFtcclxuICAgICAgICAgICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IHNsaWNlcy5tYXAoKHNsaWNlKSA9PiBzbGljZS5jb3VudCksXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogc2xpY2VzLm1hcCgoc2xpY2UsIGluZGV4KSA9PiB7IHZhciBfYTsgcmV0dXJuIChfYSA9IHNsaWNlLmNvbG9yKSAhPT0gbnVsbCAmJiBfYSAhPT0gdm9pZCAwID8gX2EgOiBHUkFQSF9DT0xPUlNbaW5kZXggJSBHUkFQSF9DT0xPUlMubGVuZ3RoXTsgfSksXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJvcmRlckNvbG9yOiBbJ3doaXRlJywgJ3doaXRlJywgJ3doaXRlJywgJ3doaXRlJywgJ3doaXRlJywgJ3doaXRlJ10sXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGJvcmRlcldpZHRoOiA0LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBib3JkZXJSYWRpdXM6IDgsXHJcbiAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIF0sXHJcbiAgICAgICAgICAgIH07XHJcbiAgICAgICAgICAgIHNldERhdGEoZGF0YVNldCk7XHJcbiAgICAgICAgfVxyXG4gICAgfSwgW3NsaWNlc10pO1xyXG4gICAgaWYgKCFkYXRhKSB7XHJcbiAgICAgICAgcmV0dXJuIF9qc3goX0ZyYWdtZW50LCB7fSk7XHJcbiAgICB9XHJcbiAgICByZXR1cm4gKF9qc3hzKF9GcmFnbWVudCwgeyBjaGlsZHJlbjogW3RpdGxlICYmIChfanN4KFRpdGxlTWVkaXVtLCBPYmplY3QuYXNzaWduKHsgc3R5bGU6IHtcclxuICAgICAgICAgICAgICAgICAgICBtYXJnaW5Cb3R0b206IDE2LFxyXG4gICAgICAgICAgICAgICAgfSB9LCB7IGNoaWxkcmVuOiB0aXRsZSB9KSkpLCBfanN4cyhcImRpdlwiLCBPYmplY3QuYXNzaWduKHsgY2xhc3NOYW1lOiAncm93JyB9LCB7IGNoaWxkcmVuOiBbX2pzeChcImRpdlwiLCBPYmplY3QuYXNzaWduKHsgY2xhc3NOYW1lOiAnY29sLTYnIH0sIHsgY2hpbGRyZW46IF9qc3goXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IHNpemUsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiBzaXplLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSB9LCB7IGNoaWxkcmVuOiBfanN4KERvdWdobnV0LCB7IGRhdGE6IGRhdGEsIG9wdGlvbnM6IE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSwgb3B0aW9ucyksIHsgbWFpbnRhaW5Bc3BlY3RSYXRpbzogc2l6ZSA/IGZhbHNlIDogdHJ1ZSB9KSB9KSB9KSkgfSkpLCBfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjbGFzc05hbWU6ICdjb2wtNicsIHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYWRkaW5nTGVmdDogNDgsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNwbGF5OiAnZmxleCcsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGp1c3RpZnlDb250ZW50OiAnY2VudGVyJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSB9LCB7IGNoaWxkcmVuOiBfanN4KFBpZUNoYXJ0LCB7IHNsaWNlczogc2xpY2VzV2l0aENvbG9yIH0pIH0pKV0gfSkpXSB9KSk7XHJcbn07XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVBpZUNoYXJ0QW5hbHl0aWNzLmpzLm1hcCJdfQ== */")),b=t=>o(m,Object.assign({style:{padding:24}},{children:t.children})),u=t=>{let{title:g,slices:c,size:a}=t;const[l,m]=s([]),[b,u]=s();return I((()=>{const t=c.reduce(((t,o)=>t+o.count),0);let o=[];if(o=Object.keys(c).map(((t,o)=>Object.assign({color:n[o%n.length]},c[t]))),m([...o]),0===t){u({datasets:[{data:[100],backgroundColor:["#F0F0F0"],borderWidth:0}]})}else{const t={labels:c.map((t=>i.capitalize(t.name))),datasets:[{data:c.map((t=>t.count)),backgroundColor:c.map(((t,o)=>{var e;return null!==(e=t.color)&&void 0!==e?e:n[o%n.length]})),borderColor:["white","white","white","white","white","white"],borderWidth:4,borderRadius:8}]};u(t)}}),[c]),b?r(e,{children:[g&&o(p,Object.assign({style:{marginBottom:16}},{children:g})),r("div",Object.assign({className:"row"},{children:[o("div",Object.assign({className:"col-6"},{children:o("div",Object.assign({style:{width:a,height:a}},{children:o(A,{data:b,options:Object.assign(Object.assign({},d),{maintainAspectRatio:!a})})}))})),o("div",Object.assign({className:"col-6",style:{paddingLeft:48,display:"flex",flexDirection:"column",justifyContent:"center"}},{children:o(C,{slices:l})}))]}))]}):o(e,{})};export{b as Card,u as PieChartAnalytics};
@@ -1 +1 @@
1
- import{__rest as e}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import a,{forwardRef as s}from"react";import{Spinner as r}from"../spinner/Spinner.js";import{Button as o,ButtonCustomDashedBorder as c}from"./Button.styled.js";import{getButtonIconColor as d,SpinnerColorMap as l,GetButtonTextComponent as m}from"./themes.js";const b=s(((s,b)=>{var{version:h,id:p,buttonType:g="primary",size:v="small",buttonText:u,disabled:j,IconComponent:N,LeadingIcon:y,TrailingIcon:O,isLoading:f,inverse:k,onClick:T,matchParentWidth:x,subtitle:I,darkMode:C,activated:L,error:z}=s,W=e(s,["version","id","buttonType","size","buttonText","disabled","IconComponent","LeadingIcon","TrailingIcon","isLoading","inverse","onClick","matchParentWidth","subtitle","darkMode","activated","error"]);const B=m(v,g),E="chip"===v?16:20,M={height:E,width:E,color:d(v,g,k,j,f,C),style:{display:"block"},className:"icon"};return t(o,Object.assign({"data-test":W["data-test"],version:h,onClick:f?()=>{}:T,ref:b,id:p,disabled:j,size:v,buttonType:g,isLoading:f,inverse:k,matchParentWidth:x,darkMode:C,activated:L,error:z},W,{children:i("div",Object.assign({className:"button-container"},{children:[g.startsWith("dash")&&t(c,{}),t("div",Object.assign({className:"overlay-container"},{children:f&&t(r,{className:"spinner",size:"small",color:l(g,k)})})),N&&t("div",Object.assign({className:"icon-component"},{children:a.createElement(N,M)})),y&&t("div",Object.assign({className:"icon-leading"},{children:a.createElement(y,M)})),u?i(B,Object.assign({className:"text"},{children:[u,t("div",Object.assign({className:"text-subtitle"},{children:I}))]})):t(n,{}),O&&t("div",Object.assign({className:"icon-trailing"},{children:a.createElement(O,M)}))]}))}))}));b.displayName="Button";export{b as Button};
1
+ import{__rest as e}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import s,{forwardRef as a}from"react";import{Spinner as r}from"../spinner/Spinner.js";import{Button as o,ButtonCustomDashedBorder as c}from"./Button.styled.js";import{getButtonIconColor as d,SpinnerColorMap as l,GetButtonTextComponent as m}from"./themes.js";const b=a(((a,b)=>{var{version:h,id:p,buttonType:g="primary",size:v="small",buttonText:u,disabled:j,IconComponent:y,LeadingIcon:N,TrailingIcon:x,isLoading:I,inverse:O,onClick:f,matchParentWidth:k,subtitle:T,darkMode:z,activated:C,error:L}=a,W=e(a,["version","id","buttonType","size","buttonText","disabled","IconComponent","LeadingIcon","TrailingIcon","isLoading","inverse","onClick","matchParentWidth","subtitle","darkMode","activated","error"]);const B=m(v,g,j),E="chip"===v?16:20,M={height:E,width:E,color:d(v,g,O,j,I,z),style:{display:"block"},className:"icon"};return t(o,Object.assign({"data-test":W["data-test"],version:h,onClick:I?()=>{}:f,ref:b,id:p,disabled:j,size:v,buttonType:g,isLoading:I,inverse:O,matchParentWidth:k,darkMode:z,activated:C,error:L},W,{children:i("div",Object.assign({className:"button-container"},{children:[g.startsWith("dash")&&t(c,{}),t("div",Object.assign({className:"overlay-container"},{children:I&&t(r,{className:"spinner",size:"small",color:l(g,O)})})),y&&t("div",Object.assign({className:"icon-component"},{children:s.createElement(y,M)})),N&&t("div",Object.assign({className:"icon-leading",style:{zIndex:1}},{children:s.createElement(N,M)})),u?i(B,Object.assign({className:"text"},{children:[u,t("div",Object.assign({className:"text-subtitle"},{children:T}))]})):t(n,{}),x&&t("div",Object.assign({className:"icon-trailing",style:{zIndex:1}},{children:s.createElement(x,M)}))]}))}))}));b.displayName="Button";export{b as Button};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export type Size = 'chip' | 'small' | 'medium' | 'large';
3
- export type Type = 'primary' | 'secondary' | 'tertiary' | 'tertiaryGray' | 'destructive' | 'dashBold' | 'dashRegular' | 'text';
3
+ export type Type = 'primary' | 'secondary' | 'tertiary' | 'tertiaryGray' | 'destructive' | 'dashBold' | 'dashRegular' | 'text' | 'ai';
4
4
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  'data-test'?: string;
6
6
  /**
@@ -3,14 +3,14 @@ export declare const getBackgroundColor: (type: Type, size: Size, inverse?: bool
3
3
  export declare const getColor: (type: Type, size: Size, inverse?: boolean, darkMode?: boolean) => string;
4
4
  export declare const getDisabledTextColor: (inverse?: boolean) => string;
5
5
  export declare const getPadding: (type: Type, size: Size) => "0px" | "4px 8px" | "6px 4px" | "6px 12px" | "10px 4px" | "10px 12px" | "14px 4px" | "14px 12px" | undefined;
6
- export declare const GetButtonTextComponent: (size: Size, type: Type) => import("styled-components").StyledComponent<"div", any, {
6
+ export declare const GetButtonTextComponent: (size: Size, type: Type, disabled?: boolean) => import("styled-components").StyledComponent<"div", any, {
7
7
  numberOfLines?: number | undefined;
8
8
  color?: string | undefined;
9
9
  }, never>;
10
10
  export declare const getBorderColor: (type: Type, inverse?: boolean, error?: boolean) => string;
11
11
  export declare const getBorder: (version: '1.0' | '2.0', type: Type, size: Size, inverse?: boolean, error?: boolean) => string;
12
12
  export declare const getLinearGradientValue: (size: Size) => string;
13
- export declare const getHoverButtonBackground: (type: Type, inverse?: boolean) => "" | "background-color:transparent;" | "background-color: #000000;\n\t\t\t\topacity: 0.03;";
13
+ export declare const getHoverButtonBackground: (type: Type, inverse?: boolean) => string;
14
14
  export declare const getHoverButtonTextDecorationStyle: (type: Type, disabled?: boolean) => string;
15
15
  export declare const generateInverseHoverBackground: (type: Type, disabled?: boolean) => string;
16
16
  export declare const generateDisabledStyling: (type: Type, size: Size, inverse?: boolean) => string;
@@ -1 +1 @@
1
- import{COLORS as t}from"../../constants/Theme.js";import{BodySecondary as r,BodyCaption as n,ButtonRegular as e,ButtonLarge as a}from"../TypographyStyle.js";const o=(r,n,e,a)=>{if("chip"===n)return"text"===r?"transparent":a?t.surface.hovered:t.surface.subdued;switch(r){case"primary":return e?t.background.warning.vibrant:t.background.inverseLight;case"destructive":return t.background.negative.vibrant;default:return"transparent"}},i=(r,n,e,a)=>{if("chip"===n)return"text"===r?e?t.content.inactive:t.content.brand:a?t.content.primary:t.content.secondary;switch(r){case"primary":return e?t.content.primary:t.content.primaryInverse;case"tertiaryGray":case"dashBold":case"dashRegular":return t.content.secondary;case"destructive":return t.content.primaryInverse;default:return e?t.content.primaryInverse:t.stroke.brand}},c=r=>r?"rgba(255, 255, 255, 0.5)":t.content.inactive,d=(t,r)=>{if("text"===t)return"0px";if("chip"===r)return"4px 8px";if("small"===r)switch(t){case"tertiary":case"tertiaryGray":return"6px 4px";default:return"6px 12px"}else if("medium"===r)switch(t){case"tertiary":case"tertiaryGray":return"10px 4px";default:return"10px 12px"}else if("large"===r)switch(t){case"tertiary":case"tertiaryGray":return"14px 4px";default:return"14px 12px"}},s=(t,o)=>"dashRegular"===o?r:"chip"===t?n:"small"===t?e:a,p=(r,n,e)=>e?t.stroke.negative.vibrant:n?t.surface.standard:"secondary"==r?t.stroke.brand:t.content.placeholder,b=(r,n,e,a,o)=>"text"==n?"border: none;":"chip"===e?`border: ${"2.0"===r?.5:1}px solid ${t.stroke.primary};`:a?"secondary"===n?`border: ${"2.0"===r?.5:1}px solid ${p(n,a,o)};`:"border: none;":"secondary"===n?`border: ${"2.0"===r?.5:1}px solid ${p(n,!1,o)};`:"border: none;",g=t=>"medium"===t?"5px,\n\t\ttransparent 5px,\n\t\ttransparent 10px":"6px,\n\t\ttransparent 6px,\n\t\ttransparent 12px",u=(t,r)=>"text"===t?"background-color:transparent;":r||"primary"===t?"":"background-color: #000000;\n\t\t\t\topacity: 0.03;",l=(r,n)=>n?"":`text-decoration-line: underline;\n\t\t\ttext-decoration-color: ${t.content.brand};`,h=(r,n)=>n?"":"primary"===r?`background-color: ${t.stroke.warning.lightAlt};`:"background-color: rgba(255, 255, 255, 0.1)",y=(r,n,e)=>"chip"===n?"background-color: transparent;":"primary"===r||"destructive"===r?e?"background-color: rgba(255,255,255,0.3);":`background-color: ${t.background.inactive};`:"secondary"===r?e?"border: 1px solid rgba(255, 255, 255, 0.5);":`border: 1px solid ${t.stroke.primary};`:"",x=function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p(t,!1);return`\n\t.line-top {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${g(r)}\n\t\t);\n\t}\n\t.line-right {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${g(r)}\n\t\t);\n\t}\n\t.line-bottom {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${g(r)}\n\t\t);\n\t}\n\t.line-left {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${g(r)}\n\t\t);\n\t}\n\t`},k=(r,n,e)=>"text"===r?`background-color: ${t.background.brandLight};\n\t\t\ttext-decoration-line: underline;\n\t\t\ttext-decoration-color: ${t.content.brand};`:"chip"===n?`border: 1px solid ${t.stroke.brandLightAlt};\n\t\tbackground-color: ${t.background.brandLight};`:"primary"===r||"destructive"===r?e?`background-color: ${t.background.warning.vibrant} !important;\n\t\t\tbox-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);\n\t\t\t`:"box-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);":"secondary"===r||"tertiary"===r||"tertiaryGray"===r||r.startsWith("dash")?e?`background-color: ${t.background.inverseLight} !important;`:`background-color: ${t.background.brandLight};`:void 0,m=(r,n,e)=>"chip"===n?`background-color: ${t.background.base};`:"primary"===r?`background-color: ${e?t.background.warning.vibrant:t.background.brandLight};`:"destructive"===r?`background-color: ${t.background.negative.light};`:"background-color: transparent;",v=(r,n,e)=>"chip"===n?"border: none;":"secondary"===r?e?`border: 1px solid ${t.content.secondary};`:`border: 1px solid ${t.stroke.brandLightAlt};`:"",$=(r,n)=>n?"primary"===r?t.content.primary:t.content.primaryInverse:"destructive"===r?t.content.negative:t.content.brand,f=(r,n,e,a,o,i)=>"chip"===r?a?t.content.inactive:i?t.content.primary:t.content.secondary:o?"transparent":"primary"===n||"destructive"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primary:a?t.content.inactive:t.content.primaryInverse:"secondary"===n||"tertiary"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primaryInverse:a?t.content.inactive:t.content.brand:"tertiaryGray"===n||n.startsWith("dash")?a?t.content.inactive:t.content.secondary:void 0;export{s as GetButtonTextComponent,$ as SpinnerColorMap,y as generateDisabledStyling,h as generateInverseHoverBackground,o as getBackgroundColor,b as getBorder,p as getBorderColor,f as getButtonIconColor,k as getClickEffect,i as getColor,x as getDashedBorderStyling,c as getDisabledTextColor,u as getHoverButtonBackground,l as getHoverButtonTextDecorationStyle,g as getLinearGradientValue,m as getLoadingBackground,v as getLoadingBorder,d as getPadding};
1
+ import{COLORS as t}from"../../constants/Theme.js";import{ButtonRegularAI as r,ButtonLargeAI as n,BodySecondary as e,BodyCaption as a,ButtonRegular as o,ButtonLarge as i}from"../TypographyStyle.js";const c=(r,n,e,a)=>{if("chip"===n)return"text"===r?"transparent":a?t.surface.hovered:t.surface.subdued;switch(r){case"primary":return e?t.background.warning.vibrant:t.background.inverseLight;case"destructive":return t.background.negative.vibrant;default:return"transparent"}},d=(r,n,e,a)=>{if("chip"===n)return"text"===r?e?t.content.inactive:t.content.brand:a?t.content.primary:t.content.secondary;switch(r){case"primary":return e?t.content.primary:t.content.primaryInverse;case"tertiaryGray":case"dashBold":case"dashRegular":return t.content.secondary;case"destructive":return t.content.primaryInverse;case"ai":return t.content.ai;default:return e?t.content.primaryInverse:t.stroke.brand}},s=r=>r?"rgba(255, 255, 255, 0.5)":t.content.inactive,p=(t,r)=>{if("text"===t)return"0px";if("chip"===r)return"4px 8px";if("small"===r)switch(t){case"tertiary":case"tertiaryGray":return"6px 4px";default:return"6px 12px"}else if("medium"===r)switch(t){case"tertiary":case"tertiaryGray":return"10px 4px";default:return"10px 12px"}else if("large"===r)switch(t){case"tertiary":case"tertiaryGray":return"14px 4px";default:return"14px 12px"}},b=(t,c,d)=>d||"ai"!==c?"dashRegular"===c?e:"chip"===t?a:"small"===t?o:i:"small"===t?r:n,g=(r,n,e)=>e?t.stroke.negative.vibrant:n?t.surface.standard:"secondary"==r?t.stroke.brand:t.content.placeholder,u=(r,n,e,a,o)=>"text"==n?"border: none;":"chip"===e?`border: ${"2.0"===r?.5:1}px solid ${t.stroke.primary};`:a?"secondary"===n?`border: ${"2.0"===r?.5:1}px solid ${g(n,a,o)};`:"border: none;":"secondary"===n?`border: ${"2.0"===r?.5:1}px solid ${g(n,!1,o)};`:"border: none;",l=t=>"medium"===t?"5px,\n\t\ttransparent 5px,\n\t\ttransparent 10px":"6px,\n\t\ttransparent 6px,\n\t\ttransparent 12px",h=(r,n)=>"ai"===r?`background: ${t.surface.aiLight};`:"text"===r?"background-color:transparent;":n||"primary"===r?"":"background-color: #000000;\n\t\t\t\topacity: 0.03;",y=(r,n)=>n?"":`text-decoration-line: underline;\n\t\t\ttext-decoration-color: ${t.content.brand};`,x=(r,n)=>n?"":"primary"===r?`background-color: ${t.stroke.warning.lightAlt};`:"background-color: rgba(255, 255, 255, 0.1)",k=(r,n,e)=>"chip"===n?"background-color: transparent;":"primary"===r||"destructive"===r?e?"background-color: rgba(255,255,255,0.3);":`background-color: ${t.background.inactive};`:"secondary"===r?e?"border: 1px solid rgba(255, 255, 255, 0.5);":`border: 1px solid ${t.stroke.primary};`:"",m=function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g(t,!1);return`\n\t.line-top {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${l(r)}\n\t\t);\n\t}\n\t.line-right {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${l(r)}\n\t\t);\n\t}\n\t.line-bottom {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${l(r)}\n\t\t);\n\t}\n\t.line-left {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${l(r)}\n\t\t);\n\t}\n\t`},v=(r,n,e)=>"text"===r?`background-color: ${t.background.brandLight};\n\t\t\ttext-decoration-line: underline;\n\t\t\ttext-decoration-color: ${t.content.brand};`:"chip"===n?`border: 1px solid ${t.stroke.brandLightAlt};\n\t\tbackground-color: ${t.background.brandLight};`:"primary"===r||"destructive"===r?e?`background-color: ${t.background.warning.vibrant} !important;\n\t\t\tbox-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);\n\t\t\t`:"box-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);":"secondary"===r||"tertiary"===r||"tertiaryGray"===r||r.startsWith("dash")?e?`background-color: ${t.background.inverseLight} !important;`:`background-color: ${t.background.brandLight};`:void 0,$=(r,n,e)=>"chip"===n?`background-color: ${t.background.base};`:"primary"===r?`background-color: ${e?t.background.warning.vibrant:t.background.brandLight};`:"destructive"===r?`background-color: ${t.background.negative.light};`:"background-color: transparent;",f=(r,n,e)=>"chip"===n?"border: none;":"secondary"===r?e?`border: 1px solid ${t.content.secondary};`:`border: 1px solid ${t.stroke.brandLightAlt};`:"",w=(r,n)=>n?"primary"===r?t.content.primary:t.content.primaryInverse:"destructive"===r?t.content.negative:t.content.brand,L=(r,n,e,a,o,i)=>"chip"===r?a?t.content.inactive:i?t.content.primary:t.content.secondary:o?"transparent":"primary"===n||"destructive"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primary:a?t.content.inactive:t.content.primaryInverse:"secondary"===n||"tertiary"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primaryInverse:a?t.content.inactive:t.content.brand:"tertiaryGray"===n||n.startsWith("dash")?a?t.content.inactive:t.content.secondary:void 0;export{b as GetButtonTextComponent,w as SpinnerColorMap,k as generateDisabledStyling,x as generateInverseHoverBackground,c as getBackgroundColor,u as getBorder,g as getBorderColor,L as getButtonIconColor,v as getClickEffect,d as getColor,m as getDashedBorderStyling,s as getDisabledTextColor,h as getHoverButtonBackground,y as getHoverButtonTextDecorationStyle,l as getLinearGradientValue,$ as getLoadingBackground,f as getLoadingBorder,p as getPadding};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import t from"react";import{useTemplateModalContext as a}from"../template-context-mapper/context/templateModalContext.js";import{TemplatePreview as p}from"../template-preview/TemplatePreview.js";import"../template-preview/WhatsApp/WhatsAppLikePreview.js";import"../template-preview/WhatsApp/WhatsAppLikePreviewV2.js";import"../../constants/Theme.js";import"../curtain/CurtainHelper.js";import"../variable-picker-v3/model.js";import"../template-preview/models/TemplateMeta.js";import"../template-preview/models/WhatsAppTemplate.js";const r=t.forwardRef((t=>{let{channel:r,currentTemplate:i,showSampleValues:l,carouselCardIndex:o,isPreview:s,width:m}=t;var n,d,h;const{cardWidth:c,template:v}=a(),u=(null!==(h=null===(d=null===(n=null==v?void 0:v.components)||void 0===n?void 0:n[1].cards)||void 0===d?void 0:d.length)&&void 0!==h?h:0)-1===o?12:0;return e("div",Object.assign({style:{width:m||c,height:(null!=o?o:-1)>-1?"100%":"auto"}},{children:e(p,{showSampleValues:l,template:i,channel:r,size:"small",hideHeader:!0,carouselCardIndex:o,isWhatsappCarousel:!0,isPreview:s,whatsAppSpecificMeta:{templateContainerStyles:{marginRight:u,height:"100%"}}})}))}));export{r as default};
1
+ import{jsx as e}from"react/jsx-runtime";import t from"react";import{useTemplateModalContext as a}from"../template-context-mapper/context/templateModalContext.js";import{TemplatePreview as p}from"../template-preview/TemplatePreview.js";import"../template-preview/WhatsApp/WhatsAppLikePreview.js";import"../template-preview/WhatsApp/WhatsAppLikePreviewV2.js";import"../../constants/Theme.js";import"../curtain/CurtainHelper.js";import"../template-preview/models/TemplateMeta.js";import"../template-preview/models/WhatsAppTemplate.js";const r=t.forwardRef((t=>{let{channel:r,currentTemplate:i,showSampleValues:l,carouselCardIndex:s,isPreview:o,width:m}=t;var n,d,h;const{cardWidth:c,template:v}=a(),u=(null!==(h=null===(d=null===(n=null==v?void 0:v.components)||void 0===n?void 0:n[1].cards)||void 0===d?void 0:d.length)&&void 0!==h?h:0)-1===s?12:0;return e("div",Object.assign({style:{width:m||c,height:(null!=s?s:-1)>-1?"100%":"auto"}},{children:e(p,{showSampleValues:l,template:i,channel:r,size:"small",hideHeader:!0,carouselCardIndex:s,isWhatsappCarousel:!0,isPreview:o,whatsAppSpecificMeta:{templateContainerStyles:{marginRight:u,height:"100%"}}})}))}));export{r as default};
@@ -3,6 +3,7 @@ type FloaterProps = {
3
3
  children?: React.ReactNode;
4
4
  refElement: React.MutableRefObject<any>;
5
5
  leftOffset?: number;
6
+ childHeight?: number;
6
7
  };
7
- export declare const Floater: (props: FloaterProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const Floater: (props: FloaterProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{useRef as e,useState as n,useEffect as i}from"react";const o=o=>{const r=e(null),[f,l]=n(0),[s,c]=n(0),[d,u]=n(!1);return i((()=>{if(o.refElement.current){const t=o.refElement.current.getBoundingClientRect();(t=>{let e=0;e=o.leftOffset?t.left+o.leftOffset:t.left+t.width+30;const n=null==r?void 0:r.current;n?(e>window.innerWidth-n.offsetWidth&&(e=window.innerWidth-n.offsetWidth-50),c(e)):c(e)})(t),(t=>{let e=t.top;const n=null==r?void 0:r.current;if(!n)return void l(e);const i=window.innerHeight;t.top+n.offsetHeight>i&&(e=t.top-(t.top+n.offsetHeight-i)-10),l(e)})(t),u(!0)}})),d?t("div",Object.assign({style:{top:f,left:s,position:"fixed"}},{children:t("div",Object.assign({ref:r},{children:o.children}))})):null};export{o as Floater};
1
+ import{jsx as t}from"react/jsx-runtime";import{useState as e,useEffect as i}from"react";const n=n=>{const[r,o]=e(-1e4),[f,c]=e(-1e3);return i((()=>{if(n.refElement.current){const t=n.refElement.current.getBoundingClientRect();if(o(t.top),n.leftOffset?c(t.left+n.leftOffset):c(t.left+t.width+40),n.childHeight){const e=window.innerHeight;t.top+n.childHeight>e&&o(t.top-(t.top+n.childHeight-e)-10)}}})),t("div",Object.assign({style:{top:r,left:f,position:"fixed"}},{children:n.children}))};export{n as Floater};
@@ -1,3 +1,3 @@
1
1
  import t from"styled-components";import{COLORS as n}from"../../constants/Theme.js";import{generateBackgroundColor as o}from"./theme.js";const r=t.button`
2
- ${t=>`\n\tall: unset;\n\tcursor: pointer;\n\tpadding: 6px;\n\tborder-radius: 4px;\n\tflex-wrap: wrap;\n\t${t.bordered?`border: 1px solid ${n.stroke.primary};`:""}\n\t${t.isSelected?`\n\t\t\tbackground-color: ${o(t.iconButtonType)};\n\t\t\t\t`:"\n\t\t\t\t:hover {\n\t\t\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t\t\t}\n\t\t\t"}\n\t${t.disabled&&"\n\t\t\tcursor: not-allowed !important;\n\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t"}\n\n\t`}
2
+ ${t=>`\n\tall: unset;\n\tcursor: pointer;\n\tpadding: 6px;\n\tborder-radius: 4px;\n\tflex-wrap: wrap;\n\t${t.bordered&&"ai"!==t.iconButtonType?`border: 1px solid ${n.stroke.primary};`:""}\n\t${t.isSelected?`\n\t\t\tbackground: ${o(t.iconButtonType)};\n\t\t\t\t`:"\n\t\t\t\t:hover {\n\t\t\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t\t\t}\n\t\t\t"}\n\t${t.disabled&&"\n\t\t\tcursor: not-allowed !important;\n\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t"}\n\n\t`}
3
3
  `;export{r as IconButton};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type IconButtonType = 'default' | 'negative' | 'positive' | 'warning';
2
+ export type IconButtonType = 'default' | 'negative' | 'positive' | 'warning' | 'ai';
3
3
  export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  /**
5
5
  * Icon to render
@@ -1 +1 @@
1
- import{COLORS as t}from"../../constants/Theme.js";const n=(n,e,r)=>{if(e)return t.content.inactive;switch(n){case"default":return r?t.content.brand:t.content.primary;case"negative":return t.content.negative;case"positive":return t.content.positive;case"warning":return r?t.content.warning:t.content.primary;default:return t.content.primary}},e=n=>"default"===n?t.background.brandLight:"negative"===n?t.background.negative.light:"positive"===n?t.background.positive.light:t.background.warning.light;export{e as generateBackgroundColor,n as getIconColor};
1
+ import{COLORS as t}from"../../constants/Theme.js";const n=(n,e,r)=>{if(e)return t.content.inactive;switch(n){case"default":return r?t.content.brand:t.content.primary;case"negative":return t.content.negative;case"positive":return t.content.positive;case"warning":return r?t.content.warning:t.content.primary;default:return t.content.primary}},e=n=>"default"===n?t.background.brandLight:"negative"===n?t.background.negative.light:"positive"===n?t.background.positive.light:"ai"===n?t.surface.aiLight:t.background.warning.light;export{e as generateBackgroundColor,n as getIconColor};
@@ -2,7 +2,6 @@
2
2
  import { Variable } from '../add-variableV2/AddVariableV2';
3
3
  import { SelectedVariable } from '../add-variableV2/types';
4
4
  import { InputTypeI } from '../input';
5
- import { PickerType } from '../variable-picker-v3/model';
6
5
  export interface InputWithVariablesProps {
7
6
  type?: InputTypeI;
8
7
  variablesList: any;
@@ -12,9 +11,11 @@ export interface InputWithVariablesProps {
12
11
  prevVariable: SelectedVariable;
13
12
  showHelp?: boolean;
14
13
  onlyVariables?: boolean;
14
+ showSideVariablePanel?: boolean;
15
15
  placeHolder?: string;
16
16
  showAddButton?: boolean;
17
17
  errorMessage?: string;
18
+ showSideModal?: boolean;
18
19
  noMaxCharCheck?: boolean;
19
20
  maxCharLimit?: number;
20
21
  labelText?: string;
@@ -22,10 +23,5 @@ export interface InputWithVariablesProps {
22
23
  isRequired?: boolean;
23
24
  hintText?: string;
24
25
  onEnterPress?: (input: string) => void;
25
- pickerType?: PickerType;
26
- portalElement?: HTMLElement;
27
- showVarHeader?: boolean;
28
- varHeaderText?: string;
29
- onPickerToggle?: (isOpen: boolean) => void;
30
26
  }
31
27
  export declare const InputWithVariables: React.FC<InputWithVariablesProps>;