@primer-io/primer-js 0.3.6 → 0.3.8

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.
@@ -2,6 +2,34 @@
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
+ },
5
33
  {
6
34
  "kind": "javascript-module",
7
35
  "path": "dist/primer-loader.js",
@@ -16,7 +44,7 @@
16
44
  },
17
45
  {
18
46
  "kind": "variable",
19
- "name": "kr",
47
+ "name": "Or",
20
48
  "default": "class{constructor(t){this._methods=t}get(t){return this._methods.get(t)}toArray(){return Array.from(this._methods.values())}size(){return this._methods.size}}"
21
49
  },
22
50
  {
@@ -54,233 +82,233 @@
54
82
  },
55
83
  {
56
84
  "kind": "variable",
57
- "name": "ae",
58
- "default": "class extends g{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this._jsInitialized=!1;this.previousLoadingState=!0;this.hasAssignedContent=!1;this._loadingTimeoutId=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 dr(this),this.sdkStateController=new sr(this),this.primerEventsController=new Et(this),this.styleProcessingController=new cr(this),this.vaultManagerController=new Dt(this),this.cardNetworkController=new rr(this),this.achPaymentEventsController=new Kr(this),new jr(this)}set jsInitialized(e){this.requestUpdate(),this._jsInitialized=e}get jsInitialized(){return this._jsInitialized}attributeChangedCallback(e,r,o){e===kl.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(),super.disconnectedCallback()}willUpdate(e){e.has(\"options\")&&(this.options?.locale&&(gi(this.options?.locale)?this.locale=vi(this.options?.locale):w.warn(\"\\u{1F30E}\\u2757 Unsupported locale provided:\",this.options?.locale,\"- Falling back to default locale `en-GB`\")),yi(this.locale||\"en-GB\"))}updated(){let e=getComputedStyle(this);this.sdkContextController.setComputedStyles(e),this.checkLoadingStateChange()}checkLoadingStateChange(){let e=this.sdkStateController?.currentState.isLoading||!1;this.previousLoadingState&&!e&&(this.jsInitialized=!0),this.previousLoadingState=e,e&&!this._loadingTimeoutId?this._loadingTimeoutId=window.setTimeout(()=>{this.sdkStateController?.currentState.isLoading&&(w.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.error,a=!r&&!o;return m` ${N(r,()=>h)} ${N(o,()=>m`<primer-checkout-error></primer-checkout-error>`)} ${N(a,()=>m`<slot name=\"main\" @slotchange=${this.onSlotChange}></slot>${N(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)}}"
85
+ "name": "ie",
86
+ "default": "class extends g{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?io(this.secureHtmlContent)?m`${Xa(this.secureHtmlContent.content)}`:(P.warn(\"PortalDialogComponent: Invalid access token provided for htmlContent. Content will not be rendered.\"),f):f}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>`:f}connectedCallback(){super.connectedCallback(),this.open||this.openDialog()}updated(e){if(super.updated(e),e.has(\"secureHtmlContent\")){let r=this.secureHtmlContent;r&&!io(r)&&(P.error(\"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()}`}}"
87
+ },
88
+ {
89
+ "kind": "variable",
90
+ "name": "ue",
91
+ "default": "class extends g{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 hr(this),this.sdkStateController=new mr(this),this.primerEventsController=new Pt(this),this.styleProcessingController=new fr(this),this.vaultManagerController=new Ut(this),this.cardNetworkController=new sr(this),this.achPaymentEventsController=new Qr(this),new Xr(this)}set jsInitialized(e){this.requestUpdate(),this._jsInitialized=e}get jsInitialized(){return this._jsInitialized}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===ud.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&&(Pi(this.options?.locale)?this.locale=Ti(this.options?.locale):P.warn(\"\\u{1F30E}\\u2757 Unsupported locale provided:\",this.options?.locale,\"- Falling back to default locale `en-GB`\")),_i(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,G({eventName:\"CHECKOUT_FLOW_STARTED\"})),this.previousLoadingState=e,e&&!this._loadingTimeoutId?this._loadingTimeoutId=window.setTimeout(()=>{this.sdkStateController?.currentState.isLoading&&(P.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.error,a=!r&&!o;return m` ${R(r,()=>f)} ${R(o,()=>m`<primer-checkout-error></primer-checkout-error>`)} ${R(a,()=>m`<slot name=\"main\" @slotchange=${this.onSlotChange}></slot>${R(this.hasAssignedContent,()=>f,()=>m`<primer-main></primer-main>`)} `,()=>f)} `}addEventListener(e,r,o){super.addEventListener(e,r,o)}removeEventListener(e,r,o){super.removeEventListener(e,r,o)}}"
59
92
  },
60
93
  {
61
94
  "kind": "function",
62
- "name": "Ia"
95
+ "name": "sn"
63
96
  },
64
97
  {
65
98
  "kind": "function",
66
- "name": "Na"
99
+ "name": "ln"
67
100
  },
68
101
  {
69
102
  "kind": "function",
70
- "name": "Rl"
103
+ "name": "vd"
71
104
  },
72
105
  {
73
106
  "kind": "function",
74
- "name": "Dl"
107
+ "name": "bd"
75
108
  },
76
109
  {
77
110
  "kind": "variable",
78
- "name": "_e",
79
- "default": "class extends g{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in ji)return ji[this.size];let e=parseInt(this.size,10);return isNaN(e)?ji.medium:e}render(){let e=this.getSize(),r=20,o=`0 0 ${r} ${r}`;return this.style.setProperty(\"--spinner-color\",this.color),this.style.setProperty(\"--spinner-size\",`${e}px`),m`<div class=\"spinner-container ${this.compact?\"compact\":\"\"}\"><svg class=\"spinner\" width=\"${e}\" height=\"${e}\" viewBox=\"${o}\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" role=\"status\" aria-label=\"Loading\" ><path d=\"M4.27827 10.002C4.27827 6.84166 6.84019 4.27973 10.0005 4.27973C10.7676 4.27973 11.3894 3.6579 11.3894 2.89084C11.3894 2.12378 10.7676 1.50195 10.0005 1.50195C5.30607 1.50195 1.50049 5.30753 1.50049 10.002C1.50049 14.6964 5.30607 18.502 10.0005 18.502C14.6949 18.502 18.5005 14.6964 18.5005 10.002C18.5005 9.23489 17.8787 8.61306 17.1116 8.61306C16.3445 8.61306 15.7227 9.23489 15.7227 10.002C15.7227 13.1622 13.1608 15.7242 10.0005 15.7242C6.84019 15.7242 4.27827 13.1622 4.27827 10.002Z\" fill=\"currentColor\" class=\"path\" /></svg></div>`}}"
111
+ "name": "Ne",
112
+ "default": "class extends g{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in so)return so[this.size];let e=parseInt(this.size,10);return isNaN(e)?so.medium:e}render(){let e=this.getSize(),r=20,o=`0 0 ${r} ${r}`;return this.style.setProperty(\"--spinner-color\",this.color),this.style.setProperty(\"--spinner-size\",`${e}px`),m`<div class=\"spinner-container ${this.compact?\"compact\":\"\"}\"><svg class=\"spinner\" width=\"${e}\" height=\"${e}\" viewBox=\"${o}\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" role=\"status\" aria-label=\"Loading\" ><path d=\"M4.27827 10.002C4.27827 6.84166 6.84019 4.27973 10.0005 4.27973C10.7676 4.27973 11.3894 3.6579 11.3894 2.89084C11.3894 2.12378 10.7676 1.50195 10.0005 1.50195C5.30607 1.50195 1.50049 5.30753 1.50049 10.002C1.50049 14.6964 5.30607 18.502 10.0005 18.502C14.6949 18.502 18.5005 14.6964 18.5005 10.002C18.5005 9.23489 17.8787 8.61306 17.1116 8.61306C16.3445 8.61306 15.7227 9.23489 15.7227 10.002C15.7227 13.1622 13.1608 15.7242 10.0005 15.7242C6.84019 15.7242 4.27827 13.1622 4.27827 10.002Z\" fill=\"currentColor\" class=\"path\" /></svg></div>`}}"
80
113
  },
81
114
  {
82
115
  "kind": "variable",
83
- "name": "we",
84
- "default": "class extends g{constructor(){super(...arguments);this.focusWithin=!1;this.hasError=!1;this.handleWrapperClick=e=>{if(e.target!==e.currentTarget)return;let r=this.findSlottedPrimerInput();r?r.focus():this.dispatchEvent(new CustomEvent(\"wrapper-click\",{bubbles:!0,composed:!0}))}}findSlottedPrimerInput(){if(!this.inputSlot)return null;let e=this.inputSlot.assignedElements({flatten:!0}),r=e.find(o=>o.tagName.toLowerCase()===\"primer-input\");if(r)return r;for(let o of e){let a=o.querySelector(\"primer-input\");if(a)return a}return null}render(){let e={\"input-slot\":!0,\"focus-within\":this.focusWithin};return m`<div class=\"input-wrapper\"><slot name=\"label\"></slot><div class=\"${K(e)}\" @click=\"${this.handleWrapperClick}\"><slot name=\"input\"></slot></div><slot name=\"error\"></slot></div>`}}"
116
+ "name": "Le",
117
+ "default": "class extends g{constructor(){super(...arguments);this.focusWithin=!1;this.hasError=!1;this.handleWrapperClick=e=>{if(e.target!==e.currentTarget)return;let r=this.findSlottedPrimerInput();r?r.focus():this.dispatchEvent(new CustomEvent(\"wrapper-click\",{bubbles:!0,composed:!0}))}}findSlottedPrimerInput(){if(!this.inputSlot)return null;let e=this.inputSlot.assignedElements({flatten:!0}),r=e.find(o=>o.tagName.toLowerCase()===\"primer-input\");if(r)return r;for(let o of e){let a=o.querySelector(\"primer-input\");if(a)return a}return null}render(){let e={\"input-slot\":!0,\"focus-within\":this.focusWithin};return m`<div class=\"input-wrapper\"><slot name=\"label\"></slot><div class=\"${Z(e)}\" @click=\"${this.handleWrapperClick}\"><slot name=\"input\"></slot></div><slot name=\"error\"></slot></div>`}}"
85
118
  },
86
119
  {
87
120
  "kind": "variable",
88
- "name": "Ve",
121
+ "name": "Be",
89
122
  "default": "class extends g{constructor(){super(...arguments);this.for=\"\";this.disabled=!1}render(){return m`<label for=${this.for}><slot></slot></label>`}}"
90
123
  },
91
124
  {
92
125
  "kind": "variable",
93
- "name": "te",
94
- "default": "class extends g{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>`}}"
126
+ "name": "de",
127
+ "default": "class extends g{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?f:m`<primer-icon name=\"checkmark\" size=\"sm\" color=\"var(--primer-color-brand)\" ></primer-icon>`}renderSpinner(){if(!this.loading)return f;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>`}}"
95
128
  },
96
129
  {
97
130
  "kind": "variable",
98
- "name": "Ye",
131
+ "name": "ze",
99
132
  "default": "class extends g{constructor(){super(...arguments);this.for=\"\";this.active=!0}render(){return m`<span class=\"error\" role=\"alert\" aria-live=\"polite\" id=\"${this.for||\"\"}\" ><slot></slot></span>`}}"
100
133
  },
101
134
  {
102
135
  "kind": "variable",
103
- "name": "Te",
104
- "default": "class extends g{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?Va[this.name]:null;return m`<div style=\"--internal-icon-color: ${this.color}\">${e||m`<slot></slot>`}</div>`}}"
136
+ "name": "Re",
137
+ "default": "class extends g{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?hn[this.name]:null;return m`<div style=\"--internal-icon-color: ${this.color}\">${e||m`<slot></slot>`}</div>`}}"
105
138
  },
106
139
  {
107
140
  "kind": "variable",
108
- "name": "He",
141
+ "name": "Fe",
109
142
  "default": "class extends g{constructor(){super(...arguments);this.type=\"complete\"}render(){return this.type===\"complete\"?m`<primer-icon size=\"lg\" name=\"successful-check\" color=\"var(--primer-color-icon-positive)\" ></primer-icon><p>Checkout complete!</p><p class=\"secondary\"> You'll be redirected to the order confirmation page soon. </p>`:m`<primer-icon size=\"lg\" name=\"failure-icon\" color=\"var(--primer-color-icon-negative)\" ></primer-icon><p>Payment failed</p>${this.description?m`<p class=\"secondary\">${this.description}</p>`:m`<p class=\"secondary\">Something went wrong.</p>`} `}}"
110
143
  },
111
144
  {
112
145
  "kind": "variable",
113
- "name": "D",
146
+ "name": "$",
114
147
  "default": "class extends g{constructor(){super(...arguments);this.value=\"\";this.placeholder=\"\";this.disabled=!1;this.name=\"\";this.type=\"text\";this.required=!1;this.readonly=!1;this.pattern=\"\";this.min=\"\";this.max=\"\";this.step=\"\";this.autocomplete=\"\";this._id=\"\";this.hasFocus=!1;this.hasError=!1;this.handleInput=e=>{e.stopPropagation();let r=e.target;this.value=r.value;let o=new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0});this.dispatchEvent(o)};this.handleChange=e=>{e.stopPropagation();let r=e.target;this.value=r.value;let o=new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0});this.dispatchEvent(o)};this.handleFocus=()=>{this.hasFocus=!0,this.dispatchEvent(new FocusEvent(\"focus\",{bubbles:!0,composed:!0}))};this.handleBlur=()=>{this.hasFocus=!1,this.dispatchEvent(new FocusEvent(\"blur\",{bubbles:!0,composed:!0}))};this.handleInvalid=e=>{e.stopPropagation(),this.hasError=!0,this.dispatchEvent(new Event(\"invalid\",{bubbles:!0,composed:!0}))}}get id(){return this._id}set id(e){this._id=e,this.setAttribute(\"id\",e)}focus(e){this.inputElement?.focus(e)}blur(){this.inputElement?.blur()}select(){this.inputElement?.select()}setSelectionRange(e,r,o){this.inputElement?.setSelectionRange(e,r,o)}get validity(){return this.inputElement?.validity||{}}get validationMessage(){return this.inputElement?.validationMessage||\"\"}checkValidity(){return this.inputElement?.checkValidity()||!1}reportValidity(){return this.inputElement?.reportValidity()||!1}render(){let e={input:!0,\"input--focused\":this.hasFocus,\"input--disabled\":this.disabled,\"input--error\":this.hasError,\"input--readonly\":this.readonly},r=Object.entries(e).filter(([,o])=>o).map(([o])=>o).join(\" \");return m`<input part=\"input\" class=${r} .value=${this.value} .type=${this.type} ?disabled=${this.disabled} ?required=${this.required} ?readonly=${this.readonly} placeholder=${this.placeholder} pattern=${this.pattern} minlength=${this.minlength??\"\"} maxlength=${this.maxlength??\"\"} min=${this.min} max=${this.max} step=${this.step} autocomplete=${this.autocomplete} name=${this.name} id=${this.id} @input=${this.handleInput} @change=${this.handleChange} @focus=${this.handleFocus} @blur=${this.handleBlur} @invalid=${this.handleInvalid} />`}addEventListener(e,r,o){super.addEventListener(e,r,o)}removeEventListener(e,r,o){super.removeEventListener(e,r,o)}}"
115
148
  },
116
149
  {
117
150
  "kind": "variable",
118
- "name": "re",
151
+ "name": "ce",
119
152
  "default": "class extends g{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>`}}"
120
153
  },
121
154
  {
122
155
  "kind": "variable",
123
- "name": "Me",
124
- "default": "class extends g{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=${K(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>`}}"
156
+ "name": "Oe",
157
+ "default": "class extends g{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 f;let e={\"error-message\":!0,hidden:!this.visible};return m`<div part=\"error-message\" class=${Z(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>`}}"
125
158
  },
126
159
  {
127
160
  "kind": "variable",
128
- "name": "rt",
161
+ "name": "lt",
129
162
  "default": "class extends g{constructor(){super(...arguments);this._id=`d${Math.random().toString(36).substring(7)}`;this._handleSlotChange=e=>{let o=e.target.assignedNodes();if(!o.length)return;let a=this.getContainer();o.forEach(n=>a.appendChild(n))}}get id(){return this._id}getContainer(){let e=document.querySelector(`#${this._id}`);return e||(e=document.createElement(\"div\"),e.id=this._id,document.body.appendChild(e),this._setupEventListeners(e)),e}_setupEventListeners(e){[\"primer-ach-error\",\"primer-ach-bank-details-collected\",\"primer-ach-mandate-confirmed\",\"primer-ach-mandate-declined\",\"primer-dialog-close\"].forEach(r=>{e.addEventListener(r,o=>{o.stopPropagation(),this.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:o.detail}))})})}disconnectedCallback(){super.disconnectedCallback(),this.getContainer().remove()}render(){return m`<slot @slotchange=${this._handleSlotChange}></slot>`}}"
130
163
  },
131
164
  {
132
165
  "kind": "variable",
133
- "name": "ge",
134
- "default": "class extends g{constructor(){super(...arguments);this.size=\"flex\";this.showCloseButton=!0;this._animationState=\"entering\";this._isVisible=!1;this._handleCloseClick=()=>{this._startExitAnimation()}}startExitAnimation(){this._startExitAnimation()}connectedCallback(){super.connectedCallback(),document.body.style.overflow=\"hidden\",this._startEnterAnimation()}disconnectedCallback(){super.disconnectedCallback(),document.body.style.overflow=\"\",this._animationTimeout&&clearTimeout(this._animationTimeout)}_startEnterAnimation(){this._animationState=\"entering\",this._isVisible=!0,requestAnimationFrame(()=>{this._animationTimeout=window.setTimeout(()=>{this._animationState=\"entered\"},500)})}_startExitAnimation(){this._animationTimeout&&clearTimeout(this._animationTimeout),this._animationState=\"exiting\",this._animationTimeout=window.setTimeout(()=>{this._animationState=\"exited\",this._isVisible=!1,this.dispatchEvent(new CustomEvent(\"primer-dialog-close\",{bubbles:!0,composed:!0}))},500)}render(){return this._isVisible?m`<div class=${K({backdrop:!0,\"backdrop--entering\":this._animationState===\"entering\",\"backdrop--entered\":this._animationState===\"entered\",\"backdrop--exiting\":this._animationState===\"exiting\"})} @click=${e=>{e.preventDefault()}} ><div class=${K({dialog:!0,[this.size]:!0,\"dialog--entering\":this._animationState===\"entering\",\"dialog--entered\":this._animationState===\"entered\",\"dialog--exiting\":this._animationState===\"exiting\"})} ><div class=\"header\">${this.showCloseButton?m`<primer-button variant=\"tertiary\" @click=${this._handleCloseClick} ><primer-icon name=\"close\"></primer-icon></primer-button>`:\"\"}</div><div class=\"content\"><slot></slot></div></div></div>`:m``}}"
166
+ "name": "Ae",
167
+ "default": "class extends g{constructor(){super(...arguments);this.size=\"flex\";this.showCloseButton=!0;this._animationState=\"entering\";this._isVisible=!1;this._handleCloseClick=()=>{this._startExitAnimation()}}startExitAnimation(){this._startExitAnimation()}connectedCallback(){super.connectedCallback(),document.body.style.overflow=\"hidden\",this._startEnterAnimation()}disconnectedCallback(){super.disconnectedCallback(),document.body.style.overflow=\"\",this._animationTimeout&&clearTimeout(this._animationTimeout)}_startEnterAnimation(){this._animationState=\"entering\",this._isVisible=!0,requestAnimationFrame(()=>{this._animationTimeout=window.setTimeout(()=>{this._animationState=\"entered\"},500)})}_startExitAnimation(){this._animationTimeout&&clearTimeout(this._animationTimeout),this._animationState=\"exiting\",this._animationTimeout=window.setTimeout(()=>{this._animationState=\"exited\",this._isVisible=!1,this.dispatchEvent(new CustomEvent(\"primer-dialog-close\",{bubbles:!0,composed:!0}))},500)}render(){return this._isVisible?m`<div class=${Z({backdrop:!0,\"backdrop--entering\":this._animationState===\"entering\",\"backdrop--entered\":this._animationState===\"entered\",\"backdrop--exiting\":this._animationState===\"exiting\"})} @click=${e=>{e.preventDefault()}} ><div class=${Z({dialog:!0,[this.size]:!0,\"dialog--entering\":this._animationState===\"entering\",\"dialog--entered\":this._animationState===\"entered\",\"dialog--exiting\":this._animationState===\"exiting\"})} ><div class=\"header\">${this.showCloseButton?m`<primer-button variant=\"tertiary\" @click=${this._handleCloseClick} ><primer-icon name=\"close\"></primer-icon></primer-button>`:\"\"}</div><div class=\"content\"><slot></slot></div></div></div>`:m``}}"
135
168
  },
136
169
  {
137
170
  "kind": "variable",
138
- "name": "G",
139
- "default": "class extends g{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=A(\"pay_with\",{id:\"pay_with\"});this._paymentMethodManagerTask=new L(this,{task:async([e,r])=>{if(!e||!r)return I;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){w.error(\"Failed to start Klarna payment\",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){w.error(\"Failed to render Klarna category\",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=${K({\"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=${K({\"klarna-pay-button\":!0,loading:!!this.sdkState?.isProcessing,disabled:!this.selectedCategory||this.disabled})} ?disabled=${!this.selectedCategory||this.sdkState?.isProcessing||this.disabled} @click=${()=>this.startKlarnaPayment()} >${A(\"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>${A(\"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})}}"
171
+ "name": "X",
172
+ "default": "class extends g{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=S(\"pay_with\",{id:\"pay_with\"});this._paymentMethodManagerTask=new D(this,{task:async([e,r])=>{if(!e||!r)return L;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){P.error(\"Failed to start Klarna payment\",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){P.error(\"Failed to render Klarna category\",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=${Z({\"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>`:f}<button class=${Z({\"klarna-pay-button\":!0,loading:!!this.sdkState?.isProcessing,disabled:!this.selectedCategory||this.disabled})} ?disabled=${!this.selectedCategory||this.sdkState?.isProcessing||this.disabled} @click=${()=>this.startKlarnaPayment()} >${S(\"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>${S(\"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>`:f})}}"
140
173
  },
141
174
  {
142
175
  "kind": "variable",
143
- "name": "ke",
144
- "default": "class extends g{constructor(){super(...arguments);this.type=void 0;this.disabled=!1;this.paymentMethods=null}render(){if(!this.type)return h;let e=this.paymentMethods?.get(this.type);if(!e)return h;switch(e?.managerType){case\"CARD\":return m`<primer-card-form ?disabled=${this.disabled} ></primer-card-form>`;case\"NATIVE\":return m`<primer-native-payment .paymentMethod=${e} ?disabled=${this.disabled} ></primer-native-payment>`;case\"REDIRECT\":return m`<primer-redirect-payment .paymentMethod=${e} ?disabled=${this.disabled} ></primer-redirect-payment>`;case\"KLARNA\":return m`<primer-klarna ?disabled=${this.disabled}></primer-klarna>`;case\"ACH\":return m`<primer-dynamic-payment .paymentMethod=${e} ></primer-dynamic-payment>`;default:return h}}}"
176
+ "name": "Se",
177
+ "default": "class extends g{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&&G({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:this.type})}render(){if(!this.type)return f;let e=this.paymentMethods?.get(this.type);if(!e)return f;let r;switch(e?.managerType){case\"CARD\":r=m`<primer-card-form ?disabled=${this.disabled} ></primer-card-form>`;break;case\"NATIVE\":r=m`<primer-native-payment .paymentMethod=${e} ?disabled=${this.disabled} ></primer-native-payment>`;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 f}return m`<div @click=${this.handleClick}>${r}</div>`}}"
145
178
  },
146
179
  {
147
180
  "kind": "variable",
148
- "name": "de",
149
- "default": "class extends g{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>`}}"
181
+ "name": "ve",
182
+ "default": "class extends g{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?f: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>`}}"
150
183
  },
151
184
  {
152
185
  "kind": "variable",
153
- "name": "ne",
154
- "default": "class extends g{constructor(){super(...arguments);this.formController=new Gr(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 L(this,{task:([e])=>e!==\"STRIPE_ACH\"?I: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>${A(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${A(\"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\">${A(\"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\">${A(\"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\">${A(\"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>${A(\"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} >${A(\"stripe_ach_user_details_collection_continue_button\",{id:\"stripe_ach_user_details_collection_continue_button\"})}</primer-button></form>`}renderMandate(){return m`<h2>${A(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${this.clientOptions?.stripe?.mandateData.fullMandateText??A(\"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} >${A(\"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} >${A(\"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})}}"
186
+ "name": "he",
187
+ "default": "class extends g{constructor(){super(...arguments);this.formController=new ei(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\"?L: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>${S(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${S(\"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\">${S(\"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:f}</primer-input-error></primer-input-wrapper><primer-input-wrapper .hasError=${this.formController.hasError.lastName} ><primer-input-label slot=\"label\">${S(\"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:f}</primer-input-error></primer-input-wrapper></div><primer-input-wrapper .hasError=${this.formController.hasError.emailAddress} ><primer-input-label slot=\"label\">${S(\"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:f}</primer-input-error></primer-input-wrapper><p>${S(\"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} >${S(\"stripe_ach_user_details_collection_continue_button\",{id:\"stripe_ach_user_details_collection_continue_button\"})}</primer-button></form>`}renderMandate(){return m`<h2>${S(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${this.clientOptions?.stripe?.mandateData.fullMandateText??S(\"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} >${S(\"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} >${S(\"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():f})}}"
155
188
  },
156
189
  {
157
190
  "kind": "variable",
158
- "name": "ce",
159
- "default": "class extends g{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.open=!1;this._paymentMethodManagerTask=new L(this,{task:([e,r])=>!e||!r?I:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new L(this,{task:([e,r])=>{if(!e||!r)return I;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}:I},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new L(this,{task:([e,r])=>!e||!r?I:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?Qt(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),A(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=${K({loading:!!this.sdkState?.isProcessing,reverse:!0})} title=\"${A(\"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()} `)})}}"
191
+ "name": "be",
192
+ "default": "class extends g{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?L:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new D(this,{task:([e,r])=>{if(!e||!r)return L;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}:L},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new D(this,{task:([e,r])=>!e||!r?L:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?ar(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),S(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>`:f}render(){return this._setupTasks.render({error:()=>f,complete:({assetsConfig:e})=>(this.style.setProperty(\"--dynamic-payment-button-bg-color\",e.backgroundColor),m`<primer-button @click=\"${()=>this.start()}\" class=${Z({loading:!!this.sdkState?.isProcessing,reverse:!0})} title=\"${S(\"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()} `)})}}"
160
193
  },
161
194
  {
162
195
  "kind": "variable",
163
- "name": "pe",
164
- "default": "class extends g{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this._paymentMethodManagerTask=new L(this,{task:([e,r])=>!e||!r?I:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new L(this,{task:([e,r])=>{if(!e||!r)return I;let o=r.getPaymentMethodConfiguration(e);if(!o)return I;let a=o.displayMetadata.button.backgroundColor.colored??o.displayMetadata.button.backgroundColor.light,n=o.displayMetadata.button.iconPositionRelativeToText||\"START\";return{backgroundColor:a,name:o.name,displayName:this._legacyGetButtonLabel(o.displayMetadata.button.text),iconUrl:o.displayMetadata.button.iconUrl.colored??o.displayMetadata.button.iconUrl.light,iconPosition:n}},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new L(this,{task:([e,r])=>!e||!r?I:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?Qt(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),A(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=${K(r)} title=\"${A(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ?disabled=${this.disabled} >${o}</primer-button>`}})}}"
196
+ "name": "Ce",
197
+ "default": "class extends g{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?L:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new D(this,{task:([e,r])=>{if(!e||!r)return L;let o=r.getPaymentMethodConfiguration(e);if(!o)return L;let a=o.displayMetadata.button.backgroundColor.colored??o.displayMetadata.button.backgroundColor.light,n=o.displayMetadata.button.iconPositionRelativeToText||\"START\";return{backgroundColor:a,name:o.name,displayName:this._legacyGetButtonLabel(o.displayMetadata.button.text),iconUrl:o.displayMetadata.button.iconUrl.colored??o.displayMetadata.button.iconUrl.light,iconPosition:n}},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new D(this,{task:([e,r])=>!e||!r?L:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?ar(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),S(r,{id:r})}startRedirectPayment(){this.disabled||this._paymentMethodManagerTask.value&&this._paymentMethodManagerTask.value.start()}render(){return this._setupTasks.render({error:()=>f,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=${Z(r)} title=\"${S(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ?disabled=${this.disabled} >${o}</primer-button>`}})}}"
165
198
  },
166
199
  {
167
200
  "kind": "variable",
168
- "name": "se",
169
- "default": "class extends g{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?Ki(this.secureHtmlContent)?m`${Qa(this.secureHtmlContent.content)}`:(w.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&&!Ki(r)&&(w.error(\"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()}`}}"
201
+ "name": "Q",
202
+ "default": "class extends g{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 ti(r,this.headlessUtils,this.vaultManagerContext))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.vaultManagerContext?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=S(\"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:S(\"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:S(\"payment_processing_error\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};new Lt(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 lo(r).description||\"\"}catch{return\"\"}}renderLoadingOverlay(){return m`<div class=\"loading-overlay\" ${ct({...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 f;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} ${ct({...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?f:m`<primer-vault-payment-method-item .paymentMethod=${e} .isEditMode=${this.isEditMode} @delete-payment-method=${this.handleDeletePaymentMethod} ${ct({...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))} ${R(r,()=>m`<div class=\"submit-button-container\"><primer-vault-payment-submit class=\"submit-button\" @primer-vault-payment-error=${this.handlePaymentError} ${ct({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-payment-submit></div>`,()=>f)}</div>`}render(){if(!this.vaultManagerContext?.enabled)return f;let e=this.vaultManagerContext.vaultedPaymentMethods.length>0,r=this.vaultManagerContext.isLoading,o=this.vaultManagerContext.isUpdating;return m` ${R(!this.vaultManagerContext?.showEmptyState&&!e,()=>f,()=>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>${R(this.errorMessage,()=>m`<primer-vault-error-message .errorMessage=${this.errorMessage} @close-error=${this.handleCloseError} ${ct({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-error-message>`,()=>f)}<div class=\"vault-manager-content\">${R(!r&&!e,()=>m`<div class=\"content-container\"><primer-vault-empty-state ${ct({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-empty-state></div>`,()=>f)} ${R(!r&&e,()=>m`<div class=\"content-container\">${R(this.deletePaymentMethodId,()=>this.renderDeleteConfirmation(),()=>this.renderPaymentMethodList())}</div>`,()=>f)}</div>${R(o,()=>this.renderLoadingOverlay(),()=>f)}</div></slot>`)} `}}"
170
203
  },
171
204
  {
172
205
  "kind": "variable",
173
- "name": "q",
174
- "default": "class extends g{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 qr(r,this.headlessUtils,this.vaultManagerContext))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.vaultManagerContext?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=A(\"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:A(\"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:A(\"payment_processing_error\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};new kt(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 Gi(r).description||\"\"}catch{return\"\"}}renderLoadingOverlay(){return m`<div class=\"loading-overlay\" ${ot({...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} ${ot({...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} ${ot({...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))} ${N(r,()=>m`<div class=\"submit-button-container\"><primer-vault-payment-submit class=\"submit-button\" @primer-vault-payment-error=${this.handlePaymentError} ${ot({...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` ${N(!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>${N(this.errorMessage,()=>m`<primer-vault-error-message .errorMessage=${this.errorMessage} @close-error=${this.handleCloseError} ${ot({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-error-message>`,()=>h)}<div class=\"vault-manager-content\">${N(!r&&!e,()=>m`<div class=\"content-container\"><primer-vault-empty-state ${ot({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-empty-state></div>`,()=>h)} ${N(!r&&e,()=>m`<div class=\"content-container\">${N(this.deletePaymentMethodId,()=>this.renderDeleteConfirmation(),()=>this.renderPaymentMethodList())}</div>`,()=>h)}</div>${N(o,()=>this.renderLoadingOverlay(),()=>h)}</div></slot>`)} `}}"
206
+ "name": "pe",
207
+ "default": "class extends g{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 ti(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:()=>f,complete:e=>{let r=this.isSelected()?\"checked\":\"default\",o=!1,a=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>${R(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>`,()=>f)}</primer-button>${this.isEditMode?m`<primer-button variant=\"tertiary\" class=\"delete-button\" @click=${this.handleDeleteClick} aria-label=${`${S(\"delete\",{id:\"delete\"})} ${a}`} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></primer-button>`:f}</div></div>`}})}}"
175
208
  },
176
209
  {
177
210
  "kind": "variable",
178
- "name": "ie",
179
- "default": "class extends g{constructor(){super(...arguments);this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.paymentMethod=null;this.isEditMode=!1;this._getAssetsTask=new L(this,{task:async([e,r,o])=>await qr(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,a=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>${N(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=${`${A(\"delete\",{id:\"delete\"})} ${a}`} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></primer-button>`:h}</div></div>`}})}}"
211
+ "name": "_e",
212
+ "default": "class extends g{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>${S(\"previouslyUsed\",{id:\"previouslyUsed\"})}</h3>${this.hasPaymentMethods?m`<primer-button variant=\"tertiary\" class=\"edit-button ${this.isEditMode?\"active\":\"\"}\" @click=${this.toggleEditMode} aria-label=${this.isEditMode?S(\"confirm\",{id:\"confirm\"}):S(\"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>`:f}</div>`}}"
180
213
  },
181
214
  {
182
215
  "kind": "variable",
183
- "name": "ve",
184
- "default": "class extends g{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>${A(\"previouslyUsed\",{id:\"previouslyUsed\"})}</h3>${this.hasPaymentMethods?m`<primer-button variant=\"tertiary\" class=\"edit-button ${this.isEditMode?\"active\":\"\"}\" @click=${this.toggleEditMode} aria-label=${this.isEditMode?A(\"confirm\",{id:\"confirm\"}):A(\"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>`}}"
216
+ "name": "fe",
217
+ "default": "class extends g{constructor(){super(...arguments);this.isDeleting=!1;this.paymentMethodId=\"\";this.paymentMethodName=\"\";this.vaultManager=null;this.handleConfirmClick=()=>{this.dispatchEvent(new CustomEvent(\"confirm-delete\",{bubbles:!0,composed:!0}))};this.handleCancelClick=()=>{this.dispatchEvent(new CustomEvent(\"cancel-delete\",{bubbles:!0,composed:!0}))}}render(){return m`<div class=\"delete-confirmation\"><p class=\"delete-confirmation-text\"> Are you sure you want to delete this payment method? </p><div class=\"delete-actions\"><primer-button variant=\"secondary\" @click=${this.handleCancelClick} ?disabled=${this.isDeleting} >${S(\"cancel\",{id:\"cancel\"})}</primer-button><primer-button @click=${this.handleConfirmClick} ?disabled=${this.isDeleting} >${this.isDeleting?S(\"deleting\",{id:\"deleting\"}):S(\"confirmVaultedPaymentMethodDeletion\",{id:\"confirmVaultedPaymentMethodDeletion\"})}</primer-button></div></div>`}}"
185
218
  },
186
219
  {
187
220
  "kind": "variable",
188
- "name": "le",
189
- "default": "class extends g{constructor(){super(...arguments);this.isDeleting=!1;this.paymentMethodId=\"\";this.paymentMethodName=\"\";this.vaultManager=null;this.handleConfirmClick=()=>{this.dispatchEvent(new CustomEvent(\"confirm-delete\",{bubbles:!0,composed:!0}))};this.handleCancelClick=()=>{this.dispatchEvent(new CustomEvent(\"cancel-delete\",{bubbles:!0,composed:!0}))}}render(){return m`<div class=\"delete-confirmation\"><p class=\"delete-confirmation-text\"> Are you sure you want to delete this payment method? </p><div class=\"delete-actions\"><primer-button variant=\"secondary\" @click=${this.handleCancelClick} ?disabled=${this.isDeleting} >${A(\"cancel\",{id:\"cancel\"})}</primer-button><primer-button @click=${this.handleConfirmClick} ?disabled=${this.isDeleting} >${this.isDeleting?A(\"deleting\",{id:\"deleting\"}):A(\"confirmVaultedPaymentMethodDeletion\",{id:\"confirmVaultedPaymentMethodDeletion\"})}</primer-button></div></div>`}}"
221
+ "name": "je",
222
+ "default": "class extends g{render(){return m`<div class=\"empty-state\"><p>${S(\"savedPaymentMethodsEmpty\",{id:\"savedPaymentMethodsEmpty\"})}</p></div>`}}"
190
223
  },
191
224
  {
192
225
  "kind": "variable",
193
- "name": "Ue",
194
- "default": "class extends g{render(){return m`<div class=\"empty-state\"><p>${A(\"savedPaymentMethodsEmpty\",{id:\"savedPaymentMethodsEmpty\"})}</p></div>`}}"
226
+ "name": "De",
227
+ "default": "class extends g{constructor(){super(...arguments);this.errorMessage=\"\";this.handleDismiss=()=>{this.dispatchEvent(new CustomEvent(\"close-error\",{bubbles:!0,composed:!0}))}}render(){return m`<div class=\"error-message\"><div class=\"error-content\"><primer-icon name=\"warning\" size=\"sm\" color=\"var(--primer-color-red-500)\" ></primer-icon><p>${this.errorMessage}</p></div><button @click=${this.handleDismiss} aria-label=${S(\"closeErrorMessage\",{id:\"closeErrorMessage\"})} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></button></div>`}}"
195
228
  },
196
229
  {
197
230
  "kind": "variable",
198
- "name": "Ie",
199
- "default": "class extends g{constructor(){super(...arguments);this.errorMessage=\"\";this.handleDismiss=()=>{this.dispatchEvent(new CustomEvent(\"close-error\",{bubbles:!0,composed:!0}))}}render(){return m`<div class=\"error-message\"><div class=\"error-content\"><primer-icon name=\"warning\" size=\"sm\" color=\"var(--primer-color-red-500)\" ></primer-icon><p>${this.errorMessage}</p></div><button @click=${this.handleDismiss} aria-label=${A(\"closeErrorMessage\",{id:\"closeErrorMessage\"})} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></button></div>`}}"
231
+ "name": "W",
232
+ "default": "class extends g{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:S(\"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}`:f;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>`}}"
200
233
  },
201
234
  {
202
235
  "kind": "variable",
203
236
  "name": "j",
204
- "default": "class extends g{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:A(\"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>`}}"
205
- },
206
- {
207
- "kind": "variable",
208
- "name": "z",
209
- "default": "class extends g{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 L(this,{task:([e,r])=>!e||!r||e.paymentMethodType!==\"PAYMENT_CARD\"||!e.paymentInstrumentData?.network||r.createCvvInput===null?I:{network:e.paymentInstrumentData.network,createCvvInput:r.createCvvInput},args:()=>[this.paymentMethod,this.vaultManagerFormContext]});this.cvvContainerId=`cvv-container-${Math.random().toString(36).substring(2,9)}`,new L(this,{task:async([e])=>{if(!e)return I;await this.updateComplete;let r=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!r)return;let o=ei(this.computedStyles),a=o?{input:{base:o}}:void 0,n={cardNetwork:e.network,container:r,name:\"cvv\",placeholder:\"123\",style:a};this.cvvInput=await e.createCvvInput?.(n)??null,this.cvvInput&&(this.cvvInput.focus(),this.cvvError=this.cvvInput.metadata.error||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.error||null)}onBlur(){this.cvvInput&&(this.cvvInputIsBlurred=!0,this.cvvError=this.cvvInput.metadata.error||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>${N(this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred),()=>m`<primer-input-error slot=\"error\">${this.cvvError}</primer-input-error>`)}</primer-input-wrapper></div>`})}}"
237
+ "default": "class extends g{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?L:{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 L;await this.updateComplete;let r=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!r)return;let o=si(this.computedStyles),a=o?{input:{base:o}}:void 0,n={cardNetwork:e.network,container:r,name:\"cvv\",placeholder:\"123\",style:a};this.cvvInput=await e.createCvvInput?.(n)??null,this.cvvInput&&(this.cvvInput.focus(),this.cvvError=this.cvvInput.metadata.error||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.error||null)}onBlur(){this.cvvInput&&(this.cvvInputIsBlurred=!0,this.cvvError=this.cvvInput.metadata.error||null,this.isFocused=!1)}onFocus(){this.isFocused=!0}render(){return this._setupCVVIframe.render({error:()=>f,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>${R(this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred),()=>m`<primer-input-error slot=\"error\">${this.cvvError}</primer-input-error>`)}</primer-input-wrapper></div>`})}}"
210
238
  },
211
239
  {
212
240
  "kind": "variable",
213
- "name": "Ne",
214
- "default": "class extends g{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return h;let e=this.assetConfig.description,r=this.assetConfig.icon,o=N(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===\"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}}"
241
+ "name": "$e",
242
+ "default": "class extends g{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return f;let e=this.assetConfig.description,r=this.assetConfig.icon,o=R(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===\"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>`:f}}"
215
243
  },
216
244
  {
217
245
  "kind": "variable",
218
- "name": "oe",
219
- "default": "class extends g{constructor(){super(...arguments);this.hideLabels=!1;this.disabled=!1;this.hasAssignedContent=!1;this.selectedCardNetwork=null;this.paymentManagers=new Map;this.clientOptions=null;this.headlessUtils=null;this.cardFormProvider=new B(this,{context:It,initialValue:null});this.eventsController=new Et(this);this.inputControllers=new Map;this.setupCardFormTask=new L(this,{task:([e])=>{if(!e?.manager)return I;let{manager:r}=e,o=r.createHostedInputs(),{cardNumberInput:a,expiryInput:n,cvvInput:s}=o;return this.cardFormProvider.setValue({cardholderNameInput:o.cardholderNameInput,cardNumberInput:a,expiryInput:n,cvvInput:s,setCardholderName:d=>{r.setCardholderName(d),this.shouldRequireCardholderName&&r.validate?.().then(c=>{let f=c?.validationErrors?.find(b=>b.name===wn.cardholderName),C=this.inputControllers.get(\"cardholderName\");C&&C.updateMetaFromValidation({valid:!1,error:f?.message||f?.error||null,errorCode:f?.message||f?.error||null})})},setCardNetwork:d=>{this.selectedCardNetwork=d},validate:()=>r.validate(),submit:d=>r.submit(d),hideLabels:this.hideLabels,disabled:this.disabled,setSubmissionState:d=>{this.inputControllers.forEach(c=>{c.setSubmitted(d)})},propagateValidationErrors:d=>{d&&d.forEach(c=>{let u=c.field||c.name,f=c.message||c.error,C=wn[u];if(C){let b=this.inputControllers.get(C);if(b){let x={valid:!1,error:f,errorCode:f};b.updateMetaFromValidation(x)}}})},registerInputController:(d,c)=>{this.inputControllers.set(d,c)},unregisterInputController:d=>{this.inputControllers.delete(d)}}),!0},args:()=>[this.paymentManagers.get(\"PAYMENT_CARD\")]});this.handleSlotButtonClick=e=>{let o=e.target.closest(\"button, primer-button\");if(!o)return;let a=o;this.isSubmitButton(a)&&(e.preventDefault(),this.submitCardPayment())};this.handleDirectSubmit=e=>{e.stopPropagation(),this.submitCardPayment()};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){super.updated(e),(e.has(\"hideLabels\")||e.has(\"disabled\"))&&this.cardFormProvider.value&&this.cardFormProvider.setValue({...this.cardFormProvider.value,hideLabels:this.hideLabels,disabled:this.disabled})}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}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:card-submit\",this.handleDirectSubmit)}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:card-submit\",this.handleDirectSubmit),super.disconnectedCallback()}isSubmitButton(e){let r=e.tagName.toLowerCase(),o=r===\"button\",a=r===\"primer-button\";return o&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||a&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitCardPayment(){let e=this.cardFormProvider.value;if(!e||this.disabled)return;e.setSubmissionState?.(!0);let r=await e.validate?.();if(r?.valid){let o=this.selectedCardNetwork?{cardNetwork:this.selectedCardNetwork}:void 0,a=await e.submit?.(o);this.eventsController.dispatchFormSubmitSuccess(a)}else{let o=r?.validationErrors;e.propagateValidationErrors?.(o||[]),this.cardFormProvider.setValue({...e,errors:o}),this.eventsController.dispatchFormSubmitErrors(o)}}render(){return this.setupCardFormTask.status===Ze.ERROR||this.setupCardFormTask.status===Ze.INITIAL?h:m`<form @submit=${this.handleFormSubmit}><slot name=\"card-form-content\" @slotchange=${this.onSlotChange}></slot>${this.setupCardFormTask.render({complete:()=>N(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>${N(this.shouldShowCardholderName,()=>m`<primer-input-card-holder-name></primer-input-card-holder-name>`,()=>h)}</div><primer-card-form-submit></primer-card-form-submit>`)})}</form>`}}"
246
+ "name": "ee",
247
+ "default": "class extends g{constructor(){super(...arguments);this.hideLabels=!1;this.disabled=!1;this.hasAssignedContent=!1;this.selectedCardNetwork=null;this.paymentMethodSelectionSent=!1;this.paymentManagers=new Map;this.clientOptions=null;this.headlessUtils=null;this.analyticsUtils=null;this.contextEventsController=null;this.cardFormProvider=new F(this,{context:Rt,initialValue:null});this.eventsController=new Pt(this);this._contextCardSubmitListener=null;this._isHandlingContextEvent=!1;this.inputControllers=new Map;this.setupCardFormTask=new D(this,{task:([e])=>{if(!e?.manager)return L;let{manager:r}=e,o=r.createHostedInputs(),{cardNumberInput:a,expiryInput:n,cvvInput:l}=o;return this.cardFormProvider.setValue({cardholderNameInput:o.cardholderNameInput,cardNumberInput:a,expiryInput:n,cvvInput:l,setCardholderName:s=>{r.setCardholderName(s),this.shouldRequireCardholderName&&r.validate?.().then(c=>{let h=c?.validationErrors?.find(E=>E.name===es.cardholderName),b=this.inputControllers.get(\"cardholderName\");b&&b.updateMetaFromValidation({valid:!1,error:h?.message||h?.error||null,errorCode:h?.message||h?.error||null})})},setCardNetwork:s=>{this.selectedCardNetwork=s},validate:()=>r.validate(),submit:s=>r.submit(s),hideLabels:this.hideLabels,disabled:this.disabled,setSubmissionState:s=>{this.inputControllers.forEach(c=>{c.setSubmitted(s)})},propagateValidationErrors:s=>{s&&s.forEach(c=>{let u=c.field||c.name,h=c.message||c.error,b=es[u];if(b){let E=this.inputControllers.get(b);if(E){let A={valid:!1,error:h,errorCode:h};E.updateMetaFromValidation(A)}}})},registerInputController:(s,c)=>{this.inputControllers.set(s,c)},unregisterInputController:s=>{this.inputControllers.delete(s)},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 a=o;this.isSubmitButton(a)&&(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,G({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\"),a=e?.meta?.dirty===!0,n=r?.meta?.dirty===!0,l=o?.meta?.dirty===!0,s=!0;this.shouldRequireCardholderName&&(s=this.inputControllers.get(\"cardholderName\")?.meta?.dirty===!0),a&&n&&l&&s&&(this.sendPaymentDetailsEnteredEvent(),this.paymentDetailsEnteredSent=!0)}sendPaymentDetailsEnteredEvent(){G({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\",a=r===\"primer-button\";return o&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||a&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitCardPayment(){let e=this.cardFormProvider.value;if(!e||this.disabled)return;e.setSubmissionState?.(!0);let r=await e.validate?.();if(r?.valid){let o=this.selectedCardNetwork?{cardNetwork:this.selectedCardNetwork}:void 0;await e.submit?.(o);let a={success:!0};this.eventsController.dispatchFormSubmitSuccess(a)}else{let o=r?.validationErrors;e.propagateValidationErrors?.(o||[]),this.cardFormProvider.setValue({...e,errors:o}),this.eventsController.dispatchFormSubmitErrors(o)}}render(){return this.setupCardFormTask.status===it.ERROR||this.setupCardFormTask.status===it.INITIAL?f:m`<form @submit=${this.handleFormSubmit}><slot name=\"card-form-content\" @slotchange=${this.onSlotChange}></slot>${this.setupCardFormTask.render({complete:()=>R(this.hasAssignedContent,()=>f,()=>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>${R(this.shouldShowCardholderName,()=>m`<primer-input-card-holder-name></primer-input-card-holder-name>`,()=>f)}</div><primer-card-form-submit></primer-card-form-submit>`)})}</form>`}}"
220
248
  },
221
249
  {
222
250
  "kind": "variable",
223
- "name": "ze",
224
- "default": "class extends J{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===Ze.ERROR)return h;let e=this.getError();return m`<primer-input-wrapper .focusWithin=\"${this.hostedInputController.meta.active}\" .hasError=${!!e} >${N(!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>${N(e,r=>m`<primer-input-error slot=\"error\">${A(r,{id:r})}</primer-input-error>`,()=>h)}</primer-input-wrapper>`}render(){return this.renderInput()}}"
251
+ "name": "Ke",
252
+ "default": "class extends oe{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===it.ERROR)return f;let e=this.getError();return m`<primer-input-wrapper .focusWithin=\"${this.hostedInputController.meta.active}\" .hasError=${!!e} >${R(!this.cardFormContext?.hideLabels,()=>m`<primer-input-label slot=\"label\" >${this.label}</primer-input-label >`,()=>f)}<div slot=\"input\" class=\"card-number-container\" aria-label=\"${this.ariaLabel}\" ><div id=\"${this.config.containerSelector.substring(1)}\"></div><div class=\"network-selector-container\"><primer-card-network-selector @network-selected=${this.handleNetworkSelected} ></primer-card-network-selector></div></div>${R(e,r=>m`<primer-input-error slot=\"error\">${S(r,{id:r})}</primer-input-error>`,()=>f)}</primer-input-wrapper>`}render(){return this.renderInput()}}"
225
253
  },
226
254
  {
227
255
  "kind": "variable",
228
- "name": "Be",
229
- "default": "class extends J{constructor(){super();this.config={inputType:\"cvv\",containerSelector:\"#cvv\",errorName:\"cvv-card\",translations:{label:\"CVV\",placeholder:\"123\"}};this.childUpdated()}render(){return this.renderInput()}}"
256
+ "name": "Ge",
257
+ "default": "class extends oe{constructor(){super();this.config={inputType:\"cvv\",containerSelector:\"#cvv\",errorName:\"cvv-card\",translations:{label:\"CVV\",placeholder:\"123\"}};this.childUpdated()}render(){return this.renderInput()}}"
230
258
  },
231
259
  {
232
260
  "kind": "variable",
233
- "name": "Fe",
234
- "default": "class extends J{constructor(){super();this.config={inputType:\"expire\",containerSelector:\"#expiry\",errorName:\"expiryDate-card\",translations:{label:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"},placeholder:{id:\"cardExpiryPlaceholder\",defaultMessage:\"MM/YY\"},ariaLabel:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"}}};this.childUpdated()}render(){return this.renderInput()}}"
261
+ "name": "qe",
262
+ "default": "class extends oe{constructor(){super();this.config={inputType:\"expire\",containerSelector:\"#expiry\",errorName:\"expiryDate-card\",translations:{label:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"},placeholder:{id:\"cardExpiryPlaceholder\",defaultMessage:\"MM/YY\"},ariaLabel:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"}}};this.childUpdated()}render(){return this.renderInput()}}"
235
263
  },
236
264
  {
237
265
  "kind": "variable",
238
- "name": "je",
239
- "default": "class extends J{constructor(){super();this.config={inputType:\"cardholderName\",containerSelector:\"#cardFormName\",errorName:\"cardholderName\",translations:{label:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"},placeholder:{id:\"cardholderNamePlaceholder\",defaultMessage:\"Name on card\"},ariaLabel:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"}},onInput:e=>this.handleInput(e)};this.childUpdated()}handleInput(e){this.cardFormContext?.setCardholderName?.(e)}render(){return this.renderInput()}}"
266
+ "name": "We",
267
+ "default": "class extends oe{constructor(){super();this.config={inputType:\"cardholderName\",containerSelector:\"#cardFormName\",errorName:\"cardholderName\",translations:{label:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"},placeholder:{id:\"cardholderNamePlaceholder\",defaultMessage:\"Name on card\"},ariaLabel:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"}},onInput:e=>this.handleInput(e)};this.childUpdated()}handleInput(e){this.cardFormContext?.setCardholderName?.(e)}render(){return this.renderInput()}}"
240
268
  },
241
269
  {
242
270
  "kind": "variable",
243
- "name": "W",
244
- "default": "class extends g{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.headlessInstance=null;this.clientOptions=null;this.sdkState=null;this.cardFormContext=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=e=>{if(e.preventDefault(),this.disabled)return;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:A(\"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)}render(){let e=this.clientOptions?.submitButton?.amountVisible?this.headlessInstance?.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>`}}"
271
+ "name": "K",
272
+ "default": "class extends g{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.headlessInstance=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;G({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:S(\"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 f;let e=this.submitButtonConfig?.amountVisible?this.headlessInstance?.getUIOrderAmount():null,r=e?` ${e}`:f,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>`}}"
245
273
  },
246
274
  {
247
275
  "kind": "variable",
248
- "name": "X",
249
- "default": "class extends g{constructor(){super(...arguments);this.cardNetworks=null;this.headlessUtils=null;this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=Zi();this.dropdownRef=Zi();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 ${ri(this.buttonRef)} class=\"network-selector\" @click=${this.toggleDropdown} @keydown=${a=>{(a.key===\" \"||a.key===\"Enter\")&&o&&(a.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} />${N(o,()=>m`<primer-icon class=\"caret ${this.isDropdownOpen?\"open\":\"\"}\" size=\"sm\" name=\"chevron-down\" ></primer-icon>`,()=>h)}</button>${N(this.isDropdownOpen,()=>m`<div ${ri(this.dropdownRef)} id=\"network-dropdown\" class=\"dropdown open\" role=\"listbox\" aria-label=\"Select card network\" >${e.map((a,n)=>m`<div ${ri(s=>this.setNetworkOptionRef(s,n))} class=\"network-option ${this.isKeyboardNavigation&&n===this.focusedNetworkIndex?\"focused\":\"\"}\" @click=${s=>this.selectNetwork(s,a)} @keydown=${s=>{(s.key===\"Enter\"||s.key===\" \")&&this.selectNetwork(s,a)}} role=\"option\" aria-selected=${a.network===r.network} tabindex=\"${n===this.focusedNetworkIndex?\"0\":\"-1\"}\" ><img class=\"network-option-icon\" src=${this.getNetworkIconUrl(a)} alt=${a.displayName} /><span class=\"network-name\">${a.displayName}</span>${N(a.network===r.network,()=>m`<primer-icon class=\"checkmark\" name=\"checkmark\" size=\"sm\" ></primer-icon>`,()=>h)}</div>`)}</div>`,()=>h)} `}}"
276
+ "name": "ae",
277
+ "default": "class extends g{constructor(){super(...arguments);this.cardNetworks=null;this.headlessUtils=null;this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=ho();this.dropdownRef=ho();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 ${di(this.buttonRef)} class=\"network-selector\" @click=${this.toggleDropdown} @keydown=${a=>{(a.key===\" \"||a.key===\"Enter\")&&o&&(a.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:f} aria-haspopup=${o?\"true\":f} aria-controls=${o?\"network-dropdown\":f} ><img class=\"network-icon\" src=${this.getNetworkIconUrl(r)} alt=${r.displayName} />${R(o,()=>m`<primer-icon class=\"caret ${this.isDropdownOpen?\"open\":\"\"}\" size=\"sm\" name=\"chevron-down\" ></primer-icon>`,()=>f)}</button>${R(this.isDropdownOpen,()=>m`<div ${di(this.dropdownRef)} id=\"network-dropdown\" class=\"dropdown open\" role=\"listbox\" aria-label=\"Select card network\" >${e.map((a,n)=>m`<div ${di(l=>this.setNetworkOptionRef(l,n))} class=\"network-option ${this.isKeyboardNavigation&&n===this.focusedNetworkIndex?\"focused\":\"\"}\" @click=${l=>this.selectNetwork(l,a)} @keydown=${l=>{(l.key===\"Enter\"||l.key===\" \")&&this.selectNetwork(l,a)}} role=\"option\" aria-selected=${a.network===r.network} tabindex=\"${n===this.focusedNetworkIndex?\"0\":\"-1\"}\" ><img class=\"network-option-icon\" src=${this.getNetworkIconUrl(a)} alt=${a.displayName} /><span class=\"network-name\">${a.displayName}</span>${R(a.network===r.network,()=>m`<primer-icon class=\"checkmark\" name=\"checkmark\" size=\"sm\" ></primer-icon>`,()=>f)}</div>`)}</div>`,()=>f)} `}}"
250
278
  },
251
279
  {
252
280
  "kind": "variable",
253
- "name": "nt",
254
- "default": "class extends g{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=\"${A(\"navigateToPaymentMethods\",{id:\"navigateToPaymentMethods\"})}\" ><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></primer-collapsable></div>`}}"
281
+ "name": "mt",
282
+ "default": "class extends g{constructor(){super(...arguments);this.vaultManager=null}render(){if(this.vaultManager?.isLoading)return f;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=\"${S(\"navigateToPaymentMethods\",{id:\"navigateToPaymentMethods\"})}\" ><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></primer-collapsable></div>`}}"
255
283
  },
256
284
  {
257
285
  "kind": "variable",
258
- "name": "be",
259
- "default": "class extends g{constructor(){super();this.paymentManagers=new Map;this.computedStyles=null;this.disabled=!1;this._buttonId=\"button-container\";this.loadManagerTask=new L(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return I;let r=this.paymentManagers.get(e)?.manager;if(!r)throw new Error(`No manager found for payment method type ${e}`);return r}}),this.nativeButtonTask=new L(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return I;await this.updateComplete;let r=this.shadowRoot?.getElementById(this._buttonId);if(!r)return;let o=this.calculateButtonHeight(),a=e.createButton(),n=this.createRenderOptions(o);return await a.render(this.paymentMethod?.type===\"GOOGLE_PAY\"?this.shadowRoot?.getRootNode():r,n),this.disabled&&await a.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,this.updateDisabledOverlay()),a}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let a=o!==null,n=this.nativeButtonTask.value;n&&n.setDisabled(a)}}calculateButtonHeight(){if(typeof window>\"u\"||!this.isConnected||!this.computedStyles)return 0;let e=parseFloat(Ae),r=parseFloat(this.computedStyles.getPropertyValue(\"--primer-space-medium\"));return e+2*r}createRenderOptions(e){let r=this.paymentMethod?.type;return r===\"GOOGLE_PAY\"?{style:{shadowRoot:!0}}:r===\"APPLE_PAY\"?{style:{buttonHeight:e}}:r===\"PAYPAL\"?{style:{buttonHeight:e}}:{style:{buttonHeight:e}}}updated(e){e.has(\"paymentMethod\")&&this.paymentMethod&&(this._buttonId=`button-container-${this.paymentMethod.type}`),e.has(\"disabled\")&&this.updateDisabledOverlay()}updateDisabledOverlay(){this.paymentMethod?.type===\"GOOGLE_PAY\"?this.updateGooglePayOverlay():this.updateRegularOverlay()}updateGooglePayOverlay(){let e=null;if(e=this.shadowRoot?.getRootNode()?.querySelector(\".gpay-card-info-container-fill\"),e||(e=document.querySelector(\".gpay-card-info-container-fill\")),e||(e=this.shadowRoot?.querySelector(\".gpay-card-info-container-fill\")),!e){setTimeout(()=>this.updateGooglePayOverlay(),100);return}let o=e.querySelector(\".disabled-overlay\");if(o&&o.remove(),this.disabled){let a=document.createElement(\"div\");a.className=\"disabled-overlay\",a.style.cssText=` position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.4); border-radius: var(--primer-radius-medium); cursor: not-allowed; z-index: 1000; pointer-events: all; backdrop-filter: grayscale(100%); `,e.style.position=\"relative\",e.appendChild(a)}}updateRegularOverlay(){let e=this.shadowRoot?.querySelector(\".native-button-container\");if(!e)return;let r=e.querySelector(\".disabled-overlay\");if(r&&r.remove(),this.disabled){let o=document.createElement(\"div\");o.className=\"disabled-overlay\",o.style.cssText=` position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.4); border-radius: var(--primer-radius-medium); cursor: not-allowed; z-index: 1000; pointer-events: all; backdrop-filter: grayscale(100%); `,e.appendChild(o)}}render(){return this.loadManagerTask.render({error:()=>h,complete:()=>m`<div class=\"native-button-container\" id=\"${this._buttonId}\"></div>`,pending:()=>h})}}"
286
+ "name": "Pe",
287
+ "default": "class extends g{constructor(){super();this.paymentManagers=new Map;this.computedStyles=null;this.disabled=!1;this._buttonId=\"button-container\";this.loadManagerTask=new D(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return L;let r=this.paymentManagers.get(e)?.manager;if(!r)throw new Error(`No manager found for payment method type ${e}`);return r}}),this.nativeButtonTask=new D(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return L;await this.updateComplete;let r=this.shadowRoot?.getElementById(this._buttonId);if(!r)return;let o=this.calculateButtonHeight(),a=e.createButton(),n=this.createRenderOptions(o);return await a.render(this.paymentMethod?.type===\"GOOGLE_PAY\"?this.shadowRoot?.getRootNode():r,n),this.disabled&&await a.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,this.updateDisabledOverlay()),a}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let a=o!==null,n=this.nativeButtonTask.value;n&&n.setDisabled(a)}}calculateButtonHeight(){if(typeof window>\"u\"||!this.isConnected||!this.computedStyles)return 0;let e=parseFloat(Ie),r=parseFloat(this.computedStyles.getPropertyValue(\"--primer-space-medium\"));return e+2*r}createRenderOptions(e){let r=this.paymentMethod?.type;return r===\"GOOGLE_PAY\"?{style:{shadowRoot:!0}}:r===\"APPLE_PAY\"?{style:{buttonHeight:e}}:r===\"PAYPAL\"?{style:{buttonHeight:e}}:{style:{buttonHeight:e}}}updated(e){e.has(\"paymentMethod\")&&this.paymentMethod&&(this._buttonId=`button-container-${this.paymentMethod.type}`),e.has(\"disabled\")&&this.updateDisabledOverlay()}updateDisabledOverlay(){this.paymentMethod?.type===\"GOOGLE_PAY\"?this.updateGooglePayOverlay():this.updateRegularOverlay()}updateGooglePayOverlay(){let e=null;if(e=this.shadowRoot?.getRootNode()?.querySelector(\".gpay-card-info-container-fill\"),e||(e=document.querySelector(\".gpay-card-info-container-fill\")),e||(e=this.shadowRoot?.querySelector(\".gpay-card-info-container-fill\")),!e){setTimeout(()=>this.updateGooglePayOverlay(),100);return}let o=e.querySelector(\".disabled-overlay\");if(o&&o.remove(),this.disabled){let a=document.createElement(\"div\");a.className=\"disabled-overlay\",a.style.cssText=` position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.4); border-radius: var(--primer-radius-medium); cursor: not-allowed; z-index: 1000; pointer-events: all; backdrop-filter: grayscale(100%); `,e.style.position=\"relative\",e.appendChild(a)}}updateRegularOverlay(){let e=this.shadowRoot?.querySelector(\".native-button-container\");if(!e)return;let r=e.querySelector(\".disabled-overlay\");if(r&&r.remove(),this.disabled){let o=document.createElement(\"div\");o.className=\"disabled-overlay\",o.style.cssText=` position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.4); border-radius: var(--primer-radius-medium); cursor: not-allowed; z-index: 1000; pointer-events: all; backdrop-filter: grayscale(100%); `,e.appendChild(o)}}render(){return this.loadManagerTask.render({error:()=>f,complete:()=>m`<div class=\"native-button-container\" id=\"${this._buttonId}\"></div>`,pending:()=>f})}}"
260
288
  },
261
289
  {
262
290
  "kind": "variable",
263
- "name": "Nt",
291
+ "name": "Ot",
264
292
  "default": "class extends g{render(){return m`<primer-checkout-state type=\"complete\"></primer-checkout-state>`}}"
265
293
  },
266
294
  {
267
295
  "kind": "variable",
268
- "name": "Ct",
296
+ "name": "_t",
269
297
  "default": "class extends g{constructor(){super(...arguments);this.sdkState=null}render(){return m`<primer-checkout-state type=\"failure\" description=${this.sdkState?.error?.message||\"\"} ></primer-checkout-state>`}}"
270
298
  },
271
299
  {
272
300
  "kind": "variable",
273
- "name": "Ke",
274
- "default": "class extends g{constructor(){super(...arguments);this.showProcessingErrors=!0}get shouldShowError(){return!this.sdkState||this.sdkState.isProcessing?!1:!!(this.sdkState.failure&&this.showProcessingErrors)}render(){return this.sdkState?m`<primer-error-message message=\"${A(this.sdkState.failure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:h}}"
301
+ "name": "Je",
302
+ "default": "class extends g{constructor(){super(...arguments);this.showProcessingErrors=!0}get shouldShowError(){return!this.sdkState||this.sdkState.isProcessing?!1:!!(this.sdkState.failure&&this.showProcessingErrors)}render(){return this.sdkState?m`<primer-error-message message=\"${S(this.sdkState.failure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:f}}"
275
303
  },
276
304
  {
277
305
  "kind": "variable",
278
- "name": "Le",
279
- "default": "class extends g{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>${N(this.hasAssignedContent,()=>h,()=>m`<div class=${K({\"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>`)} `}}"
306
+ "name": "Ve",
307
+ "default": "class extends g{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>${R(this.hasAssignedContent,()=>f,()=>m`<div class=${Z({\"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>`)} `}}"
280
308
  },
281
309
  {
282
310
  "kind": "function",
283
- "name": "z_"
311
+ "name": "iT"
284
312
  }
285
313
  ],
286
314
  "exports": [
@@ -304,7 +332,7 @@
304
332
  "kind": "js",
305
333
  "name": "AchPayment",
306
334
  "declaration": {
307
- "name": "ne",
335
+ "name": "he",
308
336
  "module": "dist/primer-loader.js"
309
337
  }
310
338
  },
@@ -312,7 +340,7 @@
312
340
  "kind": "js",
313
341
  "name": "Button",
314
342
  "declaration": {
315
- "name": "te",
343
+ "name": "de",
316
344
  "module": "dist/primer-loader.js"
317
345
  }
318
346
  },
@@ -320,7 +348,7 @@
320
348
  "kind": "js",
321
349
  "name": "CardForm",
322
350
  "declaration": {
323
- "name": "oe",
351
+ "name": "ee",
324
352
  "module": "dist/primer-loader.js"
325
353
  }
326
354
  },
@@ -328,7 +356,7 @@
328
356
  "kind": "js",
329
357
  "name": "CardFormCVV",
330
358
  "declaration": {
331
- "name": "Be",
359
+ "name": "Ge",
332
360
  "module": "dist/primer-loader.js"
333
361
  }
334
362
  },
@@ -336,7 +364,7 @@
336
364
  "kind": "js",
337
365
  "name": "CardFormCardNetworkSelector",
338
366
  "declaration": {
339
- "name": "X",
367
+ "name": "ae",
340
368
  "module": "dist/primer-loader.js"
341
369
  }
342
370
  },
@@ -344,7 +372,7 @@
344
372
  "kind": "js",
345
373
  "name": "CardFormCardNumber",
346
374
  "declaration": {
347
- "name": "ze",
375
+ "name": "Ke",
348
376
  "module": "dist/primer-loader.js"
349
377
  }
350
378
  },
@@ -352,7 +380,7 @@
352
380
  "kind": "js",
353
381
  "name": "CardFormError",
354
382
  "declaration": {
355
- "name": "Ye",
383
+ "name": "ze",
356
384
  "module": "dist/primer-loader.js"
357
385
  }
358
386
  },
@@ -360,7 +388,7 @@
360
388
  "kind": "js",
361
389
  "name": "CardFormExpiry",
362
390
  "declaration": {
363
- "name": "Fe",
391
+ "name": "qe",
364
392
  "module": "dist/primer-loader.js"
365
393
  }
366
394
  },
@@ -368,7 +396,7 @@
368
396
  "kind": "js",
369
397
  "name": "CardFormName",
370
398
  "declaration": {
371
- "name": "je",
399
+ "name": "We",
372
400
  "module": "dist/primer-loader.js"
373
401
  }
374
402
  },
@@ -376,7 +404,7 @@
376
404
  "kind": "js",
377
405
  "name": "CardFormSubmit",
378
406
  "declaration": {
379
- "name": "W",
407
+ "name": "K",
380
408
  "module": "dist/primer-loader.js"
381
409
  }
382
410
  },
@@ -384,7 +412,7 @@
384
412
  "kind": "js",
385
413
  "name": "Collapsable",
386
414
  "declaration": {
387
- "name": "re",
415
+ "name": "ce",
388
416
  "module": "dist/primer-loader.js"
389
417
  }
390
418
  },
@@ -392,7 +420,7 @@
392
420
  "kind": "js",
393
421
  "name": "Dialog",
394
422
  "declaration": {
395
- "name": "ge",
423
+ "name": "Ae",
396
424
  "module": "dist/primer-loader.js"
397
425
  }
398
426
  },
@@ -400,7 +428,7 @@
400
428
  "kind": "js",
401
429
  "name": "DynamicPayment",
402
430
  "declaration": {
403
- "name": "ce",
431
+ "name": "be",
404
432
  "module": "dist/primer-loader.js"
405
433
  }
406
434
  },
@@ -408,7 +436,7 @@
408
436
  "kind": "js",
409
437
  "name": "ErrorMessage",
410
438
  "declaration": {
411
- "name": "Me",
439
+ "name": "Oe",
412
440
  "module": "dist/primer-loader.js"
413
441
  }
414
442
  },
@@ -416,7 +444,7 @@
416
444
  "kind": "js",
417
445
  "name": "ErrorMessageContainer",
418
446
  "declaration": {
419
- "name": "Ke",
447
+ "name": "Je",
420
448
  "module": "dist/primer-loader.js"
421
449
  }
422
450
  },
@@ -424,7 +452,7 @@
424
452
  "kind": "js",
425
453
  "name": "InitializedPayments",
426
454
  "declaration": {
427
- "name": "kr",
455
+ "name": "Or",
428
456
  "module": "dist/primer-loader.js"
429
457
  }
430
458
  },
@@ -432,7 +460,7 @@
432
460
  "kind": "js",
433
461
  "name": "Input",
434
462
  "declaration": {
435
- "name": "D",
463
+ "name": "$",
436
464
  "module": "dist/primer-loader.js"
437
465
  }
438
466
  },
@@ -440,7 +468,7 @@
440
468
  "kind": "js",
441
469
  "name": "InputLabel",
442
470
  "declaration": {
443
- "name": "Ve",
471
+ "name": "Be",
444
472
  "module": "dist/primer-loader.js"
445
473
  }
446
474
  },
@@ -448,7 +476,7 @@
448
476
  "kind": "js",
449
477
  "name": "InputWrapper",
450
478
  "declaration": {
451
- "name": "we",
479
+ "name": "Le",
452
480
  "module": "dist/primer-loader.js"
453
481
  }
454
482
  },
@@ -456,7 +484,7 @@
456
484
  "kind": "js",
457
485
  "name": "NativePayment",
458
486
  "declaration": {
459
- "name": "be",
487
+ "name": "Pe",
460
488
  "module": "dist/primer-loader.js"
461
489
  }
462
490
  },
@@ -464,7 +492,7 @@
464
492
  "kind": "js",
465
493
  "name": "PaymentMethod",
466
494
  "declaration": {
467
- "name": "ke",
495
+ "name": "Se",
468
496
  "module": "dist/primer-loader.js"
469
497
  }
470
498
  },
@@ -472,7 +500,7 @@
472
500
  "kind": "js",
473
501
  "name": "PaymentMethodContainer",
474
502
  "declaration": {
475
- "name": "de",
503
+ "name": "ve",
476
504
  "module": "dist/primer-loader.js"
477
505
  }
478
506
  },
@@ -480,7 +508,7 @@
480
508
  "kind": "js",
481
509
  "name": "PaymentMethodContentComponent",
482
510
  "declaration": {
483
- "name": "Ne",
511
+ "name": "$e",
484
512
  "module": "dist/primer-loader.js"
485
513
  }
486
514
  },
@@ -488,7 +516,7 @@
488
516
  "kind": "js",
489
517
  "name": "Portal",
490
518
  "declaration": {
491
- "name": "rt",
519
+ "name": "lt",
492
520
  "module": "dist/primer-loader.js"
493
521
  }
494
522
  },
@@ -496,7 +524,7 @@
496
524
  "kind": "js",
497
525
  "name": "PortalDialogComponent",
498
526
  "declaration": {
499
- "name": "se",
527
+ "name": "ie",
500
528
  "module": "dist/primer-loader.js"
501
529
  }
502
530
  },
@@ -504,7 +532,7 @@
504
532
  "kind": "js",
505
533
  "name": "PrimerCheckoutComplete",
506
534
  "declaration": {
507
- "name": "Nt",
535
+ "name": "Ot",
508
536
  "module": "dist/primer-loader.js"
509
537
  }
510
538
  },
@@ -512,7 +540,7 @@
512
540
  "kind": "js",
513
541
  "name": "PrimerCheckoutComponent",
514
542
  "declaration": {
515
- "name": "ae",
543
+ "name": "ue",
516
544
  "module": "dist/primer-loader.js"
517
545
  }
518
546
  },
@@ -520,7 +548,7 @@
520
548
  "kind": "js",
521
549
  "name": "PrimerCheckoutFailure",
522
550
  "declaration": {
523
- "name": "Ct",
551
+ "name": "_t",
524
552
  "module": "dist/primer-loader.js"
525
553
  }
526
554
  },
@@ -528,7 +556,7 @@
528
556
  "kind": "js",
529
557
  "name": "PrimerCheckoutState",
530
558
  "declaration": {
531
- "name": "He",
559
+ "name": "Fe",
532
560
  "module": "dist/primer-loader.js"
533
561
  }
534
562
  },
@@ -536,7 +564,7 @@
536
564
  "kind": "js",
537
565
  "name": "PrimerIcon",
538
566
  "declaration": {
539
- "name": "Te",
567
+ "name": "Re",
540
568
  "module": "dist/primer-loader.js"
541
569
  }
542
570
  },
@@ -544,7 +572,7 @@
544
572
  "kind": "js",
545
573
  "name": "PrimerKlarna",
546
574
  "declaration": {
547
- "name": "G",
575
+ "name": "X",
548
576
  "module": "dist/primer-loader.js"
549
577
  }
550
578
  },
@@ -552,7 +580,7 @@
552
580
  "kind": "js",
553
581
  "name": "PrimerMain",
554
582
  "declaration": {
555
- "name": "Le",
583
+ "name": "Ve",
556
584
  "module": "dist/primer-loader.js"
557
585
  }
558
586
  },
@@ -560,7 +588,7 @@
560
588
  "kind": "js",
561
589
  "name": "RedirectPayment",
562
590
  "declaration": {
563
- "name": "pe",
591
+ "name": "Ce",
564
592
  "module": "dist/primer-loader.js"
565
593
  }
566
594
  },
@@ -568,7 +596,7 @@
568
596
  "kind": "js",
569
597
  "name": "ShowOtherPayments",
570
598
  "declaration": {
571
- "name": "nt",
599
+ "name": "mt",
572
600
  "module": "dist/primer-loader.js"
573
601
  }
574
602
  },
@@ -576,7 +604,7 @@
576
604
  "kind": "js",
577
605
  "name": "Spinner",
578
606
  "declaration": {
579
- "name": "_e",
607
+ "name": "Ne",
580
608
  "module": "dist/primer-loader.js"
581
609
  }
582
610
  },
@@ -584,7 +612,7 @@
584
612
  "kind": "js",
585
613
  "name": "VaultCvvInput",
586
614
  "declaration": {
587
- "name": "z",
615
+ "name": "j",
588
616
  "module": "dist/primer-loader.js"
589
617
  }
590
618
  },
@@ -592,7 +620,7 @@
592
620
  "kind": "js",
593
621
  "name": "VaultDeleteConfirmation",
594
622
  "declaration": {
595
- "name": "le",
623
+ "name": "fe",
596
624
  "module": "dist/primer-loader.js"
597
625
  }
598
626
  },
@@ -600,7 +628,7 @@
600
628
  "kind": "js",
601
629
  "name": "VaultEmptyState",
602
630
  "declaration": {
603
- "name": "Ue",
631
+ "name": "je",
604
632
  "module": "dist/primer-loader.js"
605
633
  }
606
634
  },
@@ -608,7 +636,7 @@
608
636
  "kind": "js",
609
637
  "name": "VaultErrorMessage",
610
638
  "declaration": {
611
- "name": "Ie",
639
+ "name": "De",
612
640
  "module": "dist/primer-loader.js"
613
641
  }
614
642
  },
@@ -616,7 +644,7 @@
616
644
  "kind": "js",
617
645
  "name": "VaultManager",
618
646
  "declaration": {
619
- "name": "q",
647
+ "name": "Q",
620
648
  "module": "dist/primer-loader.js"
621
649
  }
622
650
  },
@@ -624,7 +652,7 @@
624
652
  "kind": "js",
625
653
  "name": "VaultManagerHeader",
626
654
  "declaration": {
627
- "name": "ve",
655
+ "name": "_e",
628
656
  "module": "dist/primer-loader.js"
629
657
  }
630
658
  },
@@ -632,7 +660,7 @@
632
660
  "kind": "js",
633
661
  "name": "VaultPaymentMethodItem",
634
662
  "declaration": {
635
- "name": "ie",
663
+ "name": "pe",
636
664
  "module": "dist/primer-loader.js"
637
665
  }
638
666
  },
@@ -640,7 +668,7 @@
640
668
  "kind": "js",
641
669
  "name": "VaultPaymentSubmit",
642
670
  "declaration": {
643
- "name": "j",
671
+ "name": "W",
644
672
  "module": "dist/primer-loader.js"
645
673
  }
646
674
  },
@@ -648,7 +676,7 @@
648
676
  "kind": "js",
649
677
  "name": "injectDarkTheme",
650
678
  "declaration": {
651
- "name": "Dl",
679
+ "name": "bd",
652
680
  "module": "dist/primer-loader.js"
653
681
  }
654
682
  },
@@ -656,7 +684,7 @@
656
684
  "kind": "js",
657
685
  "name": "injectLightTheme",
658
686
  "declaration": {
659
- "name": "Rl",
687
+ "name": "vd",
660
688
  "module": "dist/primer-loader.js"
661
689
  }
662
690
  },
@@ -664,7 +692,7 @@
664
692
  "kind": "js",
665
693
  "name": "injectLoaderStyles",
666
694
  "declaration": {
667
- "name": "Ia",
695
+ "name": "sn",
668
696
  "module": "dist/primer-loader.js"
669
697
  }
670
698
  },
@@ -672,7 +700,7 @@
672
700
  "kind": "js",
673
701
  "name": "injectThemeStyles",
674
702
  "declaration": {
675
- "name": "Na",
703
+ "name": "ln",
676
704
  "module": "dist/primer-loader.js"
677
705
  }
678
706
  },
@@ -680,40 +708,12 @@
680
708
  "kind": "js",
681
709
  "name": "loadPrimer",
682
710
  "declaration": {
683
- "name": "z_",
711
+ "name": "iT",
684
712
  "module": "dist/primer-loader.js"
685
713
  }
686
714
  }
687
715
  ]
688
716
  },
689
- {
690
- "kind": "javascript-module",
691
- "path": "e2e/utils.ts",
692
- "declarations": [
693
- {
694
- "kind": "variable",
695
- "name": "test"
696
- }
697
- ],
698
- "exports": [
699
- {
700
- "kind": "js",
701
- "name": "expect",
702
- "declaration": {
703
- "name": "expect",
704
- "package": "@chromatic-com/playwright"
705
- }
706
- },
707
- {
708
- "kind": "js",
709
- "name": "test",
710
- "declaration": {
711
- "name": "test",
712
- "module": "e2e/utils.ts"
713
- }
714
- }
715
- ]
716
- },
717
717
  {
718
718
  "kind": "javascript-module",
719
719
  "path": "src/consts.ts",
@@ -963,6 +963,15 @@
963
963
  "privacy": "private",
964
964
  "default": "null"
965
965
  },
966
+ {
967
+ "kind": "field",
968
+ "name": "_eventListenerController",
969
+ "type": {
970
+ "text": "AbortController | null"
971
+ },
972
+ "privacy": "private",
973
+ "default": "null"
974
+ },
966
975
  {
967
976
  "kind": "field",
968
977
  "name": "locale",
@@ -1032,6 +1041,25 @@
1032
1041
  },
1033
1042
  "default": "new AchPaymentEventsController(this)"
1034
1043
  },
1044
+ {
1045
+ "kind": "method",
1046
+ "name": "handleExternalCardSubmit",
1047
+ "privacy": "private",
1048
+ "return": {
1049
+ "type": {
1050
+ "text": "void"
1051
+ }
1052
+ },
1053
+ "parameters": [
1054
+ {
1055
+ "name": "event",
1056
+ "type": {
1057
+ "text": "CustomEvent"
1058
+ }
1059
+ }
1060
+ ],
1061
+ "description": "Handle external primer:card-submit events by forwarding them through the events controller\nUses AbortController signal to prevent circular event loops more safely"
1062
+ },
1035
1063
  {
1036
1064
  "kind": "method",
1037
1065
  "name": "checkLoadingStateChange",
@@ -1166,6 +1194,11 @@
1166
1194
  {
1167
1195
  "kind": "method",
1168
1196
  "name": "addEventListener",
1197
+ "return": {
1198
+ "type": {
1199
+ "text": "void"
1200
+ }
1201
+ },
1169
1202
  "parameters": [
1170
1203
  {
1171
1204
  "name": "type",
@@ -1311,6 +1344,11 @@
1311
1344
  {
1312
1345
  "kind": "method",
1313
1346
  "name": "removeEventListener",
1347
+ "return": {
1348
+ "type": {
1349
+ "text": "void"
1350
+ }
1351
+ },
1314
1352
  "parameters": [
1315
1353
  {
1316
1354
  "name": "type",
@@ -1440,115 +1478,125 @@
1440
1478
  },
1441
1479
  {
1442
1480
  "kind": "javascript-module",
1443
- "path": "dist/chunks/ar.KRXB3WQO.js",
1481
+ "path": "e2e/mocks/card-3ds.ts",
1444
1482
  "declarations": [
1445
1483
  {
1446
1484
  "kind": "variable",
1447
- "name": "o",
1448
- "default": "e"
1449
- }
1450
- ],
1451
- "exports": [
1452
- {
1453
- "kind": "js",
1454
- "name": "templates",
1455
- "declaration": {
1456
- "name": "o",
1457
- "module": "dist/chunks/ar.KRXB3WQO.js"
1458
- }
1459
- }
1460
- ]
1461
- },
1462
- {
1463
- "kind": "javascript-module",
1464
- "path": "dist/chunks/bg.6SKJRXIR.js",
1465
- "declarations": [
1485
+ "name": "settings",
1486
+ "type": {
1487
+ "text": "string"
1488
+ },
1489
+ "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI3NDUyNyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7fX0='"
1490
+ },
1466
1491
  {
1467
1492
  "kind": "variable",
1468
- "name": "o",
1469
- "default": "e"
1493
+ "name": "CONFIGURATION_RESPONSE",
1494
+ "type": {
1495
+ "text": "object"
1496
+ },
1497
+ "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: {}, }"
1470
1498
  }
1471
1499
  ],
1472
1500
  "exports": [
1473
1501
  {
1474
1502
  "kind": "js",
1475
- "name": "templates",
1503
+ "name": "settings",
1476
1504
  "declaration": {
1477
- "name": "o",
1478
- "module": "dist/chunks/bg.6SKJRXIR.js"
1505
+ "name": "settings",
1506
+ "module": "e2e/mocks/card-3ds.ts"
1479
1507
  }
1480
- }
1481
- ]
1482
- },
1483
- {
1484
- "kind": "javascript-module",
1485
- "path": "dist/chunks/ca.SANDLFEK.js",
1486
- "declarations": [
1487
- {
1488
- "kind": "variable",
1489
- "name": "i",
1490
- "default": "e"
1491
- }
1492
- ],
1493
- "exports": [
1508
+ },
1494
1509
  {
1495
1510
  "kind": "js",
1496
- "name": "templates",
1511
+ "name": "CONFIGURATION_RESPONSE",
1497
1512
  "declaration": {
1498
- "name": "i",
1499
- "module": "dist/chunks/ca.SANDLFEK.js"
1513
+ "name": "CONFIGURATION_RESPONSE",
1514
+ "module": "e2e/mocks/card-3ds.ts"
1500
1515
  }
1501
1516
  }
1502
1517
  ]
1503
1518
  },
1504
1519
  {
1505
1520
  "kind": "javascript-module",
1506
- "path": "dist/chunks/chunk.DV3REKZU.js",
1521
+ "path": "e2e/mocks/card-basic.ts",
1507
1522
  "declarations": [
1508
1523
  {
1509
- "kind": "function",
1510
- "name": "k",
1511
- "parameters": [
1512
- {
1513
- "name": "c"
1514
- }
1515
- ]
1524
+ "kind": "variable",
1525
+ "name": "settings",
1526
+ "type": {
1527
+ "text": "string"
1528
+ },
1529
+ "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJlbnYiOiJDVVNUT01fU1RBR0lORyIsImFwaVZlcnNpb24iOiIyLjIifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnt9fQ=='"
1516
1530
  },
1517
1531
  {
1518
1532
  "kind": "variable",
1519
- "name": "b",
1520
- "default": "c[a]"
1533
+ "name": "CONFIGURATION_RESPONSE",
1534
+ "type": {
1535
+ "text": "object"
1536
+ },
1537
+ "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: {}, }"
1521
1538
  },
1522
1539
  {
1523
- "kind": "function",
1524
- "name": "l",
1525
- "parameters": [
1526
- {
1527
- "name": "c"
1528
- },
1529
- {
1530
- "name": "a"
1531
- },
1532
- {
1533
- "name": "b"
1534
- },
1540
+ "kind": "variable",
1541
+ "name": "SUCCESSFUL_CARD_NUMBER",
1542
+ "type": {
1543
+ "text": "string"
1544
+ },
1545
+ "default": "'4035 5010 0000 0008'"
1546
+ },
1547
+ {
1548
+ "kind": "variable",
1549
+ "name": "FAILURE_CARD_NUMBER",
1550
+ "type": {
1551
+ "text": "string"
1552
+ },
1553
+ "default": "'4242 4242 4242 4242'"
1554
+ },
1555
+ {
1556
+ "kind": "function",
1557
+ "name": "mockPaymentInstruments",
1558
+ "parameters": [
1535
1559
  {
1536
- "name": "e"
1560
+ "name": "page",
1561
+ "type": {
1562
+ "text": "Page"
1563
+ }
1537
1564
  }
1538
1565
  ]
1539
1566
  },
1540
1567
  {
1541
1568
  "kind": "function",
1542
- "name": "m",
1569
+ "name": "mockPayments",
1543
1570
  "parameters": [
1544
1571
  {
1545
- "name": "c"
1546
- },
1572
+ "name": "page",
1573
+ "type": {
1574
+ "text": "Page"
1575
+ }
1576
+ }
1577
+ ]
1578
+ },
1579
+ {
1580
+ "kind": "function",
1581
+ "name": "mockPaymentInstrumentsFailure",
1582
+ "parameters": [
1547
1583
  {
1548
- "name": "a"
1549
- },
1584
+ "name": "page",
1585
+ "type": {
1586
+ "text": "Page"
1587
+ }
1588
+ }
1589
+ ]
1590
+ },
1591
+ {
1592
+ "kind": "function",
1593
+ "name": "mockPaymentsFailure",
1594
+ "parameters": [
1550
1595
  {
1551
- "name": "b"
1596
+ "name": "page",
1597
+ "type": {
1598
+ "text": "Page"
1599
+ }
1552
1600
  }
1553
1601
  ]
1554
1602
  }
@@ -1556,250 +1604,407 @@
1556
1604
  "exports": [
1557
1605
  {
1558
1606
  "kind": "js",
1559
- "name": "a",
1607
+ "name": "settings",
1560
1608
  "declaration": {
1561
- "name": "k",
1562
- "module": "dist/chunks/chunk.DV3REKZU.js"
1609
+ "name": "settings",
1610
+ "module": "e2e/mocks/card-basic.ts"
1563
1611
  }
1564
1612
  },
1565
1613
  {
1566
1614
  "kind": "js",
1567
- "name": "b",
1615
+ "name": "CONFIGURATION_RESPONSE",
1568
1616
  "declaration": {
1569
- "name": "l",
1570
- "module": "dist/chunks/chunk.DV3REKZU.js"
1617
+ "name": "CONFIGURATION_RESPONSE",
1618
+ "module": "e2e/mocks/card-basic.ts"
1571
1619
  }
1572
1620
  },
1573
1621
  {
1574
1622
  "kind": "js",
1575
- "name": "c",
1623
+ "name": "SUCCESSFUL_CARD_NUMBER",
1576
1624
  "declaration": {
1577
- "name": "m",
1578
- "module": "dist/chunks/chunk.DV3REKZU.js"
1625
+ "name": "SUCCESSFUL_CARD_NUMBER",
1626
+ "module": "e2e/mocks/card-basic.ts"
1579
1627
  }
1580
- }
1581
- ]
1582
- },
1583
- {
1584
- "kind": "javascript-module",
1585
- "path": "dist/chunks/chunk.QMLIEEKM.js",
1586
- "declarations": [
1587
- {
1588
- "kind": "variable",
1589
- "name": "t",
1590
- "type": {
1591
- "text": "object"
1592
- },
1593
- "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\"}"
1594
- }
1595
- ],
1596
- "exports": [
1628
+ },
1597
1629
  {
1598
1630
  "kind": "js",
1599
- "name": "a",
1631
+ "name": "FAILURE_CARD_NUMBER",
1600
1632
  "declaration": {
1601
- "name": "t",
1602
- "module": "dist/chunks/chunk.QMLIEEKM.js"
1633
+ "name": "FAILURE_CARD_NUMBER",
1634
+ "module": "e2e/mocks/card-basic.ts"
1603
1635
  }
1604
- }
1605
- ]
1606
- },
1607
- {
1608
- "kind": "javascript-module",
1609
- "path": "dist/chunks/cs.FC4I5M3C.js",
1610
- "declarations": [
1636
+ },
1611
1637
  {
1612
- "kind": "variable",
1613
- "name": "n",
1614
- "default": "e"
1615
- }
1616
- ],
1617
- "exports": [
1638
+ "kind": "js",
1639
+ "name": "mockPaymentInstruments",
1640
+ "declaration": {
1641
+ "name": "mockPaymentInstruments",
1642
+ "module": "e2e/mocks/card-basic.ts"
1643
+ }
1644
+ },
1618
1645
  {
1619
1646
  "kind": "js",
1620
- "name": "templates",
1647
+ "name": "mockPayments",
1621
1648
  "declaration": {
1622
- "name": "n",
1623
- "module": "dist/chunks/cs.FC4I5M3C.js"
1649
+ "name": "mockPayments",
1650
+ "module": "e2e/mocks/card-basic.ts"
1624
1651
  }
1625
- }
1626
- ]
1627
- },
1628
- {
1629
- "kind": "javascript-module",
1630
- "path": "dist/chunks/da.YI32NZ7B.js",
1631
- "declarations": [
1652
+ },
1632
1653
  {
1633
- "kind": "variable",
1634
- "name": "a",
1635
- "default": "e"
1636
- }
1637
- ],
1638
- "exports": [
1654
+ "kind": "js",
1655
+ "name": "mockPaymentInstrumentsFailure",
1656
+ "declaration": {
1657
+ "name": "mockPaymentInstrumentsFailure",
1658
+ "module": "e2e/mocks/card-basic.ts"
1659
+ }
1660
+ },
1639
1661
  {
1640
1662
  "kind": "js",
1641
- "name": "templates",
1663
+ "name": "mockPaymentsFailure",
1642
1664
  "declaration": {
1643
- "name": "a",
1644
- "module": "dist/chunks/da.YI32NZ7B.js"
1665
+ "name": "mockPaymentsFailure",
1666
+ "module": "e2e/mocks/card-basic.ts"
1645
1667
  }
1646
1668
  }
1647
1669
  ]
1648
1670
  },
1649
1671
  {
1650
1672
  "kind": "javascript-module",
1651
- "path": "dist/chunks/de.7M7UFQB7.js",
1673
+ "path": "e2e/mocks/klarna.ts",
1652
1674
  "declarations": [
1653
1675
  {
1654
1676
  "kind": "variable",
1655
- "name": "t",
1656
- "default": "e"
1677
+ "name": "settings",
1678
+ "type": {
1679
+ "text": "string"
1680
+ },
1681
+ "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI0NTg1OCIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJERSIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50Ijo2MDAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6e30sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiZW52IjoiQ1VTVE9NX1NBTkRCT1giLCJhcGlWZXJzaW9uIjoiMi4zIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7fX0='"
1682
+ },
1683
+ {
1684
+ "kind": "variable",
1685
+ "name": "CONFIGURATION_RESPONSE",
1686
+ "type": {
1687
+ "text": "object"
1688
+ },
1689
+ "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: {}, }"
1657
1690
  }
1658
1691
  ],
1659
1692
  "exports": [
1660
1693
  {
1661
1694
  "kind": "js",
1662
- "name": "templates",
1695
+ "name": "settings",
1663
1696
  "declaration": {
1664
- "name": "t",
1665
- "module": "dist/chunks/de.7M7UFQB7.js"
1697
+ "name": "settings",
1698
+ "module": "e2e/mocks/klarna.ts"
1699
+ }
1700
+ },
1701
+ {
1702
+ "kind": "js",
1703
+ "name": "CONFIGURATION_RESPONSE",
1704
+ "declaration": {
1705
+ "name": "CONFIGURATION_RESPONSE",
1706
+ "module": "e2e/mocks/klarna.ts"
1666
1707
  }
1667
1708
  }
1668
1709
  ]
1669
1710
  },
1670
1711
  {
1671
1712
  "kind": "javascript-module",
1672
- "path": "dist/chunks/el.XSGTYDZR.js",
1713
+ "path": "e2e/mocks/shared.ts",
1673
1714
  "declarations": [
1674
1715
  {
1675
- "kind": "variable",
1676
- "name": "o",
1677
- "default": "e"
1716
+ "kind": "function",
1717
+ "name": "mockConfigurationCallSBX",
1718
+ "parameters": [
1719
+ {
1720
+ "name": "page",
1721
+ "type": {
1722
+ "text": "Page"
1723
+ }
1724
+ },
1725
+ {
1726
+ "name": "config",
1727
+ "type": {
1728
+ "text": "unknown"
1729
+ }
1730
+ }
1731
+ ]
1732
+ },
1733
+ {
1734
+ "kind": "function",
1735
+ "name": "mockConfigurationCallSTG",
1736
+ "parameters": [
1737
+ {
1738
+ "name": "page",
1739
+ "type": {
1740
+ "text": "Page"
1741
+ }
1742
+ },
1743
+ {
1744
+ "name": "config",
1745
+ "type": {
1746
+ "text": "unknown"
1747
+ }
1748
+ }
1749
+ ]
1678
1750
  }
1679
1751
  ],
1680
1752
  "exports": [
1681
1753
  {
1682
1754
  "kind": "js",
1683
- "name": "templates",
1755
+ "name": "mockConfigurationCallSBX",
1684
1756
  "declaration": {
1685
- "name": "o",
1686
- "module": "dist/chunks/el.XSGTYDZR.js"
1757
+ "name": "mockConfigurationCallSBX",
1758
+ "module": "e2e/mocks/shared.ts"
1759
+ }
1760
+ },
1761
+ {
1762
+ "kind": "js",
1763
+ "name": "mockConfigurationCallSTG",
1764
+ "declaration": {
1765
+ "name": "mockConfigurationCallSTG",
1766
+ "module": "e2e/mocks/shared.ts"
1687
1767
  }
1688
1768
  }
1689
1769
  ]
1690
1770
  },
1691
1771
  {
1692
1772
  "kind": "javascript-module",
1693
- "path": "dist/chunks/en-GB.VO4GDE3X.js",
1773
+ "path": "e2e/mocks/vaulted-paypal.ts",
1694
1774
  "declarations": [
1695
1775
  {
1696
1776
  "kind": "variable",
1697
- "name": "o",
1698
- "default": "t"
1699
- }
1700
- ],
1701
- "exports": [
1702
- {
1703
- "kind": "js",
1704
- "name": "templates",
1705
- "declaration": {
1706
- "name": "o",
1707
- "module": "dist/chunks/en-GB.VO4GDE3X.js"
1708
- }
1709
- }
1710
- ]
1711
- },
1712
- {
1713
- "kind": "javascript-module",
1714
- "path": "dist/chunks/en.MNFLVOE3.js",
1715
- "declarations": [
1777
+ "name": "settings",
1778
+ "type": {
1779
+ "text": "string"
1780
+ },
1781
+ "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiIwODkzNTcwMTgyNTM2NyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwidmF1bHRPbkFncmVlbWVudCI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmMzA4ODVmMC04MjljLTRmMGEtYjIyMi1iN2Y1OWQzNzZlYWYiLCJhcGlWZXJzaW9uIjoiMi40IiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fX0='"
1782
+ },
1716
1783
  {
1717
1784
  "kind": "variable",
1718
- "name": "o",
1719
- "default": "t"
1785
+ "name": "CONFIGURATION_RESPONSE",
1786
+ "type": {
1787
+ "text": "object"
1788
+ },
1789
+ "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: {}, }"
1790
+ },
1791
+ {
1792
+ "kind": "function",
1793
+ "name": "mockExchangeCall",
1794
+ "parameters": [
1795
+ {
1796
+ "name": "page",
1797
+ "type": {
1798
+ "text": "Page"
1799
+ }
1800
+ }
1801
+ ]
1802
+ },
1803
+ {
1804
+ "kind": "function",
1805
+ "name": "mockPaymentsCall",
1806
+ "parameters": [
1807
+ {
1808
+ "name": "page",
1809
+ "type": {
1810
+ "text": "Page"
1811
+ }
1812
+ }
1813
+ ]
1720
1814
  }
1721
1815
  ],
1722
1816
  "exports": [
1723
1817
  {
1724
1818
  "kind": "js",
1725
- "name": "templates",
1819
+ "name": "settings",
1726
1820
  "declaration": {
1727
- "name": "o",
1728
- "module": "dist/chunks/en.MNFLVOE3.js"
1821
+ "name": "settings",
1822
+ "module": "e2e/mocks/vaulted-paypal.ts"
1729
1823
  }
1730
- }
1731
- ]
1732
- },
1733
- {
1734
- "kind": "javascript-module",
1735
- "path": "dist/chunks/es-AR.TBWVUZEF.js",
1736
- "declarations": [
1824
+ },
1737
1825
  {
1738
- "kind": "variable",
1739
- "name": "i",
1740
- "default": "e"
1741
- }
1742
- ],
1743
- "exports": [
1826
+ "kind": "js",
1827
+ "name": "CONFIGURATION_RESPONSE",
1828
+ "declaration": {
1829
+ "name": "CONFIGURATION_RESPONSE",
1830
+ "module": "e2e/mocks/vaulted-paypal.ts"
1831
+ }
1832
+ },
1744
1833
  {
1745
1834
  "kind": "js",
1746
- "name": "templates",
1835
+ "name": "mockExchangeCall",
1747
1836
  "declaration": {
1748
- "name": "i",
1749
- "module": "dist/chunks/es-AR.TBWVUZEF.js"
1837
+ "name": "mockExchangeCall",
1838
+ "module": "e2e/mocks/vaulted-paypal.ts"
1839
+ }
1840
+ },
1841
+ {
1842
+ "kind": "js",
1843
+ "name": "mockPaymentsCall",
1844
+ "declaration": {
1845
+ "name": "mockPaymentsCall",
1846
+ "module": "e2e/mocks/vaulted-paypal.ts"
1750
1847
  }
1751
1848
  }
1752
1849
  ]
1753
1850
  },
1754
1851
  {
1755
1852
  "kind": "javascript-module",
1756
- "path": "dist/chunks/es-MX.6EMWUABR.js",
1853
+ "path": "e2e/mocks/vaulting-card.ts",
1757
1854
  "declarations": [
1758
1855
  {
1759
1856
  "kind": "variable",
1760
- "name": "i",
1761
- "default": "e"
1857
+ "name": "settings",
1858
+ "type": {
1859
+ "text": "string"
1860
+ },
1861
+ "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJjdXN0b21lcklkIiwib3JkZXJJZCI6IjM4NjYyIiwiYW1vdW50Ijo1MDAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6e30sIm9yZGVyIjp7ImNvdW50cnlDb2RlIjoiRlIiLCJsaW5lSXRlbXMiOlt7Iml0ZW1JZCI6InByaW1lci1ob29kaWUtZ3JheSIsImRlc2NyaXB0aW9uIjoiUHJpbWVyIEhvb2RpZSIsImFtb3VudCI6NTAwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImNvdW50cnlDb2RlIjoiRlIifSwibmF0aW9uYWxEb2N1bWVudElkIjoiOTAxMTIxMTIzNDU2NyJ9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjp0cnVlLCJwYXltZW50VHlwZSI6IkZJUlNUX1BBWU1FTlQiLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlNRU5UX0NBUkQiOnsiY2FwdHVyZVZhdWx0ZWRDYXJkQ3Z2Ijp0cnVlfX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmZTRkNzFiMi1mNzJmLTQ4NGItYjlkMS1hNDBkMDM0ZGRmNmMiLCJhcGlWZXJzaW9uIjoiMi4zIiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7InN0cmlwZSI6eyJwdWJsaXNoYWJsZUtleSI6InBrX3Rlc3RfNTFPOHpmUUtVSzZiWElkQzJ4UHZTUzZVdnJpRTlrd3B2dHR3QjdIOVBBemhOQVpvR3pMZ2lET3lkNFdvb296ZVdIeG9ScktvNmIyVmpaWXhOQ01YM1c3YmswMHJNRGl2amF1In0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fX0='"
1862
+ },
1863
+ {
1864
+ "kind": "variable",
1865
+ "name": "CONFIGURATION_RESPONSE",
1866
+ "type": {
1867
+ "text": "object"
1868
+ },
1869
+ "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: '73195f20-be41-43ac-abad-d6fdf786c4cb', order: { orderId: '38662', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 5000, merchantAmount: 5000, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 5000, quantity: 1, }, ], }, customer: { customerId: 'customerId', billingAddress: { countryCode: 'FR', }, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: true, options: [ { type: 'PAYMENT_CARD', }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '6723b06a-37c5-4b93-87bf-9dadf4aa62f8', env: 'SANDBOX', paymentMethods: [ { id: '0b4775b8-4c43-4261-88ec-24d4f891912a', type: 'STRIPE_ACH', options: { merchantId: '7804d409-4caa-4fa8-8adb-ab34217d6c4e', merchantAccountId: '42dd7bba-3c06-5c50-b009-d1aafdd18a51', }, processorConfigId: '7804d409-4caa-4fa8-8adb-ab34217d6c4e', implementationType: 'NATIVE_SDK', name: 'Automated Clearing House (ACH)', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/BANK_TRANSFER/bank-transfer-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/BANK_TRANSFER/bank-transfer-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay with ACH', textColor: { dark: '#FFFFFF', light: '#000000', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'f7e3b1d5-9922-4269-8d69-98a021c3c7ab', type: 'PRIMER_TEST_KLARNA', options: { merchantId: 'acct_primer-test_1', merchantAccountId: 'f49628b3-fc15-5e89-a710-1ad4a78a1b3b', }, processorConfigId: '7799d7a0-21b3-4778-bac4-de4bb302a702', 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: 'f43bbce8-2d0c-497e-b35c-7eeb647e0f9f', type: 'NOL_PAY', options: { merchantId: 'b89640a1-f1fd-47ca-857a-dac21d52f778', merchantAccountId: 'a3b4cecc-2305-54db-86f5-9670e237ed2d', appId: '1301', }, processorConfigId: 'b89640a1-f1fd-47ca-857a-dac21d52f778', implementationType: 'NATIVE_SDK', name: 'Nol Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo-light@3x.png', }, backgroundColor: { colored: '#171e90', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFFFFF', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, captureVaultedCardCvv: 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: {}, }"
1870
+ },
1871
+ {
1872
+ "kind": "variable",
1873
+ "name": "SUCCESSFUL_CARD_TO_VAULT",
1874
+ "type": {
1875
+ "text": "string"
1876
+ },
1877
+ "default": "'4000002500001001'"
1878
+ },
1879
+ {
1880
+ "kind": "function",
1881
+ "name": "mockPaymentInstruments",
1882
+ "parameters": [
1883
+ {
1884
+ "name": "page",
1885
+ "type": {
1886
+ "text": "Page"
1887
+ }
1888
+ }
1889
+ ]
1890
+ },
1891
+ {
1892
+ "kind": "function",
1893
+ "name": "mockPayments",
1894
+ "parameters": [
1895
+ {
1896
+ "name": "page",
1897
+ "type": {
1898
+ "text": "Page"
1899
+ }
1900
+ }
1901
+ ]
1762
1902
  }
1763
1903
  ],
1764
1904
  "exports": [
1765
1905
  {
1766
1906
  "kind": "js",
1767
- "name": "templates",
1907
+ "name": "settings",
1768
1908
  "declaration": {
1769
- "name": "i",
1770
- "module": "dist/chunks/es-MX.6EMWUABR.js"
1909
+ "name": "settings",
1910
+ "module": "e2e/mocks/vaulting-card.ts"
1911
+ }
1912
+ },
1913
+ {
1914
+ "kind": "js",
1915
+ "name": "CONFIGURATION_RESPONSE",
1916
+ "declaration": {
1917
+ "name": "CONFIGURATION_RESPONSE",
1918
+ "module": "e2e/mocks/vaulting-card.ts"
1919
+ }
1920
+ },
1921
+ {
1922
+ "kind": "js",
1923
+ "name": "SUCCESSFUL_CARD_TO_VAULT",
1924
+ "declaration": {
1925
+ "name": "SUCCESSFUL_CARD_TO_VAULT",
1926
+ "module": "e2e/mocks/vaulting-card.ts"
1927
+ }
1928
+ },
1929
+ {
1930
+ "kind": "js",
1931
+ "name": "mockPaymentInstruments",
1932
+ "declaration": {
1933
+ "name": "mockPaymentInstruments",
1934
+ "module": "e2e/mocks/vaulting-card.ts"
1935
+ }
1936
+ },
1937
+ {
1938
+ "kind": "js",
1939
+ "name": "mockPayments",
1940
+ "declaration": {
1941
+ "name": "mockPayments",
1942
+ "module": "e2e/mocks/vaulting-card.ts"
1771
1943
  }
1772
1944
  }
1773
1945
  ]
1774
1946
  },
1775
1947
  {
1776
1948
  "kind": "javascript-module",
1777
- "path": "dist/chunks/es.XZLDFHYI.js",
1949
+ "path": "e2e/tests/card-3ds.spec.ts",
1950
+ "declarations": [],
1951
+ "exports": []
1952
+ },
1953
+ {
1954
+ "kind": "javascript-module",
1955
+ "path": "e2e/tests/card-basic.spec.ts",
1956
+ "declarations": [],
1957
+ "exports": []
1958
+ },
1959
+ {
1960
+ "kind": "javascript-module",
1961
+ "path": "e2e/tests/disabled-payments.spec.ts",
1778
1962
  "declarations": [
1779
1963
  {
1780
1964
  "kind": "variable",
1781
- "name": "i",
1782
- "default": "e"
1965
+ "name": "settingsEnabled",
1966
+ "type": {
1967
+ "text": "string"
1968
+ },
1969
+ "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsiZGlzYWJsZWRQYXltZW50cyI6ZmFsc2V9fQ=='"
1783
1970
  }
1784
1971
  ],
1785
1972
  "exports": [
1786
1973
  {
1787
1974
  "kind": "js",
1788
- "name": "templates",
1975
+ "name": "settingsEnabled",
1789
1976
  "declaration": {
1790
- "name": "i",
1791
- "module": "dist/chunks/es.XZLDFHYI.js"
1977
+ "name": "settingsEnabled",
1978
+ "module": "e2e/tests/disabled-payments.spec.ts"
1792
1979
  }
1793
1980
  }
1794
1981
  ]
1795
1982
  },
1796
1983
  {
1797
1984
  "kind": "javascript-module",
1798
- "path": "dist/chunks/et-EE.JBSFMKZ2.js",
1985
+ "path": "e2e/tests/klarna.spec.ts",
1986
+ "declarations": [],
1987
+ "exports": []
1988
+ },
1989
+ {
1990
+ "kind": "javascript-module",
1991
+ "path": "e2e/tests/vaulted-paypal.spec.ts",
1992
+ "declarations": [],
1993
+ "exports": []
1994
+ },
1995
+ {
1996
+ "kind": "javascript-module",
1997
+ "path": "e2e/tests/vaulting-card.spec.ts",
1998
+ "declarations": [],
1999
+ "exports": []
2000
+ },
2001
+ {
2002
+ "kind": "javascript-module",
2003
+ "path": "dist/chunks/ar.KRXB3WQO.js",
1799
2004
  "declarations": [
1800
2005
  {
1801
2006
  "kind": "variable",
1802
- "name": "r",
2007
+ "name": "o",
1803
2008
  "default": "e"
1804
2009
  }
1805
2010
  ],
@@ -1808,20 +2013,20 @@
1808
2013
  "kind": "js",
1809
2014
  "name": "templates",
1810
2015
  "declaration": {
1811
- "name": "r",
1812
- "module": "dist/chunks/et-EE.JBSFMKZ2.js"
2016
+ "name": "o",
2017
+ "module": "dist/chunks/ar.KRXB3WQO.js"
1813
2018
  }
1814
2019
  }
1815
2020
  ]
1816
2021
  },
1817
2022
  {
1818
2023
  "kind": "javascript-module",
1819
- "path": "dist/chunks/fi-FI.I75VK2ID.js",
2024
+ "path": "dist/chunks/bg.6SKJRXIR.js",
1820
2025
  "declarations": [
1821
2026
  {
1822
2027
  "kind": "variable",
1823
- "name": "n",
1824
- "default": "a"
2028
+ "name": "o",
2029
+ "default": "e"
1825
2030
  }
1826
2031
  ],
1827
2032
  "exports": [
@@ -1829,15 +2034,15 @@
1829
2034
  "kind": "js",
1830
2035
  "name": "templates",
1831
2036
  "declaration": {
1832
- "name": "n",
1833
- "module": "dist/chunks/fi-FI.I75VK2ID.js"
2037
+ "name": "o",
2038
+ "module": "dist/chunks/bg.6SKJRXIR.js"
1834
2039
  }
1835
2040
  }
1836
2041
  ]
1837
2042
  },
1838
2043
  {
1839
2044
  "kind": "javascript-module",
1840
- "path": "dist/chunks/fr.JBNP6RXT.js",
2045
+ "path": "dist/chunks/ca.SANDLFEK.js",
1841
2046
  "declarations": [
1842
2047
  {
1843
2048
  "kind": "variable",
@@ -1851,102 +2056,121 @@
1851
2056
  "name": "templates",
1852
2057
  "declaration": {
1853
2058
  "name": "i",
1854
- "module": "dist/chunks/fr.JBNP6RXT.js"
2059
+ "module": "dist/chunks/ca.SANDLFEK.js"
1855
2060
  }
1856
2061
  }
1857
2062
  ]
1858
2063
  },
1859
2064
  {
1860
2065
  "kind": "javascript-module",
1861
- "path": "dist/chunks/he.PW253QAL.js",
2066
+ "path": "dist/chunks/chunk.DV3REKZU.js",
1862
2067
  "declarations": [
2068
+ {
2069
+ "kind": "function",
2070
+ "name": "k",
2071
+ "parameters": [
2072
+ {
2073
+ "name": "c"
2074
+ }
2075
+ ]
2076
+ },
1863
2077
  {
1864
2078
  "kind": "variable",
1865
- "name": "o",
1866
- "default": "e"
1867
- }
1868
- ],
1869
- "exports": [
2079
+ "name": "b",
2080
+ "default": "c[a]"
2081
+ },
1870
2082
  {
1871
- "kind": "js",
1872
- "name": "templates",
1873
- "declaration": {
1874
- "name": "o",
1875
- "module": "dist/chunks/he.PW253QAL.js"
1876
- }
1877
- }
1878
- ]
1879
- },
1880
- {
1881
- "kind": "javascript-module",
1882
- "path": "dist/chunks/hr.LM4RITYJ.js",
1883
- "declarations": [
2083
+ "kind": "function",
2084
+ "name": "l",
2085
+ "parameters": [
2086
+ {
2087
+ "name": "c"
2088
+ },
2089
+ {
2090
+ "name": "a"
2091
+ },
2092
+ {
2093
+ "name": "b"
2094
+ },
2095
+ {
2096
+ "name": "e"
2097
+ }
2098
+ ]
2099
+ },
1884
2100
  {
1885
- "kind": "variable",
1886
- "name": "t",
1887
- "default": "e"
2101
+ "kind": "function",
2102
+ "name": "m",
2103
+ "parameters": [
2104
+ {
2105
+ "name": "c"
2106
+ },
2107
+ {
2108
+ "name": "a"
2109
+ },
2110
+ {
2111
+ "name": "b"
2112
+ }
2113
+ ]
1888
2114
  }
1889
2115
  ],
1890
2116
  "exports": [
1891
2117
  {
1892
2118
  "kind": "js",
1893
- "name": "templates",
2119
+ "name": "a",
1894
2120
  "declaration": {
1895
- "name": "t",
1896
- "module": "dist/chunks/hr.LM4RITYJ.js"
2121
+ "name": "k",
2122
+ "module": "dist/chunks/chunk.DV3REKZU.js"
1897
2123
  }
1898
- }
1899
- ]
1900
- },
1901
- {
1902
- "kind": "javascript-module",
1903
- "path": "dist/chunks/hu.JGCKQA6J.js",
1904
- "declarations": [
2124
+ },
1905
2125
  {
1906
- "kind": "variable",
1907
- "name": "s",
1908
- "default": "e"
1909
- }
1910
- ],
1911
- "exports": [
2126
+ "kind": "js",
2127
+ "name": "b",
2128
+ "declaration": {
2129
+ "name": "l",
2130
+ "module": "dist/chunks/chunk.DV3REKZU.js"
2131
+ }
2132
+ },
1912
2133
  {
1913
2134
  "kind": "js",
1914
- "name": "templates",
2135
+ "name": "c",
1915
2136
  "declaration": {
1916
- "name": "s",
1917
- "module": "dist/chunks/hu.JGCKQA6J.js"
2137
+ "name": "m",
2138
+ "module": "dist/chunks/chunk.DV3REKZU.js"
1918
2139
  }
1919
2140
  }
1920
2141
  ]
1921
2142
  },
1922
2143
  {
1923
2144
  "kind": "javascript-module",
1924
- "path": "dist/chunks/id.VBXULDDY.js",
2145
+ "path": "dist/chunks/chunk.QMLIEEKM.js",
1925
2146
  "declarations": [
1926
2147
  {
1927
2148
  "kind": "variable",
1928
- "name": "r",
1929
- "default": "a"
2149
+ "name": "t",
2150
+ "type": {
2151
+ "text": "object"
2152
+ },
2153
+ "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\"}"
1930
2154
  }
1931
2155
  ],
1932
2156
  "exports": [
1933
2157
  {
1934
2158
  "kind": "js",
1935
- "name": "templates",
2159
+ "name": "a",
1936
2160
  "declaration": {
1937
- "name": "r",
1938
- "module": "dist/chunks/id.VBXULDDY.js"
2161
+ "name": "t",
2162
+ "module": "dist/chunks/chunk.QMLIEEKM.js"
1939
2163
  }
1940
2164
  }
1941
2165
  ]
1942
2166
  },
1943
2167
  {
1944
2168
  "kind": "javascript-module",
1945
- "path": "dist/chunks/it.7Q6BFLDK.js",
2169
+ "path": "dist/chunks/cs.FC4I5M3C.js",
1946
2170
  "declarations": [
1947
2171
  {
1948
2172
  "kind": "variable",
1949
- "name": "r",
2173
+ "name": "n",
1950
2174
  "default": "e"
1951
2175
  }
1952
2176
  ],
@@ -1955,19 +2179,19 @@
1955
2179
  "kind": "js",
1956
2180
  "name": "templates",
1957
2181
  "declaration": {
1958
- "name": "r",
1959
- "module": "dist/chunks/it.7Q6BFLDK.js"
2182
+ "name": "n",
2183
+ "module": "dist/chunks/cs.FC4I5M3C.js"
1960
2184
  }
1961
2185
  }
1962
2186
  ]
1963
2187
  },
1964
2188
  {
1965
2189
  "kind": "javascript-module",
1966
- "path": "dist/chunks/ja.QOC76SSC.js",
2190
+ "path": "dist/chunks/da.YI32NZ7B.js",
1967
2191
  "declarations": [
1968
2192
  {
1969
2193
  "kind": "variable",
1970
- "name": "o",
2194
+ "name": "a",
1971
2195
  "default": "e"
1972
2196
  }
1973
2197
  ],
@@ -1976,19 +2200,19 @@
1976
2200
  "kind": "js",
1977
2201
  "name": "templates",
1978
2202
  "declaration": {
1979
- "name": "o",
1980
- "module": "dist/chunks/ja.QOC76SSC.js"
2203
+ "name": "a",
2204
+ "module": "dist/chunks/da.YI32NZ7B.js"
1981
2205
  }
1982
2206
  }
1983
2207
  ]
1984
2208
  },
1985
2209
  {
1986
2210
  "kind": "javascript-module",
1987
- "path": "dist/chunks/ko.BANZIFNH.js",
2211
+ "path": "dist/chunks/de.7M7UFQB7.js",
1988
2212
  "declarations": [
1989
2213
  {
1990
2214
  "kind": "variable",
1991
- "name": "o",
2215
+ "name": "t",
1992
2216
  "default": "e"
1993
2217
  }
1994
2218
  ],
@@ -1997,20 +2221,20 @@
1997
2221
  "kind": "js",
1998
2222
  "name": "templates",
1999
2223
  "declaration": {
2000
- "name": "o",
2001
- "module": "dist/chunks/ko.BANZIFNH.js"
2224
+ "name": "t",
2225
+ "module": "dist/chunks/de.7M7UFQB7.js"
2002
2226
  }
2003
2227
  }
2004
2228
  ]
2005
2229
  },
2006
2230
  {
2007
2231
  "kind": "javascript-module",
2008
- "path": "dist/chunks/lt-LT.Q2SRJOKH.js",
2232
+ "path": "dist/chunks/el.XSGTYDZR.js",
2009
2233
  "declarations": [
2010
2234
  {
2011
2235
  "kind": "variable",
2012
- "name": "t",
2013
- "default": "a"
2236
+ "name": "o",
2237
+ "default": "e"
2014
2238
  }
2015
2239
  ],
2016
2240
  "exports": [
@@ -2018,20 +2242,20 @@
2018
2242
  "kind": "js",
2019
2243
  "name": "templates",
2020
2244
  "declaration": {
2021
- "name": "t",
2022
- "module": "dist/chunks/lt-LT.Q2SRJOKH.js"
2245
+ "name": "o",
2246
+ "module": "dist/chunks/el.XSGTYDZR.js"
2023
2247
  }
2024
2248
  }
2025
2249
  ]
2026
2250
  },
2027
2251
  {
2028
2252
  "kind": "javascript-module",
2029
- "path": "dist/chunks/lt.XMNFEN5T.js",
2253
+ "path": "dist/chunks/en-GB.VO4GDE3X.js",
2030
2254
  "declarations": [
2031
2255
  {
2032
2256
  "kind": "variable",
2033
2257
  "name": "o",
2034
- "default": "a"
2258
+ "default": "t"
2035
2259
  }
2036
2260
  ],
2037
2261
  "exports": [
@@ -2040,19 +2264,19 @@
2040
2264
  "name": "templates",
2041
2265
  "declaration": {
2042
2266
  "name": "o",
2043
- "module": "dist/chunks/lt.XMNFEN5T.js"
2267
+ "module": "dist/chunks/en-GB.VO4GDE3X.js"
2044
2268
  }
2045
2269
  }
2046
2270
  ]
2047
2271
  },
2048
2272
  {
2049
2273
  "kind": "javascript-module",
2050
- "path": "dist/chunks/lv-LV.3AJDTMU5.js",
2274
+ "path": "dist/chunks/en.MNFLVOE3.js",
2051
2275
  "declarations": [
2052
2276
  {
2053
2277
  "kind": "variable",
2054
- "name": "t",
2055
- "default": "a"
2278
+ "name": "o",
2279
+ "default": "t"
2056
2280
  }
2057
2281
  ],
2058
2282
  "exports": [
@@ -2060,20 +2284,20 @@
2060
2284
  "kind": "js",
2061
2285
  "name": "templates",
2062
2286
  "declaration": {
2063
- "name": "t",
2064
- "module": "dist/chunks/lv-LV.3AJDTMU5.js"
2287
+ "name": "o",
2288
+ "module": "dist/chunks/en.MNFLVOE3.js"
2065
2289
  }
2066
2290
  }
2067
2291
  ]
2068
2292
  },
2069
2293
  {
2070
2294
  "kind": "javascript-module",
2071
- "path": "dist/chunks/lv.TFPDXNEV.js",
2295
+ "path": "dist/chunks/es-AR.TBWVUZEF.js",
2072
2296
  "declarations": [
2073
2297
  {
2074
2298
  "kind": "variable",
2075
- "name": "t",
2076
- "default": "a"
2299
+ "name": "i",
2300
+ "default": "e"
2077
2301
  }
2078
2302
  ],
2079
2303
  "exports": [
@@ -2081,20 +2305,20 @@
2081
2305
  "kind": "js",
2082
2306
  "name": "templates",
2083
2307
  "declaration": {
2084
- "name": "t",
2085
- "module": "dist/chunks/lv.TFPDXNEV.js"
2308
+ "name": "i",
2309
+ "module": "dist/chunks/es-AR.TBWVUZEF.js"
2086
2310
  }
2087
2311
  }
2088
2312
  ]
2089
2313
  },
2090
2314
  {
2091
2315
  "kind": "javascript-module",
2092
- "path": "dist/chunks/ms.FPTX4NM4.js",
2316
+ "path": "dist/chunks/es-MX.6EMWUABR.js",
2093
2317
  "declarations": [
2094
2318
  {
2095
2319
  "kind": "variable",
2096
2320
  "name": "i",
2097
- "default": "a"
2321
+ "default": "e"
2098
2322
  }
2099
2323
  ],
2100
2324
  "exports": [
@@ -2103,18 +2327,18 @@
2103
2327
  "name": "templates",
2104
2328
  "declaration": {
2105
2329
  "name": "i",
2106
- "module": "dist/chunks/ms.FPTX4NM4.js"
2330
+ "module": "dist/chunks/es-MX.6EMWUABR.js"
2107
2331
  }
2108
2332
  }
2109
2333
  ]
2110
2334
  },
2111
2335
  {
2112
2336
  "kind": "javascript-module",
2113
- "path": "dist/chunks/nb.CAFSKRQ2.js",
2337
+ "path": "dist/chunks/es.XZLDFHYI.js",
2114
2338
  "declarations": [
2115
2339
  {
2116
2340
  "kind": "variable",
2117
- "name": "a",
2341
+ "name": "i",
2118
2342
  "default": "e"
2119
2343
  }
2120
2344
  ],
@@ -2123,19 +2347,19 @@
2123
2347
  "kind": "js",
2124
2348
  "name": "templates",
2125
2349
  "declaration": {
2126
- "name": "a",
2127
- "module": "dist/chunks/nb.CAFSKRQ2.js"
2350
+ "name": "i",
2351
+ "module": "dist/chunks/es.XZLDFHYI.js"
2128
2352
  }
2129
2353
  }
2130
2354
  ]
2131
2355
  },
2132
2356
  {
2133
2357
  "kind": "javascript-module",
2134
- "path": "dist/chunks/nl.7BPSDYTC.js",
2358
+ "path": "dist/chunks/et-EE.JBSFMKZ2.js",
2135
2359
  "declarations": [
2136
2360
  {
2137
2361
  "kind": "variable",
2138
- "name": "n",
2362
+ "name": "r",
2139
2363
  "default": "e"
2140
2364
  }
2141
2365
  ],
@@ -2144,20 +2368,20 @@
2144
2368
  "kind": "js",
2145
2369
  "name": "templates",
2146
2370
  "declaration": {
2147
- "name": "n",
2148
- "module": "dist/chunks/nl.7BPSDYTC.js"
2371
+ "name": "r",
2372
+ "module": "dist/chunks/et-EE.JBSFMKZ2.js"
2149
2373
  }
2150
2374
  }
2151
2375
  ]
2152
2376
  },
2153
2377
  {
2154
2378
  "kind": "javascript-module",
2155
- "path": "dist/chunks/nl_NL.6ZVCFPVW.js",
2379
+ "path": "dist/chunks/fi-FI.I75VK2ID.js",
2156
2380
  "declarations": [
2157
2381
  {
2158
2382
  "kind": "variable",
2159
2383
  "name": "n",
2160
- "default": "e"
2384
+ "default": "a"
2161
2385
  }
2162
2386
  ],
2163
2387
  "exports": [
@@ -2166,19 +2390,19 @@
2166
2390
  "name": "templates",
2167
2391
  "declaration": {
2168
2392
  "name": "n",
2169
- "module": "dist/chunks/nl_NL.6ZVCFPVW.js"
2393
+ "module": "dist/chunks/fi-FI.I75VK2ID.js"
2170
2394
  }
2171
2395
  }
2172
2396
  ]
2173
2397
  },
2174
2398
  {
2175
2399
  "kind": "javascript-module",
2176
- "path": "dist/chunks/pl.RF34QM23.js",
2400
+ "path": "dist/chunks/fr.JBNP6RXT.js",
2177
2401
  "declarations": [
2178
2402
  {
2179
2403
  "kind": "variable",
2180
2404
  "name": "i",
2181
- "default": "a"
2405
+ "default": "e"
2182
2406
  }
2183
2407
  ],
2184
2408
  "exports": [
@@ -2187,18 +2411,18 @@
2187
2411
  "name": "templates",
2188
2412
  "declaration": {
2189
2413
  "name": "i",
2190
- "module": "dist/chunks/pl.RF34QM23.js"
2414
+ "module": "dist/chunks/fr.JBNP6RXT.js"
2191
2415
  }
2192
2416
  }
2193
2417
  ]
2194
2418
  },
2195
2419
  {
2196
2420
  "kind": "javascript-module",
2197
- "path": "dist/chunks/pt-BR.AKDHLRUA.js",
2421
+ "path": "dist/chunks/he.PW253QAL.js",
2198
2422
  "declarations": [
2199
2423
  {
2200
2424
  "kind": "variable",
2201
- "name": "t",
2425
+ "name": "o",
2202
2426
  "default": "e"
2203
2427
  }
2204
2428
  ],
@@ -2207,15 +2431,15 @@
2207
2431
  "kind": "js",
2208
2432
  "name": "templates",
2209
2433
  "declaration": {
2210
- "name": "t",
2211
- "module": "dist/chunks/pt-BR.AKDHLRUA.js"
2434
+ "name": "o",
2435
+ "module": "dist/chunks/he.PW253QAL.js"
2212
2436
  }
2213
2437
  }
2214
2438
  ]
2215
2439
  },
2216
2440
  {
2217
2441
  "kind": "javascript-module",
2218
- "path": "dist/chunks/pt.VBALOWHZ.js",
2442
+ "path": "dist/chunks/hr.LM4RITYJ.js",
2219
2443
  "declarations": [
2220
2444
  {
2221
2445
  "kind": "variable",
@@ -2229,18 +2453,18 @@
2229
2453
  "name": "templates",
2230
2454
  "declaration": {
2231
2455
  "name": "t",
2232
- "module": "dist/chunks/pt.VBALOWHZ.js"
2456
+ "module": "dist/chunks/hr.LM4RITYJ.js"
2233
2457
  }
2234
2458
  }
2235
2459
  ]
2236
2460
  },
2237
2461
  {
2238
2462
  "kind": "javascript-module",
2239
- "path": "dist/chunks/ro.WN7VCF27.js",
2463
+ "path": "dist/chunks/hu.JGCKQA6J.js",
2240
2464
  "declarations": [
2241
2465
  {
2242
2466
  "kind": "variable",
2243
- "name": "i",
2467
+ "name": "s",
2244
2468
  "default": "e"
2245
2469
  }
2246
2470
  ],
@@ -2249,20 +2473,20 @@
2249
2473
  "kind": "js",
2250
2474
  "name": "templates",
2251
2475
  "declaration": {
2252
- "name": "i",
2253
- "module": "dist/chunks/ro.WN7VCF27.js"
2476
+ "name": "s",
2477
+ "module": "dist/chunks/hu.JGCKQA6J.js"
2254
2478
  }
2255
2479
  }
2256
2480
  ]
2257
2481
  },
2258
2482
  {
2259
2483
  "kind": "javascript-module",
2260
- "path": "dist/chunks/ru.ICXGVGRR.js",
2484
+ "path": "dist/chunks/id.VBXULDDY.js",
2261
2485
  "declarations": [
2262
2486
  {
2263
2487
  "kind": "variable",
2264
- "name": "o",
2265
- "default": "e"
2488
+ "name": "r",
2489
+ "default": "a"
2266
2490
  }
2267
2491
  ],
2268
2492
  "exports": [
@@ -2270,15 +2494,15 @@
2270
2494
  "kind": "js",
2271
2495
  "name": "templates",
2272
2496
  "declaration": {
2273
- "name": "o",
2274
- "module": "dist/chunks/ru.ICXGVGRR.js"
2497
+ "name": "r",
2498
+ "module": "dist/chunks/id.VBXULDDY.js"
2275
2499
  }
2276
2500
  }
2277
2501
  ]
2278
2502
  },
2279
2503
  {
2280
2504
  "kind": "javascript-module",
2281
- "path": "dist/chunks/sk.SIP5JIOX.js",
2505
+ "path": "dist/chunks/it.7Q6BFLDK.js",
2282
2506
  "declarations": [
2283
2507
  {
2284
2508
  "kind": "variable",
@@ -2292,18 +2516,18 @@
2292
2516
  "name": "templates",
2293
2517
  "declaration": {
2294
2518
  "name": "r",
2295
- "module": "dist/chunks/sk.SIP5JIOX.js"
2519
+ "module": "dist/chunks/it.7Q6BFLDK.js"
2296
2520
  }
2297
2521
  }
2298
2522
  ]
2299
2523
  },
2300
2524
  {
2301
2525
  "kind": "javascript-module",
2302
- "path": "dist/chunks/sl.R77UEKCA.js",
2526
+ "path": "dist/chunks/ja.QOC76SSC.js",
2303
2527
  "declarations": [
2304
2528
  {
2305
2529
  "kind": "variable",
2306
- "name": "r",
2530
+ "name": "o",
2307
2531
  "default": "e"
2308
2532
  }
2309
2533
  ],
@@ -2312,15 +2536,15 @@
2312
2536
  "kind": "js",
2313
2537
  "name": "templates",
2314
2538
  "declaration": {
2315
- "name": "r",
2316
- "module": "dist/chunks/sl.R77UEKCA.js"
2539
+ "name": "o",
2540
+ "module": "dist/chunks/ja.QOC76SSC.js"
2317
2541
  }
2318
2542
  }
2319
2543
  ]
2320
2544
  },
2321
2545
  {
2322
2546
  "kind": "javascript-module",
2323
- "path": "dist/chunks/sr-RS.6M2YSTDX.js",
2547
+ "path": "dist/chunks/ko.BANZIFNH.js",
2324
2548
  "declarations": [
2325
2549
  {
2326
2550
  "kind": "variable",
@@ -2334,19 +2558,19 @@
2334
2558
  "name": "templates",
2335
2559
  "declaration": {
2336
2560
  "name": "o",
2337
- "module": "dist/chunks/sr-RS.6M2YSTDX.js"
2561
+ "module": "dist/chunks/ko.BANZIFNH.js"
2338
2562
  }
2339
2563
  }
2340
2564
  ]
2341
2565
  },
2342
2566
  {
2343
2567
  "kind": "javascript-module",
2344
- "path": "dist/chunks/sv.33ZY4CDS.js",
2568
+ "path": "dist/chunks/lt-LT.Q2SRJOKH.js",
2345
2569
  "declarations": [
2346
2570
  {
2347
2571
  "kind": "variable",
2348
- "name": "n",
2349
- "default": "e"
2572
+ "name": "t",
2573
+ "default": "a"
2350
2574
  }
2351
2575
  ],
2352
2576
  "exports": [
@@ -2354,20 +2578,20 @@
2354
2578
  "kind": "js",
2355
2579
  "name": "templates",
2356
2580
  "declaration": {
2357
- "name": "n",
2358
- "module": "dist/chunks/sv.33ZY4CDS.js"
2581
+ "name": "t",
2582
+ "module": "dist/chunks/lt-LT.Q2SRJOKH.js"
2359
2583
  }
2360
2584
  }
2361
2585
  ]
2362
2586
  },
2363
2587
  {
2364
2588
  "kind": "javascript-module",
2365
- "path": "dist/chunks/th.M27YUIZC.js",
2589
+ "path": "dist/chunks/lt.XMNFEN5T.js",
2366
2590
  "declarations": [
2367
2591
  {
2368
2592
  "kind": "variable",
2369
2593
  "name": "o",
2370
- "default": "e"
2594
+ "default": "a"
2371
2595
  }
2372
2596
  ],
2373
2597
  "exports": [
@@ -2376,19 +2600,19 @@
2376
2600
  "name": "templates",
2377
2601
  "declaration": {
2378
2602
  "name": "o",
2379
- "module": "dist/chunks/th.M27YUIZC.js"
2603
+ "module": "dist/chunks/lt.XMNFEN5T.js"
2380
2604
  }
2381
2605
  }
2382
2606
  ]
2383
2607
  },
2384
2608
  {
2385
2609
  "kind": "javascript-module",
2386
- "path": "dist/chunks/tr.Q2SIY6NA.js",
2610
+ "path": "dist/chunks/lv-LV.3AJDTMU5.js",
2387
2611
  "declarations": [
2388
2612
  {
2389
2613
  "kind": "variable",
2390
- "name": "n",
2391
- "default": "e"
2614
+ "name": "t",
2615
+ "default": "a"
2392
2616
  }
2393
2617
  ],
2394
2618
  "exports": [
@@ -2396,20 +2620,20 @@
2396
2620
  "kind": "js",
2397
2621
  "name": "templates",
2398
2622
  "declaration": {
2399
- "name": "n",
2400
- "module": "dist/chunks/tr.Q2SIY6NA.js"
2623
+ "name": "t",
2624
+ "module": "dist/chunks/lv-LV.3AJDTMU5.js"
2401
2625
  }
2402
2626
  }
2403
2627
  ]
2404
2628
  },
2405
2629
  {
2406
2630
  "kind": "javascript-module",
2407
- "path": "dist/chunks/uk-UA.EJZOGSJR.js",
2631
+ "path": "dist/chunks/lv.TFPDXNEV.js",
2408
2632
  "declarations": [
2409
2633
  {
2410
2634
  "kind": "variable",
2411
- "name": "o",
2412
- "default": "e"
2635
+ "name": "t",
2636
+ "default": "a"
2413
2637
  }
2414
2638
  ],
2415
2639
  "exports": [
@@ -2417,20 +2641,20 @@
2417
2641
  "kind": "js",
2418
2642
  "name": "templates",
2419
2643
  "declaration": {
2420
- "name": "o",
2421
- "module": "dist/chunks/uk-UA.EJZOGSJR.js"
2644
+ "name": "t",
2645
+ "module": "dist/chunks/lv.TFPDXNEV.js"
2422
2646
  }
2423
2647
  }
2424
2648
  ]
2425
2649
  },
2426
2650
  {
2427
2651
  "kind": "javascript-module",
2428
- "path": "dist/chunks/vi.3RROGLXM.js",
2652
+ "path": "dist/chunks/ms.FPTX4NM4.js",
2429
2653
  "declarations": [
2430
2654
  {
2431
2655
  "kind": "variable",
2432
- "name": "a",
2433
- "default": "n"
2656
+ "name": "i",
2657
+ "default": "a"
2434
2658
  }
2435
2659
  ],
2436
2660
  "exports": [
@@ -2438,20 +2662,20 @@
2438
2662
  "kind": "js",
2439
2663
  "name": "templates",
2440
2664
  "declaration": {
2441
- "name": "a",
2442
- "module": "dist/chunks/vi.3RROGLXM.js"
2665
+ "name": "i",
2666
+ "module": "dist/chunks/ms.FPTX4NM4.js"
2443
2667
  }
2444
2668
  }
2445
2669
  ]
2446
2670
  },
2447
2671
  {
2448
2672
  "kind": "javascript-module",
2449
- "path": "dist/chunks/zf.GGWFQ3Y7.js",
2673
+ "path": "dist/chunks/nb.CAFSKRQ2.js",
2450
2674
  "declarations": [
2451
2675
  {
2452
2676
  "kind": "variable",
2453
2677
  "name": "a",
2454
- "default": "t"
2678
+ "default": "e"
2455
2679
  }
2456
2680
  ],
2457
2681
  "exports": [
@@ -2460,18 +2684,18 @@
2460
2684
  "name": "templates",
2461
2685
  "declaration": {
2462
2686
  "name": "a",
2463
- "module": "dist/chunks/zf.GGWFQ3Y7.js"
2687
+ "module": "dist/chunks/nb.CAFSKRQ2.js"
2464
2688
  }
2465
2689
  }
2466
2690
  ]
2467
2691
  },
2468
2692
  {
2469
2693
  "kind": "javascript-module",
2470
- "path": "dist/chunks/zh-CN.MQHNRMN4.js",
2694
+ "path": "dist/chunks/nl.7BPSDYTC.js",
2471
2695
  "declarations": [
2472
2696
  {
2473
2697
  "kind": "variable",
2474
- "name": "o",
2698
+ "name": "n",
2475
2699
  "default": "e"
2476
2700
  }
2477
2701
  ],
@@ -2480,19 +2704,19 @@
2480
2704
  "kind": "js",
2481
2705
  "name": "templates",
2482
2706
  "declaration": {
2483
- "name": "o",
2484
- "module": "dist/chunks/zh-CN.MQHNRMN4.js"
2707
+ "name": "n",
2708
+ "module": "dist/chunks/nl.7BPSDYTC.js"
2485
2709
  }
2486
2710
  }
2487
2711
  ]
2488
2712
  },
2489
2713
  {
2490
2714
  "kind": "javascript-module",
2491
- "path": "dist/chunks/zh-HK.WNR7XUSX.js",
2715
+ "path": "dist/chunks/nl_NL.6ZVCFPVW.js",
2492
2716
  "declarations": [
2493
2717
  {
2494
2718
  "kind": "variable",
2495
- "name": "o",
2719
+ "name": "n",
2496
2720
  "default": "e"
2497
2721
  }
2498
2722
  ],
@@ -2501,20 +2725,20 @@
2501
2725
  "kind": "js",
2502
2726
  "name": "templates",
2503
2727
  "declaration": {
2504
- "name": "o",
2505
- "module": "dist/chunks/zh-HK.WNR7XUSX.js"
2728
+ "name": "n",
2729
+ "module": "dist/chunks/nl_NL.6ZVCFPVW.js"
2506
2730
  }
2507
2731
  }
2508
2732
  ]
2509
2733
  },
2510
2734
  {
2511
2735
  "kind": "javascript-module",
2512
- "path": "dist/chunks/zh-TW.GNCY2PNY.js",
2736
+ "path": "dist/chunks/pl.RF34QM23.js",
2513
2737
  "declarations": [
2514
2738
  {
2515
2739
  "kind": "variable",
2516
- "name": "o",
2517
- "default": "e"
2740
+ "name": "i",
2741
+ "default": "a"
2518
2742
  }
2519
2743
  ],
2520
2744
  "exports": [
@@ -2522,534 +2746,348 @@
2522
2746
  "kind": "js",
2523
2747
  "name": "templates",
2524
2748
  "declaration": {
2525
- "name": "o",
2526
- "module": "dist/chunks/zh-TW.GNCY2PNY.js"
2749
+ "name": "i",
2750
+ "module": "dist/chunks/pl.RF34QM23.js"
2527
2751
  }
2528
2752
  }
2529
2753
  ]
2530
2754
  },
2531
2755
  {
2532
2756
  "kind": "javascript-module",
2533
- "path": "e2e/mocks/card-3ds.ts",
2757
+ "path": "dist/chunks/pt-BR.AKDHLRUA.js",
2534
2758
  "declarations": [
2535
2759
  {
2536
2760
  "kind": "variable",
2537
- "name": "settings",
2538
- "type": {
2539
- "text": "string"
2540
- },
2541
- "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI3NDUyNyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7fX0='"
2542
- },
2543
- {
2544
- "kind": "variable",
2545
- "name": "CONFIGURATION_RESPONSE",
2546
- "type": {
2547
- "text": "object"
2548
- },
2549
- "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: {}, }"
2761
+ "name": "t",
2762
+ "default": "e"
2550
2763
  }
2551
2764
  ],
2552
2765
  "exports": [
2553
2766
  {
2554
2767
  "kind": "js",
2555
- "name": "settings",
2556
- "declaration": {
2557
- "name": "settings",
2558
- "module": "e2e/mocks/card-3ds.ts"
2559
- }
2560
- },
2561
- {
2562
- "kind": "js",
2563
- "name": "CONFIGURATION_RESPONSE",
2768
+ "name": "templates",
2564
2769
  "declaration": {
2565
- "name": "CONFIGURATION_RESPONSE",
2566
- "module": "e2e/mocks/card-3ds.ts"
2770
+ "name": "t",
2771
+ "module": "dist/chunks/pt-BR.AKDHLRUA.js"
2567
2772
  }
2568
2773
  }
2569
2774
  ]
2570
2775
  },
2571
2776
  {
2572
2777
  "kind": "javascript-module",
2573
- "path": "e2e/mocks/card-basic.ts",
2778
+ "path": "dist/chunks/pt.VBALOWHZ.js",
2574
2779
  "declarations": [
2575
2780
  {
2576
2781
  "kind": "variable",
2577
- "name": "settings",
2578
- "type": {
2579
- "text": "string"
2580
- },
2581
- "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJlbnYiOiJDVVNUT01fU1RBR0lORyIsImFwaVZlcnNpb24iOiIyLjIifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnt9fQ=='"
2582
- },
2583
- {
2584
- "kind": "variable",
2585
- "name": "CONFIGURATION_RESPONSE",
2586
- "type": {
2587
- "text": "object"
2588
- },
2589
- "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: {}, }"
2590
- },
2591
- {
2592
- "kind": "variable",
2593
- "name": "SUCCESSFUL_CARD_NUMBER",
2594
- "type": {
2595
- "text": "string"
2596
- },
2597
- "default": "'4035 5010 0000 0008'"
2598
- },
2599
- {
2600
- "kind": "variable",
2601
- "name": "FAILURE_CARD_NUMBER",
2602
- "type": {
2603
- "text": "string"
2604
- },
2605
- "default": "'4242 4242 4242 4242'"
2606
- },
2607
- {
2608
- "kind": "function",
2609
- "name": "mockPaymentInstruments",
2610
- "parameters": [
2611
- {
2612
- "name": "page",
2613
- "type": {
2614
- "text": "Page"
2615
- }
2616
- }
2617
- ]
2618
- },
2619
- {
2620
- "kind": "function",
2621
- "name": "mockPayments",
2622
- "parameters": [
2623
- {
2624
- "name": "page",
2625
- "type": {
2626
- "text": "Page"
2627
- }
2628
- }
2629
- ]
2630
- },
2631
- {
2632
- "kind": "function",
2633
- "name": "mockPaymentInstrumentsFailure",
2634
- "parameters": [
2635
- {
2636
- "name": "page",
2637
- "type": {
2638
- "text": "Page"
2639
- }
2640
- }
2641
- ]
2642
- },
2643
- {
2644
- "kind": "function",
2645
- "name": "mockPaymentsFailure",
2646
- "parameters": [
2647
- {
2648
- "name": "page",
2649
- "type": {
2650
- "text": "Page"
2651
- }
2652
- }
2653
- ]
2782
+ "name": "t",
2783
+ "default": "e"
2654
2784
  }
2655
2785
  ],
2656
2786
  "exports": [
2657
2787
  {
2658
2788
  "kind": "js",
2659
- "name": "settings",
2660
- "declaration": {
2661
- "name": "settings",
2662
- "module": "e2e/mocks/card-basic.ts"
2663
- }
2664
- },
2665
- {
2666
- "kind": "js",
2667
- "name": "CONFIGURATION_RESPONSE",
2789
+ "name": "templates",
2668
2790
  "declaration": {
2669
- "name": "CONFIGURATION_RESPONSE",
2670
- "module": "e2e/mocks/card-basic.ts"
2791
+ "name": "t",
2792
+ "module": "dist/chunks/pt.VBALOWHZ.js"
2671
2793
  }
2672
- },
2794
+ }
2795
+ ]
2796
+ },
2797
+ {
2798
+ "kind": "javascript-module",
2799
+ "path": "dist/chunks/ro.WN7VCF27.js",
2800
+ "declarations": [
2673
2801
  {
2674
- "kind": "js",
2675
- "name": "SUCCESSFUL_CARD_NUMBER",
2676
- "declaration": {
2677
- "name": "SUCCESSFUL_CARD_NUMBER",
2678
- "module": "e2e/mocks/card-basic.ts"
2679
- }
2680
- },
2802
+ "kind": "variable",
2803
+ "name": "i",
2804
+ "default": "e"
2805
+ }
2806
+ ],
2807
+ "exports": [
2681
2808
  {
2682
2809
  "kind": "js",
2683
- "name": "FAILURE_CARD_NUMBER",
2810
+ "name": "templates",
2684
2811
  "declaration": {
2685
- "name": "FAILURE_CARD_NUMBER",
2686
- "module": "e2e/mocks/card-basic.ts"
2812
+ "name": "i",
2813
+ "module": "dist/chunks/ro.WN7VCF27.js"
2687
2814
  }
2688
- },
2815
+ }
2816
+ ]
2817
+ },
2818
+ {
2819
+ "kind": "javascript-module",
2820
+ "path": "dist/chunks/ru.ICXGVGRR.js",
2821
+ "declarations": [
2689
2822
  {
2690
- "kind": "js",
2691
- "name": "mockPaymentInstruments",
2692
- "declaration": {
2693
- "name": "mockPaymentInstruments",
2694
- "module": "e2e/mocks/card-basic.ts"
2695
- }
2696
- },
2823
+ "kind": "variable",
2824
+ "name": "o",
2825
+ "default": "e"
2826
+ }
2827
+ ],
2828
+ "exports": [
2697
2829
  {
2698
2830
  "kind": "js",
2699
- "name": "mockPayments",
2831
+ "name": "templates",
2700
2832
  "declaration": {
2701
- "name": "mockPayments",
2702
- "module": "e2e/mocks/card-basic.ts"
2833
+ "name": "o",
2834
+ "module": "dist/chunks/ru.ICXGVGRR.js"
2703
2835
  }
2704
- },
2836
+ }
2837
+ ]
2838
+ },
2839
+ {
2840
+ "kind": "javascript-module",
2841
+ "path": "dist/chunks/sk.SIP5JIOX.js",
2842
+ "declarations": [
2705
2843
  {
2706
- "kind": "js",
2707
- "name": "mockPaymentInstrumentsFailure",
2708
- "declaration": {
2709
- "name": "mockPaymentInstrumentsFailure",
2710
- "module": "e2e/mocks/card-basic.ts"
2711
- }
2712
- },
2844
+ "kind": "variable",
2845
+ "name": "r",
2846
+ "default": "e"
2847
+ }
2848
+ ],
2849
+ "exports": [
2713
2850
  {
2714
2851
  "kind": "js",
2715
- "name": "mockPaymentsFailure",
2852
+ "name": "templates",
2716
2853
  "declaration": {
2717
- "name": "mockPaymentsFailure",
2718
- "module": "e2e/mocks/card-basic.ts"
2854
+ "name": "r",
2855
+ "module": "dist/chunks/sk.SIP5JIOX.js"
2719
2856
  }
2720
2857
  }
2721
2858
  ]
2722
2859
  },
2723
2860
  {
2724
2861
  "kind": "javascript-module",
2725
- "path": "e2e/mocks/klarna.ts",
2862
+ "path": "dist/chunks/sl.R77UEKCA.js",
2726
2863
  "declarations": [
2727
2864
  {
2728
2865
  "kind": "variable",
2729
- "name": "settings",
2730
- "type": {
2731
- "text": "string"
2732
- },
2733
- "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI0NTg1OCIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJERSIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50Ijo2MDAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6e30sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiZW52IjoiQ1VTVE9NX1NBTkRCT1giLCJhcGlWZXJzaW9uIjoiMi4zIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7fX0='"
2734
- },
2735
- {
2736
- "kind": "variable",
2737
- "name": "CONFIGURATION_RESPONSE",
2738
- "type": {
2739
- "text": "object"
2740
- },
2741
- "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: {}, }"
2866
+ "name": "r",
2867
+ "default": "e"
2742
2868
  }
2743
2869
  ],
2744
2870
  "exports": [
2745
2871
  {
2746
2872
  "kind": "js",
2747
- "name": "settings",
2873
+ "name": "templates",
2748
2874
  "declaration": {
2749
- "name": "settings",
2750
- "module": "e2e/mocks/klarna.ts"
2875
+ "name": "r",
2876
+ "module": "dist/chunks/sl.R77UEKCA.js"
2751
2877
  }
2752
- },
2878
+ }
2879
+ ]
2880
+ },
2881
+ {
2882
+ "kind": "javascript-module",
2883
+ "path": "dist/chunks/sr-RS.6M2YSTDX.js",
2884
+ "declarations": [
2885
+ {
2886
+ "kind": "variable",
2887
+ "name": "o",
2888
+ "default": "e"
2889
+ }
2890
+ ],
2891
+ "exports": [
2753
2892
  {
2754
2893
  "kind": "js",
2755
- "name": "CONFIGURATION_RESPONSE",
2894
+ "name": "templates",
2756
2895
  "declaration": {
2757
- "name": "CONFIGURATION_RESPONSE",
2758
- "module": "e2e/mocks/klarna.ts"
2896
+ "name": "o",
2897
+ "module": "dist/chunks/sr-RS.6M2YSTDX.js"
2759
2898
  }
2760
2899
  }
2761
2900
  ]
2762
2901
  },
2763
2902
  {
2764
2903
  "kind": "javascript-module",
2765
- "path": "e2e/mocks/shared.ts",
2904
+ "path": "dist/chunks/sv.33ZY4CDS.js",
2766
2905
  "declarations": [
2767
2906
  {
2768
- "kind": "function",
2769
- "name": "mockConfigurationCallSBX",
2770
- "parameters": [
2771
- {
2772
- "name": "page",
2773
- "type": {
2774
- "text": "Page"
2775
- }
2776
- },
2777
- {
2778
- "name": "config",
2779
- "type": {
2780
- "text": "unknown"
2781
- }
2782
- }
2783
- ]
2784
- },
2785
- {
2786
- "kind": "function",
2787
- "name": "mockConfigurationCallSTG",
2788
- "parameters": [
2789
- {
2790
- "name": "page",
2791
- "type": {
2792
- "text": "Page"
2793
- }
2794
- },
2795
- {
2796
- "name": "config",
2797
- "type": {
2798
- "text": "unknown"
2799
- }
2800
- }
2801
- ]
2907
+ "kind": "variable",
2908
+ "name": "n",
2909
+ "default": "e"
2802
2910
  }
2803
2911
  ],
2804
2912
  "exports": [
2805
2913
  {
2806
2914
  "kind": "js",
2807
- "name": "mockConfigurationCallSBX",
2915
+ "name": "templates",
2808
2916
  "declaration": {
2809
- "name": "mockConfigurationCallSBX",
2810
- "module": "e2e/mocks/shared.ts"
2917
+ "name": "n",
2918
+ "module": "dist/chunks/sv.33ZY4CDS.js"
2811
2919
  }
2812
- },
2920
+ }
2921
+ ]
2922
+ },
2923
+ {
2924
+ "kind": "javascript-module",
2925
+ "path": "dist/chunks/th.M27YUIZC.js",
2926
+ "declarations": [
2927
+ {
2928
+ "kind": "variable",
2929
+ "name": "o",
2930
+ "default": "e"
2931
+ }
2932
+ ],
2933
+ "exports": [
2813
2934
  {
2814
2935
  "kind": "js",
2815
- "name": "mockConfigurationCallSTG",
2936
+ "name": "templates",
2816
2937
  "declaration": {
2817
- "name": "mockConfigurationCallSTG",
2818
- "module": "e2e/mocks/shared.ts"
2938
+ "name": "o",
2939
+ "module": "dist/chunks/th.M27YUIZC.js"
2819
2940
  }
2820
2941
  }
2821
2942
  ]
2822
2943
  },
2823
2944
  {
2824
2945
  "kind": "javascript-module",
2825
- "path": "e2e/mocks/vaulted-paypal.ts",
2946
+ "path": "dist/chunks/tr.Q2SIY6NA.js",
2826
2947
  "declarations": [
2827
- {
2828
- "kind": "variable",
2829
- "name": "settings",
2830
- "type": {
2831
- "text": "string"
2832
- },
2833
- "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiIwODkzNTcwMTgyNTM2NyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwidmF1bHRPbkFncmVlbWVudCI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmMzA4ODVmMC04MjljLTRmMGEtYjIyMi1iN2Y1OWQzNzZlYWYiLCJhcGlWZXJzaW9uIjoiMi40IiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fX0='"
2834
- },
2835
- {
2836
- "kind": "variable",
2837
- "name": "CONFIGURATION_RESPONSE",
2838
- "type": {
2839
- "text": "object"
2840
- },
2841
- "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: {}, }"
2842
- },
2843
- {
2844
- "kind": "function",
2845
- "name": "mockExchangeCall",
2846
- "parameters": [
2847
- {
2848
- "name": "page",
2849
- "type": {
2850
- "text": "Page"
2851
- }
2852
- }
2853
- ]
2854
- },
2855
- {
2856
- "kind": "function",
2857
- "name": "mockPaymentsCall",
2858
- "parameters": [
2859
- {
2860
- "name": "page",
2861
- "type": {
2862
- "text": "Page"
2863
- }
2864
- }
2865
- ]
2948
+ {
2949
+ "kind": "variable",
2950
+ "name": "n",
2951
+ "default": "e"
2866
2952
  }
2867
2953
  ],
2868
2954
  "exports": [
2869
2955
  {
2870
2956
  "kind": "js",
2871
- "name": "settings",
2957
+ "name": "templates",
2872
2958
  "declaration": {
2873
- "name": "settings",
2874
- "module": "e2e/mocks/vaulted-paypal.ts"
2959
+ "name": "n",
2960
+ "module": "dist/chunks/tr.Q2SIY6NA.js"
2875
2961
  }
2876
- },
2962
+ }
2963
+ ]
2964
+ },
2965
+ {
2966
+ "kind": "javascript-module",
2967
+ "path": "dist/chunks/uk-UA.EJZOGSJR.js",
2968
+ "declarations": [
2877
2969
  {
2878
- "kind": "js",
2879
- "name": "CONFIGURATION_RESPONSE",
2880
- "declaration": {
2881
- "name": "CONFIGURATION_RESPONSE",
2882
- "module": "e2e/mocks/vaulted-paypal.ts"
2883
- }
2884
- },
2970
+ "kind": "variable",
2971
+ "name": "o",
2972
+ "default": "e"
2973
+ }
2974
+ ],
2975
+ "exports": [
2885
2976
  {
2886
2977
  "kind": "js",
2887
- "name": "mockExchangeCall",
2978
+ "name": "templates",
2888
2979
  "declaration": {
2889
- "name": "mockExchangeCall",
2890
- "module": "e2e/mocks/vaulted-paypal.ts"
2980
+ "name": "o",
2981
+ "module": "dist/chunks/uk-UA.EJZOGSJR.js"
2891
2982
  }
2892
- },
2983
+ }
2984
+ ]
2985
+ },
2986
+ {
2987
+ "kind": "javascript-module",
2988
+ "path": "dist/chunks/vi.3RROGLXM.js",
2989
+ "declarations": [
2990
+ {
2991
+ "kind": "variable",
2992
+ "name": "a",
2993
+ "default": "n"
2994
+ }
2995
+ ],
2996
+ "exports": [
2893
2997
  {
2894
2998
  "kind": "js",
2895
- "name": "mockPaymentsCall",
2999
+ "name": "templates",
2896
3000
  "declaration": {
2897
- "name": "mockPaymentsCall",
2898
- "module": "e2e/mocks/vaulted-paypal.ts"
3001
+ "name": "a",
3002
+ "module": "dist/chunks/vi.3RROGLXM.js"
2899
3003
  }
2900
3004
  }
2901
3005
  ]
2902
3006
  },
2903
3007
  {
2904
3008
  "kind": "javascript-module",
2905
- "path": "e2e/mocks/vaulting-card.ts",
3009
+ "path": "dist/chunks/zf.GGWFQ3Y7.js",
2906
3010
  "declarations": [
2907
3011
  {
2908
3012
  "kind": "variable",
2909
- "name": "settings",
2910
- "type": {
2911
- "text": "string"
2912
- },
2913
- "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJjdXN0b21lcklkIiwib3JkZXJJZCI6IjM4NjYyIiwiYW1vdW50Ijo1MDAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6e30sIm9yZGVyIjp7ImNvdW50cnlDb2RlIjoiRlIiLCJsaW5lSXRlbXMiOlt7Iml0ZW1JZCI6InByaW1lci1ob29kaWUtZ3JheSIsImRlc2NyaXB0aW9uIjoiUHJpbWVyIEhvb2RpZSIsImFtb3VudCI6NTAwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImNvdW50cnlDb2RlIjoiRlIifSwibmF0aW9uYWxEb2N1bWVudElkIjoiOTAxMTIxMTIzNDU2NyJ9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjp0cnVlLCJwYXltZW50VHlwZSI6IkZJUlNUX1BBWU1FTlQiLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlNRU5UX0NBUkQiOnsiY2FwdHVyZVZhdWx0ZWRDYXJkQ3Z2Ijp0cnVlfX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmZTRkNzFiMi1mNzJmLTQ4NGItYjlkMS1hNDBkMDM0ZGRmNmMiLCJhcGlWZXJzaW9uIjoiMi4zIiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7InN0cmlwZSI6eyJwdWJsaXNoYWJsZUtleSI6InBrX3Rlc3RfNTFPOHpmUUtVSzZiWElkQzJ4UHZTUzZVdnJpRTlrd3B2dHR3QjdIOVBBemhOQVpvR3pMZ2lET3lkNFdvb296ZVdIeG9ScktvNmIyVmpaWXhOQ01YM1c3YmswMHJNRGl2amF1In0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fX0='"
2914
- },
2915
- {
2916
- "kind": "variable",
2917
- "name": "CONFIGURATION_RESPONSE",
2918
- "type": {
2919
- "text": "object"
2920
- },
2921
- "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: '73195f20-be41-43ac-abad-d6fdf786c4cb', order: { orderId: '38662', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 5000, merchantAmount: 5000, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 5000, quantity: 1, }, ], }, customer: { customerId: 'customerId', billingAddress: { countryCode: 'FR', }, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: true, options: [ { type: 'PAYMENT_CARD', }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '6723b06a-37c5-4b93-87bf-9dadf4aa62f8', env: 'SANDBOX', paymentMethods: [ { id: '0b4775b8-4c43-4261-88ec-24d4f891912a', type: 'STRIPE_ACH', options: { merchantId: '7804d409-4caa-4fa8-8adb-ab34217d6c4e', merchantAccountId: '42dd7bba-3c06-5c50-b009-d1aafdd18a51', }, processorConfigId: '7804d409-4caa-4fa8-8adb-ab34217d6c4e', implementationType: 'NATIVE_SDK', name: 'Automated Clearing House (ACH)', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/BANK_TRANSFER/bank-transfer-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/BANK_TRANSFER/bank-transfer-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay with ACH', textColor: { dark: '#FFFFFF', light: '#000000', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'f7e3b1d5-9922-4269-8d69-98a021c3c7ab', type: 'PRIMER_TEST_KLARNA', options: { merchantId: 'acct_primer-test_1', merchantAccountId: 'f49628b3-fc15-5e89-a710-1ad4a78a1b3b', }, processorConfigId: '7799d7a0-21b3-4778-bac4-de4bb302a702', 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: 'f43bbce8-2d0c-497e-b35c-7eeb647e0f9f', type: 'NOL_PAY', options: { merchantId: 'b89640a1-f1fd-47ca-857a-dac21d52f778', merchantAccountId: 'a3b4cecc-2305-54db-86f5-9670e237ed2d', appId: '1301', }, processorConfigId: 'b89640a1-f1fd-47ca-857a-dac21d52f778', implementationType: 'NATIVE_SDK', name: 'Nol Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo-light@3x.png', }, backgroundColor: { colored: '#171e90', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFFFFF', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, captureVaultedCardCvv: 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: {}, }"
2922
- },
2923
- {
2924
- "kind": "variable",
2925
- "name": "SUCCESSFUL_CARD_TO_VAULT",
2926
- "type": {
2927
- "text": "string"
2928
- },
2929
- "default": "'4000002500001001'"
2930
- },
2931
- {
2932
- "kind": "function",
2933
- "name": "mockPaymentInstruments",
2934
- "parameters": [
2935
- {
2936
- "name": "page",
2937
- "type": {
2938
- "text": "Page"
2939
- }
2940
- }
2941
- ]
2942
- },
2943
- {
2944
- "kind": "function",
2945
- "name": "mockPayments",
2946
- "parameters": [
2947
- {
2948
- "name": "page",
2949
- "type": {
2950
- "text": "Page"
2951
- }
2952
- }
2953
- ]
3013
+ "name": "a",
3014
+ "default": "t"
2954
3015
  }
2955
3016
  ],
2956
3017
  "exports": [
2957
3018
  {
2958
3019
  "kind": "js",
2959
- "name": "settings",
3020
+ "name": "templates",
2960
3021
  "declaration": {
2961
- "name": "settings",
2962
- "module": "e2e/mocks/vaulting-card.ts"
3022
+ "name": "a",
3023
+ "module": "dist/chunks/zf.GGWFQ3Y7.js"
2963
3024
  }
2964
- },
3025
+ }
3026
+ ]
3027
+ },
3028
+ {
3029
+ "kind": "javascript-module",
3030
+ "path": "dist/chunks/zh-CN.MQHNRMN4.js",
3031
+ "declarations": [
2965
3032
  {
2966
- "kind": "js",
2967
- "name": "CONFIGURATION_RESPONSE",
2968
- "declaration": {
2969
- "name": "CONFIGURATION_RESPONSE",
2970
- "module": "e2e/mocks/vaulting-card.ts"
2971
- }
2972
- },
3033
+ "kind": "variable",
3034
+ "name": "o",
3035
+ "default": "e"
3036
+ }
3037
+ ],
3038
+ "exports": [
2973
3039
  {
2974
3040
  "kind": "js",
2975
- "name": "SUCCESSFUL_CARD_TO_VAULT",
3041
+ "name": "templates",
2976
3042
  "declaration": {
2977
- "name": "SUCCESSFUL_CARD_TO_VAULT",
2978
- "module": "e2e/mocks/vaulting-card.ts"
3043
+ "name": "o",
3044
+ "module": "dist/chunks/zh-CN.MQHNRMN4.js"
2979
3045
  }
2980
- },
3046
+ }
3047
+ ]
3048
+ },
3049
+ {
3050
+ "kind": "javascript-module",
3051
+ "path": "dist/chunks/zh-HK.WNR7XUSX.js",
3052
+ "declarations": [
2981
3053
  {
2982
- "kind": "js",
2983
- "name": "mockPaymentInstruments",
2984
- "declaration": {
2985
- "name": "mockPaymentInstruments",
2986
- "module": "e2e/mocks/vaulting-card.ts"
2987
- }
2988
- },
3054
+ "kind": "variable",
3055
+ "name": "o",
3056
+ "default": "e"
3057
+ }
3058
+ ],
3059
+ "exports": [
2989
3060
  {
2990
3061
  "kind": "js",
2991
- "name": "mockPayments",
3062
+ "name": "templates",
2992
3063
  "declaration": {
2993
- "name": "mockPayments",
2994
- "module": "e2e/mocks/vaulting-card.ts"
3064
+ "name": "o",
3065
+ "module": "dist/chunks/zh-HK.WNR7XUSX.js"
2995
3066
  }
2996
3067
  }
2997
3068
  ]
2998
3069
  },
2999
3070
  {
3000
3071
  "kind": "javascript-module",
3001
- "path": "e2e/tests/card-3ds.spec.ts",
3002
- "declarations": [],
3003
- "exports": []
3004
- },
3005
- {
3006
- "kind": "javascript-module",
3007
- "path": "e2e/tests/card-basic.spec.ts",
3008
- "declarations": [],
3009
- "exports": []
3010
- },
3011
- {
3012
- "kind": "javascript-module",
3013
- "path": "e2e/tests/disabled-payments.spec.ts",
3072
+ "path": "dist/chunks/zh-TW.GNCY2PNY.js",
3014
3073
  "declarations": [
3015
3074
  {
3016
3075
  "kind": "variable",
3017
- "name": "settingsEnabled",
3018
- "type": {
3019
- "text": "string"
3020
- },
3021
- "default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsiZGlzYWJsZWRQYXltZW50cyI6ZmFsc2V9fQ=='"
3076
+ "name": "o",
3077
+ "default": "e"
3022
3078
  }
3023
3079
  ],
3024
3080
  "exports": [
3025
3081
  {
3026
3082
  "kind": "js",
3027
- "name": "settingsEnabled",
3083
+ "name": "templates",
3028
3084
  "declaration": {
3029
- "name": "settingsEnabled",
3030
- "module": "e2e/tests/disabled-payments.spec.ts"
3085
+ "name": "o",
3086
+ "module": "dist/chunks/zh-TW.GNCY2PNY.js"
3031
3087
  }
3032
3088
  }
3033
3089
  ]
3034
3090
  },
3035
- {
3036
- "kind": "javascript-module",
3037
- "path": "e2e/tests/klarna.spec.ts",
3038
- "declarations": [],
3039
- "exports": []
3040
- },
3041
- {
3042
- "kind": "javascript-module",
3043
- "path": "e2e/tests/vaulted-paypal.spec.ts",
3044
- "declarations": [],
3045
- "exports": []
3046
- },
3047
- {
3048
- "kind": "javascript-module",
3049
- "path": "e2e/tests/vaulting-card.spec.ts",
3050
- "declarations": [],
3051
- "exports": []
3052
- },
3053
3091
  {
3054
3092
  "kind": "javascript-module",
3055
3093
  "path": "src/__tests__/setup.ts",
@@ -3422,6 +3460,26 @@
3422
3460
  }
3423
3461
  ]
3424
3462
  },
3463
+ {
3464
+ "kind": "javascript-module",
3465
+ "path": "src/contexts/analytics-context.ts",
3466
+ "declarations": [
3467
+ {
3468
+ "kind": "variable",
3469
+ "name": "analyticsContext"
3470
+ }
3471
+ ],
3472
+ "exports": [
3473
+ {
3474
+ "kind": "js",
3475
+ "name": "analyticsContext",
3476
+ "declaration": {
3477
+ "name": "analyticsContext",
3478
+ "module": "src/contexts/analytics-context.ts"
3479
+ }
3480
+ }
3481
+ ]
3482
+ },
3425
3483
  {
3426
3484
  "kind": "javascript-module",
3427
3485
  "path": "src/contexts/card-networks-context.ts",
@@ -3482,6 +3540,26 @@
3482
3540
  }
3483
3541
  ]
3484
3542
  },
3543
+ {
3544
+ "kind": "javascript-module",
3545
+ "path": "src/contexts/events-context.ts",
3546
+ "declarations": [
3547
+ {
3548
+ "kind": "variable",
3549
+ "name": "eventsContext"
3550
+ }
3551
+ ],
3552
+ "exports": [
3553
+ {
3554
+ "kind": "js",
3555
+ "name": "eventsContext",
3556
+ "declaration": {
3557
+ "name": "eventsContext",
3558
+ "module": "src/contexts/events-context.ts"
3559
+ }
3560
+ }
3561
+ ]
3562
+ },
3485
3563
  {
3486
3564
  "kind": "javascript-module",
3487
3565
  "path": "src/contexts/headless-utils-context.ts",
@@ -4169,7 +4247,7 @@
4169
4247
  {
4170
4248
  "name": "result",
4171
4249
  "type": {
4172
- "text": "unknown"
4250
+ "text": "CardSubmitResult"
4173
4251
  }
4174
4252
  }
4175
4253
  ]
@@ -4186,10 +4264,29 @@
4186
4264
  {
4187
4265
  "name": "errors",
4188
4266
  "type": {
4189
- "text": "unknown"
4267
+ "text": "InputValidationError[]"
4190
4268
  }
4191
4269
  }
4192
- ]
4270
+ ]
4271
+ },
4272
+ {
4273
+ "kind": "method",
4274
+ "name": "handleExternalCardSubmit",
4275
+ "return": {
4276
+ "type": {
4277
+ "text": "void"
4278
+ }
4279
+ },
4280
+ "parameters": [
4281
+ {
4282
+ "name": "eventDetails",
4283
+ "type": {
4284
+ "text": "CardSubmitPayload"
4285
+ },
4286
+ "description": "The event details to forward, including source information"
4287
+ }
4288
+ ],
4289
+ "description": "Handle external card submit events and forward them through the event system.\nThis method provides a centralized way to process external card submission events\nthat come from custom buttons or external triggers."
4193
4290
  }
4194
4291
  ]
4195
4292
  }
@@ -4396,6 +4493,24 @@
4396
4493
  "privacy": "private",
4397
4494
  "default": "new ContextProvider(host, { context: computedStylesContext, initialValue: null, })"
4398
4495
  },
4496
+ {
4497
+ "kind": "field",
4498
+ "name": "analyticsProvider",
4499
+ "type": {
4500
+ "text": "ContextProvider<{\n __context__: AnalyticsContextType;\n }> | null"
4501
+ },
4502
+ "privacy": "private",
4503
+ "default": "new ContextProvider(host, { context: analyticsContext, initialValue: null, })"
4504
+ },
4505
+ {
4506
+ "kind": "field",
4507
+ "name": "eventsProvider",
4508
+ "type": {
4509
+ "text": "ContextProvider<{\n __context__: EventsContextType;\n }> | null"
4510
+ },
4511
+ "privacy": "private",
4512
+ "default": "new ContextProvider(host, { context: eventsContext, initialValue: null, })"
4513
+ },
4399
4514
  {
4400
4515
  "kind": "method",
4401
4516
  "name": "hostConnected"
@@ -4542,6 +4657,32 @@
4542
4657
  }
4543
4658
  ]
4544
4659
  },
4660
+ {
4661
+ "kind": "method",
4662
+ "name": "setAnalyticsUtils",
4663
+ "return": {
4664
+ "type": {
4665
+ "text": "void"
4666
+ }
4667
+ },
4668
+ "parameters": [
4669
+ {
4670
+ "name": "value",
4671
+ "type": {
4672
+ "text": "AnalyticsContextType"
4673
+ }
4674
+ }
4675
+ ]
4676
+ },
4677
+ {
4678
+ "kind": "method",
4679
+ "name": "getAnalyticsUtils",
4680
+ "return": {
4681
+ "type": {
4682
+ "text": "AnalyticsContextType | undefined"
4683
+ }
4684
+ }
4685
+ },
4545
4686
  {
4546
4687
  "kind": "method",
4547
4688
  "name": "setComputedStyles",
@@ -4575,6 +4716,25 @@
4575
4716
  }
4576
4717
  }
4577
4718
  ]
4719
+ },
4720
+ {
4721
+ "kind": "method",
4722
+ "name": "setEventsController",
4723
+ "return": {
4724
+ "type": {
4725
+ "text": "void"
4726
+ }
4727
+ },
4728
+ "parameters": [
4729
+ {
4730
+ "name": "value",
4731
+ "type": {
4732
+ "text": "EventsContextType"
4733
+ },
4734
+ "description": "The new events controller."
4735
+ }
4736
+ ],
4737
+ "description": "Updates the events context."
4578
4738
  }
4579
4739
  ]
4580
4740
  }
@@ -4972,6 +5132,73 @@
4972
5132
  }
4973
5133
  ]
4974
5134
  },
5135
+ {
5136
+ "kind": "javascript-module",
5137
+ "path": "src/services/primer-dialog-provider.ts",
5138
+ "declarations": [
5139
+ {
5140
+ "kind": "class",
5141
+ "description": "Primer-js DialogProvider implementation using existing PortalDialogComponent",
5142
+ "name": "PrimerDialogProvider",
5143
+ "members": [
5144
+ {
5145
+ "kind": "field",
5146
+ "name": "currentDialog",
5147
+ "type": {
5148
+ "text": "PortalDialogComponent | null"
5149
+ },
5150
+ "privacy": "private",
5151
+ "default": "null"
5152
+ },
5153
+ {
5154
+ "kind": "field",
5155
+ "name": "currentResolver",
5156
+ "type": {
5157
+ "text": "((result: DialogResult) => void) | null"
5158
+ },
5159
+ "privacy": "private",
5160
+ "default": "null"
5161
+ },
5162
+ {
5163
+ "kind": "method",
5164
+ "name": "show",
5165
+ "return": {
5166
+ "type": {
5167
+ "text": "Promise<DialogResult>"
5168
+ }
5169
+ },
5170
+ "parameters": [
5171
+ {
5172
+ "name": "request",
5173
+ "type": {
5174
+ "text": "DialogRequest"
5175
+ }
5176
+ }
5177
+ ]
5178
+ },
5179
+ {
5180
+ "kind": "method",
5181
+ "name": "close",
5182
+ "return": {
5183
+ "type": {
5184
+ "text": "void"
5185
+ }
5186
+ }
5187
+ }
5188
+ ]
5189
+ }
5190
+ ],
5191
+ "exports": [
5192
+ {
5193
+ "kind": "js",
5194
+ "name": "PrimerDialogProvider",
5195
+ "declaration": {
5196
+ "name": "PrimerDialogProvider",
5197
+ "module": "src/services/primer-dialog-provider.ts"
5198
+ }
5199
+ }
5200
+ ]
5201
+ },
4975
5202
  {
4976
5203
  "kind": "javascript-module",
4977
5204
  "path": "src/styles/base.styles.ts",
@@ -8889,6 +9116,16 @@
8889
9116
  "privacy": "private",
8890
9117
  "default": "null"
8891
9118
  },
9119
+ {
9120
+ "kind": "field",
9121
+ "name": "paymentMethodSelectionSent",
9122
+ "type": {
9123
+ "text": "boolean"
9124
+ },
9125
+ "privacy": "private",
9126
+ "default": "false",
9127
+ "description": "Flag to track if PAYMENT_METHOD_SELECTION event has been sent"
9128
+ },
8892
9129
  {
8893
9130
  "kind": "field",
8894
9131
  "name": "paymentManagers",
@@ -8917,6 +9154,24 @@
8917
9154
  "default": "null",
8918
9155
  "description": "Headless utils for accessing server configuration"
8919
9156
  },
9157
+ {
9158
+ "kind": "field",
9159
+ "name": "analyticsUtils",
9160
+ "type": {
9161
+ "text": "AnalyticsContextType"
9162
+ },
9163
+ "default": "null",
9164
+ "description": "Analytics utils for sending analytics events"
9165
+ },
9166
+ {
9167
+ "kind": "field",
9168
+ "name": "contextEventsController",
9169
+ "type": {
9170
+ "text": "EventsContextType"
9171
+ },
9172
+ "default": "null",
9173
+ "description": "Events controller from context for receiving forwarded events"
9174
+ },
8920
9175
  {
8921
9176
  "kind": "field",
8922
9177
  "name": "cardFormProvider",
@@ -8951,6 +9206,26 @@
8951
9206
  "default": "new PrimerEventsController(this)",
8952
9207
  "description": "Events controller for dispatching form events"
8953
9208
  },
9209
+ {
9210
+ "kind": "field",
9211
+ "name": "_contextCardSubmitListener",
9212
+ "type": {
9213
+ "text": "((event: CustomEvent) => void) | null"
9214
+ },
9215
+ "privacy": "private",
9216
+ "default": "null",
9217
+ "description": "External event listener reference for cleanup"
9218
+ },
9219
+ {
9220
+ "kind": "field",
9221
+ "name": "_isHandlingContextEvent",
9222
+ "type": {
9223
+ "text": "boolean"
9224
+ },
9225
+ "privacy": "private",
9226
+ "default": "false",
9227
+ "description": "Flag to prevent circular event loop when handling events"
9228
+ },
8954
9229
  {
8955
9230
  "kind": "field",
8956
9231
  "name": "inputControllers",
@@ -8964,9 +9239,51 @@
8964
9239
  "name": "setupCardFormTask",
8965
9240
  "privacy": "private",
8966
9241
  "readonly": true,
8967
- "default": "new Task(this, { task: ([cardManager]) => { if (!cardManager?.manager) return initialState; const { manager } = cardManager; const hostedInputs = manager.createHostedInputs(); const { cardNumberInput, expiryInput, cvvInput } = hostedInputs; this.cardFormProvider.setValue({ // Temporarily set any so we can toggle between sdk v2 and new sdk core cardholderNameInput: ( hostedInputs as { cardholderNameInput?: IHeadlessHostedInput } ).cardholderNameInput, cardNumberInput, expiryInput, cvvInput, setCardholderName: (val: string) => { manager.setCardholderName(val); if (this.shouldRequireCardholderName) { manager.validate?.().then((validationResult) => { const errors = validationResult?.validationErrors; const cardholderNameError = errors?.find( (error) => error.name === fieldToInputType.cardholderName, ); const controller = this.inputControllers.get( HostedInputType.CARD_HOLDER_NAME, ); if (controller) { controller.updateMetaFromValidation({ valid: false, error: cardholderNameError?.message || cardholderNameError?.error || null, errorCode: cardholderNameError?.message || cardholderNameError?.error || null, }); } }); } }, setCardNetwork: (val: string) => { this.selectedCardNetwork = val; }, validate: () => manager.validate(), submit: (args) => manager.submit(args), hideLabels: this.hideLabels, disabled: this.disabled, // New meta state management methods setSubmissionState: (submitted: boolean) => { this.inputControllers.forEach((controller) => { controller.setSubmitted(submitted); }); }, propagateValidationErrors: (errors: InputValidationError[]) => { if (!errors) return; errors.forEach((error) => { const fieldName = error.field || error.name; const errorMessage = error.message || error.error; const inputType = fieldToInputType[fieldName]; if (inputType) { const controller = this.inputControllers.get(inputType); if (controller) { const updateData = { valid: false, error: errorMessage, errorCode: errorMessage, // Use error message (localization key) instead of field name }; controller.updateMetaFromValidation(updateData); } } }); }, registerInputController: ( inputType: HostedInputType, controller: IHostedInputController, ) => { this.inputControllers.set(inputType, controller); }, unregisterInputController: (inputType: HostedInputType) => { this.inputControllers.delete(inputType); }, }); return true; }, args: () => [this.paymentManagers.get('PAYMENT_CARD')], })",
9242
+ "default": "new Task(this, { task: ([cardManager]) => { if (!cardManager?.manager) return initialState; const { manager } = cardManager; const hostedInputs = manager.createHostedInputs(); const { cardNumberInput, expiryInput, cvvInput } = hostedInputs; this.cardFormProvider.setValue({ // Temporarily set any so we can toggle between sdk v2 and new sdk core cardholderNameInput: ( hostedInputs as { cardholderNameInput?: IHeadlessHostedInput } ).cardholderNameInput, cardNumberInput, expiryInput, cvvInput, setCardholderName: (val: string) => { manager.setCardholderName(val); if (this.shouldRequireCardholderName) { manager.validate?.().then((validationResult) => { const errors = validationResult?.validationErrors; const cardholderNameError = errors?.find( (error) => error.name === fieldToInputType.cardholderName, ); const controller = this.inputControllers.get( HostedInputType.CARD_HOLDER_NAME, ); if (controller) { controller.updateMetaFromValidation({ valid: false, error: cardholderNameError?.message || cardholderNameError?.error || null, errorCode: cardholderNameError?.message || cardholderNameError?.error || null, }); } }); } }, setCardNetwork: (val: string) => { this.selectedCardNetwork = val; }, validate: () => manager.validate(), submit: (args) => manager.submit(args), hideLabels: this.hideLabels, disabled: this.disabled, // New meta state management methods setSubmissionState: (submitted: boolean) => { this.inputControllers.forEach((controller) => { controller.setSubmitted(submitted); }); }, propagateValidationErrors: (errors: InputValidationError[]) => { if (!errors) return; errors.forEach((error) => { const fieldName = error.field || error.name; const errorMessage = error.message || error.error; const inputType = fieldToInputType[fieldName]; if (inputType) { const controller = this.inputControllers.get(inputType); if (controller) { const updateData = { valid: false, error: errorMessage, errorCode: errorMessage, // Use error message (localization key) instead of field name }; controller.updateMetaFromValidation(updateData); } } }); }, registerInputController: ( inputType: HostedInputType, controller: IHostedInputController, ) => { this.inputControllers.set(inputType, controller); }, unregisterInputController: (inputType: HostedInputType) => { this.inputControllers.delete(inputType); }, onUserInteraction: () => { this.sendPaymentMethodSelectionEvent(); this.checkAndSendPaymentDetailsEnteredEvent(); }, }); return true; }, args: () => [this.paymentManagers.get('PAYMENT_CARD')], })",
8968
9243
  "description": "Task to set up the card form with hosted inputs"
8969
9244
  },
9245
+ {
9246
+ "kind": "method",
9247
+ "name": "sendPaymentMethodSelectionEvent",
9248
+ "privacy": "private",
9249
+ "return": {
9250
+ "type": {
9251
+ "text": "void"
9252
+ }
9253
+ },
9254
+ "description": "Sends PAYMENT_METHOD_SELECTION analytics event when user first interacts with card form"
9255
+ },
9256
+ {
9257
+ "kind": "method",
9258
+ "name": "checkAndSendPaymentDetailsEnteredEvent",
9259
+ "privacy": "private",
9260
+ "return": {
9261
+ "type": {
9262
+ "text": "void"
9263
+ }
9264
+ },
9265
+ "description": "Checks if all required fields are filled and sends PAYMENT_DETAILS_ENTERED event"
9266
+ },
9267
+ {
9268
+ "kind": "field",
9269
+ "name": "paymentDetailsEnteredSent",
9270
+ "type": {
9271
+ "text": "boolean"
9272
+ },
9273
+ "privacy": "private",
9274
+ "default": "false"
9275
+ },
9276
+ {
9277
+ "kind": "method",
9278
+ "name": "sendPaymentDetailsEnteredEvent",
9279
+ "privacy": "private",
9280
+ "return": {
9281
+ "type": {
9282
+ "text": "void"
9283
+ }
9284
+ },
9285
+ "description": "Sends PAYMENT_DETAILS_ENTERED analytics event when all payment details are complete and valid"
9286
+ },
8970
9287
  {
8971
9288
  "kind": "field",
8972
9289
  "name": "handleSlotButtonClick",
@@ -8979,6 +9296,34 @@
8979
9296
  "privacy": "private",
8980
9297
  "description": "Handles direct submit events from child components\nThis is a backup method to catch all possible submission events"
8981
9298
  },
9299
+ {
9300
+ "kind": "method",
9301
+ "name": "setupContextEventListeners",
9302
+ "privacy": "private",
9303
+ "return": {
9304
+ "type": {
9305
+ "text": "void"
9306
+ }
9307
+ },
9308
+ "description": "Sets up event listeners for context-forwarded events"
9309
+ },
9310
+ {
9311
+ "kind": "method",
9312
+ "name": "cleanupContextEventListeners",
9313
+ "privacy": "private",
9314
+ "return": {
9315
+ "type": {
9316
+ "text": "void"
9317
+ }
9318
+ },
9319
+ "description": "Cleans up context event listeners"
9320
+ },
9321
+ {
9322
+ "kind": "field",
9323
+ "name": "handleContextCardSubmit",
9324
+ "privacy": "private",
9325
+ "description": "Handles primer:card-submit events received from the events context\nThis allows the card form to respond to external submit triggers"
9326
+ },
8982
9327
  {
8983
9328
  "kind": "method",
8984
9329
  "name": "isSubmitButton",
@@ -9906,6 +10251,32 @@
9906
10251
  },
9907
10252
  "default": "null",
9908
10253
  "attribute": "paymentMethods"
10254
+ },
10255
+ {
10256
+ "kind": "field",
10257
+ "name": "analyticsUtils",
10258
+ "type": {
10259
+ "text": "AnalyticsContextType"
10260
+ },
10261
+ "default": "null",
10262
+ "description": "Analytics utils for sending analytics events"
10263
+ },
10264
+ {
10265
+ "kind": "method",
10266
+ "name": "sendPaymentMethodSelectionEvent",
10267
+ "privacy": "private",
10268
+ "return": {
10269
+ "type": {
10270
+ "text": "void"
10271
+ }
10272
+ },
10273
+ "description": "Sends PAYMENT_METHOD_SELECTION analytics event when user clicks on payment method"
10274
+ },
10275
+ {
10276
+ "kind": "field",
10277
+ "name": "handleClick",
10278
+ "privacy": "private",
10279
+ "description": "Handle interaction events on payment method component"
9909
10280
  }
9910
10281
  ],
9911
10282
  "attributes": [
@@ -12181,6 +12552,17 @@
12181
12552
  },
12182
12553
  "description": "Focuses the input, whether it's a hosted input or standard input"
12183
12554
  },
12555
+ {
12556
+ "kind": "method",
12557
+ "name": "notifyUserInteraction",
12558
+ "privacy": "private",
12559
+ "return": {
12560
+ "type": {
12561
+ "text": "void"
12562
+ }
12563
+ },
12564
+ "description": "Notifies the card form context about user interaction for analytics tracking"
12565
+ },
12184
12566
  {
12185
12567
  "kind": "method",
12186
12568
  "name": "getHostedInput",
@@ -12903,7 +13285,7 @@
12903
13285
  "declarations": [
12904
13286
  {
12905
13287
  "kind": "class",
12906
- "description": "A form submit button component for card forms.\nProvides a consistent submit button with translation support.",
13288
+ "description": "A form submit button component for card forms.\n\nProvides a consistent submit button with translation support and configurable visibility.\nWhen `submitButton.useBuiltInButton` is set to `false`, the component will not render\nany DOM elements, allowing external buttons to handle form submission by dispatching\nthe `primer:card-submit` event.",
12907
13289
  "name": "CardFormSubmitComponent",
12908
13290
  "members": [
12909
13291
  {
@@ -12967,6 +13349,22 @@
12967
13349
  "default": "null",
12968
13350
  "attribute": "cardFormContext"
12969
13351
  },
13352
+ {
13353
+ "kind": "field",
13354
+ "name": "analyticsUtils",
13355
+ "type": {
13356
+ "text": "AnalyticsContextType"
13357
+ },
13358
+ "default": "null"
13359
+ },
13360
+ {
13361
+ "kind": "field",
13362
+ "name": "contextEventsController",
13363
+ "type": {
13364
+ "text": "EventsContextType"
13365
+ },
13366
+ "default": "null"
13367
+ },
12970
13368
  {
12971
13369
  "kind": "field",
12972
13370
  "name": "variant",
@@ -12987,6 +13385,28 @@
12987
13385
  "description": "Whether the button is disabled.",
12988
13386
  "attribute": "disabled"
12989
13387
  },
13388
+ {
13389
+ "kind": "field",
13390
+ "name": "submitButtonConfig",
13391
+ "privacy": "private",
13392
+ "description": "Gets the submit button configuration from client options.\nReturns the configuration object or null if not set.",
13393
+ "readonly": true
13394
+ },
13395
+ {
13396
+ "kind": "field",
13397
+ "name": "shouldShowBuiltInButton",
13398
+ "type": {
13399
+ "text": "boolean"
13400
+ },
13401
+ "privacy": "private",
13402
+ "description": "Determines if the built-in submit button should be rendered.\nWhen false, no DOM elements are created allowing external button integration.",
13403
+ "return": {
13404
+ "type": {
13405
+ "text": ""
13406
+ }
13407
+ },
13408
+ "readonly": true
13409
+ },
12990
13410
  {
12991
13411
  "kind": "field",
12992
13412
  "name": "handleClick",