From 7a52154077acf4732382bf016bdc7e2db1ce119d Mon Sep 17 00:00:00 2001 From: Ruben Cougil Date: Tue, 3 Dec 2024 15:58:05 +0100 Subject: [PATCH 1/4] embed credit card container into checkout payment method handlers slot --- blocks/commerce-checkout/commerce-checkout.js | 54 ++++++++++++++++++- package.json | 1 + 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/blocks/commerce-checkout/commerce-checkout.js b/blocks/commerce-checkout/commerce-checkout.js index a30347c86..57d5ff3cf 100644 --- a/blocks/commerce-checkout/commerce-checkout.js +++ b/blocks/commerce-checkout/commerce-checkout.js @@ -58,8 +58,15 @@ import OrderProductList from '@dropins/storefront-order/containers/OrderProductL import OrderStatus from '@dropins/storefront-order/containers/OrderStatus.js'; import ShippingStatus from '@dropins/storefront-order/containers/ShippingStatus.js'; import { render as OrderProvider } from '@dropins/storefront-order/render.js'; + +// Payment Services Dropin +import CreditCard, { CREDIT_CARD_CODE } from '@dropins/payment-services/containers/CreditCard.js'; +import { render as paymentServicesProvider } from '@dropins/payment-services/render.js'; import { getUserTokenCookie } from '../../scripts/initializers/index.js'; +// Get Config Value +import { getConfigValue } from '../../scripts/configs.js'; + // Block-level import createModal from '../modal/modal.js'; @@ -221,6 +228,10 @@ export default async function decorate(block) { modal = null; }; + const apiUrl = await getConfigValue('commerce-core-endpoint'); + + let paymentServicesSubmit; + const [ _mergedCartBanner, _heading, @@ -311,7 +322,44 @@ export default async function decorate(block) { }, })($delivery), - CheckoutProvider.render(PaymentMethods)($paymentMethods), + CheckoutProvider.render(PaymentMethods, { + slots: { + Handlers: { + checkmo: (_ctx) => { + const $content = document.createElement('div'); + $content.innerText = 'checkmo'; + _ctx.replaceHTML($content); + }, + // Render Payment Services Dropin + [CREDIT_CARD_CODE]: (_ctx) => { + const $content = document.createElement('div'); + $content.innerText = CREDIT_CARD_CODE; + _ctx.replaceHTML($content); + paymentServicesProvider.render(CreditCard, { + location: 'CHECKOUT', + apiUrl, + getCustomerToken: getUserTokenCookie, + getCartId: () => _ctx.cartId, + onFormValidityChange: (isValid) => { + placeOrder.setProps((props) => ({ ...props, disabled: !isValid })); + }, + setSubmit: (submit) => { + paymentServicesSubmit = submit; + }, + onRender: () => { + placeOrder.setProps((props) => ({ ...props, disabled: true })); + }, + onStart: () => { + }, + onError: (error) => { + }, + onSuccess: async () => { + }, + })($content); + }, + }, + }, + })($paymentMethods), AccountProvider.render(AddressForm, { isOpen: true, @@ -413,6 +461,10 @@ export default async function decorate(block) { await displayOverlaySpinner(); try { + if (paymentServicesSubmit !== undefined) { + await paymentServicesSubmit(); + } + await checkoutApi.placeOrder(); } catch (error) { console.error(error); diff --git a/package.json b/package.json index f7fdf9be4..b171018aa 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "@dropins/storefront-checkout": "0.1.0-alpha60", "@dropins/storefront-order": "0.1.0-alpha24", "@dropins/storefront-pdp": "1.0.0-beta3", + "@dropins/storefront-payment-services": "0.0.1-alpha16", "@dropins/tools": "^0.36.0" } } From ad71d59a9d1c1bd6d293a5e504bdb47363af550a Mon Sep 17 00:00:00 2001 From: Ruben Cougil Date: Thu, 19 Dec 2024 10:42:54 +0100 Subject: [PATCH 2/4] update --- package-lock.json | 6 ++ package.json | 2 +- .../storefront-payment-services/api.d.ts | 1 + .../storefront-payment-services/api.js | 3 + .../api/index.d.ts | 2 + .../api/initialize/index.d.ts | 2 + .../api/initialize/initialize.d.ts | 10 +++ .../CheckoutPaymentMethods.d.ts | 9 +++ .../CheckoutPaymentMethodsSkeleton.d.ts | 7 ++ .../CheckoutPaymentMethods/index.d.ts | 3 + .../CreditCardForm/CreditCardError.d.ts | 8 +++ .../CreditCardForm/CreditCardForm.d.ts | 18 +++++ .../components/CreditCardForm/index.d.ts | 3 + .../components/index.d.ts | 4 ++ .../containers/CreditCard.d.ts | 3 + .../containers/CreditCard.js | 3 + .../containers/CreditCard/CreditCard.d.ts | 66 +++++++++++++++++++ .../containers/CreditCard/index.d.ts | 3 + .../containers/index.d.ts | 2 + .../data/models/index.d.ts | 1 + .../data/transforms/index.d.ts | 1 + .../hooks/usePaymentsSDK.d.ts | 14 ++++ .../i18n/en_US.json.d.ts | 5 ++ .../icons/index.d.ts | 7 ++ .../storefront-payment-services/render.d.ts | 1 + .../storefront-payment-services/render.js | 4 ++ .../render/Provider.d.ts | 8 +++ .../render/index.d.ts | 2 + .../render/render.d.ts | 4 ++ 29 files changed, 201 insertions(+), 1 deletion(-) create mode 100644 scripts/__dropins__/storefront-payment-services/api.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/api.js create mode 100644 scripts/__dropins__/storefront-payment-services/api/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/api/initialize/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/api/initialize/initialize.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethods.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethodsSkeleton.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardError.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardForm.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/components/CreditCardForm/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/components/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/containers/CreditCard.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/containers/CreditCard.js create mode 100644 scripts/__dropins__/storefront-payment-services/containers/CreditCard/CreditCard.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/containers/CreditCard/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/containers/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/data/models/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/data/transforms/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/hooks/usePaymentsSDK.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/i18n/en_US.json.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/icons/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/render.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/render.js create mode 100644 scripts/__dropins__/storefront-payment-services/render/Provider.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/render/index.d.ts create mode 100644 scripts/__dropins__/storefront-payment-services/render/render.d.ts diff --git a/package-lock.json b/package-lock.json index f3fdf91b9..7395dcec8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@dropins/storefront-cart": "~1.0.1", "@dropins/storefront-checkout": "~1.0.0", "@dropins/storefront-order": "~1.0.0", + "@dropins/storefront-payment-services": "0.0.1-alpha20", "@dropins/storefront-pdp": "~1.0.0", "@dropins/tools": "^0.38.0" }, @@ -795,6 +796,11 @@ "integrity": "sha512-3bhRUqiFkOLvJ5ovZpVplPBs5DcbSfSnlEX7pkl1fyJ3upFDM1CPBFjQEv3+iQF2OarzlOaYCeFdzke3LNxVcg==", "license": "SEE LICENSE IN LICENSE.md" }, + "node_modules/@dropins/storefront-payment-services": { + "version": "0.0.1-alpha20", + "resolved": "https://registry.npmjs.org/@dropins/storefront-payment-services/-/storefront-payment-services-0.0.1-alpha20.tgz", + "integrity": "sha512-RgOFFLCP4R0qB99ax5KT/Sh5ksjf0QzDrwORN6kfDO/YqCrD+6VUIoFLYwX8Mz2xG6yO+LLQ23Mc/QLmIQtFww==" + }, "node_modules/@dropins/storefront-pdp": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@dropins/storefront-pdp/-/storefront-pdp-1.0.0.tgz", diff --git a/package.json b/package.json index 12fb4c958..e06e3ea98 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,6 @@ "@dropins/storefront-order": "~1.0.0", "@dropins/storefront-pdp": "~1.0.0", "@dropins/tools": "^0.38.0", - "@dropins/storefront-payment-services": "0.0.1-alpha16" + "@dropins/storefront-payment-services": "0.0.1-alpha20" } } diff --git a/scripts/__dropins__/storefront-payment-services/api.d.ts b/scripts/__dropins__/storefront-payment-services/api.d.ts new file mode 100644 index 000000000..30939a827 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/api.d.ts @@ -0,0 +1 @@ +export * from './api/index' diff --git a/scripts/__dropins__/storefront-payment-services/api.js b/scripts/__dropins__/storefront-payment-services/api.js new file mode 100644 index 000000000..61d4ebc08 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/api.js @@ -0,0 +1,3 @@ +/*! Copyright 2024 Adobe +All Rights Reserved. */ +import{Initializer as t}from"@dropins/tools/lib.js";const i=new t({init:async n=>{const o={};i.config.setConfig({...o,...n})},listeners:()=>[]}),c=i.config;export{c as config,i as initialize}; diff --git a/scripts/__dropins__/storefront-payment-services/api/index.d.ts b/scripts/__dropins__/storefront-payment-services/api/index.d.ts new file mode 100644 index 000000000..66c241dc2 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/api/index.d.ts @@ -0,0 +1,2 @@ +export * from './initialize'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/api/initialize/index.d.ts b/scripts/__dropins__/storefront-payment-services/api/initialize/index.d.ts new file mode 100644 index 000000000..66c241dc2 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/api/initialize/index.d.ts @@ -0,0 +1,2 @@ +export * from './initialize'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/api/initialize/initialize.d.ts b/scripts/__dropins__/storefront-payment-services/api/initialize/initialize.d.ts new file mode 100644 index 000000000..fc29428e5 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/api/initialize/initialize.d.ts @@ -0,0 +1,10 @@ +import { Initializer } from '@dropins/tools/types/elsie/src/lib'; +import { Lang } from '@dropins/tools/types/elsie/src/i18n'; + +type ConfigProps = { + langDefinitions?: Lang; +}; +export declare const initialize: Initializer; +export declare const config: import('@dropins/tools/types/elsie/src/lib').Config; +export {}; +//# sourceMappingURL=initialize.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethods.d.ts b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethods.d.ts new file mode 100644 index 000000000..7dec2db96 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethods.d.ts @@ -0,0 +1,9 @@ +import { FunctionComponent, VNode } from 'preact'; +import { HTMLAttributes } from 'preact/compat'; + +export interface CheckoutPaymentMethodsProps extends HTMLAttributes { + status: 'loading' | 'ready'; + paymentMethodsContent?: VNode>; +} +export declare const CheckoutPaymentMethods: FunctionComponent; +//# sourceMappingURL=CheckoutPaymentMethods.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethodsSkeleton.d.ts b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethodsSkeleton.d.ts new file mode 100644 index 000000000..5db992cf1 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethodsSkeleton.d.ts @@ -0,0 +1,7 @@ +import { FunctionComponent } from 'preact'; +import { HTMLAttributes } from 'preact/compat'; + +export interface CheckoutPaymentMethodsSkeletonProps extends HTMLAttributes { +} +export declare const CheckoutPaymentMethodsSkeleton: FunctionComponent; +//# sourceMappingURL=CheckoutPaymentMethodsSkeleton.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/index.d.ts b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/index.d.ts new file mode 100644 index 000000000..e89a957e6 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/index.d.ts @@ -0,0 +1,3 @@ +export * from './CheckoutPaymentMethods'; +export { CheckoutPaymentMethods as default } from './CheckoutPaymentMethods'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardError.d.ts b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardError.d.ts new file mode 100644 index 000000000..a9ca66f70 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardError.d.ts @@ -0,0 +1,8 @@ +import { FunctionalComponent } from 'preact'; + +interface CreditCardErrorProps { + message: string; +} +export declare const CreditCardError: FunctionalComponent; +export {}; +//# sourceMappingURL=CreditCardError.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardForm.d.ts b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardForm.d.ts new file mode 100644 index 000000000..955231d15 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardForm.d.ts @@ -0,0 +1,18 @@ +import { FunctionComponent } from 'preact'; +import { HTMLAttributes } from 'preact/compat'; +import { CardType } from '@adobe-commerce/payment-services-sdk/payment'; + +export interface CreditCardFormProps extends HTMLAttributes { + cardContainerId: string; + cardNumberContainerId: string; + expirationDateContainerId: string; + securityCodeContainerId: string; + eligibleCards: CardType[]; + cardTypeSelected: CardType | null; + validationErrors: { + [key: string]: string; + }; + isLoading?: boolean; +} +export declare const CreditCardForm: FunctionComponent; +//# sourceMappingURL=CreditCardForm.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/index.d.ts b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/index.d.ts new file mode 100644 index 000000000..a2bdd2374 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/index.d.ts @@ -0,0 +1,3 @@ +export * from './CreditCardForm'; +export { CreditCardForm as default } from './CreditCardForm'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/index.d.ts b/scripts/__dropins__/storefront-payment-services/components/index.d.ts new file mode 100644 index 000000000..202a37189 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/components/index.d.ts @@ -0,0 +1,4 @@ +export * from './CheckoutPaymentMethods'; +export * from './CreditCardForm'; +export * from './CreditCardForm/CreditCardError'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/containers/CreditCard.d.ts b/scripts/__dropins__/storefront-payment-services/containers/CreditCard.d.ts new file mode 100644 index 000000000..fdf1a74f5 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/containers/CreditCard.d.ts @@ -0,0 +1,3 @@ +export * from './CreditCard/index' +import _default from './CreditCard/index' +export default _default diff --git a/scripts/__dropins__/storefront-payment-services/containers/CreditCard.js b/scripts/__dropins__/storefront-payment-services/containers/CreditCard.js new file mode 100644 index 000000000..108c78b7c --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/containers/CreditCard.js @@ -0,0 +1,3 @@ +/*! Copyright 2024 Adobe +All Rights Reserved. */ +import{jsxs as M,Fragment as j,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import*as t from"@dropins/tools/preact-compat.js";import{useState as v,useEffect as A}from"@dropins/tools/preact-compat.js";import{classes as g}from"@dropins/tools/lib.js";import{Skeleton as F,SkeletonRow as Z,Icon as E}from"@dropins/tools/components.js";import{useState as b,useEffect as B}from"@dropins/tools/preact-hooks.js";const q=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(14.509805%,34.117648%,83.92157%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 0.0117188 11.3125 L 1.789062 11.3125 L 2.1875 10.375 L 3.085938 10.375 L 3.484375 11.3125 L 6.980469 11.3125 L 6.980469 10.597656 L 7.289062 11.316406 L 9.105469 11.316406 L 9.417969 10.585938 L 9.417969 11.3125 L 18.101562 11.3125 L 18.097656 9.777344 L 18.265625 9.777344 C 18.382812 9.78125 18.417969 9.789062 18.417969 9.980469 L 18.417969 11.3125 L 22.910156 11.3125 L 22.910156 10.957031 C 23.269531 11.144531 23.835938 11.3125 24.578125 11.3125 L 26.464844 11.3125 L 26.871094 10.375 L 27.765625 10.375 L 28.164062 11.3125 L 31.804688 11.3125 L 31.804688 10.421875 L 32.355469 11.3125 L 35.273438 11.3125 L 35.273438 5.433594 L 32.386719 5.433594 L 32.386719 6.128906 L 31.980469 5.433594 L 29.019531 5.433594 L 29.019531 6.128906 L 28.648438 5.433594 L 24.644531 5.433594 C 23.972656 5.433594 23.386719 5.523438 22.910156 5.777344 L 22.910156 5.433594 L 20.148438 5.433594 L 20.148438 5.777344 C 19.84375 5.515625 19.433594 5.433594 18.972656 5.433594 L 8.882812 5.433594 L 8.203125 6.953125 L 7.507812 5.433594 L 4.332031 5.433594 L 4.332031 6.128906 L 3.980469 5.433594 L 1.269531 5.433594 L 0.0117188 8.226562 Z M 11.222656 10.464844 L 10.15625 10.464844 L 10.152344 7.164062 L 8.644531 10.464844 L 7.734375 10.464844 L 6.222656 7.160156 L 6.222656 10.464844 L 4.109375 10.464844 L 3.707031 9.523438 L 1.542969 9.523438 L 1.140625 10.464844 L 0.0117188 10.464844 L 1.875 6.25 L 3.417969 6.25 L 5.1875 10.242188 L 5.1875 6.25 L 6.882812 6.25 L 8.242188 9.109375 L 9.492188 6.25 L 11.222656 6.25 Z M 3.351562 8.648438 L 2.640625 6.96875 L 1.933594 8.648438 Z M 15.464844 10.464844 L 11.992188 10.464844 L 11.992188 6.25 L 15.464844 6.25 L 15.464844 7.125 L 13.03125 7.125 L 13.03125 7.886719 L 15.40625 7.886719 L 15.40625 8.75 L 13.03125 8.75 L 13.03125 9.59375 L 15.464844 9.59375 Z M 20.355469 7.382812 C 20.355469 8.054688 19.894531 8.402344 19.625 8.507812 C 19.851562 8.59375 20.046875 8.738281 20.140625 8.863281 C 20.285156 9.074219 20.3125 9.261719 20.3125 9.636719 L 20.3125 10.464844 L 19.261719 10.464844 L 19.257812 9.933594 C 19.257812 9.679688 19.285156 9.316406 19.09375 9.113281 C 18.941406 8.964844 18.710938 8.929688 18.335938 8.929688 L 17.222656 8.929688 L 17.222656 10.464844 L 16.183594 10.464844 L 16.183594 6.25 L 18.574219 6.25 C 19.105469 6.25 19.496094 6.261719 19.832031 6.449219 C 20.160156 6.640625 20.355469 6.914062 20.355469 7.382812 Z M 19.042969 8.011719 C 18.902344 8.09375 18.730469 8.097656 18.527344 8.097656 L 17.265625 8.097656 L 17.265625 7.160156 L 18.546875 7.160156 C 18.726562 7.160156 18.917969 7.167969 19.039062 7.238281 C 19.175781 7.296875 19.257812 7.429688 19.257812 7.609375 C 19.257812 7.792969 19.179688 7.941406 19.042969 8.011719 Z M 22.023438 10.464844 L 20.964844 10.464844 L 20.964844 6.25 L 22.023438 6.25 Z M 34.335938 10.464844 L 32.863281 10.464844 L 30.894531 7.300781 L 30.894531 10.464844 L 28.777344 10.464844 L 28.371094 9.523438 L 26.210938 9.523438 L 25.820312 10.464844 L 24.605469 10.464844 C 24.097656 10.464844 23.457031 10.355469 23.097656 10 C 22.730469 9.640625 22.542969 9.15625 22.542969 8.390625 C 22.542969 7.761719 22.65625 7.191406 23.101562 6.742188 C 23.4375 6.402344 23.964844 6.25 24.679688 6.25 L 25.6875 6.25 L 25.6875 7.152344 L 24.703125 7.152344 C 24.320312 7.152344 24.109375 7.207031 23.902344 7.402344 C 23.722656 7.578125 23.601562 7.914062 23.601562 8.355469 C 23.601562 8.808594 23.695312 9.132812 23.886719 9.347656 C 24.046875 9.515625 24.339844 9.566406 24.613281 9.566406 L 25.078125 9.566406 L 26.542969 6.25 L 28.101562 6.25 L 29.863281 10.238281 L 29.863281 6.25 L 31.445312 6.25 L 33.273438 9.183594 L 33.273438 6.25 L 34.335938 6.25 Z M 28.019531 8.648438 L 27.300781 6.96875 L 26.582031 8.648438 Z M 36.984375 17.199219 C 36.734375 17.554688 36.242188 17.738281 35.574219 17.738281 L 33.566406 17.738281 L 33.566406 16.832031 L 35.566406 16.832031 C 35.765625 16.832031 35.902344 16.808594 35.988281 16.726562 C 36.066406 16.65625 36.109375 16.558594 36.109375 16.453125 C 36.109375 16.332031 36.058594 16.234375 35.984375 16.175781 C 35.90625 16.109375 35.796875 16.082031 35.617188 16.082031 C 34.640625 16.046875 33.421875 16.109375 33.421875 14.773438 C 33.421875 14.164062 33.824219 13.519531 34.914062 13.519531 L 36.984375 13.519531 L 36.984375 12.679688 L 35.0625 12.679688 C 34.480469 12.679688 34.058594 12.816406 33.761719 13.023438 L 33.761719 12.679688 L 30.914062 12.679688 C 30.460938 12.679688 29.925781 12.789062 29.671875 13.023438 L 29.671875 12.679688 L 24.59375 12.679688 L 24.59375 13.023438 C 24.1875 12.742188 23.503906 12.679688 23.191406 12.679688 L 19.839844 12.679688 L 19.839844 13.023438 C 19.519531 12.726562 18.808594 12.679688 18.375 12.679688 L 14.621094 12.679688 L 13.765625 13.582031 L 12.960938 12.679688 L 7.355469 12.679688 L 7.355469 18.566406 L 12.855469 18.566406 L 13.738281 17.648438 L 14.570312 18.566406 L 17.960938 18.566406 L 17.960938 17.183594 L 18.292969 17.183594 C 18.742188 17.191406 19.273438 17.171875 19.742188 16.976562 L 19.742188 18.566406 L 22.539062 18.566406 L 22.539062 17.03125 L 22.671875 17.03125 C 22.84375 17.03125 22.859375 17.039062 22.859375 17.203125 L 22.859375 18.566406 L 31.351562 18.566406 C 31.890625 18.566406 32.457031 18.429688 32.765625 18.1875 L 32.765625 18.566406 L 35.460938 18.566406 C 36.019531 18.566406 36.570312 18.488281 36.984375 18.292969 L 36.984375 17.195312 Z M 20.148438 14.933594 C 20.148438 16.105469 19.246094 16.347656 18.339844 16.347656 L 17.042969 16.347656 L 17.042969 17.761719 L 15.019531 17.761719 L 13.742188 16.367188 L 12.410156 17.761719 L 8.292969 17.761719 L 8.292969 13.542969 L 12.472656 13.542969 L 13.753906 14.925781 L 15.074219 13.542969 L 18.398438 13.542969 C 19.222656 13.542969 20.148438 13.765625 20.148438 14.933594 Z M 11.882812 16.875 L 9.328125 16.875 L 9.328125 16.035156 L 11.609375 16.035156 L 11.609375 15.175781 L 9.328125 15.175781 L 9.328125 14.410156 L 11.933594 14.410156 L 13.070312 15.636719 Z M 16.003906 17.359375 L 14.40625 15.640625 L 16.003906 13.976562 Z M 18.363281 15.484375 L 17.019531 15.484375 L 17.019531 14.410156 L 18.375 14.410156 C 18.75 14.410156 19.011719 14.558594 19.011719 14.925781 C 19.011719 15.289062 18.761719 15.484375 18.363281 15.484375 Z M 25.398438 13.542969 L 28.871094 13.542969 L 28.871094 14.417969 L 26.433594 14.417969 L 26.433594 15.183594 L 28.808594 15.183594 L 28.808594 16.042969 L 26.433594 16.042969 L 26.433594 16.882812 L 28.871094 16.886719 L 28.871094 17.761719 L 25.398438 17.761719 Z M 24.066406 15.800781 C 24.296875 15.882812 24.488281 16.03125 24.574219 16.15625 C 24.722656 16.363281 24.742188 16.554688 24.746094 16.925781 L 24.746094 17.761719 L 23.703125 17.761719 L 23.703125 17.234375 C 23.703125 16.980469 23.730469 16.605469 23.535156 16.410156 C 23.382812 16.257812 23.152344 16.222656 22.773438 16.222656 L 21.664062 16.222656 L 21.664062 17.761719 L 20.617188 17.761719 L 20.617188 13.542969 L 23.019531 13.542969 C 23.542969 13.542969 23.925781 13.566406 24.269531 13.742188 C 24.597656 13.9375 24.804688 14.199219 24.804688 14.679688 C 24.804688 15.351562 24.339844 15.695312 24.066406 15.800781 Z M 23.480469 15.269531 C 23.339844 15.347656 23.167969 15.355469 22.964844 15.355469 L 21.703125 15.355469 L 21.703125 14.410156 L 22.984375 14.410156 C 23.167969 14.410156 23.351562 14.414062 23.480469 14.484375 C 23.613281 14.554688 23.695312 14.683594 23.695312 14.863281 C 23.695312 15.042969 23.613281 15.191406 23.480469 15.269531 Z M 32.863281 15.539062 C 33.066406 15.742188 33.171875 15.996094 33.171875 16.429688 C 33.171875 17.339844 32.589844 17.761719 31.539062 17.761719 L 29.515625 17.761719 L 29.515625 16.855469 L 31.53125 16.855469 C 31.730469 16.855469 31.871094 16.832031 31.957031 16.753906 C 32.027344 16.6875 32.078125 16.59375 32.078125 16.476562 C 32.078125 16.355469 32.023438 16.257812 31.953125 16.199219 C 31.875 16.132812 31.765625 16.105469 31.582031 16.105469 C 30.609375 16.074219 29.394531 16.132812 29.394531 14.800781 C 29.394531 14.1875 29.789062 13.542969 30.878906 13.542969 L 32.964844 13.542969 L 32.964844 14.441406 L 31.058594 14.441406 C 30.867188 14.441406 30.746094 14.449219 30.640625 14.519531 C 30.527344 14.585938 30.484375 14.6875 30.484375 14.820312 C 30.484375 14.980469 30.582031 15.089844 30.710938 15.136719 C 30.820312 15.171875 30.9375 15.183594 31.117188 15.183594 L 31.675781 15.199219 C 32.238281 15.210938 32.628906 15.304688 32.863281 15.539062 Z M 36.988281 14.410156 L 35.09375 14.410156 C 34.902344 14.410156 34.777344 14.414062 34.671875 14.484375 C 34.5625 14.554688 34.519531 14.65625 34.519531 14.789062 C 34.519531 14.945312 34.613281 15.054688 34.746094 15.101562 C 34.855469 15.140625 34.976562 15.148438 35.148438 15.148438 L 35.710938 15.164062 C 36.28125 15.179688 36.660156 15.273438 36.890625 15.503906 C 36.933594 15.535156 36.957031 15.574219 36.988281 15.609375 Z M 36.988281 14.410156 "}))),H=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(14.509805%,21.568628%,27.843139%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 10.011719 22.417969 L 10.011719 21.027344 C 10.011719 20.496094 9.691406 20.148438 9.144531 20.148438 C 8.867188 20.148438 8.570312 20.242188 8.363281 20.542969 C 8.203125 20.289062 7.976562 20.148438 7.632812 20.148438 C 7.402344 20.148438 7.171875 20.21875 6.992188 20.472656 L 6.992188 20.195312 L 6.511719 20.195312 L 6.511719 22.417969 L 6.992188 22.417969 L 6.992188 21.191406 C 6.992188 20.796875 7.195312 20.609375 7.515625 20.609375 C 7.835938 20.609375 7.996094 20.820312 7.996094 21.191406 L 7.996094 22.417969 L 8.476562 22.417969 L 8.476562 21.191406 C 8.476562 20.796875 8.707031 20.609375 9 20.609375 C 9.320312 20.609375 9.480469 20.820312 9.480469 21.191406 L 9.480469 22.417969 Z M 17.128906 20.195312 L 16.347656 20.195312 L 16.347656 19.523438 L 15.871094 19.523438 L 15.871094 20.195312 L 15.433594 20.195312 L 15.433594 20.636719 L 15.871094 20.636719 L 15.871094 21.65625 C 15.871094 22.164062 16.074219 22.464844 16.625 22.464844 C 16.828125 22.464844 17.058594 22.394531 17.21875 22.300781 L 17.078125 21.882812 C 16.941406 21.976562 16.78125 22 16.667969 22 C 16.4375 22 16.347656 21.859375 16.347656 21.628906 L 16.347656 20.636719 L 17.125 20.636719 L 17.125 20.195312 Z M 21.199219 20.148438 C 20.925781 20.148438 20.742188 20.289062 20.628906 20.472656 L 20.628906 20.191406 L 20.148438 20.191406 L 20.148438 22.414062 L 20.628906 22.414062 L 20.628906 21.164062 C 20.628906 20.792969 20.785156 20.585938 21.085938 20.585938 C 21.175781 20.585938 21.289062 20.609375 21.382812 20.628906 L 21.523438 20.167969 C 21.425781 20.148438 21.289062 20.148438 21.199219 20.148438 Z M 15.046875 20.378906 C 14.816406 20.21875 14.496094 20.148438 14.152344 20.148438 C 13.605469 20.148438 13.238281 20.425781 13.238281 20.863281 C 13.238281 21.234375 13.511719 21.445312 13.992188 21.511719 L 14.222656 21.535156 C 14.472656 21.582031 14.613281 21.652344 14.613281 21.769531 C 14.613281 21.929688 14.425781 22.046875 14.109375 22.046875 C 13.789062 22.046875 13.535156 21.929688 13.375 21.8125 L 13.144531 22.183594 C 13.394531 22.371094 13.738281 22.460938 14.082031 22.460938 C 14.722656 22.460938 15.089844 22.160156 15.089844 21.742188 C 15.089844 21.351562 14.792969 21.140625 14.335938 21.074219 L 14.109375 21.046875 C 13.902344 21.023438 13.742188 20.976562 13.742188 20.839844 C 13.742188 20.679688 13.902344 20.585938 14.15625 20.585938 C 14.429688 20.585938 14.703125 20.703125 14.84375 20.773438 Z M 27.808594 20.148438 C 27.535156 20.148438 27.351562 20.289062 27.238281 20.472656 L 27.238281 20.191406 L 26.757812 20.191406 L 26.757812 22.414062 L 27.238281 22.414062 L 27.238281 21.164062 C 27.238281 20.792969 27.398438 20.585938 27.695312 20.585938 C 27.785156 20.585938 27.898438 20.609375 27.992188 20.628906 L 28.132812 20.171875 C 28.039062 20.148438 27.902344 20.148438 27.808594 20.148438 Z M 21.679688 21.308594 C 21.679688 21.980469 22.136719 22.464844 22.847656 22.464844 C 23.167969 22.464844 23.394531 22.394531 23.625 22.210938 L 23.394531 21.816406 C 23.210938 21.957031 23.03125 22.023438 22.824219 22.023438 C 22.433594 22.023438 22.160156 21.746094 22.160156 21.308594 C 22.160156 20.890625 22.433594 20.609375 22.824219 20.589844 C 23.027344 20.589844 23.210938 20.660156 23.394531 20.796875 L 23.625 20.402344 C 23.394531 20.21875 23.167969 20.148438 22.847656 20.148438 C 22.136719 20.148438 21.679688 20.636719 21.679688 21.308594 Z M 26.117188 21.308594 L 26.117188 20.195312 L 25.636719 20.195312 L 25.636719 20.472656 C 25.476562 20.265625 25.25 20.148438 24.949219 20.148438 C 24.332031 20.148438 23.851562 20.636719 23.851562 21.308594 C 23.851562 21.980469 24.332031 22.464844 24.949219 22.464844 C 25.269531 22.464844 25.5 22.347656 25.636719 22.140625 L 25.636719 22.417969 L 26.117188 22.417969 Z M 24.355469 21.308594 C 24.355469 20.914062 24.605469 20.589844 25.019531 20.589844 C 25.410156 20.589844 25.683594 20.890625 25.683594 21.308594 C 25.683594 21.699219 25.410156 22.023438 25.019531 22.023438 C 24.609375 22 24.355469 21.699219 24.355469 21.308594 Z M 18.613281 20.148438 C 17.976562 20.148438 17.515625 20.609375 17.515625 21.304688 C 17.515625 22 17.976562 22.460938 18.640625 22.460938 C 18.957031 22.460938 19.277344 22.371094 19.53125 22.160156 L 19.300781 21.8125 C 19.117188 21.953125 18.890625 22.042969 18.664062 22.042969 C 18.363281 22.042969 18.070312 21.902344 18 21.511719 L 19.621094 21.511719 C 19.621094 21.441406 19.621094 21.394531 19.621094 21.324219 C 19.644531 20.609375 19.230469 20.148438 18.613281 20.148438 Z M 18.613281 20.566406 C 18.914062 20.566406 19.117188 20.75 19.164062 21.097656 L 18.019531 21.097656 C 18.066406 20.796875 18.269531 20.566406 18.613281 20.566406 Z M 30.535156 21.308594 L 30.535156 19.316406 L 30.054688 19.316406 L 30.054688 20.472656 C 29.894531 20.265625 29.664062 20.148438 29.367188 20.148438 C 28.746094 20.148438 28.269531 20.636719 28.269531 21.308594 C 28.269531 21.980469 28.746094 22.464844 29.367188 22.464844 C 29.6875 22.464844 29.914062 22.347656 30.054688 22.140625 L 30.054688 22.417969 L 30.535156 22.417969 Z M 28.773438 21.308594 C 28.773438 20.914062 29.023438 20.589844 29.433594 20.589844 C 29.824219 20.589844 30.097656 20.890625 30.097656 21.308594 C 30.097656 21.699219 29.824219 22.023438 29.433594 22.023438 C 29.023438 22 28.773438 21.699219 28.773438 21.308594 Z M 12.710938 21.308594 L 12.710938 20.195312 L 12.230469 20.195312 L 12.230469 20.472656 C 12.070312 20.265625 11.84375 20.148438 11.542969 20.148438 C 10.925781 20.148438 10.445312 20.636719 10.445312 21.308594 C 10.445312 21.980469 10.925781 22.464844 11.542969 22.464844 C 11.863281 22.464844 12.09375 22.347656 12.230469 22.140625 L 12.230469 22.417969 L 12.710938 22.417969 Z M 10.929688 21.308594 C 10.929688 20.914062 11.179688 20.589844 11.59375 20.589844 C 11.980469 20.589844 12.253906 20.890625 12.253906 21.308594 C 12.253906 21.699219 11.980469 22.023438 11.59375 22.023438 C 11.179688 22 10.929688 21.699219 10.929688 21.308594 Z M 10.929688 21.308594 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,35.294119%,0%)",fillOpacity:1},d:"M 22.09375 3.320312 L 14.886719 3.320312 L 14.886719 16.421875 L 22.09375 16.421875 Z M 22.09375 3.320312 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(92.156863%,0%,10.588235%)",fillOpacity:1},d:"M 15.367188 9.871094 C 15.367188 7.207031 16.601562 4.84375 18.5 3.320312 C 17.101562 2.207031 15.339844 1.535156 13.421875 1.535156 C 8.867188 1.535156 5.183594 5.261719 5.183594 9.871094 C 5.183594 14.476562 8.867188 18.203125 13.421875 18.203125 C 15.339844 18.203125 17.101562 17.53125 18.5 16.421875 C 16.601562 14.914062 15.367188 12.53125 15.367188 9.871094 Z M 15.367188 9.871094 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(96.862745%,61.960787%,10.588235%)",fillOpacity:1},d:"M 31.816406 9.871094 C 31.816406 14.476562 28.132812 18.203125 23.582031 18.203125 C 21.660156 18.203125 19.898438 17.53125 18.5 16.421875 C 20.421875 14.890625 21.632812 12.53125 21.632812 9.871094 C 21.632812 7.207031 20.398438 4.84375 18.5 3.320312 C 19.894531 2.207031 21.65625 1.535156 23.578125 1.535156 C 28.132812 1.535156 31.816406 5.289062 31.816406 9.871094 Z M 31.816406 9.871094 "}))),Y=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(7.843138%,20.392157%,79.607844%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 23.234375 6.871094 C 21.011719 6.871094 19.027344 8.035156 19.027344 10.1875 C 19.027344 12.65625 22.550781 12.828125 22.550781 14.070312 C 22.550781 14.589844 21.957031 15.058594 20.949219 15.058594 C 19.515625 15.058594 18.441406 14.40625 18.441406 14.40625 L 17.984375 16.578125 C 17.984375 16.578125 19.21875 17.128906 20.855469 17.128906 C 23.285156 17.128906 25.199219 15.90625 25.199219 13.71875 C 25.199219 11.109375 21.660156 10.941406 21.660156 9.792969 C 21.660156 9.382812 22.148438 8.933594 23.15625 8.933594 C 24.292969 8.933594 25.21875 9.410156 25.21875 9.410156 L 25.667969 7.308594 C 25.667969 7.308594 24.65625 6.871094 23.234375 6.871094 Z M 2.910156 7.027344 L 2.855469 7.34375 C 2.855469 7.34375 3.789062 7.519531 4.632812 7.863281 C 5.714844 8.257812 5.792969 8.488281 5.976562 9.207031 L 7.964844 16.96875 L 10.632812 16.96875 L 14.738281 7.027344 L 12.078125 7.027344 L 9.4375 13.785156 L 8.363281 8.058594 C 8.261719 7.402344 7.761719 7.027344 7.152344 7.027344 Z M 15.808594 7.027344 L 13.722656 16.96875 L 16.257812 16.96875 L 18.339844 7.027344 Z M 29.957031 7.027344 C 29.347656 7.027344 29.023438 7.359375 28.785156 7.9375 L 25.066406 16.96875 L 27.726562 16.96875 L 28.242188 15.460938 L 31.484375 15.460938 L 31.796875 16.96875 L 34.144531 16.96875 L 32.097656 7.027344 Z M 30.304688 9.714844 L 31.09375 13.441406 L 28.980469 13.441406 Z M 30.304688 9.714844 "}))),G=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(0%,0%,0%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 13.25 22.347656 L 13.25 20.960938 C 13.257812 20.847656 13.242188 20.730469 13.199219 20.621094 C 13.160156 20.511719 13.097656 20.410156 13.015625 20.328125 C 12.9375 20.246094 12.839844 20.183594 12.730469 20.140625 C 12.625 20.097656 12.507812 20.082031 12.394531 20.085938 C 12.242188 20.078125 12.09375 20.109375 11.957031 20.175781 C 11.820312 20.246094 11.707031 20.351562 11.625 20.480469 C 11.550781 20.355469 11.445312 20.253906 11.320312 20.183594 C 11.191406 20.113281 11.050781 20.082031 10.90625 20.085938 C 10.78125 20.082031 10.65625 20.109375 10.542969 20.164062 C 10.429688 20.222656 10.335938 20.308594 10.265625 20.414062 L 10.265625 20.144531 L 9.792969 20.144531 L 9.792969 22.347656 L 10.269531 22.347656 L 10.269531 21.125 C 10.261719 21.050781 10.265625 20.972656 10.289062 20.902344 C 10.3125 20.828125 10.347656 20.761719 10.398438 20.707031 C 10.453125 20.648438 10.515625 20.605469 10.585938 20.578125 C 10.652344 20.546875 10.730469 20.535156 10.804688 20.539062 C 11.121094 20.539062 11.28125 20.746094 11.28125 21.121094 L 11.28125 22.347656 L 11.757812 22.347656 L 11.757812 21.125 C 11.75 21.050781 11.757812 20.972656 11.777344 20.902344 C 11.800781 20.828125 11.839844 20.761719 11.890625 20.707031 C 11.941406 20.652344 12.003906 20.605469 12.074219 20.578125 C 12.144531 20.550781 12.21875 20.535156 12.292969 20.539062 C 12.617188 20.539062 12.773438 20.746094 12.773438 21.121094 L 12.773438 22.347656 Z M 15.921875 21.246094 L 15.921875 20.144531 L 15.441406 20.144531 L 15.441406 20.414062 C 15.359375 20.308594 15.257812 20.222656 15.136719 20.167969 C 15.019531 20.109375 14.886719 20.085938 14.757812 20.089844 C 14.453125 20.089844 14.164062 20.210938 13.949219 20.429688 C 13.734375 20.644531 13.613281 20.9375 13.613281 21.246094 C 13.613281 21.550781 13.734375 21.84375 13.949219 22.0625 C 14.164062 22.277344 14.453125 22.398438 14.757812 22.398438 C 14.886719 22.40625 15.019531 22.378906 15.136719 22.320312 C 15.257812 22.265625 15.359375 22.179688 15.441406 22.074219 L 15.441406 22.34375 L 15.914062 22.34375 Z M 14.15625 21.246094 C 14.164062 21.117188 14.207031 20.992188 14.285156 20.886719 C 14.363281 20.78125 14.46875 20.703125 14.589844 20.660156 C 14.707031 20.613281 14.839844 20.605469 14.964844 20.636719 C 15.089844 20.667969 15.203125 20.730469 15.292969 20.828125 C 15.382812 20.921875 15.441406 21.039062 15.464844 21.167969 C 15.484375 21.296875 15.472656 21.429688 15.421875 21.546875 C 15.371094 21.667969 15.285156 21.769531 15.179688 21.84375 C 15.070312 21.914062 14.945312 21.953125 14.816406 21.953125 C 14.726562 21.957031 14.636719 21.9375 14.550781 21.902344 C 14.46875 21.867188 14.394531 21.816406 14.328125 21.75 C 14.265625 21.683594 14.21875 21.605469 14.1875 21.515625 C 14.15625 21.429688 14.144531 21.339844 14.152344 21.246094 Z M 26.0625 20.09375 C 26.21875 20.089844 26.375 20.121094 26.519531 20.179688 C 26.660156 20.234375 26.785156 20.320312 26.890625 20.425781 C 26.996094 20.527344 27.082031 20.652344 27.140625 20.792969 C 27.257812 21.085938 27.257812 21.417969 27.140625 21.714844 C 27.082031 21.855469 26.996094 21.976562 26.890625 22.082031 C 26.785156 22.1875 26.660156 22.273438 26.519531 22.328125 C 26.21875 22.445312 25.886719 22.445312 25.585938 22.328125 C 25.445312 22.273438 25.320312 22.1875 25.214844 22.082031 C 25.109375 21.976562 25.027344 21.851562 24.96875 21.714844 C 24.851562 21.417969 24.851562 21.089844 24.96875 20.792969 C 25.027344 20.652344 25.109375 20.53125 25.214844 20.425781 C 25.320312 20.320312 25.445312 20.234375 25.585938 20.179688 C 25.734375 20.117188 25.894531 20.085938 26.058594 20.085938 Z M 26.0625 20.554688 C 25.972656 20.550781 25.878906 20.570312 25.792969 20.605469 C 25.710938 20.636719 25.636719 20.6875 25.574219 20.75 C 25.511719 20.816406 25.464844 20.894531 25.429688 20.980469 C 25.363281 21.164062 25.363281 21.371094 25.429688 21.554688 C 25.464844 21.640625 25.511719 21.71875 25.574219 21.785156 C 25.636719 21.847656 25.710938 21.898438 25.792969 21.929688 C 25.964844 22 26.160156 22 26.332031 21.929688 C 26.417969 21.898438 26.496094 21.847656 26.5625 21.785156 C 26.625 21.71875 26.671875 21.640625 26.707031 21.554688 C 26.773438 21.371094 26.773438 21.164062 26.707031 20.980469 C 26.671875 20.894531 26.625 20.816406 26.5625 20.75 C 26.496094 20.6875 26.417969 20.636719 26.332031 20.605469 C 26.246094 20.566406 26.152344 20.542969 26.058594 20.539062 Z M 18.5 21.246094 C 18.5 20.554688 18.074219 20.09375 17.464844 20.09375 C 17.164062 20.097656 16.875 20.222656 16.664062 20.441406 C 16.453125 20.660156 16.335938 20.957031 16.339844 21.261719 C 16.34375 21.570312 16.46875 21.859375 16.6875 22.074219 C 16.902344 22.289062 17.195312 22.40625 17.496094 22.402344 C 17.824219 22.414062 18.140625 22.300781 18.390625 22.09375 L 18.160156 21.738281 C 17.980469 21.882812 17.757812 21.964844 17.527344 21.96875 C 17.371094 21.980469 17.214844 21.933594 17.09375 21.832031 C 16.96875 21.730469 16.890625 21.585938 16.875 21.425781 L 18.492188 21.425781 C 18.5 21.371094 18.5 21.3125 18.5 21.246094 Z M 16.875 21.054688 C 16.886719 20.90625 16.949219 20.769531 17.058594 20.667969 C 17.164062 20.570312 17.304688 20.515625 17.449219 20.519531 C 17.519531 20.519531 17.589844 20.53125 17.65625 20.554688 C 17.722656 20.582031 17.785156 20.621094 17.835938 20.671875 C 17.886719 20.722656 17.925781 20.78125 17.957031 20.847656 C 17.984375 20.914062 18 20.984375 18 21.054688 Z M 20.496094 20.707031 C 20.289062 20.585938 20.050781 20.519531 19.8125 20.515625 C 19.550781 20.515625 19.394531 20.613281 19.394531 20.777344 C 19.394531 20.9375 19.5625 20.964844 19.765625 20.992188 L 19.996094 21.023438 C 20.46875 21.09375 20.757812 21.296875 20.757812 21.6875 C 20.757812 22.074219 20.390625 22.40625 19.765625 22.40625 C 19.425781 22.414062 19.097656 22.316406 18.820312 22.121094 L 19.050781 21.746094 C 19.257812 21.902344 19.515625 21.984375 19.773438 21.976562 C 20.097656 21.976562 20.273438 21.878906 20.273438 21.707031 C 20.273438 21.585938 20.148438 21.515625 19.890625 21.476562 L 19.660156 21.445312 C 19.171875 21.375 18.90625 21.15625 18.90625 20.792969 C 18.90625 20.355469 19.265625 20.085938 19.820312 20.085938 C 20.132812 20.078125 20.441406 20.15625 20.707031 20.316406 Z M 22.777344 20.582031 L 22.003906 20.582031 L 22.003906 21.578125 C 22.003906 21.808594 22.082031 21.945312 22.320312 21.945312 C 22.46875 21.941406 22.613281 21.898438 22.742188 21.820312 L 22.878906 22.234375 C 22.699219 22.34375 22.492188 22.40625 22.285156 22.402344 C 21.722656 22.402344 21.527344 22.097656 21.527344 21.585938 L 21.527344 20.582031 L 21.082031 20.582031 L 21.082031 20.144531 L 21.527344 20.144531 L 21.527344 19.472656 L 22.003906 19.472656 L 22.003906 20.144531 L 22.777344 20.144531 Z M 24.421875 20.085938 C 24.535156 20.085938 24.648438 20.109375 24.757812 20.148438 L 24.613281 20.609375 C 24.519531 20.570312 24.417969 20.550781 24.316406 20.554688 C 24.003906 20.554688 23.859375 20.757812 23.859375 21.121094 L 23.859375 22.359375 L 23.382812 22.359375 L 23.382812 20.152344 L 23.855469 20.152344 L 23.855469 20.417969 C 23.914062 20.320312 23.996094 20.234375 24.097656 20.179688 C 24.199219 20.121094 24.3125 20.09375 24.429688 20.097656 Z M 27.703125 22.027344 C 27.730469 22.027344 27.761719 22.03125 27.789062 22.042969 C 27.816406 22.054688 27.839844 22.070312 27.859375 22.089844 C 27.878906 22.109375 27.894531 22.132812 27.90625 22.160156 C 27.917969 22.1875 27.925781 22.214844 27.925781 22.246094 C 27.925781 22.273438 27.917969 22.304688 27.90625 22.328125 C 27.894531 22.355469 27.878906 22.378906 27.859375 22.398438 C 27.839844 22.417969 27.816406 22.433594 27.789062 22.445312 C 27.761719 22.457031 27.734375 22.464844 27.703125 22.464844 C 27.660156 22.464844 27.617188 22.449219 27.582031 22.425781 C 27.542969 22.402344 27.515625 22.371094 27.496094 22.328125 C 27.484375 22.304688 27.480469 22.273438 27.480469 22.246094 C 27.480469 22.214844 27.484375 22.1875 27.496094 22.160156 C 27.507812 22.132812 27.523438 22.109375 27.546875 22.089844 C 27.566406 22.070312 27.589844 22.054688 27.617188 22.042969 C 27.640625 22.035156 27.664062 22.027344 27.691406 22.027344 Z M 27.703125 22.417969 C 27.726562 22.417969 27.746094 22.414062 27.769531 22.402344 C 27.789062 22.394531 27.804688 22.382812 27.820312 22.367188 C 27.839844 22.347656 27.855469 22.324219 27.863281 22.296875 C 27.871094 22.269531 27.871094 22.242188 27.867188 22.214844 C 27.863281 22.1875 27.851562 22.160156 27.832031 22.140625 C 27.816406 22.117188 27.792969 22.101562 27.769531 22.089844 C 27.746094 22.082031 27.726562 22.074219 27.703125 22.074219 C 27.679688 22.074219 27.65625 22.082031 27.636719 22.089844 C 27.617188 22.097656 27.597656 22.109375 27.582031 22.125 C 27.554688 22.160156 27.539062 22.199219 27.539062 22.242188 C 27.539062 22.285156 27.554688 22.328125 27.582031 22.359375 C 27.597656 22.375 27.617188 22.386719 27.636719 22.394531 C 27.65625 22.402344 27.679688 22.410156 27.703125 22.410156 Z M 27.714844 22.144531 C 27.738281 22.140625 27.757812 22.148438 27.777344 22.160156 C 27.78125 22.167969 27.789062 22.175781 27.792969 22.183594 C 27.796875 22.191406 27.796875 22.199219 27.796875 22.210938 C 27.796875 22.21875 27.796875 22.226562 27.792969 22.230469 C 27.789062 22.238281 27.785156 22.246094 27.78125 22.25 C 27.765625 22.261719 27.75 22.269531 27.730469 22.273438 L 27.796875 22.347656 L 27.746094 22.347656 L 27.683594 22.273438 L 27.664062 22.273438 L 27.664062 22.347656 L 27.621094 22.347656 L 27.621094 22.136719 Z M 27.667969 22.183594 L 27.667969 22.238281 L 27.714844 22.238281 C 27.726562 22.242188 27.734375 22.242188 27.742188 22.238281 C 27.746094 22.234375 27.746094 22.230469 27.746094 22.226562 C 27.746094 22.222656 27.746094 22.21875 27.742188 22.21875 C 27.746094 22.214844 27.746094 22.210938 27.746094 22.207031 C 27.746094 22.203125 27.746094 22.199219 27.742188 22.195312 C 27.734375 22.195312 27.726562 22.195312 27.714844 22.195312 Z M 27.667969 22.183594 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(46.27451%,45.09804%,75.294119%)",fillOpacity:1},d:"M 22.09375 3.3125 L 14.902344 3.3125 L 14.902344 16.390625 L 22.09375 16.390625 Z M 22.09375 3.3125 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(92.156863%,0%,10.588235%)",fillOpacity:1},d:"M 15.359375 9.851562 C 15.359375 8.59375 15.640625 7.351562 16.183594 6.21875 C 16.730469 5.085938 17.519531 4.09375 18.5 3.3125 C 17.285156 2.351562 15.832031 1.75 14.296875 1.585938 C 12.765625 1.417969 11.21875 1.691406 9.832031 2.375 C 8.445312 3.054688 7.273438 4.117188 6.457031 5.441406 C 5.636719 6.761719 5.203125 8.292969 5.203125 9.851562 C 5.203125 11.410156 5.636719 12.941406 6.457031 14.261719 C 7.273438 15.585938 8.445312 16.648438 9.832031 17.332031 C 11.21875 18.011719 12.765625 18.285156 14.296875 18.121094 C 15.832031 17.953125 17.285156 17.351562 18.5 16.390625 C 17.519531 15.613281 16.730469 14.621094 16.1875 13.488281 C 15.640625 12.355469 15.359375 11.113281 15.359375 9.851562 Z M 15.359375 9.851562 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(0%,63.137257%,87.450981%)",fillOpacity:1},d:"M 31.792969 9.851562 C 31.792969 11.414062 31.359375 12.941406 30.539062 14.261719 C 29.722656 15.585938 28.554688 16.648438 27.167969 17.328125 C 25.78125 18.011719 24.234375 18.285156 22.699219 18.117188 C 21.167969 17.953125 19.710938 17.351562 18.5 16.390625 C 19.476562 15.613281 20.269531 14.617188 20.8125 13.484375 C 21.355469 12.355469 21.640625 11.109375 21.640625 9.851562 C 21.640625 8.59375 21.355469 7.351562 20.8125 6.21875 C 20.269531 5.085938 19.476562 4.09375 18.5 3.3125 C 19.710938 2.351562 21.167969 1.75 22.699219 1.582031 C 24.234375 1.417969 25.78125 1.691406 27.167969 2.371094 C 28.554688 3.054688 29.726562 4.117188 30.542969 5.4375 C 31.359375 6.761719 31.796875 8.289062 31.796875 9.851562 Z M 31.792969 9.851562 "}))),T=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("path",{style:{stroke:"none",fillRule:"evenodd",fill:"rgb(30.19608%,30.19608%,30.19608%)",fillOpacity:1},d:"M 2.609375 0 C 0 0 0 0 0 0 C 0 0 0 0 0 24.046875 L 31.78125 24.046875 C 35.832031 24.046875 37 22.867188 37 21.40625 L 37 0 C 0 0 35.832031 0 34.390625 0 Z M 2.609375 0 "}),t.createElement("path",{style:{stroke:"none",fillRule:"evenodd",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 15.519531 7.769531 C 15.9375 7.769531 16.289062 7.855469 16.71875 8.0625 L 16.71875 9.15625 C 16.3125 8.777344 15.960938 8.621094 15.496094 8.621094 C 14.582031 8.621094 13.863281 9.339844 13.863281 10.253906 C 13.863281 11.21875 14.558594 11.894531 15.539062 11.894531 C 15.984375 11.894531 16.328125 11.746094 16.71875 11.375 L 16.71875 12.46875 C 16.273438 12.664062 15.914062 12.746094 15.496094 12.746094 C 14.011719 12.746094 12.859375 11.660156 12.859375 10.261719 C 12.859375 8.878906 14.042969 7.769531 15.519531 7.769531 Z M 10.910156 7.800781 C 11.460938 7.800781 11.960938 7.980469 12.378906 8.328125 L 11.871094 8.964844 C 11.617188 8.695312 11.375 8.578125 11.085938 8.578125 C 10.664062 8.578125 10.359375 8.808594 10.359375 9.105469 C 10.359375 9.363281 10.53125 9.5 11.113281 9.707031 C 12.222656 10.09375 12.550781 10.433594 12.550781 11.191406 C 12.550781 12.113281 11.839844 12.753906 10.828125 12.753906 C 10.085938 12.753906 9.546875 12.476562 9.097656 11.847656 L 9.730469 11.269531 C 9.953125 11.683594 10.328125 11.902344 10.792969 11.902344 C 11.226562 11.902344 11.546875 11.617188 11.546875 11.234375 C 11.546875 11.03125 11.453125 10.863281 11.257812 10.742188 C 11.160156 10.683594 10.964844 10.597656 10.582031 10.46875 C 9.667969 10.15625 9.355469 9.820312 9.355469 9.164062 C 9.355469 8.386719 10.027344 7.800781 10.910156 7.800781 Z M 22.046875 7.882812 L 23.109375 7.882812 L 24.441406 11.082031 L 25.792969 7.882812 L 26.847656 7.882812 L 24.691406 12.765625 L 24.167969 12.765625 Z M 3.199219 7.890625 L 4.628906 7.890625 C 6.207031 7.890625 7.308594 8.871094 7.308594 10.273438 C 7.308594 10.972656 6.972656 11.652344 6.402344 12.101562 C 5.921875 12.480469 5.378906 12.648438 4.621094 12.648438 L 3.199219 12.648438 Z M 7.757812 7.890625 L 8.734375 7.890625 L 8.734375 12.648438 L 7.757812 12.648438 Z M 27.289062 7.890625 L 30.050781 7.890625 L 30.050781 8.699219 L 28.261719 8.699219 L 28.261719 9.753906 L 29.988281 9.753906 L 29.988281 10.558594 L 28.261719 10.558594 L 28.261719 11.84375 L 30.050781 11.84375 L 30.050781 12.648438 L 27.289062 12.648438 Z M 30.699219 7.890625 L 32.140625 7.890625 C 33.265625 7.890625 33.910156 8.40625 33.910156 9.296875 C 33.910156 10.023438 33.507812 10.503906 32.773438 10.644531 L 34.34375 12.648438 L 33.144531 12.648438 L 31.796875 10.738281 L 31.671875 10.738281 L 31.671875 12.648438 L 30.699219 12.648438 Z M 31.671875 8.640625 L 31.671875 10.082031 L 31.957031 10.082031 C 32.578125 10.082031 32.90625 9.824219 32.90625 9.347656 C 32.90625 8.882812 32.578125 8.640625 31.972656 8.640625 Z M 4.171875 8.699219 L 4.171875 11.84375 L 4.433594 11.84375 C 5.0625 11.84375 5.460938 11.730469 5.765625 11.464844 C 6.101562 11.179688 6.304688 10.722656 6.304688 10.265625 C 6.304688 9.8125 6.101562 9.367188 5.765625 9.082031 C 5.445312 8.804688 5.0625 8.699219 4.433594 8.699219 Z M 4.171875 8.699219 "}),t.createElement("path",{style:{stroke:"none",fillRule:"evenodd",fill:"rgb(95.686275%,44.705883%,8.627451%)",fillOpacity:1},d:"M 19.691406 7.738281 C 21.160156 7.738281 22.347656 8.871094 22.347656 10.269531 C 22.347656 11.667969 21.160156 12.800781 19.691406 12.800781 C 18.222656 12.800781 17.035156 11.667969 17.035156 10.269531 C 17.035156 8.871094 18.222656 7.738281 19.691406 7.738281 Z M 37 13.839844 C 35.761719 14.722656 26.511719 21.007812 10.496094 24.046875 L 34.390625 24.046875 C 35.832031 24.046875 37 24.046875 37 24.046875 L 37 0 Z M 37 13.839844 "}))),J=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(0%,47.450981%,74.509805%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 28.457031 12.070312 C 28.457031 7.296875 24.523438 4 20.210938 4 L 16.496094 4 C 12.132812 4 8.542969 7.296875 8.542969 12.070312 C 8.542969 16.433594 12.132812 20.019531 16.496094 20 L 20.210938 20 C 24.523438 20.019531 28.457031 16.433594 28.457031 12.070312 Z M 28.457031 12.070312 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(0%,47.450981%,74.509805%)",fillOpacity:1},d:"M 16.519531 4.675781 C 12.53125 4.679688 9.300781 7.957031 9.300781 12 C 9.300781 16.042969 12.535156 19.320312 16.519531 19.324219 C 20.511719 19.320312 23.742188 16.042969 23.742188 12 C 23.742188 7.957031 20.511719 4.679688 16.519531 4.675781 Z M 16.519531 4.675781 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 11.957031 11.980469 C 11.960938 10.003906 13.179688 8.320312 14.894531 7.648438 L 14.894531 16.3125 C 13.179688 15.640625 11.960938 13.957031 11.957031 11.980469 Z M 18.171875 16.3125 L 18.171875 7.648438 C 19.890625 8.316406 21.109375 10.003906 21.109375 11.980469 C 21.109375 13.960938 19.890625 15.644531 18.171875 16.3125 Z M 18.171875 16.3125 "}))),Q=({className:e,cardContainerId:a,cardNumberContainerId:i,expirationDateContainerId:C,securityCodeContainerId:d,eligibleCards:s,cardTypeSelected:L,validationErrors:l,isLoading:o=!0,...f})=>M(j,{children:[M(F,{"data-testid":"loading-indicator",className:g(["elsie-credit-card-form__loading",o?"":"hidden"]),children:[r(Z,{variant:"row",lines:1,fullWidth:!0,size:"xsmall",multilineGap:"xsmall"}),r(Z,{variant:"row",size:"xsmall",fullWidth:!1}),r(Z,{variant:"row",size:"xsmall",fullWidth:!1}),r(Z,{variant:"row",size:"xsmall",fullWidth:!1})]}),M("div",{id:a,"data-testid":a,...f,className:g(["elsie-credit-card-form",e,o?"hidden":""]),children:[r("div",{id:"eligible-cards","data-testid":"eligible-cards",className:g(["elsie-credit-card-form__eligible-cards"]),children:s.map(n=>{let c;switch(n.code){case"amex":c=q;break;case"mastercard":c=H;break;case"maestro":c=G;break;case"discover":c=T;break;case"visa":c=Y;break;case"diners":c=J;break}return r(E,{id:`elsie-credit-card-form__eligible-cards-${n.code}`,source:c,viewBox:"0 0 37 24",className:g(["elsie-credit-card-form__eligible-cards-icon",!L||L.code!==n.code?"elsie-credit-card-form__eligible-cards-unselected":"elsie-credit-card-form__eligible-cards-selected"]),title:n.type},n.type)})}),M("div",{className:"elsie-credit-card-form__card-number",children:[r("div",{className:"elsie-credit-card-form__input-label",children:"Credit Card Number"}),r("div",{className:"elsie-credit-card-form__input-container",children:r("div",{id:i,"data-testid":i,className:g(["elsie-credit-card-form__input-target"])})}),r("div",{id:`${i}-error`,className:"elsie-credit-card-form__input-error",children:l==null?void 0:l.number})]}),M("div",{className:"elsie-credit-card-form__expiration-date",children:[r("div",{className:"elsie-credit-card-form__input-label",children:"Expiration Date"}),r("div",{className:"elsie-credit-card-form__input-container",children:r("div",{id:C,"data-testid":C,className:g(["elsie-credit-card-form__input-target"])})}),r("div",{id:`${C}-error`,className:"elsie-credit-card-form__input-error",children:l==null?void 0:l.expirationDate})]}),M("div",{className:"elsie-credit-card-form__security-code",children:[r("div",{className:"elsie-credit-card-form__input-label",children:"Card Security Code"}),r("div",{className:"elsie-credit-card-form__input-container",children:r("div",{id:d,"data-testid":d,className:g(["elsie-credit-card-form__input-target"])})}),r("div",{id:`${d}-error`,className:"elsie-credit-card-form__input-error",children:l==null?void 0:l.cvv})]})]})]}),k=({message:e})=>M("div",{className:"credit-card-error",children:[r(E,{source:"Warning",alt:"Warning",className:"credit-card-error__icon"}),r("p",{children:e})]});function U(e,a,i,C){function d(s){return s instanceof i?s:new i(function(L){L(s)})}return new(i||(i=Promise))(function(s,L){function l(n){try{f(C.next(n))}catch(c){L(c)}}function o(n){try{f(C.throw(n))}catch(c){L(c)}}function f(n){n.done?s(n.value):d(n.value).then(l,o)}f((C=C.apply(e,[])).next())})}function I(e,a){return U(this,void 0,void 0,function*(){if("PaymentServicesSDK"in window)return window.PaymentServicesSDK;if(yield e2(e,a||{}),!("PaymentServicesSDK"in window))throw new Error("Script loaded, but Payment Services SDK not found.");return window.PaymentServicesSDK})}function e2(e,{crossOrigin:a,integrity:i}){const C=document.createElement("script");return a!=null&&(C.crossOrigin=a),i!=null&&(C.integrity=i),new Promise((d,s)=>{C.src=e,C.async=!0,C.onload=()=>d(),C.onerror=L=>s(L),document.head.appendChild(C)})}var t2=I;const r2="https://payments-sdk.int.magento-payments.com/v0/2/PaymentSDK.js";var S=(e=>(e.loading="loading",e.ready="ready",e.error="error",e))(S||{});function C2({apiUrl:e,getCustomerToken:a},i){const[C,d]=b(null),[s,L]=b("loading");return B(()=>{t2(r2).then(async l=>{const o=new l({apiUrl:e,getCustomerToken:a});await o.Payment.init({location:i}),d(o)}).then(()=>L("ready")).catch(l=>{console.log(l),L("error")})},[e,i,a]),{paymentsSDK:C,sdkStatus:s}}var O=(e=>(e.Visa="visa",e.MasterCard="mastercard",e.Amex="amex",e.Discover="discover",e.Maestro="maestro",e.Diners="diners",e))(O||{});const c2="payment_services_paypal_hosted_fields",d2=({apiUrl:e,getCartId:a,getCustomerToken:i,onSuccess:C,onError:d,onRender:s,onValidation:L,...l})=>{const o="CHECKOUT",f="number",n="expirationDate",c="cvv",y=`${o}-card-container`,[D,N]=v(!0),[R,z]=v([]),[P,_]=v(null),[$,K]=v({}),{paymentsSDK:w,sdkStatus:V}=C2({apiUrl:e,getCustomerToken:i},o);return A(()=>{if(!w||!w.Payment.CreditCard.isAvailable())return;w.Payment.CreditCard.render({getCartId:a,onSuccess:C,onError:d,onValidityChange:(m,p)=>{if(W(m,p),L){const u=Object.values(m).every(h=>h.isValid);L(u)}},onRender:s,onCardTypeChange:m=>m.length>0?_(m[0]):_(null),fields:{number:{selector:`#${y} #${f}`,placeholder:" "},expirationDate:{selector:`#${y} #${n}`,placeholder:"MM/YY"},cvv:{selector:`#${y} #${c}`,placeholder:" "}}}).then(m=>{const p=m.getEligibleCards().filter(u=>Object.values(O).includes(u.code));z(p)}).finally(()=>{N(!1)});const W=(m,p)=>{const u=m[p];let h="";if(!u.isValid)switch(p){case"expirationDate":h=u.isEmpty?"This field is required.":"Enter valid expiration date.";break;case"cvv":h=u.isEmpty?"This field is required.":"Enter valid cvv.";break;case"number":h=u.isEmpty?"This field is required.":"Enter valid card number.";break}K(X=>{const x={...X};return h?x[p]=h:delete x[p],x})}},[w,y,a,C,d,s,L]),w&&!w.Payment.CreditCard.isAvailable()?r("div",{class:"payment-services_paypal-credit-card-container",children:r(k,{message:"Payment method not available. Please contact support."})}):V===S.error?r("div",{class:"payment-services_paypal-credit-card-container",children:r(k,{message:"Failed to load payment method. Please try again later."})}):r("div",{class:"payment-services_paypal-credit-card-container",...l,children:r(Q,{cardContainerId:y,cardNumberContainerId:f,expirationDateContainerId:n,securityCodeContainerId:c,eligibleCards:R,isLoading:D,cardTypeSelected:P,validationErrors:$})})};export{c2 as CREDIT_CARD_CODE,O as CardTypes,d2 as CreditCard,d2 as default}; diff --git a/scripts/__dropins__/storefront-payment-services/containers/CreditCard/CreditCard.d.ts b/scripts/__dropins__/storefront-payment-services/containers/CreditCard/CreditCard.d.ts new file mode 100644 index 000000000..b246f660e --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/containers/CreditCard/CreditCard.d.ts @@ -0,0 +1,66 @@ +import { CreditCard as PaymentServicesCreditCard } from '@adobe-commerce/payment-services-sdk/payment'; + +export declare enum CardTypes { + Visa = "visa", + MasterCard = "mastercard", + Amex = "amex", + Discover = "discover", + Maestro = "maestro", + Diners = "diners" +} +export declare const CREDIT_CARD_CODE = "payment_services_paypal_hosted_fields"; +export interface CreditCardProps { + /** + * Adobe Commerce GraphQL API URL, e.g., "https://magento.test/graphql". + */ + apiUrl: string; + /** + * Should return the cart id for which to make a payment. + */ + getCartId: () => Promise; + /** + * The Credit Card component may send GraphQL requests on behalf of the + * customer. This requires GraphQL Authorization, which can be done in two + * ways: (1) Authorization tokens; (2) Session cookies. + * + * (getCustomerToken === undefined) | (getCustomerToken === null) + * If no getCustomerToken function is provided, then the component + * will assume that the Adobe Commerce instance behind 'apiUrl' is set up + * to use session-based authorization. In that case, the component + * will send along same-origin cookies in every GraphQL request. + * + * (typeof getCustomerToken === 'function') + * If a getCustomerToken function is provided, then the component + * will embed the return value of the getCustomerToken function as an + * Authorization header in every request. If the getCustomerToken function + * returns null, then the component will assume that the + * customer is not logged in. + * + * For more information, see: + * https://developer.adobe.com/commerce/webapi/graphql/usage/authorization-tokens/ + */ + getCustomerToken?: (() => string | null) | null; + /** + * Called when payment flow is successful. + */ + onSuccess: () => void; + /** + * Called when payment flow was aborted due to an error. + */ + onError: (error: Error) => void; + /** + * Set this callback to be notified when the credit card fields are rendered. + * Use this to execute any logic that depends on the credit card fields being rendered. + * Credit Card may be re-rendered if an error occurs during submission. + * + * @param creditCard - The PaymentServicesCreditCard instance. + */ + onRender?: (creditCard: PaymentServicesCreditCard) => Promise; + /** + * Set this callback to be notified when the credit card fields are validated. + * @param isFormValid - true if all fields are valid, false otherwise. + */ + onValidation?: (isFormValid: boolean) => void; +} +export declare const CreditCard: ({ apiUrl, getCartId, getCustomerToken, onSuccess, onError, onRender, onValidation, ...props }: CreditCardProps) => import("preact/compat").JSX.Element; +//# sourceMappingURL=CreditCard.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/containers/CreditCard/index.d.ts b/scripts/__dropins__/storefront-payment-services/containers/CreditCard/index.d.ts new file mode 100644 index 000000000..e6dfa16e0 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/containers/CreditCard/index.d.ts @@ -0,0 +1,3 @@ +export * from './CreditCard'; +export { CreditCard as default } from './CreditCard'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/containers/index.d.ts b/scripts/__dropins__/storefront-payment-services/containers/index.d.ts new file mode 100644 index 000000000..875af4f37 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/containers/index.d.ts @@ -0,0 +1,2 @@ +export * from './CreditCard/CreditCard'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/data/models/index.d.ts b/scripts/__dropins__/storefront-payment-services/data/models/index.d.ts new file mode 100644 index 000000000..f36479a73 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/data/models/index.d.ts @@ -0,0 +1 @@ +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/data/transforms/index.d.ts b/scripts/__dropins__/storefront-payment-services/data/transforms/index.d.ts new file mode 100644 index 000000000..f36479a73 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/data/transforms/index.d.ts @@ -0,0 +1 @@ +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/hooks/usePaymentsSDK.d.ts b/scripts/__dropins__/storefront-payment-services/hooks/usePaymentsSDK.d.ts new file mode 100644 index 000000000..ba0931a22 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/hooks/usePaymentsSDK.d.ts @@ -0,0 +1,14 @@ +import { PaymentServicesSDK, SdkConfig } from '@adobe-commerce/payment-services-sdk'; + +export declare enum SDKStatus { + loading = "loading", + ready = "ready", + error = "error" +} +interface UsePaymentsSDKResult { + paymentsSDK: PaymentServicesSDK | null; + sdkStatus: SDKStatus; +} +export declare function usePaymentsSDK({ apiUrl, getCustomerToken }: SdkConfig, location: string): UsePaymentsSDKResult; +export {}; +//# sourceMappingURL=usePaymentsSDK.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/i18n/en_US.json.d.ts b/scripts/__dropins__/storefront-payment-services/i18n/en_US.json.d.ts new file mode 100644 index 000000000..fb56cc038 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/i18n/en_US.json.d.ts @@ -0,0 +1,5 @@ +declare const _default: { + "": {} +}; + +export default _default; diff --git a/scripts/__dropins__/storefront-payment-services/icons/index.d.ts b/scripts/__dropins__/storefront-payment-services/icons/index.d.ts new file mode 100644 index 000000000..7eafe97ca --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/icons/index.d.ts @@ -0,0 +1,7 @@ +export { default as Amex } from './amex.svg'; +export { default as Mastercard } from './mastercard.svg'; +export { default as Visa } from './visa.svg'; +export { default as Maestro } from './maestro.svg'; +export { default as Discover } from './discover.svg'; +export { default as Diners } from './diners.svg'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/render.d.ts b/scripts/__dropins__/storefront-payment-services/render.d.ts new file mode 100644 index 000000000..f519303f5 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/render.d.ts @@ -0,0 +1 @@ +export * from './render/index' diff --git a/scripts/__dropins__/storefront-payment-services/render.js b/scripts/__dropins__/storefront-payment-services/render.js new file mode 100644 index 000000000..23b334d81 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/render.js @@ -0,0 +1,4 @@ +/*! Copyright 2024 Adobe +All Rights Reserved. */ +(function(d,i){try{if(typeof document<"u"){const e=document.createElement("style"),a=i.styleId;for(const r in i.attributes)e.setAttribute(r,i.attributes[r]);e.setAttribute("data-dropin",a),e.appendChild(document.createTextNode(d));const t=document.querySelector('style[data-dropin="sdk"]');if(t)t.after(e);else{const r=document.querySelector('link[rel="stylesheet"], style');r?r.before(e):document.head.append(e)}}}catch(e){console.error("dropin-styles (injectCodeFunction)",e)}})(".elsie-credit-card-form.hidden,.elsie-credit-card-form__loading.hidden{display:none}.elsie-credit-card-form{display:grid;grid-auto-flow:row;grid-template-columns:var(--grid-2-columns);gap:var(--grid-2-gutters);margin:var(--grid-2-margins)}.elsie-credit-card-form__eligible-cards{margin-right:10px}.elsie-credit-card-form__eligible-cards-icon{width:37px;height:24px;margin-right:10px}.elsie-credit-card-form__eligible-cards-unselected{opacity:.2}.elsie-credit-card-form__eligible-cards-selected{opacity:1}.elsie-credit-card-form__input-container{border:var(--shape-border-width-1) solid var(--color-neutral-600);border-radius:var(--shape-border-radius-1);color:var(--color-neutral-800);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:100%;z-index:1;padding:11px var(--spacing-small)}.elsie-credit-card-form__input-label{font-weight:700}.elsie-credit-card-form__input-error{font:var(--type-body-1-default-font);color:var(--color-alert-800)}.elsie-credit-card-form__input-target{height:2rem}.elsie-credit-card-form__card-number{grid-column:1 / span 2}.credit-card-error{display:flex;align-items:center;color:var(--color-alert-800);border:1px solid var(--color-alert-800);border-radius:var(--shape-border-radius-1);padding:var(--spacing-small);margin:var(--spacing-small) 0;font:var(--type-body-1-default-font)}.credit-card-error__icon{width:20px;height:20px;margin-right:8px}",{styleId:"PaymentServices"}); +import{jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{Render as f}from"@dropins/tools/lib.js";import{useState as i,useEffect as m}from"@dropins/tools/preact-hooks.js";import{UIProvider as c}from"@dropins/tools/components.js";import{events as a}from"@dropins/tools/event-bus.js";const p={"":{}},u={default:p},d=({children:o})=>{const[t,n]=i("en_US");return m(()=>{const r=a.on("locale",s=>{n(s)},{eager:!0});return()=>{r==null||r.off()}},[]),e(c,{lang:t,langDefinitions:u,children:o})},x=new f(e(d,{}));export{x as render}; diff --git a/scripts/__dropins__/storefront-payment-services/render/Provider.d.ts b/scripts/__dropins__/storefront-payment-services/render/Provider.d.ts new file mode 100644 index 000000000..898f1ec72 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/render/Provider.d.ts @@ -0,0 +1,8 @@ +import { FunctionComponent } from 'preact'; + +interface CartProviderProps { + children?: any; +} +export declare const Provider: FunctionComponent; +export {}; +//# sourceMappingURL=Provider.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/render/index.d.ts b/scripts/__dropins__/storefront-payment-services/render/index.d.ts new file mode 100644 index 000000000..b758d268a --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/render/index.d.ts @@ -0,0 +1,2 @@ +export * from './render'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/render/render.d.ts b/scripts/__dropins__/storefront-payment-services/render/render.d.ts new file mode 100644 index 000000000..ca9b93195 --- /dev/null +++ b/scripts/__dropins__/storefront-payment-services/render/render.d.ts @@ -0,0 +1,4 @@ +import { Render } from '@dropins/tools/types/elsie/src/lib'; + +export declare const render: Render; +//# sourceMappingURL=render.d.ts.map \ No newline at end of file From a039250a5ccc87da24b3cc338d700a51b42c1616 Mon Sep 17 00:00:00 2001 From: Ruben Cougil Date: Thu, 19 Dec 2024 10:43:21 +0100 Subject: [PATCH 3/4] Revert "update" This reverts commit ad71d59a9d1c1bd6d293a5e504bdb47363af550a. --- package-lock.json | 6 -- package.json | 2 +- .../storefront-payment-services/api.d.ts | 1 - .../storefront-payment-services/api.js | 3 - .../api/index.d.ts | 2 - .../api/initialize/index.d.ts | 2 - .../api/initialize/initialize.d.ts | 10 --- .../CheckoutPaymentMethods.d.ts | 9 --- .../CheckoutPaymentMethodsSkeleton.d.ts | 7 -- .../CheckoutPaymentMethods/index.d.ts | 3 - .../CreditCardForm/CreditCardError.d.ts | 8 --- .../CreditCardForm/CreditCardForm.d.ts | 18 ----- .../components/CreditCardForm/index.d.ts | 3 - .../components/index.d.ts | 4 -- .../containers/CreditCard.d.ts | 3 - .../containers/CreditCard.js | 3 - .../containers/CreditCard/CreditCard.d.ts | 66 ------------------- .../containers/CreditCard/index.d.ts | 3 - .../containers/index.d.ts | 2 - .../data/models/index.d.ts | 1 - .../data/transforms/index.d.ts | 1 - .../hooks/usePaymentsSDK.d.ts | 14 ---- .../i18n/en_US.json.d.ts | 5 -- .../icons/index.d.ts | 7 -- .../storefront-payment-services/render.d.ts | 1 - .../storefront-payment-services/render.js | 4 -- .../render/Provider.d.ts | 8 --- .../render/index.d.ts | 2 - .../render/render.d.ts | 4 -- 29 files changed, 1 insertion(+), 201 deletions(-) delete mode 100644 scripts/__dropins__/storefront-payment-services/api.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/api.js delete mode 100644 scripts/__dropins__/storefront-payment-services/api/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/api/initialize/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/api/initialize/initialize.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethods.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethodsSkeleton.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardError.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardForm.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/components/CreditCardForm/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/components/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/containers/CreditCard.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/containers/CreditCard.js delete mode 100644 scripts/__dropins__/storefront-payment-services/containers/CreditCard/CreditCard.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/containers/CreditCard/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/containers/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/data/models/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/data/transforms/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/hooks/usePaymentsSDK.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/i18n/en_US.json.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/icons/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/render.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/render.js delete mode 100644 scripts/__dropins__/storefront-payment-services/render/Provider.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/render/index.d.ts delete mode 100644 scripts/__dropins__/storefront-payment-services/render/render.d.ts diff --git a/package-lock.json b/package-lock.json index 7395dcec8..f3fdf91b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,6 @@ "@dropins/storefront-cart": "~1.0.1", "@dropins/storefront-checkout": "~1.0.0", "@dropins/storefront-order": "~1.0.0", - "@dropins/storefront-payment-services": "0.0.1-alpha20", "@dropins/storefront-pdp": "~1.0.0", "@dropins/tools": "^0.38.0" }, @@ -796,11 +795,6 @@ "integrity": "sha512-3bhRUqiFkOLvJ5ovZpVplPBs5DcbSfSnlEX7pkl1fyJ3upFDM1CPBFjQEv3+iQF2OarzlOaYCeFdzke3LNxVcg==", "license": "SEE LICENSE IN LICENSE.md" }, - "node_modules/@dropins/storefront-payment-services": { - "version": "0.0.1-alpha20", - "resolved": "https://registry.npmjs.org/@dropins/storefront-payment-services/-/storefront-payment-services-0.0.1-alpha20.tgz", - "integrity": "sha512-RgOFFLCP4R0qB99ax5KT/Sh5ksjf0QzDrwORN6kfDO/YqCrD+6VUIoFLYwX8Mz2xG6yO+LLQ23Mc/QLmIQtFww==" - }, "node_modules/@dropins/storefront-pdp": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@dropins/storefront-pdp/-/storefront-pdp-1.0.0.tgz", diff --git a/package.json b/package.json index e06e3ea98..12fb4c958 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,6 @@ "@dropins/storefront-order": "~1.0.0", "@dropins/storefront-pdp": "~1.0.0", "@dropins/tools": "^0.38.0", - "@dropins/storefront-payment-services": "0.0.1-alpha20" + "@dropins/storefront-payment-services": "0.0.1-alpha16" } } diff --git a/scripts/__dropins__/storefront-payment-services/api.d.ts b/scripts/__dropins__/storefront-payment-services/api.d.ts deleted file mode 100644 index 30939a827..000000000 --- a/scripts/__dropins__/storefront-payment-services/api.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './api/index' diff --git a/scripts/__dropins__/storefront-payment-services/api.js b/scripts/__dropins__/storefront-payment-services/api.js deleted file mode 100644 index 61d4ebc08..000000000 --- a/scripts/__dropins__/storefront-payment-services/api.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! Copyright 2024 Adobe -All Rights Reserved. */ -import{Initializer as t}from"@dropins/tools/lib.js";const i=new t({init:async n=>{const o={};i.config.setConfig({...o,...n})},listeners:()=>[]}),c=i.config;export{c as config,i as initialize}; diff --git a/scripts/__dropins__/storefront-payment-services/api/index.d.ts b/scripts/__dropins__/storefront-payment-services/api/index.d.ts deleted file mode 100644 index 66c241dc2..000000000 --- a/scripts/__dropins__/storefront-payment-services/api/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './initialize'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/api/initialize/index.d.ts b/scripts/__dropins__/storefront-payment-services/api/initialize/index.d.ts deleted file mode 100644 index 66c241dc2..000000000 --- a/scripts/__dropins__/storefront-payment-services/api/initialize/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './initialize'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/api/initialize/initialize.d.ts b/scripts/__dropins__/storefront-payment-services/api/initialize/initialize.d.ts deleted file mode 100644 index fc29428e5..000000000 --- a/scripts/__dropins__/storefront-payment-services/api/initialize/initialize.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Initializer } from '@dropins/tools/types/elsie/src/lib'; -import { Lang } from '@dropins/tools/types/elsie/src/i18n'; - -type ConfigProps = { - langDefinitions?: Lang; -}; -export declare const initialize: Initializer; -export declare const config: import('@dropins/tools/types/elsie/src/lib').Config; -export {}; -//# sourceMappingURL=initialize.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethods.d.ts b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethods.d.ts deleted file mode 100644 index 7dec2db96..000000000 --- a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethods.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { FunctionComponent, VNode } from 'preact'; -import { HTMLAttributes } from 'preact/compat'; - -export interface CheckoutPaymentMethodsProps extends HTMLAttributes { - status: 'loading' | 'ready'; - paymentMethodsContent?: VNode>; -} -export declare const CheckoutPaymentMethods: FunctionComponent; -//# sourceMappingURL=CheckoutPaymentMethods.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethodsSkeleton.d.ts b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethodsSkeleton.d.ts deleted file mode 100644 index 5db992cf1..000000000 --- a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/CheckoutPaymentMethodsSkeleton.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { FunctionComponent } from 'preact'; -import { HTMLAttributes } from 'preact/compat'; - -export interface CheckoutPaymentMethodsSkeletonProps extends HTMLAttributes { -} -export declare const CheckoutPaymentMethodsSkeleton: FunctionComponent; -//# sourceMappingURL=CheckoutPaymentMethodsSkeleton.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/index.d.ts b/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/index.d.ts deleted file mode 100644 index e89a957e6..000000000 --- a/scripts/__dropins__/storefront-payment-services/components/CheckoutPaymentMethods/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './CheckoutPaymentMethods'; -export { CheckoutPaymentMethods as default } from './CheckoutPaymentMethods'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardError.d.ts b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardError.d.ts deleted file mode 100644 index a9ca66f70..000000000 --- a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardError.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { FunctionalComponent } from 'preact'; - -interface CreditCardErrorProps { - message: string; -} -export declare const CreditCardError: FunctionalComponent; -export {}; -//# sourceMappingURL=CreditCardError.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardForm.d.ts b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardForm.d.ts deleted file mode 100644 index 955231d15..000000000 --- a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/CreditCardForm.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { FunctionComponent } from 'preact'; -import { HTMLAttributes } from 'preact/compat'; -import { CardType } from '@adobe-commerce/payment-services-sdk/payment'; - -export interface CreditCardFormProps extends HTMLAttributes { - cardContainerId: string; - cardNumberContainerId: string; - expirationDateContainerId: string; - securityCodeContainerId: string; - eligibleCards: CardType[]; - cardTypeSelected: CardType | null; - validationErrors: { - [key: string]: string; - }; - isLoading?: boolean; -} -export declare const CreditCardForm: FunctionComponent; -//# sourceMappingURL=CreditCardForm.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/index.d.ts b/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/index.d.ts deleted file mode 100644 index a2bdd2374..000000000 --- a/scripts/__dropins__/storefront-payment-services/components/CreditCardForm/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './CreditCardForm'; -export { CreditCardForm as default } from './CreditCardForm'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/components/index.d.ts b/scripts/__dropins__/storefront-payment-services/components/index.d.ts deleted file mode 100644 index 202a37189..000000000 --- a/scripts/__dropins__/storefront-payment-services/components/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './CheckoutPaymentMethods'; -export * from './CreditCardForm'; -export * from './CreditCardForm/CreditCardError'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/containers/CreditCard.d.ts b/scripts/__dropins__/storefront-payment-services/containers/CreditCard.d.ts deleted file mode 100644 index fdf1a74f5..000000000 --- a/scripts/__dropins__/storefront-payment-services/containers/CreditCard.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './CreditCard/index' -import _default from './CreditCard/index' -export default _default diff --git a/scripts/__dropins__/storefront-payment-services/containers/CreditCard.js b/scripts/__dropins__/storefront-payment-services/containers/CreditCard.js deleted file mode 100644 index 108c78b7c..000000000 --- a/scripts/__dropins__/storefront-payment-services/containers/CreditCard.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! Copyright 2024 Adobe -All Rights Reserved. */ -import{jsxs as M,Fragment as j,jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import*as t from"@dropins/tools/preact-compat.js";import{useState as v,useEffect as A}from"@dropins/tools/preact-compat.js";import{classes as g}from"@dropins/tools/lib.js";import{Skeleton as F,SkeletonRow as Z,Icon as E}from"@dropins/tools/components.js";import{useState as b,useEffect as B}from"@dropins/tools/preact-hooks.js";const q=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(14.509805%,34.117648%,83.92157%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 0.0117188 11.3125 L 1.789062 11.3125 L 2.1875 10.375 L 3.085938 10.375 L 3.484375 11.3125 L 6.980469 11.3125 L 6.980469 10.597656 L 7.289062 11.316406 L 9.105469 11.316406 L 9.417969 10.585938 L 9.417969 11.3125 L 18.101562 11.3125 L 18.097656 9.777344 L 18.265625 9.777344 C 18.382812 9.78125 18.417969 9.789062 18.417969 9.980469 L 18.417969 11.3125 L 22.910156 11.3125 L 22.910156 10.957031 C 23.269531 11.144531 23.835938 11.3125 24.578125 11.3125 L 26.464844 11.3125 L 26.871094 10.375 L 27.765625 10.375 L 28.164062 11.3125 L 31.804688 11.3125 L 31.804688 10.421875 L 32.355469 11.3125 L 35.273438 11.3125 L 35.273438 5.433594 L 32.386719 5.433594 L 32.386719 6.128906 L 31.980469 5.433594 L 29.019531 5.433594 L 29.019531 6.128906 L 28.648438 5.433594 L 24.644531 5.433594 C 23.972656 5.433594 23.386719 5.523438 22.910156 5.777344 L 22.910156 5.433594 L 20.148438 5.433594 L 20.148438 5.777344 C 19.84375 5.515625 19.433594 5.433594 18.972656 5.433594 L 8.882812 5.433594 L 8.203125 6.953125 L 7.507812 5.433594 L 4.332031 5.433594 L 4.332031 6.128906 L 3.980469 5.433594 L 1.269531 5.433594 L 0.0117188 8.226562 Z M 11.222656 10.464844 L 10.15625 10.464844 L 10.152344 7.164062 L 8.644531 10.464844 L 7.734375 10.464844 L 6.222656 7.160156 L 6.222656 10.464844 L 4.109375 10.464844 L 3.707031 9.523438 L 1.542969 9.523438 L 1.140625 10.464844 L 0.0117188 10.464844 L 1.875 6.25 L 3.417969 6.25 L 5.1875 10.242188 L 5.1875 6.25 L 6.882812 6.25 L 8.242188 9.109375 L 9.492188 6.25 L 11.222656 6.25 Z M 3.351562 8.648438 L 2.640625 6.96875 L 1.933594 8.648438 Z M 15.464844 10.464844 L 11.992188 10.464844 L 11.992188 6.25 L 15.464844 6.25 L 15.464844 7.125 L 13.03125 7.125 L 13.03125 7.886719 L 15.40625 7.886719 L 15.40625 8.75 L 13.03125 8.75 L 13.03125 9.59375 L 15.464844 9.59375 Z M 20.355469 7.382812 C 20.355469 8.054688 19.894531 8.402344 19.625 8.507812 C 19.851562 8.59375 20.046875 8.738281 20.140625 8.863281 C 20.285156 9.074219 20.3125 9.261719 20.3125 9.636719 L 20.3125 10.464844 L 19.261719 10.464844 L 19.257812 9.933594 C 19.257812 9.679688 19.285156 9.316406 19.09375 9.113281 C 18.941406 8.964844 18.710938 8.929688 18.335938 8.929688 L 17.222656 8.929688 L 17.222656 10.464844 L 16.183594 10.464844 L 16.183594 6.25 L 18.574219 6.25 C 19.105469 6.25 19.496094 6.261719 19.832031 6.449219 C 20.160156 6.640625 20.355469 6.914062 20.355469 7.382812 Z M 19.042969 8.011719 C 18.902344 8.09375 18.730469 8.097656 18.527344 8.097656 L 17.265625 8.097656 L 17.265625 7.160156 L 18.546875 7.160156 C 18.726562 7.160156 18.917969 7.167969 19.039062 7.238281 C 19.175781 7.296875 19.257812 7.429688 19.257812 7.609375 C 19.257812 7.792969 19.179688 7.941406 19.042969 8.011719 Z M 22.023438 10.464844 L 20.964844 10.464844 L 20.964844 6.25 L 22.023438 6.25 Z M 34.335938 10.464844 L 32.863281 10.464844 L 30.894531 7.300781 L 30.894531 10.464844 L 28.777344 10.464844 L 28.371094 9.523438 L 26.210938 9.523438 L 25.820312 10.464844 L 24.605469 10.464844 C 24.097656 10.464844 23.457031 10.355469 23.097656 10 C 22.730469 9.640625 22.542969 9.15625 22.542969 8.390625 C 22.542969 7.761719 22.65625 7.191406 23.101562 6.742188 C 23.4375 6.402344 23.964844 6.25 24.679688 6.25 L 25.6875 6.25 L 25.6875 7.152344 L 24.703125 7.152344 C 24.320312 7.152344 24.109375 7.207031 23.902344 7.402344 C 23.722656 7.578125 23.601562 7.914062 23.601562 8.355469 C 23.601562 8.808594 23.695312 9.132812 23.886719 9.347656 C 24.046875 9.515625 24.339844 9.566406 24.613281 9.566406 L 25.078125 9.566406 L 26.542969 6.25 L 28.101562 6.25 L 29.863281 10.238281 L 29.863281 6.25 L 31.445312 6.25 L 33.273438 9.183594 L 33.273438 6.25 L 34.335938 6.25 Z M 28.019531 8.648438 L 27.300781 6.96875 L 26.582031 8.648438 Z M 36.984375 17.199219 C 36.734375 17.554688 36.242188 17.738281 35.574219 17.738281 L 33.566406 17.738281 L 33.566406 16.832031 L 35.566406 16.832031 C 35.765625 16.832031 35.902344 16.808594 35.988281 16.726562 C 36.066406 16.65625 36.109375 16.558594 36.109375 16.453125 C 36.109375 16.332031 36.058594 16.234375 35.984375 16.175781 C 35.90625 16.109375 35.796875 16.082031 35.617188 16.082031 C 34.640625 16.046875 33.421875 16.109375 33.421875 14.773438 C 33.421875 14.164062 33.824219 13.519531 34.914062 13.519531 L 36.984375 13.519531 L 36.984375 12.679688 L 35.0625 12.679688 C 34.480469 12.679688 34.058594 12.816406 33.761719 13.023438 L 33.761719 12.679688 L 30.914062 12.679688 C 30.460938 12.679688 29.925781 12.789062 29.671875 13.023438 L 29.671875 12.679688 L 24.59375 12.679688 L 24.59375 13.023438 C 24.1875 12.742188 23.503906 12.679688 23.191406 12.679688 L 19.839844 12.679688 L 19.839844 13.023438 C 19.519531 12.726562 18.808594 12.679688 18.375 12.679688 L 14.621094 12.679688 L 13.765625 13.582031 L 12.960938 12.679688 L 7.355469 12.679688 L 7.355469 18.566406 L 12.855469 18.566406 L 13.738281 17.648438 L 14.570312 18.566406 L 17.960938 18.566406 L 17.960938 17.183594 L 18.292969 17.183594 C 18.742188 17.191406 19.273438 17.171875 19.742188 16.976562 L 19.742188 18.566406 L 22.539062 18.566406 L 22.539062 17.03125 L 22.671875 17.03125 C 22.84375 17.03125 22.859375 17.039062 22.859375 17.203125 L 22.859375 18.566406 L 31.351562 18.566406 C 31.890625 18.566406 32.457031 18.429688 32.765625 18.1875 L 32.765625 18.566406 L 35.460938 18.566406 C 36.019531 18.566406 36.570312 18.488281 36.984375 18.292969 L 36.984375 17.195312 Z M 20.148438 14.933594 C 20.148438 16.105469 19.246094 16.347656 18.339844 16.347656 L 17.042969 16.347656 L 17.042969 17.761719 L 15.019531 17.761719 L 13.742188 16.367188 L 12.410156 17.761719 L 8.292969 17.761719 L 8.292969 13.542969 L 12.472656 13.542969 L 13.753906 14.925781 L 15.074219 13.542969 L 18.398438 13.542969 C 19.222656 13.542969 20.148438 13.765625 20.148438 14.933594 Z M 11.882812 16.875 L 9.328125 16.875 L 9.328125 16.035156 L 11.609375 16.035156 L 11.609375 15.175781 L 9.328125 15.175781 L 9.328125 14.410156 L 11.933594 14.410156 L 13.070312 15.636719 Z M 16.003906 17.359375 L 14.40625 15.640625 L 16.003906 13.976562 Z M 18.363281 15.484375 L 17.019531 15.484375 L 17.019531 14.410156 L 18.375 14.410156 C 18.75 14.410156 19.011719 14.558594 19.011719 14.925781 C 19.011719 15.289062 18.761719 15.484375 18.363281 15.484375 Z M 25.398438 13.542969 L 28.871094 13.542969 L 28.871094 14.417969 L 26.433594 14.417969 L 26.433594 15.183594 L 28.808594 15.183594 L 28.808594 16.042969 L 26.433594 16.042969 L 26.433594 16.882812 L 28.871094 16.886719 L 28.871094 17.761719 L 25.398438 17.761719 Z M 24.066406 15.800781 C 24.296875 15.882812 24.488281 16.03125 24.574219 16.15625 C 24.722656 16.363281 24.742188 16.554688 24.746094 16.925781 L 24.746094 17.761719 L 23.703125 17.761719 L 23.703125 17.234375 C 23.703125 16.980469 23.730469 16.605469 23.535156 16.410156 C 23.382812 16.257812 23.152344 16.222656 22.773438 16.222656 L 21.664062 16.222656 L 21.664062 17.761719 L 20.617188 17.761719 L 20.617188 13.542969 L 23.019531 13.542969 C 23.542969 13.542969 23.925781 13.566406 24.269531 13.742188 C 24.597656 13.9375 24.804688 14.199219 24.804688 14.679688 C 24.804688 15.351562 24.339844 15.695312 24.066406 15.800781 Z M 23.480469 15.269531 C 23.339844 15.347656 23.167969 15.355469 22.964844 15.355469 L 21.703125 15.355469 L 21.703125 14.410156 L 22.984375 14.410156 C 23.167969 14.410156 23.351562 14.414062 23.480469 14.484375 C 23.613281 14.554688 23.695312 14.683594 23.695312 14.863281 C 23.695312 15.042969 23.613281 15.191406 23.480469 15.269531 Z M 32.863281 15.539062 C 33.066406 15.742188 33.171875 15.996094 33.171875 16.429688 C 33.171875 17.339844 32.589844 17.761719 31.539062 17.761719 L 29.515625 17.761719 L 29.515625 16.855469 L 31.53125 16.855469 C 31.730469 16.855469 31.871094 16.832031 31.957031 16.753906 C 32.027344 16.6875 32.078125 16.59375 32.078125 16.476562 C 32.078125 16.355469 32.023438 16.257812 31.953125 16.199219 C 31.875 16.132812 31.765625 16.105469 31.582031 16.105469 C 30.609375 16.074219 29.394531 16.132812 29.394531 14.800781 C 29.394531 14.1875 29.789062 13.542969 30.878906 13.542969 L 32.964844 13.542969 L 32.964844 14.441406 L 31.058594 14.441406 C 30.867188 14.441406 30.746094 14.449219 30.640625 14.519531 C 30.527344 14.585938 30.484375 14.6875 30.484375 14.820312 C 30.484375 14.980469 30.582031 15.089844 30.710938 15.136719 C 30.820312 15.171875 30.9375 15.183594 31.117188 15.183594 L 31.675781 15.199219 C 32.238281 15.210938 32.628906 15.304688 32.863281 15.539062 Z M 36.988281 14.410156 L 35.09375 14.410156 C 34.902344 14.410156 34.777344 14.414062 34.671875 14.484375 C 34.5625 14.554688 34.519531 14.65625 34.519531 14.789062 C 34.519531 14.945312 34.613281 15.054688 34.746094 15.101562 C 34.855469 15.140625 34.976562 15.148438 35.148438 15.148438 L 35.710938 15.164062 C 36.28125 15.179688 36.660156 15.273438 36.890625 15.503906 C 36.933594 15.535156 36.957031 15.574219 36.988281 15.609375 Z M 36.988281 14.410156 "}))),H=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(14.509805%,21.568628%,27.843139%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 10.011719 22.417969 L 10.011719 21.027344 C 10.011719 20.496094 9.691406 20.148438 9.144531 20.148438 C 8.867188 20.148438 8.570312 20.242188 8.363281 20.542969 C 8.203125 20.289062 7.976562 20.148438 7.632812 20.148438 C 7.402344 20.148438 7.171875 20.21875 6.992188 20.472656 L 6.992188 20.195312 L 6.511719 20.195312 L 6.511719 22.417969 L 6.992188 22.417969 L 6.992188 21.191406 C 6.992188 20.796875 7.195312 20.609375 7.515625 20.609375 C 7.835938 20.609375 7.996094 20.820312 7.996094 21.191406 L 7.996094 22.417969 L 8.476562 22.417969 L 8.476562 21.191406 C 8.476562 20.796875 8.707031 20.609375 9 20.609375 C 9.320312 20.609375 9.480469 20.820312 9.480469 21.191406 L 9.480469 22.417969 Z M 17.128906 20.195312 L 16.347656 20.195312 L 16.347656 19.523438 L 15.871094 19.523438 L 15.871094 20.195312 L 15.433594 20.195312 L 15.433594 20.636719 L 15.871094 20.636719 L 15.871094 21.65625 C 15.871094 22.164062 16.074219 22.464844 16.625 22.464844 C 16.828125 22.464844 17.058594 22.394531 17.21875 22.300781 L 17.078125 21.882812 C 16.941406 21.976562 16.78125 22 16.667969 22 C 16.4375 22 16.347656 21.859375 16.347656 21.628906 L 16.347656 20.636719 L 17.125 20.636719 L 17.125 20.195312 Z M 21.199219 20.148438 C 20.925781 20.148438 20.742188 20.289062 20.628906 20.472656 L 20.628906 20.191406 L 20.148438 20.191406 L 20.148438 22.414062 L 20.628906 22.414062 L 20.628906 21.164062 C 20.628906 20.792969 20.785156 20.585938 21.085938 20.585938 C 21.175781 20.585938 21.289062 20.609375 21.382812 20.628906 L 21.523438 20.167969 C 21.425781 20.148438 21.289062 20.148438 21.199219 20.148438 Z M 15.046875 20.378906 C 14.816406 20.21875 14.496094 20.148438 14.152344 20.148438 C 13.605469 20.148438 13.238281 20.425781 13.238281 20.863281 C 13.238281 21.234375 13.511719 21.445312 13.992188 21.511719 L 14.222656 21.535156 C 14.472656 21.582031 14.613281 21.652344 14.613281 21.769531 C 14.613281 21.929688 14.425781 22.046875 14.109375 22.046875 C 13.789062 22.046875 13.535156 21.929688 13.375 21.8125 L 13.144531 22.183594 C 13.394531 22.371094 13.738281 22.460938 14.082031 22.460938 C 14.722656 22.460938 15.089844 22.160156 15.089844 21.742188 C 15.089844 21.351562 14.792969 21.140625 14.335938 21.074219 L 14.109375 21.046875 C 13.902344 21.023438 13.742188 20.976562 13.742188 20.839844 C 13.742188 20.679688 13.902344 20.585938 14.15625 20.585938 C 14.429688 20.585938 14.703125 20.703125 14.84375 20.773438 Z M 27.808594 20.148438 C 27.535156 20.148438 27.351562 20.289062 27.238281 20.472656 L 27.238281 20.191406 L 26.757812 20.191406 L 26.757812 22.414062 L 27.238281 22.414062 L 27.238281 21.164062 C 27.238281 20.792969 27.398438 20.585938 27.695312 20.585938 C 27.785156 20.585938 27.898438 20.609375 27.992188 20.628906 L 28.132812 20.171875 C 28.039062 20.148438 27.902344 20.148438 27.808594 20.148438 Z M 21.679688 21.308594 C 21.679688 21.980469 22.136719 22.464844 22.847656 22.464844 C 23.167969 22.464844 23.394531 22.394531 23.625 22.210938 L 23.394531 21.816406 C 23.210938 21.957031 23.03125 22.023438 22.824219 22.023438 C 22.433594 22.023438 22.160156 21.746094 22.160156 21.308594 C 22.160156 20.890625 22.433594 20.609375 22.824219 20.589844 C 23.027344 20.589844 23.210938 20.660156 23.394531 20.796875 L 23.625 20.402344 C 23.394531 20.21875 23.167969 20.148438 22.847656 20.148438 C 22.136719 20.148438 21.679688 20.636719 21.679688 21.308594 Z M 26.117188 21.308594 L 26.117188 20.195312 L 25.636719 20.195312 L 25.636719 20.472656 C 25.476562 20.265625 25.25 20.148438 24.949219 20.148438 C 24.332031 20.148438 23.851562 20.636719 23.851562 21.308594 C 23.851562 21.980469 24.332031 22.464844 24.949219 22.464844 C 25.269531 22.464844 25.5 22.347656 25.636719 22.140625 L 25.636719 22.417969 L 26.117188 22.417969 Z M 24.355469 21.308594 C 24.355469 20.914062 24.605469 20.589844 25.019531 20.589844 C 25.410156 20.589844 25.683594 20.890625 25.683594 21.308594 C 25.683594 21.699219 25.410156 22.023438 25.019531 22.023438 C 24.609375 22 24.355469 21.699219 24.355469 21.308594 Z M 18.613281 20.148438 C 17.976562 20.148438 17.515625 20.609375 17.515625 21.304688 C 17.515625 22 17.976562 22.460938 18.640625 22.460938 C 18.957031 22.460938 19.277344 22.371094 19.53125 22.160156 L 19.300781 21.8125 C 19.117188 21.953125 18.890625 22.042969 18.664062 22.042969 C 18.363281 22.042969 18.070312 21.902344 18 21.511719 L 19.621094 21.511719 C 19.621094 21.441406 19.621094 21.394531 19.621094 21.324219 C 19.644531 20.609375 19.230469 20.148438 18.613281 20.148438 Z M 18.613281 20.566406 C 18.914062 20.566406 19.117188 20.75 19.164062 21.097656 L 18.019531 21.097656 C 18.066406 20.796875 18.269531 20.566406 18.613281 20.566406 Z M 30.535156 21.308594 L 30.535156 19.316406 L 30.054688 19.316406 L 30.054688 20.472656 C 29.894531 20.265625 29.664062 20.148438 29.367188 20.148438 C 28.746094 20.148438 28.269531 20.636719 28.269531 21.308594 C 28.269531 21.980469 28.746094 22.464844 29.367188 22.464844 C 29.6875 22.464844 29.914062 22.347656 30.054688 22.140625 L 30.054688 22.417969 L 30.535156 22.417969 Z M 28.773438 21.308594 C 28.773438 20.914062 29.023438 20.589844 29.433594 20.589844 C 29.824219 20.589844 30.097656 20.890625 30.097656 21.308594 C 30.097656 21.699219 29.824219 22.023438 29.433594 22.023438 C 29.023438 22 28.773438 21.699219 28.773438 21.308594 Z M 12.710938 21.308594 L 12.710938 20.195312 L 12.230469 20.195312 L 12.230469 20.472656 C 12.070312 20.265625 11.84375 20.148438 11.542969 20.148438 C 10.925781 20.148438 10.445312 20.636719 10.445312 21.308594 C 10.445312 21.980469 10.925781 22.464844 11.542969 22.464844 C 11.863281 22.464844 12.09375 22.347656 12.230469 22.140625 L 12.230469 22.417969 L 12.710938 22.417969 Z M 10.929688 21.308594 C 10.929688 20.914062 11.179688 20.589844 11.59375 20.589844 C 11.980469 20.589844 12.253906 20.890625 12.253906 21.308594 C 12.253906 21.699219 11.980469 22.023438 11.59375 22.023438 C 11.179688 22 10.929688 21.699219 10.929688 21.308594 Z M 10.929688 21.308594 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,35.294119%,0%)",fillOpacity:1},d:"M 22.09375 3.320312 L 14.886719 3.320312 L 14.886719 16.421875 L 22.09375 16.421875 Z M 22.09375 3.320312 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(92.156863%,0%,10.588235%)",fillOpacity:1},d:"M 15.367188 9.871094 C 15.367188 7.207031 16.601562 4.84375 18.5 3.320312 C 17.101562 2.207031 15.339844 1.535156 13.421875 1.535156 C 8.867188 1.535156 5.183594 5.261719 5.183594 9.871094 C 5.183594 14.476562 8.867188 18.203125 13.421875 18.203125 C 15.339844 18.203125 17.101562 17.53125 18.5 16.421875 C 16.601562 14.914062 15.367188 12.53125 15.367188 9.871094 Z M 15.367188 9.871094 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(96.862745%,61.960787%,10.588235%)",fillOpacity:1},d:"M 31.816406 9.871094 C 31.816406 14.476562 28.132812 18.203125 23.582031 18.203125 C 21.660156 18.203125 19.898438 17.53125 18.5 16.421875 C 20.421875 14.890625 21.632812 12.53125 21.632812 9.871094 C 21.632812 7.207031 20.398438 4.84375 18.5 3.320312 C 19.894531 2.207031 21.65625 1.535156 23.578125 1.535156 C 28.132812 1.535156 31.816406 5.289062 31.816406 9.871094 Z M 31.816406 9.871094 "}))),Y=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(7.843138%,20.392157%,79.607844%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 23.234375 6.871094 C 21.011719 6.871094 19.027344 8.035156 19.027344 10.1875 C 19.027344 12.65625 22.550781 12.828125 22.550781 14.070312 C 22.550781 14.589844 21.957031 15.058594 20.949219 15.058594 C 19.515625 15.058594 18.441406 14.40625 18.441406 14.40625 L 17.984375 16.578125 C 17.984375 16.578125 19.21875 17.128906 20.855469 17.128906 C 23.285156 17.128906 25.199219 15.90625 25.199219 13.71875 C 25.199219 11.109375 21.660156 10.941406 21.660156 9.792969 C 21.660156 9.382812 22.148438 8.933594 23.15625 8.933594 C 24.292969 8.933594 25.21875 9.410156 25.21875 9.410156 L 25.667969 7.308594 C 25.667969 7.308594 24.65625 6.871094 23.234375 6.871094 Z M 2.910156 7.027344 L 2.855469 7.34375 C 2.855469 7.34375 3.789062 7.519531 4.632812 7.863281 C 5.714844 8.257812 5.792969 8.488281 5.976562 9.207031 L 7.964844 16.96875 L 10.632812 16.96875 L 14.738281 7.027344 L 12.078125 7.027344 L 9.4375 13.785156 L 8.363281 8.058594 C 8.261719 7.402344 7.761719 7.027344 7.152344 7.027344 Z M 15.808594 7.027344 L 13.722656 16.96875 L 16.257812 16.96875 L 18.339844 7.027344 Z M 29.957031 7.027344 C 29.347656 7.027344 29.023438 7.359375 28.785156 7.9375 L 25.066406 16.96875 L 27.726562 16.96875 L 28.242188 15.460938 L 31.484375 15.460938 L 31.796875 16.96875 L 34.144531 16.96875 L 32.097656 7.027344 Z M 30.304688 9.714844 L 31.09375 13.441406 L 28.980469 13.441406 Z M 30.304688 9.714844 "}))),G=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(0%,0%,0%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 13.25 22.347656 L 13.25 20.960938 C 13.257812 20.847656 13.242188 20.730469 13.199219 20.621094 C 13.160156 20.511719 13.097656 20.410156 13.015625 20.328125 C 12.9375 20.246094 12.839844 20.183594 12.730469 20.140625 C 12.625 20.097656 12.507812 20.082031 12.394531 20.085938 C 12.242188 20.078125 12.09375 20.109375 11.957031 20.175781 C 11.820312 20.246094 11.707031 20.351562 11.625 20.480469 C 11.550781 20.355469 11.445312 20.253906 11.320312 20.183594 C 11.191406 20.113281 11.050781 20.082031 10.90625 20.085938 C 10.78125 20.082031 10.65625 20.109375 10.542969 20.164062 C 10.429688 20.222656 10.335938 20.308594 10.265625 20.414062 L 10.265625 20.144531 L 9.792969 20.144531 L 9.792969 22.347656 L 10.269531 22.347656 L 10.269531 21.125 C 10.261719 21.050781 10.265625 20.972656 10.289062 20.902344 C 10.3125 20.828125 10.347656 20.761719 10.398438 20.707031 C 10.453125 20.648438 10.515625 20.605469 10.585938 20.578125 C 10.652344 20.546875 10.730469 20.535156 10.804688 20.539062 C 11.121094 20.539062 11.28125 20.746094 11.28125 21.121094 L 11.28125 22.347656 L 11.757812 22.347656 L 11.757812 21.125 C 11.75 21.050781 11.757812 20.972656 11.777344 20.902344 C 11.800781 20.828125 11.839844 20.761719 11.890625 20.707031 C 11.941406 20.652344 12.003906 20.605469 12.074219 20.578125 C 12.144531 20.550781 12.21875 20.535156 12.292969 20.539062 C 12.617188 20.539062 12.773438 20.746094 12.773438 21.121094 L 12.773438 22.347656 Z M 15.921875 21.246094 L 15.921875 20.144531 L 15.441406 20.144531 L 15.441406 20.414062 C 15.359375 20.308594 15.257812 20.222656 15.136719 20.167969 C 15.019531 20.109375 14.886719 20.085938 14.757812 20.089844 C 14.453125 20.089844 14.164062 20.210938 13.949219 20.429688 C 13.734375 20.644531 13.613281 20.9375 13.613281 21.246094 C 13.613281 21.550781 13.734375 21.84375 13.949219 22.0625 C 14.164062 22.277344 14.453125 22.398438 14.757812 22.398438 C 14.886719 22.40625 15.019531 22.378906 15.136719 22.320312 C 15.257812 22.265625 15.359375 22.179688 15.441406 22.074219 L 15.441406 22.34375 L 15.914062 22.34375 Z M 14.15625 21.246094 C 14.164062 21.117188 14.207031 20.992188 14.285156 20.886719 C 14.363281 20.78125 14.46875 20.703125 14.589844 20.660156 C 14.707031 20.613281 14.839844 20.605469 14.964844 20.636719 C 15.089844 20.667969 15.203125 20.730469 15.292969 20.828125 C 15.382812 20.921875 15.441406 21.039062 15.464844 21.167969 C 15.484375 21.296875 15.472656 21.429688 15.421875 21.546875 C 15.371094 21.667969 15.285156 21.769531 15.179688 21.84375 C 15.070312 21.914062 14.945312 21.953125 14.816406 21.953125 C 14.726562 21.957031 14.636719 21.9375 14.550781 21.902344 C 14.46875 21.867188 14.394531 21.816406 14.328125 21.75 C 14.265625 21.683594 14.21875 21.605469 14.1875 21.515625 C 14.15625 21.429688 14.144531 21.339844 14.152344 21.246094 Z M 26.0625 20.09375 C 26.21875 20.089844 26.375 20.121094 26.519531 20.179688 C 26.660156 20.234375 26.785156 20.320312 26.890625 20.425781 C 26.996094 20.527344 27.082031 20.652344 27.140625 20.792969 C 27.257812 21.085938 27.257812 21.417969 27.140625 21.714844 C 27.082031 21.855469 26.996094 21.976562 26.890625 22.082031 C 26.785156 22.1875 26.660156 22.273438 26.519531 22.328125 C 26.21875 22.445312 25.886719 22.445312 25.585938 22.328125 C 25.445312 22.273438 25.320312 22.1875 25.214844 22.082031 C 25.109375 21.976562 25.027344 21.851562 24.96875 21.714844 C 24.851562 21.417969 24.851562 21.089844 24.96875 20.792969 C 25.027344 20.652344 25.109375 20.53125 25.214844 20.425781 C 25.320312 20.320312 25.445312 20.234375 25.585938 20.179688 C 25.734375 20.117188 25.894531 20.085938 26.058594 20.085938 Z M 26.0625 20.554688 C 25.972656 20.550781 25.878906 20.570312 25.792969 20.605469 C 25.710938 20.636719 25.636719 20.6875 25.574219 20.75 C 25.511719 20.816406 25.464844 20.894531 25.429688 20.980469 C 25.363281 21.164062 25.363281 21.371094 25.429688 21.554688 C 25.464844 21.640625 25.511719 21.71875 25.574219 21.785156 C 25.636719 21.847656 25.710938 21.898438 25.792969 21.929688 C 25.964844 22 26.160156 22 26.332031 21.929688 C 26.417969 21.898438 26.496094 21.847656 26.5625 21.785156 C 26.625 21.71875 26.671875 21.640625 26.707031 21.554688 C 26.773438 21.371094 26.773438 21.164062 26.707031 20.980469 C 26.671875 20.894531 26.625 20.816406 26.5625 20.75 C 26.496094 20.6875 26.417969 20.636719 26.332031 20.605469 C 26.246094 20.566406 26.152344 20.542969 26.058594 20.539062 Z M 18.5 21.246094 C 18.5 20.554688 18.074219 20.09375 17.464844 20.09375 C 17.164062 20.097656 16.875 20.222656 16.664062 20.441406 C 16.453125 20.660156 16.335938 20.957031 16.339844 21.261719 C 16.34375 21.570312 16.46875 21.859375 16.6875 22.074219 C 16.902344 22.289062 17.195312 22.40625 17.496094 22.402344 C 17.824219 22.414062 18.140625 22.300781 18.390625 22.09375 L 18.160156 21.738281 C 17.980469 21.882812 17.757812 21.964844 17.527344 21.96875 C 17.371094 21.980469 17.214844 21.933594 17.09375 21.832031 C 16.96875 21.730469 16.890625 21.585938 16.875 21.425781 L 18.492188 21.425781 C 18.5 21.371094 18.5 21.3125 18.5 21.246094 Z M 16.875 21.054688 C 16.886719 20.90625 16.949219 20.769531 17.058594 20.667969 C 17.164062 20.570312 17.304688 20.515625 17.449219 20.519531 C 17.519531 20.519531 17.589844 20.53125 17.65625 20.554688 C 17.722656 20.582031 17.785156 20.621094 17.835938 20.671875 C 17.886719 20.722656 17.925781 20.78125 17.957031 20.847656 C 17.984375 20.914062 18 20.984375 18 21.054688 Z M 20.496094 20.707031 C 20.289062 20.585938 20.050781 20.519531 19.8125 20.515625 C 19.550781 20.515625 19.394531 20.613281 19.394531 20.777344 C 19.394531 20.9375 19.5625 20.964844 19.765625 20.992188 L 19.996094 21.023438 C 20.46875 21.09375 20.757812 21.296875 20.757812 21.6875 C 20.757812 22.074219 20.390625 22.40625 19.765625 22.40625 C 19.425781 22.414062 19.097656 22.316406 18.820312 22.121094 L 19.050781 21.746094 C 19.257812 21.902344 19.515625 21.984375 19.773438 21.976562 C 20.097656 21.976562 20.273438 21.878906 20.273438 21.707031 C 20.273438 21.585938 20.148438 21.515625 19.890625 21.476562 L 19.660156 21.445312 C 19.171875 21.375 18.90625 21.15625 18.90625 20.792969 C 18.90625 20.355469 19.265625 20.085938 19.820312 20.085938 C 20.132812 20.078125 20.441406 20.15625 20.707031 20.316406 Z M 22.777344 20.582031 L 22.003906 20.582031 L 22.003906 21.578125 C 22.003906 21.808594 22.082031 21.945312 22.320312 21.945312 C 22.46875 21.941406 22.613281 21.898438 22.742188 21.820312 L 22.878906 22.234375 C 22.699219 22.34375 22.492188 22.40625 22.285156 22.402344 C 21.722656 22.402344 21.527344 22.097656 21.527344 21.585938 L 21.527344 20.582031 L 21.082031 20.582031 L 21.082031 20.144531 L 21.527344 20.144531 L 21.527344 19.472656 L 22.003906 19.472656 L 22.003906 20.144531 L 22.777344 20.144531 Z M 24.421875 20.085938 C 24.535156 20.085938 24.648438 20.109375 24.757812 20.148438 L 24.613281 20.609375 C 24.519531 20.570312 24.417969 20.550781 24.316406 20.554688 C 24.003906 20.554688 23.859375 20.757812 23.859375 21.121094 L 23.859375 22.359375 L 23.382812 22.359375 L 23.382812 20.152344 L 23.855469 20.152344 L 23.855469 20.417969 C 23.914062 20.320312 23.996094 20.234375 24.097656 20.179688 C 24.199219 20.121094 24.3125 20.09375 24.429688 20.097656 Z M 27.703125 22.027344 C 27.730469 22.027344 27.761719 22.03125 27.789062 22.042969 C 27.816406 22.054688 27.839844 22.070312 27.859375 22.089844 C 27.878906 22.109375 27.894531 22.132812 27.90625 22.160156 C 27.917969 22.1875 27.925781 22.214844 27.925781 22.246094 C 27.925781 22.273438 27.917969 22.304688 27.90625 22.328125 C 27.894531 22.355469 27.878906 22.378906 27.859375 22.398438 C 27.839844 22.417969 27.816406 22.433594 27.789062 22.445312 C 27.761719 22.457031 27.734375 22.464844 27.703125 22.464844 C 27.660156 22.464844 27.617188 22.449219 27.582031 22.425781 C 27.542969 22.402344 27.515625 22.371094 27.496094 22.328125 C 27.484375 22.304688 27.480469 22.273438 27.480469 22.246094 C 27.480469 22.214844 27.484375 22.1875 27.496094 22.160156 C 27.507812 22.132812 27.523438 22.109375 27.546875 22.089844 C 27.566406 22.070312 27.589844 22.054688 27.617188 22.042969 C 27.640625 22.035156 27.664062 22.027344 27.691406 22.027344 Z M 27.703125 22.417969 C 27.726562 22.417969 27.746094 22.414062 27.769531 22.402344 C 27.789062 22.394531 27.804688 22.382812 27.820312 22.367188 C 27.839844 22.347656 27.855469 22.324219 27.863281 22.296875 C 27.871094 22.269531 27.871094 22.242188 27.867188 22.214844 C 27.863281 22.1875 27.851562 22.160156 27.832031 22.140625 C 27.816406 22.117188 27.792969 22.101562 27.769531 22.089844 C 27.746094 22.082031 27.726562 22.074219 27.703125 22.074219 C 27.679688 22.074219 27.65625 22.082031 27.636719 22.089844 C 27.617188 22.097656 27.597656 22.109375 27.582031 22.125 C 27.554688 22.160156 27.539062 22.199219 27.539062 22.242188 C 27.539062 22.285156 27.554688 22.328125 27.582031 22.359375 C 27.597656 22.375 27.617188 22.386719 27.636719 22.394531 C 27.65625 22.402344 27.679688 22.410156 27.703125 22.410156 Z M 27.714844 22.144531 C 27.738281 22.140625 27.757812 22.148438 27.777344 22.160156 C 27.78125 22.167969 27.789062 22.175781 27.792969 22.183594 C 27.796875 22.191406 27.796875 22.199219 27.796875 22.210938 C 27.796875 22.21875 27.796875 22.226562 27.792969 22.230469 C 27.789062 22.238281 27.785156 22.246094 27.78125 22.25 C 27.765625 22.261719 27.75 22.269531 27.730469 22.273438 L 27.796875 22.347656 L 27.746094 22.347656 L 27.683594 22.273438 L 27.664062 22.273438 L 27.664062 22.347656 L 27.621094 22.347656 L 27.621094 22.136719 Z M 27.667969 22.183594 L 27.667969 22.238281 L 27.714844 22.238281 C 27.726562 22.242188 27.734375 22.242188 27.742188 22.238281 C 27.746094 22.234375 27.746094 22.230469 27.746094 22.226562 C 27.746094 22.222656 27.746094 22.21875 27.742188 22.21875 C 27.746094 22.214844 27.746094 22.210938 27.746094 22.207031 C 27.746094 22.203125 27.746094 22.199219 27.742188 22.195312 C 27.734375 22.195312 27.726562 22.195312 27.714844 22.195312 Z M 27.667969 22.183594 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(46.27451%,45.09804%,75.294119%)",fillOpacity:1},d:"M 22.09375 3.3125 L 14.902344 3.3125 L 14.902344 16.390625 L 22.09375 16.390625 Z M 22.09375 3.3125 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(92.156863%,0%,10.588235%)",fillOpacity:1},d:"M 15.359375 9.851562 C 15.359375 8.59375 15.640625 7.351562 16.183594 6.21875 C 16.730469 5.085938 17.519531 4.09375 18.5 3.3125 C 17.285156 2.351562 15.832031 1.75 14.296875 1.585938 C 12.765625 1.417969 11.21875 1.691406 9.832031 2.375 C 8.445312 3.054688 7.273438 4.117188 6.457031 5.441406 C 5.636719 6.761719 5.203125 8.292969 5.203125 9.851562 C 5.203125 11.410156 5.636719 12.941406 6.457031 14.261719 C 7.273438 15.585938 8.445312 16.648438 9.832031 17.332031 C 11.21875 18.011719 12.765625 18.285156 14.296875 18.121094 C 15.832031 17.953125 17.285156 17.351562 18.5 16.390625 C 17.519531 15.613281 16.730469 14.621094 16.1875 13.488281 C 15.640625 12.355469 15.359375 11.113281 15.359375 9.851562 Z M 15.359375 9.851562 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(0%,63.137257%,87.450981%)",fillOpacity:1},d:"M 31.792969 9.851562 C 31.792969 11.414062 31.359375 12.941406 30.539062 14.261719 C 29.722656 15.585938 28.554688 16.648438 27.167969 17.328125 C 25.78125 18.011719 24.234375 18.285156 22.699219 18.117188 C 21.167969 17.953125 19.710938 17.351562 18.5 16.390625 C 19.476562 15.613281 20.269531 14.617188 20.8125 13.484375 C 21.355469 12.355469 21.640625 11.109375 21.640625 9.851562 C 21.640625 8.59375 21.355469 7.351562 20.8125 6.21875 C 20.269531 5.085938 19.476562 4.09375 18.5 3.3125 C 19.710938 2.351562 21.167969 1.75 22.699219 1.582031 C 24.234375 1.417969 25.78125 1.691406 27.167969 2.371094 C 28.554688 3.054688 29.726562 4.117188 30.542969 5.4375 C 31.359375 6.761719 31.796875 8.289062 31.796875 9.851562 Z M 31.792969 9.851562 "}))),T=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("path",{style:{stroke:"none",fillRule:"evenodd",fill:"rgb(30.19608%,30.19608%,30.19608%)",fillOpacity:1},d:"M 2.609375 0 C 0 0 0 0 0 0 C 0 0 0 0 0 24.046875 L 31.78125 24.046875 C 35.832031 24.046875 37 22.867188 37 21.40625 L 37 0 C 0 0 35.832031 0 34.390625 0 Z M 2.609375 0 "}),t.createElement("path",{style:{stroke:"none",fillRule:"evenodd",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 15.519531 7.769531 C 15.9375 7.769531 16.289062 7.855469 16.71875 8.0625 L 16.71875 9.15625 C 16.3125 8.777344 15.960938 8.621094 15.496094 8.621094 C 14.582031 8.621094 13.863281 9.339844 13.863281 10.253906 C 13.863281 11.21875 14.558594 11.894531 15.539062 11.894531 C 15.984375 11.894531 16.328125 11.746094 16.71875 11.375 L 16.71875 12.46875 C 16.273438 12.664062 15.914062 12.746094 15.496094 12.746094 C 14.011719 12.746094 12.859375 11.660156 12.859375 10.261719 C 12.859375 8.878906 14.042969 7.769531 15.519531 7.769531 Z M 10.910156 7.800781 C 11.460938 7.800781 11.960938 7.980469 12.378906 8.328125 L 11.871094 8.964844 C 11.617188 8.695312 11.375 8.578125 11.085938 8.578125 C 10.664062 8.578125 10.359375 8.808594 10.359375 9.105469 C 10.359375 9.363281 10.53125 9.5 11.113281 9.707031 C 12.222656 10.09375 12.550781 10.433594 12.550781 11.191406 C 12.550781 12.113281 11.839844 12.753906 10.828125 12.753906 C 10.085938 12.753906 9.546875 12.476562 9.097656 11.847656 L 9.730469 11.269531 C 9.953125 11.683594 10.328125 11.902344 10.792969 11.902344 C 11.226562 11.902344 11.546875 11.617188 11.546875 11.234375 C 11.546875 11.03125 11.453125 10.863281 11.257812 10.742188 C 11.160156 10.683594 10.964844 10.597656 10.582031 10.46875 C 9.667969 10.15625 9.355469 9.820312 9.355469 9.164062 C 9.355469 8.386719 10.027344 7.800781 10.910156 7.800781 Z M 22.046875 7.882812 L 23.109375 7.882812 L 24.441406 11.082031 L 25.792969 7.882812 L 26.847656 7.882812 L 24.691406 12.765625 L 24.167969 12.765625 Z M 3.199219 7.890625 L 4.628906 7.890625 C 6.207031 7.890625 7.308594 8.871094 7.308594 10.273438 C 7.308594 10.972656 6.972656 11.652344 6.402344 12.101562 C 5.921875 12.480469 5.378906 12.648438 4.621094 12.648438 L 3.199219 12.648438 Z M 7.757812 7.890625 L 8.734375 7.890625 L 8.734375 12.648438 L 7.757812 12.648438 Z M 27.289062 7.890625 L 30.050781 7.890625 L 30.050781 8.699219 L 28.261719 8.699219 L 28.261719 9.753906 L 29.988281 9.753906 L 29.988281 10.558594 L 28.261719 10.558594 L 28.261719 11.84375 L 30.050781 11.84375 L 30.050781 12.648438 L 27.289062 12.648438 Z M 30.699219 7.890625 L 32.140625 7.890625 C 33.265625 7.890625 33.910156 8.40625 33.910156 9.296875 C 33.910156 10.023438 33.507812 10.503906 32.773438 10.644531 L 34.34375 12.648438 L 33.144531 12.648438 L 31.796875 10.738281 L 31.671875 10.738281 L 31.671875 12.648438 L 30.699219 12.648438 Z M 31.671875 8.640625 L 31.671875 10.082031 L 31.957031 10.082031 C 32.578125 10.082031 32.90625 9.824219 32.90625 9.347656 C 32.90625 8.882812 32.578125 8.640625 31.972656 8.640625 Z M 4.171875 8.699219 L 4.171875 11.84375 L 4.433594 11.84375 C 5.0625 11.84375 5.460938 11.730469 5.765625 11.464844 C 6.101562 11.179688 6.304688 10.722656 6.304688 10.265625 C 6.304688 9.8125 6.101562 9.367188 5.765625 9.082031 C 5.445312 8.804688 5.0625 8.699219 4.433594 8.699219 Z M 4.171875 8.699219 "}),t.createElement("path",{style:{stroke:"none",fillRule:"evenodd",fill:"rgb(95.686275%,44.705883%,8.627451%)",fillOpacity:1},d:"M 19.691406 7.738281 C 21.160156 7.738281 22.347656 8.871094 22.347656 10.269531 C 22.347656 11.667969 21.160156 12.800781 19.691406 12.800781 C 18.222656 12.800781 17.035156 11.667969 17.035156 10.269531 C 17.035156 8.871094 18.222656 7.738281 19.691406 7.738281 Z M 37 13.839844 C 35.761719 14.722656 26.511719 21.007812 10.496094 24.046875 L 34.390625 24.046875 C 35.832031 24.046875 37 24.046875 37 24.046875 L 37 0 Z M 37 13.839844 "}))),J=e=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"37px",height:"24px",viewBox:"0 0 37 24",...e},t.createElement("g",{id:"surface1"},t.createElement("rect",{x:0,y:0,width:37,height:24,style:{fill:"rgb(0%,47.450981%,74.509805%)",fillOpacity:1,stroke:"none"}}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 28.457031 12.070312 C 28.457031 7.296875 24.523438 4 20.210938 4 L 16.496094 4 C 12.132812 4 8.542969 7.296875 8.542969 12.070312 C 8.542969 16.433594 12.132812 20.019531 16.496094 20 L 20.210938 20 C 24.523438 20.019531 28.457031 16.433594 28.457031 12.070312 Z M 28.457031 12.070312 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(0%,47.450981%,74.509805%)",fillOpacity:1},d:"M 16.519531 4.675781 C 12.53125 4.679688 9.300781 7.957031 9.300781 12 C 9.300781 16.042969 12.535156 19.320312 16.519531 19.324219 C 20.511719 19.320312 23.742188 16.042969 23.742188 12 C 23.742188 7.957031 20.511719 4.679688 16.519531 4.675781 Z M 16.519531 4.675781 "}),t.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"rgb(100%,100%,100%)",fillOpacity:1},d:"M 11.957031 11.980469 C 11.960938 10.003906 13.179688 8.320312 14.894531 7.648438 L 14.894531 16.3125 C 13.179688 15.640625 11.960938 13.957031 11.957031 11.980469 Z M 18.171875 16.3125 L 18.171875 7.648438 C 19.890625 8.316406 21.109375 10.003906 21.109375 11.980469 C 21.109375 13.960938 19.890625 15.644531 18.171875 16.3125 Z M 18.171875 16.3125 "}))),Q=({className:e,cardContainerId:a,cardNumberContainerId:i,expirationDateContainerId:C,securityCodeContainerId:d,eligibleCards:s,cardTypeSelected:L,validationErrors:l,isLoading:o=!0,...f})=>M(j,{children:[M(F,{"data-testid":"loading-indicator",className:g(["elsie-credit-card-form__loading",o?"":"hidden"]),children:[r(Z,{variant:"row",lines:1,fullWidth:!0,size:"xsmall",multilineGap:"xsmall"}),r(Z,{variant:"row",size:"xsmall",fullWidth:!1}),r(Z,{variant:"row",size:"xsmall",fullWidth:!1}),r(Z,{variant:"row",size:"xsmall",fullWidth:!1})]}),M("div",{id:a,"data-testid":a,...f,className:g(["elsie-credit-card-form",e,o?"hidden":""]),children:[r("div",{id:"eligible-cards","data-testid":"eligible-cards",className:g(["elsie-credit-card-form__eligible-cards"]),children:s.map(n=>{let c;switch(n.code){case"amex":c=q;break;case"mastercard":c=H;break;case"maestro":c=G;break;case"discover":c=T;break;case"visa":c=Y;break;case"diners":c=J;break}return r(E,{id:`elsie-credit-card-form__eligible-cards-${n.code}`,source:c,viewBox:"0 0 37 24",className:g(["elsie-credit-card-form__eligible-cards-icon",!L||L.code!==n.code?"elsie-credit-card-form__eligible-cards-unselected":"elsie-credit-card-form__eligible-cards-selected"]),title:n.type},n.type)})}),M("div",{className:"elsie-credit-card-form__card-number",children:[r("div",{className:"elsie-credit-card-form__input-label",children:"Credit Card Number"}),r("div",{className:"elsie-credit-card-form__input-container",children:r("div",{id:i,"data-testid":i,className:g(["elsie-credit-card-form__input-target"])})}),r("div",{id:`${i}-error`,className:"elsie-credit-card-form__input-error",children:l==null?void 0:l.number})]}),M("div",{className:"elsie-credit-card-form__expiration-date",children:[r("div",{className:"elsie-credit-card-form__input-label",children:"Expiration Date"}),r("div",{className:"elsie-credit-card-form__input-container",children:r("div",{id:C,"data-testid":C,className:g(["elsie-credit-card-form__input-target"])})}),r("div",{id:`${C}-error`,className:"elsie-credit-card-form__input-error",children:l==null?void 0:l.expirationDate})]}),M("div",{className:"elsie-credit-card-form__security-code",children:[r("div",{className:"elsie-credit-card-form__input-label",children:"Card Security Code"}),r("div",{className:"elsie-credit-card-form__input-container",children:r("div",{id:d,"data-testid":d,className:g(["elsie-credit-card-form__input-target"])})}),r("div",{id:`${d}-error`,className:"elsie-credit-card-form__input-error",children:l==null?void 0:l.cvv})]})]})]}),k=({message:e})=>M("div",{className:"credit-card-error",children:[r(E,{source:"Warning",alt:"Warning",className:"credit-card-error__icon"}),r("p",{children:e})]});function U(e,a,i,C){function d(s){return s instanceof i?s:new i(function(L){L(s)})}return new(i||(i=Promise))(function(s,L){function l(n){try{f(C.next(n))}catch(c){L(c)}}function o(n){try{f(C.throw(n))}catch(c){L(c)}}function f(n){n.done?s(n.value):d(n.value).then(l,o)}f((C=C.apply(e,[])).next())})}function I(e,a){return U(this,void 0,void 0,function*(){if("PaymentServicesSDK"in window)return window.PaymentServicesSDK;if(yield e2(e,a||{}),!("PaymentServicesSDK"in window))throw new Error("Script loaded, but Payment Services SDK not found.");return window.PaymentServicesSDK})}function e2(e,{crossOrigin:a,integrity:i}){const C=document.createElement("script");return a!=null&&(C.crossOrigin=a),i!=null&&(C.integrity=i),new Promise((d,s)=>{C.src=e,C.async=!0,C.onload=()=>d(),C.onerror=L=>s(L),document.head.appendChild(C)})}var t2=I;const r2="https://payments-sdk.int.magento-payments.com/v0/2/PaymentSDK.js";var S=(e=>(e.loading="loading",e.ready="ready",e.error="error",e))(S||{});function C2({apiUrl:e,getCustomerToken:a},i){const[C,d]=b(null),[s,L]=b("loading");return B(()=>{t2(r2).then(async l=>{const o=new l({apiUrl:e,getCustomerToken:a});await o.Payment.init({location:i}),d(o)}).then(()=>L("ready")).catch(l=>{console.log(l),L("error")})},[e,i,a]),{paymentsSDK:C,sdkStatus:s}}var O=(e=>(e.Visa="visa",e.MasterCard="mastercard",e.Amex="amex",e.Discover="discover",e.Maestro="maestro",e.Diners="diners",e))(O||{});const c2="payment_services_paypal_hosted_fields",d2=({apiUrl:e,getCartId:a,getCustomerToken:i,onSuccess:C,onError:d,onRender:s,onValidation:L,...l})=>{const o="CHECKOUT",f="number",n="expirationDate",c="cvv",y=`${o}-card-container`,[D,N]=v(!0),[R,z]=v([]),[P,_]=v(null),[$,K]=v({}),{paymentsSDK:w,sdkStatus:V}=C2({apiUrl:e,getCustomerToken:i},o);return A(()=>{if(!w||!w.Payment.CreditCard.isAvailable())return;w.Payment.CreditCard.render({getCartId:a,onSuccess:C,onError:d,onValidityChange:(m,p)=>{if(W(m,p),L){const u=Object.values(m).every(h=>h.isValid);L(u)}},onRender:s,onCardTypeChange:m=>m.length>0?_(m[0]):_(null),fields:{number:{selector:`#${y} #${f}`,placeholder:" "},expirationDate:{selector:`#${y} #${n}`,placeholder:"MM/YY"},cvv:{selector:`#${y} #${c}`,placeholder:" "}}}).then(m=>{const p=m.getEligibleCards().filter(u=>Object.values(O).includes(u.code));z(p)}).finally(()=>{N(!1)});const W=(m,p)=>{const u=m[p];let h="";if(!u.isValid)switch(p){case"expirationDate":h=u.isEmpty?"This field is required.":"Enter valid expiration date.";break;case"cvv":h=u.isEmpty?"This field is required.":"Enter valid cvv.";break;case"number":h=u.isEmpty?"This field is required.":"Enter valid card number.";break}K(X=>{const x={...X};return h?x[p]=h:delete x[p],x})}},[w,y,a,C,d,s,L]),w&&!w.Payment.CreditCard.isAvailable()?r("div",{class:"payment-services_paypal-credit-card-container",children:r(k,{message:"Payment method not available. Please contact support."})}):V===S.error?r("div",{class:"payment-services_paypal-credit-card-container",children:r(k,{message:"Failed to load payment method. Please try again later."})}):r("div",{class:"payment-services_paypal-credit-card-container",...l,children:r(Q,{cardContainerId:y,cardNumberContainerId:f,expirationDateContainerId:n,securityCodeContainerId:c,eligibleCards:R,isLoading:D,cardTypeSelected:P,validationErrors:$})})};export{c2 as CREDIT_CARD_CODE,O as CardTypes,d2 as CreditCard,d2 as default}; diff --git a/scripts/__dropins__/storefront-payment-services/containers/CreditCard/CreditCard.d.ts b/scripts/__dropins__/storefront-payment-services/containers/CreditCard/CreditCard.d.ts deleted file mode 100644 index b246f660e..000000000 --- a/scripts/__dropins__/storefront-payment-services/containers/CreditCard/CreditCard.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { CreditCard as PaymentServicesCreditCard } from '@adobe-commerce/payment-services-sdk/payment'; - -export declare enum CardTypes { - Visa = "visa", - MasterCard = "mastercard", - Amex = "amex", - Discover = "discover", - Maestro = "maestro", - Diners = "diners" -} -export declare const CREDIT_CARD_CODE = "payment_services_paypal_hosted_fields"; -export interface CreditCardProps { - /** - * Adobe Commerce GraphQL API URL, e.g., "https://magento.test/graphql". - */ - apiUrl: string; - /** - * Should return the cart id for which to make a payment. - */ - getCartId: () => Promise; - /** - * The Credit Card component may send GraphQL requests on behalf of the - * customer. This requires GraphQL Authorization, which can be done in two - * ways: (1) Authorization tokens; (2) Session cookies. - * - * (getCustomerToken === undefined) | (getCustomerToken === null) - * If no getCustomerToken function is provided, then the component - * will assume that the Adobe Commerce instance behind 'apiUrl' is set up - * to use session-based authorization. In that case, the component - * will send along same-origin cookies in every GraphQL request. - * - * (typeof getCustomerToken === 'function') - * If a getCustomerToken function is provided, then the component - * will embed the return value of the getCustomerToken function as an - * Authorization header in every request. If the getCustomerToken function - * returns null, then the component will assume that the - * customer is not logged in. - * - * For more information, see: - * https://developer.adobe.com/commerce/webapi/graphql/usage/authorization-tokens/ - */ - getCustomerToken?: (() => string | null) | null; - /** - * Called when payment flow is successful. - */ - onSuccess: () => void; - /** - * Called when payment flow was aborted due to an error. - */ - onError: (error: Error) => void; - /** - * Set this callback to be notified when the credit card fields are rendered. - * Use this to execute any logic that depends on the credit card fields being rendered. - * Credit Card may be re-rendered if an error occurs during submission. - * - * @param creditCard - The PaymentServicesCreditCard instance. - */ - onRender?: (creditCard: PaymentServicesCreditCard) => Promise; - /** - * Set this callback to be notified when the credit card fields are validated. - * @param isFormValid - true if all fields are valid, false otherwise. - */ - onValidation?: (isFormValid: boolean) => void; -} -export declare const CreditCard: ({ apiUrl, getCartId, getCustomerToken, onSuccess, onError, onRender, onValidation, ...props }: CreditCardProps) => import("preact/compat").JSX.Element; -//# sourceMappingURL=CreditCard.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/containers/CreditCard/index.d.ts b/scripts/__dropins__/storefront-payment-services/containers/CreditCard/index.d.ts deleted file mode 100644 index e6dfa16e0..000000000 --- a/scripts/__dropins__/storefront-payment-services/containers/CreditCard/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './CreditCard'; -export { CreditCard as default } from './CreditCard'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/containers/index.d.ts b/scripts/__dropins__/storefront-payment-services/containers/index.d.ts deleted file mode 100644 index 875af4f37..000000000 --- a/scripts/__dropins__/storefront-payment-services/containers/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './CreditCard/CreditCard'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/data/models/index.d.ts b/scripts/__dropins__/storefront-payment-services/data/models/index.d.ts deleted file mode 100644 index f36479a73..000000000 --- a/scripts/__dropins__/storefront-payment-services/data/models/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/data/transforms/index.d.ts b/scripts/__dropins__/storefront-payment-services/data/transforms/index.d.ts deleted file mode 100644 index f36479a73..000000000 --- a/scripts/__dropins__/storefront-payment-services/data/transforms/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/hooks/usePaymentsSDK.d.ts b/scripts/__dropins__/storefront-payment-services/hooks/usePaymentsSDK.d.ts deleted file mode 100644 index ba0931a22..000000000 --- a/scripts/__dropins__/storefront-payment-services/hooks/usePaymentsSDK.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { PaymentServicesSDK, SdkConfig } from '@adobe-commerce/payment-services-sdk'; - -export declare enum SDKStatus { - loading = "loading", - ready = "ready", - error = "error" -} -interface UsePaymentsSDKResult { - paymentsSDK: PaymentServicesSDK | null; - sdkStatus: SDKStatus; -} -export declare function usePaymentsSDK({ apiUrl, getCustomerToken }: SdkConfig, location: string): UsePaymentsSDKResult; -export {}; -//# sourceMappingURL=usePaymentsSDK.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/i18n/en_US.json.d.ts b/scripts/__dropins__/storefront-payment-services/i18n/en_US.json.d.ts deleted file mode 100644 index fb56cc038..000000000 --- a/scripts/__dropins__/storefront-payment-services/i18n/en_US.json.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare const _default: { - "": {} -}; - -export default _default; diff --git a/scripts/__dropins__/storefront-payment-services/icons/index.d.ts b/scripts/__dropins__/storefront-payment-services/icons/index.d.ts deleted file mode 100644 index 7eafe97ca..000000000 --- a/scripts/__dropins__/storefront-payment-services/icons/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { default as Amex } from './amex.svg'; -export { default as Mastercard } from './mastercard.svg'; -export { default as Visa } from './visa.svg'; -export { default as Maestro } from './maestro.svg'; -export { default as Discover } from './discover.svg'; -export { default as Diners } from './diners.svg'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/render.d.ts b/scripts/__dropins__/storefront-payment-services/render.d.ts deleted file mode 100644 index f519303f5..000000000 --- a/scripts/__dropins__/storefront-payment-services/render.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './render/index' diff --git a/scripts/__dropins__/storefront-payment-services/render.js b/scripts/__dropins__/storefront-payment-services/render.js deleted file mode 100644 index 23b334d81..000000000 --- a/scripts/__dropins__/storefront-payment-services/render.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! Copyright 2024 Adobe -All Rights Reserved. */ -(function(d,i){try{if(typeof document<"u"){const e=document.createElement("style"),a=i.styleId;for(const r in i.attributes)e.setAttribute(r,i.attributes[r]);e.setAttribute("data-dropin",a),e.appendChild(document.createTextNode(d));const t=document.querySelector('style[data-dropin="sdk"]');if(t)t.after(e);else{const r=document.querySelector('link[rel="stylesheet"], style');r?r.before(e):document.head.append(e)}}}catch(e){console.error("dropin-styles (injectCodeFunction)",e)}})(".elsie-credit-card-form.hidden,.elsie-credit-card-form__loading.hidden{display:none}.elsie-credit-card-form{display:grid;grid-auto-flow:row;grid-template-columns:var(--grid-2-columns);gap:var(--grid-2-gutters);margin:var(--grid-2-margins)}.elsie-credit-card-form__eligible-cards{margin-right:10px}.elsie-credit-card-form__eligible-cards-icon{width:37px;height:24px;margin-right:10px}.elsie-credit-card-form__eligible-cards-unselected{opacity:.2}.elsie-credit-card-form__eligible-cards-selected{opacity:1}.elsie-credit-card-form__input-container{border:var(--shape-border-width-1) solid var(--color-neutral-600);border-radius:var(--shape-border-radius-1);color:var(--color-neutral-800);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:100%;z-index:1;padding:11px var(--spacing-small)}.elsie-credit-card-form__input-label{font-weight:700}.elsie-credit-card-form__input-error{font:var(--type-body-1-default-font);color:var(--color-alert-800)}.elsie-credit-card-form__input-target{height:2rem}.elsie-credit-card-form__card-number{grid-column:1 / span 2}.credit-card-error{display:flex;align-items:center;color:var(--color-alert-800);border:1px solid var(--color-alert-800);border-radius:var(--shape-border-radius-1);padding:var(--spacing-small);margin:var(--spacing-small) 0;font:var(--type-body-1-default-font)}.credit-card-error__icon{width:20px;height:20px;margin-right:8px}",{styleId:"PaymentServices"}); -import{jsx as e}from"@dropins/tools/preact-jsx-runtime.js";import{Render as f}from"@dropins/tools/lib.js";import{useState as i,useEffect as m}from"@dropins/tools/preact-hooks.js";import{UIProvider as c}from"@dropins/tools/components.js";import{events as a}from"@dropins/tools/event-bus.js";const p={"":{}},u={default:p},d=({children:o})=>{const[t,n]=i("en_US");return m(()=>{const r=a.on("locale",s=>{n(s)},{eager:!0});return()=>{r==null||r.off()}},[]),e(c,{lang:t,langDefinitions:u,children:o})},x=new f(e(d,{}));export{x as render}; diff --git a/scripts/__dropins__/storefront-payment-services/render/Provider.d.ts b/scripts/__dropins__/storefront-payment-services/render/Provider.d.ts deleted file mode 100644 index 898f1ec72..000000000 --- a/scripts/__dropins__/storefront-payment-services/render/Provider.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { FunctionComponent } from 'preact'; - -interface CartProviderProps { - children?: any; -} -export declare const Provider: FunctionComponent; -export {}; -//# sourceMappingURL=Provider.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/render/index.d.ts b/scripts/__dropins__/storefront-payment-services/render/index.d.ts deleted file mode 100644 index b758d268a..000000000 --- a/scripts/__dropins__/storefront-payment-services/render/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './render'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-payment-services/render/render.d.ts b/scripts/__dropins__/storefront-payment-services/render/render.d.ts deleted file mode 100644 index ca9b93195..000000000 --- a/scripts/__dropins__/storefront-payment-services/render/render.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Render } from '@dropins/tools/types/elsie/src/lib'; - -export declare const render: Render; -//# sourceMappingURL=render.d.ts.map \ No newline at end of file From c6a4cc87d11d55eb0ca4d361395c6122d47195ec Mon Sep 17 00:00:00 2001 From: Ruben Cougil Date: Thu, 19 Dec 2024 10:43:57 +0100 Subject: [PATCH 4/4] update payment dropin version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 12fb4c958..e06e3ea98 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,6 @@ "@dropins/storefront-order": "~1.0.0", "@dropins/storefront-pdp": "~1.0.0", "@dropins/tools": "^0.38.0", - "@dropins/storefront-payment-services": "0.0.1-alpha16" + "@dropins/storefront-payment-services": "0.0.1-alpha20" } }