@postnord/pn-marketweb-components 4.0.2 → 4.0.4-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{MarketWebContextService-0fdc43c8.js → FetchHelper-e951824f.js} +82 -1
- package/dist/cjs/FetchHelper-e951824f.js.map +1 -0
- package/dist/cjs/{index-4067c6a5.js → index-1d8c9211.js} +2 -2
- package/dist/cjs/{index-4067c6a5.js.map → index-1d8c9211.js.map} +1 -1
- package/dist/cjs/{index-b02670c2.js → index-34e1c673.js} +4 -53
- package/dist/cjs/index-34e1c673.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pn-address-autofill.cjs.entry.js +75 -51
- package/dist/cjs/pn-address-autofill.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-animated-tile.cjs.entry.js +2 -2
- package/dist/cjs/pn-animated-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-app-banner.cjs.entry.js +3 -3
- package/dist/cjs/pn-app-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-bonus-progressbar-level.cjs.entry.js +2 -2
- package/dist/cjs/pn-bonus-progressbar-level.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
- package/dist/cjs/pn-bonus-progressbar.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-breakpoints.cjs.entry.js +3 -3
- package/dist/cjs/pn-breakpoints.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-chart.cjs.entry.js +2 -2
- package/dist/cjs/pn-chart.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-charts-card.cjs.entry.js +2 -2
- package/dist/cjs/pn-charts-card.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-choice-button.cjs.entry.js +2 -2
- package/dist/cjs/pn-choice-button.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-cta-block.cjs.entry.js +2 -2
- package/dist/cjs/pn-cta-block.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-customernumber-selector-option.cjs.entry.js +3 -3
- package/dist/cjs/pn-customernumber-selector-option.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-customernumber-selector.cjs.entry.js +9 -4
- package/dist/cjs/pn-customernumber-selector.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-date-and-time.cjs.entry.js +2 -2
- package/dist/cjs/pn-date-and-time.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +8 -20
- package/dist/cjs/pn-dropdown-choice-adds-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +2 -2
- package/dist/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +2 -2
- package/dist/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-filter-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/pn-filter-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-find-price-result.cjs.entry.js +5 -5
- package/dist/cjs/pn-find-price-result.cjs.entry.js.map +1 -1
- package/dist/cjs/{pn-find-price-store-0c8256c7.js → pn-find-price-store-051e931b.js} +2 -2
- package/dist/cjs/{pn-find-price-store-0c8256c7.js.map → pn-find-price-store-051e931b.js.map} +1 -1
- package/dist/cjs/pn-find-price.cjs.entry.js +6 -6
- package/dist/cjs/pn-find-price.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-find-service-and-price-result.cjs.entry.js +5 -5
- package/dist/cjs/pn-find-service-and-price-result.cjs.entry.js.map +1 -1
- package/dist/cjs/{pn-find-service-and-price-store-13f060e0.js → pn-find-service-and-price-store-3cec3d31.js} +2 -2
- package/dist/cjs/{pn-find-service-and-price-store-13f060e0.js.map → pn-find-service-and-price-store-3cec3d31.js.map} +1 -1
- package/dist/cjs/pn-find-service-and-price.cjs.entry.js +5 -5
- package/dist/cjs/pn-find-service-and-price.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-hero-block-international.cjs.entry.js +3 -3
- package/dist/cjs/pn-hero-block-international.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-language-selector_9.cjs.entry.js +27 -25
- package/dist/cjs/pn-language-selector_9.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-line-shape.cjs.entry.js +2 -2
- package/dist/cjs/pn-line-shape.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-link-list.cjs.entry.js +3 -3
- package/dist/cjs/pn-link-list.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-mainnav-link.cjs.entry.js +5 -5
- package/dist/cjs/pn-mainnav-link.cjs.entry.js.map +1 -1
- package/dist/cjs/{pn-mainnav-store-5732f3ca.js → pn-mainnav-store-1a8153fd.js} +2 -2
- package/dist/cjs/{pn-mainnav-store-5732f3ca.js.map → pn-mainnav-store-1a8153fd.js.map} +1 -1
- package/dist/cjs/pn-market-web-components.cjs.js +2 -2
- package/dist/cjs/pn-marketweb-icon.cjs.entry.js +3 -3
- package/dist/cjs/pn-marketweb-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-marketweb-input.cjs.entry.js +6 -4
- package/dist/cjs/pn-marketweb-input.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-marketweb-search.cjs.entry.js +5 -6
- package/dist/cjs/pn-marketweb-search.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-marketweb-sitefooter.cjs.entry.js +10 -7
- package/dist/cjs/pn-marketweb-sitefooter.cjs.entry.js.map +1 -1
- package/dist/cjs/{pn-marketweb-siteheader-login-button_4.cjs.entry.js → pn-marketweb-siteheader-login-button_5.cjs.entry.js} +26 -8
- package/dist/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js.map +1 -0
- package/dist/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +4 -4
- package/dist/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js.map +1 -1
- package/dist/cjs/{pn-marketweb-siteheader-store-ce9d9ac7.js → pn-marketweb-siteheader-store-75853609.js} +2 -2
- package/dist/cjs/{pn-marketweb-siteheader-store-ce9d9ac7.js.map → pn-marketweb-siteheader-store-75853609.js.map} +1 -1
- package/dist/cjs/pn-marketweb-siteheader.cjs.entry.js +10 -11
- package/dist/cjs/pn-marketweb-siteheader.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-media-block.cjs.entry.js +6 -6
- package/dist/cjs/pn-media-block.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +2 -2
- package/dist/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/pn-multi-row-connected-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-multiple-input.cjs.entry.js +1 -1
- package/dist/cjs/pn-parcel-tracker.cjs.entry.js +2 -2
- package/dist/cjs/pn-parcel-tracker.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-pex-pricefinder.cjs.entry.js +3 -3
- package/dist/cjs/pn-pex-pricefinder.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-play-on-scroll.cjs.entry.js +1 -1
- package/dist/cjs/pn-product-card_3.cjs.entry.js +5 -5
- package/dist/cjs/pn-product-card_3.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-product-pricelist-result.cjs.entry.js +4 -4
- package/dist/cjs/pn-product-pricelist-result.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-product-pricelist.cjs.entry.js +6 -6
- package/dist/cjs/pn-product-pricelist.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-product-tile-info_2.cjs.entry.js +4 -4
- package/dist/cjs/pn-product-tile-info_2.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-product-tile.cjs.entry.js +3 -3
- package/dist/cjs/pn-product-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-profile-modal-customernumber.cjs.entry.js +3 -3
- package/dist/cjs/pn-profile-modal-customernumber.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-profile-modal-profile.cjs.entry.js +6 -6
- package/dist/cjs/pn-profile-modal-profile.cjs.entry.js.map +1 -1
- package/dist/cjs/{pn-profile-modal-store-16f8092a.js → pn-profile-modal-store-3b6fea24.js} +2 -2
- package/dist/cjs/{pn-profile-modal-store-16f8092a.js.map → pn-profile-modal-store-3b6fea24.js.map} +1 -1
- package/dist/cjs/pn-profile-modal-type.cjs.entry.js +5 -5
- package/dist/cjs/pn-profile-modal-type.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-profile-modal.cjs.entry.js +5 -5
- package/dist/cjs/pn-profile-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-profile-selector-option.cjs.entry.js +3 -3
- package/dist/cjs/pn-profile-selector-option.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-profile-selector.cjs.entry.js +3 -3
- package/dist/cjs/pn-profile-selector.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-proxio-findprice-result.cjs.entry.js +3 -3
- package/dist/cjs/pn-proxio-findprice-result.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-proxio-findprice.cjs.entry.js +8 -9
- package/dist/cjs/pn-proxio-findprice.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-proxio-pricegroup.cjs.entry.js +5 -6
- package/dist/cjs/pn-proxio-pricegroup.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-proxio-productcard_4.cjs.entry.js +8 -8
- package/dist/cjs/pn-proxio-productcard_4.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-quick-cta.cjs.entry.js +2 -2
- package/dist/cjs/pn-quick-cta.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-quote-card.cjs.entry.js +2 -2
- package/dist/cjs/pn-quote-card.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/pn-scroll_2.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-share-item.cjs.entry.js +2 -2
- package/dist/cjs/pn-share-item.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-share.cjs.entry.js +2 -2
- package/dist/cjs/pn-share.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-sidenav-level.cjs.entry.js +5 -5
- package/dist/cjs/pn-sidenav-level.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-sidenav-link.cjs.entry.js +5 -5
- package/dist/cjs/pn-sidenav-link.cjs.entry.js.map +1 -1
- package/dist/cjs/{pn-sidenav-store-236c8806.js → pn-sidenav-store-cf9c4996.js} +2 -2
- package/dist/cjs/{pn-sidenav-store-236c8806.js.map → pn-sidenav-store-cf9c4996.js.map} +1 -1
- package/dist/cjs/pn-sidenav-togglebutton.cjs.entry.js +5 -5
- package/dist/cjs/pn-sidenav-togglebutton.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-sidenav.cjs.entry.js +5 -5
- package/dist/cjs/pn-sidenav.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-site-footer_3.cjs.entry.js +7 -7
- package/dist/cjs/pn-site-footer_3.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-spotlight.cjs.entry.js +2 -2
- package/dist/cjs/pn-spotlight.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-stats-info-data.cjs.entry.js +2 -2
- package/dist/cjs/pn-stats-info-data.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-stats-info.cjs.entry.js +2 -2
- package/dist/cjs/pn-stats-info.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-teaser-card.cjs.entry.js +9 -5
- package/dist/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-titletag.cjs.entry.js +3 -3
- package/dist/cjs/pn-titletag.cjs.entry.js.map +1 -1
- package/dist/cjs/pn-usp-promoter.cjs.entry.js +3 -3
- package/dist/cjs/pn-usp-promoter.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +0 -7
- package/dist/collection/components/animation/pn-animated-tile/pn-animated-tile.css +0 -25
- package/dist/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.css +0 -25
- package/dist/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.css +0 -25
- package/dist/collection/components/cards/pn-quote-card/pn-quote-card.css +0 -25
- package/dist/collection/components/cards/pn-teaser-card/pn-teaser-card.css +0 -25
- package/dist/collection/components/cards/pn-teaser-card/pn-teaser-card.js +11 -8
- package/dist/collection/components/cards/pn-teaser-card/pn-teaser-card.js.map +1 -1
- package/dist/collection/components/cards/pn-teaser-card/pn-teaser-card.stories.js +3 -3
- package/dist/collection/components/charts/pn-chart/pn-chart.css +0 -25
- package/dist/collection/components/charts/pn-charts-card/pn-charts-card.css +0 -25
- package/dist/collection/components/cta/pn-cta-block/pn-cta-block.css +0 -25
- package/dist/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.css +0 -25
- package/dist/collection/components/cta/pn-quick-cta/pn-quick-cta.css +0 -25
- package/dist/collection/components/cta/pn-share/pn-share-item.css +0 -25
- package/dist/collection/components/cta/pn-share/pn-share.css +0 -25
- package/dist/collection/components/cta/pn-spotlight/pn-spotlight.css +0 -25
- package/dist/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.css +0 -25
- package/dist/collection/components/data-visualization/pn-stats-info/pn-stats-info.css +0 -25
- package/dist/collection/components/input/pn-address-autofill/pn-address-autofill.css +1 -31
- package/dist/collection/components/input/pn-address-autofill/pn-address-autofill.js +68 -58
- package/dist/collection/components/input/pn-address-autofill/pn-address-autofill.js.map +1 -1
- package/dist/collection/components/input/pn-address-autofill/pn-address-autofill.stories.js +1 -2
- package/dist/collection/components/input/pn-address-autofill/translations.js +3 -6
- package/dist/collection/components/input/pn-address-autofill/translations.js.map +1 -1
- package/dist/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.css +0 -25
- package/dist/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.css +0 -25
- package/dist/collection/components/input/pn-choice-button/pn-choice-button.css +0 -25
- package/dist/collection/components/input/pn-date-and-time/pn-date-and-time.css +0 -25
- package/dist/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.css +0 -25
- package/dist/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +6 -18
- package/dist/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js.map +1 -1
- package/dist/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.css +0 -25
- package/dist/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.css +0 -25
- package/dist/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.css +0 -25
- package/dist/collection/components/input/pn-marketweb-input/pn-marketweb-input.css +0 -25
- package/dist/collection/components/input/pn-marketweb-search/pn-marketweb-search.css +0 -25
- package/dist/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +3 -4
- package/dist/collection/components/input/pn-marketweb-search/pn-marketweb-search.js.map +1 -1
- package/dist/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.css +0 -25
- package/dist/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.css +0 -25
- package/dist/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.css +0 -50
- package/dist/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +1 -1
- package/dist/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js.map +1 -1
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +0 -25
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.css +0 -25
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +0 -25
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +0 -1
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js.map +1 -1
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +0 -25
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +1 -1
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js.map +1 -1
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.css +0 -25
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +37 -1
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js.map +1 -1
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +6 -45
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +4 -4
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +5 -32
- package/dist/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js.map +1 -1
- package/dist/collection/components/media/pn-media-block/pn-media-block.css +0 -25
- package/dist/collection/components/media/pn-media-block/pn-media-block.js +8 -8
- package/dist/collection/components/media/pn-media-block/pn-media-block.js.map +1 -1
- package/dist/collection/components/media/pn-media-block/pn-media-block.stories.js +76 -76
- package/dist/collection/components/minor/pn-app-banner/pn-app-banner.css +0 -25
- package/dist/collection/components/minor/pn-app-banner/pn-app-banner.js +1 -1
- package/dist/collection/components/minor/pn-marketweb-icon/pn-marketweb-icon.css +0 -25
- package/dist/collection/components/minor/pn-marketweb-icon/pn-marketweb-icon.js +1 -1
- package/dist/collection/components/minor/pn-swan/pn-swan.css +0 -25
- package/dist/collection/components/minor/pn-swan/pn-swan.js +1 -1
- package/dist/collection/components/minor/pn-titletag/pn-titletag.css +0 -25
- package/dist/collection/components/minor/pn-titletag/pn-titletag.js +1 -1
- package/dist/collection/components/navigation/pn-language-selector/pn-language-selector-option.css +0 -50
- package/dist/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +1 -1
- package/dist/collection/components/navigation/pn-language-selector/pn-language-selector.css +0 -50
- package/dist/collection/components/navigation/pn-language-selector/pn-language-selector.js +1 -1
- package/dist/collection/components/navigation/pn-mainnav/pn-mainnav-level.css +0 -25
- package/dist/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +2 -2
- package/dist/collection/components/navigation/pn-mainnav/pn-mainnav-link.css +0 -25
- package/dist/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +1 -1
- package/dist/collection/components/navigation/pn-mainnav/pn-mainnav-list.css +0 -25
- package/dist/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +1 -1
- package/dist/collection/components/navigation/pn-mainnav/pn-mainnav.css +0 -25
- package/dist/collection/components/navigation/pn-mainnav/pn-mainnav.js +1 -1
- package/dist/collection/components/navigation/pn-sidenav/pn-sidenav-level.css +0 -25
- package/dist/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +1 -1
- package/dist/collection/components/navigation/pn-sidenav/pn-sidenav-link.css +0 -25
- package/dist/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +1 -1
- package/dist/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.css +0 -25
- package/dist/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +1 -1
- package/dist/collection/components/navigation/pn-sidenav/pn-sidenav.css +0 -25
- package/dist/collection/components/navigation/pn-sidenav/pn-sidenav.js +1 -1
- package/dist/collection/components/navigation/pn-site-footer/pn-site-footer-col.css +0 -50
- package/dist/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +1 -1
- package/dist/collection/components/navigation/pn-site-footer/pn-site-footer.css +0 -50
- package/dist/collection/components/navigation/pn-site-footer/pn-site-footer.js +1 -1
- package/dist/collection/components/navigation/pn-site-selector/pn-site-selector-item.css +0 -25
- package/dist/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +1 -1
- package/dist/collection/components/navigation/pn-site-selector/pn-site-selector.css +0 -25
- package/dist/collection/components/navigation/pn-site-selector/pn-site-selector.js +1 -1
- package/dist/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.css +0 -25
- package/dist/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +1 -1
- package/dist/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.css +0 -25
- package/dist/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +1 -1
- package/dist/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.css +0 -25
- package/dist/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +1 -1
- package/dist/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.css +0 -25
- package/dist/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +2 -2
- package/dist/collection/components/profile/pn-profile-modal/pn-profile-modal-type.css +0 -25
- package/dist/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +1 -1
- package/dist/collection/components/profile/pn-profile-modal/pn-profile-modal.css +0 -25
- package/dist/collection/components/profile/pn-profile-modal/pn-profile-modal.js +1 -1
- package/dist/collection/components/profile/pn-profile-selector/pn-profile-selector-option.css +0 -25
- package/dist/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +1 -1
- package/dist/collection/components/profile/pn-profile-selector/pn-profile-selector.css +0 -25
- package/dist/collection/components/profile/pn-profile-selector/pn-profile-selector.js +1 -1
- package/dist/collection/components/utilities/pn-breakpoints/pn-breakpoints.css +0 -25
- package/dist/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +1 -1
- package/dist/collection/components/widgets/pn-find-price/pn-find-price-result.css +0 -25
- package/dist/collection/components/widgets/pn-find-price/pn-find-price-result.js +1 -1
- package/dist/collection/components/widgets/pn-find-price/pn-find-price.css +0 -25
- package/dist/collection/components/widgets/pn-find-price/pn-find-price.js +2 -2
- package/dist/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.css +0 -25
- package/dist/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +1 -1
- package/dist/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.css +0 -25
- package/dist/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +1 -1
- package/dist/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.css +0 -25
- package/dist/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +1 -1
- package/dist/collection/components/widgets/pn-link-list/pn-link-list.css +0 -25
- package/dist/collection/components/widgets/pn-link-list/pn-link-list.js +1 -1
- package/dist/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.css +0 -25
- package/dist/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +1 -1
- package/dist/collection/components/widgets/pn-product-card/pn-product-card-info.css +0 -25
- package/dist/collection/components/widgets/pn-product-card/pn-product-card-price.css +0 -25
- package/dist/collection/components/widgets/pn-product-card/pn-product-card.css +0 -25
- package/dist/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
- package/dist/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.css +0 -25
- package/dist/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +1 -1
- package/dist/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +0 -25
- package/dist/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +2 -2
- package/dist/collection/components/widgets/pn-product-tile/pn-product-tile-info.css +0 -25
- package/dist/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +1 -1
- package/dist/collection/components/widgets/pn-product-tile/pn-product-tile-price.css +0 -25
- package/dist/collection/components/widgets/pn-product-tile/pn-product-tile.css +0 -25
- package/dist/collection/components/widgets/pn-product-tile/pn-product-tile.js +1 -1
- package/dist/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.css +0 -25
- package/dist/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +1 -1
- package/dist/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.css +0 -25
- package/dist/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +3 -3
- package/dist/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.css +0 -25
- package/dist/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +1 -1
- package/dist/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.css +0 -25
- package/dist/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +1 -1
- package/dist/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.css +0 -25
- package/dist/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +1 -1
- package/dist/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.css +0 -25
- package/dist/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.css +0 -25
- package/dist/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +1 -1
- package/dist/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.css +0 -25
- package/dist/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js +1 -1
- package/dist/collection/globals/HeadingTag.js +2 -2
- package/dist/collection/globals/HeadingTag.js.map +1 -1
- package/dist/collection/utils/utils.js +0 -11
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/FetchHelper.js +243 -1
- package/dist/components/FetchHelper.js.map +1 -1
- package/dist/components/pn-address-autofill.js +73 -50
- package/dist/components/pn-address-autofill.js.map +1 -1
- package/dist/components/pn-animated-tile.js +1 -1
- package/dist/components/pn-animated-tile.js.map +1 -1
- package/dist/components/pn-app-banner.js +2 -2
- package/dist/components/pn-app-banner.js.map +1 -1
- package/dist/components/pn-bonus-progressbar-level.js +1 -1
- package/dist/components/pn-bonus-progressbar-level.js.map +1 -1
- package/dist/components/pn-bonus-progressbar.js +1 -1
- package/dist/components/pn-bonus-progressbar.js.map +1 -1
- package/dist/components/pn-breakpoints.js +2 -2
- package/dist/components/pn-breakpoints.js.map +1 -1
- package/dist/components/pn-chart.js +1 -1
- package/dist/components/pn-chart.js.map +1 -1
- package/dist/components/pn-charts-card.js +1 -1
- package/dist/components/pn-charts-card.js.map +1 -1
- package/dist/components/pn-choice-button2.js +1 -1
- package/dist/components/pn-choice-button2.js.map +1 -1
- package/dist/components/pn-cta-block.js +1 -1
- package/dist/components/pn-cta-block.js.map +1 -1
- package/dist/components/pn-customernumber-selector-option.js +2 -2
- package/dist/components/pn-customernumber-selector-option.js.map +1 -1
- package/dist/components/pn-customernumber-selector.js +8 -3
- package/dist/components/pn-customernumber-selector.js.map +1 -1
- package/dist/components/pn-date-and-time.js +1 -1
- package/dist/components/pn-date-and-time.js.map +1 -1
- package/dist/components/pn-dropdown-choice-adds-row.js +7 -19
- package/dist/components/pn-dropdown-choice-adds-row.js.map +1 -1
- package/dist/components/pn-dropdown-with-multi-input-rows-row2.js +1 -1
- package/dist/components/pn-dropdown-with-multi-input-rows-row2.js.map +1 -1
- package/dist/components/pn-dropdown-with-multi-input-rows.js +1 -1
- package/dist/components/pn-dropdown-with-multi-input-rows.js.map +1 -1
- package/dist/components/pn-filter-checkbox2.js +1 -1
- package/dist/components/pn-filter-checkbox2.js.map +1 -1
- package/dist/components/pn-find-price-result2.js +2 -2
- package/dist/components/pn-find-price-result2.js.map +1 -1
- package/dist/components/pn-find-price.js +3 -3
- package/dist/components/pn-find-price.js.map +1 -1
- package/dist/components/pn-find-service-and-price-result2.js +2 -2
- package/dist/components/pn-find-service-and-price-result2.js.map +1 -1
- package/dist/components/pn-find-service-and-price.js +2 -2
- package/dist/components/pn-find-service-and-price.js.map +1 -1
- package/dist/components/pn-hero-block-international.js +2 -2
- package/dist/components/pn-hero-block-international.js.map +1 -1
- package/dist/components/pn-language-selector-option2.js +2 -2
- package/dist/components/pn-language-selector-option2.js.map +1 -1
- package/dist/components/pn-language-selector2.js +2 -2
- package/dist/components/pn-language-selector2.js.map +1 -1
- package/dist/components/pn-line-shape.js +1 -1
- package/dist/components/pn-line-shape.js.map +1 -1
- package/dist/components/pn-link-list.js +2 -2
- package/dist/components/pn-link-list.js.map +1 -1
- package/dist/components/pn-mainnav-level2.js +3 -3
- package/dist/components/pn-mainnav-level2.js.map +1 -1
- package/dist/components/pn-mainnav-link2.js +2 -2
- package/dist/components/pn-mainnav-link2.js.map +1 -1
- package/dist/components/pn-mainnav-list2.js +2 -2
- package/dist/components/pn-mainnav-list2.js.map +1 -1
- package/dist/components/pn-mainnav2.js +5 -3
- package/dist/components/pn-mainnav2.js.map +1 -1
- package/dist/components/pn-marketweb-icon.js +2 -2
- package/dist/components/pn-marketweb-icon.js.map +1 -1
- package/dist/components/pn-marketweb-input2.js +4 -2
- package/dist/components/pn-marketweb-input2.js.map +1 -1
- package/dist/components/pn-marketweb-search.js +4 -5
- package/dist/components/pn-marketweb-search.js.map +1 -1
- package/dist/components/pn-marketweb-sitefooter.js +9 -6
- package/dist/components/pn-marketweb-sitefooter.js.map +1 -1
- package/dist/components/pn-marketweb-siteheader-login-linklist2.js +1 -1
- package/dist/components/pn-marketweb-siteheader-login-linklist2.js.map +1 -1
- package/dist/components/pn-marketweb-siteheader-login-links2.js +1 -1
- package/dist/components/pn-marketweb-siteheader-login-links2.js.map +1 -1
- package/dist/components/pn-marketweb-siteheader-login-mypage-button.js +1 -34
- package/dist/components/pn-marketweb-siteheader-login-mypage-button.js.map +1 -1
- package/dist/components/pn-marketweb-siteheader-login-mypage-button2.js +38 -0
- package/dist/components/pn-marketweb-siteheader-login-mypage-button2.js.map +1 -0
- package/dist/components/pn-marketweb-siteheader-login-profileselection2.js +1 -2
- package/dist/components/pn-marketweb-siteheader-login-profileselection2.js.map +1 -1
- package/dist/components/pn-marketweb-siteheader-login2.js +14 -8
- package/dist/components/pn-marketweb-siteheader-login2.js.map +1 -1
- package/dist/components/pn-marketweb-siteheader-search2.js +1 -1
- package/dist/components/pn-marketweb-siteheader-search2.js.map +1 -1
- package/dist/components/pn-marketweb-siteheader-unified-login2.js +13 -3
- package/dist/components/pn-marketweb-siteheader-unified-login2.js.map +1 -1
- package/dist/components/pn-marketweb-siteheader.js +32 -27
- package/dist/components/pn-marketweb-siteheader.js.map +1 -1
- package/dist/components/pn-media-block.js +6 -6
- package/dist/components/pn-media-block.js.map +1 -1
- package/dist/components/pn-multi-row-connected-dropdown-row2.js +1 -1
- package/dist/components/pn-multi-row-connected-dropdown-row2.js.map +1 -1
- package/dist/components/pn-multi-row-connected-dropdown.js +1 -1
- package/dist/components/pn-multi-row-connected-dropdown.js.map +1 -1
- package/dist/components/pn-parcel-tracker.js +1 -1
- package/dist/components/pn-parcel-tracker.js.map +1 -1
- package/dist/components/pn-pex-pricefinder.js +2 -2
- package/dist/components/pn-pex-pricefinder.js.map +1 -1
- package/dist/components/pn-product-card-info2.js +1 -1
- package/dist/components/pn-product-card-info2.js.map +1 -1
- package/dist/components/pn-product-card-price2.js +1 -1
- package/dist/components/pn-product-card-price2.js.map +1 -1
- package/dist/components/pn-product-card2.js +2 -2
- package/dist/components/pn-product-card2.js.map +1 -1
- package/dist/components/pn-product-pricelist-result.js +2 -2
- package/dist/components/pn-product-pricelist-result.js.map +1 -1
- package/dist/components/pn-product-pricelist.js +3 -3
- package/dist/components/pn-product-pricelist.js.map +1 -1
- package/dist/components/pn-product-tile-info2.js +2 -2
- package/dist/components/pn-product-tile-info2.js.map +1 -1
- package/dist/components/pn-product-tile-price2.js +1 -1
- package/dist/components/pn-product-tile-price2.js.map +1 -1
- package/dist/components/pn-product-tile.js +2 -2
- package/dist/components/pn-product-tile.js.map +1 -1
- package/dist/components/pn-profile-modal-customernumber.js +2 -2
- package/dist/components/pn-profile-modal-customernumber.js.map +1 -1
- package/dist/components/pn-profile-modal-profile.js +3 -3
- package/dist/components/pn-profile-modal-profile.js.map +1 -1
- package/dist/components/pn-profile-modal-type.js +2 -2
- package/dist/components/pn-profile-modal-type.js.map +1 -1
- package/dist/components/pn-profile-modal.js +2 -2
- package/dist/components/pn-profile-modal.js.map +1 -1
- package/dist/components/pn-profile-selector-option.js +2 -2
- package/dist/components/pn-profile-selector-option.js.map +1 -1
- package/dist/components/pn-profile-selector.js +2 -2
- package/dist/components/pn-profile-selector.js.map +1 -1
- package/dist/components/pn-proxio-findprice-result2.js +2 -2
- package/dist/components/pn-proxio-findprice-result2.js.map +1 -1
- package/dist/components/pn-proxio-findprice.js +5 -6
- package/dist/components/pn-proxio-findprice.js.map +1 -1
- package/dist/components/pn-proxio-pricegroup.js +3 -4
- package/dist/components/pn-proxio-pricegroup.js.map +1 -1
- package/dist/components/pn-proxio-productcard-description2.js +2 -2
- package/dist/components/pn-proxio-productcard-description2.js.map +1 -1
- package/dist/components/pn-proxio-productcard-information2.js +2 -2
- package/dist/components/pn-proxio-productcard-information2.js.map +1 -1
- package/dist/components/pn-proxio-productcard-pricelink2.js +1 -1
- package/dist/components/pn-proxio-productcard-pricelink2.js.map +1 -1
- package/dist/components/pn-proxio-productcard2.js +2 -2
- package/dist/components/pn-proxio-productcard2.js.map +1 -1
- package/dist/components/pn-quick-cta.js +1 -1
- package/dist/components/pn-quick-cta.js.map +1 -1
- package/dist/components/pn-quote-card.js +1 -1
- package/dist/components/pn-quote-card.js.map +1 -1
- package/dist/components/pn-share-item2.js +1 -1
- package/dist/components/pn-share-item2.js.map +1 -1
- package/dist/components/pn-share.js +1 -1
- package/dist/components/pn-share.js.map +1 -1
- package/dist/components/pn-sidenav-level.js +2 -2
- package/dist/components/pn-sidenav-level.js.map +1 -1
- package/dist/components/pn-sidenav-link.js +2 -2
- package/dist/components/pn-sidenav-link.js.map +1 -1
- package/dist/components/pn-sidenav-togglebutton.js +2 -2
- package/dist/components/pn-sidenav-togglebutton.js.map +1 -1
- package/dist/components/pn-sidenav.js +2 -2
- package/dist/components/pn-sidenav.js.map +1 -1
- package/dist/components/pn-site-footer-col2.js +2 -2
- package/dist/components/pn-site-footer-col2.js.map +1 -1
- package/dist/components/pn-site-footer2.js +2 -2
- package/dist/components/pn-site-footer2.js.map +1 -1
- package/dist/components/pn-site-selector-item2.js +2 -2
- package/dist/components/pn-site-selector-item2.js.map +1 -1
- package/dist/components/pn-site-selector2.js +2 -2
- package/dist/components/pn-site-selector2.js.map +1 -1
- package/dist/components/pn-spotlight.js +1 -1
- package/dist/components/pn-spotlight.js.map +1 -1
- package/dist/components/pn-stats-info-data2.js +1 -1
- package/dist/components/pn-stats-info-data2.js.map +1 -1
- package/dist/components/pn-stats-info.js +1 -1
- package/dist/components/pn-stats-info.js.map +1 -1
- package/dist/components/pn-swan2.js +2 -2
- package/dist/components/pn-swan2.js.map +1 -1
- package/dist/components/pn-teaser-card.js +9 -5
- package/dist/components/pn-teaser-card.js.map +1 -1
- package/dist/components/pn-titletag2.js +2 -2
- package/dist/components/pn-titletag2.js.map +1 -1
- package/dist/components/pn-usp-promoter.js +2 -2
- package/dist/components/pn-usp-promoter.js.map +1 -1
- package/dist/components/pn-video-overlay2.js +1 -1
- package/dist/components/pn-video-overlay2.js.map +1 -1
- package/dist/{components/MarketWebContextService.js → esm/FetchHelper-746f2bb6.js} +82 -2
- package/dist/esm/FetchHelper-746f2bb6.js.map +1 -0
- package/dist/esm/{index-c311acd6.js → index-51d67461.js} +5 -53
- package/dist/esm/index-51d67461.js.map +1 -0
- package/dist/esm/{index-ae60ebec.js → index-89124075.js} +2 -2
- package/dist/esm/{index-ae60ebec.js.map → index-89124075.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pn-address-autofill.entry.js +74 -50
- package/dist/esm/pn-address-autofill.entry.js.map +1 -1
- package/dist/esm/pn-animated-tile.entry.js +2 -2
- package/dist/esm/pn-animated-tile.entry.js.map +1 -1
- package/dist/esm/pn-app-banner.entry.js +3 -3
- package/dist/esm/pn-app-banner.entry.js.map +1 -1
- package/dist/esm/pn-bonus-progressbar-level.entry.js +2 -2
- package/dist/esm/pn-bonus-progressbar-level.entry.js.map +1 -1
- package/dist/esm/pn-bonus-progressbar.entry.js +2 -2
- package/dist/esm/pn-bonus-progressbar.entry.js.map +1 -1
- package/dist/esm/pn-breakpoints.entry.js +3 -3
- package/dist/esm/pn-breakpoints.entry.js.map +1 -1
- package/dist/esm/pn-chart.entry.js +2 -2
- package/dist/esm/pn-chart.entry.js.map +1 -1
- package/dist/esm/pn-charts-card.entry.js +2 -2
- package/dist/esm/pn-charts-card.entry.js.map +1 -1
- package/dist/esm/pn-choice-button.entry.js +2 -2
- package/dist/esm/pn-choice-button.entry.js.map +1 -1
- package/dist/esm/pn-cta-block.entry.js +2 -2
- package/dist/esm/pn-cta-block.entry.js.map +1 -1
- package/dist/esm/pn-customernumber-selector-option.entry.js +3 -3
- package/dist/esm/pn-customernumber-selector-option.entry.js.map +1 -1
- package/dist/esm/pn-customernumber-selector.entry.js +9 -4
- package/dist/esm/pn-customernumber-selector.entry.js.map +1 -1
- package/dist/esm/pn-date-and-time.entry.js +2 -2
- package/dist/esm/pn-date-and-time.entry.js.map +1 -1
- package/dist/esm/pn-dropdown-choice-adds-row.entry.js +8 -20
- package/dist/esm/pn-dropdown-choice-adds-row.entry.js.map +1 -1
- package/dist/esm/pn-dropdown-with-multi-input-rows-row.entry.js +2 -2
- package/dist/esm/pn-dropdown-with-multi-input-rows-row.entry.js.map +1 -1
- package/dist/esm/pn-dropdown-with-multi-input-rows.entry.js +2 -2
- package/dist/esm/pn-dropdown-with-multi-input-rows.entry.js.map +1 -1
- package/dist/esm/pn-filter-checkbox.entry.js +2 -2
- package/dist/esm/pn-filter-checkbox.entry.js.map +1 -1
- package/dist/esm/pn-find-price-result.entry.js +5 -5
- package/dist/esm/pn-find-price-result.entry.js.map +1 -1
- package/dist/esm/{pn-find-price-store-f97f2325.js → pn-find-price-store-c9a9d3d4.js} +2 -2
- package/dist/esm/{pn-find-price-store-f97f2325.js.map → pn-find-price-store-c9a9d3d4.js.map} +1 -1
- package/dist/esm/pn-find-price.entry.js +6 -6
- package/dist/esm/pn-find-price.entry.js.map +1 -1
- package/dist/esm/pn-find-service-and-price-result.entry.js +5 -5
- package/dist/esm/pn-find-service-and-price-result.entry.js.map +1 -1
- package/dist/esm/{pn-find-service-and-price-store-6553566d.js → pn-find-service-and-price-store-60aa5801.js} +2 -2
- package/dist/esm/{pn-find-service-and-price-store-6553566d.js.map → pn-find-service-and-price-store-60aa5801.js.map} +1 -1
- package/dist/esm/pn-find-service-and-price.entry.js +5 -5
- package/dist/esm/pn-find-service-and-price.entry.js.map +1 -1
- package/dist/esm/pn-hero-block-international.entry.js +3 -3
- package/dist/esm/pn-hero-block-international.entry.js.map +1 -1
- package/dist/esm/pn-language-selector_9.entry.js +27 -25
- package/dist/esm/pn-language-selector_9.entry.js.map +1 -1
- package/dist/esm/pn-line-shape.entry.js +2 -2
- package/dist/esm/pn-line-shape.entry.js.map +1 -1
- package/dist/esm/pn-link-list.entry.js +3 -3
- package/dist/esm/pn-link-list.entry.js.map +1 -1
- package/dist/esm/pn-mainnav-link.entry.js +5 -5
- package/dist/esm/pn-mainnav-link.entry.js.map +1 -1
- package/dist/esm/{pn-mainnav-store-23387019.js → pn-mainnav-store-9c42bc66.js} +2 -2
- package/dist/esm/{pn-mainnav-store-23387019.js.map → pn-mainnav-store-9c42bc66.js.map} +1 -1
- package/dist/esm/pn-market-web-components.js +3 -3
- package/dist/esm/pn-marketweb-icon.entry.js +3 -3
- package/dist/esm/pn-marketweb-icon.entry.js.map +1 -1
- package/dist/esm/pn-marketweb-input.entry.js +5 -3
- package/dist/esm/pn-marketweb-input.entry.js.map +1 -1
- package/dist/esm/pn-marketweb-search.entry.js +5 -6
- package/dist/esm/pn-marketweb-search.entry.js.map +1 -1
- package/dist/esm/pn-marketweb-sitefooter.entry.js +9 -6
- package/dist/esm/pn-marketweb-sitefooter.entry.js.map +1 -1
- package/dist/esm/{pn-marketweb-siteheader-login-button_4.entry.js → pn-marketweb-siteheader-login-button_5.entry.js} +26 -9
- package/dist/esm/pn-marketweb-siteheader-login-button_5.entry.js.map +1 -0
- package/dist/esm/pn-marketweb-siteheader-login-linklist.entry.js +4 -4
- package/dist/esm/pn-marketweb-siteheader-login-linklist.entry.js.map +1 -1
- package/dist/esm/{pn-marketweb-siteheader-store-f60eb1e4.js → pn-marketweb-siteheader-store-91f74255.js} +2 -2
- package/dist/esm/{pn-marketweb-siteheader-store-f60eb1e4.js.map → pn-marketweb-siteheader-store-91f74255.js.map} +1 -1
- package/dist/esm/pn-marketweb-siteheader.entry.js +9 -10
- package/dist/esm/pn-marketweb-siteheader.entry.js.map +1 -1
- package/dist/esm/pn-media-block.entry.js +6 -6
- package/dist/esm/pn-media-block.entry.js.map +1 -1
- package/dist/esm/pn-multi-row-connected-dropdown-row.entry.js +2 -2
- package/dist/esm/pn-multi-row-connected-dropdown-row.entry.js.map +1 -1
- package/dist/esm/pn-multi-row-connected-dropdown.entry.js +2 -2
- package/dist/esm/pn-multi-row-connected-dropdown.entry.js.map +1 -1
- package/dist/esm/pn-multiple-input.entry.js +1 -1
- package/dist/esm/pn-parcel-tracker.entry.js +2 -2
- package/dist/esm/pn-parcel-tracker.entry.js.map +1 -1
- package/dist/esm/pn-pex-pricefinder.entry.js +3 -3
- package/dist/esm/pn-pex-pricefinder.entry.js.map +1 -1
- package/dist/esm/pn-play-on-scroll.entry.js +1 -1
- package/dist/esm/pn-product-card_3.entry.js +5 -5
- package/dist/esm/pn-product-card_3.entry.js.map +1 -1
- package/dist/esm/pn-product-pricelist-result.entry.js +4 -4
- package/dist/esm/pn-product-pricelist-result.entry.js.map +1 -1
- package/dist/esm/pn-product-pricelist.entry.js +6 -6
- package/dist/esm/pn-product-pricelist.entry.js.map +1 -1
- package/dist/esm/pn-product-tile-info_2.entry.js +4 -4
- package/dist/esm/pn-product-tile-info_2.entry.js.map +1 -1
- package/dist/esm/pn-product-tile.entry.js +3 -3
- package/dist/esm/pn-product-tile.entry.js.map +1 -1
- package/dist/esm/pn-profile-modal-customernumber.entry.js +3 -3
- package/dist/esm/pn-profile-modal-customernumber.entry.js.map +1 -1
- package/dist/esm/pn-profile-modal-profile.entry.js +6 -6
- package/dist/esm/pn-profile-modal-profile.entry.js.map +1 -1
- package/dist/esm/{pn-profile-modal-store-5d651bd5.js → pn-profile-modal-store-4655b124.js} +2 -2
- package/dist/esm/{pn-profile-modal-store-5d651bd5.js.map → pn-profile-modal-store-4655b124.js.map} +1 -1
- package/dist/esm/pn-profile-modal-type.entry.js +5 -5
- package/dist/esm/pn-profile-modal-type.entry.js.map +1 -1
- package/dist/esm/pn-profile-modal.entry.js +5 -5
- package/dist/esm/pn-profile-modal.entry.js.map +1 -1
- package/dist/esm/pn-profile-selector-option.entry.js +3 -3
- package/dist/esm/pn-profile-selector-option.entry.js.map +1 -1
- package/dist/esm/pn-profile-selector.entry.js +3 -3
- package/dist/esm/pn-profile-selector.entry.js.map +1 -1
- package/dist/esm/pn-proxio-findprice-result.entry.js +3 -3
- package/dist/esm/pn-proxio-findprice-result.entry.js.map +1 -1
- package/dist/esm/pn-proxio-findprice.entry.js +7 -8
- package/dist/esm/pn-proxio-findprice.entry.js.map +1 -1
- package/dist/esm/pn-proxio-pricegroup.entry.js +4 -5
- package/dist/esm/pn-proxio-pricegroup.entry.js.map +1 -1
- package/dist/esm/pn-proxio-productcard_4.entry.js +8 -8
- package/dist/esm/pn-proxio-productcard_4.entry.js.map +1 -1
- package/dist/esm/pn-quick-cta.entry.js +2 -2
- package/dist/esm/pn-quick-cta.entry.js.map +1 -1
- package/dist/esm/pn-quote-card.entry.js +2 -2
- package/dist/esm/pn-quote-card.entry.js.map +1 -1
- package/dist/esm/pn-scroll_2.entry.js +2 -2
- package/dist/esm/pn-scroll_2.entry.js.map +1 -1
- package/dist/esm/pn-share-item.entry.js +2 -2
- package/dist/esm/pn-share-item.entry.js.map +1 -1
- package/dist/esm/pn-share.entry.js +2 -2
- package/dist/esm/pn-share.entry.js.map +1 -1
- package/dist/esm/pn-sidenav-level.entry.js +5 -5
- package/dist/esm/pn-sidenav-level.entry.js.map +1 -1
- package/dist/esm/pn-sidenav-link.entry.js +5 -5
- package/dist/esm/pn-sidenav-link.entry.js.map +1 -1
- package/dist/esm/{pn-sidenav-store-e2038d79.js → pn-sidenav-store-85bdb1e6.js} +2 -2
- package/dist/esm/{pn-sidenav-store-e2038d79.js.map → pn-sidenav-store-85bdb1e6.js.map} +1 -1
- package/dist/esm/pn-sidenav-togglebutton.entry.js +5 -5
- package/dist/esm/pn-sidenav-togglebutton.entry.js.map +1 -1
- package/dist/esm/pn-sidenav.entry.js +5 -5
- package/dist/esm/pn-sidenav.entry.js.map +1 -1
- package/dist/esm/pn-site-footer_3.entry.js +7 -7
- package/dist/esm/pn-site-footer_3.entry.js.map +1 -1
- package/dist/esm/pn-spotlight.entry.js +2 -2
- package/dist/esm/pn-spotlight.entry.js.map +1 -1
- package/dist/esm/pn-stats-info-data.entry.js +2 -2
- package/dist/esm/pn-stats-info-data.entry.js.map +1 -1
- package/dist/esm/pn-stats-info.entry.js +2 -2
- package/dist/esm/pn-stats-info.entry.js.map +1 -1
- package/dist/esm/pn-teaser-card.entry.js +9 -5
- package/dist/esm/pn-teaser-card.entry.js.map +1 -1
- package/dist/esm/pn-titletag.entry.js +3 -3
- package/dist/esm/pn-titletag.entry.js.map +1 -1
- package/dist/esm/pn-usp-promoter.entry.js +3 -3
- package/dist/esm/pn-usp-promoter.entry.js.map +1 -1
- package/dist/package.json +3 -5
- package/dist/pn-market-web-components/index.esm.js +1 -1
- package/dist/pn-market-web-components/index.esm.js.map +1 -1
- package/dist/pn-market-web-components/p-066e9db9.entry.js +2 -0
- package/dist/pn-market-web-components/{p-7b4f9fdf.entry.js.map → p-066e9db9.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-0ec8d040.entry.js +2 -0
- package/dist/pn-market-web-components/{p-65a046be.entry.js.map → p-0ec8d040.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-13190b30.js +2 -0
- package/dist/pn-market-web-components/{p-ad9a7633.entry.js → p-155c2049.entry.js} +2 -2
- package/dist/pn-market-web-components/p-190c6938.entry.js +2 -0
- package/dist/pn-market-web-components/{p-389a94e7.entry.js.map → p-190c6938.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-1ec21bd6.entry.js +2 -0
- package/dist/pn-market-web-components/{p-f4b14be8.entry.js.map → p-1ec21bd6.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-231b97e1.entry.js +2 -0
- package/dist/pn-market-web-components/{p-659a4db5.entry.js.map → p-231b97e1.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-23d69d70.entry.js +2 -0
- package/dist/pn-market-web-components/p-23d69d70.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-24086c59.entry.js +2 -0
- package/dist/pn-market-web-components/{p-7b7629c5.entry.js.map → p-24086c59.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-8836de82.js → p-2509d18d.js} +2 -2
- package/dist/pn-market-web-components/p-25d53df2.entry.js +2 -0
- package/dist/pn-market-web-components/{p-72f57a04.entry.js.map → p-25d53df2.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-25dfc349.entry.js +2 -0
- package/dist/pn-market-web-components/{p-84fc8e05.entry.js.map → p-25dfc349.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-f0df7694.entry.js → p-278cda98.entry.js} +4 -4
- package/dist/pn-market-web-components/{p-f0df7694.entry.js.map → p-278cda98.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-27d138b4.entry.js +2 -0
- package/dist/pn-market-web-components/p-27d138b4.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-2b03a4e1.entry.js +2 -0
- package/dist/pn-market-web-components/p-2b03a4e1.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-3fb8e665.entry.js +2 -0
- package/dist/pn-market-web-components/{p-71db6836.entry.js.map → p-3fb8e665.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-45b8cadb.entry.js +2 -0
- package/dist/pn-market-web-components/{p-9454075f.entry.js.map → p-45b8cadb.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-45d1e1be.entry.js +2 -0
- package/dist/pn-market-web-components/{p-3d10bc37.entry.js.map → p-45d1e1be.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-4d2ca281.entry.js +2 -0
- package/dist/pn-market-web-components/{p-ad282b7c.entry.js.map → p-4d2ca281.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-4e3059dd.entry.js +2 -0
- package/dist/pn-market-web-components/{p-7db6ef34.entry.js.map → p-4e3059dd.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-4fa5bc85.entry.js +2 -0
- package/dist/pn-market-web-components/{p-0fc01d3f.entry.js.map → p-4fa5bc85.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-530274ae.entry.js +2 -0
- package/dist/pn-market-web-components/{p-39b75c62.entry.js.map → p-530274ae.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-545c24c0.entry.js +2 -0
- package/dist/pn-market-web-components/{p-da56370b.entry.js.map → p-545c24c0.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-55643d76.entry.js +2 -0
- package/dist/pn-market-web-components/{p-2a58d83b.entry.js.map → p-55643d76.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-8a651698.entry.js → p-560e5291.entry.js} +2 -2
- package/dist/pn-market-web-components/p-572c4d81.entry.js +2 -0
- package/dist/pn-market-web-components/p-572c4d81.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-59549c74.entry.js +2 -0
- package/dist/pn-market-web-components/{p-b9590d81.entry.js.map → p-59549c74.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-59cb7166.entry.js +2 -0
- package/dist/pn-market-web-components/p-59cb7166.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-5a1b6e6d.entry.js +2 -0
- package/dist/pn-market-web-components/{p-c4e353b3.entry.js.map → p-5a1b6e6d.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-5d06e48f.entry.js +2 -0
- package/dist/pn-market-web-components/p-5d06e48f.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-62cabd1e.entry.js +2 -0
- package/dist/pn-market-web-components/{p-66da6e15.entry.js.map → p-62cabd1e.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-64d0dbba.entry.js +2 -0
- package/dist/pn-market-web-components/{p-c9038b03.entry.js.map → p-64d0dbba.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-652f97b9.js +2 -0
- package/dist/pn-market-web-components/p-65ab3003.entry.js +2 -0
- package/dist/pn-market-web-components/{p-41cdac85.entry.js.map → p-65ab3003.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-6b1d045c.js → p-65f243c1.js} +2 -2
- package/dist/pn-market-web-components/p-65f243c1.js.map +1 -0
- package/dist/pn-market-web-components/p-6647d2c4.entry.js +2 -0
- package/dist/pn-market-web-components/{p-79e4715c.entry.js.map → p-6647d2c4.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-6a5f7dee.entry.js +2 -0
- package/dist/pn-market-web-components/{p-3e197670.entry.js.map → p-6a5f7dee.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-6fdd5b5a.entry.js +2 -0
- package/dist/pn-market-web-components/{p-cbb1d57d.entry.js.map → p-6fdd5b5a.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-7076038b.entry.js +2 -0
- package/dist/pn-market-web-components/{p-daa74e60.entry.js.map → p-7076038b.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-725aba56.entry.js +2 -0
- package/dist/pn-market-web-components/p-725aba56.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-72dbca40.entry.js +2 -0
- package/dist/pn-market-web-components/{p-2c19edca.entry.js.map → p-72dbca40.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-74fd7435.entry.js +2 -0
- package/dist/pn-market-web-components/{p-8d98f709.entry.js.map → p-74fd7435.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-758f1b53.entry.js +2 -0
- package/dist/pn-market-web-components/{p-95d32ab4.entry.js.map → p-758f1b53.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-76e6708b.entry.js +2 -0
- package/dist/pn-market-web-components/{p-292db484.entry.js.map → p-76e6708b.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-776f3d51.entry.js +2 -0
- package/dist/pn-market-web-components/{p-64851da0.entry.js.map → p-776f3d51.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-77a35f5e.entry.js +2 -0
- package/dist/pn-market-web-components/{p-542f949d.entry.js.map → p-77a35f5e.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-7c3091eb.entry.js +2 -0
- package/dist/pn-market-web-components/p-7c3091eb.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-856c235c.entry.js +2 -0
- package/dist/pn-market-web-components/{p-f28059f4.entry.js.map → p-856c235c.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-f9083b7a.js → p-8af1b914.js} +2 -2
- package/dist/pn-market-web-components/p-8c26b98d.entry.js +2 -0
- package/dist/pn-market-web-components/{p-61bd81d7.entry.js.map → p-8c26b98d.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-90242f18.entry.js +2 -0
- package/dist/pn-market-web-components/{p-f5d03222.entry.js.map → p-90242f18.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-94a69959.entry.js +2 -0
- package/dist/pn-market-web-components/p-94a69959.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-95519556.entry.js +2 -0
- package/dist/pn-market-web-components/{p-c89cb749.entry.js.map → p-95519556.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-930e2943.js → p-959a37d9.js} +2 -2
- package/dist/pn-market-web-components/p-a38118be.entry.js +2 -0
- package/dist/pn-market-web-components/{p-08b473e0.entry.js.map → p-a38118be.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-a419cd91.entry.js +2 -0
- package/dist/pn-market-web-components/{p-230ef9aa.entry.js.map → p-a419cd91.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-a54a298b.entry.js +2 -0
- package/dist/pn-market-web-components/p-a54a298b.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-a6866467.entry.js +2 -0
- package/dist/pn-market-web-components/{p-619f2143.entry.js.map → p-a6866467.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-a72c2729.entry.js +2 -0
- package/dist/pn-market-web-components/{p-9088d3f5.entry.js.map → p-a72c2729.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-aeeabb32.entry.js +2 -0
- package/dist/pn-market-web-components/{p-4f639380.entry.js.map → p-aeeabb32.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-b35cdbac.entry.js +2 -0
- package/dist/pn-market-web-components/{p-5a981927.entry.js.map → p-b35cdbac.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-b5a0275d.entry.js +2 -0
- package/dist/pn-market-web-components/{p-8d874454.entry.js.map → p-b5a0275d.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-b693f78a.entry.js +2 -0
- package/dist/pn-market-web-components/{p-d17af75d.entry.js.map → p-b693f78a.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-b9340e9c.entry.js +2 -0
- package/dist/pn-market-web-components/p-b9340e9c.entry.js.map +1 -0
- package/dist/pn-market-web-components/p-b9505c69.entry.js +2 -0
- package/dist/pn-market-web-components/{p-e8622338.entry.js.map → p-b9505c69.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-bb1c965e.js +3 -0
- package/dist/pn-market-web-components/p-bb1c965e.js.map +1 -0
- package/dist/pn-market-web-components/p-c5772021.entry.js +2 -0
- package/dist/pn-market-web-components/{p-015127bf.entry.js.map → p-c5772021.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-fb4cdf98.js → p-cafe11a9.js} +2 -2
- package/dist/pn-market-web-components/p-cf39491b.entry.js +2 -0
- package/dist/pn-market-web-components/{p-34a98554.entry.js.map → p-cf39491b.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-d0a085cc.entry.js +2 -0
- package/dist/pn-market-web-components/{p-d7170c0e.entry.js.map → p-d0a085cc.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-793e1339.js → p-e09a907b.js} +2 -2
- package/dist/pn-market-web-components/p-e2e3ac2f.entry.js +2 -0
- package/dist/pn-market-web-components/{p-ce87ff8a.entry.js.map → p-e2e3ac2f.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-e5ae757f.entry.js +2 -0
- package/dist/pn-market-web-components/{p-d5c45da2.entry.js.map → p-e5ae757f.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-e6e012fb.entry.js +2 -0
- package/dist/pn-market-web-components/{p-35847eda.entry.js.map → p-e6e012fb.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-e8278e9e.entry.js +2 -0
- package/dist/pn-market-web-components/{p-85b42b44.entry.js.map → p-e8278e9e.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-e916e99d.entry.js +2 -0
- package/dist/pn-market-web-components/{p-60b77eed.entry.js.map → p-e916e99d.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-ea3d6f7e.entry.js +2 -0
- package/dist/pn-market-web-components/{p-19bbac6d.entry.js.map → p-ea3d6f7e.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-ea7b0d21.entry.js +2 -0
- package/dist/pn-market-web-components/{p-4aedb76c.entry.js.map → p-ea7b0d21.entry.js.map} +1 -1
- package/dist/pn-market-web-components/{p-a73e4811.entry.js → p-eaee1dd6.entry.js} +2 -2
- package/dist/pn-market-web-components/{p-a73e4811.entry.js.map → p-eaee1dd6.entry.js.map} +1 -1
- package/dist/pn-market-web-components/p-fc157a1e.entry.js +2 -0
- package/dist/pn-market-web-components/{p-763a4e13.entry.js.map → p-fc157a1e.entry.js.map} +1 -1
- package/dist/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/dist/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
- package/dist/types/components/cards/pn-teaser-card/pn-teaser-card.d.ts +1 -1
- package/dist/types/components/input/pn-address-autofill/pn-address-autofill.d.ts +3 -2
- package/dist/types/components/input/pn-address-autofill/translations.d.ts +0 -3
- package/dist/types/components/input/pn-marketweb-search/pn-marketweb-search.d.ts +1 -1
- package/dist/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.d.ts +2 -0
- package/dist/types/components/media/pn-media-block/pn-media-block.d.ts +1 -1
- package/dist/types/components.d.ts +8 -293
- package/dist/types/globals/HeadingTag.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/bin/stencil +0 -0
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/static/favicon.ico +0 -0
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/directory-index.html +0 -0
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/xdg-open +0 -0
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/core-js.js +0 -0
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/dom.js +0 -0
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/es5-html-element.js +0 -0
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/index.js +0 -0
- package/dist/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/system.js +0 -0
- package/dist/vscode-data.json +3 -535
- package/package.json +3 -5
- package/dist/cjs/FetchHelper-2d4c697c.js +0 -85
- package/dist/cjs/FetchHelper-2d4c697c.js.map +0 -1
- package/dist/cjs/HeadingTag-19376e1f.js +0 -12
- package/dist/cjs/HeadingTag-19376e1f.js.map +0 -1
- package/dist/cjs/LocalStorageService-e1ee3fac.js +0 -66
- package/dist/cjs/LocalStorageService-e1ee3fac.js.map +0 -1
- package/dist/cjs/MarketWebContextService-0fdc43c8.js.map +0 -1
- package/dist/cjs/alert_exclamation_circle-24f29a5b.js +0 -8
- package/dist/cjs/alert_exclamation_circle-24f29a5b.js.map +0 -1
- package/dist/cjs/angle_up-049ec1d8.js +0 -12
- package/dist/cjs/angle_up-049ec1d8.js.map +0 -1
- package/dist/cjs/close-9e014a80.js +0 -8
- package/dist/cjs/close-9e014a80.js.map +0 -1
- package/dist/cjs/index-b02670c2.js.map +0 -1
- package/dist/cjs/pn-chat-message_2.cjs.entry.js +0 -347
- package/dist/cjs/pn-chat-message_2.cjs.entry.js.map +0 -1
- package/dist/cjs/pn-chat.cjs.entry.js +0 -474
- package/dist/cjs/pn-chat.cjs.entry.js.map +0 -1
- package/dist/cjs/pn-chat.service-5a8d89b9.js +0 -155
- package/dist/cjs/pn-chat.service-5a8d89b9.js.map +0 -1
- package/dist/cjs/pn-level-up-modal.cjs.entry.js +0 -77
- package/dist/cjs/pn-level-up-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pn-level-up.cjs.entry.js +0 -139
- package/dist/cjs/pn-level-up.cjs.entry.js.map +0 -1
- package/dist/cjs/pn-level-up.service-0e8e67c2.js +0 -71
- package/dist/cjs/pn-level-up.service-0e8e67c2.js.map +0 -1
- package/dist/cjs/pn-marketweb-siteheader-login-button_4.cjs.entry.js.map +0 -1
- package/dist/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js +0 -25
- package/dist/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js.map +0 -1
- package/dist/cjs/pn-marketweb-table.cjs.entry.js +0 -467
- package/dist/cjs/pn-marketweb-table.cjs.entry.js.map +0 -1
- package/dist/cjs/pn-qr-code-generator.cjs.entry.js +0 -2945
- package/dist/cjs/pn-qr-code-generator.cjs.entry.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.css +0 -146
- package/dist/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js +0 -119
- package/dist/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.js +0 -219
- package/dist/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/pn-chat-stories-constants.js +0 -103
- package/dist/collection/components/widgets/pn-chat/pn-chat-stories-constants.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/pn-chat.css +0 -238
- package/dist/collection/components/widgets/pn-chat/pn-chat.js +0 -840
- package/dist/collection/components/widgets/pn-chat/pn-chat.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/pn-chat.models.js +0 -2
- package/dist/collection/components/widgets/pn-chat/pn-chat.models.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/pn-chat.service.js +0 -149
- package/dist/collection/components/widgets/pn-chat/pn-chat.service.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/pn-chat.stories.js +0 -116
- package/dist/collection/components/widgets/pn-chat/pn-chat.stories.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/translations.js +0 -78
- package/dist/collection/components/widgets/pn-chat/translations.js.map +0 -1
- package/dist/collection/components/widgets/pn-chat/types.js +0 -2
- package/dist/collection/components/widgets/pn-chat/types.js.map +0 -1
- package/dist/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.css +0 -94
- package/dist/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js +0 -262
- package/dist/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js.map +0 -1
- package/dist/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.js +0 -31
- package/dist/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.js.map +0 -1
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.css +0 -114
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.js +0 -476
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.js.map +0 -1
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.models.js +0 -2
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.models.js.map +0 -1
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.service.js +0 -65
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.service.js.map +0 -1
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.stories.js +0 -88
- package/dist/collection/components/widgets/pn-level-up/pn-level-up.stories.js.map +0 -1
- package/dist/collection/components/widgets/pn-level-up/types.js +0 -2
- package/dist/collection/components/widgets/pn-level-up/types.js.map +0 -1
- package/dist/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.css +0 -96
- package/dist/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.js +0 -494
- package/dist/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.js.map +0 -1
- package/dist/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.js +0 -82
- package/dist/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.js.map +0 -1
- package/dist/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.css +0 -264
- package/dist/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.js +0 -701
- package/dist/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.js.map +0 -1
- package/dist/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.service.js +0 -38
- package/dist/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.service.js.map +0 -1
- package/dist/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.js +0 -158
- package/dist/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.js.map +0 -1
- package/dist/collection/components/widgets/pn-marketweb-table/translations.js +0 -81
- package/dist/collection/components/widgets/pn-marketweb-table/translations.js.map +0 -1
- package/dist/collection/components/widgets/pn-marketweb-table/types.js +0 -2
- package/dist/collection/components/widgets/pn-marketweb-table/types.js.map +0 -1
- package/dist/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.css +0 -61
- package/dist/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js +0 -198
- package/dist/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js.map +0 -1
- package/dist/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.js +0 -29
- package/dist/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.js.map +0 -1
- package/dist/collection/globals/LocalStorageService.js +0 -50
- package/dist/collection/globals/LocalStorageService.js.map +0 -1
- package/dist/collection/globals/ScreensizeDetect.js +0 -80
- package/dist/collection/globals/ScreensizeDetect.js.map +0 -1
- package/dist/collection/globals/types.js +0 -2
- package/dist/collection/globals/types.js.map +0 -1
- package/dist/components/HeadingTag.js +0 -10
- package/dist/components/HeadingTag.js.map +0 -1
- package/dist/components/LocalStorageService.js +0 -64
- package/dist/components/LocalStorageService.js.map +0 -1
- package/dist/components/MarketWebContextService.js.map +0 -1
- package/dist/components/alert_exclamation_circle.js +0 -6
- package/dist/components/alert_exclamation_circle.js.map +0 -1
- package/dist/components/angle_up.js +0 -9
- package/dist/components/angle_up.js.map +0 -1
- package/dist/components/close.js +0 -6
- package/dist/components/close.js.map +0 -1
- package/dist/components/pn-chat-message.d.ts +0 -11
- package/dist/components/pn-chat-message.js +0 -8
- package/dist/components/pn-chat-message.js.map +0 -1
- package/dist/components/pn-chat-message2.js +0 -70
- package/dist/components/pn-chat-message2.js.map +0 -1
- package/dist/components/pn-chat.d.ts +0 -11
- package/dist/components/pn-chat.js +0 -534
- package/dist/components/pn-chat.js.map +0 -1
- package/dist/components/pn-chat.service.js +0 -153
- package/dist/components/pn-chat.service.js.map +0 -1
- package/dist/components/pn-level-up-modal.d.ts +0 -11
- package/dist/components/pn-level-up-modal.js +0 -8
- package/dist/components/pn-level-up-modal.js.map +0 -1
- package/dist/components/pn-level-up-modal2.js +0 -170
- package/dist/components/pn-level-up-modal2.js.map +0 -1
- package/dist/components/pn-level-up.d.ts +0 -11
- package/dist/components/pn-level-up.js +0 -185
- package/dist/components/pn-level-up.js.map +0 -1
- package/dist/components/pn-marketweb-carousel.d.ts +0 -11
- package/dist/components/pn-marketweb-carousel.js +0 -8
- package/dist/components/pn-marketweb-carousel.js.map +0 -1
- package/dist/components/pn-marketweb-carousel2.js +0 -326
- package/dist/components/pn-marketweb-carousel2.js.map +0 -1
- package/dist/components/pn-marketweb-table.d.ts +0 -11
- package/dist/components/pn-marketweb-table.js +0 -510
- package/dist/components/pn-marketweb-table.js.map +0 -1
- package/dist/components/pn-qr-code-generator.d.ts +0 -11
- package/dist/components/pn-qr-code-generator.js +0 -8
- package/dist/components/pn-qr-code-generator.js.map +0 -1
- package/dist/components/pn-qr-code-generator2.js +0 -2967
- package/dist/components/pn-qr-code-generator2.js.map +0 -1
- package/dist/esm/FetchHelper-4789695a.js +0 -83
- package/dist/esm/FetchHelper-4789695a.js.map +0 -1
- package/dist/esm/HeadingTag-e20016ab.js +0 -10
- package/dist/esm/HeadingTag-e20016ab.js.map +0 -1
- package/dist/esm/LocalStorageService-78b1794d.js +0 -64
- package/dist/esm/LocalStorageService-78b1794d.js.map +0 -1
- package/dist/esm/MarketWebContextService-16c15670.js +0 -245
- package/dist/esm/MarketWebContextService-16c15670.js.map +0 -1
- package/dist/esm/alert_exclamation_circle-f0fe7c7b.js +0 -6
- package/dist/esm/alert_exclamation_circle-f0fe7c7b.js.map +0 -1
- package/dist/esm/angle_up-b5f955ea.js +0 -9
- package/dist/esm/angle_up-b5f955ea.js.map +0 -1
- package/dist/esm/close-9e7bd787.js +0 -6
- package/dist/esm/close-9e7bd787.js.map +0 -1
- package/dist/esm/index-c311acd6.js.map +0 -1
- package/dist/esm/pn-chat-message_2.entry.js +0 -342
- package/dist/esm/pn-chat-message_2.entry.js.map +0 -1
- package/dist/esm/pn-chat.entry.js +0 -470
- package/dist/esm/pn-chat.entry.js.map +0 -1
- package/dist/esm/pn-chat.service-0def5c4e.js +0 -153
- package/dist/esm/pn-chat.service-0def5c4e.js.map +0 -1
- package/dist/esm/pn-level-up-modal.entry.js +0 -73
- package/dist/esm/pn-level-up-modal.entry.js.map +0 -1
- package/dist/esm/pn-level-up.entry.js +0 -135
- package/dist/esm/pn-level-up.entry.js.map +0 -1
- package/dist/esm/pn-level-up.service-5c602f23.js +0 -69
- package/dist/esm/pn-level-up.service-5c602f23.js.map +0 -1
- package/dist/esm/pn-marketweb-siteheader-login-button_4.entry.js.map +0 -1
- package/dist/esm/pn-marketweb-siteheader-login-mypage-button.entry.js +0 -21
- package/dist/esm/pn-marketweb-siteheader-login-mypage-button.entry.js.map +0 -1
- package/dist/esm/pn-marketweb-table.entry.js +0 -463
- package/dist/esm/pn-marketweb-table.entry.js.map +0 -1
- package/dist/esm/pn-qr-code-generator.entry.js +0 -2941
- package/dist/esm/pn-qr-code-generator.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-015127bf.entry.js +0 -2
- package/dist/pn-market-web-components/p-08b473e0.entry.js +0 -2
- package/dist/pn-market-web-components/p-0b5a125d.entry.js +0 -2
- package/dist/pn-market-web-components/p-0b5a125d.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-0b920554.js +0 -2
- package/dist/pn-market-web-components/p-0b920554.js.map +0 -1
- package/dist/pn-market-web-components/p-0fc01d3f.entry.js +0 -2
- package/dist/pn-market-web-components/p-17c43a96.entry.js +0 -2
- package/dist/pn-market-web-components/p-17c43a96.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-19bbac6d.entry.js +0 -2
- package/dist/pn-market-web-components/p-230ef9aa.entry.js +0 -2
- package/dist/pn-market-web-components/p-268dc1fa.entry.js +0 -2
- package/dist/pn-market-web-components/p-268dc1fa.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-28d2f7fa.entry.js +0 -2
- package/dist/pn-market-web-components/p-28d2f7fa.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-292db484.entry.js +0 -2
- package/dist/pn-market-web-components/p-2a58d83b.entry.js +0 -2
- package/dist/pn-market-web-components/p-2c19edca.entry.js +0 -2
- package/dist/pn-market-web-components/p-3478f368.js +0 -2
- package/dist/pn-market-web-components/p-3478f368.js.map +0 -1
- package/dist/pn-market-web-components/p-34a98554.entry.js +0 -2
- package/dist/pn-market-web-components/p-35847eda.entry.js +0 -2
- package/dist/pn-market-web-components/p-366fd15a.js +0 -2
- package/dist/pn-market-web-components/p-366fd15a.js.map +0 -1
- package/dist/pn-market-web-components/p-389a94e7.entry.js +0 -2
- package/dist/pn-market-web-components/p-39b75c62.entry.js +0 -2
- package/dist/pn-market-web-components/p-3a936c5d.entry.js +0 -2
- package/dist/pn-market-web-components/p-3a936c5d.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-3d10bc37.entry.js +0 -2
- package/dist/pn-market-web-components/p-3e197670.entry.js +0 -2
- package/dist/pn-market-web-components/p-40bce1b1.entry.js +0 -2
- package/dist/pn-market-web-components/p-40bce1b1.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-41cdac85.entry.js +0 -2
- package/dist/pn-market-web-components/p-4aedb76c.entry.js +0 -2
- package/dist/pn-market-web-components/p-4e924d13.entry.js +0 -2
- package/dist/pn-market-web-components/p-4e924d13.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-4f639380.entry.js +0 -2
- package/dist/pn-market-web-components/p-51f136f3.entry.js +0 -2
- package/dist/pn-market-web-components/p-51f136f3.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-542f949d.entry.js +0 -2
- package/dist/pn-market-web-components/p-5a981927.entry.js +0 -2
- package/dist/pn-market-web-components/p-5f4ccd8a.js +0 -2
- package/dist/pn-market-web-components/p-5f4ccd8a.js.map +0 -1
- package/dist/pn-market-web-components/p-60b77eed.entry.js +0 -2
- package/dist/pn-market-web-components/p-619f2143.entry.js +0 -2
- package/dist/pn-market-web-components/p-61bd81d7.entry.js +0 -2
- package/dist/pn-market-web-components/p-64851da0.entry.js +0 -2
- package/dist/pn-market-web-components/p-659a4db5.entry.js +0 -2
- package/dist/pn-market-web-components/p-65a046be.entry.js +0 -2
- package/dist/pn-market-web-components/p-66da6e15.entry.js +0 -2
- package/dist/pn-market-web-components/p-6b1d045c.js.map +0 -1
- package/dist/pn-market-web-components/p-6bec8d72.js +0 -2
- package/dist/pn-market-web-components/p-6bec8d72.js.map +0 -1
- package/dist/pn-market-web-components/p-71db6836.entry.js +0 -2
- package/dist/pn-market-web-components/p-72828265.js +0 -2
- package/dist/pn-market-web-components/p-72f57a04.entry.js +0 -2
- package/dist/pn-market-web-components/p-763a4e13.entry.js +0 -2
- package/dist/pn-market-web-components/p-76c2c01f.js +0 -2
- package/dist/pn-market-web-components/p-76c2c01f.js.map +0 -1
- package/dist/pn-market-web-components/p-79e4715c.entry.js +0 -2
- package/dist/pn-market-web-components/p-7b4f9fdf.entry.js +0 -2
- package/dist/pn-market-web-components/p-7b7629c5.entry.js +0 -2
- package/dist/pn-market-web-components/p-7db6ef34.entry.js +0 -2
- package/dist/pn-market-web-components/p-809ed802.entry.js +0 -2
- package/dist/pn-market-web-components/p-809ed802.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-82546a44.js +0 -3
- package/dist/pn-market-web-components/p-82546a44.js.map +0 -1
- package/dist/pn-market-web-components/p-84fc8e05.entry.js +0 -2
- package/dist/pn-market-web-components/p-85b42b44.entry.js +0 -2
- package/dist/pn-market-web-components/p-8d78b631.js +0 -2
- package/dist/pn-market-web-components/p-8d78b631.js.map +0 -1
- package/dist/pn-market-web-components/p-8d874454.entry.js +0 -2
- package/dist/pn-market-web-components/p-8d98f709.entry.js +0 -2
- package/dist/pn-market-web-components/p-9088d3f5.entry.js +0 -2
- package/dist/pn-market-web-components/p-920ce5f2.entry.js +0 -2
- package/dist/pn-market-web-components/p-920ce5f2.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-923aa6d2.entry.js +0 -2
- package/dist/pn-market-web-components/p-923aa6d2.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-9454075f.entry.js +0 -2
- package/dist/pn-market-web-components/p-95d32ab4.entry.js +0 -2
- package/dist/pn-market-web-components/p-a298a263.entry.js +0 -2
- package/dist/pn-market-web-components/p-a298a263.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-ad282b7c.entry.js +0 -2
- package/dist/pn-market-web-components/p-b9590d81.entry.js +0 -2
- package/dist/pn-market-web-components/p-c4e353b3.entry.js +0 -2
- package/dist/pn-market-web-components/p-c89cb749.entry.js +0 -2
- package/dist/pn-market-web-components/p-c9038b03.entry.js +0 -2
- package/dist/pn-market-web-components/p-cbb1d57d.entry.js +0 -2
- package/dist/pn-market-web-components/p-cda742ba.entry.js +0 -2
- package/dist/pn-market-web-components/p-cda742ba.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-ce87ff8a.entry.js +0 -2
- package/dist/pn-market-web-components/p-cf8a1fb9.js +0 -2
- package/dist/pn-market-web-components/p-cf8a1fb9.js.map +0 -1
- package/dist/pn-market-web-components/p-d17af75d.entry.js +0 -2
- package/dist/pn-market-web-components/p-d5c45da2.entry.js +0 -2
- package/dist/pn-market-web-components/p-d7170c0e.entry.js +0 -2
- package/dist/pn-market-web-components/p-d75a2f7c.entry.js +0 -2
- package/dist/pn-market-web-components/p-d75a2f7c.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-da56370b.entry.js +0 -2
- package/dist/pn-market-web-components/p-daa74e60.entry.js +0 -2
- package/dist/pn-market-web-components/p-dc2ee6f8.entry.js +0 -2
- package/dist/pn-market-web-components/p-dc2ee6f8.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-e8622338.entry.js +0 -2
- package/dist/pn-market-web-components/p-eb21f772.entry.js +0 -2
- package/dist/pn-market-web-components/p-eb21f772.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-efab81a9.entry.js +0 -2
- package/dist/pn-market-web-components/p-efab81a9.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-f28059f4.entry.js +0 -2
- package/dist/pn-market-web-components/p-f28d0971.entry.js +0 -2
- package/dist/pn-market-web-components/p-f28d0971.entry.js.map +0 -1
- package/dist/pn-market-web-components/p-f4b14be8.entry.js +0 -2
- package/dist/pn-market-web-components/p-f5d03222.entry.js +0 -2
- package/dist/pn-market-web-components/p-fe466661.js +0 -2
- package/dist/types/components/widgets/pn-chat/pn-chat-message/pn-chat-message.d.ts +0 -11
- package/dist/types/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.d.ts +0 -7
- package/dist/types/components/widgets/pn-chat/pn-chat-stories-constants.d.ts +0 -43
- package/dist/types/components/widgets/pn-chat/pn-chat.d.ts +0 -72
- package/dist/types/components/widgets/pn-chat/pn-chat.models.d.ts +0 -22
- package/dist/types/components/widgets/pn-chat/pn-chat.service.d.ts +0 -26
- package/dist/types/components/widgets/pn-chat/pn-chat.stories.d.ts +0 -8
- package/dist/types/components/widgets/pn-chat/translations.d.ts +0 -77
- package/dist/types/components/widgets/pn-chat/types.d.ts +0 -68
- package/dist/types/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.d.ts +0 -23
- package/dist/types/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.d.ts +0 -5
- package/dist/types/components/widgets/pn-level-up/pn-level-up.d.ts +0 -43
- package/dist/types/components/widgets/pn-level-up/pn-level-up.models.d.ts +0 -22
- package/dist/types/components/widgets/pn-level-up/pn-level-up.service.d.ts +0 -16
- package/dist/types/components/widgets/pn-level-up/pn-level-up.stories.d.ts +0 -7
- package/dist/types/components/widgets/pn-level-up/types.d.ts +0 -1
- package/dist/types/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.d.ts +0 -48
- package/dist/types/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.d.ts +0 -7
- package/dist/types/components/widgets/pn-marketweb-table/pn-marketweb-table.d.ts +0 -55
- package/dist/types/components/widgets/pn-marketweb-table/pn-marketweb-table.service.d.ts +0 -11
- package/dist/types/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.d.ts +0 -26
- package/dist/types/components/widgets/pn-marketweb-table/translations.d.ts +0 -80
- package/dist/types/components/widgets/pn-marketweb-table/types.d.ts +0 -38
- package/dist/types/components/widgets/pn-qr-code-generator/pn-qr-code-generator.d.ts +0 -23
- package/dist/types/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.d.ts +0 -5
- package/dist/types/globals/LocalStorageService.d.ts +0 -14
- package/dist/types/globals/ScreensizeDetect.d.ts +0 -29
- package/dist/types/globals/types.d.ts +0 -20
- /package/dist/pn-market-web-components/{p-fe466661.js.map → p-13190b30.js.map} +0 -0
- /package/dist/pn-market-web-components/{p-ad9a7633.entry.js.map → p-155c2049.entry.js.map} +0 -0
- /package/dist/pn-market-web-components/{p-8836de82.js.map → p-2509d18d.js.map} +0 -0
- /package/dist/pn-market-web-components/{p-8a651698.entry.js.map → p-560e5291.entry.js.map} +0 -0
- /package/dist/pn-market-web-components/{p-72828265.js.map → p-652f97b9.js.map} +0 -0
- /package/dist/pn-market-web-components/{p-f9083b7a.js.map → p-8af1b914.js.map} +0 -0
- /package/dist/pn-market-web-components/{p-930e2943.js.map → p-959a37d9.js.map} +0 -0
- /package/dist/pn-market-web-components/{p-fb4cdf98.js.map → p-cafe11a9.js.map} +0 -0
- /package/dist/pn-market-web-components/{p-793e1339.js.map → p-e09a907b.js.map} +0 -0
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { M as MarketWebContextService } from './
|
|
3
|
-
import { F as FetchHelper } from './FetchHelper.js';
|
|
2
|
+
import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper.js';
|
|
4
3
|
import { d as debounce } from './index2.js';
|
|
5
|
-
import { a as alert_exclamation_circle } from './alert_exclamation_circle.js';
|
|
6
4
|
|
|
7
5
|
const translations = {
|
|
8
6
|
'sv': {
|
|
9
7
|
errorEmpty: 'Får inte vara tom',
|
|
10
8
|
errorPostalCode: 'Kan inte hitta postkoden',
|
|
11
|
-
required: 'obligatoriskt'
|
|
12
|
-
addressNotFound: 'Adressen hittades inte'
|
|
9
|
+
required: 'obligatoriskt'
|
|
13
10
|
},
|
|
14
11
|
'en': {
|
|
15
12
|
errorEmpty: 'Cannot be empty',
|
|
16
13
|
errorPostalCode: 'Could not find postalcode',
|
|
17
|
-
required: 'required'
|
|
18
|
-
addressNotFound: 'Address not found'
|
|
14
|
+
required: 'required'
|
|
19
15
|
},
|
|
20
16
|
'da': {
|
|
21
17
|
errorEmpty: 'Kan ikke være tom',
|
|
22
18
|
errorPostalCode: 'Kunne ikke finde postnummeret',
|
|
23
|
-
required: 'påkrævet'
|
|
24
|
-
addressNotFound: 'Adressen blev ikke fundet'
|
|
19
|
+
required: 'påkrævet'
|
|
25
20
|
},
|
|
26
21
|
'no': {
|
|
27
22
|
errorEmpty: 'Cannot be empty',
|
|
@@ -74,7 +69,7 @@ const translations = {
|
|
|
74
69
|
},
|
|
75
70
|
};
|
|
76
71
|
|
|
77
|
-
const pnAddressAutofillCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}
|
|
72
|
+
const pnAddressAutofillCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}pn-address-autofill pn-marketweb-input{width:50%}pn-address-autofill .input-container-row{display:flex;gap:1rem;margin-bottom:1rem}pn-address-autofill .label-container{color:#5e554a;font-size:0.875em;display:flex;justify-content:space-between;align-items:flex-end}pn-address-autofill .autocomplete-items{position:absolute;border-radius:0.8rem;border:0.1rem solid #5e554a;width:100%;max-height:30rem;overflow-y:auto}pn-address-autofill .autocomplete-items:hover,pn-address-autofill .autocomplete-items :focus{border:0.1rem solid #00a0d6}pn-address-autofill .autocomplete-items div{padding:1.6rem;cursor:pointer;background-color:#fff;border:0.1rem solid transparent}pn-address-autofill .autocomplete-items div:first-child{border-radius:0.8rem 0.8rem 0 0}pn-address-autofill .autocomplete-items div:last-child{border-radius:0 0 0.8rem 0.8rem}pn-address-autofill .autocomplete-items div:hover{background-color:#e0f8ff}pn-address-autofill .autocomplete-items .autocomplete-active{background-color:#e0f8ff}pn-address-autofill .autocomplete-items:empty{display:none}pn-address-autofill pn-input{max-width:25rem;width:100%}";
|
|
78
73
|
const PnAddressAutofillStyle0 = pnAddressAutofillCss;
|
|
79
74
|
|
|
80
75
|
const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAutofill extends HTMLElement {
|
|
@@ -92,12 +87,11 @@ const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAuto
|
|
|
92
87
|
this.cityProps = null;
|
|
93
88
|
this.streetAddressProps = null;
|
|
94
89
|
this.streetNumberProps = null;
|
|
95
|
-
this.addressNotFoundError = null;
|
|
96
90
|
this.postalCode = null;
|
|
97
91
|
this.city = null;
|
|
98
92
|
this.streetAddress = null;
|
|
99
93
|
this.streetNumber = null;
|
|
100
|
-
this.validAddress =
|
|
94
|
+
this.validAddress = false;
|
|
101
95
|
this.translation = undefined;
|
|
102
96
|
this.postalCodeRequiredLabel = null;
|
|
103
97
|
this.streetRequiredLabel = null;
|
|
@@ -114,6 +108,7 @@ const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAuto
|
|
|
114
108
|
streetNumberInputField = null;
|
|
115
109
|
pnInputHiddenValue = null;
|
|
116
110
|
endpointPath = '/api/location/get-by-postalcode';
|
|
111
|
+
locationEndpointPath = '/api/location/get-by-location';
|
|
117
112
|
_postalCodeProps = null;
|
|
118
113
|
_cityProps = null;
|
|
119
114
|
_streetAddressProps = null;
|
|
@@ -175,15 +170,15 @@ const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAuto
|
|
|
175
170
|
}
|
|
176
171
|
addEventHandlers() {
|
|
177
172
|
let debounceTimeout;
|
|
178
|
-
this.postalCodeInputField.addEventListener('
|
|
173
|
+
this.postalCodeInputField.addEventListener('keyup', (e) => {
|
|
179
174
|
this.isLoading = true;
|
|
180
175
|
clearTimeout(debounceTimeout);
|
|
181
176
|
debounceTimeout = window.setTimeout(() => {
|
|
182
177
|
this.fetchPostalCodeData(e);
|
|
183
178
|
}, 300);
|
|
184
179
|
});
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
180
|
+
this.streetAddressInputField.addEventListener('blur', this.handleAddressDropdown.bind(this));
|
|
181
|
+
this.streetNumberInputField.addEventListener('blur', this.handleAddressDropdown.bind(this));
|
|
187
182
|
this.addFormFieldEvent();
|
|
188
183
|
}
|
|
189
184
|
addFormFieldEvent() {
|
|
@@ -223,11 +218,6 @@ const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAuto
|
|
|
223
218
|
this.resetFields();
|
|
224
219
|
this.postalCode = postalCode;
|
|
225
220
|
var data = (await this.fetchPostalCode(postalCode));
|
|
226
|
-
if (!data || !data.addresses) {
|
|
227
|
-
this.city = null;
|
|
228
|
-
this.isLoading = true;
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
221
|
const cityInfo = data.addresses?.find(addr => addr.postalCode === postalCode);
|
|
232
222
|
this.city = cityInfo?.city || null;
|
|
233
223
|
this.isLoading = false;
|
|
@@ -251,6 +241,24 @@ const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAuto
|
|
|
251
241
|
return null;
|
|
252
242
|
}
|
|
253
243
|
}
|
|
244
|
+
async fetchAddress() {
|
|
245
|
+
const endpointBase = this.endpoint.endsWith('/')
|
|
246
|
+
? this.endpoint.slice(0, -1)
|
|
247
|
+
: this.endpoint;
|
|
248
|
+
//merge street and number
|
|
249
|
+
var locationSearch = this.streetAddress + ' ' + this.streetNumber;
|
|
250
|
+
//this is Air search api which will return the address, without postcode, postalcode verification is done in handleAddressDropdown
|
|
251
|
+
const fetchUrl = `${endpointBase}${this.locationEndpointPath}?countryCode=${this.countryCode}&query=${locationSearch}`;
|
|
252
|
+
try {
|
|
253
|
+
const data = await this.fetchHelper.fetchJson(fetchUrl, { mode: 'cors' }, this.cache);
|
|
254
|
+
return data;
|
|
255
|
+
}
|
|
256
|
+
catch (error) {
|
|
257
|
+
console.error("Error fetching address data:", error);
|
|
258
|
+
this.isLoading = true;
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
254
262
|
resetFields() {
|
|
255
263
|
this.streetAddressInputField.value = '';
|
|
256
264
|
this.streetNumberInputField.value = '';
|
|
@@ -263,45 +271,61 @@ const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAuto
|
|
|
263
271
|
element.removeAttribute('error');
|
|
264
272
|
});
|
|
265
273
|
}
|
|
266
|
-
async
|
|
267
|
-
const streetAddress = this.streetAddressInputField.value
|
|
268
|
-
const streetNumber = this.streetNumberInputField.value
|
|
269
|
-
if
|
|
270
|
-
|
|
274
|
+
async handleAddressDropdown(e) {
|
|
275
|
+
const streetAddress = this.streetAddressInputField.value;
|
|
276
|
+
const streetNumber = this.streetNumberInputField.value;
|
|
277
|
+
//no data fetching if both the inputs are empty
|
|
278
|
+
if (!streetAddress && !streetNumber) {
|
|
271
279
|
return;
|
|
272
280
|
}
|
|
273
|
-
|
|
274
|
-
? this.endpoint.slice(0, -1)
|
|
275
|
-
: this.endpoint;
|
|
276
|
-
const fetchUrl = `${endpointBase}${this.endpointPath}?countryCode=${this.countryCode}&postalCode=${this.postalCodeInputField.value}&address=${streetAddress + " " + streetNumber}`;
|
|
277
|
-
try {
|
|
278
|
-
const data = await this.fetchHelper.fetchJson(fetchUrl, { mode: 'cors' }, this.cache);
|
|
279
|
-
if (!data?.addresses?.length) {
|
|
280
|
-
this.validAddress = false;
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
const inputStreetAddress = this.normalizeChar(streetAddress);
|
|
284
|
-
const inputStreetNumber = this.normalizeChar(streetNumber);
|
|
285
|
-
const addressFound = data.addresses.some(addr => this.normalizeChar(addr.street) === inputStreetAddress &&
|
|
286
|
-
this.normalizeChar(addr.houseNumber) === inputStreetNumber &&
|
|
287
|
-
addr.postalCode === this.postalCodeInputField.value);
|
|
288
|
-
this.validAddress = addressFound;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
catch (error) {
|
|
292
|
-
console.error("Error fetching address data:", error);
|
|
293
|
-
this.isLoading = true;
|
|
294
|
-
this.validAddress = false;
|
|
295
|
-
}
|
|
281
|
+
//skip the data fetch if there is no change in input
|
|
296
282
|
if (this.streetAddress === streetAddress && this.streetNumber === streetNumber) {
|
|
297
283
|
return;
|
|
298
284
|
}
|
|
285
|
+
//set the values
|
|
299
286
|
if (streetAddress) {
|
|
300
287
|
this.streetAddress = streetAddress;
|
|
301
288
|
}
|
|
302
289
|
if (streetNumber) {
|
|
303
290
|
this.streetNumber = streetNumber;
|
|
304
291
|
}
|
|
292
|
+
//fetch data
|
|
293
|
+
var data = await this.fetchAddress();
|
|
294
|
+
//verify the error
|
|
295
|
+
var showStreetAddressError = false;
|
|
296
|
+
var showStreetNumberError = false;
|
|
297
|
+
if (!data?.addresses?.length) {
|
|
298
|
+
if (e.target === this.streetAddressInputField) {
|
|
299
|
+
showStreetAddressError = true;
|
|
300
|
+
}
|
|
301
|
+
if (e.target === this.streetNumberInputField) {
|
|
302
|
+
showStreetNumberError = true;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
if (this.streetAddress && !data.addresses.find(addr => this.normalizeChar(addr.street) === this.normalizeChar(this.streetAddress) && addr.postalCode === this.postalCode)) {
|
|
307
|
+
showStreetAddressError = true;
|
|
308
|
+
}
|
|
309
|
+
if (this.streetNumber && !data.addresses.find(addr => addr.houseNumber.toLowerCase() === this.streetNumber.toLowerCase() && addr.postalCode === this.postalCode)) {
|
|
310
|
+
showStreetNumberError = true;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
//helpertext changes are temp fix to show the error text, this can be removed once the upgrade is done and fixes this issue.
|
|
314
|
+
this.pnInputStreetAddress.removeAttribute('error');
|
|
315
|
+
this.pnInputStreetAddress.setAttribute('helpertext', this._streetAddressProps.streetAddressInputHelpertext);
|
|
316
|
+
this.pnInputStreetNumber.removeAttribute('error');
|
|
317
|
+
this.pnInputStreetNumber.setAttribute('helpertext', this._streetNumberProps.streetNumberInputHelpertext);
|
|
318
|
+
this.validAddress = true;
|
|
319
|
+
if (showStreetAddressError) {
|
|
320
|
+
this.pnInputStreetAddress.setAttribute('error', this._streetAddressProps.streetAddressInputError);
|
|
321
|
+
this.pnInputStreetAddress.setAttribute('helpertext', this._streetAddressProps.streetAddressInputError);
|
|
322
|
+
this.validAddress = false;
|
|
323
|
+
}
|
|
324
|
+
if (showStreetNumberError) {
|
|
325
|
+
this.pnInputStreetNumber.setAttribute('error', this._streetNumberProps.streetNumberInputError);
|
|
326
|
+
this.pnInputStreetNumber.setAttribute('helpertext', this._streetNumberProps.streetNumberInputError);
|
|
327
|
+
this.validAddress = false;
|
|
328
|
+
}
|
|
305
329
|
}
|
|
306
330
|
//this function is added to compare the street input values if entered without special characters like é, ø ect
|
|
307
331
|
normalizeChar(str) {
|
|
@@ -318,7 +342,7 @@ const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAuto
|
|
|
318
342
|
return str1;
|
|
319
343
|
}
|
|
320
344
|
render() {
|
|
321
|
-
return (h(Host, { key: '
|
|
345
|
+
return (h(Host, { key: '144d390d30ab4ed791c6e1c89753cf185ec22528', class: "pn-address-autofill" }, this._postalCodeProps?.postalCodeCityLabel ? (h("div", { class: "label-container" }, h("label", null, `${this._postalCodeProps.postalCodeCityLabel + ' ' + this.postalCodeRequiredLabel}`))) : null, h("div", { key: 'f50c6de42b8c582769e6c6f03736106462e1023d', class: "input-container-row" }, h("pn-input", { key: 'c777d9f11e090940d8fad9471027200116c79fec', type: "number", name: this._postalCodeProps?.postalCodeInputName, required: this._postalCodeProps?.postalCodeInputRequired, placeholder: this._postalCodeProps?.postalCodeInputPlaceholder, ref: el => (this.pnInputPostalCode = el), autocomplete: "off", helpertext: this._postalCodeProps?.postalCodeInputHelpertext }), h("pn-input", { key: '317888fa29d61168e8fac41f58adf3bab7a5d16c', type: "text", name: this._cityProps?.cityInputName, disabled: true, value: this.city, placeholder: this._cityProps?.cityInputPlaceholder, autocomplete: "off", helpertext: this._cityProps?.cityInputHelpertext })), this._streetAddressProps?.streetAddressNumberLabel ? (h("div", { class: "label-container" }, h("label", null, `${this._streetAddressProps.streetAddressNumberLabel + ' ' + this.streetRequiredLabel}`))) : null, h("div", { key: 'df079570278fe8910dd5e6bccf8f04585ad14243', class: "input-container-row" }, h("pn-input", { key: '3ebdce3b0a90fba067c023c80d5c6d2374885082', type: "text", name: this._streetAddressProps?.streetAddressInputName, required: this._streetAddressProps?.streetAddressInputRequired, value: this.streetAddress, placeholder: this._streetAddressProps?.streetAddressInputPlaceholder, ref: el => (this.pnInputStreetAddress = el), autocomplete: "off", helpertext: this._streetAddressProps?.streetAddressInputHelpertext, disabled: this.isLoading }), h("pn-input", { key: 'd48f305425656296711248b2c808b5a259e9730e', type: "text", name: this._streetNumberProps?.streetNumberInputName, required: this._streetNumberProps?.streetNumberInputRequired, value: this.streetNumber, placeholder: this._streetNumberProps?.streetNumberInputPlaceholder, ref: el => (this.pnInputStreetNumber = el), autocomplete: "off", helpertext: this._streetNumberProps?.streetNumberInputHelpertext, disabled: this.isLoading }))));
|
|
322
346
|
}
|
|
323
347
|
static get style() { return PnAddressAutofillStyle0; }
|
|
324
348
|
}, [0, "pn-address-autofill", {
|
|
@@ -332,7 +356,6 @@ const PnAddressAutofill$1 = /*@__PURE__*/ proxyCustomElement(class PnAddressAuto
|
|
|
332
356
|
"cityProps": [1, "city-props"],
|
|
333
357
|
"streetAddressProps": [1, "street-address-props"],
|
|
334
358
|
"streetNumberProps": [1, "street-number-props"],
|
|
335
|
-
"addressNotFoundError": [1, "address-not-found-error"],
|
|
336
359
|
"postalCode": [32],
|
|
337
360
|
"city": [32],
|
|
338
361
|
"streetAddress": [32],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pn-address-autofill.js","mappings":";;;;;;AAAO,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,UAAU,EAAE,mBAAmB;QAC/B,eAAe,EAAE,0BAA0B;QAC3C,QAAQ,EAAE,eAAe;Q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AE,yBAAyB,EAC5D,KAAK,EAAE,IAAI,CAAC,YAAY,EACxB,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,4BAA4B,EAClE,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,mBAAmB,GAAG,EAAiB,CAAC,EACzD,YAAY,EAAC,KAAK,EAClB,UAAU,EAAE,IAAI,CAAC,kBAAkB,EAAE,2BAA2B,EAChE,QAAQ,EAAE,IAAI,CAAC,SAAS,GACd,CACR,EACL,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,uBAAuB,CAAC,KAAK,IAAI,IAAI,CAAC,sBAAsB,CAAC,KAAK,KAC7F,WAAK,KAAK,EAAC,iBAAiB,IAC1B,gBAAU,IAAI,EAAE,IAAI,CAAC,oBAAoB,IAAI,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,UAAU,EAAC,SAAS,EAAC,IAAI,EAAE,wBAAwB,GAAa,CAC3I,IACJ,IAAI,CACH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PnAddressAutofill"],"sources":["src/components/input/pn-address-autofill/translations.ts","src/components/input/pn-address-autofill/pn-address-autofill.scss?tag=pn-address-autofill","src/components/input/pn-address-autofill/pn-address-autofill.tsx"],"sourcesContent":["export const translations = {\n 'sv': {\n errorEmpty: 'Får inte vara tom',\n errorPostalCode: 'Kan inte hitta postkoden',\n required: 'obligatoriskt',\n addressNotFound: 'Adressen hittades inte'\n },\n 'en': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n required: 'required',\n addressNotFound: 'Address not found'\n },\n 'da': {\n errorEmpty: 'Kan ikke være tom',\n errorPostalCode: 'Kunne ikke finde postnummeret',\n required: 'påkrævet',\n addressNotFound: 'Adressen blev ikke fundet'\n },\n 'no': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'fi': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n required: 'pakollinen'\n },\n 'de': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'zh': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'fr': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'es': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'nl': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'it': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'tr': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'pl': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'pt': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'pt-BR': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n};\n","@import '../../../globals/main.scss';\n\npn-address-autofill {\n display: flex;\n flex-direction: column;\n width: 50rem;\n\n pn-input {\n width: 50%;\n }\n\n .input-container-row {\n display: flex;\n gap: 1rem;\n margin-bottom: 1rem;\n }\n\n .label-container {\n color: $gray700;\n font-size: 0.875em;\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n }\n\n .autocomplete-items {\n position: absolute;\n border-radius: 0.8rem;\n border: 0.1rem solid $gray700;\n width: 100%;\n max-height: 30rem;\n overflow-y: auto;\n\n &:hover,\n :focus {\n border: 0.1rem solid $blue400;\n }\n\n div {\n padding: 1.6rem;\n cursor: pointer;\n background-color: #fff;\n border: 0.1rem solid transparent;\n\n &:first-child {\n border-radius: 0.8rem 0.8rem 0 0;\n }\n\n &:last-child {\n border-radius: 0 0 0.8rem 0.8rem;\n }\n\n &:hover {\n background-color: #e0f8ff;\n }\n }\n\n .autocomplete-active {\n background-color: #e0f8ff;\n }\n }\n\n .autocomplete-items:empty {\n display: none;\n }\n\n pn-input {\n max-width: 25rem;\n width: 100%;\n }\n}","import { Component, Prop, h, Element, State, Host, EventEmitter, Event } from '@stencil/core';\nimport { MarketWebContextService } from '../../../globals/MarketWebContextService';\nimport { FetchHelper } from '../../../globals/FetchHelper';\nimport { Root, PostalCodeProps, CityProps, StreetAddressProps, StreetNumberProps } from './types';\nimport debounce from 'debounce';\nimport { translations } from './translations';\nimport { alert_exclamation_circle } from 'pn-design-assets/pn-assets/icons';\n\n@Component({\n tag: 'pn-address-autofill',\n styleUrl: 'pn-address-autofill.scss',\n})\nexport class PnAddressAutofill {\n @Element() hostElement: Element;\n pnInputPostalCode: HTMLElement = null;\n pnInputCity: HTMLElement = null;\n pnInputStreetAddress: HTMLElement = null;\n pnInputStreetNumber: HTMLElement = null;\n postalCodeInputField: HTMLInputElement = null;\n streetAddressInputField: HTMLInputElement = null;\n streetNumberInputField: HTMLInputElement = null;\n pnInputHiddenValue: HTMLElement = null;\n endpointPath = '/api/location/get-by-postalcode';\n private _postalCodeProps: PostalCodeProps = null;\n private _cityProps: CityProps = null;\n private _streetAddressProps: StreetAddressProps = null;\n private _streetNumberProps: StreetNumberProps = null;\n\n /** Specifies which market we want to show (se,dk,fi,no,com) */\n @Prop({ mutable: true, reflect: true }) market: string = null; //se\n /** Specifies which environment we're fetching data from. (production, preproduction, integration, localhost) */\n @Prop({ mutable: true, reflect: true }) environment: string = null; //sv\n @Prop() endpoint: string = null;\n @Prop() cache: boolean = true;\n @Prop() countryCode: string = null;\n @Prop() language: string = null;\n\n @Prop() postalCodeProps: string | PostalCodeProps = null;\n @Prop() cityProps: string | CityProps = null;\n @Prop() streetAddressProps: string | StreetAddressProps = null;\n @Prop() streetNumberProps: string | StreetNumberProps = null;\n @Prop() addressNotFoundError: string = null;\n\n @State() postalCode: string = null;\n @State() city: string = null;\n @State() streetAddress: string = null;\n @State() streetNumber: string = null;\n @State() validAddress: boolean = true;\n @State() translation: any;\n @State() postalCodeRequiredLabel: string = null;\n @State() streetRequiredLabel: string = null;\n\n @State() fullAddress: string = null;\n @State() isLoading: boolean = true;\n\n @Event() addresscomplete: EventEmitter<string>;\n\n fetchHelper = new FetchHelper('PostalCodeCityAutofill');\n\n componentWillLoad() {\n this.setInitialValues();\n this._postalCodeProps = this.setProps(this.postalCodeProps);\n this._cityProps = this.setProps(this.cityProps);\n this._streetAddressProps = this.setProps(this.streetAddressProps);\n this._streetNumberProps = this.setProps(this.streetNumberProps);\n }\n\n setProps(props) {\n if (typeof props === 'string') {\n return JSON.parse(props);\n } else {\n return props;\n }\n }\n\n componentDidLoad() {\n this.postalCodeInputField = this.pnInputPostalCode.querySelector('input');\n this.streetAddressInputField = this.pnInputStreetAddress.querySelector('input');\n this.streetNumberInputField = this.pnInputStreetNumber.querySelector('input');\n\n this.addEventHandlers();\n }\n\n async setInitialValues(href = window.location.href) {\n const marketWebContextService = new MarketWebContextService(href);\n\n if (!this.environment) {\n this.environment = await marketWebContextService.getEnvironmentName();\n }\n\n if (!this.endpoint && this.environment?.indexOf('local') === -1) {\n this.endpoint = await marketWebContextService.getEndpoint(this.environment, this.market);\n }\n\n if (!this.endpoint) {\n this.endpoint = '';\n }\n\n if (!this.language) {\n this.language = await marketWebContextService.getLanguage();\n }\n\n this.setTranslations()\n\n this.postalCodeRequiredLabel = \"\";\n this.streetRequiredLabel = \"\";\n\n if (this._postalCodeProps.postalCodeInputRequired === true) {\n this.postalCodeRequiredLabel = \" (\" + this.translation.required + \")\";\n }\n\n if (this._streetAddressProps.streetAddressInputRequired === true) {\n this.streetRequiredLabel = \" (\" + this.translation.required + \")\";\n }\n }\n\n setTranslations() {\n if (this.language === 'nb') {\n this.language = 'no';\n }\n if (this.language && translations[this.language]) {\n this.translation = translations[this.language];\n }\n }\n\n addEventHandlers() {\n let debounceTimeout: number | undefined;\n\n this.postalCodeInputField.addEventListener('input', (e) => {\n this.isLoading = true;\n clearTimeout(debounceTimeout);\n debounceTimeout = window.setTimeout(() => {\n this.fetchPostalCodeData(e);\n }, 300);\n });\n\n this.streetNumberInputField.addEventListener('input', debounce(this.fetchAddress.bind(this), 300));\n this.streetAddressInputField.addEventListener('keydown', () => { this.streetNumberInputField.value = '' });\n this.addFormFieldEvent();\n }\n\n addFormFieldEvent() {\n const allInputs = this.hostElement.querySelectorAll('input');\n allInputs.forEach(element => {\n ['keyup', 'change', 'blur'].forEach(eventName => {\n const debounceUpdate = debounce(this.updateHiddenValue.bind(this), 1000);\n element.addEventListener(eventName, debounceUpdate);\n });\n });\n }\n\n updateHiddenValue(e) {\n if (e.target === this.streetNumberInputField) {\n this.streetNumber = this.streetNumberInputField.value;\n }\n\n if (this.validAddress && this.postalCode && this.city && this.streetAddress && this.streetNumber) {\n this.fullAddress = `${this.streetAddress} ${this.streetNumber}, ${this.city} ${this.postalCode}`;\n } else {\n this.fullAddress = '';\n }\n\n this.addresscomplete.emit(this.fullAddress);\n }\n\n async fetchPostalCodeData(e: Event) {\n if (!e) {\n return;\n }\n const postalCode = this.postalCodeInputField.value;\n\n var postalCodeLength = 4;\n\n if (postalCode.length < postalCodeLength) {\n this.resetFields();\n return;\n }\n\n if (this.postalCode === postalCode) {\n return;\n }\n\n this.resetFields();\n this.postalCode = postalCode;\n\n var data = (await this.fetchPostalCode(postalCode));\n\n if (!data || !data.addresses) {\n this.city = null;\n this.isLoading = true;\n return;\n }\n\n const cityInfo = data.addresses?.find(addr => addr.postalCode === postalCode);\n this.city = cityInfo?.city || null;\n\n this.isLoading = false;\n }\n\n\n async fetchPostalCode(postalCode) {\n const endpointBase = this.endpoint.endsWith('/')\n ? this.endpoint.slice(0, -1)\n : this.endpoint;\n\n const fetchUrl = `${endpointBase}${this.endpointPath}?countryCode=${this.countryCode}&postalCode=${postalCode}`;\n\n try {\n const data = await this.fetchHelper.fetchJson(fetchUrl, { mode: 'cors' }, this.cache) as Root;\n\n if (!data?.addresses?.length) {\n this.pnInputPostalCode.setAttribute('error', this._postalCodeProps.postalCodeInputError);\n return;\n }\n return data;\n }\n catch (error) {\n console.error(\"Error fetching address data:\", error);\n this.isLoading = true;\n return null;\n }\n }\n\n private resetFields() {\n this.streetAddressInputField.value = '';\n this.streetNumberInputField.value = '';\n this.city = null;\n this.streetAddress = null;\n this.streetNumber = null;\n this.validAddress = false;\n\n let inputs = document.getElementsByTagName('pn-input');\n\n Array.from(inputs).forEach(element => {\n element.removeAttribute('error');\n });\n }\n\n async fetchAddress() {\n const streetAddress = this.streetAddressInputField.value.trim();\n const streetNumber = this.streetNumberInputField.value.trim();\n\n if (!streetAddress || !streetNumber) {\n this.validAddress = false;\n return;\n }\n\n const endpointBase = this.endpoint.endsWith('/')\n ? this.endpoint.slice(0, -1)\n : this.endpoint;\n\n const fetchUrl = `${endpointBase}${this.endpointPath}?countryCode=${this.countryCode}&postalCode=${this.postalCodeInputField.value}&address=${streetAddress + \" \" + streetNumber}`;\n\n try {\n const data = await this.fetchHelper.fetchJson(fetchUrl, { mode: 'cors' }, this.cache) as Root;\n\n if (!data?.addresses?.length) {\n this.validAddress = false;\n } else {\n const inputStreetAddress = this.normalizeChar(streetAddress);\n const inputStreetNumber = this.normalizeChar(streetNumber);\n\n const addressFound = data.addresses.some(addr =>\n this.normalizeChar(addr.street) === inputStreetAddress &&\n this.normalizeChar(addr.houseNumber) === inputStreetNumber &&\n addr.postalCode === this.postalCodeInputField.value\n );\n\n this.validAddress = addressFound;\n }\n } catch (error) {\n console.error(\"Error fetching address data:\", error);\n this.isLoading = true;\n this.validAddress = false;\n }\n\n if (this.streetAddress === streetAddress && this.streetNumber === streetNumber) {\n return;\n }\n\n if (streetAddress) {\n this.streetAddress = streetAddress;\n }\n if (streetNumber) {\n this.streetNumber = streetNumber;\n }\n }\n //this function is added to compare the street input values if entered without special characters like é, ø ect\n normalizeChar(str) {\n\n const specialCharMap = {\n 'ø': 'o',\n 'Ø': 'o',\n 'æ': 'ae',\n 'Æ': 'ae',\n // Add more as needed\n };\n\n var str1 = str.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\")\n .split('').map(char => specialCharMap[char] || char)\n .join('').toLowerCase()\n return str1;\n }\n\n render() {\n return (\n <Host class=\"pn-address-autofill\">\n {this._postalCodeProps?.postalCodeCityLabel ? (\n <div class=\"label-container\">\n <label>{`${this._postalCodeProps.postalCodeCityLabel + ' ' + this.postalCodeRequiredLabel}`}</label>\n </div>\n ) : null}\n <div class=\"input-container-row\">\n <pn-input\n type=\"number\"\n name={this._postalCodeProps?.postalCodeInputName}\n required={this._postalCodeProps?.postalCodeInputRequired}\n placeholder={this._postalCodeProps?.postalCodeInputPlaceholder}\n ref={el => (this.pnInputPostalCode = el as HTMLElement)}\n autocomplete=\"off\"\n helpertext={this._postalCodeProps?.postalCodeInputHelpertext}\n ></pn-input>\n\n <pn-input\n type=\"text\"\n name={this._cityProps?.cityInputName}\n disabled\n value={this.city}\n placeholder={this._cityProps?.cityInputPlaceholder}\n autocomplete=\"off\"\n helpertext={this._cityProps?.cityInputHelpertext}\n ></pn-input>\n </div>\n\n {this._streetAddressProps?.streetAddressNumberLabel ? (\n <div class=\"label-container\">\n <label>{`${this._streetAddressProps.streetAddressNumberLabel + ' ' + this.streetRequiredLabel}`}</label>\n </div>\n ) : null}\n <div class=\"input-container-row\">\n <pn-input\n type=\"text\"\n name={this._streetAddressProps?.streetAddressInputName}\n required={this._streetAddressProps?.streetAddressInputRequired}\n value={this.streetAddress}\n placeholder={this._streetAddressProps?.streetAddressInputPlaceholder}\n ref={el => (this.pnInputStreetAddress = el as HTMLElement)}\n autocomplete=\"off\"\n helpertext={this._streetAddressProps?.streetAddressInputHelpertext}\n disabled={this.isLoading}\n ></pn-input>\n\n <pn-input\n type=\"text\"\n name={this._streetNumberProps?.streetNumberInputName}\n required={this._streetNumberProps?.streetNumberInputRequired}\n value={this.streetNumber}\n placeholder={this._streetNumberProps?.streetNumberInputPlaceholder}\n ref={el => (this.pnInputStreetNumber = el as HTMLElement)}\n autocomplete=\"off\"\n helpertext={this._streetNumberProps?.streetNumberInputHelpertext}\n disabled={this.isLoading}\n ></pn-input>\n </div>\n {(!this.validAddress && this.streetAddressInputField.value && this.streetNumberInputField.value) ? (\n <div class=\"toast-container\">\n <pn-toast text={this.addressNotFoundError ?? this.translation.addressNotFound} appearance=\"warning\" icon={alert_exclamation_circle}></pn-toast>\n </div>\n ) : null}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"pn-address-autofill.js","mappings":";;;;AAAO,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,UAAU,EAAE,mBAAmB;QAC/B,eAAe,EAAE,0BAA0B;QAC3C,QAAQ,EAAE,eAAe;KAC1B;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAAiB;QAC7B,eAAe,EAAE,2BAA2B;QAC5C,QAAQ,EAAE,UAAU;KAErB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,mBAAmB;QAC/B,eAAe,EAAE,+BAA+B;QAChD,QAAQ,EAAE,UAAU;KACrB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAAiB;QAC7B,eAAe,EAAE,2BAA2B;KAC7C;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAAiB;QAC7B,eAAe,EAAE,2BAA2B;QAC5C,QAAQ,EAAE,YAAY;KACvB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAAiB;QAC7B,eAAe,EAAE,2BAA2B;KAC7C;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAAiB;QAC7B,eAAe,EAAE,2BAA2B;KAC7C;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAAiB;QAC7B,eAAe,EAAE,2BAA2B;KAC7C;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAAiB;QAC7B,eAAe,EAAE,2BAA2B;KAC7C;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAAiB;QAC7B,eAAe,EAAE,2BAA2B;KAC7C;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,iBAA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EAAiB,CAAC,EAC1D,YAAY,EAAC,KAAK,EAClB,UAAU,EAAE,IAAI,CAAC,mBAAmB,EAAE,4BAA4B,EAClE,QAAQ,EAAE,IAAI,CAAC,SAAS,GACd,EAEZ,iEACE,IAAI,EAAC,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,qBAAqB,EACpD,QAAQ,EAAE,IAAI,CAAC,kBAAkB,EAAE,yBAAyB,EAC5D,KAAK,EAAE,IAAI,CAAC,YAAY,EACxB,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,4BAA4B,EAClE,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,mBAAmB,GAAG,EAAiB,CAAC,EACzD,YAAY,EAAC,KAAK,EAClB,UAAU,EAAE,IAAI,CAAC,kBAAkB,EAAE,2BAA2B,EAChE,QAAQ,EAAE,IAAI,CAAC,SAAS,GACd,CACR,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PnAddressAutofill"],"sources":["src/components/input/pn-address-autofill/translations.ts","src/components/input/pn-address-autofill/pn-address-autofill.scss?tag=pn-address-autofill","src/components/input/pn-address-autofill/pn-address-autofill.tsx"],"sourcesContent":["export const translations = {\n 'sv': {\n errorEmpty: 'Får inte vara tom',\n errorPostalCode: 'Kan inte hitta postkoden',\n required: 'obligatoriskt'\n },\n 'en': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n required: 'required'\n\n },\n 'da': {\n errorEmpty: 'Kan ikke være tom',\n errorPostalCode: 'Kunne ikke finde postnummeret',\n required: 'påkrævet'\n },\n 'no': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'fi': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n required: 'pakollinen'\n },\n 'de': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'zh': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'fr': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'es': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'nl': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'it': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'tr': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'pl': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'pt': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n 'pt-BR': {\n errorEmpty: 'Cannot be empty',\n errorPostalCode: 'Could not find postalcode',\n },\n};\n","@import '../../../globals/main.scss';\n\npn-address-autofill {\n pn-marketweb-input {\n width: 50%;\n }\n\n .input-container-row {\n display: flex;\n //flex-grow: 1;\n gap: 1rem;\n margin-bottom: 1rem;\n }\n\n .label-container {\n color: $gray700;\n font-size: 0.875em;\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n }\n\n .autocomplete-items {\n position: absolute;\n border-radius: 0.8rem;\n border: 0.1rem solid $gray700;\n width: 100%;\n max-height: 30rem;\n overflow-y: auto;\n\n &:hover,\n :focus {\n border: 0.1rem solid $blue400;\n }\n\n div {\n padding: 1.6rem;\n cursor: pointer;\n background-color: #fff;\n border: 0.1rem solid transparent;\n\n &:first-child {\n border-radius: 0.8rem 0.8rem 0 0;\n }\n\n &:last-child {\n border-radius: 0 0 0.8rem 0.8rem;\n }\n\n &:hover {\n background-color: #e0f8ff;\n }\n }\n\n .autocomplete-active {\n background-color: #e0f8ff;\n }\n }\n \n .autocomplete-items:empty {\n display: none;\n }\n\n pn-input {\n max-width: 25rem;\n width: 100%;\n }\n}\n","import { Component, Prop, h, Element, State, Host, EventEmitter, Event } from '@stencil/core';\nimport { MarketWebContextService } from '../../../globals/MarketWebContextService';\nimport { FetchHelper } from '../../../globals/FetchHelper';\nimport { Root, PostalCodeProps, CityProps, StreetAddressProps, StreetNumberProps } from './types';\nimport debounce from 'debounce';\nimport { translations } from './translations';\n\n@Component({\n tag: 'pn-address-autofill',\n styleUrl: 'pn-address-autofill.scss',\n})\nexport class PnAddressAutofill {\n @Element() hostElement: Element;\n pnInputPostalCode: HTMLElement = null;\n pnInputCity: HTMLElement = null;\n pnInputStreetAddress: HTMLElement = null;\n pnInputStreetNumber: HTMLElement = null;\n postalCodeInputField: HTMLInputElement = null;\n streetAddressInputField: HTMLInputElement = null;\n streetNumberInputField: HTMLInputElement = null;\n pnInputHiddenValue: HTMLElement = null;\n endpointPath = '/api/location/get-by-postalcode';\n locationEndpointPath = '/api/location/get-by-location';\n private _postalCodeProps: PostalCodeProps = null;\n private _cityProps: CityProps = null;\n private _streetAddressProps: StreetAddressProps = null;\n private _streetNumberProps: StreetNumberProps = null;\n\n /** Specifies which market we want to show (se,dk,fi,no,com) */\n @Prop({ mutable: true, reflect: true }) market: string = null; //se\n /** Specifies which environment we're fetching data from. (production, preproduction, integration, localhost) */\n @Prop({ mutable: true, reflect: true }) environment: string = null; //sv\n @Prop() endpoint: string = null;\n @Prop() cache: boolean = true;\n @Prop() countryCode: string = null;\n @Prop() language: string = null;\n\n @Prop() postalCodeProps: string | PostalCodeProps = null;\n @Prop() cityProps: string | CityProps = null;\n @Prop() streetAddressProps: string | StreetAddressProps = null;\n @Prop() streetNumberProps: string | StreetNumberProps = null;\n\n @State() postalCode: string = null;\n @State() city: string = null;\n @State() streetAddress: string = null;\n @State() streetNumber: string = null;\n @State() validAddress: boolean = false;\n @State() translation: any;\n @State() postalCodeRequiredLabel: string = null;\n @State() streetRequiredLabel: string = null;\n\n @State() fullAddress: string = null;\n @State() isLoading: boolean = true;\n\n @Event() addresscomplete: EventEmitter<string>;\n\n fetchHelper = new FetchHelper('PostalCodeCityAutofill');\n\n componentWillLoad() {\n this.setInitialValues();\n this._postalCodeProps = this.setProps(this.postalCodeProps);\n this._cityProps = this.setProps(this.cityProps);\n this._streetAddressProps = this.setProps(this.streetAddressProps);\n this._streetNumberProps = this.setProps(this.streetNumberProps);\n }\n\n setProps(props) {\n if (typeof props === 'string') {\n return JSON.parse(props);\n } else {\n return props;\n }\n }\n\n componentDidLoad() {\n this.postalCodeInputField = this.pnInputPostalCode.querySelector('input');\n this.streetAddressInputField = this.pnInputStreetAddress.querySelector('input');\n this.streetNumberInputField = this.pnInputStreetNumber.querySelector('input');\n\n this.addEventHandlers();\n }\n\n async setInitialValues(href = window.location.href) {\n const marketWebContextService = new MarketWebContextService(href);\n\n if (!this.environment) {\n this.environment = await marketWebContextService.getEnvironmentName();\n }\n\n if (!this.endpoint && this.environment?.indexOf('local') === -1) {\n this.endpoint = await marketWebContextService.getEndpoint(this.environment, this.market);\n }\n\n if (!this.endpoint) {\n this.endpoint = '';\n }\n\n if (!this.language) {\n this.language = await marketWebContextService.getLanguage();\n }\n\n this.setTranslations()\n\n this.postalCodeRequiredLabel = \"\";\n this.streetRequiredLabel = \"\";\n\n if(this._postalCodeProps.postalCodeInputRequired === true) {\n this.postalCodeRequiredLabel = \" (\" + this.translation.required + \")\"; \n }\n\n if(this._streetAddressProps.streetAddressInputRequired === true) {\n this.streetRequiredLabel = \" (\" + this.translation.required + \")\"; \n }\n }\n\n setTranslations() {\n if (this.language === 'nb') {\n this.language = 'no';\n }\n if (this.language && translations[this.language]) {\n this.translation = translations[this.language];\n }\n }\n\n addEventHandlers() {\n let debounceTimeout: number | undefined;\n\n this.postalCodeInputField.addEventListener('keyup', (e) => {\n this.isLoading = true;\n clearTimeout(debounceTimeout);\n debounceTimeout = window.setTimeout(() => {\n this.fetchPostalCodeData(e);\n }, 300);\n });\n\n this.streetAddressInputField.addEventListener('blur', this.handleAddressDropdown.bind(this));\n this.streetNumberInputField.addEventListener('blur', this.handleAddressDropdown.bind(this));\n this.addFormFieldEvent();\n }\n\n addFormFieldEvent() {\n const allInputs = this.hostElement.querySelectorAll('input');\n allInputs.forEach(element => {\n ['keyup', 'change', 'blur'].forEach(eventName => {\n const debounceUpdate = debounce(this.updateHiddenValue.bind(this), 1000);\n element.addEventListener(eventName, debounceUpdate);\n });\n });\n }\n\n updateHiddenValue(e) {\n if (e.target === this.streetNumberInputField) {\n this.streetNumber = this.streetNumberInputField.value;\n }\n\n if (this.validAddress && this.postalCode && this.city && this.streetAddress && this.streetNumber) {\n this.fullAddress = `${this.streetAddress} ${this.streetNumber}, ${this.city} ${this.postalCode}`;\n } else {\n this.fullAddress = '';\n }\n\n this.addresscomplete.emit(this.fullAddress);\n }\n\n async fetchPostalCodeData(e: Event) {\n if (!e) {\n return;\n }\n const postalCode = this.postalCodeInputField.value;\n\n var postalCodeLength = 4;\n\n if (postalCode.length < postalCodeLength) {\n this.resetFields();\n return;\n }\n\n if (this.postalCode === postalCode) {\n return;\n }\n\n this.resetFields();\n this.postalCode = postalCode;\n\n var data = (await this.fetchPostalCode(postalCode));\n\n const cityInfo = data.addresses?.find(addr => addr.postalCode === postalCode);\n this.city = cityInfo?.city || null;\n\n this.isLoading = false;\n }\n\n\n async fetchPostalCode(postalCode) {\n const endpointBase = this.endpoint.endsWith('/')\n ? this.endpoint.slice(0, -1)\n : this.endpoint;\n\n const fetchUrl = `${endpointBase}${this.endpointPath}?countryCode=${this.countryCode}&postalCode=${postalCode}`;\n\n try {\n const data = await this.fetchHelper.fetchJson(fetchUrl, { mode: 'cors' }, this.cache) as Root;\n\n if (!data?.addresses?.length) {\n this.pnInputPostalCode.setAttribute('error', this._postalCodeProps.postalCodeInputError);\n return;\n }\n return data;\n }\n catch (error) {\n console.error(\"Error fetching address data:\", error);\n this.isLoading = true;\n return null;\n }\n }\n\n\n async fetchAddress() {\n const endpointBase = this.endpoint.endsWith('/')\n ? this.endpoint.slice(0, -1)\n : this.endpoint;\n\n //merge street and number\n var locationSearch = this.streetAddress + ' ' + this.streetNumber;\n\n //this is Air search api which will return the address, without postcode, postalcode verification is done in handleAddressDropdown\n const fetchUrl = `${endpointBase}${this.locationEndpointPath}?countryCode=${this.countryCode}&query=${locationSearch}`;\n\n try {\n const data = await this.fetchHelper.fetchJson(fetchUrl, { mode: 'cors' }, this.cache) as Root;\n return data;\n }\n catch (error) {\n console.error(\"Error fetching address data:\", error);\n this.isLoading = true;\n return null;\n }\n\n }\n\n private resetFields() {\n this.streetAddressInputField.value = '';\n this.streetNumberInputField.value = '';\n this.city = null;\n this.streetAddress = null;\n this.streetNumber = null;\n this.validAddress = false;\n\n let inputs = document.getElementsByTagName('pn-input');\n\n Array.from(inputs).forEach(element => {\n element.removeAttribute('error');\n });\n }\n\n async handleAddressDropdown(e: Event) {\n const streetAddress = this.streetAddressInputField.value;\n const streetNumber = this.streetNumberInputField.value;\n\n //no data fetching if both the inputs are empty\n if (!streetAddress && !streetNumber) {\n return;\n }\n\n //skip the data fetch if there is no change in input\n if (this.streetAddress === streetAddress && this.streetNumber === streetNumber) {\n return;\n }\n\n //set the values\n if (streetAddress) {\n this.streetAddress = streetAddress;\n }\n if (streetNumber) {\n this.streetNumber = streetNumber;\n }\n\n //fetch data\n var data = await this.fetchAddress();\n\n //verify the error\n var showStreetAddressError = false;\n var showStreetNumberError = false;\n\n if (!data?.addresses?.length) {\n if (e.target === this.streetAddressInputField) {\n showStreetAddressError = true;\n }\n if (e.target === this.streetNumberInputField) {\n showStreetNumberError = true;\n }\n } else {\n if (this.streetAddress && !data.addresses.find(addr => this.normalizeChar(addr.street) === this.normalizeChar(this.streetAddress) && addr.postalCode === this.postalCode)) {\n showStreetAddressError = true;\n }\n if (this.streetNumber && !data.addresses.find(addr => addr.houseNumber.toLowerCase() === this.streetNumber.toLowerCase() && addr.postalCode === this.postalCode)) {\n showStreetNumberError = true;\n }\n }\n\n //helpertext changes are temp fix to show the error text, this can be removed once the upgrade is done and fixes this issue.\n this.pnInputStreetAddress.removeAttribute('error');\n this.pnInputStreetAddress.setAttribute('helpertext', this._streetAddressProps.streetAddressInputHelpertext);\n\n this.pnInputStreetNumber.removeAttribute('error');\n this.pnInputStreetNumber.setAttribute('helpertext', this._streetNumberProps.streetNumberInputHelpertext);\n\n this.validAddress = true;\n\n if (showStreetAddressError) {\n this.pnInputStreetAddress.setAttribute('error', this._streetAddressProps.streetAddressInputError);\n this.pnInputStreetAddress.setAttribute('helpertext', this._streetAddressProps.streetAddressInputError);\n this.validAddress = false;\n }\n if (showStreetNumberError) {\n this.pnInputStreetNumber.setAttribute('error', this._streetNumberProps.streetNumberInputError);\n this.pnInputStreetNumber.setAttribute('helpertext', this._streetNumberProps.streetNumberInputError);\n this.validAddress = false;\n }\n }\n\n //this function is added to compare the street input values if entered without special characters like é, ø ect\n normalizeChar(str) {\n\n const specialCharMap = {\n 'ø': 'o',\n 'Ø': 'o',\n 'æ': 'ae',\n 'Æ': 'ae',\n // Add more as needed\n };\n\n var str1 = str.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\")\n .split('').map(char => specialCharMap[char] || char)\n .join('').toLowerCase()\n return str1;\n }\n\n render() {\n return (\n <Host class=\"pn-address-autofill\">\n {this._postalCodeProps?.postalCodeCityLabel ? (\n <div class=\"label-container\">\n <label>{`${this._postalCodeProps.postalCodeCityLabel + ' ' + this.postalCodeRequiredLabel}`}</label>\n </div>\n ) : null}\n <div class=\"input-container-row\">\n <pn-input\n type=\"number\"\n name={this._postalCodeProps?.postalCodeInputName}\n required={this._postalCodeProps?.postalCodeInputRequired}\n placeholder={this._postalCodeProps?.postalCodeInputPlaceholder}\n ref={el => (this.pnInputPostalCode = el as HTMLElement)}\n autocomplete=\"off\"\n helpertext={this._postalCodeProps?.postalCodeInputHelpertext}\n ></pn-input>\n\n <pn-input\n type=\"text\"\n name={this._cityProps?.cityInputName}\n disabled\n value={this.city}\n placeholder={this._cityProps?.cityInputPlaceholder}\n autocomplete=\"off\"\n helpertext={this._cityProps?.cityInputHelpertext}\n ></pn-input>\n </div>\n\n {this._streetAddressProps?.streetAddressNumberLabel ? (\n <div class=\"label-container\">\n <label>{`${this._streetAddressProps.streetAddressNumberLabel + ' ' + this.streetRequiredLabel}`}</label>\n </div>\n ) : null}\n <div class=\"input-container-row\">\n <pn-input\n type=\"text\"\n name={this._streetAddressProps?.streetAddressInputName}\n required={this._streetAddressProps?.streetAddressInputRequired}\n value={this.streetAddress}\n placeholder={this._streetAddressProps?.streetAddressInputPlaceholder}\n ref={el => (this.pnInputStreetAddress = el as HTMLElement)}\n autocomplete=\"off\"\n helpertext={this._streetAddressProps?.streetAddressInputHelpertext}\n disabled={this.isLoading}\n ></pn-input>\n\n <pn-input\n type=\"text\"\n name={this._streetNumberProps?.streetNumberInputName}\n required={this._streetNumberProps?.streetNumberInputRequired}\n value={this.streetNumber}\n placeholder={this._streetNumberProps?.streetNumberInputPlaceholder}\n ref={el => (this.pnInputStreetNumber = el as HTMLElement)}\n autocomplete=\"off\"\n helpertext={this._streetNumberProps?.streetNumberInputHelpertext}\n disabled={this.isLoading}\n ></pn-input>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { c as classNames } from './index3.js';
|
|
3
3
|
import { p as plus } from './plus.js';
|
|
4
4
|
|
|
5
|
-
const pnAnimatedTileCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}
|
|
5
|
+
const pnAnimatedTileCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}pn-animated-tile .pn-animated-tile__container{position:relative;border-radius:2.4rem;height:56rem;cursor:default}pn-animated-tile .pn-animated-tile__content{position:relative;display:flex;height:100%;width:100%;background-color:transparent}pn-animated-tile [slot=side-a],pn-animated-tile [slot=side-b]{position:absolute;align-self:stretch;top:0;left:0;width:100%;height:100%}pn-animated-tile [slot=side-a]{padding:0;opacity:1}pn-animated-tile [slot=side-b]{z-index:-1;padding:2.4rem 2.4rem 7rem 2.4rem;opacity:0;transform:translateY(50px)}pn-animated-tile .pn-animated-tile__toggle{z-index:2;position:absolute;bottom:2.4rem;right:2.4rem;padding:0.8rem;border-radius:50%;border:none;cursor:pointer;background-color:#ffffff;transition:background-color 0.45s ease-in-out}pn-animated-tile .pn-animated-tile__toggle pn-icon{background-color:#ffffff;transition:background-color 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s}pn-animated-tile .pn-animated-tile__toggle:hover{background-color:#e9e6e5}pn-animated-tile .pn-animated-tile__toggle:hover pn-icon{background-color:#e9e6e5}pn-animated-tile .button-tooltip{display:none}.cat-animate [slot=side-a],.cat-animate [slot=side-b]{transition:opacity 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s}.cat-animate.fade [slot=side-a]{opacity:0;z-index:-1}.cat-animate.fade [slot=side-b]{z-index:1;opacity:1;transform:translateY(0);transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-a]{opacity:1;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-b]{opacity:0;transform:translateY(50px)}.cat-animate.toggle.animate pn-icon{transform:rotate(45deg)}[data-cat-theme=white] .pn-animated-tile__container{background-color:#ffffff}[data-cat-theme=white] .pn-animated-tile__toggle{background-color:#00a0d6}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon{background-color:#00a0d6}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon svg>path{fill:#ffffff}[data-cat-theme=white] .pn-animated-tile__toggle:hover{background-color:#005d92}[data-cat-theme=white] .pn-animated-tile__toggle:hover pn-icon{background-color:#005d92}[data-cat-theme=white] .pn-animated-tile__toggle:focus,[data-cat-theme=white] .pn-animated-tile__toggle:focus-visible{outline-color:#005d92}[data-cat-theme=coral400] .pn-animated-tile__container{background-color:#f06365}[data-cat-theme=coral400] .pn-animated-tile__toggle{background-color:#ffffff}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon{background-color:#ffffff}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon svg>path{fill:#f06365}[data-cat-theme=coral400] .pn-animated-tile__toggle:focus,[data-cat-theme=coral400] .pn-animated-tile__toggle:focus-visible{outline-color:#f06365}[data-cat-theme=private] .pn-animated-tile__container{background-color:#00a0d6}[data-cat-theme=private] .pn-animated-tile__toggle{background-color:#ffffff}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon{background-color:#ffffff}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon svg>path{fill:#00a0d6}[data-cat-theme=private] .pn-animated-tile__toggle:focus,[data-cat-theme=private] .pn-animated-tile__toggle:focus-visible{outline-color:#00a0d6}[data-cat-theme=business] .pn-animated-tile__container{background-color:#0d234b}[data-cat-theme=business] .pn-animated-tile__toggle{background-color:#ffffff}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon{background-color:#ffffff}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon svg>path{fill:#0d234b}[data-cat-theme=business] .pn-animated-tile__toggle:focus,[data-cat-theme=business] .pn-animated-tile__toggle:focus-visible{outline-color:#0d234b}[data-cat-theme=hybrid] .pn-animated-tile__container{background-color:#e9e6e5}[data-cat-theme=hybrid] .pn-animated-tile__toggle{background-color:#ffffff}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon{background-color:#ffffff}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon svg>path{fill:#005d92}[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus,[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus-visible{outline-color:#005d92}[data-cat-firstpage-only=true] [slot=side-b],[data-cat-firstpage-only=true] .pn-animated-tile__toggle{display:none}";
|
|
6
6
|
const PnAnimatedTileStyle0 = pnAnimatedTileCss;
|
|
7
7
|
|
|
8
8
|
const PnAnimatedTile$1 = /*@__PURE__*/ proxyCustomElement(class PnAnimatedTile extends HTMLElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pn-animated-tile.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"file":"pn-animated-tile.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,qsIAAqsI,CAAC;AAChuI,6BAAe,iBAAiB;;MCQnBA,gBAAc;;;;uBAGG,KAAK;mCACM,EAAE;2BACV,EAAE;;;IAEjC,cAAc,GAAG;QACf,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;KAC9B,CAAC;IAGF,gBAAgB;QACd,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,gBAAgB,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACjG,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KAC/E;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,4DAAK,KAAK,EAAC,6BAA6B,IACtC,4DAAK,KAAK,EAAE,yCAAyC,IAAI,CAAC,mBAAmB,EAAE,IAC7E,6DAAM,IAAI,EAAC,QAAQ,GAAG,EACtB,6DAAM,IAAI,EAAC,QAAQ,GAAG,CAClB,EACN,+DAAQ,IAAI,EAAC,QAAQ,gBAAY,WAAW,EAAC,KAAK,EAAE,+CAA+C,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,cAAc,IACjJ,gEAAS,IAAI,EAAE,IAAI,GAAY,CACxB,CACL,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PnAnimatedTile"],"sources":["src/components/animation/pn-animated-tile/pn-animated-tile.scss?tag=pn-animated-tile","src/components/animation/pn-animated-tile/pn-animated-tile.tsx"],"sourcesContent":["@import '../../../globals/main';\n\n$gray100: #e9e6e5;\n\npn-animated-tile {\n .pn-animated-tile__container {\n position: relative;\n border-radius: 2.4rem;\n height: 56rem;\n\n cursor: default;\n }\n\n .pn-animated-tile__content {\n position: relative;\n display: flex;\n\n height: 100%;\n width: 100%;\n background-color: transparent;\n }\n\n [slot='side-a'],\n [slot='side-b'] {\n position: absolute;\n align-self: stretch;\n\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n //initial slots' state\n [slot='side-a'] {\n padding: 0;\n opacity: 1;\n }\n\n [slot='side-b'] {\n z-index: -1;\n padding: 2.4rem 2.4rem 7rem 2.4rem;\n opacity: 0;\n transform: translateY(50px);\n }\n\n .pn-animated-tile__toggle {\n z-index: 2;\n position: absolute;\n bottom: 2.4rem;\n right: 2.4rem;\n padding: 0.8rem;\n border-radius: 50%;\n border: none;\n cursor: pointer;\n\n background-color: $white;\n transition: background-color 0.45s ease-in-out;\n pn-icon {\n background-color: $white;\n transition:\n background-color 0.45s ease-in-out,\n transform 0.45s ease-in-out 0.5s;\n }\n\n &:hover {\n background-color: $gray100;\n pn-icon {\n background-color: $gray100;\n }\n }\n }\n\n .button-tooltip {\n display: none;\n }\n}\n\n//animations\n.cat-animate {\n [slot='side-a'],\n [slot='side-b'] {\n transition:\n opacity 0.45s ease-in-out,\n transform 0.45s ease-in-out 0.5s;\n }\n\n &.fade {\n //from a to b\n [slot='side-a'] {\n opacity: 0;\n z-index: -1;\n }\n\n [slot='side-b'] {\n z-index: 1;\n opacity: 1;\n transform: translateY(0);\n transition-delay: 0.5s;\n }\n\n //from b to a\n &--reversed {\n [slot='side-a'] {\n opacity: 1;\n\n transition-delay: 0.5s;\n }\n\n [slot='side-b'] {\n opacity: 0;\n transform: translateY(50px);\n }\n }\n }\n\n &.toggle {\n &.animate {\n pn-icon {\n transform: rotate(45deg);\n }\n }\n }\n}\n\n//themes\n[data-cat-theme='white'] {\n .pn-animated-tile__container {\n background-color: $white;\n }\n\n .pn-animated-tile__toggle {\n background-color: $blue400;\n pn-icon {\n background-color: $blue400;\n svg > path {\n fill: $white;\n }\n }\n\n &:hover {\n background-color: $blue700;\n pn-icon {\n background-color: $blue700;\n }\n }\n\n &:focus,\n &:focus-visible {\n outline-color: $blue700;\n }\n }\n}\n\n[data-cat-theme='coral400'] {\n .pn-animated-tile__container {\n background-color: $coral400;\n }\n\n .pn-animated-tile__toggle {\n background-color: $white;\n pn-icon {\n background-color: $white;\n svg > path {\n fill: $coral400;\n }\n }\n\n &:focus,\n &:focus-visible {\n outline-color: $coral400;\n }\n }\n}\n\n[data-cat-theme='private'] {\n .pn-animated-tile__container {\n background-color: $blue400;\n }\n\n .pn-animated-tile__toggle {\n background-color: $white;\n pn-icon {\n background-color: $white;\n svg > path {\n fill: $blue400;\n }\n }\n\n &:focus,\n &:focus-visible {\n outline-color: $blue400;\n }\n }\n}\n\n[data-cat-theme='business'] {\n .pn-animated-tile__container {\n background-color: $blue900;\n }\n\n .pn-animated-tile__toggle {\n background-color: $white;\n pn-icon {\n background-color: $white;\n svg > path {\n fill: $blue900;\n }\n }\n\n &:focus,\n &:focus-visible {\n outline-color: $blue900;\n }\n }\n}\n\n[data-cat-theme='hybrid'] {\n .pn-animated-tile__container {\n background-color: $gray100;\n }\n\n .pn-animated-tile__toggle {\n background-color: $white;\n pn-icon {\n background-color: $white;\n svg > path {\n fill: $blue700;\n }\n }\n\n &:focus,\n &:focus-visible {\n outline-color: $blue700;\n }\n }\n}\n\n[data-cat-firstpage-only='true'] {\n [slot='side-b'],\n .pn-animated-tile__toggle {\n display: none;\n }\n}\n","import classNames from 'classnames';\n\nimport { Component, Element, h, Host, State, Watch } from '@stencil/core';\nimport { plus } from 'pn-design-assets/pn-assets/icons.js';\n\n@Component({\n tag: 'pn-animated-tile',\n styleUrl: 'pn-animated-tile.scss',\n})\nexport class PnAnimatedTile {\n @Element() hostElement: HTMLElement;\n\n @State() toggled: boolean = false;\n @State() transitionClassName: string = '';\n @State() animateIcon: string = '';\n\n onClickHandler = () => {\n this.toggled = !this.toggled;\n };\n\n @Watch('toggled')\n onToggledHandler() {\n this.transitionClassName = classNames({ 'fade': this.toggled, 'fade--reversed': !this.toggled });\n this.animateIcon = classNames({ 'animate': this.toggled, '': !this.toggled });\n }\n\n render() {\n return (\n <Host>\n <div class=\"pn-animated-tile__container\">\n <div class={`pn-animated-tile__content cat-animate ${this.transitionClassName}`}>\n <slot name=\"side-a\" />\n <slot name=\"side-b\" />\n </div>\n <button type=\"button\" aria-label=\"Read more\" class={`pn-animated-tile__toggle cat-animate toggle ${this.animateIcon}`} onClick={this.onClickHandler}>\n <pn-icon icon={plus}></pn-icon>\n </button>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as close_small } from './close_small.js';
|
|
3
3
|
|
|
4
|
-
const pnAppBannerCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}
|
|
4
|
+
const pnAppBannerCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}pn-app-banner .pn-app-banner__wrapper{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:1rem;background-color:#f3f2f2;padding:1rem;margin:0 auto}pn-app-banner .pn-app-banner__sticky{position:relative;top:0;width:100%;z-index:999}pn-app-banner .icon-close:hover{cursor:pointer}pn-app-banner .pn-app-banner__icon{height:3.2rem}pn-app-banner .pn-app-banner__text{font-size:1.2rem;line-height:1}pn-app-banner .pn-app-banner__text span{font-weight:600}pn-app-banner .pn-app-banner__cta{margin-left:auto}pn-app-banner[data-is-closed=true]{display:none}";
|
|
5
5
|
const PnAppBannerStyle0 = pnAppBannerCss;
|
|
6
6
|
|
|
7
7
|
const PnAppBanner$1 = /*@__PURE__*/ proxyCustomElement(class PnAppBanner extends HTMLElement {
|
|
@@ -76,7 +76,7 @@ const PnAppBanner$1 = /*@__PURE__*/ proxyCustomElement(class PnAppBanner extends
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'd6b53d3d576cf6f396aa1fdf5abcf2b0882408fe', "data-is-closed": this.isClosed ? 'true' : 'false' }, h("div", { key: '818cd3305c07a737d834aea1594fd1742f505b98', class: "pn-app-banner__wrapper pn-app-banner__sticky" }, h("div", { key: '9e23680fbc7ef4c16c387680013c73b40b75ff27', class: "icon-close", onClick: this.handleOnClose }, h("pn-icon", { key: 'e9f70a02003fdcb1fc789e52dcbc6760a22979e2', icon: close_small, small: "false", color: "black" })), h("div", { key: '4938c67549bf714b3e5431f7dc7e08510a1ca3ea', class: "pn-app-banner__icon" }, h("svg", { key: '19374112ee8f80132ac8c1db8f7fd75dce9d936a', width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '11be415227a901b7452af08b09352d551368e60f', "clip-path": "url(#clip0_17800_45416)" }, h("path", { key: 'c0c385de6f3915fd93af38d003a3cbcc55ff7980', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#F18D8D" }), h("mask", { key: 'b18f1eab9c007c281944a029739afb6afe8be9d8', id: "mask0_17800_45416", style: { 'mask-type': 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "32", height: "32" }, h("path", { key: 'c169b44c33da0fa14ccf5aadeb8f0145ef83e142', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#0D234B" })), h("g", { key: '6436634beead4d763cf1a0f043243579bb6489c0', mask: "url(#mask0_17800_45416)" }, h("path", { key: '2cad4544f24a8d50e6267d25013db61a2cf2d6b2', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#0D234B" }), h("path", { key: '0f80801115db2dff80d535890c97202ec52eb25d', d: "M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z", fill: "url(#paint0_linear_17800_45416)" }), h("path", { key: '3c6eadce7ca42a6368ddfa1954ac645b4899ed49', d: "M2.09375 31.375C2.09375 15.2379 15.1754 2.15625 31.3125 2.15625H31.9844V31.9844H2.09998C2.09583 31.7819 2.09375 31.5788 2.09375 31.375Z", fill: "#00A0D6" }), h("g", { key: 'de7e86911aebfb75798a484283e30a7d439f74f6', filter: "url(#filter0_d_17800_45416)" }, h("path", { key: 'e73c9a879630971c9a493404b8b6b41813cf5550', d: "M7.40625 11.8062C7.40625 10.2661 7.40625 9.49603 7.70597 8.90778C7.96963 8.39034 8.39034 7.96963 8.90778 7.70597C9.49603 7.40625 10.2661 7.40625 11.8062 7.40625H20.1938C21.7339 7.40625 22.504 7.40625 23.0922 7.70597C23.6097 7.96963 24.0304 8.39034 24.294 8.90778C24.5938 9.49603 24.5938 10.2661 24.5938 11.8062V20.1938C24.5938 21.7339 24.5938 22.504 24.294 23.0922C24.0304 23.6097 23.6097 24.0304 23.0922 24.294C22.504 24.5938 21.7339 24.5938 20.1938 24.5938H11.8062C10.2661 24.5938 9.49603 24.5938 8.90778 24.294C8.39034 24.0304 7.96963 23.6097 7.70597 23.0922C7.40625 22.504 7.40625 21.7339 7.40625 20.1938V11.8062Z", fill: "#F1F7FA" }), h("path", { key: '7d56ed989a0ac79e36b60e1cd200dd296d453c71', opacity: "0.6", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.5938 10.0625C10.3176 10.0625 10.0938 10.2863 10.0938 10.5625C10.0938 10.8387 10.3176 11.0625 10.5938 11.0625H12.875C13.1512 11.0625 13.375 10.8387 13.375 10.5625C13.375 10.2863 13.1512 10.0625 12.875 10.0625H10.5938ZM10.5938 12.3125C10.3176 12.3125 10.0938 12.5363 10.0938 12.8125C10.0938 13.0887 10.3176 13.3125 10.5938 13.3125H15.3125C15.5887 13.3125 15.8125 13.0887 15.8125 12.8125C15.8125 12.5363 15.5887 12.3125 15.3125 12.3125H10.5938ZM10.0938 14.75C10.0938 14.4738 10.3176 14.25 10.5938 14.25H13.5625C13.8387 14.25 14.0625 14.4738 14.0625 14.75C14.0625 15.0262 13.8387 15.25 13.5625 15.25H10.5938C10.3176 15.25 10.0938 15.0262 10.0938 14.75ZM15.1875 14.25C14.9113 14.25 14.6875 14.4738 14.6875 14.75C14.6875 15.0262 14.9113 15.25 15.1875 15.25C15.4637 15.25 15.6875 15.0262 15.6875 14.75C15.6875 14.4738 15.4637 14.25 15.1875 14.25Z", fill: "#A5C0CA" }), h("path", { key: 'd03bf79fc649e5d107a10edb8467e0c9f2e7edb1', d: "M17.9375 10.5938C17.9375 10.3176 18.1613 10.0938 18.4375 10.0938H21.75C22.0262 10.0938 22.25 10.3176 22.25 10.5938C22.25 10.8699 22.0262 11.0938 21.75 11.0938H18.4375C18.1613 11.0938 17.9375 10.8699 17.9375 10.5938Z", fill: "#00A0D6" }), h("path", { key: 'e39dd86b261d4bef8b8744d6dcb870b71140e609', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.0938 19.3125C10.0938 18.8983 10.4295 18.5625 10.8438 18.5625C11.258 18.5625 11.5938 18.8983 11.5938 19.3125V21.25C11.5938 21.6642 11.258 22 10.8438 22C10.4295 22 10.0938 21.6642 10.0938 21.25V19.3125ZM19.3438 19.3125C19.3438 18.8983 19.6795 18.5625 20.0938 18.5625C20.508 18.5625 20.8438 18.8983 20.8438 19.3125V21.25C20.8438 21.6642 20.508 22 20.0938 22C19.6795 22 19.3438 21.6642 19.3438 21.25V19.3125ZM14.5938 18.5625C14.1795 18.5625 13.8438 18.8983 13.8438 19.3125V21.25C13.8438 21.6642 14.1795 22 14.5938 22C15.008 22 15.3438 21.6642 15.3438 21.25V19.3125C15.3438 18.8983 15.008 18.5625 14.5938 18.5625ZM12.5938 18.9375C12.5938 18.7304 12.7617 18.5625 12.9688 18.5625C13.1758 18.5625 13.3438 18.7304 13.3438 18.9375V21.625C13.3438 21.8321 13.1758 22 12.9688 22C12.7617 22 12.5938 21.8321 12.5938 21.625V18.9375ZM21.5938 18.5625C21.3867 18.5625 21.2188 18.7304 21.2188 18.9375V21.625C21.2188 21.8321 21.3867 22 21.5938 22C21.8008 22 21.9688 21.8321 21.9688 21.625V18.9375C21.9688 18.7304 21.8008 18.5625 21.5938 18.5625ZM17.5938 18.9375C17.5938 18.7304 17.7617 18.5625 17.9688 18.5625C18.1758 18.5625 18.3438 18.7304 18.3438 18.9375V21.625C18.3438 21.8321 18.1758 22 17.9688 22C17.7617 22 17.5938 21.8321 17.5938 21.625V18.9375ZM16.5938 18.5625C16.3176 18.5625 16.0938 18.7863 16.0938 19.0625V21.5C16.0938 21.7762 16.3176 22 16.5938 22C16.8699 22 17.0938 21.7762 17.0938 21.5V19.0625C17.0938 18.7863 16.8699 18.5625 16.5938 18.5625Z", fill: "#0D234B" })))), h("defs", { key: '6b40cc41616d8f555495800bf43b3c8b4b75df73' }, h("filter", { key: '392d4af5b89a0edccabafc9b3eed8cb8568b3a63', id: "filter0_d_17800_45416", x: "-52.5938", y: "-48.5938", width: "137.188", height: "137.188", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "sRGB" }, h("feFlood", { key: 'badc83a708f1a742139c02c6d2c894f5b884e710', "flood-opacity": "0", result: "BackgroundImageFix" }), h("feColorMatrix", { key: 'f0ef02afe01eaedcc7608d50862e2b9900cf678a', in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), h("feOffset", { key: '7cd299b9cea6301546f9222cbf149ed2f82a5345', dy: "4" }), h("feGaussianBlur", { key: '29ead62a93270b535fff94ed73bdaf409f2ef4f7', stdDeviation: "30" }), h("feColorMatrix", { key: '1f9c62a998b3ed36b310d3261a4b101caf22578c', type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" }), h("feBlend", { key: 'f2e6c3c72b36cf55978af1ade2c598e71f5bcb61', mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_17800_45416" }), h("feBlend", { key: 'ad0f7a0471459819ef3bd10516a3da41943c2595', mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_17800_45416", result: "shape" })), h("linearGradient", { key: 'e859e928fa22b43f534edb850df7b8bfc8c7159e', id: "paint0_linear_17800_45416", x1: "29.2305", y1: "44.3441", x2: "51.5694", y2: "15.1782", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '2c2b93afcce6646da4aaffb473f6795d848e3ea7', offset: "0.0800778", "stop-color": "#0D244C" }), h("stop", { key: 'c4a7c3a3bfa1f8b5bf7449b0cff4b5a0ae52f6d5', offset: "1", "stop-color": "#0D234B" })), h("clipPath", { key: '2e600b4d68462333c0aa72aa2cfaede7df99fe6c', id: "clip0_17800_45416" }, h("rect", { key: '2c01091242af965323b4805e7455869339b12bde', width: "32", height: "32", fill: "white" }))))), h("div", { key: '93e67c52d00c43d0b23fd293fccc88b705313bd7', class: "pn-app-banner__text" }, h("span", { key: 'a09c73e7a9ca03f53c716de2005d584551c6543d' }, this.appName), h("br", { key: '072a797cc4afed39892291343b7becc4d2018dd8' }), this.appDescription), h("div", { key: '14863470489a66dd0cf1ede3a0429eabcb3bd053', class: "pn-app-banner__cta" }, h("pn-button", { key: 'b0504b6b51d342db47e95eafb667cb18c253f199', small: true, href: this.storeLink }, this.ctaText)))));
|
|
80
80
|
}
|
|
81
81
|
static get style() { return PnAppBannerStyle0; }
|
|
82
82
|
}, [0, "pn-app-banner", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pn-app-banner.js","mappings":";;;AAAA,MAAM,cAAc,GAAG,49BAA49B,CAAC;AACp/B,0BAAe,cAAc;;MCMhBA,aAAW;;;;;;;;;wBAQO,KAAK;;uCAEC,IAAI;;;IAEvC,kBAAkB,GAAG,sBAAsB,C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gEAAS,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAC,oBAAoB,EAAC,MAAM,EAAC,gCAAgC,GAAG,EAC1F,gEAAS,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAC,eAAe,EAAC,GAAG,EAAC,gCAAgC,EAAC,MAAM,EAAC,OAAO,GAAG,CACzF,EACT,uEAAgB,EAAE,EAAC,2BAA2B,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,aAAa,EAAC,gBAAgB,IAC/H,6DAAM,MAAM,EAAC,WAAW,gBAAY,SAAS,GAAG,EAChD,6DAAM,MAAM,EAAC,GAAG,gBAAY,SAAS,GAAG,CACzB,EACjB,iEAAU,EAAE,EAAC,mBAAmB,IAC9B,6DAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,GAAG,CACnC,CACN,CACH,CACF,EACN,4DAAK,KAAK,EAAC,qBAAqB,IAC9B,+DAAO,IAAI,CAAC,OAAO,CAAQ,EAC3B,4DAAM,EACL,IAAI,CAAC,cAAc,CAChB,EACN,4DAAK,KAAK,EAAC,oBAAoB,IAC7B,kEAAW,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,IACzC,IAAI,CAAC,OAAO,CACH,CACR,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PnAppBanner"],"sources":["src/components/minor/pn-app-banner/pn-app-banner.scss?tag=pn-app-banner","src/components/minor/pn-app-banner/pn-app-banner.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-app-banner {\n .pn-app-banner__wrapper {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 1rem;\n\n background-color: $gray50;\n padding: 1rem;\n margin: 0 auto;\n }\n\n .pn-app-banner__sticky {\n position: relative;\n\n top: 0;\n width: 100%;\n\n z-index: 999;\n }\n\n .icon-close {\n &:hover {\n cursor: pointer;\n }\n }\n\n .pn-app-banner__icon {\n height: 3.2rem;\n }\n\n .pn-app-banner__text {\n font-size: 1.2rem;\n line-height: 1;\n\n span {\n font-weight: 600;\n }\n }\n\n .pn-app-banner__cta {\n margin-left: auto;\n }\n\n &[data-is-closed='true'] {\n display: none;\n }\n}\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\nimport { close_small } from 'pn-design-assets/pn-assets/icons.js';\n\n@Component({\n tag: 'pn-app-banner',\n styleUrl: 'pn-app-banner.scss',\n})\nexport class PnAppBanner {\n @Element() hostElement: HTMLElement;\n @Prop() appName: string;\n @Prop() appDescription: string;\n @Prop() ctaText: string;\n @Prop() appleStoreLink: string;\n @Prop() googleStoreLink: string;\n\n @State() isClosed: boolean = false;\n @State() storeLink: string;\n @State() isLocalStorageAvailable = true;\n\n CLOSED_STORAGE_KEY = 'SmartAppBannerClosed';\n CLOSED_COOKIE_EXPIRY_DAYS = 7;\n\n checkLocalStorage() {\n try {\n const testKey = '__test__';\n localStorage.setItem(testKey, testKey);\n localStorage.removeItem(testKey);\n } catch (e) {\n this.isLocalStorageAvailable = false;\n }\n }\n\n detectDeviceAndSetStoreLink() {\n const userAgent = navigator.userAgent;\n\n if (userAgent.match(/Android/i)) {\n this.storeLink = this.googleStoreLink;\n } else if (userAgent.match(/iPhone|iPad|iPod/i)) {\n this.storeLink = this.appleStoreLink;\n } else {\n this.storeLink = null;\n this.isClosed = true; // -> data-is-closed = true\n }\n }\n\n handleOnClose = () => {\n this.isClosed = true;\n\n // Handle storage based on availability\n if (this.isLocalStorageAvailable) {\n localStorage.setItem(this.CLOSED_STORAGE_KEY, 'true');\n } else {\n const expirationDate = new Date();\n expirationDate.setDate(expirationDate.getDate() + this.CLOSED_COOKIE_EXPIRY_DAYS);\n document.cookie = `${this.CLOSED_STORAGE_KEY}=true; expires=${expirationDate.toUTCString()}`;\n }\n };\n\n componentWillLoad() {\n this.checkLocalStorage();\n // Handle storage based on availability\n if (this.isLocalStorageAvailable) {\n this.isClosed = localStorage.getItem(this.CLOSED_STORAGE_KEY) === 'true';\n } else {\n const cookies = document.cookie.split(';');\n for (const cookie of cookies) {\n const [name, value] = cookie.trim().split('=');\n if (name === this.CLOSED_STORAGE_KEY && value === 'true') {\n this.isClosed = true;\n break;\n }\n }\n }\n\n if (!this.isClosed) {\n this.detectDeviceAndSetStoreLink();\n }\n }\n\n render() {\n return (\n <Host data-is-closed={this.isClosed ? 'true' : 'false'}>\n <div class=\"pn-app-banner__wrapper pn-app-banner__sticky\">\n <div class=\"icon-close\" onClick={this.handleOnClose}>\n <pn-icon icon={close_small} small=\"false\" color=\"black\" />\n </div>\n <div class=\"pn-app-banner__icon\">\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_17800_45416)\">\n <path\n d=\"M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z\"\n fill=\"#F18D8D\"\n />\n <mask id=\"mask0_17800_45416\" style={{ 'mask-type': 'alpha' }} maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"32\" height=\"32\">\n <path\n d=\"M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z\"\n fill=\"#0D234B\"\n />\n </mask>\n <g mask=\"url(#mask0_17800_45416)\">\n <path\n d=\"M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z\"\n fill=\"#0D234B\"\n />\n <path d=\"M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z\" fill=\"url(#paint0_linear_17800_45416)\" />\n <path\n d=\"M2.09375 31.375C2.09375 15.2379 15.1754 2.15625 31.3125 2.15625H31.9844V31.9844H2.09998C2.09583 31.7819 2.09375 31.5788 2.09375 31.375Z\"\n fill=\"#00A0D6\"\n />\n <g filter=\"url(#filter0_d_17800_45416)\">\n <path\n d=\"M7.40625 11.8062C7.40625 10.2661 7.40625 9.49603 7.70597 8.90778C7.96963 8.39034 8.39034 7.96963 8.90778 7.70597C9.49603 7.40625 10.2661 7.40625 11.8062 7.40625H20.1938C21.7339 7.40625 22.504 7.40625 23.0922 7.70597C23.6097 7.96963 24.0304 8.39034 24.294 8.90778C24.5938 9.49603 24.5938 10.2661 24.5938 11.8062V20.1938C24.5938 21.7339 24.5938 22.504 24.294 23.0922C24.0304 23.6097 23.6097 24.0304 23.0922 24.294C22.504 24.5938 21.7339 24.5938 20.1938 24.5938H11.8062C10.2661 24.5938 9.49603 24.5938 8.90778 24.294C8.39034 24.0304 7.96963 23.6097 7.70597 23.0922C7.40625 22.504 7.40625 21.7339 7.40625 20.1938V11.8062Z\"\n fill=\"#F1F7FA\"\n />\n <path\n opacity=\"0.6\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.5938 10.0625C10.3176 10.0625 10.0938 10.2863 10.0938 10.5625C10.0938 10.8387 10.3176 11.0625 10.5938 11.0625H12.875C13.1512 11.0625 13.375 10.8387 13.375 10.5625C13.375 10.2863 13.1512 10.0625 12.875 10.0625H10.5938ZM10.5938 12.3125C10.3176 12.3125 10.0938 12.5363 10.0938 12.8125C10.0938 13.0887 10.3176 13.3125 10.5938 13.3125H15.3125C15.5887 13.3125 15.8125 13.0887 15.8125 12.8125C15.8125 12.5363 15.5887 12.3125 15.3125 12.3125H10.5938ZM10.0938 14.75C10.0938 14.4738 10.3176 14.25 10.5938 14.25H13.5625C13.8387 14.25 14.0625 14.4738 14.0625 14.75C14.0625 15.0262 13.8387 15.25 13.5625 15.25H10.5938C10.3176 15.25 10.0938 15.0262 10.0938 14.75ZM15.1875 14.25C14.9113 14.25 14.6875 14.4738 14.6875 14.75C14.6875 15.0262 14.9113 15.25 15.1875 15.25C15.4637 15.25 15.6875 15.0262 15.6875 14.75C15.6875 14.4738 15.4637 14.25 15.1875 14.25Z\"\n fill=\"#A5C0CA\"\n />\n <path\n d=\"M17.9375 10.5938C17.9375 10.3176 18.1613 10.0938 18.4375 10.0938H21.75C22.0262 10.0938 22.25 10.3176 22.25 10.5938C22.25 10.8699 22.0262 11.0938 21.75 11.0938H18.4375C18.1613 11.0938 17.9375 10.8699 17.9375 10.5938Z\"\n fill=\"#00A0D6\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.0938 19.3125C10.0938 18.8983 10.4295 18.5625 10.8438 18.5625C11.258 18.5625 11.5938 18.8983 11.5938 19.3125V21.25C11.5938 21.6642 11.258 22 10.8438 22C10.4295 22 10.0938 21.6642 10.0938 21.25V19.3125ZM19.3438 19.3125C19.3438 18.8983 19.6795 18.5625 20.0938 18.5625C20.508 18.5625 20.8438 18.8983 20.8438 19.3125V21.25C20.8438 21.6642 20.508 22 20.0938 22C19.6795 22 19.3438 21.6642 19.3438 21.25V19.3125ZM14.5938 18.5625C14.1795 18.5625 13.8438 18.8983 13.8438 19.3125V21.25C13.8438 21.6642 14.1795 22 14.5938 22C15.008 22 15.3438 21.6642 15.3438 21.25V19.3125C15.3438 18.8983 15.008 18.5625 14.5938 18.5625ZM12.5938 18.9375C12.5938 18.7304 12.7617 18.5625 12.9688 18.5625C13.1758 18.5625 13.3438 18.7304 13.3438 18.9375V21.625C13.3438 21.8321 13.1758 22 12.9688 22C12.7617 22 12.5938 21.8321 12.5938 21.625V18.9375ZM21.5938 18.5625C21.3867 18.5625 21.2188 18.7304 21.2188 18.9375V21.625C21.2188 21.8321 21.3867 22 21.5938 22C21.8008 22 21.9688 21.8321 21.9688 21.625V18.9375C21.9688 18.7304 21.8008 18.5625 21.5938 18.5625ZM17.5938 18.9375C17.5938 18.7304 17.7617 18.5625 17.9688 18.5625C18.1758 18.5625 18.3438 18.7304 18.3438 18.9375V21.625C18.3438 21.8321 18.1758 22 17.9688 22C17.7617 22 17.5938 21.8321 17.5938 21.625V18.9375ZM16.5938 18.5625C16.3176 18.5625 16.0938 18.7863 16.0938 19.0625V21.5C16.0938 21.7762 16.3176 22 16.5938 22C16.8699 22 17.0938 21.7762 17.0938 21.5V19.0625C17.0938 18.7863 16.8699 18.5625 16.5938 18.5625Z\"\n fill=\"#0D234B\"\n />\n </g>\n </g>\n </g>\n <defs>\n <filter id=\"filter0_d_17800_45416\" x=\"-52.5938\" y=\"-48.5938\" width=\"137.188\" height=\"137.188\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\" />\n <feOffset dy=\"4\" />\n <feGaussianBlur stdDeviation=\"30\" />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0\" />\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_17800_45416\" />\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_17800_45416\" result=\"shape\" />\n </filter>\n <linearGradient id=\"paint0_linear_17800_45416\" x1=\"29.2305\" y1=\"44.3441\" x2=\"51.5694\" y2=\"15.1782\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0.0800778\" stop-color=\"#0D244C\" />\n <stop offset=\"1\" stop-color=\"#0D234B\" />\n </linearGradient>\n <clipPath id=\"clip0_17800_45416\">\n <rect width=\"32\" height=\"32\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n </div>\n <div class=\"pn-app-banner__text\">\n <span>{this.appName}</span>\n <br />\n {this.appDescription}\n </div>\n <div class=\"pn-app-banner__cta\">\n <pn-button small={true} href={this.storeLink}>\n {this.ctaText}\n </pn-button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"pn-app-banner.js","mappings":";;;AAAA,MAAM,cAAc,GAAG,mpBAAmpB,CAAC;AAC3qB,0BAAe,cAAc;;MCMhBA,aAAW;;;;;;;;;wBAQO,KAAK;;uCAEC,IAAI;;;IAEvC,kBAAkB,GAAG,sBAAsB,CAAC;IAC5C,yBAAyB,GAAG,CAAC,CAAC;IAE9B,iBAAiB;QACf,IAAI;YACF,MAAM,OAAO,GAAG,UAAU,CAAC;YAC3B,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACvC,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SAClC;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC;SACtC;KACF;IAED,2BAA2B;QACzB,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QAEtC,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;YAC/B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC;SACvC;aAAM,IAAI,SAAS,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE;YAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC;SACtC;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;SACtB;KACF;IAED,aAAa,GAAG;QACd,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;;QAGrB,IAAI,IAAI,CAAC,uBAAuB,EAAE;YAChC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;SACvD;aAAM;YACL,MAAM,cAAc,GAAG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;;;;;;;;;;;;;;;","names":["PnAppBanner"],"sources":["src/components/minor/pn-app-banner/pn-app-banner.scss?tag=pn-app-banner","src/components/minor/pn-app-banner/pn-app-banner.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-app-banner {\n .pn-app-banner__wrapper {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 1rem;\n\n background-color: $gray50;\n padding: 1rem;\n margin: 0 auto;\n }\n\n .pn-app-banner__sticky {\n position: relative;\n\n top: 0;\n width: 100%;\n\n z-index: 999;\n }\n\n .icon-close {\n &:hover {\n cursor: pointer;\n }\n }\n\n .pn-app-banner__icon {\n height: 3.2rem;\n }\n\n .pn-app-banner__text {\n font-size: 1.2rem;\n line-height: 1;\n\n span {\n font-weight: 600;\n }\n }\n\n .pn-app-banner__cta {\n margin-left: auto;\n }\n\n &[data-is-closed='true'] {\n display: none;\n }\n}\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\nimport { close_small } from 'pn-design-assets/pn-assets/icons.js';\n\n@Component({\n tag: 'pn-app-banner',\n styleUrl: 'pn-app-banner.scss',\n})\nexport class PnAppBanner {\n @Element() hostElement: HTMLElement;\n @Prop() appName: string;\n @Prop() appDescription: string;\n @Prop() ctaText: string;\n @Prop() appleStoreLink: string;\n @Prop() googleStoreLink: string;\n\n @State() isClosed: boolean = false;\n @State() storeLink: string;\n @State() isLocalStorageAvailable = true;\n\n CLOSED_STORAGE_KEY = 'SmartAppBannerClosed';\n CLOSED_COOKIE_EXPIRY_DAYS = 7;\n\n checkLocalStorage() {\n try {\n const testKey = '__test__';\n localStorage.setItem(testKey, testKey);\n localStorage.removeItem(testKey);\n } catch (e) {\n this.isLocalStorageAvailable = false;\n }\n }\n\n detectDeviceAndSetStoreLink() {\n const userAgent = navigator.userAgent;\n\n if (userAgent.match(/Android/i)) {\n this.storeLink = this.googleStoreLink;\n } else if (userAgent.match(/iPhone|iPad|iPod/i)) {\n this.storeLink = this.appleStoreLink;\n } else {\n this.storeLink = null;\n this.isClosed = true; // -> data-is-closed = true\n }\n }\n\n handleOnClose = () => {\n this.isClosed = true;\n\n // Handle storage based on availability\n if (this.isLocalStorageAvailable) {\n localStorage.setItem(this.CLOSED_STORAGE_KEY, 'true');\n } else {\n const expirationDate = new Date();\n expirationDate.setDate(expirationDate.getDate() + this.CLOSED_COOKIE_EXPIRY_DAYS);\n document.cookie = `${this.CLOSED_STORAGE_KEY}=true; expires=${expirationDate.toUTCString()}`;\n }\n };\n\n componentWillLoad() {\n this.checkLocalStorage();\n // Handle storage based on availability\n if (this.isLocalStorageAvailable) {\n this.isClosed = localStorage.getItem(this.CLOSED_STORAGE_KEY) === 'true';\n } else {\n const cookies = document.cookie.split(';');\n for (const cookie of cookies) {\n const [name, value] = cookie.trim().split('=');\n if (name === this.CLOSED_STORAGE_KEY && value === 'true') {\n this.isClosed = true;\n break;\n }\n }\n }\n\n if (!this.isClosed) {\n this.detectDeviceAndSetStoreLink();\n }\n }\n\n render() {\n return (\n <Host data-is-closed={this.isClosed ? 'true' : 'false'}>\n <div class=\"pn-app-banner__wrapper pn-app-banner__sticky\">\n <div class=\"icon-close\" onClick={this.handleOnClose}>\n <pn-icon icon={close_small} small=\"false\" color=\"black\" />\n </div>\n <div class=\"pn-app-banner__icon\">\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_17800_45416)\">\n <path\n d=\"M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z\"\n fill=\"#F18D8D\"\n />\n <mask id=\"mask0_17800_45416\" style={{ 'mask-type': 'alpha' }} maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"32\" height=\"32\">\n <path\n d=\"M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z\"\n fill=\"#0D234B\"\n />\n </mask>\n <g mask=\"url(#mask0_17800_45416)\">\n <path\n d=\"M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z\"\n fill=\"#0D234B\"\n />\n <path d=\"M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z\" fill=\"url(#paint0_linear_17800_45416)\" />\n <path\n d=\"M2.09375 31.375C2.09375 15.2379 15.1754 2.15625 31.3125 2.15625H31.9844V31.9844H2.09998C2.09583 31.7819 2.09375 31.5788 2.09375 31.375Z\"\n fill=\"#00A0D6\"\n />\n <g filter=\"url(#filter0_d_17800_45416)\">\n <path\n d=\"M7.40625 11.8062C7.40625 10.2661 7.40625 9.49603 7.70597 8.90778C7.96963 8.39034 8.39034 7.96963 8.90778 7.70597C9.49603 7.40625 10.2661 7.40625 11.8062 7.40625H20.1938C21.7339 7.40625 22.504 7.40625 23.0922 7.70597C23.6097 7.96963 24.0304 8.39034 24.294 8.90778C24.5938 9.49603 24.5938 10.2661 24.5938 11.8062V20.1938C24.5938 21.7339 24.5938 22.504 24.294 23.0922C24.0304 23.6097 23.6097 24.0304 23.0922 24.294C22.504 24.5938 21.7339 24.5938 20.1938 24.5938H11.8062C10.2661 24.5938 9.49603 24.5938 8.90778 24.294C8.39034 24.0304 7.96963 23.6097 7.70597 23.0922C7.40625 22.504 7.40625 21.7339 7.40625 20.1938V11.8062Z\"\n fill=\"#F1F7FA\"\n />\n <path\n opacity=\"0.6\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.5938 10.0625C10.3176 10.0625 10.0938 10.2863 10.0938 10.5625C10.0938 10.8387 10.3176 11.0625 10.5938 11.0625H12.875C13.1512 11.0625 13.375 10.8387 13.375 10.5625C13.375 10.2863 13.1512 10.0625 12.875 10.0625H10.5938ZM10.5938 12.3125C10.3176 12.3125 10.0938 12.5363 10.0938 12.8125C10.0938 13.0887 10.3176 13.3125 10.5938 13.3125H15.3125C15.5887 13.3125 15.8125 13.0887 15.8125 12.8125C15.8125 12.5363 15.5887 12.3125 15.3125 12.3125H10.5938ZM10.0938 14.75C10.0938 14.4738 10.3176 14.25 10.5938 14.25H13.5625C13.8387 14.25 14.0625 14.4738 14.0625 14.75C14.0625 15.0262 13.8387 15.25 13.5625 15.25H10.5938C10.3176 15.25 10.0938 15.0262 10.0938 14.75ZM15.1875 14.25C14.9113 14.25 14.6875 14.4738 14.6875 14.75C14.6875 15.0262 14.9113 15.25 15.1875 15.25C15.4637 15.25 15.6875 15.0262 15.6875 14.75C15.6875 14.4738 15.4637 14.25 15.1875 14.25Z\"\n fill=\"#A5C0CA\"\n />\n <path\n d=\"M17.9375 10.5938C17.9375 10.3176 18.1613 10.0938 18.4375 10.0938H21.75C22.0262 10.0938 22.25 10.3176 22.25 10.5938C22.25 10.8699 22.0262 11.0938 21.75 11.0938H18.4375C18.1613 11.0938 17.9375 10.8699 17.9375 10.5938Z\"\n fill=\"#00A0D6\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.0938 19.3125C10.0938 18.8983 10.4295 18.5625 10.8438 18.5625C11.258 18.5625 11.5938 18.8983 11.5938 19.3125V21.25C11.5938 21.6642 11.258 22 10.8438 22C10.4295 22 10.0938 21.6642 10.0938 21.25V19.3125ZM19.3438 19.3125C19.3438 18.8983 19.6795 18.5625 20.0938 18.5625C20.508 18.5625 20.8438 18.8983 20.8438 19.3125V21.25C20.8438 21.6642 20.508 22 20.0938 22C19.6795 22 19.3438 21.6642 19.3438 21.25V19.3125ZM14.5938 18.5625C14.1795 18.5625 13.8438 18.8983 13.8438 19.3125V21.25C13.8438 21.6642 14.1795 22 14.5938 22C15.008 22 15.3438 21.6642 15.3438 21.25V19.3125C15.3438 18.8983 15.008 18.5625 14.5938 18.5625ZM12.5938 18.9375C12.5938 18.7304 12.7617 18.5625 12.9688 18.5625C13.1758 18.5625 13.3438 18.7304 13.3438 18.9375V21.625C13.3438 21.8321 13.1758 22 12.9688 22C12.7617 22 12.5938 21.8321 12.5938 21.625V18.9375ZM21.5938 18.5625C21.3867 18.5625 21.2188 18.7304 21.2188 18.9375V21.625C21.2188 21.8321 21.3867 22 21.5938 22C21.8008 22 21.9688 21.8321 21.9688 21.625V18.9375C21.9688 18.7304 21.8008 18.5625 21.5938 18.5625ZM17.5938 18.9375C17.5938 18.7304 17.7617 18.5625 17.9688 18.5625C18.1758 18.5625 18.3438 18.7304 18.3438 18.9375V21.625C18.3438 21.8321 18.1758 22 17.9688 22C17.7617 22 17.5938 21.8321 17.5938 21.625V18.9375ZM16.5938 18.5625C16.3176 18.5625 16.0938 18.7863 16.0938 19.0625V21.5C16.0938 21.7762 16.3176 22 16.5938 22C16.8699 22 17.0938 21.7762 17.0938 21.5V19.0625C17.0938 18.7863 16.8699 18.5625 16.5938 18.5625Z\"\n fill=\"#0D234B\"\n />\n </g>\n </g>\n </g>\n <defs>\n <filter id=\"filter0_d_17800_45416\" x=\"-52.5938\" y=\"-48.5938\" width=\"137.188\" height=\"137.188\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\" />\n <feOffset dy=\"4\" />\n <feGaussianBlur stdDeviation=\"30\" />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0\" />\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_17800_45416\" />\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_17800_45416\" result=\"shape\" />\n </filter>\n <linearGradient id=\"paint0_linear_17800_45416\" x1=\"29.2305\" y1=\"44.3441\" x2=\"51.5694\" y2=\"15.1782\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0.0800778\" stop-color=\"#0D244C\" />\n <stop offset=\"1\" stop-color=\"#0D234B\" />\n </linearGradient>\n <clipPath id=\"clip0_17800_45416\">\n <rect width=\"32\" height=\"32\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n </div>\n <div class=\"pn-app-banner__text\">\n <span>{this.appName}</span>\n <br />\n {this.appDescription}\n </div>\n <div class=\"pn-app-banner__cta\">\n <pn-button small={true} href={this.storeLink}>\n {this.ctaText}\n </pn-button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const pnBonusProgressbarLevelCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}
|
|
3
|
+
const pnBonusProgressbarLevelCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}pn-bonus-progressbar-level{position:absolute;width:0.1rem;left:50%}pn-bonus-progressbar-level::after{content:\"\";width:0.1rem;position:absolute;left:0;border-left:1px dashed #9b1c2e;top:50%;transform:translateY(-50%);height:3rem}pn-bonus-progressbar-level:not([current]):nth-child(odd)::after{height:7rem;margin-top:0.6rem}.progressbar-level-percentage{font-size:0.75em;position:absolute;left:50%;transform:translateX(-50%);top:-3.2rem}[current]>.progressbar-level-percentage{display:none}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-percentage{top:-4.8rem}.progressbar-level-value{font-size:0.75em;white-space:nowrap;position:absolute;left:50%;transform:translateX(-50%);top:2.3rem}[current]>.progressbar-level-value{top:-3.2rem}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-value{top:4.2rem}";
|
|
4
4
|
const PnBonusProgressbarLevelStyle0 = pnBonusProgressbarLevelCss;
|
|
5
5
|
|
|
6
6
|
const PnBonusProgressbarLevel$1 = /*@__PURE__*/ proxyCustomElement(class PnBonusProgressbarLevel extends HTMLElement {
|