@tet/tet-components 1.4.109-testing → 1.4.110-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/{address-d3d97441.js → address-db3de695.js} +1 -1
- package/dist/cjs/{assets-f0cfef4d.js → assets-294836fa.js} +1 -1
- package/dist/cjs/{async-request-a617bfe6.js → async-request-f54455d3.js} +19 -19
- package/dist/cjs/{http-codes-0eae7bd3.js → http-codes-3b8718ff.js} +1 -1
- package/dist/cjs/{index-4b423f33.js → index-19a7608f.js} +1 -1
- package/dist/cjs/{index-3242ff3f.js → index-faec4c52.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{phone-f6be08ae.js → phone-e6a926f8.js} +2 -2
- package/dist/cjs/{product-comparison-fd3cbd23.js → product-comparison-1b20429d.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_4.cjs.entry.js +7 -7
- package/dist/cjs/tet-address-search.cjs.entry.js +4 -4
- package/dist/cjs/tet-assembler.cjs.entry.js +3 -3
- package/dist/cjs/tet-asset-addresses.cjs.entry.js +3 -3
- package/dist/cjs/tet-autocomplete-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-autocomplete.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-b2b-service-calculator.cjs.entry.js +3 -3
- 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-lines.cjs.entry.js +4 -4
- 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_2.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 -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 +3 -3
- package/dist/cjs/tet-compare-cards-tab.cjs.entry.js +3 -3
- package/dist/cjs/tet-compare-cards_2.cjs.entry.js +3 -3
- package/dist/cjs/tet-components.cjs.js +1 -1
- package/dist/cjs/tet-contact-form.cjs.entry.js +5 -5
- package/dist/cjs/tet-contact-info.cjs.entry.js +1 -1
- package/dist/cjs/tet-container_2.cjs.entry.js +1 -1
- package/dist/cjs/tet-countdown.cjs.entry.js +1 -1
- package/dist/cjs/tet-counter.cjs.entry.js +1 -1
- package/dist/cjs/tet-customer-assets.cjs.entry.js +3 -3
- 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-label.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-loader.cjs.entry.js +1 -1
- package/dist/cjs/tet-macd-view.cjs.entry.js +6 -6
- package/dist/cjs/tet-menu-mobile.cjs.entry.js +1 -1
- package/dist/cjs/tet-menu.cjs.entry.js +1 -1
- package/dist/cjs/tet-mini-compare-card.cjs.entry.js +1 -1
- package/dist/cjs/tet-multi-step-dialog.cjs.entry.js +3 -3
- package/dist/cjs/tet-navigation-mobile.cjs.entry.js +3 -3
- package/dist/cjs/tet-news-card-list.cjs.entry.js +1 -1
- package/dist/cjs/tet-notification.cjs.entry.js +1 -1
- package/dist/cjs/tet-number-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/tet-position.cjs.entry.js +1 -1
- package/dist/cjs/tet-price-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio-blocks.cjs.entry.js +1 -1
- package/dist/cjs/tet-radio.cjs.entry.js +1 -1
- package/dist/cjs/tet-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/tet-referral.cjs.entry.js +5 -5
- package/dist/cjs/tet-round-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tet-snicker-card-badge.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-v2.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper-v3.cjs.entry.js +1 -1
- package/dist/cjs/tet-stepper.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-tab-header.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-v2.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view-v3.cjs.entry.js +3 -3
- package/dist/cjs/tet-thank-you-view.cjs.entry.js +1 -1
- package/dist/cjs/tet-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-block.cjs.entry.js +1 -1
- package/dist/cjs/tet-tv-gift-list.cjs.entry.js +1 -1
- package/dist/cjs/{theme-wrapper-66880718.js → theme-wrapper-46514846.js} +2 -2
- package/dist/cjs/translations-ccafaff5.js +253 -0
- package/dist/collection/components/views/tet-cloud-configurator/tet-cloud-configurator.js +0 -1
- package/dist/collection/services/api/services/translations.js +24 -8
- package/dist/collection/services/translations/translation-dictionary.js +8 -0
- package/dist/collection/services/translations/translations-manager.js +115 -24
- package/dist/collection/services/translations/translations.js +1 -5
- package/dist/components/index.js +1 -1
- package/dist/components/{p-636addf8.js → p-03d57ef1.js} +14 -14
- package/dist/components/{p-ed08f5c9.js → p-04fcd75f.js} +1 -1
- package/dist/components/{p-1b944431.js → p-0a9b21dd.js} +3 -3
- package/dist/components/{p-029c98e2.js → p-0ce42ec4.js} +1 -1
- package/dist/components/{p-e2dfc149.js → p-1b43d459.js} +1 -1
- package/dist/components/{p-4c8ecb57.js → p-1bf4f4cc.js} +1 -1
- package/dist/components/{p-90821fe8.js → p-202a8195.js} +5 -5
- package/dist/components/{p-f333eb4f.js → p-22d09286.js} +10 -10
- package/dist/components/{p-f7f459ce.js → p-242b5e16.js} +1 -1
- package/dist/components/{p-8f61e16c.js → p-2d9e6723.js} +7 -7
- package/dist/components/{p-9a3299ca.js → p-3608b336.js} +2 -2
- package/dist/components/{p-5f555c17.js → p-3829b6a4.js} +1 -1
- package/dist/components/{p-3d15252a.js → p-3c6ce705.js} +2 -2
- package/dist/components/{p-3be94cf3.js → p-3f182f62.js} +3 -3
- package/dist/components/{p-486d6dab.js → p-45a93f15.js} +1 -1
- package/dist/components/{p-f58fcdf1.js → p-4a3aa36a.js} +1 -1
- package/dist/components/{p-829b8d02.js → p-4bf8f609.js} +2 -2
- package/dist/components/{p-43f43609.js → p-4f4248f8.js} +1 -1
- package/dist/components/{p-99fc1300.js → p-500c653a.js} +6 -6
- package/dist/components/{p-dc13c5ac.js → p-50441f6e.js} +2 -2
- package/dist/components/{p-c438a4ae.js → p-520429de.js} +6 -6
- package/dist/components/{p-8c840b9f.js → p-5ad4353d.js} +2 -2
- package/dist/components/{p-0cb11ace.js → p-5f069c08.js} +1 -1
- package/dist/components/{p-11313fde.js → p-6008f83a.js} +1 -1
- package/dist/components/{p-2a2822bb.js → p-609ae45c.js} +7 -7
- package/dist/components/{p-ddfcfd20.js → p-65347151.js} +1 -1
- package/dist/components/{p-b55289e2.js → p-687ffed4.js} +4 -4
- package/dist/components/{p-e296086b.js → p-6f4c6246.js} +1 -1
- package/dist/components/{p-ca3ef754.js → p-7228562d.js} +7 -7
- package/dist/components/{p-3766232d.js → p-7fd8e8b7.js} +19 -19
- package/dist/components/{p-317746ab.js → p-83bbc61f.js} +2 -2
- package/dist/components/{p-d65b7994.js → p-8c2de0b5.js} +5 -5
- package/dist/components/{p-c45c36b8.js → p-9ee1eb21.js} +10 -10
- package/dist/components/{p-f8ec4cde.js → p-9f2598e7.js} +2 -2
- package/dist/components/{p-2658271e.js → p-a11311d8.js} +2 -2
- package/dist/components/{p-7f3e015a.js → p-a1babafa.js} +2 -2
- package/dist/components/{p-47468ad7.js → p-a4c55f94.js} +3 -3
- package/dist/components/{p-d36e8780.js → p-a60cb847.js} +3 -3
- package/dist/components/{p-25b93e8f.js → p-aa122c92.js} +1 -1
- package/dist/components/{p-de831036.js → p-ad5993f4.js} +1 -1
- package/dist/components/p-b1bb4cda.js +250 -0
- package/dist/components/{p-754ea39b.js → p-b7448451.js} +3 -3
- package/dist/components/{p-6c05c6b9.js → p-b76f25f6.js} +1 -1
- package/dist/components/{p-e7d5c5c7.js → p-bacb4d5d.js} +2 -2
- package/dist/components/{p-511093b3.js → p-be153cab.js} +4 -4
- package/dist/components/{p-66699b53.js → p-be8f4189.js} +3 -3
- package/dist/components/{p-0ea85682.js → p-c0046535.js} +2 -2
- package/dist/components/{p-13e4af07.js → p-c4d1919d.js} +1 -1
- package/dist/components/{p-cea2542c.js → p-c871cce1.js} +3 -3
- package/dist/components/{p-f54b29a3.js → p-cb5b6b77.js} +2 -2
- package/dist/components/{p-c837f3cc.js → p-d226c844.js} +3 -3
- package/dist/components/{p-caf5a227.js → p-d3fd782a.js} +1 -1
- package/dist/components/{p-a8911eb9.js → p-d965dce3.js} +9 -9
- package/dist/components/{p-7454b60d.js → p-da796c31.js} +7 -7
- package/dist/components/{p-ab5e98a0.js → p-ddb760af.js} +2 -2
- package/dist/components/{p-7c3df995.js → p-de00811e.js} +1 -1
- package/dist/components/{p-f33b757a.js → p-e46361b7.js} +1 -1
- package/dist/components/{p-33ddb139.js → p-ebacfe52.js} +6 -6
- package/dist/components/{p-9e7ca7ed.js → p-f7053d58.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 +24 -24
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-assembler.js +7 -7
- package/dist/components/tet-asset-addresses.js +13 -13
- package/dist/components/tet-asset-availability-addresses.js +1 -1
- package/dist/components/tet-autocomplete-dropdown.js +5 -5
- 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 +20 -20
- package/dist/components/tet-b2b-service-calculator.js +8 -8
- package/dist/components/tet-banner-nav.js +3 -3
- 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 +3 -3
- package/dist/components/tet-business-lines.js +5 -5
- package/dist/components/tet-business-navigation.js +1 -1
- package/dist/components/tet-business-round-stepper.js +2 -2
- 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 +4 -4
- package/dist/components/tet-checkbox.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +8 -8
- package/dist/components/tet-cloud-configurator.js +12 -13
- package/dist/components/tet-colors.js +1 -1
- package/dist/components/tet-compare-card-v2.js +9 -9
- package/dist/components/tet-compare-card-v3.js +10 -10
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +16 -16
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +9 -9
- package/dist/components/tet-contact-info.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-customer-assets.js +9 -9
- 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 +6 -6
- package/dist/components/tet-dialog.js +1 -1
- package/dist/components/tet-display.js +8 -8
- package/dist/components/tet-divider.js +7 -7
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-dynamic-card.js +4 -4
- package/dist/components/tet-expandable-input.js +3 -3
- package/dist/components/tet-expansion-panel.js +1 -1
- package/dist/components/tet-feedback-form.js +7 -7
- package/dist/components/tet-filter.js +4 -4
- package/dist/components/tet-floating-block.js +3 -3
- 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-label.js +3 -3
- package/dist/components/tet-layout.js +1 -1
- package/dist/components/tet-link-card-list.js +3 -3
- package/dist/components/tet-link.js +1 -1
- package/dist/components/tet-loader.js +1 -1
- package/dist/components/tet-macd-view.js +10 -10
- package/dist/components/tet-menu-mobile.js +2 -2
- package/dist/components/tet-menu.js +2 -2
- package/dist/components/tet-mini-compare-card.js +3 -3
- package/dist/components/tet-multi-step-dialog.js +5 -5
- package/dist/components/tet-navigation-mobile.js +3 -3
- package/dist/components/tet-news-card-list.js +4 -4
- 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 +7 -7
- package/dist/components/tet-price-view.js +1 -1
- package/dist/components/tet-radio-blocks.js +2 -2
- package/dist/components/tet-radio.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-referral.js +6 -6
- package/dist/components/tet-round-stepper.js +2 -2
- package/dist/components/tet-selection-list.js +1 -1
- package/dist/components/tet-snicker-card-badge.js +1 -1
- package/dist/components/tet-snicker-card-group.js +1 -1
- package/dist/components/tet-snicker-card.js +12 -12
- package/dist/components/tet-spacing.js +1 -1
- package/dist/components/tet-spinner.js +1 -1
- package/dist/components/tet-stepper-input.js +1 -1
- package/dist/components/tet-stepper-v2.js +1 -1
- package/dist/components/tet-stepper-v3.js +1 -1
- package/dist/components/tet-stepper.js +1 -1
- package/dist/components/tet-support-search.js +7 -7
- 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 +3 -3
- 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 +7 -7
- package/dist/components/tet-textarea.js +1 -1
- package/dist/components/tet-thank-you-view-v2.js +5 -5
- package/dist/components/tet-thank-you-view-v3.js +5 -5
- package/dist/components/tet-thank-you-view.js +4 -4
- package/dist/components/tet-tooltip.js +1 -1
- package/dist/components/tet-tv-gift-block.js +1 -1
- package/dist/components/tet-tv-gift-list.js +2 -2
- package/dist/esm/{address-a5f65679.js → address-804b2fd3.js} +1 -1
- package/dist/esm/{assets-785095c4.js → assets-d337f5e7.js} +1 -1
- package/dist/esm/{async-request-02db63e4.js → async-request-913220a7.js} +19 -19
- package/dist/esm/{http-codes-9125ce84.js → http-codes-8100f4ea.js} +1 -1
- package/dist/esm/{index-412df137.js → index-e3209c56.js} +1 -1
- package/dist/esm/{index-aac31bd2.js → index-e933a7d2.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{phone-05f71013.js → phone-1ea88ee5.js} +2 -2
- package/dist/esm/{product-comparison-fdb9b9cc.js → product-comparison-7fa9705a.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_4.entry.js +7 -7
- package/dist/esm/tet-address-search.entry.js +4 -4
- package/dist/esm/tet-assembler.entry.js +3 -3
- package/dist/esm/tet-asset-addresses.entry.js +3 -3
- package/dist/esm/tet-autocomplete-dropdown.entry.js +1 -1
- package/dist/esm/tet-autocomplete.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-b2b-service-calculator.entry.js +3 -3
- 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-lines.entry.js +4 -4
- 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_2.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 -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 +3 -3
- package/dist/esm/tet-compare-cards-tab.entry.js +3 -3
- package/dist/esm/tet-compare-cards_2.entry.js +3 -3
- package/dist/esm/tet-components.js +2 -2
- package/dist/esm/tet-contact-form.entry.js +5 -5
- package/dist/esm/tet-contact-info.entry.js +1 -1
- 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-customer-assets.entry.js +3 -3
- 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-label.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-loader.entry.js +1 -1
- package/dist/esm/tet-macd-view.entry.js +6 -6
- package/dist/esm/tet-menu-mobile.entry.js +1 -1
- package/dist/esm/tet-menu.entry.js +1 -1
- package/dist/esm/tet-mini-compare-card.entry.js +1 -1
- package/dist/esm/tet-multi-step-dialog.entry.js +3 -3
- package/dist/esm/tet-navigation-mobile.entry.js +3 -3
- package/dist/esm/tet-news-card-list.entry.js +1 -1
- package/dist/esm/tet-notification.entry.js +1 -1
- package/dist/esm/tet-number-input.entry.js +1 -1
- package/dist/esm/tet-placeholder.entry.js +1 -1
- package/dist/esm/tet-position.entry.js +1 -1
- package/dist/esm/tet-price-view.entry.js +1 -1
- package/dist/esm/tet-radio-blocks.entry.js +1 -1
- package/dist/esm/tet-radio.entry.js +1 -1
- package/dist/esm/tet-range-slider.entry.js +1 -1
- package/dist/esm/tet-referral.entry.js +5 -5
- package/dist/esm/tet-round-stepper.entry.js +1 -1
- package/dist/esm/tet-snicker-card-badge.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-v2.entry.js +1 -1
- package/dist/esm/tet-stepper-v3.entry.js +1 -1
- package/dist/esm/tet-stepper.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-tab-header.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-v2.entry.js +3 -3
- package/dist/esm/tet-thank-you-view-v3.entry.js +3 -3
- package/dist/esm/tet-thank-you-view.entry.js +1 -1
- package/dist/esm/tet-tooltip.entry.js +1 -1
- package/dist/esm/tet-tv-gift-block.entry.js +1 -1
- package/dist/esm/tet-tv-gift-list.entry.js +1 -1
- package/dist/esm/{theme-wrapper-72d0b9da.js → theme-wrapper-cf4d7d54.js} +2 -2
- package/dist/esm/translations-d3e380cf.js +250 -0
- package/dist/tet-components/{p-b1222ff6.entry.js → p-000577f5.entry.js} +1 -1
- package/dist/tet-components/{p-5be49fe9.entry.js → p-004a4b0e.entry.js} +1 -1
- package/dist/tet-components/{p-2e2b413d.entry.js → p-015d561d.entry.js} +1 -1
- package/dist/tet-components/{p-9e6fba5f.entry.js → p-0161caae.entry.js} +1 -1
- package/dist/tet-components/{p-e2b55e84.js → p-0190b524.js} +1 -1
- package/dist/tet-components/{p-3c79acc4.entry.js → p-04832116.entry.js} +1 -1
- package/dist/tet-components/{p-f57175df.entry.js → p-05254539.entry.js} +1 -1
- package/dist/tet-components/{p-90a121e7.entry.js → p-0792fe7a.entry.js} +1 -1
- package/dist/tet-components/{p-57937881.entry.js → p-095c8410.entry.js} +1 -1
- package/dist/tet-components/{p-403151e8.entry.js → p-095da4ac.entry.js} +1 -1
- package/dist/tet-components/{p-7e04d367.entry.js → p-0c24779b.entry.js} +1 -1
- package/dist/tet-components/{p-a91b95f0.entry.js → p-0e5baceb.entry.js} +1 -1
- package/dist/tet-components/{p-a3918a20.entry.js → p-1180ab66.entry.js} +1 -1
- package/dist/tet-components/{p-2ba08431.js → p-156b79d8.js} +1 -1
- package/dist/tet-components/{p-282e1de2.entry.js → p-17e20a98.entry.js} +1 -1
- package/dist/tet-components/{p-1e777274.entry.js → p-1a229af9.entry.js} +1 -1
- package/dist/tet-components/{p-aa33b2e8.entry.js → p-1a77a9b6.entry.js} +1 -1
- package/dist/tet-components/{p-0c02ac35.entry.js → p-1d397ef3.entry.js} +1 -1
- package/dist/tet-components/{p-c43ee172.entry.js → p-1ef0e2bc.entry.js} +1 -1
- package/dist/tet-components/{p-ff5fb9e4.entry.js → p-1f72c21b.entry.js} +1 -1
- package/dist/tet-components/{p-3a61ce24.entry.js → p-1f9c54b7.entry.js} +1 -1
- package/dist/tet-components/{p-e6d6744b.entry.js → p-1fc8e776.entry.js} +1 -1
- package/dist/tet-components/{p-97637087.entry.js → p-1fcd5b09.entry.js} +1 -1
- package/dist/tet-components/{p-350f0cc8.entry.js → p-27599139.entry.js} +1 -1
- package/dist/tet-components/{p-cc0d5a9b.entry.js → p-27c58e75.entry.js} +1 -1
- package/dist/tet-components/{p-73971e4d.entry.js → p-287d20d4.entry.js} +1 -1
- package/dist/tet-components/{p-981111e0.entry.js → p-2bade8dc.entry.js} +1 -1
- package/dist/tet-components/{p-d8518d4b.js → p-2dbe670c.js} +1 -1
- package/dist/tet-components/{p-cb6df953.entry.js → p-2ed0da53.entry.js} +1 -1
- package/dist/tet-components/{p-c0363485.entry.js → p-2f484973.entry.js} +1 -1
- package/dist/tet-components/{p-2a81ebee.entry.js → p-30eab483.entry.js} +1 -1
- package/dist/tet-components/{p-929698b3.entry.js → p-314e6906.entry.js} +1 -1
- package/dist/tet-components/{p-f6474f11.entry.js → p-32847323.entry.js} +1 -1
- package/dist/tet-components/{p-b47c0736.entry.js → p-3cbd86e4.entry.js} +1 -1
- package/dist/tet-components/{p-7dbf302e.entry.js → p-3ff9eb4f.entry.js} +1 -1
- package/dist/tet-components/{p-eaded8bd.entry.js → p-495d0f4d.entry.js} +1 -1
- package/dist/tet-components/{p-f072aa97.entry.js → p-4b1affb0.entry.js} +1 -1
- package/dist/tet-components/{p-75850241.entry.js → p-4ccb9cb8.entry.js} +1 -1
- package/dist/tet-components/{p-b88a3448.entry.js → p-4cf440ee.entry.js} +1 -1
- package/dist/tet-components/{p-66f1360e.entry.js → p-537a3452.entry.js} +1 -1
- package/dist/tet-components/{p-8689f33d.entry.js → p-54bd9fc2.entry.js} +1 -1
- package/dist/tet-components/{p-85dff432.entry.js → p-560c89e3.entry.js} +1 -1
- package/dist/tet-components/{p-63d74d15.entry.js → p-5911bb84.entry.js} +1 -1
- package/dist/tet-components/{p-83f43fdd.js → p-5abb3bea.js} +1 -1
- package/dist/tet-components/{p-9302af3a.entry.js → p-5b94cd7d.entry.js} +1 -1
- package/dist/tet-components/{p-d688fdca.entry.js → p-5d02314b.entry.js} +1 -1
- package/dist/tet-components/{p-98ba6f5d.entry.js → p-5d911ff8.entry.js} +1 -1
- package/dist/tet-components/p-660bdc27.js +1 -0
- package/dist/tet-components/{p-d2f35322.entry.js → p-6725544c.entry.js} +1 -1
- package/dist/tet-components/{p-b152fc68.entry.js → p-706552fe.entry.js} +1 -1
- package/dist/tet-components/{p-b6bfdd4e.entry.js → p-70e766f8.entry.js} +1 -1
- package/dist/tet-components/{p-d1d31561.entry.js → p-72d7cf6d.entry.js} +1 -1
- package/dist/tet-components/{p-8f4ff4bd.entry.js → p-73841b71.entry.js} +1 -1
- package/dist/tet-components/{p-662ef913.entry.js → p-73a2d403.entry.js} +1 -1
- package/dist/tet-components/{p-372f452b.entry.js → p-746d41eb.entry.js} +1 -1
- package/dist/tet-components/{p-d951657c.entry.js → p-75d79a8b.entry.js} +1 -1
- package/dist/tet-components/{p-87a2809b.entry.js → p-793b0428.entry.js} +1 -1
- package/dist/tet-components/{p-1bd93ad3.entry.js → p-7aba2238.entry.js} +1 -1
- package/dist/tet-components/{p-167b75e8.entry.js → p-7b7b9e6a.entry.js} +1 -1
- package/dist/tet-components/{p-77bec9a6.entry.js → p-7bac49d9.entry.js} +1 -1
- package/dist/tet-components/{p-811658a5.entry.js → p-7ffd2532.entry.js} +1 -1
- package/dist/tet-components/{p-01a45267.entry.js → p-805b7ea4.entry.js} +1 -1
- package/dist/tet-components/{p-4e643503.entry.js → p-84dca941.entry.js} +1 -1
- package/dist/tet-components/{p-44215fbb.entry.js → p-88da153c.entry.js} +1 -1
- package/dist/tet-components/{p-4330c786.js → p-894e34a9.js} +1 -1
- package/dist/tet-components/{p-49dba3fc.entry.js → p-8e6b042b.entry.js} +1 -1
- package/dist/tet-components/{p-258f63dc.entry.js → p-9c297f57.entry.js} +1 -1
- package/dist/tet-components/{p-94b5e078.entry.js → p-9f30d309.entry.js} +1 -1
- package/dist/tet-components/{p-025ffb5a.entry.js → p-9fecf04b.entry.js} +1 -1
- package/dist/tet-components/{p-22f62d6c.entry.js → p-a05739a9.entry.js} +1 -1
- package/dist/tet-components/{p-bc91e97f.entry.js → p-a20dfa4b.entry.js} +1 -1
- package/dist/tet-components/{p-362244bf.entry.js → p-a4188d81.entry.js} +1 -1
- package/dist/tet-components/{p-77bd8e7d.entry.js → p-a90c335e.entry.js} +1 -1
- package/dist/tet-components/{p-768c00d1.entry.js → p-aa69a74f.entry.js} +1 -1
- package/dist/tet-components/{p-3016e7c8.entry.js → p-ab42fa6b.entry.js} +1 -1
- package/dist/tet-components/p-aca88f25.js +1 -0
- package/dist/tet-components/p-af6ef106.entry.js +1 -0
- package/dist/tet-components/{p-a6d7c907.entry.js → p-b11d351c.entry.js} +1 -1
- package/dist/tet-components/{p-dcf3b911.entry.js → p-b474e15d.entry.js} +1 -1
- package/dist/tet-components/{p-ee3a7ea7.entry.js → p-b7df4462.entry.js} +1 -1
- package/dist/tet-components/{p-e9fdafc0.entry.js → p-b8e2d20f.entry.js} +1 -1
- package/dist/tet-components/{p-4c074b0b.entry.js → p-b8f1f856.entry.js} +1 -1
- package/dist/tet-components/{p-0b93059b.entry.js → p-b9f9fd5b.entry.js} +1 -1
- package/dist/tet-components/{p-bcdb7766.entry.js → p-bca053cb.entry.js} +1 -1
- package/dist/tet-components/{p-43fb9369.entry.js → p-bde831e7.entry.js} +1 -1
- package/dist/tet-components/{p-0c6a7177.entry.js → p-be3cc237.entry.js} +1 -1
- package/dist/tet-components/{p-2da19afb.entry.js → p-bed205ab.entry.js} +1 -1
- package/dist/tet-components/{p-6d1fc8db.entry.js → p-c30feca7.entry.js} +1 -1
- package/dist/tet-components/{p-7319e21f.entry.js → p-c8a13404.entry.js} +1 -1
- package/dist/tet-components/{p-3f2e515f.entry.js → p-cf25c04c.entry.js} +1 -1
- package/dist/tet-components/{p-43df67f7.entry.js → p-cf2cc85f.entry.js} +1 -1
- package/dist/tet-components/{p-75dda1fd.entry.js → p-d0c5c962.entry.js} +1 -1
- package/dist/tet-components/{p-5810a3a6.js → p-d1d433a5.js} +1 -1
- package/dist/tet-components/{p-5fa05a92.entry.js → p-d354a35f.entry.js} +1 -1
- package/dist/tet-components/{p-055f4df1.entry.js → p-d591a4c1.entry.js} +1 -1
- package/dist/tet-components/{p-ddaea568.js → p-d5c28336.js} +1 -1
- package/dist/tet-components/{p-5de41c5d.entry.js → p-de73cfe0.entry.js} +1 -1
- package/dist/tet-components/{p-460c39a5.entry.js → p-e0e92522.entry.js} +1 -1
- package/dist/tet-components/{p-6eb72733.entry.js → p-e30fa532.entry.js} +1 -1
- package/dist/tet-components/{p-99d878a5.entry.js → p-f14dfc87.entry.js} +1 -1
- package/dist/tet-components/{p-bb12c319.entry.js → p-f45ff6f2.entry.js} +1 -1
- package/dist/tet-components/{p-f00c4099.entry.js → p-f58b267f.entry.js} +1 -1
- package/dist/tet-components/{p-f4df5d30.entry.js → p-f72bba9f.entry.js} +1 -1
- package/dist/tet-components/{p-2192a732.entry.js → p-f8f23e91.entry.js} +1 -1
- package/dist/tet-components/{p-f55a404a.entry.js → p-fa323f16.entry.js} +1 -1
- package/dist/tet-components/{p-3e60d61c.js → p-fa674b43.js} +1 -1
- package/dist/tet-components/{p-4737a17f.entry.js → p-fb13ad14.entry.js} +1 -1
- package/dist/tet-components/{p-fe46ae1e.entry.js → p-fd092a06.entry.js} +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/dist/types/services/api/index.d.ts +1 -0
- package/dist/types/services/api/services/translations.d.ts +9 -4
- package/dist/types/services/translations/translation-dictionary.d.ts +3 -0
- package/dist/types/services/translations/translations-manager.d.ts +13 -6
- package/package.json +1 -1
- package/dist/cjs/translations-3b76d1ce.js +0 -168
- package/dist/components/p-982e3ace.js +0 -165
- package/dist/esm/translations-9b49c612.js +0 -165
- package/dist/tet-components/p-2358a695.js +0 -1
- package/dist/tet-components/p-90967734.entry.js +0 -1
- package/dist/tet-components/p-f81d95ae.js +0 -1
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { c as isObject } from './p-bfcce1dd.js';
|
|
2
|
-
import { e as endpoints, A as ApiRequest } from './p-7f3e015a.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Returns whether the object is empty.
|
|
6
|
-
*
|
|
7
|
-
* @param object
|
|
8
|
-
*/
|
|
9
|
-
const isEmpty = (object) => Object.keys(object).length === 0;
|
|
10
|
-
/**
|
|
11
|
-
* Flattens the object.
|
|
12
|
-
* A process function can be specified to choose which fields should be included or excluded.
|
|
13
|
-
*
|
|
14
|
-
* @param object
|
|
15
|
-
* @param processFunction
|
|
16
|
-
*/
|
|
17
|
-
const flatten = (object, processFunction = () => true) => {
|
|
18
|
-
return Object.keys(object).reduce((accumulator, key) => {
|
|
19
|
-
if (!processFunction({ key, value: object[key] })) {
|
|
20
|
-
return accumulator;
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
...accumulator,
|
|
24
|
-
...(isObject(object[key]) ? flatten(object[key], processFunction) : { [key]: object[key] })
|
|
25
|
-
};
|
|
26
|
-
}, {});
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Returns all the translations for the specified group and language.
|
|
31
|
-
*
|
|
32
|
-
* @param group
|
|
33
|
-
* @param language
|
|
34
|
-
*/
|
|
35
|
-
const requestTranslations = (group, language) => {
|
|
36
|
-
let url;
|
|
37
|
-
try {
|
|
38
|
-
url = new URL(`${language}/${group}`, endpoints.translations).href;
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
console.error(error);
|
|
42
|
-
return Promise.reject('Translations endpoint URL generation failed.');
|
|
43
|
-
}
|
|
44
|
-
const request = new ApiRequest()
|
|
45
|
-
.setUrl(url)
|
|
46
|
-
.setOptions({
|
|
47
|
-
method: 'GET',
|
|
48
|
-
})
|
|
49
|
-
.setErrorFallbackValue({});
|
|
50
|
-
return request.execute();
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* -----------------------
|
|
55
|
-
* | !!! WARNING !!! |
|
|
56
|
-
* -----------------------
|
|
57
|
-
* This is meant as a temporary workaround until stencil/store issue is fixed:
|
|
58
|
-
* https://github.com/ionic-team/stencil/issues/4135
|
|
59
|
-
*
|
|
60
|
-
* When it is fixed, we should move back to the stencil/store implementation.
|
|
61
|
-
*/
|
|
62
|
-
class TranslationManager {
|
|
63
|
-
static instance;
|
|
64
|
-
storageKey = 'translations';
|
|
65
|
-
supportedLanguages = ['lv', 'ru', 'en'];
|
|
66
|
-
translations = {};
|
|
67
|
-
mergedTranslations = {};
|
|
68
|
-
constructor() {
|
|
69
|
-
this.translations = this.getCachedTranslations();
|
|
70
|
-
}
|
|
71
|
-
static getInstance() {
|
|
72
|
-
if (!TranslationManager.instance) {
|
|
73
|
-
TranslationManager.instance = new TranslationManager();
|
|
74
|
-
}
|
|
75
|
-
return TranslationManager.instance;
|
|
76
|
-
}
|
|
77
|
-
getTranslations() {
|
|
78
|
-
return this.mergedTranslations;
|
|
79
|
-
}
|
|
80
|
-
updateTranslations = async (group, language) => {
|
|
81
|
-
try {
|
|
82
|
-
this.translations = await this.loadTranslations(group, language);
|
|
83
|
-
}
|
|
84
|
-
catch {
|
|
85
|
-
// Translations did not change, do nothing in this case.
|
|
86
|
-
}
|
|
87
|
-
this.mergedTranslations = await this.mergeTranslations(language);
|
|
88
|
-
};
|
|
89
|
-
loadTranslations = async (group, language) => {
|
|
90
|
-
if (!group || !language) {
|
|
91
|
-
return Promise.reject(`Missing translation parameters - group (${group}), language (${language}).`);
|
|
92
|
-
}
|
|
93
|
-
if (!this.supportedLanguages.includes(language)) {
|
|
94
|
-
return Promise.reject(`Translations language "${language}" is not supported.`);
|
|
95
|
-
}
|
|
96
|
-
if (this.translationsExist(group, language)) {
|
|
97
|
-
return Promise.reject(`Translations for group (${group}) and language (${language}) already exist.`);
|
|
98
|
-
}
|
|
99
|
-
const translations = this.getCachedTranslations();
|
|
100
|
-
if (!translations[group]) {
|
|
101
|
-
translations[group] = {};
|
|
102
|
-
}
|
|
103
|
-
translations[group][language] = await requestTranslations(group, language);
|
|
104
|
-
this.cacheTranslations(translations);
|
|
105
|
-
return Promise.resolve(translations);
|
|
106
|
-
};
|
|
107
|
-
mergeTranslations = async (language) => {
|
|
108
|
-
const canMerge = ({ key }) => this.supportedLanguages.includes(key) ? key === language : true;
|
|
109
|
-
return Promise.resolve(flatten(this.translations, canMerge));
|
|
110
|
-
};
|
|
111
|
-
translationsExist = (group, language) => {
|
|
112
|
-
const translations = this.translations[group]?.[language] ?? {};
|
|
113
|
-
return !isEmpty(translations);
|
|
114
|
-
};
|
|
115
|
-
getCachedTranslations = () => {
|
|
116
|
-
return JSON.parse(sessionStorage.getItem(this.storageKey)) ?? {};
|
|
117
|
-
};
|
|
118
|
-
cacheTranslations = (translations) => {
|
|
119
|
-
sessionStorage.setItem(this.storageKey, JSON.stringify(translations));
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
const translations = TranslationManager.getInstance();
|
|
123
|
-
|
|
124
|
-
// import translations from './translations.store';
|
|
125
|
-
/**
|
|
126
|
-
* The fallback language to be used in case a translation cannot be found in the specified language.
|
|
127
|
-
*/
|
|
128
|
-
const defaultLanguage = 'lv';
|
|
129
|
-
/**
|
|
130
|
-
* This function will load & update translations, if necessary.
|
|
131
|
-
*
|
|
132
|
-
* @param group
|
|
133
|
-
* @param language
|
|
134
|
-
*/
|
|
135
|
-
const processTranslations = async (group, language) => {
|
|
136
|
-
await translations.updateTranslations(group, language);
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Translates the given string if possible.
|
|
140
|
-
*
|
|
141
|
-
* @param key
|
|
142
|
-
* @param variables
|
|
143
|
-
*/
|
|
144
|
-
const translate = (key, variables) => {
|
|
145
|
-
const mergedTranslations = translations.getTranslations();
|
|
146
|
-
let translation = mergedTranslations[key.trim()] ?? mergedTranslations[defaultLanguage] ?? key;
|
|
147
|
-
if (isObject(variables)) {
|
|
148
|
-
translation = applyVariables(translation, variables);
|
|
149
|
-
}
|
|
150
|
-
return translation;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* Injects variables into the translation.
|
|
154
|
-
*
|
|
155
|
-
* @param translation
|
|
156
|
-
* @param variables
|
|
157
|
-
*/
|
|
158
|
-
const applyVariables = (translation, variables) => {
|
|
159
|
-
for (const [key, value] of Object.entries(variables)) {
|
|
160
|
-
translation = translation.replace(new RegExp(`{${key}}`, 'g'), value);
|
|
161
|
-
}
|
|
162
|
-
return translation;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
export { processTranslations as p, translate as t };
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { i as isObject } from './typecheck-4abf0258.js';
|
|
2
|
-
import { e as endpoints, A as ApiRequest } from './http-codes-9125ce84.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Returns whether the object is empty.
|
|
6
|
-
*
|
|
7
|
-
* @param object
|
|
8
|
-
*/
|
|
9
|
-
const isEmpty = (object) => Object.keys(object).length === 0;
|
|
10
|
-
/**
|
|
11
|
-
* Flattens the object.
|
|
12
|
-
* A process function can be specified to choose which fields should be included or excluded.
|
|
13
|
-
*
|
|
14
|
-
* @param object
|
|
15
|
-
* @param processFunction
|
|
16
|
-
*/
|
|
17
|
-
const flatten = (object, processFunction = () => true) => {
|
|
18
|
-
return Object.keys(object).reduce((accumulator, key) => {
|
|
19
|
-
if (!processFunction({ key, value: object[key] })) {
|
|
20
|
-
return accumulator;
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
...accumulator,
|
|
24
|
-
...(isObject(object[key]) ? flatten(object[key], processFunction) : { [key]: object[key] })
|
|
25
|
-
};
|
|
26
|
-
}, {});
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Returns all the translations for the specified group and language.
|
|
31
|
-
*
|
|
32
|
-
* @param group
|
|
33
|
-
* @param language
|
|
34
|
-
*/
|
|
35
|
-
const requestTranslations = (group, language) => {
|
|
36
|
-
let url;
|
|
37
|
-
try {
|
|
38
|
-
url = new URL(`${language}/${group}`, endpoints.translations).href;
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
console.error(error);
|
|
42
|
-
return Promise.reject('Translations endpoint URL generation failed.');
|
|
43
|
-
}
|
|
44
|
-
const request = new ApiRequest()
|
|
45
|
-
.setUrl(url)
|
|
46
|
-
.setOptions({
|
|
47
|
-
method: 'GET',
|
|
48
|
-
})
|
|
49
|
-
.setErrorFallbackValue({});
|
|
50
|
-
return request.execute();
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* -----------------------
|
|
55
|
-
* | !!! WARNING !!! |
|
|
56
|
-
* -----------------------
|
|
57
|
-
* This is meant as a temporary workaround until stencil/store issue is fixed:
|
|
58
|
-
* https://github.com/ionic-team/stencil/issues/4135
|
|
59
|
-
*
|
|
60
|
-
* When it is fixed, we should move back to the stencil/store implementation.
|
|
61
|
-
*/
|
|
62
|
-
class TranslationManager {
|
|
63
|
-
static instance;
|
|
64
|
-
storageKey = 'translations';
|
|
65
|
-
supportedLanguages = ['lv', 'ru', 'en'];
|
|
66
|
-
translations = {};
|
|
67
|
-
mergedTranslations = {};
|
|
68
|
-
constructor() {
|
|
69
|
-
this.translations = this.getCachedTranslations();
|
|
70
|
-
}
|
|
71
|
-
static getInstance() {
|
|
72
|
-
if (!TranslationManager.instance) {
|
|
73
|
-
TranslationManager.instance = new TranslationManager();
|
|
74
|
-
}
|
|
75
|
-
return TranslationManager.instance;
|
|
76
|
-
}
|
|
77
|
-
getTranslations() {
|
|
78
|
-
return this.mergedTranslations;
|
|
79
|
-
}
|
|
80
|
-
updateTranslations = async (group, language) => {
|
|
81
|
-
try {
|
|
82
|
-
this.translations = await this.loadTranslations(group, language);
|
|
83
|
-
}
|
|
84
|
-
catch {
|
|
85
|
-
// Translations did not change, do nothing in this case.
|
|
86
|
-
}
|
|
87
|
-
this.mergedTranslations = await this.mergeTranslations(language);
|
|
88
|
-
};
|
|
89
|
-
loadTranslations = async (group, language) => {
|
|
90
|
-
if (!group || !language) {
|
|
91
|
-
return Promise.reject(`Missing translation parameters - group (${group}), language (${language}).`);
|
|
92
|
-
}
|
|
93
|
-
if (!this.supportedLanguages.includes(language)) {
|
|
94
|
-
return Promise.reject(`Translations language "${language}" is not supported.`);
|
|
95
|
-
}
|
|
96
|
-
if (this.translationsExist(group, language)) {
|
|
97
|
-
return Promise.reject(`Translations for group (${group}) and language (${language}) already exist.`);
|
|
98
|
-
}
|
|
99
|
-
const translations = this.getCachedTranslations();
|
|
100
|
-
if (!translations[group]) {
|
|
101
|
-
translations[group] = {};
|
|
102
|
-
}
|
|
103
|
-
translations[group][language] = await requestTranslations(group, language);
|
|
104
|
-
this.cacheTranslations(translations);
|
|
105
|
-
return Promise.resolve(translations);
|
|
106
|
-
};
|
|
107
|
-
mergeTranslations = async (language) => {
|
|
108
|
-
const canMerge = ({ key }) => this.supportedLanguages.includes(key) ? key === language : true;
|
|
109
|
-
return Promise.resolve(flatten(this.translations, canMerge));
|
|
110
|
-
};
|
|
111
|
-
translationsExist = (group, language) => {
|
|
112
|
-
const translations = this.translations[group]?.[language] ?? {};
|
|
113
|
-
return !isEmpty(translations);
|
|
114
|
-
};
|
|
115
|
-
getCachedTranslations = () => {
|
|
116
|
-
return JSON.parse(sessionStorage.getItem(this.storageKey)) ?? {};
|
|
117
|
-
};
|
|
118
|
-
cacheTranslations = (translations) => {
|
|
119
|
-
sessionStorage.setItem(this.storageKey, JSON.stringify(translations));
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
const translations = TranslationManager.getInstance();
|
|
123
|
-
|
|
124
|
-
// import translations from './translations.store';
|
|
125
|
-
/**
|
|
126
|
-
* The fallback language to be used in case a translation cannot be found in the specified language.
|
|
127
|
-
*/
|
|
128
|
-
const defaultLanguage = 'lv';
|
|
129
|
-
/**
|
|
130
|
-
* This function will load & update translations, if necessary.
|
|
131
|
-
*
|
|
132
|
-
* @param group
|
|
133
|
-
* @param language
|
|
134
|
-
*/
|
|
135
|
-
const processTranslations = async (group, language) => {
|
|
136
|
-
await translations.updateTranslations(group, language);
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Translates the given string if possible.
|
|
140
|
-
*
|
|
141
|
-
* @param key
|
|
142
|
-
* @param variables
|
|
143
|
-
*/
|
|
144
|
-
const translate = (key, variables) => {
|
|
145
|
-
const mergedTranslations = translations.getTranslations();
|
|
146
|
-
let translation = mergedTranslations[key.trim()] ?? mergedTranslations[defaultLanguage] ?? key;
|
|
147
|
-
if (isObject(variables)) {
|
|
148
|
-
translation = applyVariables(translation, variables);
|
|
149
|
-
}
|
|
150
|
-
return translation;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* Injects variables into the translation.
|
|
154
|
-
*
|
|
155
|
-
* @param translation
|
|
156
|
-
* @param variables
|
|
157
|
-
*/
|
|
158
|
-
const applyVariables = (translation, variables) => {
|
|
159
|
-
for (const [key, value] of Object.entries(variables)) {
|
|
160
|
-
translation = translation.replace(new RegExp(`{${key}}`, 'g'), value);
|
|
161
|
-
}
|
|
162
|
-
return translation;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
export { processTranslations as p, translate as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as t}from"./p-9a2b6ee2.js";import{e as s,A as a}from"./p-3e60d61c.js";const n=(s,a=(()=>!0))=>Object.keys(s).reduce(((e,r)=>a({key:r,value:s[r]})?{...e,...t(s[r])?n(s[r],a):{[r]:s[r]}}:e),{});class e{static instance;storageKey="translations";supportedLanguages=["lv","ru","en"];translations={};mergedTranslations={};constructor(){this.translations=this.getCachedTranslations()}static getInstance(){return e.instance||(e.instance=new e),e.instance}getTranslations(){return this.mergedTranslations}updateTranslations=async(t,s)=>{try{this.translations=await this.loadTranslations(t,s)}catch{}this.mergedTranslations=await this.mergeTranslations(s)};loadTranslations=async(t,n)=>{if(!t||!n)return Promise.reject(`Missing translation parameters - group (${t}), language (${n}).`);if(!this.supportedLanguages.includes(n))return Promise.reject(`Translations language "${n}" is not supported.`);if(this.translationsExist(t,n))return Promise.reject(`Translations for group (${t}) and language (${n}) already exist.`);const e=this.getCachedTranslations();return e[t]||(e[t]={}),e[t][n]=await((t,n)=>{let e;try{e=new URL(`${n}/${t}`,s.translations).href}catch(t){return console.error(t),Promise.reject("Translations endpoint URL generation failed.")}return(new a).setUrl(e).setOptions({method:"GET"}).setErrorFallbackValue({}).execute()})(t,n),this.cacheTranslations(e),Promise.resolve(e)};mergeTranslations=async t=>Promise.resolve(n(this.translations,(({key:s})=>!this.supportedLanguages.includes(s)||s===t)));translationsExist=(t,s)=>!(0===Object.keys(this.translations[t]?.[s]??{}).length);getCachedTranslations=()=>JSON.parse(sessionStorage.getItem(this.storageKey))??{};cacheTranslations=t=>{sessionStorage.setItem(this.storageKey,JSON.stringify(t))}}const r=e.getInstance(),i=async(t,s)=>{await r.updateTranslations(t,s)},o=(s,a)=>{const n=r.getTranslations();let e=n[s.trim()]??n.lv??s;return t(a)&&(e=c(e,a)),e},c=(t,s)=>{for(const[a,n]of Object.entries(s))t=t.replace(new RegExp(`{${a}}`,"g"),n);return t};export{i as p,o as t}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as t,g as e,f as r,h as a,F as n,H as i}from"./p-83f43fdd.js";import{t as l,p as s}from"./p-2358a695.js";import{e as c,A as u}from"./p-3e60d61c.js";import"./p-9a2b6ee2.js";var d,m,f;!function(o){o.SMALL="small",o.AVERAGE="average",o.LARGE="large",o.INDIVIDUAL="custom"}(d||(d={})),function(o){o.HOURLY="hourly",o.MONTHLY="monthly"}(m||(m={})),function(o){o.V_CPU="vcpu",o.V_RAM="vram",o.STORAGE="storage",o.EXTRA_STORAGE="extra-storage",o.LICENSE="license",o.MS_LICENSE="ms_license",o.BANDWIDTH="bandwidth"}(f||(f={}));const g={v_cpu_standard:[{name:"components-cloud-configurator-unit-cores",value:1,default:!0}],v_cpu_performance:[{name:"components-cloud-configurator-unit-cores",value:1,default:!0}],v_ram:[{name:"components-cloud-configurator-unit-gigabyte",value:1,default:!0}],storage_bronze:[{name:"components-cloud-configurator-unit-gigabyte",value:1,default:!0},{name:"components-cloud-configurator-unit-terabyte",value:1e3}],storage_silver:[{name:"components-cloud-configurator-unit-gigabyte",value:1,default:!0},{name:"components-cloud-configurator-unit-terabyte",value:1e3}],storage_gold:[{name:"components-cloud-configurator-unit-gigabyte",value:1,default:!0},{name:"components-cloud-configurator-unit-terabyte",value:1e3}],storage_platinum:[{name:"components-cloud-configurator-unit-gigabyte",value:1,default:!0},{name:"components-cloud-configurator-unit-terabyte",value:1e3}],storage_backup:[{name:"components-cloud-configurator-unit-gigabyte",value:1,default:!0},{name:"components-cloud-configurator-unit-terabyte",value:1e3}],storage_object:[{name:"components-cloud-configurator-unit-gigabyte",value:1,default:!0},{name:"components-cloud-configurator-unit-terabyte",value:1e3}],license_windows:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],license_veeam:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],sql_server_standard_core:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],win_rds:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],win_server_standard_core:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],win_server_dc_core:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],sql_server_standard:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],office_standard:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],office_professional_plus:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],cis_suite_standard_core:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],project_standard:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],sharepoint_server:[{name:"components-cloud-configurator-unit-pieces",value:1,default:!0}],bandwidth_ip:[{name:"components-cloud-configurator-unit-ip",value:1,default:!0}],bandwidth_capacity:[{name:"components-cloud-configurator-unit-mbps",value:1,default:!0}],ddos_protection_bandwidth:[{name:"components-cloud-configurator-unit-mbps",value:1,default:!0}],bandwidth_router:[{name:"components-cloud-configurator-unit-nsx-router",value:1,default:!0},{name:"components-cloud-configurator-unit-not-required",value:0}]},p={storage_bronze:"components-cloud-configurator-unit-of-measure",storage_silver:"components-cloud-configurator-unit-of-measure",storage_gold:"components-cloud-configurator-unit-of-measure",storage_platinum:"components-cloud-configurator-unit-of-measure",storage_backup:"components-cloud-configurator-unit-of-measure",storage_object:"components-cloud-configurator-unit-of-measure",bandwidth_router:"components-cloud-configurator-select-device"},h={[f.V_CPU]:"components-cloud-configurator-summary-group-vcpu",[f.V_RAM]:"components-cloud-configurator-summary-group-vram",[f.STORAGE]:"components-cloud-configurator-summary-group-storage",[f.EXTRA_STORAGE]:"components-cloud-configurator-summary-group-extra-storage",[f.LICENSE]:"components-cloud-configurator-summary-group-license",[f.MS_LICENSE]:"components-cloud-configurator-summary-group-ms-license",[f.BANDWIDTH]:"components-cloud-configurator-summary-group-bandwidth"},_=["v_cpu_standard","v_cpu_performance","v_ram","storage_bronze","storage_silver","storage_gold","storage_platinum","storage_backup","storage_object","license_windows","license_veeam","sql_server_standard_core","win_rds","win_server_standard_core","win_server_dc_core","sql_server_standard","office_standard","office_professional_plus","cis_suite_standard_core","project_standard","sharepoint_server","bandwidth_ip","bandwidth_router","bandwidth_capacity","ddos_protection_enabled","ddos_protection_bandwidth"];function y(o){const t={};for(const e of _)t[e]=o[e];return t}function b(o){const t=g[o];if(t)return t.forEach((o=>{o.name=l(o.name)})),t}function w(o){const t=p[o];if(t)return l(t)}function v(o){const t=b(o);if(t)return t.find((o=>o.default))}function x(o,t){return o.toFixed(t===m.MONTHLY?2:8).replace(".",",")}const k=async()=>{let o;try{o=new URL(c.cloudConfigurator).href}catch(o){return console.error(o),Promise.reject("Cloud Configurator endpoint URL generation failed.")}const t=(new u).setUrl(o).setOptions({method:"GET"}).setErrorFallbackValue([]);return await t.execute()},G=class{constructor(e){o(this,e),this.cloudCalculatorSubmit=t(this,"cloudCalculatorSubmit",7),this.language="lv",this.containerSelector="",this.theme="light",this.selectOnFocus=void 0,this.isLoading=!0,this.headerRef=void 0,this.footerRef=void 0,this.formValues={},this.selectedTab=d.SMALL,this.selectedPeriod=m.MONTHLY,this.isFloatingSummary=!1,this.isListExpanded=!1,this.parentElement=void 0}get root(){return e(this)}headerObserver;footerObserver=new IntersectionObserver((([o])=>{this.isFloatingSummary=0===o.intersectionRatio}));fields=null;cloudCalculatorSubmit;async componentWillLoad(){this.parentElement=this.containerSelector?document.querySelector(this.containerSelector):this.root.parentElement,this.headerObserver=new IntersectionObserver((([o])=>{0!==o.intersectionRatio&&o.target.classList.toggle("header--is-pinned",o.intersectionRatio<1)}),{rootMargin:`-${this.parentElement.offsetTop+1}px 0px 0px 0px`,root:document,threshold:1}),this.fetchData()}onisLoadingChange(o){o||this.setDefaultValues()}onHeaderRefChange(o){o&&(this.headerRef.style.top=this.parentElement.offsetTop-1+"px",this.headerObserver.observe(this.headerRef))}onFooterRefChange(o){o&&this.footerObserver.observe(this.footerRef)}onSelectedTabChange(){this.setDefaultValues()}async onLanguageChange(o){await s("cloud-calculator",o),r(this)}onTabSelected=o=>{this.selectedTab=o.detail.new};onExpandableListToggle=()=>{this.isListExpanded=!this.isListExpanded};onSummaryPeriodChange=o=>{this.selectedPeriod=o.detail.value};onDdosProtectionEnabledCheck=o=>{const{checked:t}=o.detail;this.formValues.ddos_protection_enabled.value=t?1:0,this.setDefaultValue("bandwidth_capacity"),this.setDefaultValue("ddos_protection_bandwidth"),this.formValues={...this.formValues}};onNumberValueChanged=(o,t)=>{const{min:e}=this.fields[t],r=this.formValues[t];let a=o.value;o.suffix||(o.suffix=v(t)),r?.suffix?.value!==o.suffix.value&&(a=0===o.suffix.value?0:e);const n=this.getPrices(t,a,o.suffix);this.formValues[t]={...r,value:a,suffix:o.suffix,...n},this.formValues={...this.formValues}};onFormSubmit=()=>{const o=y(this.formValues),t=this.formValues.ddos_protection_enabled?.value;t?delete o.bandwidth_capacity:delete o.ddos_protection_bandwidth;const e={formValues:o,totals:this.getTotals()};this.cloudCalculatorSubmit.emit(e)};fetchData=async()=>{const o=await Promise.all([k(),s("cloud-calculator",this.language)]);this.fields=o[0],this.isLoading=!1};setDefaultValues=()=>{for(const o of Object.keys(this.fields))this.setDefaultValue(o);const o=y(this.formValues);this.formValues={...o},this.root.shadowRoot.querySelectorAll("tet-number-input").forEach((o=>o.resetSuffix()))};setDefaultValue=o=>{const t=this.fields[o],e=t.default[this.selectedTab]||t.min,r=v(t.key),a=this.getPrices(t.key,e,r);this.formValues[t.key]={key:t.key,value:e,title:t.name.lv,groupKey:t.group,groupName:l(h[t.group]),...a,suffix:v(t.key)}};getFieldKeysByGroup(o){return Object.values(this.fields).filter((t=>t.group===o)).map((o=>o.key))}getTotals(){const o=!!this.formValues.ddos_protection_enabled?.value,t={hourly:0,monthly:0};for(const e of Object.values(this.formValues))"bandwidth_capacity"===e.key&&o||("ddos_protection_bandwidth"!==e.key||o)&&(t.hourly+=e.hourly,t.monthly+=e.monthly);return t}getPrices(o,t,e){const{priceHourly:r,priceMonthly:a}=this.fields[o];let n=1;return e?.value&&(n=e.value),"bandwidth_ip"===o?{monthly:(t-1)*a*n,hourly:(t-1)*r*n}:{monthly:t*a*n,hourly:t*r*n}}getMinValue(o){const t=this.fields[o],e=this.formValues[o];return t?0===e?.suffix?.value?0:t.min:null}getMaxValue(o){const t=this.fields[o],e=this.formValues[o];return t&&e?e.suffix?t.max/e.suffix.value:t.max:null}getLabel(o){if(["v_ram"].includes(o))return null;const t=this.fields[o];return t?t.name[this.language]:null}getHelperText(o){const t=this.fields[o];return t?t.description[this.language]:null}renderTitle=()=>a(n,null,a("p",{class:"content__subtitle"},l(`components-cloud-configurator-${this.selectedTab}-subtitle`)));renderNumberInput(o,t){return!0===t?.hidden?null:a("div",{class:"form__input"},a("tet-number-input",{min:this.getMinValue(o),max:this.getMaxValue(o),label:this.getLabel(o),"accessibility-label":this.getHelperText(o),"button-accessibility-label":w(o),helperText:this.getHelperText(o),value:this.formValues[o]?.value,disabled:t?.disabled,suffixes:b(o),onInputValueChanged:t=>this.onNumberValueChanged(t.detail,o),selectOnFocus:this.selectOnFocus,theme:this.theme}))}renderExpandableItem(o){const t=this.fields[o];return a("div",{class:"expandable-item"},a("div",{class:"expandable-item__description"},a("div",{class:"expandable-item__title"},t.name[this.language]),a("div",{class:"expandable-item__helper"},t.description[this.language])),a("tet-stepper-input",{min:this.getMinValue(o),max:this.getMaxValue(o),step:1,value:this.formValues[o]?.value,onInputValueChanged:t=>this.onNumberValueChanged({value:t.detail},o),selectOnFocus:this.selectOnFocus,"accessibility-label":t.name[this.language],theme:this.theme}))}renderSummaryTable(){return a("div",{class:"summary-table"},this.renderSummaryRow(f.V_CPU,null,`x ${l("components-cloud-configurator-unit-cores")}`),this.renderSummaryRow(f.V_RAM),this.renderSummaryRow(f.STORAGE),this.renderSummaryRow(f.EXTRA_STORAGE),this.renderSummaryRow(f.LICENSE),this.renderSummaryRow(f.MS_LICENSE,null,l("components-cloud-configurator-unit-pieces")),this.renderSummaryRow(f.BANDWIDTH,["bandwidth_ip","bandwidth_router","bandwidth_capacity","ddos_protection_bandwidth"]))}renderSummaryRow(o,t,e){let r,n=h[o];if(r=t||this.getFieldKeysByGroup(o),o===f.BANDWIDTH&&(r=r.filter((o=>"ddos_protection_enabled"!==o)),this.formValues.ddos_protection_enabled?.value?(r=r.filter((o=>"bandwidth_capacity"!==o)),n="components-cloud-configurator-group-bandwidth-ddos"):r=r.filter((o=>"ddos_protection_bandwidth"!==o))),!Object.entries(this.fields).some((o=>r.includes(o[0]))))return null;const i=[a("div",{class:"summary-table__header"},l(n))];let s=!0;for(const o of r){const t=this.formValues[o];if(!this.fields[o]||!t||!t[this.selectedPeriod])continue;s||i.push(a("div",{class:"summary-table__header"}));const r=this.getLabel(o),n=e||t.suffix?.name;i.push(a("div",{class:"summary-table__label"},!!r&&a("span",null,`${r},`),a("span",null,`${t?.value}${n}`)));const c=t[this.selectedPeriod]||0,u=l(this.selectedPeriod===m.MONTHLY?"components-cloud-configurator-price-suffix-montly":"components-cloud-configurator-price-suffix-hourly");i.push(a("div",{class:"summary-table__value"},`${x(c,this.selectedPeriod)} ${u}`)),s=!1}return 1===i.length?null:a("div",{class:"summary-table__row"},i.map((o=>o)))}renderFloatingSummary(){const o=this.getFieldKeysByGroup(f.V_CPU),t=this.getFieldKeysByGroup(f.V_RAM),e=this.getFieldKeysByGroup(f.STORAGE),r=this.getFieldKeysByGroup(f.EXTRA_STORAGE),n=this.getFieldKeysByGroup(f.LICENSE),i=this.getFieldKeysByGroup(f.BANDWIDTH),s=this.getFieldKeysByGroup(f.MS_LICENSE),c=Object.values(this.formValues),u=c.reduce(((r,a)=>(o.includes(a.key)?r.cpu+=a.value:t.includes(a.key)?r.ram+=a.value:e.includes(a.key)&&(r.storage+=a.value*(a.suffix?.value||1)),r)),{cpu:0,ram:0,storage:0});let d=0;c.some((o=>n.includes(o.key)&&o.value))&&(d+=1),c.some((o=>i.includes(o.key)&&o.value))&&(d+=1),c.some((o=>s.includes(o.key)&&o.value))&&(d+=1),c.some((o=>r.includes(o.key)&&o.value))&&(d+=1);const m=this.getTotals();return a("div",{class:"floating-summary__container"},this.isFloatingSummary&&a("div",{class:"floating-summary__count"},a("span",{class:"floating-summary__count--item"},`${u.cpu} ${l("components-cloud-configurator-summary-cpu")},`),a("span",{class:"floating-summary__count--item"},`${u.ram} ${l("components-cloud-configurator-unit-gigabyte")} ${l("components-cloud-configurator-summary-ram")},`),a("span",{class:"floating-summary__count--break"}),a("span",{class:"floating-summary__count--item"},`${u.storage} ${l("components-cloud-configurator-unit-gigabyte")} ${l("components-cloud-configurator-summary-storage")}`),a("span",{class:"floating-summary__count--other"},`+${d}`)),a("div",{class:"floating-summary__sum"},a("span",{class:"floating-summary__sum--label"},`${l("components-cloud-configurator-summary-sum")}:`),a("span",{class:"floating-summary__sum--value"},`${x(m[this.selectedPeriod],this.selectedPeriod)} ${l("components-cloud-configurator-price-unit")}`)))}renderPlaceholder(){return a(i,null,a("div",{class:{"cloud-configurator":!0,[this.theme]:!!this.theme}},a("div",{class:"content"},a("div",{class:"content__title"},a("tet-placeholder",{width:"90%",height:"1.75rem",darkTheme:"dark"===this.theme})),a("div",{class:"content__subtitle"},a("tet-placeholder",{width:"100%",height:"1rem",darkTheme:"dark"===this.theme})),a("div",{class:"form",part:"form"},a("div",{class:"form__group"},a("div",{class:"form__group-label"},a("tet-placeholder",{width:"10rem",height:"1rem",darkTheme:"dark"===this.theme})),a("div",{class:"form__input"},a("tet-placeholder",{width:"100%",height:"2.875rem",darkTheme:"dark"===this.theme})),a("div",{class:"form__input"},a("tet-placeholder",{width:"100%",height:"2.875rem",darkTheme:"dark"===this.theme}))),a("div",{class:"form__group"},a("div",{class:"form__group-label"},a("tet-placeholder",{width:"10rem",height:"1rem",darkTheme:"dark"===this.theme})),a("div",{class:"form__input"},a("tet-placeholder",{width:"100%",height:"2.875rem",darkTheme:"dark"===this.theme})),a("div",{class:"form__input"})))),a("div",{class:"header",part:"header"},a("div",{class:"inner-wrapper"},a("tet-placeholder",{width:"25.5rem",height:"2.875rem",darkTheme:"dark"===this.theme})))))}render(){return this.isLoading?this.renderPlaceholder():(s("cloud-configurator",this.language),a(i,null,a("div",{class:{"cloud-configurator":!0,[this.theme]:!!this.theme}},a("div",{class:{header:!0,[this.theme]:!!this.theme},part:"header",ref:o=>this.headerRef=o},a("div",{class:"inner-wrapper"},a("tet-tab-header",{class:"header__segment-switch",segmented:!0,position:"center",defaultTab:"small",theme:this.theme,onTabSelected:this.onTabSelected},a("button",{"data-name":d.SMALL},a("p",null,l("components-cloud-configurator-type-small"))),a("button",{"data-name":d.AVERAGE},a("p",null,l("components-cloud-configurator-type-average"))),a("button",{"data-name":d.LARGE},a("p",null,l("components-cloud-configurator-type-large"))),a("button",{"data-name":d.INDIVIDUAL},a("p",null,l("components-cloud-configurator-type-custom")))))),a("div",{class:"content",part:"content"},this.renderTitle(),a("div",{class:"form",part:"form"},a("div",{class:"form__group"},a("h3",{class:"form__group-label"},l("components-cloud-configurator-group-vcpu")),this.renderNumberInput("v_cpu_standard"),this.renderNumberInput("v_cpu_performance")),a("div",{class:"form__group"},a("h3",{class:"form__group-label"},l("components-cloud-configurator-group-vram")),this.renderNumberInput("v_ram"),a("div",{class:"form__input"})),a("div",{class:"form__group"},a("h3",{class:"form__group-label"},l("components-cloud-configurator-group-storage")),this.renderNumberInput("storage_bronze"),this.renderNumberInput("storage_silver"),this.renderNumberInput("storage_gold"),this.renderNumberInput("storage_platinum")),a("div",{class:"form__group"},a("h3",{class:"form__group-label"},l("components-cloud-configurator-group-extra-storage")),this.renderNumberInput("storage_backup"),this.renderNumberInput("storage_object")),a("div",{class:"form__group"},a("h3",{class:"form__group-label"},l("components-cloud-configurator-group-license")),this.renderNumberInput("license_windows"),this.renderNumberInput("license_veeam")),a("div",{class:"form__group"},a("h3",{class:"form__group-label"},l("components-cloud-configurator-group-ms-license")),a("div",{class:{"expandable-list":!0,expanded:this.isListExpanded}},this.renderExpandableItem("sql_server_standard_core"),this.renderExpandableItem("win_rds"),this.renderExpandableItem("win_server_standard_core"),this.renderExpandableItem("win_server_dc_core"),this.renderExpandableItem("sql_server_standard"),this.renderExpandableItem("office_standard"),this.renderExpandableItem("office_professional_plus"),this.renderExpandableItem("cis_suite_standard_core"),this.renderExpandableItem("project_standard"),this.renderExpandableItem("sharepoint_server"),a("div",{class:"expandable-list__toggle-row"},this.isListExpanded&&a(n,null,a("button",{class:"expandable-list__toggle",onClick:this.onExpandableListToggle,tabIndex:0},l("components-cloud-configurator-ms-license-collapse")," ",a("tet-icon",{name:"tc-chevron-up",theme:this.theme})),a("div",{innerHTML:l("components-cloud-configurator-ms-license-full-list")})),!this.isListExpanded&&a("button",{class:"expandable-list__toggle",onClick:this.onExpandableListToggle,tabIndex:0},l("components-cloud-configurator-ms-license-expand")," ",a("tet-icon",{name:"tc-chevron-down",theme:this.theme}))))),a("div",{class:"form__group"},a("h3",{class:"form__group-label"},l("components-cloud-configurator-group-bandwidth")),this.renderNumberInput("bandwidth_ip"),this.renderNumberInput("bandwidth_router"),this.renderNumberInput("bandwidth_capacity",{disabled:!0,hidden:Boolean(this.formValues.ddos_protection_enabled?.value)}),this.renderNumberInput("ddos_protection_bandwidth",{hidden:!Boolean(this.formValues.ddos_protection_enabled?.value)}),a("div",{class:"form__input"}),a("div",{class:"form__checkbox"},a("tet-checkbox",{label:this.getLabel("ddos_protection_enabled"),value:this.formValues.ddos_protection_enabled?.value,checked:!!this.formValues.ddos_protection_enabled?.value,onCheck:this.onDdosProtectionEnabledCheck,theme:this.theme}),a("p",{class:"form__checkbox-helper"},this.getHelperText("ddos_protection_enabled"))))),a("div",{class:"summary",part:"summary"},a("h2",{class:"summary__title"},l("components-cloud-configurator-group-summary")),a("div",{class:"summary__toggle",role:"radiogroup"},a("tet-radio",{name:"summary-period",value:m.MONTHLY,checked:this.selectedPeriod===m.MONTHLY,label:l("components-cloud-configurator-summary-period-monthly"),theme:this.theme,onCheck:this.onSummaryPeriodChange}),a("tet-radio",{name:"summary-period",value:m.HOURLY,checked:this.selectedPeriod===m.HOURLY,label:l("components-cloud-configurator-summary-period-hourly"),theme:this.theme,onCheck:this.onSummaryPeriodChange})),this.renderSummaryTable())),a("div",{class:{"floating-summary":!0,"floating-summary--is-pinned":this.isFloatingSummary},part:"floating-summary"},this.renderFloatingSummary()),a("div",{part:"footer",class:"footer",ref:o=>this.footerRef=o},a("tet-button",{class:"footer__button",size:"large",type:"primary",theme:this.theme,onClick:this.onFormSubmit},l("components-cloud-configurator-submit"))))))}static get watchers(){return{isLoading:["onisLoadingChange"],headerRef:["onHeaderRefChange"],footerRef:["onFooterRefChange"],selectedTab:["onSelectedTabChange"],language:["onLanguageChange"]}}};G.style=':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{--tet-cloud-calculator-border-radius:none;--tet-cloud-calculator-background-primary-color:var(--tc-background-primary);--tet-cloud-calculator-background-secondary-color:var(--tc-background-secondary);--tet-cloud-calculator-background-tertiary-color:var(--tc-background-tertiary);--tet-cloud-calculator-background-floating-summary:var(--tc-layer-inverse-primary);--tet-cloud-calculator-text-primary-color:var(--tc-text-primary);--tet-cloud-calculator-text-secondary-color:var(--tc-text-secondary);--tet-cloud-calculator-text-inverse-primary:var(--tc-text-inverse-primary);--tet-cloud-calculator-border-bottom-color:var(--tc-border-quaternary);--tet-cloud-calculator-tertiary:var(--tc-text-tertiary);--tet-cloud-calculator-text-blue-grey:var(--tc-text-blue-grey);display:block;height:100%;width:100%}.cloud-configurator{position:relative;border-radius:var(--tet-cloud-calculator-border-radius);background-color:var(--tet-cloud-calculator-background-primary-color);display:flex;flex-direction:column;height:100%;width:100%;color:var(--tet-cloud-calculator-text-primary-color)}.cloud-configurator.dark{--tet-cloud-calculator-background-primary-color:var(--tc-background-primary-dark);--tet-cloud-calculator-background-secondary-color:var(--tc-background-secondary-dark);--tet-cloud-calculator-background-tertiary-color:var(--tc-background-tertiary-dark);--tet-cloud-calculator-background-floating-summary:var(--tc-background-tertiary-dark);--tet-cloud-calculator-text-primary-color:var(--tc-text-primary-dark);--tet-cloud-calculator-text-secondary-color:var(--tc-text-secondary-dark);--tet-cloud-calculator-text-inverse-primary:var(--tc-text-primary-dark);--tet-cloud-calculator-border-bottom-color:var(--tc-border-quaternary-dark);--tet-cloud-calculator-tertiary:var(--tc-text-tertiary-dark);--tet-cloud-calculator-text-blue-grey:var(--tc-text-blue-grey-dark)}.cloud-configurator .header{position:-webkit-sticky;position:sticky;top:0;order:-1;z-index:2;margin:1.75rem 0 0;overflow:hidden;padding-bottom:0.25rem}.cloud-configurator .header__segment-switch{--tabs-headers-segmented-item-padding:0.5rem 0.75rem;--tabs-headers-segmented-item-margin:0.25rem 0;--tabs-headers-segmended-item-font:500 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .header .inner-wrapper{display:flex;justify-content:center;width:100%;padding:0.75rem 0;background-color:var(--tet-cloud-calculator-background-primary-color)}.cloud-configurator .header--is-pinned .inner-wrapper{-moz-box-shadow:0 0.063rem 0.25rem rgba(0, 0, 0, 0.1);-webkit-box-shadow:0 0.063rem 0.25rem rgba(0, 0, 0, 0.1);box-shadow:0 0.063rem 0.25rem rgba(0, 0, 0, 0.1)}.cloud-configurator .content{margin:2.5rem 1rem 0}.cloud-configurator .content__title{font:500 1.25rem/1.5rem Inter, Gilroy, Arial, sans-serif;text-align:center;max-width:29.25rem;margin:0 auto 0.5rem}.cloud-configurator .content__subtitle{font:400 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;color:var(--tet-cloud-calculator-text-secondary-color);text-align:center;margin:0 auto 3.5rem;max-width:29.25rem}.cloud-configurator .form{display:flex;flex-direction:column;gap:2.5rem;width:100%}.cloud-configurator .form__group{display:flex;flex-wrap:wrap;row-gap:1.5rem;column-gap:2.5rem;padding-bottom:2rem;border-bottom:0.031rem solid var(--tet-cloud-calculator-border-bottom-color);justify-content:center}.cloud-configurator .form__group-label{width:100%;min-width:100%;font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .form__input{min-width:15.625rem;max-width:21.875rem;flex:1 1 calc(50% - 1.5rem)}.cloud-configurator .form__input>*{width:100%}.cloud-configurator .form__checkbox{margin-top:0.5rem;padding-left:0.25rem;width:100%}.cloud-configurator .form__checkbox tet-checkbox{padding-left:0.25rem;display:flex}.cloud-configurator .form__checkbox-helper{font:400 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;color:var(--tet-cloud-calculator-text-secondary-color);margin-left:2rem;max-width:36.563rem}.cloud-configurator .expandable-list{display:flex;flex-direction:column;width:100%;gap:0.5rem}.cloud-configurator .expandable-list.expanded .expandable-item:nth-child(n+4){display:flex}.cloud-configurator .expandable-list .expandable-item{display:flex;flex-direction:row;width:100%;padding-bottom:0.5rem;border-bottom:0.031rem solid var(--tet-cloud-calculator-border-bottom-color)}.cloud-configurator .expandable-list .expandable-item:nth-child(n+4){display:none}.cloud-configurator .expandable-list .expandable-item__description{display:flex;flex-direction:column;flex:1}.cloud-configurator .expandable-list .expandable-item__label{font:400 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;color:var(--tet-cloud-calculator-text-primary-color)}.cloud-configurator .expandable-list .expandable-item__helper{font:400 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif;color:var(--tet-cloud-calculator-text-secondary-color)}.cloud-configurator .expandable-list__toggle-row{display:flex;justify-content:space-between;flex-direction:column;font:400 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;--icon-size:1.25rem}.cloud-configurator .expandable-list__toggle,.cloud-configurator .expandable-list__link{display:flex;align-items:flex-end;gap:0.25rem;padding:0.5rem 0;text-decoration:underline;cursor:pointer;color:var(--tet-cloud-calculator-text-primary-color);border-color:transparent;background:transparent;font-size:inherit}.cloud-configurator .expandable-list__toggle:visited,.cloud-configurator .expandable-list__link:visited{color:var(--tet-cloud-calculator-text-primary-color)}.cloud-configurator .expandable-list__toggle:hover,.cloud-configurator .expandable-list__link:hover{color:var(--tet-cloud-calculator-tertiary)}.cloud-configurator .expandable-list__toggle:hover tet-icon,.cloud-configurator .expandable-list__link:hover tet-icon{--icon-color:var(--tet-cloud-calculator-tertiary)}.cloud-configurator .expandable-list__link tet-icon{padding-bottom:0.125rem;--icon-color:var(--tet-cloud-calculator-text-primary-color)}.cloud-configurator .summary{margin:2.5rem 0 0;padding-bottom:1rem;border-bottom:0.031rem solid var(--tet-cloud-calculator-border-bottom-color)}.cloud-configurator .summary__title{font:500 1.25rem/1.5rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .summary__toggle{display:flex;gap:1.5rem;padding-bottom:1.5rem;justify-content:flex-start;margin:1.5rem 0 1rem;border-bottom:0.031rem solid var(--tet-cloud-calculator-border-bottom-color)}.cloud-configurator .summary-table{display:grid;grid-template-columns:3fr 1fr;width:100%;background-color:var(--tet-cloud-calculator-background-primary-color)}.cloud-configurator .summary-table__row{display:contents}.cloud-configurator .summary-table__row:nth-child(2n)>*{background-color:var(--tet-cloud-calculator-background-secondary-color)}.cloud-configurator .summary-table__row>*{height:100%;padding-bottom:0.125rem}.cloud-configurator .summary-table__row>*.summary-table__header{padding-left:1rem;padding-bottom:0.5rem}.cloud-configurator .summary-table__row>*.summary-table__label{padding-left:1rem}.cloud-configurator .summary-table__row>*.summary-table__value{padding-right:1rem}.cloud-configurator .summary-table__row>*:nth-child(-n+1){padding-top:0.75rem}.cloud-configurator .summary-table__row>*:nth-last-child(-n+2){padding-bottom:0.75rem}.cloud-configurator .summary-table__header{grid-column:span 2;font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;white-space:nowrap}.cloud-configurator .summary-table__header~.summary-table__header{display:none}.cloud-configurator .summary-table__label{grid-column:1;font:400 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;text-align:left;color:var(--tet-cloud-calculator-text-secondary-color);white-space:nowrap;min-width:10rem;display:flex;justify-content:flex-start;gap:0.5rem;padding-right:0.5rem}.cloud-configurator .summary-table__label>span:first-of-type{text-overflow:ellipsis;overflow:hidden}.cloud-configurator .summary-table__value{grid-column:2;text-align:right;font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif;white-space:nowrap;padding-left:0}.cloud-configurator .floating-summary{display:flex;position:-webkit-sticky;position:sticky;z-index:1;bottom:0;background-color:var(--tet-cloud-calculator-background-primary-color);color:var(--tet-cloud-calculator-text-primary-color)}.cloud-configurator .floating-summary--is-pinned{background-color:var(--tet-cloud-calculator-background-floating-summary);color:var(--tet-cloud-calculator-text-inverse-primary)}.cloud-configurator .floating-summary__container{padding:0.5rem 1.5rem;display:flex;flex-direction:row;justify-content:space-between;width:100%}.cloud-configurator .floating-summary__count{display:none;align-items:center}.cloud-configurator .floating-summary--is-pinned .floating-summary__count{display:flex;flex-direction:row;column-gap:0.5rem;flex-wrap:wrap;font:400 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .floating-summary--is-pinned .floating-summary__count--item{color:var(--tet-cloud-calculator-text-blue-grey)}.cloud-configurator .floating-summary--is-pinned .floating-summary__count--other{color:var(--tet-cloud-calculator-text-inverse-primary)}.cloud-configurator .floating-summary--is-pinned .floating-summary__count--break{flex-basis:100%;height:0}.cloud-configurator .floating-summary__sum{display:flex;flex-direction:row;gap:0.25rem;align-items:flex-end;flex:1 0 auto;font:400 1.125rem/1.75rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .floating-summary__sum--label{margin-left:auto}.cloud-configurator .floating-summary__sum--value{font:500 1.5rem/1.75rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .floating-summary--is-pinned .floating-summary__sum{font:400 0.875rem/1.25rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .floating-summary--is-pinned .floating-summary__sum--value{font:500 1.25rem/1.5rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .footer{display:flex;flex-direction:row-reverse;margin:0 1rem 2.5rem;padding-top:1rem}.cloud-configurator .footer__button{--button-width:9.375rem}@media all and (min-width: 31.25rem){.cloud-configurator .content{margin:2.5rem 1.5rem 0}.cloud-configurator .content__title{font:500 2.5rem/3rem Gilroy, Gilroy, Arial, sans-serif}.cloud-configurator .expandable-list__toggle-row{flex-direction:row}.cloud-configurator .footer{margin:0 1.5rem 2.5rem}}@media all and (min-width: 48rem){.cloud-configurator .header{margin:1.5rem 0 0}.cloud-configurator .header__segment-switch{--tabs-headers-segmented-item-padding:0.375rem 1.5rem;--tabs-headers-segmended-item-font:500 1rem/1.5rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .header .inner-wrapper{padding:1rem 0}.cloud-configurator .content{margin:2.5rem 2rem 0}.cloud-configurator .footer{margin:0 2rem 2.5rem}.cloud-configurator .form__group{padding-bottom:2.5rem}.cloud-configurator .form__group-label{font:500 1.125rem/1.75rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .summary__toggle{justify-content:flex-end;margin-top:0.5rem}.cloud-configurator .summary__title{font:500 1.5rem/1.75rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .summary-table{display:grid;grid-template-columns:2fr 5fr}.cloud-configurator .summary-table__header{grid-column:1}.cloud-configurator .summary-table__row>*.summary-table__header{padding-bottom:unset}.cloud-configurator .summary-table__row>*:nth-child(-n+3){padding-top:0.75rem}.cloud-configurator .summary-table__header~.summary-table__header{display:block}.cloud-configurator .summary-table__label{grid-column:2;text-align:right;justify-content:flex-end}.cloud-configurator .summary-table__value{grid-column:3}.cloud-configurator .floating-summary{height:4rem}.cloud-configurator .floating-summary__container{padding:1rem 2rem}.cloud-configurator .floating-summary__count{font:400 1rem/1.5rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .floating-summary__count--break{display:none}.cloud-configurator .floating-summary--is-pinned .floating-summary__sum{align-items:center}.cloud-configurator .floating-summary__sum{font:400 1rem/1.5rem Inter, Gilroy, Arial, sans-serif}.cloud-configurator .footer{padding-top:0.5rem}}@media all and (min-width: 64rem){.cloud-configurator .content{margin:2.5rem 2.5rem 0}.cloud-configurator .footer{margin:0 2.5rem 2.5rem}.cloud-configurator .floating-summary__container{padding:1rem 2.5rem}}';export{G as tet_cloud_configurator}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-83f43fdd.js";import{c as e}from"./p-d8518d4b.js";var o;!function(t){t.LIGHT="light",t.DARK="dark"}(o||(o={}));const r="tet-components-theme",a=t=>Object.values(o).some((e=>e===t)),{state:n,onChange:s}=e({theme:(()=>{const t=localStorage.getItem(r);return a(t)?t:o.LIGHT})()});s("theme",(t=>{const e=t.toString();if(!a(e))throw new Error(`Invalid theme: "${e}"`);localStorage.setItem(r,e)}));const c=t=>`theme-${t}`,m=({theme:e},o)=>t("div",{class:{[c(e||n.theme)]:!0}},o);export{o as T,m as a}
|