rebill-web-components-sdk 1.8.5 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/apm-checkout_16.cjs.entry.js +1 -1
- package/dist/cjs/{get-payment-method-display-name-oo6lOpoC.js → get-payment-method-display-name-C6mdzTEs.js} +86 -86
- package/dist/cjs/{get-payment-method-display-name-oo6lOpoC.js.map → get-payment-method-display-name-C6mdzTEs.js.map} +1 -1
- package/dist/cjs/{index-N1yCtvXq.js → index-DLv8bgA4.js} +3 -3
- package/dist/cjs/{index-N1yCtvXq.js.map → index-DLv8bgA4.js.map} +1 -1
- package/dist/cjs/{jspdf.es.min-BW0eLZgN.js → jspdf.es.min-CV0yEJ9o.js} +4 -4
- package/dist/cjs/{jspdf.es.min-BW0eLZgN.js.map → jspdf.es.min-CV0yEJ9o.js.map} +1 -1
- package/dist/cjs/otp-component_7.cjs.entry.js +1 -1
- package/dist/cjs/renewal-success-page_2.cjs.entry.js +1 -1
- package/dist/collection/utils/pdf-generator.js +1 -1
- package/dist/collection/utils/pdf-generator.js.map +1 -1
- package/dist/collection/utils/receipt-Cardtemplate.js +81 -81
- package/dist/collection/utils/receipt-Cardtemplate.js.map +1 -1
- package/dist/components/apm-checkout.js +1 -1
- package/dist/components/{p-LFMU1iYh.js → p-1tbGUoeo.js} +4 -4
- package/dist/components/{p-LFMU1iYh.js.map → p-1tbGUoeo.js.map} +1 -1
- package/dist/components/{p-CMnoxL8G.js → p-BnidisYn.js} +3 -3
- package/dist/components/{p-CMnoxL8G.js.map → p-BnidisYn.js.map} +1 -1
- package/dist/components/{p-fwl9Z4PT.js → p-C1THyrZh.js} +3 -3
- package/dist/components/{p-fwl9Z4PT.js.map → p-C1THyrZh.js.map} +1 -1
- package/dist/components/{p-BBEMTBwW.js → p-C69QonMT.js} +3 -3
- package/dist/components/{p-BBEMTBwW.js.map → p-C69QonMT.js.map} +1 -1
- package/dist/components/{p-ByJrcRsN.js → p-DZI13wtJ.js} +3 -3
- package/dist/components/{p-ByJrcRsN.js.map → p-DZI13wtJ.js.map} +1 -1
- package/dist/components/{p-tWMR1_gF.js → p-fStqPH4y.js} +86 -86
- package/dist/components/p-fStqPH4y.js.map +1 -0
- package/dist/components/rebill-checkout.js +2 -2
- package/dist/components/rebill-renewal.js +2 -2
- package/dist/components/renewal-success-page.js +1 -1
- package/dist/components/success-page.js +1 -1
- package/dist/esm/apm-checkout_16.entry.js +1 -1
- package/dist/esm/{get-payment-method-display-name-Dj7gQJ-R.js → get-payment-method-display-name-B59DbHr6.js} +86 -86
- package/dist/esm/{get-payment-method-display-name-Dj7gQJ-R.js.map → get-payment-method-display-name-B59DbHr6.js.map} +1 -1
- package/dist/esm/{index-wfvNOgYw.js → index-DtxAsmPA.js} +3 -3
- package/dist/esm/{index-wfvNOgYw.js.map → index-DtxAsmPA.js.map} +1 -1
- package/dist/esm/{jspdf.es.min-ssPVxe3c.js → jspdf.es.min-APwmCmmv.js} +4 -4
- package/dist/esm/{jspdf.es.min-ssPVxe3c.js.map → jspdf.es.min-APwmCmmv.js.map} +1 -1
- package/dist/esm/otp-component_7.entry.js +1 -1
- package/dist/esm/renewal-success-page_2.entry.js +1 -1
- package/dist/rebill-web-components-sdk/{p-6762520a.entry.js → p-07de4442.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-DeorBmj5.js → p-2D2ZgtY0.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-DeorBmj5.js.map → p-2D2ZgtY0.js.map} +1 -1
- package/dist/rebill-web-components-sdk/{p-075927af.entry.js → p-4e35c3c8.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-BldcNI96.js → p-D5uLuMja.js} +9 -9
- package/dist/rebill-web-components-sdk/{p-BldcNI96.js.map → p-D5uLuMja.js.map} +1 -1
- package/dist/rebill-web-components-sdk/{p-6b756131.entry.js → p-ce0793c8.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-BWqURJ0r.js → p-ymT8AXMV.js} +5 -5
- package/dist/rebill-web-components-sdk/{p-BWqURJ0r.js.map → p-ymT8AXMV.js.map} +1 -1
- package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-tWMR1_gF.js.map +0 -1
- /package/dist/rebill-web-components-sdk/{p-6762520a.entry.js.map → p-07de4442.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-075927af.entry.js.map → p-4e35c3c8.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-6b756131.entry.js.map → p-ce0793c8.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as a,d as r,h as t}from"./p-D8cwEAmw.js";import{P as i,f as s,I as o,e as l,s as c}from"./p-_KJrM-e7.js";import{r as n}from"./p-B0ywoypM.js";import{B as d,g as b,i as p}from"./p-Do_vNuMa.js";import{C as f}from"./p-DA598vBj.js";import{P as h,g}from"./p-DeorBmj5.js";import{f as y,a as m}from"./p-Bridn86q.js";import"./p-E-ZsRS8r.js";import"./p-B96SyP8A.js";const u=":root{--rebill-color-primary:#3b82f6;--rebill-color-primary-light:rgba(59, 130, 246, 0.1);--rebill-color-primary-hover:#2563eb;--rebill-color-primary-dark:#001131;--rebill-color-primary-dark-text:#000000;--rebill-color-primary-dark-hover:#001c4a;--rebill-color-primary-dark-light:rgba(0, 17, 49, 0.1);--rebill-color-error:#ef4444;--rebill-color-error-background:#fef2f2;--rebill-color-error-light:rgba(239, 68, 68, 0.1);--rebill-color-error-dark:#6f101b;--rebill-color-background:#ffffff;--rebill-color-background-left:#fafafa;--rebill-color-background-right:#f4f5f6;--rebill-color-background-secondary:#f7f8fa;--rebill-color-border:#ebedef;--rebill-color-timeline-connector:#c4c8cf;--rebill-color-neutrals-700:#58616e;--rebill-color-neutrals-500:#9ca3af;--rebill-color-border-primary:#e4e4e7;--rebill-color-text-primary:#3b4049;--rebill-color-text-secondary:#6b7280;--rebill-color-grey-700:#7d7d7d;--rebill-color-text-secondary-light:#a1a1aa;--rebill-color-text-on-primary:#ffffff;--rebill-color-disabled:#9ca3af;--rebill-color-shadow:rgba(0, 0, 0, 0.1);--rebill-color-green:#10b981;--rebill-color-green-text:#257c67;--rebill-color-green-light:rgba(183, 233, 221, 0.15);--rebill-color-green-light-2:rgba(183, 233, 221, 1);--rebill-color-info-background:#d5e4ff;--rebill-color-info-border:#0156f6;--rebill-color-info-text:#172b85;--rebill-color-background-secondary-light:#f7f8fa;--rebill-breakpoint-mobile:768px;--rebill-breakpoint-tablet:1024px;--rebill-breakpoint-desktop:1025px;--rebill-color-orange:#ff9400;--rebill-color-black:#1e2025;--rebill-color-grey-300:#3b4049;--rebill-color-grey-100:#aeaeae}.qr-container,.qr-image,.qr-image svg,.qr-image img,[class*='qr-'],[class*='success'],[class*='receipt']{transition:none !important;animation:none !important;will-change:auto !important}button:active,button:focus,button:hover{isolation:isolate}.renewal-success-page__success-content{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;overflow-x:hidden;box-sizing:border-box}.renewal-success-page__success-content rebill-typography[variant='h3']{margin:0 !important;padding:0 !important}.renewal-success-page__success-icon{display:flex;justify-content:center;margin:0.5rem 0}.renewal-success-page__info-card{padding:24px;gap:16px;width:100%;max-width:450px;border:1px solid #ebedef;border-radius:8px;display:flex;flex-direction:column;box-sizing:border-box}.renewal-success-page__card-row{display:flex;justify-content:space-between;align-items:start;min-height:20px;gap:15%}.renewal-success-page__card-row:last-of-type{margin-bottom:0}.renewal-success-page__card-value{display:flex;align-items:center;gap:0.5rem}.renewal-success-page__payment-method-display{display:flex;align-items:center;gap:8px;justify-content:center}.renewal-success-page__payment-method-display rebill-card-icon{display:inline-block;flex-shrink:0;margin-right:8px;vertical-align:middle}.renewal-success-page__payment-method-display rebill-card-icon svg{display:block}.renewal-success-page__payment-method-display rebill-icon{display:inline-block;vertical-align:middle;margin-right:8px}.renewal-success-page__payment-method-display rebill-icon div{display:block}.renewal-success-page__card-divider{height:1px;background:#e5e7eb}.renewal-success-page__download-container{display:flex;align-items:center;justify-content:flex-start;gap:2px;text-decoration:none;cursor:pointer}.renewal-success-page__contact-info{text-align:left}.renewal-success-page__reference-number{word-break:break-all;overflow-wrap:break-word;hyphens:auto;max-width:100%;text-align:right}.renewal-success-page__total-amount-container{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-direction:row}@media (max-width: 1024px){.renewal-success-page__success-content{max-width:100%;gap:1.5rem;margin-left:16px;margin-right:16px}.renewal-success-page__info-card{width:100%;max-width:100%;padding:12px}}@media (max-width: 767px){.renewal-success-page__info-card{padding:12px}}";const w=class{constructor(r){e(this,r);this.successRedirect=a(this,"successRedirect")}typePaymentMethod=i.CARD;country="";bank="";paymentMethodName="";cardLastFour="";paymentDate="";referenceNumber="";trialPeriodDays=0;debitDay=0;planAmount=0;currentLocale="es";breakpoint=d.DESKTOP;successRedirect;loaderProgress=0;isLoadingLottie=true;showRedirectMessage=false;timeToRedirect=3e3;progressInterval;lottieContainer;lottieAnimation;successDisplayTimeout;applyStartCaseToBrand=e=>{if(!e)return"";return e.toLowerCase().split(/[\s-]+/).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")};getPaymentDate=()=>{const e=n.form.checkoutResponse;if(!e)return"";if("date"in e){return e.date}return""};componentWillLoad(){this.breakpoint=b(window.innerWidth);if(this.showRedirectMessage){this.successDisplayTimeout=window.setTimeout((()=>{this.showRedirectMessage=true;this.loadLottieAnimation()}),1500);setTimeout((()=>{this.stopLoaderAnimation()}),this.timeToRedirect)}}componentDidLoad(){window.addEventListener("resize",this.handleResize);if(!this.showRedirectMessage){this.loadLottieAnimation()}}disconnectedCallback(){if(this.successDisplayTimeout){clearTimeout(this.successDisplayTimeout)}window.removeEventListener("resize",this.handleResize);this.stopLoaderAnimation()}handleResize=()=>{this.breakpoint=b(window.innerWidth)};loadLottieAnimation=async()=>{try{const e=await import("./p-GK75wIKe.js").then((function(e){return e.l}));const a=await fetch(r(`./assets/loader-redirect1.json`));const t=await a.json();if(this.lottieContainer){this.lottieAnimation=e.default.loadAnimation({container:this.lottieContainer,renderer:"svg",loop:true,autoplay:true,animationData:t})}else{this.startLoaderAnimation()}}catch(e){this.startLoaderAnimation()}};startLoaderAnimation=()=>{const e=3e3;const a=50;const r=a/e*100;this.progressInterval=window.setInterval((()=>{this.loaderProgress=Math.min(this.loaderProgress+r,100);if(this.loaderProgress>=100){this.stopLoaderAnimation()}}),a)};stopLoaderAnimation=()=>{if(this.progressInterval){clearInterval(this.progressInterval);this.progressInterval=undefined}if(this.lottieAnimation){this.lottieAnimation.destroy();this.lottieAnimation=undefined}};handleDownloadReceipt=async()=>{try{await h.generateAndDownloadReceipt({paymentMethod:this.typePaymentMethod===i.CARD?this.textPaymentMethodCard():this.paymentMethodName,...this.typePaymentMethod===i.BANK_TRANSFER&&{bank:this.bank},...this.typePaymentMethod===i.CARD&&{cardBrand:this.applyStartCaseToBrand(n.data.cardInformation?.brand||"")},...this.typePaymentMethod===i.CARD&&{cardLastFour:this.cardLastFour??n.data.cardInformation?.lastFour},paymentDate:y(this.getPaymentDate())||"",email:n.data.subscription.customerEmail||"",referenceNumber:this.referenceNumber,productTitle:n.data.subscription.name[0]?.text||"Subscription",subtotal:this.getFormattedSubtotal(),total:this.getFormattedTotal(),currency:n.data.price.currency||" ",discountAmount:this.getFormattedDiscountAmount(),trialPeriodDays:this.trialPeriodDays,debitDay:this.debitDay,planAmount:this.getFormattedSubtotal(this.planAmount),isBankTransfer:this.typePaymentMethod===i.BANK_TRANSFER})}catch(e){console.error("Error downloading receipt:",e)}};getFormattedDiscountAmount=()=>undefined;getFormattedSubtotal=(e=null)=>s(e||n.data.price.amount,n.data.price.currency);getFormattedTotal=()=>{if(this.trialPeriodDays>0){return s(0,n.data.price.currency)}return s(n.data.price.amount,n.data.price.currency)};textPaymentMethodCard=()=>{const e=n.data?.cardInformation?.brand;const a=this.cardLastFour||n.data?.cardInformation?.lastFour;const r=this.applyStartCaseToBrand(e||"");return e&&a?`${r} - ${a}`:r};render(){return t("rebill-checkout-single-column",{key:"22e8c13beb16726da16fbeb3907f92b757f1c74f"},t("div",{key:"3089079b61f93ed76d24546c5eb122d070a6e079",class:"renewal-success-page__success-content"},t("rebill-typography",{key:"2aa31ccaa4654376d00a854bab7401a27b116499",variant:"h3",color:f.PRIMARY_DARK_TEXT},o.translate("processing.successTitle")),t("div",{key:"ba0114812a2a8e9a225b4d49181221ee21bde1a1",class:"renewal-success-page__success-icon"},t("svg",{key:"5d54434aa653512d5e5742c2faa2b5680f873a89",width:p(this.breakpoint,d.DESKTOP)?"64":"96",height:p(this.breakpoint,d.DESKTOP)?"64":"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"f964af5a32cc2cfcc5e823ffbc2aeed35eab05ef","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.99219 47.998C7.99219 25.9067 25.9008 7.99805 47.9922 7.99805C70.0836 7.99805 87.9922 25.9067 87.9922 47.998C87.9922 70.0894 70.0836 87.998 47.9922 87.998C25.9008 87.998 7.99219 70.0894 7.99219 47.998ZM61.5401 39.2645C62.2396 38.4096 62.1136 37.1496 61.2587 36.4501C60.4038 35.7507 59.1437 35.8767 58.4443 36.7316L41.8437 57.0211L35.4064 50.5838C34.6254 49.8028 33.359 49.8028 32.578 50.5838C31.7969 51.3649 31.7969 52.6312 32.578 53.4123L40.578 61.4123C40.9775 61.8118 41.5275 62.0237 42.0918 61.9956C42.6562 61.9674 43.1823 61.7019 43.5401 61.2645L61.5401 39.2645Z",fill:"#35B093"}))),t("div",{key:"615734f5d5e0695b94a526586f9f9a35cadaec15",class:"renewal-success-page__info-card"},t("div",{key:"333ac43ba36202067e52585df703449c93e76e0e",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"7e81a6e8e7184f0107d05da1e83020146f38185c",variant:"body2",color:f.SECONDARY},o.translate("processing.paymentMethod")),t("div",{key:"a6099aaeb4db666dc23b55cf31464ca9b6f4e741",class:"renewal-success-page__card-value"},t("div",{key:"cc8cadace90e91eac3b711416a16eeb0c82b4bf4",class:"renewal-success-page__payment-method-display"},this.typePaymentMethod===i.CARD&&t(t.Fragment,null,t("rebill-card-icon",{key:"3f3b5421084b360bab9d42192bfe61fe611a09e9","card-brand":n.data?.cardInformation?.brand||""}),t("rebill-typography",{key:"ed46bf21b98151265ced84fdb9a6c77f8bd54e78",variant:"body2",color:f.PRIMARY_DARK_TEXT},this.textPaymentMethodCard())),this.typePaymentMethod===i.BANK_TRANSFER&&t("div",{key:"b800e3eb1ca8c4f01f0adeb0b3f8d7b243b2ef6e",style:{display:"flex",alignItems:"center",gap:"8px"}},t("rebill-icon",{key:"61728b15ed20c48388cdf5f4605282321dadcea4",name:g(i.BANK_TRANSFER,this.country).toLowerCase()}),t("rebill-typography",{key:"880b4494f608ad95a13b7af1153f07ceb11a4cb2",variant:"body2",color:f.PRIMARY_DARK_TEXT},o.translate("paymentMethods.bank_transfer")))))),t("div",{key:"0ce54346a35c5e60e309ca682cdce6a4261748ff",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"74c5e16bc547240cb58148c6a265058d79c99cec",variant:"body2",color:f.SECONDARY},o.translate("processing.paymentDate")),t("rebill-typography",{key:"6759bdf9aa21772e58f54b4e02f9293f078302fa",variant:"body2",color:f.PRIMARY_DARK_TEXT},y(this.paymentDate||this.getPaymentDate())||"")),t("div",{key:"756ef978e932ee0b39d17ed92fad8cc49d0f2f3a",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"b905f100b2b4da1337421478a128e22125e52319",variant:"body2",color:f.SECONDARY},o.translate("processing.paymentEmail")),t("rebill-typography",{key:"023c308d8ef2ae710c7008e56af6d966536eb5e4",variant:"body2",color:f.PRIMARY_DARK_TEXT},n.data.subscription.customerEmail)),t("div",{key:"9f7d1adb8d5d4379adb0980ff2fe7733cc0b82c2",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"6f1f62401ad73ceecfffc42257cfb89e4de0e2b9",variant:"body2",color:f.SECONDARY},o.translate("processing.paymentReference")),t("rebill-typography",{key:"784d10962c5bd537a55bf68a85c48ad885e6f6a2",variant:"body2",color:f.PRIMARY_DARK_TEXT,class:"renewal-success-page__reference-number"},this.referenceNumber||""))),t("div",{key:"a4eaf4ca38eac98c9257ed45a238b4b2489d86b8",class:"renewal-success-page__info-card"},t("rebill-typography",{key:"cb36cd30ff78a4110deb108b66ba9e3aa1a227c7",variant:"subtitle-bold",color:f.PRIMARY_DARK_TEXT},o.translate("processing.purchaseDetails")),t("div",{key:"6539086311dd95fc61f9bfc6619b908ef1f191b8",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"ac002409e20935f57873dd860e762f3874c2b382",variant:"body2",color:f.SECONDARY},o.translate("processing.purchaseDetail")),t("rebill-typography",{key:"8184b75d4c6920327af717abe913c3c5103ac5da",variant:"body2",color:f.PRIMARY_DARK_TEXT},n.data.subscription.name[0]?.text||"Subscription")),t("div",{key:"597c5f764d0ed5a43d6a545518f005139dd6b46d",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"7d737c4043f8359acab1c7e3d9f8ed66ba412fdd",variant:"body2",color:f.SECONDARY},o.translate("processing.purchaseSubtotal")),t("rebill-typography",{key:"3babadb3bb63c8ad00897125b28b4018d5409149",variant:"body2",color:f.PRIMARY_DARK_TEXT},this.getFormattedSubtotal())),t("div",{key:"8f1c1b92d98825ea2e8f4778b519f6da1f6b81d8",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"f545c4ebdabb374ecb602c8156522bff5d0453e7",variant:"body2",color:f.SECONDARY},o.translate("processing.purchaseMontoTotal")),t("div",{key:"86030e48acae8ba185ea919382f028f4abe13ca6",class:"renewal-success-page__total-amount-container"},t("rebill-typography",{key:"204882807d213e41837c472dda0910240bf7897e",variant:"body2",color:f.PRIMARY_DARK_TEXT},this.getFormattedTotal()))),t("div",{key:"55d01018b5c33c3d350b37c66ba6790706c6957e",class:"renewal-success-page__card-divider"}),t("div",{key:"514c022d98b47781c27816ce02caa287c55a16da",class:"renewal-success-page__download-container"},t("svg",{key:"abdacdcb5e98d843d8e88464e2bf88d5b232e52e",class:"download-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"881cdd290a2b2f57cd939b2006d80bcafce7ea9b",d:"M13.498 9.83333V12.1667C13.498 12.903 12.9011 13.5 12.1647 13.5H3.83138C3.095 13.5 2.49805 12.903 2.49805 12.1667V9.83333M7.99804 10V2.5M7.99804 10L5.66471 7.66667M7.99804 10L10.3314 7.66667",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})),t("rebill-button",{key:"a34543047b0f77a8f088ac972b1c5a0dbea44e4a",type:"button",variant:"download",size:"small",onClick:this.handleDownloadReceipt},t("rebill-typography",{key:"293bcd4e24c8f25cfdfc44e2c85b35485a8bb30b",variant:"overline",color:f.PRIMARY_DARK_TEXT},o.translate("processing.download")))),t("div",{key:"5178d135e2c92e1af5c077ed507dd8ebe3885665",class:"renewal-success-page__contact-info"},t("rebill-typography",{key:"528e2fbd77b5e48c617c7a8845718c3b6bd52f06",variant:"information-text",color:f.SECONDARY},o.translate("processing.downloadDescription"))))))}};w.style=u;const x=".wrapper{margin:0 auto;display:flex;flex-direction:column;align-items:center}.header{display:flex;flex-direction:column;align-items:center;gap:8px}.title{font-size:1rem;font-weight:500;color:var(--rebill-color-primary-dark-text);text-align:center}.amount{font-size:2.25rem;font-weight:500;color:var(--rebill-color-primary-dark-text);margin:0 0 1.5rem 0;text-align:center;line-height:1.1}.per{font-size:1.1rem;font-weight:400;color:var(--rebill-color-text-secondary)}.label-muted{font-size:1rem;color:var(--rebill-color-primary-dark);margin:0 0 1.5rem 0;text-align:center}.info{width:100%;margin-top:1.5rem;margin-bottom:3rem;display:flex;flex-direction:column;gap:1.4rem}.row{display:flex;justify-content:space-between;align-items:center;font-size:1rem;line-height:1.4;width:100%}.left{color:var(--rebill-color-text-secondary);font-weight:400}.right{color:var(--rebill-color-primary-dark-text);font-weight:400;text-align:right}.divider{border:none;border-top:1px solid var(--rebill-color-border);margin:1rem 0}@media (max-width: 1024px){.amount{margin-bottom:0}.row{font-size:0.9rem}.row:not(:last-child){margin-bottom:0.5rem}.left{color:var(--rebill-color-primary-dark-text)}}.total-row{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:1.1rem;font-weight:600}.total-row .left{color:var(--rebill-color-primary-dark-text)}";const k=class{constructor(a){e(this,a)}forceUpdate=0;displayedComponents=["header","details","summary"];componentWillLoad(){l.on("languageChanged",this.handleLanguageChange)}disconnectedCallback(){l.off("languageChanged",this.handleLanguageChange)}handleLanguageChange=()=>{this.forceUpdate=this.forceUpdate+1};totalAmount;subscriptionTitle;subscriptionAmount;nextChargeDate;frequency;currency;getFrequencyText(){if(!this.frequency||!this.frequency.period)return"";const e=this.frequency.period.toLowerCase();const a=this.frequency.count;const r=`summary.${e}`;return o.translate(r,{count:a})}renderHeader=()=>t("div",{class:"header"},t("p",{class:"title"},o.translate("renewal.title")),t("p",{class:"amount"},s(this.totalAmount,this.currency)," ",t("span",{class:"per"},"/ ",this.getFrequencyText().toLowerCase())));renderInfoRow=(e,a)=>t("div",{class:"row"},t("div",{class:"left"},e),t("div",{class:"right"},a));renderProduct=()=>this.renderInfoRow(this.subscriptionTitle,s(this.subscriptionAmount,this.currency));renderNextRenewal=()=>this.renderInfoRow(o.translate("renewal.nextRenewal"),m(this.nextChargeDate,undefined,c.currentLocale));renderSubtotal=()=>this.renderInfoRow(o.translate("renewal.subtotal"),s(this.totalAmount,this.currency));renderTotal=()=>t("div",{class:"total-row"},t("div",{class:"left"},o.translate("renewal.totalToRenew")),t("div",{class:"right"},s(this.totalAmount,this.currency)));renderDesktop=()=>t("div",{class:"wrapper"},this.renderHeader(),t("div",{class:"info"},t("div",{class:"row"},t("div",{class:""},o.translate("renewal.subscriptionDetails"))),this.renderProduct(),this.renderNextRenewal(),this.renderSubtotal()),this.renderTotal());render(){if(this.displayedComponents.includes("header")&&this.displayedComponents.includes("details")&&this.displayedComponents.includes("summary")){return this.renderDesktop()}if(this.displayedComponents.includes("header")){return this.renderHeader()}if(this.displayedComponents.includes("details")){return t("collapsible-card",{header:o.translate("summary.details")},this.renderProduct(),this.renderNextRenewal())}if(this.displayedComponents.includes("summary")){return t("collapsible-card",{header:o.translate("summary.summary")},this.renderInfoRow(this.subscriptionTitle,"1 x "+s(this.subscriptionAmount,this.currency)),this.renderSubtotal(),t("rebill-divider",null),this.renderInfoRow(o.translate("renewal.totalToRenew"),s(this.totalAmount,this.currency)))}}};k.style=x;export{w as renewal_success_page,k as renewal_summary};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as a,d as r,h as t}from"./p-D8cwEAmw.js";import{P as i,f as s,I as o,e as l,s as c}from"./p-_KJrM-e7.js";import{r as n}from"./p-B0ywoypM.js";import{B as d,g as b,i as p}from"./p-Do_vNuMa.js";import{C as f}from"./p-DA598vBj.js";import{P as h,g}from"./p-2D2ZgtY0.js";import{f as y,a as m}from"./p-Bridn86q.js";import"./p-E-ZsRS8r.js";import"./p-B96SyP8A.js";const u=":root{--rebill-color-primary:#3b82f6;--rebill-color-primary-light:rgba(59, 130, 246, 0.1);--rebill-color-primary-hover:#2563eb;--rebill-color-primary-dark:#001131;--rebill-color-primary-dark-text:#000000;--rebill-color-primary-dark-hover:#001c4a;--rebill-color-primary-dark-light:rgba(0, 17, 49, 0.1);--rebill-color-error:#ef4444;--rebill-color-error-background:#fef2f2;--rebill-color-error-light:rgba(239, 68, 68, 0.1);--rebill-color-error-dark:#6f101b;--rebill-color-background:#ffffff;--rebill-color-background-left:#fafafa;--rebill-color-background-right:#f4f5f6;--rebill-color-background-secondary:#f7f8fa;--rebill-color-border:#ebedef;--rebill-color-timeline-connector:#c4c8cf;--rebill-color-neutrals-700:#58616e;--rebill-color-neutrals-500:#9ca3af;--rebill-color-border-primary:#e4e4e7;--rebill-color-text-primary:#3b4049;--rebill-color-text-secondary:#6b7280;--rebill-color-grey-700:#7d7d7d;--rebill-color-text-secondary-light:#a1a1aa;--rebill-color-text-on-primary:#ffffff;--rebill-color-disabled:#9ca3af;--rebill-color-shadow:rgba(0, 0, 0, 0.1);--rebill-color-green:#10b981;--rebill-color-green-text:#257c67;--rebill-color-green-light:rgba(183, 233, 221, 0.15);--rebill-color-green-light-2:rgba(183, 233, 221, 1);--rebill-color-info-background:#d5e4ff;--rebill-color-info-border:#0156f6;--rebill-color-info-text:#172b85;--rebill-color-background-secondary-light:#f7f8fa;--rebill-breakpoint-mobile:768px;--rebill-breakpoint-tablet:1024px;--rebill-breakpoint-desktop:1025px;--rebill-color-orange:#ff9400;--rebill-color-black:#1e2025;--rebill-color-grey-300:#3b4049;--rebill-color-grey-100:#aeaeae}.qr-container,.qr-image,.qr-image svg,.qr-image img,[class*='qr-'],[class*='success'],[class*='receipt']{transition:none !important;animation:none !important;will-change:auto !important}button:active,button:focus,button:hover{isolation:isolate}.renewal-success-page__success-content{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;overflow-x:hidden;box-sizing:border-box}.renewal-success-page__success-content rebill-typography[variant='h3']{margin:0 !important;padding:0 !important}.renewal-success-page__success-icon{display:flex;justify-content:center;margin:0.5rem 0}.renewal-success-page__info-card{padding:24px;gap:16px;width:100%;max-width:450px;border:1px solid #ebedef;border-radius:8px;display:flex;flex-direction:column;box-sizing:border-box}.renewal-success-page__card-row{display:flex;justify-content:space-between;align-items:start;min-height:20px;gap:15%}.renewal-success-page__card-row:last-of-type{margin-bottom:0}.renewal-success-page__card-value{display:flex;align-items:center;gap:0.5rem}.renewal-success-page__payment-method-display{display:flex;align-items:center;gap:8px;justify-content:center}.renewal-success-page__payment-method-display rebill-card-icon{display:inline-block;flex-shrink:0;margin-right:8px;vertical-align:middle}.renewal-success-page__payment-method-display rebill-card-icon svg{display:block}.renewal-success-page__payment-method-display rebill-icon{display:inline-block;vertical-align:middle;margin-right:8px}.renewal-success-page__payment-method-display rebill-icon div{display:block}.renewal-success-page__card-divider{height:1px;background:#e5e7eb}.renewal-success-page__download-container{display:flex;align-items:center;justify-content:flex-start;gap:2px;text-decoration:none;cursor:pointer}.renewal-success-page__contact-info{text-align:left}.renewal-success-page__reference-number{word-break:break-all;overflow-wrap:break-word;hyphens:auto;max-width:100%;text-align:right}.renewal-success-page__total-amount-container{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-direction:row}@media (max-width: 1024px){.renewal-success-page__success-content{max-width:100%;gap:1.5rem;margin-left:16px;margin-right:16px}.renewal-success-page__info-card{width:100%;max-width:100%;padding:12px}}@media (max-width: 767px){.renewal-success-page__info-card{padding:12px}}";const w=class{constructor(r){e(this,r);this.successRedirect=a(this,"successRedirect")}typePaymentMethod=i.CARD;country="";bank="";paymentMethodName="";cardLastFour="";paymentDate="";referenceNumber="";trialPeriodDays=0;debitDay=0;planAmount=0;currentLocale="es";breakpoint=d.DESKTOP;successRedirect;loaderProgress=0;isLoadingLottie=true;showRedirectMessage=false;timeToRedirect=3e3;progressInterval;lottieContainer;lottieAnimation;successDisplayTimeout;applyStartCaseToBrand=e=>{if(!e)return"";return e.toLowerCase().split(/[\s-]+/).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")};getPaymentDate=()=>{const e=n.form.checkoutResponse;if(!e)return"";if("date"in e){return e.date}return""};componentWillLoad(){this.breakpoint=b(window.innerWidth);if(this.showRedirectMessage){this.successDisplayTimeout=window.setTimeout((()=>{this.showRedirectMessage=true;this.loadLottieAnimation()}),1500);setTimeout((()=>{this.stopLoaderAnimation()}),this.timeToRedirect)}}componentDidLoad(){window.addEventListener("resize",this.handleResize);if(!this.showRedirectMessage){this.loadLottieAnimation()}}disconnectedCallback(){if(this.successDisplayTimeout){clearTimeout(this.successDisplayTimeout)}window.removeEventListener("resize",this.handleResize);this.stopLoaderAnimation()}handleResize=()=>{this.breakpoint=b(window.innerWidth)};loadLottieAnimation=async()=>{try{const e=await import("./p-GK75wIKe.js").then((function(e){return e.l}));const a=await fetch(r(`./assets/loader-redirect1.json`));const t=await a.json();if(this.lottieContainer){this.lottieAnimation=e.default.loadAnimation({container:this.lottieContainer,renderer:"svg",loop:true,autoplay:true,animationData:t})}else{this.startLoaderAnimation()}}catch(e){this.startLoaderAnimation()}};startLoaderAnimation=()=>{const e=3e3;const a=50;const r=a/e*100;this.progressInterval=window.setInterval((()=>{this.loaderProgress=Math.min(this.loaderProgress+r,100);if(this.loaderProgress>=100){this.stopLoaderAnimation()}}),a)};stopLoaderAnimation=()=>{if(this.progressInterval){clearInterval(this.progressInterval);this.progressInterval=undefined}if(this.lottieAnimation){this.lottieAnimation.destroy();this.lottieAnimation=undefined}};handleDownloadReceipt=async()=>{try{await h.generateAndDownloadReceipt({paymentMethod:this.typePaymentMethod===i.CARD?this.textPaymentMethodCard():this.paymentMethodName,...this.typePaymentMethod===i.BANK_TRANSFER&&{bank:this.bank},...this.typePaymentMethod===i.CARD&&{cardBrand:this.applyStartCaseToBrand(n.data.cardInformation?.brand||"")},...this.typePaymentMethod===i.CARD&&{cardLastFour:this.cardLastFour??n.data.cardInformation?.lastFour},paymentDate:y(this.getPaymentDate())||"",email:n.data.subscription.customerEmail||"",referenceNumber:this.referenceNumber,productTitle:n.data.subscription.name[0]?.text||"Subscription",subtotal:this.getFormattedSubtotal(),total:this.getFormattedTotal(),currency:n.data.price.currency||" ",discountAmount:this.getFormattedDiscountAmount(),trialPeriodDays:this.trialPeriodDays,debitDay:this.debitDay,planAmount:this.getFormattedSubtotal(this.planAmount),isBankTransfer:this.typePaymentMethod===i.BANK_TRANSFER})}catch(e){console.error("Error downloading receipt:",e)}};getFormattedDiscountAmount=()=>undefined;getFormattedSubtotal=(e=null)=>s(e||n.data.price.amount,n.data.price.currency);getFormattedTotal=()=>{if(this.trialPeriodDays>0){return s(0,n.data.price.currency)}return s(n.data.price.amount,n.data.price.currency)};textPaymentMethodCard=()=>{const e=n.data?.cardInformation?.brand;const a=this.cardLastFour||n.data?.cardInformation?.lastFour;const r=this.applyStartCaseToBrand(e||"");return e&&a?`${r} - ${a}`:r};render(){return t("rebill-checkout-single-column",{key:"22e8c13beb16726da16fbeb3907f92b757f1c74f"},t("div",{key:"3089079b61f93ed76d24546c5eb122d070a6e079",class:"renewal-success-page__success-content"},t("rebill-typography",{key:"2aa31ccaa4654376d00a854bab7401a27b116499",variant:"h3",color:f.PRIMARY_DARK_TEXT},o.translate("processing.successTitle")),t("div",{key:"ba0114812a2a8e9a225b4d49181221ee21bde1a1",class:"renewal-success-page__success-icon"},t("svg",{key:"5d54434aa653512d5e5742c2faa2b5680f873a89",width:p(this.breakpoint,d.DESKTOP)?"64":"96",height:p(this.breakpoint,d.DESKTOP)?"64":"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"f964af5a32cc2cfcc5e823ffbc2aeed35eab05ef","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.99219 47.998C7.99219 25.9067 25.9008 7.99805 47.9922 7.99805C70.0836 7.99805 87.9922 25.9067 87.9922 47.998C87.9922 70.0894 70.0836 87.998 47.9922 87.998C25.9008 87.998 7.99219 70.0894 7.99219 47.998ZM61.5401 39.2645C62.2396 38.4096 62.1136 37.1496 61.2587 36.4501C60.4038 35.7507 59.1437 35.8767 58.4443 36.7316L41.8437 57.0211L35.4064 50.5838C34.6254 49.8028 33.359 49.8028 32.578 50.5838C31.7969 51.3649 31.7969 52.6312 32.578 53.4123L40.578 61.4123C40.9775 61.8118 41.5275 62.0237 42.0918 61.9956C42.6562 61.9674 43.1823 61.7019 43.5401 61.2645L61.5401 39.2645Z",fill:"#35B093"}))),t("div",{key:"615734f5d5e0695b94a526586f9f9a35cadaec15",class:"renewal-success-page__info-card"},t("div",{key:"333ac43ba36202067e52585df703449c93e76e0e",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"7e81a6e8e7184f0107d05da1e83020146f38185c",variant:"body2",color:f.SECONDARY},o.translate("processing.paymentMethod")),t("div",{key:"a6099aaeb4db666dc23b55cf31464ca9b6f4e741",class:"renewal-success-page__card-value"},t("div",{key:"cc8cadace90e91eac3b711416a16eeb0c82b4bf4",class:"renewal-success-page__payment-method-display"},this.typePaymentMethod===i.CARD&&t(t.Fragment,null,t("rebill-card-icon",{key:"3f3b5421084b360bab9d42192bfe61fe611a09e9","card-brand":n.data?.cardInformation?.brand||""}),t("rebill-typography",{key:"ed46bf21b98151265ced84fdb9a6c77f8bd54e78",variant:"body2",color:f.PRIMARY_DARK_TEXT},this.textPaymentMethodCard())),this.typePaymentMethod===i.BANK_TRANSFER&&t("div",{key:"b800e3eb1ca8c4f01f0adeb0b3f8d7b243b2ef6e",style:{display:"flex",alignItems:"center",gap:"8px"}},t("rebill-icon",{key:"61728b15ed20c48388cdf5f4605282321dadcea4",name:g(i.BANK_TRANSFER,this.country).toLowerCase()}),t("rebill-typography",{key:"880b4494f608ad95a13b7af1153f07ceb11a4cb2",variant:"body2",color:f.PRIMARY_DARK_TEXT},o.translate("paymentMethods.bank_transfer")))))),t("div",{key:"0ce54346a35c5e60e309ca682cdce6a4261748ff",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"74c5e16bc547240cb58148c6a265058d79c99cec",variant:"body2",color:f.SECONDARY},o.translate("processing.paymentDate")),t("rebill-typography",{key:"6759bdf9aa21772e58f54b4e02f9293f078302fa",variant:"body2",color:f.PRIMARY_DARK_TEXT},y(this.paymentDate||this.getPaymentDate())||"")),t("div",{key:"756ef978e932ee0b39d17ed92fad8cc49d0f2f3a",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"b905f100b2b4da1337421478a128e22125e52319",variant:"body2",color:f.SECONDARY},o.translate("processing.paymentEmail")),t("rebill-typography",{key:"023c308d8ef2ae710c7008e56af6d966536eb5e4",variant:"body2",color:f.PRIMARY_DARK_TEXT},n.data.subscription.customerEmail)),t("div",{key:"9f7d1adb8d5d4379adb0980ff2fe7733cc0b82c2",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"6f1f62401ad73ceecfffc42257cfb89e4de0e2b9",variant:"body2",color:f.SECONDARY},o.translate("processing.paymentReference")),t("rebill-typography",{key:"784d10962c5bd537a55bf68a85c48ad885e6f6a2",variant:"body2",color:f.PRIMARY_DARK_TEXT,class:"renewal-success-page__reference-number"},this.referenceNumber||""))),t("div",{key:"a4eaf4ca38eac98c9257ed45a238b4b2489d86b8",class:"renewal-success-page__info-card"},t("rebill-typography",{key:"cb36cd30ff78a4110deb108b66ba9e3aa1a227c7",variant:"subtitle-bold",color:f.PRIMARY_DARK_TEXT},o.translate("processing.purchaseDetails")),t("div",{key:"6539086311dd95fc61f9bfc6619b908ef1f191b8",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"ac002409e20935f57873dd860e762f3874c2b382",variant:"body2",color:f.SECONDARY},o.translate("processing.purchaseDetail")),t("rebill-typography",{key:"8184b75d4c6920327af717abe913c3c5103ac5da",variant:"body2",color:f.PRIMARY_DARK_TEXT},n.data.subscription.name[0]?.text||"Subscription")),t("div",{key:"597c5f764d0ed5a43d6a545518f005139dd6b46d",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"7d737c4043f8359acab1c7e3d9f8ed66ba412fdd",variant:"body2",color:f.SECONDARY},o.translate("processing.purchaseSubtotal")),t("rebill-typography",{key:"3babadb3bb63c8ad00897125b28b4018d5409149",variant:"body2",color:f.PRIMARY_DARK_TEXT},this.getFormattedSubtotal())),t("div",{key:"8f1c1b92d98825ea2e8f4778b519f6da1f6b81d8",class:"renewal-success-page__card-row"},t("rebill-typography",{key:"f545c4ebdabb374ecb602c8156522bff5d0453e7",variant:"body2",color:f.SECONDARY},o.translate("processing.purchaseMontoTotal")),t("div",{key:"86030e48acae8ba185ea919382f028f4abe13ca6",class:"renewal-success-page__total-amount-container"},t("rebill-typography",{key:"204882807d213e41837c472dda0910240bf7897e",variant:"body2",color:f.PRIMARY_DARK_TEXT},this.getFormattedTotal()))),t("div",{key:"55d01018b5c33c3d350b37c66ba6790706c6957e",class:"renewal-success-page__card-divider"}),t("div",{key:"514c022d98b47781c27816ce02caa287c55a16da",class:"renewal-success-page__download-container"},t("svg",{key:"abdacdcb5e98d843d8e88464e2bf88d5b232e52e",class:"download-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"881cdd290a2b2f57cd939b2006d80bcafce7ea9b",d:"M13.498 9.83333V12.1667C13.498 12.903 12.9011 13.5 12.1647 13.5H3.83138C3.095 13.5 2.49805 12.903 2.49805 12.1667V9.83333M7.99804 10V2.5M7.99804 10L5.66471 7.66667M7.99804 10L10.3314 7.66667",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})),t("rebill-button",{key:"a34543047b0f77a8f088ac972b1c5a0dbea44e4a",type:"button",variant:"download",size:"small",onClick:this.handleDownloadReceipt},t("rebill-typography",{key:"293bcd4e24c8f25cfdfc44e2c85b35485a8bb30b",variant:"overline",color:f.PRIMARY_DARK_TEXT},o.translate("processing.download")))),t("div",{key:"5178d135e2c92e1af5c077ed507dd8ebe3885665",class:"renewal-success-page__contact-info"},t("rebill-typography",{key:"528e2fbd77b5e48c617c7a8845718c3b6bd52f06",variant:"information-text",color:f.SECONDARY},o.translate("processing.downloadDescription"))))))}};w.style=u;const x=".wrapper{margin:0 auto;display:flex;flex-direction:column;align-items:center}.header{display:flex;flex-direction:column;align-items:center;gap:8px}.title{font-size:1rem;font-weight:500;color:var(--rebill-color-primary-dark-text);text-align:center}.amount{font-size:2.25rem;font-weight:500;color:var(--rebill-color-primary-dark-text);margin:0 0 1.5rem 0;text-align:center;line-height:1.1}.per{font-size:1.1rem;font-weight:400;color:var(--rebill-color-text-secondary)}.label-muted{font-size:1rem;color:var(--rebill-color-primary-dark);margin:0 0 1.5rem 0;text-align:center}.info{width:100%;margin-top:1.5rem;margin-bottom:3rem;display:flex;flex-direction:column;gap:1.4rem}.row{display:flex;justify-content:space-between;align-items:center;font-size:1rem;line-height:1.4;width:100%}.left{color:var(--rebill-color-text-secondary);font-weight:400}.right{color:var(--rebill-color-primary-dark-text);font-weight:400;text-align:right}.divider{border:none;border-top:1px solid var(--rebill-color-border);margin:1rem 0}@media (max-width: 1024px){.amount{margin-bottom:0}.row{font-size:0.9rem}.row:not(:last-child){margin-bottom:0.5rem}.left{color:var(--rebill-color-primary-dark-text)}}.total-row{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:1.1rem;font-weight:600}.total-row .left{color:var(--rebill-color-primary-dark-text)}";const k=class{constructor(a){e(this,a)}forceUpdate=0;displayedComponents=["header","details","summary"];componentWillLoad(){l.on("languageChanged",this.handleLanguageChange)}disconnectedCallback(){l.off("languageChanged",this.handleLanguageChange)}handleLanguageChange=()=>{this.forceUpdate=this.forceUpdate+1};totalAmount;subscriptionTitle;subscriptionAmount;nextChargeDate;frequency;currency;getFrequencyText(){if(!this.frequency||!this.frequency.period)return"";const e=this.frequency.period.toLowerCase();const a=this.frequency.count;const r=`summary.${e}`;return o.translate(r,{count:a})}renderHeader=()=>t("div",{class:"header"},t("p",{class:"title"},o.translate("renewal.title")),t("p",{class:"amount"},s(this.totalAmount,this.currency)," ",t("span",{class:"per"},"/ ",this.getFrequencyText().toLowerCase())));renderInfoRow=(e,a)=>t("div",{class:"row"},t("div",{class:"left"},e),t("div",{class:"right"},a));renderProduct=()=>this.renderInfoRow(this.subscriptionTitle,s(this.subscriptionAmount,this.currency));renderNextRenewal=()=>this.renderInfoRow(o.translate("renewal.nextRenewal"),m(this.nextChargeDate,undefined,c.currentLocale));renderSubtotal=()=>this.renderInfoRow(o.translate("renewal.subtotal"),s(this.totalAmount,this.currency));renderTotal=()=>t("div",{class:"total-row"},t("div",{class:"left"},o.translate("renewal.totalToRenew")),t("div",{class:"right"},s(this.totalAmount,this.currency)));renderDesktop=()=>t("div",{class:"wrapper"},this.renderHeader(),t("div",{class:"info"},t("div",{class:"row"},t("div",{class:""},o.translate("renewal.subscriptionDetails"))),this.renderProduct(),this.renderNextRenewal(),this.renderSubtotal()),this.renderTotal());render(){if(this.displayedComponents.includes("header")&&this.displayedComponents.includes("details")&&this.displayedComponents.includes("summary")){return this.renderDesktop()}if(this.displayedComponents.includes("header")){return this.renderHeader()}if(this.displayedComponents.includes("details")){return t("collapsible-card",{header:o.translate("summary.details")},this.renderProduct(),this.renderNextRenewal())}if(this.displayedComponents.includes("summary")){return t("collapsible-card",{header:o.translate("summary.summary")},this.renderInfoRow(this.subscriptionTitle,"1 x "+s(this.subscriptionAmount,this.currency)),this.renderSubtotal(),t("rebill-divider",null),this.renderInfoRow(o.translate("renewal.totalToRenew"),s(this.totalAmount,this.currency)))}}};k.style=x;export{w as renewal_success_page,k as renewal_summary};
|
|
2
|
+
//# sourceMappingURL=p-ce0793c8.entry.js.map
|