@tet/tet-components 1.4.138-testing → 1.4.139-production
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{http-codes-C-IXSZGG.js → http-codes-D0eSyfH-.js} +1 -1
- package/dist/cjs/{index-DKg1QTRW.js → index-CbS7RiVd.js} +5 -13
- package/dist/cjs/{index-Bo0hF6YQ.js → index-DaKfTj-9.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{product-comparison-f-u42TDe.js → product-comparison-ed-KZo7G.js} +1 -1
- package/dist/cjs/{string-D0kCSyUd.js → string-CL-wkThZ.js} +0 -4
- package/dist/cjs/tet-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tet-address-offers-filters-products_2.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers-view.cjs.entry.js +4 -4
- package/dist/cjs/tet-address-offers_5.cjs.entry.js +6 -6
- package/dist/cjs/tet-assembler.cjs.entry.js +4 -4
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tet-autocomplete_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-b2b-check-out-form_5.cjs.entry.js +4 -4
- package/dist/cjs/tet-b2b-configurator.cjs.entry.js +5 -5
- package/dist/cjs/tet-banner-nav.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/tet-checkbox_3.cjs.entry.js +1 -1
- package/dist/cjs/tet-cloud-application-form-dialog.cjs.entry.js +4 -4
- package/dist/cjs/tet-cloud-configurator.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/tet-countdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-dialog.cjs.entry.js +4 -4
- package/dist/cjs/tet-display.cjs.entry.js +1 -1
- package/dist/cjs/tet-divider.cjs.entry.js +1 -1
- package/dist/cjs/tet-dynamic-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-expandable-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/tet-feedback-form.cjs.entry.js +4 -4
- package/dist/cjs/tet-filter.cjs.entry.js +1 -1
- package/dist/cjs/tet-floating-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-font-weight.cjs.entry.js +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 +4 -4
- 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 +4 -4
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +2 -2
- package/dist/cjs/tet-switch.cjs.entry.js +1 -1
- package/dist/cjs/tet-table.cjs.entry.js +1 -1
- package/dist/cjs/tet-tag_2.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/{translations-f2lO6WcB.js → translations-CpNdr9Fz.js} +2 -2
- package/dist/cjs/{typecheck--Bs-bZ_K.js → typecheck-Do6mN8Vg.js} +0 -2
- 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-DH1iZWF5.js → p-8h1tapoC.js} +1 -1
- package/dist/components/{p-DeFz-G5N.js → p-BDPrGRUz.js} +1 -1
- package/dist/components/{p-Be5i4YJ4.js → p-BE1nqGHm.js} +1 -1
- package/dist/components/{p-Dvk7syez.js → p-BGcOLcpC.js} +1 -1
- package/dist/components/{p-BgpTlgXX.js → p-BOgw-zg9.js} +1 -1
- package/dist/components/{p-BsNlQtYx.js → p-BPthlQbg.js} +1 -1
- package/dist/components/p-BTndlvfE.js +1 -0
- package/dist/components/{p-BOavyx-7.js → p-BWuEHM7o.js} +1 -1
- package/dist/components/{p-DJQWSjRR.js → p-BXYUK59l.js} +1 -1
- package/dist/components/{p-P_J147mb.js → p-BYCkBBh3.js} +1 -1
- package/dist/components/{p-CIPUn8d2.js → p-BZpTinTH.js} +1 -1
- package/dist/components/{p-DHOPNeBR.js → p-B_LwYeuy.js} +1 -1
- package/dist/components/{p-Cfy46lS6.js → p-BiJHAF1q.js} +1 -1
- package/dist/components/p-Bme7YRKY.js +1 -0
- package/dist/components/{p-Bdt0k-v8.js → p-Bu96kzmm.js} +1 -1
- package/dist/components/{p-B4MTqXan.js → p-C-vuu8-B.js} +1 -1
- package/dist/components/{p-ChbxhvnA.js → p-CE_CfOmS.js} +1 -1
- package/dist/components/{p-CT-Ge0pF.js → p-CS6PYnk4.js} +1 -1
- package/dist/components/{p-CFDvtl5l.js → p-CSMiNRZ8.js} +1 -1
- package/dist/components/{p-CIMNJ4X2.js → p-Cb8FVu3R.js} +1 -1
- package/dist/components/{p-B_RQCK28.js → p-CdOMJGTE.js} +1 -1
- package/dist/components/{p-c36Z0_hK.js → p-Ck43CGtD.js} +1 -1
- package/dist/components/{p-Bq1skzzY.js → p-CnQt3T29.js} +1 -1
- package/dist/components/{p-DKavMVSi.js → p-CsfBw8Mq.js} +1 -1
- package/dist/components/{p-DRJ0zjoF.js → p-CxWSFzrp.js} +1 -1
- package/dist/components/{p-BBMx2Nbt.js → p-D-0UTSXy.js} +1 -1
- package/dist/components/{p-BLY0RO0L.js → p-D0M4DEGd.js} +1 -1
- package/dist/components/p-D7VzbrYI.js +1 -0
- package/dist/components/{p-Do_1srPW.js → p-DBcEGlbO.js} +1 -1
- package/dist/components/{p-BWmFtcLN.js → p-DKBs405f.js} +1 -1
- package/dist/components/p-DWykMdv1.js +1 -0
- package/dist/components/{p-Clw2OLNj.js → p-DYiqWFDE.js} +1 -1
- package/dist/components/{p-lmIrgmgo.js → p-DdqbLotc.js} +1 -1
- package/dist/components/{p-CjOuXGOS.js → p-DpLTu8KM.js} +1 -1
- package/dist/components/{p-KBNSpMwX.js → p-DrcVsjAJ.js} +1 -1
- package/dist/components/{p-DQaNW2BX.js → p-DyKy62G1.js} +1 -1
- package/dist/components/{p-CMbAQKoe.js → p-Dzsvzn-Z.js} +1 -1
- package/dist/components/{p-Dzb-TXLO.js → p-FAwanRiM.js} +1 -1
- package/dist/components/{p-BZ9cVPPC.js → p-HAvODPLk.js} +1 -1
- package/dist/components/p-PSmQfHhl.js +1 -0
- package/dist/components/{p-DgcBdohb.js → p-PbCJkJAg.js} +1 -1
- package/dist/components/{p-BZ0uDmYr.js → p-QPymGNaM.js} +1 -1
- package/dist/components/{p-4OtGLxTM.js → p-SWy-pabH.js} +1 -1
- package/dist/components/p-_2UzwYR8.js +1 -0
- package/dist/components/p-fqxag4j9.js +1 -0
- package/dist/components/{p-ClWTLrk_.js → p-gfxVW_EU.js} +1 -1
- package/dist/components/{p-zkmKLYHg.js → p-i2wF1G8t.js} +1 -1
- package/dist/components/{p-B8ElCfnM.js → p-khIxWxRF.js} +1 -1
- package/dist/components/{p-DcqGjbQO.js → p-xdqErcm4.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-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-BIwnNday.js} +1 -1
- package/dist/esm/{index-DfBhGuuz.js → index-DFwTKM0O.js} +1 -1
- package/dist/esm/{index-ClX9TYQY.js → index-DRLfH-G3.js} +5 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{product-comparison-DJko3TwF.js → product-comparison-BLY2XeQZ.js} +1 -1
- package/dist/esm/{string-D0GJDW-O.js → string-C9BlrGW8.js} +1 -4
- package/dist/esm/tet-accordion.entry.js +1 -1
- package/dist/esm/tet-address-offers-filters-products_2.entry.js +4 -4
- package/dist/esm/tet-address-offers-view.entry.js +4 -4
- package/dist/esm/tet-address-offers_5.entry.js +6 -6
- package/dist/esm/tet-assembler.entry.js +4 -4
- package/dist/esm/tet-autocomplete-dropdown.entry.js +2 -2
- package/dist/esm/tet-autocomplete_2.entry.js +3 -3
- package/dist/esm/tet-b2b-check-out-form_5.entry.js +4 -4
- package/dist/esm/tet-b2b-configurator.entry.js +5 -5
- package/dist/esm/tet-banner-nav.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/tet-checkbox_3.entry.js +1 -1
- package/dist/esm/tet-cloud-application-form-dialog.entry.js +4 -4
- package/dist/esm/tet-cloud-configurator.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/tet-countdown.entry.js +1 -1
- package/dist/esm/tet-counter.entry.js +1 -1
- package/dist/esm/tet-dialog.entry.js +4 -4
- package/dist/esm/tet-display.entry.js +1 -1
- package/dist/esm/tet-divider.entry.js +1 -1
- package/dist/esm/tet-dynamic-card.entry.js +1 -1
- package/dist/esm/tet-expandable-input.entry.js +1 -1
- package/dist/esm/tet-expansion-panel.entry.js +1 -1
- package/dist/esm/tet-feedback-form.entry.js +4 -4
- package/dist/esm/tet-filter.entry.js +1 -1
- package/dist/esm/tet-floating-block.entry.js +1 -1
- package/dist/esm/tet-font-weight.entry.js +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 +4 -4
- 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 +4 -4
- package/dist/esm/tet-navigation-mobile.entry.js +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +2 -2
- package/dist/esm/tet-switch.entry.js +1 -1
- package/dist/esm/tet-table.entry.js +1 -1
- package/dist/esm/tet-tag_2.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/{translations-4zQUcigP.js → translations-DlbHIyQg.js} +2 -2
- package/dist/esm/{typecheck-Bvqcvhjw.js → typecheck-CaZKtSyx.js} +1 -2
- package/dist/tet-components/{p-d89ae495.entry.js → p-001782bf.entry.js} +1 -1
- package/dist/tet-components/{p-d2db496b.entry.js → p-09289fa1.entry.js} +1 -1
- package/dist/tet-components/{p-bb325aa4.entry.js → p-0dcca890.entry.js} +1 -1
- package/dist/tet-components/{p-f5315eaf.entry.js → p-0ec02698.entry.js} +1 -1
- package/dist/tet-components/{p-eca2fc2f.entry.js → p-0ee97792.entry.js} +1 -1
- package/dist/tet-components/{p-1d997c7d.entry.js → p-1652ed96.entry.js} +1 -1
- package/dist/tet-components/{p-7fdd634a.entry.js → p-19cf7e5a.entry.js} +1 -1
- package/dist/tet-components/{p-baf6ba9e.entry.js → p-1a559db5.entry.js} +1 -1
- package/dist/tet-components/{p-73aca8b1.entry.js → p-1a8c6e45.entry.js} +1 -1
- package/dist/tet-components/{p-e13f06c4.entry.js → p-23f7e7c9.entry.js} +1 -1
- package/dist/tet-components/{p-616d3818.entry.js → p-2d821378.entry.js} +1 -1
- package/dist/tet-components/{p-591a092a.entry.js → p-2ee60b13.entry.js} +1 -1
- package/dist/tet-components/{p-1556076a.entry.js → p-33fbdaff.entry.js} +1 -1
- package/dist/tet-components/{p-3d8635c1.entry.js → p-38896daf.entry.js} +1 -1
- package/dist/tet-components/{p-b315a1c8.entry.js → p-39118ce2.entry.js} +1 -1
- package/dist/tet-components/{p-0690117e.entry.js → p-39efe805.entry.js} +1 -1
- package/dist/tet-components/{p-f7e3a24b.entry.js → p-3f9f1252.entry.js} +1 -1
- package/dist/tet-components/{p-39be547b.entry.js → p-443b131b.entry.js} +1 -1
- package/dist/tet-components/{p-47484c33.entry.js → p-4538e30b.entry.js} +1 -1
- package/dist/tet-components/{p-8436df88.entry.js → p-4569b8bc.entry.js} +1 -1
- package/dist/tet-components/{p-15bddc3d.entry.js → p-4b94b11b.entry.js} +1 -1
- package/dist/tet-components/{p-26dd3cb0.entry.js → p-4cd9856e.entry.js} +1 -1
- package/dist/tet-components/{p-7ffa074d.entry.js → p-5356548e.entry.js} +1 -1
- package/dist/tet-components/{p-4f47079e.entry.js → p-535de739.entry.js} +1 -1
- package/dist/tet-components/{p-43d1f956.entry.js → p-53ddf6d9.entry.js} +1 -1
- package/dist/tet-components/{p-2bd1b7ec.entry.js → p-54baa574.entry.js} +1 -1
- package/dist/tet-components/{p-139d4cad.entry.js → p-55253942.entry.js} +1 -1
- package/dist/tet-components/{p-29948163.entry.js → p-570f744c.entry.js} +1 -1
- package/dist/tet-components/{p-2e7cb093.entry.js → p-5926d29a.entry.js} +1 -1
- package/dist/tet-components/{p-f79c8697.entry.js → p-5a31ce02.entry.js} +1 -1
- package/dist/tet-components/{p-53b4947e.entry.js → p-5bb5e9bf.entry.js} +1 -1
- package/dist/tet-components/{p-dfdf946f.entry.js → p-5c4d6ad0.entry.js} +1 -1
- package/dist/tet-components/p-5cdae921.entry.js +1 -0
- package/dist/tet-components/{p-8bdcb714.entry.js → p-5e7ef84f.entry.js} +1 -1
- package/dist/tet-components/{p-f5a86256.entry.js → p-5ffae43b.entry.js} +1 -1
- package/dist/tet-components/{p-a0340287.entry.js → p-6370d477.entry.js} +1 -1
- package/dist/tet-components/{p-4a22c9a8.entry.js → p-644d19eb.entry.js} +1 -1
- package/dist/tet-components/{p-77ae360e.entry.js → p-6788614b.entry.js} +1 -1
- package/dist/tet-components/{p-499ff632.entry.js → p-6837420f.entry.js} +1 -1
- package/dist/tet-components/{p-24bdeb37.entry.js → p-72f10abe.entry.js} +1 -1
- package/dist/tet-components/{p-cd267067.entry.js → p-74e87653.entry.js} +1 -1
- package/dist/tet-components/{p-7105253e.entry.js → p-7e55881a.entry.js} +1 -1
- package/dist/tet-components/{p-517168f6.entry.js → p-7f0e7265.entry.js} +1 -1
- package/dist/tet-components/{p-2e4e81a5.entry.js → p-7fae4d11.entry.js} +1 -1
- package/dist/tet-components/{p-87d015b3.entry.js → p-80eb8975.entry.js} +1 -1
- package/dist/tet-components/{p-d2abe02d.entry.js → p-863b9c4f.entry.js} +1 -1
- package/dist/tet-components/{p-b4c45d6b.entry.js → p-87379696.entry.js} +1 -1
- package/dist/tet-components/{p-98ae4292.entry.js → p-89aa61b4.entry.js} +1 -1
- package/dist/tet-components/{p-a2a4917a.entry.js → p-8f76849e.entry.js} +1 -1
- package/dist/tet-components/{p-b5efc6d4.entry.js → p-931af84a.entry.js} +1 -1
- package/dist/tet-components/{p-306ff942.entry.js → p-9491b52d.entry.js} +1 -1
- package/dist/tet-components/{p-tf8lKgfD.js → p-B0ZtMor0.js} +1 -1
- package/dist/tet-components/p-C9BlrGW8.js +1 -0
- package/dist/tet-components/p-CaZKtSyx.js +1 -0
- package/dist/{components/p-DePtMqzY.js → tet-components/p-DHhdzkdo.js} +1 -1
- package/dist/tet-components/p-DRLfH-G3.js +3 -0
- package/dist/tet-components/{p-5bd0a0c8.entry.js → p-a5f552c8.entry.js} +1 -1
- package/dist/tet-components/p-a7Y8PX2f.js +1 -0
- package/dist/tet-components/{p-92ef3a39.entry.js → p-ba792152.entry.js} +1 -1
- package/dist/tet-components/{p-d88d8689.entry.js → p-bb003b93.entry.js} +1 -1
- package/dist/tet-components/{p-394b9c6b.entry.js → p-bb4b016d.entry.js} +1 -1
- package/dist/tet-components/{p-10e789d9.entry.js → p-bc5450cb.entry.js} +1 -1
- package/dist/tet-components/{p-eb3a8119.entry.js → p-bd94906d.entry.js} +1 -1
- package/dist/tet-components/{p-bd42d182.entry.js → p-bf441a6f.entry.js} +1 -1
- package/dist/tet-components/{p-cb1c05ab.entry.js → p-bf79a574.entry.js} +1 -1
- package/dist/tet-components/{p-c989a64d.entry.js → p-c21eb460.entry.js} +1 -1
- package/dist/tet-components/{p-79e4a166.entry.js → p-c444f4bc.entry.js} +1 -1
- package/dist/tet-components/{p-dca1a4c2.entry.js → p-c5c88bf8.entry.js} +1 -1
- package/dist/tet-components/{p-3242f182.entry.js → p-cbbb2f74.entry.js} +1 -1
- package/dist/tet-components/{p-8a9d5ef1.entry.js → p-ce59d1cb.entry.js} +1 -1
- package/dist/tet-components/{p-9ab737dd.entry.js → p-d450dfc2.entry.js} +1 -1
- package/dist/tet-components/{p-19343cc6.entry.js → p-d527b903.entry.js} +1 -1
- package/dist/tet-components/{p-5a31f21d.entry.js → p-d9e7883d.entry.js} +1 -1
- package/dist/tet-components/{p-21a59a4f.entry.js → p-debd1123.entry.js} +1 -1
- package/dist/tet-components/{p-d44bea09.entry.js → p-df12fcae.entry.js} +1 -1
- package/dist/tet-components/{p-b8c0433c.entry.js → p-e78ed300.entry.js} +1 -1
- package/dist/tet-components/p-eb2f7125.entry.js +1 -0
- package/dist/tet-components/{p-c32edb32.entry.js → p-ec9bbd9c.entry.js} +1 -1
- package/dist/tet-components/{p-47b6721e.entry.js → p-f1672161.entry.js} +1 -1
- package/dist/tet-components/{p-1deb89e1.entry.js → p-f34234f1.entry.js} +1 -1
- package/dist/tet-components/{p-3ab52911.entry.js → p-f359076b.entry.js} +1 -1
- package/dist/tet-components/{p-a410109c.entry.js → p-f519649a.entry.js} +1 -1
- package/dist/tet-components/{p-8b3ea797.entry.js → p-f60aa760.entry.js} +1 -1
- package/dist/tet-components/{p-B8Zjo2sa.js → p-v8vRDDsl.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 -388
- package/package.json +1 -1
- package/dist/cjs/tet-datepicker-header_4.cjs.entry.js +0 -387
- package/dist/cjs/tet-datepicker.cjs.entry.js +0 -132
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.css +0 -393
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.css +0 -455
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.css +0 -382
- package/dist/collection/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.css +0 -382
- package/dist/collection/components/simple/inputs/tet-datepicker/tet-datepicker.css +0 -380
- package/dist/components/p-1M2reaCU.js +0 -1
- package/dist/components/p-9ItXFJZ6.js +0 -1
- package/dist/components/p-CQfy7CVi.js +0 -1
- package/dist/components/p-Cef0hbKH.js +0 -1
- package/dist/components/p-CoQ-OVcl.js +0 -1
- package/dist/components/p-Cwu8jtXG.js +0 -1
- package/dist/components/p-D0GJDW-O.js +0 -1
- package/dist/components/p-D9qys4GX.js +0 -1
- package/dist/components/p-cnUvPtFj.js +0 -1
- package/dist/components/p-nb3MHK7A.js +0 -1
- package/dist/components/p-tQ4vjHQ1.js +0 -1
- package/dist/components/tet-datepicker-header.d.ts +0 -11
- package/dist/components/tet-datepicker-header.js +0 -1
- package/dist/components/tet-datepicker-month-view.d.ts +0 -11
- package/dist/components/tet-datepicker-month-view.js +0 -1
- package/dist/components/tet-datepicker-multi-year-view.d.ts +0 -11
- package/dist/components/tet-datepicker-multi-year-view.js +0 -1
- package/dist/components/tet-datepicker-year-view.d.ts +0 -11
- package/dist/components/tet-datepicker-year-view.js +0 -1
- package/dist/components/tet-datepicker.d.ts +0 -11
- package/dist/components/tet-datepicker.js +0 -1
- package/dist/esm/tet-datepicker-header_4.entry.js +0 -382
- package/dist/esm/tet-datepicker.entry.js +0 -130
- package/dist/tet-components/p-4aa2dbc8.entry.js +0 -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-Bvqcvhjw.js +0 -1
- package/dist/tet-components/p-ClX9TYQY.js +0 -3
- package/dist/tet-components/p-D0GJDW-O.js +0 -1
- package/dist/tet-components/p-b849774e.entry.js +0 -1
- package/dist/tet-components/p-e5c07d62.entry.js +0 -1
- package/dist/tet-components/p-t-BNeeWq.js +0 -1
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-header/tet-datepicker-header.d.ts +0 -21
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-month-view/tet-datepicker-month-view.d.ts +0 -45
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-multi-year-view/tet-datepicker-multi-year-view.d.ts +0 -20
- package/dist/types/components/simple/inputs/tet-datepicker/partials/tet-datepicker-year-view/tet-datepicker-year-view.d.ts +0 -20
- package/dist/types/components/simple/inputs/tet-datepicker/tet-datepicker.d.ts +0 -47
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-BTndlvfE.js";export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-BTndlvfE.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 n}from"./tet-asset-availability-addresses.js";import{TetAutocomplete as c}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 v}from"./tet-b2b-compare-card.js";import{TetB2bConfigurator as h}from"./tet-b2b-configurator.js";import{TetB2bConfiguratorCart as k}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 E}from"./tet-business-card.js";import{TetBusinessCompareCard as P}from"./tet-business-compare-card.js";import{TetBusinessNavigation as A}from"./tet-business-navigation.js";import{TetBusinessRoundStepper as B}from"./tet-business-round-stepper.js";import{TetBusinessSummaryCard as T}from"./tet-business-summary-card.js";import{TetButton as N}from"./tet-button.js";import{TetCardList as O}from"./tet-card-list.js";import{TetCarousel as q}from"./tet-carousel.js";import{TetCheckbox as z}from"./tet-checkbox.js";import{TetCloudApplicationFormDialog as C}from"./tet-cloud-application-form-dialog.js";import{TetCloudConfigurator as D}from"./tet-cloud-configurator.js";import{TetColors as F}from"./tet-colors.js";import{TetCompareCard as G}from"./tet-compare-card.js";import{TetCompareCardV2 as H}from"./tet-compare-card-v2.js";import{TetCompareCardV3 as I}from"./tet-compare-card-v3.js";import{TetCompareCards as J}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{TetDialog as R}from"./tet-dialog.js";import{TetDisplay as S}from"./tet-display.js";import{TetDivider as U}from"./tet-divider.js";import{TetDropdown as V}from"./tet-dropdown.js";import{TetDynamicCard as W}from"./tet-dynamic-card.js";import{TetExpandableInput as X}from"./tet-expandable-input.js";import{TetExpansionPanel as Y}from"./tet-expansion-panel.js";import{TetFeedbackForm as Z}from"./tet-feedback-form.js";import{TetFilter as $}from"./tet-filter.js";import{TetFloatingBlock as _}from"./tet-floating-block.js";import{TetFontWeight as tt}from"./tet-font-weight.js";import{TetFonts as rt}from"./tet-fonts.js";import{TetGrid as ot}from"./tet-grid.js";import{TetIcon as mt}from"./tet-icon.js";import{TetInlineMessage as et}from"./tet-inline-message.js";import{TetInput as st}from"./tet-input.js";import{TetLayout as it}from"./tet-layout.js";import{TetLink as pt}from"./tet-link.js";import{TetLinkCardList as ft}from"./tet-link-card-list.js";import{TetLoader as at}from"./tet-loader.js";import{TetMenu as jt}from"./tet-menu.js";import{TetMenuMobile as nt}from"./tet-menu-mobile.js";import{TetMiniCompareCard as ct}from"./tet-mini-compare-card.js";import{TetMultiStepDialog as dt}from"./tet-multi-step-dialog.js";import{TetNavigationMobile as lt}from"./tet-navigation-mobile.js";import{TetNewsCardList as ut}from"./tet-news-card-list.js";import{TetNotification as bt}from"./tet-notification.js";import{TetNumberInput as gt}from"./tet-number-input.js";import{TetPlaceholder as vt}from"./tet-placeholder.js";import{TetPosition as ht}from"./tet-position.js";import{TetPriceView as kt}from"./tet-price-view.js";import{TetRadio as wt}from"./tet-radio.js";import{TetRadioBlocks as yt}from"./tet-radio-blocks.js";import{TetRangeSlider as xt}from"./tet-range-slider.js";import{TetRoundStepper as Et}from"./tet-round-stepper.js";import{TetSelectionList as Pt}from"./tet-selection-list.js";import{TetSnickerCard as At}from"./tet-snicker-card.js";import{TetSnickerCardGroup as Bt}from"./tet-snicker-card-group.js";import{TetSpacing as Tt}from"./tet-spacing.js";import{TetSpinner as Nt}from"./tet-spinner.js";import{TetStepperInput as Ot}from"./tet-stepper-input.js";import{TetStepperV3 as qt}from"./tet-stepper-v3.js";import{TetStickyOffer as zt}from"./tet-sticky-offer.js";import{TetSupportSearch as Ct}from"./tet-support-search.js";import{TetSwitch as Dt}from"./tet-switch.js";import{TetTabContent as Ft}from"./tet-tab-content.js";import{TetTabHeader as Gt}from"./tet-tab-header.js";import{TetTable as Ht}from"./tet-table.js";import{TetTag as It}from"./tet-tag.js";import{TetTagGroup as Jt}from"./tet-tag-group.js";import{TetText as Kt}from"./tet-text.js";import{TetTextList as Lt}from"./tet-text-list.js";import{TetTextarea as Mt}from"./tet-textarea.js";import{TetThankYouViewV3 as Qt}from"./tet-thank-you-view-v3.js";import{TetTooltip as Rt}from"./tet-tooltip.js";const St=r=>{"undefined"!=typeof customElements&&[o,m,e,i,p,f,j,n,c,d,l,u,v,h,k,w,y,x,E,P,A,B,T,N,O,q,z,C,D,F,G,H,I,J,K,L,M,Q,R,S,U,V,W,X,Y,Z,$,_,tt,rt,ot,mt,et,st,it,pt,ft,at,jt,nt,ct,dt,lt,ut,bt,gt,vt,ht,kt,wt,yt,xt,Et,Pt,At,Bt,Tt,Nt,Ot,qt,zt,Ct,Dt,Ft,Gt,Ht,It,Jt,Kt,Lt,Mt,Qt,Rt].forEach((o=>{customElements.get(t(o.is))||customElements.define(t(o.is),o,r)}))};export{St as defineCustomElements}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as o,H as e,d as t,f as r,h as n,t as a}from"./p-nb3MHK7A.js";import{p as i,t as c}from"./p-DePtMqzY.js";import{R as s}from"./p-Cg7SayH7.js";import{d as f}from"./p-BsNlQtYx.js";import{d as l}from"./p-c36Z0_hK.js";import{d as m}from"./p-Cfy46lS6.js";import{d}from"./p-CFDvtl5l.js";import{d as b}from"./p-Clw2OLNj.js";class p{errorMessage;phoneNumberRegex="^[26][0-9]{7}$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o.trim();return RegExp(this.phoneNumberRegex).test(e)}}class h{errorMessage;emailAddressRegex="^(([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}))$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o?.trim();if(!e)return!1;const t=e.lastIndexOf("@");return!(-1!==t&&e.substring(0,t).length>64)&&RegExp(this.emailAddressRegex).test(e)}}class u{errorMessage;companyRegistrationNumberRegex="^\\d{11}$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){return!o||RegExp(this.companyRegistrationNumberRegex).test(o)}}class y{errorMessage;nameRegex="^[\\p{L} \\-–—,.]+$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o?.trim();return!!e&&new RegExp(this.nameRegex,"u").test(e)}}const g=o(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.submitCheckOutForm=t(this,"submit-check-out-form")}checkOutForm;dialogElement;extraFieldsSlotElement;language="lv";theme;submitCheckOutForm;onLanguageChange(o){i("tet-components",o).then((()=>r(this)))}async open(){await this.dialogElement.open()}async close(){await this.dialogElement.close()}async componentWillLoad(){await i("tet-components",this.language),r(this)}getValidators(o,e="text"){const t=o.trim().toLowerCase().replace(","," un");let r="";switch(t.charAt(t.length-1)){case"s":r="phone"===e?t.replace("is","i"):t.replace(/[s]\b/g,"u");break;case"e":r=t.replace(/[e]\b/g,"i");break;default:r=t}const n=`${c("components-b2b-check-out-form-validation-error")} ${"lv"===this.language?r:t}`;let a=[new s(n)];switch(e){case"email":return a.push(new h("components-b2b-check-out-form-email-validation-error")),a;case"phone":return a.push(new p("components-validation-incorrect-phone")),a;case"company-reg":return a.push(new u("components-b2b-check-out-form-company-registration-number-validation-error")),a;case"name":return a.push(new y("components-b2b-check-out-form-name-validation-error")),a;default:return a}}renderInput(o,e,t,r="text",a){return n("tet-input",{id:o,class:"modal-form-card__input",theme:this.theme,label:`${e} *`,placeholder:t||e,maxlength:a,..."phone"===r&&{isPhoneNumber:!0},validators:this.getValidators(e,r)})}async validateInputFields(){const o=Array.from(this.checkOutForm.getElementsByTagName("tet-input")),e=Object.values(o).map((async o=>o.validateInput())),t=(await Promise.all(e)).filter((o=>o&&o.length>0)),r=Array.from(this.checkOutForm.getElementsByTagName("tet-checkbox"))[0];return r.setError(!r.checked),0===t.length&&!!r.checked}async handleSubmit(){if(!await this.validateInputFields())return;const o=Array.from(this.checkOutForm.getElementsByTagName("tet-input"));let e={};o.forEach((o=>{const t=o.querySelector("input").value;e={...e,[o.id]:t}})),this.submitCheckOutForm.emit({...e,...this.extraFieldsSubmissionData})}get extraFieldsElements(){return this.extraFieldsSlotElement.assignedElements().flatMap((o=>Array.from(o.querySelectorAll("input[id], tet-input[id]")).filter((o=>o instanceof HTMLInputElement||"value"in o))))}get extraFieldsSubmissionData(){return this.extraFieldsElements.reduce(((o,e)=>(o[e.id]=this.getExtraFieldValue(e),o)),{})}getExtraFieldValue(o){switch(o.tagName.toLowerCase()){case"input":return o.value;case"tet-input":return o.querySelector("input").value;default:return""}}render(){const{theme:o}=this;return n("tet-dialog",{key:"d92c5340c16bfcf74cf8c59f3385d31137b8c081",class:"modal-form-card",headerTitle:c("components-b2b-check-out-form-header"),theme:o,closeOnOverlayClick:!1,footerDisplay:"right",ref:o=>{this.dialogElement=o}},n("div",{key:"818acbbd52b4173972f71ab93da1beb69d34f410",class:{"modal-form-card-content":!0,[`${o}`]:!0}},n("div",{key:"cd871ecd677f7b2f06f99ff372e38b685ebb63e2",class:"modal-form-card-content-header"},n("div",{key:"eb8c3a8750c68520a4bde5fe01174426252df8f5",class:"icon-wrapper"},n("tet-icon",{key:"5e9693cb2498e79de6f7a9b9152dc7275ef37fd8",class:"icon",name:"tc-company-1"})),n("span",{key:"fce4827b80c1806161ecf8d1d032cb3f17275615",class:"modal-form-card-content-header__title"},c("components-b2b-check-out-form-title")),n("span",{key:"d5ee0e0cebaa84e36ff816b964683a9201b66843",class:"modal-form-card-content-header__description"},c("components-b2b-check-out-form-description"))),n("div",{key:"0e843e28d1f11e7236618e2d4dabcd3fe3aafd40",class:"modal-form-card-content-accordion-wrapper"},n("slot",{key:"a6343b4b92885af45e581aea6dcf914c79435bab",name:"cart"})),n("form",{key:"1109f8b9329bef1b5c13fe9e2dfb913ffae323f7",id:"checkOutForm",class:"modal-form-card-form",ref:o=>this.checkOutForm=o},n("div",{key:"ca38a28f88556e66ce46eb2320f0ab79565bfa10",class:"modal-form-card-input__row"},this.renderInput("companyRegNr",c("components-b2b-check-out-form-company-registration-number-input-label"),"40000000001","company-reg","11"),this.renderInput("companyName",c("components-b2b-check-out-form-company-name-input-label"))),this.renderInput("address",c("components-b2b-check-out-form-address-input-label"),c("components-b2b-check-out-form-address-input-placeholder")),this.renderInput("nameSurname",c("components-b2b-check-out-form-name-input-label"),"","name"),n("div",{key:"218fa3490d0fface196196001e8babf6ec13cdab",class:"modal-form-card-input__row"},this.renderInput("email",c("components-b2b-check-out-form-email-input-label"),"contact@company.com","email"),this.renderInput("phoneNr",c("components-b2b-check-out-form-phone-number-input-label"),"22222222","phone","8")),n("tet-checkbox",{key:"4e645f942f09be896b93322bc9daf2178a1e9a34",class:"modal-form-card-content-checkbox",label:c("components-check-out-form-privacy-policy"),theme:o}),n("slot",{key:"762c147e9c70bceab584ef6b83319ebec97fe647",name:"extra-fields",ref:o=>this.extraFieldsSlotElement=o}))),n("div",{key:"e13d036894c28c098929178c3a83fb43230a88a3",slot:"footer",class:"modal-form-card-footer"},n("tet-button",{key:"0bc5f6931a6441655042f9b899b36dc7cdca834e",type:"secondary",size:"medium",theme:o,onClick:()=>{this.dialogElement.close()}},c("components-b2b-check-out-form-close-button-label")),n("tet-button",{key:"58ac0c604fbb20cc6121241a5aea88a0f4bd073c",type:"primary",size:"medium",theme:o,onClick:()=>this.handleSubmit()},c("components-b2b-check-out-form-submit-button-label"))))}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{display:flex;align-items:center}.modal-form-card{border-radius:1rem;height:fit-content;box-shadow:var(--b2b-check-out-form-border-shadow);display:flex;flex-direction:column;border:none;--dialog-header-padding:1rem 1.125rem 0.5rem 1.5rem;--dialog-body-padding:0.5rem 1.5rem 2rem;--dialog-width:53rem;--dialog-title-font-size:1.5rem}@media screen and (max-width: 46.25rem){.modal-form-card{--dialog-body-padding:0.5rem 1rem 1.5rem}}.modal-form-card-content{display:flex;flex-direction:column;height:fit-content}.modal-form-card-content.light{--b2b-check-out-form-text-color:var(--tc-text-primary);--b2b-check-out-form-input-border-color:var(--tc-border-secondary);--b2b-check-out-form-accordion-border-color:var(--tc-border-quaternary);--b2b-check-out-form-border-shadow:var(--tc-elevation-six);--b2b-check-out-form-footer-border-color:var(--tc-border-quaternary);--b2b-check-out-form-accordion-background-color:var(--tc-layer-secondary);--b2b-check-out-form-icon-background-color:var(--tc-layer-inverse-primary);--b2b-check-out-form-icon-color:var(--tc-layer-primary)}.modal-form-card-content.dark{--b2b-check-out-form-text-color:var(--tc-text-primary-dark);--b2b-check-out-form-input-border-color:var(--tc-border-secondary-dark);--b2b-check-out-form-accordion-border-color:var(--tc-border-quaternary-dark);--b2b-check-out-form-border-shadow:var(--tc-elevation-six-dark);--b2b-check-out-form-footer-border-color:var(--tc-border-quaternary-dark);--b2b-check-out-form-accordion-background-color:var(--tc-layer-secondary-dark);--b2b-check-out-form-icon-background-color:var(--tc-layer-inverse-primary-dark);--b2b-check-out-form-icon-color:var(--tc-layer-primary-dark)}.modal-form-card-content-header{display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:1.5rem}.modal-form-card-content-header__title{font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif";padding-top:1rem}.modal-form-card-content-header__description{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.modal-form-card-content-accordion-wrapper{border:1px solid var(--b2b-check-out-form-accordion-border-color);border-radius:1rem}.modal-form-card-content-checkbox{--tet-link-color:var(--b2b-check-out-form-text-color)}.modal-form-card-footer{display:flex;align-items:center;justify-content:flex-end;gap:1rem;border-top:1px solid var(--b2b-check-out-form-footer-border-color)}@media screen and (max-width: 46.25rem){.modal-form-card-footer{justify-content:space-between;gap:0;width:100%}}.modal-form-card-form{display:flex;flex-direction:column;gap:1.5rem;padding-top:2rem}@media screen and (max-width: 46.25rem){.modal-form-card-form{gap:1rem;padding-top:1.5rem}}.modal-form-card-input__row{display:flex;flex-direction:row;gap:1.5rem;width:100%}@media screen and (max-width: 46.25rem){.modal-form-card-input__row{gap:1rem;flex-direction:column}}.modal-form-card__input{width:100%;--input-border-radius:0.625rem;--input-border-color:var(--b2b-check-out-form-input-border-color);--accordion-background-color:var(--b2b-check-out-form-input-border-color)}.modal-form-card .cart-header{display:flex;flex-direction:row;justify-content:space-between}.modal-form-card .icon-wrapper{display:flex;border-radius:50%;background-color:var(--b2b-check-out-form-icon-background-color)}.modal-form-card .icon{--icon-color:var(--b2b-check-out-form-icon-color)}'}},[769,"tet-b2b-check-out-form",{language:[1],theme:[1],open:[64],close:[64]},void 0,{language:[{onLanguageChange:0}]}]);function w(){"undefined"!=typeof customElements&&["tet-b2b-check-out-form","tet-button","tet-checkbox","tet-dialog","tet-icon","tet-input"].forEach((o=>{switch(o){case"tet-b2b-check-out-form":customElements.get(a(o))||customElements.define(a(o),g);break;case"tet-button":customElements.get(a(o))||f();break;case"tet-checkbox":customElements.get(a(o))||l();break;case"tet-dialog":customElements.get(a(o))||m();break;case"tet-icon":customElements.get(a(o))||d();break;case"tet-input":customElements.get(a(o))||b()}}))}export{g as T,w as d}
|
|
1
|
+
import{p as o,H as e,d as t,f as r,h as n,t as a}from"./p-BTndlvfE.js";import{p as i,t as c}from"./p-Bme7YRKY.js";import{R as s}from"./p-Cg7SayH7.js";import{d as f}from"./p-BPthlQbg.js";import{d as l}from"./p-Ck43CGtD.js";import{d as m}from"./p-BiJHAF1q.js";import{d}from"./p-CSMiNRZ8.js";import{d as b}from"./p-DYiqWFDE.js";class p{errorMessage;phoneNumberRegex="^[26][0-9]{7}$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o.trim();return RegExp(this.phoneNumberRegex).test(e)}}class h{errorMessage;emailAddressRegex="^(([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}))$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o?.trim();if(!e)return!1;const t=e.lastIndexOf("@");return!(-1!==t&&e.substring(0,t).length>64)&&RegExp(this.emailAddressRegex).test(e)}}class u{errorMessage;companyRegistrationNumberRegex="^\\d{11}$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){return!o||RegExp(this.companyRegistrationNumberRegex).test(o)}}class y{errorMessage;nameRegex="^[\\p{L} \\-–—,.]+$";constructor(o){this.errorMessage=o}getErrorMessage(){return this.errorMessage}validate(o){const e=o?.trim();return!!e&&new RegExp(this.nameRegex,"u").test(e)}}const g=o(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.submitCheckOutForm=t(this,"submit-check-out-form")}checkOutForm;dialogElement;extraFieldsSlotElement;language="lv";theme;submitCheckOutForm;onLanguageChange(o){i("tet-components",o).then((()=>r(this)))}async open(){await this.dialogElement.open()}async close(){await this.dialogElement.close()}async componentWillLoad(){await i("tet-components",this.language),r(this)}getValidators(o,e="text"){const t=o.trim().toLowerCase().replace(","," un");let r="";switch(t.charAt(t.length-1)){case"s":r="phone"===e?t.replace("is","i"):t.replace(/[s]\b/g,"u");break;case"e":r=t.replace(/[e]\b/g,"i");break;default:r=t}const n=`${c("components-b2b-check-out-form-validation-error")} ${"lv"===this.language?r:t}`;let a=[new s(n)];switch(e){case"email":return a.push(new h("components-b2b-check-out-form-email-validation-error")),a;case"phone":return a.push(new p("components-validation-incorrect-phone")),a;case"company-reg":return a.push(new u("components-b2b-check-out-form-company-registration-number-validation-error")),a;case"name":return a.push(new y("components-b2b-check-out-form-name-validation-error")),a;default:return a}}renderInput(o,e,t,r="text",a){return n("tet-input",{id:o,class:"modal-form-card__input",theme:this.theme,label:`${e} *`,placeholder:t||e,maxlength:a,..."phone"===r&&{isPhoneNumber:!0},validators:this.getValidators(e,r)})}async validateInputFields(){const o=Array.from(this.checkOutForm.getElementsByTagName("tet-input")),e=Object.values(o).map((async o=>o.validateInput())),t=(await Promise.all(e)).filter((o=>o&&o.length>0)),r=Array.from(this.checkOutForm.getElementsByTagName("tet-checkbox"))[0];return r.setError(!r.checked),0===t.length&&!!r.checked}async handleSubmit(){if(!await this.validateInputFields())return;const o=Array.from(this.checkOutForm.getElementsByTagName("tet-input"));let e={};o.forEach((o=>{const t=o.querySelector("input").value;e={...e,[o.id]:t}})),this.submitCheckOutForm.emit({...e,...this.extraFieldsSubmissionData})}get extraFieldsElements(){return this.extraFieldsSlotElement.assignedElements().flatMap((o=>Array.from(o.querySelectorAll("input[id], tet-input[id]")).filter((o=>o instanceof HTMLInputElement||"value"in o))))}get extraFieldsSubmissionData(){return this.extraFieldsElements.reduce(((o,e)=>(o[e.id]=this.getExtraFieldValue(e),o)),{})}getExtraFieldValue(o){switch(o.tagName.toLowerCase()){case"input":return o.value;case"tet-input":return o.querySelector("input").value;default:return""}}render(){const{theme:o}=this;return n("tet-dialog",{key:"d92c5340c16bfcf74cf8c59f3385d31137b8c081",class:"modal-form-card",headerTitle:c("components-b2b-check-out-form-header"),theme:o,closeOnOverlayClick:!1,footerDisplay:"right",ref:o=>{this.dialogElement=o}},n("div",{key:"818acbbd52b4173972f71ab93da1beb69d34f410",class:{"modal-form-card-content":!0,[`${o}`]:!0}},n("div",{key:"cd871ecd677f7b2f06f99ff372e38b685ebb63e2",class:"modal-form-card-content-header"},n("div",{key:"eb8c3a8750c68520a4bde5fe01174426252df8f5",class:"icon-wrapper"},n("tet-icon",{key:"5e9693cb2498e79de6f7a9b9152dc7275ef37fd8",class:"icon",name:"tc-company-1"})),n("span",{key:"fce4827b80c1806161ecf8d1d032cb3f17275615",class:"modal-form-card-content-header__title"},c("components-b2b-check-out-form-title")),n("span",{key:"d5ee0e0cebaa84e36ff816b964683a9201b66843",class:"modal-form-card-content-header__description"},c("components-b2b-check-out-form-description"))),n("div",{key:"0e843e28d1f11e7236618e2d4dabcd3fe3aafd40",class:"modal-form-card-content-accordion-wrapper"},n("slot",{key:"a6343b4b92885af45e581aea6dcf914c79435bab",name:"cart"})),n("form",{key:"1109f8b9329bef1b5c13fe9e2dfb913ffae323f7",id:"checkOutForm",class:"modal-form-card-form",ref:o=>this.checkOutForm=o},n("div",{key:"ca38a28f88556e66ce46eb2320f0ab79565bfa10",class:"modal-form-card-input__row"},this.renderInput("companyRegNr",c("components-b2b-check-out-form-company-registration-number-input-label"),"40000000001","company-reg","11"),this.renderInput("companyName",c("components-b2b-check-out-form-company-name-input-label"))),this.renderInput("address",c("components-b2b-check-out-form-address-input-label"),c("components-b2b-check-out-form-address-input-placeholder")),this.renderInput("nameSurname",c("components-b2b-check-out-form-name-input-label"),"","name"),n("div",{key:"218fa3490d0fface196196001e8babf6ec13cdab",class:"modal-form-card-input__row"},this.renderInput("email",c("components-b2b-check-out-form-email-input-label"),"contact@company.com","email"),this.renderInput("phoneNr",c("components-b2b-check-out-form-phone-number-input-label"),"22222222","phone","8")),n("tet-checkbox",{key:"4e645f942f09be896b93322bc9daf2178a1e9a34",class:"modal-form-card-content-checkbox",label:c("components-check-out-form-privacy-policy"),theme:o}),n("slot",{key:"762c147e9c70bceab584ef6b83319ebec97fe647",name:"extra-fields",ref:o=>this.extraFieldsSlotElement=o}))),n("div",{key:"e13d036894c28c098929178c3a83fb43230a88a3",slot:"footer",class:"modal-form-card-footer"},n("tet-button",{key:"0bc5f6931a6441655042f9b899b36dc7cdca834e",type:"secondary",size:"medium",theme:o,onClick:()=>{this.dialogElement.close()}},c("components-b2b-check-out-form-close-button-label")),n("tet-button",{key:"58ac0c604fbb20cc6121241a5aea88a0f4bd073c",type:"primary",size:"medium",theme:o,onClick:()=>this.handleSubmit()},c("components-b2b-check-out-form-submit-button-label"))))}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{display:flex;align-items:center}.modal-form-card{border-radius:1rem;height:fit-content;box-shadow:var(--b2b-check-out-form-border-shadow);display:flex;flex-direction:column;border:none;--dialog-header-padding:1rem 1.125rem 0.5rem 1.5rem;--dialog-body-padding:0.5rem 1.5rem 2rem;--dialog-width:53rem;--dialog-title-font-size:1.5rem}@media screen and (max-width: 46.25rem){.modal-form-card{--dialog-body-padding:0.5rem 1rem 1.5rem}}.modal-form-card-content{display:flex;flex-direction:column;height:fit-content}.modal-form-card-content.light{--b2b-check-out-form-text-color:var(--tc-text-primary);--b2b-check-out-form-input-border-color:var(--tc-border-secondary);--b2b-check-out-form-accordion-border-color:var(--tc-border-quaternary);--b2b-check-out-form-border-shadow:var(--tc-elevation-six);--b2b-check-out-form-footer-border-color:var(--tc-border-quaternary);--b2b-check-out-form-accordion-background-color:var(--tc-layer-secondary);--b2b-check-out-form-icon-background-color:var(--tc-layer-inverse-primary);--b2b-check-out-form-icon-color:var(--tc-layer-primary)}.modal-form-card-content.dark{--b2b-check-out-form-text-color:var(--tc-text-primary-dark);--b2b-check-out-form-input-border-color:var(--tc-border-secondary-dark);--b2b-check-out-form-accordion-border-color:var(--tc-border-quaternary-dark);--b2b-check-out-form-border-shadow:var(--tc-elevation-six-dark);--b2b-check-out-form-footer-border-color:var(--tc-border-quaternary-dark);--b2b-check-out-form-accordion-background-color:var(--tc-layer-secondary-dark);--b2b-check-out-form-icon-background-color:var(--tc-layer-inverse-primary-dark);--b2b-check-out-form-icon-color:var(--tc-layer-primary-dark)}.modal-form-card-content-header{display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:1.5rem}.modal-form-card-content-header__title{font:600 1.5rem/1.75rem "Gilroy", "Gilroy, Arial, sans-serif";padding-top:1rem}.modal-form-card-content-header__description{font:400 1rem/1.5rem "Inter", "Gilroy, Arial, sans-serif"}.modal-form-card-content-accordion-wrapper{border:1px solid var(--b2b-check-out-form-accordion-border-color);border-radius:1rem}.modal-form-card-content-checkbox{--tet-link-color:var(--b2b-check-out-form-text-color)}.modal-form-card-footer{display:flex;align-items:center;justify-content:flex-end;gap:1rem;border-top:1px solid var(--b2b-check-out-form-footer-border-color)}@media screen and (max-width: 46.25rem){.modal-form-card-footer{justify-content:space-between;gap:0;width:100%}}.modal-form-card-form{display:flex;flex-direction:column;gap:1.5rem;padding-top:2rem}@media screen and (max-width: 46.25rem){.modal-form-card-form{gap:1rem;padding-top:1.5rem}}.modal-form-card-input__row{display:flex;flex-direction:row;gap:1.5rem;width:100%}@media screen and (max-width: 46.25rem){.modal-form-card-input__row{gap:1rem;flex-direction:column}}.modal-form-card__input{width:100%;--input-border-radius:0.625rem;--input-border-color:var(--b2b-check-out-form-input-border-color);--accordion-background-color:var(--b2b-check-out-form-input-border-color)}.modal-form-card .cart-header{display:flex;flex-direction:row;justify-content:space-between}.modal-form-card .icon-wrapper{display:flex;border-radius:50%;background-color:var(--b2b-check-out-form-icon-background-color)}.modal-form-card .icon{--icon-color:var(--b2b-check-out-form-icon-color)}'}},[769,"tet-b2b-check-out-form",{language:[1],theme:[1],open:[64],close:[64]},void 0,{language:[{onLanguageChange:0}]}]);function w(){"undefined"!=typeof customElements&&["tet-b2b-check-out-form","tet-button","tet-checkbox","tet-dialog","tet-icon","tet-input"].forEach((o=>{switch(o){case"tet-b2b-check-out-form":customElements.get(a(o))||customElements.define(a(o),g);break;case"tet-button":customElements.get(a(o))||f();break;case"tet-checkbox":customElements.get(a(o))||l();break;case"tet-dialog":customElements.get(a(o))||m();break;case"tet-icon":customElements.get(a(o))||d();break;case"tet-input":customElements.get(a(o))||b()}}))}export{g as T,w as d}
|