rebill-web-components-sdk 1.10.8 → 1.10.9
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/index-C-VTnc0I.js.map +1 -1
- package/dist/cjs/otp-component.rebill-modal-overlay.rebill-summary.success-page.user-information.entry.cjs.js.map +1 -1
- package/dist/cjs/otp-component_5.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/summary/summary.js +1 -1
- package/dist/collection/components/checkout/summary/summary.js.map +1 -1
- package/dist/components/p-8BpuJ_V5.js.map +1 -1
- package/dist/components/{p-C-lFHh1a.js → p-D2jPfw5q.js} +3 -3
- package/dist/components/p-D2jPfw5q.js.map +1 -0
- package/dist/components/rebill-checkout.js +1 -1
- package/dist/components/rebill-summary.js +1 -1
- package/dist/esm/index-BTZ7D7jU.js.map +1 -1
- package/dist/esm/otp-component.rebill-modal-overlay.rebill-summary.success-page.user-information.entry.js.map +1 -1
- package/dist/esm/otp-component_5.entry.js +1 -1
- package/dist/rebill-web-components-sdk/otp-component.rebill-modal-overlay.rebill-summary.success-page.user-information.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/p-45ca99fd.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-45ca99fd.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/p-BTZ7D7jU.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-C-lFHh1a.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-65f08a9d.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-65f08a9d.entry.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-BTZ7D7jU.js";export{s as setNonce}from"./p-BTZ7D7jU.js";import{g as r}from"./p-DQuL1Twl.js";var a=()=>{const t=import.meta.url;const r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return e(r)};a().then((async e=>{await r();return t(JSON.parse('[["p-6b0a5909",[[256,"rebill-checkout",{"productId":[1,"product-id"],"planId":[1,"plan-id"],"publicKey":[1,"public-key"],"instantProduct":[1,"instant-product"],"instantPlan":[1,"instant-plan"],"display":[1],"customerInformation":[1,"customer-information"],"oneClickCheckout":[4,"one-click-checkout"],"css":[1],"language":[1],"checkoutLandingSession":[1,"checkout-landing-session"],"externalPayment":[1,"external-payment"],"rejectedPaymentCard":[32],"rejectedPaymentAPM":[32],"countries":[32],"currentPaymentMethod":[32],"checkoutResponse":[32],"isSubmitting":[32],"isCardSubmitting":[32],"isCardSuccess":[32],"isAPMSubmitting":[32],"isAPMSuccess":[32],"storedCheckoutResults":[32],"alertErrorKeys":[32],"currentApmPaymentMethod":[32],"breakpoint":[32],"showRefreshModal":[32],"cardError":[32],"initialData":[32],"allRequiredFields":[32],"currentRequiredFields":[32],"customerExists":[32],"showOtp":[32],"otpVerified":[32],"responseCheckoutCard":[32],"cardMode":[32],"submit":[64]},[[0,"paymentMethodSelected","handlePaymentMethodSelected"],[0,"input","handleInputChange"],[0,"onRebillAccountClick","handleRebillAccountClick"],[0,"returnForm","handleReturnForm"],[0,"signOut","handleSignOut"],[0,"codeVerified","handleCodeVerified"]],{"language":["handleLanguageChange"]}]]],["p-486b0d1e",[[256,"rebill-renewal",{"renewalData":[1,"renewal-data"],"renewalToken":[1,"renewal-token"],"currentPaymentMethod":[32],"isSubmitting":[32],"isCardSubmitting":[32],"isCardSuccess":[32],"errorMessage":[32],"breakpoint":[32],"errorPaymentCard":[32],"errorPaymentAPM":[32],"initialData":[32],"checkoutResponse":[32],"currentApmPaymentMethod":[32],"countries":[32],"allRequiredFields":[32],"currentRequiredFields":[32],"errorCardInvalid":[32],"cardMode":[32]},[[0,"paymentMethodSelected","handlePaymentMethodSelected"],[0,"bankSelected","handleBankSelected"],[0,"cardSelected","handleCardSelected"]]]]],["p-4b84f6de",[[256,"rebill-change-card",{"changeCardData":[1,"change-card-data"],"changeCardToken":[1,"change-card-token"],"isSubmitting":[32],"isCardSubmitting":[32],"isCardSuccess":[32],"errorMessage":[32],"breakpoint":[32],"errorPaymentCard":[32],"initialData":[32],"countries":[32],"allRequiredFields":[32],"currentRequiredFields":[32],"errorCardInvalid":[32],"cardMode":[32],"completedAt":[32]}]]],["p-c8363c82",[[256,"root-component",{"isLoading":[32],"currentLang":[32],"formData":[32]}]]],["p-1f253272",[[256,"rebill-card-carousel",{"interval":[2],"size":[1],"color":[1],"showAllCards":[4,"show-all-cards"],"currentIndex":[32]}]]],["p-2c464942",[[260,"rebill-flex-container",{"direction":[1],"wrap":[1],"gap":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"]}]]],["p-07ef4ea3",[[260,"rebill-grid-container",{"columns":[2],"gap":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"]}]]],["p-04a82392",[[256,"renewal-success-page",{"typePaymentMethod":[1,"type-payment-method"],"country":[1],"bank":[1],"paymentMethodName":[1,"payment-method-name"],"cardLastFour":[1,"card-last-four"],"paymentDate":[1,"payment-date"],"referenceNumber":[1,"reference-number"],"trialPeriodDays":[2,"trial-period-days"],"debitDay":[2,"debit-day"],"planAmount":[2,"plan-amount"],"timeToRedirect":[2,"time-to-redirect"],"currentLocale":[32],"breakpoint":[32],"loaderProgress":[32],"isLoadingLottie":[32],"showRedirectMessage":[32]}]]],["p-dfe3e812",[[256,"change-card-success",{"customerName":[1,"customer-name"],"cardLastFour":[1,"card-last-four"],"cardBrand":[1,"card-brand"],"paymentDate":[1,"payment-date"],"customerEmail":[1,"customer-email"],"currentLocale":[32]}]]],["p-42a9b7b3",[[256,"discount-coupon",{"hideLabel":[4,"hide-label"],"displayMode":[1,"display-mode"],"readonlyCouponCode":[1,"readonly-coupon-code"],"readonlyDiscountAmount":[2,"readonly-discount-amount"],"readonlyCurrency":[1,"readonly-currency"],"couponCode":[32],"actionStatus":[32],"isLoading":[32],"isError":[32],"currentLocale":[32]}],[256,"rebill-divider"],[260,"collapsible-card",{"header":[1],"open":[4],"variant":[1],"isOpen":[32]}]]],["p-4b80423b",[[256,"renewal-summary",{"displayedComponents":[16],"totalAmount":[2,"total-amount"],"subTotalAmount":[2,"sub-total-amount"],"subscriptionTitle":[1,"subscription-title"],"subscriptionAmount":[2,"subscription-amount"],"nextChargeDate":[1,"next-charge-date"],"frequency":[16],"currency":[1],"couponCode":[1,"coupon-code"],"discountAmount":[2,"discount-amount"],"discountPercentage":[2,"discount-percentage"],"titleKey":[1,"title-key"],"forceUpdate":[32]}]]],["p-37ce3457",[[256,"input-otp",{"error":[1],"otp":[1],"clearable":[4],"placeholder":[1],"otpValue":[32]}]]],["p-9a506148",[[256,"rebill-card",{"cardTitle":[1,"card-title"],"cardLabels":[16]}]]],["p-728a5b5d",[[260,"rebill-container",{"maxWidth":[1,"max-width"],"padding":[1],"fluid":[4]}],[256,"rebill-input-checkbox",{"label":[1],"checked":[1540],"error":[1],"id":[1],"disabled":[4]},[[4,"change","handleFormChange"]]]]],["p-82c4171e",[[256,"rebill-alert",{"type":[1],"message":[1],"alertTitle":[1,"alert-title"],"icon":[1],"variant":[1],"size":[1],"colorIcon":[1,"color-icon"]}]]],["p-c1e1d244",[[256,"rebill-timeline-debit-day",{"debitDay":[2,"debit-day"],"totalAmount":[2,"total-amount"],"planAmount":[2,"plan-amount"],"currency":[1],"debitStrategy":[1,"debit-strategy"],"language":[1],"discountApplied":[4,"discount-applied"],"discountType":[1,"discount-type"],"discountedPercentage":[2,"discounted-percentage"],"discountDuration":[2,"discount-duration"],"discountAmount":[2,"discount-amount"],"currentLanguage":[32]}],[256,"rebill-timeline-free-trial",{"trialPeriodEndsAt":[1,"trial-period-ends-at"],"trialPeriodEndsReminderAt":[1,"trial-period-ends-reminder-at"],"trialPeriodDays":[2,"trial-period-days"],"subtotal":[2],"currency":[1],"language":[1],"discountApplied":[4,"discount-applied"],"discountType":[1,"discount-type"],"discountedPercentage":[2,"discounted-percentage"],"discountDuration":[2,"discount-duration"],"discountAmount":[2,"discount-amount"],"currentLanguage":[32]}]]],["p-2a4124a0",[[256,"rebill-mode-sandbox",{"isPanelVisible":[32],"isPanelClosing":[32],"isCardsPanelVisible":[32],"isCardsPanelClosing":[32],"currentLanguage":[32]}],[256,"rebill-mode-sandbox-mobile",{"isPanelVisible":[32],"currentLanguage":[32]}]]],["p-4355b35a",[[256,"rebill-vertical-divider",{"height":[1],"color":[1],"thickness":[1],"dashed":[4],"connectorActive":[4,"connector-active"],"withDot":[4,"with-dot"]}]]],["p-e06b1f90",[[260,"rebill-typography",{"variant":[1],"color":[1],"align":[1],"noWrap":[4,"no-wrap"],"gutterBottom":[4,"gutter-bottom"],"paragraph":[4]}],[256,"rebill-icon",{"name":[1],"size":[1],"color":[1],"svgContent":[32]}]]],["p-9a89f57f",[[256,"rebill-input-text",{"label":[1],"placeholder":[1],"value":[1537],"error":[1],"id":[1],"disabled":[4],"leftIcon":[1,"left-icon"],"rightIcon":[1,"right-icon"],"clearable":[4],"variant":[1],"uppercase":[4],"getInputElement":[64]},[[4,"change","handleFormChange"]]]]],["p-38af1dc2",[[256,"rebill-input-select",{"label":[1],"options":[16],"value":[1537],"error":[1],"id":[1],"disabled":[4],"placeholder":[1],"variant":[1],"arrowIcon":[1,"arrow-icon"],"dropPosition":[1,"drop-position"],"fontSize":[1,"font-size"],"backgroundColor":[1,"background-color"],"searchable":[4],"searchPlaceholder":[1,"search-placeholder"],"loading":[4],"isOpen":[32],"componentId":[32],"highlightedIndex":[32],"searchTerm":[32],"filteredOptions":[32],"languageUpdateTrigger":[32]},[[4,"change","handleFormChange"],[4,"closeAllSelects","handleCloseAllSelects"],[4,"click","handleDocumentClick"],[0,"keydown","handleKeyDown"]]]]],["p-ba1b35fb",[[260,"rebill-button",{"type":[1],"disabled":[4],"id":[1],"loading":[4],"showSpinnerWithText":[4,"show-spinner-with-text"],"nonClickable":[4,"non-clickable"],"variant":[1],"theme":[1],"size":[1],"icon":[1],"iconColor":[1,"icon-color"]}]]],["p-a1302fe4",[[256,"rebill-card-icon",{"cardBrand":[1,"card-brand"],"width":[2],"height":[2]}],[260,"rebill-checkout-single-column"],[256,"rebill-footer",{"breakpoint":[32]}],[256,"organization-logo",{"organization":[16]}]]],["p-65f08a9d",[[256,"rebill-summary",{"totalAmount":[8,"total-amount"],"itemTitle":[1,"item-title"],"itemDescription":[1,"item-description"],"itemAmount":[8,"item-amount"],"planFrequency":[1,"plan-frequency"],"planFrequencyCount":[2,"plan-frequency-count"],"subtotal":[8],"discount":[8],"currency":[1],"displayedComponents":[16],"allowCoupon":[4,"allow-coupon"],"currentBreakpoint":[1,"current-breakpoint"],"discountType":[1,"discount-type"],"discountedPercentage":[2,"discounted-percentage"],"discountDuration":[2,"discount-duration"],"discountAmount":[2,"discount-amount"],"discountApplied":[32]},[[0,"discountApplied","handleDiscountApplied"]]],[256,"success-page",{"typePaymentMethod":[1,"type-payment-method"],"country":[1],"bank":[1],"paymentMethodName":[1,"payment-method-name"],"cardLastFour":[1,"card-last-four"],"paymentDate":[1,"payment-date"],"referenceNumber":[1,"reference-number"],"trialPeriodDays":[2,"trial-period-days"],"debitDay":[2,"debit-day"],"planAmount":[2,"plan-amount"],"timeToRedirect":[2,"time-to-redirect"],"currentLocale":[32],"breakpoint":[32],"loaderProgress":[32],"isLoadingLottie":[32],"showRedirectMessage":[32]}],[256,"otp-component",{"timeLeft":[32],"isTimerRunning":[32],"codeResent":[32],"isVerifying":[32],"otpValue":[32],"error":[32]}],[256,"user-information",{"userInformation":[16],"errors":[16],"customerExists":[4,"customer-exists"],"disabled":[4]},[[0,"input","handleInputChange"],[0,"blur","handleBlur"]]],[256,"rebill-modal-overlay",{"visible":[32],"languageUpdateTrigger":[32]}]]],["p-1c000e38",[[260,"rebill-autofill-detector",{"targetSelector":[1,"target-selector"],"disabled":[4],"browserAutocompleteDetected":[32],"disabledDetector":[32]}]]],["p-e6df1fe2",[[260,"rebill-form",{"validationSchema":[8,"validation-schema"],"initialData":[16],"renderForm":[16],"formData":[32],"errors":[32],"submitForm":[64],"resetValidation":[64],"clearError":[64]},[[0,"input","handleInputChange"],[0,"blur","handleBlur"]],{"initialData":["handleInitialDataChange"],"validationSchema":["handleValidationSchemaChange"]}]]],["p-be2e3121",[[256,"card-fields-wrapper",{"installmentsError":[1,"installments-error"],"documentTypeError":[1,"document-type-error"],"documentNumberError":[1,"document-number-error"],"showDocument":[4,"show-document"],"customCSS":[1,"custom-c-s-s"]}],[256,"rebill-address-form",{"addressType":[1,"address-type"],"countryOptions":[16],"stateOptions":[16],"errors":[16],"disabled":[4],"showAdditionalInformation":[32]}],[256,"rebill-address-search",{"addressType":[1,"address-type"],"placeholder":[1],"error":[1],"disabled":[4],"isInitialized":[32],"currentLocale":[32]}],[256,"single-payment-method",{"paymentMethod":[1,"payment-method"],"currencyCountry":[1,"currency-country"],"paymentMethodDetails":[16],"icons":[16]}],[256,"rebill-input-phone",{"placeholder":[1],"value":[1537],"error":[1],"phoneNumberId":[1,"phone-number-id"],"countryCodeId":[1,"country-code-id"],"validationErrorId":[1,"validation-error-id"],"disabled":[4],"initialCountry":[1,"initial-country"],"required":[4],"searchable":[4],"searchPlaceholder":[1,"search-placeholder"],"selectedCountry":[32],"isDropdownOpen":[32],"validationError":[32],"searchTerm":[32],"filteredCountries":[32],"componentId":[32],"languageUpdateTrigger":[32]},[[4,"change","handleFormChange"],[4,"closeAllSelects","handleCloseAllSelects"],[4,"click","handleDocumentClick"]]],[260,"selectable-card",{"selected":[4],"label":[1],"cardKey":[1,"card-key"],"disabled":[4]}],[256,"rebill-installments",{"error":[1],"currentValue":[32],"isDisabled":[32],"value":[32],"placeholder":[32]}],[256,"card-identification",{"documentTypeError":[1,"document-type-error"],"documentNumberError":[1,"document-number-error"],"disabled":[4],"documentTypes":[32],"country":[32],"currentLanguage":[32]}],[256,"card-iframe",{"customCSS":[1,"custom-c-s-s"],"iframeLoaded":[32],"currentLang":[32],"initialLang":[32],"iframeHeight":[32]}],[256,"rebill-input-combo",{"label":[1],"options":[16],"selectValue":[1537,"select-value"],"inputValue":[1537,"input-value"],"inputPlaceholder":[1,"input-placeholder"],"selectPlaceholder":[1,"select-placeholder"],"error":[1],"selectId":[1,"select-id"],"inputId":[1,"input-id"],"disabled":[4],"selectWidth":[1,"select-width"],"isOpen":[32],"highlightedIndex":[32],"componentId":[32]},[[4,"change","handleFormChange"],[4,"closeAllSelects","handleCloseAllSelects"],[4,"click","handleDocumentClick"]]],[256,"card-skeleton"]]],["p-e460ed3c",[[256,"apm-checkout",{"paymentMethod":[1,"payment-method"],"referenceId":[1,"reference-id"],"qrCodeData":[1,"qr-code-data"],"code":[1],"providerName":[1,"provider-name"],"expirationDate":[1,"expiration-date"],"country":[1],"redirectUrl":[1,"redirect-url"],"timeToRedirect":[2,"time-to-redirect"],"checkoutRequestId":[1,"checkout-request-id"],"bearerToken":[1,"bearer-token"],"bankTransferData":[8,"bank-transfer-data"],"barcode":[1],"showRedirectMessage":[32],"isPolling":[32],"minutesLeft":[32],"qrStartTime":[32],"downloadData":[32]}],[256,"rebill-bank-selector",{"banks":[16],"defaultSelectedBankId":[1,"default-selected-bank-id"],"error":[1],"disabled":[4],"selectedBankId":[32],"languageUpdateTrigger":[32]}],[256,"payment-method-selector",{"enabledPaymentMethods":[16],"defaultSelected":[1,"default-selected"],"showErrorComponent":[4,"show-error-component"],"cardError":[16],"country":[1],"installmentsError":[1,"installments-error"],"documentTypeError":[1,"document-type-error"],"showDocument":[4,"show-document"],"documentNumberError":[1,"document-number-error"],"customCSS":[1,"custom-c-s-s"],"errorComponent":[16],"disabled":[4],"icon":[32],"selectedPaymentMethod":[32],"saveCard":[32]},[[0,"selectableCardClick","handleSelectableCardClick"]]],[256,"rebill-address",{"billingView":[1537,"billing-view"],"disabled":[4],"countryOptions":[16],"errors":[16],"currentBillingStateOptions":[32],"isLoadingAddress":[32]}],[256,"rebill-processing-payment",{"titleKey":[1,"title-key"],"subtitleKey":[1,"subtitle-key"],"currentLocale":[32],"breakpoint":[32],"loaderProgress":[32],"isLoadingLottie":[32]}],[256,"bank-transfer",{"bankTransferData":[8,"bank-transfer-data"]}],[256,"qr-code",{"qrCodeData":[1,"qr-code-data"],"providerName":[1,"provider-name"],"expirationDate":[1,"expiration-date"],"paymentMethod":[1,"payment-method"],"code":[1],"qrCodeSvg":[32],"isImage":[32],"timeLeft":[32],"formattedTime":[32],"hasCopied":[32]}],[256,"user-information-static",{"userInfo":[16],"variant":[1]}],[256,"apm-download",{"data":[16]}],[256,"payment-button",{"isDisabled":[4,"is-disabled"],"isLoading":[4,"is-loading"],"paymentMethod":[1,"payment-method"],"isRenewal":[4,"is-renewal"],"isChangeCard":[4,"is-change-card"],"trialPeriodDays":[2,"trial-period-days"],"redirectUrl":[4,"redirect-url"],"timeToRedirect":[2,"time-to-redirect"],"country":[1],"currentLanguage":[32],"countdownSeconds":[32],"paymentMethodDisplayName":[32]},null,{"redirectUrl":["onRedirectPropsChange"],"timeToRedirect":["onRedirectPropsChange"]}],[256,"user-information-phone",{"error":[1],"countryCode":[1,"country-code"],"disabled":[4],"languageUpdateTrigger":[32]}],[256,"boleto-payment",{"barcode":[1],"referenceId":[1,"reference-id"],"providerName":[1,"provider-name"],"expirationDate":[1,"expiration-date"],"instructions":[16],"showInstructions":[32],"hasCopied":[32]}],[256,"rebill-checkout-form",{"validationSchema":[8,"validation-schema"],"initialData":[16],"renderForm":[16],"resetValidation":[64]},[[0,"change","handleFormChange"]]],[256,"reference-code",{"referenceId":[1,"reference-id"],"providerName":[1,"provider-name"],"expirationDate":[1,"expiration-date"],"instructions":[16],"showInstructions":[32]}]]]]'),e)}));
|
|
1
|
+
import{p as e,b as t}from"./p-BTZ7D7jU.js";export{s as setNonce}from"./p-BTZ7D7jU.js";import{g as r}from"./p-DQuL1Twl.js";var a=()=>{const t=import.meta.url;const r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return e(r)};a().then((async e=>{await r();return t(JSON.parse('[["p-6b0a5909",[[256,"rebill-checkout",{"productId":[1,"product-id"],"planId":[1,"plan-id"],"publicKey":[1,"public-key"],"instantProduct":[1,"instant-product"],"instantPlan":[1,"instant-plan"],"display":[1],"customerInformation":[1,"customer-information"],"oneClickCheckout":[4,"one-click-checkout"],"css":[1],"language":[1],"checkoutLandingSession":[1,"checkout-landing-session"],"externalPayment":[1,"external-payment"],"rejectedPaymentCard":[32],"rejectedPaymentAPM":[32],"countries":[32],"currentPaymentMethod":[32],"checkoutResponse":[32],"isSubmitting":[32],"isCardSubmitting":[32],"isCardSuccess":[32],"isAPMSubmitting":[32],"isAPMSuccess":[32],"storedCheckoutResults":[32],"alertErrorKeys":[32],"currentApmPaymentMethod":[32],"breakpoint":[32],"showRefreshModal":[32],"cardError":[32],"initialData":[32],"allRequiredFields":[32],"currentRequiredFields":[32],"customerExists":[32],"showOtp":[32],"otpVerified":[32],"responseCheckoutCard":[32],"cardMode":[32],"submit":[64]},[[0,"paymentMethodSelected","handlePaymentMethodSelected"],[0,"input","handleInputChange"],[0,"onRebillAccountClick","handleRebillAccountClick"],[0,"returnForm","handleReturnForm"],[0,"signOut","handleSignOut"],[0,"codeVerified","handleCodeVerified"]],{"language":["handleLanguageChange"]}]]],["p-486b0d1e",[[256,"rebill-renewal",{"renewalData":[1,"renewal-data"],"renewalToken":[1,"renewal-token"],"currentPaymentMethod":[32],"isSubmitting":[32],"isCardSubmitting":[32],"isCardSuccess":[32],"errorMessage":[32],"breakpoint":[32],"errorPaymentCard":[32],"errorPaymentAPM":[32],"initialData":[32],"checkoutResponse":[32],"currentApmPaymentMethod":[32],"countries":[32],"allRequiredFields":[32],"currentRequiredFields":[32],"errorCardInvalid":[32],"cardMode":[32]},[[0,"paymentMethodSelected","handlePaymentMethodSelected"],[0,"bankSelected","handleBankSelected"],[0,"cardSelected","handleCardSelected"]]]]],["p-4b84f6de",[[256,"rebill-change-card",{"changeCardData":[1,"change-card-data"],"changeCardToken":[1,"change-card-token"],"isSubmitting":[32],"isCardSubmitting":[32],"isCardSuccess":[32],"errorMessage":[32],"breakpoint":[32],"errorPaymentCard":[32],"initialData":[32],"countries":[32],"allRequiredFields":[32],"currentRequiredFields":[32],"errorCardInvalid":[32],"cardMode":[32],"completedAt":[32]}]]],["p-c8363c82",[[256,"root-component",{"isLoading":[32],"currentLang":[32],"formData":[32]}]]],["p-1f253272",[[256,"rebill-card-carousel",{"interval":[2],"size":[1],"color":[1],"showAllCards":[4,"show-all-cards"],"currentIndex":[32]}]]],["p-2c464942",[[260,"rebill-flex-container",{"direction":[1],"wrap":[1],"gap":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"]}]]],["p-07ef4ea3",[[260,"rebill-grid-container",{"columns":[2],"gap":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"]}]]],["p-04a82392",[[256,"renewal-success-page",{"typePaymentMethod":[1,"type-payment-method"],"country":[1],"bank":[1],"paymentMethodName":[1,"payment-method-name"],"cardLastFour":[1,"card-last-four"],"paymentDate":[1,"payment-date"],"referenceNumber":[1,"reference-number"],"trialPeriodDays":[2,"trial-period-days"],"debitDay":[2,"debit-day"],"planAmount":[2,"plan-amount"],"timeToRedirect":[2,"time-to-redirect"],"currentLocale":[32],"breakpoint":[32],"loaderProgress":[32],"isLoadingLottie":[32],"showRedirectMessage":[32]}]]],["p-dfe3e812",[[256,"change-card-success",{"customerName":[1,"customer-name"],"cardLastFour":[1,"card-last-four"],"cardBrand":[1,"card-brand"],"paymentDate":[1,"payment-date"],"customerEmail":[1,"customer-email"],"currentLocale":[32]}]]],["p-42a9b7b3",[[256,"discount-coupon",{"hideLabel":[4,"hide-label"],"displayMode":[1,"display-mode"],"readonlyCouponCode":[1,"readonly-coupon-code"],"readonlyDiscountAmount":[2,"readonly-discount-amount"],"readonlyCurrency":[1,"readonly-currency"],"couponCode":[32],"actionStatus":[32],"isLoading":[32],"isError":[32],"currentLocale":[32]}],[256,"rebill-divider"],[260,"collapsible-card",{"header":[1],"open":[4],"variant":[1],"isOpen":[32]}]]],["p-4b80423b",[[256,"renewal-summary",{"displayedComponents":[16],"totalAmount":[2,"total-amount"],"subTotalAmount":[2,"sub-total-amount"],"subscriptionTitle":[1,"subscription-title"],"subscriptionAmount":[2,"subscription-amount"],"nextChargeDate":[1,"next-charge-date"],"frequency":[16],"currency":[1],"couponCode":[1,"coupon-code"],"discountAmount":[2,"discount-amount"],"discountPercentage":[2,"discount-percentage"],"titleKey":[1,"title-key"],"forceUpdate":[32]}]]],["p-37ce3457",[[256,"input-otp",{"error":[1],"otp":[1],"clearable":[4],"placeholder":[1],"otpValue":[32]}]]],["p-9a506148",[[256,"rebill-card",{"cardTitle":[1,"card-title"],"cardLabels":[16]}]]],["p-728a5b5d",[[260,"rebill-container",{"maxWidth":[1,"max-width"],"padding":[1],"fluid":[4]}],[256,"rebill-input-checkbox",{"label":[1],"checked":[1540],"error":[1],"id":[1],"disabled":[4]},[[4,"change","handleFormChange"]]]]],["p-82c4171e",[[256,"rebill-alert",{"type":[1],"message":[1],"alertTitle":[1,"alert-title"],"icon":[1],"variant":[1],"size":[1],"colorIcon":[1,"color-icon"]}]]],["p-c1e1d244",[[256,"rebill-timeline-debit-day",{"debitDay":[2,"debit-day"],"totalAmount":[2,"total-amount"],"planAmount":[2,"plan-amount"],"currency":[1],"debitStrategy":[1,"debit-strategy"],"language":[1],"discountApplied":[4,"discount-applied"],"discountType":[1,"discount-type"],"discountedPercentage":[2,"discounted-percentage"],"discountDuration":[2,"discount-duration"],"discountAmount":[2,"discount-amount"],"currentLanguage":[32]}],[256,"rebill-timeline-free-trial",{"trialPeriodEndsAt":[1,"trial-period-ends-at"],"trialPeriodEndsReminderAt":[1,"trial-period-ends-reminder-at"],"trialPeriodDays":[2,"trial-period-days"],"subtotal":[2],"currency":[1],"language":[1],"discountApplied":[4,"discount-applied"],"discountType":[1,"discount-type"],"discountedPercentage":[2,"discounted-percentage"],"discountDuration":[2,"discount-duration"],"discountAmount":[2,"discount-amount"],"currentLanguage":[32]}]]],["p-2a4124a0",[[256,"rebill-mode-sandbox",{"isPanelVisible":[32],"isPanelClosing":[32],"isCardsPanelVisible":[32],"isCardsPanelClosing":[32],"currentLanguage":[32]}],[256,"rebill-mode-sandbox-mobile",{"isPanelVisible":[32],"currentLanguage":[32]}]]],["p-4355b35a",[[256,"rebill-vertical-divider",{"height":[1],"color":[1],"thickness":[1],"dashed":[4],"connectorActive":[4,"connector-active"],"withDot":[4,"with-dot"]}]]],["p-e06b1f90",[[260,"rebill-typography",{"variant":[1],"color":[1],"align":[1],"noWrap":[4,"no-wrap"],"gutterBottom":[4,"gutter-bottom"],"paragraph":[4]}],[256,"rebill-icon",{"name":[1],"size":[1],"color":[1],"svgContent":[32]}]]],["p-9a89f57f",[[256,"rebill-input-text",{"label":[1],"placeholder":[1],"value":[1537],"error":[1],"id":[1],"disabled":[4],"leftIcon":[1,"left-icon"],"rightIcon":[1,"right-icon"],"clearable":[4],"variant":[1],"uppercase":[4],"getInputElement":[64]},[[4,"change","handleFormChange"]]]]],["p-38af1dc2",[[256,"rebill-input-select",{"label":[1],"options":[16],"value":[1537],"error":[1],"id":[1],"disabled":[4],"placeholder":[1],"variant":[1],"arrowIcon":[1,"arrow-icon"],"dropPosition":[1,"drop-position"],"fontSize":[1,"font-size"],"backgroundColor":[1,"background-color"],"searchable":[4],"searchPlaceholder":[1,"search-placeholder"],"loading":[4],"isOpen":[32],"componentId":[32],"highlightedIndex":[32],"searchTerm":[32],"filteredOptions":[32],"languageUpdateTrigger":[32]},[[4,"change","handleFormChange"],[4,"closeAllSelects","handleCloseAllSelects"],[4,"click","handleDocumentClick"],[0,"keydown","handleKeyDown"]]]]],["p-ba1b35fb",[[260,"rebill-button",{"type":[1],"disabled":[4],"id":[1],"loading":[4],"showSpinnerWithText":[4,"show-spinner-with-text"],"nonClickable":[4,"non-clickable"],"variant":[1],"theme":[1],"size":[1],"icon":[1],"iconColor":[1,"icon-color"]}]]],["p-a1302fe4",[[256,"rebill-card-icon",{"cardBrand":[1,"card-brand"],"width":[2],"height":[2]}],[260,"rebill-checkout-single-column"],[256,"rebill-footer",{"breakpoint":[32]}],[256,"organization-logo",{"organization":[16]}]]],["p-45ca99fd",[[256,"rebill-summary",{"totalAmount":[8,"total-amount"],"itemTitle":[1,"item-title"],"itemDescription":[1,"item-description"],"itemAmount":[8,"item-amount"],"planFrequency":[1,"plan-frequency"],"planFrequencyCount":[2,"plan-frequency-count"],"subtotal":[8],"discount":[8],"currency":[1],"displayedComponents":[16],"allowCoupon":[4,"allow-coupon"],"currentBreakpoint":[1,"current-breakpoint"],"discountType":[1,"discount-type"],"discountedPercentage":[2,"discounted-percentage"],"discountDuration":[2,"discount-duration"],"discountAmount":[2,"discount-amount"],"discountApplied":[32]},[[0,"discountApplied","handleDiscountApplied"]]],[256,"success-page",{"typePaymentMethod":[1,"type-payment-method"],"country":[1],"bank":[1],"paymentMethodName":[1,"payment-method-name"],"cardLastFour":[1,"card-last-four"],"paymentDate":[1,"payment-date"],"referenceNumber":[1,"reference-number"],"trialPeriodDays":[2,"trial-period-days"],"debitDay":[2,"debit-day"],"planAmount":[2,"plan-amount"],"timeToRedirect":[2,"time-to-redirect"],"currentLocale":[32],"breakpoint":[32],"loaderProgress":[32],"isLoadingLottie":[32],"showRedirectMessage":[32]}],[256,"otp-component",{"timeLeft":[32],"isTimerRunning":[32],"codeResent":[32],"isVerifying":[32],"otpValue":[32],"error":[32]}],[256,"user-information",{"userInformation":[16],"errors":[16],"customerExists":[4,"customer-exists"],"disabled":[4]},[[0,"input","handleInputChange"],[0,"blur","handleBlur"]]],[256,"rebill-modal-overlay",{"visible":[32],"languageUpdateTrigger":[32]}]]],["p-1c000e38",[[260,"rebill-autofill-detector",{"targetSelector":[1,"target-selector"],"disabled":[4],"browserAutocompleteDetected":[32],"disabledDetector":[32]}]]],["p-e6df1fe2",[[260,"rebill-form",{"validationSchema":[8,"validation-schema"],"initialData":[16],"renderForm":[16],"formData":[32],"errors":[32],"submitForm":[64],"resetValidation":[64],"clearError":[64]},[[0,"input","handleInputChange"],[0,"blur","handleBlur"]],{"initialData":["handleInitialDataChange"],"validationSchema":["handleValidationSchemaChange"]}]]],["p-be2e3121",[[256,"card-fields-wrapper",{"installmentsError":[1,"installments-error"],"documentTypeError":[1,"document-type-error"],"documentNumberError":[1,"document-number-error"],"showDocument":[4,"show-document"],"customCSS":[1,"custom-c-s-s"]}],[256,"rebill-address-form",{"addressType":[1,"address-type"],"countryOptions":[16],"stateOptions":[16],"errors":[16],"disabled":[4],"showAdditionalInformation":[32]}],[256,"rebill-address-search",{"addressType":[1,"address-type"],"placeholder":[1],"error":[1],"disabled":[4],"isInitialized":[32],"currentLocale":[32]}],[256,"single-payment-method",{"paymentMethod":[1,"payment-method"],"currencyCountry":[1,"currency-country"],"paymentMethodDetails":[16],"icons":[16]}],[256,"rebill-input-phone",{"placeholder":[1],"value":[1537],"error":[1],"phoneNumberId":[1,"phone-number-id"],"countryCodeId":[1,"country-code-id"],"validationErrorId":[1,"validation-error-id"],"disabled":[4],"initialCountry":[1,"initial-country"],"required":[4],"searchable":[4],"searchPlaceholder":[1,"search-placeholder"],"selectedCountry":[32],"isDropdownOpen":[32],"validationError":[32],"searchTerm":[32],"filteredCountries":[32],"componentId":[32],"languageUpdateTrigger":[32]},[[4,"change","handleFormChange"],[4,"closeAllSelects","handleCloseAllSelects"],[4,"click","handleDocumentClick"]]],[260,"selectable-card",{"selected":[4],"label":[1],"cardKey":[1,"card-key"],"disabled":[4]}],[256,"rebill-installments",{"error":[1],"currentValue":[32],"isDisabled":[32],"value":[32],"placeholder":[32]}],[256,"card-identification",{"documentTypeError":[1,"document-type-error"],"documentNumberError":[1,"document-number-error"],"disabled":[4],"documentTypes":[32],"country":[32],"currentLanguage":[32]}],[256,"card-iframe",{"customCSS":[1,"custom-c-s-s"],"iframeLoaded":[32],"currentLang":[32],"initialLang":[32],"iframeHeight":[32]}],[256,"rebill-input-combo",{"label":[1],"options":[16],"selectValue":[1537,"select-value"],"inputValue":[1537,"input-value"],"inputPlaceholder":[1,"input-placeholder"],"selectPlaceholder":[1,"select-placeholder"],"error":[1],"selectId":[1,"select-id"],"inputId":[1,"input-id"],"disabled":[4],"selectWidth":[1,"select-width"],"isOpen":[32],"highlightedIndex":[32],"componentId":[32]},[[4,"change","handleFormChange"],[4,"closeAllSelects","handleCloseAllSelects"],[4,"click","handleDocumentClick"]]],[256,"card-skeleton"]]],["p-e460ed3c",[[256,"apm-checkout",{"paymentMethod":[1,"payment-method"],"referenceId":[1,"reference-id"],"qrCodeData":[1,"qr-code-data"],"code":[1],"providerName":[1,"provider-name"],"expirationDate":[1,"expiration-date"],"country":[1],"redirectUrl":[1,"redirect-url"],"timeToRedirect":[2,"time-to-redirect"],"checkoutRequestId":[1,"checkout-request-id"],"bearerToken":[1,"bearer-token"],"bankTransferData":[8,"bank-transfer-data"],"barcode":[1],"showRedirectMessage":[32],"isPolling":[32],"minutesLeft":[32],"qrStartTime":[32],"downloadData":[32]}],[256,"rebill-bank-selector",{"banks":[16],"defaultSelectedBankId":[1,"default-selected-bank-id"],"error":[1],"disabled":[4],"selectedBankId":[32],"languageUpdateTrigger":[32]}],[256,"payment-method-selector",{"enabledPaymentMethods":[16],"defaultSelected":[1,"default-selected"],"showErrorComponent":[4,"show-error-component"],"cardError":[16],"country":[1],"installmentsError":[1,"installments-error"],"documentTypeError":[1,"document-type-error"],"showDocument":[4,"show-document"],"documentNumberError":[1,"document-number-error"],"customCSS":[1,"custom-c-s-s"],"errorComponent":[16],"disabled":[4],"icon":[32],"selectedPaymentMethod":[32],"saveCard":[32]},[[0,"selectableCardClick","handleSelectableCardClick"]]],[256,"rebill-address",{"billingView":[1537,"billing-view"],"disabled":[4],"countryOptions":[16],"errors":[16],"currentBillingStateOptions":[32],"isLoadingAddress":[32]}],[256,"rebill-processing-payment",{"titleKey":[1,"title-key"],"subtitleKey":[1,"subtitle-key"],"currentLocale":[32],"breakpoint":[32],"loaderProgress":[32],"isLoadingLottie":[32]}],[256,"bank-transfer",{"bankTransferData":[8,"bank-transfer-data"]}],[256,"qr-code",{"qrCodeData":[1,"qr-code-data"],"providerName":[1,"provider-name"],"expirationDate":[1,"expiration-date"],"paymentMethod":[1,"payment-method"],"code":[1],"qrCodeSvg":[32],"isImage":[32],"timeLeft":[32],"formattedTime":[32],"hasCopied":[32]}],[256,"user-information-static",{"userInfo":[16],"variant":[1]}],[256,"apm-download",{"data":[16]}],[256,"payment-button",{"isDisabled":[4,"is-disabled"],"isLoading":[4,"is-loading"],"paymentMethod":[1,"payment-method"],"isRenewal":[4,"is-renewal"],"isChangeCard":[4,"is-change-card"],"trialPeriodDays":[2,"trial-period-days"],"redirectUrl":[4,"redirect-url"],"timeToRedirect":[2,"time-to-redirect"],"country":[1],"currentLanguage":[32],"countdownSeconds":[32],"paymentMethodDisplayName":[32]},null,{"redirectUrl":["onRedirectPropsChange"],"timeToRedirect":["onRedirectPropsChange"]}],[256,"user-information-phone",{"error":[1],"countryCode":[1,"country-code"],"disabled":[4],"languageUpdateTrigger":[32]}],[256,"boleto-payment",{"barcode":[1],"referenceId":[1,"reference-id"],"providerName":[1,"provider-name"],"expirationDate":[1,"expiration-date"],"instructions":[16],"showInstructions":[32],"hasCopied":[32]}],[256,"rebill-checkout-form",{"validationSchema":[8,"validation-schema"],"initialData":[16],"renderForm":[16],"resetValidation":[64]},[[0,"change","handleFormChange"]]],[256,"reference-code",{"referenceId":[1,"reference-id"],"providerName":[1,"provider-name"],"expirationDate":[1,"expiration-date"],"instructions":[16],"showInstructions":[32]}]]]]'),e)}));
|
|
2
2
|
//# sourceMappingURL=rebill-web-components-sdk.esm.js.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-C-lFHh1a.js","mappings":";;;;;;;;;;;;;;;;;AAEA,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK;AACvB,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,C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,EAClC,aAAA,EAAAA,KAAY,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EACnD,QAAQ,EAAEA,KAAY,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAA,gBAAA,EAC9BA,KAAY,CAAC,IAAI,EAAE,eAAe,EAAE,aAAa,sBAC/C,IAAI,CAAC,eAAe,EAAA,eAAA,EACvB,IAAI,CAAC,YAAY,EACT,uBAAA,EAAA,IAAI,CAAC,oBAAoB,EAAA,mBAAA,EAC7B,IAAI,CAAC,gBAAgB,EACvB,iBAAA,EAAA,IAAI,CAAC,cAAc,GACpC,CACH,EACF,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,UAAU,CAAC;YAC5C,CAAC,iBAAiB,CAAC,IAAI,CAAC,iBAAiB,EAAE,eAAe,CAAC,OAAO,CAAC;YACnE,CAACA,KAAY,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe;AAC3D,YAAA,CAACA,KAAY,CAAC,IAAI,EAAE,eAAe,EAAE,aAAa;YAClD,mBAAmB,EAAE,CACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["f","m","u","r","i","__stencil_proxyCustomElement","HTMLElement","sessionState"],"sources":["node_modules/.pnpm/number-flow@0.5.8/node_modules/number-flow/dist/lite-BTIaQdTe.mjs","node_modules/.pnpm/number-flow@0.5.8/node_modules/number-flow/dist/index.mjs","src/components/checkout/summary/summary.css?tag=rebill-summary","src/components/checkout/summary/summary.tsx"],"sourcesContent":["import { BROWSER as _ } from \"esm-env\";\nimport \"./plugins.mjs\";\nconst u = (n, t, e) => {\n const i = document.createElement(n), [s, a] = Array.isArray(t) ? [void 0, t] : [t, e];\n return s && Object.assign(i, s), a == null || a.forEach((r) => i.appendChild(r)), i;\n}, F = (n, t) => {\n var e;\n return t === \"left\" ? n.offsetLeft : (((e = n.offsetParent instanceof HTMLElement ? n.offsetParent : null) == null ? void 0 : e.offsetWidth) ?? 0) - n.offsetWidth - n.offsetLeft;\n}, H = (n) => n.offsetWidth > 0 && n.offsetHeight > 0, st = (n, t) => {\n _ && !customElements.get(n) && customElements.define(n, t);\n};\nfunction X(n, t, { reverse: e = !1 } = {}) {\n const i = n.length;\n for (let s = e ? i - 1 : 0; e ? s >= 0 : s < i; e ? s-- : s++)\n t(n[s], s);\n}\nfunction nt(n, t, e, i) {\n const s = t.formatToParts(n);\n e && s.unshift({ type: \"prefix\", value: e }), i && s.push({ type: \"suffix\", value: i });\n const a = [], r = [], o = [], c = [], d = {}, p = (h) => `${h}:${d[h] = (d[h] ?? -1) + 1}`;\n let x = \"\", g = !1, y = !1;\n for (const h of s) {\n x += h.value;\n const l = h.type === \"minusSign\" || h.type === \"plusSign\" ? \"sign\" : h.type;\n l === \"integer\" ? (g = !0, r.push(...h.value.split(\"\").map((C) => ({ type: l, value: parseInt(C) })))) : l === \"group\" ? r.push({ type: l, value: h.value }) : l === \"decimal\" ? (y = !0, o.push({ type: l, value: h.value, key: p(l) })) : l === \"fraction\" ? o.push(...h.value.split(\"\").map((C) => ({\n type: l,\n value: parseInt(C),\n key: p(l),\n pos: -1 - d[l]\n }))) : (g || y ? c : a).push({\n type: l,\n value: h.value,\n key: p(l)\n });\n }\n const T = [];\n for (let h = r.length - 1; h >= 0; h--) {\n const l = r[h];\n T.unshift(l.type === \"integer\" ? {\n ...l,\n key: p(l.type),\n pos: d[l.type]\n } : {\n ...l,\n key: p(l.type)\n });\n }\n return {\n pre: a,\n integer: T,\n fraction: o,\n post: c,\n valueAsString: x,\n value: typeof n == \"string\" ? parseFloat(n) : n\n };\n}\nconst I = String.raw, V = String.raw, O = _ && (() => {\n try {\n document.createElement(\"div\").animate({ opacity: 0 }, { easing: \"linear(0, 1)\" });\n } catch {\n return !1;\n }\n return !0;\n})(), z = _ && typeof CSS < \"u\" && CSS.supports && CSS.supports(\"line-height\", \"mod(1,1)\"), A = _ && typeof matchMedia < \"u\" ? matchMedia(\"(prefers-reduced-motion: reduce)\") : null, $ = \"--_number-flow-d-opacity\", U = \"--_number-flow-d-width\", S = \"--_number-flow-dx\", j = \"--_number-flow-d\", Y = (() => {\n try {\n return CSS.registerProperty({\n name: $,\n syntax: \"<number>\",\n inherits: !1,\n initialValue: \"0\"\n }), CSS.registerProperty({\n name: S,\n syntax: \"<length>\",\n inherits: !0,\n initialValue: \"0px\"\n }), CSS.registerProperty({\n name: U,\n syntax: \"<number>\",\n inherits: !1,\n initialValue: \"0\"\n }), CSS.registerProperty({\n name: j,\n syntax: \"<number>\",\n inherits: !0,\n initialValue: \"0\"\n }), !0;\n } catch {\n return !1;\n }\n})(), P = \"var(--number-flow-char-height, 1em)\", f = \"var(--number-flow-mask-height, 0.25em)\", k = `calc(${f} / 2)`, E = \"var(--number-flow-mask-width, 0.5em)\", m = `calc(${E} / var(--scale-x))`, w = \"#000 0, transparent 71%\", M = V`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${P} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${U}) / var(--width));transform:translateX(var(${S})) scaleX(var(--scale-x));margin:0 calc(-1 * ${E});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${m},#000 calc(100% - ${m}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${f},#000 calc(100% - ${f}),transparent 100% ),radial-gradient(at bottom right,${w}),radial-gradient(at bottom left,${w}),radial-gradient(at top left,${w}),radial-gradient(at top right,${w});-webkit-mask-size:100% calc(100% - ${f} * 2),calc(100% - ${m} * 2) 100%,${m} ${f},${m} ${f},${m} ${f},${m} ${f};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${k} ${E};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${S})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${j})}.digit__num,.number .section::after{padding:${k} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${$}))}`, G = _ ? HTMLElement : class {\n}, K = V`:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:${P} !important}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:${k} 0}.symbol{white-space:pre}`, Z = (n) => `<span class=\"${n.type === \"integer\" || n.type === \"fraction\" ? \"digit\" : \"symbol\"}\" part=\"${n.type === \"integer\" || n.type === \"fraction\" ? `digit ${n.type}-digit` : `symbol ${n.type}`}\">${n.value}</span>`, v = (n, t) => `<span part=\"${t}\">${n.reduce((e, i) => e + Z(i), \"\")}</span>`, at = (n) => (\n // shadowroot=\"open\" non-standard attribute for old Chrome:\n I`<template shadowroot=\"open\" shadowrootmode=\"open\"\n\t\t\t><style>\n\t\t\t\t${K}</style\n\t\t\t><span role=\"img\" aria-label=\"${n.valueAsString}\"\n\t\t\t\t>${v(n.pre, \"left\")}<span part=\"number\" class=\"number\"\n\t\t\t\t\t>${v(n.integer, \"integer\")}${v(n.fraction, \"fraction\")}</span\n\t\t\t\t>${v(n.post, \"right\")}</span\n\t\t\t></template\n\t\t><span\n\t\t\tstyle=\"font-kerning: none; display: inline-block; line-height: ${P} !important; padding: ${f} 0;\"\n\t\t\t>${n.valueAsString}</span\n\t\t>`\n), q = z && O && Y;\nlet b;\nclass J extends G {\n constructor() {\n super(), this.created = !1, this.batched = !1;\n const { animated: t, ...e } = this.constructor.defaultProps;\n this._animated = this.computedAnimated = t, Object.assign(this, e);\n }\n get animated() {\n return this._animated;\n }\n set animated(t) {\n var e;\n this.animated !== t && (this._animated = t, (e = this.shadowRoot) == null || e.getAnimations().forEach((i) => i.finish()));\n }\n /**\n * @internal\n */\n set data(t) {\n var o;\n if (t == null)\n return;\n const { pre: e, integer: i, fraction: s, post: a, value: r } = t;\n if (this.created) {\n const c = this._data;\n this._data = t, this.computedTrend = typeof this.trend == \"function\" ? this.trend(c.value, r) : this.trend, this.computedAnimated = q && this._animated && (!this.respectMotionPreference || !(A != null && A.matches)) && // https://github.com/barvian/number-flow/issues/9\n H(this), (o = this.plugins) == null || o.forEach((d) => {\n var p;\n return (p = d.onUpdate) == null ? void 0 : p.call(d, t, c, this);\n }), this.batched || this.willUpdate(), this._pre.update(e), this._num.update({ integer: i, fraction: s }), this._post.update(a), this.batched || this.didUpdate();\n } else {\n this._data = t, this.attachShadow({ mode: \"open\" });\n try {\n this._internals ?? (this._internals = this.attachInternals()), this._internals.role = \"img\";\n } catch {\n }\n if (typeof CSSStyleSheet < \"u\" && this.shadowRoot.adoptedStyleSheets)\n b || (b = new CSSStyleSheet(), b.replaceSync(M)), this.shadowRoot.adoptedStyleSheets = [b];\n else {\n const c = document.createElement(\"style\");\n c.textContent = M, this.shadowRoot.appendChild(c);\n }\n this._pre = new N(this, e, {\n justify: \"right\",\n part: \"left\"\n }), this.shadowRoot.appendChild(this._pre.el), this._num = new Q(this, i, s), this.shadowRoot.appendChild(this._num.el), this._post = new N(this, a, {\n justify: \"left\",\n part: \"right\"\n }), this.shadowRoot.appendChild(this._post.el), this.created = !0;\n }\n try {\n this._internals.ariaLabel = t.valueAsString;\n } catch {\n }\n }\n /**\n * @internal\n */\n willUpdate() {\n this._pre.willUpdate(), this._num.willUpdate(), this._post.willUpdate();\n }\n /**\n * @internal\n */\n didUpdate() {\n if (!this.computedAnimated)\n return;\n this._abortAnimationsFinish ? this._abortAnimationsFinish.abort() : this.dispatchEvent(new Event(\"animationsstart\")), this._pre.didUpdate(), this._num.didUpdate(), this._post.didUpdate();\n const t = new AbortController();\n Promise.all(this.shadowRoot.getAnimations().map((e) => e.finished)).then(() => {\n t.signal.aborted || (this.dispatchEvent(new Event(\"animationsfinish\")), this._abortAnimationsFinish = void 0);\n }), this._abortAnimationsFinish = t;\n }\n}\nJ.defaultProps = {\n transformTiming: {\n duration: 900,\n // Make sure to keep this minified:\n easing: \"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)\"\n },\n spinTiming: void 0,\n opacityTiming: { duration: 450, easing: \"ease-out\" },\n animated: !0,\n trend: (n, t) => Math.sign(t - n),\n respectMotionPreference: !0,\n plugins: void 0,\n digits: void 0\n};\nclass Q {\n constructor(t, e, i, { className: s, ...a } = {}) {\n this.flow = t, this._integer = new L(t, e, {\n justify: \"right\",\n part: \"integer\"\n }), this._fraction = new L(t, i, {\n justify: \"left\",\n part: \"fraction\"\n }), this._inner = u(\"span\", {\n className: \"number__inner\"\n }, [this._integer.el, this._fraction.el]), this.el = u(\"span\", {\n ...a,\n part: \"number\",\n className: `number ${s ?? \"\"}`\n }, [this._inner]);\n }\n willUpdate() {\n this._prevWidth = this.el.offsetWidth, this._prevLeft = this.el.getBoundingClientRect().left, this._integer.willUpdate(), this._fraction.willUpdate();\n }\n update({ integer: t, fraction: e }) {\n this._integer.update(t), this._fraction.update(e);\n }\n didUpdate() {\n const t = this.el.getBoundingClientRect();\n this._integer.didUpdate(), this._fraction.didUpdate();\n const e = this._prevLeft - t.left, i = this.el.offsetWidth, s = this._prevWidth - i;\n this.el.style.setProperty(\"--width\", String(i)), this.el.animate({\n [S]: [`${e}px`, \"0px\"],\n [U]: [s, 0]\n }, {\n ...this.flow.transformTiming,\n composite: \"accumulate\"\n });\n }\n}\nclass W {\n constructor(t, e, { justify: i, className: s, ...a }, r) {\n this.flow = t, this.children = /* @__PURE__ */ new Map(), this.onCharRemove = (c) => () => {\n this.children.delete(c);\n }, this.justify = i;\n const o = e.map((c) => this.addChar(c).el);\n this.el = u(\"span\", {\n ...a,\n className: `section section--justify-${i} ${s ?? \"\"}`\n }, r ? r(o) : o);\n }\n addChar(t, { startDigitsAtZero: e = !1, ...i } = {}) {\n const s = t.type === \"integer\" || t.type === \"fraction\" ? new D(this, t.type, e ? 0 : t.value, t.pos, {\n ...i,\n onRemove: this.onCharRemove(t.key)\n }) : new tt(this, t.type, t.value, {\n ...i,\n onRemove: this.onCharRemove(t.key)\n });\n return this.children.set(t.key, s), s;\n }\n unpop(t) {\n t.el.removeAttribute(\"inert\"), t.el.style.top = \"\", t.el.style[this.justify] = \"\";\n }\n pop(t) {\n t.forEach((e) => {\n e.el.style.top = `${e.el.offsetTop}px`, e.el.style[this.justify] = `${F(e.el, this.justify)}px`;\n }), t.forEach((e) => {\n e.el.setAttribute(\"inert\", \"\"), e.present = !1;\n });\n }\n addNewAndUpdateExisting(t) {\n const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = this.justify === \"left\", a = s ? \"prepend\" : \"append\";\n if (X(t, (r) => {\n let o;\n this.children.has(r.key) ? (o = this.children.get(r.key), i.set(r, o), this.unpop(o), o.present = !0) : (o = this.addChar(r, { startDigitsAtZero: !0, animateIn: !0 }), e.set(r, o)), this.el[a](o.el);\n }, { reverse: s }), this.flow.computedAnimated) {\n const r = this.el.getBoundingClientRect();\n e.forEach((o) => {\n o.willUpdate(r);\n });\n }\n e.forEach((r, o) => {\n r.update(o.value);\n }), i.forEach((r, o) => {\n r.update(o.value);\n });\n }\n willUpdate() {\n const t = this.el.getBoundingClientRect();\n this._prevOffset = t[this.justify], this.children.forEach((e) => e.willUpdate(t));\n }\n didUpdate() {\n const t = this.el.getBoundingClientRect();\n this.children.forEach((s) => s.didUpdate(t));\n const e = t[this.justify], i = this._prevOffset - e;\n i && this.children.size && this.el.animate({\n transform: [`translateX(${i}px)`, \"none\"]\n }, {\n ...this.flow.transformTiming,\n composite: \"accumulate\"\n });\n }\n}\nclass L extends W {\n update(t) {\n const e = /* @__PURE__ */ new Map();\n this.children.forEach((i, s) => {\n t.find((a) => a.key === s) || e.set(s, i), this.unpop(i);\n }), this.addNewAndUpdateExisting(t), e.forEach((i) => {\n i instanceof D && i.update(0);\n }), this.pop(e);\n }\n}\nclass N extends W {\n update(t) {\n const e = /* @__PURE__ */ new Map();\n this.children.forEach((i, s) => {\n t.find((a) => a.key === s) || e.set(s, i);\n }), this.pop(e), this.addNewAndUpdateExisting(t);\n }\n}\nclass R {\n constructor(t, e, { onRemove: i, animateIn: s = !1 } = {}) {\n this.flow = t, this.el = e, this._present = !0, this._remove = () => {\n var a;\n this.el.remove(), (a = this._onRemove) == null || a.call(this);\n }, this.el.classList.add(\"animate-presence\"), this.flow.computedAnimated && s && this.el.animate({\n [$]: [-0.9999, 0]\n }, {\n ...this.flow.opacityTiming,\n composite: \"accumulate\"\n }), this._onRemove = i;\n }\n get present() {\n return this._present;\n }\n set present(t) {\n if (this._present !== t) {\n if (this._present = t, t ? this.el.removeAttribute(\"inert\") : this.el.setAttribute(\"inert\", \"\"), !this.flow.computedAnimated) {\n t || this._remove();\n return;\n }\n this.el.style.setProperty(\"--_number-flow-d-opacity\", t ? \"0\" : \"-.999\"), this.el.animate({\n [$]: t ? [-0.9999, 0] : [0.999, 0]\n }, {\n ...this.flow.opacityTiming,\n composite: \"accumulate\"\n }), t ? this.flow.removeEventListener(\"animationsfinish\", this._remove) : this.flow.addEventListener(\"animationsfinish\", this._remove, {\n once: !0\n });\n }\n }\n}\nclass B extends R {\n constructor(t, e, i, s) {\n super(t.flow, i, s), this.section = t, this.value = e, this.el = i;\n }\n}\nclass D extends B {\n constructor(t, e, i, s, a) {\n var d, p;\n const r = (((p = (d = t.flow.digits) == null ? void 0 : d[s]) == null ? void 0 : p.max) ?? 9) + 1, o = Array.from({ length: r }).map((x, g) => {\n const y = u(\"span\", { className: \"digit__num\" }, [\n document.createTextNode(String(g))\n ]);\n return g !== i && y.setAttribute(\"inert\", \"\"), y.style.setProperty(\"--n\", String(g)), y;\n }), c = u(\"span\", {\n part: `digit ${e}-digit`,\n className: \"digit\"\n }, o);\n c.style.setProperty(\"--current\", String(i)), c.style.setProperty(\"--length\", String(r)), super(t, i, c, a), this.pos = s, this._onAnimationsFinish = () => {\n this.el.classList.remove(\"is-spinning\");\n }, this._numbers = o, this.length = r;\n }\n willUpdate(t) {\n const e = this.el.getBoundingClientRect();\n this._prevValue = this.value;\n const i = e[this.section.justify] - t[this.section.justify], s = e.width / 2;\n this._prevCenter = this.section.justify === \"left\" ? i + s : i - s;\n }\n update(t) {\n this.el.style.setProperty(\"--current\", String(t)), this._numbers.forEach((e, i) => i === t ? e.removeAttribute(\"inert\") : e.setAttribute(\"inert\", \"\")), this.value = t;\n }\n didUpdate(t) {\n const e = this.el.getBoundingClientRect(), i = e[this.section.justify] - t[this.section.justify], s = e.width / 2, a = this.section.justify === \"left\" ? i + s : i - s, r = this._prevCenter - a;\n r && this.el.animate({\n transform: [`translateX(${r}px)`, \"none\"]\n }, {\n ...this.flow.transformTiming,\n composite: \"accumulate\"\n });\n const o = this.getDelta();\n o && (this.el.classList.add(\"is-spinning\"), this.el.animate({\n [j]: [-o, 0]\n }, {\n ...this.flow.spinTiming ?? this.flow.transformTiming,\n composite: \"accumulate\"\n }), this.flow.addEventListener(\"animationsfinish\", this._onAnimationsFinish, { once: !0 }));\n }\n getDelta() {\n var i;\n if (this.flow.plugins)\n for (const s of this.flow.plugins) {\n const a = (i = s.getDelta) == null ? void 0 : i.call(s, this.value, this._prevValue, this);\n if (a != null)\n return a;\n }\n const t = this.value - this._prevValue, e = this.flow.computedTrend || Math.sign(t);\n return e < 0 && this.value > this._prevValue ? this.value - this.length - this._prevValue : e > 0 && this.value < this._prevValue ? this.length - this._prevValue + this.value : t;\n }\n}\nclass tt extends B {\n constructor(t, e, i, s) {\n const a = u(\"span\", {\n className: \"symbol__value\",\n textContent: i\n });\n super(t, i, u(\"span\", {\n part: `symbol ${e}`,\n className: \"symbol\"\n }, [a]), s), this.type = e, this._children = /* @__PURE__ */ new Map(), this._onChildRemove = (r) => () => {\n this._children.delete(r);\n }, this._children.set(i, new R(this.flow, a, {\n onRemove: this._onChildRemove(i)\n }));\n }\n willUpdate(t) {\n if (this.type === \"decimal\")\n return;\n const e = this.el.getBoundingClientRect();\n this._prevOffset = e[this.section.justify] - t[this.section.justify];\n }\n update(t) {\n if (this.value !== t) {\n const e = this._children.get(this.value);\n e && (e.present = !1);\n const i = this._children.get(t);\n if (i)\n i.present = !0;\n else {\n const s = u(\"span\", {\n className: \"symbol__value\",\n textContent: t\n });\n this.el.appendChild(s), this._children.set(t, new R(this.flow, s, {\n animateIn: !0,\n onRemove: this._onChildRemove(t)\n }));\n }\n }\n this.value = t;\n }\n didUpdate(t) {\n if (this.type === \"decimal\")\n return;\n const i = this.el.getBoundingClientRect()[this.section.justify] - t[this.section.justify], s = this._prevOffset - i;\n s && this.el.animate({\n transform: [`translateX(${s}px)`, \"none\"]\n }, { ...this.flow.transformTiming, composite: \"accumulate\" });\n }\n}\nexport {\n D,\n J as N,\n G as S,\n q as c,\n st as d,\n nt as f,\n A as p,\n at as r\n};\n","import { d as i, N as u, f as r, r as c } from \"./lite-BTIaQdTe.mjs\";\nimport { D as _, c as v, p as E } from \"./lite-BTIaQdTe.mjs\";\nimport { continuous as N } from \"./plugins.mjs\";\nconst l = \"number-flow-connect\", m = \"number-flow-update\", d = (t, { locales: e, format: s, numberPrefix: n, numberSuffix: a } = {}) => {\n const o = r(t, new Intl.NumberFormat(e, s), n, a);\n return c(o);\n};\nclass f extends u {\n constructor() {\n super(...arguments), this.connected = !1;\n }\n connectedCallback() {\n this.connected = !0, this.dispatchEvent(new Event(l, { bubbles: !0 }));\n }\n disconnectedCallback() {\n this.connected = !1;\n }\n get value() {\n return this._value;\n }\n update(e) {\n (!this._formatter || this._prevFormat !== this.format || this._prevLocales !== this.locales) && (this._formatter = new Intl.NumberFormat(this.locales, this.format), this._prevFormat = this.format, this._prevLocales = this.locales), e != null && (this._value = e), this.dispatchEvent(new Event(m, { bubbles: !0 })), this.data = r(this._value, this._formatter, this.numberPrefix, this.numberSuffix);\n }\n}\ni(\"number-flow\", f);\nexport {\n l as CONNECT_EVENT,\n _ as Digit,\n m as UPDATE_EVENT,\n v as canAnimate,\n N as continuous,\n f as default,\n i as define,\n r as formatToData,\n E as prefersReducedMotion,\n d as renderInnerHTML\n};\n",".summary-container {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n gap: 40px;\n background-color: var(--rebill-color-background-right);\n}\n.summary-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n}\n\n.trial-pill {\n background-color: var(--rebill-color-green-light-2);\n border-radius: 4px;\n padding: 4px 6px 4px 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.total-amount-container {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n\n@media (max-width: 1024px) {\n .summary-container {\n gap: 1.5rem !important;\n background-color: var(--rebill-color-background);\n }\n .summary-header {\n margin-top: 24px;\n }\n .summary-row.total {\n margin-top: 0 !important;\n }\n}\n\n.summary-card {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 24px;\n padding: 0px;\n background: #ffffff;\n}\n\n.summary-card-info {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n.summary-card-amount {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.summary-details {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.summary-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n & > :nth-child(2) {\n text-align: right;\n }\n}\n\n.summary-row.total {\n margin-top: 1rem;\n font-weight: bold;\n}\n\n@media (min-width: 1025px) and (max-width: 1450px) {\n .summary-container {\n margin: 0px 10px;\n max-width: 400px;\n }\n}\n","import { Component, h, Listen, Prop, State } from '@stencil/core';\nimport 'number-flow';\nimport { I18nService } from '../../../i18n/i18n.service';\nimport {\n PLAN_FREQUENCY_ENUM,\n SESSION_DISCOUNT_TYPE_ENUM,\n SESSION_ITEM_TYPE_ENUM,\n} from '../../../models';\nimport { sessionState } from '../../../store/session.store';\nimport { BREAKPOINT_ENUM, isBreakpointBelow } from '../../../utils/breakpoint';\nimport { COLORS_ENUM } from '../../../utils/color-class-mapper';\nimport { formatAmount } from '../../../utils/currency-formatter';\nimport { getInstallmentDescription } from '../../../utils/installment-utils';\n\n@Component({\n tag: 'rebill-summary',\n styleUrl: 'summary.css',\n shadow: false,\n})\nexport class Summary {\n /** Monto total */\n @Prop() totalAmount!: number | string;\n /** Título del item */\n @Prop() itemTitle!: string;\n /** Descripción del item */\n @Prop() itemDescription!: string;\n /** Monto del item */\n @Prop() itemAmount!: number | string;\n /** Frecuencia del plan */\n @Prop() planFrequency?: PLAN_FREQUENCY_ENUM;\n /** Cantidad de frecuencia del plan */\n @Prop() planFrequencyCount?: number;\n /** Subtotal */\n @Prop() subtotal!: number | string;\n /** Descuento (opcional) */\n @Prop() discount?: number | string;\n @Prop() currency: string;\n @Prop() displayedComponents: (\n | 'totalAmount'\n | 'discount'\n | 'itemDetails'\n | 'priceDetails'\n | 'timelineFreeTrial'\n | 'timelineDebitDay'\n )[] = [\n 'totalAmount',\n 'discount',\n 'itemDetails',\n 'priceDetails',\n 'timelineFreeTrial',\n 'timelineDebitDay',\n ];\n @Prop() allowCoupon: boolean = false;\n @Prop() currentBreakpoint: BREAKPOINT_ENUM = BREAKPOINT_ENUM.DESKTOP;\n @State() discountApplied: boolean = false;\n private totalFlow?: HTMLElement & { update: (value: number) => void; format?: any };\n @Prop() discountType: SESSION_DISCOUNT_TYPE_ENUM;\n @Prop() discountedPercentage: number = 0;\n @Prop() discountDuration: number = 0;\n @Prop() discountAmount: number = 0;\n\n private getDurationTranslation(duration: number): string {\n const frequency = this.planFrequency || PLAN_FREQUENCY_ENUM.MONTH;\n\n if (duration === 1) {\n return I18nService.translate(`summary.${frequency}_one`);\n } else {\n return I18nService.translate(`summary.${frequency}_other`, { count: duration });\n }\n }\n componentDidLoad() {\n this.updateTotalFlow();\n // this.initializeDiscountState();\n }\n\n componentDidUpdate() {\n this.updateTotalFlow();\n }\n\n private updateTotalFlow() {\n if (this.totalFlow) {\n this.totalFlow.format = { style: 'currency', currency: this.currency };\n this.totalFlow.update(Number(sessionState.data.pricing.total));\n }\n }\n @Listen('discountApplied')\n handleDiscountApplied(event: CustomEvent) {\n this.discountApplied = event.detail;\n }\n\n private getRecalculatedInstallmentAmount(): number {\n const selectedInstallment =\n sessionState.data?.cardInformation?.installments?.selectedInstallment;\n if (!selectedInstallment) {\n return 0;\n }\n\n if (sessionState.data.pricing.discountAmount > 0) {\n const originalTotal = sessionState.data.pricing.subtotal;\n const currentTotal = sessionState.data.pricing.totalWithoutInstallment;\n const discountRatio = currentTotal / originalTotal;\n\n return Math.round(selectedInstallment.installmentAmount * discountRatio * 100) / 100;\n }\n\n return selectedInstallment.installmentAmount;\n }\n\n private renderTotalForPlan() {\n return (\n sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data?.itemInformation?.debitStrategy && (\n <div class=\"summary-row total\">\n <rebill-typography\n variant={\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'subtitle1'\n : 'body3'\n }\n style={{\n fontWeight: isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'normal'\n : 'bold',\n }}\n >\n {I18nService.translate('summary.totalAmountToday')}\n </rebill-typography>\n <rebill-typography\n variant={\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'subtitle1'\n : 'body3'\n }\n style={{\n fontWeight: isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'normal'\n : 'bold',\n }}\n >\n {formatAmount(sessionState.data.pricing.total, this.currency)}\n </rebill-typography>\n </div>\n )\n );\n }\n\n private renderTotalForPlanGeneral() {\n return (\n sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n !sessionState.data?.itemInformation?.trial?.trialPeriodDays &&\n !sessionState.data?.itemInformation?.debitStrategy && (\n <div class=\"summary-row total\">\n <rebill-typography\n variant={\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'subtitle1'\n : 'body3'\n }\n style={{\n fontWeight: isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'normal'\n : 'bold',\n }}\n >\n {I18nService.translate('summary.totalAmount')}\n </rebill-typography>\n <rebill-typography\n variant={\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'subtitle1'\n : 'body3'\n }\n style={{\n fontWeight: isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'normal'\n : 'bold',\n }}\n >\n {formatAmount(sessionState.data?.pricing?.total, this.currency)}\n </rebill-typography>\n </div>\n )\n );\n }\n\n private renderTotalForNonPlan() {\n return (\n sessionState.data?.itemInformation?.type !== SESSION_ITEM_TYPE_ENUM.PLAN && (\n <div class=\"summary-row total\">\n <rebill-typography\n variant={\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'subtitle1'\n : 'body3'\n }\n style={{\n fontWeight: isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'normal'\n : 'bold',\n }}\n >\n {I18nService.translate('summary.totalAmount')}\n </rebill-typography>\n <rebill-typography\n variant={\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'subtitle1'\n : 'body3'\n }\n style={{\n fontWeight: isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'normal'\n : 'bold',\n }}\n >\n {formatAmount(sessionState.data.pricing.total, this.currency)}\n </rebill-typography>\n </div>\n )\n );\n }\n\n private renderTrialPeriod() {\n return (\n sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data?.itemInformation?.trial?.trialPeriodDays && (\n <div class=\"summary-row\">\n <rebill-typography variant=\"body2\">\n {I18nService.translate('summary.totalAmountLastTrialPeriod')}\n </rebill-typography>\n <rebill-typography variant=\"body2\">\n {formatAmount(sessionState.data?.pricing?.total, this.currency)}\n {`/${I18nService.translate(`summary.${this.planFrequency}`, {\n count: this.planFrequencyCount || 1,\n })} `}\n </rebill-typography>\n </div>\n )\n );\n }\n\n private renderDiscountAlertWrapper() {\n return (\n sessionState.data?.itemInformation?.trial?.trialPeriodDays && (\n <div class=\"summary-row\">\n <rebill-typography\n variant={\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'subtitle1'\n : 'body3'\n }\n style={{\n fontWeight: isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'normal'\n : 'bold',\n }}\n >\n {I18nService.translate('summary.trialPeriodDaysDetails', {\n trialDays: sessionState.data?.itemInformation?.trial?.trialPeriodDays,\n count: sessionState.data?.itemInformation?.trial?.trialPeriodDays,\n })}\n </rebill-typography>\n <rebill-typography\n variant={\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'subtitle1'\n : 'body3'\n }\n style={{\n fontWeight: isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP)\n ? 'normal'\n : 'bold',\n }}\n >\n {I18nService.translate('summary.free')}\n </rebill-typography>\n </div>\n )\n );\n }\n\n render() {\n const renderItemDetails = (\n title: boolean = true,\n description: boolean = true,\n amount: boolean = true,\n ) => (\n <div class=\"summary-card\">\n {(title || description) && (\n <div class=\"summary-card-info\">\n {title && (\n <rebill-typography variant=\"subtitle-bold\" gutterBottom>\n {this.itemTitle}\n </rebill-typography>\n )}\n {description && this.itemDescription && (\n <rebill-typography variant=\"body2\">{this.itemDescription}</rebill-typography>\n )}\n </div>\n )}\n {amount && (\n <div class=\"summary-card-amount\">\n <rebill-typography variant=\"body2\">\n {sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data?.itemInformation?.debitStrategy\n ? formatAmount(sessionState.data?.pricing?.planAmount, this.currency)\n : formatAmount(this.subtotal, this.currency)}\n </rebill-typography>\n </div>\n )}\n </div>\n );\n const renderPriceDetails = () => {\n const detailsBlocks = [\n this.renderTotalForPlan(),\n this.renderTotalForPlanGeneral(),\n this.renderTotalForNonPlan(),\n this.renderTrialPeriod(),\n this.renderDiscountAlertWrapper(),\n ].filter(Boolean);\n\n if (detailsBlocks.length > 1) {\n detailsBlocks.splice(detailsBlocks.length - 1, 0, <rebill-divider />);\n }\n\n return (\n <div class=\"summary-details\">\n {/* Subtotal se queda inline */}\n <div class=\"summary-row\">\n <rebill-typography variant=\"body2\">\n {I18nService.translate('summary.subtotal')}\n </rebill-typography>\n <rebill-typography variant=\"body2\">\n {sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data?.itemInformation?.debitStrategy\n ? formatAmount(sessionState.data.pricing.planAmount, this.currency)\n : formatAmount(this.subtotal, this.currency)}\n </rebill-typography>\n </div>\n {/* Installments y coupon también inline */}\n {sessionState.data.pricing.installments && (\n <div class=\"summary-row\">\n <rebill-typography variant=\"body2\">\n {I18nService.translate('summary.installments')}\n </rebill-typography>\n <rebill-typography variant=\"body2\">\n {getInstallmentDescription(\n sessionState.data?.pricing?.installments,\n this.getRecalculatedInstallmentAmount(),\n )}\n </rebill-typography>\n </div>\n )}\n {this.allowCoupon &&\n !isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) && (\n <discount-coupon />\n )}\n {!sessionState.data?.itemInformation?.trial?.trialPeriodDays &&\n !sessionState.data?.itemInformation?.debitStrategy && <rebill-divider />}\n {detailsBlocks.map(block => (\n <div class=\"summary-detail-wrapper\">{block}</div>\n ))}\n </div>\n );\n };\n const renderDiscountAlert = () =>\n this.planFrequency &&\n this.discountApplied &&\n (this.discountedPercentage > 0 || this.discountAmount > 0) && (\n <rebill-alert\n variant=\"filled\"\n type=\"success\"\n icon=\"tag-sale\"\n size=\"medium\"\n colorIcon={COLORS_ENUM.GREEN}\n message={\n this.discountDuration\n ? I18nService.translate(`summary.planDiscountDescriptionWithDuration`, {\n discount:\n this.discountType === SESSION_DISCOUNT_TYPE_ENUM.PERCENTAGE\n ? `${this.discountedPercentage}%`\n : formatAmount(this.discountAmount, this.currency),\n duration: this.getDurationTranslation(this.discountDuration),\n })\n : I18nService.translate(`summary.planDiscountDescriptionWithoutDuration`, {\n discount:\n this.discountType === SESSION_DISCOUNT_TYPE_ENUM.PERCENTAGE\n ? `${this.discountedPercentage}%`\n : formatAmount(this.discountAmount, this.currency),\n })\n }\n />\n );\n return (\n <div class=\"summary-container\">\n {this.displayedComponents.includes('totalAmount') && (\n <div class=\"summary-header\">\n {sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data.itemInformation?.trial?.trialPeriodDays && (\n <div class=\"trial-pill\">\n <rebill-typography variant=\"body2\" align=\"center\" color={COLORS_ENUM.GREEN_TEXT}>\n {I18nService.translate('summary.trialPill', {\n days: sessionState.data?.itemInformation?.trial?.trialPeriodDays,\n count: sessionState.data?.itemInformation?.trial?.trialPeriodDays,\n })}\n </rebill-typography>\n </div>\n )}\n <div class=\"total-amount-container\">\n <rebill-typography variant=\"h4-span\" align=\"center\" gutterBottom>\n <number-flow ref={el => (this.totalFlow = el as any)}></number-flow>\n </rebill-typography>\n {this.planFrequency && (\n <rebill-typography\n variant=\"body1\"\n color={COLORS_ENUM.SECONDARY}\n align=\"center\"\n gutterBottom\n style={{ fontWeight: 'normal' }}\n >\n {`/ ${I18nService.translate(`summary.${this.planFrequency}`, {\n count: this.planFrequencyCount || 1,\n })}`}\n </rebill-typography>\n )}\n </div>\n {sessionState.data?.itemInformation?.type !== SESSION_ITEM_TYPE_ENUM.PLAN && (\n <rebill-typography variant=\"body2\" align=\"center\" gutterBottom>\n {I18nService.translate('summary.totalAmount')}\n </rebill-typography>\n )}\n {this.allowCoupon &&\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) && (\n <discount-coupon hide-label />\n )}\n </div>\n )}\n {this.displayedComponents.includes('itemDetails') &&\n (isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) ? (\n <collapsible-card header={I18nService.translate('summary.details')}>\n {renderItemDetails(true, true, true)}\n </collapsible-card>\n ) : (\n <collapsible-card header={this.itemTitle}>\n {renderItemDetails(false, !!this.itemDescription, true)}\n </collapsible-card>\n ))}\n {this.displayedComponents.includes('discount') &&\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) &&\n !sessionState.data?.itemInformation?.trial?.trialPeriodDays &&\n !sessionState.data?.itemInformation?.debitStrategy &&\n renderDiscountAlert()}\n {this.displayedComponents.includes('timelineFreeTrial') &&\n sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data?.itemInformation?.trial?.trialPeriodDays &&\n !isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) && (\n <rebill-timeline-free-trial\n trial-period-ends-at={sessionState.data?.itemInformation?.trial?.trialPeriodEndsAt}\n trial-period-ends-reminder-at={\n sessionState.data?.itemInformation?.trial?.trialPeriodEndsReminderAt\n }\n trial-period-days={sessionState.data?.itemInformation?.trial?.trialPeriodDays}\n subtotal={sessionState.data.pricing.subtotal}\n currency={sessionState.data.pricing.currency}\n discount-applied={this.discountApplied}\n discount-type={this.discountType}\n discounted-percentage={this.discountedPercentage}\n discount-duration={this.discountDuration}\n discount-amount={this.discountAmount}\n />\n )}\n {this.displayedComponents.includes('timelineDebitDay') &&\n sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data?.itemInformation?.debitStrategy &&\n sessionState.data?.itemInformation?.debitDay &&\n !isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) && (\n <rebill-timeline-debit-day\n debit-day={sessionState.data?.itemInformation?.debitDay}\n total-amount={sessionState.data?.pricing?.total}\n plan-amount={sessionState.data?.pricing?.planAmount}\n currency={sessionState.data?.pricing?.currency}\n debit-strategy={sessionState.data?.itemInformation?.debitStrategy}\n discount-applied={this.discountApplied}\n discount-type={this.discountType}\n discounted-percentage={this.discountedPercentage}\n discount-duration={this.discountDuration}\n discount-amount={this.discountAmount}\n />\n )}\n {this.displayedComponents.includes('priceDetails') &&\n (isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) ? (\n <collapsible-card header={I18nService.translate('summary.summary')}>\n {renderPriceDetails()}\n </collapsible-card>\n ) : (\n renderPriceDetails()\n ))}\n {this.displayedComponents.includes('timelineFreeTrial') &&\n sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data?.itemInformation?.trial?.trialPeriodDays &&\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) && (\n <rebill-timeline-free-trial\n trial-period-ends-at={sessionState.data?.itemInformation?.trial?.trialPeriodEndsAt}\n trial-period-ends-reminder-at={\n sessionState.data?.itemInformation?.trial?.trialPeriodEndsReminderAt\n }\n trial-period-days={sessionState.data?.itemInformation?.trial?.trialPeriodDays}\n subtotal={sessionState.data?.pricing?.subtotal}\n currency={sessionState.data?.pricing?.currency}\n discount-applied={this.discountApplied}\n discount-type={this.discountType}\n discounted-percentage={this.discountedPercentage}\n discount-duration={this.discountDuration}\n discount-amount={this.discountAmount}\n />\n )}\n {this.displayedComponents.includes('timelineDebitDay') &&\n sessionState.data?.itemInformation?.type === SESSION_ITEM_TYPE_ENUM.PLAN &&\n sessionState.data?.itemInformation?.debitStrategy &&\n sessionState.data?.itemInformation?.debitDay &&\n isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) && (\n <rebill-timeline-debit-day\n debit-day={sessionState.data?.itemInformation?.debitDay}\n total-amount={sessionState.data?.pricing?.total}\n plan-amount={sessionState.data?.pricing?.planAmount}\n currency={sessionState.data?.pricing?.currency}\n debit-strategy={sessionState.data?.itemInformation?.debitStrategy}\n discount-applied={this.discountApplied}\n discount-type={this.discountType}\n discounted-percentage={this.discountedPercentage}\n discount-duration={this.discountDuration}\n discount-amount={this.discountAmount}\n />\n )}\n {this.displayedComponents.includes('discount') &&\n !isBreakpointBelow(this.currentBreakpoint, BREAKPOINT_ENUM.DESKTOP) &&\n !sessionState.data?.itemInformation?.trial?.trialPeriodDays &&\n !sessionState.data?.itemInformation?.debitStrategy &&\n renderDiscountAlert()}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,c as i,H as a}from"./p-BTZ7D7jU.js";import{a as s}from"./p-CV0wqtJM.js";import{I as r,c as n,s as o,b as l,f as c,d,S as h,P as p}from"./p-CfzPm0gI.js";import{C as u}from"./p-C5Pu-n-i.js";import{c as b}from"./p-bcHxwlBu.js";import{B as f,i as m,g as y}from"./p-Do_vNuMa.js";import{g,a as x,E as v,b as _}from"./p-DrvnRfm0.js";import{g as k}from"./p-DWY12C3E.js";import{g as w,a as $}from"./p-Y5IWcpY1.js";import{P as C}from"./p-56Z4edGV.js";import{f as D}from"./p-BkvKSJt0.js";import"./p-E-ZsRS8r.js";import"./p-CzeVW03r.js";const j=(t,e,i)=>{const a=document.createElement(t),[s,r]=Array.isArray(e)?[void 0,e]:[e,i];return s&&Object.assign(a,s),r==null||r.forEach((t=>a.appendChild(t))),a},T=(t,e)=>{var i;return e==="left"?t.offsetLeft:(((i=t.offsetParent instanceof HTMLElement?t.offsetParent:null)==null?void 0:i.offsetWidth)??0)-t.offsetWidth-t.offsetLeft},S=t=>t.offsetWidth>0&&t.offsetHeight>0,M=(t,e)=>{!customElements.get(t)&&customElements.define(t,e)};function A(t,e,{reverse:i=false}={}){const a=t.length;for(let s=i?a-1:0;i?s>=0:s<a;i?s--:s++)e(t[s],s)}function I(t,e,i,a){const s=e.formatToParts(t);i&&s.unshift({type:"prefix",value:i}),a&&s.push({type:"suffix",value:a});const r=[],n=[],o=[],l=[],c={},d=t=>`${t}:${c[t]=(c[t]??-1)+1}`;let h="",p=false,u=false;for(const t of s){h+=t.value;const e=t.type==="minusSign"||t.type==="plusSign"?"sign":t.type;e==="integer"?(p=true,n.push(...t.value.split("").map((t=>({type:e,value:parseInt(t)}))))):e==="group"?n.push({type:e,value:t.value}):e==="decimal"?(u=true,o.push({type:e,value:t.value,key:d(e)})):e==="fraction"?o.push(...t.value.split("").map((t=>({type:e,value:parseInt(t),key:d(e),pos:-1-c[e]})))):(p||u?l:r).push({type:e,value:t.value,key:d(e)})}const b=[];for(let t=n.length-1;t>=0;t--){const e=n[t];b.unshift(e.type==="integer"?{...e,key:d(e.type),pos:c[e.type]}:{...e,key:d(e.type)})}return{pre:r,integer:b,fraction:o,post:l,valueAsString:h,value:typeof t=="string"?parseFloat(t):t}}const L=String.raw,P=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return false}return true})(),N=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),E=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,R="--_number-flow-d-opacity",z="--_number-flow-d-width",B="--_number-flow-dx",F="--_number-flow-d",U=(()=>{try{return CSS.registerProperty({name:R,syntax:"<number>",inherits:false,initialValue:"0"}),CSS.registerProperty({name:B,syntax:"<length>",inherits:true,initialValue:"0px"}),CSS.registerProperty({name:z,syntax:"<number>",inherits:false,initialValue:"0"}),CSS.registerProperty({name:F,syntax:"<number>",inherits:true,initialValue:"0"}),true}catch{return false}})(),W="var(--number-flow-char-height, 1em)",V="var(--number-flow-mask-height, 0.25em)",q=`calc(${V} / 2)`,X="var(--number-flow-mask-width, 0.5em)",Z=`calc(${X} / var(--scale-x))`,O="#000 0, transparent 71%",H=L`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${W} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${z}) / var(--width));transform:translateX(var(${B})) scaleX(var(--scale-x));margin:0 calc(-1 * ${X});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${Z},#000 calc(100% - ${Z}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${V},#000 calc(100% - ${V}),transparent 100% ),radial-gradient(at bottom right,${O}),radial-gradient(at bottom left,${O}),radial-gradient(at top left,${O}),radial-gradient(at top right,${O});-webkit-mask-size:100% calc(100% - ${V} * 2),calc(100% - ${Z} * 2) 100%,${Z} ${V},${Z} ${V},${Z} ${V},${Z} ${V};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${q} ${X};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${B})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${F})}.digit__num,.number .section::after{padding:${q} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${R}))}`,Y=HTMLElement,G=N&&P&&U;let K;class J extends Y{constructor(){super(),this.created=false,this.batched=false;const{animated:t,...e}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,e)}get animated(){return this._animated}set animated(t){var e;this.animated!==t&&(this._animated=t,(e=this.shadowRoot)==null||e.getAnimations().forEach((t=>t.finish())))}set data(t){var e;if(t==null)return;const{pre:i,integer:a,fraction:s,post:r,value:n}=t;if(this.created){const o=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(o.value,n):this.trend,this.computedAnimated=G&&this._animated&&(!this.respectMotionPreference||!(E!=null&&E.matches))&&S(this),(e=this.plugins)==null||e.forEach((e=>{var i;return(i=e.onUpdate)==null?void 0:i.call(e,t,o,this)})),this.batched||this.willUpdate(),this._pre.update(i),this._num.update({integer:a,fraction:s}),this._post.update(r),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}if(typeof CSSStyleSheet<"u"&&this.shadowRoot.adoptedStyleSheets)K||(K=new CSSStyleSheet,K.replaceSync(H)),this.shadowRoot.adoptedStyleSheets=[K];else{const t=document.createElement("style");t.textContent=H,this.shadowRoot.appendChild(t)}this._pre=new it(this,i,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new Q(this,a,s),this.shadowRoot.appendChild(this._num.el),this._post=new it(this,r,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=true}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map((t=>t.finished))).then((()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)})),this._abortAnimationsFinish=t}}J.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:true,trend:(t,e)=>Math.sign(e-t),respectMotionPreference:true,plugins:void 0,digits:void 0};class Q{constructor(t,e,i,{className:a,...s}={}){this.flow=t,this._integer=new et(t,e,{justify:"right",part:"integer"}),this._fraction=new et(t,i,{justify:"left",part:"fraction"}),this._inner=j("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=j("span",{...s,part:"number",className:`number ${a??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:e}){this._integer.update(t),this._fraction.update(e)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const e=this._prevLeft-t.left,i=this.el.offsetWidth,a=this._prevWidth-i;this.el.style.setProperty("--width",String(i)),this.el.animate({[B]:[`${e}px`,"0px"],[z]:[a,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class tt{constructor(t,e,{justify:i,className:a,...s},r){this.flow=t,this.children=new Map,this.onCharRemove=t=>()=>{this.children.delete(t)},this.justify=i;const n=e.map((t=>this.addChar(t).el));this.el=j("span",{...s,className:`section section--justify-${i} ${a??""}`},r?r(n):n)}addChar(t,{startDigitsAtZero:e=false,...i}={}){const a=t.type==="integer"||t.type==="fraction"?new rt(this,t.type,e?0:t.value,t.pos,{...i,onRemove:this.onCharRemove(t.key)}):new nt(this,t.type,t.value,{...i,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,a),a}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach((t=>{t.el.style.top=`${t.el.offsetTop}px`,t.el.style[this.justify]=`${T(t.el,this.justify)}px`})),t.forEach((t=>{t.el.setAttribute("inert",""),t.present=false}))}addNewAndUpdateExisting(t){const e=new Map,i=new Map,a=this.justify==="left",s=a?"prepend":"append";if(A(t,(t=>{let a;this.children.has(t.key)?(a=this.children.get(t.key),i.set(t,a),this.unpop(a),a.present=true):(a=this.addChar(t,{startDigitsAtZero:true,animateIn:true}),e.set(t,a)),this.el[s](a.el)}),{reverse:a}),this.flow.computedAnimated){const t=this.el.getBoundingClientRect();e.forEach((e=>{e.willUpdate(t)}))}e.forEach(((t,e)=>{t.update(e.value)})),i.forEach(((t,e)=>{t.update(e.value)}))}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach((e=>e.willUpdate(t)))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach((e=>e.didUpdate(t)));const e=t[this.justify],i=this._prevOffset-e;i&&this.children.size&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class et extends tt{update(t){const e=new Map;this.children.forEach(((i,a)=>{t.find((t=>t.key===a))||e.set(a,i),this.unpop(i)})),this.addNewAndUpdateExisting(t),e.forEach((t=>{t instanceof rt&&t.update(0)})),this.pop(e)}}class it extends tt{update(t){const e=new Map;this.children.forEach(((i,a)=>{t.find((t=>t.key===a))||e.set(a,i)})),this.pop(e),this.addNewAndUpdateExisting(t)}}class at{constructor(t,e,{onRemove:i,animateIn:a=false}={}){this.flow=t,this.el=e,this._present=true,this._remove=()=>{var t;this.el.remove(),(t=this._onRemove)==null||t.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&a&&this.el.animate({[R]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=i}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[R]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:true})}}}class st extends at{constructor(t,e,i,a){super(t.flow,i,a),this.section=t,this.value=e,this.el=i}}class rt extends st{constructor(t,e,i,a,s){var r,n;const o=(((n=(r=t.flow.digits)==null?void 0:r[a])==null?void 0:n.max)??9)+1,l=Array.from({length:o}).map(((t,e)=>{const a=j("span",{className:"digit__num"},[document.createTextNode(String(e))]);return e!==i&&a.setAttribute("inert",""),a.style.setProperty("--n",String(e)),a})),c=j("span",{part:`digit ${e}-digit`,className:"digit"},l);c.style.setProperty("--current",String(i)),c.style.setProperty("--length",String(o)),super(t,i,c,s),this.pos=a,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=l,this.length=o}willUpdate(t){const e=this.el.getBoundingClientRect();this._prevValue=this.value;const i=e[this.section.justify]-t[this.section.justify],a=e.width/2;this._prevCenter=this.section.justify==="left"?i+a:i-a}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach(((e,i)=>i===t?e.removeAttribute("inert"):e.setAttribute("inert",""))),this.value=t}didUpdate(t){const e=this.el.getBoundingClientRect(),i=e[this.section.justify]-t[this.section.justify],a=e.width/2,s=this.section.justify==="left"?i+a:i-a,r=this._prevCenter-s;r&&this.el.animate({transform:[`translateX(${r}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const n=this.getDelta();n&&(this.el.classList.add("is-spinning"),this.el.animate({[F]:[-n,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:true}))}getDelta(){var t;if(this.flow.plugins)for(const e of this.flow.plugins){const i=(t=e.getDelta)==null?void 0:t.call(e,this.value,this._prevValue,this);if(i!=null)return i}const e=this.value-this._prevValue,i=this.flow.computedTrend||Math.sign(e);return i<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:i>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:e}}class nt extends st{constructor(t,e,i,a){const s=j("span",{className:"symbol__value",textContent:i});super(t,i,j("span",{part:`symbol ${e}`,className:"symbol"},[s]),a),this.type=e,this._children=new Map,this._onChildRemove=t=>()=>{this._children.delete(t)},this._children.set(i,new at(this.flow,s,{onRemove:this._onChildRemove(i)}))}willUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect();this._prevOffset=e[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const e=this._children.get(this.value);e&&(e.present=false);const i=this._children.get(t);if(i)i.present=true;else{const e=j("span",{className:"symbol__value",textContent:t});this.el.appendChild(e),this._children.set(t,new at(this.flow,e,{animateIn:true,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],i=this._prevOffset-e;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const ot="number-flow-connect",lt="number-flow-update";class ct extends J{constructor(){super(...arguments),this.connected=false}connectedCallback(){this.connected=true,this.dispatchEvent(new Event(ot,{bubbles:true}))}disconnectedCallback(){this.connected=false}get value(){return this._value}update(t){(!this._formatter||this._prevFormat!==this.format||this._prevLocales!==this.locales)&&(this._formatter=new Intl.NumberFormat(this.locales,this.format),this._prevFormat=this.format,this._prevLocales=this.locales),t!=null&&(this._value=t),this.dispatchEvent(new Event(lt,{bubbles:true})),this.data=I(this._value,this._formatter,this.numberPrefix,this.numberSuffix)}}M("number-flow",ct);const dt=".summary-container {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n gap: 40px;\n background-color: var(--rebill-color-background-right);\n}\n.summary-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n}\n\n.trial-pill {\n background-color: var(--rebill-color-green-light-2);\n border-radius: 4px;\n padding: 4px 6px 4px 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.total-amount-container {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n\n@media (max-width: 1024px) {\n .summary-container {\n gap: 1.5rem !important;\n background-color: var(--rebill-color-background);\n }\n .summary-header {\n margin-top: 24px;\n }\n .summary-row.total {\n margin-top: 0 !important;\n }\n}\n\n.summary-card {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 24px;\n padding: 0px;\n background: #ffffff;\n}\n\n.summary-card-info {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n.summary-card-amount {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.summary-details {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.summary-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n & > :nth-child(2) {\n text-align: right;\n }\n}\n\n.summary-row.total {\n margin-top: 1rem;\n font-weight: bold;\n}\n\n@media (min-width: 1025px) and (max-width: 1450px) {\n .summary-container {\n margin: 0px 10px;\n max-width: 400px;\n }\n}\n";const ht=class{constructor(e){t(this,e)}totalAmount;itemTitle;itemDescription;itemAmount;planFrequency;planFrequencyCount;subtotal;discount;currency;displayedComponents=["totalAmount","discount","itemDetails","priceDetails","timelineFreeTrial","timelineDebitDay"];allowCoupon=false;currentBreakpoint=f.DESKTOP;discountApplied=false;totalFlow;discountType;discountedPercentage=0;discountDuration=0;discountAmount=0;getDurationTranslation(t){const e=this.planFrequency||n.MONTH;if(t===1){return r.translate(`summary.${e}_one`)}else{return r.translate(`summary.${e}_other`,{count:t})}}componentDidLoad(){this.updateTotalFlow()}componentDidUpdate(){this.updateTotalFlow()}updateTotalFlow(){if(this.totalFlow){this.totalFlow.format={style:"currency",currency:this.currency};this.totalFlow.update(Number(o.data.pricing.total))}}handleDiscountApplied(t){this.discountApplied=t.detail}getRecalculatedInstallmentAmount(){const t=o.data?.cardInformation?.installments?.selectedInstallment;if(!t){return 0}if(o.data.pricing.discountAmount>0){const e=o.data.pricing.subtotal;const i=o.data.pricing.totalWithoutInstallment;const a=i/e;return Math.round(t.installmentAmount*a*100)/100}return t.installmentAmount}renderTotalForPlan(){return o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmountToday")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data.pricing.total,this.currency)))}renderTotalForPlanGeneral(){return o.data?.itemInformation?.type===l.PLAN&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmount")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data?.pricing?.total,this.currency)))}renderTotalForNonPlan(){return o.data?.itemInformation?.type!==l.PLAN&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmount")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data.pricing.total,this.currency)))}renderTrialPeriod(){return o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.totalAmountLastTrialPeriod")),e("rebill-typography",{variant:"body2"},c(o.data?.pricing?.total,this.currency),`/${r.translate(`summary.${this.planFrequency}`,{count:this.planFrequencyCount||1})} `))}renderDiscountAlertWrapper(){return o.data?.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"summary-row"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.trialPeriodDaysDetails",{trialDays:o.data?.itemInformation?.trial?.trialPeriodDays,count:o.data?.itemInformation?.trial?.trialPeriodDays})),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.free")))}render(){const t=(t=true,i=true,a=true)=>e("div",{class:"summary-card"},(t||i)&&e("div",{class:"summary-card-info"},t&&e("rebill-typography",{variant:"subtitle-bold",gutterBottom:true},this.itemTitle),i&&this.itemDescription&&e("rebill-typography",{variant:"body2"},this.itemDescription)),a&&e("div",{class:"summary-card-amount"},e("rebill-typography",{variant:"body2"},o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy?c(o.data?.pricing?.planAmount,this.currency):c(this.subtotal,this.currency))));const i=()=>{const t=[this.renderTotalForPlan(),this.renderTotalForPlanGeneral(),this.renderTotalForNonPlan(),this.renderTrialPeriod(),this.renderDiscountAlertWrapper()].filter(Boolean);if(t.length>1){t.splice(t.length-1,0,e("rebill-divider",null))}return e("div",{class:"summary-details"},e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.subtotal")),e("rebill-typography",{variant:"body2"},o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy?c(o.data.pricing.planAmount,this.currency):c(this.subtotal,this.currency))),o.data.pricing.installments&&e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.installments")),e("rebill-typography",{variant:"body2"},g(o.data?.pricing?.installments,this.getRecalculatedInstallmentAmount()))),this.allowCoupon&&!m(this.currentBreakpoint,f.DESKTOP)&&e("discount-coupon",null),!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&e("rebill-divider",null),t.map((t=>e("div",{class:"summary-detail-wrapper"},t))))};const a=()=>this.planFrequency&&this.discountApplied&&(this.discountedPercentage>0||this.discountAmount>0)&&e("rebill-alert",{variant:"filled",type:"success",icon:"tag-sale",size:"medium",colorIcon:u.GREEN,message:this.discountDuration?r.translate(`summary.planDiscountDescriptionWithDuration`,{discount:this.discountType===d.PERCENTAGE?`${this.discountedPercentage}%`:c(this.discountAmount,this.currency),duration:this.getDurationTranslation(this.discountDuration)}):r.translate(`summary.planDiscountDescriptionWithoutDuration`,{discount:this.discountType===d.PERCENTAGE?`${this.discountedPercentage}%`:c(this.discountAmount,this.currency)})});return e("div",{class:"summary-container"},this.displayedComponents.includes("totalAmount")&&e("div",{class:"summary-header"},o.data?.itemInformation?.type===l.PLAN&&o.data.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"trial-pill"},e("rebill-typography",{variant:"body2",align:"center",color:u.GREEN_TEXT},r.translate("summary.trialPill",{days:o.data?.itemInformation?.trial?.trialPeriodDays,count:o.data?.itemInformation?.trial?.trialPeriodDays}))),e("div",{class:"total-amount-container"},e("rebill-typography",{variant:"h4-span",align:"center",gutterBottom:true},e("number-flow",{ref:t=>this.totalFlow=t})),this.planFrequency&&e("rebill-typography",{variant:"body1",color:u.SECONDARY,align:"center",gutterBottom:true,style:{fontWeight:"normal"}},`/ ${r.translate(`summary.${this.planFrequency}`,{count:this.planFrequencyCount||1})}`)),o.data?.itemInformation?.type!==l.PLAN&&e("rebill-typography",{variant:"body2",align:"center",gutterBottom:true},r.translate("summary.totalAmount")),this.allowCoupon&&m(this.currentBreakpoint,f.DESKTOP)&&e("discount-coupon",{"hide-label":true})),this.displayedComponents.includes("itemDetails")&&(m(this.currentBreakpoint,f.DESKTOP)?e("collapsible-card",{header:r.translate("summary.details")},t(true,true,true)):e("collapsible-card",{header:this.itemTitle},t(false,!!this.itemDescription,true))),this.displayedComponents.includes("discount")&&m(this.currentBreakpoint,f.DESKTOP)&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&a(),this.displayedComponents.includes("timelineFreeTrial")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&!m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-free-trial",{"trial-period-ends-at":o.data?.itemInformation?.trial?.trialPeriodEndsAt,"trial-period-ends-reminder-at":o.data?.itemInformation?.trial?.trialPeriodEndsReminderAt,"trial-period-days":o.data?.itemInformation?.trial?.trialPeriodDays,subtotal:o.data.pricing.subtotal,currency:o.data.pricing.currency,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("timelineDebitDay")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&o.data?.itemInformation?.debitDay&&!m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-debit-day",{"debit-day":o.data?.itemInformation?.debitDay,"total-amount":o.data?.pricing?.total,"plan-amount":o.data?.pricing?.planAmount,currency:o.data?.pricing?.currency,"debit-strategy":o.data?.itemInformation?.debitStrategy,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("priceDetails")&&(m(this.currentBreakpoint,f.DESKTOP)?e("collapsible-card",{header:r.translate("summary.summary")},i()):i()),this.displayedComponents.includes("timelineFreeTrial")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-free-trial",{"trial-period-ends-at":o.data?.itemInformation?.trial?.trialPeriodEndsAt,"trial-period-ends-reminder-at":o.data?.itemInformation?.trial?.trialPeriodEndsReminderAt,"trial-period-days":o.data?.itemInformation?.trial?.trialPeriodDays,subtotal:o.data?.pricing?.subtotal,currency:o.data?.pricing?.currency,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("timelineDebitDay")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&o.data?.itemInformation?.debitDay&&m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-debit-day",{"debit-day":o.data?.itemInformation?.debitDay,"total-amount":o.data?.pricing?.total,"plan-amount":o.data?.pricing?.planAmount,currency:o.data?.pricing?.currency,"debit-strategy":o.data?.itemInformation?.debitStrategy,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("discount")&&!m(this.currentBreakpoint,f.DESKTOP)&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&a())}};ht.style=dt;const pt=".otp__otp-container{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;position:relative;margin-top:2rem}.otp__user-information{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;gap:8px}.otp__otp-description-container{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px}.otp__change-email{cursor:pointer;text-decoration:underline;margin-left:0}.otp__change-email:hover{color:var(--rebill-primary-color);text-decoration:underline}.otp__alternative{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px;margin:32px;width:100%}.otp__rebill-alert{width:100%}.otp__guest-options{display:flex;flex-direction:column;width:100%;gap:8px;margin-top:auto}.otp__verifying-container{display:flex;align-items:center;justify-content:center;gap:16px;margin:8px 0}.otp__code-resent-container rebill-typography{display:flex;line-height:1}.otp__code-resent-container rebill-icon{flex-shrink:0;display:inline-flex;vertical-align:middle;margin-right:8px}.otp__spinner{width:15px;height:15px;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:var(--rebill-color-primary);animation:spin 1s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 1024px){.otp__otp-container{min-height:calc(100vh - 40px)}.otp__guest-options{margin-top:32px}}@media (min-width: 1025px){.otp__otp-container{justify-content:flex-start}.otp__guest-options{margin-top:auto;padding-bottom:2rem}}";const ut=class{constructor(e){t(this,e);this.changeEmailClick=i(this,"changeEmailClick");this.returnForm=i(this,"returnForm");this.codeVerified=i(this,"codeVerified")}changeEmailClick;timeLeft=59;isTimerRunning=false;codeResent=false;isVerifying=false;otpValue="";returnForm;codeVerified;error=false;timer=b({duration:59,onTick:t=>{this.timeLeft=t},onComplete:()=>{this.isTimerRunning=false}});messageTimer=b({duration:5,onComplete:()=>{this.codeResent=false}});disconnectedCallback(){this.timer.stop()}startTimer(){this.timer.start();this.isTimerRunning=true}handleResendCode=async()=>{if(!this.isTimerRunning){await s.otp.generate(o.data.sessionId,{email:o.data.userInformation.email});this.codeResent=true;this.messageTimer.start();this.startTimer();this.error=false}};handleOtpChange=t=>{this.otpValue=t;if(t.length===6){this.handleVerifyOtp(t);this.error=false}};handleVerifyOtp=async t=>{this.isVerifying=true;try{const e=await s.otp.verify(o.data.sessionId,{email:o.data.userInformation.email,code:t});this.codeVerified.emit(e.data);h.setUserInformation({...e.data.customer,fullName:`${e.data.customer.firstName} ${e.data.customer.lastName}`.trim(),phoneNumber:{number:e.data.customer.phoneNumbers[0].number,countryCode:e.data.customer.phoneNumbers[0].countryCode},address:{billingAddress:{address:e.data.customer.addresses[0].lineOne,zip:e.data.customer.addresses[0].zipCode,city:e.data.customer.addresses[0].city,state:e.data.customer.addresses[0].state,country:e.data.customer.addresses[0].country}},documentType:e.data.customer.identifications[0].type,documentNumber:e.data.customer.identifications[0].value});h.setAccessToken(e.data.accessToken);h.setCustomerId(e.data.customer.id);this.otpValue="";this.error=false}catch(t){this.error=true}finally{this.isVerifying=false}};render(){return e("div",{key:"1124eac37dc54f6d3e4fdf8575bae2ec51e0ad9b",class:"otp__otp-container"},e("div",{key:"dd578affb2dd03d93d5f799340f545b4e8e49684",class:"otp__user-information"},e("div",{key:"3668bd0dc5834b0af06df4cf1062de1b6d9573fb",class:"otp__otp-description-container"},e("rebill-typography",{key:"8f187701066eab97cd715d7d10e9abe54ccf8df5",variant:"body2",class:"otp__otp-description"},r.translate("otp.description")),e("rebill-typography",{key:"cdeb77366d825819ba95aef6bd40bc85d6a63631",variant:"subtitle-bold",class:"otp__otp-description-digits"}," ",e("strong",{key:"c31c005123e3d7e6abba74a4ca9f47740ed90f0c"},r.translate("otp.descriptionDigits"))," "),e("rebill-typography",{key:"8863a76a9b9b901989958913849d0636916d6070",variant:"body2",class:"otp__otp-description-email"},r.translate("otp.descriptionEmail"))),e("rebill-typography",{key:"ef2bbdf4e25f0a57f4bede92478fa01d8ae375d6",variant:"body2",class:"otp__otp-email-line"},o.data.userInformation.email," ",!o.data.prefilledData?.email&&e("span",{key:"bdd7af00af0eac899c545962d9e4c6cfe509bd58",class:"otp__change-email",onClick:()=>{this.otpValue="";this.error=false;this.returnForm.emit(false)}},r.translate("otp.change")))),e("input-otp",{key:"7471c843f8dd5450d8c62027b014d9fdb94f1ba0",otp:this.otpValue,onOtpChange:t=>this.handleOtpChange(t.detail),error:this.error?r.translate("otp.error"):""}),this.isVerifying&&e("div",{key:"ae324f212d96bf320da9cbb3d22dc85b6d186825",class:"otp__verifying-container"},e("rebill-typography",{key:"0b8014cf9441a4f972bad53d02494bbf25378aca",variant:"subtitle2",color:u.PRIMARY},r.translate("otp.verifyingCode")),e("div",{key:"7969178c1d69da5c9445752f75ae029f3783a34d",class:"otp__spinner"})),e("rebill-button",{key:"ae03bb0fda79d6abb90d376fec3fee1fca92931c",type:"button",variant:"outline",theme:this.isTimerRunning?"secondary":"primary",disabled:this.isTimerRunning,onClick:this.handleResendCode,size:"small",style:{height:"24px",marginBottom:"8px"}},this.isTimerRunning?`${r.translate("otp.resendCodeIn")} (${this.timer.getFormattedTime()})`:r.translate("otp.resendCode")),this.codeResent&&e("div",{key:"987f6e8c24dcff5a25ba2156d0385b5f3d926b23",class:"otp__code-resent-container"},e("rebill-typography",{key:"90fa96b10fb27aeff99945467f950b47dbb542b6",variant:"subtitle2",color:u.GREEN},e("rebill-icon",{key:"348d5aeb1519c42a2c0e55b021bb7dc1fea7d241",name:"check-radio"}),r.translate("otp.codeResent"))),e("rebill-alert",{key:"ffe394d4d54e1325d19da201e6e523f7473d0302",class:"otp__rebill-alert",type:"secure",variant:"variant-info",message:r.translate("otp.infoMessage"),icon:"circle-info",alertTitle:r.translate("otp.infoTitle"),colorIcon:u.PRIMARY_DARK_LIGHT}),e("div",{key:"ef979f9b54840511db1ea6dcb2fdeee728a5c162",class:"otp__alternative"},e("rebill-typography",{key:"f4b528125adf4186ba098a9b835b69109f58b30c",variant:"body2",color:u.PRIMARY_DARK},"o")),e("div",{key:"e2b1f77e9a374509e8109ff6bb9937a524c03060",class:"otp__guest-options"},e("rebill-button",{key:"d397f7db305d6b7790f7ac485e3765c94a8b64e0",type:"button",variant:"outline",theme:"secondary",size:"medium",onClick:()=>{this.otpValue="";this.error=false;this.returnForm.emit(false)}},r.translate("otp.continueAsGuest")),e("rebill-alert",{key:"f51cad69765e40648182d9e0d37fd7a8f20aa72d",type:"secure",variant:"variant-secure",icon:"lock-outline",message:r.translate("otp.secureMessage")})))}};ut.style=pt;const bt=".modal-overlay{position:fixed;top:0;left:0;right:0;background-color:transparent;display:flex;align-items:center;justify-content:center;z-index:10000;padding:12px 16px;box-sizing:border-box}.modal-content{background:white;border-radius:8px;padding:16px 20px;width:350px;box-shadow:0 4px 12px -2px rgba(0, 0, 0, 0.15),\n 0 2px 4px -1px rgba(0, 0, 0, 0.1);position:relative;display:flex;align-items:center;gap:12px}.modal-content .alert{margin:0;flex:1;padding:0;background:transparent;border:none;box-shadow:none}.modal-content .alert{background-color:transparent !important;border-color:transparent !important}.modal-content .alert-message{display:flex;flex-direction:column;gap:4px}.modal-content .close-button{position:absolute;top:8px;right:8px;width:20px;height:20px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color 0.2s ease;padding:0;margin:0;outline:none;box-shadow:none;line-height:1}.modal-content .close-button:focus{outline:none;box-shadow:none}.modal-content .close-button:hover{background-color:#f0f0f0}.modal-content .close-button rebill-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}@media (max-width: 768px){.modal-overlay{padding:8px 12px}.modal-content{padding:12px 16px;width:100%;max-width:350px;flex-direction:row;gap:12px;text-align:left}.modal-content .close-button{position:absolute;top:8px;right:8px;width:20px;height:20px;flex-shrink:0}}";const ft=class{constructor(e){t(this,e)}visible=true;languageUpdateTrigger=0;unsubscribeCurrentLocaleStore;autoCloseTimer;componentDidLoad(){this.unsubscribeCurrentLocaleStore=h.onChange("currentLocale",(()=>{this.languageUpdateTrigger++}));this.autoCloseTimer=b({duration:30,onComplete:()=>{this.closeModal()}});this.autoCloseTimer.start()}disconnectedCallback(){if(this.unsubscribeCurrentLocaleStore){this.unsubscribeCurrentLocaleStore()}if(this.autoCloseTimer){this.autoCloseTimer.stop()}}closeModal=()=>{this.visible=false;if(this.autoCloseTimer){this.autoCloseTimer.stop()}};render(){if(!this.visible)return null;return e("div",{class:"modal-overlay"},e("div",{class:"modal-content"},e("div",{class:"alert info filled medium"},e("div",{class:"alert-icon"},e("rebill-icon",{name:"circle-info",size:"16px",color:u.ORANGE})),e("div",{class:"alert-message"},e("div",{class:"alert-title"},e("rebill-typography",{variant:"subtitle-bold",color:u.PRIMARY_DARK},r.translate("session.refreshedTitle"))),e("div",{class:"alert-message-text"},e("rebill-typography",{variant:"subtitle2",color:u.PRIMARY_DARK},r.translate("session.refreshedMessage"))))),e("button",{onClick:this.closeModal,class:"close-button",type:"button"},e("rebill-icon",{name:"close",size:"20px"}))))}};ft.style=bt;const mt=":root{--rebill-color-primary:#3b82f6;--rebill-color-primary-light:rgba(59, 130, 246, 0.1);--rebill-color-primary-hover:#2563eb;--rebill-color-primary-dark-hover:#001c4a;--rebill-color-info-border:#0156f6;--rebill-color-info-text:#172b85;--rebill-color-link:#0056f6;--rebill-color-primary-dark:#001131;--rebill-color-primary-dark-text:#000000;--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-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}.success-page__text-content{margin-bottom:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.success-page__success-content{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;overflow-x:hidden;box-sizing:border-box}.success-page__lottie-container{width:80px;height:80px}.success-page__success-content rebill-typography[variant='h3']{margin:0 !important;padding:0 !important}.success-page__success-icon{display:flex;justify-content:center;margin:0.5rem 0}.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}.success-page__card-row{display:flex;justify-content:space-between;align-items:start;min-height:20px;gap:15%}.success-page__card-row:last-of-type{margin-bottom:0}.success-page__card-value{display:flex;align-items:center;gap:0.5rem}.success-page__payment-method-display{display:flex;align-items:center;gap:8px;justify-content:center}.success-page__payment-method-display rebill-card-icon{display:inline-block;flex-shrink:0;margin-right:8px;vertical-align:middle}.success-page__payment-method-display rebill-card-icon svg{display:block}.success-page__payment-method-display rebill-icon{display:inline-block;vertical-align:middle;margin-right:8px}.success-page__payment-method-display rebill-icon div{display:block}.success-page__card-divider{height:1px;background:#e5e7eb}.success-page__download-container{display:flex;align-items:center;justify-content:flex-start;gap:2px;text-decoration:none;cursor:pointer}.success-page__contact-info{text-align:left}.success-page__reference-number{word-break:break-all;overflow-wrap:break-word;hyphens:auto;max-width:100%;text-align:right}.success-page__total-amount-container{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-direction:row}.success-page__trial-pill{background-color:var(--rebill-color-green-light-2);border-radius:4px;padding:4px 6px 4px 6px;display:flex;align-items:center;justify-content:center}.success-page__next-charge-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.success-page__next-charge-details{display:flex;justify-content:space-between;align-items:flex-start}.success-page__next-charge-amount{display:flex;flex-direction:row;align-items:center;gap:4px}.success-page__next-charge-date{text-align:right}.success-page__next-charge-section{margin-top:12px;padding-top:12px}@media (max-width: 1024px){.success-page__success-content{max-width:100%;gap:1.5rem;margin-left:16px;margin-right:16px}.success-page__info-card{width:100%;max-width:100%;padding:12px}.success-page__text-content{gap:12px}}@media (max-width: 767px){.success-page__info-card{padding:12px}.success-page__processing-container{padding:0 16px}}";const yt=class{constructor(e){t(this,e);this.successRedirect=i(this,"successRedirect")}typePaymentMethod=p.CARD;country="";bank="";paymentMethodName="";cardLastFour="";paymentDate="";referenceNumber="";trialPeriodDays=0;debitDay=0;planAmount=0;currentLocale=o.currentLocale;breakpoint=f.DESKTOP;successRedirect;loaderProgress=0;isLoadingLottie=true;showRedirectMessage=false;timeToRedirect=3e3;progressInterval;lottieContainer;lottieAnimation;unsubscribeCurrentLocaleStore;successDisplayTimeout;applyStartCaseToBrand=t=>{if(!t)return"";return t.toLowerCase().split(/[\s-]+/).map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" ")};getPaymentMethodConfig(t){const e=this.country?w(this.country):null;const i=e?.find((e=>e.type===t));const a=t===p.CASH&&this.country==="BR"?$(p.CASH,this.country)||r.translate("paymentMethods.cash"):r.translate("paymentMethods.cash");const s={[p.CARD]:{key:p.CARD,label:r.translate("paymentMethods.card"),icons:["doblecard"]},[p.CASH]:{key:p.CASH,label:a,icons:["pago-facil"]},[p.BANK_TRANSFER]:{key:p.BANK_TRANSFER,label:r.translate("paymentMethods.bank_transfer"),icons:["plus"]}};const n=s[t];return{...n,icons:i?.icons||n.icons}}getPaymentDate=()=>this.paymentDate||"";componentWillLoad(){this.breakpoint=y(window.innerWidth);this.unsubscribeCurrentLocaleStore=h.onChange("currentLocale",(()=>{this.currentLocale=o.currentLocale}));if(o.data?.itemInformation?.redirectSuccess){this.successDisplayTimeout=window.setTimeout((()=>{this.showRedirectMessage=true;this.loadLottieAnimation()}),1500);setTimeout((()=>{let t=o.data?.itemInformation?.redirectSuccess;if(t){this.successRedirect.emit({redirectUrl:t});this.stopLoaderAnimation()}}),this.timeToRedirect)}}componentDidLoad(){window.addEventListener("resize",this.handleResize);if(!o.data?.itemInformation?.redirectSuccess||this.showRedirectMessage){this.loadLottieAnimation()}}disconnectedCallback(){if(this.unsubscribeCurrentLocaleStore){this.unsubscribeCurrentLocaleStore()}if(this.successDisplayTimeout){clearTimeout(this.successDisplayTimeout)}window.removeEventListener("resize",this.handleResize);this.stopLoaderAnimation()}handleResize=()=>{this.breakpoint=y(window.innerWidth)};loadLottieAnimation=async()=>{try{const t=await import("./p-GK75wIKe.js").then((function(t){return t.l}));const e=await fetch(k(`loader-redirect1.json`));const i=await e.json();if(this.lottieContainer){this.lottieAnimation=t.default.loadAnimation({container:this.lottieContainer,renderer:"svg",loop:true,autoplay:true,animationData:i})}else{this.startLoaderAnimation()}}catch(t){this.startLoaderAnimation()}};startLoaderAnimation=()=>{const t=3e3;const e=50;const i=e/t*100;this.progressInterval=window.setInterval((()=>{this.loaderProgress=Math.min(this.loaderProgress+i,100);if(this.loaderProgress>=100){this.stopLoaderAnimation()}}),e)};stopLoaderAnimation=()=>{if(this.progressInterval){clearInterval(this.progressInterval);this.progressInterval=undefined}if(this.lottieAnimation){this.lottieAnimation.destroy();this.lottieAnimation=undefined}};handleDownloadReceipt=async()=>{try{await C.generateAndDownloadReceipt({paymentMethod:this.typePaymentMethod===p.CARD?this.textPaymentMethodCard():this.paymentMethodName,...this.typePaymentMethod===p.BANK_TRANSFER&&{bank:this.bank},...this.typePaymentMethod===p.CARD&&{cardBrand:this.applyStartCaseToBrand(o.data.cardInformation?.brand||"")},...this.typePaymentMethod===p.CARD&&{cardLastFour:this.cardLastFour??o.data.cardInformation?.lastFour},paymentDate:D(this.getPaymentDate())||D((new Date).toISOString()),email:o?.data?.userInformation?.email||"",referenceNumber:this.referenceNumber,productTitle:o?.data?.itemInformation?.title||"",subtotal:this.getFormattedSubtotal(),total:this.getFormattedTotal(),currency:o?.data?.pricing?.currency||" ",installments:o?.data?.pricing?.installments&&o?.data?.cardInformation?.installments?.selectedInstallment?`${x(o.data?.cardInformation?.installments?.selectedInstallment?.installment,_(o.data?.cardInformation?.installments?.selectedInstallment?.installmentAmount||0),o.data?.pricing?.currency,o.data?.cardInformation?.installments?.selectedInstallment?.cft,o.data?.cardInformation?.installments?.selectedInstallment?.model)}\n( ${r.translate("processing.purchaseTotal")}: ${this.getFormattedTotal()} )${o.data.cardInformation?.installments?.installments.find((t=>t.installment===o.data.cardInformation?.installments?.selectedInstallment?.installment))?.model===v.CUSTOMER_FINANCED?`\n${r.translate("installments.interest")}`:""}`:"",discountAmount:this.getFormattedDiscountAmount(),trialPeriodDays:this.trialPeriodDays||o.data?.itemInformation?.trial?.trialPeriodDays,debitDay:this.debitDay||o.data?.itemInformation?.debitDay,planAmount:this.getFormattedSubtotal(this.planAmount),trialEndDate:this.hasFreeTrial()?this.getTrialEndDateFormatted():undefined,debitDate:this.hasDebitDay()?this.getDebitDateFormatted():undefined,isBankTransfer:this.typePaymentMethod===p.BANK_TRANSFER})}catch(t){console.error("Error downloading receipt:",t)}};getFormattedDiscountAmount=()=>{if(o?.data?.pricing?.discountAmount>0){const t=c(o.data?.pricing?.discountAmount,o.data?.pricing?.currency);return`-${t}`}return undefined};getFormattedSubtotal=(t=null)=>c(t||o?.data?.pricing?.subtotal,o?.data?.pricing?.currency);getFormattedTotal=()=>{if(this.trialPeriodDays>0){return c(0,o?.data?.pricing?.currency)}return c(o?.data?.pricing?.total,o?.data?.pricing?.currency)};hasFreeTrial=()=>o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&o.data?.itemInformation?.trial?.trialPeriodDays>0;hasDebitDay=()=>{const t=o.data?.itemInformation?.debitDay;return t&&t>0};getTrialEndDateFormatted=()=>{const t=o.data?.itemInformation?.trial?.trialPeriodEndsAt;if(!t)return"";const e=new Date(t);const i=r.getCurrentLanguage();const a=i==="es"?"es-ES":i==="pt"?"pt-BR":"en-US";if(i==="en"){return`${e.toLocaleDateString(a,{month:"long"})} ${e.getDate()}`}else{return`${e.getDate()} de ${e.toLocaleDateString(a,{month:"long"})}`}};getDebitDateFormatted=()=>{const t=o.data?.itemInformation?.debitDay;if(!t||t<=0)return"";const e=new Date;const i=new Date(e);const a=r.getCurrentLanguage();const s=a==="es"?"es-ES":a==="pt"?"pt-BR":"en-US";if(t<e.getDate()){i.setMonth(e.getMonth()+1)}i.setDate(t);while(i.getDate()!==t){i.setDate(i.getDate()-1)}if(a==="en"){return`${i.toLocaleDateString(s,{month:"long"})} ${i.getDate()}`}else{return`${i.getDate()} de ${i.toLocaleDateString(s,{month:"long"})}`}};textPaymentMethodCard=()=>{const t=o.data?.cardInformation?.brand;const e=this.cardLastFour||o?.data?.cardInformation?.lastFour;const i=this.applyStartCaseToBrand(t||"");return t&&e?`${i} - ${e}`:i};render(){const t=o.data?.itemInformation?.redirectSuccess;return e("rebill-checkout-single-column",{key:"40c28fe78a71c7f4008f6827bdeca330b4528092"},e("div",{key:"df2993dc3f25b060d11c4e3c3ffa59fc28fc3206",class:"success-page__success-content"},e("rebill-typography",{key:"16eb9c3133e75c4d52d1a096b6acff572ba93397",variant:"h3",color:u.PRIMARY_DARK_TEXT},t&&this.showRedirectMessage?r.translate("processing.redirectMessage"):r.translate("processing.successTitle")),t&&this.showRedirectMessage?e("div",{class:"redirect-message"},e("div",{class:"success-page__lottie-container"},e("div",{ref:t=>this.lottieContainer=t,class:"lottie-animation"}))):e("div",{class:"success-page__success-icon"},e("svg",{width:m(this.breakpoint,f.DESKTOP)?"64":"96",height:m(this.breakpoint,f.DESKTOP)?"64":"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"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"}))),e("div",{key:"8cec829c088bbb82abbaee49bc8aa4b3ce0dd255",class:"success-page__info-card"},e("div",{key:"dd283e1c0b1913fbd07050c719dc5ffb566718cd",class:"success-page__card-row"},e("rebill-typography",{key:"0833d7e9d757cbb4adbef55c09e9f3fcb0e7e43d",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentMethod")),e("div",{key:"dd5ea4f63a4153dc3c53e399686f65f605da1d16",class:"success-page__card-value"},e("div",{key:"4ddcedf9fffaee314059e160fee0982136d1e41c",class:"success-page__payment-method-display"},this.typePaymentMethod===p.CARD&&e(e.Fragment,null,e("rebill-card-icon",{key:"aa0ac5524b9e90e61dd7114a65f8f28b079f0de4","card-brand":o.data?.cardInformation?.brand||""}),e("rebill-typography",{key:"f04a885119d825569f57f26f321bf0e23a56e4b9",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.textPaymentMethodCard())),this.typePaymentMethod===p.BANK_TRANSFER&&e("div",{key:"4536311910dbae3dfaa32a587c6d2d62b671f83d",style:{display:"flex",alignItems:"center",gap:"8px"}},e("div",{key:"0970685dd7fec8a464034aac051fdf10c7f9342e",style:{display:"flex",alignItems:"center",gap:"8px"}},this.getPaymentMethodConfig(p.BANK_TRANSFER).icons.map((t=>e("rebill-icon",{name:t,size:"24px"})))),e("rebill-typography",{key:"5c22ec9417d4fec4b471a786e102cdce910966ab",variant:"body2",color:u.PRIMARY_DARK_TEXT},r.translate("paymentMethods.bank_transfer")))))),o?.data?.pricing?.installments&&o?.data?.cardInformation?.installments?.selectedInstallment&&e("div",{key:"c8085254470360967367e0c697d2173bbea246b0"},e("div",{key:"f0142820cf451ea6a4af79d514e5fc5a13ecce1c",class:"success-page__card-row"},e("rebill-typography",{key:"291b478d45874ff07ebebb62055bee17e8a502c4",variant:"body2",color:u.SECONDARY},r.translate("summary.installments")),e("div",{key:"0f368798d36647e712c8e17db732daa34886e0ee",style:{display:"flex",flexDirection:"column",gap:"10px",alignItems:"end"}},e("rebill-typography",{key:"e75c7ecdfeedfe8b6c9474c4550110dbc9704b66",variant:"body2",color:u.PRIMARY_DARK_TEXT,style:{textAlign:"end"}},x(o.data?.cardInformation?.installments?.selectedInstallment?.installment,_(o.data?.cardInformation?.installments?.selectedInstallment?.installmentAmount||0),o.data?.pricing?.currency,o.data?.cardInformation?.installments?.selectedInstallment?.cft,o.data?.cardInformation?.installments?.selectedInstallment?.model)),e("rebill-typography",{key:"d1e2feeb6c580ddd4fc53a70f367909388971fb4",variant:"body2",color:u.PRIMARY_DARK_TEXT},`( ${r.translate("processing.purchaseTotal")}: ${this.getFormattedTotal()} )`),o.data.cardInformation?.installments?.installments.find((t=>t.installment===o.data.cardInformation?.installments?.selectedInstallment?.installment))?.model===v.CUSTOMER_FINANCED&&e("rebill-typography",{key:"a7a0eb81b444782692034c9a5b18af1356b70c13",variant:"italic",color:u.SECONDARY,style:{textAlign:"end"}},`${r.translate("installments.interest")}`)))),e("div",{key:"f274d45449db12d99982218397b2258454c0e144",class:"success-page__card-row"},e("rebill-typography",{key:"3232ad074bcb725e0b5d289e215674781b643984",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentDate")),e("rebill-typography",{key:"f39ed5c14ce3dbbd648a49ddfa1826aebfffc8e9",variant:"body2",color:u.PRIMARY_DARK_TEXT},D(this.paymentDate||this.getPaymentDate()||o.createdAt)||"")),e("div",{key:"e89db6cd5048b8649c01cc714e2aa62217e924ea",class:"success-page__card-row"},e("rebill-typography",{key:"88520367ed3df38494abc3b09fb32570d6047919",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentEmail")),e("rebill-typography",{key:"3f7f5cb7488996247736e1f7dd0da9669547127c",variant:"body2",color:u.PRIMARY_DARK_TEXT},o?.data?.userInformation?.email)),e("div",{key:"204a54fcea6b69e52a9173c00b39b4c5c8a8f69d",class:"success-page__card-row"},e("rebill-typography",{key:"47e99f1191bf0f190d6076ff6419b7c4c0a63dfe",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentReference")),e("rebill-typography",{key:"9f4df7031fcf007817b810c81de06ea0e3574b26",variant:"body2",color:u.PRIMARY_DARK_TEXT,class:"success-page__reference-number"},this.referenceNumber||""))),e("div",{key:"ec0e693b17b2982e6715bebfc1414a9f3fd015d0",class:"success-page__info-card"},e("rebill-typography",{key:"768e6846d0ad7c0b28aac797d3faa8b9c54178b2",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.purchaseDetails")),e("div",{key:"fac0b7a4391536ac9d0302ad5d0e28ccf80adc2b",class:"success-page__card-row"},e("rebill-typography",{key:"74616fc8881792094f4978542f619b7a92527ed2",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseDetail")),e("rebill-typography",{key:"ba1b24a2ad5736d5ee520046ec16905e48ef43b1",variant:"body2",color:u.PRIMARY_DARK_TEXT},o?.data?.itemInformation?.title||"")),!this.trialPeriodDays&&e("div",{key:"709715fe9019f8170a94a2fae4867110eddc57bc",class:"success-page__card-row"},e("rebill-typography",{key:"0bca6d6d2384ac460a58711707778b378613196c",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseSubtotal")),e("rebill-typography",{key:"fe0b41d30473d309c6a2f8c5b093a811c28dc2d0",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedSubtotal())),o?.data?.pricing?.discountAmount>0&&e("div",{key:"f4e8db074e120f7d2a5c4ed8b2e1f787ede63f35",class:"success-page__card-row"},e("rebill-typography",{key:"8d64ba931d3eb8f9d1b37e220a7ff96109562485",variant:"body2",color:u.SECONDARY},r.translate("summary.discount")),e("rebill-typography",{key:"9905b27eafda074b6ecf3e90559a9163a28653cd",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedDiscountAmount())),e("div",{key:"f4ea5720468f9880af8913450fc33827f714bf22",class:"success-page__card-row"},e("rebill-typography",{key:"0cbf99f711ec2834536f0471b6b4529802794fe8",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseMontoTotal")),e("div",{key:"4f2c420ae59327d608d69979d1c369d4399c512c",class:"success-page__total-amount-container"},this.trialPeriodDays>0&&e("div",{key:"f118c9433a8f0ec5e0c357b983b93ba7cf3165b2",class:"success-page__trial-pill"},e("rebill-typography",{key:"fc0454a0c8a968354e880421bf458c09076a4f4d",variant:"body2",align:"center",color:u.GREEN_TEXT},r.translate("processing.trialPill",{days:this.trialPeriodDays,count:this.trialPeriodDays}))),e("rebill-typography",{key:"837ad00c79574053f36059139673056745283433",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedTotal()))),(this.trialPeriodDays||this.hasDebitDay())&&e("div",{key:"5fe0d5808fa641b824117396d2f71669174aae2f",class:"success-page__card-divider"}),(this.hasFreeTrial()||this.hasDebitDay())&&e("div",{key:"4a868029e9ac7fe6a54aa34daa5542437b31f624",class:"success-page__next-charge-section"},e("div",{key:"386cdf33df917b23ba3ba295a08b2948fb0be9a7",class:"success-page__next-charge-header"},e("rebill-typography",{key:"6f3f562beb70ef93120f15372312c264550f7f47",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.nextCharge")),e("rebill-typography",{key:"46b630206d284af7a75c33619dc5fe6300ea388e",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.onDate",{date:this.hasFreeTrial()?this.getTrialEndDateFormatted():this.getDebitDateFormatted()}))),e("div",{key:"b1919b98e0facc9d8e68c2905e967bf6d90415b9",class:"success-page__card-row"},e("rebill-typography",{key:"b0c85dd9fe6adf2b4e014741b6b098f27cf9f552",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.hasFreeTrial()?r.translate("processing.atEndOfTrial"):""),e("rebill-typography",{key:"6af4c69ad3b293b2c0af703971e67c8c14bd96e6",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedSubtotal(this.planAmount)," ",r.translate("processing.perMonth")))),e("div",{key:"16fd48938a356debc1251f2f6d95dc5bda747b99",class:"success-page__card-divider"}),e("div",{key:"8e74365a032079c54e13581c583f2d808f3e504c",class:"success-page__download-container"},e("svg",{key:"e89ec4816ee4344a518287ba6fe6431309ca49b3",class:"download-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"cc421397abe682efabc5f0dfc07ed863e40561ef",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"})),e("rebill-button",{key:"81cc88001158130315bb70af6e76dc37d8cebf19",type:"button",variant:"download",size:"small",onClick:this.handleDownloadReceipt},e("rebill-typography",{key:"1566d391c697d99c31d991b964e649fba7866a07",variant:"overline",color:u.PRIMARY_DARK_TEXT},r.translate("processing.download")))),e("div",{key:"fd6402104418368520b007ea3e6ddd305431e0e9",class:"success-page__contact-info"},e("rebill-typography",{key:"00c8d50544a1653bc0c8fbad649f525e475f04f1",variant:"information-text",color:u.SECONDARY},r.translate("processing.downloadDescription"))))))}};yt.style=mt;const gt=":host{display:block}.inputs-container{display:flex;flex-direction:column;gap:16px;width:100%}.customer-exists{display:flex;justify-content:flex-end;margin-bottom:16px}";const xt=class{constructor(e){t(this,e);this.onRebillAccountClick=i(this,"onRebillAccountClick")}userInformation={email:"",fullName:"",countryCode:""};errors=null;customerExists=false;disabled=false;onRebillAccountClick;translateError(t){if(!t)return"";if(t.includes("validation.")||t.includes("paymentErrors.")){return r.translate(t)}return t}handleInputChange(t){if(!t.detail)return;const{id:e,value:i}=t.detail;h.setUserInformation({[e]:i})}handleBlur(t){if(!t.detail)return;const{id:e,value:i}=t.detail;h.setUserInformation({[e]:i})}getCardLabels(){const t=[];if(o.data.prefilledData.email){t.push({label:r.translate("userInformation.emailPlaceholder"),value:o.data.prefilledData.email});h.setUserInformation({...o.data.userInformation,email:o.data.prefilledData.email})}if(o.data.prefilledData.fullName){t.push({label:r.translate("userInformation.fullNamePlaceholder"),value:o.data.prefilledData.fullName});h.setUserInformation({...o.data.userInformation,fullName:o.data.prefilledData.fullName})}return t}async handleRebillAccountClick(){s.otp.generate(o.data.sessionId,{email:o.data.userInformation.email});this.onRebillAccountClick.emit(true)}renderInputs(){const t=o.data.prefilledData.email;const i=o.data.prefilledData.fullName;const a=[];if(!t){a.push(e("rebill-input-text",{id:"email",variant:"floating",label:r.translate("userInformation.emailPlaceholder"),placeholder:r.translate("userInformation.emailPlaceholder"),"left-icon":"email",clearable:true,disabled:this.disabled,error:this.translateError(this.errors?.email)}))}if(!i){a.push(e("rebill-input-text",{id:"fullName",variant:"floating",label:r.translate("userInformation.fullNamePlaceholder"),placeholder:r.translate("userInformation.fullNamePlaceholder"),disabled:this.disabled,error:this.translateError(this.errors?.fullName)}))}return a.length>0?e("div",{class:"inputs-container",style:{marginTop:a.length>0&&(t||i)?"1rem":"0"}},a):null}render(){const t=e("div",{key:"4a9fcb1b8dab46fbe80c4b2a35d053d45687d103",class:"customer-exists"},e("rebill-button",{key:"5d4a6bb913f5311e0d12e1599fe9ef9ba4ccd6e7",style:{visibility:this.customerExists?"visible":"hidden",opacity:this.customerExists?"1":"0",transition:"opacity 0.3s ease-in-out"},variant:"text",size:"small",onClick:()=>this.handleRebillAccountClick(),icon:"lock"},r.translate("userInformation.rebillAccount"),e("rebill-icon",{key:"0bb16b22cf0d7e56adc5264973ef119da9e4b790",name:"arrow-right"})));const i=o.data.prefilledData.email;const s=o.data.prefilledData.fullName;const n=i||s;return e(a,{key:"77a74a3d624d9529a6555777adefbf7aa553d89a"},t,n&&e("rebill-card",{key:"f465c928465d4dd7b713c80ccfb6cdd3cda3d186",cardTitle:r.translate("userInformation.personalInformation"),cardLabels:this.getCardLabels()}),this.renderInputs())}};xt.style=gt;export{ut as otp_component,ft as rebill_modal_overlay,ht as rebill_summary,yt as success_page,xt as user_information};
|
|
2
|
-
//# sourceMappingURL=p-65f08a9d.entry.js.map
|