@tet/tet-components 1.4.138-testing → 1.4.139-staging
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{http-codes-C-IXSZGG.js → http-codes-M3UINy7t.js} +1 -1
- package/dist/cjs/{index-DKg1QTRW.js → index-BGnwL8G_.js} +5 -5
- package/dist/cjs/{index-Bo0hF6YQ.js → index-CabrFqSe.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{product-comparison-f-u42TDe.js → product-comparison-1cTUG5Si.js} +1 -1
- package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +3 -3
- package/dist/cjs/tet-address-offers_5.cjs.entry.js +4 -4
- package/dist/cjs/tet-assembler.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +3 -3
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +4 -4
- package/dist/cjs/tet-banner-nav.cjs.entry.js +3 -3
- package/dist/cjs/tet-bar-graph.cjs.entry.js +1 -1
- package/dist/cjs/tet-border-radius.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-business-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-button.cjs.entry.js +1 -1
- package/dist/cjs/tet-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-carousel.cjs.entry.js +3 -3
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +1 -1
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +3 -3
- package/dist/cjs/tet-colors.cjs.entry.js +1 -1
- package/dist/cjs/tet-compare-card-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-card-v3.cjs.entry.js +46 -9
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-components.cjs.js +2 -2
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-countdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +1 -1
- package/dist/cjs/tet-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/tet-feedback-form.cjs.entry.js +3 -3
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +1 -1
- package/dist/cjs/tet-fonts.cjs.entry.js +1 -1
- package/dist/cjs/tet-grid.cjs.entry.js +1 -1
- package/dist/cjs/tet-icon.cjs.entry.js +2 -2
- package/dist/cjs/tet-inline-message.cjs.entry.js +1 -1
- package/dist/cjs/tet-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-layout.cjs.entry.js +1 -1
- package/dist/cjs/tet-link-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-link.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu.cjs.entry.js +1 -1
- package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +3 -3
- package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-notification.cjs.entry.js +1 -1
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio-blocks.cjs.entry.js +28 -21
- package/dist/cjs/tet-radio_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-group.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card.cjs.entry.js +3 -3
- package/dist/cjs/tet-spacing.cjs.entry.js +1 -1
- package/dist/cjs/tet-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-input.cjs.entry.js +3 -3
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-sticky-offer.cjs.entry.js +1 -1
- package/dist/cjs/tet-support-search.cjs.entry.js +1 -1
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-text.cjs.entry.js +1 -1
- package/dist/cjs/tet-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/{translations-f2lO6WcB.js → translations-MNaGVsId.js} +1 -1
- package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.css +1 -1
- package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.js +65 -6
- package/dist/collection/components/basic/buttons/tet-radio-blocks/tet-radio-blocks.css +75 -42
- package/dist/collection/components/basic/buttons/tet-radio-blocks/tet-radio-blocks.js +35 -26
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CIMNJ4X2.js → p-B36OnKxA.js} +1 -1
- package/dist/components/{p-BLY0RO0L.js → p-B5gZt66l.js} +1 -1
- package/dist/components/{p-DePtMqzY.js → p-B8FP4SAH.js} +1 -1
- package/dist/components/{p-P_J147mb.js → p-BCS3Q4O-.js} +1 -1
- package/dist/components/{p-cnUvPtFj.js → p-BFRbl437.js} +1 -1
- package/dist/components/{p-BgpTlgXX.js → p-BJyEjHQx.js} +1 -1
- package/dist/components/{p-DKavMVSi.js → p-BKPQnaRw.js} +1 -1
- package/dist/components/{p-Cwu8jtXG.js → p-BKT3j81W.js} +1 -1
- package/dist/components/{p-KBNSpMwX.js → p-BMd3uvm2.js} +1 -1
- package/dist/components/{p-Be5i4YJ4.js → p-BXDq6r9O.js} +1 -1
- package/dist/components/{p-CIPUn8d2.js → p-BtQDYhdb.js} +1 -1
- package/dist/components/{p-DgcBdohb.js → p-BtSNSrDr.js} +1 -1
- package/dist/components/{p-Bdt0k-v8.js → p-BvciW7tt.js} +1 -1
- package/dist/components/{p-DHOPNeBR.js → p-C2Vn0VjX.js} +1 -1
- package/dist/components/{p-DcqGjbQO.js → p-CDm2kZUj.js} +1 -1
- package/dist/components/{p-Cfy46lS6.js → p-CO0VSTHD.js} +1 -1
- package/dist/components/p-COSlMg29.js +1 -0
- package/dist/components/{p-c36Z0_hK.js → p-CP-a_UPI.js} +1 -1
- package/dist/components/{p-D9qys4GX.js → p-CPB6HceB.js} +1 -1
- package/dist/components/{p-Dzb-TXLO.js → p-CRJmHkRm.js} +1 -1
- package/dist/components/{p-1M2reaCU.js → p-CVKvk6QH.js} +1 -1
- package/dist/components/{p-B8ElCfnM.js → p-CYfNgSDa.js} +1 -1
- package/dist/components/{p-CFDvtl5l.js → p-CfmV2Jgh.js} +1 -1
- package/dist/components/{p-nb3MHK7A.js → p-ChxhsA_J.js} +1 -1
- package/dist/components/{p-9ItXFJZ6.js → p-ClZGNJ8K.js} +1 -1
- package/dist/components/{p-CjOuXGOS.js → p-CrSRJXyV.js} +1 -1
- package/dist/components/{p-BsNlQtYx.js → p-CwSl5E57.js} +1 -1
- package/dist/components/{p-DJQWSjRR.js → p-D7yVtwIG.js} +1 -1
- package/dist/components/{p-zkmKLYHg.js → p-DDjtysF3.js} +1 -1
- package/dist/components/{p-B_RQCK28.js → p-DF_X_yCR.js} +1 -1
- package/dist/components/{p-BZ9cVPPC.js → p-DMha5T5b.js} +1 -1
- package/dist/components/{p-CMbAQKoe.js → p-DULF82L1.js} +1 -1
- package/dist/components/{p-B4MTqXan.js → p-DWm7jq2J.js} +1 -1
- package/dist/components/{p-DH1iZWF5.js → p-D_0fYn3l.js} +1 -1
- package/dist/components/{p-ClWTLrk_.js → p-Df7zWrR3.js} +1 -1
- package/dist/components/{p-BBMx2Nbt.js → p-DftHVfCt.js} +1 -1
- package/dist/components/{p-ChbxhvnA.js → p-DvUWnsVA.js} +1 -1
- package/dist/components/{p-lmIrgmgo.js → p-Dy5X-F_i.js} +1 -1
- package/dist/components/{p-Do_1srPW.js → p-DyW5hKus.js} +1 -1
- package/dist/components/{p-BOavyx-7.js → p-Jr4xP8U0.js} +1 -1
- package/dist/components/{p-DeFz-G5N.js → p-JxsG9Eqn.js} +1 -1
- package/dist/components/{p-CQfy7CVi.js → p-STr2Oh_2.js} +1 -1
- package/dist/components/{p-DQaNW2BX.js → p-TrvYXEJ_.js} +1 -1
- package/dist/components/{p-Bq1skzzY.js → p-Vo_9U06w.js} +1 -1
- package/dist/components/{p-BZ0uDmYr.js → p-YbtFFhcU.js} +1 -1
- package/dist/components/{p-DRJ0zjoF.js → p-cb20nj-c.js} +1 -1
- package/dist/components/{p-tQ4vjHQ1.js → p-nZe5s9iw.js} +1 -1
- package/dist/components/{p-CT-Ge0pF.js → p-nfGM0aGC.js} +1 -1
- package/dist/components/{p-4OtGLxTM.js → p-ro9Xo95n.js} +1 -1
- package/dist/components/{p-BWmFtcLN.js → p-v3jmLiwp.js} +1 -1
- package/dist/components/{p-Dvk7syez.js → p-vTo56FQh.js} +1 -1
- package/dist/components/{p-Clw2OLNj.js → p-x60Po9AL.js} +1 -1
- package/dist/components/tet-accordion.js +1 -1
- package/dist/components/tet-address-offers-filters-products.js +1 -1
- package/dist/components/tet-address-offers-filters.js +1 -1
- package/dist/components/tet-address-offers-view.js +1 -1
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-assembler.js +1 -1
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +1 -1
- package/dist/components/tet-autocomplete.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-check-out-form.js +1 -1
- package/dist/components/tet-b2b-compare-card.js +1 -1
- package/dist/components/tet-b2b-configurator-cart.js +1 -1
- package/dist/components/tet-b2b-configurator.js +1 -1
- package/dist/components/tet-banner-nav.js +1 -1
- package/dist/components/tet-bar-graph.js +1 -1
- package/dist/components/tet-border-radius.js +1 -1
- package/dist/components/tet-business-card.js +1 -1
- package/dist/components/tet-business-compare-card.js +1 -1
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +1 -1
- package/dist/components/tet-business-summary-card.js +1 -1
- package/dist/components/tet-button.js +1 -1
- package/dist/components/tet-card-list.js +1 -1
- package/dist/components/tet-carousel.js +1 -1
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +1 -1
- package/dist/components/tet-cloud-configurator.js +1 -1
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.js +1 -1
- package/dist/components/tet-compare-card-v3.js +1 -1
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +1 -1
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-container.js +1 -1
- package/dist/components/tet-countdown.js +1 -1
- package/dist/components/tet-counter.js +1 -1
- package/dist/components/tet-datepicker-header.js +1 -1
- package/dist/components/tet-datepicker-month-view.js +1 -1
- package/dist/components/tet-datepicker-multi-year-view.js +1 -1
- package/dist/components/tet-datepicker-year-view.js +1 -1
- package/dist/components/tet-datepicker.js +1 -1
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +1 -1
- package/dist/components/tet-divider.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +1 -1
- package/dist/components/tet-expandable-input.js +1 -1
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-feedback-form.js +1 -1
- package/dist/components/tet-filter.js +1 -1
- package/dist/components/tet-floating-block.js +1 -1
- package/dist/components/tet-font-weight.js +1 -1
- package/dist/components/tet-fonts.js +1 -1
- package/dist/components/tet-grid.js +1 -1
- package/dist/components/tet-icon.js +1 -1
- package/dist/components/tet-inline-message.js +1 -1
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link-card-list.js +1 -1
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-menu-mobile.js +1 -1
- package/dist/components/tet-menu.js +1 -1
- package/dist/components/tet-mini-compare-card.js +1 -1
- package/dist/components/tet-multi-step-dialog.js +1 -1
- package/dist/components/tet-navigation-mobile.js +1 -1
- package/dist/components/tet-news-card-list.js +1 -1
- package/dist/components/tet-notification.js +1 -1
- package/dist/components/tet-number-input.js +1 -1
- package/dist/components/tet-placeholder.js +1 -1
- package/dist/components/tet-position.js +1 -1
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio-blocks.js +1 -1
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-round-stepper.js +1 -1
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-group.js +1 -1
- package/dist/components/tet-snicker-card.js +1 -1
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-sticky-offer.js +1 -1
- package/dist/components/tet-support-search.js +1 -1
- package/dist/components/tet-switch.js +1 -1
- package/dist/components/tet-tab-content.js +1 -1
- package/dist/components/tet-tab-header.js +1 -1
- package/dist/components/tet-table.js +1 -1
- package/dist/components/tet-tag-group.js +1 -1
- package/dist/components/tet-tag.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/components/tet-text.js +1 -1
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v3.js +1 -1
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/esm/{http-codes-DchfPj1v.js → http-codes-CMh_eKUC.js} +1 -1
- package/dist/esm/{index-DfBhGuuz.js → index-DScKyiML.js} +1 -1
- package/dist/esm/{index-ClX9TYQY.js → index-st4TD55I.js} +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{product-comparison-DJko3TwF.js → product-comparison-BHzU1-QK.js} +1 -1
- package/dist/esm/tet-accordion.entry.js +1 -1
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +3 -3
- package/dist/esm/tet-address-offers-view.entry.js +3 -3
- package/dist/esm/tet-address-offers_5.entry.js +4 -4
- package/dist/esm/tet-assembler.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
- package/dist/esm/tet-autocomplete_2.entry.js +1 -1
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +3 -3
- package/dist/esm/tet-b2b-configurator.entry.js +4 -4
- package/dist/esm/tet-banner-nav.entry.js +3 -3
- package/dist/esm/tet-bar-graph.entry.js +1 -1
- package/dist/esm/tet-border-radius.entry.js +1 -1
- package/dist/esm/tet-business-card.entry.js +1 -1
- package/dist/esm/tet-business-compare-card.entry.js +1 -1
- package/dist/esm/tet-business-round-stepper.entry.js +1 -1
- package/dist/esm/tet-button.entry.js +1 -1
- package/dist/esm/tet-card-list.entry.js +1 -1
- package/dist/esm/tet-carousel.entry.js +3 -3
- package/dist/esm/tet-checkbox_3.entry.js +1 -1
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +3 -3
- package/dist/esm/tet-cloud-configurator.entry.js +3 -3
- package/dist/esm/tet-colors.entry.js +1 -1
- package/dist/esm/tet-compare-card-v2.entry.js +3 -3
- package/dist/esm/tet-compare-card-v3.entry.js +46 -9
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +3 -3
- package/dist/esm/tet-components.js +3 -3
- package/dist/esm/tet-container_2.entry.js +1 -1
- package/dist/esm/tet-countdown.entry.js +1 -1
- package/dist/esm/tet-counter.entry.js +1 -1
- package/dist/esm/tet-datepicker-header_4.entry.js +1 -1
- package/dist/esm/tet-datepicker.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +3 -3
- package/dist/esm/tet-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- package/dist/esm/tet-dynamic-card.entry.js +1 -1
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +1 -1
- package/dist/esm/tet-feedback-form.entry.js +3 -3
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-floating-block.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +1 -1
- package/dist/esm/tet-fonts.entry.js +1 -1
- package/dist/esm/tet-grid.entry.js +1 -1
- package/dist/esm/tet-icon.entry.js +2 -2
- package/dist/esm/tet-inline-message.entry.js +1 -1
- package/dist/esm/tet-input.entry.js +3 -3
- package/dist/esm/tet-layout.entry.js +1 -1
- package/dist/esm/tet-link-card-list.entry.js +1 -1
- package/dist/esm/tet-link.entry.js +1 -1
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-mini-compare-card.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
- package/dist/esm/tet-navigation-mobile.entry.js +3 -3
- package/dist/esm/tet-news-card-list.entry.js +1 -1
- package/dist/esm/tet-notification.entry.js +1 -1
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-placeholder.entry.js +1 -1
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio-blocks.entry.js +28 -21
- package/dist/esm/tet-radio_2.entry.js +1 -1
- package/dist/esm/tet-range-slider.entry.js +1 -1
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-snicker-card-group.entry.js +1 -1
- package/dist/esm/tet-snicker-card.entry.js +3 -3
- package/dist/esm/tet-spacing.entry.js +1 -1
- package/dist/esm/tet-spinner.entry.js +1 -1
- package/dist/esm/tet-stepper-input.entry.js +3 -3
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-sticky-offer.entry.js +1 -1
- package/dist/esm/tet-support-search.entry.js +1 -1
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +3 -3
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/esm/tet-text.entry.js +1 -1
- package/dist/esm/tet-textarea.entry.js +1 -1
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/{translations-4zQUcigP.js → translations-CkBHYZxq.js} +1 -1
- package/dist/tet-components/{p-53b4947e.entry.js → p-016d6dd4.entry.js} +1 -1
- package/dist/tet-components/{p-f5315eaf.entry.js → p-041f46b1.entry.js} +1 -1
- package/dist/tet-components/{p-29948163.entry.js → p-104a465c.entry.js} +1 -1
- package/dist/tet-components/{p-517168f6.entry.js → p-1095d7d6.entry.js} +1 -1
- package/dist/tet-components/{p-eb3a8119.entry.js → p-11363389.entry.js} +1 -1
- package/dist/tet-components/{p-a2a4917a.entry.js → p-129762b3.entry.js} +1 -1
- package/dist/tet-components/{p-79e4a166.entry.js → p-1633a0b1.entry.js} +1 -1
- package/dist/tet-components/{p-43d1f956.entry.js → p-1c627ac0.entry.js} +1 -1
- package/dist/tet-components/{p-eca2fc2f.entry.js → p-259dfc83.entry.js} +1 -1
- package/dist/tet-components/{p-tf8lKgfD.js → p-2BDVUFcI.js} +1 -1
- package/dist/tet-components/{p-26dd3cb0.entry.js → p-3204266c.entry.js} +1 -1
- package/dist/tet-components/p-371e754f.entry.js +1 -0
- package/dist/tet-components/{p-B8Zjo2sa.js → p-3AR12uVQ.js} +1 -1
- package/dist/tet-components/{p-b4c45d6b.entry.js → p-3d981a11.entry.js} +1 -1
- package/dist/tet-components/{p-4aa2dbc8.entry.js → p-4051e024.entry.js} +1 -1
- package/dist/tet-components/{p-19343cc6.entry.js → p-42346043.entry.js} +1 -1
- package/dist/tet-components/{p-1d997c7d.entry.js → p-47c15f9c.entry.js} +1 -1
- package/dist/tet-components/{p-d2db496b.entry.js → p-4b7c2be5.entry.js} +1 -1
- package/dist/tet-components/{p-3ab52911.entry.js → p-4bd72575.entry.js} +1 -1
- package/dist/tet-components/{p-10e789d9.entry.js → p-4e65a282.entry.js} +1 -1
- package/dist/tet-components/{p-4a22c9a8.entry.js → p-50c5e01e.entry.js} +1 -1
- package/dist/tet-components/{p-21a59a4f.entry.js → p-52c129e9.entry.js} +1 -1
- package/dist/tet-components/{p-77ae360e.entry.js → p-537faa1c.entry.js} +1 -1
- package/dist/tet-components/{p-b5efc6d4.entry.js → p-54c98af8.entry.js} +1 -1
- package/dist/tet-components/{p-7105253e.entry.js → p-631721d5.entry.js} +1 -1
- package/dist/tet-components/{p-7fdd634a.entry.js → p-648fe9fe.entry.js} +1 -1
- package/dist/tet-components/{p-d88d8689.entry.js → p-668c2484.entry.js} +1 -1
- package/dist/tet-components/{p-9ab737dd.entry.js → p-6a2ed4f0.entry.js} +1 -1
- package/dist/tet-components/{p-47b6721e.entry.js → p-6b27edab.entry.js} +1 -1
- package/dist/tet-components/{p-b8c0433c.entry.js → p-6d7506fe.entry.js} +1 -1
- package/dist/tet-components/{p-98ae4292.entry.js → p-6f09c992.entry.js} +1 -1
- package/dist/tet-components/{p-f79c8697.entry.js → p-6fc08d81.entry.js} +1 -1
- package/dist/tet-components/{p-8436df88.entry.js → p-7366cfd6.entry.js} +1 -1
- package/dist/tet-components/{p-d2abe02d.entry.js → p-76b13aec.entry.js} +1 -1
- package/dist/tet-components/{p-8a9d5ef1.entry.js → p-76d6013c.entry.js} +1 -1
- package/dist/tet-components/{p-2bd1b7ec.entry.js → p-79388d8a.entry.js} +1 -1
- package/dist/tet-components/{p-dca1a4c2.entry.js → p-7a9e715e.entry.js} +1 -1
- package/dist/tet-components/{p-15bddc3d.entry.js → p-7dba08b3.entry.js} +1 -1
- package/dist/tet-components/{p-d89ae495.entry.js → p-7fc4c174.entry.js} +1 -1
- package/dist/tet-components/{p-616d3818.entry.js → p-854c146d.entry.js} +1 -1
- package/dist/tet-components/{p-dfdf946f.entry.js → p-86614def.entry.js} +1 -1
- package/dist/tet-components/{p-92ef3a39.entry.js → p-87e315d4.entry.js} +1 -1
- package/dist/tet-components/{p-c32edb32.entry.js → p-891cff98.entry.js} +1 -1
- package/dist/tet-components/{p-2e7cb093.entry.js → p-8b5ee723.entry.js} +1 -1
- package/dist/tet-components/p-90de1b09.entry.js +1 -0
- package/dist/tet-components/{p-d44bea09.entry.js → p-937c99dd.entry.js} +1 -1
- package/dist/tet-components/{p-cd267067.entry.js → p-9691d0a9.entry.js} +1 -1
- package/dist/tet-components/{p-a410109c.entry.js → p-96e57ac6.entry.js} +1 -1
- package/dist/tet-components/{p-394b9c6b.entry.js → p-9a491f9a.entry.js} +1 -1
- package/dist/tet-components/{p-3d8635c1.entry.js → p-9d704250.entry.js} +1 -1
- package/dist/tet-components/p-C8CA8-C8.js +1 -0
- package/dist/tet-components/{p-t-BNeeWq.js → p-CjkCTYSi.js} +1 -1
- package/dist/tet-components/{p-2e4e81a5.entry.js → p-a28d27a1.entry.js} +1 -1
- package/dist/tet-components/{p-7ffa074d.entry.js → p-a631d8c5.entry.js} +1 -1
- package/dist/tet-components/{p-baf6ba9e.entry.js → p-a7f8ef9f.entry.js} +1 -1
- package/dist/tet-components/{p-47484c33.entry.js → p-a86ca759.entry.js} +1 -1
- package/dist/tet-components/{p-1556076a.entry.js → p-abb2da28.entry.js} +1 -1
- package/dist/tet-components/{p-8b3ea797.entry.js → p-af0e9ee6.entry.js} +1 -1
- package/dist/tet-components/{p-306ff942.entry.js → p-b066e773.entry.js} +1 -1
- package/dist/tet-components/{p-cb1c05ab.entry.js → p-b1037e46.entry.js} +1 -1
- package/dist/tet-components/{p-499ff632.entry.js → p-b2798ef1.entry.js} +1 -1
- package/dist/tet-components/{p-73aca8b1.entry.js → p-b2d61826.entry.js} +1 -1
- package/dist/tet-components/{p-b315a1c8.entry.js → p-ba878c01.entry.js} +1 -1
- package/dist/tet-components/p-bad31105.entry.js +1 -0
- package/dist/tet-components/{p-0690117e.entry.js → p-c1ee1558.entry.js} +1 -1
- package/dist/tet-components/{p-39be547b.entry.js → p-c3862ffb.entry.js} +1 -1
- package/dist/tet-components/{p-5a31f21d.entry.js → p-c7741572.entry.js} +1 -1
- package/dist/tet-components/{p-1deb89e1.entry.js → p-c7f0f9f4.entry.js} +1 -1
- package/dist/tet-components/{p-591a092a.entry.js → p-c9bc7e1c.entry.js} +1 -1
- package/dist/tet-components/{p-e13f06c4.entry.js → p-ca111c70.entry.js} +1 -1
- package/dist/tet-components/{p-3242f182.entry.js → p-cf0f0d6e.entry.js} +1 -1
- package/dist/tet-components/{p-24bdeb37.entry.js → p-d1a9ded7.entry.js} +1 -1
- package/dist/tet-components/{p-f7e3a24b.entry.js → p-d1f560a6.entry.js} +1 -1
- package/dist/tet-components/{p-5bd0a0c8.entry.js → p-dac6ad5c.entry.js} +1 -1
- package/dist/tet-components/{p-4f47079e.entry.js → p-e2d09b10.entry.js} +1 -1
- package/dist/tet-components/{p-139d4cad.entry.js → p-e624df8a.entry.js} +1 -1
- package/dist/tet-components/{p-8bdcb714.entry.js → p-e87a7b06.entry.js} +1 -1
- package/dist/tet-components/{p-bd42d182.entry.js → p-ea5a63a1.entry.js} +1 -1
- package/dist/tet-components/{p-b849774e.entry.js → p-ee844459.entry.js} +1 -1
- package/dist/tet-components/{p-bb325aa4.entry.js → p-f2bd28a0.entry.js} +1 -1
- package/dist/tet-components/{p-a0340287.entry.js → p-f4cfb3a5.entry.js} +1 -1
- package/dist/tet-components/{p-f5a86256.entry.js → p-f96c8acc.entry.js} +1 -1
- package/dist/tet-components/{p-87d015b3.entry.js → p-feccd822.entry.js} +1 -1
- package/dist/tet-components/{p-ClX9TYQY.js → p-st4TD55I.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.d.ts +11 -1
- package/dist/types/components/basic/buttons/tet-radio-blocks/tet-radio-blocks.d.ts +6 -3
- package/dist/types/components.d.ts +18 -5
- package/package.json +1 -1
- package/dist/tet-components/p-8091cf4b.entry.js +0 -1
- package/dist/tet-components/p-BGrvDoTj.js +0 -1
- package/dist/tet-components/p-c989a64d.entry.js +0 -1
- package/dist/tet-components/p-e5c07d62.entry.js +0 -1
package/dist/collection/components/advanced/cards/tet-compare-card-v3/tet-compare-card-v3.js
CHANGED
|
@@ -7,6 +7,10 @@ export class TetCompareCardV3 {
|
|
|
7
7
|
* The size of the button.
|
|
8
8
|
*/
|
|
9
9
|
cardType = 'static';
|
|
10
|
+
/**
|
|
11
|
+
* Control used to select options when cardType is 'single-card'.
|
|
12
|
+
*/
|
|
13
|
+
singleCardControlType = 'tabs';
|
|
10
14
|
/**
|
|
11
15
|
* The theme of the card.
|
|
12
16
|
*/
|
|
@@ -84,6 +88,8 @@ export class TetCompareCardV3 {
|
|
|
84
88
|
preselectedRemountId = 0;
|
|
85
89
|
buttonSize = 'large';
|
|
86
90
|
isSingleCardDesktop = true;
|
|
91
|
+
smallRadioBlocksPerRow = 2;
|
|
92
|
+
largeRadioBlocksPerRow = 3;
|
|
87
93
|
didEmitCardLoaded = false;
|
|
88
94
|
/**
|
|
89
95
|
* Emitted when the card has loaded.
|
|
@@ -173,12 +179,19 @@ export class TetCompareCardV3 {
|
|
|
173
179
|
syncSingleCardBreakpoint() {
|
|
174
180
|
if (globalThis.window === undefined) {
|
|
175
181
|
this.isSingleCardDesktop = true;
|
|
182
|
+
this.smallRadioBlocksPerRow = 2;
|
|
183
|
+
this.largeRadioBlocksPerRow = 3;
|
|
176
184
|
return;
|
|
177
185
|
}
|
|
178
|
-
const
|
|
186
|
+
const width = globalThis.window.innerWidth;
|
|
187
|
+
const nextIsSingleCardDesktop = width >= this.singleCardBreakpoint;
|
|
179
188
|
if (this.isSingleCardDesktop !== nextIsSingleCardDesktop) {
|
|
180
189
|
this.isSingleCardDesktop = nextIsSingleCardDesktop;
|
|
181
190
|
}
|
|
191
|
+
if (this.singleCardControlType === 'radio') {
|
|
192
|
+
this.smallRadioBlocksPerRow = width < 768 || (width >= 1024 && width < 1280) ? 1 : 2;
|
|
193
|
+
this.largeRadioBlocksPerRow = (width >= 768 && width < 1024) || width >= 1440 ? 3 : 2;
|
|
194
|
+
}
|
|
182
195
|
}
|
|
183
196
|
getOptionId(option) {
|
|
184
197
|
return option?.id ?? option?.productCode ?? '';
|
|
@@ -366,7 +379,7 @@ export class TetCompareCardV3 {
|
|
|
366
379
|
: toggleKey;
|
|
367
380
|
return (h("div", { class: "switch-wrapper" }, h("tet-switch", { class: "switch", theme: this.theme, key: switchKey, name: toggleKey, checked: this.selectedSwitchKeys.includes(toggleKey), onCheck: (e) => this.handleSwitchToggle(toggleKey, e.detail.checked), labelPosition: "left", focusStyleOnContainer: true }, h("div", { class: "switch-label" }, h("tet-icon", { theme: this.theme, class: "benefit__icon", name: icon }), name))));
|
|
368
381
|
}
|
|
369
|
-
|
|
382
|
+
handleSingleCardControlSelect(productId) {
|
|
370
383
|
const option = this.getOptionById(productId);
|
|
371
384
|
if (!option) {
|
|
372
385
|
return;
|
|
@@ -385,7 +398,10 @@ export class TetCompareCardV3 {
|
|
|
385
398
|
const label = this.options[0].optionLabel ?? '';
|
|
386
399
|
return (h("div", { class: "single-option-label" }, label));
|
|
387
400
|
}
|
|
388
|
-
|
|
401
|
+
if (this.singleCardControlType === 'radio') {
|
|
402
|
+
return this.renderSingleCardRadioControls();
|
|
403
|
+
}
|
|
404
|
+
return (h("tet-tab-header", { theme: this.theme, mode: "switch", segmented: true, sizing: this.isSingleCardDesktop ? 'web' : 'mobile', defaultTab: defaultTab, onTabSelected: (event) => this.handleSingleCardControlSelect(event.detail.new) }, this.options.map((option) => {
|
|
389
405
|
const productId = this.getOptionId(option);
|
|
390
406
|
const label = option.optionLabel ?? '';
|
|
391
407
|
if (!productId) {
|
|
@@ -394,6 +410,26 @@ export class TetCompareCardV3 {
|
|
|
394
410
|
return (h("button", { type: "button", "data-name": productId }, label));
|
|
395
411
|
})));
|
|
396
412
|
}
|
|
413
|
+
renderSingleCardRadioControls() {
|
|
414
|
+
const selectedProductId = this.selectedProductId || this.getOptionId(this.options[0]);
|
|
415
|
+
const useSmallBlocks = this.options.some((option) => (option?.bonuses ?? []).length > 0 || !!option?.optionIcon);
|
|
416
|
+
const blocks = this.options.flatMap((option) => {
|
|
417
|
+
const productId = this.getOptionId(option);
|
|
418
|
+
if (!productId) {
|
|
419
|
+
return [];
|
|
420
|
+
}
|
|
421
|
+
return [{
|
|
422
|
+
id: productId,
|
|
423
|
+
label: option.optionLabel ?? '',
|
|
424
|
+
value: productId,
|
|
425
|
+
checked: productId === selectedProductId,
|
|
426
|
+
iconName: option.optionIcon ?? '',
|
|
427
|
+
description: option.optionDescription ?? '',
|
|
428
|
+
secondaryDescription: option.optionSecondaryDescription ?? '',
|
|
429
|
+
}];
|
|
430
|
+
});
|
|
431
|
+
return (h("tet-radio-blocks", { theme: this.theme, blocks: blocks, blockType: useSmallBlocks ? 'small' : 'large', blocksPerRow: useSmallBlocks ? this.smallRadioBlocksPerRow : this.largeRadioBlocksPerRow, accessibilityLabel: this.controlsTitle?.replace(/:\s*$/, '').trim(), onCheck: (event) => this.handleSingleCardControlSelect(event.detail.value) }));
|
|
432
|
+
}
|
|
397
433
|
/**
|
|
398
434
|
* Renders bonus groups for the selected product.
|
|
399
435
|
*/
|
|
@@ -514,13 +550,14 @@ export class TetCompareCardV3 {
|
|
|
514
550
|
? this.renderSingleCardDropdownControls()
|
|
515
551
|
: this.renderControl(selectionOptions);
|
|
516
552
|
const isSingleCard = this.cardType === 'single-card';
|
|
553
|
+
const isSingleCardTabControls = this.singleCardControlType === 'tabs';
|
|
517
554
|
const isSingleOption = this.options.length === 1;
|
|
518
555
|
if (!control && !hasSingleCardDropdownOptions) {
|
|
519
556
|
return null;
|
|
520
557
|
}
|
|
521
558
|
return (h("div", { class: "controls" }, hasSingleCardDropdownOptions && !!this.singleCardTabsTitle && (h("div", { class: "single-card-tabs-title" }, this.singleCardTabsTitle)), hasSingleCardDropdownOptions && this.renderSingleCardControls(), renderTitle && (h("div", { class: {
|
|
522
559
|
'section-title': true,
|
|
523
|
-
'single-card-controls-title': isSingleCard,
|
|
560
|
+
'single-card-tab-controls-title': isSingleCard && isSingleCardTabControls,
|
|
524
561
|
'single-option': isSingleCard && isSingleOption,
|
|
525
562
|
} }, this.controlsTitle)), control));
|
|
526
563
|
}
|
|
@@ -603,7 +640,7 @@ export class TetCompareCardV3 {
|
|
|
603
640
|
return (h("tet-placeholder", { class: { 'card__placeholder': true, 'single-card': this.cardType === 'single-card' }, height: "100%", width: "100%", darkTheme: this.theme === 'dark' }));
|
|
604
641
|
}
|
|
605
642
|
render() {
|
|
606
|
-
return (h(Host, { key: '
|
|
643
|
+
return (h(Host, { key: '26d85ce9b2114fab806f029fc148374227a8a54a', "data-contains-focusable-content": true }, this.showLoader ? this.renderLoader() : this.renderCard()));
|
|
607
644
|
}
|
|
608
645
|
static get is() { return "tet-compare-card-v3"; }
|
|
609
646
|
static get encapsulation() { return "shadow"; }
|
|
@@ -639,6 +676,26 @@ export class TetCompareCardV3 {
|
|
|
639
676
|
"attribute": "card-type",
|
|
640
677
|
"defaultValue": "'static'"
|
|
641
678
|
},
|
|
679
|
+
"singleCardControlType": {
|
|
680
|
+
"type": "string",
|
|
681
|
+
"mutable": false,
|
|
682
|
+
"complexType": {
|
|
683
|
+
"original": "'tabs' | 'radio'",
|
|
684
|
+
"resolved": "\"radio\" | \"tabs\"",
|
|
685
|
+
"references": {}
|
|
686
|
+
},
|
|
687
|
+
"required": false,
|
|
688
|
+
"optional": false,
|
|
689
|
+
"docs": {
|
|
690
|
+
"tags": [],
|
|
691
|
+
"text": "Control used to select options when cardType is 'single-card'."
|
|
692
|
+
},
|
|
693
|
+
"getter": false,
|
|
694
|
+
"setter": false,
|
|
695
|
+
"reflect": false,
|
|
696
|
+
"attribute": "single-card-control-type",
|
|
697
|
+
"defaultValue": "'tabs'"
|
|
698
|
+
},
|
|
642
699
|
"theme": {
|
|
643
700
|
"type": "string",
|
|
644
701
|
"mutable": false,
|
|
@@ -976,7 +1033,9 @@ export class TetCompareCardV3 {
|
|
|
976
1033
|
"allProductData": {},
|
|
977
1034
|
"preselectedRemountId": {},
|
|
978
1035
|
"buttonSize": {},
|
|
979
|
-
"isSingleCardDesktop": {}
|
|
1036
|
+
"isSingleCardDesktop": {},
|
|
1037
|
+
"smallRadioBlocksPerRow": {},
|
|
1038
|
+
"largeRadioBlocksPerRow": {}
|
|
980
1039
|
};
|
|
981
1040
|
}
|
|
982
1041
|
static get events() {
|
|
@@ -361,21 +361,21 @@
|
|
|
361
361
|
* @prop --radio-block-checked-background-color: Sets background color of radio block when its checked.
|
|
362
362
|
* @prop --radio-block-focused-border-color: Sets outline color of radio block when focused with keyboard;
|
|
363
363
|
*/
|
|
364
|
+
--radio-block-text-color: var(--tc-text-primary);
|
|
365
|
+
--radio-block-border-color: var(--tc-border-quaternary);
|
|
366
|
+
--radio-block-background-color: var(--tc-layer-permanent-white);
|
|
367
|
+
--radio-block-hover-border-color: var(--tc-border-tertiary);
|
|
368
|
+
--radio-block-hover-background-color: var(--tc-yellow-10);
|
|
369
|
+
--radio-block-pressed-border-color: var(--tc-border-secondary);
|
|
370
|
+
--radio-block-pressed-background-color: var(--tc-yellow-20);
|
|
371
|
+
--radio-block-checked-border-color: var(--tc-yellow-60);
|
|
372
|
+
--radio-block-checked-background-color: var(--tc-yellow-40);
|
|
373
|
+
--radio-block-focused-border-color: var(--tc-blue-40);
|
|
364
374
|
display: block;
|
|
365
375
|
position: relative;
|
|
366
376
|
}
|
|
367
377
|
|
|
368
|
-
|
|
369
|
-
display: flex;
|
|
370
|
-
width: 100%;
|
|
371
|
-
align-items: center;
|
|
372
|
-
gap: 0.75rem;
|
|
373
|
-
border-radius: 0.5rem;
|
|
374
|
-
border: 0.0625rem solid var(--radio-block-border-color);
|
|
375
|
-
background-color: var(--radio-block-background-color);
|
|
376
|
-
cursor: pointer;
|
|
377
|
-
}
|
|
378
|
-
.radio-block-dark-theme {
|
|
378
|
+
:host([theme=dark]) {
|
|
379
379
|
--radio-block-text-color: var(--tc-text-primary-dark);
|
|
380
380
|
--radio-block-border-color: var(--tc-border-quaternary-dark);
|
|
381
381
|
--radio-block-background-color: var(--tc-layer-permanent-black-dark);
|
|
@@ -387,60 +387,92 @@
|
|
|
387
387
|
--radio-block-checked-background-color: var(--tc-brown-50-dark);
|
|
388
388
|
--radio-block-focused-border-color: var(--tc-blue-40-dark);
|
|
389
389
|
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
--radio-block-
|
|
400
|
-
|
|
390
|
+
|
|
391
|
+
.radio-block {
|
|
392
|
+
display: flex;
|
|
393
|
+
position: relative;
|
|
394
|
+
box-sizing: border-box;
|
|
395
|
+
width: 100%;
|
|
396
|
+
align-items: flex-start;
|
|
397
|
+
gap: 0.75rem;
|
|
398
|
+
border-radius: 0.5rem;
|
|
399
|
+
border: 0.0625rem solid var(--radio-block-border-color);
|
|
400
|
+
background-color: var(--radio-block-background-color);
|
|
401
|
+
cursor: pointer;
|
|
402
|
+
overflow: hidden;
|
|
401
403
|
}
|
|
402
|
-
.radio-
|
|
403
|
-
padding:
|
|
404
|
+
.radio-block__container.small > .radio-block {
|
|
405
|
+
padding: 1rem 0.75rem;
|
|
404
406
|
flex-direction: row;
|
|
405
|
-
gap: 0.
|
|
407
|
+
gap: 0.5rem;
|
|
406
408
|
}
|
|
407
|
-
.radio-
|
|
409
|
+
.radio-block__container.large > .radio-block {
|
|
408
410
|
align-items: flex-start;
|
|
409
|
-
padding: 1.25rem;
|
|
410
411
|
flex-direction: column;
|
|
411
|
-
|
|
412
|
+
padding: 1rem;
|
|
413
|
+
gap: 0.5rem;
|
|
414
|
+
}
|
|
415
|
+
@media screen and (min-width: 80rem) {
|
|
416
|
+
.radio-block__container.large > .radio-block {
|
|
417
|
+
padding: 1.25rem;
|
|
418
|
+
gap: 1rem;
|
|
419
|
+
}
|
|
412
420
|
}
|
|
413
421
|
.radio-block__container {
|
|
414
422
|
display: grid;
|
|
415
423
|
grid-template-columns: repeat(1, 1fr);
|
|
416
424
|
gap: 1rem;
|
|
417
425
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
grid-template-columns: repeat(2, 1fr);
|
|
421
|
-
}
|
|
426
|
+
.radio-block__container.row-of-2 {
|
|
427
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
422
428
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
429
|
+
.radio-block__container.row-of-2 > :last-child:nth-child(odd) {
|
|
430
|
+
grid-column: 1/-1;
|
|
431
|
+
}
|
|
432
|
+
.radio-block__container.row-of-3 {
|
|
433
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
434
|
+
}
|
|
435
|
+
.radio-block__container.row-of-3 > * {
|
|
436
|
+
grid-column: span 2;
|
|
437
|
+
}
|
|
438
|
+
.radio-block__container.row-of-3 > :last-child:nth-child(3n+1) {
|
|
439
|
+
grid-column: 1/-1;
|
|
440
|
+
}
|
|
441
|
+
.radio-block__container.row-of-3 > :nth-child(3n+1):nth-last-child(2),
|
|
442
|
+
.radio-block__container.row-of-3 > :nth-child(3n+1):nth-last-child(2) + * {
|
|
443
|
+
grid-column: span 3;
|
|
427
444
|
}
|
|
428
445
|
.radio-block__icon {
|
|
429
446
|
--icon-size: 1.5rem;
|
|
430
447
|
}
|
|
448
|
+
.radio-block__input {
|
|
449
|
+
position: absolute;
|
|
450
|
+
width: 1px;
|
|
451
|
+
height: 1px;
|
|
452
|
+
padding: 0;
|
|
453
|
+
margin: -1px;
|
|
454
|
+
overflow: hidden;
|
|
455
|
+
clip-path: inset(50%);
|
|
456
|
+
white-space: nowrap;
|
|
457
|
+
border: 0;
|
|
458
|
+
}
|
|
431
459
|
.radio-block__label {
|
|
432
|
-
font: 500
|
|
460
|
+
font: 500 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
|
|
433
461
|
color: var(--radio-block-text-color);
|
|
434
462
|
}
|
|
435
|
-
@media screen and (min-width:
|
|
436
|
-
.radio-block__label {
|
|
437
|
-
font: 500
|
|
463
|
+
@media screen and (min-width: 80rem) {
|
|
464
|
+
.radio-block__container.large > .radio-block .radio-block__label {
|
|
465
|
+
font: 500 1.25rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";
|
|
438
466
|
}
|
|
439
467
|
}
|
|
440
468
|
.radio-block__description {
|
|
441
469
|
font: 500 0.75rem/1rem "Inter", "Gilroy, Arial, sans-serif";
|
|
442
470
|
color: var(--radio-block-text-color);
|
|
443
471
|
text-align: start;
|
|
472
|
+
display: flex;
|
|
473
|
+
flex-direction: column;
|
|
474
|
+
margin-top: auto;
|
|
475
|
+
gap: 0.25rem;
|
|
444
476
|
}
|
|
445
477
|
.radio-block:hover {
|
|
446
478
|
border-color: var(--radio-block-hover-border-color);
|
|
@@ -454,6 +486,7 @@
|
|
|
454
486
|
border-color: var(--radio-block-checked-border-color);
|
|
455
487
|
background-color: var(--radio-block-checked-background-color);
|
|
456
488
|
}
|
|
457
|
-
.radio-block:focus-visible {
|
|
458
|
-
border: 0.
|
|
489
|
+
.radio-block:has(> .radio-block__input:focus-visible) {
|
|
490
|
+
border: 0.0625rem solid var(--radio-block-focused-border-color);
|
|
491
|
+
outline: 0.0625rem solid var(--radio-block-focused-border-color);
|
|
459
492
|
}
|
|
@@ -3,20 +3,21 @@ import { Host, h } from "@stencil/core";
|
|
|
3
3
|
* A simple radio block component.
|
|
4
4
|
*/
|
|
5
5
|
export class TetRadioBlocks {
|
|
6
|
+
radioGroupName = 'tet-radio-blocks';
|
|
6
7
|
/** The event that is emitted whenever the control element is checked. */
|
|
7
8
|
check;
|
|
8
9
|
/** The array of items to render as radio blocks. */
|
|
9
|
-
blocks;
|
|
10
|
+
blocks = [];
|
|
10
11
|
/** Number of blocks to render in one row. */
|
|
11
12
|
blocksPerRow = 2;
|
|
12
13
|
/** Type of the block. */
|
|
13
14
|
blockType = 'small';
|
|
14
15
|
/** The theme of the radio block. */
|
|
15
16
|
theme = 'light';
|
|
16
|
-
/**
|
|
17
|
+
/** Accessible name for the radio group. */
|
|
17
18
|
accessibilityLabel = '';
|
|
18
19
|
/** Defines if block is checked. */
|
|
19
|
-
|
|
20
|
+
checkedBlockId;
|
|
20
21
|
/**
|
|
21
22
|
* Changes the checked prop of the block.
|
|
22
23
|
*
|
|
@@ -26,16 +27,15 @@ export class TetRadioBlocks {
|
|
|
26
27
|
async setChecked(id, value) {
|
|
27
28
|
this.blocks.forEach((block) => {
|
|
28
29
|
block.checked = block.id === id;
|
|
29
|
-
this.
|
|
30
|
+
this.checkedBlockId = id;
|
|
30
31
|
});
|
|
31
32
|
this.check.emit({ id, value });
|
|
32
33
|
}
|
|
33
34
|
componentWillLoad() {
|
|
34
|
-
this.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
});
|
|
35
|
+
this.syncCheckedBlock();
|
|
36
|
+
}
|
|
37
|
+
syncCheckedBlock() {
|
|
38
|
+
this.checkedBlockId = this.blocks.find((block) => block.checked)?.id;
|
|
39
39
|
}
|
|
40
40
|
/** Render icon of b;lock type is small. */
|
|
41
41
|
renderIcon(iconName) {
|
|
@@ -45,27 +45,29 @@ export class TetRadioBlocks {
|
|
|
45
45
|
return h("tet-icon", { class: "radio-block__icon", name: iconName, theme: this.theme });
|
|
46
46
|
}
|
|
47
47
|
/** Render description if blockType set to large. */
|
|
48
|
-
renderDescription(description) {
|
|
49
|
-
if (this.blockType === 'small' || !description) {
|
|
48
|
+
renderDescription(description, secondaryDescription, descriptionId) {
|
|
49
|
+
if (this.blockType === 'small' || (!description && !secondaryDescription)) {
|
|
50
50
|
return '';
|
|
51
51
|
}
|
|
52
|
-
return h("span", { class: "radio-block__description" }, description);
|
|
52
|
+
return (h("span", { class: "radio-block__description", id: descriptionId }, description && h("span", null, description), secondaryDescription && h("span", null, secondaryDescription)));
|
|
53
53
|
}
|
|
54
54
|
/** Function to render one Single block based on block info. */
|
|
55
|
-
renderSingleBlock(block) {
|
|
56
|
-
const { id, value, iconName, label, description } = block;
|
|
57
|
-
|
|
55
|
+
renderSingleBlock(block, index) {
|
|
56
|
+
const { id, value, iconName, label, description, secondaryDescription } = block;
|
|
57
|
+
const labelId = `${this.radioGroupName}-${index}-label`;
|
|
58
|
+
const descriptionId = `${this.radioGroupName}-${index}-description`;
|
|
59
|
+
const hasDescription = this.blockType === 'large' && !!(description || secondaryDescription);
|
|
60
|
+
return (h("label", { class: { 'radio-block': true, 'checked': this.checkedBlockId === id } }, h("input", { class: "radio-block__input", type: "radio", name: this.radioGroupName, value: value, checked: this.checkedBlockId === id, "aria-labelledby": labelId, "aria-describedby": hasDescription ? descriptionId : undefined, onChange: () => this.setChecked(id, value) }), this.renderIcon(iconName), h("span", { class: "radio-block__label", id: labelId }, label), this.renderDescription(description, secondaryDescription, descriptionId)));
|
|
58
61
|
}
|
|
59
62
|
render() {
|
|
60
|
-
|
|
61
|
-
return (h(Host, { key: '9d5566ae86d83b32f964fe3a809c137b68dc323e' }, h("div", { key: '669855a39a00bdf352bc4f98dfe8f9f2a667ac20', class: {
|
|
63
|
+
return (h(Host, { key: '21a0749fdba1cc6001513687262ab146a892f639' }, h("div", { key: 'dcec81d674af2ca39f150c12096dca147213e938', role: "radiogroup", "aria-label": this.accessibilityLabel || undefined, class: {
|
|
62
64
|
'radio-block__container': true,
|
|
63
|
-
[
|
|
65
|
+
[this.blockType]: true,
|
|
64
66
|
[`row-of-${this.blocksPerRow}`]: !!this.blocksPerRow
|
|
65
|
-
} }, blocks.map((block) => this.renderSingleBlock(block)))));
|
|
67
|
+
} }, this.blocks.map((block, index) => this.renderSingleBlock(block, index)))));
|
|
66
68
|
}
|
|
67
69
|
static get is() { return "tet-radio-blocks"; }
|
|
68
|
-
static get encapsulation() { return "
|
|
70
|
+
static get encapsulation() { return "shadow"; }
|
|
69
71
|
static get originalStyleUrls() {
|
|
70
72
|
return {
|
|
71
73
|
"$": ["tet-radio-blocks.scss"]
|
|
@@ -99,14 +101,15 @@ export class TetRadioBlocks {
|
|
|
99
101
|
"text": "The array of items to render as radio blocks."
|
|
100
102
|
},
|
|
101
103
|
"getter": false,
|
|
102
|
-
"setter": false
|
|
104
|
+
"setter": false,
|
|
105
|
+
"defaultValue": "[]"
|
|
103
106
|
},
|
|
104
107
|
"blocksPerRow": {
|
|
105
108
|
"type": "number",
|
|
106
109
|
"mutable": false,
|
|
107
110
|
"complexType": {
|
|
108
|
-
"original": "2 | 3",
|
|
109
|
-
"resolved": "2 | 3",
|
|
111
|
+
"original": "1 | 2 | 3",
|
|
112
|
+
"resolved": "1 | 2 | 3",
|
|
110
113
|
"references": {}
|
|
111
114
|
},
|
|
112
115
|
"required": false,
|
|
@@ -157,7 +160,7 @@ export class TetRadioBlocks {
|
|
|
157
160
|
},
|
|
158
161
|
"getter": false,
|
|
159
162
|
"setter": false,
|
|
160
|
-
"reflect":
|
|
163
|
+
"reflect": true,
|
|
161
164
|
"attribute": "theme",
|
|
162
165
|
"defaultValue": "'light'"
|
|
163
166
|
},
|
|
@@ -173,7 +176,7 @@ export class TetRadioBlocks {
|
|
|
173
176
|
"optional": false,
|
|
174
177
|
"docs": {
|
|
175
178
|
"tags": [],
|
|
176
|
-
"text": "
|
|
179
|
+
"text": "Accessible name for the radio group."
|
|
177
180
|
},
|
|
178
181
|
"getter": false,
|
|
179
182
|
"setter": false,
|
|
@@ -185,7 +188,7 @@ export class TetRadioBlocks {
|
|
|
185
188
|
}
|
|
186
189
|
static get states() {
|
|
187
190
|
return {
|
|
188
|
-
"
|
|
191
|
+
"checkedBlockId": {}
|
|
189
192
|
};
|
|
190
193
|
}
|
|
191
194
|
static get events() {
|
|
@@ -247,4 +250,10 @@ export class TetRadioBlocks {
|
|
|
247
250
|
}
|
|
248
251
|
};
|
|
249
252
|
}
|
|
253
|
+
static get watchers() {
|
|
254
|
+
return [{
|
|
255
|
+
"propName": "blocks",
|
|
256
|
+
"methodName": "syncCheckedBlock"
|
|
257
|
+
}];
|
|
258
|
+
}
|
|
250
259
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t}from"./p-
|
|
1
|
+
import{t}from"./p-ChxhsA_J.js";export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-ChxhsA_J.js";import{TetAccordion as o}from"./tet-accordion.js";import{TetAddressOffers as m}from"./tet-address-offers.js";import{TetAddressOffersFilters as e}from"./tet-address-offers-filters.js";import{TetAddressOffersFiltersProducts as i}from"./tet-address-offers-filters-products.js";import{TetAddressOffersView as p}from"./tet-address-offers-view.js";import{TetAddressSearch as f}from"./tet-address-search.js";import{TetAssembler as j}from"./tet-assembler.js";import{TetAssetAvailabilityAddresses as c}from"./tet-asset-availability-addresses.js";import{TetAutocomplete as n}from"./tet-autocomplete.js";import{TetAutocompleteDropdown as d}from"./tet-autocomplete-dropdown.js";import{TetAvailabilityContactForm as l}from"./tet-availability-contact-form.js";import{TetB2bCheckOutForm as u}from"./tet-b2b-check-out-form.js";import{TetB2bCompareCard as h}from"./tet-b2b-compare-card.js";import{TetB2bConfigurator as k}from"./tet-b2b-configurator.js";import{TetB2bConfiguratorCart as v}from"./tet-b2b-configurator-cart.js";import{TetBannerNav as w}from"./tet-banner-nav.js";import{TetBarGraph as y}from"./tet-bar-graph.js";import{TetBorderRadius as x}from"./tet-border-radius.js";import{TetBusinessCard as A}from"./tet-business-card.js";import{TetBusinessCompareCard as E}from"./tet-business-compare-card.js";import{TetBusinessNavigation as P}from"./tet-business-navigation.js";import{TetBusinessRoundStepper as C}from"./tet-business-round-stepper.js";import{TetBusinessSummaryCard as J}from"./tet-business-summary-card.js";import{TetButton as _}from"./tet-button.js";import{TetCardList as N}from"./tet-card-list.js";import{TetCarousel as O}from"./tet-carousel.js";import{TetCheckbox as q}from"./tet-checkbox.js";import{TetCloudApplicationFormDialog as z}from"./tet-cloud-application-form-dialog.js";import{TetCloudConfigurator as B}from"./tet-cloud-configurator.js";import{TetColors as D}from"./tet-colors.js";import{TetCompareCard as F}from"./tet-compare-card.js";import{TetCompareCardV2 as G}from"./tet-compare-card-v2.js";import{TetCompareCardV3 as H}from"./tet-compare-card-v3.js";import{TetCompareCards as I}from"./tet-compare-cards.js";import{TetCompareCardsTab as K}from"./tet-compare-cards-tab.js";import{TetContainer as L}from"./tet-container.js";import{TetCountdown as M}from"./tet-countdown.js";import{TetCounter as Q}from"./tet-counter.js";import{TetDatepicker as R}from"./tet-datepicker.js";import{TetDatepickerHeader as S}from"./tet-datepicker-header.js";import{TetDatepickerMonthView as T}from"./tet-datepicker-month-view.js";import{TetDatepickerMultiYearView as U}from"./tet-datepicker-multi-year-view.js";import{TetDatepickerYearView as V}from"./tet-datepicker-year-view.js";import{TetDialog as W}from"./tet-dialog.js";import{TetDisplay as X}from"./tet-display.js";import{TetDivider as Y}from"./tet-divider.js";import{TetDropdown as Z}from"./tet-dropdown.js";import{TetDynamicCard as $}from"./tet-dynamic-card.js";import{TetExpandableInput as tt}from"./tet-expandable-input.js";import{TetExpansionPanel as rt}from"./tet-expansion-panel.js";import{TetFeedbackForm as ot}from"./tet-feedback-form.js";import{TetFilter as mt}from"./tet-filter.js";import{TetFloatingBlock as et}from"./tet-floating-block.js";import{TetFontWeight as st}from"./tet-font-weight.js";import{TetFonts as it}from"./tet-fonts.js";import{TetGrid as pt}from"./tet-grid.js";import{TetIcon as ft}from"./tet-icon.js";import{TetInlineMessage as at}from"./tet-inline-message.js";import{TetInput as jt}from"./tet-input.js";import{TetLayout as ct}from"./tet-layout.js";import{TetLink as nt}from"./tet-link.js";import{TetLinkCardList as dt}from"./tet-link-card-list.js";import{TetLoader as lt}from"./tet-loader.js";import{TetMenu as ut}from"./tet-menu.js";import{TetMenuMobile as bt}from"./tet-menu-mobile.js";import{TetMiniCompareCard as gt}from"./tet-mini-compare-card.js";import{TetMultiStepDialog as ht}from"./tet-multi-step-dialog.js";import{TetNavigationMobile as kt}from"./tet-navigation-mobile.js";import{TetNewsCardList as vt}from"./tet-news-card-list.js";import{TetNotification as wt}from"./tet-notification.js";import{TetNumberInput as yt}from"./tet-number-input.js";import{TetPlaceholder as xt}from"./tet-placeholder.js";import{TetPosition as At}from"./tet-position.js";import{TetPriceView as Et}from"./tet-price-view.js";import{TetRadio as Pt}from"./tet-radio.js";import{TetRadioBlocks as Ct}from"./tet-radio-blocks.js";import{TetRangeSlider as Jt}from"./tet-range-slider.js";import{TetRoundStepper as _t}from"./tet-round-stepper.js";import{TetSelectionList as Nt}from"./tet-selection-list.js";import{TetSnickerCard as Ot}from"./tet-snicker-card.js";import{TetSnickerCardGroup as qt}from"./tet-snicker-card-group.js";import{TetSpacing as zt}from"./tet-spacing.js";import{TetSpinner as Bt}from"./tet-spinner.js";import{TetStepperInput as Dt}from"./tet-stepper-input.js";import{TetStepperV3 as Ft}from"./tet-stepper-v3.js";import{TetStickyOffer as Gt}from"./tet-sticky-offer.js";import{TetSupportSearch as Ht}from"./tet-support-search.js";import{TetSwitch as It}from"./tet-switch.js";import{TetTabContent as Kt}from"./tet-tab-content.js";import{TetTabHeader as Lt}from"./tet-tab-header.js";import{TetTable as Mt}from"./tet-table.js";import{TetTag as Qt}from"./tet-tag.js";import{TetTagGroup as Rt}from"./tet-tag-group.js";import{TetText as St}from"./tet-text.js";import{TetTextList as Tt}from"./tet-text-list.js";import{TetTextarea as Ut}from"./tet-textarea.js";import{TetThankYouViewV3 as Vt}from"./tet-thank-you-view-v3.js";import{TetTooltip as Wt}from"./tet-tooltip.js";const Xt=r=>{"undefined"!=typeof customElements&&[o,m,e,i,p,f,j,c,n,d,l,u,h,k,v,w,y,x,A,E,P,C,J,_,N,O,q,z,B,D,F,G,H,I,K,L,M,Q,R,S,T,U,V,W,X,Y,Z,$,tt,rt,ot,mt,et,st,it,pt,ft,at,jt,ct,nt,dt,lt,ut,bt,gt,ht,kt,vt,wt,yt,xt,At,Et,Pt,Ct,Jt,_t,Nt,Ot,qt,zt,Bt,Dt,Ft,Gt,Ht,It,Kt,Lt,Mt,Qt,Rt,St,Tt,Ut,Vt,Wt].forEach((o=>{customElements.get(t(o.is))||customElements.define(t(o.is),o,r)}))};export{Xt as defineCustomElements}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as o,d as e,f as n,h as i,t as a}from"./p-nb3MHK7A.js";import{p as r,t as s}from"./p-DePtMqzY.js";import{e as l,A as f,c,H as m}from"./p-KBNSpMwX.js";import{R as d}from"./p-Cg7SayH7.js";import{d as h}from"./p-BsNlQtYx.js";import{d as p}from"./p-Cfy46lS6.js";import{d as w}from"./p-CFDvtl5l.js";import{d as u}from"./p-Clw2OLNj.js";import{d as g}from"./p-BWmFtcLN.js";const y=t=>new Promise((o=>{setTimeout(o,t)}));class b extends Error{constructor(t){super(`Async API Error: ${t.message}`)}}class k{url;options;data;errorFallbackValue;socketTimeoutInMilliseconds=6e4;maxPollingAttempts=45;dataRetrievalMethod="polling";defaultOptions={headers:{Accept:"application/json","Content-Type":"application/json"}};operationIdHeader="X-Operation";operationEventName=".operation.status";setUrl(t){return this.url=t,this}setOptions(t){return this.options=t,this}setData(t){return this.data=t,this}setErrorFallbackValue(t){return this.errorFallbackValue=t,this}getOperationId(t){return t.headers.get(this.operationIdHeader)??""}handleError(t){return this.errorFallbackValue?Promise.resolve(this.errorFallbackValue):Promise.reject(new b(t))}async pollOperationsEndpoint(t){const o=await(async(t,o,{millisecondsToWait:e=1e3,maxExecutionTries:n=10}={})=>{let i=await t(),a=n;for(;!o(i);){if(--a<=0)throw new Error(`Execute Until: maximum tries of ${n} reached`);await y(e),i=await t()}return i})((()=>(async t=>{let o;try{o=new URL(t,l.operations).href}catch(t){return console.error(t),Promise.reject()}const e=(new f).setUrl(o).setOptions({method:"GET"}).setErrorFallbackValue({}).execute(!0);return(await e).json()})(t)),(({state:t,reason:o="unknown"})=>{if("failed"===t)throw new Error(`Failed due to "${o}"`);return"completed"===t}),{maxExecutionTries:this.maxPollingAttempts});return o.data}getDataUsingPolling(t){return new Promise((async(o,e)=>{try{o(await this.pollOperationsEndpoint(t))}catch(t){e(new b(t))}}))}getDataUsingWebSockets(t){return new Promise(((o,e)=>{const n=c(),i=setTimeout((async()=>{n.disconnect(),e(new b(new Error(`web socket connection timed out after ${this.socketTimeoutInMilliseconds/1e3} seconds`)))}),this.socketTimeoutInMilliseconds);n.channel(`operations-${t}`).listen(this.operationEventName,(t=>{const{data:{state:e,data:a}}=t;"completed"===e&&(clearTimeout(i),o(a),n.disconnect())})).error((t=>{clearTimeout(i),e(new b(t))}))}))}createAsyncRequestPromise(t){return("polling"===this.dataRetrievalMethod?this.getDataUsingPolling:this.getDataUsingWebSockets).bind(this)(t)}async execute(){const t=(new f).setUrl(this.url).setData(this.data).setOptions({...this.defaultOptions,...this.options});let o;try{o=await t.execute(!0)}catch(t){return this.handleError(t)}if(o.status!==m.Accepted)return this.handleError(new Error("Request was not accepted."));const e=this.getOperationId(o);return this.createAsyncRequestPromise(e)}}class v{errorMessage;latvianPhoneNumberRegex="^(((\\+371|00371)[26])|[26])([0-9]{7}$)";phoneNumberRegex="^(?:00|\\+)\\d+$";constructor(t){this.errorMessage=t}getErrorMessage(){return this.errorMessage}validate(t){const o=t.trim();return"2"===o.slice(0,1)||"6"===o.slice(0,1)||"+371"===o.slice(0,4)||"00371"===o.slice(0,5)?RegExp(this.latvianPhoneNumberRegex).test(o):RegExp(this.phoneNumberRegex).test(o)}}const x=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.taskCreationSuccess=e(this,"taskCreationSuccess"),this.taskCreationFailed=e(this,"taskCreationFailed")}phoneInput;dialogElement;validators=[new v("components-validation-incorrect-phone"),new d("components-validation-required")];showLoader=!1;language="lv";onLanguageChange(t){r("tet-components",t).then((()=>n(this)))}taskOptions;submitButtonProps={};showTitle=!0;showInputLabel=!1;theme="classic";darkTheme=!1;success=!1;showAvailabilityContactForm=!1;subtitle="components-contact-form-subtitle";taskCreationSuccess;taskCreationFailed;onSuccess(t){t&&(this.success=!0)}onEmptyCatalog(){this.openDialogElement()}async componentWillLoad(){await r("tet-components",this.language),n(this)}closeDialogElement=async()=>{await this.dialogElement.close()};openDialogElement=async()=>{await this.dialogElement.open()};createManualTask=async()=>{this.showLoader=!0;const t=await this.phoneInput.getInputHtmlElement();if((await this.phoneInput.validateInput()).length)this.showLoader=!1;else{try{const o=await(t=>{const o=l.createCallCenterTask;return(new k).setUrl(o).setData(t).setOptions({method:"POST"}).setErrorFallbackValue({TaskId:null}).execute()})(this.getTaskOptions(t.value));o&&o.TaskId?this.taskCreationSuccess.emit(o.TaskId):this.taskCreationFailed.emit()}catch(t){this.taskCreationFailed.emit(t)}this.showLoader=!1}};getTaskOptions(t){const{taskDescription:o}=this.taskOptions;return{...this.taskOptions,taskDescription:[o.trim(),`Phone: ${t}`].join(" ")}}renderLoader(){return i("div",{class:"loader-overlay"},i("tet-loader",{class:"loader"}))}renderForm(){return i("div",null,i("tet-dialog",{ref:t=>this.dialogElement=t,"footer-display":"between","is-open":this.showAvailabilityContactForm,closeOnEscape:!1,closeOnOverlayClick:!1},this.showLoader&&this.renderLoader(),i("div",{class:"form-container"},i("tet-icon",{name:"info-help-md",class:"icon icon-error icon-size"}),this.showTitle&&i("h2",{class:"form-title"},s("components-availability-contact-form-title")),i("p",{class:"form-subtitle"},s("components-availability-contact-form-subtitle")),i("tet-input",{class:"form-input","input-value":"+371",placeholder:"+37122345678",ref:t=>this.phoneInput=t||this.phoneInput,validators:this.validators,label:this.showInputLabel?s("components-availability-contact-form-input-label"):null,theme:this.darkTheme?"dark":"classic"})),i("tet-button",{clickCallback:this.closeDialogElement,slot:"footer",size:"medium",type:"secondary",theme:"light"},s("components-availability-contact-form-cancel")),i("tet-button",{slot:"footer",clickCallback:this.createManualTask,size:"medium",theme:"light"},s("components-availability-contact-form-send"))))}renderSuccessStep(){return i("div",null,i("tet-dialog",{ref:t=>this.dialogElement=t,"footer-display":"hidden","is-open":this.showAvailabilityContactForm,closeOnEscape:!0,closeOnOverlayClick:!0},i("div",{class:"form-container"},i("tet-icon",{name:"confirm-md",class:"icon icon-success icon-size"}),this.showTitle&&i("h2",{class:"form-title"},s("components-availability-contact-form-success-title")),i("p",{class:"form-subtitle"},s("components-availability-contact-form-success-subtitle")),i("tet-button",{class:"form-container-close",clickCallback:this.closeDialogElement,size:"medium",type:"primary",theme:"light"},i("span",null,s("components-availability-contact-form-success-close"))))))}render(){return i("div",{key:"9d9c05ed6374594be374a7951a560de49397d279",class:{"dark-theme":this.darkTheme}},this.success?this.renderSuccessStep():this.renderForm())}static get watchers(){return{language:[{onLanguageChange:0}]}}static get style(){return':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--contact-form-container-background:initial;--contact-form-text-color:var(--color-ta600);--contact-form-loader-overlay-background:rgb(255, 255, 255);max-width:37.5rem;margin:0 auto;display:block}.dark-theme{--contact-form-container-background:var(--color-tg500);--contact-form-text-color:rgb(255, 255, 255);--contact-form-loader-overlay-background:var(--color-tg600)}.container{--border-radius:0.625rem;--box-shadow:0 0 0 0.03125rem rgba(5, 29, 89, 0.07), 0 0.1875rem 0.5625rem rgba(5, 29, 89, 0.15);--padding:2.5em 1em;--background:var(--contact-form-container-background)}.form-container{max-width:26em;display:flex;flex-direction:column;margin:0 auto;text-align:center}.form-container .icon-error{--icon-color:rgb(233, 69, 54)}.form-container .icon-success{--icon-color:rgb(22, 197, 95)}.form-container .form-input{--input-border-radius:0.625rem}.form-container-close{margin-top:2.5rem;margin-bottom:4rem;margin-left:auto;margin-right:auto}.form-container-close span{min-width:11.375rem;width:100%}.form-title{margin-bottom:0.5em;margin-top:1.5rem;font:600 2.5rem/3rem "Gilroy", "Gilroy, Arial, sans-serif";color:rgb(10, 11, 13)}.form-subtitle{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";color:rgb(67, 75, 86)}.form-input{margin-top:2em;text-align:left}.form-submit{width:fit-content;margin-top:1.5em;--button-font-size:1rem}@media only screen and (max-width: 44.9375rem){.form-submit{--button-width:100%}}.loader-overlay{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--contact-form-loader-overlay-background);z-index:100;opacity:0.75}.loader-overlay .loader{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}'}},[513,"tet-availability-contact-form",{language:[1],taskOptions:[16],submitButtonProps:[16],showTitle:[4,"show-title"],showInputLabel:[4,"show-input-label"],theme:[1],darkTheme:[4,"dark-theme"],success:[1028],showAvailabilityContactForm:[4,"show-availability-contact-form"],subtitle:[1],showLoader:[32]},[[0,"taskCreationSuccess","onSuccess"],[4,"emptyCatalog","onEmptyCatalog"]],{language:[{onLanguageChange:0}]}]);function z(){"undefined"!=typeof customElements&&["tet-availability-contact-form","tet-button","tet-dialog","tet-icon","tet-input","tet-loader"].forEach((t=>{switch(t){case"tet-availability-contact-form":customElements.get(a(t))||customElements.define(a(t),x);break;case"tet-button":customElements.get(a(t))||h();break;case"tet-dialog":customElements.get(a(t))||p();break;case"tet-icon":customElements.get(a(t))||w();break;case"tet-input":customElements.get(a(t))||u();break;case"tet-loader":customElements.get(a(t))||g()}}))}export{x as T,z as d}
|
|
1
|
+
import{p as t,H as o,d as e,f as n,h as i,t as a}from"./p-ChxhsA_J.js";import{p as r,t as s}from"./p-B8FP4SAH.js";import{e as l,A as f,c,H as m}from"./p-BMd3uvm2.js";import{R as d}from"./p-Cg7SayH7.js";import{d as h}from"./p-CwSl5E57.js";import{d as p}from"./p-CO0VSTHD.js";import{d as w}from"./p-CfmV2Jgh.js";import{d as u}from"./p-x60Po9AL.js";import{d as g}from"./p-v3jmLiwp.js";const y=t=>new Promise((o=>{setTimeout(o,t)}));class b extends Error{constructor(t){super(`Async API Error: ${t.message}`)}}class k{url;options;data;errorFallbackValue;socketTimeoutInMilliseconds=6e4;maxPollingAttempts=45;dataRetrievalMethod="polling";defaultOptions={headers:{Accept:"application/json","Content-Type":"application/json"}};operationIdHeader="X-Operation";operationEventName=".operation.status";setUrl(t){return this.url=t,this}setOptions(t){return this.options=t,this}setData(t){return this.data=t,this}setErrorFallbackValue(t){return this.errorFallbackValue=t,this}getOperationId(t){return t.headers.get(this.operationIdHeader)??""}handleError(t){return this.errorFallbackValue?Promise.resolve(this.errorFallbackValue):Promise.reject(new b(t))}async pollOperationsEndpoint(t){const o=await(async(t,o,{millisecondsToWait:e=1e3,maxExecutionTries:n=10}={})=>{let i=await t(),a=n;for(;!o(i);){if(--a<=0)throw new Error(`Execute Until: maximum tries of ${n} reached`);await y(e),i=await t()}return i})((()=>(async t=>{let o;try{o=new URL(t,l.operations).href}catch(t){return console.error(t),Promise.reject()}const e=(new f).setUrl(o).setOptions({method:"GET"}).setErrorFallbackValue({}).execute(!0);return(await e).json()})(t)),(({state:t,reason:o="unknown"})=>{if("failed"===t)throw new Error(`Failed due to "${o}"`);return"completed"===t}),{maxExecutionTries:this.maxPollingAttempts});return o.data}getDataUsingPolling(t){return new Promise((async(o,e)=>{try{o(await this.pollOperationsEndpoint(t))}catch(t){e(new b(t))}}))}getDataUsingWebSockets(t){return new Promise(((o,e)=>{const n=c(),i=setTimeout((async()=>{n.disconnect(),e(new b(new Error(`web socket connection timed out after ${this.socketTimeoutInMilliseconds/1e3} seconds`)))}),this.socketTimeoutInMilliseconds);n.channel(`operations-${t}`).listen(this.operationEventName,(t=>{const{data:{state:e,data:a}}=t;"completed"===e&&(clearTimeout(i),o(a),n.disconnect())})).error((t=>{clearTimeout(i),e(new b(t))}))}))}createAsyncRequestPromise(t){return("polling"===this.dataRetrievalMethod?this.getDataUsingPolling:this.getDataUsingWebSockets).bind(this)(t)}async execute(){const t=(new f).setUrl(this.url).setData(this.data).setOptions({...this.defaultOptions,...this.options});let o;try{o=await t.execute(!0)}catch(t){return this.handleError(t)}if(o.status!==m.Accepted)return this.handleError(new Error("Request was not accepted."));const e=this.getOperationId(o);return this.createAsyncRequestPromise(e)}}class v{errorMessage;latvianPhoneNumberRegex="^(((\\+371|00371)[26])|[26])([0-9]{7}$)";phoneNumberRegex="^(?:00|\\+)\\d+$";constructor(t){this.errorMessage=t}getErrorMessage(){return this.errorMessage}validate(t){const o=t.trim();return"2"===o.slice(0,1)||"6"===o.slice(0,1)||"+371"===o.slice(0,4)||"00371"===o.slice(0,5)?RegExp(this.latvianPhoneNumberRegex).test(o):RegExp(this.phoneNumberRegex).test(o)}}const x=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.taskCreationSuccess=e(this,"taskCreationSuccess"),this.taskCreationFailed=e(this,"taskCreationFailed")}phoneInput;dialogElement;validators=[new v("components-validation-incorrect-phone"),new d("components-validation-required")];showLoader=!1;language="lv";onLanguageChange(t){r("tet-components",t).then((()=>n(this)))}taskOptions;submitButtonProps={};showTitle=!0;showInputLabel=!1;theme="classic";darkTheme=!1;success=!1;showAvailabilityContactForm=!1;subtitle="components-contact-form-subtitle";taskCreationSuccess;taskCreationFailed;onSuccess(t){t&&(this.success=!0)}onEmptyCatalog(){this.openDialogElement()}async componentWillLoad(){await r("tet-components",this.language),n(this)}closeDialogElement=async()=>{await this.dialogElement.close()};openDialogElement=async()=>{await this.dialogElement.open()};createManualTask=async()=>{this.showLoader=!0;const t=await this.phoneInput.getInputHtmlElement();if((await this.phoneInput.validateInput()).length)this.showLoader=!1;else{try{const o=await(t=>{const o=l.createCallCenterTask;return(new k).setUrl(o).setData(t).setOptions({method:"POST"}).setErrorFallbackValue({TaskId:null}).execute()})(this.getTaskOptions(t.value));o&&o.TaskId?this.taskCreationSuccess.emit(o.TaskId):this.taskCreationFailed.emit()}catch(t){this.taskCreationFailed.emit(t)}this.showLoader=!1}};getTaskOptions(t){const{taskDescription:o}=this.taskOptions;return{...this.taskOptions,taskDescription:[o.trim(),`Phone: ${t}`].join(" ")}}renderLoader(){return i("div",{class:"loader-overlay"},i("tet-loader",{class:"loader"}))}renderForm(){return i("div",null,i("tet-dialog",{ref:t=>this.dialogElement=t,"footer-display":"between","is-open":this.showAvailabilityContactForm,closeOnEscape:!1,closeOnOverlayClick:!1},this.showLoader&&this.renderLoader(),i("div",{class:"form-container"},i("tet-icon",{name:"info-help-md",class:"icon icon-error icon-size"}),this.showTitle&&i("h2",{class:"form-title"},s("components-availability-contact-form-title")),i("p",{class:"form-subtitle"},s("components-availability-contact-form-subtitle")),i("tet-input",{class:"form-input","input-value":"+371",placeholder:"+37122345678",ref:t=>this.phoneInput=t||this.phoneInput,validators:this.validators,label:this.showInputLabel?s("components-availability-contact-form-input-label"):null,theme:this.darkTheme?"dark":"classic"})),i("tet-button",{clickCallback:this.closeDialogElement,slot:"footer",size:"medium",type:"secondary",theme:"light"},s("components-availability-contact-form-cancel")),i("tet-button",{slot:"footer",clickCallback:this.createManualTask,size:"medium",theme:"light"},s("components-availability-contact-form-send"))))}renderSuccessStep(){return i("div",null,i("tet-dialog",{ref:t=>this.dialogElement=t,"footer-display":"hidden","is-open":this.showAvailabilityContactForm,closeOnEscape:!0,closeOnOverlayClick:!0},i("div",{class:"form-container"},i("tet-icon",{name:"confirm-md",class:"icon icon-success icon-size"}),this.showTitle&&i("h2",{class:"form-title"},s("components-availability-contact-form-success-title")),i("p",{class:"form-subtitle"},s("components-availability-contact-form-success-subtitle")),i("tet-button",{class:"form-container-close",clickCallback:this.closeDialogElement,size:"medium",type:"primary",theme:"light"},i("span",null,s("components-availability-contact-form-success-close"))))))}render(){return i("div",{key:"9d9c05ed6374594be374a7951a560de49397d279",class:{"dark-theme":this.darkTheme}},this.success?this.renderSuccessStep():this.renderForm())}static get watchers(){return{language:[{onLanguageChange:0}]}}static get style(){return':host{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit;padding:0;margin:0}:host{--color-gray-light:#cdd2de;--color-ta070:#f5f6f8;--color-ta080:#e6e8ee;--color-ta100:#cdd2de;--color-ta200:#9ba5be;--color-ta300:#69789c;--color-ta500:#1e356a;--color-ta600:#051d59;--color-tc090:#d6e6fd;--color-tc100:#d1dffe;--color-tc300:#75a1fb;--color-tc500:#1a70f6;--color-tc600:#0060f5;--color-td500:#00F1F2;--color-td600:#01cbe0;--color-tf600:#f53b2a;--color-tg300:#2b3036;--color-tg400:#1d2128;--color-tg500:#12171e;--color-tg600:#01050c;--color-th500:#f5f5f5;--color-ti500:#869198;--color-ti600:#aeb7bc;--text-font:Gilroy, serif;--text-color-darker:var(--color-ta600);--text-color-dark:var(--color-ta500);--text-color-dark-theme:var(--color-th500);--icons-font:Tet Icons, serif}.icon.tet-search{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-search::before{content:"\\e86e"}.icon.tet-close-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close-circled::before{content:"\\e85a"}.icon.tet-close{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-close::before{content:"\\e85b"}.icon.tet-check-circled{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check-circled::before{content:"\\e86c"}.icon.tet-check{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-check::before{content:"\\e855"}.icon.tet-chevron-up{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-up::before{content:"\\e859"}.icon.tet-chevron-down{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-chevron-down::before{content:"\\e856"}.icon.tet-clipboard{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-clipboard::before{content:"\\e86a"}.icon.tet-info{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-info::before{content:"\\e81d"}.icon.tet-done{font-family:var(--icons-font);font-weight:400;font-style:normal;font-size:1.25rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;speak:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}.icon.tet-done::before{content:"\\e867"}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--contact-form-container-background:initial;--contact-form-text-color:var(--color-ta600);--contact-form-loader-overlay-background:rgb(255, 255, 255);max-width:37.5rem;margin:0 auto;display:block}.dark-theme{--contact-form-container-background:var(--color-tg500);--contact-form-text-color:rgb(255, 255, 255);--contact-form-loader-overlay-background:var(--color-tg600)}.container{--border-radius:0.625rem;--box-shadow:0 0 0 0.03125rem rgba(5, 29, 89, 0.07), 0 0.1875rem 0.5625rem rgba(5, 29, 89, 0.15);--padding:2.5em 1em;--background:var(--contact-form-container-background)}.form-container{max-width:26em;display:flex;flex-direction:column;margin:0 auto;text-align:center}.form-container .icon-error{--icon-color:rgb(233, 69, 54)}.form-container .icon-success{--icon-color:rgb(22, 197, 95)}.form-container .form-input{--input-border-radius:0.625rem}.form-container-close{margin-top:2.5rem;margin-bottom:4rem;margin-left:auto;margin-right:auto}.form-container-close span{min-width:11.375rem;width:100%}.form-title{margin-bottom:0.5em;margin-top:1.5rem;font:600 2.5rem/3rem "Gilroy", "Gilroy, Arial, sans-serif";color:rgb(10, 11, 13)}.form-subtitle{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif";color:rgb(67, 75, 86)}.form-input{margin-top:2em;text-align:left}.form-submit{width:fit-content;margin-top:1.5em;--button-font-size:1rem}@media only screen and (max-width: 44.9375rem){.form-submit{--button-width:100%}}.loader-overlay{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--contact-form-loader-overlay-background);z-index:100;opacity:0.75}.loader-overlay .loader{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}'}},[513,"tet-availability-contact-form",{language:[1],taskOptions:[16],submitButtonProps:[16],showTitle:[4,"show-title"],showInputLabel:[4,"show-input-label"],theme:[1],darkTheme:[4,"dark-theme"],success:[1028],showAvailabilityContactForm:[4,"show-availability-contact-form"],subtitle:[1],showLoader:[32]},[[0,"taskCreationSuccess","onSuccess"],[4,"emptyCatalog","onEmptyCatalog"]],{language:[{onLanguageChange:0}]}]);function z(){"undefined"!=typeof customElements&&["tet-availability-contact-form","tet-button","tet-dialog","tet-icon","tet-input","tet-loader"].forEach((t=>{switch(t){case"tet-availability-contact-form":customElements.get(a(t))||customElements.define(a(t),x);break;case"tet-button":customElements.get(a(t))||h();break;case"tet-dialog":customElements.get(a(t))||p();break;case"tet-icon":customElements.get(a(t))||w();break;case"tet-input":customElements.get(a(t))||u();break;case"tet-loader":customElements.get(a(t))||g()}}))}export{x as T,z as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as o,H as t,h as e,t as f}from"./p-
|
|
1
|
+
import{p as o,H as t,h as e,t as f}from"./p-ChxhsA_J.js";import{d as n}from"./p-CfmV2Jgh.js";const a=o(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow()}variant="attention";theme="light";iconMapping={attention:"tc-attention",info:"tc-info-circle",danger:"tc-close-circle",success:"tc-check-circle"};render(){return e("div",{key:"a453de116577bf89a66b6684d2a7508f1819a1a0",class:{container:!0,[this.theme]:!0,[this.variant]:!0}},e("tet-icon",{key:"ed770ef2b4034482019cb7a798746fb46a908063",class:"container__icon",name:this.iconMapping[this.variant]}),e("div",{key:"18ee8cff16b22d28acdb1d6b7063105483f0e5e8",class:"content"},e("slot",{key:"aa7aa1028db2b088f7aa4f5e2546929aa0d89bd9",name:"title"})," ",e("slot",{key:"0d5e533d75086e18aa494cb918882016142bf86a",name:"description"})))}static get style(){return'@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff")}@font-face{font-family:"Gilroy";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff")}@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff")}:host{--font-family-fallback:Gilroy, Arial, sans-serif;--font-family-headline:Gilroy;--font-family-content:Inter, var(--font-family-fallback);font-family:var(--font-family-content)}:host{--inline-message-color:var(--tc-text-primary);--inline-message-padding:0.75rem 0;--inline-message-border-top:none;--inline-message-border-bottom-default:0.03125rem solid var(--tc-border-tertiary);--inline-message-border-bottom:var(--inline-message-border-bottom-default);display:block}.container{display:flex;align-items:baseline;gap:0.5rem;padding:var(--inline-message-padding);border-top:var(--inline-message-border-top);border-bottom:var(--inline-message-border-bottom);color:var(--inline-message-color)}.container.dark{--inline-message-color:var(--tc-text-primary-dark);--inline-message-border-bottom-default:0.03125rem solid var(--tc-border-tertiary-dark)}.container.attention .container__icon{--icon-color:var(--tc-alert-accent-warning)}.container.attention.dark .container__icon{--icon-color:var(--tc-alert-accent-warning-dark)}.container.info .container__icon{--icon-color:var(--tc-alert-accent-info)}.container.info.dark .container__icon{--icon-color:var(--tc-alert-accent-info-dark)}.container.success .container__icon{--icon-color:var(--tc-alert-accent-success)}.container.success.dark .container__icon{--icon-color:var(--tc-alert-accent-success-dark)}.container.danger .container__icon{--icon-color:var(--tc-alert-accent-error)}.container.danger.dark .container__icon{--icon-color:var(--tc-alert-accent-error-dark)}::slotted([slot=title]){font:600 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}::slotted([slot=description]){font:400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif"}.content{position:relative;max-width:32.5rem;top:0.125rem}'}},[769,"tet-inline-message",{variant:[1],theme:[1]}]);function r(){"undefined"!=typeof customElements&&["tet-inline-message","tet-icon"].forEach((o=>{switch(o){case"tet-inline-message":customElements.get(f(o))||customElements.define(f(o),a);break;case"tet-icon":customElements.get(f(o))||n()}}))}export{a as T,r as d}
|