@postnord/pn-marketweb-components 3.5.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/FetchHelper-2d4c697c.js +85 -0
- package/cjs/FetchHelper-2d4c697c.js.map +1 -0
- package/cjs/HeadingTag-19376e1f.js +12 -0
- package/cjs/HeadingTag-19376e1f.js.map +1 -0
- package/cjs/LocalStorageService-e1ee3fac.js +66 -0
- package/cjs/LocalStorageService-e1ee3fac.js.map +1 -0
- package/cjs/{FetchHelper-e951824f.js → MarketWebContextService-0fdc43c8.js} +1 -82
- package/cjs/MarketWebContextService-0fdc43c8.js.map +1 -0
- package/cjs/alert_exclamation_circle-24f29a5b.js +8 -0
- package/cjs/alert_exclamation_circle-24f29a5b.js.map +1 -0
- package/cjs/angle_up-049ec1d8.js +12 -0
- package/cjs/angle_up-049ec1d8.js.map +1 -0
- package/cjs/close-9e014a80.js +8 -0
- package/cjs/close-9e014a80.js.map +1 -0
- package/cjs/{index-1d8c9211.js → index-4067c6a5.js} +2 -2
- package/cjs/{index-1d8c9211.js.map → index-4067c6a5.js.map} +1 -1
- package/cjs/{index-34e1c673.js → index-b02670c2.js} +65 -8
- package/cjs/index-b02670c2.js.map +1 -0
- package/cjs/index.cjs.js +1 -1
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-address-autofill.cjs.entry.js +51 -75
- package/cjs/pn-address-autofill.cjs.entry.js.map +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +2 -2
- package/cjs/pn-animated-tile.cjs.entry.js.map +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +3 -3
- package/cjs/pn-app-banner.cjs.entry.js.map +1 -1
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +2 -2
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js.map +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
- package/cjs/pn-bonus-progressbar.cjs.entry.js.map +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +3 -3
- package/cjs/pn-breakpoints.cjs.entry.js.map +1 -1
- package/cjs/pn-chart.cjs.entry.js +2 -2
- package/cjs/pn-chart.cjs.entry.js.map +1 -1
- package/cjs/pn-charts-card.cjs.entry.js +2 -2
- package/cjs/pn-charts-card.cjs.entry.js.map +1 -1
- package/cjs/pn-chat-message_2.cjs.entry.js +346 -0
- package/cjs/pn-chat-message_2.cjs.entry.js.map +1 -0
- package/cjs/pn-chat.cjs.entry.js +474 -0
- package/cjs/pn-chat.cjs.entry.js.map +1 -0
- package/cjs/pn-chat.service-eaf6ed50.js +157 -0
- package/cjs/pn-chat.service-eaf6ed50.js.map +1 -0
- package/cjs/pn-choice-button.cjs.entry.js +2 -2
- package/cjs/pn-choice-button.cjs.entry.js.map +1 -1
- package/cjs/pn-cta-block.cjs.entry.js +2 -2
- package/cjs/pn-cta-block.cjs.entry.js.map +1 -1
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +3 -3
- package/cjs/pn-customernumber-selector-option.cjs.entry.js.map +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +4 -9
- package/cjs/pn-customernumber-selector.cjs.entry.js.map +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +2 -2
- package/cjs/pn-date-and-time.cjs.entry.js.map +1 -1
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +20 -8
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js.map +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +2 -2
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js.map +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +2 -2
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js.map +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +2 -2
- package/cjs/pn-filter-checkbox.cjs.entry.js.map +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +5 -5
- package/cjs/pn-find-price-result.cjs.entry.js.map +1 -1
- package/cjs/{pn-find-price-store-051e931b.js → pn-find-price-store-0c8256c7.js} +2 -2
- package/cjs/{pn-find-price-store-051e931b.js.map → pn-find-price-store-0c8256c7.js.map} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +6 -6
- package/cjs/pn-find-price.cjs.entry.js.map +1 -1
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +5 -5
- package/cjs/pn-find-service-and-price-result.cjs.entry.js.map +1 -1
- package/cjs/{pn-find-service-and-price-store-3cec3d31.js → pn-find-service-and-price-store-13f060e0.js} +2 -2
- package/cjs/{pn-find-service-and-price-store-3cec3d31.js.map → pn-find-service-and-price-store-13f060e0.js.map} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +5 -5
- package/cjs/pn-find-service-and-price.cjs.entry.js.map +1 -1
- package/cjs/pn-hero-block-international.cjs.entry.js +3 -3
- package/cjs/pn-hero-block-international.cjs.entry.js.map +1 -1
- package/cjs/pn-language-selector_9.cjs.entry.js +25 -27
- package/cjs/pn-language-selector_9.cjs.entry.js.map +1 -1
- package/cjs/pn-level-up-modal.cjs.entry.js +77 -0
- package/cjs/pn-level-up-modal.cjs.entry.js.map +1 -0
- package/cjs/pn-level-up.cjs.entry.js +139 -0
- package/cjs/pn-level-up.cjs.entry.js.map +1 -0
- package/cjs/pn-level-up.service-0e8e67c2.js +71 -0
- package/cjs/pn-level-up.service-0e8e67c2.js.map +1 -0
- package/cjs/pn-line-shape.cjs.entry.js +2 -2
- package/cjs/pn-line-shape.cjs.entry.js.map +1 -1
- package/cjs/pn-link-list.cjs.entry.js +3 -3
- package/cjs/pn-link-list.cjs.entry.js.map +1 -1
- package/cjs/pn-mainnav-link.cjs.entry.js +5 -5
- package/cjs/pn-mainnav-link.cjs.entry.js.map +1 -1
- package/cjs/{pn-mainnav-store-1a8153fd.js → pn-mainnav-store-5732f3ca.js} +2 -2
- package/cjs/{pn-mainnav-store-1a8153fd.js.map → pn-mainnav-store-5732f3ca.js.map} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-icon.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-icon.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-input.cjs.entry.js +4 -6
- package/cjs/pn-marketweb-input.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-search.cjs.entry.js +6 -5
- package/cjs/pn-marketweb-search.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +7 -10
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js.map +1 -1
- package/cjs/{pn-marketweb-siteheader-login-button_5.cjs.entry.js → pn-marketweb-siteheader-login-button_4.cjs.entry.js} +8 -26
- package/cjs/pn-marketweb-siteheader-login-button_4.cjs.entry.js.map +1 -0
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +4 -4
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js +25 -0
- package/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js.map +1 -0
- package/cjs/{pn-marketweb-siteheader-store-75853609.js → pn-marketweb-siteheader-store-ce9d9ac7.js} +2 -2
- package/cjs/{pn-marketweb-siteheader-store-75853609.js.map → pn-marketweb-siteheader-store-ce9d9ac7.js.map} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +11 -10
- package/cjs/pn-marketweb-siteheader.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-table.cjs.entry.js +459 -0
- package/cjs/pn-marketweb-table.cjs.entry.js.map +1 -0
- package/cjs/pn-media-block.cjs.entry.js +6 -6
- package/cjs/pn-media-block.cjs.entry.js.map +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +2 -2
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js.map +1 -1
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +2 -2
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js.map +1 -1
- package/cjs/pn-multiple-input.cjs.entry.js +1 -1
- package/cjs/pn-parcel-tracker.cjs.entry.js +2 -2
- package/cjs/pn-parcel-tracker.cjs.entry.js.map +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +3 -3
- package/cjs/pn-pex-pricefinder.cjs.entry.js.map +1 -1
- package/cjs/pn-play-on-scroll.cjs.entry.js +1 -1
- package/cjs/pn-product-card_3.cjs.entry.js +5 -5
- package/cjs/pn-product-card_3.cjs.entry.js.map +1 -1
- package/cjs/pn-product-pricelist-result.cjs.entry.js +4 -4
- package/cjs/pn-product-pricelist-result.cjs.entry.js.map +1 -1
- package/cjs/pn-product-pricelist.cjs.entry.js +6 -6
- package/cjs/pn-product-pricelist.cjs.entry.js.map +1 -1
- package/cjs/pn-product-tile-info_2.cjs.entry.js +4 -4
- package/cjs/pn-product-tile-info_2.cjs.entry.js.map +1 -1
- package/cjs/pn-product-tile.cjs.entry.js +3 -3
- package/cjs/pn-product-tile.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +3 -3
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-modal-profile.cjs.entry.js +6 -6
- package/cjs/pn-profile-modal-profile.cjs.entry.js.map +1 -1
- package/cjs/{pn-profile-modal-store-3b6fea24.js → pn-profile-modal-store-16f8092a.js} +2 -2
- package/cjs/{pn-profile-modal-store-3b6fea24.js.map → pn-profile-modal-store-16f8092a.js.map} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +5 -5
- package/cjs/pn-profile-modal-type.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-modal.cjs.entry.js +5 -5
- package/cjs/pn-profile-modal.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-selector-option.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector-option.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector.cjs.entry.js.map +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +3 -3
- package/cjs/pn-proxio-findprice-result.cjs.entry.js.map +1 -1
- package/cjs/pn-proxio-findprice.cjs.entry.js +9 -8
- package/cjs/pn-proxio-findprice.cjs.entry.js.map +1 -1
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +6 -5
- package/cjs/pn-proxio-pricegroup.cjs.entry.js.map +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +8 -8
- package/cjs/pn-proxio-productcard_4.cjs.entry.js.map +1 -1
- package/cjs/pn-qr-code-generator.cjs.entry.js +2945 -0
- package/cjs/pn-qr-code-generator.cjs.entry.js.map +1 -0
- package/cjs/pn-quick-cta.cjs.entry.js +2 -2
- package/cjs/pn-quick-cta.cjs.entry.js.map +1 -1
- package/cjs/pn-quote-card.cjs.entry.js +2 -2
- package/cjs/pn-quote-card.cjs.entry.js.map +1 -1
- package/cjs/pn-scroll_2.cjs.entry.js +2 -2
- package/cjs/pn-scroll_2.cjs.entry.js.map +1 -1
- package/cjs/pn-search.cjs.entry.js +54 -0
- package/cjs/pn-search.cjs.entry.js.map +1 -0
- package/cjs/pn-share-item.cjs.entry.js +2 -2
- package/cjs/pn-share-item.cjs.entry.js.map +1 -1
- package/cjs/pn-share.cjs.entry.js +2 -2
- package/cjs/pn-share.cjs.entry.js.map +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +5 -5
- package/cjs/pn-sidenav-level.cjs.entry.js.map +1 -1
- package/cjs/pn-sidenav-link.cjs.entry.js +5 -5
- package/cjs/pn-sidenav-link.cjs.entry.js.map +1 -1
- package/cjs/{pn-sidenav-store-cf9c4996.js → pn-sidenav-store-236c8806.js} +2 -2
- package/cjs/{pn-sidenav-store-cf9c4996.js.map → pn-sidenav-store-236c8806.js.map} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +5 -5
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js.map +1 -1
- package/cjs/pn-sidenav.cjs.entry.js +5 -5
- package/cjs/pn-sidenav.cjs.entry.js.map +1 -1
- package/cjs/pn-site-footer_3.cjs.entry.js +7 -7
- package/cjs/pn-site-footer_3.cjs.entry.js.map +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +2 -2
- package/cjs/pn-spotlight.cjs.entry.js.map +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +2 -2
- package/cjs/pn-stats-info-data.cjs.entry.js.map +1 -1
- package/cjs/pn-stats-info.cjs.entry.js +2 -2
- package/cjs/pn-stats-info.cjs.entry.js.map +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +5 -9
- package/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
- package/cjs/pn-titletag.cjs.entry.js +3 -3
- package/cjs/pn-titletag.cjs.entry.js.map +1 -1
- package/cjs/pn-usp-promoter.cjs.entry.js +3 -3
- package/cjs/pn-usp-promoter.cjs.entry.js.map +1 -1
- package/cjs/pn-usp-simple.cjs.entry.js +56 -0
- package/cjs/pn-usp-simple.cjs.entry.js.map +1 -0
- package/collection/collection-manifest.json +10 -1
- package/collection/components/animation/pn-animated-tile/pn-animated-tile.css +25 -0
- package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.css +25 -0
- package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.css +25 -0
- package/collection/components/cards/pn-quote-card/pn-quote-card.css +25 -0
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +25 -0
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +8 -11
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.js.map +1 -1
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.stories.js +3 -3
- package/collection/components/charts/pn-chart/pn-chart.css +25 -0
- package/collection/components/charts/pn-charts-card/pn-charts-card.css +25 -0
- package/collection/components/cta/pn-cta-block/pn-cta-block.css +25 -0
- package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.css +25 -0
- package/collection/components/cta/pn-quick-cta/pn-quick-cta.css +25 -0
- package/collection/components/cta/pn-share/pn-share-item.css +25 -0
- package/collection/components/cta/pn-share/pn-share.css +25 -0
- package/collection/components/cta/pn-spotlight/pn-spotlight.css +25 -0
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.css +25 -0
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info.css +25 -0
- package/collection/components/input/pn-address-autofill/pn-address-autofill.css +31 -1
- package/collection/components/input/pn-address-autofill/pn-address-autofill.js +58 -68
- package/collection/components/input/pn-address-autofill/pn-address-autofill.js.map +1 -1
- package/collection/components/input/pn-address-autofill/pn-address-autofill.stories.js +2 -1
- package/collection/components/input/pn-address-autofill/translations.js +6 -3
- package/collection/components/input/pn-address-autofill/translations.js.map +1 -1
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.css +25 -0
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.css +25 -0
- package/collection/components/input/pn-choice-button/pn-choice-button.css +25 -0
- package/collection/components/input/pn-date-and-time/pn-date-and-time.css +25 -0
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.css +25 -0
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +18 -6
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js.map +1 -1
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.css +25 -0
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.css +25 -0
- package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.css +25 -0
- package/collection/components/input/pn-marketweb-input/pn-marketweb-input.css +25 -0
- package/collection/components/input/pn-marketweb-search/pn-marketweb-search.css +25 -0
- package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +4 -3
- package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js.map +1 -1
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.css +25 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.css +25 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.css +50 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +1 -1
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +1 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +1 -37
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +4 -4
- package/collection/components/media/pn-media-block/pn-media-block.css +25 -0
- package/collection/components/media/pn-media-block/pn-media-block.js +8 -8
- package/collection/components/media/pn-media-block/pn-media-block.js.map +1 -1
- package/collection/components/media/pn-media-block/pn-media-block.stories.js +76 -76
- package/collection/components/minor/pn-app-banner/pn-app-banner.css +25 -0
- package/collection/components/minor/pn-app-banner/pn-app-banner.js +1 -1
- package/collection/components/minor/pn-marketweb-icon/pn-marketweb-icon.css +25 -0
- package/collection/components/minor/pn-marketweb-icon/pn-marketweb-icon.js +1 -1
- package/collection/components/minor/pn-swan/pn-swan.css +25 -0
- package/collection/components/minor/pn-swan/pn-swan.js +1 -1
- package/collection/components/minor/pn-titletag/pn-titletag.css +25 -0
- package/collection/components/minor/pn-titletag/pn-titletag.js +1 -1
- package/collection/components/navigation/pn-language-selector/pn-language-selector-option.css +50 -0
- package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +1 -1
- package/collection/components/navigation/pn-language-selector/pn-language-selector.css +50 -0
- package/collection/components/navigation/pn-language-selector/pn-language-selector.js +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav-level.css +25 -0
- package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +2 -2
- package/collection/components/navigation/pn-mainnav/pn-mainnav-link.css +25 -0
- package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav-list.css +25 -0
- package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav.css +25 -0
- package/collection/components/navigation/pn-mainnav/pn-mainnav.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav-level.css +25 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav-link.css +25 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.css +25 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav.css +25 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav.js +1 -1
- package/collection/components/navigation/pn-site-footer/pn-site-footer-col.css +50 -0
- package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +1 -1
- package/collection/components/navigation/pn-site-footer/pn-site-footer.css +50 -0
- package/collection/components/navigation/pn-site-footer/pn-site-footer.js +1 -1
- package/collection/components/navigation/pn-site-selector/pn-site-selector-item.css +25 -0
- package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +1 -1
- package/collection/components/navigation/pn-site-selector/pn-site-selector.css +25 -0
- package/collection/components/navigation/pn-site-selector/pn-site-selector.js +1 -1
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.css +25 -0
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +1 -1
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.css +25 -0
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.css +25 -0
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.css +25 -0
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +2 -2
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.css +25 -0
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal.css +25 -0
- package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +1 -1
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.css +25 -0
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +1 -1
- package/collection/components/profile/pn-profile-selector/pn-profile-selector.css +25 -0
- package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +1 -1
- package/collection/components/utilities/pn-breakpoints/pn-breakpoints.css +25 -0
- package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +1 -1
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.css +146 -0
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js +118 -0
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.js +219 -0
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat-stories-constants.js +243 -0
- package/collection/components/widgets/pn-chat/pn-chat-stories-constants.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat.css +238 -0
- package/collection/components/widgets/pn-chat/pn-chat.js +840 -0
- package/collection/components/widgets/pn-chat/pn-chat.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat.models.js +2 -0
- package/collection/components/widgets/pn-chat/pn-chat.models.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat.service.js +151 -0
- package/collection/components/widgets/pn-chat/pn-chat.service.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat.stories.js +116 -0
- package/collection/components/widgets/pn-chat/pn-chat.stories.js.map +1 -0
- package/collection/components/widgets/pn-chat/translations.js +78 -0
- package/collection/components/widgets/pn-chat/translations.js.map +1 -0
- package/collection/components/widgets/pn-chat/types.js +2 -0
- package/collection/components/widgets/pn-chat/types.js.map +1 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.css +25 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +1 -1
- package/collection/components/widgets/pn-find-price/pn-find-price.css +25 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.js +2 -2
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.css +25 -0
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +1 -1
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.css +25 -0
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +1 -1
- package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.css +25 -0
- package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +1 -1
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.css +94 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js +262 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.js +31 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.css +114 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.js +476 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.models.js +2 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.models.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.service.js +65 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.service.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.stories.js +88 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.stories.js.map +1 -0
- package/collection/components/widgets/pn-level-up/types.js +2 -0
- package/collection/components/widgets/pn-level-up/types.js.map +1 -0
- package/collection/components/widgets/pn-link-list/pn-link-list.css +25 -0
- package/collection/components/widgets/pn-link-list/pn-link-list.js +1 -1
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.css +96 -0
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.js +494 -0
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.js +82 -0
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.css +255 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.js +701 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.service.js +38 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.service.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.js +122 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/translations.js +73 -0
- package/collection/components/widgets/pn-marketweb-table/translations.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/types.js +2 -0
- package/collection/components/widgets/pn-marketweb-table/types.js.map +1 -0
- package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.css +25 -0
- package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +1 -1
- package/collection/components/widgets/pn-product-card/pn-product-card-info.css +25 -0
- package/collection/components/widgets/pn-product-card/pn-product-card-price.css +25 -0
- package/collection/components/widgets/pn-product-card/pn-product-card.css +25 -0
- package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.css +25 -0
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +1 -1
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +25 -0
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +2 -2
- package/collection/components/widgets/pn-product-tile/pn-product-tile-info.css +25 -0
- package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +1 -1
- package/collection/components/widgets/pn-product-tile/pn-product-tile-price.css +25 -0
- package/collection/components/widgets/pn-product-tile/pn-product-tile.css +25 -0
- package/collection/components/widgets/pn-product-tile/pn-product-tile.js +1 -1
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.css +25 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +1 -1
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.css +25 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +3 -3
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.css +25 -0
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.css +25 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.css +25 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.css +25 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.css +25 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +1 -1
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.css +61 -0
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js +198 -0
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js.map +1 -0
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.js +29 -0
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.js.map +1 -0
- package/collection/components/widgets/pn-search/pn-search.css +140 -0
- package/collection/components/widgets/pn-search/pn-search.js +368 -0
- package/collection/components/widgets/pn-search/pn-search.js.map +1 -0
- package/collection/components/widgets/pn-search/pn-search.stories.js +54 -0
- package/collection/components/widgets/pn-search/pn-search.stories.js.map +1 -0
- package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.css +25 -0
- package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js +1 -1
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.css +116 -0
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.js +269 -0
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.js.map +1 -0
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.stories.js +63 -0
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.stories.js.map +1 -0
- package/collection/globals/HeadingTag.js +2 -2
- package/collection/globals/HeadingTag.js.map +1 -1
- package/collection/globals/LocalStorageService.js +50 -0
- package/collection/globals/LocalStorageService.js.map +1 -0
- package/collection/globals/ScreensizeDetect.js +80 -0
- package/collection/globals/ScreensizeDetect.js.map +1 -0
- package/collection/globals/types.js +2 -0
- package/collection/globals/types.js.map +1 -0
- package/collection/utils/utils.js +11 -0
- package/collection/utils/utils.js.map +1 -1
- package/components/FetchHelper.js +1 -243
- package/components/FetchHelper.js.map +1 -1
- package/components/HeadingTag.js +10 -0
- package/components/HeadingTag.js.map +1 -0
- package/components/LocalStorageService.js +64 -0
- package/components/LocalStorageService.js.map +1 -0
- package/{esm/FetchHelper-746f2bb6.js → components/MarketWebContextService.js} +2 -82
- package/components/MarketWebContextService.js.map +1 -0
- package/components/alert_exclamation_circle.js +6 -0
- package/components/alert_exclamation_circle.js.map +1 -0
- package/components/angle_up.js +9 -0
- package/components/angle_up.js.map +1 -0
- package/components/close.js +6 -0
- package/components/close.js.map +1 -0
- package/components/pn-address-autofill.js +50 -73
- package/components/pn-address-autofill.js.map +1 -1
- package/components/pn-animated-tile.js +1 -1
- package/components/pn-animated-tile.js.map +1 -1
- package/components/pn-app-banner.js +2 -2
- package/components/pn-app-banner.js.map +1 -1
- package/components/pn-bonus-progressbar-level.js +1 -1
- package/components/pn-bonus-progressbar-level.js.map +1 -1
- package/components/pn-bonus-progressbar.js +1 -1
- package/components/pn-bonus-progressbar.js.map +1 -1
- package/components/pn-breakpoints.js +2 -2
- package/components/pn-breakpoints.js.map +1 -1
- package/components/pn-chart.js +1 -1
- package/components/pn-chart.js.map +1 -1
- package/components/pn-charts-card.js +1 -1
- package/components/pn-charts-card.js.map +1 -1
- package/components/pn-chat-message.d.ts +11 -0
- package/components/pn-chat-message.js +8 -0
- package/components/pn-chat-message.js.map +1 -0
- package/components/pn-chat-message2.js +69 -0
- package/components/pn-chat-message2.js.map +1 -0
- package/components/pn-chat.d.ts +11 -0
- package/components/pn-chat.js +534 -0
- package/components/pn-chat.js.map +1 -0
- package/components/pn-chat.service.js +155 -0
- package/components/pn-chat.service.js.map +1 -0
- package/components/pn-choice-button2.js +1 -1
- package/components/pn-choice-button2.js.map +1 -1
- package/components/pn-cta-block.js +1 -1
- package/components/pn-cta-block.js.map +1 -1
- package/components/pn-customernumber-selector-option.js +2 -2
- package/components/pn-customernumber-selector-option.js.map +1 -1
- package/components/pn-customernumber-selector.js +3 -8
- package/components/pn-customernumber-selector.js.map +1 -1
- package/components/pn-date-and-time.js +1 -1
- package/components/pn-date-and-time.js.map +1 -1
- package/components/pn-dropdown-choice-adds-row.js +19 -7
- package/components/pn-dropdown-choice-adds-row.js.map +1 -1
- package/components/pn-dropdown-with-multi-input-rows-row2.js +1 -1
- package/components/pn-dropdown-with-multi-input-rows-row2.js.map +1 -1
- package/components/pn-dropdown-with-multi-input-rows.js +1 -1
- package/components/pn-dropdown-with-multi-input-rows.js.map +1 -1
- package/components/pn-filter-checkbox2.js +1 -1
- package/components/pn-filter-checkbox2.js.map +1 -1
- package/components/pn-find-price-result2.js +2 -2
- package/components/pn-find-price-result2.js.map +1 -1
- package/components/pn-find-price.js +3 -3
- package/components/pn-find-price.js.map +1 -1
- package/components/pn-find-service-and-price-result2.js +2 -2
- package/components/pn-find-service-and-price-result2.js.map +1 -1
- package/components/pn-find-service-and-price.js +2 -2
- package/components/pn-find-service-and-price.js.map +1 -1
- package/components/pn-hero-block-international.js +2 -2
- package/components/pn-hero-block-international.js.map +1 -1
- package/components/pn-language-selector-option2.js +2 -2
- package/components/pn-language-selector-option2.js.map +1 -1
- package/components/pn-language-selector2.js +2 -2
- package/components/pn-language-selector2.js.map +1 -1
- package/components/pn-level-up-modal.d.ts +11 -0
- package/components/pn-level-up-modal.js +8 -0
- package/components/pn-level-up-modal.js.map +1 -0
- package/components/pn-level-up-modal2.js +170 -0
- package/components/pn-level-up-modal2.js.map +1 -0
- package/components/pn-level-up.d.ts +11 -0
- package/components/pn-level-up.js +185 -0
- package/components/pn-level-up.js.map +1 -0
- package/components/pn-line-shape.js +1 -1
- package/components/pn-line-shape.js.map +1 -1
- package/components/pn-link-list.js +2 -2
- package/components/pn-link-list.js.map +1 -1
- package/components/pn-mainnav-level2.js +3 -3
- package/components/pn-mainnav-level2.js.map +1 -1
- package/components/pn-mainnav-link2.js +2 -2
- package/components/pn-mainnav-link2.js.map +1 -1
- package/components/pn-mainnav-list2.js +2 -2
- package/components/pn-mainnav-list2.js.map +1 -1
- package/components/pn-mainnav2.js +3 -5
- package/components/pn-mainnav2.js.map +1 -1
- package/components/pn-marketweb-carousel.d.ts +11 -0
- package/components/pn-marketweb-carousel.js +8 -0
- package/components/pn-marketweb-carousel.js.map +1 -0
- package/components/pn-marketweb-carousel2.js +326 -0
- package/components/pn-marketweb-carousel2.js.map +1 -0
- package/components/pn-marketweb-icon.js +2 -2
- package/components/pn-marketweb-icon.js.map +1 -1
- package/components/pn-marketweb-input2.js +2 -4
- package/components/pn-marketweb-input2.js.map +1 -1
- package/components/pn-marketweb-search.js +1 -125
- package/components/pn-marketweb-search.js.map +1 -1
- package/components/pn-marketweb-search2.js +130 -0
- package/components/pn-marketweb-search2.js.map +1 -0
- package/components/pn-marketweb-sitefooter.js +6 -9
- package/components/pn-marketweb-sitefooter.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-linklist2.js +1 -1
- package/components/pn-marketweb-siteheader-login-linklist2.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-links2.js +1 -1
- package/components/pn-marketweb-siteheader-login-links2.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-mypage-button.js +34 -1
- package/components/pn-marketweb-siteheader-login-mypage-button.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-profileselection2.js +2 -1
- package/components/pn-marketweb-siteheader-login-profileselection2.js.map +1 -1
- package/components/pn-marketweb-siteheader-login2.js +8 -14
- package/components/pn-marketweb-siteheader-login2.js.map +1 -1
- package/components/pn-marketweb-siteheader-search2.js +1 -1
- package/components/pn-marketweb-siteheader-search2.js.map +1 -1
- package/components/pn-marketweb-siteheader-unified-login2.js +3 -13
- package/components/pn-marketweb-siteheader-unified-login2.js.map +1 -1
- package/components/pn-marketweb-siteheader.js +27 -32
- package/components/pn-marketweb-siteheader.js.map +1 -1
- package/components/pn-marketweb-table.d.ts +11 -0
- package/components/pn-marketweb-table.js +502 -0
- package/components/pn-marketweb-table.js.map +1 -0
- package/components/pn-media-block.js +6 -6
- package/components/pn-media-block.js.map +1 -1
- package/components/pn-multi-row-connected-dropdown-row2.js +1 -1
- package/components/pn-multi-row-connected-dropdown-row2.js.map +1 -1
- package/components/pn-multi-row-connected-dropdown.js +1 -1
- package/components/pn-multi-row-connected-dropdown.js.map +1 -1
- package/components/pn-parcel-tracker.js +1 -1
- package/components/pn-parcel-tracker.js.map +1 -1
- package/components/pn-pex-pricefinder.js +2 -2
- package/components/pn-pex-pricefinder.js.map +1 -1
- package/components/pn-product-card-info2.js +1 -1
- package/components/pn-product-card-info2.js.map +1 -1
- package/components/pn-product-card-price2.js +1 -1
- package/components/pn-product-card-price2.js.map +1 -1
- package/components/pn-product-card2.js +2 -2
- package/components/pn-product-card2.js.map +1 -1
- package/components/pn-product-pricelist-result.js +2 -2
- package/components/pn-product-pricelist-result.js.map +1 -1
- package/components/pn-product-pricelist.js +3 -3
- package/components/pn-product-pricelist.js.map +1 -1
- package/components/pn-product-tile-info2.js +2 -2
- package/components/pn-product-tile-info2.js.map +1 -1
- package/components/pn-product-tile-price2.js +1 -1
- package/components/pn-product-tile-price2.js.map +1 -1
- package/components/pn-product-tile.js +2 -2
- package/components/pn-product-tile.js.map +1 -1
- package/components/pn-profile-modal-customernumber.js +2 -2
- package/components/pn-profile-modal-customernumber.js.map +1 -1
- package/components/pn-profile-modal-profile.js +3 -3
- package/components/pn-profile-modal-profile.js.map +1 -1
- package/components/pn-profile-modal-type.js +2 -2
- package/components/pn-profile-modal-type.js.map +1 -1
- package/components/pn-profile-modal.js +2 -2
- package/components/pn-profile-modal.js.map +1 -1
- package/components/pn-profile-selector-option.js +2 -2
- package/components/pn-profile-selector-option.js.map +1 -1
- package/components/pn-profile-selector.js +2 -2
- package/components/pn-profile-selector.js.map +1 -1
- package/components/pn-proxio-findprice-result2.js +2 -2
- package/components/pn-proxio-findprice-result2.js.map +1 -1
- package/components/pn-proxio-findprice.js +6 -5
- package/components/pn-proxio-findprice.js.map +1 -1
- package/components/pn-proxio-pricegroup.js +4 -3
- package/components/pn-proxio-pricegroup.js.map +1 -1
- package/components/pn-proxio-productcard-description2.js +2 -2
- package/components/pn-proxio-productcard-description2.js.map +1 -1
- package/components/pn-proxio-productcard-information2.js +2 -2
- package/components/pn-proxio-productcard-information2.js.map +1 -1
- package/components/pn-proxio-productcard-pricelink2.js +1 -1
- package/components/pn-proxio-productcard-pricelink2.js.map +1 -1
- package/components/pn-proxio-productcard2.js +2 -2
- package/components/pn-proxio-productcard2.js.map +1 -1
- package/components/pn-qr-code-generator.d.ts +11 -0
- package/components/pn-qr-code-generator.js +8 -0
- package/components/pn-qr-code-generator.js.map +1 -0
- package/components/pn-qr-code-generator2.js +2967 -0
- package/components/pn-qr-code-generator2.js.map +1 -0
- package/components/pn-quick-cta.js +1 -1
- package/components/pn-quick-cta.js.map +1 -1
- package/components/pn-quote-card.js +1 -1
- package/components/pn-quote-card.js.map +1 -1
- package/components/pn-search.d.ts +11 -0
- package/components/pn-search.js +91 -0
- package/components/pn-search.js.map +1 -0
- package/components/pn-share-item2.js +1 -1
- package/components/pn-share-item2.js.map +1 -1
- package/components/pn-share.js +1 -1
- package/components/pn-share.js.map +1 -1
- package/components/pn-sidenav-level.js +2 -2
- package/components/pn-sidenav-level.js.map +1 -1
- package/components/pn-sidenav-link.js +2 -2
- package/components/pn-sidenav-link.js.map +1 -1
- package/components/pn-sidenav-togglebutton.js +2 -2
- package/components/pn-sidenav-togglebutton.js.map +1 -1
- package/components/pn-sidenav.js +2 -2
- package/components/pn-sidenav.js.map +1 -1
- package/components/pn-site-footer-col2.js +2 -2
- package/components/pn-site-footer-col2.js.map +1 -1
- package/components/pn-site-footer2.js +2 -2
- package/components/pn-site-footer2.js.map +1 -1
- package/components/pn-site-selector-item2.js +2 -2
- package/components/pn-site-selector-item2.js.map +1 -1
- package/components/pn-site-selector2.js +2 -2
- package/components/pn-site-selector2.js.map +1 -1
- package/components/pn-spotlight.js +1 -1
- package/components/pn-spotlight.js.map +1 -1
- package/components/pn-stats-info-data2.js +1 -1
- package/components/pn-stats-info-data2.js.map +1 -1
- package/components/pn-stats-info.js +1 -1
- package/components/pn-stats-info.js.map +1 -1
- package/components/pn-swan2.js +2 -2
- package/components/pn-swan2.js.map +1 -1
- package/components/pn-teaser-card.js +5 -9
- package/components/pn-teaser-card.js.map +1 -1
- package/components/pn-titletag2.js +2 -2
- package/components/pn-titletag2.js.map +1 -1
- package/components/pn-usp-promoter.js +2 -2
- package/components/pn-usp-promoter.js.map +1 -1
- package/components/pn-usp-simple.d.ts +11 -0
- package/components/pn-usp-simple.js +82 -0
- package/components/pn-usp-simple.js.map +1 -0
- package/components/pn-video-overlay2.js +1 -1
- package/components/pn-video-overlay2.js.map +1 -1
- package/esm/FetchHelper-4789695a.js +83 -0
- package/esm/FetchHelper-4789695a.js.map +1 -0
- package/esm/HeadingTag-e20016ab.js +10 -0
- package/esm/HeadingTag-e20016ab.js.map +1 -0
- package/esm/LocalStorageService-78b1794d.js +64 -0
- package/esm/LocalStorageService-78b1794d.js.map +1 -0
- package/esm/MarketWebContextService-16c15670.js +245 -0
- package/esm/MarketWebContextService-16c15670.js.map +1 -0
- package/esm/alert_exclamation_circle-f0fe7c7b.js +6 -0
- package/esm/alert_exclamation_circle-f0fe7c7b.js.map +1 -0
- package/esm/angle_up-b5f955ea.js +9 -0
- package/esm/angle_up-b5f955ea.js.map +1 -0
- package/esm/close-9e7bd787.js +6 -0
- package/esm/close-9e7bd787.js.map +1 -0
- package/esm/{index-89124075.js → index-ae60ebec.js} +2 -2
- package/esm/{index-89124075.js.map → index-ae60ebec.js.map} +1 -1
- package/esm/{index-51d67461.js → index-c311acd6.js} +65 -9
- package/esm/index-c311acd6.js.map +1 -0
- package/esm/index.js +1 -1
- package/esm/loader.js +3 -3
- package/esm/pn-address-autofill.entry.js +50 -74
- package/esm/pn-address-autofill.entry.js.map +1 -1
- package/esm/pn-animated-tile.entry.js +2 -2
- package/esm/pn-animated-tile.entry.js.map +1 -1
- package/esm/pn-app-banner.entry.js +3 -3
- package/esm/pn-app-banner.entry.js.map +1 -1
- package/esm/pn-bonus-progressbar-level.entry.js +2 -2
- package/esm/pn-bonus-progressbar-level.entry.js.map +1 -1
- package/esm/pn-bonus-progressbar.entry.js +2 -2
- package/esm/pn-bonus-progressbar.entry.js.map +1 -1
- package/esm/pn-breakpoints.entry.js +3 -3
- package/esm/pn-breakpoints.entry.js.map +1 -1
- package/esm/pn-chart.entry.js +2 -2
- package/esm/pn-chart.entry.js.map +1 -1
- package/esm/pn-charts-card.entry.js +2 -2
- package/esm/pn-charts-card.entry.js.map +1 -1
- package/esm/pn-chat-message_2.entry.js +341 -0
- package/esm/pn-chat-message_2.entry.js.map +1 -0
- package/esm/pn-chat.entry.js +470 -0
- package/esm/pn-chat.entry.js.map +1 -0
- package/esm/pn-chat.service-f4037d6f.js +155 -0
- package/esm/pn-chat.service-f4037d6f.js.map +1 -0
- package/esm/pn-choice-button.entry.js +2 -2
- package/esm/pn-choice-button.entry.js.map +1 -1
- package/esm/pn-cta-block.entry.js +2 -2
- package/esm/pn-cta-block.entry.js.map +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +3 -3
- package/esm/pn-customernumber-selector-option.entry.js.map +1 -1
- package/esm/pn-customernumber-selector.entry.js +4 -9
- package/esm/pn-customernumber-selector.entry.js.map +1 -1
- package/esm/pn-date-and-time.entry.js +2 -2
- package/esm/pn-date-and-time.entry.js.map +1 -1
- package/esm/pn-dropdown-choice-adds-row.entry.js +20 -8
- package/esm/pn-dropdown-choice-adds-row.entry.js.map +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +2 -2
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js.map +1 -1
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +2 -2
- package/esm/pn-dropdown-with-multi-input-rows.entry.js.map +1 -1
- package/esm/pn-filter-checkbox.entry.js +2 -2
- package/esm/pn-filter-checkbox.entry.js.map +1 -1
- package/esm/pn-find-price-result.entry.js +5 -5
- package/esm/pn-find-price-result.entry.js.map +1 -1
- package/esm/{pn-find-price-store-c9a9d3d4.js → pn-find-price-store-f97f2325.js} +2 -2
- package/esm/{pn-find-price-store-c9a9d3d4.js.map → pn-find-price-store-f97f2325.js.map} +1 -1
- package/esm/pn-find-price.entry.js +6 -6
- package/esm/pn-find-price.entry.js.map +1 -1
- package/esm/pn-find-service-and-price-result.entry.js +5 -5
- package/esm/pn-find-service-and-price-result.entry.js.map +1 -1
- package/esm/{pn-find-service-and-price-store-60aa5801.js → pn-find-service-and-price-store-6553566d.js} +2 -2
- package/esm/{pn-find-service-and-price-store-60aa5801.js.map → pn-find-service-and-price-store-6553566d.js.map} +1 -1
- package/esm/pn-find-service-and-price.entry.js +5 -5
- package/esm/pn-find-service-and-price.entry.js.map +1 -1
- package/esm/pn-hero-block-international.entry.js +3 -3
- package/esm/pn-hero-block-international.entry.js.map +1 -1
- package/esm/pn-language-selector_9.entry.js +25 -27
- package/esm/pn-language-selector_9.entry.js.map +1 -1
- package/esm/pn-level-up-modal.entry.js +73 -0
- package/esm/pn-level-up-modal.entry.js.map +1 -0
- package/esm/pn-level-up.entry.js +135 -0
- package/esm/pn-level-up.entry.js.map +1 -0
- package/esm/pn-level-up.service-5c602f23.js +69 -0
- package/esm/pn-level-up.service-5c602f23.js.map +1 -0
- package/esm/pn-line-shape.entry.js +2 -2
- package/esm/pn-line-shape.entry.js.map +1 -1
- package/esm/pn-link-list.entry.js +3 -3
- package/esm/pn-link-list.entry.js.map +1 -1
- package/esm/pn-mainnav-link.entry.js +5 -5
- package/esm/pn-mainnav-link.entry.js.map +1 -1
- package/esm/{pn-mainnav-store-9c42bc66.js → pn-mainnav-store-23387019.js} +2 -2
- package/esm/{pn-mainnav-store-9c42bc66.js.map → pn-mainnav-store-23387019.js.map} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-icon.entry.js +3 -3
- package/esm/pn-marketweb-icon.entry.js.map +1 -1
- package/esm/pn-marketweb-input.entry.js +3 -5
- package/esm/pn-marketweb-input.entry.js.map +1 -1
- package/esm/pn-marketweb-search.entry.js +6 -5
- package/esm/pn-marketweb-search.entry.js.map +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +6 -9
- package/esm/pn-marketweb-sitefooter.entry.js.map +1 -1
- package/esm/{pn-marketweb-siteheader-login-button_5.entry.js → pn-marketweb-siteheader-login-button_4.entry.js} +9 -26
- package/esm/pn-marketweb-siteheader-login-button_4.entry.js.map +1 -0
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +4 -4
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js.map +1 -1
- package/esm/pn-marketweb-siteheader-login-mypage-button.entry.js +21 -0
- package/esm/pn-marketweb-siteheader-login-mypage-button.entry.js.map +1 -0
- package/esm/{pn-marketweb-siteheader-store-91f74255.js → pn-marketweb-siteheader-store-f60eb1e4.js} +2 -2
- package/esm/{pn-marketweb-siteheader-store-91f74255.js.map → pn-marketweb-siteheader-store-f60eb1e4.js.map} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +10 -9
- package/esm/pn-marketweb-siteheader.entry.js.map +1 -1
- package/esm/pn-marketweb-table.entry.js +455 -0
- package/esm/pn-marketweb-table.entry.js.map +1 -0
- package/esm/pn-media-block.entry.js +6 -6
- package/esm/pn-media-block.entry.js.map +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +2 -2
- package/esm/pn-multi-row-connected-dropdown-row.entry.js.map +1 -1
- package/esm/pn-multi-row-connected-dropdown.entry.js +2 -2
- package/esm/pn-multi-row-connected-dropdown.entry.js.map +1 -1
- package/esm/pn-multiple-input.entry.js +1 -1
- package/esm/pn-parcel-tracker.entry.js +2 -2
- package/esm/pn-parcel-tracker.entry.js.map +1 -1
- package/esm/pn-pex-pricefinder.entry.js +3 -3
- package/esm/pn-pex-pricefinder.entry.js.map +1 -1
- package/esm/pn-play-on-scroll.entry.js +1 -1
- package/esm/pn-product-card_3.entry.js +5 -5
- package/esm/pn-product-card_3.entry.js.map +1 -1
- package/esm/pn-product-pricelist-result.entry.js +4 -4
- package/esm/pn-product-pricelist-result.entry.js.map +1 -1
- package/esm/pn-product-pricelist.entry.js +6 -6
- package/esm/pn-product-pricelist.entry.js.map +1 -1
- package/esm/pn-product-tile-info_2.entry.js +4 -4
- package/esm/pn-product-tile-info_2.entry.js.map +1 -1
- package/esm/pn-product-tile.entry.js +3 -3
- package/esm/pn-product-tile.entry.js.map +1 -1
- package/esm/pn-profile-modal-customernumber.entry.js +3 -3
- package/esm/pn-profile-modal-customernumber.entry.js.map +1 -1
- package/esm/pn-profile-modal-profile.entry.js +6 -6
- package/esm/pn-profile-modal-profile.entry.js.map +1 -1
- package/esm/{pn-profile-modal-store-4655b124.js → pn-profile-modal-store-5d651bd5.js} +2 -2
- package/esm/{pn-profile-modal-store-4655b124.js.map → pn-profile-modal-store-5d651bd5.js.map} +1 -1
- package/esm/pn-profile-modal-type.entry.js +5 -5
- package/esm/pn-profile-modal-type.entry.js.map +1 -1
- package/esm/pn-profile-modal.entry.js +5 -5
- package/esm/pn-profile-modal.entry.js.map +1 -1
- package/esm/pn-profile-selector-option.entry.js +3 -3
- package/esm/pn-profile-selector-option.entry.js.map +1 -1
- package/esm/pn-profile-selector.entry.js +3 -3
- package/esm/pn-profile-selector.entry.js.map +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +3 -3
- package/esm/pn-proxio-findprice-result.entry.js.map +1 -1
- package/esm/pn-proxio-findprice.entry.js +8 -7
- package/esm/pn-proxio-findprice.entry.js.map +1 -1
- package/esm/pn-proxio-pricegroup.entry.js +5 -4
- package/esm/pn-proxio-pricegroup.entry.js.map +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +8 -8
- package/esm/pn-proxio-productcard_4.entry.js.map +1 -1
- package/esm/pn-qr-code-generator.entry.js +2941 -0
- package/esm/pn-qr-code-generator.entry.js.map +1 -0
- package/esm/pn-quick-cta.entry.js +2 -2
- package/esm/pn-quick-cta.entry.js.map +1 -1
- package/esm/pn-quote-card.entry.js +2 -2
- package/esm/pn-quote-card.entry.js.map +1 -1
- package/esm/pn-scroll_2.entry.js +2 -2
- package/esm/pn-scroll_2.entry.js.map +1 -1
- package/esm/pn-search.entry.js +50 -0
- package/esm/pn-search.entry.js.map +1 -0
- package/esm/pn-share-item.entry.js +2 -2
- package/esm/pn-share-item.entry.js.map +1 -1
- package/esm/pn-share.entry.js +2 -2
- package/esm/pn-share.entry.js.map +1 -1
- package/esm/pn-sidenav-level.entry.js +5 -5
- package/esm/pn-sidenav-level.entry.js.map +1 -1
- package/esm/pn-sidenav-link.entry.js +5 -5
- package/esm/pn-sidenav-link.entry.js.map +1 -1
- package/esm/{pn-sidenav-store-85bdb1e6.js → pn-sidenav-store-e2038d79.js} +2 -2
- package/esm/{pn-sidenav-store-85bdb1e6.js.map → pn-sidenav-store-e2038d79.js.map} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +5 -5
- package/esm/pn-sidenav-togglebutton.entry.js.map +1 -1
- package/esm/pn-sidenav.entry.js +5 -5
- package/esm/pn-sidenav.entry.js.map +1 -1
- package/esm/pn-site-footer_3.entry.js +7 -7
- package/esm/pn-site-footer_3.entry.js.map +1 -1
- package/esm/pn-spotlight.entry.js +2 -2
- package/esm/pn-spotlight.entry.js.map +1 -1
- package/esm/pn-stats-info-data.entry.js +2 -2
- package/esm/pn-stats-info-data.entry.js.map +1 -1
- package/esm/pn-stats-info.entry.js +2 -2
- package/esm/pn-stats-info.entry.js.map +1 -1
- package/esm/pn-teaser-card.entry.js +5 -9
- package/esm/pn-teaser-card.entry.js.map +1 -1
- package/esm/pn-titletag.entry.js +3 -3
- package/esm/pn-titletag.entry.js.map +1 -1
- package/esm/pn-usp-promoter.entry.js +3 -3
- package/esm/pn-usp-promoter.entry.js.map +1 -1
- package/esm/pn-usp-simple.entry.js +52 -0
- package/esm/pn-usp-simple.entry.js.map +1 -0
- package/package.json +5 -3
- package/pn-market-web-components/index.esm.js +1 -1
- package/pn-market-web-components/index.esm.js.map +1 -1
- package/pn-market-web-components/p-015127bf.entry.js +2 -0
- package/pn-market-web-components/{p-c5772021.entry.js.map → p-015127bf.entry.js.map} +1 -1
- package/pn-market-web-components/p-04107723.entry.js +2 -0
- package/pn-market-web-components/p-04107723.entry.js.map +1 -0
- package/pn-market-web-components/p-08b473e0.entry.js +2 -0
- package/pn-market-web-components/{p-a38118be.entry.js.map → p-08b473e0.entry.js.map} +1 -1
- package/pn-market-web-components/p-0b5a125d.entry.js +2 -0
- package/pn-market-web-components/p-0b5a125d.entry.js.map +1 -0
- package/pn-market-web-components/p-0b920554.js +2 -0
- package/pn-market-web-components/p-0b920554.js.map +1 -0
- package/pn-market-web-components/p-0fc01d3f.entry.js +2 -0
- package/pn-market-web-components/{p-4fa5bc85.entry.js.map → p-0fc01d3f.entry.js.map} +1 -1
- package/pn-market-web-components/p-10776075.entry.js +2 -0
- package/pn-market-web-components/p-10776075.entry.js.map +1 -0
- package/pn-market-web-components/p-17c43a96.entry.js +2 -0
- package/pn-market-web-components/p-17c43a96.entry.js.map +1 -0
- package/pn-market-web-components/p-19bbac6d.entry.js +2 -0
- package/pn-market-web-components/{p-ea3d6f7e.entry.js.map → p-19bbac6d.entry.js.map} +1 -1
- package/pn-market-web-components/p-230ef9aa.entry.js +2 -0
- package/pn-market-web-components/{p-a419cd91.entry.js.map → p-230ef9aa.entry.js.map} +1 -1
- package/pn-market-web-components/p-268dc1fa.entry.js +2 -0
- package/pn-market-web-components/p-268dc1fa.entry.js.map +1 -0
- package/pn-market-web-components/p-28d2f7fa.entry.js +2 -0
- package/pn-market-web-components/p-28d2f7fa.entry.js.map +1 -0
- package/pn-market-web-components/p-292db484.entry.js +2 -0
- package/pn-market-web-components/{p-76e6708b.entry.js.map → p-292db484.entry.js.map} +1 -1
- package/pn-market-web-components/p-2a58d83b.entry.js +2 -0
- package/pn-market-web-components/{p-55643d76.entry.js.map → p-2a58d83b.entry.js.map} +1 -1
- package/pn-market-web-components/p-2c19edca.entry.js +2 -0
- package/pn-market-web-components/{p-72dbca40.entry.js.map → p-2c19edca.entry.js.map} +1 -1
- package/pn-market-web-components/p-2fd60147.entry.js +2 -0
- package/pn-market-web-components/p-2fd60147.entry.js.map +1 -0
- package/pn-market-web-components/p-3478f368.js +2 -0
- package/pn-market-web-components/p-3478f368.js.map +1 -0
- package/pn-market-web-components/p-34a98554.entry.js +2 -0
- package/pn-market-web-components/{p-cf39491b.entry.js.map → p-34a98554.entry.js.map} +1 -1
- package/pn-market-web-components/p-35847eda.entry.js +2 -0
- package/pn-market-web-components/{p-e6e012fb.entry.js.map → p-35847eda.entry.js.map} +1 -1
- package/pn-market-web-components/p-366fd15a.js +2 -0
- package/pn-market-web-components/p-366fd15a.js.map +1 -0
- package/pn-market-web-components/p-389a94e7.entry.js +2 -0
- package/pn-market-web-components/{p-190c6938.entry.js.map → p-389a94e7.entry.js.map} +1 -1
- package/pn-market-web-components/p-39b75c62.entry.js +2 -0
- package/pn-market-web-components/{p-530274ae.entry.js.map → p-39b75c62.entry.js.map} +1 -1
- package/pn-market-web-components/p-3d10bc37.entry.js +2 -0
- package/pn-market-web-components/{p-45d1e1be.entry.js.map → p-3d10bc37.entry.js.map} +1 -1
- package/pn-market-web-components/p-3e197670.entry.js +2 -0
- package/pn-market-web-components/{p-6a5f7dee.entry.js.map → p-3e197670.entry.js.map} +1 -1
- package/pn-market-web-components/p-40bce1b1.entry.js +2 -0
- package/pn-market-web-components/p-40bce1b1.entry.js.map +1 -0
- package/pn-market-web-components/p-41cdac85.entry.js +2 -0
- package/pn-market-web-components/{p-65ab3003.entry.js.map → p-41cdac85.entry.js.map} +1 -1
- package/pn-market-web-components/p-4aedb76c.entry.js +2 -0
- package/pn-market-web-components/{p-ea7b0d21.entry.js.map → p-4aedb76c.entry.js.map} +1 -1
- package/pn-market-web-components/p-4e924d13.entry.js +2 -0
- package/pn-market-web-components/p-4e924d13.entry.js.map +1 -0
- package/pn-market-web-components/p-4f639380.entry.js +2 -0
- package/pn-market-web-components/{p-aeeabb32.entry.js.map → p-4f639380.entry.js.map} +1 -1
- package/pn-market-web-components/p-51f136f3.entry.js +2 -0
- package/pn-market-web-components/p-51f136f3.entry.js.map +1 -0
- package/pn-market-web-components/p-542f949d.entry.js +2 -0
- package/pn-market-web-components/{p-77a35f5e.entry.js.map → p-542f949d.entry.js.map} +1 -1
- package/pn-market-web-components/p-5a981927.entry.js +2 -0
- package/pn-market-web-components/{p-b35cdbac.entry.js.map → p-5a981927.entry.js.map} +1 -1
- package/pn-market-web-components/p-5f4ccd8a.js +2 -0
- package/pn-market-web-components/p-5f4ccd8a.js.map +1 -0
- package/pn-market-web-components/p-60b77eed.entry.js +2 -0
- package/pn-market-web-components/{p-e916e99d.entry.js.map → p-60b77eed.entry.js.map} +1 -1
- package/pn-market-web-components/p-619f2143.entry.js +2 -0
- package/pn-market-web-components/{p-a6866467.entry.js.map → p-619f2143.entry.js.map} +1 -1
- package/pn-market-web-components/p-61bd81d7.entry.js +2 -0
- package/pn-market-web-components/{p-8c26b98d.entry.js.map → p-61bd81d7.entry.js.map} +1 -1
- package/pn-market-web-components/p-64851da0.entry.js +2 -0
- package/pn-market-web-components/{p-776f3d51.entry.js.map → p-64851da0.entry.js.map} +1 -1
- package/pn-market-web-components/p-659a4db5.entry.js +2 -0
- package/pn-market-web-components/{p-231b97e1.entry.js.map → p-659a4db5.entry.js.map} +1 -1
- package/pn-market-web-components/p-65a046be.entry.js +2 -0
- package/pn-market-web-components/{p-0ec8d040.entry.js.map → p-65a046be.entry.js.map} +1 -1
- package/pn-market-web-components/p-66da6e15.entry.js +2 -0
- package/pn-market-web-components/{p-62cabd1e.entry.js.map → p-66da6e15.entry.js.map} +1 -1
- package/pn-market-web-components/{p-65f243c1.js → p-6b1d045c.js} +2 -2
- package/pn-market-web-components/p-6b1d045c.js.map +1 -0
- package/pn-market-web-components/p-71db6836.entry.js +2 -0
- package/pn-market-web-components/{p-3fb8e665.entry.js.map → p-71db6836.entry.js.map} +1 -1
- package/pn-market-web-components/p-72828265.js +2 -0
- package/pn-market-web-components/p-72f57a04.entry.js +2 -0
- package/pn-market-web-components/{p-25d53df2.entry.js.map → p-72f57a04.entry.js.map} +1 -1
- package/pn-market-web-components/p-763a4e13.entry.js +2 -0
- package/pn-market-web-components/{p-fc157a1e.entry.js.map → p-763a4e13.entry.js.map} +1 -1
- package/pn-market-web-components/p-76c2c01f.js +2 -0
- package/pn-market-web-components/p-76c2c01f.js.map +1 -0
- package/pn-market-web-components/{p-e09a907b.js → p-793e1339.js} +2 -2
- package/pn-market-web-components/p-79e4715c.entry.js +2 -0
- package/pn-market-web-components/{p-6647d2c4.entry.js.map → p-79e4715c.entry.js.map} +1 -1
- package/pn-market-web-components/p-7b4f9fdf.entry.js +2 -0
- package/pn-market-web-components/{p-066e9db9.entry.js.map → p-7b4f9fdf.entry.js.map} +1 -1
- package/pn-market-web-components/p-7b7629c5.entry.js +2 -0
- package/pn-market-web-components/{p-24086c59.entry.js.map → p-7b7629c5.entry.js.map} +1 -1
- package/pn-market-web-components/p-7db6ef34.entry.js +2 -0
- package/pn-market-web-components/{p-4e3059dd.entry.js.map → p-7db6ef34.entry.js.map} +1 -1
- package/pn-market-web-components/p-809ed802.entry.js +2 -0
- package/pn-market-web-components/p-809ed802.entry.js.map +1 -0
- package/pn-market-web-components/p-82546a44.js +3 -0
- package/pn-market-web-components/p-82546a44.js.map +1 -0
- package/pn-market-web-components/p-84fc8e05.entry.js +2 -0
- package/pn-market-web-components/{p-25dfc349.entry.js.map → p-84fc8e05.entry.js.map} +1 -1
- package/pn-market-web-components/p-85b42b44.entry.js +2 -0
- package/pn-market-web-components/{p-e8278e9e.entry.js.map → p-85b42b44.entry.js.map} +1 -1
- package/pn-market-web-components/{p-2509d18d.js → p-8836de82.js} +2 -2
- package/pn-market-web-components/{p-560e5291.entry.js → p-8a651698.entry.js} +2 -2
- package/pn-market-web-components/p-8d78b631.js +2 -0
- package/pn-market-web-components/p-8d78b631.js.map +1 -0
- package/pn-market-web-components/p-8d874454.entry.js +2 -0
- package/pn-market-web-components/{p-b5a0275d.entry.js.map → p-8d874454.entry.js.map} +1 -1
- package/pn-market-web-components/p-8d98f709.entry.js +2 -0
- package/pn-market-web-components/{p-74fd7435.entry.js.map → p-8d98f709.entry.js.map} +1 -1
- package/pn-market-web-components/p-9088d3f5.entry.js +2 -0
- package/pn-market-web-components/{p-a72c2729.entry.js.map → p-9088d3f5.entry.js.map} +1 -1
- package/pn-market-web-components/p-920ce5f2.entry.js +2 -0
- package/pn-market-web-components/p-920ce5f2.entry.js.map +1 -0
- package/pn-market-web-components/{p-959a37d9.js → p-930e2943.js} +2 -2
- package/pn-market-web-components/p-9454075f.entry.js +2 -0
- package/pn-market-web-components/{p-45b8cadb.entry.js.map → p-9454075f.entry.js.map} +1 -1
- package/pn-market-web-components/p-95d32ab4.entry.js +2 -0
- package/pn-market-web-components/{p-758f1b53.entry.js.map → p-95d32ab4.entry.js.map} +1 -1
- package/pn-market-web-components/p-a079c496.js +2 -0
- package/pn-market-web-components/p-a079c496.js.map +1 -0
- package/pn-market-web-components/{p-eaee1dd6.entry.js → p-a73e4811.entry.js} +2 -2
- package/pn-market-web-components/{p-eaee1dd6.entry.js.map → p-a73e4811.entry.js.map} +1 -1
- package/pn-market-web-components/p-ad282b7c.entry.js +2 -0
- package/pn-market-web-components/{p-4d2ca281.entry.js.map → p-ad282b7c.entry.js.map} +1 -1
- package/pn-market-web-components/{p-155c2049.entry.js → p-ad9a7633.entry.js} +2 -2
- package/pn-market-web-components/p-b9590d81.entry.js +2 -0
- package/pn-market-web-components/{p-59549c74.entry.js.map → p-b9590d81.entry.js.map} +1 -1
- package/pn-market-web-components/p-c4e353b3.entry.js +2 -0
- package/pn-market-web-components/{p-5a1b6e6d.entry.js.map → p-c4e353b3.entry.js.map} +1 -1
- package/pn-market-web-components/p-c89cb749.entry.js +2 -0
- package/pn-market-web-components/{p-95519556.entry.js.map → p-c89cb749.entry.js.map} +1 -1
- package/pn-market-web-components/p-c9038b03.entry.js +2 -0
- package/pn-market-web-components/{p-64d0dbba.entry.js.map → p-c9038b03.entry.js.map} +1 -1
- package/pn-market-web-components/p-cbb1d57d.entry.js +2 -0
- package/pn-market-web-components/{p-6fdd5b5a.entry.js.map → p-cbb1d57d.entry.js.map} +1 -1
- package/pn-market-web-components/p-cc7c596e.entry.js +2 -0
- package/pn-market-web-components/p-cc7c596e.entry.js.map +1 -0
- package/pn-market-web-components/p-cda742ba.entry.js +2 -0
- package/pn-market-web-components/p-cda742ba.entry.js.map +1 -0
- package/pn-market-web-components/p-ce87ff8a.entry.js +2 -0
- package/pn-market-web-components/{p-e2e3ac2f.entry.js.map → p-ce87ff8a.entry.js.map} +1 -1
- package/pn-market-web-components/p-cf8a1fb9.js +2 -0
- package/pn-market-web-components/p-cf8a1fb9.js.map +1 -0
- package/pn-market-web-components/p-d17af75d.entry.js +2 -0
- package/pn-market-web-components/{p-b693f78a.entry.js.map → p-d17af75d.entry.js.map} +1 -1
- package/pn-market-web-components/p-d5c45da2.entry.js +2 -0
- package/pn-market-web-components/{p-e5ae757f.entry.js.map → p-d5c45da2.entry.js.map} +1 -1
- package/pn-market-web-components/p-d7170c0e.entry.js +2 -0
- package/pn-market-web-components/{p-d0a085cc.entry.js.map → p-d7170c0e.entry.js.map} +1 -1
- package/pn-market-web-components/p-d75a2f7c.entry.js +2 -0
- package/pn-market-web-components/p-d75a2f7c.entry.js.map +1 -0
- package/pn-market-web-components/p-daa74e60.entry.js +2 -0
- package/pn-market-web-components/{p-7076038b.entry.js.map → p-daa74e60.entry.js.map} +1 -1
- package/pn-market-web-components/p-dc2ee6f8.entry.js +2 -0
- package/pn-market-web-components/p-dc2ee6f8.entry.js.map +1 -0
- package/pn-market-web-components/p-e733f44f.entry.js +2 -0
- package/pn-market-web-components/p-e733f44f.entry.js.map +1 -0
- package/pn-market-web-components/p-e8622338.entry.js +2 -0
- package/pn-market-web-components/{p-b9505c69.entry.js.map → p-e8622338.entry.js.map} +1 -1
- package/pn-market-web-components/p-eb21f772.entry.js +2 -0
- package/pn-market-web-components/p-eb21f772.entry.js.map +1 -0
- package/pn-market-web-components/p-efab81a9.entry.js +2 -0
- package/pn-market-web-components/p-efab81a9.entry.js.map +1 -0
- package/pn-market-web-components/{p-278cda98.entry.js → p-f0df7694.entry.js} +4 -4
- package/pn-market-web-components/{p-278cda98.entry.js.map → p-f0df7694.entry.js.map} +1 -1
- package/pn-market-web-components/p-f21311ad.entry.js +2 -0
- package/pn-market-web-components/{p-545c24c0.entry.js.map → p-f21311ad.entry.js.map} +1 -1
- package/pn-market-web-components/p-f28059f4.entry.js +2 -0
- package/pn-market-web-components/{p-856c235c.entry.js.map → p-f28059f4.entry.js.map} +1 -1
- package/pn-market-web-components/p-f28d0971.entry.js +2 -0
- package/pn-market-web-components/{p-54f3a3b6.entry.js.map → p-f28d0971.entry.js.map} +1 -1
- package/pn-market-web-components/p-f4b14be8.entry.js +2 -0
- package/pn-market-web-components/{p-1ec21bd6.entry.js.map → p-f4b14be8.entry.js.map} +1 -1
- package/pn-market-web-components/p-f5d03222.entry.js +2 -0
- package/pn-market-web-components/{p-90242f18.entry.js.map → p-f5d03222.entry.js.map} +1 -1
- package/pn-market-web-components/{p-8af1b914.js → p-f9083b7a.js} +2 -2
- package/pn-market-web-components/{p-cafe11a9.js → p-fb4cdf98.js} +2 -2
- package/pn-market-web-components/p-fe466661.js +2 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
- package/types/components/cards/pn-teaser-card/pn-teaser-card.d.ts +1 -1
- package/types/components/input/pn-address-autofill/pn-address-autofill.d.ts +2 -3
- package/types/components/input/pn-address-autofill/translations.d.ts +3 -0
- package/types/components/input/pn-marketweb-search/pn-marketweb-search.d.ts +1 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.d.ts +0 -2
- package/types/components/media/pn-media-block/pn-media-block.d.ts +1 -1
- package/types/components/widgets/pn-chat/pn-chat-message/pn-chat-message.d.ts +10 -0
- package/types/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.d.ts +7 -0
- package/types/components/widgets/pn-chat/pn-chat-stories-constants.d.ts +164 -0
- package/types/components/widgets/pn-chat/pn-chat.d.ts +72 -0
- package/types/components/widgets/pn-chat/pn-chat.models.d.ts +22 -0
- package/types/components/widgets/pn-chat/pn-chat.service.d.ts +26 -0
- package/types/components/widgets/pn-chat/pn-chat.stories.d.ts +8 -0
- package/types/components/widgets/pn-chat/translations.d.ts +77 -0
- package/types/components/widgets/pn-chat/types.d.ts +68 -0
- package/types/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.d.ts +23 -0
- package/types/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.d.ts +5 -0
- package/types/components/widgets/pn-level-up/pn-level-up.d.ts +43 -0
- package/types/components/widgets/pn-level-up/pn-level-up.models.d.ts +22 -0
- package/types/components/widgets/pn-level-up/pn-level-up.service.d.ts +16 -0
- package/types/components/widgets/pn-level-up/pn-level-up.stories.d.ts +7 -0
- package/types/components/widgets/pn-level-up/types.d.ts +1 -0
- package/types/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.d.ts +48 -0
- package/types/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.d.ts +7 -0
- package/types/components/widgets/pn-marketweb-table/pn-marketweb-table.d.ts +55 -0
- package/types/components/widgets/pn-marketweb-table/pn-marketweb-table.service.d.ts +11 -0
- package/types/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.d.ts +26 -0
- package/types/components/widgets/pn-marketweb-table/translations.d.ts +72 -0
- package/types/components/widgets/pn-marketweb-table/types.d.ts +38 -0
- package/types/components/widgets/pn-qr-code-generator/pn-qr-code-generator.d.ts +23 -0
- package/types/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.d.ts +5 -0
- package/types/components/widgets/pn-search/pn-search.d.ts +29 -0
- package/types/components/widgets/pn-search/pn-search.stories.d.ts +7 -0
- package/types/components/widgets/pn-usp-simple/pn-usp-simple.d.ts +19 -0
- package/types/components/widgets/pn-usp-simple/pn-usp-simple.stories.d.ts +7 -0
- package/types/components.d.ts +393 -8
- package/types/globals/HeadingTag.d.ts +1 -1
- package/types/globals/LocalStorageService.d.ts +14 -0
- package/types/globals/ScreensizeDetect.d.ts +29 -0
- package/types/globals/types.d.ts +18 -0
- package/types/utils/utils.d.ts +1 -0
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +1 -1
- package/vscode-data.json +677 -3
- package/cjs/FetchHelper-e951824f.js.map +0 -1
- package/cjs/index-34e1c673.js.map +0 -1
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js.map +0 -1
- package/components/pn-marketweb-siteheader-login-mypage-button2.js +0 -38
- package/components/pn-marketweb-siteheader-login-mypage-button2.js.map +0 -1
- package/esm/FetchHelper-746f2bb6.js.map +0 -1
- package/esm/index-51d67461.js.map +0 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js.map +0 -1
- package/pn-market-web-components/p-066e9db9.entry.js +0 -2
- package/pn-market-web-components/p-0ec8d040.entry.js +0 -2
- package/pn-market-web-components/p-13190b30.js +0 -2
- package/pn-market-web-components/p-190c6938.entry.js +0 -2
- package/pn-market-web-components/p-1ec21bd6.entry.js +0 -2
- package/pn-market-web-components/p-231b97e1.entry.js +0 -2
- package/pn-market-web-components/p-23d69d70.entry.js +0 -2
- package/pn-market-web-components/p-23d69d70.entry.js.map +0 -1
- package/pn-market-web-components/p-24086c59.entry.js +0 -2
- package/pn-market-web-components/p-25d53df2.entry.js +0 -2
- package/pn-market-web-components/p-25dfc349.entry.js +0 -2
- package/pn-market-web-components/p-2b03a4e1.entry.js +0 -2
- package/pn-market-web-components/p-2b03a4e1.entry.js.map +0 -1
- package/pn-market-web-components/p-3fb8e665.entry.js +0 -2
- package/pn-market-web-components/p-45b8cadb.entry.js +0 -2
- package/pn-market-web-components/p-45d1e1be.entry.js +0 -2
- package/pn-market-web-components/p-4d2ca281.entry.js +0 -2
- package/pn-market-web-components/p-4e3059dd.entry.js +0 -2
- package/pn-market-web-components/p-4fa5bc85.entry.js +0 -2
- package/pn-market-web-components/p-530274ae.entry.js +0 -2
- package/pn-market-web-components/p-545c24c0.entry.js +0 -2
- package/pn-market-web-components/p-54f3a3b6.entry.js +0 -2
- package/pn-market-web-components/p-55643d76.entry.js +0 -2
- package/pn-market-web-components/p-572c4d81.entry.js +0 -2
- package/pn-market-web-components/p-572c4d81.entry.js.map +0 -1
- package/pn-market-web-components/p-59549c74.entry.js +0 -2
- package/pn-market-web-components/p-59cb7166.entry.js +0 -2
- package/pn-market-web-components/p-59cb7166.entry.js.map +0 -1
- package/pn-market-web-components/p-5a1b6e6d.entry.js +0 -2
- package/pn-market-web-components/p-5d06e48f.entry.js +0 -2
- package/pn-market-web-components/p-5d06e48f.entry.js.map +0 -1
- package/pn-market-web-components/p-62cabd1e.entry.js +0 -2
- package/pn-market-web-components/p-64d0dbba.entry.js +0 -2
- package/pn-market-web-components/p-652f97b9.js +0 -2
- package/pn-market-web-components/p-65ab3003.entry.js +0 -2
- package/pn-market-web-components/p-65f243c1.js.map +0 -1
- package/pn-market-web-components/p-6647d2c4.entry.js +0 -2
- package/pn-market-web-components/p-6a5f7dee.entry.js +0 -2
- package/pn-market-web-components/p-6fdd5b5a.entry.js +0 -2
- package/pn-market-web-components/p-7076038b.entry.js +0 -2
- package/pn-market-web-components/p-725aba56.entry.js +0 -2
- package/pn-market-web-components/p-725aba56.entry.js.map +0 -1
- package/pn-market-web-components/p-72dbca40.entry.js +0 -2
- package/pn-market-web-components/p-74fd7435.entry.js +0 -2
- package/pn-market-web-components/p-758f1b53.entry.js +0 -2
- package/pn-market-web-components/p-76e6708b.entry.js +0 -2
- package/pn-market-web-components/p-776f3d51.entry.js +0 -2
- package/pn-market-web-components/p-77a35f5e.entry.js +0 -2
- package/pn-market-web-components/p-7c3091eb.entry.js +0 -2
- package/pn-market-web-components/p-7c3091eb.entry.js.map +0 -1
- package/pn-market-web-components/p-856c235c.entry.js +0 -2
- package/pn-market-web-components/p-8c26b98d.entry.js +0 -2
- package/pn-market-web-components/p-90242f18.entry.js +0 -2
- package/pn-market-web-components/p-94a69959.entry.js +0 -2
- package/pn-market-web-components/p-94a69959.entry.js.map +0 -1
- package/pn-market-web-components/p-95519556.entry.js +0 -2
- package/pn-market-web-components/p-a38118be.entry.js +0 -2
- package/pn-market-web-components/p-a419cd91.entry.js +0 -2
- package/pn-market-web-components/p-a54a298b.entry.js +0 -2
- package/pn-market-web-components/p-a54a298b.entry.js.map +0 -1
- package/pn-market-web-components/p-a6866467.entry.js +0 -2
- package/pn-market-web-components/p-a72c2729.entry.js +0 -2
- package/pn-market-web-components/p-aeeabb32.entry.js +0 -2
- package/pn-market-web-components/p-b35cdbac.entry.js +0 -2
- package/pn-market-web-components/p-b5a0275d.entry.js +0 -2
- package/pn-market-web-components/p-b693f78a.entry.js +0 -2
- package/pn-market-web-components/p-b9340e9c.entry.js +0 -2
- package/pn-market-web-components/p-b9340e9c.entry.js.map +0 -1
- package/pn-market-web-components/p-b9505c69.entry.js +0 -2
- package/pn-market-web-components/p-bb1c965e.js +0 -3
- package/pn-market-web-components/p-bb1c965e.js.map +0 -1
- package/pn-market-web-components/p-c5772021.entry.js +0 -2
- package/pn-market-web-components/p-cf39491b.entry.js +0 -2
- package/pn-market-web-components/p-d0a085cc.entry.js +0 -2
- package/pn-market-web-components/p-e2e3ac2f.entry.js +0 -2
- package/pn-market-web-components/p-e5ae757f.entry.js +0 -2
- package/pn-market-web-components/p-e6e012fb.entry.js +0 -2
- package/pn-market-web-components/p-e8278e9e.entry.js +0 -2
- package/pn-market-web-components/p-e916e99d.entry.js +0 -2
- package/pn-market-web-components/p-ea3d6f7e.entry.js +0 -2
- package/pn-market-web-components/p-ea7b0d21.entry.js +0 -2
- package/pn-market-web-components/p-fc157a1e.entry.js +0 -2
- /package/pn-market-web-components/{p-652f97b9.js.map → p-72828265.js.map} +0 -0
- /package/pn-market-web-components/{p-e09a907b.js.map → p-793e1339.js.map} +0 -0
- /package/pn-market-web-components/{p-2509d18d.js.map → p-8836de82.js.map} +0 -0
- /package/pn-market-web-components/{p-560e5291.entry.js.map → p-8a651698.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-959a37d9.js.map → p-930e2943.js.map} +0 -0
- /package/pn-market-web-components/{p-155c2049.entry.js.map → p-ad9a7633.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-8af1b914.js.map → p-f9083b7a.js.map} +0 -0
- /package/pn-market-web-components/{p-cafe11a9.js.map → p-fb4cdf98.js.map} +0 -0
- /package/pn-market-web-components/{p-13190b30.js.map → p-fe466661.js.map} +0 -0
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b02670c2.js');
|
|
6
|
+
const arrow_right = require('./arrow_right-66958158.js');
|
|
7
|
+
const close = require('./close-9e014a80.js');
|
|
8
|
+
const minus = require('./minus-5b6b8813.js');
|
|
9
|
+
const LocalStorageService = require('./LocalStorageService-e1ee3fac.js');
|
|
10
|
+
const pnChat_service = require('./pn-chat.service-eaf6ed50.js');
|
|
11
|
+
require('./FetchHelper-2d4c697c.js');
|
|
12
|
+
|
|
13
|
+
const icon$1 = '<svg class="pn-icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="#000" fill-rule="evenodd" d="M21 11.998a1 1 0 0 1-.577.908l-15 7a1 1 0 0 1-1.237-1.487l4.585-6.42-1.46-2.043A1 1 0 1 1 8.94 8.794l1.875 2.625a1 1 0 0 1 0 1.162l-2.788 3.903 9.599-4.48L6.58 6.909a1 1 0 1 1 .838-1.816l13 6a1 1 0 0 1 .581.906M5 4a1 1 0 0 1 1 1v.01a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1" clip-rule="evenodd"/></svg>';
|
|
14
|
+
const submit = icon$1;
|
|
15
|
+
|
|
16
|
+
const icon = '<svg class="pn-icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="#000" fill-rule="evenodd" d="M12.388 2c5.522 0 10 4.477 10 10s-4.478 10-10 10H2l1.355-4.064-.798-3.987a8.8 8.8 0 0 1-.17-1.717V12c0-5.523 4.478-10 10-10m8 10a8 8 0 0 0-16 0v.232q0 .67.13 1.325l.902 4.507L4.775 20h7.612a8 8 0 0 0 8-8m-12.5-1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m6 1.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m3-1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3" clip-rule="evenodd"/></svg>';
|
|
17
|
+
const talk_bubble = icon;
|
|
18
|
+
|
|
19
|
+
const translations = {
|
|
20
|
+
'sv': {
|
|
21
|
+
relatedContentAriaLabel: 'Relaterat innehåll',
|
|
22
|
+
chatMinimizedAriaLabel: 'Chatten är minimerad',
|
|
23
|
+
chatOpenedAriaLabel: 'Chatten är öppen',
|
|
24
|
+
minimizeChatAriaLabel: 'Minimera chatten',
|
|
25
|
+
closeChatAriaLabel: 'Stäng chatten',
|
|
26
|
+
openChatAriaLabel: 'Öppna chatten',
|
|
27
|
+
chatControlsAriaLabel: 'Chattkontroller',
|
|
28
|
+
chatMessagesAriaLabel: 'Chattmeddelanden',
|
|
29
|
+
sentMessageAriaLabel: 'Meddelande skickat',
|
|
30
|
+
writeChatMessagePlaceholder: 'Skriv ett meddelande...',
|
|
31
|
+
waitingForAnswerLabel: 'Väntar på svar',
|
|
32
|
+
sendButtonText: 'Skicka',
|
|
33
|
+
loadingText: 'Laddar...',
|
|
34
|
+
},
|
|
35
|
+
'en': {
|
|
36
|
+
relatedContentAriaLabel: 'Related content',
|
|
37
|
+
chatMinimizedAriaLabel: 'Chat is minimized',
|
|
38
|
+
chatOpenedAriaLabel: 'Chat is open',
|
|
39
|
+
minimizeChatAriaLabel: 'Minimize chat',
|
|
40
|
+
closeChatAriaLabel: 'Close chat',
|
|
41
|
+
openChatAriaLabel: 'Open chat',
|
|
42
|
+
chatControlsAriaLabel: 'Chat controls',
|
|
43
|
+
chatMessagesAriaLabel: 'Chat messages',
|
|
44
|
+
sentMessageAriaLabel: 'Message sent',
|
|
45
|
+
writeChatMessagePlaceholder: 'Type a message...',
|
|
46
|
+
waitingForAnswerLabel: 'Waiting for answer',
|
|
47
|
+
sendButtonText: 'Send',
|
|
48
|
+
loadingText: 'Loading...',
|
|
49
|
+
},
|
|
50
|
+
'da': {
|
|
51
|
+
relatedContentAriaLabel: 'Relateret indhold',
|
|
52
|
+
chatMinimizedAriaLabel: 'Chatten er minimeret',
|
|
53
|
+
chatOpenedAriaLabel: 'Chatten er åben',
|
|
54
|
+
minimizeChatAriaLabel: 'Minimer chatten',
|
|
55
|
+
closeChatAriaLabel: 'Luk chatten',
|
|
56
|
+
openChatAriaLabel: 'Åbn chatten',
|
|
57
|
+
chatControlsAriaLabel: 'Chatkontroller',
|
|
58
|
+
chatMessagesAriaLabel: 'Chatbeskeder',
|
|
59
|
+
sentMessageAriaLabel: 'Besked sendt',
|
|
60
|
+
writeChatMessagePlaceholder: 'Skriv en besked...',
|
|
61
|
+
waitingForAnswerLabel: 'Venter på svar',
|
|
62
|
+
sendButtonText: 'Send',
|
|
63
|
+
loadingText: 'Indlæser...',
|
|
64
|
+
},
|
|
65
|
+
'no': {
|
|
66
|
+
relatedContentAriaLabel: 'Relatert innhold',
|
|
67
|
+
chatMinimizedAriaLabel: 'Chatten er minimert',
|
|
68
|
+
chatOpenedAriaLabel: 'Chatten er åpen',
|
|
69
|
+
minimizeChatAriaLabel: 'Minimer chatten',
|
|
70
|
+
closeChatAriaLabel: 'Lukk chatten',
|
|
71
|
+
openChatAriaLabel: 'Åpne chatten',
|
|
72
|
+
chatControlsAriaLabel: 'Chatkontroller',
|
|
73
|
+
chatMessagesAriaLabel: 'Chatmeldinger',
|
|
74
|
+
sentMessageAriaLabel: 'Melding sendt',
|
|
75
|
+
writeChatMessagePlaceholder: 'Skriv en melding...',
|
|
76
|
+
waitingForAnswerLabel: 'Venter på svar',
|
|
77
|
+
sendButtonText: 'Send',
|
|
78
|
+
loadingText: 'Laster...',
|
|
79
|
+
},
|
|
80
|
+
'fi': {
|
|
81
|
+
relatedContentAriaLabel: 'Aiheeseen liittyvä sisältö',
|
|
82
|
+
chatMinimizedAriaLabel: 'Keskustelu on pienennetty',
|
|
83
|
+
chatOpenedAriaLabel: 'Keskustelu on auki',
|
|
84
|
+
minimizeChatAriaLabel: 'Pienennä keskustelu',
|
|
85
|
+
closeChatAriaLabel: 'Sulje keskustelu',
|
|
86
|
+
openChatAriaLabel: 'Avaa keskustelu',
|
|
87
|
+
chatControlsAriaLabel: 'Keskustelun hallinta',
|
|
88
|
+
chatMessagesAriaLabel: 'Keskusteluviestit',
|
|
89
|
+
sentMessageAriaLabel: 'Viesti lähetetty',
|
|
90
|
+
writeChatMessagePlaceholder: 'Kirjoita viesti...',
|
|
91
|
+
waitingForAnswerLabel: 'Odotetaan vastausta',
|
|
92
|
+
sendButtonText: 'Lähetä',
|
|
93
|
+
loadingText: 'Ladataan...',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const pnChatCss = "pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}@media screen and (max-width: 767px){.sr-only-mobile{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}}.pn-chat{display:flex;flex-direction:column;height:600px;width:100%;max-width:400px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);border-radius:1.6rem}@media (max-width: 768px){.pn-chat:not(.minimized){position:absolute;height:100dvh;width:100dvw;max-width:100%;top:0;left:0}.pn-chat.minimized{height:70px;border-radius:0.8rem 0.8rem 0 0}}@media (min-width: 768px) and (max-width: 1024px){.pn-chat{max-width:350px}}.pn-chat .chat-header{background-color:#005d92;color:#ffffff;padding:0.8rem;padding-left:1.6rem;display:flex;justify-content:space-between;align-items:center}@media (min-width: 768px){.pn-chat .chat-header{border-radius:1.6rem 1.6rem 0 0}}.pn-chat .chat-header .chat-controls{display:flex}.pn-chat .chat-header pn-button.minimize-btn button.pn-button{padding-bottom:0}.pn-chat .chat-header pn-button.minimize-btn button.pn-button .pn-button-content{align-items:flex-end}.pn-chat .chat-header #chat-title{margin:0;font-size:2rem;font-weight:400;line-height:1.4}.pn-chat .chat-main{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto;gap:1.6rem;padding:1.6rem;padding-bottom:3.2rem;border-left:1px solid #d3cecb;border-right:1px solid #d3cecb;background-color:#ffffff}.pn-chat .chat-main.loading-chat-main{display:flex;justify-content:center;align-items:center;padding-bottom:1.6rem}.pn-chat .chat-loading-spinner{background-color:#005d92;width:4.8rem;height:4.8rem;border-radius:4.8rem;display:flex;align-items:center;justify-content:center}.pn-chat .chat-loading-content{color:#2d2013;font-size:1.6rem;font-weight:400}.pn-chat .chat-overview{text-align:center}.pn-chat .chat-messages{display:flex;flex-direction:column;gap:1.6rem;text-align:center}.pn-chat .card-container .slider-wrapper{margin:0}.pn-chat .card-container .slides-container{display:flex;gap:1rem}.pn-chat .card-container .slide:nth-child(even) [data-card]{width:calc(100% - 1rem)}@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.5;transform:scale(0.95)}}.pn-chat .chat-footer{background:#ffffff;border:1px solid #d3cecb;border-top:none}.pn-chat .chat-footer .form{display:flex;gap:0.7rem;padding:1rem}.pn-chat .chat-input-container{display:flex;flex-grow:1;justify-content:space-between;gap:0.7rem;background:#f9f8f8;border-radius:6.4rem}.pn-chat .chat-input-container .chat-text-input{text-indent:0.8rem;border:none;background:transparent;width:100%;outline:0.2rem solid transparent;outline-offset:0.2rem}.pn-chat .chat-input-container .chat-text-input:focus{border-radius:6.4rem}.pn-chat .chat-input-container .chat-text-input:focus-visible{outline-color:#005d92}.pn-chat .chat-input-container .chat-disabled-button{display:flex;width:3.5em;min-height:3em;min-width:0;align-items:center;justify-content:center}.pn-chat.minimized{background:transparent;border:initial;box-shadow:initial;max-width:50px;max-height:50px;min-width:initial;min-height:initial;transform:scale(0.95);cursor:pointer}.pn-chat.minimized .minimize-btn,.pn-chat.minimized .close-btn{position:absolute;top:0;right:0;bottom:0;left:0}.pn-chat.minimized .minimize-btn button,.pn-chat.minimized .close-btn button{display:none}.pn-chat.minimized .chat-main,.pn-chat.minimized .chat-footer{display:none}.pn-chat.closed{display:none}.pn-chat .open-chat-btn .pn-button{width:5.6rem;height:5.6rem}.pn-chat .open-chat-btn .pn-icon svg{width:3.2rem;height:3.2rem}.pn-chat .indicator-icon{padding:0.2rem 0.8rem;margin-right:auto;margin-top:1rem;margin-bottom:2rem;visibility:hidden}@media (max-width: 768px){body.chat-open{overflow:hidden}}";
|
|
98
|
+
const PnChatStyle0 = pnChatCss;
|
|
99
|
+
|
|
100
|
+
const PnChat = class {
|
|
101
|
+
constructor(hostRef) {
|
|
102
|
+
index.registerInstance(this, hostRef);
|
|
103
|
+
this.endpoint = undefined;
|
|
104
|
+
this.customerSegment = undefined;
|
|
105
|
+
this.mainHeading = '';
|
|
106
|
+
this.relatedContentAriaLabel = undefined;
|
|
107
|
+
this.chatMinimizedAriaLabel = undefined;
|
|
108
|
+
this.chatOpenedAriaLabel = undefined;
|
|
109
|
+
this.minimizeChatAriaLabel = undefined;
|
|
110
|
+
this.closeChatAriaLabel = undefined;
|
|
111
|
+
this.openChatAriaLabel = undefined;
|
|
112
|
+
this.chatControlsAriaLabel = undefined;
|
|
113
|
+
this.chatMessagesAriaLabel = undefined;
|
|
114
|
+
this.sentMessageAriaLabel = undefined;
|
|
115
|
+
this.writeChatMessagePlaceholder = undefined;
|
|
116
|
+
this.waitingForAnswerLabel = undefined;
|
|
117
|
+
this.sendButtonText = undefined;
|
|
118
|
+
this.loadingText = undefined;
|
|
119
|
+
this.carouselSlidesToShow = 1;
|
|
120
|
+
this.messages = undefined;
|
|
121
|
+
this.language = 'sv';
|
|
122
|
+
this.market = 'se';
|
|
123
|
+
this.itemId = '';
|
|
124
|
+
this.pnChatId = '00000000-0000-0000-0000-000000000000';
|
|
125
|
+
this.forceOpen = false;
|
|
126
|
+
this.isLoggedIn = false;
|
|
127
|
+
this.message = '';
|
|
128
|
+
this.messagesData = undefined;
|
|
129
|
+
this.isMinimized = true;
|
|
130
|
+
this.isClosed = false;
|
|
131
|
+
this.lastMessageId = '';
|
|
132
|
+
this.i18n = undefined;
|
|
133
|
+
}
|
|
134
|
+
chatId;
|
|
135
|
+
_defaultChatId = '00000000-0000-0000-0000-000000000000';
|
|
136
|
+
_defaultAlternativeChatId = '1';
|
|
137
|
+
chatLocalStorageKey = 'sf-chat-state';
|
|
138
|
+
chatMessagesContainer;
|
|
139
|
+
chatRef;
|
|
140
|
+
inputRef;
|
|
141
|
+
storage = new LocalStorageService.LocalStorageService();
|
|
142
|
+
_chatService;
|
|
143
|
+
_chatSegment = "#chat";
|
|
144
|
+
_forceClose = false;
|
|
145
|
+
componentWillLoad() {
|
|
146
|
+
this._forceClose = false;
|
|
147
|
+
this._chatService = new pnChat_service.PnChatService(this.endpoint, this.market, this.language);
|
|
148
|
+
this.messagesData = {
|
|
149
|
+
header: {},
|
|
150
|
+
messages: [],
|
|
151
|
+
};
|
|
152
|
+
let storageId = this.storage.get(this.chatLocalStorageKey);
|
|
153
|
+
if (storageId && storageId.isLoggedIn === !this.isLoggedIn) {
|
|
154
|
+
this.storage.remove(this.chatLocalStorageKey);
|
|
155
|
+
}
|
|
156
|
+
else if (storageId && storageId.chatId) {
|
|
157
|
+
this.chatId = storageId?.chatId ?? this.chatId;
|
|
158
|
+
}
|
|
159
|
+
this.setTranslations();
|
|
160
|
+
setInterval(() => {
|
|
161
|
+
this.updateChat();
|
|
162
|
+
}, 1500);
|
|
163
|
+
}
|
|
164
|
+
setTranslations() {
|
|
165
|
+
if (this.language && translations[this.language]) {
|
|
166
|
+
this.i18n = translations[this.language];
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
getTranslation(key) {
|
|
170
|
+
const value = this[key];
|
|
171
|
+
if (value === undefined || value === null || value === '') {
|
|
172
|
+
return translations[this.language]?.[key] ?? translations['en'][key];
|
|
173
|
+
}
|
|
174
|
+
return value;
|
|
175
|
+
}
|
|
176
|
+
async updateChat() {
|
|
177
|
+
if (this.isMinimized || this.isClosed) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
let prevLastMessageId = this.lastMessageId;
|
|
181
|
+
await this._chatService.fetchMessages(this.chatId, this.messagesData).then(newMessages => {
|
|
182
|
+
this.lastMessageId = this._chatService.GetLastMessageId(newMessages?.messages, this.lastMessageId);
|
|
183
|
+
let htmlCollection = document.getElementsByClassName('pn-chat-before');
|
|
184
|
+
let elements = Array.from(htmlCollection);
|
|
185
|
+
newMessages.messages.forEach(message => {
|
|
186
|
+
elements.forEach(element => {
|
|
187
|
+
if (message.content != null && (element.textContent.trim() === message.content.trim() || element.textContent.trim().includes(message.content.trim()))) {
|
|
188
|
+
element.remove();
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
this.renderMessage(message);
|
|
192
|
+
});
|
|
193
|
+
if (prevLastMessageId !== this.lastMessageId) {
|
|
194
|
+
this._chatService.updateLastMessageId(this.chatId, this.lastMessageId);
|
|
195
|
+
this.messagesData = newMessages;
|
|
196
|
+
newMessages.messages.forEach(message => {
|
|
197
|
+
this.renderMessage(message);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
async setStartValues() {
|
|
203
|
+
if (this._forceClose) {
|
|
204
|
+
this._forceClose = false;
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if ((!this.chatId || this.chatId === this._defaultChatId || this.chatId === this._defaultAlternativeChatId) && !this.isMinimized) {
|
|
208
|
+
this.chatId = await this._chatService.startChat(this.pnChatId, this.itemId);
|
|
209
|
+
this.storage.set(this.chatLocalStorageKey, { chatId: this.chatId, isLoggedIn: this.isLoggedIn });
|
|
210
|
+
}
|
|
211
|
+
if (this.chatId) {
|
|
212
|
+
this.storage.set(this.chatLocalStorageKey, { chatId: this.chatId, isLoggedIn: this.isLoggedIn });
|
|
213
|
+
await this.fetchMessages();
|
|
214
|
+
this.lastMessageId = this._chatService.GetLastMessageId(this.messagesData.messages, this.lastMessageId);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
async fetchMessages() {
|
|
218
|
+
await this._chatService.fetchMessages(this.chatId, this.messagesData).then(newMessages => {
|
|
219
|
+
this.lastMessageId = this._chatService.GetLastMessageId(this.messagesData.messages, this.lastMessageId);
|
|
220
|
+
this.messagesData = newMessages;
|
|
221
|
+
let htmlCollection = document.getElementsByClassName('pn-chat-before');
|
|
222
|
+
let elements = Array.from(htmlCollection);
|
|
223
|
+
newMessages.messages.forEach(message => {
|
|
224
|
+
elements.forEach(element => {
|
|
225
|
+
if (element.textContent.trim() === message.content.trim() || element.textContent.trim().includes(message.content.trim())) {
|
|
226
|
+
element.remove();
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
this.renderMessage(message);
|
|
230
|
+
});
|
|
231
|
+
return newMessages;
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
async handleSend() {
|
|
235
|
+
if (!this.message?.trim()) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
let message = this.message;
|
|
239
|
+
this.message = '';
|
|
240
|
+
this.createBeforeElement(message);
|
|
241
|
+
let responseId = await this._chatService.sendMessage(message, this.itemId, this.chatId, this.lastMessageId, 'Text');
|
|
242
|
+
this.lastMessageId = responseId;
|
|
243
|
+
this.lastMessageId = this._chatService.GetLastMessageId(this.messagesData.messages, this.lastMessageId);
|
|
244
|
+
this.announceToScreenReader(this.getTranslation('sentMessageAriaLabel'));
|
|
245
|
+
}
|
|
246
|
+
;
|
|
247
|
+
groupMessages() {
|
|
248
|
+
const result = [];
|
|
249
|
+
let currentCardGroup = [];
|
|
250
|
+
const flushCardGroup = () => {
|
|
251
|
+
if (currentCardGroup.length > 0) {
|
|
252
|
+
const carouselData = {
|
|
253
|
+
slides: currentCardGroup.map(card => {
|
|
254
|
+
const cardHtml = `
|
|
255
|
+
<pn-chat-message customerSegment=${this.customerSegment} data-card role="article" category=${card.category}>
|
|
256
|
+
<h2 class="card-heading">${card.heading}</h2>
|
|
257
|
+
<p>${card.content}</p>
|
|
258
|
+
${card.buttons
|
|
259
|
+
?.map(button => `
|
|
260
|
+
<pn-button
|
|
261
|
+
href="${button.href}"
|
|
262
|
+
class="${button.class}"
|
|
263
|
+
appearance="${button.appearance}"
|
|
264
|
+
variant="${button.variant}"
|
|
265
|
+
small="${button.small}"
|
|
266
|
+
role="button"
|
|
267
|
+
>
|
|
268
|
+
${button.content}
|
|
269
|
+
</pn-button>
|
|
270
|
+
`)
|
|
271
|
+
.join('') || ''}
|
|
272
|
+
</pn-chat-message>
|
|
273
|
+
`;
|
|
274
|
+
return cardHtml;
|
|
275
|
+
}),
|
|
276
|
+
};
|
|
277
|
+
result.push(index.h("pn-marketweb-carousel", { class: "card-container", nextButtonLabel: "Next", previousButtonLabel: "Previous", ariaNavigationLabel: this.getTranslation('relatedContentAriaLabel'), slidesToShow: this.carouselSlidesToShow, source: JSON.stringify(carouselData) }));
|
|
278
|
+
currentCardGroup = [];
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
this.messagesData.messages.forEach((message, index) => {
|
|
282
|
+
if (message.category === 'Card') {
|
|
283
|
+
currentCardGroup.push(message);
|
|
284
|
+
if (index === this.messagesData.messages.length - 1 || this.messagesData.messages[index + 1]?.category !== 'Card') {
|
|
285
|
+
flushCardGroup();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
flushCardGroup();
|
|
290
|
+
result.push(this.renderMessage(message));
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
return result;
|
|
294
|
+
}
|
|
295
|
+
handleKeyPress = (event) => {
|
|
296
|
+
if (event.key === 'Enter' && this.message.trim()) {
|
|
297
|
+
event.preventDefault();
|
|
298
|
+
this.handleSend();
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
handleSendMessage = (event) => {
|
|
302
|
+
if (this.message.trim()) {
|
|
303
|
+
event.preventDefault();
|
|
304
|
+
this.handleSend();
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
handleButtonKeyDown(event) {
|
|
308
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
309
|
+
event.preventDefault();
|
|
310
|
+
event.target.click();
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
handleKeyDown(event) {
|
|
314
|
+
if (event.key === 'Escape' && this.isMinimized && !this.isClosed) {
|
|
315
|
+
this.toggleChat();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
handleMessagesChange(newMessage) {
|
|
319
|
+
if (newMessage) {
|
|
320
|
+
this.handleSend();
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
handleNewChatId() {
|
|
324
|
+
this.chatId = this.pnChatId === this._defaultAlternativeChatId ? this._defaultChatId : this.pnChatId;
|
|
325
|
+
this.messagesData.messages = [];
|
|
326
|
+
this.isMinimized = false;
|
|
327
|
+
this.setStartValues();
|
|
328
|
+
}
|
|
329
|
+
handleSameChatId() {
|
|
330
|
+
this.isMinimized = false;
|
|
331
|
+
}
|
|
332
|
+
scrollToBottom() {
|
|
333
|
+
const observer = new MutationObserver((_, obs) => {
|
|
334
|
+
const chatMain = document.getElementById('chat-main');
|
|
335
|
+
if (chatMain) {
|
|
336
|
+
setTimeout(() => {
|
|
337
|
+
chatMain.scrollTo({
|
|
338
|
+
top: chatMain.scrollHeight,
|
|
339
|
+
behavior: 'smooth'
|
|
340
|
+
});
|
|
341
|
+
}, 500);
|
|
342
|
+
obs.disconnect();
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
observer.observe(document.body, { childList: true, subtree: true, });
|
|
346
|
+
}
|
|
347
|
+
closeChat = () => {
|
|
348
|
+
this._forceClose = true;
|
|
349
|
+
this.storage.remove(this.chatLocalStorageKey);
|
|
350
|
+
this.chatId = null;
|
|
351
|
+
this.pnChatId = this._defaultChatId;
|
|
352
|
+
let chatElement = document.getElementsByTagName('pn-chat')[0];
|
|
353
|
+
chatElement.setAttribute('item-id', '');
|
|
354
|
+
let hasActiveShipmentInUrl = window.location.href.includes(this._chatSegment);
|
|
355
|
+
if (hasActiveShipmentInUrl) {
|
|
356
|
+
this.isMinimized = !this.isMinimized;
|
|
357
|
+
this.announceToScreenReader(this.isMinimized ? this.getTranslation('chatMinimizedAriaLabel') : this.getTranslation('chatOpenedAriaLabel'));
|
|
358
|
+
document.body.classList.toggle('chat-open');
|
|
359
|
+
window.location.href = window.location.href.split(this._chatSegment)[0];
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
this._forceClose = false;
|
|
363
|
+
this.toggleChat();
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
toggleChat = () => {
|
|
367
|
+
this.isMinimized = !this.isMinimized;
|
|
368
|
+
this.announceToScreenReader(this.isMinimized ? this.getTranslation('chatMinimizedAriaLabel') : this.getTranslation('chatOpenedAriaLabel'));
|
|
369
|
+
document.body.classList.toggle('chat-open');
|
|
370
|
+
if (!this.isMinimized && !this.chatId) {
|
|
371
|
+
this.setStartValues();
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
announceToScreenReader(message) {
|
|
375
|
+
const announcement = document.createElement('div');
|
|
376
|
+
announcement.setAttribute('role', 'status');
|
|
377
|
+
announcement.setAttribute('aria-live', 'polite');
|
|
378
|
+
announcement.classList.add('sr-only');
|
|
379
|
+
announcement.textContent = message;
|
|
380
|
+
document.body.appendChild(announcement);
|
|
381
|
+
setTimeout(() => announcement.remove(), 1000);
|
|
382
|
+
}
|
|
383
|
+
renderMessage(message) {
|
|
384
|
+
switch (message.category) {
|
|
385
|
+
case 'Bot':
|
|
386
|
+
return this.renderBaseMessage(message);
|
|
387
|
+
case 'Button':
|
|
388
|
+
return this.renderButtonMessage(message);
|
|
389
|
+
case 'ButtonResponse':
|
|
390
|
+
return this.renderBaseMessage(message);
|
|
391
|
+
case 'Link':
|
|
392
|
+
return this.renderLinkMessage(message);
|
|
393
|
+
case 'Card':
|
|
394
|
+
return this.renderCardMessage(message);
|
|
395
|
+
case 'User':
|
|
396
|
+
return this.renderBaseMessage(message);
|
|
397
|
+
case 'Agent':
|
|
398
|
+
return this.renderAgentMessage(message);
|
|
399
|
+
case 'System':
|
|
400
|
+
return this.renderBaseMessage(message);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
renderBaseMessage(message) {
|
|
404
|
+
return (index.h("pn-chat-message", { customerSegment: this.customerSegment, category: message.category, agentName: '', role: "log", "aria-live": "polite" }, message.content));
|
|
405
|
+
}
|
|
406
|
+
renderAgentMessage(message) {
|
|
407
|
+
return (index.h("pn-chat-message", { customerSegment: this.customerSegment, category: message.category, agentName: message.agentName, role: "log", "aria-live": "polite" }, message.content));
|
|
408
|
+
}
|
|
409
|
+
renderButtonMessage(message) {
|
|
410
|
+
let props = {};
|
|
411
|
+
if (message?.props) {
|
|
412
|
+
try {
|
|
413
|
+
props = JSON.parse(message.props);
|
|
414
|
+
}
|
|
415
|
+
catch (error) {
|
|
416
|
+
console.error('Error parsing button props', error instanceof Error ? error.message : 'Unknown error');
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
const handleClick = () => {
|
|
420
|
+
if (props['data-action'] === 'minimize') {
|
|
421
|
+
this.toggleChat();
|
|
422
|
+
}
|
|
423
|
+
if (props['dataAction'] === 'choice' && props['dataOptionChoice']) {
|
|
424
|
+
(async () => {
|
|
425
|
+
await this.handleSendChoice(props['dataOptionChoice'], message.content);
|
|
426
|
+
})();
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
return (index.h("pn-chat-message", { customerSegment: this.customerSegment, category: message.category }, index.h("pn-button", { class: message.class, role: "button", ...props, onClick: handleClick, onKeyDown: e => this.handleButtonKeyDown(e) }, message.content)));
|
|
430
|
+
}
|
|
431
|
+
createBeforeElement(content) {
|
|
432
|
+
const targetElement = this.chatMessagesContainer;
|
|
433
|
+
const chatMessage = document.createElement('pn-chat-message');
|
|
434
|
+
chatMessage.setAttribute('customerSegment', this.customerSegment);
|
|
435
|
+
chatMessage.setAttribute('category', 'User');
|
|
436
|
+
chatMessage.classList.add('pn-chat-before');
|
|
437
|
+
chatMessage.textContent = content;
|
|
438
|
+
targetElement.appendChild(chatMessage);
|
|
439
|
+
this.scrollToBottom();
|
|
440
|
+
chatMessage.scrollIntoView();
|
|
441
|
+
}
|
|
442
|
+
async handleSendChoice(choiceId, content) {
|
|
443
|
+
this.createBeforeElement(content);
|
|
444
|
+
let responseId = await this._chatService.sendMessage(choiceId, this.itemId, this.chatId, this.lastMessageId, 'Choice');
|
|
445
|
+
this.lastMessageId = responseId;
|
|
446
|
+
this.lastMessageId = this._chatService.GetLastMessageId(this.messagesData.messages, this.lastMessageId);
|
|
447
|
+
this.announceToScreenReader(this.getTranslation('sentMessageAriaLabel'));
|
|
448
|
+
}
|
|
449
|
+
renderLinkMessage(message) {
|
|
450
|
+
return (index.h("pn-chat-message", { customerSegment: this.customerSegment, category: message.category }, index.h("a", { href: message.href, role: "link", rel: "noopener noreferrer" }, index.h("span", { class: "content" }, message.content), index.h("pn-icon", { icon: arrow_right.arrow_right, color: "blue700", "aria-hidden": "true", role: "presentation" }))));
|
|
451
|
+
}
|
|
452
|
+
renderCardMessage(message) {
|
|
453
|
+
return (index.h("pn-chat-message", { customerSegment: this.customerSegment, category: message.category, "data-card": true, role: "article" }, index.h("h2", { class: "card-heading" }, message.heading), index.h("p", null, message.content), message.buttons && (index.h("div", { class: "cta" }, message.buttons?.map(button => (index.h("pn-button", { href: button.href, class: button.class, appearance: button.appearance, variant: button.variant, small: button.small, role: "button", onKeyDown: e => this.handleButtonKeyDown(e) }, button.content)))))));
|
|
454
|
+
}
|
|
455
|
+
render() {
|
|
456
|
+
const mainId = 'chat-main';
|
|
457
|
+
const inputId = 'chat-input';
|
|
458
|
+
const headerButton = this.messagesData?.header.button;
|
|
459
|
+
return (index.h(index.Host, { key: '0cf24e9474bc0e7e39ec51b8e9bf7646f4ac21d8', class: this.customerSegment }, !this.isClosed && this.messagesData && (index.h("div", { key: 'f275614056e1f2df7972377ae3041ab690eae830', class: `pn-chat ${this.isMinimized ? 'minimized' : ''} ${this.isClosed ? 'closed' : ''}`, ref: el => (this.chatRef = el), role: "region", "aria-label": this.mainHeading }, !this.isMinimized && (index.h(index.Fragment, { key: '8bc0f594242ab297bc95e091a95bd382c1ce0b31' }, index.h("header", { key: '7a20b62deac0cb3fa34bf3abf7dba3f8eccb94e7', class: "chat-header", role: "banner" }, index.h("h1", { key: '0dbe95cfd3ca8856fc95bfd3e0a6e970b87ec6df', id: "chat-title" }, this.mainHeading), index.h("div", { key: '3c7ecf77edb890a351882a22a0910cdc8e2abc7b', class: "chat-controls", role: "toolbar", "aria-label": this.getTranslation('chatControlsAriaLabel') }, index.h("pn-button", { key: '564dd6d3c7234356f3805b4e0808411d97e41292', icon: minus.minus, "icon-only": "true", class: "minimize-btn", onClick: this.toggleChat, "aria-expanded": !this.isMinimized, "aria-controls": mainId, "aria-label": this.getTranslation('minimizeChatAriaLabel'), variant: "borderless", tooltip: this.getTranslation('minimizeChatAriaLabel') }), index.h("pn-button", { key: '5d2873c2409d3caa7887bf9b99de5f64b5c8af22', icon: close.close, "icon-only": "true", class: "close-btn", onClick: this.closeChat, "aria-expanded": !this.isMinimized, "aria-label": this.getTranslation('closeChatAriaLabel'), variant: "borderless", tooltip: this.getTranslation('closeChatAriaLabel') }))), (this.messagesData?.messages?.length ?? 0) > 0 ?
|
|
460
|
+
(index.h("main", { id: mainId, class: "chat-main", role: "main", "aria-labelledby": "chat-title" }, this.messagesData.header && (index.h("div", { class: "chat-overview" }, index.h("div", { class: "body" }, this.messagesData.header.body), headerButton && (index.h("pn-button", { href: headerButton.href, class: headerButton.class, appearance: headerButton.appearance, variant: headerButton.variant, small: headerButton.small, role: "button", onKeyDown: e => this.handleButtonKeyDown(e) }, headerButton.content)))), index.h("div", { ref: el => (this.chatMessagesContainer = el), class: "chat-messages", role: "log", "aria-live": "polite", "aria-label": this.getTranslation('chatMessagesAriaLabel') }, this.groupMessages()), index.h("pn-icon", { class: "indicator-icon", "aria-label": this.getTranslation('waitingForAnswerLabel'), role: "presentation" })))
|
|
461
|
+
: (index.h("main", { id: mainId, class: "chat-main loading-chat-main", role: "main", "aria-labelledby": "chat-title" }, index.h("div", { class: "chat-loading-spinner" }, index.h("pn-spinner", { light: "true", size: "1.5" })), index.h("span", { class: "chat-loading-content" }, this.getTranslation('loadingText')))), index.h("footer", { key: '6d8a4b4e0ce587c39f307f5ad37dd7498eaaaa4a', class: "chat-footer", role: "contentinfo" }, index.h("div", { key: 'b2879f8c86f2d01cd9563d21d9303b2e4d649503', class: "form", role: "form", "aria-labelledby": inputId }, index.h("label", { key: '9af815bef9cf42c18379839844bcf0101bd3921e', htmlFor: inputId, class: "sr-only" }, this.getTranslation('writeChatMessagePlaceholder')), index.h("div", { key: '97007d97f8fe0a7c5f8b8e9c25bbe20918679484', class: "chat-input-container" }, index.h("input", { key: '6e156d7ad63763316d2be89b925099fa03984232', id: inputId, class: "chat-text-input", ref: el => (this.inputRef = el), type: "text", placeholder: this.getTranslation('writeChatMessagePlaceholder'), value: this.message, onInput: (e) => (this.message = e.target.value), onKeyPress: this.handleKeyPress, maxLength: 3990 }), !this.message.trim() ? (index.h("div", { class: "chat-disabled-button", role: "button", "aria-label": this.getTranslation('sendButtonText'), "aria-disabled": "true", tabIndex: -1 }, index.h("pn-icon", { color: "gray400", icon: submit }))) : (index.h("pn-button", { "icon-only": "true", variant: "borderless", appearance: "light", icon: submit, onClick: this.handleSendMessage, disabled: !this.message.trim(), "aria-label": this.getTranslation('sendButtonText'), tooltip: this.getTranslation('sendButtonText') }))))))), this.isMinimized && (index.h("pn-button", { key: '98f1a01a3774b504c91e72279133f46d327c723f', icon: talk_bubble, "icon-only": "true", class: "open-chat-btn", onClick: this.toggleChat, tooltip: this.getTranslation('openChatAriaLabel'), "aria-label": this.getTranslation('openChatAriaLabel'), "aria-expanded": !this.isMinimized }))))));
|
|
462
|
+
}
|
|
463
|
+
static get watchers() { return {
|
|
464
|
+
"messages": ["handleMessagesChange"],
|
|
465
|
+
"pnChatId": ["handleNewChatId"],
|
|
466
|
+
"forceOpen": ["handleSameChatId"],
|
|
467
|
+
"isMinimized": ["scrollToBottom"]
|
|
468
|
+
}; }
|
|
469
|
+
};
|
|
470
|
+
PnChat.style = PnChatStyle0;
|
|
471
|
+
|
|
472
|
+
exports.pn_chat = PnChat;
|
|
473
|
+
|
|
474
|
+
//# sourceMappingURL=pn-chat.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pn-chat.entry.cjs.js","mappings":";;;;;;;;;;;;AAAA,MAAMA,MAAI,GAAG,0aAA0a,CAAC;AACjb,MAAM,MAAM,GAAGA,MAAI;;ACD1B,MAAM,IAAI,GAAG,ifAAif,CAAC;AACxf,MAAM,WAAW,GAAG,IAAI;;ACDxB,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,uBAAuB,EAAE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AAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,gBAClB,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EACjD,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,GACpC,CACb,CACG,CACF,CACC,CACA,CACZ,EACA,IAAI,CAAC,WAAW,KACfA,wEACE,IAAI,EAAE,WAAW,eACP,MAAM,EAChB,KAAK,EAAC,eAAe,EACrB,OAAO,EAAE,IAAI,CAAC,UAAU,EACxB,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,gBACrC,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,mBACrC,CAAC,IAAI,CAAC,WAAW,GACrB,CACd,CACG,CACP,CACI,EACP;KACH;;;;;;;;;;;;","names":["icon","LocalStorageService","PnChatService","h","arrow_right","Host","Fragment","minus","close"],"sources":["node_modules/pn-design-assets/pn-assets/icons/submit.js","node_modules/pn-design-assets/pn-assets/icons/talk_bubble.js","src/components/widgets/pn-chat/translations.ts","src/components/widgets/pn-chat/pn-chat.scss?tag=pn-chat","src/components/widgets/pn-chat/pn-chat.tsx"],"sourcesContent":["const icon = '<svg class=\"pn-icon-svg\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\"><path fill=\"#000\" fill-rule=\"evenodd\" d=\"M21 11.998a1 1 0 0 1-.577.908l-15 7a1 1 0 0 1-1.237-1.487l4.585-6.42-1.46-2.043A1 1 0 1 1 8.94 8.794l1.875 2.625a1 1 0 0 1 0 1.162l-2.788 3.903 9.599-4.48L6.58 6.909a1 1 0 1 1 .838-1.816l13 6a1 1 0 0 1 .581.906M5 4a1 1 0 0 1 1 1v.01a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1\" clip-rule=\"evenodd\"/></svg>';\nexport const submit = icon;\n","const icon = '<svg class=\"pn-icon-svg\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\"><path fill=\"#000\" fill-rule=\"evenodd\" d=\"M12.388 2c5.522 0 10 4.477 10 10s-4.478 10-10 10H2l1.355-4.064-.798-3.987a8.8 8.8 0 0 1-.17-1.717V12c0-5.523 4.478-10 10-10m8 10a8 8 0 0 0-16 0v.232q0 .67.13 1.325l.902 4.507L4.775 20h7.612a8 8 0 0 0 8-8m-12.5-1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m6 1.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m3-1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3\" clip-rule=\"evenodd\"/></svg>';\nexport const talk_bubble = icon;\nexport const talkBubble = icon;\n","export const translations = {\n 'sv': {\n relatedContentAriaLabel: 'Relaterat innehåll',\n chatMinimizedAriaLabel: 'Chatten är minimerad',\n chatOpenedAriaLabel: 'Chatten är öppen',\n minimizeChatAriaLabel: 'Minimera chatten',\n closeChatAriaLabel: 'Stäng chatten',\n openChatAriaLabel: 'Öppna chatten',\n chatControlsAriaLabel: 'Chattkontroller',\n chatMessagesAriaLabel: 'Chattmeddelanden',\n sentMessageAriaLabel: 'Meddelande skickat',\n writeChatMessagePlaceholder: 'Skriv ett meddelande...',\n waitingForAnswerLabel: 'Väntar på svar',\n sendButtonText: 'Skicka',\n loadingText: 'Laddar...',\n },\n 'en': {\n relatedContentAriaLabel: 'Related content',\n chatMinimizedAriaLabel: 'Chat is minimized',\n chatOpenedAriaLabel: 'Chat is open',\n minimizeChatAriaLabel: 'Minimize chat',\n closeChatAriaLabel: 'Close chat',\n openChatAriaLabel: 'Open chat',\n chatControlsAriaLabel: 'Chat controls',\n chatMessagesAriaLabel: 'Chat messages',\n sentMessageAriaLabel: 'Message sent',\n writeChatMessagePlaceholder: 'Type a message...',\n waitingForAnswerLabel: 'Waiting for answer',\n sendButtonText: 'Send',\n loadingText: 'Loading...',\n },\n 'da': {\n relatedContentAriaLabel: 'Relateret indhold',\n chatMinimizedAriaLabel: 'Chatten er minimeret',\n chatOpenedAriaLabel: 'Chatten er åben',\n minimizeChatAriaLabel: 'Minimer chatten',\n closeChatAriaLabel: 'Luk chatten',\n openChatAriaLabel: 'Åbn chatten',\n chatControlsAriaLabel: 'Chatkontroller',\n chatMessagesAriaLabel: 'Chatbeskeder',\n sentMessageAriaLabel: 'Besked sendt',\n writeChatMessagePlaceholder: 'Skriv en besked...',\n waitingForAnswerLabel: 'Venter på svar',\n sendButtonText: 'Send',\n loadingText: 'Indlæser...',\n },\n 'no': {\n relatedContentAriaLabel: 'Relatert innhold',\n chatMinimizedAriaLabel: 'Chatten er minimert',\n chatOpenedAriaLabel: 'Chatten er åpen',\n minimizeChatAriaLabel: 'Minimer chatten',\n closeChatAriaLabel: 'Lukk chatten',\n openChatAriaLabel: 'Åpne chatten',\n chatControlsAriaLabel: 'Chatkontroller',\n chatMessagesAriaLabel: 'Chatmeldinger',\n sentMessageAriaLabel: 'Melding sendt',\n writeChatMessagePlaceholder: 'Skriv en melding...',\n waitingForAnswerLabel: 'Venter på svar',\n sendButtonText: 'Send',\n loadingText: 'Laster...',\n },\n 'fi': {\n relatedContentAriaLabel: 'Aiheeseen liittyvä sisältö',\n chatMinimizedAriaLabel: 'Keskustelu on pienennetty',\n chatOpenedAriaLabel: 'Keskustelu on auki',\n minimizeChatAriaLabel: 'Pienennä keskustelu',\n closeChatAriaLabel: 'Sulje keskustelu',\n openChatAriaLabel: 'Avaa keskustelu',\n chatControlsAriaLabel: 'Keskustelun hallinta',\n chatMessagesAriaLabel: 'Keskusteluviestit',\n sentMessageAriaLabel: 'Viesti lähetetty',\n writeChatMessagePlaceholder: 'Kirjoita viesti...',\n waitingForAnswerLabel: 'Odotetaan vastausta',\n sendButtonText: 'Lähetä',\n loadingText: 'Ladataan...',\n },\n};","@import '../../../globals/main.scss';\n$spacing: 1.6rem;\n\n.pn-chat {\n @media (max-width: 768px) {\n &:not(.minimized) {\n position: absolute;\n height: 100dvh;\n width: 100dvw;\n max-width: 100%;\n top: 0;\n left: 0;\n }\n\n &.minimized {\n height: 70px;\n border-radius: 0.8rem 0.8rem 0 0;\n }\n }\n\n @media (min-width: 768px) and (max-width: 1024px) {\n max-width: 350px;\n\n }\n\n display: flex;\n flex-direction: column;\n height: 600px;\n width: 100%;\n max-width: 400px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n border-radius: 1.6rem;\n\n .chat-header {\n background-color: $blue700;\n color: $white;\n padding: 0.8rem;\n padding-left: 1.6rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n @media (min-width: 768px) {\n border-radius: 1.6rem 1.6rem 0 0;\n }\n\n .chat-controls {\n display: flex;\n }\n\n pn-button.minimize-btn {\n button.pn-button {\n padding-bottom: 0;\n\n .pn-button-content {\n align-items: flex-end;\n }\n }\n }\n }\n\n .chat-header #chat-title {\n margin: 0;\n font-size: 2rem;\n font-weight: 400;\n line-height: 1.4;\n }\n\n .chat-main {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow-y: auto;\n gap: $spacing;\n padding: $spacing;\n padding-bottom: $spacing * 2;\n border-left: 1px solid $gray200;\n border-right: 1px solid $gray200;\n background-color: $white;\n\n &.loading-chat-main {\n display: flex;\n justify-content: center;\n align-items: center;\n padding-bottom: 1.6rem;\n }\n }\n\n .chat-loading-spinner {\n background-color: $blue700;\n width: 4.8rem;\n height: 4.8rem;\n border-radius: 4.8rem;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .chat-loading-content {\n color: $gray900;\n font-size: 1.6rem;\n font-weight: 400;\n }\n\n .chat-overview {\n text-align: center;\n }\n\n .chat-messages {\n display: flex;\n flex-direction: column;\n gap: $spacing;\n text-align: center;\n }\n\n .card-container {\n .slider-wrapper {\n margin: 0;\n }\n\n $card-gap: 1rem;\n\n .slides-container {\n display: flex;\n gap: $card-gap;\n }\n\n .slide:nth-child(even) [data-card] {\n width: calc(100% - $card-gap);\n }\n }\n\n @keyframes pulse {\n\n 0%,\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n\n 50% {\n opacity: 0.5;\n transform: scale(0.95);\n }\n }\n\n .chat-footer {\n background: $white;\n border: 1px solid $gray200;\n border-top: none;\n }\n\n .chat-footer .form {\n display: flex;\n gap: 0.7rem;\n padding: 1rem;\n }\n\n .chat-input-container {\n display: flex;\n flex-grow: 1;\n justify-content: space-between;\n gap: 0.7rem;\n background: $gray25;\n border-radius: 6.4rem;\n\n .chat-text-input {\n text-indent: 0.8rem;\n border: none;\n background: transparent;\n width: 100%;\n outline: 0.2rem solid transparent;\n outline-offset: 0.2rem;\n\n &:focus {\n border-radius: 6.4rem;\n }\n\n &:focus-visible {\n outline-color: $blue700;\n }\n }\n\n .chat-disabled-button {\n display: flex;\n width: 3.5em;\n min-height: 3em;\n min-width: 0;\n align-items: center;\n justify-content: center;\n }\n }\n\n &.minimized {\n background: transparent;\n border: initial;\n box-shadow: initial;\n max-width: 50px;\n max-height: 50px;\n min-width: initial;\n min-height: initial;\n transform: scale(0.95);\n\n cursor: pointer;\n\n .minimize-btn,\n .close-btn {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n button {\n display: none;\n }\n }\n\n .chat-main,\n .chat-footer {\n display: none;\n }\n }\n\n &.closed {\n display: none;\n }\n\n .open-chat-btn {\n .pn-button {\n width: 5.6rem;\n height: 5.6rem;\n }\n\n .pn-icon svg {\n width: 3.2rem;\n height: 3.2rem;\n }\n }\n\n .indicator-icon {\n padding: 0.2rem 0.8rem;\n margin-right: auto;\n margin-top: 1rem;\n margin-bottom: 2rem;\n visibility: hidden;\n }\n}\n\nbody.chat-open {\n @media (max-width: 768px) {\n overflow: hidden;\n }\n}","import { Component, h, Prop, State, Host, Watch, Listen, Fragment } from '@stencil/core';\nimport { minus, close, arrow_right, talk_bubble, submit } from 'pn-design-assets/pn-assets/icons.js';\nimport { AgentMessage, BaseMessage, ButtonMessage, CardMessage, ChatMessage, ChatMessages, CustomerSegment, LinkMessage } from './types';\nimport { LocalStorageService } from '@/globals/LocalStorageService';\nimport { JSX } from 'react';\nimport { PnChatService } from './pn-chat.service';\nimport { translations } from './translations';\nimport type { Translationsi18n } from './types';\n\n@Component({\n tag: 'pn-chat',\n styleUrl: 'pn-chat.scss',\n})\nexport class PnChat {\n @Prop() endpoint!: string;\n @Prop() customerSegment!: CustomerSegment;\n @Prop() mainHeading: string = '';\n @Prop() relatedContentAriaLabel: string;\n @Prop() chatMinimizedAriaLabel: string;\n @Prop() chatOpenedAriaLabel: string;\n @Prop() minimizeChatAriaLabel: string;\n @Prop() closeChatAriaLabel: string;\n @Prop() openChatAriaLabel: string;\n @Prop() chatControlsAriaLabel: string;\n @Prop() chatMessagesAriaLabel: string;\n @Prop() sentMessageAriaLabel: string;\n @Prop() writeChatMessagePlaceholder: string;\n @Prop() waitingForAnswerLabel: string;\n @Prop() sendButtonText: string;\n @Prop() loadingText: string;\n @Prop() carouselSlidesToShow: number = 1;\n @Prop() messages: string;\n @Prop() language: string = 'sv';\n @Prop() market: string = 'se';\n @Prop() itemId?: string = '';\n @Prop() pnChatId: string = '00000000-0000-0000-0000-000000000000';\n @Prop() forceOpen: boolean = false;\n @Prop() isLoggedIn: boolean = false;\n\n @State() private message: string = '';\n @State() private messagesData: ChatMessages;\n @State() private isMinimized: boolean = true;\n @State() private isClosed: boolean = false;\n @State() private lastMessageId: string = '';\n @State() i18n: any;\n\n private chatId: string;\n\n private readonly _defaultChatId: string = '00000000-0000-0000-0000-000000000000';\n private readonly _defaultAlternativeChatId: string = '1';\n private readonly chatLocalStorageKey = 'sf-chat-state';\n private chatMessagesContainer?: HTMLElement;\n private chatRef?: HTMLDivElement;\n private inputRef?: HTMLInputElement;\n private storage: LocalStorageService = new LocalStorageService();\n private _chatService: PnChatService;\n private _chatSegment: string = \"#chat\";\n private _forceClose: boolean = false;\n\n componentWillLoad(): void {\n this._forceClose = false;\n this._chatService = new PnChatService(this.endpoint, this.market, this.language);\n this.messagesData = {\n header: {},\n messages: [],\n };\n\n let storageId = this.storage.get(this.chatLocalStorageKey);\n\n if (storageId && storageId.isLoggedIn === !this.isLoggedIn) {\n this.storage.remove(this.chatLocalStorageKey);\n }\n else if (storageId && storageId.chatId) {\n this.chatId = storageId?.chatId ?? this.chatId;\n }\n\n this.setTranslations();\n\n setInterval(() => {\n this.updateChat();\n }, 1500);\n }\n\n setTranslations() {\n if (this.language && translations[this.language]) {\n this.i18n = translations[this.language];\n }\n }\n\nprivate getTranslation(key: keyof Translationsi18n): string {\n const value = this[key];\n if (value === undefined || value === null || value === '') {\n return translations[this.language]?.[key] ?? translations['en'][key];\n }\n return value;\n}\n\n private async updateChat() {\n if (this.isMinimized || this.isClosed) {\n return;\n }\n\n let prevLastMessageId = this.lastMessageId;\n\n await this._chatService.fetchMessages(this.chatId, this.messagesData).then(newMessages => {\n this.lastMessageId = this._chatService.GetLastMessageId(newMessages?.messages, this.lastMessageId);\n let htmlCollection = document.getElementsByClassName('pn-chat-before');\n let elements = Array.from(htmlCollection);\n\n newMessages.messages.forEach(message => {\n elements.forEach(element => {\n if (message.content != null && (element.textContent.trim() === message.content.trim() || element.textContent.trim().includes(message.content.trim()))) {\n element.remove();\n }\n });\n this.renderMessage(message);\n });\n\n if (prevLastMessageId !== this.lastMessageId) {\n this._chatService.updateLastMessageId(this.chatId, this.lastMessageId);\n this.messagesData = newMessages;\n newMessages.messages.forEach(message => {\n this.renderMessage(message);\n });\n }\n });\n }\n\n private async setStartValues() {\n if (this._forceClose) {\n this._forceClose = false;\n return;\n }\n\n if ((!this.chatId || this.chatId === this._defaultChatId || this.chatId === this._defaultAlternativeChatId) && !this.isMinimized) {\n this.chatId = await this._chatService.startChat(this.pnChatId, this.itemId);\n this.storage.set(this.chatLocalStorageKey, { chatId: this.chatId, isLoggedIn: this.isLoggedIn });\n }\n\n if (this.chatId) {\n this.storage.set(this.chatLocalStorageKey, { chatId: this.chatId, isLoggedIn: this.isLoggedIn });\n await this.fetchMessages();\n this.lastMessageId = this._chatService.GetLastMessageId(this.messagesData.messages, this.lastMessageId);\n }\n }\n\n private async fetchMessages() {\n let newMessages = await this._chatService.fetchMessages(this.chatId, this.messagesData).then(newMessages => {\n this.lastMessageId = this._chatService.GetLastMessageId(this.messagesData.messages, this.lastMessageId);\n this.messagesData = newMessages;\n let htmlCollection = document.getElementsByClassName('pn-chat-before');\n let elements = Array.from(htmlCollection);\n\n newMessages.messages.forEach(message => {\n elements.forEach(element => {\n if (element.textContent.trim() === message.content.trim() || element.textContent.trim().includes(message.content.trim())) {\n element.remove();\n }\n });\n this.renderMessage(message);\n });\n return newMessages;\n });\n }\n\n private async handleSend() {\n if (!this.message?.trim()) {\n return;\n }\n\n let message = this.message;\n this.message = '';\n this.createBeforeElement(message);\n\n let responseId = await this._chatService.sendMessage(message, this.itemId, this.chatId, this.lastMessageId, 'Text');\n this.lastMessageId = responseId;\n this.lastMessageId = this._chatService.GetLastMessageId(this.messagesData.messages, this.lastMessageId);\n\n this.announceToScreenReader(this.getTranslation('sentMessageAriaLabel'));\n };\n\n private groupMessages(): JSX.Element[] {\n const result: JSX.Element[] = [];\n let currentCardGroup: CardMessage[] = [];\n\n const flushCardGroup = () => {\n if (currentCardGroup.length > 0) {\n const carouselData = {\n slides: currentCardGroup.map(card => {\n const cardHtml = `\n <pn-chat-message customerSegment=${this.customerSegment} data-card role=\"article\" category=${card.category}>\n <h2 class=\"card-heading\">${card.heading}</h2>\n <p>${card.content}</p>\n ${card.buttons\n ?.map(\n button => `\n <pn-button\n href=\"${button.href}\"\n class=\"${button.class}\"\n appearance=\"${button.appearance}\"\n variant=\"${button.variant}\"\n small=\"${button.small}\"\n role=\"button\"\n >\n ${button.content}\n </pn-button>\n `,\n )\n .join('') || ''\n }\n </pn-chat-message>\n `;\n return cardHtml;\n }),\n };\n result.push(\n <pn-marketweb-carousel\n class=\"card-container\"\n nextButtonLabel=\"Next\"\n previousButtonLabel=\"Previous\"\n ariaNavigationLabel={this.getTranslation('relatedContentAriaLabel')}\n slidesToShow={this.carouselSlidesToShow}\n source={JSON.stringify(carouselData)}\n ></pn-marketweb-carousel>,\n );\n currentCardGroup = [];\n }\n };\n\n this.messagesData.messages.forEach((message, index) => {\n if (message.category === 'Card') {\n currentCardGroup.push(message as CardMessage);\n\n if (index === this.messagesData.messages.length - 1 || this.messagesData.messages[index + 1]?.category !== 'Card') {\n flushCardGroup();\n }\n } else {\n flushCardGroup();\n result.push(this.renderMessage(message));\n }\n });\n\n return result;\n }\n\n private handleKeyPress = (event: KeyboardEvent) => {\n if (event.key === 'Enter' && this.message.trim()) {\n event.preventDefault();\n this.handleSend();\n }\n };\n\n private handleSendMessage = (event: MouseEvent) => {\n if (this.message.trim()) {\n event.preventDefault();\n this.handleSend();\n }\n }\n\n private handleButtonKeyDown(event: KeyboardEvent) {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n (event.target as HTMLElement).click();\n }\n }\n\n @Listen('keydown')\n handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'Escape' && this.isMinimized && !this.isClosed) {\n this.toggleChat();\n }\n }\n\n @Watch('messages')\n handleMessagesChange(newMessage: string): void {\n if (newMessage) {\n this.handleSend();\n }\n }\n\n @Watch('pnChatId')\n handleNewChatId() {\n this.chatId = this.pnChatId === this._defaultAlternativeChatId ? this._defaultChatId : this.pnChatId;\n this.messagesData.messages = [];\n this.isMinimized = false;\n this.setStartValues();\n }\n\n @Watch('forceOpen')\n handleSameChatId() {\n this.isMinimized = false;\n }\n\n @Watch('isMinimized')\n scrollToBottom() {\n const observer = new MutationObserver((_, obs) => {\n const chatMain = document.getElementById('chat-main');\n if (chatMain) {\n setTimeout(() => {\n chatMain.scrollTo({\n top: chatMain.scrollHeight,\n behavior: 'smooth'\n });\n }, 500)\n obs.disconnect();\n }\n });\n observer.observe(document.body, { childList: true, subtree: true, });\n }\n\n private closeChat = () => {\n this._forceClose = true;\n this.storage.remove(this.chatLocalStorageKey);\n this.chatId = null;\n this.pnChatId = this._defaultChatId;\n let chatElement = document.getElementsByTagName('pn-chat')[0];\n chatElement.setAttribute('item-id', '');\n\n let hasActiveShipmentInUrl = window.location.href.includes(this._chatSegment);\n if (hasActiveShipmentInUrl) {\n this.isMinimized = !this.isMinimized;\n this.announceToScreenReader(this.isMinimized ? this.getTranslation('chatMinimizedAriaLabel') : this.getTranslation('chatOpenedAriaLabel'));\n document.body.classList.toggle('chat-open');\n window.location.href = window.location.href.split(this._chatSegment)[0];\n }\n else {\n this._forceClose = false;\n this.toggleChat();\n }\n }\n\n private toggleChat = () => {\n this.isMinimized = !this.isMinimized;\n this.announceToScreenReader(this.isMinimized ? this.getTranslation('chatMinimizedAriaLabel') : this.getTranslation('chatOpenedAriaLabel'));\n document.body.classList.toggle('chat-open');\n\n if (!this.isMinimized && !this.chatId) {\n this.setStartValues();\n }\n };\n\n private announceToScreenReader(message: string) {\n const announcement = document.createElement('div');\n announcement.setAttribute('role', 'status');\n announcement.setAttribute('aria-live', 'polite');\n announcement.classList.add('sr-only');\n announcement.textContent = message;\n document.body.appendChild(announcement);\n setTimeout(() => announcement.remove(), 1000);\n }\n\n private renderMessage(message: ChatMessage): JSX.Element {\n switch (message.category) {\n case 'Bot':\n return this.renderBaseMessage(message);\n case 'Button':\n return this.renderButtonMessage(message);\n case 'ButtonResponse':\n return this.renderBaseMessage(message);\n case 'Link':\n return this.renderLinkMessage(message);\n case 'Card':\n return this.renderCardMessage(message);\n case 'User':\n return this.renderBaseMessage(message);\n case 'Agent':\n return this.renderAgentMessage(message);\n case 'System':\n return this.renderBaseMessage(message);\n }\n }\n\n private renderBaseMessage(message: BaseMessage): JSX.Element {\n return (\n <pn-chat-message customerSegment={this.customerSegment} category={message.category} agentName='' role=\"log\" aria-live=\"polite\">\n {message.content}\n </pn-chat-message>\n );\n }\n\n private renderAgentMessage(message: AgentMessage): JSX.Element {\n return (\n <pn-chat-message customerSegment={this.customerSegment} category={message.category} agentName={message.agentName} role=\"log\" aria-live=\"polite\">\n {message.content}\n </pn-chat-message>\n );\n }\n\n private renderButtonMessage(message: ButtonMessage): JSX.Element {\n let props = {};\n\n if (message?.props) {\n try {\n props = JSON.parse(message.props);\n } catch (error) {\n console.error('Error parsing button props', error instanceof Error ? error.message : 'Unknown error');\n }\n }\n\n const handleClick = () => {\n if (props['data-action'] === 'minimize') {\n this.toggleChat();\n }\n if (props['dataAction'] === 'choice' && props['dataOptionChoice']) {\n (async () => {\n await this.handleSendChoice(props['dataOptionChoice'], message.content);\n })();\n }\n };\n\n return (\n <pn-chat-message customerSegment={this.customerSegment} category={message.category}>\n <pn-button class={message.class} role=\"button\" {...props} onClick={handleClick} onKeyDown={e => this.handleButtonKeyDown(e)}>\n {message.content}\n </pn-button>\n </pn-chat-message>\n );\n }\n\n private createBeforeElement(content: string) {\n const targetElement = this.chatMessagesContainer;\n const chatMessage = document.createElement('pn-chat-message');\n chatMessage.setAttribute('customerSegment', this.customerSegment);\n chatMessage.setAttribute('category', 'User');\n chatMessage.classList.add('pn-chat-before');\n chatMessage.textContent = content;\n\n targetElement.appendChild(chatMessage);\n this.scrollToBottom();\n chatMessage.scrollIntoView();\n }\n\n private async handleSendChoice(choiceId: string, content: string) {\n this.createBeforeElement(content);\n\n let responseId = await this._chatService.sendMessage(choiceId, this.itemId, this.chatId, this.lastMessageId, 'Choice');\n this.lastMessageId = responseId;\n this.lastMessageId = this._chatService.GetLastMessageId(this.messagesData.messages, this.lastMessageId);\n\n this.announceToScreenReader(this.getTranslation('sentMessageAriaLabel'));\n }\n\n private renderLinkMessage(message: LinkMessage): JSX.Element {\n return (\n <pn-chat-message customerSegment={this.customerSegment} category={message.category}>\n <a href={message.href} role=\"link\" rel=\"noopener noreferrer\">\n <span class=\"content\">{message.content}</span>\n <pn-icon icon={arrow_right} color=\"blue700\" aria-hidden=\"true\" role=\"presentation\" />\n </a>\n </pn-chat-message>\n );\n }\n\n private renderCardMessage(message: CardMessage): JSX.Element {\n return (\n <pn-chat-message customerSegment={this.customerSegment} category={message.category} data-card role=\"article\">\n <h2 class=\"card-heading\">{message.heading}</h2>\n <p>{message.content}</p>\n {message.buttons && (\n <div class=\"cta\">\n {message.buttons?.map(button => (\n <pn-button\n href={button.href}\n class={button.class}\n appearance={button.appearance}\n variant={button.variant}\n small={button.small}\n role=\"button\"\n onKeyDown={e => this.handleButtonKeyDown(e)}\n >\n {button.content}\n </pn-button>\n ))}\n </div>\n )}\n </pn-chat-message>\n );\n }\n\n render() {\n const mainId = 'chat-main';\n const inputId = 'chat-input';\n const headerButton = this.messagesData?.header.button;\n\n return (\n <Host class={this.customerSegment}>\n {!this.isClosed && this.messagesData && (\n <div\n class={`pn-chat ${this.isMinimized ? 'minimized' : ''} ${this.isClosed ? 'closed' : ''}`}\n ref={el => (this.chatRef = el as HTMLDivElement)}\n role=\"region\"\n aria-label={this.mainHeading}\n >\n {!this.isMinimized && (\n <Fragment>\n <header class=\"chat-header\" role=\"banner\">\n <h1 id=\"chat-title\">{this.mainHeading}</h1>\n <div class=\"chat-controls\" role=\"toolbar\" aria-label={this.getTranslation('chatControlsAriaLabel')}>\n <pn-button\n icon={minus}\n icon-only=\"true\"\n class=\"minimize-btn\"\n onClick={this.toggleChat}\n aria-expanded={!this.isMinimized}\n aria-controls={mainId}\n aria-label={this.getTranslation('minimizeChatAriaLabel')}\n variant=\"borderless\"\n tooltip={this.getTranslation('minimizeChatAriaLabel')}\n />\n <pn-button\n icon={close}\n icon-only=\"true\"\n class=\"close-btn\"\n onClick={this.closeChat}\n aria-expanded={!this.isMinimized}\n aria-label={this.getTranslation('closeChatAriaLabel')}\n variant=\"borderless\"\n tooltip={this.getTranslation('closeChatAriaLabel')}\n />\n </div>\n </header>\n {(this.messagesData?.messages?.length ?? 0) > 0 ?\n (<main id={mainId} class=\"chat-main\" role=\"main\" aria-labelledby=\"chat-title\">\n {this.messagesData.header && (\n <div class=\"chat-overview\">\n <div class=\"body\">{this.messagesData.header.body}</div>\n {headerButton && (\n <pn-button\n href={headerButton.href}\n class={headerButton.class}\n appearance={headerButton.appearance}\n variant={headerButton.variant}\n small={headerButton.small}\n role=\"button\"\n onKeyDown={e => this.handleButtonKeyDown(e)}\n >\n {headerButton.content}\n </pn-button>\n )}\n </div>\n )}\n <div ref={el => (this.chatMessagesContainer = el as HTMLElement)} class=\"chat-messages\" role=\"log\" aria-live=\"polite\" aria-label={this.getTranslation('chatMessagesAriaLabel')}>\n {this.groupMessages()}\n </div>\n <pn-icon\n class=\"indicator-icon\"\n aria-label={this.getTranslation('waitingForAnswerLabel')}\n role=\"presentation\"\n ></pn-icon>\n </main>)\n : (<main id={mainId} class=\"chat-main loading-chat-main\" role=\"main\" aria-labelledby=\"chat-title\">\n <div class=\"chat-loading-spinner\">\n <pn-spinner light=\"true\" size=\"1.5\"></pn-spinner>\n </div>\n <span class=\"chat-loading-content\">{this.getTranslation('loadingText')}</span>\n </main>)}\n <footer class=\"chat-footer\" role=\"contentinfo\">\n <div class=\"form\" role=\"form\" aria-labelledby={inputId}>\n <label htmlFor={inputId} class=\"sr-only\">\n {this.getTranslation('writeChatMessagePlaceholder')}\n </label>\n <div class=\"chat-input-container\">\n <input\n id={inputId}\n class=\"chat-text-input\"\n ref={el => (this.inputRef = el as HTMLInputElement)}\n type=\"text\"\n placeholder={this.getTranslation('writeChatMessagePlaceholder')}\n value={this.message}\n onInput={(e: Event) => (this.message = (e.target as HTMLInputElement).value)}\n onKeyPress={this.handleKeyPress}\n maxLength={3990}\n />\n {!this.message.trim() ? (\n <div\n class=\"chat-disabled-button\"\n role=\"button\"\n aria-label={this.getTranslation('sendButtonText')}\n aria-disabled=\"true\"\n tabIndex={-1}>\n <pn-icon color=\"gray400\" icon={submit}></pn-icon>\n </div>\n ) : (\n <pn-button\n icon-only=\"true\"\n variant=\"borderless\"\n appearance=\"light\"\n icon={submit}\n onClick={this.handleSendMessage}\n disabled={!this.message.trim()}\n aria-label={this.getTranslation('sendButtonText')}\n tooltip={this.getTranslation('sendButtonText')}>\n </pn-button>\n )}\n </div>\n </div>\n </footer>\n </Fragment>\n )}\n {this.isMinimized && (\n <pn-button\n icon={talk_bubble}\n icon-only=\"true\"\n class=\"open-chat-btn\"\n onClick={this.toggleChat}\n tooltip={this.getTranslation('openChatAriaLabel')}\n aria-label={this.getTranslation('openChatAriaLabel')}\n aria-expanded={!this.isMinimized}\n ></pn-button>\n )}\n </div>\n )}\n </Host>\n );\n }\n}"],"version":3}
|