@tet/tet-components 1.4.156-testing → 1.4.157-production
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-D7ffzpYW.js → http-codes-oHpK-Vsh.js} +1 -1
- package/dist/cjs/{index-BL_zVDFC.js → index-puzHM5yZ.js} +27 -31
- package/dist/cjs/{index-Dzs7Nkbj.js → index-t4WNVvo_.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{product-comparison-DUzqZuWv.js → product-comparison-DAR6p-NV.js} +1 -1
- package/dist/cjs/service-availability-services-jPqzmyx3.js +19 -0
- package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
- package/dist/cjs/tet-accordion.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers-v2.cjs.entry.js +332 -0
- package/dist/cjs/tet-address-offers-view-v2.cjs.entry.js +81 -0
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +5 -5
- package/dist/cjs/{tet-address-offers_5.cjs.entry.js → tet-address-offers_3.cjs.entry.js} +8 -887
- package/dist/cjs/tet-address-search_2.cjs.entry.js +873 -0
- package/dist/cjs/{tet-assembler.cjs.entry.js → tet-assembler_3.cjs.entry.js} +827 -13
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +6 -6
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +17 -17
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +6 -6
- package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
- package/dist/cjs/tet-bar-graph.cjs.entry.js +4 -4
- package/dist/cjs/tet-border-radius.cjs.entry.js +2 -2
- package/dist/cjs/tet-business-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-button.cjs.entry.js +2 -2
- package/dist/cjs/tet-card-list.cjs.entry.js +5 -5
- package/dist/cjs/tet-carousel.cjs.entry.js +10 -10
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +9 -9
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +6 -6
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-colors.cjs.entry.js +5 -5
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +4 -4
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-container_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-countdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/tet-fonts.cjs.entry.js +2 -2
- package/dist/cjs/tet-grid.cjs.entry.js +2 -2
- 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 +4 -4
- package/dist/cjs/tet-layout.cjs.entry.js +2 -2
- package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +2 -2
- 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 +5 -5
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +7 -7
- package/dist/cjs/tet-news-card-list.cjs.entry.js +2 -2
- package/dist/cjs/tet-news-card.cjs.entry.js +2 -2
- package/dist/cjs/tet-notification.cjs.entry.js +2 -2
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-paginator.cjs.entry.js +5 -5
- package/dist/cjs/tet-placeholder.cjs.entry.js +2 -2
- 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_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-range-slider.cjs.entry.js +8 -8
- 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 +4 -4
- package/dist/cjs/tet-spacing.cjs.entry.js +2 -2
- package/dist/cjs/tet-spinner.cjs.entry.js +4 -4
- package/dist/cjs/tet-stepper-input.cjs.entry.js +5 -5
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-sticky-offer.cjs.entry.js +2 -2
- package/dist/cjs/tet-support-search.cjs.entry.js +2 -2
- 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 +6 -6
- 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 +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +4 -4
- package/dist/cjs/tet-tv-program-channel-picker_2.cjs.entry.js +5 -5
- package/dist/cjs/tet-tv-program.cjs.entry.js +2 -2
- package/dist/cjs/{translations-Uvcq4kv8.js → translations-D5zHdnnh.js} +2 -2
- package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/advanced/address/tet-address-offers-v2/address-offers-v2.model.js +147 -0
- package/dist/collection/components/{simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css → advanced/address/tet-address-offers-v2/tet-address-offers-v2.css} +128 -20
- package/dist/collection/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.js +346 -0
- package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +3 -3
- package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +2 -2
- package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +1 -1
- package/dist/collection/components/advanced/cards/tet-assembler/tet-assembler.css +1 -17
- package/dist/collection/components/advanced/cards/tet-assembler/tet-assembler.js +70 -9
- package/dist/collection/components/advanced/cards/tet-b2b-compare-card/tet-b2b-compare-card.js +6 -6
- package/dist/collection/components/advanced/cards/tet-business-card/tet-business-card.js +2 -2
- package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +2 -2
- package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.js +1 -1
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +4 -4
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +1 -1
- package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.css +13 -0
- package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.js +76 -6
- package/dist/collection/components/advanced/cards/tet-news-card/tet-news-card.js +1 -1
- package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/tet-asset-availability-addresses.js +1 -1
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +1 -1
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +1 -1
- package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +3 -3
- package/dist/collection/components/basic/buttons/tet-button/tet-button.js +1 -1
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +7 -7
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +2 -2
- package/dist/collection/components/basic/buttons/tet-tag/tet-tag.js +2 -2
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +6 -6
- package/dist/collection/components/basic/loaders/tet-loader/tet-loader.js +1 -1
- package/dist/collection/components/basic/loaders/tet-placeholder/tet-placeholder.js +1 -1
- package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +3 -3
- package/dist/collection/components/basic/misc/tet-countdown/tet-countdown.js +1 -1
- package/dist/collection/components/basic/steppers/tet-business-round-stepper/tet-business-round-stepper.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +2 -2
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +1 -1
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +4 -4
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +7 -7
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +1 -1
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +2 -2
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +1 -1
- package/dist/collection/components/simple/lists/tet-selection-list/tet-selection-list.js +1 -1
- package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.js +1 -1
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +3 -3
- package/dist/collection/components/simple/menu/tet-paginator/tet-paginator.js +1 -1
- package/dist/collection/components/simple/misc/tet-sticky-offer/tet-sticky-offer.js +1 -1
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +6 -6
- package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +1 -1
- package/dist/collection/components/simple/tables-and-graphs/tet-bar-graph/tet-bar-graph.js +3 -3
- package/dist/collection/components/simple/text-blocks/tet-cloud-application-form-dialog/tet-cloud-application-form-dialog.js +2 -2
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +1 -1
- package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +1 -1
- package/dist/collection/components/views/tet-address-offers-view-v2/assets/banner.webp +0 -0
- package/dist/collection/components/{simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css → views/tet-address-offers-view-v2/tet-address-offers-view-v2.css} +78 -34
- package/dist/collection/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.js +289 -0
- package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.js +2 -2
- package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.js +1 -1
- package/dist/collection/components/views/tet-tv-program/components/tet-tv-program-date-picker/tet-tv-program-date-picker.js +1 -1
- package/dist/collection/components/views/tet-tv-program/tet-tv-program.js +1 -1
- package/dist/collection/docs/styling/border-radius/tet-border-radius.js +1 -1
- package/dist/collection/docs/styling/colors/tet-colors.js +4 -4
- package/dist/collection/docs/styling/font-weight/tet-font-weight.js +1 -1
- package/dist/collection/docs/styling/fonts/tet-fonts.js +1 -1
- package/dist/collection/docs/styling/layout/tet-layout.js +1 -1
- package/dist/collection/docs/styling/link/tet-link.js +1 -1
- package/dist/collection/docs/styling/spacing/tet-spacing.js +1 -1
- package/dist/collection/docs/styling/tet-grid/tet-grid.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-tMXV3IB5.js → p-B82POgFl.js} +1 -1
- package/dist/components/{p-CNhW7KE6.js → p-BAZQcyA7.js} +1 -1
- package/dist/components/{p-BztqMLE1.js → p-BAf_O-kb.js} +1 -1
- package/dist/components/{p-B9bE6qY-.js → p-BDEIj3j6.js} +1 -1
- package/dist/components/{p-C5khLmO4.js → p-BPTM37Hn.js} +1 -1
- package/dist/components/{p-CHVoAVzT.js → p-BQiafjHE.js} +1 -1
- package/dist/components/{p-DcRCMBBc.js → p-BWy5ewze.js} +1 -1
- package/dist/components/{p-BUyuNqM6.js → p-BX98BUpV.js} +1 -1
- package/dist/components/{p-Dmu5eHbY.js → p-BciwrQoB.js} +1 -1
- package/dist/components/p-BdMiAoro.js +1 -0
- package/dist/components/{p-w1igWoTx.js → p-Bm7pFbvA.js} +1 -1
- package/dist/components/{p-CnVl55e4.js → p-ByM3JujT.js} +1 -1
- package/dist/components/{p-B5y1yfI4.js → p-ByuP1fbX.js} +1 -1
- package/dist/components/{p-CJnk1Plz.js → p-C50q8-fi.js} +1 -1
- package/dist/components/{p-Bc4oqt_L.js → p-C5d7kQcA.js} +1 -1
- package/dist/components/p-CDWcoIgr.js +1 -0
- package/dist/components/{p-B8YPfVrH.js → p-CEVlu6ZD.js} +1 -1
- package/dist/components/{p-t_FgKIcd.js → p-CEyoGS5R.js} +1 -1
- package/dist/components/{p-Ckf6mMEf.js → p-CG9c-nHY.js} +1 -1
- package/dist/components/{p-CMxcvnRv.js → p-CKWJROPt.js} +1 -1
- package/dist/components/p-CQGgxLtq.js +1 -0
- package/dist/components/p-CWuhYFDW.js +1 -0
- package/dist/components/p-Cb-I8QJh.js +1 -0
- package/dist/components/{p-CQBhFzqI.js → p-ClXBenaN.js} +1 -1
- package/dist/components/p-CnMas2yD.js +1 -0
- package/dist/components/{p-DKZxpjnL.js → p-CpJ_GE1B.js} +1 -1
- package/dist/components/{p-d31bvRM6.js → p-CvA9ppPv.js} +1 -1
- package/dist/{tet-components/p-ad8622a2.entry.js → components/p-CvO427nb.js} +1 -1
- package/dist/components/{p-Cqjpl-r4.js → p-D05i9nSD.js} +1 -1
- package/dist/components/{p-C4uKGuRj.js → p-D4MolLd8.js} +1 -1
- package/dist/components/p-D8yjgo3h.js +1 -0
- package/dist/components/{p-CjbC3Ym3.js → p-D9Ay3Miq.js} +1 -1
- package/dist/components/{p-CV0h6H20.js → p-DKtLi_m6.js} +1 -1
- package/dist/components/{p-C61jDpta.js → p-DTOuhcpL.js} +1 -1
- package/dist/components/{p-Cmi0CN7v.js → p-DT_KxFJb.js} +1 -1
- package/dist/components/{p-Dke4zCyb.js → p-DUKWm2NH.js} +1 -1
- package/dist/components/{p-Ba5cZk_W.js → p-DYjsysoT.js} +1 -1
- package/dist/components/{p-DN2JwXg9.js → p-DZRioc0D.js} +1 -1
- package/dist/components/p-DhBrj0ZX.js +1 -0
- package/dist/components/{p-BpfMADD6.js → p-DiSdptzb.js} +1 -1
- package/dist/components/{p-Bsqoxd9G.js → p-DobMlMDf.js} +1 -1
- package/dist/components/{p-BUZAWbGM.js → p-Drc3QqtB.js} +1 -1
- package/dist/components/{p-CxypAmpV.js → p-Ds2b2o-c.js} +1 -1
- package/dist/components/{p-20AXKDtg.js → p-Dxiapgms.js} +1 -1
- package/dist/components/{p-C0RZDFyg.js → p-FC0kZDcz.js} +1 -1
- package/dist/components/{p-Dhe7PE-h.js → p-P5fEcpqm.js} +1 -1
- package/dist/components/{p-Mpe-2CVQ.js → p-QlyBltAE.js} +1 -1
- package/dist/components/{p-BdN4p8Qa.js → p-Xd0ABGeO.js} +1 -1
- package/dist/components/p-_2UzwYR8.js +1 -0
- package/dist/components/{p-Br4jWI9B.js → p-fUGNvavt.js} +1 -1
- package/dist/components/{p-BKqEPSBf.js → p-gcNUTSw9.js} +1 -1
- package/dist/components/{p-B5Dk5hzj.js → p-gw3AOj6h.js} +1 -1
- package/dist/components/{p-1E6motPj.js → p-nNPOjd2b.js} +1 -1
- package/dist/components/{p-Bw-D7nPx.js → p-sp4th_AU.js} +1 -1
- package/dist/components/p-wHiUpSTa.js +1 -0
- 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-datepicker.d.ts → tet-address-offers-v2.d.ts} +4 -4
- package/dist/components/tet-address-offers-v2.js +1 -0
- package/dist/components/tet-address-offers-view-v2.d.ts +11 -0
- package/dist/components/tet-address-offers-view-v2.js +1 -0
- 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-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-news-card.js +1 -1
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-paginator.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/components/tet-tv-program-channel-picker.js +1 -1
- package/dist/components/tet-tv-program-date-picker.js +1 -1
- package/dist/components/tet-tv-program.js +1 -1
- package/dist/esm/{http-codes-BQGPgOl6.js → http-codes-DZlFuxP5.js} +1 -1
- package/dist/esm/{index-BGB6gNkz.js → index-CO8AyGrA.js} +28 -32
- package/dist/esm/{index-DScZlZas.js → index-Rx46bgOe.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{product-comparison-DUVV7BFR.js → product-comparison-Cwy9VRPV.js} +1 -1
- package/dist/esm/service-availability-services-DXz8vHs0.js +17 -0
- package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
- package/dist/esm/tet-accordion.entry.js +7 -7
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
- package/dist/esm/tet-address-offers-v2.entry.js +330 -0
- package/dist/esm/tet-address-offers-view-v2.entry.js +79 -0
- package/dist/esm/tet-address-offers-view.entry.js +5 -5
- package/dist/esm/{tet-address-offers_5.entry.js → tet-address-offers_3.entry.js} +8 -885
- package/dist/esm/tet-address-search_2.entry.js +870 -0
- package/dist/esm/{tet-assembler.entry.js → tet-assembler_3.entry.js} +826 -14
- package/dist/esm/tet-autocomplete-dropdown.entry.js +3 -3
- package/dist/esm/tet-autocomplete_2.entry.js +6 -6
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +17 -17
- package/dist/esm/tet-b2b-configurator.entry.js +6 -6
- package/dist/esm/tet-banner-nav.entry.js +4 -4
- package/dist/esm/tet-bar-graph.entry.js +4 -4
- package/dist/esm/tet-border-radius.entry.js +2 -2
- package/dist/esm/tet-business-card.entry.js +3 -3
- package/dist/esm/tet-business-compare-card.entry.js +3 -3
- package/dist/esm/tet-business-round-stepper.entry.js +2 -2
- package/dist/esm/tet-button.entry.js +2 -2
- package/dist/esm/tet-card-list.entry.js +5 -5
- package/dist/esm/tet-carousel.entry.js +10 -10
- package/dist/esm/tet-checkbox_3.entry.js +9 -9
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +6 -6
- package/dist/esm/tet-cloud-configurator.entry.js +4 -4
- package/dist/esm/tet-colors.entry.js +5 -5
- package/dist/esm/tet-compare-card-v2.entry.js +4 -4
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +5 -5
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-container_2.entry.js +3 -3
- package/dist/esm/tet-countdown.entry.js +2 -2
- package/dist/esm/tet-counter.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/tet-feedback-form.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/tet-fonts.entry.js +2 -2
- package/dist/esm/tet-grid.entry.js +2 -2
- 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 +4 -4
- package/dist/esm/tet-layout.entry.js +2 -2
- package/dist/esm/tet-link-card-list.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +2 -2
- 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 +5 -5
- package/dist/esm/tet-navigation-mobile.entry.js +7 -7
- package/dist/esm/tet-news-card-list.entry.js +2 -2
- package/dist/esm/tet-news-card.entry.js +2 -2
- package/dist/esm/tet-notification.entry.js +2 -2
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-paginator.entry.js +5 -5
- package/dist/esm/tet-placeholder.entry.js +2 -2
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio_2.entry.js +3 -3
- package/dist/esm/tet-range-slider.entry.js +8 -8
- 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 +4 -4
- package/dist/esm/tet-spacing.entry.js +2 -2
- package/dist/esm/tet-spinner.entry.js +4 -4
- package/dist/esm/tet-stepper-input.entry.js +5 -5
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-sticky-offer.entry.js +2 -2
- package/dist/esm/tet-support-search.entry.js +2 -2
- 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 +6 -6
- 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 +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +4 -4
- package/dist/esm/tet-tv-program-channel-picker_2.entry.js +5 -5
- package/dist/esm/tet-tv-program.entry.js +2 -2
- package/dist/esm/{translations-Dc2OQnbI.js → translations-B5QyZ9vI.js} +2 -2
- package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
- package/dist/tet-components/assets/banner.webp +0 -0
- package/dist/tet-components/{p-6a8f5935.entry.js → p-00440570.entry.js} +1 -1
- package/dist/tet-components/{p-01577a41.entry.js → p-00ee3383.entry.js} +1 -1
- package/dist/tet-components/{p-d62eecdb.entry.js → p-082671b8.entry.js} +1 -1
- package/dist/tet-components/{p-38459b69.entry.js → p-0a35f634.entry.js} +1 -1
- package/dist/tet-components/{p-16199435.entry.js → p-0d582ff6.entry.js} +1 -1
- package/dist/tet-components/{p-be07df58.entry.js → p-0db9ba10.entry.js} +1 -1
- package/dist/tet-components/{p-3bb8e0ec.entry.js → p-172e6e28.entry.js} +1 -1
- package/dist/tet-components/{p-49ba40a1.entry.js → p-19a1e73a.entry.js} +1 -1
- package/dist/{components/p-euiyLrT6.js → tet-components/p-1d183de7.entry.js} +1 -1
- package/dist/tet-components/{p-e3e02e3b.entry.js → p-20a1e096.entry.js} +1 -1
- package/dist/tet-components/{p-79be83b2.entry.js → p-24192844.entry.js} +1 -1
- package/dist/tet-components/{p-b3acb430.entry.js → p-25b05e87.entry.js} +1 -1
- package/dist/tet-components/{p-9cee887f.entry.js → p-2a528ade.entry.js} +1 -1
- package/dist/tet-components/{p-e7e18cc4.entry.js → p-335a6617.entry.js} +1 -1
- package/dist/tet-components/{p-e2d4e5c3.entry.js → p-38ac5d83.entry.js} +1 -1
- package/dist/tet-components/{p-0cb2775f.entry.js → p-397320f3.entry.js} +1 -1
- package/dist/tet-components/{p-ee45806d.entry.js → p-3a317d67.entry.js} +1 -1
- package/dist/tet-components/{p-380c13f1.entry.js → p-4172cf45.entry.js} +1 -1
- package/dist/tet-components/p-417e33c5.entry.js +1 -0
- package/dist/tet-components/{p-a560fec1.entry.js → p-421edd38.entry.js} +1 -1
- package/dist/tet-components/{p-c2d6ac75.entry.js → p-4398cb86.entry.js} +1 -1
- package/dist/tet-components/{p-386be2d5.entry.js → p-43b92cf1.entry.js} +1 -1
- package/dist/tet-components/{p-784dd089.entry.js → p-44f9960d.entry.js} +1 -1
- package/dist/tet-components/{p-a037e4df.entry.js → p-4ba81e21.entry.js} +1 -1
- package/dist/tet-components/{p-66287f28.entry.js → p-4c5557fd.entry.js} +1 -1
- package/dist/tet-components/{p-d8a0eaaa.entry.js → p-4f623f82.entry.js} +1 -1
- package/dist/tet-components/{p-11ed5b55.entry.js → p-53288215.entry.js} +1 -1
- package/dist/tet-components/{p-94b2efaa.entry.js → p-54d6312f.entry.js} +1 -1
- package/dist/tet-components/{p-37c3f4c6.entry.js → p-56b3c60a.entry.js} +1 -1
- package/dist/tet-components/{p-368fb50a.entry.js → p-56f529fa.entry.js} +1 -1
- package/dist/tet-components/p-61561410.entry.js +1 -0
- package/dist/tet-components/p-696802be.entry.js +1 -0
- package/dist/tet-components/{p-7ae4195d.entry.js → p-6fbed98d.entry.js} +1 -1
- package/dist/tet-components/{p-45c01709.entry.js → p-70775616.entry.js} +1 -1
- package/dist/tet-components/{p-cd7efc99.entry.js → p-710077db.entry.js} +1 -1
- package/dist/tet-components/p-71e25e1a.entry.js +1 -0
- package/dist/tet-components/p-7ae98034.entry.js +1 -0
- package/dist/tet-components/{p-c9c4656e.entry.js → p-7d81be98.entry.js} +1 -1
- package/dist/tet-components/{p-fd71a027.entry.js → p-7fe27333.entry.js} +1 -1
- package/dist/tet-components/{p-41ef37c5.entry.js → p-850c65bb.entry.js} +1 -1
- package/dist/tet-components/{p-3005a902.entry.js → p-8e626994.entry.js} +1 -1
- package/dist/tet-components/p-938e02a1.entry.js +1 -0
- package/dist/tet-components/p-94f68711.entry.js +1 -0
- package/dist/tet-components/{p-185e98b4.entry.js → p-998ee6ff.entry.js} +1 -1
- package/dist/tet-components/{p-40503431.entry.js → p-9da92e28.entry.js} +1 -1
- package/dist/tet-components/{p-6d7c406e.entry.js → p-9fcebf59.entry.js} +1 -1
- package/dist/tet-components/{p-9beb88d9.entry.js → p-9fd20cce.entry.js} +1 -1
- package/dist/tet-components/p-B6DaIAt8.js +1 -0
- package/dist/tet-components/p-C9BlrGW8.js +1 -0
- package/dist/tet-components/p-CO8AyGrA.js +3 -0
- package/dist/tet-components/p-CaZKtSyx.js +1 -0
- package/dist/tet-components/p-CclcDrnd.js +1 -0
- package/dist/{components/p-lEX8wezw.js → tet-components/p-Qvh4ioQu.js} +1 -1
- package/dist/tet-components/{p-DX1IQAn5.js → p-WCtqtcml.js} +1 -1
- package/dist/tet-components/{p-5a14b088.entry.js → p-a3554db0.entry.js} +1 -1
- package/dist/tet-components/p-a4308a8d.entry.js +1 -0
- package/dist/tet-components/{p-e0752dc6.entry.js → p-aabaeb21.entry.js} +1 -1
- package/dist/tet-components/p-ae8dd4d2.entry.js +1 -0
- package/dist/tet-components/{p-74ccd606.entry.js → p-af46cb66.entry.js} +1 -1
- package/dist/tet-components/{p-4a39f6bc.entry.js → p-afdfbbe6.entry.js} +1 -1
- package/dist/tet-components/{p-4b92e8e6.entry.js → p-b32bfbcc.entry.js} +1 -1
- package/dist/tet-components/{p-632d382c.entry.js → p-b394da8f.entry.js} +1 -1
- package/dist/tet-components/{p-ad0b78d5.entry.js → p-b47dbd57.entry.js} +1 -1
- package/dist/tet-components/{p-72b23f6a.entry.js → p-b65a081f.entry.js} +1 -1
- package/dist/tet-components/{p-952b6065.entry.js → p-b7604f13.entry.js} +1 -1
- package/dist/tet-components/{p-2c84bff1.entry.js → p-b85587af.entry.js} +1 -1
- package/dist/tet-components/{p-1b29e5f2.entry.js → p-bc168e7d.entry.js} +1 -1
- package/dist/tet-components/p-bd5176b9.entry.js +1 -0
- package/dist/tet-components/{p-17d3a7ff.entry.js → p-bfb89ca9.entry.js} +1 -1
- package/dist/tet-components/{p-c97d7c52.entry.js → p-c0c72e90.entry.js} +1 -1
- package/dist/tet-components/{p-7338bab9.entry.js → p-c6a65c31.entry.js} +1 -1
- package/dist/tet-components/{p-c96c5b96.entry.js → p-cc26cad3.entry.js} +1 -1
- package/dist/tet-components/p-cd8c2923.entry.js +1 -0
- package/dist/tet-components/{p-9d103705.entry.js → p-ce92d83d.entry.js} +1 -1
- package/dist/tet-components/{p-3af65955.entry.js → p-d2bfb56b.entry.js} +1 -1
- package/dist/tet-components/{p-39a59573.entry.js → p-da48adf2.entry.js} +1 -1
- package/dist/tet-components/{p-cc3e87fe.entry.js → p-dc84cd4d.entry.js} +1 -1
- package/dist/tet-components/{p-299c7600.entry.js → p-de2ed849.entry.js} +1 -1
- package/dist/tet-components/{p-954dc5fa.entry.js → p-e3272f96.entry.js} +1 -1
- package/dist/tet-components/{p-41763924.entry.js → p-e6ae26c9.entry.js} +1 -1
- package/dist/tet-components/{p-8310d42d.entry.js → p-e8395909.entry.js} +1 -1
- package/dist/tet-components/{p-830e4fe6.entry.js → p-ea61c173.entry.js} +1 -1
- package/dist/tet-components/p-ef66b469.entry.js +1 -0
- package/dist/tet-components/p-f002f9b5.entry.js +1 -0
- package/dist/tet-components/p-f3b47857.entry.js +1 -0
- package/dist/tet-components/{p-2d36b8a7.entry.js → p-fe36894b.entry.js} +1 -1
- package/dist/tet-components/{p-a32ada3d.entry.js → p-fee45cbd.entry.js} +1 -1
- package/dist/tet-components/{p-0996dd5a.entry.js → p-ff09a8f4.entry.js} +1 -1
- package/dist/tet-components/p-ff425f4d.entry.js +1 -0
- package/dist/tet-components/{p-DbJll7nz.js → p-fxr7DnMu.js} +2 -2
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/address/tet-address-offers-v2/address-offers-v2.model.d.ts +55 -0
- package/dist/types/components/advanced/address/tet-address-offers-v2/tet-address-offers-v2.d.ts +36 -0
- package/dist/types/components/advanced/cards/tet-assembler/tet-assembler.d.ts +6 -1
- package/dist/types/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.d.ts +6 -0
- package/dist/types/components/views/tet-address-offers-view-v2/tet-address-offers-view-v2.d.ts +33 -0
- package/dist/types/components.d.ts +260 -387
- package/dist/types/services/api/services/catalog/service-availability-services.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/tet-compare-card-v3.cjs.entry.js +0 -681
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +0 -387
- package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
- package/dist/cjs/tet-radio-blocks.cjs.entry.js +0 -83
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
- package/dist/components/p-B0kUlgkD.js +0 -1
- package/dist/components/p-C8u5HEb4.js +0 -1
- package/dist/components/p-CAsIFNv3.js +0 -1
- package/dist/components/p-CKSiwKh_.js +0 -1
- package/dist/components/p-Cdi7KDBd.js +0 -1
- package/dist/components/p-Cef0hbKH.js +0 -1
- package/dist/components/p-CoQ-OVcl.js +0 -1
- package/dist/components/p-CvISLoYA.js +0 -1
- package/dist/components/p-D-hVxt6M.js +0 -1
- package/dist/components/p-D0GJDW-O.js +0 -1
- package/dist/components/p-DUxOWNca.js +0 -1
- package/dist/components/tet-datepicker-header.d.ts +0 -11
- package/dist/components/tet-datepicker-header.js +0 -1
- package/dist/components/tet-datepicker-month-view.d.ts +0 -11
- package/dist/components/tet-datepicker-month-view.js +0 -1
- package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
- package/dist/components/tet-datepicker-multi-year-view.js +0 -1
- package/dist/components/tet-datepicker-year-view.d.ts +0 -11
- package/dist/components/tet-datepicker-year-view.js +0 -1
- package/dist/components/tet-datepicker.js +0 -1
- package/dist/esm/tet-compare-card-v3.entry.js +0 -679
- package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
- package/dist/esm/tet-datepicker.entry.js +0 -130
- package/dist/esm/tet-radio-blocks.entry.js +0 -81
- package/dist/tet-components/p-067e0001.entry.js +0 -1
- package/dist/tet-components/p-0c0dec4c.entry.js +0 -1
- package/dist/tet-components/p-129027b6.entry.js +0 -1
- package/dist/tet-components/p-137a5837.entry.js +0 -1
- package/dist/tet-components/p-24058988.entry.js +0 -1
- package/dist/tet-components/p-2d285624.entry.js +0 -1
- package/dist/tet-components/p-3ae8cca8.entry.js +0 -1
- package/dist/tet-components/p-45c896dd.entry.js +0 -1
- package/dist/tet-components/p-6bc9b958.entry.js +0 -1
- package/dist/tet-components/p-87f4d9b1.entry.js +0 -1
- package/dist/tet-components/p-97d1416f.entry.js +0 -1
- package/dist/tet-components/p-BGB6gNkz.js +0 -3
- package/dist/tet-components/p-Bvqcvhjw.js +0 -1
- package/dist/tet-components/p-BzLFf73g.js +0 -1
- package/dist/tet-components/p-C1XJmhDH.js +0 -1
- package/dist/tet-components/p-D0GJDW-O.js +0 -1
- package/dist/tet-components/p-bac0cda3.entry.js +0 -1
- package/dist/tet-components/p-d851b8e5.entry.js +0 -1
- package/dist/tet-components/p-de6f9fd9.entry.js +0 -1
- package/dist/tet-components/p-f1608c27.entry.js +0 -1
- package/dist/tet-components/p-fbb45705.entry.js +0 -1
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
- package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { A as ApiRequest, e as endpoints } from './http-codes-DZlFuxP5.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Returns the available services at the given address.
|
|
5
|
+
*
|
|
6
|
+
* @param addressKey
|
|
7
|
+
*/
|
|
8
|
+
const serviceAvailabilityServices = (addressKey) => {
|
|
9
|
+
const url = endpoints.serviceAvailabilityServices;
|
|
10
|
+
const request = new ApiRequest()
|
|
11
|
+
.setUrl(url + '?addressKey=' + addressKey)
|
|
12
|
+
.setOptions({ method: 'GET' })
|
|
13
|
+
.setErrorFallbackValue([]);
|
|
14
|
+
return request.execute();
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { serviceAvailabilityServices as s };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent,
|
|
1
|
+
import { r as registerInstance, c as createEvent, e as getElement, h, H as Host } from './index-CO8AyGrA.js';
|
|
2
2
|
|
|
3
3
|
const tetAccordionCss = () => `: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{--accordion-animation-duration:0.2s;--accordion-header-padding:1.5rem 0;--accordion-header-mobile-padding:0.75rem 0;--accordion-background-color:var(--tc-background-primary);--accordion-text-color:var(--tc-text-primary);--accordion-border-bottom-width:0.0625rem;--accordion-border-color:var(--tc-border-quaternary);--accordion-border-radius:0;--accordion-break-point:64rem;--accordion-outer-border:none;--accordion-header-font:500 1.5rem/1.75rem Gilroy, Gilroy, Arial, sans-serif;--accordion-header-mobile-font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;--accordion-header-display:flex;--accordion-header-align-items:normal;--accordion-header-text-desktop-margin-right:1.5rem}.dark-theme{--accordion-background-color:var(--tc-background-primary-dark);--accordion-text-color:var(--tc-text-primary-dark);--accordion-border-color:var(--tc-border-quaternary-dark)}.mint-theme{--accordion-background-color:rgb(10, 11, 13);--accordion-text-color:rgb(255, 255, 255);--accordion-border-color:rgb(88, 99, 116)}.tet-accordion{color:var(--accordion-text-color);background-color:var(--accordion-background-color);border-color:var(--accordion-border-color);border-radius:var(--accordion-border-radius);border:var(--accordion-outer-border)}.tet-accordion.transparent-bg{--accordion-background-color:transparent}.tet-accordion--border{border-bottom-style:solid;border-bottom-width:var(--accordion-border-bottom-width);box-sizing:border-box;padding-bottom:var(--accordion-border-bottom-width)}.tet-accordion__header{font:var(--accordion-header-mobile-font);padding:var(--accordion-header-mobile-padding);cursor:pointer;display:var(--accordion-header-display);align-items:var(--accordion-header-align-items);width:100%;border-radius:0.125rem}.tet-accordion__header--non-interactive{cursor:default}@media all and (min-width: 31.25rem){.tet-accordion--breakpoint-tablet .tet-accordion__header{line-height:1.75rem;font:var(--accordion-header-font);padding:var(--accordion-header-padding)}}@media all and (min-width: 64rem){.tet-accordion--breakpoint-desktop .tet-accordion__header{line-height:1.75rem;font:var(--accordion-header-font);padding:var(--accordion-header-padding)}}.tet-accordion__header:focus-visible.light{outline:0.125rem solid var(--tc-blue-40);outline-offset:0.0625rem;transition:outline 0s}.tet-accordion__header:focus-visible.dark{outline:0.125rem solid var(--tc-blue-40);outline:0.125rem solid var(--tc-blue-40-dark);outline-offset:0.0625rem;transition:outline 0s}.tet-accordion__header-text{flex-grow:1;font:inherit;margin-right:0.5rem}@media all and (min-width: 31.25rem){.tet-accordion__header-text{margin-right:var(--accordion-header-text-desktop-margin-right)}}.tet-accordion__header-icon{margin-right:0.5rem}.tet-accordion__header .tet-accordion__header-image{padding-right:1rem}.tet-accordion__content{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";font-weight:400}@media all and (min-width: 31.25rem){.tet-accordion__content{font:400 1.125rem/1.75rem "Inter", "Gilroy, Arial, sans-serif"}}.tet-accordion__content::after{content:"";display:block}.tet-accordion__content-wrapper{height:0;overflow:hidden;transition:height var(--accordion-animation-duration) ease-in-out}.tet-accordion__content-wrapper.visible{height:auto}.tet-accordion__content-wrapper.visible:focus-within{overflow:visible}.tet-accordion__icon{align-self:center;--icon-color:var(--accordion-text-color);transition:transform 150ms ease-out;--icon-size:1.25rem}@media all and (min-width: 31.25rem){.tet-accordion--breakpoint-tablet .tet-accordion__icon{--icon-size:1.5rem}}@media all and (min-width: 64rem){.tet-accordion--breakpoint-desktop .tet-accordion__icon{--icon-size:1.5rem}}.tet-accordion__icon.open{transform:rotate(-180deg)}`;
|
|
4
4
|
|
|
@@ -170,13 +170,13 @@ const TetAccordion = class {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
|
-
return (h(Host, { key: '
|
|
173
|
+
return (h(Host, { key: '75cfcfa7448940d797fe7694da7574656dd19aa6' }, h("div", { key: 'e761d3d8c816e4f9ce81b4746198b7f2f2e5be96', class: {
|
|
174
174
|
'tet-accordion': true,
|
|
175
175
|
'tet-accordion--border': this.withBorder,
|
|
176
176
|
[`${this.theme}-theme`]: true,
|
|
177
177
|
[`tet-accordion--breakpoint-${this.breakpoint}`]: true,
|
|
178
178
|
'transparent-bg': this.transparentBackground,
|
|
179
|
-
} }, h("div", { key: '
|
|
179
|
+
} }, h("div", { key: '739c8d0966d118425cd30a14ed9f040164a60a07', class: {
|
|
180
180
|
"tet-accordion__header": true,
|
|
181
181
|
[this.theme]: true,
|
|
182
182
|
"tet-accordion__header--non-interactive": !this.isHeaderInteractive,
|
|
@@ -184,15 +184,15 @@ const TetAccordion = class {
|
|
|
184
184
|
onClick: this.toggleOpenState,
|
|
185
185
|
onKeyDown: this.toggleAccessibilityOpenState,
|
|
186
186
|
tabIndex: 0
|
|
187
|
-
} : {}) }, h("slot", { key: '
|
|
187
|
+
} : {}) }, h("slot", { key: '01c2a5d3990674571c1f504f5f7c9dfce4affd0d', name: "header" }, this.headerIconName && (h("tet-icon", { key: '70b6ee31c22c98b32497c37db392cb8695e650e5', name: this.headerIconName, class: "tet-accordion__header-icon tet-accordion__icon" })), this.headerImageSrc && this.headerImageSrc !== '' && (h("img", { key: '748343af877ecdd1fdaa32d2250fe149957a2be3', src: this.headerImageSrc, alt: this.headerImageAlt ? this.headerImageAlt : undefined, class: "tet-accordion__header-image", loading: "lazy" })), this.renderHeading(), this.isHeaderInteractive && (h("tet-icon", { key: '181c602c88b9e0da228b388b80be056d3b67a5c0', name: `tc-chevron-${this.indicatorDirection}`, class: {
|
|
188
188
|
'tet-accordion__icon': true,
|
|
189
189
|
'open': this.isOpen
|
|
190
|
-
} })))), h("div", { key: '
|
|
190
|
+
} })))), h("div", { key: '5de07774862a674a77d08567cb737daa4d7a94cb', ref: (element) => (this.contentWrapperElement = element), class: {
|
|
191
191
|
'tet-accordion__content-wrapper': true,
|
|
192
192
|
'visible': this.isOpen
|
|
193
|
-
}, inert: !this.isOpen }, h("div", { key: '
|
|
193
|
+
}, inert: !this.isOpen }, h("div", { key: '1ee5d62437b476815b25039c454adf6e9e797ec8', ref: (element) => (this.contentElement = element), class: {
|
|
194
194
|
'tet-accordion__content': true
|
|
195
|
-
} }, h("slot", { key: '
|
|
195
|
+
} }, h("slot", { key: '0650687977648bc15266cb5ae5a603202dab9bd5' }))))));
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
TetAccordion.style = tetAccordionCss();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host,
|
|
2
|
-
import { p as processTranslations, t as translate } from './translations-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, e as getElement } from './index-CO8AyGrA.js';
|
|
2
|
+
import { p as processTranslations, t as translate } from './translations-B5QyZ9vI.js';
|
|
3
3
|
import { C as CompareCardsTabProductsFilters } from './compare-cards-tab-products-filters-DghrmBQI.js';
|
|
4
4
|
import { g as getConvertedPixels } from './size-SfqlfxDQ.js';
|
|
5
|
-
import './http-codes-
|
|
6
|
-
import './typecheck-
|
|
5
|
+
import './http-codes-DZlFuxP5.js';
|
|
6
|
+
import './typecheck-CaZKtSyx.js';
|
|
7
7
|
|
|
8
8
|
class AddressOffersProductsFilters {
|
|
9
9
|
onFilterSelect;
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CO8AyGrA.js';
|
|
2
|
+
import { p as processTranslations, t as translate } from './translations-B5QyZ9vI.js';
|
|
3
|
+
import { s as serviceAvailabilityServices } from './service-availability-services-DXz8vHs0.js';
|
|
4
|
+
import './http-codes-DZlFuxP5.js';
|
|
5
|
+
import './typecheck-CaZKtSyx.js';
|
|
6
|
+
|
|
7
|
+
const hasMainAndSidePanels = (mapping) => Boolean(mapping?.panels?.some(panel => panel.placement === 'main') &&
|
|
8
|
+
mapping.panels.some(panel => panel.placement === 'side_panel'));
|
|
9
|
+
const panelBenefitMatchesTerm = (benefit, term) => {
|
|
10
|
+
if (!benefit.contractTerms)
|
|
11
|
+
return true;
|
|
12
|
+
return Array.isArray(benefit.contractTerms)
|
|
13
|
+
? benefit.contractTerms.includes(term)
|
|
14
|
+
: Boolean(benefit.contractTerms[String(term)]);
|
|
15
|
+
};
|
|
16
|
+
const orderedByOrder = (items) => [...items].sort((first, second) => (first.order ?? Number.MAX_SAFE_INTEGER) - (second.order ?? Number.MAX_SAFE_INTEGER));
|
|
17
|
+
const toAssemblerPanelItem = (benefit) => ({
|
|
18
|
+
type: benefit.type === 'heading' || benefit.type === 'joomla_modal' ? benefit.type : 'text',
|
|
19
|
+
label: benefit.label,
|
|
20
|
+
icon: benefit.icon,
|
|
21
|
+
joomlaModalId: benefit.joomlaModalId,
|
|
22
|
+
contractTerms: benefit.contractTerms,
|
|
23
|
+
isVisuallyDisabled: benefit.isVisuallyDisabled
|
|
24
|
+
});
|
|
25
|
+
const appendPanelBenefit = (groups, benefit) => {
|
|
26
|
+
if (!benefit.label)
|
|
27
|
+
return;
|
|
28
|
+
if (benefit.type === 'heading') {
|
|
29
|
+
groups.push({ title: benefit.label, items: [] });
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (benefit.type !== 'text' && benefit.type !== 'joomla_modal')
|
|
33
|
+
return;
|
|
34
|
+
const item = {
|
|
35
|
+
name: benefit.label,
|
|
36
|
+
iconName: benefit.icon ?? '',
|
|
37
|
+
isVisuallyDisabled: benefit.isVisuallyDisabled,
|
|
38
|
+
dataAttributes: benefit.type === 'joomla_modal' && benefit.joomlaModalId
|
|
39
|
+
? { 'data-modal-screen-key': benefit.joomlaModalId }
|
|
40
|
+
: undefined
|
|
41
|
+
};
|
|
42
|
+
const items = groups.at(-1)?.items;
|
|
43
|
+
if (items)
|
|
44
|
+
items.push(item);
|
|
45
|
+
else
|
|
46
|
+
groups.push({ title: '', items: [item] });
|
|
47
|
+
};
|
|
48
|
+
const getMainPanelBonuses = (offer, term) => {
|
|
49
|
+
const mainPanels = offer.mapping?.panels?.filter(panel => panel.placement === 'main');
|
|
50
|
+
if (!mainPanels?.length)
|
|
51
|
+
return undefined;
|
|
52
|
+
const groups = [];
|
|
53
|
+
for (const panel of orderedByOrder(mainPanels)) {
|
|
54
|
+
for (const benefit of orderedByOrder(panel.benefits ?? [])) {
|
|
55
|
+
if (panelBenefitMatchesTerm(benefit, term))
|
|
56
|
+
appendPanelBenefit(groups, benefit);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return groups;
|
|
60
|
+
};
|
|
61
|
+
const flattenOffers = (catalog, language = 'lv') => {
|
|
62
|
+
if (!catalog?.structure?.length)
|
|
63
|
+
return [];
|
|
64
|
+
const offers = [];
|
|
65
|
+
const visit = (node, category) => {
|
|
66
|
+
const mappings = new Map((node.productMappings ?? []).map(mapping => [mapping.productCode, mapping]));
|
|
67
|
+
const nodeOffers = [];
|
|
68
|
+
const categoryKey = category.key === 'mobile_internet' ? 'internet' : category.key;
|
|
69
|
+
(node.products ?? []).forEach((product, index) => {
|
|
70
|
+
if (!product?.productCode || !product.contractTerms?.length)
|
|
71
|
+
return;
|
|
72
|
+
const mapping = mappings.get(product.productCode);
|
|
73
|
+
nodeOffers.push({
|
|
74
|
+
categoryKey,
|
|
75
|
+
categoryName: category.name?.[language] ?? category.name?.lv ?? category.key,
|
|
76
|
+
product,
|
|
77
|
+
mapping,
|
|
78
|
+
order: mapping?.order ?? index
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
nodeOffers.sort((a, b) => a.order - b.order);
|
|
82
|
+
offers.push(...nodeOffers);
|
|
83
|
+
(node.subgroups ?? []).forEach(child => visit(child, category));
|
|
84
|
+
};
|
|
85
|
+
catalog.structure.forEach(category => visit(category, category));
|
|
86
|
+
return offers;
|
|
87
|
+
};
|
|
88
|
+
const filterOffers = (offers, category, activeTags, productTags = []) => {
|
|
89
|
+
const tagProducts = activeTags.map(tag => new Set(productTags.find(item => item.tag === tag)?.products ?? []));
|
|
90
|
+
return offers.filter(offer => (category === 'all' || offer.categoryKey === category) &&
|
|
91
|
+
tagProducts.every(products => products.has(offer.product.productCode)));
|
|
92
|
+
};
|
|
93
|
+
/** Tags with at least one available product in the selected category. */
|
|
94
|
+
const availableTagsForCategory = (offers, category, productTags = []) => {
|
|
95
|
+
const productCodes = new Set(offers
|
|
96
|
+
.filter(offer => category === 'all' || offer.categoryKey === category)
|
|
97
|
+
.map(offer => offer.product.productCode));
|
|
98
|
+
return new Set(productTags
|
|
99
|
+
.filter(tag => tag.tag && tag.products?.some(productCode => productCodes.has(productCode)))
|
|
100
|
+
.map(tag => tag.tag));
|
|
101
|
+
};
|
|
102
|
+
/** Adapts the availability payload to the comparison card without a second product request. */
|
|
103
|
+
const toComparisonProduct = (offer, addressKey) => {
|
|
104
|
+
const { product } = offer;
|
|
105
|
+
const formUrl = Object.fromEntries(Object.entries(product.formUrl ?? {}).map(([language, value]) => {
|
|
106
|
+
if (!value)
|
|
107
|
+
return [language, ''];
|
|
108
|
+
try {
|
|
109
|
+
const url = new URL(value);
|
|
110
|
+
if (!['http:', 'https:'].includes(url.protocol))
|
|
111
|
+
return [language, ''];
|
|
112
|
+
url.searchParams.set('addressKey', String(addressKey));
|
|
113
|
+
return [language, url.toString()];
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
return [language, ''];
|
|
117
|
+
}
|
|
118
|
+
}));
|
|
119
|
+
return {
|
|
120
|
+
productCode: product.productCode,
|
|
121
|
+
name: product.name,
|
|
122
|
+
formUrl,
|
|
123
|
+
amount: product.amount,
|
|
124
|
+
contractTerms: product.contractTerms?.map(term => ({
|
|
125
|
+
amount: term.amount,
|
|
126
|
+
term: term.term,
|
|
127
|
+
promotionCode: term.promotionCode ?? '',
|
|
128
|
+
contract: term.contract,
|
|
129
|
+
priceDescription: term.priceDescription,
|
|
130
|
+
showDiscount: term.showDiscount
|
|
131
|
+
}))
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
/** Adapts availability panels and their term-specific benefits for the assembler. */
|
|
135
|
+
const toAssemblerData = (offer, addressKey, contractTermLabel) => {
|
|
136
|
+
const product = offer.product;
|
|
137
|
+
const panels = orderedByOrder(offer.mapping?.panels ?? []);
|
|
138
|
+
return {
|
|
139
|
+
defaultProduct: product.productCode,
|
|
140
|
+
products: [{
|
|
141
|
+
...product,
|
|
142
|
+
formUrl: toComparisonProduct(offer, addressKey).formUrl,
|
|
143
|
+
contractTerms: product.contractTerms
|
|
144
|
+
}],
|
|
145
|
+
panels: panels.map(panel => ({
|
|
146
|
+
name: panel.name,
|
|
147
|
+
placement: panel.placement,
|
|
148
|
+
items: panel.placement === 'main'
|
|
149
|
+
? [{ type: 'contract_term', label: contractTermLabel }, ...orderedByOrder(panel.benefits ?? []).map(toAssemblerPanelItem)]
|
|
150
|
+
: orderedByOrder(panel.benefits ?? []).map(toAssemblerPanelItem)
|
|
151
|
+
}))
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const tetAddressOffersV2Css = () => `: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{--offers-text-color:var(--tc-text-primary);display:block;width:100%;background-color:var(--tc-background-primary);color:var(--offers-text-color)}:host([theme=dark]){--offers-text-color:var(--tc-text-primary-dark);background-color:var(--tc-background-primary-dark)}.loader{display:flex;flex-direction:column;align-items:center;gap:1.5rem;width:100%}.loader-title{max-width:25rem}.loader-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:0.5rem;width:100%}.loader-cards{display:flex;flex-direction:column;gap:1.5rem;width:100%}@media screen and (min-width: 64rem){.loader-cards{gap:2.5rem}}.offers{display:flex;flex-direction:column;align-items:center;width:100%}.offers-title{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif";margin:0 0 1.5rem;color:var(--offers-text-color);text-align:center}@media screen and (min-width: 64rem){.offers-title{font:600 3rem/3.25rem "Gilroy", "Gilroy, Arial, sans-serif";margin-bottom:2.5rem}}.category-tabs{display:block;width:100%;max-width:100%;--tabs-container-flex-wrap:wrap;--tabs-container-row-gap:0.5rem}.category-tabs>button{margin:0 0.25rem}@media screen and (min-width: 64rem){.category-tabs{--tabs-container-flex-wrap:nowrap}}.service-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:0.5rem 1rem;width:100%;margin-top:1.5rem}@media screen and (min-width: 48rem){.service-filters{margin-top:1.5rem}}.service-filter{display:flex;align-items:center;gap:0.5rem;padding:0.5rem}.service-filter tet-icon{width:1.5rem;height:1.5rem}.service-filter tet-switch::part(switch-container){color:var(--offers-text-color)}.offer-list{display:flex;flex-direction:column;gap:1.5rem;width:100%;margin-top:1.5rem}@media screen and (min-width: 64rem){.offer-list{gap:2.5rem;margin-top:2.5rem}}.offer-list tet-compare-card-v3,.offer-list tet-assembler{display:block;width:100%}.offer-list tet-compare-card-v3{--compare-card-max-width:111rem;margin-inline:auto}.empty-filter{margin:0;text-align:center}`;
|
|
156
|
+
|
|
157
|
+
const TetAddressOffersV2 = class {
|
|
158
|
+
constructor(hostRef) {
|
|
159
|
+
registerInstance(this, hostRef);
|
|
160
|
+
this.emptyCatalog = createEvent(this, "emptyCatalog");
|
|
161
|
+
}
|
|
162
|
+
loadId = 0;
|
|
163
|
+
assemblerDataCache = new WeakMap();
|
|
164
|
+
/** Address used for fetching available products when catalog is not supplied. */
|
|
165
|
+
addressKey;
|
|
166
|
+
/** Optional catalog, useful when the host has already fetched availability. */
|
|
167
|
+
catalog;
|
|
168
|
+
/** Scenario names for products whose mapping contains multiple panels. */
|
|
169
|
+
assemblerScenarios = {};
|
|
170
|
+
/** Contract terms shown in single-panel cards. Defaults to the two options in the design. */
|
|
171
|
+
displayedContractTerms = [24, 0];
|
|
172
|
+
/** Language used for labels and product names. */
|
|
173
|
+
language = 'lv';
|
|
174
|
+
/** Color theme passed to the card controls. */
|
|
175
|
+
theme = 'light';
|
|
176
|
+
loadedCatalog;
|
|
177
|
+
loading = false;
|
|
178
|
+
selectedCategory = 'all';
|
|
179
|
+
selectedTags = [];
|
|
180
|
+
/** Emitted when the availability response contains no products. */
|
|
181
|
+
emptyCatalog;
|
|
182
|
+
async componentWillLoad() {
|
|
183
|
+
await processTranslations('tet-components', this.language);
|
|
184
|
+
void this.loadCatalog();
|
|
185
|
+
}
|
|
186
|
+
async loadCatalog() {
|
|
187
|
+
const loadId = ++this.loadId;
|
|
188
|
+
if (this.catalog) {
|
|
189
|
+
this.loading = false;
|
|
190
|
+
this.loadedCatalog = this.catalog;
|
|
191
|
+
this.resetFilters();
|
|
192
|
+
if (!flattenOffers(this.catalog, this.language).length)
|
|
193
|
+
this.emptyCatalog.emit();
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
if (!this.addressKey) {
|
|
197
|
+
this.loading = false;
|
|
198
|
+
this.loadedCatalog = undefined;
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
this.loading = true;
|
|
202
|
+
try {
|
|
203
|
+
const response = await serviceAvailabilityServices(this.addressKey);
|
|
204
|
+
if (loadId !== this.loadId)
|
|
205
|
+
return;
|
|
206
|
+
this.loadedCatalog = response;
|
|
207
|
+
this.resetFilters();
|
|
208
|
+
if (!flattenOffers(response, this.language).length)
|
|
209
|
+
this.emptyCatalog.emit();
|
|
210
|
+
}
|
|
211
|
+
catch (error) {
|
|
212
|
+
if (loadId !== this.loadId)
|
|
213
|
+
return;
|
|
214
|
+
this.loadedCatalog = undefined;
|
|
215
|
+
this.emptyCatalog.emit();
|
|
216
|
+
}
|
|
217
|
+
finally {
|
|
218
|
+
if (loadId === this.loadId)
|
|
219
|
+
this.loading = false;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async onLanguageChange(language) {
|
|
223
|
+
await processTranslations('tet-components', language);
|
|
224
|
+
this.loadedCatalog = this.loadedCatalog ? { ...this.loadedCatalog } : undefined;
|
|
225
|
+
}
|
|
226
|
+
resetFilters() {
|
|
227
|
+
this.selectedCategory = 'all';
|
|
228
|
+
this.selectedTags = [];
|
|
229
|
+
}
|
|
230
|
+
getCategories(offers) {
|
|
231
|
+
const keys = ['all', 'internet', 'tv', 'bundles'];
|
|
232
|
+
return keys.filter(key => key === 'all' || offers.some(offer => offer.categoryKey === key)).map(key => ({
|
|
233
|
+
key,
|
|
234
|
+
count: key === 'all' ? offers.length : offers.filter(offer => offer.categoryKey === key).length,
|
|
235
|
+
label: key === 'all'
|
|
236
|
+
? translate('components-address-offers-tag-all')
|
|
237
|
+
: key === 'bundles'
|
|
238
|
+
? translate('components-address-offers-tag-bundle')
|
|
239
|
+
: offers.find(offer => offer.categoryKey === key)?.categoryName ?? key
|
|
240
|
+
}));
|
|
241
|
+
}
|
|
242
|
+
getTermOptions(offer) {
|
|
243
|
+
const availableTerms = offer.product.contractTerms ?? [];
|
|
244
|
+
const terms = this.displayedContractTerms
|
|
245
|
+
.map(term => availableTerms.find(item => item.term === term))
|
|
246
|
+
.filter((term) => Boolean(term));
|
|
247
|
+
if (!terms.length)
|
|
248
|
+
terms.push(...availableTerms);
|
|
249
|
+
return terms.map((term, index) => ({
|
|
250
|
+
id: `${offer.product.productCode}-${term.term}`,
|
|
251
|
+
productCode: offer.product.productCode,
|
|
252
|
+
contractTerm: term.term,
|
|
253
|
+
preselected: term.term === 24 || (index === 0 && !terms.some(item => item.term === 24)),
|
|
254
|
+
optionLabel: term.term === 0
|
|
255
|
+
? translate('components-assembler-contract-term-indefinite')
|
|
256
|
+
: translate('components-address-offers-v2-contract-term-months', { months: term.term }),
|
|
257
|
+
bonuses: this.getBonuses(offer, term)
|
|
258
|
+
}));
|
|
259
|
+
}
|
|
260
|
+
getBonuses(offer, term) {
|
|
261
|
+
const panelBonuses = getMainPanelBonuses(offer, term.term);
|
|
262
|
+
if (panelBonuses?.some(group => group.items?.length))
|
|
263
|
+
return panelBonuses;
|
|
264
|
+
const termBenefits = term.benefits?.[this.language] ?? term.benefits?.lv;
|
|
265
|
+
const benefits = (termBenefits || offer.product.benefits?.[this.language] || offer.product.benefits?.lv || '')
|
|
266
|
+
.split(/\r?\n/)
|
|
267
|
+
.map(item => item.trim())
|
|
268
|
+
.filter(Boolean);
|
|
269
|
+
if (!benefits.length)
|
|
270
|
+
return [];
|
|
271
|
+
return [{
|
|
272
|
+
title: translate('components-address-offers-v2-included'),
|
|
273
|
+
items: benefits.map(name => ({
|
|
274
|
+
name,
|
|
275
|
+
iconName: ''
|
|
276
|
+
}))
|
|
277
|
+
}];
|
|
278
|
+
}
|
|
279
|
+
renderOffer(offer) {
|
|
280
|
+
if (hasMainAndSidePanels(offer.mapping)) {
|
|
281
|
+
const addressKey = this.addressKey ?? this.loadedCatalog?.addressKey ?? '';
|
|
282
|
+
const cached = this.assemblerDataCache.get(offer.product);
|
|
283
|
+
const data = cached?.mapping === offer.mapping && cached.addressKey === addressKey && cached.language === this.language
|
|
284
|
+
? cached.data
|
|
285
|
+
: toAssemblerData(offer, addressKey, translate('components-address-offers-v2-contract-term'));
|
|
286
|
+
if (data !== cached?.data) {
|
|
287
|
+
this.assemblerDataCache.set(offer.product, { mapping: offer.mapping, addressKey, language: this.language, data });
|
|
288
|
+
}
|
|
289
|
+
return h("tet-assembler", { key: offer.product.productCode, data: data, language: this.language, theme: this.theme });
|
|
290
|
+
}
|
|
291
|
+
return (h("tet-compare-card-v3", { key: offer.product.productCode, cardType: "single-card", narrowSummary: true, singleCardControlType: "tabs", showControlsFirst: true, controlsTitle: translate('components-address-offers-v2-contract-term'), options: this.getTermOptions(offer), preloadedProducts: { [offer.product.productCode]: toComparisonProduct(offer, this.addressKey ?? this.loadedCatalog?.addressKey ?? '') }, language: this.language, theme: this.theme, buttonTitle: translate('components-address-offers-form-button-text'), secondaryLinkText: translate('components-assembler-contract-summary-text') }));
|
|
292
|
+
}
|
|
293
|
+
renderLoader() {
|
|
294
|
+
return (h("div", { class: "loader", "aria-busy": "true" }, h("tet-placeholder", { class: "loader-title", width: "40%", height: "3rem", darkTheme: this.theme === 'dark' }), h("div", { class: "loader-filters" }, [0, 1, 2].map(index => (h("tet-placeholder", { key: index, width: "10rem", height: "3rem", darkTheme: this.theme === 'dark' })))), h("div", { class: "loader-cards" }, [0, 1, 2].map(index => (h("tet-placeholder", { key: index, width: "100%", height: "10rem", darkTheme: this.theme === 'dark' }))))));
|
|
295
|
+
}
|
|
296
|
+
render() {
|
|
297
|
+
const offers = flattenOffers(this.loadedCatalog, this.language);
|
|
298
|
+
const categories = this.getCategories(offers);
|
|
299
|
+
const visible = filterOffers(offers, this.selectedCategory, this.selectedTags, this.loadedCatalog?.productTags);
|
|
300
|
+
const availableTags = availableTagsForCategory(offers, this.selectedCategory, this.loadedCatalog?.productTags);
|
|
301
|
+
const tags = (this.loadedCatalog?.productTags ?? []).flatMap(tag => tag.tag && availableTags.has(tag.tag)
|
|
302
|
+
? [{ key: tag.tag, name: tag.title ?? tag.tag, icon: tag.icon }]
|
|
303
|
+
: []);
|
|
304
|
+
return (h(Host, { key: 'ab78cbd6a5a21d86b95130f99890e63419ae5a5b' }, this.loading ? this.renderLoader() : offers.length > 0 ? (h("section", { class: "offers", "aria-label": translate('components-address-offers-v2-available-title') }, h("h2", { class: "offers-title" }, translate('components-address-offers-v2-available-title')), h("tet-tab-header", { class: "category-tabs", type: "pill", theme: this.theme, position: "center", mode: "switch", accessibilityLabel: translate('components-address-offers-v2-category-filter'), defaultTab: "all", onTabSelected: (event) => {
|
|
305
|
+
const nextCategory = String(event.detail.new);
|
|
306
|
+
const nextAvailableTags = availableTagsForCategory(offers, nextCategory, this.loadedCatalog?.productTags);
|
|
307
|
+
this.selectedTags = this.selectedTags.filter(tag => nextAvailableTags.has(tag));
|
|
308
|
+
this.selectedCategory = nextCategory;
|
|
309
|
+
} }, categories.map(category => (h("button", { type: "button", "data-name": category.key }, category.label, " (", category.count, ")")))), tags.length > 0 && (h("div", { class: "service-filters" }, tags.map(tag => (h("div", { class: "service-filter" }, tag.icon && h("tet-icon", { name: tag.icon, theme: this.theme }), h("tet-switch", { label: tag.name, theme: this.theme, labelPosition: "left", checked: this.selectedTags.includes(tag.key), value: tag.key, onCheck: (event) => {
|
|
310
|
+
const next = event.detail.checked
|
|
311
|
+
? [...this.selectedTags, tag.key]
|
|
312
|
+
: this.selectedTags.filter(key => key !== tag.key);
|
|
313
|
+
this.selectedTags = next;
|
|
314
|
+
} })))))), h("div", { class: "offer-list" }, visible.length ? visible.map(offer => this.renderOffer(offer)) : (h("p", { class: "empty-filter" }, translate('components-address-offers-v2-no-results')))))) : null));
|
|
315
|
+
}
|
|
316
|
+
static get watchers() { return {
|
|
317
|
+
"addressKey": [{
|
|
318
|
+
"loadCatalog": 0
|
|
319
|
+
}],
|
|
320
|
+
"catalog": [{
|
|
321
|
+
"loadCatalog": 0
|
|
322
|
+
}],
|
|
323
|
+
"language": [{
|
|
324
|
+
"onLanguageChange": 0
|
|
325
|
+
}]
|
|
326
|
+
}; }
|
|
327
|
+
};
|
|
328
|
+
TetAddressOffersV2.style = tetAddressOffersV2Css();
|
|
329
|
+
|
|
330
|
+
export { TetAddressOffersV2 as tet_address_offers_v2 };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, d as getAssetPath, h, H as Host } from './index-CO8AyGrA.js';
|
|
2
|
+
import { p as processTranslations, t as translate } from './translations-B5QyZ9vI.js';
|
|
3
|
+
import './http-codes-DZlFuxP5.js';
|
|
4
|
+
import './typecheck-CaZKtSyx.js';
|
|
5
|
+
|
|
6
|
+
const tetAddressOffersViewV2Css = () => `: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%;background-color:var(--tc-background-primary);color:var(--tc-text-primary)}:host([theme=dark]){background-color:var(--tc-background-primary-dark);color:var(--tc-text-primary-dark)}.page{display:flex;flex-direction:column;gap:2.5rem;width:100%;margin:0 auto;padding-block:2.5rem 5rem}@media screen and (min-width: 48rem){.page{padding-top:4rem}}@media screen and (min-width: 64rem){.page{gap:5rem;max-width:111rem;padding-top:5rem}}.search-banner{display:flex;flex-direction:column;justify-content:flex-end;gap:1.5rem;min-height:27.5rem;padding:1.5rem 1rem;border-radius:1rem;background-color:var(--tc-grey-80);background-position:center;background-size:cover;color:var(--tc-text-white-permanent)}@media screen and (min-width: 48rem){.search-banner{min-height:38.5rem;padding:2.5rem}}@media screen and (min-width: 64rem){.search-banner{flex-direction:row;align-items:center;justify-content:space-between;gap:2.5rem;min-height:25rem}}.search-banner-title{font:600 1.75rem/2rem "Gilroy", "Gilroy, Arial, sans-serif";margin:0}@media screen and (min-width: 64rem){.search-banner-title{font:600 4rem/4.375rem "Gilroy", "Gilroy, Arial, sans-serif";flex:1}}@media screen and (min-width: 80rem){.search-banner-title{font:600 5rem/5.5rem "Gilroy", "Gilroy, Arial, sans-serif"}}.address-search{display:block;width:100%}@media screen and (min-width: 64rem){.address-search{flex:1}}`;
|
|
7
|
+
|
|
8
|
+
const TetAddressOffersViewV2 = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
/** Preselected address key. Search runs automatically after it resolves. */
|
|
13
|
+
addressKey = '';
|
|
14
|
+
/** Optional preloaded availability catalog. */
|
|
15
|
+
catalog;
|
|
16
|
+
/** Scenario names for configured multi-panel products. */
|
|
17
|
+
assemblerScenarios = {};
|
|
18
|
+
/** Contract terms shown in single-panel cards. */
|
|
19
|
+
displayedContractTerms = [24, 0];
|
|
20
|
+
/** Language used for labels. */
|
|
21
|
+
language = 'lv';
|
|
22
|
+
/** Color theme for nested controls. */
|
|
23
|
+
theme = 'light';
|
|
24
|
+
/** Optional search banner image URL. Defaults to the bundled banner.webp. */
|
|
25
|
+
heroImage = '';
|
|
26
|
+
/** Options for the existing availability contact form. */
|
|
27
|
+
callCenterTaskOptions;
|
|
28
|
+
/** Forces the availability contact form to be visible. */
|
|
29
|
+
showContactForm = false;
|
|
30
|
+
selectedAddress;
|
|
31
|
+
activeAddressKey;
|
|
32
|
+
catalogEmpty = false;
|
|
33
|
+
async componentWillLoad() {
|
|
34
|
+
await processTranslations('tet-components', this.language);
|
|
35
|
+
}
|
|
36
|
+
async onLanguageChange(language) {
|
|
37
|
+
await processTranslations('tet-components', language);
|
|
38
|
+
forceUpdate(this);
|
|
39
|
+
}
|
|
40
|
+
onAddressKeyChange() {
|
|
41
|
+
this.selectedAddress = undefined;
|
|
42
|
+
this.activeAddressKey = undefined;
|
|
43
|
+
this.catalogEmpty = false;
|
|
44
|
+
}
|
|
45
|
+
onAddressSelected = (address) => {
|
|
46
|
+
this.selectedAddress = address;
|
|
47
|
+
this.activeAddressKey = undefined;
|
|
48
|
+
this.catalogEmpty = false;
|
|
49
|
+
if (this.addressKey && String(address.addressKey) === this.addressKey) {
|
|
50
|
+
this.submitAddress();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
submitAddress = () => {
|
|
54
|
+
if (!this.selectedAddress?.addressKey)
|
|
55
|
+
return;
|
|
56
|
+
this.activeAddressKey = this.selectedAddress.addressKey;
|
|
57
|
+
};
|
|
58
|
+
render() {
|
|
59
|
+
const showForm = this.showContactForm || this.catalogEmpty;
|
|
60
|
+
const bannerImage = this.heroImage || getAssetPath('assets/banner.webp');
|
|
61
|
+
return (h(Host, { key: '5bb0c801b7646ade14b337dbf5a73c7bbb9a427c' }, h("div", { key: '9deebf13fb593c0f43de51147c96d5126e69c1f9', class: "page" }, h("section", { key: '729d0f6f339338d8ae965130f0100b9e04d8234e', class: "search-banner", style: { backgroundImage: `linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.15)), url('${bannerImage}')` } }, h("h1", { key: 'dda30d30865fd7cced33be019e46fed83bde3cd1', class: "search-banner-title" }, translate('components-address-offers-view-v2-title')), h("tet-address-search", { key: '64d17dd4b415ae0718075f5e22550556d1dc380a', class: "address-search", redesignedStyle: true, alwaysExpanded: true, addressKey: this.addressKey, language: this.language, theme: this.theme, searchButtonText: translate('components-address-offers-view-check'), onAddressSelected: (event) => this.onAddressSelected(event.detail), onSearchSubmitted: this.submitAddress, onClearInputField: () => {
|
|
62
|
+
this.selectedAddress = undefined;
|
|
63
|
+
this.activeAddressKey = undefined;
|
|
64
|
+
this.catalogEmpty = false;
|
|
65
|
+
} })), this.activeAddressKey && (h("tet-address-offers-v2", { key: '6b910f5787e18a1bbb8bf369b8cfbe1448842547', addressKey: this.activeAddressKey, catalog: this.catalog, assemblerScenarios: this.assemblerScenarios, displayedContractTerms: this.displayedContractTerms, language: this.language, theme: this.theme, onEmptyCatalog: () => { this.catalogEmpty = true; } })), h("slot", { key: '54c32cfa085ae9172d580ffe22ee35936923d775', name: "lead-form" }), showForm && this.callCenterTaskOptions && (h("tet-availability-contact-form", { key: 'fb36823b0acd56047668dce9ec2edff52047a597', taskOptions: this.callCenterTaskOptions, language: this.language, showAvailabilityContactForm: true })))));
|
|
66
|
+
}
|
|
67
|
+
static get assetsDirs() { return ["assets"]; }
|
|
68
|
+
static get watchers() { return {
|
|
69
|
+
"language": [{
|
|
70
|
+
"onLanguageChange": 0
|
|
71
|
+
}],
|
|
72
|
+
"addressKey": [{
|
|
73
|
+
"onAddressKeyChange": 0
|
|
74
|
+
}]
|
|
75
|
+
}; }
|
|
76
|
+
};
|
|
77
|
+
TetAddressOffersViewV2.style = tetAddressOffersViewV2Css();
|
|
78
|
+
|
|
79
|
+
export { TetAddressOffersViewV2 as tet_address_offers_view_v2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h, r as registerInstance, f as forceUpdate, F as Fragment, H as Host } from './index-
|
|
2
|
-
import { p as processTranslations, t as translate } from './translations-
|
|
3
|
-
import './http-codes-
|
|
4
|
-
import './typecheck-
|
|
1
|
+
import { h, r as registerInstance, f as forceUpdate, F as Fragment, H as Host } from './index-CO8AyGrA.js';
|
|
2
|
+
import { p as processTranslations, t as translate } from './translations-B5QyZ9vI.js';
|
|
3
|
+
import './http-codes-DZlFuxP5.js';
|
|
4
|
+
import './typecheck-CaZKtSyx.js';
|
|
5
5
|
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
/* tslint:disable */
|
|
@@ -185,7 +185,7 @@ const TetAddressOffersView = class {
|
|
|
185
185
|
return h(Fragment, null);
|
|
186
186
|
}
|
|
187
187
|
render() {
|
|
188
|
-
return (h(Host, { key: '
|
|
188
|
+
return (h(Host, { key: '7e56419c9354eb6ba1f90f1efcf794c6748f7cf7' }, this.renderContactForm(), this.renderHeader(), this.address && this.renderBody()));
|
|
189
189
|
}
|
|
190
190
|
static get watchers() { return {
|
|
191
191
|
"language": [{
|