@tet/tet-components 1.3.157-testing → 1.4.0-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/{address-5271d3aa.js → address-ac89cbf7.js} +1 -1
- package/dist/cjs/{assets-e3bb045c.js → assets-d8d3b4a0.js} +1 -1
- package/dist/cjs/{async-request-29b32d63.js → async-request-5585e750.js} +27 -26
- package/dist/cjs/compare-cards-tab-products-filters-10b06fe0.js +100 -0
- package/dist/cjs/{http-codes-2f72a8b2.js → http-codes-910040e7.js} +25 -19
- package/dist/cjs/{index-f559cb2e.js → index-4daaccaa.js} +1672 -1598
- package/dist/cjs/{index-84ede372.js → index-f89f05b8.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{phone-d414fe5a.js → phone-ed64bd26.js} +8 -6
- package/dist/cjs/{product-comparison-f784fb1b.js → product-comparison-e7afcafb.js} +1 -1
- package/dist/cjs/{tasks-af99ad61.js → tasks-807b08d3.js} +2 -2
- package/dist/cjs/tet-accordion_2.cjs.entry.js +62 -46
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +249 -232
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +43 -35
- package/dist/cjs/tet-address-offers_4.cjs.entry.js +343 -313
- package/dist/cjs/tet-address-search.cjs.entry.js +175 -167
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +106 -95
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +40 -30
- package/dist/cjs/tet-autocomplete.cjs.entry.js +203 -190
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +280 -241
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +396 -378
- package/dist/cjs/tet-b2b-service-calculator.cjs.entry.js +28 -28
- package/dist/cjs/tet-banner-nav.cjs.entry.js +23 -11
- package/dist/cjs/tet-bar-graph.cjs.entry.js +222 -215
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-card.cjs.entry.js +38 -32
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +18 -11
- package/dist/cjs/tet-business-lines.cjs.entry.js +25 -26
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +10 -10
- package/dist/cjs/tet-button.cjs.entry.js +9 -9
- package/dist/cjs/tet-card-list.cjs.entry.js +557 -530
- package/dist/cjs/tet-carousel.cjs.entry.js +180 -184
- package/dist/cjs/tet-checkbox.cjs.entry.js +15 -11
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +30 -4
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +132 -124
- package/dist/cjs/tet-colors.cjs.entry.js +42 -42
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +51 -49
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +29 -28
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +41 -34
- package/dist/cjs/tet-components.cjs.js +3 -3
- package/dist/cjs/tet-contact-form.cjs.entry.js +55 -46
- package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +62 -58
- package/dist/cjs/tet-customer-assets.cjs.entry.js +90 -85
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +202 -187
- package/dist/cjs/tet-datepicker.cjs.entry.js +35 -30
- package/dist/cjs/tet-dialog.cjs.entry.js +41 -35
- package/dist/cjs/tet-dropdown_2.cjs.entry.js +137 -115
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +68 -71
- package/dist/cjs/tet-expandable-input.cjs.entry.js +97 -80
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +17 -19
- package/dist/cjs/tet-filter.cjs.entry.js +26 -11
- package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
- package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
- package/dist/cjs/tet-grid.cjs.entry.js +1 -1
- package/dist/cjs/tet-icon.cjs.entry.js +25 -24
- package/dist/cjs/tet-inline-message.cjs.entry.js +7 -7
- package/dist/cjs/tet-input.cjs.entry.js +47 -37
- package/dist/cjs/tet-label.cjs.entry.js +3 -3
- package/dist/cjs/tet-layout.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +1 -1
- package/dist/cjs/tet-loader.cjs.entry.js +1 -1
- package/dist/cjs/tet-macd-view.cjs.entry.js +50 -23
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +13 -14
- package/dist/cjs/tet-menu.cjs.entry.js +4 -5
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +86 -72
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +19 -15
- package/dist/cjs/tet-news-card-list.cjs.entry.js +35 -36
- package/dist/cjs/tet-number-input.cjs.entry.js +56 -42
- package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +4 -4
- package/dist/cjs/tet-radio.cjs.entry.js +11 -7
- package/dist/cjs/tet-range-slider.cjs.entry.js +632 -620
- package/dist/cjs/tet-referral.cjs.entry.js +30 -26
- package/dist/cjs/tet-round-stepper.cjs.entry.js +2 -2
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tet-stepper-input.cjs.entry.js +32 -26
- package/dist/cjs/tet-stepper-v2.cjs.entry.js +28 -29
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +20 -21
- package/dist/cjs/tet-stepper.cjs.entry.js +62 -63
- package/dist/cjs/tet-switch.cjs.entry.js +4 -2
- package/dist/cjs/tet-tab-header.cjs.entry.js +68 -65
- package/dist/cjs/tet-table.cjs.entry.js +132 -138
- package/dist/cjs/tet-tag_2.cjs.entry.js +11 -11
- package/dist/cjs/tet-text-list.cjs.entry.js +12 -4
- package/dist/cjs/tet-textarea.cjs.entry.js +14 -14
- package/dist/cjs/tet-thank-you-view-v2.cjs.entry.js +36 -33
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +36 -33
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +52 -46
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +15 -15
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +15 -15
- package/dist/cjs/{theme-wrapper-a5bbadf6.js → theme-wrapper-3f7c73ee.js} +2 -2
- package/dist/cjs/{translations-ed68775f.js → translations-62fb6b1c.js} +52 -51
- package/dist/cjs/{utils-ac9be2ff.js → utils-1f67c4b7.js} +23 -8
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/advanced/address/tet-address-offers/tet-address-offers.js +108 -101
- package/dist/collection/components/advanced/address/tet-address-offers-filters/address-offers-filters.js +128 -129
- package/dist/collection/components/advanced/address/tet-address-offers-filters/tet-address-offers-filters.js +17 -17
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/address-offers-products-filters.js +90 -89
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/tet-address-offers-filters-products.js +33 -19
- package/dist/collection/components/advanced/address/tet-address-search/tet-address-search.js +171 -163
- package/dist/collection/components/advanced/address/tet-autocomplete/tet-autocomplete.js +203 -206
- package/dist/collection/components/advanced/address/tet-autocomplete-dropdown/tet-autocomplete-dropdown.js +39 -29
- package/dist/collection/components/advanced/cards/tet-b2b-compare-card/tet-b2b-compare-card.js +75 -62
- package/dist/collection/components/advanced/cards/tet-business-card/tet-business-card.js +40 -30
- package/dist/collection/components/advanced/cards/tet-business-compare-card/tet-business-compare-card.js +17 -10
- package/dist/collection/components/advanced/cards/tet-business-summary-card/tet-business-summary-card.js +38 -32
- package/dist/collection/components/advanced/cards/tet-card-list/tet-card-list.js +356 -337
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.js +125 -119
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/tet-compare-card-v2.js +51 -45
- package/dist/collection/components/advanced/cards/tet-compare-cards/tet-compare-cards.js +21 -15
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/compare-cards-tab-products-filters.js +89 -88
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/tet-compare-cards-tab.js +25 -22
- package/dist/collection/components/advanced/cards/tet-dynamic-card/tet-dynamic-card.js +67 -70
- package/dist/collection/components/advanced/cards/utils.js +23 -8
- package/dist/collection/components/advanced/customer/tet-asset-addresses/tet-asset-addresses.js +103 -92
- package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/tet-asset-availability-addresses.js +29 -14
- package/dist/collection/components/advanced/customer/tet-customer-assets/tet-customer-assets.js +87 -82
- package/dist/collection/components/advanced/customer/tet-referral/tet-referral.js +24 -19
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/tet-multi-step-dialog.js +83 -69
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/tet-availability-contact-form.js +54 -43
- package/dist/collection/components/advanced/forms/tet-b2b-check-out-form/tet-b2b-check-out-form.js +11 -3
- package/dist/collection/components/advanced/forms/tet-contact-form/tet-contact-form.js +49 -40
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/tet-tv-gift-block.js +14 -13
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/tet-tv-gift-list.js +15 -13
- package/dist/collection/components/basic/buttons/tet-button/tet-button.js +8 -8
- package/dist/collection/components/basic/buttons/tet-checkbox/tet-checkbox.js +14 -10
- package/dist/collection/components/basic/buttons/tet-radio/tet-radio.js +10 -6
- package/dist/collection/components/basic/buttons/tet-switch/tet-switch.js +3 -1
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-content/tet-tab-content.js +17 -13
- package/dist/collection/components/basic/buttons/tet-tabs/tet-tab-header/tet-tab-header.js +67 -63
- package/dist/collection/components/basic/buttons/tet-tag-group/tet-tag-group.js +8 -8
- package/dist/collection/components/basic/carousel/tet-carousel/tet-carousel.js +177 -181
- package/dist/collection/components/basic/icon/tet-icon.js +23 -22
- package/dist/collection/components/basic/loaders/tet-spinner/tet-spinner.js +15 -14
- package/dist/collection/components/basic/steppers/tet-banner-nav/tet-banner-nav.js +20 -8
- package/dist/collection/components/basic/steppers/tet-business-round-stepper/tet-business-round-stepper.js +9 -9
- package/dist/collection/components/basic/steppers/tet-round-stepper/tet-round-stepper.js +4 -0
- package/dist/collection/components/basic/steppers/tet-stepper/tet-stepper.js +61 -62
- package/dist/collection/components/basic/steppers/tet-stepper-v2/tet-stepper-v2.js +27 -28
- package/dist/collection/components/basic/steppers/tet-stepper-v3/tet-stepper-v3.js +19 -20
- package/dist/collection/components/simple/filter/tet-filter/tet-filter.js +25 -10
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.js +20 -16
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.js +135 -132
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.js +20 -17
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.js +26 -21
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.js +34 -28
- package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.js +20 -8
- package/dist/collection/components/simple/inputs/tet-expandable-input/tet-expandable-input.js +99 -78
- package/dist/collection/components/simple/inputs/tet-input/tet-input.js +44 -34
- package/dist/collection/components/simple/inputs/tet-number-input/tet-number-input.js +55 -41
- package/dist/collection/components/simple/inputs/tet-range-slider/tet-range-slider.js +631 -618
- package/dist/collection/components/simple/inputs/tet-stepper-input/tet-stepper-input.js +29 -23
- package/dist/collection/components/simple/inputs/tet-textarea/tet-textarea.js +13 -13
- package/dist/collection/components/simple/lists/tet-news-card-list/tet-news-card-list.js +37 -34
- package/dist/collection/components/simple/lists/tet-selection-list/tet-selection-list.js +61 -57
- package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.js +14 -2
- package/dist/collection/components/simple/menu/tet-business-navigation/tet-business-navigation.js +48 -45
- package/dist/collection/components/simple/menu/tet-menu/tet-menu.js +3 -4
- package/dist/collection/components/simple/menu/tet-menu-mobile/tet-menu-mobile.js +15 -12
- package/dist/collection/components/simple/menu/tet-navigation-mobile/tet-navigation-mobile.js +18 -14
- package/dist/collection/components/simple/structural/tet-accordion/tet-accordion.js +37 -20
- package/dist/collection/components/simple/structural/tet-expansion-panel/tet-expansion-panel.js +16 -17
- package/dist/collection/components/simple/tables-and-graphs/tet-bar-graph/tet-bar-graph.js +222 -213
- package/dist/collection/components/simple/tables-and-graphs/tet-table/tet-table.js +132 -136
- package/dist/collection/components/simple/text-blocks/tet-cloud-application-form-dialog/tet-cloud-application-form-dialog.js +27 -1
- package/dist/collection/components/simple/text-blocks/tet-dialog/tet-dialog.js +39 -31
- package/dist/collection/components/simple/text-blocks/tet-inline-message/tet-inline-message.js +6 -6
- package/dist/collection/components/simple/text-blocks/tet-notification/tet-notification.js +27 -23
- package/dist/collection/components/simple/text-blocks/tet-tooltip/tet-tooltip.js +119 -105
- package/dist/collection/components/views/tet-address-offers-view/tet-address-offers-view.js +40 -32
- package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/tet-b2b-configurator-cart.js +99 -88
- package/dist/collection/components/views/tet-b2b-configurator/tet-b2b-configurator.js +392 -373
- package/dist/collection/components/views/tet-b2b-service-calculator/tet-b2b-service-calculator.js +25 -25
- package/dist/collection/components/views/tet-business-lines/tet-business-lines.js +21 -22
- package/dist/collection/components/views/tet-cloud-configurator/tet-cloud-configurator.js +130 -120
- package/dist/collection/components/views/tet-macd-view/tet-macd-view.js +42 -13
- package/dist/collection/components/views/tet-price-view/tet-price-view.js +4 -2
- package/dist/collection/components/views/tet-thank-you-view/tet-thank-you-view.js +52 -44
- package/dist/collection/components/views/tet-thank-you-view-v2/tet-thank-you-view-v2.js +34 -29
- package/dist/collection/components/views/tet-thank-you-view-v3/tet-thank-you-view-v3.js +34 -29
- package/dist/collection/config/bradcasting.js +1 -2
- package/dist/collection/config/endpoints.js +7 -5
- package/dist/collection/config/forms-portal.js +1 -2
- package/dist/collection/config/landing-pages.js +1 -2
- package/dist/collection/config/mytet-portal.js +1 -2
- package/dist/collection/docs/styling/colors/tet-colors.js +41 -41
- package/dist/collection/services/api/async-request.js +26 -25
- package/dist/collection/services/api/request.js +16 -11
- package/dist/collection/services/api/services/tv/tv-channel-count-parser.js +73 -74
- package/dist/collection/services/translations/translations-manager.js +46 -47
- package/dist/collection/services/translations/translations.js +1 -2
- package/dist/collection/services/translations/translations.store.js +2 -3
- package/dist/collection/services/utils/inertia-scroll.js +203 -191
- package/dist/collection/services/utils/object.js +5 -3
- package/dist/collection/services/validators/validators/e-mail.js +6 -5
- package/dist/collection/services/validators/validators/phone.js +6 -5
- package/dist/collection/services/validators/validators/required.js +2 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-045bec85.js → p-03f68fa0.js} +16 -16
- package/dist/components/{p-4d33055f.js → p-04a30e22.js} +117 -107
- package/dist/components/{p-5dc5e13c.js → p-065e8f8b.js} +2 -2
- package/dist/components/{p-f18e5ae3.js → p-06650222.js} +28 -23
- package/dist/components/{p-ca66b4b1.js → p-12649d6e.js} +8 -6
- package/dist/components/{p-856695a3.js → p-13bb64a3.js} +43 -37
- package/dist/components/{p-489ae3a0.js → p-1c466832.js} +27 -26
- package/dist/components/{p-639c9d1a.js → p-1cccc456.js} +80 -69
- package/dist/components/{p-bb324278.js → p-220f3eef.js} +1 -1
- package/dist/components/{p-df1fe72c.js → p-2426d691.js} +47 -37
- package/dist/components/{p-04fe59fc.js → p-25756e4c.js} +50 -47
- package/dist/components/{p-aca28e71.js → p-2627300f.js} +53 -52
- package/dist/components/{p-144dffdc.js → p-31662bf6.js} +1 -1
- package/dist/components/{p-6b7e73c0.js → p-33725ec2.js} +218 -202
- package/dist/components/{p-9a47b95f.js → p-3a80e93a.js} +26 -26
- package/dist/components/p-3daf3627.js +869 -0
- package/dist/components/{p-cec65d0a.js → p-405417ba.js} +121 -116
- package/dist/components/{p-530ef38b.js → p-429b72d5.js} +4 -4
- package/dist/components/{p-9573f82c.js → p-496e41f5.js} +41 -35
- package/dist/components/{p-a188f09e.js → p-57c53319.js} +11 -7
- package/dist/components/{p-a81e545d.js → p-581edb37.js} +1 -1
- package/dist/components/{p-3fd7310f.js → p-5d56e6e5.js} +1 -1
- package/dist/components/{p-7ddd71bd.js → p-5e206e34.js} +3 -3
- package/dist/components/{p-965cea5b.js → p-5fd443f5.js} +137 -134
- package/dist/components/{p-6847eb2d.js → p-64ca3cec.js} +62 -63
- package/dist/components/{p-0088d040.js → p-7530ef19.js} +16 -12
- package/dist/components/{p-eb54f5b9.js → p-78a44de3.js} +21 -18
- package/dist/components/{p-7b3c7bf1.js → p-7beec5f2.js} +4 -2
- package/dist/components/{p-c1876db7.js → p-7dff5fe9.js} +36 -21
- package/dist/components/{p-68f0e894.js → p-7e8270ec.js} +10 -10
- package/dist/components/{p-bd3402f6.js → p-7fb96f10.js} +17 -15
- package/dist/components/{p-35e72a2b.js → p-8101b09a.js} +58 -44
- package/dist/components/{p-37ed3ebb.js → p-88af3744.js} +190 -135
- package/dist/components/{p-42ff76b5.js → p-8db05f15.js} +22 -18
- package/dist/components/{p-881093d4.js → p-9372e619.js} +206 -194
- package/dist/components/{p-9fe57fd0.js → p-962b13ba.js} +68 -65
- package/dist/components/{p-b0d6ed2e.js → p-a9b1c410.js} +25 -24
- package/dist/components/{p-029ff2b3.js → p-b3001877.js} +24 -24
- package/dist/components/{p-00e689fb.js → p-ba709868.js} +1 -1
- package/dist/components/{p-50f207fd.js → p-bc84eb7d.js} +54 -34
- package/dist/components/{p-91651432.js → p-bfcce1dd.js} +1 -1
- package/dist/{esm/http-codes-7faa9f6e.js → components/p-c1f5b99f.js} +66 -59
- package/dist/components/{p-e707e73a.js → p-c217775d.js} +13 -5
- package/dist/components/{p-cb2daf20.js → p-c62a7fa3.js} +25 -16
- package/dist/components/{p-88b42c67.js → p-c7c47790.js} +63 -59
- package/dist/components/{p-00c91e96.js → p-c8b44baa.js} +2 -2
- package/dist/components/{p-6a2a81d8.js → p-c956b246.js} +104 -94
- package/dist/components/{p-53ca0a91.js → p-d3939d35.js} +39 -23
- package/dist/components/{p-5c8c2d8d.js → p-d4192716.js} +1 -1
- package/dist/components/{p-163de6e2.js → p-d73512b2.js} +23 -11
- package/dist/components/{p-e04716ac.js → p-dfee3bd7.js} +29 -30
- package/dist/components/{p-9bf262a8.js → p-e474903b.js} +33 -27
- package/dist/components/p-ea401595.js +169 -0
- package/dist/components/{p-03177920.js → p-ecf59431.js} +181 -173
- package/dist/components/{p-818742ad.js → p-ee3bdb7a.js} +21 -22
- package/dist/components/{p-817bee22.js → p-f05feebd.js} +12 -12
- package/dist/components/{p-21c5cfc4.js → p-f7be6960.js} +64 -53
- package/dist/components/{p-616c71e1.js → p-f82069f3.js} +559 -532
- package/dist/components/{p-a0d406ca.js → p-f8ac52c6.js} +117 -72
- package/dist/components/{p-7790eae2.js → p-f97fa8ff.js} +128 -126
- package/dist/components/tet-accordion.js +1 -1
- package/dist/components/tet-address-offers-filters-products.js +1 -1
- package/dist/components/tet-address-offers-filters.js +1 -1
- package/dist/components/tet-address-offers-view.js +65 -57
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-asset-addresses.js +116 -105
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +44 -34
- 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 +411 -393
- package/dist/components/tet-b2b-service-calculator.js +33 -33
- package/dist/components/tet-banner-nav.js +23 -11
- package/dist/components/tet-bar-graph.js +222 -215
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +38 -32
- package/dist/components/tet-business-compare-card.js +20 -13
- package/dist/components/tet-business-lines.js +26 -27
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +11 -11
- 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 +181 -185
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +35 -9
- package/dist/components/tet-cloud-configurator.js +140 -132
- package/dist/components/tet-colors.js +42 -42
- package/dist/components/tet-compare-card-v2.js +57 -55
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +40 -39
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +59 -50
- package/dist/components/tet-contact-info.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-customer-assets.js +95 -90
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +41 -36
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +71 -74
- package/dist/components/tet-expandable-input.js +99 -82
- package/dist/components/tet-expansion-panel.js +17 -19
- package/dist/components/tet-filter.js +29 -14
- 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 +8 -8
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-label.js +3 -3
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +55 -28
- package/dist/components/tet-menu-mobile.js +14 -15
- package/dist/components/tet-menu.js +5 -6
- package/dist/components/tet-multi-step-dialog.js +88 -74
- package/dist/components/tet-navigation-mobile.js +20 -16
- package/dist/components/tet-news-card-list.js +38 -39
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +32 -28
- package/dist/components/tet-round-stepper.js +3 -3
- package/dist/components/tet-selection-list.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-v2.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-stepper.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 +134 -140
- 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-textarea.js +14 -14
- package/dist/components/tet-thank-you-view-v2.js +38 -35
- package/dist/components/tet-thank-you-view-v3.js +38 -35
- package/dist/components/tet-thank-you-view.js +55 -49
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +15 -15
- package/dist/components/tet-tv-gift-list.js +16 -16
- package/dist/esm/{address-979a9993.js → address-483cfa2e.js} +1 -1
- package/dist/esm/{assets-b971f105.js → assets-d6147258.js} +1 -1
- package/dist/esm/{async-request-6675e5f5.js → async-request-21a65bdc.js} +27 -26
- package/dist/esm/compare-cards-tab-products-filters-79b7b7c6.js +98 -0
- package/dist/{components/p-6830b44d.js → esm/http-codes-c2e180c8.js} +65 -60
- package/dist/esm/{index-1bf36cb9.js → index-0c5fef2e.js} +1 -1
- package/dist/esm/{index-7f1e2a22.js → index-209dece3.js} +1672 -1598
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{phone-99c2f297.js → phone-4b016684.js} +8 -6
- package/dist/esm/{product-comparison-830e2764.js → product-comparison-41b334ab.js} +1 -1
- package/dist/esm/{tasks-3dfcc330.js → tasks-24b9f88e.js} +2 -2
- package/dist/esm/tet-accordion_2.entry.js +62 -46
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +250 -233
- package/dist/esm/tet-address-offers-view.entry.js +44 -36
- package/dist/esm/tet-address-offers_4.entry.js +344 -314
- package/dist/esm/tet-address-search.entry.js +176 -168
- package/dist/esm/tet-asset-addresses.entry.js +106 -95
- package/dist/esm/tet-autocomplete-dropdown.entry.js +40 -30
- package/dist/esm/tet-autocomplete.entry.js +204 -191
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +281 -242
- package/dist/esm/tet-b2b-configurator.entry.js +397 -379
- package/dist/esm/tet-b2b-service-calculator.entry.js +29 -29
- package/dist/esm/tet-banner-nav.entry.js +24 -12
- package/dist/esm/tet-bar-graph.entry.js +222 -215
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-card.entry.js +38 -32
- package/dist/esm/tet-business-compare-card.entry.js +18 -11
- package/dist/esm/tet-business-lines.entry.js +26 -27
- package/dist/esm/tet-business-round-stepper.entry.js +10 -10
- package/dist/esm/tet-button.entry.js +9 -9
- package/dist/esm/tet-card-list.entry.js +557 -530
- package/dist/esm/tet-carousel.entry.js +181 -185
- package/dist/esm/tet-checkbox.entry.js +15 -11
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +31 -5
- package/dist/esm/tet-cloud-configurator.entry.js +133 -125
- package/dist/esm/tet-colors.entry.js +42 -42
- package/dist/esm/tet-compare-card-v2.entry.js +51 -49
- package/dist/esm/tet-compare-cards-tab.entry.js +29 -28
- package/dist/esm/tet-compare-cards_2.entry.js +41 -34
- package/dist/esm/tet-components.js +4 -4
- package/dist/esm/tet-contact-form.entry.js +56 -47
- package/dist/esm/tet-contact-info.entry.js +1 -1
- package/dist/esm/tet-container_2.entry.js +63 -59
- package/dist/esm/tet-customer-assets.entry.js +90 -85
- package/dist/esm/tet-datepicker-header_4.entry.js +203 -188
- package/dist/esm/tet-datepicker.entry.js +36 -31
- package/dist/esm/tet-dialog.entry.js +42 -36
- package/dist/esm/tet-dropdown_2.entry.js +137 -115
- package/dist/esm/tet-dynamic-card.entry.js +68 -71
- package/dist/esm/tet-expandable-input.entry.js +97 -80
- package/dist/esm/tet-expansion-panel.entry.js +17 -19
- package/dist/esm/tet-filter.entry.js +26 -11
- package/dist/esm/tet-font-weight.entry.js +1 -1
- package/dist/esm/tet-fonts.entry.js +1 -1
- package/dist/esm/tet-grid.entry.js +1 -1
- package/dist/esm/tet-icon.entry.js +25 -24
- package/dist/esm/tet-inline-message.entry.js +7 -7
- package/dist/esm/tet-input.entry.js +48 -38
- package/dist/esm/tet-label.entry.js +4 -4
- package/dist/esm/tet-layout.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +1 -1
- package/dist/esm/tet-loader.entry.js +1 -1
- package/dist/esm/tet-macd-view.entry.js +51 -24
- package/dist/esm/tet-menu-mobile.entry.js +13 -14
- package/dist/esm/tet-menu.entry.js +4 -5
- package/dist/esm/tet-multi-step-dialog.entry.js +87 -73
- package/dist/esm/tet-navigation-mobile.entry.js +19 -15
- package/dist/esm/tet-news-card-list.entry.js +35 -36
- package/dist/esm/tet-number-input.entry.js +56 -42
- package/dist/esm/tet-placeholder.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +4 -4
- package/dist/esm/tet-radio.entry.js +11 -7
- package/dist/esm/tet-range-slider.entry.js +632 -620
- package/dist/esm/tet-referral.entry.js +31 -27
- package/dist/esm/tet-round-stepper.entry.js +2 -2
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-spinner.entry.js +16 -16
- package/dist/esm/tet-stepper-input.entry.js +33 -27
- package/dist/esm/tet-stepper-v2.entry.js +28 -29
- package/dist/esm/tet-stepper-v3.entry.js +20 -21
- package/dist/esm/tet-stepper.entry.js +62 -63
- package/dist/esm/tet-switch.entry.js +4 -2
- package/dist/esm/tet-tab-header.entry.js +68 -65
- package/dist/esm/tet-table.entry.js +132 -138
- package/dist/esm/tet-tag_2.entry.js +12 -12
- package/dist/esm/tet-text-list.entry.js +12 -4
- package/dist/esm/tet-textarea.entry.js +14 -14
- package/dist/esm/tet-thank-you-view-v2.entry.js +37 -34
- package/dist/esm/tet-thank-you-view-v3.entry.js +37 -34
- package/dist/esm/tet-thank-you-view.entry.js +52 -46
- package/dist/esm/tet-tv-gift-block.entry.js +15 -15
- package/dist/esm/tet-tv-gift-list.entry.js +15 -15
- package/dist/esm/{theme-wrapper-6e6b2089.js → theme-wrapper-58ce8dca.js} +2 -2
- package/dist/esm/{translations-eff34607.js → translations-ff21fc65.js} +53 -52
- package/dist/esm/{typecheck-31fd6c02.js → typecheck-4abf0258.js} +1 -1
- package/dist/esm/{utils-f8f08058.js → utils-c110a4b1.js} +23 -8
- package/dist/tet-components/{p-eed2b508.entry.js → p-02441a57.entry.js} +1 -1
- package/dist/tet-components/p-032b5507.js +1 -0
- package/dist/tet-components/{p-de142575.js → p-0449b998.js} +1 -1
- package/dist/tet-components/{p-b680d126.entry.js → p-072fd38b.entry.js} +1 -1
- package/dist/tet-components/p-078fae30.entry.js +1 -0
- package/dist/tet-components/p-087903b8.entry.js +1 -0
- package/dist/tet-components/p-09da9cdb.entry.js +1 -0
- package/dist/tet-components/p-0bd28e46.entry.js +1 -0
- package/dist/tet-components/p-12649d6e.js +1 -0
- package/dist/tet-components/{p-44d068ac.entry.js → p-172f5d46.entry.js} +1 -1
- package/dist/tet-components/p-19d71252.entry.js +1 -0
- package/dist/tet-components/p-1c34c35d.entry.js +1 -0
- package/dist/tet-components/{p-9b027102.entry.js → p-1e637cab.entry.js} +1 -1
- package/dist/tet-components/p-216be909.entry.js +1 -0
- package/dist/tet-components/p-2204320b.entry.js +1 -0
- package/dist/tet-components/p-25c9957d.js +1 -0
- package/dist/tet-components/p-274d6839.entry.js +1 -0
- package/dist/tet-components/p-278ad754.entry.js +1 -0
- package/dist/tet-components/p-2813884f.entry.js +1 -0
- package/dist/tet-components/p-290cc145.entry.js +1 -0
- package/dist/tet-components/p-29a179e7.entry.js +1 -0
- package/dist/tet-components/{p-1a89919e.entry.js → p-2b11b9eb.entry.js} +1 -1
- package/dist/tet-components/p-30fed7c2.entry.js +1 -0
- package/dist/tet-components/{p-5c86ad42.entry.js → p-3176cf46.entry.js} +1 -1
- package/dist/tet-components/{p-46e5b573.entry.js → p-3d60accc.entry.js} +1 -1
- package/dist/tet-components/{p-e263ecdf.js → p-3deb6f3c.js} +1 -1
- package/dist/tet-components/p-41cdb7f9.entry.js +1 -0
- package/dist/tet-components/p-446ae6ef.entry.js +1 -0
- package/dist/tet-components/{p-f9a1fbb2.entry.js → p-451b2a49.entry.js} +1 -1
- package/dist/tet-components/{p-f023f124.entry.js → p-47233208.entry.js} +1 -1
- package/dist/tet-components/p-4c10844d.entry.js +1 -0
- package/dist/tet-components/p-4ecb9094.entry.js +1 -0
- package/dist/tet-components/{p-36d2a380.entry.js → p-4fd6c1ae.entry.js} +1 -1
- package/dist/tet-components/{p-49122f6a.entry.js → p-510150b8.entry.js} +1 -1
- package/dist/tet-components/{p-bc16c07b.js → p-56bfd2a5.js} +1 -1
- package/dist/tet-components/p-585739ce.entry.js +1 -0
- package/dist/tet-components/{p-918e4e84.entry.js → p-5cf65beb.entry.js} +1 -1
- package/dist/tet-components/{p-66dd0ede.entry.js → p-6278a886.entry.js} +1 -1
- package/dist/tet-components/p-646bddab.entry.js +1 -0
- package/dist/tet-components/p-683c2419.entry.js +1 -0
- package/dist/tet-components/{p-8b405467.entry.js → p-68709390.entry.js} +1 -1
- package/dist/tet-components/{p-c7dbb16f.entry.js → p-6910d35c.entry.js} +1 -1
- package/dist/tet-components/p-696f83db.entry.js +1 -0
- package/dist/tet-components/p-6a185f76.js +1 -0
- package/dist/tet-components/p-6ccea165.entry.js +1 -0
- package/dist/tet-components/p-6e166c83.entry.js +1 -0
- package/dist/tet-components/{p-775aa778.entry.js → p-70941fcd.entry.js} +1 -1
- package/dist/tet-components/p-7145ca73.entry.js +1 -0
- package/dist/tet-components/{p-8c964cca.js → p-77d941d8.js} +2 -2
- package/dist/tet-components/{p-a9ed4e2b.entry.js → p-7ae725e1.entry.js} +1 -1
- package/dist/tet-components/p-8148edc9.entry.js +1 -0
- package/dist/tet-components/p-8622e131.entry.js +1 -0
- package/dist/tet-components/p-8907f459.entry.js +1 -0
- package/dist/tet-components/p-8f7629ca.entry.js +1 -0
- package/dist/tet-components/p-94e9a944.js +1 -0
- package/dist/tet-components/p-97c743ab.entry.js +1 -0
- package/dist/tet-components/p-9a2b6ee2.js +1 -0
- package/dist/tet-components/p-9b5cf49f.js +2 -0
- package/dist/tet-components/{p-ed67bd52.entry.js → p-9becad06.entry.js} +1 -1
- package/dist/tet-components/p-9eb8d93b.entry.js +1 -0
- package/dist/tet-components/p-a8091c62.entry.js +1 -0
- package/dist/tet-components/p-a8e16d54.entry.js +1 -0
- package/dist/tet-components/p-ae2e1d5c.entry.js +1 -0
- package/dist/tet-components/{p-ecff869b.entry.js → p-b3598dc1.entry.js} +1 -1
- package/dist/tet-components/p-ba803b83.entry.js +1 -0
- package/dist/tet-components/p-bda674b0.entry.js +1 -0
- package/dist/tet-components/{p-8f545d45.entry.js → p-c07c5b84.entry.js} +1 -1
- package/dist/tet-components/p-c14f1445.entry.js +1 -0
- package/dist/tet-components/{p-9f1a810e.entry.js → p-c24c48e4.entry.js} +1 -1
- package/dist/tet-components/{p-bb9f1a6f.entry.js → p-c3f486bc.entry.js} +1 -1
- package/dist/tet-components/{p-77372984.js → p-c4fc2dd6.js} +1 -1
- package/dist/tet-components/p-c5bc017a.entry.js +1 -0
- package/dist/tet-components/p-c6d7c2b4.entry.js +1 -0
- package/dist/tet-components/p-c9cdf98c.js +1 -0
- package/dist/tet-components/p-cca96c58.entry.js +1 -0
- package/dist/tet-components/p-d4b6b480.entry.js +1 -0
- package/dist/tet-components/p-d5cc4a81.entry.js +1 -0
- package/dist/tet-components/p-d8bebee4.entry.js +1 -0
- package/dist/tet-components/p-d9a826c2.js +1 -0
- package/dist/tet-components/p-dd49b83c.entry.js +1 -0
- package/dist/tet-components/p-dd6c7252.entry.js +1 -0
- package/dist/tet-components/p-ea3ae824.entry.js +1 -0
- package/dist/tet-components/p-eba077c3.entry.js +1 -0
- package/dist/tet-components/p-ebc29130.entry.js +1 -0
- package/dist/tet-components/p-ed09dcf0.entry.js +1 -0
- package/dist/tet-components/p-ed46a069.entry.js +1 -0
- package/dist/tet-components/p-eda15c93.entry.js +1 -0
- package/dist/tet-components/{p-a07cada6.entry.js → p-eeb9d7f5.entry.js} +1 -1
- package/dist/tet-components/p-f262aa6f.entry.js +1 -0
- package/dist/tet-components/p-f6d5af93.entry.js +1 -0
- package/dist/tet-components/p-f704e170.entry.js +1 -0
- package/dist/tet-components/p-f86ab4d3.entry.js +1 -0
- package/dist/tet-components/p-fcaa909d.entry.js +1 -0
- package/dist/tet-components/p-fd1d7955.entry.js +1 -0
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/address/tet-autocomplete/tet-autocomplete.d.ts +3 -2
- package/dist/types/components.d.ts +0 -8
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +6 -12
- package/dist/cjs/compare-cards-tab-products-filters-58410792.js +0 -99
- package/dist/collection/components/advanced/address/tet-address-offers-filters/address-offers-filters.spec.js +0 -105
- package/dist/collection/components/advanced/address/tet-address-offers-filters/test/tet-address-offers-filters.spec.js +0 -23
- package/dist/collection/components/advanced/address/tet-address-offers-filters-products/test/tet-address-offers-filters-products.spec.js +0 -23
- package/dist/collection/components/advanced/address/tet-autocomplete/test/tet-autocomplete.spec.js +0 -110
- package/dist/collection/components/advanced/cards/tet-b2b-compare-card/test/tet-b2b-compare-card.spec.js +0 -86
- package/dist/collection/components/advanced/cards/tet-card-list/test/tet-card-list.spec.js +0 -69
- package/dist/collection/components/advanced/cards/tet-compare-card/test/tet-compare-card.spec.js +0 -292
- package/dist/collection/components/advanced/cards/tet-compare-card-v2/test/tet-compare-card-v2.spec.js +0 -40
- package/dist/collection/components/advanced/cards/tet-compare-cards/test/tet-compare-cards.spec.js +0 -65
- package/dist/collection/components/advanced/cards/tet-compare-cards-tab/test/tet-compare-cards-tab.spec.js +0 -399
- package/dist/collection/components/advanced/customer/tet-asset-addresses/test/tet-asset-addresses.spec.js +0 -30
- package/dist/collection/components/advanced/customer/tet-asset-availability-addresses/test/tet-asset-availability-addresses.spec.js +0 -30
- package/dist/collection/components/advanced/customer/tet-referral/test/tet-referral.spec.js +0 -85
- package/dist/collection/components/advanced/dialog/tet-multi-step-dialog/test/tet-multi-step-dialog.spec.js +0 -53
- package/dist/collection/components/advanced/forms/tet-availability-contact-form/test/tet-availability-contact-form.spec.js +0 -35
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-block/test/tet-tv-gift-block.spec.js +0 -61
- package/dist/collection/components/advanced/promotions/tv-gift/tet-tv-gift-list/test/tet-tv-gift-list.spec.js +0 -55
- package/dist/collection/components/basic/buttons/tet-button/test/tet-button.spec.js +0 -131
- package/dist/collection/components/basic/buttons/tet-checkbox/test/tet-checkbox.spec.js +0 -28
- package/dist/collection/components/basic/buttons/tet-radio/test/tet-radio.spec.js +0 -26
- package/dist/collection/components/basic/buttons/tet-switch/test/tet-switch.spec.js +0 -27
- package/dist/collection/components/basic/buttons/tet-tabs/test/tet-tab-content.spec.js +0 -35
- package/dist/collection/components/basic/buttons/tet-tabs/test/tet-tab-header.spec.js +0 -42
- package/dist/collection/components/basic/buttons/tet-tag/test/tet-tag.spec.js +0 -76
- package/dist/collection/components/basic/buttons/tet-tag-group/test/tet-tag-group.spec.js +0 -92
- package/dist/collection/components/basic/carousel/tet-carousel/test/tet-carousel.spec.js +0 -63
- package/dist/collection/components/basic/container/tet-container/test/tet-container.spec.js +0 -50
- package/dist/collection/components/basic/loaders/tet-loader/test/tet-loader.spec.js +0 -19
- package/dist/collection/components/basic/loaders/tet-placeholder/test/tet-placeholder.spec.js +0 -19
- package/dist/collection/components/basic/loaders/tet-spinner/test/tet-spinner.spec.js +0 -52
- package/dist/collection/components/basic/steppers/tet-business-round-stepper/test/tet-business-round-stepper.spec.js +0 -82
- package/dist/collection/components/basic/steppers/tet-round-stepper/test/tet-round-stepper.spec.js +0 -78
- package/dist/collection/components/basic/steppers/tet-stepper/test/tet-stepper.spec.js +0 -110
- package/dist/collection/components/basic/steppers/tet-stepper-v2/test/tet-stepper-v2.spec.js +0 -136
- package/dist/collection/components/basic/steppers/tet-stepper-v3/test/tet-stepper-v3.spec.js +0 -135
- package/dist/collection/components/simple/inputs/tet-dropdown/test/tet-dropdown.spec.js +0 -122
- package/dist/collection/components/simple/inputs/tet-input/test/tet-input.spec.js +0 -110
- package/dist/collection/components/simple/inputs/tet-range-slider/test/tet-range-slider.spec.js +0 -145
- package/dist/collection/components/simple/lists/tet-news-card-list/test/tet-news-card-list.spec.js +0 -111
- package/dist/collection/components/simple/lists/tet-selection-list/test/tet-selection-list.spec.js +0 -64
- package/dist/collection/components/simple/lists/tet-text-list/test/tet-text-list.spec.js +0 -171
- package/dist/collection/components/simple/menu/tet-menu/test/tet-menu.spec.js +0 -231
- package/dist/collection/components/simple/menu/tet-menu-mobile/test/tet-menu-mobile.spec.js +0 -87
- package/dist/collection/components/simple/menu/tet-navigation-mobile/test/tet-navigation-mobile.spec.js +0 -81
- package/dist/collection/components/simple/structural/tet-accordion/test/tet-accordion.spec.js +0 -108
- package/dist/collection/components/simple/structural/tet-expansion-panel/test/tet-expansion-panel.spec.js +0 -42
- package/dist/collection/components/simple/tables-and-graphs/tet-bar-graph/test/tet-bar-graph.spec.js +0 -85
- package/dist/collection/components/simple/tables-and-graphs/tet-table/test/tet-table.spec.js +0 -360
- package/dist/collection/components/simple/text-blocks/tet-dialog/test/tet-dialog.spec.js +0 -84
- package/dist/collection/components/simple/text-blocks/tet-inline-message/test/tet-inline-message.spec.js +0 -22
- package/dist/collection/components/simple/text-blocks/tet-notification/test/tet-notification.spec.js +0 -88
- package/dist/collection/components/simple/text-blocks/tet-tooltip/test/tet-tooltip.spec.js +0 -79
- package/dist/collection/components/views/tet-b2b-configurator/partials/tet-b2b-configurator-cart/test/tet-b2b-configurator-cart.spec.js +0 -50
- package/dist/collection/components/views/tet-b2b-configurator/test/tet-b2b-configurator.spec.js +0 -136
- package/dist/collection/components/views/tet-business-lines/test/tet-business-lines.spec.js +0 -23
- package/dist/collection/components/views/tet-contact-info/test/tet-contact-info.spec.js +0 -44
- package/dist/collection/components/views/tet-macd-view/test/tet-macd-view.spec.js +0 -498
- package/dist/collection/components/views/tet-price-view/test/tet-price-view.spec.js +0 -98
- package/dist/collection/components/views/tet-thank-you-view/test/tet-thank-you-view.spec.js +0 -275
- package/dist/collection/components/views/tet-thank-you-view-v2/test/tet-thank-you-view-v2.spec.js +0 -175
- package/dist/collection/components/views/tet-thank-you-view-v3/test/tet-thank-you-view-v3.spec.js +0 -175
- package/dist/collection/services/api/async-request.spec.js +0 -37
- package/dist/collection/services/api/request.spec.js +0 -32
- package/dist/collection/services/api/services/address.spec.js +0 -39
- package/dist/collection/services/api/services/catalog/product-comparison.spec.js +0 -22
- package/dist/collection/services/api/services/components/component-data.spec.js +0 -20
- package/dist/collection/services/api/services/customer/assets.spec.js +0 -25
- package/dist/collection/services/api/services/customer/query.spec.js +0 -25
- package/dist/collection/services/api/services/macd/macd.spec.js +0 -91
- package/dist/collection/services/api/services/operations/operations.spec.js +0 -19
- package/dist/collection/services/api/services/tasks.spec.js +0 -25
- package/dist/collection/services/api/services/translations.spec.js +0 -20
- package/dist/collection/services/products/product-codes.spec.js +0 -11
- package/dist/collection/services/translations/translations.spec.js +0 -30
- package/dist/collection/services/url/build-url-params.spec.js +0 -11
- package/dist/collection/services/url/url.spec.js +0 -16
- package/dist/collection/services/utils/array.spec.js +0 -10
- package/dist/collection/services/utils/debounce.spec.js +0 -19
- package/dist/collection/services/utils/execute-until.spec.js +0 -10
- package/dist/collection/services/utils/inertia-scroll.spec.js +0 -56
- package/dist/collection/services/utils/isFocusableElementOrChild.spec.js +0 -67
- package/dist/collection/services/utils/object.spec.js +0 -84
- package/dist/collection/services/utils/price.spec.js +0 -18
- package/dist/collection/services/utils/random.spec.js +0 -10
- package/dist/collection/services/utils/reactive.spec.js +0 -15
- package/dist/collection/services/utils/size.spec.js +0 -13
- package/dist/collection/services/utils/string.spec.js +0 -9
- package/dist/collection/services/utils/throttle.spec.js +0 -32
- package/dist/collection/services/utils/typecheck.spec.js +0 -49
- package/dist/collection/services/validators/validator-group.spec.js +0 -30
- package/dist/collection/services/validators/validators/e-mail.spec.js +0 -20
- package/dist/collection/services/validators/validators/phone.spec.js +0 -23
- package/dist/collection/services/validators/validators/required.spec.js +0 -16
- package/dist/components/p-8e19c5da.js +0 -857
- package/dist/components/p-e34bf267.js +0 -170
- package/dist/esm/compare-cards-tab-products-filters-f0fa0712.js +0 -97
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/tet-components/p-021268b7.entry.js +0 -1
- package/dist/tet-components/p-02e548d5.entry.js +0 -1
- package/dist/tet-components/p-06bf08a4.entry.js +0 -1
- package/dist/tet-components/p-0738afc0.entry.js +0 -1
- package/dist/tet-components/p-1b797a96.entry.js +0 -1
- package/dist/tet-components/p-1be23b32.entry.js +0 -1
- package/dist/tet-components/p-1e840eca.entry.js +0 -1
- package/dist/tet-components/p-1ec7f341.js +0 -2
- package/dist/tet-components/p-2e870f4d.entry.js +0 -1
- package/dist/tet-components/p-2f029068.entry.js +0 -1
- package/dist/tet-components/p-34ed0dd7.entry.js +0 -1
- package/dist/tet-components/p-3604bf21.entry.js +0 -1
- package/dist/tet-components/p-3d2dc872.entry.js +0 -1
- package/dist/tet-components/p-48bd3f87.entry.js +0 -1
- package/dist/tet-components/p-4e3c6172.entry.js +0 -1
- package/dist/tet-components/p-4e917b52.entry.js +0 -1
- package/dist/tet-components/p-511680d5.entry.js +0 -1
- package/dist/tet-components/p-5d920c98.entry.js +0 -1
- package/dist/tet-components/p-618134c3.entry.js +0 -1
- package/dist/tet-components/p-695cdc78.entry.js +0 -1
- package/dist/tet-components/p-6a5eca28.js +0 -1
- package/dist/tet-components/p-71cbde0c.entry.js +0 -1
- package/dist/tet-components/p-7751035d.entry.js +0 -1
- package/dist/tet-components/p-78014763.entry.js +0 -1
- package/dist/tet-components/p-78a0c398.entry.js +0 -1
- package/dist/tet-components/p-79255c00.entry.js +0 -1
- package/dist/tet-components/p-7a04bcd7.entry.js +0 -1
- package/dist/tet-components/p-805c9ef3.entry.js +0 -1
- package/dist/tet-components/p-88885ba1.entry.js +0 -1
- package/dist/tet-components/p-8a6831bc.entry.js +0 -1
- package/dist/tet-components/p-8c7c6590.entry.js +0 -1
- package/dist/tet-components/p-8c89d1f5.entry.js +0 -1
- package/dist/tet-components/p-8d644f8b.entry.js +0 -1
- package/dist/tet-components/p-9102c6d9.entry.js +0 -1
- package/dist/tet-components/p-977ea27a.entry.js +0 -1
- package/dist/tet-components/p-9a5b8dbc.entry.js +0 -1
- package/dist/tet-components/p-a15d2b6a.entry.js +0 -1
- package/dist/tet-components/p-a549f1dd.entry.js +0 -1
- package/dist/tet-components/p-a8030923.entry.js +0 -1
- package/dist/tet-components/p-aff1e911.entry.js +0 -1
- package/dist/tet-components/p-b0112dde.entry.js +0 -1
- package/dist/tet-components/p-b14b8531.entry.js +0 -1
- package/dist/tet-components/p-b2b384d2.js +0 -1
- package/dist/tet-components/p-bc2e65ab.entry.js +0 -1
- package/dist/tet-components/p-bfa02c13.entry.js +0 -1
- package/dist/tet-components/p-c4a95bbe.entry.js +0 -1
- package/dist/tet-components/p-c4ed060b.entry.js +0 -1
- package/dist/tet-components/p-ca66b4b1.js +0 -1
- package/dist/tet-components/p-cf7d5c84.js +0 -1
- package/dist/tet-components/p-d0d6a340.js +0 -1
- package/dist/tet-components/p-d2919aae.js +0 -1
- package/dist/tet-components/p-d795f9c3.entry.js +0 -1
- package/dist/tet-components/p-dc12dee9.entry.js +0 -1
- package/dist/tet-components/p-dcbe09b5.js +0 -1
- package/dist/tet-components/p-de040767.entry.js +0 -1
- package/dist/tet-components/p-de4c32ee.entry.js +0 -1
- package/dist/tet-components/p-e423fe76.entry.js +0 -1
- package/dist/tet-components/p-e69056de.entry.js +0 -1
- package/dist/tet-components/p-e86164ef.entry.js +0 -1
- package/dist/tet-components/p-eb66d7b2.js +0 -1
- package/dist/tet-components/p-ecbfde88.entry.js +0 -1
- package/dist/tet-components/p-ed4b8bbe.entry.js +0 -1
- package/dist/tet-components/p-eed7244f.entry.js +0 -1
- package/dist/tet-components/p-f48500fd.entry.js +0 -1
- package/dist/tet-components/p-fab4ab39.entry.js +0 -1
- package/dist/tet-components/p-fd4131ad.entry.js +0 -1
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$1 = require('./index-
|
|
6
|
-
const index = require('./index-
|
|
7
|
-
const httpCodes = require('./http-codes-
|
|
8
|
-
const translations = require('./translations-
|
|
5
|
+
const index$1 = require('./index-4daaccaa.js');
|
|
6
|
+
const index = require('./index-f89f05b8.js');
|
|
7
|
+
const httpCodes = require('./http-codes-910040e7.js');
|
|
8
|
+
const translations = require('./translations-62fb6b1c.js');
|
|
9
9
|
const buildFormUrl = require('./build-form-url-323431e4.js');
|
|
10
|
-
const assets = require('./assets-
|
|
11
|
-
const tasks = require('./tasks-
|
|
12
|
-
const phone = require('./phone-
|
|
10
|
+
const assets = require('./assets-d8d3b4a0.js');
|
|
11
|
+
const tasks = require('./tasks-807b08d3.js');
|
|
12
|
+
const phone = require('./phone-ed64bd26.js');
|
|
13
13
|
require('./typecheck-d48810dc.js');
|
|
14
|
-
require('./async-request-
|
|
14
|
+
require('./async-request-5585e750.js');
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Price formatting utility function.
|
|
@@ -35,141 +35,140 @@ const formatPrice = (value, { decimalSeparator = ',', currency = '€' } = {}) =
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
class AddressOffersFilters {
|
|
38
|
+
onFilterSelect;
|
|
39
|
+
availableFilters = [];
|
|
40
|
+
allFilters = [
|
|
41
|
+
{
|
|
42
|
+
id: 'all',
|
|
43
|
+
titleTranslationKey: 'components-address-offers-tag-all',
|
|
44
|
+
active: true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'promotions',
|
|
48
|
+
titleTranslationKey: 'components-address-offers-tag-promotions',
|
|
49
|
+
active: false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'internet',
|
|
53
|
+
titleTranslationKey: 'components-address-offers-tag-internet',
|
|
54
|
+
active: false
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'tet-bundles',
|
|
58
|
+
titleTranslationKey: 'components-address-offers-tag-bundle',
|
|
59
|
+
active: false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'tv',
|
|
63
|
+
titleTranslationKey: 'components-address-offers-tag-tv',
|
|
64
|
+
active: false
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
/**
|
|
68
|
+
* The IDs of the filters that can only be selected on their own, without any other filters being selected at the same time.
|
|
69
|
+
*/
|
|
70
|
+
singleSelectionFilters = ['all', 'promotions'];
|
|
38
71
|
constructor(onFilterSelect) {
|
|
39
72
|
this.onFilterSelect = onFilterSelect;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
const filtersCount = this.calculateFilterCounts(serviceAvailabilityData);
|
|
87
|
-
return (this.allFilters
|
|
88
|
-
// Show filters that have some products and filters without product as disabled.
|
|
89
|
-
.filter(({ id }) => filtersCount[id])
|
|
90
|
-
.map((filter) => ({
|
|
91
|
-
id: filter.id,
|
|
92
|
-
title: filter.titleTranslationKey,
|
|
93
|
-
count: filtersCount[filter.id],
|
|
94
|
-
active: filter.active,
|
|
95
|
-
showIcon: filter.id === 'all' ? false : filter.active,
|
|
96
|
-
clickAction: this.filterClickAction.bind(this, filter)
|
|
97
|
-
})));
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Calculates the number (count) of offers for each filter.
|
|
101
|
-
*
|
|
102
|
-
* @param serviceAvailabilityData
|
|
103
|
-
*/
|
|
104
|
-
this.calculateFilterCounts = ({ structure: structures }) => {
|
|
105
|
-
const filtersCount = {};
|
|
106
|
-
filtersCount['all'] = 0;
|
|
107
|
-
filtersCount['promotions'] = 0;
|
|
108
|
-
structures === null || structures === void 0 ? void 0 : structures.forEach((category) => {
|
|
109
|
-
category.subgroups.forEach(({ tag, products }) => {
|
|
110
|
-
if (!filtersCount[tag]) {
|
|
111
|
-
filtersCount[tag] = 0;
|
|
112
|
-
}
|
|
113
|
-
// Filter out Netflix premium products
|
|
114
|
-
const filteredProducts = products.filter((product) => {
|
|
115
|
-
var _a;
|
|
116
|
-
const isNetflixPremiumProduct = (_a = product.attributes) === null || _a === void 0 ? void 0 : _a.some((attr) => attr.key === 'isNetflixPremiumProduct' && attr.value === true);
|
|
117
|
-
return !isNetflixPremiumProduct; // Exclude Netflix premium products
|
|
118
|
-
});
|
|
119
|
-
filtersCount[tag] += filteredProducts.length;
|
|
120
|
-
filtersCount['all'] += filteredProducts.length;
|
|
121
|
-
const promotionCodeCount = filteredProducts.reduce((sum, product) => {
|
|
122
|
-
var _a;
|
|
123
|
-
if ((_a = product.contractTerms) === null || _a === void 0 ? void 0 : _a.some(({ promotionCode }) => promotionCode)) {
|
|
124
|
-
return sum + 1;
|
|
125
|
-
}
|
|
126
|
-
return sum;
|
|
127
|
-
}, 0);
|
|
128
|
-
filtersCount['promotions'] += promotionCodeCount;
|
|
73
|
+
}
|
|
74
|
+
initialize = (serviceAvailabilityData) => {
|
|
75
|
+
if (serviceAvailabilityData.structure) {
|
|
76
|
+
this.availableFilters = this.resolveFilters(serviceAvailabilityData);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
getAvailableFilters = () => {
|
|
80
|
+
return this.availableFilters;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Returns the filters that should be currently displayed for the given categories and products.
|
|
84
|
+
*
|
|
85
|
+
* @param serviceAvailabilityData
|
|
86
|
+
*/
|
|
87
|
+
resolveFilters = (serviceAvailabilityData) => {
|
|
88
|
+
const filtersCount = this.calculateFilterCounts(serviceAvailabilityData);
|
|
89
|
+
return (this.allFilters
|
|
90
|
+
// Show filters that have some products and filters without product as disabled.
|
|
91
|
+
.filter(({ id }) => filtersCount[id])
|
|
92
|
+
.map((filter) => ({
|
|
93
|
+
id: filter.id,
|
|
94
|
+
title: filter.titleTranslationKey,
|
|
95
|
+
count: filtersCount[filter.id],
|
|
96
|
+
active: filter.active,
|
|
97
|
+
showIcon: filter.id === 'all' ? false : filter.active,
|
|
98
|
+
clickAction: this.filterClickAction.bind(this, filter)
|
|
99
|
+
})));
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Calculates the number (count) of offers for each filter.
|
|
103
|
+
*
|
|
104
|
+
* @param serviceAvailabilityData
|
|
105
|
+
*/
|
|
106
|
+
calculateFilterCounts = ({ structure: structures }) => {
|
|
107
|
+
const filtersCount = {};
|
|
108
|
+
filtersCount['all'] = 0;
|
|
109
|
+
filtersCount['promotions'] = 0;
|
|
110
|
+
structures?.forEach((category) => {
|
|
111
|
+
category.subgroups.forEach(({ tag, products }) => {
|
|
112
|
+
if (!filtersCount[tag]) {
|
|
113
|
+
filtersCount[tag] = 0;
|
|
114
|
+
}
|
|
115
|
+
// Filter out Netflix premium products
|
|
116
|
+
const filteredProducts = products.filter((product) => {
|
|
117
|
+
const isNetflixPremiumProduct = product.attributes?.some((attr) => attr.key === 'isNetflixPremiumProduct' && attr.value === true);
|
|
118
|
+
return !isNetflixPremiumProduct; // Exclude Netflix premium products
|
|
129
119
|
});
|
|
120
|
+
filtersCount[tag] += filteredProducts.length;
|
|
121
|
+
filtersCount['all'] += filteredProducts.length;
|
|
122
|
+
const promotionCodeCount = filteredProducts.reduce((sum, product) => {
|
|
123
|
+
if (product.contractTerms?.some(({ promotionCode }) => promotionCode)) {
|
|
124
|
+
return sum + 1;
|
|
125
|
+
}
|
|
126
|
+
return sum;
|
|
127
|
+
}, 0);
|
|
128
|
+
filtersCount['promotions'] += promotionCodeCount;
|
|
130
129
|
});
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
.forEach((forEachFilter) => { forEachFilter.active = false; forEachFilter.showIcon = false; });
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
//De-select those filters that cannot be included in multiple filter selection.
|
|
167
|
-
this.deSelectSingleSelectionFilters = () => {
|
|
130
|
+
});
|
|
131
|
+
return filtersCount;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* The click action for the filter.
|
|
135
|
+
*
|
|
136
|
+
* @param {TagInterface} filter
|
|
137
|
+
*/
|
|
138
|
+
filterClickAction = (filter) => {
|
|
139
|
+
const availableFilter = this.availableFilters.find(({ id }) => id === filter.id);
|
|
140
|
+
if (availableFilter === undefined) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (this.singleSelectionFilters.includes(availableFilter.id)) {
|
|
144
|
+
this.deSelectAllFilers(availableFilter);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
this.deSelectSingleSelectionFilters();
|
|
148
|
+
}
|
|
149
|
+
availableFilter.active = !availableFilter.active;
|
|
150
|
+
availableFilter.showIcon = availableFilter.id === 'all' ? false : !availableFilter.showIcon;
|
|
151
|
+
// If all filters become de-selected, then automatically select all offers filter.
|
|
152
|
+
if (!this.availableFilters.some(({ active }) => active)) {
|
|
153
|
+
const allSelectedFilters = this.availableFilters.find(({ id }) => id === 'all');
|
|
154
|
+
allSelectedFilters.active = true;
|
|
155
|
+
}
|
|
156
|
+
this.onFilterSelect(this.availableFilters);
|
|
157
|
+
};
|
|
158
|
+
// De-select all filters if all filter tab or not active single selection tab clicked.
|
|
159
|
+
deSelectAllFilers = (availableFilter) => {
|
|
160
|
+
const { id, active } = availableFilter;
|
|
161
|
+
if (id === 'all' || !active) {
|
|
168
162
|
this.availableFilters
|
|
169
|
-
.filter(({ id }) => this.singleSelectionFilters.includes(id))
|
|
170
163
|
.forEach((forEachFilter) => { forEachFilter.active = false; forEachFilter.showIcon = false; });
|
|
171
|
-
}
|
|
172
|
-
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
//De-select those filters that cannot be included in multiple filter selection.
|
|
167
|
+
deSelectSingleSelectionFilters = () => {
|
|
168
|
+
this.availableFilters
|
|
169
|
+
.filter(({ id }) => this.singleSelectionFilters.includes(id))
|
|
170
|
+
.forEach((forEachFilter) => { forEachFilter.active = false; forEachFilter.showIcon = false; });
|
|
171
|
+
};
|
|
173
172
|
}
|
|
174
173
|
|
|
175
174
|
const { state, onChange } = index.createStore({
|
|
@@ -432,76 +431,6 @@ const TetAddressOffers = class {
|
|
|
432
431
|
this.emptyCatalog = index$1.createEvent(this, "emptyCatalog", 7);
|
|
433
432
|
this.catalogChange = index$1.createEvent(this, "catalogChange", 7);
|
|
434
433
|
this.filtersChange = index$1.createEvent(this, "filtersChange", 7);
|
|
435
|
-
/** The translation group key of the component. */
|
|
436
|
-
this.translationsGroup = 'tet-components';
|
|
437
|
-
this.allowedProductsToShowInfo = [
|
|
438
|
-
'PD_TELCO_SUPER',
|
|
439
|
-
'PD_TELCO_SUPER_PACK_A',
|
|
440
|
-
'PD_TELCO_SUPER_PACK_B',
|
|
441
|
-
'PD_TELCO_SUPER_PACK_C',
|
|
442
|
-
'PD_TELCO_SUPER_PACK_D',
|
|
443
|
-
'PD_TELCO_PACKAGE_A',
|
|
444
|
-
'PD_TELCO_PACKAGE_B',
|
|
445
|
-
'PD_TELCO_PACKAGE_C',
|
|
446
|
-
'PD_TELCO_PACKAGE_D',
|
|
447
|
-
'PD_TELCO_NETFLIX_PACKAGE_A_ITV_SUPER',
|
|
448
|
-
'PD_TELCO_HBOMAX_IPTV_PACK_A',
|
|
449
|
-
'PD_TELCO_HBOMAX_IPTV_PACK_B',
|
|
450
|
-
'PD_TELCO_HBOMAX_IPTV_PACK_C',
|
|
451
|
-
'PD_TELCO_NETFLIX_PACKAGE_A_SUPER',
|
|
452
|
-
'PD_TELCO_HBOMAX_OTT_PACK_A_SUPER',
|
|
453
|
-
'PD_TELCO_HBOMAX_OTT_PACK_B_SUPER',
|
|
454
|
-
'PD_TELCO_HBOMAX_OTT_PACK_C_SUPER'
|
|
455
|
-
];
|
|
456
|
-
/**
|
|
457
|
-
* Filters out products that belong to the particular category.
|
|
458
|
-
*
|
|
459
|
-
* @param category
|
|
460
|
-
*/
|
|
461
|
-
this.filterCategoryProducts = (category) => {
|
|
462
|
-
const filteredCodes = this.subcategoryProductFilters[category.key] || [];
|
|
463
|
-
if (filteredCodes.length > 0) {
|
|
464
|
-
return category.products.filter(product => filteredCodes.includes(product.productCode));
|
|
465
|
-
}
|
|
466
|
-
const { activeFilters } = state;
|
|
467
|
-
if (activeFilters.includes('promotions')) {
|
|
468
|
-
return category.products.filter(this.productHasPromotion.bind(this));
|
|
469
|
-
}
|
|
470
|
-
return category.products;
|
|
471
|
-
};
|
|
472
|
-
/**
|
|
473
|
-
* Determines whether the particular category should be rendered.
|
|
474
|
-
*
|
|
475
|
-
* @param category
|
|
476
|
-
*/
|
|
477
|
-
this.showCategory = (category) => {
|
|
478
|
-
var _a, _b;
|
|
479
|
-
if (((_a = category.subgroups) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
480
|
-
return category.subgroups.some(this.showCategory);
|
|
481
|
-
}
|
|
482
|
-
const { activeFilters } = state;
|
|
483
|
-
return ((!category.tag ||
|
|
484
|
-
['all', (_b = category.tag) !== null && _b !== void 0 ? _b : ''].some((tag) => activeFilters.includes(tag)) ||
|
|
485
|
-
(activeFilters.includes('promotions') && this.categoryContainsPromotions(category))) &&
|
|
486
|
-
this.categoryContainsContractTerms(category) &&
|
|
487
|
-
this.filterCategoryProducts(category).length > 0);
|
|
488
|
-
};
|
|
489
|
-
this.renderSubCategoryHeader = ({ displayTitle, name, landingPage, isOneTv }) => {
|
|
490
|
-
const categoryName = this.translateProperty(name);
|
|
491
|
-
const categoryOffersLink = this.translateProperty(landingPage);
|
|
492
|
-
return [
|
|
493
|
-
index$1.h("div", { class: { 'subcategory-title': true, [`subcategory-title--${this.theme}`]: !!this.theme, [this.theme]: true } }, isOneTv && index$1.h("tet-icon", { name: "logo-tet-tv-plus", useDefaultColor: true }), displayTitle && categoryName && index$1.h("h3", { class: { [this.theme]: !!this.theme } }, categoryName)),
|
|
494
|
-
categoryOffersLink && (index$1.h("a", { class: { 'subcategory-offers-link': true, [`subcategory-offers-link--${this.theme}`]: !!this.theme, [this.theme]: true }, href: categoryOffersLink, target: "_blank" }, index$1.h("span", { class: { 'subcategory-offers-link-text': true, [`subcategory-offers-link-text--${this.theme}`]: !!this.theme, [this.theme]: true } }, translations.translate('components-address-offers-view-more-link')), " -->"))
|
|
495
|
-
];
|
|
496
|
-
};
|
|
497
|
-
/**
|
|
498
|
-
* Renders the loader.
|
|
499
|
-
*/
|
|
500
|
-
this.renderLoader = () => {
|
|
501
|
-
return (index$1.h("div", { class: "placeholder" }, [...Array(2)].map(() => {
|
|
502
|
-
return (index$1.h("div", { class: "placeholder-section" }, index$1.h("tet-placeholder", { height: "3em", width: "40%", class: "placeholder-section-title", darkTheme: this.darkMode }), index$1.h("br", null), index$1.h("tet-placeholder", { height: "3em", width: "40%", class: "placeholder-subsection-title", darkTheme: this.darkMode }), index$1.h("br", null), index$1.h("tet-placeholder", { height: "1em", width: "20%", class: "placeholder-subsection-title", darkTheme: this.darkMode }), [...Array(3)].map(() => [index$1.h("br", null), index$1.h("tet-placeholder", { height: "10em", darkTheme: this.darkMode })])));
|
|
503
|
-
})));
|
|
504
|
-
};
|
|
505
434
|
this.addressKey = undefined;
|
|
506
435
|
this.catalog = undefined;
|
|
507
436
|
this.theme = 'light';
|
|
@@ -513,6 +442,40 @@ const TetAddressOffers = class {
|
|
|
513
442
|
this.showLoader = true;
|
|
514
443
|
this.subcategoryProductFilters = {};
|
|
515
444
|
}
|
|
445
|
+
/** The translation group key of the component. */
|
|
446
|
+
translationsGroup = 'tet-components';
|
|
447
|
+
allowedProductsToShowInfo = [
|
|
448
|
+
'PD_TELCO_SUPER',
|
|
449
|
+
'PD_TELCO_SUPER_PACK_A',
|
|
450
|
+
'PD_TELCO_SUPER_PACK_B',
|
|
451
|
+
'PD_TELCO_SUPER_PACK_C',
|
|
452
|
+
'PD_TELCO_SUPER_PACK_D',
|
|
453
|
+
'PD_TELCO_PACKAGE_A',
|
|
454
|
+
'PD_TELCO_PACKAGE_B',
|
|
455
|
+
'PD_TELCO_PACKAGE_C',
|
|
456
|
+
'PD_TELCO_PACKAGE_D',
|
|
457
|
+
'PD_TELCO_NETFLIX_PACKAGE_A_ITV_SUPER',
|
|
458
|
+
'PD_TELCO_HBOMAX_IPTV_PACK_A',
|
|
459
|
+
'PD_TELCO_HBOMAX_IPTV_PACK_B',
|
|
460
|
+
'PD_TELCO_HBOMAX_IPTV_PACK_C',
|
|
461
|
+
'PD_TELCO_NETFLIX_PACKAGE_A_SUPER',
|
|
462
|
+
'PD_TELCO_HBOMAX_OTT_PACK_A_SUPER',
|
|
463
|
+
'PD_TELCO_HBOMAX_OTT_PACK_B_SUPER',
|
|
464
|
+
'PD_TELCO_HBOMAX_OTT_PACK_C_SUPER'
|
|
465
|
+
];
|
|
466
|
+
get element() { return index$1.getElement(this); }
|
|
467
|
+
/**
|
|
468
|
+
* Event that triggers if availability catalog is empty.
|
|
469
|
+
*/
|
|
470
|
+
emptyCatalog;
|
|
471
|
+
/**
|
|
472
|
+
* Event that triggers if availability catalog is loaded or updated.
|
|
473
|
+
*/
|
|
474
|
+
catalogChange;
|
|
475
|
+
/**
|
|
476
|
+
* Event that triggers when active filters have changed.
|
|
477
|
+
*/
|
|
478
|
+
filtersChange;
|
|
516
479
|
/**
|
|
517
480
|
* Loads new data on addressKey change
|
|
518
481
|
*/
|
|
@@ -530,7 +493,10 @@ const TetAddressOffers = class {
|
|
|
530
493
|
* @param event The event containing the filtered product IDs for the particular subcategory.
|
|
531
494
|
*/
|
|
532
495
|
handleFilteredProductsChanged(event) {
|
|
533
|
-
this.subcategoryProductFilters =
|
|
496
|
+
this.subcategoryProductFilters = {
|
|
497
|
+
...this.subcategoryProductFilters,
|
|
498
|
+
[event.detail.subcategoryId]: event.detail.filteredProductIds
|
|
499
|
+
};
|
|
534
500
|
}
|
|
535
501
|
/**
|
|
536
502
|
* Prepares the translations before the component is rendered.
|
|
@@ -584,6 +550,22 @@ const TetAddressOffers = class {
|
|
|
584
550
|
}
|
|
585
551
|
this.showLoader = false;
|
|
586
552
|
}
|
|
553
|
+
/**
|
|
554
|
+
* Filters out products that belong to the particular category.
|
|
555
|
+
*
|
|
556
|
+
* @param category
|
|
557
|
+
*/
|
|
558
|
+
filterCategoryProducts = (category) => {
|
|
559
|
+
const filteredCodes = this.subcategoryProductFilters[category.key] || [];
|
|
560
|
+
if (filteredCodes.length > 0) {
|
|
561
|
+
return category.products.filter(product => filteredCodes.includes(product.productCode));
|
|
562
|
+
}
|
|
563
|
+
const { activeFilters } = state;
|
|
564
|
+
if (activeFilters.includes('promotions')) {
|
|
565
|
+
return category.products.filter(this.productHasPromotion.bind(this));
|
|
566
|
+
}
|
|
567
|
+
return category.products;
|
|
568
|
+
};
|
|
587
569
|
/**
|
|
588
570
|
* Translates property
|
|
589
571
|
*
|
|
@@ -591,15 +573,31 @@ const TetAddressOffers = class {
|
|
|
591
573
|
* @returns {string}
|
|
592
574
|
*/
|
|
593
575
|
translateProperty(property) {
|
|
594
|
-
return
|
|
576
|
+
return property?.[this.language] || '';
|
|
595
577
|
}
|
|
578
|
+
/**
|
|
579
|
+
* Determines whether the particular category should be rendered.
|
|
580
|
+
*
|
|
581
|
+
* @param category
|
|
582
|
+
*/
|
|
583
|
+
showCategory = (category) => {
|
|
584
|
+
if (category.subgroups?.length > 0) {
|
|
585
|
+
return category.subgroups.some(this.showCategory);
|
|
586
|
+
}
|
|
587
|
+
const { activeFilters } = state;
|
|
588
|
+
return ((!category.tag ||
|
|
589
|
+
['all', category.tag ?? ''].some((tag) => activeFilters.includes(tag)) ||
|
|
590
|
+
(activeFilters.includes('promotions') && this.categoryContainsPromotions(category))) &&
|
|
591
|
+
this.categoryContainsContractTerms(category) &&
|
|
592
|
+
this.filterCategoryProducts(category).length > 0);
|
|
593
|
+
};
|
|
596
594
|
/**
|
|
597
595
|
* Determines whether the particular category contains at least one offer that has some promotion applied.
|
|
598
596
|
*
|
|
599
597
|
* @param {StructureModel} category
|
|
600
598
|
*/
|
|
601
599
|
categoryContainsPromotions({ products = [] }) {
|
|
602
|
-
return products
|
|
600
|
+
return products?.some((product) => this.productHasPromotion(product));
|
|
603
601
|
}
|
|
604
602
|
/**
|
|
605
603
|
* Checks if product has promotion
|
|
@@ -607,8 +605,7 @@ const TetAddressOffers = class {
|
|
|
607
605
|
* @returns {boolean}
|
|
608
606
|
*/
|
|
609
607
|
productHasPromotion(product) {
|
|
610
|
-
|
|
611
|
-
return (_a = product === null || product === void 0 ? void 0 : product.contractTerms) === null || _a === void 0 ? void 0 : _a.some(({ promotionCode }) => promotionCode);
|
|
608
|
+
return product?.contractTerms?.some(({ promotionCode }) => promotionCode);
|
|
612
609
|
}
|
|
613
610
|
/**
|
|
614
611
|
* Determines whether the particular category contains at least one product that has contractTerms.
|
|
@@ -617,7 +614,7 @@ const TetAddressOffers = class {
|
|
|
617
614
|
* @returns {boolean}
|
|
618
615
|
*/
|
|
619
616
|
categoryContainsContractTerms({ products = [] }) {
|
|
620
|
-
return products
|
|
617
|
+
return products?.some((product) => this.productHasContractTerms(product));
|
|
621
618
|
}
|
|
622
619
|
/**
|
|
623
620
|
* Cehcks if product has contract terms
|
|
@@ -625,18 +622,15 @@ const TetAddressOffers = class {
|
|
|
625
622
|
* @returns {boolean}
|
|
626
623
|
*/
|
|
627
624
|
productHasContractTerms(product) {
|
|
628
|
-
|
|
629
|
-
return !!((_a = product === null || product === void 0 ? void 0 : product.contractTerms) === null || _a === void 0 ? void 0 : _a.length);
|
|
625
|
+
return !!product?.contractTerms?.length;
|
|
630
626
|
}
|
|
631
627
|
/**
|
|
632
628
|
* Renders top-level categories.
|
|
633
629
|
*/
|
|
634
630
|
renderTopCategories() {
|
|
635
|
-
|
|
636
|
-
return (_b = (_a = state.catalog) === null || _a === void 0 ? void 0 : _a.structure) === null || _b === void 0 ? void 0 : _b.filter(this.showCategory).map((structure) => {
|
|
637
|
-
var _a;
|
|
631
|
+
return state.catalog?.structure?.filter(this.showCategory).map((structure) => {
|
|
638
632
|
const categoryName = this.translateProperty(structure.name);
|
|
639
|
-
return (index$1.h("section", { class: { 'category': true, [`category--${this.theme}`]: !!this.theme, [this.theme]: true } }, categoryName && index$1.h("h2", { class: { 'category-title': true, [`category-title--${this.theme}`]: !!this.theme, [this.theme]: true } }, categoryName), index$1.h("div", { class: { 'category-subcategories': true, [`category-subcategories--${this.theme}`]: !!this.theme, [this.theme]: true } }, this.renderSubCategories(structure.subgroups || [],
|
|
633
|
+
return (index$1.h("section", { class: { 'category': true, [`category--${this.theme}`]: !!this.theme, [this.theme]: true } }, categoryName && index$1.h("h2", { class: { 'category-title': true, [`category-title--${this.theme}`]: !!this.theme, [this.theme]: true } }, categoryName), index$1.h("div", { class: { 'category-subcategories': true, [`category-subcategories--${this.theme}`]: !!this.theme, [this.theme]: true } }, this.renderSubCategories(structure.subgroups || [], state.catalog?.meta))));
|
|
640
634
|
});
|
|
641
635
|
}
|
|
642
636
|
/**
|
|
@@ -652,6 +646,14 @@ const TetAddressOffers = class {
|
|
|
652
646
|
index$1.h("div", { class: "subcategory-filters" }, index$1.h("tet-address-offers-filters-products", { catalog: this.catalog, class: `center`, language: this.language, clearFilterButton: true, subcategoryId: category.key, onFilteredProductsChanged: event => this.handleFilteredProductsChanged(event), category: category, theme: this.theme })), index$1.h("div", { class: "subcategory-products" }, this.filterCategoryProducts(category).map((product) => this.renderProduct(product, category.theme, meta)))));
|
|
653
647
|
});
|
|
654
648
|
}
|
|
649
|
+
renderSubCategoryHeader = ({ displayTitle, name, landingPage, isOneTv }) => {
|
|
650
|
+
const categoryName = this.translateProperty(name);
|
|
651
|
+
const categoryOffersLink = this.translateProperty(landingPage);
|
|
652
|
+
return [
|
|
653
|
+
index$1.h("div", { class: { 'subcategory-title': true, [`subcategory-title--${this.theme}`]: !!this.theme, [this.theme]: true } }, isOneTv && index$1.h("tet-icon", { name: "logo-tet-tv-plus", useDefaultColor: true }), displayTitle && categoryName && index$1.h("h3", { class: { [this.theme]: !!this.theme } }, categoryName)),
|
|
654
|
+
categoryOffersLink && (index$1.h("a", { class: { 'subcategory-offers-link': true, [`subcategory-offers-link--${this.theme}`]: !!this.theme, [this.theme]: true }, href: categoryOffersLink, target: "_blank" }, index$1.h("span", { class: { 'subcategory-offers-link-text': true, [`subcategory-offers-link-text--${this.theme}`]: !!this.theme, [this.theme]: true } }, translations.translate('components-address-offers-view-more-link')), " -->"))
|
|
655
|
+
];
|
|
656
|
+
};
|
|
655
657
|
renderUpsellBlock(name, icons, amount) {
|
|
656
658
|
let icon = icons.find(icon => icon.key === 'sac-offers-light');
|
|
657
659
|
const isDarkTheme = this.theme === 'dark';
|
|
@@ -680,7 +682,6 @@ const TetAddressOffers = class {
|
|
|
680
682
|
* @returns {FunctionalComponent}
|
|
681
683
|
*/
|
|
682
684
|
renderProduct(product, theme = 'light', meta) {
|
|
683
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
684
685
|
if (!this.getContractTerm(product)) {
|
|
685
686
|
return;
|
|
686
687
|
}
|
|
@@ -700,8 +701,8 @@ const TetAddressOffers = class {
|
|
|
700
701
|
const priceTooltip = tp(this.getContractTermProperty(product, 'priceTooltip'));
|
|
701
702
|
const priceDescription = tp(this.getContractTermProperty(product, 'priceDescription'));
|
|
702
703
|
const contract = this.getContractTermProperty(product, 'contract');
|
|
703
|
-
const bestChoice =
|
|
704
|
-
const showMaxSportUpsell =
|
|
704
|
+
const bestChoice = this.getAttribute(product.attributes, 'isBestChoice')?.value ?? false;
|
|
705
|
+
const showMaxSportUpsell = this.getAttribute(product.attributes, 'showMaxSportUpsell')?.value ?? false;
|
|
705
706
|
let upsellBlock = null;
|
|
706
707
|
if (showMaxSportUpsell && Object.keys(meta)[0] === 'hboMaxSport') {
|
|
707
708
|
const upsellProduct = Object.values(meta)[0];
|
|
@@ -716,7 +717,7 @@ const TetAddressOffers = class {
|
|
|
716
717
|
if (contractTerm !== 0) {
|
|
717
718
|
termText = sprintf.sprintf(this.termText, contractTerm);
|
|
718
719
|
}
|
|
719
|
-
if (
|
|
720
|
+
if (this.getAttribute(product.attributes, 'availabilityTermUnlimitedOverride')?.value ?? false) {
|
|
720
721
|
termText = translations.translate('components-indefinite');
|
|
721
722
|
}
|
|
722
723
|
}
|
|
@@ -727,15 +728,15 @@ const TetAddressOffers = class {
|
|
|
727
728
|
benefits = contractTermBenefits;
|
|
728
729
|
}
|
|
729
730
|
}
|
|
730
|
-
const benefitItems = benefits
|
|
731
|
+
const benefitItems = benefits?.split('\n').filter(Boolean);
|
|
731
732
|
let productDescription = null;
|
|
732
|
-
if (
|
|
733
|
+
if (this.getAttribute(product.attributes, 'isNetflixProduct')?.value) {
|
|
733
734
|
productDescription = translations.translate('components-netflix-card-description');
|
|
734
735
|
}
|
|
735
|
-
else if (
|
|
736
|
+
else if (this.getAttribute(product.attributes, 'isNetflixMaxProduct')?.value) {
|
|
736
737
|
productDescription = translations.translate('components-netflix-max-card-description');
|
|
737
738
|
}
|
|
738
|
-
else if (
|
|
739
|
+
else if (this.getAttribute(product.attributes, 'isMaxProduct')?.value) {
|
|
739
740
|
productDescription = translations.translate('components-max-card-description');
|
|
740
741
|
}
|
|
741
742
|
const options = {
|
|
@@ -745,7 +746,7 @@ const TetAddressOffers = class {
|
|
|
745
746
|
infoItemIconName: 'info-circle',
|
|
746
747
|
infoItemTooltipContent: this.getProductInfoItem(product),
|
|
747
748
|
bulletPoints: benefitItems,
|
|
748
|
-
price: formatPrice(promotionPrice
|
|
749
|
+
price: formatPrice(promotionPrice ?? basePrice, { currency: '' }),
|
|
749
750
|
oldPrice: showDiscount ? formatPrice(basePrice, { currency: '' }) : null,
|
|
750
751
|
currency: translations.translate('components-euro-per-month'),
|
|
751
752
|
priceInfoIconName: priceTooltip ? 'info-circle' : null,
|
|
@@ -784,11 +785,10 @@ const TetAddressOffers = class {
|
|
|
784
785
|
* @returns {string}
|
|
785
786
|
*/
|
|
786
787
|
getProductInfoItem(product) {
|
|
787
|
-
|
|
788
|
-
const bundleProducts = (_a = product === null || product === void 0 ? void 0 : product.bundleProducts) === null || _a === void 0 ? void 0 : _a.split(',');
|
|
788
|
+
const bundleProducts = product?.bundleProducts?.split(',');
|
|
789
789
|
// Tet TV+ has the second product code in the `bundleProducts` as the broadband offer code.
|
|
790
790
|
// Tet TV has only one product code in the `bundleProducts` and that is the broadband offer code.
|
|
791
|
-
const broadbandOfferCode =
|
|
791
|
+
const broadbandOfferCode = bundleProducts?.[1] ?? bundleProducts?.[0];
|
|
792
792
|
const broadbandOffer = Object.values(state.catalog.structure[0].products).find((offer) => offer.productCode === broadbandOfferCode);
|
|
793
793
|
if (!this.allowedProductsToShowInfo.includes(product.productCode)) {
|
|
794
794
|
return;
|
|
@@ -798,12 +798,10 @@ const TetAddressOffers = class {
|
|
|
798
798
|
: this.translateProperty(product.technologySpeed.description);
|
|
799
799
|
}
|
|
800
800
|
getContractTermProperty(product, property) {
|
|
801
|
-
|
|
802
|
-
return (_b = (_a = this.getContractTerm(product)) === null || _a === void 0 ? void 0 : _a[property]) !== null && _b !== void 0 ? _b : null;
|
|
801
|
+
return this.getContractTerm(product)?.[property] ?? null;
|
|
803
802
|
}
|
|
804
803
|
getContractTerm(product) {
|
|
805
|
-
|
|
806
|
-
return (_a = product.contractTerms) === null || _a === void 0 ? void 0 : _a.find((contractTerm) => contractTerm.term === ContractTerm.TwentyFourMonth);
|
|
804
|
+
return product.contractTerms?.find((contractTerm) => contractTerm.term === ContractTerm.TwentyFourMonth);
|
|
807
805
|
}
|
|
808
806
|
/**
|
|
809
807
|
* Finds product attribute by key.
|
|
@@ -813,7 +811,7 @@ const TetAddressOffers = class {
|
|
|
813
811
|
* @return ProductAttributeModel
|
|
814
812
|
*/
|
|
815
813
|
getAttribute(productAttributes, key) {
|
|
816
|
-
return productAttributes
|
|
814
|
+
return productAttributes?.find((attributes) => attributes.key === key);
|
|
817
815
|
}
|
|
818
816
|
/**
|
|
819
817
|
* Handles the service application form URL generation for each product.
|
|
@@ -831,7 +829,6 @@ const TetAddressOffers = class {
|
|
|
831
829
|
* @param product
|
|
832
830
|
*/
|
|
833
831
|
getServiceApplicationFormUrl(product) {
|
|
834
|
-
var _a, _b;
|
|
835
832
|
const baseUrl = this.translateProperty(product.formUrl);
|
|
836
833
|
const promotionCode = this.getContractTermProperty(product, 'promotionCode');
|
|
837
834
|
let parameters = {
|
|
@@ -842,16 +839,23 @@ const TetAddressOffers = class {
|
|
|
842
839
|
}
|
|
843
840
|
parameters.addressKey = this.addressKey;
|
|
844
841
|
parameters.product = product.productCode;
|
|
845
|
-
const availabilityFormUrlOverride =
|
|
842
|
+
const availabilityFormUrlOverride = this.getAttribute(product.attributes, 'availabilityFormUrlOverride')?.value ?? '';
|
|
846
843
|
if (availabilityFormUrlOverride) {
|
|
847
844
|
return availabilityFormUrlOverride.toString();
|
|
848
845
|
}
|
|
849
846
|
return buildFormUrl.generateFormUrl(baseUrl, parameters);
|
|
850
847
|
}
|
|
848
|
+
/**
|
|
849
|
+
* Renders the loader.
|
|
850
|
+
*/
|
|
851
|
+
renderLoader = () => {
|
|
852
|
+
return (index$1.h("div", { class: "placeholder" }, [...Array(2)].map(() => {
|
|
853
|
+
return (index$1.h("div", { class: "placeholder-section" }, index$1.h("tet-placeholder", { height: "3em", width: "40%", class: "placeholder-section-title", darkTheme: this.darkMode }), index$1.h("br", null), index$1.h("tet-placeholder", { height: "3em", width: "40%", class: "placeholder-subsection-title", darkTheme: this.darkMode }), index$1.h("br", null), index$1.h("tet-placeholder", { height: "1em", width: "20%", class: "placeholder-subsection-title", darkTheme: this.darkMode }), [...Array(3)].map(() => [index$1.h("br", null), index$1.h("tet-placeholder", { height: "10em", darkTheme: this.darkMode })])));
|
|
854
|
+
})));
|
|
855
|
+
};
|
|
851
856
|
render() {
|
|
852
857
|
return (index$1.h(index$1.Host, { key: '15466862e81fe36fb8f001019c24a71b0f6c881e' }, this.showLoader ? this.renderLoader() : state.catalog && this.renderTopCategories()));
|
|
853
858
|
}
|
|
854
|
-
get element() { return index$1.getElement(this); }
|
|
855
859
|
static get watchers() { return {
|
|
856
860
|
"addressKey": ["onAddressKeyChange"],
|
|
857
861
|
"language": ["onLanguageChanged"]
|
|
@@ -865,23 +869,6 @@ const TetAddressOffersFiltersStyle0 = tetAddressOffersFiltersCss;
|
|
|
865
869
|
const TetAddressOffersFilters = class {
|
|
866
870
|
constructor(hostRef) {
|
|
867
871
|
index$1.registerInstance(this, hostRef);
|
|
868
|
-
/** Render Clear Filter button if defined it should be included. */
|
|
869
|
-
this.renderClearFilterBtn = () => {
|
|
870
|
-
if (!this.clearFilterButton) {
|
|
871
|
-
return null;
|
|
872
|
-
}
|
|
873
|
-
if (state.availableFilters.length > 0) {
|
|
874
|
-
return (index$1.h("button", { class: { 'clear-button': true, [`theme-${this.theme}`]: true }, onClick: () => clearFilters() }, index$1.h("tet-icon", { name: "tc-reload", part: "icon-selected" }), translations.translate('components-address-offers-filters-clear-btn')));
|
|
875
|
-
}
|
|
876
|
-
return null;
|
|
877
|
-
};
|
|
878
|
-
/**
|
|
879
|
-
* Renders loader component
|
|
880
|
-
* @returns {FunctionalComponent}
|
|
881
|
-
*/
|
|
882
|
-
this.renderLoader = () => {
|
|
883
|
-
return (index$1.h("div", { class: "loader" }, Array.from({ length: 4 }).map(() => (index$1.h("tet-placeholder", { height: "2rem", width: "8rem", class: "tag-placeholder", darkTheme: this.theme === 'dark' })))));
|
|
884
|
-
};
|
|
885
872
|
this.language = 'lv';
|
|
886
873
|
this.clearFilterButton = false;
|
|
887
874
|
this.theme = 'light';
|
|
@@ -899,6 +886,23 @@ const TetAddressOffersFilters = class {
|
|
|
899
886
|
componentWillLoad() {
|
|
900
887
|
translations.processTranslations('tet-components', this.language).then(() => index$1.forceUpdate(this));
|
|
901
888
|
}
|
|
889
|
+
/** Render Clear Filter button if defined it should be included. */
|
|
890
|
+
renderClearFilterBtn = () => {
|
|
891
|
+
if (!this.clearFilterButton) {
|
|
892
|
+
return null;
|
|
893
|
+
}
|
|
894
|
+
if (state.availableFilters.length > 0) {
|
|
895
|
+
return (index$1.h("button", { class: { 'clear-button': true, [`theme-${this.theme}`]: true }, onClick: () => clearFilters() }, index$1.h("tet-icon", { name: "tc-reload", part: "icon-selected" }), translations.translate('components-address-offers-filters-clear-btn')));
|
|
896
|
+
}
|
|
897
|
+
return null;
|
|
898
|
+
};
|
|
899
|
+
/**
|
|
900
|
+
* Renders loader component
|
|
901
|
+
* @returns {FunctionalComponent}
|
|
902
|
+
*/
|
|
903
|
+
renderLoader = () => {
|
|
904
|
+
return (index$1.h("div", { class: "loader" }, Array.from({ length: 4 }).map(() => (index$1.h("tet-placeholder", { height: "2rem", width: "8rem", class: "tag-placeholder", darkTheme: this.theme === 'dark' })))));
|
|
905
|
+
};
|
|
902
906
|
/**
|
|
903
907
|
* Renders component
|
|
904
908
|
* @returns {FunctionalComponent}
|
|
@@ -921,18 +925,6 @@ const TetAssetAvailabilityAddresses = class {
|
|
|
921
925
|
this.assetAddressSelected = index$1.createEvent(this, "assetAddressSelected", 7);
|
|
922
926
|
this.addressesUpdated = index$1.createEvent(this, "addressesUpdated", 7);
|
|
923
927
|
this.customerNotFound = index$1.createEvent(this, "customerNotFound", 7);
|
|
924
|
-
/**
|
|
925
|
-
* The object for storing memoized asset data to avoid request duplication.
|
|
926
|
-
*/
|
|
927
|
-
this.memoizedAddresses = {};
|
|
928
|
-
/**
|
|
929
|
-
* Address selection handler.
|
|
930
|
-
*
|
|
931
|
-
* @param event
|
|
932
|
-
*/
|
|
933
|
-
this.selectAssetAddress = (event) => {
|
|
934
|
-
this.assetAddressSelected.emit(event.detail);
|
|
935
|
-
};
|
|
936
928
|
this.accessToken = undefined;
|
|
937
929
|
this.pid = undefined;
|
|
938
930
|
this.salesforceAccountId = undefined;
|
|
@@ -943,6 +935,10 @@ const TetAssetAvailabilityAddresses = class {
|
|
|
943
935
|
this.lastAddedKey = '';
|
|
944
936
|
this.showLoader = true;
|
|
945
937
|
}
|
|
938
|
+
/**
|
|
939
|
+
* The element of the selection list component.
|
|
940
|
+
*/
|
|
941
|
+
selectionListElement;
|
|
946
942
|
/**
|
|
947
943
|
* Watch for pid change to load addresses for given user.
|
|
948
944
|
*/
|
|
@@ -962,6 +958,22 @@ const TetAssetAvailabilityAddresses = class {
|
|
|
962
958
|
onAddressesChange(value) {
|
|
963
959
|
this.addressesUpdated.emit(value);
|
|
964
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* The event that is emitted when user selects an address from the lsit.
|
|
963
|
+
*/
|
|
964
|
+
assetAddressSelected;
|
|
965
|
+
/**
|
|
966
|
+
* The event that is emitted whenever addresses change.
|
|
967
|
+
*/
|
|
968
|
+
addressesUpdated;
|
|
969
|
+
/**
|
|
970
|
+
* The event that is emitted when no Salesforce customer is found for the given PID.
|
|
971
|
+
*/
|
|
972
|
+
customerNotFound;
|
|
973
|
+
/**
|
|
974
|
+
* The object for storing memoized asset data to avoid request duplication.
|
|
975
|
+
*/
|
|
976
|
+
memoizedAddresses = {};
|
|
965
977
|
componentWillLoad() {
|
|
966
978
|
return this.loadAddresses();
|
|
967
979
|
}
|
|
@@ -969,14 +981,13 @@ const TetAssetAvailabilityAddresses = class {
|
|
|
969
981
|
* Load available customer addresses.
|
|
970
982
|
*/
|
|
971
983
|
async loadAddresses() {
|
|
972
|
-
var _a;
|
|
973
984
|
const memoizationKey = this.salesforceAccountId || this.pid;
|
|
974
985
|
if (memoizationKey in this.memoizedAddresses) {
|
|
975
986
|
this.addresses = this.memoizedAddresses[memoizationKey];
|
|
976
987
|
return;
|
|
977
988
|
}
|
|
978
989
|
this.showLoader = true;
|
|
979
|
-
const salesforceCustomerId = this.salesforceAccountId || (
|
|
990
|
+
const salesforceCustomerId = this.salesforceAccountId || (await assets.queryCustomer(this.pid, this.accessToken))?.salesforceAccountId;
|
|
980
991
|
if (salesforceCustomerId) {
|
|
981
992
|
const assets$1 = await assets.customerAssets(salesforceCustomerId, this.accessToken);
|
|
982
993
|
this.addresses = this.getUniqueAddresses(assets$1);
|
|
@@ -1007,6 +1018,14 @@ const TetAssetAvailabilityAddresses = class {
|
|
|
1007
1018
|
}, []);
|
|
1008
1019
|
}
|
|
1009
1020
|
;
|
|
1021
|
+
/**
|
|
1022
|
+
* Address selection handler.
|
|
1023
|
+
*
|
|
1024
|
+
* @param event
|
|
1025
|
+
*/
|
|
1026
|
+
selectAssetAddress = (event) => {
|
|
1027
|
+
this.assetAddressSelected.emit(event.detail);
|
|
1028
|
+
};
|
|
1010
1029
|
/**
|
|
1011
1030
|
* Method to trigger unselect functionality for the
|
|
1012
1031
|
* selection list component.
|
|
@@ -1061,48 +1080,6 @@ const TetAvailabilityContactForm = class {
|
|
|
1061
1080
|
index$1.registerInstance(this, hostRef);
|
|
1062
1081
|
this.taskCreationSuccess = index$1.createEvent(this, "taskCreationSuccess", 7);
|
|
1063
1082
|
this.taskCreationFailed = index$1.createEvent(this, "taskCreationFailed", 7);
|
|
1064
|
-
/** The list of validators to apply to the input field. */
|
|
1065
|
-
this.validators = [
|
|
1066
|
-
new phone.PhoneNumberValidator('components-validation-incorrect-phone'),
|
|
1067
|
-
new phone.RequiredValidator('components-validation-required')
|
|
1068
|
-
];
|
|
1069
|
-
/**
|
|
1070
|
-
* Method to close dialog element.
|
|
1071
|
-
*/
|
|
1072
|
-
this.closeDialogElement = async () => {
|
|
1073
|
-
await this.dialogElement.close();
|
|
1074
|
-
};
|
|
1075
|
-
/**
|
|
1076
|
-
* Method to open dialog element.
|
|
1077
|
-
*/
|
|
1078
|
-
this.openDialogElement = async () => {
|
|
1079
|
-
await this.dialogElement.open();
|
|
1080
|
-
};
|
|
1081
|
-
/**
|
|
1082
|
-
* Method to create task for call center.
|
|
1083
|
-
*/
|
|
1084
|
-
this.createManualTask = async () => {
|
|
1085
|
-
this.showLoader = true;
|
|
1086
|
-
const phoneInputElement = await this.phoneInput.getInputHtmlElement();
|
|
1087
|
-
const errors = await this.phoneInput.validateInput();
|
|
1088
|
-
if (errors.length) {
|
|
1089
|
-
this.showLoader = false;
|
|
1090
|
-
return;
|
|
1091
|
-
}
|
|
1092
|
-
try {
|
|
1093
|
-
const data = await tasks.createCallCenterTask(this.getTaskOptions(phoneInputElement.value));
|
|
1094
|
-
if (data && data.TaskId) {
|
|
1095
|
-
this.taskCreationSuccess.emit(data.TaskId);
|
|
1096
|
-
}
|
|
1097
|
-
else {
|
|
1098
|
-
this.taskCreationFailed.emit();
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
catch (error) {
|
|
1102
|
-
this.taskCreationFailed.emit(error);
|
|
1103
|
-
}
|
|
1104
|
-
this.showLoader = false;
|
|
1105
|
-
};
|
|
1106
1083
|
this.showLoader = false;
|
|
1107
1084
|
this.language = 'lv';
|
|
1108
1085
|
this.taskOptions = undefined;
|
|
@@ -1115,6 +1092,15 @@ const TetAvailabilityContactForm = class {
|
|
|
1115
1092
|
this.showAvailabilityContactForm = false;
|
|
1116
1093
|
this.subtitle = 'components-contact-form-subtitle';
|
|
1117
1094
|
}
|
|
1095
|
+
/** The input component. */
|
|
1096
|
+
phoneInput;
|
|
1097
|
+
/** The dialog component. */
|
|
1098
|
+
dialogElement;
|
|
1099
|
+
/** The list of validators to apply to the input field. */
|
|
1100
|
+
validators = [
|
|
1101
|
+
new phone.PhoneNumberValidator('components-validation-incorrect-phone'),
|
|
1102
|
+
new phone.RequiredValidator('components-validation-required')
|
|
1103
|
+
];
|
|
1118
1104
|
/**
|
|
1119
1105
|
* The watch to update translations.
|
|
1120
1106
|
* @param language
|
|
@@ -1122,6 +1108,10 @@ const TetAvailabilityContactForm = class {
|
|
|
1122
1108
|
onLanguageChange(language) {
|
|
1123
1109
|
translations.processTranslations('tet-components', language).then(() => index$1.forceUpdate(this));
|
|
1124
1110
|
}
|
|
1111
|
+
/** The event emitted if the task creation was successful. */
|
|
1112
|
+
taskCreationSuccess;
|
|
1113
|
+
/** The event emitted if the task creation failed. */
|
|
1114
|
+
taskCreationFailed;
|
|
1125
1115
|
/**
|
|
1126
1116
|
* Listen for task creation success event.
|
|
1127
1117
|
* @param event
|
|
@@ -1144,6 +1134,43 @@ const TetAvailabilityContactForm = class {
|
|
|
1144
1134
|
await translations.processTranslations('tet-components', this.language);
|
|
1145
1135
|
index$1.forceUpdate(this);
|
|
1146
1136
|
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Method to close dialog element.
|
|
1139
|
+
*/
|
|
1140
|
+
closeDialogElement = async () => {
|
|
1141
|
+
await this.dialogElement.close();
|
|
1142
|
+
};
|
|
1143
|
+
/**
|
|
1144
|
+
* Method to open dialog element.
|
|
1145
|
+
*/
|
|
1146
|
+
openDialogElement = async () => {
|
|
1147
|
+
await this.dialogElement.open();
|
|
1148
|
+
};
|
|
1149
|
+
/**
|
|
1150
|
+
* Method to create task for call center.
|
|
1151
|
+
*/
|
|
1152
|
+
createManualTask = async () => {
|
|
1153
|
+
this.showLoader = true;
|
|
1154
|
+
const phoneInputElement = await this.phoneInput.getInputHtmlElement();
|
|
1155
|
+
const errors = await this.phoneInput.validateInput();
|
|
1156
|
+
if (errors.length) {
|
|
1157
|
+
this.showLoader = false;
|
|
1158
|
+
return;
|
|
1159
|
+
}
|
|
1160
|
+
try {
|
|
1161
|
+
const data = await tasks.createCallCenterTask(this.getTaskOptions(phoneInputElement.value));
|
|
1162
|
+
if (data && data.TaskId) {
|
|
1163
|
+
this.taskCreationSuccess.emit(data.TaskId);
|
|
1164
|
+
}
|
|
1165
|
+
else {
|
|
1166
|
+
this.taskCreationFailed.emit();
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
catch (error) {
|
|
1170
|
+
this.taskCreationFailed.emit(error);
|
|
1171
|
+
}
|
|
1172
|
+
this.showLoader = false;
|
|
1173
|
+
};
|
|
1147
1174
|
/**
|
|
1148
1175
|
* Appends the submitted phone number to the task description and returns the options.
|
|
1149
1176
|
*
|
|
@@ -1151,7 +1178,10 @@ const TetAvailabilityContactForm = class {
|
|
|
1151
1178
|
*/
|
|
1152
1179
|
getTaskOptions(phoneNumber) {
|
|
1153
1180
|
const { taskDescription } = this.taskOptions;
|
|
1154
|
-
return
|
|
1181
|
+
return {
|
|
1182
|
+
...this.taskOptions,
|
|
1183
|
+
taskDescription: [taskDescription.trim(), `Phone: ${phoneNumber}`].join(' ')
|
|
1184
|
+
};
|
|
1155
1185
|
}
|
|
1156
1186
|
;
|
|
1157
1187
|
/**
|