@primer-io/primer-js 1.8.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -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 +185 -188
- package/dist/primer-loader.d.ts +19 -8
- 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
|
@@ -75,33 +75,33 @@
|
|
|
75
75
|
{
|
|
76
76
|
"kind": "variable",
|
|
77
77
|
"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=
|
|
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=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
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"kind": "function",
|
|
82
|
-
"name": "
|
|
82
|
+
"name": "bd"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"kind": "function",
|
|
86
|
-
"name": "
|
|
86
|
+
"name": "Cd"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"kind": "function",
|
|
90
|
-
"name": "
|
|
90
|
+
"name": "ly"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"kind": "function",
|
|
94
|
-
"name": "
|
|
94
|
+
"name": "dy"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"kind": "variable",
|
|
98
98
|
"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
|
|
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 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
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"kind": "variable",
|
|
103
103
|
"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
|
|
104
|
+
"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
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"kind": "variable",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"kind": "variable",
|
|
113
|
-
"name": "
|
|
113
|
+
"name": "oe",
|
|
114
114
|
"default": "class extends b{constructor(){super(...arguments);this.variant=\"primary\";this.disabled=!1;this.loading=!1;this.buttonType=\"button\";this.selectionState=\"default\";this.selectable=!1;this.flex=!0;this.handleClick=()=>{!this.selectable||this.disabled||this.loading||(this.selectionState=this.selectionState===\"default\"?\"checked\":\"default\",this.dispatchEvent(new CustomEvent(\"selection-change\",{bubbles:!0,composed:!0,detail:{state:this.selectionState}})))}}renderCheckmark(){return!this.selectable||this.selectionState!==\"checked\"||this.loading?y:u`<primer-icon name=\"checkmark\" size=\"sm\" color=\"var(--primer-color-brand)\" ></primer-icon>`}renderSpinner(){if(!this.loading)return y;let e;return this.variant===\"primary\"?e=\"var(--primer-color-background-outlined-default)\":(this.variant===\"secondary\"||this.variant===\"tertiary\")&&(e=\"var(--primer-color-gray-900)\"),u`<primer-spinner size=\"small\" color=\"${e}\" compact ></primer-spinner>`}render(){return u`<button type=${this.buttonType} ?disabled=${this.disabled||this.loading} @click=${this.handleClick} part=\"button\" aria-checked=${this.selectionState===\"checked\"} aria-busy=${this.loading} aria-label=${this.ariaLabel?this.ariaLabel:y} >${this.renderSpinner()} ${this.flex?u`<span class=\"button-content ${this.loading?\"loading\":\"\"}\"><slot></slot></span>`:u`<span class=\"button-content-base ${this.loading?\"loading\":\"\"}\" ><slot></slot></span>`} ${this.renderCheckmark()}</button>`}}"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
@@ -121,32 +121,32 @@
|
|
|
121
121
|
{
|
|
122
122
|
"kind": "variable",
|
|
123
123
|
"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?
|
|
124
|
+
"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
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"kind": "variable",
|
|
128
|
-
"name": "
|
|
128
|
+
"name": "at",
|
|
129
129
|
"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
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"kind": "variable",
|
|
133
133
|
"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
|
|
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 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
135
|
},
|
|
136
136
|
{
|
|
137
137
|
"kind": "variable",
|
|
138
138
|
"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
|
|
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 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
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"kind": "variable",
|
|
143
143
|
"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
|
|
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 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
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"kind": "variable",
|
|
148
|
-
"name": "
|
|
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,
|
|
148
|
+
"name": "se",
|
|
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,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
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"kind": "variable",
|
|
@@ -161,32 +161,32 @@
|
|
|
161
161
|
{
|
|
162
162
|
"kind": "variable",
|
|
163
163
|
"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,
|
|
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,a])=>{let i=e?.find(n=>n.type===I.KLARNA);return i?.type!==I.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=${I.KLARNA} ?disabled=${this.disabled} .expanded=${this.isExpanded} ?suppress-blur-collapse=${this.klarnaPaymentInProgress} @expanded-change=${this.handleExpandedChange} >${this.renderExpandedContent()}</primer-payment-method-accordion>`:y})}}"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"kind": "variable",
|
|
168
168
|
"name": "xe",
|
|
169
|
-
"default": "class extends b{constructor(){super();this.type=void 0;this.disabled=!1;this.buttonContainerRef=
|
|
169
|
+
"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
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"kind": "variable",
|
|
173
173
|
"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=
|
|
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=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
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"kind": "variable",
|
|
178
178
|
"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=
|
|
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=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
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"kind": "variable",
|
|
183
183
|
"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\">${
|
|
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\">${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
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"kind": "variable",
|
|
188
188
|
"name": "He",
|
|
189
|
-
"default": "class extends b{constructor(){super(...arguments);this.disabled=!1;this._setupTask=new H(this,{task:([e,
|
|
189
|
+
"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 I.KLARNA:case I.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 I.KLARNA:case I.ADYEN_KLARNA:return Ay;case I.PAY_NL_PAYCONIQ:return i===a.backgroundColor.light?by:Cy;case I.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 I.KLARNA:case I.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 I.KLARNA:return this.primerContext?.clientOptions?.klarna?.buttonOptions?.text??i??this._legacyGetButtonLabel(a)??this._legacyGetButtonLabel(\"Pay with\");case I.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
190
|
},
|
|
191
191
|
{
|
|
192
192
|
"kind": "variable",
|
|
@@ -196,107 +196,107 @@
|
|
|
196
196
|
{
|
|
197
197
|
"kind": "variable",
|
|
198
198
|
"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(
|
|
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(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
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"kind": "variable",
|
|
203
203
|
"name": "Oe",
|
|
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
|
|
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 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
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"kind": "variable",
|
|
208
|
-
"name": "
|
|
208
|
+
"name": "Ye",
|
|
209
209
|
"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
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"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,
|
|
213
|
+
"name": "re",
|
|
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,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
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"kind": "variable",
|
|
218
218
|
"name": "ae",
|
|
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
|
|
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 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
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"kind": "variable",
|
|
223
|
-
"name": "
|
|
224
|
-
"default": "class extends b{constructor(){super(...arguments);this.paymentMethod=void 0;this.isEditMode=!1;this._getAssetsTask=new H(this,{task:async([e,i
|
|
223
|
+
"name": "ke",
|
|
224
|
+
"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}))};this.handleCvvRowClick=e=>{e.stopPropagation()}}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\" @click=${this.handleCvvRowClick} ><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
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"kind": "variable",
|
|
228
228
|
"name": "De",
|
|
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>${
|
|
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>${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
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"kind": "variable",
|
|
233
|
-
"name": "
|
|
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} >${
|
|
233
|
+
"name": "Ie",
|
|
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} >${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
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"kind": "variable",
|
|
238
|
-
"name": "
|
|
239
|
-
"default": "class extends b{render(){return u`<div class=\"empty-state\"><p>${
|
|
238
|
+
"name": "it",
|
|
239
|
+
"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
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"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=${
|
|
243
|
+
"name": "ze",
|
|
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=${A(\"Close error message\",{id:\"closeErrorMessage\"})} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></button></div>`}}"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"kind": "variable",
|
|
248
248
|
"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(
|
|
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(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
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"kind": "variable",
|
|
253
|
-
"name": "
|
|
254
|
-
"default": "class extends b{constructor(){super();this.paymentMethod=null;this.cvvError=null;this.
|
|
253
|
+
"name": "le",
|
|
254
|
+
"default": "class extends b{constructor(){super();this.paymentMethod=null;this.cvvError=null;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.cvvError=this.cvvInput.metadata.errorCode||null)}onBlur(){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} ><slot name=\"label\" slot=\"label\"><primer-input-label>CVV</primer-input-label></slot><div slot=\"input\" class=\"cvv-input-slot\" id=\"${this.cvvContainerId}\" ></div><div slot=\"error\" class=\"cvv-error-slot\">${L(this.cvvError&&this.primerContext?.vaultItem?.formIsDirty,()=>u`<primer-input-error>${A(this.cvvError,{id:this.cvvError})}</primer-input-error>`)}</div></primer-input-wrapper></div>`})}}"
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
"kind": "variable",
|
|
258
258
|
"name": "je",
|
|
259
|
-
"default": "class extends b{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return y;let e=this.assetConfig.description,
|
|
259
|
+
"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
260
|
},
|
|
261
261
|
{
|
|
262
262
|
"kind": "variable",
|
|
263
263
|
"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
|
|
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 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===I.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.clearStaleVaultSelection(),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}clearStaleVaultSelection(){this.primerContext?.vaultItem?.selectedVaultedPaymentMethod&&this.primerContext.vaultItem.setSelectedVaultedPaymentMethod(null)}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
265
|
},
|
|
266
266
|
{
|
|
267
267
|
"kind": "variable",
|
|
268
268
|
"name": "nt",
|
|
269
|
-
"default": "class extends
|
|
269
|
+
"default": "class extends ie{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
270
|
},
|
|
271
271
|
{
|
|
272
272
|
"kind": "variable",
|
|
273
273
|
"name": "ot",
|
|
274
|
-
"default": "class extends
|
|
274
|
+
"default": "class extends ie{constructor(){super();this.config={inputType:\"cvv\",containerSelector:\"#cvv\",errorName:\"cvv-card\",translations:{label:\"CVV\",placeholder:\"123\"}};this.childUpdated()}render(){return this.renderInput()}}"
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
"kind": "variable",
|
|
278
278
|
"name": "st",
|
|
279
|
-
"default": "class extends
|
|
279
|
+
"default": "class extends ie{constructor(){super();this.config={inputType:\"expire\",containerSelector:\"#expiry\",errorName:\"expiryDate-card\",translations:{label:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"},placeholder:{id:\"cardExpiryPlaceholder\",defaultMessage:\"MM/YY\"},ariaLabel:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"}}};this.childUpdated()}render(){return this.renderInput()}}"
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
"kind": "variable",
|
|
283
283
|
"name": "lt",
|
|
284
|
-
"default": "class extends
|
|
284
|
+
"default": "class extends ie{constructor(){super();this.config={inputType:\"cardholderName\",containerSelector:\"#cardFormName\",errorName:\"cardholderName\",translations:{label:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"},placeholder:{id:\"cardholderNamePlaceholder\",defaultMessage:\"Name on card\"},ariaLabel:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"}},onInput:e=>this.handleInput(e)};this.childUpdated()}handleInput(e){this.cardFormContext?.setCardholderName?.(e)}render(){return this.renderInput()}}"
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
287
|
"kind": "variable",
|
|
288
288
|
"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
|
|
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 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
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"kind": "variable",
|
|
293
293
|
"name": "ce",
|
|
294
|
-
"default": "class extends b{constructor(){super(...arguments);this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=
|
|
294
|
+
"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
295
|
},
|
|
296
296
|
{
|
|
297
297
|
"kind": "variable",
|
|
298
298
|
"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
|
|
299
|
+
"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
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"kind": "variable",
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
{
|
|
307
307
|
"kind": "variable",
|
|
308
308
|
"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>`:
|
|
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>`:A(\"Confirm\",{id:\"confirm\"})}</button>`}}"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"kind": "variable",
|
|
@@ -315,22 +315,22 @@
|
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
"kind": "variable",
|
|
318
|
-
"name": "
|
|
318
|
+
"name": "Yt",
|
|
319
319
|
"default": "class extends b{render(){return u`<primer-checkout-state type=\"failure\" description=${this.primerContext?.sdkState?.primerJsError?.message||\"\"} ></primer-checkout-state>`}}"
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
"kind": "variable",
|
|
323
323
|
"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=\"${
|
|
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=\"${A(this.primerContext.sdkState.paymentFailure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:y}}"
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
"kind": "variable",
|
|
328
|
-
"name": "
|
|
329
|
-
"default": "class extends b{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let
|
|
328
|
+
"name": "Nt",
|
|
329
|
+
"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
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"kind": "function",
|
|
333
|
-
"name": "
|
|
333
|
+
"name": "SO"
|
|
334
334
|
}
|
|
335
335
|
],
|
|
336
336
|
"exports": [
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"kind": "js",
|
|
371
371
|
"name": "BillingAddress",
|
|
372
372
|
"declaration": {
|
|
373
|
-
"name": "
|
|
373
|
+
"name": "re",
|
|
374
374
|
"module": "dist/primer-loader.js"
|
|
375
375
|
}
|
|
376
376
|
},
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
"kind": "js",
|
|
387
387
|
"name": "Button",
|
|
388
388
|
"declaration": {
|
|
389
|
-
"name": "
|
|
389
|
+
"name": "oe",
|
|
390
390
|
"module": "dist/primer-loader.js"
|
|
391
391
|
}
|
|
392
392
|
},
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"kind": "js",
|
|
459
459
|
"name": "Collapsable",
|
|
460
460
|
"declaration": {
|
|
461
|
-
"name": "
|
|
461
|
+
"name": "se",
|
|
462
462
|
"module": "dist/primer-loader.js"
|
|
463
463
|
}
|
|
464
464
|
},
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
"kind": "js",
|
|
595
595
|
"name": "PrimerCheckoutFailure",
|
|
596
596
|
"declaration": {
|
|
597
|
-
"name": "
|
|
597
|
+
"name": "Yt",
|
|
598
598
|
"module": "dist/primer-loader.js"
|
|
599
599
|
}
|
|
600
600
|
},
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
"kind": "js",
|
|
603
603
|
"name": "PrimerCheckoutState",
|
|
604
604
|
"declaration": {
|
|
605
|
-
"name": "
|
|
605
|
+
"name": "at",
|
|
606
606
|
"module": "dist/primer-loader.js"
|
|
607
607
|
}
|
|
608
608
|
},
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
"kind": "js",
|
|
627
627
|
"name": "PrimerMain",
|
|
628
628
|
"declaration": {
|
|
629
|
-
"name": "
|
|
629
|
+
"name": "Nt",
|
|
630
630
|
"module": "dist/primer-loader.js"
|
|
631
631
|
}
|
|
632
632
|
},
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
"kind": "js",
|
|
651
651
|
"name": "RedirectPayment",
|
|
652
652
|
"declaration": {
|
|
653
|
-
"name": "
|
|
653
|
+
"name": "Ye",
|
|
654
654
|
"module": "dist/primer-loader.js"
|
|
655
655
|
}
|
|
656
656
|
},
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
"kind": "js",
|
|
683
683
|
"name": "VaultCvvInput",
|
|
684
684
|
"declaration": {
|
|
685
|
-
"name": "
|
|
685
|
+
"name": "le",
|
|
686
686
|
"module": "dist/primer-loader.js"
|
|
687
687
|
}
|
|
688
688
|
},
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
"kind": "js",
|
|
691
691
|
"name": "VaultDeleteConfirmation",
|
|
692
692
|
"declaration": {
|
|
693
|
-
"name": "
|
|
693
|
+
"name": "Ie",
|
|
694
694
|
"module": "dist/primer-loader.js"
|
|
695
695
|
}
|
|
696
696
|
},
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
"kind": "js",
|
|
699
699
|
"name": "VaultEmptyState",
|
|
700
700
|
"declaration": {
|
|
701
|
-
"name": "
|
|
701
|
+
"name": "it",
|
|
702
702
|
"module": "dist/primer-loader.js"
|
|
703
703
|
}
|
|
704
704
|
},
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
"kind": "js",
|
|
707
707
|
"name": "VaultErrorMessage",
|
|
708
708
|
"declaration": {
|
|
709
|
-
"name": "
|
|
709
|
+
"name": "ze",
|
|
710
710
|
"module": "dist/primer-loader.js"
|
|
711
711
|
}
|
|
712
712
|
},
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
"kind": "js",
|
|
731
731
|
"name": "VaultPaymentMethodItem",
|
|
732
732
|
"declaration": {
|
|
733
|
-
"name": "
|
|
733
|
+
"name": "ke",
|
|
734
734
|
"module": "dist/primer-loader.js"
|
|
735
735
|
}
|
|
736
736
|
},
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
"kind": "js",
|
|
747
747
|
"name": "injectDarkTheme",
|
|
748
748
|
"declaration": {
|
|
749
|
-
"name": "
|
|
749
|
+
"name": "dy",
|
|
750
750
|
"module": "dist/primer-loader.js"
|
|
751
751
|
}
|
|
752
752
|
},
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
"kind": "js",
|
|
755
755
|
"name": "injectLightTheme",
|
|
756
756
|
"declaration": {
|
|
757
|
-
"name": "
|
|
757
|
+
"name": "ly",
|
|
758
758
|
"module": "dist/primer-loader.js"
|
|
759
759
|
}
|
|
760
760
|
},
|
|
@@ -762,7 +762,7 @@
|
|
|
762
762
|
"kind": "js",
|
|
763
763
|
"name": "injectLoaderStyles",
|
|
764
764
|
"declaration": {
|
|
765
|
-
"name": "
|
|
765
|
+
"name": "bd",
|
|
766
766
|
"module": "dist/primer-loader.js"
|
|
767
767
|
}
|
|
768
768
|
},
|
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
"kind": "js",
|
|
771
771
|
"name": "injectThemeStyles",
|
|
772
772
|
"declaration": {
|
|
773
|
-
"name": "
|
|
773
|
+
"name": "Cd",
|
|
774
774
|
"module": "dist/primer-loader.js"
|
|
775
775
|
}
|
|
776
776
|
},
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
"kind": "js",
|
|
779
779
|
"name": "loadPrimer",
|
|
780
780
|
"declaration": {
|
|
781
|
-
"name": "
|
|
781
|
+
"name": "SO",
|
|
782
782
|
"module": "dist/primer-loader.js"
|
|
783
783
|
}
|
|
784
784
|
}
|
|
@@ -1666,7 +1666,7 @@
|
|
|
1666
1666
|
},
|
|
1667
1667
|
{
|
|
1668
1668
|
"kind": "javascript-module",
|
|
1669
|
-
"path": "dist/chunks/ar.
|
|
1669
|
+
"path": "dist/chunks/ar.E4O36EC6.js",
|
|
1670
1670
|
"declarations": [
|
|
1671
1671
|
{
|
|
1672
1672
|
"kind": "variable",
|
|
@@ -1680,14 +1680,14 @@
|
|
|
1680
1680
|
"name": "templates",
|
|
1681
1681
|
"declaration": {
|
|
1682
1682
|
"name": "o",
|
|
1683
|
-
"module": "dist/chunks/ar.
|
|
1683
|
+
"module": "dist/chunks/ar.E4O36EC6.js"
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
1686
|
]
|
|
1687
1687
|
},
|
|
1688
1688
|
{
|
|
1689
1689
|
"kind": "javascript-module",
|
|
1690
|
-
"path": "dist/chunks/bg.
|
|
1690
|
+
"path": "dist/chunks/bg.PK6JKEHS.js",
|
|
1691
1691
|
"declarations": [
|
|
1692
1692
|
{
|
|
1693
1693
|
"kind": "variable",
|
|
@@ -1701,14 +1701,14 @@
|
|
|
1701
1701
|
"name": "templates",
|
|
1702
1702
|
"declaration": {
|
|
1703
1703
|
"name": "o",
|
|
1704
|
-
"module": "dist/chunks/bg.
|
|
1704
|
+
"module": "dist/chunks/bg.PK6JKEHS.js"
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
1707
|
]
|
|
1708
1708
|
},
|
|
1709
1709
|
{
|
|
1710
1710
|
"kind": "javascript-module",
|
|
1711
|
-
"path": "dist/chunks/ca.
|
|
1711
|
+
"path": "dist/chunks/ca.OTUBI37X.js",
|
|
1712
1712
|
"declarations": [
|
|
1713
1713
|
{
|
|
1714
1714
|
"kind": "variable",
|
|
@@ -1722,14 +1722,14 @@
|
|
|
1722
1722
|
"name": "templates",
|
|
1723
1723
|
"declaration": {
|
|
1724
1724
|
"name": "i",
|
|
1725
|
-
"module": "dist/chunks/ca.
|
|
1725
|
+
"module": "dist/chunks/ca.OTUBI37X.js"
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
1728
|
]
|
|
1729
1729
|
},
|
|
1730
1730
|
{
|
|
1731
1731
|
"kind": "javascript-module",
|
|
1732
|
-
"path": "dist/chunks/chunk.
|
|
1732
|
+
"path": "dist/chunks/chunk.MBXVVM2T.js",
|
|
1733
1733
|
"declarations": [
|
|
1734
1734
|
{
|
|
1735
1735
|
"kind": "variable",
|
|
@@ -1737,7 +1737,7 @@
|
|
|
1737
1737
|
"type": {
|
|
1738
1738
|
"text": "object"
|
|
1739
1739
|
},
|
|
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\"}"
|
|
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\",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
1741
|
}
|
|
1742
1742
|
],
|
|
1743
1743
|
"exports": [
|
|
@@ -1746,7 +1746,7 @@
|
|
|
1746
1746
|
"name": "a",
|
|
1747
1747
|
"declaration": {
|
|
1748
1748
|
"name": "t",
|
|
1749
|
-
"module": "dist/chunks/chunk.
|
|
1749
|
+
"module": "dist/chunks/chunk.MBXVVM2T.js"
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
]
|
|
@@ -1875,7 +1875,7 @@
|
|
|
1875
1875
|
},
|
|
1876
1876
|
{
|
|
1877
1877
|
"kind": "javascript-module",
|
|
1878
|
-
"path": "dist/chunks/cs.
|
|
1878
|
+
"path": "dist/chunks/cs.THPV6MYZ.js",
|
|
1879
1879
|
"declarations": [
|
|
1880
1880
|
{
|
|
1881
1881
|
"kind": "variable",
|
|
@@ -1889,14 +1889,14 @@
|
|
|
1889
1889
|
"name": "templates",
|
|
1890
1890
|
"declaration": {
|
|
1891
1891
|
"name": "n",
|
|
1892
|
-
"module": "dist/chunks/cs.
|
|
1892
|
+
"module": "dist/chunks/cs.THPV6MYZ.js"
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
1895
|
]
|
|
1896
1896
|
},
|
|
1897
1897
|
{
|
|
1898
1898
|
"kind": "javascript-module",
|
|
1899
|
-
"path": "dist/chunks/da.
|
|
1899
|
+
"path": "dist/chunks/da.T6YM33IA.js",
|
|
1900
1900
|
"declarations": [
|
|
1901
1901
|
{
|
|
1902
1902
|
"kind": "variable",
|
|
@@ -1910,14 +1910,14 @@
|
|
|
1910
1910
|
"name": "templates",
|
|
1911
1911
|
"declaration": {
|
|
1912
1912
|
"name": "a",
|
|
1913
|
-
"module": "dist/chunks/da.
|
|
1913
|
+
"module": "dist/chunks/da.T6YM33IA.js"
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
1916
1916
|
]
|
|
1917
1917
|
},
|
|
1918
1918
|
{
|
|
1919
1919
|
"kind": "javascript-module",
|
|
1920
|
-
"path": "dist/chunks/de.
|
|
1920
|
+
"path": "dist/chunks/de.5OGX2NED.js",
|
|
1921
1921
|
"declarations": [
|
|
1922
1922
|
{
|
|
1923
1923
|
"kind": "variable",
|
|
@@ -1931,14 +1931,14 @@
|
|
|
1931
1931
|
"name": "templates",
|
|
1932
1932
|
"declaration": {
|
|
1933
1933
|
"name": "t",
|
|
1934
|
-
"module": "dist/chunks/de.
|
|
1934
|
+
"module": "dist/chunks/de.5OGX2NED.js"
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
1937
1937
|
]
|
|
1938
1938
|
},
|
|
1939
1939
|
{
|
|
1940
1940
|
"kind": "javascript-module",
|
|
1941
|
-
"path": "dist/chunks/el.
|
|
1941
|
+
"path": "dist/chunks/el.YRAV7ELP.js",
|
|
1942
1942
|
"declarations": [
|
|
1943
1943
|
{
|
|
1944
1944
|
"kind": "variable",
|
|
@@ -1952,14 +1952,14 @@
|
|
|
1952
1952
|
"name": "templates",
|
|
1953
1953
|
"declaration": {
|
|
1954
1954
|
"name": "o",
|
|
1955
|
-
"module": "dist/chunks/el.
|
|
1955
|
+
"module": "dist/chunks/el.YRAV7ELP.js"
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
1958
|
]
|
|
1959
1959
|
},
|
|
1960
1960
|
{
|
|
1961
1961
|
"kind": "javascript-module",
|
|
1962
|
-
"path": "dist/chunks/en-GB.
|
|
1962
|
+
"path": "dist/chunks/en-GB.6IEVRFTK.js",
|
|
1963
1963
|
"declarations": [
|
|
1964
1964
|
{
|
|
1965
1965
|
"kind": "variable",
|
|
@@ -1973,14 +1973,14 @@
|
|
|
1973
1973
|
"name": "templates",
|
|
1974
1974
|
"declaration": {
|
|
1975
1975
|
"name": "o",
|
|
1976
|
-
"module": "dist/chunks/en-GB.
|
|
1976
|
+
"module": "dist/chunks/en-GB.6IEVRFTK.js"
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
1979
|
]
|
|
1980
1980
|
},
|
|
1981
1981
|
{
|
|
1982
1982
|
"kind": "javascript-module",
|
|
1983
|
-
"path": "dist/chunks/en.
|
|
1983
|
+
"path": "dist/chunks/en.OBBZZ45H.js",
|
|
1984
1984
|
"declarations": [
|
|
1985
1985
|
{
|
|
1986
1986
|
"kind": "variable",
|
|
@@ -1994,14 +1994,14 @@
|
|
|
1994
1994
|
"name": "templates",
|
|
1995
1995
|
"declaration": {
|
|
1996
1996
|
"name": "o",
|
|
1997
|
-
"module": "dist/chunks/en.
|
|
1997
|
+
"module": "dist/chunks/en.OBBZZ45H.js"
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
]
|
|
2001
2001
|
},
|
|
2002
2002
|
{
|
|
2003
2003
|
"kind": "javascript-module",
|
|
2004
|
-
"path": "dist/chunks/es-AR.
|
|
2004
|
+
"path": "dist/chunks/es-AR.KUNVD6SX.js",
|
|
2005
2005
|
"declarations": [
|
|
2006
2006
|
{
|
|
2007
2007
|
"kind": "variable",
|
|
@@ -2015,14 +2015,14 @@
|
|
|
2015
2015
|
"name": "templates",
|
|
2016
2016
|
"declaration": {
|
|
2017
2017
|
"name": "i",
|
|
2018
|
-
"module": "dist/chunks/es-AR.
|
|
2018
|
+
"module": "dist/chunks/es-AR.KUNVD6SX.js"
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
]
|
|
2022
2022
|
},
|
|
2023
2023
|
{
|
|
2024
2024
|
"kind": "javascript-module",
|
|
2025
|
-
"path": "dist/chunks/es-MX.
|
|
2025
|
+
"path": "dist/chunks/es-MX.YIGVIDM6.js",
|
|
2026
2026
|
"declarations": [
|
|
2027
2027
|
{
|
|
2028
2028
|
"kind": "variable",
|
|
@@ -2036,14 +2036,14 @@
|
|
|
2036
2036
|
"name": "templates",
|
|
2037
2037
|
"declaration": {
|
|
2038
2038
|
"name": "t",
|
|
2039
|
-
"module": "dist/chunks/es-MX.
|
|
2039
|
+
"module": "dist/chunks/es-MX.YIGVIDM6.js"
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
2042
|
]
|
|
2043
2043
|
},
|
|
2044
2044
|
{
|
|
2045
2045
|
"kind": "javascript-module",
|
|
2046
|
-
"path": "dist/chunks/es.
|
|
2046
|
+
"path": "dist/chunks/es.CJZT56YE.js",
|
|
2047
2047
|
"declarations": [
|
|
2048
2048
|
{
|
|
2049
2049
|
"kind": "variable",
|
|
@@ -2057,14 +2057,14 @@
|
|
|
2057
2057
|
"name": "templates",
|
|
2058
2058
|
"declaration": {
|
|
2059
2059
|
"name": "i",
|
|
2060
|
-
"module": "dist/chunks/es.
|
|
2060
|
+
"module": "dist/chunks/es.CJZT56YE.js"
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
2063
|
]
|
|
2064
2064
|
},
|
|
2065
2065
|
{
|
|
2066
2066
|
"kind": "javascript-module",
|
|
2067
|
-
"path": "dist/chunks/et-EE.
|
|
2067
|
+
"path": "dist/chunks/et-EE.HWMKJWNX.js",
|
|
2068
2068
|
"declarations": [
|
|
2069
2069
|
{
|
|
2070
2070
|
"kind": "variable",
|
|
@@ -2078,14 +2078,14 @@
|
|
|
2078
2078
|
"name": "templates",
|
|
2079
2079
|
"declaration": {
|
|
2080
2080
|
"name": "r",
|
|
2081
|
-
"module": "dist/chunks/et-EE.
|
|
2081
|
+
"module": "dist/chunks/et-EE.HWMKJWNX.js"
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
]
|
|
2085
2085
|
},
|
|
2086
2086
|
{
|
|
2087
2087
|
"kind": "javascript-module",
|
|
2088
|
-
"path": "dist/chunks/fi-FI.
|
|
2088
|
+
"path": "dist/chunks/fi-FI.7NJH7P3A.js",
|
|
2089
2089
|
"declarations": [
|
|
2090
2090
|
{
|
|
2091
2091
|
"kind": "variable",
|
|
@@ -2099,14 +2099,14 @@
|
|
|
2099
2099
|
"name": "templates",
|
|
2100
2100
|
"declaration": {
|
|
2101
2101
|
"name": "n",
|
|
2102
|
-
"module": "dist/chunks/fi-FI.
|
|
2102
|
+
"module": "dist/chunks/fi-FI.7NJH7P3A.js"
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
2105
|
]
|
|
2106
2106
|
},
|
|
2107
2107
|
{
|
|
2108
2108
|
"kind": "javascript-module",
|
|
2109
|
-
"path": "dist/chunks/fr.
|
|
2109
|
+
"path": "dist/chunks/fr.KRF4Y57O.js",
|
|
2110
2110
|
"declarations": [
|
|
2111
2111
|
{
|
|
2112
2112
|
"kind": "variable",
|
|
@@ -2120,14 +2120,14 @@
|
|
|
2120
2120
|
"name": "templates",
|
|
2121
2121
|
"declaration": {
|
|
2122
2122
|
"name": "i",
|
|
2123
|
-
"module": "dist/chunks/fr.
|
|
2123
|
+
"module": "dist/chunks/fr.KRF4Y57O.js"
|
|
2124
2124
|
}
|
|
2125
2125
|
}
|
|
2126
2126
|
]
|
|
2127
2127
|
},
|
|
2128
2128
|
{
|
|
2129
2129
|
"kind": "javascript-module",
|
|
2130
|
-
"path": "dist/chunks/he.
|
|
2130
|
+
"path": "dist/chunks/he.XI3WARES.js",
|
|
2131
2131
|
"declarations": [
|
|
2132
2132
|
{
|
|
2133
2133
|
"kind": "variable",
|
|
@@ -2141,14 +2141,14 @@
|
|
|
2141
2141
|
"name": "templates",
|
|
2142
2142
|
"declaration": {
|
|
2143
2143
|
"name": "o",
|
|
2144
|
-
"module": "dist/chunks/he.
|
|
2144
|
+
"module": "dist/chunks/he.XI3WARES.js"
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
2147
|
]
|
|
2148
2148
|
},
|
|
2149
2149
|
{
|
|
2150
2150
|
"kind": "javascript-module",
|
|
2151
|
-
"path": "dist/chunks/hr.
|
|
2151
|
+
"path": "dist/chunks/hr.XYKILVHU.js",
|
|
2152
2152
|
"declarations": [
|
|
2153
2153
|
{
|
|
2154
2154
|
"kind": "variable",
|
|
@@ -2162,14 +2162,14 @@
|
|
|
2162
2162
|
"name": "templates",
|
|
2163
2163
|
"declaration": {
|
|
2164
2164
|
"name": "t",
|
|
2165
|
-
"module": "dist/chunks/hr.
|
|
2165
|
+
"module": "dist/chunks/hr.XYKILVHU.js"
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
2168
|
]
|
|
2169
2169
|
},
|
|
2170
2170
|
{
|
|
2171
2171
|
"kind": "javascript-module",
|
|
2172
|
-
"path": "dist/chunks/hu.
|
|
2172
|
+
"path": "dist/chunks/hu.UDGJJAFE.js",
|
|
2173
2173
|
"declarations": [
|
|
2174
2174
|
{
|
|
2175
2175
|
"kind": "variable",
|
|
@@ -2183,14 +2183,14 @@
|
|
|
2183
2183
|
"name": "templates",
|
|
2184
2184
|
"declaration": {
|
|
2185
2185
|
"name": "s",
|
|
2186
|
-
"module": "dist/chunks/hu.
|
|
2186
|
+
"module": "dist/chunks/hu.UDGJJAFE.js"
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
]
|
|
2190
2190
|
},
|
|
2191
2191
|
{
|
|
2192
2192
|
"kind": "javascript-module",
|
|
2193
|
-
"path": "dist/chunks/id.
|
|
2193
|
+
"path": "dist/chunks/id.7ZN2WKC2.js",
|
|
2194
2194
|
"declarations": [
|
|
2195
2195
|
{
|
|
2196
2196
|
"kind": "variable",
|
|
@@ -2204,14 +2204,14 @@
|
|
|
2204
2204
|
"name": "templates",
|
|
2205
2205
|
"declaration": {
|
|
2206
2206
|
"name": "r",
|
|
2207
|
-
"module": "dist/chunks/id.
|
|
2207
|
+
"module": "dist/chunks/id.7ZN2WKC2.js"
|
|
2208
2208
|
}
|
|
2209
2209
|
}
|
|
2210
2210
|
]
|
|
2211
2211
|
},
|
|
2212
2212
|
{
|
|
2213
2213
|
"kind": "javascript-module",
|
|
2214
|
-
"path": "dist/chunks/it.
|
|
2214
|
+
"path": "dist/chunks/it.VOYA3KT5.js",
|
|
2215
2215
|
"declarations": [
|
|
2216
2216
|
{
|
|
2217
2217
|
"kind": "variable",
|
|
@@ -2225,14 +2225,14 @@
|
|
|
2225
2225
|
"name": "templates",
|
|
2226
2226
|
"declaration": {
|
|
2227
2227
|
"name": "r",
|
|
2228
|
-
"module": "dist/chunks/it.
|
|
2228
|
+
"module": "dist/chunks/it.VOYA3KT5.js"
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
]
|
|
2232
2232
|
},
|
|
2233
2233
|
{
|
|
2234
2234
|
"kind": "javascript-module",
|
|
2235
|
-
"path": "dist/chunks/ja.
|
|
2235
|
+
"path": "dist/chunks/ja.POQ2E2L3.js",
|
|
2236
2236
|
"declarations": [
|
|
2237
2237
|
{
|
|
2238
2238
|
"kind": "variable",
|
|
@@ -2246,14 +2246,14 @@
|
|
|
2246
2246
|
"name": "templates",
|
|
2247
2247
|
"declaration": {
|
|
2248
2248
|
"name": "o",
|
|
2249
|
-
"module": "dist/chunks/ja.
|
|
2249
|
+
"module": "dist/chunks/ja.POQ2E2L3.js"
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
]
|
|
2253
2253
|
},
|
|
2254
2254
|
{
|
|
2255
2255
|
"kind": "javascript-module",
|
|
2256
|
-
"path": "dist/chunks/ko.
|
|
2256
|
+
"path": "dist/chunks/ko.MSGGDR35.js",
|
|
2257
2257
|
"declarations": [
|
|
2258
2258
|
{
|
|
2259
2259
|
"kind": "variable",
|
|
@@ -2267,14 +2267,14 @@
|
|
|
2267
2267
|
"name": "templates",
|
|
2268
2268
|
"declaration": {
|
|
2269
2269
|
"name": "o",
|
|
2270
|
-
"module": "dist/chunks/ko.
|
|
2270
|
+
"module": "dist/chunks/ko.MSGGDR35.js"
|
|
2271
2271
|
}
|
|
2272
2272
|
}
|
|
2273
2273
|
]
|
|
2274
2274
|
},
|
|
2275
2275
|
{
|
|
2276
2276
|
"kind": "javascript-module",
|
|
2277
|
-
"path": "dist/chunks/lt-LT.
|
|
2277
|
+
"path": "dist/chunks/lt-LT.QPDWC7EL.js",
|
|
2278
2278
|
"declarations": [
|
|
2279
2279
|
{
|
|
2280
2280
|
"kind": "variable",
|
|
@@ -2288,14 +2288,14 @@
|
|
|
2288
2288
|
"name": "templates",
|
|
2289
2289
|
"declaration": {
|
|
2290
2290
|
"name": "t",
|
|
2291
|
-
"module": "dist/chunks/lt-LT.
|
|
2291
|
+
"module": "dist/chunks/lt-LT.QPDWC7EL.js"
|
|
2292
2292
|
}
|
|
2293
2293
|
}
|
|
2294
2294
|
]
|
|
2295
2295
|
},
|
|
2296
2296
|
{
|
|
2297
2297
|
"kind": "javascript-module",
|
|
2298
|
-
"path": "dist/chunks/lt.
|
|
2298
|
+
"path": "dist/chunks/lt.PGXRTZVX.js",
|
|
2299
2299
|
"declarations": [
|
|
2300
2300
|
{
|
|
2301
2301
|
"kind": "variable",
|
|
@@ -2309,14 +2309,14 @@
|
|
|
2309
2309
|
"name": "templates",
|
|
2310
2310
|
"declaration": {
|
|
2311
2311
|
"name": "t",
|
|
2312
|
-
"module": "dist/chunks/lt.
|
|
2312
|
+
"module": "dist/chunks/lt.PGXRTZVX.js"
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
]
|
|
2316
2316
|
},
|
|
2317
2317
|
{
|
|
2318
2318
|
"kind": "javascript-module",
|
|
2319
|
-
"path": "dist/chunks/lv-LV.
|
|
2319
|
+
"path": "dist/chunks/lv-LV.MPIETXH7.js",
|
|
2320
2320
|
"declarations": [
|
|
2321
2321
|
{
|
|
2322
2322
|
"kind": "variable",
|
|
@@ -2330,14 +2330,14 @@
|
|
|
2330
2330
|
"name": "templates",
|
|
2331
2331
|
"declaration": {
|
|
2332
2332
|
"name": "t",
|
|
2333
|
-
"module": "dist/chunks/lv-LV.
|
|
2333
|
+
"module": "dist/chunks/lv-LV.MPIETXH7.js"
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
2336
|
]
|
|
2337
2337
|
},
|
|
2338
2338
|
{
|
|
2339
2339
|
"kind": "javascript-module",
|
|
2340
|
-
"path": "dist/chunks/lv.
|
|
2340
|
+
"path": "dist/chunks/lv.K76XV5XK.js",
|
|
2341
2341
|
"declarations": [
|
|
2342
2342
|
{
|
|
2343
2343
|
"kind": "variable",
|
|
@@ -2351,14 +2351,14 @@
|
|
|
2351
2351
|
"name": "templates",
|
|
2352
2352
|
"declaration": {
|
|
2353
2353
|
"name": "t",
|
|
2354
|
-
"module": "dist/chunks/lv.
|
|
2354
|
+
"module": "dist/chunks/lv.K76XV5XK.js"
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
]
|
|
2358
2358
|
},
|
|
2359
2359
|
{
|
|
2360
2360
|
"kind": "javascript-module",
|
|
2361
|
-
"path": "dist/chunks/ms.
|
|
2361
|
+
"path": "dist/chunks/ms.TLDQ5MRG.js",
|
|
2362
2362
|
"declarations": [
|
|
2363
2363
|
{
|
|
2364
2364
|
"kind": "variable",
|
|
@@ -2372,14 +2372,14 @@
|
|
|
2372
2372
|
"name": "templates",
|
|
2373
2373
|
"declaration": {
|
|
2374
2374
|
"name": "i",
|
|
2375
|
-
"module": "dist/chunks/ms.
|
|
2375
|
+
"module": "dist/chunks/ms.TLDQ5MRG.js"
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
2378
|
]
|
|
2379
2379
|
},
|
|
2380
2380
|
{
|
|
2381
2381
|
"kind": "javascript-module",
|
|
2382
|
-
"path": "dist/chunks/nb.
|
|
2382
|
+
"path": "dist/chunks/nb.5C4GCSHD.js",
|
|
2383
2383
|
"declarations": [
|
|
2384
2384
|
{
|
|
2385
2385
|
"kind": "variable",
|
|
@@ -2393,14 +2393,14 @@
|
|
|
2393
2393
|
"name": "templates",
|
|
2394
2394
|
"declaration": {
|
|
2395
2395
|
"name": "a",
|
|
2396
|
-
"module": "dist/chunks/nb.
|
|
2396
|
+
"module": "dist/chunks/nb.5C4GCSHD.js"
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
2399
2399
|
]
|
|
2400
2400
|
},
|
|
2401
2401
|
{
|
|
2402
2402
|
"kind": "javascript-module",
|
|
2403
|
-
"path": "dist/chunks/nl.
|
|
2403
|
+
"path": "dist/chunks/nl.MPB5NUZQ.js",
|
|
2404
2404
|
"declarations": [
|
|
2405
2405
|
{
|
|
2406
2406
|
"kind": "variable",
|
|
@@ -2414,14 +2414,14 @@
|
|
|
2414
2414
|
"name": "templates",
|
|
2415
2415
|
"declaration": {
|
|
2416
2416
|
"name": "n",
|
|
2417
|
-
"module": "dist/chunks/nl.
|
|
2417
|
+
"module": "dist/chunks/nl.MPB5NUZQ.js"
|
|
2418
2418
|
}
|
|
2419
2419
|
}
|
|
2420
2420
|
]
|
|
2421
2421
|
},
|
|
2422
2422
|
{
|
|
2423
2423
|
"kind": "javascript-module",
|
|
2424
|
-
"path": "dist/chunks/nl_NL.
|
|
2424
|
+
"path": "dist/chunks/nl_NL.MEGWQA4L.js",
|
|
2425
2425
|
"declarations": [
|
|
2426
2426
|
{
|
|
2427
2427
|
"kind": "variable",
|
|
@@ -2435,14 +2435,14 @@
|
|
|
2435
2435
|
"name": "templates",
|
|
2436
2436
|
"declaration": {
|
|
2437
2437
|
"name": "n",
|
|
2438
|
-
"module": "dist/chunks/nl_NL.
|
|
2438
|
+
"module": "dist/chunks/nl_NL.MEGWQA4L.js"
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
2441
2441
|
]
|
|
2442
2442
|
},
|
|
2443
2443
|
{
|
|
2444
2444
|
"kind": "javascript-module",
|
|
2445
|
-
"path": "dist/chunks/pl.
|
|
2445
|
+
"path": "dist/chunks/pl.G5NUFTFJ.js",
|
|
2446
2446
|
"declarations": [
|
|
2447
2447
|
{
|
|
2448
2448
|
"kind": "variable",
|
|
@@ -2456,14 +2456,14 @@
|
|
|
2456
2456
|
"name": "templates",
|
|
2457
2457
|
"declaration": {
|
|
2458
2458
|
"name": "i",
|
|
2459
|
-
"module": "dist/chunks/pl.
|
|
2459
|
+
"module": "dist/chunks/pl.G5NUFTFJ.js"
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
]
|
|
2463
2463
|
},
|
|
2464
2464
|
{
|
|
2465
2465
|
"kind": "javascript-module",
|
|
2466
|
-
"path": "dist/chunks/pt-BR.
|
|
2466
|
+
"path": "dist/chunks/pt-BR.YUAN3GE5.js",
|
|
2467
2467
|
"declarations": [
|
|
2468
2468
|
{
|
|
2469
2469
|
"kind": "variable",
|
|
@@ -2477,14 +2477,14 @@
|
|
|
2477
2477
|
"name": "templates",
|
|
2478
2478
|
"declaration": {
|
|
2479
2479
|
"name": "t",
|
|
2480
|
-
"module": "dist/chunks/pt-BR.
|
|
2480
|
+
"module": "dist/chunks/pt-BR.YUAN3GE5.js"
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
2483
|
]
|
|
2484
2484
|
},
|
|
2485
2485
|
{
|
|
2486
2486
|
"kind": "javascript-module",
|
|
2487
|
-
"path": "dist/chunks/pt.
|
|
2487
|
+
"path": "dist/chunks/pt.U7KK23LM.js",
|
|
2488
2488
|
"declarations": [
|
|
2489
2489
|
{
|
|
2490
2490
|
"kind": "variable",
|
|
@@ -2498,14 +2498,14 @@
|
|
|
2498
2498
|
"name": "templates",
|
|
2499
2499
|
"declaration": {
|
|
2500
2500
|
"name": "t",
|
|
2501
|
-
"module": "dist/chunks/pt.
|
|
2501
|
+
"module": "dist/chunks/pt.U7KK23LM.js"
|
|
2502
2502
|
}
|
|
2503
2503
|
}
|
|
2504
2504
|
]
|
|
2505
2505
|
},
|
|
2506
2506
|
{
|
|
2507
2507
|
"kind": "javascript-module",
|
|
2508
|
-
"path": "dist/chunks/ro.
|
|
2508
|
+
"path": "dist/chunks/ro.V5C7DKLQ.js",
|
|
2509
2509
|
"declarations": [
|
|
2510
2510
|
{
|
|
2511
2511
|
"kind": "variable",
|
|
@@ -2519,14 +2519,14 @@
|
|
|
2519
2519
|
"name": "templates",
|
|
2520
2520
|
"declaration": {
|
|
2521
2521
|
"name": "i",
|
|
2522
|
-
"module": "dist/chunks/ro.
|
|
2522
|
+
"module": "dist/chunks/ro.V5C7DKLQ.js"
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
2525
|
]
|
|
2526
2526
|
},
|
|
2527
2527
|
{
|
|
2528
2528
|
"kind": "javascript-module",
|
|
2529
|
-
"path": "dist/chunks/ru.
|
|
2529
|
+
"path": "dist/chunks/ru.L7XTNV7J.js",
|
|
2530
2530
|
"declarations": [
|
|
2531
2531
|
{
|
|
2532
2532
|
"kind": "variable",
|
|
@@ -2540,14 +2540,14 @@
|
|
|
2540
2540
|
"name": "templates",
|
|
2541
2541
|
"declaration": {
|
|
2542
2542
|
"name": "o",
|
|
2543
|
-
"module": "dist/chunks/ru.
|
|
2543
|
+
"module": "dist/chunks/ru.L7XTNV7J.js"
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
2546
2546
|
]
|
|
2547
2547
|
},
|
|
2548
2548
|
{
|
|
2549
2549
|
"kind": "javascript-module",
|
|
2550
|
-
"path": "dist/chunks/sk.
|
|
2550
|
+
"path": "dist/chunks/sk.B5NKJNWF.js",
|
|
2551
2551
|
"declarations": [
|
|
2552
2552
|
{
|
|
2553
2553
|
"kind": "variable",
|
|
@@ -2561,14 +2561,14 @@
|
|
|
2561
2561
|
"name": "templates",
|
|
2562
2562
|
"declaration": {
|
|
2563
2563
|
"name": "r",
|
|
2564
|
-
"module": "dist/chunks/sk.
|
|
2564
|
+
"module": "dist/chunks/sk.B5NKJNWF.js"
|
|
2565
2565
|
}
|
|
2566
2566
|
}
|
|
2567
2567
|
]
|
|
2568
2568
|
},
|
|
2569
2569
|
{
|
|
2570
2570
|
"kind": "javascript-module",
|
|
2571
|
-
"path": "dist/chunks/sl.
|
|
2571
|
+
"path": "dist/chunks/sl.PO5G6BSL.js",
|
|
2572
2572
|
"declarations": [
|
|
2573
2573
|
{
|
|
2574
2574
|
"kind": "variable",
|
|
@@ -2582,14 +2582,14 @@
|
|
|
2582
2582
|
"name": "templates",
|
|
2583
2583
|
"declaration": {
|
|
2584
2584
|
"name": "r",
|
|
2585
|
-
"module": "dist/chunks/sl.
|
|
2585
|
+
"module": "dist/chunks/sl.PO5G6BSL.js"
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
2588
|
]
|
|
2589
2589
|
},
|
|
2590
2590
|
{
|
|
2591
2591
|
"kind": "javascript-module",
|
|
2592
|
-
"path": "dist/chunks/sr-RS.
|
|
2592
|
+
"path": "dist/chunks/sr-RS.5T2KJ2PK.js",
|
|
2593
2593
|
"declarations": [
|
|
2594
2594
|
{
|
|
2595
2595
|
"kind": "variable",
|
|
@@ -2603,14 +2603,14 @@
|
|
|
2603
2603
|
"name": "templates",
|
|
2604
2604
|
"declaration": {
|
|
2605
2605
|
"name": "o",
|
|
2606
|
-
"module": "dist/chunks/sr-RS.
|
|
2606
|
+
"module": "dist/chunks/sr-RS.5T2KJ2PK.js"
|
|
2607
2607
|
}
|
|
2608
2608
|
}
|
|
2609
2609
|
]
|
|
2610
2610
|
},
|
|
2611
2611
|
{
|
|
2612
2612
|
"kind": "javascript-module",
|
|
2613
|
-
"path": "dist/chunks/sv.
|
|
2613
|
+
"path": "dist/chunks/sv.XXKSWUSH.js",
|
|
2614
2614
|
"declarations": [
|
|
2615
2615
|
{
|
|
2616
2616
|
"kind": "variable",
|
|
@@ -2624,14 +2624,14 @@
|
|
|
2624
2624
|
"name": "templates",
|
|
2625
2625
|
"declaration": {
|
|
2626
2626
|
"name": "n",
|
|
2627
|
-
"module": "dist/chunks/sv.
|
|
2627
|
+
"module": "dist/chunks/sv.XXKSWUSH.js"
|
|
2628
2628
|
}
|
|
2629
2629
|
}
|
|
2630
2630
|
]
|
|
2631
2631
|
},
|
|
2632
2632
|
{
|
|
2633
2633
|
"kind": "javascript-module",
|
|
2634
|
-
"path": "dist/chunks/th.
|
|
2634
|
+
"path": "dist/chunks/th.7HQVVBDC.js",
|
|
2635
2635
|
"declarations": [
|
|
2636
2636
|
{
|
|
2637
2637
|
"kind": "variable",
|
|
@@ -2645,14 +2645,14 @@
|
|
|
2645
2645
|
"name": "templates",
|
|
2646
2646
|
"declaration": {
|
|
2647
2647
|
"name": "o",
|
|
2648
|
-
"module": "dist/chunks/th.
|
|
2648
|
+
"module": "dist/chunks/th.7HQVVBDC.js"
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
2651
|
]
|
|
2652
2652
|
},
|
|
2653
2653
|
{
|
|
2654
2654
|
"kind": "javascript-module",
|
|
2655
|
-
"path": "dist/chunks/tr.
|
|
2655
|
+
"path": "dist/chunks/tr.XK3UIRBK.js",
|
|
2656
2656
|
"declarations": [
|
|
2657
2657
|
{
|
|
2658
2658
|
"kind": "variable",
|
|
@@ -2666,14 +2666,14 @@
|
|
|
2666
2666
|
"name": "templates",
|
|
2667
2667
|
"declaration": {
|
|
2668
2668
|
"name": "n",
|
|
2669
|
-
"module": "dist/chunks/tr.
|
|
2669
|
+
"module": "dist/chunks/tr.XK3UIRBK.js"
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
2672
|
]
|
|
2673
2673
|
},
|
|
2674
2674
|
{
|
|
2675
2675
|
"kind": "javascript-module",
|
|
2676
|
-
"path": "dist/chunks/uk-UA.
|
|
2676
|
+
"path": "dist/chunks/uk-UA.PJMQMEKE.js",
|
|
2677
2677
|
"declarations": [
|
|
2678
2678
|
{
|
|
2679
2679
|
"kind": "variable",
|
|
@@ -2687,14 +2687,14 @@
|
|
|
2687
2687
|
"name": "templates",
|
|
2688
2688
|
"declaration": {
|
|
2689
2689
|
"name": "o",
|
|
2690
|
-
"module": "dist/chunks/uk-UA.
|
|
2690
|
+
"module": "dist/chunks/uk-UA.PJMQMEKE.js"
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
2693
|
]
|
|
2694
2694
|
},
|
|
2695
2695
|
{
|
|
2696
2696
|
"kind": "javascript-module",
|
|
2697
|
-
"path": "dist/chunks/vi.
|
|
2697
|
+
"path": "dist/chunks/vi.KQNTEEX5.js",
|
|
2698
2698
|
"declarations": [
|
|
2699
2699
|
{
|
|
2700
2700
|
"kind": "variable",
|
|
@@ -2708,7 +2708,7 @@
|
|
|
2708
2708
|
"name": "templates",
|
|
2709
2709
|
"declaration": {
|
|
2710
2710
|
"name": "a",
|
|
2711
|
-
"module": "dist/chunks/vi.
|
|
2711
|
+
"module": "dist/chunks/vi.KQNTEEX5.js"
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
2714
2714
|
]
|
|
@@ -2736,7 +2736,7 @@
|
|
|
2736
2736
|
},
|
|
2737
2737
|
{
|
|
2738
2738
|
"kind": "javascript-module",
|
|
2739
|
-
"path": "dist/chunks/zh-CN.
|
|
2739
|
+
"path": "dist/chunks/zh-CN.5YAD67HK.js",
|
|
2740
2740
|
"declarations": [
|
|
2741
2741
|
{
|
|
2742
2742
|
"kind": "variable",
|
|
@@ -2750,14 +2750,14 @@
|
|
|
2750
2750
|
"name": "templates",
|
|
2751
2751
|
"declaration": {
|
|
2752
2752
|
"name": "o",
|
|
2753
|
-
"module": "dist/chunks/zh-CN.
|
|
2753
|
+
"module": "dist/chunks/zh-CN.5YAD67HK.js"
|
|
2754
2754
|
}
|
|
2755
2755
|
}
|
|
2756
2756
|
]
|
|
2757
2757
|
},
|
|
2758
2758
|
{
|
|
2759
2759
|
"kind": "javascript-module",
|
|
2760
|
-
"path": "dist/chunks/zh-HK.
|
|
2760
|
+
"path": "dist/chunks/zh-HK.I5LZOTED.js",
|
|
2761
2761
|
"declarations": [
|
|
2762
2762
|
{
|
|
2763
2763
|
"kind": "variable",
|
|
@@ -2771,14 +2771,14 @@
|
|
|
2771
2771
|
"name": "templates",
|
|
2772
2772
|
"declaration": {
|
|
2773
2773
|
"name": "o",
|
|
2774
|
-
"module": "dist/chunks/zh-HK.
|
|
2774
|
+
"module": "dist/chunks/zh-HK.I5LZOTED.js"
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
2777
|
]
|
|
2778
2778
|
},
|
|
2779
2779
|
{
|
|
2780
2780
|
"kind": "javascript-module",
|
|
2781
|
-
"path": "dist/chunks/zh-TW.
|
|
2781
|
+
"path": "dist/chunks/zh-TW.UWEXAFT4.js",
|
|
2782
2782
|
"declarations": [
|
|
2783
2783
|
{
|
|
2784
2784
|
"kind": "variable",
|
|
@@ -2792,7 +2792,7 @@
|
|
|
2792
2792
|
"name": "templates",
|
|
2793
2793
|
"declaration": {
|
|
2794
2794
|
"name": "o",
|
|
2795
|
-
"module": "dist/chunks/zh-TW.
|
|
2795
|
+
"module": "dist/chunks/zh-TW.UWEXAFT4.js"
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
2798
|
]
|
|
@@ -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": [
|
|
@@ -10060,9 +10060,19 @@
|
|
|
10060
10060
|
"name": "setupCardFormTask",
|
|
10061
10061
|
"privacy": "private",
|
|
10062
10062
|
"readonly": true,
|
|
10063
|
-
"default": "new Task(this, { task: ([methods]) => { const method = methods?.find( (pm) => pm.type === PaymentMethodType.PAYMENT_CARD, ); if (!method) { return initialState; } const { cardNumber, cardExpiryDate, cardSecurityCode, cardholderName } = method.iframes; this.cardFormProvider.setValue({ cardholderNameInput: cardholderName, cardNumberInput: cardNumber, expiryInput: cardExpiryDate, cvvInput: cardSecurityCode, setCardholderName: (val: string) => { method.setCardholderName(val); if (this.shouldRequireCardholderName) { void method.validate().then((validationResult) => { const errors = validationResult?.validationErrors; const cardholderNameError = errors?.find( (error) => error.name === fieldToInputType.cardholderName, ); const controller = this.inputControllers.get( HostedInputType.CARD_HOLDER_NAME, ); if (controller) { controller.updateMetaFromValidation({ valid: false, error: cardholderNameError?.message || cardholderNameError?.error || null, errorCode: cardholderNameError?.message || cardholderNameError?.error || null, }); } }); } }, setCardNetwork: (val: string) => { this.selectedCardNetwork = val; }, validate: () => method.validate(), submit: (args) => method.submit(args), hideLabels: this.hideLabels, disabled: this.disabled, // New meta state management methods setSubmissionState: (submitted: boolean) => { this.inputControllers.forEach((controller) => { controller.setSubmitted(submitted); }); }, propagateValidationErrors: (errors: InputValidationError[]) => { if (!errors) { return; } errors.forEach((error) => { const fieldName = error.field || error.name; const errorMessage = error.message || error.error; const inputType = fieldToInputType[fieldName]; if (inputType) { const controller = this.inputControllers.get(inputType); if (controller) { const updateData = { valid: false, error: errorMessage, errorCode: errorMessage, // Use error message (localization key) instead of field name }; controller.updateMetaFromValidation(updateData); } } }); }, registerInputController: ( inputType: HostedInputType, controller: IHostedInputController, ) => { this.inputControllers.set(inputType, controller); }, unregisterInputController: (inputType: HostedInputType) => { this.inputControllers.delete(inputType); }, onUserInteraction: () => { this.sendPaymentMethodSelectionEvent(); this.checkAndSendPaymentDetailsEnteredEvent(); }, }); return true; }, args: () => [this.primerContext?.paymentMethods], })",
|
|
10063
|
+
"default": "new Task(this, { task: ([methods]) => { const method = methods?.find( (pm) => pm.type === PaymentMethodType.PAYMENT_CARD, ); if (!method) { return initialState; } const { cardNumber, cardExpiryDate, cardSecurityCode, cardholderName } = method.iframes; this.cardFormProvider.setValue({ cardholderNameInput: cardholderName, cardNumberInput: cardNumber, expiryInput: cardExpiryDate, cvvInput: cardSecurityCode, setCardholderName: (val: string) => { method.setCardholderName(val); if (this.shouldRequireCardholderName) { void method.validate().then((validationResult) => { const errors = validationResult?.validationErrors; const cardholderNameError = errors?.find( (error) => error.name === fieldToInputType.cardholderName, ); const controller = this.inputControllers.get( HostedInputType.CARD_HOLDER_NAME, ); if (controller) { controller.updateMetaFromValidation({ valid: false, error: cardholderNameError?.message || cardholderNameError?.error || null, errorCode: cardholderNameError?.message || cardholderNameError?.error || null, }); } }); } }, setCardNetwork: (val: string) => { this.selectedCardNetwork = val; }, validate: () => method.validate(), submit: (args) => method.submit(args), hideLabels: this.hideLabels, disabled: this.disabled, // New meta state management methods setSubmissionState: (submitted: boolean) => { this.inputControllers.forEach((controller) => { controller.setSubmitted(submitted); }); }, propagateValidationErrors: (errors: InputValidationError[]) => { if (!errors) { return; } errors.forEach((error) => { const fieldName = error.field || error.name; const errorMessage = error.message || error.error; const inputType = fieldToInputType[fieldName]; if (inputType) { const controller = this.inputControllers.get(inputType); if (controller) { const updateData = { valid: false, error: errorMessage, errorCode: errorMessage, // Use error message (localization key) instead of field name }; controller.updateMetaFromValidation(updateData); } } }); }, registerInputController: ( inputType: HostedInputType, controller: IHostedInputController, ) => { this.inputControllers.set(inputType, controller); }, unregisterInputController: (inputType: HostedInputType) => { this.inputControllers.delete(inputType); }, onUserInteraction: () => { this.clearStaleVaultSelection(); this.sendPaymentMethodSelectionEvent(); this.checkAndSendPaymentDetailsEnteredEvent(); }, }); return true; }, args: () => [this.primerContext?.paymentMethods], })",
|
|
10064
10064
|
"description": "Task to set up the card form with hosted inputs"
|
|
10065
10065
|
},
|
|
10066
|
+
{
|
|
10067
|
+
"kind": "method",
|
|
10068
|
+
"name": "clearStaleVaultSelection",
|
|
10069
|
+
"privacy": "private",
|
|
10070
|
+
"return": {
|
|
10071
|
+
"type": {
|
|
10072
|
+
"text": "void"
|
|
10073
|
+
}
|
|
10074
|
+
}
|
|
10075
|
+
},
|
|
10066
10076
|
{
|
|
10067
10077
|
"kind": "method",
|
|
10068
10078
|
"name": "sendPaymentMethodSelectionEvent",
|
|
@@ -13941,7 +13951,7 @@
|
|
|
13941
13951
|
{
|
|
13942
13952
|
"kind": "variable",
|
|
13943
13953
|
"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; } `"
|
|
13954
|
+
"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
13955
|
}
|
|
13946
13956
|
],
|
|
13947
13957
|
"exports": [
|
|
@@ -16363,24 +16373,6 @@
|
|
|
16363
16373
|
"privacy": "private",
|
|
16364
16374
|
"default": "null"
|
|
16365
16375
|
},
|
|
16366
|
-
{
|
|
16367
|
-
"kind": "field",
|
|
16368
|
-
"name": "cvvInputIsDirty",
|
|
16369
|
-
"type": {
|
|
16370
|
-
"text": "boolean"
|
|
16371
|
-
},
|
|
16372
|
-
"privacy": "private",
|
|
16373
|
-
"default": "false"
|
|
16374
|
-
},
|
|
16375
|
-
{
|
|
16376
|
-
"kind": "field",
|
|
16377
|
-
"name": "cvvInputIsBlurred",
|
|
16378
|
-
"type": {
|
|
16379
|
-
"text": "boolean"
|
|
16380
|
-
},
|
|
16381
|
-
"privacy": "private",
|
|
16382
|
-
"default": "false"
|
|
16383
|
-
},
|
|
16384
16376
|
{
|
|
16385
16377
|
"kind": "field",
|
|
16386
16378
|
"name": "cvvInput",
|
|
@@ -17031,6 +17023,11 @@
|
|
|
17031
17023
|
"name": "handleDeleteClick",
|
|
17032
17024
|
"privacy": "private",
|
|
17033
17025
|
"description": "Dispatch delete event"
|
|
17026
|
+
},
|
|
17027
|
+
{
|
|
17028
|
+
"kind": "field",
|
|
17029
|
+
"name": "handleCvvRowClick",
|
|
17030
|
+
"privacy": "private"
|
|
17034
17031
|
}
|
|
17035
17032
|
],
|
|
17036
17033
|
"attributes": [
|