@tet/tet-components 1.4.136-staging → 1.4.136-testing
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/{http-codes-M3UINy7t.js → http-codes-C-IXSZGG.js} +1 -1
- package/dist/cjs/{index-CabrFqSe.js → index-Bo0hF6YQ.js} +1 -1
- package/dist/cjs/{index-BGnwL8G_.js → index-DKg1QTRW.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{product-comparison-1cTUG5Si.js → product-comparison-f-u42TDe.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers_5.cjs.entry.js +4 -4
- package/dist/cjs/tet-assembler.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +3 -3
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-button.cjs.entry.js +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +1 -1
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +1 -1
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-card-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-components.cjs.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-countdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
- package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
- package/dist/cjs/tet-grid.cjs.entry.js +1 -1
- package/dist/cjs/tet-icon.cjs.entry.js +2 -2
- package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
- package/dist/cjs/tet-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-layout.cjs.entry.js +1 -1
- package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu.cjs.entry.js +1 -1
- package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +3 -3
- package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-notification.cjs.entry.js +1 -1
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio-blocks.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-sticky-offer.cjs.entry.js +1 -1
- package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-text.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/{translations-MNaGVsId.js → translations-f2lO6WcB.js} +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CVKvk6QH.js → p-1M2reaCU.js} +1 -1
- package/dist/components/{p-ro9Xo95n.js → p-4OtGLxTM.js} +1 -1
- package/dist/components/{p-BApdvyGP.js → p-8AKu6dF5.js} +1 -1
- package/dist/components/{p-ClZGNJ8K.js → p-9ItXFJZ6.js} +1 -1
- package/dist/components/{p-CYfNgSDa.js → p-B8ElCfnM.js} +1 -1
- package/dist/components/{p-FFUubzfa.js → p-BAes5ae6.js} +1 -1
- package/dist/components/{p-DftHVfCt.js → p-BBMx2Nbt.js} +1 -1
- package/dist/components/{p-D1D1bR1i.js → p-BQKAA3oI.js} +1 -1
- package/dist/components/{p-v3jmLiwp.js → p-BWmFtcLN.js} +1 -1
- package/dist/components/{p-YbtFFhcU.js → p-BZ0uDmYr.js} +1 -1
- package/dist/components/{p-DMha5T5b.js → p-BZ9cVPPC.js} +1 -1
- package/dist/components/{p-DF_X_yCR.js → p-B_RQCK28.js} +1 -1
- package/dist/components/{p-B6g2Jx1g.js → p-BvVWV9bH.js} +1 -1
- package/dist/components/{p-CxbzmlPi.js → p-C3ejCd37.js} +1 -1
- package/dist/components/{p-D0JPmqoE.js → p-C8XFS2Ir.js} +1 -1
- package/dist/components/{p-BMZXNpgZ.js → p-C8lJU0Vg.js} +1 -1
- package/dist/components/{p-BJO-9BKk.js → p-CAPNwyvb.js} +1 -1
- package/dist/components/{p-Bn-5RqMx.js → p-CCcx5zR_.js} +1 -1
- package/dist/components/{p-C6E2NzMm.js → p-CHl4ArFE.js} +1 -1
- package/dist/components/{p-DULF82L1.js → p-CMbAQKoe.js} +1 -1
- package/dist/components/{p-B2arF32p.js → p-CQOCAIVN.js} +1 -1
- package/dist/components/{p-STr2Oh_2.js → p-CQfy7CVi.js} +1 -1
- package/dist/components/{p-CreL0Pyq.js → p-CcOXDepg.js} +1 -1
- package/dist/components/{p-DnjC97RU.js → p-Cd8yxXoh.js} +1 -1
- package/dist/components/{p-B0hANxhW.js → p-CkP7jJd5.js} +1 -1
- package/dist/components/{p-DDpJSNPZ.js → p-CpW0oiWt.js} +1 -1
- package/dist/components/{p-BgVRLqkI.js → p-CvhD_5Lb.js} +1 -1
- package/dist/components/{p-MYt8GUyx.js → p-CwCkZCau.js} +1 -1
- package/dist/components/{p-BNvUtvgM.js → p-D2DL-fcM.js} +1 -1
- package/dist/components/{p-CTPFIY0E.js → p-D9UYdq38.js} +1 -1
- package/dist/components/{p-CQ7TBPB5.js → p-DC6jZ79O.js} +1 -1
- package/dist/components/{p-C2Vn0VjX.js → p-DHOPNeBR.js} +1 -1
- package/dist/components/{p-D7yVtwIG.js → p-DJQWSjRR.js} +1 -1
- package/dist/components/{p-cb20nj-c.js → p-DRJ0zjoF.js} +1 -1
- package/dist/components/{p-DFo9VWNT.js → p-DRnGfpXX.js} +1 -1
- package/dist/components/{p-ui757JkM.js → p-DV10hBk2.js} +1 -1
- package/dist/components/{p-B8FP4SAH.js → p-DePtMqzY.js} +1 -1
- package/dist/components/{p-Qn15HKpI.js → p-DhIzzW8J.js} +1 -1
- package/dist/components/{p-BgUiklHX.js → p-DlvjHh2y.js} +1 -1
- package/dist/components/{p-hi2u0COX.js → p-DmiedvJM.js} +1 -1
- package/dist/components/{p-BMd3uvm2.js → p-KBNSpMwX.js} +1 -1
- package/dist/components/{p-5UJFxezd.js → p-LyBC96oM.js} +1 -1
- package/dist/components/{p-CphhVM89.js → p-NwMag97r.js} +1 -1
- package/dist/components/{p-BxnOoPxY.js → p-Wztt2ajF.js} +1 -1
- package/dist/components/{p-ddXYBbI8.js → p-af-acWVA.js} +1 -1
- package/dist/components/{p-Coxpruga.js → p-fnHAW6xv.js} +1 -1
- package/dist/components/{p-JU3b-QyD.js → p-lt2y08NU.js} +1 -1
- package/dist/components/{p-ChxhsA_J.js → p-nb3MHK7A.js} +1 -1
- package/dist/components/{p-FDWBUUdX.js → p-okYmW6rN.js} +1 -1
- package/dist/components/{p-B-NrbQQs.js → p-wE6xsIpj.js} +1 -1
- package/dist/components/{p-DDjtysF3.js → p-zkmKLYHg.js} +1 -1
- package/dist/components/tet-accordion.js +1 -1
- package/dist/components/tet-address-offers-filters-products.js +1 -1
- package/dist/components/tet-address-offers-filters.js +1 -1
- package/dist/components/tet-address-offers-view.js +1 -1
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-assembler.js +1 -1
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +1 -1
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-check-out-form.js +1 -1
- package/dist/components/tet-b2b-compare-card.js +1 -1
- package/dist/components/tet-b2b-configurator-cart.js +1 -1
- package/dist/components/tet-b2b-configurator.js +1 -1
- package/dist/components/tet-banner-nav.js +1 -1
- package/dist/components/tet-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +1 -1
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +1 -1
- package/dist/components/tet-business-summary-card.js +1 -1
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +1 -1
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +1 -1
- package/dist/components/tet-cloud-configurator.js +1 -1
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.js +1 -1
- package/dist/components/tet-compare-card-v3.js +1 -1
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +1 -1
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-countdown.js +1 -1
- package/dist/components/tet-counter.js +1 -1
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +1 -1
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +1 -1
- package/dist/components/tet-divider.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +1 -1
- package/dist/components/tet-expandable-input.js +1 -1
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-feedback-form.js +1 -1
- package/dist/components/tet-filter.js +1 -1
- package/dist/components/tet-floating-block.js +1 -1
- package/dist/components/tet-font-weight.js +1 -1
- package/dist/components/tet-fonts.js +1 -1
- package/dist/components/tet-grid.js +1 -1
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +1 -1
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link-card-list.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-menu-mobile.js +1 -1
- package/dist/components/tet-menu.js +1 -1
- package/dist/components/tet-mini-compare-card.js +1 -1
- package/dist/components/tet-multi-step-dialog.js +1 -1
- package/dist/components/tet-navigation-mobile.js +1 -1
- package/dist/components/tet-news-card-list.js +1 -1
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-position.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio-blocks.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-round-stepper.js +1 -1
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-group.js +1 -1
- package/dist/components/tet-snicker-card.js +1 -1
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-sticky-offer.js +1 -1
- package/dist/components/tet-support-search.js +1 -1
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +1 -1
- package/dist/components/tet-tag-group.js +1 -1
- package/dist/components/tet-tag.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/components/tet-text.js +1 -1
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v3.js +1 -1
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/esm/{http-codes-CMh_eKUC.js → http-codes-DchfPj1v.js} +1 -1
- package/dist/esm/{index-st4TD55I.js → index-ClX9TYQY.js} +1 -1
- package/dist/esm/{index-DScKyiML.js → index-DfBhGuuz.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{product-comparison-BHzU1-QK.js → product-comparison-DJko3TwF.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +1 -1
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
- package/dist/esm/tet-address-offers-view.entry.js +3 -3
- package/dist/esm/tet-address-offers_5.entry.js +4 -4
- package/dist/esm/tet-assembler.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
- package/dist/esm/tet-autocomplete_2.entry.js +1 -1
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
- package/dist/esm/tet-b2b-configurator.entry.js +4 -4
- package/dist/esm/tet-banner-nav.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +1 -1
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-button.entry.js +1 -1
- package/dist/esm/tet-card-list.entry.js +1 -1
- package/dist/esm/tet-carousel.entry.js +3 -3
- package/dist/esm/tet-checkbox_3.entry.js +1 -1
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +1 -1
- package/dist/esm/tet-compare-card-v2.entry.js +3 -3
- package/dist/esm/tet-compare-card-v3.entry.js +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +3 -3
- package/dist/esm/tet-components.js +2 -2
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-countdown.entry.js +1 -1
- package/dist/esm/tet-counter.entry.js +1 -1
- package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
- package/dist/esm/tet-datepicker.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +3 -3
- package/dist/esm/tet-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- package/dist/esm/tet-dynamic-card.entry.js +1 -1
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +1 -1
- package/dist/esm/tet-feedback-form.entry.js +3 -3
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-floating-block.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +1 -1
- package/dist/esm/tet-fonts.entry.js +1 -1
- package/dist/esm/tet-grid.entry.js +1 -1
- package/dist/esm/tet-icon.entry.js +2 -2
- package/dist/esm/tet-inline-message.entry.js +1 -1
- package/dist/esm/tet-input.entry.js +3 -3
- package/dist/esm/tet-layout.entry.js +1 -1
- package/dist/esm/tet-link-card-list.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +1 -1
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-mini-compare-card.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
- package/dist/esm/tet-navigation-mobile.entry.js +3 -3
- package/dist/esm/tet-news-card-list.entry.js +1 -1
- package/dist/esm/tet-notification.entry.js +1 -1
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-placeholder.entry.js +1 -1
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio-blocks.entry.js +1 -1
- package/dist/esm/tet-radio_2.entry.js +1 -1
- package/dist/esm/tet-range-slider.entry.js +1 -1
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-snicker-card-group.entry.js +1 -1
- package/dist/esm/tet-snicker-card.entry.js +3 -3
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-spinner.entry.js +1 -1
- package/dist/esm/tet-stepper-input.entry.js +3 -3
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-sticky-offer.entry.js +1 -1
- package/dist/esm/tet-support-search.entry.js +1 -1
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +3 -3
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-text.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +1 -1
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/{translations-CkBHYZxq.js → translations-4zQUcigP.js} +1 -1
- package/dist/tet-components/{p-4e65a282.entry.js → p-10e789d9.entry.js} +1 -1
- package/dist/tet-components/{p-e624df8a.entry.js → p-139d4cad.entry.js} +1 -1
- package/dist/tet-components/{p-abb2da28.entry.js → p-1556076a.entry.js} +1 -1
- package/dist/tet-components/{p-7dba08b3.entry.js → p-15bddc3d.entry.js} +1 -1
- package/dist/tet-components/{p-42346043.entry.js → p-19343cc6.entry.js} +1 -1
- package/dist/tet-components/{p-47c15f9c.entry.js → p-1d997c7d.entry.js} +1 -1
- package/dist/tet-components/{p-c7f0f9f4.entry.js → p-1deb89e1.entry.js} +1 -1
- package/dist/tet-components/{p-52c129e9.entry.js → p-21a59a4f.entry.js} +1 -1
- package/dist/tet-components/{p-d1a9ded7.entry.js → p-24bdeb37.entry.js} +1 -1
- package/dist/tet-components/{p-3204266c.entry.js → p-26dd3cb0.entry.js} +1 -1
- package/dist/tet-components/{p-104a465c.entry.js → p-29948163.entry.js} +1 -1
- package/dist/tet-components/{p-79388d8a.entry.js → p-2bd1b7ec.entry.js} +1 -1
- package/dist/tet-components/{p-a28d27a1.entry.js → p-2e4e81a5.entry.js} +1 -1
- package/dist/tet-components/{p-8b5ee723.entry.js → p-2e7cb093.entry.js} +1 -1
- package/dist/tet-components/{p-b066e773.entry.js → p-306ff942.entry.js} +1 -1
- package/dist/tet-components/{p-cf0f0d6e.entry.js → p-3242f182.entry.js} +1 -1
- package/dist/tet-components/{p-9a491f9a.entry.js → p-394b9c6b.entry.js} +1 -1
- package/dist/tet-components/{p-c3862ffb.entry.js → p-39be547b.entry.js} +1 -1
- package/dist/tet-components/{p-4bd72575.entry.js → p-3ab52911.entry.js} +1 -1
- package/dist/tet-components/{p-9d704250.entry.js → p-3d8635c1.entry.js} +1 -1
- package/dist/tet-components/{p-1c627ac0.entry.js → p-43d1f956.entry.js} +1 -1
- package/dist/tet-components/{p-a86ca759.entry.js → p-47484c33.entry.js} +1 -1
- package/dist/tet-components/{p-6b27edab.entry.js → p-47b6721e.entry.js} +1 -1
- package/dist/tet-components/{p-b2798ef1.entry.js → p-499ff632.entry.js} +1 -1
- package/dist/tet-components/{p-50c5e01e.entry.js → p-4a22c9a8.entry.js} +1 -1
- package/dist/tet-components/{p-4051e024.entry.js → p-4aa2dbc8.entry.js} +1 -1
- package/dist/tet-components/{p-e2d09b10.entry.js → p-4f47079e.entry.js} +1 -1
- package/dist/tet-components/{p-1095d7d6.entry.js → p-517168f6.entry.js} +1 -1
- package/dist/tet-components/{p-016d6dd4.entry.js → p-53b4947e.entry.js} +1 -1
- package/dist/tet-components/{p-c9bc7e1c.entry.js → p-591a092a.entry.js} +1 -1
- package/dist/tet-components/{p-c7741572.entry.js → p-5a31f21d.entry.js} +1 -1
- package/dist/tet-components/{p-dac6ad5c.entry.js → p-5bd0a0c8.entry.js} +1 -1
- package/dist/tet-components/{p-854c146d.entry.js → p-616d3818.entry.js} +1 -1
- package/dist/tet-components/{p-631721d5.entry.js → p-7105253e.entry.js} +1 -1
- package/dist/tet-components/{p-b2d61826.entry.js → p-73aca8b1.entry.js} +1 -1
- package/dist/tet-components/{p-537faa1c.entry.js → p-77ae360e.entry.js} +1 -1
- package/dist/tet-components/{p-1633a0b1.entry.js → p-79e4a166.entry.js} +1 -1
- package/dist/tet-components/{p-648fe9fe.entry.js → p-7fdd634a.entry.js} +1 -1
- package/dist/tet-components/{p-a631d8c5.entry.js → p-7ffa074d.entry.js} +1 -1
- package/dist/tet-components/{p-9a5ddf08.entry.js → p-8091cf4b.entry.js} +1 -1
- package/dist/tet-components/{p-7366cfd6.entry.js → p-8436df88.entry.js} +1 -1
- package/dist/tet-components/{p-feccd822.entry.js → p-87d015b3.entry.js} +1 -1
- package/dist/tet-components/{p-76d6013c.entry.js → p-8a9d5ef1.entry.js} +1 -1
- package/dist/tet-components/{p-af0e9ee6.entry.js → p-8b3ea797.entry.js} +1 -1
- package/dist/tet-components/{p-e87a7b06.entry.js → p-8bdcb714.entry.js} +1 -1
- package/dist/tet-components/{p-87e315d4.entry.js → p-92ef3a39.entry.js} +1 -1
- package/dist/tet-components/{p-f1032caa.entry.js → p-93005df8.entry.js} +1 -1
- package/dist/tet-components/{p-6f09c992.entry.js → p-98ae4292.entry.js} +1 -1
- package/dist/tet-components/{p-6a2ed4f0.entry.js → p-9ab737dd.entry.js} +1 -1
- package/dist/tet-components/{p-bc53972c.entry.js → p-9b624822.entry.js} +1 -1
- package/dist/tet-components/{p-3AR12uVQ.js → p-B8Zjo2sa.js} +1 -1
- package/dist/tet-components/p-BGrvDoTj.js +1 -0
- package/dist/tet-components/{p-st4TD55I.js → p-ClX9TYQY.js} +1 -1
- package/dist/tet-components/{p-f4cfb3a5.entry.js → p-a0340287.entry.js} +1 -1
- package/dist/tet-components/{p-96e57ac6.entry.js → p-a410109c.entry.js} +1 -1
- package/dist/tet-components/{p-ba878c01.entry.js → p-b315a1c8.entry.js} +1 -1
- package/dist/tet-components/{p-3d981a11.entry.js → p-b4c45d6b.entry.js} +1 -1
- package/dist/tet-components/{p-54c98af8.entry.js → p-b5efc6d4.entry.js} +1 -1
- package/dist/tet-components/{p-ee844459.entry.js → p-b849774e.entry.js} +1 -1
- package/dist/tet-components/{p-6d7506fe.entry.js → p-b8c0433c.entry.js} +1 -1
- package/dist/tet-components/{p-a7f8ef9f.entry.js → p-baf6ba9e.entry.js} +1 -1
- package/dist/tet-components/{p-f2bd28a0.entry.js → p-bb325aa4.entry.js} +1 -1
- package/dist/tet-components/{p-ea5a63a1.entry.js → p-bd42d182.entry.js} +1 -1
- package/dist/tet-components/{p-891cff98.entry.js → p-c32edb32.entry.js} +1 -1
- package/dist/tet-components/p-c989a64d.entry.js +1 -0
- package/dist/tet-components/{p-b1037e46.entry.js → p-cb1c05ab.entry.js} +1 -1
- package/dist/tet-components/{p-9691d0a9.entry.js → p-cd267067.entry.js} +1 -1
- package/dist/tet-components/{p-76b13aec.entry.js → p-d2abe02d.entry.js} +1 -1
- package/dist/tet-components/{p-4b7c2be5.entry.js → p-d2db496b.entry.js} +1 -1
- package/dist/tet-components/{p-937c99dd.entry.js → p-d44bea09.entry.js} +1 -1
- package/dist/tet-components/{p-668c2484.entry.js → p-d88d8689.entry.js} +1 -1
- package/dist/tet-components/{p-7fc4c174.entry.js → p-d89ae495.entry.js} +1 -1
- package/dist/tet-components/{p-7a9e715e.entry.js → p-dca1a4c2.entry.js} +1 -1
- package/dist/tet-components/{p-86614def.entry.js → p-dfdf946f.entry.js} +1 -1
- package/dist/tet-components/{p-ca111c70.entry.js → p-e13f06c4.entry.js} +1 -1
- package/dist/tet-components/{p-16c536a8.entry.js → p-e5c07d62.entry.js} +1 -1
- package/dist/tet-components/{p-11363389.entry.js → p-eb3a8119.entry.js} +1 -1
- package/dist/tet-components/{p-259dfc83.entry.js → p-eca2fc2f.entry.js} +1 -1
- package/dist/tet-components/{p-041f46b1.entry.js → p-f5315eaf.entry.js} +1 -1
- package/dist/tet-components/{p-f96c8acc.entry.js → p-f5a86256.entry.js} +1 -1
- package/dist/tet-components/{p-6fc08d81.entry.js → p-f79c8697.entry.js} +1 -1
- package/dist/tet-components/{p-d1f560a6.entry.js → p-f7e3a24b.entry.js} +1 -1
- package/dist/tet-components/{p-CjkCTYSi.js → p-t-BNeeWq.js} +1 -1
- package/dist/tet-components/{p-2BDVUFcI.js → p-tf8lKgfD.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/tet-components/p-371e754f.entry.js +0 -1
- package/dist/tet-components/p-C8CA8-C8.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,f as e,h as o,H as i}from"./p-st4TD55I.js";import{p as n,t as s}from"./p-CjkCTYSi.js";import"./p-2BDVUFcI.js";import"./p-Bvqcvhjw.js";const r=class{constructor(e){t(this,e)}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static GRADIENT_WIDTH_FALLBACK_PX=100;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;static MOBILE_BREAKPOINT_PX=450;static UNIFIED_BUTTONS_MOBILE_MAX_DOTS=4;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;activeDotIndex=0;dotCount=1;totalItems=0;activeItem=0;isDragging=!1;dragOffset=0;isNudgeAnimating=!1;theme="light";showDots=!0;showGradient=!1;showButtons=!0;transitionDuration=500;swipeThreshold=32;transitionTiming="ease-out";buttonIconLeft="arrow-left";buttonIconRight="arrow-right";maxDots=8;label;nudgeAnimationInterval=0;unifiedButtons=!1;language="lv";safeForceUpdate(){try{e(this)}catch{}}async onLanguageChange(t){await n("tet-components",t),this.safeForceUpdate()}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){const t=this.leftGradientRef,e=this.rightGradientRef;if(!t||!e)return;if(!this.showGradient)return t.style.opacity="0",void(e.style.opacity="0");const o=this.getViewportWidth(),i=this.getSlotClientWidth(),n=Math.max(0,i-o),s=-this.getRealDragOffset(),a=Math.max(0,Math.min(n,s)),l=n-a<r.GRADIENT_VISIBILITY_THRESHOLD_PX;a<r.GRADIENT_VISIBILITY_THRESHOLD_PX?(t.style.opacity="0",e.style.opacity="1"):l?(t.style.opacity="1",e.style.opacity="0"):(t.style.opacity="1",e.style.opacity="1")}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}async componentWillLoad(){await n("tet-components",this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth(),i=Math.max(e,o);return this.isLast(i,t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=this.getClampedViewportLeft(),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getClampedViewportLeft(){const t=Math.abs(this.dragOffset),e=this.getMaxScrollableOffset();return Math.max(0,Math.min(e,t))}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=this.getClampedViewportLeft(),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=this.getClampedViewportLeft(),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(t,e){return t>0?Math.min(r.EDGE_DRAG_MAX_PX,t*r.EDGE_DRAG_RESISTANCE):t<e?e+Math.max(-r.EDGE_DRAG_MAX_PX,(t-e)*r.EDGE_DRAG_RESISTANCE):t}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const t=this.getSlotElements();if(!t)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=t.length;const e=this.getViewportWidth(),o=this.getSlotClientWidth(),i=Math.ceil(o/Math.max(1,e)),n=Number.isFinite(this.maxDots)?this.maxDots:i;let s=n;this.unifiedButtons&&e<r.MOBILE_BREAKPOINT_PX&&(s=Math.min(n,r.UNIFIED_BUTTONS_MOBILE_MAX_DOTS)),this.dotCount=Math.max(1,Math.min(s,i)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];e&&this.moveToItem(e)};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getClampedViewportLeft()>0;if(t<0&&0===n&&s){const t=e[0];return void(t&&this.moveToItem(t,0))}const r=this.getVisibleItemCountFromIndex(n),a=Math.max(0,Math.min(e.length-1,n+t*r));if(a===n)return;const l=e[a];l&&(this.moveToItem(l,a),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{this.dragOffset=-this.getMaxScrollableOffset()};getGradientWidth(){if(!this.showGradient)return 0;const t=this.leftGradientRef?.offsetWidth;return t&&t>0?t:r.GRADIENT_WIDTH_FALLBACK_PX}calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect(),i=this.getFirstItemOffset();for(const[n,s]of e.entries()){let e=s.getBoundingClientRect().left-o.left-i;const r=this.calculateGradient(s,e);if(e>=t-this.swipeThreshold+r)return{item:s,index:n}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;if(!this.hasFocusableTargetInSlide(this.activeItem))return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}hasFocusableTargetInSlide(t){return this.managedFocusableElements.some((({slideIndex:e,element:o})=>e===t&&this.isElementVisible(o)))}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;const e=Math.abs(t.screenX-this.dragPointerStartX);if(!this.dragMoved&&e>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let o=this.dragOffset;o+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const i=this.getMinDragOffset();this.dragOffset=this.applyEdgeDragResistance(o,i);const n=this.getFirstVisibleItemInViewport();n&&this.activeItem!==n.index&&(this.activeItem=n.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){return-this.getMaxScrollableOffset()}snapToEdge(t){if(0===t)return void(this.dragOffset=0);const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount();const t=Math.max(0,this.totalItems-1);this.activeItem=Math.max(0,Math.min(this.activeItem,t)),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t,0),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((e,o)=>{const i=()=>{this.registerUserInteraction();const i=o===t.length-1?0:this.getGradientWidth();this.moveToItem(e,o,i)};this.managedSlideFocusWithinListeners.push({slide:e,onFocusWithin:i}),e.addEventListener("focusin",i),this.getSlideFocusableElements(e).forEach((t=>{const e=t=>this.handleSlideKeyDown(t,o);this.managedFocusableElements.push({element:t,slideIndex:o,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:e}),t.addEventListener("keydown",e)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<r.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}getFirstItemOffset(){const t=this.getSlotElements();if(!t?.length)return 0;const e=this.trackElement.getBoundingClientRect();return t[0].getBoundingClientRect().left-e.left}moveToItem(t,e,o=0){(e||0===e)&&(this.activeItem=e);const i=t.getBoundingClientRect(),n=this.trackElement.getBoundingClientRect();let s=i.left-n.left-this.getFirstItemOffset();const r=this.calculateGradient(t,s);this.setDotIndex(s,r);const a=Math.max(0,s-Math.max(0,o));this.isLastViewport(s)?this.moveToLastScreen():this.dragOffset=-a}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const t=this.getFullyVisibleItemCount(),e=this._showButtons(t),n=this._showDots(t),a=e||n;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${r.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),o(i,{key:"c00151ad646479209955e83631a0775c30980f55"},o("div",{key:"f7b6aeb2c358551709b4f0f4c0db8c79cc3b21c9",class:{"tet-carousel":!0,[`${this.theme}`]:!0,"tet-carousel--unified-buttons":this.unifiedButtons},ref:t=>this.container=t,part:"carousel"},o("div",{key:"80364e4e2248506d51a0e30f0fdc9a78218c792a",class:"tet-carousel__container"},o("div",{key:"6ff9e3d86953b92fbbdcb3877aa1e970e8d28f32",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),o("div",{key:"ab770b3d0093488227de23b5d2455d84450f694a",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),o("div",{key:"9cfe43e672167e9afa671931ff2754e2464e8a3e",class:"tet-carousel__track "+(a?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},o("div",{key:"39ac47f9a3815ab8056f346a2aea0c026ac8229f",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":`${r.NUDGE_DISTANCE_PX}px`},onAnimationEnd:this.onNudgeAnimationEnd},o("slot",{key:"48ce41090fb1ad3673f13913dc73be36060924c1"})))),!!this.label&&o("div",{key:"f27fdba5eb711a6833821277226848f91cca7e5a",class:"tet-carousel__label"},this.label),a&&o("div",{key:"3edfa76406c3471d09cafd992ddda8fd6c6c3d8d",class:"tet-carousel__controls"},e&&o("div",{key:"498780b6324c6dbb2b2e73d7ea8a7688211adda2",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},o("tet-button",{key:"6093bd37958602ac5ab591ef0ec7c2d4f2d7d98d",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),n&&o("div",{key:"017b042cd6af5daa30cbfdc2fa3fae9571a5a140",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>o("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${s(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),e&&o("div",{key:"5a590ec78c919cc08314f6ee2bdf1d3f9ae27033",class:"tet-carousel__buttons"},o("tet-button",{key:"c738b0f1c435f69b0b80773b0003dde962394fbc",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),o("tet-button",{key:"5186fa23c40080f4b11652dfe2f57841852ab998",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:s("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}}};r.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);--carousel-button-icon-mode-padding:0.5rem;--carousel-button-icon-size:1.25rem;-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile);contain:layout}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons tet-button{--button-icon-mode-padding:var(--carousel-button-icon-mode-padding);--button-icon-size:var(--carousel-button-icon-size)}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel--unified-buttons .tet-carousel__buttons--mobile{display:none}.tet-carousel--unified-buttons .tet-carousel__buttons--desktop{display:flex !important}.tet-carousel--unified-buttons .tet-carousel__buttons{right:0.25rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}';export{r as tet_carousel}
|
|
1
|
+
import{r as t,f as e,h as o,H as i}from"./p-ClX9TYQY.js";import{p as n,t as s}from"./p-t-BNeeWq.js";import"./p-tf8lKgfD.js";import"./p-Bvqcvhjw.js";const r=class{constructor(e){t(this,e)}static NUDGE_DISTANCE_PX=16;static NUDGE_IDLE_THRESHOLD_MS=1500;static GRADIENT_VISIBILITY_THRESHOLD_PX=1;static GRADIENT_WIDTH_FALLBACK_PX=100;static EDGE_DRAG_MAX_PX=32;static EDGE_DRAG_RESISTANCE=.95;static MOUSE_DRAG_SMOOTHING_MS=60;static MOBILE_BREAKPOINT_PX=450;static UNIFIED_BUTTONS_MOBILE_MAX_DOTS=4;focusableSelector='a[href], [tabindex]:not([tabindex="-1"])';handleResize=()=>{this.getDotCount();const t=this.getSlotElements();if(!t?.length)return;const e=Math.max(0,Math.min(this.activeItem,t.length-1));this.moveToItem(t[e],e),this.checkGradient()};handleSlotChangeListener=()=>this.handleSlotChange();managedFocusableElements=[];managedSlideFocusWithinListeners=[];draggedAnchor=null;dragMoved=!1;dragPointerStartX=0;dragStartX=0;dragStartActiveItem=0;dragPointerType="";nudgeTimeoutId;nudgeGradientRafId;lastInteractionAt=0;trackElement=null;trackContentElement=null;mobileBackButtonWrapper=null;container;leftGradientRef;rightGradientRef;slotObserver;activeDotIndex=0;dotCount=1;totalItems=0;activeItem=0;isDragging=!1;dragOffset=0;isNudgeAnimating=!1;theme="light";showDots=!0;showGradient=!1;showButtons=!0;transitionDuration=500;swipeThreshold=32;transitionTiming="ease-out";buttonIconLeft="arrow-left";buttonIconRight="arrow-right";maxDots=8;label;nudgeAnimationInterval=0;unifiedButtons=!1;language="lv";safeForceUpdate(){try{e(this)}catch{}}async onLanguageChange(t){await n("tet-components",t),this.safeForceUpdate()}onActiveItemChange(){this.updateSlideFocusableTabIndexes()}checkGradient(){const t=this.leftGradientRef,e=this.rightGradientRef;if(!t||!e)return;if(!this.showGradient)return t.style.opacity="0",void(e.style.opacity="0");const o=this.getViewportWidth(),i=this.getSlotClientWidth(),n=Math.max(0,i-o),s=-this.getRealDragOffset(),a=Math.max(0,Math.min(n,s)),l=n-a<r.GRADIENT_VISIBILITY_THRESHOLD_PX;a<r.GRADIENT_VISIBILITY_THRESHOLD_PX?(t.style.opacity="0",e.style.opacity="1"):l?(t.style.opacity="1",e.style.opacity="0"):(t.style.opacity="1",e.style.opacity="1")}onNudgeAnimIntervalChange(){this.syncNudgeSchedule()}onNudgeAnimationStateChange(){this.syncNudgeGradientLoop(),this.checkGradient()}async componentWillLoad(){await n("tet-components",this.language)}getSlotElements(){const t=this.container?.querySelector("slot");if(!t)return;let e=t.assignedElements?t.assignedElements():[];return 0!==e.length?(e[0].className.includes("carousel-wrapper")&&(e=Array.from(e[0].children)),e):void 0}getViewportWidth(){return this.container?.offsetWidth||window.innerWidth}getSlotClientWidth(){return this.trackElement?.querySelector("slot")?.offsetWidth||window.innerWidth}getMaxScrollableOffset(){return Math.max(0,this.getSlotClientWidth()-this.getViewportWidth())}afterLayout(t){requestAnimationFrame((()=>requestAnimationFrame(t)))}getDotScreenLength(){return this.getSlotClientWidth()/this.dotCount}isLast(t,e){return this.getSlotClientWidth()-e<=t}isLastViewport(t){const e=this.getViewportWidth();return this.isLast(e,t)}isLastDotScreen(t,e){const o=this.getViewportWidth(),i=Math.max(e,o);return this.isLast(i,t)}getItemLayoutMetrics(){const t=this.getSlotElements();return t&&0!==t.length?t.map(((t,e)=>{const o=t.offsetLeft;return{item:t,index:e,left:o,right:o+t.offsetWidth}})):[]}getFullyVisibleItemCount(){const t=this.getItemLayoutMetrics();if(!t.length)return 0;const e=this.getViewportWidth(),o=this.getClampedViewportLeft(),i=o+e;let n=0;for(const{left:e,right:s}of t)e>=o&&s<=i&&n++;return n}getClampedViewportLeft(){const t=Math.abs(this.dragOffset),e=this.getMaxScrollableOffset();return Math.max(0,Math.min(e,t))}getVisibleItemCountFromIndex(t){const e=this.getItemLayoutMetrics();if(!e.length)return 1;const o=Math.max(0,Math.min(t,e.length-1)),i=this.getViewportWidth(),n=e[o].left+i+.5;let s=0;for(let t=o;t<e.length&&e[t].right<=n;t++)s++;return Math.max(1,s)}getFirstVisibleItemInViewport(){const t=this.getItemLayoutMetrics();if(!t.length)return null;const e=this.getClampedViewportLeft(),o=.5,i=t.find((t=>t.left<=e+o&&t.right>e+o));if(i){if(i.right-e>=(i.right-i.left)/2||i.index===t.length-1)return{item:i.item,index:i.index};const o=t[i.index+1];if(o)return{item:o.item,index:o.index}}if(e<=t[0].left+o)return{item:t[0].item,index:t[0].index};const n=t.find((t=>t.left>e+o));if(n)return{item:n.item,index:n.index};const s=t.at(-1);return{item:s.item,index:s.index}}getEdgeSnapTarget(t){const e=this.getItemLayoutMetrics();if(!e.length)return null;const o=this.getClampedViewportLeft(),i=o+this.getViewportWidth(),n=e[0],s=e.at(-1);if(t<0){const t=Math.min(n.right,i)-Math.max(n.left,o);if(t>0&&t>=(n.right-n.left)/2)return{item:n.item,index:n.index}}if(t>0){const t=Math.min(s.right,i)-Math.max(s.left,o);if(t>0&&t>=(s.right-s.left)/2)return{item:s.item,index:s.index}}return null}getSwipeTarget(t){const e=this.getSlotElements();if(!e||0===e.length)return null;const o=this.getEdgeSnapTarget(t);if(o)return o;const i=this.getFirstVisibleItemInViewport();let n=i?.index??this.dragStartActiveItem;t>0&&n<=this.dragStartActiveItem&&(n=this.dragStartActiveItem+1),t<0&&n>=this.dragStartActiveItem&&(n=this.dragStartActiveItem-1),n=Math.max(0,Math.min(e.length-1,n));const s=e[n];return s?{item:s,index:n}:null}getRealDragOffset(){return this.dragOffset+this.getCurrentNudgeTranslateX()}applyEdgeDragResistance(t,e){return t>0?Math.min(r.EDGE_DRAG_MAX_PX,t*r.EDGE_DRAG_RESISTANCE):t<e?e+Math.max(-r.EDGE_DRAG_MAX_PX,(t-e)*r.EDGE_DRAG_RESISTANCE):t}getCurrentNudgeTranslateX(){if(!this.isNudgeAnimating||!this.trackContentElement)return 0;const t=getComputedStyle(this.trackContentElement).transform;if(!t||"none"===t)return 0;try{return new DOMMatrixReadOnly(t).m41||0}catch{return 0}}getDotCount(){const t=this.getSlotElements();if(!t)return this.dotCount=1,this.totalItems=0,void(this.activeDotIndex=0);this.totalItems=t.length;const e=this.getViewportWidth(),o=this.getSlotClientWidth(),i=Math.ceil(o/Math.max(1,e)),n=Number.isFinite(this.maxDots)?this.maxDots:i;let s=n;this.unifiedButtons&&e<r.MOBILE_BREAKPOINT_PX&&(s=Math.min(n,r.UNIFIED_BUTTONS_MOBILE_MAX_DOTS)),this.dotCount=Math.max(1,Math.min(s,i)),this.activeDotIndex=this.clampDotIndex(this.activeDotIndex)}handleMove=()=>{const t=this.getSlotElements();if(!t)return;const e=t[this.activeItem];e&&this.moveToItem(e)};navigateByStep(t){this.registerUserInteraction();const e=this.getSlotElements();if(!e||0===e.length)return;const o=this.activeDotIndex,i=this.getFirstVisibleItemInViewport(),n=i?.index??this.activeItem,s=this.getClampedViewportLeft()>0;if(t<0&&0===n&&s){const t=e[0];return void(t&&this.moveToItem(t,0))}const r=this.getVisibleItemCountFromIndex(n),a=Math.max(0,Math.min(e.length-1,n+t*r));if(a===n)return;const l=e[a];l&&(this.moveToItem(l,a),Math.abs(this.activeDotIndex-o)>1&&this.moveToDotIndex(o+t))}handlePrev=()=>{this.navigateByStep(-1)};handleNext=()=>{this.navigateByStep(1)};moveToLastScreen=()=>{this.dragOffset=-this.getMaxScrollableOffset()};getGradientWidth(){if(!this.showGradient)return 0;const t=this.leftGradientRef?.offsetWidth;return t&&t>0?t:r.GRADIENT_WIDTH_FALLBACK_PX}calculateGradient(t,e){const o=this.getSlotClientWidth();let i=this.showGradient?160:0;return i=e<160?e:i,i=o-e-t.offsetWidth<160?0:i,i}calcLastScreenElement=t=>{const e=this.getSlotElements();if(!e)return null;const o=this.trackElement.getBoundingClientRect(),i=this.getFirstItemOffset();for(const[n,s]of e.entries()){let e=s.getBoundingClientRect().left-o.left-i;const r=this.calculateGradient(s,e);if(e>=t-this.swipeThreshold+r)return{item:s,index:n}}return{item:e[0],index:0}};moveToDotIndex(t){this.activeDotIndex=this.clampDotIndex(t);const e=this.getMaxScrollableOffset(),o=this.dotCount-1!==this.activeDotIndex||this.isDragging?this.activeDotIndex*this.getDotScreenLength():e,i=Math.max(0,Math.min(o,e)),n=this.calcLastScreenElement(i);if(!n)return this.activeItem=0,void(this.dragOffset=0);const{index:s}=n;this.activeItem=s,this.dragOffset=-i}handleDotClick=t=>{this.registerUserInteraction(),this.moveToDotIndex(t)};focusDot=t=>{if(!this.container)return;const e=Array.from(this.container.querySelectorAll(".tet-carousel__dot"));e[t]?.focus()};getKeyboardTargetIndex(t,e,o){if(o<1)return null;switch(t){case"ArrowRight":case"ArrowDown":return Math.min(o,e+1);case"ArrowLeft":case"ArrowUp":return Math.max(0,e-1);case"Home":return 0;case"End":return o;default:return null}}handleNavigationKeyDown(t,e,o,i,n){const s=this.getKeyboardTargetIndex(t.key,e,o);null!==s&&(t.preventDefault(),t.stopPropagation(),i(s)&&this.afterLayout((()=>n(s))))}handleDotKeyDown=(t,e)=>{if("Tab"===t.key&&t.shiftKey){if(this.hasVisibleMobileBackButtonTarget())return;if(!this.hasFocusableTargetInSlide(this.activeItem))return;return this.registerUserInteraction(),t.preventDefault(),t.stopPropagation(),void this.afterLayout((()=>this.focusSlideByIndex(this.activeItem)))}this.handleNavigationKeyDown(t,e,this.dotCount-1,(t=>(this.handleDotClick(t),!0)),(t=>this.focusDot(t)))};isElementVisible(t){if(!t.isConnected)return!1;if(t.hidden||t.hasAttribute("hidden"))return!1;if(0===t.getClientRects().length)return!1;const e=getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility}hasVisibleMobileBackButtonTarget(){if(this.isLeftNavigationDisabled())return!1;const t=this.mobileBackButtonWrapper;return!!t&&this.isElementVisible(t)}hasFocusableTargetInSlide(t){return this.managedFocusableElements.some((({slideIndex:e,element:o})=>e===t&&this.isElementVisible(o)))}onPointerDown=t=>{this.registerUserInteraction(),this.dragPointerType=t.pointerType||"mouse",t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.isDragging=!0,this.dragStartX=t.screenX,this.dragMoved=!1,this.dragPointerStartX=t.screenX,this.dragStartActiveItem=this.activeItem,document.body.style.userSelect="none",document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerUp);let e=t.target;for(this.draggedAnchor=null;e;){if("A"===e.tagName||e.getAttribute("tabindex")){this.draggedAnchor=e;break}e=e.parentElement}};onPointerMove=t=>{if(!this.isDragging)return;const e=Math.abs(t.screenX-this.dragPointerStartX);if(!this.dragMoved&&e>5&&(this.dragMoved=!0,this.trackElement))try{this.trackElement.setPointerCapture?.(t.pointerId)}catch{}let o=this.dragOffset;o+=t.screenX-this.dragStartX,this.dragStartX=t.screenX;const i=this.getMinDragOffset();this.dragOffset=this.applyEdgeDragResistance(o,i);const n=this.getFirstVisibleItemInViewport();n&&this.activeItem!==n.index&&(this.activeItem=n.index)};releaseTrackPointerCapture(t){try{this.trackElement?.releasePointerCapture?.(t)}catch{}}getMinDragOffset(){return-this.getMaxScrollableOffset()}snapToEdge(t){if(0===t)return void(this.dragOffset=0);const e=this.dragOffset>0;this.activeItem=e?0:Math.max(0,this.totalItems-1),this.activeDotIndex=e?0:Math.max(0,this.dotCount-1),this.dragOffset=e?0:t}moveBySwipeDelta(t){if(Math.abs(t)<=this.swipeThreshold)return this.activeItem=this.dragStartActiveItem,void this.afterLayout((()=>this.handleMove()));const e=this.getSwipeTarget(t<0?1:-1);e&&this.moveToItem(e.item,e.index)}finalizePointerDrag(){document.body.style.userSelect="",document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp),this.dragPointerType=""}preventClickAfterDrag(){if(!this.draggedAnchor||!this.dragMoved)return;const t=e=>{e.preventDefault(),e.stopPropagation(),this.draggedAnchor?.removeEventListener("click",t,!0)};this.draggedAnchor.addEventListener("click",t,!0)}onPointerUp=t=>{if(!this.isDragging)return;this.registerUserInteraction(),this.releaseTrackPointerCapture(t.pointerId),this.isDragging=!1;const e=this.getMinDragOffset(),o=t.screenX-this.dragPointerStartX;this.dragOffset>0||this.dragOffset<e?this.snapToEdge(e):this.moveBySwipeDelta(o),this.finalizePointerDrag(),this.preventClickAfterDrag()};_showButtons(t=this.getFullyVisibleItemCount()){return!(!this.showButtons||t>=this.totalItems)}_showDots(t=this.getFullyVisibleItemCount()){return!!this.showDots&&!(this.totalItems<=0||t>=this.totalItems)}componentDidLoad(){this.getDotCount(),window.addEventListener("resize",this.handleResize),this.checkGradient(),this.initSlotListeners(),this.syncNudgeSchedule(),this.refreshSlideFocusableElements()}handleSlotChange(){this.getDotCount();const t=Math.max(0,this.totalItems-1);this.activeItem=Math.max(0,Math.min(this.activeItem,t)),this.refreshSlideFocusableElements(),this.checkGradient(),this.safeForceUpdate()}initSlotListeners(){const t=this.container?.querySelector("slot");if(!t)return;if(t.addEventListener("slotchange",this.handleSlotChangeListener),"function"!=typeof t.assignedElements)return;const e=t.assignedElements();if(1!==e.length)return;const o=e[0];this.slotObserver=new MutationObserver((()=>this.handleSlotChange())),this.slotObserver.observe(o,{childList:!0,subtree:!1})}isTabbableElement(t){if("A"===t.tagName)return t.hasAttribute("href");const e=t.getAttribute("tabindex");return null!==e&&"-1"!==e.trim()}getSlideFocusableElements(t){const e=new Set;return this.isTabbableElement(t)&&e.add(t),Array.from(t.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),t.shadowRoot&&Array.from(t.shadowRoot.querySelectorAll(this.focusableSelector)).forEach((t=>{this.isTabbableElement(t)&&e.add(t)})),Array.from(e)}clearManagedSlideFocusableElements(){this.managedSlideFocusWithinListeners.forEach((({slide:t,onFocusWithin:e})=>{t.removeEventListener("focusin",e)})),this.managedSlideFocusWithinListeners=[],this.managedFocusableElements.forEach((({element:t,originalTabIndex:e,onKeyDown:o})=>{t.removeEventListener("keydown",o),null===e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)})),this.managedFocusableElements=[]}updateSlideFocusableTabIndexes(){this.managedFocusableElements.length&&this.managedFocusableElements.forEach((({element:t,slideIndex:e})=>{t.setAttribute("tabindex",e===this.activeItem?"0":"-1")}))}focusSlideByIndex(t){const e=this.managedFocusableElements.find((e=>e.slideIndex===t)),o=e?.element;if(o)try{o.focus({preventScroll:!0})}catch{}}handleSlideKeyDown(t,e){this.handleNavigationKeyDown(t,e,this.totalItems-1,(t=>{const e=this.getSlotElements();return!!e?.[t]&&(this.registerUserInteraction(),this.moveToItem(e[t],t,0),!0)}),(t=>this.focusSlideByIndex(t)))}refreshSlideFocusableElements(){this.clearManagedSlideFocusableElements();const t=this.getSlotElements();t?.length&&(t.forEach(((e,o)=>{const i=()=>{this.registerUserInteraction();const i=o===t.length-1?0:this.getGradientWidth();this.moveToItem(e,o,i)};this.managedSlideFocusWithinListeners.push({slide:e,onFocusWithin:i}),e.addEventListener("focusin",i),this.getSlideFocusableElements(e).forEach((t=>{const e=t=>this.handleSlideKeyDown(t,o);this.managedFocusableElements.push({element:t,slideIndex:o,originalTabIndex:t.getAttribute("tabindex"),onKeyDown:e}),t.addEventListener("keydown",e)}))})),this.updateSlideFocusableTabIndexes())}startNudgeGradientLoop(){if(this.nudgeGradientRafId)return;const t=()=>{this.checkGradient(),this.nudgeGradientRafId=this.isNudgeAnimating?requestAnimationFrame(t):void 0};this.nudgeGradientRafId=requestAnimationFrame(t)}stopNudgeGradientLoop(){this.nudgeGradientRafId&&(cancelAnimationFrame(this.nudgeGradientRafId),this.nudgeGradientRafId=void 0)}syncNudgeGradientLoop(){this.isNudgeAnimating?this.startNudgeGradientLoop():this.stopNudgeGradientLoop()}registerUserInteraction(){this.lastInteractionAt=Date.now(),this.stopNudgeAnimation()&&this.scheduleNextNudge()}hasRecentInteraction(){return!!this.lastInteractionAt&&Date.now()-this.lastInteractionAt<r.NUDGE_IDLE_THRESHOLD_MS}isRightNavigationDisabled(){return this.dotCount<=1||this.activeItem===this.totalItems-1||this.isLastViewport(-this.dragOffset)}isLeftNavigationDisabled(){return this.dotCount<=1||0===this.activeItem}isNudgeEligible(){return!(!this.trackElement||this.isDragging||this.isNudgeAnimating||this.hasRecentInteraction()||this.isRightNavigationDisabled()||0!==this.dragOffset)}scheduleNextNudge(){this.nudgeAnimationInterval<=0||(this.clearNudgeTimeout(),this.nudgeTimeoutId=setTimeout((()=>{this.nudgeTimeoutId=void 0,this.isNudgeEligible()?this.isNudgeAnimating=!0:this.scheduleNextNudge()}),this.nudgeAnimationInterval))}onNudgeAnimationEnd=t=>{"tet-carousel-nudge"===t.animationName&&(this.stopNudgeAnimation(),this.scheduleNextNudge())};stopNudgeAnimation(){const t=this.isNudgeAnimating;return t&&(this.isNudgeAnimating=!1),t}clearNudgeTimeout(){this.nudgeTimeoutId&&(clearTimeout(this.nudgeTimeoutId),this.nudgeTimeoutId=void 0)}stopNudgeSchedule(){this.clearNudgeTimeout(),this.stopNudgeAnimation()}syncNudgeSchedule(){this.stopNudgeSchedule(),this.scheduleNextNudge()}clampDotIndex(t){return Math.max(0,Math.min(t,this.dotCount-1))}setDotIndex(t,e){let o=0;const i=this.getDotScreenLength();o=this.isLastDotScreen(t,i)?this.dotCount-1:Math.round((t+e)/i),this.activeDotIndex=this.clampDotIndex(o)}getFirstItemOffset(){const t=this.getSlotElements();if(!t?.length)return 0;const e=this.trackElement.getBoundingClientRect();return t[0].getBoundingClientRect().left-e.left}moveToItem(t,e,o=0){(e||0===e)&&(this.activeItem=e);const i=t.getBoundingClientRect(),n=this.trackElement.getBoundingClientRect();let s=i.left-n.left-this.getFirstItemOffset();const r=this.calculateGradient(t,s);this.setDotIndex(s,r);const a=Math.max(0,s-Math.max(0,o));this.isLastViewport(s)?this.moveToLastScreen():this.dragOffset=-a}disconnectedCallback(){this.stopNudgeSchedule(),this.stopNudgeGradientLoop(),window.removeEventListener("resize",this.handleResize),this.clearManagedSlideFocusableElements();const t=this.container?.querySelector("slot");t&&t.removeEventListener("slotchange",this.handleSlotChangeListener),this.slotObserver&&(this.slotObserver.disconnect(),this.slotObserver=null),document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerUp)}render(){const t=this.getFullyVisibleItemCount(),e=this._showButtons(t),n=this._showDots(t),a=e||n;let l=`transform ${this.transitionDuration}ms ${this.transitionTiming}`;return this.isDragging&&(l="mouse"===this.dragPointerType?`transform ${r.MOUSE_DRAG_SMOOTHING_MS}ms linear`:"none"),o(i,{key:"c00151ad646479209955e83631a0775c30980f55"},o("div",{key:"f7b6aeb2c358551709b4f0f4c0db8c79cc3b21c9",class:{"tet-carousel":!0,[`${this.theme}`]:!0,"tet-carousel--unified-buttons":this.unifiedButtons},ref:t=>this.container=t,part:"carousel"},o("div",{key:"80364e4e2248506d51a0e30f0fdc9a78218c792a",class:"tet-carousel__container"},o("div",{key:"6ff9e3d86953b92fbbdcb3877aa1e970e8d28f32",class:"tet-carousel__gradient-left",ref:t=>{this.leftGradientRef=t}}),o("div",{key:"ab770b3d0093488227de23b5d2455d84450f694a",class:"tet-carousel__gradient-right",ref:t=>{this.rightGradientRef=t}}),o("div",{key:"9cfe43e672167e9afa671931ff2754e2464e8a3e",class:"tet-carousel__track "+(a?"":"tet-carousel__track--center"),ref:t=>this.trackElement=t,style:{transform:`translate3d(${this.dragOffset}px, 0, 0)`,transition:l,willChange:"transform"},onPointerDown:this.onPointerDown,onPointerUp:this.onPointerUp},o("div",{key:"39ac47f9a3815ab8056f346a2aea0c026ac8229f",class:{"tet-carousel__track-content":!0,"tet-carousel__track-content--nudge":this.isNudgeAnimating},ref:t=>this.trackContentElement=t,style:{"--tet-carousel-nudge-distance":`${r.NUDGE_DISTANCE_PX}px`},onAnimationEnd:this.onNudgeAnimationEnd},o("slot",{key:"48ce41090fb1ad3673f13913dc73be36060924c1"})))),!!this.label&&o("div",{key:"f27fdba5eb711a6833821277226848f91cca7e5a",class:"tet-carousel__label"},this.label),a&&o("div",{key:"3edfa76406c3471d09cafd992ddda8fd6c6c3d8d",class:"tet-carousel__controls"},e&&o("div",{key:"498780b6324c6dbb2b2e73d7ea8a7688211adda2",class:"tet-carousel__buttons tet-carousel__buttons--mobile",ref:t=>this.mobileBackButtonWrapper=t},o("tet-button",{key:"6093bd37958602ac5ab591ef0ec7c2d4f2d7d98d",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()})),n&&o("div",{key:"017b042cd6af5daa30cbfdc2fa3fae9571a5a140",class:"tet-carousel__dots"},Array.from({length:this.dotCount}).map(((t,e)=>o("button",{type:"button",tabIndex:e===this.activeDotIndex?0:-1,class:"tet-carousel__dot"+(e===this.activeDotIndex?" active":""),key:e,"aria-label":`${s(e===this.activeDotIndex?"components-carousel-indicator-button-active":"components-carousel-indicator-button")} ${e+1}/${this.dotCount}`,"aria-current":e===this.activeDotIndex?"true":void 0,onPointerDown:t=>t.stopPropagation(),onKeyDown:t=>this.handleDotKeyDown(t,e),onClick:()=>this.handleDotClick(e)})))),e&&o("div",{key:"5a590ec78c919cc08314f6ee2bdf1d3f9ae27033",class:"tet-carousel__buttons"},o("tet-button",{key:"c738b0f1c435f69b0b80773b0003dde962394fbc",class:"tet-carousel__buttons--desktop",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconLeft,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handlePrev(),accessibilityLabel:s("components-carousel-previous"),disabled:this.isLeftNavigationDisabled()}),o("tet-button",{key:"5186fa23c40080f4b11652dfe2f57841852ab998",theme:this.theme,type:"secondary",size:"medium","icon-name":this.buttonIconRight,"icon-mode":!0,onPointerDown:t=>t.stopPropagation(),onClick:()=>this.handleNext(),accessibilityLabel:s("components-carousel-next"),disabled:this.isRightNavigationDisabled()})))))}static get watchers(){return{language:[{onLanguageChange:0}],activeItem:[{onActiveItemChange:0}],showGradient:[{checkGradient:0}],dragOffset:[{checkGradient:0}],nudgeAnimationInterval:[{onNudgeAnimIntervalChange:0}],isNudgeAnimating:[{onNudgeAnimationStateChange:0}]}}};r.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--carousel-background:transparent;--carousel-dot-size:1rem;--carousel-buttons-bottom:-1rem;--carousel-dot-background:transparent;--carousel-dot-border:0.0625rem solid var(--tc-grey-70);--carousel-dot-margin:0;--carousel-dot-margin-mobile:1rem;--carousel-label-color:var(--tc-text-secondary);--carousel-dot-active-background:var(--tc-layer-inverse-primary);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover);--carousel-dot-active-hover-background:var(--tc-grey-80);--carousel-dots-gap:0.5rem;--carousel-buttons-gap:1rem;--carousel-track-gap:0;--carousel-track-height:100%;--carousel-item-width:100%;--carousel-item-height:100%;--carousel-buttons-right:2rem;--carousel-dots-bottom:-1rem;--carousel-nudge-animation-duration:1.5s;--carousel-gradient:var(--tc-background-primary);--carousel-button-icon-mode-padding:0.5rem;--carousel-button-icon-size:1.25rem;-webkit-tap-highlight-color:transparent;display:inline-block;width:100%}.tet-carousel{position:relative;width:100%;background:var(--carousel-background)}.tet-carousel.dark{--carousel-dot-active-background:var(--tc-layer-inverse-primary-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-border:0.0625rem solid var(--tc-grey-70-dark);--carousel-dot-hover-background:var(--tc-button-secondary-outline-background-hover-dark);--carousel-dot-active-hover-background:var(--tc-grey-80-dark);--carousel-label-color:var(--tc-text-secondary-dark);--carousel-gradient:var(--tc-background-primary-dark)}.tet-carousel__container{width:var(--carousel-item-width);max-width:var(--carousel-item-width);height:var(--carousel-track-height);position:relative;margin-bottom:var(--carousel-dot-margin-mobile);contain:layout}.tet-carousel__controls{position:relative;display:flex;align-items:center;justify-content:center;height:fit-content;margin-bottom:var(--carousel-dot-margin-mobile);min-height:2.75rem;touch-action:manipulation}.tet-carousel__label{color:var(--carousel-label-color);margin-left:auto;margin-right:auto;margin-bottom:1rem;text-align:center;font-family:var(--font-family-content);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:-0.003125rem}.tet-carousel__track{touch-action:pan-y;display:flex;height:var(--carousel-track-height);will-change:transform}.tet-carousel__track--center{justify-content:center}.tet-carousel__track-content{display:flex;gap:var(--carousel-track-gap);will-change:transform}.tet-carousel__track-content--nudge{animation:tet-carousel-nudge var(--carousel-nudge-animation-duration) ease-in-out}@media (hover: hover) and (pointer: fine){.tet-carousel:hover .tet-carousel__track-content--nudge{animation-play-state:paused}}.tet-carousel__track-content>*{flex-shrink:0;display:flex;align-items:center;justify-content:center}.tet-carousel__buttons{position:absolute;right:0;bottom:50%;display:flex;transform:translateY(50%);gap:var(--carousel-buttons-gap);z-index:2}.tet-carousel__buttons tet-button{--button-icon-mode-padding:var(--carousel-button-icon-mode-padding);--button-icon-size:var(--carousel-button-icon-size)}.tet-carousel__buttons--mobile{display:flex;left:0}.tet-carousel__buttons--desktop{display:none !important}.tet-carousel__dots{display:flex;width:100%;gap:var(--carousel-dots-gap);justify-content:center;align-items:center}.tet-carousel__dot{width:var(--carousel-dot-size);height:var(--carousel-dot-size);border-radius:50%;background:var(--carousel-dot-background);cursor:pointer;transition:background 0.2s;border:var(--carousel-dot-border);z-index:2;touch-action:manipulation}.tet-carousel__dot:hover{background:var(--carousel-dot-hover-background)}.tet-carousel__dot.active{background:var(--carousel-dot-active-background);border:none}.tet-carousel__dot.active:hover{background:var(--carousel-dot-active-hover-background)}.tet-carousel__dot:focus-visible{outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem}.tet-carousel--unified-buttons .tet-carousel__buttons--mobile{display:none}.tet-carousel--unified-buttons .tet-carousel__buttons--desktop{display:flex !important}.tet-carousel--unified-buttons .tet-carousel__buttons{right:0.25rem}.tet-carousel__gradient-left,.tet-carousel__gradient-right{position:absolute;top:0;display:block;width:13.75rem;height:100%;transition:opacity 0.4s ease-out;pointer-events:none;z-index:20;opacity:0}.tet-carousel__gradient-left{background:linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);left:0}.tet-carousel__gradient-right{background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--carousel-gradient) 100%);right:0}@keyframes tet-carousel-nudge{0%{transform:translateX(0)}50%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}70%{transform:translateX(calc(var(--tet-carousel-nudge-distance) * -1))}100%{transform:translateX(0)}}@media all and (min-width: 46.25rem){.tet-carousel__controls{margin-bottom:var(--carousel-dot-margin)}.tet-carousel__label{font-size:1rem;line-height:1.5rem;letter-spacing:-0.00625rem}.tet-carousel__buttons{right:0.25rem}.tet-carousel__buttons--mobile{display:none}.tet-carousel__buttons--desktop{display:flex !important}}@media all and (min-width: 90rem){.tet-carousel__label{font-size:1.125rem;line-height:1.75rem}}';export{r as tet_carousel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,a as o,h as r,H as a}from"./p-st4TD55I.js";import"./p-2BDVUFcI.js";import{p as i}from"./p-C8CA8-C8.js";import{f as n}from"./p-CLiAL6k7.js";import"./p-BjOGAbQL.js";const s=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[tabindex]:not([tabindex="-1"])',"audio[controls]","video[controls]","[contenteditable]","[data-contains-focusable-content]"],c=t=>{if(!t)return!1;if((t=>t.matches(s.join(",")))(t))return!0;if(t instanceof HTMLElement&&t.shadowRoot&&t.shadowRoot.querySelectorAll(s.join(",")).length>0)return!0;for(const e of Array.from(t.children))if(c(e))return!0;return!1},l=class{constructor(o){t(this,o),this.compareCardDataChange=e(this,"compareCardDataChange"),this.compareCardsDidRender=e(this,"compareCardsDidRender")}data;vatText;forceColumn;theme;layout="default";cardScript;changedProductCode;isNetflixCard=!1;darkMode=!1;initializedState=!1;onDataChange(){this.compareCardDataChange.emit(),this.initializedState=!0}compareCardDataChange;compareCardsDidRender;showLoader=!0;onOptionSelected(t){const e=[];this.changedProductCode=t.detail.value,e.push(this.changedProductCode),this.getProductData(e.join(","),!1)}get host(){return o(this)}async componentWillLoad(){let t=[];this.data.forEach((e=>{void 0!==e.productCode&&(t.includes(e.productCode)||t.push(e.productCode))})),t.length>0?await this.getProductData(t.join(",")):this.showLoader=!1}async componentDidRender(){this.compareCardsDidRender.emit()}getProductData(t,e=!0){e&&(this.showLoader=!0),i(t).then((t=>{const e=[];this.data.forEach((o=>{let r=o.productCode;o.isNetflixCard&&(this.changedProductCode===o.secondaryProductCode?r=o.secondaryProductCode:this.changedProductCode===o.productCode&&(r=o.productCode));const a=t.products[r];a&&(o=n(o,r,a,this.theme)),e.push(o)})),this.data=e,this.showLoader=!1}))}renderLoader=()=>r("div",{class:"cards"},[...Array(3)].map((()=>[r("tet-placeholder",{class:"tet-placeholder",height:"27rem",width:"21.5rem",darkTheme:this.darkMode})])));render(){return r(a,{key:"391bd4084c794241d3e47fff77b0bec69fbfd476",class:{"must-initialize":!0,initialized:this.initializedState}},this.showLoader?this.renderLoader():r("div",{class:{"tet-compare-cards-wrapper":!0,"force-column":this.forceColumn}},r("div",{class:{cards:!0,[`${this.layout}`]:!0}},this.data.map(((t,e)=>r("tet-compare-card",{class:{"tet-compare-card":!0,"tet-compare-card--thumbnail":!!t.thumbnail},index:e,language:t.language,options:t.options,"card-type":t.cardType,theme:t.theme,"best-choice":t.bestChoice,"color-icons":t.colorIcons,"full-height":t.fullHeight,"card-header":t.cardHeader,logo:t.logo,image:t.image,"card-background-color":t.cardBackgroundColor,"card-script":t.cardScript,hideBestChoiceBorder:t.hideBestChoiceBorder,withBorder:t.withBorder,"best-choice-text-position":t.bestChoiceTextPosition,bestChoiceTextFloating:t.bestChoiceTextFloating,priceShownVertically:t.priceShownVertically,"secondary-link-position":t.secondaryLinkPosition,thumbnail:t.thumbnail,thumbnailAlt:t.thumbnailAlt,showBulletPoints:t.showBulletPoints,showSubTitle:t.showSubTitle,showHelper:t.showHelper,isNetflixCard:t.isNetflixCard,darkMode:this.darkMode},r("div",{slot:"image-slot"},r("img",{style:{width:"100%"},src:t.image,alt:(t.image??"").split("/")?.pop()?.split(".")[0]??t.image,loading:"lazy"})),r("div",{slot:"logo-slot"},r("img",{style:{width:"100%"},src:t.logo,alt:(t.logo??"").split("/")?.pop()?.split(".")[0]??t.logo,loading:"lazy"})),r("div",{slot:"description-slot",innerHTML:t.cardDescription,class:this.darkMode?"dark":""}))))),this.vatText?r("div",{class:"vat"},r("div",{class:"vat__text",innerHTML:this.vatText})):""),this.cardScript?r("link",{href:this.cardScript,rel:"stylesheet",type:"text/css"}):"")}static get watchers(){return{data:[{onDataChange:0}]}}};l.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:root{--tet-link-color:var(--tc-text-primary);--tet-link-color-hover:var(--tc-text-secondary);--tet-link-color-active:var(--tc-text-tertiary);--tet-link-color-focus:var(--tc-blue-40);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled);--tet-link-secondary-color:var(--tc-text-secondary);--tet-link-secondary-color-hover:var(--tc-text-primary)}.tet-link,.tet-link__arrow{text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;color:var(--tet-link-color);position:relative;line-height:1.5rem;cursor:pointer}.tet-link.dark,.tet-link__arrow.dark{--tet-link-color:var(--tc-text-primary-dark);--tet-link-color-hover:var(--tc-text-secondary-dark);--tet-link-color-active:var(--tc-text-tertiary-dark);--tet-link-color-focus:var(--tc-blue-40-dark);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled-dark);--tet-link-secondary-color:var(--tc-text-secondary-dark);--tet-link-secondary-color-hover:var(--tc-text-primary-dark)}.tet-link.tet-link--secondary,.tet-link__arrow.tet-link--secondary{--tet-link-color:var(--tet-link-secondary-color);--tet-link-color-hover:var(--tet-link-secondary-color-hover)}.tet-link tet-icon,.tet-link__arrow tet-icon{--icon-color:var(--tet-link-color)}.tet-link:hover,.tet-link__arrow:hover{color:var(--tet-link-color-hover)}.tet-link:hover tet-icon,.tet-link__arrow:hover tet-icon{--icon-color:var(--tet-link-color-hover)}.tet-link:active,.tet-link__arrow:active{color:var(--tet-link-color-active)}.tet-link:active tet-icon,.tet-link__arrow:active tet-icon{--icon-color:var(--tet-link-color-active)}.tet-link:focus-visible,.tet-link__arrow:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--tet-link-color-focus);border-radius:0.125rem}.tet-link.disabled,.tet-link__arrow.disabled{color:var(--tet-link-color-disabled);pointer-events:none;cursor:auto}.tet-link.disabled tet-icon,.tet-link__arrow.disabled tet-icon{--icon-color:var(--tet-link-color-disabled)}.tet-link.disabled:focus-visible,.tet-link__arrow.disabled:focus-visible{outline:none}.tet-link tet-icon,.tet-link__arrow tet-icon{padding-left:0.25rem;padding-right:0.25rem;--icon-container-display:inline-block}.tet-link__arrow{padding-right:1.5rem}.tet-link__arrow::after{content:"--\x3e";position:absolute;white-space:nowrap;display:inline-block;text-decoration:none;padding-left:0.25rem;letter-spacing:initial;transition:all 0.15s ease-in}.tet-link__arrow:hover::after{padding-left:0.375rem}:host{--compare-cards-wrap:nowrap;--compare-cards-flex-direction:row;--compare-cards-flex-align-items:center;--compare-cards-padding:1.5rem;--compare-cards-price-padding:0;--compare-cards-border-radius:1.5rem;--compare-cards-new-price-font-size:2.5rem;--compare-cards-old-price-font-size:1rem;--compare-cards-new-currency-font-size:1.125rem;--compare-cards-title-margin-top:1.25rem;--compare-cards-helper-margin-top:0;--compare-cards-card-max-width:32rem;--compare-cards-price-wrapper-margin-top:auto;--compare-cards-secondary-link-font-size:0.75rem;--compare-cards-price-line-height:3rem;--compare-cards-thumbnail-display:flex;--compare-cards-thumbnail-card-radius:0 var(--compare-cards-border-radius) var(--compare-cards-border-radius) 0;--compare-cards-thumbnail-card-width:44rem;display:block}:host([theme=dark]) .card,:host([theme=dark]){--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.vat{color:var(--color-text-secondary);font:400 0.75rem/1rem Inter, Gilroy, Arial, sans-serif;display:flex;justify-content:center}.vat__text{width:100%;text-align:center;padding-top:0.5rem}.cards{display:flex;flex-direction:var(--compare-cards-flex-direction);flex-wrap:var(--compare-cards-wrap);gap:1rem;justify-content:center}.cards>*:nth-child(n+5){margin-top:1rem}.cards .tet-placeholder{--placeholder-border-radius:1.5rem}.cards .tet-compare-card{--compare-card-padding:var(--compare-cards-padding);--compare-card-price-padding:var(--compare-cards-price-padding);--compare-card-border-radius:var(--compare-cards-border-radius);--compare-card-new-price-font-size:var(--compare-cards-new-price-font-size);--compare-card-old-price-font-size:var(--compare-cards-old-price-font-size);--compare-card-new-currency-font-size:var(--compare-cards-new-currency-font-size);--compare-card-title-margin-top:var(--compare-cards-title-margin-top);--compare-card-helper-margin-top:var(--compare-cards-helper-margin-top);--compare-card-price-wrapper-margin-top:var(--compare-cards-price-wrapper-margin-top);--compare-card-secondary-link-font-size:var(--compare-cards-secondary-link-font-size);--compare-card-price-line-height:var(--compare-cards-price-line-height);--compare-card-thumbnail-display:var(--compare-cards-thumbnail-display);--compare-card-thumbnail-card-radius:var(--compare-cards-thumbnail-card-radius);--compare-card-thumbnail-card-width:var(--compare-cards-thumbnail-card-width)}.cards .tet-compare-card.dark{--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.cards .tet-compare-card--thumbnail{--compare-cards-card-max-width:var(--compare-card-thumbnail-card-width)}.cards .tet-compare-card[card-type=regular]{max-width:var(--compare-cards-card-max-width);width:100%}.cards.column-two{display:grid;grid-template-columns:repeat(2, minmax(19rem, 25rem))}.force-column .cards.column-two{grid-template-columns:minmax(1rem, 32rem)}.cards.column-four{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem}.force-column .cards{--compare-cards-wrap:wrap;--compare-cards-flex-direction:column;align-items:var(--compare-cards-flex-align-items)}.force-column .cards>:nth-child(-n+4){margin-top:1rem}';const d=class{constructor(o){t(this,o),this.select=e(this,"tabSelected")}get element(){return o(this)}tabContentSlides=[];dataName;defaultTab=0;parentContainer=document;useVisibility=!1;select;selectedId;previousDataName;previousParentContainer;theme;themeObserver;componentWillLoad(){this.previousDataName=this.dataName,this.previousParentContainer=this.parentContainer}componentDidLoad(){this.init(),this.selectTab(this.defaultTab)}onDataNameChange(t){t&&(this.detachOldListeners(),this.previousDataName=this.dataName,this.initTabEventHandler())}onParentContainerChange(){this.detachOldListeners(),this.previousParentContainer=this.parentContainer,this.initTabEventHandler()}async init(){this.initTabContentSlides(),this.initTabEventHandler(),this.initParentTheme()}initParentTheme(){const t=this.parentContainer.querySelector(`tet-tab-header[data-name="${this.dataName}"]`);this.theme=t?.getAttribute("theme")??""}initTabContentSlides(){this.tabContentSlides=Array.from(this.element.children);const t=this.parentContainer.querySelector(`tet-tab-header[data-name="${this.dataName}"]`),e=t?.getAttribute("data-id-suffix")??"";this.tabContentSlides.forEach(((t,o)=>{const r=t.firstElementChild;let a=!1;r&&(a=c(r)),t.setAttribute("role","tabpanel"),t.setAttribute("tabindex",a?"-1":"0"),t.setAttribute("id",`tabpanel-${o+1}-${e}`),t.setAttribute("aria-labelledby",`tab-${o+1}-${e}`),t.setAttribute("aria-hidden","true")}))}initTabEventHandler(){this.parentContainer.querySelectorAll(`tet-tab-header[data-name="${this.dataName}"]`).forEach(((t,e)=>{t.addEventListener("tabSelected",this.onTabSelect),0===e&&(this.themeObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"theme"===t.attributeName&&this.initParentTheme()}))})),this.themeObserver.observe(t,{attributes:!0,attributeFilter:["theme"]}))}))}detachOldListeners(){this.themeObserver&&this.themeObserver.disconnect(),this.previousParentContainer.querySelectorAll(`tet-tab-header[data-name="${this.previousDataName}"]`).forEach((t=>{t.removeEventListener("tabSelected",this.onTabSelect)}))}onTabSelect=t=>{this.selectTab(t.detail.new)};async selectTab(t){if(!this.tabContentSlides.length)return;const e=Number.parseInt(t.toString());e.toString()===t.toString()&&(t=e),this.tabContentSlides.forEach((t=>{t.classList.remove("active"),t.setAttribute("aria-hidden","true")}));let o=this.tabContentSlides[0];if("number"==typeof t)this.tabContentSlides[t]&&(o=this.tabContentSlides[t]);else{const e=this.tabContentSlides.find((e=>e.getAttribute("data-name")===t));e&&(o=e)}o.classList.add("active"),o.setAttribute("aria-hidden","false"),this.select.emit({new:t,old:this.selectedId}),this.selectedId=t}render(){return r(a,{key:"8f696bd4d86575b2fc4b55dab8378be91f4807db"},r("div",{key:"bdb0e9231c8e119566f8ad9f636d38ae5c7733a8",class:{"tet-tab-content":!0,"use-visibility":this.useVisibility,[this.theme]:!0}},r("slot",{key:"52d7330b421acc3c756f1dec3c267be08aa9213b"})))}static get watchers(){return{dataName:[{onDataNameChange:0}],parentContainer:[{onParentContainerChange:0}]}}};d.style=".tet-tab-content ::slotted(*){display:none}.tet-tab-content ::slotted(.active){display:block}.tet-tab-content ::slotted(.active:focus-visible){outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;border-radius:0.125rem}.tet-tab-content.dark ::slotted(.active:focus-visible){outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem;transition:outline 0s}.tet-tab-content.use-visibility ::slotted(*){visibility:hidden;position:absolute;top:-9999px;left:-9999px;right:9999px;display:block}.tet-tab-content.use-visibility ::slotted(.active){visibility:revert;position:relative;top:0;left:0}";export{l as tet_compare_cards,d as tet_tab_content}
|
|
1
|
+
import{r as t,c as e,a as o,h as r,H as a}from"./p-ClX9TYQY.js";import"./p-tf8lKgfD.js";import{p as i}from"./p-BGrvDoTj.js";import{f as n}from"./p-CLiAL6k7.js";import"./p-BjOGAbQL.js";const s=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[tabindex]:not([tabindex="-1"])',"audio[controls]","video[controls]","[contenteditable]","[data-contains-focusable-content]"],c=t=>{if(!t)return!1;if((t=>t.matches(s.join(",")))(t))return!0;if(t instanceof HTMLElement&&t.shadowRoot&&t.shadowRoot.querySelectorAll(s.join(",")).length>0)return!0;for(const e of Array.from(t.children))if(c(e))return!0;return!1},l=class{constructor(o){t(this,o),this.compareCardDataChange=e(this,"compareCardDataChange"),this.compareCardsDidRender=e(this,"compareCardsDidRender")}data;vatText;forceColumn;theme;layout="default";cardScript;changedProductCode;isNetflixCard=!1;darkMode=!1;initializedState=!1;onDataChange(){this.compareCardDataChange.emit(),this.initializedState=!0}compareCardDataChange;compareCardsDidRender;showLoader=!0;onOptionSelected(t){const e=[];this.changedProductCode=t.detail.value,e.push(this.changedProductCode),this.getProductData(e.join(","),!1)}get host(){return o(this)}async componentWillLoad(){let t=[];this.data.forEach((e=>{void 0!==e.productCode&&(t.includes(e.productCode)||t.push(e.productCode))})),t.length>0?await this.getProductData(t.join(",")):this.showLoader=!1}async componentDidRender(){this.compareCardsDidRender.emit()}getProductData(t,e=!0){e&&(this.showLoader=!0),i(t).then((t=>{const e=[];this.data.forEach((o=>{let r=o.productCode;o.isNetflixCard&&(this.changedProductCode===o.secondaryProductCode?r=o.secondaryProductCode:this.changedProductCode===o.productCode&&(r=o.productCode));const a=t.products[r];a&&(o=n(o,r,a,this.theme)),e.push(o)})),this.data=e,this.showLoader=!1}))}renderLoader=()=>r("div",{class:"cards"},[...Array(3)].map((()=>[r("tet-placeholder",{class:"tet-placeholder",height:"27rem",width:"21.5rem",darkTheme:this.darkMode})])));render(){return r(a,{key:"391bd4084c794241d3e47fff77b0bec69fbfd476",class:{"must-initialize":!0,initialized:this.initializedState}},this.showLoader?this.renderLoader():r("div",{class:{"tet-compare-cards-wrapper":!0,"force-column":this.forceColumn}},r("div",{class:{cards:!0,[`${this.layout}`]:!0}},this.data.map(((t,e)=>r("tet-compare-card",{class:{"tet-compare-card":!0,"tet-compare-card--thumbnail":!!t.thumbnail},index:e,language:t.language,options:t.options,"card-type":t.cardType,theme:t.theme,"best-choice":t.bestChoice,"color-icons":t.colorIcons,"full-height":t.fullHeight,"card-header":t.cardHeader,logo:t.logo,image:t.image,"card-background-color":t.cardBackgroundColor,"card-script":t.cardScript,hideBestChoiceBorder:t.hideBestChoiceBorder,withBorder:t.withBorder,"best-choice-text-position":t.bestChoiceTextPosition,bestChoiceTextFloating:t.bestChoiceTextFloating,priceShownVertically:t.priceShownVertically,"secondary-link-position":t.secondaryLinkPosition,thumbnail:t.thumbnail,thumbnailAlt:t.thumbnailAlt,showBulletPoints:t.showBulletPoints,showSubTitle:t.showSubTitle,showHelper:t.showHelper,isNetflixCard:t.isNetflixCard,darkMode:this.darkMode},r("div",{slot:"image-slot"},r("img",{style:{width:"100%"},src:t.image,alt:(t.image??"").split("/")?.pop()?.split(".")[0]??t.image,loading:"lazy"})),r("div",{slot:"logo-slot"},r("img",{style:{width:"100%"},src:t.logo,alt:(t.logo??"").split("/")?.pop()?.split(".")[0]??t.logo,loading:"lazy"})),r("div",{slot:"description-slot",innerHTML:t.cardDescription,class:this.darkMode?"dark":""}))))),this.vatText?r("div",{class:"vat"},r("div",{class:"vat__text",innerHTML:this.vatText})):""),this.cardScript?r("link",{href:this.cardScript,rel:"stylesheet",type:"text/css"}):"")}static get watchers(){return{data:[{onDataChange:0}]}}};l.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:root{--tet-link-color:var(--tc-text-primary);--tet-link-color-hover:var(--tc-text-secondary);--tet-link-color-active:var(--tc-text-tertiary);--tet-link-color-focus:var(--tc-blue-40);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled);--tet-link-secondary-color:var(--tc-text-secondary);--tet-link-secondary-color-hover:var(--tc-text-primary)}.tet-link,.tet-link__arrow{text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;color:var(--tet-link-color);position:relative;line-height:1.5rem;cursor:pointer}.tet-link.dark,.tet-link__arrow.dark{--tet-link-color:var(--tc-text-primary-dark);--tet-link-color-hover:var(--tc-text-secondary-dark);--tet-link-color-active:var(--tc-text-tertiary-dark);--tet-link-color-focus:var(--tc-blue-40-dark);--tet-link-color-disabled:var(--tc-button-text-inverse-disabled-dark);--tet-link-secondary-color:var(--tc-text-secondary-dark);--tet-link-secondary-color-hover:var(--tc-text-primary-dark)}.tet-link.tet-link--secondary,.tet-link__arrow.tet-link--secondary{--tet-link-color:var(--tet-link-secondary-color);--tet-link-color-hover:var(--tet-link-secondary-color-hover)}.tet-link tet-icon,.tet-link__arrow tet-icon{--icon-color:var(--tet-link-color)}.tet-link:hover,.tet-link__arrow:hover{color:var(--tet-link-color-hover)}.tet-link:hover tet-icon,.tet-link__arrow:hover tet-icon{--icon-color:var(--tet-link-color-hover)}.tet-link:active,.tet-link__arrow:active{color:var(--tet-link-color-active)}.tet-link:active tet-icon,.tet-link__arrow:active tet-icon{--icon-color:var(--tet-link-color-active)}.tet-link:focus-visible,.tet-link__arrow:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;outline-color:var(--tet-link-color-focus);border-radius:0.125rem}.tet-link.disabled,.tet-link__arrow.disabled{color:var(--tet-link-color-disabled);pointer-events:none;cursor:auto}.tet-link.disabled tet-icon,.tet-link__arrow.disabled tet-icon{--icon-color:var(--tet-link-color-disabled)}.tet-link.disabled:focus-visible,.tet-link__arrow.disabled:focus-visible{outline:none}.tet-link tet-icon,.tet-link__arrow tet-icon{padding-left:0.25rem;padding-right:0.25rem;--icon-container-display:inline-block}.tet-link__arrow{padding-right:1.5rem}.tet-link__arrow::after{content:"--\x3e";position:absolute;white-space:nowrap;display:inline-block;text-decoration:none;padding-left:0.25rem;letter-spacing:initial;transition:all 0.15s ease-in}.tet-link__arrow:hover::after{padding-left:0.375rem}:host{--compare-cards-wrap:nowrap;--compare-cards-flex-direction:row;--compare-cards-flex-align-items:center;--compare-cards-padding:1.5rem;--compare-cards-price-padding:0;--compare-cards-border-radius:1.5rem;--compare-cards-new-price-font-size:2.5rem;--compare-cards-old-price-font-size:1rem;--compare-cards-new-currency-font-size:1.125rem;--compare-cards-title-margin-top:1.25rem;--compare-cards-helper-margin-top:0;--compare-cards-card-max-width:32rem;--compare-cards-price-wrapper-margin-top:auto;--compare-cards-secondary-link-font-size:0.75rem;--compare-cards-price-line-height:3rem;--compare-cards-thumbnail-display:flex;--compare-cards-thumbnail-card-radius:0 var(--compare-cards-border-radius) var(--compare-cards-border-radius) 0;--compare-cards-thumbnail-card-width:44rem;display:block}:host([theme=dark]) .card,:host([theme=dark]){--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.vat{color:var(--color-text-secondary);font:400 0.75rem/1rem Inter, Gilroy, Arial, sans-serif;display:flex;justify-content:center}.vat__text{width:100%;text-align:center;padding-top:0.5rem}.cards{display:flex;flex-direction:var(--compare-cards-flex-direction);flex-wrap:var(--compare-cards-wrap);gap:1rem;justify-content:center}.cards>*:nth-child(n+5){margin-top:1rem}.cards .tet-placeholder{--placeholder-border-radius:1.5rem}.cards .tet-compare-card{--compare-card-padding:var(--compare-cards-padding);--compare-card-price-padding:var(--compare-cards-price-padding);--compare-card-border-radius:var(--compare-cards-border-radius);--compare-card-new-price-font-size:var(--compare-cards-new-price-font-size);--compare-card-old-price-font-size:var(--compare-cards-old-price-font-size);--compare-card-new-currency-font-size:var(--compare-cards-new-currency-font-size);--compare-card-title-margin-top:var(--compare-cards-title-margin-top);--compare-card-helper-margin-top:var(--compare-cards-helper-margin-top);--compare-card-price-wrapper-margin-top:var(--compare-cards-price-wrapper-margin-top);--compare-card-secondary-link-font-size:var(--compare-cards-secondary-link-font-size);--compare-card-price-line-height:var(--compare-cards-price-line-height);--compare-card-thumbnail-display:var(--compare-cards-thumbnail-display);--compare-card-thumbnail-card-radius:var(--compare-cards-thumbnail-card-radius);--compare-card-thumbnail-card-width:var(--compare-cards-thumbnail-card-width)}.cards .tet-compare-card.dark{--compare-card-background-color:var(--tc-background-primary-dark);--compare-cards-background:var(--tc-background-primary-dark);--compare-cards-card-background:var(--tc-background-secondary-dark);--compare-cards-text-color:var(--tc-text-primary-dark);--compare-cards-border-color:var(--tc-border-secondary-dark);--compare-cards-link-color:var(--tc-text-link-dark);--compare-cards-price-color:var(--tc-text-primary-dark)}.cards .tet-compare-card--thumbnail{--compare-cards-card-max-width:var(--compare-card-thumbnail-card-width)}.cards .tet-compare-card[card-type=regular]{max-width:var(--compare-cards-card-max-width);width:100%}.cards.column-two{display:grid;grid-template-columns:repeat(2, minmax(19rem, 25rem))}.force-column .cards.column-two{grid-template-columns:minmax(1rem, 32rem)}.cards.column-four{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem}.force-column .cards{--compare-cards-wrap:wrap;--compare-cards-flex-direction:column;align-items:var(--compare-cards-flex-align-items)}.force-column .cards>:nth-child(-n+4){margin-top:1rem}';const d=class{constructor(o){t(this,o),this.select=e(this,"tabSelected")}get element(){return o(this)}tabContentSlides=[];dataName;defaultTab=0;parentContainer=document;useVisibility=!1;select;selectedId;previousDataName;previousParentContainer;theme;themeObserver;componentWillLoad(){this.previousDataName=this.dataName,this.previousParentContainer=this.parentContainer}componentDidLoad(){this.init(),this.selectTab(this.defaultTab)}onDataNameChange(t){t&&(this.detachOldListeners(),this.previousDataName=this.dataName,this.initTabEventHandler())}onParentContainerChange(){this.detachOldListeners(),this.previousParentContainer=this.parentContainer,this.initTabEventHandler()}async init(){this.initTabContentSlides(),this.initTabEventHandler(),this.initParentTheme()}initParentTheme(){const t=this.parentContainer.querySelector(`tet-tab-header[data-name="${this.dataName}"]`);this.theme=t?.getAttribute("theme")??""}initTabContentSlides(){this.tabContentSlides=Array.from(this.element.children);const t=this.parentContainer.querySelector(`tet-tab-header[data-name="${this.dataName}"]`),e=t?.getAttribute("data-id-suffix")??"";this.tabContentSlides.forEach(((t,o)=>{const r=t.firstElementChild;let a=!1;r&&(a=c(r)),t.setAttribute("role","tabpanel"),t.setAttribute("tabindex",a?"-1":"0"),t.setAttribute("id",`tabpanel-${o+1}-${e}`),t.setAttribute("aria-labelledby",`tab-${o+1}-${e}`),t.setAttribute("aria-hidden","true")}))}initTabEventHandler(){this.parentContainer.querySelectorAll(`tet-tab-header[data-name="${this.dataName}"]`).forEach(((t,e)=>{t.addEventListener("tabSelected",this.onTabSelect),0===e&&(this.themeObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"theme"===t.attributeName&&this.initParentTheme()}))})),this.themeObserver.observe(t,{attributes:!0,attributeFilter:["theme"]}))}))}detachOldListeners(){this.themeObserver&&this.themeObserver.disconnect(),this.previousParentContainer.querySelectorAll(`tet-tab-header[data-name="${this.previousDataName}"]`).forEach((t=>{t.removeEventListener("tabSelected",this.onTabSelect)}))}onTabSelect=t=>{this.selectTab(t.detail.new)};async selectTab(t){if(!this.tabContentSlides.length)return;const e=Number.parseInt(t.toString());e.toString()===t.toString()&&(t=e),this.tabContentSlides.forEach((t=>{t.classList.remove("active"),t.setAttribute("aria-hidden","true")}));let o=this.tabContentSlides[0];if("number"==typeof t)this.tabContentSlides[t]&&(o=this.tabContentSlides[t]);else{const e=this.tabContentSlides.find((e=>e.getAttribute("data-name")===t));e&&(o=e)}o.classList.add("active"),o.setAttribute("aria-hidden","false"),this.select.emit({new:t,old:this.selectedId}),this.selectedId=t}render(){return r(a,{key:"8f696bd4d86575b2fc4b55dab8378be91f4807db"},r("div",{key:"bdb0e9231c8e119566f8ad9f636d38ae5c7733a8",class:{"tet-tab-content":!0,"use-visibility":this.useVisibility,[this.theme]:!0}},r("slot",{key:"52d7330b421acc3c756f1dec3c267be08aa9213b"})))}static get watchers(){return{dataName:[{onDataNameChange:0}],parentContainer:[{onParentContainerChange:0}]}}};d.style=".tet-tab-content ::slotted(*){display:none}.tet-tab-content ::slotted(.active){display:block}.tet-tab-content ::slotted(.active:focus-visible){outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;border-radius:0.125rem}.tet-tab-content.dark ::slotted(.active:focus-visible){outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.125rem;transition:outline 0s}.tet-tab-content.use-visibility ::slotted(*){visibility:hidden;position:absolute;top:-9999px;left:-9999px;right:9999px;display:block}.tet-tab-content.use-visibility ::slotted(.active){visibility:revert;position:relative;top:0;left:0}";export{l as tet_compare_cards,d as tet_tab_content}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,a as t,h as e,H as r}from"./p-st4TD55I.js";import{c as n,a as i}from"./p-SfqlfxDQ.js";const a=class{constructor(t){o(this,t)}stepperData=[];forcedColumn=!1;hideIcons=!1;theme="light";columnLayout=!1;layout="default";get host(){return t(this)}componentDidLoad(){"default"===this.layout&&this.calculateContainerWidth()}renderRoundStepper(o){const t={stepIcon:!0,icon:!0,hide:void 0===o.stepIcon};return e("div",{class:{"round-stepper__item":!0,dark:"dark"===this.theme,"column-layout":this.columnLayout,"with-background-gradient":"withBackgroundGradient"===this.layout,[`color-theme-${o.colorTheme}`]:"withBackgroundGradient"===this.layout&&!!o.colorTheme,[`color-tone-${o.colorTone}`]:"withBackgroundGradient"===this.layout&&!!o.colorTone,[`gradient-${o.gradient}`]:"withBackgroundGradient"===this.layout&&!!o.gradient&&"off"!==o.gradient}},o.icon&&o.hideIconCircle?e("tet-icon",{class:"icon icon-without-circle",name:o.icon,theme:this.theme}):e("div",{class:"round-stepper__circle "+("dark"===this.theme?"dark":""),style:{backgroundColor:o.color}},o.icon?e("tet-icon",{class:"icon",name:o.icon}):e("span",null,o.number)),e("span",{class:"round-stepper__description "+("dark"===this.theme?"dark":""),innerHTML:o.description}),e("div",{class:"round-stepper__icon"},e("tet-icon",{class:t,name:o.stepIcon,theme:this.theme})))}calculateContainerWidth(){const o=this.host,t=o.shadowRoot.querySelector(".round-stepper"),e=o.shadowRoot.querySelectorAll(".round-stepper__description");this.forcedColumn?(t.classList.add("column"),t.style.gap="0.5rem",Array.from(e,(o=>{o.style.maxWidth=`${n(224/i())}px`}))):(t.classList.remove("column"),t.style.gap="1rem",Array.from(e,(o=>{o.style.maxWidth=`${n(192/i())}px`})))}onResize(){"default"===this.layout&&this.calculateContainerWidth()}render(){return e(r,{key:"f974cd4d48cf0111b7d75ad57f495944c5d1a7ce"},e("div",{key:"e6d3c15e5efa2e6be6c7fadb20aae16a25d4339a",class:{"round-stepper":!0,"with-background-gradient":"withBackgroundGradient"===this.layout,column:this.forcedColumn,"one-to-three-items":"withBackgroundGradient"===this.layout&&this.stepperData.length<=3,"six-plus-items":"withBackgroundGradient"===this.layout&&this.stepperData.length>=6,"hide-icons":this.hideIcons}},this.stepperData.map((o=>this.renderRoundStepper(o)))))}};a.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--round-stepper-text-color:var(--tc-text-primary);--round-stepper-background-color:var(--tc-layer-tertiary);--step-icon-size:1.5rem;--step-circle-size:2.5rem;--description-hide-icons-font-size:0.875rem;--description-hide-icons-line-height:1.25rem;--round-stepper-align-items:center}:host .dark{--round-stepper-text-color:var(--tc-text-primary-dark);--round-stepper-background-color:var(--tc-layer-tertiary-dark)}.round-stepper{display:flex}.round-stepper.with-background-gradient{gap:1.5rem;width:100%;flex-direction:column}@media all and (min-width: 48rem){.round-stepper.with-background-gradient{flex-direction:row}}@media all and (min-width: 48rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient{padding:1.5rem}}@media all and (min-width: 120rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient{padding:2.5rem}.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient .round-stepper__circle{--step-circle-size:3rem}}.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 1.5rem/1.75rem Gilroy, Gilroy, Arial, sans-serif;line-height:1.75rem}@media all and (min-width: 80rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 1.75rem/2rem Gilroy, Gilroy, Arial, sans-serif;line-height:2rem}}@media all and (min-width: 120rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 2rem/2.25rem Gilroy, Gilroy, Arial, sans-serif;line-height:2.25rem;margin-top:1.5rem}}.round-stepper.with-background-gradient .round-stepper__description{font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif;line-height:1.5rem}@media all and (min-width: 48rem) and (max-width: 80rem){.round-stepper.with-background-gradient.six-plus-items{display:grid;grid-template-columns:repeat(3, 1fr);gap:1.5rem}.round-stepper.with-background-gradient.six-plus-items .round-stepper__item{max-width:none}}.round-stepper.hide-icons .round-stepper__icon .icon{display:none}.round-stepper.column{flex-direction:column}.round-stepper__item{display:flex;align-items:var(--round-stepper-align-items);padding:0.5rem 0 0.5rem 0}.round-stepper__item.column-layout{flex-direction:column;align-items:start;width:100%}.round-stepper__item.column-layout .round-stepper__description{margin-left:0;margin-top:1rem}.round-stepper__item.with-background-gradient{--round-stepper-item-background-color:transparent;--round-stepper-item-background-color-dark:var(--round-stepper-item-background-color);--round-stepper-item-circle-background-color:var(--tc-icon-black-to-yellow);--round-stepper-item-circle-text-color:var(--tc-text-inverse-primary);--round-stepper-item-circle-background-color-dark:var(--tc-icon-black-to-yellow-dark);--round-stepper-item-circle-text-color-dark:var(--tc-text-inverse-primary-dark);max-width:45rem;border-radius:1rem;padding:1.5rem 1rem;background-color:var(--round-stepper-item-background-color)}@media all and (min-width: 48rem){.round-stepper__item.with-background-gradient{max-width:36rem}}@media all and (min-width: 64rem){.round-stepper__item.with-background-gradient{padding:1.5rem}}.round-stepper__item.with-background-gradient.dark{--round-stepper-item-circle-background-color:var(--round-stepper-item-circle-background-color-dark);--round-stepper-item-circle-text-color:var(--round-stepper-item-circle-text-color-dark);background-color:var(--round-stepper-item-background-color-dark)}.round-stepper__item.with-background-gradient .round-stepper__circle{background-color:var(--round-stepper-item-circle-background-color) !important;color:var(--round-stepper-item-circle-text-color) !important}.round-stepper__item.with-background-gradient .round-stepper__circle tet-icon.icon{--icon-color:var(--round-stepper-item-circle-text-color) !important}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-very-dark{--round-stepper-item-background-color:var(--tc-gradient-grey-accent);--round-stepper-item-background-color-dark:var(--tc-brown-80-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-dark{--round-stepper-item-background-color:var(--tc-yellow-30);--round-stepper-item-background-color-dark:var(--tc-brown-70-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-light{--round-stepper-item-background-color:var(--tc-yellow-20);--round-stepper-item-background-color-dark:var(--tc-brown-60-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-very-light{--round-stepper-item-background-color:var(--tc-yellow-10);--round-stepper-item-background-color-dark:var(--tc-brown-50-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-very-dark{--round-stepper-item-background-color:var(--tc-grey-50);--round-stepper-item-background-color-dark:var(--tc-brown-80-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-dark{--round-stepper-item-background-color:var(--tc-grey-40);--round-stepper-item-background-color-dark:var(--tc-brown-70-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-light{--round-stepper-item-background-color:var(--tc-grey-30);--round-stepper-item-background-color-dark:var(--tc-brown-60-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-very-light{--round-stepper-item-background-color:var(--tc-grey-20);--round-stepper-item-background-color-dark:var(--tc-brown-50-dark)}.round-stepper__item.with-background-gradient.gradient-dark-light{background-image:linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.12))}.round-stepper__item.with-background-gradient.gradient-light-dark{background-image:linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12))}.round-stepper__circle{display:flex;align-items:center;justify-content:center;min-width:var(--step-circle-size);height:var(--step-circle-size);border-radius:var(--step-circle-size);font-weight:500;font-size:1.25rem;background-color:var(--round-stepper-background-color);color:var(--round-stepper-text-color)}.round-stepper__circle tet-icon.icon{--icon-color:var(--round-stepper-text-color) !important}.round-stepper__circle.dark{background-color:var(--round-stepper-background-color) !important}.round-stepper__circle.dark tet-icon.icon{--icon-color:var(--round-stepper-text-color) !important}.round-stepper__description,.round-stepper__icon{margin-left:1rem;font-weight:500}.round-stepper__description{font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;line-height:1.5rem;color:var(--round-stepper-text-color)}.hide-icons .round-stepper__description{font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;font-size:var(--description-hide-icons-font-size);line-height:var(--description-hide-icons-line-height)}.column .round-stepper__description{font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;line-height:1.5rem}.round-stepper__icon .icon.hide{display:none}tet-icon.icon{--icon-size:var(--step-icon-size)}tet-icon.icon.icon-without-circle{--icon-size:2.5rem}@media all and (min-width: 120rem){tet-icon.icon.icon-without-circle{--icon-size:3rem}}';export{a as tet_round_stepper}
|
|
1
|
+
import{r as o,a as t,h as e,H as r}from"./p-ClX9TYQY.js";import{c as n,a as i}from"./p-SfqlfxDQ.js";const a=class{constructor(t){o(this,t)}stepperData=[];forcedColumn=!1;hideIcons=!1;theme="light";columnLayout=!1;layout="default";get host(){return t(this)}componentDidLoad(){"default"===this.layout&&this.calculateContainerWidth()}renderRoundStepper(o){const t={stepIcon:!0,icon:!0,hide:void 0===o.stepIcon};return e("div",{class:{"round-stepper__item":!0,dark:"dark"===this.theme,"column-layout":this.columnLayout,"with-background-gradient":"withBackgroundGradient"===this.layout,[`color-theme-${o.colorTheme}`]:"withBackgroundGradient"===this.layout&&!!o.colorTheme,[`color-tone-${o.colorTone}`]:"withBackgroundGradient"===this.layout&&!!o.colorTone,[`gradient-${o.gradient}`]:"withBackgroundGradient"===this.layout&&!!o.gradient&&"off"!==o.gradient}},o.icon&&o.hideIconCircle?e("tet-icon",{class:"icon icon-without-circle",name:o.icon,theme:this.theme}):e("div",{class:"round-stepper__circle "+("dark"===this.theme?"dark":""),style:{backgroundColor:o.color}},o.icon?e("tet-icon",{class:"icon",name:o.icon}):e("span",null,o.number)),e("span",{class:"round-stepper__description "+("dark"===this.theme?"dark":""),innerHTML:o.description}),e("div",{class:"round-stepper__icon"},e("tet-icon",{class:t,name:o.stepIcon,theme:this.theme})))}calculateContainerWidth(){const o=this.host,t=o.shadowRoot.querySelector(".round-stepper"),e=o.shadowRoot.querySelectorAll(".round-stepper__description");this.forcedColumn?(t.classList.add("column"),t.style.gap="0.5rem",Array.from(e,(o=>{o.style.maxWidth=`${n(224/i())}px`}))):(t.classList.remove("column"),t.style.gap="1rem",Array.from(e,(o=>{o.style.maxWidth=`${n(192/i())}px`})))}onResize(){"default"===this.layout&&this.calculateContainerWidth()}render(){return e(r,{key:"f974cd4d48cf0111b7d75ad57f495944c5d1a7ce"},e("div",{key:"e6d3c15e5efa2e6be6c7fadb20aae16a25d4339a",class:{"round-stepper":!0,"with-background-gradient":"withBackgroundGradient"===this.layout,column:this.forcedColumn,"one-to-three-items":"withBackgroundGradient"===this.layout&&this.stepperData.length<=3,"six-plus-items":"withBackgroundGradient"===this.layout&&this.stepperData.length>=6,"hide-icons":this.hideIcons}},this.stepperData.map((o=>this.renderRoundStepper(o)))))}};a.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--round-stepper-text-color:var(--tc-text-primary);--round-stepper-background-color:var(--tc-layer-tertiary);--step-icon-size:1.5rem;--step-circle-size:2.5rem;--description-hide-icons-font-size:0.875rem;--description-hide-icons-line-height:1.25rem;--round-stepper-align-items:center}:host .dark{--round-stepper-text-color:var(--tc-text-primary-dark);--round-stepper-background-color:var(--tc-layer-tertiary-dark)}.round-stepper{display:flex}.round-stepper.with-background-gradient{gap:1.5rem;width:100%;flex-direction:column}@media all and (min-width: 48rem){.round-stepper.with-background-gradient{flex-direction:row}}@media all and (min-width: 48rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient{padding:1.5rem}}@media all and (min-width: 120rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient{padding:2.5rem}.round-stepper.with-background-gradient.one-to-three-items .round-stepper__item.with-background-gradient .round-stepper__circle{--step-circle-size:3rem}}.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 1.5rem/1.75rem Gilroy, Gilroy, Arial, sans-serif;line-height:1.75rem}@media all and (min-width: 80rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 1.75rem/2rem Gilroy, Gilroy, Arial, sans-serif;line-height:2rem}}@media all and (min-width: 120rem){.round-stepper.with-background-gradient.one-to-three-items .round-stepper__description{font:600 2rem/2.25rem Gilroy, Gilroy, Arial, sans-serif;line-height:2.25rem;margin-top:1.5rem}}.round-stepper.with-background-gradient .round-stepper__description{font:600 1.25rem/1.5rem Gilroy, Gilroy, Arial, sans-serif;line-height:1.5rem}@media all and (min-width: 48rem) and (max-width: 80rem){.round-stepper.with-background-gradient.six-plus-items{display:grid;grid-template-columns:repeat(3, 1fr);gap:1.5rem}.round-stepper.with-background-gradient.six-plus-items .round-stepper__item{max-width:none}}.round-stepper.hide-icons .round-stepper__icon .icon{display:none}.round-stepper.column{flex-direction:column}.round-stepper__item{display:flex;align-items:var(--round-stepper-align-items);padding:0.5rem 0 0.5rem 0}.round-stepper__item.column-layout{flex-direction:column;align-items:start;width:100%}.round-stepper__item.column-layout .round-stepper__description{margin-left:0;margin-top:1rem}.round-stepper__item.with-background-gradient{--round-stepper-item-background-color:transparent;--round-stepper-item-background-color-dark:var(--round-stepper-item-background-color);--round-stepper-item-circle-background-color:var(--tc-icon-black-to-yellow);--round-stepper-item-circle-text-color:var(--tc-text-inverse-primary);--round-stepper-item-circle-background-color-dark:var(--tc-icon-black-to-yellow-dark);--round-stepper-item-circle-text-color-dark:var(--tc-text-inverse-primary-dark);max-width:45rem;border-radius:1rem;padding:1.5rem 1rem;background-color:var(--round-stepper-item-background-color)}@media all and (min-width: 48rem){.round-stepper__item.with-background-gradient{max-width:36rem}}@media all and (min-width: 64rem){.round-stepper__item.with-background-gradient{padding:1.5rem}}.round-stepper__item.with-background-gradient.dark{--round-stepper-item-circle-background-color:var(--round-stepper-item-circle-background-color-dark);--round-stepper-item-circle-text-color:var(--round-stepper-item-circle-text-color-dark);background-color:var(--round-stepper-item-background-color-dark)}.round-stepper__item.with-background-gradient .round-stepper__circle{background-color:var(--round-stepper-item-circle-background-color) !important;color:var(--round-stepper-item-circle-text-color) !important}.round-stepper__item.with-background-gradient .round-stepper__circle tet-icon.icon{--icon-color:var(--round-stepper-item-circle-text-color) !important}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-very-dark{--round-stepper-item-background-color:var(--tc-gradient-grey-accent);--round-stepper-item-background-color-dark:var(--tc-brown-80-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-dark{--round-stepper-item-background-color:var(--tc-yellow-30);--round-stepper-item-background-color-dark:var(--tc-brown-70-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-light{--round-stepper-item-background-color:var(--tc-yellow-20);--round-stepper-item-background-color-dark:var(--tc-brown-60-dark)}.round-stepper__item.with-background-gradient.color-theme-yellow.color-tone-very-light{--round-stepper-item-background-color:var(--tc-yellow-10);--round-stepper-item-background-color-dark:var(--tc-brown-50-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-very-dark{--round-stepper-item-background-color:var(--tc-grey-50);--round-stepper-item-background-color-dark:var(--tc-brown-80-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-dark{--round-stepper-item-background-color:var(--tc-grey-40);--round-stepper-item-background-color-dark:var(--tc-brown-70-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-light{--round-stepper-item-background-color:var(--tc-grey-30);--round-stepper-item-background-color-dark:var(--tc-brown-60-dark)}.round-stepper__item.with-background-gradient.color-theme-gray.color-tone-very-light{--round-stepper-item-background-color:var(--tc-grey-20);--round-stepper-item-background-color-dark:var(--tc-brown-50-dark)}.round-stepper__item.with-background-gradient.gradient-dark-light{background-image:linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.12))}.round-stepper__item.with-background-gradient.gradient-light-dark{background-image:linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12))}.round-stepper__circle{display:flex;align-items:center;justify-content:center;min-width:var(--step-circle-size);height:var(--step-circle-size);border-radius:var(--step-circle-size);font-weight:500;font-size:1.25rem;background-color:var(--round-stepper-background-color);color:var(--round-stepper-text-color)}.round-stepper__circle tet-icon.icon{--icon-color:var(--round-stepper-text-color) !important}.round-stepper__circle.dark{background-color:var(--round-stepper-background-color) !important}.round-stepper__circle.dark tet-icon.icon{--icon-color:var(--round-stepper-text-color) !important}.round-stepper__description,.round-stepper__icon{margin-left:1rem;font-weight:500}.round-stepper__description{font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;line-height:1.5rem;color:var(--round-stepper-text-color)}.hide-icons .round-stepper__description{font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;font-size:var(--description-hide-icons-font-size);line-height:var(--description-hide-icons-line-height)}.column .round-stepper__description{font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;line-height:1.5rem}.round-stepper__icon .icon.hide{display:none}tet-icon.icon{--icon-size:var(--step-icon-size)}tet-icon.icon.icon-without-circle{--icon-size:2.5rem}@media all and (min-width: 120rem){tet-icon.icon.icon-without-circle{--icon-size:3rem}}';export{a as tet_round_stepper}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,a as o,h as n}from"./p-st4TD55I.js";import{i}from"./p-Bvqcvhjw.js";const a=class{constructor(o){t(this,o),this.dateChanged=e(this,"dateChanged"),this.rangeDatesChanged=e(this,"rangeDatesChanged")}datepickerContainer;get el(){return o(this)}locale="lv-LV";overlayEffect=!1;rangePickerMode=!1;isOpen=!1;date;datepickerView="month";rangeDates={};internalDate;dateChanged;rangeDatesChanged;handleDateChanged(t){this.date=t.detail}async toggleIsOpen(){this.isOpen=!this.isOpen}handleDatepickerViewChanged(t){this.datepickerView=t.detail}handleInternalDateChanged({detail:t}){this.internalDate=new Date(t)}handleRangeDateSet({detail:{date:t,position:e}}){0===e?(this.rangeDates.startDate=new Date(t),this.rangeDates.endDate=null):this.rangeDates.endDate=new Date(t),this.rangeDates={...this.rangeDates}}handleDatepickerClosed(){this.rangePickerMode||(this.date=new Date(this.internalDate)),this.isOpen=!1}onWindowResize(){this.positionDatepicker()}onWindowScroll(){this.positionDatepicker()}componentWillLoad(){i(this.date)?this.internalDate=new Date:(this.date=new Date(this.date),this.internalDate=new Date(this.date))}componentDidLoad(){this.positionDatepicker()}handleDateChange(t){this.dateChanged.emit(t)}handleRangeDateChange(t){this.rangeDatesChanged.emit(t)}isMobileScreenSize=()=>window.innerWidth<=499;positionDatepicker=()=>{const t=this.el.previousElementSibling.getBoundingClientRect(),e=`${t.width}px`;this.datepickerContainer.style.maxWidth=this.isMobileScreenSize()?e:"22rem",this.datepickerContainer.style.left=`${t.left}px`,this.datepickerContainer.style.top=`${t.bottom+8}px`};handleDatepickerClose=t=>{t.preventDefault(),t.stopPropagation(),t.target===t.currentTarget&&(this.isOpen=!1)};getOverlayClasses=()=>({overlay:!0,closed:!this.isOpen,"overlay-effect":this.overlayEffect});render(){return n("div",{key:"acce2fbc7d54bbcdb4410581d9f6bc6667aa0d2c",class:this.getOverlayClasses(),onClick:this.handleDatepickerClose},n("div",{key:"0c8d388af9d7cbe8b3d3ec303217b10e52a91ffd",class:"container",ref:t=>this.datepickerContainer=t},n("tet-datepicker-header",{key:"4cefe3b29bead3c72a9c7342aa1a278767cf87b9",selectedDate:this.date,internalDate:this.internalDate,locale:this.locale,datepickerView:this.datepickerView}),"month"===this.datepickerView&&n("tet-datepicker-month-view",{key:"a2a8a1e040d283ec54b7fb479ba907ff028f16bc",selectedDate:this.date,internalDate:this.internalDate,rangePickerMode:this.rangePickerMode,rangeDates:this.rangeDates}),"multi-year"===this.datepickerView&&n("tet-datepicker-multi-year-view",{key:"6af036908892b25750daa38f166026c30ca09b6d",selectedDate:this.date,internalDate:this.internalDate}),"year"===this.datepickerView&&n("tet-datepicker-year-view",{key:"ab893a06d2e225a287be0d96ca068443c897396e",selectedDate:this.date,internalDate:this.internalDate})))}static get watchers(){return{date:[{handleDateChange:0}],rangeDates:[{handleRangeDateChange:0}]}}};a.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{display:block;--light-theme-elevation-3:0 0.0625rem 0.125rem rgba(10, 11, 13, 0.05), 0 0.3125rem 0.6875rem rgba(10, 11, 13, 0.12);--text-color-primary-light:#f6f7f8;--interaction-state-gray:rgba(89, 99, 115, 0.08)}.overlay{position:fixed;z-index:100;inset:0}.overlay-effect{background:rgba(10, 11, 13, 0.4)}.overlay.closed{display:none}.overlay .container{max-width:22rem;min-height:20rem;height:auto;width:100%;background:rgb(255, 255, 255);border:0.0625rem solid rgb(192, 197, 206);box-shadow:var(--light-theme-elevation-3);border-radius:0.875rem;padding:0.5rem;position:absolute}';export{a as tet_datepicker}
|
|
1
|
+
import{r as t,c as e,a as o,h as n}from"./p-ClX9TYQY.js";import{i}from"./p-Bvqcvhjw.js";const a=class{constructor(o){t(this,o),this.dateChanged=e(this,"dateChanged"),this.rangeDatesChanged=e(this,"rangeDatesChanged")}datepickerContainer;get el(){return o(this)}locale="lv-LV";overlayEffect=!1;rangePickerMode=!1;isOpen=!1;date;datepickerView="month";rangeDates={};internalDate;dateChanged;rangeDatesChanged;handleDateChanged(t){this.date=t.detail}async toggleIsOpen(){this.isOpen=!this.isOpen}handleDatepickerViewChanged(t){this.datepickerView=t.detail}handleInternalDateChanged({detail:t}){this.internalDate=new Date(t)}handleRangeDateSet({detail:{date:t,position:e}}){0===e?(this.rangeDates.startDate=new Date(t),this.rangeDates.endDate=null):this.rangeDates.endDate=new Date(t),this.rangeDates={...this.rangeDates}}handleDatepickerClosed(){this.rangePickerMode||(this.date=new Date(this.internalDate)),this.isOpen=!1}onWindowResize(){this.positionDatepicker()}onWindowScroll(){this.positionDatepicker()}componentWillLoad(){i(this.date)?this.internalDate=new Date:(this.date=new Date(this.date),this.internalDate=new Date(this.date))}componentDidLoad(){this.positionDatepicker()}handleDateChange(t){this.dateChanged.emit(t)}handleRangeDateChange(t){this.rangeDatesChanged.emit(t)}isMobileScreenSize=()=>window.innerWidth<=499;positionDatepicker=()=>{const t=this.el.previousElementSibling.getBoundingClientRect(),e=`${t.width}px`;this.datepickerContainer.style.maxWidth=this.isMobileScreenSize()?e:"22rem",this.datepickerContainer.style.left=`${t.left}px`,this.datepickerContainer.style.top=`${t.bottom+8}px`};handleDatepickerClose=t=>{t.preventDefault(),t.stopPropagation(),t.target===t.currentTarget&&(this.isOpen=!1)};getOverlayClasses=()=>({overlay:!0,closed:!this.isOpen,"overlay-effect":this.overlayEffect});render(){return n("div",{key:"acce2fbc7d54bbcdb4410581d9f6bc6667aa0d2c",class:this.getOverlayClasses(),onClick:this.handleDatepickerClose},n("div",{key:"0c8d388af9d7cbe8b3d3ec303217b10e52a91ffd",class:"container",ref:t=>this.datepickerContainer=t},n("tet-datepicker-header",{key:"4cefe3b29bead3c72a9c7342aa1a278767cf87b9",selectedDate:this.date,internalDate:this.internalDate,locale:this.locale,datepickerView:this.datepickerView}),"month"===this.datepickerView&&n("tet-datepicker-month-view",{key:"a2a8a1e040d283ec54b7fb479ba907ff028f16bc",selectedDate:this.date,internalDate:this.internalDate,rangePickerMode:this.rangePickerMode,rangeDates:this.rangeDates}),"multi-year"===this.datepickerView&&n("tet-datepicker-multi-year-view",{key:"6af036908892b25750daa38f166026c30ca09b6d",selectedDate:this.date,internalDate:this.internalDate}),"year"===this.datepickerView&&n("tet-datepicker-year-view",{key:"ab893a06d2e225a287be0d96ca068443c897396e",selectedDate:this.date,internalDate:this.internalDate})))}static get watchers(){return{date:[{handleDateChange:0}],rangeDates:[{handleRangeDateChange:0}]}}};a.style=':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{display:block;--light-theme-elevation-3:0 0.0625rem 0.125rem rgba(10, 11, 13, 0.05), 0 0.3125rem 0.6875rem rgba(10, 11, 13, 0.12);--text-color-primary-light:#f6f7f8;--interaction-state-gray:rgba(89, 99, 115, 0.08)}.overlay{position:fixed;z-index:100;inset:0}.overlay-effect{background:rgba(10, 11, 13, 0.4)}.overlay.closed{display:none}.overlay .container{max-width:22rem;min-height:20rem;height:auto;width:100%;background:rgb(255, 255, 255);border:0.0625rem solid rgb(192, 197, 206);box-shadow:var(--light-theme-elevation-3);border-radius:0.875rem;padding:0.5rem;position:absolute}';export{a as tet_datepicker}
|