@postnord/pn-marketweb-components 2.8.4 → 2.8.5
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/cjs/{index-d6f2e2f9.js → index-6d18c5e9.js} +16 -8
- package/cjs/{index-7ebb05d7.js → index-820d92a8.js} +1 -1
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-address-autofill.cjs.entry.js +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +1 -1
- package/cjs/pn-chart.cjs.entry.js +1 -1
- package/cjs/pn-charts-card.cjs.entry.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +1 -1
- package/cjs/pn-cta-block.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-price-store-1f005e0d.js → pn-find-price-store-e05a9145.js} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +3 -3
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-service-and-price-store-0b544d1e.js → pn-find-service-and-price-store-3ffe0634.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
- package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
- package/cjs/pn-line-shape.cjs.entry.js +1 -1
- package/cjs/pn-link-list.cjs.entry.js +1 -1
- package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
- package/cjs/{pn-mainnav-store-a31c1d1e.js → pn-mainnav-store-96e66f69.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
- package/cjs/{pn-marketweb-siteheader-store-a939014c.js → pn-marketweb-siteheader-store-ccf82b09.js} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
- package/cjs/pn-media-block.cjs.entry.js +180 -0
- package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +1 -1
- package/cjs/pn-multiple-input.cjs.entry.js +1 -1
- package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
- package/cjs/pn-play-on-scroll.cjs.entry.js +10 -8
- package/cjs/pn-product-card_3.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist-result.cjs.entry.js +2 -2
- package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
- package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
- package/cjs/pn-product-tile.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -3
- package/cjs/{pn-profile-modal-store-2525eee2.js → pn-profile-modal-store-14bc937f.js} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
- package/cjs/pn-profile-modal.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice.cjs.entry.js +2 -2
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
- package/cjs/pn-quick-cta.cjs.entry.js +1 -1
- package/cjs/pn-quote-card.cjs.entry.js +1 -1
- package/cjs/pn-scroll_2.cjs.entry.js +4 -3
- package/cjs/pn-share-item.cjs.entry.js +1 -1
- package/cjs/pn-share.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
- package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
- package/cjs/{pn-sidenav-store-18b8c3ff.js → pn-sidenav-store-d3f7bdfa.js} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
- package/cjs/pn-sidenav.cjs.entry.js +3 -3
- package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
- package/cjs/pn-stats-info.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +2 -2
- package/cjs/pn-titletag.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.css +0 -11
- package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js +46 -6
- package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.css +15 -0
- package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js +20 -1
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +4 -0
- package/collection/components/media/pn-media-block/media-block.stories.js +258 -0
- package/collection/components/media/pn-media-block/pn-media-block.css +283 -0
- package/collection/components/media/pn-media-block/pn-media-block.js +481 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/pn-media-block.d.ts +11 -0
- package/components/pn-media-block.js +232 -0
- package/components/pn-play-on-scroll.js +1 -97
- package/components/pn-play-on-scroll2.js +103 -0
- package/components/pn-teaser-card.js +1 -1
- package/components/pn-video-overlay2.js +4 -2
- package/esm/{index-e6fbe66d.js → index-6ee8c83f.js} +1 -1
- package/esm/{index-be8c3299.js → index-70664d8e.js} +16 -8
- package/esm/loader.js +3 -3
- package/esm/pn-address-autofill.entry.js +1 -1
- package/esm/pn-animated-tile.entry.js +1 -1
- package/esm/pn-app-banner.entry.js +1 -1
- package/esm/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +1 -1
- package/esm/pn-breakpoints.entry.js +1 -1
- package/esm/pn-chart.entry.js +1 -1
- package/esm/pn-charts-card.entry.js +1 -1
- package/esm/pn-choice-button.entry.js +1 -1
- package/esm/pn-cta-block.entry.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +1 -1
- package/esm/pn-customernumber-selector.entry.js +1 -1
- package/esm/pn-date-and-time.entry.js +1 -1
- package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm/pn-filter-checkbox.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +3 -3
- package/esm/{pn-find-price-store-9d2df21a.js → pn-find-price-store-0835039f.js} +1 -1
- package/esm/pn-find-price.entry.js +3 -3
- package/esm/pn-find-service-and-price-result.entry.js +3 -3
- package/esm/{pn-find-service-and-price-store-60025dfc.js → pn-find-service-and-price-store-ce4ca6e6.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-language-selector_9.entry.js +4 -4
- package/esm/pn-line-shape.entry.js +1 -1
- package/esm/pn-link-list.entry.js +1 -1
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-35a91e97.js → pn-mainnav-store-054d67c4.js} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-input.entry.js +1 -1
- package/esm/pn-marketweb-search.entry.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
- package/esm/{pn-marketweb-siteheader-store-aba9e86a.js → pn-marketweb-siteheader-store-de85e557.js} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -3
- package/esm/pn-media-block.entry.js +176 -0
- package/esm/pn-multi-formfield.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm/pn-multiple-input.entry.js +1 -1
- package/esm/pn-parcel-tracker.entry.js +1 -1
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-play-on-scroll.entry.js +10 -8
- package/esm/pn-product-card_3.entry.js +1 -1
- package/esm/pn-product-pricelist-result.entry.js +2 -2
- package/esm/pn-product-pricelist.entry.js +3 -3
- package/esm/pn-product-tile-info_2.entry.js +1 -1
- package/esm/pn-product-tile.entry.js +1 -1
- package/esm/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm/pn-profile-modal-profile.entry.js +3 -3
- package/esm/{pn-profile-modal-store-12c5acf9.js → pn-profile-modal-store-3424856b.js} +1 -1
- package/esm/pn-profile-modal-type.entry.js +3 -3
- package/esm/pn-profile-modal.entry.js +3 -3
- package/esm/pn-profile-selector-option.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +1 -1
- package/esm/pn-proxio-findprice.entry.js +2 -2
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +1 -1
- package/esm/pn-quick-cta.entry.js +1 -1
- package/esm/pn-quote-card.entry.js +1 -1
- package/esm/pn-scroll_2.entry.js +4 -3
- package/esm/pn-share-item.entry.js +1 -1
- package/esm/pn-share.entry.js +1 -1
- package/esm/pn-sidenav-level.entry.js +3 -3
- package/esm/pn-sidenav-link.entry.js +3 -3
- package/esm/{pn-sidenav-store-a515dd69.js → pn-sidenav-store-e667e8ea.js} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +3 -3
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_3.entry.js +1 -1
- package/esm/pn-spotlight.entry.js +1 -1
- package/esm/pn-stats-info-data.entry.js +1 -1
- package/esm/pn-stats-info.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +2 -2
- package/esm/pn-titletag.entry.js +1 -1
- package/esm-es5/{index-e6fbe66d.js → index-6ee8c83f.js} +1 -1
- package/esm-es5/{index-be8c3299.js → index-70664d8e.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-address-autofill.entry.js +1 -1
- package/esm-es5/pn-animated-tile.entry.js +1 -1
- package/esm-es5/pn-app-banner.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-breakpoints.entry.js +1 -1
- package/esm-es5/pn-chart.entry.js +1 -1
- package/esm-es5/pn-charts-card.entry.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -1
- package/esm-es5/pn-cta-block.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-date-and-time.entry.js +1 -1
- package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm-es5/pn-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-9d2df21a.js → pn-find-price-store-0835039f.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-service-and-price-store-60025dfc.js → pn-find-service-and-price-store-ce4ca6e6.js} +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-line-shape.entry.js +1 -1
- package/esm-es5/pn-link-list.entry.js +1 -1
- package/esm-es5/pn-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-35a91e97.js → pn-mainnav-store-054d67c4.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-input.entry.js +1 -1
- package/esm-es5/pn-marketweb-search.entry.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-store-de85e557.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-media-block.entry.js +1 -0
- package/esm-es5/pn-multi-formfield.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm-es5/pn-multiple-input.entry.js +1 -1
- package/esm-es5/pn-parcel-tracker.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
- package/esm-es5/pn-play-on-scroll.entry.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -1
- package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
- package/esm-es5/pn-product-tile.entry.js +1 -1
- package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
- package/esm-es5/{pn-profile-modal-store-12c5acf9.js → pn-profile-modal-store-3424856b.js} +1 -1
- package/esm-es5/pn-profile-modal-type.entry.js +1 -1
- package/esm-es5/pn-profile-modal.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/esm-es5/pn-profile-selector.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice.entry.js +1 -1
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/esm-es5/pn-quick-cta.entry.js +1 -1
- package/esm-es5/pn-quote-card.entry.js +1 -1
- package/esm-es5/pn-scroll_2.entry.js +1 -1
- package/esm-es5/pn-share-item.entry.js +1 -1
- package/esm-es5/pn-share.entry.js +1 -1
- package/esm-es5/pn-sidenav-level.entry.js +1 -1
- package/esm-es5/pn-sidenav-link.entry.js +1 -1
- package/esm-es5/{pn-sidenav-store-a515dd69.js → pn-sidenav-store-e667e8ea.js} +1 -1
- package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_3.entry.js +1 -1
- package/esm-es5/pn-spotlight.entry.js +1 -1
- package/esm-es5/pn-stats-info-data.entry.js +1 -1
- package/esm-es5/pn-stats-info.entry.js +1 -1
- package/esm-es5/pn-teaser-card.entry.js +1 -1
- package/esm-es5/pn-titletag.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-4572f290.entry.js → p-0010aad7.entry.js} +1 -1
- package/pn-market-web-components/{p-28ebaf1d.system.entry.js → p-04b382ae.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c633a40e.entry.js → p-052508de.entry.js} +1 -1
- package/pn-market-web-components/{p-eb9a3c2d.system.entry.js → p-05f643e4.system.entry.js} +1 -1
- package/pn-market-web-components/{p-583df48e.system.entry.js → p-05f99c22.system.entry.js} +1 -1
- package/pn-market-web-components/{p-49896e47.system.entry.js → p-08fa8d4a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9d0074fb.entry.js → p-0ad6efd1.entry.js} +1 -1
- package/pn-market-web-components/{p-b8266eeb.entry.js → p-0b071480.entry.js} +1 -1
- package/pn-market-web-components/{p-b49d0553.system.entry.js → p-1165f7d0.system.entry.js} +1 -1
- package/pn-market-web-components/p-136f5395.entry.js +1 -0
- package/pn-market-web-components/{p-e5f99384.system.js → p-14a189d3.system.js} +1 -1
- package/pn-market-web-components/{p-550b2b29.system.entry.js → p-154e2826.system.entry.js} +1 -1
- package/pn-market-web-components/p-17e61235.js +1 -0
- package/pn-market-web-components/{p-103c054e.entry.js → p-191edfa8.entry.js} +1 -1
- package/pn-market-web-components/{p-3d0c3caa.system.entry.js → p-19be5eed.system.entry.js} +1 -1
- package/pn-market-web-components/{p-609f1695.system.entry.js → p-1a4194d3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-03cc4a3b.entry.js → p-1aa1ccd2.entry.js} +1 -1
- package/pn-market-web-components/{p-b2fc3594.entry.js → p-1d69c613.entry.js} +1 -1
- package/pn-market-web-components/{p-47536b9e.system.entry.js → p-1dafb003.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8c7787eb.entry.js → p-1f2d226e.entry.js} +1 -1
- package/pn-market-web-components/{p-35b5ea63.system.entry.js → p-1fbdecfb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-5840be2e.entry.js → p-20a08e7a.entry.js} +1 -1
- package/pn-market-web-components/{p-944d00e3.system.entry.js → p-2248b584.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c1ec42a6.entry.js → p-225e581e.entry.js} +1 -1
- package/pn-market-web-components/{p-e5c7627c.system.entry.js → p-23357475.system.entry.js} +1 -1
- package/pn-market-web-components/{p-865ee8f6.entry.js → p-260016e2.entry.js} +1 -1
- package/pn-market-web-components/{p-64048a03.entry.js → p-2647f023.entry.js} +1 -1
- package/pn-market-web-components/{p-bf1f69fa.system.entry.js → p-28f745d6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-64691d51.entry.js → p-29d60871.entry.js} +1 -1
- package/pn-market-web-components/{p-29a7c74f.system.entry.js → p-2ac346c8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-83d7a808.entry.js → p-2bc0fbd6.entry.js} +1 -1
- package/pn-market-web-components/{p-eb42a545.entry.js → p-2dca907e.entry.js} +1 -1
- package/pn-market-web-components/{p-6aab92c0.entry.js → p-312ca954.entry.js} +1 -1
- package/pn-market-web-components/{p-592360ba.system.entry.js → p-32528f2e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ba1cce09.system.entry.js → p-3410b18e.system.entry.js} +1 -1
- package/pn-market-web-components/p-35a4aa56.entry.js +1 -0
- package/pn-market-web-components/{p-4b710959.entry.js → p-3a2f44d6.entry.js} +1 -1
- package/pn-market-web-components/{p-666d2bfb.entry.js → p-3a8410c6.entry.js} +1 -1
- package/pn-market-web-components/{p-52637e34.system.entry.js → p-3ab1bf8b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a7371325.entry.js → p-3cc00541.entry.js} +1 -1
- package/pn-market-web-components/{p-2ccbef09.system.entry.js → p-3d2ac1f6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ae453317.entry.js → p-3dad0ce4.entry.js} +1 -1
- package/pn-market-web-components/{p-746a2620.js → p-3f74ef14.js} +1 -1
- package/pn-market-web-components/{p-2e6d5633.entry.js → p-42cde64b.entry.js} +1 -1
- package/pn-market-web-components/{p-2ef39f23.entry.js → p-441c6ecf.entry.js} +1 -1
- package/pn-market-web-components/{p-6aaf35c7.entry.js → p-4905a61d.entry.js} +1 -1
- package/pn-market-web-components/{p-98690006.system.entry.js → p-4a4d1f12.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c6409b81.entry.js → p-4b05a2a7.entry.js} +1 -1
- package/pn-market-web-components/{p-476c4f58.system.entry.js → p-4e5efb81.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fbafd07a.system.entry.js → p-4e9b9584.system.entry.js} +1 -1
- package/pn-market-web-components/{p-087a6e41.system.entry.js → p-4ef22c01.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9db7d43b.system.entry.js → p-51e673f9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-eb82c0f8.system.entry.js → p-52c91186.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0f73d268.system.entry.js → p-52df172b.system.entry.js} +1 -1
- package/pn-market-web-components/p-53d7aeb5.js +1 -0
- package/pn-market-web-components/{p-d97d1501.system.entry.js → p-54548525.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1e0fd641.entry.js → p-54ae554a.entry.js} +1 -1
- package/pn-market-web-components/{p-a83c758d.system.entry.js → p-55095fd4.system.entry.js} +1 -1
- package/pn-market-web-components/p-55a12ded.system.entry.js +1 -0
- package/pn-market-web-components/{p-63b48e94.system.entry.js → p-586991f8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-cb9c945d.entry.js → p-5ee67059.entry.js} +1 -1
- package/pn-market-web-components/{p-6a230cb1.js → p-6107c744.js} +1 -1
- package/pn-market-web-components/{p-0f6f212a.system.entry.js → p-62603a41.system.entry.js} +1 -1
- package/pn-market-web-components/{p-b407caff.entry.js → p-68862e73.entry.js} +1 -1
- package/pn-market-web-components/p-69fc1fdb.system.entry.js +1 -0
- package/pn-market-web-components/{p-e62c4259.entry.js → p-6bc810e3.entry.js} +1 -1
- package/pn-market-web-components/{p-a0a92f86.system.js → p-6caaf51b.system.js} +1 -1
- package/pn-market-web-components/{p-f91cee83.entry.js → p-6f07da13.entry.js} +1 -1
- package/pn-market-web-components/{p-c3015b3f.entry.js → p-6fd874c0.entry.js} +1 -1
- package/pn-market-web-components/{p-14ebd1f5.system.entry.js → p-6ff2c262.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4e73bb67.entry.js → p-704058ed.entry.js} +1 -1
- package/pn-market-web-components/{p-4afac628.system.entry.js → p-77db84fd.system.entry.js} +1 -1
- package/pn-market-web-components/{p-027911c8.system.entry.js → p-7b879f2c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-cc1b4ca3.entry.js → p-7c167f65.entry.js} +1 -1
- package/pn-market-web-components/{p-39f2c4d3.system.entry.js → p-7c8ad9cc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2974d1e2.entry.js → p-7da9b27b.entry.js} +1 -1
- package/pn-market-web-components/{p-0a3aa74f.entry.js → p-7e3b87bd.entry.js} +1 -1
- package/pn-market-web-components/{p-5e61eb13.entry.js → p-7e4b979c.entry.js} +1 -1
- package/pn-market-web-components/p-812e4d0b.system.entry.js +1 -0
- package/pn-market-web-components/{p-3396f3c8.entry.js → p-820065a3.entry.js} +1 -1
- package/pn-market-web-components/{p-48a38770.system.entry.js → p-83a8af5a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d11f771e.system.entry.js → p-85c52e0c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-825bdb78.system.entry.js → p-85d8ccbd.system.entry.js} +1 -1
- package/pn-market-web-components/{p-463a5975.system.entry.js → p-874d96b9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c3899747.system.entry.js → p-87f9ac84.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f80e46eb.system.entry.js → p-8986f45e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8f28f717.system.entry.js → p-8b42b65a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-6125c132.entry.js → p-8bba7ba7.entry.js} +1 -1
- package/pn-market-web-components/{p-54ffd368.system.entry.js → p-8bdad77d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9cfde6aa.entry.js → p-8e142421.entry.js} +1 -1
- package/pn-market-web-components/{p-00d87476.entry.js → p-92ebab4a.entry.js} +1 -1
- package/pn-market-web-components/p-94ce23b4.system.js +1 -0
- package/pn-market-web-components/{p-cd8ae615.entry.js → p-963f55a9.entry.js} +1 -1
- package/pn-market-web-components/{p-fab635c7.entry.js → p-96b7535f.entry.js} +1 -1
- package/pn-market-web-components/{p-6b02dc02.system.js → p-97825032.system.js} +1 -1
- package/pn-market-web-components/{p-69342caf.system.entry.js → p-984a13ac.system.entry.js} +1 -1
- package/pn-market-web-components/p-986ed2b6.system.js +1 -0
- package/pn-market-web-components/{p-9685af07.system.entry.js → p-98bafa28.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e64e95a8.system.entry.js → p-9a6b3f55.system.entry.js} +1 -1
- package/pn-market-web-components/{p-63679401.entry.js → p-9afa3afc.entry.js} +1 -1
- package/pn-market-web-components/{p-b6301b42.entry.js → p-9c22f141.entry.js} +1 -1
- package/pn-market-web-components/{p-d0e65d70.js → p-9dd478d9.js} +2 -2
- package/pn-market-web-components/{p-a8c25cad.system.entry.js → p-9f8c3f1a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e2892448.entry.js → p-a0ac3794.entry.js} +1 -1
- package/pn-market-web-components/{p-43b76595.system.entry.js → p-a21e99fa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a53b3be1.entry.js → p-a2b062a1.entry.js} +1 -1
- package/pn-market-web-components/{p-0b999957.system.entry.js → p-a69bd189.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ed9dd574.entry.js → p-a6cc80f6.entry.js} +1 -1
- package/pn-market-web-components/{p-e13a6bab.system.entry.js → p-a8cab386.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8eb8e8b2.system.entry.js → p-a93f2e9d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2f4aa8c6.entry.js → p-a9930e79.entry.js} +1 -1
- package/pn-market-web-components/{p-595e8f54.system.entry.js → p-aaf31bc1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-67f5cd23.entry.js → p-abcde0d8.entry.js} +1 -1
- package/pn-market-web-components/{p-1998b5b1.entry.js → p-ae33ef56.entry.js} +1 -1
- package/pn-market-web-components/{p-dc91c260.system.entry.js → p-af1af661.system.entry.js} +1 -1
- package/pn-market-web-components/{p-742d27ff.entry.js → p-b14e29f1.entry.js} +1 -1
- package/pn-market-web-components/{p-c1204325.system.entry.js → p-b29adc65.system.entry.js} +1 -1
- package/pn-market-web-components/{p-15fd32d4.entry.js → p-b3871ac2.entry.js} +1 -1
- package/pn-market-web-components/{p-390895ec.system.entry.js → p-b8d4a319.system.entry.js} +1 -1
- package/pn-market-web-components/{p-03d7d79b.js → p-b96dbfea.js} +1 -1
- package/pn-market-web-components/{p-5ac3c73c.system.entry.js → p-ba9c3757.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fba12f1d.entry.js → p-bc645d84.entry.js} +1 -1
- package/pn-market-web-components/{p-cd8185a6.entry.js → p-bfed70cc.entry.js} +1 -1
- package/pn-market-web-components/{p-d6492b8a.entry.js → p-c4ec9a7f.entry.js} +1 -1
- package/pn-market-web-components/{p-42ea5bd1.entry.js → p-c5e35374.entry.js} +1 -1
- package/pn-market-web-components/p-c98ae4d8.js +1 -0
- package/pn-market-web-components/{p-81876fba.entry.js → p-caf88cd1.entry.js} +1 -1
- package/pn-market-web-components/{p-f737524e.system.entry.js → p-ce2f007f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2ef8f47b.entry.js → p-d10b8ae0.entry.js} +1 -1
- package/pn-market-web-components/{p-6259e4f4.system.js → p-d17fb67d.system.js} +2 -2
- package/pn-market-web-components/p-d1eacc9a.entry.js +1 -0
- package/pn-market-web-components/p-d1f90b53.system.entry.js +1 -0
- package/pn-market-web-components/{p-8cb21818.system.entry.js → p-d28011f2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-75e56082.system.entry.js → p-d287cfdf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-dda5e084.system.entry.js → p-d435617c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-05257edc.system.entry.js → p-d762d2eb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-335d95b7.entry.js → p-e0c27b9f.entry.js} +1 -1
- package/pn-market-web-components/{p-345648e8.entry.js → p-e15b72a3.entry.js} +1 -1
- package/pn-market-web-components/{p-48da3826.system.js → p-e2f1add7.system.js} +1 -1
- package/pn-market-web-components/{p-eea5ac80.system.entry.js → p-e356a2cf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7587b935.system.entry.js → p-e96ed1ba.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c02ddf82.js → p-e97ac85f.js} +1 -1
- package/pn-market-web-components/{p-26869f6d.entry.js → p-e9884417.entry.js} +1 -1
- package/pn-market-web-components/{p-9556936e.entry.js → p-ead762ff.entry.js} +1 -1
- package/pn-market-web-components/{p-e76bd03c.system.js → p-eb702bcd.system.js} +1 -1
- package/pn-market-web-components/{p-eaad04e5.system.entry.js → p-ef602321.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ace52b28.entry.js → p-f3dbfe72.entry.js} +1 -1
- package/pn-market-web-components/{p-bb93f102.system.entry.js → p-f3f44a2c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fc583d96.entry.js → p-f840e5bb.entry.js} +1 -1
- package/pn-market-web-components/{p-88d22b1c.entry.js → p-fa4c8587.entry.js} +1 -1
- package/pn-market-web-components/{p-e505ebd8.system.entry.js → p-fa666ea0.system.entry.js} +1 -1
- package/pn-market-web-components/{p-11f6fb30.system.js → p-fb84605d.system.js} +1 -1
- package/pn-market-web-components/{p-3ee0f67f.system.entry.js → p-fe358a44.system.entry.js} +1 -1
- package/pn-market-web-components/{p-eba15c54.entry.js → p-fe8172f7.entry.js} +1 -1
- package/pn-market-web-components/{p-94e96fcf.entry.js → p-fec6a09c.entry.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -1
- package/types/components/animation/pn-play-on-scroll/pn-play-on-scroll.d.ts +2 -0
- package/types/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.d.ts +1 -0
- package/types/components/media/pn-media-block/pn-media-block.d.ts +33 -0
- package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
- package/types/components.d.ts +51 -0
- package/esm-es5/pn-marketweb-siteheader-store-aba9e86a.js +0 -1
- package/pn-market-web-components/p-0412e417.entry.js +0 -1
- package/pn-market-web-components/p-30571cc1.system.entry.js +0 -1
- package/pn-market-web-components/p-7e6853a7.entry.js +0 -1
- package/pn-market-web-components/p-8bafabe5.js +0 -1
- package/pn-market-web-components/p-8d5a041f.js +0 -1
- package/pn-market-web-components/p-a28fce54.system.js +0 -1
- package/pn-market-web-components/p-bdcedfe9.system.js +0 -1
- package/pn-market-web-components/p-cc5c611e.system.entry.js +0 -1
- package/pn-market-web-components/p-d6893c90.system.entry.js +0 -1
- package/pn-market-web-components/p-eb110830.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,a as e}from"./p-
|
|
1
|
+
import{r as t,h as i,a as e}from"./p-9dd478d9.js";const n=class{constructor(i){t(this,i),this.disabled=!1,this.error="",this.invalid=!1,this.helpertext="",this.label="",this.placeholder="",this.inputid=`${Math.random()}`,this.name="",this.required=!1,this.type="text",this.autocomplete="",this.valid=null,this.value="",this.maxlength="",this.min="",this.max="",this.step="",this.pattern="",this.showText=!1}getTextMessage(){return this.error?this.error:this.helpertext?this.helpertext:null}toggleTextVisibility(){this.showText=!this.showText}getInputType(){return["text","password","url","tel","search","number","email","date","datetime-local","month","week","time"].includes(this.type)&&!this.showText?this.type:"text"}setVal(t){var i;const e=null===(i=t.composedPath)||void 0===i?void 0:i.call(t)[0];this.value=e.value}getClassNames(){let t="pn-input ";return(this.error.length>0||this.invalid)&&(t+="error "),this.valid&&(t+="valid "),"password"===this.type&&(t+="password "),(this.error||this.invalid||this.valid)&&(t+="icon "),t}render(){return i(e,{class:this.getClassNames()},(this.label||this.maxlength)&&i("div",{class:"label-container"},this.label&&i("label",{htmlFor:this.inputid},this.label),parseInt(this.maxlength)>0&&i("label",{class:"char-count",htmlFor:this.inputid},`${this.value.length}/${this.maxlength}`)),i("div",{class:"input-container"},i("input",{type:this.getInputType(),value:this.value,id:this.inputid,name:this.name,placeholder:this.placeholder,disabled:this.disabled,required:this.required,autocomplete:this.autocomplete,onInput:t=>this.setVal(t),maxlength:this.maxlength?this.maxlength:null,min:this.min?this.min:null,max:this.max?this.max:null,step:this.step?this.step:null,pattern:this.pattern?this.pattern:null}),i("svg",{class:"pn-input-checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},i("polyline",{class:"checkmark-path",points:"4,12 9,17 20,6","stroke-width":"3"})),"password"===this.type&&!this.disabled&&i("button",{onClick:()=>this.toggleTextVisibility()},"Show")),this.getTextMessage()&&i("small",null,this.error&&i("pn-icon",{symbol:"alert-exclamation-circle",small:!0,color:"warning"}),this.getTextMessage()))}};n.style="pn--marketweb-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}pn-marketweb-input input{padding:0.75em;font-size:1em;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:0.8rem;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}pn-marketweb-input input::-webkit-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::-moz-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input:-ms-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::-ms-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::placeholder{color:#969087;font-weight:normal}pn-marketweb-input input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-marketweb-input input:hover{border:0.1rem solid #00A0D6}pn-marketweb-input input:disabled{background:#F3F2F2;border:none}pn-marketweb-input>.input-container{position:relative}pn-marketweb-input>.input-container>button{position:absolute;right:1.2rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#005D92;padding:0.6rem;border-radius:0.8rem;outline:none;-webkit-transition:border 0.1s, background 0.2s, color 0.1s;transition:border 0.1s, background 0.2s, color 0.1s;border:0.1rem solid transparent}pn-marketweb-input>.input-container>button:focus{border:0.1rem solid #005D92}pn-marketweb-input>.input-container>button:hover{background:#E0F8FF}pn-marketweb-input>.input-container>button:active{background:#005D92;color:white}pn-marketweb-input>.input-container>svg{position:absolute;right:0.75em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:1.5em;width:1.5em;pointer-events:none}pn-marketweb-input>.input-container>svg polyline{stroke-linecap:round;-webkit-transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86)}pn-marketweb-input>.input-container>svg.pn-input-checkmark polyline{stroke:#005E41;stroke-dashoffset:23;stroke-dasharray:23}pn-marketweb-input .label-container{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-marketweb-input .label-container label{cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.label-container label.char-count{-ms-flex-negative:0;flex-shrink:0;padding-left:0.5em}pn-marketweb-input small{font-size:0.75em;font-size:max(.6em, 1.2rem);-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:-webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86), -webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);margin-top:0.5em;color:#5E554A}pn-input.error{color:#A70707}pn-input.error label{color:#A70707}pn-input.error small{color:#A70707}pn-input.error small>pn-icon{margin-right:0.25em}pn-input.error input{border:0.1rem solid #A70707}pn-input.error input:focus{border:0.1rem solid #A70707;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707}pn-input.error input:hover{border:0.1rem solid #F06365}pn-input.valid{color:#005E41}pn-input.valid .input-container>svg.pn-input-checkmark polyline{stroke-dashoffset:0}pn-input.valid label{color:#005E41}pn-input.valid input{border:0.1rem solid #005E41}pn-input.valid input:focus{border:0.1rem solid #005E41;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41}pn-input.valid input:hover{border:0.1rem solid #5EC584}pn-marketweb-input.password input{padding-right:4em}pn-marketweb-input.icon input{padding-right:2.3em}";export{n as pn_marketweb_input}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-d17fb67d.system.js","./p-fb84605d.system.js","./p-94ce23b4.system.js"],(function(n){"use strict";var e,a,i,t,l;return{setters:[function(n){e=n.r;a=n.h;i=n.a;t=n.g},function(n){l=n.s},function(){}],execute:function(){var o='pn-mainnav-link{display:block}pn-mainnav-link button,pn-mainnav-link a{font-weight:normal;position:relative;border:0 none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;color:#005D92}pn-mainnav-link button:hover,pn-mainnav-link button:focus,pn-mainnav-link a:hover,pn-mainnav-link a:focus{background-color:#FFFFFF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}pn-mainnav-link button:active,pn-mainnav-link a:active{background-color:#F3F2F2;color:#00A0D6;-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link{height:100%;padding-left:0;position:relative;scroll-snap-align:center}}[data-level="1"] pn-mainnav-link:first-child{border-top:0.1rem solid #F3F2F2}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link:first-child{border:0}}[data-level="1"] pn-mainnav-link>button,[data-level="1"] pn-mainnav-link>a{font-size:2rem;width:100%;border-bottom:0.1rem solid #F3F2F2;height:auto;padding:1.9rem 0 1.9rem 3rem}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link>button,[data-level="1"] pn-mainnav-link>a{height:100%;border:0;font-size:1.6rem;font-weight:normal;position:relative;outline:0;overflow:hidden;padding:1.6rem 1.6rem;white-space:nowrap}[data-level="1"] pn-mainnav-link>button::before,[data-level="1"] pn-mainnav-link>a::before{content:"";background-color:#00A0D6;position:absolute;bottom:0;left:0;width:100%;height:0.5em;border-radius:0.5em 0.5em 0 0;-webkit-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}[data-level="1"] pn-mainnav-link>button:hover::before,[data-level="1"] pn-mainnav-link>button:focus::before,[data-level="1"] pn-mainnav-link>a:hover::before,[data-level="1"] pn-mainnav-link>a:focus::before{-webkit-transform:translateY(0);transform:translateY(0)}[data-level="1"] pn-mainnav-link>button:active,[data-level="1"] pn-mainnav-link>a:active{outline:0;-webkit-box-shadow:none;box-shadow:none;color:#005D92}[data-level="1"] pn-mainnav-link>button:active::before,[data-level="1"] pn-mainnav-link>a:active::before{background-color:#8EDDF9;-webkit-transform:translateY(0);transform:translateY(0)}}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link>button:hover,[data-level="1"] pn-mainnav-link>button:focus,[data-level="1"] pn-mainnav-link>a:hover,[data-level="1"] pn-mainnav-link>a:focus{text-decoration:none}}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link>button[aria-expanded=true]::before,[data-level="1"] pn-mainnav-link>a[aria-expanded=true]::before{content:"";background-color:#00A0D6;position:absolute;bottom:0;left:0;width:100%;height:0.5em;border-radius:0.5em 0.5em 0 0;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}}[data-level="1"] pn-mainnav-link [aria-expanded=true] .first-level_icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}[data-level="1"] pn-mainnav-link pn-icon.first-level_icon{-webkit-transition:0.25s linear transform;transition:0.25s linear transform;width:1.92rem;height:1.92rem;display:none}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link pn-icon.first-level_icon{display:block}}[data-level="1"] pn-mainnav-link pn-icon.first-level_arrow{display:block;position:absolute;height:2.4rem;width:2.4rem;right:2.4rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link pn-icon.first-level_arrow{display:none}}[data-level="1"] pn-mainnav-link pn-icon svg{pointer-events:none;speak:none;width:100%;height:100%}@media screen and (min-width: 64em){pn-mainnav-level[data-level="2"]:not([data-level-listcount="1"]) pn-mainnav-list:last-child pn-mainnav-link>a{min-width:unset}}[data-level="2"] pn-mainnav-link{position:static;display:inline-block;width:100%;height:auto}@media screen and (min-width: 64em){[data-level="2"] pn-mainnav-link{padding-left:0;margin-bottom:1.6rem}}[data-level="2"] pn-mainnav-link>a{font-size:1.6rem;border-bottom:0.1rem solid #F3F2F2;padding:2.2rem 0 2.2rem 3rem;white-space:normal}@media screen and (min-width: 64em){[data-level="2"] pn-mainnav-link>a{min-width:16em;border:0;border-radius:1rem;padding:1.4rem 1.6rem}}[data-level="2"] pn-mainnav-link>a:hover{background-color:#FFFFFF;color:#005D92}[data-level="2"] pn-mainnav-link>a:hover,[data-level="2"] pn-mainnav-link>a:focus{-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level="2"] pn-mainnav-link>a:hover,[data-level="2"] pn-mainnav-link>a:focus{background-color:#F3F2F2;color:#005D92;text-decoration:underline;outline:0}}[data-level="2"] pn-mainnav-link>a:hover::before,[data-level="2"] pn-mainnav-link>a:focus::before{content:none}[data-level="2"] pn-mainnav-link>a:active{-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level="2"] pn-mainnav-link>a:active{background-color:#F3F2F2;color:#00A0D6;outline:0}}[data-level="2"] pn-mainnav-link>a:active::before{content:none}[data-level="2"] pn-mainnav-link pn-icon{display:inline-block;margin-left:0.2em;min-width:1.5rem;width:1.5rem;height:1.5rem}';var r=n("pn_mainnav_link",function(){function n(n){e(this,n);this.name="";this.href="";this.target="";this.linkid="";this.levelId="";this.open=false;this.hasChildren=false}n.prototype.componentWillLoad=function(){this.hasChildren=this.hostElement.querySelectorAll("pn-mainnav-level").length>0;if(this.hasChildren&&this.name){var n=this.name.toLowerCase().replace(/\W/gi,"_");this.levelId="mainnav-lvl".concat(2,"-").concat(n)}};n.prototype.setOpenMenuLevel=function(){l.openLevel=l.openLevel+""===this.levelId+""?"":this.levelId};n.prototype.render=function(){return a(i,{role:"listitem",name:this.name,href:this.href,linkid:this.linkid},this.hasChildren?a("button",{onClick:this.setOpenMenuLevel.bind(this),"aria-controls":this.levelId,"aria-pressed":"","aria-expanded":(l.openLevel+""===this.levelId+"")+""},this.name,a("pn-icon",{class:"first-level_icon",symbol:"angle-small-down",color:"blue700"}),a("pn-icon",{class:"first-level_arrow",symbol:"arrow-right",color:"blue700"})):a("a",Object.assign({href:this.href},this.target?{target:this.target}:{},this.target==="_blank"?{rel:"nofollow noopener"}:{},this.linkid?{id:this.linkid}:{}),this.name,this.target==="_blank"?a("pn-icon",{symbol:"open-in-new",color:"blue700"}):null),a("slot",null))};Object.defineProperty(n.prototype,"hostElement",{get:function(){return t(this)},enumerable:false,configurable:true});return n}());r.style=o}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,h as e,a,g as i}from"./p-
|
|
1
|
+
import{r as n,h as e,a,g as i}from"./p-9dd478d9.js";import{s as t}from"./p-e97ac85f.js";import"./p-b96dbfea.js";const o=class{constructor(e){n(this,e),this.name="",this.href="",this.target="",this.linkid="",this.levelId="",this.open=!1,this.hasChildren=!1}componentWillLoad(){if(this.hasChildren=this.hostElement.querySelectorAll("pn-mainnav-level").length>0,this.hasChildren&&this.name){const n=this.name.toLowerCase().replace(/\W/gi,"_");this.levelId=`mainnav-lvl2-${n}`}}setOpenMenuLevel(){t.openLevel=t.openLevel+""==this.levelId+""?"":this.levelId}render(){return e(a,{role:"listitem",name:this.name,href:this.href,linkid:this.linkid},this.hasChildren?e("button",{onClick:this.setOpenMenuLevel.bind(this),"aria-controls":this.levelId,"aria-pressed":"","aria-expanded":(t.openLevel+""==this.levelId+"")+""},this.name,e("pn-icon",{class:"first-level_icon",symbol:"angle-small-down",color:"blue700"}),e("pn-icon",{class:"first-level_arrow",symbol:"arrow-right",color:"blue700"})):e("a",Object.assign({href:this.href},this.target?{target:this.target}:{},"_blank"===this.target?{rel:"nofollow noopener"}:{},this.linkid?{id:this.linkid}:{}),this.name,"_blank"===this.target?e("pn-icon",{symbol:"open-in-new",color:"blue700"}):null),e("slot",null))}get hostElement(){return i(this)}};o.style='pn-mainnav-link{display:block}pn-mainnav-link button,pn-mainnav-link a{font-weight:normal;position:relative;border:0 none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;color:#005D92}pn-mainnav-link button:hover,pn-mainnav-link button:focus,pn-mainnav-link a:hover,pn-mainnav-link a:focus{background-color:#FFFFFF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}pn-mainnav-link button:active,pn-mainnav-link a:active{background-color:#F3F2F2;color:#00A0D6;-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link{height:100%;padding-left:0;position:relative;scroll-snap-align:center}}[data-level="1"] pn-mainnav-link:first-child{border-top:0.1rem solid #F3F2F2}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link:first-child{border:0}}[data-level="1"] pn-mainnav-link>button,[data-level="1"] pn-mainnav-link>a{font-size:2rem;width:100%;border-bottom:0.1rem solid #F3F2F2;height:auto;padding:1.9rem 0 1.9rem 3rem}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link>button,[data-level="1"] pn-mainnav-link>a{height:100%;border:0;font-size:1.6rem;font-weight:normal;position:relative;outline:0;overflow:hidden;padding:1.6rem 1.6rem;white-space:nowrap}[data-level="1"] pn-mainnav-link>button::before,[data-level="1"] pn-mainnav-link>a::before{content:"";background-color:#00A0D6;position:absolute;bottom:0;left:0;width:100%;height:0.5em;border-radius:0.5em 0.5em 0 0;-webkit-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}[data-level="1"] pn-mainnav-link>button:hover::before,[data-level="1"] pn-mainnav-link>button:focus::before,[data-level="1"] pn-mainnav-link>a:hover::before,[data-level="1"] pn-mainnav-link>a:focus::before{-webkit-transform:translateY(0);transform:translateY(0)}[data-level="1"] pn-mainnav-link>button:active,[data-level="1"] pn-mainnav-link>a:active{outline:0;-webkit-box-shadow:none;box-shadow:none;color:#005D92}[data-level="1"] pn-mainnav-link>button:active::before,[data-level="1"] pn-mainnav-link>a:active::before{background-color:#8EDDF9;-webkit-transform:translateY(0);transform:translateY(0)}}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link>button:hover,[data-level="1"] pn-mainnav-link>button:focus,[data-level="1"] pn-mainnav-link>a:hover,[data-level="1"] pn-mainnav-link>a:focus{text-decoration:none}}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link>button[aria-expanded=true]::before,[data-level="1"] pn-mainnav-link>a[aria-expanded=true]::before{content:"";background-color:#00A0D6;position:absolute;bottom:0;left:0;width:100%;height:0.5em;border-radius:0.5em 0.5em 0 0;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}}[data-level="1"] pn-mainnav-link [aria-expanded=true] .first-level_icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}[data-level="1"] pn-mainnav-link pn-icon.first-level_icon{-webkit-transition:0.25s linear transform;transition:0.25s linear transform;width:1.92rem;height:1.92rem;display:none}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link pn-icon.first-level_icon{display:block}}[data-level="1"] pn-mainnav-link pn-icon.first-level_arrow{display:block;position:absolute;height:2.4rem;width:2.4rem;right:2.4rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media screen and (min-width: 64em){[data-level="1"] pn-mainnav-link pn-icon.first-level_arrow{display:none}}[data-level="1"] pn-mainnav-link pn-icon svg{pointer-events:none;speak:none;width:100%;height:100%}@media screen and (min-width: 64em){pn-mainnav-level[data-level="2"]:not([data-level-listcount="1"]) pn-mainnav-list:last-child pn-mainnav-link>a{min-width:unset}}[data-level="2"] pn-mainnav-link{position:static;display:inline-block;width:100%;height:auto}@media screen and (min-width: 64em){[data-level="2"] pn-mainnav-link{padding-left:0;margin-bottom:1.6rem}}[data-level="2"] pn-mainnav-link>a{font-size:1.6rem;border-bottom:0.1rem solid #F3F2F2;padding:2.2rem 0 2.2rem 3rem;white-space:normal}@media screen and (min-width: 64em){[data-level="2"] pn-mainnav-link>a{min-width:16em;border:0;border-radius:1rem;padding:1.4rem 1.6rem}}[data-level="2"] pn-mainnav-link>a:hover{background-color:#FFFFFF;color:#005D92}[data-level="2"] pn-mainnav-link>a:hover,[data-level="2"] pn-mainnav-link>a:focus{-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level="2"] pn-mainnav-link>a:hover,[data-level="2"] pn-mainnav-link>a:focus{background-color:#F3F2F2;color:#005D92;text-decoration:underline;outline:0}}[data-level="2"] pn-mainnav-link>a:hover::before,[data-level="2"] pn-mainnav-link>a:focus::before{content:none}[data-level="2"] pn-mainnav-link>a:active{-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level="2"] pn-mainnav-link>a:active{background-color:#F3F2F2;color:#00A0D6;outline:0}}[data-level="2"] pn-mainnav-link>a:active::before{content:none}[data-level="2"] pn-mainnav-link pn-icon{display:inline-block;margin-left:0.2em;min-width:1.5rem;width:1.5rem;height:1.5rem}';export{o as pn_mainnav_link}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-d17fb67d.system.js"],(function(e){"use strict";var t,n,i;return{setters:[function(e){t=e.r;n=e.h;i=e.a}],execute:function(){var r='pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:"" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em;font-size:0.8em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:"" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}';var o=e("pn_product_card",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(i,null,n("slot",{name:"illustration"}),n("div",{class:"cardcontent"},n("div",{class:"details"},n("slot",{name:"title"}),n("slot",{name:"content"}),n("div",{class:"info"},n("slot",null)),n("slot",{name:"note"}),n("slot",{name:"additionalUSP"})),n("div",{class:"cardprice"},n("slot",{name:"cardprice"}),n("slot",{name:"mobiledownload"}),n("slot",{name:"servicepoint"}))))};return e}());o.style=r;var l='pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent-item{margin-top:0.5em}[slot=formatPre]{font-family:"PostNordSans", "Verdana";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}';var d=e("pn_product_card_info",function(){function e(e){t(this,e);this.rulle=undefined;this.paket=undefined;this.label=undefined;this.text=undefined}e.prototype.render=function(){return this.label?n(i,null,n("div",{class:"cardinfocontent"},this.text?n("pre",{slot:"formatPre"},this.text):null)):n(i,null,n("div",{class:"cardinfocontent"},this.paket?n("div",{class:"cardinfocontent-item"},n("strong",null,"Maxmått"),this.paket.split("/").map((function(e){return e.split(":").length>1?n("p",null,n("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):n("p",null,e)}))):null,this.rulle?n("div",{class:"cardinfocontent-item"},n("strong",null,"Rulle"),this.rulle.split("/").map((function(e){return e.split(":").length>0?n("p",null,n("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):n("p",null,e)}))):null))};return e}());n("pn-icon",{symbol:"align-center",small:"false",color:"black"});d.style=l;var c="pn-product-card-price{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price .price{font-size:2.5em;font-weight:bold;-ms-flex-order:1;order:1}pn-product-card-price pn-button{min-width:12.8em;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}";var a=e("pn_product_card_price",function(){function e(e){t(this,e);this.label=undefined;this.amount=undefined;this.currency=undefined;this.note=undefined;this.url=undefined;this.service=undefined;this.linkid=undefined}e.prototype.render=function(){if(!this.amount){return}return this.url?n(i,{id:this.linkid},n("div",{class:"price"},this.amount?n("span",null,this.amount):null,this.currency?n("span",null," "+this.currency):null),this.note?n("p",null,this.note):null,this.label?n("pn-button",{id:"pricecta-"+this.linkid,small:"true",icon:"open-in-new",appearance:"light",href:this.url,target:"_blank"},this.label):null):n(i,null,n("div",{class:"price"},this.amount?n("span",null,this.amount):null,this.currency?n("span",null,this.currency):null))};return e}());a.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as n,h as i,a as s,g as o}from"./p-
|
|
1
|
+
import{r as t,c as n,h as i,a as s,g as o}from"./p-9dd478d9.js";const e=class{constructor(i){t(this,i),this.search=n(this,"search",7),this.update=n(this,"update",7),this.disabled=!1,this.placeholder=null,this.inputid=null,this.name=null,this.autocomplete=null,this.list=null,this.value=null,this.label=null,this.loading=!1,this.button="",this.light=!1,this.suggestionObserver=null,this.hasClonedInput=!1,this.listSuggestion=[]}inputHandler(){this.update.emit(this.value)}emitSearch(t){("click"===t.type||"keydown"===t.type&&"Enter"===t.key)&&(t.preventDefault(),this.search.emit(this.value))}setVal(t){this.value=t.target.value}clearInput(){this.value="",this.update.emit(this.value),this.hostElement.querySelector("input").focus()}getClassNames(){let t="";return this.value&&(t+="searching "),this.loading&&(t+="loading "),["none","icon","icon-inline"].includes(this.button)&&(t+=`button-${this.button} `),t}componentWillRender(){this.cloneListContent(),this.autocompleteEventBinding()}onSuggestionUpdate(){this.cloneListContent()}autocompleteEventBinding(){if(null!==this.suggestionObserver||!this.list||!this.hostElement||!document.getElementById(this.list))return;const t=document.getElementById(this.list);this.suggestionObserver=new MutationObserver(this.onSuggestionUpdate.bind(this)),this.suggestionObserver.observe(t,{attributes:!0,childList:!0,subtree:!0})}cloneListContent(){if(!this.list||!this.hostElement||!document.getElementById(this.list))return;const t=[...document.getElementById(this.list).querySelectorAll("option")];this.listSuggestion=t.map((t=>t.hasAttribute("value")?t.getAttribute("value"):t.innerText))}render(){return i(s,null,i("div",{class:`input-container ${this.getClassNames()}`,"data-haslist":(null!==this.list)+""},i("input",{type:"search",value:this.value,id:this.inputid,name:this.name,placeholder:this.placeholder,disabled:this.disabled,autocomplete:this.autocomplete,list:this.list,onKeyDown:t=>this.emitSearch(t),onInput:t=>this.setVal(t)}),i("div",{class:"button-container"},("none"===this.button||"icon-inline"===this.button)&&i("button",{class:"search",tabindex:"icon-inline"===this.button?"0":"-1",onClick:t=>this.emitSearch(t),"aria-label":"search",title:"search"},i("pn-icon",{symbol:"search",color:"blue700"})),"icon-inline"!==this.button&&i("button",{class:"clear","aria-label":"clear",title:"clear search field",tabindex:!this.value||this.loading&&"none"===this.button?"-1":"0",onClick:()=>this.clearInput()},i("pn-icon",{symbol:"close-small",color:"blue700"})),"none"===this.button||"icon-inline"===this.button&&i("pn-spinner",null))),"none"!==this.button&&"icon-inline"!==this.button&&i("pn-button",{onClick:t=>this.emitSearch(t),loading:this.loading,icon:"search",appearance:this.light?"light":"dark","icon-only":"icon"===this.button},this.label),this.list&&i("datalist",{id:this.list},this.listSuggestion.map((t=>i("option",null,t)))))}get hostElement(){return o(this)}};e.style=":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host[list] :host>.input-container .button-container{display:none}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:#FFFFFF;border:none;color:#005D92;padding:0.3rem;margin:0;font-size:0.875em;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent;-webkit-tap-highlight-color:transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host>.input-container button:hover,:host>.input-container button:focus{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host .searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host .searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none input,:host .button-icon-inline input{padding-right:3.3em}:host .button-none pn-spinner,:host .button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host .button-none button.search,:host .button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.loading button,:host .button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-none.loading pn-spinner,:host .button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";export{e as pn_marketweb_search}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as l,a as o,g as r}from"./p-
|
|
1
|
+
import{r as t,h as l,a as o,g as r}from"./p-9dd478d9.js";const e=class{constructor(l){t(this,l),this.icon=null,this.color="green700"}render(){return l(o,null,l("slot",null),this.icon?l("pn-icon",{symbol:this.icon,small:"false",color:this.color}):null)}get hostElement(){return r(this)}};e.style="pn-titletag{display:-ms-inline-flexbox;display:inline-flex;border-radius:0.4rem;min-height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem;gap:0.6em}pn-titletag[color=green700],pn-titletag[color=green]{color:#005E41;background:#DCF6E7}pn-titletag[color=blue700],pn-titletag[color=blue]{background:#E0F8FF;color:#005D92}pn-titletag[color=coral700],pn-titletag[color=coral]{background:#FDEFEE;color:#9B1C2E}pn-titletag[color=gray900],pn-titletag[color=gray],pn-titletag[color=grey]{background:#D3CECB;color:#2D2013}pn-titletag[color=gray50],pn-titletag[color=lightgray],pn-titletag[color=lightgrey]{background:#F3F2F2;color:#2D2013}";export{e as pn_titletag}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,a as n,g as e}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,a as n,g as e}from"./p-9dd478d9.js";import{d as l}from"./p-4e3d7a56.js";const h=class{constructor(s){t(this,s),this.rowValueChange=i(this,"rowValueChange",7),this.deleteRowEvent=i(this,"deleteRowEvent",7),this.firstInputChange=i(this,"firstInputChange",7),this.secondInputChange=i(this,"secondInputChange",7),this.pnFirstInputField=null,this.pnSecondInputField=null,this.pnDatePicker=null,this.pnDeleteRowButton=null,this.languageCode=null,this.fristInputPlaceholder=null,this.firstInputMin=null,this.firstInputMax=null,this.firstInputWarning=null,this.firstInputWarningText=null,this.firstInputLowErrorText=null,this.firstInputHighErrorText=null,this.secondInputPlaceholder=null,this.secondInputMin=null,this.secondInputMax=null,this.secondInputWarning=null,this.secondInputWarningText=null,this.secondInputLowErrorText=null,this.secondInputHighErrorText=null,this.dateLabel=null,this.datePlaceholder=null,this.firstValidDate=null,this.lastValidDate=null,this.predefinedValue=null,this.rowIndex=null,this.minRowCount=null,this.showFirstInputWarning=!1,this.showFirstInputLowError=!1,this.showFirstInputHighError=!1,this.showSecondInputWarning=!1,this.showSecondInputLowError=!1,this.showSecondInputHighError=!1,this.firstInputValue="",this.secondInputValue="",this.dateValue=""}componentWillLoad(){this.getPredefinedValues(),this.setInitialValues()}componentDidLoad(){this.addEventHandlers()}getPredefinedValues(){this._predefinedValue=JSON.parse(this.predefinedValue)}applyPredefinedValue(){var t,i;this.getPredefinedValues(),this.setInitialValues(),(null===(t=this.firstInputValue)||void 0===t?void 0:t.length)&&this.validateFirstInput(parseInt(this.firstInputValue)),(null===(i=this.secondInputValue)||void 0===i?void 0:i.length)&&this.validateSecondInput(parseInt(this.secondInputValue)),this.rowIndex>=this.minRowCount&&this.pnDeleteRowButton.addEventListener("click",this.deleteRow.bind(this))}setInitialValues(){this.firstInputValue=this._predefinedValue.firstInput,this.secondInputValue=this._predefinedValue.secondInput,this.dateValue=this._predefinedValue.date}addEventHandlers(){const t=l.debounce(this.emitRowValues.bind(this),500);this.pnFirstInputField.addEventListener("keyup",l.debounce(this.handleFirstInput.bind(this),500)),this.pnSecondInputField.addEventListener("keyup",l.debounce(this.handleSecondInput.bind(this),500)),this.pnDatePicker.addEventListener("dateselection",this.handleDateChange.bind(this)),this.pnDatePicker.addEventListener("dateselection",t)}handleFirstInput(t){const i=t.target,s=parseInt(i.value);s>0&&(this.firstInputValue=i.value,this.firstInputChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})),this.validateFirstInput(s),this.emitRowValues()}handleSecondInput(t){const i=t.target,s=parseInt(i.value);s>0&&(this.secondInputValue=i.value,this.secondInputChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})),this.validateSecondInput(s),this.emitRowValues()}validateFirstInput(t){this.showFirstInputWarning=!1,this.showFirstInputLowError=!1,this.showFirstInputHighError=!1,t<this.firstInputWarning&&(this.showFirstInputWarning=!0),t<this.firstInputMin&&(this.showFirstInputWarning=!1,this.showFirstInputLowError=!0),t>this.firstInputMax&&(this.showFirstInputWarning=!1,this.showFirstInputLowError=!1,this.showFirstInputHighError=!0)}validateSecondInput(t){this.showSecondInputWarning=!1,this.showSecondInputLowError=!1,this.showSecondInputHighError=!1,t<this.secondInputWarning&&(this.showSecondInputWarning=!0),t<this.secondInputMin&&(this.showSecondInputWarning=!1,this.showSecondInputLowError=!0),t>this.secondInputMax&&(this.showSecondInputWarning=!1,this.showSecondInputLowError=!1,this.showSecondInputHighError=!0)}handleDateChange(t){t.target===this.pnDatePicker&&(this.dateValue=t.detail)}emitRowValues(){this.rowValueChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})}deleteRow(){this.deleteRowEvent.emit(this._predefinedValue.id)}render(){var t;return s(n,null,s("div",{class:"input-element-row"},s("div",{class:"input-container"},s("pn-marketweb-input",{ref:t=>this.pnFirstInputField=t,type:"number",placeholder:this.fristInputPlaceholder,value:this.firstInputValue,min:"1"}),this.showFirstInputLowError||this.showFirstInputHighError||this.showFirstInputWarning?s("div",{class:"input-element-message-container"},this.showFirstInputLowError?s("div",{class:"input-element-message-container__error"},s("small",null,this.firstInputLowErrorText)):null,this.showFirstInputHighError?s("div",{class:"input-element-message-container__error"},s("small",null,this.firstInputHighErrorText)):null,this.showFirstInputWarning?s("div",{class:"input-element-message-container__warning"},s("small",null,this.firstInputWarningText)):null):null),s("div",{class:"input-container"},s("pn-marketweb-input",{ref:t=>this.pnSecondInputField=t,type:"number",placeholder:this.secondInputPlaceholder,value:this.secondInputValue,min:"1"}),this.showSecondInputLowError||this.showSecondInputHighError||this.showSecondInputWarning?s("div",{class:"input-element-message-container"},this.showSecondInputLowError?s("div",{class:"input-element-message-container__error"},s("small",null,this.secondInputLowErrorText)):null,this.showSecondInputHighError?s("div",{class:"input-element-message-container__error"},s("small",null,this.secondInputHighErrorText)):null,this.showSecondInputWarning?s("div",{class:"input-element-message-container__warning"},s("small",null,this.secondInputWarningText)):null):null),s("div",{class:"input-container"},s("pn-date-picker",{ref:t=>this.pnDatePicker=t,range:"false","disable-weekends":!0,"min-date":this.firstValidDate,"max-date":this.lastValidDate,language:this.languageCode,placeholder:this.datePlaceholder,start:(null===(t=this.dateValue)||void 0===t?void 0:t.length)?this.dateValue:null})),this.rowIndex>=this.minRowCount?s("div",{class:"delete-button-contianer"},s("pn-button",{ref:t=>this.pnDeleteRowButton=t,small:"true","icon-only":"true",icon:"minus",appearance:"warning",index:this.rowIndex,onClick:()=>{this.deleteRow()}},"Delete")):null))}get hostElement(){return e(this)}static get watchers(){return{predefinedValue:["applyPredefinedValue"]}}};h.style="pn-dropdown-with-multi-input-rows-row .input-element-row{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container{width:30%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container pn-marketweb-input .input-container{width:100%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container pn-date-picker{width:100%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container{margin-top:0.3rem}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container__error{color:red;line-height:1}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container__warning{line-height:1}pn-dropdown-with-multi-input-rows-row .delete-button-contianer{margin-top:0.6rem}";export{h as pn_dropdown_with_multi_input_rows_row}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-d17fb67d.system.js","./p-e2f1add7.system.js","./p-94ce23b4.system.js"],(function(e){"use strict";var t,o,n,r,i;return{setters:[function(e){t=e.r;o=e.h;n=e.a;r=e.g},function(e){i=e.s},function(){}],execute:function(){var l="pn-profile-modal{margin:1em auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:42.4rem;max-width:38.4rem;width:100%;padding:1.6rem;border-radius:8px;background:#FFFFFF}.profilemodal-container{padding:3.2rem;border-radius:8px;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);border:0.1rem solid #F3F2F2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profilemodal-logo{display:none}.profilemodal-logo svg{display:block;margin:0 auto 2.4rem}.profilemodal-heading{text-align:center;font-weight:700}.profilemodal-content{margin:1.6rem 0 0}.profilemodal-content pn-segmented-control{-webkit-transform:translateZ(0) translateX(-50%);transform:translateZ(0) translateX(-50%);left:50%}.profilemodal-cta{margin:1.6rem 0 0;-webkit-transition:max-height 0.15s ease, opacity 0.15s ease;transition:max-height 0.15s ease, opacity 0.15s ease;overflow:hidden;opacity:1}.profilemodal-cta[aria-hidden=true]{max-height:0;opacity:1}.profilemodal-cta>pn-button{width:100%}";var a=e("pn_profile_modal",function(){function e(e){t(this,e);this.heading=null;this.continueCtaText=null;this.choosenCompanyText=null;this.toText=null;this.chooseCustomerNumberText=null;this.isLoading=true}e.prototype.componentWillLoad=function(){this.populateState();this.bindEvents()};e.prototype.populateState=function(){i.i18n.chooseCustomerNumberText=this.chooseCustomerNumberText;i.i18n.choosenCompanyText=this.choosenCompanyText;i.i18n.toText=this.toText;var e=this.hostElement.querySelector('pn-profile-modal-type[selected="true"]');if(e){i.selectedType=e.getAttribute("name")}};e.prototype.bindEvents=function(){var e=this.hostElement.querySelector("pn-segmented-control");if(e){e.addEventListener("change",this.onSegmentControlChange.bind(this))}};e.prototype.onSegmentControlChange=function(e){var t=e.target.value;var o=this.hostElement.querySelector('[typeid="'.concat(t,'"]'));if(o){var n=__spreadArray([],this.hostElement.querySelectorAll("pn-profile-modal-type"),true);n.forEach((function(e){e.setAttribute("selected",(e.getAttribute("typeid")===t)+"")}))}};e.prototype.onCTAClick=function(){if(!i.selectedUrl){console.log("no Url as been selected, will not continue")}};e.prototype.onUrlSelected=function(e){if(!e||!e.detail){return}i.selectedUrl=e.detail;var t=this.hostElement.querySelector(".profilemodal-cta pn-button");if(t){t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}};e.prototype.render=function(){return o(n,null,o("div",{class:"profilemodal-container"},o("div",{class:"profilemodal-logo"},o("svg",{viewBox:"0 0 133 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"17.1rem",height:"3.2rem"},o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#00A0D6",d:"M132.749 0.333618V20.9198H126.976V19.3809C126.976 19.3809 125.475 21.4316 122.191 21.4316C117.381 21.4316 114.662 17.7015 114.662 13.0327C114.662 8.47612 117.776 4.7187 122.617 4.7187C125.589 4.7187 126.976 6.19924 126.976 6.19924V1.47206L132.749 0.333618ZM54.2322 1.67091H60.0055V5.20216H65.3564L62.7235 10.0999H60.0055V20.9198H54.2322V1.67091ZM28.2484 21.4023C32.8051 21.4023 37.6446 18.8974 37.6446 12.9187C37.6446 7.16616 32.9746 4.69042 28.4461 4.69042C23.8042 4.69042 19.049 7.25192 19.049 13.175C19.049 18.9549 23.7199 21.4023 28.2484 21.4023ZM28.3327 9.78608C30.2294 9.78608 31.5032 11.1243 31.5032 13.0902C31.5032 14.9392 30.2575 16.3076 28.3327 16.3076C26.437 16.3076 25.1351 14.9392 25.1351 13.0902C25.1351 11.1243 26.4089 9.78608 28.3327 9.78608ZM47.0708 10.8963C46.8158 10.8574 46.5804 10.8239 46.3639 10.7931C44.9938 10.5979 44.3827 10.5108 44.3827 9.87279C44.3827 9.24608 45.146 8.9888 46.6465 8.9888C49.1941 8.9888 51.4298 9.84357 51.4298 9.84357L52.4488 5.43022C52.4488 5.43022 49.9865 4.71869 46.7027 4.71869C41.1841 4.71869 38.2965 6.85422 38.2965 10.2705C38.2965 12.9187 39.8532 14.485 44.4108 15.0825C46.3355 15.3388 47.0427 15.4519 47.0427 16.1644C47.0427 16.8486 46.2784 17.0757 44.9484 17.0757C42.0608 17.0757 39.3437 15.8515 39.3437 15.8515L38.1832 20.4081C38.1832 20.4081 40.9003 21.375 44.4389 21.375C50.3826 21.375 53.1279 19.2668 53.1279 15.8223C53.1279 13.0902 51.6555 11.6087 47.0708 10.8963ZM76.1968 4.69042C72.8287 4.69042 71.6111 6.74018 71.6111 6.74018V5.20216H65.8369V20.9198H71.6111V12.8612C71.6111 10.8689 72.3483 9.95666 74.1297 9.95666C75.913 9.95666 76.1687 11.4381 76.1687 13.3173V20.9198H81.9982V11.2666C81.9982 6.93903 79.9339 4.69042 76.1968 4.69042ZM123.948 9.8153C125.843 9.8153 127.144 11.1818 127.144 13.0327C127.144 14.9958 125.87 16.335 123.948 16.335C122.051 16.335 120.778 14.9958 120.778 13.0327C120.778 11.1818 122.024 9.8153 123.948 9.8153ZM112.456 10.213C110.53 10.213 109.088 10.9537 109.088 13.3456V20.9198H103.313V5.20216H109.088V7.02479C109.088 7.02479 109.965 4.97409 113.191 4.97409C114.181 4.97409 114.55 5.14467 114.55 5.14467L114.408 10.4976C114.408 10.4976 113.643 10.213 112.456 10.213ZM11.9728 13.0902C11.9728 11.1243 10.699 9.78608 8.80235 9.78608C6.87853 9.78608 5.6038 11.1243 5.6038 13.0902C5.6038 14.9392 6.9057 16.3076 8.80235 16.3076C10.728 16.3076 11.9728 14.9392 11.9728 13.0902ZM10.1333 21.4023C14.9728 21.4023 18.0871 17.6468 18.0871 13.0902C18.0871 8.41958 15.3699 4.69042 10.5576 4.69042C7.27472 4.69042 5.77426 6.74018 5.77426 6.74018V5.20216H0V25.4453H5.77426V19.9227C5.77426 19.9227 7.16139 21.4023 10.1333 21.4023ZM95.7984 13.0902C95.7984 11.1243 94.5246 9.78608 92.6279 9.78608C90.7032 9.78608 89.4284 11.1243 89.4284 13.0902C89.4284 14.9392 90.7322 16.3076 92.6279 16.3076C94.5536 16.3076 95.7984 14.9392 95.7984 13.0902ZM92.5427 21.4023C97.0994 21.4023 101.94 18.8974 101.94 12.9187C101.94 7.16616 97.2698 4.69042 92.7413 4.69042C88.0984 4.69042 83.3442 7.25192 83.3442 13.175C83.3442 18.9549 88.0142 21.4023 92.5427 21.4023Z"}))),this.heading===""?null:o("div",{class:"profilemodal-heading"},this.heading),o("div",{class:"profilemodal-content"},o("slot",null)),this.continueCtaText?o("div",{class:"profilemodal-cta","aria-hidden":!i.selectedUrl+""},o("pn-button",{onclick:this.onCTAClick,href:i.selectedUrl,icon:"arrow-right"},this.continueCtaText)):null))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());a.style=l}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var o=0,i=e.length,r;o<i;o++){if(r||!(o in e)){if(!r)r=Array.prototype.slice.call(e,0,o);r[o]=e[o]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-6259e4f4.system.js","./p-296637c0.system.js","./p-e351523a.system.js"],(function(t){"use strict";var e,n,o,i,r,s,a;return{setters:[function(t){e=t.r;n=t.c;o=t.h;i=t.a;r=t.g},function(t){s=t.d},function(t){a=t.v}],execute:function(){var l="pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__row{margin-bottom:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem;padding:1rem;background-color:#F9F8F8}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete pn-button{margin-top:0.9rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label{width:30%;font-size:0.875em;color:#5e554a}pn-dropdown-with-multi-input-rows .sum-row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";var d=t("pn_dropdown_with_multi_input_rows",function(){function t(t){e(this,t);this.allFormValues=n(this,"allFormValues",7);this.pnFirstDropdown=null;this.pnSecondDropdown=null;this.pnSumField=null;this.pnConfirmDeleteButton=null;this.pnAbortDeleteButton=null;this._firstDropdownSelection=null;this._secondDropdownSelection=null;this._defaultRow={id:this.generateUniqueId(),firstInput:"",secondInput:this.secondInputWarning.toString(),date:""};this.dropdownData=null;this.languageCode=null;this.firstDropdownLabel=null;this.firstDropdownHelperText=null;this.secondDropdownLabel=null;this.secondDropdownHelperText=null;this.secondDropdownMax=null;this.deleteMultipleRowsWarningText=null;this.confirmDeleteButtonText=null;this.abortDeleteButtonText=null;this.fristInputLabel=null;this.fristInputPlaceholder=null;this.firstInputMin=null;this.firstInputMax=null;this.firstInputWarning=null;this.firstInputWarningText=null;this.firstInputLowErrorText=null;this.firstInputHighErrorText=null;this.secondInputLabel=null;this.secondInputPlaceholder=null;this.secondInputMin=null;this.secondInputMax=null;this.secondInputWarning=null;this.secondInputWarningText=null;this.secondInputLowErrorText=null;this.secondInputHighErrorText=null;this.dateLabel=null;this.datePlaceholder=null;this.dateDaysFromToday=1;this.yearsToAddToEndDate=null;this.sumFieldLabel=null;this.addRowText=null;this.elementHelperText=null;this.dropdownDataRoot=null;this.secondDropdownArr=[];this.rowCount=null;this.rowData=null;this.formValues=null;this.firstValidDateString="";this.lastValidDateString="";this.rowSum=null;this.minRowCount=null;this.showDelteConfirm=false}t.prototype.componentWillLoad=function(){this.formValues=[];this.setDropDownData();this.updateSecondDropdown();this.setRowData();this.setFirstValidDate()};t.prototype.componentDidLoad=function(){this.updateSum()};t.prototype.setDropDownData=function(){var t;if(typeof this.dropdownData==="string"){this.dropdownDataRoot=JSON.parse(this.dropdownData)}else{this.dropdownDataRoot=this.dropdownData}if((t=this.dropdownDataRoot)===null||t===void 0?void 0:t.length){this.dropdownDataRoot.forEach((function(t){if(!t.value){t.value=0}}))}if(this.dropdownDataRoot.length>0){this.dropdownDataRoot[0].checked=true;this._firstDropdownSelection=this.dropdownDataRoot[0].caption;this._secondDropdownSelection=this.dropdownDataRoot[0].value;this.minRowCount=this.dropdownDataRoot[0].value}};t.prototype.updateSecondDropdown=function(){var t=this.dropdownDataRoot.find((function(t){return t.checked===true}));this.secondDropdownArr=[];for(var e=t.value;e<=this.secondDropdownMax;e++){this.secondDropdownArr.push(e)}};t.prototype.updateSelectItemArr=function(t,e){t.forEach((function(t){if(t.caption===e){t.checked=!t.checked}else{t.checked=false}}));return t};t.prototype.setRowData=function(){this.rowData=[];for(var t=0;t<this._secondDropdownSelection;t++){var e=Object.assign({},this._defaultRow);e.id=this.generateUniqueId();this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false)}this.rowCount=this.rowData.length};t.prototype.generateUniqueId=function(){return a()};t.prototype.setFirstValidDate=function(){var t;var e=this.yearsToAddToEndDate?this.yearsToAddToEndDate:2;var n=new Date;n.setDate((t=n.getDate()+this.dateDaysFromToday)!==null&&t!==void 0?t:0);var o=n.getFullYear();var i=(n.getMonth()+1).toString().padStart(2,"0");var r=n.getDate().toString().padStart(2,"0");var s=o+e;this.firstValidDateString="".concat(o.toString(),"-").concat(i,"-").concat(r);this.lastValidDateString="".concat(s.toString(),"-").concat(i,"-").concat(r)};t.prototype.addRow=function(t){var e=Object.assign({},this.rowData[0]);e.id=t?t:this.generateUniqueId();e.date="";this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false);this.rowCount=this.rowData.length;this._secondDropdownSelection=this.rowCount;this.secondDropdownArr=__spreadArray([],this.secondDropdownArr,true);this.updateSum();this.emitValuesIfValid()};t.prototype.handleFirstDropdown=function(){var t=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}this.dropdownDataRoot.forEach((function(t){t.checked=false}));var n=this.dropdownDataRoot.find((function(t){return t.caption===e}));n.checked=true;this._firstDropdownSelection=n.caption;this.minRowCount=n.value;if(n.value>this._secondDropdownSelection){this.dropdownDataRoot=__spreadArray([],this.dropdownDataRoot,true);for(var o=this.rowCount;o<n.value;o++){this.addRow(this.generateUniqueId())}}this.updateSecondDropdown();this.updateSum();this.emitValuesIfValid()};t.prototype.handleSecondDropdown=function(){var t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}var n=parseInt(e);if(n<this._secondDropdownSelection){this.showDelteConfirm=true}else{for(var o=this.rowCount;o<n;o++){this.addRow(this.generateUniqueId())}}this.updateSum();this.emitValuesIfValid()};t.prototype.predefinedValueChange=function(t){var e=this.rowData.findIndex((function(e){return e.id===t.detail.id}));var n=t.detail;this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{firstInput:n.firstInput,secondInput:n.secondInput,date:n.date});if(t.type==="firstInputChange"&&e===0){this.updateFirstInputOfRows(n.firstInput)}if(t.type==="secondInputChange"&&e===0){this.updateSecondInputOfRows(n.secondInput)}this.rowData=__spreadArray([],this.rowData,true);this.emitValuesIfValid();this.updateSum()};t.prototype.updateFirstInputOfRows=function(t){for(var e=1;e<this.rowCount;e++){this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{firstInput:t})}};t.prototype.updateSecondInputOfRows=function(t){for(var e=1;e<this.rowCount;e++){this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{secondInput:t})}};t.prototype.deleteRowEvent=function(t){var e=this.rowData.findIndex((function(e){return e.id===t.detail}));if(e<0){return}this.rowData.splice(e,1);this.rowData=__spreadArray([],this.rowData,true);this.rowCount=this.rowData.length;this._secondDropdownSelection=this.rowCount;this.secondDropdownArr=__spreadArray([],this.secondDropdownArr,true);this.emitValuesIfValid();this.updateSum()};t.prototype.updateSum=function(){this.rowSum="";var t=0;this.rowData.forEach((function(e){var n;if((n=e===null||e===void 0?void 0:e.firstInput)===null||n===void 0?void 0:n.length){t+=parseInt(e.firstInput)}}));this.rowSum=t.toString()};t.prototype.deleteExcessRows=function(){var t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}var n=this.rowCount-parseInt(e);for(var o=0;o<n;o++){this.rowData.pop()}this.rowData=__spreadArray([],this.rowData,true);this.showDelteConfirm=false;this.updateSum()};t.prototype.abortDeleteRows=function(){this.showDelteConfirm=false};t.prototype.emitValuesIfValid=function(){var t=this;this.formValues=[];this.rowData.forEach((function(e){var n,o,i,r;var s={row:[]};if((n=t._firstDropdownSelection)===null||n===void 0?void 0:n.length){var a={name:t.firstDropdownLabel,value:t._firstDropdownSelection};s.row.push(a)}if((o=e.firstInput)===null||o===void 0?void 0:o.length){var l={name:t.fristInputLabel,value:e.firstInput};s.row.push(l)}if((i=e.secondInput)===null||i===void 0?void 0:i.length){var d={name:t.secondInputLabel,value:e.secondInput};s.row.push(d)}if((r=e.date)===null||r===void 0?void 0:r.length){var u={name:t.dateLabel,value:e.date};s.row.push(u)}if(s.row.length===4){t.formValues.push(s)}}));if(this.formValues.length===this.rowData.length){var e=JSON.stringify(this.formValues);this.allFormValues.emit(e)}else{this.allFormValues.emit("")}};t.prototype.render=function(){var t=this;var e,n,r,a,l,d;return o(i,{class:"dropdown-with-multi-input-elemet"},o("div",{class:"dropdown-with-multi-input-elemet__row"},o("div",null,o("pn-select",{ref:function(e){return t.pnFirstDropdown=e},class:"pn-row-select-dropdown dropDown1-dropdown",label:this.firstDropdownLabel},(e=this.dropdownDataRoot)===null||e===void 0?void 0:e.map((function(e,n){return o("pn-option",{index:n,value:e.value,selected:e.checked,onClick:s.debounce(t.handleFirstDropdown.bind(t),500)},e.caption)}))),((n=this.firstDropdownHelperText)===null||n===void 0?void 0:n.length)?o("small",null,this.firstDropdownHelperText):null)),o("div",{class:"dropdown-with-multi-input-elemet__row"},o("div",null,o("pn-select",{ref:function(e){return t.pnSecondDropdown=e},class:"pn-row-select-dropdown dropDown2-dropdown",label:this.secondDropdownLabel},(r=this.secondDropdownArr)===null||r===void 0?void 0:r.map((function(e,n){return o("pn-option",{index:n,value:e,selected:e===t._secondDropdownSelection,onClick:s.debounce(t.handleSecondDropdown.bind(t),500)},e)}))),((a=this.secondDropdownHelperText)===null||a===void 0?void 0:a.length)?o("small",null,this.secondDropdownHelperText):null)),this.showDelteConfirm?o("div",{class:"dropdown-with-multi-input-elemet__delete"},o("p",null,this.deleteMultipleRowsWarningText),o("pn-button",{ref:function(e){return t.pnConfirmDeleteButton=e},small:"true",appearance:"warning",onClick:this.deleteExcessRows.bind(this)},this.confirmDeleteButtonText),o("pn-button",{ref:function(e){return t.pnAbortDeleteButton=e},small:"true",appearance:"light",onClick:this.abortDeleteRows.bind(this)},this.abortDeleteButtonText)):null,o("div",{class:"dropdown-with-multi-input-elemet__label-row"},o("div",{class:"dropdown-with-multi-input-elemet__label"},o("label",null,this.fristInputLabel)),o("div",{class:"dropdown-with-multi-input-elemet__label"},o("label",null,this.secondInputLabel)),o("div",{class:"dropdown-with-multi-input-elemet__label"},o("label",null,this.dateLabel))),(l=this.rowData)===null||l===void 0?void 0:l.map((function(e,n){return o("div",{class:"dropdown-with-multi-input-elemet__row generated-row-"+n,id:"generated-row-"+n},o("pn-dropdown-with-multi-input-rows-row",{"language-code":t.languageCode,"frist-input-placeholder":t.fristInputPlaceholder,"first-input-min":t.firstInputMin,"first-input-max":t.firstInputMax,"first-input-warning":t.firstInputWarning,"first-input-warning-text":t.firstInputWarningText,"first-input-low-error-text":t.firstInputLowErrorText,"first-input-high-error-text":t.firstInputHighErrorText,"second-input-placeholder":t.secondInputPlaceholder,"second-input-min":t.secondInputMin,"second-input-max":t.secondInputMax,"second-input-warning":t.secondInputWarning,"second-input-warning-text":t.secondInputWarningText,"second-input-low-error-text":t.secondInputLowErrorText,"second-input-high-error-text":t.secondInputHighErrorText,datePlaceholder:t.datePlaceholder,firstValidDate:t.firstValidDateString,lastValidDate:t.lastValidDateString,"predefined-value":JSON.stringify(e),"min-row-count":t.minRowCount,"row-index":n}))})),o("div",{class:"dropdown-with-multi-input-elemet__row sum-row"},o("pn-marketweb-input",{disabled:true,ref:function(e){return t.pnSumField=e},type:"number",value:this.rowSum,label:this.sumFieldLabel}),o("pn-button",{"icon-only":this.addRowText?false:true,"left-icon":"true","aria-label":"Add",icon:"plus",appearance:"light",variant:"borderless",class:"connected-dropdown__button-right",onClick:function(){t.addRow(t.generateUniqueId())}},this.addRowText)),((d=this.elementHelperText)===null||d===void 0?void 0:d.length)?o("div",{class:"dropdown-with-multi-input-elemet__row"},this.elementHelperText):null)};Object.defineProperty(t.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());d.style=l}}}));
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var o=0,i=e.length,r;o<i;o++){if(r||!(o in e)){if(!r)r=Array.prototype.slice.call(e,0,o);r[o]=e[o]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-d17fb67d.system.js","./p-296637c0.system.js","./p-e351523a.system.js"],(function(t){"use strict";var e,n,o,i,r,s,a;return{setters:[function(t){e=t.r;n=t.c;o=t.h;i=t.a;r=t.g},function(t){s=t.d},function(t){a=t.v}],execute:function(){var l="pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__row{margin-bottom:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem;padding:1rem;background-color:#F9F8F8}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete pn-button{margin-top:0.9rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label{width:30%;font-size:0.875em;color:#5e554a}pn-dropdown-with-multi-input-rows .sum-row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";var d=t("pn_dropdown_with_multi_input_rows",function(){function t(t){e(this,t);this.allFormValues=n(this,"allFormValues",7);this.pnFirstDropdown=null;this.pnSecondDropdown=null;this.pnSumField=null;this.pnConfirmDeleteButton=null;this.pnAbortDeleteButton=null;this._firstDropdownSelection=null;this._secondDropdownSelection=null;this._defaultRow={id:this.generateUniqueId(),firstInput:"",secondInput:this.secondInputWarning.toString(),date:""};this.dropdownData=null;this.languageCode=null;this.firstDropdownLabel=null;this.firstDropdownHelperText=null;this.secondDropdownLabel=null;this.secondDropdownHelperText=null;this.secondDropdownMax=null;this.deleteMultipleRowsWarningText=null;this.confirmDeleteButtonText=null;this.abortDeleteButtonText=null;this.fristInputLabel=null;this.fristInputPlaceholder=null;this.firstInputMin=null;this.firstInputMax=null;this.firstInputWarning=null;this.firstInputWarningText=null;this.firstInputLowErrorText=null;this.firstInputHighErrorText=null;this.secondInputLabel=null;this.secondInputPlaceholder=null;this.secondInputMin=null;this.secondInputMax=null;this.secondInputWarning=null;this.secondInputWarningText=null;this.secondInputLowErrorText=null;this.secondInputHighErrorText=null;this.dateLabel=null;this.datePlaceholder=null;this.dateDaysFromToday=1;this.yearsToAddToEndDate=null;this.sumFieldLabel=null;this.addRowText=null;this.elementHelperText=null;this.dropdownDataRoot=null;this.secondDropdownArr=[];this.rowCount=null;this.rowData=null;this.formValues=null;this.firstValidDateString="";this.lastValidDateString="";this.rowSum=null;this.minRowCount=null;this.showDelteConfirm=false}t.prototype.componentWillLoad=function(){this.formValues=[];this.setDropDownData();this.updateSecondDropdown();this.setRowData();this.setFirstValidDate()};t.prototype.componentDidLoad=function(){this.updateSum()};t.prototype.setDropDownData=function(){var t;if(typeof this.dropdownData==="string"){this.dropdownDataRoot=JSON.parse(this.dropdownData)}else{this.dropdownDataRoot=this.dropdownData}if((t=this.dropdownDataRoot)===null||t===void 0?void 0:t.length){this.dropdownDataRoot.forEach((function(t){if(!t.value){t.value=0}}))}if(this.dropdownDataRoot.length>0){this.dropdownDataRoot[0].checked=true;this._firstDropdownSelection=this.dropdownDataRoot[0].caption;this._secondDropdownSelection=this.dropdownDataRoot[0].value;this.minRowCount=this.dropdownDataRoot[0].value}};t.prototype.updateSecondDropdown=function(){var t=this.dropdownDataRoot.find((function(t){return t.checked===true}));this.secondDropdownArr=[];for(var e=t.value;e<=this.secondDropdownMax;e++){this.secondDropdownArr.push(e)}};t.prototype.updateSelectItemArr=function(t,e){t.forEach((function(t){if(t.caption===e){t.checked=!t.checked}else{t.checked=false}}));return t};t.prototype.setRowData=function(){this.rowData=[];for(var t=0;t<this._secondDropdownSelection;t++){var e=Object.assign({},this._defaultRow);e.id=this.generateUniqueId();this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false)}this.rowCount=this.rowData.length};t.prototype.generateUniqueId=function(){return a()};t.prototype.setFirstValidDate=function(){var t;var e=this.yearsToAddToEndDate?this.yearsToAddToEndDate:2;var n=new Date;n.setDate((t=n.getDate()+this.dateDaysFromToday)!==null&&t!==void 0?t:0);var o=n.getFullYear();var i=(n.getMonth()+1).toString().padStart(2,"0");var r=n.getDate().toString().padStart(2,"0");var s=o+e;this.firstValidDateString="".concat(o.toString(),"-").concat(i,"-").concat(r);this.lastValidDateString="".concat(s.toString(),"-").concat(i,"-").concat(r)};t.prototype.addRow=function(t){var e=Object.assign({},this.rowData[0]);e.id=t?t:this.generateUniqueId();e.date="";this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false);this.rowCount=this.rowData.length;this._secondDropdownSelection=this.rowCount;this.secondDropdownArr=__spreadArray([],this.secondDropdownArr,true);this.updateSum();this.emitValuesIfValid()};t.prototype.handleFirstDropdown=function(){var t=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}this.dropdownDataRoot.forEach((function(t){t.checked=false}));var n=this.dropdownDataRoot.find((function(t){return t.caption===e}));n.checked=true;this._firstDropdownSelection=n.caption;this.minRowCount=n.value;if(n.value>this._secondDropdownSelection){this.dropdownDataRoot=__spreadArray([],this.dropdownDataRoot,true);for(var o=this.rowCount;o<n.value;o++){this.addRow(this.generateUniqueId())}}this.updateSecondDropdown();this.updateSum();this.emitValuesIfValid()};t.prototype.handleSecondDropdown=function(){var t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}var n=parseInt(e);if(n<this._secondDropdownSelection){this.showDelteConfirm=true}else{for(var o=this.rowCount;o<n;o++){this.addRow(this.generateUniqueId())}}this.updateSum();this.emitValuesIfValid()};t.prototype.predefinedValueChange=function(t){var e=this.rowData.findIndex((function(e){return e.id===t.detail.id}));var n=t.detail;this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{firstInput:n.firstInput,secondInput:n.secondInput,date:n.date});if(t.type==="firstInputChange"&&e===0){this.updateFirstInputOfRows(n.firstInput)}if(t.type==="secondInputChange"&&e===0){this.updateSecondInputOfRows(n.secondInput)}this.rowData=__spreadArray([],this.rowData,true);this.emitValuesIfValid();this.updateSum()};t.prototype.updateFirstInputOfRows=function(t){for(var e=1;e<this.rowCount;e++){this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{firstInput:t})}};t.prototype.updateSecondInputOfRows=function(t){for(var e=1;e<this.rowCount;e++){this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{secondInput:t})}};t.prototype.deleteRowEvent=function(t){var e=this.rowData.findIndex((function(e){return e.id===t.detail}));if(e<0){return}this.rowData.splice(e,1);this.rowData=__spreadArray([],this.rowData,true);this.rowCount=this.rowData.length;this._secondDropdownSelection=this.rowCount;this.secondDropdownArr=__spreadArray([],this.secondDropdownArr,true);this.emitValuesIfValid();this.updateSum()};t.prototype.updateSum=function(){this.rowSum="";var t=0;this.rowData.forEach((function(e){var n;if((n=e===null||e===void 0?void 0:e.firstInput)===null||n===void 0?void 0:n.length){t+=parseInt(e.firstInput)}}));this.rowSum=t.toString()};t.prototype.deleteExcessRows=function(){var t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}var n=this.rowCount-parseInt(e);for(var o=0;o<n;o++){this.rowData.pop()}this.rowData=__spreadArray([],this.rowData,true);this.showDelteConfirm=false;this.updateSum()};t.prototype.abortDeleteRows=function(){this.showDelteConfirm=false};t.prototype.emitValuesIfValid=function(){var t=this;this.formValues=[];this.rowData.forEach((function(e){var n,o,i,r;var s={row:[]};if((n=t._firstDropdownSelection)===null||n===void 0?void 0:n.length){var a={name:t.firstDropdownLabel,value:t._firstDropdownSelection};s.row.push(a)}if((o=e.firstInput)===null||o===void 0?void 0:o.length){var l={name:t.fristInputLabel,value:e.firstInput};s.row.push(l)}if((i=e.secondInput)===null||i===void 0?void 0:i.length){var d={name:t.secondInputLabel,value:e.secondInput};s.row.push(d)}if((r=e.date)===null||r===void 0?void 0:r.length){var u={name:t.dateLabel,value:e.date};s.row.push(u)}if(s.row.length===4){t.formValues.push(s)}}));if(this.formValues.length===this.rowData.length){var e=JSON.stringify(this.formValues);this.allFormValues.emit(e)}else{this.allFormValues.emit("")}};t.prototype.render=function(){var t=this;var e,n,r,a,l,d;return o(i,{class:"dropdown-with-multi-input-elemet"},o("div",{class:"dropdown-with-multi-input-elemet__row"},o("div",null,o("pn-select",{ref:function(e){return t.pnFirstDropdown=e},class:"pn-row-select-dropdown dropDown1-dropdown",label:this.firstDropdownLabel},(e=this.dropdownDataRoot)===null||e===void 0?void 0:e.map((function(e,n){return o("pn-option",{index:n,value:e.value,selected:e.checked,onClick:s.debounce(t.handleFirstDropdown.bind(t),500)},e.caption)}))),((n=this.firstDropdownHelperText)===null||n===void 0?void 0:n.length)?o("small",null,this.firstDropdownHelperText):null)),o("div",{class:"dropdown-with-multi-input-elemet__row"},o("div",null,o("pn-select",{ref:function(e){return t.pnSecondDropdown=e},class:"pn-row-select-dropdown dropDown2-dropdown",label:this.secondDropdownLabel},(r=this.secondDropdownArr)===null||r===void 0?void 0:r.map((function(e,n){return o("pn-option",{index:n,value:e,selected:e===t._secondDropdownSelection,onClick:s.debounce(t.handleSecondDropdown.bind(t),500)},e)}))),((a=this.secondDropdownHelperText)===null||a===void 0?void 0:a.length)?o("small",null,this.secondDropdownHelperText):null)),this.showDelteConfirm?o("div",{class:"dropdown-with-multi-input-elemet__delete"},o("p",null,this.deleteMultipleRowsWarningText),o("pn-button",{ref:function(e){return t.pnConfirmDeleteButton=e},small:"true",appearance:"warning",onClick:this.deleteExcessRows.bind(this)},this.confirmDeleteButtonText),o("pn-button",{ref:function(e){return t.pnAbortDeleteButton=e},small:"true",appearance:"light",onClick:this.abortDeleteRows.bind(this)},this.abortDeleteButtonText)):null,o("div",{class:"dropdown-with-multi-input-elemet__label-row"},o("div",{class:"dropdown-with-multi-input-elemet__label"},o("label",null,this.fristInputLabel)),o("div",{class:"dropdown-with-multi-input-elemet__label"},o("label",null,this.secondInputLabel)),o("div",{class:"dropdown-with-multi-input-elemet__label"},o("label",null,this.dateLabel))),(l=this.rowData)===null||l===void 0?void 0:l.map((function(e,n){return o("div",{class:"dropdown-with-multi-input-elemet__row generated-row-"+n,id:"generated-row-"+n},o("pn-dropdown-with-multi-input-rows-row",{"language-code":t.languageCode,"frist-input-placeholder":t.fristInputPlaceholder,"first-input-min":t.firstInputMin,"first-input-max":t.firstInputMax,"first-input-warning":t.firstInputWarning,"first-input-warning-text":t.firstInputWarningText,"first-input-low-error-text":t.firstInputLowErrorText,"first-input-high-error-text":t.firstInputHighErrorText,"second-input-placeholder":t.secondInputPlaceholder,"second-input-min":t.secondInputMin,"second-input-max":t.secondInputMax,"second-input-warning":t.secondInputWarning,"second-input-warning-text":t.secondInputWarningText,"second-input-low-error-text":t.secondInputLowErrorText,"second-input-high-error-text":t.secondInputHighErrorText,datePlaceholder:t.datePlaceholder,firstValidDate:t.firstValidDateString,lastValidDate:t.lastValidDateString,"predefined-value":JSON.stringify(e),"min-row-count":t.minRowCount,"row-index":n}))})),o("div",{class:"dropdown-with-multi-input-elemet__row sum-row"},o("pn-marketweb-input",{disabled:true,ref:function(e){return t.pnSumField=e},type:"number",value:this.rowSum,label:this.sumFieldLabel}),o("pn-button",{"icon-only":this.addRowText?false:true,"left-icon":"true","aria-label":"Add",icon:"plus",appearance:"light",variant:"borderless",class:"connected-dropdown__button-right",onClick:function(){t.addRow(t.generateUniqueId())}},this.addRowText)),((d=this.elementHelperText)===null||d===void 0?void 0:d.length)?o("div",{class:"dropdown-with-multi-input-elemet__row"},this.elementHelperText):null)};Object.defineProperty(t.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());d.style=l}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,a,g as n}from"./p-9dd478d9.js";const r=class{constructor(t){var a;e(this,t),this.labelToCapitals=null===(a=this.label)||void 0===a?void 0:a.toUpperCase(),this.text=null,this.heading=null,this.label=null,this.dataCardColor="coral",this.dataCardAlignment="left",this.hasCtaSlotContent=!1,this.hasIllustrationSlot=!0}componentWillLoad(){this.hasCtaSlotContent=!!this.hostElement.querySelector('[slot="cta"]'),this.hasIllustrationSlot=!!this.hostElement.querySelector('[slot="illustration"]')}render(){return t(a,null,t("slot",{name:"clickable-block-wrapper"}),t("div",{class:"pn-teaser-card__container"},t("div",{class:"pn-teaser-card__container__image__container "+(this.hasIllustrationSlot?"":"pn-teaser-card__container__image__container--no-image")},t("slot",{name:"illustration"})),t("div",{class:"pn-teaser-card__container__content"},t("div",{class:"pn-teaser-card__container__content__text__container"},this.labelToCapitals&&t("span",{class:"pn-teaser-card__container__content__text__container__label"},this.labelToCapitals),t("h2",{class:"pn-teaser-card__container__content__text__container__heading"},this.heading),t("p",{class:"pn-teaser-card__container__content__text__container__preamble"},this.text)),this.hasCtaSlotContent&&t("div",{class:"pn-teaser-card__container__content__cta"},t("slot",{name:"cta"})))))}get hostElement(){return n(this)}};r.style=".block.teasercardblock a[data-block-clickable-link=true]{z-index:1}pn-teaser-card{width:100%;height:100%;display:-ms-flexbox;display:flex}pn-teaser-card .pn-teaser-card__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;border-radius:2.4rem;width:100%}pn-teaser-card .pn-teaser-card__container__image__container{width:100%;position:relative}pn-teaser-card .pn-teaser-card__container__image__container>[slot=illustration]{-webkit-clip-path:ellipse(100% 90% at 50% 0%);clip-path:ellipse(100% 90% at 50% 0%);height:100%;overflow:hidden;border-top-left-radius:2.4rem;border-top-right-radius:2.4rem}pn-teaser-card .pn-teaser-card__container__image__container>[slot=illustration]>picture>img{width:100%;height:auto;-webkit-transition:0.4s ease-in-out;transition:0.4s ease-in-out;-webkit-transform:scale(1);transform:scale(1);aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 0;object-position:50% 0}pn-teaser-card .pn-teaser-card__container__content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex:1 1 100%;flex:1 1 100%;gap:3.2rem;padding:2.4rem 2.4rem;padding-top:0}pn-teaser-card .pn-teaser-card__container__content__text__container__heading{font-weight:700;font-size:2.4rem;line-height:2.64rem;margin-bottom:0}pn-teaser-card .pn-teaser-card__container__content__text__container__preamble{padding-top:1.6rem;font-weight:400;font-size:1.6rem;line-height:2.24rem;margin-bottom:0}pn-teaser-card .pn-teaser-card__container__content__text__container__label{display:block;margin-bottom:1.6rem;font-weight:400;font-size:1.2rem;line-height:140%}pn-teaser-card .pn-teaser-card__container__content__cta>pn-button{-ms-flex-item-align:end;align-self:flex-end;width:100%}pn-teaser-card .pn-teaser-card__container__content__cta>pn-button a:hover{text-decoration:none}pn-teaser-card .pn-teaser-card__container__content__cta>pn-button>button>.pn-button-bg,pn-teaser-card .pn-teaser-card__container__content__cta>pn-button>a>.pn-button-bg{-webkit-transition:0.4s ease-in-out;transition:0.4s ease-in-out}@media screen and (min-width: 768px){pn-teaser-card .pn-teaser-card__container__content__cta>pn-button{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:500;font-size:1.6rem;text-decoration:none;color:#005D92}pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated pn-icon svg{-webkit-transition:0.3s ease-in-out;transition:0.3s ease-in-out;position:relative;left:-0.3rem}pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated pn-icon svg path{fill:#005D92}pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated[target=_blank]:not(.pn-button):after{display:none}pn-teaser-card[data-card-color=coral]>.pn-teaser-card__container{background-color:#FDEFEE}pn-teaser-card[data-card-color=green]>.pn-teaser-card__container{background-color:#DCF6E7}pn-teaser-card[data-card-color=blue]>.pn-teaser-card__container{background-color:#EFFBFF}pn-teaser-card[data-card-color=blue50]>.pn-teaser-card__container{background-color:#E0F8FF}pn-teaser-card[data-card-color=blue400]>.pn-teaser-card__container{background-color:#00A0D6}pn-teaser-card[data-card-color=blue400]>.pn-teaser-card__container .pn-teaser-card__container__content__text__container__label,pn-teaser-card[data-card-color=blue400]>.pn-teaser-card__container .pn-teaser-card__container__content__text__container__heading,pn-teaser-card[data-card-color=blue400]>.pn-teaser-card__container .pn-teaser-card__container__content__text__container__preamble,pn-teaser-card[data-card-color=blue400]>.pn-teaser-card__container .pn-teaser-card__container__content__cta .secondary-link--animated{color:#FFFFFF}pn-teaser-card[data-card-color=blue400]>.pn-teaser-card__container .secondary-link--animated>pn-icon>svg>path{fill:#FFFFFF}pn-teaser-card[data-card-color=blue900]>.pn-teaser-card__container{background-color:#0D234B}pn-teaser-card[data-card-color=blue900]>.pn-teaser-card__container .pn-teaser-card__container__content__text__container__heading{color:#F06365}pn-teaser-card[data-card-color=blue900]>.pn-teaser-card__container .pn-teaser-card__container__content__text__container__label,pn-teaser-card[data-card-color=blue900]>.pn-teaser-card__container .pn-teaser-card__container__content__text__container__preamble,pn-teaser-card[data-card-color=blue900]>.pn-teaser-card__container .pn-teaser-card__container__content__cta .secondary-link--animated{color:#FFFFFF}pn-teaser-card[data-card-color=blue900]>.pn-teaser-card__container .secondary-link--animated>pn-icon>svg>path{fill:#FFFFFF}pn-teaser-card[data-card-color=white]>.pn-teaser-card__container{background-color:#FFFFFF}.teasercardlistblock .teasercardblock.has-bg{background-color:transparent;background:transparent}@media screen and (min-width: 1200px){.onequarterwidth .pn-teaser-card__container__content__text__container__label{margin-bottom:0.8rem}}.onethirdwidth>pn-teaser-card .pn-teaser-card__container__image__container--no-image,.onequarterwidth>pn-teaser-card .pn-teaser-card__container__image__container--no-image{padding-top:2.4rem}.onethirdwidth .pn-teaser-card__container__content__cta .secondary-link--animated,.onequarterwidth .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:400}.halfwidth>pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:400}.halfwidth>pn-teaser-card .pn-teaser-card__container__image__container--no-image{padding-top:2.4rem}@media screen and (min-width: 992px){.halfwidth>pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:500}}@media screen and (min-width: 1200px){.halfwidth>pn-teaser-card .pn-teaser-card__container__image__container--no-image{padding-top:4rem}.halfwidth>pn-teaser-card .pn-teaser-card__container__content{padding:0 4rem 4rem}.halfwidth>pn-teaser-card .pn-teaser-card__container__content__text__container__heading{font-weight:700;font-size:3.2rem;line-height:3.52rem}.halfwidth>pn-teaser-card .pn-teaser-card__container__content__text__container__preamble{font-weight:400;font-size:2rem;line-height:2.8rem}}@media screen and (min-width: 1640px){.halfwidth>pn-teaser-card .pn-teaser-card__container__image__container--no-image{padding-top:5.6rem}.halfwidth>pn-teaser-card .pn-teaser-card__container__content{padding:0 5.6rem 5.6rem}}.fullwidth>pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:400}.fullwidth>pn-teaser-card .pn-teaser-card__container__image__container--no-image{width:auto;padding-top:2.4rem}@media screen and (min-width: 768px){.fullwidth>pn-teaser-card{min-height:35rem}.fullwidth>pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:500}.fullwidth>pn-teaser-card .pn-teaser-card__container{-ms-flex-direction:row;flex-direction:row}.fullwidth>pn-teaser-card .pn-teaser-card__container__content{-ms-flex-item-align:center;align-self:center;gap:2.4rem;padding:3.2rem 3.2rem 3.2rem 2.4rem}.fullwidth>pn-teaser-card .pn-teaser-card__container__image__container>[slot=illustration]{border-top-left-radius:2.4rem;border-bottom-left-radius:2.4rem;-webkit-clip-path:ellipse(100% 100% at 0% 50%);clip-path:ellipse(100% 100% at 0% 50%)}.fullwidth>pn-teaser-card .pn-teaser-card__container__image__container>[slot=illustration]>picture>img{height:100%;-o-object-fit:cover;object-fit:cover}}@media screen and (min-width: 1200px){.fullwidth>pn-teaser-card{min-height:52rem}.fullwidth>pn-teaser-card .pn-teaser-card__container__content{padding:4rem 4rem 4rem 3.2rem}.fullwidth>pn-teaser-card .pn-teaser-card__container__content__text__container__heading{font-weight:700;font-size:4.8rem;line-height:5.28rem}.fullwidth>pn-teaser-card .pn-teaser-card__container__content__text__container__preamble{font-size:2rem;line-height:2.8rem}}@media screen and (min-width: 768px){.fullwidth pn-teaser-card[data-card-alignment=right] .pn-teaser-card__container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.fullwidth pn-teaser-card[data-card-alignment=right] .pn-teaser-card__container__content{padding:3.2rem 2.4rem 3.2rem 3.2rem}.fullwidth pn-teaser-card[data-card-alignment=right] .pn-teaser-card__container__image__container>[slot=illustration]{border-bottom-right-radius:2.4rem;-webkit-clip-path:ellipse(100% 100% at 100% 50%);clip-path:ellipse(100% 100% at 100% 50%)}}@media screen and (min-width: 1200px){.fullwidth pn-teaser-card[data-card-alignment=right] .pn-teaser-card__container__content{padding:4rem 3.2rem 4rem 4rem}}pn-teaser-card.teaser-card--hover-effect:hover{cursor:pointer}pn-teaser-card.teaser-card--hover-effect:hover .pn-teaser-card__container__image__container [slot=illustration] picture>img{-webkit-transform:scale(1.02);transform:scale(1.02);-webkit-filter:brightness(0.85);filter:brightness(0.85)}pn-teaser-card.teaser-card--hover-effect:hover .secondary-link--animated{text-decoration:underline}pn-teaser-card.teaser-card--hover-effect:hover .secondary-link--animated pn-icon svg{left:0}pn-teaser-card.teaser-card--hover-effect:hover pn-button button .pn-button-bg,pn-teaser-card.teaser-card--hover-effect:hover pn-button a .pn-button-bg{background-color:#0D234B}pn-teaser-card.teaser-card--hover-effect:hover[data-card-color=blue900] pn-button button .pn-button-bg,pn-teaser-card.teaser-card--hover-effect:hover[data-card-color=blue900] pn-button a .pn-button-bg{background-color:#00A0D6}";export{r as pn_teaser_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,a as i}from"./p-
|
|
1
|
+
import{r as t,h as e,a as i}from"./p-9dd478d9.js";import{w as s}from"./p-fd0d5f6c.js";import{a as n}from"./p-bfe239ca.js";import{s as a}from"./p-3f74ef14.js";import"./p-814af281.js";import"./p-b96dbfea.js";const r={sv:{componentheading:"Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?",deliveryscopeheading:"Endast leveranser inom Sverige",resultlistheading:"Några bra alternativ för dig",weightlabel:"Vikt",maxweightlabel:"Maxvikt",maxmeasurementlabel:"Maxvolym",senddirectcta:"Köp online",stampshopcta:"Köp frimärken",message:"*Vid köp hos valfritt ombud",servicePointHeader:"Eller hitta närmaste serviceställe",servicePointLink:"Sök serviceställe eller brevlåda"},en:{componentheading:"Our prices and terms and conditions for domestic shipments for you as a direct paying customer",deliveryscopeheading:"Deliveries within Sweden only",resultlistheading:"Some suitable options for you",weightlabel:"Weight",maxweightlabel:"Max weight",maxmeasurementlabel:"Maximum measurement",senddirectcta:"Buy Online",stampshopcta:"Buy Stamps",message:"When buying from any agent",servicePointHeader:"Or find nearest service point",servicePointLink:"Search letter-box or service point"},da:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveringer indenfor Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vægt",maxweightlabel:"Max vægt",maxmeasurementlabel:"Maks. Volumen",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},no:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveranser innen Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vekt",maxweightlabel:"Maks vekt",maxmeasurementlabel:"Maks volum",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},fi:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Toimitukset vain Ruotsin sisällä",resultlistheading:"Some suitable options for you",weightlabel:"Paino",maxweightlabel:"Max paino",maxmeasurementlabel:"Max äänenvoimakkuus",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"}},o={se:{currency:"kr"},dk:{currency:"dk"},fi:{currency:" €"},no:{currency:"kr"}},l=class{constructor(e){t(this,e),this.source="https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx",this.language="sv",this.market="se",this.productid="",this.filteredItems=[],this.sourceData={types:[],data:[]},this.gotData=!1,this.loading=!1,this.postagetype={value:""},this.weight={value:0,name:""},this.weightvalue=0}componentWillLoad(){this.setState(),this.getDataSource().then((()=>{}))}setState(){this.market&&(a.market=o[this.market]),this.language&&r[this.language]&&(a.i18n=r[this.language])}async getDataSource(){if(!this.productid)return;this.loading=!0;const t=`?cache=${Math.floor(9999*Math.random()+1)}`,e=await fetch(this.source+t),i=await e.blob();try{const t=await n(i);this.sourceData=t,this.filterItems()}catch(s){this.loading=!1,console.warn("Unable to parse data")}}filterItems(){var t;if(!(null===(t=this.sourceData)||void 0===t?void 0:t.data))return void console.info("Data has not yet been loaded");this.loading=!1;const e=this.sourceData.data.filter((t=>t.id===this.productid));if(0===e.length)return;if(this.postagetype.value=e[0].what,!s[this.postagetype.value]||0===s[this.postagetype.value].length)return;0===this.weightvalue&&(this.weight=s[this.postagetype.value][0],this.weightvalue=this.weight.value);const i="kg"===this.weight.abbreviation.toLocaleLowerCase()&&"letter"===this.postagetype.value?1e3*this.weight.value:this.weight.value;let n=e.filter((t=>t.maxweight===i));if(0===n.length&&(n=e.filter((t=>t.maxweight>=i)),n.length>0)){const t=[...new Map(n.reverse().map((t=>[t.id,t]))).values()];t.length>0&&(n=t)}this.filteredItems=n,this.gotData=this.filteredItems.length>0}render(){return e(i,null,e("div",{class:"content"},e("slot",null)),this.loading?e("pn-spinner",null):null,this.postagetype.value&&s[this.postagetype.value]?e("div",{class:"weightselection"},e("div",{class:"weightoption"},e("div",{class:"weightoption-input"},e("pn-input",{inputid:"weightvalue",name:"weightvalue",type:"number",label:a.i18n.weightlabel,value:this.weightvalue,onChange:t=>{if(t&&t.target&&t.target.value){const e=parseInt(t.target.value,10);if(!isNaN(e)){let t=s[this.postagetype.value].filter((t=>("kg"===t.abbreviation?1e3*t.value:t.value)>=e));t&&t.length>0&&(this.weight=t[0],this.weightvalue=this.weight.value)}}}}),e("span",{class:"weightoption-input-abbreviation"},this.weight.abbreviation)),e("div",{class:"weightoption-range"},e("input",{type:"range",id:"weightrange",name:"weightrange",list:"weightlist",value:this.weight.value?s[this.postagetype.value].findIndex((t=>t.value===this.weightvalue)):0,onChange:t=>{this.weight=s[this.postagetype.value][t.target.value],this.weightvalue=this.weight.value},min:"0",max:s[this.postagetype.value].length-1}),e("datalist",{id:"weightlist"},s[this.postagetype.value].map(((t,i)=>{let n=t.name;return s[this.postagetype.value].length>6&&(n=i%5==0||0===i||i===s[this.postagetype.value].length-1?t.name:""),e("option",Object.assign({value:i},n?{label:n}:{}))})))))):null,e("div",{class:"resultlist","data-list-count":this.filteredItems.length},this.filteredItems.map((t=>e("div",null,e("pn-find-price-result",{item:t}))))))}static get watchers(){return{market:["setState"],language:["setState"],postagetype:["filterItems"],weightvalue:["filterItems"]}}};l.style='pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection,pn-product-pricelist .resultlist{max-width:50em;margin:0 auto 1.6rem}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1.6rem}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count="0"]){margin-top:2em}';export{l as pn_product_pricelist}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as l,a as s}from"./p-
|
|
1
|
+
import{r as t,h as l,a as s}from"./p-9dd478d9.js";import{s as i}from"./p-6107c744.js";import"./p-b96dbfea.js";const n=class{constructor(l){t(this,l),this.item=null,this.shownitems=[],this.weightText=""}componentWillLoad(){this.composeItems()}composeItems(){this.shownitems=[this.item]}render(){return l(s,null,this.shownitems.map((t=>l("pn-product-card",null,l("pn-illustration",{slot:"illustration",illustration:t.illustration}),l("div",{slot:"content"},l("div",{class:"content"},l("h3",null,t.name),t.description?l("div",{class:"description"},t.description):null,t.info?l("div",{class:"description"},t.info):null)),t.maxweight?l("pn-product-tile-info",{label:i.i18n.maxweightlabel,text:this.weightText}):null,t.pricestamps?l("pn-product-tile-price",{slot:"price",label:i.i18n.stampshopcta,amount:t.pricestamps+"",currency:i.market.currency}):null,t.pricesenddirect?l("pn-product-tile-price",{slot:"price",label:i.i18n.senddirectcta,amount:t.pricesenddirect+"",currency:i.market.currency,url:"https://portal.postnord.com/skickadirekt/"}):null,t.note?l("small",{slot:"note"},l("p",null,t.note)):null))))}static get watchers(){return{item:["composeItems"]}}};n.style="";export{n as pn_find_service_and_price_result}
|