@react-pakistan/util-functions 1.25.90 → 2.0.0

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 (412) hide show
  1. package/README.md +74 -315
  2. package/constants/api-methods.d.ts +3 -1
  3. package/constants/api-methods.js +1 -15
  4. package/constants/cache-time.d.ts +7 -5
  5. package/constants/cache-time.js +1 -8
  6. package/constants/countries-timezones.d.ts +4 -2
  7. package/constants/countries-timezones.js +1 -1411
  8. package/constants/currencies.d.ts +4 -2
  9. package/constants/currencies.js +1 -1076
  10. package/constants/dial-codes.d.ts +5 -3
  11. package/constants/dial-codes.js +1 -1216
  12. package/constants/layout-direction.d.ts +3 -1
  13. package/constants/layout-direction.js +1 -8
  14. package/constants/react-pakistan-meta.d.ts +4 -2
  15. package/constants/react-pakistan-meta.js +1 -35
  16. package/constants/react-pakistan.d.ts +5 -3
  17. package/constants/react-pakistan.js +12 -104
  18. package/constants/select-value-delimiter.d.ts +3 -1
  19. package/constants/select-value-delimiter.js +1 -13
  20. package/constants/social-media-colors.d.ts +3 -1
  21. package/constants/social-media-colors.js +1 -42
  22. package/constants/social-media-sizes.d.ts +6 -4
  23. package/constants/social-media-sizes.js +1 -327
  24. package/constants/user-roles.d.ts +3 -1
  25. package/constants/user-roles.js +1 -9
  26. package/edu-pilot-pro/types/academics.d.ts +2 -266
  27. package/edu-pilot-pro/types/academics.js +1 -9
  28. package/edu-pilot-pro/types/admission.d.ts +803 -10
  29. package/edu-pilot-pro/types/admission.js +1 -7
  30. package/edu-pilot-pro/types/communication.d.ts +2 -165
  31. package/edu-pilot-pro/types/communication.js +1 -8
  32. package/edu-pilot-pro/types/enums.d.ts +30 -28
  33. package/edu-pilot-pro/types/enums.js +1 -445
  34. package/edu-pilot-pro/types/finance.d.ts +2 -128
  35. package/edu-pilot-pro/types/finance.js +1 -8
  36. package/edu-pilot-pro/types/index.d.ts +2 -12
  37. package/edu-pilot-pro/types/index.js +1 -28
  38. package/edu-pilot-pro/types/user-management.d.ts +2 -236
  39. package/edu-pilot-pro/types/user-management.js +1 -8
  40. package/factory/generic-component-factory.d.ts +12 -9
  41. package/factory/generic-component-factory.js +1 -131
  42. package/factory/generic-module-factory.d.ts +14 -10
  43. package/factory/generic-module-factory.js +1 -190
  44. package/general/basic-get.d.ts +8 -1
  45. package/general/basic-get.js +1 -83
  46. package/general/basic-post.d.ts +8 -1
  47. package/general/basic-post.js +1 -70
  48. package/general/calculate-pages.d.ts +9 -1
  49. package/general/calculate-pages.js +1 -7
  50. package/general/camel-to-sentence-case.d.ts +3 -1
  51. package/general/camel-to-sentence-case.js +1 -20
  52. package/general/check-even-odd-length.d.ts +3 -1
  53. package/general/check-even-odd-length.js +1 -17
  54. package/general/clear-cache.d.ts +7 -2
  55. package/general/clear-cache.js +1 -12
  56. package/general/cnic-formatter.d.ts +16 -3
  57. package/general/cnic-formatter.js +1 -53
  58. package/general/convert-url-to-base64.d.ts +8 -6
  59. package/general/convert-url-to-base64.js +1 -231
  60. package/general/countries.d.ts +5 -3
  61. package/general/countries.js +1 -514
  62. package/general/create-date.d.ts +3 -1
  63. package/general/create-date.js +1 -22
  64. package/general/crypto.d.ts +4 -2
  65. package/general/crypto.js +1 -45
  66. package/general/currencies.d.ts +2 -0
  67. package/general/currencies.js +0 -1077
  68. package/general/delete-image-from-private-supabase.d.ts +10 -2
  69. package/general/delete-image-from-private-supabase.js +1 -66
  70. package/general/delete-image-from-public-supabase.d.ts +10 -2
  71. package/general/delete-image-from-public-supabase.js +1 -66
  72. package/general/download-from-url.d.ts +8 -1
  73. package/general/download-from-url.js +1 -82
  74. package/general/dynamic-page-limit.d.ts +9 -3
  75. package/general/dynamic-page-limit.js +1 -7
  76. package/general/enum-to-text.d.ts +8 -1
  77. package/general/enum-to-text.js +1 -11
  78. package/general/fetch-data.d.ts +16 -4
  79. package/general/fetch-data.js +1 -95
  80. package/general/fetch-supabase-image.d.ts +11 -2
  81. package/general/fetch-supabase-image.js +1 -67
  82. package/general/fetch-supabase-private-assets.d.ts +11 -2
  83. package/general/fetch-supabase-private-assets.js +1 -69
  84. package/general/format-date.d.ts +10 -2
  85. package/general/format-date.js +1 -49
  86. package/general/format-number.d.ts +12 -2
  87. package/general/format-number.js +1 -35
  88. package/general/format-phone-display.d.ts +9 -1
  89. package/general/format-phone-display.js +1 -32
  90. package/general/format-phone.d.ts +10 -2
  91. package/general/format-phone.js +1 -20
  92. package/general/format-pricing.d.ts +8 -1
  93. package/general/format-pricing.js +1 -23
  94. package/general/format-secs.d.ts +8 -1
  95. package/general/format-secs.js +1 -21
  96. package/general/format-time.d.ts +8 -2
  97. package/general/format-time.js +1 -38
  98. package/general/format-value.d.ts +8 -1
  99. package/general/format-value.js +1 -7
  100. package/general/full-month-range.d.ts +3 -2
  101. package/general/full-month-range.js +1 -24
  102. package/general/full-year-range.d.ts +3 -2
  103. package/general/full-year-range.js +1 -20
  104. package/general/generate-article-schema.d.ts +3 -2
  105. package/general/generate-article-schema.js +1 -100
  106. package/general/generate-blog-schema.d.ts +3 -2
  107. package/general/generate-blog-schema.js +1 -32
  108. package/general/generate-book-schema.d.ts +3 -2
  109. package/general/generate-book-schema.js +1 -109
  110. package/general/generate-breadcrumb-schema.d.ts +3 -2
  111. package/general/generate-breadcrumb-schema.js +1 -34
  112. package/general/generate-carousel-schema.d.ts +3 -2
  113. package/general/generate-carousel-schema.js +1 -172
  114. package/general/generate-course-schema.d.ts +3 -2
  115. package/general/generate-course-schema.js +1 -124
  116. package/general/generate-dataset-schema.d.ts +3 -2
  117. package/general/generate-dataset-schema.js +1 -156
  118. package/general/generate-discussion-forum-schema.d.ts +3 -2
  119. package/general/generate-discussion-forum-schema.js +1 -67
  120. package/general/generate-education-schema.d.ts +3 -2
  121. package/general/generate-education-schema.js +1 -137
  122. package/general/generate-employer-aggregate-rating-schema.d.ts +3 -2
  123. package/general/generate-employer-aggregate-rating-schema.js +1 -64
  124. package/general/generate-event-schema.d.ts +3 -2
  125. package/general/generate-event-schema.js +1 -214
  126. package/general/generate-faq-schema.d.ts +3 -2
  127. package/general/generate-faq-schema.js +1 -43
  128. package/general/generate-grid.d.ts +3 -2
  129. package/general/generate-grid.js +1 -55
  130. package/general/generate-image-metadata-schema.d.ts +3 -2
  131. package/general/generate-image-metadata-schema.js +1 -73
  132. package/general/generate-job-posting-schema.d.ts +3 -2
  133. package/general/generate-job-posting-schema.js +1 -120
  134. package/general/generate-local-business-schema.d.ts +3 -2
  135. package/general/generate-local-business-schema.js +1 -75
  136. package/general/generate-math-solver-schema.d.ts +3 -2
  137. package/general/generate-math-solver-schema.js +1 -83
  138. package/general/generate-movie-carousel-schema.d.ts +3 -2
  139. package/general/generate-movie-carousel-schema.js +1 -160
  140. package/general/generate-organization-schema.d.ts +3 -2
  141. package/general/generate-organization-schema.js +1 -39
  142. package/general/generate-profile-page-schema.d.ts +3 -2
  143. package/general/generate-profile-page-schema.js +1 -82
  144. package/general/generate-qa-page-schema.d.ts +3 -2
  145. package/general/generate-qa-page-schema.js +1 -67
  146. package/general/generate-recipe-schema.d.ts +3 -2
  147. package/general/generate-recipe-schema.js +1 -104
  148. package/general/generate-ref.d.ts +8 -2
  149. package/general/generate-ref.js +1 -12
  150. package/general/generate-review-snippet-schema.d.ts +3 -2
  151. package/general/generate-review-snippet-schema.js +1 -137
  152. package/general/generate-shopping-loyalty-program-schema.d.ts +3 -2
  153. package/general/generate-shopping-loyalty-program-schema.js +1 -59
  154. package/general/generate-shopping-merchant-listing-schema.d.ts +3 -2
  155. package/general/generate-shopping-merchant-listing-schema.js +1 -153
  156. package/general/generate-shopping-merchant-return-policy-schema.d.ts +3 -2
  157. package/general/generate-shopping-merchant-return-policy-schema.js +1 -68
  158. package/general/generate-shopping-merchant-shipping-policy-schema.d.ts +3 -2
  159. package/general/generate-shopping-merchant-shipping-policy-schema.js +1 -74
  160. package/general/generate-shopping-overview-schema.d.ts +3 -2
  161. package/general/generate-shopping-overview-schema.js +1 -157
  162. package/general/generate-shopping-product-snippet-schema.d.ts +3 -2
  163. package/general/generate-shopping-product-snippet-schema.js +1 -167
  164. package/general/generate-shopping-variants-schema.d.ts +3 -2
  165. package/general/generate-shopping-variants-schema.js +1 -143
  166. package/general/generate-software-app-schema.d.ts +3 -2
  167. package/general/generate-software-app-schema.js +1 -143
  168. package/general/generate-speakable-schema.d.ts +3 -2
  169. package/general/generate-speakable-schema.js +1 -139
  170. package/general/generate-subscription-schema.d.ts +3 -2
  171. package/general/generate-subscription-schema.js +1 -133
  172. package/general/generate-vacation-rental-schema.d.ts +3 -2
  173. package/general/generate-vacation-rental-schema.js +1 -135
  174. package/general/generate-video-schema.d.ts +3 -2
  175. package/general/generate-video-schema.js +1 -163
  176. package/general/generic-cache.d.ts +17 -15
  177. package/general/generic-cache.js +1 -659
  178. package/general/get-available-page-limit.d.ts +8 -2
  179. package/general/get-available-page-limit.js +1 -31
  180. package/general/get-calendar-current-month.d.ts +11 -3
  181. package/general/get-calendar-current-month.js +1 -31
  182. package/general/get-calendar-dates.d.ts +11 -3
  183. package/general/get-calendar-dates.js +1 -42
  184. package/general/get-calendar-next-month.d.ts +12 -3
  185. package/general/get-calendar-next-month.js +1 -32
  186. package/general/get-calendar-previous-month.d.ts +12 -3
  187. package/general/get-calendar-previous-month.js +1 -36
  188. package/general/get-current-year.d.ts +7 -1
  189. package/general/get-current-year.js +1 -5
  190. package/general/get-day-name.d.ts +5 -3
  191. package/general/get-day-name.js +1 -14
  192. package/general/get-dial-code.d.ts +8 -1
  193. package/general/get-dial-code.js +1 -8
  194. package/general/get-full-name.d.ts +9 -2
  195. package/general/get-full-name.js +1 -8
  196. package/general/get-href.d.ts +3 -1
  197. package/general/get-href.js +1 -13
  198. package/general/get-month-name.d.ts +5 -3
  199. package/general/get-month-name.js +1 -19
  200. package/general/get-month-number.d.ts +5 -3
  201. package/general/get-month-number.js +1 -29
  202. package/general/get-number-of-days-in-month.d.ts +9 -2
  203. package/general/get-number-of-days-in-month.js +1 -12
  204. package/general/get-pathname.d.ts +3 -1
  205. package/general/get-pathname.js +1 -16
  206. package/general/get-week-day.d.ts +8 -1
  207. package/general/get-week-day.js +1 -9
  208. package/general/image-url-to-base64.d.ts +3 -1
  209. package/general/image-url-to-base64.js +1 -80
  210. package/general/is-created-or-updated.d.ts +3 -1
  211. package/general/is-created-or-updated.js +1 -26
  212. package/general/is-next-button-disabled.d.ts +9 -1
  213. package/general/is-next-button-disabled.js +1 -5
  214. package/general/is-odd.d.ts +3 -1
  215. package/general/is-odd.js +1 -13
  216. package/general/is-previous-button-disabled.d.ts +8 -1
  217. package/general/is-previous-button-disabled.js +1 -7
  218. package/general/linear-gradients.d.ts +4 -2
  219. package/general/linear-gradients.js +1 -52
  220. package/general/multi-part-search.d.ts +10 -2
  221. package/general/multi-part-search.js +1 -16
  222. package/general/normalize-phone.d.ts +15 -2
  223. package/general/normalize-phone.js +1 -40
  224. package/general/parse-frontmatter.d.ts +11 -4
  225. package/general/parse-frontmatter.js +2 -35
  226. package/general/remove-data-image-prefix.d.ts +8 -1
  227. package/general/remove-data-image-prefix.js +1 -7
  228. package/general/repeat-times.d.ts +3 -1
  229. package/general/repeat-times.js +1 -21
  230. package/general/resolve-anchor-link.d.ts +3 -1
  231. package/general/resolve-anchor-link.js +1 -26
  232. package/general/resolve-current-date.d.ts +3 -1
  233. package/general/resolve-current-date.js +1 -22
  234. package/general/resolve-grid.d.ts +3 -1
  235. package/general/resolve-grid.js +1 -18
  236. package/general/resolve-initials.d.ts +3 -1
  237. package/general/resolve-initials.js +1 -17
  238. package/general/set-timezone.d.ts +11 -1
  239. package/general/set-timezone.js +1 -12
  240. package/general/slugify.d.ts +3 -1
  241. package/general/slugify.js +1 -24
  242. package/general/text-to-enum.d.ts +8 -1
  243. package/general/text-to-enum.js +1 -10
  244. package/general/text-to-sentence-case.d.ts +3 -1
  245. package/general/text-to-sentence-case.js +1 -16
  246. package/general/time-out.d.ts +3 -1
  247. package/general/time-out.js +1 -16
  248. package/general/time-zones.d.ts +3 -1
  249. package/general/time-zones.js +1 -437
  250. package/general/truncate-text.d.ts +3 -1
  251. package/general/truncate-text.js +1 -18
  252. package/general/type.d.ts +3 -1
  253. package/general/type.js +1 -2
  254. package/general/upload-blob-to-private-supabase.d.ts +14 -2
  255. package/general/upload-blob-to-private-supabase.js +1 -62
  256. package/general/upload-blob-to-public-supabase.d.ts +14 -2
  257. package/general/upload-blob-to-public-supabase.js +1 -62
  258. package/general/upload-image-to-private-supabase.d.ts +15 -3
  259. package/general/upload-image-to-private-supabase.js +1 -66
  260. package/general/upload-image-to-public-supabase.d.ts +15 -3
  261. package/general/upload-image-to-public-supabase.js +1 -66
  262. package/general/url-to-sentence-case.d.ts +3 -1
  263. package/general/url-to-sentence-case.js +1 -19
  264. package/general/validate-comment.d.ts +3 -1
  265. package/general/validate-comment.js +1 -21
  266. package/general/validate-email.d.ts +3 -1
  267. package/general/validate-email.js +1 -24
  268. package/general/validate-form.d.ts +12 -3
  269. package/general/validate-form.js +1 -29
  270. package/general/validate-name.d.ts +3 -1
  271. package/general/validate-name.js +1 -21
  272. package/hooks/use-change.d.ts +11 -2
  273. package/hooks/use-change.js +1 -23
  274. package/hooks/use-debounce.d.ts +10 -1
  275. package/hooks/use-debounce.js +1 -14
  276. package/hooks/use-fetch.d.ts +7 -5
  277. package/hooks/use-fetch.js +1 -239
  278. package/hooks/use-force-render.d.ts +6 -2
  279. package/hooks/use-force-render.js +1 -17
  280. package/hooks/use-ip-geo-location.d.ts +8 -1
  281. package/hooks/use-ip-geo-location.js +1 -79
  282. package/hooks/use-is-mobile.d.ts +8 -1
  283. package/hooks/use-is-mobile.js +1 -22
  284. package/hooks/use-module-entity-v2.d.ts +7 -4
  285. package/hooks/use-module-entity-v2.js +1 -188
  286. package/hooks/use-module-entity.d.ts +7 -4
  287. package/hooks/use-module-entity.js +1 -177
  288. package/hooks/use-phone-formatter.d.ts +10 -2
  289. package/hooks/use-phone-formatter.js +1 -23
  290. package/hooks/use-position.d.ts +6 -3
  291. package/hooks/use-position.js +1 -43
  292. package/hooks/use-rtl.d.ts +4 -2
  293. package/hooks/use-rtl.js +1 -84
  294. package/hooks/use-sticky.d.ts +3 -1
  295. package/hooks/use-sticky.js +1 -39
  296. package/hooks/use-toggle-state.d.ts +3 -2
  297. package/hooks/use-toggle-state.js +1 -26
  298. package/hooks/use-window-event-listener.d.ts +9 -1
  299. package/hooks/use-window-event-listener.js +1 -11
  300. package/hooks/with-seo.d.ts +11 -2
  301. package/hooks/with-seo.js +1 -37
  302. package/local-storage/get-storage-value.d.ts +5 -2
  303. package/local-storage/get-storage-value.js +1 -20
  304. package/local-storage/remove-storage-value.d.ts +3 -1
  305. package/local-storage/remove-storage-value.js +1 -14
  306. package/local-storage/set-storage-value.d.ts +3 -1
  307. package/local-storage/set-storage-value.js +1 -14
  308. package/local-storage/type.d.ts +3 -1
  309. package/local-storage/type.js +1 -2
  310. package/npm.d.d.ts +2 -0
  311. package/npm.d.js +0 -0
  312. package/package.json +20 -18
  313. package/storybook/generate-sitemap.d.ts +3 -1
  314. package/storybook/generate-sitemap.js +17 -26
  315. package/storybook/preview.d.ts +4 -2
  316. package/storybook/preview.js +1 -62
  317. package/storybook/react-design-story-script.d.ts +3 -1
  318. package/storybook/react-design-story-script.js +5 -27
  319. package/storybook/react-emoji-collection.d.ts +3 -1
  320. package/storybook/react-emoji-collection.js +10 -55
  321. package/storybook/react-emoji-story-script.d.ts +3 -1
  322. package/storybook/react-emoji-story-script.js +5 -31
  323. package/storybook/react-emoji-story-template.d.ts +3 -1
  324. package/storybook/react-emoji-story-template.js +45 -15
  325. package/storybook/react-icon-collection.d.ts +3 -1
  326. package/storybook/react-icon-collection.js +10 -42
  327. package/storybook/react-icon-story-script.d.ts +3 -1
  328. package/storybook/react-icon-story-script.js +5 -27
  329. package/storybook/react-icon-story-template.d.ts +3 -1
  330. package/storybook/react-icon-story-template.js +45 -14
  331. package/storybook/react-logo-collection.d.ts +3 -1
  332. package/storybook/react-logo-collection.js +10 -42
  333. package/storybook/react-logo-story-script.d.ts +3 -1
  334. package/storybook/react-logo-story-script.js +5 -27
  335. package/storybook/react-logo-story-template.d.ts +3 -1
  336. package/storybook/react-logo-story-template.js +45 -14
  337. package/storybook/react-pakistan-theme.d.ts +3 -1
  338. package/storybook/react-pakistan-theme.js +1 -31
  339. package/storybook/responsive-args.d.ts +11 -10
  340. package/storybook/responsive-args.js +1 -19
  341. package/storybook/responsive-component.d.ts +4 -2
  342. package/storybook/responsive-component.js +37 -23
  343. package/storybook/responsive-screens.d.ts +3 -1
  344. package/storybook/responsive-screens.js +1 -109
  345. package/storybook/theme.d.ts +17 -15
  346. package/storybook/theme.js +1 -1022
  347. package/api/stellar-solutions/app-user/index.d.ts +0 -51
  348. package/api/stellar-solutions/app-user/index.js +0 -210
  349. package/api/stellar-solutions/bank/index.d.ts +0 -59
  350. package/api/stellar-solutions/bank/index.js +0 -210
  351. package/api/stellar-solutions/branch/index.d.ts +0 -58
  352. package/api/stellar-solutions/branch/index.js +0 -220
  353. package/api/stellar-solutions/company/index.d.ts +0 -57
  354. package/api/stellar-solutions/company/index.js +0 -218
  355. package/api/stellar-solutions/company-report/index.d.ts +0 -15
  356. package/api/stellar-solutions/company-report/index.js +0 -74
  357. package/api/stellar-solutions/constants.d.ts +0 -19
  358. package/api/stellar-solutions/constants.js +0 -22
  359. package/api/stellar-solutions/contact/index.d.ts +0 -56
  360. package/api/stellar-solutions/contact/index.js +0 -217
  361. package/api/stellar-solutions/currency/index.d.ts +0 -55
  362. package/api/stellar-solutions/currency/index.js +0 -212
  363. package/api/stellar-solutions/customer/index.d.ts +0 -68
  364. package/api/stellar-solutions/customer/index.js +0 -249
  365. package/api/stellar-solutions/expense/index.d.ts +0 -58
  366. package/api/stellar-solutions/expense/index.js +0 -229
  367. package/api/stellar-solutions/expense-category/index.d.ts +0 -53
  368. package/api/stellar-solutions/expense-category/index.js +0 -214
  369. package/api/stellar-solutions/lead/index.d.ts +0 -51
  370. package/api/stellar-solutions/lead/index.js +0 -206
  371. package/api/stellar-solutions/menu-order/index.d.ts +0 -53
  372. package/api/stellar-solutions/menu-order/index.js +0 -202
  373. package/api/stellar-solutions/payment/index.d.ts +0 -65
  374. package/api/stellar-solutions/payment/index.js +0 -230
  375. package/api/stellar-solutions/payment-mode/index.d.ts +0 -53
  376. package/api/stellar-solutions/payment-mode/index.js +0 -191
  377. package/api/stellar-solutions/preference/index.d.ts +0 -25
  378. package/api/stellar-solutions/preference/index.js +0 -114
  379. package/api/stellar-solutions/product/index.d.ts +0 -64
  380. package/api/stellar-solutions/product/index.js +0 -235
  381. package/api/stellar-solutions/product-category/index.d.ts +0 -51
  382. package/api/stellar-solutions/product-category/index.js +0 -212
  383. package/api/stellar-solutions/profile/index.d.ts +0 -78
  384. package/api/stellar-solutions/profile/index.js +0 -234
  385. package/api/stellar-solutions/quote-invoice/index.d.ts +0 -97
  386. package/api/stellar-solutions/quote-invoice/index.js +0 -369
  387. package/api/stellar-solutions/quote-invoice-report/index.d.ts +0 -15
  388. package/api/stellar-solutions/quote-invoice-report/index.js +0 -74
  389. package/api/stellar-solutions/tax/index.d.ts +0 -55
  390. package/api/stellar-solutions/tax/index.js +0 -224
  391. package/api/stellar-solutions/types/common.d.ts +0 -24
  392. package/api/stellar-solutions/types/common.js +0 -22
  393. package/api/stellar-solutions/types/erp.d.ts +0 -302
  394. package/api/stellar-solutions/types/erp.js +0 -73
  395. package/api/stellar-solutions/types/index.d.ts +0 -3
  396. package/api/stellar-solutions/types/index.js +0 -19
  397. package/api/stellar-solutions/types/pos.d.ts +0 -176
  398. package/api/stellar-solutions/types/pos.js +0 -61
  399. package/constants/index.d.ts +0 -12
  400. package/constants/index.js +0 -28
  401. package/factory/index.d.ts +0 -2
  402. package/factory/index.js +0 -18
  403. package/general/index.d.ts +0 -95
  404. package/general/index.js +0 -111
  405. package/index.d.ts +0 -28
  406. package/index.js +0 -44
  407. package/local-storage/index.d.ts +0 -4
  408. package/local-storage/index.js +0 -20
  409. package/setupTests.d.ts +0 -1
  410. package/setupTests.js +0 -52
  411. package/storybook/index.d.ts +0 -17
  412. package/storybook/index.js +0 -33
@@ -1,514 +1 @@
1
- "use strict";
2
- /**
3
- * A util library of worldwide countries
4
- *
5
- * @returns country code and country name
6
- * @author Taimoor Khan
7
- * @remarks Forum App
8
- */
9
- /** End file docs */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.countries = exports.COUNTRY_CODE = void 0;
12
- var COUNTRY_CODE;
13
- (function (COUNTRY_CODE) {
14
- COUNTRY_CODE["AF"] = "AF";
15
- COUNTRY_CODE["AX"] = "AX";
16
- COUNTRY_CODE["AL"] = "AL";
17
- COUNTRY_CODE["DZ"] = "DZ";
18
- COUNTRY_CODE["AS"] = "AS";
19
- COUNTRY_CODE["AD"] = "AD";
20
- COUNTRY_CODE["AO"] = "AO";
21
- COUNTRY_CODE["AI"] = "AI";
22
- COUNTRY_CODE["AQ"] = "AQ";
23
- COUNTRY_CODE["AG"] = "AG";
24
- COUNTRY_CODE["AR"] = "AR";
25
- COUNTRY_CODE["AM"] = "AM";
26
- COUNTRY_CODE["AW"] = "AW";
27
- COUNTRY_CODE["AU"] = "AU";
28
- COUNTRY_CODE["AT"] = "AT";
29
- COUNTRY_CODE["AZ"] = "AZ";
30
- COUNTRY_CODE["BS"] = "BS";
31
- COUNTRY_CODE["BH"] = "BH";
32
- COUNTRY_CODE["BD"] = "BD";
33
- COUNTRY_CODE["BB"] = "BB";
34
- COUNTRY_CODE["BY"] = "BY";
35
- COUNTRY_CODE["BE"] = "BE";
36
- COUNTRY_CODE["BZ"] = "BZ";
37
- COUNTRY_CODE["BJ"] = "BJ";
38
- COUNTRY_CODE["BM"] = "BM";
39
- COUNTRY_CODE["BT"] = "BT";
40
- COUNTRY_CODE["BO"] = "BO";
41
- COUNTRY_CODE["BQ"] = "BQ";
42
- COUNTRY_CODE["BA"] = "BA";
43
- COUNTRY_CODE["BW"] = "BW";
44
- COUNTRY_CODE["BV"] = "BV";
45
- COUNTRY_CODE["BR"] = "BR";
46
- COUNTRY_CODE["IO"] = "IO";
47
- COUNTRY_CODE["BN"] = "BN";
48
- COUNTRY_CODE["BG"] = "BG";
49
- COUNTRY_CODE["BF"] = "BF";
50
- COUNTRY_CODE["BI"] = "BI";
51
- COUNTRY_CODE["KH"] = "KH";
52
- COUNTRY_CODE["CM"] = "CM";
53
- COUNTRY_CODE["CA"] = "CA";
54
- COUNTRY_CODE["CV"] = "CV";
55
- COUNTRY_CODE["KY"] = "KY";
56
- COUNTRY_CODE["CF"] = "CF";
57
- COUNTRY_CODE["TD"] = "TD";
58
- COUNTRY_CODE["CL"] = "CL";
59
- COUNTRY_CODE["CN"] = "CN";
60
- COUNTRY_CODE["CX"] = "CX";
61
- COUNTRY_CODE["CC"] = "CC";
62
- COUNTRY_CODE["CO"] = "CO";
63
- COUNTRY_CODE["KM"] = "KM";
64
- COUNTRY_CODE["CG"] = "CG";
65
- COUNTRY_CODE["CD"] = "CD";
66
- COUNTRY_CODE["CK"] = "CK";
67
- COUNTRY_CODE["CR"] = "CR";
68
- COUNTRY_CODE["CI"] = "CI";
69
- COUNTRY_CODE["HR"] = "HR";
70
- COUNTRY_CODE["CU"] = "CU";
71
- COUNTRY_CODE["CW"] = "CW";
72
- COUNTRY_CODE["CY"] = "CY";
73
- COUNTRY_CODE["CZ"] = "CZ";
74
- COUNTRY_CODE["DK"] = "DK";
75
- COUNTRY_CODE["DJ"] = "DJ";
76
- COUNTRY_CODE["DM"] = "DM";
77
- COUNTRY_CODE["DO"] = "DO";
78
- COUNTRY_CODE["EC"] = "EC";
79
- COUNTRY_CODE["EG"] = "EG";
80
- COUNTRY_CODE["SV"] = "SV";
81
- COUNTRY_CODE["GQ"] = "GQ";
82
- COUNTRY_CODE["ER"] = "ER";
83
- COUNTRY_CODE["EE"] = "EE";
84
- COUNTRY_CODE["ET"] = "ET";
85
- COUNTRY_CODE["FK"] = "FK";
86
- COUNTRY_CODE["FO"] = "FO";
87
- COUNTRY_CODE["FJ"] = "FJ";
88
- COUNTRY_CODE["FI"] = "FI";
89
- COUNTRY_CODE["FR"] = "FR";
90
- COUNTRY_CODE["GF"] = "GF";
91
- COUNTRY_CODE["PF"] = "PF";
92
- COUNTRY_CODE["TF"] = "TF";
93
- COUNTRY_CODE["GA"] = "GA";
94
- COUNTRY_CODE["GM"] = "GM";
95
- COUNTRY_CODE["GE"] = "GE";
96
- COUNTRY_CODE["DE"] = "DE";
97
- COUNTRY_CODE["GH"] = "GH";
98
- COUNTRY_CODE["GI"] = "GI";
99
- COUNTRY_CODE["GR"] = "GR";
100
- COUNTRY_CODE["GL"] = "GL";
101
- COUNTRY_CODE["GD"] = "GD";
102
- COUNTRY_CODE["GP"] = "GP";
103
- COUNTRY_CODE["GU"] = "GU";
104
- COUNTRY_CODE["GT"] = "GT";
105
- COUNTRY_CODE["GG"] = "GG";
106
- COUNTRY_CODE["GN"] = "GN";
107
- COUNTRY_CODE["GW"] = "GW";
108
- COUNTRY_CODE["GY"] = "GY";
109
- COUNTRY_CODE["HT"] = "HT";
110
- COUNTRY_CODE["HM"] = "HM";
111
- COUNTRY_CODE["VA"] = "VA";
112
- COUNTRY_CODE["HN"] = "HN";
113
- COUNTRY_CODE["HK"] = "HK";
114
- COUNTRY_CODE["HU"] = "HU";
115
- COUNTRY_CODE["IS"] = "IS";
116
- COUNTRY_CODE["IN"] = "IN";
117
- COUNTRY_CODE["ID"] = "ID";
118
- COUNTRY_CODE["IR"] = "IR";
119
- COUNTRY_CODE["IQ"] = "IQ";
120
- COUNTRY_CODE["IE"] = "IE";
121
- COUNTRY_CODE["IM"] = "IM";
122
- COUNTRY_CODE["IL"] = "IL";
123
- COUNTRY_CODE["IT"] = "IT";
124
- COUNTRY_CODE["JM"] = "JM";
125
- COUNTRY_CODE["JP"] = "JP";
126
- COUNTRY_CODE["JE"] = "JE";
127
- COUNTRY_CODE["JO"] = "JO";
128
- COUNTRY_CODE["KZ"] = "KZ";
129
- COUNTRY_CODE["KE"] = "KE";
130
- COUNTRY_CODE["KI"] = "KI";
131
- COUNTRY_CODE["KP"] = "KP";
132
- COUNTRY_CODE["KR"] = "KR";
133
- COUNTRY_CODE["KW"] = "KW";
134
- COUNTRY_CODE["KG"] = "KG";
135
- COUNTRY_CODE["LA"] = "LA";
136
- COUNTRY_CODE["LV"] = "LV";
137
- COUNTRY_CODE["LB"] = "LB";
138
- COUNTRY_CODE["LS"] = "LS";
139
- COUNTRY_CODE["LR"] = "LR";
140
- COUNTRY_CODE["LY"] = "LY";
141
- COUNTRY_CODE["LI"] = "LI";
142
- COUNTRY_CODE["LT"] = "LT";
143
- COUNTRY_CODE["LU"] = "LU";
144
- COUNTRY_CODE["MO"] = "MO";
145
- COUNTRY_CODE["MK"] = "MK";
146
- COUNTRY_CODE["MG"] = "MG";
147
- COUNTRY_CODE["MW"] = "MW";
148
- COUNTRY_CODE["MY"] = "MY";
149
- COUNTRY_CODE["MV"] = "MV";
150
- COUNTRY_CODE["ML"] = "ML";
151
- COUNTRY_CODE["MT"] = "MT";
152
- COUNTRY_CODE["MH"] = "MH";
153
- COUNTRY_CODE["MQ"] = "MQ";
154
- COUNTRY_CODE["MR"] = "MR";
155
- COUNTRY_CODE["MU"] = "MU";
156
- COUNTRY_CODE["YT"] = "YT";
157
- COUNTRY_CODE["MX"] = "MX";
158
- COUNTRY_CODE["FM"] = "FM";
159
- COUNTRY_CODE["MD"] = "MD";
160
- COUNTRY_CODE["MC"] = "MC";
161
- COUNTRY_CODE["MN"] = "MN";
162
- COUNTRY_CODE["ME"] = "ME";
163
- COUNTRY_CODE["MS"] = "MS";
164
- COUNTRY_CODE["MA"] = "MA";
165
- COUNTRY_CODE["MZ"] = "MZ";
166
- COUNTRY_CODE["MM"] = "MM";
167
- COUNTRY_CODE["NA"] = "NA";
168
- COUNTRY_CODE["NR"] = "NR";
169
- COUNTRY_CODE["NP"] = "NP";
170
- COUNTRY_CODE["NL"] = "NL";
171
- COUNTRY_CODE["NC"] = "NC";
172
- COUNTRY_CODE["NZ"] = "NZ";
173
- COUNTRY_CODE["NI"] = "NI";
174
- COUNTRY_CODE["NE"] = "NE";
175
- COUNTRY_CODE["NG"] = "NG";
176
- COUNTRY_CODE["NU"] = "NU";
177
- COUNTRY_CODE["NF"] = "NF";
178
- COUNTRY_CODE["MP"] = "MP";
179
- COUNTRY_CODE["NO"] = "NO";
180
- COUNTRY_CODE["OM"] = "OM";
181
- COUNTRY_CODE["PK"] = "PK";
182
- COUNTRY_CODE["PW"] = "PW";
183
- COUNTRY_CODE["PS"] = "PS";
184
- COUNTRY_CODE["PA"] = "PA";
185
- COUNTRY_CODE["PG"] = "PG";
186
- COUNTRY_CODE["PY"] = "PY";
187
- COUNTRY_CODE["PE"] = "PE";
188
- COUNTRY_CODE["PH"] = "PH";
189
- COUNTRY_CODE["PN"] = "PN";
190
- COUNTRY_CODE["PL"] = "PL";
191
- COUNTRY_CODE["PT"] = "PT";
192
- COUNTRY_CODE["PR"] = "PR";
193
- COUNTRY_CODE["QA"] = "QA";
194
- COUNTRY_CODE["RE"] = "RE";
195
- COUNTRY_CODE["RO"] = "RO";
196
- COUNTRY_CODE["RU"] = "RU";
197
- COUNTRY_CODE["RW"] = "RW";
198
- COUNTRY_CODE["BL"] = "BL";
199
- COUNTRY_CODE["SH"] = "SH";
200
- COUNTRY_CODE["KN"] = "KN";
201
- COUNTRY_CODE["LC"] = "LC";
202
- COUNTRY_CODE["MF"] = "MF";
203
- COUNTRY_CODE["PM"] = "PM";
204
- COUNTRY_CODE["VC"] = "VC";
205
- COUNTRY_CODE["WS"] = "WS";
206
- COUNTRY_CODE["SM"] = "SM";
207
- COUNTRY_CODE["ST"] = "ST";
208
- COUNTRY_CODE["SA"] = "SA";
209
- COUNTRY_CODE["SN"] = "SN";
210
- COUNTRY_CODE["RS"] = "RS";
211
- COUNTRY_CODE["SC"] = "SC";
212
- COUNTRY_CODE["SL"] = "SL";
213
- COUNTRY_CODE["SG"] = "SG";
214
- COUNTRY_CODE["SX"] = "SX";
215
- COUNTRY_CODE["SK"] = "SK";
216
- COUNTRY_CODE["SI"] = "SI";
217
- COUNTRY_CODE["SB"] = "SB";
218
- COUNTRY_CODE["SO"] = "SO";
219
- COUNTRY_CODE["ZA"] = "ZA";
220
- COUNTRY_CODE["GS"] = "GS";
221
- COUNTRY_CODE["SS"] = "SS";
222
- COUNTRY_CODE["ES"] = "ES";
223
- COUNTRY_CODE["LK"] = "LK";
224
- COUNTRY_CODE["SD"] = "SD";
225
- COUNTRY_CODE["SR"] = "SR";
226
- COUNTRY_CODE["SJ"] = "SJ";
227
- COUNTRY_CODE["SZ"] = "SZ";
228
- COUNTRY_CODE["SE"] = "SE";
229
- COUNTRY_CODE["CH"] = "CH";
230
- COUNTRY_CODE["SY"] = "SY";
231
- COUNTRY_CODE["TW"] = "TW";
232
- COUNTRY_CODE["TJ"] = "TJ";
233
- COUNTRY_CODE["TZ"] = "TZ";
234
- COUNTRY_CODE["TH"] = "TH";
235
- COUNTRY_CODE["TL"] = "TL";
236
- COUNTRY_CODE["TG"] = "TG";
237
- COUNTRY_CODE["TK"] = "TK";
238
- COUNTRY_CODE["TO"] = "TO";
239
- COUNTRY_CODE["TT"] = "TT";
240
- COUNTRY_CODE["TN"] = "TN";
241
- COUNTRY_CODE["TR"] = "TR";
242
- COUNTRY_CODE["TM"] = "TM";
243
- COUNTRY_CODE["TC"] = "TC";
244
- COUNTRY_CODE["TV"] = "TV";
245
- COUNTRY_CODE["UG"] = "UG";
246
- COUNTRY_CODE["UA"] = "UA";
247
- COUNTRY_CODE["AE"] = "AE";
248
- COUNTRY_CODE["GB"] = "GB";
249
- COUNTRY_CODE["US"] = "US";
250
- COUNTRY_CODE["UM"] = "UM";
251
- COUNTRY_CODE["UY"] = "UY";
252
- COUNTRY_CODE["UZ"] = "UZ";
253
- COUNTRY_CODE["VU"] = "VU";
254
- COUNTRY_CODE["VE"] = "VE";
255
- COUNTRY_CODE["VN"] = "VN";
256
- COUNTRY_CODE["VG"] = "VG";
257
- COUNTRY_CODE["VI"] = "VI";
258
- COUNTRY_CODE["WF"] = "WF";
259
- COUNTRY_CODE["EH"] = "EH";
260
- COUNTRY_CODE["YE"] = "YE";
261
- COUNTRY_CODE["ZM"] = "ZM";
262
- COUNTRY_CODE["ZW"] = "ZW";
263
- })(COUNTRY_CODE || (exports.COUNTRY_CODE = COUNTRY_CODE = {}));
264
- exports.countries = {
265
- AF: { code: 'AF', country: 'Afghanistan' },
266
- AX: { code: 'AX', country: 'Åland Islands' },
267
- AL: { code: 'AL', country: 'Albania' },
268
- DZ: { code: 'DZ', country: 'Algeria' },
269
- AS: { code: 'AS', country: 'American Samoa' },
270
- AD: { code: 'AD', country: 'Andorra' },
271
- AO: { code: 'AO', country: 'Angola' },
272
- AI: { code: 'AI', country: 'Anguilla' },
273
- AQ: { code: 'AQ', country: 'Antarctica' },
274
- AG: { code: 'AG', country: 'Antigua and Barbuda' },
275
- AR: { code: 'AR', country: 'Argentina' },
276
- AM: { code: 'AM', country: 'Armenia' },
277
- AW: { code: 'AW', country: 'Aruba' },
278
- AU: { code: 'AU', country: 'Australia' },
279
- AT: { code: 'AT', country: 'Austria' },
280
- AZ: { code: 'AZ', country: 'Azerbaijan' },
281
- BS: { code: 'BS', country: 'Bahamas' },
282
- BH: { code: 'BH', country: 'Bahrain' },
283
- BD: { code: 'BD', country: 'Bangladesh' },
284
- BB: { code: 'BB', country: 'Barbados' },
285
- BY: { code: 'BY', country: 'Belarus' },
286
- BE: { code: 'BE', country: 'Belgium' },
287
- BZ: { code: 'BZ', country: 'Belize' },
288
- BJ: { code: 'BJ', country: 'Benin' },
289
- BM: { code: 'BM', country: 'Bermuda' },
290
- BT: { code: 'BT', country: 'Bhutan' },
291
- BO: { code: 'BO', country: 'Bolivia, Plurinational State of' },
292
- BQ: { code: 'BQ', country: 'Bonaire, Sint Eustatius and Saba' },
293
- BA: { code: 'BA', country: 'Bosnia and Herzegovina' },
294
- BW: { code: 'BW', country: 'Botswana' },
295
- BV: { code: 'BV', country: 'Bouvet Island' },
296
- BR: { code: 'BR', country: 'Brazil' },
297
- IO: { code: 'IO', country: 'British Indian Ocean Territory' },
298
- BN: { code: 'BN', country: 'Brunei Darussalam' },
299
- BG: { code: 'BG', country: 'Bulgaria' },
300
- BF: { code: 'BF', country: 'Burkina Faso' },
301
- BI: { code: 'BI', country: 'Burundi' },
302
- KH: { code: 'KH', country: 'Cambodia' },
303
- CM: { code: 'CM', country: 'Cameroon' },
304
- CA: { code: 'CA', country: 'Canada' },
305
- CV: { code: 'CV', country: 'Cape Verde' },
306
- KY: { code: 'KY', country: 'Cayman Islands' },
307
- CF: { code: 'CF', country: 'Central African Republic' },
308
- TD: { code: 'TD', country: 'Chad' },
309
- CL: { code: 'CL', country: 'Chile' },
310
- CN: { code: 'CN', country: 'China' },
311
- CX: { code: 'CX', country: 'Christmas Island' },
312
- CC: { code: 'CC', country: 'Cocos (Keeling) Islands' },
313
- CO: { code: 'CO', country: 'Colombia' },
314
- KM: { code: 'KM', country: 'Comoros' },
315
- CG: { code: 'CG', country: 'Congo' },
316
- CD: { code: 'CD', country: 'Congo, the Democratic Republic of the' },
317
- CK: { code: 'CK', country: 'Cook Islands' },
318
- CR: { code: 'CR', country: 'Costa Rica' },
319
- CI: { code: 'CI', country: "Côte d'Ivoire" },
320
- HR: { code: 'HR', country: 'Croatia' },
321
- CU: { code: 'CU', country: 'Cuba' },
322
- CW: { code: 'CW', country: 'Curaçao' },
323
- CY: { code: 'CY', country: 'Cyprus' },
324
- CZ: { code: 'CZ', country: 'Czech Republic' },
325
- DK: { code: 'DK', country: 'Denmark' },
326
- DJ: { code: 'DJ', country: 'Djibouti' },
327
- DM: { code: 'DM', country: 'Dominica' },
328
- DO: { code: 'DO', country: 'Dominican Republic' },
329
- EC: { code: 'EC', country: 'Ecuador' },
330
- EG: { code: 'EG', country: 'Egypt' },
331
- SV: { code: 'SV', country: 'El Salvador' },
332
- GQ: { code: 'GQ', country: 'Equatorial Guinea' },
333
- ER: { code: 'ER', country: 'Eritrea' },
334
- EE: { code: 'EE', country: 'Estonia' },
335
- ET: { code: 'ET', country: 'Ethiopia' },
336
- FK: { code: 'FK', country: 'Falkland Islands (Malvinas)' },
337
- FO: { code: 'FO', country: 'Faroe Islands' },
338
- FJ: { code: 'FJ', country: 'Fiji' },
339
- FI: { code: 'FI', country: 'Finland' },
340
- FR: { code: 'FR', country: 'France' },
341
- GF: { code: 'GF', country: 'French Guiana' },
342
- PF: { code: 'PF', country: 'French Polynesia' },
343
- TF: { code: 'TF', country: 'French Southern Territories' },
344
- GA: { code: 'GA', country: 'Gabon' },
345
- GM: { code: 'GM', country: 'Gambia' },
346
- GE: { code: 'GE', country: 'Georgia' },
347
- DE: { code: 'DE', country: 'Germany' },
348
- GH: { code: 'GH', country: 'Ghana' },
349
- GI: { code: 'GI', country: 'Gibraltar' },
350
- GR: { code: 'GR', country: 'Greece' },
351
- GL: { code: 'GL', country: 'Greenland' },
352
- GD: { code: 'GD', country: 'Grenada' },
353
- GP: { code: 'GP', country: 'Guadeloupe' },
354
- GU: { code: 'GU', country: 'Guam' },
355
- GT: { code: 'GT', country: 'Guatemala' },
356
- GG: { code: 'GG', country: 'Guernsey' },
357
- GN: { code: 'GN', country: 'Guinea' },
358
- GW: { code: 'GW', country: 'Guinea-Bissau' },
359
- GY: { code: 'GY', country: 'Guyana' },
360
- HT: { code: 'HT', country: 'Haiti' },
361
- HM: { code: 'HM', country: 'Heard Island and McDonald Islands' },
362
- VA: { code: 'VA', country: 'Holy See (Vatican City State)' },
363
- HN: { code: 'HN', country: 'Honduras' },
364
- HK: { code: 'HK', country: 'Hong Kong' },
365
- HU: { code: 'HU', country: 'Hungary' },
366
- IS: { code: 'IS', country: 'Iceland' },
367
- IN: { code: 'IN', country: 'India' },
368
- ID: { code: 'ID', country: 'Indonesia' },
369
- IR: { code: 'IR', country: 'Iran, Islamic Republic of' },
370
- IQ: { code: 'IQ', country: 'Iraq' },
371
- IE: { code: 'IE', country: 'Ireland' },
372
- IM: { code: 'IM', country: 'Isle of Man' },
373
- IL: { code: 'IL', country: 'Israel' },
374
- IT: { code: 'IT', country: 'Italy' },
375
- JM: { code: 'JM', country: 'Jamaica' },
376
- JP: { code: 'JP', country: 'Japan' },
377
- JE: { code: 'JE', country: 'Jersey' },
378
- JO: { code: 'JO', country: 'Jordan' },
379
- KZ: { code: 'KZ', country: 'Kazakhstan' },
380
- KE: { code: 'KE', country: 'Kenya' },
381
- KI: { code: 'KI', country: 'Kiribati' },
382
- KP: { code: 'KP', country: "Korea, Democratic People's Republic of" },
383
- KR: { code: 'KR', country: 'Korea, Republic of' },
384
- KW: { code: 'KW', country: 'Kuwait' },
385
- KG: { code: 'KG', country: 'Kyrgyzstan' },
386
- LA: { code: 'LA', country: "Lao People's Democratic Republic" },
387
- LV: { code: 'LV', country: 'Latvia' },
388
- LB: { code: 'LB', country: 'Lebanon' },
389
- LS: { code: 'LS', country: 'Lesotho' },
390
- LR: { code: 'LR', country: 'Liberia' },
391
- LY: { code: 'LY', country: 'Libya' },
392
- LI: { code: 'LI', country: 'Liechtenstein' },
393
- LT: { code: 'LT', country: 'Lithuania' },
394
- LU: { code: 'LU', country: 'Luxembourg' },
395
- MO: { code: 'MO', country: 'Macao' },
396
- MK: { code: 'MK', country: 'Macedonia, the Former Yugoslav Republic of' },
397
- MG: { code: 'MG', country: 'Madagascar' },
398
- MW: { code: 'MW', country: 'Malawi' },
399
- MY: { code: 'MY', country: 'Malaysia' },
400
- MV: { code: 'MV', country: 'Maldives' },
401
- ML: { code: 'ML', country: 'Mali' },
402
- MT: { code: 'MT', country: 'Malta' },
403
- MH: { code: 'MH', country: 'Marshall Islands' },
404
- MQ: { code: 'MQ', country: 'Martinique' },
405
- MR: { code: 'MR', country: 'Mauritania' },
406
- MU: { code: 'MU', country: 'Mauritius' },
407
- YT: { code: 'YT', country: 'Mayotte' },
408
- MX: { code: 'MX', country: 'Mexico' },
409
- FM: { code: 'FM', country: 'Micronesia, Federated States of' },
410
- MD: { code: 'MD', country: 'Moldova, Republic of' },
411
- MC: { code: 'MC', country: 'Monaco' },
412
- MN: { code: 'MN', country: 'Mongolia' },
413
- ME: { code: 'ME', country: 'Montenegro' },
414
- MS: { code: 'MS', country: 'Montserrat' },
415
- MA: { code: 'MA', country: 'Morocco' },
416
- MZ: { code: 'MZ', country: 'Mozambique' },
417
- MM: { code: 'MM', country: 'Myanmar' },
418
- NA: { code: 'NA', country: 'Namibia' },
419
- NR: { code: 'NR', country: 'Nauru' },
420
- NP: { code: 'NP', country: 'Nepal' },
421
- NL: { code: 'NL', country: 'Netherlands' },
422
- NC: { code: 'NC', country: 'New Caledonia' },
423
- NZ: { code: 'NZ', country: 'New Zealand' },
424
- NI: { code: 'NI', country: 'Nicaragua' },
425
- NE: { code: 'NE', country: 'Niger' },
426
- NG: { code: 'NG', country: 'Nigeria' },
427
- NU: { code: 'NU', country: 'Niue' },
428
- NF: { code: 'NF', country: 'Norfolk Island' },
429
- MP: { code: 'MP', country: 'Northern Mariana Islands' },
430
- NO: { code: 'NO', country: 'Norway' },
431
- OM: { code: 'OM', country: 'Oman' },
432
- PK: { code: 'PK', country: 'Pakistan' },
433
- PW: { code: 'PW', country: 'Palau' },
434
- PS: { code: 'PS', country: 'Palestine, State of' },
435
- PA: { code: 'PA', country: 'Panama' },
436
- PG: { code: 'PG', country: 'Papua New Guinea' },
437
- PY: { code: 'PY', country: 'Paraguay' },
438
- PE: { code: 'PE', country: 'Peru' },
439
- PH: { code: 'PH', country: 'Philippines' },
440
- PN: { code: 'PN', country: 'Pitcairn' },
441
- PL: { code: 'PL', country: 'Poland' },
442
- PT: { code: 'PT', country: 'Portugal' },
443
- PR: { code: 'PR', country: 'Puerto Rico' },
444
- QA: { code: 'QA', country: 'Qatar' },
445
- RE: { code: 'RE', country: 'Réunion' },
446
- RO: { code: 'RO', country: 'Romania' },
447
- RU: { code: 'RU', country: 'Russian Federation' },
448
- RW: { code: 'RW', country: 'Rwanda' },
449
- BL: { code: 'BL', country: 'Saint Barthélemy' },
450
- SH: { code: 'SH', country: 'Saint Helena, Ascension and Tristan da Cunha' },
451
- KN: { code: 'KN', country: 'Saint Kitts and Nevis' },
452
- LC: { code: 'LC', country: 'Saint Lucia' },
453
- MF: { code: 'MF', country: 'Saint Martin (French part)' },
454
- PM: { code: 'PM', country: 'Saint Pierre and Miquelon' },
455
- VC: { code: 'VC', country: 'Saint Vincent and the Grenadines' },
456
- WS: { code: 'WS', country: 'Samoa' },
457
- SM: { code: 'SM', country: 'San Marino' },
458
- ST: { code: 'ST', country: 'Sao Tome and Principe' },
459
- SA: { code: 'SA', country: 'Saudi Arabia' },
460
- SN: { code: 'SN', country: 'Senegal' },
461
- RS: { code: 'RS', country: 'Serbia' },
462
- SC: { code: 'SC', country: 'Seychelles' },
463
- SL: { code: 'SL', country: 'Sierra Leone' },
464
- SG: { code: 'SG', country: 'Singapore' },
465
- SX: { code: 'SX', country: 'Sint Maarten (Dutch part)' },
466
- SK: { code: 'SK', country: 'Slovakia' },
467
- SI: { code: 'SI', country: 'Slovenia' },
468
- SB: { code: 'SB', country: 'Solomon Islands' },
469
- SO: { code: 'SO', country: 'Somalia' },
470
- ZA: { code: 'ZA', country: 'South Africa' },
471
- GS: { code: 'GS', country: 'South Georgia and the South Sandwich Islands' },
472
- SS: { code: 'SS', country: 'South Sudan' },
473
- ES: { code: 'ES', country: 'Spain' },
474
- LK: { code: 'LK', country: 'Sri Lanka' },
475
- SD: { code: 'SD', country: 'Sudan' },
476
- SR: { code: 'SR', country: 'Suriname' },
477
- SJ: { code: 'SJ', country: 'Svalbard and Jan Mayen' },
478
- SZ: { code: 'SZ', country: 'Swaziland' },
479
- SE: { code: 'SE', country: 'Sweden' },
480
- CH: { code: 'CH', country: 'Switzerland' },
481
- SY: { code: 'SY', country: 'Syrian Arab Republic' },
482
- TW: { code: 'TW', country: 'Taiwan, Province of China' },
483
- TJ: { code: 'TJ', country: 'Tajikistan' },
484
- TZ: { code: 'TZ', country: 'Tanzania, United Republic of' },
485
- TH: { code: 'TH', country: 'Thailand' },
486
- TL: { code: 'TL', country: 'Timor-Leste' },
487
- TG: { code: 'TG', country: 'Togo' },
488
- TK: { code: 'TK', country: 'Tokelau' },
489
- TO: { code: 'TO', country: 'Tonga' },
490
- TT: { code: 'TT', country: 'Trinidad and Tobago' },
491
- TN: { code: 'TN', country: 'Tunisia' },
492
- TR: { code: 'TR', country: 'Turkey' },
493
- TM: { code: 'TM', country: 'Turkmenistan' },
494
- TC: { code: 'TC', country: 'Turks and Caicos Islands' },
495
- TV: { code: 'TV', country: 'Tuvalu' },
496
- UG: { code: 'UG', country: 'Uganda' },
497
- UA: { code: 'UA', country: 'Ukraine' },
498
- AE: { code: 'AE', country: 'United Arab Emirates' },
499
- GB: { code: 'GB', country: 'United Kingdom' },
500
- US: { code: 'US', country: 'United States' },
501
- UM: { code: 'UM', country: 'United States Minor Outlying Islands' },
502
- UY: { code: 'UY', country: 'Uruguay' },
503
- UZ: { code: 'UZ', country: 'Uzbekistan' },
504
- VU: { code: 'VU', country: 'Vanuatu' },
505
- VE: { code: 'VE', country: 'Venezuela, Bolivarian Republic of' },
506
- VN: { code: 'VN', country: 'Viet Nam' },
507
- VG: { code: 'VG', country: 'Virgin Islands, British' },
508
- VI: { code: 'VI', country: 'Virgin Islands, U.S.' },
509
- WF: { code: 'WF', country: 'Wallis and Futuna' },
510
- EH: { code: 'EH', country: 'Western Sahara' },
511
- YE: { code: 'YE', country: 'Yemen' },
512
- ZM: { code: 'ZM', country: 'Zambia' },
513
- ZW: { code: 'ZW', country: 'Zimbabwe' },
514
- };
1
+ var t=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var M=(n,c)=>{for(var r in c)t(n,r,{get:c[r],enumerable:!0})},S=(n,c,r,a)=>{if(c&&typeof c=="object"||typeof c=="function")for(let e of y(c))!i.call(n,e)&&e!==r&&t(n,e,{get:()=>c[e],enumerable:!(a=d(c,e))||a.enumerable});return n};var G=n=>S(t({},"__esModule",{value:!0}),n);var B={};M(B,{COUNTRY_CODE:()=>u,countries:()=>A});module.exports=G(B);var u=(o=>(o.AF="AF",o.AX="AX",o.AL="AL",o.DZ="DZ",o.AS="AS",o.AD="AD",o.AO="AO",o.AI="AI",o.AQ="AQ",o.AG="AG",o.AR="AR",o.AM="AM",o.AW="AW",o.AU="AU",o.AT="AT",o.AZ="AZ",o.BS="BS",o.BH="BH",o.BD="BD",o.BB="BB",o.BY="BY",o.BE="BE",o.BZ="BZ",o.BJ="BJ",o.BM="BM",o.BT="BT",o.BO="BO",o.BQ="BQ",o.BA="BA",o.BW="BW",o.BV="BV",o.BR="BR",o.IO="IO",o.BN="BN",o.BG="BG",o.BF="BF",o.BI="BI",o.KH="KH",o.CM="CM",o.CA="CA",o.CV="CV",o.KY="KY",o.CF="CF",o.TD="TD",o.CL="CL",o.CN="CN",o.CX="CX",o.CC="CC",o.CO="CO",o.KM="KM",o.CG="CG",o.CD="CD",o.CK="CK",o.CR="CR",o.CI="CI",o.HR="HR",o.CU="CU",o.CW="CW",o.CY="CY",o.CZ="CZ",o.DK="DK",o.DJ="DJ",o.DM="DM",o.DO="DO",o.EC="EC",o.EG="EG",o.SV="SV",o.GQ="GQ",o.ER="ER",o.EE="EE",o.ET="ET",o.FK="FK",o.FO="FO",o.FJ="FJ",o.FI="FI",o.FR="FR",o.GF="GF",o.PF="PF",o.TF="TF",o.GA="GA",o.GM="GM",o.GE="GE",o.DE="DE",o.GH="GH",o.GI="GI",o.GR="GR",o.GL="GL",o.GD="GD",o.GP="GP",o.GU="GU",o.GT="GT",o.GG="GG",o.GN="GN",o.GW="GW",o.GY="GY",o.HT="HT",o.HM="HM",o.VA="VA",o.HN="HN",o.HK="HK",o.HU="HU",o.IS="IS",o.IN="IN",o.ID="ID",o.IR="IR",o.IQ="IQ",o.IE="IE",o.IM="IM",o.IL="IL",o.IT="IT",o.JM="JM",o.JP="JP",o.JE="JE",o.JO="JO",o.KZ="KZ",o.KE="KE",o.KI="KI",o.KP="KP",o.KR="KR",o.KW="KW",o.KG="KG",o.LA="LA",o.LV="LV",o.LB="LB",o.LS="LS",o.LR="LR",o.LY="LY",o.LI="LI",o.LT="LT",o.LU="LU",o.MO="MO",o.MK="MK",o.MG="MG",o.MW="MW",o.MY="MY",o.MV="MV",o.ML="ML",o.MT="MT",o.MH="MH",o.MQ="MQ",o.MR="MR",o.MU="MU",o.YT="YT",o.MX="MX",o.FM="FM",o.MD="MD",o.MC="MC",o.MN="MN",o.ME="ME",o.MS="MS",o.MA="MA",o.MZ="MZ",o.MM="MM",o.NA="NA",o.NR="NR",o.NP="NP",o.NL="NL",o.NC="NC",o.NZ="NZ",o.NI="NI",o.NE="NE",o.NG="NG",o.NU="NU",o.NF="NF",o.MP="MP",o.NO="NO",o.OM="OM",o.PK="PK",o.PW="PW",o.PS="PS",o.PA="PA",o.PG="PG",o.PY="PY",o.PE="PE",o.PH="PH",o.PN="PN",o.PL="PL",o.PT="PT",o.PR="PR",o.QA="QA",o.RE="RE",o.RO="RO",o.RU="RU",o.RW="RW",o.BL="BL",o.SH="SH",o.KN="KN",o.LC="LC",o.MF="MF",o.PM="PM",o.VC="VC",o.WS="WS",o.SM="SM",o.ST="ST",o.SA="SA",o.SN="SN",o.RS="RS",o.SC="SC",o.SL="SL",o.SG="SG",o.SX="SX",o.SK="SK",o.SI="SI",o.SB="SB",o.SO="SO",o.ZA="ZA",o.GS="GS",o.SS="SS",o.ES="ES",o.LK="LK",o.SD="SD",o.SR="SR",o.SJ="SJ",o.SZ="SZ",o.SE="SE",o.CH="CH",o.SY="SY",o.TW="TW",o.TJ="TJ",o.TZ="TZ",o.TH="TH",o.TL="TL",o.TG="TG",o.TK="TK",o.TO="TO",o.TT="TT",o.TN="TN",o.TR="TR",o.TM="TM",o.TC="TC",o.TV="TV",o.UG="UG",o.UA="UA",o.AE="AE",o.GB="GB",o.US="US",o.UM="UM",o.UY="UY",o.UZ="UZ",o.VU="VU",o.VE="VE",o.VN="VN",o.VG="VG",o.VI="VI",o.WF="WF",o.EH="EH",o.YE="YE",o.ZM="ZM",o.ZW="ZW",o))(u||{});const A={AF:{code:"AF",country:"Afghanistan"},AX:{code:"AX",country:"\xC5land Islands"},AL:{code:"AL",country:"Albania"},DZ:{code:"DZ",country:"Algeria"},AS:{code:"AS",country:"American Samoa"},AD:{code:"AD",country:"Andorra"},AO:{code:"AO",country:"Angola"},AI:{code:"AI",country:"Anguilla"},AQ:{code:"AQ",country:"Antarctica"},AG:{code:"AG",country:"Antigua and Barbuda"},AR:{code:"AR",country:"Argentina"},AM:{code:"AM",country:"Armenia"},AW:{code:"AW",country:"Aruba"},AU:{code:"AU",country:"Australia"},AT:{code:"AT",country:"Austria"},AZ:{code:"AZ",country:"Azerbaijan"},BS:{code:"BS",country:"Bahamas"},BH:{code:"BH",country:"Bahrain"},BD:{code:"BD",country:"Bangladesh"},BB:{code:"BB",country:"Barbados"},BY:{code:"BY",country:"Belarus"},BE:{code:"BE",country:"Belgium"},BZ:{code:"BZ",country:"Belize"},BJ:{code:"BJ",country:"Benin"},BM:{code:"BM",country:"Bermuda"},BT:{code:"BT",country:"Bhutan"},BO:{code:"BO",country:"Bolivia, Plurinational State of"},BQ:{code:"BQ",country:"Bonaire, Sint Eustatius and Saba"},BA:{code:"BA",country:"Bosnia and Herzegovina"},BW:{code:"BW",country:"Botswana"},BV:{code:"BV",country:"Bouvet Island"},BR:{code:"BR",country:"Brazil"},IO:{code:"IO",country:"British Indian Ocean Territory"},BN:{code:"BN",country:"Brunei Darussalam"},BG:{code:"BG",country:"Bulgaria"},BF:{code:"BF",country:"Burkina Faso"},BI:{code:"BI",country:"Burundi"},KH:{code:"KH",country:"Cambodia"},CM:{code:"CM",country:"Cameroon"},CA:{code:"CA",country:"Canada"},CV:{code:"CV",country:"Cape Verde"},KY:{code:"KY",country:"Cayman Islands"},CF:{code:"CF",country:"Central African Republic"},TD:{code:"TD",country:"Chad"},CL:{code:"CL",country:"Chile"},CN:{code:"CN",country:"China"},CX:{code:"CX",country:"Christmas Island"},CC:{code:"CC",country:"Cocos (Keeling) Islands"},CO:{code:"CO",country:"Colombia"},KM:{code:"KM",country:"Comoros"},CG:{code:"CG",country:"Congo"},CD:{code:"CD",country:"Congo, the Democratic Republic of the"},CK:{code:"CK",country:"Cook Islands"},CR:{code:"CR",country:"Costa Rica"},CI:{code:"CI",country:"C\xF4te d'Ivoire"},HR:{code:"HR",country:"Croatia"},CU:{code:"CU",country:"Cuba"},CW:{code:"CW",country:"Cura\xE7ao"},CY:{code:"CY",country:"Cyprus"},CZ:{code:"CZ",country:"Czech Republic"},DK:{code:"DK",country:"Denmark"},DJ:{code:"DJ",country:"Djibouti"},DM:{code:"DM",country:"Dominica"},DO:{code:"DO",country:"Dominican Republic"},EC:{code:"EC",country:"Ecuador"},EG:{code:"EG",country:"Egypt"},SV:{code:"SV",country:"El Salvador"},GQ:{code:"GQ",country:"Equatorial Guinea"},ER:{code:"ER",country:"Eritrea"},EE:{code:"EE",country:"Estonia"},ET:{code:"ET",country:"Ethiopia"},FK:{code:"FK",country:"Falkland Islands (Malvinas)"},FO:{code:"FO",country:"Faroe Islands"},FJ:{code:"FJ",country:"Fiji"},FI:{code:"FI",country:"Finland"},FR:{code:"FR",country:"France"},GF:{code:"GF",country:"French Guiana"},PF:{code:"PF",country:"French Polynesia"},TF:{code:"TF",country:"French Southern Territories"},GA:{code:"GA",country:"Gabon"},GM:{code:"GM",country:"Gambia"},GE:{code:"GE",country:"Georgia"},DE:{code:"DE",country:"Germany"},GH:{code:"GH",country:"Ghana"},GI:{code:"GI",country:"Gibraltar"},GR:{code:"GR",country:"Greece"},GL:{code:"GL",country:"Greenland"},GD:{code:"GD",country:"Grenada"},GP:{code:"GP",country:"Guadeloupe"},GU:{code:"GU",country:"Guam"},GT:{code:"GT",country:"Guatemala"},GG:{code:"GG",country:"Guernsey"},GN:{code:"GN",country:"Guinea"},GW:{code:"GW",country:"Guinea-Bissau"},GY:{code:"GY",country:"Guyana"},HT:{code:"HT",country:"Haiti"},HM:{code:"HM",country:"Heard Island and McDonald Islands"},VA:{code:"VA",country:"Holy See (Vatican City State)"},HN:{code:"HN",country:"Honduras"},HK:{code:"HK",country:"Hong Kong"},HU:{code:"HU",country:"Hungary"},IS:{code:"IS",country:"Iceland"},IN:{code:"IN",country:"India"},ID:{code:"ID",country:"Indonesia"},IR:{code:"IR",country:"Iran, Islamic Republic of"},IQ:{code:"IQ",country:"Iraq"},IE:{code:"IE",country:"Ireland"},IM:{code:"IM",country:"Isle of Man"},IL:{code:"IL",country:"Israel"},IT:{code:"IT",country:"Italy"},JM:{code:"JM",country:"Jamaica"},JP:{code:"JP",country:"Japan"},JE:{code:"JE",country:"Jersey"},JO:{code:"JO",country:"Jordan"},KZ:{code:"KZ",country:"Kazakhstan"},KE:{code:"KE",country:"Kenya"},KI:{code:"KI",country:"Kiribati"},KP:{code:"KP",country:"Korea, Democratic People's Republic of"},KR:{code:"KR",country:"Korea, Republic of"},KW:{code:"KW",country:"Kuwait"},KG:{code:"KG",country:"Kyrgyzstan"},LA:{code:"LA",country:"Lao People's Democratic Republic"},LV:{code:"LV",country:"Latvia"},LB:{code:"LB",country:"Lebanon"},LS:{code:"LS",country:"Lesotho"},LR:{code:"LR",country:"Liberia"},LY:{code:"LY",country:"Libya"},LI:{code:"LI",country:"Liechtenstein"},LT:{code:"LT",country:"Lithuania"},LU:{code:"LU",country:"Luxembourg"},MO:{code:"MO",country:"Macao"},MK:{code:"MK",country:"Macedonia, the Former Yugoslav Republic of"},MG:{code:"MG",country:"Madagascar"},MW:{code:"MW",country:"Malawi"},MY:{code:"MY",country:"Malaysia"},MV:{code:"MV",country:"Maldives"},ML:{code:"ML",country:"Mali"},MT:{code:"MT",country:"Malta"},MH:{code:"MH",country:"Marshall Islands"},MQ:{code:"MQ",country:"Martinique"},MR:{code:"MR",country:"Mauritania"},MU:{code:"MU",country:"Mauritius"},YT:{code:"YT",country:"Mayotte"},MX:{code:"MX",country:"Mexico"},FM:{code:"FM",country:"Micronesia, Federated States of"},MD:{code:"MD",country:"Moldova, Republic of"},MC:{code:"MC",country:"Monaco"},MN:{code:"MN",country:"Mongolia"},ME:{code:"ME",country:"Montenegro"},MS:{code:"MS",country:"Montserrat"},MA:{code:"MA",country:"Morocco"},MZ:{code:"MZ",country:"Mozambique"},MM:{code:"MM",country:"Myanmar"},NA:{code:"NA",country:"Namibia"},NR:{code:"NR",country:"Nauru"},NP:{code:"NP",country:"Nepal"},NL:{code:"NL",country:"Netherlands"},NC:{code:"NC",country:"New Caledonia"},NZ:{code:"NZ",country:"New Zealand"},NI:{code:"NI",country:"Nicaragua"},NE:{code:"NE",country:"Niger"},NG:{code:"NG",country:"Nigeria"},NU:{code:"NU",country:"Niue"},NF:{code:"NF",country:"Norfolk Island"},MP:{code:"MP",country:"Northern Mariana Islands"},NO:{code:"NO",country:"Norway"},OM:{code:"OM",country:"Oman"},PK:{code:"PK",country:"Pakistan"},PW:{code:"PW",country:"Palau"},PS:{code:"PS",country:"Palestine, State of"},PA:{code:"PA",country:"Panama"},PG:{code:"PG",country:"Papua New Guinea"},PY:{code:"PY",country:"Paraguay"},PE:{code:"PE",country:"Peru"},PH:{code:"PH",country:"Philippines"},PN:{code:"PN",country:"Pitcairn"},PL:{code:"PL",country:"Poland"},PT:{code:"PT",country:"Portugal"},PR:{code:"PR",country:"Puerto Rico"},QA:{code:"QA",country:"Qatar"},RE:{code:"RE",country:"R\xE9union"},RO:{code:"RO",country:"Romania"},RU:{code:"RU",country:"Russian Federation"},RW:{code:"RW",country:"Rwanda"},BL:{code:"BL",country:"Saint Barth\xE9lemy"},SH:{code:"SH",country:"Saint Helena, Ascension and Tristan da Cunha"},KN:{code:"KN",country:"Saint Kitts and Nevis"},LC:{code:"LC",country:"Saint Lucia"},MF:{code:"MF",country:"Saint Martin (French part)"},PM:{code:"PM",country:"Saint Pierre and Miquelon"},VC:{code:"VC",country:"Saint Vincent and the Grenadines"},WS:{code:"WS",country:"Samoa"},SM:{code:"SM",country:"San Marino"},ST:{code:"ST",country:"Sao Tome and Principe"},SA:{code:"SA",country:"Saudi Arabia"},SN:{code:"SN",country:"Senegal"},RS:{code:"RS",country:"Serbia"},SC:{code:"SC",country:"Seychelles"},SL:{code:"SL",country:"Sierra Leone"},SG:{code:"SG",country:"Singapore"},SX:{code:"SX",country:"Sint Maarten (Dutch part)"},SK:{code:"SK",country:"Slovakia"},SI:{code:"SI",country:"Slovenia"},SB:{code:"SB",country:"Solomon Islands"},SO:{code:"SO",country:"Somalia"},ZA:{code:"ZA",country:"South Africa"},GS:{code:"GS",country:"South Georgia and the South Sandwich Islands"},SS:{code:"SS",country:"South Sudan"},ES:{code:"ES",country:"Spain"},LK:{code:"LK",country:"Sri Lanka"},SD:{code:"SD",country:"Sudan"},SR:{code:"SR",country:"Suriname"},SJ:{code:"SJ",country:"Svalbard and Jan Mayen"},SZ:{code:"SZ",country:"Swaziland"},SE:{code:"SE",country:"Sweden"},CH:{code:"CH",country:"Switzerland"},SY:{code:"SY",country:"Syrian Arab Republic"},TW:{code:"TW",country:"Taiwan, Province of China"},TJ:{code:"TJ",country:"Tajikistan"},TZ:{code:"TZ",country:"Tanzania, United Republic of"},TH:{code:"TH",country:"Thailand"},TL:{code:"TL",country:"Timor-Leste"},TG:{code:"TG",country:"Togo"},TK:{code:"TK",country:"Tokelau"},TO:{code:"TO",country:"Tonga"},TT:{code:"TT",country:"Trinidad and Tobago"},TN:{code:"TN",country:"Tunisia"},TR:{code:"TR",country:"Turkey"},TM:{code:"TM",country:"Turkmenistan"},TC:{code:"TC",country:"Turks and Caicos Islands"},TV:{code:"TV",country:"Tuvalu"},UG:{code:"UG",country:"Uganda"},UA:{code:"UA",country:"Ukraine"},AE:{code:"AE",country:"United Arab Emirates"},GB:{code:"GB",country:"United Kingdom"},US:{code:"US",country:"United States"},UM:{code:"UM",country:"United States Minor Outlying Islands"},UY:{code:"UY",country:"Uruguay"},UZ:{code:"UZ",country:"Uzbekistan"},VU:{code:"VU",country:"Vanuatu"},VE:{code:"VE",country:"Venezuela, Bolivarian Republic of"},VN:{code:"VN",country:"Viet Nam"},VG:{code:"VG",country:"Virgin Islands, British"},VI:{code:"VI",country:"Virgin Islands, U.S."},WF:{code:"WF",country:"Wallis and Futuna"},EH:{code:"EH",country:"Western Sahara"},YE:{code:"YE",country:"Yemen"},ZM:{code:"ZM",country:"Zambia"},ZW:{code:"ZW",country:"Zimbabwe"}};0&&(module.exports={COUNTRY_CODE,countries});
@@ -7,4 +7,6 @@
7
7
  * @remarks
8
8
  */
9
9
  /** End file docs */
10
- export declare const createDate: (date?: string | Date, tz?: string) => Date;
10
+ declare const createDate: (date?: string | Date, tz?: string) => Date;
11
+
12
+ export { createDate };
@@ -1,22 +1 @@
1
- "use strict";
2
- /**
3
- * A util function to create date from provided string
4
- * eg: Saturday, 11/01/2020
5
- *
6
- * @returns formatted date - Saturday, 11/01/2020
7
- * @author Taimoor Khan
8
- * @remarks
9
- */
10
- /** End file docs */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createDate = void 0;
13
- var date_fns_tz_1 = require("date-fns-tz");
14
- var set_timezone_1 = require("./set-timezone");
15
- var defaultTimezone = 'Asia/Karachi';
16
- var createDate = function (date, tz) {
17
- if (tz || !date) {
18
- return (0, set_timezone_1.setTimezone)(date ? (0, date_fns_tz_1.toDate)(date) : new Date(), tz || defaultTimezone);
19
- }
20
- return (0, date_fns_tz_1.toDate)(date);
21
- };
22
- exports.createDate = createDate;
1
+ var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},p=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of D(t))!c.call(e,r)&&r!==o&&i(e,r,{get:()=>t[r],enumerable:!(a=s(t,r))||a.enumerable});return e};var u=e=>p(i({},"__esModule",{value:!0}),e);var h={};f(h,{createDate:()=>T});module.exports=u(h);var n=require("date-fns-tz"),m=require("./set-timezone");const g="Asia/Karachi",T=(e,t)=>t||!e?(0,m.setTimezone)(e?(0,n.toDate)(e):new Date,t||g):(0,n.toDate)(e);0&&(module.exports={createDate});
@@ -2,8 +2,10 @@
2
2
  * Encrypt a string using a password. Returns a base64 payload containing
3
3
  * salt + iv + authTag + ciphertext.
4
4
  */
5
- export declare function encryptString(plain: string, password: string): string;
5
+ declare function encryptString(plain: string, password: string): string;
6
6
  /**
7
7
  * Decrypt a base64 payload produced by `encryptString` using the same password.
8
8
  */
9
- export declare function decryptString(payload: string, password: string): string;
9
+ declare function decryptString(payload: string, password: string): string;
10
+
11
+ export { decryptString, encryptString };
package/general/crypto.js CHANGED
@@ -1,45 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.encryptString = encryptString;
4
- exports.decryptString = decryptString;
5
- var crypto_1 = require("crypto");
6
- var ALGORITHM = 'aes-256-gcm';
7
- var SALT_LENGTH = 16;
8
- var IV_LENGTH = 12;
9
- var TAG_LENGTH = 16;
10
- var KEY_LENGTH = 32;
11
- /**
12
- * Encrypt a string using a password. Returns a base64 payload containing
13
- * salt + iv + authTag + ciphertext.
14
- */
15
- function encryptString(plain, password) {
16
- var salt = (0, crypto_1.randomBytes)(SALT_LENGTH);
17
- var iv = (0, crypto_1.randomBytes)(IV_LENGTH);
18
- var key = (0, crypto_1.scryptSync)(password, salt, KEY_LENGTH);
19
- var cipher = (0, crypto_1.createCipheriv)(ALGORITHM, key, iv);
20
- var ciphertext = Buffer.concat([
21
- cipher.update(plain, 'utf8'),
22
- cipher.final(),
23
- ]);
24
- var tag = cipher.getAuthTag();
25
- var out = Buffer.concat([salt, iv, tag, ciphertext]);
26
- return out.toString('base64');
27
- }
28
- /**
29
- * Decrypt a base64 payload produced by `encryptString` using the same password.
30
- */
31
- function decryptString(payload, password) {
32
- var data = Buffer.from(payload, 'base64');
33
- var salt = data.slice(0, SALT_LENGTH);
34
- var iv = data.slice(SALT_LENGTH, SALT_LENGTH + IV_LENGTH);
35
- var tag = data.slice(SALT_LENGTH + IV_LENGTH, SALT_LENGTH + IV_LENGTH + TAG_LENGTH);
36
- var ciphertext = data.slice(SALT_LENGTH + IV_LENGTH + TAG_LENGTH);
37
- var key = (0, crypto_1.scryptSync)(password, salt, KEY_LENGTH);
38
- var decipher = (0, crypto_1.createDecipheriv)(ALGORITHM, key, iv);
39
- decipher.setAuthTag(tag);
40
- var decrypted = Buffer.concat([
41
- decipher.update(ciphertext),
42
- decipher.final(),
43
- ]);
44
- return decrypted.toString('utf8');
45
- }
1
+ var p=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var G=(e,t)=>{for(var c in t)p(e,c,{get:t[c],enumerable:!0})},L=(e,t,c,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of l(t))!B.call(e,s)&&s!==c&&p(e,s,{get:()=>t[s],enumerable:!(r=h(t,s))||r.enumerable});return e};var S=e=>L(p({},"__esModule",{value:!0}),e);var E={};G(E,{decryptString:()=>A,encryptString:()=>m});module.exports=S(E);var n=require("crypto");const d="aes-256-gcm",o=16,a=12,y=16,T=32;function m(e,t){const c=(0,n.randomBytes)(o),r=(0,n.randomBytes)(a),s=(0,n.scryptSync)(t,c,T),i=(0,n.createCipheriv)(d,s,r),u=Buffer.concat([i.update(e,"utf8"),i.final()]),g=i.getAuthTag();return Buffer.concat([c,r,g,u]).toString("base64")}function A(e,t){const c=Buffer.from(e,"base64"),r=c.slice(0,o),s=c.slice(o,o+a),i=c.slice(o+a,o+a+y),u=c.slice(o+a+y),g=(0,n.scryptSync)(t,r,T),f=(0,n.createDecipheriv)(d,g,s);return f.setAuthTag(i),Buffer.concat([f.update(u),f.final()]).toString("utf8")}0&&(module.exports={decryptString,encryptString});
@@ -0,0 +1,2 @@
1
+
2
+ export { }