@primer-io/primer-js 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/custom-elements.json +846 -818
- package/dist/primer-loader.d.ts +27 -0
- package/dist/primer-loader.js +8 -8
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
|
@@ -2,34 +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
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"exports": [
|
|
15
|
-
{
|
|
16
|
-
"kind": "js",
|
|
17
|
-
"name": "expect",
|
|
18
|
-
"declaration": {
|
|
19
|
-
"name": "expect",
|
|
20
|
-
"package": "@chromatic-com/playwright"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"kind": "js",
|
|
25
|
-
"name": "test",
|
|
26
|
-
"declaration": {
|
|
27
|
-
"name": "test",
|
|
28
|
-
"module": "e2e/utils.ts"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
5
|
{
|
|
34
6
|
"kind": "javascript-module",
|
|
35
7
|
"path": "dist/primer-loader.js",
|
|
@@ -88,12 +60,12 @@
|
|
|
88
60
|
{
|
|
89
61
|
"kind": "variable",
|
|
90
62
|
"name": "le",
|
|
91
|
-
"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 r=()=>{this.open=!1,this.removeEventListener(\"primer-dialog-close\",r)};this.addEventListener(\"primer-dialog-close\",r)}else this.open=!1}renderContent(){return m`<div class=\"content-container\"><slot></slot>${this.renderSecureHtmlContent()}</div>`}renderSecureHtmlContent(){return this.secureHtmlContent?Do(this.secureHtmlContent)?m`${Va(this.secureHtmlContent.content)}`:(
|
|
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 r=()=>{this.open=!1,this.removeEventListener(\"primer-dialog-close\",r)};this.addEventListener(\"primer-dialog-close\",r)}else this.open=!1}renderContent(){return m`<div class=\"content-container\"><slot></slot>${this.renderSecureHtmlContent()}</div>`}renderSecureHtmlContent(){return this.secureHtmlContent?Do(this.secureHtmlContent)?m`${Va(this.secureHtmlContent.content)}`:(S.warn(\"PortalDialogComponent: Invalid access token provided for htmlContent. Content will not be rendered.\"),h):h}renderDialog(){return this.open?m`<primer-portal><primer-dialog .open=${this.open} size=${this.size} .showCloseButton=${!1} @primer-dialog-close=\"${()=>this.closeDialog()}\" >${this.renderContent()}</primer-dialog></primer-portal>`:h}connectedCallback(){super.connectedCallback(),this.open||this.openDialog()}updated(e){if(super.updated(e),e.has(\"secureHtmlContent\")){let r=this.secureHtmlContent;r&&!Do(r)&&(S.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 m`${this.renderDialog()}`}}"
|
|
92
64
|
},
|
|
93
65
|
{
|
|
94
66
|
"kind": "variable",
|
|
95
67
|
"name": "Ae",
|
|
96
|
-
"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 o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0,this.requestUpdate()};this.sdkContextController=new Kr(this),this.sdkStateController=new zr(this),this.primerEventsController=new Yt(this),this.styleProcessingController=new Gr(this),this.vaultManagerController=new ir(this),this.cardNetworkController=new Sr(this),this.achPaymentEventsController=new Ei(this),this.headlessSdkController=new bi(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})}attributeChangedCallback(e,r,o){e===Rc.CUSTOM_STYLES?this.styleProcessingController.processCustomStyles(o):super.attributeChangedCallback(e,r,o)}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&&(To(this.options?.locale)?this.locale=Mo(this.options?.locale):
|
|
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 o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0,this.requestUpdate()};this.sdkContextController=new Kr(this),this.sdkStateController=new zr(this),this.primerEventsController=new Yt(this),this.styleProcessingController=new Gr(this),this.vaultManagerController=new ir(this),this.cardNetworkController=new Sr(this),this.achPaymentEventsController=new Ei(this),this.headlessSdkController=new bi(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})}attributeChangedCallback(e,r,o){e===Rc.CUSTOM_STYLES?this.styleProcessingController.processCustomStyles(o):super.attributeChangedCallback(e,r,o)}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&&(To(this.options?.locale)?this.locale=Mo(this.options?.locale):S.warn(\"\\u{1F30E}\\u2757 Unsupported locale provided:\",this.options?.locale,\"- Falling back to default locale `en-GB`\")),xo(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)}checkLoadingStateChange(){let e=this.sdkStateController?.currentState.isLoading||!1;this.previousLoadingState&&!e&&(this.jsInitialized=!0,J({eventName:\"CHECKOUT_FLOW_STARTED\"})),this.previousLoadingState=e,e&&!this._loadingTimeoutId?this._loadingTimeoutId=window.setTimeout(()=>{this.sdkStateController?.currentState.isLoading&&(S.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,r=e.isLoading,o=e.primerJsError,n=!r&&!o;return m` ${k(r,()=>h)} ${k(o,()=>m`<primer-checkout-error></primer-checkout-error>`)} ${k(n,()=>m`<slot name=\"main\" @slotchange=${this.onSlotChange}></slot>${k(this.hasAssignedContent,()=>h,()=>m`<primer-main></primer-main>`)} `,()=>h)} `}addEventListener(e,r,o){super.addEventListener(e,r,o)}removeEventListener(e,r,o){super.removeEventListener(e,r,o)}}"
|
|
97
69
|
},
|
|
98
70
|
{
|
|
99
71
|
"kind": "function",
|
|
@@ -129,7 +101,7 @@
|
|
|
129
101
|
{
|
|
130
102
|
"kind": "variable",
|
|
131
103
|
"name": "ge",
|
|
132
|
-
"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?
|
|
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?h:m`<primer-icon name=\"checkmark\" size=\"sm\" color=\"var(--primer-color-brand)\" ></primer-icon>`}renderSpinner(){if(!this.loading)return h;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)\"),m`<primer-spinner size=\"small\" color=\"${e}\" compact ></primer-spinner>`}render(){return m`<button type=${this.buttonType} ?disabled=${this.disabled||this.loading} @click=${this.handleClick} part=\"button\" aria-checked=${this.selectionState===\"checked\"} aria-busy=${this.loading} >${this.renderSpinner()} ${this.flex?m`<span class=\"button-content ${this.loading?\"loading\":\"\"}\"><slot></slot></span>`:m`<span class=\"button-content-base ${this.loading?\"loading\":\"\"}\" ><slot></slot></span>`} ${this.renderCheckmark()}</button>`}}"
|
|
133
105
|
},
|
|
134
106
|
{
|
|
135
107
|
"kind": "variable",
|
|
@@ -153,18 +125,18 @@
|
|
|
153
125
|
},
|
|
154
126
|
{
|
|
155
127
|
"kind": "variable",
|
|
156
|
-
"name": "
|
|
128
|
+
"name": "ye",
|
|
157
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 r=e.target,o=this.value;this.value=r.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\",o)}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 r of this.options)e.push(m`<option value=${r.value}>${r.label}</option>`);return e}render(){return m`<select id=${this.id} name=${this.name} .value=${os(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>`}}"
|
|
158
130
|
},
|
|
159
131
|
{
|
|
160
132
|
"kind": "variable",
|
|
161
|
-
"name": "
|
|
133
|
+
"name": "fe",
|
|
162
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,r=this.ariaLabel||this.header||e,o=this.header||e;return m`<div class=\"collapsable\"><primer-button variant=${this.buttonVariant} buttonType=\"button\" @click=${this.toggleExpanded} aria-expanded=${this.isExpanded} aria-controls=\"collapsable-content\" aria-label=${r} ><span>${o}</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>`}}"
|
|
163
135
|
},
|
|
164
136
|
{
|
|
165
137
|
"kind": "variable",
|
|
166
138
|
"name": "Be",
|
|
167
|
-
"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
|
|
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 h;let e={\"error-message\":!0,hidden:!this.visible};return m`<div part=\"error-message\" class=${re(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>`}}"
|
|
168
140
|
},
|
|
169
141
|
{
|
|
170
142
|
"kind": "variable",
|
|
@@ -179,72 +151,72 @@
|
|
|
179
151
|
{
|
|
180
152
|
"kind": "variable",
|
|
181
153
|
"name": "ie",
|
|
182
|
-
"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=E(\"pay_with\",{id:\"pay_with\"});this._paymentMethodManagerTask=new D(this,{task:async([e,r])=>{if(!e||!r)return R;let o=await r.getCDNAssets(\"KLARNA\");return{manager:e.manager,klarnaIcon:o?.assets?.icon?`${o.goatCdnUrl}/${o.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){
|
|
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=E(\"pay_with\",{id:\"pay_with\"});this._paymentMethodManagerTask=new D(this,{task:async([e,r])=>{if(!e||!r)return R;let o=await r.getCDNAssets(\"KLARNA\");return{manager:e.manager,klarnaIcon:o?.assets?.icon?`${o.goatCdnUrl}/${o.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){S.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){S.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?m`<div class=\"loading\"><primer-spinner size=\"small\"></primer-spinner></div>`:m`<div class=\"category-selection\">${e.map(o=>m`<button class=${re({\"category-button\":!0,selected:o.id===this.selectedCategory})} @click=${()=>{this.selectCategory(o.id)}} ?disabled=${this.disabled} >${o.name}</button>`)}</div>`}renderExpandedContent(){return m` ${this.renderCategorySelection()} ${this.selectedCategory?m`<div id=\"klarna-category-container\" class=\"klarna-category-container\" ></div>`:h}<button class=${re({\"klarna-pay-button\":!0,loading:!!this.sdkState?.isProcessing,disabled:!this.selectedCategory||this.disabled})} ?disabled=${!this.selectedCategory||this.sdkState?.isProcessing||this.disabled} @click=${()=>this.startKlarnaPayment()} >${E(\"confirm\",{id:\"confirm\"})}</button>`}render(){return this._paymentMethodManagerTask.render({error:e=>{let r=e instanceof Error?e.message:\"Unknown error in Klarna\";return m`<div class=\"error\"> Error loading Klarna: ${r}</div>`},complete:({manager:e,klarnaIcon:r})=>e?m`<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=${r} alt=\"Klarna logo\" /><span>${E(\"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>`:h})}}"
|
|
183
155
|
},
|
|
184
156
|
{
|
|
185
157
|
"kind": "variable",
|
|
186
158
|
"name": "Fe",
|
|
187
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.loadManagerTask=new D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return R;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"GOOGLE_PAY\")throw new Error(\"Invalid payment method type for Google Pay component\");return r.manager}}),this.renderButtonTask=new D(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return R;await this.updateComplete;let r=e.createButton();return await r.render(this.shadowRoot?.getRootNode(),{style:{shadowRoot:!0}}),this.disabled&&await r.setDisabled(this.disabled),this.disabled&&this.shadowRoot&&(await this.updateComplete,Ai(this.disabled,this.shadowRoot)),r}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let n=o!==null,a=this.renderButtonTask.value;a&&a.setDisabled(n)}}updated(e){e.has(\"disabled\")&&this.shadowRoot&&Ai(this.disabled,this.shadowRoot)}render(){return
|
|
159
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.loadManagerTask=new D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return R;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"GOOGLE_PAY\")throw new Error(\"Invalid payment method type for Google Pay component\");return r.manager}}),this.renderButtonTask=new D(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return R;await this.updateComplete;let r=e.createButton();return await r.render(this.shadowRoot?.getRootNode(),{style:{shadowRoot:!0}}),this.disabled&&await r.setDisabled(this.disabled),this.disabled&&this.shadowRoot&&(await this.updateComplete,Ai(this.disabled,this.shadowRoot)),r}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let n=o!==null,a=this.renderButtonTask.value;a&&a.setDisabled(n)}}updated(e){e.has(\"disabled\")&&this.shadowRoot&&Ai(this.disabled,this.shadowRoot)}render(){return h}}"
|
|
188
160
|
},
|
|
189
161
|
{
|
|
190
162
|
"kind": "variable",
|
|
191
163
|
"name": "He",
|
|
192
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Lt();this.loadManagerTask=new D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return R;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"APPLE_PAY\")throw new Error(\"Invalid payment method type for Apple Pay component\");return r.manager}}),this.renderButtonTask=new D(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return R;await this.updateComplete;let r=this.buttonContainerRef.value;if(!r)throw new Error(\"Button container not found\");let o=e.createButton(),n=Pi(r);return await o.render(r,{style:{buttonHeight:n}}),this.disabled&&await o.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,jt(this.disabled,this.buttonContainerRef)),o}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let n=o!==null,a=this.renderButtonTask.value;a&&a.setDisabled(n)}}updated(e){e.has(\"disabled\")&&jt(this.disabled,this.buttonContainerRef)}render(){return m`<div class=\"native-button-container\" ${
|
|
164
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Lt();this.loadManagerTask=new D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return R;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"APPLE_PAY\")throw new Error(\"Invalid payment method type for Apple Pay component\");return r.manager}}),this.renderButtonTask=new D(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return R;await this.updateComplete;let r=this.buttonContainerRef.value;if(!r)throw new Error(\"Button container not found\");let o=e.createButton(),n=Pi(r);return await o.render(r,{style:{buttonHeight:n}}),this.disabled&&await o.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,jt(this.disabled,this.buttonContainerRef)),o}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let n=o!==null,a=this.renderButtonTask.value;a&&a.setDisabled(n)}}updated(e){e.has(\"disabled\")&&jt(this.disabled,this.buttonContainerRef)}render(){return m`<div class=\"native-button-container\" ${yt(this.buttonContainerRef)} ></div>`}}"
|
|
193
165
|
},
|
|
194
166
|
{
|
|
195
167
|
"kind": "variable",
|
|
196
168
|
"name": "ze",
|
|
197
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Lt();this.loadManagerTask=new D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return R;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"PAYPAL\")throw new Error(\"Invalid payment method type for PayPal component\");return r.manager}}),this.renderButtonTask=new D(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return R;await this.updateComplete;let r=this.buttonContainerRef.value;if(!r)throw new Error(\"Button container not found\");let o=e.createButton(),n=Pi(this),a=
|
|
169
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Lt();this.loadManagerTask=new D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return R;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"PAYPAL\")throw new Error(\"Invalid payment method type for PayPal component\");return r.manager}}),this.renderButtonTask=new D(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return R;await this.updateComplete;let r=this.buttonContainerRef.value;if(!r)throw new Error(\"Button container not found\");let o=e.createButton(),n=Pi(this),a=ys(n),s=55;return n>s&&S.warn(`PayPal button height (${n}px) exceeds maximum allowed height of ${s}px. Button will be capped at ${s}px. This is a PayPal SDK limitation.`),await o.render(r,{style:{buttonHeight:a}}),this.disabled&&await o.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,jt(this.disabled,this.buttonContainerRef)),o}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let n=o!==null,a=this.renderButtonTask.value;a&&a.setDisabled(n)}}updated(e){e.has(\"disabled\")&&jt(this.disabled,this.buttonContainerRef)}render(){return m`<div class=\"native-button-container\" ${yt(this.buttonContainerRef)} ></div>`}}"
|
|
198
170
|
},
|
|
199
171
|
{
|
|
200
172
|
"kind": "variable",
|
|
201
173
|
"name": "ve",
|
|
202
|
-
"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 D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return R;let r=this.paymentManagers.get(e);if(!r)throw new Error(\"BLIK payment method manager not initialized\");if(r.type!==\"ADYEN_BLIK\")throw new Error(\"Invalid payment method type for BLIK component\");return r.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=E(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",
|
|
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 D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return R;let r=this.paymentManagers.get(e);if(!r)throw new Error(\"BLIK payment method manager not initialized\");if(r.type!==\"ADYEN_BLIK\")throw new Error(\"Invalid payment method type for BLIK component\");return r.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=E(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",S.error(\"Payment method type not available\");return}let r=this.paymentManagers.get(e);if(!r||r.type!==\"ADYEN_BLIK\"){this.errorMessage=E(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",S.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 r=e.target,o=r.value,a=o.replace(/\\D/g,\"\").slice(0,6);o!==a&&(r.value=a),this.blikCode=a,this.currentState===\"error\"&&(this.currentState=\"expanded-input\",this.errorMessage=\"\"),a.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=E(\"sixDigitCodeErrorTooShort\",{id:\"sixDigitCodeErrorTooShort\"}),this.currentState=\"error\";return}let e=this.loadManagerTask.value;if(!e){this.errorMessage=\"BLIK payment method not initialized\",this.currentState=\"error\",S.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(r){this.stopPollingTimer(),this.currentState=\"error\",this.errorMessage=r instanceof Error?r.message:E(\"tokenizationError\",{id:\"tokenizationError\"}),S.errorWithDatadog(\"BLIK payment failed\",{error:r instanceof Error?{message:r.message,name:r.name}:\"Unknown error\"})}}renderCollapsed(){return m`<primer-button class=\"blik-button\" @click=${this.handleButtonClick} ?disabled=${this.disabled} aria-label=\"${E(\"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 m`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-input-wrapper\"><label for=\"blik-code\" class=\"blik-label\">${E(\"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=\"${E(\"sixDigitCodeLabel\",{id:\"sixDigitCodeLabel\"})}\" autocomplete=\"off\" spellcheck=\"false\" /></div></div></div>`}renderLoading(){return m`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-loading\"><primer-spinner size=\"medium\"></primer-spinner>${this.pollingDuration>30?m`<div class=\"blik-timeout-warning\"> This is taking longer than expected... </div>`:h}</div></div></div>`}renderError(){return m`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-error\"><div class=\"blik-error-message\" role=\"alert\">${this.errorMessage||E(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}</div><button class=\"blik-retry-button\" @click=\"${this.handleRetry}\" ?disabled=\"${this.disabled}\" >${E(\"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 h}}disconnectedCallback(){super.disconnectedCallback(),this.stopPollingTimer()}render(){return m`<div class=\"blik-container ${this.currentState!==\"collapsed\"?\"expanded\":\"\"}\" >${this.renderCollapsed()} ${this.currentState!==\"collapsed\"?this.renderExpandedState():h}</div>`}}"
|
|
203
175
|
},
|
|
204
176
|
{
|
|
205
177
|
"kind": "variable",
|
|
206
178
|
"name": "Le",
|
|
207
|
-
"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&&J({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:this.type})}render(){if(!this.type)return
|
|
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&&J({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:this.type})}render(){if(!this.type)return h;let e=this.paymentMethods?.get(this.type);if(!e)return h;let r;switch(e?.managerType){case\"CARD\":r=m`<primer-card-form ?disabled=${this.disabled} ></primer-card-form>`;break;case\"NATIVE\":{let o=e.type;o===fr.GOOGLE_PAY?r=m`<primer-google-pay .paymentMethod=${e} ?disabled=${this.disabled} ></primer-google-pay>`:o===fr.APPLE_PAY?r=m`<primer-apple-pay .paymentMethod=${e} ?disabled=${this.disabled} ></primer-apple-pay>`:o===fr.PAYPAL?r=m`<primer-paypal .paymentMethod=${e} ?disabled=${this.disabled} ></primer-paypal>`:o===fr.ADYEN_BLIK&&(r=m`<primer-blik .paymentMethod=${e} ?disabled=${this.disabled} ></primer-blik>`);break}case\"REDIRECT\":r=m`<primer-redirect-payment .paymentMethod=${e} ?disabled=${this.disabled} ></primer-redirect-payment>`;break;case\"KLARNA\":r=m`<primer-klarna ?disabled=${this.disabled} ></primer-klarna>`;break;case\"ACH\":r=m`<primer-dynamic-payment .paymentMethod=${e} ></primer-dynamic-payment>`;break;default:return h}return m`<div @click=${this.handleClick}>${r}</div>`}}"
|
|
208
180
|
},
|
|
209
181
|
{
|
|
210
182
|
"kind": "variable",
|
|
211
183
|
"name": "we",
|
|
212
|
-
"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 r=this.include.split(\",\").map(o=>o.trim());e=e.filter(o=>r.includes(o.type))}if(this.exclude){let r=this.exclude.split(\",\").map(o=>o.trim());e=e.filter(o=>!r.includes(o.type))}return e}render(){let e=this.getFilteredMethods();return e.length===0?
|
|
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 r=this.include.split(\",\").map(o=>o.trim());e=e.filter(o=>r.includes(o.type))}if(this.exclude){let r=this.exclude.split(\",\").map(o=>o.trim());e=e.filter(o=>!r.includes(o.type))}return e}render(){let e=this.getFilteredMethods();return e.length===0?h:m`<div class=\"payment-methods-container\">${e.map(r=>m`<primer-payment-method type=\"${r.type}\" ?disabled=\"${this.disabled||this.clientOptions?.disabledPayments===!0}\" ></primer-payment-method>`)}</div>`}}"
|
|
213
185
|
},
|
|
214
186
|
{
|
|
215
187
|
"kind": "variable",
|
|
216
188
|
"name": "Se",
|
|
217
|
-
"default": "class extends v{constructor(){super(...arguments);this.formController=new xi(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 D(this,{task:([e])=>e!==\"STRIPE_ACH\"?R:this.paymentManagers.get(e)?.manager,args:()=>[this.paymentMethod?.type]})}_handleInput(e,r){let o=e.target;this.formController.setFieldValue(r,o.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 r=await e.start(this.formController.formData);if(!r||r.valid)return await this._handleCollectBankAccountDetails(e);r&&this.formController.setValidation(r,!0)}catch(r){this._handleError(r)}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(r){this._handleError(r)}}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 m`<h2>${E(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${E(\"stripe_ach_user_details_collection_subtitle_label\",{id:\"stripe_ach_user_details_collection_subtitle_label\"})}</p><form @submit=${r=>r.preventDefault()}><div class=\"form-row\"><primer-input-wrapper .hasError=${this.formController.hasError.firstName} ><primer-input-label slot=\"label\">${E(\"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=${r=>this._handleInput(r,\"firstName\")} @blur=${()=>this._handleBlur(\"firstName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.firstName?this.formController.formState.firstName.error:
|
|
189
|
+
"default": "class extends v{constructor(){super(...arguments);this.formController=new xi(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 D(this,{task:([e])=>e!==\"STRIPE_ACH\"?R:this.paymentManagers.get(e)?.manager,args:()=>[this.paymentMethod?.type]})}_handleInput(e,r){let o=e.target;this.formController.setFieldValue(r,o.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 r=await e.start(this.formController.formData);if(!r||r.valid)return await this._handleCollectBankAccountDetails(e);r&&this.formController.setValidation(r,!0)}catch(r){this._handleError(r)}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(r){this._handleError(r)}}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 m`<h2>${E(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${E(\"stripe_ach_user_details_collection_subtitle_label\",{id:\"stripe_ach_user_details_collection_subtitle_label\"})}</p><form @submit=${r=>r.preventDefault()}><div class=\"form-row\"><primer-input-wrapper .hasError=${this.formController.hasError.firstName} ><primer-input-label slot=\"label\">${E(\"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=${r=>this._handleInput(r,\"firstName\")} @blur=${()=>this._handleBlur(\"firstName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.firstName?this.formController.formState.firstName.error:h}</primer-input-error></primer-input-wrapper><primer-input-wrapper .hasError=${this.formController.hasError.lastName} ><primer-input-label slot=\"label\">${E(\"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=${r=>this._handleInput(r,\"lastName\")} @blur=${()=>this._handleBlur(\"lastName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.lastName?this.formController.formState.lastName.error:h}</primer-input-error></primer-input-wrapper></div><primer-input-wrapper .hasError=${this.formController.hasError.emailAddress} ><primer-input-label slot=\"label\">${E(\"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=${r=>this._handleInput(r,\"emailAddress\")} @blur=${()=>this._handleBlur(\"emailAddress\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.emailAddress?this.formController.formState.emailAddress.error:h}</primer-input-error></primer-input-wrapper><p>${E(\"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} >${E(\"stripe_ach_user_details_collection_continue_button\",{id:\"stripe_ach_user_details_collection_continue_button\"})}</primer-button></form>`}renderMandate(){return m`<h2>${E(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${this.clientOptions?.stripe?.mandateData.fullMandateText??E(\"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} >${E(\"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} >${E(\"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():h})}}"
|
|
218
190
|
},
|
|
219
191
|
{
|
|
220
192
|
"kind": "variable",
|
|
221
193
|
"name": "Ie",
|
|
222
|
-
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.open=!1;this._paymentMethodManagerTask=new D(this,{task:([e,r])=>!e||!r?R:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new D(this,{task:([e,r])=>{if(!e||!r)return R;let o=r.getPaymentMethodConfiguration(e);return o?{backgroundColor:o.displayMetadata.button.backgroundColor.colored,name:o.name,displayName:this._legacyGetButtonLabel(o.displayMetadata.button.text),iconUrl:o.displayMetadata.button.iconUrl.colored||o.displayMetadata.button.iconUrl.light||o.displayMetadata.button.iconUrl.dark}:R},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new D(this,{task:([e,r])=>!e||!r?R:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?Cr(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),E(r,{id:r})}start(){this._paymentMethodManagerTask.value&&(this.open=!0)}renderDialog(){return this.open?m`<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>`:
|
|
194
|
+
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.open=!1;this._paymentMethodManagerTask=new D(this,{task:([e,r])=>!e||!r?R:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new D(this,{task:([e,r])=>{if(!e||!r)return R;let o=r.getPaymentMethodConfiguration(e);return o?{backgroundColor:o.displayMetadata.button.backgroundColor.colored,name:o.name,displayName:this._legacyGetButtonLabel(o.displayMetadata.button.text),iconUrl:o.displayMetadata.button.iconUrl.colored||o.displayMetadata.button.iconUrl.light||o.displayMetadata.button.iconUrl.dark}:R},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new D(this,{task:([e,r])=>!e||!r?R:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?Cr(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),E(r,{id:r})}start(){this._paymentMethodManagerTask.value&&(this.open=!0)}renderDialog(){return this.open?m`<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>`:h}render(){return this._setupTasks.render({error:()=>h,complete:({assetsConfig:e})=>(this.style.setProperty(\"--dynamic-payment-button-bg-color\",e.backgroundColor),m`<primer-button @click=\"${()=>this.start()}\" class=${re({loading:!!this.sdkState?.isProcessing,reverse:!0})} title=\"${E(\"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()} `)})}}"
|
|
223
195
|
},
|
|
224
196
|
{
|
|
225
197
|
"kind": "variable",
|
|
226
198
|
"name": "ke",
|
|
227
|
-
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this._paymentMethodManagerTask=new D(this,{task:([e,r])=>!e||!r?R:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new D(this,{task:([e,r])=>{if(!e||!r)return R;let o=r.getPaymentMethodConfiguration(e);if(!o)return R;let n=o.displayMetadata.button.backgroundColor.colored??o.displayMetadata.button.backgroundColor.light,a=o.displayMetadata.button.iconPositionRelativeToText||\"START\";return{backgroundColor:n,name:o.name,displayName:this._legacyGetButtonLabel(o.displayMetadata.button.text),iconUrl:o.displayMetadata.button.iconUrl.colored??o.displayMetadata.button.iconUrl.light,iconPosition:a}},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new D(this,{task:([e,r])=>!e||!r?R:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?Cr(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),E(r,{id:r})}startRedirectPayment(){this.disabled||this._paymentMethodManagerTask.value&&this._paymentMethodManagerTask.value.start()}render(){return this._setupTasks.render({error:()=>
|
|
199
|
+
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this._paymentMethodManagerTask=new D(this,{task:([e,r])=>!e||!r?R:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new D(this,{task:([e,r])=>{if(!e||!r)return R;let o=r.getPaymentMethodConfiguration(e);if(!o)return R;let n=o.displayMetadata.button.backgroundColor.colored??o.displayMetadata.button.backgroundColor.light,a=o.displayMetadata.button.iconPositionRelativeToText||\"START\";return{backgroundColor:n,name:o.name,displayName:this._legacyGetButtonLabel(o.displayMetadata.button.text),iconUrl:o.displayMetadata.button.iconUrl.colored??o.displayMetadata.button.iconUrl.light,iconPosition:a}},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new D(this,{task:([e,r])=>!e||!r?R:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?Cr(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),E(r,{id:r})}startRedirectPayment(){this.disabled||this._paymentMethodManagerTask.value&&this._paymentMethodManagerTask.value.start()}render(){return this._setupTasks.render({error:()=>h,complete:({assetsConfig:e})=>{this.style.setProperty(\"--redirect-payment-button-bg-color\",e.backgroundColor);let r={loading:!!this.sdkState?.isProcessing,\"icon-end\":e.iconPosition===\"END\",\"image-only\":!e.displayName},o=e.displayName?m`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span><span class=\"button-text\">${e.displayName}</span>`:m`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>`;return m`<primer-button @click=\"${()=>this.startRedirectPayment()}\" class=${re(r)} title=\"${E(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ?disabled=${this.disabled} >${o}</primer-button>`}})}}"
|
|
228
200
|
},
|
|
229
201
|
{
|
|
230
202
|
"kind": "variable",
|
|
231
203
|
"name": "oe",
|
|
232
|
-
"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 D(this,{task:async([e,r])=>{if(!e||!r)return R;let o=this.extractFieldConfig(e);return await this.initializeCountryOptions(),o},args:()=>[this.configuration,this.headlessUtils]})}connectedCallback(){super.connectedCallback(),this._initializationTask.value}extractFieldConfig(e){if(e?.checkoutModules){let r=e.checkoutModules.find(o=>o.type===\"BILLING_ADDRESS\");if(r?.options){let o=r.options;return Object.keys(Go).reduce((n,a)=>({...n,[a]:o[a]??!1}),{})}}return this.defaultFieldConfig}async initializeCountryOptions(){try{let e=Ko(\"en\");this.countryOptions=[...e.map(([n,a])=>({value:n,label:a}))],this.requestUpdate(\"countryOptions\");let r=_o();if(r===\"en\"||r===\"en-GB\"||r.startsWith(\"en-\"))return;if(await xs(r)){let n=Ko(r);this.countryOptions=[...n.map(([a,s])=>({value:a,label:s}))],this.requestUpdate(\"countryOptions\")}}catch(e){
|
|
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 D(this,{task:async([e,r])=>{if(!e||!r)return R;let o=this.extractFieldConfig(e);return await this.initializeCountryOptions(),o},args:()=>[this.configuration,this.headlessUtils]})}connectedCallback(){super.connectedCallback(),this._initializationTask.value}extractFieldConfig(e){if(e?.checkoutModules){let r=e.checkoutModules.find(o=>o.type===\"BILLING_ADDRESS\");if(r?.options){let o=r.options;return Object.keys(Go).reduce((n,a)=>({...n,[a]:o[a]??!1}),{})}}return this.defaultFieldConfig}async initializeCountryOptions(){try{let e=Ko(\"en\");this.countryOptions=[...e.map(([n,a])=>({value:n,label:a}))],this.requestUpdate(\"countryOptions\");let r=_o();if(r===\"en\"||r===\"en-GB\"||r.startsWith(\"en-\"))return;if(await xs(r)){let n=Ko(r);this.countryOptions=[...n.map(([a,s])=>({value:a,label:s}))],this.requestUpdate(\"countryOptions\")}}catch(e){S.errorWithDatadog(\"Failed to load country locale\",{error:e})}}get fieldConfig(){return this.extractFieldConfig(this.configuration)}get defaultFieldConfig(){return Object.keys(Go).reduce((e,r)=>({...e,[r]:!1}),{})}get shouldShowForm(){return this.fieldConfig.postalCode}handleInput(e,r){this.formData={...this.formData,[e]:r},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 r=this.formData[e],o=this.fieldConfig[e];if(!o){delete this.errors[e];return}if(o&&(!r||r.trim()===\"\")){let n=`${e}ErrorRequired`;this.errors={...this.errors,[e]:E(\"This field is required\",{id:n})}}else{let n={...this.errors};delete n[e],this.errors=n}}validateForm(){return Object.keys(Go).forEach(e=>{let r=e;this.fieldConfig[r]&&this.validateField(r)}),Object.keys(this.errors).length===0}async validateForSubmission(){if(!this.shouldShowForm)return!0;this.submitted=!0,Object.keys(this.fieldConfig).forEach(r=>{this.fieldConfig[r]&&this.touchedFields.add(r)});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 S.errorWithDatadog(\"Failed to set billing address\",{error:e}),!1}return!0}shouldShowError(e){let r=!!this.errors[e],o=this.dirtyFields.has(e),n=this.touchedFields.has(e);return r&&(this.submitted||o&&n)}render(){return this._initializationTask.render({pending:()=>h,error:()=>h,complete:()=>this.shouldShowForm?(this.removeAttribute(\"hidden\"),m`<div class=\"billing-address-form\"><div class=\"billing-address-title\">${E(\"Billing address\",{id:\"billingAddressLabel\"})}</div>${k(this.fieldConfig.countryCode,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"countryCode\"} .hasError=${this.shouldShowError(\"countryCode\")} ><primer-input-label slot=\"label\">${E(\"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=${E(\"Select a country\",{id:\"countrySelectPlaceholder\"})} @input=${e=>this.handleInput(\"countryCode\",e.detail)} @focus=${()=>this.handleFocus(\"countryCode\")} @blur=${()=>this.handleBlur(\"countryCode\")} ></primer-select>${k(this.shouldShowError(\"countryCode\"),()=>m`<primer-input-error slot=\"error\">${this.errors.countryCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.firstName||this.fieldConfig.lastName,()=>m`<div class=\"billing-address-row\">${k(this.fieldConfig.firstName,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"firstName\"} .hasError=${this.shouldShowError(\"firstName\")} ><primer-input-label slot=\"label\">${E(\"First name\",{id:\"firstNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"firstName\" name=\"firstName\" type=\"text\" .value=${this.formData.firstName||\"\"} placeholder=${E(\"First name\",{id:\"firstNamePlaceholder\"})} @input=${e=>this.handleInput(\"firstName\",e.detail)} @focus=${()=>this.handleFocus(\"firstName\")} @blur=${()=>this.handleBlur(\"firstName\")} ></primer-input>${k(this.shouldShowError(\"firstName\"),()=>m`<primer-input-error slot=\"error\">${this.errors.firstName}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.lastName,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"lastName\"} .hasError=${this.shouldShowError(\"lastName\")} ><primer-input-label slot=\"label\">${E(\"Last name\",{id:\"lastNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"lastName\" name=\"lastName\" type=\"text\" .value=${this.formData.lastName||\"\"} placeholder=${E(\"Last name\",{id:\"lastNamePlaceholder\"})} @input=${e=>this.handleInput(\"lastName\",e.detail)} @focus=${()=>this.handleFocus(\"lastName\")} @blur=${()=>this.handleBlur(\"lastName\")} ></primer-input>${k(this.shouldShowError(\"lastName\"),()=>m`<primer-input-error slot=\"error\">${this.errors.lastName}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${k(this.fieldConfig.addressLine1,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine1\"} .hasError=${this.shouldShowError(\"addressLine1\")} ><primer-input-label slot=\"label\">${E(\"Address line 1\",{id:\"addressLine1\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine1\" name=\"addressLine1\" type=\"text\" .value=${this.formData.addressLine1||\"\"} placeholder=${E(\"Address line 1\",{id:\"addressLine1Placeholder\"})} @input=${e=>this.handleInput(\"addressLine1\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine1\")} @blur=${()=>this.handleBlur(\"addressLine1\")} ></primer-input>${k(this.shouldShowError(\"addressLine1\"),()=>m`<primer-input-error slot=\"error\">${this.errors.addressLine1}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.addressLine2,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine2\"} .hasError=${this.shouldShowError(\"addressLine2\")} ><primer-input-label slot=\"label\">${E(\"Address line 2\",{id:\"addressLine2\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine2\" name=\"addressLine2\" type=\"text\" .value=${this.formData.addressLine2||\"\"} placeholder=${E(\"Address line 2\",{id:\"addressLine2Placeholder\"})} @input=${e=>this.handleInput(\"addressLine2\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine2\")} @blur=${()=>this.handleBlur(\"addressLine2\")} ></primer-input>${k(this.shouldShowError(\"addressLine2\"),()=>m`<primer-input-error slot=\"error\">${this.errors.addressLine2}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.postalCode||this.fieldConfig.city,()=>m`<div class=\"billing-address-row\">${k(this.fieldConfig.postalCode,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"postalCode\"} .hasError=${this.shouldShowError(\"postalCode\")} ><primer-input-label slot=\"label\">${E(\"Postal code\",{id:\"postalCodeLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"postalCode\" name=\"postalCode\" type=\"text\" .value=${this.formData.postalCode||\"\"} placeholder=${E(\"90210\",{id:\"postalCodePlaceholder\"})} @input=${e=>this.handleInput(\"postalCode\",e.detail)} @focus=${()=>this.handleFocus(\"postalCode\")} @blur=${()=>this.handleBlur(\"postalCode\")} ></primer-input>${k(this.shouldShowError(\"postalCode\"),()=>m`<primer-input-error slot=\"error\">${this.errors.postalCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.city,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"city\"} .hasError=${this.shouldShowError(\"city\")} ><primer-input-label slot=\"label\">${E(\"City\",{id:\"cityLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"city\" name=\"city\" type=\"text\" .value=${this.formData.city||\"\"} placeholder=${E(\"Cape Town\",{id:\"cityPlaceholder\"})} @input=${e=>this.handleInput(\"city\",e.detail)} @focus=${()=>this.handleFocus(\"city\")} @blur=${()=>this.handleBlur(\"city\")} ></primer-input>${k(this.shouldShowError(\"city\"),()=>m`<primer-input-error slot=\"error\">${this.errors.city}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${k(this.fieldConfig.state,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"state\"} .hasError=${this.shouldShowError(\"state\")} ><primer-input-label slot=\"label\">${E(\"State / Region / County\",{id:\"stateLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"state\" name=\"state\" type=\"text\" .value=${this.formData.state||\"\"} placeholder=${E(\"State / Region / County\",{id:\"statePlaceholder\"})} @input=${e=>this.handleInput(\"state\",e.detail)} @focus=${()=>this.handleFocus(\"state\")} @blur=${()=>this.handleBlur(\"state\")} ></primer-input>${k(this.shouldShowError(\"state\"),()=>m`<primer-input-error slot=\"error\">${this.errors.state}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`):(this.setAttribute(\"hidden\",\"\"),h)})}}"
|
|
233
205
|
},
|
|
234
206
|
{
|
|
235
207
|
"kind": "variable",
|
|
236
208
|
"name": "ne",
|
|
237
|
-
"default": "class extends v{constructor(){super();this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this.deleteAssetConfig=null;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 r=this.vaultManagerContext.vaultedPaymentMethods.find(o=>o.id===this.deletePaymentMethodId);r&&(this.deleteAssetConfig=await _i(r,this.headlessUtils,this.vaultManagerContext))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.vaultManagerContext?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=E(\"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:E(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}finally{this.isDeleting=!1}};this.handlePaymentError=e=>{let r=e.detail?.error;this.errorMessage=r instanceof Error?r.message:E(\"payment_processing_error\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};new Wt(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\"}}}getPaymentMethodName(e){if(!this.vaultManagerContext)return\"\";let r=this.vaultManagerContext.vaultedPaymentMethods.find(o=>o.id===e);if(!r)return\"\";try{return jo(r).description||\"\"}catch{return\"\"}}renderLoadingOverlay(){return m`<div class=\"loading-overlay\" ${
|
|
209
|
+
"default": "class extends v{constructor(){super();this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this.deleteAssetConfig=null;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 r=this.vaultManagerContext.vaultedPaymentMethods.find(o=>o.id===this.deletePaymentMethodId);r&&(this.deleteAssetConfig=await _i(r,this.headlessUtils,this.vaultManagerContext))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.vaultManagerContext?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=E(\"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:E(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}finally{this.isDeleting=!1}};this.handlePaymentError=e=>{let r=e.detail?.error;this.errorMessage=r instanceof Error?r.message:E(\"payment_processing_error\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};new Wt(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\"}}}getPaymentMethodName(e){if(!this.vaultManagerContext)return\"\";let r=this.vaultManagerContext.vaultedPaymentMethods.find(o=>o.id===e);if(!r)return\"\";try{return jo(r).description||\"\"}catch{return\"\"}}renderLoadingOverlay(){return m`<div class=\"loading-overlay\" ${ft({...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 h;let e=this.getPaymentMethodName(this.deletePaymentMethodId);return m`<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} ${ft({...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?h:m`<primer-vault-payment-method-item .paymentMethod=${e} .isEditMode=${this.isEditMode} @delete-payment-method=${this.handleDeletePaymentMethod} ${ft({...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||[],r=!this.isEditMode&&e.length>0&&!this.deletePaymentMethodId;return m`<div class=\"payment-methods-list\">${e.map(o=>this.renderPaymentMethodItem(o))} ${k(r,()=>m`<div class=\"submit-button-container\"><primer-vault-payment-submit class=\"submit-button\" @primer-vault-payment-error=${this.handlePaymentError} ${ft({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-payment-submit></div>`,()=>h)}</div>`}render(){if(!this.vaultManagerContext?.enabled)return h;let e=this.vaultManagerContext.vaultedPaymentMethods.length>0,r=this.vaultManagerContext.isLoading,o=this.vaultManagerContext.isUpdating;return m` ${k(!this.vaultManagerContext?.showEmptyState&&!e,()=>h,()=>m`<slot name=\"vault-empty-state\"><div class=\"vault-manager ${o?\"is-updating\":\"\"}\"><primer-vault-manager-header .isEditMode=${this.isEditMode} .hasPaymentMethods=${e} @toggle-edit-mode=${this.handleToggleEditMode} ></primer-vault-manager-header>${k(this.errorMessage,()=>m`<primer-vault-error-message .errorMessage=${this.errorMessage} @close-error=${this.handleCloseError} ${ft({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-error-message>`,()=>h)}<div class=\"vault-manager-content\">${k(!r&&!e,()=>m`<div class=\"content-container\"><primer-vault-empty-state ${ft({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-empty-state></div>`,()=>h)} ${k(!r&&e,()=>m`<div class=\"content-container\">${k(this.deletePaymentMethodId,()=>this.renderDeleteConfirmation(),()=>this.renderPaymentMethodList())}</div>`,()=>h)}</div>${k(o,()=>this.renderLoadingOverlay(),()=>h)}</div></slot>`)} `}}"
|
|
238
210
|
},
|
|
239
211
|
{
|
|
240
212
|
"kind": "variable",
|
|
241
213
|
"name": "be",
|
|
242
|
-
"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 D(this,{task:async([e,r,o])=>await _i(e,r,o),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:()=>
|
|
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 D(this,{task:async([e,r,o])=>await _i(e,r,o),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:()=>h,complete:e=>{let r=this.isSelected()?\"checked\":\"default\",o=!1,n=e?.description;return m`<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=${r} .flex=${o} @click=${this.handleClick} ><primer-payment-method-content .assetConfig=${e} ></primer-payment-method-content>${k(e.shouldShowCVV&&this.isSelected()&&!this.isEditMode,()=>m`<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>`,()=>h)}</primer-button>${this.isEditMode?m`<primer-button variant=\"tertiary\" class=\"delete-button\" @click=${this.handleDeleteClick} aria-label=${`${E(\"delete\",{id:\"delete\"})} ${n}`} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></primer-button>`:h}</div></div>`}})}}"
|
|
243
215
|
},
|
|
244
216
|
{
|
|
245
217
|
"kind": "variable",
|
|
246
218
|
"name": "Re",
|
|
247
|
-
"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 m`<div class=\"vault-manager-header\"><h3>${E(\"previouslyUsed\",{id:\"previouslyUsed\"})}</h3>${this.hasPaymentMethods?m`<primer-button variant=\"tertiary\" class=\"edit-button ${this.isEditMode?\"active\":\"\"}\" @click=${this.toggleEditMode} aria-label=${this.isEditMode?E(\"confirm\",{id:\"confirm\"}):E(\"editPaymentMethods\",{id:\"editPaymentMethods\"})} >${this.isEditMode?m`<primer-icon name=\"checkmark\" size=\"sm\"></primer-icon>`:m`<primer-icon name=\"edit\" size=\"sm\"></primer-icon>`}</primer-button>`:
|
|
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 m`<div class=\"vault-manager-header\"><h3>${E(\"previouslyUsed\",{id:\"previouslyUsed\"})}</h3>${this.hasPaymentMethods?m`<primer-button variant=\"tertiary\" class=\"edit-button ${this.isEditMode?\"active\":\"\"}\" @click=${this.toggleEditMode} aria-label=${this.isEditMode?E(\"confirm\",{id:\"confirm\"}):E(\"editPaymentMethods\",{id:\"editPaymentMethods\"})} >${this.isEditMode?m`<primer-icon name=\"checkmark\" size=\"sm\"></primer-icon>`:m`<primer-icon name=\"edit\" size=\"sm\"></primer-icon>`}</primer-button>`:h}</div>`}}"
|
|
248
220
|
},
|
|
249
221
|
{
|
|
250
222
|
"kind": "variable",
|
|
@@ -264,27 +236,27 @@
|
|
|
264
236
|
{
|
|
265
237
|
"kind": "variable",
|
|
266
238
|
"name": "X",
|
|
267
|
-
"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(r){let o=new CustomEvent(\"primer-vault-payment-error\",{bubbles:!0,composed:!0,detail:{error:r}});this.dispatchEvent(o)}}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:E(\"pay\",{id:\"pay\"})}set buttonText(e){let r=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",r)}get isButtonDisabled(){return!!(this.disabled||!this.vaultItemContext?.selectedVaultedPaymentMethod||this.vaultManager?.isLoading)}render(){let e=this.clientOptions?.submitButton?.amountVisible?this.headlessInstance?.getUIOrderAmount():null,r=e?` ${e}`:
|
|
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(r){let o=new CustomEvent(\"primer-vault-payment-error\",{bubbles:!0,composed:!0,detail:{error:r}});this.dispatchEvent(o)}}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:E(\"pay\",{id:\"pay\"})}set buttonText(e){let r=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",r)}get isButtonDisabled(){return!!(this.disabled||!this.vaultItemContext?.selectedVaultedPaymentMethod||this.vaultManager?.isLoading)}render(){let e=this.clientOptions?.submitButton?.amountVisible?this.headlessInstance?.getUIOrderAmount():null,r=e?` ${e}`:h;return m`<primer-button buttonType=\"submit\" variant=${this.variant} @click=${this.handleClick} .disabled=${this.isButtonDisabled} .loading=${this.sdkState?.isProcessing} data-submit >${this.buttonText}${r}</primer-button>`}}"
|
|
268
240
|
},
|
|
269
241
|
{
|
|
270
242
|
"kind": "variable",
|
|
271
243
|
"name": "j",
|
|
272
|
-
"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 D(this,{task:([e,r])=>!e||!r||e.paymentMethodType!==\"PAYMENT_CARD\"||!e.paymentInstrumentData?.network||r.createCvvInput===null?R:{network:e.paymentInstrumentData.network,createCvvInput:r.createCvvInput},args:()=>[this.paymentMethod,this.vaultManagerFormContext]});this.cvvContainerId=`cvv-container-${Math.random().toString(36).substring(2,9)}`,new D(this,{task:async([e])=>{if(!e)return R;await this.updateComplete;let r=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!r)return;let o=ki(this.computedStyles),n=o?{input:{base:o}}:void 0,a={cardNetwork:e.network,container:r,name:\"cvv\",placeholder:\"123\",style:n};this.cvvInput=await e.createCvvInput?.(a)??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:()=>
|
|
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 D(this,{task:([e,r])=>!e||!r||e.paymentMethodType!==\"PAYMENT_CARD\"||!e.paymentInstrumentData?.network||r.createCvvInput===null?R:{network:e.paymentInstrumentData.network,createCvvInput:r.createCvvInput},args:()=>[this.paymentMethod,this.vaultManagerFormContext]});this.cvvContainerId=`cvv-container-${Math.random().toString(36).substring(2,9)}`,new D(this,{task:async([e])=>{if(!e)return R;await this.updateComplete;let r=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!r)return;let o=ki(this.computedStyles),n=o?{input:{base:o}}:void 0,a={cardNetwork:e.network,container:r,name:\"cvv\",placeholder:\"123\",style:n};this.cvvInput=await e.createCvvInput?.(a)??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:()=>h,complete:()=>m`<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>${k(this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred),()=>m`<primer-input-error slot=\"error\">${E(this.cvvError,{id:this.cvvError})}</primer-input-error>`)}</primer-input-wrapper></div>`})}}"
|
|
273
245
|
},
|
|
274
246
|
{
|
|
275
247
|
"kind": "variable",
|
|
276
248
|
"name": "Ge",
|
|
277
|
-
"default": "class extends v{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return
|
|
249
|
+
"default": "class extends v{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return h;let e=this.assetConfig.description,r=this.assetConfig.icon,o=k(this.assetConfig.icon,()=>m`<img class=\"payment-method-icon\" src=${r} alt=${e} />`,()=>m`<div class=\"payment-method-icon payment-method-icon-generic\"><primer-icon name=\"payment-card\" size=\"sm\"></primer-icon></div>`);return this.assetConfig.type===\"paypal\"?m`<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\">${o}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></span></div></span>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType!==\"ACH\"?m`<div class=\"payment-method-card-other\"><div class=\"left-column\"><div class=\"payment-method-header\">${this.assetConfig.fullName}</div><div class=\"flex\">${o}<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\"?m`<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\">${o}<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\"?m`<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\">${o}<span class=\"payment-method-subtitle\" >${this.assetConfig.network}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.expiresDate}</span ></div></span>`:h}}"
|
|
278
250
|
},
|
|
279
251
|
{
|
|
280
252
|
"kind": "variable",
|
|
281
253
|
"name": "Q",
|
|
282
|
-
"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:qt,initialValue:null});this.eventsController=new Yt(this);this._contextCardSubmitListener=null;this._isHandlingContextEvent=!1;this.inputControllers=new Map;this.setupCardFormTask=new D(this,{task:([e])=>{if(!e?.manager)return R;let{manager:r}=e,o=r.createHostedInputs(),{cardNumberInput:n,expiryInput:a,cvvInput:s}=o;return this.cardFormProvider.setValue({cardholderNameInput:o.cardholderNameInput,cardNumberInput:n,expiryInput:a,cvvInput:s,setCardholderName:l=>{r.setCardholderName(l),this.shouldRequireCardholderName&&r.validate?.().then(c=>{let
|
|
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:qt,initialValue:null});this.eventsController=new Yt(this);this._contextCardSubmitListener=null;this._isHandlingContextEvent=!1;this.inputControllers=new Map;this.setupCardFormTask=new D(this,{task:([e])=>{if(!e?.manager)return R;let{manager:r}=e,o=r.createHostedInputs(),{cardNumberInput:n,expiryInput:a,cvvInput:s}=o;return this.cardFormProvider.setValue({cardholderNameInput:o.cardholderNameInput,cardNumberInput:n,expiryInput:a,cvvInput:s,setCardholderName:l=>{r.setCardholderName(l),this.shouldRequireCardholderName&&r.validate?.().then(c=>{let y=c?.validationErrors?.find(A=>A.name===qs.cardholderName),g=this.inputControllers.get(\"cardholderName\");g&&g.updateMetaFromValidation({valid:!1,error:y?.message||y?.error||null,errorCode:y?.message||y?.error||null})})},setCardNetwork:l=>{this.selectedCardNetwork=l},validate:()=>r.validate(),submit:l=>r.submit(l),hideLabels:this.hideLabels,disabled:this.disabled,setSubmissionState:l=>{this.inputControllers.forEach(c=>{c.setSubmitted(l)})},propagateValidationErrors:l=>{l&&l.forEach(c=>{let u=c.field||c.name,y=c.message||c.error,g=qs[u];if(g){let A=this.inputControllers.get(g);if(A){let x={valid:!1,error:y,errorCode:y};A.updateMetaFromValidation(x)}}})},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 o=e.target.closest(\"button, primer-button\");if(!o)return;let n=o;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 o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.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 r=e.get(\"contextEventsController\");r?.host&&this._contextCardSubmitListener&&r.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,J({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:\"PAYMENT_CARD\"}))}checkAndSendPaymentDetailsEnteredEvent(){if(this.paymentDetailsEnteredSent)return;let e=this.inputControllers.get(\"cardNumber\"),r=this.inputControllers.get(\"expire\"),o=this.inputControllers.get(\"cvv\"),n=e?.meta?.dirty===!0,a=r?.meta?.dirty===!0,s=o?.meta?.dirty===!0,l=!0;this.shouldRequireCardholderName&&(l=this.inputControllers.get(\"cardholderName\")?.meta?.dirty===!0),n&&a&&s&&l&&(this.sendPaymentDetailsEnteredEvent(),this.paymentDetailsEnteredSent=!0)}sendPaymentDetailsEnteredEvent(){J({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 r=e.tagName.toLowerCase(),o=r===\"button\",n=r===\"primer-button\";return o&&(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 r=this.querySelector(\"primer-billing-address\")||this.renderRoot.querySelector(\"primer-billing-address\"),o=!0;r&&(o=await r.validateForSubmission());let n=await e.validate?.();if(n?.valid&&o){if(r&&!await r.submitToSDK()){let c=E(\"tokenizationError\",{id:\"tokenizationError\"});this.formErrorMessage=c,this.eventsController.dispatchFormSubmitErrors([{field:\"billingAddress\",name:\"billingAddress\",error:\"BILLING_ADDRESS_SUBMISSION_FAILED\",message:c}]);return}let a=this.selectedCardNetwork?{cardNetwork:this.selectedCardNetwork}:void 0;await e.submit?.(a);let s={success:!0};this.eventsController.dispatchFormSubmitSuccess(s)}else{let a=n?.validationErrors;e.propagateValidationErrors?.(a||[]),this.cardFormProvider.setValue({...e,errors:a}),this.eventsController.dispatchFormSubmitErrors(a)}}render(){return this.setupCardFormTask.status===pt.ERROR||this.setupCardFormTask.status===pt.INITIAL?h:m`<form @submit=${this.handleFormSubmit}><slot name=\"card-form-content\" @slotchange=${this.onSlotChange}></slot>${this.setupCardFormTask.render({complete:()=>k(this.hasAssignedContent,()=>h,()=>m`<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>${k(this.shouldShowCardholderName,()=>m`<primer-input-card-holder-name></primer-input-card-holder-name>`,()=>h)}<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>`}}"
|
|
283
255
|
},
|
|
284
256
|
{
|
|
285
257
|
"kind": "variable",
|
|
286
258
|
"name": "tt",
|
|
287
|
-
"default": "class extends de{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:r}=e.detail;this.cardFormContext&&this.cardFormContext.setCardNetwork(r)};this.childUpdated()}renderInput(){if(this.hostedInputController.setupTask.status===pt.ERROR)return
|
|
259
|
+
"default": "class extends de{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:r}=e.detail;this.cardFormContext&&this.cardFormContext.setCardNetwork(r)};this.childUpdated()}renderInput(){if(this.hostedInputController.setupTask.status===pt.ERROR)return h;let e=this.getError();return m`<primer-input-wrapper .focusWithin=\"${this.hostedInputController.meta.active}\" .hasError=${!!e} >${k(!this.cardFormContext?.hideLabels,()=>m`<primer-input-label slot=\"label\" >${this.label}</primer-input-label >`,()=>h)}<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>${k(e,r=>m`<primer-input-error slot=\"error\">${E(r,{id:r})}</primer-input-error>`,()=>h)}</primer-input-wrapper>`}render(){return this.renderInput()}}"
|
|
288
260
|
},
|
|
289
261
|
{
|
|
290
262
|
"kind": "variable",
|
|
@@ -304,17 +276,17 @@
|
|
|
304
276
|
{
|
|
305
277
|
"kind": "variable",
|
|
306
278
|
"name": "W",
|
|
307
|
-
"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;J({eventName:\"PAYMENT_SUBMITTED\",paymentMethod:\"PAYMENT_CARD\"});let r=new CustomEvent(\"primer:card-submit\",{bubbles:!0,composed:!0,detail:{source:\"primer-card-form-submit\"}});this.dispatchEvent(r)}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:E(\"pay\",{id:\"pay\"})}set buttonText(e){let r=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",r)}get submitButtonConfig(){return this.clientOptions?.submitButton??null}get shouldShowBuiltInButton(){return this.submitButtonConfig?.useBuiltInButton??!0}render(){if(!this.shouldShowBuiltInButton)return
|
|
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;J({eventName:\"PAYMENT_SUBMITTED\",paymentMethod:\"PAYMENT_CARD\"});let r=new CustomEvent(\"primer:card-submit\",{bubbles:!0,composed:!0,detail:{source:\"primer-card-form-submit\"}});this.dispatchEvent(r)}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:E(\"pay\",{id:\"pay\"})}set buttonText(e){let r=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",r)}get submitButtonConfig(){return this.clientOptions?.submitButton??null}get shouldShowBuiltInButton(){return this.submitButtonConfig?.useBuiltInButton??!0}render(){if(!this.shouldShowBuiltInButton)return h;let e=this.submitButtonConfig?.amountVisible?this.headlessUtils?.getUIOrderAmount():null,r=e?` ${e}`:h,o=this.disabled||this.cardFormContext?.disabled||!1;return m`<primer-button type=\"submit\" variant=${this.variant} ?disabled=${o} @click=${this.handleClick} .loading=${!!this.sdkState?.isProcessing} data-submit >${this.buttonText}${r}</primer-button>`}}"
|
|
308
280
|
},
|
|
309
281
|
{
|
|
310
282
|
"kind": "variable",
|
|
311
283
|
"name": "ce",
|
|
312
|
-
"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=Lt();this.dropdownRef=Lt();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 r=this.getSelectableNetworks().findIndex(o=>o.network===e.network);return r>=0?r:0}selectNetwork(e,r){e.stopPropagation(),this.selectedCardNetwork=r,this.isDropdownOpen=!1,this.buttonRef.value?.focus(),this.cardNetworks&&this.dispatchEvent(new CustomEvent(\"network-selected\",{detail:{network:r.network},bubbles:!0,composed:!0}))}focusNetworkOption(){requestAnimationFrame(()=>{this.networkOptionRefs[this.focusedNetworkIndex]&&this.networkOptionRefs[this.focusedNetworkIndex].focus()})}setNetworkOptionRef(e,r){this.networkOptionRefs[r]=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 m`<primer-spinner size=\"small\" compact></primer-spinner>`;let e=this.getSelectableNetworks();if(!this.getDetectedNetwork()&&e.length===0)return m`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let r=this.getDetectedNetwork()||(e.length>0?e[0]:null);if(!r)return m`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let o=e.length>1;return m`<button ${
|
|
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=Lt();this.dropdownRef=Lt();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 r=this.getSelectableNetworks().findIndex(o=>o.network===e.network);return r>=0?r:0}selectNetwork(e,r){e.stopPropagation(),this.selectedCardNetwork=r,this.isDropdownOpen=!1,this.buttonRef.value?.focus(),this.cardNetworks&&this.dispatchEvent(new CustomEvent(\"network-selected\",{detail:{network:r.network},bubbles:!0,composed:!0}))}focusNetworkOption(){requestAnimationFrame(()=>{this.networkOptionRefs[this.focusedNetworkIndex]&&this.networkOptionRefs[this.focusedNetworkIndex].focus()})}setNetworkOptionRef(e,r){this.networkOptionRefs[r]=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 m`<primer-spinner size=\"small\" compact></primer-spinner>`;let e=this.getSelectableNetworks();if(!this.getDetectedNetwork()&&e.length===0)return m`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let r=this.getDetectedNetwork()||(e.length>0?e[0]:null);if(!r)return m`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let o=e.length>1;return m`<button ${yt(this.buttonRef)} class=\"network-selector\" @click=${this.toggleDropdown} @keydown=${n=>{(n.key===\" \"||n.key===\"Enter\")&&o&&(n.preventDefault(),this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))}} aria-label=${o?`Selected card network: ${r.displayName}. Click to change.`:`Card network: ${r.displayName}`} aria-expanded=${o?this.isDropdownOpen:h} aria-haspopup=${o?\"true\":h} aria-controls=${o?\"network-dropdown\":h} ><img class=\"network-icon\" src=${this.getNetworkIconUrl(r)} alt=${r.displayName} />${k(o,()=>m`<primer-icon class=\"caret ${this.isDropdownOpen?\"open\":\"\"}\" size=\"sm\" name=\"chevron-down\" ></primer-icon>`,()=>h)}</button>${k(this.isDropdownOpen,()=>m`<div ${yt(this.dropdownRef)} id=\"network-dropdown\" class=\"dropdown open\" role=\"listbox\" aria-label=\"Select card network\" >${e.map((n,a)=>m`<div ${yt(s=>this.setNetworkOptionRef(s,a))} class=\"network-option ${this.isKeyboardNavigation&&a===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===r.network} tabindex=\"${a===this.focusedNetworkIndex?\"0\":\"-1\"}\" ><img class=\"network-option-icon\" src=${this.getNetworkIconUrl(n)} alt=${n.displayName} /><span class=\"network-name\">${n.displayName}</span>${k(n.network===r.network,()=>m`<primer-icon class=\"checkmark\" name=\"checkmark\" size=\"sm\" ></primer-icon>`,()=>h)}</div>`)}</div>`,()=>h)} `}}"
|
|
313
285
|
},
|
|
314
286
|
{
|
|
315
287
|
"kind": "variable",
|
|
316
288
|
"name": "bt",
|
|
317
|
-
"default": "class extends v{constructor(){super(...arguments);this.vaultManager=null}render(){if(this.vaultManager?.isLoading)return
|
|
289
|
+
"default": "class extends v{constructor(){super(...arguments);this.vaultManager=null}render(){if(this.vaultManager?.isLoading)return h;let e=this.vaultManager?.showEmptyState&&this.vaultManager?.vaultedPaymentMethods.length;return!this.vaultManager||!this.vaultManager.enabled||!e?m`<slot name=\"other-payments\"></slot>`:m`<div class=\"other-payment-methods-container\"><primer-collapsable buttonVariant=\"secondary\" .expanded=\"${this.vaultManager?.vaultedPaymentMethods.length===0}\" .header=\"${E(\"navigateToPaymentMethods\",{id:\"navigateToPaymentMethods\"})}\" ><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></primer-collapsable></div>`}}"
|
|
318
290
|
},
|
|
319
291
|
{
|
|
320
292
|
"kind": "variable",
|
|
@@ -329,12 +301,12 @@
|
|
|
329
301
|
{
|
|
330
302
|
"kind": "variable",
|
|
331
303
|
"name": "nt",
|
|
332
|
-
"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?m`<primer-error-message message=\"${E(this.sdkState.paymentFailure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:
|
|
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?m`<primer-error-message message=\"${E(this.sdkState.paymentFailure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:h}}"
|
|
333
305
|
},
|
|
334
306
|
{
|
|
335
307
|
"kind": "variable",
|
|
336
308
|
"name": "je",
|
|
337
|
-
"default": "class extends v{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0,this.requestUpdate()};this.paymentMethods=null;this.sdkState=null;this.clientOptions=null}render(){return this.sdkState?.isSuccessful?m`<slot name=\"checkout-complete\"><primer-checkout-complete></primer-checkout-complete></slot>`:m`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${k(this.hasAssignedContent,()=>
|
|
309
|
+
"default": "class extends v{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0,this.requestUpdate()};this.paymentMethods=null;this.sdkState=null;this.clientOptions=null}render(){return this.sdkState?.isSuccessful?m`<slot name=\"checkout-complete\"><primer-checkout-complete></primer-checkout-complete></slot>`:m`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${k(this.hasAssignedContent,()=>h,()=>m`<div class=${re({\"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=>m`<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>`)} `}}"
|
|
338
310
|
},
|
|
339
311
|
{
|
|
340
312
|
"kind": "function",
|
|
@@ -466,7 +438,7 @@
|
|
|
466
438
|
"kind": "js",
|
|
467
439
|
"name": "Collapsable",
|
|
468
440
|
"declaration": {
|
|
469
|
-
"name": "
|
|
441
|
+
"name": "fe",
|
|
470
442
|
"module": "dist/primer-loader.js"
|
|
471
443
|
}
|
|
472
444
|
},
|
|
@@ -666,7 +638,7 @@
|
|
|
666
638
|
"kind": "js",
|
|
667
639
|
"name": "Select",
|
|
668
640
|
"declaration": {
|
|
669
|
-
"name": "
|
|
641
|
+
"name": "ye",
|
|
670
642
|
"module": "dist/primer-loader.js"
|
|
671
643
|
}
|
|
672
644
|
},
|
|
@@ -792,6 +764,34 @@
|
|
|
792
764
|
}
|
|
793
765
|
]
|
|
794
766
|
},
|
|
767
|
+
{
|
|
768
|
+
"kind": "javascript-module",
|
|
769
|
+
"path": "e2e/utils.ts",
|
|
770
|
+
"declarations": [
|
|
771
|
+
{
|
|
772
|
+
"kind": "variable",
|
|
773
|
+
"name": "test"
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
"exports": [
|
|
777
|
+
{
|
|
778
|
+
"kind": "js",
|
|
779
|
+
"name": "expect",
|
|
780
|
+
"declaration": {
|
|
781
|
+
"name": "expect",
|
|
782
|
+
"package": "@chromatic-com/playwright"
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"kind": "js",
|
|
787
|
+
"name": "test",
|
|
788
|
+
"declaration": {
|
|
789
|
+
"name": "test",
|
|
790
|
+
"module": "e2e/utils.ts"
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
]
|
|
794
|
+
},
|
|
795
795
|
{
|
|
796
796
|
"kind": "javascript-module",
|
|
797
797
|
"path": "src/consts.ts",
|
|
@@ -1628,65 +1628,115 @@
|
|
|
1628
1628
|
},
|
|
1629
1629
|
{
|
|
1630
1630
|
"kind": "javascript-module",
|
|
1631
|
-
"path": "
|
|
1631
|
+
"path": "dist/chunks/ar.KRXB3WQO.js",
|
|
1632
1632
|
"declarations": [
|
|
1633
1633
|
{
|
|
1634
1634
|
"kind": "variable",
|
|
1635
|
-
"name": "
|
|
1636
|
-
"
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1635
|
+
"name": "o",
|
|
1636
|
+
"default": "e"
|
|
1637
|
+
}
|
|
1638
|
+
],
|
|
1639
|
+
"exports": [
|
|
1640
|
+
{
|
|
1641
|
+
"kind": "js",
|
|
1642
|
+
"name": "templates",
|
|
1643
|
+
"declaration": {
|
|
1644
|
+
"name": "o",
|
|
1645
|
+
"module": "dist/chunks/ar.KRXB3WQO.js"
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
]
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"kind": "javascript-module",
|
|
1652
|
+
"path": "dist/chunks/bg.6SKJRXIR.js",
|
|
1653
|
+
"declarations": [
|
|
1641
1654
|
{
|
|
1642
1655
|
"kind": "variable",
|
|
1643
|
-
"name": "
|
|
1644
|
-
"
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1656
|
+
"name": "o",
|
|
1657
|
+
"default": "e"
|
|
1658
|
+
}
|
|
1659
|
+
],
|
|
1660
|
+
"exports": [
|
|
1661
|
+
{
|
|
1662
|
+
"kind": "js",
|
|
1663
|
+
"name": "templates",
|
|
1664
|
+
"declaration": {
|
|
1665
|
+
"name": "o",
|
|
1666
|
+
"module": "dist/chunks/bg.6SKJRXIR.js"
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
]
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"kind": "javascript-module",
|
|
1673
|
+
"path": "dist/chunks/ca.SANDLFEK.js",
|
|
1674
|
+
"declarations": [
|
|
1649
1675
|
{
|
|
1650
1676
|
"kind": "variable",
|
|
1651
|
-
"name": "
|
|
1652
|
-
"
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1677
|
+
"name": "i",
|
|
1678
|
+
"default": "e"
|
|
1679
|
+
}
|
|
1680
|
+
],
|
|
1681
|
+
"exports": [
|
|
1682
|
+
{
|
|
1683
|
+
"kind": "js",
|
|
1684
|
+
"name": "templates",
|
|
1685
|
+
"declaration": {
|
|
1686
|
+
"name": "i",
|
|
1687
|
+
"module": "dist/chunks/ca.SANDLFEK.js"
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
]
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"kind": "javascript-module",
|
|
1694
|
+
"path": "dist/chunks/chunk.DV3REKZU.js",
|
|
1695
|
+
"declarations": [
|
|
1657
1696
|
{
|
|
1658
1697
|
"kind": "function",
|
|
1659
|
-
"name": "
|
|
1698
|
+
"name": "k",
|
|
1660
1699
|
"parameters": [
|
|
1661
1700
|
{
|
|
1662
|
-
"name": "
|
|
1663
|
-
"type": {
|
|
1664
|
-
"text": "Page"
|
|
1665
|
-
}
|
|
1701
|
+
"name": "c"
|
|
1666
1702
|
}
|
|
1667
1703
|
]
|
|
1668
1704
|
},
|
|
1705
|
+
{
|
|
1706
|
+
"kind": "variable",
|
|
1707
|
+
"name": "b",
|
|
1708
|
+
"default": "c[a]"
|
|
1709
|
+
},
|
|
1669
1710
|
{
|
|
1670
1711
|
"kind": "function",
|
|
1671
|
-
"name": "
|
|
1712
|
+
"name": "l",
|
|
1672
1713
|
"parameters": [
|
|
1673
1714
|
{
|
|
1674
|
-
"name": "
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1715
|
+
"name": "c"
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"name": "a"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"name": "b"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"name": "e"
|
|
1678
1725
|
}
|
|
1679
1726
|
]
|
|
1680
1727
|
},
|
|
1681
1728
|
{
|
|
1682
1729
|
"kind": "function",
|
|
1683
|
-
"name": "
|
|
1730
|
+
"name": "m",
|
|
1684
1731
|
"parameters": [
|
|
1685
1732
|
{
|
|
1686
|
-
"name": "
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1733
|
+
"name": "c"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"name": "a"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"name": "b"
|
|
1690
1740
|
}
|
|
1691
1741
|
]
|
|
1692
1742
|
}
|
|
@@ -1694,487 +1744,292 @@
|
|
|
1694
1744
|
"exports": [
|
|
1695
1745
|
{
|
|
1696
1746
|
"kind": "js",
|
|
1697
|
-
"name": "
|
|
1698
|
-
"declaration": {
|
|
1699
|
-
"name": "settings",
|
|
1700
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
1701
|
-
}
|
|
1702
|
-
},
|
|
1703
|
-
{
|
|
1704
|
-
"kind": "js",
|
|
1705
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1706
|
-
"declaration": {
|
|
1707
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1708
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
1709
|
-
}
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
"kind": "js",
|
|
1713
|
-
"name": "CARD_NUMBER",
|
|
1714
|
-
"declaration": {
|
|
1715
|
-
"name": "CARD_NUMBER",
|
|
1716
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
1717
|
-
}
|
|
1718
|
-
},
|
|
1719
|
-
{
|
|
1720
|
-
"kind": "js",
|
|
1721
|
-
"name": "mockBinData",
|
|
1747
|
+
"name": "a",
|
|
1722
1748
|
"declaration": {
|
|
1723
|
-
"name": "
|
|
1724
|
-
"module": "
|
|
1749
|
+
"name": "k",
|
|
1750
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
1725
1751
|
}
|
|
1726
1752
|
},
|
|
1727
1753
|
{
|
|
1728
1754
|
"kind": "js",
|
|
1729
|
-
"name": "
|
|
1755
|
+
"name": "b",
|
|
1730
1756
|
"declaration": {
|
|
1731
|
-
"name": "
|
|
1732
|
-
"module": "
|
|
1757
|
+
"name": "l",
|
|
1758
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
1733
1759
|
}
|
|
1734
1760
|
},
|
|
1735
1761
|
{
|
|
1736
1762
|
"kind": "js",
|
|
1737
|
-
"name": "
|
|
1763
|
+
"name": "c",
|
|
1738
1764
|
"declaration": {
|
|
1739
|
-
"name": "
|
|
1740
|
-
"module": "
|
|
1765
|
+
"name": "m",
|
|
1766
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
1741
1767
|
}
|
|
1742
1768
|
}
|
|
1743
1769
|
]
|
|
1744
1770
|
},
|
|
1745
1771
|
{
|
|
1746
1772
|
"kind": "javascript-module",
|
|
1747
|
-
"path": "
|
|
1773
|
+
"path": "dist/chunks/chunk.QMLIEEKM.js",
|
|
1748
1774
|
"declarations": [
|
|
1749
1775
|
{
|
|
1750
1776
|
"kind": "variable",
|
|
1751
|
-
"name": "
|
|
1752
|
-
"type": {
|
|
1753
|
-
"text": "string"
|
|
1754
|
-
},
|
|
1755
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI3NDUyNyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
1756
|
-
},
|
|
1757
|
-
{
|
|
1758
|
-
"kind": "variable",
|
|
1759
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1777
|
+
"name": "t",
|
|
1760
1778
|
"type": {
|
|
1761
1779
|
"text": "object"
|
|
1762
1780
|
},
|
|
1763
|
-
"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: {}, }"
|
|
1781
|
+
"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\"}"
|
|
1764
1782
|
}
|
|
1765
1783
|
],
|
|
1766
1784
|
"exports": [
|
|
1767
1785
|
{
|
|
1768
1786
|
"kind": "js",
|
|
1769
|
-
"name": "
|
|
1770
|
-
"declaration": {
|
|
1771
|
-
"name": "settings",
|
|
1772
|
-
"module": "e2e/mocks/card-3ds.ts"
|
|
1773
|
-
}
|
|
1774
|
-
},
|
|
1775
|
-
{
|
|
1776
|
-
"kind": "js",
|
|
1777
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1787
|
+
"name": "a",
|
|
1778
1788
|
"declaration": {
|
|
1779
|
-
"name": "
|
|
1780
|
-
"module": "
|
|
1789
|
+
"name": "t",
|
|
1790
|
+
"module": "dist/chunks/chunk.QMLIEEKM.js"
|
|
1781
1791
|
}
|
|
1782
1792
|
}
|
|
1783
1793
|
]
|
|
1784
1794
|
},
|
|
1785
1795
|
{
|
|
1786
1796
|
"kind": "javascript-module",
|
|
1787
|
-
"path": "
|
|
1797
|
+
"path": "dist/chunks/cs.FC4I5M3C.js",
|
|
1788
1798
|
"declarations": [
|
|
1789
1799
|
{
|
|
1790
1800
|
"kind": "variable",
|
|
1791
|
-
"name": "
|
|
1792
|
-
"
|
|
1793
|
-
"text": "string"
|
|
1794
|
-
},
|
|
1795
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6ZmFsc2V9fQ=='"
|
|
1796
|
-
},
|
|
1797
|
-
{
|
|
1798
|
-
"kind": "variable",
|
|
1799
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1800
|
-
"type": {
|
|
1801
|
-
"text": "object"
|
|
1802
|
-
},
|
|
1803
|
-
"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: {}, }"
|
|
1804
|
-
},
|
|
1805
|
-
{
|
|
1806
|
-
"kind": "variable",
|
|
1807
|
-
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
1808
|
-
"type": {
|
|
1809
|
-
"text": "string"
|
|
1810
|
-
},
|
|
1811
|
-
"default": "'4035 5010 0000 0008'"
|
|
1812
|
-
},
|
|
1813
|
-
{
|
|
1814
|
-
"kind": "variable",
|
|
1815
|
-
"name": "FAILURE_CARD_NUMBER",
|
|
1816
|
-
"type": {
|
|
1817
|
-
"text": "string"
|
|
1818
|
-
},
|
|
1819
|
-
"default": "'4242 4242 4242 4242'"
|
|
1820
|
-
},
|
|
1821
|
-
{
|
|
1822
|
-
"kind": "function",
|
|
1823
|
-
"name": "mockPaymentInstruments",
|
|
1824
|
-
"parameters": [
|
|
1825
|
-
{
|
|
1826
|
-
"name": "page",
|
|
1827
|
-
"type": {
|
|
1828
|
-
"text": "Page"
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
|
-
]
|
|
1832
|
-
},
|
|
1833
|
-
{
|
|
1834
|
-
"kind": "function",
|
|
1835
|
-
"name": "mockPayments",
|
|
1836
|
-
"parameters": [
|
|
1837
|
-
{
|
|
1838
|
-
"name": "page",
|
|
1839
|
-
"type": {
|
|
1840
|
-
"text": "Page"
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
]
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
"kind": "function",
|
|
1847
|
-
"name": "mockPaymentInstrumentsFailure",
|
|
1848
|
-
"parameters": [
|
|
1849
|
-
{
|
|
1850
|
-
"name": "page",
|
|
1851
|
-
"type": {
|
|
1852
|
-
"text": "Page"
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
]
|
|
1856
|
-
},
|
|
1857
|
-
{
|
|
1858
|
-
"kind": "function",
|
|
1859
|
-
"name": "mockPaymentsFailure",
|
|
1860
|
-
"parameters": [
|
|
1861
|
-
{
|
|
1862
|
-
"name": "page",
|
|
1863
|
-
"type": {
|
|
1864
|
-
"text": "Page"
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
]
|
|
1801
|
+
"name": "n",
|
|
1802
|
+
"default": "e"
|
|
1868
1803
|
}
|
|
1869
1804
|
],
|
|
1870
1805
|
"exports": [
|
|
1871
1806
|
{
|
|
1872
1807
|
"kind": "js",
|
|
1873
|
-
"name": "
|
|
1874
|
-
"declaration": {
|
|
1875
|
-
"name": "settings",
|
|
1876
|
-
"module": "e2e/mocks/card-basic.ts"
|
|
1877
|
-
}
|
|
1878
|
-
},
|
|
1879
|
-
{
|
|
1880
|
-
"kind": "js",
|
|
1881
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1808
|
+
"name": "templates",
|
|
1882
1809
|
"declaration": {
|
|
1883
|
-
"name": "
|
|
1884
|
-
"module": "
|
|
1810
|
+
"name": "n",
|
|
1811
|
+
"module": "dist/chunks/cs.FC4I5M3C.js"
|
|
1885
1812
|
}
|
|
1886
|
-
}
|
|
1813
|
+
}
|
|
1814
|
+
]
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"kind": "javascript-module",
|
|
1818
|
+
"path": "dist/chunks/da.YI32NZ7B.js",
|
|
1819
|
+
"declarations": [
|
|
1887
1820
|
{
|
|
1888
|
-
"kind": "
|
|
1889
|
-
"name": "
|
|
1890
|
-
"
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
},
|
|
1821
|
+
"kind": "variable",
|
|
1822
|
+
"name": "a",
|
|
1823
|
+
"default": "e"
|
|
1824
|
+
}
|
|
1825
|
+
],
|
|
1826
|
+
"exports": [
|
|
1895
1827
|
{
|
|
1896
1828
|
"kind": "js",
|
|
1897
|
-
"name": "
|
|
1829
|
+
"name": "templates",
|
|
1898
1830
|
"declaration": {
|
|
1899
|
-
"name": "
|
|
1900
|
-
"module": "
|
|
1831
|
+
"name": "a",
|
|
1832
|
+
"module": "dist/chunks/da.YI32NZ7B.js"
|
|
1901
1833
|
}
|
|
1902
|
-
}
|
|
1834
|
+
}
|
|
1835
|
+
]
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"kind": "javascript-module",
|
|
1839
|
+
"path": "dist/chunks/de.7M7UFQB7.js",
|
|
1840
|
+
"declarations": [
|
|
1903
1841
|
{
|
|
1904
|
-
"kind": "
|
|
1905
|
-
"name": "
|
|
1906
|
-
"
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
},
|
|
1842
|
+
"kind": "variable",
|
|
1843
|
+
"name": "t",
|
|
1844
|
+
"default": "e"
|
|
1845
|
+
}
|
|
1846
|
+
],
|
|
1847
|
+
"exports": [
|
|
1911
1848
|
{
|
|
1912
1849
|
"kind": "js",
|
|
1913
|
-
"name": "
|
|
1850
|
+
"name": "templates",
|
|
1914
1851
|
"declaration": {
|
|
1915
|
-
"name": "
|
|
1916
|
-
"module": "
|
|
1852
|
+
"name": "t",
|
|
1853
|
+
"module": "dist/chunks/de.7M7UFQB7.js"
|
|
1917
1854
|
}
|
|
1918
|
-
}
|
|
1855
|
+
}
|
|
1856
|
+
]
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"kind": "javascript-module",
|
|
1860
|
+
"path": "dist/chunks/el.XSGTYDZR.js",
|
|
1861
|
+
"declarations": [
|
|
1919
1862
|
{
|
|
1920
|
-
"kind": "
|
|
1921
|
-
"name": "
|
|
1922
|
-
"
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
},
|
|
1863
|
+
"kind": "variable",
|
|
1864
|
+
"name": "o",
|
|
1865
|
+
"default": "e"
|
|
1866
|
+
}
|
|
1867
|
+
],
|
|
1868
|
+
"exports": [
|
|
1927
1869
|
{
|
|
1928
1870
|
"kind": "js",
|
|
1929
|
-
"name": "
|
|
1871
|
+
"name": "templates",
|
|
1930
1872
|
"declaration": {
|
|
1931
|
-
"name": "
|
|
1932
|
-
"module": "
|
|
1873
|
+
"name": "o",
|
|
1874
|
+
"module": "dist/chunks/el.XSGTYDZR.js"
|
|
1933
1875
|
}
|
|
1934
1876
|
}
|
|
1935
1877
|
]
|
|
1936
1878
|
},
|
|
1937
1879
|
{
|
|
1938
1880
|
"kind": "javascript-module",
|
|
1939
|
-
"path": "
|
|
1881
|
+
"path": "dist/chunks/en-GB.VO4GDE3X.js",
|
|
1940
1882
|
"declarations": [
|
|
1941
1883
|
{
|
|
1942
1884
|
"kind": "variable",
|
|
1943
|
-
"name": "
|
|
1944
|
-
"
|
|
1945
|
-
"text": "string"
|
|
1946
|
-
},
|
|
1947
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI0NTg1OCIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJERSIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50Ijo2MDAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6e30sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
1948
|
-
},
|
|
1949
|
-
{
|
|
1950
|
-
"kind": "variable",
|
|
1951
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1952
|
-
"type": {
|
|
1953
|
-
"text": "object"
|
|
1954
|
-
},
|
|
1955
|
-
"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: {}, }"
|
|
1885
|
+
"name": "o",
|
|
1886
|
+
"default": "t"
|
|
1956
1887
|
}
|
|
1957
1888
|
],
|
|
1958
1889
|
"exports": [
|
|
1959
1890
|
{
|
|
1960
1891
|
"kind": "js",
|
|
1961
|
-
"name": "
|
|
1892
|
+
"name": "templates",
|
|
1962
1893
|
"declaration": {
|
|
1963
|
-
"name": "
|
|
1964
|
-
"module": "
|
|
1894
|
+
"name": "o",
|
|
1895
|
+
"module": "dist/chunks/en-GB.VO4GDE3X.js"
|
|
1965
1896
|
}
|
|
1966
|
-
}
|
|
1897
|
+
}
|
|
1898
|
+
]
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
"kind": "javascript-module",
|
|
1902
|
+
"path": "dist/chunks/en.MNFLVOE3.js",
|
|
1903
|
+
"declarations": [
|
|
1904
|
+
{
|
|
1905
|
+
"kind": "variable",
|
|
1906
|
+
"name": "o",
|
|
1907
|
+
"default": "t"
|
|
1908
|
+
}
|
|
1909
|
+
],
|
|
1910
|
+
"exports": [
|
|
1967
1911
|
{
|
|
1968
1912
|
"kind": "js",
|
|
1969
|
-
"name": "
|
|
1913
|
+
"name": "templates",
|
|
1970
1914
|
"declaration": {
|
|
1971
|
-
"name": "
|
|
1972
|
-
"module": "
|
|
1915
|
+
"name": "o",
|
|
1916
|
+
"module": "dist/chunks/en.MNFLVOE3.js"
|
|
1973
1917
|
}
|
|
1974
1918
|
}
|
|
1975
1919
|
]
|
|
1976
1920
|
},
|
|
1977
1921
|
{
|
|
1978
1922
|
"kind": "javascript-module",
|
|
1979
|
-
"path": "
|
|
1923
|
+
"path": "dist/chunks/es-AR.TBWVUZEF.js",
|
|
1980
1924
|
"declarations": [
|
|
1981
1925
|
{
|
|
1982
|
-
"kind": "
|
|
1983
|
-
"name": "
|
|
1984
|
-
"
|
|
1985
|
-
{
|
|
1986
|
-
"name": "page",
|
|
1987
|
-
"type": {
|
|
1988
|
-
"text": "Page"
|
|
1989
|
-
}
|
|
1990
|
-
},
|
|
1991
|
-
{
|
|
1992
|
-
"name": "config",
|
|
1993
|
-
"type": {
|
|
1994
|
-
"text": "unknown"
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
]
|
|
1998
|
-
},
|
|
1999
|
-
{
|
|
2000
|
-
"kind": "function",
|
|
2001
|
-
"name": "mockConfigurationCallSTG",
|
|
2002
|
-
"parameters": [
|
|
2003
|
-
{
|
|
2004
|
-
"name": "page",
|
|
2005
|
-
"type": {
|
|
2006
|
-
"text": "Page"
|
|
2007
|
-
}
|
|
2008
|
-
},
|
|
2009
|
-
{
|
|
2010
|
-
"name": "config",
|
|
2011
|
-
"type": {
|
|
2012
|
-
"text": "unknown"
|
|
2013
|
-
}
|
|
2014
|
-
}
|
|
2015
|
-
]
|
|
1926
|
+
"kind": "variable",
|
|
1927
|
+
"name": "i",
|
|
1928
|
+
"default": "e"
|
|
2016
1929
|
}
|
|
2017
1930
|
],
|
|
2018
1931
|
"exports": [
|
|
2019
1932
|
{
|
|
2020
1933
|
"kind": "js",
|
|
2021
|
-
"name": "
|
|
1934
|
+
"name": "templates",
|
|
2022
1935
|
"declaration": {
|
|
2023
|
-
"name": "
|
|
2024
|
-
"module": "
|
|
1936
|
+
"name": "i",
|
|
1937
|
+
"module": "dist/chunks/es-AR.TBWVUZEF.js"
|
|
2025
1938
|
}
|
|
2026
|
-
}
|
|
1939
|
+
}
|
|
1940
|
+
]
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"kind": "javascript-module",
|
|
1944
|
+
"path": "dist/chunks/es-MX.6EMWUABR.js",
|
|
1945
|
+
"declarations": [
|
|
1946
|
+
{
|
|
1947
|
+
"kind": "variable",
|
|
1948
|
+
"name": "i",
|
|
1949
|
+
"default": "e"
|
|
1950
|
+
}
|
|
1951
|
+
],
|
|
1952
|
+
"exports": [
|
|
2027
1953
|
{
|
|
2028
1954
|
"kind": "js",
|
|
2029
|
-
"name": "
|
|
1955
|
+
"name": "templates",
|
|
2030
1956
|
"declaration": {
|
|
2031
|
-
"name": "
|
|
2032
|
-
"module": "
|
|
1957
|
+
"name": "i",
|
|
1958
|
+
"module": "dist/chunks/es-MX.6EMWUABR.js"
|
|
2033
1959
|
}
|
|
2034
1960
|
}
|
|
2035
1961
|
]
|
|
2036
1962
|
},
|
|
2037
1963
|
{
|
|
2038
1964
|
"kind": "javascript-module",
|
|
2039
|
-
"path": "
|
|
1965
|
+
"path": "dist/chunks/es.XZLDFHYI.js",
|
|
2040
1966
|
"declarations": [
|
|
2041
|
-
{
|
|
2042
|
-
"kind": "variable",
|
|
2043
|
-
"name": "
|
|
2044
|
-
"
|
|
2045
|
-
"text": "string"
|
|
2046
|
-
},
|
|
2047
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiIwODkzNTcwMTgyNTM2NyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwidmF1bHRPbkFncmVlbWVudCI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmMzA4ODVmMC04MjljLTRmMGEtYjIyMi1iN2Y1OWQzNzZlYWYiLCJhcGlWZXJzaW9uIjoiMi40IiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9LCJzZGtDb3JlIjpmYWxzZX19'"
|
|
2048
|
-
},
|
|
2049
|
-
{
|
|
2050
|
-
"kind": "variable",
|
|
2051
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2052
|
-
"type": {
|
|
2053
|
-
"text": "object"
|
|
2054
|
-
},
|
|
2055
|
-
"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: {}, }"
|
|
2056
|
-
},
|
|
2057
|
-
{
|
|
2058
|
-
"kind": "function",
|
|
2059
|
-
"name": "mockExchangeCall",
|
|
2060
|
-
"parameters": [
|
|
2061
|
-
{
|
|
2062
|
-
"name": "page",
|
|
2063
|
-
"type": {
|
|
2064
|
-
"text": "Page"
|
|
2065
|
-
}
|
|
2066
|
-
}
|
|
2067
|
-
]
|
|
2068
|
-
},
|
|
2069
|
-
{
|
|
2070
|
-
"kind": "function",
|
|
2071
|
-
"name": "mockPaymentsCall",
|
|
2072
|
-
"parameters": [
|
|
2073
|
-
{
|
|
2074
|
-
"name": "page",
|
|
2075
|
-
"type": {
|
|
2076
|
-
"text": "Page"
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
]
|
|
1967
|
+
{
|
|
1968
|
+
"kind": "variable",
|
|
1969
|
+
"name": "i",
|
|
1970
|
+
"default": "e"
|
|
2080
1971
|
}
|
|
2081
1972
|
],
|
|
2082
1973
|
"exports": [
|
|
2083
1974
|
{
|
|
2084
1975
|
"kind": "js",
|
|
2085
|
-
"name": "
|
|
2086
|
-
"declaration": {
|
|
2087
|
-
"name": "settings",
|
|
2088
|
-
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
2089
|
-
}
|
|
2090
|
-
},
|
|
2091
|
-
{
|
|
2092
|
-
"kind": "js",
|
|
2093
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
1976
|
+
"name": "templates",
|
|
2094
1977
|
"declaration": {
|
|
2095
|
-
"name": "
|
|
2096
|
-
"module": "
|
|
1978
|
+
"name": "i",
|
|
1979
|
+
"module": "dist/chunks/es.XZLDFHYI.js"
|
|
2097
1980
|
}
|
|
2098
|
-
}
|
|
1981
|
+
}
|
|
1982
|
+
]
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
"kind": "javascript-module",
|
|
1986
|
+
"path": "dist/chunks/et-EE.JBSFMKZ2.js",
|
|
1987
|
+
"declarations": [
|
|
2099
1988
|
{
|
|
2100
|
-
"kind": "
|
|
2101
|
-
"name": "
|
|
2102
|
-
"
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
},
|
|
1989
|
+
"kind": "variable",
|
|
1990
|
+
"name": "r",
|
|
1991
|
+
"default": "e"
|
|
1992
|
+
}
|
|
1993
|
+
],
|
|
1994
|
+
"exports": [
|
|
2107
1995
|
{
|
|
2108
1996
|
"kind": "js",
|
|
2109
|
-
"name": "
|
|
1997
|
+
"name": "templates",
|
|
2110
1998
|
"declaration": {
|
|
2111
|
-
"name": "
|
|
2112
|
-
"module": "
|
|
1999
|
+
"name": "r",
|
|
2000
|
+
"module": "dist/chunks/et-EE.JBSFMKZ2.js"
|
|
2113
2001
|
}
|
|
2114
2002
|
}
|
|
2115
2003
|
]
|
|
2116
2004
|
},
|
|
2117
2005
|
{
|
|
2118
2006
|
"kind": "javascript-module",
|
|
2119
|
-
"path": "
|
|
2120
|
-
"declarations": [],
|
|
2121
|
-
"exports": []
|
|
2122
|
-
},
|
|
2123
|
-
{
|
|
2124
|
-
"kind": "javascript-module",
|
|
2125
|
-
"path": "e2e/tests/card-basic.spec.ts",
|
|
2126
|
-
"declarations": [],
|
|
2127
|
-
"exports": []
|
|
2128
|
-
},
|
|
2129
|
-
{
|
|
2130
|
-
"kind": "javascript-module",
|
|
2131
|
-
"path": "e2e/tests/card-form-billing-address.spec.ts",
|
|
2132
|
-
"declarations": [],
|
|
2133
|
-
"exports": []
|
|
2134
|
-
},
|
|
2135
|
-
{
|
|
2136
|
-
"kind": "javascript-module",
|
|
2137
|
-
"path": "e2e/tests/disabled-payments.spec.ts",
|
|
2007
|
+
"path": "dist/chunks/fi-FI.I75VK2ID.js",
|
|
2138
2008
|
"declarations": [
|
|
2139
2009
|
{
|
|
2140
2010
|
"kind": "variable",
|
|
2141
|
-
"name": "
|
|
2142
|
-
"
|
|
2143
|
-
"text": "string"
|
|
2144
|
-
},
|
|
2145
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsiZGlzYWJsZWRQYXltZW50cyI6ZmFsc2UsInNka0NvcmUiOmZhbHNlfX0='"
|
|
2011
|
+
"name": "n",
|
|
2012
|
+
"default": "a"
|
|
2146
2013
|
}
|
|
2147
2014
|
],
|
|
2148
2015
|
"exports": [
|
|
2149
2016
|
{
|
|
2150
2017
|
"kind": "js",
|
|
2151
|
-
"name": "
|
|
2018
|
+
"name": "templates",
|
|
2152
2019
|
"declaration": {
|
|
2153
|
-
"name": "
|
|
2154
|
-
"module": "
|
|
2020
|
+
"name": "n",
|
|
2021
|
+
"module": "dist/chunks/fi-FI.I75VK2ID.js"
|
|
2155
2022
|
}
|
|
2156
2023
|
}
|
|
2157
2024
|
]
|
|
2158
2025
|
},
|
|
2159
2026
|
{
|
|
2160
2027
|
"kind": "javascript-module",
|
|
2161
|
-
"path": "
|
|
2162
|
-
"declarations": [],
|
|
2163
|
-
"exports": []
|
|
2164
|
-
},
|
|
2165
|
-
{
|
|
2166
|
-
"kind": "javascript-module",
|
|
2167
|
-
"path": "e2e/tests/vaulted-paypal.spec.ts",
|
|
2168
|
-
"declarations": [],
|
|
2169
|
-
"exports": []
|
|
2170
|
-
},
|
|
2171
|
-
{
|
|
2172
|
-
"kind": "javascript-module",
|
|
2173
|
-
"path": "dist/chunks/ar.KRXB3WQO.js",
|
|
2028
|
+
"path": "dist/chunks/fr.JBNP6RXT.js",
|
|
2174
2029
|
"declarations": [
|
|
2175
2030
|
{
|
|
2176
2031
|
"kind": "variable",
|
|
2177
|
-
"name": "
|
|
2032
|
+
"name": "i",
|
|
2178
2033
|
"default": "e"
|
|
2179
2034
|
}
|
|
2180
2035
|
],
|
|
@@ -2183,15 +2038,15 @@
|
|
|
2183
2038
|
"kind": "js",
|
|
2184
2039
|
"name": "templates",
|
|
2185
2040
|
"declaration": {
|
|
2186
|
-
"name": "
|
|
2187
|
-
"module": "dist/chunks/
|
|
2041
|
+
"name": "i",
|
|
2042
|
+
"module": "dist/chunks/fr.JBNP6RXT.js"
|
|
2188
2043
|
}
|
|
2189
2044
|
}
|
|
2190
2045
|
]
|
|
2191
2046
|
},
|
|
2192
2047
|
{
|
|
2193
2048
|
"kind": "javascript-module",
|
|
2194
|
-
"path": "dist/chunks/
|
|
2049
|
+
"path": "dist/chunks/he.PW253QAL.js",
|
|
2195
2050
|
"declarations": [
|
|
2196
2051
|
{
|
|
2197
2052
|
"kind": "variable",
|
|
@@ -2205,18 +2060,18 @@
|
|
|
2205
2060
|
"name": "templates",
|
|
2206
2061
|
"declaration": {
|
|
2207
2062
|
"name": "o",
|
|
2208
|
-
"module": "dist/chunks/
|
|
2063
|
+
"module": "dist/chunks/he.PW253QAL.js"
|
|
2209
2064
|
}
|
|
2210
2065
|
}
|
|
2211
2066
|
]
|
|
2212
2067
|
},
|
|
2213
2068
|
{
|
|
2214
2069
|
"kind": "javascript-module",
|
|
2215
|
-
"path": "dist/chunks/
|
|
2070
|
+
"path": "dist/chunks/hr.LM4RITYJ.js",
|
|
2216
2071
|
"declarations": [
|
|
2217
2072
|
{
|
|
2218
2073
|
"kind": "variable",
|
|
2219
|
-
"name": "
|
|
2074
|
+
"name": "t",
|
|
2220
2075
|
"default": "e"
|
|
2221
2076
|
}
|
|
2222
2077
|
],
|
|
@@ -2225,122 +2080,61 @@
|
|
|
2225
2080
|
"kind": "js",
|
|
2226
2081
|
"name": "templates",
|
|
2227
2082
|
"declaration": {
|
|
2228
|
-
"name": "
|
|
2229
|
-
"module": "dist/chunks/
|
|
2083
|
+
"name": "t",
|
|
2084
|
+
"module": "dist/chunks/hr.LM4RITYJ.js"
|
|
2230
2085
|
}
|
|
2231
2086
|
}
|
|
2232
2087
|
]
|
|
2233
2088
|
},
|
|
2234
2089
|
{
|
|
2235
2090
|
"kind": "javascript-module",
|
|
2236
|
-
"path": "dist/chunks/
|
|
2091
|
+
"path": "dist/chunks/hu.JGCKQA6J.js",
|
|
2237
2092
|
"declarations": [
|
|
2238
|
-
{
|
|
2239
|
-
"kind": "function",
|
|
2240
|
-
"name": "k",
|
|
2241
|
-
"parameters": [
|
|
2242
|
-
{
|
|
2243
|
-
"name": "c"
|
|
2244
|
-
}
|
|
2245
|
-
]
|
|
2246
|
-
},
|
|
2247
2093
|
{
|
|
2248
2094
|
"kind": "variable",
|
|
2249
|
-
"name": "
|
|
2250
|
-
"default": "
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
"kind": "function",
|
|
2254
|
-
"name": "l",
|
|
2255
|
-
"parameters": [
|
|
2256
|
-
{
|
|
2257
|
-
"name": "c"
|
|
2258
|
-
},
|
|
2259
|
-
{
|
|
2260
|
-
"name": "a"
|
|
2261
|
-
},
|
|
2262
|
-
{
|
|
2263
|
-
"name": "b"
|
|
2264
|
-
},
|
|
2265
|
-
{
|
|
2266
|
-
"name": "e"
|
|
2267
|
-
}
|
|
2268
|
-
]
|
|
2269
|
-
},
|
|
2270
|
-
{
|
|
2271
|
-
"kind": "function",
|
|
2272
|
-
"name": "m",
|
|
2273
|
-
"parameters": [
|
|
2274
|
-
{
|
|
2275
|
-
"name": "c"
|
|
2276
|
-
},
|
|
2277
|
-
{
|
|
2278
|
-
"name": "a"
|
|
2279
|
-
},
|
|
2280
|
-
{
|
|
2281
|
-
"name": "b"
|
|
2282
|
-
}
|
|
2283
|
-
]
|
|
2095
|
+
"name": "s",
|
|
2096
|
+
"default": "e"
|
|
2284
2097
|
}
|
|
2285
2098
|
],
|
|
2286
2099
|
"exports": [
|
|
2287
2100
|
{
|
|
2288
2101
|
"kind": "js",
|
|
2289
|
-
"name": "
|
|
2290
|
-
"declaration": {
|
|
2291
|
-
"name": "k",
|
|
2292
|
-
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
2293
|
-
}
|
|
2294
|
-
},
|
|
2295
|
-
{
|
|
2296
|
-
"kind": "js",
|
|
2297
|
-
"name": "b",
|
|
2298
|
-
"declaration": {
|
|
2299
|
-
"name": "l",
|
|
2300
|
-
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
2301
|
-
}
|
|
2302
|
-
},
|
|
2303
|
-
{
|
|
2304
|
-
"kind": "js",
|
|
2305
|
-
"name": "c",
|
|
2102
|
+
"name": "templates",
|
|
2306
2103
|
"declaration": {
|
|
2307
|
-
"name": "
|
|
2308
|
-
"module": "dist/chunks/
|
|
2104
|
+
"name": "s",
|
|
2105
|
+
"module": "dist/chunks/hu.JGCKQA6J.js"
|
|
2309
2106
|
}
|
|
2310
2107
|
}
|
|
2311
2108
|
]
|
|
2312
2109
|
},
|
|
2313
2110
|
{
|
|
2314
2111
|
"kind": "javascript-module",
|
|
2315
|
-
"path": "dist/chunks/
|
|
2112
|
+
"path": "dist/chunks/id.VBXULDDY.js",
|
|
2316
2113
|
"declarations": [
|
|
2317
2114
|
{
|
|
2318
2115
|
"kind": "variable",
|
|
2319
|
-
"name": "
|
|
2320
|
-
"
|
|
2321
|
-
"text": "object"
|
|
2322
|
-
},
|
|
2323
|
-
"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\"}"
|
|
2116
|
+
"name": "r",
|
|
2117
|
+
"default": "a"
|
|
2324
2118
|
}
|
|
2325
2119
|
],
|
|
2326
2120
|
"exports": [
|
|
2327
2121
|
{
|
|
2328
2122
|
"kind": "js",
|
|
2329
|
-
"name": "
|
|
2123
|
+
"name": "templates",
|
|
2330
2124
|
"declaration": {
|
|
2331
|
-
"name": "
|
|
2332
|
-
"module": "dist/chunks/
|
|
2125
|
+
"name": "r",
|
|
2126
|
+
"module": "dist/chunks/id.VBXULDDY.js"
|
|
2333
2127
|
}
|
|
2334
2128
|
}
|
|
2335
2129
|
]
|
|
2336
2130
|
},
|
|
2337
2131
|
{
|
|
2338
2132
|
"kind": "javascript-module",
|
|
2339
|
-
"path": "dist/chunks/
|
|
2133
|
+
"path": "dist/chunks/it.7Q6BFLDK.js",
|
|
2340
2134
|
"declarations": [
|
|
2341
2135
|
{
|
|
2342
2136
|
"kind": "variable",
|
|
2343
|
-
"name": "
|
|
2137
|
+
"name": "r",
|
|
2344
2138
|
"default": "e"
|
|
2345
2139
|
}
|
|
2346
2140
|
],
|
|
@@ -2349,19 +2143,19 @@
|
|
|
2349
2143
|
"kind": "js",
|
|
2350
2144
|
"name": "templates",
|
|
2351
2145
|
"declaration": {
|
|
2352
|
-
"name": "
|
|
2353
|
-
"module": "dist/chunks/
|
|
2146
|
+
"name": "r",
|
|
2147
|
+
"module": "dist/chunks/it.7Q6BFLDK.js"
|
|
2354
2148
|
}
|
|
2355
2149
|
}
|
|
2356
2150
|
]
|
|
2357
2151
|
},
|
|
2358
2152
|
{
|
|
2359
2153
|
"kind": "javascript-module",
|
|
2360
|
-
"path": "dist/chunks/
|
|
2154
|
+
"path": "dist/chunks/ja.QOC76SSC.js",
|
|
2361
2155
|
"declarations": [
|
|
2362
2156
|
{
|
|
2363
2157
|
"kind": "variable",
|
|
2364
|
-
"name": "
|
|
2158
|
+
"name": "o",
|
|
2365
2159
|
"default": "e"
|
|
2366
2160
|
}
|
|
2367
2161
|
],
|
|
@@ -2370,19 +2164,19 @@
|
|
|
2370
2164
|
"kind": "js",
|
|
2371
2165
|
"name": "templates",
|
|
2372
2166
|
"declaration": {
|
|
2373
|
-
"name": "
|
|
2374
|
-
"module": "dist/chunks/
|
|
2167
|
+
"name": "o",
|
|
2168
|
+
"module": "dist/chunks/ja.QOC76SSC.js"
|
|
2375
2169
|
}
|
|
2376
2170
|
}
|
|
2377
2171
|
]
|
|
2378
2172
|
},
|
|
2379
2173
|
{
|
|
2380
2174
|
"kind": "javascript-module",
|
|
2381
|
-
"path": "dist/chunks/
|
|
2175
|
+
"path": "dist/chunks/ko.BANZIFNH.js",
|
|
2382
2176
|
"declarations": [
|
|
2383
2177
|
{
|
|
2384
2178
|
"kind": "variable",
|
|
2385
|
-
"name": "
|
|
2179
|
+
"name": "o",
|
|
2386
2180
|
"default": "e"
|
|
2387
2181
|
}
|
|
2388
2182
|
],
|
|
@@ -2391,20 +2185,20 @@
|
|
|
2391
2185
|
"kind": "js",
|
|
2392
2186
|
"name": "templates",
|
|
2393
2187
|
"declaration": {
|
|
2394
|
-
"name": "
|
|
2395
|
-
"module": "dist/chunks/
|
|
2188
|
+
"name": "o",
|
|
2189
|
+
"module": "dist/chunks/ko.BANZIFNH.js"
|
|
2396
2190
|
}
|
|
2397
2191
|
}
|
|
2398
2192
|
]
|
|
2399
2193
|
},
|
|
2400
2194
|
{
|
|
2401
2195
|
"kind": "javascript-module",
|
|
2402
|
-
"path": "dist/chunks/
|
|
2196
|
+
"path": "dist/chunks/lt-LT.Q2SRJOKH.js",
|
|
2403
2197
|
"declarations": [
|
|
2404
2198
|
{
|
|
2405
2199
|
"kind": "variable",
|
|
2406
|
-
"name": "
|
|
2407
|
-
"default": "
|
|
2200
|
+
"name": "t",
|
|
2201
|
+
"default": "a"
|
|
2408
2202
|
}
|
|
2409
2203
|
],
|
|
2410
2204
|
"exports": [
|
|
@@ -2412,20 +2206,20 @@
|
|
|
2412
2206
|
"kind": "js",
|
|
2413
2207
|
"name": "templates",
|
|
2414
2208
|
"declaration": {
|
|
2415
|
-
"name": "
|
|
2416
|
-
"module": "dist/chunks/
|
|
2209
|
+
"name": "t",
|
|
2210
|
+
"module": "dist/chunks/lt-LT.Q2SRJOKH.js"
|
|
2417
2211
|
}
|
|
2418
2212
|
}
|
|
2419
2213
|
]
|
|
2420
2214
|
},
|
|
2421
2215
|
{
|
|
2422
2216
|
"kind": "javascript-module",
|
|
2423
|
-
"path": "dist/chunks/
|
|
2217
|
+
"path": "dist/chunks/lt.XMNFEN5T.js",
|
|
2424
2218
|
"declarations": [
|
|
2425
2219
|
{
|
|
2426
2220
|
"kind": "variable",
|
|
2427
2221
|
"name": "o",
|
|
2428
|
-
"default": "
|
|
2222
|
+
"default": "a"
|
|
2429
2223
|
}
|
|
2430
2224
|
],
|
|
2431
2225
|
"exports": [
|
|
@@ -2434,19 +2228,19 @@
|
|
|
2434
2228
|
"name": "templates",
|
|
2435
2229
|
"declaration": {
|
|
2436
2230
|
"name": "o",
|
|
2437
|
-
"module": "dist/chunks/
|
|
2231
|
+
"module": "dist/chunks/lt.XMNFEN5T.js"
|
|
2438
2232
|
}
|
|
2439
2233
|
}
|
|
2440
2234
|
]
|
|
2441
2235
|
},
|
|
2442
2236
|
{
|
|
2443
2237
|
"kind": "javascript-module",
|
|
2444
|
-
"path": "dist/chunks/
|
|
2238
|
+
"path": "dist/chunks/lv-LV.3AJDTMU5.js",
|
|
2445
2239
|
"declarations": [
|
|
2446
2240
|
{
|
|
2447
2241
|
"kind": "variable",
|
|
2448
|
-
"name": "
|
|
2449
|
-
"default": "
|
|
2242
|
+
"name": "t",
|
|
2243
|
+
"default": "a"
|
|
2450
2244
|
}
|
|
2451
2245
|
],
|
|
2452
2246
|
"exports": [
|
|
@@ -2454,20 +2248,20 @@
|
|
|
2454
2248
|
"kind": "js",
|
|
2455
2249
|
"name": "templates",
|
|
2456
2250
|
"declaration": {
|
|
2457
|
-
"name": "
|
|
2458
|
-
"module": "dist/chunks/
|
|
2251
|
+
"name": "t",
|
|
2252
|
+
"module": "dist/chunks/lv-LV.3AJDTMU5.js"
|
|
2459
2253
|
}
|
|
2460
2254
|
}
|
|
2461
2255
|
]
|
|
2462
2256
|
},
|
|
2463
2257
|
{
|
|
2464
2258
|
"kind": "javascript-module",
|
|
2465
|
-
"path": "dist/chunks/
|
|
2259
|
+
"path": "dist/chunks/lv.TFPDXNEV.js",
|
|
2466
2260
|
"declarations": [
|
|
2467
2261
|
{
|
|
2468
2262
|
"kind": "variable",
|
|
2469
|
-
"name": "
|
|
2470
|
-
"default": "
|
|
2263
|
+
"name": "t",
|
|
2264
|
+
"default": "a"
|
|
2471
2265
|
}
|
|
2472
2266
|
],
|
|
2473
2267
|
"exports": [
|
|
@@ -2475,20 +2269,20 @@
|
|
|
2475
2269
|
"kind": "js",
|
|
2476
2270
|
"name": "templates",
|
|
2477
2271
|
"declaration": {
|
|
2478
|
-
"name": "
|
|
2479
|
-
"module": "dist/chunks/
|
|
2272
|
+
"name": "t",
|
|
2273
|
+
"module": "dist/chunks/lv.TFPDXNEV.js"
|
|
2480
2274
|
}
|
|
2481
2275
|
}
|
|
2482
2276
|
]
|
|
2483
2277
|
},
|
|
2484
2278
|
{
|
|
2485
2279
|
"kind": "javascript-module",
|
|
2486
|
-
"path": "dist/chunks/
|
|
2280
|
+
"path": "dist/chunks/ms.FPTX4NM4.js",
|
|
2487
2281
|
"declarations": [
|
|
2488
2282
|
{
|
|
2489
2283
|
"kind": "variable",
|
|
2490
2284
|
"name": "i",
|
|
2491
|
-
"default": "
|
|
2285
|
+
"default": "a"
|
|
2492
2286
|
}
|
|
2493
2287
|
],
|
|
2494
2288
|
"exports": [
|
|
@@ -2497,18 +2291,18 @@
|
|
|
2497
2291
|
"name": "templates",
|
|
2498
2292
|
"declaration": {
|
|
2499
2293
|
"name": "i",
|
|
2500
|
-
"module": "dist/chunks/
|
|
2294
|
+
"module": "dist/chunks/ms.FPTX4NM4.js"
|
|
2501
2295
|
}
|
|
2502
2296
|
}
|
|
2503
2297
|
]
|
|
2504
2298
|
},
|
|
2505
2299
|
{
|
|
2506
2300
|
"kind": "javascript-module",
|
|
2507
|
-
"path": "dist/chunks/
|
|
2301
|
+
"path": "dist/chunks/nb.CAFSKRQ2.js",
|
|
2508
2302
|
"declarations": [
|
|
2509
2303
|
{
|
|
2510
2304
|
"kind": "variable",
|
|
2511
|
-
"name": "
|
|
2305
|
+
"name": "a",
|
|
2512
2306
|
"default": "e"
|
|
2513
2307
|
}
|
|
2514
2308
|
],
|
|
@@ -2517,19 +2311,19 @@
|
|
|
2517
2311
|
"kind": "js",
|
|
2518
2312
|
"name": "templates",
|
|
2519
2313
|
"declaration": {
|
|
2520
|
-
"name": "
|
|
2521
|
-
"module": "dist/chunks/
|
|
2314
|
+
"name": "a",
|
|
2315
|
+
"module": "dist/chunks/nb.CAFSKRQ2.js"
|
|
2522
2316
|
}
|
|
2523
2317
|
}
|
|
2524
2318
|
]
|
|
2525
2319
|
},
|
|
2526
2320
|
{
|
|
2527
2321
|
"kind": "javascript-module",
|
|
2528
|
-
"path": "dist/chunks/
|
|
2322
|
+
"path": "dist/chunks/nl.7BPSDYTC.js",
|
|
2529
2323
|
"declarations": [
|
|
2530
2324
|
{
|
|
2531
2325
|
"kind": "variable",
|
|
2532
|
-
"name": "
|
|
2326
|
+
"name": "n",
|
|
2533
2327
|
"default": "e"
|
|
2534
2328
|
}
|
|
2535
2329
|
],
|
|
@@ -2538,20 +2332,20 @@
|
|
|
2538
2332
|
"kind": "js",
|
|
2539
2333
|
"name": "templates",
|
|
2540
2334
|
"declaration": {
|
|
2541
|
-
"name": "
|
|
2542
|
-
"module": "dist/chunks/
|
|
2335
|
+
"name": "n",
|
|
2336
|
+
"module": "dist/chunks/nl.7BPSDYTC.js"
|
|
2543
2337
|
}
|
|
2544
2338
|
}
|
|
2545
2339
|
]
|
|
2546
2340
|
},
|
|
2547
2341
|
{
|
|
2548
2342
|
"kind": "javascript-module",
|
|
2549
|
-
"path": "dist/chunks/
|
|
2343
|
+
"path": "dist/chunks/nl_NL.6ZVCFPVW.js",
|
|
2550
2344
|
"declarations": [
|
|
2551
2345
|
{
|
|
2552
2346
|
"kind": "variable",
|
|
2553
2347
|
"name": "n",
|
|
2554
|
-
"default": "
|
|
2348
|
+
"default": "e"
|
|
2555
2349
|
}
|
|
2556
2350
|
],
|
|
2557
2351
|
"exports": [
|
|
@@ -2560,19 +2354,19 @@
|
|
|
2560
2354
|
"name": "templates",
|
|
2561
2355
|
"declaration": {
|
|
2562
2356
|
"name": "n",
|
|
2563
|
-
"module": "dist/chunks/
|
|
2357
|
+
"module": "dist/chunks/nl_NL.6ZVCFPVW.js"
|
|
2564
2358
|
}
|
|
2565
2359
|
}
|
|
2566
2360
|
]
|
|
2567
2361
|
},
|
|
2568
2362
|
{
|
|
2569
2363
|
"kind": "javascript-module",
|
|
2570
|
-
"path": "dist/chunks/
|
|
2364
|
+
"path": "dist/chunks/pl.RF34QM23.js",
|
|
2571
2365
|
"declarations": [
|
|
2572
2366
|
{
|
|
2573
2367
|
"kind": "variable",
|
|
2574
2368
|
"name": "i",
|
|
2575
|
-
"default": "
|
|
2369
|
+
"default": "a"
|
|
2576
2370
|
}
|
|
2577
2371
|
],
|
|
2578
2372
|
"exports": [
|
|
@@ -2581,18 +2375,18 @@
|
|
|
2581
2375
|
"name": "templates",
|
|
2582
2376
|
"declaration": {
|
|
2583
2377
|
"name": "i",
|
|
2584
|
-
"module": "dist/chunks/
|
|
2378
|
+
"module": "dist/chunks/pl.RF34QM23.js"
|
|
2585
2379
|
}
|
|
2586
2380
|
}
|
|
2587
2381
|
]
|
|
2588
2382
|
},
|
|
2589
2383
|
{
|
|
2590
2384
|
"kind": "javascript-module",
|
|
2591
|
-
"path": "dist/chunks/
|
|
2385
|
+
"path": "dist/chunks/pt-BR.AKDHLRUA.js",
|
|
2592
2386
|
"declarations": [
|
|
2593
2387
|
{
|
|
2594
2388
|
"kind": "variable",
|
|
2595
|
-
"name": "
|
|
2389
|
+
"name": "t",
|
|
2596
2390
|
"default": "e"
|
|
2597
2391
|
}
|
|
2598
2392
|
],
|
|
@@ -2601,15 +2395,15 @@
|
|
|
2601
2395
|
"kind": "js",
|
|
2602
2396
|
"name": "templates",
|
|
2603
2397
|
"declaration": {
|
|
2604
|
-
"name": "
|
|
2605
|
-
"module": "dist/chunks/
|
|
2398
|
+
"name": "t",
|
|
2399
|
+
"module": "dist/chunks/pt-BR.AKDHLRUA.js"
|
|
2606
2400
|
}
|
|
2607
2401
|
}
|
|
2608
2402
|
]
|
|
2609
2403
|
},
|
|
2610
2404
|
{
|
|
2611
2405
|
"kind": "javascript-module",
|
|
2612
|
-
"path": "dist/chunks/
|
|
2406
|
+
"path": "dist/chunks/pt.VBALOWHZ.js",
|
|
2613
2407
|
"declarations": [
|
|
2614
2408
|
{
|
|
2615
2409
|
"kind": "variable",
|
|
@@ -2623,18 +2417,18 @@
|
|
|
2623
2417
|
"name": "templates",
|
|
2624
2418
|
"declaration": {
|
|
2625
2419
|
"name": "t",
|
|
2626
|
-
"module": "dist/chunks/
|
|
2420
|
+
"module": "dist/chunks/pt.VBALOWHZ.js"
|
|
2627
2421
|
}
|
|
2628
2422
|
}
|
|
2629
2423
|
]
|
|
2630
2424
|
},
|
|
2631
2425
|
{
|
|
2632
2426
|
"kind": "javascript-module",
|
|
2633
|
-
"path": "dist/chunks/
|
|
2427
|
+
"path": "dist/chunks/ro.WN7VCF27.js",
|
|
2634
2428
|
"declarations": [
|
|
2635
2429
|
{
|
|
2636
2430
|
"kind": "variable",
|
|
2637
|
-
"name": "
|
|
2431
|
+
"name": "i",
|
|
2638
2432
|
"default": "e"
|
|
2639
2433
|
}
|
|
2640
2434
|
],
|
|
@@ -2643,20 +2437,20 @@
|
|
|
2643
2437
|
"kind": "js",
|
|
2644
2438
|
"name": "templates",
|
|
2645
2439
|
"declaration": {
|
|
2646
|
-
"name": "
|
|
2647
|
-
"module": "dist/chunks/
|
|
2440
|
+
"name": "i",
|
|
2441
|
+
"module": "dist/chunks/ro.WN7VCF27.js"
|
|
2648
2442
|
}
|
|
2649
2443
|
}
|
|
2650
2444
|
]
|
|
2651
2445
|
},
|
|
2652
2446
|
{
|
|
2653
2447
|
"kind": "javascript-module",
|
|
2654
|
-
"path": "dist/chunks/
|
|
2448
|
+
"path": "dist/chunks/ru.ICXGVGRR.js",
|
|
2655
2449
|
"declarations": [
|
|
2656
2450
|
{
|
|
2657
2451
|
"kind": "variable",
|
|
2658
|
-
"name": "
|
|
2659
|
-
"default": "
|
|
2452
|
+
"name": "o",
|
|
2453
|
+
"default": "e"
|
|
2660
2454
|
}
|
|
2661
2455
|
],
|
|
2662
2456
|
"exports": [
|
|
@@ -2664,15 +2458,15 @@
|
|
|
2664
2458
|
"kind": "js",
|
|
2665
2459
|
"name": "templates",
|
|
2666
2460
|
"declaration": {
|
|
2667
|
-
"name": "
|
|
2668
|
-
"module": "dist/chunks/
|
|
2461
|
+
"name": "o",
|
|
2462
|
+
"module": "dist/chunks/ru.ICXGVGRR.js"
|
|
2669
2463
|
}
|
|
2670
2464
|
}
|
|
2671
2465
|
]
|
|
2672
2466
|
},
|
|
2673
2467
|
{
|
|
2674
2468
|
"kind": "javascript-module",
|
|
2675
|
-
"path": "dist/chunks/
|
|
2469
|
+
"path": "dist/chunks/sk.SIP5JIOX.js",
|
|
2676
2470
|
"declarations": [
|
|
2677
2471
|
{
|
|
2678
2472
|
"kind": "variable",
|
|
@@ -2686,18 +2480,18 @@
|
|
|
2686
2480
|
"name": "templates",
|
|
2687
2481
|
"declaration": {
|
|
2688
2482
|
"name": "r",
|
|
2689
|
-
"module": "dist/chunks/
|
|
2483
|
+
"module": "dist/chunks/sk.SIP5JIOX.js"
|
|
2690
2484
|
}
|
|
2691
2485
|
}
|
|
2692
2486
|
]
|
|
2693
2487
|
},
|
|
2694
2488
|
{
|
|
2695
2489
|
"kind": "javascript-module",
|
|
2696
|
-
"path": "dist/chunks/
|
|
2490
|
+
"path": "dist/chunks/sl.R77UEKCA.js",
|
|
2697
2491
|
"declarations": [
|
|
2698
2492
|
{
|
|
2699
2493
|
"kind": "variable",
|
|
2700
|
-
"name": "
|
|
2494
|
+
"name": "r",
|
|
2701
2495
|
"default": "e"
|
|
2702
2496
|
}
|
|
2703
2497
|
],
|
|
@@ -2706,15 +2500,15 @@
|
|
|
2706
2500
|
"kind": "js",
|
|
2707
2501
|
"name": "templates",
|
|
2708
2502
|
"declaration": {
|
|
2709
|
-
"name": "
|
|
2710
|
-
"module": "dist/chunks/
|
|
2503
|
+
"name": "r",
|
|
2504
|
+
"module": "dist/chunks/sl.R77UEKCA.js"
|
|
2711
2505
|
}
|
|
2712
2506
|
}
|
|
2713
2507
|
]
|
|
2714
2508
|
},
|
|
2715
2509
|
{
|
|
2716
2510
|
"kind": "javascript-module",
|
|
2717
|
-
"path": "dist/chunks/
|
|
2511
|
+
"path": "dist/chunks/sr-RS.6M2YSTDX.js",
|
|
2718
2512
|
"declarations": [
|
|
2719
2513
|
{
|
|
2720
2514
|
"kind": "variable",
|
|
@@ -2728,19 +2522,19 @@
|
|
|
2728
2522
|
"name": "templates",
|
|
2729
2523
|
"declaration": {
|
|
2730
2524
|
"name": "o",
|
|
2731
|
-
"module": "dist/chunks/
|
|
2525
|
+
"module": "dist/chunks/sr-RS.6M2YSTDX.js"
|
|
2732
2526
|
}
|
|
2733
2527
|
}
|
|
2734
2528
|
]
|
|
2735
2529
|
},
|
|
2736
2530
|
{
|
|
2737
2531
|
"kind": "javascript-module",
|
|
2738
|
-
"path": "dist/chunks/
|
|
2532
|
+
"path": "dist/chunks/sv.33ZY4CDS.js",
|
|
2739
2533
|
"declarations": [
|
|
2740
2534
|
{
|
|
2741
2535
|
"kind": "variable",
|
|
2742
|
-
"name": "
|
|
2743
|
-
"default": "
|
|
2536
|
+
"name": "n",
|
|
2537
|
+
"default": "e"
|
|
2744
2538
|
}
|
|
2745
2539
|
],
|
|
2746
2540
|
"exports": [
|
|
@@ -2748,20 +2542,20 @@
|
|
|
2748
2542
|
"kind": "js",
|
|
2749
2543
|
"name": "templates",
|
|
2750
2544
|
"declaration": {
|
|
2751
|
-
"name": "
|
|
2752
|
-
"module": "dist/chunks/
|
|
2545
|
+
"name": "n",
|
|
2546
|
+
"module": "dist/chunks/sv.33ZY4CDS.js"
|
|
2753
2547
|
}
|
|
2754
2548
|
}
|
|
2755
2549
|
]
|
|
2756
2550
|
},
|
|
2757
2551
|
{
|
|
2758
2552
|
"kind": "javascript-module",
|
|
2759
|
-
"path": "dist/chunks/
|
|
2553
|
+
"path": "dist/chunks/th.M27YUIZC.js",
|
|
2760
2554
|
"declarations": [
|
|
2761
2555
|
{
|
|
2762
2556
|
"kind": "variable",
|
|
2763
2557
|
"name": "o",
|
|
2764
|
-
"default": "
|
|
2558
|
+
"default": "e"
|
|
2765
2559
|
}
|
|
2766
2560
|
],
|
|
2767
2561
|
"exports": [
|
|
@@ -2770,19 +2564,19 @@
|
|
|
2770
2564
|
"name": "templates",
|
|
2771
2565
|
"declaration": {
|
|
2772
2566
|
"name": "o",
|
|
2773
|
-
"module": "dist/chunks/
|
|
2567
|
+
"module": "dist/chunks/th.M27YUIZC.js"
|
|
2774
2568
|
}
|
|
2775
2569
|
}
|
|
2776
2570
|
]
|
|
2777
2571
|
},
|
|
2778
2572
|
{
|
|
2779
2573
|
"kind": "javascript-module",
|
|
2780
|
-
"path": "dist/chunks/
|
|
2574
|
+
"path": "dist/chunks/tr.Q2SIY6NA.js",
|
|
2781
2575
|
"declarations": [
|
|
2782
2576
|
{
|
|
2783
2577
|
"kind": "variable",
|
|
2784
|
-
"name": "
|
|
2785
|
-
"default": "
|
|
2578
|
+
"name": "n",
|
|
2579
|
+
"default": "e"
|
|
2786
2580
|
}
|
|
2787
2581
|
],
|
|
2788
2582
|
"exports": [
|
|
@@ -2790,20 +2584,20 @@
|
|
|
2790
2584
|
"kind": "js",
|
|
2791
2585
|
"name": "templates",
|
|
2792
2586
|
"declaration": {
|
|
2793
|
-
"name": "
|
|
2794
|
-
"module": "dist/chunks/
|
|
2587
|
+
"name": "n",
|
|
2588
|
+
"module": "dist/chunks/tr.Q2SIY6NA.js"
|
|
2795
2589
|
}
|
|
2796
2590
|
}
|
|
2797
2591
|
]
|
|
2798
2592
|
},
|
|
2799
2593
|
{
|
|
2800
2594
|
"kind": "javascript-module",
|
|
2801
|
-
"path": "dist/chunks/
|
|
2595
|
+
"path": "dist/chunks/uk-UA.EJZOGSJR.js",
|
|
2802
2596
|
"declarations": [
|
|
2803
2597
|
{
|
|
2804
2598
|
"kind": "variable",
|
|
2805
|
-
"name": "
|
|
2806
|
-
"default": "
|
|
2599
|
+
"name": "o",
|
|
2600
|
+
"default": "e"
|
|
2807
2601
|
}
|
|
2808
2602
|
],
|
|
2809
2603
|
"exports": [
|
|
@@ -2811,20 +2605,20 @@
|
|
|
2811
2605
|
"kind": "js",
|
|
2812
2606
|
"name": "templates",
|
|
2813
2607
|
"declaration": {
|
|
2814
|
-
"name": "
|
|
2815
|
-
"module": "dist/chunks/
|
|
2608
|
+
"name": "o",
|
|
2609
|
+
"module": "dist/chunks/uk-UA.EJZOGSJR.js"
|
|
2816
2610
|
}
|
|
2817
2611
|
}
|
|
2818
2612
|
]
|
|
2819
2613
|
},
|
|
2820
2614
|
{
|
|
2821
2615
|
"kind": "javascript-module",
|
|
2822
|
-
"path": "dist/chunks/
|
|
2616
|
+
"path": "dist/chunks/vi.3RROGLXM.js",
|
|
2823
2617
|
"declarations": [
|
|
2824
2618
|
{
|
|
2825
2619
|
"kind": "variable",
|
|
2826
|
-
"name": "
|
|
2827
|
-
"default": "
|
|
2620
|
+
"name": "a",
|
|
2621
|
+
"default": "n"
|
|
2828
2622
|
}
|
|
2829
2623
|
],
|
|
2830
2624
|
"exports": [
|
|
@@ -2832,20 +2626,20 @@
|
|
|
2832
2626
|
"kind": "js",
|
|
2833
2627
|
"name": "templates",
|
|
2834
2628
|
"declaration": {
|
|
2835
|
-
"name": "
|
|
2836
|
-
"module": "dist/chunks/
|
|
2629
|
+
"name": "a",
|
|
2630
|
+
"module": "dist/chunks/vi.3RROGLXM.js"
|
|
2837
2631
|
}
|
|
2838
2632
|
}
|
|
2839
2633
|
]
|
|
2840
2634
|
},
|
|
2841
2635
|
{
|
|
2842
2636
|
"kind": "javascript-module",
|
|
2843
|
-
"path": "dist/chunks/
|
|
2637
|
+
"path": "dist/chunks/zf.GGWFQ3Y7.js",
|
|
2844
2638
|
"declarations": [
|
|
2845
2639
|
{
|
|
2846
2640
|
"kind": "variable",
|
|
2847
2641
|
"name": "a",
|
|
2848
|
-
"default": "
|
|
2642
|
+
"default": "t"
|
|
2849
2643
|
}
|
|
2850
2644
|
],
|
|
2851
2645
|
"exports": [
|
|
@@ -2854,18 +2648,18 @@
|
|
|
2854
2648
|
"name": "templates",
|
|
2855
2649
|
"declaration": {
|
|
2856
2650
|
"name": "a",
|
|
2857
|
-
"module": "dist/chunks/
|
|
2651
|
+
"module": "dist/chunks/zf.GGWFQ3Y7.js"
|
|
2858
2652
|
}
|
|
2859
2653
|
}
|
|
2860
2654
|
]
|
|
2861
2655
|
},
|
|
2862
2656
|
{
|
|
2863
2657
|
"kind": "javascript-module",
|
|
2864
|
-
"path": "dist/chunks/
|
|
2658
|
+
"path": "dist/chunks/zh-CN.MQHNRMN4.js",
|
|
2865
2659
|
"declarations": [
|
|
2866
2660
|
{
|
|
2867
2661
|
"kind": "variable",
|
|
2868
|
-
"name": "
|
|
2662
|
+
"name": "o",
|
|
2869
2663
|
"default": "e"
|
|
2870
2664
|
}
|
|
2871
2665
|
],
|
|
@@ -2874,19 +2668,19 @@
|
|
|
2874
2668
|
"kind": "js",
|
|
2875
2669
|
"name": "templates",
|
|
2876
2670
|
"declaration": {
|
|
2877
|
-
"name": "
|
|
2878
|
-
"module": "dist/chunks/
|
|
2671
|
+
"name": "o",
|
|
2672
|
+
"module": "dist/chunks/zh-CN.MQHNRMN4.js"
|
|
2879
2673
|
}
|
|
2880
2674
|
}
|
|
2881
2675
|
]
|
|
2882
2676
|
},
|
|
2883
2677
|
{
|
|
2884
2678
|
"kind": "javascript-module",
|
|
2885
|
-
"path": "dist/chunks/
|
|
2679
|
+
"path": "dist/chunks/zh-HK.WNR7XUSX.js",
|
|
2886
2680
|
"declarations": [
|
|
2887
2681
|
{
|
|
2888
2682
|
"kind": "variable",
|
|
2889
|
-
"name": "
|
|
2683
|
+
"name": "o",
|
|
2890
2684
|
"default": "e"
|
|
2891
2685
|
}
|
|
2892
2686
|
],
|
|
@@ -2895,20 +2689,20 @@
|
|
|
2895
2689
|
"kind": "js",
|
|
2896
2690
|
"name": "templates",
|
|
2897
2691
|
"declaration": {
|
|
2898
|
-
"name": "
|
|
2899
|
-
"module": "dist/chunks/
|
|
2692
|
+
"name": "o",
|
|
2693
|
+
"module": "dist/chunks/zh-HK.WNR7XUSX.js"
|
|
2900
2694
|
}
|
|
2901
2695
|
}
|
|
2902
2696
|
]
|
|
2903
2697
|
},
|
|
2904
2698
|
{
|
|
2905
2699
|
"kind": "javascript-module",
|
|
2906
|
-
"path": "dist/chunks/
|
|
2700
|
+
"path": "dist/chunks/zh-TW.GNCY2PNY.js",
|
|
2907
2701
|
"declarations": [
|
|
2908
2702
|
{
|
|
2909
2703
|
"kind": "variable",
|
|
2910
|
-
"name": "
|
|
2911
|
-
"default": "
|
|
2704
|
+
"name": "o",
|
|
2705
|
+
"default": "e"
|
|
2912
2706
|
}
|
|
2913
2707
|
],
|
|
2914
2708
|
"exports": [
|
|
@@ -2916,348 +2710,554 @@
|
|
|
2916
2710
|
"kind": "js",
|
|
2917
2711
|
"name": "templates",
|
|
2918
2712
|
"declaration": {
|
|
2919
|
-
"name": "
|
|
2920
|
-
"module": "dist/chunks/
|
|
2713
|
+
"name": "o",
|
|
2714
|
+
"module": "dist/chunks/zh-TW.GNCY2PNY.js"
|
|
2921
2715
|
}
|
|
2922
2716
|
}
|
|
2923
2717
|
]
|
|
2924
2718
|
},
|
|
2925
2719
|
{
|
|
2926
2720
|
"kind": "javascript-module",
|
|
2927
|
-
"path": "
|
|
2721
|
+
"path": "e2e/mocks/billing-address.ts",
|
|
2928
2722
|
"declarations": [
|
|
2929
2723
|
{
|
|
2930
2724
|
"kind": "variable",
|
|
2931
|
-
"name": "
|
|
2932
|
-
"
|
|
2725
|
+
"name": "settings",
|
|
2726
|
+
"type": {
|
|
2727
|
+
"text": "string"
|
|
2728
|
+
},
|
|
2729
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJDdXN0b21lcjEyMyIsIm9yZGVySWQiOiIxMjU3NyIsImFtb3VudCI6MTA1MCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsiZXhwcmVzc0NoZWNrb3V0IjoidHJ1ZSJ9LCJvcmRlciI6eyJzaGlwcGluZyI6eyJhbW91bnQiOjUwLCJtZXRob2RJZCI6IlJlZ3VsYXIiLCJtZXRob2ROYW1lIjoiUmVndWxhciA1MCIsIm1ldGhvZERlc2NyaXB0aW9uIjoiUmVndWxhciJ9LCJjb3VudHJ5Q29kZSI6IkZSIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjk1MCwicXVhbnRpdHkiOjF9LHsiaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ibHVlIiwiZGVzY3JpcHRpb24iOiJQcmltZXIgQmx1ZSIsImFtb3VudCI6NTAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6eyJiaWxsaW5nQWRkcmVzcyI6eyJmaXJzdE5hbWUiOiJ0ZXN0dCIsImxhc3ROYW1lIjoidGVzdCIsInBvc3RhbENvZGUiOiI1MTY2MiIsImFkZHJlc3NMaW5lMSI6ImFrc2psa2FqbCIsImFkZHJlc3NMaW5lMiI6ImpmamthaGsiLCJjb3VudHJ5Q29kZSI6IlBMIiwiY2l0eSI6Indyb2NsYXciLCJzdGF0ZSI6InRlc3QifSwic2hpcHBpbmdBZGRyZXNzIjp7fSwibmF0aW9uYWxEb2N1bWVudElkIjoiOTAxMTIxMTIzNDU2NyJ9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsInZhdWx0T25BZ3JlZW1lbnQiOmZhbHNlLCJvcmRlcmVkQWxsb3dlZENhcmROZXR3b3JrcyI6WyJWSVNBIiwiTUFTVEVSQ0FSRCIsIkFNRVgiLCJNQUVTVFJPIiwiVU5JT05QQVkiLCJDQVJURVNfQkFOQ0FJUkVTIiwiREFOS09SVCIsIkRJTkVSU19DTFVCIiwiRElTQ09WRVIiLCJFTlJPVVRFIiwiRUxPIiwiSElQRVIiLCJJTlRFUkFDIiwiSkNCIiwiTUlSIiwiT1RIRVIiXX19LCJjbGllbnRPcHRpb25zIjp7ImxvY2FsZSI6ImVuIiwiYXBpVmVyc2lvbiI6IjIuNCIsInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwidmF1bHQiOnsidmlzaWJsZSI6ZmFsc2V9LCJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LmV5SnpkV0lpT2lJM05XUmpOekF4TWkwM09EVmpMVFEwTTJFdE9EQmlNUzB3WlRGbU9EaG1aRFJtWVdRaUxDSnBZWFFpT2pFM05UazBPRGd4TkRJc0ltdHBaQ0k2SW5ZeElpd2lhblJwSWpvaVlXWXhZemcxWW1VdE16UmhOaTAwWWpGakxUa3pObVl0WWpnME5tVXlOV1k1TnpFeEluMC5CaElodFpBcGotdWJJckJ3bW1zR1U4dGlCdWNEMU93WFpySmcxdXRRRzZjIiwiYXBpVmVyc2lvbiI6IjIuNCIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6eyJsb2NhbGUiOiJmci1GUiIsInN0cmlwZSI6eyJwdWJsaXNoYWJsZUtleSI6InBrX3Rlc3RfNTFPOHpmUUtVSzZiWElkQzJ4UHZTUzZVdnJpRTlrd3B2dHR3QjdIOVBBemhOQVpvR3pMZ2lET3lkNFdvb296ZVdIeG9ScktvNmIyVmpaWXhOQ01YM1c3YmswMHJNRGl2amF1In0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6dHJ1ZX19'"
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"kind": "variable",
|
|
2733
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2734
|
+
"type": {
|
|
2735
|
+
"text": "object"
|
|
2736
|
+
},
|
|
2737
|
+
"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: {}, }"
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
"kind": "variable",
|
|
2741
|
+
"name": "CARD_NUMBER",
|
|
2742
|
+
"type": {
|
|
2743
|
+
"text": "string"
|
|
2744
|
+
},
|
|
2745
|
+
"default": "'4242 4242 4242 4242'"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"kind": "function",
|
|
2749
|
+
"name": "mockBinData",
|
|
2750
|
+
"parameters": [
|
|
2751
|
+
{
|
|
2752
|
+
"name": "page",
|
|
2753
|
+
"type": {
|
|
2754
|
+
"text": "Page"
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
]
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"kind": "function",
|
|
2761
|
+
"name": "mockPaymentInstruments",
|
|
2762
|
+
"parameters": [
|
|
2763
|
+
{
|
|
2764
|
+
"name": "page",
|
|
2765
|
+
"type": {
|
|
2766
|
+
"text": "Page"
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
]
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
"kind": "function",
|
|
2773
|
+
"name": "mockPayments",
|
|
2774
|
+
"parameters": [
|
|
2775
|
+
{
|
|
2776
|
+
"name": "page",
|
|
2777
|
+
"type": {
|
|
2778
|
+
"text": "Page"
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
]
|
|
2933
2782
|
}
|
|
2934
2783
|
],
|
|
2935
2784
|
"exports": [
|
|
2936
2785
|
{
|
|
2937
2786
|
"kind": "js",
|
|
2938
|
-
"name": "
|
|
2787
|
+
"name": "settings",
|
|
2939
2788
|
"declaration": {
|
|
2940
|
-
"name": "
|
|
2941
|
-
"module": "
|
|
2789
|
+
"name": "settings",
|
|
2790
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
2942
2791
|
}
|
|
2943
|
-
}
|
|
2944
|
-
]
|
|
2945
|
-
},
|
|
2946
|
-
{
|
|
2947
|
-
"kind": "javascript-module",
|
|
2948
|
-
"path": "dist/chunks/pt.VBALOWHZ.js",
|
|
2949
|
-
"declarations": [
|
|
2792
|
+
},
|
|
2950
2793
|
{
|
|
2951
|
-
"kind": "
|
|
2952
|
-
"name": "
|
|
2953
|
-
"
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2794
|
+
"kind": "js",
|
|
2795
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2796
|
+
"declaration": {
|
|
2797
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2798
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
2799
|
+
}
|
|
2800
|
+
},
|
|
2801
|
+
{
|
|
2802
|
+
"kind": "js",
|
|
2803
|
+
"name": "CARD_NUMBER",
|
|
2804
|
+
"declaration": {
|
|
2805
|
+
"name": "CARD_NUMBER",
|
|
2806
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
2807
|
+
}
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"kind": "js",
|
|
2811
|
+
"name": "mockBinData",
|
|
2812
|
+
"declaration": {
|
|
2813
|
+
"name": "mockBinData",
|
|
2814
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2957
2817
|
{
|
|
2958
2818
|
"kind": "js",
|
|
2959
|
-
"name": "
|
|
2819
|
+
"name": "mockPaymentInstruments",
|
|
2960
2820
|
"declaration": {
|
|
2961
|
-
"name": "
|
|
2962
|
-
"module": "
|
|
2821
|
+
"name": "mockPaymentInstruments",
|
|
2822
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
2963
2823
|
}
|
|
2964
|
-
}
|
|
2965
|
-
]
|
|
2966
|
-
},
|
|
2967
|
-
{
|
|
2968
|
-
"kind": "javascript-module",
|
|
2969
|
-
"path": "dist/chunks/ro.WN7VCF27.js",
|
|
2970
|
-
"declarations": [
|
|
2971
|
-
{
|
|
2972
|
-
"kind": "variable",
|
|
2973
|
-
"name": "i",
|
|
2974
|
-
"default": "e"
|
|
2975
|
-
}
|
|
2976
|
-
],
|
|
2977
|
-
"exports": [
|
|
2824
|
+
},
|
|
2978
2825
|
{
|
|
2979
2826
|
"kind": "js",
|
|
2980
|
-
"name": "
|
|
2827
|
+
"name": "mockPayments",
|
|
2981
2828
|
"declaration": {
|
|
2982
|
-
"name": "
|
|
2983
|
-
"module": "
|
|
2829
|
+
"name": "mockPayments",
|
|
2830
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
2984
2831
|
}
|
|
2985
2832
|
}
|
|
2986
2833
|
]
|
|
2987
2834
|
},
|
|
2988
2835
|
{
|
|
2989
2836
|
"kind": "javascript-module",
|
|
2990
|
-
"path": "
|
|
2837
|
+
"path": "e2e/mocks/card-3ds.ts",
|
|
2991
2838
|
"declarations": [
|
|
2992
2839
|
{
|
|
2993
2840
|
"kind": "variable",
|
|
2994
|
-
"name": "
|
|
2995
|
-
"
|
|
2841
|
+
"name": "settings",
|
|
2842
|
+
"type": {
|
|
2843
|
+
"text": "string"
|
|
2844
|
+
},
|
|
2845
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI3NDUyNyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
"kind": "variable",
|
|
2849
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2850
|
+
"type": {
|
|
2851
|
+
"text": "object"
|
|
2852
|
+
},
|
|
2853
|
+
"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: {}, }"
|
|
2996
2854
|
}
|
|
2997
2855
|
],
|
|
2998
2856
|
"exports": [
|
|
2999
2857
|
{
|
|
3000
2858
|
"kind": "js",
|
|
3001
|
-
"name": "
|
|
2859
|
+
"name": "settings",
|
|
3002
2860
|
"declaration": {
|
|
3003
|
-
"name": "
|
|
3004
|
-
"module": "
|
|
2861
|
+
"name": "settings",
|
|
2862
|
+
"module": "e2e/mocks/card-3ds.ts"
|
|
3005
2863
|
}
|
|
3006
|
-
}
|
|
3007
|
-
]
|
|
3008
|
-
},
|
|
3009
|
-
{
|
|
3010
|
-
"kind": "javascript-module",
|
|
3011
|
-
"path": "dist/chunks/sk.SIP5JIOX.js",
|
|
3012
|
-
"declarations": [
|
|
3013
|
-
{
|
|
3014
|
-
"kind": "variable",
|
|
3015
|
-
"name": "r",
|
|
3016
|
-
"default": "e"
|
|
3017
|
-
}
|
|
3018
|
-
],
|
|
3019
|
-
"exports": [
|
|
2864
|
+
},
|
|
3020
2865
|
{
|
|
3021
2866
|
"kind": "js",
|
|
3022
|
-
"name": "
|
|
2867
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
3023
2868
|
"declaration": {
|
|
3024
|
-
"name": "
|
|
3025
|
-
"module": "
|
|
2869
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2870
|
+
"module": "e2e/mocks/card-3ds.ts"
|
|
3026
2871
|
}
|
|
3027
2872
|
}
|
|
3028
2873
|
]
|
|
3029
2874
|
},
|
|
3030
2875
|
{
|
|
3031
2876
|
"kind": "javascript-module",
|
|
3032
|
-
"path": "
|
|
2877
|
+
"path": "e2e/mocks/card-basic.ts",
|
|
3033
2878
|
"declarations": [
|
|
3034
2879
|
{
|
|
3035
2880
|
"kind": "variable",
|
|
3036
|
-
"name": "
|
|
3037
|
-
"
|
|
2881
|
+
"name": "settings",
|
|
2882
|
+
"type": {
|
|
2883
|
+
"text": "string"
|
|
2884
|
+
},
|
|
2885
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6ZmFsc2V9fQ=='"
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
"kind": "variable",
|
|
2889
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2890
|
+
"type": {
|
|
2891
|
+
"text": "object"
|
|
2892
|
+
},
|
|
2893
|
+
"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: {}, }"
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
"kind": "variable",
|
|
2897
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
2898
|
+
"type": {
|
|
2899
|
+
"text": "string"
|
|
2900
|
+
},
|
|
2901
|
+
"default": "'4035 5010 0000 0008'"
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
"kind": "variable",
|
|
2905
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
2906
|
+
"type": {
|
|
2907
|
+
"text": "string"
|
|
2908
|
+
},
|
|
2909
|
+
"default": "'4242 4242 4242 4242'"
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"kind": "function",
|
|
2913
|
+
"name": "mockPaymentInstruments",
|
|
2914
|
+
"parameters": [
|
|
2915
|
+
{
|
|
2916
|
+
"name": "page",
|
|
2917
|
+
"type": {
|
|
2918
|
+
"text": "Page"
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
]
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"kind": "function",
|
|
2925
|
+
"name": "mockPayments",
|
|
2926
|
+
"parameters": [
|
|
2927
|
+
{
|
|
2928
|
+
"name": "page",
|
|
2929
|
+
"type": {
|
|
2930
|
+
"text": "Page"
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
]
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
"kind": "function",
|
|
2937
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
2938
|
+
"parameters": [
|
|
2939
|
+
{
|
|
2940
|
+
"name": "page",
|
|
2941
|
+
"type": {
|
|
2942
|
+
"text": "Page"
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
]
|
|
2946
|
+
},
|
|
2947
|
+
{
|
|
2948
|
+
"kind": "function",
|
|
2949
|
+
"name": "mockPaymentsFailure",
|
|
2950
|
+
"parameters": [
|
|
2951
|
+
{
|
|
2952
|
+
"name": "page",
|
|
2953
|
+
"type": {
|
|
2954
|
+
"text": "Page"
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
]
|
|
3038
2958
|
}
|
|
3039
2959
|
],
|
|
3040
2960
|
"exports": [
|
|
3041
2961
|
{
|
|
3042
2962
|
"kind": "js",
|
|
3043
|
-
"name": "
|
|
2963
|
+
"name": "settings",
|
|
3044
2964
|
"declaration": {
|
|
3045
|
-
"name": "
|
|
3046
|
-
"module": "
|
|
2965
|
+
"name": "settings",
|
|
2966
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
3047
2967
|
}
|
|
3048
|
-
}
|
|
3049
|
-
]
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
"kind": "javascript-module",
|
|
3053
|
-
"path": "dist/chunks/sr-RS.6M2YSTDX.js",
|
|
3054
|
-
"declarations": [
|
|
3055
|
-
{
|
|
3056
|
-
"kind": "variable",
|
|
3057
|
-
"name": "o",
|
|
3058
|
-
"default": "e"
|
|
3059
|
-
}
|
|
3060
|
-
],
|
|
3061
|
-
"exports": [
|
|
2968
|
+
},
|
|
3062
2969
|
{
|
|
3063
2970
|
"kind": "js",
|
|
3064
|
-
"name": "
|
|
2971
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
3065
2972
|
"declaration": {
|
|
3066
|
-
"name": "
|
|
3067
|
-
"module": "
|
|
2973
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2974
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
3068
2975
|
}
|
|
3069
|
-
}
|
|
3070
|
-
]
|
|
3071
|
-
},
|
|
3072
|
-
{
|
|
3073
|
-
"kind": "javascript-module",
|
|
3074
|
-
"path": "dist/chunks/sv.33ZY4CDS.js",
|
|
3075
|
-
"declarations": [
|
|
2976
|
+
},
|
|
3076
2977
|
{
|
|
3077
|
-
"kind": "
|
|
3078
|
-
"name": "
|
|
3079
|
-
"
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
2978
|
+
"kind": "js",
|
|
2979
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
2980
|
+
"declaration": {
|
|
2981
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
2982
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
2983
|
+
}
|
|
2984
|
+
},
|
|
3083
2985
|
{
|
|
3084
2986
|
"kind": "js",
|
|
3085
|
-
"name": "
|
|
2987
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
3086
2988
|
"declaration": {
|
|
3087
|
-
"name": "
|
|
3088
|
-
"module": "
|
|
2989
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
2990
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
3089
2991
|
}
|
|
3090
|
-
}
|
|
3091
|
-
]
|
|
3092
|
-
},
|
|
3093
|
-
{
|
|
3094
|
-
"kind": "javascript-module",
|
|
3095
|
-
"path": "dist/chunks/th.M27YUIZC.js",
|
|
3096
|
-
"declarations": [
|
|
2992
|
+
},
|
|
3097
2993
|
{
|
|
3098
|
-
"kind": "
|
|
3099
|
-
"name": "
|
|
3100
|
-
"
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
2994
|
+
"kind": "js",
|
|
2995
|
+
"name": "mockPaymentInstruments",
|
|
2996
|
+
"declaration": {
|
|
2997
|
+
"name": "mockPaymentInstruments",
|
|
2998
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
2999
|
+
}
|
|
3000
|
+
},
|
|
3104
3001
|
{
|
|
3105
3002
|
"kind": "js",
|
|
3106
|
-
"name": "
|
|
3003
|
+
"name": "mockPayments",
|
|
3107
3004
|
"declaration": {
|
|
3108
|
-
"name": "
|
|
3109
|
-
"module": "
|
|
3005
|
+
"name": "mockPayments",
|
|
3006
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
3110
3007
|
}
|
|
3111
|
-
}
|
|
3112
|
-
]
|
|
3113
|
-
},
|
|
3114
|
-
{
|
|
3115
|
-
"kind": "javascript-module",
|
|
3116
|
-
"path": "dist/chunks/tr.Q2SIY6NA.js",
|
|
3117
|
-
"declarations": [
|
|
3008
|
+
},
|
|
3118
3009
|
{
|
|
3119
|
-
"kind": "
|
|
3120
|
-
"name": "
|
|
3121
|
-
"
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3010
|
+
"kind": "js",
|
|
3011
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
3012
|
+
"declaration": {
|
|
3013
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
3014
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
3015
|
+
}
|
|
3016
|
+
},
|
|
3125
3017
|
{
|
|
3126
3018
|
"kind": "js",
|
|
3127
|
-
"name": "
|
|
3019
|
+
"name": "mockPaymentsFailure",
|
|
3128
3020
|
"declaration": {
|
|
3129
|
-
"name": "
|
|
3130
|
-
"module": "
|
|
3021
|
+
"name": "mockPaymentsFailure",
|
|
3022
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
3131
3023
|
}
|
|
3132
3024
|
}
|
|
3133
3025
|
]
|
|
3134
3026
|
},
|
|
3135
3027
|
{
|
|
3136
3028
|
"kind": "javascript-module",
|
|
3137
|
-
"path": "
|
|
3029
|
+
"path": "e2e/mocks/klarna.ts",
|
|
3138
3030
|
"declarations": [
|
|
3139
3031
|
{
|
|
3140
3032
|
"kind": "variable",
|
|
3141
|
-
"name": "
|
|
3142
|
-
"
|
|
3033
|
+
"name": "settings",
|
|
3034
|
+
"type": {
|
|
3035
|
+
"text": "string"
|
|
3036
|
+
},
|
|
3037
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI0NTg1OCIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJERSIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50Ijo2MDAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6e30sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
"kind": "variable",
|
|
3041
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
3042
|
+
"type": {
|
|
3043
|
+
"text": "object"
|
|
3044
|
+
},
|
|
3045
|
+
"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: {}, }"
|
|
3143
3046
|
}
|
|
3144
3047
|
],
|
|
3145
3048
|
"exports": [
|
|
3146
3049
|
{
|
|
3147
3050
|
"kind": "js",
|
|
3148
|
-
"name": "
|
|
3051
|
+
"name": "settings",
|
|
3149
3052
|
"declaration": {
|
|
3150
|
-
"name": "
|
|
3151
|
-
"module": "
|
|
3053
|
+
"name": "settings",
|
|
3054
|
+
"module": "e2e/mocks/klarna.ts"
|
|
3152
3055
|
}
|
|
3153
|
-
}
|
|
3154
|
-
]
|
|
3155
|
-
},
|
|
3156
|
-
{
|
|
3157
|
-
"kind": "javascript-module",
|
|
3158
|
-
"path": "dist/chunks/vi.3RROGLXM.js",
|
|
3159
|
-
"declarations": [
|
|
3160
|
-
{
|
|
3161
|
-
"kind": "variable",
|
|
3162
|
-
"name": "a",
|
|
3163
|
-
"default": "n"
|
|
3164
|
-
}
|
|
3165
|
-
],
|
|
3166
|
-
"exports": [
|
|
3056
|
+
},
|
|
3167
3057
|
{
|
|
3168
3058
|
"kind": "js",
|
|
3169
|
-
"name": "
|
|
3059
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
3170
3060
|
"declaration": {
|
|
3171
|
-
"name": "
|
|
3172
|
-
"module": "
|
|
3061
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
3062
|
+
"module": "e2e/mocks/klarna.ts"
|
|
3173
3063
|
}
|
|
3174
3064
|
}
|
|
3175
3065
|
]
|
|
3176
3066
|
},
|
|
3177
3067
|
{
|
|
3178
3068
|
"kind": "javascript-module",
|
|
3179
|
-
"path": "
|
|
3069
|
+
"path": "e2e/mocks/shared.ts",
|
|
3180
3070
|
"declarations": [
|
|
3181
3071
|
{
|
|
3182
|
-
"kind": "
|
|
3183
|
-
"name": "
|
|
3184
|
-
"
|
|
3072
|
+
"kind": "function",
|
|
3073
|
+
"name": "mockConfigurationCallSBX",
|
|
3074
|
+
"parameters": [
|
|
3075
|
+
{
|
|
3076
|
+
"name": "page",
|
|
3077
|
+
"type": {
|
|
3078
|
+
"text": "Page"
|
|
3079
|
+
}
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
"name": "config",
|
|
3083
|
+
"type": {
|
|
3084
|
+
"text": "unknown"
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
]
|
|
3088
|
+
},
|
|
3089
|
+
{
|
|
3090
|
+
"kind": "function",
|
|
3091
|
+
"name": "mockConfigurationCallSTG",
|
|
3092
|
+
"parameters": [
|
|
3093
|
+
{
|
|
3094
|
+
"name": "page",
|
|
3095
|
+
"type": {
|
|
3096
|
+
"text": "Page"
|
|
3097
|
+
}
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
"name": "config",
|
|
3101
|
+
"type": {
|
|
3102
|
+
"text": "unknown"
|
|
3103
|
+
}
|
|
3104
|
+
}
|
|
3105
|
+
]
|
|
3185
3106
|
}
|
|
3186
3107
|
],
|
|
3187
3108
|
"exports": [
|
|
3188
3109
|
{
|
|
3189
3110
|
"kind": "js",
|
|
3190
|
-
"name": "
|
|
3111
|
+
"name": "mockConfigurationCallSBX",
|
|
3191
3112
|
"declaration": {
|
|
3192
|
-
"name": "
|
|
3193
|
-
"module": "
|
|
3113
|
+
"name": "mockConfigurationCallSBX",
|
|
3114
|
+
"module": "e2e/mocks/shared.ts"
|
|
3115
|
+
}
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
"kind": "js",
|
|
3119
|
+
"name": "mockConfigurationCallSTG",
|
|
3120
|
+
"declaration": {
|
|
3121
|
+
"name": "mockConfigurationCallSTG",
|
|
3122
|
+
"module": "e2e/mocks/shared.ts"
|
|
3194
3123
|
}
|
|
3195
3124
|
}
|
|
3196
3125
|
]
|
|
3197
3126
|
},
|
|
3198
3127
|
{
|
|
3199
3128
|
"kind": "javascript-module",
|
|
3200
|
-
"path": "
|
|
3129
|
+
"path": "e2e/mocks/vaulted-paypal.ts",
|
|
3201
3130
|
"declarations": [
|
|
3202
3131
|
{
|
|
3203
3132
|
"kind": "variable",
|
|
3204
|
-
"name": "
|
|
3205
|
-
"
|
|
3133
|
+
"name": "settings",
|
|
3134
|
+
"type": {
|
|
3135
|
+
"text": "string"
|
|
3136
|
+
},
|
|
3137
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiIwODkzNTcwMTgyNTM2NyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwidmF1bHRPbkFncmVlbWVudCI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmMzA4ODVmMC04MjljLTRmMGEtYjIyMi1iN2Y1OWQzNzZlYWYiLCJhcGlWZXJzaW9uIjoiMi40IiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9LCJzZGtDb3JlIjpmYWxzZX19'"
|
|
3138
|
+
},
|
|
3139
|
+
{
|
|
3140
|
+
"kind": "variable",
|
|
3141
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
3142
|
+
"type": {
|
|
3143
|
+
"text": "object"
|
|
3144
|
+
},
|
|
3145
|
+
"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: {}, }"
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
"kind": "function",
|
|
3149
|
+
"name": "mockExchangeCall",
|
|
3150
|
+
"parameters": [
|
|
3151
|
+
{
|
|
3152
|
+
"name": "page",
|
|
3153
|
+
"type": {
|
|
3154
|
+
"text": "Page"
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
]
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
"kind": "function",
|
|
3161
|
+
"name": "mockPaymentsCall",
|
|
3162
|
+
"parameters": [
|
|
3163
|
+
{
|
|
3164
|
+
"name": "page",
|
|
3165
|
+
"type": {
|
|
3166
|
+
"text": "Page"
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
]
|
|
3206
3170
|
}
|
|
3207
3171
|
],
|
|
3208
3172
|
"exports": [
|
|
3209
3173
|
{
|
|
3210
3174
|
"kind": "js",
|
|
3211
|
-
"name": "
|
|
3175
|
+
"name": "settings",
|
|
3212
3176
|
"declaration": {
|
|
3213
|
-
"name": "
|
|
3214
|
-
"module": "
|
|
3177
|
+
"name": "settings",
|
|
3178
|
+
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
3215
3179
|
}
|
|
3216
|
-
}
|
|
3217
|
-
]
|
|
3218
|
-
},
|
|
3219
|
-
{
|
|
3220
|
-
"kind": "javascript-module",
|
|
3221
|
-
"path": "dist/chunks/zh-HK.WNR7XUSX.js",
|
|
3222
|
-
"declarations": [
|
|
3180
|
+
},
|
|
3223
3181
|
{
|
|
3224
|
-
"kind": "
|
|
3225
|
-
"name": "
|
|
3226
|
-
"
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3182
|
+
"kind": "js",
|
|
3183
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
3184
|
+
"declaration": {
|
|
3185
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
3186
|
+
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
3187
|
+
}
|
|
3188
|
+
},
|
|
3230
3189
|
{
|
|
3231
3190
|
"kind": "js",
|
|
3232
|
-
"name": "
|
|
3191
|
+
"name": "mockExchangeCall",
|
|
3233
3192
|
"declaration": {
|
|
3234
|
-
"name": "
|
|
3235
|
-
"module": "
|
|
3193
|
+
"name": "mockExchangeCall",
|
|
3194
|
+
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
3195
|
+
}
|
|
3196
|
+
},
|
|
3197
|
+
{
|
|
3198
|
+
"kind": "js",
|
|
3199
|
+
"name": "mockPaymentsCall",
|
|
3200
|
+
"declaration": {
|
|
3201
|
+
"name": "mockPaymentsCall",
|
|
3202
|
+
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
3236
3203
|
}
|
|
3237
3204
|
}
|
|
3238
3205
|
]
|
|
3239
3206
|
},
|
|
3240
3207
|
{
|
|
3241
3208
|
"kind": "javascript-module",
|
|
3242
|
-
"path": "
|
|
3209
|
+
"path": "e2e/tests/card-3ds.spec.ts",
|
|
3210
|
+
"declarations": [],
|
|
3211
|
+
"exports": []
|
|
3212
|
+
},
|
|
3213
|
+
{
|
|
3214
|
+
"kind": "javascript-module",
|
|
3215
|
+
"path": "e2e/tests/card-basic.spec.ts",
|
|
3216
|
+
"declarations": [],
|
|
3217
|
+
"exports": []
|
|
3218
|
+
},
|
|
3219
|
+
{
|
|
3220
|
+
"kind": "javascript-module",
|
|
3221
|
+
"path": "e2e/tests/card-form-billing-address.spec.ts",
|
|
3222
|
+
"declarations": [],
|
|
3223
|
+
"exports": []
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
"kind": "javascript-module",
|
|
3227
|
+
"path": "e2e/tests/disabled-payments.spec.ts",
|
|
3243
3228
|
"declarations": [
|
|
3244
3229
|
{
|
|
3245
3230
|
"kind": "variable",
|
|
3246
|
-
"name": "
|
|
3247
|
-
"
|
|
3231
|
+
"name": "settingsEnabled",
|
|
3232
|
+
"type": {
|
|
3233
|
+
"text": "string"
|
|
3234
|
+
},
|
|
3235
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsiZGlzYWJsZWRQYXltZW50cyI6ZmFsc2UsInNka0NvcmUiOmZhbHNlfX0='"
|
|
3248
3236
|
}
|
|
3249
3237
|
],
|
|
3250
3238
|
"exports": [
|
|
3251
3239
|
{
|
|
3252
3240
|
"kind": "js",
|
|
3253
|
-
"name": "
|
|
3241
|
+
"name": "settingsEnabled",
|
|
3254
3242
|
"declaration": {
|
|
3255
|
-
"name": "
|
|
3256
|
-
"module": "
|
|
3243
|
+
"name": "settingsEnabled",
|
|
3244
|
+
"module": "e2e/tests/disabled-payments.spec.ts"
|
|
3257
3245
|
}
|
|
3258
3246
|
}
|
|
3259
3247
|
]
|
|
3260
3248
|
},
|
|
3249
|
+
{
|
|
3250
|
+
"kind": "javascript-module",
|
|
3251
|
+
"path": "e2e/tests/klarna.spec.ts",
|
|
3252
|
+
"declarations": [],
|
|
3253
|
+
"exports": []
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
"kind": "javascript-module",
|
|
3257
|
+
"path": "e2e/tests/vaulted-paypal.spec.ts",
|
|
3258
|
+
"declarations": [],
|
|
3259
|
+
"exports": []
|
|
3260
|
+
},
|
|
3261
3261
|
{
|
|
3262
3262
|
"kind": "javascript-module",
|
|
3263
3263
|
"path": "src/__tests__/setup.ts",
|
|
@@ -4723,6 +4723,15 @@
|
|
|
4723
4723
|
"privacy": "private",
|
|
4724
4724
|
"default": "null"
|
|
4725
4725
|
},
|
|
4726
|
+
{
|
|
4727
|
+
"kind": "field",
|
|
4728
|
+
"name": "paymentManagers",
|
|
4729
|
+
"type": {
|
|
4730
|
+
"text": "InitializedManagersMap | null"
|
|
4731
|
+
},
|
|
4732
|
+
"privacy": "private",
|
|
4733
|
+
"default": "null"
|
|
4734
|
+
},
|
|
4726
4735
|
{
|
|
4727
4736
|
"kind": "field",
|
|
4728
4737
|
"name": "onPaymentStart",
|
|
@@ -4815,6 +4824,25 @@
|
|
|
4815
4824
|
}
|
|
4816
4825
|
},
|
|
4817
4826
|
"description": "Returns the cached list of payment methods."
|
|
4827
|
+
},
|
|
4828
|
+
{
|
|
4829
|
+
"kind": "method",
|
|
4830
|
+
"name": "setCardholderName",
|
|
4831
|
+
"return": {
|
|
4832
|
+
"type": {
|
|
4833
|
+
"text": "void"
|
|
4834
|
+
}
|
|
4835
|
+
},
|
|
4836
|
+
"parameters": [
|
|
4837
|
+
{
|
|
4838
|
+
"name": "cardholderName",
|
|
4839
|
+
"type": {
|
|
4840
|
+
"text": "string"
|
|
4841
|
+
},
|
|
4842
|
+
"description": "The cardholder name to set"
|
|
4843
|
+
}
|
|
4844
|
+
],
|
|
4845
|
+
"description": "Sets the cardholder name value in the card payment form.\n\n⚠️ Must be called after card hosted inputs have been rendered.\nCalling too early will log a warning and fail gracefully."
|
|
4818
4846
|
}
|
|
4819
4847
|
]
|
|
4820
4848
|
}
|