@bikdotai/bik-widgets 1.0.0 → 1.0.1

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 (319) hide show
  1. package/dist-package/chunks/node_modules_lottie-web_build_player_lottie_light_js.927c24cd7bf65e593181.js +1 -0
  2. package/dist-package/chunks/src_components_UserDetailsV2_userDetailsV2_desktop_module_css.1efff8cddc83e0d3401c.js +1 -0
  3. package/dist-package/chunks/src_components_UserDetailsV2_userDetailsV2_mobile_module_css.dc9f2aa849ff133f141e.js +1 -0
  4. package/dist-package/chunks/src_components_UserDetailsV2_userDetailsV2_module_css.2a5fcc435fb3f37d0034.js +1 -0
  5. package/dist-package/chunks/src_components_checkbox_checkbox_module_css.be362d6b95515915d752.js +1 -0
  6. package/dist-package/chunks/src_components_countryCodePicker_countriesDropdown_module_css.a1c8409dacb9abf0dfce.js +1 -0
  7. package/dist-package/chunks/src_components_couponDetails_couponPreviewDesktop_module_css.ba5ab63e0394cc8a886f.js +1 -0
  8. package/dist-package/chunks/src_components_couponDetails_couponPreviewMobile_module_css.12642fbc4c56a68af36a.js +1 -0
  9. package/dist-package/chunks/src_components_couponDetails_coupon_module_css.828bdce7a75e349ebbb1.js +1 -0
  10. package/dist-package/chunks/src_components_inputComponents_Dropdown_module_css.7a0ce85538bef9add9d6.js +1 -0
  11. package/dist-package/chunks/src_components_selectedCountry_selectedCountryPreviewDesktop_module_css.7f3139377b37f12d921f.js +1 -0
  12. package/dist-package/chunks/src_components_selectedCountry_selectedCountryPreviewMobile_module_css.fed0a331046797ed5973.js +1 -0
  13. package/dist-package/chunks/src_components_selectedCountry_selectedCountry_module_css.630e2d9d9273a276f88c.js +1 -0
  14. package/dist-package/chunks/src_widgets_BottomDrawer_config_ts.c222c906d3920af1e1cb.js +1 -0
  15. package/dist-package/chunks/src_widgets_BottomDrawer_index_tsx.e9213fe49b5889e994e2.js +1 -0
  16. package/dist-package/chunks/src_widgets_CaptivateBanner_config_ts.9aaaf84faf2c9d249a49.js +1 -0
  17. package/dist-package/chunks/src_widgets_CaptivateBanner_index_tsx.af1c8798259dec2cb3fb.js +1 -0
  18. package/dist-package/chunks/src_widgets_CaptivateBanner_previewDesktop_module_css.934a120419e64fdcea21.js +1 -0
  19. package/dist-package/chunks/src_widgets_CaptivateBanner_previewMobile_module_css.ea372353d7adf8c386ed.js +1 -0
  20. package/dist-package/chunks/src_widgets_CaptivateBanner_style_module_css.ed1acad346401f481abc.js +1 -0
  21. package/dist-package/chunks/src_widgets_CentrallyAlignedPopup_config_ts.ddfca241b6f1a15049e3.js +1 -0
  22. package/dist-package/chunks/src_widgets_CentrallyAlignedPopup_index_tsx.d7599511d8519b775ec2.js +1 -0
  23. package/dist-package/chunks/src_widgets_DirectReward_config_ts.ec522622f042ce691399.js +1 -0
  24. package/dist-package/chunks/src_widgets_DirectReward_index_tsx.d56025f4ea5792718067.js +2 -0
  25. package/dist-package/chunks/src_widgets_DirectReward_previewStyles_thankYouPreviewDesktop_module_css.5a86965d82116b2d7b91.js +1 -0
  26. package/dist-package/chunks/src_widgets_DirectReward_previewStyles_thankYouPreviewMobile_module_css.c93d0e8be4e1f183bcfa.js +1 -0
  27. package/dist-package/chunks/src_widgets_DirectReward_previewStyles_userDetailsPreviewDesktop_module_css.d1d862bb3b3a826e6368.js +1 -0
  28. package/dist-package/chunks/src_widgets_DirectReward_previewStyles_userDetailsPreviewMobile_module_css.b6bed87791445adb8886.js +1 -0
  29. package/dist-package/chunks/src_widgets_DirectReward_style_module_css.8d53a303557c3ca8323a.js +1 -0
  30. package/dist-package/chunks/src_widgets_ExitIntentHook_tsx.36222875fcd0408c040e.js +1 -0
  31. package/dist-package/chunks/src_widgets_STW_config_ts.a12b07b7f62eb0ea6dc0.js +1 -0
  32. package/dist-package/chunks/src_widgets_STW_index_tsx.e6bce54b3f841b9f2113.js +2 -0
  33. package/dist-package/chunks/src_widgets_STW_previewStyles_thankyouPreviewDesktop_module_css.eda5e42e4f6cd9d87904.js +1 -0
  34. package/dist-package/chunks/src_widgets_STW_previewStyles_thankyouPreviewMobile_module_css.2da674c296feaef1b037.js +1 -0
  35. package/dist-package/chunks/src_widgets_STW_previewStyles_userInputsPreviewDesktop_module_css.ea588b3bebcbf4eccf95.js +1 -0
  36. package/dist-package/chunks/src_widgets_STW_previewStyles_userInputsPreviewMobile_module_css.dc4596a5b41427fae2e2.js +1 -0
  37. package/dist-package/chunks/src_widgets_STW_previewStyles_wheelPreviewDesktop_module_css.8b9735c97d5240afc20a.js +1 -0
  38. package/dist-package/chunks/src_widgets_STW_previewStyles_wheelPreviewMobile_module_css.66ddd61f1aedef0ecaa0.js +1 -0
  39. package/dist-package/chunks/src_widgets_STW_stw1_tsx.e62b308fba62beb29793.js +1 -0
  40. package/dist-package/chunks/src_widgets_STW_stw2Components_wheelDesign_tsx.925c7d3dd11bc361199d.js +2 -0
  41. package/dist-package/chunks/src_widgets_STW_stw2Pages_couponDetails_tsx.aa4f9803222126c1d645.js +2 -0
  42. package/dist-package/chunks/src_widgets_STW_stw2Pages_style_module_css.3a683c60c6678865aee1.js +1 -0
  43. package/dist-package/chunks/src_widgets_STW_stw2Pages_userDetails_tsx.da1c0b70a43507bcacd0.js +2 -0
  44. package/dist-package/chunks/src_widgets_STW_stw2Pages_wheel_tsx.a25f6eedaf43920b3f13.js +2 -0
  45. package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_thankyouPreviewDesktop_module_css.4d86be690aa2ac02d42d.js +1 -0
  46. package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_thankyouPreviewMobile_module_css.514e8bc036d20099217f.js +1 -0
  47. package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_userInputsPreviewDesktop_module_css.7dcb9e7b063e981a2730.js +1 -0
  48. package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_userInputsPreviewMobile_module_css.c2e5280360cd4298e0df.js +1 -0
  49. package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_wheelPreviewDesktop_module_css.7aaac3771035b1929dca.js +1 -0
  50. package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_wheelPreviewMobile_module_css.e8042369ff79890e7ff4.js +1 -0
  51. package/dist-package/chunks/src_widgets_STW_style_module_css.dd14839c719d8ae26778.js +1 -0
  52. package/dist-package/chunks/src_widgets_ScratchCard_config_ts.a49cbd81b255752007b2.js +1 -0
  53. package/dist-package/chunks/src_widgets_ScratchCard_globalStyle_module_css.1844fdb9f244f7eea6a3.js +1 -0
  54. package/dist-package/chunks/src_widgets_ScratchCard_index_tsx.8e6339dbbe8791e2bbea.js +2 -0
  55. package/dist-package/chunks/src_widgets_ScratchCard_previewStyles_userDetailsPreviewDesktop_module_css.bf4e3d52d37c4a2c8653.js +1 -0
  56. package/dist-package/chunks/src_widgets_ScratchCard_previewStyles_userDetailsPreviewMobile_module_css.68bd5853e5a6f0136f54.js +1 -0
  57. package/dist-package/chunks/src_widgets_ShopifyForm_config_ts.ae68d20563321b24c42f.js +1 -0
  58. package/dist-package/chunks/src_widgets_ShopifyForm_index_tsx.7f33a3f0fffbd88444c0.js +1 -0
  59. package/dist-package/chunks/src_widgets_ShopifyForm_previewDesktop_module_css.f5bb8a66eec449599342.js +1 -0
  60. package/dist-package/chunks/src_widgets_ShopifyForm_previewMobile_module_css.84fab56fb812decfa88b.js +1 -0
  61. package/dist-package/chunks/src_widgets_ShopifyForm_style_module_css.93e042eb60d4e7a9969e.js +1 -0
  62. package/dist-package/chunks/src_widgets_SingleButtonRedirection_config_ts.b34f37a93d9f21ca12d2.js +1 -0
  63. package/dist-package/chunks/src_widgets_WebStories_config_ts.347332569990592c9215.js +1 -0
  64. package/dist-package/chunks/src_widgets_WebStories_index_css.82d92057971ad51334f8.js +1 -0
  65. package/dist-package/chunks/src_widgets_WebStories_index_tsx.03f74c2c52432896cce9.js +1 -0
  66. package/dist-package/chunks/src_widgets_WebStories_style_module_css.acd37b9a11117cfb851a.js +1 -0
  67. package/dist-package/chunks/src_widgets_index_tsx.d0409ffd2e3c285e9dd3.js +1 -0
  68. package/dist-package/index.css +31 -0
  69. package/dist-package/index.js +2 -0
  70. package/dist-package/src_components_UserDetailsV2_userDetailsV2_desktop_module_css.index.css +1 -0
  71. package/dist-package/src_components_UserDetailsV2_userDetailsV2_mobile_module_css.index.css +1 -0
  72. package/dist-package/src_components_UserDetailsV2_userDetailsV2_module_css.index.css +1 -0
  73. package/dist-package/src_components_checkbox_checkbox_module_css.index.css +1 -0
  74. package/dist-package/src_components_countryCodePicker_countriesDropdown_module_css.index.css +1 -0
  75. package/dist-package/src_components_couponDetails_couponPreviewDesktop_module_css.index.css +1 -0
  76. package/dist-package/src_components_couponDetails_couponPreviewMobile_module_css.index.css +1 -0
  77. package/dist-package/src_components_couponDetails_coupon_module_css.index.css +1 -0
  78. package/dist-package/src_components_inputComponents_Dropdown_module_css.index.css +1 -0
  79. package/dist-package/src_components_selectedCountry_selectedCountryPreviewDesktop_module_css.index.css +1 -0
  80. package/dist-package/src_components_selectedCountry_selectedCountryPreviewMobile_module_css.index.css +1 -0
  81. package/dist-package/src_components_selectedCountry_selectedCountry_module_css.index.css +1 -0
  82. package/dist-package/src_widgets_CaptivateBanner_previewDesktop_module_css.index.css +1 -0
  83. package/dist-package/src_widgets_CaptivateBanner_previewMobile_module_css.index.css +1 -0
  84. package/dist-package/src_widgets_CaptivateBanner_style_module_css.index.css +1 -0
  85. package/dist-package/src_widgets_DirectReward_index_tsx.index.css +1 -0
  86. package/dist-package/src_widgets_DirectReward_previewStyles_thankYouPreviewDesktop_module_css.index.css +3 -0
  87. package/dist-package/src_widgets_DirectReward_previewStyles_thankYouPreviewMobile_module_css.index.css +3 -0
  88. package/dist-package/src_widgets_DirectReward_previewStyles_userDetailsPreviewDesktop_module_css.index.css +1 -0
  89. package/dist-package/src_widgets_DirectReward_previewStyles_userDetailsPreviewMobile_module_css.index.css +1 -0
  90. package/dist-package/src_widgets_DirectReward_style_module_css.index.css +1 -0
  91. package/dist-package/src_widgets_STW_index_tsx.index.css +2 -0
  92. package/dist-package/src_widgets_STW_previewStyles_thankyouPreviewDesktop_module_css.index.css +3 -0
  93. package/dist-package/src_widgets_STW_previewStyles_thankyouPreviewMobile_module_css.index.css +1 -0
  94. package/dist-package/src_widgets_STW_previewStyles_userInputsPreviewDesktop_module_css.index.css +3 -0
  95. package/dist-package/src_widgets_STW_previewStyles_userInputsPreviewMobile_module_css.index.css +1 -0
  96. package/dist-package/src_widgets_STW_previewStyles_wheelPreviewDesktop_module_css.index.css +3 -0
  97. package/dist-package/src_widgets_STW_previewStyles_wheelPreviewMobile_module_css.index.css +1 -0
  98. package/dist-package/src_widgets_STW_stw2Pages_style_module_css.index.css +1 -0
  99. package/dist-package/src_widgets_STW_stw2PreviewStyles_thankyouPreviewDesktop_module_css.index.css +3 -0
  100. package/dist-package/src_widgets_STW_stw2PreviewStyles_thankyouPreviewMobile_module_css.index.css +1 -0
  101. package/dist-package/src_widgets_STW_stw2PreviewStyles_userInputsPreviewDesktop_module_css.index.css +1 -0
  102. package/dist-package/src_widgets_STW_stw2PreviewStyles_userInputsPreviewMobile_module_css.index.css +1 -0
  103. package/dist-package/src_widgets_STW_stw2PreviewStyles_wheelPreviewDesktop_module_css.index.css +3 -0
  104. package/dist-package/src_widgets_STW_stw2PreviewStyles_wheelPreviewMobile_module_css.index.css +3 -0
  105. package/dist-package/src_widgets_STW_style_module_css.index.css +1 -0
  106. package/dist-package/src_widgets_ScratchCard_globalStyle_module_css.index.css +2 -0
  107. package/dist-package/src_widgets_ScratchCard_previewStyles_userDetailsPreviewDesktop_module_css.index.css +3 -0
  108. package/dist-package/src_widgets_ScratchCard_previewStyles_userDetailsPreviewMobile_module_css.index.css +3 -0
  109. package/dist-package/src_widgets_ShopifyForm_previewDesktop_module_css.index.css +1 -0
  110. package/dist-package/src_widgets_ShopifyForm_previewMobile_module_css.index.css +1 -0
  111. package/dist-package/src_widgets_ShopifyForm_style_module_css.index.css +1 -0
  112. package/dist-package/src_widgets_WebStories_index_css.index.css +1 -0
  113. package/dist-package/src_widgets_WebStories_index_tsx.index.css +3 -0
  114. package/dist-package/src_widgets_WebStories_style_module_css.index.css +1 -0
  115. package/package.json +17 -4
  116. package/.eslintrc +0 -22
  117. package/.eslintrc.js +0 -19
  118. package/.github/workflows/main.yml +0 -293
  119. package/.prettierignore +0 -13
  120. package/.prettierrc +0 -10
  121. package/cypress/apiHelper/endpoints.ts +0 -21
  122. package/cypress/apiHelper/executor.ts +0 -42
  123. package/cypress/e2e/bottomDrawer.cy.ts +0 -49
  124. package/cypress/e2e/directReward.cy.ts +0 -67
  125. package/cypress/e2e/scratchTheCard.cy.ts +0 -68
  126. package/cypress/e2e/stw.cy.ts +0 -82
  127. package/cypress/e2e/waRedirection.cy.ts +0 -46
  128. package/cypress/fixtures/payloads.ts +0 -330
  129. package/cypress/support/commands.ts +0 -37
  130. package/cypress/support/e2e.ts +0 -20
  131. package/cypress.staging.config.ts +0 -23
  132. package/jsconfig.json +0 -6
  133. package/localtest.sh +0 -10
  134. package/log-server.js +0 -86
  135. package/postcss.config.js +0 -8
  136. package/src/Globals.d.ts +0 -2
  137. package/src/assets/lottie/santa.json +0 -11722
  138. package/src/assets/svg/CalendarClockIcon.tsx +0 -30
  139. package/src/assets/svg/CalendarIcon.tsx +0 -24
  140. package/src/assets/svg/CheckIcon.tsx +0 -17
  141. package/src/assets/svg/ChevronIcon.tsx +0 -21
  142. package/src/assets/svg/Close.tsx +0 -39
  143. package/src/assets/svg/Confetti.tsx +0 -140
  144. package/src/assets/svg/Copy.tsx +0 -26
  145. package/src/assets/svg/DropdownCheckIcon.tsx +0 -35
  146. package/src/assets/svg/ErrorIcon.tsx +0 -27
  147. package/src/assets/svg/RadioIcon.tsx +0 -25
  148. package/src/assets/svg/UncheckedCheckboxIcon.tsx +0 -28
  149. package/src/assets/svg/UncheckedRadioIcon.tsx +0 -26
  150. package/src/assets/svg/info.tsx +0 -30
  151. package/src/assets/svg/qrcode.svg +0 -14
  152. package/src/bootstrap.tsx +0 -8
  153. package/src/components/CtaCard/index.tsx +0 -37
  154. package/src/components/CtaCard/preview.module.css +0 -32
  155. package/src/components/CtaCard/style.module.css +0 -32
  156. package/src/components/EmailInput/emailInputBox.tsx +0 -95
  157. package/src/components/Fab/index.tsx +0 -224
  158. package/src/components/Fab/preview.module.css +0 -28
  159. package/src/components/Fab/style.module.css +0 -37
  160. package/src/components/Icons/Call.tsx +0 -26
  161. package/src/components/Icons/Cross.tsx +0 -24
  162. package/src/components/Icons/Gmail.tsx +0 -61
  163. package/src/components/Icons/Instagram.tsx +0 -60
  164. package/src/components/Icons/LiveChat.tsx +0 -43
  165. package/src/components/Icons/Messenger.tsx +0 -57
  166. package/src/components/Icons/Send.tsx +0 -22
  167. package/src/components/Icons/Whatsapp.tsx +0 -24
  168. package/src/components/Shimmer/index.tsx +0 -12
  169. package/src/components/Shimmer/style.module.css +0 -37
  170. package/src/components/SmsInput/smsInputBox.tsx +0 -135
  171. package/src/components/UserDetailsV2/userDetailsV2.desktop.module.css +0 -52
  172. package/src/components/UserDetailsV2/userDetailsV2.mobile.module.css +0 -52
  173. package/src/components/UserDetailsV2/userDetailsV2.module.css +0 -81
  174. package/src/components/UserDetailsV2/userDetailsV2.tsx +0 -527
  175. package/src/components/WhatsappInput/Spinner.tsx +0 -26
  176. package/src/components/WhatsappInput/whatsappInput.module.css +0 -106
  177. package/src/components/WhatsappInput/whatsappInputBox.tsx +0 -155
  178. package/src/components/WhatsappInput/whatsappInputPreviewDesktop.module.css +0 -71
  179. package/src/components/WhatsappInput/whatsappInputPreviewMobile.module.css +0 -65
  180. package/src/components/checkbox/checkbox.module.css +0 -19
  181. package/src/components/checkbox/checkbox.tsx +0 -88
  182. package/src/components/countryCodePicker/countriesDropdown.module.css +0 -77
  183. package/src/components/countryCodePicker/countriesDropdown.tsx +0 -81
  184. package/src/components/couponDetails/coupon.module.css +0 -208
  185. package/src/components/couponDetails/coupon.tsx +0 -210
  186. package/src/components/couponDetails/couponPreviewDesktop.module.css +0 -158
  187. package/src/components/couponDetails/couponPreviewMobile.module.css +0 -164
  188. package/src/components/index.ts +0 -3
  189. package/src/components/inputComponents/Checkbox.module.css +0 -197
  190. package/src/components/inputComponents/Checkbox.tsx +0 -85
  191. package/src/components/inputComponents/DatePicker.module.css +0 -565
  192. package/src/components/inputComponents/DatePicker.tsx +0 -278
  193. package/src/components/inputComponents/Dropdown.module.css +0 -796
  194. package/src/components/inputComponents/Dropdown.tsx +0 -630
  195. package/src/components/inputComponents/InputBox.module.css +0 -401
  196. package/src/components/inputComponents/InputBox.tsx +0 -209
  197. package/src/components/selectedCountry/selectedCountry.module.css +0 -76
  198. package/src/components/selectedCountry/selectedCountry.tsx +0 -76
  199. package/src/components/selectedCountry/selectedCountryPreviewDesktop.module.css +0 -56
  200. package/src/components/selectedCountry/selectedCountryPreviewMobile.module.css +0 -57
  201. package/src/components/userDetailsForm/RenderCustomFields.tsx +0 -333
  202. package/src/components/userDetailsForm/userDetailsForm.tsx +0 -675
  203. package/src/hooks/index.ts +0 -4
  204. package/src/hooks/useExitIntent.ts +0 -452
  205. package/src/hooks/useIsMobile.tsx +0 -21
  206. package/src/hooks/useMessageEvent.ts +0 -8
  207. package/src/hooks/useTriggeredIntentDetails.ts +0 -43
  208. package/src/hooks/useUrlListerner.ts +0 -30
  209. package/src/hooks/useWebSocketLogger.ts +0 -59
  210. package/src/hooks/useWindowEvent.ts +0 -8
  211. package/src/icons/copyIcon.tsx +0 -26
  212. package/src/icons/crossIconDesktop.tsx +0 -20
  213. package/src/icons/crossIconMobile.tsx +0 -20
  214. package/src/index.html +0 -30
  215. package/src/index.ts +0 -32
  216. package/src/index.tsx +0 -1
  217. package/src/repo/widgetRepo.ts +0 -21
  218. package/src/types/customFields.ts +0 -73
  219. package/src/utilities/cookie.ts +0 -70
  220. package/src/utilities/customFieldTypeMapping.ts +0 -67
  221. package/src/utilities/customFieldValidation.ts +0 -201
  222. package/src/utilities/encryption.ts +0 -21
  223. package/src/utilities/exitIntentUtils.ts +0 -31
  224. package/src/utilities/global.css +0 -11
  225. package/src/utilities/languageUtilities.ts +0 -235
  226. package/src/utilities/localRunner.js +0 -26
  227. package/src/utilities/localRunner.ts +0 -27
  228. package/src/utilities/localStorage.ts +0 -40
  229. package/src/utilities/script.tsx +0 -15
  230. package/src/utilities/stringUtils.ts +0 -5
  231. package/src/utilities/styleUtils.ts +0 -134
  232. package/src/utilities/variables.ts +0 -11
  233. package/src/utilities/widgetUtils.js +0 -342
  234. package/src/utilities/widgetUtils.ts +0 -313
  235. package/src/widgets/BottomDrawer/config.ts +0 -41
  236. package/src/widgets/BottomDrawer/index.tsx +0 -116
  237. package/src/widgets/BottomDrawer/modal.tsx +0 -286
  238. package/src/widgets/BottomDrawer/preview.module.css +0 -122
  239. package/src/widgets/BottomDrawer/previewMobile.module.css +0 -124
  240. package/src/widgets/BottomDrawer/style.module.css +0 -279
  241. package/src/widgets/CaptivateBanner/captivateBanner.tsx +0 -200
  242. package/src/widgets/CaptivateBanner/config.ts +0 -72
  243. package/src/widgets/CaptivateBanner/index.tsx +0 -204
  244. package/src/widgets/CaptivateBanner/previewDesktop.module.css +0 -51
  245. package/src/widgets/CaptivateBanner/previewMobile.module.css +0 -51
  246. package/src/widgets/CaptivateBanner/style.module.css +0 -77
  247. package/src/widgets/CaptivateBanner/utils.ts +0 -104
  248. package/src/widgets/CentrallyAlignedPopup/config.ts +0 -42
  249. package/src/widgets/CentrallyAlignedPopup/index.tsx +0 -109
  250. package/src/widgets/CentrallyAlignedPopup/modal.tsx +0 -269
  251. package/src/widgets/CentrallyAlignedPopup/preview.module.css +0 -153
  252. package/src/widgets/CentrallyAlignedPopup/previewMobile.module.css +0 -153
  253. package/src/widgets/CentrallyAlignedPopup/style.module.css +0 -283
  254. package/src/widgets/DirectReward/components/couponDetails.tsx +0 -265
  255. package/src/widgets/DirectReward/components/userDetails.tsx +0 -117
  256. package/src/widgets/DirectReward/config.ts +0 -186
  257. package/src/widgets/DirectReward/directReward.tsx +0 -350
  258. package/src/widgets/DirectReward/index.tsx +0 -579
  259. package/src/widgets/DirectReward/previewStyles/thankYouPreviewDesktop.module.css +0 -276
  260. package/src/widgets/DirectReward/previewStyles/thankYouPreviewMobile.module.css +0 -303
  261. package/src/widgets/DirectReward/previewStyles/userDetailsPreviewDesktop.module.css +0 -511
  262. package/src/widgets/DirectReward/previewStyles/userDetailsPreviewMobile.module.css +0 -462
  263. package/src/widgets/DirectReward/style.module.css +0 -836
  264. package/src/widgets/ExitIntentHook.tsx +0 -28
  265. package/src/widgets/STW/api.ts +0 -70
  266. package/src/widgets/STW/components/svgFactory.tsx +0 -44
  267. package/src/widgets/STW/config.ts +0 -193
  268. package/src/widgets/STW/context.ts +0 -7
  269. package/src/widgets/STW/couponDetails.tsx +0 -121
  270. package/src/widgets/STW/index.tsx +0 -733
  271. package/src/widgets/STW/previewStyles/thankyouPreviewDesktop.module.css +0 -215
  272. package/src/widgets/STW/previewStyles/thankyouPreviewMobile.module.css +0 -205
  273. package/src/widgets/STW/previewStyles/userInputsPreviewDesktop.module.css +0 -732
  274. package/src/widgets/STW/previewStyles/userInputsPreviewMobile.module.css +0 -661
  275. package/src/widgets/STW/previewStyles/wheelPreviewDesktop.module.css +0 -498
  276. package/src/widgets/STW/previewStyles/wheelPreviewMobile.module.css +0 -497
  277. package/src/widgets/STW/stw1.tsx +0 -119
  278. package/src/widgets/STW/stw2Components/wheelDesign.tsx +0 -183
  279. package/src/widgets/STW/stw2Pages/couponDetails.tsx +0 -72
  280. package/src/widgets/STW/stw2Pages/stw2.tsx +0 -212
  281. package/src/widgets/STW/stw2Pages/style.module.css +0 -1226
  282. package/src/widgets/STW/stw2Pages/userDetails.tsx +0 -86
  283. package/src/widgets/STW/stw2Pages/wheel.tsx +0 -117
  284. package/src/widgets/STW/stw2PreviewStyles/thankyouPreviewDesktop.module.css +0 -835
  285. package/src/widgets/STW/stw2PreviewStyles/thankyouPreviewMobile.module.css +0 -787
  286. package/src/widgets/STW/stw2PreviewStyles/userInputsPreviewDesktop.module.css +0 -867
  287. package/src/widgets/STW/stw2PreviewStyles/userInputsPreviewMobile.module.css +0 -798
  288. package/src/widgets/STW/stw2PreviewStyles/wheelPreviewDesktop.module.css +0 -572
  289. package/src/widgets/STW/stw2PreviewStyles/wheelPreviewMobile.module.css +0 -559
  290. package/src/widgets/STW/style.module.css +0 -901
  291. package/src/widgets/STW/userDetails.tsx +0 -150
  292. package/src/widgets/STW/utility.ts +0 -664
  293. package/src/widgets/STW/wheel.tsx +0 -304
  294. package/src/widgets/ScratchCard/ScratchOff/scratchOff.tsx +0 -157
  295. package/src/widgets/ScratchCard/config.ts +0 -152
  296. package/src/widgets/ScratchCard/globalStyle.module.css +0 -931
  297. package/src/widgets/ScratchCard/index.tsx +0 -546
  298. package/src/widgets/ScratchCard/modal.tsx +0 -225
  299. package/src/widgets/ScratchCard/preview.module.css +0 -250
  300. package/src/widgets/ScratchCard/previewMobile.module.css +0 -247
  301. package/src/widgets/ScratchCard/previewStyles/userDetailsPreviewDesktop.module.css +0 -537
  302. package/src/widgets/ScratchCard/previewStyles/userDetailsPreviewMobile.module.css +0 -463
  303. package/src/widgets/ScratchCard/style.module.css +0 -220
  304. package/src/widgets/ShopifyForm/config.ts +0 -168
  305. package/src/widgets/ShopifyForm/index.tsx +0 -214
  306. package/src/widgets/ShopifyForm/previewDesktop.module.css +0 -117
  307. package/src/widgets/ShopifyForm/previewMobile.module.css +0 -131
  308. package/src/widgets/ShopifyForm/shopifyForm.tsx +0 -445
  309. package/src/widgets/ShopifyForm/style.module.css +0 -161
  310. package/src/widgets/SingleButtonRedirection/config.ts +0 -47
  311. package/src/widgets/SingleButtonRedirection/index.tsx +0 -121
  312. package/src/widgets/WebStories/config.ts +0 -105
  313. package/src/widgets/WebStories/index.css +0 -3
  314. package/src/widgets/WebStories/index.tsx +0 -282
  315. package/src/widgets/WebStories/style.module.css +0 -26
  316. package/src/widgets/index.tsx +0 -3
  317. package/src/widgets/utility.ts +0 -31
  318. package/tsconfig.json +0 -12
  319. package/webpack.config.js +0 -239
@@ -1,664 +0,0 @@
1
- import { sendWidgetEvent } from './api';
2
- import { WIDGET_NAME } from '@bikdotai/bik-models/dm';
3
-
4
- export const generateRotationValues = (
5
- spikesCount: number,
6
- templateName: WIDGET_NAME,
7
- ) => {
8
- return templateName === WIDGET_NAME.STW1
9
- ? getRotationValuesSTW1(spikesCount)
10
- : document.body.clientWidth < 450
11
- ? getRotationValuesMobileSTW2(spikesCount)
12
- : getRotationValuesDesktopSTW2(spikesCount);
13
- };
14
-
15
- const getRotationValuesSTW1 = (spikesCount: number) => {
16
- const rotationValuesTemp = [];
17
- const segmentAngle = 360 / spikesCount;
18
- const firstHalfSegement = {
19
- minDegree: 0,
20
- maxDegree: segmentAngle / 2,
21
- value: 1,
22
- };
23
- rotationValuesTemp.push(firstHalfSegement);
24
- for (let i = spikesCount; i >= 2; i--) {
25
- const lastValue = rotationValuesTemp[rotationValuesTemp.length - 1];
26
- const currentSegmentValue = {
27
- minDegree: lastValue.maxDegree + 1,
28
- maxDegree: lastValue.maxDegree + segmentAngle,
29
- value: i,
30
- };
31
- rotationValuesTemp.push(currentSegmentValue);
32
- }
33
- const lastValue = rotationValuesTemp[rotationValuesTemp.length - 1];
34
- const secondHalfSegement = {
35
- minDegree: lastValue.maxDegree + 1,
36
- maxDegree: lastValue.maxDegree + segmentAngle / 2,
37
- value: 1,
38
- };
39
- rotationValuesTemp.push(secondHalfSegement);
40
- return rotationValuesTemp;
41
- };
42
-
43
- const getStartSectorDesktop = (spikesCount: number) => {
44
- const halfSectorsCount = spikesCount / 2;
45
- const sectorsInBtw = Math.ceil((halfSectorsCount - 1) / 2);
46
- const startSector = 1 + sectorsInBtw;
47
- return startSector;
48
- };
49
-
50
- const getRotationValuesDesktopSTW2 = (spikesCount: number) => {
51
- let rotationValuesTemp = [];
52
- let segmentAngle = 360 / spikesCount;
53
- const startSector = getStartSectorDesktop(spikesCount);
54
- const startingPoint =
55
- spikesCount % 4 === 0
56
- ? {
57
- minDegree: 0,
58
- maxDegree: segmentAngle / 2,
59
- value: startSector,
60
- }
61
- : {
62
- minDegree: 0,
63
- maxDegree: segmentAngle,
64
- value: startSector,
65
- };
66
- rotationValuesTemp.push(startingPoint);
67
- let lastPoint = startingPoint;
68
- for (let i = startSector - 1; i >= 1; i--) {
69
- let currentSector = {
70
- minDegree: lastPoint.maxDegree + 1,
71
- maxDegree: lastPoint.maxDegree + segmentAngle,
72
- value: i,
73
- };
74
- rotationValuesTemp.push(currentSector);
75
- lastPoint = currentSector;
76
- }
77
- let lastValue = rotationValuesTemp[rotationValuesTemp.length - 1];
78
- let i;
79
- for (i = spikesCount; i > startSector; i--) {
80
- const currentSegmentValue = {
81
- minDegree: lastValue.maxDegree + 1,
82
- maxDegree: lastValue.maxDegree + segmentAngle,
83
- value: i,
84
- };
85
- rotationValuesTemp.push(currentSegmentValue);
86
- lastValue = currentSegmentValue;
87
- }
88
- if (spikesCount % 4 === 0) {
89
- let secondHalfSegement = {
90
- minDegree: lastValue.maxDegree + 1,
91
- maxDegree: lastValue.maxDegree + segmentAngle / 2,
92
- value: i,
93
- };
94
- rotationValuesTemp.push(secondHalfSegement);
95
- }
96
- return rotationValuesTemp;
97
- };
98
-
99
- const getRotationValuesMobileSTW2 = (spikesCount: number) => {
100
- let rotationValuesTemp = [];
101
- let segmentAngle = 360 / spikesCount;
102
- let firstHalfSegement = {
103
- minDegree: 0,
104
- maxDegree: segmentAngle / 2,
105
- value: 1,
106
- };
107
- rotationValuesTemp.push(firstHalfSegement);
108
- for (let i = spikesCount; i >= 2; i--) {
109
- const lastValue = rotationValuesTemp[rotationValuesTemp.length - 1];
110
- const currentSegmentValue = {
111
- minDegree: lastValue.maxDegree + 1,
112
- maxDegree: lastValue.maxDegree + segmentAngle,
113
- value: i,
114
- };
115
- rotationValuesTemp.push(currentSegmentValue);
116
- }
117
- const lastValue = rotationValuesTemp[rotationValuesTemp.length - 1];
118
- let secondHalfSegement = {
119
- minDegree: lastValue.maxDegree + 1,
120
- maxDegree: lastValue.maxDegree + segmentAngle / 2,
121
- value: 1,
122
- };
123
- rotationValuesTemp.push(secondHalfSegement);
124
- return rotationValuesTemp;
125
- };
126
-
127
- export const colorLuminance = (hex, lum) => {
128
- hex = String(hex).replace(/[^0-9a-f]/gi, '');
129
- if (hex.length < 6) {
130
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
131
- }
132
- lum = lum || 0;
133
- let rgb = '#',
134
- c,
135
- i;
136
- for (i = 0; i < 3; i++) {
137
- c = parseInt(hex.substr(i * 2, 2), 16);
138
- c = Math.round(Math.min(Math.max(0, c + c * lum), 255)).toString(16);
139
- rgb += ('00' + c).substr(c.length);
140
- }
141
- return rgb;
142
- };
143
-
144
- export const getRgbColor = (color: string) => {
145
- // Convert the color to an RGB color using a temporary DOM element
146
- const tempElem = document.createElement('div');
147
- tempElem.style.color = color;
148
- document.body.appendChild(tempElem);
149
- const rgbColor = window.getComputedStyle(tempElem).color;
150
- document.body.removeChild(tempElem);
151
-
152
- // Parse the RGB values from the color string
153
- const match = rgbColor.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
154
- return match
155
- ? { r: +match[1], g: +match[2], b: +match[3] }
156
- : { r: 0, g: 0, b: 0 };
157
- };
158
-
159
- export const getContrastColor = (bgColor: string) => {
160
- // Convert the background color to an RGB color
161
- const color = getRgbColor(bgColor);
162
-
163
- // Calculate the relative luminance of the color using the sRGB color space formula
164
- const luminance = 0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b;
165
- // Choose white or black as the text color based on the luminance value
166
- if (luminance > 100) {
167
- return '#212121';
168
- } else {
169
- return '#FFFFFF';
170
- }
171
- };
172
-
173
- export const getCookie = name => {
174
- const cookies = document.cookie
175
- .split(';')
176
- .map(cookie => cookie.split('='))
177
- .reduce(
178
- (accumulator, [key, value]) => ({
179
- ...accumulator,
180
- [key.trim()]: decodeURIComponent(value),
181
- }),
182
- {},
183
- );
184
- return cookies[name];
185
- };
186
-
187
- export const setCookie = (cname, cvalue, exdays) => {
188
- const d = new Date();
189
- d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);
190
- let expires = 'expires=' + d.toUTCString();
191
- document.cookie = cname + '=' + cvalue + ';' + expires + ';path=/';
192
- };
193
- export const cookieProcessor = (
194
- cookieName,
195
- cookieValue,
196
- eventName,
197
- exday,
198
- widgetId,
199
- env,
200
- ) => {
201
- setCookie(cookieName, cookieValue, exday);
202
- sendWidgetEvent(eventName, widgetId, env);
203
- };
204
- export const cookieClickHandler = (
205
- cookieName,
206
- cookieValue,
207
- event,
208
- exDay,
209
- widgetId,
210
- env,
211
- ) => {
212
- if (getCookie(cookieName) !== cookieValue) {
213
- cookieProcessor(cookieName, cookieValue, event, exDay, widgetId, env);
214
- }
215
- };
216
-
217
- export const getScrollPercent = () => {
218
- var winHeight = window.innerHeight;
219
- var docHeight = document.body.clientHeight;
220
- var scrollTop = window.scrollY;
221
- var trackLength = docHeight - winHeight;
222
- var pctScrolled = Math.floor((scrollTop / trackLength) * 100);
223
- return pctScrolled;
224
- };
225
- export const segmentHeightMap = {
226
- 'Spin the wheel popup 2': {
227
- previewMobile: 108,
228
- previewDesktop: 88,
229
- defaultHeightDesktop: 180,
230
- defaultHeightMobile: 195,
231
- },
232
- 'Spin the wheel popup': {
233
- previewMobile: 87,
234
- previewDesktop: 62,
235
- defaultHeightDesktop: 180,
236
- defaultHeightMobile: 148,
237
- },
238
- };
239
- export const updateSegmentWidth = (
240
- spikesCount: number,
241
- preview: boolean,
242
- isMobile: boolean,
243
- templateName: WIDGET_NAME,
244
- ) => {
245
- let segmentHeight = null;
246
- if (preview) {
247
- if (isMobile) {
248
- segmentHeight = segmentHeightMap[templateName].previewMobile;
249
- } else {
250
- segmentHeight = segmentHeightMap[templateName].previewDesktop;
251
- }
252
- } else {
253
- if (window.screen.width > 768) {
254
- segmentHeight = segmentHeightMap[templateName].defaultHeightDesktop;
255
- } else {
256
- segmentHeight = segmentHeightMap[templateName].defaultHeightMobile;
257
- }
258
- }
259
- const width =
260
- Math.tan(((360 / (spikesCount * 2)) * Math.PI) / 180) * segmentHeight * 2;
261
- return width;
262
- };
263
-
264
- export const getSegmentDetails = (
265
- spikesCount: number,
266
- segmentColor1: string,
267
- segmentColor2: string,
268
- discountCodeTitle,
269
- ) => {
270
- const segmentDegree = 360 / spikesCount;
271
- let wheelDetails = [];
272
- for (let i = 0; i < spikesCount; i++) {
273
- wheelDetails = [
274
- ...wheelDetails,
275
- getRotationValues(i, segmentDegree, discountCodeTitle),
276
- ];
277
- }
278
- for (let i = 0; i < spikesCount; i = i + 2) {
279
- wheelDetails[i] = {
280
- ...wheelDetails[i],
281
- color: segmentColor1,
282
- };
283
- wheelDetails[i + 1] = {
284
- ...wheelDetails[i + 1],
285
- color: segmentColor2,
286
- };
287
- }
288
- return wheelDetails;
289
- };
290
-
291
- export const getRotationValues = (
292
- idx: number,
293
- segmentDegree: number,
294
- discountCodeTitle,
295
- ) => {
296
- let obj = {};
297
- switch (idx) {
298
- case 0:
299
- return (obj = {
300
- class: 'one',
301
- text:
302
- discountCodeTitle && discountCodeTitle[1]
303
- ? discountCodeTitle[1]
304
- : 'Flat 10% off',
305
- rotationValue: segmentDegree * idx,
306
- });
307
-
308
- case 1:
309
- return (obj = {
310
- class: 'two',
311
- text:
312
- discountCodeTitle && discountCodeTitle[2]
313
- ? discountCodeTitle[2]
314
- : 'Flat 20% off',
315
- rotationValue: segmentDegree * idx,
316
- });
317
-
318
- case 2:
319
- return (obj = {
320
- class: 'three',
321
- text:
322
- discountCodeTitle && discountCodeTitle[3]
323
- ? discountCodeTitle[3]
324
- : 'Flat 30% off',
325
- rotationValue: segmentDegree * idx,
326
- });
327
-
328
- case 3:
329
- return (obj = {
330
- class: 'four',
331
- text:
332
- discountCodeTitle && discountCodeTitle[4]
333
- ? discountCodeTitle[4]
334
- : 'Flat 40% off',
335
- rotationValue: segmentDegree * idx,
336
- });
337
- case 4:
338
- return (obj = {
339
- class: 'five',
340
- text:
341
- discountCodeTitle && discountCodeTitle[5]
342
- ? discountCodeTitle[5]
343
- : 'Flat 50% off',
344
- rotationValue: segmentDegree * idx,
345
- });
346
-
347
- case 5:
348
- return (obj = {
349
- class: 'six',
350
- text:
351
- discountCodeTitle && discountCodeTitle[6]
352
- ? discountCodeTitle[6]
353
- : 'Flat 60% off',
354
- rotationValue: segmentDegree * idx,
355
- });
356
-
357
- case 6:
358
- return (obj = {
359
- class: 'seven',
360
- text:
361
- discountCodeTitle && discountCodeTitle[7]
362
- ? discountCodeTitle[7]
363
- : 'Flat 70% off',
364
- rotationValue: segmentDegree * idx,
365
- });
366
- case 7:
367
- return (obj = {
368
- class: 'eight',
369
- text:
370
- discountCodeTitle && discountCodeTitle[8]
371
- ? discountCodeTitle[8]
372
- : 'Flat 80% off',
373
- rotationValue: segmentDegree * idx,
374
- });
375
- case 8:
376
- return (obj = {
377
- class: 'nine',
378
- text:
379
- discountCodeTitle && discountCodeTitle[9]
380
- ? discountCodeTitle[9]
381
- : 'Flat 90% off',
382
- rotationValue: segmentDegree * idx,
383
- });
384
- case 9:
385
- return (obj = {
386
- class: 'ten',
387
- text:
388
- discountCodeTitle && discountCodeTitle[10]
389
- ? discountCodeTitle[10]
390
- : 'Flat 100% off',
391
- rotationValue: segmentDegree * idx,
392
- });
393
- }
394
- };
395
-
396
- export const addDiscountText = (discountCodeTitle, segmentDetails) => {
397
- let wheelDetails = [...segmentDetails];
398
- wheelDetails.map((desc, index) => {
399
- const respectiveDiscountCodeDataKey = Object.keys(discountCodeTitle).filter(
400
- key => key === (index + 1).toString(),
401
- );
402
- if (respectiveDiscountCodeDataKey) {
403
- wheelDetails[index] = {
404
- ...wheelDetails[index],
405
- text: discountCodeTitle[respectiveDiscountCodeDataKey[0]],
406
- };
407
- }
408
- });
409
- return wheelDetails;
410
- };
411
-
412
- export const CountriesData = [
413
- { name: 'United Kingdom', dial: '+44', code: 'GB', code3: 'GBR' },
414
- { name: 'United States', dial: '+1', code: 'US', code3: 'USA' },
415
- { name: 'Germany', dial: '+49', code: 'DE', code3: 'DEU' },
416
- { name: 'Australia', dial: '+61', code: 'AU', code3: 'AUS' },
417
- { name: 'Singapore', dial: '+65', code: 'SG', code3: 'SGP' },
418
- { name: 'United Arab Emirates', dial: '+971', code: 'AE', code3: 'ARE' },
419
- { name: 'France', dial: '+33', code: 'FR', code3: 'FRA' },
420
- { name: 'India', dial: '+91', code: 'IN', code3: 'IND' },
421
- { name: 'Italy', dial: '+39', code: 'IT', code3: 'ITA' },
422
- { name: 'Japan', dial: '+81', code: 'JP', code3: 'JPN' },
423
- { name: 'Afghanistan', dial: '+93', code: 'AF', code3: 'AFG' },
424
- { name: 'Albania', dial: '+355', code: 'AL', code3: 'ALB' },
425
- { name: 'Algeria', dial: '+213', code: 'DZ', code3: 'DZA' },
426
- { name: 'Andorra', dial: '+376', code: 'AD', code3: 'AND' },
427
- { name: 'Angola', dial: '+244', code: 'AO', code3: 'AGO' },
428
- { name: 'Anguilla', dial: '+1264', code: 'AI', code3: 'AIA' },
429
- { name: 'Antarctica', dial: '+672', code: 'AQ', code3: 'ATA' },
430
- { name: 'Antigua and Barbuda', dial: '+1268', code: 'AG', code3: 'ATG' },
431
- { name: 'Argentina', dial: '+54', code: 'AR', code3: 'ARG' },
432
- { name: 'Armenia', dial: '+374', code: 'AM', code3: 'ARM' },
433
- { name: 'Aruba', dial: '+297', code: 'AW', code3: 'ABW' },
434
- { name: 'Austria', dial: '+43', code: 'AT', code3: 'AUT' },
435
- { name: 'Azerbaijan', dial: '+994', code: 'AZ', code3: 'AZE' },
436
- { name: 'Bahamas', dial: '+1242', code: 'BS', code3: 'BHS' },
437
- { name: 'Bahrain', dial: '+973', code: 'BH', code3: 'BHR' },
438
- { name: 'Bangladesh', dial: '+880', code: 'BD', code3: 'BGD' },
439
- { name: 'Barbados', dial: '+1246', code: 'BB', code3: 'BRB' },
440
- { name: 'Belarus', dial: '+375', code: 'BY', code3: 'BLR' },
441
- { name: 'Belgium', dial: '+32', code: 'BE', code3: 'BEL' },
442
- { name: 'Belize', dial: '+501', code: 'BZ', code3: 'BLZ' },
443
- { name: 'Benin', dial: '+229', code: 'BJ', code3: 'BEN' },
444
- { name: 'Bermuda', dial: '+1441', code: 'BM', code3: 'BMU' },
445
- { name: 'Bhutan', dial: '+975', code: 'BT', code3: 'BTN' },
446
- { name: 'Bosnia and Herzegovina', dial: '+387', code: 'BA', code3: 'BIH' },
447
- { name: 'Botswana', dial: '+267', code: 'BW', code3: 'BWA' },
448
- { name: 'Brazil', dial: '+55', code: 'BR', code3: 'BRA' },
449
- {
450
- name: 'British Indian Ocean Territory',
451
- dial: '+246',
452
- code: 'IO',
453
- code3: 'IOT',
454
- },
455
- { name: 'Bulgaria', dial: '+359', code: 'BG', code3: 'BGR' },
456
- { name: 'Burkina Faso', dial: '+226', code: 'BF', code3: 'BFA' },
457
- { name: 'Burundi', dial: '+257', code: 'BI', code3: 'BDI' },
458
- { name: 'Cambodia', dial: '+855', code: 'KH', code3: 'KHM' },
459
- { name: 'Cameroon', dial: '+237', code: 'CM', code3: 'CMR' },
460
- { name: 'Canada', dial: '+1', code: 'CA', code3: 'CAN' },
461
- { name: 'Cape Verde', dial: '+238', code: 'CV', code3: 'CPV' },
462
- { name: 'Central African Republic', dial: '+236', code: 'CF', code3: 'CAF' },
463
- { name: 'Chad', dial: '+235', code: 'TD', code3: 'TCD' },
464
- { name: 'Chile', dial: '+56', code: 'CL', code3: 'CHL' },
465
- { name: 'China', dial: '+86', code: 'CN', code3: 'CHN' },
466
- { name: 'Christmas Island', dial: '+61', code: 'CX', code3: 'CXR' },
467
- { name: 'Colombia', dial: '+57', code: 'CO', code3: 'COL' },
468
- { name: 'Comoros', dial: '+269', code: 'KM', code3: 'COM' },
469
- { name: 'Cook Islands', dial: '+682', code: 'CK', code3: 'COK' },
470
- { name: 'Costa Rica', dial: '+506', code: 'CR', code3: 'CRI' },
471
- { name: 'Croatia', dial: '+385', code: 'HR', code3: 'HRV' },
472
- { name: 'Cuba', dial: '+53', code: 'CU', code3: 'CUB' },
473
- { name: 'Cyprus', dial: '+357', code: 'CY', code3: 'CYP' },
474
- { name: 'Czech Republic', dial: '+420', code: 'CZ', code3: 'CZE' },
475
- { name: 'Denmark', dial: '+45', code: 'DK', code3: 'DNK' },
476
- { name: 'Djibouti', dial: '+253', code: 'DJ', code3: 'DJI' },
477
- { name: 'Dominica', dial: '+1767', code: 'DM', code3: 'DMA' },
478
- { name: 'Ecuador', dial: '+593', code: 'EC', code3: 'ECU' },
479
- { name: 'Egypt', dial: '+20', code: 'EG', code3: 'EGY' },
480
- { name: 'El Salvador', dial: '+503', code: 'SV', code3: 'SLV' },
481
- { name: 'Equatorial Guinea', dial: '+240', code: 'GQ', code3: 'GNQ' },
482
- { name: 'Eritrea', dial: '+291', code: 'ER', code3: 'ERI' },
483
- { name: 'Estonia', dial: '+372', code: 'EE', code3: 'EST' },
484
- { name: 'Ethiopia', dial: '+251', code: 'ET', code3: 'ETH' },
485
- { name: 'Faroe Islands', dial: '+298', code: 'FO', code3: 'FRO' },
486
- { name: 'Fiji', dial: '+679', code: 'FJ', code3: 'FJI' },
487
- { name: 'Finland', dial: '+358', code: 'FI', code3: 'FIN' },
488
- { name: 'French Polynesia', dial: '+689', code: 'PF', code3: 'PYF' },
489
- { name: 'Gabon', dial: '+241', code: 'GA', code3: 'GAB' },
490
- { name: 'Gambia', dial: '+220', code: 'GM', code3: 'GMB' },
491
- { name: 'Georgia', dial: '+995', code: 'GE', code3: 'GEO' },
492
- { name: 'Ghana', dial: '+233', code: 'GH', code3: 'GHA' },
493
- { name: 'Gibraltar', dial: '+350', code: 'GI', code3: 'GIB' },
494
- { name: 'Greece', dial: '+30', code: 'GR', code3: 'GRC' },
495
- { name: 'Greenland', dial: '+299', code: 'GL', code3: 'GRL' },
496
- { name: 'Grenada', dial: '+1473', code: 'GD', code3: 'GRD' },
497
- { name: 'Guam', dial: '+1671', code: 'GU', code3: 'GUM' },
498
- { name: 'Guatemala', dial: '+502', code: 'GT', code3: 'GTM' },
499
- { name: 'Guinea', dial: '+224', code: 'GN', code3: 'GIN' },
500
- { name: 'Guinea-Bissau', dial: '+245', code: 'GW', code3: 'GNB' },
501
- { name: 'Haiti', dial: '+509', code: 'HT', code3: 'HTI' },
502
- { name: 'Honduras', dial: '+504', code: 'HN', code3: 'HND' },
503
- { name: 'Hong Kong', dial: '+852', code: 'HK', code3: 'HKG' },
504
- { name: 'Hungary', dial: '+36', code: 'HU', code3: 'HUN' },
505
- { name: 'Iceland', dial: '+354', code: 'IS', code3: 'ISL' },
506
- { name: 'Indonesia', dial: '+62', code: 'ID', code3: 'IDN' },
507
- { name: 'Iraq', dial: '+964', code: 'IQ', code3: 'IRQ' },
508
- { name: 'Ireland', dial: '+353', code: 'IE', code3: 'IRL' },
509
- { name: 'Israel', dial: '+972', code: 'IL', code3: 'ISR' },
510
- { name: 'Jamaica', dial: '+1876', code: 'JM', code3: 'JAM' },
511
- { name: 'Jordan', dial: '+962', code: 'JO', code3: 'JOR' },
512
- { name: 'Kenya', dial: '+254', code: 'KE', code3: 'KEN' },
513
- { name: 'Kiribati', dial: '+686', code: 'KI', code3: 'KIR' },
514
- { name: 'Kuwait', dial: '+965', code: 'KW', code3: 'KWT' },
515
- { name: 'Kyrgyzstan', dial: '+996', code: 'KG', code3: 'KGZ' },
516
- { name: 'Laos', dial: '+856', code: 'LA', code3: 'LAO' },
517
- { name: 'Latvia', dial: '+371', code: 'LV', code3: 'LVA' },
518
- { name: 'Lebanon', dial: '+961', code: 'LB', code3: 'LBN' },
519
- { name: 'Lesotho', dial: '+266', code: 'LS', code3: 'LSO' },
520
- { name: 'Liberia', dial: '+231', code: 'LR', code3: 'LBR' },
521
- { name: 'Liechtenstein', dial: '+423', code: 'LI', code3: 'LIE' },
522
- { name: 'Lithuania', dial: '+370', code: 'LT', code3: 'LTU' },
523
- { name: 'Luxembourg', dial: '+352', code: 'LU', code3: 'LUX' },
524
- { name: 'Macao', dial: '+853', code: 'MO', code3: 'MAC' },
525
- { name: 'Macedonia', dial: '+389', code: 'MK', code3: 'MKD' },
526
- { name: 'Madagascar', dial: '+261', code: 'MG', code3: 'MDG' },
527
- { name: 'Malawi', dial: '+265', code: 'MW', code3: 'MWI' },
528
- { name: 'Malaysia', dial: '+60', code: 'MY', code3: 'MYS' },
529
- { name: 'Maldives', dial: '+960', code: 'MV', code3: 'MDV' },
530
- { name: 'Mali', dial: '+223', code: 'ML', code3: 'MLI' },
531
- { name: 'Malta', dial: '+356', code: 'MT', code3: 'MLT' },
532
- { name: 'Marshall Islands', dial: '+692', code: 'MH', code3: 'MHL' },
533
- { name: 'Mauritania', dial: '+222', code: 'MR', code3: 'MRT' },
534
- { name: 'Mauritius', dial: '+230', code: 'MU', code3: 'MUS' },
535
- { name: 'Mayotte', dial: '+262', code: 'YT', code3: 'MYT' },
536
- { name: 'Mexico', dial: '+52', code: 'MX', code3: 'MEX' },
537
- { name: 'Moldova', dial: '+373', code: 'MD', code3: 'MDA' },
538
- { name: 'Monaco', dial: '+377', code: 'MC', code3: 'MCO' },
539
- { name: 'Mongolia', dial: '+976', code: 'MN', code3: 'MNG' },
540
- { name: 'Montenegro', dial: '+382', code: 'ME', code3: 'MNE' },
541
- { name: 'Montserrat', dial: '+1664', code: 'MS', code3: 'MSR' },
542
- { name: 'Morocco', dial: '+212', code: 'MA', code3: 'MAR' },
543
- { name: 'Mozambique', dial: '+258', code: 'MZ', code3: 'MOZ' },
544
- { name: 'Myanmar', dial: '+95', code: 'MM', code3: 'MMR' },
545
- { name: 'Namibia', dial: '+264', code: 'NA', code3: 'NAM' },
546
- { name: 'Nauru', dial: '+674', code: 'NR', code3: 'NRU' },
547
- { name: 'Nepal', dial: '+977', code: 'NP', code3: 'NPL' },
548
- { name: 'Netherlands', dial: '+31', code: 'NL', code3: 'NLD' },
549
- { name: 'Netherlands Antilles', dial: '+599', code: 'AN', code3: 'ANT' },
550
- { name: 'New Caledonia', dial: '+687', code: 'NC', code3: 'NCL' },
551
- { name: 'New Zealand', dial: '+64', code: 'NZ', code3: 'NZL' },
552
- { name: 'Nicaragua', dial: '+505', code: 'NI', code3: 'NIC' },
553
- { name: 'Niger', dial: '+227', code: 'NE', code3: 'NER' },
554
- { name: 'Nigeria', dial: '+234', code: 'NG', code3: 'NGA' },
555
- { name: 'Niue', dial: '+683', code: 'NU', code3: 'NIU' },
556
- { name: 'Norfolk Island', dial: '+672', code: 'NF', code3: 'NFK' },
557
- { name: 'Northern Mariana Islands', dial: '+1670', code: 'MP', code3: 'MNP' },
558
- { name: 'Norway', dial: '+47', code: 'NO', code3: 'NOR' },
559
- { name: 'Oman', dial: '+968', code: 'OM', code3: 'OMN' },
560
- { name: 'Pakistan', dial: '+92', code: 'PK', code3: 'PAK' },
561
- { name: 'Palau', dial: '+680', code: 'PW', code3: 'PLW' },
562
- { name: 'Panama', dial: '+507', code: 'PA', code3: 'PAN' },
563
- { name: 'Papua New Guinea', dial: '+675', code: 'PG', code3: 'PNG' },
564
- { name: 'Paraguay', dial: '+595', code: 'PY', code3: 'PRY' },
565
- { name: 'Peru', dial: '+51', code: 'PE', code3: 'PER' },
566
- { name: 'Philippines', dial: '+63', code: 'PH', code3: 'PHL' },
567
- { name: 'Poland', dial: '+48', code: 'PL', code3: 'POL' },
568
- { name: 'Portugal', dial: '+351', code: 'PT', code3: 'PRT' },
569
- { name: 'Romania', dial: '+40', code: 'RO', code3: 'ROU' },
570
- { name: 'Russia', dial: '+7', code: 'RU', code3: 'RUS' },
571
- { name: 'Rwanda', dial: '+250', code: 'RW', code3: 'RWA' },
572
- { name: 'Saint Kitts and Nevis', dial: '+1869', code: 'KN', code3: 'KNA' },
573
- { name: 'Saint Lucia', dial: '+1758', code: 'LC', code3: 'LCA' },
574
- { name: 'Saint Pierre and Miquelon', dial: '+508', code: 'PM', code3: 'SPM' },
575
- {
576
- name: 'Saint Vincent and the Grenadines',
577
- dial: '+1784',
578
- code: 'VC',
579
- code3: 'VCT',
580
- },
581
- { name: 'Samoa', dial: '+685', code: 'WS', code3: 'WSM' },
582
- { name: 'San Marino', dial: '+378', code: 'SM', code3: 'SMR' },
583
- { name: 'Sao Tome and Principe', dial: '+239', code: 'ST', code3: 'STP' },
584
- { name: 'Saudi Arabia', dial: '+966', code: 'SA', code3: 'SAU' },
585
- { name: 'Senegal', dial: '+221', code: 'SN', code3: 'SEN' },
586
- { name: 'Serbia', dial: '+381', code: 'RS', code3: 'SRB' },
587
- { name: 'Seychelles', dial: '+248', code: 'SC', code3: 'SYC' },
588
- { name: 'Sierra Leone', dial: '+232', code: 'SL', code3: 'SLE' },
589
- { name: 'Slovakia', dial: '+421', code: 'SK', code3: 'SVK' },
590
- { name: 'Slovenia', dial: '+386', code: 'SI', code3: 'SVN' },
591
- { name: 'Solomon Islands', dial: '+677', code: 'SB', code3: 'SLB' },
592
- { name: 'Somalia', dial: '+252', code: 'SO', code3: 'SOM' },
593
- { name: 'South Africa', dial: '+27', code: 'ZA', code3: 'ZAF' },
594
- { name: 'South Sudan', dial: '+211', code: 'SS', code3: 'SSD' },
595
- {
596
- name: 'South Georgia and the South Sandwich Islands',
597
- dial: '+500',
598
- code: 'GS',
599
- code3: 'SGS',
600
- },
601
- { name: 'Spain', dial: '+34', code: 'ES', code3: 'ESP' },
602
- { name: 'Sri Lanka', dial: '+94', code: 'LK', code3: 'LKA' },
603
- { name: 'Sudan', dial: '+249', code: 'SD', code3: 'SDN' },
604
- { name: 'Suriname', dial: '+597', code: 'SR', code3: 'SUR' },
605
- { name: 'Svalbard and Jan Mayen', dial: '+47', code: 'SJ', code3: 'SJM' },
606
- { name: 'Sweden', dial: '+46', code: 'SE', code3: 'SWE' },
607
- { name: 'Switzerland', dial: '+41', code: 'CH', code3: 'CHE' },
608
- { name: 'Syrian Arab Republic', dial: '+963', code: 'SY', code3: 'SYR' },
609
- { name: 'Taiwan', dial: '+886', code: 'TW', code3: 'TWN' },
610
- { name: 'Tajikistan', dial: '+992', code: 'TJ', code3: 'TJK' },
611
- { name: 'Thailand', dial: '+66', code: 'TH', code3: 'THA' },
612
- { name: 'Timor-Leste', dial: '+670', code: 'TL', code3: 'TLS' },
613
- { name: 'Togo', dial: '+228', code: 'TG', code3: 'TGO' },
614
- { name: 'Tokelau', dial: '+690', code: 'TK', code3: 'TKL' },
615
- { name: 'Tonga', dial: '+676', code: 'TO', code3: 'TON' },
616
- { name: 'Trinidad and Tobago', dial: '+1868', code: 'TT', code3: 'TTO' },
617
- { name: 'Tunisia', dial: '+216', code: 'TN', code3: 'TUN' },
618
- { name: 'Turkey', dial: '+90', code: 'TR', code3: 'TUR' },
619
- { name: 'Turkmenistan', dial: '+993', code: 'TM', code3: 'TKM' },
620
- { name: 'Turks and Caicos Islands', dial: '+1649', code: 'TC', code3: 'TCA' },
621
- { name: 'Tuvalu', dial: '+688', code: 'TV', code3: 'TUV' },
622
- { name: 'Uganda', dial: '+256', code: 'UG', code3: 'UGA' },
623
- { name: 'Ukraine', dial: '+380', code: 'UA', code3: 'UKR' },
624
- { name: 'Uruguay', dial: '+598', code: 'UY', code3: 'URY' },
625
- { name: 'Uzbekistan', dial: '+998', code: 'UZ', code3: 'UZB' },
626
- { name: 'Vanuatu', dial: '+678', code: 'VU', code3: 'VUT' },
627
- { name: 'Vietnam', dial: '+84', code: 'VN', code3: 'VNM' },
628
- { name: 'Virgin Islands, British', dial: '+1284', code: 'VG', code3: 'VGB' },
629
- { name: 'Virgin Islands, U.S.', dial: '+1340', code: 'VI', code3: 'VIR' },
630
- { name: 'Wallis and Futuna', dial: '+681', code: 'WF', code3: 'WLF' },
631
- { name: 'Yemen', dial: '+967', code: 'YE', code3: 'YEM' },
632
- { name: 'Zambia', dial: '+260', code: 'ZM', code3: 'ZMB' },
633
- { name: 'Zimbabwe', dial: '+263', code: 'ZW', code3: 'ZWE' },
634
- {
635
- name: 'Korea, Republic of South Korea',
636
- dial: '+82',
637
- code: 'KR',
638
- code3: 'KOR',
639
- },
640
- {
641
- name: 'AmericanSamoa',
642
- dial: '+1684',
643
- code: 'AS',
644
- code3: 'ASM',
645
- },
646
- {
647
- name: "Korea, Democratic People's Republic of Korea",
648
- dial: '+850',
649
- code: 'KP',
650
- code3: 'PRK',
651
- },
652
- {
653
- name: 'Venezuela, Bolivarian Republic of Venezuela',
654
- dial: '+58',
655
- code: 'VE',
656
- code3: 'VEN',
657
- },
658
- {
659
- name: 'Virgin Islands, British',
660
- dial: '+1284',
661
- code: 'VG',
662
- code3: 'VGB',
663
- },
664
- ];