@paydock/client-sdk 1.104.3-beta → 1.105.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. package/.nvmrc +1 -0
  2. package/README.md +572 -290
  3. package/api.d.ts +1 -0
  4. package/api.js +1 -0
  5. package/bundles/widget.umd.js +9130 -8655
  6. package/bundles/widget.umd.min.js +1 -2
  7. package/canvas3ds.d.ts +1 -0
  8. package/canvas3ds.js +1 -0
  9. package/checkout-button.d.ts +1 -0
  10. package/checkout-button.js +1 -0
  11. package/inicialization-guide.md +7 -0
  12. package/{bundles/types → lib}/api/api-base.d.ts +1 -2
  13. package/lib/api/api-base.js +101 -0
  14. package/lib/api/api-base.js.map +1 -0
  15. package/{bundles/types → lib}/api/api-charge-internal.d.ts +0 -1
  16. package/lib/api/api-charge-internal.js +30 -0
  17. package/lib/api/api-charge-internal.js.map +1 -0
  18. package/{bundles/types → lib}/api/api-charge.d.ts +0 -1
  19. package/lib/api/api-charge.js +49 -0
  20. package/lib/api/api-charge.js.map +1 -0
  21. package/{bundles/types → lib}/api/api-internal.d.ts +0 -1
  22. package/lib/api/api-internal.js +13 -0
  23. package/lib/api/api-internal.js.map +1 -0
  24. package/{bundles/types → lib}/api/api-service-internal.d.ts +0 -1
  25. package/lib/api/api-service-internal.js +18 -0
  26. package/lib/api/api-service-internal.js.map +1 -0
  27. package/{bundles/types → lib}/api/api.d.ts +1 -2
  28. package/lib/api/api.js +62 -0
  29. package/lib/api/api.js.map +1 -0
  30. package/lib/api/index.d.ts +1 -0
  31. package/lib/api/index.js +2 -0
  32. package/lib/api/index.js.map +1 -0
  33. package/{bundles/types → lib}/canvas-3ds/canvas-3ds.d.ts +1 -2
  34. package/lib/canvas-3ds/canvas-3ds.js +157 -0
  35. package/lib/canvas-3ds/canvas-3ds.js.map +1 -0
  36. package/{bundles/types → lib}/canvas-3ds/index.d.ts +0 -1
  37. package/lib/canvas-3ds/index.js +2 -0
  38. package/lib/canvas-3ds/index.js.map +1 -0
  39. package/{bundles/types → lib}/canvas-3ds/services/gpayments-service.d.ts +0 -1
  40. package/lib/canvas-3ds/services/gpayments-service.js +181 -0
  41. package/lib/canvas-3ds/services/gpayments-service.js.map +1 -0
  42. package/{bundles/types → lib}/canvas-3ds/services/index.d.ts +0 -1
  43. package/lib/canvas-3ds/services/index.js +2 -0
  44. package/lib/canvas-3ds/services/index.js.map +1 -0
  45. package/{bundles/types → lib}/canvas-3ds/services/standalone3ds-service.d.ts +0 -1
  46. package/lib/canvas-3ds/services/standalone3ds-service.js +32 -0
  47. package/lib/canvas-3ds/services/standalone3ds-service.js.map +1 -0
  48. package/{bundles/types → lib}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -2
  49. package/lib/checkout-button/afterpay/afterpay-checkout-button.js +50 -0
  50. package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +1 -0
  51. package/{bundles/types → lib}/checkout-button/afterpay/afterpay.runner.d.ts +0 -1
  52. package/lib/checkout-button/afterpay/afterpay.runner.js +41 -0
  53. package/lib/checkout-button/afterpay/afterpay.runner.js.map +1 -0
  54. package/{bundles/types → lib}/checkout-button/checkout-button.d.ts +1 -2
  55. package/{bundles/types → lib}/checkout-button/checkout-button.interface.d.ts +0 -1
  56. package/lib/checkout-button/checkout-button.interface.js +45 -0
  57. package/lib/checkout-button/checkout-button.interface.js.map +1 -0
  58. package/lib/checkout-button/checkout-button.js +266 -0
  59. package/lib/checkout-button/checkout-button.js.map +1 -0
  60. package/{bundles/types → lib}/checkout-button/checkout-contextual-handler.d.ts +0 -1
  61. package/lib/checkout-button/checkout-contextual-handler.js +75 -0
  62. package/lib/checkout-button/checkout-contextual-handler.js.map +1 -0
  63. package/{bundles/types → lib}/checkout-button/index.d.ts +1 -2
  64. package/lib/checkout-button/index.js +85 -0
  65. package/lib/checkout-button/index.js.map +1 -0
  66. package/{bundles/types → lib}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -2
  67. package/lib/checkout-button/paypal/paypal-checkout-button.js +25 -0
  68. package/lib/checkout-button/paypal/paypal-checkout-button.js.map +1 -0
  69. package/{bundles/types → lib}/checkout-button/paypal/paypal.runner.d.ts +0 -1
  70. package/lib/checkout-button/paypal/paypal.runner.js +14 -0
  71. package/lib/checkout-button/paypal/paypal.runner.js.map +1 -0
  72. package/{bundles/types → lib}/checkout-button/runner/base.runner.d.ts +3 -4
  73. package/lib/checkout-button/runner/base.runner.js +13 -0
  74. package/lib/checkout-button/runner/base.runner.js.map +1 -0
  75. package/{bundles/types → lib}/checkout-button/runner/contextual.runner.d.ts +1 -2
  76. package/lib/checkout-button/runner/contextual.runner.js +40 -0
  77. package/lib/checkout-button/runner/contextual.runner.js.map +1 -0
  78. package/{bundles/types → lib}/checkout-button/runner/index.d.ts +0 -1
  79. package/lib/checkout-button/runner/index.js +11 -0
  80. package/lib/checkout-button/runner/index.js.map +1 -0
  81. package/{bundles/types → lib}/checkout-button/runner/popup.runner.d.ts +1 -2
  82. package/lib/checkout-button/runner/popup.runner.js +68 -0
  83. package/lib/checkout-button/runner/popup.runner.js.map +1 -0
  84. package/{bundles/types → lib}/checkout-button/runner/redirect.runner.d.ts +1 -2
  85. package/lib/checkout-button/runner/redirect.runner.js +15 -0
  86. package/lib/checkout-button/runner/redirect.runner.js.map +1 -0
  87. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -2
  88. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +64 -0
  89. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +1 -0
  90. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +1 -2
  91. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +78 -0
  92. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +1 -0
  93. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +1 -2
  94. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +49 -0
  95. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +1 -0
  96. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.config.d.ts +0 -1
  97. package/lib/checkout-button/zipmoney/zipmoney.config.js +4 -0
  98. package/lib/checkout-button/zipmoney/zipmoney.config.js.map +1 -0
  99. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.runner.d.ts +1 -2
  100. package/lib/checkout-button/zipmoney/zipmoney.runner.js +23 -0
  101. package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +1 -0
  102. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.types.d.ts +0 -1
  103. package/lib/checkout-button/zipmoney/zipmoney.types.js +1 -0
  104. package/lib/checkout-button/zipmoney/zipmoney.types.js.map +1 -0
  105. package/{bundles/types → lib}/components/ability-guard.d.ts +0 -1
  106. package/lib/components/ability-guard.js +44 -0
  107. package/lib/components/ability-guard.js.map +1 -0
  108. package/{bundles/types → lib}/components/background.d.ts +0 -1
  109. package/lib/components/background.js +193 -0
  110. package/lib/components/background.js.map +1 -0
  111. package/{bundles/types → lib}/components/container.d.ts +1 -1
  112. package/lib/components/container.js +63 -0
  113. package/lib/components/container.js.map +1 -0
  114. package/{bundles/types → lib}/components/dispatcher.d.ts +1 -2
  115. package/lib/components/dispatcher.js +39 -0
  116. package/lib/components/dispatcher.js.map +1 -0
  117. package/{bundles/types → lib}/components/element-style.d.ts +1 -2
  118. package/lib/components/element-style.js +52 -0
  119. package/lib/components/element-style.js.map +1 -0
  120. package/{bundles/types → lib}/components/flypay-iframe-event.d.ts +0 -1
  121. package/lib/components/flypay-iframe-event.js +28 -0
  122. package/lib/components/flypay-iframe-event.js.map +1 -0
  123. package/{bundles/types/components/form-interceptor.d.ts → lib/components/form-Interceptor.d.ts} +0 -1
  124. package/lib/components/form-Interceptor.js +38 -0
  125. package/lib/components/form-Interceptor.js.map +1 -0
  126. package/{bundles/types → lib}/components/http-core.d.ts +0 -1
  127. package/lib/components/http-core.js +57 -0
  128. package/lib/components/http-core.js.map +1 -0
  129. package/{bundles/types → lib}/components/iframe-event.d.ts +15 -13
  130. package/lib/components/iframe-event.js +75 -0
  131. package/lib/components/iframe-event.js.map +1 -0
  132. package/{bundles/types → lib}/components/iframe.d.ts +0 -1
  133. package/lib/components/iframe.js +62 -0
  134. package/lib/components/iframe.js.map +1 -0
  135. package/{bundles/types → lib}/components/link.d.ts +1 -2
  136. package/lib/components/link.js +59 -0
  137. package/lib/components/link.js.map +1 -0
  138. package/{bundles/types → lib}/components/loader.d.ts +0 -1
  139. package/lib/components/loader.js +234 -0
  140. package/lib/components/loader.js.map +1 -0
  141. package/{bundles/types → lib}/components/param.d.ts +9 -12
  142. package/lib/components/param.js +147 -0
  143. package/lib/components/param.js.map +1 -0
  144. package/{bundles/types → lib}/components/popup.d.ts +0 -1
  145. package/lib/components/popup.js +104 -0
  146. package/lib/components/popup.js.map +1 -0
  147. package/{bundles/types → lib}/components/storage-dispatcher.d.ts +0 -1
  148. package/lib/components/storage-dispatcher.js +75 -0
  149. package/lib/components/storage-dispatcher.js.map +1 -0
  150. package/{bundles/types → lib}/components/trigger.d.ts +0 -1
  151. package/lib/components/trigger.js +49 -0
  152. package/lib/components/trigger.js.map +1 -0
  153. package/{bundles/types → lib}/components/vault-display-iframe-event.d.ts +0 -1
  154. package/lib/components/vault-display-iframe-event.js +27 -0
  155. package/lib/components/vault-display-iframe-event.js.map +1 -0
  156. package/{bundles/types → lib}/components/wallet-background.d.ts +2 -2
  157. package/lib/components/wallet-background.js +63 -0
  158. package/lib/components/wallet-background.js.map +1 -0
  159. package/{bundles/types → lib}/components/wallet-trigger.d.ts +0 -1
  160. package/lib/components/wallet-trigger.js +27 -0
  161. package/lib/components/wallet-trigger.js.map +1 -0
  162. package/{bundles/types/configs/env/environment.paydock.d.ts → lib/configs/env/env.d.ts} +8 -5
  163. package/lib/configs/env/env.js +117 -0
  164. package/lib/configs/env/env.js.map +1 -0
  165. package/{bundles/types → lib}/configs/sdk.d.ts +2 -3
  166. package/lib/configs/sdk.js +16 -0
  167. package/lib/configs/sdk.js.map +1 -0
  168. package/lib/constants/validators.d.ts +44 -0
  169. package/lib/constants/validators.js +42 -0
  170. package/lib/constants/validators.js.map +1 -0
  171. package/{bundles/types → lib}/external-checkout/builder.d.ts +0 -1
  172. package/lib/external-checkout/builder.js +45 -0
  173. package/lib/external-checkout/builder.js.map +1 -0
  174. package/{bundles/types → lib}/external-checkout/checker.d.ts +0 -1
  175. package/lib/external-checkout/checker.js +22 -0
  176. package/lib/external-checkout/checker.js.map +1 -0
  177. package/lib/external-checkout/index.d.ts +2 -0
  178. package/lib/external-checkout/index.js +3 -0
  179. package/lib/external-checkout/index.js.map +1 -0
  180. package/{bundles/types → lib}/helper/access-token.d.ts +0 -1
  181. package/lib/helper/access-token.js +44 -0
  182. package/lib/helper/access-token.js.map +1 -0
  183. package/{bundles/types → lib}/helper/browser.d.ts +0 -1
  184. package/lib/helper/browser.js +79 -0
  185. package/lib/helper/browser.js.map +1 -0
  186. package/{bundles/types → lib}/helper/event-emitter.d.ts +0 -1
  187. package/lib/helper/event-emitter.js +23 -0
  188. package/lib/helper/event-emitter.js.map +1 -0
  189. package/{bundles/types → lib}/helper/event.d.ts +0 -1
  190. package/lib/helper/event.js +23 -0
  191. package/lib/helper/event.js.map +1 -0
  192. package/{bundles/types → lib}/helper/ms.d.ts +0 -1
  193. package/lib/helper/ms.js +32 -0
  194. package/lib/helper/ms.js.map +1 -0
  195. package/{bundles/types → lib}/helper/object.d.ts +0 -1
  196. package/lib/helper/object.js +6 -0
  197. package/lib/helper/object.js.map +1 -0
  198. package/{bundles/types → lib}/helper/url.d.ts +0 -1
  199. package/lib/helper/url.js +11 -0
  200. package/lib/helper/url.js.map +1 -0
  201. package/{bundles/types → lib}/helper/uuid.d.ts +0 -1
  202. package/lib/helper/uuid.js +26 -0
  203. package/lib/helper/uuid.js.map +1 -0
  204. package/lib/index.d.ts +15 -0
  205. package/lib/index.js +15 -0
  206. package/lib/index.js.map +1 -0
  207. package/{bundles/types → lib}/payment-source/builder.d.ts +0 -1
  208. package/lib/payment-source/builder.js +49 -0
  209. package/lib/payment-source/builder.js.map +1 -0
  210. package/{bundles/types → lib}/payment-source/index.d.ts +0 -1
  211. package/lib/payment-source/index.js +2 -0
  212. package/lib/payment-source/index.js.map +1 -0
  213. package/{bundles/types → lib}/payment-source-widget/html-payment-source-widget.d.ts +17 -14
  214. package/lib/payment-source-widget/html-payment-source-widget.js +172 -0
  215. package/lib/payment-source-widget/html-payment-source-widget.js.map +1 -0
  216. package/{bundles/types → lib}/payment-source-widget/index.d.ts +0 -1
  217. package/lib/payment-source-widget/index.js +35 -0
  218. package/lib/payment-source-widget/index.js.map +1 -0
  219. package/{bundles/types → lib}/payment-source-widget/interfaces.d.ts +0 -1
  220. package/lib/payment-source-widget/interfaces.js +2 -0
  221. package/lib/payment-source-widget/interfaces.js.map +1 -0
  222. package/{bundles/types → lib}/payment-source-widget/payment-source-widget.d.ts +1 -2
  223. package/lib/payment-source-widget/payment-source-widget.js +142 -0
  224. package/lib/payment-source-widget/payment-source-widget.js.map +1 -0
  225. package/{bundles/types → lib}/secure-remote-commerce/index.d.ts +0 -1
  226. package/lib/secure-remote-commerce/index.js +2 -0
  227. package/lib/secure-remote-commerce/index.js.map +1 -0
  228. package/{bundles/types → lib}/secure-remote-commerce/interfaces.d.ts +5 -6
  229. package/lib/secure-remote-commerce/interfaces.js +28 -0
  230. package/lib/secure-remote-commerce/interfaces.js.map +1 -0
  231. package/{bundles/types → lib}/secure-remote-commerce/providers/src-provider.d.ts +0 -1
  232. package/lib/secure-remote-commerce/providers/src-provider.js +1 -0
  233. package/lib/secure-remote-commerce/providers/src-provider.js.map +1 -0
  234. package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -1
  235. package/lib/secure-remote-commerce/providers/visa-src/helper.js +36 -0
  236. package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +1 -0
  237. package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
  238. package/lib/secure-remote-commerce/providers/visa-src/index.js +2 -0
  239. package/lib/secure-remote-commerce/providers/visa-src/index.js.map +1 -0
  240. package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +0 -1
  241. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +113 -0
  242. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +1 -0
  243. package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -1
  244. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +10 -0
  245. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +1 -0
  246. package/{bundles/types → lib}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -2
  247. package/lib/secure-remote-commerce/secure-remote-commerce.js +239 -0
  248. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +1 -0
  249. package/{bundles/types → lib}/vault-display-widget/index.d.ts +0 -1
  250. package/lib/vault-display-widget/index.js +14 -0
  251. package/lib/vault-display-widget/index.js.map +1 -0
  252. package/{bundles/types → lib}/vault-display-widget/vault-display-widget.d.ts +1 -2
  253. package/lib/vault-display-widget/vault-display-widget.js +99 -0
  254. package/lib/vault-display-widget/vault-display-widget.js.map +1 -0
  255. package/{bundles/types → lib}/wallet-buttons/afterpay.wallet-service.d.ts +0 -1
  256. package/lib/wallet-buttons/afterpay.wallet-service.js +152 -0
  257. package/lib/wallet-buttons/afterpay.wallet-service.js.map +1 -0
  258. package/{bundles/types → lib}/wallet-buttons/apple.wallet-service.d.ts +2 -1
  259. package/lib/wallet-buttons/apple.wallet-service.js +324 -0
  260. package/lib/wallet-buttons/apple.wallet-service.js.map +1 -0
  261. package/{bundles/types → lib}/wallet-buttons/flypay-v2.wallet-service.d.ts +9 -2
  262. package/lib/wallet-buttons/flypay-v2.wallet-service.js +165 -0
  263. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +1 -0
  264. package/{bundles/types → lib}/wallet-buttons/flypay.wallet-service.d.ts +0 -1
  265. package/lib/wallet-buttons/flypay.wallet-service.js +117 -0
  266. package/lib/wallet-buttons/flypay.wallet-service.js.map +1 -0
  267. package/{bundles/types → lib}/wallet-buttons/google.wallet-service.d.ts +3 -1
  268. package/lib/wallet-buttons/google.wallet-service.js +301 -0
  269. package/lib/wallet-buttons/google.wallet-service.js.map +1 -0
  270. package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +3 -0
  271. package/lib/wallet-buttons/helpers/flypay-v2.helper.js +151 -0
  272. package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +1 -0
  273. package/lib/wallet-buttons/index.d.ts +127 -0
  274. package/lib/wallet-buttons/index.js +128 -0
  275. package/lib/wallet-buttons/index.js.map +1 -0
  276. package/{bundles/types → lib}/wallet-buttons/interfaces.d.ts +3 -1
  277. package/lib/wallet-buttons/interfaces.js +1 -0
  278. package/lib/wallet-buttons/interfaces.js.map +1 -0
  279. package/{bundles/types → lib}/wallet-buttons/mastercard.wallet-service.d.ts +0 -1
  280. package/lib/wallet-buttons/mastercard.wallet-service.js +27 -0
  281. package/lib/wallet-buttons/mastercard.wallet-service.js.map +1 -0
  282. package/{bundles/types → lib}/wallet-buttons/paypal.wallet-service.d.ts +0 -1
  283. package/lib/wallet-buttons/paypal.wallet-service.js +144 -0
  284. package/lib/wallet-buttons/paypal.wallet-service.js.map +1 -0
  285. package/{bundles/types → lib}/wallet-buttons/stripe.wallet-service.d.ts +0 -1
  286. package/lib/wallet-buttons/stripe.wallet-service.js +100 -0
  287. package/lib/wallet-buttons/stripe.wallet-service.js.map +1 -0
  288. package/{bundles/types/wallet-buttons/wallet-cba-buttons.d.ts → lib/wallet-buttons/wallet-buttons.d.ts} +92 -115
  289. package/lib/wallet-buttons/wallet-buttons.js +479 -0
  290. package/lib/wallet-buttons/wallet-buttons.js.map +1 -0
  291. package/{bundles/types → lib}/wallet-buttons/wallet-service.d.ts +7 -1
  292. package/lib/wallet-buttons/wallet-service.js +60 -0
  293. package/lib/wallet-buttons/wallet-service.js.map +1 -0
  294. package/{bundles/types → lib}/widget/configuration.d.ts +2 -3
  295. package/lib/widget/configuration.js +260 -0
  296. package/lib/widget/configuration.js.map +1 -0
  297. package/lib/widget/html-multi-widget.d.ts +336 -0
  298. package/lib/widget/html-multi-widget.js +422 -0
  299. package/lib/widget/html-multi-widget.js.map +1 -0
  300. package/{bundles/types → lib}/widget/html-widget.d.ts +1 -2
  301. package/lib/widget/html-widget.js +127 -0
  302. package/lib/widget/html-widget.js.map +1 -0
  303. package/{bundles/types → lib}/widget/index.d.ts +1 -2
  304. package/lib/widget/index.js +132 -0
  305. package/lib/widget/index.js.map +1 -0
  306. package/{bundles/types → lib}/widget/meta.d.ts +0 -1
  307. package/lib/widget/meta.js +8 -0
  308. package/lib/widget/meta.js.map +1 -0
  309. package/{bundles/types → lib}/widget/multi-widget.d.ts +1 -2
  310. package/lib/widget/multi-widget.js +437 -0
  311. package/lib/widget/multi-widget.js.map +1 -0
  312. package/{bundles/types → lib}/widget/style.d.ts +0 -1
  313. package/lib/widget/style.js +204 -0
  314. package/lib/widget/style.js.map +1 -0
  315. package/package.json +42 -164
  316. package/payment-source-widget.d.ts +1 -0
  317. package/payment-source-widget.js +1 -0
  318. package/slate.md +136 -107
  319. package/tslint.json +129 -0
  320. package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +43 -0
  321. package/typings/globals/jasmine/index.d.ts +576 -0
  322. package/typings/globals/jasmine-ajax/index.d.ts +83 -0
  323. package/typings/globals/jquery/index.d.ts +3759 -0
  324. package/typings/index.d.ts +4 -0
  325. package/vault-display-widget.d.ts +1 -0
  326. package/vault-display-widget.js +1 -0
  327. package/vendors/zipmoney.d.ts +18 -0
  328. package/vendors/zipmoney.js +2 -0
  329. package/widget.d.ts +1 -0
  330. package/widget.js +1 -0
  331. package/bundles/index.cjs +0 -10674
  332. package/bundles/index.cjs.d.ts +0 -3163
  333. package/bundles/index.cjs.map +0 -1
  334. package/bundles/index.mjs +0 -10642
  335. package/bundles/index.mjs.d.ts +0 -3163
  336. package/bundles/index.mjs.map +0 -1
  337. package/bundles/types/api/api-base.d.ts.map +0 -1
  338. package/bundles/types/api/api-charge-internal.d.ts.map +0 -1
  339. package/bundles/types/api/api-charge.d.ts.map +0 -1
  340. package/bundles/types/api/api-internal.d.ts.map +0 -1
  341. package/bundles/types/api/api-service-internal.d.ts.map +0 -1
  342. package/bundles/types/api/api.d.ts.map +0 -1
  343. package/bundles/types/api/index.d.ts +0 -2
  344. package/bundles/types/api/index.d.ts.map +0 -1
  345. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +0 -1
  346. package/bundles/types/canvas-3ds/index.d.ts.map +0 -1
  347. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +0 -1
  348. package/bundles/types/canvas-3ds/services/index.d.ts.map +0 -1
  349. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +0 -1
  350. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +0 -1
  351. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +0 -1
  352. package/bundles/types/checkout-button/checkout-button.d.ts.map +0 -1
  353. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +0 -1
  354. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +0 -1
  355. package/bundles/types/checkout-button/index.d.ts.map +0 -1
  356. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +0 -1
  357. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +0 -1
  358. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +0 -1
  359. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +0 -1
  360. package/bundles/types/checkout-button/runner/index.d.ts.map +0 -1
  361. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +0 -1
  362. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +0 -1
  363. package/bundles/types/checkout-button/zipmoney/index.d.ts +0 -4
  364. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +0 -1
  365. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +0 -1
  366. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +0 -1
  367. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +0 -1
  368. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +0 -1
  369. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +0 -1
  370. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +0 -1
  371. package/bundles/types/components/ability-guard.d.ts.map +0 -1
  372. package/bundles/types/components/background.d.ts.map +0 -1
  373. package/bundles/types/components/container.d.ts.map +0 -1
  374. package/bundles/types/components/dispatcher.d.ts.map +0 -1
  375. package/bundles/types/components/element-style.d.ts.map +0 -1
  376. package/bundles/types/components/flypay-iframe-event.d.ts.map +0 -1
  377. package/bundles/types/components/form-interceptor.d.ts.map +0 -1
  378. package/bundles/types/components/http-core.d.ts.map +0 -1
  379. package/bundles/types/components/iframe-event.d.ts.map +0 -1
  380. package/bundles/types/components/iframe.d.ts.map +0 -1
  381. package/bundles/types/components/link.d.ts.map +0 -1
  382. package/bundles/types/components/loader.d.ts.map +0 -1
  383. package/bundles/types/components/param.d.ts.map +0 -1
  384. package/bundles/types/components/popup.d.ts.map +0 -1
  385. package/bundles/types/components/storage-dispatcher.d.ts.map +0 -1
  386. package/bundles/types/components/trigger.d.ts.map +0 -1
  387. package/bundles/types/components/vault-display-iframe-event.d.ts.map +0 -1
  388. package/bundles/types/components/wallet-background.d.ts.map +0 -1
  389. package/bundles/types/components/wallet-trigger.d.ts.map +0 -1
  390. package/bundles/types/configs/env/environment.cba.d.ts +0 -29
  391. package/bundles/types/configs/env/environment.cba.d.ts.map +0 -1
  392. package/bundles/types/configs/env/environment.interface.d.ts +0 -12
  393. package/bundles/types/configs/env/environment.interface.d.ts.map +0 -1
  394. package/bundles/types/configs/env/environment.paydock.d.ts.map +0 -1
  395. package/bundles/types/configs/env/index.d.ts +0 -3
  396. package/bundles/types/configs/env/index.d.ts.map +0 -1
  397. package/bundles/types/configs/sdk.d.ts.map +0 -1
  398. package/bundles/types/external-checkout/builder.d.ts.map +0 -1
  399. package/bundles/types/external-checkout/checker.d.ts.map +0 -1
  400. package/bundles/types/external-checkout/index.d.ts +0 -3
  401. package/bundles/types/external-checkout/index.d.ts.map +0 -1
  402. package/bundles/types/helper/access-token.d.ts.map +0 -1
  403. package/bundles/types/helper/browser.d.ts.map +0 -1
  404. package/bundles/types/helper/event-emitter.d.ts.map +0 -1
  405. package/bundles/types/helper/event.d.ts.map +0 -1
  406. package/bundles/types/helper/ms.d.ts.map +0 -1
  407. package/bundles/types/helper/object.d.ts.map +0 -1
  408. package/bundles/types/helper/url.d.ts.map +0 -1
  409. package/bundles/types/helper/uuid.d.ts.map +0 -1
  410. package/bundles/types/index-cba.d.ts +0 -13
  411. package/bundles/types/index-cba.d.ts.map +0 -1
  412. package/bundles/types/index.d.ts +0 -14
  413. package/bundles/types/index.d.ts.map +0 -1
  414. package/bundles/types/payment-source/builder.d.ts.map +0 -1
  415. package/bundles/types/payment-source/index.d.ts.map +0 -1
  416. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +0 -1
  417. package/bundles/types/payment-source-widget/index.d.ts.map +0 -1
  418. package/bundles/types/payment-source-widget/interfaces.d.ts.map +0 -1
  419. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +0 -1
  420. package/bundles/types/secure-remote-commerce/index.d.ts.map +0 -1
  421. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +0 -1
  422. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +0 -1
  423. package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +0 -1
  424. package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +0 -1
  425. package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +0 -1
  426. package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +0 -1
  427. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +0 -1
  428. package/bundles/types/vault-display-widget/index.d.ts.map +0 -1
  429. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +0 -1
  430. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +0 -1
  431. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +0 -1
  432. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +0 -1
  433. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +0 -1
  434. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +0 -1
  435. package/bundles/types/wallet-buttons/index-cba.d.ts +0 -2
  436. package/bundles/types/wallet-buttons/index-cba.d.ts.map +0 -1
  437. package/bundles/types/wallet-buttons/index.d.ts +0 -2
  438. package/bundles/types/wallet-buttons/index.d.ts.map +0 -1
  439. package/bundles/types/wallet-buttons/interfaces.d.ts.map +0 -1
  440. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +0 -1
  441. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +0 -1
  442. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +0 -1
  443. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +0 -366
  444. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +0 -1
  445. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +0 -1
  446. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
  447. package/bundles/types/widget/configuration.d.ts.map +0 -1
  448. package/bundles/types/widget/html-multi-widget.d.ts +0 -266
  449. package/bundles/types/widget/html-multi-widget.d.ts.map +0 -1
  450. package/bundles/types/widget/html-widget.d.ts.map +0 -1
  451. package/bundles/types/widget/index.d.ts.map +0 -1
  452. package/bundles/types/widget/meta.d.ts.map +0 -1
  453. package/bundles/types/widget/multi-widget.d.ts.map +0 -1
  454. package/bundles/types/widget/style.d.ts.map +0 -1
  455. package/bundles/widget.umd.js.d.ts +0 -3163
  456. package/bundles/widget.umd.js.map +0 -1
  457. package/bundles/widget.umd.js.min.d.ts +0 -3163
  458. package/bundles/widget.umd.min.js.map +0 -1
  459. package/docs/api-canvas3ds.md +0 -158
  460. package/docs/api-checkout-button.md +0 -912
  461. package/docs/api-examples.md +0 -65
  462. package/docs/api-ps-widget.md +0 -585
  463. package/docs/api-vault-display.md +0 -94
  464. package/docs/api-widget.md +0 -2444
  465. package/docs/api-wrapper.md +0 -78
  466. package/docs/canvas3ds-examples.md +0 -242
  467. package/docs/cba-header.md +0 -13
  468. package/docs/cba-license.md +0 -2
  469. package/docs/checkout-examples.md +0 -248
  470. package/docs/header.md +0 -15
  471. package/docs/html/layout.html +0 -78
  472. package/docs/html/marked.js +0 -23
  473. package/docs/html/style.css +0 -365
  474. package/docs/install/npm.content.md +0 -16
  475. package/docs/install/npm.example.md +0 -24
  476. package/docs/install/umd.content.md +0 -20
  477. package/docs/install/umd.example.md +0 -6
  478. package/docs/install.md +0 -43
  479. package/docs/install.readme.t.md +0 -17
  480. package/docs/install.slate.t.md +0 -17
  481. package/docs/license.md +0 -2
  482. package/docs/partials/header.hbs +0 -3
  483. package/docs/ps-examples.md +0 -129
  484. package/docs/secure-remote-commerce-examples.md +0 -258
  485. package/docs/secure-remote-commerce.md +0 -265
  486. package/docs/vault-display-example.md +0 -132
  487. package/docs/wallet-buttons-examples.md +0 -580
  488. package/docs/wallet-buttons.md +0 -424
  489. package/docs/wallet-cba-buttons-examples.md +0 -388
  490. package/docs/widget-examples.md +0 -134
@@ -0,0 +1,75 @@
1
+ import { Event } from "../helper/event";
2
+ export const EVENT = {
3
+ AFTER_LOAD: 'afterLoad',
4
+ SUBMIT: 'submit',
5
+ FINISH: 'finish',
6
+ VALIDATION_ERROR: 'validationError',
7
+ SYSTEM_ERROR: 'systemError',
8
+ CHECKOUT_SUCCESS: 'checkoutSuccess',
9
+ CHECKOUT_READY: 'checkoutReady',
10
+ CHECKOUT_ERROR: 'checkoutError',
11
+ CHECKOUT_COMPLETED: 'checkoutCompleted',
12
+ VALIDATION: 'validation',
13
+ SELECT: 'select',
14
+ UNSELECT: 'unselect',
15
+ NEXT: 'next',
16
+ PREV: 'prev',
17
+ META_CHANGE: 'metaChange',
18
+ RESIZE: 'resize',
19
+ CHARGE_AUTH_SUCCESS: 'chargeAuthSuccess',
20
+ CHARGE_AUTH_REJECT: 'chargeAuthReject',
21
+ CHARGE_AUTH_CANCELLED: 'chargeAuthCancelled',
22
+ ADDITIONAL_DATA_SUCCESS: 'additionalDataCollectSuccess',
23
+ ADDITIONAL_DATA_REJECT: 'additionalDataCollectReject',
24
+ CHARGE_AUTH: 'chargeAuth',
25
+ DISPATCH_SUCCESS: 'dispatchSuccess',
26
+ DISPATCH_ERROR: 'dispatchError',
27
+ };
28
+ export class IFrameEvent {
29
+ constructor(subject) {
30
+ this.listeners = [];
31
+ if (!subject)
32
+ return;
33
+ Event.subscribe('message', subject, (event) => {
34
+ let data;
35
+ try {
36
+ data = JSON.parse(event.data);
37
+ }
38
+ catch (error) { }
39
+ if (!data) // @TODO add filter on message_source
40
+ return;
41
+ this.emit(data);
42
+ });
43
+ }
44
+ emit(data) {
45
+ for (let key in this.listeners) {
46
+ if (this.listeners[key].event === data.event && data.widget_id === this.listeners[key].widget_id)
47
+ this.listeners[key].listener.apply(this, [data]);
48
+ }
49
+ }
50
+ on(eventName, widgetId, cb) {
51
+ for (let event in EVENT) {
52
+ if (!EVENT.hasOwnProperty(event))
53
+ continue;
54
+ if (eventName === EVENT[event]) {
55
+ this.listeners.push({
56
+ event: eventName,
57
+ listener: cb,
58
+ widget_id: widgetId,
59
+ });
60
+ }
61
+ }
62
+ }
63
+ clear() {
64
+ this.listeners = [];
65
+ }
66
+ subscribe(subject, listener) {
67
+ if (subject.addEventListener) {
68
+ subject.addEventListener("message", listener);
69
+ }
70
+ else {
71
+ subject.attachEvent("onmessage", listener);
72
+ }
73
+ }
74
+ }
75
+ //# sourceMappingURL=../../src/lib/components/iframe-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iframe-event.js","sourceRoot":"","sources":["../../components/iframe-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AAwBtC,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,iBAAiB;IACnC,YAAY,EAAE,aAAa;IAC3B,gBAAgB,EAAE,iBAAiB;IACnC,cAAc,EAAE,eAAe;IAC/B,cAAc,EAAE,eAAe;IAC/B,kBAAkB,EAAE,mBAAmB;IACvC,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,YAAY;IACzB,MAAM,EAAE,QAAQ;IAChB,mBAAmB,EAAE,mBAAmB;IACxC,kBAAkB,EAAE,kBAAkB;IACtC,qBAAqB,EAAE,qBAAqB;IAC5C,uBAAuB,EAAE,8BAA8B;IACvD,sBAAsB,EAAE,6BAA6B;IACrD,WAAW,EAAE,YAAY;IACzB,gBAAgB,EAAE,iBAAiB;IACnC,cAAc,EAAE,eAAe;CAClC,CAAC;AAUF,MAAM,OAAO,WAAW;IAGpB,YAAY,OAAsB;QAFxB,cAAS,GAAc,EAAE,CAAC;QAGhC,IAAI,CAAC,OAAO;YACR,OAAO;QAEX,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC,KAAmB,EAAE,EAAE;YACxD,IAAI,IAAuB,CAAC;YAC5B,IAAI;gBACA,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC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"}
@@ -15,4 +15,3 @@ export declare class IFrame {
15
15
  getElement(): HTMLIFrameElement;
16
16
  setStyle(property: string, value: string): void;
17
17
  }
18
- //# sourceMappingURL=iframe.d.ts.map
@@ -0,0 +1,62 @@
1
+ export class IFrame {
2
+ constructor(container) {
3
+ this.container = container;
4
+ }
5
+ load(link, options = {}) {
6
+ if (!this.container.isExist() || this.isExist())
7
+ return;
8
+ let iFrame = document.createElement('iframe');
9
+ iFrame.setAttribute('src', link);
10
+ if (options.title)
11
+ iFrame.title = options.title;
12
+ this.container.getElement().appendChild(iFrame);
13
+ }
14
+ loadFromHtml(content, options = {}) {
15
+ if (!this.container.isExist() || this.isExist())
16
+ return;
17
+ let iFrame = document.createElement('iframe');
18
+ iFrame.setAttribute('height', '100%');
19
+ iFrame.setAttribute('width', '100%');
20
+ if (options.title)
21
+ iFrame.title = options.title;
22
+ const template = "<html><head><style>html, body {margin: 0;} iframe {border: 0; width: 100%}</style><title></title></head><body>{{content}}</body></html>";
23
+ this.container.getElement().appendChild(iFrame);
24
+ let iFrameDocument = this.getElement().contentDocument;
25
+ iFrameDocument.open();
26
+ iFrameDocument.write(template.replace('{{content}}', content));
27
+ iFrameDocument.close();
28
+ }
29
+ remove() {
30
+ if (!this.container.isExist() || !this.isExist())
31
+ return;
32
+ let iFrame = this.getElement();
33
+ this.container.getElement().removeChild(iFrame);
34
+ }
35
+ show() {
36
+ if (!this.isExist())
37
+ return;
38
+ this.setStyle('visibility', 'visible');
39
+ this.setStyle('display', 'block');
40
+ }
41
+ hide(saveSize = false) {
42
+ if (!this.isExist())
43
+ return;
44
+ if (saveSize)
45
+ this.setStyle('visibility', 'hidden');
46
+ else
47
+ this.setStyle('display', 'none');
48
+ }
49
+ isExist() {
50
+ return !!(this.getElement());
51
+ }
52
+ getElement() {
53
+ if (!this.container.isExist())
54
+ return null;
55
+ return this.container.getElement().querySelector('iframe');
56
+ }
57
+ setStyle(property, value) {
58
+ let iFrame = this.getElement();
59
+ iFrame.style[property] =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AC,QAAgB,EAAE,KAAa;QAC3C,IAAI,MAAM,GAAgB,IAAI,CAAC,UAAU,EAAE,CAAC;QAC5C,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;IACnC,CAAC;CACJ"}
@@ -1,5 +1,5 @@
1
1
  import { IParams, IVisaSRCParams, IWalletParams } from './param';
2
- import { Env } from '../configs/env';
2
+ import { Env } from '../configs/env/env';
3
3
  export declare const WIDGET_LINK = "/remote-action";
4
4
  export declare const VAULT_DISPLAY_WIDGET_LINK = "/vault-display";
5
5
  export declare const PAYMENT_SOURCE_LINK = "/payment-sources";
@@ -22,4 +22,3 @@ export declare class Link {
22
22
  getEnv(): string;
23
23
  getBaseUrl(): string;
24
24
  }
25
- //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1,59 @@
1
+ import { Env, WIDGET_URL } from '../configs/env/env';
2
+ import { Url } from "../helper/url";
3
+ import { Uuid } from '../helper/uuid';
4
+ export const WIDGET_LINK = '/remote-action';
5
+ export const VAULT_DISPLAY_WIDGET_LINK = '/vault-display';
6
+ export const PAYMENT_SOURCE_LINK = '/payment-sources';
7
+ export const SECURE_3D = '/3ds/webhook';
8
+ export const FLYPAY_LINK = '/wallet/flypay';
9
+ export const FLYPAY_LOGO_LINK = '/images/logo.png';
10
+ export const VISA_SRC = '/secure-remote-commerce/visa';
11
+ export class Link {
12
+ constructor(linkResource) {
13
+ this.params = {};
14
+ this.widgetId = Uuid.generate();
15
+ this.linkResource = linkResource;
16
+ this.env = new Env(WIDGET_URL);
17
+ this.setParams({ widget_id: this.widgetId });
18
+ }
19
+ getNetUrl() {
20
+ return this.env.getConf().url + this.linkResource;
21
+ }
22
+ getUrl() {
23
+ let url = this.getNetUrl();
24
+ let params = this.getParams();
25
+ for (let key in params) {
26
+ if (params.hasOwnProperty(key))
27
+ url = Url.extendSearchParams(url, key, params[key]);
28
+ }
29
+ return url;
30
+ }
31
+ setParams(params) {
32
+ this.params = Object.assign({}, this.params, params);
33
+ }
34
+ concatParams(params) {
35
+ for (let key in params) {
36
+ if (!params.hasOwnProperty(key) || !params[key].length)
37
+ continue;
38
+ if (typeof this.params[key] !== 'string')
39
+ this.params[key] = '';
40
+ if (this.params[key].length)
41
+ this.params[key] += ',' + params[key];
42
+ else
43
+ this.params[key] += params[key];
44
+ }
45
+ }
46
+ getParams() {
47
+ return this.params;
48
+ }
49
+ setEnv(env, alias) {
50
+ this.env.setEnv(env, alias);
51
+ }
52
+ getEnv() {
53
+ return this.env.getEnv();
54
+ }
55
+ getBaseUrl() {
56
+ return this.env.getConf().url;
57
+ }
58
+ }
59
+ //# sourceMappingURL=../../src/lib/components/link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","sourceRoot":"","sources":["../../components/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAO,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,cAAc,CAAC;AACxC,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,8BAA8B,CAAC;AAEvD,MAAM,OAAO,IAAI;IAQb,YAAY,YAAoB;QAJtB,WAAM,GAAY,EAAE,CAAC;QACrB,aAAQ,GAAW,IAAI,CAAC,QAAQ,EAAE,CAAC;QAIzC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,C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M,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;SACvC;IACL,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,GAAW,EAAE,KAAc;QACrC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC;IAEM,MAAM;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;IAC7B,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC;IAClC,CAAC;CACJ"}
@@ -2,4 +2,3 @@ export declare const TEMPLATE = "\n <div class=\"cs-loader\">\n <div cla
2
2
  export declare const STYLE = "\n <style> \n .cs-loader {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n \n .cs-loader-inner {\n transform: translateY(-50%);\n top: 50%;\n position: absolute;\n width: calc(100% - 200px);\n color: #8e8d8c;\n padding: 0 100px;\n text-align: center;\n }\n \n \n .cs-loader-inner label {\n font-size: 20px;\n opacity: 0;\n display:inline-block;\n }\n \n @keyframes lol {\n 0% {\n opacity: 0;\n transform: translateX(-300px);\n }\n 33% {\n opacity: 1;\n transform: translateX(0px);\n }\n 66% {\n opacity: 1;\n transform: translateX(0px);\n }\n 100% {\n opacity: 0;\n transform: translateX(300px);\n }\n }\n \n @-webkit-keyframes lol {\n 0% {\n opacity: 0;\n -webkit-transform: translateX(-300px);\n }\n 33% {\n opacity: 1;\n -webkit-transform: translateX(0px);\n }\n 66% {\n opacity: 1;\n -webkit-transform: translateX(0px);\n }\n 100% {\n opacity: 0;\n -webkit-transform: translateX(300px);\n -moz-transform: translateX(300px);\n }\n }\n \n .cs-loader-inner label:nth-child(6) {\n -webkit-animation: lol 3s infinite ease-in-out;\n -moz-animation: lol 3s infinite ease-in-out;\n animation: lol 3s infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(5) {\n -webkit-animation: lol 3s 100ms infinite ease-in-out;\n -moz-animation: lol 3s 100ms infinite ease-in-out;\n animation: lol 3s 100ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(4) {\n -webkit-animation: lol 3s 200ms infinite ease-in-out;\n -moz-animation: lol 3s 200ms infinite ease-in-out;\n animation: lol 3s 200ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(3) {\n -webkit-animation: lol 3s 300ms infinite ease-in-out;\n -moz-animation: lol 3s 300ms infinite ease-in-out;\n animation: lol 3s 300ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(2) {\n -webkit-animation: lol 3s 400ms infinite ease-in-out;\n -moz-animation: lol 3s 400ms infinite ease-in-out;\n animation: lol 3s 400ms infinite ease-in-out;\n }\n \n .cs-loader-inner label:nth-child(1) {\n -webkit-animation: lol 3s 500ms infinite ease-in-out;\n -moz-animation: lol 3s 500ms infinite ease-in-out;\n animation: lol 3s 500ms infinite ease-in-out;\n }\n </style>\n";
3
3
  export declare const EXTRA_TEMPLATE = "\n <div class=\"circ\">\n <div class=\"load\">A little patience ...</div>\n <div class=\"hands\"></div>\n <div class=\"body\"></div>\n <div class=\"head\">\n <div class=\"eye\"></div>\n </div>\n </div>\n";
4
4
  export declare const EXTRA_STYLE = "\n <style>\n html{width: 100%;height: 100%;}\n body{margin: 0px;padding: 0px;background-color: #111;}\n \n .eye{\n width: 20px; height: 8px;\n background-color: #eee;\n border-radius:0px 0px 20px 20px;\n position: relative;\n top: 40px;\n left: 10px;\n box-shadow: 40px 0px 0px 0px #eee; \n }\n \n .head{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden; \n position: relative;\n margin: -250px auto;\n width: 80px; height: 80px;\n background-color: #111;\n border-radius:50px;\n box-shadow: inset -4px 2px 0px 0px #eee;\n -webkit-animation:node 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out;\n -moz-animation:node 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out;\n animation:node 1.5s infinite alternate;\n animation-timing-function:ease-out;\n }\n .body{ \n position: relative;\n margin: 90px auto;\n width: 140px; height: 120px;\n background-color: #111;\n border-radius: 50px/25px ;\n box-shadow: inset -5px 2px 0px 0px #eee;\n -webkit-animation:node2 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out; \n -moz-animation:node2 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out; \n animation:node2 1.5s infinite alternate;\n animation-timing-function:ease-out; \n }\n \n @keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n @-moz-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @-moz-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n @-webkit-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }\n @-webkit-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}\n \n \n .circ{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n margin: 60px auto;\n width: 180px; height: 180px;\n background-color: #111;\n border-radius: 0px 0px 50px 50px;\n position: relative;\n z-index: -1; \n left: 0%;\n top: 20%;\n overflow: hidden;\n }\n \n .hands{\n -webkit-backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n backface-visibility: hidden;\n margin-top: 140px;\n width: 120px;height: 120px;\n position: absolute;\n background-color: #111;\n border-radius:20px;\n box-shadow:-1px -4px 0px 0px #eee;\n transform:rotate(45deg);\n -webkit-transform:rotate(45deg);\n -mox-transform:rotate(45deg);\n top:75%;left: 16%;\n z-index: 1;\n -webkit-animation:node2 1.5s infinite alternate;\n -webkit-animation-timing-function:ease-out;\n -moz-animation:node2 1.5s infinite alternate;\n -moz-animation-timing-function:ease-out;\n animation:node2 1.5s infinite alternate;\n animation-timing-function:ease-out;\n }\n \n .load{ position: absolute;\n width: 100px; height: 20px;\n margin: -10px auto;\n -webkit-font-smoothing: antialiased;\n -moz-font-smoothing: antialiased;\n font-smoothing: antialiased;\n font-family: 'Julius Sans One', sans-serif;\n font-size:30px;\n font-weight:400;\n color:#eee;\n left: 10%;\n top: 5%;\n }\n </style>\n";
5
- //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1,234 @@
1
+ export const TEMPLATE = `
2
+ <div class="cs-loader">
3
+ <div class="cs-loader-inner">
4
+ <label> ●</label>
5
+ <label> ●</label>
6
+ <label> ●</label>
7
+ <label> ●</label>
8
+ <label> ●</label>
9
+ <label> ●</label>
10
+ </div>
11
+ </div>
12
+ `;
13
+ export const STYLE = `
14
+ <style>
15
+ .cs-loader {
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ height: 100%;
20
+ width: 100%;
21
+ }
22
+
23
+ .cs-loader-inner {
24
+ transform: translateY(-50%);
25
+ top: 50%;
26
+ position: absolute;
27
+ width: calc(100% - 200px);
28
+ color: #8e8d8c;
29
+ padding: 0 100px;
30
+ text-align: center;
31
+ }
32
+
33
+
34
+ .cs-loader-inner label {
35
+ font-size: 20px;
36
+ opacity: 0;
37
+ display:inline-block;
38
+ }
39
+
40
+ @keyframes lol {
41
+ 0% {
42
+ opacity: 0;
43
+ transform: translateX(-300px);
44
+ }
45
+ 33% {
46
+ opacity: 1;
47
+ transform: translateX(0px);
48
+ }
49
+ 66% {
50
+ opacity: 1;
51
+ transform: translateX(0px);
52
+ }
53
+ 100% {
54
+ opacity: 0;
55
+ transform: translateX(300px);
56
+ }
57
+ }
58
+
59
+ @-webkit-keyframes lol {
60
+ 0% {
61
+ opacity: 0;
62
+ -webkit-transform: translateX(-300px);
63
+ }
64
+ 33% {
65
+ opacity: 1;
66
+ -webkit-transform: translateX(0px);
67
+ }
68
+ 66% {
69
+ opacity: 1;
70
+ -webkit-transform: translateX(0px);
71
+ }
72
+ 100% {
73
+ opacity: 0;
74
+ -webkit-transform: translateX(300px);
75
+ -moz-transform: translateX(300px);
76
+ }
77
+ }
78
+
79
+ .cs-loader-inner label:nth-child(6) {
80
+ -webkit-animation: lol 3s infinite ease-in-out;
81
+ -moz-animation: lol 3s infinite ease-in-out;
82
+ animation: lol 3s infinite ease-in-out;
83
+ }
84
+
85
+ .cs-loader-inner label:nth-child(5) {
86
+ -webkit-animation: lol 3s 100ms infinite ease-in-out;
87
+ -moz-animation: lol 3s 100ms infinite ease-in-out;
88
+ animation: lol 3s 100ms infinite ease-in-out;
89
+ }
90
+
91
+ .cs-loader-inner label:nth-child(4) {
92
+ -webkit-animation: lol 3s 200ms infinite ease-in-out;
93
+ -moz-animation: lol 3s 200ms infinite ease-in-out;
94
+ animation: lol 3s 200ms infinite ease-in-out;
95
+ }
96
+
97
+ .cs-loader-inner label:nth-child(3) {
98
+ -webkit-animation: lol 3s 300ms infinite ease-in-out;
99
+ -moz-animation: lol 3s 300ms infinite ease-in-out;
100
+ animation: lol 3s 300ms infinite ease-in-out;
101
+ }
102
+
103
+ .cs-loader-inner label:nth-child(2) {
104
+ -webkit-animation: lol 3s 400ms infinite ease-in-out;
105
+ -moz-animation: lol 3s 400ms infinite ease-in-out;
106
+ animation: lol 3s 400ms infinite ease-in-out;
107
+ }
108
+
109
+ .cs-loader-inner label:nth-child(1) {
110
+ -webkit-animation: lol 3s 500ms infinite ease-in-out;
111
+ -moz-animation: lol 3s 500ms infinite ease-in-out;
112
+ animation: lol 3s 500ms infinite ease-in-out;
113
+ }
114
+ </style>
115
+ `;
116
+ export const EXTRA_TEMPLATE = `
117
+ <div class="circ">
118
+ <div class="load">A little patience ...</div>
119
+ <div class="hands"></div>
120
+ <div class="body"></div>
121
+ <div class="head">
122
+ <div class="eye"></div>
123
+ </div>
124
+ </div>
125
+ `;
126
+ export const EXTRA_STYLE = `
127
+ <style>
128
+ html{width: 100%;height: 100%;}
129
+ body{margin: 0px;padding: 0px;background-color: #111;}
130
+
131
+ .eye{
132
+ width: 20px; height: 8px;
133
+ background-color: #eee;
134
+ border-radius:0px 0px 20px 20px;
135
+ position: relative;
136
+ top: 40px;
137
+ left: 10px;
138
+ box-shadow: 40px 0px 0px 0px #eee;
139
+ }
140
+
141
+ .head{
142
+ -webkit-backface-visibility: hidden;
143
+ -moz-backface-visibility: hidden;
144
+ backface-visibility: hidden;
145
+ position: relative;
146
+ margin: -250px auto;
147
+ width: 80px; height: 80px;
148
+ background-color: #111;
149
+ border-radius:50px;
150
+ box-shadow: inset -4px 2px 0px 0px #eee;
151
+ -webkit-animation:node 1.5s infinite alternate;
152
+ -webkit-animation-timing-function:ease-out;
153
+ -moz-animation:node 1.5s infinite alternate;
154
+ -moz-animation-timing-function:ease-out;
155
+ animation:node 1.5s infinite alternate;
156
+ animation-timing-function:ease-out;
157
+ }
158
+ .body{
159
+ position: relative;
160
+ margin: 90px auto;
161
+ width: 140px; height: 120px;
162
+ background-color: #111;
163
+ border-radius: 50px/25px ;
164
+ box-shadow: inset -5px 2px 0px 0px #eee;
165
+ -webkit-animation:node2 1.5s infinite alternate;
166
+ -webkit-animation-timing-function:ease-out;
167
+ -moz-animation:node2 1.5s infinite alternate;
168
+ -moz-animation-timing-function:ease-out;
169
+ animation:node2 1.5s infinite alternate;
170
+ animation-timing-function:ease-out;
171
+ }
172
+
173
+ @keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
174
+ @keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
175
+ @-moz-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
176
+ @-moz-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
177
+ @-webkit-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
178
+ @-webkit-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
179
+
180
+
181
+ .circ{
182
+ -webkit-backface-visibility: hidden;
183
+ -moz-backface-visibility: hidden;
184
+ backface-visibility: hidden;
185
+ margin: 60px auto;
186
+ width: 180px; height: 180px;
187
+ background-color: #111;
188
+ border-radius: 0px 0px 50px 50px;
189
+ position: relative;
190
+ z-index: -1;
191
+ left: 0%;
192
+ top: 20%;
193
+ overflow: hidden;
194
+ }
195
+
196
+ .hands{
197
+ -webkit-backface-visibility: hidden;
198
+ -moz-backface-visibility: hidden;
199
+ backface-visibility: hidden;
200
+ margin-top: 140px;
201
+ width: 120px;height: 120px;
202
+ position: absolute;
203
+ background-color: #111;
204
+ border-radius:20px;
205
+ box-shadow:-1px -4px 0px 0px #eee;
206
+ transform:rotate(45deg);
207
+ -webkit-transform:rotate(45deg);
208
+ -mox-transform:rotate(45deg);
209
+ top:75%;left: 16%;
210
+ z-index: 1;
211
+ -webkit-animation:node2 1.5s infinite alternate;
212
+ -webkit-animation-timing-function:ease-out;
213
+ -moz-animation:node2 1.5s infinite alternate;
214
+ -moz-animation-timing-function:ease-out;
215
+ animation:node2 1.5s infinite alternate;
216
+ animation-timing-function:ease-out;
217
+ }
218
+
219
+ .load{ position: absolute;
220
+ width: 100px; height: 20px;
221
+ margin: -10px auto;
222
+ -webkit-font-smoothing: antialiased;
223
+ -moz-font-smoothing: antialiased;
224
+ font-smoothing: antialiased;
225
+ font-family: 'Julius Sans One', sans-serif;
226
+ font-size:30px;
227
+ font-weight:400;
228
+ color:#eee;
229
+ left: 10%;
230
+ top: 5%;
231
+ }
232
+ </style>
233
+ `;
234
+ //# sourceMappingURL=../../src/lib/components/loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../components/loader.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;CAWvB,CAAC;AAGF,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGpB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;CAS7B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2G1B,CAAC"}
@@ -1,6 +1,7 @@
1
1
  /// <reference types="applepayjs" />
2
2
  /// <reference types="googlepay" />
3
3
  import { IVisaSRCMeta } from "../secure-remote-commerce/interfaces";
4
+ import type { CardValidatorValue, GenericValidatorValue } from "../constants/validators";
4
5
  export declare const PAYMENT_SOURCE_TYPE: {
5
6
  CARD: string;
6
7
  BANK_ACCOUNT: string;
@@ -126,16 +127,13 @@ export interface IFormElement {
126
127
  placeholder?: string;
127
128
  value?: string;
128
129
  }
130
+ export declare type ValidatorFieldsMapKey = CardValidatorValue | GenericValidatorValue;
131
+ export declare type ValidatorFieldsMap = Partial<Record<ValidatorFieldsMapKey, string[]>>;
129
132
  export interface IFormValidation {
130
133
  form_valid?: boolean;
131
134
  invalid_fields?: string[];
132
135
  invalid_showed_fields?: string[];
133
- validators?: IValidators;
134
- }
135
- export interface IValidators {
136
- required?: string[];
137
- cardNumberValidator?: string[];
138
- expireDateValidation?: string[];
136
+ validators?: ValidatorFieldsMap;
139
137
  }
140
138
  export interface IStyles {
141
139
  background_color?: string;
@@ -332,7 +330,7 @@ export interface IPayPalShippingOption {
332
330
  currency: string;
333
331
  type: 'SHIPPING' | 'PICKUP';
334
332
  }
335
- export type IShippingOption = IApplePayShippingOption | IGooglePayShippingOption | IPayPalShippingOption;
333
+ export declare type IShippingOption = IApplePayShippingOption | IGooglePayShippingOption | IPayPalShippingOption;
336
334
  export declare enum WALLET_GATEWAY {
337
335
  STRIPE = "Stripe",
338
336
  FLYPAY = "Flypay",
@@ -361,17 +359,17 @@ export interface AfterpayStyles {
361
359
  button_type?: 'black' | 'mint' | 'white';
362
360
  height?: string;
363
361
  }
364
- export type WalletStyles = {
362
+ export declare type WalletStyles = {
365
363
  apple?: ApplePayStyles;
366
364
  google?: GooglePayStyles;
367
365
  afterpay?: AfterpayStyles;
368
366
  } | object;
369
- export type WalletRawDataInitialization = {
367
+ export declare type WalletRawDataInitialization = {
370
368
  apple?: ApplePayRawDataInitialization;
371
369
  google?: GooglePayRawDataInitialization;
372
370
  } | object;
373
- export type ApplePayRawDataInitialization = ApplePayJS.ApplePayPaymentRequest;
374
- export type GooglePayRawDataInitialization = google.payments.api.IsReadyToPayPaymentMethodSpecification | google.payments.api.PaymentMethodSpecification;
371
+ export declare type ApplePayRawDataInitialization = ApplePayJS.ApplePayPaymentRequest;
372
+ export declare type GooglePayRawDataInitialization = google.payments.api.IsReadyToPayPaymentMethodSpecification | google.payments.api.PaymentMethodSpecification;
375
373
  export interface IWalletMeta {
376
374
  amount_label?: string;
377
375
  country?: string;
@@ -412,4 +410,3 @@ export interface ITokenWalletMeta {
412
410
  client_auth: string;
413
411
  };
414
412
  }
415
- //# sourceMappingURL=param.d.ts.map