@paydock/client-sdk 1.105.1 → 1.105.56-beta

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 (649) hide show
  1. package/README.md +2094 -465
  2. package/bundles/index.cjs +35088 -0
  3. package/bundles/index.cjs.d.ts +4021 -0
  4. package/bundles/index.mjs +35050 -0
  5. package/bundles/index.mjs.d.ts +4021 -0
  6. package/bundles/types/api/api-base.d.ts +54 -0
  7. package/bundles/types/api/api-base.d.ts.map +1 -0
  8. package/{lib → bundles/types}/api/api-charge-internal.d.ts +2 -0
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  10. package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
  11. package/bundles/types/api/api-charge.d.ts.map +1 -0
  12. package/bundles/types/api/api-checkout-internal.d.ts +57 -0
  13. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  14. package/bundles/types/api/api-gateway-internal.d.ts +12 -0
  15. package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
  16. package/{lib → bundles/types}/api/api-internal.d.ts +5 -0
  17. package/bundles/types/api/api-internal.d.ts.map +1 -0
  18. package/{lib → bundles/types}/api/api-service-internal.d.ts +3 -1
  19. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  20. package/{lib → bundles/types}/api/api.d.ts +1 -0
  21. package/bundles/types/api/api.d.ts.map +1 -0
  22. package/bundles/types/api/index.d.ts +2 -0
  23. package/bundles/types/api/index.d.ts.map +1 -0
  24. package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
  25. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  26. package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
  27. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  28. package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +4 -3
  29. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  30. package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
  31. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  32. package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
  33. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  34. package/bundles/types/checkout/checkout.d.ts +86 -0
  35. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  36. package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -0
  37. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  38. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  39. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  40. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  41. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  42. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  43. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  44. package/bundles/types/checkout/helpers/resource-helper.d.ts +5 -0
  45. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  46. package/bundles/types/checkout/helpers/session-helper.d.ts +5 -0
  47. package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
  48. package/bundles/types/checkout/index.d.ts +2 -0
  49. package/bundles/types/checkout/index.d.ts.map +1 -0
  50. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  51. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  52. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  53. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  55. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  56. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  57. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  58. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  59. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  60. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  61. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  62. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  63. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  64. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  65. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  66. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +19 -0
  67. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  68. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  69. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  70. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  71. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  72. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  73. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  74. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  75. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  76. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  77. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  78. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  79. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  80. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  81. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  82. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  83. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  84. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  85. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  86. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
  87. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  88. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +52 -0
  89. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  90. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  91. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  92. package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
  93. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  94. package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +3 -0
  95. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  96. package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
  97. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  98. package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
  99. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  100. package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +5 -0
  101. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  102. package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
  103. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  104. package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
  105. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  106. package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
  107. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  108. package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
  109. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  110. package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +4 -2
  111. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  112. package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
  113. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  114. package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +5 -4
  115. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  116. package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
  117. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  118. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  119. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  120. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
  121. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  122. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
  123. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  124. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
  125. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  126. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
  127. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  128. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
  129. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  130. package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
  131. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  132. package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
  133. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  134. package/{lib → bundles/types}/components/background.d.ts +1 -0
  135. package/bundles/types/components/background.d.ts.map +1 -0
  136. package/{lib → bundles/types}/components/container.d.ts +1 -0
  137. package/bundles/types/components/container.d.ts.map +1 -0
  138. package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
  139. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  140. package/{lib → bundles/types}/components/element-style.d.ts +2 -1
  141. package/bundles/types/components/element-style.d.ts.map +1 -0
  142. package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
  143. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  144. package/{lib/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +1 -0
  145. package/bundles/types/components/form-interceptor.d.ts.map +1 -0
  146. package/{lib → bundles/types}/components/http-core.d.ts +1 -0
  147. package/bundles/types/components/http-core.d.ts.map +1 -0
  148. package/{lib → bundles/types}/components/iframe-event.d.ts +6 -0
  149. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  150. package/{lib → bundles/types}/components/iframe.d.ts +3 -0
  151. package/bundles/types/components/iframe.d.ts.map +1 -0
  152. package/{lib → bundles/types}/components/link.d.ts +6 -3
  153. package/bundles/types/components/link.d.ts.map +1 -0
  154. package/{lib → bundles/types}/components/loader.d.ts +1 -0
  155. package/bundles/types/components/loader.d.ts.map +1 -0
  156. package/{lib → bundles/types}/components/param.d.ts +16 -9
  157. package/bundles/types/components/param.d.ts.map +1 -0
  158. package/{lib → bundles/types}/components/popup.d.ts +1 -0
  159. package/bundles/types/components/popup.d.ts.map +1 -0
  160. package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
  161. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  162. package/{lib → bundles/types}/components/trigger.d.ts +1 -0
  163. package/bundles/types/components/trigger.d.ts.map +1 -0
  164. package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
  165. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  166. package/{lib → bundles/types}/components/wallet-background.d.ts +3 -1
  167. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  168. package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
  169. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  170. package/bundles/types/configs/env/environment.cba.d.ts +29 -0
  171. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  172. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  173. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  174. package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
  175. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  176. package/bundles/types/configs/env/index.d.ts +3 -0
  177. package/bundles/types/configs/env/index.d.ts.map +1 -0
  178. package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
  179. package/bundles/types/configs/sdk.d.ts.map +1 -0
  180. package/{lib → bundles/types}/constants/validators.d.ts +3 -2
  181. package/bundles/types/constants/validators.d.ts.map +1 -0
  182. package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
  183. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  184. package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
  185. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  186. package/bundles/types/external-checkout/index.d.ts +3 -0
  187. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  188. package/{lib → bundles/types}/helper/access-token.d.ts +2 -0
  189. package/bundles/types/helper/access-token.d.ts.map +1 -0
  190. package/{lib → bundles/types}/helper/browser.d.ts +1 -0
  191. package/bundles/types/helper/browser.d.ts.map +1 -0
  192. package/bundles/types/helper/element-id.d.ts +5 -0
  193. package/bundles/types/helper/element-id.d.ts.map +1 -0
  194. package/{lib → bundles/types}/helper/event-emitter.d.ts +2 -0
  195. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  196. package/{lib → bundles/types}/helper/event.d.ts +1 -0
  197. package/bundles/types/helper/event.d.ts.map +1 -0
  198. package/{lib → bundles/types}/helper/ms.d.ts +1 -0
  199. package/bundles/types/helper/ms.d.ts.map +1 -0
  200. package/{lib → bundles/types}/helper/object.d.ts +1 -0
  201. package/bundles/types/helper/object.d.ts.map +1 -0
  202. package/bundles/types/helper/spiner.util.d.ts +6 -0
  203. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  204. package/{lib → bundles/types}/helper/url.d.ts +1 -0
  205. package/bundles/types/helper/url.d.ts.map +1 -0
  206. package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
  207. package/bundles/types/helper/uuid.d.ts.map +1 -0
  208. package/bundles/types/helper/widget-logger.d.ts +9 -0
  209. package/bundles/types/helper/widget-logger.d.ts.map +1 -0
  210. package/bundles/types/index-cba.d.ts +17 -0
  211. package/bundles/types/index-cba.d.ts.map +1 -0
  212. package/bundles/types/index.d.ts +18 -0
  213. package/bundles/types/index.d.ts.map +1 -0
  214. package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
  215. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  216. package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
  217. package/bundles/types/payment-source/index.d.ts.map +1 -0
  218. package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
  219. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  220. package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
  221. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  222. package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
  223. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  224. package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
  225. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  226. package/bundles/types/paypal-data-collector/index.d.ts +23 -0
  227. package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
  228. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +59 -0
  229. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
  230. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
  231. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
  232. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +18 -0
  233. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
  234. package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
  235. package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
  236. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +86 -0
  237. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
  238. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +84 -0
  239. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
  240. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +37 -0
  241. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
  242. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
  243. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
  244. package/bundles/types/secure-remote-commerce/index.d.ts +104 -0
  245. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  246. package/bundles/types/secure-remote-commerce/interfaces.d.ts +159 -0
  247. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  248. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
  249. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
  250. package/{lib/secure-remote-commerce/providers/visa-src/visa-src.d.ts → bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts} +5 -7
  251. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
  252. package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
  253. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  254. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +86 -0
  255. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  256. package/bundles/types/shared/http/http-request.d.ts +14 -0
  257. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  258. package/bundles/types/shared/http/index.d.ts +2 -0
  259. package/bundles/types/shared/http/index.d.ts.map +1 -0
  260. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  261. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  262. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  263. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  264. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  265. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  266. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  267. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  268. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  269. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  270. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  271. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  272. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  273. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  274. package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
  275. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  276. package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
  277. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  278. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
  279. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
  280. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  281. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  282. package/{lib → bundles/types}/wallet-buttons/index.d.ts +5 -0
  283. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  284. package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
  285. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  286. package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +5 -4
  287. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  288. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
  289. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  290. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/afterpay.wallet-service.d.ts +2 -1
  291. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
  292. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/apple.wallet-service.d.ts +4 -3
  293. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
  294. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/flypay-v2.wallet-service.d.ts +5 -5
  295. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
  296. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/flypay.wallet-service.d.ts +7 -6
  297. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
  298. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/google.wallet-service.d.ts +5 -4
  299. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
  300. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/mastercard.wallet-service.d.ts +1 -0
  301. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
  302. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/paypal.wallet-service.d.ts +2 -1
  303. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
  304. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/stripe.wallet-service.d.ts +2 -1
  305. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
  306. package/{lib/wallet-buttons → bundles/types/wallet-buttons/wallet-services}/wallet-service.d.ts +5 -4
  307. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
  308. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +195 -0
  309. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
  310. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +10 -0
  311. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
  312. package/bundles/types/wallet-buttons-express/index.d.ts +131 -0
  313. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
  314. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
  315. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
  316. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
  317. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
  318. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
  319. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  320. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +14 -0
  321. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
  322. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
  323. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
  324. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
  325. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
  326. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
  327. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
  328. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
  329. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
  330. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
  331. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
  332. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
  333. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
  334. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
  335. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
  336. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
  337. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
  338. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +50 -0
  339. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
  340. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +3 -0
  341. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
  342. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
  343. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
  344. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +17 -0
  345. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
  346. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
  347. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
  348. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
  349. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
  350. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
  351. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
  352. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
  353. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
  354. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +47 -0
  355. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
  356. package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
  357. package/bundles/types/widget/configuration.d.ts.map +1 -0
  358. package/{lib → bundles/types}/widget/html-multi-widget.d.ts +6 -4
  359. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  360. package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
  361. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  362. package/{lib → bundles/types}/widget/index.d.ts +2 -1
  363. package/bundles/types/widget/index.d.ts.map +1 -0
  364. package/{lib → bundles/types}/widget/meta.d.ts +1 -0
  365. package/bundles/types/widget/meta.d.ts.map +1 -0
  366. package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
  367. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  368. package/{lib → bundles/types}/widget/style.d.ts +1 -0
  369. package/bundles/types/widget/style.d.ts.map +1 -0
  370. package/bundles/widget.umd.js +33407 -9468
  371. package/bundles/widget.umd.js.d.ts +4021 -0
  372. package/bundles/widget.umd.js.min.d.ts +4021 -0
  373. package/bundles/widget.umd.min.js +61 -1
  374. package/docs/api-canvas3ds.md +158 -0
  375. package/docs/api-checkout-button.md +912 -0
  376. package/docs/api-examples.md +65 -0
  377. package/docs/api-ps-widget.md +585 -0
  378. package/docs/api-vault-display.md +94 -0
  379. package/docs/api-widget.md +2499 -0
  380. package/docs/api-wrapper.md +78 -0
  381. package/docs/canvas3ds-examples.md +242 -0
  382. package/docs/cba-header.md +13 -0
  383. package/docs/cba-license.md +2 -0
  384. package/docs/checkout-examples.md +248 -0
  385. package/docs/click-to-pay-examples.md +267 -0
  386. package/docs/click-to-pay.md +339 -0
  387. package/docs/header.md +15 -0
  388. package/docs/html/layout.html +79 -0
  389. package/docs/html/marked.js +23 -0
  390. package/docs/html/style.css +365 -0
  391. package/docs/install/npm.content.md +16 -0
  392. package/docs/install/npm.example.md +24 -0
  393. package/docs/install/umd.content.md +20 -0
  394. package/docs/install/umd.example.md +6 -0
  395. package/docs/install.md +43 -0
  396. package/docs/install.readme.t.md +17 -0
  397. package/docs/install.slate.t.md +17 -0
  398. package/docs/license.md +2 -0
  399. package/docs/partials/header.hbs +3 -0
  400. package/docs/paypal-data-collector-examples.md +58 -0
  401. package/docs/paypal-data-collector.md +149 -0
  402. package/docs/paypal-save-payment-source-examples.md +63 -0
  403. package/docs/paypal-save-payment-source.md +256 -0
  404. package/docs/ps-examples.md +129 -0
  405. package/docs/vault-display-example.md +132 -0
  406. package/docs/wallet-buttons-examples.md +636 -0
  407. package/docs/wallet-buttons-express-examples.md +201 -0
  408. package/docs/wallet-buttons-express.md +786 -0
  409. package/docs/wallet-buttons.md +622 -0
  410. package/docs/wallet-cba-buttons-examples.md +388 -0
  411. package/docs/widget-examples.md +134 -0
  412. package/examples/multi-html-widget/simple.html +2 -1
  413. package/package.json +208 -80
  414. package/slate.md +227 -191
  415. package/.nvmrc +0 -1
  416. package/api.d.ts +0 -1
  417. package/api.js +0 -1
  418. package/canvas3ds.d.ts +0 -1
  419. package/canvas3ds.js +0 -1
  420. package/checkout-button.d.ts +0 -1
  421. package/checkout-button.js +0 -1
  422. package/inicialization-guide.md +0 -7
  423. package/lib/api/api-base.d.ts +0 -40
  424. package/lib/api/api-base.js +0 -101
  425. package/lib/api/api-base.js.map +0 -1
  426. package/lib/api/api-charge-internal.js +0 -30
  427. package/lib/api/api-charge-internal.js.map +0 -1
  428. package/lib/api/api-charge.js +0 -49
  429. package/lib/api/api-charge.js.map +0 -1
  430. package/lib/api/api-internal.js +0 -13
  431. package/lib/api/api-internal.js.map +0 -1
  432. package/lib/api/api-service-internal.js +0 -18
  433. package/lib/api/api-service-internal.js.map +0 -1
  434. package/lib/api/api.js +0 -62
  435. package/lib/api/api.js.map +0 -1
  436. package/lib/api/index.d.ts +0 -1
  437. package/lib/api/index.js +0 -2
  438. package/lib/api/index.js.map +0 -1
  439. package/lib/canvas-3ds/canvas-3ds.js +0 -157
  440. package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
  441. package/lib/canvas-3ds/index.js +0 -2
  442. package/lib/canvas-3ds/index.js.map +0 -1
  443. package/lib/canvas-3ds/services/gpayments-service.js +0 -181
  444. package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
  445. package/lib/canvas-3ds/services/index.js +0 -2
  446. package/lib/canvas-3ds/services/index.js.map +0 -1
  447. package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
  448. package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
  449. package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -50
  450. package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
  451. package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
  452. package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
  453. package/lib/checkout-button/checkout-button.interface.js +0 -45
  454. package/lib/checkout-button/checkout-button.interface.js.map +0 -1
  455. package/lib/checkout-button/checkout-button.js +0 -266
  456. package/lib/checkout-button/checkout-button.js.map +0 -1
  457. package/lib/checkout-button/checkout-contextual-handler.js +0 -75
  458. package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
  459. package/lib/checkout-button/index.js +0 -85
  460. package/lib/checkout-button/index.js.map +0 -1
  461. package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -25
  462. package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
  463. package/lib/checkout-button/paypal/paypal.runner.js +0 -14
  464. package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
  465. package/lib/checkout-button/runner/base.runner.js +0 -13
  466. package/lib/checkout-button/runner/base.runner.js.map +0 -1
  467. package/lib/checkout-button/runner/contextual.runner.js +0 -40
  468. package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
  469. package/lib/checkout-button/runner/index.js +0 -11
  470. package/lib/checkout-button/runner/index.js.map +0 -1
  471. package/lib/checkout-button/runner/popup.runner.js +0 -68
  472. package/lib/checkout-button/runner/popup.runner.js.map +0 -1
  473. package/lib/checkout-button/runner/redirect.runner.js +0 -15
  474. package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
  475. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -64
  476. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
  477. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
  478. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
  479. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
  480. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
  481. package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
  482. package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
  483. package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
  484. package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
  485. package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
  486. package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
  487. package/lib/components/ability-guard.js +0 -44
  488. package/lib/components/ability-guard.js.map +0 -1
  489. package/lib/components/background.js +0 -193
  490. package/lib/components/background.js.map +0 -1
  491. package/lib/components/container.js +0 -63
  492. package/lib/components/container.js.map +0 -1
  493. package/lib/components/dispatcher.js +0 -39
  494. package/lib/components/dispatcher.js.map +0 -1
  495. package/lib/components/element-style.js +0 -52
  496. package/lib/components/element-style.js.map +0 -1
  497. package/lib/components/flypay-iframe-event.js +0 -28
  498. package/lib/components/flypay-iframe-event.js.map +0 -1
  499. package/lib/components/form-Interceptor.js +0 -38
  500. package/lib/components/form-Interceptor.js.map +0 -1
  501. package/lib/components/http-core.js +0 -57
  502. package/lib/components/http-core.js.map +0 -1
  503. package/lib/components/iframe-event.js +0 -75
  504. package/lib/components/iframe-event.js.map +0 -1
  505. package/lib/components/iframe.js +0 -62
  506. package/lib/components/iframe.js.map +0 -1
  507. package/lib/components/link.js +0 -59
  508. package/lib/components/link.js.map +0 -1
  509. package/lib/components/loader.js +0 -234
  510. package/lib/components/loader.js.map +0 -1
  511. package/lib/components/param.js +0 -147
  512. package/lib/components/param.js.map +0 -1
  513. package/lib/components/popup.js +0 -104
  514. package/lib/components/popup.js.map +0 -1
  515. package/lib/components/storage-dispatcher.js +0 -75
  516. package/lib/components/storage-dispatcher.js.map +0 -1
  517. package/lib/components/trigger.js +0 -49
  518. package/lib/components/trigger.js.map +0 -1
  519. package/lib/components/vault-display-iframe-event.js +0 -27
  520. package/lib/components/vault-display-iframe-event.js.map +0 -1
  521. package/lib/components/wallet-background.js +0 -63
  522. package/lib/components/wallet-background.js.map +0 -1
  523. package/lib/components/wallet-trigger.js +0 -27
  524. package/lib/components/wallet-trigger.js.map +0 -1
  525. package/lib/configs/env/env.js +0 -117
  526. package/lib/configs/env/env.js.map +0 -1
  527. package/lib/configs/sdk.js +0 -16
  528. package/lib/configs/sdk.js.map +0 -1
  529. package/lib/constants/validators.js +0 -42
  530. package/lib/constants/validators.js.map +0 -1
  531. package/lib/external-checkout/builder.js +0 -45
  532. package/lib/external-checkout/builder.js.map +0 -1
  533. package/lib/external-checkout/checker.js +0 -22
  534. package/lib/external-checkout/checker.js.map +0 -1
  535. package/lib/external-checkout/index.d.ts +0 -2
  536. package/lib/external-checkout/index.js +0 -3
  537. package/lib/external-checkout/index.js.map +0 -1
  538. package/lib/helper/access-token.js +0 -44
  539. package/lib/helper/access-token.js.map +0 -1
  540. package/lib/helper/browser.js +0 -79
  541. package/lib/helper/browser.js.map +0 -1
  542. package/lib/helper/event-emitter.js +0 -23
  543. package/lib/helper/event-emitter.js.map +0 -1
  544. package/lib/helper/event.js +0 -23
  545. package/lib/helper/event.js.map +0 -1
  546. package/lib/helper/ms.js +0 -32
  547. package/lib/helper/ms.js.map +0 -1
  548. package/lib/helper/object.js +0 -6
  549. package/lib/helper/object.js.map +0 -1
  550. package/lib/helper/url.js +0 -11
  551. package/lib/helper/url.js.map +0 -1
  552. package/lib/helper/uuid.js +0 -26
  553. package/lib/helper/uuid.js.map +0 -1
  554. package/lib/index.d.ts +0 -15
  555. package/lib/index.js +0 -15
  556. package/lib/index.js.map +0 -1
  557. package/lib/payment-source/builder.js +0 -49
  558. package/lib/payment-source/builder.js.map +0 -1
  559. package/lib/payment-source/index.js +0 -2
  560. package/lib/payment-source/index.js.map +0 -1
  561. package/lib/payment-source-widget/html-payment-source-widget.js +0 -172
  562. package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
  563. package/lib/payment-source-widget/index.js +0 -35
  564. package/lib/payment-source-widget/index.js.map +0 -1
  565. package/lib/payment-source-widget/interfaces.js +0 -2
  566. package/lib/payment-source-widget/interfaces.js.map +0 -1
  567. package/lib/payment-source-widget/payment-source-widget.js +0 -142
  568. package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
  569. package/lib/secure-remote-commerce/index.d.ts +0 -1
  570. package/lib/secure-remote-commerce/index.js +0 -2
  571. package/lib/secure-remote-commerce/index.js.map +0 -1
  572. package/lib/secure-remote-commerce/interfaces.d.ts +0 -71
  573. package/lib/secure-remote-commerce/interfaces.js +0 -28
  574. package/lib/secure-remote-commerce/interfaces.js.map +0 -1
  575. package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
  576. package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
  577. package/lib/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -7
  578. package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
  579. package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
  580. package/lib/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
  581. package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
  582. package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
  583. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
  584. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
  585. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -8
  586. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
  587. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
  588. package/lib/secure-remote-commerce/secure-remote-commerce.d.ts +0 -163
  589. package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -239
  590. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
  591. package/lib/vault-display-widget/index.js +0 -14
  592. package/lib/vault-display-widget/index.js.map +0 -1
  593. package/lib/vault-display-widget/vault-display-widget.js +0 -99
  594. package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
  595. package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
  596. package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
  597. package/lib/wallet-buttons/apple.wallet-service.js +0 -324
  598. package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
  599. package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -165
  600. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
  601. package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
  602. package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
  603. package/lib/wallet-buttons/google.wallet-service.js +0 -301
  604. package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
  605. package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
  606. package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
  607. package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
  608. package/lib/wallet-buttons/index.js +0 -128
  609. package/lib/wallet-buttons/index.js.map +0 -1
  610. package/lib/wallet-buttons/interfaces.js +0 -1
  611. package/lib/wallet-buttons/interfaces.js.map +0 -1
  612. package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
  613. package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
  614. package/lib/wallet-buttons/paypal.wallet-service.js +0 -144
  615. package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
  616. package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
  617. package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
  618. package/lib/wallet-buttons/wallet-buttons.js +0 -479
  619. package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
  620. package/lib/wallet-buttons/wallet-service.js +0 -60
  621. package/lib/wallet-buttons/wallet-service.js.map +0 -1
  622. package/lib/widget/configuration.js +0 -260
  623. package/lib/widget/configuration.js.map +0 -1
  624. package/lib/widget/html-multi-widget.js +0 -422
  625. package/lib/widget/html-multi-widget.js.map +0 -1
  626. package/lib/widget/html-widget.js +0 -127
  627. package/lib/widget/html-widget.js.map +0 -1
  628. package/lib/widget/index.js +0 -132
  629. package/lib/widget/index.js.map +0 -1
  630. package/lib/widget/meta.js +0 -8
  631. package/lib/widget/meta.js.map +0 -1
  632. package/lib/widget/multi-widget.js +0 -437
  633. package/lib/widget/multi-widget.js.map +0 -1
  634. package/lib/widget/style.js +0 -204
  635. package/lib/widget/style.js.map +0 -1
  636. package/payment-source-widget.d.ts +0 -1
  637. package/payment-source-widget.js +0 -1
  638. package/tslint.json +0 -129
  639. package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
  640. package/typings/globals/jasmine/index.d.ts +0 -576
  641. package/typings/globals/jasmine-ajax/index.d.ts +0 -83
  642. package/typings/globals/jquery/index.d.ts +0 -3759
  643. package/typings/index.d.ts +0 -4
  644. package/vault-display-widget.d.ts +0 -1
  645. package/vault-display-widget.js +0 -1
  646. package/vendors/zipmoney.d.ts +0 -18
  647. package/vendors/zipmoney.js +0 -2
  648. package/widget.d.ts +0 -1
  649. package/widget.js +0 -1
@@ -1,104 +0,0 @@
1
- import { EventEmitter } from '../helper/event-emitter';
2
- import { TEMPLATE as LOADER_TEMPLATE, EXTRA_TEMPLATE as LOADER_EXTRA_TEMPLATE, STYLE as LOADER_STYLE, EXTRA_STYLE as LOADER_EXTRA_STYLE, } from "./loader";
3
- import { Event } from "../helper/event";
4
- import { ENV } from "../configs/env/env";
5
- import { Browser } from "../helper/browser";
6
- const EVENT_CLOSE = 'close';
7
- const ERROR_STYLES = `<style>
8
- .error-wrapper {
9
- color: #ff0000;
10
- display: flex;
11
- justify-content: center;
12
- align-items: center;
13
- height: 100%;
14
- }
15
- </style>`;
16
- const ERROR_TEMPLATE = `<div class="error-wrapper"><div>{{error}}</div></div>`;
17
- export class Popup {
18
- constructor() {
19
- this.configs = {
20
- width: 500,
21
- height: 500,
22
- scrollbars: true,
23
- resizable: true,
24
- top: 0,
25
- left: 0,
26
- };
27
- this.eventEmitter = new EventEmitter();
28
- }
29
- isExist() {
30
- return !!(this.getElement() && !this.getElement().closed);
31
- }
32
- getElement() {
33
- return this.window;
34
- }
35
- init() {
36
- if (!Browser.isSupportPopUp())
37
- return this.window = window;
38
- let configs = this.getConfigs();
39
- this.window = window.open('about:blank', '_blank', `noopener=false,width=${configs.width},height=${configs.height},top=${configs.top},left=${configs.left},scrollbars=${configs.scrollbars ? 'yes' : 'no'},resizable=${configs.resizable ? 'yes' : 'no'}`);
40
- this.showLoader();
41
- let timer = setInterval(() => {
42
- if (!this.isExist()) {
43
- clearInterval(timer);
44
- this.eventEmitter.emit(EVENT_CLOSE, {});
45
- }
46
- }, 200);
47
- }
48
- redirect(url) {
49
- if (!this.isExist())
50
- return;
51
- this.window.location.href = url;
52
- }
53
- close() {
54
- if (!this.isExist() || !this.getElement().close)
55
- return;
56
- this.getElement().close();
57
- this.window = null;
58
- }
59
- focus() {
60
- if (!this.isExist() || !this.getElement().focus)
61
- return;
62
- this.getElement().focus();
63
- }
64
- setConfigs(configs) {
65
- this.configs = Object.assign(this.configs, configs);
66
- }
67
- getNetConfigs() {
68
- return Object.assign({}, this.configs);
69
- }
70
- getConfigs() {
71
- let configs = this.getNetConfigs();
72
- configs.left = window.screenX + (window.screen.width / 2 - configs.width / 2);
73
- configs.top = window.screenY + (window.screen.height / 2 - configs.height / 2);
74
- return configs;
75
- }
76
- onClose(cb) {
77
- this.eventEmitter.subscribe(EVENT_CLOSE, cb);
78
- }
79
- initError(error) {
80
- this.getElement().document.write(".");
81
- let body = this.getElement().document.body || this.getElement().document.getElementsByTagName('body')[0];
82
- body.innerHTML = ERROR_STYLES + ERROR_TEMPLATE.replace('{{error}}', error);
83
- }
84
- showLoader() {
85
- this.getElement().document.write(".");
86
- let body = this.getElement().document.body || this.getElement().document.getElementsByTagName('body')[0];
87
- body.innerHTML = LOADER_STYLE + LOADER_TEMPLATE;
88
- if (this.env !== ENV.STAGING || this.env !== ENV.STAGING_1 || this.env !== ENV.STAGING_2 || this.env !== ENV.STAGING_3 || this.env !== ENV.STAGING_4 || this.env !== ENV.STAGING_5 ||
89
- this.env !== ENV.STAGING_6 || this.env !== ENV.STAGING_7 || this.env !== ENV.STAGING_8 || this.env !== ENV.STAGING_9 || this.env !== ENV.STAGING_10 ||
90
- this.env !== ENV.STAGING_11 || this.env !== ENV.STAGING_12 || this.env !== ENV.STAGING_13 || this.env !== ENV.STAGING_14 || this.env !== ENV.STAGING_15)
91
- return;
92
- let clickCount = 0;
93
- Event.subscribe('click', body, () => {
94
- clickCount++;
95
- if (clickCount !== 5)
96
- return;
97
- body.innerHTML = LOADER_EXTRA_STYLE + LOADER_EXTRA_TEMPLATE;
98
- });
99
- }
100
- setEnv(env) {
101
- this.env = env;
102
- }
103
- }
104
- //# sourceMappingURL=../../src/lib/components/popup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popup.js","sourceRoot":"","sources":["../../components/popup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACH,QAAQ,IAAI,eAAe,EAAE,cAAc,IAAI,qBAAqB,EAAE,KAAK,IAAI,YAAY,EAC3F,WAAW,IAAI,kBAAkB,GACpC,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,YAAY,GAAG;;;;;;;;iBAQJ,CAAC;AAElB,MAAM,cAAc,GAAG,uDAAuD,CAAC;AAa/E,MAAM,OAAO,KAAK;IAcd;QAT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I,CAAC,GAAG,KAAK,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU;YACnJ,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU;YACvJ,OAAO;QAEX,IAAI,UAAU,GAAG,CAAC,CAAC;QACnB,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE;YAChC,UAAU,EAAG,CAAA;YACb,IAAI,UAAU,KAAK,CAAC;gBAChB,OAAO;YAEX,IAAI,CAAC,SAAS,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;QAChE,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,GAAW;QACrB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;CACJ"}
@@ -1,75 +0,0 @@
1
- import { Env, WIDGET_URL } from '../configs/env/env';
2
- import { Uuid } from '../helper/uuid';
3
- import { EVENT, IFrameEvent } from './iframe-event';
4
- const STORAGE_DISPATCHER_URI = '/storage-dispatcher';
5
- const STORAGE_DISPATCHER_ID = 'pd-storage-dispatcher';
6
- const LOG_PREFIX = '[Paydock:StorageDispatcher]';
7
- export var StorageDataIntent;
8
- (function (StorageDataIntent) {
9
- StorageDataIntent["WIDGET_SESSION"] = "widget-session";
10
- })(StorageDataIntent || (StorageDataIntent = {}));
11
- export class StorageDispatcher {
12
- constructor(messageSource) {
13
- this.messageSource = messageSource;
14
- this.defaultPayload = {
15
- destination: 'widget.paydock',
16
- };
17
- this.env = new Env(WIDGET_URL);
18
- this.defaultPayload.source = messageSource;
19
- this.iframeEvent = new IFrameEvent(window);
20
- }
21
- create(onLoadCallback) {
22
- this.onLoadCallback = onLoadCallback;
23
- if (this.dispatcherFrame)
24
- this.destroy();
25
- this.widgetId = Uuid.generate();
26
- this.setupIframeEventListeners();
27
- const iFrame = document.createElement('iframe');
28
- iFrame.setAttribute('src', this.env.getConf().url + STORAGE_DISPATCHER_URI + `?widgetId=${this.widgetId}`);
29
- iFrame.setAttribute('id', STORAGE_DISPATCHER_ID);
30
- iFrame.style.display = 'none';
31
- document.body.appendChild(iFrame);
32
- this.dispatcherFrame = iFrame;
33
- console.info(`${LOG_PREFIX} initialized.`);
34
- return iFrame;
35
- }
36
- destroy() {
37
- if (this.dispatcherFrame && this.dispatcherFrame.parentNode) {
38
- this.dispatcherFrame.parentNode.removeChild(this.dispatcherFrame);
39
- }
40
- this.iframeEvent.clear();
41
- this.widgetId = undefined;
42
- this.dispatcherFrame = undefined;
43
- }
44
- push(payload, pushCallbacks) {
45
- var _a;
46
- this.pushCallbacks = pushCallbacks;
47
- if (!this.dispatcherFrame) {
48
- console.error(`${LOG_PREFIX} dispatcher is not initialized.`);
49
- return;
50
- }
51
- const body = Object.assign(Object.assign({}, this.defaultPayload), payload);
52
- (_a = this.dispatcherFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(body, this.env.getConf().url);
53
- }
54
- setEnv(env, alias) {
55
- this.env.setEnv(env, alias);
56
- this.create(this.onLoadCallback);
57
- }
58
- setupIframeEventListeners() {
59
- if (!this.widgetId)
60
- return;
61
- this.iframeEvent.on(EVENT.AFTER_LOAD, this.widgetId, (_event) => {
62
- var _a;
63
- (_a = this.onLoadCallback) === null || _a === void 0 ? void 0 : _a.call(this);
64
- });
65
- this.iframeEvent.on(EVENT.DISPATCH_SUCCESS, this.widgetId, (_event) => {
66
- var _a, _b;
67
- (_b = (_a = this.pushCallbacks) === null || _a === void 0 ? void 0 : _a.onSuccess) === null || _b === void 0 ? void 0 : _b.call(_a);
68
- });
69
- this.iframeEvent.on(EVENT.DISPATCH_ERROR, this.widgetId, (_event) => {
70
- var _a, _b;
71
- (_b = (_a = this.pushCallbacks) === null || _a === void 0 ? void 0 : _a.onError) === null || _b === void 0 ? void 0 : _b.call(_a);
72
- });
73
- }
74
- }
75
- //# sourceMappingURL=../../src/lib/components/storage-dispatcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage-dispatcher.js","sourceRoot":"","sources":["../../components/storage-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AACrD,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,UAAU,GAAG,6BAA6B,CAAC;AAEjD,MAAM,CAAN,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IACzB,sDAAiC,CAAA;AACrC,CAAC,EAFW,iBAAiB,KAAjB,iBAAiB,QAE5B;AAcD,MAAM,OAAO,iBAAiB;IAW1B,YAAmB,aAAqB;QAArB,kBAAa,GAAb,aAAa,CAAQ;QAJhC,mBAAc,GAA6D;YAC/E,WAAW,EAAE,gBAAgB;SAChC,CAAC;QAGE,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,aAAa,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,cAA0B;QACpC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,IAAI,IAAI,CAAC,eAAe;YACpB,IAAI,CAAC,OAAO,EAAE,CAAC;QAEnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChC,IAAI,CAAC,yBAAyB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C,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE;IAClF,CAAC;IAEM,MAAM,CAAC,GAAW,EAAE,KAAc;QACrC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAE5B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,CAAC;IAEO,yBAAyB;QAC7B,IAAI,CAAC,IAAI,CAAC,QAAQ;YACd,OAAO;QAEX,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;;YAC5D,MAAA,IAAI,CAAC,cAAc,+CAAnB,IAAI,EAAoB;QAC5B,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;;YAClE,YAAA,IAAI,CAAC,aAAa,0CAAE,SAAS,mDAAK;QACtC,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;;YAChE,YAAA,IAAI,CAAC,aAAa,0CAAE,OAAO,mDAAK;QACpC,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -1,49 +0,0 @@
1
- import { ObjectHelper } from '../helper/object';
2
- /**
3
- * Interface for classes that represent a trigger data.
4
- * @interface ITriggerData
5
- *
6
- * @param {string} [configuration_token]
7
- * @param {string} [tab_number]
8
- * @param {string} [elements]
9
- * @param {string} [form_values]
10
- * */
11
- /**
12
- * List of available triggers
13
- *
14
- * @type {object}
15
- * @param {string} SUBMIT_FORM=submit_form
16
- * @param {string} CHANGE_TAB=tab
17
- * @param {string} HIDE_ELEMENTS=hide_elements
18
- * @param {string} SHOW_ELEMENTS=show_elements
19
- * @param {string} REFRESH_CHECKOUT=refresh_checkout
20
- * @param {string} UPDATE_FORM_VALUES=update_form_values
21
- * @param {string} INIT_CHECKOUT=init_checkout
22
- */
23
- export const TRIGGER = {
24
- SUBMIT_FORM: 'submit_form',
25
- CHANGE_TAB: 'tab',
26
- HIDE_ELEMENTS: 'hide_elements',
27
- SHOW_ELEMENTS: 'show_elements',
28
- REFRESH_CHECKOUT: 'refresh_checkout',
29
- UPDATE_FORM_VALUES: 'update_form_values',
30
- INIT_CHECKOUT: 'init_checkout',
31
- };
32
- export class Trigger {
33
- constructor(iFrame) {
34
- this.iFrame = iFrame;
35
- }
36
- push(triggerName, data = {}) {
37
- if (!this.iFrame.isExist())
38
- return;
39
- if (ObjectHelper.values(TRIGGER).indexOf(triggerName) === -1)
40
- console.warn('unsupported trigger type');
41
- let body = {
42
- trigger: triggerName,
43
- destination: 'widget.paydock',
44
- data: data,
45
- };
46
- this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(body), '*');
47
- }
48
- }
49
- //# sourceMappingURL=../../src/lib/components/trigger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../components/trigger.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAgBhD;;;;;;;;KAQK;AAEL;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,aAAa,EAAE,eAAe;CACjC,CAAC;AAEF,MAAM,OAAO,OAAO;IAIhB,YAAY,MAAc;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,IAAI,CAAC,WAAmB,EAAE,OAAqB,EAAE;QACpD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACtB,OAAO;QAEX,IAAI,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACxD,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAE7C,IAAI,IAAI,GAAa;YACjB,OAAO,EAAE,WAAW;YACpB,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,IAAI;SACb,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IAClF,CAAC;CACJ"}
@@ -1,27 +0,0 @@
1
- import { IFrameEvent } from './iframe-event';
2
- var VAULT_DISPLAY_EVENT;
3
- (function (VAULT_DISPLAY_EVENT) {
4
- VAULT_DISPLAY_EVENT["AFTER_LOAD"] = "after_load";
5
- VAULT_DISPLAY_EVENT["SYSTEM_ERROR"] = "system_error";
6
- VAULT_DISPLAY_EVENT["CVV_SECURE_CODE_REQUESTED"] = "cvv_secure_code_requested";
7
- VAULT_DISPLAY_EVENT["CARD_NUMBER_SECURE_CODE_REQUESTED"] = "card_number_secure_code_requested";
8
- VAULT_DISPLAY_EVENT["ACCESS_FORBIDDEN"] = "access_forbidden";
9
- VAULT_DISPLAY_EVENT["SESSION_EXPIRED"] = "session_expired";
10
- VAULT_DISPLAY_EVENT["OPERATION_FORBIDDEN"] = "operation_forbidden";
11
- })(VAULT_DISPLAY_EVENT || (VAULT_DISPLAY_EVENT = {}));
12
- export class VaultDisplayIframeEvent extends IFrameEvent {
13
- on(eventName, widgetId, cb) {
14
- for (let event in VAULT_DISPLAY_EVENT) {
15
- if (!VAULT_DISPLAY_EVENT.hasOwnProperty(event))
16
- continue;
17
- if (eventName === VAULT_DISPLAY_EVENT[event]) {
18
- this.listeners.push({
19
- event: eventName,
20
- listener: cb,
21
- widget_id: widgetId,
22
- });
23
- }
24
- }
25
- }
26
- }
27
- //# sourceMappingURL=../../src/lib/components/vault-display-iframe-event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vault-display-iframe-event.js","sourceRoot":"","sources":["../../components/vault-display-iframe-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,IAAK,mBAQJ;AARD,WAAK,mBAAmB;IACpB,gDAAyB,CAAA;IACzB,oDAA6B,CAAA;IAC7B,8EAAuD,CAAA;IACvD,8FAAuE,CAAA;IACvE,4DAAqC,CAAA;IACrC,0DAAmC,CAAA;IACnC,kEAA2C,CAAA;AAC/C,CAAC,EARI,mBAAmB,KAAnB,mBAAmB,QAQvB;AAED,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IAC7C,EAAE,CAAI,SAAiB,EAAE,QAAgB,EAAE,EAAqB;QACnE,KAAK,IAAI,KAAK,IAAI,mBAAmB,EAAE;YACnC,IAAI,CAAC,mBAAmB,CAAC,cAAc,CAAC,KAAK,CAAC;gBAC1C,SAAS;YAEb,IAAI,SAAS,KAAK,mBAAmB,CAAC,KAAK,CAAC,EAAE;gBAC1C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;oBAChB,KAAK,EAAE,SAAS;oBAChB,QAAQ,EAAE,EAAE;oBACZ,SAAS,EAAE,QAAQ;iBACtB,CAAC,CAAC;aACN;SACJ;IACL,CAAC;CACJ"}
@@ -1,63 +0,0 @@
1
- import { Background } from "./background";
2
- const TEMPLATE = `
3
- <div class="checkout-container">
4
- <div class="checkout-bg-logo"></div>
5
- <a href="#" data-close>Close</a>
6
- </div>
7
- `;
8
- const STYLES = `
9
- .checkout-bg-logo {
10
- display: block;
11
- background: url({{url}}) no-repeat;
12
- width: 100px;
13
- height: 50px;
14
- margin: 0 auto;
15
- border-radius: 10px;
16
- background-size: contain;
17
- }
18
- `;
19
- export class WalletBackground extends Background {
20
- constructor(bgImageUrl, hideCloseButton = false) {
21
- super();
22
- this.bgImageUrl = bgImageUrl;
23
- this.hideCloseButton = hideCloseButton;
24
- this.imageStyle = null;
25
- }
26
- initControl() {
27
- if (!this.imageStyle)
28
- this.createImageStyles();
29
- super.initControl();
30
- }
31
- clear() {
32
- if (this.imageStyle)
33
- this.imageStyle.parentNode.removeChild(this.imageStyle);
34
- this.imageStyle = null;
35
- super.clear();
36
- }
37
- createTemplate() {
38
- let body = document.body || document.getElementsByTagName("body")[0];
39
- let template = String(TEMPLATE);
40
- if (this.hideCloseButton === true)
41
- template = template.replace('<a href="#" data-close>Close</a>', '');
42
- this.overlay = document.createElement("div");
43
- this.overlay.classList.add("checkout-overlay");
44
- this.overlay.setAttribute("checkout-overlay", " ");
45
- this.overlay.innerHTML = template;
46
- body.appendChild(this.overlay);
47
- setTimeout(() => {
48
- if (this.isInit())
49
- this.overlay.classList.add("display");
50
- }, 5);
51
- }
52
- createImageStyles() {
53
- let head = document.head || document.getElementsByTagName("head")[0];
54
- let css = String(STYLES);
55
- let container = (document.querySelector(".checkout-container"));
56
- css = css.replace("{{url}}", this.bgImageUrl);
57
- this.imageStyle = document.createElement("style");
58
- this.imageStyle.type = "text/css";
59
- this.imageStyle.appendChild(document.createTextNode(css));
60
- head.appendChild(this.imageStyle);
61
- }
62
- }
63
- //# sourceMappingURL=../../src/lib/components/wallet-background.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wallet-background.js","sourceRoot":"","sources":["../../components/wallet-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,QAAQ,GAAG;;;;;CAKhB,CAAC;AAEF,MAAM,MAAM,GAAG;;;;;;;;;;CAUd,CAAC;AAEF,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAG5C,YAAsB,UAAkB,EAAY,kBAA2B,KAAK;QAChF,KAAK,EAAE,CAAC;QADU,eAAU,GAAV,UAAU,CAAQ;QAAY,oBAA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AAC;IACV,CAAC;IAEO,iBAAiB;QACrB,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,IAAI,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAEzB,IAAI,SAAS,GAA6B,CACtC,QAAQ,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAChD,CAAC;QACF,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAE9C,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QAE1D,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;CACJ"}
@@ -1,27 +0,0 @@
1
- import { ObjectHelper } from '../helper/object';
2
- import { Trigger } from "./trigger";
3
- export const TRIGGER = {
4
- CLOSE: 'close',
5
- UPDATED: 'updated',
6
- };
7
- export class WalletTrigger extends Trigger {
8
- constructor(iFrame, widgetId) {
9
- super(iFrame);
10
- this.widgetId = widgetId;
11
- }
12
- push(triggerName, data = {}) {
13
- if (!this.iFrame.isExist())
14
- return;
15
- if (ObjectHelper.values(TRIGGER).indexOf(triggerName) === -1)
16
- console.warn('unsupported trigger type');
17
- let body = {
18
- message_source: 'wallet.paydock',
19
- reference_id: this.widgetId,
20
- trigger: triggerName,
21
- destination: 'widget.paydock',
22
- data: data,
23
- };
24
- this.iFrame.getElement().contentWindow.postMessage(JSON.stringify(body), '*');
25
- }
26
- }
27
- //# sourceMappingURL=../../src/lib/components/wallet-trigger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wallet-trigger.js","sourceRoot":"","sources":["../../components/wallet-trigger.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACrB,CAAC;AAEF,MAAM,OAAO,aAAc,SAAQ,OAAO;IACtC,YAAY,MAAc,EAAY,QAAgB;QACpD,KAAK,CAAC,MAAM,CAAC,CAAC;QADsB,aAAQ,GAAR,QAAQ,CAAQ;IAEtD,CAAC;IAEM,IAAI,CAAC,WAAmB,EAAE,OAAY,EAAE;QAC3C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACtB,OAAO;QAEX,IAAI,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACxD,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAE7C,IAAI,IAAI,GAAa;YACjB,cAAc,EAAE,gBAAgB;YAChC,YAAY,EAAE,IAAI,CAAC,QAAQ;YAC3B,OAAO,EAAE,WAAW;YACpB,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,IAAI;SACb,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IAClF,CAAC;CACJ"}
@@ -1,117 +0,0 @@
1
- export const ENV = {
2
- SANDBOX: 'sandbox',
3
- SANDBOX_KOVENA: 'sandbox-kovena',
4
- SANDBOX_DEMO: 'sandbox-demo',
5
- SANDBOX_DEMO_KOVENA: 'sandbox-demo-kovena',
6
- PROD: 'production',
7
- STAGING: 'staging',
8
- STAGING_1: 'staging_1',
9
- STAGING_2: 'staging_2',
10
- STAGING_3: 'staging_3',
11
- STAGING_4: 'staging_4',
12
- STAGING_5: 'staging_5',
13
- STAGING_6: 'staging_6',
14
- STAGING_7: 'staging_7',
15
- STAGING_8: 'staging_8',
16
- STAGING_9: 'staging_9',
17
- STAGING_10: 'staging_10',
18
- STAGING_11: 'staging_11',
19
- STAGING_12: 'staging_12',
20
- STAGING_13: 'staging_13',
21
- STAGING_14: 'staging_14',
22
- STAGING_15: 'staging_15',
23
- };
24
- export const WIDGET_URL = [
25
- { env: ENV.SANDBOX, url: 'https://widget-sandbox.' },
26
- { env: ENV.SANDBOX_KOVENA, url: 'https://widget-sandbox.' },
27
- { env: ENV.SANDBOX_DEMO, url: 'https://widget-sandbox-demo.' },
28
- { env: ENV.SANDBOX_DEMO_KOVENA, url: 'https://widget-sandbox-demo.' },
29
- { env: ENV.PROD, url: 'https://widget.' },
30
- { env: ENV.STAGING, url: 'https://widsta.' },
31
- { env: ENV.STAGING_1, url: 'https://widsta-1.' },
32
- { env: ENV.STAGING_2, url: 'https://widsta-2.' },
33
- { env: ENV.STAGING_3, url: 'https://widsta-3.' },
34
- { env: ENV.STAGING_4, url: 'https://widsta-4.' },
35
- { env: ENV.STAGING_5, url: 'https://widsta-5.' },
36
- { env: ENV.STAGING_6, url: 'https://widsta-6.' },
37
- { env: ENV.STAGING_7, url: 'https://widsta-7.' },
38
- { env: ENV.STAGING_8, url: 'https://widsta-8.' },
39
- { env: ENV.STAGING_9, url: 'https://widsta-9.' },
40
- { env: ENV.STAGING_10, url: 'https://widsta-10.' },
41
- { env: ENV.STAGING_11, url: 'https://widsta-11.' },
42
- { env: ENV.STAGING_12, url: 'https://widsta-12.' },
43
- { env: ENV.STAGING_13, url: 'https://widsta-13.' },
44
- { env: ENV.STAGING_14, url: 'https://widsta-14.' },
45
- { env: ENV.STAGING_15, url: 'https://widsta-15.' },
46
- ];
47
- export const API_URL = [
48
- { env: ENV.SANDBOX, url: 'https://api-sandbox.' },
49
- { env: ENV.PROD, url: 'https://api.' },
50
- { env: ENV.STAGING, url: 'https://apista.' },
51
- { env: ENV.STAGING_1, url: 'https://apista-1.' },
52
- { env: ENV.STAGING_2, url: 'https://apista-2.' },
53
- { env: ENV.STAGING_3, url: 'https://apista-3.' },
54
- { env: ENV.STAGING_4, url: 'https://apista-4.' },
55
- { env: ENV.STAGING_5, url: 'https://apista-5.' },
56
- { env: ENV.STAGING_6, url: 'https://apista-6.' },
57
- { env: ENV.STAGING_7, url: 'https://apista-7.' },
58
- { env: ENV.STAGING_8, url: 'https://apista-8.' },
59
- { env: ENV.STAGING_9, url: 'https://apista-9.' },
60
- { env: ENV.STAGING_10, url: 'https://apista-10.' },
61
- { env: ENV.STAGING_11, url: 'https://apista-11.' },
62
- { env: ENV.STAGING_12, url: 'https://apista-12.' },
63
- { env: ENV.STAGING_13, url: 'https://apista-13.' },
64
- { env: ENV.STAGING_14, url: 'https://apista-14.' },
65
- { env: ENV.STAGING_15, url: 'https://apista-15.' },
66
- ];
67
- const ADDITIONAL_ENV = [ENV.SANDBOX_KOVENA, ENV.SANDBOX_DEMO_KOVENA];
68
- const REGEX_ALIAS = '^([a-zA-Z0-9](?:(?:[a-zA-Z0-9-.]*(?!-)\\.(?![-.]))*[a-zA-Z0-9]+)?)$';
69
- export const DEFAULT_ENV = ENV.SANDBOX;
70
- export const DEFAULT_ALIAS = {
71
- PAYDOCK: 'paydock.com',
72
- KOVENA: 'kovena.com',
73
- };
74
- export class Env {
75
- constructor(configs, defaultEnv = DEFAULT_ENV) {
76
- this.configs = configs;
77
- this.setEnv(defaultEnv);
78
- }
79
- setEnv(env, alias) {
80
- if (!this.isValidMode(this.configs, env))
81
- throw new Error('unknown env: ' + env);
82
- this.env = env;
83
- if (alias && !alias.match(REGEX_ALIAS))
84
- throw new Error('invalid: ' + alias);
85
- if (alias)
86
- this.alias = alias;
87
- else if (ADDITIONAL_ENV.indexOf(this.env) !== -1)
88
- this.alias = DEFAULT_ALIAS.KOVENA;
89
- else
90
- this.alias = DEFAULT_ALIAS.PAYDOCK;
91
- }
92
- getEnv() {
93
- return this.env;
94
- }
95
- getConf() {
96
- for (let index in this.configs) {
97
- if (!this.configs.hasOwnProperty(index))
98
- continue;
99
- if (this.configs[index].env === this.getEnv())
100
- return {
101
- url: (this.configs[index].url.indexOf('localhost') !== -1) ? this.configs[index].url : this.configs[index].url + this.alias,
102
- env: this.configs[index].env,
103
- };
104
- }
105
- throw new Error('invalid env');
106
- }
107
- isValidMode(configs, env) {
108
- for (let index in configs) {
109
- if (!configs.hasOwnProperty(index))
110
- continue;
111
- if (configs[index].env === env)
112
- return true;
113
- }
114
- return false;
115
- }
116
- }
117
- //# sourceMappingURL=../../../src/lib/configs/env/env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../../configs/env/env.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAG;IACf,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE,gBAAgB;IAChC,YAAY,EAAE,cAAc;IAC5B,mBAAmB,EAAE,qBAAqB;IAC1C,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;CAC3B,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,yBAAyB,EAAE;IACpD,EAAE,GAAG,EAAE,GAAG,CAAC,cAAc,EAAE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@@ -1,16 +0,0 @@
1
- export class SDK {
2
- static get version() {
3
- return SDK._version.trim() || null;
4
- }
5
- }
6
- SDK.type = 'client';
7
- SDK.headerKeys = Object.freeze({
8
- version: 'x-sdk-version',
9
- type: 'x-sdk-type',
10
- });
11
- // This variable is injected through the grunt build command,
12
- // the empty string is set in case if version not provided.
13
- //
14
- // e.g: grunt build --sdk-version=v1.0.0
15
- SDK._version = 'v1.105.1';
16
- //# sourceMappingURL=../../src/lib/configs/sdk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../configs/sdk.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;IAOL,MAAM,KAAK,OAAO;QACrB,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC;IACvC,CAAC;;AARsB,QAAI,GAAG,QAAQ,CAAC;AAChB,cAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,YAAY;CACrB,CAAC,CAAC;AAMH,6DAA6D;AAC7D,2DAA2D;AAC3D,EAAE;AACF,wCAAwC;AAChB,YAAQ,GAAG,gCAAgC,CAAC"}
@@ -1,42 +0,0 @@
1
- /**
2
- * List of available form field validators dedicated to cards and their definition
3
- *
4
- * @const CARD_VALIDATORS
5
- *
6
- * @type {Record<string, string>}
7
- *
8
- * @param {string} CVV=cardCvvValidation
9
- * Asserts that CVV contains zero or more digits and is a number
10
- * @param {string} EXPIRY_DATE=expireDateValidation
11
- * Asserts value is a date in the future with format MM/YY
12
- * @param {string} HOLDER_NAME=cardHoldernameValidation
13
- * Asserts value is a name that respects the
14
- ITU-T T.50 standard (@see https://www.itu.int/rec/T-REC-T.50/en)
15
- * @param {string} NUMBER=cardNumberValidation
16
- Asserts the value matches a known card scheme and as a the correct length.
17
- E.g., matches a 13, 16 or 19 digit bank card, **or**, a 13 to 25 digit Vii Gift card
18
- * @param {string} PIN=cardPinValidation
19
- Asserts the value is a number with exactly 4 digits
20
- */
21
- const CARD_VALIDATORS = {
22
- CVV: "cardCvvValidator",
23
- EXPIRY_DATE: "expireDateValidation",
24
- HOLDER_NAME: "cardHoldernameValidator",
25
- NUMBER: "cardNumberValidator",
26
- PIN: "cardPinValidator",
27
- };
28
- /**
29
- * List of available generic form field validators and their definition
30
- *
31
- * @const GENERIC_VALIDATORS
32
- *
33
- * @type {Record<string, string>}
34
- *
35
- * @param {string} REQUIRED=required
36
- * Asserts the input or form field has a value defined truthy value
37
- */
38
- const GENERIC_VALIDATORS = {
39
- REQUIRED: "required",
40
- };
41
- export { CARD_VALIDATORS, GENERIC_VALIDATORS };
42
- //# sourceMappingURL=../../src/lib/constants/validators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validators.js","sourceRoot":"","sources":["../../constants/validators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,eAAe,GAAG;IACpB,GAAG,EAAE,kBAAkB;IACvB,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,yBAAyB;IACtC,MAAM,EAAE,qBAAqB;IAC7B,GAAG,EAAE,kBAAkB;CACjB,CAAA;AAIV;;;;;;;;;GASG;AACH,MAAM,kBAAkB,GAAG;IACvB,QAAQ,EAAE,UAAU;CACd,CAAA;AAKV,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAA"}
@@ -1,45 +0,0 @@
1
- import { SUPPORTED_CHECKOUT_META_COLLECTION } from '../components/param';
2
- import { HttpCore } from '../components/http-core';
3
- const EXTERNAL_CHECKOUT_LINK = '/v1/payment_sources/external_checkout';
4
- export class Builder extends HttpCore {
5
- constructor(gatewayID, successRedirectUrl, errorRedirectUrl) {
6
- super();
7
- this.body = {
8
- gateway_id: gatewayID,
9
- meta: {},
10
- success_redirect_url: successRedirectUrl,
11
- error_redirect_url: errorRedirectUrl,
12
- redirect_url: successRedirectUrl,
13
- };
14
- }
15
- getLink() {
16
- return EXTERNAL_CHECKOUT_LINK;
17
- }
18
- setDescriptions(text) {
19
- this.body.description = text;
20
- }
21
- setMeta(meta) {
22
- for (let key in meta) {
23
- if (!meta.hasOwnProperty(key))
24
- continue;
25
- if (SUPPORTED_CHECKOUT_META_COLLECTION.indexOf(key) !== -1)
26
- this.body.meta[key] = meta[key];
27
- else
28
- console.warn(`ExternalCheckout::setMeta: unsupported meta key ${key}`);
29
- }
30
- }
31
- getConfigs() {
32
- return this.body;
33
- }
34
- send(publicKey, cb, errorCb = (err, code) => { }) {
35
- this.create(publicKey, this.getConfigs(), (data, status) => {
36
- cb(data);
37
- }, (err, status) => {
38
- if (typeof err.message === 'undefined')
39
- errorCb(`${status}: unknown error`, 'unknown_error');
40
- else
41
- errorCb(err.message, err.code);
42
- });
43
- }
44
- }
45
- //# sourceMappingURL=../../src/lib/external-checkout/builder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builder.js","sourceRoot":"","sources":["../../external-checkout/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,kCAAkC,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,MAAM,sBAAsB,GAAG,uCAAuC,CAAC;AAqBvE,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IAGjC,YAAY,SAAiB,EAAE,kBAA0B,EAAE,gBAAwB;QAC/E,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG;YACR,UAAU,EAAE,SAAS;YACrB,IAAI,EAAE,EAAE;YACR,oBAAoB,EAAE,kBAAkB;YACxC,kBAAkB,EAAE,gBAAgB;YACpC,YAAY,EAAE,kBAAkB;SACnC,CAAC;IACN,CAAC;IAES,OAAO;QACb,OAAO,sBAAsB,CAAC;IAClC,CAAC;IAEM,eAAe,CAAC,IAAY;QAC/B,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IACjC,CAAC;IAEM,OAAO,CAAC,IAAiB;QA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