@zonos/elements 1.3.18-alpha.2 → 1.3.18-alpha.4

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 (341) hide show
  1. package/README.md +341 -96
  2. package/dist/cjs/{cart-941a31dd.js → cart-72b0bccc.js} +34 -85
  3. package/dist/cjs/index.cjs.js +628 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/logError-4e2f2020.js +58 -0
  6. package/dist/cjs/{submitGtag-9210b4fe.js → submitGtag-b0c8de90.js} +3 -2
  7. package/dist/cjs/zonos-address_8.cjs.entry.js +13 -12
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +3 -3
  9. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  10. package/dist/cjs/zonos-card_2.cjs.entry.js +7 -6
  11. package/dist/cjs/zonos-cart-items_11.cjs.entry.js +11 -10
  12. package/dist/cjs/zonos-checkout.cjs.entry.js +20 -15
  13. package/dist/cjs/zonos-controller.cjs.entry.js +47 -20
  14. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
  15. package/dist/cjs/zonos-country-select_3.cjs.entry.js +6 -5
  16. package/dist/cjs/zonos-elements.cjs.js +1 -1
  17. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -1
  18. package/dist/cjs/zonos-hello.cjs.entry.js +10 -9
  19. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  20. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-payment.cjs.entry.js +3 -2
  22. package/dist/collection/__mocks__/zonos-url/index.js +1 -0
  23. package/dist/collection/__tests__/build-utils/urlCheckOne.js +1 -1
  24. package/dist/collection/collection-manifest.json +1 -1
  25. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -9
  26. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +8 -4
  27. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +3 -3
  28. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  29. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  30. package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
  31. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  32. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  33. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  34. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  35. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  36. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  37. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  38. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  39. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  40. package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.js +1 -1
  41. package/dist/collection/components/main/zonos-controller.js +41 -6
  42. package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -3
  43. package/dist/collection/components/utils/hello/setZCountryUrlParam.js +5 -1
  44. package/dist/collection/environment.js +0 -2
  45. package/dist/collection/index.js +1 -0
  46. package/dist/collection/scripts/_extractZonosQaUrl.js +26 -0
  47. package/dist/collection/scripts/_getZonosQaUrl.js +44 -0
  48. package/dist/collection/scripts/{loadStripe.js → _loadStripe.js} +1 -1
  49. package/dist/collection/scripts/{zonosBase.js → _zonosBase.js} +29 -6
  50. package/dist/collection/scripts/index.js +2 -0
  51. package/dist/collection/types/generated/graphql.customer.types.js +1 -0
  52. package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
  53. package/dist/esm/{cart-cc593c2b.js → cart-1a37e002.js} +7 -56
  54. package/dist/esm/index.js +625 -0
  55. package/dist/esm/loader.js +1 -1
  56. package/dist/esm/logError-c456c092.js +55 -0
  57. package/dist/esm/{submitGtag-e50f903f.js → submitGtag-754935b4.js} +2 -1
  58. package/dist/esm/zonos-address_8.entry.js +11 -10
  59. package/dist/esm/zonos-badge_2.entry.js +3 -3
  60. package/dist/esm/zonos-button_3.entry.js +3 -3
  61. package/dist/esm/zonos-card_2.entry.js +7 -6
  62. package/dist/esm/zonos-cart-items_11.entry.js +11 -10
  63. package/dist/esm/zonos-checkout.entry.js +8 -3
  64. package/dist/esm/zonos-controller.entry.js +30 -3
  65. package/dist/esm/zonos-country-flag.entry.js +2 -1
  66. package/dist/esm/zonos-country-select_3.entry.js +6 -5
  67. package/dist/esm/zonos-elements.js +1 -1
  68. package/dist/esm/zonos-hello-dialog.entry.js +2 -1
  69. package/dist/esm/zonos-hello.entry.js +2 -1
  70. package/dist/esm/zonos-input.entry.js +4 -4
  71. package/dist/esm/zonos-link.entry.js +1 -1
  72. package/dist/esm/zonos-payment.entry.js +2 -1
  73. package/dist/esm-es5/cart-1a37e002.js +1 -0
  74. package/dist/esm-es5/index.js +1 -0
  75. package/dist/esm-es5/loader.js +1 -1
  76. package/dist/esm-es5/logError-c456c092.js +1 -0
  77. package/dist/esm-es5/submitGtag-754935b4.js +1 -0
  78. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  79. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  80. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  81. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  82. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -1
  83. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  84. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  85. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  86. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  87. package/dist/esm-es5/zonos-elements.js +1 -1
  88. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  89. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  90. package/dist/esm-es5/zonos-input.entry.js +1 -1
  91. package/dist/esm-es5/zonos-link.entry.js +1 -1
  92. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  93. package/dist/scripts/index.d.ts +3908 -0
  94. package/dist/scripts/index.js +1 -0
  95. package/dist/scripts/loadZonos.d.ts +3954 -0
  96. package/dist/scripts/loadZonos.js +1 -1
  97. package/dist/scripts/zonos.js +1 -1
  98. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -7
  99. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +2 -2
  100. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -2
  101. package/dist/types/components/main/zonos-controller.d.ts +6 -1
  102. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  103. package/dist/types/components/store/zonosStore.d.ts +1 -1
  104. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -2
  105. package/dist/types/components/utils/styles.d.ts +1 -0
  106. package/dist/types/components.d.ts +22 -14
  107. package/dist/types/index.d.ts +1 -0
  108. package/dist/types/scripts/_extractZonosQaUrl.d.ts +11 -0
  109. package/dist/types/scripts/_getZonosQaUrl.d.ts +4 -0
  110. package/dist/types/scripts/{loadStripe.d.ts → _loadStripe.d.ts} +1 -1
  111. package/dist/types/scripts/{zonosBase.d.ts → _zonosBase.d.ts} +36 -2
  112. package/dist/types/scripts/index.d.ts +2 -0
  113. package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
  114. package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +9 -0
  115. package/dist/types/types/generated/graphql.customer.types.d.ts +1 -0
  116. package/dist/types/types/generated/graphql.customer.types.ts +3 -0
  117. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -0
  118. package/dist/types/types/generated/graphql.frontend.types.ts +1 -0
  119. package/dist/types/types/global.d.ts +1 -1
  120. package/dist/zonos-elements/index.esm.js +1 -0
  121. package/dist/zonos-elements/p-0878369a.entry.js +1 -0
  122. package/dist/zonos-elements/p-0d1c06d7.entry.js +1 -0
  123. package/dist/zonos-elements/{p-9aab3ad7.entry.js → p-0d5b5bcc.entry.js} +1 -1
  124. package/dist/zonos-elements/p-1491717a.entry.js +1 -0
  125. package/dist/zonos-elements/p-14ff42fe.system.entry.js +1 -0
  126. package/dist/zonos-elements/p-2800c274.system.entry.js +1 -0
  127. package/dist/zonos-elements/p-2e02a76f.system.entry.js +1 -0
  128. package/dist/zonos-elements/{p-020a9b86.entry.js → p-3ba8838a.entry.js} +1 -1
  129. package/dist/zonos-elements/p-4594a125.js +1 -0
  130. package/dist/zonos-elements/p-483e1724.entry.js +1 -0
  131. package/dist/zonos-elements/{p-d0bc8902.system.entry.js → p-4f72bfee.system.entry.js} +1 -1
  132. package/dist/zonos-elements/p-58be220f.system.js +1 -0
  133. package/dist/zonos-elements/{p-9e9c318b.entry.js → p-58fc8ec1.entry.js} +1 -1
  134. package/dist/zonos-elements/p-63db40b9.system.js +1 -0
  135. package/dist/zonos-elements/p-6449c92b.js +1 -0
  136. package/dist/zonos-elements/p-6746455b.system.entry.js +1 -0
  137. package/dist/zonos-elements/{p-c20e5430.entry.js → p-6cb9812b.entry.js} +1 -1
  138. package/dist/zonos-elements/p-7487ef47.entry.js +1 -0
  139. package/dist/zonos-elements/p-7b2d367b.entry.js +1 -0
  140. package/dist/zonos-elements/p-9389cc42.system.entry.js +1 -0
  141. package/dist/zonos-elements/p-9be6c62b.system.js +1 -0
  142. package/dist/zonos-elements/p-9c242e4b.system.entry.js +1 -0
  143. package/dist/zonos-elements/p-a37796e1.entry.js +1 -0
  144. package/dist/zonos-elements/p-afb89d65.entry.js +1 -0
  145. package/dist/zonos-elements/p-bbb84165.system.entry.js +1 -0
  146. package/dist/zonos-elements/{p-96b8c9ba.system.entry.js → p-bdfa3705.system.entry.js} +1 -1
  147. package/dist/zonos-elements/p-c195e980.system.entry.js +1 -0
  148. package/dist/zonos-elements/p-c87c76d4.entry.js +1 -0
  149. package/dist/zonos-elements/p-d9011df9.entry.js +1 -0
  150. package/dist/zonos-elements/{p-3e26d7b3.system.entry.js → p-dda78e8e.system.entry.js} +1 -1
  151. package/dist/zonos-elements/p-de9e610d.system.entry.js +1 -0
  152. package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
  153. package/dist/zonos-elements/p-eaa335e1.js +1 -0
  154. package/dist/zonos-elements/{p-e13bfbda.system.entry.js → p-ed3524ae.system.entry.js} +1 -1
  155. package/dist/zonos-elements/p-f5b14bab.system.js +1 -0
  156. package/dist/zonos-elements/p-f9a42a3c.system.entry.js +1 -0
  157. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  158. package/package.json +4 -2
  159. package/dist/components/ILanguage.js +0 -24
  160. package/dist/components/classes.js +0 -12
  161. package/dist/components/containsNonLatinChars.js +0 -21
  162. package/dist/components/formatCurrency.js +0 -11
  163. package/dist/components/getBorderRadius.js +0 -18
  164. package/dist/components/index.d.ts +0 -33
  165. package/dist/components/index.js +0 -1
  166. package/dist/components/isCheckoutMobile.js +0 -6
  167. package/dist/components/isColorVariable.js +0 -14
  168. package/dist/components/isDarkColor.js +0 -1199
  169. package/dist/components/stripe.js +0 -1691
  170. package/dist/components/submitGtag.js +0 -19
  171. package/dist/components/trackConversionEvent.js +0 -37
  172. package/dist/components/translationStore.js +0 -5611
  173. package/dist/components/zonos-address-display.d.ts +0 -11
  174. package/dist/components/zonos-address-display.js +0 -6
  175. package/dist/components/zonos-address-display2.js +0 -64
  176. package/dist/components/zonos-address-form.d.ts +0 -11
  177. package/dist/components/zonos-address-form.js +0 -6
  178. package/dist/components/zonos-address-form2.js +0 -84
  179. package/dist/components/zonos-address-update-dialog.d.ts +0 -11
  180. package/dist/components/zonos-address-update-dialog.js +0 -6
  181. package/dist/components/zonos-address-update-dialog2.js +0 -264
  182. package/dist/components/zonos-address.d.ts +0 -11
  183. package/dist/components/zonos-address.js +0 -6
  184. package/dist/components/zonos-address2.js +0 -176
  185. package/dist/components/zonos-badge.d.ts +0 -11
  186. package/dist/components/zonos-badge.js +0 -6
  187. package/dist/components/zonos-badge2.js +0 -61
  188. package/dist/components/zonos-banner.d.ts +0 -11
  189. package/dist/components/zonos-banner.js +0 -6
  190. package/dist/components/zonos-banner2.js +0 -95
  191. package/dist/components/zonos-button.d.ts +0 -11
  192. package/dist/components/zonos-button.js +0 -6
  193. package/dist/components/zonos-button2.js +0 -186
  194. package/dist/components/zonos-card.d.ts +0 -11
  195. package/dist/components/zonos-card.js +0 -6
  196. package/dist/components/zonos-card2.js +0 -57
  197. package/dist/components/zonos-cart-items.d.ts +0 -11
  198. package/dist/components/zonos-cart-items.js +0 -6
  199. package/dist/components/zonos-cart-items2.js +0 -57
  200. package/dist/components/zonos-cart-restricted-items.d.ts +0 -11
  201. package/dist/components/zonos-cart-restricted-items.js +0 -6
  202. package/dist/components/zonos-cart-restricted-items2.js +0 -135
  203. package/dist/components/zonos-cart-subtotal.d.ts +0 -11
  204. package/dist/components/zonos-cart-subtotal.js +0 -6
  205. package/dist/components/zonos-cart-subtotal2.js +0 -91
  206. package/dist/components/zonos-checkbox.d.ts +0 -11
  207. package/dist/components/zonos-checkbox.js +0 -6
  208. package/dist/components/zonos-checkbox2.js +0 -96
  209. package/dist/components/zonos-checkout-finish.d.ts +0 -11
  210. package/dist/components/zonos-checkout-finish.js +0 -6
  211. package/dist/components/zonos-checkout-finish2.js +0 -246
  212. package/dist/components/zonos-checkout-footer.d.ts +0 -11
  213. package/dist/components/zonos-checkout-footer.js +0 -6
  214. package/dist/components/zonos-checkout-footer2.js +0 -125
  215. package/dist/components/zonos-checkout-payment.d.ts +0 -11
  216. package/dist/components/zonos-checkout-payment.js +0 -6
  217. package/dist/components/zonos-checkout-payment2.js +0 -104
  218. package/dist/components/zonos-checkout-progress-tabs.d.ts +0 -11
  219. package/dist/components/zonos-checkout-progress-tabs.js +0 -6
  220. package/dist/components/zonos-checkout-progress-tabs2.js +0 -138
  221. package/dist/components/zonos-checkout.d.ts +0 -11
  222. package/dist/components/zonos-checkout.js +0 -1051
  223. package/dist/components/zonos-collapse.d.ts +0 -11
  224. package/dist/components/zonos-collapse.js +0 -6
  225. package/dist/components/zonos-collapse2.js +0 -78
  226. package/dist/components/zonos-component.d.ts +0 -11
  227. package/dist/components/zonos-component.js +0 -48
  228. package/dist/components/zonos-confirm-dialog.d.ts +0 -11
  229. package/dist/components/zonos-confirm-dialog.js +0 -6
  230. package/dist/components/zonos-confirm-dialog2.js +0 -161
  231. package/dist/components/zonos-controller.d.ts +0 -11
  232. package/dist/components/zonos-controller.js +0 -309
  233. package/dist/components/zonos-country-flag.d.ts +0 -11
  234. package/dist/components/zonos-country-flag.js +0 -6
  235. package/dist/components/zonos-country-flag2.js +0 -54
  236. package/dist/components/zonos-country-select.d.ts +0 -11
  237. package/dist/components/zonos-country-select.js +0 -6
  238. package/dist/components/zonos-country-select2.js +0 -1891
  239. package/dist/components/zonos-custom-message.d.ts +0 -11
  240. package/dist/components/zonos-custom-message.js +0 -6
  241. package/dist/components/zonos-custom-message2.js +0 -72
  242. package/dist/components/zonos-customer-info.d.ts +0 -11
  243. package/dist/components/zonos-customer-info.js +0 -6
  244. package/dist/components/zonos-customer-info2.js +0 -316
  245. package/dist/components/zonos-dialog.d.ts +0 -11
  246. package/dist/components/zonos-dialog.js +0 -6
  247. package/dist/components/zonos-dialog2.js +0 -136
  248. package/dist/components/zonos-hello-dialog-footer.d.ts +0 -11
  249. package/dist/components/zonos-hello-dialog-footer.js +0 -6
  250. package/dist/components/zonos-hello-dialog-footer2.js +0 -83
  251. package/dist/components/zonos-hello-dialog.d.ts +0 -11
  252. package/dist/components/zonos-hello-dialog.js +0 -6
  253. package/dist/components/zonos-hello-dialog2.js +0 -305
  254. package/dist/components/zonos-hello.d.ts +0 -11
  255. package/dist/components/zonos-hello.js +0 -879
  256. package/dist/components/zonos-icon.d.ts +0 -11
  257. package/dist/components/zonos-icon.js +0 -6
  258. package/dist/components/zonos-icon2.js +0 -55
  259. package/dist/components/zonos-input.d.ts +0 -11
  260. package/dist/components/zonos-input.js +0 -6
  261. package/dist/components/zonos-input2.js +0 -78
  262. package/dist/components/zonos-language-select.d.ts +0 -11
  263. package/dist/components/zonos-language-select.js +0 -6
  264. package/dist/components/zonos-language-select2.js +0 -88
  265. package/dist/components/zonos-link-authentication.d.ts +0 -11
  266. package/dist/components/zonos-link-authentication.js +0 -6
  267. package/dist/components/zonos-link-authentication2.js +0 -80
  268. package/dist/components/zonos-link.d.ts +0 -11
  269. package/dist/components/zonos-link.js +0 -43
  270. package/dist/components/zonos-logo.d.ts +0 -11
  271. package/dist/components/zonos-logo.js +0 -49
  272. package/dist/components/zonos-notification.d.ts +0 -11
  273. package/dist/components/zonos-notification.js +0 -6
  274. package/dist/components/zonos-notification2.js +0 -92
  275. package/dist/components/zonos-payment.d.ts +0 -11
  276. package/dist/components/zonos-payment.js +0 -6
  277. package/dist/components/zonos-payment2.js +0 -77
  278. package/dist/components/zonos-review.d.ts +0 -11
  279. package/dist/components/zonos-review.js +0 -6
  280. package/dist/components/zonos-review2.js +0 -89
  281. package/dist/components/zonos-select-dialog-header.d.ts +0 -11
  282. package/dist/components/zonos-select-dialog-header.js +0 -6
  283. package/dist/components/zonos-select-dialog-header2.js +0 -71
  284. package/dist/components/zonos-shipping-rich-radio.d.ts +0 -11
  285. package/dist/components/zonos-shipping-rich-radio.js +0 -6
  286. package/dist/components/zonos-shipping-rich-radio2.js +0 -88
  287. package/dist/components/zonos-shipping.d.ts +0 -11
  288. package/dist/components/zonos-shipping.js +0 -6
  289. package/dist/components/zonos-shipping2.js +0 -159
  290. package/dist/components/zonos-spinner.d.ts +0 -11
  291. package/dist/components/zonos-spinner.js +0 -6
  292. package/dist/components/zonos-spinner2.js +0 -43
  293. package/dist/components/zonos-text.d.ts +0 -11
  294. package/dist/components/zonos-text.js +0 -6
  295. package/dist/components/zonos-text2.js +0 -182
  296. package/dist/components/zonos-tooltip.d.ts +0 -11
  297. package/dist/components/zonos-tooltip.js +0 -6
  298. package/dist/components/zonos-tooltip2.js +0 -48
  299. package/dist/components/zonos-v-stack.d.ts +0 -11
  300. package/dist/components/zonos-v-stack.js +0 -6
  301. package/dist/components/zonos-v-stack2.js +0 -38
  302. package/dist/components/zonosStore.js +0 -2881
  303. package/dist/esm-es5/cart-cc593c2b.js +0 -1
  304. package/dist/esm-es5/submitGtag-e50f903f.js +0 -1
  305. package/dist/scripts/checkIfLoadVersionDomain.js +0 -1
  306. package/dist/scripts/extractZonosQaUrl.js +0 -1
  307. package/dist/scripts/getTempCartById.js +0 -1
  308. package/dist/scripts/loadStripe.js +0 -1
  309. package/dist/scripts/stripe.js +0 -1
  310. package/dist/scripts/zonosBase.js +0 -1
  311. package/dist/zonos-elements/p-04030a48.entry.js +0 -1
  312. package/dist/zonos-elements/p-0e892292.entry.js +0 -1
  313. package/dist/zonos-elements/p-0fac99e7.entry.js +0 -1
  314. package/dist/zonos-elements/p-1795c760.system.entry.js +0 -1
  315. package/dist/zonos-elements/p-24ac1c6f.entry.js +0 -1
  316. package/dist/zonos-elements/p-26a60a6e.entry.js +0 -1
  317. package/dist/zonos-elements/p-32744531.entry.js +0 -1
  318. package/dist/zonos-elements/p-35ac375a.system.entry.js +0 -1
  319. package/dist/zonos-elements/p-3bc88c3c.system.entry.js +0 -1
  320. package/dist/zonos-elements/p-4caaaaeb.system.entry.js +0 -1
  321. package/dist/zonos-elements/p-50ea2036.system.js +0 -1
  322. package/dist/zonos-elements/p-5e783394.entry.js +0 -1
  323. package/dist/zonos-elements/p-6366e7e3.entry.js +0 -1
  324. package/dist/zonos-elements/p-7c8ee4b9.system.entry.js +0 -1
  325. package/dist/zonos-elements/p-80ea85b8.entry.js +0 -1
  326. package/dist/zonos-elements/p-8da16d53.system.js +0 -1
  327. package/dist/zonos-elements/p-98a0b694.system.entry.js +0 -1
  328. package/dist/zonos-elements/p-b98cdf39.system.entry.js +0 -1
  329. package/dist/zonos-elements/p-d7b8c1c1.system.entry.js +0 -1
  330. package/dist/zonos-elements/p-dd0fd351.entry.js +0 -1
  331. package/dist/zonos-elements/p-e015cb0e.js +0 -1
  332. package/dist/zonos-elements/p-e1fbd05d.system.entry.js +0 -1
  333. package/dist/zonos-elements/p-e553dd19.js +0 -1
  334. package/dist/zonos-elements/p-e6fa0ebc.system.js +0 -1
  335. package/dist/zonos-elements/p-f6546bf4.system.entry.js +0 -1
  336. /package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.css +0 -0
  337. /package/dist/collection/scripts/{checkIfLoadVersionDomain.js → _checkIfLoadVersionDomain.js} +0 -0
  338. /package/dist/collection/scripts/{stripe.js → _stripe.js} +0 -0
  339. /package/dist/types/components/common/{component-template/zonos-link → zonos-link}/zonos-link.d.ts +0 -0
  340. /package/dist/types/scripts/{checkIfLoadVersionDomain.d.ts → _checkIfLoadVersionDomain.d.ts} +0 -0
  341. /package/dist/types/scripts/{stripe.d.ts → _stripe.d.ts} +0 -0
@@ -1,2881 +0,0 @@
1
- import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';
2
-
3
- const appendToMap = (map, propName, value) => {
4
- const items = map.get(propName);
5
- if (!items) {
6
- map.set(propName, [value]);
7
- }
8
- else if (!items.includes(value)) {
9
- items.push(value);
10
- }
11
- };
12
- const debounce = (fn, ms) => {
13
- let timeoutId;
14
- return (...args) => {
15
- if (timeoutId) {
16
- clearTimeout(timeoutId);
17
- }
18
- timeoutId = setTimeout(() => {
19
- timeoutId = 0;
20
- fn(...args);
21
- }, ms);
22
- };
23
- };
24
-
25
- /**
26
- * Check if a possible element isConnected.
27
- * The property might not be there, so we check for it.
28
- *
29
- * We want it to return true if isConnected is not a property,
30
- * otherwise we would remove these elements and would not update.
31
- *
32
- * Better leak in Edge than to be useless.
33
- */
34
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
35
- const cleanupElements = debounce((map) => {
36
- for (let key of map.keys()) {
37
- map.set(key, map.get(key).filter(isConnected));
38
- }
39
- }, 2000);
40
- const stencilSubscription = () => {
41
- if (typeof getRenderingRef !== 'function') {
42
- // If we are not in a stencil project, we do nothing.
43
- // This function is not really exported by @stencil/core.
44
- return {};
45
- }
46
- const elmsToUpdate = new Map();
47
- return {
48
- dispose: () => elmsToUpdate.clear(),
49
- get: (propName) => {
50
- const elm = getRenderingRef();
51
- if (elm) {
52
- appendToMap(elmsToUpdate, propName, elm);
53
- }
54
- },
55
- set: (propName) => {
56
- const elements = elmsToUpdate.get(propName);
57
- if (elements) {
58
- elmsToUpdate.set(propName, elements.filter(forceUpdate));
59
- }
60
- cleanupElements(elmsToUpdate);
61
- },
62
- reset: () => {
63
- elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
64
- cleanupElements(elmsToUpdate);
65
- },
66
- };
67
- };
68
-
69
- const unwrap = (val) => (typeof val === 'function' ? val() : val);
70
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
71
- const unwrappedState = unwrap(defaultState);
72
- let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
73
- const handlers = {
74
- dispose: [],
75
- get: [],
76
- set: [],
77
- reset: [],
78
- };
79
- const reset = () => {
80
- var _a;
81
- // When resetting the state, the default state may be a function - unwrap it to invoke it.
82
- // otherwise, the state won't be properly reset
83
- states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
84
- handlers.reset.forEach((cb) => cb());
85
- };
86
- const dispose = () => {
87
- // Call first dispose as resetting the state would
88
- // cause less updates ;)
89
- handlers.dispose.forEach((cb) => cb());
90
- reset();
91
- };
92
- const get = (propName) => {
93
- handlers.get.forEach((cb) => cb(propName));
94
- return states.get(propName);
95
- };
96
- const set = (propName, value) => {
97
- const oldValue = states.get(propName);
98
- if (shouldUpdate(value, oldValue, propName)) {
99
- states.set(propName, value);
100
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
101
- }
102
- };
103
- const state = (typeof Proxy === 'undefined'
104
- ? {}
105
- : new Proxy(unwrappedState, {
106
- get(_, propName) {
107
- return get(propName);
108
- },
109
- ownKeys(_) {
110
- return Array.from(states.keys());
111
- },
112
- getOwnPropertyDescriptor() {
113
- return {
114
- enumerable: true,
115
- configurable: true,
116
- };
117
- },
118
- has(_, propName) {
119
- return states.has(propName);
120
- },
121
- set(_, propName, value) {
122
- set(propName, value);
123
- return true;
124
- },
125
- }));
126
- const on = (eventName, callback) => {
127
- handlers[eventName].push(callback);
128
- return () => {
129
- removeFromArray(handlers[eventName], callback);
130
- };
131
- };
132
- const onChange = (propName, cb) => {
133
- const unSet = on('set', (key, newValue) => {
134
- if (key === propName) {
135
- cb(newValue);
136
- }
137
- });
138
- // We need to unwrap the defaultState because it might be a function.
139
- // Otherwise we might not be sending the right reset value.
140
- const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
141
- return () => {
142
- unSet();
143
- unReset();
144
- };
145
- };
146
- const use = (...subscriptions) => {
147
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
148
- if (subscription.set) {
149
- unsubs.push(on('set', subscription.set));
150
- }
151
- if (subscription.get) {
152
- unsubs.push(on('get', subscription.get));
153
- }
154
- if (subscription.reset) {
155
- unsubs.push(on('reset', subscription.reset));
156
- }
157
- if (subscription.dispose) {
158
- unsubs.push(on('dispose', subscription.dispose));
159
- }
160
- return unsubs;
161
- }, []);
162
- return () => unsubs.forEach((unsub) => unsub());
163
- };
164
- const forceUpdate = (key) => {
165
- const oldValue = states.get(key);
166
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
167
- };
168
- return {
169
- state,
170
- get,
171
- set,
172
- on,
173
- onChange,
174
- use,
175
- dispose,
176
- reset,
177
- forceUpdate,
178
- };
179
- };
180
- const removeFromArray = (array, item) => {
181
- const index = array.indexOf(item);
182
- if (index >= 0) {
183
- array[index] = array[array.length - 1];
184
- array.length--;
185
- }
186
- };
187
-
188
- const createStore = (defaultState, shouldUpdate) => {
189
- const map = createObservableMap(defaultState, shouldUpdate);
190
- map.use(stencilSubscription());
191
- return map;
192
- };
193
-
194
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
195
-
196
- /**
197
- * Removes all key-value entries from the list cache.
198
- *
199
- * @private
200
- * @name clear
201
- * @memberOf ListCache
202
- */
203
-
204
- function listCacheClear$1() {
205
- this.__data__ = [];
206
- this.size = 0;
207
- }
208
-
209
- var _listCacheClear = listCacheClear$1;
210
-
211
- /**
212
- * Performs a
213
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
214
- * comparison between two values to determine if they are equivalent.
215
- *
216
- * @static
217
- * @memberOf _
218
- * @since 4.0.0
219
- * @category Lang
220
- * @param {*} value The value to compare.
221
- * @param {*} other The other value to compare.
222
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
223
- * @example
224
- *
225
- * var object = { 'a': 1 };
226
- * var other = { 'a': 1 };
227
- *
228
- * _.eq(object, object);
229
- * // => true
230
- *
231
- * _.eq(object, other);
232
- * // => false
233
- *
234
- * _.eq('a', 'a');
235
- * // => true
236
- *
237
- * _.eq('a', Object('a'));
238
- * // => false
239
- *
240
- * _.eq(NaN, NaN);
241
- * // => true
242
- */
243
-
244
- function eq$4(value, other) {
245
- return value === other || (value !== value && other !== other);
246
- }
247
-
248
- var eq_1 = eq$4;
249
-
250
- var eq$3 = eq_1;
251
-
252
- /**
253
- * Gets the index at which the `key` is found in `array` of key-value pairs.
254
- *
255
- * @private
256
- * @param {Array} array The array to inspect.
257
- * @param {*} key The key to search for.
258
- * @returns {number} Returns the index of the matched value, else `-1`.
259
- */
260
- function assocIndexOf$4(array, key) {
261
- var length = array.length;
262
- while (length--) {
263
- if (eq$3(array[length][0], key)) {
264
- return length;
265
- }
266
- }
267
- return -1;
268
- }
269
-
270
- var _assocIndexOf = assocIndexOf$4;
271
-
272
- var assocIndexOf$3 = _assocIndexOf;
273
-
274
- /** Used for built-in method references. */
275
- var arrayProto = Array.prototype;
276
-
277
- /** Built-in value references. */
278
- var splice = arrayProto.splice;
279
-
280
- /**
281
- * Removes `key` and its value from the list cache.
282
- *
283
- * @private
284
- * @name delete
285
- * @memberOf ListCache
286
- * @param {string} key The key of the value to remove.
287
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
288
- */
289
- function listCacheDelete$1(key) {
290
- var data = this.__data__,
291
- index = assocIndexOf$3(data, key);
292
-
293
- if (index < 0) {
294
- return false;
295
- }
296
- var lastIndex = data.length - 1;
297
- if (index == lastIndex) {
298
- data.pop();
299
- } else {
300
- splice.call(data, index, 1);
301
- }
302
- --this.size;
303
- return true;
304
- }
305
-
306
- var _listCacheDelete = listCacheDelete$1;
307
-
308
- var assocIndexOf$2 = _assocIndexOf;
309
-
310
- /**
311
- * Gets the list cache value for `key`.
312
- *
313
- * @private
314
- * @name get
315
- * @memberOf ListCache
316
- * @param {string} key The key of the value to get.
317
- * @returns {*} Returns the entry value.
318
- */
319
- function listCacheGet$1(key) {
320
- var data = this.__data__,
321
- index = assocIndexOf$2(data, key);
322
-
323
- return index < 0 ? undefined : data[index][1];
324
- }
325
-
326
- var _listCacheGet = listCacheGet$1;
327
-
328
- var assocIndexOf$1 = _assocIndexOf;
329
-
330
- /**
331
- * Checks if a list cache value for `key` exists.
332
- *
333
- * @private
334
- * @name has
335
- * @memberOf ListCache
336
- * @param {string} key The key of the entry to check.
337
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
338
- */
339
- function listCacheHas$1(key) {
340
- return assocIndexOf$1(this.__data__, key) > -1;
341
- }
342
-
343
- var _listCacheHas = listCacheHas$1;
344
-
345
- var assocIndexOf = _assocIndexOf;
346
-
347
- /**
348
- * Sets the list cache `key` to `value`.
349
- *
350
- * @private
351
- * @name set
352
- * @memberOf ListCache
353
- * @param {string} key The key of the value to set.
354
- * @param {*} value The value to set.
355
- * @returns {Object} Returns the list cache instance.
356
- */
357
- function listCacheSet$1(key, value) {
358
- var data = this.__data__,
359
- index = assocIndexOf(data, key);
360
-
361
- if (index < 0) {
362
- ++this.size;
363
- data.push([key, value]);
364
- } else {
365
- data[index][1] = value;
366
- }
367
- return this;
368
- }
369
-
370
- var _listCacheSet = listCacheSet$1;
371
-
372
- var listCacheClear = _listCacheClear,
373
- listCacheDelete = _listCacheDelete,
374
- listCacheGet = _listCacheGet,
375
- listCacheHas = _listCacheHas,
376
- listCacheSet = _listCacheSet;
377
-
378
- /**
379
- * Creates an list cache object.
380
- *
381
- * @private
382
- * @constructor
383
- * @param {Array} [entries] The key-value pairs to cache.
384
- */
385
- function ListCache$4(entries) {
386
- var index = -1,
387
- length = entries == null ? 0 : entries.length;
388
-
389
- this.clear();
390
- while (++index < length) {
391
- var entry = entries[index];
392
- this.set(entry[0], entry[1]);
393
- }
394
- }
395
-
396
- // Add methods to `ListCache`.
397
- ListCache$4.prototype.clear = listCacheClear;
398
- ListCache$4.prototype['delete'] = listCacheDelete;
399
- ListCache$4.prototype.get = listCacheGet;
400
- ListCache$4.prototype.has = listCacheHas;
401
- ListCache$4.prototype.set = listCacheSet;
402
-
403
- var _ListCache = ListCache$4;
404
-
405
- var ListCache$3 = _ListCache;
406
-
407
- /**
408
- * Removes all key-value entries from the stack.
409
- *
410
- * @private
411
- * @name clear
412
- * @memberOf Stack
413
- */
414
- function stackClear$1() {
415
- this.__data__ = new ListCache$3;
416
- this.size = 0;
417
- }
418
-
419
- var _stackClear = stackClear$1;
420
-
421
- /**
422
- * Removes `key` and its value from the stack.
423
- *
424
- * @private
425
- * @name delete
426
- * @memberOf Stack
427
- * @param {string} key The key of the value to remove.
428
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
429
- */
430
-
431
- function stackDelete$1(key) {
432
- var data = this.__data__,
433
- result = data['delete'](key);
434
-
435
- this.size = data.size;
436
- return result;
437
- }
438
-
439
- var _stackDelete = stackDelete$1;
440
-
441
- /**
442
- * Gets the stack value for `key`.
443
- *
444
- * @private
445
- * @name get
446
- * @memberOf Stack
447
- * @param {string} key The key of the value to get.
448
- * @returns {*} Returns the entry value.
449
- */
450
-
451
- function stackGet$1(key) {
452
- return this.__data__.get(key);
453
- }
454
-
455
- var _stackGet = stackGet$1;
456
-
457
- /**
458
- * Checks if a stack value for `key` exists.
459
- *
460
- * @private
461
- * @name has
462
- * @memberOf Stack
463
- * @param {string} key The key of the entry to check.
464
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
465
- */
466
-
467
- function stackHas$1(key) {
468
- return this.__data__.has(key);
469
- }
470
-
471
- var _stackHas = stackHas$1;
472
-
473
- /** Detect free variable `global` from Node.js. */
474
-
475
- var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
476
-
477
- var _freeGlobal = freeGlobal$1;
478
-
479
- var freeGlobal = _freeGlobal;
480
-
481
- /** Detect free variable `self`. */
482
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
483
-
484
- /** Used as a reference to the global object. */
485
- var root$4 = freeGlobal || freeSelf || Function('return this')();
486
-
487
- var _root = root$4;
488
-
489
- var root$3 = _root;
490
-
491
- /** Built-in value references. */
492
- var Symbol$2 = root$3.Symbol;
493
-
494
- var _Symbol = Symbol$2;
495
-
496
- var Symbol$1 = _Symbol;
497
-
498
- /** Used for built-in method references. */
499
- var objectProto$a = Object.prototype;
500
-
501
- /** Used to check objects for own properties. */
502
- var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
503
-
504
- /**
505
- * Used to resolve the
506
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
507
- * of values.
508
- */
509
- var nativeObjectToString$1 = objectProto$a.toString;
510
-
511
- /** Built-in value references. */
512
- var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
513
-
514
- /**
515
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
516
- *
517
- * @private
518
- * @param {*} value The value to query.
519
- * @returns {string} Returns the raw `toStringTag`.
520
- */
521
- function getRawTag$1(value) {
522
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
523
- tag = value[symToStringTag$1];
524
-
525
- try {
526
- value[symToStringTag$1] = undefined;
527
- var unmasked = true;
528
- } catch (e) {}
529
-
530
- var result = nativeObjectToString$1.call(value);
531
- if (unmasked) {
532
- if (isOwn) {
533
- value[symToStringTag$1] = tag;
534
- } else {
535
- delete value[symToStringTag$1];
536
- }
537
- }
538
- return result;
539
- }
540
-
541
- var _getRawTag = getRawTag$1;
542
-
543
- /** Used for built-in method references. */
544
-
545
- var objectProto$9 = Object.prototype;
546
-
547
- /**
548
- * Used to resolve the
549
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
550
- * of values.
551
- */
552
- var nativeObjectToString = objectProto$9.toString;
553
-
554
- /**
555
- * Converts `value` to a string using `Object.prototype.toString`.
556
- *
557
- * @private
558
- * @param {*} value The value to convert.
559
- * @returns {string} Returns the converted string.
560
- */
561
- function objectToString$1(value) {
562
- return nativeObjectToString.call(value);
563
- }
564
-
565
- var _objectToString = objectToString$1;
566
-
567
- var Symbol = _Symbol,
568
- getRawTag = _getRawTag,
569
- objectToString = _objectToString;
570
-
571
- /** `Object#toString` result references. */
572
- var nullTag = '[object Null]',
573
- undefinedTag = '[object Undefined]';
574
-
575
- /** Built-in value references. */
576
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
577
-
578
- /**
579
- * The base implementation of `getTag` without fallbacks for buggy environments.
580
- *
581
- * @private
582
- * @param {*} value The value to query.
583
- * @returns {string} Returns the `toStringTag`.
584
- */
585
- function baseGetTag$4(value) {
586
- if (value == null) {
587
- return value === undefined ? undefinedTag : nullTag;
588
- }
589
- return (symToStringTag && symToStringTag in Object(value))
590
- ? getRawTag(value)
591
- : objectToString(value);
592
- }
593
-
594
- var _baseGetTag = baseGetTag$4;
595
-
596
- /**
597
- * Checks if `value` is the
598
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
599
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
600
- *
601
- * @static
602
- * @memberOf _
603
- * @since 0.1.0
604
- * @category Lang
605
- * @param {*} value The value to check.
606
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
607
- * @example
608
- *
609
- * _.isObject({});
610
- * // => true
611
- *
612
- * _.isObject([1, 2, 3]);
613
- * // => true
614
- *
615
- * _.isObject(_.noop);
616
- * // => true
617
- *
618
- * _.isObject(null);
619
- * // => false
620
- */
621
-
622
- function isObject$7(value) {
623
- var type = typeof value;
624
- return value != null && (type == 'object' || type == 'function');
625
- }
626
-
627
- var isObject_1 = isObject$7;
628
-
629
- var baseGetTag$3 = _baseGetTag,
630
- isObject$6 = isObject_1;
631
-
632
- /** `Object#toString` result references. */
633
- var asyncTag = '[object AsyncFunction]',
634
- funcTag$1 = '[object Function]',
635
- genTag = '[object GeneratorFunction]',
636
- proxyTag = '[object Proxy]';
637
-
638
- /**
639
- * Checks if `value` is classified as a `Function` object.
640
- *
641
- * @static
642
- * @memberOf _
643
- * @since 0.1.0
644
- * @category Lang
645
- * @param {*} value The value to check.
646
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
647
- * @example
648
- *
649
- * _.isFunction(_);
650
- * // => true
651
- *
652
- * _.isFunction(/abc/);
653
- * // => false
654
- */
655
- function isFunction$3(value) {
656
- if (!isObject$6(value)) {
657
- return false;
658
- }
659
- // The use of `Object#toString` avoids issues with the `typeof` operator
660
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
661
- var tag = baseGetTag$3(value);
662
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
663
- }
664
-
665
- var isFunction_1 = isFunction$3;
666
-
667
- var root$2 = _root;
668
-
669
- /** Used to detect overreaching core-js shims. */
670
- var coreJsData$1 = root$2['__core-js_shared__'];
671
-
672
- var _coreJsData = coreJsData$1;
673
-
674
- var coreJsData = _coreJsData;
675
-
676
- /** Used to detect methods masquerading as native. */
677
- var maskSrcKey = (function() {
678
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
679
- return uid ? ('Symbol(src)_1.' + uid) : '';
680
- }());
681
-
682
- /**
683
- * Checks if `func` has its source masked.
684
- *
685
- * @private
686
- * @param {Function} func The function to check.
687
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
688
- */
689
- function isMasked$1(func) {
690
- return !!maskSrcKey && (maskSrcKey in func);
691
- }
692
-
693
- var _isMasked = isMasked$1;
694
-
695
- /** Used for built-in method references. */
696
-
697
- var funcProto$2 = Function.prototype;
698
-
699
- /** Used to resolve the decompiled source of functions. */
700
- var funcToString$2 = funcProto$2.toString;
701
-
702
- /**
703
- * Converts `func` to its source code.
704
- *
705
- * @private
706
- * @param {Function} func The function to convert.
707
- * @returns {string} Returns the source code.
708
- */
709
- function toSource$1(func) {
710
- if (func != null) {
711
- try {
712
- return funcToString$2.call(func);
713
- } catch (e) {}
714
- try {
715
- return (func + '');
716
- } catch (e) {}
717
- }
718
- return '';
719
- }
720
-
721
- var _toSource = toSource$1;
722
-
723
- var isFunction$2 = isFunction_1,
724
- isMasked = _isMasked,
725
- isObject$5 = isObject_1,
726
- toSource = _toSource;
727
-
728
- /**
729
- * Used to match `RegExp`
730
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
731
- */
732
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
733
-
734
- /** Used to detect host constructors (Safari). */
735
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
736
-
737
- /** Used for built-in method references. */
738
- var funcProto$1 = Function.prototype,
739
- objectProto$8 = Object.prototype;
740
-
741
- /** Used to resolve the decompiled source of functions. */
742
- var funcToString$1 = funcProto$1.toString;
743
-
744
- /** Used to check objects for own properties. */
745
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
746
-
747
- /** Used to detect if a method is native. */
748
- var reIsNative = RegExp('^' +
749
- funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
750
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
751
- );
752
-
753
- /**
754
- * The base implementation of `_.isNative` without bad shim checks.
755
- *
756
- * @private
757
- * @param {*} value The value to check.
758
- * @returns {boolean} Returns `true` if `value` is a native function,
759
- * else `false`.
760
- */
761
- function baseIsNative$1(value) {
762
- if (!isObject$5(value) || isMasked(value)) {
763
- return false;
764
- }
765
- var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
766
- return pattern.test(toSource(value));
767
- }
768
-
769
- var _baseIsNative = baseIsNative$1;
770
-
771
- /**
772
- * Gets the value at `key` of `object`.
773
- *
774
- * @private
775
- * @param {Object} [object] The object to query.
776
- * @param {string} key The key of the property to get.
777
- * @returns {*} Returns the property value.
778
- */
779
-
780
- function getValue$1(object, key) {
781
- return object == null ? undefined : object[key];
782
- }
783
-
784
- var _getValue = getValue$1;
785
-
786
- var baseIsNative = _baseIsNative,
787
- getValue = _getValue;
788
-
789
- /**
790
- * Gets the native function at `key` of `object`.
791
- *
792
- * @private
793
- * @param {Object} object The object to query.
794
- * @param {string} key The key of the method to get.
795
- * @returns {*} Returns the function if it's native, else `undefined`.
796
- */
797
- function getNative$3(object, key) {
798
- var value = getValue(object, key);
799
- return baseIsNative(value) ? value : undefined;
800
- }
801
-
802
- var _getNative = getNative$3;
803
-
804
- var getNative$2 = _getNative,
805
- root$1 = _root;
806
-
807
- /* Built-in method references that are verified to be native. */
808
- var Map$3 = getNative$2(root$1, 'Map');
809
-
810
- var _Map = Map$3;
811
-
812
- var getNative$1 = _getNative;
813
-
814
- /* Built-in method references that are verified to be native. */
815
- var nativeCreate$4 = getNative$1(Object, 'create');
816
-
817
- var _nativeCreate = nativeCreate$4;
818
-
819
- var nativeCreate$3 = _nativeCreate;
820
-
821
- /**
822
- * Removes all key-value entries from the hash.
823
- *
824
- * @private
825
- * @name clear
826
- * @memberOf Hash
827
- */
828
- function hashClear$1() {
829
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
830
- this.size = 0;
831
- }
832
-
833
- var _hashClear = hashClear$1;
834
-
835
- /**
836
- * Removes `key` and its value from the hash.
837
- *
838
- * @private
839
- * @name delete
840
- * @memberOf Hash
841
- * @param {Object} hash The hash to modify.
842
- * @param {string} key The key of the value to remove.
843
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
844
- */
845
-
846
- function hashDelete$1(key) {
847
- var result = this.has(key) && delete this.__data__[key];
848
- this.size -= result ? 1 : 0;
849
- return result;
850
- }
851
-
852
- var _hashDelete = hashDelete$1;
853
-
854
- var nativeCreate$2 = _nativeCreate;
855
-
856
- /** Used to stand-in for `undefined` hash values. */
857
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
858
-
859
- /** Used for built-in method references. */
860
- var objectProto$7 = Object.prototype;
861
-
862
- /** Used to check objects for own properties. */
863
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
864
-
865
- /**
866
- * Gets the hash value for `key`.
867
- *
868
- * @private
869
- * @name get
870
- * @memberOf Hash
871
- * @param {string} key The key of the value to get.
872
- * @returns {*} Returns the entry value.
873
- */
874
- function hashGet$1(key) {
875
- var data = this.__data__;
876
- if (nativeCreate$2) {
877
- var result = data[key];
878
- return result === HASH_UNDEFINED$1 ? undefined : result;
879
- }
880
- return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
881
- }
882
-
883
- var _hashGet = hashGet$1;
884
-
885
- var nativeCreate$1 = _nativeCreate;
886
-
887
- /** Used for built-in method references. */
888
- var objectProto$6 = Object.prototype;
889
-
890
- /** Used to check objects for own properties. */
891
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
892
-
893
- /**
894
- * Checks if a hash value for `key` exists.
895
- *
896
- * @private
897
- * @name has
898
- * @memberOf Hash
899
- * @param {string} key The key of the entry to check.
900
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
901
- */
902
- function hashHas$1(key) {
903
- var data = this.__data__;
904
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
905
- }
906
-
907
- var _hashHas = hashHas$1;
908
-
909
- var nativeCreate = _nativeCreate;
910
-
911
- /** Used to stand-in for `undefined` hash values. */
912
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
913
-
914
- /**
915
- * Sets the hash `key` to `value`.
916
- *
917
- * @private
918
- * @name set
919
- * @memberOf Hash
920
- * @param {string} key The key of the value to set.
921
- * @param {*} value The value to set.
922
- * @returns {Object} Returns the hash instance.
923
- */
924
- function hashSet$1(key, value) {
925
- var data = this.__data__;
926
- this.size += this.has(key) ? 0 : 1;
927
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
928
- return this;
929
- }
930
-
931
- var _hashSet = hashSet$1;
932
-
933
- var hashClear = _hashClear,
934
- hashDelete = _hashDelete,
935
- hashGet = _hashGet,
936
- hashHas = _hashHas,
937
- hashSet = _hashSet;
938
-
939
- /**
940
- * Creates a hash object.
941
- *
942
- * @private
943
- * @constructor
944
- * @param {Array} [entries] The key-value pairs to cache.
945
- */
946
- function Hash$1(entries) {
947
- var index = -1,
948
- length = entries == null ? 0 : entries.length;
949
-
950
- this.clear();
951
- while (++index < length) {
952
- var entry = entries[index];
953
- this.set(entry[0], entry[1]);
954
- }
955
- }
956
-
957
- // Add methods to `Hash`.
958
- Hash$1.prototype.clear = hashClear;
959
- Hash$1.prototype['delete'] = hashDelete;
960
- Hash$1.prototype.get = hashGet;
961
- Hash$1.prototype.has = hashHas;
962
- Hash$1.prototype.set = hashSet;
963
-
964
- var _Hash = Hash$1;
965
-
966
- var Hash = _Hash,
967
- ListCache$2 = _ListCache,
968
- Map$2 = _Map;
969
-
970
- /**
971
- * Removes all key-value entries from the map.
972
- *
973
- * @private
974
- * @name clear
975
- * @memberOf MapCache
976
- */
977
- function mapCacheClear$1() {
978
- this.size = 0;
979
- this.__data__ = {
980
- 'hash': new Hash,
981
- 'map': new (Map$2 || ListCache$2),
982
- 'string': new Hash
983
- };
984
- }
985
-
986
- var _mapCacheClear = mapCacheClear$1;
987
-
988
- /**
989
- * Checks if `value` is suitable for use as unique object key.
990
- *
991
- * @private
992
- * @param {*} value The value to check.
993
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
994
- */
995
-
996
- function isKeyable$1(value) {
997
- var type = typeof value;
998
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
999
- ? (value !== '__proto__')
1000
- : (value === null);
1001
- }
1002
-
1003
- var _isKeyable = isKeyable$1;
1004
-
1005
- var isKeyable = _isKeyable;
1006
-
1007
- /**
1008
- * Gets the data for `map`.
1009
- *
1010
- * @private
1011
- * @param {Object} map The map to query.
1012
- * @param {string} key The reference key.
1013
- * @returns {*} Returns the map data.
1014
- */
1015
- function getMapData$4(map, key) {
1016
- var data = map.__data__;
1017
- return isKeyable(key)
1018
- ? data[typeof key == 'string' ? 'string' : 'hash']
1019
- : data.map;
1020
- }
1021
-
1022
- var _getMapData = getMapData$4;
1023
-
1024
- var getMapData$3 = _getMapData;
1025
-
1026
- /**
1027
- * Removes `key` and its value from the map.
1028
- *
1029
- * @private
1030
- * @name delete
1031
- * @memberOf MapCache
1032
- * @param {string} key The key of the value to remove.
1033
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1034
- */
1035
- function mapCacheDelete$1(key) {
1036
- var result = getMapData$3(this, key)['delete'](key);
1037
- this.size -= result ? 1 : 0;
1038
- return result;
1039
- }
1040
-
1041
- var _mapCacheDelete = mapCacheDelete$1;
1042
-
1043
- var getMapData$2 = _getMapData;
1044
-
1045
- /**
1046
- * Gets the map value for `key`.
1047
- *
1048
- * @private
1049
- * @name get
1050
- * @memberOf MapCache
1051
- * @param {string} key The key of the value to get.
1052
- * @returns {*} Returns the entry value.
1053
- */
1054
- function mapCacheGet$1(key) {
1055
- return getMapData$2(this, key).get(key);
1056
- }
1057
-
1058
- var _mapCacheGet = mapCacheGet$1;
1059
-
1060
- var getMapData$1 = _getMapData;
1061
-
1062
- /**
1063
- * Checks if a map value for `key` exists.
1064
- *
1065
- * @private
1066
- * @name has
1067
- * @memberOf MapCache
1068
- * @param {string} key The key of the entry to check.
1069
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1070
- */
1071
- function mapCacheHas$1(key) {
1072
- return getMapData$1(this, key).has(key);
1073
- }
1074
-
1075
- var _mapCacheHas = mapCacheHas$1;
1076
-
1077
- var getMapData = _getMapData;
1078
-
1079
- /**
1080
- * Sets the map `key` to `value`.
1081
- *
1082
- * @private
1083
- * @name set
1084
- * @memberOf MapCache
1085
- * @param {string} key The key of the value to set.
1086
- * @param {*} value The value to set.
1087
- * @returns {Object} Returns the map cache instance.
1088
- */
1089
- function mapCacheSet$1(key, value) {
1090
- var data = getMapData(this, key),
1091
- size = data.size;
1092
-
1093
- data.set(key, value);
1094
- this.size += data.size == size ? 0 : 1;
1095
- return this;
1096
- }
1097
-
1098
- var _mapCacheSet = mapCacheSet$1;
1099
-
1100
- var mapCacheClear = _mapCacheClear,
1101
- mapCacheDelete = _mapCacheDelete,
1102
- mapCacheGet = _mapCacheGet,
1103
- mapCacheHas = _mapCacheHas,
1104
- mapCacheSet = _mapCacheSet;
1105
-
1106
- /**
1107
- * Creates a map cache object to store key-value pairs.
1108
- *
1109
- * @private
1110
- * @constructor
1111
- * @param {Array} [entries] The key-value pairs to cache.
1112
- */
1113
- function MapCache$1(entries) {
1114
- var index = -1,
1115
- length = entries == null ? 0 : entries.length;
1116
-
1117
- this.clear();
1118
- while (++index < length) {
1119
- var entry = entries[index];
1120
- this.set(entry[0], entry[1]);
1121
- }
1122
- }
1123
-
1124
- // Add methods to `MapCache`.
1125
- MapCache$1.prototype.clear = mapCacheClear;
1126
- MapCache$1.prototype['delete'] = mapCacheDelete;
1127
- MapCache$1.prototype.get = mapCacheGet;
1128
- MapCache$1.prototype.has = mapCacheHas;
1129
- MapCache$1.prototype.set = mapCacheSet;
1130
-
1131
- var _MapCache = MapCache$1;
1132
-
1133
- var ListCache$1 = _ListCache,
1134
- Map$1 = _Map,
1135
- MapCache = _MapCache;
1136
-
1137
- /** Used as the size to enable large array optimizations. */
1138
- var LARGE_ARRAY_SIZE = 200;
1139
-
1140
- /**
1141
- * Sets the stack `key` to `value`.
1142
- *
1143
- * @private
1144
- * @name set
1145
- * @memberOf Stack
1146
- * @param {string} key The key of the value to set.
1147
- * @param {*} value The value to set.
1148
- * @returns {Object} Returns the stack cache instance.
1149
- */
1150
- function stackSet$1(key, value) {
1151
- var data = this.__data__;
1152
- if (data instanceof ListCache$1) {
1153
- var pairs = data.__data__;
1154
- if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1155
- pairs.push([key, value]);
1156
- this.size = ++data.size;
1157
- return this;
1158
- }
1159
- data = this.__data__ = new MapCache(pairs);
1160
- }
1161
- data.set(key, value);
1162
- this.size = data.size;
1163
- return this;
1164
- }
1165
-
1166
- var _stackSet = stackSet$1;
1167
-
1168
- var ListCache = _ListCache,
1169
- stackClear = _stackClear,
1170
- stackDelete = _stackDelete,
1171
- stackGet = _stackGet,
1172
- stackHas = _stackHas,
1173
- stackSet = _stackSet;
1174
-
1175
- /**
1176
- * Creates a stack cache object to store key-value pairs.
1177
- *
1178
- * @private
1179
- * @constructor
1180
- * @param {Array} [entries] The key-value pairs to cache.
1181
- */
1182
- function Stack$1(entries) {
1183
- var data = this.__data__ = new ListCache(entries);
1184
- this.size = data.size;
1185
- }
1186
-
1187
- // Add methods to `Stack`.
1188
- Stack$1.prototype.clear = stackClear;
1189
- Stack$1.prototype['delete'] = stackDelete;
1190
- Stack$1.prototype.get = stackGet;
1191
- Stack$1.prototype.has = stackHas;
1192
- Stack$1.prototype.set = stackSet;
1193
-
1194
- var _Stack = Stack$1;
1195
-
1196
- var getNative = _getNative;
1197
-
1198
- var defineProperty$2 = (function() {
1199
- try {
1200
- var func = getNative(Object, 'defineProperty');
1201
- func({}, '', {});
1202
- return func;
1203
- } catch (e) {}
1204
- }());
1205
-
1206
- var _defineProperty = defineProperty$2;
1207
-
1208
- var defineProperty$1 = _defineProperty;
1209
-
1210
- /**
1211
- * The base implementation of `assignValue` and `assignMergeValue` without
1212
- * value checks.
1213
- *
1214
- * @private
1215
- * @param {Object} object The object to modify.
1216
- * @param {string} key The key of the property to assign.
1217
- * @param {*} value The value to assign.
1218
- */
1219
- function baseAssignValue$3(object, key, value) {
1220
- if (key == '__proto__' && defineProperty$1) {
1221
- defineProperty$1(object, key, {
1222
- 'configurable': true,
1223
- 'enumerable': true,
1224
- 'value': value,
1225
- 'writable': true
1226
- });
1227
- } else {
1228
- object[key] = value;
1229
- }
1230
- }
1231
-
1232
- var _baseAssignValue = baseAssignValue$3;
1233
-
1234
- var baseAssignValue$2 = _baseAssignValue,
1235
- eq$2 = eq_1;
1236
-
1237
- /**
1238
- * This function is like `assignValue` except that it doesn't assign
1239
- * `undefined` values.
1240
- *
1241
- * @private
1242
- * @param {Object} object The object to modify.
1243
- * @param {string} key The key of the property to assign.
1244
- * @param {*} value The value to assign.
1245
- */
1246
- function assignMergeValue$2(object, key, value) {
1247
- if ((value !== undefined && !eq$2(object[key], value)) ||
1248
- (value === undefined && !(key in object))) {
1249
- baseAssignValue$2(object, key, value);
1250
- }
1251
- }
1252
-
1253
- var _assignMergeValue = assignMergeValue$2;
1254
-
1255
- /**
1256
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
1257
- *
1258
- * @private
1259
- * @param {boolean} [fromRight] Specify iterating from right to left.
1260
- * @returns {Function} Returns the new base function.
1261
- */
1262
-
1263
- function createBaseFor$1(fromRight) {
1264
- return function(object, iteratee, keysFunc) {
1265
- var index = -1,
1266
- iterable = Object(object),
1267
- props = keysFunc(object),
1268
- length = props.length;
1269
-
1270
- while (length--) {
1271
- var key = props[fromRight ? length : ++index];
1272
- if (iteratee(iterable[key], key, iterable) === false) {
1273
- break;
1274
- }
1275
- }
1276
- return object;
1277
- };
1278
- }
1279
-
1280
- var _createBaseFor = createBaseFor$1;
1281
-
1282
- var createBaseFor = _createBaseFor;
1283
-
1284
- /**
1285
- * The base implementation of `baseForOwn` which iterates over `object`
1286
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
1287
- * Iteratee functions may exit iteration early by explicitly returning `false`.
1288
- *
1289
- * @private
1290
- * @param {Object} object The object to iterate over.
1291
- * @param {Function} iteratee The function invoked per iteration.
1292
- * @param {Function} keysFunc The function to get the keys of `object`.
1293
- * @returns {Object} Returns `object`.
1294
- */
1295
- var baseFor$1 = createBaseFor();
1296
-
1297
- var _baseFor = baseFor$1;
1298
-
1299
- var _cloneBuffer = {exports: {}};
1300
-
1301
- (function (module, exports) {
1302
- var root = _root;
1303
-
1304
- /** Detect free variable `exports`. */
1305
- var freeExports = exports && !exports.nodeType && exports;
1306
-
1307
- /** Detect free variable `module`. */
1308
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1309
-
1310
- /** Detect the popular CommonJS extension `module.exports`. */
1311
- var moduleExports = freeModule && freeModule.exports === freeExports;
1312
-
1313
- /** Built-in value references. */
1314
- var Buffer = moduleExports ? root.Buffer : undefined,
1315
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
1316
-
1317
- /**
1318
- * Creates a clone of `buffer`.
1319
- *
1320
- * @private
1321
- * @param {Buffer} buffer The buffer to clone.
1322
- * @param {boolean} [isDeep] Specify a deep clone.
1323
- * @returns {Buffer} Returns the cloned buffer.
1324
- */
1325
- function cloneBuffer(buffer, isDeep) {
1326
- if (isDeep) {
1327
- return buffer.slice();
1328
- }
1329
- var length = buffer.length,
1330
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1331
-
1332
- buffer.copy(result);
1333
- return result;
1334
- }
1335
-
1336
- module.exports = cloneBuffer;
1337
- }(_cloneBuffer, _cloneBuffer.exports));
1338
-
1339
- var root = _root;
1340
-
1341
- /** Built-in value references. */
1342
- var Uint8Array$1 = root.Uint8Array;
1343
-
1344
- var _Uint8Array = Uint8Array$1;
1345
-
1346
- var Uint8Array = _Uint8Array;
1347
-
1348
- /**
1349
- * Creates a clone of `arrayBuffer`.
1350
- *
1351
- * @private
1352
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1353
- * @returns {ArrayBuffer} Returns the cloned array buffer.
1354
- */
1355
- function cloneArrayBuffer$1(arrayBuffer) {
1356
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1357
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1358
- return result;
1359
- }
1360
-
1361
- var _cloneArrayBuffer = cloneArrayBuffer$1;
1362
-
1363
- var cloneArrayBuffer = _cloneArrayBuffer;
1364
-
1365
- /**
1366
- * Creates a clone of `typedArray`.
1367
- *
1368
- * @private
1369
- * @param {Object} typedArray The typed array to clone.
1370
- * @param {boolean} [isDeep] Specify a deep clone.
1371
- * @returns {Object} Returns the cloned typed array.
1372
- */
1373
- function cloneTypedArray$1(typedArray, isDeep) {
1374
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1375
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1376
- }
1377
-
1378
- var _cloneTypedArray = cloneTypedArray$1;
1379
-
1380
- /**
1381
- * Copies the values of `source` to `array`.
1382
- *
1383
- * @private
1384
- * @param {Array} source The array to copy values from.
1385
- * @param {Array} [array=[]] The array to copy values to.
1386
- * @returns {Array} Returns `array`.
1387
- */
1388
-
1389
- function copyArray$1(source, array) {
1390
- var index = -1,
1391
- length = source.length;
1392
-
1393
- array || (array = Array(length));
1394
- while (++index < length) {
1395
- array[index] = source[index];
1396
- }
1397
- return array;
1398
- }
1399
-
1400
- var _copyArray = copyArray$1;
1401
-
1402
- var isObject$4 = isObject_1;
1403
-
1404
- /** Built-in value references. */
1405
- var objectCreate = Object.create;
1406
-
1407
- /**
1408
- * The base implementation of `_.create` without support for assigning
1409
- * properties to the created object.
1410
- *
1411
- * @private
1412
- * @param {Object} proto The object to inherit from.
1413
- * @returns {Object} Returns the new object.
1414
- */
1415
- var baseCreate$1 = (function() {
1416
- function object() {}
1417
- return function(proto) {
1418
- if (!isObject$4(proto)) {
1419
- return {};
1420
- }
1421
- if (objectCreate) {
1422
- return objectCreate(proto);
1423
- }
1424
- object.prototype = proto;
1425
- var result = new object;
1426
- object.prototype = undefined;
1427
- return result;
1428
- };
1429
- }());
1430
-
1431
- var _baseCreate = baseCreate$1;
1432
-
1433
- /**
1434
- * Creates a unary function that invokes `func` with its argument transformed.
1435
- *
1436
- * @private
1437
- * @param {Function} func The function to wrap.
1438
- * @param {Function} transform The argument transform.
1439
- * @returns {Function} Returns the new function.
1440
- */
1441
-
1442
- function overArg$1(func, transform) {
1443
- return function(arg) {
1444
- return func(transform(arg));
1445
- };
1446
- }
1447
-
1448
- var _overArg = overArg$1;
1449
-
1450
- var overArg = _overArg;
1451
-
1452
- /** Built-in value references. */
1453
- var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
1454
-
1455
- var _getPrototype = getPrototype$2;
1456
-
1457
- /** Used for built-in method references. */
1458
-
1459
- var objectProto$5 = Object.prototype;
1460
-
1461
- /**
1462
- * Checks if `value` is likely a prototype object.
1463
- *
1464
- * @private
1465
- * @param {*} value The value to check.
1466
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1467
- */
1468
- function isPrototype$2(value) {
1469
- var Ctor = value && value.constructor,
1470
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
1471
-
1472
- return value === proto;
1473
- }
1474
-
1475
- var _isPrototype = isPrototype$2;
1476
-
1477
- var baseCreate = _baseCreate,
1478
- getPrototype$1 = _getPrototype,
1479
- isPrototype$1 = _isPrototype;
1480
-
1481
- /**
1482
- * Initializes an object clone.
1483
- *
1484
- * @private
1485
- * @param {Object} object The object to clone.
1486
- * @returns {Object} Returns the initialized clone.
1487
- */
1488
- function initCloneObject$1(object) {
1489
- return (typeof object.constructor == 'function' && !isPrototype$1(object))
1490
- ? baseCreate(getPrototype$1(object))
1491
- : {};
1492
- }
1493
-
1494
- var _initCloneObject = initCloneObject$1;
1495
-
1496
- /**
1497
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1498
- * and has a `typeof` result of "object".
1499
- *
1500
- * @static
1501
- * @memberOf _
1502
- * @since 4.0.0
1503
- * @category Lang
1504
- * @param {*} value The value to check.
1505
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1506
- * @example
1507
- *
1508
- * _.isObjectLike({});
1509
- * // => true
1510
- *
1511
- * _.isObjectLike([1, 2, 3]);
1512
- * // => true
1513
- *
1514
- * _.isObjectLike(_.noop);
1515
- * // => false
1516
- *
1517
- * _.isObjectLike(null);
1518
- * // => false
1519
- */
1520
-
1521
- function isObjectLike$5(value) {
1522
- return value != null && typeof value == 'object';
1523
- }
1524
-
1525
- var isObjectLike_1 = isObjectLike$5;
1526
-
1527
- var baseGetTag$2 = _baseGetTag,
1528
- isObjectLike$4 = isObjectLike_1;
1529
-
1530
- /** `Object#toString` result references. */
1531
- var argsTag$1 = '[object Arguments]';
1532
-
1533
- /**
1534
- * The base implementation of `_.isArguments`.
1535
- *
1536
- * @private
1537
- * @param {*} value The value to check.
1538
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1539
- */
1540
- function baseIsArguments$1(value) {
1541
- return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$1;
1542
- }
1543
-
1544
- var _baseIsArguments = baseIsArguments$1;
1545
-
1546
- var baseIsArguments = _baseIsArguments,
1547
- isObjectLike$3 = isObjectLike_1;
1548
-
1549
- /** Used for built-in method references. */
1550
- var objectProto$4 = Object.prototype;
1551
-
1552
- /** Used to check objects for own properties. */
1553
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
1554
-
1555
- /** Built-in value references. */
1556
- var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
1557
-
1558
- /**
1559
- * Checks if `value` is likely an `arguments` object.
1560
- *
1561
- * @static
1562
- * @memberOf _
1563
- * @since 0.1.0
1564
- * @category Lang
1565
- * @param {*} value The value to check.
1566
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1567
- * else `false`.
1568
- * @example
1569
- *
1570
- * _.isArguments(function() { return arguments; }());
1571
- * // => true
1572
- *
1573
- * _.isArguments([1, 2, 3]);
1574
- * // => false
1575
- */
1576
- var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1577
- return isObjectLike$3(value) && hasOwnProperty$4.call(value, 'callee') &&
1578
- !propertyIsEnumerable.call(value, 'callee');
1579
- };
1580
-
1581
- var isArguments_1 = isArguments$2;
1582
-
1583
- /**
1584
- * Checks if `value` is classified as an `Array` object.
1585
- *
1586
- * @static
1587
- * @memberOf _
1588
- * @since 0.1.0
1589
- * @category Lang
1590
- * @param {*} value The value to check.
1591
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1592
- * @example
1593
- *
1594
- * _.isArray([1, 2, 3]);
1595
- * // => true
1596
- *
1597
- * _.isArray(document.body.children);
1598
- * // => false
1599
- *
1600
- * _.isArray('abc');
1601
- * // => false
1602
- *
1603
- * _.isArray(_.noop);
1604
- * // => false
1605
- */
1606
-
1607
- var isArray$2 = Array.isArray;
1608
-
1609
- var isArray_1 = isArray$2;
1610
-
1611
- /** Used as references for various `Number` constants. */
1612
-
1613
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
1614
-
1615
- /**
1616
- * Checks if `value` is a valid array-like length.
1617
- *
1618
- * **Note:** This method is loosely based on
1619
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1620
- *
1621
- * @static
1622
- * @memberOf _
1623
- * @since 4.0.0
1624
- * @category Lang
1625
- * @param {*} value The value to check.
1626
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1627
- * @example
1628
- *
1629
- * _.isLength(3);
1630
- * // => true
1631
- *
1632
- * _.isLength(Number.MIN_VALUE);
1633
- * // => false
1634
- *
1635
- * _.isLength(Infinity);
1636
- * // => false
1637
- *
1638
- * _.isLength('3');
1639
- * // => false
1640
- */
1641
- function isLength$2(value) {
1642
- return typeof value == 'number' &&
1643
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
1644
- }
1645
-
1646
- var isLength_1 = isLength$2;
1647
-
1648
- var isFunction$1 = isFunction_1,
1649
- isLength$1 = isLength_1;
1650
-
1651
- /**
1652
- * Checks if `value` is array-like. A value is considered array-like if it's
1653
- * not a function and has a `value.length` that's an integer greater than or
1654
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1655
- *
1656
- * @static
1657
- * @memberOf _
1658
- * @since 4.0.0
1659
- * @category Lang
1660
- * @param {*} value The value to check.
1661
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1662
- * @example
1663
- *
1664
- * _.isArrayLike([1, 2, 3]);
1665
- * // => true
1666
- *
1667
- * _.isArrayLike(document.body.children);
1668
- * // => true
1669
- *
1670
- * _.isArrayLike('abc');
1671
- * // => true
1672
- *
1673
- * _.isArrayLike(_.noop);
1674
- * // => false
1675
- */
1676
- function isArrayLike$3(value) {
1677
- return value != null && isLength$1(value.length) && !isFunction$1(value);
1678
- }
1679
-
1680
- var isArrayLike_1 = isArrayLike$3;
1681
-
1682
- var isArrayLike$2 = isArrayLike_1,
1683
- isObjectLike$2 = isObjectLike_1;
1684
-
1685
- /**
1686
- * This method is like `_.isArrayLike` except that it also checks if `value`
1687
- * is an object.
1688
- *
1689
- * @static
1690
- * @memberOf _
1691
- * @since 4.0.0
1692
- * @category Lang
1693
- * @param {*} value The value to check.
1694
- * @returns {boolean} Returns `true` if `value` is an array-like object,
1695
- * else `false`.
1696
- * @example
1697
- *
1698
- * _.isArrayLikeObject([1, 2, 3]);
1699
- * // => true
1700
- *
1701
- * _.isArrayLikeObject(document.body.children);
1702
- * // => true
1703
- *
1704
- * _.isArrayLikeObject('abc');
1705
- * // => false
1706
- *
1707
- * _.isArrayLikeObject(_.noop);
1708
- * // => false
1709
- */
1710
- function isArrayLikeObject$1(value) {
1711
- return isObjectLike$2(value) && isArrayLike$2(value);
1712
- }
1713
-
1714
- var isArrayLikeObject_1 = isArrayLikeObject$1;
1715
-
1716
- var isBuffer$2 = {exports: {}};
1717
-
1718
- /**
1719
- * This method returns `false`.
1720
- *
1721
- * @static
1722
- * @memberOf _
1723
- * @since 4.13.0
1724
- * @category Util
1725
- * @returns {boolean} Returns `false`.
1726
- * @example
1727
- *
1728
- * _.times(2, _.stubFalse);
1729
- * // => [false, false]
1730
- */
1731
-
1732
- function stubFalse() {
1733
- return false;
1734
- }
1735
-
1736
- var stubFalse_1 = stubFalse;
1737
-
1738
- (function (module, exports) {
1739
- var root = _root,
1740
- stubFalse = stubFalse_1;
1741
-
1742
- /** Detect free variable `exports`. */
1743
- var freeExports = exports && !exports.nodeType && exports;
1744
-
1745
- /** Detect free variable `module`. */
1746
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1747
-
1748
- /** Detect the popular CommonJS extension `module.exports`. */
1749
- var moduleExports = freeModule && freeModule.exports === freeExports;
1750
-
1751
- /** Built-in value references. */
1752
- var Buffer = moduleExports ? root.Buffer : undefined;
1753
-
1754
- /* Built-in method references for those with the same name as other `lodash` methods. */
1755
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
1756
-
1757
- /**
1758
- * Checks if `value` is a buffer.
1759
- *
1760
- * @static
1761
- * @memberOf _
1762
- * @since 4.3.0
1763
- * @category Lang
1764
- * @param {*} value The value to check.
1765
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1766
- * @example
1767
- *
1768
- * _.isBuffer(new Buffer(2));
1769
- * // => true
1770
- *
1771
- * _.isBuffer(new Uint8Array(2));
1772
- * // => false
1773
- */
1774
- var isBuffer = nativeIsBuffer || stubFalse;
1775
-
1776
- module.exports = isBuffer;
1777
- }(isBuffer$2, isBuffer$2.exports));
1778
-
1779
- var baseGetTag$1 = _baseGetTag,
1780
- getPrototype = _getPrototype,
1781
- isObjectLike$1 = isObjectLike_1;
1782
-
1783
- /** `Object#toString` result references. */
1784
- var objectTag$1 = '[object Object]';
1785
-
1786
- /** Used for built-in method references. */
1787
- var funcProto = Function.prototype,
1788
- objectProto$3 = Object.prototype;
1789
-
1790
- /** Used to resolve the decompiled source of functions. */
1791
- var funcToString = funcProto.toString;
1792
-
1793
- /** Used to check objects for own properties. */
1794
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
1795
-
1796
- /** Used to infer the `Object` constructor. */
1797
- var objectCtorString = funcToString.call(Object);
1798
-
1799
- /**
1800
- * Checks if `value` is a plain object, that is, an object created by the
1801
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
1802
- *
1803
- * @static
1804
- * @memberOf _
1805
- * @since 0.8.0
1806
- * @category Lang
1807
- * @param {*} value The value to check.
1808
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
1809
- * @example
1810
- *
1811
- * function Foo() {
1812
- * this.a = 1;
1813
- * }
1814
- *
1815
- * _.isPlainObject(new Foo);
1816
- * // => false
1817
- *
1818
- * _.isPlainObject([1, 2, 3]);
1819
- * // => false
1820
- *
1821
- * _.isPlainObject({ 'x': 0, 'y': 0 });
1822
- * // => true
1823
- *
1824
- * _.isPlainObject(Object.create(null));
1825
- * // => true
1826
- */
1827
- function isPlainObject$1(value) {
1828
- if (!isObjectLike$1(value) || baseGetTag$1(value) != objectTag$1) {
1829
- return false;
1830
- }
1831
- var proto = getPrototype(value);
1832
- if (proto === null) {
1833
- return true;
1834
- }
1835
- var Ctor = hasOwnProperty$3.call(proto, 'constructor') && proto.constructor;
1836
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
1837
- funcToString.call(Ctor) == objectCtorString;
1838
- }
1839
-
1840
- var isPlainObject_1 = isPlainObject$1;
1841
-
1842
- var baseGetTag = _baseGetTag,
1843
- isLength = isLength_1,
1844
- isObjectLike = isObjectLike_1;
1845
-
1846
- /** `Object#toString` result references. */
1847
- var argsTag = '[object Arguments]',
1848
- arrayTag = '[object Array]',
1849
- boolTag = '[object Boolean]',
1850
- dateTag = '[object Date]',
1851
- errorTag = '[object Error]',
1852
- funcTag = '[object Function]',
1853
- mapTag = '[object Map]',
1854
- numberTag = '[object Number]',
1855
- objectTag = '[object Object]',
1856
- regexpTag = '[object RegExp]',
1857
- setTag = '[object Set]',
1858
- stringTag = '[object String]',
1859
- weakMapTag = '[object WeakMap]';
1860
-
1861
- var arrayBufferTag = '[object ArrayBuffer]',
1862
- dataViewTag = '[object DataView]',
1863
- float32Tag = '[object Float32Array]',
1864
- float64Tag = '[object Float64Array]',
1865
- int8Tag = '[object Int8Array]',
1866
- int16Tag = '[object Int16Array]',
1867
- int32Tag = '[object Int32Array]',
1868
- uint8Tag = '[object Uint8Array]',
1869
- uint8ClampedTag = '[object Uint8ClampedArray]',
1870
- uint16Tag = '[object Uint16Array]',
1871
- uint32Tag = '[object Uint32Array]';
1872
-
1873
- /** Used to identify `toStringTag` values of typed arrays. */
1874
- var typedArrayTags = {};
1875
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1876
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1877
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1878
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1879
- typedArrayTags[uint32Tag] = true;
1880
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
1881
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1882
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
1883
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1884
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
1885
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
1886
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
1887
- typedArrayTags[weakMapTag] = false;
1888
-
1889
- /**
1890
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
1891
- *
1892
- * @private
1893
- * @param {*} value The value to check.
1894
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1895
- */
1896
- function baseIsTypedArray$1(value) {
1897
- return isObjectLike(value) &&
1898
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
1899
- }
1900
-
1901
- var _baseIsTypedArray = baseIsTypedArray$1;
1902
-
1903
- /**
1904
- * The base implementation of `_.unary` without support for storing metadata.
1905
- *
1906
- * @private
1907
- * @param {Function} func The function to cap arguments for.
1908
- * @returns {Function} Returns the new capped function.
1909
- */
1910
-
1911
- function baseUnary$1(func) {
1912
- return function(value) {
1913
- return func(value);
1914
- };
1915
- }
1916
-
1917
- var _baseUnary = baseUnary$1;
1918
-
1919
- var _nodeUtil = {exports: {}};
1920
-
1921
- (function (module, exports) {
1922
- var freeGlobal = _freeGlobal;
1923
-
1924
- /** Detect free variable `exports`. */
1925
- var freeExports = exports && !exports.nodeType && exports;
1926
-
1927
- /** Detect free variable `module`. */
1928
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1929
-
1930
- /** Detect the popular CommonJS extension `module.exports`. */
1931
- var moduleExports = freeModule && freeModule.exports === freeExports;
1932
-
1933
- /** Detect free variable `process` from Node.js. */
1934
- var freeProcess = moduleExports && freeGlobal.process;
1935
-
1936
- /** Used to access faster Node.js helpers. */
1937
- var nodeUtil = (function() {
1938
- try {
1939
- // Use `util.types` for Node.js 10+.
1940
- var types = freeModule && freeModule.require && freeModule.require('util').types;
1941
-
1942
- if (types) {
1943
- return types;
1944
- }
1945
-
1946
- // Legacy `process.binding('util')` for Node.js < 10.
1947
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
1948
- } catch (e) {}
1949
- }());
1950
-
1951
- module.exports = nodeUtil;
1952
- }(_nodeUtil, _nodeUtil.exports));
1953
-
1954
- var baseIsTypedArray = _baseIsTypedArray,
1955
- baseUnary = _baseUnary,
1956
- nodeUtil = _nodeUtil.exports;
1957
-
1958
- /* Node.js helper references. */
1959
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1960
-
1961
- /**
1962
- * Checks if `value` is classified as a typed array.
1963
- *
1964
- * @static
1965
- * @memberOf _
1966
- * @since 3.0.0
1967
- * @category Lang
1968
- * @param {*} value The value to check.
1969
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1970
- * @example
1971
- *
1972
- * _.isTypedArray(new Uint8Array);
1973
- * // => true
1974
- *
1975
- * _.isTypedArray([]);
1976
- * // => false
1977
- */
1978
- var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1979
-
1980
- var isTypedArray_1 = isTypedArray$2;
1981
-
1982
- /**
1983
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
1984
- *
1985
- * @private
1986
- * @param {Object} object The object to query.
1987
- * @param {string} key The key of the property to get.
1988
- * @returns {*} Returns the property value.
1989
- */
1990
-
1991
- function safeGet$2(object, key) {
1992
- if (key === 'constructor' && typeof object[key] === 'function') {
1993
- return;
1994
- }
1995
-
1996
- if (key == '__proto__') {
1997
- return;
1998
- }
1999
-
2000
- return object[key];
2001
- }
2002
-
2003
- var _safeGet = safeGet$2;
2004
-
2005
- var baseAssignValue$1 = _baseAssignValue,
2006
- eq$1 = eq_1;
2007
-
2008
- /** Used for built-in method references. */
2009
- var objectProto$2 = Object.prototype;
2010
-
2011
- /** Used to check objects for own properties. */
2012
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
2013
-
2014
- /**
2015
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
2016
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
2017
- * for equality comparisons.
2018
- *
2019
- * @private
2020
- * @param {Object} object The object to modify.
2021
- * @param {string} key The key of the property to assign.
2022
- * @param {*} value The value to assign.
2023
- */
2024
- function assignValue$1(object, key, value) {
2025
- var objValue = object[key];
2026
- if (!(hasOwnProperty$2.call(object, key) && eq$1(objValue, value)) ||
2027
- (value === undefined && !(key in object))) {
2028
- baseAssignValue$1(object, key, value);
2029
- }
2030
- }
2031
-
2032
- var _assignValue = assignValue$1;
2033
-
2034
- var assignValue = _assignValue,
2035
- baseAssignValue = _baseAssignValue;
2036
-
2037
- /**
2038
- * Copies properties of `source` to `object`.
2039
- *
2040
- * @private
2041
- * @param {Object} source The object to copy properties from.
2042
- * @param {Array} props The property identifiers to copy.
2043
- * @param {Object} [object={}] The object to copy properties to.
2044
- * @param {Function} [customizer] The function to customize copied values.
2045
- * @returns {Object} Returns `object`.
2046
- */
2047
- function copyObject$1(source, props, object, customizer) {
2048
- var isNew = !object;
2049
- object || (object = {});
2050
-
2051
- var index = -1,
2052
- length = props.length;
2053
-
2054
- while (++index < length) {
2055
- var key = props[index];
2056
-
2057
- var newValue = customizer
2058
- ? customizer(object[key], source[key], key, object, source)
2059
- : undefined;
2060
-
2061
- if (newValue === undefined) {
2062
- newValue = source[key];
2063
- }
2064
- if (isNew) {
2065
- baseAssignValue(object, key, newValue);
2066
- } else {
2067
- assignValue(object, key, newValue);
2068
- }
2069
- }
2070
- return object;
2071
- }
2072
-
2073
- var _copyObject = copyObject$1;
2074
-
2075
- /**
2076
- * The base implementation of `_.times` without support for iteratee shorthands
2077
- * or max array length checks.
2078
- *
2079
- * @private
2080
- * @param {number} n The number of times to invoke `iteratee`.
2081
- * @param {Function} iteratee The function invoked per iteration.
2082
- * @returns {Array} Returns the array of results.
2083
- */
2084
-
2085
- function baseTimes$1(n, iteratee) {
2086
- var index = -1,
2087
- result = Array(n);
2088
-
2089
- while (++index < n) {
2090
- result[index] = iteratee(index);
2091
- }
2092
- return result;
2093
- }
2094
-
2095
- var _baseTimes = baseTimes$1;
2096
-
2097
- /** Used as references for various `Number` constants. */
2098
-
2099
- var MAX_SAFE_INTEGER = 9007199254740991;
2100
-
2101
- /** Used to detect unsigned integer values. */
2102
- var reIsUint = /^(?:0|[1-9]\d*)$/;
2103
-
2104
- /**
2105
- * Checks if `value` is a valid array-like index.
2106
- *
2107
- * @private
2108
- * @param {*} value The value to check.
2109
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
2110
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
2111
- */
2112
- function isIndex$2(value, length) {
2113
- var type = typeof value;
2114
- length = length == null ? MAX_SAFE_INTEGER : length;
2115
-
2116
- return !!length &&
2117
- (type == 'number' ||
2118
- (type != 'symbol' && reIsUint.test(value))) &&
2119
- (value > -1 && value % 1 == 0 && value < length);
2120
- }
2121
-
2122
- var _isIndex = isIndex$2;
2123
-
2124
- var baseTimes = _baseTimes,
2125
- isArguments$1 = isArguments_1,
2126
- isArray$1 = isArray_1,
2127
- isBuffer$1 = isBuffer$2.exports,
2128
- isIndex$1 = _isIndex,
2129
- isTypedArray$1 = isTypedArray_1;
2130
-
2131
- /** Used for built-in method references. */
2132
- var objectProto$1 = Object.prototype;
2133
-
2134
- /** Used to check objects for own properties. */
2135
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
2136
-
2137
- /**
2138
- * Creates an array of the enumerable property names of the array-like `value`.
2139
- *
2140
- * @private
2141
- * @param {*} value The value to query.
2142
- * @param {boolean} inherited Specify returning inherited property names.
2143
- * @returns {Array} Returns the array of property names.
2144
- */
2145
- function arrayLikeKeys$1(value, inherited) {
2146
- var isArr = isArray$1(value),
2147
- isArg = !isArr && isArguments$1(value),
2148
- isBuff = !isArr && !isArg && isBuffer$1(value),
2149
- isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
2150
- skipIndexes = isArr || isArg || isBuff || isType,
2151
- result = skipIndexes ? baseTimes(value.length, String) : [],
2152
- length = result.length;
2153
-
2154
- for (var key in value) {
2155
- if ((inherited || hasOwnProperty$1.call(value, key)) &&
2156
- !(skipIndexes && (
2157
- // Safari 9 has enumerable `arguments.length` in strict mode.
2158
- key == 'length' ||
2159
- // Node.js 0.10 has enumerable non-index properties on buffers.
2160
- (isBuff && (key == 'offset' || key == 'parent')) ||
2161
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
2162
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
2163
- // Skip index properties.
2164
- isIndex$1(key, length)
2165
- ))) {
2166
- result.push(key);
2167
- }
2168
- }
2169
- return result;
2170
- }
2171
-
2172
- var _arrayLikeKeys = arrayLikeKeys$1;
2173
-
2174
- /**
2175
- * This function is like
2176
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
2177
- * except that it includes inherited enumerable properties.
2178
- *
2179
- * @private
2180
- * @param {Object} object The object to query.
2181
- * @returns {Array} Returns the array of property names.
2182
- */
2183
-
2184
- function nativeKeysIn$1(object) {
2185
- var result = [];
2186
- if (object != null) {
2187
- for (var key in Object(object)) {
2188
- result.push(key);
2189
- }
2190
- }
2191
- return result;
2192
- }
2193
-
2194
- var _nativeKeysIn = nativeKeysIn$1;
2195
-
2196
- var isObject$3 = isObject_1,
2197
- isPrototype = _isPrototype,
2198
- nativeKeysIn = _nativeKeysIn;
2199
-
2200
- /** Used for built-in method references. */
2201
- var objectProto = Object.prototype;
2202
-
2203
- /** Used to check objects for own properties. */
2204
- var hasOwnProperty = objectProto.hasOwnProperty;
2205
-
2206
- /**
2207
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
2208
- *
2209
- * @private
2210
- * @param {Object} object The object to query.
2211
- * @returns {Array} Returns the array of property names.
2212
- */
2213
- function baseKeysIn$1(object) {
2214
- if (!isObject$3(object)) {
2215
- return nativeKeysIn(object);
2216
- }
2217
- var isProto = isPrototype(object),
2218
- result = [];
2219
-
2220
- for (var key in object) {
2221
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
2222
- result.push(key);
2223
- }
2224
- }
2225
- return result;
2226
- }
2227
-
2228
- var _baseKeysIn = baseKeysIn$1;
2229
-
2230
- var arrayLikeKeys = _arrayLikeKeys,
2231
- baseKeysIn = _baseKeysIn,
2232
- isArrayLike$1 = isArrayLike_1;
2233
-
2234
- /**
2235
- * Creates an array of the own and inherited enumerable property names of `object`.
2236
- *
2237
- * **Note:** Non-object values are coerced to objects.
2238
- *
2239
- * @static
2240
- * @memberOf _
2241
- * @since 3.0.0
2242
- * @category Object
2243
- * @param {Object} object The object to query.
2244
- * @returns {Array} Returns the array of property names.
2245
- * @example
2246
- *
2247
- * function Foo() {
2248
- * this.a = 1;
2249
- * this.b = 2;
2250
- * }
2251
- *
2252
- * Foo.prototype.c = 3;
2253
- *
2254
- * _.keysIn(new Foo);
2255
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
2256
- */
2257
- function keysIn$2(object) {
2258
- return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
2259
- }
2260
-
2261
- var keysIn_1 = keysIn$2;
2262
-
2263
- var copyObject = _copyObject,
2264
- keysIn$1 = keysIn_1;
2265
-
2266
- /**
2267
- * Converts `value` to a plain object flattening inherited enumerable string
2268
- * keyed properties of `value` to own properties of the plain object.
2269
- *
2270
- * @static
2271
- * @memberOf _
2272
- * @since 3.0.0
2273
- * @category Lang
2274
- * @param {*} value The value to convert.
2275
- * @returns {Object} Returns the converted plain object.
2276
- * @example
2277
- *
2278
- * function Foo() {
2279
- * this.b = 2;
2280
- * }
2281
- *
2282
- * Foo.prototype.c = 3;
2283
- *
2284
- * _.assign({ 'a': 1 }, new Foo);
2285
- * // => { 'a': 1, 'b': 2 }
2286
- *
2287
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
2288
- * // => { 'a': 1, 'b': 2, 'c': 3 }
2289
- */
2290
- function toPlainObject$1(value) {
2291
- return copyObject(value, keysIn$1(value));
2292
- }
2293
-
2294
- var toPlainObject_1 = toPlainObject$1;
2295
-
2296
- var assignMergeValue$1 = _assignMergeValue,
2297
- cloneBuffer = _cloneBuffer.exports,
2298
- cloneTypedArray = _cloneTypedArray,
2299
- copyArray = _copyArray,
2300
- initCloneObject = _initCloneObject,
2301
- isArguments = isArguments_1,
2302
- isArray = isArray_1,
2303
- isArrayLikeObject = isArrayLikeObject_1,
2304
- isBuffer = isBuffer$2.exports,
2305
- isFunction = isFunction_1,
2306
- isObject$2 = isObject_1,
2307
- isPlainObject = isPlainObject_1,
2308
- isTypedArray = isTypedArray_1,
2309
- safeGet$1 = _safeGet,
2310
- toPlainObject = toPlainObject_1;
2311
-
2312
- /**
2313
- * A specialized version of `baseMerge` for arrays and objects which performs
2314
- * deep merges and tracks traversed objects enabling objects with circular
2315
- * references to be merged.
2316
- *
2317
- * @private
2318
- * @param {Object} object The destination object.
2319
- * @param {Object} source The source object.
2320
- * @param {string} key The key of the value to merge.
2321
- * @param {number} srcIndex The index of `source`.
2322
- * @param {Function} mergeFunc The function to merge values.
2323
- * @param {Function} [customizer] The function to customize assigned values.
2324
- * @param {Object} [stack] Tracks traversed source values and their merged
2325
- * counterparts.
2326
- */
2327
- function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
2328
- var objValue = safeGet$1(object, key),
2329
- srcValue = safeGet$1(source, key),
2330
- stacked = stack.get(srcValue);
2331
-
2332
- if (stacked) {
2333
- assignMergeValue$1(object, key, stacked);
2334
- return;
2335
- }
2336
- var newValue = customizer
2337
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
2338
- : undefined;
2339
-
2340
- var isCommon = newValue === undefined;
2341
-
2342
- if (isCommon) {
2343
- var isArr = isArray(srcValue),
2344
- isBuff = !isArr && isBuffer(srcValue),
2345
- isTyped = !isArr && !isBuff && isTypedArray(srcValue);
2346
-
2347
- newValue = srcValue;
2348
- if (isArr || isBuff || isTyped) {
2349
- if (isArray(objValue)) {
2350
- newValue = objValue;
2351
- }
2352
- else if (isArrayLikeObject(objValue)) {
2353
- newValue = copyArray(objValue);
2354
- }
2355
- else if (isBuff) {
2356
- isCommon = false;
2357
- newValue = cloneBuffer(srcValue, true);
2358
- }
2359
- else if (isTyped) {
2360
- isCommon = false;
2361
- newValue = cloneTypedArray(srcValue, true);
2362
- }
2363
- else {
2364
- newValue = [];
2365
- }
2366
- }
2367
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
2368
- newValue = objValue;
2369
- if (isArguments(objValue)) {
2370
- newValue = toPlainObject(objValue);
2371
- }
2372
- else if (!isObject$2(objValue) || isFunction(objValue)) {
2373
- newValue = initCloneObject(srcValue);
2374
- }
2375
- }
2376
- else {
2377
- isCommon = false;
2378
- }
2379
- }
2380
- if (isCommon) {
2381
- // Recursively merge objects and arrays (susceptible to call stack limits).
2382
- stack.set(srcValue, newValue);
2383
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
2384
- stack['delete'](srcValue);
2385
- }
2386
- assignMergeValue$1(object, key, newValue);
2387
- }
2388
-
2389
- var _baseMergeDeep = baseMergeDeep$1;
2390
-
2391
- var Stack = _Stack,
2392
- assignMergeValue = _assignMergeValue,
2393
- baseFor = _baseFor,
2394
- baseMergeDeep = _baseMergeDeep,
2395
- isObject$1 = isObject_1,
2396
- keysIn = keysIn_1,
2397
- safeGet = _safeGet;
2398
-
2399
- /**
2400
- * The base implementation of `_.merge` without support for multiple sources.
2401
- *
2402
- * @private
2403
- * @param {Object} object The destination object.
2404
- * @param {Object} source The source object.
2405
- * @param {number} srcIndex The index of `source`.
2406
- * @param {Function} [customizer] The function to customize merged values.
2407
- * @param {Object} [stack] Tracks traversed source values and their merged
2408
- * counterparts.
2409
- */
2410
- function baseMerge$1(object, source, srcIndex, customizer, stack) {
2411
- if (object === source) {
2412
- return;
2413
- }
2414
- baseFor(source, function(srcValue, key) {
2415
- stack || (stack = new Stack);
2416
- if (isObject$1(srcValue)) {
2417
- baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
2418
- }
2419
- else {
2420
- var newValue = customizer
2421
- ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
2422
- : undefined;
2423
-
2424
- if (newValue === undefined) {
2425
- newValue = srcValue;
2426
- }
2427
- assignMergeValue(object, key, newValue);
2428
- }
2429
- }, keysIn);
2430
- }
2431
-
2432
- var _baseMerge = baseMerge$1;
2433
-
2434
- /**
2435
- * This method returns the first argument it receives.
2436
- *
2437
- * @static
2438
- * @since 0.1.0
2439
- * @memberOf _
2440
- * @category Util
2441
- * @param {*} value Any value.
2442
- * @returns {*} Returns `value`.
2443
- * @example
2444
- *
2445
- * var object = { 'a': 1 };
2446
- *
2447
- * console.log(_.identity(object) === object);
2448
- * // => true
2449
- */
2450
-
2451
- function identity$2(value) {
2452
- return value;
2453
- }
2454
-
2455
- var identity_1 = identity$2;
2456
-
2457
- /**
2458
- * A faster alternative to `Function#apply`, this function invokes `func`
2459
- * with the `this` binding of `thisArg` and the arguments of `args`.
2460
- *
2461
- * @private
2462
- * @param {Function} func The function to invoke.
2463
- * @param {*} thisArg The `this` binding of `func`.
2464
- * @param {Array} args The arguments to invoke `func` with.
2465
- * @returns {*} Returns the result of `func`.
2466
- */
2467
-
2468
- function apply$1(func, thisArg, args) {
2469
- switch (args.length) {
2470
- case 0: return func.call(thisArg);
2471
- case 1: return func.call(thisArg, args[0]);
2472
- case 2: return func.call(thisArg, args[0], args[1]);
2473
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
2474
- }
2475
- return func.apply(thisArg, args);
2476
- }
2477
-
2478
- var _apply = apply$1;
2479
-
2480
- var apply = _apply;
2481
-
2482
- /* Built-in method references for those with the same name as other `lodash` methods. */
2483
- var nativeMax = Math.max;
2484
-
2485
- /**
2486
- * A specialized version of `baseRest` which transforms the rest array.
2487
- *
2488
- * @private
2489
- * @param {Function} func The function to apply a rest parameter to.
2490
- * @param {number} [start=func.length-1] The start position of the rest parameter.
2491
- * @param {Function} transform The rest array transform.
2492
- * @returns {Function} Returns the new function.
2493
- */
2494
- function overRest$1(func, start, transform) {
2495
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
2496
- return function() {
2497
- var args = arguments,
2498
- index = -1,
2499
- length = nativeMax(args.length - start, 0),
2500
- array = Array(length);
2501
-
2502
- while (++index < length) {
2503
- array[index] = args[start + index];
2504
- }
2505
- index = -1;
2506
- var otherArgs = Array(start + 1);
2507
- while (++index < start) {
2508
- otherArgs[index] = args[index];
2509
- }
2510
- otherArgs[start] = transform(array);
2511
- return apply(func, this, otherArgs);
2512
- };
2513
- }
2514
-
2515
- var _overRest = overRest$1;
2516
-
2517
- /**
2518
- * Creates a function that returns `value`.
2519
- *
2520
- * @static
2521
- * @memberOf _
2522
- * @since 2.4.0
2523
- * @category Util
2524
- * @param {*} value The value to return from the new function.
2525
- * @returns {Function} Returns the new constant function.
2526
- * @example
2527
- *
2528
- * var objects = _.times(2, _.constant({ 'a': 1 }));
2529
- *
2530
- * console.log(objects);
2531
- * // => [{ 'a': 1 }, { 'a': 1 }]
2532
- *
2533
- * console.log(objects[0] === objects[1]);
2534
- * // => true
2535
- */
2536
-
2537
- function constant$1(value) {
2538
- return function() {
2539
- return value;
2540
- };
2541
- }
2542
-
2543
- var constant_1 = constant$1;
2544
-
2545
- var constant = constant_1,
2546
- defineProperty = _defineProperty,
2547
- identity$1 = identity_1;
2548
-
2549
- /**
2550
- * The base implementation of `setToString` without support for hot loop shorting.
2551
- *
2552
- * @private
2553
- * @param {Function} func The function to modify.
2554
- * @param {Function} string The `toString` result.
2555
- * @returns {Function} Returns `func`.
2556
- */
2557
- var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
2558
- return defineProperty(func, 'toString', {
2559
- 'configurable': true,
2560
- 'enumerable': false,
2561
- 'value': constant(string),
2562
- 'writable': true
2563
- });
2564
- };
2565
-
2566
- var _baseSetToString = baseSetToString$1;
2567
-
2568
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
2569
-
2570
- var HOT_COUNT = 800,
2571
- HOT_SPAN = 16;
2572
-
2573
- /* Built-in method references for those with the same name as other `lodash` methods. */
2574
- var nativeNow = Date.now;
2575
-
2576
- /**
2577
- * Creates a function that'll short out and invoke `identity` instead
2578
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
2579
- * milliseconds.
2580
- *
2581
- * @private
2582
- * @param {Function} func The function to restrict.
2583
- * @returns {Function} Returns the new shortable function.
2584
- */
2585
- function shortOut$1(func) {
2586
- var count = 0,
2587
- lastCalled = 0;
2588
-
2589
- return function() {
2590
- var stamp = nativeNow(),
2591
- remaining = HOT_SPAN - (stamp - lastCalled);
2592
-
2593
- lastCalled = stamp;
2594
- if (remaining > 0) {
2595
- if (++count >= HOT_COUNT) {
2596
- return arguments[0];
2597
- }
2598
- } else {
2599
- count = 0;
2600
- }
2601
- return func.apply(undefined, arguments);
2602
- };
2603
- }
2604
-
2605
- var _shortOut = shortOut$1;
2606
-
2607
- var baseSetToString = _baseSetToString,
2608
- shortOut = _shortOut;
2609
-
2610
- /**
2611
- * Sets the `toString` method of `func` to return `string`.
2612
- *
2613
- * @private
2614
- * @param {Function} func The function to modify.
2615
- * @param {Function} string The `toString` result.
2616
- * @returns {Function} Returns `func`.
2617
- */
2618
- var setToString$1 = shortOut(baseSetToString);
2619
-
2620
- var _setToString = setToString$1;
2621
-
2622
- var identity = identity_1,
2623
- overRest = _overRest,
2624
- setToString = _setToString;
2625
-
2626
- /**
2627
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
2628
- *
2629
- * @private
2630
- * @param {Function} func The function to apply a rest parameter to.
2631
- * @param {number} [start=func.length-1] The start position of the rest parameter.
2632
- * @returns {Function} Returns the new function.
2633
- */
2634
- function baseRest$1(func, start) {
2635
- return setToString(overRest(func, start, identity), func + '');
2636
- }
2637
-
2638
- var _baseRest = baseRest$1;
2639
-
2640
- var eq = eq_1,
2641
- isArrayLike = isArrayLike_1,
2642
- isIndex = _isIndex,
2643
- isObject = isObject_1;
2644
-
2645
- /**
2646
- * Checks if the given arguments are from an iteratee call.
2647
- *
2648
- * @private
2649
- * @param {*} value The potential iteratee value argument.
2650
- * @param {*} index The potential iteratee index or key argument.
2651
- * @param {*} object The potential iteratee object argument.
2652
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
2653
- * else `false`.
2654
- */
2655
- function isIterateeCall$1(value, index, object) {
2656
- if (!isObject(object)) {
2657
- return false;
2658
- }
2659
- var type = typeof index;
2660
- if (type == 'number'
2661
- ? (isArrayLike(object) && isIndex(index, object.length))
2662
- : (type == 'string' && index in object)
2663
- ) {
2664
- return eq(object[index], value);
2665
- }
2666
- return false;
2667
- }
2668
-
2669
- var _isIterateeCall = isIterateeCall$1;
2670
-
2671
- var baseRest = _baseRest,
2672
- isIterateeCall = _isIterateeCall;
2673
-
2674
- /**
2675
- * Creates a function like `_.assign`.
2676
- *
2677
- * @private
2678
- * @param {Function} assigner The function to assign values.
2679
- * @returns {Function} Returns the new assigner function.
2680
- */
2681
- function createAssigner$1(assigner) {
2682
- return baseRest(function(object, sources) {
2683
- var index = -1,
2684
- length = sources.length,
2685
- customizer = length > 1 ? sources[length - 1] : undefined,
2686
- guard = length > 2 ? sources[2] : undefined;
2687
-
2688
- customizer = (assigner.length > 3 && typeof customizer == 'function')
2689
- ? (length--, customizer)
2690
- : undefined;
2691
-
2692
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
2693
- customizer = length < 3 ? undefined : customizer;
2694
- length = 1;
2695
- }
2696
- object = Object(object);
2697
- while (++index < length) {
2698
- var source = sources[index];
2699
- if (source) {
2700
- assigner(object, source, index, customizer);
2701
- }
2702
- }
2703
- return object;
2704
- });
2705
- }
2706
-
2707
- var _createAssigner = createAssigner$1;
2708
-
2709
- var baseMerge = _baseMerge,
2710
- createAssigner = _createAssigner;
2711
-
2712
- /**
2713
- * This method is like `_.assign` except that it recursively merges own and
2714
- * inherited enumerable string keyed properties of source objects into the
2715
- * destination object. Source properties that resolve to `undefined` are
2716
- * skipped if a destination value exists. Array and plain object properties
2717
- * are merged recursively. Other objects and value types are overridden by
2718
- * assignment. Source objects are applied from left to right. Subsequent
2719
- * sources overwrite property assignments of previous sources.
2720
- *
2721
- * **Note:** This method mutates `object`.
2722
- *
2723
- * @static
2724
- * @memberOf _
2725
- * @since 0.5.0
2726
- * @category Object
2727
- * @param {Object} object The destination object.
2728
- * @param {...Object} [sources] The source objects.
2729
- * @returns {Object} Returns `object`.
2730
- * @example
2731
- *
2732
- * var object = {
2733
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
2734
- * };
2735
- *
2736
- * var other = {
2737
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
2738
- * };
2739
- *
2740
- * _.merge(object, other);
2741
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
2742
- */
2743
- var merge = createAssigner(function(object, source, srcIndex) {
2744
- baseMerge(object, source, srcIndex);
2745
- });
2746
-
2747
- var merge_1 = merge;
2748
-
2749
- /**
2750
- * Merge objects deeply with strongly typed for each argument
2751
- * @param value1 Merge object
2752
- * @param value2[] List of objects to merge (need to have the same shape as value1)
2753
- */
2754
- const mergeConfig = (defaultObj, fetchedObj, ...overrideObj) => {
2755
- // filter out null and undefined values
2756
- const overrideArgs = [defaultObj, fetchedObj, ...overrideObj].filter(Boolean);
2757
- return merge_1.apply(null, overrideArgs);
2758
- };
2759
-
2760
- const { reset, state: zonosStore } = createStore(() => ({
2761
- appearance: {
2762
- colorPrimary: 'white',
2763
- fontFamily: 'Inter',
2764
- logoUrl: '',
2765
- style: 'ROUNDED',
2766
- theme: 'LIGHT',
2767
- zonosAttribution: 'DISABLED',
2768
- },
2769
- checkoutSettings: {
2770
- allowedCharacterSets: 'ALL',
2771
- analyticsProviders: [],
2772
- orderNotifications: {
2773
- abandonedCart: {
2774
- delay: 0,
2775
- discountPercent: 0,
2776
- status: {
2777
- active: 'DISABLED',
2778
- sendCopiesTo: [],
2779
- },
2780
- },
2781
- orderCancelled: {
2782
- active: 'DISABLED',
2783
- sendCopiesTo: [],
2784
- },
2785
- orderConfirmation: {
2786
- active: 'DISABLED',
2787
- sendCopiesTo: [],
2788
- },
2789
- orderShipped: {
2790
- active: 'DISABLED',
2791
- sendCopiesTo: [],
2792
- },
2793
- },
2794
- organization: '',
2795
- placeOrderButtonSelector: null,
2796
- // default inactive for subscription
2797
- subscriptionStatus: 'INACTIVE',
2798
- successBehavior: 'REDIRECT_TO_SUCCESS_PAGE',
2799
- successRedirectUrl: '',
2800
- visibilityStatus: 'ENABLED',
2801
- },
2802
- currentHelloPage: '',
2803
- helloSettings: {
2804
- anchorElementSelector: '',
2805
- cartUrlPattern: '',
2806
- currencyBehavior: 'ENABLED',
2807
- currencyElementSelector: '.money',
2808
- dutyTaxEstimationBehavior: 'ENABLED',
2809
- excludedUrlPatterns: [],
2810
- homepageUrlPattern: '',
2811
- mobileLocation: 'BOTTOM_RIGHT',
2812
- mode: 'LIVE',
2813
- organization: '',
2814
- peekMessageBehavior: 'ENABLED',
2815
- peekMessageDelay: 0,
2816
- productAddToCartElementSelector: '',
2817
- productDescriptionElementSelector: '',
2818
- productDetailUrlPattern: '',
2819
- productListUrlPattern: '',
2820
- productPriceElementSelector: '',
2821
- productTitleElementSelector: '',
2822
- restrictionBehavior: 'DISABLED',
2823
- },
2824
- loadedConfig: false,
2825
- organizationId: '',
2826
- organizationName: '',
2827
- sourceCurrency: 'USD',
2828
- storeId: null,
2829
- // toggle to know if the config has been loaded with graphql
2830
- stripeApiKey: '',
2831
- zonosApiKey: '',
2832
- }));
2833
- let savedZonosSettings = null;
2834
- /**
2835
- * Get theme from media query if theme is SYSTEM, otherwise return the theme
2836
- */
2837
- const getZonosStoreTheme = (theme) => {
2838
- if (theme === 'SYSTEM') {
2839
- return window.matchMedia('(prefers-color-scheme: dark)').matches
2840
- ? 'DARK'
2841
- : 'LIGHT';
2842
- }
2843
- return theme;
2844
- };
2845
- /**
2846
- * Init setting from zonos setting
2847
- */
2848
- const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
2849
- var _a, _b, _c, _d;
2850
- reset();
2851
- if (zonosSettings) {
2852
- // save zonos settings to be used later
2853
- savedZonosSettings = zonosSettings;
2854
- }
2855
- const mergedAppearanceConfig = mergeConfig(zonosStore.appearance, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.appearanceSettings) ||
2856
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.appearanceSettings) ||
2857
- null, overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.appearance);
2858
- // override the theme to user browser preferences if it is set to SYSTEM
2859
- if (mergedAppearanceConfig.theme === 'SYSTEM') {
2860
- // update theme to user browser preferences
2861
- mergedAppearanceConfig.theme = getZonosStoreTheme(mergedAppearanceConfig.theme);
2862
- }
2863
- zonosStore.appearance = mergedAppearanceConfig;
2864
- zonosStore.checkoutSettings = mergeConfig(zonosStore.checkoutSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.checkoutSettings) ||
2865
- (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.checkoutSettings) ||
2866
- null, overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.checkoutSettings);
2867
- zonosStore.helloSettings = mergeConfig(zonosStore.helloSettings, (savedZonosSettings === null || savedZonosSettings === void 0 ? void 0 : savedZonosSettings.helloSettings) || (zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.helloSettings) || null, overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.helloSettings);
2868
- // set flag to true to indicate that config is ready
2869
- zonosStore.loadedConfig = true;
2870
- zonosStore.organizationId = ((_a = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _a === void 0 ? void 0 : _a.id) || '';
2871
- zonosStore.organizationName = ((_b = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _b === void 0 ? void 0 : _b.name) || '';
2872
- zonosStore.storeId = ((_d = (_c = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _c === void 0 ? void 0 : _c.references) === null || _d === void 0 ? void 0 : _d.storeId) || null;
2873
- zonosStore.currencyConverter = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.currencyConverter;
2874
- zonosStore.onCountryChange = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.onCountryChange;
2875
- };
2876
- const zonosStoreFontFamily = () => {
2877
- const fontFamily = zonosStore.appearance.fontFamily || 'Inter';
2878
- return fontFamily;
2879
- };
2880
-
2881
- export { _root as _, zonosStoreFontFamily as a, commonjsGlobal as b, createStore as c, zonosStoreInitSetting as d, _baseGetTag as e, isObject_1 as f, getZonosStoreTheme as g, isObjectLike_1 as i, mergeConfig as m, zonosStore as z };