@primer-io/primer-js 0.13.3 → 0.14.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/chunks/ar.TR6QET27.js +1 -0
  3. package/dist/chunks/bg.EJ7QNYMP.js +1 -0
  4. package/dist/chunks/ca.7C2IYV2P.js +1 -0
  5. package/dist/chunks/chunk.4VIC6WHG.js +2 -0
  6. package/dist/chunks/cs.JT4THDDV.js +1 -0
  7. package/dist/chunks/da.EM7SEPAQ.js +1 -0
  8. package/dist/chunks/de.K6IE7XOI.js +1 -0
  9. package/dist/chunks/el.3CKRNQD5.js +1 -0
  10. package/dist/chunks/en-GB.LG2PPT2V.js +1 -0
  11. package/dist/chunks/en.47EGLMYC.js +1 -0
  12. package/dist/chunks/es-AR.ND7EGZHB.js +1 -0
  13. package/dist/chunks/es-MX.6QU35A6L.js +1 -0
  14. package/dist/chunks/es.SMVRR5QO.js +1 -0
  15. package/dist/chunks/et-EE.BRBL5QIG.js +1 -0
  16. package/dist/chunks/fi-FI.TPQGZ5V7.js +1 -0
  17. package/dist/chunks/fr.WWOUUKQI.js +1 -0
  18. package/dist/chunks/he.OVEJBPUX.js +1 -0
  19. package/dist/chunks/hu.7LEUFJ5J.js +1 -0
  20. package/dist/chunks/id.TFWG6VOU.js +1 -0
  21. package/dist/chunks/it.3SV7XLRR.js +1 -0
  22. package/dist/chunks/ja.P6C656R7.js +1 -0
  23. package/dist/chunks/ko.VOUHNCJ7.js +1 -0
  24. package/dist/chunks/lt-LT.AFL7G4NO.js +1 -0
  25. package/dist/chunks/lt.TRKH4J6L.js +1 -0
  26. package/dist/chunks/lv-LV.TGTBYQYP.js +1 -0
  27. package/dist/chunks/lv.HZTEA2Q2.js +1 -0
  28. package/dist/chunks/ms.QEKTVYHX.js +1 -0
  29. package/dist/chunks/nb.HRDZEYXV.js +1 -0
  30. package/dist/chunks/nl.2R7WVAV3.js +1 -0
  31. package/dist/chunks/nl_NL.KHWKCZMK.js +1 -0
  32. package/dist/chunks/{pl.FSJRWYQ5.js → pl.D6YHYKB6.js} +1 -1
  33. package/dist/chunks/pt-BR.3NGFYB4U.js +1 -0
  34. package/dist/chunks/pt.LYW2A6VH.js +1 -0
  35. package/dist/chunks/ro.ILTDKZ2H.js +1 -0
  36. package/dist/chunks/ru.KJZFKIJM.js +1 -0
  37. package/dist/chunks/sk.5POYRJGA.js +1 -0
  38. package/dist/chunks/sl.GN5UGR5G.js +1 -0
  39. package/dist/chunks/sr-RS.T3II5ZYL.js +1 -0
  40. package/dist/chunks/sv.63HB4O5X.js +1 -0
  41. package/dist/chunks/th.AZ4SQZFW.js +1 -0
  42. package/dist/chunks/tr.WDGRPXBK.js +1 -0
  43. package/dist/chunks/uk-UA.GYXXM7FX.js +1 -0
  44. package/dist/chunks/vi.TBVAKNJJ.js +1 -0
  45. package/dist/chunks/zh-CN.NK7PKUS6.js +1 -0
  46. package/dist/custom-elements.json +513 -513
  47. package/dist/jsx/index.d.ts +21 -21
  48. package/dist/primer-loader.d.ts +9 -3
  49. package/dist/primer-loader.js +11 -11
  50. package/dist/vscode.html-custom-data.json +14 -14
  51. package/dist/web-types.json +53 -53
  52. package/package.json +1 -1
  53. package/dist/chunks/ar.44J7SJG6.js +0 -1
  54. package/dist/chunks/bg.LT2YIFOH.js +0 -1
  55. package/dist/chunks/ca.KUW6ECYF.js +0 -1
  56. package/dist/chunks/chunk.TIWM3PQ7.js +0 -2
  57. package/dist/chunks/cs.XQGMKIF3.js +0 -1
  58. package/dist/chunks/da.HKIIDZRJ.js +0 -1
  59. package/dist/chunks/de.O6IUA6FB.js +0 -1
  60. package/dist/chunks/el.F35KS4NO.js +0 -1
  61. package/dist/chunks/en-GB.PU23XE2E.js +0 -1
  62. package/dist/chunks/en.HQJMDTVQ.js +0 -1
  63. package/dist/chunks/es-AR.OZ6CT5HA.js +0 -1
  64. package/dist/chunks/es-MX.E4FWJ3FK.js +0 -1
  65. package/dist/chunks/es.HEWO2JY7.js +0 -1
  66. package/dist/chunks/et-EE.3GAJR6UB.js +0 -1
  67. package/dist/chunks/fi-FI.4TB5AYVQ.js +0 -1
  68. package/dist/chunks/fr.5GQNZ4TX.js +0 -1
  69. package/dist/chunks/he.WGVF57WV.js +0 -1
  70. package/dist/chunks/hu.RX3HFOR5.js +0 -1
  71. package/dist/chunks/id.3SO7FJHW.js +0 -1
  72. package/dist/chunks/it.Y7247AOF.js +0 -1
  73. package/dist/chunks/ja.L6PF6O6A.js +0 -1
  74. package/dist/chunks/ko.X53AFCXY.js +0 -1
  75. package/dist/chunks/lt-LT.HMQT67X4.js +0 -1
  76. package/dist/chunks/lt.YJ3FR7A2.js +0 -1
  77. package/dist/chunks/lv-LV.HLFWSCCR.js +0 -1
  78. package/dist/chunks/lv.DEK5WXQB.js +0 -1
  79. package/dist/chunks/ms.E6PXJ4SR.js +0 -1
  80. package/dist/chunks/nb.7357HC5J.js +0 -1
  81. package/dist/chunks/nl.QBFQWQBY.js +0 -1
  82. package/dist/chunks/nl_NL.RS7W3XGO.js +0 -1
  83. package/dist/chunks/pt-BR.WVYS3Y2I.js +0 -1
  84. package/dist/chunks/pt.LUSIBC5X.js +0 -1
  85. package/dist/chunks/ro.TKERTYBG.js +0 -1
  86. package/dist/chunks/ru.VPEQHZ2S.js +0 -1
  87. package/dist/chunks/sk.QFMGH6WL.js +0 -1
  88. package/dist/chunks/sl.RUAKKCKD.js +0 -1
  89. package/dist/chunks/sr-RS.WSZIECEH.js +0 -1
  90. package/dist/chunks/sv.AHI2S45X.js +0 -1
  91. package/dist/chunks/th.ZKRE26WN.js +0 -1
  92. package/dist/chunks/tr.6NOOTQVO.js +0 -1
  93. package/dist/chunks/uk-UA.A6S7PXDN.js +0 -1
  94. package/dist/chunks/vi.4Z5L3EAS.js +0 -1
  95. package/dist/chunks/zh-CN.SN6TXY6W.js +0 -1
@@ -49,12 +49,12 @@
49
49
  },
50
50
  {
51
51
  "kind": "variable",
52
- "name": "ur",
52
+ "name": "cr",
53
53
  "default": "class{constructor(t){this._methods=t}get(t){return this._methods.get(t)}toArray(){return Array.from(this._methods.values())}size(){return this._methods.size}}"
54
54
  },
55
55
  {
56
56
  "kind": "variable",
57
- "name": "pr",
57
+ "name": "ur",
58
58
  "default": "class{constructor(t){this._methods=t}get(t){return this._methods.get(t)}toArray(){return Array.from(this._methods.values())}size(){return this._methods.size}}"
59
59
  },
60
60
  {
@@ -65,15 +65,15 @@
65
65
  {
66
66
  "kind": "variable",
67
67
  "name": "Pe",
68
- "default": "class extends v{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this._jsInitialized=!1;this.previousLoadingState=!0;this.hasAssignedContent=!1;this._loadingTimeoutId=null;this._eventListenerController=null;this.locale=qt(Sr());this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.sdkContextController=new ir(this),this.sdkStateController=new rr(this),this.primerEventsController=new Wt(this),this.styleProcessingController=new nr(this),this.vaultManagerController=new ma(this),this.cardNetworkController=new xa(this),this.achPaymentEventsController=new wr(this),this.headlessSdkController=new _r(this)}set jsInitialized(e){this.requestUpdate(),this._jsInitialized=e}get jsInitialized(){return this._jsInitialized}get primerJS(){return this.headlessSdkController?.primerJSInstance??void 0}connectedCallback(){super.connectedCallback(),this.sdkContextController.setEventsController(this.primerEventsController),this._eventListenerController=new AbortController,document.addEventListener(\"primer:card-submit\",this.handleExternalCardSubmit.bind(this),{signal:this._eventListenerController.signal}),document.addEventListener(\"primer:vault-submit\",this.handleExternalVaultSubmit.bind(this),{signal:this._eventListenerController.signal}),document.addEventListener(\"primer:show-other-payments-toggle\",this.handleExternalShowOtherPaymentsToggle.bind(this),{signal:this._eventListenerController.signal})}attributeChangedCallback(e,a,i){e===bp.CUSTOM_STYLES?this.styleProcessingController.processCustomStyles(i):super.attributeChangedCallback(e,a,i)}disconnectedCallback(){this._loadingTimeoutId&&(window.clearTimeout(this._loadingTimeoutId),this._loadingTimeoutId=null),this.sdkStateController?.currentState.isLoading&&this.sdkStateController.forceCompleteLoading(),this._eventListenerController&&(this._eventListenerController.abort(),this._eventListenerController=null),super.disconnectedCallback()}willUpdate(e){e.has(\"options\")&&(this.options?.locale&&(Vi(this.options?.locale)?this.locale=qt(this.options?.locale):P.warn(\"\\u{1F30E}\\u2757 Unsupported locale provided:\",this.options?.locale,\"- Falling back to system locale\")),Fi(this.locale))}updated(){let e=getComputedStyle(this);this.sdkContextController.setComputedStyles(e),this.checkLoadingStateChange()}handleExternalCardSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:card-submit\",e.detail)}handleExternalVaultSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:vault-submit\",e.detail)}handleExternalShowOtherPaymentsToggle(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:show-other-payments-toggle\",e.detail)}checkLoadingStateChange(){let e=this.sdkStateController?.currentState.isLoading||!1;if(this.previousLoadingState&&!e){this.jsInitialized=!0,Q({eventName:\"CHECKOUT_FLOW_STARTED\"});let a=Ye.getSdkInitStartTime(),i=a?Date.now()-a:void 0;Mo(i)}this.previousLoadingState=e,e&&!this._loadingTimeoutId?this._loadingTimeoutId=window.setTimeout(()=>{this.sdkStateController?.currentState.isLoading&&(P.warn(\"Loading timeout in component, forcing completion\"),this.sdkStateController.forceCompleteLoading(),this.jsInitialized=!0),this._loadingTimeoutId=null},1e4):!e&&this._loadingTimeoutId&&(window.clearTimeout(this._loadingTimeoutId),this._loadingTimeoutId=null)}render(){let e=this.sdkStateController.currentState,a=e.isLoading,i=e.primerJsError,n=!a&&!i;return p` ${x(a,()=>y)} ${x(i,()=>p`<primer-checkout-error></primer-checkout-error>`)} ${x(n,()=>p`<slot name=\"main\" @slotchange=${this.onSlotChange}></slot>${x(this.hasAssignedContent,()=>y,()=>p`<primer-main></primer-main>`)} `,()=>y)} `}addEventListener(e,a,i){super.addEventListener(e,a,i)}removeEventListener(e,a,i){super.removeEventListener(e,a,i)}}"
68
+ "default": "class extends v{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this._jsInitialized=!1;this.previousLoadingState=!0;this.hasAssignedContent=!1;this._loadingTimeoutId=null;this._eventListenerController=null;this.locale=qt(vr());this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.sdkContextController=new rr(this),this.sdkStateController=new ar(this),this.primerEventsController=new Wt(this),this.styleProcessingController=new ir(this),this.vaultManagerController=new ha(this),this.cardNetworkController=new _a(this),this.achPaymentEventsController=new _r(this),this.headlessSdkController=new xr(this)}set jsInitialized(e){this.requestUpdate(),this._jsInitialized=e}get jsInitialized(){return this._jsInitialized}get primerJS(){return this.headlessSdkController?.primerJSInstance??void 0}connectedCallback(){super.connectedCallback(),this.sdkContextController.setEventsController(this.primerEventsController),this._eventListenerController=new AbortController,document.addEventListener(\"primer:card-submit\",this.handleExternalCardSubmit.bind(this),{signal:this._eventListenerController.signal}),document.addEventListener(\"primer:vault-submit\",this.handleExternalVaultSubmit.bind(this),{signal:this._eventListenerController.signal}),document.addEventListener(\"primer:show-other-payments-toggle\",this.handleExternalShowOtherPaymentsToggle.bind(this),{signal:this._eventListenerController.signal})}attributeChangedCallback(e,a,i){e===bp.CUSTOM_STYLES?this.styleProcessingController.processCustomStyles(i):super.attributeChangedCallback(e,a,i)}disconnectedCallback(){this._loadingTimeoutId&&(window.clearTimeout(this._loadingTimeoutId),this._loadingTimeoutId=null),this.sdkStateController?.currentState.isLoading&&this.sdkStateController.forceCompleteLoading(),this._eventListenerController&&(this._eventListenerController.abort(),this._eventListenerController=null),super.disconnectedCallback()}willUpdate(e){e.has(\"options\")&&(this.options?.locale&&(Ui(this.options?.locale)?this.locale=qt(this.options?.locale):P.warn(\"\\u{1F30E}\\u2757 Unsupported locale provided:\",this.options?.locale,\"- Falling back to system locale\")),Ki(this.locale))}updated(){let e=getComputedStyle(this);this.sdkContextController.setComputedStyles(e),this.checkLoadingStateChange()}handleExternalCardSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:card-submit\",e.detail)}handleExternalVaultSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:vault-submit\",e.detail)}handleExternalShowOtherPaymentsToggle(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:show-other-payments-toggle\",e.detail)}checkLoadingStateChange(){let e=this.sdkStateController?.currentState.isLoading||!1;if(this.previousLoadingState&&!e){this.jsInitialized=!0,Q({eventName:\"CHECKOUT_FLOW_STARTED\"});let a=Ye.getSdkInitStartTime(),i=a?Date.now()-a:void 0;To(i)}this.previousLoadingState=e,e&&!this._loadingTimeoutId?this._loadingTimeoutId=window.setTimeout(()=>{this.sdkStateController?.currentState.isLoading&&(P.warn(\"Loading timeout in component, forcing completion\"),this.sdkStateController.forceCompleteLoading(),this.jsInitialized=!0),this._loadingTimeoutId=null},1e4):!e&&this._loadingTimeoutId&&(window.clearTimeout(this._loadingTimeoutId),this._loadingTimeoutId=null)}render(){let e=this.sdkStateController.currentState,a=e.isLoading,i=e.primerJsError,n=!a&&!i;return p` ${R(a,()=>y)} ${R(i,()=>p`<primer-checkout-error></primer-checkout-error>`)} ${R(n,()=>p`<slot name=\"main\" @slotchange=${this.onSlotChange}></slot>${R(this.hasAssignedContent,()=>y,()=>p`<primer-main></primer-main>`)} `,()=>y)} `}addEventListener(e,a,i){super.addEventListener(e,a,i)}removeEventListener(e,a,i){super.removeEventListener(e,a,i)}}"
69
69
  },
70
70
  {
71
71
  "kind": "function",
72
- "name": "Ms"
72
+ "name": "Ts"
73
73
  },
74
74
  {
75
75
  "kind": "function",
76
- "name": "Es"
76
+ "name": "Ps"
77
77
  },
78
78
  {
79
79
  "kind": "function",
@@ -86,7 +86,7 @@
86
86
  {
87
87
  "kind": "variable",
88
88
  "name": "ze",
89
- "default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in en)return en[this.size];let e=parseInt(this.size,10);return isNaN(e)?en.medium:e}render(){let e=this.getSize(),a=20,i=`0 0 ${a} ${a}`;return this.style.setProperty(\"--spinner-color\",this.color),this.style.setProperty(\"--spinner-size\",`${e}px`),p`<div class=\"spinner-container ${this.compact?\"compact\":\"\"}\"><svg class=\"spinner\" width=\"${e}\" height=\"${e}\" viewBox=\"${i}\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" role=\"status\" aria-label=\"Loading\" ><path d=\"M4.27827 10.002C4.27827 6.84166 6.84019 4.27973 10.0005 4.27973C10.7676 4.27973 11.3894 3.6579 11.3894 2.89084C11.3894 2.12378 10.7676 1.50195 10.0005 1.50195C5.30607 1.50195 1.50049 5.30753 1.50049 10.002C1.50049 14.6964 5.30607 18.502 10.0005 18.502C14.6949 18.502 18.5005 14.6964 18.5005 10.002C18.5005 9.23489 17.8787 8.61306 17.1116 8.61306C16.3445 8.61306 15.7227 9.23489 15.7227 10.002C15.7227 13.1622 13.1608 15.7242 10.0005 15.7242C6.84019 15.7242 4.27827 13.1622 4.27827 10.002Z\" fill=\"currentColor\" class=\"path\" /></svg></div>`}}"
89
+ "default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in Xi)return Xi[this.size];let e=parseInt(this.size,10);return isNaN(e)?Xi.medium:e}render(){let e=this.getSize(),a=20,i=`0 0 ${a} ${a}`;return this.style.setProperty(\"--spinner-color\",this.color),this.style.setProperty(\"--spinner-size\",`${e}px`),p`<div class=\"spinner-container ${this.compact?\"compact\":\"\"}\"><svg class=\"spinner\" width=\"${e}\" height=\"${e}\" viewBox=\"${i}\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" role=\"status\" aria-label=\"Loading\" ><path d=\"M4.27827 10.002C4.27827 6.84166 6.84019 4.27973 10.0005 4.27973C10.7676 4.27973 11.3894 3.6579 11.3894 2.89084C11.3894 2.12378 10.7676 1.50195 10.0005 1.50195C5.30607 1.50195 1.50049 5.30753 1.50049 10.002C1.50049 14.6964 5.30607 18.502 10.0005 18.502C14.6949 18.502 18.5005 14.6964 18.5005 10.002C18.5005 9.23489 17.8787 8.61306 17.1116 8.61306C16.3445 8.61306 15.7227 9.23489 15.7227 10.002C15.7227 13.1622 13.1608 15.7242 10.0005 15.7242C6.84019 15.7242 4.27827 13.1622 4.27827 10.002Z\" fill=\"currentColor\" class=\"path\" /></svg></div>`}}"
90
90
  },
91
91
  {
92
92
  "kind": "variable",
@@ -111,7 +111,7 @@
111
111
  {
112
112
  "kind": "variable",
113
113
  "name": "je",
114
- "default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?Ls[this.name]:null;return p`<div style=\"--internal-icon-color: ${this.color}\">${e||p`<slot></slot>`}</div>`}}"
114
+ "default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?xs[this.name]:null;return p`<div style=\"--internal-icon-color: ${this.color}\">${e||p`<slot></slot>`}</div>`}}"
115
115
  },
116
116
  {
117
117
  "kind": "variable",
@@ -126,7 +126,7 @@
126
126
  {
127
127
  "kind": "variable",
128
128
  "name": "Ae",
129
- "default": "class extends v{constructor(){super(...arguments);this.name=\"\";this.id=\"\";this.value=\"\";this.disabled=!1;this.hasError=!1;this.placeholder=\"\";this.options=[]}handleChange(e){let a=e.target,i=this.value;this.value=a.value,this.dispatchEvent(new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0})),this.requestUpdate(\"value\",i)}handleFocus(){this.dispatchEvent(new CustomEvent(\"focus\",{bubbles:!0,composed:!0}))}handleBlur(){this.dispatchEvent(new CustomEvent(\"blur\",{bubbles:!0,composed:!0}))}renderSelectOptions(){let e=[];for(let a of this.options)e.push(p`<option value=${a.value}>${a.label}</option>`);return e}render(){return p`<select id=${this.id} name=${this.name} .value=${Ds(this.value)} ?disabled=${this.disabled} ?required=${!this.value} @change=${this.handleChange} @focus=${this.handleFocus} @blur=${this.handleBlur} aria-invalid=${this.hasError?\"true\":\"false\"} ><option value=\"\" disabled ?selected=${!this.value}>${this.placeholder||\"Select an option\"}</option>${this.renderSelectOptions()}</select>`}}"
129
+ "default": "class extends v{constructor(){super(...arguments);this.name=\"\";this.id=\"\";this.value=\"\";this.disabled=!1;this.hasError=!1;this.placeholder=\"\";this.options=[]}handleChange(e){let a=e.target,i=this.value;this.value=a.value,this.dispatchEvent(new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0})),this.requestUpdate(\"value\",i)}handleFocus(){this.dispatchEvent(new CustomEvent(\"focus\",{bubbles:!0,composed:!0}))}handleBlur(){this.dispatchEvent(new CustomEvent(\"blur\",{bubbles:!0,composed:!0}))}renderSelectOptions(){let e=[];for(let a of this.options)e.push(p`<option value=${a.value}>${a.label}</option>`);return e}render(){return p`<select id=${this.id} name=${this.name} .value=${Bs(this.value)} ?disabled=${this.disabled} ?required=${!this.value} @change=${this.handleChange} @focus=${this.handleFocus} @blur=${this.handleBlur} aria-invalid=${this.hasError?\"true\":\"false\"} ><option value=\"\" disabled ?selected=${!this.value}>${this.placeholder||\"Select an option\"}</option>${this.renderSelectOptions()}</select>`}}"
130
130
  },
131
131
  {
132
132
  "kind": "variable",
@@ -156,17 +156,17 @@
156
156
  {
157
157
  "kind": "variable",
158
158
  "name": "Ze",
159
- "default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"GOOGLE_PAY\")throw new Error(\"Invalid payment method type for Google Pay component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=e.createButton();return await a.render(this.shadowRoot?.getRootNode(),{style:{shadowRoot:!0}}),this.disabled&&await a.setDisabled(this.disabled),this.disabled&&this.shadowRoot&&(await this.updateComplete,Or(this.disabled,this.shadowRoot)),a}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&this.shadowRoot&&Or(this.disabled,this.shadowRoot)}render(){return y}}"
159
+ "default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"GOOGLE_PAY\")throw new Error(\"Invalid payment method type for Google Pay component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=e.createButton();return await a.render(this.shadowRoot?.getRootNode(),{style:{shadowRoot:!0}}),this.disabled&&await a.setDisabled(this.disabled),this.disabled&&this.shadowRoot&&(await this.updateComplete,Dr(this.disabled,this.shadowRoot)),a}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&this.shadowRoot&&Dr(this.disabled,this.shadowRoot)}render(){return y}}"
160
160
  },
161
161
  {
162
162
  "kind": "variable",
163
163
  "name": "Je",
164
- "default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Kt();this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"APPLE_PAY\")throw new Error(\"Invalid payment method type for Apple Pay component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.buttonContainerRef.value;if(!a)throw new Error(\"Button container not found\");let i=e.createButton(),n=Gr(a);return await i.render(a,{style:{buttonHeight:n}}),this.disabled&&await i.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,ta(this.disabled,this.buttonContainerRef)),i}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&ta(this.disabled,this.buttonContainerRef)}render(){return p`<div class=\"native-button-container\" ${Et(this.buttonContainerRef)} ></div>`}}"
164
+ "default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Kt();this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"APPLE_PAY\")throw new Error(\"Invalid payment method type for Apple Pay component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.buttonContainerRef.value;if(!a)throw new Error(\"Button container not found\");let i=e.createButton(),n=Br(a);return await i.render(a,{style:{buttonHeight:n}}),this.disabled&&await i.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,ta(this.disabled,this.buttonContainerRef)),i}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&ta(this.disabled,this.buttonContainerRef)}render(){return p`<div class=\"native-button-container\" ${Et(this.buttonContainerRef)} ></div>`}}"
165
165
  },
166
166
  {
167
167
  "kind": "variable",
168
168
  "name": "qe",
169
- "default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Kt();this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"PAYPAL\")throw new Error(\"Invalid payment method type for PayPal component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.buttonContainerRef.value;if(!a)throw new Error(\"Button container not found\");let i=e.createButton(),n=js(Gr(this));return await i.render(a,{style:{buttonHeight:n}}),this.disabled&&await i.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,ta(this.disabled,this.buttonContainerRef)),i}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&ta(this.disabled,this.buttonContainerRef)}render(){return p`<div class=\"native-button-container\" ${Et(this.buttonContainerRef)} ></div>`}}"
169
+ "default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=Kt();this.loadManagerTask=new B(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return w;let a=this.paymentManagers.get(e);if(!a)throw new Error(`No manager found for payment method type ${e}`);if(a.type!==\"PAYPAL\")throw new Error(\"Invalid payment method type for PayPal component\");return a.manager}}),this.renderButtonTask=new B(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.buttonContainerRef.value;if(!a)throw new Error(\"Button container not found\");let i=e.createButton(),n=Zs(Br(this));return await i.render(a,{style:{buttonHeight:n}}),this.disabled&&await i.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,ta(this.disabled,this.buttonContainerRef)),i}})}attributeChangedCallback(e,a,i){if(super.attributeChangedCallback(e,a,i),e===\"disabled\"&&a!==i){let n=i!==null,o=this.renderButtonTask.value;o&&o.setDisabled(n)}}updated(e){e.has(\"disabled\")&&ta(this.disabled,this.buttonContainerRef)}render(){return p`<div class=\"native-button-container\" ${Et(this.buttonContainerRef)} ></div>`}}"
170
170
  },
171
171
  {
172
172
  "kind": "variable",
@@ -185,33 +185,33 @@
185
185
  },
186
186
  {
187
187
  "kind": "variable",
188
- "name": "Ne",
189
- "default": "class extends v{constructor(){super(...arguments);this.formController=new Kr(this,e=>this._paymentMethodManagerTask.value.setAndValidate(e));this.paymentManagers=new Map;this.sdkState=void 0;this.clientOptions=void 0;this.screen=\"form\";this.isSubmitting=!1;this._paymentMethodManagerTask=new B(this,{task:([e])=>e!==\"STRIPE_ACH\"?w:this.paymentManagers.get(e)?.manager,args:()=>[this.paymentMethod?.type]})}_handleInput(e,a){let i=e.target;this.formController.setFieldValue(a,i.value)}_handleBlur(e){this.formController.setFieldTouched(e)}_handleError(e){this.dispatchEvent(new CustomEvent(\"primer-ach-error\",{bubbles:!0,composed:!0,detail:{error:e instanceof Error?e:new Error(typeof e==\"string\"?e:\"Unknown error occurred\")}}))}async _handleSubmitButtonClick(e){if(!this.isSubmitting){this.isSubmitting=!0;try{let a=await e.start(this.formController.formData);if(!a||a.valid)return await this._handleCollectBankAccountDetails(e);a&&this.formController.setValidation(a,!0)}catch(a){this._handleError(a)}finally{this.isSubmitting=!1}}}async _handleCollectBankAccountDetails(e){try{await e.collectBankAccountDetails(),this.screen=\"mandate\",this.dispatchEvent(new CustomEvent(\"primer-ach-bank-details-collected\",{bubbles:!0,composed:!0}))}catch(a){this._handleError(a)}}async _handleConfirmMandate(){if(this._paymentMethodManagerTask.value){this.isSubmitting=!0;try{await this._paymentMethodManagerTask.value.confirmMandate(),this.dispatchEvent(new CustomEvent(\"primer-ach-mandate-confirmed\",{bubbles:!0,composed:!0}))}catch(e){this._handleError(e)}finally{this.isSubmitting=!1}}}async _handleDeclineMandate(){if(this._paymentMethodManagerTask.value){this.isSubmitting=!0;try{await this._paymentMethodManagerTask.value.declineMandate(),this.dispatchEvent(new CustomEvent(\"primer-ach-mandate-declined\",{bubbles:!0,composed:!0}))}catch(e){this._handleError(e)}finally{this.isSubmitting=!1}}}renderForm(e){return p`<h2>${b(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${b(\"stripe_ach_user_details_collection_subtitle_label\",{id:\"stripe_ach_user_details_collection_subtitle_label\"})}</p><form @submit=${a=>a.preventDefault()}><div class=\"form-row\"><primer-input-wrapper .hasError=${this.formController.hasError.firstName} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_first_name_label\",{id:\"stripe_ach_user_details_collection_first_name_label\"})}</primer-input-label><primer-input slot=\"input\" .value=${this.formController.formState.firstName.value} @input=${a=>this._handleInput(a,\"firstName\")} @blur=${()=>this._handleBlur(\"firstName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.firstName?this.formController.formState.firstName.error:y}</primer-input-error></primer-input-wrapper><primer-input-wrapper .hasError=${this.formController.hasError.lastName} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_last_name_label\",{id:\"stripe_ach_user_details_collection_last_name_label\"})}</primer-input-label><primer-input slot=\"input\" .value=${this.formController.formState.lastName.value} @input=${a=>this._handleInput(a,\"lastName\")} @blur=${()=>this._handleBlur(\"lastName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.lastName?this.formController.formState.lastName.error:y}</primer-input-error></primer-input-wrapper></div><primer-input-wrapper .hasError=${this.formController.hasError.emailAddress} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_email_address_label\",{id:\"stripe_ach_user_details_collection_email_address_label\"})}</primer-input-label><primer-input slot=\"input\" type=\"email\" .value=${this.formController.formState.emailAddress.value} @input=${a=>this._handleInput(a,\"emailAddress\")} @blur=${()=>this._handleBlur(\"emailAddress\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.emailAddress?this.formController.formState.emailAddress.error:y}</primer-input-error></primer-input-wrapper><p>${b(\"stripe_ach_user_details_collection_data_usage_label\",{id:\"stripe_ach_user_details_collection_data_usage_label\"})}</p><primer-button buttonType=\"submit\" variant=\"primary\" @click=${()=>this._handleSubmitButtonClick(e)} ?disabled=${this.isSubmitting} ?loading=${this.isSubmitting} >${b(\"stripe_ach_user_details_collection_continue_button\",{id:\"stripe_ach_user_details_collection_continue_button\"})}</primer-button></form>`}renderMandate(){return p`<h2>${b(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${this.clientOptions?.stripe?.mandateData.fullMandateText??b(\"stripe_ach_mandate_template_web\",{id:\"stripe_ach_mandate_template_web\"}).replace(/\\{merchantName\\}/g,this.clientOptions?.stripe?.mandateData.merchantName??\"Merchant\")}</p><div class=\"button-group\"><primer-button variant=\"primary\" @click=${this._handleConfirmMandate.bind(this)} ?disabled=${this.isSubmitting} ?loading=${this.isSubmitting} >${b(\"stripe_ach_mandate_accept_button\",{id:\"stripe_ach_mandate_accept_button\"})}</primer-button><primer-button variant=\"tertiary\" @click=${this._handleDeclineMandate.bind(this)} ?disabled=${this.isSubmitting} >${b(\"stripe_ach_mandate_cancel_payment_button\",{id:\"stripe_ach_mandate_cancel_payment_button\"})}</primer-button></div>`}render(){return this._paymentMethodManagerTask.render({complete:e=>e?this.screen===\"form\"?this.renderForm(e):this.renderMandate():y})}}"
188
+ "name": "Ie",
189
+ "default": "class extends v{constructor(){super(...arguments);this.formController=new Gr(this,e=>this._paymentMethodManagerTask.value.setAndValidate(e));this.paymentManagers=new Map;this.sdkState=void 0;this.clientOptions=void 0;this.screen=\"form\";this.isSubmitting=!1;this._paymentMethodManagerTask=new B(this,{task:([e])=>e!==\"STRIPE_ACH\"?w:this.paymentManagers.get(e)?.manager,args:()=>[this.paymentMethod?.type]})}_handleInput(e,a){let i=e.target;this.formController.setFieldValue(a,i.value)}_handleBlur(e){this.formController.setFieldTouched(e)}_handleError(e){this.dispatchEvent(new CustomEvent(\"primer-ach-error\",{bubbles:!0,composed:!0,detail:{error:e instanceof Error?e:new Error(typeof e==\"string\"?e:\"Unknown error occurred\")}}))}async _handleSubmitButtonClick(e){if(!this.isSubmitting){this.isSubmitting=!0;try{let a=await e.start(this.formController.formData);if(!a||a.valid)return await this._handleCollectBankAccountDetails(e);a&&this.formController.setValidation(a,!0)}catch(a){this._handleError(a)}finally{this.isSubmitting=!1}}}async _handleCollectBankAccountDetails(e){try{await e.collectBankAccountDetails(),this.screen=\"mandate\",this.dispatchEvent(new CustomEvent(\"primer-ach-bank-details-collected\",{bubbles:!0,composed:!0}))}catch(a){this._handleError(a)}}async _handleConfirmMandate(){if(this._paymentMethodManagerTask.value){this.isSubmitting=!0;try{await this._paymentMethodManagerTask.value.confirmMandate(),this.dispatchEvent(new CustomEvent(\"primer-ach-mandate-confirmed\",{bubbles:!0,composed:!0}))}catch(e){this._handleError(e)}finally{this.isSubmitting=!1}}}async _handleDeclineMandate(){if(this._paymentMethodManagerTask.value){this.isSubmitting=!0;try{await this._paymentMethodManagerTask.value.declineMandate(),this.dispatchEvent(new CustomEvent(\"primer-ach-mandate-declined\",{bubbles:!0,composed:!0}))}catch(e){this._handleError(e)}finally{this.isSubmitting=!1}}}renderForm(e){return p`<h2>${b(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${b(\"stripe_ach_user_details_collection_subtitle_label\",{id:\"stripe_ach_user_details_collection_subtitle_label\"})}</p><form @submit=${a=>a.preventDefault()}><div class=\"form-row\"><primer-input-wrapper .hasError=${this.formController.hasError.firstName} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_first_name_label\",{id:\"stripe_ach_user_details_collection_first_name_label\"})}</primer-input-label><primer-input slot=\"input\" .value=${this.formController.formState.firstName.value} @input=${a=>this._handleInput(a,\"firstName\")} @blur=${()=>this._handleBlur(\"firstName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.firstName?this.formController.formState.firstName.error:y}</primer-input-error></primer-input-wrapper><primer-input-wrapper .hasError=${this.formController.hasError.lastName} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_last_name_label\",{id:\"stripe_ach_user_details_collection_last_name_label\"})}</primer-input-label><primer-input slot=\"input\" .value=${this.formController.formState.lastName.value} @input=${a=>this._handleInput(a,\"lastName\")} @blur=${()=>this._handleBlur(\"lastName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.lastName?this.formController.formState.lastName.error:y}</primer-input-error></primer-input-wrapper></div><primer-input-wrapper .hasError=${this.formController.hasError.emailAddress} ><primer-input-label slot=\"label\">${b(\"stripe_ach_user_details_collection_email_address_label\",{id:\"stripe_ach_user_details_collection_email_address_label\"})}</primer-input-label><primer-input slot=\"input\" type=\"email\" .value=${this.formController.formState.emailAddress.value} @input=${a=>this._handleInput(a,\"emailAddress\")} @blur=${()=>this._handleBlur(\"emailAddress\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.emailAddress?this.formController.formState.emailAddress.error:y}</primer-input-error></primer-input-wrapper><p>${b(\"stripe_ach_user_details_collection_data_usage_label\",{id:\"stripe_ach_user_details_collection_data_usage_label\"})}</p><primer-button buttonType=\"submit\" variant=\"primary\" @click=${()=>this._handleSubmitButtonClick(e)} ?disabled=${this.isSubmitting} ?loading=${this.isSubmitting} >${b(\"stripe_ach_user_details_collection_continue_button\",{id:\"stripe_ach_user_details_collection_continue_button\"})}</primer-button></form>`}renderMandate(){return p`<h2>${b(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${this.clientOptions?.stripe?.mandateData.fullMandateText??b(\"stripe_ach_mandate_template_web\",{id:\"stripe_ach_mandate_template_web\"}).replace(/\\{merchantName\\}/g,this.clientOptions?.stripe?.mandateData.merchantName??\"Merchant\")}</p><div class=\"button-group\"><primer-button variant=\"primary\" @click=${this._handleConfirmMandate.bind(this)} ?disabled=${this.isSubmitting} ?loading=${this.isSubmitting} >${b(\"stripe_ach_mandate_accept_button\",{id:\"stripe_ach_mandate_accept_button\"})}</primer-button><primer-button variant=\"tertiary\" @click=${this._handleDeclineMandate.bind(this)} ?disabled=${this.isSubmitting} >${b(\"stripe_ach_mandate_cancel_payment_button\",{id:\"stripe_ach_mandate_cancel_payment_button\"})}</primer-button></div>`}render(){return this._paymentMethodManagerTask.render({complete:e=>e?this.screen===\"form\"?this.renderForm(e):this.renderMandate():y})}}"
190
190
  },
191
191
  {
192
192
  "kind": "variable",
193
193
  "name": "xe",
194
- "default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.open=!1;this._paymentMethodManagerTask=new B(this,{task:([e,a])=>!e||!a?w:a.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new B(this,{task:([e,a])=>{if(!e||!a)return w;let i=a.getPaymentMethodConfiguration(e);return i?{backgroundColor:i.displayMetadata.button.backgroundColor.colored,name:i.name,displayName:this._legacyGetButtonLabel(i.displayMetadata.button.text),iconUrl:i.displayMetadata.button.iconUrl.colored||i.displayMetadata.button.iconUrl.light||i.displayMetadata.button.iconUrl.dark}:w},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new B(this,{task:([e,a])=>!e||!a?w:{paymentMethodManager:e,assetsConfig:a},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let a=e?La(e):\"\";return a===\"payWith\"&&(a=\"pay_with\"),b(a,{id:a})}start(){this._paymentMethodManagerTask.value&&(this.open=!0)}renderDialog(){return this.open?p`<primer-portal><primer-dialog @primer:dialog-close=\"${()=>this.open=!1}\"><primer-ach-payment .paymentMethod=${this.paymentMethod} @primer-ach-error=${()=>this.open=!1} @primer-ach-mandate-confirmed=${()=>this.open=!1} @primer-ach-mandate-declined=${()=>this.open=!1} ></primer-ach-payment></primer-dialog></primer-portal>`:y}render(){return this._setupTasks.render({error:()=>y,complete:({assetsConfig:e})=>(this.style.setProperty(\"--dynamic-payment-button-bg-color\",e.backgroundColor),p`<primer-button @click=\"${()=>this.start()}\" class=${oe({loading:!!this.sdkState?.isProcessing,reverse:!0})} title=\"${b(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ><span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>${e.displayName}</primer-button>${this.renderDialog()} `)})}}"
194
+ "default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.open=!1;this._paymentMethodManagerTask=new B(this,{task:([e,a])=>!e||!a?w:a.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new B(this,{task:([e,a])=>{if(!e||!a)return w;let i=a.getPaymentMethodConfiguration(e);return i?{backgroundColor:i.displayMetadata.button.backgroundColor.colored,name:i.name,displayName:this._legacyGetButtonLabel(i.displayMetadata.button.text),iconUrl:i.displayMetadata.button.iconUrl.colored||i.displayMetadata.button.iconUrl.light||i.displayMetadata.button.iconUrl.dark}:w},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new B(this,{task:([e,a])=>!e||!a?w:{paymentMethodManager:e,assetsConfig:a},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let a=e?Ra(e):\"\";return a===\"payWith\"&&(a=\"pay_with\"),b(a,{id:a})}start(){this._paymentMethodManagerTask.value&&(this.open=!0)}renderDialog(){return this.open?p`<primer-portal><primer-dialog @primer:dialog-close=\"${()=>this.open=!1}\"><primer-ach-payment .paymentMethod=${this.paymentMethod} @primer-ach-error=${()=>this.open=!1} @primer-ach-mandate-confirmed=${()=>this.open=!1} @primer-ach-mandate-declined=${()=>this.open=!1} ></primer-ach-payment></primer-dialog></primer-portal>`:y}render(){return this._setupTasks.render({error:()=>y,complete:({assetsConfig:e})=>(this.style.setProperty(\"--dynamic-payment-button-bg-color\",e.backgroundColor),p`<primer-button @click=\"${()=>this.start()}\" class=${oe({loading:!!this.sdkState?.isProcessing,reverse:!0})} title=\"${b(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ><span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>${e.displayName}</primer-button>${this.renderDialog()} `)})}}"
195
195
  },
196
196
  {
197
197
  "kind": "variable",
198
198
  "name": "_e",
199
- "default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this._paymentMethodManagerTask=new B(this,{task:([e,a])=>!e||!a?w:a.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new B(this,{task:([e,a])=>{if(!e||!a)return w;let i=a.getPaymentMethodConfiguration(e);if(!i)return w;let n=i.displayMetadata.button.backgroundColor.colored??i.displayMetadata.button.backgroundColor.light,o=i.displayMetadata.button.iconPositionRelativeToText||\"START\";return{backgroundColor:n,name:i.name,displayName:this._legacyGetButtonLabel(i.displayMetadata.button.text),iconUrl:i.displayMetadata.button.iconUrl.colored??i.displayMetadata.button.iconUrl.light,iconPosition:o}},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new B(this,{task:([e,a])=>!e||!a?w:{paymentMethodManager:e,assetsConfig:a},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let a=e?La(e):\"\";return a===\"payWith\"&&(a=\"pay_with\"),b(a,{id:a})}startRedirectPayment(){this.disabled||this._paymentMethodManagerTask.value&&this._paymentMethodManagerTask.value.start()}render(){return this._setupTasks.render({error:()=>y,complete:({assetsConfig:e})=>{this.style.setProperty(\"--redirect-payment-button-bg-color\",e.backgroundColor);let a={loading:!!this.sdkState?.isProcessing,\"icon-end\":e.iconPosition===\"END\",\"image-only\":!e.displayName},i=e.displayName?p`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span><span class=\"button-text\">${e.displayName}</span>`:p`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>`;return p`<primer-button @click=\"${()=>this.startRedirectPayment()}\" class=${oe(a)} title=\"${b(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ?disabled=${this.disabled} >${i}</primer-button>`}})}}"
199
+ "default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this._paymentMethodManagerTask=new B(this,{task:([e,a])=>!e||!a?w:a.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new B(this,{task:([e,a])=>{if(!e||!a)return w;let i=a.getPaymentMethodConfiguration(e);if(!i)return w;let n=i.displayMetadata.button.backgroundColor.colored??i.displayMetadata.button.backgroundColor.light,o=i.displayMetadata.button.iconPositionRelativeToText||\"START\";return{backgroundColor:n,name:i.name,displayName:this._legacyGetButtonLabel(i.displayMetadata.button.text),iconUrl:i.displayMetadata.button.iconUrl.colored??i.displayMetadata.button.iconUrl.light,iconPosition:o}},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new B(this,{task:([e,a])=>!e||!a?w:{paymentMethodManager:e,assetsConfig:a},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let a=e?Ra(e):\"\";return a===\"payWith\"&&(a=\"pay_with\"),b(a,{id:a})}startRedirectPayment(){this.disabled||this._paymentMethodManagerTask.value&&this._paymentMethodManagerTask.value.start()}render(){return this._setupTasks.render({error:()=>y,complete:({assetsConfig:e})=>{this.style.setProperty(\"--redirect-payment-button-bg-color\",e.backgroundColor);let a={loading:!!this.sdkState?.isProcessing,\"icon-end\":e.iconPosition===\"END\",\"image-only\":!e.displayName},i=e.displayName?p`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span><span class=\"button-text\">${e.displayName}</span>`:p`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>`;return p`<primer-button @click=\"${()=>this.startRedirectPayment()}\" class=${oe(a)} title=\"${b(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ?disabled=${this.disabled} >${i}</primer-button>`}})}}"
200
200
  },
201
201
  {
202
202
  "kind": "variable",
203
203
  "name": "le",
204
- "default": "class extends v{constructor(){super(...arguments);this.configuration=null;this.headlessUtils=null;this.formData={};this.errors={};this.touchedFields=new Set;this.dirtyFields=new Set;this.focusedField=null;this.submitted=!1;this.countryOptions=[];this._initializationTask=new B(this,{task:async([e,a])=>{if(!e||!a)return w;let i=this.extractFieldConfig(e);return await this.initializeCountryOptions(),i},args:()=>[this.configuration,this.headlessUtils]})}connectedCallback(){super.connectedCallback(),this._initializationTask.value}extractFieldConfig(e){if(e?.checkoutModules){let a=e.checkoutModules.find(i=>i.type===\"BILLING_ADDRESS\");if(a?.options){let i=a.options;return Object.keys(sn).reduce((n,o)=>({...n,[o]:i[o]??!1}),{})}}return this.defaultFieldConfig}async initializeCountryOptions(){try{let e=on(\"en\");this.countryOptions=[...e.map(([n,o])=>({value:n,label:o}))],this.requestUpdate(\"countryOptions\");let a=Ui();if(a===\"en\"||a===\"en-GB\"||a.startsWith(\"en-\"))return;if(await Gl(a)){let n=on(a);this.countryOptions=[...n.map(([o,s])=>({value:o,label:s}))],this.requestUpdate(\"countryOptions\")}}catch(e){P.errorWithDatadog(\"Failed to load country locale\",{error:e})}}get fieldConfig(){return this.extractFieldConfig(this.configuration)}get defaultFieldConfig(){return Object.keys(sn).reduce((e,a)=>({...e,[a]:!1}),{})}get shouldShowForm(){return this.fieldConfig.postalCode}handleInput(e,a){this.formData={...this.formData,[e]:a},this.dirtyFields.add(e),(this.submitted||this.dirtyFields.has(e)&&this.touchedFields.has(e))&&this.validateField(e),this.dispatchEvent(new CustomEvent(\"primer-billing-address-change\",{detail:this.formData,bubbles:!0,composed:!0}))}handleFocus(e){this.focusedField=e}handleBlur(e){this.focusedField=null,this.touchedFields.add(e),this.validateField(e)}validateField(e){let a=this.formData[e],i=this.fieldConfig[e];if(!i){delete this.errors[e];return}if(i&&(!a||a.trim()===\"\")){let n=`${e}ErrorRequired`;this.errors={...this.errors,[e]:b(\"This field is required\",{id:n})}}else{let n={...this.errors};delete n[e],this.errors=n}}validateForm(){return Object.keys(sn).forEach(e=>{let a=e;this.fieldConfig[a]&&this.validateField(a)}),Object.keys(this.errors).length===0}async validateForSubmission(){if(!this.shouldShowForm)return!0;this.submitted=!0,Object.keys(this.fieldConfig).forEach(a=>{this.fieldConfig[a]&&this.touchedFields.add(a)});let e=this.validateForm();return this.requestUpdate(),await this.updateComplete,e}async submitToSDK(){if(this.headlessUtils?.setBillingAddress)try{return await this.headlessUtils.setBillingAddress(this.formData),this.dispatchEvent(new CustomEvent(\"primer-billing-address-submit\",{detail:this.formData,bubbles:!0,composed:!0})),!0}catch(e){return P.errorWithDatadog(\"Failed to set billing address\",{error:e}),!1}return!0}shouldShowError(e){let a=!!this.errors[e],i=this.dirtyFields.has(e),n=this.touchedFields.has(e);return a&&(this.submitted||i&&n)}render(){return this._initializationTask.render({pending:()=>y,error:()=>y,complete:()=>this.shouldShowForm?(this.removeAttribute(\"hidden\"),p`<div class=\"billing-address-form\"><div class=\"billing-address-title\">${b(\"Billing address\",{id:\"billingAddressLabel\"})}</div>${x(this.fieldConfig.countryCode,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"countryCode\"} .hasError=${this.shouldShowError(\"countryCode\")} ><primer-input-label slot=\"label\">${b(\"Country code\",{id:\"countryCodeLabel\"})}</primer-input-label><primer-select slot=\"input\" id=\"countryCode\" name=\"countryCode\" .value=${this.formData.countryCode||\"\"} .options=${this.countryOptions} .hasError=${this.shouldShowError(\"countryCode\")} placeholder=${b(\"Select a country\",{id:\"countrySelectPlaceholder\"})} @input=${e=>this.handleInput(\"countryCode\",e.detail)} @focus=${()=>this.handleFocus(\"countryCode\")} @blur=${()=>this.handleBlur(\"countryCode\")} ></primer-select>${x(this.shouldShowError(\"countryCode\"),()=>p`<primer-input-error slot=\"error\">${this.errors.countryCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${x(this.fieldConfig.firstName||this.fieldConfig.lastName,()=>p`<div class=\"billing-address-row\">${x(this.fieldConfig.firstName,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"firstName\"} .hasError=${this.shouldShowError(\"firstName\")} ><primer-input-label slot=\"label\">${b(\"First name\",{id:\"firstNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"firstName\" name=\"firstName\" type=\"text\" .value=${this.formData.firstName||\"\"} placeholder=${b(\"First name\",{id:\"firstNamePlaceholder\"})} @input=${e=>this.handleInput(\"firstName\",e.detail)} @focus=${()=>this.handleFocus(\"firstName\")} @blur=${()=>this.handleBlur(\"firstName\")} ></primer-input>${x(this.shouldShowError(\"firstName\"),()=>p`<primer-input-error slot=\"error\">${this.errors.firstName}</primer-input-error>`)}</primer-input-wrapper>`)} ${x(this.fieldConfig.lastName,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"lastName\"} .hasError=${this.shouldShowError(\"lastName\")} ><primer-input-label slot=\"label\">${b(\"Last name\",{id:\"lastNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"lastName\" name=\"lastName\" type=\"text\" .value=${this.formData.lastName||\"\"} placeholder=${b(\"Last name\",{id:\"lastNamePlaceholder\"})} @input=${e=>this.handleInput(\"lastName\",e.detail)} @focus=${()=>this.handleFocus(\"lastName\")} @blur=${()=>this.handleBlur(\"lastName\")} ></primer-input>${x(this.shouldShowError(\"lastName\"),()=>p`<primer-input-error slot=\"error\">${this.errors.lastName}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${x(this.fieldConfig.addressLine1,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine1\"} .hasError=${this.shouldShowError(\"addressLine1\")} ><primer-input-label slot=\"label\">${b(\"Address line 1\",{id:\"addressLine1\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine1\" name=\"addressLine1\" type=\"text\" .value=${this.formData.addressLine1||\"\"} placeholder=${b(\"Address line 1\",{id:\"addressLine1Placeholder\"})} @input=${e=>this.handleInput(\"addressLine1\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine1\")} @blur=${()=>this.handleBlur(\"addressLine1\")} ></primer-input>${x(this.shouldShowError(\"addressLine1\"),()=>p`<primer-input-error slot=\"error\">${this.errors.addressLine1}</primer-input-error>`)}</primer-input-wrapper>`)} ${x(this.fieldConfig.addressLine2,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine2\"} .hasError=${this.shouldShowError(\"addressLine2\")} ><primer-input-label slot=\"label\">${b(\"Address line 2\",{id:\"addressLine2\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine2\" name=\"addressLine2\" type=\"text\" .value=${this.formData.addressLine2||\"\"} placeholder=${b(\"Address line 2\",{id:\"addressLine2Placeholder\"})} @input=${e=>this.handleInput(\"addressLine2\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine2\")} @blur=${()=>this.handleBlur(\"addressLine2\")} ></primer-input>${x(this.shouldShowError(\"addressLine2\"),()=>p`<primer-input-error slot=\"error\">${this.errors.addressLine2}</primer-input-error>`)}</primer-input-wrapper>`)} ${x(this.fieldConfig.postalCode||this.fieldConfig.city,()=>p`<div class=\"billing-address-row\">${x(this.fieldConfig.postalCode,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"postalCode\"} .hasError=${this.shouldShowError(\"postalCode\")} ><primer-input-label slot=\"label\">${b(\"Postal code\",{id:\"postalCodeLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"postalCode\" name=\"postalCode\" type=\"text\" .value=${this.formData.postalCode||\"\"} placeholder=${b(\"90210\",{id:\"postalCodePlaceholder\"})} @input=${e=>this.handleInput(\"postalCode\",e.detail)} @focus=${()=>this.handleFocus(\"postalCode\")} @blur=${()=>this.handleBlur(\"postalCode\")} ></primer-input>${x(this.shouldShowError(\"postalCode\"),()=>p`<primer-input-error slot=\"error\">${this.errors.postalCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${x(this.fieldConfig.city,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"city\"} .hasError=${this.shouldShowError(\"city\")} ><primer-input-label slot=\"label\">${b(\"City\",{id:\"cityLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"city\" name=\"city\" type=\"text\" .value=${this.formData.city||\"\"} placeholder=${b(\"Cape Town\",{id:\"cityPlaceholder\"})} @input=${e=>this.handleInput(\"city\",e.detail)} @focus=${()=>this.handleFocus(\"city\")} @blur=${()=>this.handleBlur(\"city\")} ></primer-input>${x(this.shouldShowError(\"city\"),()=>p`<primer-input-error slot=\"error\">${this.errors.city}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${x(this.fieldConfig.state,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"state\"} .hasError=${this.shouldShowError(\"state\")} ><primer-input-label slot=\"label\">${b(\"State / Region / County\",{id:\"stateLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"state\" name=\"state\" type=\"text\" .value=${this.formData.state||\"\"} placeholder=${b(\"State / Region / County\",{id:\"statePlaceholder\"})} @input=${e=>this.handleInput(\"state\",e.detail)} @focus=${()=>this.handleFocus(\"state\")} @blur=${()=>this.handleBlur(\"state\")} ></primer-input>${x(this.shouldShowError(\"state\"),()=>p`<primer-input-error slot=\"error\">${this.errors.state}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`):(this.setAttribute(\"hidden\",\"\"),y)})}}"
204
+ "default": "class extends v{constructor(){super(...arguments);this.configuration=null;this.headlessUtils=null;this.formData={};this.errors={};this.touchedFields=new Set;this.dirtyFields=new Set;this.focusedField=null;this.submitted=!1;this.countryOptions=[];this._initializationTask=new B(this,{task:async([e,a])=>{if(!e||!a)return w;let i=this.extractFieldConfig(e);return await this.initializeCountryOptions(),i},args:()=>[this.configuration,this.headlessUtils]})}connectedCallback(){super.connectedCallback(),this._initializationTask.value}extractFieldConfig(e){if(e?.checkoutModules){let a=e.checkoutModules.find(i=>i.type===\"BILLING_ADDRESS\");if(a?.options){let i=a.options;return Object.keys(on).reduce((n,o)=>({...n,[o]:i[o]??!1}),{})}}return this.defaultFieldConfig}async initializeCountryOptions(){try{let e=nn(\"en\");this.countryOptions=[...e.map(([n,o])=>({value:n,label:o}))],this.requestUpdate(\"countryOptions\");let a=Fi();if(a===\"en\"||a===\"en-GB\"||a.startsWith(\"en-\"))return;if(await Fl(a)){let n=nn(a);this.countryOptions=[...n.map(([o,s])=>({value:o,label:s}))],this.requestUpdate(\"countryOptions\")}}catch(e){P.errorWithDatadog(\"Failed to load country locale\",{error:e})}}get fieldConfig(){return this.extractFieldConfig(this.configuration)}get defaultFieldConfig(){return Object.keys(on).reduce((e,a)=>({...e,[a]:!1}),{})}get shouldShowForm(){return this.fieldConfig.postalCode}handleInput(e,a){this.formData={...this.formData,[e]:a},this.dirtyFields.add(e),(this.submitted||this.dirtyFields.has(e)&&this.touchedFields.has(e))&&this.validateField(e),this.dispatchEvent(new CustomEvent(\"primer-billing-address-change\",{detail:this.formData,bubbles:!0,composed:!0}))}handleFocus(e){this.focusedField=e}handleBlur(e){this.focusedField=null,this.touchedFields.add(e),this.validateField(e)}validateField(e){let a=this.formData[e],i=this.fieldConfig[e];if(!i){delete this.errors[e];return}if(i&&(!a||a.trim()===\"\")){let n=`${e}ErrorRequired`;this.errors={...this.errors,[e]:b(\"This field is required\",{id:n})}}else{let n={...this.errors};delete n[e],this.errors=n}}validateForm(){return Object.keys(on).forEach(e=>{let a=e;this.fieldConfig[a]&&this.validateField(a)}),Object.keys(this.errors).length===0}async validateForSubmission(){if(!this.shouldShowForm)return!0;this.submitted=!0,Object.keys(this.fieldConfig).forEach(a=>{this.fieldConfig[a]&&this.touchedFields.add(a)});let e=this.validateForm();return this.requestUpdate(),await this.updateComplete,e}async submitToSDK(){if(this.headlessUtils?.setBillingAddress)try{return await this.headlessUtils.setBillingAddress(this.formData),this.dispatchEvent(new CustomEvent(\"primer-billing-address-submit\",{detail:this.formData,bubbles:!0,composed:!0})),!0}catch(e){return P.errorWithDatadog(\"Failed to set billing address\",{error:e}),!1}return!0}shouldShowError(e){let a=!!this.errors[e],i=this.dirtyFields.has(e),n=this.touchedFields.has(e);return a&&(this.submitted||i&&n)}render(){return this._initializationTask.render({pending:()=>y,error:()=>y,complete:()=>this.shouldShowForm?(this.removeAttribute(\"hidden\"),p`<div class=\"billing-address-form\"><div class=\"billing-address-title\">${b(\"Billing address\",{id:\"billingAddressLabel\"})}</div>${R(this.fieldConfig.countryCode,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"countryCode\"} .hasError=${this.shouldShowError(\"countryCode\")} ><primer-input-label slot=\"label\">${b(\"Country code\",{id:\"countryCodeLabel\"})}</primer-input-label><primer-select slot=\"input\" id=\"countryCode\" name=\"countryCode\" .value=${this.formData.countryCode||\"\"} .options=${this.countryOptions} .hasError=${this.shouldShowError(\"countryCode\")} placeholder=${b(\"Select a country\",{id:\"countrySelectPlaceholder\"})} @input=${e=>this.handleInput(\"countryCode\",e.detail)} @focus=${()=>this.handleFocus(\"countryCode\")} @blur=${()=>this.handleBlur(\"countryCode\")} ></primer-select>${R(this.shouldShowError(\"countryCode\"),()=>p`<primer-input-error slot=\"error\">${this.errors.countryCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.firstName||this.fieldConfig.lastName,()=>p`<div class=\"billing-address-row\">${R(this.fieldConfig.firstName,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"firstName\"} .hasError=${this.shouldShowError(\"firstName\")} ><primer-input-label slot=\"label\">${b(\"First name\",{id:\"firstNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"firstName\" name=\"firstName\" type=\"text\" .value=${this.formData.firstName||\"\"} placeholder=${b(\"First name\",{id:\"firstNamePlaceholder\"})} @input=${e=>this.handleInput(\"firstName\",e.detail)} @focus=${()=>this.handleFocus(\"firstName\")} @blur=${()=>this.handleBlur(\"firstName\")} ></primer-input>${R(this.shouldShowError(\"firstName\"),()=>p`<primer-input-error slot=\"error\">${this.errors.firstName}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.lastName,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"lastName\"} .hasError=${this.shouldShowError(\"lastName\")} ><primer-input-label slot=\"label\">${b(\"Last name\",{id:\"lastNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"lastName\" name=\"lastName\" type=\"text\" .value=${this.formData.lastName||\"\"} placeholder=${b(\"Last name\",{id:\"lastNamePlaceholder\"})} @input=${e=>this.handleInput(\"lastName\",e.detail)} @focus=${()=>this.handleFocus(\"lastName\")} @blur=${()=>this.handleBlur(\"lastName\")} ></primer-input>${R(this.shouldShowError(\"lastName\"),()=>p`<primer-input-error slot=\"error\">${this.errors.lastName}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${R(this.fieldConfig.addressLine1,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine1\"} .hasError=${this.shouldShowError(\"addressLine1\")} ><primer-input-label slot=\"label\">${b(\"Address line 1\",{id:\"addressLine1\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine1\" name=\"addressLine1\" type=\"text\" .value=${this.formData.addressLine1||\"\"} placeholder=${b(\"Address line 1\",{id:\"addressLine1Placeholder\"})} @input=${e=>this.handleInput(\"addressLine1\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine1\")} @blur=${()=>this.handleBlur(\"addressLine1\")} ></primer-input>${R(this.shouldShowError(\"addressLine1\"),()=>p`<primer-input-error slot=\"error\">${this.errors.addressLine1}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.addressLine2,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine2\"} .hasError=${this.shouldShowError(\"addressLine2\")} ><primer-input-label slot=\"label\">${b(\"Address line 2\",{id:\"addressLine2\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine2\" name=\"addressLine2\" type=\"text\" .value=${this.formData.addressLine2||\"\"} placeholder=${b(\"Address line 2\",{id:\"addressLine2Placeholder\"})} @input=${e=>this.handleInput(\"addressLine2\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine2\")} @blur=${()=>this.handleBlur(\"addressLine2\")} ></primer-input>${R(this.shouldShowError(\"addressLine2\"),()=>p`<primer-input-error slot=\"error\">${this.errors.addressLine2}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.postalCode||this.fieldConfig.city,()=>p`<div class=\"billing-address-row\">${R(this.fieldConfig.postalCode,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"postalCode\"} .hasError=${this.shouldShowError(\"postalCode\")} ><primer-input-label slot=\"label\">${b(\"Postal code\",{id:\"postalCodeLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"postalCode\" name=\"postalCode\" type=\"text\" .value=${this.formData.postalCode||\"\"} placeholder=${b(\"90210\",{id:\"postalCodePlaceholder\"})} @input=${e=>this.handleInput(\"postalCode\",e.detail)} @focus=${()=>this.handleFocus(\"postalCode\")} @blur=${()=>this.handleBlur(\"postalCode\")} ></primer-input>${R(this.shouldShowError(\"postalCode\"),()=>p`<primer-input-error slot=\"error\">${this.errors.postalCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${R(this.fieldConfig.city,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"city\"} .hasError=${this.shouldShowError(\"city\")} ><primer-input-label slot=\"label\">${b(\"City\",{id:\"cityLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"city\" name=\"city\" type=\"text\" .value=${this.formData.city||\"\"} placeholder=${b(\"Cape Town\",{id:\"cityPlaceholder\"})} @input=${e=>this.handleInput(\"city\",e.detail)} @focus=${()=>this.handleFocus(\"city\")} @blur=${()=>this.handleBlur(\"city\")} ></primer-input>${R(this.shouldShowError(\"city\"),()=>p`<primer-input-error slot=\"error\">${this.errors.city}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${R(this.fieldConfig.state,()=>p`<primer-input-wrapper .focusWithin=${this.focusedField===\"state\"} .hasError=${this.shouldShowError(\"state\")} ><primer-input-label slot=\"label\">${b(\"State / Region / County\",{id:\"stateLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"state\" name=\"state\" type=\"text\" .value=${this.formData.state||\"\"} placeholder=${b(\"State / Region / County\",{id:\"statePlaceholder\"})} @input=${e=>this.handleInput(\"state\",e.detail)} @focus=${()=>this.handleFocus(\"state\")} @blur=${()=>this.handleBlur(\"state\")} ></primer-input>${R(this.shouldShowError(\"state\"),()=>p`<primer-input-error slot=\"error\">${this.errors.state}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`):(this.setAttribute(\"hidden\",\"\"),y)})}}"
205
205
  },
206
206
  {
207
207
  "kind": "variable",
208
208
  "name": "X",
209
- "default": "class extends v{constructor(){super();this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.contextEventsController=null;this.hasSlottedSubmit=!1;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this._isHandlingContextEvent=!1;this._contextVaultSubmitListener=null;this.deleteAssetConfig=null;this.handleSubmitSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedSubmit=i.length>0};this.handleToggleEditMode=e=>{this.isEditMode=e.detail,this.deletePaymentMethodId=null,this.isEditMode&&this.vaultItemContext&&this.vaultItemContext.setSelectedVaultedPaymentMethod(null)};this.handleDeletePaymentMethod=async e=>{if(this.deletePaymentMethodId=e.detail,this.deletePaymentMethodId&&this.vaultManagerContext&&this.headlessUtils){let a=this.vaultManagerContext.vaultedPaymentMethods.find(i=>i.id===this.deletePaymentMethodId);a&&(this.deleteAssetConfig=await Ur(a,this.headlessUtils,this.vaultManagerContext))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.vaultManagerContext?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"});return}try{this.isDeleting=!0,await this.vaultManagerContext.deleteVaultedPaymentMethod(this.deletePaymentMethodId),this.deletePaymentMethodId=null,this.deleteAssetConfig=null}catch(e){this.errorMessage=e instanceof Error?e.message:b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}finally{this.isDeleting=!1}};this.handlePaymentError=e=>{let a=e.detail?.error;this.errorMessage=a instanceof Error?a.message:b(\"payment_processing_error\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isSubmitButton(n)&&(e.preventDefault(),this.submitVaultPayment())};this.handleDirectSubmit=()=>{this.submitVaultPayment()};this.handleContextVaultSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitVaultPayment())}finally{this._isHandlingContextEvent=!1}}};new aa(this,{defaultOptions:{keyframeOptions:{duration:Number(getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-duration\").trim().replace(\"ms\",\"\")),easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim()}}})}getAnimationConfig(){return{keyframeOptions:{duration:this.animationDuration,easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim(),fill:\"both\"}}}isSubmitButton(e){let a=e.tagName.toLowerCase(),i=a===\"button\",n=a===\"primer-button\";return i&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||n&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitVaultPayment(){if(this.vaultManagerContext)try{await this.vaultManagerContext.startVaultedPaymentFlow()}catch(e){this.dispatchEvent(new CustomEvent(\"primer-vault-payment-error\",{detail:{error:e},bubbles:!0,composed:!0}))}}getPaymentMethodName(e){if(!this.vaultManagerContext)return\"\";let a=this.vaultManagerContext.vaultedPaymentMethods.find(i=>i.id===e);if(!a)return\"\";try{return dn(a).description||\"\"}catch{return\"\"}}setupContextEventListeners(){this.contextEventsController?.host&&this._contextVaultSubmitListener&&this.contextEventsController.host.addEventListener(\"primer:vault-submit\",this._contextVaultSubmitListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextVaultSubmitListener&&this.contextEventsController.host.removeEventListener(\"primer:vault-submit\",this._contextVaultSubmitListener)}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:vault-submit\",this.handleDirectSubmit),this._contextVaultSubmitListener=e=>{this.handleContextVaultSubmit(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:vault-submit\",this.handleDirectSubmit),this.cleanupContextEventListeners(),super.disconnectedCallback()}renderLoadingOverlay(){return p`<div class=\"loading-overlay\" ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ><primer-spinner size=\"medium\" color=\"var(--primer-color-loader)\" ></primer-spinner></div>`}renderDeleteConfirmation(){if(!this.deletePaymentMethodId||!this.deleteAssetConfig)return y;let e=this.getPaymentMethodName(this.deletePaymentMethodId);return p`<div class=\"delete-confirmation-container\"><primer-button disabled variant=\"secondary\"><primer-payment-method-content .assetConfig=${this.deleteAssetConfig} ></primer-payment-method-content></primer-button><primer-vault-delete-confirmation .isDeleting=${this.isDeleting} .paymentMethodId=${this.deletePaymentMethodId} .paymentMethodName=${e} @confirm-delete=${this.handleConfirmDelete} @cancel-delete=${this.handleCancelDelete} ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-delete-confirmation></div>`}renderPaymentMethodItem(e){return this.deletePaymentMethodId===e.id?y:p`<primer-vault-payment-method-item .paymentMethod=${e} .isEditMode=${this.isEditMode} @delete-payment-method=${this.handleDeletePaymentMethod} ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-payment-method-item>`}renderPaymentMethodList(){let e=this.vaultManagerContext?.vaultedPaymentMethods||[],a=!this.isEditMode&&e.length>0&&!this.deletePaymentMethodId;return p`<div class=\"payment-methods-list\">${e.map(i=>this.renderPaymentMethodItem(i))} ${x(a,()=>p`<div class=\"submit-button-container\"><slot name=\"submit-button\" @slotchange=${this.handleSubmitSlotChange} ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></slot>${x(!this.hasSlottedSubmit,()=>p`<primer-vault-payment-submit class=\"submit-button\" @primer-vault-payment-error=${this.handlePaymentError} ></primer-vault-payment-submit>`)}</div>`,()=>y)}</div>`}render(){if(!this.vaultManagerContext?.enabled||this.vaultManagerContext?.headless)return y;let e=this.vaultManagerContext.vaultedPaymentMethods.length>0,a=this.vaultManagerContext.isLoading,i=this.vaultManagerContext.isUpdating;return p` ${x(!this.vaultManagerContext?.showEmptyState&&!e,()=>y,()=>p`<slot name=\"vault-empty-state\"><div class=\"vault-manager ${i?\"is-updating\":\"\"}\"><primer-vault-manager-header .isEditMode=${this.isEditMode} .hasPaymentMethods=${e} @toggle-edit-mode=${this.handleToggleEditMode} ></primer-vault-manager-header>${x(this.errorMessage,()=>p`<primer-vault-error-message .errorMessage=${this.errorMessage} @close-error=${this.handleCloseError} ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-error-message>`,()=>y)}<div class=\"vault-manager-content\">${x(!a&&!e,()=>p`<div class=\"content-container\"><primer-vault-empty-state ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-empty-state></div>`,()=>y)} ${x(!a&&e,()=>p`<div class=\"content-container\">${x(this.deletePaymentMethodId,()=>this.renderDeleteConfirmation(),()=>this.renderPaymentMethodList())}</div>`,()=>y)}</div>${x(i,()=>this.renderLoadingOverlay(),()=>y)}</div></slot>`)} `}}"
209
+ "default": "class extends v{constructor(){super();this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.contextEventsController=null;this.hasSlottedSubmit=!1;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this._isHandlingContextEvent=!1;this._contextVaultSubmitListener=null;this.deleteAssetConfig=null;this.handleSubmitSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedSubmit=i.length>0};this.handleToggleEditMode=e=>{this.isEditMode=e.detail,this.deletePaymentMethodId=null,this.isEditMode&&this.vaultItemContext&&this.vaultItemContext.setSelectedVaultedPaymentMethod(null)};this.handleDeletePaymentMethod=async e=>{if(this.deletePaymentMethodId=e.detail,this.deletePaymentMethodId&&this.vaultManagerContext&&this.headlessUtils){let a=this.vaultManagerContext.vaultedPaymentMethods.find(i=>i.id===this.deletePaymentMethodId);a&&(this.deleteAssetConfig=await Fr(a,this.headlessUtils,this.vaultManagerContext))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.vaultManagerContext?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"});return}try{this.isDeleting=!0,await this.vaultManagerContext.deleteVaultedPaymentMethod(this.deletePaymentMethodId),this.deletePaymentMethodId=null,this.deleteAssetConfig=null}catch(e){this.errorMessage=e instanceof Error?e.message:b(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}finally{this.isDeleting=!1}};this.handlePaymentError=e=>{let a=e.detail?.error;this.errorMessage=a instanceof Error?a.message:b(\"payment_processing_error\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isSubmitButton(n)&&(e.preventDefault(),this.submitVaultPayment())};this.handleDirectSubmit=()=>{this.submitVaultPayment()};this.handleContextVaultSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitVaultPayment())}finally{this._isHandlingContextEvent=!1}}};new aa(this,{defaultOptions:{keyframeOptions:{duration:Number(getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-duration\").trim().replace(\"ms\",\"\")),easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim()}}})}getAnimationConfig(){return{keyframeOptions:{duration:this.animationDuration,easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim(),fill:\"both\"}}}isSubmitButton(e){let a=e.tagName.toLowerCase(),i=a===\"button\",n=a===\"primer-button\";return i&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||n&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitVaultPayment(){if(this.vaultManagerContext)try{await this.vaultManagerContext.startVaultedPaymentFlow()}catch(e){this.dispatchEvent(new CustomEvent(\"primer-vault-payment-error\",{detail:{error:e},bubbles:!0,composed:!0}))}}getPaymentMethodName(e){if(!this.vaultManagerContext)return\"\";let a=this.vaultManagerContext.vaultedPaymentMethods.find(i=>i.id===e);if(!a)return\"\";try{return ln(a).description||\"\"}catch{return\"\"}}setupContextEventListeners(){this.contextEventsController?.host&&this._contextVaultSubmitListener&&this.contextEventsController.host.addEventListener(\"primer:vault-submit\",this._contextVaultSubmitListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextVaultSubmitListener&&this.contextEventsController.host.removeEventListener(\"primer:vault-submit\",this._contextVaultSubmitListener)}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:vault-submit\",this.handleDirectSubmit),this._contextVaultSubmitListener=e=>{this.handleContextVaultSubmit(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:vault-submit\",this.handleDirectSubmit),this.cleanupContextEventListeners(),super.disconnectedCallback()}renderLoadingOverlay(){return p`<div class=\"loading-overlay\" ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ><primer-spinner size=\"medium\" color=\"var(--primer-color-loader)\" ></primer-spinner></div>`}renderDeleteConfirmation(){if(!this.deletePaymentMethodId||!this.deleteAssetConfig)return y;let e=this.getPaymentMethodName(this.deletePaymentMethodId);return p`<div class=\"delete-confirmation-container\"><primer-button disabled variant=\"secondary\"><primer-payment-method-content .assetConfig=${this.deleteAssetConfig} ></primer-payment-method-content></primer-button><primer-vault-delete-confirmation .isDeleting=${this.isDeleting} .paymentMethodId=${this.deletePaymentMethodId} .paymentMethodName=${e} @confirm-delete=${this.handleConfirmDelete} @cancel-delete=${this.handleCancelDelete} ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-delete-confirmation></div>`}renderPaymentMethodItem(e){return this.deletePaymentMethodId===e.id?y:p`<primer-vault-payment-method-item .paymentMethod=${e} .isEditMode=${this.isEditMode} @delete-payment-method=${this.handleDeletePaymentMethod} ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-payment-method-item>`}renderPaymentMethodList(){let e=this.vaultManagerContext?.vaultedPaymentMethods||[],a=!this.isEditMode&&e.length>0&&!this.deletePaymentMethodId;return p`<div class=\"payment-methods-list\">${e.map(i=>this.renderPaymentMethodItem(i))} ${R(a,()=>p`<div class=\"submit-button-container\"><slot name=\"submit-button\" @slotchange=${this.handleSubmitSlotChange} ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></slot>${R(!this.hasSlottedSubmit,()=>p`<primer-vault-payment-submit class=\"submit-button\" @primer-vault-payment-error=${this.handlePaymentError} ></primer-vault-payment-submit>`)}</div>`,()=>y)}</div>`}render(){if(!this.vaultManagerContext?.enabled||this.vaultManagerContext?.headless)return y;let e=this.vaultManagerContext.vaultedPaymentMethods.length>0,a=this.vaultManagerContext.isLoading,i=this.vaultManagerContext.isUpdating;return p` ${R(!this.vaultManagerContext?.showEmptyState&&!e,()=>y,()=>p`<slot name=\"vault-empty-state\"><div class=\"vault-manager ${i?\"is-updating\":\"\"}\"><primer-vault-manager-header .isEditMode=${this.isEditMode} .hasPaymentMethods=${e} @toggle-edit-mode=${this.handleToggleEditMode} ></primer-vault-manager-header>${R(this.errorMessage,()=>p`<primer-vault-error-message .errorMessage=${this.errorMessage} @close-error=${this.handleCloseError} ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-error-message>`,()=>y)}<div class=\"vault-manager-content\">${R(!a&&!e,()=>p`<div class=\"content-container\"><primer-vault-empty-state ${Tt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-empty-state></div>`,()=>y)} ${R(!a&&e,()=>p`<div class=\"content-container\">${R(this.deletePaymentMethodId,()=>this.renderDeleteConfirmation(),()=>this.renderPaymentMethodList())}</div>`,()=>y)}</div>${R(i,()=>this.renderLoadingOverlay(),()=>y)}</div></slot>`)} `}}"
210
210
  },
211
211
  {
212
212
  "kind": "variable",
213
213
  "name": "Ee",
214
- "default": "class extends v{constructor(){super(...arguments);this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.paymentMethod=null;this.isEditMode=!1;this._getAssetsTask=new B(this,{task:async([e,a,i])=>await Ur(e,a,i),args:()=>[this.paymentMethod,this.headlessUtils,this.vaultManagerContext]});this.handleClick=()=>{this.isEditMode||!this.vaultManagerContext||!this.paymentMethod||(this.isSelected()?this.vaultItemContext?.setSelectedVaultedPaymentMethod(null):this.vaultItemContext?.setSelectedVaultedPaymentMethod(this.paymentMethod))};this.handleDeleteClick=e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent(\"delete-payment-method\",{detail:this.paymentMethod?.id,bubbles:!0,composed:!0}))}}isSelected(){if(!this.vaultManagerContext||!this.paymentMethod)return!1;let e=this.vaultItemContext?.selectedVaultedPaymentMethod;return!!e&&e.id===this.paymentMethod.id}render(){return this._getAssetsTask.render({error:()=>y,complete:e=>{let a=this.isSelected()?\"checked\":\"default\",i=!1,n=e?.description;return p`<div class=\"payment-method-wrapper\"><div class=\"payment-method-container\"><primer-button variant=\"secondary\" class=\"payment-method-button ${e.shouldShowCVV?\"with-cvv\":\"\"}\" selectable ?disabled=${this.isEditMode} selectionState=${a} .flex=${i} @click=${this.handleClick} ><primer-payment-method-content .assetConfig=${e} ></primer-payment-method-content>${x(e.shouldShowCVV&&this.isSelected()&&!this.isEditMode,()=>p`<div class=\"payment-method-row mt-2\"><span class=\"flex-center\"><primer-icon name=\"lock\" size=\"sm\"></primer-icon><span class=\"payment-method-subtitle\"> Input the card CVV for a secure payment</span ></span><span class=\"cell-2\"><primer-vault-cvv-input .paymentMethod=\"${this.paymentMethod}\" ><span slot=\"label\"></span></primer-vault-cvv-input></span></div>`,()=>y)}</primer-button>${this.isEditMode?p`<primer-button variant=\"tertiary\" class=\"delete-button\" @click=${this.handleDeleteClick} aria-label=${`${b(\"delete\",{id:\"delete\"})} ${n}`} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></primer-button>`:y}</div></div>`}})}}"
214
+ "default": "class extends v{constructor(){super(...arguments);this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.paymentMethod=null;this.isEditMode=!1;this._getAssetsTask=new B(this,{task:async([e,a,i])=>await Fr(e,a,i),args:()=>[this.paymentMethod,this.headlessUtils,this.vaultManagerContext]});this.handleClick=()=>{this.isEditMode||!this.vaultManagerContext||!this.paymentMethod||(this.isSelected()?this.vaultItemContext?.setSelectedVaultedPaymentMethod(null):this.vaultItemContext?.setSelectedVaultedPaymentMethod(this.paymentMethod))};this.handleDeleteClick=e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent(\"delete-payment-method\",{detail:this.paymentMethod?.id,bubbles:!0,composed:!0}))}}isSelected(){if(!this.vaultManagerContext||!this.paymentMethod)return!1;let e=this.vaultItemContext?.selectedVaultedPaymentMethod;return!!e&&e.id===this.paymentMethod.id}render(){return this._getAssetsTask.render({error:()=>y,complete:e=>{let a=this.isSelected()?\"checked\":\"default\",i=!1,n=e?.description;return p`<div class=\"payment-method-wrapper\"><div class=\"payment-method-container\"><primer-button variant=\"secondary\" class=\"payment-method-button ${e.shouldShowCVV?\"with-cvv\":\"\"}\" selectable ?disabled=${this.isEditMode} selectionState=${a} .flex=${i} @click=${this.handleClick} ><primer-payment-method-content .assetConfig=${e} ></primer-payment-method-content>${R(e.shouldShowCVV&&this.isSelected()&&!this.isEditMode,()=>p`<div class=\"payment-method-row mt-2\"><span class=\"flex-center\"><primer-icon name=\"lock\" size=\"sm\"></primer-icon><span class=\"payment-method-subtitle\"> Input the card CVV for a secure payment</span ></span><span class=\"cell-2\"><primer-vault-cvv-input .paymentMethod=\"${this.paymentMethod}\" ><span slot=\"label\"></span></primer-vault-cvv-input></span></div>`,()=>y)}</primer-button>${this.isEditMode?p`<primer-button variant=\"tertiary\" class=\"delete-button\" @click=${this.handleDeleteClick} aria-label=${`${b(\"delete\",{id:\"delete\"})} ${n}`} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></primer-button>`:y}</div></div>`}})}}"
215
215
  },
216
216
  {
217
217
  "kind": "variable",
@@ -220,7 +220,7 @@
220
220
  },
221
221
  {
222
222
  "kind": "variable",
223
- "name": "Ie",
223
+ "name": "Ne",
224
224
  "default": "class extends v{constructor(){super(...arguments);this.isDeleting=!1;this.paymentMethodId=\"\";this.paymentMethodName=\"\";this.vaultManager=null;this.handleConfirmClick=()=>{this.dispatchEvent(new CustomEvent(\"confirm-delete\",{bubbles:!0,composed:!0}))};this.handleCancelClick=()=>{this.dispatchEvent(new CustomEvent(\"cancel-delete\",{bubbles:!0,composed:!0}))}}render(){return p`<div class=\"delete-confirmation\"><p class=\"delete-confirmation-text\"> Are you sure you want to delete this payment method? </p><div class=\"delete-actions\"><primer-button variant=\"secondary\" @click=${this.handleCancelClick} ?disabled=${this.isDeleting} >${b(\"cancel\",{id:\"cancel\"})}</primer-button><primer-button @click=${this.handleConfirmClick} ?disabled=${this.isDeleting} >${this.isDeleting?b(\"deleting\",{id:\"deleting\"}):b(\"confirmVaultedPaymentMethodDeletion\",{id:\"confirmVaultedPaymentMethodDeletion\"})}</primer-button></div></div>`}}"
225
225
  },
226
226
  {
@@ -241,22 +241,22 @@
241
241
  {
242
242
  "kind": "variable",
243
243
  "name": "ee",
244
- "default": "class extends v{constructor(){super();this.vaultManagerFormContext=null;this.vaultManagerCvvContext=null;this.computedStyles=null;this.paymentMethod=null;this.cvvError=null;this.cvvInputIsDirty=!1;this.cvvInputIsBlurred=!1;this.cvvInput=null;this.isFocused=!1;this._setupCVVIframe=new B(this,{task:([e,a])=>!e||!a||e.paymentMethodType!==\"PAYMENT_CARD\"||!e.paymentInstrumentData?.network||a.createCvvInput===null?w:{network:e.paymentInstrumentData.network,createCvvInput:a.createCvvInput},args:()=>[this.paymentMethod,this.vaultManagerFormContext]});this.cvvContainerId=`cvv-container-${Math.random().toString(36).substring(2,9)}`,new B(this,{task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!a)return;let i=$r(this.computedStyles),n=i?{input:{base:i}}:void 0,o={cardNetwork:e.network,container:a,name:\"cvv\",placeholder:\"123\",style:n,ariaLabel:b(\"CVV\",{id:\"cardCVV\"})};this.cvvInput=await e.createCvvInput?.(o)??null,this.cvvInput&&(this.cvvInput.focus(),this.cvvError=this.cvvInput.metadata.errorCode||null,this.vaultManagerCvvContext?.setCvvInput(this.cvvInput),this.cvvInput.addListener(\"change\",()=>{this.onCvvInputChange()}),this.cvvInput.addListener(\"blur\",()=>{this.onBlur()}),this.cvvInput.addListener(\"focus\",()=>{this.onFocus()}))},args:()=>[this._setupCVVIframe.value]})}disconnectedCallback(){super.disconnectedCallback(),this.cvvInput&&(this.cvvInput.remove(),this.cvvInput=null,this.cvvError=null,this.vaultManagerCvvContext?.setCvvInput(null))}onCvvInputChange(){!this.cvvInput||!this.vaultManagerCvvContext||(this.cvvInputIsDirty=!0,this.cvvError=this.cvvInput.metadata.errorCode||null)}onBlur(){this.cvvInput&&(this.cvvInputIsBlurred=!0,this.cvvError=this.cvvInput.metadata.errorCode||null,this.isFocused=!1)}onFocus(){this.isFocused=!0}render(){return this._setupCVVIframe.render({error:()=>y,complete:()=>p`<div class=\"cvv-input-container\"><primer-input-wrapper .focusWithin=${this.isFocused} .hasError=${!!this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred)} ><slot name=\"label\" slot=\"label\"><primer-input-label>CVV</primer-input-label></slot><div slot=\"input\" id=\"${this.cvvContainerId}\"></div>${x(this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred),()=>p`<primer-input-error slot=\"error\">${b(this.cvvError,{id:this.cvvError})}</primer-input-error>`)}</primer-input-wrapper></div>`})}}"
244
+ "default": "class extends v{constructor(){super();this.vaultManagerFormContext=null;this.vaultManagerCvvContext=null;this.computedStyles=null;this.paymentMethod=null;this.cvvError=null;this.cvvInputIsDirty=!1;this.cvvInputIsBlurred=!1;this.cvvInput=null;this.isFocused=!1;this._setupCVVIframe=new B(this,{task:([e,a])=>!e||!a||e.paymentMethodType!==\"PAYMENT_CARD\"||!e.paymentInstrumentData?.network||a.createCvvInput===null?w:{network:e.paymentInstrumentData.network,createCvvInput:a.createCvvInput},args:()=>[this.paymentMethod,this.vaultManagerFormContext]});this.cvvContainerId=`cvv-container-${Math.random().toString(36).substring(2,9)}`,new B(this,{task:async([e])=>{if(!e)return w;await this.updateComplete;let a=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!a)return;let i=zr(this.computedStyles),n=i?{input:{base:i}}:void 0,o={cardNetwork:e.network,container:a,name:\"cvv\",placeholder:\"123\",style:n,ariaLabel:b(\"CVV\",{id:\"cardCVV\"})};this.cvvInput=await e.createCvvInput?.(o)??null,this.cvvInput&&(this.cvvInput.focus(),this.cvvError=this.cvvInput.metadata.errorCode||null,this.vaultManagerCvvContext?.setCvvInput(this.cvvInput),this.cvvInput.addListener(\"change\",()=>{this.onCvvInputChange()}),this.cvvInput.addListener(\"blur\",()=>{this.onBlur()}),this.cvvInput.addListener(\"focus\",()=>{this.onFocus()}))},args:()=>[this._setupCVVIframe.value]})}disconnectedCallback(){super.disconnectedCallback(),this.cvvInput&&(this.cvvInput.remove(),this.cvvInput=null,this.cvvError=null,this.vaultManagerCvvContext?.setCvvInput(null))}onCvvInputChange(){!this.cvvInput||!this.vaultManagerCvvContext||(this.cvvInputIsDirty=!0,this.cvvError=this.cvvInput.metadata.errorCode||null)}onBlur(){this.cvvInput&&(this.cvvInputIsBlurred=!0,this.cvvError=this.cvvInput.metadata.errorCode||null,this.isFocused=!1)}onFocus(){this.isFocused=!0}render(){return this._setupCVVIframe.render({error:()=>y,complete:()=>p`<div class=\"cvv-input-container\"><primer-input-wrapper .focusWithin=${this.isFocused} .hasError=${!!this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred)} ><slot name=\"label\" slot=\"label\"><primer-input-label>CVV</primer-input-label></slot><div slot=\"input\" id=\"${this.cvvContainerId}\"></div>${R(this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred),()=>p`<primer-input-error slot=\"error\">${b(this.cvvError,{id:this.cvvError})}</primer-input-error>`)}</primer-input-wrapper></div>`})}}"
245
245
  },
246
246
  {
247
247
  "kind": "variable",
248
248
  "name": "Xe",
249
- "default": "class extends v{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return y;let e=this.assetConfig.description,a=this.assetConfig.icon,i=x(this.assetConfig.icon,()=>p`<img class=\"payment-method-icon\" src=${a} alt=${e} />`,()=>p`<div class=\"payment-method-icon payment-method-icon-generic\"><primer-icon name=\"payment-card\" size=\"sm\"></primer-icon></div>`);return this.assetConfig.type===\"paypal\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></span></div></span>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType!==\"ACH\"?p`<div class=\"payment-method-card-other\"><div class=\"left-column\"><div class=\"payment-method-header\">${this.assetConfig.fullName}</div><div class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></div></div><div class=\"payment-method-right-column-text\">${this.assetConfig.email||`\\u2022\\u2022\\u2022\\u2022 ${this.assetConfig.last4}`}</div></div>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType===\"ACH\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.bankName}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.accountType}</span ></div></span>`:this.assetConfig.type===\"card\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.cardholderName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.network}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.expiresDate}</span ></div></span>`:this.assetConfig.type===\"GOOGLE_PAY\"?p`<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}}"
249
+ "default": "class extends v{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return y;let e=this.assetConfig.description,a=this.assetConfig.icon,i=R(this.assetConfig.icon,()=>p`<img class=\"payment-method-icon\" src=${a} alt=${e} />`,()=>p`<div class=\"payment-method-icon payment-method-icon-generic\"><primer-icon name=\"payment-card\" size=\"sm\"></primer-icon></div>`);return this.assetConfig.type===\"paypal\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></span></div></span>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType!==\"ACH\"?p`<div class=\"payment-method-card-other\"><div class=\"left-column\"><div class=\"payment-method-header\">${this.assetConfig.fullName}</div><div class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></div></div><div class=\"payment-method-right-column-text\">${this.assetConfig.email||`\\u2022\\u2022\\u2022\\u2022 ${this.assetConfig.last4}`}</div></div>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType===\"ACH\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.bankName}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.accountType}</span ></div></span>`:this.assetConfig.type===\"card\"?p`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.cardholderName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${i}<span class=\"payment-method-subtitle\" >${this.assetConfig.network}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.expiresDate}</span ></div></span>`:this.assetConfig.type===\"GOOGLE_PAY\"?p`<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}}"
250
250
  },
251
251
  {
252
252
  "kind": "variable",
253
253
  "name": "ie",
254
- "default": "class extends v{constructor(){super(...arguments);this.hideLabels=!1;this.disabled=!1;this.hasAssignedContent=!1;this.selectedCardNetwork=null;this.formErrorMessage=null;this.paymentMethodSelectionSent=!1;this.paymentManagers=new Map;this.clientOptions=null;this.headlessUtils=null;this.analyticsUtils=null;this.contextEventsController=null;this.cardFormProvider=new W(this,{context:ra,initialValue:null});this.eventsController=new Wt(this);this._contextCardSubmitListener=null;this._isHandlingContextEvent=!1;this.inputControllers=new Map;this.setupCardFormTask=new B(this,{task:([e])=>{if(!e?.manager)return w;let{manager:a}=e,i=a.createHostedInputs(),{cardNumberInput:n,expiryInput:o,cvvInput:s}=i;return this.cardFormProvider.setValue({cardholderNameInput:i.cardholderNameInput,cardNumberInput:n,expiryInput:o,cvvInput:s,setCardholderName:l=>{a.setCardholderName(l),this.shouldRequireCardholderName&&a.validate?.().then(c=>{let g=c?.validationErrors?.find(C=>C.name===dd.cardholderName),h=this.inputControllers.get(\"cardholderName\");h&&h.updateMetaFromValidation({valid:!1,error:g?.message||g?.error||null,errorCode:g?.message||g?.error||null})})},setCardNetwork:l=>{this.selectedCardNetwork=l},validate:()=>a.validate(),submit:l=>a.submit(l),hideLabels:this.hideLabels,disabled:this.disabled,setSubmissionState:l=>{this.inputControllers.forEach(c=>{c.setSubmitted(l)})},propagateValidationErrors:l=>{l&&l.forEach(c=>{let m=c.field||c.name,g=c.message||c.error,h=dd[m];if(h){let C=this.inputControllers.get(h);if(C){let E={valid:!1,error:g,errorCode:g};C.updateMetaFromValidation(E)}}})},registerInputController:(l,c)=>{this.inputControllers.set(l,c)},unregisterInputController:l=>{this.inputControllers.delete(l)},onUserInteraction:()=>{this.sendPaymentMethodSelectionEvent(),this.checkAndSendPaymentDetailsEnteredEvent()}}),!0},args:()=>[this.paymentManagers.get(\"PAYMENT_CARD\")]});this.paymentDetailsEnteredSent=!1;this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isSubmitButton(n)&&(e.preventDefault(),this.submitCardPayment())};this.handleDirectSubmit=e=>{e.stopPropagation(),this.submitCardPayment()};this.handleContextCardSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitCardPayment())}finally{this._isHandlingContextEvent=!1}}};this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0};this.handleFormSubmit=e=>{e.preventDefault(),e.stopPropagation(),this.submitCardPayment()}}updated(e){if(super.updated(e),(e.has(\"hideLabels\")||e.has(\"disabled\"))&&this.cardFormProvider.value&&this.cardFormProvider.setValue({...this.cardFormProvider.value,hideLabels:this.hideLabels,disabled:this.disabled}),e.has(\"contextEventsController\")){let a=e.get(\"contextEventsController\");a?.host&&this._contextCardSubmitListener&&a.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener),this.setupContextEventListeners()}}get shouldShowCardholderName(){let e=this.clientOptions?.card?.cardholderName;return typeof e?.visible==\"boolean\"?e.visible:!0}get shouldRequireCardholderName(){if(!this.shouldShowCardholderName)return!1;let e=this.clientOptions?.card?.cardholderName;return typeof e?.required==\"boolean\"?e.required:!0}sendPaymentMethodSelectionEvent(){this.paymentMethodSelectionSent||(this.paymentMethodSelectionSent=!0,Q({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(){Q({eventName:\"PAYMENT_DETAILS_ENTERED\",paymentMethod:\"PAYMENT_CARD\"})}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:card-submit\",this.handleDirectSubmit),this._contextCardSubmitListener=e=>{this.handleContextCardSubmit(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:card-submit\",this.handleDirectSubmit),this.cleanupContextEventListeners(),super.disconnectedCallback()}setupContextEventListeners(){this.contextEventsController?.host&&this._contextCardSubmitListener&&this.contextEventsController.host.addEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextCardSubmitListener&&this.contextEventsController.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}isSubmitButton(e){let a=e.tagName.toLowerCase(),i=a===\"button\",n=a===\"primer-button\";return i&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||n&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitCardPayment(){let e=this.cardFormProvider.value;if(!e||this.disabled)return;this.formErrorMessage=null,e.setSubmissionState?.(!0);let a=this.querySelector(\"primer-billing-address\")||this.renderRoot.querySelector(\"primer-billing-address\"),i=!0;a&&(i=await a.validateForSubmission());let n=await e.validate?.();if(n?.valid&&i){if(a&&!await a.submitToSDK()){let c=b(\"tokenizationError\",{id:\"tokenizationError\"});this.formErrorMessage=c,this.eventsController.dispatchFormSubmitErrors([{field:\"billingAddress\",name:\"billingAddress\",error:\"BILLING_ADDRESS_SUBMISSION_FAILED\",message:c}]);return}let o=this.selectedCardNetwork?{cardNetwork:this.selectedCardNetwork}:void 0;await e.submit?.(o);let s={success:!0};this.eventsController.dispatchFormSubmitSuccess(s)}else{let o=n?.validationErrors;e.propagateValidationErrors?.(o||[]),this.cardFormProvider.setValue({...e,errors:o}),this.eventsController.dispatchFormSubmitErrors(o)}}render(){return this.setupCardFormTask.status===vt.ERROR||this.setupCardFormTask.status===vt.INITIAL?y:p`<form @submit=${this.handleFormSubmit}><slot name=\"card-form-content\" @slotchange=${this.onSlotChange}></slot>${this.setupCardFormTask.render({complete:()=>x(this.hasAssignedContent,()=>y,()=>p`<div class=\"card-form\"><primer-input-card-number></primer-input-card-number><div class=\"card-form-row\"><primer-input-card-expiry></primer-input-card-expiry><primer-input-cvv></primer-input-cvv></div>${x(this.shouldShowCardholderName,()=>p`<primer-input-card-holder-name></primer-input-card-holder-name>`,()=>y)}<primer-billing-address></primer-billing-address></div><primer-card-form-submit></primer-card-form-submit><primer-error-message message=\"${this.formErrorMessage||\"\"}\" ?visible=\"${!!this.formErrorMessage}\" ></primer-error-message>`)})}</form>`}}"
254
+ "default": "class extends v{constructor(){super(...arguments);this.hideLabels=!1;this.disabled=!1;this.hasAssignedContent=!1;this.selectedCardNetwork=null;this.formErrorMessage=null;this.paymentMethodSelectionSent=!1;this.paymentManagers=new Map;this.clientOptions=null;this.headlessUtils=null;this.analyticsUtils=null;this.contextEventsController=null;this.cardFormProvider=new W(this,{context:ra,initialValue:null});this.eventsController=new Wt(this);this._contextCardSubmitListener=null;this._isHandlingContextEvent=!1;this.inputControllers=new Map;this.setupCardFormTask=new B(this,{task:([e])=>{if(!e?.manager)return w;let{manager:a}=e,i=a.createHostedInputs(),{cardNumberInput:n,expiryInput:o,cvvInput:s}=i;return this.cardFormProvider.setValue({cardholderNameInput:i.cardholderNameInput,cardNumberInput:n,expiryInput:o,cvvInput:s,setCardholderName:l=>{a.setCardholderName(l),this.shouldRequireCardholderName&&a.validate?.().then(c=>{let g=c?.validationErrors?.find(T=>T.name===ud.cardholderName),h=this.inputControllers.get(\"cardholderName\");h&&h.updateMetaFromValidation({valid:!1,error:g?.message||g?.error||null,errorCode:g?.message||g?.error||null})})},setCardNetwork:l=>{this.selectedCardNetwork=l},validate:()=>a.validate(),submit:l=>a.submit(l),hideLabels:this.hideLabels,disabled:this.disabled,setSubmissionState:l=>{this.inputControllers.forEach(c=>{c.setSubmitted(l)})},propagateValidationErrors:l=>{l&&l.forEach(c=>{let m=c.field||c.name,g=c.message||c.error,h=ud[m];if(h){let T=this.inputControllers.get(h);if(T){let M={valid:!1,error:g,errorCode:g};T.updateMetaFromValidation(M)}}})},registerInputController:(l,c)=>{this.inputControllers.set(l,c)},unregisterInputController:l=>{this.inputControllers.delete(l)},onUserInteraction:()=>{this.sendPaymentMethodSelectionEvent(),this.checkAndSendPaymentDetailsEnteredEvent()}}),!0},args:()=>[this.paymentManagers.get(\"PAYMENT_CARD\")]});this.paymentDetailsEnteredSent=!1;this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isSubmitButton(n)&&(e.preventDefault(),this.submitCardPayment())};this.handleDirectSubmit=e=>{e.stopPropagation(),this.submitCardPayment()};this.handleContextCardSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitCardPayment())}finally{this._isHandlingContextEvent=!1}}};this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0};this.handleFormSubmit=e=>{e.preventDefault(),e.stopPropagation(),this.submitCardPayment()}}updated(e){if(super.updated(e),(e.has(\"hideLabels\")||e.has(\"disabled\"))&&this.cardFormProvider.value&&this.cardFormProvider.setValue({...this.cardFormProvider.value,hideLabels:this.hideLabels,disabled:this.disabled}),e.has(\"contextEventsController\")){let a=e.get(\"contextEventsController\");a?.host&&this._contextCardSubmitListener&&a.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener),this.setupContextEventListeners()}}get shouldShowCardholderName(){let e=this.clientOptions?.card?.cardholderName;return typeof e?.visible==\"boolean\"?e.visible:!0}get shouldRequireCardholderName(){if(!this.shouldShowCardholderName)return!1;let e=this.clientOptions?.card?.cardholderName;return typeof e?.required==\"boolean\"?e.required:!0}sendPaymentMethodSelectionEvent(){this.paymentMethodSelectionSent||(this.paymentMethodSelectionSent=!0,Q({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(){Q({eventName:\"PAYMENT_DETAILS_ENTERED\",paymentMethod:\"PAYMENT_CARD\"})}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:card-submit\",this.handleDirectSubmit),this._contextCardSubmitListener=e=>{this.handleContextCardSubmit(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:card-submit\",this.handleDirectSubmit),this.cleanupContextEventListeners(),super.disconnectedCallback()}setupContextEventListeners(){this.contextEventsController?.host&&this._contextCardSubmitListener&&this.contextEventsController.host.addEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextCardSubmitListener&&this.contextEventsController.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}isSubmitButton(e){let a=e.tagName.toLowerCase(),i=a===\"button\",n=a===\"primer-button\";return i&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||n&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitCardPayment(){let e=this.cardFormProvider.value;if(!e||this.disabled)return;this.formErrorMessage=null,e.setSubmissionState?.(!0);let a=this.querySelector(\"primer-billing-address\")||this.renderRoot.querySelector(\"primer-billing-address\"),i=!0;a&&(i=await a.validateForSubmission());let n=await e.validate?.();if(n?.valid&&i){if(a&&!await a.submitToSDK()){let c=b(\"tokenizationError\",{id:\"tokenizationError\"});this.formErrorMessage=c,this.eventsController.dispatchFormSubmitErrors([{field:\"billingAddress\",name:\"billingAddress\",error:\"BILLING_ADDRESS_SUBMISSION_FAILED\",message:c}]);return}let o=this.selectedCardNetwork?{cardNetwork:this.selectedCardNetwork}:void 0;await e.submit?.(o);let s={success:!0};this.eventsController.dispatchFormSubmitSuccess(s)}else{let o=n?.validationErrors;e.propagateValidationErrors?.(o||[]),this.cardFormProvider.setValue({...e,errors:o}),this.eventsController.dispatchFormSubmitErrors(o)}}render(){return this.setupCardFormTask.status===vt.ERROR||this.setupCardFormTask.status===vt.INITIAL?y:p`<form @submit=${this.handleFormSubmit}><slot name=\"card-form-content\" @slotchange=${this.onSlotChange}></slot>${this.setupCardFormTask.render({complete:()=>R(this.hasAssignedContent,()=>y,()=>p`<div class=\"card-form\"><primer-input-card-number></primer-input-card-number><div class=\"card-form-row\"><primer-input-card-expiry></primer-input-card-expiry><primer-input-cvv></primer-input-cvv></div>${R(this.shouldShowCardholderName,()=>p`<primer-input-card-holder-name></primer-input-card-holder-name>`,()=>y)}<primer-billing-address></primer-billing-address></div><primer-card-form-submit></primer-card-form-submit><primer-error-message message=\"${this.formErrorMessage||\"\"}\" ?visible=\"${!!this.formErrorMessage}\" ></primer-error-message>`)})}</form>`}}"
255
255
  },
256
256
  {
257
257
  "kind": "variable",
258
258
  "name": "lt",
259
- "default": "class extends pe{constructor(){super();this.config={inputType:\"cardNumber\",containerSelector:\"#cardNumber\",errorName:\"cardNumber-card\",translations:{label:{id:\"cardNumber\",defaultMessage:\"Card Number\"},placeholder:\"4111 1111 1111 1111\",ariaLabel:{id:\"cardNumber\",defaultMessage:\"Card Number\"}}};this.handleNetworkSelected=e=>{let{network:a}=e.detail;this.cardFormContext&&this.cardFormContext.setCardNetwork(a)};this.childUpdated()}renderInput(){if(this.hostedInputController.setupTask.status===vt.ERROR)return y;let e=this.getError();return p`<primer-input-wrapper .focusWithin=\"${this.hostedInputController.meta.active}\" .hasError=${!!e} >${x(!this.cardFormContext?.hideLabels,()=>p`<primer-input-label slot=\"label\" >${this.label}</primer-input-label >`,()=>y)}<div slot=\"input\" class=\"card-number-container\" aria-label=\"${this.ariaLabel}\" ><div id=\"${this.config.containerSelector.substring(1)}\"></div><div class=\"network-selector-container\"><primer-card-network-selector @network-selected=${this.handleNetworkSelected} ></primer-card-network-selector></div></div>${x(e,a=>p`<primer-input-error slot=\"error\">${b(a,{id:a})}</primer-input-error>`,()=>y)}</primer-input-wrapper>`}render(){return this.renderInput()}}"
259
+ "default": "class extends pe{constructor(){super();this.config={inputType:\"cardNumber\",containerSelector:\"#cardNumber\",errorName:\"cardNumber-card\",translations:{label:{id:\"cardNumber\",defaultMessage:\"Card Number\"},placeholder:\"4111 1111 1111 1111\",ariaLabel:{id:\"cardNumber\",defaultMessage:\"Card Number\"}}};this.handleNetworkSelected=e=>{let{network:a}=e.detail;this.cardFormContext&&this.cardFormContext.setCardNetwork(a)};this.childUpdated()}renderInput(){if(this.hostedInputController.setupTask.status===vt.ERROR)return y;let e=this.getError();return p`<primer-input-wrapper .focusWithin=\"${this.hostedInputController.meta.active}\" .hasError=${!!e} >${R(!this.cardFormContext?.hideLabels,()=>p`<primer-input-label slot=\"label\" >${this.label}</primer-input-label >`,()=>y)}<div slot=\"input\" class=\"card-number-container\" aria-label=\"${this.ariaLabel}\" ><div id=\"${this.config.containerSelector.substring(1)}\"></div><div class=\"network-selector-container\"><primer-card-network-selector @network-selected=${this.handleNetworkSelected} ></primer-card-network-selector></div></div>${R(e,a=>p`<primer-input-error slot=\"error\">${b(a,{id:a})}</primer-input-error>`,()=>y)}</primer-input-wrapper>`}render(){return this.renderInput()}}"
260
260
  },
261
261
  {
262
262
  "kind": "variable",
@@ -281,12 +281,12 @@
281
281
  {
282
282
  "kind": "variable",
283
283
  "name": "me",
284
- "default": "class extends v{constructor(){super(...arguments);this.cardNetworks=null;this.headlessUtils=null;this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=Kt();this.dropdownRef=Kt();this.networkOptionRefs=[];this.toggleDropdown=e=>{this.isKeyboardNavigation=!1,e.stopPropagation(),this.getSelectableNetworks().length>1&&(this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))};this.handleClickOutside=e=>{this.isDropdownOpen&&(this.contains(e.target)||(this.isDropdownOpen=!1,this.isKeyboardNavigation=!1))};this.handleMouseMove=()=>{this.isKeyboardNavigation&&(this.isKeyboardNavigation=!1)};this.handleKeyDown=e=>{if(!(!(this.getSelectableNetworks().length>1)||!(this.contains(e.target)||this===e.target||this.isDropdownOpen&&e.target===document.body)))switch(this.isKeyboardNavigation=!0,e.key){case\"ArrowDown\":e.preventDefault(),this.isDropdownOpen?(this.focusedNetworkIndex=(this.focusedNetworkIndex+1)%this.getSelectableNetworks().length,this.focusNetworkOption()):(this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"ArrowUp\":e.preventDefault(),this.isDropdownOpen?(this.focusedNetworkIndex=(this.focusedNetworkIndex-1+this.getSelectableNetworks().length)%this.getSelectableNetworks().length,this.focusNetworkOption()):(this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"Enter\":case\" \":this.isDropdownOpen&&this.focusedNetworkIndex>=0?(e.preventDefault(),this.selectNetwork(e,this.getSelectableNetworks()[this.focusedNetworkIndex])):!this.isDropdownOpen&&this.buttonRef.value===document.activeElement&&(e.preventDefault(),this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"Escape\":this.isDropdownOpen&&(e.preventDefault(),this.isDropdownOpen=!1,this.buttonRef.value?.focus());break;case\"Tab\":this.isDropdownOpen&&(this.isDropdownOpen=!1);break}};this.handleDocumentKeyDown=e=>{this.isDropdownOpen&&this.handleKeyDown(e)}}getNetworkIconUrl(e){return this.headlessUtils?.getCardNetworkAsset(e.network)?.cardUrl}getSelectableNetworks(){return this.cardNetworks?.selectableCardNetworks||[]}getDetectedNetwork(){return this.selectedCardNetwork??(this.cardNetworks?.detectedCardNetwork||null)}getSelectedNetworkIndex(){let e=this.getDetectedNetwork();if(!e)return 0;let a=this.getSelectableNetworks().findIndex(i=>i.network===e.network);return a>=0?a:0}selectNetwork(e,a){e.stopPropagation(),this.selectedCardNetwork=a,this.isDropdownOpen=!1,this.buttonRef.value?.focus(),this.cardNetworks&&this.dispatchEvent(new CustomEvent(\"network-selected\",{detail:{network:a.network},bubbles:!0,composed:!0}))}focusNetworkOption(){requestAnimationFrame(()=>{this.networkOptionRefs[this.focusedNetworkIndex]&&this.networkOptionRefs[this.focusedNetworkIndex].focus()})}setNetworkOptionRef(e,a){this.networkOptionRefs[a]=e}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener(\"click\",this.handleClickOutside),document.addEventListener(\"mousemove\",this.handleMouseMove),this.addEventListener(\"keydown\",this.handleKeyDown),document.addEventListener(\"keydown\",this.handleDocumentKeyDown)},0)}disconnectedCallback(){document.removeEventListener(\"click\",this.handleClickOutside),document.removeEventListener(\"keydown\",this.handleDocumentKeyDown),document.removeEventListener(\"mousemove\",this.handleMouseMove),this.removeEventListener(\"keydown\",this.handleKeyDown),super.disconnectedCallback()}render(){if(this.cardNetworks?.isLoading)return p`<primer-spinner size=\"small\" compact></primer-spinner>`;let e=this.getSelectableNetworks();if(!this.getDetectedNetwork()&&e.length===0)return p`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let a=this.getDetectedNetwork()||(e.length>0?e[0]:null);if(!a)return p`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let i=e.length>1;return p`<button ${Et(this.buttonRef)} class=\"network-selector\" @click=${this.toggleDropdown} @keydown=${n=>{(n.key===\" \"||n.key===\"Enter\")&&i&&(n.preventDefault(),this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))}} aria-label=${i?`Selected card network: ${a.displayName}. Click to change.`:`Card network: ${a.displayName}`} aria-expanded=${i?this.isDropdownOpen:y} aria-haspopup=${i?\"true\":y} aria-controls=${i?\"network-dropdown\":y} ><img class=\"network-icon\" src=${this.getNetworkIconUrl(a)} alt=${a.displayName} />${x(i,()=>p`<primer-icon class=\"caret ${this.isDropdownOpen?\"open\":\"\"}\" size=\"sm\" name=\"chevron-down\" ></primer-icon>`,()=>y)}</button>${x(this.isDropdownOpen,()=>p`<div ${Et(this.dropdownRef)} id=\"network-dropdown\" class=\"dropdown open\" role=\"listbox\" aria-label=\"Select card network\" >${e.map((n,o)=>p`<div ${Et(s=>this.setNetworkOptionRef(s,o))} class=\"network-option ${this.isKeyboardNavigation&&o===this.focusedNetworkIndex?\"focused\":\"\"}\" @click=${s=>this.selectNetwork(s,n)} @keydown=${s=>{(s.key===\"Enter\"||s.key===\" \")&&this.selectNetwork(s,n)}} role=\"option\" aria-selected=${n.network===a.network} tabindex=\"${o===this.focusedNetworkIndex?\"0\":\"-1\"}\" ><img class=\"network-option-icon\" src=${this.getNetworkIconUrl(n)} alt=${n.displayName} /><span class=\"network-name\">${n.displayName}</span>${x(n.network===a.network,()=>p`<primer-icon class=\"checkmark\" name=\"checkmark\" size=\"sm\" ></primer-icon>`,()=>y)}</div>`)}</div>`,()=>y)} `}}"
284
+ "default": "class extends v{constructor(){super(...arguments);this.cardNetworks=null;this.headlessUtils=null;this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=Kt();this.dropdownRef=Kt();this.networkOptionRefs=[];this.toggleDropdown=e=>{this.isKeyboardNavigation=!1,e.stopPropagation(),this.getSelectableNetworks().length>1&&(this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))};this.handleClickOutside=e=>{this.isDropdownOpen&&(this.contains(e.target)||(this.isDropdownOpen=!1,this.isKeyboardNavigation=!1))};this.handleMouseMove=()=>{this.isKeyboardNavigation&&(this.isKeyboardNavigation=!1)};this.handleKeyDown=e=>{if(!(!(this.getSelectableNetworks().length>1)||!(this.contains(e.target)||this===e.target||this.isDropdownOpen&&e.target===document.body)))switch(this.isKeyboardNavigation=!0,e.key){case\"ArrowDown\":e.preventDefault(),this.isDropdownOpen?(this.focusedNetworkIndex=(this.focusedNetworkIndex+1)%this.getSelectableNetworks().length,this.focusNetworkOption()):(this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"ArrowUp\":e.preventDefault(),this.isDropdownOpen?(this.focusedNetworkIndex=(this.focusedNetworkIndex-1+this.getSelectableNetworks().length)%this.getSelectableNetworks().length,this.focusNetworkOption()):(this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"Enter\":case\" \":this.isDropdownOpen&&this.focusedNetworkIndex>=0?(e.preventDefault(),this.selectNetwork(e,this.getSelectableNetworks()[this.focusedNetworkIndex])):!this.isDropdownOpen&&this.buttonRef.value===document.activeElement&&(e.preventDefault(),this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"Escape\":this.isDropdownOpen&&(e.preventDefault(),this.isDropdownOpen=!1,this.buttonRef.value?.focus());break;case\"Tab\":this.isDropdownOpen&&(this.isDropdownOpen=!1);break}};this.handleDocumentKeyDown=e=>{this.isDropdownOpen&&this.handleKeyDown(e)}}getNetworkIconUrl(e){return this.headlessUtils?.getCardNetworkAsset(e.network)?.cardUrl}getSelectableNetworks(){return this.cardNetworks?.selectableCardNetworks||[]}getDetectedNetwork(){return this.selectedCardNetwork??(this.cardNetworks?.detectedCardNetwork||null)}getSelectedNetworkIndex(){let e=this.getDetectedNetwork();if(!e)return 0;let a=this.getSelectableNetworks().findIndex(i=>i.network===e.network);return a>=0?a:0}selectNetwork(e,a){e.stopPropagation(),this.selectedCardNetwork=a,this.isDropdownOpen=!1,this.buttonRef.value?.focus(),this.cardNetworks&&this.dispatchEvent(new CustomEvent(\"network-selected\",{detail:{network:a.network},bubbles:!0,composed:!0}))}focusNetworkOption(){requestAnimationFrame(()=>{this.networkOptionRefs[this.focusedNetworkIndex]&&this.networkOptionRefs[this.focusedNetworkIndex].focus()})}setNetworkOptionRef(e,a){this.networkOptionRefs[a]=e}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener(\"click\",this.handleClickOutside),document.addEventListener(\"mousemove\",this.handleMouseMove),this.addEventListener(\"keydown\",this.handleKeyDown),document.addEventListener(\"keydown\",this.handleDocumentKeyDown)},0)}disconnectedCallback(){document.removeEventListener(\"click\",this.handleClickOutside),document.removeEventListener(\"keydown\",this.handleDocumentKeyDown),document.removeEventListener(\"mousemove\",this.handleMouseMove),this.removeEventListener(\"keydown\",this.handleKeyDown),super.disconnectedCallback()}render(){if(this.cardNetworks?.isLoading)return p`<primer-spinner size=\"small\" compact></primer-spinner>`;let e=this.getSelectableNetworks();if(!this.getDetectedNetwork()&&e.length===0)return p`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let a=this.getDetectedNetwork()||(e.length>0?e[0]:null);if(!a)return p`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let i=e.length>1;return p`<button ${Et(this.buttonRef)} class=\"network-selector\" @click=${this.toggleDropdown} @keydown=${n=>{(n.key===\" \"||n.key===\"Enter\")&&i&&(n.preventDefault(),this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))}} aria-label=${i?`Selected card network: ${a.displayName}. Click to change.`:`Card network: ${a.displayName}`} aria-expanded=${i?this.isDropdownOpen:y} aria-haspopup=${i?\"true\":y} aria-controls=${i?\"network-dropdown\":y} ><img class=\"network-icon\" src=${this.getNetworkIconUrl(a)} alt=${a.displayName} />${R(i,()=>p`<primer-icon class=\"caret ${this.isDropdownOpen?\"open\":\"\"}\" size=\"sm\" name=\"chevron-down\" ></primer-icon>`,()=>y)}</button>${R(this.isDropdownOpen,()=>p`<div ${Et(this.dropdownRef)} id=\"network-dropdown\" class=\"dropdown open\" role=\"listbox\" aria-label=\"Select card network\" >${e.map((n,o)=>p`<div ${Et(s=>this.setNetworkOptionRef(s,o))} class=\"network-option ${this.isKeyboardNavigation&&o===this.focusedNetworkIndex?\"focused\":\"\"}\" @click=${s=>this.selectNetwork(s,n)} @keydown=${s=>{(s.key===\"Enter\"||s.key===\" \")&&this.selectNetwork(s,n)}} role=\"option\" aria-selected=${n.network===a.network} tabindex=\"${o===this.focusedNetworkIndex?\"0\":\"-1\"}\" ><img class=\"network-option-icon\" src=${this.getNetworkIconUrl(n)} alt=${n.displayName} /><span class=\"network-name\">${n.displayName}</span>${R(n.network===a.network,()=>p`<primer-icon class=\"checkmark\" name=\"checkmark\" size=\"sm\" ></primer-icon>`,()=>y)}</div>`)}</div>`,()=>y)} `}}"
285
285
  },
286
286
  {
287
287
  "kind": "variable",
288
288
  "name": "we",
289
- "default": "class extends v{constructor(){super(...arguments);this.vaultManager=null;this.contextEventsController=null;this.hasSlottedToggle=!1;this.isExpanded=!1;this._isHandlingContextEvent=!1;this._contextToggleListener=null;this.handleToggleSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedToggle=i.length>0};this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isToggleButton(n)&&(e.preventDefault(),this.toggleAccordion())};this.handleDirectToggle=e=>{let a=e.detail?.action;a===\"expand\"?this.expand():a===\"collapse\"?this.collapse():this.toggleAccordion()};this.handleContextToggle=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{if(e.target!==this){e.stopPropagation();let a=e.detail?.action;a===\"expand\"?this.expand():a===\"collapse\"?this.collapse():this.toggleAccordion()}}finally{this._isHandlingContextEvent=!1}}}}isToggleButton(e){let a=this.shadowRoot?.querySelector('slot[name=\"show-other-payments-toggle-button\"]');return a?a.assignedElements({flatten:!0}).some(n=>n===e||n.contains(e)):!1}toggleAccordion(){this.hasSlottedToggle?(this.isExpanded=!this.isExpanded,this.dispatchExpandedEvent(this.isExpanded)):this.collapsableElement&&(this.collapsableElement.isExpanded?this.collapsableElement.collapse():this.collapsableElement.expand())}dispatchExpandedEvent(e){this.dispatchEvent(new CustomEvent(\"primer:show-other-payments-toggled\",{bubbles:!0,composed:!0,detail:{expanded:e}}))}expand(){this.hasSlottedToggle?this.isExpanded||(this.isExpanded=!0,this.dispatchExpandedEvent(!0)):this.collapsableElement?.expand()}collapse(){this.hasSlottedToggle?this.isExpanded&&(this.isExpanded=!1,this.dispatchExpandedEvent(!1)):this.collapsableElement?.collapse()}setupContextEventListeners(){this.contextEventsController?.host&&this._contextToggleListener&&this.contextEventsController.host.addEventListener(\"primer:show-other-payments-toggle\",this._contextToggleListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextToggleListener&&this.contextEventsController.host.removeEventListener(\"primer:show-other-payments-toggle\",this._contextToggleListener)}connectedCallback(){super.connectedCallback(),this.isExpanded=this.vaultManager?.vaultedPaymentMethods.length===0,this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:show-other-payments-toggle\",this.handleDirectToggle),this._contextToggleListener=e=>{this.handleContextToggle(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:show-other-payments-toggle\",this.handleDirectToggle),this.cleanupContextEventListeners(),super.disconnectedCallback()}render(){if(this.vaultManager?.isLoading)return y;let e=this.vaultManager?.showEmptyState||this.vaultManager?.vaultedPaymentMethods.length;return!this.vaultManager||!this.vaultManager.enabled||this.vaultManager.headless||!e?p`<slot name=\"other-payments\"></slot>`:p`<div class=\"other-payment-methods-container\"><slot name=\"show-other-payments-toggle-button\" @slotchange=${this.handleToggleSlotChange} ></slot>${x(!this.hasSlottedToggle,()=>p`<primer-collapsable buttonVariant=\"secondary\" .expanded=\"${this.vaultManager?.vaultedPaymentMethods.length===0}\" .header=\"${b(\"navigateToPaymentMethods\",{id:\"navigateToPaymentMethods\"})}\" ><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></primer-collapsable>`,()=>p`<div class=\"collapsable-wrapper ${this.isExpanded?\"expanded\":\"\"}\" role=\"region\" aria-labelledby=\"custom-toggle-button\" ><div class=\"collapsable-content\"><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></div></div>`)}</div>`}}"
289
+ "default": "class extends v{constructor(){super(...arguments);this.vaultManager=null;this.contextEventsController=null;this.hasSlottedToggle=!1;this.isExpanded=!1;this._isHandlingContextEvent=!1;this._contextToggleListener=null;this.handleToggleSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasSlottedToggle=i.length>0};this.handleSlotButtonClick=e=>{let i=e.target.closest(\"button, primer-button\");if(!i)return;let n=i;this.isToggleButton(n)&&(e.preventDefault(),this.toggleAccordion())};this.handleDirectToggle=e=>{let a=e.detail?.action;a===\"expand\"?this.expand():a===\"collapse\"?this.collapse():this.toggleAccordion()};this.handleContextToggle=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{if(e.target!==this){e.stopPropagation();let a=e.detail?.action;a===\"expand\"?this.expand():a===\"collapse\"?this.collapse():this.toggleAccordion()}}finally{this._isHandlingContextEvent=!1}}}}isToggleButton(e){let a=this.shadowRoot?.querySelector('slot[name=\"show-other-payments-toggle-button\"]');return a?a.assignedElements({flatten:!0}).some(n=>n===e||n.contains(e)):!1}toggleAccordion(){this.hasSlottedToggle?(this.isExpanded=!this.isExpanded,this.dispatchExpandedEvent(this.isExpanded)):this.collapsableElement&&(this.collapsableElement.isExpanded?this.collapsableElement.collapse():this.collapsableElement.expand())}dispatchExpandedEvent(e){this.dispatchEvent(new CustomEvent(\"primer:show-other-payments-toggled\",{bubbles:!0,composed:!0,detail:{expanded:e}}))}expand(){this.hasSlottedToggle?this.isExpanded||(this.isExpanded=!0,this.dispatchExpandedEvent(!0)):this.collapsableElement?.expand()}collapse(){this.hasSlottedToggle?this.isExpanded&&(this.isExpanded=!1,this.dispatchExpandedEvent(!1)):this.collapsableElement?.collapse()}setupContextEventListeners(){this.contextEventsController?.host&&this._contextToggleListener&&this.contextEventsController.host.addEventListener(\"primer:show-other-payments-toggle\",this._contextToggleListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextToggleListener&&this.contextEventsController.host.removeEventListener(\"primer:show-other-payments-toggle\",this._contextToggleListener)}connectedCallback(){super.connectedCallback(),this.isExpanded=this.vaultManager?.vaultedPaymentMethods.length===0,this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:show-other-payments-toggle\",this.handleDirectToggle),this._contextToggleListener=e=>{this.handleContextToggle(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:show-other-payments-toggle\",this.handleDirectToggle),this.cleanupContextEventListeners(),super.disconnectedCallback()}render(){if(this.vaultManager?.isLoading)return y;let e=this.vaultManager?.showEmptyState||this.vaultManager?.vaultedPaymentMethods.length;return!this.vaultManager||!this.vaultManager.enabled||this.vaultManager.headless||!e?p`<slot name=\"other-payments\"></slot>`:p`<div class=\"other-payment-methods-container\"><slot name=\"show-other-payments-toggle-button\" @slotchange=${this.handleToggleSlotChange} ></slot>${R(!this.hasSlottedToggle,()=>p`<primer-collapsable buttonVariant=\"secondary\" .expanded=\"${this.vaultManager?.vaultedPaymentMethods.length===0}\" .header=\"${b(\"navigateToPaymentMethods\",{id:\"navigateToPaymentMethods\"})}\" ><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></primer-collapsable>`,()=>p`<div class=\"collapsable-wrapper ${this.isExpanded?\"expanded\":\"\"}\" role=\"region\" aria-labelledby=\"custom-toggle-button\" ><div class=\"collapsable-content\"><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></div></div>`)}</div>`}}"
290
290
  },
291
291
  {
292
292
  "kind": "variable",
@@ -306,7 +306,7 @@
306
306
  {
307
307
  "kind": "variable",
308
308
  "name": "et",
309
- "default": "class extends v{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.paymentMethods=null;this.sdkState=null;this.clientOptions=null}render(){return this.sdkState?.isSuccessful?p`<slot name=\"checkout-complete\"><primer-checkout-complete></primer-checkout-complete></slot>`:p`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${x(this.hasAssignedContent,()=>y,()=>p`<div class=${oe({\"primer-is-processing\":!!this.sdkState?.isProcessing})} ><primer-vault-manager></primer-vault-manager><primer-show-other-payments><div slot=\"other-payments\" class=\"primer-main-list\">${this.paymentMethods?.toArray().map(e=>p`<primer-payment-method type=${e.type} ?disabled=${this.clientOptions?.disabledPayments===!0} ></primer-payment-method>`)}</div></primer-show-other-payments><primer-error-message-container></primer-error-message-container></div>`)} `}}"
309
+ "default": "class extends v{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let i=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=i.length>0,this.requestUpdate()};this.paymentMethods=null;this.sdkState=null;this.clientOptions=null}render(){return this.sdkState?.isSuccessful?p`<slot name=\"checkout-complete\"><primer-checkout-complete></primer-checkout-complete></slot>`:p`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${R(this.hasAssignedContent,()=>y,()=>p`<div class=${oe({\"primer-is-processing\":!!this.sdkState?.isProcessing})} ><primer-vault-manager></primer-vault-manager><primer-show-other-payments><div slot=\"other-payments\" class=\"primer-main-list\">${this.paymentMethods?.toArray().map(e=>p`<primer-payment-method type=${e.type} ?disabled=${this.clientOptions?.disabledPayments===!0} ></primer-payment-method>`)}</div></primer-show-other-payments><primer-error-message-container></primer-error-message-container></div>`)} `}}"
310
310
  },
311
311
  {
312
312
  "kind": "function",
@@ -334,7 +334,7 @@
334
334
  "kind": "js",
335
335
  "name": "AchPayment",
336
336
  "declaration": {
337
- "name": "Ne",
337
+ "name": "Ie",
338
338
  "module": "dist/primer-loader.js"
339
339
  }
340
340
  },
@@ -486,7 +486,7 @@
486
486
  "kind": "js",
487
487
  "name": "InitializedPayments",
488
488
  "declaration": {
489
- "name": "ur",
489
+ "name": "cr",
490
490
  "module": "dist/primer-loader.js"
491
491
  }
492
492
  },
@@ -494,7 +494,7 @@
494
494
  "kind": "js",
495
495
  "name": "InitializedVaultedPayments",
496
496
  "declaration": {
497
- "name": "pr",
497
+ "name": "ur",
498
498
  "module": "dist/primer-loader.js"
499
499
  }
500
500
  },
@@ -670,7 +670,7 @@
670
670
  "kind": "js",
671
671
  "name": "VaultDeleteConfirmation",
672
672
  "declaration": {
673
- "name": "Ie",
673
+ "name": "Ne",
674
674
  "module": "dist/primer-loader.js"
675
675
  }
676
676
  },
@@ -742,7 +742,7 @@
742
742
  "kind": "js",
743
743
  "name": "injectLoaderStyles",
744
744
  "declaration": {
745
- "name": "Ms",
745
+ "name": "Ts",
746
746
  "module": "dist/primer-loader.js"
747
747
  }
748
748
  },
@@ -750,7 +750,7 @@
750
750
  "kind": "js",
751
751
  "name": "injectThemeStyles",
752
752
  "declaration": {
753
- "name": "Es",
753
+ "name": "Ps",
754
754
  "module": "dist/primer-loader.js"
755
755
  }
756
756
  },
@@ -1681,7 +1681,7 @@
1681
1681
  },
1682
1682
  {
1683
1683
  "kind": "javascript-module",
1684
- "path": "dist/chunks/ar.44J7SJG6.js",
1684
+ "path": "dist/chunks/ar.TR6QET27.js",
1685
1685
  "declarations": [
1686
1686
  {
1687
1687
  "kind": "variable",
@@ -1695,14 +1695,14 @@
1695
1695
  "name": "templates",
1696
1696
  "declaration": {
1697
1697
  "name": "o",
1698
- "module": "dist/chunks/ar.44J7SJG6.js"
1698
+ "module": "dist/chunks/ar.TR6QET27.js"
1699
1699
  }
1700
1700
  }
1701
1701
  ]
1702
1702
  },
1703
1703
  {
1704
1704
  "kind": "javascript-module",
1705
- "path": "dist/chunks/bg.LT2YIFOH.js",
1705
+ "path": "dist/chunks/bg.EJ7QNYMP.js",
1706
1706
  "declarations": [
1707
1707
  {
1708
1708
  "kind": "variable",
@@ -1716,14 +1716,14 @@
1716
1716
  "name": "templates",
1717
1717
  "declaration": {
1718
1718
  "name": "o",
1719
- "module": "dist/chunks/bg.LT2YIFOH.js"
1719
+ "module": "dist/chunks/bg.EJ7QNYMP.js"
1720
1720
  }
1721
1721
  }
1722
1722
  ]
1723
1723
  },
1724
1724
  {
1725
1725
  "kind": "javascript-module",
1726
- "path": "dist/chunks/ca.KUW6ECYF.js",
1726
+ "path": "dist/chunks/ca.7C2IYV2P.js",
1727
1727
  "declarations": [
1728
1728
  {
1729
1729
  "kind": "variable",
@@ -1737,7 +1737,31 @@
1737
1737
  "name": "templates",
1738
1738
  "declaration": {
1739
1739
  "name": "i",
1740
- "module": "dist/chunks/ca.KUW6ECYF.js"
1740
+ "module": "dist/chunks/ca.7C2IYV2P.js"
1741
+ }
1742
+ }
1743
+ ]
1744
+ },
1745
+ {
1746
+ "kind": "javascript-module",
1747
+ "path": "dist/chunks/chunk.4VIC6WHG.js",
1748
+ "declarations": [
1749
+ {
1750
+ "kind": "variable",
1751
+ "name": "t",
1752
+ "type": {
1753
+ "text": "object"
1754
+ },
1755
+ "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\",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\"}"
1756
+ }
1757
+ ],
1758
+ "exports": [
1759
+ {
1760
+ "kind": "js",
1761
+ "name": "a",
1762
+ "declaration": {
1763
+ "name": "t",
1764
+ "module": "dist/chunks/chunk.4VIC6WHG.js"
1741
1765
  }
1742
1766
  }
1743
1767
  ]
@@ -1823,31 +1847,7 @@
1823
1847
  },
1824
1848
  {
1825
1849
  "kind": "javascript-module",
1826
- "path": "dist/chunks/chunk.TIWM3PQ7.js",
1827
- "declarations": [
1828
- {
1829
- "kind": "variable",
1830
- "name": "t",
1831
- "type": {
1832
- "text": "object"
1833
- },
1834
- "default": "{accountHolder:\"Account Holder\",accountHolderEmail:\"me@domain.com\",accountHolderEmailErrorInvalid:\"Provided email is not valid\",accountHolderEmailErrorRequired:\"Account holder email is required\",accountHolderName:\"Account holder name\",accountHolderNameErrorRequired:\"Account holder name is required\",accountHolderNameLabel:\"Account holder name\",accountHolderNamePlaceholder:\"Account holder name\",addCard:\"Add Card\",additionalCardFees:\"Additional card fees may apply\",address:\"Address\",addressLine1:\"Address line 1\",addressLine1ErrorRequired:\"Address line 1 is required\",addressLine1Placeholder:\"Address line 1\",addressLine2:\"Address line 2\",addressLine2ErrorRequired:\"Address line 2 is required\",addressLine2Placeholder:\"Address line 2\",amount:\"Amount\",applePayFailedToTokenize:\"Failed to tokenize\",applePayMissingFirstNameOrLastName:\"Missing first name or last name\",bankHolderNameErrorRequired:\"Account holder name is required\",bankListErrorRequired:\"Bank is required\",bankListLabel:\"List of banks\",bankNameErrorRequired:\"Bank name is required\",bankNameLabel:\"Select your bank from the list\",bankNetworkErrorButton:\"Load again\",bankNetworkErrorTitle:\"Failed to load banks. Check your connection and try again.\",bankSearchInputPlaceholder:\"Search bank\",bankSelectTitle:\"Select your bank\",billingAddressLabel:\"Billing address\",cancel:\"Cancel\",cardCVV:\"CVV\",cardDescription:\"Card description (optional)\",cardDescriptionPlaceholder:\"My favourite card\",cardEndingWith:\"Card ending with\",cardExpired:\"Card has expired\",cardExpiry:\"Expiry (MM/YY)\",cardExpiryPlaceholder:\"MM/YY\",cardholderName:\"Name on card\",cardholderNameErrorRequired:\"Name on card is required\",cardholderNameLabel:\"Name on card\",cardholderNamePlaceholder:\"Full name\",cardIncomplete:\"Card number is incomplete\",cardInvalid:\"Card number is invalid\",cardNameContainsNumbers:\"Name cannot contain numbers\",cardNameLength:\"Name must have between 2 and 45 characters\",cardNameRequired:\"Name on card is required\",cardNumber:\"Card number\",cardRequired:\"Card number is required\",checkSuccessTitle:\"Your payment was successful!\",checkoutWith:\"Checkout with\",chooseAnotherPaymentMethod:\"Choose another payment method\",city:\"City\",cityErrorRequired:\"City is required\",cityLabel:\"City\",cityPlaceholder:\"Cape Town\",completeYourPayment:\"Complete your payment\",completeYourPaymentInTheApp:\"Complete your payment in %s\",confirm:\"Confirm\",confirmCardDeletion:\"Confirm - Delete Card\",confirmPayPalDeletion:\"Confirm - Delete PayPal\",confirmVaultedPaymentMethodDeletion:\"Yes, delete it\",countryCodeErrorRequired:\"Country is required\",countryCodeLabel:\"Country code\",countryCodePlaceholder:\"Country code\",countrySelectPlaceholder:\"Select a country\",creditOrDebitCard:\"Credit or debit card\",creditTransfer:\"Credit Transfer\",cvvIncomplete:\"CVV number is incomplete\",cvvInvalid3:\"CVV must be 3 digits\",cvvInvalid4:\"CVV must be 4 digits\",cvvRequired:\"CVV number is required\",delete:\"Delete\",digits:\"digits\",directDebit:\"Direct debit\",directDebitMandateTitle:\"SEPA Core Direct Debit Mandate\",directDebitSmallPrint:\"By signing this mandate form, you authorise (A) {companyName} to send instructions to your bank to debit your account and (B) your bank to debit your account in accordance with the instruction from {companyName}\",directDebitSuccessDescription:\"{companyName} will appear on your bank statement when payments are taken against the Direct Debit\",directDebitSuccessReference:\"Reference\",directDebitSuccessTitle:\"Direct Debit set up successfully\",dueAt:\"Due at\",dummyApmDescription:\"This is a mocked flow for sandbox. Choose the result you want to test from the list below:\",duplicatePaymentMethodError:\"This payment method is already saved.\",editPaymentMethods:\"Edit saved payment methods\",email:\"Email\",entity:\"Entity\",expiresAt:\"Expires at\",expiryIncomplete:\"Expiry date is incomplete\",expiryInvalid:\"Expiry date is invalid\",expiryMonthInvalid:\"Expiry date month is invalid\",expiryRequired:\"Expiry date is required\",expiryYearInvalid:\"Expiry date year is invalid\",fee_label_fallback:\"Fee\",firstNameErrorRequired:\"First name is required\",firstNameLabel:\"First name\",firstNamePlaceholder:\"First name\",forgetPaymentMethods:\"Forget payment methods\",forgetPayPal:\"Forget PayPal account\",forgetSavedCard:\"Forget saved card ending in {last4Digits}\",fullName:\"First and last name\",getCodeFromBankingApp:\"Get the code from your banking app\",giftCard:\"Gift card\",iban:\"IBAN\",ibanErrorInvalid:\"IBAN is invalid\",ibanErrorRequired:\"IBAN is required\",ibanPlaceholder:\"e.g. GB60 BARC 2000 0055 7799 11\",invalid:\"Invalid\",item_label_fallback:\"Item\",lastNameErrorRequired:\"Last name is required\",lastNameLabel:\"Last name\",lastNamePlaceholder:\"Last name\",loading:\"Loading...\",managePaymentMethods:\"Manage your payment methods\",multibancoFirstStep:\"Payment details for a Multibanco Reference will be created.\",multibancoPayWith:\"Pay with Multibanco\",multibancoPleaseMakePayment:\"Please make the payment at a Multibanco ATM, or through your home banking app.\",multibancoSecondStep:\"Go to a Multibanco ATM or login to your home banking app, then select \\u201CPay for Services\\u201D.\",multibancoThirdStep:\"Enter the Entity, Reference and Amount.\",navigateToPaymentMethods:\"Show other ways to pay\",newPaymentMethod:\"Add a new payment method\",noAdditionalFees:\"No additional fees\",otherWaysToPay:\"Other ways to pay\",pay_with_ach:\"Pay with ACH\",pay_with:\"Pay with\",pay:\"Pay\",payByCard:\"Pay by card\",payByImmediateTransfer:\"Pay by Immediate transfer\",payBySmartTransfer:\"Pay by Bank transfer\",payInInstallments:\"Pay in installments\",paymentMethodPopupLoadingScreenText:\"Hold on! {paymentMethodName} is loading.\",paymentMethodPopupOverlayBringBackThePaymentPage:\"Bring back the payment page\",paymentMethodPopupOverlayClose:\"Close\",paymentMethodPopupOverlayDescription:\"Having trouble viewing the {paymentMethodName} payment page? We'll help you find it!\",paymentMethodPopupOverlayNonFocusDescription:\"Open the {paymentMethodName} payment page to review your payment.\",paymentMethodTypeKlarna:\"Pay later\",paymentMethodTypeKlarnaAccount:\"Pay over time\",paymentMethodTypeKlarnaPaynow:\"Pay now\",payViaBankTransfer:\"Pay via bank transfer\",payWithAch:\"Pay with ACH\",payWithCard:\"Or pay with card\",payWithCrypto:\"Pay with crypto\",pleaseTransferFunds:\"Please Transfer funds to the provided DBS bank account using your Singapore based bank account via FAST (preferred), MEPS or GIRO.\",postalCode:\"Postal code\",postalCodeErrorRequired:\"Postal code is required\",postalCodeLabel:\"Postal code\",postalCodePlaceholder:\"90210\",previouslyUsed:\"Previously used:\",qrCode:\"QR Code\",reference:\"Reference\",required:\"Required\",retry_button:\"Retry\",savedPaymentMethodsEmpty:\"Enter your card details below to add a new payment method\",savePaymentMethod:\"Save payment method\",scanToPay:\"Scan to pay or take a screenshot\",sepaCreditTransfer:\"SEPA Credit Transfer\",sepaDirectDebit:\"SEPA Direct Debit\",session_complete_payment_cancellation_title:\"Payment cancelled\",session_complete_payment_failure_title:\"Payment failed\",session_complete_payment_success_title:\"Payment authorized\",setUpDirectDebit:\"Set up Direct Debit\",shipping_address_unsupported_error:\"We do not ship to this address\",shipping:\"Shipping\",subtotal:\"Subtotal\",showPaymentDetails:\"Show payment details\",sixDigitCodeErrorNumeric:\"Six digit code should only contain numbers\",sixDigitCodeErrorRequired:\"Six digit code is required\",sixDigitCodeErrorTooShort:\"Code is too short\",sixDigitCodeLabel:\"Six digit code\",sixDigitCodePlaceholder:\"123456\",something_went_wrong_error:\"Something went wrong. Please try again.\",stateErrorRequired:\"State, Region or County is required\",stateLabel:\"State / Region / County\",statePlaceholder:\"State / Region / County\",street:\"Street\",streetPlaceholder:\"My street\",stripe_ach_mandate_accept_button:\"Accept\",stripe_ach_mandate_cancel_payment_button:\"Cancel payment\",stripe_ach_mandate_not_accepted_description:\"Mandate was not accepted\",stripe_ach_mandate_template_web:`By clicking Accept, you authorize {merchantName} to debit the selected bank account for any amount owed for charges arising from your use of {merchantName}\\u2019s services and/or purchase of products from {merchantName}, pursuant to {merchantName}\\u2019s website and terms, until this authorization is revoked. You may amend or cancel this authorization at any time by providing notice to {merchantName} with 30 (thirty) days notice. If you use {merchantName}\\u2019s services or purchase additional products periodically pursuant to {merchantName}\\u2019s terms, you authorize {merchantName} to debit your bank account periodically. Payments that fall outside the regular debits authorized above will only be debited after your authorization is obtained.`,stripe_ach_payment_request_cancelled:\"Please try again or select another bank\",stripe_ach_payment_request_completed_successfully:\"You have now authorized your bank account to be debited. You will be notified via email once the payment has been collected successfully.\",stripe_ach_user_details_collection_continue_button:\"Continue\",stripe_ach_user_details_collection_data_usage_label:\"We'll only use this to keep you updated about your payment\",stripe_ach_user_details_collection_email_address_label:\"Email address\",stripe_ach_user_details_collection_first_name_label:\"First name\",stripe_ach_user_details_collection_invalid_email_address:\"The email address you entered doesn't look like a real email address. Please make sure it includes an '@' and a domain (like '@example.com').\",stripe_ach_user_details_collection_invalid_first_name:\"Please enter a valid first name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_invalid_last_name:\"Please enter a valid last name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_last_name_label:\"Last name\",stripe_ach_user_details_collection_subtitle_label:\"Your personal details\",suburb:\"Suburb\",suburbPlaceholder:\"My suburb\",telephoneNumberErrorRequired:\"Phone number is required\",telephoneNumberErrorTooShort:\"Phone number is too short\",telephoneNumberLabel:\"Phone number\",telephoneNumberPlaceholder:\"123xxxxxx\",timeOnDate:\"{time} on {date}\",tokenizationError:\"Your payment could not be processed. Please try another payment method.\",unsupportedCardType:\"Unsupported card type\",uploadScreenshot:\"Upload the screenshot in your banking app\",yourBankDetails:\"Your bank details\"}"
1835
- }
1836
- ],
1837
- "exports": [
1838
- {
1839
- "kind": "js",
1840
- "name": "a",
1841
- "declaration": {
1842
- "name": "t",
1843
- "module": "dist/chunks/chunk.TIWM3PQ7.js"
1844
- }
1845
- }
1846
- ]
1847
- },
1848
- {
1849
- "kind": "javascript-module",
1850
- "path": "dist/chunks/cs.XQGMKIF3.js",
1850
+ "path": "dist/chunks/cs.JT4THDDV.js",
1851
1851
  "declarations": [
1852
1852
  {
1853
1853
  "kind": "variable",
@@ -1861,14 +1861,14 @@
1861
1861
  "name": "templates",
1862
1862
  "declaration": {
1863
1863
  "name": "n",
1864
- "module": "dist/chunks/cs.XQGMKIF3.js"
1864
+ "module": "dist/chunks/cs.JT4THDDV.js"
1865
1865
  }
1866
1866
  }
1867
1867
  ]
1868
1868
  },
1869
1869
  {
1870
1870
  "kind": "javascript-module",
1871
- "path": "dist/chunks/da.HKIIDZRJ.js",
1871
+ "path": "dist/chunks/da.EM7SEPAQ.js",
1872
1872
  "declarations": [
1873
1873
  {
1874
1874
  "kind": "variable",
@@ -1882,14 +1882,14 @@
1882
1882
  "name": "templates",
1883
1883
  "declaration": {
1884
1884
  "name": "a",
1885
- "module": "dist/chunks/da.HKIIDZRJ.js"
1885
+ "module": "dist/chunks/da.EM7SEPAQ.js"
1886
1886
  }
1887
1887
  }
1888
1888
  ]
1889
1889
  },
1890
1890
  {
1891
1891
  "kind": "javascript-module",
1892
- "path": "dist/chunks/de.O6IUA6FB.js",
1892
+ "path": "dist/chunks/de.K6IE7XOI.js",
1893
1893
  "declarations": [
1894
1894
  {
1895
1895
  "kind": "variable",
@@ -1903,14 +1903,14 @@
1903
1903
  "name": "templates",
1904
1904
  "declaration": {
1905
1905
  "name": "t",
1906
- "module": "dist/chunks/de.O6IUA6FB.js"
1906
+ "module": "dist/chunks/de.K6IE7XOI.js"
1907
1907
  }
1908
1908
  }
1909
1909
  ]
1910
1910
  },
1911
1911
  {
1912
1912
  "kind": "javascript-module",
1913
- "path": "dist/chunks/el.F35KS4NO.js",
1913
+ "path": "dist/chunks/el.3CKRNQD5.js",
1914
1914
  "declarations": [
1915
1915
  {
1916
1916
  "kind": "variable",
@@ -1924,14 +1924,14 @@
1924
1924
  "name": "templates",
1925
1925
  "declaration": {
1926
1926
  "name": "o",
1927
- "module": "dist/chunks/el.F35KS4NO.js"
1927
+ "module": "dist/chunks/el.3CKRNQD5.js"
1928
1928
  }
1929
1929
  }
1930
1930
  ]
1931
1931
  },
1932
1932
  {
1933
1933
  "kind": "javascript-module",
1934
- "path": "dist/chunks/en-GB.PU23XE2E.js",
1934
+ "path": "dist/chunks/en-GB.LG2PPT2V.js",
1935
1935
  "declarations": [
1936
1936
  {
1937
1937
  "kind": "variable",
@@ -1945,14 +1945,14 @@
1945
1945
  "name": "templates",
1946
1946
  "declaration": {
1947
1947
  "name": "o",
1948
- "module": "dist/chunks/en-GB.PU23XE2E.js"
1948
+ "module": "dist/chunks/en-GB.LG2PPT2V.js"
1949
1949
  }
1950
1950
  }
1951
1951
  ]
1952
1952
  },
1953
1953
  {
1954
1954
  "kind": "javascript-module",
1955
- "path": "dist/chunks/en.HQJMDTVQ.js",
1955
+ "path": "dist/chunks/en.47EGLMYC.js",
1956
1956
  "declarations": [
1957
1957
  {
1958
1958
  "kind": "variable",
@@ -1966,14 +1966,14 @@
1966
1966
  "name": "templates",
1967
1967
  "declaration": {
1968
1968
  "name": "o",
1969
- "module": "dist/chunks/en.HQJMDTVQ.js"
1969
+ "module": "dist/chunks/en.47EGLMYC.js"
1970
1970
  }
1971
1971
  }
1972
1972
  ]
1973
1973
  },
1974
1974
  {
1975
1975
  "kind": "javascript-module",
1976
- "path": "dist/chunks/es-AR.OZ6CT5HA.js",
1976
+ "path": "dist/chunks/es-AR.ND7EGZHB.js",
1977
1977
  "declarations": [
1978
1978
  {
1979
1979
  "kind": "variable",
@@ -1987,14 +1987,14 @@
1987
1987
  "name": "templates",
1988
1988
  "declaration": {
1989
1989
  "name": "i",
1990
- "module": "dist/chunks/es-AR.OZ6CT5HA.js"
1990
+ "module": "dist/chunks/es-AR.ND7EGZHB.js"
1991
1991
  }
1992
1992
  }
1993
1993
  ]
1994
1994
  },
1995
1995
  {
1996
1996
  "kind": "javascript-module",
1997
- "path": "dist/chunks/es-MX.E4FWJ3FK.js",
1997
+ "path": "dist/chunks/es-MX.6QU35A6L.js",
1998
1998
  "declarations": [
1999
1999
  {
2000
2000
  "kind": "variable",
@@ -2008,14 +2008,14 @@
2008
2008
  "name": "templates",
2009
2009
  "declaration": {
2010
2010
  "name": "t",
2011
- "module": "dist/chunks/es-MX.E4FWJ3FK.js"
2011
+ "module": "dist/chunks/es-MX.6QU35A6L.js"
2012
2012
  }
2013
2013
  }
2014
2014
  ]
2015
2015
  },
2016
2016
  {
2017
2017
  "kind": "javascript-module",
2018
- "path": "dist/chunks/es.HEWO2JY7.js",
2018
+ "path": "dist/chunks/es.SMVRR5QO.js",
2019
2019
  "declarations": [
2020
2020
  {
2021
2021
  "kind": "variable",
@@ -2029,14 +2029,14 @@
2029
2029
  "name": "templates",
2030
2030
  "declaration": {
2031
2031
  "name": "i",
2032
- "module": "dist/chunks/es.HEWO2JY7.js"
2032
+ "module": "dist/chunks/es.SMVRR5QO.js"
2033
2033
  }
2034
2034
  }
2035
2035
  ]
2036
2036
  },
2037
2037
  {
2038
2038
  "kind": "javascript-module",
2039
- "path": "dist/chunks/et-EE.3GAJR6UB.js",
2039
+ "path": "dist/chunks/et-EE.BRBL5QIG.js",
2040
2040
  "declarations": [
2041
2041
  {
2042
2042
  "kind": "variable",
@@ -2050,14 +2050,14 @@
2050
2050
  "name": "templates",
2051
2051
  "declaration": {
2052
2052
  "name": "r",
2053
- "module": "dist/chunks/et-EE.3GAJR6UB.js"
2053
+ "module": "dist/chunks/et-EE.BRBL5QIG.js"
2054
2054
  }
2055
2055
  }
2056
2056
  ]
2057
2057
  },
2058
2058
  {
2059
2059
  "kind": "javascript-module",
2060
- "path": "dist/chunks/fi-FI.4TB5AYVQ.js",
2060
+ "path": "dist/chunks/fi-FI.TPQGZ5V7.js",
2061
2061
  "declarations": [
2062
2062
  {
2063
2063
  "kind": "variable",
@@ -2071,14 +2071,14 @@
2071
2071
  "name": "templates",
2072
2072
  "declaration": {
2073
2073
  "name": "n",
2074
- "module": "dist/chunks/fi-FI.4TB5AYVQ.js"
2074
+ "module": "dist/chunks/fi-FI.TPQGZ5V7.js"
2075
2075
  }
2076
2076
  }
2077
2077
  ]
2078
2078
  },
2079
2079
  {
2080
2080
  "kind": "javascript-module",
2081
- "path": "dist/chunks/fr.5GQNZ4TX.js",
2081
+ "path": "dist/chunks/fr.WWOUUKQI.js",
2082
2082
  "declarations": [
2083
2083
  {
2084
2084
  "kind": "variable",
@@ -2092,14 +2092,14 @@
2092
2092
  "name": "templates",
2093
2093
  "declaration": {
2094
2094
  "name": "i",
2095
- "module": "dist/chunks/fr.5GQNZ4TX.js"
2095
+ "module": "dist/chunks/fr.WWOUUKQI.js"
2096
2096
  }
2097
2097
  }
2098
2098
  ]
2099
2099
  },
2100
2100
  {
2101
2101
  "kind": "javascript-module",
2102
- "path": "dist/chunks/he.WGVF57WV.js",
2102
+ "path": "dist/chunks/he.OVEJBPUX.js",
2103
2103
  "declarations": [
2104
2104
  {
2105
2105
  "kind": "variable",
@@ -2113,7 +2113,7 @@
2113
2113
  "name": "templates",
2114
2114
  "declaration": {
2115
2115
  "name": "o",
2116
- "module": "dist/chunks/he.WGVF57WV.js"
2116
+ "module": "dist/chunks/he.OVEJBPUX.js"
2117
2117
  }
2118
2118
  }
2119
2119
  ]
@@ -2141,7 +2141,7 @@
2141
2141
  },
2142
2142
  {
2143
2143
  "kind": "javascript-module",
2144
- "path": "dist/chunks/hu.RX3HFOR5.js",
2144
+ "path": "dist/chunks/hu.7LEUFJ5J.js",
2145
2145
  "declarations": [
2146
2146
  {
2147
2147
  "kind": "variable",
@@ -2155,14 +2155,14 @@
2155
2155
  "name": "templates",
2156
2156
  "declaration": {
2157
2157
  "name": "s",
2158
- "module": "dist/chunks/hu.RX3HFOR5.js"
2158
+ "module": "dist/chunks/hu.7LEUFJ5J.js"
2159
2159
  }
2160
2160
  }
2161
2161
  ]
2162
2162
  },
2163
2163
  {
2164
2164
  "kind": "javascript-module",
2165
- "path": "dist/chunks/id.3SO7FJHW.js",
2165
+ "path": "dist/chunks/id.TFWG6VOU.js",
2166
2166
  "declarations": [
2167
2167
  {
2168
2168
  "kind": "variable",
@@ -2176,14 +2176,14 @@
2176
2176
  "name": "templates",
2177
2177
  "declaration": {
2178
2178
  "name": "r",
2179
- "module": "dist/chunks/id.3SO7FJHW.js"
2179
+ "module": "dist/chunks/id.TFWG6VOU.js"
2180
2180
  }
2181
2181
  }
2182
2182
  ]
2183
2183
  },
2184
2184
  {
2185
2185
  "kind": "javascript-module",
2186
- "path": "dist/chunks/it.Y7247AOF.js",
2186
+ "path": "dist/chunks/it.3SV7XLRR.js",
2187
2187
  "declarations": [
2188
2188
  {
2189
2189
  "kind": "variable",
@@ -2197,14 +2197,14 @@
2197
2197
  "name": "templates",
2198
2198
  "declaration": {
2199
2199
  "name": "r",
2200
- "module": "dist/chunks/it.Y7247AOF.js"
2200
+ "module": "dist/chunks/it.3SV7XLRR.js"
2201
2201
  }
2202
2202
  }
2203
2203
  ]
2204
2204
  },
2205
2205
  {
2206
2206
  "kind": "javascript-module",
2207
- "path": "dist/chunks/ja.L6PF6O6A.js",
2207
+ "path": "dist/chunks/ja.P6C656R7.js",
2208
2208
  "declarations": [
2209
2209
  {
2210
2210
  "kind": "variable",
@@ -2218,14 +2218,14 @@
2218
2218
  "name": "templates",
2219
2219
  "declaration": {
2220
2220
  "name": "o",
2221
- "module": "dist/chunks/ja.L6PF6O6A.js"
2221
+ "module": "dist/chunks/ja.P6C656R7.js"
2222
2222
  }
2223
2223
  }
2224
2224
  ]
2225
2225
  },
2226
2226
  {
2227
2227
  "kind": "javascript-module",
2228
- "path": "dist/chunks/ko.X53AFCXY.js",
2228
+ "path": "dist/chunks/ko.VOUHNCJ7.js",
2229
2229
  "declarations": [
2230
2230
  {
2231
2231
  "kind": "variable",
@@ -2239,14 +2239,14 @@
2239
2239
  "name": "templates",
2240
2240
  "declaration": {
2241
2241
  "name": "o",
2242
- "module": "dist/chunks/ko.X53AFCXY.js"
2242
+ "module": "dist/chunks/ko.VOUHNCJ7.js"
2243
2243
  }
2244
2244
  }
2245
2245
  ]
2246
2246
  },
2247
2247
  {
2248
2248
  "kind": "javascript-module",
2249
- "path": "dist/chunks/lt-LT.HMQT67X4.js",
2249
+ "path": "dist/chunks/lt-LT.AFL7G4NO.js",
2250
2250
  "declarations": [
2251
2251
  {
2252
2252
  "kind": "variable",
@@ -2260,14 +2260,14 @@
2260
2260
  "name": "templates",
2261
2261
  "declaration": {
2262
2262
  "name": "t",
2263
- "module": "dist/chunks/lt-LT.HMQT67X4.js"
2263
+ "module": "dist/chunks/lt-LT.AFL7G4NO.js"
2264
2264
  }
2265
2265
  }
2266
2266
  ]
2267
2267
  },
2268
2268
  {
2269
2269
  "kind": "javascript-module",
2270
- "path": "dist/chunks/lt.YJ3FR7A2.js",
2270
+ "path": "dist/chunks/lt.TRKH4J6L.js",
2271
2271
  "declarations": [
2272
2272
  {
2273
2273
  "kind": "variable",
@@ -2281,14 +2281,14 @@
2281
2281
  "name": "templates",
2282
2282
  "declaration": {
2283
2283
  "name": "t",
2284
- "module": "dist/chunks/lt.YJ3FR7A2.js"
2284
+ "module": "dist/chunks/lt.TRKH4J6L.js"
2285
2285
  }
2286
2286
  }
2287
2287
  ]
2288
2288
  },
2289
2289
  {
2290
2290
  "kind": "javascript-module",
2291
- "path": "dist/chunks/lv-LV.HLFWSCCR.js",
2291
+ "path": "dist/chunks/lv-LV.TGTBYQYP.js",
2292
2292
  "declarations": [
2293
2293
  {
2294
2294
  "kind": "variable",
@@ -2302,14 +2302,14 @@
2302
2302
  "name": "templates",
2303
2303
  "declaration": {
2304
2304
  "name": "t",
2305
- "module": "dist/chunks/lv-LV.HLFWSCCR.js"
2305
+ "module": "dist/chunks/lv-LV.TGTBYQYP.js"
2306
2306
  }
2307
2307
  }
2308
2308
  ]
2309
2309
  },
2310
2310
  {
2311
2311
  "kind": "javascript-module",
2312
- "path": "dist/chunks/lv.DEK5WXQB.js",
2312
+ "path": "dist/chunks/lv.HZTEA2Q2.js",
2313
2313
  "declarations": [
2314
2314
  {
2315
2315
  "kind": "variable",
@@ -2323,14 +2323,14 @@
2323
2323
  "name": "templates",
2324
2324
  "declaration": {
2325
2325
  "name": "t",
2326
- "module": "dist/chunks/lv.DEK5WXQB.js"
2326
+ "module": "dist/chunks/lv.HZTEA2Q2.js"
2327
2327
  }
2328
2328
  }
2329
2329
  ]
2330
2330
  },
2331
2331
  {
2332
2332
  "kind": "javascript-module",
2333
- "path": "dist/chunks/ms.E6PXJ4SR.js",
2333
+ "path": "dist/chunks/ms.QEKTVYHX.js",
2334
2334
  "declarations": [
2335
2335
  {
2336
2336
  "kind": "variable",
@@ -2344,14 +2344,14 @@
2344
2344
  "name": "templates",
2345
2345
  "declaration": {
2346
2346
  "name": "i",
2347
- "module": "dist/chunks/ms.E6PXJ4SR.js"
2347
+ "module": "dist/chunks/ms.QEKTVYHX.js"
2348
2348
  }
2349
2349
  }
2350
2350
  ]
2351
2351
  },
2352
2352
  {
2353
2353
  "kind": "javascript-module",
2354
- "path": "dist/chunks/nb.7357HC5J.js",
2354
+ "path": "dist/chunks/nb.HRDZEYXV.js",
2355
2355
  "declarations": [
2356
2356
  {
2357
2357
  "kind": "variable",
@@ -2365,14 +2365,14 @@
2365
2365
  "name": "templates",
2366
2366
  "declaration": {
2367
2367
  "name": "a",
2368
- "module": "dist/chunks/nb.7357HC5J.js"
2368
+ "module": "dist/chunks/nb.HRDZEYXV.js"
2369
2369
  }
2370
2370
  }
2371
2371
  ]
2372
2372
  },
2373
2373
  {
2374
2374
  "kind": "javascript-module",
2375
- "path": "dist/chunks/nl.QBFQWQBY.js",
2375
+ "path": "dist/chunks/nl.2R7WVAV3.js",
2376
2376
  "declarations": [
2377
2377
  {
2378
2378
  "kind": "variable",
@@ -2386,14 +2386,14 @@
2386
2386
  "name": "templates",
2387
2387
  "declaration": {
2388
2388
  "name": "n",
2389
- "module": "dist/chunks/nl.QBFQWQBY.js"
2389
+ "module": "dist/chunks/nl.2R7WVAV3.js"
2390
2390
  }
2391
2391
  }
2392
2392
  ]
2393
2393
  },
2394
2394
  {
2395
2395
  "kind": "javascript-module",
2396
- "path": "dist/chunks/nl_NL.RS7W3XGO.js",
2396
+ "path": "dist/chunks/nl_NL.KHWKCZMK.js",
2397
2397
  "declarations": [
2398
2398
  {
2399
2399
  "kind": "variable",
@@ -2407,14 +2407,14 @@
2407
2407
  "name": "templates",
2408
2408
  "declaration": {
2409
2409
  "name": "n",
2410
- "module": "dist/chunks/nl_NL.RS7W3XGO.js"
2410
+ "module": "dist/chunks/nl_NL.KHWKCZMK.js"
2411
2411
  }
2412
2412
  }
2413
2413
  ]
2414
2414
  },
2415
2415
  {
2416
2416
  "kind": "javascript-module",
2417
- "path": "dist/chunks/pl.FSJRWYQ5.js",
2417
+ "path": "dist/chunks/pl.D6YHYKB6.js",
2418
2418
  "declarations": [
2419
2419
  {
2420
2420
  "kind": "variable",
@@ -2428,14 +2428,14 @@
2428
2428
  "name": "templates",
2429
2429
  "declaration": {
2430
2430
  "name": "i",
2431
- "module": "dist/chunks/pl.FSJRWYQ5.js"
2431
+ "module": "dist/chunks/pl.D6YHYKB6.js"
2432
2432
  }
2433
2433
  }
2434
2434
  ]
2435
2435
  },
2436
2436
  {
2437
2437
  "kind": "javascript-module",
2438
- "path": "dist/chunks/pt-BR.WVYS3Y2I.js",
2438
+ "path": "dist/chunks/pt-BR.3NGFYB4U.js",
2439
2439
  "declarations": [
2440
2440
  {
2441
2441
  "kind": "variable",
@@ -2449,14 +2449,14 @@
2449
2449
  "name": "templates",
2450
2450
  "declaration": {
2451
2451
  "name": "t",
2452
- "module": "dist/chunks/pt-BR.WVYS3Y2I.js"
2452
+ "module": "dist/chunks/pt-BR.3NGFYB4U.js"
2453
2453
  }
2454
2454
  }
2455
2455
  ]
2456
2456
  },
2457
2457
  {
2458
2458
  "kind": "javascript-module",
2459
- "path": "dist/chunks/pt.LUSIBC5X.js",
2459
+ "path": "dist/chunks/pt.LYW2A6VH.js",
2460
2460
  "declarations": [
2461
2461
  {
2462
2462
  "kind": "variable",
@@ -2470,14 +2470,14 @@
2470
2470
  "name": "templates",
2471
2471
  "declaration": {
2472
2472
  "name": "t",
2473
- "module": "dist/chunks/pt.LUSIBC5X.js"
2473
+ "module": "dist/chunks/pt.LYW2A6VH.js"
2474
2474
  }
2475
2475
  }
2476
2476
  ]
2477
2477
  },
2478
2478
  {
2479
2479
  "kind": "javascript-module",
2480
- "path": "dist/chunks/ro.TKERTYBG.js",
2480
+ "path": "dist/chunks/ro.ILTDKZ2H.js",
2481
2481
  "declarations": [
2482
2482
  {
2483
2483
  "kind": "variable",
@@ -2491,14 +2491,14 @@
2491
2491
  "name": "templates",
2492
2492
  "declaration": {
2493
2493
  "name": "i",
2494
- "module": "dist/chunks/ro.TKERTYBG.js"
2494
+ "module": "dist/chunks/ro.ILTDKZ2H.js"
2495
2495
  }
2496
2496
  }
2497
2497
  ]
2498
2498
  },
2499
2499
  {
2500
2500
  "kind": "javascript-module",
2501
- "path": "dist/chunks/ru.VPEQHZ2S.js",
2501
+ "path": "dist/chunks/ru.KJZFKIJM.js",
2502
2502
  "declarations": [
2503
2503
  {
2504
2504
  "kind": "variable",
@@ -2512,14 +2512,14 @@
2512
2512
  "name": "templates",
2513
2513
  "declaration": {
2514
2514
  "name": "o",
2515
- "module": "dist/chunks/ru.VPEQHZ2S.js"
2515
+ "module": "dist/chunks/ru.KJZFKIJM.js"
2516
2516
  }
2517
2517
  }
2518
2518
  ]
2519
2519
  },
2520
2520
  {
2521
2521
  "kind": "javascript-module",
2522
- "path": "dist/chunks/sk.QFMGH6WL.js",
2522
+ "path": "dist/chunks/sk.5POYRJGA.js",
2523
2523
  "declarations": [
2524
2524
  {
2525
2525
  "kind": "variable",
@@ -2533,14 +2533,14 @@
2533
2533
  "name": "templates",
2534
2534
  "declaration": {
2535
2535
  "name": "r",
2536
- "module": "dist/chunks/sk.QFMGH6WL.js"
2536
+ "module": "dist/chunks/sk.5POYRJGA.js"
2537
2537
  }
2538
2538
  }
2539
2539
  ]
2540
2540
  },
2541
2541
  {
2542
2542
  "kind": "javascript-module",
2543
- "path": "dist/chunks/sl.RUAKKCKD.js",
2543
+ "path": "dist/chunks/sl.GN5UGR5G.js",
2544
2544
  "declarations": [
2545
2545
  {
2546
2546
  "kind": "variable",
@@ -2554,14 +2554,14 @@
2554
2554
  "name": "templates",
2555
2555
  "declaration": {
2556
2556
  "name": "r",
2557
- "module": "dist/chunks/sl.RUAKKCKD.js"
2557
+ "module": "dist/chunks/sl.GN5UGR5G.js"
2558
2558
  }
2559
2559
  }
2560
2560
  ]
2561
2561
  },
2562
2562
  {
2563
2563
  "kind": "javascript-module",
2564
- "path": "dist/chunks/sr-RS.WSZIECEH.js",
2564
+ "path": "dist/chunks/sr-RS.T3II5ZYL.js",
2565
2565
  "declarations": [
2566
2566
  {
2567
2567
  "kind": "variable",
@@ -2575,14 +2575,14 @@
2575
2575
  "name": "templates",
2576
2576
  "declaration": {
2577
2577
  "name": "o",
2578
- "module": "dist/chunks/sr-RS.WSZIECEH.js"
2578
+ "module": "dist/chunks/sr-RS.T3II5ZYL.js"
2579
2579
  }
2580
2580
  }
2581
2581
  ]
2582
2582
  },
2583
2583
  {
2584
2584
  "kind": "javascript-module",
2585
- "path": "dist/chunks/sv.AHI2S45X.js",
2585
+ "path": "dist/chunks/sv.63HB4O5X.js",
2586
2586
  "declarations": [
2587
2587
  {
2588
2588
  "kind": "variable",
@@ -2596,14 +2596,14 @@
2596
2596
  "name": "templates",
2597
2597
  "declaration": {
2598
2598
  "name": "n",
2599
- "module": "dist/chunks/sv.AHI2S45X.js"
2599
+ "module": "dist/chunks/sv.63HB4O5X.js"
2600
2600
  }
2601
2601
  }
2602
2602
  ]
2603
2603
  },
2604
2604
  {
2605
2605
  "kind": "javascript-module",
2606
- "path": "dist/chunks/th.ZKRE26WN.js",
2606
+ "path": "dist/chunks/th.AZ4SQZFW.js",
2607
2607
  "declarations": [
2608
2608
  {
2609
2609
  "kind": "variable",
@@ -2617,14 +2617,14 @@
2617
2617
  "name": "templates",
2618
2618
  "declaration": {
2619
2619
  "name": "o",
2620
- "module": "dist/chunks/th.ZKRE26WN.js"
2620
+ "module": "dist/chunks/th.AZ4SQZFW.js"
2621
2621
  }
2622
2622
  }
2623
2623
  ]
2624
2624
  },
2625
2625
  {
2626
2626
  "kind": "javascript-module",
2627
- "path": "dist/chunks/tr.6NOOTQVO.js",
2627
+ "path": "dist/chunks/tr.WDGRPXBK.js",
2628
2628
  "declarations": [
2629
2629
  {
2630
2630
  "kind": "variable",
@@ -2638,14 +2638,14 @@
2638
2638
  "name": "templates",
2639
2639
  "declaration": {
2640
2640
  "name": "n",
2641
- "module": "dist/chunks/tr.6NOOTQVO.js"
2641
+ "module": "dist/chunks/tr.WDGRPXBK.js"
2642
2642
  }
2643
2643
  }
2644
2644
  ]
2645
2645
  },
2646
2646
  {
2647
2647
  "kind": "javascript-module",
2648
- "path": "dist/chunks/uk-UA.A6S7PXDN.js",
2648
+ "path": "dist/chunks/uk-UA.GYXXM7FX.js",
2649
2649
  "declarations": [
2650
2650
  {
2651
2651
  "kind": "variable",
@@ -2659,14 +2659,14 @@
2659
2659
  "name": "templates",
2660
2660
  "declaration": {
2661
2661
  "name": "o",
2662
- "module": "dist/chunks/uk-UA.A6S7PXDN.js"
2662
+ "module": "dist/chunks/uk-UA.GYXXM7FX.js"
2663
2663
  }
2664
2664
  }
2665
2665
  ]
2666
2666
  },
2667
2667
  {
2668
2668
  "kind": "javascript-module",
2669
- "path": "dist/chunks/vi.4Z5L3EAS.js",
2669
+ "path": "dist/chunks/vi.TBVAKNJJ.js",
2670
2670
  "declarations": [
2671
2671
  {
2672
2672
  "kind": "variable",
@@ -2680,7 +2680,7 @@
2680
2680
  "name": "templates",
2681
2681
  "declaration": {
2682
2682
  "name": "a",
2683
- "module": "dist/chunks/vi.4Z5L3EAS.js"
2683
+ "module": "dist/chunks/vi.TBVAKNJJ.js"
2684
2684
  }
2685
2685
  }
2686
2686
  ]
@@ -2708,7 +2708,7 @@
2708
2708
  },
2709
2709
  {
2710
2710
  "kind": "javascript-module",
2711
- "path": "dist/chunks/zh-CN.SN6TXY6W.js",
2711
+ "path": "dist/chunks/zh-CN.NK7PKUS6.js",
2712
2712
  "declarations": [
2713
2713
  {
2714
2714
  "kind": "variable",
@@ -2722,7 +2722,7 @@
2722
2722
  "name": "templates",
2723
2723
  "declaration": {
2724
2724
  "name": "o",
2725
- "module": "dist/chunks/zh-CN.SN6TXY6W.js"
2725
+ "module": "dist/chunks/zh-CN.NK7PKUS6.js"
2726
2726
  }
2727
2727
  }
2728
2728
  ]
@@ -10908,21 +10908,42 @@
10908
10908
  },
10909
10909
  {
10910
10910
  "kind": "javascript-module",
10911
- "path": "src/containers/blik/blik.component.ts",
10911
+ "path": "src/containers/card-form/card-form-context.ts",
10912
+ "declarations": [
10913
+ {
10914
+ "kind": "variable",
10915
+ "name": "cardFormContext"
10916
+ }
10917
+ ],
10918
+ "exports": [
10919
+ {
10920
+ "kind": "js",
10921
+ "name": "cardFormContext",
10922
+ "declaration": {
10923
+ "name": "cardFormContext",
10924
+ "module": "src/containers/card-form/card-form-context.ts"
10925
+ }
10926
+ }
10927
+ ]
10928
+ },
10929
+ {
10930
+ "kind": "javascript-module",
10931
+ "path": "src/containers/card-form/card-form.component.ts",
10912
10932
  "declarations": [
10913
10933
  {
10914
10934
  "kind": "class",
10915
- "description": "BLIK Payment Component\n\nConsolidated component handling BLIK payment flow from button click through\npayment completion. Uses a 4-state machine for managing the user experience.",
10916
- "name": "BlikComponent",
10935
+ "description": "CardFormComponent serves as a container for card input components.\nIt handles form submission, validation, and provides context to child components.",
10936
+ "name": "CardFormComponent",
10917
10937
  "members": [
10918
10938
  {
10919
10939
  "kind": "field",
10920
- "name": "paymentMethod",
10940
+ "name": "hideLabels",
10921
10941
  "type": {
10922
- "text": "InitializedPaymentMethod"
10942
+ "text": "boolean"
10923
10943
  },
10924
- "description": "Payment method configuration",
10925
- "attribute": "paymentMethod"
10944
+ "default": "false",
10945
+ "attribute": "hide-labels",
10946
+ "reflects": true
10926
10947
  },
10927
10948
  {
10928
10949
  "kind": "field",
@@ -10931,200 +10952,296 @@
10931
10952
  "text": "boolean"
10932
10953
  },
10933
10954
  "default": "false",
10934
- "description": "Disables component interaction when true",
10935
10955
  "attribute": "disabled"
10936
10956
  },
10937
10957
  {
10938
10958
  "kind": "field",
10939
- "name": "paymentManagers",
10959
+ "name": "hasAssignedContent",
10940
10960
  "type": {
10941
- "text": "InitializedManagersMap"
10961
+ "text": "boolean"
10942
10962
  },
10943
- "default": "new Map()"
10963
+ "privacy": "private",
10964
+ "default": "false",
10965
+ "description": "Tracks whether custom content has been provided via slot"
10944
10966
  },
10945
10967
  {
10946
10968
  "kind": "field",
10947
- "name": "currentState",
10969
+ "name": "selectedCardNetwork",
10948
10970
  "type": {
10949
- "text": "BlikState"
10971
+ "text": "string | null"
10950
10972
  },
10951
10973
  "privacy": "private",
10952
- "default": "'collapsed'"
10974
+ "default": "null"
10953
10975
  },
10954
10976
  {
10955
10977
  "kind": "field",
10956
- "name": "blikCode",
10978
+ "name": "formErrorMessage",
10957
10979
  "type": {
10958
- "text": "string"
10980
+ "text": "string | null"
10959
10981
  },
10960
10982
  "privacy": "private",
10961
- "default": "''"
10983
+ "default": "null",
10984
+ "description": "Form-level error message to display"
10962
10985
  },
10963
10986
  {
10964
10987
  "kind": "field",
10965
- "name": "errorMessage",
10988
+ "name": "paymentMethodSelectionSent",
10966
10989
  "type": {
10967
- "text": "string"
10990
+ "text": "boolean"
10968
10991
  },
10969
10992
  "privacy": "private",
10970
- "default": "''"
10993
+ "default": "false",
10994
+ "description": "Flag to track if PAYMENT_METHOD_SELECTION event has been sent"
10971
10995
  },
10972
10996
  {
10973
10997
  "kind": "field",
10974
- "name": "pollingDuration",
10998
+ "name": "paymentManagers",
10975
10999
  "type": {
10976
- "text": "number"
11000
+ "text": "InitializedManagersMap"
10977
11001
  },
10978
- "privacy": "private",
10979
- "default": "0"
11002
+ "default": "new Map()",
11003
+ "description": "Payment managers injected from context",
11004
+ "attribute": "paymentManagers"
10980
11005
  },
10981
11006
  {
10982
11007
  "kind": "field",
10983
- "name": "pollingTimer",
11008
+ "name": "clientOptions",
10984
11009
  "type": {
10985
- "text": "number | null"
11010
+ "text": "ClientOptionsContextType"
11011
+ },
11012
+ "default": "null",
11013
+ "description": "Client options for configuration"
11014
+ },
11015
+ {
11016
+ "kind": "field",
11017
+ "name": "headlessUtils",
11018
+ "type": {
11019
+ "text": "HeadlessUtilsContextType"
11020
+ },
11021
+ "default": "null",
11022
+ "description": "Headless utils for accessing server configuration"
11023
+ },
11024
+ {
11025
+ "kind": "field",
11026
+ "name": "analyticsUtils",
11027
+ "type": {
11028
+ "text": "AnalyticsContextType"
11029
+ },
11030
+ "default": "null",
11031
+ "description": "Analytics utils for sending analytics events"
11032
+ },
11033
+ {
11034
+ "kind": "field",
11035
+ "name": "contextEventsController",
11036
+ "type": {
11037
+ "text": "EventsContextType"
10986
11038
  },
11039
+ "default": "null",
11040
+ "description": "Events controller from context for receiving forwarded events"
11041
+ },
11042
+ {
11043
+ "kind": "field",
11044
+ "name": "cardFormProvider",
10987
11045
  "privacy": "private",
10988
- "default": "null"
11046
+ "readonly": true,
11047
+ "default": "new ContextProvider(this, { context: cardFormContext, initialValue: null, })",
11048
+ "description": "Context provider for card form data"
10989
11049
  },
10990
11050
  {
10991
11051
  "kind": "field",
10992
- "name": "loadManagerTask",
11052
+ "name": "shouldShowCardholderName",
11053
+ "type": {
11054
+ "text": "boolean"
11055
+ },
11056
+ "description": "Determines whether to show the cardholder name field\nUses client configuration with fallback to default (true)",
11057
+ "readonly": true
11058
+ },
11059
+ {
11060
+ "kind": "field",
11061
+ "name": "shouldRequireCardholderName",
11062
+ "type": {
11063
+ "text": "boolean"
11064
+ },
11065
+ "description": "Determines whether the cardholder name field is required\nUses client configuration with fallback to default (false)",
11066
+ "readonly": true
11067
+ },
11068
+ {
11069
+ "kind": "field",
11070
+ "name": "eventsController",
10993
11071
  "privacy": "private",
10994
- "default": "new Task(this, { args: () => [this.paymentMethod?.type], task: ([type]) => { if (!type) { return initialState; } const managerEntry = this.paymentManagers.get(type); if (!managerEntry) { throw new Error('BLIK payment method manager not initialized'); } // TypeScript narrows the union type based on the payment method type check if (managerEntry.type !== 'ADYEN_BLIK') { throw new Error('Invalid payment method type for BLIK component'); } return managerEntry.manager; }, })",
10995
- "description": "Manager loading task\nValidates BLIK manager exists before allowing payment flow\n\nThis Task provides reactive validation of manager availability:\n- Automatically re-runs when paymentMethod or paymentManagers change\n- Provides type-safe access to the BLIK manager\n- Enables early error detection before user interaction\n\nUnlike native payment methods (Apple Pay, Google Pay, PayPal) which use a\ntwo-task pattern (manager loading + button rendering), BLIK only needs the\nmanager loading task because it renders its own UI via Lit templates."
11072
+ "readonly": true,
11073
+ "default": "new PrimerEventsController(this)",
11074
+ "description": "Events controller for dispatching form events"
10996
11075
  },
10997
11076
  {
10998
11077
  "kind": "field",
10999
- "name": "handleButtonClick",
11078
+ "name": "_contextCardSubmitListener",
11079
+ "type": {
11080
+ "text": "((event: CustomEvent) => void) | null"
11081
+ },
11000
11082
  "privacy": "private",
11001
- "description": "Handles button click to toggle between collapsed and expanded states"
11083
+ "default": "null",
11084
+ "description": "External event listener reference for cleanup"
11002
11085
  },
11003
11086
  {
11004
11087
  "kind": "field",
11005
- "name": "handleCollapse",
11088
+ "name": "_isHandlingContextEvent",
11089
+ "type": {
11090
+ "text": "boolean"
11091
+ },
11006
11092
  "privacy": "private",
11007
- "description": "Handles collapsing the form back to button-only view\nResets form state when user clicks button to collapse"
11093
+ "default": "false",
11094
+ "description": "Flag to prevent circular event loop when handling events"
11008
11095
  },
11009
11096
  {
11010
11097
  "kind": "field",
11011
- "name": "handleInput",
11098
+ "name": "inputControllers",
11012
11099
  "privacy": "private",
11013
- "description": "Handles input changes, validates numeric input, and auto-submits on 6 digits"
11100
+ "readonly": true,
11101
+ "default": "new Map< HostedInputType, IHostedInputController >()",
11102
+ "description": "Registry for input controllers to enable context-driven meta state management"
11014
11103
  },
11015
11104
  {
11016
11105
  "kind": "field",
11017
- "name": "handleRetry",
11106
+ "name": "setupCardFormTask",
11018
11107
  "privacy": "private",
11019
- "description": "Handles retry button click"
11108
+ "readonly": true,
11109
+ "default": "new Task(this, { task: ([cardManager]) => { if (!cardManager?.manager) return initialState; const { manager } = cardManager; const hostedInputs = manager.createHostedInputs(); const { cardNumberInput, expiryInput, cvvInput } = hostedInputs; this.cardFormProvider.setValue({ // Temporarily set any so we can toggle between sdk v2 and new sdk core cardholderNameInput: ( hostedInputs as { cardholderNameInput?: IHeadlessHostedInput } ).cardholderNameInput, cardNumberInput, expiryInput, cvvInput, setCardholderName: (val: string) => { manager.setCardholderName(val); if (this.shouldRequireCardholderName) { manager.validate?.().then((validationResult) => { const errors = validationResult?.validationErrors; const cardholderNameError = errors?.find( (error) => error.name === fieldToInputType.cardholderName, ); const controller = this.inputControllers.get( HostedInputType.CARD_HOLDER_NAME, ); if (controller) { controller.updateMetaFromValidation({ valid: false, error: cardholderNameError?.message || cardholderNameError?.error || null, errorCode: cardholderNameError?.message || cardholderNameError?.error || null, }); } }); } }, setCardNetwork: (val: string) => { this.selectedCardNetwork = val; }, validate: () => manager.validate(), submit: (args) => manager.submit(args), hideLabels: this.hideLabels, disabled: this.disabled, // New meta state management methods setSubmissionState: (submitted: boolean) => { this.inputControllers.forEach((controller) => { controller.setSubmitted(submitted); }); }, propagateValidationErrors: (errors: InputValidationError[]) => { if (!errors) return; errors.forEach((error) => { const fieldName = error.field || error.name; const errorMessage = error.message || error.error; const inputType = fieldToInputType[fieldName]; if (inputType) { const controller = this.inputControllers.get(inputType); if (controller) { const updateData = { valid: false, error: errorMessage, errorCode: errorMessage, // Use error message (localization key) instead of field name }; controller.updateMetaFromValidation(updateData); } } }); }, registerInputController: ( inputType: HostedInputType, controller: IHostedInputController, ) => { this.inputControllers.set(inputType, controller); }, unregisterInputController: (inputType: HostedInputType) => { this.inputControllers.delete(inputType); }, onUserInteraction: () => { this.sendPaymentMethodSelectionEvent(); this.checkAndSendPaymentDetailsEnteredEvent(); }, }); return true; }, args: () => [this.paymentManagers.get('PAYMENT_CARD')], })",
11110
+ "description": "Task to set up the card form with hosted inputs"
11020
11111
  },
11021
11112
  {
11022
11113
  "kind": "method",
11023
- "name": "startPollingTimer",
11114
+ "name": "sendPaymentMethodSelectionEvent",
11024
11115
  "privacy": "private",
11025
11116
  "return": {
11026
11117
  "type": {
11027
11118
  "text": "void"
11028
11119
  }
11029
11120
  },
11030
- "description": "Starts polling timer to track payment duration"
11121
+ "description": "Sends PAYMENT_METHOD_SELECTION analytics event when user first interacts with card form"
11031
11122
  },
11032
11123
  {
11033
11124
  "kind": "method",
11034
- "name": "stopPollingTimer",
11125
+ "name": "checkAndSendPaymentDetailsEnteredEvent",
11035
11126
  "privacy": "private",
11036
11127
  "return": {
11037
11128
  "type": {
11038
11129
  "text": "void"
11039
11130
  }
11040
11131
  },
11041
- "description": "Stops and resets polling timer"
11132
+ "description": "Checks if all required fields are filled and sends PAYMENT_DETAILS_ENTERED event"
11042
11133
  },
11043
11134
  {
11044
- "kind": "method",
11045
- "name": "submitBlikCode",
11046
- "privacy": "private",
11047
- "return": {
11048
- "type": {
11049
- "text": "Promise<void>"
11050
- }
11135
+ "kind": "field",
11136
+ "name": "paymentDetailsEnteredSent",
11137
+ "type": {
11138
+ "text": "boolean"
11051
11139
  },
11052
- "description": "Validates and submits the BLIK code"
11140
+ "privacy": "private",
11141
+ "default": "false"
11053
11142
  },
11054
11143
  {
11055
11144
  "kind": "method",
11056
- "name": "renderCollapsed",
11145
+ "name": "sendPaymentDetailsEnteredEvent",
11057
11146
  "privacy": "private",
11058
11147
  "return": {
11059
11148
  "type": {
11060
- "text": "TemplateResult"
11149
+ "text": "void"
11061
11150
  }
11062
11151
  },
11063
- "description": "Renders the collapsed button state"
11152
+ "description": "Sends PAYMENT_DETAILS_ENTERED analytics event when all payment details are complete and valid"
11064
11153
  },
11065
11154
  {
11066
- "kind": "method",
11067
- "name": "renderExpandedInput",
11155
+ "kind": "field",
11156
+ "name": "handleSlotButtonClick",
11068
11157
  "privacy": "private",
11069
- "return": {
11070
- "type": {
11071
- "text": "TemplateResult"
11158
+ "description": "Handles click events from slotted content.\nSupports both native <button> and custom <primer-button> elements."
11159
+ },
11160
+ {
11161
+ "kind": "field",
11162
+ "name": "handleDirectSubmit",
11163
+ "privacy": "private",
11164
+ "description": "Handles direct submit events from child components\nThis is a backup method to catch all possible submission events"
11165
+ },
11166
+ {
11167
+ "kind": "method",
11168
+ "name": "setupContextEventListeners",
11169
+ "privacy": "private",
11170
+ "return": {
11171
+ "type": {
11172
+ "text": "void"
11072
11173
  }
11073
11174
  },
11074
- "description": "Renders the expanded input state"
11175
+ "description": "Sets up event listeners for context-forwarded events"
11075
11176
  },
11076
11177
  {
11077
11178
  "kind": "method",
11078
- "name": "renderLoading",
11179
+ "name": "cleanupContextEventListeners",
11079
11180
  "privacy": "private",
11080
11181
  "return": {
11081
11182
  "type": {
11082
- "text": "TemplateResult"
11183
+ "text": "void"
11083
11184
  }
11084
11185
  },
11085
- "description": "Renders the loading state"
11186
+ "description": "Cleans up context event listeners"
11187
+ },
11188
+ {
11189
+ "kind": "field",
11190
+ "name": "handleContextCardSubmit",
11191
+ "privacy": "private",
11192
+ "description": "Handles primer:card-submit events received from the events context\nThis allows the card form to respond to external submit triggers"
11086
11193
  },
11087
11194
  {
11088
11195
  "kind": "method",
11089
- "name": "renderError",
11196
+ "name": "isSubmitButton",
11090
11197
  "privacy": "private",
11091
11198
  "return": {
11092
11199
  "type": {
11093
- "text": "TemplateResult"
11200
+ "text": "boolean"
11094
11201
  }
11095
11202
  },
11096
- "description": "Renders the error state"
11203
+ "parameters": [
11204
+ {
11205
+ "name": "button",
11206
+ "type": {
11207
+ "text": "HTMLElement"
11208
+ }
11209
+ }
11210
+ ],
11211
+ "description": "Determines if a button is a submit button based on its attributes"
11212
+ },
11213
+ {
11214
+ "kind": "field",
11215
+ "name": "onSlotChange",
11216
+ "privacy": "private",
11217
+ "description": "Handles slot change events to detect custom content"
11097
11218
  },
11098
11219
  {
11099
11220
  "kind": "method",
11100
- "name": "renderExpandedState",
11221
+ "name": "submitCardPayment",
11101
11222
  "privacy": "private",
11102
11223
  "return": {
11103
11224
  "type": {
11104
- "text": "TemplateResult | typeof nothing"
11225
+ "text": "Promise<void>"
11105
11226
  }
11106
11227
  },
11107
- "description": "Renders the appropriate expanded state based on current state"
11108
- }
11109
- ],
11110
- "events": [
11111
- {
11112
- "description": "Dispatched on successful payment",
11113
- "name": "primer-payment-success"
11228
+ "description": "Handles the card form submission.\nValidates the form and dispatches either a submit success or errors event."
11114
11229
  },
11115
11230
  {
11116
- "description": "Dispatched on payment error",
11117
- "name": "primer-payment-error"
11231
+ "kind": "field",
11232
+ "name": "handleFormSubmit",
11233
+ "privacy": "private",
11234
+ "description": "Event handler for form submission\nHandles both native form submissions and custom events"
11118
11235
  }
11119
11236
  ],
11120
11237
  "attributes": [
11121
11238
  {
11122
- "name": "paymentMethod",
11239
+ "name": "hide-labels",
11123
11240
  "type": {
11124
- "text": "InitializedPaymentMethod"
11241
+ "text": "boolean"
11125
11242
  },
11126
- "description": "Payment method configuration",
11127
- "fieldName": "paymentMethod"
11243
+ "default": "false",
11244
+ "fieldName": "hideLabels"
11128
11245
  },
11129
11246
  {
11130
11247
  "name": "disabled",
@@ -11132,111 +11249,145 @@
11132
11249
  "text": "boolean"
11133
11250
  },
11134
11251
  "default": "false",
11135
- "description": "Disables component interaction when true",
11136
11252
  "fieldName": "disabled"
11253
+ },
11254
+ {
11255
+ "name": "paymentManagers",
11256
+ "type": {
11257
+ "text": "InitializedManagersMap"
11258
+ },
11259
+ "default": "new Map()",
11260
+ "description": "Payment managers injected from context",
11261
+ "fieldName": "paymentManagers"
11137
11262
  }
11138
11263
  ],
11139
11264
  "superclass": {
11140
11265
  "name": "LitElement",
11141
11266
  "package": "lit"
11142
11267
  },
11143
- "tagName": "primer-blik",
11268
+ "tagName": "primer-card-form",
11144
11269
  "customElement": true
11145
11270
  }
11146
11271
  ],
11147
11272
  "exports": [
11148
11273
  {
11149
11274
  "kind": "js",
11150
- "name": "BlikComponent",
11275
+ "name": "CardFormComponent",
11151
11276
  "declaration": {
11152
- "name": "BlikComponent",
11153
- "module": "src/containers/blik/blik.component.ts"
11277
+ "name": "CardFormComponent",
11278
+ "module": "src/containers/card-form/card-form.component.ts"
11154
11279
  }
11155
11280
  },
11156
11281
  {
11157
11282
  "kind": "custom-element-definition",
11158
- "name": "primer-blik",
11283
+ "name": "primer-card-form",
11159
11284
  "declaration": {
11160
- "name": "BlikComponent",
11161
- "module": "src/containers/blik/blik.component.ts"
11285
+ "name": "CardFormComponent",
11286
+ "module": "src/containers/card-form/card-form.component.ts"
11162
11287
  }
11163
11288
  }
11164
11289
  ]
11165
11290
  },
11166
11291
  {
11167
11292
  "kind": "javascript-module",
11168
- "path": "src/containers/blik/blik.styles.ts",
11169
- "declarations": [
11170
- {
11171
- "kind": "variable",
11172
- "name": "styles",
11173
- "default": "css` :host { display: flex; width: 100%; } .blik-container { width: 100%; display: flex; flex-direction: column; transition: all var(--primer-animation-duration) var(--primer-animation-easing); } .blik-container.expanded { border-radius: var(--primer-radius-medium); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); background-color: var(--primer-color-background-outlined-default); border: 1px solid var(--primer-color-border-outlined-default); padding: var(--primer-space-large); } /* Button styles (collapsed state) */ primer-button.blik-button { width: 100%; } /* Override primer-button part styles for BLIK branding */ primer-button.blik-button::part(button) { /* BLIK brand requirement: Black background (#000000) with white logo */ background-color: #000000; border: none; color: var(--primer-color-text-primary); padding: 2px; display: flex; align-items: center; justify-content: center; gap: var(--primer-space-small); /* Fixed height for button - matches redirect payment method calculation */ height: calc( ${unsafeCSS(PAYMENT_METHOD_LINE_HEIGHT)} + calc(2 * var(--primer-space-medium)) ); flex-shrink: 0; /* Prevent button from shrinking when form appears */ } /* Image container for button logo */ .image-container { display: flex; justify-content: center; align-items: center; min-width: 100px; height: 100%; flex-shrink: 0; flex-grow: 1; } /* Button logo */ img { max-width: 100px; width: 100%; height: auto; object-fit: cover; max-height: 98%; } /* Expanded content (form, loading, error states) */ .blik-expanded-content { width: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--primer-animation-duration) var(--primer-animation-easing); overflow: hidden; margin-top: var(--primer-space-medium); } .blik-container.expanded .blik-expanded-content { grid-template-rows: 1fr; } .blik-content-wrapper { overflow: hidden; } /* 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; } /* Disabled state styling */ :host([disabled]) { opacity: 0.6; cursor: not-allowed; } :host([disabled]) primer-button::part(button) { pointer-events: none; cursor: not-allowed; } :host([disabled]) img { filter: grayscale(100%); } /* Responsive typography for larger screens */ @media (min-width: 768px) { .blik-input { font-size: var(--primer-typography-title-large-size); } } `"
11174
- }
11175
- ],
11293
+ "path": "src/containers/card-form/card-form.styles.ts",
11294
+ "declarations": [],
11176
11295
  "exports": [
11177
11296
  {
11178
11297
  "kind": "js",
11179
- "name": "styles",
11298
+ "name": "default",
11180
11299
  "declaration": {
11181
- "name": "styles",
11182
- "module": "src/containers/blik/blik.styles.ts"
11300
+ "module": "src/containers/card-form/card-form.styles.ts"
11183
11301
  }
11184
11302
  }
11185
11303
  ]
11186
11304
  },
11187
11305
  {
11188
11306
  "kind": "javascript-module",
11189
- "path": "src/containers/blik/blik.ts",
11307
+ "path": "src/containers/card-form/card-form.ts",
11190
11308
  "declarations": [],
11191
11309
  "exports": [
11192
11310
  {
11193
11311
  "kind": "js",
11194
- "name": "Blik",
11312
+ "name": "CardFormCardNumber",
11195
11313
  "declaration": {
11196
- "name": "BlikComponent",
11197
- "module": "src/containers/blik/blik.ts"
11314
+ "name": "CardFormCardNumber",
11315
+ "module": "./components"
11198
11316
  }
11199
- }
11200
- ]
11201
- },
11202
- {
11203
- "kind": "javascript-module",
11204
- "path": "src/containers/card-form/card-form-context.ts",
11205
- "declarations": [
11317
+ },
11206
11318
  {
11207
- "kind": "variable",
11208
- "name": "cardFormContext"
11209
- }
11210
- ],
11211
- "exports": [
11319
+ "kind": "js",
11320
+ "name": "CardFormCVV",
11321
+ "declaration": {
11322
+ "name": "CardFormCVV",
11323
+ "module": "./components"
11324
+ }
11325
+ },
11212
11326
  {
11213
11327
  "kind": "js",
11214
- "name": "cardFormContext",
11328
+ "name": "CardFormExpiry",
11215
11329
  "declaration": {
11216
- "name": "cardFormContext",
11217
- "module": "src/containers/card-form/card-form-context.ts"
11330
+ "name": "CardFormExpiry",
11331
+ "module": "./components"
11332
+ }
11333
+ },
11334
+ {
11335
+ "kind": "js",
11336
+ "name": "CardFormName",
11337
+ "declaration": {
11338
+ "name": "CardFormName",
11339
+ "module": "./components"
11340
+ }
11341
+ },
11342
+ {
11343
+ "kind": "js",
11344
+ "name": "CardFormSubmit",
11345
+ "declaration": {
11346
+ "name": "CardFormSubmit",
11347
+ "module": "./components"
11348
+ }
11349
+ },
11350
+ {
11351
+ "kind": "js",
11352
+ "name": "CardFormCardNetworkSelector",
11353
+ "declaration": {
11354
+ "name": "CardFormCardNetworkSelector",
11355
+ "module": "./components"
11356
+ }
11357
+ },
11358
+ {
11359
+ "kind": "js",
11360
+ "name": "CardForm",
11361
+ "declaration": {
11362
+ "name": "CardFormComponent",
11363
+ "module": "src/containers/card-form/card-form.ts"
11218
11364
  }
11219
11365
  }
11220
11366
  ]
11221
11367
  },
11222
11368
  {
11223
11369
  "kind": "javascript-module",
11224
- "path": "src/containers/card-form/card-form.component.ts",
11370
+ "path": "src/containers/card-form/types.ts",
11371
+ "declarations": [],
11372
+ "exports": []
11373
+ },
11374
+ {
11375
+ "kind": "javascript-module",
11376
+ "path": "src/containers/blik/blik.component.ts",
11225
11377
  "declarations": [
11226
11378
  {
11227
11379
  "kind": "class",
11228
- "description": "CardFormComponent serves as a container for card input components.\nIt handles form submission, validation, and provides context to child components.",
11229
- "name": "CardFormComponent",
11380
+ "description": "BLIK Payment Component\n\nConsolidated component handling BLIK payment flow from button click through\npayment completion. Uses a 4-state machine for managing the user experience.",
11381
+ "name": "BlikComponent",
11230
11382
  "members": [
11231
11383
  {
11232
11384
  "kind": "field",
11233
- "name": "hideLabels",
11385
+ "name": "paymentMethod",
11234
11386
  "type": {
11235
- "text": "boolean"
11387
+ "text": "InitializedPaymentMethod"
11236
11388
  },
11237
- "default": "false",
11238
- "attribute": "hide-labels",
11239
- "reflects": true
11389
+ "description": "Payment method configuration",
11390
+ "attribute": "paymentMethod"
11240
11391
  },
11241
11392
  {
11242
11393
  "kind": "field",
@@ -11245,296 +11396,200 @@
11245
11396
  "text": "boolean"
11246
11397
  },
11247
11398
  "default": "false",
11399
+ "description": "Disables component interaction when true",
11248
11400
  "attribute": "disabled"
11249
11401
  },
11250
- {
11251
- "kind": "field",
11252
- "name": "hasAssignedContent",
11253
- "type": {
11254
- "text": "boolean"
11255
- },
11256
- "privacy": "private",
11257
- "default": "false",
11258
- "description": "Tracks whether custom content has been provided via slot"
11259
- },
11260
- {
11261
- "kind": "field",
11262
- "name": "selectedCardNetwork",
11263
- "type": {
11264
- "text": "string | null"
11265
- },
11266
- "privacy": "private",
11267
- "default": "null"
11268
- },
11269
- {
11270
- "kind": "field",
11271
- "name": "formErrorMessage",
11272
- "type": {
11273
- "text": "string | null"
11274
- },
11275
- "privacy": "private",
11276
- "default": "null",
11277
- "description": "Form-level error message to display"
11278
- },
11279
- {
11280
- "kind": "field",
11281
- "name": "paymentMethodSelectionSent",
11282
- "type": {
11283
- "text": "boolean"
11284
- },
11285
- "privacy": "private",
11286
- "default": "false",
11287
- "description": "Flag to track if PAYMENT_METHOD_SELECTION event has been sent"
11288
- },
11289
11402
  {
11290
11403
  "kind": "field",
11291
11404
  "name": "paymentManagers",
11292
11405
  "type": {
11293
11406
  "text": "InitializedManagersMap"
11294
11407
  },
11295
- "default": "new Map()",
11296
- "description": "Payment managers injected from context",
11297
- "attribute": "paymentManagers"
11298
- },
11299
- {
11300
- "kind": "field",
11301
- "name": "clientOptions",
11302
- "type": {
11303
- "text": "ClientOptionsContextType"
11304
- },
11305
- "default": "null",
11306
- "description": "Client options for configuration"
11408
+ "default": "new Map()"
11307
11409
  },
11308
11410
  {
11309
11411
  "kind": "field",
11310
- "name": "headlessUtils",
11412
+ "name": "currentState",
11311
11413
  "type": {
11312
- "text": "HeadlessUtilsContextType"
11414
+ "text": "BlikState"
11313
11415
  },
11314
- "default": "null",
11315
- "description": "Headless utils for accessing server configuration"
11416
+ "privacy": "private",
11417
+ "default": "'collapsed'"
11316
11418
  },
11317
11419
  {
11318
11420
  "kind": "field",
11319
- "name": "analyticsUtils",
11421
+ "name": "blikCode",
11320
11422
  "type": {
11321
- "text": "AnalyticsContextType"
11423
+ "text": "string"
11322
11424
  },
11323
- "default": "null",
11324
- "description": "Analytics utils for sending analytics events"
11425
+ "privacy": "private",
11426
+ "default": "''"
11325
11427
  },
11326
11428
  {
11327
11429
  "kind": "field",
11328
- "name": "contextEventsController",
11430
+ "name": "errorMessage",
11329
11431
  "type": {
11330
- "text": "EventsContextType"
11432
+ "text": "string"
11331
11433
  },
11332
- "default": "null",
11333
- "description": "Events controller from context for receiving forwarded events"
11334
- },
11335
- {
11336
- "kind": "field",
11337
- "name": "cardFormProvider",
11338
11434
  "privacy": "private",
11339
- "readonly": true,
11340
- "default": "new ContextProvider(this, { context: cardFormContext, initialValue: null, })",
11341
- "description": "Context provider for card form data"
11435
+ "default": "''"
11342
11436
  },
11343
11437
  {
11344
11438
  "kind": "field",
11345
- "name": "shouldShowCardholderName",
11439
+ "name": "pollingDuration",
11346
11440
  "type": {
11347
- "text": "boolean"
11441
+ "text": "number"
11348
11442
  },
11349
- "description": "Determines whether to show the cardholder name field\nUses client configuration with fallback to default (true)",
11350
- "readonly": true
11443
+ "privacy": "private",
11444
+ "default": "0"
11351
11445
  },
11352
11446
  {
11353
11447
  "kind": "field",
11354
- "name": "shouldRequireCardholderName",
11448
+ "name": "pollingTimer",
11355
11449
  "type": {
11356
- "text": "boolean"
11450
+ "text": "number | null"
11357
11451
  },
11358
- "description": "Determines whether the cardholder name field is required\nUses client configuration with fallback to default (false)",
11359
- "readonly": true
11452
+ "privacy": "private",
11453
+ "default": "null"
11360
11454
  },
11361
11455
  {
11362
11456
  "kind": "field",
11363
- "name": "eventsController",
11457
+ "name": "loadManagerTask",
11364
11458
  "privacy": "private",
11365
- "readonly": true,
11366
- "default": "new PrimerEventsController(this)",
11367
- "description": "Events controller for dispatching form events"
11459
+ "default": "new Task(this, { args: () => [this.paymentMethod?.type], task: ([type]) => { if (!type) { return initialState; } const managerEntry = this.paymentManagers.get(type); if (!managerEntry) { throw new Error('BLIK payment method manager not initialized'); } // TypeScript narrows the union type based on the payment method type check if (managerEntry.type !== 'ADYEN_BLIK') { throw new Error('Invalid payment method type for BLIK component'); } return managerEntry.manager; }, })",
11460
+ "description": "Manager loading task\nValidates BLIK manager exists before allowing payment flow\n\nThis Task provides reactive validation of manager availability:\n- Automatically re-runs when paymentMethod or paymentManagers change\n- Provides type-safe access to the BLIK manager\n- Enables early error detection before user interaction\n\nUnlike native payment methods (Apple Pay, Google Pay, PayPal) which use a\ntwo-task pattern (manager loading + button rendering), BLIK only needs the\nmanager loading task because it renders its own UI via Lit templates."
11368
11461
  },
11369
11462
  {
11370
11463
  "kind": "field",
11371
- "name": "_contextCardSubmitListener",
11372
- "type": {
11373
- "text": "((event: CustomEvent) => void) | null"
11374
- },
11464
+ "name": "handleButtonClick",
11375
11465
  "privacy": "private",
11376
- "default": "null",
11377
- "description": "External event listener reference for cleanup"
11466
+ "description": "Handles button click to toggle between collapsed and expanded states"
11378
11467
  },
11379
11468
  {
11380
11469
  "kind": "field",
11381
- "name": "_isHandlingContextEvent",
11382
- "type": {
11383
- "text": "boolean"
11384
- },
11470
+ "name": "handleCollapse",
11385
11471
  "privacy": "private",
11386
- "default": "false",
11387
- "description": "Flag to prevent circular event loop when handling events"
11472
+ "description": "Handles collapsing the form back to button-only view\nResets form state when user clicks button to collapse"
11388
11473
  },
11389
11474
  {
11390
11475
  "kind": "field",
11391
- "name": "inputControllers",
11476
+ "name": "handleInput",
11392
11477
  "privacy": "private",
11393
- "readonly": true,
11394
- "default": "new Map< HostedInputType, IHostedInputController >()",
11395
- "description": "Registry for input controllers to enable context-driven meta state management"
11478
+ "description": "Handles input changes, validates numeric input, and auto-submits on 6 digits"
11396
11479
  },
11397
11480
  {
11398
11481
  "kind": "field",
11399
- "name": "setupCardFormTask",
11482
+ "name": "handleRetry",
11400
11483
  "privacy": "private",
11401
- "readonly": true,
11402
- "default": "new Task(this, { task: ([cardManager]) => { if (!cardManager?.manager) return initialState; const { manager } = cardManager; const hostedInputs = manager.createHostedInputs(); const { cardNumberInput, expiryInput, cvvInput } = hostedInputs; this.cardFormProvider.setValue({ // Temporarily set any so we can toggle between sdk v2 and new sdk core cardholderNameInput: ( hostedInputs as { cardholderNameInput?: IHeadlessHostedInput } ).cardholderNameInput, cardNumberInput, expiryInput, cvvInput, setCardholderName: (val: string) => { manager.setCardholderName(val); if (this.shouldRequireCardholderName) { manager.validate?.().then((validationResult) => { const errors = validationResult?.validationErrors; const cardholderNameError = errors?.find( (error) => error.name === fieldToInputType.cardholderName, ); const controller = this.inputControllers.get( HostedInputType.CARD_HOLDER_NAME, ); if (controller) { controller.updateMetaFromValidation({ valid: false, error: cardholderNameError?.message || cardholderNameError?.error || null, errorCode: cardholderNameError?.message || cardholderNameError?.error || null, }); } }); } }, setCardNetwork: (val: string) => { this.selectedCardNetwork = val; }, validate: () => manager.validate(), submit: (args) => manager.submit(args), hideLabels: this.hideLabels, disabled: this.disabled, // New meta state management methods setSubmissionState: (submitted: boolean) => { this.inputControllers.forEach((controller) => { controller.setSubmitted(submitted); }); }, propagateValidationErrors: (errors: InputValidationError[]) => { if (!errors) return; errors.forEach((error) => { const fieldName = error.field || error.name; const errorMessage = error.message || error.error; const inputType = fieldToInputType[fieldName]; if (inputType) { const controller = this.inputControllers.get(inputType); if (controller) { const updateData = { valid: false, error: errorMessage, errorCode: errorMessage, // Use error message (localization key) instead of field name }; controller.updateMetaFromValidation(updateData); } } }); }, registerInputController: ( inputType: HostedInputType, controller: IHostedInputController, ) => { this.inputControllers.set(inputType, controller); }, unregisterInputController: (inputType: HostedInputType) => { this.inputControllers.delete(inputType); }, onUserInteraction: () => { this.sendPaymentMethodSelectionEvent(); this.checkAndSendPaymentDetailsEnteredEvent(); }, }); return true; }, args: () => [this.paymentManagers.get('PAYMENT_CARD')], })",
11403
- "description": "Task to set up the card form with hosted inputs"
11484
+ "description": "Handles retry button click"
11404
11485
  },
11405
11486
  {
11406
11487
  "kind": "method",
11407
- "name": "sendPaymentMethodSelectionEvent",
11488
+ "name": "startPollingTimer",
11408
11489
  "privacy": "private",
11409
11490
  "return": {
11410
11491
  "type": {
11411
11492
  "text": "void"
11412
11493
  }
11413
11494
  },
11414
- "description": "Sends PAYMENT_METHOD_SELECTION analytics event when user first interacts with card form"
11495
+ "description": "Starts polling timer to track payment duration"
11415
11496
  },
11416
11497
  {
11417
11498
  "kind": "method",
11418
- "name": "checkAndSendPaymentDetailsEnteredEvent",
11499
+ "name": "stopPollingTimer",
11419
11500
  "privacy": "private",
11420
11501
  "return": {
11421
11502
  "type": {
11422
11503
  "text": "void"
11423
11504
  }
11424
11505
  },
11425
- "description": "Checks if all required fields are filled and sends PAYMENT_DETAILS_ENTERED event"
11426
- },
11427
- {
11428
- "kind": "field",
11429
- "name": "paymentDetailsEnteredSent",
11430
- "type": {
11431
- "text": "boolean"
11432
- },
11433
- "privacy": "private",
11434
- "default": "false"
11506
+ "description": "Stops and resets polling timer"
11435
11507
  },
11436
11508
  {
11437
11509
  "kind": "method",
11438
- "name": "sendPaymentDetailsEnteredEvent",
11510
+ "name": "submitBlikCode",
11439
11511
  "privacy": "private",
11440
11512
  "return": {
11441
11513
  "type": {
11442
- "text": "void"
11514
+ "text": "Promise<void>"
11443
11515
  }
11444
11516
  },
11445
- "description": "Sends PAYMENT_DETAILS_ENTERED analytics event when all payment details are complete and valid"
11446
- },
11447
- {
11448
- "kind": "field",
11449
- "name": "handleSlotButtonClick",
11450
- "privacy": "private",
11451
- "description": "Handles click events from slotted content.\nSupports both native <button> and custom <primer-button> elements."
11452
- },
11453
- {
11454
- "kind": "field",
11455
- "name": "handleDirectSubmit",
11456
- "privacy": "private",
11457
- "description": "Handles direct submit events from child components\nThis is a backup method to catch all possible submission events"
11517
+ "description": "Validates and submits the BLIK code"
11458
11518
  },
11459
11519
  {
11460
11520
  "kind": "method",
11461
- "name": "setupContextEventListeners",
11521
+ "name": "renderCollapsed",
11462
11522
  "privacy": "private",
11463
11523
  "return": {
11464
11524
  "type": {
11465
- "text": "void"
11525
+ "text": "TemplateResult"
11466
11526
  }
11467
11527
  },
11468
- "description": "Sets up event listeners for context-forwarded events"
11528
+ "description": "Renders the collapsed button state"
11469
11529
  },
11470
11530
  {
11471
11531
  "kind": "method",
11472
- "name": "cleanupContextEventListeners",
11532
+ "name": "renderExpandedInput",
11473
11533
  "privacy": "private",
11474
11534
  "return": {
11475
11535
  "type": {
11476
- "text": "void"
11536
+ "text": "TemplateResult"
11477
11537
  }
11478
11538
  },
11479
- "description": "Cleans up context event listeners"
11480
- },
11481
- {
11482
- "kind": "field",
11483
- "name": "handleContextCardSubmit",
11484
- "privacy": "private",
11485
- "description": "Handles primer:card-submit events received from the events context\nThis allows the card form to respond to external submit triggers"
11539
+ "description": "Renders the expanded input state"
11486
11540
  },
11487
11541
  {
11488
11542
  "kind": "method",
11489
- "name": "isSubmitButton",
11543
+ "name": "renderLoading",
11490
11544
  "privacy": "private",
11491
11545
  "return": {
11492
11546
  "type": {
11493
- "text": "boolean"
11547
+ "text": "TemplateResult"
11494
11548
  }
11495
11549
  },
11496
- "parameters": [
11497
- {
11498
- "name": "button",
11499
- "type": {
11500
- "text": "HTMLElement"
11501
- }
11502
- }
11503
- ],
11504
- "description": "Determines if a button is a submit button based on its attributes"
11550
+ "description": "Renders the loading state"
11505
11551
  },
11506
11552
  {
11507
- "kind": "field",
11508
- "name": "onSlotChange",
11553
+ "kind": "method",
11554
+ "name": "renderError",
11509
11555
  "privacy": "private",
11510
- "description": "Handles slot change events to detect custom content"
11556
+ "return": {
11557
+ "type": {
11558
+ "text": "TemplateResult"
11559
+ }
11560
+ },
11561
+ "description": "Renders the error state"
11511
11562
  },
11512
11563
  {
11513
11564
  "kind": "method",
11514
- "name": "submitCardPayment",
11565
+ "name": "renderExpandedState",
11515
11566
  "privacy": "private",
11516
11567
  "return": {
11517
11568
  "type": {
11518
- "text": "Promise<void>"
11569
+ "text": "TemplateResult | typeof nothing"
11519
11570
  }
11520
11571
  },
11521
- "description": "Handles the card form submission.\nValidates the form and dispatches either a submit success or errors event."
11572
+ "description": "Renders the appropriate expanded state based on current state"
11573
+ }
11574
+ ],
11575
+ "events": [
11576
+ {
11577
+ "description": "Dispatched on successful payment",
11578
+ "name": "primer-payment-success"
11522
11579
  },
11523
11580
  {
11524
- "kind": "field",
11525
- "name": "handleFormSubmit",
11526
- "privacy": "private",
11527
- "description": "Event handler for form submission\nHandles both native form submissions and custom events"
11581
+ "description": "Dispatched on payment error",
11582
+ "name": "primer-payment-error"
11528
11583
  }
11529
11584
  ],
11530
11585
  "attributes": [
11531
11586
  {
11532
- "name": "hide-labels",
11587
+ "name": "paymentMethod",
11533
11588
  "type": {
11534
- "text": "boolean"
11589
+ "text": "InitializedPaymentMethod"
11535
11590
  },
11536
- "default": "false",
11537
- "fieldName": "hideLabels"
11591
+ "description": "Payment method configuration",
11592
+ "fieldName": "paymentMethod"
11538
11593
  },
11539
11594
  {
11540
11595
  "name": "disabled",
@@ -11542,128 +11597,73 @@
11542
11597
  "text": "boolean"
11543
11598
  },
11544
11599
  "default": "false",
11600
+ "description": "Disables component interaction when true",
11545
11601
  "fieldName": "disabled"
11546
- },
11547
- {
11548
- "name": "paymentManagers",
11549
- "type": {
11550
- "text": "InitializedManagersMap"
11551
- },
11552
- "default": "new Map()",
11553
- "description": "Payment managers injected from context",
11554
- "fieldName": "paymentManagers"
11555
11602
  }
11556
11603
  ],
11557
11604
  "superclass": {
11558
11605
  "name": "LitElement",
11559
11606
  "package": "lit"
11560
11607
  },
11561
- "tagName": "primer-card-form",
11608
+ "tagName": "primer-blik",
11562
11609
  "customElement": true
11563
11610
  }
11564
11611
  ],
11565
11612
  "exports": [
11566
11613
  {
11567
11614
  "kind": "js",
11568
- "name": "CardFormComponent",
11615
+ "name": "BlikComponent",
11569
11616
  "declaration": {
11570
- "name": "CardFormComponent",
11571
- "module": "src/containers/card-form/card-form.component.ts"
11617
+ "name": "BlikComponent",
11618
+ "module": "src/containers/blik/blik.component.ts"
11572
11619
  }
11573
11620
  },
11574
11621
  {
11575
11622
  "kind": "custom-element-definition",
11576
- "name": "primer-card-form",
11623
+ "name": "primer-blik",
11577
11624
  "declaration": {
11578
- "name": "CardFormComponent",
11579
- "module": "src/containers/card-form/card-form.component.ts"
11625
+ "name": "BlikComponent",
11626
+ "module": "src/containers/blik/blik.component.ts"
11580
11627
  }
11581
11628
  }
11582
11629
  ]
11583
11630
  },
11584
11631
  {
11585
11632
  "kind": "javascript-module",
11586
- "path": "src/containers/card-form/card-form.styles.ts",
11587
- "declarations": [],
11633
+ "path": "src/containers/blik/blik.styles.ts",
11634
+ "declarations": [
11635
+ {
11636
+ "kind": "variable",
11637
+ "name": "styles",
11638
+ "default": "css` :host { display: flex; width: 100%; } .blik-container { width: 100%; display: flex; flex-direction: column; transition: all var(--primer-animation-duration) var(--primer-animation-easing); } .blik-container.expanded { border-radius: var(--primer-radius-medium); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); background-color: var(--primer-color-background-outlined-default); border: 1px solid var(--primer-color-border-outlined-default); padding: var(--primer-space-large); } /* Button styles (collapsed state) */ primer-button.blik-button { width: 100%; } /* Override primer-button part styles for BLIK branding */ primer-button.blik-button::part(button) { /* BLIK brand requirement: Black background (#000000) with white logo */ background-color: #000000; border: none; color: var(--primer-color-text-primary); padding: 2px; display: flex; align-items: center; justify-content: center; gap: var(--primer-space-small); /* Fixed height for button - matches redirect payment method calculation */ height: calc( ${unsafeCSS(PAYMENT_METHOD_LINE_HEIGHT)} + calc(2 * var(--primer-space-medium)) ); flex-shrink: 0; /* Prevent button from shrinking when form appears */ } /* Image container for button logo */ .image-container { display: flex; justify-content: center; align-items: center; min-width: 100px; height: 100%; flex-shrink: 0; flex-grow: 1; } /* Button logo */ img { max-width: 100px; width: 100%; height: auto; object-fit: cover; max-height: 98%; } /* Expanded content (form, loading, error states) */ .blik-expanded-content { width: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--primer-animation-duration) var(--primer-animation-easing); overflow: hidden; margin-top: var(--primer-space-medium); } .blik-container.expanded .blik-expanded-content { grid-template-rows: 1fr; } .blik-content-wrapper { overflow: hidden; } /* 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; } /* Disabled state styling */ :host([disabled]) { opacity: 0.6; cursor: not-allowed; } :host([disabled]) primer-button::part(button) { pointer-events: none; cursor: not-allowed; } :host([disabled]) img { filter: grayscale(100%); } /* Responsive typography for larger screens */ @media (min-width: 768px) { .blik-input { font-size: var(--primer-typography-title-large-size); } } `"
11639
+ }
11640
+ ],
11588
11641
  "exports": [
11589
11642
  {
11590
11643
  "kind": "js",
11591
- "name": "default",
11644
+ "name": "styles",
11592
11645
  "declaration": {
11593
- "module": "src/containers/card-form/card-form.styles.ts"
11646
+ "name": "styles",
11647
+ "module": "src/containers/blik/blik.styles.ts"
11594
11648
  }
11595
11649
  }
11596
11650
  ]
11597
11651
  },
11598
11652
  {
11599
11653
  "kind": "javascript-module",
11600
- "path": "src/containers/card-form/card-form.ts",
11654
+ "path": "src/containers/blik/blik.ts",
11601
11655
  "declarations": [],
11602
11656
  "exports": [
11603
11657
  {
11604
11658
  "kind": "js",
11605
- "name": "CardFormCardNumber",
11606
- "declaration": {
11607
- "name": "CardFormCardNumber",
11608
- "module": "./components"
11609
- }
11610
- },
11611
- {
11612
- "kind": "js",
11613
- "name": "CardFormCVV",
11614
- "declaration": {
11615
- "name": "CardFormCVV",
11616
- "module": "./components"
11617
- }
11618
- },
11619
- {
11620
- "kind": "js",
11621
- "name": "CardFormExpiry",
11622
- "declaration": {
11623
- "name": "CardFormExpiry",
11624
- "module": "./components"
11625
- }
11626
- },
11627
- {
11628
- "kind": "js",
11629
- "name": "CardFormName",
11630
- "declaration": {
11631
- "name": "CardFormName",
11632
- "module": "./components"
11633
- }
11634
- },
11635
- {
11636
- "kind": "js",
11637
- "name": "CardFormSubmit",
11638
- "declaration": {
11639
- "name": "CardFormSubmit",
11640
- "module": "./components"
11641
- }
11642
- },
11643
- {
11644
- "kind": "js",
11645
- "name": "CardFormCardNetworkSelector",
11646
- "declaration": {
11647
- "name": "CardFormCardNetworkSelector",
11648
- "module": "./components"
11649
- }
11650
- },
11651
- {
11652
- "kind": "js",
11653
- "name": "CardForm",
11659
+ "name": "Blik",
11654
11660
  "declaration": {
11655
- "name": "CardFormComponent",
11656
- "module": "src/containers/card-form/card-form.ts"
11661
+ "name": "BlikComponent",
11662
+ "module": "src/containers/blik/blik.ts"
11657
11663
  }
11658
11664
  }
11659
11665
  ]
11660
11666
  },
11661
- {
11662
- "kind": "javascript-module",
11663
- "path": "src/containers/card-form/types.ts",
11664
- "declarations": [],
11665
- "exports": []
11666
- },
11667
11667
  {
11668
11668
  "kind": "javascript-module",
11669
11669
  "path": "src/containers/dynamic-payment/dynamic-payment.component.ts",