@qonto/embed-sdk 0.64.1 → 0.64.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cards/client/cards.client.d.ts +1 -1
- package/dist/cards/client/cards.client.d.ts.map +1 -1
- package/dist/index.umd.js +81 -81
- package/dist/mocks/handlers.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/property.js +1 -1
- package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/reactive-element.js +1 -1
- package/dist/node_modules/.pnpm/{lit-element@4.2.1 → lit-element@4.2.2}/node_modules/lit-element/lit-element.js +2 -2
- package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/lit-html.js +1 -1
- package/dist/node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js +1 -0
- package/dist/server/cards/client/cards.client.d.ts +1 -1
- package/dist/server/cards/client/cards.client.d.ts.map +1 -1
- package/dist/server/index.server.umd.js +1 -1
- package/dist/server/mocks/handlers.d.ts.map +1 -1
- package/dist/server/node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js +1 -0
- package/dist/server/src/beneficiaries/shared/beneficiaries.api.js +1 -1
- package/dist/server/src/sepa-transfers/bulk-transfers/server/bulk-transfers.server.js +1 -1
- package/dist/server/src/sepa-transfers/server/sepa-transfers.server.js +1 -1
- package/dist/src/beneficiaries/shared/beneficiaries.api.js +1 -1
- package/dist/src/cards/client/cards.client.js +1 -1
- package/dist/src/cards/shared/cards.serializer.js +1 -1
- package/dist/src/iframe/iframe-message-builder.js +1 -1
- package/dist/src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.js +1 -1
- package/dist/src/sepa-transfers/client/sepa-transfers.client.js +1 -1
- package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.js +1 -1
- package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.styles.js +1 -1
- package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.js +1 -1
- package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.styles.js +1 -1
- package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.js +1 -1
- package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.js +1 -1
- package/dist/src/ui/customizable-components/button/qonto-button.js +1 -1
- package/dist/src/ui/customizable-components/button/qonto-button.styles.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-checkmark-rounded-filled.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-clock-filled.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-declined.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-error-filled.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-in-progress.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-warning.js +1 -1
- package/dist/src/ui/customizable-components/lottie-player/qonto-lottie-player.js +1 -1
- package/dist/src/ui/customizable-components/lottie-player/qonto-lottie-player.styles.js +1 -1
- package/dist/src/ui/customizable-components/select-field/qonto-option.js +1 -1
- package/dist/src/ui/customizable-components/select-field/qonto-select-field.js +1 -1
- package/dist/src/ui/customizable-components/select-field/qonto-select-field.styles.js +1 -1
- package/dist/src/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.js +1 -1
- package/dist/src/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.styles.js +1 -1
- package/dist/src/ui/customizable-components/styles/component-styles/table-styles.js +1 -1
- package/dist/src/ui/customizable-components/text/qonto-text-body.js +1 -1
- package/dist/src/ui/customizable-components/text/qonto-text-body.styles.js +1 -1
- package/dist/src/ui/customizable-components/text/qonto-text-heading.js +1 -1
- package/dist/src/ui/customizable-components/text/qonto-text-heading.styles.js +1 -1
- package/dist/src/ui/customizable-components/text-field/qonto-text-field.js +1 -1
- package/dist/src/ui/customizable-components/text-field/qonto-text-field.styles.js +1 -1
- package/dist/src/ui/ui-elements/list-utils/list.utils.js +1 -1
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.js +1 -1
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.styles.js +1 -1
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.utils.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.utils.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.js +1 -1
- package/dist/src/ui/ui-elements/transaction-list/transaction-list.js +1 -1
- package/dist/src/ui/ui-elements/transfer-list/transfer-list.js +1 -1
- package/package.json +18 -18
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +0 -1
- package/dist/server/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +0 -1
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/css-tag.js +0 -0
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/base.js +0 -0
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -0
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/query.js +0 -0
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/state.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/async-directive.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directive-helpers.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directive.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/ref.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/unsafe-html.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/static.js +0 -0
- /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/native.js +0 -0
- /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/rng.js +0 -0
- /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/stringify.js +0 -0
- /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/native.js +0 -0
- /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/rng.js +0 -0
- /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/stringify.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const t=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{environmentManager as t}from"../../../common/environment/environment-manager.js";let o=!1;function n(n){const i=(r=n?.options.headers.scaSessionToken,`${t.getEnvironmentUrls().EMBED_BASE_URL}/passkey/identification/${r}#staging_token=${l}`);var r,l;const s=function(e){return`${t.getEnvironmentUrls().EMBED_BASE_URL}/.../${e?.slice(-4)}`}(n?.options.headers.scaSessionToken);return e`<div data-testing-wrapper>
|
|
2
2
|
<qonto-text-heading level="2"
|
|
3
3
|
>Almost there: What's next?</qonto-text-heading
|
|
4
4
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as i}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as i}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as o}from"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as n}from"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as s}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as a}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{state as l}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js";import{getBeneficiaries as r}from"../../../../beneficiaries/beneficiaries.js";import{setLocale as m}from"../../localize/configure-localization.js";import{beneficiarySelectionPageStyles as c}from"./beneficiary-selection-page.styles.js";import{renderLoadingState as p}from"./beneficiary-selection-page.utils.js";import{RecipientInfoSubmittedEvent as d}from"../sepa-transfer-creation.events.js";import"../../../customizable-components/styles/styles.css.js";import"../../../customizable-components/text/qonto-text-heading.js";import"../../../customizable-components/text/qonto-text-body.js";import"../../../customizable-components/button/qonto-button.js";import"../../../customizable-components/beneficiary-card/qonto-beneficiary-card.js";let u=class extends n{constructor(){super(...arguments),this.locale="en",this.isLoading=!1}connectedCallback(){super.connectedCallback(),m(this.locale),this.fetchBeneficiaries()}updated(e){e.has("locale")&&m(this.locale)}async fetchBeneficiaries(e){if(this.operationSettings){this.isLoading=!0;try{const{paginationSettings:t={}}=this.operationSettings,i=await r({operationSettings:{...this.operationSettings,paginationSettings:{page:e??t.page??1,itemsPerPage:t.itemsPerPage??20}}});this.beneficiaries=i.beneficiaries,this.paginationState=i.meta}catch(e){console.error("Failed to load beneficiaries:",e)}finally{this.isLoading=!1}}else console.error("operationSettings is required to fetch beneficiaries")}handleNext(e){e.name?.trim()&&e.iban?.trim()&&this.dispatchEvent(new d({beneficiary:e}))}render(){return o`
|
|
2
2
|
<div data-step-container>
|
|
3
3
|
<div data-step-header>
|
|
4
4
|
<qonto-text-heading level="2">
|
package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const o=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import"../../../customizable-components/skeleton-loader/qonto-skeleton-loader-line.js";function t(){return e`
|
|
2
2
|
<div data-skeleton-card>
|
|
3
3
|
<div data-skeleton-content>
|
|
4
4
|
<div data-skeleton-beneficiary-info>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as o}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{organizations as n}from"../../../../organizations/index.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as o}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{organizations as n}from"../../../../organizations/index.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as i}from"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as a}from"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as s}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as r}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{state as c}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js";import{VOP_CHECK_RESULTS as l}from"../../../../common/constants.js";import{iconCheckmarkRoundedFilled as d}from"../../../customizable-components/icons/icon-checkmark-rounded-filled.js";import{iconWarning as m}from"../../../customizable-components/icons/icon-warning.js";import{setLocale as p}from"../../localize/configure-localization.js";import{SEPA_TRANSFER_PAGES as u}from"../sepa-transfer-creation.js";import{getAmountErrorMessage as h,getReferenceErrorMessage as f}from"./transfer-details-page-utils.js";import{transferDetailsPageStyles as b}from"./transfer-details-page.styles.js";import{TransferDetailsSubmittedEvent as v}from"../sepa-transfer-creation.events.js";import"../../../customizable-components/styles/styles.css.js";import"../../../customizable-components/text/qonto-text-heading.js";import"../../../customizable-components/button/qonto-button.js";import"../../../customizable-components/skeleton-loader/qonto-skeleton-loader-line.js";import"../../../customizable-components/beneficiary-card/qonto-beneficiary-card.js";import"../../../customizable-components/text-field/qonto-text-field.js";import"../../../customizable-components/select-field/qonto-select-field.js";import"../../../customizable-components/select-field/qonto-option.js";import"../../../customizable-components/amount-field/qonto-amount-field.js";let y=class extends a{constructor(){super(...arguments),this.locale="en",this.transferAmount=0,this.transferReference="",this.isLoadingVop=!1,this.bankAccounts=[],this.isLoading=!1,this.amountTouched=!1,this.referenceTouched=!1}connectedCallback(){super.connectedCallback(),p(this.locale),this.fetchBankAccounts()}updated(e){e.has("locale")&&p(this.locale)}async fetchBankAccounts(){if(this.operationSettings){this.isLoading=!0,this.error=void 0;try{const e=await n.getBankAccounts({operationSettings:this.operationSettings});if(this.bankAccounts=e,e.length>0&&!this.accountToDebit){const t=e.find((e=>e.main));this.accountToDebit=t||e[0]}}catch(e){console.error("Failed to load bank accounts:",e),this.error=t("Failed to load bank accounts. Please try again.")}finally{this.isLoading=!1}}else console.error("operationSettings is required to fetch bank accounts")}handleAmountChange(e){this.transferAmount=Number(e.detail.value),this.amountTouched=!0}handleAmountBlur(){this.amountTouched=!0}handleReferenceChange(e){this.transferReference=e.target.value,this.referenceTouched=!0}handleReferenceBlur(){this.referenceTouched=!0}handlePrevious(){this.dispatchEvent(new CustomEvent("go-to-step",{bubbles:!0,composed:!0,detail:{step:u.BENEFICIARY_SELECTION}}))}handleSubmit(){this.transferAmount>0&&this.accountToDebit&&this.dispatchEvent(new v({accountToDebit:this.accountToDebit,amount:this.transferAmount.toString(),reference:this.transferReference}))}render(){const e=this.transferAmount<=0||!this.accountToDebit||this.transferAmount>(this.accountToDebit?.balance??0)||!this.transferReference;return i`
|
|
2
2
|
<div data-step-container>
|
|
3
3
|
<div data-step-header>
|
|
4
4
|
<qonto-text-heading level="2"
|
package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const t=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as o}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as o}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as n}from"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as i}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as r}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{setLocale as s}from"../../localize/configure-localization.js";import{transferErrorPageStyles as m}from"./transfer-error-page.styles.js";import a from"../../../animations/generic_error.json.js";import"../../../customizable-components/text/qonto-text-heading.js";import"../../../customizable-components/lottie-player/qonto-lottie-player.js";let p=class extends n{constructor(){super(...arguments),this.locale="en"}connectedCallback(){super.connectedCallback(),s(this.locale)}handleFinishButtonPress(){const e=new CustomEvent("sepa-transfer-creation-flow-completed",{bubbles:!0,composed:!0});this.dispatchEvent(e)}render(){return l`<div data-step-container>
|
|
2
2
|
<qonto-text-heading level="1">
|
|
3
3
|
${t("Your transfer could not be sent")}
|
|
4
4
|
</qonto-text-heading>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const t=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as o}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as o}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as n}from"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as l}from"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as s}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as i}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{setLocale as r}from"../../localize/configure-localization.js";import{transferSuccessPageStyles as a}from"./transfer-success-page.styles.js";import{SEPA_TRANSFER_PAGES as m}from"../sepa-transfer-creation.js";import p from"../../../animations/general_success.json.js";import"../../../customizable-components/text/qonto-text-heading.js";import"../../../customizable-components/lottie-player/qonto-lottie-player.js";let d=class extends l{constructor(){super(...arguments),this.locale="en"}connectedCallback(){super.connectedCallback(),r(this.locale)}handleOkButtonPress(){const e=new CustomEvent("sepa-transfer-creation-flow-completed",{bubbles:!0,composed:!0});this.dispatchEvent(e)}handleCreateAnotherTransferButtonPress(){this.dispatchEvent(new CustomEvent("go-to-step",{bubbles:!0,composed:!0,detail:{step:m.BENEFICIARY_SELECTION}}))}render(){return n`<div data-step-container>
|
|
2
2
|
<qonto-text-heading level="1">
|
|
3
3
|
${t("Your transfer has been sent")}
|
|
4
4
|
</qonto-text-heading>
|
package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const t=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as o}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as o}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as i}from"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as r}from"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as a}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as n}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{setLocale as d}from"../../localize/configure-localization.js";import{getVopVerificationResultMarkup as s}from"./transfer-summary-page.utils.js";import{SEPA_TRANSFER_PAGES as l}from"../sepa-transfer-creation.js";import{formatIBAN as m}from"../sepa-transfer-creation.utils.js";import{transferSummaryPageStyles as c}from"./transfer-summary-page.styles.js";import"../../../customizable-components/styles/styles.css.js";import"../../../customizable-components/button/qonto-button.js";let p=class extends r{constructor(){super(...arguments),this.locale="en",this.beneficiary=void 0,this.accountToDebit=void 0,this.transferAmount="",this.transferReference="",this.isConfirming=!1}connectedCallback(){super.connectedCallback(),d(this.locale)}updated(e){e.has("locale")&&d(this.locale)}handlePrevious(){this.dispatchEvent(new CustomEvent("go-to-step",{bubbles:!0,composed:!0,detail:{step:l.TRANSFER_DETAILS}}))}handleConfirm(){this.dispatchEvent(new CustomEvent("transfer-confirmed",{bubbles:!0,composed:!0,detail:{amount:this.transferAmount,reference:this.transferReference}}))}render(){const e=this.accountToDebit;return i`
|
|
2
2
|
<div data-step-container>
|
|
3
3
|
<div data-step-header>
|
|
4
4
|
<qonto-text-heading level="2"
|
package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const t=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{msg as t}from"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{VOP_CHECK_RESULTS as o}from"../../../../common/constants.js";import{iconCheckmarkRoundedFilled as n}from"../../../customizable-components/icons/icon-checkmark-rounded-filled.js";import{iconWarning as a}from"../../../customizable-components/icons/icon-warning.js";function s(s){switch(s){case o.MATCH_RESULT_MATCH:return e`
|
|
2
2
|
<span data-vop-icon data-vop-success>
|
|
3
3
|
${n}
|
|
4
4
|
</span>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{localized as t}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{sepaTransfers as r}from"../../../sepa-transfers/index.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{localized as t}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{sepaTransfers as r}from"../../../sepa-transfers/index.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as s}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as n}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{state as a}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js";import{VOP_DECISIONS as c}from"../../../common/constants.js";import{setLocale as l}from"../localize/configure-localization.js";import{sepaTransferCreationStyles as p}from"./sepa-transfer-creation.styles.js";import"./pages/beneficiary-selection-page.js";import"./pages/transfer-details-page.js";import"./pages/transfer-summary-page.js";import"./pages/transfer-success-page.js";import"./pages/transfer-error-page.js";import"../../customizable-components/styles/styles.css.js";const m={BENEFICIARY_SELECTION:"beneficiary-selection",TRANSFER_DETAILS:"transfer-details",TRANSFER_SUMMARY:"transfer-summary",TRANSFER_SUCCESS:"transfer-success",TRANSFER_ERROR:"transfer-error"};let d=class extends o{constructor(){super(...arguments),this.locale="en",this.currentPage=m.BENEFICIARY_SELECTION,this.formData={beneficiary:void 0,accountToDebit:void 0,amount:"",reference:""},this.isCreatingTransfer=!1,this.handleRecipientInfoSubmitted=async e=>{const t=e.detail;if(this.formData={...this.formData,beneficiary:t.beneficiary},!this.operationSettings)return console.error("operationSettings is required to create transfer"),void(this.transferError="Missing configuration. Please try again.");this.isCreatingTransfer=!0,this.transferError=void 0;try{this.currentPage=m.TRANSFER_DETAILS,this.transferCreationProcess=r.createSepaTransfer({sepaTransferSettings:{beneficiary:t.beneficiary},operationSettings:{...this.operationSettings?{proxyRequestFunction:this.operationSettings.proxyRequestFunction,proxyEndpointDescriptor:this.operationSettings.proxyEndpointDescriptor,mfaPreference:this.operationSettings.mfaPreference,debugMode:this.operationSettings.debugMode,locale:this.operationSettings.locale}:{},uiParentElementId:()=>{const e=document.querySelector("qonto-sepa-transfer-creation");return e?.shadowRoot?.getElementById("sca-container")}}});const e=await this.transferCreationProcess.next();this.vopResult=e.value}catch(e){console.error("Failed to start transfer creation:",e),this.transferError=e instanceof Error?e.message:"Failed to verify beneficiary. Please try again."}finally{this.isCreatingTransfer=!1}},this.handleTransferDetailsSubmitted=e=>{const t=e.detail;this.formData={...this.formData,accountToDebit:t.accountToDebit,amount:t.amount,reference:t.reference},this.currentPage=m.TRANSFER_SUMMARY},this.handleGoToStep=e=>{this.currentPage=e.detail.step},this.handleTransferConfirmed=async e=>{const t=e.detail;if(!this.transferCreationProcess||!this.formData.accountToDebit)return console.error("Transfer creation process not initialized"),void(this.transferError="Transfer process not initialized. Please try again.");this.isCreatingTransfer=!0,this.transferError=void 0;try{const e=parseFloat(t.amount);if(isNaN(e)||e<=0)throw new Error("Invalid transfer amount");const r=await this.transferCreationProcess.next({vopDecision:c.ACCEPT,sepaTransferSettings:{bankAccountId:this.formData.accountToDebit.id,amount:e,reference:t.reference}});r.value&&"transfer"in r.value&&(this.dispatchEvent(new CustomEvent("sepa-transfer-created",{detail:r.value.transfer,bubbles:!0,composed:!0})),this.currentPage=m.TRANSFER_SUCCESS)}catch(e){this.transferError=e instanceof Error?e.message:"Failed to create transfer. Please try again.",this.currentPage=m.TRANSFER_ERROR}finally{this.isCreatingTransfer=!1}}}connectedCallback(){super.connectedCallback(),l(this.locale),this.addEventListener("recipient-info-submitted",this.handleRecipientInfoSubmitted),this.addEventListener("transfer-details-submitted",this.handleTransferDetailsSubmitted),this.addEventListener("go-to-step",this.handleGoToStep),this.addEventListener("transfer-confirmed",this.handleTransferConfirmed)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("recipient-info-submitted",this.handleRecipientInfoSubmitted),this.removeEventListener("transfer-details-submitted",this.handleTransferDetailsSubmitted),this.removeEventListener("go-to-step",this.handleGoToStep),this.removeEventListener("transfer-confirmed",this.handleTransferConfirmed)}updated(e){e.has("locale")&&l(this.locale)}render(){return s`
|
|
2
2
|
<div data-router-outlet>
|
|
3
3
|
<div id="sca-container" data-sca-modal></div>
|
|
4
4
|
${(()=>{switch(this.currentPage){case m.BENEFICIARY_SELECTION:return s`<qonto-beneficiary-selection-page
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const t=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{str as e}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as o}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as i}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{transactions as n}from"../../../transactions/index.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{str as e}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as o}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as i}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{transactions as n}from"../../../transactions/index.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as a}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as s}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as r}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{state as d}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js";import{formatDate as p}from"../../customizable-components/utils/format-date.js";import{TransactionSelectedEvent as m}from"./transaction-list.events.js";import{tableStyles as c}from"../../customizable-components/styles/component-styles/table-styles.js";import{renderLoadingTableRowsMarkup as h}from"../list-utils/list.utils.js";import{setLocale as u,getLocale as g}from"../localize/configure-localization.js";import"../../customizable-components/styles/styles.css.js";import"../../customizable-components/button/qonto-button.js";import"../../customizable-components/text/qonto-text-body.js";let y=class extends s{constructor(){super(...arguments),this.isLoading=!1}connectedCallback(){super.connectedCallback(),u(this.operationSettings?.locale||"en"),this.fetchTransactions()}updated(t){t.has("locale")&&u(this.operationSettings?.locale||"en")}async fetchTransactions(t){if(this.operationSettings){this.isLoading=!0,this.error=void 0;try{const{paginationSettings:e={}}=this.operationSettings,o=await n.getTransactions({transactionSettings:this.transactionSettings,operationSettings:{proxyRequestFunction:this.operationSettings.proxyRequestFunction,proxyEndpointDescriptor:this.operationSettings.proxyEndpointDescriptor,locale:this.operationSettings.locale,paginationSettings:{page:t??e.page??1,itemsPerPage:e.itemsPerPage??20}}});this.transactions=o.transactions,this.paginationState=o.meta}catch(t){console.error("Failed to load transactions:",t),this.error=o("Failed to load transactions. Please try again.")}finally{this.isLoading=!1}}else console.error("operationSettings is required to fetch transfers")}handleRowClick(t){this.dispatchEvent(new m({transaction:t}))}handlePreviousPage(){this.paginationState?.previousPage&&(this.transactions=void 0,this.fetchTransactions(this.paginationState.previousPage))}handleNextPage(){this.paginationState?.nextPage&&(this.transactions=void 0,this.fetchTransactions(this.paginationState.nextPage))}render(){return this.error?a`<qonto-text-body
|
|
2
2
|
data-variant="error"
|
|
3
3
|
data-display-level="body"
|
|
4
4
|
>${this.error}</qonto-text-body
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{str as e}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as o}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as s}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{str as e}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as o}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as s}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as i}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as n}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as a}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as r}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{state as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js";import{TRANSFER_STATUSES as d}from"../../../common/constants.js";import{getSepaTransfers as m}from"../../../sepa-transfers/sepa-transfers.js";import{setLocale as p,getLocale as c}from"../localize/configure-localization.js";import{TransferSelectedEvent as u}from"./transfer-list.events.js";import{mapTransferStatusToBadgeLevel as h}from"./transfer-list.utils.js";import{tableStyles as g}from"../../customizable-components/styles/component-styles/table-styles.js";import{formatDate as f}from"../../customizable-components/utils/format-date.js";import{formatMoney as v}from"../../customizable-components/utils/format-money.js";import{renderLoadingTableRowsMarkup as _}from"../list-utils/list.utils.js";import"../../customizable-components/styles/styles.css.js";import"../../customizable-components/button/qonto-button.js";let y=class extends n{constructor(){super(...arguments),this.locale="en",this.isLoading=!1}connectedCallback(){super.connectedCallback(),p(this.locale),this.fetchTransfers()}updated(t){t.has("locale")&&p(this.locale)}async fetchTransfers(t){if(this.operationSettings){this.isLoading=!0,this.error=void 0;try{const{paginationSettings:e={}}=this.operationSettings,o=await m({operationSettings:{...this.operationSettings,paginationSettings:{page:t??e.page??1,itemsPerPage:e.itemsPerPage??20}}});this.transfers=o.transfers,this.paginationState=o.meta}catch(t){console.error("Failed to load SEPA transfers:",t),this.error="Failed to load transfers. Please try again."}finally{this.isLoading=!1}}else console.error("operationSettings is required to fetch transfers")}handleRowClick(t){this.dispatchEvent(new u({transfer:t}))}handlePreviousPage(){this.paginationState?.previousPage&&(this.transfers=void 0,this.fetchTransfers(this.paginationState.previousPage))}handleNextPage(){this.paginationState?.nextPage&&(this.transfers=void 0,this.fetchTransfers(this.paginationState.nextPage))}render(){return this.error?i`<div data-error>${this.error}</div>`:i`
|
|
2
2
|
<table>
|
|
3
3
|
<thead>
|
|
4
4
|
<tr>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qonto/embed-sdk",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.2",
|
|
4
4
|
"description": "Library to embed Qonto features in your application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -124,27 +124,27 @@
|
|
|
124
124
|
"@amplitude/analytics-browser": "^2.32.2",
|
|
125
125
|
"@lit/localize": "^0.12.2",
|
|
126
126
|
"@sentry/browser": "^8.0.0",
|
|
127
|
-
"lit": "^3.3.
|
|
127
|
+
"lit": "^3.3.2",
|
|
128
128
|
"lottie-web": "^5.13.0",
|
|
129
|
-
"uuid": "^
|
|
129
|
+
"uuid": "^13.0.0"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@chromatic-com/storybook": "^
|
|
132
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
133
133
|
"@commitlint/cli": "^19.8.0",
|
|
134
134
|
"@commitlint/config-conventional": "^19.8.0",
|
|
135
135
|
"@eslint/js": "^9.24.0",
|
|
136
|
-
"@lit/localize-tools": "^0.8.
|
|
136
|
+
"@lit/localize-tools": "^0.8.1",
|
|
137
137
|
"@rollup/plugin-alias": "^5.1.1",
|
|
138
138
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
139
139
|
"@rollup/plugin-json": "^6.1.0",
|
|
140
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
140
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
141
141
|
"@rollup/plugin-replace": "^6.0.3",
|
|
142
142
|
"@rollup/plugin-terser": "^0.4.4",
|
|
143
143
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
144
|
-
"@storybook/addon-a11y": "^10.1.
|
|
145
|
-
"@storybook/addon-docs": "^10.1.
|
|
146
|
-
"@storybook/addon-vitest": "^10.1.
|
|
147
|
-
"@storybook/web-components-vite": "^10.1.
|
|
144
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
145
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
146
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
147
|
+
"@storybook/web-components-vite": "^10.1.11",
|
|
148
148
|
"@types/jsdom": "^21.1.7",
|
|
149
149
|
"@types/node": "^22.14.0",
|
|
150
150
|
"@vitest/browser": "3.1.1",
|
|
@@ -154,23 +154,23 @@
|
|
|
154
154
|
"dotenv": "^17.2.3",
|
|
155
155
|
"eslint": "^9.24.0",
|
|
156
156
|
"eslint-plugin-import": "^2.32.0",
|
|
157
|
-
"eslint-plugin-storybook": "^10.1.
|
|
157
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
158
158
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
159
159
|
"globals": "^16.0.0",
|
|
160
160
|
"husky": "^9.1.7",
|
|
161
161
|
"jsdom": "^26.1.0",
|
|
162
|
-
"lint-staged": "^
|
|
163
|
-
"msw": "^2.7
|
|
162
|
+
"lint-staged": "^16.2.7",
|
|
163
|
+
"msw": "^2.12.7",
|
|
164
164
|
"playwright": "^1.56.1",
|
|
165
165
|
"postcss-import": "^16.1.1",
|
|
166
166
|
"prettier": "3.5.3",
|
|
167
|
-
"prettier-plugin-packagejson": "^2.5.
|
|
167
|
+
"prettier-plugin-packagejson": "^2.5.22",
|
|
168
168
|
"rollup": "^4.39.0",
|
|
169
169
|
"rollup-plugin-postcss": "^4.0.2",
|
|
170
|
-
"semantic-release": "^25.0.
|
|
171
|
-
"storybook": "^10.1.
|
|
172
|
-
"typedoc": "^0.28.
|
|
173
|
-
"typedoc-plugin-markdown": "^4.
|
|
170
|
+
"semantic-release": "^25.0.2",
|
|
171
|
+
"storybook": "^10.1.11",
|
|
172
|
+
"typedoc": "^0.28.16",
|
|
173
|
+
"typedoc-plugin-markdown": "^4.9.0",
|
|
174
174
|
"typedoc-plugin-missing-exports": "^4.0.0",
|
|
175
175
|
"typescript": "^5.8.3",
|
|
176
176
|
"typescript-eslint": "^8.29.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./native.js";import n from"./rng.js";import{unsafeStringify as t}from"./stringify.js";function o(o,m,e){if(r.randomUUID&&!o)return r.randomUUID();const i=(o=o||{}).random??o.rng?.()??n();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=15&i[6]|64,i[8]=63&i[8]|128,t(i)}export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./native.js";import n from"./rng.js";import{unsafeStringify as t}from"./stringify.js";function o(o,m,e){if(r.randomUUID&&!o)return r.randomUUID();const i=(o=o||{}).random??o.rng?.()??n();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=15&i[6]|64,i[8]=63&i[8]|128,t(i)}export{o as default};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/static.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|