@primer-io/primer-js 0.11.1 → 0.12.0
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/CHANGELOG.md +13 -0
- package/dist/chunks/{ar.KRXB3WQO.js → ar.44J7SJG6.js} +1 -1
- package/dist/chunks/{bg.6SKJRXIR.js → bg.LT2YIFOH.js} +1 -1
- package/dist/chunks/{ca.SANDLFEK.js → ca.KUW6ECYF.js} +1 -1
- package/dist/chunks/{chunk.QMLIEEKM.js → chunk.TIWM3PQ7.js} +1 -1
- package/dist/chunks/{cs.FC4I5M3C.js → cs.XQGMKIF3.js} +1 -1
- package/dist/chunks/{da.YI32NZ7B.js → da.HKIIDZRJ.js} +1 -1
- package/dist/chunks/{de.7M7UFQB7.js → de.O6IUA6FB.js} +1 -1
- package/dist/chunks/{el.XSGTYDZR.js → el.F35KS4NO.js} +1 -1
- package/dist/chunks/en-GB.PU23XE2E.js +1 -0
- package/dist/chunks/en.HQJMDTVQ.js +1 -0
- package/dist/chunks/{es-AR.TBWVUZEF.js → es-AR.OZ6CT5HA.js} +1 -1
- package/dist/chunks/{es-MX.6EMWUABR.js → es-MX.E4FWJ3FK.js} +1 -1
- package/dist/chunks/{es.XZLDFHYI.js → es.HEWO2JY7.js} +1 -1
- package/dist/chunks/{et-EE.JBSFMKZ2.js → et-EE.3GAJR6UB.js} +1 -1
- package/dist/chunks/{fi-FI.I75VK2ID.js → fi-FI.4TB5AYVQ.js} +1 -1
- package/dist/chunks/{fr.JBNP6RXT.js → fr.5GQNZ4TX.js} +1 -1
- package/dist/chunks/{he.PW253QAL.js → he.WGVF57WV.js} +1 -1
- package/dist/chunks/{hr.LM4RITYJ.js → hr.YPXJZUYV.js} +1 -1
- package/dist/chunks/{hu.JGCKQA6J.js → hu.RX3HFOR5.js} +1 -1
- package/dist/chunks/{id.VBXULDDY.js → id.3SO7FJHW.js} +1 -1
- package/dist/chunks/{it.7Q6BFLDK.js → it.Y7247AOF.js} +1 -1
- package/dist/chunks/{ja.QOC76SSC.js → ja.L6PF6O6A.js} +1 -1
- package/dist/chunks/{ko.BANZIFNH.js → ko.X53AFCXY.js} +1 -1
- package/dist/chunks/{lt-LT.Q2SRJOKH.js → lt-LT.HMQT67X4.js} +1 -1
- package/dist/chunks/{lt.XMNFEN5T.js → lt.YJ3FR7A2.js} +1 -1
- package/dist/chunks/{lv-LV.3AJDTMU5.js → lv-LV.HLFWSCCR.js} +1 -1
- package/dist/chunks/{lv.TFPDXNEV.js → lv.DEK5WXQB.js} +1 -1
- package/dist/chunks/{ms.FPTX4NM4.js → ms.E6PXJ4SR.js} +1 -1
- package/dist/chunks/{nb.CAFSKRQ2.js → nb.7357HC5J.js} +1 -1
- package/dist/chunks/{nl.7BPSDYTC.js → nl.QBFQWQBY.js} +1 -1
- package/dist/chunks/{nl_NL.6ZVCFPVW.js → nl_NL.RS7W3XGO.js} +1 -1
- package/dist/chunks/{pl.RF34QM23.js → pl.FSJRWYQ5.js} +1 -1
- package/dist/chunks/{pt-BR.AKDHLRUA.js → pt-BR.WVYS3Y2I.js} +1 -1
- package/dist/chunks/{pt.VBALOWHZ.js → pt.LUSIBC5X.js} +1 -1
- package/dist/chunks/{ro.WN7VCF27.js → ro.TKERTYBG.js} +1 -1
- package/dist/chunks/{ru.ICXGVGRR.js → ru.VPEQHZ2S.js} +1 -1
- package/dist/chunks/{sk.SIP5JIOX.js → sk.QFMGH6WL.js} +1 -1
- package/dist/chunks/{sl.R77UEKCA.js → sl.RUAKKCKD.js} +1 -1
- package/dist/chunks/{sr-RS.6M2YSTDX.js → sr-RS.WSZIECEH.js} +1 -1
- package/dist/chunks/{sv.33ZY4CDS.js → sv.AHI2S45X.js} +1 -1
- package/dist/chunks/{th.M27YUIZC.js → th.ZKRE26WN.js} +1 -1
- package/dist/chunks/{tr.Q2SIY6NA.js → tr.6NOOTQVO.js} +1 -1
- package/dist/chunks/{uk-UA.EJZOGSJR.js → uk-UA.A6S7PXDN.js} +1 -1
- package/dist/chunks/{vi.3RROGLXM.js → vi.4Z5L3EAS.js} +1 -1
- package/dist/chunks/{zh-CN.MQHNRMN4.js → zh-CN.SN6TXY6W.js} +1 -1
- package/dist/chunks/{zh-HK.WNR7XUSX.js → zh-HK.SQG5YIVQ.js} +1 -1
- package/dist/chunks/{zh-TW.GNCY2PNY.js → zh-TW.P2X3B7LC.js} +1 -1
- package/dist/custom-elements.json +1268 -1001
- package/dist/jsx/index.d.ts +2 -2
- package/dist/primer-loader.d.ts +150 -19
- package/dist/primer-loader.js +15 -10
- package/dist/vscode.html-custom-data.json +1 -1
- package/dist/web-types.json +2 -2
- package/package.json +1 -1
- package/dist/chunks/en-GB.VO4GDE3X.js +0 -1
- package/dist/chunks/en.MNFLVOE3.js +0 -1
|
@@ -2,35 +2,6 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "e2e/utils.ts",
|
|
8
|
-
"declarations": [
|
|
9
|
-
{
|
|
10
|
-
"kind": "variable",
|
|
11
|
-
"name": "test",
|
|
12
|
-
"default": "chromaticTest"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"exports": [
|
|
16
|
-
{
|
|
17
|
-
"kind": "js",
|
|
18
|
-
"name": "expect",
|
|
19
|
-
"declaration": {
|
|
20
|
-
"name": "expect",
|
|
21
|
-
"package": "@chromatic-com/playwright"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"kind": "js",
|
|
26
|
-
"name": "test",
|
|
27
|
-
"declaration": {
|
|
28
|
-
"name": "test",
|
|
29
|
-
"module": "e2e/utils.ts"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
5
|
{
|
|
35
6
|
"kind": "javascript-module",
|
|
36
7
|
"path": "dist/primer-loader.js",
|
|
@@ -78,268 +49,268 @@
|
|
|
78
49
|
},
|
|
79
50
|
{
|
|
80
51
|
"kind": "variable",
|
|
81
|
-
"name": "
|
|
52
|
+
"name": "dr",
|
|
82
53
|
"default": "class{constructor(t){this._methods=t}get(t){return this._methods.get(t)}toArray(){return Array.from(this._methods.values())}size(){return this._methods.size}}"
|
|
83
54
|
},
|
|
84
55
|
{
|
|
85
56
|
"kind": "variable",
|
|
86
|
-
"name": "
|
|
57
|
+
"name": "cr",
|
|
87
58
|
"default": "class{constructor(t){this._methods=t}get(t){return this._methods.get(t)}toArray(){return Array.from(this._methods.values())}size(){return this._methods.size}}"
|
|
88
59
|
},
|
|
89
60
|
{
|
|
90
61
|
"kind": "variable",
|
|
91
|
-
"name": "
|
|
92
|
-
"default": "class extends v{constructor(){super(...arguments);this.size=\"large\";this.showCloseButton=!1;this.open=!1}openDialog(){this.open=!0}closeDialog(){let e=document.querySelector(\"primer-dialog\");if(e){e.startExitAnimation();let a=()=>{this.open=!1,this.removeEventListener(\"primer-dialog-close\",a)};this.addEventListener(\"primer-dialog-close\",a)}else this.open=!1}renderContent(){return p`<div class=\"content-container\"><slot></slot>${this.renderSecureHtmlContent()}</div>`}renderSecureHtmlContent(){return this.secureHtmlContent?
|
|
62
|
+
"name": "ue",
|
|
63
|
+
"default": "class extends v{constructor(){super(...arguments);this.size=\"large\";this.showCloseButton=!1;this.open=!1}openDialog(){this.open=!0}closeDialog(){let e=document.querySelector(\"primer-dialog\");if(e){e.startExitAnimation();let a=()=>{this.open=!1,this.removeEventListener(\"primer-dialog-close\",a)};this.addEventListener(\"primer-dialog-close\",a)}else this.open=!1}renderContent(){return p`<div class=\"content-container\"><slot></slot>${this.renderSecureHtmlContent()}</div>`}renderSecureHtmlContent(){return this.secureHtmlContent?Wi(this.secureHtmlContent)?p`${ds(this.secureHtmlContent.content)}`:(T.warn(\"PortalDialogComponent: Invalid access token provided for htmlContent. Content will not be rendered.\"),y):y}renderDialog(){return this.open?p`<primer-portal><primer-dialog .open=${this.open} size=${this.size} .showCloseButton=${!1} @primer-dialog-close=\"${()=>this.closeDialog()}\" >${this.renderContent()}</primer-dialog></primer-portal>`:y}connectedCallback(){super.connectedCallback(),this.open||this.openDialog()}updated(e){if(super.updated(e),e.has(\"secureHtmlContent\")){let a=this.secureHtmlContent;a&&!Wi(a)&&(T.errorWithDatadog(\"PortalDialogComponent: Invalid access token provided for htmlContent. Content will not be rendered.\"),this.secureHtmlContent=void 0)}e.has(\"open\")&&this.open&&this.onOpen&&this.onOpen(),e.has(\"open\")&&this.open&&this.onContentRendered&&this.updateComplete.then(()=>{requestAnimationFrame(()=>{this.onContentRendered?.()})})}render(){return p`${this.renderDialog()}`}}"
|
|
93
64
|
},
|
|
94
65
|
{
|
|
95
66
|
"kind": "variable",
|
|
96
|
-
"name": "
|
|
97
|
-
"default": "class extends v{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this._jsInitialized=!1;this.previousLoadingState=!0;this.hasAssignedContent=!1;this._loadingTimeoutId=null;this._eventListenerController=null;this.locale=\"en-GB\";this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.sdkContextController=new
|
|
67
|
+
"name": "Te",
|
|
68
|
+
"default": "class extends v{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this._jsInitialized=!1;this.previousLoadingState=!0;this.hasAssignedContent=!1;this._loadingTimeoutId=null;this._eventListenerController=null;this.locale=\"en-GB\";this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.sdkContextController=new ar(this),this.sdkStateController=new tr(this),this.primerEventsController=new jt(this),this.styleProcessingController=new rr(this),this.vaultManagerController=new ua(this),this.cardNetworkController=new Ra(this),this.achPaymentEventsController=new Rr(this),this.headlessSdkController=new Lr(this)}set jsInitialized(e){this.requestUpdate(),this._jsInitialized=e}get jsInitialized(){return this._jsInitialized}get primerJS(){return this.headlessSdkController?.primerJSInstance??void 0}connectedCallback(){super.connectedCallback(),this.sdkContextController.setEventsController(this.primerEventsController),this._eventListenerController=new AbortController,document.addEventListener(\"primer:card-submit\",this.handleExternalCardSubmit.bind(this),{signal:this._eventListenerController.signal}),document.addEventListener(\"primer:vault-submit\",this.handleExternalVaultSubmit.bind(this),{signal:this._eventListenerController.signal}),document.addEventListener(\"primer:show-other-payments-toggle\",this.handleExternalShowOtherPaymentsToggle.bind(this),{signal:this._eventListenerController.signal})}attributeChangedCallback(e,a,i){e===yp.CUSTOM_STYLES?this.styleProcessingController.processCustomStyles(i):super.attributeChangedCallback(e,a,i)}disconnectedCallback(){this._loadingTimeoutId&&(window.clearTimeout(this._loadingTimeoutId),this._loadingTimeoutId=null),this.sdkStateController?.currentState.isLoading&&this.sdkStateController.forceCompleteLoading(),this._eventListenerController&&(this._eventListenerController.abort(),this._eventListenerController=null),super.disconnectedCallback()}willUpdate(e){e.has(\"options\")&&(this.options?.locale&&(Ki(this.options?.locale)?this.locale=Ui(this.options?.locale):T.warn(\"\\u{1F30E}\\u2757 Unsupported locale provided:\",this.options?.locale,\"- Falling back to default locale `en-GB`\")),Oi(this.locale||\"en-GB\"))}updated(){let e=getComputedStyle(this);this.sdkContextController.setComputedStyles(e),this.checkLoadingStateChange()}handleExternalCardSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:card-submit\",e.detail)}handleExternalVaultSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:vault-submit\",e.detail)}handleExternalShowOtherPaymentsToggle(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:show-other-payments-toggle\",e.detail)}checkLoadingStateChange(){let e=this.sdkStateController?.currentState.isLoading||!1;if(this.previousLoadingState&&!e){this.jsInitialized=!0,Z({eventName:\"CHECKOUT_FLOW_STARTED\"});let a=Fe.getSdkInitStartTime(),i=a?Date.now()-a:void 0;So(i)}this.previousLoadingState=e,e&&!this._loadingTimeoutId?this._loadingTimeoutId=window.setTimeout(()=>{this.sdkStateController?.currentState.isLoading&&(T.warn(\"Loading timeout in component, forcing completion\"),this.sdkStateController.forceCompleteLoading(),this.jsInitialized=!0),this._loadingTimeoutId=null},1e4):!e&&this._loadingTimeoutId&&(window.clearTimeout(this._loadingTimeoutId),this._loadingTimeoutId=null)}render(){let e=this.sdkStateController.currentState,a=e.isLoading,i=e.primerJsError,n=!a&&!i;return p` ${R(a,()=>y)} ${R(i,()=>p`<primer-checkout-error></primer-checkout-error>`)} ${R(n,()=>p`<slot name=\"main\" @slotchange=${this.onSlotChange}></slot>${R(this.hasAssignedContent,()=>y,()=>p`<primer-main></primer-main>`)} `,()=>y)} `}addEventListener(e,a,i){super.addEventListener(e,a,i)}removeEventListener(e,a,i){super.removeEventListener(e,a,i)}}"
|
|
98
69
|
},
|
|
99
70
|
{
|
|
100
71
|
"kind": "function",
|
|
101
|
-
"name": "
|
|
72
|
+
"name": "Cs"
|
|
102
73
|
},
|
|
103
74
|
{
|
|
104
75
|
"kind": "function",
|
|
105
|
-
"name": "
|
|
76
|
+
"name": "Ms"
|
|
106
77
|
},
|
|
107
78
|
{
|
|
108
79
|
"kind": "function",
|
|
109
|
-
"name": "
|
|
80
|
+
"name": "Ap"
|
|
110
81
|
},
|
|
111
82
|
{
|
|
112
83
|
"kind": "function",
|
|
113
|
-
"name": "
|
|
84
|
+
"name": "Cp"
|
|
114
85
|
},
|
|
115
86
|
{
|
|
116
87
|
"kind": "variable",
|
|
117
|
-
"name": "
|
|
118
|
-
"default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in
|
|
88
|
+
"name": "$e",
|
|
89
|
+
"default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in Xi)return Xi[this.size];let e=parseInt(this.size,10);return isNaN(e)?Xi.medium:e}render(){let e=this.getSize(),a=20,i=`0 0 ${a} ${a}`;return this.style.setProperty(\"--spinner-color\",this.color),this.style.setProperty(\"--spinner-size\",`${e}px`),p`<div class=\"spinner-container ${this.compact?\"compact\":\"\"}\"><svg class=\"spinner\" width=\"${e}\" height=\"${e}\" viewBox=\"${i}\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" role=\"status\" aria-label=\"Loading\" ><path d=\"M4.27827 10.002C4.27827 6.84166 6.84019 4.27973 10.0005 4.27973C10.7676 4.27973 11.3894 3.6579 11.3894 2.89084C11.3894 2.12378 10.7676 1.50195 10.0005 1.50195C5.30607 1.50195 1.50049 5.30753 1.50049 10.002C1.50049 14.6964 5.30607 18.502 10.0005 18.502C14.6949 18.502 18.5005 14.6964 18.5005 10.002C18.5005 9.23489 17.8787 8.61306 17.1116 8.61306C16.3445 8.61306 15.7227 9.23489 15.7227 10.002C15.7227 13.1622 13.1608 15.7242 10.0005 15.7242C6.84019 15.7242 4.27827 13.1622 4.27827 10.002Z\" fill=\"currentColor\" class=\"path\" /></svg></div>`}}"
|
|
119
90
|
},
|
|
120
91
|
{
|
|
121
92
|
"kind": "variable",
|
|
122
|
-
"name": "
|
|
123
|
-
"default": "class extends v{constructor(){super(...arguments);this.focusWithin=!1;this.hasError=!1;this.handleWrapperClick=e=>{if(e.target!==e.currentTarget)return;let a=this.findSlottedPrimerInput();a?a.focus():this.dispatchEvent(new CustomEvent(\"wrapper-click\",{bubbles:!0,composed:!0}))}}findSlottedPrimerInput(){if(!this.inputSlot)return null;let e=this.inputSlot.assignedElements({flatten:!0}),a=e.find(i=>i.tagName.toLowerCase()===\"primer-input\");if(a)return a;for(let i of e){let n=i.querySelector(\"primer-input\");if(n)return n}return null}render(){let e={\"input-slot\":!0,\"focus-within\":this.focusWithin};return p`<div class=\"input-wrapper\"><slot name=\"label\"></slot><div class=\"${
|
|
93
|
+
"name": "ze",
|
|
94
|
+
"default": "class extends v{constructor(){super(...arguments);this.focusWithin=!1;this.hasError=!1;this.handleWrapperClick=e=>{if(e.target!==e.currentTarget)return;let a=this.findSlottedPrimerInput();a?a.focus():this.dispatchEvent(new CustomEvent(\"wrapper-click\",{bubbles:!0,composed:!0}))}}findSlottedPrimerInput(){if(!this.inputSlot)return null;let e=this.inputSlot.assignedElements({flatten:!0}),a=e.find(i=>i.tagName.toLowerCase()===\"primer-input\");if(a)return a;for(let i of e){let n=i.querySelector(\"primer-input\");if(n)return n}return null}render(){let e={\"input-slot\":!0,\"focus-within\":this.focusWithin};return p`<div class=\"input-wrapper\"><slot name=\"label\"></slot><div class=\"${oe(e)}\" @click=\"${this.handleWrapperClick}\"><slot name=\"input\"></slot></div><slot name=\"error\"></slot></div>`}}"
|
|
124
95
|
},
|
|
125
96
|
{
|
|
126
97
|
"kind": "variable",
|
|
127
|
-
"name": "
|
|
98
|
+
"name": "it",
|
|
128
99
|
"default": "class extends v{constructor(){super(...arguments);this.for=\"\";this.disabled=!1}render(){return p`<label for=${this.for}><slot></slot></label>`}}"
|
|
129
100
|
},
|
|
130
101
|
{
|
|
131
102
|
"kind": "variable",
|
|
132
|
-
"name": "
|
|
133
|
-
"default": "class extends v{constructor(){super(...arguments);this.variant=\"primary\";this.disabled=!1;this.loading=!1;this.buttonType=\"button\";this.selectionState=\"default\";this.selectable=!1;this.flex=!0;this.handleClick=()=>{!this.selectable||this.disabled||this.loading||(this.selectionState=this.selectionState===\"default\"?\"checked\":\"default\",this.dispatchEvent(new CustomEvent(\"selection-change\",{bubbles:!0,composed:!0,detail:{state:this.selectionState}})))}}renderCheckmark(){return!this.selectable||this.selectionState!==\"checked\"||this.loading?
|
|
103
|
+
"name": "ve",
|
|
104
|
+
"default": "class extends v{constructor(){super(...arguments);this.variant=\"primary\";this.disabled=!1;this.loading=!1;this.buttonType=\"button\";this.selectionState=\"default\";this.selectable=!1;this.flex=!0;this.handleClick=()=>{!this.selectable||this.disabled||this.loading||(this.selectionState=this.selectionState===\"default\"?\"checked\":\"default\",this.dispatchEvent(new CustomEvent(\"selection-change\",{bubbles:!0,composed:!0,detail:{state:this.selectionState}})))}}renderCheckmark(){return!this.selectable||this.selectionState!==\"checked\"||this.loading?y:p`<primer-icon name=\"checkmark\" size=\"sm\" color=\"var(--primer-color-brand)\" ></primer-icon>`}renderSpinner(){if(!this.loading)return y;let e;return this.variant===\"primary\"?e=\"var(--primer-color-background-outlined-default)\":(this.variant===\"secondary\"||this.variant===\"tertiary\")&&(e=\"var(--primer-color-gray-900)\"),p`<primer-spinner size=\"small\" color=\"${e}\" compact ></primer-spinner>`}render(){return p`<button type=${this.buttonType} ?disabled=${this.disabled||this.loading} @click=${this.handleClick} part=\"button\" aria-checked=${this.selectionState===\"checked\"} aria-busy=${this.loading} aria-label=${this.ariaLabel?this.ariaLabel:y} >${this.renderSpinner()} ${this.flex?p`<span class=\"button-content ${this.loading?\"loading\":\"\"}\"><slot></slot></span>`:p`<span class=\"button-content-base ${this.loading?\"loading\":\"\"}\" ><slot></slot></span>`} ${this.renderCheckmark()}</button>`}}"
|
|
134
105
|
},
|
|
135
106
|
{
|
|
136
107
|
"kind": "variable",
|
|
137
|
-
"name": "
|
|
108
|
+
"name": "nt",
|
|
138
109
|
"default": "class extends v{constructor(){super(...arguments);this.for=\"\";this.active=!0}render(){return p`<span class=\"error\" role=\"alert\" aria-live=\"polite\" id=\"${this.for||\"\"}\" ><slot></slot></span>`}}"
|
|
139
110
|
},
|
|
140
111
|
{
|
|
141
112
|
"kind": "variable",
|
|
142
|
-
"name": "
|
|
143
|
-
"default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?
|
|
113
|
+
"name": "je",
|
|
114
|
+
"default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?ks[this.name]:null;return p`<div style=\"--internal-icon-color: ${this.color}\">${e||p`<slot></slot>`}</div>`}}"
|
|
144
115
|
},
|
|
145
116
|
{
|
|
146
117
|
"kind": "variable",
|
|
147
|
-
"name": "
|
|
118
|
+
"name": "ot",
|
|
148
119
|
"default": "class extends v{constructor(){super(...arguments);this.type=\"complete\"}render(){return this.type===\"complete\"?p`<primer-icon size=\"lg\" name=\"successful-check\" color=\"var(--primer-color-icon-positive)\" ></primer-icon><p>Checkout complete!</p><p class=\"secondary\"> You'll be redirected to the order confirmation page soon. </p>`:p`<primer-icon size=\"lg\" name=\"failure-icon\" color=\"var(--primer-color-icon-negative)\" ></primer-icon><p>Payment failed</p>${this.description?p`<p class=\"secondary\">${this.description}</p>`:p`<p class=\"secondary\">Something went wrong.</p>`} `}}"
|
|
149
120
|
},
|
|
150
121
|
{
|
|
151
122
|
"kind": "variable",
|
|
152
|
-
"name": "
|
|
123
|
+
"name": "Y",
|
|
153
124
|
"default": "class extends v{constructor(){super(...arguments);this.value=\"\";this.placeholder=\"\";this.disabled=!1;this.name=\"\";this.type=\"text\";this.required=!1;this.readonly=!1;this.pattern=\"\";this.min=\"\";this.max=\"\";this.step=\"\";this.autocomplete=\"\";this._id=\"\";this.hasFocus=!1;this.hasError=!1;this.handleInput=e=>{e.stopPropagation();let a=e.target;this.value=a.value;let i=new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0});this.dispatchEvent(i)};this.handleChange=e=>{e.stopPropagation();let a=e.target;this.value=a.value;let i=new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0});this.dispatchEvent(i)};this.handleFocus=()=>{this.hasFocus=!0,this.dispatchEvent(new FocusEvent(\"focus\",{bubbles:!0,composed:!0}))};this.handleBlur=()=>{this.hasFocus=!1,this.dispatchEvent(new FocusEvent(\"blur\",{bubbles:!0,composed:!0}))};this.handleInvalid=e=>{e.stopPropagation(),this.hasError=!0,this.dispatchEvent(new Event(\"invalid\",{bubbles:!0,composed:!0}))}}get id(){return this._id}set id(e){this._id=e,this.setAttribute(\"id\",e)}focus(e){this.inputElement?.focus(e)}blur(){this.inputElement?.blur()}select(){this.inputElement?.select()}setSelectionRange(e,a,i){this.inputElement?.setSelectionRange(e,a,i)}get validity(){return this.inputElement?.validity||{}}get validationMessage(){return this.inputElement?.validationMessage||\"\"}checkValidity(){return this.inputElement?.checkValidity()||!1}reportValidity(){return this.inputElement?.reportValidity()||!1}render(){let e={input:!0,\"input--focused\":this.hasFocus,\"input--disabled\":this.disabled,\"input--error\":this.hasError,\"input--readonly\":this.readonly},a=Object.entries(e).filter(([,i])=>i).map(([i])=>i).join(\" \");return p`<input part=\"input\" class=${a} .value=${this.value} .type=${this.type} ?disabled=${this.disabled} ?required=${this.required} ?readonly=${this.readonly} placeholder=${this.placeholder} pattern=${this.pattern} minlength=${this.minlength??\"\"} maxlength=${this.maxlength??\"\"} min=${this.min} max=${this.max} step=${this.step} autocomplete=${this.autocomplete} name=${this.name} id=${this.id} @input=${this.handleInput} @change=${this.handleChange} @focus=${this.handleFocus} @blur=${this.handleBlur} @invalid=${this.handleInvalid} />`}addEventListener(e,a,i){super.addEventListener(e,a,i)}removeEventListener(e,a,i){super.removeEventListener(e,a,i)}}"
|
|
154
125
|
},
|
|
155
126
|
{
|
|
156
127
|
"kind": "variable",
|
|
157
|
-
"name": "
|
|
158
|
-
"default": "class extends v{constructor(){super(...arguments);this.name=\"\";this.id=\"\";this.value=\"\";this.disabled=!1;this.hasError=!1;this.placeholder=\"\";this.options=[]}handleChange(e){let a=e.target,i=this.value;this.value=a.value,this.dispatchEvent(new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0})),this.requestUpdate(\"value\",i)}handleFocus(){this.dispatchEvent(new CustomEvent(\"focus\",{bubbles:!0,composed:!0}))}handleBlur(){this.dispatchEvent(new CustomEvent(\"blur\",{bubbles:!0,composed:!0}))}renderSelectOptions(){let e=[];for(let a of this.options)e.push(p`<option value=${a.value}>${a.label}</option>`);return e}render(){return p`<select id=${this.id} name=${this.name} .value=${
|
|
128
|
+
"name": "Se",
|
|
129
|
+
"default": "class extends v{constructor(){super(...arguments);this.name=\"\";this.id=\"\";this.value=\"\";this.disabled=!1;this.hasError=!1;this.placeholder=\"\";this.options=[]}handleChange(e){let a=e.target,i=this.value;this.value=a.value,this.dispatchEvent(new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0})),this.requestUpdate(\"value\",i)}handleFocus(){this.dispatchEvent(new CustomEvent(\"focus\",{bubbles:!0,composed:!0}))}handleBlur(){this.dispatchEvent(new CustomEvent(\"blur\",{bubbles:!0,composed:!0}))}renderSelectOptions(){let e=[];for(let a of this.options)e.push(p`<option value=${a.value}>${a.label}</option>`);return e}render(){return p`<select id=${this.id} name=${this.name} .value=${ws(this.value)} ?disabled=${this.disabled} ?required=${!this.value} @change=${this.handleChange} @focus=${this.handleFocus} @blur=${this.handleBlur} aria-invalid=${this.hasError?\"true\":\"false\"} ><option value=\"\" disabled ?selected=${!this.value}>${this.placeholder||\"Select an option\"}</option>${this.renderSelectOptions()}</select>`}}"
|
|
159
130
|
},
|
|
160
131
|
{
|
|
161
132
|
"kind": "variable",
|
|
162
|
-
"name": "
|
|
133
|
+
"name": "be",
|
|
163
134
|
"default": "class extends v{constructor(){super(...arguments);this.header=\"\";this.expanded=!1;this.expandText=\"Expand\";this.collapseText=\"Collapse\";this.ariaLabel=\"\";this.buttonVariant=\"primary\";this.isExpanded=!1;this.toggleExpanded=()=>{this.isExpanded=!this.isExpanded,this.dispatchExpandedChangedEvent(this.isExpanded)}}connectedCallback(){super.connectedCallback(),this.isExpanded=this.expanded}dispatchExpandedChangedEvent(e){this.dispatchEvent(new CustomEvent(\"expanded-changed\",{bubbles:!0,composed:!0,detail:{expanded:e}}))}expand(){this.isExpanded||(this.isExpanded=!0,this.dispatchExpandedChangedEvent(!0))}collapse(){this.isExpanded&&(this.isExpanded=!1,this.dispatchExpandedChangedEvent(!1))}render(){let e=this.isExpanded?this.collapseText:this.expandText,a=this.ariaLabel||this.header||e,i=this.header||e;return p`<div class=\"collapsable\"><primer-button variant=${this.buttonVariant} buttonType=\"button\" @click=${this.toggleExpanded} aria-expanded=${this.isExpanded} aria-controls=\"collapsable-content\" aria-label=${a} ><span>${i}</span></primer-button><div class=\"collapsable-wrapper ${this.isExpanded?\"expanded\":\"\"}\" id=\"collapsable-content\" role=\"region\" aria-labelledby=\"collapsable-header\" ><div class=\"collapsable-content\"><slot></slot></div></div></div>`}}"
|
|
164
135
|
},
|
|
165
136
|
{
|
|
166
137
|
"kind": "variable",
|
|
167
|
-
"name": "
|
|
168
|
-
"default": "class extends v{constructor(){super();this.message=\"\";this.visible=!1;this._role=\"alert\";this.showMessage=!1;this.role=\"alert\"}get role(){return this._role}set role(e){this._role=e,this.setAttribute(\"role\",e)}updated(e){e.has(\"visible\")&&this.handleVisibilityChange()}handleVisibilityChange(){this.visible?(this.showMessage=!0,this.setAttribute(\"aria-hidden\",\"false\")):setTimeout(()=>{this.showMessage=!1,this.setAttribute(\"aria-hidden\",\"true\")},200)}render(){if(!this.showMessage&&!this.visible)return
|
|
138
|
+
"name": "We",
|
|
139
|
+
"default": "class extends v{constructor(){super();this.message=\"\";this.visible=!1;this._role=\"alert\";this.showMessage=!1;this.role=\"alert\"}get role(){return this._role}set role(e){this._role=e,this.setAttribute(\"role\",e)}updated(e){e.has(\"visible\")&&this.handleVisibilityChange()}handleVisibilityChange(){this.visible?(this.showMessage=!0,this.setAttribute(\"aria-hidden\",\"false\")):setTimeout(()=>{this.showMessage=!1,this.setAttribute(\"aria-hidden\",\"true\")},200)}render(){if(!this.showMessage&&!this.visible)return y;let e={\"error-message\":!0,hidden:!this.visible};return p`<div part=\"error-message\" class=${oe(e)} aria-live=\"assertive\" aria-atomic=\"true\" ><div part=\"error-icon\" class=\"error-icon\"><primer-icon name=\"failure-icon\" size=\"sm\" color=\"var(--primer-color-icon-negative)\" ></primer-icon></div><div part=\"error-content\" class=\"error-content\">${this.message}</div></div>`}}"
|
|
169
140
|
},
|
|
170
141
|
{
|
|
171
142
|
"kind": "variable",
|
|
172
|
-
"name": "
|
|
143
|
+
"name": "bt",
|
|
173
144
|
"default": "class extends v{constructor(){super(...arguments);this._id=`d${Math.random().toString(36).substring(7)}`;this._handleSlotChange=e=>{let i=e.target.assignedNodes();if(!i.length)return;let n=this.getContainer();i.forEach(o=>n.appendChild(o))}}get id(){return this._id}getContainer(){let e=document.querySelector(`#${this._id}`);return e||(e=document.createElement(\"div\"),e.id=this._id,document.body.appendChild(e),this._setupEventListeners(e)),e}_setupEventListeners(e){[\"primer-ach-error\",\"primer-ach-bank-details-collected\",\"primer-ach-mandate-confirmed\",\"primer-ach-mandate-declined\",\"primer-dialog-close\"].forEach(a=>{e.addEventListener(a,i=>{i.stopPropagation(),this.dispatchEvent(new CustomEvent(a,{bubbles:!0,composed:!0,detail:i.detail}))})})}disconnectedCallback(){super.disconnectedCallback(),this.getContainer().remove()}render(){return p`<slot @slotchange=${this._handleSlotChange}></slot>`}}"
|
|
174
145
|
},
|
|
175
146
|
{
|
|
176
147
|
"kind": "variable",
|
|
177
148
|
"name": "Be",
|
|
178
|
-
"default": "class extends v{constructor(){super(...arguments);this.size=\"flex\";this.showCloseButton=!0;this._animationState=\"entering\";this._isVisible=!1;this._handleCloseClick=()=>{this._startExitAnimation()}}startExitAnimation(){this._startExitAnimation()}connectedCallback(){super.connectedCallback(),document.body.style.overflow=\"hidden\",this._startEnterAnimation()}disconnectedCallback(){super.disconnectedCallback(),document.body.style.overflow=\"\",this._animationTimeout&&clearTimeout(this._animationTimeout)}_startEnterAnimation(){this._animationState=\"entering\",this._isVisible=!0,requestAnimationFrame(()=>{this._animationTimeout=window.setTimeout(()=>{this._animationState=\"entered\"},500)})}_startExitAnimation(){this._animationTimeout&&clearTimeout(this._animationTimeout),this._animationState=\"exiting\",this._animationTimeout=window.setTimeout(()=>{this._animationState=\"exited\",this._isVisible=!1,this.dispatchEvent(new CustomEvent(\"primer-dialog-close\",{bubbles:!0,composed:!0}))},500)}render(){return this._isVisible?p`<div class=${
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"kind": "variable",
|
|
182
|
-
"name": "ne",
|
|
183
|
-
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.klarnaCategories=null;this.disabled=!1;this.selectedCategory=null;this.isExpanded=!1;this.headerAriaLabel=b(\"pay_with\",{id:\"pay_with\"});this._paymentMethodManagerTask=new D(this,{task:async([e,a])=>{if(!e||!a)return _;let i=await a.getCDNAssets(\"KLARNA\");return{manager:e.manager,klarnaIcon:i?.assets?.icon?`${i.goatCdnUrl}/${i.assets.icon}`:\"\"}},args:()=>[this.paymentManagers.get(\"KLARNA\"),this.headlessUtils]});this.toggleExpand=()=>{this.disabled||(this.isExpanded=!this.isExpanded,this.isExpanded||(this.selectedCategory=null))}}async startKlarnaPayment(){if(!(!this._paymentMethodManagerTask.value||!this.selectedCategory))try{await this._paymentMethodManagerTask.value.manager.start({paymentMethodCategoryId:this.selectedCategory})}catch(e){E.errorWithDatadog(\"Failed to start Klarna payment\",{error:e})}}async renderSelectedCategory(){if(!(!this._paymentMethodManagerTask.value||!this.selectedCategory||!this.klarnaContainer))try{this.klarnaContainer.innerHTML=\"\",await this._paymentMethodManagerTask.value.manager.renderCategory({containerId:this.klarnaContainer,paymentMethodCategoryId:this.selectedCategory,onHeightChange:e=>{e>0&&(this.klarnaContainer.style.height=`${e}px`)}})}catch(e){E.errorWithDatadog(\"Failed to render Klarna category\",{error:e})}}selectCategory(e){this.disabled||(this.selectedCategory=e,this.renderSelectedCategory())}updated(e){e.has(\"selectedCategory\")&&this.selectedCategory&&this.renderSelectedCategory()}renderCategorySelection(){let e=this.klarnaCategories?.categories||[];return this.klarnaCategories?.isLoading||!1?p`<div class=\"loading\"><primer-spinner size=\"small\"></primer-spinner></div>`:p`<div class=\"category-selection\">${e.map(i=>p`<button class=${ie({\"category-button\":!0,selected:i.id===this.selectedCategory})} @click=${()=>{this.selectCategory(i.id)}} ?disabled=${this.disabled} >${i.name}</button>`)}</div>`}renderExpandedContent(){return p` ${this.renderCategorySelection()} ${this.selectedCategory?p`<div id=\"klarna-category-container\" class=\"klarna-category-container\" ></div>`:g}<button class=${ie({\"klarna-pay-button\":!0,loading:!!this.sdkState?.isProcessing,disabled:!this.selectedCategory||this.disabled})} ?disabled=${!this.selectedCategory||this.sdkState?.isProcessing||this.disabled} @click=${()=>this.startKlarnaPayment()} >${b(\"confirm\",{id:\"confirm\"})}</button>`}render(){return this._paymentMethodManagerTask.render({error:e=>{let a=e instanceof Error?e.message:\"Unknown error in Klarna\";return p`<div class=\"error\"> Error loading Klarna: ${a}</div>`},complete:({manager:e,klarnaIcon:a})=>e?p`<div class=\"klarna-container ${this.isExpanded?\"expanded\":\"\"}\"><div class=\"klarna-button-header\"><primer-button buttonType=\"button\" variant=\"secondary\" class=\"klarna-button\" @click=${this.toggleExpand} aria-expanded=${this.isExpanded} aria-controls=\"collapsable-content\" aria-label=${this.headerAriaLabel} ?disabled=${this.disabled} ><img src=${a} alt=\"Klarna logo\" /><span>${b(\"pay_with\",{id:\"pay_with\"})} Klarna</span><span class=\"klarna-accordion-icon ${this.isExpanded?\"expanded\":\"\"}\" > ▼ </span></primer-button></div><div class=\"klarna-expanded-content ${this.isExpanded?\"visible\":\"\"}\" ><div class=\"klarna-accordion-content\">${this.renderExpandedContent()}</div></div></div>`:g})}}"
|
|
149
|
+
"default": "class extends v{constructor(){super(...arguments);this.size=\"flex\";this.showCloseButton=!0;this._animationState=\"entering\";this._isVisible=!1;this._handleCloseClick=()=>{this._startExitAnimation()}}startExitAnimation(){this._startExitAnimation()}connectedCallback(){super.connectedCallback(),document.body.style.overflow=\"hidden\",this._startEnterAnimation()}disconnectedCallback(){super.disconnectedCallback(),document.body.style.overflow=\"\",this._animationTimeout&&clearTimeout(this._animationTimeout)}_startEnterAnimation(){this._animationState=\"entering\",this._isVisible=!0,requestAnimationFrame(()=>{this._animationTimeout=window.setTimeout(()=>{this._animationState=\"entered\"},500)})}_startExitAnimation(){this._animationTimeout&&clearTimeout(this._animationTimeout),this._animationState=\"exiting\",this._animationTimeout=window.setTimeout(()=>{this._animationState=\"exited\",this._isVisible=!1,this.dispatchEvent(new CustomEvent(\"primer-dialog-close\",{bubbles:!0,composed:!0}))},500)}render(){return this._isVisible?p`<div class=${oe({backdrop:!0,\"backdrop--entering\":this._animationState===\"entering\",\"backdrop--entered\":this._animationState===\"entered\",\"backdrop--exiting\":this._animationState===\"exiting\"})} @click=${e=>{e.preventDefault()}} ><div class=${oe({dialog:!0,[this.size]:!0,\"dialog--entering\":this._animationState===\"entering\",\"dialog--entered\":this._animationState===\"entered\",\"dialog--exiting\":this._animationState===\"exiting\"})} ><div class=\"header\">${this.showCloseButton?p`<primer-button variant=\"tertiary\" @click=${this._handleCloseClick} ><primer-icon name=\"close\"></primer-icon></primer-button>`:\"\"}</div><div class=\"content\"><slot></slot></div></div></div>`:p``}}"
|
|
184
150
|
},
|
|
185
151
|
{
|
|
186
152
|
"kind": "variable",
|
|
187
|
-
"name": "
|
|
188
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.
|
|
153
|
+
"name": "se",
|
|
154
|
+
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.klarnaCategories=null;this.disabled=!1;this.selectedCategory=null;this.isExpanded=!1;this.headerAriaLabel=b(\"pay_with\",{id:\"pay_with\"});this._paymentMethodManagerTask=new B(this,{task:async([e,a])=>{if(!e||!a)return w;let i=await a.getCDNAssets(\"KLARNA\");return{manager:e.manager,klarnaIcon:i?.assets?.icon?`${i.goatCdnUrl}/${i.assets.icon}`:\"\"}},args:()=>[this.paymentManagers.get(\"KLARNA\"),this.headlessUtils]});this.toggleExpand=()=>{this.disabled||(this.isExpanded=!this.isExpanded,this.isExpanded||(this.selectedCategory=null))}}async startKlarnaPayment(){if(!(!this._paymentMethodManagerTask.value||!this.selectedCategory))try{await this._paymentMethodManagerTask.value.manager.start({paymentMethodCategoryId:this.selectedCategory})}catch(e){T.errorWithDatadog(\"Failed to start Klarna payment\",{error:e})}}async renderSelectedCategory(){if(!(!this._paymentMethodManagerTask.value||!this.selectedCategory||!this.klarnaContainer))try{this.klarnaContainer.innerHTML=\"\",await this._paymentMethodManagerTask.value.manager.renderCategory({containerId:this.klarnaContainer,paymentMethodCategoryId:this.selectedCategory,onHeightChange:e=>{e>0&&(this.klarnaContainer.style.height=`${e}px`)}})}catch(e){T.errorWithDatadog(\"Failed to render Klarna category\",{error:e})}}selectCategory(e){this.disabled||(this.selectedCategory=e,this.renderSelectedCategory())}updated(e){e.has(\"selectedCategory\")&&this.selectedCategory&&this.renderSelectedCategory()}renderCategorySelection(){let e=this.klarnaCategories?.categories||[];return this.klarnaCategories?.isLoading||!1?p`<div class=\"loading\"><primer-spinner size=\"small\"></primer-spinner></div>`:p`<div class=\"category-selection\">${e.map(i=>p`<button class=${oe({\"category-button\":!0,selected:i.id===this.selectedCategory})} @click=${()=>{this.selectCategory(i.id)}} ?disabled=${this.disabled} >${i.name}</button>`)}</div>`}renderExpandedContent(){return p` ${this.renderCategorySelection()} ${this.selectedCategory?p`<div id=\"klarna-category-container\" class=\"klarna-category-container\" ></div>`:y}<button class=${oe({\"klarna-pay-button\":!0,loading:!!this.sdkState?.isProcessing,disabled:!this.selectedCategory||this.disabled})} ?disabled=${!this.selectedCategory||this.sdkState?.isProcessing||this.disabled} @click=${()=>this.startKlarnaPayment()} >${b(\"confirm\",{id:\"confirm\"})}</button>`}render(){return this._paymentMethodManagerTask.render({error:e=>{let a=e instanceof Error?e.message:\"Unknown error in Klarna\";return p`<div class=\"error\"> Error loading Klarna: ${a}</div>`},complete:({manager:e,klarnaIcon:a})=>e?p`<div class=\"klarna-container ${this.isExpanded?\"expanded\":\"\"}\"><div class=\"klarna-button-header\"><primer-button buttonType=\"button\" variant=\"secondary\" class=\"klarna-button\" @click=${this.toggleExpand} aria-expanded=${this.isExpanded} aria-controls=\"collapsable-content\" aria-label=${this.headerAriaLabel} ?disabled=${this.disabled} ><img src=${a} alt=\"Klarna logo\" /><span>${b(\"pay_with\",{id:\"pay_with\"})} Klarna</span><span class=\"klarna-accordion-icon ${this.isExpanded?\"expanded\":\"\"}\" > ▼ </span></primer-button></div><div class=\"klarna-expanded-content ${this.isExpanded?\"visible\":\"\"}\" ><div class=\"klarna-accordion-content\">${this.renderExpandedContent()}</div></div></div>`:y})}}"
|
|
189
155
|
},
|
|
190
156
|
{
|
|
191
157
|
"kind": "variable",
|
|
192
158
|
"name": "Je",
|
|
193
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.
|
|
159
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"GOOGLE_PAY\")throw new Error(\"Invalid payment method type for Google Pay component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=e.createButton();return await a.render(this.shadowRoot?.getRootNode(),{style:{shadowRoot:!0}}),this.disabled&&await a.setDisabled(this.disabled),this.disabled&&this.shadowRoot&&(await this.updateComplete,_r(this.disabled,this.shadowRoot)),a}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&this.shadowRoot&&_r(this.disabled,this.shadowRoot)}render(){return y}}"
|
|
194
160
|
},
|
|
195
161
|
{
|
|
196
162
|
"kind": "variable",
|
|
197
163
|
"name": "Ze",
|
|
198
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=
|
|
164
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Gt();this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"APPLE_PAY\")throw new Error(\"Invalid payment method type for Apple Pay component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.buttonContainerRef.value;if(!a)throw new Error(\"Button container not found\");let i=e.createButton(),n=Dr(a);return await i.render(a,{style:{buttonHeight:n}}),this.disabled&&await i.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,Xt(this.disabled,this.buttonContainerRef)),i}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&Xt(this.disabled,this.buttonContainerRef)}render(){return p`<div class=\"native-button-container\" ${Ct(this.buttonContainerRef)} ></div>`}}"
|
|
199
165
|
},
|
|
200
166
|
{
|
|
201
167
|
"kind": "variable",
|
|
202
|
-
"name": "
|
|
203
|
-
"default": "class extends v{constructor(){super(
|
|
168
|
+
"name": "qe",
|
|
169
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Gt();this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"PAYPAL\")throw new Error(\"Invalid payment method type for PayPal component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.buttonContainerRef.value;if(!a)throw new Error(\"Button container not found\");let i=e.createButton(),n=Dr(this);return await i.render(a,{style:{buttonHeight:String(n)}}),this.disabled&&await i.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,Xt(this.disabled,this.buttonContainerRef)),i}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&Xt(this.disabled,this.buttonContainerRef)}render(){return p`<div class=\"native-button-container\" ${Ct(this.buttonContainerRef)} ></div>`}}"
|
|
204
170
|
},
|
|
205
171
|
{
|
|
206
172
|
"kind": "variable",
|
|
207
|
-
"name": "
|
|
208
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
173
|
+
"name": "Ae",
|
|
174
|
+
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.currentState=\"collapsed\";this.blikCode=\"\";this.errorMessage=\"\";this.pollingDuration=0;this.pollingTimer=null;this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(\"BLIK payment method manager not initialized\");if(a.type!==\"ADYEN_BLIK\")throw new Error(\"Invalid payment method type for BLIK component\");return a.manager}});this.handleButtonClick=async()=>{if(this.disabled)return;if(this.currentState===\"expanded-input\"){this.handleCollapse();return}if(this.currentState!==\"collapsed\")return;let e=this.paymentMethod?.type;if(!e){this.errorMessage=b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",T.error(\"Payment method type not available\");return}let a=this.paymentManagers.get(e);if(!a||a.type!==\"ADYEN_BLIK\"){this.errorMessage=b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",T.error(\"Manager not available when expanding BLIK form\");return}this.currentState=\"expanded-input\",await this.updateComplete,this.shadowRoot?.querySelector(\"#blik-code\")?.focus()};this.handleCollapse=()=>{this.currentState=\"collapsed\",this.blikCode=\"\",this.errorMessage=\"\",this.stopPollingTimer()};this.handleInput=e=>{let a=e.target,i=a.value,o=i.replace(/\\D/g,\"\").slice(0,6);i!==o&&(a.value=o),this.blikCode=o,this.currentState===\"error\"&&(this.currentState=\"expanded-input\",this.errorMessage=\"\"),o.length===6&&this.submitBlikCode()};this.handleRetry=async()=>{this.currentState=\"expanded-input\",this.errorMessage=\"\",this.blikCode=\"\",await this.updateComplete,this.shadowRoot?.querySelector(\"#blik-code\")?.focus()}}startPollingTimer(){this.pollingDuration=0,this.pollingTimer=window.setInterval(()=>{this.pollingDuration+=1},1e3)}stopPollingTimer(){this.pollingTimer!==null&&(window.clearInterval(this.pollingTimer),this.pollingTimer=null),this.pollingDuration=0}async submitBlikCode(){if(this.blikCode.length!==6){this.errorMessage=b(\"sixDigitCodeErrorTooShort\",{id:\"sixDigitCodeErrorTooShort\"}),this.currentState=\"error\";return}let e=this.loadManagerTask.value;if(!e){this.errorMessage=\"BLIK payment method not initialized\",this.currentState=\"error\",T.error(\"BLIK manager not available via loadManagerTask\");return}this.currentState=\"loading\",this.errorMessage=\"\",this.startPollingTimer();try{await e.start({blikCode:this.blikCode}),this.stopPollingTimer(),this.currentState=\"collapsed\",this.blikCode=\"\"}catch(a){this.stopPollingTimer(),this.currentState=\"error\",this.errorMessage=a instanceof Error?a.message:b(\"tokenizationError\",{id:\"tokenizationError\"}),T.errorWithDatadog(\"BLIK payment failed\",{error:a instanceof Error?{message:a.message,name:a.name}:\"Unknown error\"})}}renderCollapsed(){return p`<primer-button class=\"blik-button\" @click=${this.handleButtonClick} ?disabled=${this.disabled} aria-label=\"${b(\"pay_with\",{id:\"pay_with\"})} BLIK\" aria-expanded=\"${this.currentState!==\"collapsed\"}\" title=\"BLIK\" ><span class=\"image-container\"><img src=\"https://goat-assets.production.core.primer.io/button/blik/inverted.png\" alt=\"BLIK\" /></span></primer-button>`}renderExpandedInput(){return p`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-input-wrapper\"><label for=\"blik-code\" class=\"blik-label\">${b(\"getCodeFromBankingApp\",{id:\"getCodeFromBankingApp\"})}</label><input id=\"blik-code\" type=\"text\" inputmode=\"numeric\" pattern=\"[0-9]*\" maxlength=\"6\" class=\"blik-input\" .value=\"${this.blikCode}\" @input=\"${this.handleInput}\" ?disabled=\"${this.disabled}\" placeholder=\"000000\" aria-label=\"${b(\"sixDigitCodeLabel\",{id:\"sixDigitCodeLabel\"})}\" autocomplete=\"off\" spellcheck=\"false\" /></div></div></div>`}renderLoading(){return p`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-loading\"><primer-spinner size=\"medium\"></primer-spinner>${this.pollingDuration>30?p`<div class=\"blik-timeout-warning\"> This is taking longer than expected... </div>`:y}</div></div></div>`}renderError(){return p`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-error\"><div class=\"blik-error-message\" role=\"alert\">${this.errorMessage||b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}</div><button class=\"blik-retry-button\" @click=\"${this.handleRetry}\" ?disabled=\"${this.disabled}\" >${b(\"retry_button\",{id:\"retry_button\"})}</button></div></div></div>`}renderExpandedState(){switch(this.currentState){case\"expanded-input\":return this.renderExpandedInput();case\"loading\":return this.renderLoading();case\"error\":return this.renderError();default:return y}}disconnectedCallback(){super.disconnectedCallback(),this.stopPollingTimer()}render(){return p`<div class=\"blik-container ${this.currentState!==\"collapsed\"?\"expanded\":\"\"}\" >${this.renderCollapsed()} ${this.currentState!==\"collapsed\"?this.renderExpandedState():y}</div>`}}"
|
|
209
175
|
},
|
|
210
176
|
{
|
|
211
177
|
"kind": "variable",
|
|
212
|
-
"name": "
|
|
213
|
-
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentMethods=null;this.
|
|
178
|
+
"name": "Oe",
|
|
179
|
+
"default": "class extends v{constructor(){super(...arguments);this.type=void 0;this.disabled=!1;this.paymentMethods=null;this.analyticsUtils=null;this.handleClick=()=>{this.paymentMethods?.get(this.type)?.managerType!==\"CARD\"&&this.sendPaymentMethodSelectionEvent()}}sendPaymentMethodSelectionEvent(){this.type&&Z({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:this.type})}render(){if(!this.type)return y;let e=this.paymentMethods?.get(this.type);if(!e)return y;let a;switch(e?.managerType){case\"CARD\":a=p`<primer-card-form ?disabled=${this.disabled} ></primer-card-form>`;break;case\"NATIVE\":{let i=e.type;i===Pa.GOOGLE_PAY?a=p`<primer-google-pay .paymentMethod=${e} ?disabled=${this.disabled} ></primer-google-pay>`:i===Pa.APPLE_PAY?a=p`<primer-apple-pay .paymentMethod=${e} ?disabled=${this.disabled} ></primer-apple-pay>`:i===Pa.PAYPAL?a=p`<primer-paypal .paymentMethod=${e} ?disabled=${this.disabled} ></primer-paypal>`:i===Pa.ADYEN_BLIK&&(a=p`<primer-blik .paymentMethod=${e} ?disabled=${this.disabled} ></primer-blik>`);break}case\"REDIRECT\":a=p`<primer-redirect-payment .paymentMethod=${e} ?disabled=${this.disabled} ></primer-redirect-payment>`;break;case\"KLARNA\":a=p`<primer-klarna ?disabled=${this.disabled} ></primer-klarna>`;break;case\"ACH\":a=p`<primer-dynamic-payment .paymentMethod=${e} ></primer-dynamic-payment>`;break;default:return y}return p`<div @click=${this.handleClick}>${a}</div>`}}"
|
|
214
180
|
},
|
|
215
181
|
{
|
|
216
182
|
"kind": "variable",
|
|
217
|
-
"name": "
|
|
218
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
183
|
+
"name": "Re",
|
|
184
|
+
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentMethods=null;this.clientOptions=null}getFilteredMethods(){if(!this.paymentMethods)return[];let e=this.paymentMethods.toArray();if(this.include){let a=this.include.split(\",\").map(i=>i.trim());e=e.filter(i=>a.includes(i.type))}if(this.exclude){let a=this.exclude.split(\",\").map(i=>i.trim());e=e.filter(i=>!a.includes(i.type))}return e}render(){let e=this.getFilteredMethods();return e.length===0?y:p`<div class=\"payment-methods-container\">${e.map(a=>p`<primer-payment-method type=\"${a.type}\" ?disabled=\"${this.disabled||this.clientOptions?.disabledPayments===!0}\" ></primer-payment-method>`)}</div>`}}"
|
|
219
185
|
},
|
|
220
186
|
{
|
|
221
187
|
"kind": "variable",
|
|
222
|
-
"name": "
|
|
223
|
-
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=
|
|
188
|
+
"name": "Pe",
|
|
189
|
+
"default": "class extends v{constructor(){super(...arguments);this.formController=new Br(this,e=>this._paymentMethodManagerTask.value.setAndValidate(e));this.paymentManagers=new Map;this.sdkState=void 0;this.clientOptions=void 0;this.screen=\"form\";this.isSubmitting=!1;this._paymentMethodManagerTask=new B(this,{task:([e])=>e!==\"STRIPE_ACH\"?w:this.paymentManagers.get(e)?.manager,args:()=>[this.paymentMethod?.type]})}_handleInput(e,a){let i=e.target;this.formController.setFieldValue(a,i.value)}_handleBlur(e){this.formController.setFieldTouched(e)}_handleError(e){this.dispatchEvent(new CustomEvent(\"primer-ach-error\",{bubbles:!0,composed:!0,detail:{error:e instanceof Error?e:new Error(typeof e==\"string\"?e:\"Unknown error occurred\")}}))}async _handleSubmitButtonClick(e){if(!this.isSubmitting){this.isSubmitting=!0;try{let a=await e.start(this.formController.formData);if(!a||a.valid)return await this._handleCollectBankAccountDetails(e);a&&this.formController.setValidation(a,!0)}catch(a){this._handleError(a)}finally{this.isSubmitting=!1}}}async _handleCollectBankAccountDetails(e){try{await e.collectBankAccountDetails(),this.screen=\"mandate\",this.dispatchEvent(new CustomEvent(\"primer-ach-bank-details-collected\",{bubbles:!0,composed:!0}))}catch(a){this._handleError(a)}}async _handleConfirmMandate(){if(this._paymentMethodManagerTask.value){this.isSubmitting=!0;try{await this._paymentMethodManagerTask.value.confirmMandate(),this.dispatchEvent(new CustomEvent(\"primer-ach-mandate-confirmed\",{bubbles:!0,composed:!0}))}catch(e){this._handleError(e)}finally{this.isSubmitting=!1}}}async _handleDeclineMandate(){if(this._paymentMethodManagerTask.value){this.isSubmitting=!0;try{await this._paymentMethodManagerTask.value.declineMandate(),this.dispatchEvent(new CustomEvent(\"primer-ach-mandate-declined\",{bubbles:!0,composed:!0}))}catch(e){this._handleError(e)}finally{this.isSubmitting=!1}}}renderForm(e){return p`<h2>${b(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${b(\"stripe_ach_user_details_collection_subtitle_label\",{id:\"stripe_ach_user_details_collection_subtitle_label\"})}</p><form @submit=${a=>a.preventDefault()}><div class=\"form-row\"><primer-input-wrapper .hasError=${this.formController.hasError.firstName} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_first_name_label\",{id:\"stripe_ach_user_details_collection_first_name_label\"})}</primer-input-label><primer-input slot=\"input\" .value=${this.formController.formState.firstName.value} @input=${a=>this._handleInput(a,\"firstName\")} @blur=${()=>this._handleBlur(\"firstName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.firstName?this.formController.formState.firstName.error:y}</primer-input-error></primer-input-wrapper><primer-input-wrapper .hasError=${this.formController.hasError.lastName} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_last_name_label\",{id:\"stripe_ach_user_details_collection_last_name_label\"})}</primer-input-label><primer-input slot=\"input\" .value=${this.formController.formState.lastName.value} @input=${a=>this._handleInput(a,\"lastName\")} @blur=${()=>this._handleBlur(\"lastName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.lastName?this.formController.formState.lastName.error:y}</primer-input-error></primer-input-wrapper></div><primer-input-wrapper .hasError=${this.formController.hasError.emailAddress} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_email_address_label\",{id:\"stripe_ach_user_details_collection_email_address_label\"})}</primer-input-label><primer-input slot=\"input\" type=\"email\" .value=${this.formController.formState.emailAddress.value} @input=${a=>this._handleInput(a,\"emailAddress\")} @blur=${()=>this._handleBlur(\"emailAddress\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.emailAddress?this.formController.formState.emailAddress.error:y}</primer-input-error></primer-input-wrapper><p>${b(\"stripe_ach_user_details_collection_data_usage_label\",{id:\"stripe_ach_user_details_collection_data_usage_label\"})}</p><primer-button buttonType=\"submit\" variant=\"primary\" @click=${()=>this._handleSubmitButtonClick(e)} ?disabled=${this.isSubmitting} ?loading=${this.isSubmitting} >${b(\"stripe_ach_user_details_collection_continue_button\",{id:\"stripe_ach_user_details_collection_continue_button\"})}</primer-button></form>`}renderMandate(){return p`<h2>${b(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${this.clientOptions?.stripe?.mandateData.fullMandateText??b(\"stripe_ach_mandate_template_web\",{id:\"stripe_ach_mandate_template_web\"}).replace(/\\{merchantName\\}/g,this.clientOptions?.stripe?.mandateData.merchantName??\"Merchant\")}</p><div class=\"button-group\"><primer-button variant=\"primary\" @click=${this._handleConfirmMandate.bind(this)} ?disabled=${this.isSubmitting} ?loading=${this.isSubmitting} >${b(\"stripe_ach_mandate_accept_button\",{id:\"stripe_ach_mandate_accept_button\"})}</primer-button><primer-button variant=\"tertiary\" @click=${this._handleDeclineMandate.bind(this)} ?disabled=${this.isSubmitting} >${b(\"stripe_ach_mandate_cancel_payment_button\",{id:\"stripe_ach_mandate_cancel_payment_button\"})}</primer-button></div>`}render(){return this._paymentMethodManagerTask.render({complete:e=>e?this.screen===\"form\"?this.renderForm(e):this.renderMandate():y})}}"
|
|
224
190
|
},
|
|
225
191
|
{
|
|
226
192
|
"kind": "variable",
|
|
227
193
|
"name": "xe",
|
|
228
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
194
|
+
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.open=!1;this._paymentMethodManagerTask=new B(this,{task:([e,a])=>!e||!a?w:a.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new B(this,{task:([e,a])=>{if(!e||!a)return w;let i=a.getPaymentMethodConfiguration(e);return i?{backgroundColor:i.displayMetadata.button.backgroundColor.colored,name:i.name,displayName:this._legacyGetButtonLabel(i.displayMetadata.button.text),iconUrl:i.displayMetadata.button.iconUrl.colored||i.displayMetadata.button.iconUrl.light||i.displayMetadata.button.iconUrl.dark}:w},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new B(this,{task:([e,a])=>!e||!a?w:{paymentMethodManager:e,assetsConfig:a},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let a=e?ka(e):\"\";return a===\"payWith\"&&(a=\"pay_with\"),b(a,{id:a})}start(){this._paymentMethodManagerTask.value&&(this.open=!0)}renderDialog(){return this.open?p`<primer-portal><primer-dialog @primer-dialog-close=\"${()=>this.open=!1}\"><primer-ach-payment .paymentMethod=${this.paymentMethod} @primer-ach-error=${()=>this.open=!1} @primer-ach-mandate-confirmed=${()=>this.open=!1} @primer-ach-mandate-declined=${()=>this.open=!1} ></primer-ach-payment></primer-dialog></primer-portal>`:y}render(){return this._setupTasks.render({error:()=>y,complete:({assetsConfig:e})=>(this.style.setProperty(\"--dynamic-payment-button-bg-color\",e.backgroundColor),p`<primer-button @click=\"${()=>this.start()}\" class=${oe({loading:!!this.sdkState?.isProcessing,reverse:!0})} title=\"${b(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ><span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>${e.displayName}</primer-button>${this.renderDialog()} `)})}}"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"kind": "variable",
|
|
198
|
+
"name": "_e",
|
|
199
|
+
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this._paymentMethodManagerTask=new B(this,{task:([e,a])=>!e||!a?w:a.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new B(this,{task:([e,a])=>{if(!e||!a)return w;let i=a.getPaymentMethodConfiguration(e);if(!i)return w;let n=i.displayMetadata.button.backgroundColor.colored??i.displayMetadata.button.backgroundColor.light,o=i.displayMetadata.button.iconPositionRelativeToText||\"START\";return{backgroundColor:n,name:i.name,displayName:this._legacyGetButtonLabel(i.displayMetadata.button.text),iconUrl:i.displayMetadata.button.iconUrl.colored??i.displayMetadata.button.iconUrl.light,iconPosition:o}},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new B(this,{task:([e,a])=>!e||!a?w:{paymentMethodManager:e,assetsConfig:a},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let a=e?ka(e):\"\";return a===\"payWith\"&&(a=\"pay_with\"),b(a,{id:a})}startRedirectPayment(){this.disabled||this._paymentMethodManagerTask.value&&this._paymentMethodManagerTask.value.start()}render(){return this._setupTasks.render({error:()=>y,complete:({assetsConfig:e})=>{this.style.setProperty(\"--redirect-payment-button-bg-color\",e.backgroundColor);let a={loading:!!this.sdkState?.isProcessing,\"icon-end\":e.iconPosition===\"END\",\"image-only\":!e.displayName},i=e.displayName?p`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span><span class=\"button-text\">${e.displayName}</span>`:p`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>`;return p`<primer-button @click=\"${()=>this.startRedirectPayment()}\" class=${oe(a)} title=\"${b(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ?disabled=${this.disabled} >${i}</primer-button>`}})}}"
|
|
229
200
|
},
|
|
230
201
|
{
|
|
231
202
|
"kind": "variable",
|
|
232
|
-
"name": "
|
|
233
|
-
"default": "class extends v{constructor(){super(...arguments);this.configuration=null;this.headlessUtils=null;this.formData={};this.errors={};this.touchedFields=new Set;this.dirtyFields=new Set;this.focusedField=null;this.submitted=!1;this.countryOptions=[];this._initializationTask=new
|
|
203
|
+
"name": "le",
|
|
204
|
+
"default": "class extends v{constructor(){super(...arguments);this.configuration=null;this.headlessUtils=null;this.formData={};this.errors={};this.touchedFields=new Set;this.dirtyFields=new Set;this.focusedField=null;this.submitted=!1;this.countryOptions=[];this._initializationTask=new B(this,{task:async([e,a])=>{if(!e||!a)return w;let i=this.extractFieldConfig(e);return await this.initializeCountryOptions(),i},args:()=>[this.configuration,this.headlessUtils]})}connectedCallback(){super.connectedCallback(),this._initializationTask.value}extractFieldConfig(e){if(e?.checkoutModules){let a=e.checkoutModules.find(i=>i.type===\"BILLING_ADDRESS\");if(a?.options){let i=a.options;return Object.keys(on).reduce((n,o)=>({...n,[o]:i[o]??!1}),{})}}return this.defaultFieldConfig}async initializeCountryOptions(){try{let e=nn(\"en\");this.countryOptions=[...e.map(([n,o])=>({value:n,label:o}))],this.requestUpdate(\"countryOptions\");let a=Gi();if(a===\"en\"||a===\"en-GB\"||a.startsWith(\"en-\"))return;if(await Bl(a)){let n=nn(a);this.countryOptions=[...n.map(([o,s])=>({value:o,label:s}))],this.requestUpdate(\"countryOptions\")}}catch(e){T.errorWithDatadog(\"Failed to load country locale\",{error:e})}}get fieldConfig(){return this.extractFieldConfig(this.configuration)}get defaultFieldConfig(){return Object.keys(on).reduce((e,a)=>({...e,[a]:!1}),{})}get shouldShowForm(){return this.fieldConfig.postalCode}handleInput(e,a){this.formData={...this.formData,[e]:a},this.dirtyFields.add(e),(this.submitted||this.dirtyFields.has(e)&&this.touchedFields.has(e))&&this.validateField(e),this.dispatchEvent(new CustomEvent(\"primer-billing-address-change\",{detail:this.formData,bubbles:!0,composed:!0}))}handleFocus(e){this.focusedField=e}handleBlur(e){this.focusedField=null,this.touchedFields.add(e),this.validateField(e)}validateField(e){let a=this.formData[e],i=this.fieldConfig[e];if(!i){delete this.errors[e];return}if(i&&(!a||a.trim()===\"\")){let n=`${e}ErrorRequired`;this.errors={...this.errors,[e]:b(\"This field is required\",{id:n})}}else{let n={...this.errors};delete n[e],this.errors=n}}validateForm(){return Object.keys(on).forEach(e=>{let a=e;this.fieldConfig[a]&&this.validateField(a)}),Object.keys(this.errors).length===0}async validateForSubmission(){if(!this.shouldShowForm)return!0;this.submitted=!0,Object.keys(this.fieldConfig).forEach(a=>{this.fieldConfig[a]&&this.touchedFields.add(a)});let e=this.validateForm();return this.requestUpdate(),await this.updateComplete,e}async submitToSDK(){if(this.headlessUtils?.setBillingAddress)try{return await this.headlessUtils.setBillingAddress(this.formData),this.dispatchEvent(new CustomEvent(\"primer-billing-address-submit\",{detail:this.formData,bubbles:!0,composed:!0})),!0}catch(e){return T.errorWithDatadog(\"Failed to set billing address\",{error:e}),!1}return!0}shouldShowError(e){let a=!!this.errors[e],i=this.dirtyFields.has(e),n=this.touchedFields.has(e);return a&&(this.submitted||i&&n)}render(){return this._initializationTask.render({pending:()=>y,error:()=>y,complete:()=>this.shouldShowForm?(this.removeAttribute(\"hidden\"),p`<div class=\"billing-address-form\"><div class=\"billing-address-title\">${b(\"Billing address\",{id:\"billingAddressLabel\"})}</div>${R(this.fieldConfig.countryCode,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"countryCode\"} .hasError=${this.shouldShowError(\"countryCode\")} ><primer-input-label slot=\"label\">${b(\"Country code\",{id:\"countryCodeLabel\"})}</primer-input-label><primer-select slot=\"input\" id=\"countryCode\" name=\"countryCode\" .value=${this.formData.countryCode||\"\"} .options=${this.countryOptions} .hasError=${this.shouldShowError(\"countryCode\")} placeholder=${b(\"Select a country\",{id:\"countrySelectPlaceholder\"})} @input=${e=>this.handleInput(\"countryCode\",e.detail)} @focus=${()=>this.handleFocus(\"countryCode\")} @blur=${()=>this.handleBlur(\"countryCode\")} ></primer-select>${R(this.shouldShowError(\"countryCode\"),()=>p`<primer-input-error slot=\"error\">${this.errors.countryCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.firstName||this.fieldConfig.lastName,()=>p`<div class=\"billing-address-row\">${R(this.fieldConfig.firstName,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"firstName\"} .hasError=${this.shouldShowError(\"firstName\")} ><primer-input-label slot=\"label\">${b(\"First name\",{id:\"firstNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"firstName\" name=\"firstName\" type=\"text\" .value=${this.formData.firstName||\"\"} placeholder=${b(\"First name\",{id:\"firstNamePlaceholder\"})} @input=${e=>this.handleInput(\"firstName\",e.detail)} @focus=${()=>this.handleFocus(\"firstName\")} @blur=${()=>this.handleBlur(\"firstName\")} ></primer-input>${R(this.shouldShowError(\"firstName\"),()=>p`<primer-input-error slot=\"error\">${this.errors.firstName}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.lastName,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"lastName\"} .hasError=${this.shouldShowError(\"lastName\")} ><primer-input-label slot=\"label\">${b(\"Last name\",{id:\"lastNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"lastName\" name=\"lastName\" type=\"text\" .value=${this.formData.lastName||\"\"} placeholder=${b(\"Last name\",{id:\"lastNamePlaceholder\"})} @input=${e=>this.handleInput(\"lastName\",e.detail)} @focus=${()=>this.handleFocus(\"lastName\")} @blur=${()=>this.handleBlur(\"lastName\")} ></primer-input>${R(this.shouldShowError(\"lastName\"),()=>p`<primer-input-error slot=\"error\">${this.errors.lastName}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${R(this.fieldConfig.addressLine1,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine1\"} .hasError=${this.shouldShowError(\"addressLine1\")} ><primer-input-label slot=\"label\">${b(\"Address line 1\",{id:\"addressLine1\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine1\" name=\"addressLine1\" type=\"text\" .value=${this.formData.addressLine1||\"\"} placeholder=${b(\"Address line 1\",{id:\"addressLine1Placeholder\"})} @input=${e=>this.handleInput(\"addressLine1\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine1\")} @blur=${()=>this.handleBlur(\"addressLine1\")} ></primer-input>${R(this.shouldShowError(\"addressLine1\"),()=>p`<primer-input-error slot=\"error\">${this.errors.addressLine1}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.addressLine2,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine2\"} .hasError=${this.shouldShowError(\"addressLine2\")} ><primer-input-label slot=\"label\">${b(\"Address line 2\",{id:\"addressLine2\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine2\" name=\"addressLine2\" type=\"text\" .value=${this.formData.addressLine2||\"\"} placeholder=${b(\"Address line 2\",{id:\"addressLine2Placeholder\"})} @input=${e=>this.handleInput(\"addressLine2\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine2\")} @blur=${()=>this.handleBlur(\"addressLine2\")} ></primer-input>${R(this.shouldShowError(\"addressLine2\"),()=>p`<primer-input-error slot=\"error\">${this.errors.addressLine2}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.postalCode||this.fieldConfig.city,()=>p`<div class=\"billing-address-row\">${R(this.fieldConfig.postalCode,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"postalCode\"} .hasError=${this.shouldShowError(\"postalCode\")} ><primer-input-label slot=\"label\">${b(\"Postal code\",{id:\"postalCodeLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"postalCode\" name=\"postalCode\" type=\"text\" .value=${this.formData.postalCode||\"\"} placeholder=${b(\"90210\",{id:\"postalCodePlaceholder\"})} @input=${e=>this.handleInput(\"postalCode\",e.detail)} @focus=${()=>this.handleFocus(\"postalCode\")} @blur=${()=>this.handleBlur(\"postalCode\")} ></primer-input>${R(this.shouldShowError(\"postalCode\"),()=>p`<primer-input-error slot=\"error\">${this.errors.postalCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.city,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"city\"} .hasError=${this.shouldShowError(\"city\")} ><primer-input-label slot=\"label\">${b(\"City\",{id:\"cityLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"city\" name=\"city\" type=\"text\" .value=${this.formData.city||\"\"} placeholder=${b(\"Cape Town\",{id:\"cityPlaceholder\"})} @input=${e=>this.handleInput(\"city\",e.detail)} @focus=${()=>this.handleFocus(\"city\")} @blur=${()=>this.handleBlur(\"city\")} ></primer-input>${R(this.shouldShowError(\"city\"),()=>p`<primer-input-error slot=\"error\">${this.errors.city}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${R(this.fieldConfig.state,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"state\"} .hasError=${this.shouldShowError(\"state\")} ><primer-input-label slot=\"label\">${b(\"State / Region / County\",{id:\"stateLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"state\" name=\"state\" type=\"text\" .value=${this.formData.state||\"\"} placeholder=${b(\"State / Region / County\",{id:\"statePlaceholder\"})} @input=${e=>this.handleInput(\"state\",e.detail)} @focus=${()=>this.handleFocus(\"state\")} @blur=${()=>this.handleBlur(\"state\")} ></primer-input>${R(this.shouldShowError(\"state\"),()=>p`<primer-input-error slot=\"error\">${this.errors.state}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`):(this.setAttribute(\"hidden\",\"\"),y)})}}"
|
|
234
205
|
},
|
|
235
206
|
{
|
|
236
207
|
"kind": "variable",
|
|
237
|
-
"name": "
|
|
238
|
-
"default": "class extends v{constructor(){super();this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.contextEventsController=null;this.hasSlottedSubmit=!1;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this._isHandlingContextEvent=!1;this._contextVaultSubmitListener=null;this.deleteAssetConfig=null;this.handleSubmitSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedSubmit=i.length>0};this.handleToggleEditMode=e=>{this.isEditMode=e.detail,this.deletePaymentMethodId=null,this.isEditMode&&this.vaultItemContext&&this.vaultItemContext.setSelectedVaultedPaymentMethod(null)};this.handleDeletePaymentMethod=async e=>{if(this.deletePaymentMethodId=e.detail,this.deletePaymentMethodId&&this.vaultManagerContext&&this.headlessUtils){let a=this.vaultManagerContext.vaultedPaymentMethods.find(i=>i.id===this.deletePaymentMethodId);a&&(this.deleteAssetConfig=await
|
|
208
|
+
"name": "q",
|
|
209
|
+
"default": "class extends v{constructor(){super();this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.contextEventsController=null;this.hasSlottedSubmit=!1;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this._isHandlingContextEvent=!1;this._contextVaultSubmitListener=null;this.deleteAssetConfig=null;this.handleSubmitSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedSubmit=i.length>0};this.handleToggleEditMode=e=>{this.isEditMode=e.detail,this.deletePaymentMethodId=null,this.isEditMode&&this.vaultItemContext&&this.vaultItemContext.setSelectedVaultedPaymentMethod(null)};this.handleDeletePaymentMethod=async e=>{if(this.deletePaymentMethodId=e.detail,this.deletePaymentMethodId&&this.vaultManagerContext&&this.headlessUtils){let a=this.vaultManagerContext.vaultedPaymentMethods.find(i=>i.id===this.deletePaymentMethodId);a&&(this.deleteAssetConfig=await Gr(a,this.headlessUtils,this.vaultManagerContext))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.vaultManagerContext?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"});return}try{this.isDeleting=!0,await this.vaultManagerContext.deleteVaultedPaymentMethod(this.deletePaymentMethodId),this.deletePaymentMethodId=null,this.deleteAssetConfig=null}catch(e){this.errorMessage=e instanceof Error?e.message:b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}finally{this.isDeleting=!1}};this.handlePaymentError=e=>{let a=e.detail?.error;this.errorMessage=a instanceof Error?a.message:b(\"payment_processing_error\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isSubmitButton(n)&&(e.preventDefault(),this.submitVaultPayment())};this.handleDirectSubmit=()=>{this.submitVaultPayment()};this.handleContextVaultSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitVaultPayment())}finally{this._isHandlingContextEvent=!1}}};new ea(this,{defaultOptions:{keyframeOptions:{duration:Number(getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-duration\").trim().replace(\"ms\",\"\")),easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim()}}})}getAnimationConfig(){return{keyframeOptions:{duration:this.animationDuration,easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim(),fill:\"both\"}}}isSubmitButton(e){let a=e.tagName.toLowerCase(),i=a===\"button\",n=a===\"primer-button\";return i&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||n&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitVaultPayment(){if(this.vaultManagerContext)try{await this.vaultManagerContext.startVaultedPaymentFlow()}catch(e){this.dispatchEvent(new CustomEvent(\"primer-vault-payment-error\",{detail:{error:e},bubbles:!0,composed:!0}))}}getPaymentMethodName(e){if(!this.vaultManagerContext)return\"\";let a=this.vaultManagerContext.vaultedPaymentMethods.find(i=>i.id===e);if(!a)return\"\";try{return sn(a).description||\"\"}catch{return\"\"}}setupContextEventListeners(){this.contextEventsController?.host&&this._contextVaultSubmitListener&&this.contextEventsController.host.addEventListener(\"primer:vault-submit\",this._contextVaultSubmitListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextVaultSubmitListener&&this.contextEventsController.host.removeEventListener(\"primer:vault-submit\",this._contextVaultSubmitListener)}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:vault-submit\",this.handleDirectSubmit),this._contextVaultSubmitListener=e=>{this.handleContextVaultSubmit(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:vault-submit\",this.handleDirectSubmit),this.cleanupContextEventListeners(),super.disconnectedCallback()}renderLoadingOverlay(){return p`<div class=\"loading-overlay\" ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ><primer-spinner size=\"medium\" color=\"var(--primer-color-loader)\" ></primer-spinner></div>`}renderDeleteConfirmation(){if(!this.deletePaymentMethodId||!this.deleteAssetConfig)return y;let e=this.getPaymentMethodName(this.deletePaymentMethodId);return p`<div class=\"delete-confirmation-container\"><primer-button disabled variant=\"secondary\"><primer-payment-method-content .assetConfig=${this.deleteAssetConfig} ></primer-payment-method-content></primer-button><primer-vault-delete-confirmation .isDeleting=${this.isDeleting} .paymentMethodId=${this.deletePaymentMethodId} .paymentMethodName=${e} @confirm-delete=${this.handleConfirmDelete} @cancel-delete=${this.handleCancelDelete} ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-delete-confirmation></div>`}renderPaymentMethodItem(e){return this.deletePaymentMethodId===e.id?y:p`<primer-vault-payment-method-item .paymentMethod=${e} .isEditMode=${this.isEditMode} @delete-payment-method=${this.handleDeletePaymentMethod} ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-payment-method-item>`}renderPaymentMethodList(){let e=this.vaultManagerContext?.vaultedPaymentMethods||[],a=!this.isEditMode&&e.length>0&&!this.deletePaymentMethodId;return p`<div class=\"payment-methods-list\">${e.map(i=>this.renderPaymentMethodItem(i))} ${R(a,()=>p`<div class=\"submit-button-container\"><slot name=\"submit-button\" @slotchange=${this.handleSubmitSlotChange} ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></slot>${R(!this.hasSlottedSubmit,()=>p`<primer-vault-payment-submit class=\"submit-button\" @primer-vault-payment-error=${this.handlePaymentError} ></primer-vault-payment-submit>`)}</div>`,()=>y)}</div>`}render(){if(!this.vaultManagerContext?.enabled||this.vaultManagerContext?.headless)return y;let e=this.vaultManagerContext.vaultedPaymentMethods.length>0,a=this.vaultManagerContext.isLoading,i=this.vaultManagerContext.isUpdating;return p` ${R(!this.vaultManagerContext?.showEmptyState&&!e,()=>y,()=>p`<slot name=\"vault-empty-state\"><div class=\"vault-manager ${i?\"is-updating\":\"\"}\"><primer-vault-manager-header .isEditMode=${this.isEditMode} .hasPaymentMethods=${e} @toggle-edit-mode=${this.handleToggleEditMode} ></primer-vault-manager-header>${R(this.errorMessage,()=>p`<primer-vault-error-message .errorMessage=${this.errorMessage} @close-error=${this.handleCloseError} ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-error-message>`,()=>y)}<div class=\"vault-manager-content\">${R(!a&&!e,()=>p`<div class=\"content-container\"><primer-vault-empty-state ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-empty-state></div>`,()=>y)} ${R(!a&&e,()=>p`<div class=\"content-container\">${R(this.deletePaymentMethodId,()=>this.renderDeleteConfirmation(),()=>this.renderPaymentMethodList())}</div>`,()=>y)}</div>${R(i,()=>this.renderLoadingOverlay(),()=>y)}</div></slot>`)} `}}"
|
|
239
210
|
},
|
|
240
211
|
{
|
|
241
212
|
"kind": "variable",
|
|
242
213
|
"name": "Ce",
|
|
243
|
-
"default": "class extends v{constructor(){super(...arguments);this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.paymentMethod=null;this.isEditMode=!1;this._getAssetsTask=new
|
|
214
|
+
"default": "class extends v{constructor(){super(...arguments);this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.paymentMethod=null;this.isEditMode=!1;this._getAssetsTask=new B(this,{task:async([e,a,i])=>await Gr(e,a,i),args:()=>[this.paymentMethod,this.headlessUtils,this.vaultManagerContext]});this.handleClick=()=>{this.isEditMode||!this.vaultManagerContext||!this.paymentMethod||(this.isSelected()?this.vaultItemContext?.setSelectedVaultedPaymentMethod(null):this.vaultItemContext?.setSelectedVaultedPaymentMethod(this.paymentMethod))};this.handleDeleteClick=e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent(\"delete-payment-method\",{detail:this.paymentMethod?.id,bubbles:!0,composed:!0}))}}isSelected(){if(!this.vaultManagerContext||!this.paymentMethod)return!1;let e=this.vaultItemContext?.selectedVaultedPaymentMethod;return!!e&&e.id===this.paymentMethod.id}render(){return this._getAssetsTask.render({error:()=>y,complete:e=>{let a=this.isSelected()?\"checked\":\"default\",i=!1,n=e?.description;return p`<div class=\"payment-method-wrapper\"><div class=\"payment-method-container\"><primer-button variant=\"secondary\" class=\"payment-method-button ${e.shouldShowCVV?\"with-cvv\":\"\"}\" selectable ?disabled=${this.isEditMode} selectionState=${a} .flex=${i} @click=${this.handleClick} ><primer-payment-method-content .assetConfig=${e} ></primer-payment-method-content>${R(e.shouldShowCVV&&this.isSelected()&&!this.isEditMode,()=>p`<div class=\"payment-method-row mt-2\"><span class=\"flex-center\"><primer-icon name=\"lock\" size=\"sm\"></primer-icon><span class=\"payment-method-subtitle\"> Input the card CVV for a secure payment</span ></span><span class=\"cell-2\"><primer-vault-cvv-input .paymentMethod=\"${this.paymentMethod}\" ><span slot=\"label\"></span></primer-vault-cvv-input></span></div>`,()=>y)}</primer-button>${this.isEditMode?p`<primer-button variant=\"tertiary\" class=\"delete-button\" @click=${this.handleDeleteClick} aria-label=${`${b(\"delete\",{id:\"delete\"})} ${n}`} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></primer-button>`:y}</div></div>`}})}}"
|
|
244
215
|
},
|
|
245
216
|
{
|
|
246
217
|
"kind": "variable",
|
|
247
|
-
"name": "
|
|
248
|
-
"default": "class extends v{constructor(){super(...arguments);this.isEditMode=!1;this.hasPaymentMethods=!1;this.toggleEditMode=()=>{this.dispatchEvent(new CustomEvent(\"toggle-edit-mode\",{detail:!this.isEditMode,bubbles:!0,composed:!0}))}}render(){return p`<div class=\"vault-manager-header\"><h3>${b(\"previouslyUsed\",{id:\"previouslyUsed\"})}</h3>${this.hasPaymentMethods?p`<primer-button variant=\"tertiary\" class=\"edit-button ${this.isEditMode?\"active\":\"\"}\" @click=${this.toggleEditMode} aria-label=${this.isEditMode?b(\"confirm\",{id:\"confirm\"}):b(\"editPaymentMethods\",{id:\"editPaymentMethods\"})} >${this.isEditMode?p`<primer-icon name=\"checkmark\" size=\"sm\"></primer-icon>`:p`<primer-icon name=\"edit\" size=\"sm\"></primer-icon>`}</primer-button>`:
|
|
218
|
+
"name": "Ge",
|
|
219
|
+
"default": "class extends v{constructor(){super(...arguments);this.isEditMode=!1;this.hasPaymentMethods=!1;this.toggleEditMode=()=>{this.dispatchEvent(new CustomEvent(\"toggle-edit-mode\",{detail:!this.isEditMode,bubbles:!0,composed:!0}))}}render(){return p`<div class=\"vault-manager-header\"><h3>${b(\"previouslyUsed\",{id:\"previouslyUsed\"})}</h3>${this.hasPaymentMethods?p`<primer-button variant=\"tertiary\" class=\"edit-button ${this.isEditMode?\"active\":\"\"}\" @click=${this.toggleEditMode} aria-label=${this.isEditMode?b(\"confirm\",{id:\"confirm\"}):b(\"editPaymentMethods\",{id:\"editPaymentMethods\"})} >${this.isEditMode?p`<primer-icon name=\"checkmark\" size=\"sm\"></primer-icon>`:p`<primer-icon name=\"edit\" size=\"sm\"></primer-icon>`}</primer-button>`:y}</div>`}}"
|
|
249
220
|
},
|
|
250
221
|
{
|
|
251
222
|
"kind": "variable",
|
|
252
|
-
"name": "
|
|
223
|
+
"name": "Ie",
|
|
253
224
|
"default": "class extends v{constructor(){super(...arguments);this.isDeleting=!1;this.paymentMethodId=\"\";this.paymentMethodName=\"\";this.vaultManager=null;this.handleConfirmClick=()=>{this.dispatchEvent(new CustomEvent(\"confirm-delete\",{bubbles:!0,composed:!0}))};this.handleCancelClick=()=>{this.dispatchEvent(new CustomEvent(\"cancel-delete\",{bubbles:!0,composed:!0}))}}render(){return p`<div class=\"delete-confirmation\"><p class=\"delete-confirmation-text\"> Are you sure you want to delete this payment method? </p><div class=\"delete-actions\"><primer-button variant=\"secondary\" @click=${this.handleCancelClick} ?disabled=${this.isDeleting} >${b(\"cancel\",{id:\"cancel\"})}</primer-button><primer-button @click=${this.handleConfirmClick} ?disabled=${this.isDeleting} >${this.isDeleting?b(\"deleting\",{id:\"deleting\"}):b(\"confirmVaultedPaymentMethodDeletion\",{id:\"confirmVaultedPaymentMethodDeletion\"})}</primer-button></div></div>`}}"
|
|
254
225
|
},
|
|
255
226
|
{
|
|
256
227
|
"kind": "variable",
|
|
257
|
-
"name": "
|
|
228
|
+
"name": "st",
|
|
258
229
|
"default": "class extends v{render(){return p`<div class=\"empty-state\"><p>${b(\"savedPaymentMethodsEmpty\",{id:\"savedPaymentMethodsEmpty\"})}</p></div>`}}"
|
|
259
230
|
},
|
|
260
231
|
{
|
|
261
232
|
"kind": "variable",
|
|
262
|
-
"name": "
|
|
233
|
+
"name": "Qe",
|
|
263
234
|
"default": "class extends v{constructor(){super(...arguments);this.errorMessage=\"\";this.handleDismiss=()=>{this.dispatchEvent(new CustomEvent(\"close-error\",{bubbles:!0,composed:!0}))}}render(){return p`<div class=\"error-message\"><div class=\"error-content\"><primer-icon name=\"warning\" size=\"sm\" color=\"var(--primer-color-red-500)\" ></primer-icon><p>${this.errorMessage}</p></div><button @click=${this.handleDismiss} aria-label=${b(\"closeErrorMessage\",{id:\"closeErrorMessage\"})} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></button></div>`}}"
|
|
264
235
|
},
|
|
265
236
|
{
|
|
266
237
|
"kind": "variable",
|
|
267
|
-
"name": "
|
|
268
|
-
"default": "class extends v{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.headlessInstance=null;this.sdkState=null;this.vaultItemContext=null;this.vaultManager=null;this.clientOptions=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=async e=>{if(e.preventDefault(),!this.isButtonDisabled)try{await this.vaultManager?.startVaultedPaymentFlow()}catch(a){let i=new CustomEvent(\"primer-vault-payment-error\",{bubbles:!0,composed:!0,detail:{error:a}});this.dispatchEvent(i)}}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:b(\"pay\",{id:\"pay\"})}set buttonText(e){let a=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",a)}get isButtonDisabled(){return!!(this.disabled||!this.vaultItemContext?.selectedVaultedPaymentMethod||this.vaultManager?.isLoading)}render(){let e=this.clientOptions?.submitButton?.amountVisible?this.headlessInstance?.getUIOrderAmount():null,a=e?` ${e}`:
|
|
238
|
+
"name": "ae",
|
|
239
|
+
"default": "class extends v{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.headlessInstance=null;this.sdkState=null;this.vaultItemContext=null;this.vaultManager=null;this.clientOptions=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=async e=>{if(e.preventDefault(),!this.isButtonDisabled)try{await this.vaultManager?.startVaultedPaymentFlow()}catch(a){let i=new CustomEvent(\"primer-vault-payment-error\",{bubbles:!0,composed:!0,detail:{error:a}});this.dispatchEvent(i)}}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:b(\"pay\",{id:\"pay\"})}set buttonText(e){let a=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",a)}get isButtonDisabled(){return!!(this.disabled||!this.vaultItemContext?.selectedVaultedPaymentMethod||this.vaultManager?.isLoading)}render(){let e=this.clientOptions?.submitButton?.amountVisible?this.headlessInstance?.getUIOrderAmount():null,a=e?` ${e}`:y;return p`<primer-button buttonType=\"submit\" variant=${this.variant} @click=${this.handleClick} .disabled=${this.isButtonDisabled} .loading=${this.sdkState?.isProcessing} data-submit >${this.buttonText}${a}</primer-button>`}}"
|
|
269
240
|
},
|
|
270
241
|
{
|
|
271
242
|
"kind": "variable",
|
|
272
|
-
"name": "
|
|
273
|
-
"default": "class extends v{constructor(){super();this.vaultManagerFormContext=null;this.vaultManagerCvvContext=null;this.computedStyles=null;this.paymentMethod=null;this.cvvError=null;this.cvvInputIsDirty=!1;this.cvvInputIsBlurred=!1;this.cvvInput=null;this.isFocused=!1;this._setupCVVIframe=new
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"kind": "variable",
|
|
277
|
-
"name": "Qe",
|
|
278
|
-
"default": "class extends v{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return g;let e=this.assetConfig.description,a=this.assetConfig.icon,i=L(this.assetConfig.icon,()=>p`<img class=\"payment-method-icon\" src=${a} alt=${e} />`,()=>p`<div class=\"payment-method-icon payment-method-icon-generic\"><primer-icon name=\"payment-card\" size=\"sm\"></primer-icon></div>`);return this.assetConfig.type===\"paypal\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></span></div></span>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType!==\"ACH\"?p`<div class=\"payment-method-card-other\"><div class=\"left-column\"><div class=\"payment-method-header\">${this.assetConfig.fullName}</div><div class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></div></div><div class=\"payment-method-right-column-text\">${this.assetConfig.email||`\\u2022\\u2022\\u2022\\u2022 ${this.assetConfig.last4}`}</div></div>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType===\"ACH\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.bankName}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.accountType}</span ></div></span>`:this.assetConfig.type===\"card\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.cardholderName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.network}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.expiresDate}</span ></div></span>`:g}}"
|
|
243
|
+
"name": "Q",
|
|
244
|
+
"default": "class extends v{constructor(){super();this.vaultManagerFormContext=null;this.vaultManagerCvvContext=null;this.computedStyles=null;this.paymentMethod=null;this.cvvError=null;this.cvvInputIsDirty=!1;this.cvvInputIsBlurred=!1;this.cvvInput=null;this.isFocused=!1;this._setupCVVIframe=new B(this,{task:([e,a])=>!e||!a||e.paymentMethodType!==\"PAYMENT_CARD\"||!e.paymentInstrumentData?.network||a.createCvvInput===null?w:{network:e.paymentInstrumentData.network,createCvvInput:a.createCvvInput},args:()=>[this.paymentMethod,this.vaultManagerFormContext]});this.cvvContainerId=`cvv-container-${Math.random().toString(36).substring(2,9)}`,new B(this,{task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!a)return;let i=Hr(this.computedStyles),n=i?{input:{base:i}}:void 0,o={cardNetwork:e.network,container:a,name:\"cvv\",placeholder:\"123\",style:n,ariaLabel:b(\"CVV\",{id:\"cardCVV\"})};this.cvvInput=await e.createCvvInput?.(o)??null,this.cvvInput&&(this.cvvInput.focus(),this.cvvError=this.cvvInput.metadata.errorCode||null,this.vaultManagerCvvContext?.setCvvInput(this.cvvInput),this.cvvInput.addListener(\"change\",()=>{this.onCvvInputChange()}),this.cvvInput.addListener(\"blur\",()=>{this.onBlur()}),this.cvvInput.addListener(\"focus\",()=>{this.onFocus()}))},args:()=>[this._setupCVVIframe.value]})}disconnectedCallback(){super.disconnectedCallback(),this.cvvInput&&(this.cvvInput.remove(),this.cvvInput=null,this.cvvError=null,this.vaultManagerCvvContext?.setCvvInput(null))}onCvvInputChange(){!this.cvvInput||!this.vaultManagerCvvContext||(this.cvvInputIsDirty=!0,this.cvvError=this.cvvInput.metadata.errorCode||null)}onBlur(){this.cvvInput&&(this.cvvInputIsBlurred=!0,this.cvvError=this.cvvInput.metadata.errorCode||null,this.isFocused=!1)}onFocus(){this.isFocused=!0}render(){return this._setupCVVIframe.render({error:()=>y,complete:()=>p`<div class=\"cvv-input-container\"><primer-input-wrapper .focusWithin=${this.isFocused} .hasError=${!!this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred)} ><slot name=\"label\" slot=\"label\"><primer-input-label>CVV</primer-input-label></slot><div slot=\"input\" id=\"${this.cvvContainerId}\"></div>${R(this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred),()=>p`<primer-input-error slot=\"error\">${b(this.cvvError,{id:this.cvvError})}</primer-input-error>`)}</primer-input-wrapper></div>`})}}"
|
|
279
245
|
},
|
|
280
246
|
{
|
|
281
247
|
"kind": "variable",
|
|
282
|
-
"name": "
|
|
283
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
248
|
+
"name": "Xe",
|
|
249
|
+
"default": "class extends v{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return y;let e=this.assetConfig.description,a=this.assetConfig.icon,i=R(this.assetConfig.icon,()=>p`<img class=\"payment-method-icon\" src=${a} alt=${e} />`,()=>p`<div class=\"payment-method-icon payment-method-icon-generic\"><primer-icon name=\"payment-card\" size=\"sm\"></primer-icon></div>`);return this.assetConfig.type===\"paypal\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></span></div></span>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType!==\"ACH\"?p`<div class=\"payment-method-card-other\"><div class=\"left-column\"><div class=\"payment-method-header\">${this.assetConfig.fullName}</div><div class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></div></div><div class=\"payment-method-right-column-text\">${this.assetConfig.email||`\\u2022\\u2022\\u2022\\u2022 ${this.assetConfig.last4}`}</div></div>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType===\"ACH\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.bankName}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.accountType}</span ></div></span>`:this.assetConfig.type===\"card\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.cardholderName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.network}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.expiresDate}</span ></div></span>`:y}}"
|
|
284
250
|
},
|
|
285
251
|
{
|
|
286
252
|
"kind": "variable",
|
|
287
|
-
"name": "
|
|
288
|
-
"default": "class extends
|
|
253
|
+
"name": "re",
|
|
254
|
+
"default": "class extends v{constructor(){super(...arguments);this.hideLabels=!1;this.disabled=!1;this.hasAssignedContent=!1;this.selectedCardNetwork=null;this.formErrorMessage=null;this.paymentMethodSelectionSent=!1;this.paymentManagers=new Map;this.clientOptions=null;this.headlessUtils=null;this.analyticsUtils=null;this.contextEventsController=null;this.cardFormProvider=new z(this,{context:ta,initialValue:null});this.eventsController=new jt(this);this._contextCardSubmitListener=null;this._isHandlingContextEvent=!1;this.inputControllers=new Map;this.setupCardFormTask=new B(this,{task:([e])=>{if(!e?.manager)return w;let{manager:a}=e,i=a.createHostedInputs(),{cardNumberInput:n,expiryInput:o,cvvInput:s}=i;return this.cardFormProvider.setValue({cardholderNameInput:i.cardholderNameInput,cardNumberInput:n,expiryInput:o,cvvInput:s,setCardholderName:l=>{a.setCardholderName(l),this.shouldRequireCardholderName&&a.validate?.().then(c=>{let g=c?.validationErrors?.find(C=>C.name===od.cardholderName),h=this.inputControllers.get(\"cardholderName\");h&&h.updateMetaFromValidation({valid:!1,error:g?.message||g?.error||null,errorCode:g?.message||g?.error||null})})},setCardNetwork:l=>{this.selectedCardNetwork=l},validate:()=>a.validate(),submit:l=>a.submit(l),hideLabels:this.hideLabels,disabled:this.disabled,setSubmissionState:l=>{this.inputControllers.forEach(c=>{c.setSubmitted(l)})},propagateValidationErrors:l=>{l&&l.forEach(c=>{let m=c.field||c.name,g=c.message||c.error,h=od[m];if(h){let C=this.inputControllers.get(h);if(C){let P={valid:!1,error:g,errorCode:g};C.updateMetaFromValidation(P)}}})},registerInputController:(l,c)=>{this.inputControllers.set(l,c)},unregisterInputController:l=>{this.inputControllers.delete(l)},onUserInteraction:()=>{this.sendPaymentMethodSelectionEvent(),this.checkAndSendPaymentDetailsEnteredEvent()}}),!0},args:()=>[this.paymentManagers.get(\"PAYMENT_CARD\")]});this.paymentDetailsEnteredSent=!1;this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isSubmitButton(n)&&(e.preventDefault(),this.submitCardPayment())};this.handleDirectSubmit=e=>{e.stopPropagation(),this.submitCardPayment()};this.handleContextCardSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitCardPayment())}finally{this._isHandlingContextEvent=!1}}};this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0};this.handleFormSubmit=e=>{e.preventDefault(),e.stopPropagation(),this.submitCardPayment()}}updated(e){if(super.updated(e),(e.has(\"hideLabels\")||e.has(\"disabled\"))&&this.cardFormProvider.value&&this.cardFormProvider.setValue({...this.cardFormProvider.value,hideLabels:this.hideLabels,disabled:this.disabled}),e.has(\"contextEventsController\")){let a=e.get(\"contextEventsController\");a?.host&&this._contextCardSubmitListener&&a.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener),this.setupContextEventListeners()}}get shouldShowCardholderName(){let e=this.clientOptions?.card?.cardholderName;return typeof e?.visible==\"boolean\"?e.visible:!0}get shouldRequireCardholderName(){if(!this.shouldShowCardholderName)return!1;let e=this.clientOptions?.card?.cardholderName;return typeof e?.required==\"boolean\"?e.required:!0}sendPaymentMethodSelectionEvent(){this.paymentMethodSelectionSent||(this.paymentMethodSelectionSent=!0,Z({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:\"PAYMENT_CARD\"}))}checkAndSendPaymentDetailsEnteredEvent(){if(this.paymentDetailsEnteredSent)return;let e=this.inputControllers.get(\"cardNumber\"),a=this.inputControllers.get(\"expire\"),i=this.inputControllers.get(\"cvv\"),n=e?.meta?.dirty===!0,o=a?.meta?.dirty===!0,s=i?.meta?.dirty===!0,l=!0;this.shouldRequireCardholderName&&(l=this.inputControllers.get(\"cardholderName\")?.meta?.dirty===!0),n&&o&&s&&l&&(this.sendPaymentDetailsEnteredEvent(),this.paymentDetailsEnteredSent=!0)}sendPaymentDetailsEnteredEvent(){Z({eventName:\"PAYMENT_DETAILS_ENTERED\",paymentMethod:\"PAYMENT_CARD\"})}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:card-submit\",this.handleDirectSubmit),this._contextCardSubmitListener=e=>{this.handleContextCardSubmit(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:card-submit\",this.handleDirectSubmit),this.cleanupContextEventListeners(),super.disconnectedCallback()}setupContextEventListeners(){this.contextEventsController?.host&&this._contextCardSubmitListener&&this.contextEventsController.host.addEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextCardSubmitListener&&this.contextEventsController.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}isSubmitButton(e){let a=e.tagName.toLowerCase(),i=a===\"button\",n=a===\"primer-button\";return i&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||n&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitCardPayment(){let e=this.cardFormProvider.value;if(!e||this.disabled)return;this.formErrorMessage=null,e.setSubmissionState?.(!0);let a=this.querySelector(\"primer-billing-address\")||this.renderRoot.querySelector(\"primer-billing-address\"),i=!0;a&&(i=await a.validateForSubmission());let n=await e.validate?.();if(n?.valid&&i){if(a&&!await a.submitToSDK()){let c=b(\"tokenizationError\",{id:\"tokenizationError\"});this.formErrorMessage=c,this.eventsController.dispatchFormSubmitErrors([{field:\"billingAddress\",name:\"billingAddress\",error:\"BILLING_ADDRESS_SUBMISSION_FAILED\",message:c}]);return}let o=this.selectedCardNetwork?{cardNetwork:this.selectedCardNetwork}:void 0;await e.submit?.(o);let s={success:!0};this.eventsController.dispatchFormSubmitSuccess(s)}else{let o=n?.validationErrors;e.propagateValidationErrors?.(o||[]),this.cardFormProvider.setValue({...e,errors:o}),this.eventsController.dispatchFormSubmitErrors(o)}}render(){return this.setupCardFormTask.status===vt.ERROR||this.setupCardFormTask.status===vt.INITIAL?y:p`<form @submit=${this.handleFormSubmit}><slot name=\"card-form-content\" @slotchange=${this.onSlotChange}></slot>${this.setupCardFormTask.render({complete:()=>R(this.hasAssignedContent,()=>y,()=>p`<div class=\"card-form\"><primer-input-card-number></primer-input-card-number><div class=\"card-form-row\"><primer-input-card-expiry></primer-input-card-expiry><primer-input-cvv></primer-input-cvv></div>${R(this.shouldShowCardholderName,()=>p`<primer-input-card-holder-name></primer-input-card-holder-name>`,()=>y)}<primer-billing-address></primer-billing-address></div><primer-card-form-submit></primer-card-form-submit><primer-error-message message=\"${this.formErrorMessage||\"\"}\" ?visible=\"${!!this.formErrorMessage}\" ></primer-error-message>`)})}</form>`}}"
|
|
289
255
|
},
|
|
290
256
|
{
|
|
291
257
|
"kind": "variable",
|
|
292
258
|
"name": "lt",
|
|
293
|
-
"default": "class extends
|
|
259
|
+
"default": "class extends pe{constructor(){super();this.config={inputType:\"cardNumber\",containerSelector:\"#cardNumber\",errorName:\"cardNumber-card\",translations:{label:{id:\"cardNumber\",defaultMessage:\"Card Number\"},placeholder:\"4111 1111 1111 1111\",ariaLabel:{id:\"cardNumber\",defaultMessage:\"Card Number\"}}};this.handleNetworkSelected=e=>{let{network:a}=e.detail;this.cardFormContext&&this.cardFormContext.setCardNetwork(a)};this.childUpdated()}renderInput(){if(this.hostedInputController.setupTask.status===vt.ERROR)return y;let e=this.getError();return p`<primer-input-wrapper .focusWithin=\"${this.hostedInputController.meta.active}\" .hasError=${!!e} >${R(!this.cardFormContext?.hideLabels,()=>p`<primer-input-label slot=\"label\" >${this.label}</primer-input-label >`,()=>y)}<div slot=\"input\" class=\"card-number-container\" aria-label=\"${this.ariaLabel}\" ><div id=\"${this.config.containerSelector.substring(1)}\"></div><div class=\"network-selector-container\"><primer-card-network-selector @network-selected=${this.handleNetworkSelected} ></primer-card-network-selector></div></div>${R(e,a=>p`<primer-input-error slot=\"error\">${b(a,{id:a})}</primer-input-error>`,()=>y)}</primer-input-wrapper>`}render(){return this.renderInput()}}"
|
|
294
260
|
},
|
|
295
261
|
{
|
|
296
262
|
"kind": "variable",
|
|
297
263
|
"name": "dt",
|
|
298
|
-
"default": "class extends
|
|
264
|
+
"default": "class extends pe{constructor(){super();this.config={inputType:\"cvv\",containerSelector:\"#cvv\",errorName:\"cvv-card\",translations:{label:\"CVV\",placeholder:\"123\"}};this.childUpdated()}render(){return this.renderInput()}}"
|
|
299
265
|
},
|
|
300
266
|
{
|
|
301
267
|
"kind": "variable",
|
|
302
268
|
"name": "ct",
|
|
303
|
-
"default": "class extends
|
|
269
|
+
"default": "class extends pe{constructor(){super();this.config={inputType:\"expire\",containerSelector:\"#expiry\",errorName:\"expiryDate-card\",translations:{label:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"},placeholder:{id:\"cardExpiryPlaceholder\",defaultMessage:\"MM/YY\"},ariaLabel:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"}}};this.childUpdated()}render(){return this.renderInput()}}"
|
|
304
270
|
},
|
|
305
271
|
{
|
|
306
272
|
"kind": "variable",
|
|
307
|
-
"name": "
|
|
308
|
-
"default": "class extends
|
|
273
|
+
"name": "ut",
|
|
274
|
+
"default": "class extends pe{constructor(){super();this.config={inputType:\"cardholderName\",containerSelector:\"#cardFormName\",errorName:\"cardholderName\",translations:{label:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"},placeholder:{id:\"cardholderNamePlaceholder\",defaultMessage:\"Name on card\"},ariaLabel:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"}},onInput:e=>this.handleInput(e)};this.childUpdated()}handleInput(e){this.cardFormContext?.setCardholderName?.(e)}render(){return this.renderInput()}}"
|
|
309
275
|
},
|
|
310
276
|
{
|
|
311
277
|
"kind": "variable",
|
|
312
|
-
"name": "
|
|
313
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
278
|
+
"name": "X",
|
|
279
|
+
"default": "class extends v{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.headlessUtils=null;this.clientOptions=null;this.sdkState=null;this.cardFormContext=null;this.analyticsUtils=null;this.contextEventsController=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=e=>{if(e.preventDefault(),this.disabled)return;Z({eventName:\"PAYMENT_SUBMITTED\",paymentMethod:\"PAYMENT_CARD\"});let a=new CustomEvent(\"primer:card-submit\",{bubbles:!0,composed:!0,detail:{source:\"primer-card-form-submit\"}});this.dispatchEvent(a)}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:b(\"pay\",{id:\"pay\"})}set buttonText(e){let a=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",a)}get submitButtonConfig(){return this.clientOptions?.submitButton??null}get shouldShowBuiltInButton(){return this.submitButtonConfig?.useBuiltInButton??!0}render(){if(!this.shouldShowBuiltInButton)return y;let e=this.submitButtonConfig?.amountVisible?this.headlessUtils?.getUIOrderAmount():null,a=e?` ${e}`:y,i=this.disabled||this.cardFormContext?.disabled||!1;return p`<primer-button type=\"submit\" variant=${this.variant} ?disabled=${i} @click=${this.handleClick} .loading=${!!this.sdkState?.isProcessing} data-submit >${this.buttonText}${a}</primer-button>`}}"
|
|
314
280
|
},
|
|
315
281
|
{
|
|
316
282
|
"kind": "variable",
|
|
317
|
-
"name": "
|
|
318
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
283
|
+
"name": "me",
|
|
284
|
+
"default": "class extends v{constructor(){super(...arguments);this.cardNetworks=null;this.headlessUtils=null;this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=Gt();this.dropdownRef=Gt();this.networkOptionRefs=[];this.toggleDropdown=e=>{this.isKeyboardNavigation=!1,e.stopPropagation(),this.getSelectableNetworks().length>1&&(this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))};this.handleClickOutside=e=>{this.isDropdownOpen&&(this.contains(e.target)||(this.isDropdownOpen=!1,this.isKeyboardNavigation=!1))};this.handleMouseMove=()=>{this.isKeyboardNavigation&&(this.isKeyboardNavigation=!1)};this.handleKeyDown=e=>{if(!(!(this.getSelectableNetworks().length>1)||!(this.contains(e.target)||this===e.target||this.isDropdownOpen&&e.target===document.body)))switch(this.isKeyboardNavigation=!0,e.key){case\"ArrowDown\":e.preventDefault(),this.isDropdownOpen?(this.focusedNetworkIndex=(this.focusedNetworkIndex+1)%this.getSelectableNetworks().length,this.focusNetworkOption()):(this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"ArrowUp\":e.preventDefault(),this.isDropdownOpen?(this.focusedNetworkIndex=(this.focusedNetworkIndex-1+this.getSelectableNetworks().length)%this.getSelectableNetworks().length,this.focusNetworkOption()):(this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"Enter\":case\" \":this.isDropdownOpen&&this.focusedNetworkIndex>=0?(e.preventDefault(),this.selectNetwork(e,this.getSelectableNetworks()[this.focusedNetworkIndex])):!this.isDropdownOpen&&this.buttonRef.value===document.activeElement&&(e.preventDefault(),this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"Escape\":this.isDropdownOpen&&(e.preventDefault(),this.isDropdownOpen=!1,this.buttonRef.value?.focus());break;case\"Tab\":this.isDropdownOpen&&(this.isDropdownOpen=!1);break}};this.handleDocumentKeyDown=e=>{this.isDropdownOpen&&this.handleKeyDown(e)}}getNetworkIconUrl(e){return this.headlessUtils?.getCardNetworkAsset(e.network)?.cardUrl}getSelectableNetworks(){return this.cardNetworks?.selectableCardNetworks||[]}getDetectedNetwork(){return this.selectedCardNetwork??(this.cardNetworks?.detectedCardNetwork||null)}getSelectedNetworkIndex(){let e=this.getDetectedNetwork();if(!e)return 0;let a=this.getSelectableNetworks().findIndex(i=>i.network===e.network);return a>=0?a:0}selectNetwork(e,a){e.stopPropagation(),this.selectedCardNetwork=a,this.isDropdownOpen=!1,this.buttonRef.value?.focus(),this.cardNetworks&&this.dispatchEvent(new CustomEvent(\"network-selected\",{detail:{network:a.network},bubbles:!0,composed:!0}))}focusNetworkOption(){requestAnimationFrame(()=>{this.networkOptionRefs[this.focusedNetworkIndex]&&this.networkOptionRefs[this.focusedNetworkIndex].focus()})}setNetworkOptionRef(e,a){this.networkOptionRefs[a]=e}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener(\"click\",this.handleClickOutside),document.addEventListener(\"mousemove\",this.handleMouseMove),this.addEventListener(\"keydown\",this.handleKeyDown),document.addEventListener(\"keydown\",this.handleDocumentKeyDown)},0)}disconnectedCallback(){document.removeEventListener(\"click\",this.handleClickOutside),document.removeEventListener(\"keydown\",this.handleDocumentKeyDown),document.removeEventListener(\"mousemove\",this.handleMouseMove),this.removeEventListener(\"keydown\",this.handleKeyDown),super.disconnectedCallback()}render(){if(this.cardNetworks?.isLoading)return p`<primer-spinner size=\"small\" compact></primer-spinner>`;let e=this.getSelectableNetworks();if(!this.getDetectedNetwork()&&e.length===0)return p`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let a=this.getDetectedNetwork()||(e.length>0?e[0]:null);if(!a)return p`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let i=e.length>1;return p`<button ${Ct(this.buttonRef)} class=\"network-selector\" @click=${this.toggleDropdown} @keydown=${n=>{(n.key===\" \"||n.key===\"Enter\")&&i&&(n.preventDefault(),this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))}} aria-label=${i?`Selected card network: ${a.displayName}. Click to change.`:`Card network: ${a.displayName}`} aria-expanded=${i?this.isDropdownOpen:y} aria-haspopup=${i?\"true\":y} aria-controls=${i?\"network-dropdown\":y} ><img class=\"network-icon\" src=${this.getNetworkIconUrl(a)} alt=${a.displayName} />${R(i,()=>p`<primer-icon class=\"caret ${this.isDropdownOpen?\"open\":\"\"}\" size=\"sm\" name=\"chevron-down\" ></primer-icon>`,()=>y)}</button>${R(this.isDropdownOpen,()=>p`<div ${Ct(this.dropdownRef)} id=\"network-dropdown\" class=\"dropdown open\" role=\"listbox\" aria-label=\"Select card network\" >${e.map((n,o)=>p`<div ${Ct(s=>this.setNetworkOptionRef(s,o))} class=\"network-option ${this.isKeyboardNavigation&&o===this.focusedNetworkIndex?\"focused\":\"\"}\" @click=${s=>this.selectNetwork(s,n)} @keydown=${s=>{(s.key===\"Enter\"||s.key===\" \")&&this.selectNetwork(s,n)}} role=\"option\" aria-selected=${n.network===a.network} tabindex=\"${o===this.focusedNetworkIndex?\"0\":\"-1\"}\" ><img class=\"network-option-icon\" src=${this.getNetworkIconUrl(n)} alt=${n.displayName} /><span class=\"network-name\">${n.displayName}</span>${R(n.network===a.network,()=>p`<primer-icon class=\"checkmark\" name=\"checkmark\" size=\"sm\" ></primer-icon>`,()=>y)}</div>`)}</div>`,()=>y)} `}}"
|
|
319
285
|
},
|
|
320
286
|
{
|
|
321
287
|
"kind": "variable",
|
|
322
|
-
"name": "
|
|
288
|
+
"name": "we",
|
|
289
|
+
"default": "class extends v{constructor(){super(...arguments);this.vaultManager=null;this.contextEventsController=null;this.hasSlottedToggle=!1;this.isExpanded=!1;this._isHandlingContextEvent=!1;this._contextToggleListener=null;this.handleToggleSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedToggle=i.length>0};this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isToggleButton(n)&&(e.preventDefault(),this.toggleAccordion())};this.handleDirectToggle=e=>{let a=e.detail?.action;a===\"expand\"?this.expand():a===\"collapse\"?this.collapse():this.toggleAccordion()};this.handleContextToggle=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{if(e.target!==this){e.stopPropagation();let a=e.detail?.action;a===\"expand\"?this.expand():a===\"collapse\"?this.collapse():this.toggleAccordion()}}finally{this._isHandlingContextEvent=!1}}}}isToggleButton(e){let a=this.shadowRoot?.querySelector('slot[name=\"show-other-payments-toggle-button\"]');return a?a.assignedElements({flatten:!0}).some(n=>n===e||n.contains(e)):!1}toggleAccordion(){this.hasSlottedToggle?(this.isExpanded=!this.isExpanded,this.dispatchExpandedEvent(this.isExpanded)):this.collapsableElement&&(this.collapsableElement.isExpanded?this.collapsableElement.collapse():this.collapsableElement.expand())}dispatchExpandedEvent(e){this.dispatchEvent(new CustomEvent(\"primer:show-other-payments-toggled\",{bubbles:!0,composed:!0,detail:{expanded:e}}))}expand(){this.hasSlottedToggle?this.isExpanded||(this.isExpanded=!0,this.dispatchExpandedEvent(!0)):this.collapsableElement?.expand()}collapse(){this.hasSlottedToggle?this.isExpanded&&(this.isExpanded=!1,this.dispatchExpandedEvent(!1)):this.collapsableElement?.collapse()}setupContextEventListeners(){this.contextEventsController?.host&&this._contextToggleListener&&this.contextEventsController.host.addEventListener(\"primer:show-other-payments-toggle\",this._contextToggleListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextToggleListener&&this.contextEventsController.host.removeEventListener(\"primer:show-other-payments-toggle\",this._contextToggleListener)}connectedCallback(){super.connectedCallback(),this.isExpanded=this.vaultManager?.vaultedPaymentMethods.length===0,this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:show-other-payments-toggle\",this.handleDirectToggle),this._contextToggleListener=e=>{this.handleContextToggle(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:show-other-payments-toggle\",this.handleDirectToggle),this.cleanupContextEventListeners(),super.disconnectedCallback()}render(){if(this.vaultManager?.isLoading)return y;let e=this.vaultManager?.showEmptyState||this.vaultManager?.vaultedPaymentMethods.length;return!this.vaultManager||!this.vaultManager.enabled||this.vaultManager.headless||!e?p`<slot name=\"other-payments\"></slot>`:p`<div class=\"other-payment-methods-container\"><slot name=\"show-other-payments-toggle-button\" @slotchange=${this.handleToggleSlotChange} ></slot>${R(!this.hasSlottedToggle,()=>p`<primer-collapsable buttonVariant=\"secondary\" .expanded=\"${this.vaultManager?.vaultedPaymentMethods.length===0}\" .header=\"${b(\"navigateToPaymentMethods\",{id:\"navigateToPaymentMethods\"})}\" ><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></primer-collapsable>`,()=>p`<div class=\"collapsable-wrapper ${this.isExpanded?\"expanded\":\"\"}\" role=\"region\" aria-labelledby=\"custom-toggle-button\" ><div class=\"collapsable-content\"><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></div></div>`)}</div>`}}"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"kind": "variable",
|
|
293
|
+
"name": "aa",
|
|
323
294
|
"default": "class extends v{render(){return p`<primer-checkout-state type=\"complete\"></primer-checkout-state>`}}"
|
|
324
295
|
},
|
|
325
296
|
{
|
|
326
297
|
"kind": "variable",
|
|
327
|
-
"name": "
|
|
298
|
+
"name": "Kt",
|
|
328
299
|
"default": "class extends v{constructor(){super(...arguments);this.sdkState=null}render(){return p`<primer-checkout-state type=\"failure\" description=${this.sdkState?.primerJsError?.message||\"\"} ></primer-checkout-state>`}}"
|
|
329
300
|
},
|
|
330
301
|
{
|
|
331
302
|
"kind": "variable",
|
|
332
|
-
"name": "
|
|
333
|
-
"default": "class extends v{constructor(){super(...arguments);this.showProcessingErrors=!0}get shouldShowError(){return!this.sdkState||this.sdkState.isProcessing?!1:!!(this.sdkState.paymentFailure&&this.showProcessingErrors)}render(){return this.sdkState?p`<primer-error-message message=\"${b(this.sdkState.paymentFailure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:
|
|
303
|
+
"name": "pt",
|
|
304
|
+
"default": "class extends v{constructor(){super(...arguments);this.showProcessingErrors=!0}get shouldShowError(){return!this.sdkState||this.sdkState.isProcessing?!1:!!(this.sdkState.paymentFailure&&this.showProcessingErrors)}render(){return this.sdkState?p`<primer-error-message message=\"${b(this.sdkState.paymentFailure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:y}}"
|
|
334
305
|
},
|
|
335
306
|
{
|
|
336
307
|
"kind": "variable",
|
|
337
|
-
"name": "
|
|
338
|
-
"default": "class extends v{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.paymentMethods=null;this.sdkState=null;this.clientOptions=null}render(){return this.sdkState?.isSuccessful?p`<slot name=\"checkout-complete\"><primer-checkout-complete></primer-checkout-complete></slot>`:p`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${
|
|
308
|
+
"name": "et",
|
|
309
|
+
"default": "class extends v{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.paymentMethods=null;this.sdkState=null;this.clientOptions=null}render(){return this.sdkState?.isSuccessful?p`<slot name=\"checkout-complete\"><primer-checkout-complete></primer-checkout-complete></slot>`:p`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${R(this.hasAssignedContent,()=>y,()=>p`<div class=${oe({\"primer-is-processing\":!!this.sdkState?.isProcessing})} ><primer-vault-manager></primer-vault-manager><primer-show-other-payments><div slot=\"other-payments\" class=\"primer-main-list\">${this.paymentMethods?.toArray().map(e=>p`<primer-payment-method type=${e.type} ?disabled=${this.clientOptions?.disabledPayments===!0} ></primer-payment-method>`)}</div></primer-show-other-payments><primer-error-message-container></primer-error-message-container></div>`)} `}}"
|
|
339
310
|
},
|
|
340
311
|
{
|
|
341
312
|
"kind": "function",
|
|
342
|
-
"name": "
|
|
313
|
+
"name": "iB"
|
|
343
314
|
}
|
|
344
315
|
],
|
|
345
316
|
"exports": [
|
|
@@ -363,7 +334,7 @@
|
|
|
363
334
|
"kind": "js",
|
|
364
335
|
"name": "AchPayment",
|
|
365
336
|
"declaration": {
|
|
366
|
-
"name": "
|
|
337
|
+
"name": "Pe",
|
|
367
338
|
"module": "dist/primer-loader.js"
|
|
368
339
|
}
|
|
369
340
|
},
|
|
@@ -371,7 +342,7 @@
|
|
|
371
342
|
"kind": "js",
|
|
372
343
|
"name": "ApplePay",
|
|
373
344
|
"declaration": {
|
|
374
|
-
"name": "
|
|
345
|
+
"name": "Ze",
|
|
375
346
|
"module": "dist/primer-loader.js"
|
|
376
347
|
}
|
|
377
348
|
},
|
|
@@ -379,7 +350,7 @@
|
|
|
379
350
|
"kind": "js",
|
|
380
351
|
"name": "BillingAddress",
|
|
381
352
|
"declaration": {
|
|
382
|
-
"name": "
|
|
353
|
+
"name": "le",
|
|
383
354
|
"module": "dist/primer-loader.js"
|
|
384
355
|
}
|
|
385
356
|
},
|
|
@@ -387,7 +358,7 @@
|
|
|
387
358
|
"kind": "js",
|
|
388
359
|
"name": "Blik",
|
|
389
360
|
"declaration": {
|
|
390
|
-
"name": "
|
|
361
|
+
"name": "Ae",
|
|
391
362
|
"module": "dist/primer-loader.js"
|
|
392
363
|
}
|
|
393
364
|
},
|
|
@@ -395,7 +366,7 @@
|
|
|
395
366
|
"kind": "js",
|
|
396
367
|
"name": "Button",
|
|
397
368
|
"declaration": {
|
|
398
|
-
"name": "
|
|
369
|
+
"name": "ve",
|
|
399
370
|
"module": "dist/primer-loader.js"
|
|
400
371
|
}
|
|
401
372
|
},
|
|
@@ -403,7 +374,7 @@
|
|
|
403
374
|
"kind": "js",
|
|
404
375
|
"name": "CardForm",
|
|
405
376
|
"declaration": {
|
|
406
|
-
"name": "
|
|
377
|
+
"name": "re",
|
|
407
378
|
"module": "dist/primer-loader.js"
|
|
408
379
|
}
|
|
409
380
|
},
|
|
@@ -411,7 +382,7 @@
|
|
|
411
382
|
"kind": "js",
|
|
412
383
|
"name": "CardFormCVV",
|
|
413
384
|
"declaration": {
|
|
414
|
-
"name": "
|
|
385
|
+
"name": "dt",
|
|
415
386
|
"module": "dist/primer-loader.js"
|
|
416
387
|
}
|
|
417
388
|
},
|
|
@@ -419,7 +390,7 @@
|
|
|
419
390
|
"kind": "js",
|
|
420
391
|
"name": "CardFormCardNetworkSelector",
|
|
421
392
|
"declaration": {
|
|
422
|
-
"name": "
|
|
393
|
+
"name": "me",
|
|
423
394
|
"module": "dist/primer-loader.js"
|
|
424
395
|
}
|
|
425
396
|
},
|
|
@@ -427,7 +398,7 @@
|
|
|
427
398
|
"kind": "js",
|
|
428
399
|
"name": "CardFormCardNumber",
|
|
429
400
|
"declaration": {
|
|
430
|
-
"name": "
|
|
401
|
+
"name": "lt",
|
|
431
402
|
"module": "dist/primer-loader.js"
|
|
432
403
|
}
|
|
433
404
|
},
|
|
@@ -435,7 +406,7 @@
|
|
|
435
406
|
"kind": "js",
|
|
436
407
|
"name": "CardFormError",
|
|
437
408
|
"declaration": {
|
|
438
|
-
"name": "
|
|
409
|
+
"name": "nt",
|
|
439
410
|
"module": "dist/primer-loader.js"
|
|
440
411
|
}
|
|
441
412
|
},
|
|
@@ -443,7 +414,7 @@
|
|
|
443
414
|
"kind": "js",
|
|
444
415
|
"name": "CardFormExpiry",
|
|
445
416
|
"declaration": {
|
|
446
|
-
"name": "
|
|
417
|
+
"name": "ct",
|
|
447
418
|
"module": "dist/primer-loader.js"
|
|
448
419
|
}
|
|
449
420
|
},
|
|
@@ -451,7 +422,7 @@
|
|
|
451
422
|
"kind": "js",
|
|
452
423
|
"name": "CardFormName",
|
|
453
424
|
"declaration": {
|
|
454
|
-
"name": "
|
|
425
|
+
"name": "ut",
|
|
455
426
|
"module": "dist/primer-loader.js"
|
|
456
427
|
}
|
|
457
428
|
},
|
|
@@ -459,7 +430,7 @@
|
|
|
459
430
|
"kind": "js",
|
|
460
431
|
"name": "CardFormSubmit",
|
|
461
432
|
"declaration": {
|
|
462
|
-
"name": "
|
|
433
|
+
"name": "X",
|
|
463
434
|
"module": "dist/primer-loader.js"
|
|
464
435
|
}
|
|
465
436
|
},
|
|
@@ -467,7 +438,7 @@
|
|
|
467
438
|
"kind": "js",
|
|
468
439
|
"name": "Collapsable",
|
|
469
440
|
"declaration": {
|
|
470
|
-
"name": "
|
|
441
|
+
"name": "be",
|
|
471
442
|
"module": "dist/primer-loader.js"
|
|
472
443
|
}
|
|
473
444
|
},
|
|
@@ -483,7 +454,7 @@
|
|
|
483
454
|
"kind": "js",
|
|
484
455
|
"name": "DynamicPayment",
|
|
485
456
|
"declaration": {
|
|
486
|
-
"name": "
|
|
457
|
+
"name": "xe",
|
|
487
458
|
"module": "dist/primer-loader.js"
|
|
488
459
|
}
|
|
489
460
|
},
|
|
@@ -491,7 +462,7 @@
|
|
|
491
462
|
"kind": "js",
|
|
492
463
|
"name": "ErrorMessage",
|
|
493
464
|
"declaration": {
|
|
494
|
-
"name": "
|
|
465
|
+
"name": "We",
|
|
495
466
|
"module": "dist/primer-loader.js"
|
|
496
467
|
}
|
|
497
468
|
},
|
|
@@ -499,7 +470,7 @@
|
|
|
499
470
|
"kind": "js",
|
|
500
471
|
"name": "ErrorMessageContainer",
|
|
501
472
|
"declaration": {
|
|
502
|
-
"name": "
|
|
473
|
+
"name": "pt",
|
|
503
474
|
"module": "dist/primer-loader.js"
|
|
504
475
|
}
|
|
505
476
|
},
|
|
@@ -507,7 +478,7 @@
|
|
|
507
478
|
"kind": "js",
|
|
508
479
|
"name": "GooglePay",
|
|
509
480
|
"declaration": {
|
|
510
|
-
"name": "
|
|
481
|
+
"name": "Je",
|
|
511
482
|
"module": "dist/primer-loader.js"
|
|
512
483
|
}
|
|
513
484
|
},
|
|
@@ -515,7 +486,7 @@
|
|
|
515
486
|
"kind": "js",
|
|
516
487
|
"name": "InitializedPayments",
|
|
517
488
|
"declaration": {
|
|
518
|
-
"name": "
|
|
489
|
+
"name": "dr",
|
|
519
490
|
"module": "dist/primer-loader.js"
|
|
520
491
|
}
|
|
521
492
|
},
|
|
@@ -523,7 +494,7 @@
|
|
|
523
494
|
"kind": "js",
|
|
524
495
|
"name": "InitializedVaultedPayments",
|
|
525
496
|
"declaration": {
|
|
526
|
-
"name": "
|
|
497
|
+
"name": "cr",
|
|
527
498
|
"module": "dist/primer-loader.js"
|
|
528
499
|
}
|
|
529
500
|
},
|
|
@@ -531,7 +502,7 @@
|
|
|
531
502
|
"kind": "js",
|
|
532
503
|
"name": "Input",
|
|
533
504
|
"declaration": {
|
|
534
|
-
"name": "
|
|
505
|
+
"name": "Y",
|
|
535
506
|
"module": "dist/primer-loader.js"
|
|
536
507
|
}
|
|
537
508
|
},
|
|
@@ -539,7 +510,7 @@
|
|
|
539
510
|
"kind": "js",
|
|
540
511
|
"name": "InputLabel",
|
|
541
512
|
"declaration": {
|
|
542
|
-
"name": "
|
|
513
|
+
"name": "it",
|
|
543
514
|
"module": "dist/primer-loader.js"
|
|
544
515
|
}
|
|
545
516
|
},
|
|
@@ -547,7 +518,7 @@
|
|
|
547
518
|
"kind": "js",
|
|
548
519
|
"name": "InputWrapper",
|
|
549
520
|
"declaration": {
|
|
550
|
-
"name": "
|
|
521
|
+
"name": "ze",
|
|
551
522
|
"module": "dist/primer-loader.js"
|
|
552
523
|
}
|
|
553
524
|
},
|
|
@@ -555,7 +526,7 @@
|
|
|
555
526
|
"kind": "js",
|
|
556
527
|
"name": "PayPal",
|
|
557
528
|
"declaration": {
|
|
558
|
-
"name": "
|
|
529
|
+
"name": "qe",
|
|
559
530
|
"module": "dist/primer-loader.js"
|
|
560
531
|
}
|
|
561
532
|
},
|
|
@@ -563,7 +534,7 @@
|
|
|
563
534
|
"kind": "js",
|
|
564
535
|
"name": "PaymentMethod",
|
|
565
536
|
"declaration": {
|
|
566
|
-
"name": "
|
|
537
|
+
"name": "Oe",
|
|
567
538
|
"module": "dist/primer-loader.js"
|
|
568
539
|
}
|
|
569
540
|
},
|
|
@@ -571,7 +542,7 @@
|
|
|
571
542
|
"kind": "js",
|
|
572
543
|
"name": "PaymentMethodContainer",
|
|
573
544
|
"declaration": {
|
|
574
|
-
"name": "
|
|
545
|
+
"name": "Re",
|
|
575
546
|
"module": "dist/primer-loader.js"
|
|
576
547
|
}
|
|
577
548
|
},
|
|
@@ -579,7 +550,7 @@
|
|
|
579
550
|
"kind": "js",
|
|
580
551
|
"name": "PaymentMethodContentComponent",
|
|
581
552
|
"declaration": {
|
|
582
|
-
"name": "
|
|
553
|
+
"name": "Xe",
|
|
583
554
|
"module": "dist/primer-loader.js"
|
|
584
555
|
}
|
|
585
556
|
},
|
|
@@ -587,7 +558,7 @@
|
|
|
587
558
|
"kind": "js",
|
|
588
559
|
"name": "Portal",
|
|
589
560
|
"declaration": {
|
|
590
|
-
"name": "
|
|
561
|
+
"name": "bt",
|
|
591
562
|
"module": "dist/primer-loader.js"
|
|
592
563
|
}
|
|
593
564
|
},
|
|
@@ -595,7 +566,7 @@
|
|
|
595
566
|
"kind": "js",
|
|
596
567
|
"name": "PortalDialog",
|
|
597
568
|
"declaration": {
|
|
598
|
-
"name": "
|
|
569
|
+
"name": "ue",
|
|
599
570
|
"module": "dist/primer-loader.js"
|
|
600
571
|
}
|
|
601
572
|
},
|
|
@@ -603,7 +574,7 @@
|
|
|
603
574
|
"kind": "js",
|
|
604
575
|
"name": "PrimerCheckoutComplete",
|
|
605
576
|
"declaration": {
|
|
606
|
-
"name": "
|
|
577
|
+
"name": "aa",
|
|
607
578
|
"module": "dist/primer-loader.js"
|
|
608
579
|
}
|
|
609
580
|
},
|
|
@@ -611,7 +582,7 @@
|
|
|
611
582
|
"kind": "js",
|
|
612
583
|
"name": "PrimerCheckoutComponent",
|
|
613
584
|
"declaration": {
|
|
614
|
-
"name": "
|
|
585
|
+
"name": "Te",
|
|
615
586
|
"module": "dist/primer-loader.js"
|
|
616
587
|
}
|
|
617
588
|
},
|
|
@@ -619,7 +590,7 @@
|
|
|
619
590
|
"kind": "js",
|
|
620
591
|
"name": "PrimerCheckoutFailure",
|
|
621
592
|
"declaration": {
|
|
622
|
-
"name": "
|
|
593
|
+
"name": "Kt",
|
|
623
594
|
"module": "dist/primer-loader.js"
|
|
624
595
|
}
|
|
625
596
|
},
|
|
@@ -627,7 +598,7 @@
|
|
|
627
598
|
"kind": "js",
|
|
628
599
|
"name": "PrimerCheckoutState",
|
|
629
600
|
"declaration": {
|
|
630
|
-
"name": "
|
|
601
|
+
"name": "ot",
|
|
631
602
|
"module": "dist/primer-loader.js"
|
|
632
603
|
}
|
|
633
604
|
},
|
|
@@ -635,7 +606,7 @@
|
|
|
635
606
|
"kind": "js",
|
|
636
607
|
"name": "PrimerIcon",
|
|
637
608
|
"declaration": {
|
|
638
|
-
"name": "
|
|
609
|
+
"name": "je",
|
|
639
610
|
"module": "dist/primer-loader.js"
|
|
640
611
|
}
|
|
641
612
|
},
|
|
@@ -643,7 +614,7 @@
|
|
|
643
614
|
"kind": "js",
|
|
644
615
|
"name": "PrimerKlarna",
|
|
645
616
|
"declaration": {
|
|
646
|
-
"name": "
|
|
617
|
+
"name": "se",
|
|
647
618
|
"module": "dist/primer-loader.js"
|
|
648
619
|
}
|
|
649
620
|
},
|
|
@@ -651,7 +622,7 @@
|
|
|
651
622
|
"kind": "js",
|
|
652
623
|
"name": "PrimerMain",
|
|
653
624
|
"declaration": {
|
|
654
|
-
"name": "
|
|
625
|
+
"name": "et",
|
|
655
626
|
"module": "dist/primer-loader.js"
|
|
656
627
|
}
|
|
657
628
|
},
|
|
@@ -659,7 +630,7 @@
|
|
|
659
630
|
"kind": "js",
|
|
660
631
|
"name": "RedirectPayment",
|
|
661
632
|
"declaration": {
|
|
662
|
-
"name": "
|
|
633
|
+
"name": "_e",
|
|
663
634
|
"module": "dist/primer-loader.js"
|
|
664
635
|
}
|
|
665
636
|
},
|
|
@@ -667,7 +638,7 @@
|
|
|
667
638
|
"kind": "js",
|
|
668
639
|
"name": "Select",
|
|
669
640
|
"declaration": {
|
|
670
|
-
"name": "
|
|
641
|
+
"name": "Se",
|
|
671
642
|
"module": "dist/primer-loader.js"
|
|
672
643
|
}
|
|
673
644
|
},
|
|
@@ -675,7 +646,7 @@
|
|
|
675
646
|
"kind": "js",
|
|
676
647
|
"name": "ShowOtherPayments",
|
|
677
648
|
"declaration": {
|
|
678
|
-
"name": "
|
|
649
|
+
"name": "we",
|
|
679
650
|
"module": "dist/primer-loader.js"
|
|
680
651
|
}
|
|
681
652
|
},
|
|
@@ -683,7 +654,7 @@
|
|
|
683
654
|
"kind": "js",
|
|
684
655
|
"name": "Spinner",
|
|
685
656
|
"declaration": {
|
|
686
|
-
"name": "
|
|
657
|
+
"name": "$e",
|
|
687
658
|
"module": "dist/primer-loader.js"
|
|
688
659
|
}
|
|
689
660
|
},
|
|
@@ -691,7 +662,7 @@
|
|
|
691
662
|
"kind": "js",
|
|
692
663
|
"name": "VaultCvvInput",
|
|
693
664
|
"declaration": {
|
|
694
|
-
"name": "
|
|
665
|
+
"name": "Q",
|
|
695
666
|
"module": "dist/primer-loader.js"
|
|
696
667
|
}
|
|
697
668
|
},
|
|
@@ -699,7 +670,7 @@
|
|
|
699
670
|
"kind": "js",
|
|
700
671
|
"name": "VaultDeleteConfirmation",
|
|
701
672
|
"declaration": {
|
|
702
|
-
"name": "
|
|
673
|
+
"name": "Ie",
|
|
703
674
|
"module": "dist/primer-loader.js"
|
|
704
675
|
}
|
|
705
676
|
},
|
|
@@ -707,7 +678,7 @@
|
|
|
707
678
|
"kind": "js",
|
|
708
679
|
"name": "VaultEmptyState",
|
|
709
680
|
"declaration": {
|
|
710
|
-
"name": "
|
|
681
|
+
"name": "st",
|
|
711
682
|
"module": "dist/primer-loader.js"
|
|
712
683
|
}
|
|
713
684
|
},
|
|
@@ -715,7 +686,7 @@
|
|
|
715
686
|
"kind": "js",
|
|
716
687
|
"name": "VaultErrorMessage",
|
|
717
688
|
"declaration": {
|
|
718
|
-
"name": "
|
|
689
|
+
"name": "Qe",
|
|
719
690
|
"module": "dist/primer-loader.js"
|
|
720
691
|
}
|
|
721
692
|
},
|
|
@@ -723,7 +694,7 @@
|
|
|
723
694
|
"kind": "js",
|
|
724
695
|
"name": "VaultManager",
|
|
725
696
|
"declaration": {
|
|
726
|
-
"name": "
|
|
697
|
+
"name": "q",
|
|
727
698
|
"module": "dist/primer-loader.js"
|
|
728
699
|
}
|
|
729
700
|
},
|
|
@@ -731,7 +702,7 @@
|
|
|
731
702
|
"kind": "js",
|
|
732
703
|
"name": "VaultManagerHeader",
|
|
733
704
|
"declaration": {
|
|
734
|
-
"name": "
|
|
705
|
+
"name": "Ge",
|
|
735
706
|
"module": "dist/primer-loader.js"
|
|
736
707
|
}
|
|
737
708
|
},
|
|
@@ -747,7 +718,7 @@
|
|
|
747
718
|
"kind": "js",
|
|
748
719
|
"name": "VaultPaymentSubmit",
|
|
749
720
|
"declaration": {
|
|
750
|
-
"name": "
|
|
721
|
+
"name": "ae",
|
|
751
722
|
"module": "dist/primer-loader.js"
|
|
752
723
|
}
|
|
753
724
|
},
|
|
@@ -755,7 +726,7 @@
|
|
|
755
726
|
"kind": "js",
|
|
756
727
|
"name": "injectDarkTheme",
|
|
757
728
|
"declaration": {
|
|
758
|
-
"name": "
|
|
729
|
+
"name": "Cp",
|
|
759
730
|
"module": "dist/primer-loader.js"
|
|
760
731
|
}
|
|
761
732
|
},
|
|
@@ -763,7 +734,7 @@
|
|
|
763
734
|
"kind": "js",
|
|
764
735
|
"name": "injectLightTheme",
|
|
765
736
|
"declaration": {
|
|
766
|
-
"name": "
|
|
737
|
+
"name": "Ap",
|
|
767
738
|
"module": "dist/primer-loader.js"
|
|
768
739
|
}
|
|
769
740
|
},
|
|
@@ -771,7 +742,7 @@
|
|
|
771
742
|
"kind": "js",
|
|
772
743
|
"name": "injectLoaderStyles",
|
|
773
744
|
"declaration": {
|
|
774
|
-
"name": "
|
|
745
|
+
"name": "Cs",
|
|
775
746
|
"module": "dist/primer-loader.js"
|
|
776
747
|
}
|
|
777
748
|
},
|
|
@@ -779,7 +750,7 @@
|
|
|
779
750
|
"kind": "js",
|
|
780
751
|
"name": "injectThemeStyles",
|
|
781
752
|
"declaration": {
|
|
782
|
-
"name": "
|
|
753
|
+
"name": "Ms",
|
|
783
754
|
"module": "dist/primer-loader.js"
|
|
784
755
|
}
|
|
785
756
|
},
|
|
@@ -787,12 +758,41 @@
|
|
|
787
758
|
"kind": "js",
|
|
788
759
|
"name": "loadPrimer",
|
|
789
760
|
"declaration": {
|
|
790
|
-
"name": "
|
|
761
|
+
"name": "iB",
|
|
791
762
|
"module": "dist/primer-loader.js"
|
|
792
763
|
}
|
|
793
764
|
}
|
|
794
765
|
]
|
|
795
766
|
},
|
|
767
|
+
{
|
|
768
|
+
"kind": "javascript-module",
|
|
769
|
+
"path": "e2e/utils.ts",
|
|
770
|
+
"declarations": [
|
|
771
|
+
{
|
|
772
|
+
"kind": "variable",
|
|
773
|
+
"name": "test",
|
|
774
|
+
"default": "chromaticTest"
|
|
775
|
+
}
|
|
776
|
+
],
|
|
777
|
+
"exports": [
|
|
778
|
+
{
|
|
779
|
+
"kind": "js",
|
|
780
|
+
"name": "expect",
|
|
781
|
+
"declaration": {
|
|
782
|
+
"name": "expect",
|
|
783
|
+
"package": "@chromatic-com/playwright"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"kind": "js",
|
|
788
|
+
"name": "test",
|
|
789
|
+
"declaration": {
|
|
790
|
+
"name": "test",
|
|
791
|
+
"module": "e2e/utils.ts"
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
]
|
|
795
|
+
},
|
|
796
796
|
{
|
|
797
797
|
"kind": "javascript-module",
|
|
798
798
|
"path": "src/consts.ts",
|
|
@@ -1682,65 +1682,115 @@
|
|
|
1682
1682
|
},
|
|
1683
1683
|
{
|
|
1684
1684
|
"kind": "javascript-module",
|
|
1685
|
-
"path": "
|
|
1685
|
+
"path": "dist/chunks/ar.44J7SJG6.js",
|
|
1686
1686
|
"declarations": [
|
|
1687
1687
|
{
|
|
1688
1688
|
"kind": "variable",
|
|
1689
|
-
"name": "
|
|
1690
|
-
"
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1689
|
+
"name": "o",
|
|
1690
|
+
"default": "e"
|
|
1691
|
+
}
|
|
1692
|
+
],
|
|
1693
|
+
"exports": [
|
|
1694
|
+
{
|
|
1695
|
+
"kind": "js",
|
|
1696
|
+
"name": "templates",
|
|
1697
|
+
"declaration": {
|
|
1698
|
+
"name": "o",
|
|
1699
|
+
"module": "dist/chunks/ar.44J7SJG6.js"
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
]
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"kind": "javascript-module",
|
|
1706
|
+
"path": "dist/chunks/bg.LT2YIFOH.js",
|
|
1707
|
+
"declarations": [
|
|
1695
1708
|
{
|
|
1696
1709
|
"kind": "variable",
|
|
1697
|
-
"name": "
|
|
1698
|
-
"
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1710
|
+
"name": "o",
|
|
1711
|
+
"default": "e"
|
|
1712
|
+
}
|
|
1713
|
+
],
|
|
1714
|
+
"exports": [
|
|
1715
|
+
{
|
|
1716
|
+
"kind": "js",
|
|
1717
|
+
"name": "templates",
|
|
1718
|
+
"declaration": {
|
|
1719
|
+
"name": "o",
|
|
1720
|
+
"module": "dist/chunks/bg.LT2YIFOH.js"
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
]
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"kind": "javascript-module",
|
|
1727
|
+
"path": "dist/chunks/ca.KUW6ECYF.js",
|
|
1728
|
+
"declarations": [
|
|
1703
1729
|
{
|
|
1704
1730
|
"kind": "variable",
|
|
1705
|
-
"name": "
|
|
1706
|
-
"
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1731
|
+
"name": "i",
|
|
1732
|
+
"default": "a"
|
|
1733
|
+
}
|
|
1734
|
+
],
|
|
1735
|
+
"exports": [
|
|
1736
|
+
{
|
|
1737
|
+
"kind": "js",
|
|
1738
|
+
"name": "templates",
|
|
1739
|
+
"declaration": {
|
|
1740
|
+
"name": "i",
|
|
1741
|
+
"module": "dist/chunks/ca.KUW6ECYF.js"
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
]
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"kind": "javascript-module",
|
|
1748
|
+
"path": "dist/chunks/chunk.DV3REKZU.js",
|
|
1749
|
+
"declarations": [
|
|
1711
1750
|
{
|
|
1712
1751
|
"kind": "function",
|
|
1713
|
-
"name": "
|
|
1752
|
+
"name": "k",
|
|
1714
1753
|
"parameters": [
|
|
1715
1754
|
{
|
|
1716
|
-
"name": "
|
|
1717
|
-
"type": {
|
|
1718
|
-
"text": "Page"
|
|
1719
|
-
}
|
|
1755
|
+
"name": "c"
|
|
1720
1756
|
}
|
|
1721
1757
|
]
|
|
1722
1758
|
},
|
|
1723
1759
|
{
|
|
1724
|
-
"kind": "
|
|
1725
|
-
"name": "
|
|
1726
|
-
"
|
|
1727
|
-
{
|
|
1728
|
-
"name": "page",
|
|
1729
|
-
"type": {
|
|
1730
|
-
"text": "Page"
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
]
|
|
1760
|
+
"kind": "variable",
|
|
1761
|
+
"name": "b",
|
|
1762
|
+
"default": "c[a]"
|
|
1734
1763
|
},
|
|
1735
1764
|
{
|
|
1736
1765
|
"kind": "function",
|
|
1737
|
-
"name": "
|
|
1766
|
+
"name": "l",
|
|
1738
1767
|
"parameters": [
|
|
1739
1768
|
{
|
|
1740
|
-
"name": "
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1769
|
+
"name": "c"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "a"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"name": "b"
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
"name": "e"
|
|
1779
|
+
}
|
|
1780
|
+
]
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"kind": "function",
|
|
1784
|
+
"name": "m",
|
|
1785
|
+
"parameters": [
|
|
1786
|
+
{
|
|
1787
|
+
"name": "c"
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
"name": "a"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"name": "b"
|
|
1744
1794
|
}
|
|
1745
1795
|
]
|
|
1746
1796
|
}
|
|
@@ -1748,487 +1798,187 @@
|
|
|
1748
1798
|
"exports": [
|
|
1749
1799
|
{
|
|
1750
1800
|
"kind": "js",
|
|
1751
|
-
"name": "
|
|
1752
|
-
"declaration": {
|
|
1753
|
-
"name": "settings",
|
|
1754
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
1755
|
-
}
|
|
1756
|
-
},
|
|
1757
|
-
{
|
|
1758
|
-
"kind": "js",
|
|
1759
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1760
|
-
"declaration": {
|
|
1761
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1762
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
1763
|
-
}
|
|
1764
|
-
},
|
|
1765
|
-
{
|
|
1766
|
-
"kind": "js",
|
|
1767
|
-
"name": "CARD_NUMBER",
|
|
1768
|
-
"declaration": {
|
|
1769
|
-
"name": "CARD_NUMBER",
|
|
1770
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
1771
|
-
}
|
|
1772
|
-
},
|
|
1773
|
-
{
|
|
1774
|
-
"kind": "js",
|
|
1775
|
-
"name": "mockBinData",
|
|
1801
|
+
"name": "a",
|
|
1776
1802
|
"declaration": {
|
|
1777
|
-
"name": "
|
|
1778
|
-
"module": "
|
|
1803
|
+
"name": "k",
|
|
1804
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
1779
1805
|
}
|
|
1780
1806
|
},
|
|
1781
1807
|
{
|
|
1782
1808
|
"kind": "js",
|
|
1783
|
-
"name": "
|
|
1809
|
+
"name": "b",
|
|
1784
1810
|
"declaration": {
|
|
1785
|
-
"name": "
|
|
1786
|
-
"module": "
|
|
1811
|
+
"name": "l",
|
|
1812
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
1787
1813
|
}
|
|
1788
1814
|
},
|
|
1789
1815
|
{
|
|
1790
1816
|
"kind": "js",
|
|
1791
|
-
"name": "
|
|
1817
|
+
"name": "c",
|
|
1792
1818
|
"declaration": {
|
|
1793
|
-
"name": "
|
|
1794
|
-
"module": "
|
|
1819
|
+
"name": "m",
|
|
1820
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
1795
1821
|
}
|
|
1796
1822
|
}
|
|
1797
1823
|
]
|
|
1798
1824
|
},
|
|
1799
1825
|
{
|
|
1800
1826
|
"kind": "javascript-module",
|
|
1801
|
-
"path": "
|
|
1827
|
+
"path": "dist/chunks/chunk.TIWM3PQ7.js",
|
|
1802
1828
|
"declarations": [
|
|
1803
1829
|
{
|
|
1804
1830
|
"kind": "variable",
|
|
1805
|
-
"name": "
|
|
1806
|
-
"type": {
|
|
1807
|
-
"text": "string"
|
|
1808
|
-
},
|
|
1809
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI3NDUyNyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
1810
|
-
},
|
|
1811
|
-
{
|
|
1812
|
-
"kind": "variable",
|
|
1813
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1831
|
+
"name": "t",
|
|
1814
1832
|
"type": {
|
|
1815
1833
|
"text": "object"
|
|
1816
1834
|
},
|
|
1817
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, { type: 'CARD_INFORMATION', }, ], clientSession: { clientSessionId: '0d5f31b6-5848-49ce-9625-3254d5dd8a78', order: { orderId: '74527', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], fees: [ { type: 'SURCHARGE', amount: 0, }, ], }, customer: { customerId: 'Euler is the best', billingAddress: { firstName: 'Card', lastName: 'Holder Name', postalCode: '94043', addressLine1: '1600 Amphitheatre Parkway', countryCode: 'US', city: 'Mountain View', state: 'CA', }, }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '84100a01-523f-4347-ac44-e8a3e7083d9a', env: 'SANDBOX', paymentMethods: [ { id: 'e787b281-e4f9-4494-96e8-188917540654', type: 'ADYEN_IDEAL', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '4ad980f3-ccc7-5e8e-9a9c-81cd6f5214d4', }, processorConfigId: '9319ad4e-cd51-4517-9d46-bc7be244752a', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'e1b5e078-081c-4075-a3cc-5ebc779d36f2', type: 'KLARNA', options: { merchantId: 'Primer', merchantAccountId: 'b6902742-384a-5dfa-b1ff-7dcd02880dc3', clientId: 'Primer', }, processorConfigId: 'b70c2b11-e37f-41fe-9797-d3900f343a36', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4e9497d8-1503-4541-8ead-d88151ffa257', type: 'XFERS_PAYNOW', options: { merchantId: 'testi', merchantAccountId: '6fb12703-1795-55ac-875e-2e8476cb8390', }, processorConfigId: '545e5533-b575-4c61-aebe-dec49a836f1b', implementationType: 'NATIVE_SDK', name: 'Xfers', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-light@3x.png', }, backgroundColor: { colored: '#941C80', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#028BF4', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e407fb0-a2f8-4636-a5bc-f404ac757c68', type: 'PAYPAL', options: { merchantId: 'sb-iyjg882920702@business.example.com', merchantAccountId: 'e584f5c7-3c7f-5b58-b187-8e641b0cdce4', clientId: 'AXsZfsyf2jtpTpLQARwSeBurtfT6WiRjHQt1PodMf94gPH0iLwglSdSJ7ZAQT3tCHNZQL--VlrVfwscv', intent: 'authorize', }, processorConfigId: '573b0c98-d588-4223-973f-513a5b5a6177', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: 'c657ae04-c230-4be4-9615-9b822743e5e4', type: 'APPLE_PAY', options: { merchantId: '84100a01523f4347ac44e8a3e7083d9a', merchantName: 'DX QA Account', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '527ee4ff-2c66-4234-829f-d20480f3aa09', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1835
|
+
"default": "{accountHolder:\"Account Holder\",accountHolderEmail:\"me@domain.com\",accountHolderEmailErrorInvalid:\"Provided email is not valid\",accountHolderEmailErrorRequired:\"Account holder email is required\",accountHolderName:\"Account holder name\",accountHolderNameErrorRequired:\"Account holder name is required\",accountHolderNameLabel:\"Account holder name\",accountHolderNamePlaceholder:\"Account holder name\",addCard:\"Add Card\",additionalCardFees:\"Additional card fees may apply\",address:\"Address\",addressLine1:\"Address line 1\",addressLine1ErrorRequired:\"Address line 1 is required\",addressLine1Placeholder:\"Address line 1\",addressLine2:\"Address line 2\",addressLine2ErrorRequired:\"Address line 2 is required\",addressLine2Placeholder:\"Address line 2\",amount:\"Amount\",applePayFailedToTokenize:\"Failed to tokenize\",applePayMissingFirstNameOrLastName:\"Missing first name or last name\",bankHolderNameErrorRequired:\"Account holder name is required\",bankListErrorRequired:\"Bank is required\",bankListLabel:\"List of banks\",bankNameErrorRequired:\"Bank name is required\",bankNameLabel:\"Select your bank from the list\",bankNetworkErrorButton:\"Load again\",bankNetworkErrorTitle:\"Failed to load banks. Check your connection and try again.\",bankSearchInputPlaceholder:\"Search bank\",bankSelectTitle:\"Select your bank\",billingAddressLabel:\"Billing address\",cancel:\"Cancel\",cardCVV:\"CVV\",cardDescription:\"Card description (optional)\",cardDescriptionPlaceholder:\"My favourite card\",cardEndingWith:\"Card ending with\",cardExpired:\"Card has expired\",cardExpiry:\"Expiry (MM/YY)\",cardExpiryPlaceholder:\"MM/YY\",cardholderName:\"Name on card\",cardholderNameErrorRequired:\"Name on card is required\",cardholderNameLabel:\"Name on card\",cardholderNamePlaceholder:\"Full name\",cardIncomplete:\"Card number is incomplete\",cardInvalid:\"Card number is invalid\",cardNameContainsNumbers:\"Name cannot contain numbers\",cardNameLength:\"Name must have between 2 and 45 characters\",cardNameRequired:\"Name on card is required\",cardNumber:\"Card number\",cardRequired:\"Card number is required\",checkSuccessTitle:\"Your payment was successful!\",checkoutWith:\"Checkout with\",chooseAnotherPaymentMethod:\"Choose another payment method\",city:\"City\",cityErrorRequired:\"City is required\",cityLabel:\"City\",cityPlaceholder:\"Cape Town\",completeYourPayment:\"Complete your payment\",completeYourPaymentInTheApp:\"Complete your payment in %s\",confirm:\"Confirm\",confirmCardDeletion:\"Confirm - Delete Card\",confirmPayPalDeletion:\"Confirm - Delete PayPal\",confirmVaultedPaymentMethodDeletion:\"Yes, delete it\",countryCodeErrorRequired:\"Country is required\",countryCodeLabel:\"Country code\",countryCodePlaceholder:\"Country code\",countrySelectPlaceholder:\"Select a country\",creditOrDebitCard:\"Credit or debit card\",creditTransfer:\"Credit Transfer\",cvvIncomplete:\"CVV number is incomplete\",cvvInvalid3:\"CVV must be 3 digits\",cvvInvalid4:\"CVV must be 4 digits\",cvvRequired:\"CVV number is required\",delete:\"Delete\",digits:\"digits\",directDebit:\"Direct debit\",directDebitMandateTitle:\"SEPA Core Direct Debit Mandate\",directDebitSmallPrint:\"By signing this mandate form, you authorise (A) {companyName} to send instructions to your bank to debit your account and (B) your bank to debit your account in accordance with the instruction from {companyName}\",directDebitSuccessDescription:\"{companyName} will appear on your bank statement when payments are taken against the Direct Debit\",directDebitSuccessReference:\"Reference\",directDebitSuccessTitle:\"Direct Debit set up successfully\",dueAt:\"Due at\",dummyApmDescription:\"This is a mocked flow for sandbox. Choose the result you want to test from the list below:\",duplicatePaymentMethodError:\"This payment method is already saved.\",editPaymentMethods:\"Edit saved payment methods\",email:\"Email\",entity:\"Entity\",expiresAt:\"Expires at\",expiryIncomplete:\"Expiry date is incomplete\",expiryInvalid:\"Expiry date is invalid\",expiryMonthInvalid:\"Expiry date month is invalid\",expiryRequired:\"Expiry date is required\",expiryYearInvalid:\"Expiry date year is invalid\",fee_label_fallback:\"Fee\",firstNameErrorRequired:\"First name is required\",firstNameLabel:\"First name\",firstNamePlaceholder:\"First name\",forgetPaymentMethods:\"Forget payment methods\",forgetPayPal:\"Forget PayPal account\",forgetSavedCard:\"Forget saved card ending in {last4Digits}\",fullName:\"First and last name\",getCodeFromBankingApp:\"Get the code from your banking app\",giftCard:\"Gift card\",iban:\"IBAN\",ibanErrorInvalid:\"IBAN is invalid\",ibanErrorRequired:\"IBAN is required\",ibanPlaceholder:\"e.g. GB60 BARC 2000 0055 7799 11\",invalid:\"Invalid\",item_label_fallback:\"Item\",lastNameErrorRequired:\"Last name is required\",lastNameLabel:\"Last name\",lastNamePlaceholder:\"Last name\",loading:\"Loading...\",managePaymentMethods:\"Manage your payment methods\",multibancoFirstStep:\"Payment details for a Multibanco Reference will be created.\",multibancoPayWith:\"Pay with Multibanco\",multibancoPleaseMakePayment:\"Please make the payment at a Multibanco ATM, or through your home banking app.\",multibancoSecondStep:\"Go to a Multibanco ATM or login to your home banking app, then select \\u201CPay for Services\\u201D.\",multibancoThirdStep:\"Enter the Entity, Reference and Amount.\",navigateToPaymentMethods:\"Show other ways to pay\",newPaymentMethod:\"Add a new payment method\",noAdditionalFees:\"No additional fees\",otherWaysToPay:\"Other ways to pay\",pay_with_ach:\"Pay with ACH\",pay_with:\"Pay with\",pay:\"Pay\",payByCard:\"Pay by card\",payByImmediateTransfer:\"Pay by Immediate transfer\",payBySmartTransfer:\"Pay by Bank transfer\",payInInstallments:\"Pay in installments\",paymentMethodPopupLoadingScreenText:\"Hold on! {paymentMethodName} is loading.\",paymentMethodPopupOverlayBringBackThePaymentPage:\"Bring back the payment page\",paymentMethodPopupOverlayClose:\"Close\",paymentMethodPopupOverlayDescription:\"Having trouble viewing the {paymentMethodName} payment page? We'll help you find it!\",paymentMethodPopupOverlayNonFocusDescription:\"Open the {paymentMethodName} payment page to review your payment.\",paymentMethodTypeKlarna:\"Pay later\",paymentMethodTypeKlarnaAccount:\"Pay over time\",paymentMethodTypeKlarnaPaynow:\"Pay now\",payViaBankTransfer:\"Pay via bank transfer\",payWithAch:\"Pay with ACH\",payWithCard:\"Or pay with card\",payWithCrypto:\"Pay with crypto\",pleaseTransferFunds:\"Please Transfer funds to the provided DBS bank account using your Singapore based bank account via FAST (preferred), MEPS or GIRO.\",postalCode:\"Postal code\",postalCodeErrorRequired:\"Postal code is required\",postalCodeLabel:\"Postal code\",postalCodePlaceholder:\"90210\",previouslyUsed:\"Previously used:\",qrCode:\"QR Code\",reference:\"Reference\",required:\"Required\",retry_button:\"Retry\",savedPaymentMethodsEmpty:\"Enter your card details below to add a new payment method\",savePaymentMethod:\"Save payment method\",scanToPay:\"Scan to pay or take a screenshot\",sepaCreditTransfer:\"SEPA Credit Transfer\",sepaDirectDebit:\"SEPA Direct Debit\",session_complete_payment_cancellation_title:\"Payment cancelled\",session_complete_payment_failure_title:\"Payment failed\",session_complete_payment_success_title:\"Payment authorized\",setUpDirectDebit:\"Set up Direct Debit\",shipping_address_unsupported_error:\"We do not ship to this address\",shipping:\"Shipping\",subtotal:\"Subtotal\",showPaymentDetails:\"Show payment details\",sixDigitCodeErrorNumeric:\"Six digit code should only contain numbers\",sixDigitCodeErrorRequired:\"Six digit code is required\",sixDigitCodeErrorTooShort:\"Code is too short\",sixDigitCodeLabel:\"Six digit code\",sixDigitCodePlaceholder:\"123456\",something_went_wrong_error:\"Something went wrong. Please try again.\",stateErrorRequired:\"State, Region or County is required\",stateLabel:\"State / Region / County\",statePlaceholder:\"State / Region / County\",street:\"Street\",streetPlaceholder:\"My street\",stripe_ach_mandate_accept_button:\"Accept\",stripe_ach_mandate_cancel_payment_button:\"Cancel payment\",stripe_ach_mandate_not_accepted_description:\"Mandate was not accepted\",stripe_ach_mandate_template_web:`By clicking Accept, you authorize {merchantName} to debit the selected bank account for any amount owed for charges arising from your use of {merchantName}\\u2019s services and/or purchase of products from {merchantName}, pursuant to {merchantName}\\u2019s website and terms, until this authorization is revoked. You may amend or cancel this authorization at any time by providing notice to {merchantName} with 30 (thirty) days notice. If you use {merchantName}\\u2019s services or purchase additional products periodically pursuant to {merchantName}\\u2019s terms, you authorize {merchantName} to debit your bank account periodically. Payments that fall outside the regular debits authorized above will only be debited after your authorization is obtained.`,stripe_ach_payment_request_cancelled:\"Please try again or select another bank\",stripe_ach_payment_request_completed_successfully:\"You have now authorized your bank account to be debited. You will be notified via email once the payment has been collected successfully.\",stripe_ach_user_details_collection_continue_button:\"Continue\",stripe_ach_user_details_collection_data_usage_label:\"We'll only use this to keep you updated about your payment\",stripe_ach_user_details_collection_email_address_label:\"Email address\",stripe_ach_user_details_collection_first_name_label:\"First name\",stripe_ach_user_details_collection_invalid_email_address:\"The email address you entered doesn't look like a real email address. Please make sure it includes an '@' and a domain (like '@example.com').\",stripe_ach_user_details_collection_invalid_first_name:\"Please enter a valid first name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_invalid_last_name:\"Please enter a valid last name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_last_name_label:\"Last name\",stripe_ach_user_details_collection_subtitle_label:\"Your personal details\",suburb:\"Suburb\",suburbPlaceholder:\"My suburb\",telephoneNumberErrorRequired:\"Phone number is required\",telephoneNumberErrorTooShort:\"Phone number is too short\",telephoneNumberLabel:\"Phone number\",telephoneNumberPlaceholder:\"123xxxxxx\",timeOnDate:\"{time} on {date}\",tokenizationError:\"Your payment could not be processed. Please try another payment method.\",unsupportedCardType:\"Unsupported card type\",uploadScreenshot:\"Upload the screenshot in your banking app\",yourBankDetails:\"Your bank details\"}"
|
|
1818
1836
|
}
|
|
1819
1837
|
],
|
|
1820
1838
|
"exports": [
|
|
1821
1839
|
{
|
|
1822
1840
|
"kind": "js",
|
|
1823
|
-
"name": "
|
|
1824
|
-
"declaration": {
|
|
1825
|
-
"name": "settings",
|
|
1826
|
-
"module": "e2e/mocks/card-3ds.ts"
|
|
1827
|
-
}
|
|
1828
|
-
},
|
|
1829
|
-
{
|
|
1830
|
-
"kind": "js",
|
|
1831
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1841
|
+
"name": "a",
|
|
1832
1842
|
"declaration": {
|
|
1833
|
-
"name": "
|
|
1834
|
-
"module": "
|
|
1843
|
+
"name": "t",
|
|
1844
|
+
"module": "dist/chunks/chunk.TIWM3PQ7.js"
|
|
1835
1845
|
}
|
|
1836
1846
|
}
|
|
1837
1847
|
]
|
|
1838
1848
|
},
|
|
1839
1849
|
{
|
|
1840
1850
|
"kind": "javascript-module",
|
|
1841
|
-
"path": "
|
|
1851
|
+
"path": "dist/chunks/cs.XQGMKIF3.js",
|
|
1842
1852
|
"declarations": [
|
|
1843
1853
|
{
|
|
1844
1854
|
"kind": "variable",
|
|
1845
|
-
"name": "
|
|
1846
|
-
"
|
|
1847
|
-
"text": "string"
|
|
1848
|
-
},
|
|
1849
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6ZmFsc2V9fQ=='"
|
|
1850
|
-
},
|
|
1851
|
-
{
|
|
1852
|
-
"kind": "variable",
|
|
1853
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1854
|
-
"type": {
|
|
1855
|
-
"text": "object"
|
|
1856
|
-
},
|
|
1857
|
-
"default": "{ coreUrl: 'https://api.staging.primer.io', pciUrl: 'https://sdk.api.staging.primer.io', binDataUrl: 'https://bin-data.api.staging.core.primer.io', assetsUrl: 'https://assets.staging.core.primer.io', checkoutModules: [ { type: 'CARD_INFORMATION', options: { cardHolderName: true, cardholderName: true, }, }, { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, ], clientSession: { clientSessionId: '7430ecc6-a520-4353-bf03-030bb09ba4b7', order: { orderId: '34775', currencyCode: 'EUR', countryCode: 'GB', totalOrderAmount: 1000, merchantAmount: 1000, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 1000, quantity: 1, }, ], }, customer: { customerId: 'airwallex-customer-id-demo', }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: 'd634b2c6-17d8-4347-bac0-df642c2d6469', env: 'STAGING', paymentMethods: [ { id: 'd2862cfb-05a8-4304-9d80-6652450d19d7', type: 'AFTERPAY', options: { merchantId: 'wont-work', merchantAccountId: '04070052-bcd7-5d2f-92d0-70d1c9b30ce0', }, processorConfigId: '2805ab6e-6b0b-40e2-9d65-1e5c800a530e', implementationType: 'WEB_REDIRECT', name: 'Afterpay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#000000', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#000000', dark: '#FFFFFF', light: '#000000', }, textColor: { dark: '#FFFFFF', light: '#FFFFFF', }, iconPositionRelativeToText: 'END', }, }, forceRedirect: false, implementation: {}, }, { id: 'f4105e92-bf54-4652-a7ac-63a2adf3a96d', type: 'ALMA', options: { merchantId: '9b7d77ef-4862-4900-902c-8ff623476826', merchantAccountId: 'e11ef8e1-10a8-542d-924d-ae0546a03d35', }, processorConfigId: '9b7d77ef-4862-4900-902c-8ff623476826', implementationType: 'WEB_REDIRECT', name: 'Alma', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/ALMA/alma-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/ALMA/alma-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/ALMA/alma-logo@3x.png', }, backgroundColor: { colored: '#FA5022', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#FA5022', dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '588df103-82e2-4888-bf49-63f0182e516e', type: 'BRAINTREE_VENMO', options: { merchantId: 'primer', merchantAccountId: '4dd30736-e360-5562-994a-b9de0dc2c2da', }, processorConfigId: '99b3dd12-2d18-48b4-a700-acd8f7943bcb', implementationType: 'WEB_REDIRECT', name: 'Venmo', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/VENMO/venmo-logo@3x.png', dark: 'https://assets.staging.core.primer.io/VENMO/venmo-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/VENMO/venmo-logo-light@3x.png', }, backgroundColor: { colored: '#008CFF', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4cc272a3-69eb-46b6-9938-cd672d7a7cbd', type: 'ADYEN_MULTIBANCO', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'NATIVE_SDK', name: 'Multibanco', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo@3x.png', dark: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo@3x.png', light: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: { headless: { supportedManagerCategories: ['RAW_DATA'], }, events: [ { eventType: 'ON_START', uiAction: { actionType: 'NAVIGATE', screenId: 'start_screen', }, }, { eventType: 'ON_REQUIRED_ACTION_RECEIVED', uiAction: { actionType: 'NAVIGATE', screenId: 'voucher_screen', }, }, { eventType: 'ON_ERROR', uiAction: { actionType: 'NAVIGATE', screenId: 'error_screen', }, }, ], screens: [ { screenId: 'start_screen', isBackButtonEnabled: true, isShareButtonEnabled: false, orientation: 'VERTICAL', components: [ { style: { margin: { top: 'S', }, textStyle: 'TITLE', }, }, {}, ], }, { screenId: 'voucher_screen', isBackButtonEnabled: true, isShareButtonEnabled: true, orientation: 'VERTICAL', components: [ { style: { margin: { top: 'S', }, textStyle: 'TITLE', }, }, { orientation: 'HORIZONTAL', components: [ { style: { margin: { top: 'S', }, alignmentInParent: 'RIGHT', textStyle: 'TITLE', }, }, { style: { margin: { top: 'S', }, alignmentInParent: 'LEFT', textStyle: 'TITLE', }, }, ], alignment: 'FILL', distribution: 'FILL', }, { orientation: 'HORIZONTAL', components: [ { style: { margin: { top: 'S', }, alignmentInParent: 'RIGHT', textStyle: 'TITLE', }, }, { style: { margin: { top: 'S', }, alignmentInParent: 'LEFT', textStyle: 'TITLE', }, }, {}, ], alignment: 'FILL', distribution: 'FILL', }, ], }, { screenId: 'error_screen', isBackButtonEnabled: false, isShareButtonEnabled: false, orientation: 'VERTICAL', components: [{}], }, ], }, }, { id: '642bb622-b133-4445-904e-0e844967d4bb', type: 'FINTECTURE_IMMEDIATE_TRANSFER', options: { merchantId: '15808a62-2ac5-458b-b1b6-0ca0bce2d690', merchantAccountId: '55bbc227-ddf7-57f9-a0e8-4ebde5505ce5', }, processorConfigId: '15808a62-2ac5-458b-b1b6-0ca0bce2d690', implementationType: 'WEB_REDIRECT', name: 'Fintecture Immediate Transfer', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/FINTECTURE/inverted@3x.png', light: 'https://assets.staging.core.primer.io/FINTECTURE/default@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by Immediate transfer', textColor: { dark: '#FFFFFF', light: '#000000', }, iconPositionRelativeToText: 'START', }, }, forceRedirect: true, implementation: {}, }, { id: '8f057fb9-2737-44f4-aca8-7021ca5689bc', type: 'APPLE_PAY', options: { merchantId: 'd634b2c617d84347bac0df642c2d6469', merchantName: 'Connections', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '418673aa-954f-4f3e-89e9-d447574a1e14', type: 'SIPS_CPAY', options: { merchantId: '789b21f7-bd18-42f7-8ce8-a0d7320ec3ad', merchantAccountId: '946e95a0-63d0-5afd-9389-c4aea5a9b1fa', }, processorConfigId: '789b21f7-bd18-42f7-8ce8-a0d7320ec3ad', implementationType: 'WEB_REDIRECT', name: 'Cpay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/CPAY/cpay-logo@3x.png', dark: 'https://assets.staging.core.primer.io/CPAY/cpay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/CPAY/cpay-logo-light@3x.png', }, backgroundColor: { colored: '#FFFFFF', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, popup: { width: 830, height: 1000, }, }, forceRedirect: false, implementation: {}, }, { id: 'ba29b47f-bd66-46d6-a3e3-aa27c3b1d110', type: 'ADYEN_ALIPAY', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'WEB_REDIRECT', name: 'Alipay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo@3x.png', dark: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo-light@3x.png', }, backgroundColor: { colored: '#31B1F0', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'd5b11ef6-c0da-4b85-9095-cc260ddeb009', type: 'ADYEN_VIPPS', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'WEB_REDIRECT', name: 'Vipps', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo@3x.png', dark: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo-light@3x.png', }, backgroundColor: { colored: '#FF5B24', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'd180c74e-3616-4ada-b9ae-b9ad1c554efe', type: 'TRIPLE_A', options: { merchantId: '13eb240b-3da3-43a4-b8a8-1648d6c8cf99', merchantAccountId: 'ebac4f47-a9be-5523-94a9-6b381619ce07', }, processorConfigId: '13eb240b-3da3-43a4-b8a8-1648d6c8cf99', implementationType: 'WEB_REDIRECT', name: 'Triple-A', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/TRIPLE_A/triplea-logo@3x.png', light: 'https://assets.staging.core.primer.io/TRIPLE_A/triplea-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay with Crypto', textColor: { dark: '#FFFFFF', light: '#000000', }, iconPositionRelativeToText: 'END', }, popup: { width: 830, height: 1000, }, }, forceRedirect: false, implementation: {}, }, { id: 'fe2aa1da-6cad-41dc-885f-ea5483f49441', type: 'PAYPAL', options: { merchantId: 'sb-gmcgm25177732@business.example.com', merchantAccountId: 'bc5908a7-3b62-5696-804b-274eaa68fc3e', clientId: 'AcTGoAPNhwfbSPbiVYSlrUGwTBGijs6GvFGci2R3QI1jlu5ewofPFq0yZDm-Rka07c1FtY4DVnsRerPK', intent: 'authorize', }, processorConfigId: '0a5952b4-cbdf-49b6-a982-022bc0bd0f7f', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: '5f36bcaa-6479-4f4a-87ab-b526348c520f', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4bf74ad3-1d02-43f8-9d4e-f9825e5b48c5', type: 'PAYMENT_CARD', options: { merchantId: 'test', merchantAccountId: '46c7a690-924b-5b5e-a651-6a962f926b07', }, processorConfigId: 'e4dd8fc6-293f-4208-9160-fbfbfd6b0a4c', implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4bf74ad3-1d02-43f8-9d4e-f9825e5b48c5', type: 'PAYMENT_CARD', options: { merchantId: 'test', merchantAccountId: '46c7a690-924b-5b5e-a651-6a962f926b07', }, processorConfigId: 'e4dd8fc6-293f-4208-9160-fbfbfd6b0a4c', implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1858
|
-
},
|
|
1859
|
-
{
|
|
1860
|
-
"kind": "variable",
|
|
1861
|
-
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
1862
|
-
"type": {
|
|
1863
|
-
"text": "string"
|
|
1864
|
-
},
|
|
1865
|
-
"default": "'4035 5010 0000 0008'"
|
|
1866
|
-
},
|
|
1867
|
-
{
|
|
1868
|
-
"kind": "variable",
|
|
1869
|
-
"name": "FAILURE_CARD_NUMBER",
|
|
1870
|
-
"type": {
|
|
1871
|
-
"text": "string"
|
|
1872
|
-
},
|
|
1873
|
-
"default": "'4242 4242 4242 4242'"
|
|
1874
|
-
},
|
|
1875
|
-
{
|
|
1876
|
-
"kind": "function",
|
|
1877
|
-
"name": "mockPaymentInstruments",
|
|
1878
|
-
"parameters": [
|
|
1879
|
-
{
|
|
1880
|
-
"name": "page",
|
|
1881
|
-
"type": {
|
|
1882
|
-
"text": "Page"
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
]
|
|
1886
|
-
},
|
|
1887
|
-
{
|
|
1888
|
-
"kind": "function",
|
|
1889
|
-
"name": "mockPayments",
|
|
1890
|
-
"parameters": [
|
|
1891
|
-
{
|
|
1892
|
-
"name": "page",
|
|
1893
|
-
"type": {
|
|
1894
|
-
"text": "Page"
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
]
|
|
1898
|
-
},
|
|
1899
|
-
{
|
|
1900
|
-
"kind": "function",
|
|
1901
|
-
"name": "mockPaymentInstrumentsFailure",
|
|
1902
|
-
"parameters": [
|
|
1903
|
-
{
|
|
1904
|
-
"name": "page",
|
|
1905
|
-
"type": {
|
|
1906
|
-
"text": "Page"
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
]
|
|
1910
|
-
},
|
|
1911
|
-
{
|
|
1912
|
-
"kind": "function",
|
|
1913
|
-
"name": "mockPaymentsFailure",
|
|
1914
|
-
"parameters": [
|
|
1915
|
-
{
|
|
1916
|
-
"name": "page",
|
|
1917
|
-
"type": {
|
|
1918
|
-
"text": "Page"
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
]
|
|
1855
|
+
"name": "n",
|
|
1856
|
+
"default": "e"
|
|
1922
1857
|
}
|
|
1923
1858
|
],
|
|
1924
1859
|
"exports": [
|
|
1925
1860
|
{
|
|
1926
1861
|
"kind": "js",
|
|
1927
|
-
"name": "
|
|
1928
|
-
"declaration": {
|
|
1929
|
-
"name": "settings",
|
|
1930
|
-
"module": "e2e/mocks/card-basic.ts"
|
|
1931
|
-
}
|
|
1932
|
-
},
|
|
1933
|
-
{
|
|
1934
|
-
"kind": "js",
|
|
1935
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1936
|
-
"declaration": {
|
|
1937
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1938
|
-
"module": "e2e/mocks/card-basic.ts"
|
|
1939
|
-
}
|
|
1940
|
-
},
|
|
1941
|
-
{
|
|
1942
|
-
"kind": "js",
|
|
1943
|
-
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
1944
|
-
"declaration": {
|
|
1945
|
-
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
1946
|
-
"module": "e2e/mocks/card-basic.ts"
|
|
1947
|
-
}
|
|
1948
|
-
},
|
|
1949
|
-
{
|
|
1950
|
-
"kind": "js",
|
|
1951
|
-
"name": "FAILURE_CARD_NUMBER",
|
|
1952
|
-
"declaration": {
|
|
1953
|
-
"name": "FAILURE_CARD_NUMBER",
|
|
1954
|
-
"module": "e2e/mocks/card-basic.ts"
|
|
1955
|
-
}
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
"kind": "js",
|
|
1959
|
-
"name": "mockPaymentInstruments",
|
|
1960
|
-
"declaration": {
|
|
1961
|
-
"name": "mockPaymentInstruments",
|
|
1962
|
-
"module": "e2e/mocks/card-basic.ts"
|
|
1963
|
-
}
|
|
1964
|
-
},
|
|
1965
|
-
{
|
|
1966
|
-
"kind": "js",
|
|
1967
|
-
"name": "mockPayments",
|
|
1862
|
+
"name": "templates",
|
|
1968
1863
|
"declaration": {
|
|
1969
|
-
"name": "
|
|
1970
|
-
"module": "
|
|
1864
|
+
"name": "n",
|
|
1865
|
+
"module": "dist/chunks/cs.XQGMKIF3.js"
|
|
1971
1866
|
}
|
|
1972
|
-
}
|
|
1867
|
+
}
|
|
1868
|
+
]
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
"kind": "javascript-module",
|
|
1872
|
+
"path": "dist/chunks/da.HKIIDZRJ.js",
|
|
1873
|
+
"declarations": [
|
|
1973
1874
|
{
|
|
1974
|
-
"kind": "
|
|
1975
|
-
"name": "
|
|
1976
|
-
"
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
},
|
|
1875
|
+
"kind": "variable",
|
|
1876
|
+
"name": "a",
|
|
1877
|
+
"default": "e"
|
|
1878
|
+
}
|
|
1879
|
+
],
|
|
1880
|
+
"exports": [
|
|
1981
1881
|
{
|
|
1982
1882
|
"kind": "js",
|
|
1983
|
-
"name": "
|
|
1883
|
+
"name": "templates",
|
|
1984
1884
|
"declaration": {
|
|
1985
|
-
"name": "
|
|
1986
|
-
"module": "
|
|
1885
|
+
"name": "a",
|
|
1886
|
+
"module": "dist/chunks/da.HKIIDZRJ.js"
|
|
1987
1887
|
}
|
|
1988
1888
|
}
|
|
1989
1889
|
]
|
|
1990
1890
|
},
|
|
1991
1891
|
{
|
|
1992
1892
|
"kind": "javascript-module",
|
|
1993
|
-
"path": "
|
|
1893
|
+
"path": "dist/chunks/de.O6IUA6FB.js",
|
|
1994
1894
|
"declarations": [
|
|
1995
1895
|
{
|
|
1996
1896
|
"kind": "variable",
|
|
1997
|
-
"name": "
|
|
1998
|
-
"
|
|
1999
|
-
"text": "string"
|
|
2000
|
-
},
|
|
2001
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI0NTg1OCIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJERSIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50Ijo2MDAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6e30sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
2002
|
-
},
|
|
2003
|
-
{
|
|
2004
|
-
"kind": "variable",
|
|
2005
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2006
|
-
"type": {
|
|
2007
|
-
"text": "object"
|
|
2008
|
-
},
|
|
2009
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, { type: 'CARD_INFORMATION', }, ], clientSession: { clientSessionId: 'ff9ecd24-537f-4928-a8e4-5534d2375200', order: { orderId: '45858', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], }, customer: { customerId: 'Euler is the best', }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '84100a01-523f-4347-ac44-e8a3e7083d9a', env: 'SANDBOX', paymentMethods: [ { id: 'e787b281-e4f9-4494-96e8-188917540654', type: 'ADYEN_IDEAL', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '4ad980f3-ccc7-5e8e-9a9c-81cd6f5214d4', }, processorConfigId: '9319ad4e-cd51-4517-9d46-bc7be244752a', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'e1b5e078-081c-4075-a3cc-5ebc779d36f2', type: 'KLARNA', options: { merchantId: 'Primer', merchantAccountId: 'b6902742-384a-5dfa-b1ff-7dcd02880dc3', clientId: 'Primer', }, processorConfigId: 'b70c2b11-e37f-41fe-9797-d3900f343a36', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4e9497d8-1503-4541-8ead-d88151ffa257', type: 'XFERS_PAYNOW', options: { merchantId: 'testi', merchantAccountId: '6fb12703-1795-55ac-875e-2e8476cb8390', }, processorConfigId: '545e5533-b575-4c61-aebe-dec49a836f1b', implementationType: 'NATIVE_SDK', name: 'Xfers', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-light@3x.png', }, backgroundColor: { colored: '#941C80', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#028BF4', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e407fb0-a2f8-4636-a5bc-f404ac757c68', type: 'PAYPAL', options: { merchantId: 'sb-iyjg882920702@business.example.com', merchantAccountId: 'e584f5c7-3c7f-5b58-b187-8e641b0cdce4', clientId: 'AXsZfsyf2jtpTpLQARwSeBurtfT6WiRjHQt1PodMf94gPH0iLwglSdSJ7ZAQT3tCHNZQL--VlrVfwscv', intent: 'authorize', }, processorConfigId: '573b0c98-d588-4223-973f-513a5b5a6177', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: 'c657ae04-c230-4be4-9615-9b822743e5e4', type: 'APPLE_PAY', options: { merchantId: '84100a01523f4347ac44e8a3e7083d9a', merchantName: 'DX QA Account', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '527ee4ff-2c66-4234-829f-d20480f3aa09', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1897
|
+
"name": "t",
|
|
1898
|
+
"default": "e"
|
|
2010
1899
|
}
|
|
2011
1900
|
],
|
|
2012
1901
|
"exports": [
|
|
2013
1902
|
{
|
|
2014
1903
|
"kind": "js",
|
|
2015
|
-
"name": "
|
|
2016
|
-
"declaration": {
|
|
2017
|
-
"name": "settings",
|
|
2018
|
-
"module": "e2e/mocks/klarna.ts"
|
|
2019
|
-
}
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
"kind": "js",
|
|
2023
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1904
|
+
"name": "templates",
|
|
2024
1905
|
"declaration": {
|
|
2025
|
-
"name": "
|
|
2026
|
-
"module": "
|
|
1906
|
+
"name": "t",
|
|
1907
|
+
"module": "dist/chunks/de.O6IUA6FB.js"
|
|
2027
1908
|
}
|
|
2028
1909
|
}
|
|
2029
1910
|
]
|
|
2030
1911
|
},
|
|
2031
1912
|
{
|
|
2032
1913
|
"kind": "javascript-module",
|
|
2033
|
-
"path": "
|
|
1914
|
+
"path": "dist/chunks/el.F35KS4NO.js",
|
|
2034
1915
|
"declarations": [
|
|
2035
1916
|
{
|
|
2036
|
-
"kind": "
|
|
2037
|
-
"name": "
|
|
2038
|
-
"
|
|
2039
|
-
{
|
|
2040
|
-
"name": "page",
|
|
2041
|
-
"type": {
|
|
2042
|
-
"text": "Page"
|
|
2043
|
-
}
|
|
2044
|
-
},
|
|
2045
|
-
{
|
|
2046
|
-
"name": "config",
|
|
2047
|
-
"type": {
|
|
2048
|
-
"text": "unknown"
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
]
|
|
2052
|
-
},
|
|
2053
|
-
{
|
|
2054
|
-
"kind": "function",
|
|
2055
|
-
"name": "mockConfigurationCallSTG",
|
|
2056
|
-
"parameters": [
|
|
2057
|
-
{
|
|
2058
|
-
"name": "page",
|
|
2059
|
-
"type": {
|
|
2060
|
-
"text": "Page"
|
|
2061
|
-
}
|
|
2062
|
-
},
|
|
2063
|
-
{
|
|
2064
|
-
"name": "config",
|
|
2065
|
-
"type": {
|
|
2066
|
-
"text": "unknown"
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
]
|
|
1917
|
+
"kind": "variable",
|
|
1918
|
+
"name": "o",
|
|
1919
|
+
"default": "e"
|
|
2070
1920
|
}
|
|
2071
1921
|
],
|
|
2072
1922
|
"exports": [
|
|
2073
1923
|
{
|
|
2074
1924
|
"kind": "js",
|
|
2075
|
-
"name": "
|
|
2076
|
-
"declaration": {
|
|
2077
|
-
"name": "mockConfigurationCallSBX",
|
|
2078
|
-
"module": "e2e/mocks/shared.ts"
|
|
2079
|
-
}
|
|
2080
|
-
},
|
|
2081
|
-
{
|
|
2082
|
-
"kind": "js",
|
|
2083
|
-
"name": "mockConfigurationCallSTG",
|
|
1925
|
+
"name": "templates",
|
|
2084
1926
|
"declaration": {
|
|
2085
|
-
"name": "
|
|
2086
|
-
"module": "
|
|
1927
|
+
"name": "o",
|
|
1928
|
+
"module": "dist/chunks/el.F35KS4NO.js"
|
|
2087
1929
|
}
|
|
2088
1930
|
}
|
|
2089
1931
|
]
|
|
2090
1932
|
},
|
|
2091
1933
|
{
|
|
2092
1934
|
"kind": "javascript-module",
|
|
2093
|
-
"path": "
|
|
1935
|
+
"path": "dist/chunks/en-GB.PU23XE2E.js",
|
|
2094
1936
|
"declarations": [
|
|
2095
1937
|
{
|
|
2096
1938
|
"kind": "variable",
|
|
2097
|
-
"name": "
|
|
2098
|
-
"
|
|
2099
|
-
"text": "string"
|
|
2100
|
-
},
|
|
2101
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiIwODkzNTcwMTgyNTM2NyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwidmF1bHRPbkFncmVlbWVudCI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmMzA4ODVmMC04MjljLTRmMGEtYjIyMi1iN2Y1OWQzNzZlYWYiLCJhcGlWZXJzaW9uIjoiMi40IiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9LCJzZGtDb3JlIjpmYWxzZX19'"
|
|
2102
|
-
},
|
|
2103
|
-
{
|
|
2104
|
-
"kind": "variable",
|
|
2105
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2106
|
-
"type": {
|
|
2107
|
-
"text": "object"
|
|
2108
|
-
},
|
|
2109
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [], clientSession: { clientSessionId: '3b40a6e3-8fa9-4f2d-90b5-2691e644ff81', order: { orderId: '089357018253670', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], fees: [ { type: 'SURCHARGE', amount: 0, }, ], }, customer: { customerId: 'Euler is the best', billingAddress: { firstName: 'Card', lastName: 'Holder Name', postalCode: '94043', addressLine1: '1600 Amphitheatre Parkway', countryCode: 'US', city: 'Mountain View', state: 'CA', }, }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '166fd38f-d8a6-4f39-805f-62a6bbd64bee', env: 'SANDBOX', paymentMethods: [ { id: 'd3ced3db-ca91-44bb-889d-d1a687c2db17', type: 'RAPYD_GRABPAY', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'WEB_REDIRECT', name: 'GrabPay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo-light@3x.png', }, backgroundColor: { colored: '#01B14E', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'f37f1a42-1270-476e-a8d8-3698215596c2', type: 'RAPYD_GCASH', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'WEB_REDIRECT', name: 'GCash', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo-light@3x.png', }, backgroundColor: { colored: '#297BFA', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '1bde0ef5-9ae7-41f8-b627-4ecaaddc76a5', type: 'RAPYD_PROMPTPAY', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'NATIVE_SDK', name: 'PromptPay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo-light@3x.png', }, backgroundColor: { colored: '#023C68', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '2b0b7149-a4c2-4bf4-adb3-a56ec6e2f09f', type: 'ADYEN_IDEAL', options: { merchantId: 'Primerio254_SECOND_TEST', merchantAccountId: 'ddeca4e9-6cee-55f0-ae0d-ddb8d1100977', }, processorConfigId: 'af152714-66c6-48b9-a67e-314f5eb3ab15', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: '6e7a8a26-7737-45dc-b4e5-721f0b180f2f', type: 'GOOGLE_PAY', options: { merchantId: 'test', merchantName: 'test', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '2f32f120-d2a9-49d2-96d0-6b21546dec34', type: 'KLARNA', options: { merchantId: 'EG100723', merchantAccountId: '5cdd4a63-9762-5364-8ab8-30aa082a03b5', clientId: 'EG100723', }, processorConfigId: 'c65b140d-3faf-43af-ae3b-8d278b7d7221', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e550cea-749e-46d2-b01d-6867b34eec9a', type: 'PAYPAL', options: { merchantId: 'sb-gmcgm25177732@business.example.com', merchantAccountId: 'fc6c22da-065a-5a44-8c39-a4a1fcaf5723', clientId: 'AcTGoAPNhwfbSPbiVYSlrUGwTBGijs6GvFGci2R3QI1jlu5ewofPFq0yZDm-Rka07c1FtY4DVnsRerPK', intent: 'authorize', }, processorConfigId: '6b506d09-48b0-495c-ba32-49c6d2016cb0', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
2110
|
-
},
|
|
2111
|
-
{
|
|
2112
|
-
"kind": "function",
|
|
2113
|
-
"name": "mockExchangeCall",
|
|
2114
|
-
"parameters": [
|
|
2115
|
-
{
|
|
2116
|
-
"name": "page",
|
|
2117
|
-
"type": {
|
|
2118
|
-
"text": "Page"
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
]
|
|
2122
|
-
},
|
|
2123
|
-
{
|
|
2124
|
-
"kind": "function",
|
|
2125
|
-
"name": "mockPaymentsCall",
|
|
2126
|
-
"parameters": [
|
|
2127
|
-
{
|
|
2128
|
-
"name": "page",
|
|
2129
|
-
"type": {
|
|
2130
|
-
"text": "Page"
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
|
-
]
|
|
1939
|
+
"name": "o",
|
|
1940
|
+
"default": "t"
|
|
2134
1941
|
}
|
|
2135
1942
|
],
|
|
2136
1943
|
"exports": [
|
|
2137
1944
|
{
|
|
2138
1945
|
"kind": "js",
|
|
2139
|
-
"name": "
|
|
2140
|
-
"declaration": {
|
|
2141
|
-
"name": "settings",
|
|
2142
|
-
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
2143
|
-
}
|
|
2144
|
-
},
|
|
2145
|
-
{
|
|
2146
|
-
"kind": "js",
|
|
2147
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2148
|
-
"declaration": {
|
|
2149
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2150
|
-
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
2151
|
-
}
|
|
2152
|
-
},
|
|
2153
|
-
{
|
|
2154
|
-
"kind": "js",
|
|
2155
|
-
"name": "mockExchangeCall",
|
|
2156
|
-
"declaration": {
|
|
2157
|
-
"name": "mockExchangeCall",
|
|
2158
|
-
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
2159
|
-
}
|
|
2160
|
-
},
|
|
2161
|
-
{
|
|
2162
|
-
"kind": "js",
|
|
2163
|
-
"name": "mockPaymentsCall",
|
|
1946
|
+
"name": "templates",
|
|
2164
1947
|
"declaration": {
|
|
2165
|
-
"name": "
|
|
2166
|
-
"module": "
|
|
1948
|
+
"name": "o",
|
|
1949
|
+
"module": "dist/chunks/en-GB.PU23XE2E.js"
|
|
2167
1950
|
}
|
|
2168
1951
|
}
|
|
2169
1952
|
]
|
|
2170
1953
|
},
|
|
2171
1954
|
{
|
|
2172
1955
|
"kind": "javascript-module",
|
|
2173
|
-
"path": "
|
|
2174
|
-
"declarations": [],
|
|
2175
|
-
"exports": []
|
|
2176
|
-
},
|
|
2177
|
-
{
|
|
2178
|
-
"kind": "javascript-module",
|
|
2179
|
-
"path": "e2e/tests/card-basic.spec.ts",
|
|
2180
|
-
"declarations": [],
|
|
2181
|
-
"exports": []
|
|
2182
|
-
},
|
|
2183
|
-
{
|
|
2184
|
-
"kind": "javascript-module",
|
|
2185
|
-
"path": "e2e/tests/card-form-billing-address.spec.ts",
|
|
2186
|
-
"declarations": [],
|
|
2187
|
-
"exports": []
|
|
2188
|
-
},
|
|
2189
|
-
{
|
|
2190
|
-
"kind": "javascript-module",
|
|
2191
|
-
"path": "e2e/tests/disabled-payments.spec.ts",
|
|
1956
|
+
"path": "dist/chunks/en.HQJMDTVQ.js",
|
|
2192
1957
|
"declarations": [
|
|
2193
1958
|
{
|
|
2194
1959
|
"kind": "variable",
|
|
2195
|
-
"name": "
|
|
2196
|
-
"
|
|
2197
|
-
"text": "string"
|
|
2198
|
-
},
|
|
2199
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsiZGlzYWJsZWRQYXltZW50cyI6ZmFsc2UsInNka0NvcmUiOmZhbHNlfX0='"
|
|
1960
|
+
"name": "o",
|
|
1961
|
+
"default": "t"
|
|
2200
1962
|
}
|
|
2201
1963
|
],
|
|
2202
1964
|
"exports": [
|
|
2203
1965
|
{
|
|
2204
1966
|
"kind": "js",
|
|
2205
|
-
"name": "
|
|
1967
|
+
"name": "templates",
|
|
2206
1968
|
"declaration": {
|
|
2207
|
-
"name": "
|
|
2208
|
-
"module": "
|
|
1969
|
+
"name": "o",
|
|
1970
|
+
"module": "dist/chunks/en.HQJMDTVQ.js"
|
|
2209
1971
|
}
|
|
2210
1972
|
}
|
|
2211
1973
|
]
|
|
2212
1974
|
},
|
|
2213
1975
|
{
|
|
2214
1976
|
"kind": "javascript-module",
|
|
2215
|
-
"path": "
|
|
2216
|
-
"declarations": [],
|
|
2217
|
-
"exports": []
|
|
2218
|
-
},
|
|
2219
|
-
{
|
|
2220
|
-
"kind": "javascript-module",
|
|
2221
|
-
"path": "e2e/tests/vaulted-paypal.spec.ts",
|
|
2222
|
-
"declarations": [],
|
|
2223
|
-
"exports": []
|
|
2224
|
-
},
|
|
2225
|
-
{
|
|
2226
|
-
"kind": "javascript-module",
|
|
2227
|
-
"path": "dist/chunks/ar.KRXB3WQO.js",
|
|
1977
|
+
"path": "dist/chunks/es-AR.OZ6CT5HA.js",
|
|
2228
1978
|
"declarations": [
|
|
2229
1979
|
{
|
|
2230
1980
|
"kind": "variable",
|
|
2231
|
-
"name": "
|
|
1981
|
+
"name": "i",
|
|
2232
1982
|
"default": "e"
|
|
2233
1983
|
}
|
|
2234
1984
|
],
|
|
@@ -2237,19 +1987,19 @@
|
|
|
2237
1987
|
"kind": "js",
|
|
2238
1988
|
"name": "templates",
|
|
2239
1989
|
"declaration": {
|
|
2240
|
-
"name": "
|
|
2241
|
-
"module": "dist/chunks/
|
|
1990
|
+
"name": "i",
|
|
1991
|
+
"module": "dist/chunks/es-AR.OZ6CT5HA.js"
|
|
2242
1992
|
}
|
|
2243
1993
|
}
|
|
2244
1994
|
]
|
|
2245
1995
|
},
|
|
2246
1996
|
{
|
|
2247
1997
|
"kind": "javascript-module",
|
|
2248
|
-
"path": "dist/chunks/
|
|
1998
|
+
"path": "dist/chunks/es-MX.E4FWJ3FK.js",
|
|
2249
1999
|
"declarations": [
|
|
2250
2000
|
{
|
|
2251
2001
|
"kind": "variable",
|
|
2252
|
-
"name": "
|
|
2002
|
+
"name": "t",
|
|
2253
2003
|
"default": "e"
|
|
2254
2004
|
}
|
|
2255
2005
|
],
|
|
@@ -2258,15 +2008,15 @@
|
|
|
2258
2008
|
"kind": "js",
|
|
2259
2009
|
"name": "templates",
|
|
2260
2010
|
"declaration": {
|
|
2261
|
-
"name": "
|
|
2262
|
-
"module": "dist/chunks/
|
|
2011
|
+
"name": "t",
|
|
2012
|
+
"module": "dist/chunks/es-MX.E4FWJ3FK.js"
|
|
2263
2013
|
}
|
|
2264
2014
|
}
|
|
2265
2015
|
]
|
|
2266
2016
|
},
|
|
2267
2017
|
{
|
|
2268
2018
|
"kind": "javascript-module",
|
|
2269
|
-
"path": "dist/chunks/
|
|
2019
|
+
"path": "dist/chunks/es.HEWO2JY7.js",
|
|
2270
2020
|
"declarations": [
|
|
2271
2021
|
{
|
|
2272
2022
|
"kind": "variable",
|
|
@@ -2280,121 +2030,60 @@
|
|
|
2280
2030
|
"name": "templates",
|
|
2281
2031
|
"declaration": {
|
|
2282
2032
|
"name": "i",
|
|
2283
|
-
"module": "dist/chunks/
|
|
2033
|
+
"module": "dist/chunks/es.HEWO2JY7.js"
|
|
2284
2034
|
}
|
|
2285
2035
|
}
|
|
2286
2036
|
]
|
|
2287
2037
|
},
|
|
2288
2038
|
{
|
|
2289
2039
|
"kind": "javascript-module",
|
|
2290
|
-
"path": "dist/chunks/
|
|
2040
|
+
"path": "dist/chunks/et-EE.3GAJR6UB.js",
|
|
2291
2041
|
"declarations": [
|
|
2292
|
-
{
|
|
2293
|
-
"kind": "function",
|
|
2294
|
-
"name": "k",
|
|
2295
|
-
"parameters": [
|
|
2296
|
-
{
|
|
2297
|
-
"name": "c"
|
|
2298
|
-
}
|
|
2299
|
-
]
|
|
2300
|
-
},
|
|
2301
2042
|
{
|
|
2302
2043
|
"kind": "variable",
|
|
2303
|
-
"name": "
|
|
2304
|
-
"default": "
|
|
2305
|
-
},
|
|
2306
|
-
{
|
|
2307
|
-
"kind": "function",
|
|
2308
|
-
"name": "l",
|
|
2309
|
-
"parameters": [
|
|
2310
|
-
{
|
|
2311
|
-
"name": "c"
|
|
2312
|
-
},
|
|
2313
|
-
{
|
|
2314
|
-
"name": "a"
|
|
2315
|
-
},
|
|
2316
|
-
{
|
|
2317
|
-
"name": "b"
|
|
2318
|
-
},
|
|
2319
|
-
{
|
|
2320
|
-
"name": "e"
|
|
2321
|
-
}
|
|
2322
|
-
]
|
|
2323
|
-
},
|
|
2324
|
-
{
|
|
2325
|
-
"kind": "function",
|
|
2326
|
-
"name": "m",
|
|
2327
|
-
"parameters": [
|
|
2328
|
-
{
|
|
2329
|
-
"name": "c"
|
|
2330
|
-
},
|
|
2331
|
-
{
|
|
2332
|
-
"name": "a"
|
|
2333
|
-
},
|
|
2334
|
-
{
|
|
2335
|
-
"name": "b"
|
|
2336
|
-
}
|
|
2337
|
-
]
|
|
2044
|
+
"name": "r",
|
|
2045
|
+
"default": "e"
|
|
2338
2046
|
}
|
|
2339
2047
|
],
|
|
2340
2048
|
"exports": [
|
|
2341
2049
|
{
|
|
2342
2050
|
"kind": "js",
|
|
2343
|
-
"name": "
|
|
2344
|
-
"declaration": {
|
|
2345
|
-
"name": "k",
|
|
2346
|
-
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
2347
|
-
}
|
|
2348
|
-
},
|
|
2349
|
-
{
|
|
2350
|
-
"kind": "js",
|
|
2351
|
-
"name": "b",
|
|
2352
|
-
"declaration": {
|
|
2353
|
-
"name": "l",
|
|
2354
|
-
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
2355
|
-
}
|
|
2356
|
-
},
|
|
2357
|
-
{
|
|
2358
|
-
"kind": "js",
|
|
2359
|
-
"name": "c",
|
|
2051
|
+
"name": "templates",
|
|
2360
2052
|
"declaration": {
|
|
2361
|
-
"name": "
|
|
2362
|
-
"module": "dist/chunks/
|
|
2053
|
+
"name": "r",
|
|
2054
|
+
"module": "dist/chunks/et-EE.3GAJR6UB.js"
|
|
2363
2055
|
}
|
|
2364
2056
|
}
|
|
2365
2057
|
]
|
|
2366
2058
|
},
|
|
2367
2059
|
{
|
|
2368
2060
|
"kind": "javascript-module",
|
|
2369
|
-
"path": "dist/chunks/
|
|
2061
|
+
"path": "dist/chunks/fi-FI.4TB5AYVQ.js",
|
|
2370
2062
|
"declarations": [
|
|
2371
2063
|
{
|
|
2372
2064
|
"kind": "variable",
|
|
2373
|
-
"name": "
|
|
2374
|
-
"
|
|
2375
|
-
"text": "object"
|
|
2376
|
-
},
|
|
2377
|
-
"default": "{accountHolder:\"Account Holder\",accountHolderEmail:\"me@domain.com\",accountHolderEmailErrorInvalid:\"Provided email is not valid\",accountHolderEmailErrorRequired:\"Account holder email is required\",accountHolderName:\"Account holder name\",accountHolderNameErrorRequired:\"Account holder name is required\",accountHolderNameLabel:\"Account holder name\",accountHolderNamePlaceholder:\"Account holder name\",addCard:\"Add Card\",additionalCardFees:\"Additional card fees may apply\",address:\"Address\",addressLine1:\"Address line 1\",addressLine1ErrorRequired:\"Address line 1 is required\",addressLine1Placeholder:\"Address line 1\",addressLine2:\"Address line 2\",addressLine2ErrorRequired:\"Address line 2 is required\",addressLine2Placeholder:\"Address line 2\",amount:\"Amount\",applePayFailedToTokenize:\"Failed to tokenize\",applePayMissingFirstNameOrLastName:\"Missing first name or last name\",bankHolderNameErrorRequired:\"Account holder name is required\",bankListErrorRequired:\"Bank is required\",bankListLabel:\"List of banks\",bankNameErrorRequired:\"Bank name is required\",bankNameLabel:\"Select your bank from the list\",bankNetworkErrorButton:\"Load again\",bankNetworkErrorTitle:\"Failed to load banks. Check your connection and try again.\",bankSearchInputPlaceholder:\"Search bank\",bankSelectTitle:\"Select your bank\",billingAddressLabel:\"Billing address\",cancel:\"Cancel\",cardCVV:\"CVV\",cardDescription:\"Card description (optional)\",cardDescriptionPlaceholder:\"My favourite card\",cardEndingWith:\"Card ending with\",cardExpired:\"Card has expired\",cardExpiry:\"Expiry (MM/YY)\",cardExpiryPlaceholder:\"MM/YY\",cardholderName:\"Name on card\",cardholderNameErrorRequired:\"Name on card is required\",cardholderNameLabel:\"Name on card\",cardholderNamePlaceholder:\"Full name\",cardIncomplete:\"Card number is incomplete\",cardInvalid:\"Card number is invalid\",cardNameContainsNumbers:\"Name cannot contain numbers\",cardNameLength:\"Name must have between 2 and 45 characters\",cardNameRequired:\"Name on card is required\",cardNumber:\"Card number\",cardRequired:\"Card number is required\",checkSuccessTitle:\"Your payment was successful!\",checkoutWith:\"Checkout with\",chooseAnotherPaymentMethod:\"Choose another payment method\",city:\"City\",cityErrorRequired:\"City is required\",cityLabel:\"City\",cityPlaceholder:\"Cape Town\",completeYourPayment:\"Complete your payment\",completeYourPaymentInTheApp:\"Complete your payment in %s\",confirm:\"Confirm\",confirmCardDeletion:\"Confirm - Delete Card\",confirmPayPalDeletion:\"Confirm - Delete PayPal\",confirmVaultedPaymentMethodDeletion:\"Yes, delete it\",countryCodeErrorRequired:\"Country is required\",countryCodeLabel:\"Country code\",countryCodePlaceholder:\"Country code\",countrySelectPlaceholder:\"Select a country\",creditOrDebitCard:\"Credit or debit card\",creditTransfer:\"Credit Transfer\",cvvIncomplete:\"CVV number is incomplete\",cvvInvalid3:\"CVV must be 3 digits\",cvvInvalid4:\"CVV must be 4 digits\",cvvRequired:\"CVV number is required\",delete:\"Delete\",digits:\"digits\",directDebit:\"Direct debit\",directDebitMandateTitle:\"SEPA Core Direct Debit Mandate\",directDebitSmallPrint:\"By signing this mandate form, you authorise (A) {companyName} to send instructions to your bank to debit your account and (B) your bank to debit your account in accordance with the instruction from {companyName}\",directDebitSuccessDescription:\"{companyName} will appear on your bank statement when payments are taken against the Direct Debit\",directDebitSuccessReference:\"Reference\",directDebitSuccessTitle:\"Direct Debit set up successfully\",dueAt:\"Due at\",dummyApmDescription:\"This is a mocked flow for sandbox. Choose the result you want to test from the list below:\",duplicatePaymentMethodError:\"This payment method is already saved.\",editPaymentMethods:\"Edit saved payment methods\",email:\"Email\",entity:\"Entity\",expiresAt:\"Expires at\",expiryIncomplete:\"Expiry date is incomplete\",expiryInvalid:\"Expiry date is invalid\",expiryMonthInvalid:\"Expiry date month is invalid\",expiryRequired:\"Expiry date is required\",expiryYearInvalid:\"Expiry date year is invalid\",fee_label_fallback:\"Fee\",firstNameErrorRequired:\"First name is required\",firstNameLabel:\"First name\",firstNamePlaceholder:\"First name\",forgetPaymentMethods:\"Forget payment methods\",forgetPayPal:\"Forget PayPal account\",forgetSavedCard:\"Forget saved card ending in {last4Digits}\",fullName:\"First and last name\",getCodeFromBankingApp:\"Get the code from your banking app\",giftCard:\"Gift card\",iban:\"IBAN\",ibanErrorInvalid:\"IBAN is invalid\",ibanErrorRequired:\"IBAN is required\",ibanPlaceholder:\"e.g. GB60 BARC 2000 0055 7799 11\",invalid:\"Invalid\",item_label_fallback:\"Item\",lastNameErrorRequired:\"Last name is required\",lastNameLabel:\"Last name\",lastNamePlaceholder:\"Last name\",loading:\"Loading...\",managePaymentMethods:\"Manage your payment methods\",multibancoFirstStep:\"Payment details for a Multibanco Reference will be created.\",multibancoPayWith:\"Pay with Multibanco\",multibancoPleaseMakePayment:\"Please make the payment at a Multibanco ATM, or through your home banking app.\",multibancoSecondStep:\"Go to a Multibanco ATM or login to your home banking app, then select \\u201CPay for Services\\u201D.\",multibancoThirdStep:\"Enter the Entity, Reference and Amount.\",navigateToPaymentMethods:\"Show other ways to pay\",newPaymentMethod:\"Add a new payment method\",noAdditionalFees:\"No additional fees\",otherWaysToPay:\"Other ways to pay\",pay_with_ach:\"Pay with ACH\",pay_with:\"Pay with\",pay:\"Pay\",payByCard:\"Pay by card\",payByImmediateTransfer:\"Pay by Immediate transfer\",payBySmartTransfer:\"Pay by Bank transfer\",payInInstallments:\"Pay in installments\",paymentMethodPopupLoadingScreenText:\"Hold on! {paymentMethodName} is loading.\",paymentMethodPopupOverlayBringBackThePaymentPage:\"Bring back the payment page\",paymentMethodPopupOverlayClose:\"Close\",paymentMethodPopupOverlayDescription:\"Having trouble viewing the {paymentMethodName} payment page? We'll help you find it!\",paymentMethodPopupOverlayNonFocusDescription:\"Open the {paymentMethodName} payment page to review your payment.\",paymentMethodTypeKlarna:\"Pay later\",paymentMethodTypeKlarnaAccount:\"Pay over time\",paymentMethodTypeKlarnaPaynow:\"Pay now\",payViaBankTransfer:\"Pay via bank transfer\",payWithAch:\"Pay with ACH\",payWithCard:\"Or pay with card\",payWithCrypto:\"Pay with crypto\",pleaseTransferFunds:\"Please Transfer funds to the provided DBS bank account using your Singapore based bank account via FAST (preferred), MEPS or GIRO.\",postalCode:\"Postal code\",postalCodeErrorRequired:\"Postal code is required\",postalCodeLabel:\"Postal code\",postalCodePlaceholder:\"90210\",previouslyUsed:\"Previously used:\",qrCode:\"QR Code\",reference:\"Reference\",required:\"Required\",retry_button:\"Retry\",savedPaymentMethodsEmpty:\"Enter your card details below to add a new payment method\",savePaymentMethod:\"Save payment method\",scanToPay:\"Scan to pay or take a screenshot\",sepaCreditTransfer:\"SEPA Credit Transfer\",sepaDirectDebit:\"SEPA Direct Debit\",session_complete_payment_cancellation_title:\"Payment cancelled\",session_complete_payment_failure_title:\"Payment failed\",session_complete_payment_success_title:\"Payment authorized\",setUpDirectDebit:\"Set up Direct Debit\",shipping_address_unsupported_error:\"We do not ship to this address\",shipping:\"Shipping\",showPaymentDetails:\"Show payment details\",sixDigitCodeErrorNumeric:\"Six digit code should only contain numbers\",sixDigitCodeErrorRequired:\"Six digit code is required\",sixDigitCodeErrorTooShort:\"Code is too short\",sixDigitCodeLabel:\"Six digit code\",sixDigitCodePlaceholder:\"123456\",something_went_wrong_error:\"Something went wrong. Please try again.\",stateErrorRequired:\"State, Region or County is required\",stateLabel:\"State / Region / County\",statePlaceholder:\"State / Region / County\",street:\"Street\",streetPlaceholder:\"My street\",stripe_ach_mandate_accept_button:\"Accept\",stripe_ach_mandate_cancel_payment_button:\"Cancel payment\",stripe_ach_mandate_not_accepted_description:\"Mandate was not accepted\",stripe_ach_mandate_template_web:`By clicking Accept, you authorize {merchantName} to debit the selected bank account for any amount owed for charges arising from your use of {merchantName}\\u2019s services and/or purchase of products from {merchantName}, pursuant to {merchantName}\\u2019s website and terms, until this authorization is revoked. You may amend or cancel this authorization at any time by providing notice to {merchantName} with 30 (thirty) days notice. If you use {merchantName}\\u2019s services or purchase additional products periodically pursuant to {merchantName}\\u2019s terms, you authorize {merchantName} to debit your bank account periodically. Payments that fall outside the regular debits authorized above will only be debited after your authorization is obtained.`,stripe_ach_payment_request_cancelled:\"Please try again or select another bank\",stripe_ach_payment_request_completed_successfully:\"You have now authorized your bank account to be debited. You will be notified via email once the payment has been collected successfully.\",stripe_ach_user_details_collection_continue_button:\"Continue\",stripe_ach_user_details_collection_data_usage_label:\"We'll only use this to keep you updated about your payment\",stripe_ach_user_details_collection_email_address_label:\"Email address\",stripe_ach_user_details_collection_first_name_label:\"First name\",stripe_ach_user_details_collection_invalid_email_address:\"The email address you entered doesn't look like a real email address. Please make sure it includes an '@' and a domain (like '@example.com').\",stripe_ach_user_details_collection_invalid_first_name:\"Please enter a valid first name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_invalid_last_name:\"Please enter a valid last name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_last_name_label:\"Last name\",stripe_ach_user_details_collection_subtitle_label:\"Your personal details\",suburb:\"Suburb\",suburbPlaceholder:\"My suburb\",telephoneNumberErrorRequired:\"Phone number is required\",telephoneNumberErrorTooShort:\"Phone number is too short\",telephoneNumberLabel:\"Phone number\",telephoneNumberPlaceholder:\"123xxxxxx\",timeOnDate:\"{time} on {date}\",tokenizationError:\"Your payment could not be processed. Please try another payment method.\",unsupportedCardType:\"Unsupported card type\",uploadScreenshot:\"Upload the screenshot in your banking app\",yourBankDetails:\"Your bank details\"}"
|
|
2065
|
+
"name": "n",
|
|
2066
|
+
"default": "a"
|
|
2378
2067
|
}
|
|
2379
2068
|
],
|
|
2380
2069
|
"exports": [
|
|
2381
2070
|
{
|
|
2382
2071
|
"kind": "js",
|
|
2383
|
-
"name": "
|
|
2072
|
+
"name": "templates",
|
|
2384
2073
|
"declaration": {
|
|
2385
|
-
"name": "
|
|
2386
|
-
"module": "dist/chunks/
|
|
2074
|
+
"name": "n",
|
|
2075
|
+
"module": "dist/chunks/fi-FI.4TB5AYVQ.js"
|
|
2387
2076
|
}
|
|
2388
2077
|
}
|
|
2389
2078
|
]
|
|
2390
2079
|
},
|
|
2391
2080
|
{
|
|
2392
2081
|
"kind": "javascript-module",
|
|
2393
|
-
"path": "dist/chunks/
|
|
2082
|
+
"path": "dist/chunks/fr.5GQNZ4TX.js",
|
|
2394
2083
|
"declarations": [
|
|
2395
2084
|
{
|
|
2396
2085
|
"kind": "variable",
|
|
2397
|
-
"name": "
|
|
2086
|
+
"name": "i",
|
|
2398
2087
|
"default": "e"
|
|
2399
2088
|
}
|
|
2400
2089
|
],
|
|
@@ -2403,19 +2092,19 @@
|
|
|
2403
2092
|
"kind": "js",
|
|
2404
2093
|
"name": "templates",
|
|
2405
2094
|
"declaration": {
|
|
2406
|
-
"name": "
|
|
2407
|
-
"module": "dist/chunks/
|
|
2095
|
+
"name": "i",
|
|
2096
|
+
"module": "dist/chunks/fr.5GQNZ4TX.js"
|
|
2408
2097
|
}
|
|
2409
2098
|
}
|
|
2410
2099
|
]
|
|
2411
2100
|
},
|
|
2412
2101
|
{
|
|
2413
2102
|
"kind": "javascript-module",
|
|
2414
|
-
"path": "dist/chunks/
|
|
2103
|
+
"path": "dist/chunks/he.WGVF57WV.js",
|
|
2415
2104
|
"declarations": [
|
|
2416
2105
|
{
|
|
2417
2106
|
"kind": "variable",
|
|
2418
|
-
"name": "
|
|
2107
|
+
"name": "o",
|
|
2419
2108
|
"default": "e"
|
|
2420
2109
|
}
|
|
2421
2110
|
],
|
|
@@ -2424,15 +2113,15 @@
|
|
|
2424
2113
|
"kind": "js",
|
|
2425
2114
|
"name": "templates",
|
|
2426
2115
|
"declaration": {
|
|
2427
|
-
"name": "
|
|
2428
|
-
"module": "dist/chunks/
|
|
2116
|
+
"name": "o",
|
|
2117
|
+
"module": "dist/chunks/he.WGVF57WV.js"
|
|
2429
2118
|
}
|
|
2430
2119
|
}
|
|
2431
2120
|
]
|
|
2432
2121
|
},
|
|
2433
2122
|
{
|
|
2434
2123
|
"kind": "javascript-module",
|
|
2435
|
-
"path": "dist/chunks/
|
|
2124
|
+
"path": "dist/chunks/hr.YPXJZUYV.js",
|
|
2436
2125
|
"declarations": [
|
|
2437
2126
|
{
|
|
2438
2127
|
"kind": "variable",
|
|
@@ -2446,18 +2135,18 @@
|
|
|
2446
2135
|
"name": "templates",
|
|
2447
2136
|
"declaration": {
|
|
2448
2137
|
"name": "t",
|
|
2449
|
-
"module": "dist/chunks/
|
|
2138
|
+
"module": "dist/chunks/hr.YPXJZUYV.js"
|
|
2450
2139
|
}
|
|
2451
2140
|
}
|
|
2452
2141
|
]
|
|
2453
2142
|
},
|
|
2454
2143
|
{
|
|
2455
2144
|
"kind": "javascript-module",
|
|
2456
|
-
"path": "dist/chunks/
|
|
2145
|
+
"path": "dist/chunks/hu.RX3HFOR5.js",
|
|
2457
2146
|
"declarations": [
|
|
2458
2147
|
{
|
|
2459
2148
|
"kind": "variable",
|
|
2460
|
-
"name": "
|
|
2149
|
+
"name": "s",
|
|
2461
2150
|
"default": "e"
|
|
2462
2151
|
}
|
|
2463
2152
|
],
|
|
@@ -2466,20 +2155,20 @@
|
|
|
2466
2155
|
"kind": "js",
|
|
2467
2156
|
"name": "templates",
|
|
2468
2157
|
"declaration": {
|
|
2469
|
-
"name": "
|
|
2470
|
-
"module": "dist/chunks/
|
|
2158
|
+
"name": "s",
|
|
2159
|
+
"module": "dist/chunks/hu.RX3HFOR5.js"
|
|
2471
2160
|
}
|
|
2472
2161
|
}
|
|
2473
2162
|
]
|
|
2474
2163
|
},
|
|
2475
2164
|
{
|
|
2476
2165
|
"kind": "javascript-module",
|
|
2477
|
-
"path": "dist/chunks/
|
|
2166
|
+
"path": "dist/chunks/id.3SO7FJHW.js",
|
|
2478
2167
|
"declarations": [
|
|
2479
2168
|
{
|
|
2480
2169
|
"kind": "variable",
|
|
2481
|
-
"name": "
|
|
2482
|
-
"default": "
|
|
2170
|
+
"name": "r",
|
|
2171
|
+
"default": "a"
|
|
2483
2172
|
}
|
|
2484
2173
|
],
|
|
2485
2174
|
"exports": [
|
|
@@ -2487,20 +2176,20 @@
|
|
|
2487
2176
|
"kind": "js",
|
|
2488
2177
|
"name": "templates",
|
|
2489
2178
|
"declaration": {
|
|
2490
|
-
"name": "
|
|
2491
|
-
"module": "dist/chunks/
|
|
2179
|
+
"name": "r",
|
|
2180
|
+
"module": "dist/chunks/id.3SO7FJHW.js"
|
|
2492
2181
|
}
|
|
2493
2182
|
}
|
|
2494
2183
|
]
|
|
2495
2184
|
},
|
|
2496
2185
|
{
|
|
2497
2186
|
"kind": "javascript-module",
|
|
2498
|
-
"path": "dist/chunks/
|
|
2187
|
+
"path": "dist/chunks/it.Y7247AOF.js",
|
|
2499
2188
|
"declarations": [
|
|
2500
2189
|
{
|
|
2501
2190
|
"kind": "variable",
|
|
2502
|
-
"name": "
|
|
2503
|
-
"default": "
|
|
2191
|
+
"name": "r",
|
|
2192
|
+
"default": "e"
|
|
2504
2193
|
}
|
|
2505
2194
|
],
|
|
2506
2195
|
"exports": [
|
|
@@ -2508,246 +2197,15 @@
|
|
|
2508
2197
|
"kind": "js",
|
|
2509
2198
|
"name": "templates",
|
|
2510
2199
|
"declaration": {
|
|
2511
|
-
"name": "
|
|
2512
|
-
"module": "dist/chunks/
|
|
2200
|
+
"name": "r",
|
|
2201
|
+
"module": "dist/chunks/it.Y7247AOF.js"
|
|
2513
2202
|
}
|
|
2514
2203
|
}
|
|
2515
2204
|
]
|
|
2516
2205
|
},
|
|
2517
2206
|
{
|
|
2518
2207
|
"kind": "javascript-module",
|
|
2519
|
-
"path": "dist/chunks/
|
|
2520
|
-
"declarations": [
|
|
2521
|
-
{
|
|
2522
|
-
"kind": "variable",
|
|
2523
|
-
"name": "i",
|
|
2524
|
-
"default": "e"
|
|
2525
|
-
}
|
|
2526
|
-
],
|
|
2527
|
-
"exports": [
|
|
2528
|
-
{
|
|
2529
|
-
"kind": "js",
|
|
2530
|
-
"name": "templates",
|
|
2531
|
-
"declaration": {
|
|
2532
|
-
"name": "i",
|
|
2533
|
-
"module": "dist/chunks/es-AR.TBWVUZEF.js"
|
|
2534
|
-
}
|
|
2535
|
-
}
|
|
2536
|
-
]
|
|
2537
|
-
},
|
|
2538
|
-
{
|
|
2539
|
-
"kind": "javascript-module",
|
|
2540
|
-
"path": "dist/chunks/es-MX.6EMWUABR.js",
|
|
2541
|
-
"declarations": [
|
|
2542
|
-
{
|
|
2543
|
-
"kind": "variable",
|
|
2544
|
-
"name": "i",
|
|
2545
|
-
"default": "e"
|
|
2546
|
-
}
|
|
2547
|
-
],
|
|
2548
|
-
"exports": [
|
|
2549
|
-
{
|
|
2550
|
-
"kind": "js",
|
|
2551
|
-
"name": "templates",
|
|
2552
|
-
"declaration": {
|
|
2553
|
-
"name": "i",
|
|
2554
|
-
"module": "dist/chunks/es-MX.6EMWUABR.js"
|
|
2555
|
-
}
|
|
2556
|
-
}
|
|
2557
|
-
]
|
|
2558
|
-
},
|
|
2559
|
-
{
|
|
2560
|
-
"kind": "javascript-module",
|
|
2561
|
-
"path": "dist/chunks/es.XZLDFHYI.js",
|
|
2562
|
-
"declarations": [
|
|
2563
|
-
{
|
|
2564
|
-
"kind": "variable",
|
|
2565
|
-
"name": "i",
|
|
2566
|
-
"default": "e"
|
|
2567
|
-
}
|
|
2568
|
-
],
|
|
2569
|
-
"exports": [
|
|
2570
|
-
{
|
|
2571
|
-
"kind": "js",
|
|
2572
|
-
"name": "templates",
|
|
2573
|
-
"declaration": {
|
|
2574
|
-
"name": "i",
|
|
2575
|
-
"module": "dist/chunks/es.XZLDFHYI.js"
|
|
2576
|
-
}
|
|
2577
|
-
}
|
|
2578
|
-
]
|
|
2579
|
-
},
|
|
2580
|
-
{
|
|
2581
|
-
"kind": "javascript-module",
|
|
2582
|
-
"path": "dist/chunks/et-EE.JBSFMKZ2.js",
|
|
2583
|
-
"declarations": [
|
|
2584
|
-
{
|
|
2585
|
-
"kind": "variable",
|
|
2586
|
-
"name": "r",
|
|
2587
|
-
"default": "e"
|
|
2588
|
-
}
|
|
2589
|
-
],
|
|
2590
|
-
"exports": [
|
|
2591
|
-
{
|
|
2592
|
-
"kind": "js",
|
|
2593
|
-
"name": "templates",
|
|
2594
|
-
"declaration": {
|
|
2595
|
-
"name": "r",
|
|
2596
|
-
"module": "dist/chunks/et-EE.JBSFMKZ2.js"
|
|
2597
|
-
}
|
|
2598
|
-
}
|
|
2599
|
-
]
|
|
2600
|
-
},
|
|
2601
|
-
{
|
|
2602
|
-
"kind": "javascript-module",
|
|
2603
|
-
"path": "dist/chunks/fi-FI.I75VK2ID.js",
|
|
2604
|
-
"declarations": [
|
|
2605
|
-
{
|
|
2606
|
-
"kind": "variable",
|
|
2607
|
-
"name": "n",
|
|
2608
|
-
"default": "a"
|
|
2609
|
-
}
|
|
2610
|
-
],
|
|
2611
|
-
"exports": [
|
|
2612
|
-
{
|
|
2613
|
-
"kind": "js",
|
|
2614
|
-
"name": "templates",
|
|
2615
|
-
"declaration": {
|
|
2616
|
-
"name": "n",
|
|
2617
|
-
"module": "dist/chunks/fi-FI.I75VK2ID.js"
|
|
2618
|
-
}
|
|
2619
|
-
}
|
|
2620
|
-
]
|
|
2621
|
-
},
|
|
2622
|
-
{
|
|
2623
|
-
"kind": "javascript-module",
|
|
2624
|
-
"path": "dist/chunks/fr.JBNP6RXT.js",
|
|
2625
|
-
"declarations": [
|
|
2626
|
-
{
|
|
2627
|
-
"kind": "variable",
|
|
2628
|
-
"name": "i",
|
|
2629
|
-
"default": "e"
|
|
2630
|
-
}
|
|
2631
|
-
],
|
|
2632
|
-
"exports": [
|
|
2633
|
-
{
|
|
2634
|
-
"kind": "js",
|
|
2635
|
-
"name": "templates",
|
|
2636
|
-
"declaration": {
|
|
2637
|
-
"name": "i",
|
|
2638
|
-
"module": "dist/chunks/fr.JBNP6RXT.js"
|
|
2639
|
-
}
|
|
2640
|
-
}
|
|
2641
|
-
]
|
|
2642
|
-
},
|
|
2643
|
-
{
|
|
2644
|
-
"kind": "javascript-module",
|
|
2645
|
-
"path": "dist/chunks/he.PW253QAL.js",
|
|
2646
|
-
"declarations": [
|
|
2647
|
-
{
|
|
2648
|
-
"kind": "variable",
|
|
2649
|
-
"name": "o",
|
|
2650
|
-
"default": "e"
|
|
2651
|
-
}
|
|
2652
|
-
],
|
|
2653
|
-
"exports": [
|
|
2654
|
-
{
|
|
2655
|
-
"kind": "js",
|
|
2656
|
-
"name": "templates",
|
|
2657
|
-
"declaration": {
|
|
2658
|
-
"name": "o",
|
|
2659
|
-
"module": "dist/chunks/he.PW253QAL.js"
|
|
2660
|
-
}
|
|
2661
|
-
}
|
|
2662
|
-
]
|
|
2663
|
-
},
|
|
2664
|
-
{
|
|
2665
|
-
"kind": "javascript-module",
|
|
2666
|
-
"path": "dist/chunks/hr.LM4RITYJ.js",
|
|
2667
|
-
"declarations": [
|
|
2668
|
-
{
|
|
2669
|
-
"kind": "variable",
|
|
2670
|
-
"name": "t",
|
|
2671
|
-
"default": "e"
|
|
2672
|
-
}
|
|
2673
|
-
],
|
|
2674
|
-
"exports": [
|
|
2675
|
-
{
|
|
2676
|
-
"kind": "js",
|
|
2677
|
-
"name": "templates",
|
|
2678
|
-
"declaration": {
|
|
2679
|
-
"name": "t",
|
|
2680
|
-
"module": "dist/chunks/hr.LM4RITYJ.js"
|
|
2681
|
-
}
|
|
2682
|
-
}
|
|
2683
|
-
]
|
|
2684
|
-
},
|
|
2685
|
-
{
|
|
2686
|
-
"kind": "javascript-module",
|
|
2687
|
-
"path": "dist/chunks/hu.JGCKQA6J.js",
|
|
2688
|
-
"declarations": [
|
|
2689
|
-
{
|
|
2690
|
-
"kind": "variable",
|
|
2691
|
-
"name": "s",
|
|
2692
|
-
"default": "e"
|
|
2693
|
-
}
|
|
2694
|
-
],
|
|
2695
|
-
"exports": [
|
|
2696
|
-
{
|
|
2697
|
-
"kind": "js",
|
|
2698
|
-
"name": "templates",
|
|
2699
|
-
"declaration": {
|
|
2700
|
-
"name": "s",
|
|
2701
|
-
"module": "dist/chunks/hu.JGCKQA6J.js"
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
]
|
|
2705
|
-
},
|
|
2706
|
-
{
|
|
2707
|
-
"kind": "javascript-module",
|
|
2708
|
-
"path": "dist/chunks/id.VBXULDDY.js",
|
|
2709
|
-
"declarations": [
|
|
2710
|
-
{
|
|
2711
|
-
"kind": "variable",
|
|
2712
|
-
"name": "r",
|
|
2713
|
-
"default": "a"
|
|
2714
|
-
}
|
|
2715
|
-
],
|
|
2716
|
-
"exports": [
|
|
2717
|
-
{
|
|
2718
|
-
"kind": "js",
|
|
2719
|
-
"name": "templates",
|
|
2720
|
-
"declaration": {
|
|
2721
|
-
"name": "r",
|
|
2722
|
-
"module": "dist/chunks/id.VBXULDDY.js"
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2725
|
-
]
|
|
2726
|
-
},
|
|
2727
|
-
{
|
|
2728
|
-
"kind": "javascript-module",
|
|
2729
|
-
"path": "dist/chunks/it.7Q6BFLDK.js",
|
|
2730
|
-
"declarations": [
|
|
2731
|
-
{
|
|
2732
|
-
"kind": "variable",
|
|
2733
|
-
"name": "r",
|
|
2734
|
-
"default": "e"
|
|
2735
|
-
}
|
|
2736
|
-
],
|
|
2737
|
-
"exports": [
|
|
2738
|
-
{
|
|
2739
|
-
"kind": "js",
|
|
2740
|
-
"name": "templates",
|
|
2741
|
-
"declaration": {
|
|
2742
|
-
"name": "r",
|
|
2743
|
-
"module": "dist/chunks/it.7Q6BFLDK.js"
|
|
2744
|
-
}
|
|
2745
|
-
}
|
|
2746
|
-
]
|
|
2747
|
-
},
|
|
2748
|
-
{
|
|
2749
|
-
"kind": "javascript-module",
|
|
2750
|
-
"path": "dist/chunks/ja.QOC76SSC.js",
|
|
2208
|
+
"path": "dist/chunks/ja.L6PF6O6A.js",
|
|
2751
2209
|
"declarations": [
|
|
2752
2210
|
{
|
|
2753
2211
|
"kind": "variable",
|
|
@@ -2761,14 +2219,14 @@
|
|
|
2761
2219
|
"name": "templates",
|
|
2762
2220
|
"declaration": {
|
|
2763
2221
|
"name": "o",
|
|
2764
|
-
"module": "dist/chunks/ja.
|
|
2222
|
+
"module": "dist/chunks/ja.L6PF6O6A.js"
|
|
2765
2223
|
}
|
|
2766
2224
|
}
|
|
2767
2225
|
]
|
|
2768
2226
|
},
|
|
2769
2227
|
{
|
|
2770
2228
|
"kind": "javascript-module",
|
|
2771
|
-
"path": "dist/chunks/ko.
|
|
2229
|
+
"path": "dist/chunks/ko.X53AFCXY.js",
|
|
2772
2230
|
"declarations": [
|
|
2773
2231
|
{
|
|
2774
2232
|
"kind": "variable",
|
|
@@ -2782,14 +2240,14 @@
|
|
|
2782
2240
|
"name": "templates",
|
|
2783
2241
|
"declaration": {
|
|
2784
2242
|
"name": "o",
|
|
2785
|
-
"module": "dist/chunks/ko.
|
|
2243
|
+
"module": "dist/chunks/ko.X53AFCXY.js"
|
|
2786
2244
|
}
|
|
2787
2245
|
}
|
|
2788
2246
|
]
|
|
2789
2247
|
},
|
|
2790
2248
|
{
|
|
2791
2249
|
"kind": "javascript-module",
|
|
2792
|
-
"path": "dist/chunks/lt-LT.
|
|
2250
|
+
"path": "dist/chunks/lt-LT.HMQT67X4.js",
|
|
2793
2251
|
"declarations": [
|
|
2794
2252
|
{
|
|
2795
2253
|
"kind": "variable",
|
|
@@ -2803,18 +2261,18 @@
|
|
|
2803
2261
|
"name": "templates",
|
|
2804
2262
|
"declaration": {
|
|
2805
2263
|
"name": "t",
|
|
2806
|
-
"module": "dist/chunks/lt-LT.
|
|
2264
|
+
"module": "dist/chunks/lt-LT.HMQT67X4.js"
|
|
2807
2265
|
}
|
|
2808
2266
|
}
|
|
2809
2267
|
]
|
|
2810
2268
|
},
|
|
2811
2269
|
{
|
|
2812
2270
|
"kind": "javascript-module",
|
|
2813
|
-
"path": "dist/chunks/lt.
|
|
2271
|
+
"path": "dist/chunks/lt.YJ3FR7A2.js",
|
|
2814
2272
|
"declarations": [
|
|
2815
2273
|
{
|
|
2816
2274
|
"kind": "variable",
|
|
2817
|
-
"name": "
|
|
2275
|
+
"name": "t",
|
|
2818
2276
|
"default": "a"
|
|
2819
2277
|
}
|
|
2820
2278
|
],
|
|
@@ -2823,15 +2281,15 @@
|
|
|
2823
2281
|
"kind": "js",
|
|
2824
2282
|
"name": "templates",
|
|
2825
2283
|
"declaration": {
|
|
2826
|
-
"name": "
|
|
2827
|
-
"module": "dist/chunks/lt.
|
|
2284
|
+
"name": "t",
|
|
2285
|
+
"module": "dist/chunks/lt.YJ3FR7A2.js"
|
|
2828
2286
|
}
|
|
2829
2287
|
}
|
|
2830
2288
|
]
|
|
2831
2289
|
},
|
|
2832
2290
|
{
|
|
2833
2291
|
"kind": "javascript-module",
|
|
2834
|
-
"path": "dist/chunks/lv-LV.
|
|
2292
|
+
"path": "dist/chunks/lv-LV.HLFWSCCR.js",
|
|
2835
2293
|
"declarations": [
|
|
2836
2294
|
{
|
|
2837
2295
|
"kind": "variable",
|
|
@@ -2845,14 +2303,14 @@
|
|
|
2845
2303
|
"name": "templates",
|
|
2846
2304
|
"declaration": {
|
|
2847
2305
|
"name": "t",
|
|
2848
|
-
"module": "dist/chunks/lv-LV.
|
|
2306
|
+
"module": "dist/chunks/lv-LV.HLFWSCCR.js"
|
|
2849
2307
|
}
|
|
2850
2308
|
}
|
|
2851
2309
|
]
|
|
2852
2310
|
},
|
|
2853
2311
|
{
|
|
2854
2312
|
"kind": "javascript-module",
|
|
2855
|
-
"path": "dist/chunks/lv.
|
|
2313
|
+
"path": "dist/chunks/lv.DEK5WXQB.js",
|
|
2856
2314
|
"declarations": [
|
|
2857
2315
|
{
|
|
2858
2316
|
"kind": "variable",
|
|
@@ -2866,14 +2324,14 @@
|
|
|
2866
2324
|
"name": "templates",
|
|
2867
2325
|
"declaration": {
|
|
2868
2326
|
"name": "t",
|
|
2869
|
-
"module": "dist/chunks/lv.
|
|
2327
|
+
"module": "dist/chunks/lv.DEK5WXQB.js"
|
|
2870
2328
|
}
|
|
2871
2329
|
}
|
|
2872
2330
|
]
|
|
2873
2331
|
},
|
|
2874
2332
|
{
|
|
2875
2333
|
"kind": "javascript-module",
|
|
2876
|
-
"path": "dist/chunks/ms.
|
|
2334
|
+
"path": "dist/chunks/ms.E6PXJ4SR.js",
|
|
2877
2335
|
"declarations": [
|
|
2878
2336
|
{
|
|
2879
2337
|
"kind": "variable",
|
|
@@ -2887,14 +2345,14 @@
|
|
|
2887
2345
|
"name": "templates",
|
|
2888
2346
|
"declaration": {
|
|
2889
2347
|
"name": "i",
|
|
2890
|
-
"module": "dist/chunks/ms.
|
|
2348
|
+
"module": "dist/chunks/ms.E6PXJ4SR.js"
|
|
2891
2349
|
}
|
|
2892
2350
|
}
|
|
2893
2351
|
]
|
|
2894
2352
|
},
|
|
2895
2353
|
{
|
|
2896
2354
|
"kind": "javascript-module",
|
|
2897
|
-
"path": "dist/chunks/nb.
|
|
2355
|
+
"path": "dist/chunks/nb.7357HC5J.js",
|
|
2898
2356
|
"declarations": [
|
|
2899
2357
|
{
|
|
2900
2358
|
"kind": "variable",
|
|
@@ -2908,14 +2366,14 @@
|
|
|
2908
2366
|
"name": "templates",
|
|
2909
2367
|
"declaration": {
|
|
2910
2368
|
"name": "a",
|
|
2911
|
-
"module": "dist/chunks/nb.
|
|
2369
|
+
"module": "dist/chunks/nb.7357HC5J.js"
|
|
2912
2370
|
}
|
|
2913
2371
|
}
|
|
2914
2372
|
]
|
|
2915
2373
|
},
|
|
2916
2374
|
{
|
|
2917
2375
|
"kind": "javascript-module",
|
|
2918
|
-
"path": "dist/chunks/nl.
|
|
2376
|
+
"path": "dist/chunks/nl.QBFQWQBY.js",
|
|
2919
2377
|
"declarations": [
|
|
2920
2378
|
{
|
|
2921
2379
|
"kind": "variable",
|
|
@@ -2929,14 +2387,14 @@
|
|
|
2929
2387
|
"name": "templates",
|
|
2930
2388
|
"declaration": {
|
|
2931
2389
|
"name": "n",
|
|
2932
|
-
"module": "dist/chunks/nl.
|
|
2390
|
+
"module": "dist/chunks/nl.QBFQWQBY.js"
|
|
2933
2391
|
}
|
|
2934
2392
|
}
|
|
2935
2393
|
]
|
|
2936
2394
|
},
|
|
2937
2395
|
{
|
|
2938
2396
|
"kind": "javascript-module",
|
|
2939
|
-
"path": "dist/chunks/nl_NL.
|
|
2397
|
+
"path": "dist/chunks/nl_NL.RS7W3XGO.js",
|
|
2940
2398
|
"declarations": [
|
|
2941
2399
|
{
|
|
2942
2400
|
"kind": "variable",
|
|
@@ -2950,14 +2408,14 @@
|
|
|
2950
2408
|
"name": "templates",
|
|
2951
2409
|
"declaration": {
|
|
2952
2410
|
"name": "n",
|
|
2953
|
-
"module": "dist/chunks/nl_NL.
|
|
2411
|
+
"module": "dist/chunks/nl_NL.RS7W3XGO.js"
|
|
2954
2412
|
}
|
|
2955
2413
|
}
|
|
2956
2414
|
]
|
|
2957
2415
|
},
|
|
2958
2416
|
{
|
|
2959
2417
|
"kind": "javascript-module",
|
|
2960
|
-
"path": "dist/chunks/pl.
|
|
2418
|
+
"path": "dist/chunks/pl.FSJRWYQ5.js",
|
|
2961
2419
|
"declarations": [
|
|
2962
2420
|
{
|
|
2963
2421
|
"kind": "variable",
|
|
@@ -2971,14 +2429,14 @@
|
|
|
2971
2429
|
"name": "templates",
|
|
2972
2430
|
"declaration": {
|
|
2973
2431
|
"name": "i",
|
|
2974
|
-
"module": "dist/chunks/pl.
|
|
2432
|
+
"module": "dist/chunks/pl.FSJRWYQ5.js"
|
|
2975
2433
|
}
|
|
2976
2434
|
}
|
|
2977
2435
|
]
|
|
2978
2436
|
},
|
|
2979
2437
|
{
|
|
2980
2438
|
"kind": "javascript-module",
|
|
2981
|
-
"path": "dist/chunks/pt-BR.
|
|
2439
|
+
"path": "dist/chunks/pt-BR.WVYS3Y2I.js",
|
|
2982
2440
|
"declarations": [
|
|
2983
2441
|
{
|
|
2984
2442
|
"kind": "variable",
|
|
@@ -2992,14 +2450,14 @@
|
|
|
2992
2450
|
"name": "templates",
|
|
2993
2451
|
"declaration": {
|
|
2994
2452
|
"name": "t",
|
|
2995
|
-
"module": "dist/chunks/pt-BR.
|
|
2453
|
+
"module": "dist/chunks/pt-BR.WVYS3Y2I.js"
|
|
2996
2454
|
}
|
|
2997
2455
|
}
|
|
2998
2456
|
]
|
|
2999
2457
|
},
|
|
3000
2458
|
{
|
|
3001
2459
|
"kind": "javascript-module",
|
|
3002
|
-
"path": "dist/chunks/pt.
|
|
2460
|
+
"path": "dist/chunks/pt.LUSIBC5X.js",
|
|
3003
2461
|
"declarations": [
|
|
3004
2462
|
{
|
|
3005
2463
|
"kind": "variable",
|
|
@@ -3013,14 +2471,14 @@
|
|
|
3013
2471
|
"name": "templates",
|
|
3014
2472
|
"declaration": {
|
|
3015
2473
|
"name": "t",
|
|
3016
|
-
"module": "dist/chunks/pt.
|
|
2474
|
+
"module": "dist/chunks/pt.LUSIBC5X.js"
|
|
3017
2475
|
}
|
|
3018
2476
|
}
|
|
3019
2477
|
]
|
|
3020
2478
|
},
|
|
3021
2479
|
{
|
|
3022
2480
|
"kind": "javascript-module",
|
|
3023
|
-
"path": "dist/chunks/ro.
|
|
2481
|
+
"path": "dist/chunks/ro.TKERTYBG.js",
|
|
3024
2482
|
"declarations": [
|
|
3025
2483
|
{
|
|
3026
2484
|
"kind": "variable",
|
|
@@ -3034,14 +2492,14 @@
|
|
|
3034
2492
|
"name": "templates",
|
|
3035
2493
|
"declaration": {
|
|
3036
2494
|
"name": "i",
|
|
3037
|
-
"module": "dist/chunks/ro.
|
|
2495
|
+
"module": "dist/chunks/ro.TKERTYBG.js"
|
|
3038
2496
|
}
|
|
3039
2497
|
}
|
|
3040
2498
|
]
|
|
3041
2499
|
},
|
|
3042
2500
|
{
|
|
3043
2501
|
"kind": "javascript-module",
|
|
3044
|
-
"path": "dist/chunks/ru.
|
|
2502
|
+
"path": "dist/chunks/ru.VPEQHZ2S.js",
|
|
3045
2503
|
"declarations": [
|
|
3046
2504
|
{
|
|
3047
2505
|
"kind": "variable",
|
|
@@ -3055,14 +2513,14 @@
|
|
|
3055
2513
|
"name": "templates",
|
|
3056
2514
|
"declaration": {
|
|
3057
2515
|
"name": "o",
|
|
3058
|
-
"module": "dist/chunks/ru.
|
|
2516
|
+
"module": "dist/chunks/ru.VPEQHZ2S.js"
|
|
3059
2517
|
}
|
|
3060
2518
|
}
|
|
3061
2519
|
]
|
|
3062
2520
|
},
|
|
3063
2521
|
{
|
|
3064
2522
|
"kind": "javascript-module",
|
|
3065
|
-
"path": "dist/chunks/sk.
|
|
2523
|
+
"path": "dist/chunks/sk.QFMGH6WL.js",
|
|
3066
2524
|
"declarations": [
|
|
3067
2525
|
{
|
|
3068
2526
|
"kind": "variable",
|
|
@@ -3076,14 +2534,14 @@
|
|
|
3076
2534
|
"name": "templates",
|
|
3077
2535
|
"declaration": {
|
|
3078
2536
|
"name": "r",
|
|
3079
|
-
"module": "dist/chunks/sk.
|
|
2537
|
+
"module": "dist/chunks/sk.QFMGH6WL.js"
|
|
3080
2538
|
}
|
|
3081
2539
|
}
|
|
3082
2540
|
]
|
|
3083
2541
|
},
|
|
3084
2542
|
{
|
|
3085
2543
|
"kind": "javascript-module",
|
|
3086
|
-
"path": "dist/chunks/sl.
|
|
2544
|
+
"path": "dist/chunks/sl.RUAKKCKD.js",
|
|
3087
2545
|
"declarations": [
|
|
3088
2546
|
{
|
|
3089
2547
|
"kind": "variable",
|
|
@@ -3097,14 +2555,14 @@
|
|
|
3097
2555
|
"name": "templates",
|
|
3098
2556
|
"declaration": {
|
|
3099
2557
|
"name": "r",
|
|
3100
|
-
"module": "dist/chunks/sl.
|
|
2558
|
+
"module": "dist/chunks/sl.RUAKKCKD.js"
|
|
3101
2559
|
}
|
|
3102
2560
|
}
|
|
3103
2561
|
]
|
|
3104
2562
|
},
|
|
3105
2563
|
{
|
|
3106
2564
|
"kind": "javascript-module",
|
|
3107
|
-
"path": "dist/chunks/sr-RS.
|
|
2565
|
+
"path": "dist/chunks/sr-RS.WSZIECEH.js",
|
|
3108
2566
|
"declarations": [
|
|
3109
2567
|
{
|
|
3110
2568
|
"kind": "variable",
|
|
@@ -3118,14 +2576,14 @@
|
|
|
3118
2576
|
"name": "templates",
|
|
3119
2577
|
"declaration": {
|
|
3120
2578
|
"name": "o",
|
|
3121
|
-
"module": "dist/chunks/sr-RS.
|
|
2579
|
+
"module": "dist/chunks/sr-RS.WSZIECEH.js"
|
|
3122
2580
|
}
|
|
3123
2581
|
}
|
|
3124
2582
|
]
|
|
3125
2583
|
},
|
|
3126
2584
|
{
|
|
3127
2585
|
"kind": "javascript-module",
|
|
3128
|
-
"path": "dist/chunks/sv.
|
|
2586
|
+
"path": "dist/chunks/sv.AHI2S45X.js",
|
|
3129
2587
|
"declarations": [
|
|
3130
2588
|
{
|
|
3131
2589
|
"kind": "variable",
|
|
@@ -3139,14 +2597,14 @@
|
|
|
3139
2597
|
"name": "templates",
|
|
3140
2598
|
"declaration": {
|
|
3141
2599
|
"name": "n",
|
|
3142
|
-
"module": "dist/chunks/sv.
|
|
2600
|
+
"module": "dist/chunks/sv.AHI2S45X.js"
|
|
3143
2601
|
}
|
|
3144
2602
|
}
|
|
3145
2603
|
]
|
|
3146
2604
|
},
|
|
3147
2605
|
{
|
|
3148
2606
|
"kind": "javascript-module",
|
|
3149
|
-
"path": "dist/chunks/th.
|
|
2607
|
+
"path": "dist/chunks/th.ZKRE26WN.js",
|
|
3150
2608
|
"declarations": [
|
|
3151
2609
|
{
|
|
3152
2610
|
"kind": "variable",
|
|
@@ -3160,14 +2618,14 @@
|
|
|
3160
2618
|
"name": "templates",
|
|
3161
2619
|
"declaration": {
|
|
3162
2620
|
"name": "o",
|
|
3163
|
-
"module": "dist/chunks/th.
|
|
2621
|
+
"module": "dist/chunks/th.ZKRE26WN.js"
|
|
3164
2622
|
}
|
|
3165
2623
|
}
|
|
3166
2624
|
]
|
|
3167
2625
|
},
|
|
3168
2626
|
{
|
|
3169
2627
|
"kind": "javascript-module",
|
|
3170
|
-
"path": "dist/chunks/tr.
|
|
2628
|
+
"path": "dist/chunks/tr.6NOOTQVO.js",
|
|
3171
2629
|
"declarations": [
|
|
3172
2630
|
{
|
|
3173
2631
|
"kind": "variable",
|
|
@@ -3181,14 +2639,14 @@
|
|
|
3181
2639
|
"name": "templates",
|
|
3182
2640
|
"declaration": {
|
|
3183
2641
|
"name": "n",
|
|
3184
|
-
"module": "dist/chunks/tr.
|
|
2642
|
+
"module": "dist/chunks/tr.6NOOTQVO.js"
|
|
3185
2643
|
}
|
|
3186
2644
|
}
|
|
3187
2645
|
]
|
|
3188
2646
|
},
|
|
3189
2647
|
{
|
|
3190
2648
|
"kind": "javascript-module",
|
|
3191
|
-
"path": "dist/chunks/uk-UA.
|
|
2649
|
+
"path": "dist/chunks/uk-UA.A6S7PXDN.js",
|
|
3192
2650
|
"declarations": [
|
|
3193
2651
|
{
|
|
3194
2652
|
"kind": "variable",
|
|
@@ -3202,14 +2660,14 @@
|
|
|
3202
2660
|
"name": "templates",
|
|
3203
2661
|
"declaration": {
|
|
3204
2662
|
"name": "o",
|
|
3205
|
-
"module": "dist/chunks/uk-UA.
|
|
2663
|
+
"module": "dist/chunks/uk-UA.A6S7PXDN.js"
|
|
3206
2664
|
}
|
|
3207
2665
|
}
|
|
3208
2666
|
]
|
|
3209
2667
|
},
|
|
3210
2668
|
{
|
|
3211
2669
|
"kind": "javascript-module",
|
|
3212
|
-
"path": "dist/chunks/vi.
|
|
2670
|
+
"path": "dist/chunks/vi.4Z5L3EAS.js",
|
|
3213
2671
|
"declarations": [
|
|
3214
2672
|
{
|
|
3215
2673
|
"kind": "variable",
|
|
@@ -3223,7 +2681,7 @@
|
|
|
3223
2681
|
"name": "templates",
|
|
3224
2682
|
"declaration": {
|
|
3225
2683
|
"name": "a",
|
|
3226
|
-
"module": "dist/chunks/vi.
|
|
2684
|
+
"module": "dist/chunks/vi.4Z5L3EAS.js"
|
|
3227
2685
|
}
|
|
3228
2686
|
}
|
|
3229
2687
|
]
|
|
@@ -3251,7 +2709,7 @@
|
|
|
3251
2709
|
},
|
|
3252
2710
|
{
|
|
3253
2711
|
"kind": "javascript-module",
|
|
3254
|
-
"path": "dist/chunks/zh-CN.
|
|
2712
|
+
"path": "dist/chunks/zh-CN.SN6TXY6W.js",
|
|
3255
2713
|
"declarations": [
|
|
3256
2714
|
{
|
|
3257
2715
|
"kind": "variable",
|
|
@@ -3265,14 +2723,14 @@
|
|
|
3265
2723
|
"name": "templates",
|
|
3266
2724
|
"declaration": {
|
|
3267
2725
|
"name": "o",
|
|
3268
|
-
"module": "dist/chunks/zh-CN.
|
|
2726
|
+
"module": "dist/chunks/zh-CN.SN6TXY6W.js"
|
|
3269
2727
|
}
|
|
3270
2728
|
}
|
|
3271
2729
|
]
|
|
3272
2730
|
},
|
|
3273
2731
|
{
|
|
3274
2732
|
"kind": "javascript-module",
|
|
3275
|
-
"path": "dist/chunks/zh-HK.
|
|
2733
|
+
"path": "dist/chunks/zh-HK.SQG5YIVQ.js",
|
|
3276
2734
|
"declarations": [
|
|
3277
2735
|
{
|
|
3278
2736
|
"kind": "variable",
|
|
@@ -3286,14 +2744,14 @@
|
|
|
3286
2744
|
"name": "templates",
|
|
3287
2745
|
"declaration": {
|
|
3288
2746
|
"name": "o",
|
|
3289
|
-
"module": "dist/chunks/zh-HK.
|
|
2747
|
+
"module": "dist/chunks/zh-HK.SQG5YIVQ.js"
|
|
3290
2748
|
}
|
|
3291
2749
|
}
|
|
3292
2750
|
]
|
|
3293
2751
|
},
|
|
3294
2752
|
{
|
|
3295
2753
|
"kind": "javascript-module",
|
|
3296
|
-
"path": "dist/chunks/zh-TW.
|
|
2754
|
+
"path": "dist/chunks/zh-TW.P2X3B7LC.js",
|
|
3297
2755
|
"declarations": [
|
|
3298
2756
|
{
|
|
3299
2757
|
"kind": "variable",
|
|
@@ -3307,41 +2765,101 @@
|
|
|
3307
2765
|
"name": "templates",
|
|
3308
2766
|
"declaration": {
|
|
3309
2767
|
"name": "o",
|
|
3310
|
-
"module": "dist/chunks/zh-TW.
|
|
2768
|
+
"module": "dist/chunks/zh-TW.P2X3B7LC.js"
|
|
3311
2769
|
}
|
|
3312
2770
|
}
|
|
3313
2771
|
]
|
|
3314
2772
|
},
|
|
3315
2773
|
{
|
|
3316
2774
|
"kind": "javascript-module",
|
|
3317
|
-
"path": "
|
|
3318
|
-
"declarations": [
|
|
3319
|
-
"exports": []
|
|
3320
|
-
},
|
|
3321
|
-
{
|
|
3322
|
-
"kind": "javascript-module",
|
|
3323
|
-
"path": "src/atoms/index.ts",
|
|
3324
|
-
"declarations": [],
|
|
3325
|
-
"exports": [
|
|
3326
|
-
{
|
|
3327
|
-
"kind": "js",
|
|
3328
|
-
"name": "Spinner",
|
|
3329
|
-
"declaration": {
|
|
3330
|
-
"name": "Spinner",
|
|
3331
|
-
"module": "./spinner/spinner"
|
|
3332
|
-
}
|
|
3333
|
-
},
|
|
2775
|
+
"path": "e2e/mocks/shared.ts",
|
|
2776
|
+
"declarations": [
|
|
3334
2777
|
{
|
|
3335
|
-
"kind": "
|
|
3336
|
-
"name": "
|
|
3337
|
-
"
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
2778
|
+
"kind": "function",
|
|
2779
|
+
"name": "mockConfigurationCallSBX",
|
|
2780
|
+
"parameters": [
|
|
2781
|
+
{
|
|
2782
|
+
"name": "page",
|
|
2783
|
+
"type": {
|
|
2784
|
+
"text": "Page"
|
|
2785
|
+
}
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
"name": "config",
|
|
2789
|
+
"type": {
|
|
2790
|
+
"text": "unknown"
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
]
|
|
3341
2794
|
},
|
|
3342
2795
|
{
|
|
3343
|
-
"kind": "
|
|
3344
|
-
"name": "
|
|
2796
|
+
"kind": "function",
|
|
2797
|
+
"name": "mockConfigurationCallSTG",
|
|
2798
|
+
"parameters": [
|
|
2799
|
+
{
|
|
2800
|
+
"name": "page",
|
|
2801
|
+
"type": {
|
|
2802
|
+
"text": "Page"
|
|
2803
|
+
}
|
|
2804
|
+
},
|
|
2805
|
+
{
|
|
2806
|
+
"name": "config",
|
|
2807
|
+
"type": {
|
|
2808
|
+
"text": "unknown"
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
]
|
|
2812
|
+
}
|
|
2813
|
+
],
|
|
2814
|
+
"exports": [
|
|
2815
|
+
{
|
|
2816
|
+
"kind": "js",
|
|
2817
|
+
"name": "mockConfigurationCallSBX",
|
|
2818
|
+
"declaration": {
|
|
2819
|
+
"name": "mockConfigurationCallSBX",
|
|
2820
|
+
"module": "e2e/mocks/shared.ts"
|
|
2821
|
+
}
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"kind": "js",
|
|
2825
|
+
"name": "mockConfigurationCallSTG",
|
|
2826
|
+
"declaration": {
|
|
2827
|
+
"name": "mockConfigurationCallSTG",
|
|
2828
|
+
"module": "e2e/mocks/shared.ts"
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
]
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
"kind": "javascript-module",
|
|
2835
|
+
"path": "src/__tests__/setup.ts",
|
|
2836
|
+
"declarations": [],
|
|
2837
|
+
"exports": []
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
"kind": "javascript-module",
|
|
2841
|
+
"path": "src/atoms/index.ts",
|
|
2842
|
+
"declarations": [],
|
|
2843
|
+
"exports": [
|
|
2844
|
+
{
|
|
2845
|
+
"kind": "js",
|
|
2846
|
+
"name": "Spinner",
|
|
2847
|
+
"declaration": {
|
|
2848
|
+
"name": "Spinner",
|
|
2849
|
+
"module": "./spinner/spinner"
|
|
2850
|
+
}
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
"kind": "js",
|
|
2854
|
+
"name": "InputWrapper",
|
|
2855
|
+
"declaration": {
|
|
2856
|
+
"name": "InputWrapper",
|
|
2857
|
+
"package": "@components/atoms/input-wrapper/input-wrapper"
|
|
2858
|
+
}
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
"kind": "js",
|
|
2862
|
+
"name": "InputLabel",
|
|
3345
2863
|
"declaration": {
|
|
3346
2864
|
"name": "InputLabel",
|
|
3347
2865
|
"package": "@components/atoms/input-label/input-label"
|
|
@@ -4470,6 +3988,129 @@
|
|
|
4470
3988
|
}
|
|
4471
3989
|
]
|
|
4472
3990
|
},
|
|
3991
|
+
{
|
|
3992
|
+
"kind": "javascript-module",
|
|
3993
|
+
"path": "src/controllers/payment-lifecycle-callbacks.ts",
|
|
3994
|
+
"declarations": [
|
|
3995
|
+
{
|
|
3996
|
+
"kind": "function",
|
|
3997
|
+
"name": "handlePaymentStart",
|
|
3998
|
+
"return": {
|
|
3999
|
+
"type": {
|
|
4000
|
+
"text": "void"
|
|
4001
|
+
}
|
|
4002
|
+
},
|
|
4003
|
+
"parameters": [
|
|
4004
|
+
{
|
|
4005
|
+
"name": "context",
|
|
4006
|
+
"type": {
|
|
4007
|
+
"text": "PaymentLifecycleContext"
|
|
4008
|
+
}
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
"name": "paymentMethodType",
|
|
4012
|
+
"type": {
|
|
4013
|
+
"text": "PaymentMethodType"
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
],
|
|
4017
|
+
"description": "Handle common payment start logic including reattempt tracking.\nCentralizes state updates and analytics for payment initiation."
|
|
4018
|
+
},
|
|
4019
|
+
{
|
|
4020
|
+
"kind": "function",
|
|
4021
|
+
"name": "handlePaymentSuccess",
|
|
4022
|
+
"return": {
|
|
4023
|
+
"type": {
|
|
4024
|
+
"text": "void"
|
|
4025
|
+
}
|
|
4026
|
+
},
|
|
4027
|
+
"parameters": [
|
|
4028
|
+
{
|
|
4029
|
+
"name": "context",
|
|
4030
|
+
"type": {
|
|
4031
|
+
"text": "PaymentLifecycleContext"
|
|
4032
|
+
}
|
|
4033
|
+
},
|
|
4034
|
+
{
|
|
4035
|
+
"name": "payment",
|
|
4036
|
+
"type": {
|
|
4037
|
+
"text": "Payment"
|
|
4038
|
+
}
|
|
4039
|
+
},
|
|
4040
|
+
{
|
|
4041
|
+
"name": "paymentMethodType",
|
|
4042
|
+
"type": {
|
|
4043
|
+
"text": "PaymentMethodType | undefined"
|
|
4044
|
+
}
|
|
4045
|
+
}
|
|
4046
|
+
],
|
|
4047
|
+
"description": "Handle common payment success logic.\nCentralizes state updates, event dispatching, analytics, and callback invocation.\n\nNote: paymentMethodType may be undefined when the payment object doesn't include\npaymentMethodData (e.g., in legacy SDK mode responses)."
|
|
4048
|
+
},
|
|
4049
|
+
{
|
|
4050
|
+
"kind": "function",
|
|
4051
|
+
"name": "handlePaymentFailure",
|
|
4052
|
+
"return": {
|
|
4053
|
+
"type": {
|
|
4054
|
+
"text": "void"
|
|
4055
|
+
}
|
|
4056
|
+
},
|
|
4057
|
+
"parameters": [
|
|
4058
|
+
{
|
|
4059
|
+
"name": "context",
|
|
4060
|
+
"type": {
|
|
4061
|
+
"text": "PaymentLifecycleContext"
|
|
4062
|
+
}
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
"name": "error",
|
|
4066
|
+
"type": {
|
|
4067
|
+
"text": "unknown"
|
|
4068
|
+
}
|
|
4069
|
+
},
|
|
4070
|
+
{
|
|
4071
|
+
"name": "paymentMethodType",
|
|
4072
|
+
"type": {
|
|
4073
|
+
"text": "PaymentMethodType | undefined"
|
|
4074
|
+
}
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
"name": "payment",
|
|
4078
|
+
"optional": true,
|
|
4079
|
+
"type": {
|
|
4080
|
+
"text": "Payment"
|
|
4081
|
+
}
|
|
4082
|
+
}
|
|
4083
|
+
],
|
|
4084
|
+
"description": "Handle common payment failure logic.\nCentralizes error processing, state updates, event dispatching, analytics, and callback invocation.\n\nNote: paymentMethodType may be undefined when the payment object is not returned in the callback."
|
|
4085
|
+
}
|
|
4086
|
+
],
|
|
4087
|
+
"exports": [
|
|
4088
|
+
{
|
|
4089
|
+
"kind": "js",
|
|
4090
|
+
"name": "handlePaymentStart",
|
|
4091
|
+
"declaration": {
|
|
4092
|
+
"name": "handlePaymentStart",
|
|
4093
|
+
"module": "src/controllers/payment-lifecycle-callbacks.ts"
|
|
4094
|
+
}
|
|
4095
|
+
},
|
|
4096
|
+
{
|
|
4097
|
+
"kind": "js",
|
|
4098
|
+
"name": "handlePaymentSuccess",
|
|
4099
|
+
"declaration": {
|
|
4100
|
+
"name": "handlePaymentSuccess",
|
|
4101
|
+
"module": "src/controllers/payment-lifecycle-callbacks.ts"
|
|
4102
|
+
}
|
|
4103
|
+
},
|
|
4104
|
+
{
|
|
4105
|
+
"kind": "js",
|
|
4106
|
+
"name": "handlePaymentFailure",
|
|
4107
|
+
"declaration": {
|
|
4108
|
+
"name": "handlePaymentFailure",
|
|
4109
|
+
"module": "src/controllers/payment-lifecycle-callbacks.ts"
|
|
4110
|
+
}
|
|
4111
|
+
}
|
|
4112
|
+
]
|
|
4113
|
+
},
|
|
4473
4114
|
{
|
|
4474
4115
|
"kind": "javascript-module",
|
|
4475
4116
|
"path": "src/controllers/primer-events-controller.ts",
|
|
@@ -4688,7 +4329,7 @@
|
|
|
4688
4329
|
{
|
|
4689
4330
|
"name": "paymentMethodType",
|
|
4690
4331
|
"type": {
|
|
4691
|
-
"text": "
|
|
4332
|
+
"text": "PaymentMethodType | undefined"
|
|
4692
4333
|
}
|
|
4693
4334
|
}
|
|
4694
4335
|
],
|
|
@@ -4712,7 +4353,7 @@
|
|
|
4712
4353
|
{
|
|
4713
4354
|
"name": "paymentMethodType",
|
|
4714
4355
|
"type": {
|
|
4715
|
-
"text": "
|
|
4356
|
+
"text": "PaymentMethodType | undefined"
|
|
4716
4357
|
}
|
|
4717
4358
|
},
|
|
4718
4359
|
{
|
|
@@ -6419,6 +6060,38 @@
|
|
|
6419
6060
|
"name": "PaymentSummary",
|
|
6420
6061
|
"package": "@primer-io/sdk-core"
|
|
6421
6062
|
}
|
|
6063
|
+
},
|
|
6064
|
+
{
|
|
6065
|
+
"kind": "js",
|
|
6066
|
+
"name": "GooglePayClientOptions",
|
|
6067
|
+
"declaration": {
|
|
6068
|
+
"name": "GooglePayClientOptions",
|
|
6069
|
+
"package": "@primer-io/sdk-core"
|
|
6070
|
+
}
|
|
6071
|
+
},
|
|
6072
|
+
{
|
|
6073
|
+
"kind": "js",
|
|
6074
|
+
"name": "GooglePayButtonType",
|
|
6075
|
+
"declaration": {
|
|
6076
|
+
"name": "GooglePayButtonType",
|
|
6077
|
+
"package": "@primer-io/sdk-core"
|
|
6078
|
+
}
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
"kind": "js",
|
|
6082
|
+
"name": "GooglePayButtonColor",
|
|
6083
|
+
"declaration": {
|
|
6084
|
+
"name": "GooglePayButtonColor",
|
|
6085
|
+
"package": "@primer-io/sdk-core"
|
|
6086
|
+
}
|
|
6087
|
+
},
|
|
6088
|
+
{
|
|
6089
|
+
"kind": "js",
|
|
6090
|
+
"name": "GooglePayButtonSizeMode",
|
|
6091
|
+
"declaration": {
|
|
6092
|
+
"name": "GooglePayButtonSizeMode",
|
|
6093
|
+
"package": "@primer-io/sdk-core"
|
|
6094
|
+
}
|
|
6422
6095
|
}
|
|
6423
6096
|
]
|
|
6424
6097
|
},
|
|
@@ -6603,6 +6276,38 @@
|
|
|
6603
6276
|
"module": "./compatibility-types"
|
|
6604
6277
|
}
|
|
6605
6278
|
},
|
|
6279
|
+
{
|
|
6280
|
+
"kind": "js",
|
|
6281
|
+
"name": "GooglePayClientOptions",
|
|
6282
|
+
"declaration": {
|
|
6283
|
+
"name": "GooglePayClientOptions",
|
|
6284
|
+
"module": "./compatibility-types"
|
|
6285
|
+
}
|
|
6286
|
+
},
|
|
6287
|
+
{
|
|
6288
|
+
"kind": "js",
|
|
6289
|
+
"name": "GooglePayButtonType",
|
|
6290
|
+
"declaration": {
|
|
6291
|
+
"name": "GooglePayButtonType",
|
|
6292
|
+
"module": "./compatibility-types"
|
|
6293
|
+
}
|
|
6294
|
+
},
|
|
6295
|
+
{
|
|
6296
|
+
"kind": "js",
|
|
6297
|
+
"name": "GooglePayButtonColor",
|
|
6298
|
+
"declaration": {
|
|
6299
|
+
"name": "GooglePayButtonColor",
|
|
6300
|
+
"module": "./compatibility-types"
|
|
6301
|
+
}
|
|
6302
|
+
},
|
|
6303
|
+
{
|
|
6304
|
+
"kind": "js",
|
|
6305
|
+
"name": "GooglePayButtonSizeMode",
|
|
6306
|
+
"declaration": {
|
|
6307
|
+
"name": "GooglePayButtonSizeMode",
|
|
6308
|
+
"module": "./compatibility-types"
|
|
6309
|
+
}
|
|
6310
|
+
},
|
|
6606
6311
|
{
|
|
6607
6312
|
"kind": "js",
|
|
6608
6313
|
"name": "HeadlessManagerType",
|
|
@@ -7063,40 +6768,119 @@
|
|
|
7063
6768
|
},
|
|
7064
6769
|
{
|
|
7065
6770
|
"kind": "javascript-module",
|
|
7066
|
-
"path": "src/utils/
|
|
6771
|
+
"path": "src/utils/createTranslate.ts",
|
|
7067
6772
|
"declarations": [
|
|
7068
6773
|
{
|
|
7069
6774
|
"kind": "function",
|
|
7070
|
-
"name": "
|
|
6775
|
+
"name": "createTranslateFunction",
|
|
7071
6776
|
"return": {
|
|
7072
6777
|
"type": {
|
|
7073
|
-
"text": "
|
|
6778
|
+
"text": ""
|
|
7074
6779
|
}
|
|
7075
6780
|
},
|
|
7076
6781
|
"parameters": [
|
|
7077
6782
|
{
|
|
7078
|
-
"name": "
|
|
6783
|
+
"name": "locale",
|
|
7079
6784
|
"type": {
|
|
7080
|
-
"text": "
|
|
6785
|
+
"text": "string"
|
|
6786
|
+
},
|
|
6787
|
+
"description": "The locale code (e.g., 'en-GB', 'fr', 'de')"
|
|
6788
|
+
}
|
|
6789
|
+
],
|
|
6790
|
+
"description": "Creates a translate function for sdk-core that looks up translations by key.\nThis is used for translating labels in payment methods like Google Pay."
|
|
6791
|
+
},
|
|
6792
|
+
{
|
|
6793
|
+
"kind": "function",
|
|
6794
|
+
"name": "createSyncTranslateFunction",
|
|
6795
|
+
"return": {
|
|
6796
|
+
"type": {
|
|
6797
|
+
"text": ""
|
|
6798
|
+
}
|
|
6799
|
+
},
|
|
6800
|
+
"description": "Creates a synchronous translate function using cached templates.\nCall loadTranslationTemplates first to ensure templates are cached."
|
|
6801
|
+
},
|
|
6802
|
+
{
|
|
6803
|
+
"kind": "function",
|
|
6804
|
+
"name": "preloadTranslations",
|
|
6805
|
+
"return": {
|
|
6806
|
+
"type": {
|
|
6807
|
+
"text": "Promise<void>"
|
|
6808
|
+
}
|
|
6809
|
+
},
|
|
6810
|
+
"parameters": [
|
|
6811
|
+
{
|
|
6812
|
+
"name": "locale",
|
|
6813
|
+
"type": {
|
|
6814
|
+
"text": "string"
|
|
7081
6815
|
}
|
|
7082
6816
|
}
|
|
7083
|
-
]
|
|
6817
|
+
],
|
|
6818
|
+
"description": "Preloads translation templates for a locale.\nCall this when locale is set to ensure translations are available."
|
|
7084
6819
|
}
|
|
7085
6820
|
],
|
|
7086
6821
|
"exports": [
|
|
7087
6822
|
{
|
|
7088
6823
|
"kind": "js",
|
|
7089
|
-
"name": "
|
|
6824
|
+
"name": "createTranslateFunction",
|
|
7090
6825
|
"declaration": {
|
|
7091
|
-
"name": "
|
|
7092
|
-
"module": "src/utils/
|
|
6826
|
+
"name": "createTranslateFunction",
|
|
6827
|
+
"module": "src/utils/createTranslate.ts"
|
|
6828
|
+
}
|
|
6829
|
+
},
|
|
6830
|
+
{
|
|
6831
|
+
"kind": "js",
|
|
6832
|
+
"name": "createSyncTranslateFunction",
|
|
6833
|
+
"declaration": {
|
|
6834
|
+
"name": "createSyncTranslateFunction",
|
|
6835
|
+
"module": "src/utils/createTranslate.ts"
|
|
6836
|
+
}
|
|
6837
|
+
},
|
|
6838
|
+
{
|
|
6839
|
+
"kind": "js",
|
|
6840
|
+
"name": "preloadTranslations",
|
|
6841
|
+
"declaration": {
|
|
6842
|
+
"name": "preloadTranslations",
|
|
6843
|
+
"module": "src/utils/createTranslate.ts"
|
|
7093
6844
|
}
|
|
7094
6845
|
}
|
|
7095
6846
|
]
|
|
7096
6847
|
},
|
|
7097
6848
|
{
|
|
7098
6849
|
"kind": "javascript-module",
|
|
7099
|
-
"path": "src/utils/
|
|
6850
|
+
"path": "src/utils/getFormInputBaseStyles.ts",
|
|
6851
|
+
"declarations": [
|
|
6852
|
+
{
|
|
6853
|
+
"kind": "function",
|
|
6854
|
+
"name": "getFormInputBaseStyles",
|
|
6855
|
+
"return": {
|
|
6856
|
+
"type": {
|
|
6857
|
+
"text": "InputStyles['base'] | null"
|
|
6858
|
+
}
|
|
6859
|
+
},
|
|
6860
|
+
"parameters": [
|
|
6861
|
+
{
|
|
6862
|
+
"name": "styles",
|
|
6863
|
+
"type": {
|
|
6864
|
+
"text": "CSSStyleDeclaration | null"
|
|
6865
|
+
}
|
|
6866
|
+
}
|
|
6867
|
+
]
|
|
6868
|
+
}
|
|
6869
|
+
],
|
|
6870
|
+
"exports": [
|
|
6871
|
+
{
|
|
6872
|
+
"kind": "js",
|
|
6873
|
+
"name": "getFormInputBaseStyles",
|
|
6874
|
+
"declaration": {
|
|
6875
|
+
"name": "getFormInputBaseStyles",
|
|
6876
|
+
"module": "src/utils/getFormInputBaseStyles.ts"
|
|
6877
|
+
}
|
|
6878
|
+
}
|
|
6879
|
+
]
|
|
6880
|
+
},
|
|
6881
|
+
{
|
|
6882
|
+
"kind": "javascript-module",
|
|
6883
|
+
"path": "src/utils/isBrowser.ts",
|
|
7100
6884
|
"declarations": [
|
|
7101
6885
|
{
|
|
7102
6886
|
"kind": "variable",
|
|
@@ -7263,6 +7047,489 @@
|
|
|
7263
7047
|
}
|
|
7264
7048
|
]
|
|
7265
7049
|
},
|
|
7050
|
+
{
|
|
7051
|
+
"kind": "javascript-module",
|
|
7052
|
+
"path": "e2e/mocks/sdkcore-false/card-3ds.ts",
|
|
7053
|
+
"declarations": [
|
|
7054
|
+
{
|
|
7055
|
+
"kind": "variable",
|
|
7056
|
+
"name": "settings",
|
|
7057
|
+
"type": {
|
|
7058
|
+
"text": "string"
|
|
7059
|
+
},
|
|
7060
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI3NDUyNyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
7061
|
+
},
|
|
7062
|
+
{
|
|
7063
|
+
"kind": "variable",
|
|
7064
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7065
|
+
"type": {
|
|
7066
|
+
"text": "object"
|
|
7067
|
+
},
|
|
7068
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, { type: 'CARD_INFORMATION', }, ], clientSession: { clientSessionId: '0d5f31b6-5848-49ce-9625-3254d5dd8a78', order: { orderId: '74527', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], fees: [ { type: 'SURCHARGE', amount: 0, }, ], }, customer: { customerId: 'Euler is the best', billingAddress: { firstName: 'Card', lastName: 'Holder Name', postalCode: '94043', addressLine1: '1600 Amphitheatre Parkway', countryCode: 'US', city: 'Mountain View', state: 'CA', }, }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '84100a01-523f-4347-ac44-e8a3e7083d9a', env: 'SANDBOX', paymentMethods: [ { id: 'e787b281-e4f9-4494-96e8-188917540654', type: 'ADYEN_IDEAL', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '4ad980f3-ccc7-5e8e-9a9c-81cd6f5214d4', }, processorConfigId: '9319ad4e-cd51-4517-9d46-bc7be244752a', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'e1b5e078-081c-4075-a3cc-5ebc779d36f2', type: 'KLARNA', options: { merchantId: 'Primer', merchantAccountId: 'b6902742-384a-5dfa-b1ff-7dcd02880dc3', clientId: 'Primer', }, processorConfigId: 'b70c2b11-e37f-41fe-9797-d3900f343a36', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4e9497d8-1503-4541-8ead-d88151ffa257', type: 'XFERS_PAYNOW', options: { merchantId: 'testi', merchantAccountId: '6fb12703-1795-55ac-875e-2e8476cb8390', }, processorConfigId: '545e5533-b575-4c61-aebe-dec49a836f1b', implementationType: 'NATIVE_SDK', name: 'Xfers', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-light@3x.png', }, backgroundColor: { colored: '#941C80', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#028BF4', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e407fb0-a2f8-4636-a5bc-f404ac757c68', type: 'PAYPAL', options: { merchantId: 'sb-iyjg882920702@business.example.com', merchantAccountId: 'e584f5c7-3c7f-5b58-b187-8e641b0cdce4', clientId: 'AXsZfsyf2jtpTpLQARwSeBurtfT6WiRjHQt1PodMf94gPH0iLwglSdSJ7ZAQT3tCHNZQL--VlrVfwscv', intent: 'authorize', }, processorConfigId: '573b0c98-d588-4223-973f-513a5b5a6177', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: 'c657ae04-c230-4be4-9615-9b822743e5e4', type: 'APPLE_PAY', options: { merchantId: '84100a01523f4347ac44e8a3e7083d9a', merchantName: 'DX QA Account', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '527ee4ff-2c66-4234-829f-d20480f3aa09', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
7069
|
+
}
|
|
7070
|
+
],
|
|
7071
|
+
"exports": [
|
|
7072
|
+
{
|
|
7073
|
+
"kind": "js",
|
|
7074
|
+
"name": "settings",
|
|
7075
|
+
"declaration": {
|
|
7076
|
+
"name": "settings",
|
|
7077
|
+
"module": "e2e/mocks/sdkcore-false/card-3ds.ts"
|
|
7078
|
+
}
|
|
7079
|
+
},
|
|
7080
|
+
{
|
|
7081
|
+
"kind": "js",
|
|
7082
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7083
|
+
"declaration": {
|
|
7084
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7085
|
+
"module": "e2e/mocks/sdkcore-false/card-3ds.ts"
|
|
7086
|
+
}
|
|
7087
|
+
}
|
|
7088
|
+
]
|
|
7089
|
+
},
|
|
7090
|
+
{
|
|
7091
|
+
"kind": "javascript-module",
|
|
7092
|
+
"path": "e2e/mocks/sdkcore-false/card-basic.ts",
|
|
7093
|
+
"declarations": [
|
|
7094
|
+
{
|
|
7095
|
+
"kind": "variable",
|
|
7096
|
+
"name": "settings",
|
|
7097
|
+
"type": {
|
|
7098
|
+
"text": "string"
|
|
7099
|
+
},
|
|
7100
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6ZmFsc2V9fQ=='"
|
|
7101
|
+
},
|
|
7102
|
+
{
|
|
7103
|
+
"kind": "variable",
|
|
7104
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7105
|
+
"type": {
|
|
7106
|
+
"text": "object"
|
|
7107
|
+
},
|
|
7108
|
+
"default": "{ coreUrl: 'https://api.staging.primer.io', pciUrl: 'https://sdk.api.staging.primer.io', binDataUrl: 'https://bin-data.api.staging.core.primer.io', assetsUrl: 'https://assets.staging.core.primer.io', checkoutModules: [ { type: 'CARD_INFORMATION', options: { cardHolderName: true, cardholderName: true, }, }, { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, ], clientSession: { clientSessionId: '7430ecc6-a520-4353-bf03-030bb09ba4b7', order: { orderId: '34775', currencyCode: 'EUR', countryCode: 'GB', totalOrderAmount: 1000, merchantAmount: 1000, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 1000, quantity: 1, }, ], }, customer: { customerId: 'airwallex-customer-id-demo', }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: 'd634b2c6-17d8-4347-bac0-df642c2d6469', env: 'STAGING', paymentMethods: [ { id: 'd2862cfb-05a8-4304-9d80-6652450d19d7', type: 'AFTERPAY', options: { merchantId: 'wont-work', merchantAccountId: '04070052-bcd7-5d2f-92d0-70d1c9b30ce0', }, processorConfigId: '2805ab6e-6b0b-40e2-9d65-1e5c800a530e', implementationType: 'WEB_REDIRECT', name: 'Afterpay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#000000', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#000000', dark: '#FFFFFF', light: '#000000', }, textColor: { dark: '#FFFFFF', light: '#FFFFFF', }, iconPositionRelativeToText: 'END', }, }, forceRedirect: false, implementation: {}, }, { id: 'f4105e92-bf54-4652-a7ac-63a2adf3a96d', type: 'ALMA', options: { merchantId: '9b7d77ef-4862-4900-902c-8ff623476826', merchantAccountId: 'e11ef8e1-10a8-542d-924d-ae0546a03d35', }, processorConfigId: '9b7d77ef-4862-4900-902c-8ff623476826', implementationType: 'WEB_REDIRECT', name: 'Alma', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/ALMA/alma-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/ALMA/alma-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/ALMA/alma-logo@3x.png', }, backgroundColor: { colored: '#FA5022', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#FA5022', dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '588df103-82e2-4888-bf49-63f0182e516e', type: 'BRAINTREE_VENMO', options: { merchantId: 'primer', merchantAccountId: '4dd30736-e360-5562-994a-b9de0dc2c2da', }, processorConfigId: '99b3dd12-2d18-48b4-a700-acd8f7943bcb', implementationType: 'WEB_REDIRECT', name: 'Venmo', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/VENMO/venmo-logo@3x.png', dark: 'https://assets.staging.core.primer.io/VENMO/venmo-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/VENMO/venmo-logo-light@3x.png', }, backgroundColor: { colored: '#008CFF', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4cc272a3-69eb-46b6-9938-cd672d7a7cbd', type: 'ADYEN_MULTIBANCO', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'NATIVE_SDK', name: 'Multibanco', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo@3x.png', dark: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo@3x.png', light: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: { headless: { supportedManagerCategories: ['RAW_DATA'], }, events: [ { eventType: 'ON_START', uiAction: { actionType: 'NAVIGATE', screenId: 'start_screen', }, }, { eventType: 'ON_REQUIRED_ACTION_RECEIVED', uiAction: { actionType: 'NAVIGATE', screenId: 'voucher_screen', }, }, { eventType: 'ON_ERROR', uiAction: { actionType: 'NAVIGATE', screenId: 'error_screen', }, }, ], screens: [ { screenId: 'start_screen', isBackButtonEnabled: true, isShareButtonEnabled: false, orientation: 'VERTICAL', components: [ { style: { margin: { top: 'S', }, textStyle: 'TITLE', }, }, {}, ], }, { screenId: 'voucher_screen', isBackButtonEnabled: true, isShareButtonEnabled: true, orientation: 'VERTICAL', components: [ { style: { margin: { top: 'S', }, textStyle: 'TITLE', }, }, { orientation: 'HORIZONTAL', components: [ { style: { margin: { top: 'S', }, alignmentInParent: 'RIGHT', textStyle: 'TITLE', }, }, { style: { margin: { top: 'S', }, alignmentInParent: 'LEFT', textStyle: 'TITLE', }, }, ], alignment: 'FILL', distribution: 'FILL', }, { orientation: 'HORIZONTAL', components: [ { style: { margin: { top: 'S', }, alignmentInParent: 'RIGHT', textStyle: 'TITLE', }, }, { style: { margin: { top: 'S', }, alignmentInParent: 'LEFT', textStyle: 'TITLE', }, }, {}, ], alignment: 'FILL', distribution: 'FILL', }, ], }, { screenId: 'error_screen', isBackButtonEnabled: false, isShareButtonEnabled: false, orientation: 'VERTICAL', components: [{}], }, ], }, }, { id: '642bb622-b133-4445-904e-0e844967d4bb', type: 'FINTECTURE_IMMEDIATE_TRANSFER', options: { merchantId: '15808a62-2ac5-458b-b1b6-0ca0bce2d690', merchantAccountId: '55bbc227-ddf7-57f9-a0e8-4ebde5505ce5', }, processorConfigId: '15808a62-2ac5-458b-b1b6-0ca0bce2d690', implementationType: 'WEB_REDIRECT', name: 'Fintecture Immediate Transfer', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/FINTECTURE/inverted@3x.png', light: 'https://assets.staging.core.primer.io/FINTECTURE/default@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by Immediate transfer', textColor: { dark: '#FFFFFF', light: '#000000', }, iconPositionRelativeToText: 'START', }, }, forceRedirect: true, implementation: {}, }, { id: '8f057fb9-2737-44f4-aca8-7021ca5689bc', type: 'APPLE_PAY', options: { merchantId: 'd634b2c617d84347bac0df642c2d6469', merchantName: 'Connections', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '418673aa-954f-4f3e-89e9-d447574a1e14', type: 'SIPS_CPAY', options: { merchantId: '789b21f7-bd18-42f7-8ce8-a0d7320ec3ad', merchantAccountId: '946e95a0-63d0-5afd-9389-c4aea5a9b1fa', }, processorConfigId: '789b21f7-bd18-42f7-8ce8-a0d7320ec3ad', implementationType: 'WEB_REDIRECT', name: 'Cpay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/CPAY/cpay-logo@3x.png', dark: 'https://assets.staging.core.primer.io/CPAY/cpay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/CPAY/cpay-logo-light@3x.png', }, backgroundColor: { colored: '#FFFFFF', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, popup: { width: 830, height: 1000, }, }, forceRedirect: false, implementation: {}, }, { id: 'ba29b47f-bd66-46d6-a3e3-aa27c3b1d110', type: 'ADYEN_ALIPAY', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'WEB_REDIRECT', name: 'Alipay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo@3x.png', dark: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo-light@3x.png', }, backgroundColor: { colored: '#31B1F0', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'd5b11ef6-c0da-4b85-9095-cc260ddeb009', type: 'ADYEN_VIPPS', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'WEB_REDIRECT', name: 'Vipps', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo@3x.png', dark: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo-light@3x.png', }, backgroundColor: { colored: '#FF5B24', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'd180c74e-3616-4ada-b9ae-b9ad1c554efe', type: 'TRIPLE_A', options: { merchantId: '13eb240b-3da3-43a4-b8a8-1648d6c8cf99', merchantAccountId: 'ebac4f47-a9be-5523-94a9-6b381619ce07', }, processorConfigId: '13eb240b-3da3-43a4-b8a8-1648d6c8cf99', implementationType: 'WEB_REDIRECT', name: 'Triple-A', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/TRIPLE_A/triplea-logo@3x.png', light: 'https://assets.staging.core.primer.io/TRIPLE_A/triplea-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay with Crypto', textColor: { dark: '#FFFFFF', light: '#000000', }, iconPositionRelativeToText: 'END', }, popup: { width: 830, height: 1000, }, }, forceRedirect: false, implementation: {}, }, { id: 'fe2aa1da-6cad-41dc-885f-ea5483f49441', type: 'PAYPAL', options: { merchantId: 'sb-gmcgm25177732@business.example.com', merchantAccountId: 'bc5908a7-3b62-5696-804b-274eaa68fc3e', clientId: 'AcTGoAPNhwfbSPbiVYSlrUGwTBGijs6GvFGci2R3QI1jlu5ewofPFq0yZDm-Rka07c1FtY4DVnsRerPK', intent: 'authorize', }, processorConfigId: '0a5952b4-cbdf-49b6-a982-022bc0bd0f7f', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: '5f36bcaa-6479-4f4a-87ab-b526348c520f', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4bf74ad3-1d02-43f8-9d4e-f9825e5b48c5', type: 'PAYMENT_CARD', options: { merchantId: 'test', merchantAccountId: '46c7a690-924b-5b5e-a651-6a962f926b07', }, processorConfigId: 'e4dd8fc6-293f-4208-9160-fbfbfd6b0a4c', implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4bf74ad3-1d02-43f8-9d4e-f9825e5b48c5', type: 'PAYMENT_CARD', options: { merchantId: 'test', merchantAccountId: '46c7a690-924b-5b5e-a651-6a962f926b07', }, processorConfigId: 'e4dd8fc6-293f-4208-9160-fbfbfd6b0a4c', implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
7109
|
+
},
|
|
7110
|
+
{
|
|
7111
|
+
"kind": "variable",
|
|
7112
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
7113
|
+
"type": {
|
|
7114
|
+
"text": "string"
|
|
7115
|
+
},
|
|
7116
|
+
"default": "'4035 5010 0000 0008'"
|
|
7117
|
+
},
|
|
7118
|
+
{
|
|
7119
|
+
"kind": "variable",
|
|
7120
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
7121
|
+
"type": {
|
|
7122
|
+
"text": "string"
|
|
7123
|
+
},
|
|
7124
|
+
"default": "'4242 4242 4242 4242'"
|
|
7125
|
+
},
|
|
7126
|
+
{
|
|
7127
|
+
"kind": "function",
|
|
7128
|
+
"name": "mockPaymentInstruments",
|
|
7129
|
+
"parameters": [
|
|
7130
|
+
{
|
|
7131
|
+
"name": "page",
|
|
7132
|
+
"type": {
|
|
7133
|
+
"text": "Page"
|
|
7134
|
+
}
|
|
7135
|
+
}
|
|
7136
|
+
]
|
|
7137
|
+
},
|
|
7138
|
+
{
|
|
7139
|
+
"kind": "function",
|
|
7140
|
+
"name": "mockPayments",
|
|
7141
|
+
"parameters": [
|
|
7142
|
+
{
|
|
7143
|
+
"name": "page",
|
|
7144
|
+
"type": {
|
|
7145
|
+
"text": "Page"
|
|
7146
|
+
}
|
|
7147
|
+
}
|
|
7148
|
+
]
|
|
7149
|
+
},
|
|
7150
|
+
{
|
|
7151
|
+
"kind": "function",
|
|
7152
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
7153
|
+
"parameters": [
|
|
7154
|
+
{
|
|
7155
|
+
"name": "page",
|
|
7156
|
+
"type": {
|
|
7157
|
+
"text": "Page"
|
|
7158
|
+
}
|
|
7159
|
+
}
|
|
7160
|
+
]
|
|
7161
|
+
},
|
|
7162
|
+
{
|
|
7163
|
+
"kind": "function",
|
|
7164
|
+
"name": "mockPaymentsFailure",
|
|
7165
|
+
"parameters": [
|
|
7166
|
+
{
|
|
7167
|
+
"name": "page",
|
|
7168
|
+
"type": {
|
|
7169
|
+
"text": "Page"
|
|
7170
|
+
}
|
|
7171
|
+
}
|
|
7172
|
+
]
|
|
7173
|
+
}
|
|
7174
|
+
],
|
|
7175
|
+
"exports": [
|
|
7176
|
+
{
|
|
7177
|
+
"kind": "js",
|
|
7178
|
+
"name": "settings",
|
|
7179
|
+
"declaration": {
|
|
7180
|
+
"name": "settings",
|
|
7181
|
+
"module": "e2e/mocks/sdkcore-false/card-basic.ts"
|
|
7182
|
+
}
|
|
7183
|
+
},
|
|
7184
|
+
{
|
|
7185
|
+
"kind": "js",
|
|
7186
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7187
|
+
"declaration": {
|
|
7188
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7189
|
+
"module": "e2e/mocks/sdkcore-false/card-basic.ts"
|
|
7190
|
+
}
|
|
7191
|
+
},
|
|
7192
|
+
{
|
|
7193
|
+
"kind": "js",
|
|
7194
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
7195
|
+
"declaration": {
|
|
7196
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
7197
|
+
"module": "e2e/mocks/sdkcore-false/card-basic.ts"
|
|
7198
|
+
}
|
|
7199
|
+
},
|
|
7200
|
+
{
|
|
7201
|
+
"kind": "js",
|
|
7202
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
7203
|
+
"declaration": {
|
|
7204
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
7205
|
+
"module": "e2e/mocks/sdkcore-false/card-basic.ts"
|
|
7206
|
+
}
|
|
7207
|
+
},
|
|
7208
|
+
{
|
|
7209
|
+
"kind": "js",
|
|
7210
|
+
"name": "mockPaymentInstruments",
|
|
7211
|
+
"declaration": {
|
|
7212
|
+
"name": "mockPaymentInstruments",
|
|
7213
|
+
"module": "e2e/mocks/sdkcore-false/card-basic.ts"
|
|
7214
|
+
}
|
|
7215
|
+
},
|
|
7216
|
+
{
|
|
7217
|
+
"kind": "js",
|
|
7218
|
+
"name": "mockPayments",
|
|
7219
|
+
"declaration": {
|
|
7220
|
+
"name": "mockPayments",
|
|
7221
|
+
"module": "e2e/mocks/sdkcore-false/card-basic.ts"
|
|
7222
|
+
}
|
|
7223
|
+
},
|
|
7224
|
+
{
|
|
7225
|
+
"kind": "js",
|
|
7226
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
7227
|
+
"declaration": {
|
|
7228
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
7229
|
+
"module": "e2e/mocks/sdkcore-false/card-basic.ts"
|
|
7230
|
+
}
|
|
7231
|
+
},
|
|
7232
|
+
{
|
|
7233
|
+
"kind": "js",
|
|
7234
|
+
"name": "mockPaymentsFailure",
|
|
7235
|
+
"declaration": {
|
|
7236
|
+
"name": "mockPaymentsFailure",
|
|
7237
|
+
"module": "e2e/mocks/sdkcore-false/card-basic.ts"
|
|
7238
|
+
}
|
|
7239
|
+
}
|
|
7240
|
+
]
|
|
7241
|
+
},
|
|
7242
|
+
{
|
|
7243
|
+
"kind": "javascript-module",
|
|
7244
|
+
"path": "e2e/mocks/sdkcore-false/klarna.ts",
|
|
7245
|
+
"declarations": [
|
|
7246
|
+
{
|
|
7247
|
+
"kind": "variable",
|
|
7248
|
+
"name": "settings",
|
|
7249
|
+
"type": {
|
|
7250
|
+
"text": "string"
|
|
7251
|
+
},
|
|
7252
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI0NTg1OCIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJERSIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50Ijo2MDAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6e30sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
7253
|
+
},
|
|
7254
|
+
{
|
|
7255
|
+
"kind": "variable",
|
|
7256
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7257
|
+
"type": {
|
|
7258
|
+
"text": "object"
|
|
7259
|
+
},
|
|
7260
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, { type: 'CARD_INFORMATION', }, ], clientSession: { clientSessionId: 'ff9ecd24-537f-4928-a8e4-5534d2375200', order: { orderId: '45858', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], }, customer: { customerId: 'Euler is the best', }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '84100a01-523f-4347-ac44-e8a3e7083d9a', env: 'SANDBOX', paymentMethods: [ { id: 'e787b281-e4f9-4494-96e8-188917540654', type: 'ADYEN_IDEAL', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '4ad980f3-ccc7-5e8e-9a9c-81cd6f5214d4', }, processorConfigId: '9319ad4e-cd51-4517-9d46-bc7be244752a', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'e1b5e078-081c-4075-a3cc-5ebc779d36f2', type: 'KLARNA', options: { merchantId: 'Primer', merchantAccountId: 'b6902742-384a-5dfa-b1ff-7dcd02880dc3', clientId: 'Primer', }, processorConfigId: 'b70c2b11-e37f-41fe-9797-d3900f343a36', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4e9497d8-1503-4541-8ead-d88151ffa257', type: 'XFERS_PAYNOW', options: { merchantId: 'testi', merchantAccountId: '6fb12703-1795-55ac-875e-2e8476cb8390', }, processorConfigId: '545e5533-b575-4c61-aebe-dec49a836f1b', implementationType: 'NATIVE_SDK', name: 'Xfers', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-light@3x.png', }, backgroundColor: { colored: '#941C80', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#028BF4', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e407fb0-a2f8-4636-a5bc-f404ac757c68', type: 'PAYPAL', options: { merchantId: 'sb-iyjg882920702@business.example.com', merchantAccountId: 'e584f5c7-3c7f-5b58-b187-8e641b0cdce4', clientId: 'AXsZfsyf2jtpTpLQARwSeBurtfT6WiRjHQt1PodMf94gPH0iLwglSdSJ7ZAQT3tCHNZQL--VlrVfwscv', intent: 'authorize', }, processorConfigId: '573b0c98-d588-4223-973f-513a5b5a6177', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: 'c657ae04-c230-4be4-9615-9b822743e5e4', type: 'APPLE_PAY', options: { merchantId: '84100a01523f4347ac44e8a3e7083d9a', merchantName: 'DX QA Account', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '527ee4ff-2c66-4234-829f-d20480f3aa09', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
7261
|
+
}
|
|
7262
|
+
],
|
|
7263
|
+
"exports": [
|
|
7264
|
+
{
|
|
7265
|
+
"kind": "js",
|
|
7266
|
+
"name": "settings",
|
|
7267
|
+
"declaration": {
|
|
7268
|
+
"name": "settings",
|
|
7269
|
+
"module": "e2e/mocks/sdkcore-false/klarna.ts"
|
|
7270
|
+
}
|
|
7271
|
+
},
|
|
7272
|
+
{
|
|
7273
|
+
"kind": "js",
|
|
7274
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7275
|
+
"declaration": {
|
|
7276
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7277
|
+
"module": "e2e/mocks/sdkcore-false/klarna.ts"
|
|
7278
|
+
}
|
|
7279
|
+
}
|
|
7280
|
+
]
|
|
7281
|
+
},
|
|
7282
|
+
{
|
|
7283
|
+
"kind": "javascript-module",
|
|
7284
|
+
"path": "e2e/mocks/sdkcore-false/vaulted-paypal.ts",
|
|
7285
|
+
"declarations": [
|
|
7286
|
+
{
|
|
7287
|
+
"kind": "variable",
|
|
7288
|
+
"name": "settings",
|
|
7289
|
+
"type": {
|
|
7290
|
+
"text": "string"
|
|
7291
|
+
},
|
|
7292
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiIwODkzNTcwMTgyNTM2NyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwidmF1bHRPbkFncmVlbWVudCI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmMzA4ODVmMC04MjljLTRmMGEtYjIyMi1iN2Y1OWQzNzZlYWYiLCJhcGlWZXJzaW9uIjoiMi40IiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9LCJzZGtDb3JlIjpmYWxzZX19'"
|
|
7293
|
+
},
|
|
7294
|
+
{
|
|
7295
|
+
"kind": "variable",
|
|
7296
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7297
|
+
"type": {
|
|
7298
|
+
"text": "object"
|
|
7299
|
+
},
|
|
7300
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [], clientSession: { clientSessionId: '3b40a6e3-8fa9-4f2d-90b5-2691e644ff81', order: { orderId: '089357018253670', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], fees: [ { type: 'SURCHARGE', amount: 0, }, ], }, customer: { customerId: 'Euler is the best', billingAddress: { firstName: 'Card', lastName: 'Holder Name', postalCode: '94043', addressLine1: '1600 Amphitheatre Parkway', countryCode: 'US', city: 'Mountain View', state: 'CA', }, }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '166fd38f-d8a6-4f39-805f-62a6bbd64bee', env: 'SANDBOX', paymentMethods: [ { id: 'd3ced3db-ca91-44bb-889d-d1a687c2db17', type: 'RAPYD_GRABPAY', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'WEB_REDIRECT', name: 'GrabPay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo-light@3x.png', }, backgroundColor: { colored: '#01B14E', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'f37f1a42-1270-476e-a8d8-3698215596c2', type: 'RAPYD_GCASH', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'WEB_REDIRECT', name: 'GCash', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo-light@3x.png', }, backgroundColor: { colored: '#297BFA', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '1bde0ef5-9ae7-41f8-b627-4ecaaddc76a5', type: 'RAPYD_PROMPTPAY', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'NATIVE_SDK', name: 'PromptPay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo-light@3x.png', }, backgroundColor: { colored: '#023C68', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '2b0b7149-a4c2-4bf4-adb3-a56ec6e2f09f', type: 'ADYEN_IDEAL', options: { merchantId: 'Primerio254_SECOND_TEST', merchantAccountId: 'ddeca4e9-6cee-55f0-ae0d-ddb8d1100977', }, processorConfigId: 'af152714-66c6-48b9-a67e-314f5eb3ab15', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: '6e7a8a26-7737-45dc-b4e5-721f0b180f2f', type: 'GOOGLE_PAY', options: { merchantId: 'test', merchantName: 'test', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '2f32f120-d2a9-49d2-96d0-6b21546dec34', type: 'KLARNA', options: { merchantId: 'EG100723', merchantAccountId: '5cdd4a63-9762-5364-8ab8-30aa082a03b5', clientId: 'EG100723', }, processorConfigId: 'c65b140d-3faf-43af-ae3b-8d278b7d7221', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e550cea-749e-46d2-b01d-6867b34eec9a', type: 'PAYPAL', options: { merchantId: 'sb-gmcgm25177732@business.example.com', merchantAccountId: 'fc6c22da-065a-5a44-8c39-a4a1fcaf5723', clientId: 'AcTGoAPNhwfbSPbiVYSlrUGwTBGijs6GvFGci2R3QI1jlu5ewofPFq0yZDm-Rka07c1FtY4DVnsRerPK', intent: 'authorize', }, processorConfigId: '6b506d09-48b0-495c-ba32-49c6d2016cb0', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
7301
|
+
},
|
|
7302
|
+
{
|
|
7303
|
+
"kind": "function",
|
|
7304
|
+
"name": "mockExchangeCall",
|
|
7305
|
+
"parameters": [
|
|
7306
|
+
{
|
|
7307
|
+
"name": "page",
|
|
7308
|
+
"type": {
|
|
7309
|
+
"text": "Page"
|
|
7310
|
+
}
|
|
7311
|
+
}
|
|
7312
|
+
]
|
|
7313
|
+
},
|
|
7314
|
+
{
|
|
7315
|
+
"kind": "function",
|
|
7316
|
+
"name": "mockPaymentsCall",
|
|
7317
|
+
"parameters": [
|
|
7318
|
+
{
|
|
7319
|
+
"name": "page",
|
|
7320
|
+
"type": {
|
|
7321
|
+
"text": "Page"
|
|
7322
|
+
}
|
|
7323
|
+
}
|
|
7324
|
+
]
|
|
7325
|
+
}
|
|
7326
|
+
],
|
|
7327
|
+
"exports": [
|
|
7328
|
+
{
|
|
7329
|
+
"kind": "js",
|
|
7330
|
+
"name": "settings",
|
|
7331
|
+
"declaration": {
|
|
7332
|
+
"name": "settings",
|
|
7333
|
+
"module": "e2e/mocks/sdkcore-false/vaulted-paypal.ts"
|
|
7334
|
+
}
|
|
7335
|
+
},
|
|
7336
|
+
{
|
|
7337
|
+
"kind": "js",
|
|
7338
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7339
|
+
"declaration": {
|
|
7340
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7341
|
+
"module": "e2e/mocks/sdkcore-false/vaulted-paypal.ts"
|
|
7342
|
+
}
|
|
7343
|
+
},
|
|
7344
|
+
{
|
|
7345
|
+
"kind": "js",
|
|
7346
|
+
"name": "mockExchangeCall",
|
|
7347
|
+
"declaration": {
|
|
7348
|
+
"name": "mockExchangeCall",
|
|
7349
|
+
"module": "e2e/mocks/sdkcore-false/vaulted-paypal.ts"
|
|
7350
|
+
}
|
|
7351
|
+
},
|
|
7352
|
+
{
|
|
7353
|
+
"kind": "js",
|
|
7354
|
+
"name": "mockPaymentsCall",
|
|
7355
|
+
"declaration": {
|
|
7356
|
+
"name": "mockPaymentsCall",
|
|
7357
|
+
"module": "e2e/mocks/sdkcore-false/vaulted-paypal.ts"
|
|
7358
|
+
}
|
|
7359
|
+
}
|
|
7360
|
+
]
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
"kind": "javascript-module",
|
|
7364
|
+
"path": "e2e/mocks/sdkcore-true/billing-address.ts",
|
|
7365
|
+
"declarations": [
|
|
7366
|
+
{
|
|
7367
|
+
"kind": "variable",
|
|
7368
|
+
"name": "settings",
|
|
7369
|
+
"type": {
|
|
7370
|
+
"text": "string"
|
|
7371
|
+
},
|
|
7372
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJDdXN0b21lcjEyMyIsIm9yZGVySWQiOiIxMjU3NyIsImFtb3VudCI6MTA1MCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsiZXhwcmVzc0NoZWNrb3V0IjoidHJ1ZSJ9LCJvcmRlciI6eyJzaGlwcGluZyI6eyJhbW91bnQiOjUwLCJtZXRob2RJZCI6IlJlZ3VsYXIiLCJtZXRob2ROYW1lIjoiUmVndWxhciA1MCIsIm1ldGhvZERlc2NyaXB0aW9uIjoiUmVndWxhciJ9LCJjb3VudHJ5Q29kZSI6IkZSIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjk1MCwicXVhbnRpdHkiOjF9LHsiaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ibHVlIiwiZGVzY3JpcHRpb24iOiJQcmltZXIgQmx1ZSIsImFtb3VudCI6NTAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6eyJiaWxsaW5nQWRkcmVzcyI6eyJmaXJzdE5hbWUiOiJ0ZXN0dCIsImxhc3ROYW1lIjoidGVzdCIsInBvc3RhbENvZGUiOiI1MTY2MiIsImFkZHJlc3NMaW5lMSI6ImFrc2psa2FqbCIsImFkZHJlc3NMaW5lMiI6ImpmamthaGsiLCJjb3VudHJ5Q29kZSI6IlBMIiwiY2l0eSI6Indyb2NsYXciLCJzdGF0ZSI6InRlc3QifSwic2hpcHBpbmdBZGRyZXNzIjp7fSwibmF0aW9uYWxEb2N1bWVudElkIjoiOTAxMTIxMTIzNDU2NyJ9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsInZhdWx0T25BZ3JlZW1lbnQiOmZhbHNlLCJvcmRlcmVkQWxsb3dlZENhcmROZXR3b3JrcyI6WyJWSVNBIiwiTUFTVEVSQ0FSRCIsIkFNRVgiLCJNQUVTVFJPIiwiVU5JT05QQVkiLCJDQVJURVNfQkFOQ0FJUkVTIiwiREFOS09SVCIsIkRJTkVSU19DTFVCIiwiRElTQ09WRVIiLCJFTlJPVVRFIiwiRUxPIiwiSElQRVIiLCJJTlRFUkFDIiwiSkNCIiwiTUlSIiwiT1RIRVIiXX19LCJjbGllbnRPcHRpb25zIjp7ImxvY2FsZSI6ImVuIiwiYXBpVmVyc2lvbiI6IjIuNCIsInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwidmF1bHQiOnsidmlzaWJsZSI6ZmFsc2V9LCJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LmV5SnpkV0lpT2lJM05XUmpOekF4TWkwM09EVmpMVFEwTTJFdE9EQmlNUzB3WlRGbU9EaG1aRFJtWVdRaUxDSnBZWFFpT2pFM05UazBPRGd4TkRJc0ltdHBaQ0k2SW5ZeElpd2lhblJwSWpvaVlXWXhZemcxWW1VdE16UmhOaTAwWWpGakxUa3pObVl0WWpnME5tVXlOV1k1TnpFeEluMC5CaElodFpBcGotdWJJckJ3bW1zR1U4dGlCdWNEMU93WFpySmcxdXRRRzZjIiwiYXBpVmVyc2lvbiI6IjIuNCIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6eyJsb2NhbGUiOiJmci1GUiIsInN0cmlwZSI6eyJwdWJsaXNoYWJsZUtleSI6InBrX3Rlc3RfNTFPOHpmUUtVSzZiWElkQzJ4UHZTUzZVdnJpRTlrd3B2dHR3QjdIOVBBemhOQVpvR3pMZ2lET3lkNFdvb296ZVdIeG9ScktvNmIyVmpaWXhOQ01YM1c3YmswMHJNRGl2amF1In0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6dHJ1ZX19'",
|
|
7373
|
+
"description": "sdkCore is set to true (encoded in the base64 settings below)\n{ \"sdkCore\": true }"
|
|
7374
|
+
},
|
|
7375
|
+
{
|
|
7376
|
+
"kind": "variable",
|
|
7377
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7378
|
+
"type": {
|
|
7379
|
+
"text": "object"
|
|
7380
|
+
},
|
|
7381
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'BILLING_ADDRESS', options: { firstName: false, lastName: false, city: true, countryCode: true, postalCode: true, addressLine1: true, addressLine2: true, state: false, }, }, ], clientSession: { clientSessionId: '0ad5b471-5b80-436b-ad03-57850585e3fd', order: { orderId: '12577', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 1050, merchantAmount: 1050, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 950, quantity: 1, }, { itemId: 'primer-hoodie-blue', description: 'Primer Blue', amount: 50, quantity: 1, }, ], shipping: { amount: 50, methodId: 'Regular', methodName: 'Regular 50', methodDescription: 'Regular', }, }, customer: { customerId: 'Customer123', billingAddress: { firstName: 'testt', lastName: 'test', postalCode: '51662', addressLine1: 'aksjlkajl', addressLine2: 'jfjkahk', countryCode: 'PL', city: 'wroclaw', state: 'test', }, shippingAddress: {}, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: false, orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '75dc7012-785c-443a-80b1-0e1f88fd4fad', env: 'SANDBOX', paymentMethods: [ { id: '42e32c6e-7faa-4f5a-97d0-9c4f7b848ae1', type: 'APPLE_PAY', options: { merchantId: '75dc7012785c443a80b10e1f88fd4fad', merchantName: 'Primer', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
7382
|
+
},
|
|
7383
|
+
{
|
|
7384
|
+
"kind": "variable",
|
|
7385
|
+
"name": "CARD_NUMBER",
|
|
7386
|
+
"type": {
|
|
7387
|
+
"text": "string"
|
|
7388
|
+
},
|
|
7389
|
+
"default": "'4242 4242 4242 4242'"
|
|
7390
|
+
},
|
|
7391
|
+
{
|
|
7392
|
+
"kind": "function",
|
|
7393
|
+
"name": "mockBinData",
|
|
7394
|
+
"parameters": [
|
|
7395
|
+
{
|
|
7396
|
+
"name": "page",
|
|
7397
|
+
"type": {
|
|
7398
|
+
"text": "Page"
|
|
7399
|
+
}
|
|
7400
|
+
}
|
|
7401
|
+
]
|
|
7402
|
+
},
|
|
7403
|
+
{
|
|
7404
|
+
"kind": "function",
|
|
7405
|
+
"name": "mockPaymentInstruments",
|
|
7406
|
+
"parameters": [
|
|
7407
|
+
{
|
|
7408
|
+
"name": "page",
|
|
7409
|
+
"type": {
|
|
7410
|
+
"text": "Page"
|
|
7411
|
+
}
|
|
7412
|
+
}
|
|
7413
|
+
]
|
|
7414
|
+
},
|
|
7415
|
+
{
|
|
7416
|
+
"kind": "function",
|
|
7417
|
+
"name": "mockPayments",
|
|
7418
|
+
"parameters": [
|
|
7419
|
+
{
|
|
7420
|
+
"name": "page",
|
|
7421
|
+
"type": {
|
|
7422
|
+
"text": "Page"
|
|
7423
|
+
}
|
|
7424
|
+
}
|
|
7425
|
+
]
|
|
7426
|
+
}
|
|
7427
|
+
],
|
|
7428
|
+
"exports": [
|
|
7429
|
+
{
|
|
7430
|
+
"kind": "js",
|
|
7431
|
+
"name": "settings",
|
|
7432
|
+
"declaration": {
|
|
7433
|
+
"name": "settings",
|
|
7434
|
+
"module": "e2e/mocks/sdkcore-true/billing-address.ts"
|
|
7435
|
+
}
|
|
7436
|
+
},
|
|
7437
|
+
{
|
|
7438
|
+
"kind": "js",
|
|
7439
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7440
|
+
"declaration": {
|
|
7441
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
7442
|
+
"module": "e2e/mocks/sdkcore-true/billing-address.ts"
|
|
7443
|
+
}
|
|
7444
|
+
},
|
|
7445
|
+
{
|
|
7446
|
+
"kind": "js",
|
|
7447
|
+
"name": "CARD_NUMBER",
|
|
7448
|
+
"declaration": {
|
|
7449
|
+
"name": "CARD_NUMBER",
|
|
7450
|
+
"module": "e2e/mocks/sdkcore-true/billing-address.ts"
|
|
7451
|
+
}
|
|
7452
|
+
},
|
|
7453
|
+
{
|
|
7454
|
+
"kind": "js",
|
|
7455
|
+
"name": "mockBinData",
|
|
7456
|
+
"declaration": {
|
|
7457
|
+
"name": "mockBinData",
|
|
7458
|
+
"module": "e2e/mocks/sdkcore-true/billing-address.ts"
|
|
7459
|
+
}
|
|
7460
|
+
},
|
|
7461
|
+
{
|
|
7462
|
+
"kind": "js",
|
|
7463
|
+
"name": "mockPaymentInstruments",
|
|
7464
|
+
"declaration": {
|
|
7465
|
+
"name": "mockPaymentInstruments",
|
|
7466
|
+
"module": "e2e/mocks/sdkcore-true/billing-address.ts"
|
|
7467
|
+
}
|
|
7468
|
+
},
|
|
7469
|
+
{
|
|
7470
|
+
"kind": "js",
|
|
7471
|
+
"name": "mockPayments",
|
|
7472
|
+
"declaration": {
|
|
7473
|
+
"name": "mockPayments",
|
|
7474
|
+
"module": "e2e/mocks/sdkcore-true/billing-address.ts"
|
|
7475
|
+
}
|
|
7476
|
+
}
|
|
7477
|
+
]
|
|
7478
|
+
},
|
|
7479
|
+
{
|
|
7480
|
+
"kind": "javascript-module",
|
|
7481
|
+
"path": "e2e/tests/sdkcore-false-tests/card-3ds.spec.ts",
|
|
7482
|
+
"declarations": [],
|
|
7483
|
+
"exports": []
|
|
7484
|
+
},
|
|
7485
|
+
{
|
|
7486
|
+
"kind": "javascript-module",
|
|
7487
|
+
"path": "e2e/tests/sdkcore-false-tests/card-basic.spec.ts",
|
|
7488
|
+
"declarations": [],
|
|
7489
|
+
"exports": []
|
|
7490
|
+
},
|
|
7491
|
+
{
|
|
7492
|
+
"kind": "javascript-module",
|
|
7493
|
+
"path": "e2e/tests/sdkcore-false-tests/disabled-payments.spec.ts",
|
|
7494
|
+
"declarations": [
|
|
7495
|
+
{
|
|
7496
|
+
"kind": "variable",
|
|
7497
|
+
"name": "settingsEnabled",
|
|
7498
|
+
"type": {
|
|
7499
|
+
"text": "string"
|
|
7500
|
+
},
|
|
7501
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsiZGlzYWJsZWRQYXltZW50cyI6ZmFsc2UsInNka0NvcmUiOmZhbHNlfX0='"
|
|
7502
|
+
}
|
|
7503
|
+
],
|
|
7504
|
+
"exports": [
|
|
7505
|
+
{
|
|
7506
|
+
"kind": "js",
|
|
7507
|
+
"name": "settingsEnabled",
|
|
7508
|
+
"declaration": {
|
|
7509
|
+
"name": "settingsEnabled",
|
|
7510
|
+
"module": "e2e/tests/sdkcore-false-tests/disabled-payments.spec.ts"
|
|
7511
|
+
}
|
|
7512
|
+
}
|
|
7513
|
+
]
|
|
7514
|
+
},
|
|
7515
|
+
{
|
|
7516
|
+
"kind": "javascript-module",
|
|
7517
|
+
"path": "e2e/tests/sdkcore-false-tests/klarna.spec.ts",
|
|
7518
|
+
"declarations": [],
|
|
7519
|
+
"exports": []
|
|
7520
|
+
},
|
|
7521
|
+
{
|
|
7522
|
+
"kind": "javascript-module",
|
|
7523
|
+
"path": "e2e/tests/sdkcore-false-tests/vaulted-paypal.spec.ts",
|
|
7524
|
+
"declarations": [],
|
|
7525
|
+
"exports": []
|
|
7526
|
+
},
|
|
7527
|
+
{
|
|
7528
|
+
"kind": "javascript-module",
|
|
7529
|
+
"path": "e2e/tests/sdkcore-true-tests/card-form-billing-address.spec.ts",
|
|
7530
|
+
"declarations": [],
|
|
7531
|
+
"exports": []
|
|
7532
|
+
},
|
|
7266
7533
|
{
|
|
7267
7534
|
"kind": "javascript-module",
|
|
7268
7535
|
"path": "src/__tests__/mocks/sdk-core.ts",
|
|
@@ -17975,7 +18242,7 @@
|
|
|
17975
18242
|
"declarations": [
|
|
17976
18243
|
{
|
|
17977
18244
|
"kind": "class",
|
|
17978
|
-
"description": "PayPal component with standard button container rendering.\n\nPayPal uses the standard button container approach:\n- Renders to a button container div (not shadow root)\n- Passes buttonHeight in render options
|
|
18245
|
+
"description": "PayPal component with standard button container rendering.\n\nPayPal uses the standard button container approach:\n- Renders to a button container div (not shadow root)\n- Passes buttonHeight in render options (sdk-core constrains to 25-55px)\n- Uses updateOverlayForContainer for disabled state\n- Height is calculated from CSS (PAYMENT_METHOD_LINE_HEIGHT + padding)",
|
|
17979
18246
|
"name": "PayPalComponent",
|
|
17980
18247
|
"members": [
|
|
17981
18248
|
{
|
|
@@ -18022,7 +18289,7 @@
|
|
|
18022
18289
|
"kind": "field",
|
|
18023
18290
|
"name": "renderButtonTask",
|
|
18024
18291
|
"privacy": "private",
|
|
18025
|
-
"default": "new Task(this, { args: () => [this.loadManagerTask.value], task: async ([manager]) => { if (!manager) { return initialState; } // Ensure the component's DOM is updated await this.updateComplete; const buttonContainer = this.buttonContainerRef.value; if (!buttonContainer) { throw new Error('Button container not found'); } const button = manager.createButton(); // Calculate button height from the host element (where :host styles are applied) // The buttonContainer itself has no height, but the host element has min-height from CSS
|
|
18292
|
+
"default": "new Task(this, { args: () => [this.loadManagerTask.value], task: async ([manager]) => { if (!manager) { return initialState; } // Ensure the component's DOM is updated await this.updateComplete; const buttonContainer = this.buttonContainerRef.value; if (!buttonContainer) { throw new Error('Button container not found'); } const button = manager.createButton(); // Calculate button height from the host element (where :host styles are applied) // The buttonContainer itself has no height, but the host element has min-height from CSS // sdk-core will constrain the height to PayPal SDK limits (25-55px) const buttonHeight = calculateButtonHeight( this as unknown as HTMLElement, ); // Render to button container with height as string (sdk-core handles PayPal SDK constraints) await button.render(buttonContainer as Element, { style: { buttonHeight: String(buttonHeight), }, }); // Apply current disabled state to newly created button if (this.disabled) { await button.setDisabled(this.disabled); } // Apply disabled overlay if needed if (this.disabled) { await this.updateComplete; updateOverlayForContainer(this.disabled, this.buttonContainerRef); } return button; }, })"
|
|
18026
18293
|
}
|
|
18027
18294
|
],
|
|
18028
18295
|
"attributes": [
|