@primer-io/primer-js 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/chunks/ar.E4O36EC6.js +1 -0
- package/dist/chunks/bg.PK6JKEHS.js +1 -0
- package/dist/chunks/ca.OTUBI37X.js +1 -0
- package/dist/chunks/chunk.MBXVVM2T.js +2 -0
- package/dist/chunks/cs.THPV6MYZ.js +1 -0
- package/dist/chunks/da.T6YM33IA.js +1 -0
- package/dist/chunks/de.5OGX2NED.js +1 -0
- package/dist/chunks/el.YRAV7ELP.js +1 -0
- package/dist/chunks/en-GB.6IEVRFTK.js +1 -0
- package/dist/chunks/en.OBBZZ45H.js +1 -0
- package/dist/chunks/es-AR.KUNVD6SX.js +1 -0
- package/dist/chunks/es-MX.YIGVIDM6.js +1 -0
- package/dist/chunks/es.CJZT56YE.js +1 -0
- package/dist/chunks/et-EE.HWMKJWNX.js +1 -0
- package/dist/chunks/fi-FI.7NJH7P3A.js +1 -0
- package/dist/chunks/fr.KRF4Y57O.js +1 -0
- package/dist/chunks/he.XI3WARES.js +1 -0
- package/dist/chunks/hr.XYKILVHU.js +1 -0
- package/dist/chunks/hu.UDGJJAFE.js +1 -0
- package/dist/chunks/id.7ZN2WKC2.js +1 -0
- package/dist/chunks/it.VOYA3KT5.js +1 -0
- package/dist/chunks/ja.POQ2E2L3.js +1 -0
- package/dist/chunks/ko.MSGGDR35.js +1 -0
- package/dist/chunks/lt-LT.QPDWC7EL.js +1 -0
- package/dist/chunks/lt.PGXRTZVX.js +1 -0
- package/dist/chunks/lv-LV.MPIETXH7.js +1 -0
- package/dist/chunks/lv.K76XV5XK.js +1 -0
- package/dist/chunks/ms.TLDQ5MRG.js +1 -0
- package/dist/chunks/nb.5C4GCSHD.js +1 -0
- package/dist/chunks/nl.MPB5NUZQ.js +1 -0
- package/dist/chunks/nl_NL.MEGWQA4L.js +1 -0
- package/dist/chunks/pl.G5NUFTFJ.js +3 -0
- package/dist/chunks/pt-BR.YUAN3GE5.js +1 -0
- package/dist/chunks/pt.U7KK23LM.js +1 -0
- package/dist/chunks/ro.V5C7DKLQ.js +1 -0
- package/dist/chunks/ru.L7XTNV7J.js +1 -0
- package/dist/chunks/sk.B5NKJNWF.js +1 -0
- package/dist/chunks/sl.PO5G6BSL.js +1 -0
- package/dist/chunks/sr-RS.5T2KJ2PK.js +1 -0
- package/dist/chunks/sv.XXKSWUSH.js +1 -0
- package/dist/chunks/th.7HQVVBDC.js +1 -0
- package/dist/chunks/tr.XK3UIRBK.js +1 -0
- package/dist/chunks/uk-UA.PJMQMEKE.js +1 -0
- package/dist/chunks/vi.KQNTEEX5.js +1 -0
- package/dist/chunks/zh-CN.5YAD67HK.js +1 -0
- package/dist/chunks/zh-HK.I5LZOTED.js +1 -0
- package/dist/chunks/zh-TW.UWEXAFT4.js +1 -0
- package/dist/custom-elements.json +382 -382
- package/dist/primer-loader.d.ts +17 -6
- package/dist/primer-loader.js +14 -14
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
- package/dist/chunks/ar.BIHRX5RF.js +0 -1
- package/dist/chunks/bg.FGU6YCAF.js +0 -1
- package/dist/chunks/ca.IKG75KNP.js +0 -1
- package/dist/chunks/chunk.B7X364D6.js +0 -2
- package/dist/chunks/cs.MILBDWY6.js +0 -1
- package/dist/chunks/da.JTASZFYV.js +0 -1
- package/dist/chunks/de.DXQD6OEP.js +0 -1
- package/dist/chunks/el.EFHFPB3R.js +0 -1
- package/dist/chunks/en-GB.SXPN4WN6.js +0 -1
- package/dist/chunks/en.NNAZENAS.js +0 -1
- package/dist/chunks/es-AR.PGD5Q57R.js +0 -1
- package/dist/chunks/es-MX.PTII2RTJ.js +0 -1
- package/dist/chunks/es.AKW6WGRC.js +0 -1
- package/dist/chunks/et-EE.LHI2XOXI.js +0 -1
- package/dist/chunks/fi-FI.IPGRD7WF.js +0 -1
- package/dist/chunks/fr.PDUWBPKF.js +0 -1
- package/dist/chunks/he.5SDFV353.js +0 -1
- package/dist/chunks/hr.LXFZTJMG.js +0 -1
- package/dist/chunks/hu.VXISLOF3.js +0 -1
- package/dist/chunks/id.UCNPGRJA.js +0 -1
- package/dist/chunks/it.F7GBFWC2.js +0 -1
- package/dist/chunks/ja.BHTV4F5V.js +0 -1
- package/dist/chunks/ko.L4TUG67I.js +0 -1
- package/dist/chunks/lt-LT.ULLOOI4H.js +0 -1
- package/dist/chunks/lt.WAZLYIAI.js +0 -1
- package/dist/chunks/lv-LV.TEXPN3ZR.js +0 -1
- package/dist/chunks/lv.TQJGMNOY.js +0 -1
- package/dist/chunks/ms.Q2C5ZFHD.js +0 -1
- package/dist/chunks/nb.KCZ6D34T.js +0 -1
- package/dist/chunks/nl.2CTHY5J7.js +0 -1
- package/dist/chunks/nl_NL.SYW24NKO.js +0 -1
- package/dist/chunks/pl.AI5CECVT.js +0 -3
- package/dist/chunks/pt-BR.OWKVFNRL.js +0 -1
- package/dist/chunks/pt.LVBHJFXR.js +0 -1
- package/dist/chunks/ro.SJYNCSI5.js +0 -1
- package/dist/chunks/ru.3HE2B7ZT.js +0 -1
- package/dist/chunks/sk.YAEVPIZD.js +0 -1
- package/dist/chunks/sl.BA3GBVRO.js +0 -1
- package/dist/chunks/sr-RS.3C6VVYBB.js +0 -1
- package/dist/chunks/sv.2VDFAELX.js +0 -1
- package/dist/chunks/th.J7ZUQIZS.js +0 -1
- package/dist/chunks/tr.E2CHOIPA.js +0 -1
- package/dist/chunks/uk-UA.QYJJIGTW.js +0 -1
- package/dist/chunks/vi.YGBNA3NJ.js +0 -1
- package/dist/chunks/zh-CN.SRN7TXMD.js +0 -1
- package/dist/chunks/zh-HK.3JAKYZ5N.js +0 -1
- package/dist/chunks/zh-TW.WTNQLAHV.js +0 -1
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "e2e/utils.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "variable",
|
|
11
|
+
"name": "test",
|
|
12
|
+
"default": "chromaticTest"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"exports": [
|
|
16
|
+
{
|
|
17
|
+
"kind": "js",
|
|
18
|
+
"name": "expect",
|
|
19
|
+
"declaration": {
|
|
20
|
+
"name": "expect",
|
|
21
|
+
"package": "@chromatic-com/playwright"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"kind": "js",
|
|
26
|
+
"name": "test",
|
|
27
|
+
"declaration": {
|
|
28
|
+
"name": "test",
|
|
29
|
+
"module": "e2e/utils.ts"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
5
34
|
{
|
|
6
35
|
"kind": "javascript-module",
|
|
7
36
|
"path": "dist/primer-loader.js",
|
|
@@ -75,33 +104,33 @@
|
|
|
75
104
|
{
|
|
76
105
|
"kind": "variable",
|
|
77
106
|
"name": "Me",
|
|
78
|
-
"default": "class extends b{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this.jsInitialized=!1;this.hasAssignedContent=!1;this._eventListenerController=null;this._classObserver=null;this.locale=
|
|
107
|
+
"default": "class extends b{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this.jsInitialized=!1;this.hasAssignedContent=!1;this._eventListenerController=null;this._classObserver=null;this.locale=ir(xa());this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.sdkContextController=new va(this),this.primerEventsController=new tr(this),this.styleProcessingController=new Sa(this),this.vaultManagerController=new wr(this),this.headlessSdkController=new Za(this)}get primerJS(){return this.headlessSdkController?.primerJSInstance??void 0}connectedCallback(){super.connectedCallback(),this.sdkContextController.setEventsController(this.primerEventsController),this._eventListenerController=new AbortController,document.addEventListener(\"primer:card-submit\",this.handleExternalCardSubmit.bind(this),{signal:this._eventListenerController.signal}),document.addEventListener(\"primer:vault-submit\",this.handleExternalVaultSubmit.bind(this),{signal:this._eventListenerController.signal}),document.addEventListener(\"primer:show-other-payments-toggle\",this.handleExternalShowOtherPaymentsToggle.bind(this),{signal:this._eventListenerController.signal}),this._classObserver=new MutationObserver(()=>{this.requestUpdate()}),this._classObserver.observe(this,{attributes:!0,attributeFilter:[\"class\"]})}attributeChangedCallback(e,a,i){e===\"custom-styles\"?this.styleProcessingController.processCustomStyles(i):super.attributeChangedCallback(e,a,i)}disconnectedCallback(){this._eventListenerController&&(this._eventListenerController.abort(),this._eventListenerController=null),this._classObserver&&(this._classObserver.disconnect(),this._classObserver=null),super.disconnectedCallback()}willUpdate(e){e.has(\"options\")&&(this.options?.locale&&(Rn(this.options?.locale)?this.locale=ir(this.options?.locale):x.warn(\"\\u{1F30E}\\u2757 Unsupported locale provided:\",this.options?.locale,\"- Falling back to system locale\")),wn(this.locale))}updated(){let e=getComputedStyle(this);this.sdkContextController.setComputedStyles(e),this.jsInitialized=!this.sdkContextController.contextProvider.value.sdkState.isLoading}handleExternalCardSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:card-submit\",e.detail)}handleExternalVaultSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:vault-submit\",e.detail)}handleExternalShowOtherPaymentsToggle(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:show-other-payments-toggle\",e.detail)}render(){return u`<slot name=\"main\" @slotchange=${this.onSlotChange}></slot>${L(!this.hasAssignedContent,()=>u`<primer-main></primer-main>`)} `}addEventListener(e,a,i){super.addEventListener(e,a,i)}removeEventListener(e,a,i){super.removeEventListener(e,a,i)}}"
|
|
79
108
|
},
|
|
80
109
|
{
|
|
81
110
|
"kind": "function",
|
|
82
|
-
"name": "
|
|
111
|
+
"name": "bd"
|
|
83
112
|
},
|
|
84
113
|
{
|
|
85
114
|
"kind": "function",
|
|
86
|
-
"name": "
|
|
115
|
+
"name": "Cd"
|
|
87
116
|
},
|
|
88
117
|
{
|
|
89
118
|
"kind": "function",
|
|
90
|
-
"name": "
|
|
119
|
+
"name": "ly"
|
|
91
120
|
},
|
|
92
121
|
{
|
|
93
122
|
"kind": "function",
|
|
94
|
-
"name": "
|
|
123
|
+
"name": "dy"
|
|
95
124
|
},
|
|
96
125
|
{
|
|
97
126
|
"kind": "variable",
|
|
98
127
|
"name": "Ke",
|
|
99
|
-
"default": "class extends b{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in
|
|
128
|
+
"default": "class extends b{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in Xn)return Xn[this.size];let e=parseInt(this.size,10);return isNaN(e)?Xn.medium:e}render(){let e=this.getSize(),a=20,i=`0 0 ${a} ${a}`;return this.style.setProperty(\"--spinner-color\",this.color),this.style.setProperty(\"--spinner-size\",`${e}px`),u`<div class=\"spinner-container ${this.compact?\"compact\":\"\"}\"><svg class=\"spinner\" width=\"${e}\" height=\"${e}\" viewBox=\"${i}\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" role=\"status\" aria-label=\"Loading\" ><path d=\"M4.27827 10.002C4.27827 6.84166 6.84019 4.27973 10.0005 4.27973C10.7676 4.27973 11.3894 3.6579 11.3894 2.89084C11.3894 2.12378 10.7676 1.50195 10.0005 1.50195C5.30607 1.50195 1.50049 5.30753 1.50049 10.002C1.50049 14.6964 5.30607 18.502 10.0005 18.502C14.6949 18.502 18.5005 14.6964 18.5005 10.002C18.5005 9.23489 17.8787 8.61306 17.1116 8.61306C16.3445 8.61306 15.7227 9.23489 15.7227 10.002C15.7227 13.1622 13.1608 15.7242 10.0005 15.7242C6.84019 15.7242 4.27827 13.1622 4.27827 10.002Z\" fill=\"currentColor\" class=\"path\" /></svg></div>`}}"
|
|
100
129
|
},
|
|
101
130
|
{
|
|
102
131
|
"kind": "variable",
|
|
103
132
|
"name": "Fe",
|
|
104
|
-
"default": "class extends b{constructor(){super(...arguments);this.focusWithin=!1;this.hasError=!1;this.handleWrapperClick=e=>{if(e.target!==e.currentTarget)return;let
|
|
133
|
+
"default": "class extends b{constructor(){super(...arguments);this.focusWithin=!1;this.hasError=!1;this.handleWrapperClick=e=>{if(e.target!==e.currentTarget)return;let a=this.findSlottedPrimerInput();a?a.focus():this.dispatchEvent(new CustomEvent(\"wrapper-click\",{bubbles:!0,composed:!0}))}}findSlottedPrimerInput(){if(!this.inputSlot)return null;let e=this.inputSlot.assignedElements({flatten:!0}),a=e.find(i=>i.tagName.toLowerCase()===\"primer-input\");if(a)return a;for(let i of e){let n=i.querySelector(\"primer-input\");if(n)return n}return null}render(){let e={\"input-slot\":!0,\"focus-within\":this.focusWithin};return u`<div class=\"input-wrapper\"><slot name=\"label\"></slot><div class=\"${J(e)}\" @click=\"${this.handleWrapperClick}\"><slot name=\"input\"></slot></div><slot name=\"error\"></slot></div>`}}"
|
|
105
134
|
},
|
|
106
135
|
{
|
|
107
136
|
"kind": "variable",
|
|
@@ -121,32 +150,32 @@
|
|
|
121
150
|
{
|
|
122
151
|
"kind": "variable",
|
|
123
152
|
"name": "Ue",
|
|
124
|
-
"default": "class extends b{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?
|
|
153
|
+
"default": "class extends b{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?Wa[this.name]:null;return u`<div style=\"--internal-icon-color: ${this.color}\">${e||u`<slot></slot>`}</div>`}}"
|
|
125
154
|
},
|
|
126
155
|
{
|
|
127
156
|
"kind": "variable",
|
|
128
|
-
"name": "
|
|
157
|
+
"name": "at",
|
|
129
158
|
"default": "class extends b{constructor(){super(...arguments);this.type=\"complete\"}render(){return this.type===\"complete\"?u`<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>`:u`<primer-icon size=\"lg\" name=\"failure-icon\" color=\"var(--primer-color-icon-negative)\" ></primer-icon><p>Payment failed</p>${this.description?u`<p class=\"secondary\">${this.description}</p>`:u`<p class=\"secondary\">Something went wrong.</p>`} `}}"
|
|
130
159
|
},
|
|
131
160
|
{
|
|
132
161
|
"kind": "variable",
|
|
133
162
|
"name": "$",
|
|
134
|
-
"default": "class extends b{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
|
|
163
|
+
"default": "class extends b{constructor(){super(...arguments);this.value=\"\";this.placeholder=\"\";this.disabled=!1;this.name=\"\";this.type=\"text\";this.required=!1;this.readonly=!1;this.pattern=\"\";this.min=\"\";this.max=\"\";this.step=\"\";this.autocomplete=\"\";this._id=\"\";this.hasFocus=!1;this.hasError=!1;this.handleInput=e=>{e.stopPropagation();let a=e.target;this.value=a.value;let i=new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0});this.dispatchEvent(i)};this.handleChange=e=>{e.stopPropagation();let a=e.target;this.value=a.value;let i=new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0});this.dispatchEvent(i)};this.handleFocus=()=>{this.hasFocus=!0,this.dispatchEvent(new FocusEvent(\"focus\",{bubbles:!0,composed:!0}))};this.handleBlur=()=>{this.hasFocus=!1,this.dispatchEvent(new FocusEvent(\"blur\",{bubbles:!0,composed:!0}))};this.handleInvalid=e=>{e.stopPropagation(),this.hasError=!0,this.dispatchEvent(new Event(\"invalid\",{bubbles:!0,composed:!0}))}}get id(){return this._id}set id(e){this._id=e,this.setAttribute(\"id\",e)}focus(e){this.inputElement?.focus(e)}blur(){this.inputElement?.blur()}select(){this.inputElement?.select()}setSelectionRange(e,a,i){this.inputElement?.setSelectionRange(e,a,i)}get validity(){return this.inputElement?.validity||{}}get validationMessage(){return this.inputElement?.validationMessage||\"\"}checkValidity(){return this.inputElement?.checkValidity()||!1}reportValidity(){return this.inputElement?.reportValidity()||!1}render(){let e={input:!0,\"input--focused\":this.hasFocus,\"input--disabled\":this.disabled,\"input--error\":this.hasError,\"input--readonly\":this.readonly},a=Object.entries(e).filter(([,i])=>i).map(([i])=>i).join(\" \");return u`<input part=\"input\" class=${a} .value=${this.value} .type=${this.type} ?disabled=${this.disabled} ?required=${this.required} ?readonly=${this.readonly} placeholder=${this.placeholder} pattern=${this.pattern} minlength=${this.minlength??\"\"} maxlength=${this.maxlength??\"\"} min=${this.min} max=${this.max} step=${this.step} autocomplete=${this.autocomplete} name=${this.name} id=${this.id} @input=${this.handleInput} @change=${this.handleChange} @focus=${this.handleFocus} @blur=${this.handleBlur} @invalid=${this.handleInvalid} />`}addEventListener(e,a,i){super.addEventListener(e,a,i)}removeEventListener(e,a,i){super.removeEventListener(e,a,i)}}"
|
|
135
164
|
},
|
|
136
165
|
{
|
|
137
166
|
"kind": "variable",
|
|
138
167
|
"name": "te",
|
|
139
|
-
"default": "class extends b{constructor(){super(...arguments);this.prefix=\"+351\";this.value=\"\";this.placeholder=\"\";this.inputId=\"primer-pt-phone-number-input\";this.maxLength=15;this.minLength=9;this.disabled=!1;this.hasErrors=!1;this.handleInput=e=>{e.stopPropagation();let
|
|
168
|
+
"default": "class extends b{constructor(){super(...arguments);this.prefix=\"+351\";this.value=\"\";this.placeholder=\"\";this.inputId=\"primer-pt-phone-number-input\";this.maxLength=15;this.minLength=9;this.disabled=!1;this.hasErrors=!1;this.handleInput=e=>{e.stopPropagation();let a=e.target,n=a.value.replace(/\\D/g,\"\").slice(0,this.maxLocalDigits);a.value!==n&&(a.value=n),this.dispatchValueEvent(\"input\",n)};this.handleChange=e=>{e.stopPropagation();let i=e.target.value.replace(/\\D/g,\"\");this.dispatchValueEvent(\"change\",i)};this.handleHostClick=()=>{this.inputEl?.focus()}}get localDigits(){let a=(this.value==null?\"\":String(this.value)).replace(/[^\\d+]/g,\"\");return a.startsWith(this.prefix)?a.slice(this.prefix.length):a.replace(/^\\+/,\"\")}get maxLocalDigits(){return Math.max(this.maxLength-this.prefix.length,0)}updated(e){if(!e.has(\"value\")&&!e.has(\"prefix\"))return;let a=this.inputEl;if(!a)return;let i=this.localDigits;a.value!==i&&(a.value=i)}dispatchValueEvent(e,a){let i=a.length?`${this.prefix}${a}`:\"\";this.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0}))}focus(){this.inputEl?.focus()}render(){return u`<div @click=${this.handleHostClick} style=\"display: contents;\"><span class=\"flag\" aria-hidden=\"true\">${uy}</span><span class=\"prefix\">${this.prefix}</span><input id=${this.inputId} type=\"tel\" inputmode=\"numeric\" autocomplete=\"tel-national\" ?disabled=${this.disabled} placeholder=${this.placeholder} @input=${this.handleInput} @change=${this.handleChange} /></div>`}}"
|
|
140
169
|
},
|
|
141
170
|
{
|
|
142
171
|
"kind": "variable",
|
|
143
172
|
"name": "ye",
|
|
144
|
-
"default": "class extends b{constructor(){super(...arguments);this.name=\"\";this.value=\"\";this.disabled=!1;this.hasError=!1;this.placeholder=\"\";this.options=[];this.handleChange=e=>{let
|
|
173
|
+
"default": "class extends b{constructor(){super(...arguments);this.name=\"\";this.value=\"\";this.disabled=!1;this.hasError=!1;this.placeholder=\"\";this.options=[];this.handleChange=e=>{let i=e.target.value;this.dispatchEvent(new CustomEvent(\"change\",{detail:i,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(\"input\",{detail:i,bubbles:!0,composed:!0}))};this.handleFocus=()=>{this.dispatchEvent(new CustomEvent(\"focus\",{bubbles:!0,composed:!0}))};this.handleBlur=()=>{this.dispatchEvent(new CustomEvent(\"blur\",{bubbles:!0,composed:!0}))};this.stopNativeEvent=e=>{e.stopPropagation()}}renderSelectOptions(){let e=[];for(let a of this.options)e.push(u`<option value=${a.value} ?selected=${this.value===a.value} >${a.label}</option>`);return e}render(){return u`<select id=${this.id} name=${this.name} ?disabled=${this.disabled} ?required=${!this.value} @change=${this.handleChange} @input=${this.stopNativeEvent} @focus=${this.handleFocus} @blur=${this.handleBlur} aria-invalid=${this.hasError?\"true\":\"false\"} ><option value=\"\" disabled ?selected=${!this.value}>${this.placeholder||\"Select an option\"}</option>${this.renderSelectOptions()}</select>`}}"
|
|
145
174
|
},
|
|
146
175
|
{
|
|
147
176
|
"kind": "variable",
|
|
148
177
|
"name": "le",
|
|
149
|
-
"default": "class extends b{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,
|
|
178
|
+
"default": "class extends b{constructor(){super(...arguments);this.header=\"\";this.expanded=!1;this.expandText=\"Expand\";this.collapseText=\"Collapse\";this.ariaLabel=\"\";this.buttonVariant=\"primary\";this.isExpanded=!1;this.toggleExpanded=()=>{this.isExpanded=!this.isExpanded,this.dispatchExpandedChangedEvent(this.isExpanded)}}connectedCallback(){super.connectedCallback(),this.isExpanded=this.expanded}dispatchExpandedChangedEvent(e){this.dispatchEvent(new CustomEvent(\"expanded-changed\",{bubbles:!0,composed:!0,detail:{expanded:e}}))}expand(){this.isExpanded||(this.isExpanded=!0,this.dispatchExpandedChangedEvent(!0))}collapse(){this.isExpanded&&(this.isExpanded=!1,this.dispatchExpandedChangedEvent(!1))}render(){let e=this.isExpanded?this.collapseText:this.expandText,a=this.ariaLabel||this.header||e,i=this.header||e;return u`<div class=\"collapsable\"><primer-button variant=${this.buttonVariant} buttonType=\"button\" @click=${this.toggleExpanded} aria-expanded=${this.isExpanded} aria-controls=\"collapsable-content\" aria-label=${a} ><span>${i}</span></primer-button><div class=\"collapsable-wrapper ${this.isExpanded?\"expanded\":\"\"}\" id=\"collapsable-content\" role=\"region\" aria-labelledby=\"collapsable-header\" ><div class=\"collapsable-content\"><slot></slot></div></div></div>`}}"
|
|
150
179
|
},
|
|
151
180
|
{
|
|
152
181
|
"kind": "variable",
|
|
@@ -161,32 +190,32 @@
|
|
|
161
190
|
{
|
|
162
191
|
"kind": "variable",
|
|
163
192
|
"name": "fe",
|
|
164
|
-
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.selectedCategory=null;this.isExpanded=!1;this.categoryLoading=!1;this._setupTask=new H(this,{task:async([e,
|
|
193
|
+
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.selectedCategory=null;this.isExpanded=!1;this.categoryLoading=!1;this._setupTask=new H(this,{task:async([e,a])=>{let i=e?.find(n=>n.type===k.KLARNA);return i?.type!==k.KLARNA||!a?V:{method:i}},args:()=>[this.primerContext?.paymentMethods,this.primerContext?.headlessUtils]});this.handleExpandedChange=e=>{this.isExpanded=e.detail.expanded,this.isExpanded||(this.selectedCategory=null,this.categoryLoading=!1,this.klarnaContainer&&(this.klarnaContainer.innerHTML=\"\"))};this.klarnaPaymentInProgress=!1}async startKlarnaPayment(){if(!(!this._setupTask.value||!this.selectedCategory||this.klarnaPaymentInProgress)){this.klarnaPaymentInProgress=!0;try{this._setupTask.value.method.setSelectedCategory(this.selectedCategory),await this._setupTask.value.method.start()}catch{}finally{this.klarnaPaymentInProgress=!1}}}async renderSelectedCategory(){if(!(!this._setupTask.value||!this.selectedCategory||!this.klarnaContainer))try{this.klarnaContainer.innerHTML=\"\",this.categoryLoading=!0,await this._setupTask.value.method.renderCategory({containerId:this.klarnaContainer,paymentMethodCategoryId:this.selectedCategory,onHeightChange:()=>{}})}catch{}finally{this.categoryLoading=!1}}selectCategory(e){this.disabled||(this.selectedCategory=e)}updated(e){e.has(\"selectedCategory\")&&this.selectedCategory&&this.renderSelectedCategory()}renderCategorySelection(){let e=this._setupTask?.value?.method.getCategories()||[];return e.length>0&&!this.selectedCategory&&this.selectCategory(e[0].identifier),e.length===1?y:u`<div class=\"category-selection\">${e.map(a=>u`<button class=${J({\"category-button\":!0,selected:a.identifier===this.selectedCategory,loading:this.categoryLoading&&a.identifier===this.selectedCategory})} @click=${()=>{this.selectCategory(a.identifier)}} ?disabled=${this.disabled} ><span class=${J({\"category-label\":!0,hidden:this.categoryLoading&&a.identifier===this.selectedCategory})} >${a.name}</span >${this.categoryLoading&&a.identifier===this.selectedCategory?u`<primer-spinner class=\"category-spinner\" size=\"small\" compact ></primer-spinner>`:y}</button>`)}</div>`}renderExpandedContent(){return u` ${this.renderCategorySelection()}<div class=\"klarna-category-container ${!this.categoryLoading&&this.selectedCategory?\"visible\":\"\"}\" ><div id=\"klarna-category-container\" class=\"klarna-category-content\" ></div></div><primer-payment-method-accordion-confirm-button ?disabled=${!this.selectedCategory||this.disabled} ?loading=${gt(this.primerContext?.sdkState)} @confirm=${()=>this.startKlarnaPayment()} ></primer-payment-method-accordion-confirm-button>`}render(){return this._setupTask.render({error:e=>{let a=e instanceof Error?e.message:\"Unknown error in Klarna\";return u`<div class=\"error\"> Error loading Klarna: ${a}</div>`},complete:({method:e})=>e?u`<primer-payment-method-accordion .type=${k.KLARNA} ?disabled=${this.disabled} .expanded=${this.isExpanded} ?suppress-blur-collapse=${this.klarnaPaymentInProgress} @expanded-change=${this.handleExpandedChange} >${this.renderExpandedContent()}</primer-payment-method-accordion>`:y})}}"
|
|
165
194
|
},
|
|
166
195
|
{
|
|
167
196
|
"kind": "variable",
|
|
168
197
|
"name": "xe",
|
|
169
|
-
"default": "class extends b{constructor(){super();this.type=void 0;this.disabled=!1;this.buttonContainerRef=
|
|
198
|
+
"default": "class extends b{constructor(){super();this.type=void 0;this.disabled=!1;this.buttonContainerRef=jr();this.renderButtonTask=new H(this,{args:()=>[this.paymentMethod],task:async([e])=>{if(!e)return V;await this.updateComplete;let a=this.buttonContainerRef.value;if(!a)throw new j({origin:\"integration\",message:\"Button container not found\",code:ba.CONTAINER_NOT_FOUND});let i=e.type===\"GOOGLE_PAY\"?{shadowRoot:this.shadowRoot}:e.type===\"APPLE_PAY\"?{buttonHeight:Fd(a)}:{buttonHeight:fy(Fd(this))};return await e.render(a,{style:i}),this.disabled&&await e.setDisabled(this.disabled),e}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}willUpdate(e){e.has(\"paymentMethod\")&&(this.type=this.paymentMethod?.type)}render(){return u`<div class=\"native-button-container\" ${pr(this.buttonContainerRef)} ></div>`}}"
|
|
170
199
|
},
|
|
171
200
|
{
|
|
172
201
|
"kind": "variable",
|
|
173
202
|
"name": "ve",
|
|
174
|
-
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.currentState=\"collapsed\";this.blikCode=\"\";this.errorMessage=\"\";this.pollingDuration=0;this.pollingTimer=null;this.handleExpandedChange=async e=>{if(!this.disabled){if(!e.detail.expanded){this.handleCollapse();return}if(this.currentState===\"collapsed\"){if(!this.paymentMethod){this.errorMessage=
|
|
203
|
+
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.currentState=\"collapsed\";this.blikCode=\"\";this.errorMessage=\"\";this.pollingDuration=0;this.pollingTimer=null;this.handleExpandedChange=async e=>{if(!this.disabled){if(!e.detail.expanded){this.handleCollapse();return}if(this.currentState===\"collapsed\"){if(!this.paymentMethod){this.errorMessage=A(\"Something went wrong. Please try again.\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",x.error(\"Payment method not available when expanding BLIK form\");return}this.currentState=\"expanded-input\",await this.updateComplete,this.shadowRoot?.querySelector(\"#blik-code\")?.focus()}}};this.handleCollapse=()=>{this.currentState=\"collapsed\",this.blikCode=\"\",this.errorMessage=\"\",this.stopPollingTimer()};this.handleInput=e=>{let a=e.target,i=a.value,o=i.replace(/\\D/g,\"\").slice(0,6);i!==o&&(a.value=o),this.blikCode=o,this.currentState===\"error\"&&(this.currentState=\"expanded-input\",this.errorMessage=\"\"),o.length===6&&this.submitBlikCode()};this.handleRetry=async()=>{this.currentState=\"expanded-input\",this.errorMessage=\"\",this.blikCode=\"\",await this.updateComplete,this.shadowRoot?.querySelector(\"#blik-code\")?.focus()}}get isExpanded(){return this.currentState!==\"collapsed\"}startPollingTimer(){this.pollingDuration=0,this.pollingTimer=window.setInterval(()=>{this.pollingDuration+=1},1e3)}stopPollingTimer(){this.pollingTimer!==null&&(window.clearInterval(this.pollingTimer),this.pollingTimer=null),this.pollingDuration=0}async submitBlikCode(){if(this.currentState!==\"loading\"){if(this.blikCode.length!==6){this.errorMessage=A(\"Code is too short\",{id:\"sixDigitCodeErrorTooShort\"}),this.currentState=\"error\";return}if(!this.paymentMethod){this.errorMessage=\"BLIK payment method not initialized\",this.currentState=\"error\",x.error(\"BLIK payment method not available\");return}this.currentState=\"loading\",this.errorMessage=\"\",this.startPollingTimer();try{this.paymentMethod.setBlikCode(this.blikCode),await this.paymentMethod.start(),this.stopPollingTimer(),this.currentState=\"collapsed\",this.blikCode=\"\"}catch(e){this.stopPollingTimer(),this.currentState=\"error\",this.errorMessage=e instanceof Error?e.message:A(\"Your payment could not be processed. Please try another payment method.\",{id:\"tokenizationError\"})}}}renderExpandedInput(){return u`<div class=\"blik-input-wrapper\"><label for=\"blik-code\" class=\"blik-label\">${A(\"Get the code from your banking app\",{id:\"getCodeFromBankingApp\"})}</label><input id=\"blik-code\" type=\"text\" inputmode=\"numeric\" pattern=\"[0-9]*\" maxlength=\"6\" class=\"blik-input\" .value=\"${this.blikCode}\" @input=\"${this.handleInput}\" ?disabled=\"${this.disabled}\" placeholder=\"000000\" aria-label=\"${A(\"Six digit code\",{id:\"sixDigitCodeLabel\"})}\" autocomplete=\"off\" spellcheck=\"false\" /></div>`}renderLoading(){return u`<div class=\"blik-loading\"><primer-spinner size=\"medium\"></primer-spinner>${this.pollingDuration>30?u`<div class=\"blik-timeout-warning\"> This is taking longer than expected... </div>`:y}</div>`}renderError(){return u`<div class=\"blik-error\"><div class=\"blik-error-message\" role=\"alert\">${this.errorMessage||A(\"Something went wrong. Please try again.\",{id:\"something_went_wrong_error\"})}</div><button class=\"blik-retry-button\" @click=\"${this.handleRetry}\" ?disabled=\"${this.disabled}\" >${A(\"Retry\",{id:\"retry_button\"})}</button></div>`}renderExpandedState(){switch(this.currentState){case\"expanded-input\":return this.renderExpandedInput();case\"loading\":return this.renderLoading();case\"error\":return this.renderError();default:return y}}disconnectedCallback(){super.disconnectedCallback(),this.stopPollingTimer()}render(){return u`<primer-payment-method-accordion .type=${this.paymentMethod?.type} ?disabled=${this.disabled} .expanded=${this.isExpanded} @expanded-change=${this.handleExpandedChange} >${this.isExpanded?this.renderExpandedState():y}</primer-payment-method-accordion>`}}"
|
|
175
204
|
},
|
|
176
205
|
{
|
|
177
206
|
"kind": "variable",
|
|
178
207
|
"name": "Pe",
|
|
179
|
-
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.currentState=\"collapsed\";this.phoneNumber=\"\";this.errorMessage=\"\";this.handleExpandedChange=async e=>{if(!this.disabled){if(!e.detail.expanded){this.handleCollapse();return}if(this.currentState===\"collapsed\"){if(!this.paymentMethod){this.errorMessage=
|
|
208
|
+
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.currentState=\"collapsed\";this.phoneNumber=\"\";this.errorMessage=\"\";this.handleExpandedChange=async e=>{if(!this.disabled){if(!e.detail.expanded){this.handleCollapse();return}if(this.currentState===\"collapsed\"){if(!this.paymentMethod){this.errorMessage=A(\"Something went wrong. Please try again.\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",x.error(\"Payment method not available when expanding MB WAY form\");return}this.currentState=\"expanded-input\",await this.updateComplete,this.shadowRoot?.querySelector(\"primer-pt-phone-number-input\")?.focus()}}};this.handleCollapse=()=>{this.currentState=\"collapsed\",this.phoneNumber=\"\",this.errorMessage=\"\"};this.handleInput=e=>{this.phoneNumber=e.detail,this.currentState===\"error\"&&(this.currentState=\"expanded-input\",this.errorMessage=\"\")};this.handleRetry=async()=>{this.currentState=\"expanded-input\",this.errorMessage=\"\",this.phoneNumber=\"\",await this.updateComplete,this.shadowRoot?.querySelector(\"primer-pt-phone-number-input\")?.focus()}}get isExpanded(){return this.currentState!==\"collapsed\"}get isPhoneValid(){return this.phoneNumber.length>=$d&&this.phoneNumber.length<=Yd&&/^\\+\\d+$/.test(this.phoneNumber)}async submit(){if(this.currentState===\"loading\")return;if(!this.isPhoneValid){this.errorMessage=A(\"Phone number is too short\",{id:\"telephoneNumberErrorTooShort\"}),this.currentState=\"error\";return}let e=this.paymentMethod;if(!e){this.errorMessage=\"MB WAY payment method not initialized\",this.currentState=\"error\",x.error(\"MB WAY payment method not available\");return}this.currentState=\"loading\",this.errorMessage=\"\";try{e.setPhoneNumber(this.phoneNumber),await e.start(),this.currentState=\"collapsed\",this.phoneNumber=\"\"}catch(a){this.currentState=\"error\",this.errorMessage=a instanceof Error?a.message:A(\"Your payment could not be processed. Please try another payment method.\",{id:\"tokenizationError\"})}}renderExpandedInput(){return u`<div class=\"mbway-input-wrapper\"><label class=\"mbway-label\" for=\"primer-mbway-phone\">${A(\"Phone number\",{id:\"telephoneNumberLabel\"})}</label><primer-pt-phone-number-input input-id=\"primer-mbway-phone\" .value=${this.phoneNumber} .placeholder=${A(\"123xxxxxx\",{id:\"telephoneNumberPlaceholder\"})} .maxLength=${Yd} .minLength=${$d} ?disabled=${this.disabled} ?has-errors=${!!this.errorMessage} @input=${this.handleInput} ></primer-pt-phone-number-input><button class=\"mbway-submit-button\" @click=${()=>void this.submit()} ?disabled=${this.disabled||!this.isPhoneValid} >${A(\"Pay\",{id:\"pay\"})}</button></div>`}renderLoading(){let e=A(\"Complete your payment in {appName}\",{id:\"completeYourPaymentInTheApp\"}).replace(\"{appName}\",\"MB WAY\");return u`<div class=\"mbway-loading\"><primer-spinner size=\"medium\"></primer-spinner><div class=\"mbway-loading-message\">${e}</div></div>`}renderError(){return u`<div class=\"mbway-error\"><div class=\"mbway-error-message\" role=\"alert\">${this.errorMessage||A(\"Something went wrong. Please try again.\",{id:\"something_went_wrong_error\"})}</div><button class=\"mbway-retry-button\" @click=${this.handleRetry} ?disabled=${this.disabled} >${A(\"Retry\",{id:\"retry_button\"})}</button></div>`}renderExpandedState(){switch(this.currentState){case\"expanded-input\":return this.renderExpandedInput();case\"loading\":return this.renderLoading();case\"error\":return this.renderError();default:return y}}render(){return u`<primer-payment-method-accordion .type=${this.paymentMethod?.type} ?disabled=${this.disabled} .expanded=${this.isExpanded} @expanded-change=${this.handleExpandedChange} >${this.isExpanded?this.renderExpandedState():y}</primer-payment-method-accordion>`}}"
|
|
180
209
|
},
|
|
181
210
|
{
|
|
182
211
|
"kind": "variable",
|
|
183
212
|
"name": "Se",
|
|
184
|
-
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.isExpanded=!1;this.isLoading=!1;this.handleExpandedChange=e=>{this.isExpanded=e.detail.expanded,this.isExpanded?this.loadQRCode():(this.paymentMethod?.stop(),this.qrCodeUrl=void 0,this.isLoading=!1)}}disconnectedCallback(){super.disconnectedCallback(),this.isExpanded&&this.paymentMethod?.stop()}async loadQRCode(){!this.paymentMethod||this.isLoading||(this.isLoading=!0,this.paymentMethod.setOnQRCodeReceived(e=>{this.qrCodeUrl=e,this.isLoading=!1}),await this.paymentMethod.start())}willUpdate(e){e.has(\"primerContext\")&&this.isLoading&&this.isExpanded&&this.primerContext?.sdkState.paymentFailure&&(this.isLoading=!1,this.isExpanded=!1,this.qrCodeUrl=void 0)}renderQRCode(){return this.isLoading?u`<div class=\"qrcode-loading\"><primer-spinner size=\"medium\"></primer-spinner></div>`:u`<div class=\"qrcode-content\"><div class=\"qrcode-labels\"><h3 class=\"qrcode-title\">${
|
|
213
|
+
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.isExpanded=!1;this.isLoading=!1;this.handleExpandedChange=e=>{this.isExpanded=e.detail.expanded,this.isExpanded?this.loadQRCode():(this.paymentMethod?.stop(),this.qrCodeUrl=void 0,this.isLoading=!1)}}disconnectedCallback(){super.disconnectedCallback(),this.isExpanded&&this.paymentMethod?.stop()}async loadQRCode(){!this.paymentMethod||this.isLoading||(this.isLoading=!0,this.paymentMethod.setOnQRCodeReceived(e=>{this.qrCodeUrl=e,this.isLoading=!1}),await this.paymentMethod.start())}willUpdate(e){e.has(\"primerContext\")&&this.isLoading&&this.isExpanded&&this.primerContext?.sdkState.paymentFailure&&(this.isLoading=!1,this.isExpanded=!1,this.qrCodeUrl=void 0)}renderQRCode(){return this.isLoading?u`<div class=\"qrcode-loading\"><primer-spinner size=\"medium\"></primer-spinner></div>`:u`<div class=\"qrcode-content\"><div class=\"qrcode-labels\"><h3 class=\"qrcode-title\">${A(\"Scan to pay or take a screenshot\",{id:\"scanToPay\"})}</h3><p class=\"qrcode-description\">${A(\"Upload the screenshot in your banking app\",{id:\"uploadScreenshot\"})}</p></div><div class=\"qrcode-image\">${this.qrCodeUrl?u`<img src=${this.qrCodeUrl} alt=${A(\"QR Code\",{id:\"qrCode\"})} />`:y}</div></div>`}render(){return u`<primer-payment-method-accordion .type=${this.paymentMethod?.type} ?disabled=${this.disabled&&!this.isExpanded} ?loading=${this.isLoading} .expanded=${this.isExpanded} suppress-blur-collapse @expanded-change=${this.handleExpandedChange} >${this.isExpanded?this.renderQRCode():y}</primer-payment-method-accordion>`}}"
|
|
185
214
|
},
|
|
186
215
|
{
|
|
187
216
|
"kind": "variable",
|
|
188
217
|
"name": "He",
|
|
189
|
-
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this._setupTask=new H(this,{task:([e,
|
|
218
|
+
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this._setupTask=new H(this,{task:([e,a])=>{if(!e||!a)return V;let i=a.getPaymentMethodConfiguration(e);if(!i)return V;let n=Zd(e)?this.primerContext?.clientOptions?.giftCard:void 0,o=i.displayMetadata.button,s=this._getBackgroundColor(e,o,n?.background),l=this._getTextColor(s);return{backgroundColor:s,textColor:l,name:i.name,alt:n?.logoAlt??i.name,displayName:this._getDisplayName(e,o.text,n?.text),iconUrl:this._getIconUrl(e,o,s,n?.logoSrc),iconPosition:this._getIconPosition(e,o)}},args:()=>[this.type,this.primerContext?.headlessUtils]})}_legacyGetButtonLabel(e){if(!e)return;let a=e?ro(e):\"\";return a===\"payWith\"&&(a=\"pay_with\"),A(e,{id:a})}_getBackgroundColor(e,a,i){switch(e){case k.KLARNA:case k.ADYEN_KLARNA:return a.backgroundColor.light??a.backgroundColor.colored;default:return i??a.backgroundColor.colored??a.backgroundColor.light}}_getIconUrl(e,a,i,n){if(n)return n;switch(e){case k.KLARNA:case k.ADYEN_KLARNA:return Ay;case k.PAY_NL_PAYCONIQ:return i===a.backgroundColor.light?by:Cy;case k.ADYEN_CASHAPP:return a.iconUrl.dark??a.iconUrl.colored??a.iconUrl.light;default:return e===\"TRIPLE_A\"?Ey:a.iconUrl.colored??a.iconUrl.light}}_getIconPosition(e,a){switch(e){case k.KLARNA:case k.ADYEN_KLARNA:return\"END\";default:return a.iconPositionRelativeToText||\"START\"}}_getTextColor(e){let a=e.replace(\"#\",\"\");if(a.length<6)return;let i=parseInt(a.substring(0,2),16),n=parseInt(a.substring(2,4),16),o=parseInt(a.substring(4,6),16);return isNaN(i)||isNaN(n)||isNaN(o)?void 0:(.2126*i+.7152*n+.0722*o)/255>.6?\"#000000\":\"#FFFFFF\"}_getDisplayName(e,a,i){switch(e){case k.KLARNA:return this.primerContext?.clientOptions?.klarna?.buttonOptions?.text??i??this._legacyGetButtonLabel(a)??this._legacyGetButtonLabel(\"Pay with\");case k.ADYEN_KLARNA:return this.primerContext?.clientOptions?.adyenKlarna?.buttonOptions?.text??i??this._legacyGetButtonLabel(a)??this._legacyGetButtonLabel(\"Pay with\");default:return i??this._legacyGetButtonLabel(a)}}_handleClick(){this.disabled||this.dispatchEvent(new Event(\"payment-method-click\",{bubbles:!0,composed:!0}))}render(){return this._setupTask.render({error:()=>y,complete:e=>{this.style.setProperty(\"--payment-method-button-bg-color\",e.backgroundColor),e.textColor&&this.style.setProperty(\"--payment-method-button-text-color\",e.textColor);let a={loading:gt(this.primerContext?.sdkState),\"icon-end\":e.iconPosition===\"END\",\"image-only\":!e.displayName};return u`<primer-button @click=\"${()=>this._handleClick()}\" class=${J(a)} title=\"${A(\"Pay with\",{id:\"pay_with\"})} ${e.name}\" ?disabled=${this.disabled} ><img src=\"${e.iconUrl}\" alt=\"${e.alt}\" />${L(e.displayName,()=>u`<span class=\"button-text\">${e.displayName}</span>`)}</primer-button>`}})}}"
|
|
190
219
|
},
|
|
191
220
|
{
|
|
192
221
|
"kind": "variable",
|
|
@@ -196,77 +225,77 @@
|
|
|
196
225
|
{
|
|
197
226
|
"kind": "variable",
|
|
198
227
|
"name": "Be",
|
|
199
|
-
"default": "class extends b{constructor(){super(...arguments);this.type=void 0;this.disabled=!1;this.isActive=!1;this.handleClick=()=>{this.disabled||this.primerContext?.paymentMethods?.find(
|
|
228
|
+
"default": "class extends b{constructor(){super(...arguments);this.type=void 0;this.disabled=!1;this.isActive=!1;this.handleClick=()=>{this.disabled||this.primerContext?.paymentMethods?.find(a=>a.type===this.type)?.managerType===\"CARD\"||this.primerContext?.telemetry?.analytics.sendEvent({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:this.type})}}updated(){let e=!!this.primerContext?.sdkState?.isProcessing;this.toggleAttribute(\"processing-inactive\",e&&!this.isActive)}render(){if(!this.type)return y;let e=this.primerContext?.paymentMethods.find(i=>i.type===this.type);if(!e)return y;let a;switch(e?.managerType){case\"CARD\":a=u`<primer-card-form ?disabled=${this.disabled} ></primer-card-form>`;break;case\"NATIVE\":a=u`<primer-native-payment .paymentMethod=${e} ?disabled=${this.disabled} ></primer-native-payment>`;break;case\"QRCODE\":a=u`<primer-qrcode .paymentMethod=${e} ?disabled=${this.disabled} ></primer-qrcode>`;break;case\"BLIK\":a=u`<primer-blik .paymentMethod=${e} ?disabled=${this.disabled} ></primer-blik>`;break;case\"BACKEND_DRIVEN\":a=u`<primer-backend-driven .paymentMethod=${e} ?disabled=${this.disabled} ></primer-backend-driven>`;break;case\"REDIRECT\":a=u`<primer-redirect-payment .paymentMethod=${e} ?disabled=${this.disabled} ></primer-redirect-payment>`;break;case\"KLARNA\":a=u`<primer-klarna .paymentMethod=${e} ?disabled=${this.disabled} ></primer-klarna>`;break;case\"ADYEN_KLARNA\":a=u`<primer-adyen-klarna .paymentMethod=${e} ?disabled=${this.disabled} ></primer-adyen-klarna>`;break;case\"MBWAY\":a=u`<primer-adyen-mbway .paymentMethod=${e} ?disabled=${this.disabled} ></primer-adyen-mbway>`;break;default:return y}return u`<div @click=${this.handleClick} @expanded-change=${i=>{this.isActive=i.detail.expanded}} >${a}</div>`}}"
|
|
200
229
|
},
|
|
201
230
|
{
|
|
202
231
|
"kind": "variable",
|
|
203
|
-
"name": "
|
|
204
|
-
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1}getFilteredMethods(){if(!this.primerContext?.paymentMethods)return[];let e=[...this.primerContext.paymentMethods];if(this.include){let
|
|
232
|
+
"name": "De",
|
|
233
|
+
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1}getFilteredMethods(){if(!this.primerContext?.paymentMethods)return[];let e=[...this.primerContext.paymentMethods];if(this.include){let a=this.include.split(\",\").map(i=>i.trim());e=e.filter(i=>a.includes(i.type))}if(this.exclude){let a=this.exclude.split(\",\").map(i=>i.trim());e=e.filter(i=>!a.includes(i.type))}return e}render(){let e=this.getFilteredMethods();return e.length===0?y:u`<div class=\"payment-methods-container\">${e.map(a=>u`<primer-payment-method type=\"${a.type}\" ?disabled=\"${this.disabled||this.primerContext?.clientOptions?.disabledPayments===!0}\" ></primer-payment-method>`)}</div>`}}"
|
|
205
234
|
},
|
|
206
235
|
{
|
|
207
236
|
"kind": "variable",
|
|
208
|
-
"name": "
|
|
237
|
+
"name": "Ye",
|
|
209
238
|
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1}_handleClick(){this.disabled||!this.paymentMethod||this.primerContext?.sdkState.isProcessing||(this.primerContext?.setProcessing?.(!0),this.paymentMethod.start())}render(){return u`<primer-payment-method-button .type=${this.paymentMethod?.type} ?disabled=${this.disabled} @payment-method-click=${()=>this._handleClick()} ></primer-payment-method-button>`}}"
|
|
210
239
|
},
|
|
211
240
|
{
|
|
212
241
|
"kind": "variable",
|
|
213
|
-
"name": "
|
|
214
|
-
"default": "class extends b{constructor(){super(...arguments);this.formData={};this.errors={};this.touchedFields=new Set;this.dirtyFields=new Set;this.focusedField=null;this.submitted=!1;this.countryOptions=[];this._initializationTask=new H(this,{task:async([e,
|
|
242
|
+
"name": "ae",
|
|
243
|
+
"default": "class extends b{constructor(){super(...arguments);this.formData={};this.errors={};this.touchedFields=new Set;this.dirtyFields=new Set;this.focusedField=null;this.submitted=!1;this.countryOptions=[];this._initializationTask=new H(this,{task:async([e,a])=>{if(!e||!a)return V;let i=this.extractFieldConfig(e);return await this.initializeCountryOptions(),i},args:()=>[this.primerContext?.configuration??null,this.primerContext?.headlessUtils]})}connectedCallback(){super.connectedCallback(),this._initializationTask.value}extractFieldConfig(e){if(e?.checkoutModules){let a=e.checkoutModules.find(i=>i.type===\"BILLING_ADDRESS\");if(a?.options){let i=a.options;return Object.keys(oo).reduce((n,o)=>({...n,[o]:i[o]??!1}),{})}}return this.defaultFieldConfig}async initializeCountryOptions(){try{let e=no(\"en\");this.countryOptions=[...e.map(([n,o])=>({value:n,label:o}))],this.requestUpdate(\"countryOptions\");let a=Ln();if(a===\"en\"||a===\"en-GB\"||a.startsWith(\"en-\"))return;if(await xc(a)){let n=no(a);this.countryOptions=[...n.map(([o,s])=>({value:o,label:s}))],this.requestUpdate(\"countryOptions\")}}catch(e){ar(this.primerContext?.telemetry,\"Failed to load country locale\",{error:e})}}get fieldConfig(){return this.extractFieldConfig(this.primerContext?.configuration)}get defaultFieldConfig(){return Object.keys(oo).reduce((e,a)=>({...e,[a]:!1}),{})}get shouldShowForm(){return this.fieldConfig.postalCode}handleInput(e,a){this.formData={...this.formData,[e]:a},this.dirtyFields.add(e),(this.submitted||this.dirtyFields.has(e)&&this.touchedFields.has(e))&&this.validateField(e),this.dispatchEvent(new CustomEvent(\"primer-billing-address-change\",{detail:this.formData,bubbles:!0,composed:!0}))}handleFocus(e){this.focusedField=e}handleBlur(e){this.focusedField=null,this.touchedFields.add(e),this.validateField(e)}validateField(e){let a=this.formData[e],i=this.fieldConfig[e];if(!i){delete this.errors[e];return}if(i&&(!a||a.trim()===\"\")){let n=`${e}ErrorRequired`;this.errors={...this.errors,[e]:A(\"This field is required\",{id:n})}}else{let n={...this.errors};delete n[e],this.errors=n}}validateForm(){return Object.keys(oo).forEach(e=>{let a=e;this.fieldConfig[a]&&this.validateField(a)}),Object.keys(this.errors).length===0}async validateForSubmission(){if(!this.shouldShowForm)return!0;this.submitted=!0,Object.keys(this.fieldConfig).forEach(a=>{this.fieldConfig[a]&&this.touchedFields.add(a)});let e=this.validateForm();return this.requestUpdate(),await this.updateComplete,e}async submitToSDK(){if(this.primerContext?.headlessUtils?.setBillingAddress)try{return await this.primerContext?.headlessUtils.setBillingAddress(this.formData),this.dispatchEvent(new CustomEvent(\"primer-billing-address-submit\",{detail:this.formData,bubbles:!0,composed:!0})),!0}catch{return!1}return!0}shouldShowError(e){let a=!!this.errors[e],i=this.dirtyFields.has(e),n=this.touchedFields.has(e);return a&&(this.submitted||i&&n)}render(){return this._initializationTask.render({pending:()=>y,error:()=>y,complete:()=>this.shouldShowForm?(this.removeAttribute(\"hidden\"),u`<div class=\"billing-address-form\"><div class=\"billing-address-title\">${A(\"Billing address\",{id:\"billingAddressLabel\"})}</div>${L(this.fieldConfig.countryCode,()=>u`<primer-input-wrapper .focusWithin=${this.focusedField===\"countryCode\"} .hasError=${this.shouldShowError(\"countryCode\")} ><primer-input-label slot=\"label\">${A(\"Country code\",{id:\"countryCodeLabel\"})}</primer-input-label><primer-select slot=\"input\" id=\"countryCode\" name=\"countryCode\" .value=${this.formData.countryCode||\"\"} .options=${this.countryOptions} .hasError=${this.shouldShowError(\"countryCode\")} placeholder=${A(\"Select a country\",{id:\"countrySelectPlaceholder\"})} @input=${e=>this.handleInput(\"countryCode\",e.detail)} @focus=${()=>this.handleFocus(\"countryCode\")} @blur=${()=>this.handleBlur(\"countryCode\")} ></primer-select>${L(this.shouldShowError(\"countryCode\"),()=>u`<primer-input-error slot=\"error\">${this.errors.countryCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${L(this.fieldConfig.firstName||this.fieldConfig.lastName,()=>u`<div class=\"billing-address-row\">${L(this.fieldConfig.firstName,()=>u`<primer-input-wrapper .focusWithin=${this.focusedField===\"firstName\"} .hasError=${this.shouldShowError(\"firstName\")} ><primer-input-label slot=\"label\">${A(\"First name\",{id:\"firstNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"firstName\" name=\"firstName\" type=\"text\" .value=${this.formData.firstName||\"\"} placeholder=${A(\"First name\",{id:\"firstNamePlaceholder\"})} @input=${e=>this.handleInput(\"firstName\",e.detail)} @focus=${()=>this.handleFocus(\"firstName\")} @blur=${()=>this.handleBlur(\"firstName\")} ></primer-input>${L(this.shouldShowError(\"firstName\"),()=>u`<primer-input-error slot=\"error\">${this.errors.firstName}</primer-input-error>`)}</primer-input-wrapper>`)} ${L(this.fieldConfig.lastName,()=>u`<primer-input-wrapper .focusWithin=${this.focusedField===\"lastName\"} .hasError=${this.shouldShowError(\"lastName\")} ><primer-input-label slot=\"label\">${A(\"Last name\",{id:\"lastNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"lastName\" name=\"lastName\" type=\"text\" .value=${this.formData.lastName||\"\"} placeholder=${A(\"Last name\",{id:\"lastNamePlaceholder\"})} @input=${e=>this.handleInput(\"lastName\",e.detail)} @focus=${()=>this.handleFocus(\"lastName\")} @blur=${()=>this.handleBlur(\"lastName\")} ></primer-input>${L(this.shouldShowError(\"lastName\"),()=>u`<primer-input-error slot=\"error\">${this.errors.lastName}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${L(this.fieldConfig.addressLine1,()=>u`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine1\"} .hasError=${this.shouldShowError(\"addressLine1\")} ><primer-input-label slot=\"label\">${A(\"Address line 1\",{id:\"addressLine1\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine1\" name=\"addressLine1\" type=\"text\" .value=${this.formData.addressLine1||\"\"} placeholder=${A(\"Address line 1\",{id:\"addressLine1Placeholder\"})} @input=${e=>this.handleInput(\"addressLine1\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine1\")} @blur=${()=>this.handleBlur(\"addressLine1\")} ></primer-input>${L(this.shouldShowError(\"addressLine1\"),()=>u`<primer-input-error slot=\"error\">${this.errors.addressLine1}</primer-input-error>`)}</primer-input-wrapper>`)} ${L(this.fieldConfig.addressLine2,()=>u`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine2\"} .hasError=${this.shouldShowError(\"addressLine2\")} ><primer-input-label slot=\"label\">${A(\"Address line 2\",{id:\"addressLine2\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine2\" name=\"addressLine2\" type=\"text\" .value=${this.formData.addressLine2||\"\"} placeholder=${A(\"Address line 2\",{id:\"addressLine2Placeholder\"})} @input=${e=>this.handleInput(\"addressLine2\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine2\")} @blur=${()=>this.handleBlur(\"addressLine2\")} ></primer-input>${L(this.shouldShowError(\"addressLine2\"),()=>u`<primer-input-error slot=\"error\">${this.errors.addressLine2}</primer-input-error>`)}</primer-input-wrapper>`)} ${L(this.fieldConfig.postalCode||this.fieldConfig.city,()=>u`<div class=\"billing-address-row\">${L(this.fieldConfig.postalCode,()=>u`<primer-input-wrapper .focusWithin=${this.focusedField===\"postalCode\"} .hasError=${this.shouldShowError(\"postalCode\")} ><primer-input-label slot=\"label\">${A(\"Postal code\",{id:\"postalCodeLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"postalCode\" name=\"postalCode\" type=\"text\" .value=${this.formData.postalCode||\"\"} placeholder=${A(\"90210\",{id:\"postalCodePlaceholder\"})} @input=${e=>this.handleInput(\"postalCode\",e.detail)} @focus=${()=>this.handleFocus(\"postalCode\")} @blur=${()=>this.handleBlur(\"postalCode\")} ></primer-input>${L(this.shouldShowError(\"postalCode\"),()=>u`<primer-input-error slot=\"error\">${this.errors.postalCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${L(this.fieldConfig.city,()=>u`<primer-input-wrapper .focusWithin=${this.focusedField===\"city\"} .hasError=${this.shouldShowError(\"city\")} ><primer-input-label slot=\"label\">${A(\"City\",{id:\"cityLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"city\" name=\"city\" type=\"text\" .value=${this.formData.city||\"\"} placeholder=${A(\"Cape Town\",{id:\"cityPlaceholder\"})} @input=${e=>this.handleInput(\"city\",e.detail)} @focus=${()=>this.handleFocus(\"city\")} @blur=${()=>this.handleBlur(\"city\")} ></primer-input>${L(this.shouldShowError(\"city\"),()=>u`<primer-input-error slot=\"error\">${this.errors.city}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${L(this.fieldConfig.state,()=>u`<primer-input-wrapper .focusWithin=${this.focusedField===\"state\"} .hasError=${this.shouldShowError(\"state\")} ><primer-input-label slot=\"label\">${A(\"State / Region / County\",{id:\"stateLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"state\" name=\"state\" type=\"text\" .value=${this.formData.state||\"\"} placeholder=${A(\"State / Region / County\",{id:\"statePlaceholder\"})} @input=${e=>this.handleInput(\"state\",e.detail)} @focus=${()=>this.handleFocus(\"state\")} @blur=${()=>this.handleBlur(\"state\")} ></primer-input>${L(this.shouldShowError(\"state\"),()=>u`<primer-input-error slot=\"error\">${this.errors.state}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`):(this.setAttribute(\"hidden\",\"\"),y)})}}"
|
|
215
244
|
},
|
|
216
245
|
{
|
|
217
246
|
"kind": "variable",
|
|
218
|
-
"name": "
|
|
219
|
-
"default": "class extends b{constructor(){super();this.hasSlottedSubmit=!1;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this._isHandlingContextEvent=!1;this._contextVaultSubmitListener=null;this.deleteAssetConfig=null;this.handleSubmitSlotChange=e=>{let
|
|
247
|
+
"name": "ie",
|
|
248
|
+
"default": "class extends b{constructor(){super();this.hasSlottedSubmit=!1;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this._isHandlingContextEvent=!1;this._contextVaultSubmitListener=null;this.deleteAssetConfig=null;this.handleSubmitSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedSubmit=i.length>0};this.handleToggleEditMode=e=>{this.isEditMode=e.detail,this.deletePaymentMethodId=null,this.isEditMode&&this.primerContext?.vaultItem&&this.primerContext?.vaultItem.setSelectedVaultedPaymentMethod(null)};this.handleDeletePaymentMethod=async e=>{if(this.deletePaymentMethodId=e.detail,this.deletePaymentMethodId&&this.primerContext?.vaultManager&&this.primerContext?.headlessUtils){let a=this.primerContext?.vaultManager.vaultedPaymentMethods.find(i=>i.id===this.deletePaymentMethodId);a&&(this.deleteAssetConfig=await Qa(a,this.primerContext?.headlessUtils,this.primerContext?.vaultManager))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.primerContext?.vaultManager?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=A(\"Something went wrong. Please try again.\",{id:\"something_went_wrong_error\"});return}try{this.isDeleting=!0,await this.primerContext?.vaultManager.deleteVaultedPaymentMethod(this.deletePaymentMethodId),this.deletePaymentMethodId=null,this.deleteAssetConfig=null}catch(e){this.errorMessage=e instanceof Error?e.message:A(\"Something went wrong. Please try again.\",{id:\"something_went_wrong_error\"})}finally{this.isDeleting=!1}};this.handlePaymentError=e=>{let a=e.detail?.error;this.errorMessage=a instanceof Error?a.message:A(\"Your payment could not be processed. Please try again.\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isSubmitButton(n)&&(e.preventDefault(),this.submitVaultPayment())};this.handleDirectSubmit=()=>{this.submitVaultPayment()};this.handleContextVaultSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitVaultPayment())}finally{this._isHandlingContextEvent=!1}}};new ur(this,{defaultOptions:{keyframeOptions:{duration:Number(getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-duration\").trim().replace(\"ms\",\"\")),easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim()}}})}getAnimationConfig(){return{keyframeOptions:{duration:this.animationDuration,easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim(),fill:\"both\"}}}isSubmitButton(e){let a=e.tagName.toLowerCase(),i=a===\"button\",n=a===\"primer-button\";return i&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||n&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitVaultPayment(){if(this.primerContext?.vaultManager)try{await this.primerContext?.vaultManager.startVaultedPaymentFlow()}catch(e){this.dispatchEvent(new CustomEvent(\"primer-vault-payment-error\",{detail:{error:e},bubbles:!0,composed:!0}))}}getPaymentMethodName(e){if(!this.primerContext?.vaultManager)return\"\";let a=this.primerContext?.vaultManager.vaultedPaymentMethods.find(i=>i.id===e);if(!a)return\"\";try{return lo(a,this.primerContext?.telemetry).description||\"\"}catch{return\"\"}}setupContextEventListeners(){this.primerContext?.events?.host&&this._contextVaultSubmitListener&&this.primerContext?.events.host.addEventListener(\"primer:vault-submit\",this._contextVaultSubmitListener)}cleanupContextEventListeners(){this.primerContext?.events?.host&&this._contextVaultSubmitListener&&this.primerContext?.events.host.removeEventListener(\"primer:vault-submit\",this._contextVaultSubmitListener)}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:vault-submit\",this.handleDirectSubmit),this._contextVaultSubmitListener=e=>{this.handleContextVaultSubmit(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:vault-submit\",this.handleDirectSubmit),this.cleanupContextEventListeners(),super.disconnectedCallback()}renderLoadingOverlay(){return u`<div class=\"loading-overlay\" ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ><primer-spinner size=\"medium\" color=\"var(--primer-color-loader)\" ></primer-spinner></div>`}renderDeleteConfirmation(){if(!this.deletePaymentMethodId||!this.deleteAssetConfig)return y;let e=this.getPaymentMethodName(this.deletePaymentMethodId);return u`<div class=\"delete-confirmation-container\"><primer-button disabled variant=\"secondary\"><primer-payment-method-content .assetConfig=${this.deleteAssetConfig} ></primer-payment-method-content></primer-button><primer-vault-delete-confirmation .isDeleting=${this.isDeleting} .paymentMethodId=${this.deletePaymentMethodId} .paymentMethodName=${e} @confirm-delete=${this.handleConfirmDelete} @cancel-delete=${this.handleCancelDelete} ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-delete-confirmation></div>`}renderPaymentMethodItem(e){return this.deletePaymentMethodId===e.id?y:u`<primer-vault-payment-method-item .paymentMethod=${e} .isEditMode=${this.isEditMode} @delete-payment-method=${this.handleDeletePaymentMethod} ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-payment-method-item>`}renderPaymentMethodList(){let e=this.primerContext?.vaultManager?.vaultedPaymentMethods||[],a=!this.isEditMode&&e.length>0&&!this.deletePaymentMethodId;return u`<div class=\"payment-methods-list\">${e.map(i=>this.renderPaymentMethodItem(i))} ${L(a,()=>u`<div class=\"submit-button-container\"><slot name=\"submit-button\" @slotchange=${this.handleSubmitSlotChange} ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></slot>${L(!this.hasSlottedSubmit,()=>u`<primer-vault-payment-submit class=\"submit-button\" @primer-vault-payment-error=${this.handlePaymentError} ></primer-vault-payment-submit>`)}</div>`,()=>y)}</div>`}render(){if(!this.primerContext?.vaultManager?.enabled||this.primerContext?.vaultManager?.headless)return y;let e=this.primerContext?.vaultManager.vaultedPaymentMethods.length>0,a=this.primerContext?.vaultManager.isLoading,i=this.primerContext?.vaultManager.isUpdating;return u` ${L(!this.primerContext?.vaultManager?.showEmptyState&&!e,()=>y,()=>u`<slot name=\"vault-empty-state\"><div class=\"vault-manager ${i?\"is-updating\":\"\"}\"><primer-vault-manager-header .isEditMode=${this.isEditMode} .hasPaymentMethods=${e} @toggle-edit-mode=${this.handleToggleEditMode} ></primer-vault-manager-header>${L(this.errorMessage,()=>u`<primer-vault-error-message .errorMessage=${this.errorMessage} @close-error=${this.handleCloseError} ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-error-message>`,()=>y)}<div class=\"vault-manager-content\">${L(!a&&!e,()=>u`<div class=\"content-container\"><primer-vault-empty-state ${Mt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-empty-state></div>`,()=>y)} ${L(!a&&e,()=>u`<div class=\"content-container\">${L(this.deletePaymentMethodId,()=>this.renderDeleteConfirmation(),()=>this.renderPaymentMethodList())}</div>`,()=>y)}</div>${L(i,()=>this.renderLoadingOverlay(),()=>y)}</div></slot>`)} `}}"
|
|
220
249
|
},
|
|
221
250
|
{
|
|
222
251
|
"kind": "variable",
|
|
223
252
|
"name": "Ie",
|
|
224
|
-
"default": "class extends b{constructor(){super(...arguments);this.paymentMethod=void 0;this.isEditMode=!1;this._getAssetsTask=new H(this,{task:async([e,i
|
|
253
|
+
"default": "class extends b{constructor(){super(...arguments);this.paymentMethod=void 0;this.isEditMode=!1;this._getAssetsTask=new H(this,{task:async([e,a,i])=>await Qa(e,a,i),args:()=>[this.paymentMethod,this.primerContext?.headlessUtils,this.primerContext?.vaultManager]});this.handleClick=()=>{this.isEditMode||!this.primerContext?.vaultManager||!this.paymentMethod||(this.isSelected()?this.primerContext?.vaultItem?.setSelectedVaultedPaymentMethod(null):this.primerContext?.vaultItem?.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.primerContext?.vaultManager||!this.paymentMethod)return!1;let e=this.primerContext?.vaultItem?.selectedVaultedPaymentMethod;return!!e&&e.id===this.paymentMethod.id}render(){return this._getAssetsTask.render({error:()=>y,complete:e=>{let a=this.isSelected()?\"checked\":\"default\",i=!1,n=e?.description;return u`<div class=\"payment-method-wrapper\"><div class=\"payment-method-container\"><primer-button variant=\"secondary\" class=\"payment-method-button ${e.shouldShowCVV?\"with-cvv\":\"\"}\" selectable ?disabled=${this.isEditMode} selectionState=${a} .flex=${i} @click=${this.handleClick} ><primer-payment-method-content .assetConfig=${e} ></primer-payment-method-content>${L(e.shouldShowCVV&&this.isSelected()&&!this.isEditMode,()=>u`<div class=\"payment-method-row mt-2\"><span class=\"flex-center\"><primer-icon name=\"lock\" size=\"sm\"></primer-icon><span class=\"payment-method-subtitle\">${A(\"Input the card CVV for a secure payment\",{id:\"vaultCvvRecapturePrompt\"})}</span ></span><span class=\"cell-2\"><primer-vault-cvv-input .paymentMethod=\"${this.paymentMethod}\" ><span slot=\"label\"></span></primer-vault-cvv-input></span></div>`,()=>y)}</primer-button>${this.isEditMode?u`<primer-button variant=\"tertiary\" class=\"delete-button\" @click=${this.handleDeleteClick} aria-label=${`${A(\"Delete\",{id:\"delete\"})} ${n}`} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></primer-button>`:y}</div></div>`}})}}"
|
|
225
254
|
},
|
|
226
255
|
{
|
|
227
256
|
"kind": "variable",
|
|
228
|
-
"name": "
|
|
229
|
-
"default": "class extends b{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 u`<div class=\"vault-manager-header\"><h3>${
|
|
257
|
+
"name": "Oe",
|
|
258
|
+
"default": "class extends b{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 u`<div class=\"vault-manager-header\"><h3>${A(\"Previously used:\",{id:\"previouslyUsed\"})}</h3>${this.hasPaymentMethods?u`<primer-button variant=\"tertiary\" class=\"edit-button ${this.isEditMode?\"active\":\"\"}\" @click=${this.toggleEditMode} aria-label=${this.isEditMode?A(\"Confirm\",{id:\"confirm\"}):A(\"Edit saved payment methods\",{id:\"editPaymentMethods\"})} >${this.isEditMode?u`<primer-icon name=\"checkmark\" size=\"sm\"></primer-icon>`:u`<primer-icon name=\"edit\" size=\"sm\"></primer-icon>`}</primer-button>`:y}</div>`}}"
|
|
230
259
|
},
|
|
231
260
|
{
|
|
232
261
|
"kind": "variable",
|
|
233
262
|
"name": "ke",
|
|
234
|
-
"default": "class extends b{constructor(){super(...arguments);this.isDeleting=!1;this.paymentMethodId=\"\";this.paymentMethodName=\"\";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 u`<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} >${
|
|
263
|
+
"default": "class extends b{constructor(){super(...arguments);this.isDeleting=!1;this.paymentMethodId=\"\";this.paymentMethodName=\"\";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 u`<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(\"Yes, delete it\",{id:\"confirmVaultedPaymentMethodDeletion\"})}</primer-button></div></div>`}}"
|
|
235
264
|
},
|
|
236
265
|
{
|
|
237
266
|
"kind": "variable",
|
|
238
|
-
"name": "
|
|
239
|
-
"default": "class extends b{render(){return u`<div class=\"empty-state\"><p>${
|
|
267
|
+
"name": "it",
|
|
268
|
+
"default": "class extends b{render(){return u`<div class=\"empty-state\"><p>${A(\"Enter your card details below to add a new payment method\",{id:\"savedPaymentMethodsEmpty\"})}</p></div>`}}"
|
|
240
269
|
},
|
|
241
270
|
{
|
|
242
271
|
"kind": "variable",
|
|
243
|
-
"name": "
|
|
244
|
-
"default": "class extends b{constructor(){super(...arguments);this.errorMessage=\"\";this.handleDismiss=()=>{this.dispatchEvent(new CustomEvent(\"close-error\",{bubbles:!0,composed:!0}))}}render(){return u`<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=${
|
|
272
|
+
"name": "ze",
|
|
273
|
+
"default": "class extends b{constructor(){super(...arguments);this.errorMessage=\"\";this.handleDismiss=()=>{this.dispatchEvent(new CustomEvent(\"close-error\",{bubbles:!0,composed:!0}))}}render(){return u`<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(\"Close error message\",{id:\"closeErrorMessage\"})} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></button></div>`}}"
|
|
245
274
|
},
|
|
246
275
|
{
|
|
247
276
|
"kind": "variable",
|
|
248
277
|
"name": "be",
|
|
249
|
-
"default": "class extends b{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.variant=\"primary\";this.disabled=!1;this.handleClick=async e=>{if(e.preventDefault(),!this.isButtonDisabled)try{await this.primerContext?.vaultManager?.startVaultedPaymentFlow()}catch(
|
|
278
|
+
"default": "class extends b{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.variant=\"primary\";this.disabled=!1;this.handleClick=async e=>{if(e.preventDefault(),!this.isButtonDisabled)try{await this.primerContext?.vaultManager?.startVaultedPaymentFlow()}catch(a){let i=new CustomEvent(\"primer-vault-payment-error\",{bubbles:!0,composed:!0,detail:{error:a}});this.dispatchEvent(i)}}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:A(\"Pay\",{id:\"pay\"})}set buttonText(e){let a=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",a)}get isButtonDisabled(){return!!(this.disabled||!this.primerContext?.vaultItem?.selectedVaultedPaymentMethod||this.primerContext?.vaultManager?.isLoading)}render(){let e=this.primerContext?.clientOptions?.submitButton?.amountVisible?this.primerContext?.headlessUtils?.getUIOrderAmount():null,a=e?` ${e}`:y;return u`<primer-button buttonType=\"submit\" variant=${this.variant} @click=${this.handleClick} .disabled=${this.isButtonDisabled} .loading=${gt(this.primerContext?.sdkState)} data-submit >${this.buttonText}${a}</primer-button>`}}"
|
|
250
279
|
},
|
|
251
280
|
{
|
|
252
281
|
"kind": "variable",
|
|
253
282
|
"name": "re",
|
|
254
|
-
"default": "class extends b{constructor(){super();this.paymentMethod=null;this.cvvError=null;this.cvvInputIsDirty=!1;this.cvvInputIsBlurred=!1;this.cvvInput=null;this.isFocused=!1;this._setupCVVIframe=new H(this,{task:([e,
|
|
283
|
+
"default": "class extends b{constructor(){super();this.paymentMethod=null;this.cvvError=null;this.cvvInputIsDirty=!1;this.cvvInputIsBlurred=!1;this.cvvInput=null;this.isFocused=!1;this._setupCVVIframe=new H(this,{task:([e,a])=>!e||!a||e.paymentMethodType!==\"PAYMENT_CARD\"||!e.paymentInstrumentData?.network||a.createCvvInput===null?V:{network:e.paymentInstrumentData.network,createCvvInput:a.createCvvInput},args:()=>[this.paymentMethod,this.primerContext?.vaultManager]});this.cvvContainerId=`cvv-container-${Math.random().toString(36).substring(2,9)}`,new H(this,{task:async([e])=>{if(!e)return V;await this.updateComplete;let a=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!a)return;let i=Zr(this.primerContext?.computedStyles??null),n=i?{input:{base:i}}:void 0,o={cardNetwork:e.network,container:a,name:\"cvv\",placeholder:\"123\",style:n,ariaLabel:A(\"CVV\",{id:\"cardCVV\"})};this.cvvInput=await e.createCvvInput?.(o)??null,this.cvvInput&&(this.cvvInput.focus(),this.cvvError=this.cvvInput.metadata.errorCode||null,this.primerContext?.vaultItem?.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.primerContext?.vaultItem?.setCvvInput(null))}onCvvInputChange(){!this.cvvInput||!this.primerContext?.vaultItem||(this.cvvInputIsDirty=!0,this.cvvError=this.cvvInput.metadata.errorCode||null)}onBlur(){this.cvvInput&&(this.cvvInputIsBlurred=!0,this.cvvError=this.cvvInput.metadata.errorCode||null,this.isFocused=!1)}onFocus(){this.isFocused=!0}render(){return this._setupCVVIframe.render({error:()=>y,complete:()=>u`<div class=\"cvv-input-container\"><primer-input-wrapper .focusWithin=${this.isFocused} .hasError=${!!this.cvvError&&(this.primerContext?.vaultItem?.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>${L(this.cvvError&&(this.primerContext?.vaultItem?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred),()=>u`<primer-input-error slot=\"error\">${A(this.cvvError,{id:this.cvvError})}</primer-input-error>`)}</primer-input-wrapper></div>`})}}"
|
|
255
284
|
},
|
|
256
285
|
{
|
|
257
286
|
"kind": "variable",
|
|
258
287
|
"name": "je",
|
|
259
|
-
"default": "class extends b{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return y;let e=this.assetConfig.description,
|
|
288
|
+
"default": "class extends b{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return y;let e=this.assetConfig.description,a=this.assetConfig.icon,i=L(this.assetConfig.icon,()=>u`<img class=\"payment-method-icon\" src=${a} alt=${e} />`,()=>u`<div class=\"payment-method-icon payment-method-icon-generic\"><primer-icon name=\"payment-card\" size=\"sm\"></primer-icon></div>`);return this.assetConfig.type===\"paypal\"?u`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></span></div></span>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType!==\"ACH\"?u`<div class=\"payment-method-card-other\"><div class=\"left-column\"><div class=\"payment-method-header\">${this.assetConfig.fullName}</div><div class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></div></div><div class=\"payment-method-right-column-text\">${this.assetConfig.email||`\\u2022\\u2022\\u2022\\u2022 ${this.assetConfig.last4}`}</div></div>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType===\"ACH\"?u`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.bankName}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.accountType}</span ></div></span>`:this.assetConfig.type===\"card\"?u`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.cardholderName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.network}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.expiresDate}</span ></div></span>`:this.assetConfig.type===\"GOOGLE_PAY\"?u`<span class=\"payment-method-card\"><div class=\"payment-method-row\">${i}<span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"payment-method-subtitle\" >${this.assetConfig.network}</span ><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.expiresDate}</span ></div></span>`:y}}"
|
|
260
289
|
},
|
|
261
290
|
{
|
|
262
291
|
"kind": "variable",
|
|
263
292
|
"name": "Ce",
|
|
264
|
-
"default": "class extends b{constructor(){super(...arguments);this.hideLabels=!1;this.disabled=!1;this.hasAssignedContent=!1;this.selectedCardNetwork=null;this.formErrorMessage=null;this.paymentMethodSelectionSent=!1;this.cardFormProvider=new
|
|
293
|
+
"default": "class extends b{constructor(){super(...arguments);this.hideLabels=!1;this.disabled=!1;this.hasAssignedContent=!1;this.selectedCardNetwork=null;this.formErrorMessage=null;this.paymentMethodSelectionSent=!1;this.cardFormProvider=new ht(this,{context:mr,initialValue:null});this.eventsController=new tr(this);this._contextCardSubmitListener=null;this._isHandlingContextEvent=!1;this.inputControllers=new Map;this.setupCardFormTask=new H(this,{task:([e])=>{let a=e?.find(l=>l.type===k.PAYMENT_CARD);if(!a)return V;let{cardNumber:i,cardExpiryDate:n,cardSecurityCode:o,cardholderName:s}=a.iframes;return this.cardFormProvider.setValue({cardholderNameInput:s,cardNumberInput:i,expiryInput:n,cvvInput:o,setCardholderName:l=>{a.setCardholderName(l),this.shouldRequireCardholderName&&a.validate().then(c=>{let h=c?.validationErrors?.find(M=>M.name===rp.cardholderName),g=this.inputControllers.get(\"cardholderName\");g&&g.updateMetaFromValidation({valid:!1,error:h?.message||h?.error||null,errorCode:h?.message||h?.error||null})})},setCardNetwork:l=>{this.selectedCardNetwork=l},validate:()=>a.validate(),submit:l=>a.submit(l),hideLabels:this.hideLabels,disabled:this.disabled,setSubmissionState:l=>{this.inputControllers.forEach(c=>{c.setSubmitted(l)})},propagateValidationErrors:l=>{l&&l.forEach(c=>{let p=c.field||c.name,h=c.message||c.error,g=rp[p];if(g){let M=this.inputControllers.get(g);if(M){let _={valid:!1,error:h,errorCode:h};M.updateMetaFromValidation(_)}}})},registerInputController:(l,c)=>{this.inputControllers.set(l,c)},unregisterInputController:l=>{this.inputControllers.delete(l)},onUserInteraction:()=>{this.sendPaymentMethodSelectionEvent(),this.checkAndSendPaymentDetailsEnteredEvent()}}),!0},args:()=>[this.primerContext?.paymentMethods]});this.paymentDetailsEnteredSent=!1;this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isSubmitButton(n)&&(e.preventDefault(),this.submitCardPayment())};this.handleDirectSubmit=e=>{e.stopPropagation(),this.submitCardPayment()};this.handleContextCardSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitCardPayment())}finally{this._isHandlingContextEvent=!1}}};this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0};this.handleFormSubmit=e=>{e.preventDefault(),e.stopPropagation(),this.submitCardPayment()}}updated(e){if(super.updated(e),(e.has(\"hideLabels\")||e.has(\"disabled\"))&&this.cardFormProvider.value&&this.cardFormProvider.setValue({...this.cardFormProvider.value,hideLabels:this.hideLabels,disabled:this.disabled}),e.has(\"context\")){let i=e.get(\"context\")?.events??null;i?.host&&this._contextCardSubmitListener&&i.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener),this.setupContextEventListeners()}}get shouldShowCardholderName(){let e=this.primerContext?.clientOptions?.card?.cardholderName;return typeof e?.visible==\"boolean\"?e.visible:!0}get shouldRequireCardholderName(){if(!this.shouldShowCardholderName)return!1;let e=this.primerContext?.clientOptions?.card?.cardholderName;return typeof e?.required==\"boolean\"?e.required:!0}sendPaymentMethodSelectionEvent(){this.paymentMethodSelectionSent||(this.paymentMethodSelectionSent=!0,this.primerContext?.telemetry?.analytics.sendEvent({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:\"PAYMENT_CARD\"}))}checkAndSendPaymentDetailsEnteredEvent(){if(this.paymentDetailsEnteredSent)return;let e=this.inputControllers.get(\"cardNumber\"),a=this.inputControllers.get(\"expire\"),i=this.inputControllers.get(\"cvv\"),n=e?.meta?.dirty===!0,o=a?.meta?.dirty===!0,s=i?.meta?.dirty===!0,l=!0;this.shouldRequireCardholderName&&(l=this.inputControllers.get(\"cardholderName\")?.meta?.dirty===!0),n&&o&&s&&l&&(this.sendPaymentDetailsEnteredEvent(),this.paymentDetailsEnteredSent=!0)}sendPaymentDetailsEnteredEvent(){this.primerContext?.telemetry?.analytics.sendEvent({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.primerContext?.events?.host&&this._contextCardSubmitListener&&this.primerContext?.events.host.addEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}cleanupContextEventListeners(){this.primerContext?.events?.host&&this._contextCardSubmitListener&&this.primerContext?.events.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}isSubmitButton(e){let a=e.tagName.toLowerCase(),i=a===\"button\",n=a===\"primer-button\";return i&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||n&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitCardPayment(){let e=this.cardFormProvider.value,a=this.primerContext?.sdkState.isProcessing;if(!e||this.disabled||a)return;this.primerContext?.setProcessing?.(!0),this.formErrorMessage=null,e.setSubmissionState?.(!0);let i=this.querySelector(\"primer-billing-address\")||this.renderRoot.querySelector(\"primer-billing-address\"),n=!0;i&&(n=await i.validateForSubmission());let o=await e.validate?.();if(o?.valid&&n){if(i&&!await i.submitToSDK()){let p=A(\"tokenizationError\",{id:\"tokenizationError\"});this.formErrorMessage=p,this.primerContext?.setProcessing?.(!1),this.eventsController.dispatchFormSubmitErrors([{field:\"billingAddress\",name:\"billingAddress\",error:\"BILLING_ADDRESS_SUBMISSION_FAILED\",message:p}]);return}let s={success:!0};this.eventsController.dispatchFormSubmitSuccess(s);let l=this.selectedCardNetwork?{cardNetwork:this.selectedCardNetwork}:void 0;await e.submit?.(l)}else{this.primerContext?.setProcessing?.(!1);let s=o?.validationErrors;e.propagateValidationErrors?.(s||[]),this.cardFormProvider.setValue({...e,errors:s}),this.eventsController.dispatchFormSubmitErrors(s)}}render(){return this.setupCardFormTask.status===vt.ERROR||this.setupCardFormTask.status===vt.INITIAL?y:u`<form @submit=${this.handleFormSubmit}><slot name=\"card-form-content\" @slotchange=${this.onSlotChange}></slot>${this.setupCardFormTask.render({complete:()=>L(this.hasAssignedContent,()=>y,()=>u`<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>${L(this.shouldShowCardholderName,()=>u`<primer-input-card-holder-name></primer-input-card-holder-name>`,()=>y)}<primer-billing-address></primer-billing-address></div><primer-card-form-submit></primer-card-form-submit><primer-error-message message=\"${this.formErrorMessage||\"\"}\" ?visible=\"${!!this.formErrorMessage}\" ></primer-error-message>`)})}</form>`}}"
|
|
265
294
|
},
|
|
266
295
|
{
|
|
267
296
|
"kind": "variable",
|
|
268
297
|
"name": "nt",
|
|
269
|
-
"default": "class extends ne{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:
|
|
298
|
+
"default": "class extends ne{constructor(){super();this.config={inputType:\"cardNumber\",containerSelector:\"#cardNumber\",errorName:\"cardNumber-card\",translations:{label:{id:\"cardNumber\",defaultMessage:\"Card Number\"},placeholder:\"4111 1111 1111 1111\",ariaLabel:{id:\"cardNumber\",defaultMessage:\"Card Number\"}}};this.handleNetworkSelected=e=>{let{network:a}=e.detail;this.cardFormContext&&this.cardFormContext.setCardNetwork(a)};this.childUpdated()}renderInput(){if(this.hostedInputController.setupTask.status===vt.ERROR)return y;let e=this.getError();return u`<primer-input-wrapper .focusWithin=\"${this.hostedInputController.meta.active}\" .hasError=${!!e} >${L(!this.cardFormContext?.hideLabels,()=>u`<primer-input-label slot=\"label\" >${this.label}</primer-input-label >`,()=>y)}<div slot=\"input\" class=\"card-number-container\" aria-label=\"${this.ariaLabel}\" ><div id=\"${this.config.containerSelector.substring(1)}\"></div><div class=\"network-selector-container\"><primer-card-network-selector @network-selected=${this.handleNetworkSelected} ></primer-card-network-selector></div></div>${L(e,a=>u`<primer-input-error slot=\"error\">${A(a,{id:a})}</primer-input-error>`,()=>y)}</primer-input-wrapper>`}render(){return this.renderInput()}}"
|
|
270
299
|
},
|
|
271
300
|
{
|
|
272
301
|
"kind": "variable",
|
|
@@ -286,17 +315,17 @@
|
|
|
286
315
|
{
|
|
287
316
|
"kind": "variable",
|
|
288
317
|
"name": "de",
|
|
289
|
-
"default": "class extends b{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.cardFormContext=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=e=>{if(e.preventDefault(),this.disabled)return;this.primerContext?.telemetry?.analytics.sendEvent({eventName:\"PAYMENT_SUBMITTED\",paymentMethod:\"PAYMENT_CARD\"});let
|
|
318
|
+
"default": "class extends b{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.cardFormContext=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=e=>{if(e.preventDefault(),this.disabled)return;this.primerContext?.telemetry?.analytics.sendEvent({eventName:\"PAYMENT_SUBMITTED\",paymentMethod:\"PAYMENT_CARD\"});let a=new CustomEvent(\"primer:card-submit\",{bubbles:!0,composed:!0,detail:{source:\"primer-card-form-submit\"}});this.dispatchEvent(a)}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:A(\"Pay\",{id:\"pay\"})}set buttonText(e){let a=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",a)}get submitButtonConfig(){return this.primerContext?.clientOptions?.submitButton??null}get shouldShowBuiltInButton(){return this.submitButtonConfig?.useBuiltInButton??!0}render(){if(!this.shouldShowBuiltInButton)return y;let e=this.submitButtonConfig?.amountVisible?this.primerContext?.headlessUtils?.getUIOrderAmount():null,a=e?` ${e}`:y,i=this.disabled||this.cardFormContext?.disabled||!1;return u`<primer-button type=\"submit\" variant=${this.variant} ?disabled=${i} @click=${this.handleClick} .loading=${gt(this.primerContext?.sdkState)} data-submit >${this.buttonText}${a}</primer-button>`}}"
|
|
290
319
|
},
|
|
291
320
|
{
|
|
292
321
|
"kind": "variable",
|
|
293
322
|
"name": "ce",
|
|
294
|
-
"default": "class extends b{constructor(){super(...arguments);this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=
|
|
323
|
+
"default": "class extends b{constructor(){super(...arguments);this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=jr();this.dropdownRef=jr();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.primerContext?.headlessUtils?.getCardNetworkAsset(e.network)?.cardUrl}renderDefaultCardIcon(){return u`<div class=\"network-icon\">${Wa[\"payment-card\"]}</div>`}getSelectableNetworks(){return this.primerContext?.cardNetworks?.selectableCardNetworks||[]}getDetectedNetwork(){return this.selectedCardNetwork??(this.primerContext?.cardNetworks?.detectedCardNetwork||null)}getSelectedNetworkIndex(){let e=this.getDetectedNetwork();if(!e)return 0;let a=this.getSelectableNetworks().findIndex(i=>i.network===e.network);return a>=0?a:0}selectNetwork(e,a){e.stopPropagation(),this.selectedCardNetwork=a,this.isDropdownOpen=!1,this.buttonRef.value?.focus(),this.primerContext?.cardNetworks&&this.dispatchEvent(new CustomEvent(\"network-selected\",{detail:{network:a.network},bubbles:!0,composed:!0}))}focusNetworkOption(){requestAnimationFrame(()=>{this.networkOptionRefs[this.focusedNetworkIndex]&&this.networkOptionRefs[this.focusedNetworkIndex].focus()})}setNetworkOptionRef(e,a){this.networkOptionRefs[a]=e}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener(\"click\",this.handleClickOutside),document.addEventListener(\"mousemove\",this.handleMouseMove),this.addEventListener(\"keydown\",this.handleKeyDown),document.addEventListener(\"keydown\",this.handleDocumentKeyDown)},0)}disconnectedCallback(){document.removeEventListener(\"click\",this.handleClickOutside),document.removeEventListener(\"keydown\",this.handleDocumentKeyDown),document.removeEventListener(\"mousemove\",this.handleMouseMove),this.removeEventListener(\"keydown\",this.handleKeyDown),super.disconnectedCallback()}render(){if(this.primerContext?.cardNetworks?.isLoading)return u`<primer-spinner size=\"small\" compact></primer-spinner>`;let e=this.getSelectableNetworks();if(!this.getDetectedNetwork()&&e.length===0)return this.renderDefaultCardIcon();let a=this.getDetectedNetwork()||(e.length>0?e[0]:null);if(!a)return this.renderDefaultCardIcon();let i=e.length>1;return i&&!xp(e.map(o=>o.network))?u`<div class=\"network-selector-inline\">${e.map(o=>u`<div class=\"network-icon-container\"><img class=\"network-icon\" src=${this.getNetworkIconUrl(o)??\"\"} alt=${o.displayName} /></div>`)}</div>`:u`<button ${pr(this.buttonRef)} class=\"network-selector ${i?\"\":\"static\"}\" tabindex=${i?\"0\":\"-1\"} @click=${this.toggleDropdown} @keydown=${o=>{(o.key===\" \"||o.key===\"Enter\")&&i&&(o.preventDefault(),this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))}} aria-label=${i?`Selected card network: ${a.displayName}. Click to change.`:`Card network: ${a.displayName}`} aria-expanded=${i?this.isDropdownOpen:y} aria-haspopup=${i?\"true\":y} aria-controls=${i?\"network-dropdown\":y} ><img class=\"network-icon\" src=${this.getNetworkIconUrl(a)} alt=${a.displayName} />${L(i,()=>u`<primer-icon class=\"caret ${this.isDropdownOpen?\"open\":\"\"}\" size=\"sm\" name=\"chevron-down\" ></primer-icon>`,()=>y)}</button>${L(this.isDropdownOpen,()=>u`<div ${pr(this.dropdownRef)} id=\"network-dropdown\" class=\"dropdown open\" role=\"listbox\" aria-label=\"Select card network\" >${e.map((o,s)=>u`<div ${pr(l=>this.setNetworkOptionRef(l,s))} class=\"network-option ${this.isKeyboardNavigation&&s===this.focusedNetworkIndex?\"focused\":\"\"}\" @click=${l=>this.selectNetwork(l,o)} @keydown=${l=>{(l.key===\"Enter\"||l.key===\" \")&&this.selectNetwork(l,o)}} role=\"option\" aria-selected=${o.network===a.network} tabindex=\"${s===this.focusedNetworkIndex?\"0\":\"-1\"}\" ><img class=\"network-option-icon\" src=${this.getNetworkIconUrl(o)} alt=${o.displayName} /><span class=\"network-name\">${o.displayName}</span>${L(o.network===a.network,()=>u`<primer-icon class=\"checkmark\" name=\"checkmark\" size=\"sm\" ></primer-icon>`,()=>y)}</div>`)}</div>`,()=>y)} `}}"
|
|
295
324
|
},
|
|
296
325
|
{
|
|
297
326
|
"kind": "variable",
|
|
298
327
|
"name": "_e",
|
|
299
|
-
"default": "class extends b{constructor(){super(...arguments);this.hasSlottedToggle=!1;this.isExpanded=!1;this._isHandlingContextEvent=!1;this._contextToggleListener=null;this.handleToggleSlotChange=e=>{let
|
|
328
|
+
"default": "class extends b{constructor(){super(...arguments);this.hasSlottedToggle=!1;this.isExpanded=!1;this._isHandlingContextEvent=!1;this._contextToggleListener=null;this.handleToggleSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedToggle=i.length>0};this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isToggleButton(n)&&(e.preventDefault(),this.toggleAccordion())};this.handleDirectToggle=e=>{let a=e.detail?.action;a===\"expand\"?this.expand():a===\"collapse\"?this.collapse():this.toggleAccordion()};this.handleContextToggle=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{if(e.target!==this){e.stopPropagation();let a=e.detail?.action;a===\"expand\"?this.expand():a===\"collapse\"?this.collapse():this.toggleAccordion()}}finally{this._isHandlingContextEvent=!1}}}}isToggleButton(e){let a=this.shadowRoot?.querySelector('slot[name=\"show-other-payments-toggle-button\"]');return a?a.assignedElements({flatten:!0}).some(n=>n===e||n.contains(e)):!1}toggleAccordion(){this.hasSlottedToggle?(this.isExpanded=!this.isExpanded,this.dispatchExpandedEvent(this.isExpanded)):this.collapsableElement&&(this.collapsableElement.isExpanded?this.collapsableElement.collapse():this.collapsableElement.expand())}dispatchExpandedEvent(e){this.dispatchEvent(new CustomEvent(\"primer:show-other-payments-toggled\",{bubbles:!0,composed:!0,detail:{expanded:e}}))}expand(){this.hasSlottedToggle?this.isExpanded||(this.isExpanded=!0,this.dispatchExpandedEvent(!0)):this.collapsableElement?.expand()}collapse(){this.hasSlottedToggle?this.isExpanded&&(this.isExpanded=!1,this.dispatchExpandedEvent(!1)):this.collapsableElement?.collapse()}setupContextEventListeners(){this.primerContext?.events?.host&&this._contextToggleListener&&this.primerContext?.events.host.addEventListener(\"primer:show-other-payments-toggle\",this._contextToggleListener)}cleanupContextEventListeners(){this.primerContext?.events?.host&&this._contextToggleListener&&this.primerContext?.events.host.removeEventListener(\"primer:show-other-payments-toggle\",this._contextToggleListener)}connectedCallback(){super.connectedCallback(),this.isExpanded=this.primerContext?.vaultManager?.vaultedPaymentMethods.length===0,this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:show-other-payments-toggle\",this.handleDirectToggle),this._contextToggleListener=e=>{this.handleContextToggle(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:show-other-payments-toggle\",this.handleDirectToggle),this.cleanupContextEventListeners(),super.disconnectedCallback()}render(){if(this.primerContext?.vaultManager?.isLoading)return y;let e=this.primerContext?.vaultManager?.showEmptyState||this.primerContext?.vaultManager?.vaultedPaymentMethods.length;return!this.primerContext?.vaultManager||!this.primerContext?.vaultManager.enabled||this.primerContext?.vaultManager.headless||!e?u`<slot name=\"other-payments\"></slot>`:u`<div class=\"other-payment-methods-container\"><slot name=\"show-other-payments-toggle-button\" @slotchange=${this.handleToggleSlotChange} ></slot>${L(!this.hasSlottedToggle,()=>u`<primer-collapsable buttonVariant=\"secondary\" .expanded=\"${this.primerContext?.vaultManager?.vaultedPaymentMethods.length===0}\" .header=\"${A(\"Show other payment methods\",{id:\"navigateToPaymentMethods\"})}\" ><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></primer-collapsable>`,()=>u`<div class=\"collapsable-wrapper ${this.isExpanded?\"expanded\":\"\"}\" role=\"region\" aria-labelledby=\"custom-toggle-button\" ><div class=\"collapsable-content\"><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></div></div>`)}</div>`}}"
|
|
300
329
|
},
|
|
301
330
|
{
|
|
302
331
|
"kind": "variable",
|
|
@@ -306,7 +335,7 @@
|
|
|
306
335
|
{
|
|
307
336
|
"kind": "variable",
|
|
308
337
|
"name": "dt",
|
|
309
|
-
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.loading=!1}render(){return u`<button class=${J({loading:this.loading})} ?disabled=${this.disabled||this.loading} @click=${()=>this.dispatchEvent(new Event(\"confirm\",{bubbles:!0,composed:!0}))} >${this.loading?u`<primer-spinner size=\"small\" compact></primer-spinner>`:
|
|
338
|
+
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this.loading=!1}render(){return u`<button class=${J({loading:this.loading})} ?disabled=${this.disabled||this.loading} @click=${()=>this.dispatchEvent(new Event(\"confirm\",{bubbles:!0,composed:!0}))} >${this.loading?u`<primer-spinner size=\"small\" compact></primer-spinner>`:A(\"Confirm\",{id:\"confirm\"})}</button>`}}"
|
|
310
339
|
},
|
|
311
340
|
{
|
|
312
341
|
"kind": "variable",
|
|
@@ -315,22 +344,22 @@
|
|
|
315
344
|
},
|
|
316
345
|
{
|
|
317
346
|
"kind": "variable",
|
|
318
|
-
"name": "
|
|
347
|
+
"name": "Yt",
|
|
319
348
|
"default": "class extends b{render(){return u`<primer-checkout-state type=\"failure\" description=${this.primerContext?.sdkState?.primerJsError?.message||\"\"} ></primer-checkout-state>`}}"
|
|
320
349
|
},
|
|
321
350
|
{
|
|
322
351
|
"kind": "variable",
|
|
323
352
|
"name": "ct",
|
|
324
|
-
"default": "class extends b{constructor(){super(...arguments);this.showProcessingErrors=!0}get shouldShowError(){return!this.primerContext?.sdkState||this.primerContext.sdkState.isProcessing?!1:!!(this.primerContext.sdkState.paymentFailure&&this.showProcessingErrors)}render(){return this.primerContext?.sdkState?u`<primer-error-message message=\"${
|
|
353
|
+
"default": "class extends b{constructor(){super(...arguments);this.showProcessingErrors=!0}get shouldShowError(){return!this.primerContext?.sdkState||this.primerContext.sdkState.isProcessing?!1:!!(this.primerContext.sdkState.paymentFailure&&this.showProcessingErrors)}render(){return this.primerContext?.sdkState?u`<primer-error-message message=\"${A(this.primerContext.sdkState.paymentFailure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:y}}"
|
|
325
354
|
},
|
|
326
355
|
{
|
|
327
356
|
"kind": "variable",
|
|
328
|
-
"name": "
|
|
329
|
-
"default": "class extends b{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let
|
|
357
|
+
"name": "Nt",
|
|
358
|
+
"default": "class extends b{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()}}render(){return this.primerContext?.sdkState?.isLoading?y:this.primerContext?.sdkState?.primerJsError?u`<slot name=\"checkout-error\"><primer-checkout-state type=\"failure\" description=${this.primerContext.sdkState.primerJsError.message||\"\"} ></primer-checkout-state></slot>`:this.primerContext?.sdkState?.isSuccessful?u`<slot name=\"checkout-complete\"><primer-checkout-state type=\"complete\"></primer-checkout-state></slot>`:u`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${L(this.hasAssignedContent,()=>y,()=>u`<div class=${J({\"primer-is-processing\":!!this.primerContext?.sdkState?.isProcessing})} ><primer-vault-manager></primer-vault-manager><primer-show-other-payments><div slot=\"other-payments\" class=\"primer-main-list\">${this.primerContext?.paymentMethods.map(e=>u`<primer-payment-method type=${e.type} ?disabled=${this.primerContext?.clientOptions?.disabledPayments===!0} ></primer-payment-method>`)}</div></primer-show-other-payments><primer-error-message-container></primer-error-message-container></div>`)} `}}"
|
|
330
359
|
},
|
|
331
360
|
{
|
|
332
361
|
"kind": "function",
|
|
333
|
-
"name": "
|
|
362
|
+
"name": "SD"
|
|
334
363
|
}
|
|
335
364
|
],
|
|
336
365
|
"exports": [
|
|
@@ -370,7 +399,7 @@
|
|
|
370
399
|
"kind": "js",
|
|
371
400
|
"name": "BillingAddress",
|
|
372
401
|
"declaration": {
|
|
373
|
-
"name": "
|
|
402
|
+
"name": "ae",
|
|
374
403
|
"module": "dist/primer-loader.js"
|
|
375
404
|
}
|
|
376
405
|
},
|
|
@@ -554,7 +583,7 @@
|
|
|
554
583
|
"kind": "js",
|
|
555
584
|
"name": "PaymentMethodContainer",
|
|
556
585
|
"declaration": {
|
|
557
|
-
"name": "
|
|
586
|
+
"name": "De",
|
|
558
587
|
"module": "dist/primer-loader.js"
|
|
559
588
|
}
|
|
560
589
|
},
|
|
@@ -594,7 +623,7 @@
|
|
|
594
623
|
"kind": "js",
|
|
595
624
|
"name": "PrimerCheckoutFailure",
|
|
596
625
|
"declaration": {
|
|
597
|
-
"name": "
|
|
626
|
+
"name": "Yt",
|
|
598
627
|
"module": "dist/primer-loader.js"
|
|
599
628
|
}
|
|
600
629
|
},
|
|
@@ -602,7 +631,7 @@
|
|
|
602
631
|
"kind": "js",
|
|
603
632
|
"name": "PrimerCheckoutState",
|
|
604
633
|
"declaration": {
|
|
605
|
-
"name": "
|
|
634
|
+
"name": "at",
|
|
606
635
|
"module": "dist/primer-loader.js"
|
|
607
636
|
}
|
|
608
637
|
},
|
|
@@ -626,7 +655,7 @@
|
|
|
626
655
|
"kind": "js",
|
|
627
656
|
"name": "PrimerMain",
|
|
628
657
|
"declaration": {
|
|
629
|
-
"name": "
|
|
658
|
+
"name": "Nt",
|
|
630
659
|
"module": "dist/primer-loader.js"
|
|
631
660
|
}
|
|
632
661
|
},
|
|
@@ -650,7 +679,7 @@
|
|
|
650
679
|
"kind": "js",
|
|
651
680
|
"name": "RedirectPayment",
|
|
652
681
|
"declaration": {
|
|
653
|
-
"name": "
|
|
682
|
+
"name": "Ye",
|
|
654
683
|
"module": "dist/primer-loader.js"
|
|
655
684
|
}
|
|
656
685
|
},
|
|
@@ -698,7 +727,7 @@
|
|
|
698
727
|
"kind": "js",
|
|
699
728
|
"name": "VaultEmptyState",
|
|
700
729
|
"declaration": {
|
|
701
|
-
"name": "
|
|
730
|
+
"name": "it",
|
|
702
731
|
"module": "dist/primer-loader.js"
|
|
703
732
|
}
|
|
704
733
|
},
|
|
@@ -706,7 +735,7 @@
|
|
|
706
735
|
"kind": "js",
|
|
707
736
|
"name": "VaultErrorMessage",
|
|
708
737
|
"declaration": {
|
|
709
|
-
"name": "
|
|
738
|
+
"name": "ze",
|
|
710
739
|
"module": "dist/primer-loader.js"
|
|
711
740
|
}
|
|
712
741
|
},
|
|
@@ -714,7 +743,7 @@
|
|
|
714
743
|
"kind": "js",
|
|
715
744
|
"name": "VaultManager",
|
|
716
745
|
"declaration": {
|
|
717
|
-
"name": "
|
|
746
|
+
"name": "ie",
|
|
718
747
|
"module": "dist/primer-loader.js"
|
|
719
748
|
}
|
|
720
749
|
},
|
|
@@ -722,7 +751,7 @@
|
|
|
722
751
|
"kind": "js",
|
|
723
752
|
"name": "VaultManagerHeader",
|
|
724
753
|
"declaration": {
|
|
725
|
-
"name": "
|
|
754
|
+
"name": "Oe",
|
|
726
755
|
"module": "dist/primer-loader.js"
|
|
727
756
|
}
|
|
728
757
|
},
|
|
@@ -746,7 +775,7 @@
|
|
|
746
775
|
"kind": "js",
|
|
747
776
|
"name": "injectDarkTheme",
|
|
748
777
|
"declaration": {
|
|
749
|
-
"name": "
|
|
778
|
+
"name": "dy",
|
|
750
779
|
"module": "dist/primer-loader.js"
|
|
751
780
|
}
|
|
752
781
|
},
|
|
@@ -754,7 +783,7 @@
|
|
|
754
783
|
"kind": "js",
|
|
755
784
|
"name": "injectLightTheme",
|
|
756
785
|
"declaration": {
|
|
757
|
-
"name": "
|
|
786
|
+
"name": "ly",
|
|
758
787
|
"module": "dist/primer-loader.js"
|
|
759
788
|
}
|
|
760
789
|
},
|
|
@@ -762,7 +791,7 @@
|
|
|
762
791
|
"kind": "js",
|
|
763
792
|
"name": "injectLoaderStyles",
|
|
764
793
|
"declaration": {
|
|
765
|
-
"name": "
|
|
794
|
+
"name": "bd",
|
|
766
795
|
"module": "dist/primer-loader.js"
|
|
767
796
|
}
|
|
768
797
|
},
|
|
@@ -770,7 +799,7 @@
|
|
|
770
799
|
"kind": "js",
|
|
771
800
|
"name": "injectThemeStyles",
|
|
772
801
|
"declaration": {
|
|
773
|
-
"name": "
|
|
802
|
+
"name": "Cd",
|
|
774
803
|
"module": "dist/primer-loader.js"
|
|
775
804
|
}
|
|
776
805
|
},
|
|
@@ -778,41 +807,12 @@
|
|
|
778
807
|
"kind": "js",
|
|
779
808
|
"name": "loadPrimer",
|
|
780
809
|
"declaration": {
|
|
781
|
-
"name": "
|
|
810
|
+
"name": "SD",
|
|
782
811
|
"module": "dist/primer-loader.js"
|
|
783
812
|
}
|
|
784
813
|
}
|
|
785
814
|
]
|
|
786
815
|
},
|
|
787
|
-
{
|
|
788
|
-
"kind": "javascript-module",
|
|
789
|
-
"path": "e2e/utils.ts",
|
|
790
|
-
"declarations": [
|
|
791
|
-
{
|
|
792
|
-
"kind": "variable",
|
|
793
|
-
"name": "test",
|
|
794
|
-
"default": "chromaticTest"
|
|
795
|
-
}
|
|
796
|
-
],
|
|
797
|
-
"exports": [
|
|
798
|
-
{
|
|
799
|
-
"kind": "js",
|
|
800
|
-
"name": "expect",
|
|
801
|
-
"declaration": {
|
|
802
|
-
"name": "expect",
|
|
803
|
-
"package": "@chromatic-com/playwright"
|
|
804
|
-
}
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
"kind": "js",
|
|
808
|
-
"name": "test",
|
|
809
|
-
"declaration": {
|
|
810
|
-
"name": "test",
|
|
811
|
-
"module": "e2e/utils.ts"
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
]
|
|
815
|
-
},
|
|
816
816
|
{
|
|
817
817
|
"kind": "javascript-module",
|
|
818
818
|
"path": "src/consts.ts",
|
|
@@ -1666,7 +1666,198 @@
|
|
|
1666
1666
|
},
|
|
1667
1667
|
{
|
|
1668
1668
|
"kind": "javascript-module",
|
|
1669
|
-
"path": "
|
|
1669
|
+
"path": "e2e/mocks/billing-address.ts",
|
|
1670
|
+
"declarations": [
|
|
1671
|
+
{
|
|
1672
|
+
"kind": "variable",
|
|
1673
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1674
|
+
"type": {
|
|
1675
|
+
"text": "object"
|
|
1676
|
+
},
|
|
1677
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'BILLING_ADDRESS', options: { firstName: false, lastName: false, city: true, countryCode: true, postalCode: true, addressLine1: true, addressLine2: true, state: false, }, }, ], clientSession: { clientSessionId: '0ad5b471-5b80-436b-ad03-57850585e3fd', order: { orderId: '12577', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 1050, merchantAmount: 1050, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 950, quantity: 1, }, { itemId: 'primer-hoodie-blue', description: 'Primer Blue', amount: 50, quantity: 1, }, ], shipping: { amount: 50, methodId: 'Regular', methodName: 'Regular 50', methodDescription: 'Regular', }, }, customer: { customerId: 'Customer123', billingAddress: { firstName: 'testt', lastName: 'test', postalCode: '51662', addressLine1: 'aksjlkajl', addressLine2: 'jfjkahk', countryCode: 'PL', city: 'wroclaw', state: 'test', }, shippingAddress: {}, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: false, orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '75dc7012-785c-443a-80b1-0e1f88fd4fad', env: 'SANDBOX', paymentMethods: [ { id: '42e32c6e-7faa-4f5a-97d0-9c4f7b848ae1', type: 'APPLE_PAY', options: { merchantId: '75dc7012785c443a80b10e1f88fd4fad', merchantName: 'Primer', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
"kind": "variable",
|
|
1681
|
+
"name": "CARD_NUMBER",
|
|
1682
|
+
"type": {
|
|
1683
|
+
"text": "string"
|
|
1684
|
+
},
|
|
1685
|
+
"default": "'4242 4242 4242 4242'"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"kind": "function",
|
|
1689
|
+
"name": "mockBinData",
|
|
1690
|
+
"parameters": [
|
|
1691
|
+
{
|
|
1692
|
+
"name": "page",
|
|
1693
|
+
"type": {
|
|
1694
|
+
"text": "Page"
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
]
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"kind": "function",
|
|
1701
|
+
"name": "mockPaymentInstruments",
|
|
1702
|
+
"parameters": [
|
|
1703
|
+
{
|
|
1704
|
+
"name": "page",
|
|
1705
|
+
"type": {
|
|
1706
|
+
"text": "Page"
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
]
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"kind": "function",
|
|
1713
|
+
"name": "mockPayments",
|
|
1714
|
+
"parameters": [
|
|
1715
|
+
{
|
|
1716
|
+
"name": "page",
|
|
1717
|
+
"type": {
|
|
1718
|
+
"text": "Page"
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
]
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
"exports": [
|
|
1725
|
+
{
|
|
1726
|
+
"kind": "js",
|
|
1727
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1728
|
+
"declaration": {
|
|
1729
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1730
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"kind": "js",
|
|
1735
|
+
"name": "CARD_NUMBER",
|
|
1736
|
+
"declaration": {
|
|
1737
|
+
"name": "CARD_NUMBER",
|
|
1738
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"kind": "js",
|
|
1743
|
+
"name": "mockBinData",
|
|
1744
|
+
"declaration": {
|
|
1745
|
+
"name": "mockBinData",
|
|
1746
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1747
|
+
}
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"kind": "js",
|
|
1751
|
+
"name": "mockPaymentInstruments",
|
|
1752
|
+
"declaration": {
|
|
1753
|
+
"name": "mockPaymentInstruments",
|
|
1754
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"kind": "js",
|
|
1759
|
+
"name": "mockPayments",
|
|
1760
|
+
"declaration": {
|
|
1761
|
+
"name": "mockPayments",
|
|
1762
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
]
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"kind": "javascript-module",
|
|
1769
|
+
"path": "e2e/mocks/paypal.ts",
|
|
1770
|
+
"declarations": [
|
|
1771
|
+
{
|
|
1772
|
+
"kind": "variable",
|
|
1773
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1774
|
+
"type": {
|
|
1775
|
+
"text": "object"
|
|
1776
|
+
},
|
|
1777
|
+
"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: 'f2868f83-9f30-44d0-ae15-c67d6424badc', order: { orderId: '1257721757579', currencyCode: 'USD', countryCode: 'FR', totalOrderAmount: 5050, merchantAmount: 5050, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 4950, quantity: 1, }, { itemId: 'primer-hoodie-blue', description: 'Primer Blue', amount: 50, quantity: 1, }, ], shipping: { amount: 50, methodId: 'Regular', methodName: 'Regular 50', methodDescription: 'Regular', }, }, customer: { customerId: 'Customer1234367', billingAddress: { countryCode: 'FR', }, shippingAddress: { firstName: 'test', lastName: 'test', postalCode: '51786', addressLine1: 'test', addressLine2: 'test', countryCode: 'FR', city: 'test', }, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: false, orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '33c6e1fc-5199-43ed-a734-acd3deb27d81', env: 'SANDBOX', paymentMethods: [ { id: 'a04ecba7-cc9d-40de-96b9-7bd6a85b4e0d', type: 'GOOGLE_PAY', options: { merchantId: 'Chris', merchantName: 'Chisisthebest', 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: '1c2bb0fc-d8ed-4399-9154-2aba015ec50a', type: 'BRAINTREE_VENMO', options: { merchantId: 'primer', merchantAccountId: 'cde7e786-5324-5e41-9694-1aa394ed5be1', }, processorConfigId: '52bef1ae-fdfc-4cae-bb91-3fb9b81a7b5a', implementationType: 'WEB_REDIRECT', name: 'Venmo', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/VENMO/venmo-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/VENMO/venmo-logo-dark@3x.png', light: 'https://assets.sandbox.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: '2fc60a42-3729-40c4-bf52-4427e87db7eb', type: 'KLARNA', options: { merchantId: 'PK55462', merchantAccountId: 'fcd08555-1d1a-588f-b7d7-c3058b9fcd26', clientId: 'PK55462', }, processorConfigId: 'a38c95ba-8381-4bd7-b7c5-07f36c1f0a98', 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: '30294d7c-d820-470e-9d43-5b701cd925d8', type: 'PAYPAL', options: { merchantId: 'Default Application', merchantAccountId: '49989e77-764d-585f-b66c-3ea34551094b', clientId: 'AW0qJdOMrgWr2ste9V9pZ1njg3tilO-8P9-vkSfm9e0f82wlXfsAxjoNSCmu-xGfFd6vqNM9XAHB6vX_', intent: 'authorize', }, processorConfigId: 'bf904deb-a083-4168-883d-f55eb142e993', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo-dark@3x.png', }, backgroundColor: { colored: '#FFC439', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { 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: {}, }"
|
|
1778
|
+
}
|
|
1779
|
+
],
|
|
1780
|
+
"exports": [
|
|
1781
|
+
{
|
|
1782
|
+
"kind": "js",
|
|
1783
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1784
|
+
"declaration": {
|
|
1785
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1786
|
+
"module": "e2e/mocks/paypal.ts"
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
]
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"kind": "javascript-module",
|
|
1793
|
+
"path": "e2e/mocks/shared.ts",
|
|
1794
|
+
"declarations": [
|
|
1795
|
+
{
|
|
1796
|
+
"kind": "function",
|
|
1797
|
+
"name": "mockConfigurationCall",
|
|
1798
|
+
"parameters": [
|
|
1799
|
+
{
|
|
1800
|
+
"name": "page",
|
|
1801
|
+
"type": {
|
|
1802
|
+
"text": "Page"
|
|
1803
|
+
}
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
"name": "config",
|
|
1807
|
+
"type": {
|
|
1808
|
+
"text": "unknown"
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
]
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"kind": "function",
|
|
1815
|
+
"name": "mockDemoUrl",
|
|
1816
|
+
"parameters": [
|
|
1817
|
+
{
|
|
1818
|
+
"name": "primerCheckoutOptions",
|
|
1819
|
+
"optional": true,
|
|
1820
|
+
"type": {
|
|
1821
|
+
"text": "PrimerCheckoutOptions"
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
]
|
|
1825
|
+
}
|
|
1826
|
+
],
|
|
1827
|
+
"exports": [
|
|
1828
|
+
{
|
|
1829
|
+
"kind": "js",
|
|
1830
|
+
"name": "mockConfigurationCall",
|
|
1831
|
+
"declaration": {
|
|
1832
|
+
"name": "mockConfigurationCall",
|
|
1833
|
+
"module": "e2e/mocks/shared.ts"
|
|
1834
|
+
}
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
"kind": "js",
|
|
1838
|
+
"name": "mockDemoUrl",
|
|
1839
|
+
"declaration": {
|
|
1840
|
+
"name": "mockDemoUrl",
|
|
1841
|
+
"module": "e2e/mocks/shared.ts"
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
]
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"kind": "javascript-module",
|
|
1848
|
+
"path": "e2e/tests/card-form-billing-address.spec.ts",
|
|
1849
|
+
"declarations": [],
|
|
1850
|
+
"exports": []
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"kind": "javascript-module",
|
|
1854
|
+
"path": "e2e/tests/paypal.spec.ts",
|
|
1855
|
+
"declarations": [],
|
|
1856
|
+
"exports": []
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"kind": "javascript-module",
|
|
1860
|
+
"path": "dist/chunks/ar.E4O36EC6.js",
|
|
1670
1861
|
"declarations": [
|
|
1671
1862
|
{
|
|
1672
1863
|
"kind": "variable",
|
|
@@ -1680,14 +1871,14 @@
|
|
|
1680
1871
|
"name": "templates",
|
|
1681
1872
|
"declaration": {
|
|
1682
1873
|
"name": "o",
|
|
1683
|
-
"module": "dist/chunks/ar.
|
|
1874
|
+
"module": "dist/chunks/ar.E4O36EC6.js"
|
|
1684
1875
|
}
|
|
1685
1876
|
}
|
|
1686
1877
|
]
|
|
1687
1878
|
},
|
|
1688
1879
|
{
|
|
1689
1880
|
"kind": "javascript-module",
|
|
1690
|
-
"path": "dist/chunks/bg.
|
|
1881
|
+
"path": "dist/chunks/bg.PK6JKEHS.js",
|
|
1691
1882
|
"declarations": [
|
|
1692
1883
|
{
|
|
1693
1884
|
"kind": "variable",
|
|
@@ -1701,14 +1892,14 @@
|
|
|
1701
1892
|
"name": "templates",
|
|
1702
1893
|
"declaration": {
|
|
1703
1894
|
"name": "o",
|
|
1704
|
-
"module": "dist/chunks/bg.
|
|
1895
|
+
"module": "dist/chunks/bg.PK6JKEHS.js"
|
|
1705
1896
|
}
|
|
1706
1897
|
}
|
|
1707
1898
|
]
|
|
1708
1899
|
},
|
|
1709
1900
|
{
|
|
1710
1901
|
"kind": "javascript-module",
|
|
1711
|
-
"path": "dist/chunks/ca.
|
|
1902
|
+
"path": "dist/chunks/ca.OTUBI37X.js",
|
|
1712
1903
|
"declarations": [
|
|
1713
1904
|
{
|
|
1714
1905
|
"kind": "variable",
|
|
@@ -1722,14 +1913,14 @@
|
|
|
1722
1913
|
"name": "templates",
|
|
1723
1914
|
"declaration": {
|
|
1724
1915
|
"name": "i",
|
|
1725
|
-
"module": "dist/chunks/ca.
|
|
1916
|
+
"module": "dist/chunks/ca.OTUBI37X.js"
|
|
1726
1917
|
}
|
|
1727
1918
|
}
|
|
1728
1919
|
]
|
|
1729
1920
|
},
|
|
1730
1921
|
{
|
|
1731
1922
|
"kind": "javascript-module",
|
|
1732
|
-
"path": "dist/chunks/chunk.
|
|
1923
|
+
"path": "dist/chunks/chunk.MBXVVM2T.js",
|
|
1733
1924
|
"declarations": [
|
|
1734
1925
|
{
|
|
1735
1926
|
"kind": "variable",
|
|
@@ -1737,7 +1928,7 @@
|
|
|
1737
1928
|
"type": {
|
|
1738
1929
|
"text": "object"
|
|
1739
1930
|
},
|
|
1740
|
-
"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 {appName}\",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\",instantCreditTransfer:\"Instant Credit Transfer\",invalid:\"Invalid\",item_label_fallback:\"Item\",lastNameErrorRequired:\"Last name is required\",lastNameLabel:\"Last name\",lastNamePlaceholder:\"Last name\",loading:\"Loading...\",managePaymentMethods:\"Manage your payment methods\",multibancoFirstStep:\"Payment details for a Multibanco Reference will be created.\",multibancoPayWith:\"Pay with Multibanco\",multibancoPleaseMakePayment:\"Please make the payment at a Multibanco ATM, or through your home banking app.\",multibancoSecondStep:\"Go to a Multibanco ATM or login to your home banking app, then select \\u201CPay for Services\\u201D.\",multibancoThirdStep:\"Enter the Entity, Reference and Amount.\",navigateToPaymentMethods:\"Show other ways to pay\",newPaymentMethod:\"Add a new payment method\",noAdditionalFees:\"No additional fees\",otherWaysToPay:\"Other ways to pay\",pay_with_ach:\"Pay with ACH\",pay_with:\"Pay with\",pay:\"Pay\",payByCard:\"Pay by card\",payByImmediateTransfer:\"Pay by Immediate transfer\",payBySmartTransfer:\"Pay by Bank transfer\",payInInstallments:\"Pay in installments\",paymentMethodPopupLoadingScreenText:\"Hold on! {paymentMethodName} is loading.\",paymentMethodPopupOverlayBringBackThePaymentPage:\"Bring back the payment page\",paymentMethodPopupOverlayClose:\"Close\",paymentMethodPopupOverlayDescription:\"Having trouble viewing the {paymentMethodName} payment page? We'll help you find it!\",paymentMethodPopupOverlayNonFocusDescription:\"Open the {paymentMethodName} payment page to review your payment.\",paymentMethodTypeKlarna:\"Pay later\",paymentMethodTypeKlarnaAccount:\"Pay over time\",paymentMethodTypeKlarnaPaynow:\"Pay now\",payViaBankTransfer:\"Pay via bank transfer\",payWithAch:\"Pay with ACH\",payWithCard:\"Or pay with card\",payWithCrypto:\"Pay with crypto\",pleaseTransferFunds:\"Please Transfer funds to the provided DBS bank account using your Singapore based bank account via FAST (preferred), MEPS or GIRO.\",postalCode:\"Postal code\",postalCodeErrorRequired:\"Postal code is required\",postalCodeLabel:\"Postal code\",postalCodePlaceholder:\"90210\",previouslyUsed:\"Previously used:\",qrCode:\"QR Code\",reference:\"Reference\",required:\"Required\",retry_button:\"Retry\",savedPaymentMethodsEmpty:\"Enter your card details below to add a new payment method\",savePaymentMethod:\"Save payment method\",scanToPay:\"Scan to pay or take a screenshot\",sepaCreditTransfer:\"SEPA Credit Transfer\",sepaDirectDebit:\"SEPA Direct Debit\",session_complete_payment_cancellation_title:\"Payment cancelled\",session_complete_payment_failure_title:\"Payment failed\",session_complete_payment_success_title:\"Payment authorized\",setUpDirectDebit:\"Set up Direct Debit\",shipping_address_unsupported_error:\"We do not ship to this address\",shipping:\"Shipping\",subtotal:\"Subtotal\",showPaymentDetails:\"Show payment details\",sixDigitCodeErrorNumeric:\"Six digit code should only contain numbers\",sixDigitCodeErrorRequired:\"Six digit code is required\",sixDigitCodeErrorTooShort:\"Code is too short\",sixDigitCodeLabel:\"Six digit code\",sixDigitCodePlaceholder:\"123456\",something_went_wrong_error:\"Something went wrong. Please try again.\",stateErrorRequired:\"State, Region or County is required\",stateLabel:\"State / Region / County\",statePlaceholder:\"State / Region / County\",street:\"Street\",streetPlaceholder:\"My street\",stripe_ach_mandate_accept_button:\"Accept\",stripe_ach_mandate_cancel_payment_button:\"Cancel payment\",stripe_ach_mandate_not_accepted_description:\"Mandate was not accepted\",stripe_ach_mandate_template_web:`By clicking Accept, you authorize {merchantName} to debit the selected bank account for any amount owed for charges arising from your use of {merchantName}\\u2019s services and/or purchase of products from {merchantName}, pursuant to {merchantName}\\u2019s website and terms, until this authorization is revoked. You may amend or cancel this authorization at any time by providing notice to {merchantName} with 30 (thirty) days notice. If you use {merchantName}\\u2019s services or purchase additional products periodically pursuant to {merchantName}\\u2019s terms, you authorize {merchantName} to debit your bank account periodically. Payments that fall outside the regular debits authorized above will only be debited after your authorization is obtained.`,stripe_ach_payment_request_cancelled:\"Please try again or select another bank\",stripe_ach_payment_request_completed_successfully:\"You have now authorized your bank account to be debited. You will be notified via email once the payment has been collected successfully.\",stripe_ach_user_details_collection_continue_button:\"Continue\",stripe_ach_user_details_collection_data_usage_label:\"We'll only use this to keep you updated about your payment\",stripe_ach_user_details_collection_email_address_label:\"Email address\",stripe_ach_user_details_collection_first_name_label:\"First name\",stripe_ach_user_details_collection_invalid_email_address:\"The email address you entered doesn't look like a real email address. Please make sure it includes an '@' and a domain (like '@example.com').\",stripe_ach_user_details_collection_invalid_first_name:\"Please enter a valid first name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_invalid_last_name:\"Please enter a valid last name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_last_name_label:\"Last name\",stripe_ach_user_details_collection_subtitle_label:\"Your personal details\",suburb:\"Suburb\",suburbPlaceholder:\"My suburb\",telephoneNumberErrorRequired:\"Phone number is required\",telephoneNumberErrorTooShort:\"Phone number is too short\",telephoneNumberLabel:\"Phone number\",telephoneNumberPlaceholder:\"123xxxxxx\",timeOnDate:\"{time} on {date}\",tokenizationError:\"Your payment could not be processed. Please try another payment method.\",unsupportedCardType:\"Unsupported card type\",uploadScreenshot:\"Upload the screenshot in your banking app\",yourBankDetails:\"Your bank details\"}"
|
|
1931
|
+
"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\",closeErrorMessage:\"Close error message\",completeYourPayment:\"Complete your payment\",completeYourPaymentInTheApp:\"Complete your payment in {appName}\",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\",deleting:\"Deleting\",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\",instantCreditTransfer:\"Instant Credit Transfer\",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\",payment_processing_error:\"Your payment could not be processed. Please try again.\",payViaBankTransfer:\"Pay via bank transfer\",payWithAch:\"Pay with ACH\",payWithCard:\"Or pay with card\",payWithCrypto:\"Pay with crypto\",pleaseTransferFunds:\"Please Transfer funds to the provided DBS bank account using your Singapore based bank account via FAST (preferred), MEPS or GIRO.\",postalCode:\"Postal code\",postalCodeErrorRequired:\"Postal code is required\",postalCodeLabel:\"Postal code\",postalCodePlaceholder:\"90210\",previouslyUsed:\"Previously used:\",qrCode:\"QR Code\",reference:\"Reference\",required:\"Required\",retry_button:\"Retry\",savedPaymentMethodsEmpty:\"Enter your card details below to add a new payment method\",savePaymentMethod:\"Save payment method\",scanToPay:\"Scan to pay or take a screenshot\",sepaCreditTransfer:\"SEPA Credit Transfer\",sepaDirectDebit:\"SEPA Direct Debit\",session_complete_payment_cancellation_title:\"Payment cancelled\",session_complete_payment_failure_title:\"Payment failed\",session_complete_payment_success_title:\"Payment authorized\",setUpDirectDebit:\"Set up Direct Debit\",shipping_address_unsupported_error:\"We do not ship to this address\",shipping:\"Shipping\",subtotal:\"Subtotal\",showPaymentDetails:\"Show payment details\",sixDigitCodeErrorNumeric:\"Six digit code should only contain numbers\",sixDigitCodeErrorRequired:\"Six digit code is required\",sixDigitCodeErrorTooShort:\"Code is too short\",sixDigitCodeLabel:\"Six digit code\",sixDigitCodePlaceholder:\"123456\",something_went_wrong_error:\"Something went wrong. Please try again.\",stateErrorRequired:\"State, Region or County is required\",stateLabel:\"State / Region / County\",statePlaceholder:\"State / Region / County\",street:\"Street\",streetPlaceholder:\"My street\",stripe_ach_mandate_accept_button:\"Accept\",stripe_ach_mandate_cancel_payment_button:\"Cancel payment\",stripe_ach_mandate_not_accepted_description:\"Mandate was not accepted\",stripe_ach_mandate_template_web:`By clicking Accept, you authorize {merchantName} to debit the selected bank account for any amount owed for charges arising from your use of {merchantName}\\u2019s services and/or purchase of products from {merchantName}, pursuant to {merchantName}\\u2019s website and terms, until this authorization is revoked. You may amend or cancel this authorization at any time by providing notice to {merchantName} with 30 (thirty) days notice. If you use {merchantName}\\u2019s services or purchase additional products periodically pursuant to {merchantName}\\u2019s terms, you authorize {merchantName} to debit your bank account periodically. Payments that fall outside the regular debits authorized above will only be debited after your authorization is obtained.`,stripe_ach_payment_request_cancelled:\"Please try again or select another bank\",stripe_ach_payment_request_completed_successfully:\"You have now authorized your bank account to be debited. You will be notified via email once the payment has been collected successfully.\",stripe_ach_user_details_collection_continue_button:\"Continue\",stripe_ach_user_details_collection_data_usage_label:\"We'll only use this to keep you updated about your payment\",stripe_ach_user_details_collection_email_address_label:\"Email address\",stripe_ach_user_details_collection_first_name_label:\"First name\",stripe_ach_user_details_collection_invalid_email_address:\"The email address you entered doesn't look like a real email address. Please make sure it includes an '@' and a domain (like '@example.com').\",stripe_ach_user_details_collection_invalid_first_name:\"Please enter a valid first name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_invalid_last_name:\"Please enter a valid last name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_last_name_label:\"Last name\",stripe_ach_user_details_collection_subtitle_label:\"Your personal details\",suburb:\"Suburb\",suburbPlaceholder:\"My suburb\",telephoneNumberErrorRequired:\"Phone number is required\",telephoneNumberErrorTooShort:\"Phone number is too short\",telephoneNumberLabel:\"Phone number\",telephoneNumberPlaceholder:\"123xxxxxx\",timeOnDate:\"{time} on {date}\",tokenizationError:\"Your payment could not be processed. Please try another payment method.\",unsupportedCardType:\"Unsupported card type\",uploadScreenshot:\"Upload the screenshot in your banking app\",vaultCvvRecapturePrompt:\"Input the card CVV for a secure payment\",yourBankDetails:\"Your bank details\"}"
|
|
1741
1932
|
}
|
|
1742
1933
|
],
|
|
1743
1934
|
"exports": [
|
|
@@ -1746,7 +1937,7 @@
|
|
|
1746
1937
|
"name": "a",
|
|
1747
1938
|
"declaration": {
|
|
1748
1939
|
"name": "t",
|
|
1749
|
-
"module": "dist/chunks/chunk.
|
|
1940
|
+
"module": "dist/chunks/chunk.MBXVVM2T.js"
|
|
1750
1941
|
}
|
|
1751
1942
|
}
|
|
1752
1943
|
]
|
|
@@ -1875,7 +2066,7 @@
|
|
|
1875
2066
|
},
|
|
1876
2067
|
{
|
|
1877
2068
|
"kind": "javascript-module",
|
|
1878
|
-
"path": "dist/chunks/cs.
|
|
2069
|
+
"path": "dist/chunks/cs.THPV6MYZ.js",
|
|
1879
2070
|
"declarations": [
|
|
1880
2071
|
{
|
|
1881
2072
|
"kind": "variable",
|
|
@@ -1889,14 +2080,14 @@
|
|
|
1889
2080
|
"name": "templates",
|
|
1890
2081
|
"declaration": {
|
|
1891
2082
|
"name": "n",
|
|
1892
|
-
"module": "dist/chunks/cs.
|
|
2083
|
+
"module": "dist/chunks/cs.THPV6MYZ.js"
|
|
1893
2084
|
}
|
|
1894
2085
|
}
|
|
1895
2086
|
]
|
|
1896
2087
|
},
|
|
1897
2088
|
{
|
|
1898
2089
|
"kind": "javascript-module",
|
|
1899
|
-
"path": "dist/chunks/da.
|
|
2090
|
+
"path": "dist/chunks/da.T6YM33IA.js",
|
|
1900
2091
|
"declarations": [
|
|
1901
2092
|
{
|
|
1902
2093
|
"kind": "variable",
|
|
@@ -1910,14 +2101,14 @@
|
|
|
1910
2101
|
"name": "templates",
|
|
1911
2102
|
"declaration": {
|
|
1912
2103
|
"name": "a",
|
|
1913
|
-
"module": "dist/chunks/da.
|
|
2104
|
+
"module": "dist/chunks/da.T6YM33IA.js"
|
|
1914
2105
|
}
|
|
1915
2106
|
}
|
|
1916
2107
|
]
|
|
1917
2108
|
},
|
|
1918
2109
|
{
|
|
1919
2110
|
"kind": "javascript-module",
|
|
1920
|
-
"path": "dist/chunks/de.
|
|
2111
|
+
"path": "dist/chunks/de.5OGX2NED.js",
|
|
1921
2112
|
"declarations": [
|
|
1922
2113
|
{
|
|
1923
2114
|
"kind": "variable",
|
|
@@ -1931,14 +2122,14 @@
|
|
|
1931
2122
|
"name": "templates",
|
|
1932
2123
|
"declaration": {
|
|
1933
2124
|
"name": "t",
|
|
1934
|
-
"module": "dist/chunks/de.
|
|
2125
|
+
"module": "dist/chunks/de.5OGX2NED.js"
|
|
1935
2126
|
}
|
|
1936
2127
|
}
|
|
1937
2128
|
]
|
|
1938
2129
|
},
|
|
1939
2130
|
{
|
|
1940
2131
|
"kind": "javascript-module",
|
|
1941
|
-
"path": "dist/chunks/el.
|
|
2132
|
+
"path": "dist/chunks/el.YRAV7ELP.js",
|
|
1942
2133
|
"declarations": [
|
|
1943
2134
|
{
|
|
1944
2135
|
"kind": "variable",
|
|
@@ -1952,14 +2143,14 @@
|
|
|
1952
2143
|
"name": "templates",
|
|
1953
2144
|
"declaration": {
|
|
1954
2145
|
"name": "o",
|
|
1955
|
-
"module": "dist/chunks/el.
|
|
2146
|
+
"module": "dist/chunks/el.YRAV7ELP.js"
|
|
1956
2147
|
}
|
|
1957
2148
|
}
|
|
1958
2149
|
]
|
|
1959
2150
|
},
|
|
1960
2151
|
{
|
|
1961
2152
|
"kind": "javascript-module",
|
|
1962
|
-
"path": "dist/chunks/en-GB.
|
|
2153
|
+
"path": "dist/chunks/en-GB.6IEVRFTK.js",
|
|
1963
2154
|
"declarations": [
|
|
1964
2155
|
{
|
|
1965
2156
|
"kind": "variable",
|
|
@@ -1973,14 +2164,14 @@
|
|
|
1973
2164
|
"name": "templates",
|
|
1974
2165
|
"declaration": {
|
|
1975
2166
|
"name": "o",
|
|
1976
|
-
"module": "dist/chunks/en-GB.
|
|
2167
|
+
"module": "dist/chunks/en-GB.6IEVRFTK.js"
|
|
1977
2168
|
}
|
|
1978
2169
|
}
|
|
1979
2170
|
]
|
|
1980
2171
|
},
|
|
1981
2172
|
{
|
|
1982
2173
|
"kind": "javascript-module",
|
|
1983
|
-
"path": "dist/chunks/en.
|
|
2174
|
+
"path": "dist/chunks/en.OBBZZ45H.js",
|
|
1984
2175
|
"declarations": [
|
|
1985
2176
|
{
|
|
1986
2177
|
"kind": "variable",
|
|
@@ -1994,14 +2185,14 @@
|
|
|
1994
2185
|
"name": "templates",
|
|
1995
2186
|
"declaration": {
|
|
1996
2187
|
"name": "o",
|
|
1997
|
-
"module": "dist/chunks/en.
|
|
2188
|
+
"module": "dist/chunks/en.OBBZZ45H.js"
|
|
1998
2189
|
}
|
|
1999
2190
|
}
|
|
2000
2191
|
]
|
|
2001
2192
|
},
|
|
2002
2193
|
{
|
|
2003
2194
|
"kind": "javascript-module",
|
|
2004
|
-
"path": "dist/chunks/es-AR.
|
|
2195
|
+
"path": "dist/chunks/es-AR.KUNVD6SX.js",
|
|
2005
2196
|
"declarations": [
|
|
2006
2197
|
{
|
|
2007
2198
|
"kind": "variable",
|
|
@@ -2015,14 +2206,14 @@
|
|
|
2015
2206
|
"name": "templates",
|
|
2016
2207
|
"declaration": {
|
|
2017
2208
|
"name": "i",
|
|
2018
|
-
"module": "dist/chunks/es-AR.
|
|
2209
|
+
"module": "dist/chunks/es-AR.KUNVD6SX.js"
|
|
2019
2210
|
}
|
|
2020
2211
|
}
|
|
2021
2212
|
]
|
|
2022
2213
|
},
|
|
2023
2214
|
{
|
|
2024
2215
|
"kind": "javascript-module",
|
|
2025
|
-
"path": "dist/chunks/es-MX.
|
|
2216
|
+
"path": "dist/chunks/es-MX.YIGVIDM6.js",
|
|
2026
2217
|
"declarations": [
|
|
2027
2218
|
{
|
|
2028
2219
|
"kind": "variable",
|
|
@@ -2036,14 +2227,14 @@
|
|
|
2036
2227
|
"name": "templates",
|
|
2037
2228
|
"declaration": {
|
|
2038
2229
|
"name": "t",
|
|
2039
|
-
"module": "dist/chunks/es-MX.
|
|
2230
|
+
"module": "dist/chunks/es-MX.YIGVIDM6.js"
|
|
2040
2231
|
}
|
|
2041
2232
|
}
|
|
2042
2233
|
]
|
|
2043
2234
|
},
|
|
2044
2235
|
{
|
|
2045
2236
|
"kind": "javascript-module",
|
|
2046
|
-
"path": "dist/chunks/es.
|
|
2237
|
+
"path": "dist/chunks/es.CJZT56YE.js",
|
|
2047
2238
|
"declarations": [
|
|
2048
2239
|
{
|
|
2049
2240
|
"kind": "variable",
|
|
@@ -2057,14 +2248,14 @@
|
|
|
2057
2248
|
"name": "templates",
|
|
2058
2249
|
"declaration": {
|
|
2059
2250
|
"name": "i",
|
|
2060
|
-
"module": "dist/chunks/es.
|
|
2251
|
+
"module": "dist/chunks/es.CJZT56YE.js"
|
|
2061
2252
|
}
|
|
2062
2253
|
}
|
|
2063
2254
|
]
|
|
2064
2255
|
},
|
|
2065
2256
|
{
|
|
2066
2257
|
"kind": "javascript-module",
|
|
2067
|
-
"path": "dist/chunks/et-EE.
|
|
2258
|
+
"path": "dist/chunks/et-EE.HWMKJWNX.js",
|
|
2068
2259
|
"declarations": [
|
|
2069
2260
|
{
|
|
2070
2261
|
"kind": "variable",
|
|
@@ -2078,14 +2269,14 @@
|
|
|
2078
2269
|
"name": "templates",
|
|
2079
2270
|
"declaration": {
|
|
2080
2271
|
"name": "r",
|
|
2081
|
-
"module": "dist/chunks/et-EE.
|
|
2272
|
+
"module": "dist/chunks/et-EE.HWMKJWNX.js"
|
|
2082
2273
|
}
|
|
2083
2274
|
}
|
|
2084
2275
|
]
|
|
2085
2276
|
},
|
|
2086
2277
|
{
|
|
2087
2278
|
"kind": "javascript-module",
|
|
2088
|
-
"path": "dist/chunks/fi-FI.
|
|
2279
|
+
"path": "dist/chunks/fi-FI.7NJH7P3A.js",
|
|
2089
2280
|
"declarations": [
|
|
2090
2281
|
{
|
|
2091
2282
|
"kind": "variable",
|
|
@@ -2099,14 +2290,14 @@
|
|
|
2099
2290
|
"name": "templates",
|
|
2100
2291
|
"declaration": {
|
|
2101
2292
|
"name": "n",
|
|
2102
|
-
"module": "dist/chunks/fi-FI.
|
|
2293
|
+
"module": "dist/chunks/fi-FI.7NJH7P3A.js"
|
|
2103
2294
|
}
|
|
2104
2295
|
}
|
|
2105
2296
|
]
|
|
2106
2297
|
},
|
|
2107
2298
|
{
|
|
2108
2299
|
"kind": "javascript-module",
|
|
2109
|
-
"path": "dist/chunks/fr.
|
|
2300
|
+
"path": "dist/chunks/fr.KRF4Y57O.js",
|
|
2110
2301
|
"declarations": [
|
|
2111
2302
|
{
|
|
2112
2303
|
"kind": "variable",
|
|
@@ -2120,14 +2311,14 @@
|
|
|
2120
2311
|
"name": "templates",
|
|
2121
2312
|
"declaration": {
|
|
2122
2313
|
"name": "i",
|
|
2123
|
-
"module": "dist/chunks/fr.
|
|
2314
|
+
"module": "dist/chunks/fr.KRF4Y57O.js"
|
|
2124
2315
|
}
|
|
2125
2316
|
}
|
|
2126
2317
|
]
|
|
2127
2318
|
},
|
|
2128
2319
|
{
|
|
2129
2320
|
"kind": "javascript-module",
|
|
2130
|
-
"path": "dist/chunks/he.
|
|
2321
|
+
"path": "dist/chunks/he.XI3WARES.js",
|
|
2131
2322
|
"declarations": [
|
|
2132
2323
|
{
|
|
2133
2324
|
"kind": "variable",
|
|
@@ -2141,14 +2332,14 @@
|
|
|
2141
2332
|
"name": "templates",
|
|
2142
2333
|
"declaration": {
|
|
2143
2334
|
"name": "o",
|
|
2144
|
-
"module": "dist/chunks/he.
|
|
2335
|
+
"module": "dist/chunks/he.XI3WARES.js"
|
|
2145
2336
|
}
|
|
2146
2337
|
}
|
|
2147
2338
|
]
|
|
2148
2339
|
},
|
|
2149
2340
|
{
|
|
2150
2341
|
"kind": "javascript-module",
|
|
2151
|
-
"path": "dist/chunks/hr.
|
|
2342
|
+
"path": "dist/chunks/hr.XYKILVHU.js",
|
|
2152
2343
|
"declarations": [
|
|
2153
2344
|
{
|
|
2154
2345
|
"kind": "variable",
|
|
@@ -2162,14 +2353,14 @@
|
|
|
2162
2353
|
"name": "templates",
|
|
2163
2354
|
"declaration": {
|
|
2164
2355
|
"name": "t",
|
|
2165
|
-
"module": "dist/chunks/hr.
|
|
2356
|
+
"module": "dist/chunks/hr.XYKILVHU.js"
|
|
2166
2357
|
}
|
|
2167
2358
|
}
|
|
2168
2359
|
]
|
|
2169
2360
|
},
|
|
2170
2361
|
{
|
|
2171
2362
|
"kind": "javascript-module",
|
|
2172
|
-
"path": "dist/chunks/hu.
|
|
2363
|
+
"path": "dist/chunks/hu.UDGJJAFE.js",
|
|
2173
2364
|
"declarations": [
|
|
2174
2365
|
{
|
|
2175
2366
|
"kind": "variable",
|
|
@@ -2183,14 +2374,14 @@
|
|
|
2183
2374
|
"name": "templates",
|
|
2184
2375
|
"declaration": {
|
|
2185
2376
|
"name": "s",
|
|
2186
|
-
"module": "dist/chunks/hu.
|
|
2377
|
+
"module": "dist/chunks/hu.UDGJJAFE.js"
|
|
2187
2378
|
}
|
|
2188
2379
|
}
|
|
2189
2380
|
]
|
|
2190
2381
|
},
|
|
2191
2382
|
{
|
|
2192
2383
|
"kind": "javascript-module",
|
|
2193
|
-
"path": "dist/chunks/id.
|
|
2384
|
+
"path": "dist/chunks/id.7ZN2WKC2.js",
|
|
2194
2385
|
"declarations": [
|
|
2195
2386
|
{
|
|
2196
2387
|
"kind": "variable",
|
|
@@ -2204,14 +2395,14 @@
|
|
|
2204
2395
|
"name": "templates",
|
|
2205
2396
|
"declaration": {
|
|
2206
2397
|
"name": "r",
|
|
2207
|
-
"module": "dist/chunks/id.
|
|
2398
|
+
"module": "dist/chunks/id.7ZN2WKC2.js"
|
|
2208
2399
|
}
|
|
2209
2400
|
}
|
|
2210
2401
|
]
|
|
2211
2402
|
},
|
|
2212
2403
|
{
|
|
2213
2404
|
"kind": "javascript-module",
|
|
2214
|
-
"path": "dist/chunks/it.
|
|
2405
|
+
"path": "dist/chunks/it.VOYA3KT5.js",
|
|
2215
2406
|
"declarations": [
|
|
2216
2407
|
{
|
|
2217
2408
|
"kind": "variable",
|
|
@@ -2225,14 +2416,14 @@
|
|
|
2225
2416
|
"name": "templates",
|
|
2226
2417
|
"declaration": {
|
|
2227
2418
|
"name": "r",
|
|
2228
|
-
"module": "dist/chunks/it.
|
|
2419
|
+
"module": "dist/chunks/it.VOYA3KT5.js"
|
|
2229
2420
|
}
|
|
2230
2421
|
}
|
|
2231
2422
|
]
|
|
2232
2423
|
},
|
|
2233
2424
|
{
|
|
2234
2425
|
"kind": "javascript-module",
|
|
2235
|
-
"path": "dist/chunks/ja.
|
|
2426
|
+
"path": "dist/chunks/ja.POQ2E2L3.js",
|
|
2236
2427
|
"declarations": [
|
|
2237
2428
|
{
|
|
2238
2429
|
"kind": "variable",
|
|
@@ -2246,14 +2437,14 @@
|
|
|
2246
2437
|
"name": "templates",
|
|
2247
2438
|
"declaration": {
|
|
2248
2439
|
"name": "o",
|
|
2249
|
-
"module": "dist/chunks/ja.
|
|
2440
|
+
"module": "dist/chunks/ja.POQ2E2L3.js"
|
|
2250
2441
|
}
|
|
2251
2442
|
}
|
|
2252
2443
|
]
|
|
2253
2444
|
},
|
|
2254
2445
|
{
|
|
2255
2446
|
"kind": "javascript-module",
|
|
2256
|
-
"path": "dist/chunks/ko.
|
|
2447
|
+
"path": "dist/chunks/ko.MSGGDR35.js",
|
|
2257
2448
|
"declarations": [
|
|
2258
2449
|
{
|
|
2259
2450
|
"kind": "variable",
|
|
@@ -2267,14 +2458,14 @@
|
|
|
2267
2458
|
"name": "templates",
|
|
2268
2459
|
"declaration": {
|
|
2269
2460
|
"name": "o",
|
|
2270
|
-
"module": "dist/chunks/ko.
|
|
2461
|
+
"module": "dist/chunks/ko.MSGGDR35.js"
|
|
2271
2462
|
}
|
|
2272
2463
|
}
|
|
2273
2464
|
]
|
|
2274
2465
|
},
|
|
2275
2466
|
{
|
|
2276
2467
|
"kind": "javascript-module",
|
|
2277
|
-
"path": "dist/chunks/lt-LT.
|
|
2468
|
+
"path": "dist/chunks/lt-LT.QPDWC7EL.js",
|
|
2278
2469
|
"declarations": [
|
|
2279
2470
|
{
|
|
2280
2471
|
"kind": "variable",
|
|
@@ -2288,14 +2479,14 @@
|
|
|
2288
2479
|
"name": "templates",
|
|
2289
2480
|
"declaration": {
|
|
2290
2481
|
"name": "t",
|
|
2291
|
-
"module": "dist/chunks/lt-LT.
|
|
2482
|
+
"module": "dist/chunks/lt-LT.QPDWC7EL.js"
|
|
2292
2483
|
}
|
|
2293
2484
|
}
|
|
2294
2485
|
]
|
|
2295
2486
|
},
|
|
2296
2487
|
{
|
|
2297
2488
|
"kind": "javascript-module",
|
|
2298
|
-
"path": "dist/chunks/lt.
|
|
2489
|
+
"path": "dist/chunks/lt.PGXRTZVX.js",
|
|
2299
2490
|
"declarations": [
|
|
2300
2491
|
{
|
|
2301
2492
|
"kind": "variable",
|
|
@@ -2309,14 +2500,14 @@
|
|
|
2309
2500
|
"name": "templates",
|
|
2310
2501
|
"declaration": {
|
|
2311
2502
|
"name": "t",
|
|
2312
|
-
"module": "dist/chunks/lt.
|
|
2503
|
+
"module": "dist/chunks/lt.PGXRTZVX.js"
|
|
2313
2504
|
}
|
|
2314
2505
|
}
|
|
2315
2506
|
]
|
|
2316
2507
|
},
|
|
2317
2508
|
{
|
|
2318
2509
|
"kind": "javascript-module",
|
|
2319
|
-
"path": "dist/chunks/lv-LV.
|
|
2510
|
+
"path": "dist/chunks/lv-LV.MPIETXH7.js",
|
|
2320
2511
|
"declarations": [
|
|
2321
2512
|
{
|
|
2322
2513
|
"kind": "variable",
|
|
@@ -2330,14 +2521,14 @@
|
|
|
2330
2521
|
"name": "templates",
|
|
2331
2522
|
"declaration": {
|
|
2332
2523
|
"name": "t",
|
|
2333
|
-
"module": "dist/chunks/lv-LV.
|
|
2524
|
+
"module": "dist/chunks/lv-LV.MPIETXH7.js"
|
|
2334
2525
|
}
|
|
2335
2526
|
}
|
|
2336
2527
|
]
|
|
2337
2528
|
},
|
|
2338
2529
|
{
|
|
2339
2530
|
"kind": "javascript-module",
|
|
2340
|
-
"path": "dist/chunks/lv.
|
|
2531
|
+
"path": "dist/chunks/lv.K76XV5XK.js",
|
|
2341
2532
|
"declarations": [
|
|
2342
2533
|
{
|
|
2343
2534
|
"kind": "variable",
|
|
@@ -2351,14 +2542,14 @@
|
|
|
2351
2542
|
"name": "templates",
|
|
2352
2543
|
"declaration": {
|
|
2353
2544
|
"name": "t",
|
|
2354
|
-
"module": "dist/chunks/lv.
|
|
2545
|
+
"module": "dist/chunks/lv.K76XV5XK.js"
|
|
2355
2546
|
}
|
|
2356
2547
|
}
|
|
2357
2548
|
]
|
|
2358
2549
|
},
|
|
2359
2550
|
{
|
|
2360
2551
|
"kind": "javascript-module",
|
|
2361
|
-
"path": "dist/chunks/ms.
|
|
2552
|
+
"path": "dist/chunks/ms.TLDQ5MRG.js",
|
|
2362
2553
|
"declarations": [
|
|
2363
2554
|
{
|
|
2364
2555
|
"kind": "variable",
|
|
@@ -2372,14 +2563,14 @@
|
|
|
2372
2563
|
"name": "templates",
|
|
2373
2564
|
"declaration": {
|
|
2374
2565
|
"name": "i",
|
|
2375
|
-
"module": "dist/chunks/ms.
|
|
2566
|
+
"module": "dist/chunks/ms.TLDQ5MRG.js"
|
|
2376
2567
|
}
|
|
2377
2568
|
}
|
|
2378
2569
|
]
|
|
2379
2570
|
},
|
|
2380
2571
|
{
|
|
2381
2572
|
"kind": "javascript-module",
|
|
2382
|
-
"path": "dist/chunks/nb.
|
|
2573
|
+
"path": "dist/chunks/nb.5C4GCSHD.js",
|
|
2383
2574
|
"declarations": [
|
|
2384
2575
|
{
|
|
2385
2576
|
"kind": "variable",
|
|
@@ -2393,14 +2584,14 @@
|
|
|
2393
2584
|
"name": "templates",
|
|
2394
2585
|
"declaration": {
|
|
2395
2586
|
"name": "a",
|
|
2396
|
-
"module": "dist/chunks/nb.
|
|
2587
|
+
"module": "dist/chunks/nb.5C4GCSHD.js"
|
|
2397
2588
|
}
|
|
2398
2589
|
}
|
|
2399
2590
|
]
|
|
2400
2591
|
},
|
|
2401
2592
|
{
|
|
2402
2593
|
"kind": "javascript-module",
|
|
2403
|
-
"path": "dist/chunks/nl.
|
|
2594
|
+
"path": "dist/chunks/nl.MPB5NUZQ.js",
|
|
2404
2595
|
"declarations": [
|
|
2405
2596
|
{
|
|
2406
2597
|
"kind": "variable",
|
|
@@ -2414,14 +2605,14 @@
|
|
|
2414
2605
|
"name": "templates",
|
|
2415
2606
|
"declaration": {
|
|
2416
2607
|
"name": "n",
|
|
2417
|
-
"module": "dist/chunks/nl.
|
|
2608
|
+
"module": "dist/chunks/nl.MPB5NUZQ.js"
|
|
2418
2609
|
}
|
|
2419
2610
|
}
|
|
2420
2611
|
]
|
|
2421
2612
|
},
|
|
2422
2613
|
{
|
|
2423
2614
|
"kind": "javascript-module",
|
|
2424
|
-
"path": "dist/chunks/nl_NL.
|
|
2615
|
+
"path": "dist/chunks/nl_NL.MEGWQA4L.js",
|
|
2425
2616
|
"declarations": [
|
|
2426
2617
|
{
|
|
2427
2618
|
"kind": "variable",
|
|
@@ -2435,14 +2626,14 @@
|
|
|
2435
2626
|
"name": "templates",
|
|
2436
2627
|
"declaration": {
|
|
2437
2628
|
"name": "n",
|
|
2438
|
-
"module": "dist/chunks/nl_NL.
|
|
2629
|
+
"module": "dist/chunks/nl_NL.MEGWQA4L.js"
|
|
2439
2630
|
}
|
|
2440
2631
|
}
|
|
2441
2632
|
]
|
|
2442
2633
|
},
|
|
2443
2634
|
{
|
|
2444
2635
|
"kind": "javascript-module",
|
|
2445
|
-
"path": "dist/chunks/pl.
|
|
2636
|
+
"path": "dist/chunks/pl.G5NUFTFJ.js",
|
|
2446
2637
|
"declarations": [
|
|
2447
2638
|
{
|
|
2448
2639
|
"kind": "variable",
|
|
@@ -2456,14 +2647,14 @@
|
|
|
2456
2647
|
"name": "templates",
|
|
2457
2648
|
"declaration": {
|
|
2458
2649
|
"name": "i",
|
|
2459
|
-
"module": "dist/chunks/pl.
|
|
2650
|
+
"module": "dist/chunks/pl.G5NUFTFJ.js"
|
|
2460
2651
|
}
|
|
2461
2652
|
}
|
|
2462
2653
|
]
|
|
2463
2654
|
},
|
|
2464
2655
|
{
|
|
2465
2656
|
"kind": "javascript-module",
|
|
2466
|
-
"path": "dist/chunks/pt-BR.
|
|
2657
|
+
"path": "dist/chunks/pt-BR.YUAN3GE5.js",
|
|
2467
2658
|
"declarations": [
|
|
2468
2659
|
{
|
|
2469
2660
|
"kind": "variable",
|
|
@@ -2477,14 +2668,14 @@
|
|
|
2477
2668
|
"name": "templates",
|
|
2478
2669
|
"declaration": {
|
|
2479
2670
|
"name": "t",
|
|
2480
|
-
"module": "dist/chunks/pt-BR.
|
|
2671
|
+
"module": "dist/chunks/pt-BR.YUAN3GE5.js"
|
|
2481
2672
|
}
|
|
2482
2673
|
}
|
|
2483
2674
|
]
|
|
2484
2675
|
},
|
|
2485
2676
|
{
|
|
2486
2677
|
"kind": "javascript-module",
|
|
2487
|
-
"path": "dist/chunks/pt.
|
|
2678
|
+
"path": "dist/chunks/pt.U7KK23LM.js",
|
|
2488
2679
|
"declarations": [
|
|
2489
2680
|
{
|
|
2490
2681
|
"kind": "variable",
|
|
@@ -2498,14 +2689,14 @@
|
|
|
2498
2689
|
"name": "templates",
|
|
2499
2690
|
"declaration": {
|
|
2500
2691
|
"name": "t",
|
|
2501
|
-
"module": "dist/chunks/pt.
|
|
2692
|
+
"module": "dist/chunks/pt.U7KK23LM.js"
|
|
2502
2693
|
}
|
|
2503
2694
|
}
|
|
2504
2695
|
]
|
|
2505
2696
|
},
|
|
2506
2697
|
{
|
|
2507
2698
|
"kind": "javascript-module",
|
|
2508
|
-
"path": "dist/chunks/ro.
|
|
2699
|
+
"path": "dist/chunks/ro.V5C7DKLQ.js",
|
|
2509
2700
|
"declarations": [
|
|
2510
2701
|
{
|
|
2511
2702
|
"kind": "variable",
|
|
@@ -2519,14 +2710,14 @@
|
|
|
2519
2710
|
"name": "templates",
|
|
2520
2711
|
"declaration": {
|
|
2521
2712
|
"name": "i",
|
|
2522
|
-
"module": "dist/chunks/ro.
|
|
2713
|
+
"module": "dist/chunks/ro.V5C7DKLQ.js"
|
|
2523
2714
|
}
|
|
2524
2715
|
}
|
|
2525
2716
|
]
|
|
2526
2717
|
},
|
|
2527
2718
|
{
|
|
2528
2719
|
"kind": "javascript-module",
|
|
2529
|
-
"path": "dist/chunks/ru.
|
|
2720
|
+
"path": "dist/chunks/ru.L7XTNV7J.js",
|
|
2530
2721
|
"declarations": [
|
|
2531
2722
|
{
|
|
2532
2723
|
"kind": "variable",
|
|
@@ -2540,14 +2731,14 @@
|
|
|
2540
2731
|
"name": "templates",
|
|
2541
2732
|
"declaration": {
|
|
2542
2733
|
"name": "o",
|
|
2543
|
-
"module": "dist/chunks/ru.
|
|
2734
|
+
"module": "dist/chunks/ru.L7XTNV7J.js"
|
|
2544
2735
|
}
|
|
2545
2736
|
}
|
|
2546
2737
|
]
|
|
2547
2738
|
},
|
|
2548
2739
|
{
|
|
2549
2740
|
"kind": "javascript-module",
|
|
2550
|
-
"path": "dist/chunks/sk.
|
|
2741
|
+
"path": "dist/chunks/sk.B5NKJNWF.js",
|
|
2551
2742
|
"declarations": [
|
|
2552
2743
|
{
|
|
2553
2744
|
"kind": "variable",
|
|
@@ -2561,14 +2752,14 @@
|
|
|
2561
2752
|
"name": "templates",
|
|
2562
2753
|
"declaration": {
|
|
2563
2754
|
"name": "r",
|
|
2564
|
-
"module": "dist/chunks/sk.
|
|
2755
|
+
"module": "dist/chunks/sk.B5NKJNWF.js"
|
|
2565
2756
|
}
|
|
2566
2757
|
}
|
|
2567
2758
|
]
|
|
2568
2759
|
},
|
|
2569
2760
|
{
|
|
2570
2761
|
"kind": "javascript-module",
|
|
2571
|
-
"path": "dist/chunks/sl.
|
|
2762
|
+
"path": "dist/chunks/sl.PO5G6BSL.js",
|
|
2572
2763
|
"declarations": [
|
|
2573
2764
|
{
|
|
2574
2765
|
"kind": "variable",
|
|
@@ -2582,14 +2773,14 @@
|
|
|
2582
2773
|
"name": "templates",
|
|
2583
2774
|
"declaration": {
|
|
2584
2775
|
"name": "r",
|
|
2585
|
-
"module": "dist/chunks/sl.
|
|
2776
|
+
"module": "dist/chunks/sl.PO5G6BSL.js"
|
|
2586
2777
|
}
|
|
2587
2778
|
}
|
|
2588
2779
|
]
|
|
2589
2780
|
},
|
|
2590
2781
|
{
|
|
2591
2782
|
"kind": "javascript-module",
|
|
2592
|
-
"path": "dist/chunks/sr-RS.
|
|
2783
|
+
"path": "dist/chunks/sr-RS.5T2KJ2PK.js",
|
|
2593
2784
|
"declarations": [
|
|
2594
2785
|
{
|
|
2595
2786
|
"kind": "variable",
|
|
@@ -2603,14 +2794,14 @@
|
|
|
2603
2794
|
"name": "templates",
|
|
2604
2795
|
"declaration": {
|
|
2605
2796
|
"name": "o",
|
|
2606
|
-
"module": "dist/chunks/sr-RS.
|
|
2797
|
+
"module": "dist/chunks/sr-RS.5T2KJ2PK.js"
|
|
2607
2798
|
}
|
|
2608
2799
|
}
|
|
2609
2800
|
]
|
|
2610
2801
|
},
|
|
2611
2802
|
{
|
|
2612
2803
|
"kind": "javascript-module",
|
|
2613
|
-
"path": "dist/chunks/sv.
|
|
2804
|
+
"path": "dist/chunks/sv.XXKSWUSH.js",
|
|
2614
2805
|
"declarations": [
|
|
2615
2806
|
{
|
|
2616
2807
|
"kind": "variable",
|
|
@@ -2624,14 +2815,14 @@
|
|
|
2624
2815
|
"name": "templates",
|
|
2625
2816
|
"declaration": {
|
|
2626
2817
|
"name": "n",
|
|
2627
|
-
"module": "dist/chunks/sv.
|
|
2818
|
+
"module": "dist/chunks/sv.XXKSWUSH.js"
|
|
2628
2819
|
}
|
|
2629
2820
|
}
|
|
2630
2821
|
]
|
|
2631
2822
|
},
|
|
2632
2823
|
{
|
|
2633
2824
|
"kind": "javascript-module",
|
|
2634
|
-
"path": "dist/chunks/th.
|
|
2825
|
+
"path": "dist/chunks/th.7HQVVBDC.js",
|
|
2635
2826
|
"declarations": [
|
|
2636
2827
|
{
|
|
2637
2828
|
"kind": "variable",
|
|
@@ -2645,14 +2836,14 @@
|
|
|
2645
2836
|
"name": "templates",
|
|
2646
2837
|
"declaration": {
|
|
2647
2838
|
"name": "o",
|
|
2648
|
-
"module": "dist/chunks/th.
|
|
2839
|
+
"module": "dist/chunks/th.7HQVVBDC.js"
|
|
2649
2840
|
}
|
|
2650
2841
|
}
|
|
2651
2842
|
]
|
|
2652
2843
|
},
|
|
2653
2844
|
{
|
|
2654
2845
|
"kind": "javascript-module",
|
|
2655
|
-
"path": "dist/chunks/tr.
|
|
2846
|
+
"path": "dist/chunks/tr.XK3UIRBK.js",
|
|
2656
2847
|
"declarations": [
|
|
2657
2848
|
{
|
|
2658
2849
|
"kind": "variable",
|
|
@@ -2666,14 +2857,14 @@
|
|
|
2666
2857
|
"name": "templates",
|
|
2667
2858
|
"declaration": {
|
|
2668
2859
|
"name": "n",
|
|
2669
|
-
"module": "dist/chunks/tr.
|
|
2860
|
+
"module": "dist/chunks/tr.XK3UIRBK.js"
|
|
2670
2861
|
}
|
|
2671
2862
|
}
|
|
2672
2863
|
]
|
|
2673
2864
|
},
|
|
2674
2865
|
{
|
|
2675
2866
|
"kind": "javascript-module",
|
|
2676
|
-
"path": "dist/chunks/uk-UA.
|
|
2867
|
+
"path": "dist/chunks/uk-UA.PJMQMEKE.js",
|
|
2677
2868
|
"declarations": [
|
|
2678
2869
|
{
|
|
2679
2870
|
"kind": "variable",
|
|
@@ -2687,14 +2878,14 @@
|
|
|
2687
2878
|
"name": "templates",
|
|
2688
2879
|
"declaration": {
|
|
2689
2880
|
"name": "o",
|
|
2690
|
-
"module": "dist/chunks/uk-UA.
|
|
2881
|
+
"module": "dist/chunks/uk-UA.PJMQMEKE.js"
|
|
2691
2882
|
}
|
|
2692
2883
|
}
|
|
2693
2884
|
]
|
|
2694
2885
|
},
|
|
2695
2886
|
{
|
|
2696
2887
|
"kind": "javascript-module",
|
|
2697
|
-
"path": "dist/chunks/vi.
|
|
2888
|
+
"path": "dist/chunks/vi.KQNTEEX5.js",
|
|
2698
2889
|
"declarations": [
|
|
2699
2890
|
{
|
|
2700
2891
|
"kind": "variable",
|
|
@@ -2708,7 +2899,7 @@
|
|
|
2708
2899
|
"name": "templates",
|
|
2709
2900
|
"declaration": {
|
|
2710
2901
|
"name": "a",
|
|
2711
|
-
"module": "dist/chunks/vi.
|
|
2902
|
+
"module": "dist/chunks/vi.KQNTEEX5.js"
|
|
2712
2903
|
}
|
|
2713
2904
|
}
|
|
2714
2905
|
]
|
|
@@ -2736,7 +2927,7 @@
|
|
|
2736
2927
|
},
|
|
2737
2928
|
{
|
|
2738
2929
|
"kind": "javascript-module",
|
|
2739
|
-
"path": "dist/chunks/zh-CN.
|
|
2930
|
+
"path": "dist/chunks/zh-CN.5YAD67HK.js",
|
|
2740
2931
|
"declarations": [
|
|
2741
2932
|
{
|
|
2742
2933
|
"kind": "variable",
|
|
@@ -2750,14 +2941,14 @@
|
|
|
2750
2941
|
"name": "templates",
|
|
2751
2942
|
"declaration": {
|
|
2752
2943
|
"name": "o",
|
|
2753
|
-
"module": "dist/chunks/zh-CN.
|
|
2944
|
+
"module": "dist/chunks/zh-CN.5YAD67HK.js"
|
|
2754
2945
|
}
|
|
2755
2946
|
}
|
|
2756
2947
|
]
|
|
2757
2948
|
},
|
|
2758
2949
|
{
|
|
2759
2950
|
"kind": "javascript-module",
|
|
2760
|
-
"path": "dist/chunks/zh-HK.
|
|
2951
|
+
"path": "dist/chunks/zh-HK.I5LZOTED.js",
|
|
2761
2952
|
"declarations": [
|
|
2762
2953
|
{
|
|
2763
2954
|
"kind": "variable",
|
|
@@ -2771,14 +2962,14 @@
|
|
|
2771
2962
|
"name": "templates",
|
|
2772
2963
|
"declaration": {
|
|
2773
2964
|
"name": "o",
|
|
2774
|
-
"module": "dist/chunks/zh-HK.
|
|
2965
|
+
"module": "dist/chunks/zh-HK.I5LZOTED.js"
|
|
2775
2966
|
}
|
|
2776
2967
|
}
|
|
2777
2968
|
]
|
|
2778
2969
|
},
|
|
2779
2970
|
{
|
|
2780
2971
|
"kind": "javascript-module",
|
|
2781
|
-
"path": "dist/chunks/zh-TW.
|
|
2972
|
+
"path": "dist/chunks/zh-TW.UWEXAFT4.js",
|
|
2782
2973
|
"declarations": [
|
|
2783
2974
|
{
|
|
2784
2975
|
"kind": "variable",
|
|
@@ -2792,202 +2983,11 @@
|
|
|
2792
2983
|
"name": "templates",
|
|
2793
2984
|
"declaration": {
|
|
2794
2985
|
"name": "o",
|
|
2795
|
-
"module": "dist/chunks/zh-TW.
|
|
2796
|
-
}
|
|
2797
|
-
}
|
|
2798
|
-
]
|
|
2799
|
-
},
|
|
2800
|
-
{
|
|
2801
|
-
"kind": "javascript-module",
|
|
2802
|
-
"path": "e2e/mocks/billing-address.ts",
|
|
2803
|
-
"declarations": [
|
|
2804
|
-
{
|
|
2805
|
-
"kind": "variable",
|
|
2806
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2807
|
-
"type": {
|
|
2808
|
-
"text": "object"
|
|
2809
|
-
},
|
|
2810
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'BILLING_ADDRESS', options: { firstName: false, lastName: false, city: true, countryCode: true, postalCode: true, addressLine1: true, addressLine2: true, state: false, }, }, ], clientSession: { clientSessionId: '0ad5b471-5b80-436b-ad03-57850585e3fd', order: { orderId: '12577', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 1050, merchantAmount: 1050, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 950, quantity: 1, }, { itemId: 'primer-hoodie-blue', description: 'Primer Blue', amount: 50, quantity: 1, }, ], shipping: { amount: 50, methodId: 'Regular', methodName: 'Regular 50', methodDescription: 'Regular', }, }, customer: { customerId: 'Customer123', billingAddress: { firstName: 'testt', lastName: 'test', postalCode: '51662', addressLine1: 'aksjlkajl', addressLine2: 'jfjkahk', countryCode: 'PL', city: 'wroclaw', state: 'test', }, shippingAddress: {}, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: false, orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '75dc7012-785c-443a-80b1-0e1f88fd4fad', env: 'SANDBOX', paymentMethods: [ { id: '42e32c6e-7faa-4f5a-97d0-9c4f7b848ae1', type: 'APPLE_PAY', options: { merchantId: '75dc7012785c443a80b10e1f88fd4fad', merchantName: 'Primer', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
2811
|
-
},
|
|
2812
|
-
{
|
|
2813
|
-
"kind": "variable",
|
|
2814
|
-
"name": "CARD_NUMBER",
|
|
2815
|
-
"type": {
|
|
2816
|
-
"text": "string"
|
|
2817
|
-
},
|
|
2818
|
-
"default": "'4242 4242 4242 4242'"
|
|
2819
|
-
},
|
|
2820
|
-
{
|
|
2821
|
-
"kind": "function",
|
|
2822
|
-
"name": "mockBinData",
|
|
2823
|
-
"parameters": [
|
|
2824
|
-
{
|
|
2825
|
-
"name": "page",
|
|
2826
|
-
"type": {
|
|
2827
|
-
"text": "Page"
|
|
2828
|
-
}
|
|
2829
|
-
}
|
|
2830
|
-
]
|
|
2831
|
-
},
|
|
2832
|
-
{
|
|
2833
|
-
"kind": "function",
|
|
2834
|
-
"name": "mockPaymentInstruments",
|
|
2835
|
-
"parameters": [
|
|
2836
|
-
{
|
|
2837
|
-
"name": "page",
|
|
2838
|
-
"type": {
|
|
2839
|
-
"text": "Page"
|
|
2840
|
-
}
|
|
2841
|
-
}
|
|
2842
|
-
]
|
|
2843
|
-
},
|
|
2844
|
-
{
|
|
2845
|
-
"kind": "function",
|
|
2846
|
-
"name": "mockPayments",
|
|
2847
|
-
"parameters": [
|
|
2848
|
-
{
|
|
2849
|
-
"name": "page",
|
|
2850
|
-
"type": {
|
|
2851
|
-
"text": "Page"
|
|
2852
|
-
}
|
|
2853
|
-
}
|
|
2854
|
-
]
|
|
2855
|
-
}
|
|
2856
|
-
],
|
|
2857
|
-
"exports": [
|
|
2858
|
-
{
|
|
2859
|
-
"kind": "js",
|
|
2860
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2861
|
-
"declaration": {
|
|
2862
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2863
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
2864
|
-
}
|
|
2865
|
-
},
|
|
2866
|
-
{
|
|
2867
|
-
"kind": "js",
|
|
2868
|
-
"name": "CARD_NUMBER",
|
|
2869
|
-
"declaration": {
|
|
2870
|
-
"name": "CARD_NUMBER",
|
|
2871
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
2872
|
-
}
|
|
2873
|
-
},
|
|
2874
|
-
{
|
|
2875
|
-
"kind": "js",
|
|
2876
|
-
"name": "mockBinData",
|
|
2877
|
-
"declaration": {
|
|
2878
|
-
"name": "mockBinData",
|
|
2879
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
2880
|
-
}
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
"kind": "js",
|
|
2884
|
-
"name": "mockPaymentInstruments",
|
|
2885
|
-
"declaration": {
|
|
2886
|
-
"name": "mockPaymentInstruments",
|
|
2887
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
2888
|
-
}
|
|
2889
|
-
},
|
|
2890
|
-
{
|
|
2891
|
-
"kind": "js",
|
|
2892
|
-
"name": "mockPayments",
|
|
2893
|
-
"declaration": {
|
|
2894
|
-
"name": "mockPayments",
|
|
2895
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
2896
|
-
}
|
|
2897
|
-
}
|
|
2898
|
-
]
|
|
2899
|
-
},
|
|
2900
|
-
{
|
|
2901
|
-
"kind": "javascript-module",
|
|
2902
|
-
"path": "e2e/mocks/paypal.ts",
|
|
2903
|
-
"declarations": [
|
|
2904
|
-
{
|
|
2905
|
-
"kind": "variable",
|
|
2906
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2907
|
-
"type": {
|
|
2908
|
-
"text": "object"
|
|
2909
|
-
},
|
|
2910
|
-
"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: 'f2868f83-9f30-44d0-ae15-c67d6424badc', order: { orderId: '1257721757579', currencyCode: 'USD', countryCode: 'FR', totalOrderAmount: 5050, merchantAmount: 5050, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 4950, quantity: 1, }, { itemId: 'primer-hoodie-blue', description: 'Primer Blue', amount: 50, quantity: 1, }, ], shipping: { amount: 50, methodId: 'Regular', methodName: 'Regular 50', methodDescription: 'Regular', }, }, customer: { customerId: 'Customer1234367', billingAddress: { countryCode: 'FR', }, shippingAddress: { firstName: 'test', lastName: 'test', postalCode: '51786', addressLine1: 'test', addressLine2: 'test', countryCode: 'FR', city: 'test', }, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: false, orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '33c6e1fc-5199-43ed-a734-acd3deb27d81', env: 'SANDBOX', paymentMethods: [ { id: 'a04ecba7-cc9d-40de-96b9-7bd6a85b4e0d', type: 'GOOGLE_PAY', options: { merchantId: 'Chris', merchantName: 'Chisisthebest', 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: '1c2bb0fc-d8ed-4399-9154-2aba015ec50a', type: 'BRAINTREE_VENMO', options: { merchantId: 'primer', merchantAccountId: 'cde7e786-5324-5e41-9694-1aa394ed5be1', }, processorConfigId: '52bef1ae-fdfc-4cae-bb91-3fb9b81a7b5a', implementationType: 'WEB_REDIRECT', name: 'Venmo', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/VENMO/venmo-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/VENMO/venmo-logo-dark@3x.png', light: 'https://assets.sandbox.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: '2fc60a42-3729-40c4-bf52-4427e87db7eb', type: 'KLARNA', options: { merchantId: 'PK55462', merchantAccountId: 'fcd08555-1d1a-588f-b7d7-c3058b9fcd26', clientId: 'PK55462', }, processorConfigId: 'a38c95ba-8381-4bd7-b7c5-07f36c1f0a98', 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: '30294d7c-d820-470e-9d43-5b701cd925d8', type: 'PAYPAL', options: { merchantId: 'Default Application', merchantAccountId: '49989e77-764d-585f-b66c-3ea34551094b', clientId: 'AW0qJdOMrgWr2ste9V9pZ1njg3tilO-8P9-vkSfm9e0f82wlXfsAxjoNSCmu-xGfFd6vqNM9XAHB6vX_', intent: 'authorize', }, processorConfigId: 'bf904deb-a083-4168-883d-f55eb142e993', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo-dark@3x.png', }, backgroundColor: { colored: '#FFC439', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { 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: {}, }"
|
|
2911
|
-
}
|
|
2912
|
-
],
|
|
2913
|
-
"exports": [
|
|
2914
|
-
{
|
|
2915
|
-
"kind": "js",
|
|
2916
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2917
|
-
"declaration": {
|
|
2918
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2919
|
-
"module": "e2e/mocks/paypal.ts"
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
]
|
|
2923
|
-
},
|
|
2924
|
-
{
|
|
2925
|
-
"kind": "javascript-module",
|
|
2926
|
-
"path": "e2e/mocks/shared.ts",
|
|
2927
|
-
"declarations": [
|
|
2928
|
-
{
|
|
2929
|
-
"kind": "function",
|
|
2930
|
-
"name": "mockConfigurationCall",
|
|
2931
|
-
"parameters": [
|
|
2932
|
-
{
|
|
2933
|
-
"name": "page",
|
|
2934
|
-
"type": {
|
|
2935
|
-
"text": "Page"
|
|
2936
|
-
}
|
|
2937
|
-
},
|
|
2938
|
-
{
|
|
2939
|
-
"name": "config",
|
|
2940
|
-
"type": {
|
|
2941
|
-
"text": "unknown"
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
]
|
|
2945
|
-
},
|
|
2946
|
-
{
|
|
2947
|
-
"kind": "function",
|
|
2948
|
-
"name": "mockDemoUrl",
|
|
2949
|
-
"parameters": [
|
|
2950
|
-
{
|
|
2951
|
-
"name": "primerCheckoutOptions",
|
|
2952
|
-
"optional": true,
|
|
2953
|
-
"type": {
|
|
2954
|
-
"text": "PrimerCheckoutOptions"
|
|
2955
|
-
}
|
|
2956
|
-
}
|
|
2957
|
-
]
|
|
2958
|
-
}
|
|
2959
|
-
],
|
|
2960
|
-
"exports": [
|
|
2961
|
-
{
|
|
2962
|
-
"kind": "js",
|
|
2963
|
-
"name": "mockConfigurationCall",
|
|
2964
|
-
"declaration": {
|
|
2965
|
-
"name": "mockConfigurationCall",
|
|
2966
|
-
"module": "e2e/mocks/shared.ts"
|
|
2967
|
-
}
|
|
2968
|
-
},
|
|
2969
|
-
{
|
|
2970
|
-
"kind": "js",
|
|
2971
|
-
"name": "mockDemoUrl",
|
|
2972
|
-
"declaration": {
|
|
2973
|
-
"name": "mockDemoUrl",
|
|
2974
|
-
"module": "e2e/mocks/shared.ts"
|
|
2986
|
+
"module": "dist/chunks/zh-TW.UWEXAFT4.js"
|
|
2975
2987
|
}
|
|
2976
2988
|
}
|
|
2977
2989
|
]
|
|
2978
2990
|
},
|
|
2979
|
-
{
|
|
2980
|
-
"kind": "javascript-module",
|
|
2981
|
-
"path": "e2e/tests/card-form-billing-address.spec.ts",
|
|
2982
|
-
"declarations": [],
|
|
2983
|
-
"exports": []
|
|
2984
|
-
},
|
|
2985
|
-
{
|
|
2986
|
-
"kind": "javascript-module",
|
|
2987
|
-
"path": "e2e/tests/paypal.spec.ts",
|
|
2988
|
-
"declarations": [],
|
|
2989
|
-
"exports": []
|
|
2990
|
-
},
|
|
2991
2991
|
{
|
|
2992
2992
|
"kind": "javascript-module",
|
|
2993
2993
|
"path": "src/__tests__/setup.ts",
|
|
@@ -9118,7 +9118,7 @@
|
|
|
9118
9118
|
{
|
|
9119
9119
|
"kind": "variable",
|
|
9120
9120
|
"name": "styles",
|
|
9121
|
-
"default": "css` :host { display: flex; width: 100%; } .mbway-input-wrapper { display: flex; flex-direction: column; gap: var(--primer-space-small); width: 100%; padding-top: var(--primer-space-medium); } .mbway-label { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); line-height: var(--primer-typography-body-medium-line-height); color: var(--primer-color-text-primary); } .mbway-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--primer-space-large); padding: var(--primer-space-xlarge) var(--primer-space-medium); } .mbway-loading-message { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); color: var(--primer-color-text-primary); text-align: center; } .mbway-error { display: flex; flex-direction: column; align-items: center; gap: var(--primer-space-medium); } .mbway-error-message { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); color: var(--primer-color-text-primary); text-align: center; } .mbway-retry-button { padding: var(--primer-space-medium) var(--primer-space-large); font-family: var(--primer-typography-title-large-font); font-size: var(--primer-typography-title-large-size); font-weight: var(--primer-typography-title-large-weight); line-height: var(--primer-typography-title-large-line-height); color: var(--primer-color-background-outlined-default); background-color: var(--primer-color-brand); border: none; border-radius: var(--primer-radius-medium); cursor: pointer; outline: none; } .mbway-retry-button:disabled { background-color: var(--primer-color-background-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } .mbway-submit-button { padding: var(--primer-space-medium) var(--primer-space-large); font-family: var(--primer-typography-title-large-font); font-size: var(--primer-typography-title-large-size); font-weight: var(--primer-typography-title-large-weight); color: var(--primer-color-background-outlined-default); background-color: var(--primer-color-brand); border: none; border-radius: var(--primer-radius-medium); cursor: pointer; outline: none; } .mbway-submit-button:disabled { background-color: var(--primer-color-background-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } `"
|
|
9121
|
+
"default": "css` :host { display: flex; width: 100%; } .mbway-input-wrapper { display: flex; flex-direction: column; gap: var(--primer-space-small); width: 100%; padding-top: var(--primer-space-medium); } .mbway-label { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); line-height: var(--primer-typography-body-medium-line-height); color: var(--primer-color-text-primary); } .mbway-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--primer-space-large); padding: var(--primer-space-xlarge) var(--primer-space-medium); } .mbway-loading-message { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); color: var(--primer-color-text-primary); text-align: center; } .mbway-error { display: flex; flex-direction: column; align-items: center; gap: var(--primer-space-medium); } .mbway-error-message { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); color: var(--primer-color-text-primary); text-align: center; } .mbway-retry-button { padding: var(--primer-space-medium) var(--primer-space-large); font-family: var(--primer-typography-title-large-font); font-size: var(--primer-typography-title-large-size); font-weight: var(--primer-typography-title-large-weight); line-height: var(--primer-typography-title-large-line-height); color: var(--primer-color-background-outlined-default); background-color: var(--primer-color-brand); border: none; border-radius: var(--primer-radius-button, var(--primer-radius-medium)); cursor: pointer; outline: none; } .mbway-retry-button:disabled { background-color: var(--primer-color-background-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } .mbway-submit-button { padding: var(--primer-space-medium) var(--primer-space-large); font-family: var(--primer-typography-title-large-font); font-size: var(--primer-typography-title-large-size); font-weight: var(--primer-typography-title-large-weight); color: var(--primer-color-background-outlined-default); background-color: var(--primer-color-brand); border: none; border-radius: var(--primer-radius-button, var(--primer-radius-medium)); cursor: pointer; outline: none; } .mbway-submit-button:disabled { background-color: var(--primer-color-background-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } `"
|
|
9122
9122
|
}
|
|
9123
9123
|
],
|
|
9124
9124
|
"exports": [
|
|
@@ -9870,7 +9870,7 @@
|
|
|
9870
9870
|
{
|
|
9871
9871
|
"kind": "variable",
|
|
9872
9872
|
"name": "styles",
|
|
9873
|
-
"default": "css` :host { display: flex; width: 100%; } /* Input wrapper */ .blik-input-wrapper { display: flex; flex-direction: column; gap: var(--primer-space-small); } /* Input label */ .blik-label { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); line-height: var(--primer-typography-body-medium-line-height); color: var(--primer-color-text-primary); } /* Input field */ .blik-input { width: 100%; padding: var(--primer-space-medium); font-family: var(--primer-typography-body-large-font); font-size: var(--primer-typography-body-large-size); font-weight: var(--primer-typography-body-large-weight); line-height: var(--primer-typography-body-large-line-height); /* Increase spacing between digits for better 6-digit code readability */ letter-spacing: 0.25em; text-align: center; color: var(--primer-color-text-primary); background-color: var(--primer-color-background-outlined-default); border: 1px solid var(--primer-color-border-outlined-default); border-radius: var(--primer-radius-medium); outline: none; transition: border-color var(--primer-animation-duration) var(--primer-animation-easing); } .blik-input::placeholder { color: var(--primer-color-text-secondary); /* Reduce placeholder visibility to emphasize user input */ opacity: 0.5; } .blik-input:focus { border-color: var(--primer-color-border-outlined-focus); } .blik-input:disabled { background-color: var(--primer-color-background-outlined-disabled); border-color: var(--primer-color-border-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } /* Loading state */ .blik-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--primer-space-large); padding: var(--primer-space-xlarge) var(--primer-space-medium); } /* Timeout warning */ .blik-timeout-warning { margin-top: var(--primer-space-medium); padding: var(--primer-space-small); font-size: var(--primer-typography-body-small-size); color: var(--primer-color-text-warning); text-align: center; border-radius: var(--primer-radius-small); background-color: var(--primer-color-surface-warning); } /* Error state */ .blik-error { display: flex; flex-direction: column; align-items: center; gap: var(--primer-space-medium); } .blik-error-message { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); line-height: var(--primer-typography-body-medium-line-height); color: var(--primer-color-text-primary); text-align: center; } /* Retry button */ .blik-retry-button { padding: var(--primer-space-medium) var(--primer-space-large); font-family: var(--primer-typography-title-large-font); font-size: var(--primer-typography-title-large-size); font-weight: var(--primer-typography-title-large-weight); line-height: var(--primer-typography-title-large-line-height); color: var(--primer-color-background-outlined-default); background-color: var(--primer-color-brand); border: none; border-radius: var(--primer-radius-medium); cursor: pointer; outline: none; transition: filter var(--primer-animation-duration) var(--primer-animation-easing); } .blik-retry-button:hover:not(:disabled) { filter: brightness(105%); } .blik-retry-button:active:not(:disabled) { filter: brightness(98%); } .blik-retry-button:focus-visible { outline: 2px solid var(--primer-color-brand); outline-offset: 2px; } .blik-retry-button:disabled { background-color: var(--primer-color-background-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } /* Responsive typography for larger screens */ @media (min-width: 768px) { .blik-input { font-size: var(--primer-typography-title-large-size); } } `"
|
|
9873
|
+
"default": "css` :host { display: flex; width: 100%; } /* Input wrapper */ .blik-input-wrapper { display: flex; flex-direction: column; gap: var(--primer-space-small); } /* Input label */ .blik-label { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); line-height: var(--primer-typography-body-medium-line-height); color: var(--primer-color-text-primary); } /* Input field */ .blik-input { width: 100%; padding: var(--primer-space-medium); font-family: var(--primer-typography-body-large-font); font-size: var(--primer-typography-body-large-size); font-weight: var(--primer-typography-body-large-weight); line-height: var(--primer-typography-body-large-line-height); /* Increase spacing between digits for better 6-digit code readability */ letter-spacing: 0.25em; text-align: center; color: var(--primer-color-text-primary); background-color: var(--primer-color-background-outlined-default); border: 1px solid var(--primer-color-border-outlined-default); border-radius: var(--primer-radius-medium); outline: none; transition: border-color var(--primer-animation-duration) var(--primer-animation-easing); } .blik-input::placeholder { color: var(--primer-color-text-secondary); /* Reduce placeholder visibility to emphasize user input */ opacity: 0.5; } .blik-input:focus { border-color: var(--primer-color-border-outlined-focus); } .blik-input:disabled { background-color: var(--primer-color-background-outlined-disabled); border-color: var(--primer-color-border-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } /* Loading state */ .blik-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--primer-space-large); padding: var(--primer-space-xlarge) var(--primer-space-medium); } /* Timeout warning */ .blik-timeout-warning { margin-top: var(--primer-space-medium); padding: var(--primer-space-small); font-size: var(--primer-typography-body-small-size); color: var(--primer-color-text-warning); text-align: center; border-radius: var(--primer-radius-small); background-color: var(--primer-color-surface-warning); } /* Error state */ .blik-error { display: flex; flex-direction: column; align-items: center; gap: var(--primer-space-medium); } .blik-error-message { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); line-height: var(--primer-typography-body-medium-line-height); color: var(--primer-color-text-primary); text-align: center; } /* Retry button */ .blik-retry-button { padding: var(--primer-space-medium) var(--primer-space-large); font-family: var(--primer-typography-title-large-font); font-size: var(--primer-typography-title-large-size); font-weight: var(--primer-typography-title-large-weight); line-height: var(--primer-typography-title-large-line-height); color: var(--primer-color-background-outlined-default); background-color: var(--primer-color-brand); border: none; border-radius: var(--primer-radius-button, var(--primer-radius-medium)); cursor: pointer; outline: none; transition: filter var(--primer-animation-duration) var(--primer-animation-easing); } .blik-retry-button:hover:not(:disabled) { filter: brightness(105%); } .blik-retry-button:active:not(:disabled) { filter: brightness(98%); } .blik-retry-button:focus-visible { outline: 2px solid var(--primer-color-brand); outline-offset: 2px; } .blik-retry-button:disabled { background-color: var(--primer-color-background-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } /* Responsive typography for larger screens */ @media (min-width: 768px) { .blik-input { font-size: var(--primer-typography-title-large-size); } } `"
|
|
9874
9874
|
}
|
|
9875
9875
|
],
|
|
9876
9876
|
"exports": [
|
|
@@ -13941,7 +13941,7 @@
|
|
|
13941
13941
|
{
|
|
13942
13942
|
"kind": "variable",
|
|
13943
13943
|
"name": "styles",
|
|
13944
|
-
"default": "css` :host { display: block; width: 100%; } button { padding: var(--primer-space-medium) var(--primer-space-large); display: flex; align-items: center; justify-content: center; border-radius: var(--primer-radius-small); background-color: var(--primer-color-brand); color: var(--primer-color-background-outlined-default); border: none; font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); width: 100%; cursor: pointer; transition: all var(--primer-animation-duration) var(--primer-animation-easing); } button:hover:not(:disabled) { filter: brightness(105%); } button:disabled { background-color: var(--primer-color-background-outlined-disabled); border-color: var(--primer-color-border-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } button.loading { opacity: 0.7; pointer-events: none; } `"
|
|
13944
|
+
"default": "css` :host { display: block; width: 100%; } button { padding: var(--primer-space-medium) var(--primer-space-large); display: flex; align-items: center; justify-content: center; border-radius: var(--primer-radius-button, var(--primer-radius-small)); background-color: var(--primer-color-brand); color: var(--primer-color-background-outlined-default); border: none; font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); width: 100%; cursor: pointer; transition: all var(--primer-animation-duration) var(--primer-animation-easing); } button:hover:not(:disabled) { filter: brightness(105%); } button:disabled { background-color: var(--primer-color-background-outlined-disabled); border-color: var(--primer-color-border-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } button.loading { opacity: 0.7; pointer-events: none; } `"
|
|
13945
13945
|
}
|
|
13946
13946
|
],
|
|
13947
13947
|
"exports": [
|