@tet/tet-components 1.4.143-staging → 1.4.143-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-Dr-iFaJ9.js → http-codes-D7ffzpYW.js} +1 -1
- package/dist/cjs/{index-DRNSo5RU.js → index-BL_zVDFC.js} +1 -1
- package/dist/cjs/{index-BEOR8cIU.js → index-Dzs7Nkbj.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{product-comparison-_8BsEWy8.js → product-comparison-DUzqZuWv.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-Dgrvj2-A.js → translations-Uvcq4kv8.js} +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DU0_ajAu.js → p-5kTi8PjH.js} +1 -1
- package/dist/components/{p-BsEffc2Y.js → p-B4CDhWR6.js} +1 -1
- package/dist/components/{p-B1XYlnsO.js → p-B5shOn6R.js} +1 -1
- package/dist/components/{p-DZ6ri3Ez.js → p-B9bE6qY-.js} +1 -1
- package/dist/components/{p-vD3gjczD.js → p-BAkWN1D6.js} +1 -1
- package/dist/components/{p-B3e4u3qM.js → p-BDPxVbYN.js} +1 -1
- package/dist/components/{p-CpLfddvj.js → p-BGrd_jXc.js} +1 -1
- package/dist/components/{p-CoYVgWqt.js → p-BKlEhiGf.js} +1 -1
- package/dist/components/{p-CRGoYAgc.js → p-BN2sV9-A.js} +1 -1
- package/dist/components/{p-CsG3RqDp.js → p-BPQNPw6e.js} +1 -1
- package/dist/components/{p-CDFYJWVh.js → p-BSgeKEN8.js} +1 -1
- package/dist/components/{p-BztLFj9W.js → p-BTSQyL7G.js} +1 -1
- package/dist/components/{p-DupIaie7.js → p-BY4VWk_A.js} +1 -1
- package/dist/components/{p-b71U3KRH.js → p-BebUippY.js} +1 -1
- package/dist/components/{p-CSlACC0L.js → p-BkFKgYOW.js} +1 -1
- package/dist/components/{p-dg7EpwKx.js → p-Br4jWI9B.js} +1 -1
- package/dist/components/{p-BTih1Saq.js → p-BrD5Af4p.js} +1 -1
- package/dist/components/{p-Dpf-w2j3.js → p-BtMYZdep.js} +1 -1
- package/dist/components/{p-BE-uwal9.js → p-C-TWSM4z.js} +1 -1
- package/dist/components/{p-hddOTT87.js → p-C31HYpo5.js} +1 -1
- package/dist/components/{p-BfZoV04s.js → p-CDDvHWDu.js} +1 -1
- package/dist/components/{p-ew_Bjk9Z.js → p-CH_CJUiq.js} +1 -1
- package/dist/components/{p-CP4sqVXo.js → p-CLtgu35N.js} +1 -1
- package/dist/components/{p-D4pVUZud.js → p-CNsxz-TF.js} +1 -1
- package/dist/components/{p-Yq1imY2c.js → p-COVrKFTj.js} +1 -1
- package/dist/components/{p-C5nVhIEw.js → p-CUOgW7ZG.js} +1 -1
- package/dist/components/{p-D4O5TRgb.js → p-CY1tO1HE.js} +1 -1
- package/dist/components/{p-C_I-HCHF.js → p-CbqipjNj.js} +1 -1
- package/dist/components/{p-DIyhqSTP.js → p-Cdi7KDBd.js} +1 -1
- package/dist/components/{p-VrB3u_O2.js → p-Cn_UPY3P.js} +1 -1
- package/dist/components/{p-DmPGtxCM.js → p-Cy7tiOgd.js} +1 -1
- package/dist/components/{p-CQYdBEVF.js → p-CzRzXWH6.js} +1 -1
- package/dist/components/{p-DngZe2L6.js → p-D6kNR-cR.js} +1 -1
- package/dist/components/{p-B2NxKDsF.js → p-DIqowNgr.js} +1 -1
- package/dist/components/{p-CXntvSG-.js → p-DT8tgMUV.js} +1 -1
- package/dist/components/p-DTeQFROq.js +1 -0
- package/dist/components/{p-BXOKIT0e.js → p-DeyD67la.js} +1 -1
- package/dist/components/{p-CFBQ-_AF.js → p-DsTbwBba.js} +1 -1
- package/dist/components/{p-B7f6XRIi.js → p-JZAHJ9gF.js} +1 -1
- package/dist/components/{p-CX5Q-xq-.js → p-Jzy65bod.js} +1 -1
- package/dist/components/{p-1p6NLY3L.js → p-KagFBuv9.js} +1 -1
- package/dist/components/{p-DTa9ZfrF.js → p-NAR5FXDl.js} +1 -1
- package/dist/components/{p-BHahEQ8o.js → p-PYYBcx0f.js} +1 -1
- package/dist/components/{p-9bDhxWU3.js → p-SprieIc0.js} +1 -1
- package/dist/components/{p-D_Hhkevx.js → p-UVdgsuUF.js} +1 -1
- package/dist/components/{p-BACVoq7a.js → p-ZPHtvw0Z.js} +1 -1
- package/dist/components/{p-BSQL7K3K.js → p-iksDLWwk.js} +1 -1
- package/dist/components/{p-CXP2jsSO.js → p-lEX8wezw.js} +1 -1
- package/dist/components/{p-CqNtU_C2.js → p-m0PlnnJG.js} +1 -1
- package/dist/components/{p-CEBN2I3z.js → p-uriK4wxp.js} +1 -1
- package/dist/components/{p-Bi78LkRt.js → p-vLpvVmb8.js} +1 -1
- package/dist/components/{p-D-brdlr6.js → p-zWNDOP2j.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-DP6cQyLI.js → http-codes-BQGPgOl6.js} +1 -1
- package/dist/esm/{index-BWP8psSS.js → index-BGB6gNkz.js} +1 -1
- package/dist/esm/{index-BTdj-C2n.js → index-DScZlZas.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{product-comparison-CBuVYKp-.js → product-comparison-DUVV7BFR.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-BxuQY6H_.js → translations-Dc2OQnbI.js} +1 -1
- package/dist/tet-components/{p-5883cc02.entry.js → p-01336e7a.entry.js} +1 -1
- package/dist/tet-components/{p-b1839d78.entry.js → p-06d237de.entry.js} +1 -1
- package/dist/tet-components/{p-63238349.entry.js → p-085ec974.entry.js} +1 -1
- package/dist/tet-components/{p-9f806fa7.entry.js → p-138b551e.entry.js} +1 -1
- package/dist/tet-components/{p-32492c9c.entry.js → p-19525e17.entry.js} +1 -1
- package/dist/tet-components/{p-35d587d8.entry.js → p-1be85243.entry.js} +1 -1
- package/dist/tet-components/{p-b7538f5c.entry.js → p-1be8a5bc.entry.js} +1 -1
- package/dist/tet-components/{p-8148aabf.entry.js → p-20f6ad3e.entry.js} +1 -1
- package/dist/tet-components/{p-f6d3abd5.entry.js → p-24058988.entry.js} +1 -1
- package/dist/tet-components/{p-f12f4f25.entry.js → p-27f233a6.entry.js} +1 -1
- package/dist/tet-components/{p-aad1b69d.entry.js → p-2cfcf7df.entry.js} +1 -1
- package/dist/tet-components/{p-4dd02c45.entry.js → p-304026be.entry.js} +1 -1
- package/dist/tet-components/{p-98161671.entry.js → p-3473e773.entry.js} +1 -1
- package/dist/tet-components/{p-5f5c3f8e.entry.js → p-35e3a3ec.entry.js} +1 -1
- package/dist/tet-components/{p-4fb578db.entry.js → p-3698d8ff.entry.js} +1 -1
- package/dist/tet-components/{p-0bb47e76.entry.js → p-37c83d33.entry.js} +1 -1
- package/dist/tet-components/{p-0e9ae429.entry.js → p-3996e0b7.entry.js} +1 -1
- package/dist/tet-components/{p-52cc694d.entry.js → p-3af65955.entry.js} +1 -1
- package/dist/tet-components/p-3bf29f89.entry.js +1 -0
- package/dist/tet-components/{p-27213d06.entry.js → p-3ce7cda9.entry.js} +1 -1
- package/dist/tet-components/{p-c97b0d44.entry.js → p-3d845492.entry.js} +1 -1
- package/dist/tet-components/{p-eda71185.entry.js → p-3f533c77.entry.js} +1 -1
- package/dist/tet-components/{p-8a7a46f5.entry.js → p-4215dec8.entry.js} +1 -1
- package/dist/tet-components/{p-ad89b9d6.entry.js → p-499bf719.entry.js} +1 -1
- package/dist/tet-components/{p-cfa89a0a.entry.js → p-4e018c17.entry.js} +1 -1
- package/dist/tet-components/{p-12326ed2.entry.js → p-56f99297.entry.js} +1 -1
- package/dist/tet-components/{p-77a8a330.entry.js → p-597ccbc1.entry.js} +1 -1
- package/dist/tet-components/{p-c503fd7a.entry.js → p-5bac849e.entry.js} +1 -1
- package/dist/tet-components/{p-cfa1ad4d.entry.js → p-5e458bfa.entry.js} +1 -1
- package/dist/tet-components/{p-b64f4147.entry.js → p-632d382c.entry.js} +1 -1
- package/dist/tet-components/{p-933a6d56.entry.js → p-67bb4d53.entry.js} +1 -1
- package/dist/tet-components/{p-defc34c9.entry.js → p-6946ba58.entry.js} +1 -1
- package/dist/tet-components/{p-ce34b837.entry.js → p-6c28d6ac.entry.js} +1 -1
- package/dist/tet-components/{p-c1a67216.entry.js → p-6eb089d0.entry.js} +1 -1
- package/dist/tet-components/{p-d1488a3a.entry.js → p-71fa80d7.entry.js} +1 -1
- package/dist/tet-components/{p-d82cac78.entry.js → p-7ac2babd.entry.js} +1 -1
- package/dist/tet-components/{p-d6058854.entry.js → p-7bccaeee.entry.js} +1 -1
- package/dist/tet-components/{p-5aa46cbe.entry.js → p-7e2fa50e.entry.js} +1 -1
- package/dist/tet-components/{p-6bc0444a.entry.js → p-830d6a1b.entry.js} +1 -1
- package/dist/tet-components/{p-571d6428.entry.js → p-83be5dad.entry.js} +1 -1
- package/dist/tet-components/{p-5dff0e20.entry.js → p-8ab2df2d.entry.js} +1 -1
- package/dist/tet-components/{p-1a00251e.entry.js → p-8eed24d3.entry.js} +1 -1
- package/dist/tet-components/{p-62e35581.entry.js → p-915b2507.entry.js} +1 -1
- package/dist/tet-components/{p-fa9dfca2.entry.js → p-9183aa09.entry.js} +1 -1
- package/dist/tet-components/{p-ba69de46.entry.js → p-96438761.entry.js} +1 -1
- package/dist/tet-components/{p-edcd3af7.entry.js → p-973193d0.entry.js} +1 -1
- package/dist/tet-components/{p-b362a81e.entry.js → p-9761bc72.entry.js} +1 -1
- package/dist/tet-components/{p-ad206225.entry.js → p-97ce6978.entry.js} +1 -1
- package/dist/tet-components/{p-d056d09b.entry.js → p-9ae4f442.entry.js} +1 -1
- package/dist/tet-components/{p-261a3dcf.entry.js → p-9d7fbd42.entry.js} +1 -1
- package/dist/tet-components/{p-BWP8psSS.js → p-BGB6gNkz.js} +1 -1
- package/dist/tet-components/p-BzLFf73g.js +1 -0
- package/dist/tet-components/p-C1XJmhDH.js +1 -0
- package/dist/tet-components/{p-CEkiSmjX.js → p-DX1IQAn5.js} +1 -1
- package/dist/tet-components/{p-Ojgt8vhK.js → p-DbJll7nz.js} +1 -1
- package/dist/tet-components/{p-2554725a.entry.js → p-a74562c2.entry.js} +1 -1
- package/dist/tet-components/{p-bb961658.entry.js → p-aae1bc5a.entry.js} +1 -1
- package/dist/tet-components/{p-e068d247.entry.js → p-b4f3985e.entry.js} +1 -1
- package/dist/tet-components/{p-b8a9e613.entry.js → p-b5e665c7.entry.js} +1 -1
- package/dist/tet-components/{p-461b9623.entry.js → p-b7263345.entry.js} +1 -1
- package/dist/tet-components/{p-8ae75070.entry.js → p-b86022d7.entry.js} +1 -1
- package/dist/tet-components/{p-0564a3a7.entry.js → p-be2a472c.entry.js} +1 -1
- package/dist/tet-components/{p-156bb292.entry.js → p-c0c302fe.entry.js} +1 -1
- package/dist/tet-components/{p-0f616426.entry.js → p-c27be82c.entry.js} +1 -1
- package/dist/tet-components/{p-a2104cad.entry.js → p-c37ccaaa.entry.js} +1 -1
- package/dist/tet-components/{p-8fec40e7.entry.js → p-c44052cb.entry.js} +1 -1
- package/dist/tet-components/{p-854d09d1.entry.js → p-c541b10f.entry.js} +1 -1
- package/dist/tet-components/{p-e5d1e096.entry.js → p-c9e434c1.entry.js} +1 -1
- package/dist/tet-components/{p-72306953.entry.js → p-c9f14568.entry.js} +1 -1
- package/dist/tet-components/{p-d2179734.entry.js → p-cd7efc99.entry.js} +1 -1
- package/dist/tet-components/{p-3f0547b8.entry.js → p-cdb8c877.entry.js} +1 -1
- package/dist/tet-components/{p-3556eb79.entry.js → p-cfdad238.entry.js} +1 -1
- package/dist/tet-components/{p-2e5144eb.entry.js → p-d2bb410e.entry.js} +1 -1
- package/dist/tet-components/{p-908713dc.entry.js → p-d8b4261d.entry.js} +1 -1
- package/dist/tet-components/{p-c31ded4f.entry.js → p-df68eb4e.entry.js} +1 -1
- package/dist/tet-components/{p-4f339642.entry.js → p-e2d4e5c3.entry.js} +1 -1
- package/dist/tet-components/{p-ce5b5cc5.entry.js → p-e564d494.entry.js} +1 -1
- package/dist/tet-components/{p-eb219b3a.entry.js → p-e7e18cc4.entry.js} +1 -1
- package/dist/tet-components/{p-e153ba4f.entry.js → p-ec4710dd.entry.js} +1 -1
- package/dist/tet-components/{p-28456488.entry.js → p-ee489b61.entry.js} +1 -1
- package/dist/tet-components/{p-35f0994e.entry.js → p-f21e5e14.entry.js} +1 -1
- package/dist/tet-components/{p-88078dfd.entry.js → p-f55870c8.entry.js} +1 -1
- package/dist/tet-components/{p-ddc1d183.entry.js → p-f5d610ea.entry.js} +1 -1
- package/dist/tet-components/{p-bbfe168a.entry.js → p-fcfc7424.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-Blxc4nS1.js +0 -1
- package/dist/tet-components/p-717cdd65.entry.js +0 -1
- package/dist/tet-components/p-Bi5WA4Eb.js +0 -1
- package/dist/tet-components/p-D5A3ic42.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as o,d as e,h as n,t as r}from"./p-
|
|
1
|
+
import{p as t,H as o,d as e,h as n,t as r}from"./p-Cdi7KDBd.js";const i=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.internalDateChanged=e(this,"internalDateChanged"),this.datepickerViewChanged=e(this,"datepickerViewChanged")}years=[];selectedDate;internalDate;internalDateChanged;datepickerViewChanged;handleInternalDateChange(t){this.years=this.getYears(t)}componentWillLoad(){this.years=this.getYears(this.internalDate)}getYears=t=>{const o=t.getFullYear();return Array.from({length:12},((t,e)=>o+e))};handleYearSelection=t=>{const o=new Date(this.internalDate.setFullYear(t));this.internalDateChanged.emit(o),this.datepickerViewChanged.emit("year")};isSelectedYear=t=>this.selectedDate?.getFullYear()===t;getYearClasses=t=>({year:!0,current:t===(new Date).getFullYear(),selected:this.isSelectedYear(t)});render(){return n("div",{key:"03c2b00f5549cbd3e500c0063152d3861f74ff2c",class:"container"},this.years.map((t=>n("div",{class:this.getYearClasses(t),onClick:()=>this.handleYearSelection(t)},t))))}static get watchers(){return{internalDate:[{handleInternalDateChange:0}]}}static get style(){return':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;-webkit-tap-highlight-color:transparent}.container{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:2rem;column-gap:0.25rem;margin:1.25rem 0 0.75rem;font:500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.container .year{display:flex;width:100%;height:2.875rem;align-items:center;justify-content:center;border-radius:1.5rem;cursor:pointer}.container .year.current:not(.container .year.selected,.container .year:active){border:0.09375rem solid rgb(153, 160, 174)}.container .year:active,.container .year.selected{color:var(--text-color-primary-light);background:rgb(10, 11, 13)}.container .year:hover:not(.container .year.selected,.container .year:active){background:var(--interaction-state-gray)}'}},[513,"tet-datepicker-multi-year-view",{selectedDate:[16],internalDate:[16],years:[32]},void 0,{internalDate:[{handleInternalDateChange:0}]}]);function a(){"undefined"!=typeof customElements&&["tet-datepicker-multi-year-view"].forEach((t=>{"tet-datepicker-multi-year-view"===t&&(customElements.get(r(t))||customElements.define(r(t),i))}))}export{i as T,a as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as o,d as e,h as r,c as a,t as n}from"./p-DIyhqSTP.js";import"./p-dg7EpwKx.js";import{p as i}from"./p-CXP2jsSO.js";import{g as c}from"./p-BjOGAbQL.js";import{d as s}from"./p-BztLFj9W.js";import{d as l}from"./p-DU0_ajAu.js";import{d}from"./p-CXntvSG-.js";import{d as f}from"./p-B2NxKDsF.js";import{d as m}from"./p-C_I-HCHF.js";import{d as p}from"./p-CP4sqVXo.js";import{d as h}from"./p-CpLfddvj.js";const w=(t,o,e,r,a,n=!1)=>{const i=t.options,s=e.contractTerms,l=e.contractTerms[0],d=e.attributes?.find((t=>"isBestChoice"===t.key))?.value??!1;let f=t.language,m=null,p=null,h=null,w=null;const y=s.find((t=>0===t.term));null!==l.contract&&(m=l.contract),null!==l.priceDescription&&(p=l.priceDescription[f]),e.benefits?.[f]&&(h=e.benefits[f].split("\n"));let g=y.amount;const u=e.formUrl[f],k={product:o,contractTerm:0};void 0!==t.options.contractTerm&&s.forEach((o=>{parseFloat(t.options.contractTerm)===o.term&&(o.isAlwaysOn||o.showDiscount)&&(k.product=e.productCode,k.contractTerm=o.term,k.promotion=o.promotionCode,g=o.amount,m=o.contract,p=o.priceDescription?o.priceDescription[f]:"",o.showDiscount&&(w=parseFloat(e.amount.toString()).toFixed(2).replace(".",",")),o.benefits?.[f]&&(h=o.benefits[f].split("\n")))}));let b=c(u,k);b=i.manualForm&&""!==i.link?i.link:b+"&lang="+f,i.formParameters&&(b+=i.formParameters);const v=parseFloat(g.toString()).toFixed(2).replace(".",",");return(t={...t,bestChoice:d}).options={...i,price:v,oldPrice:w,mainTitle:e.name[f],subTitle:e.subtitle[f],bulletPoints:h,infoItem:""!==e.descriptionTooltip[f]?'<tet-icon class="icon" name="info-circle" focusable={true}></tet-icon><tet-tooltip class="tet-tooltip">'+e.descriptionTooltip[f]+"</tet-tooltip><style>.tet-tooltip { --text-font: var(--font-family-content) }</style>":"",link:b.toString(),secondaryLink:m,helper:p,theme:r,darkMode:a,isNetflixCard:n},t.isNetflixCard||delete t.productCode,t},y=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),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 o=[];this.changedProductCode=t.detail.value,o.push(this.changedProductCode),this.getProductData(o.join(","),!1)}get host(){return this}async componentWillLoad(){let t=[];this.data.forEach((o=>{void 0!==o.productCode&&(t.includes(o.productCode)||t.push(o.productCode))})),t.length>0?await this.getProductData(t.join(",")):this.showLoader=!1}async componentDidRender(){this.compareCardsDidRender.emit()}getProductData(t,o=!0){o&&(this.showLoader=!0),i(t).then((t=>{const o=[];this.data.forEach((e=>{let r=e.productCode;e.isNetflixCard&&(this.changedProductCode===e.secondaryProductCode?r=e.secondaryProductCode:this.changedProductCode===e.productCode&&(r=e.productCode));const a=t.products[r];a&&(e=w(e,r,a,this.theme)),o.push(e)})),this.data=o,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,o)=>r("tet-compare-card",{class:{"tet-compare-card":!0,"tet-compare-card--thumbnail":!!t.thumbnail},index:o,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}]}}static get style(){return':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}'}},[513,"tet-compare-cards",{data:[1040],vatText:[1,"vat-text"],forceColumn:[4,"force-column"],theme:[1],layout:[1],cardScript:[1,"card-script"],changedProductCode:[1,"changed-product-code"],isNetflixCard:[4,"is-netflix-card"],darkMode:[4,"dark-mode"],initializedState:[32],showLoader:[32]},[[0,"optionSelected","onOptionSelected"]],{data:[{onDataChange:0}]}]);function g(){"undefined"!=typeof customElements&&["tet-compare-cards","tet-button","tet-checkbox","tet-compare-card","tet-dropdown","tet-icon","tet-placeholder","tet-tooltip"].forEach((t=>{switch(t){case"tet-compare-cards":customElements.get(n(t))||customElements.define(n(t),y);break;case"tet-button":customElements.get(n(t))||s();break;case"tet-checkbox":customElements.get(n(t))||l();break;case"tet-compare-card":customElements.get(n(t))||d();break;case"tet-dropdown":customElements.get(n(t))||f();break;case"tet-icon":customElements.get(n(t))||m();break;case"tet-placeholder":customElements.get(n(t))||p();break;case"tet-tooltip":customElements.get(n(t))||h()}}))}export{y as T,g as d,w as f}
|
|
1
|
+
import{p as t,H as o,d as e,h as r,c as a,t as n}from"./p-Cdi7KDBd.js";import"./p-Br4jWI9B.js";import{p as i}from"./p-lEX8wezw.js";import{g as c}from"./p-BjOGAbQL.js";import{d as s}from"./p-BTSQyL7G.js";import{d as l}from"./p-5kTi8PjH.js";import{d}from"./p-DT8tgMUV.js";import{d as f}from"./p-DIqowNgr.js";import{d as m}from"./p-CbqipjNj.js";import{d as p}from"./p-CLtgu35N.js";import{d as h}from"./p-BGrd_jXc.js";const w=(t,o,e,r,a,n=!1)=>{const i=t.options,s=e.contractTerms,l=e.contractTerms[0],d=e.attributes?.find((t=>"isBestChoice"===t.key))?.value??!1;let f=t.language,m=null,p=null,h=null,w=null;const y=s.find((t=>0===t.term));null!==l.contract&&(m=l.contract),null!==l.priceDescription&&(p=l.priceDescription[f]),e.benefits?.[f]&&(h=e.benefits[f].split("\n"));let g=y.amount;const u=e.formUrl[f],k={product:o,contractTerm:0};void 0!==t.options.contractTerm&&s.forEach((o=>{parseFloat(t.options.contractTerm)===o.term&&(o.isAlwaysOn||o.showDiscount)&&(k.product=e.productCode,k.contractTerm=o.term,k.promotion=o.promotionCode,g=o.amount,m=o.contract,p=o.priceDescription?o.priceDescription[f]:"",o.showDiscount&&(w=parseFloat(e.amount.toString()).toFixed(2).replace(".",",")),o.benefits?.[f]&&(h=o.benefits[f].split("\n")))}));let b=c(u,k);b=i.manualForm&&""!==i.link?i.link:b+"&lang="+f,i.formParameters&&(b+=i.formParameters);const v=parseFloat(g.toString()).toFixed(2).replace(".",",");return(t={...t,bestChoice:d}).options={...i,price:v,oldPrice:w,mainTitle:e.name[f],subTitle:e.subtitle[f],bulletPoints:h,infoItem:""!==e.descriptionTooltip[f]?'<tet-icon class="icon" name="info-circle" focusable={true}></tet-icon><tet-tooltip class="tet-tooltip">'+e.descriptionTooltip[f]+"</tet-tooltip><style>.tet-tooltip { --text-font: var(--font-family-content) }</style>":"",link:b.toString(),secondaryLink:m,helper:p,theme:r,darkMode:a,isNetflixCard:n},t.isNetflixCard||delete t.productCode,t},y=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),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 o=[];this.changedProductCode=t.detail.value,o.push(this.changedProductCode),this.getProductData(o.join(","),!1)}get host(){return this}async componentWillLoad(){let t=[];this.data.forEach((o=>{void 0!==o.productCode&&(t.includes(o.productCode)||t.push(o.productCode))})),t.length>0?await this.getProductData(t.join(",")):this.showLoader=!1}async componentDidRender(){this.compareCardsDidRender.emit()}getProductData(t,o=!0){o&&(this.showLoader=!0),i(t).then((t=>{const o=[];this.data.forEach((e=>{let r=e.productCode;e.isNetflixCard&&(this.changedProductCode===e.secondaryProductCode?r=e.secondaryProductCode:this.changedProductCode===e.productCode&&(r=e.productCode));const a=t.products[r];a&&(e=w(e,r,a,this.theme)),o.push(e)})),this.data=o,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,o)=>r("tet-compare-card",{class:{"tet-compare-card":!0,"tet-compare-card--thumbnail":!!t.thumbnail},index:o,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}]}}static get style(){return':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}'}},[513,"tet-compare-cards",{data:[1040],vatText:[1,"vat-text"],forceColumn:[4,"force-column"],theme:[1],layout:[1],cardScript:[1,"card-script"],changedProductCode:[1,"changed-product-code"],isNetflixCard:[4,"is-netflix-card"],darkMode:[4,"dark-mode"],initializedState:[32],showLoader:[32]},[[0,"optionSelected","onOptionSelected"]],{data:[{onDataChange:0}]}]);function g(){"undefined"!=typeof customElements&&["tet-compare-cards","tet-button","tet-checkbox","tet-compare-card","tet-dropdown","tet-icon","tet-placeholder","tet-tooltip"].forEach((t=>{switch(t){case"tet-compare-cards":customElements.get(n(t))||customElements.define(n(t),y);break;case"tet-button":customElements.get(n(t))||s();break;case"tet-checkbox":customElements.get(n(t))||l();break;case"tet-compare-card":customElements.get(n(t))||d();break;case"tet-dropdown":customElements.get(n(t))||f();break;case"tet-icon":customElements.get(n(t))||m();break;case"tet-placeholder":customElements.get(n(t))||p();break;case"tet-tooltip":customElements.get(n(t))||h()}}))}export{y as T,g as d,w as f}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as o,d as e,h as i,c as n,t as r}from"./p-DIyhqSTP.js";import{a}from"./p-BVdI6xyV.js";import{n as s}from"./p-D0GJDW-O.js";import{a as l,b as c,c as f}from"./p-Cef0hbKH.js";import{r as p}from"./p-DEnDpXiZ.js";import{d as m}from"./p-C_I-HCHF.js";import{d}from"./p-BHahEQ8o.js";function h(t){return!!t&&(!("string"!=typeof t.h||!["a","button","input","select","textarea"].includes(t.h.toLowerCase()))||"object"==typeof t.o&&null!==t.o&&void 0!==t.o.tabindex&&-1!==t.o.tabindex||!!Array.isArray(t.i)&&t.i.some((t=>h(t))))}const u=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.optionSelected=e(this,"optionSelected"),this.activeComponentStateChanged=e(this,"activeComponentStateChanged"),this.searchTextSubmitted=e(this,"searchTextSubmitted")}get rootElement(){return this}internalUniqueId;inputElement;optionsContainer;activeOptionElement;noOptionsElement;skipNextFilterValueChange=!1;lastFilteredValue="";typingDebounceTime=250;showOptionsOnEscapeClear=!1;defaultOptions=[];optionsFilterAction=()=>[];noOptionsMessage;noOptionsRenderFunction=()=>null;customOptionRenderFunction;clearCallback;finishedLoading;newStyle=!1;highlightOptionsKeyword=!1;darkTheme=!1;optionsIcon="";redesignedStyle=!1;filteredOptions=[];activeOption;showOptions=!1;showLoader=!1;isKeyboardFocus=!0;optionSelected;activeComponentStateChanged;searchTextSubmitted;componentDidLoad(){this.internalUniqueId=p(12);const t=this.rootElement?.querySelector(".autocomplete-input");var o;null!==t&&(this.inputElement=(o={value:t=>{this.skipNextFilterValueChange||this.debouncedUpdateFilteredOptions(t),this.skipNextFilterValueChange=!1}},new Proxy(t,{set:(t,e,i)=>(e in o&&o[e](i),t[e]=i,!0),get:(t,o)=>"origin"===o?t:t[o]}))),this.inputElement?.origin.addEventListener("input",this.onInputChange),this.inputElement?.origin.addEventListener("focus",this.tryToDisplayOptions)}disconnectedCallback(){this.inputElement?.origin.removeEventListener("input",this.onInputChange),this.inputElement?.origin.removeEventListener("focus",this.tryToDisplayOptions),this.debouncedUpdateFilteredOptions.cancel()}onPointerUp(t){t.stopPropagation()}onWindowPointerUp(t){"mouse"!==t.pointerType&&this.activeComponentStateChanged.emit(null)}onMouseDown(){this.isKeyboardFocus=!1}onComponentActiveStateChange({detail:t}){t===this.internalUniqueId&&null!==t||!this.showOptions||(this.showOptions=!1)}async handleKeyDown(t){switch(t.key){case"Escape":await this.clear(this.showOptionsOnEscapeClear);break;case"ArrowDown":if(this.optionsContainer&&this.filteredOptions.length){this.isKeyboardFocus=!0,this.handleInputFocusOutline();const t=-1,o=this.filteredOptions.length-1,e=this.filteredOptions.indexOf(this.activeOption),[i]=this.filteredOptions;if(e===t||e===o)return this.optionsContainer.scrollTop=0,void(this.activeOption=i);this.activeOption=this.filteredOptions[e+1];const n=this.activeOptionElement.nextSibling;this.optionsContainer.scrollTop=n.offsetTop-n.offsetHeight}break;case"ArrowUp":if(this.optionsContainer&&this.filteredOptions.length&&this.activeOption){this.isKeyboardFocus=!0,this.handleInputFocusOutline();const t=this.filteredOptions.length-1,o=this.filteredOptions.indexOf(this.activeOption);if(0===o)return this.optionsContainer.scrollTop=this.optionsContainer.scrollHeight,void(this.activeOption=this.filteredOptions[t]);this.activeOption=this.filteredOptions[o-1];const e=this.activeOptionElement.previousSibling;this.optionsContainer.scrollTop=e.offsetTop-2*e.offsetHeight}break;case"Enter":this.activeOption?(this.getOptionSelectAction(this.activeOption)(t),this.handleInputFocusOutline(!1)):this.searchTextSubmitted.emit();break;default:if(this.showOptions||"Tab"===t.key)return;this.showOptions=!0}}handleNoOptionsFocusOut=t=>{const e=t.relatedTarget;e&&e instanceof o&&e.classList.contains("icon-right")||(this.noOptionsElement?.removeEventListener("focusout",this.handleNoOptionsFocusOut),this.showOptions=!1)};handleFocusOut(t){const e=t.relatedTarget;return l(this.noOptionsRenderFunction)&&null!==this.noOptionsRenderFunction()&&!this.filteredOptions.length&&e&&this.rootElement.contains(e)&&h(this.noOptionsRenderFunction())?(this.noOptionsElement?.removeEventListener("focusout",this.handleNoOptionsFocusOut),void this.noOptionsElement?.addEventListener("focusout",this.handleNoOptionsFocusOut)):e&&e instanceof o&&e.classList.contains("icon-right")?(this.showOptions=!1,void(this.activeOption=null)):void(this.showOptions&&(e&&this.rootElement.contains(e)||(this.showOptions=!1)))}async clear(t=!1){this.inputElement&&(this.inputElement.value="",this.showOptions=(!this.showOptions||!t)&&t,this.handleInputFocusOutline(!1),this.clearCallback&&this.clearCallback())}async focusOnNativeInput(){this.inputElement&&(this.inputElement.origin.focus(),this.showOptions=!0)}async selectOption(t){this.optionSelected.emit(t),this.showOptions=!1,this.activeOption=null,this.inputElement&&(this.skipNextFilterValueChange=!0,this.inputElement.value=t.label)}handleInputFocusOutline=(t=!0)=>{const o=this.rootElement?.querySelector("input");o instanceof HTMLInputElement&&this.isKeyboardFocus&&(t?(o.focus(),requestAnimationFrame((()=>o.classList.remove("keyboard-focus")))):o.classList.add("keyboard-focus"))};tryToExecuteFinishedLoading=()=>{this.finishedLoading instanceof Function&&this.finishedLoading()};tryToDisplayOptions=()=>{this.showOptions=!0,this.activeComponentStateChanged.emit(this.internalUniqueId),this.inputElement&&this.updateFilteredOptions(this.inputElement?.value)};onInputChange=t=>{this.debouncedUpdateFilteredOptions(t.target.value)};updateFilteredOptions=t=>{this.activeOption=null;const o=s(t??"");if(this.defaultOptions.length&&!o)return this.filteredOptions=this.defaultOptions,this.tryToExecuteFinishedLoading();if(!o||this.lastFilteredValue===o)return this.filteredOptions.length&&!o&&(this.filteredOptions=[]),this.lastFilteredValue=o,this.tryToExecuteFinishedLoading();const e=this.optionsFilterAction(o);if(c(e))return this.showLoader=!0,this.filteredOptions=[],void e.then((t=>{this.filteredOptions=t,this.lastFilteredValue=o})).finally((()=>{this.showLoader=!1,requestAnimationFrame((()=>this.tryToExecuteFinishedLoading()))}));this.filteredOptions=e,this.lastFilteredValue=o,this.tryToExecuteFinishedLoading()};debouncedUpdateFilteredOptions=a((t=>{this.updateFilteredOptions(t)}),this.typingDebounceTime);onOptionSelect=async(t,o)=>{await this.selectOption({...o,userInteraction:!0,_originalEvent:t}),t.stopPropagation()};getOptionSelectAction=t=>l(t?.clickCallback)?o=>t.clickCallback(o,t):o=>this.onOptionSelect(o,t);getNoOptionsContent=()=>l(this.noOptionsRenderFunction)&&this.noOptionsRenderFunction()||this.noOptionsMessage;renderOptionsLoader=()=>{if(this.showLoader&&!this.newStyle&&!this.redesignedStyle)return i("ul",{class:"autocomplete-options"},i("li",{class:{"autocomplete-options-loader":!0,dark:this.darkTheme}},i("tet-loader",null)))};renderNoOptionsMessage=()=>{const t=this.getNoOptionsContent(),o={};return f(t)||(o.innerHTML=t),i("li",{class:{"autocomplete-options-none-message":!0,dark:this.darkTheme},...o,"aria-live":"polite",ref:t=>this.noOptionsElement=t},f(t)?t:null)};renderOption=(t,o)=>{const{label:e,ignoreHighlighting:n,cssPart:r}=t,a=this.getOptionSelectAction(t);let s=t;if(this.highlightOptionsKeyword&&!n){const o=t=>t.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),i=this.lastFilteredValue.trim().split(/\s+/).filter(Boolean).map((t=>new RegExp(String.raw`(<strong\b[^>]*>[\s\S]*?<\/strong\s*>|&[^;]+;)|(${o(t)})`,"ig")));let n=e;i.forEach((t=>{n=n.replace(t,((t,o,e)=>e?`<strong>${e}</strong>`:t))})),s={...t,label:n}}return i("li",{class:{"autocomplete-options-item":!0,active:t===this.activeOption,dark:this.darkTheme,"focus-visible":t===this.activeOption&&this.isKeyboardFocus},part:r,onClick:a,onKeyDown:o=>{"Enter"===o.key&&a(t)},ref:o=>t===this.activeOption&&(this.activeOptionElement=o),id:`${this.internalUniqueId}-${o}`,role:"option"},this.renderOptionByType(s))};renderOptionByType(t){switch(!0){case"manual-input"===t.value:return i("span",{class:{"tet-link":!0,dark:this.darkTheme,"manual-input":!0,"option-cta":!0},innerHTML:t.label});case"more-results"===t.value:return i("span",{class:{"tet-link":!0,dark:this.darkTheme,"more-results":!0,"option-cta":!0},innerHTML:t.label});case l(this.customOptionRenderFunction):return this.customOptionRenderFunction(t);default:return[this.optionsIcon&&(this.newStyle||this.redesignedStyle)&&i("tet-icon",{class:"icon",name:this.optionsIcon}),i("span",{innerHTML:t.label})]}}renderOptions=t=>{if(!this.showOptions)return;const o=!t.length&&!this.showLoader&&this.inputElement?.value&&!!this.getNoOptionsContent();return o||t.length?i("div",{class:{"autocomplete-options-container":!0,dark:this.darkTheme,"new-style":this.newStyle||this.redesignedStyle,"redesigned-style":this.redesignedStyle},part:"autocomplete-options-container",role:"combobox","aria-expanded":this.showOptions,"aria-activedescendant":this.activeOption?`${this.internalUniqueId}-${this.filteredOptions.indexOf(this.activeOption)}`:void 0},i("ul",{class:"autocomplete-options",ref:t=>this.optionsContainer=t,role:"listbox",tabindex:"-1"},o&&this.renderNoOptionsMessage(),t.map(this.renderOption))):void 0};render(){return i(n,{key:"4013761b4efc432227e013802f867f637b075f25",class:{autocomplete:!0,dark:this.darkTheme}},i("slot",{key:"c8ca2da46f114e9d6257d53c44b3739e8f0a87cf"}),this.renderOptionsLoader(),this.renderOptions(this.filteredOptions))}static get style(){return':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{--option-padding:0.5rem 1rem;--options-max-height:15.625rem;--options-max-height-new-style:12.25rem;--option-background-color:var(--tc-layer-secondary);--option-hover-background-color:var(--tc-menu-item-hover);--option-pressed-background-color:var(--tc-menu-item-pressed);--option-item-icon-color:var(--tc-icon-secondary);--option-item-icon-hover-color:var(--tc-icon-primary);--option-text-color:var(--tc-text-primary);--option-container-border-color:var(--tc-border-secondary);--option-text-highlight-color:var(--tc-yellow-20);display:block;position:relative}::slotted(.autocomplete-input){width:100%}.autocomplete-options{overflow-y:auto;list-style:none;max-height:var(--options-max-height);--item-icon-color:var(--option-item-icon-color)}.autocomplete-options-container{position:absolute;z-index:20;width:100%;background-color:var(--option-background-color);margin:0;padding:0;border-radius:0.1875rem;box-shadow:0 0 0 0.0625rem rgba(5, 29, 89, 0.16), 0 0.25rem 0.5rem rgba(5, 29, 89, 0.25);font-family:var(--text-font);animation:slideDown 0.125s ease-out 1;animation-fill-mode:forwards}.autocomplete-options-container .autocomplete-options{padding:0.375rem 0}.autocomplete-options-container .autocomplete-options:has(.autocomplete-options-item .manual-input),.autocomplete-options-container .autocomplete-options:has(.autocomplete-options-item .more-results){padding-bottom:0;margin-bottom:0.375rem}.autocomplete-options-container.redesigned-style .autocomplete-options{margin-right:0.25rem}.autocomplete-options-container.redesigned-style .autocomplete-options::-webkit-scrollbar{width:0.5rem;height:0.5rem}.autocomplete-options-container.redesigned-style .autocomplete-options::-webkit-scrollbar-thumb{background:var(--tc-border-quaternary);border-radius:0.5rem}.autocomplete-options-container.redesigned-style .autocomplete-options::-webkit-scrollbar-track{background:var(--tc-layer-primary)}.autocomplete-options-container.redesigned-style.dark .autocomplete-options{margin-right:0.25rem}.autocomplete-options-container.redesigned-style.dark .autocomplete-options::-webkit-scrollbar{width:0.5rem;height:0.5rem}.autocomplete-options-container.redesigned-style.dark .autocomplete-options::-webkit-scrollbar-thumb{background:var(--tc-border-quaternary-dark);border-radius:0.5rem}.autocomplete-options-container.redesigned-style.dark .autocomplete-options::-webkit-scrollbar-track{background:var(--tc-layer-primary-dark)}.autocomplete-options-container .autocomplete-options-item{margin:0 0.375rem}.autocomplete-options-container .autocomplete-options-item .manual-input,.autocomplete-options-container .autocomplete-options-item .more-results{outline-offset:0.125rem !important;margin:0 0.375rem}.autocomplete-options-container.dark{--option-background-color:var(--tc-layer-secondary-dark);--option-hover-background-color:var(--tc-menu-item-hover-dark);--option-pressed-background-color:var(--tc-menu-item-pressed-dark);--option-item-icon-color:var(--tc-icon-secondary-dark);--option-item-icon-hover-color:var(--tc-icon-primary-dark);--option-text-color:var(--tc-text-primary-dark);--option-container-border-color:var(--tc-border-secondary-dark);--option-text-highlight-color:var(--tc-grey-30-dark)}.autocomplete-options-container.new-style{--options-max-height:var(--options-max-height-new-style);--option-padding:0.5rem 1rem 0.5rem 0.5rem;background:var(--option-background-color);font-family:"Inter", var(--font-family-fallback);box-shadow:none;border:0.03125rem solid var(--option-container-border-color);margin-top:0.375rem;border-radius:0.625rem;overflow:hidden}.autocomplete-options-container.new-style .autocomplete-options{padding:0.5rem 0}.autocomplete-options-container.new-style .autocomplete-options:has(.autocomplete-options-item .manual-input){margin-bottom:0.5rem}.autocomplete-options-container.new-style .autocomplete-options-item{display:flex;position:relative;min-height:2.25rem;color:var(--option-text-color);border-radius:0.625rem;gap:0.5rem;margin:0 0.5rem;font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.autocomplete-options-container.new-style .autocomplete-options-item .manual-input,.autocomplete-options-container.new-style .autocomplete-options-item .more-results{margin:0 0.5rem}.autocomplete-options-container.new-style .autocomplete-options-item .more-results{text-decoration:none}.autocomplete-options-container.new-style .autocomplete-options-item .highlight{background-color:var(--option-text-highlight-color)}.autocomplete-options-container.new-style .autocomplete-options-none-message{font-size:0.875rem;color:var(--option-text-color);text-align:left;padding:0.5rem 1rem;font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.autocomplete-options-item{display:flex;align-items:center;padding:var(--option-padding);color:var(--option-text-color);background:var(--option-background-color);cursor:pointer}.autocomplete-options-item:has(.more-results){--option-padding:0.75rem 0.5rem 0.5rem}.autocomplete-options-item .icon{--icon-color:var(--option-item-icon-color);--icon-size:1.25rem}.autocomplete-options-item:hover,.autocomplete-options-item.active{background:var(--option-hover-background-color);--option-item-icon-color:var(--option-item-icon-hover-color)}.autocomplete-options-item:hover.focus-visible:not(:has(.option-cta)),.autocomplete-options-item:hover.focus-visible .option-cta,.autocomplete-options-item.active.focus-visible:not(:has(.option-cta)),.autocomplete-options-item.active.focus-visible .option-cta{outline:0.125rem solid var(--tc-blue-40);outline-offset:0rem;transition:outline 0s;--option-item-icon-color:var(--tc-icon-secondary);background:var(--option-background-color);border-radius:0.125rem;z-index:2}.autocomplete-options-item:hover.focus-visible:not(:has(.option-cta)).dark,.autocomplete-options-item:hover.focus-visible .option-cta.dark,.autocomplete-options-item.active.focus-visible:not(:has(.option-cta)).dark,.autocomplete-options-item.active.focus-visible .option-cta.dark{outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0rem;transition:outline 0s;--option-item-icon-color:var(--tc-icon-secondary-dark)}.autocomplete-options-item:active{background:var(--option-pressed-background-color)}.autocomplete-options-loader{display:flex;align-items:center;justify-content:center;background:var(--tc-layer-primary);position:absolute;height:11.625rem;width:100%;z-index:100}.autocomplete-options-loader.dark{background:var(--tc-layer-primary-dark)}.autocomplete-options-none-message{padding:var(--option-padding);color:var(--option-text-color);background:var(--option-background-color);text-align:center}@keyframes slideDown{0%{opacity:0;transform:translateY(-25%)}50%{opacity:0.1}100%{opacity:1;transform:translateY(0)}}'}},[769,"tet-autocomplete",{showOptionsOnEscapeClear:[4,"show-options-on-escape-clear"],defaultOptions:[16],optionsFilterAction:[16],noOptionsMessage:[1,"no-options-message"],noOptionsRenderFunction:[16],customOptionRenderFunction:[16],clearCallback:[16],finishedLoading:[16],newStyle:[4,"new-style"],highlightOptionsKeyword:[4,"highlight-options-keyword"],darkTheme:[4,"dark-theme"],optionsIcon:[1,"options-icon"],redesignedStyle:[4,"redesigned-style"],filteredOptions:[32],activeOption:[32],showOptions:[32],showLoader:[32],isKeyboardFocus:[32],clear:[64],focusOnNativeInput:[64],selectOption:[64]},[[1,"pointerup","onPointerUp"],[9,"pointerup","onWindowPointerUp"],[9,"mousedown","onMouseDown"],[8,"activeComponentStateChanged","onComponentActiveStateChange"],[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]]]);function g(){"undefined"!=typeof customElements&&["tet-autocomplete","tet-icon","tet-loader"].forEach((t=>{switch(t){case"tet-autocomplete":customElements.get(r(t))||customElements.define(r(t),u);break;case"tet-icon":customElements.get(r(t))||m();break;case"tet-loader":customElements.get(r(t))||d()}}))}export{u as T,g as d}
|
|
1
|
+
import{p as t,H as o,d as e,h as i,c as n,t as r}from"./p-Cdi7KDBd.js";import{a}from"./p-BVdI6xyV.js";import{n as s}from"./p-D0GJDW-O.js";import{a as l,b as c,c as f}from"./p-Cef0hbKH.js";import{r as p}from"./p-DEnDpXiZ.js";import{d as m}from"./p-CbqipjNj.js";import{d}from"./p-PYYBcx0f.js";function h(t){return!!t&&(!("string"!=typeof t.h||!["a","button","input","select","textarea"].includes(t.h.toLowerCase()))||"object"==typeof t.o&&null!==t.o&&void 0!==t.o.tabindex&&-1!==t.o.tabindex||!!Array.isArray(t.i)&&t.i.some((t=>h(t))))}const u=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.optionSelected=e(this,"optionSelected"),this.activeComponentStateChanged=e(this,"activeComponentStateChanged"),this.searchTextSubmitted=e(this,"searchTextSubmitted")}get rootElement(){return this}internalUniqueId;inputElement;optionsContainer;activeOptionElement;noOptionsElement;skipNextFilterValueChange=!1;lastFilteredValue="";typingDebounceTime=250;showOptionsOnEscapeClear=!1;defaultOptions=[];optionsFilterAction=()=>[];noOptionsMessage;noOptionsRenderFunction=()=>null;customOptionRenderFunction;clearCallback;finishedLoading;newStyle=!1;highlightOptionsKeyword=!1;darkTheme=!1;optionsIcon="";redesignedStyle=!1;filteredOptions=[];activeOption;showOptions=!1;showLoader=!1;isKeyboardFocus=!0;optionSelected;activeComponentStateChanged;searchTextSubmitted;componentDidLoad(){this.internalUniqueId=p(12);const t=this.rootElement?.querySelector(".autocomplete-input");var o;null!==t&&(this.inputElement=(o={value:t=>{this.skipNextFilterValueChange||this.debouncedUpdateFilteredOptions(t),this.skipNextFilterValueChange=!1}},new Proxy(t,{set:(t,e,i)=>(e in o&&o[e](i),t[e]=i,!0),get:(t,o)=>"origin"===o?t:t[o]}))),this.inputElement?.origin.addEventListener("input",this.onInputChange),this.inputElement?.origin.addEventListener("focus",this.tryToDisplayOptions)}disconnectedCallback(){this.inputElement?.origin.removeEventListener("input",this.onInputChange),this.inputElement?.origin.removeEventListener("focus",this.tryToDisplayOptions),this.debouncedUpdateFilteredOptions.cancel()}onPointerUp(t){t.stopPropagation()}onWindowPointerUp(t){"mouse"!==t.pointerType&&this.activeComponentStateChanged.emit(null)}onMouseDown(){this.isKeyboardFocus=!1}onComponentActiveStateChange({detail:t}){t===this.internalUniqueId&&null!==t||!this.showOptions||(this.showOptions=!1)}async handleKeyDown(t){switch(t.key){case"Escape":await this.clear(this.showOptionsOnEscapeClear);break;case"ArrowDown":if(this.optionsContainer&&this.filteredOptions.length){this.isKeyboardFocus=!0,this.handleInputFocusOutline();const t=-1,o=this.filteredOptions.length-1,e=this.filteredOptions.indexOf(this.activeOption),[i]=this.filteredOptions;if(e===t||e===o)return this.optionsContainer.scrollTop=0,void(this.activeOption=i);this.activeOption=this.filteredOptions[e+1];const n=this.activeOptionElement.nextSibling;this.optionsContainer.scrollTop=n.offsetTop-n.offsetHeight}break;case"ArrowUp":if(this.optionsContainer&&this.filteredOptions.length&&this.activeOption){this.isKeyboardFocus=!0,this.handleInputFocusOutline();const t=this.filteredOptions.length-1,o=this.filteredOptions.indexOf(this.activeOption);if(0===o)return this.optionsContainer.scrollTop=this.optionsContainer.scrollHeight,void(this.activeOption=this.filteredOptions[t]);this.activeOption=this.filteredOptions[o-1];const e=this.activeOptionElement.previousSibling;this.optionsContainer.scrollTop=e.offsetTop-2*e.offsetHeight}break;case"Enter":this.activeOption?(this.getOptionSelectAction(this.activeOption)(t),this.handleInputFocusOutline(!1)):this.searchTextSubmitted.emit();break;default:if(this.showOptions||"Tab"===t.key)return;this.showOptions=!0}}handleNoOptionsFocusOut=t=>{const e=t.relatedTarget;e&&e instanceof o&&e.classList.contains("icon-right")||(this.noOptionsElement?.removeEventListener("focusout",this.handleNoOptionsFocusOut),this.showOptions=!1)};handleFocusOut(t){const e=t.relatedTarget;return l(this.noOptionsRenderFunction)&&null!==this.noOptionsRenderFunction()&&!this.filteredOptions.length&&e&&this.rootElement.contains(e)&&h(this.noOptionsRenderFunction())?(this.noOptionsElement?.removeEventListener("focusout",this.handleNoOptionsFocusOut),void this.noOptionsElement?.addEventListener("focusout",this.handleNoOptionsFocusOut)):e&&e instanceof o&&e.classList.contains("icon-right")?(this.showOptions=!1,void(this.activeOption=null)):void(this.showOptions&&(e&&this.rootElement.contains(e)||(this.showOptions=!1)))}async clear(t=!1){this.inputElement&&(this.inputElement.value="",this.showOptions=(!this.showOptions||!t)&&t,this.handleInputFocusOutline(!1),this.clearCallback&&this.clearCallback())}async focusOnNativeInput(){this.inputElement&&(this.inputElement.origin.focus(),this.showOptions=!0)}async selectOption(t){this.optionSelected.emit(t),this.showOptions=!1,this.activeOption=null,this.inputElement&&(this.skipNextFilterValueChange=!0,this.inputElement.value=t.label)}handleInputFocusOutline=(t=!0)=>{const o=this.rootElement?.querySelector("input");o instanceof HTMLInputElement&&this.isKeyboardFocus&&(t?(o.focus(),requestAnimationFrame((()=>o.classList.remove("keyboard-focus")))):o.classList.add("keyboard-focus"))};tryToExecuteFinishedLoading=()=>{this.finishedLoading instanceof Function&&this.finishedLoading()};tryToDisplayOptions=()=>{this.showOptions=!0,this.activeComponentStateChanged.emit(this.internalUniqueId),this.inputElement&&this.updateFilteredOptions(this.inputElement?.value)};onInputChange=t=>{this.debouncedUpdateFilteredOptions(t.target.value)};updateFilteredOptions=t=>{this.activeOption=null;const o=s(t??"");if(this.defaultOptions.length&&!o)return this.filteredOptions=this.defaultOptions,this.tryToExecuteFinishedLoading();if(!o||this.lastFilteredValue===o)return this.filteredOptions.length&&!o&&(this.filteredOptions=[]),this.lastFilteredValue=o,this.tryToExecuteFinishedLoading();const e=this.optionsFilterAction(o);if(c(e))return this.showLoader=!0,this.filteredOptions=[],void e.then((t=>{this.filteredOptions=t,this.lastFilteredValue=o})).finally((()=>{this.showLoader=!1,requestAnimationFrame((()=>this.tryToExecuteFinishedLoading()))}));this.filteredOptions=e,this.lastFilteredValue=o,this.tryToExecuteFinishedLoading()};debouncedUpdateFilteredOptions=a((t=>{this.updateFilteredOptions(t)}),this.typingDebounceTime);onOptionSelect=async(t,o)=>{await this.selectOption({...o,userInteraction:!0,_originalEvent:t}),t.stopPropagation()};getOptionSelectAction=t=>l(t?.clickCallback)?o=>t.clickCallback(o,t):o=>this.onOptionSelect(o,t);getNoOptionsContent=()=>l(this.noOptionsRenderFunction)&&this.noOptionsRenderFunction()||this.noOptionsMessage;renderOptionsLoader=()=>{if(this.showLoader&&!this.newStyle&&!this.redesignedStyle)return i("ul",{class:"autocomplete-options"},i("li",{class:{"autocomplete-options-loader":!0,dark:this.darkTheme}},i("tet-loader",null)))};renderNoOptionsMessage=()=>{const t=this.getNoOptionsContent(),o={};return f(t)||(o.innerHTML=t),i("li",{class:{"autocomplete-options-none-message":!0,dark:this.darkTheme},...o,"aria-live":"polite",ref:t=>this.noOptionsElement=t},f(t)?t:null)};renderOption=(t,o)=>{const{label:e,ignoreHighlighting:n,cssPart:r}=t,a=this.getOptionSelectAction(t);let s=t;if(this.highlightOptionsKeyword&&!n){const o=t=>t.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),i=this.lastFilteredValue.trim().split(/\s+/).filter(Boolean).map((t=>new RegExp(String.raw`(<strong\b[^>]*>[\s\S]*?<\/strong\s*>|&[^;]+;)|(${o(t)})`,"ig")));let n=e;i.forEach((t=>{n=n.replace(t,((t,o,e)=>e?`<strong>${e}</strong>`:t))})),s={...t,label:n}}return i("li",{class:{"autocomplete-options-item":!0,active:t===this.activeOption,dark:this.darkTheme,"focus-visible":t===this.activeOption&&this.isKeyboardFocus},part:r,onClick:a,onKeyDown:o=>{"Enter"===o.key&&a(t)},ref:o=>t===this.activeOption&&(this.activeOptionElement=o),id:`${this.internalUniqueId}-${o}`,role:"option"},this.renderOptionByType(s))};renderOptionByType(t){switch(!0){case"manual-input"===t.value:return i("span",{class:{"tet-link":!0,dark:this.darkTheme,"manual-input":!0,"option-cta":!0},innerHTML:t.label});case"more-results"===t.value:return i("span",{class:{"tet-link":!0,dark:this.darkTheme,"more-results":!0,"option-cta":!0},innerHTML:t.label});case l(this.customOptionRenderFunction):return this.customOptionRenderFunction(t);default:return[this.optionsIcon&&(this.newStyle||this.redesignedStyle)&&i("tet-icon",{class:"icon",name:this.optionsIcon}),i("span",{innerHTML:t.label})]}}renderOptions=t=>{if(!this.showOptions)return;const o=!t.length&&!this.showLoader&&this.inputElement?.value&&!!this.getNoOptionsContent();return o||t.length?i("div",{class:{"autocomplete-options-container":!0,dark:this.darkTheme,"new-style":this.newStyle||this.redesignedStyle,"redesigned-style":this.redesignedStyle},part:"autocomplete-options-container",role:"combobox","aria-expanded":this.showOptions,"aria-activedescendant":this.activeOption?`${this.internalUniqueId}-${this.filteredOptions.indexOf(this.activeOption)}`:void 0},i("ul",{class:"autocomplete-options",ref:t=>this.optionsContainer=t,role:"listbox",tabindex:"-1"},o&&this.renderNoOptionsMessage(),t.map(this.renderOption))):void 0};render(){return i(n,{key:"4013761b4efc432227e013802f867f637b075f25",class:{autocomplete:!0,dark:this.darkTheme}},i("slot",{key:"c8ca2da46f114e9d6257d53c44b3739e8f0a87cf"}),this.renderOptionsLoader(),this.renderOptions(this.filteredOptions))}static get style(){return':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{--option-padding:0.5rem 1rem;--options-max-height:15.625rem;--options-max-height-new-style:12.25rem;--option-background-color:var(--tc-layer-secondary);--option-hover-background-color:var(--tc-menu-item-hover);--option-pressed-background-color:var(--tc-menu-item-pressed);--option-item-icon-color:var(--tc-icon-secondary);--option-item-icon-hover-color:var(--tc-icon-primary);--option-text-color:var(--tc-text-primary);--option-container-border-color:var(--tc-border-secondary);--option-text-highlight-color:var(--tc-yellow-20);display:block;position:relative}::slotted(.autocomplete-input){width:100%}.autocomplete-options{overflow-y:auto;list-style:none;max-height:var(--options-max-height);--item-icon-color:var(--option-item-icon-color)}.autocomplete-options-container{position:absolute;z-index:20;width:100%;background-color:var(--option-background-color);margin:0;padding:0;border-radius:0.1875rem;box-shadow:0 0 0 0.0625rem rgba(5, 29, 89, 0.16), 0 0.25rem 0.5rem rgba(5, 29, 89, 0.25);font-family:var(--text-font);animation:slideDown 0.125s ease-out 1;animation-fill-mode:forwards}.autocomplete-options-container .autocomplete-options{padding:0.375rem 0}.autocomplete-options-container .autocomplete-options:has(.autocomplete-options-item .manual-input),.autocomplete-options-container .autocomplete-options:has(.autocomplete-options-item .more-results){padding-bottom:0;margin-bottom:0.375rem}.autocomplete-options-container.redesigned-style .autocomplete-options{margin-right:0.25rem}.autocomplete-options-container.redesigned-style .autocomplete-options::-webkit-scrollbar{width:0.5rem;height:0.5rem}.autocomplete-options-container.redesigned-style .autocomplete-options::-webkit-scrollbar-thumb{background:var(--tc-border-quaternary);border-radius:0.5rem}.autocomplete-options-container.redesigned-style .autocomplete-options::-webkit-scrollbar-track{background:var(--tc-layer-primary)}.autocomplete-options-container.redesigned-style.dark .autocomplete-options{margin-right:0.25rem}.autocomplete-options-container.redesigned-style.dark .autocomplete-options::-webkit-scrollbar{width:0.5rem;height:0.5rem}.autocomplete-options-container.redesigned-style.dark .autocomplete-options::-webkit-scrollbar-thumb{background:var(--tc-border-quaternary-dark);border-radius:0.5rem}.autocomplete-options-container.redesigned-style.dark .autocomplete-options::-webkit-scrollbar-track{background:var(--tc-layer-primary-dark)}.autocomplete-options-container .autocomplete-options-item{margin:0 0.375rem}.autocomplete-options-container .autocomplete-options-item .manual-input,.autocomplete-options-container .autocomplete-options-item .more-results{outline-offset:0.125rem !important;margin:0 0.375rem}.autocomplete-options-container.dark{--option-background-color:var(--tc-layer-secondary-dark);--option-hover-background-color:var(--tc-menu-item-hover-dark);--option-pressed-background-color:var(--tc-menu-item-pressed-dark);--option-item-icon-color:var(--tc-icon-secondary-dark);--option-item-icon-hover-color:var(--tc-icon-primary-dark);--option-text-color:var(--tc-text-primary-dark);--option-container-border-color:var(--tc-border-secondary-dark);--option-text-highlight-color:var(--tc-grey-30-dark)}.autocomplete-options-container.new-style{--options-max-height:var(--options-max-height-new-style);--option-padding:0.5rem 1rem 0.5rem 0.5rem;background:var(--option-background-color);font-family:"Inter", var(--font-family-fallback);box-shadow:none;border:0.03125rem solid var(--option-container-border-color);margin-top:0.375rem;border-radius:0.625rem;overflow:hidden}.autocomplete-options-container.new-style .autocomplete-options{padding:0.5rem 0}.autocomplete-options-container.new-style .autocomplete-options:has(.autocomplete-options-item .manual-input){margin-bottom:0.5rem}.autocomplete-options-container.new-style .autocomplete-options-item{display:flex;position:relative;min-height:2.25rem;color:var(--option-text-color);border-radius:0.625rem;gap:0.5rem;margin:0 0.5rem;font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.autocomplete-options-container.new-style .autocomplete-options-item .manual-input,.autocomplete-options-container.new-style .autocomplete-options-item .more-results{margin:0 0.5rem}.autocomplete-options-container.new-style .autocomplete-options-item .more-results{text-decoration:none}.autocomplete-options-container.new-style .autocomplete-options-item .highlight{background-color:var(--option-text-highlight-color)}.autocomplete-options-container.new-style .autocomplete-options-none-message{font-size:0.875rem;color:var(--option-text-color);text-align:left;padding:0.5rem 1rem;font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.autocomplete-options-item{display:flex;align-items:center;padding:var(--option-padding);color:var(--option-text-color);background:var(--option-background-color);cursor:pointer}.autocomplete-options-item:has(.more-results){--option-padding:0.75rem 0.5rem 0.5rem}.autocomplete-options-item .icon{--icon-color:var(--option-item-icon-color);--icon-size:1.25rem}.autocomplete-options-item:hover,.autocomplete-options-item.active{background:var(--option-hover-background-color);--option-item-icon-color:var(--option-item-icon-hover-color)}.autocomplete-options-item:hover.focus-visible:not(:has(.option-cta)),.autocomplete-options-item:hover.focus-visible .option-cta,.autocomplete-options-item.active.focus-visible:not(:has(.option-cta)),.autocomplete-options-item.active.focus-visible .option-cta{outline:0.125rem solid var(--tc-blue-40);outline-offset:0rem;transition:outline 0s;--option-item-icon-color:var(--tc-icon-secondary);background:var(--option-background-color);border-radius:0.125rem;z-index:2}.autocomplete-options-item:hover.focus-visible:not(:has(.option-cta)).dark,.autocomplete-options-item:hover.focus-visible .option-cta.dark,.autocomplete-options-item.active.focus-visible:not(:has(.option-cta)).dark,.autocomplete-options-item.active.focus-visible .option-cta.dark{outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0rem;transition:outline 0s;--option-item-icon-color:var(--tc-icon-secondary-dark)}.autocomplete-options-item:active{background:var(--option-pressed-background-color)}.autocomplete-options-loader{display:flex;align-items:center;justify-content:center;background:var(--tc-layer-primary);position:absolute;height:11.625rem;width:100%;z-index:100}.autocomplete-options-loader.dark{background:var(--tc-layer-primary-dark)}.autocomplete-options-none-message{padding:var(--option-padding);color:var(--option-text-color);background:var(--option-background-color);text-align:center}@keyframes slideDown{0%{opacity:0;transform:translateY(-25%)}50%{opacity:0.1}100%{opacity:1;transform:translateY(0)}}'}},[769,"tet-autocomplete",{showOptionsOnEscapeClear:[4,"show-options-on-escape-clear"],defaultOptions:[16],optionsFilterAction:[16],noOptionsMessage:[1,"no-options-message"],noOptionsRenderFunction:[16],customOptionRenderFunction:[16],clearCallback:[16],finishedLoading:[16],newStyle:[4,"new-style"],highlightOptionsKeyword:[4,"highlight-options-keyword"],darkTheme:[4,"dark-theme"],optionsIcon:[1,"options-icon"],redesignedStyle:[4,"redesigned-style"],filteredOptions:[32],activeOption:[32],showOptions:[32],showLoader:[32],isKeyboardFocus:[32],clear:[64],focusOnNativeInput:[64],selectOption:[64]},[[1,"pointerup","onPointerUp"],[9,"pointerup","onWindowPointerUp"],[9,"mousedown","onMouseDown"],[8,"activeComponentStateChanged","onComponentActiveStateChange"],[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]]]);function g(){"undefined"!=typeof customElements&&["tet-autocomplete","tet-icon","tet-loader"].forEach((t=>{switch(t){case"tet-autocomplete":customElements.get(r(t))||customElements.define(r(t),u);break;case"tet-icon":customElements.get(r(t))||m();break;case"tet-loader":customElements.get(r(t))||d()}}))}export{u as T,g as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,d as o,f as r,h as i,c as n,t as s}from"./p-DIyhqSTP.js";import{s as a,o as l}from"./p-Blxc4nS1.js";import{A as c,e as f}from"./p-dg7EpwKx.js";import{p as m,t as d}from"./p-DZ6ri3Ez.js";import{g as h}from"./p-BjOGAbQL.js";import{f as p}from"./p-B_N3UuP2.js";import{d as g}from"./p-Bi78LkRt.js";import{d as u}from"./p-BztLFj9W.js";import{d as y}from"./p-DU0_ajAu.js";import{d as b}from"./p-CXntvSG-.js";import{d as w}from"./p-B2NxKDsF.js";import{d as k}from"./p-C_I-HCHF.js";import{d as x}from"./p-CP4sqVXo.js";import{d as v}from"./p-BACVoq7a.js";import{d as C}from"./p-CsG3RqDp.js";import{d as _}from"./p-CpLfddvj.js";var P;!function(t){t[t.TwentyFourMonth=24]="TwentyFourMonth",t[t.TwelveMonth=12]="TwelveMonth",t[t.SixMonth=6]="SixMonth",t[t.Indefinite=0]="Indefinite"}(P||(P={}));const T=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.emptyCatalog=o(this,"emptyCatalog"),this.catalogChange=o(this,"catalogChange"),this.filtersChange=o(this,"filtersChange")}translationsGroup="tet-components";allowedProductsToShowInfo=["PD_TELCO_SUPER","PD_TELCO_SUPER_PACK_A","PD_TELCO_SUPER_PACK_B","PD_TELCO_SUPER_PACK_C","PD_TELCO_SUPER_PACK_D","PD_TELCO_PACKAGE_A","PD_TELCO_PACKAGE_B","PD_TELCO_PACKAGE_C","PD_TELCO_PACKAGE_D","PD_TELCO_NETFLIX_PACKAGE_A_ITV_SUPER","PD_TELCO_HBOMAX_IPTV_PACK_A","PD_TELCO_HBOMAX_IPTV_PACK_B","PD_TELCO_HBOMAX_IPTV_PACK_C","PD_TELCO_NETFLIX_PACKAGE_A_SUPER","PD_TELCO_HBOMAX_OTT_PACK_A_SUPER","PD_TELCO_HBOMAX_OTT_PACK_B_SUPER","PD_TELCO_HBOMAX_OTT_PACK_C_SUPER"];get element(){return this}addressKey;catalog;theme="light";darkMode=!1;termText;formParameters="";language="lv";allowedTvProductCodes=[];showLoader=!0;subcategoryProductFilters={};emptyCatalog;catalogChange;filtersChange;async onAddressKeyChange(){await this.loadCatalogData()}async onLanguageChanged(t){await m(this.translationsGroup,t),r(this)}handleFilteredProductsChanged(t){this.subcategoryProductFilters={...this.subcategoryProductFilters,[t.detail.subcategoryId]:t.detail.filteredProductIds}}async componentWillLoad(){await m(this.translationsGroup,this.language)}async componentDidLoad(){await this.loadCatalogData(),this.initFilterChangeEvent()}initFilterChangeEvent(){const t=a.availableFilters.map((t=>(t.title=d(t.title),t)));l("activeFilters",(()=>{this.filtersChange.emit({activeFilters:a.activeFilters,availableFilters:t})}))}async loadCatalogData(){this.showLoader=!0,a.availableFilters=[];try{const t=await(t=>{const e=f.serviceAvailabilityServices;return(new c).setUrl(e+"?addressKey="+t).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()})(this.addressKey);this.catalog=t,a.catalog=t,this.catalogChange.emit({catalog:t,activeFilters:a.activeFilters,availableFilters:a.availableFilters})}catch(t){this.emptyCatalog.emit()}a.catalog instanceof Array&&!a.catalog.length&&this.emptyCatalog.emit(),this.showLoader=!1}filterCategoryProducts=t=>{const e=this.subcategoryProductFilters[t.key]||[];if(e.length>0)return t.products.filter((t=>e.includes(t.productCode)));const{activeFilters:o}=a;return o.includes("promotions")?t.products.filter(this.productHasPromotion.bind(this)):t.products};translateProperty(t){return t?.[this.language]||""}showCategory=t=>{if(t.subgroups?.length>0)return t.subgroups.some(this.showCategory);const{activeFilters:e}=a;return(!t.tag||["all",t.tag??""].some((t=>e.includes(t)))||e.includes("promotions")&&this.categoryContainsPromotions(t))&&this.categoryContainsContractTerms(t)&&this.filterCategoryProducts(t).length>0};categoryContainsPromotions({products:t=[]}){return t?.some((t=>this.productHasPromotion(t)))}productHasPromotion(t){return t?.contractTerms?.some((({promotionCode:t})=>t))}categoryContainsContractTerms({products:t=[]}){return t?.some((t=>this.productHasContractTerms(t)))}productHasContractTerms(t){return!!t?.contractTerms?.length}renderTopCategories(){return a.catalog?.structure?.filter(this.showCategory).map((t=>{const e=this.translateProperty(t.name);return i("section",{class:{category:!0,[`category--${this.theme}`]:!!this.theme,[this.theme]:!0}},e&&i("h2",{class:{"category-title":!0,[`category-title--${this.theme}`]:!!this.theme,[this.theme]:!0}},e),i("div",{class:{"category-subcategories":!0,[`category-subcategories--${this.theme}`]:!!this.theme,[this.theme]:!0}},this.renderSubCategories(t.subgroups||[],a.catalog?.meta)))}))}renderSubCategories(t,e){return t.filter(this.showCategory).map((t=>i("div",{class:"subcategory"},i("div",{class:"subcategory-header"},this.renderSubCategoryHeader(t)),t.hasProductTags&&i("div",{class:"subcategory-filters"},i("tet-address-offers-filters-products",{catalog:this.catalog,class:"center",language:this.language,clearFilterButton:!0,subcategoryId:t.key,onFilteredProductsChanged:t=>this.handleFilteredProductsChanged(t),category:t,theme:this.theme})),i("div",{class:"subcategory-products"},this.filterCategoryProducts(t).map((o=>this.renderProduct(o,t.theme,e)))))))}renderSubCategoryHeader=({displayTitle:t,name:e,landingPage:o,isOneTv:r})=>{const n=this.translateProperty(e),s=this.translateProperty(o);return[i("div",{class:{"subcategory-title":!0,[`subcategory-title--${this.theme}`]:!!this.theme,[this.theme]:!0}},r&&i("tet-icon",{name:"logo-tet-tv-plus",useDefaultColor:!0}),t&&n&&i("h3",{class:{[this.theme]:!!this.theme}},n)),s&&i("a",{class:{"subcategory-offers-link":!0,[`subcategory-offers-link--${this.theme}`]:!!this.theme,[this.theme]:!0},href:s,target:"_blank"},i("span",{class:{"subcategory-offers-link-text":!0,[`subcategory-offers-link-text--${this.theme}`]:!!this.theme,[this.theme]:!0}},d("components-address-offers-view-more-link"))," --\x3e")]};renderUpsellBlock(t,e,o){let r=e.find((t=>"sac-offers-light"===t.key));const n="dark"===this.theme;return n&&(r=e.find((t=>"sac-offers-dark"===t.key))),i("div",{class:"upsell-block"},i("div",{class:{"upsell-block--title":!0,dark:n}},d("components-max-sport-upsell-title")),i("div",{class:{"upsell-block--content":!0,dark:n}},i("img",{src:r.icon,alt:"",class:{"upsell-block--icon":!0},loading:"lazy"}),i("div",{class:{"upsell-block--name":!0,dark:n}},t),i("div",{class:{"upsell-block--amount":!0,dark:n}},"+",o," ",d("components-euro")),i("div",{class:{"upsell-block--tooltip":!0}},i("tet-icon",{class:"icon",name:"tc-info-circle",focusable:!0,theme:this.theme}),i("tet-tooltip",{theme:this.theme},d("components-max-sport-upsell-tooltip-info")))))}renderProduct(t,e="light",o){if(!this.getContractTerm(t))return;const r=t=>this.translateProperty(t),n=this.darkMode?"dark":"light",s=t.amount,a=this.getContractTermProperty(t,"amount"),l=this.getContractTermProperty(t,"showDiscount"),c=this.getContractTermProperty(t,"isAlwaysOn"),f=r(this.getContractTermProperty(t,"priceTooltip")),m=r(this.getContractTermProperty(t,"priceDescription")),h=this.getContractTermProperty(t,"contract"),g=this.getAttribute(t.attributes,"isBestChoice")?.value??!1;let u=null;if(this.getAttribute(t.attributes,"showMaxSportUpsell")?.value&&"hboMaxSport"===Object.keys(o)[0]){const t=Object.values(o)[0];u=this.renderUpsellBlock(t.name?t.name[this.language]:"",t.icons?t.icons:[],t.amount?t.amount:null)}let y=null;if(this.termText){const e=this.getContractTermProperty(t,"term");0!==e&&(y=this.termText.replace("%d",String(e))),this.getAttribute(t.attributes,"availabilityTermUnlimitedOverride")?.value&&(y=d("components-indefinite"))}let b=r(t.benefits);if(c||l){const e=r(this.getContractTermProperty(t,"benefits"));e&&(b=e)}const w=b?.split("\n").filter(Boolean);let k=null;this.getAttribute(t.attributes,"isNetflixProduct")?.value?k=d("components-netflix-card-description"):this.getAttribute(t.attributes,"isNetflixMaxProduct")?.value?k=d("components-netflix-max-card-description"):this.getAttribute(t.attributes,"isMaxProduct")?.value&&(k=d("components-max-card-description"));const x={mainTitle:r(t.name),subTitle:this.getProductSubtitle(t),bestChoiceText:d("components-address-offers-best-choice"),infoItemIconName:"info-circle",infoItemTooltipContent:this.getProductInfoItem(t),bulletPoints:w,price:p(a??s,{currency:""}),oldPrice:l?p(s,{currency:""}):null,currency:d("components-euro-per-month"),priceInfoIconName:f?"info-circle":null,priceInfoTooltipContent:f||null,term:m,termText:y,helper:r(t.description),button:(v=d("components-address-offers-form-button-text"),C=this.getServiceApplicationFormUrl(t)+this.formParameters,`\n <a href="${C}" tabIndex="-1">\n <tet-button class="tet-button" style="--button-width: 10rem" theme="${n}" disabled="${!C}">\n ${v}\n </tet-button>\n </a>\n `),secondaryLink:h,secondaryLinkText:d("components-offers-contract-term-link"),secondaryLinkOpenBlank:!0,netflixProductDescription:k};var v,C;return i("tet-compare-card",{class:{product:!0,"best-choice":g},options:x,cardType:"wide60-40",minWideWidth:768,theme:e,bestChoice:g,cardList:!0,darkMode:this.darkMode},i("div",{slot:"upsell-block-slot"},u))}getProductSubtitle({productCode:t,technologySpeed:{max:e,min:o}}){if(this.allowedProductsToShowInfo.includes(t))return e&&o?d("components-max-speed-description-v2",{minSpeed:o,maxSpeed:e}):""}getProductInfoItem(t){const e=t?.bundleProducts?.split(","),o=e?.[1]??e?.[0],r=Object.values(a.catalog.structure[0].products).find((t=>t.productCode===o));if(this.allowedProductsToShowInfo.includes(t.productCode))return this.translateProperty(o?r.technologySpeed.description:t.technologySpeed.description)}getContractTermProperty(t,e){return this.getContractTerm(t)?.[e]??null}getContractTerm(t){return t.contractTerms?.find((t=>t.term===P.TwentyFourMonth))}getAttribute(t,e){return t?.find((t=>t.key===e))}getServiceApplicationFormUrl(t){const e=this.translateProperty(t.formUrl),o=this.getContractTermProperty(t,"promotionCode");let r={contractTerm:this.getContractTermProperty(t,"term")};o&&(r.promotion=o),r.addressKey=this.addressKey,r.product=t.productCode;const i=this.getAttribute(t.attributes,"availabilityFormUrlOverride")?.value??"";return i?i.toString():h(e,r)}renderLoader=()=>i("div",{class:"placeholder"},[...Array(2)].map((()=>i("div",{class:"placeholder-section"},i("tet-placeholder",{height:"3em",width:"40%",class:"placeholder-section-title",darkTheme:this.darkMode}),i("br",null),i("tet-placeholder",{height:"3em",width:"40%",class:"placeholder-subsection-title",darkTheme:this.darkMode}),i("br",null),i("tet-placeholder",{height:"1em",width:"20%",class:"placeholder-subsection-title",darkTheme:this.darkMode}),[...Array(3)].map((()=>[i("br",null),i("tet-placeholder",{height:"10em",darkTheme:this.darkMode})]))))));render(){return i(n,{key:"a90403ed6ae0cb197da686df01b82bd61f0a22ee"},this.showLoader?this.renderLoader():a.catalog&&this.renderTopCategories())}static get watchers(){return{addressKey:[{onAddressKeyChange:0}],language:[{onLanguageChanged:0}]}}static get style(){return':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;width:100%;max-width:53rem;margin:0 auto;padding:0 1rem}@media screen and (max-width: 48rem){:host{max-width:32rem}}@media only screen and (max-width: 44.9375rem){:host{padding:0 0.5rem}}*{color:rgb(10, 11, 13)}*.dark{color:var(--tc-text-primary-dark)}.category{font-family:var(--text-font);margin-bottom:7rem}@media screen and (max-width: 48rem){.category{margin-bottom:6rem}}@media only screen and (max-width: 44.9375rem){.category{margin-bottom:4rem}}.category-title{text-align:center;margin-bottom:1.5rem;font:600 3rem/3.25rem "Gilroy", "Gilroy, Arial, sans-serif"}@media screen and (max-width: 48rem){.category-title{font:600 2.5rem/3rem "Gilroy", "Gilroy, Arial, sans-serif"}}.category-subcategories{display:flex;flex-direction:column;gap:6.25rem}.tab-content div{box-sizing:border-box}@media screen and (max-width: 48rem){.tab-content div{max-width:32rem}}.tab-content div .subcategory-tab{width:100%;padding-bottom:1.5rem;display:flex;flex-direction:column;gap:1rem}.subcategory-header{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:0.5rem}.subcategory-title{font:600 2rem/2.25rem "Gilroy", "Gilroy, Arial, sans-serif";display:flex;gap:1rem;align-items:center}.subcategory-title.dark{color:var(--tc-text-primary-dark)}@media screen and (max-width: 48rem){.subcategory-title{flex-direction:column;align-items:initial}}@media only screen and (max-width: 44.9375rem){.subcategory-title{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif"}}.subcategory-offers-link{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";max-width:fit-content;text-decoration:none}.subcategory-offers-link.dark{color:var(--tc-text-primary-dark)}.subcategory-offers-link-text{text-decoration:underline}.subcategory-offers-link-text.dark{color:var(--tc-text-primary-dark)}.subcategory-offers-link:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;border-radius:0.125rem}.subcategory-products{display:flex;flex-direction:column;gap:1rem}.subcategory-filters{display:flex;justify-content:center;margin-top:1.5rem;margin-bottom:1.5rem}.product{width:100%}.product::part(compare-card-title-wrapper){border-bottom:none}@media screen and (max-width: 48rem){.product::part(compare-card-title-wrapper){margin-bottom:1rem;padding:0}}.product .upsell-block{display:flex;flex-direction:column}.product .upsell-block--title{margin-bottom:0.5rem;font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;color:var(--tc-text-secondary)}.product .upsell-block--title.dark{color:rgb(153, 160, 174)}.product .upsell-block--content{background:rgb(255, 255, 255);padding:0.75rem;display:flex;flex-direction:row;align-items:center;margin-bottom:1.5rem;border-radius:0.5rem}.product .upsell-block--content.dark{background:var(--tc-grey-minus-10-dark)}.product .upsell-block--icon{width:1.5rem;height:1.5rem;margin-right:0.75rem}.product .upsell-block--name{color:var(--tc-text-primary);font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;margin-right:auto}.product .upsell-block--name.dark{color:var(--tc-grey-110-dark)}.product .upsell-block--amount{color:var(--tc-text-primary);font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;background:var(--tc-background-secondary);border-radius:0.25rem;padding:0.125rem 0.25rem;margin-right:0.75rem}.product .upsell-block--amount.dark{background:var(--tc-grey-10-dark);color:var(--tc-grey-110-dark)}.product .upsell-block--tooltip{cursor:pointer}.placeholder-section{margin-bottom:2rem}.placeholder-section-title{margin:0 auto;--placeholder-animation-speed:4s}.placeholder-subsection-title{--placeholder-animation-speed:4s}.tab-header{margin-bottom:1.5rem;width:100%;max-width:24.375rem}@media screen and (max-width: 48rem){.tab-header{margin-bottom:2rem;width:100%;max-width:unset}}.header-switch .text-first{flex-direction:row;gap:0.5rem}@media screen and (max-width: 48rem){.header-switch{--tabs-headers-segmented-item-padding:0.5rem 0.75rem;--tabs-headers-segmented-item-margin:0.25rem 0;--tabs-headers-segmended-item-font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif}}'}},[513,"tet-address-offers",{addressKey:[8,"address-key"],catalog:[16],theme:[1],darkMode:[4,"dark-mode"],termText:[1,"term-text"],formParameters:[1,"form-parameters"],language:[1],allowedTvProductCodes:[16],showLoader:[32],subcategoryProductFilters:[32]},void 0,{addressKey:[{onAddressKeyChange:0}],language:[{onLanguageChanged:0}]}]);function A(){"undefined"!=typeof customElements&&["tet-address-offers","tet-address-offers-filters-products","tet-button","tet-checkbox","tet-compare-card","tet-dropdown","tet-icon","tet-placeholder","tet-tag","tet-tag-group","tet-tooltip"].forEach((t=>{switch(t){case"tet-address-offers":customElements.get(s(t))||customElements.define(s(t),T);break;case"tet-address-offers-filters-products":customElements.get(s(t))||g();break;case"tet-button":customElements.get(s(t))||u();break;case"tet-checkbox":customElements.get(s(t))||y();break;case"tet-compare-card":customElements.get(s(t))||b();break;case"tet-dropdown":customElements.get(s(t))||w();break;case"tet-icon":customElements.get(s(t))||k();break;case"tet-placeholder":customElements.get(s(t))||x();break;case"tet-tag":customElements.get(s(t))||v();break;case"tet-tag-group":customElements.get(s(t))||C();break;case"tet-tooltip":customElements.get(s(t))||_()}}))}export{T,A as d}
|
|
1
|
+
import{p as t,H as e,d as o,f as r,h as i,c as n,t as s}from"./p-Cdi7KDBd.js";import{s as a,o as l}from"./p-DTeQFROq.js";import{A as c,e as f}from"./p-Br4jWI9B.js";import{p as m,t as d}from"./p-B9bE6qY-.js";import{g as h}from"./p-BjOGAbQL.js";import{f as p}from"./p-B_N3UuP2.js";import{d as g}from"./p-vLpvVmb8.js";import{d as u}from"./p-BTSQyL7G.js";import{d as y}from"./p-5kTi8PjH.js";import{d as b}from"./p-DT8tgMUV.js";import{d as w}from"./p-DIqowNgr.js";import{d as k}from"./p-CbqipjNj.js";import{d as x}from"./p-CLtgu35N.js";import{d as v}from"./p-ZPHtvw0Z.js";import{d as C}from"./p-BPQNPw6e.js";import{d as _}from"./p-BGrd_jXc.js";var P;!function(t){t[t.TwentyFourMonth=24]="TwentyFourMonth",t[t.TwelveMonth=12]="TwelveMonth",t[t.SixMonth=6]="SixMonth",t[t.Indefinite=0]="Indefinite"}(P||(P={}));const T=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.emptyCatalog=o(this,"emptyCatalog"),this.catalogChange=o(this,"catalogChange"),this.filtersChange=o(this,"filtersChange")}translationsGroup="tet-components";allowedProductsToShowInfo=["PD_TELCO_SUPER","PD_TELCO_SUPER_PACK_A","PD_TELCO_SUPER_PACK_B","PD_TELCO_SUPER_PACK_C","PD_TELCO_SUPER_PACK_D","PD_TELCO_PACKAGE_A","PD_TELCO_PACKAGE_B","PD_TELCO_PACKAGE_C","PD_TELCO_PACKAGE_D","PD_TELCO_NETFLIX_PACKAGE_A_ITV_SUPER","PD_TELCO_HBOMAX_IPTV_PACK_A","PD_TELCO_HBOMAX_IPTV_PACK_B","PD_TELCO_HBOMAX_IPTV_PACK_C","PD_TELCO_NETFLIX_PACKAGE_A_SUPER","PD_TELCO_HBOMAX_OTT_PACK_A_SUPER","PD_TELCO_HBOMAX_OTT_PACK_B_SUPER","PD_TELCO_HBOMAX_OTT_PACK_C_SUPER"];get element(){return this}addressKey;catalog;theme="light";darkMode=!1;termText;formParameters="";language="lv";allowedTvProductCodes=[];showLoader=!0;subcategoryProductFilters={};emptyCatalog;catalogChange;filtersChange;async onAddressKeyChange(){await this.loadCatalogData()}async onLanguageChanged(t){await m(this.translationsGroup,t),r(this)}handleFilteredProductsChanged(t){this.subcategoryProductFilters={...this.subcategoryProductFilters,[t.detail.subcategoryId]:t.detail.filteredProductIds}}async componentWillLoad(){await m(this.translationsGroup,this.language)}async componentDidLoad(){await this.loadCatalogData(),this.initFilterChangeEvent()}initFilterChangeEvent(){const t=a.availableFilters.map((t=>(t.title=d(t.title),t)));l("activeFilters",(()=>{this.filtersChange.emit({activeFilters:a.activeFilters,availableFilters:t})}))}async loadCatalogData(){this.showLoader=!0,a.availableFilters=[];try{const t=await(t=>{const e=f.serviceAvailabilityServices;return(new c).setUrl(e+"?addressKey="+t).setOptions({method:"GET"}).setErrorFallbackValue([]).execute()})(this.addressKey);this.catalog=t,a.catalog=t,this.catalogChange.emit({catalog:t,activeFilters:a.activeFilters,availableFilters:a.availableFilters})}catch(t){this.emptyCatalog.emit()}a.catalog instanceof Array&&!a.catalog.length&&this.emptyCatalog.emit(),this.showLoader=!1}filterCategoryProducts=t=>{const e=this.subcategoryProductFilters[t.key]||[];if(e.length>0)return t.products.filter((t=>e.includes(t.productCode)));const{activeFilters:o}=a;return o.includes("promotions")?t.products.filter(this.productHasPromotion.bind(this)):t.products};translateProperty(t){return t?.[this.language]||""}showCategory=t=>{if(t.subgroups?.length>0)return t.subgroups.some(this.showCategory);const{activeFilters:e}=a;return(!t.tag||["all",t.tag??""].some((t=>e.includes(t)))||e.includes("promotions")&&this.categoryContainsPromotions(t))&&this.categoryContainsContractTerms(t)&&this.filterCategoryProducts(t).length>0};categoryContainsPromotions({products:t=[]}){return t?.some((t=>this.productHasPromotion(t)))}productHasPromotion(t){return t?.contractTerms?.some((({promotionCode:t})=>t))}categoryContainsContractTerms({products:t=[]}){return t?.some((t=>this.productHasContractTerms(t)))}productHasContractTerms(t){return!!t?.contractTerms?.length}renderTopCategories(){return a.catalog?.structure?.filter(this.showCategory).map((t=>{const e=this.translateProperty(t.name);return i("section",{class:{category:!0,[`category--${this.theme}`]:!!this.theme,[this.theme]:!0}},e&&i("h2",{class:{"category-title":!0,[`category-title--${this.theme}`]:!!this.theme,[this.theme]:!0}},e),i("div",{class:{"category-subcategories":!0,[`category-subcategories--${this.theme}`]:!!this.theme,[this.theme]:!0}},this.renderSubCategories(t.subgroups||[],a.catalog?.meta)))}))}renderSubCategories(t,e){return t.filter(this.showCategory).map((t=>i("div",{class:"subcategory"},i("div",{class:"subcategory-header"},this.renderSubCategoryHeader(t)),t.hasProductTags&&i("div",{class:"subcategory-filters"},i("tet-address-offers-filters-products",{catalog:this.catalog,class:"center",language:this.language,clearFilterButton:!0,subcategoryId:t.key,onFilteredProductsChanged:t=>this.handleFilteredProductsChanged(t),category:t,theme:this.theme})),i("div",{class:"subcategory-products"},this.filterCategoryProducts(t).map((o=>this.renderProduct(o,t.theme,e)))))))}renderSubCategoryHeader=({displayTitle:t,name:e,landingPage:o,isOneTv:r})=>{const n=this.translateProperty(e),s=this.translateProperty(o);return[i("div",{class:{"subcategory-title":!0,[`subcategory-title--${this.theme}`]:!!this.theme,[this.theme]:!0}},r&&i("tet-icon",{name:"logo-tet-tv-plus",useDefaultColor:!0}),t&&n&&i("h3",{class:{[this.theme]:!!this.theme}},n)),s&&i("a",{class:{"subcategory-offers-link":!0,[`subcategory-offers-link--${this.theme}`]:!!this.theme,[this.theme]:!0},href:s,target:"_blank"},i("span",{class:{"subcategory-offers-link-text":!0,[`subcategory-offers-link-text--${this.theme}`]:!!this.theme,[this.theme]:!0}},d("components-address-offers-view-more-link"))," --\x3e")]};renderUpsellBlock(t,e,o){let r=e.find((t=>"sac-offers-light"===t.key));const n="dark"===this.theme;return n&&(r=e.find((t=>"sac-offers-dark"===t.key))),i("div",{class:"upsell-block"},i("div",{class:{"upsell-block--title":!0,dark:n}},d("components-max-sport-upsell-title")),i("div",{class:{"upsell-block--content":!0,dark:n}},i("img",{src:r.icon,alt:"",class:{"upsell-block--icon":!0},loading:"lazy"}),i("div",{class:{"upsell-block--name":!0,dark:n}},t),i("div",{class:{"upsell-block--amount":!0,dark:n}},"+",o," ",d("components-euro")),i("div",{class:{"upsell-block--tooltip":!0}},i("tet-icon",{class:"icon",name:"tc-info-circle",focusable:!0,theme:this.theme}),i("tet-tooltip",{theme:this.theme},d("components-max-sport-upsell-tooltip-info")))))}renderProduct(t,e="light",o){if(!this.getContractTerm(t))return;const r=t=>this.translateProperty(t),n=this.darkMode?"dark":"light",s=t.amount,a=this.getContractTermProperty(t,"amount"),l=this.getContractTermProperty(t,"showDiscount"),c=this.getContractTermProperty(t,"isAlwaysOn"),f=r(this.getContractTermProperty(t,"priceTooltip")),m=r(this.getContractTermProperty(t,"priceDescription")),h=this.getContractTermProperty(t,"contract"),g=this.getAttribute(t.attributes,"isBestChoice")?.value??!1;let u=null;if(this.getAttribute(t.attributes,"showMaxSportUpsell")?.value&&"hboMaxSport"===Object.keys(o)[0]){const t=Object.values(o)[0];u=this.renderUpsellBlock(t.name?t.name[this.language]:"",t.icons?t.icons:[],t.amount?t.amount:null)}let y=null;if(this.termText){const e=this.getContractTermProperty(t,"term");0!==e&&(y=this.termText.replace("%d",String(e))),this.getAttribute(t.attributes,"availabilityTermUnlimitedOverride")?.value&&(y=d("components-indefinite"))}let b=r(t.benefits);if(c||l){const e=r(this.getContractTermProperty(t,"benefits"));e&&(b=e)}const w=b?.split("\n").filter(Boolean);let k=null;this.getAttribute(t.attributes,"isNetflixProduct")?.value?k=d("components-netflix-card-description"):this.getAttribute(t.attributes,"isNetflixMaxProduct")?.value?k=d("components-netflix-max-card-description"):this.getAttribute(t.attributes,"isMaxProduct")?.value&&(k=d("components-max-card-description"));const x={mainTitle:r(t.name),subTitle:this.getProductSubtitle(t),bestChoiceText:d("components-address-offers-best-choice"),infoItemIconName:"info-circle",infoItemTooltipContent:this.getProductInfoItem(t),bulletPoints:w,price:p(a??s,{currency:""}),oldPrice:l?p(s,{currency:""}):null,currency:d("components-euro-per-month"),priceInfoIconName:f?"info-circle":null,priceInfoTooltipContent:f||null,term:m,termText:y,helper:r(t.description),button:(v=d("components-address-offers-form-button-text"),C=this.getServiceApplicationFormUrl(t)+this.formParameters,`\n <a href="${C}" tabIndex="-1">\n <tet-button class="tet-button" style="--button-width: 10rem" theme="${n}" disabled="${!C}">\n ${v}\n </tet-button>\n </a>\n `),secondaryLink:h,secondaryLinkText:d("components-offers-contract-term-link"),secondaryLinkOpenBlank:!0,netflixProductDescription:k};var v,C;return i("tet-compare-card",{class:{product:!0,"best-choice":g},options:x,cardType:"wide60-40",minWideWidth:768,theme:e,bestChoice:g,cardList:!0,darkMode:this.darkMode},i("div",{slot:"upsell-block-slot"},u))}getProductSubtitle({productCode:t,technologySpeed:{max:e,min:o}}){if(this.allowedProductsToShowInfo.includes(t))return e&&o?d("components-max-speed-description-v2",{minSpeed:o,maxSpeed:e}):""}getProductInfoItem(t){const e=t?.bundleProducts?.split(","),o=e?.[1]??e?.[0],r=Object.values(a.catalog.structure[0].products).find((t=>t.productCode===o));if(this.allowedProductsToShowInfo.includes(t.productCode))return this.translateProperty(o?r.technologySpeed.description:t.technologySpeed.description)}getContractTermProperty(t,e){return this.getContractTerm(t)?.[e]??null}getContractTerm(t){return t.contractTerms?.find((t=>t.term===P.TwentyFourMonth))}getAttribute(t,e){return t?.find((t=>t.key===e))}getServiceApplicationFormUrl(t){const e=this.translateProperty(t.formUrl),o=this.getContractTermProperty(t,"promotionCode");let r={contractTerm:this.getContractTermProperty(t,"term")};o&&(r.promotion=o),r.addressKey=this.addressKey,r.product=t.productCode;const i=this.getAttribute(t.attributes,"availabilityFormUrlOverride")?.value??"";return i?i.toString():h(e,r)}renderLoader=()=>i("div",{class:"placeholder"},[...Array(2)].map((()=>i("div",{class:"placeholder-section"},i("tet-placeholder",{height:"3em",width:"40%",class:"placeholder-section-title",darkTheme:this.darkMode}),i("br",null),i("tet-placeholder",{height:"3em",width:"40%",class:"placeholder-subsection-title",darkTheme:this.darkMode}),i("br",null),i("tet-placeholder",{height:"1em",width:"20%",class:"placeholder-subsection-title",darkTheme:this.darkMode}),[...Array(3)].map((()=>[i("br",null),i("tet-placeholder",{height:"10em",darkTheme:this.darkMode})]))))));render(){return i(n,{key:"a90403ed6ae0cb197da686df01b82bd61f0a22ee"},this.showLoader?this.renderLoader():a.catalog&&this.renderTopCategories())}static get watchers(){return{addressKey:[{onAddressKeyChange:0}],language:[{onLanguageChanged:0}]}}static get style(){return':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;width:100%;max-width:53rem;margin:0 auto;padding:0 1rem}@media screen and (max-width: 48rem){:host{max-width:32rem}}@media only screen and (max-width: 44.9375rem){:host{padding:0 0.5rem}}*{color:rgb(10, 11, 13)}*.dark{color:var(--tc-text-primary-dark)}.category{font-family:var(--text-font);margin-bottom:7rem}@media screen and (max-width: 48rem){.category{margin-bottom:6rem}}@media only screen and (max-width: 44.9375rem){.category{margin-bottom:4rem}}.category-title{text-align:center;margin-bottom:1.5rem;font:600 3rem/3.25rem "Gilroy", "Gilroy, Arial, sans-serif"}@media screen and (max-width: 48rem){.category-title{font:600 2.5rem/3rem "Gilroy", "Gilroy, Arial, sans-serif"}}.category-subcategories{display:flex;flex-direction:column;gap:6.25rem}.tab-content div{box-sizing:border-box}@media screen and (max-width: 48rem){.tab-content div{max-width:32rem}}.tab-content div .subcategory-tab{width:100%;padding-bottom:1.5rem;display:flex;flex-direction:column;gap:1rem}.subcategory-header{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:0.5rem}.subcategory-title{font:600 2rem/2.25rem "Gilroy", "Gilroy, Arial, sans-serif";display:flex;gap:1rem;align-items:center}.subcategory-title.dark{color:var(--tc-text-primary-dark)}@media screen and (max-width: 48rem){.subcategory-title{flex-direction:column;align-items:initial}}@media only screen and (max-width: 44.9375rem){.subcategory-title{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif"}}.subcategory-offers-link{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";max-width:fit-content;text-decoration:none}.subcategory-offers-link.dark{color:var(--tc-text-primary-dark)}.subcategory-offers-link-text{text-decoration:underline}.subcategory-offers-link-text.dark{color:var(--tc-text-primary-dark)}.subcategory-offers-link:focus-visible{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.125rem;transition:outline 0s;border-radius:0.125rem}.subcategory-products{display:flex;flex-direction:column;gap:1rem}.subcategory-filters{display:flex;justify-content:center;margin-top:1.5rem;margin-bottom:1.5rem}.product{width:100%}.product::part(compare-card-title-wrapper){border-bottom:none}@media screen and (max-width: 48rem){.product::part(compare-card-title-wrapper){margin-bottom:1rem;padding:0}}.product .upsell-block{display:flex;flex-direction:column}.product .upsell-block--title{margin-bottom:0.5rem;font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;color:var(--tc-text-secondary)}.product .upsell-block--title.dark{color:rgb(153, 160, 174)}.product .upsell-block--content{background:rgb(255, 255, 255);padding:0.75rem;display:flex;flex-direction:row;align-items:center;margin-bottom:1.5rem;border-radius:0.5rem}.product .upsell-block--content.dark{background:var(--tc-grey-minus-10-dark)}.product .upsell-block--icon{width:1.5rem;height:1.5rem;margin-right:0.75rem}.product .upsell-block--name{color:var(--tc-text-primary);font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;margin-right:auto}.product .upsell-block--name.dark{color:var(--tc-grey-110-dark)}.product .upsell-block--amount{color:var(--tc-text-primary);font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;background:var(--tc-background-secondary);border-radius:0.25rem;padding:0.125rem 0.25rem;margin-right:0.75rem}.product .upsell-block--amount.dark{background:var(--tc-grey-10-dark);color:var(--tc-grey-110-dark)}.product .upsell-block--tooltip{cursor:pointer}.placeholder-section{margin-bottom:2rem}.placeholder-section-title{margin:0 auto;--placeholder-animation-speed:4s}.placeholder-subsection-title{--placeholder-animation-speed:4s}.tab-header{margin-bottom:1.5rem;width:100%;max-width:24.375rem}@media screen and (max-width: 48rem){.tab-header{margin-bottom:2rem;width:100%;max-width:unset}}.header-switch .text-first{flex-direction:row;gap:0.5rem}@media screen and (max-width: 48rem){.header-switch{--tabs-headers-segmented-item-padding:0.5rem 0.75rem;--tabs-headers-segmented-item-margin:0.25rem 0;--tabs-headers-segmended-item-font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif}}'}},[513,"tet-address-offers",{addressKey:[8,"address-key"],catalog:[16],theme:[1],darkMode:[4,"dark-mode"],termText:[1,"term-text"],formParameters:[1,"form-parameters"],language:[1],allowedTvProductCodes:[16],showLoader:[32],subcategoryProductFilters:[32]},void 0,{addressKey:[{onAddressKeyChange:0}],language:[{onLanguageChanged:0}]}]);function A(){"undefined"!=typeof customElements&&["tet-address-offers","tet-address-offers-filters-products","tet-button","tet-checkbox","tet-compare-card","tet-dropdown","tet-icon","tet-placeholder","tet-tag","tet-tag-group","tet-tooltip"].forEach((t=>{switch(t){case"tet-address-offers":customElements.get(s(t))||customElements.define(s(t),T);break;case"tet-address-offers-filters-products":customElements.get(s(t))||g();break;case"tet-button":customElements.get(s(t))||u();break;case"tet-checkbox":customElements.get(s(t))||y();break;case"tet-compare-card":customElements.get(s(t))||b();break;case"tet-dropdown":customElements.get(s(t))||w();break;case"tet-icon":customElements.get(s(t))||k();break;case"tet-placeholder":customElements.get(s(t))||x();break;case"tet-tag":customElements.get(s(t))||v();break;case"tet-tag-group":customElements.get(s(t))||C();break;case"tet-tooltip":customElements.get(s(t))||_()}}))}export{T,A as d}
|