@postnord/pn-marketweb-components 2.0.48 → 2.0.52
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/loader.cjs.js +1 -1
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-links_2.cjs.entry.js +43 -46
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +49 -51
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +1 -1
- package/custom-elements/index.js +44 -47
- package/esm/loader.js +1 -1
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-siteheader-login-links_2.entry.js +43 -46
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-30647581.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/{p-974798a6.system.entry.js → p-f8c6e8be.system.entry.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +2 -1
- package/types/components.d.ts +2 -2
- package/umd/pn-marketweb-salesforce.js +16 -7
- package/pn-market-web-components/p-066e5f4c.entry.js +0 -1
package/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["pn-marketweb-siteheader.cjs",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"userToken":[1,"user-token"],"userFullname":[1,"user-fullname"],"userLoggedin":[4,"user-loggedin"],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"showProfileSelection":[1540,"show-profile-selection"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price.cjs",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price.cjs",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist.cjs",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-product-pricelist-result.cjs",[[0,"pn-product-pricelist-result",{"item":[1040],"description":[16],"shownitems":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32]}]]],["pn-marketweb-sitefooter.cjs",[[4,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar.cjs",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-pex-pricefinder.cjs",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-customernumber-selector.cjs",[[4,"pn-customernumber-selector",{"language":[1537],"open":[1540],"heading":[1],"description":[1],"i18n":[32]}]]],["pn-customernumber-selector-option.cjs",[[4,"pn-customernumber-selector-option",{"heading":[1],"description":[1],"url":[1]}]]],["pn-filter-checkbox.cjs",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-marketweb-search.cjs",[[1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]]],["pn-product-tile.cjs",[[4,"pn-product-tile"]]],["pn-profile-selector.cjs",[[4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"heading":[1],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["pn-profile-selector-option.cjs",[[0,"pn-profile-selector-option",{"heading":[1],"description":[1],"url":[1]}]]],["pn-sidenav.cjs",[[4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]]],["pn-sidenav-level.cjs",[[4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]]],["pn-sidenav-link.cjs",[[4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-sidenav-togglebutton.cjs",[[4,"pn-sidenav-togglebutton",{"label":[1],"i18n":[32]}]]],["pn-find-service-and-price-result.cjs",[[0,"pn-find-service-and-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-bonus-progressbar-level.cjs",[[0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]]],["pn-marketweb-input.cjs",[[0,"pn-marketweb-input",{"disabled":[4],"error":[1],"invalid":[4],"helpertext":[1],"label":[1],"placeholder":[1],"inputid":[1],"name":[1],"required":[4],"type":[1025],"autocomplete":[1],"valid":[4],"value":[1],"maxlength":[1],"min":[1],"max":[1],"step":[1],"pattern":[1],"showText":[32]}]]],["pn-find-price-result.cjs",[[0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32],"linkId":[32],"shopLabel":[32],"shopUrl":[32],"shopId":[32]}]]],["pn-site-footer_2.cjs",[[4,"pn-site-footer",{"url":[1],"linktitle":[1]}],[4,"pn-site-footer-col"]]],["pn-choice-button.cjs",[[4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-mainnav-link.cjs",[[4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-marketweb-siteheader-login-linklist.cjs",[[0,"pn-marketweb-siteheader-login-linklist",{"heading":[1],"links":[16],"idNamespace":[1,"id-namespace"],"loginManager":[16]}]]],["pn-marketweb-siteheader-login-links_2.cjs",[[0,"pn-marketweb-siteheader-login-links",{"loginDialog":[1040],"loginManager":[16],"idNamespace":[1,"id-namespace"],"loggedin":[516],"username":[1]}],[0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"loginManager":[16],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"currentProfile":[1040],"
|
|
17
|
+
return index.bootstrapLazy([["pn-marketweb-siteheader.cjs",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"userToken":[1,"user-token"],"userFullname":[1,"user-fullname"],"userLoggedin":[4,"user-loggedin"],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"showProfileSelection":[1540,"show-profile-selection"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price.cjs",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price.cjs",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist.cjs",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-product-pricelist-result.cjs",[[0,"pn-product-pricelist-result",{"item":[1040],"description":[16],"shownitems":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32]}]]],["pn-marketweb-sitefooter.cjs",[[4,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar.cjs",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-pex-pricefinder.cjs",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-customernumber-selector.cjs",[[4,"pn-customernumber-selector",{"language":[1537],"open":[1540],"heading":[1],"description":[1],"i18n":[32]}]]],["pn-customernumber-selector-option.cjs",[[4,"pn-customernumber-selector-option",{"heading":[1],"description":[1],"url":[1]}]]],["pn-filter-checkbox.cjs",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-marketweb-search.cjs",[[1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]]],["pn-product-tile.cjs",[[4,"pn-product-tile"]]],["pn-profile-selector.cjs",[[4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"heading":[1],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["pn-profile-selector-option.cjs",[[0,"pn-profile-selector-option",{"heading":[1],"description":[1],"url":[1]}]]],["pn-sidenav.cjs",[[4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]]],["pn-sidenav-level.cjs",[[4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]]],["pn-sidenav-link.cjs",[[4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-sidenav-togglebutton.cjs",[[4,"pn-sidenav-togglebutton",{"label":[1],"i18n":[32]}]]],["pn-find-service-and-price-result.cjs",[[0,"pn-find-service-and-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-bonus-progressbar-level.cjs",[[0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]]],["pn-marketweb-input.cjs",[[0,"pn-marketweb-input",{"disabled":[4],"error":[1],"invalid":[4],"helpertext":[1],"label":[1],"placeholder":[1],"inputid":[1],"name":[1],"required":[4],"type":[1025],"autocomplete":[1],"valid":[4],"value":[1],"maxlength":[1],"min":[1],"max":[1],"step":[1],"pattern":[1],"showText":[32]}]]],["pn-find-price-result.cjs",[[0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32],"linkId":[32],"shopLabel":[32],"shopUrl":[32],"shopId":[32]}]]],["pn-site-footer_2.cjs",[[4,"pn-site-footer",{"url":[1],"linktitle":[1]}],[4,"pn-site-footer-col"]]],["pn-choice-button.cjs",[[4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-mainnav-link.cjs",[[4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-marketweb-siteheader-login-linklist.cjs",[[0,"pn-marketweb-siteheader-login-linklist",{"heading":[1],"links":[16],"idNamespace":[1,"id-namespace"],"loginManager":[16]}]]],["pn-marketweb-siteheader-login-links_2.cjs",[[0,"pn-marketweb-siteheader-login-links",{"loginDialog":[1040],"loginManager":[16],"idNamespace":[1,"id-namespace"],"loggedin":[516],"username":[1]}],[0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"loginManager":[16],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"currentProfile":[1040],"profileoptions":[1040],"user":[32],"logoutLink":[32],"userName":[32],"userEmail":[32]}]]],["pn-product-tile-info_2.cjs",[[0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}],[0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]]],["pn-language-selector_9.cjs",[[0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[16],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"fullname":[1],"loggedin":[4],"showProfileSelection":[1028,"show-profile-selection"],"loginManager":[32],"loginLinks":[32],"toggleButtonText":[32],"username":[32]}],[4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}],[4,"pn-language-selector",{"value":[1537],"selectedLanguageName":[32],"options":[32],"i18n":[32]}],[0,"pn-language-selector-option",{"name":[1],"code":[1],"url":[1],"selected":[4],"currentLanguage":[1,"current-language"]}],[4,"pn-mainnav",{"market":[1],"language":[1],"navigationId":[1,"navigation-id"],"openMenu":[1028,"open-menu"],"navLabel":[1,"nav-label"]},[[0,"language","setLanguage"],[0,"market","setMarket"],[0,"menuLanguageChange","onLanguageChange"],[0,"setmenuopenstate","setMenuOpenState"],[0,"openMenuLevelChange","onOpenMenuLevelChange"]]],[4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}],[0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"language":[1537],"search":[1040],"primary":[4],"autoCompleteOptions":[32]}],[4,"pn-site-selector",{"buttontext":[1537],"heading":[1537],"language":[1537],"i18n":[32]}],[0,"pn-site-selector-item",{"url":[1],"heading":[1],"description":[1],"newwindow":[4]}]]],["pn-product-card_4.cjs",[[0,"pn-product-card-info",{"rulle":[1],"paket":[1],"label":[1],"text":[1]}],[0,"pn-product-card-price",{"label":[1],"amount":[1],"currency":[1],"note":[1],"url":[1],"service":[1],"linkid":[1]}],[4,"pn-titletag",{"icon":[1],"color":[1537]}],[4,"pn-product-card"]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -55,5 +55,5 @@ const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
patchBrowser().then(options => {
|
|
58
|
-
return index.bootstrapLazy([["pn-marketweb-siteheader.cjs",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"userToken":[1,"user-token"],"userFullname":[1,"user-fullname"],"userLoggedin":[4,"user-loggedin"],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"showProfileSelection":[1540,"show-profile-selection"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price.cjs",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price.cjs",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist.cjs",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-product-pricelist-result.cjs",[[0,"pn-product-pricelist-result",{"item":[1040],"description":[16],"shownitems":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32]}]]],["pn-marketweb-sitefooter.cjs",[[4,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar.cjs",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-pex-pricefinder.cjs",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-customernumber-selector.cjs",[[4,"pn-customernumber-selector",{"language":[1537],"open":[1540],"heading":[1],"description":[1],"i18n":[32]}]]],["pn-customernumber-selector-option.cjs",[[4,"pn-customernumber-selector-option",{"heading":[1],"description":[1],"url":[1]}]]],["pn-filter-checkbox.cjs",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-marketweb-search.cjs",[[1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]]],["pn-product-tile.cjs",[[4,"pn-product-tile"]]],["pn-profile-selector.cjs",[[4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"heading":[1],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["pn-profile-selector-option.cjs",[[0,"pn-profile-selector-option",{"heading":[1],"description":[1],"url":[1]}]]],["pn-sidenav.cjs",[[4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]]],["pn-sidenav-level.cjs",[[4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]]],["pn-sidenav-link.cjs",[[4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-sidenav-togglebutton.cjs",[[4,"pn-sidenav-togglebutton",{"label":[1],"i18n":[32]}]]],["pn-find-service-and-price-result.cjs",[[0,"pn-find-service-and-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-bonus-progressbar-level.cjs",[[0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]]],["pn-marketweb-input.cjs",[[0,"pn-marketweb-input",{"disabled":[4],"error":[1],"invalid":[4],"helpertext":[1],"label":[1],"placeholder":[1],"inputid":[1],"name":[1],"required":[4],"type":[1025],"autocomplete":[1],"valid":[4],"value":[1],"maxlength":[1],"min":[1],"max":[1],"step":[1],"pattern":[1],"showText":[32]}]]],["pn-find-price-result.cjs",[[0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32],"linkId":[32],"shopLabel":[32],"shopUrl":[32],"shopId":[32]}]]],["pn-site-footer_2.cjs",[[4,"pn-site-footer",{"url":[1],"linktitle":[1]}],[4,"pn-site-footer-col"]]],["pn-choice-button.cjs",[[4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-mainnav-link.cjs",[[4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-marketweb-siteheader-login-linklist.cjs",[[0,"pn-marketweb-siteheader-login-linklist",{"heading":[1],"links":[16],"idNamespace":[1,"id-namespace"],"loginManager":[16]}]]],["pn-marketweb-siteheader-login-links_2.cjs",[[0,"pn-marketweb-siteheader-login-links",{"loginDialog":[1040],"loginManager":[16],"idNamespace":[1,"id-namespace"],"loggedin":[516],"username":[1]}],[0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"loginManager":[16],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"currentProfile":[1040],"
|
|
58
|
+
return index.bootstrapLazy([["pn-marketweb-siteheader.cjs",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"userToken":[1,"user-token"],"userFullname":[1,"user-fullname"],"userLoggedin":[4,"user-loggedin"],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"showProfileSelection":[1540,"show-profile-selection"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price.cjs",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price.cjs",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist.cjs",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-product-pricelist-result.cjs",[[0,"pn-product-pricelist-result",{"item":[1040],"description":[16],"shownitems":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32]}]]],["pn-marketweb-sitefooter.cjs",[[4,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar.cjs",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-pex-pricefinder.cjs",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-customernumber-selector.cjs",[[4,"pn-customernumber-selector",{"language":[1537],"open":[1540],"heading":[1],"description":[1],"i18n":[32]}]]],["pn-customernumber-selector-option.cjs",[[4,"pn-customernumber-selector-option",{"heading":[1],"description":[1],"url":[1]}]]],["pn-filter-checkbox.cjs",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-marketweb-search.cjs",[[1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]]],["pn-product-tile.cjs",[[4,"pn-product-tile"]]],["pn-profile-selector.cjs",[[4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"heading":[1],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["pn-profile-selector-option.cjs",[[0,"pn-profile-selector-option",{"heading":[1],"description":[1],"url":[1]}]]],["pn-sidenav.cjs",[[4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]]],["pn-sidenav-level.cjs",[[4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]]],["pn-sidenav-link.cjs",[[4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-sidenav-togglebutton.cjs",[[4,"pn-sidenav-togglebutton",{"label":[1],"i18n":[32]}]]],["pn-find-service-and-price-result.cjs",[[0,"pn-find-service-and-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-bonus-progressbar-level.cjs",[[0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]]],["pn-marketweb-input.cjs",[[0,"pn-marketweb-input",{"disabled":[4],"error":[1],"invalid":[4],"helpertext":[1],"label":[1],"placeholder":[1],"inputid":[1],"name":[1],"required":[4],"type":[1025],"autocomplete":[1],"valid":[4],"value":[1],"maxlength":[1],"min":[1],"max":[1],"step":[1],"pattern":[1],"showText":[32]}]]],["pn-find-price-result.cjs",[[0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32],"linkId":[32],"shopLabel":[32],"shopUrl":[32],"shopId":[32]}]]],["pn-site-footer_2.cjs",[[4,"pn-site-footer",{"url":[1],"linktitle":[1]}],[4,"pn-site-footer-col"]]],["pn-choice-button.cjs",[[4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-mainnav-link.cjs",[[4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-marketweb-siteheader-login-linklist.cjs",[[0,"pn-marketweb-siteheader-login-linklist",{"heading":[1],"links":[16],"idNamespace":[1,"id-namespace"],"loginManager":[16]}]]],["pn-marketweb-siteheader-login-links_2.cjs",[[0,"pn-marketweb-siteheader-login-links",{"loginDialog":[1040],"loginManager":[16],"idNamespace":[1,"id-namespace"],"loggedin":[516],"username":[1]}],[0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"loginManager":[16],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"currentProfile":[1040],"profileoptions":[1040],"user":[32],"logoutLink":[32],"userName":[32],"userEmail":[32]}]]],["pn-product-tile-info_2.cjs",[[0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}],[0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]]],["pn-language-selector_9.cjs",[[0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[16],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"fullname":[1],"loggedin":[4],"showProfileSelection":[1028,"show-profile-selection"],"loginManager":[32],"loginLinks":[32],"toggleButtonText":[32],"username":[32]}],[4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}],[4,"pn-language-selector",{"value":[1537],"selectedLanguageName":[32],"options":[32],"i18n":[32]}],[0,"pn-language-selector-option",{"name":[1],"code":[1],"url":[1],"selected":[4],"currentLanguage":[1,"current-language"]}],[4,"pn-mainnav",{"market":[1],"language":[1],"navigationId":[1,"navigation-id"],"openMenu":[1028,"open-menu"],"navLabel":[1,"nav-label"]},[[0,"language","setLanguage"],[0,"market","setMarket"],[0,"menuLanguageChange","onLanguageChange"],[0,"setmenuopenstate","setMenuOpenState"],[0,"openMenuLevelChange","onOpenMenuLevelChange"]]],[4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}],[0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"language":[1537],"search":[1040],"primary":[4],"autoCompleteOptions":[32]}],[4,"pn-site-selector",{"buttontext":[1537],"heading":[1537],"language":[1537],"i18n":[32]}],[0,"pn-site-selector-item",{"url":[1],"heading":[1],"description":[1],"newwindow":[4]}]]],["pn-product-card_4.cjs",[[0,"pn-product-card-info",{"rulle":[1],"paket":[1],"label":[1],"text":[1]}],[0,"pn-product-card-price",{"label":[1],"amount":[1],"currency":[1],"note":[1],"url":[1],"service":[1],"linkid":[1]}],[4,"pn-titletag",{"icon":[1],"color":[1537]}],[4,"pn-product-card"]]]], options);
|
|
59
59
|
});
|
|
@@ -115,8 +115,9 @@ let PnMarketwebSiteheaderLoginProfileselection = class {
|
|
|
115
115
|
this.user = null;
|
|
116
116
|
this.logoutLink = null;
|
|
117
117
|
this.userName = null;
|
|
118
|
+
this.userEmail = "";
|
|
118
119
|
this.currentProfile = null;
|
|
119
|
-
this.
|
|
120
|
+
this.profileoptions = [];
|
|
120
121
|
}
|
|
121
122
|
componentWillLoad() {
|
|
122
123
|
var _a;
|
|
@@ -131,7 +132,7 @@ let PnMarketwebSiteheaderLoginProfileselection = class {
|
|
|
131
132
|
this.fetchProfiles();
|
|
132
133
|
}
|
|
133
134
|
async fetchProfiles() {
|
|
134
|
-
if (!this.loggedin || this.
|
|
135
|
+
if (!this.loggedin || this.profileoptions.length > 0) {
|
|
135
136
|
return;
|
|
136
137
|
}
|
|
137
138
|
let apiUrl = `${this.endpoint}${(this.endpoint.lastIndexOf('/') > -1 && this.endpoint.lastIndexOf('/') === this.endpoint.length - 1) ? '' : '/'}api/user/parentorganizations`;
|
|
@@ -141,41 +142,20 @@ let PnMarketwebSiteheaderLoginProfileselection = class {
|
|
|
141
142
|
loggedin: true,
|
|
142
143
|
organizations: [
|
|
143
144
|
{
|
|
144
|
-
name: "
|
|
145
|
-
customerNumber: "
|
|
146
|
-
id: "
|
|
147
|
-
selected:
|
|
148
|
-
profiles: [
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: "Bilmetro AB",
|
|
152
|
-
customerNumber: "5560612789",
|
|
153
|
-
id: "43707a2b-8e91-cef1-1907-0c091b907ff3",
|
|
154
|
-
selected: false,
|
|
155
|
-
profiles: [{
|
|
156
|
-
name: "BILMETRO AB",
|
|
157
|
-
customerNumber: "20221286",
|
|
158
|
-
ssid: "",
|
|
159
|
-
selected: false
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: "Bilmetro AB",
|
|
163
|
-
customerNumber: "20300622",
|
|
164
|
-
ssid: "",
|
|
165
|
-
selected: false
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: "BILMETRO AB",
|
|
169
|
-
customerNumber: "20221258",
|
|
170
|
-
ssid: "",
|
|
171
|
-
selected: false
|
|
172
|
-
},
|
|
145
|
+
name: "KRÄNKU TE & KAFFE",
|
|
146
|
+
customerNumber: "123",
|
|
147
|
+
id: "0a347debasdfasdfc223985f111",
|
|
148
|
+
selected: true,
|
|
149
|
+
profiles: [
|
|
173
150
|
{
|
|
174
|
-
name: "
|
|
175
|
-
customerNumber: "
|
|
151
|
+
name: "KRÄNKU TE & KAFFE",
|
|
152
|
+
customerNumber: "123",
|
|
153
|
+
id: "9b9059asdfadsf64eb05fd",
|
|
176
154
|
ssid: "",
|
|
177
|
-
selected:
|
|
178
|
-
|
|
155
|
+
selected: true,
|
|
156
|
+
customerGroup: "Agent"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
179
159
|
}
|
|
180
160
|
]
|
|
181
161
|
};
|
|
@@ -183,11 +163,22 @@ let PnMarketwebSiteheaderLoginProfileselection = class {
|
|
|
183
163
|
if (!data || !data.organizations || !data.organizations.length) {
|
|
184
164
|
return;
|
|
185
165
|
}
|
|
186
|
-
this.
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
this.
|
|
166
|
+
this.profileoptions = data.organizations;
|
|
167
|
+
let currentProfileObj = data.organizations.filter(x => x.selected === true)[0];
|
|
168
|
+
const userProfileOption = {
|
|
169
|
+
name: this.userName,
|
|
170
|
+
customerNumber: '',
|
|
171
|
+
id: '',
|
|
172
|
+
selected: (!currentProfileObj),
|
|
173
|
+
profiles: []
|
|
174
|
+
};
|
|
175
|
+
if (!currentProfileObj) {
|
|
176
|
+
currentProfileObj = userProfileOption;
|
|
177
|
+
}
|
|
178
|
+
if (currentProfileObj && currentProfileObj.name) {
|
|
179
|
+
this.currentProfile = currentProfileObj;
|
|
190
180
|
}
|
|
181
|
+
this.profileoptions.push(userProfileOption);
|
|
191
182
|
}
|
|
192
183
|
adjustLoginLinks() {
|
|
193
184
|
var _a, _b, _c, _d;
|
|
@@ -215,15 +206,21 @@ let PnMarketwebSiteheaderLoginProfileselection = class {
|
|
|
215
206
|
if (!userInfo) {
|
|
216
207
|
return;
|
|
217
208
|
}
|
|
218
|
-
if (userInfo.
|
|
209
|
+
if (userInfo && userInfo.email) {
|
|
210
|
+
this.userEmail = userInfo.email;
|
|
211
|
+
}
|
|
212
|
+
if (userInfo && userInfo.given_name) {
|
|
213
|
+
this.userName = userInfo.given_name + ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name) ? ` ${userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name}` : "");
|
|
214
|
+
}
|
|
215
|
+
if (userInfo && userInfo.given_name) {
|
|
219
216
|
this.userName = userInfo.given_name;
|
|
220
217
|
return;
|
|
221
218
|
}
|
|
222
|
-
if (userInfo.family_name) {
|
|
219
|
+
if (userInfo && userInfo.family_name) {
|
|
223
220
|
this.userName = userInfo.family_name;
|
|
224
221
|
return;
|
|
225
222
|
}
|
|
226
|
-
if (userInfo.username) {
|
|
223
|
+
if (userInfo && userInfo.username) {
|
|
227
224
|
this.userName = userInfo.username;
|
|
228
225
|
return;
|
|
229
226
|
}
|
|
@@ -233,11 +230,11 @@ let PnMarketwebSiteheaderLoginProfileselection = class {
|
|
|
233
230
|
return;
|
|
234
231
|
}
|
|
235
232
|
let hostElementAttribute = {};
|
|
236
|
-
return (index.h(index.Host, Object.assign({}, hostElementAttribute), this.heading ? index.h("strong", { class: "pn-marketweb-siteheader-login-profileselection-heading" }, this.heading) : null,
|
|
237
|
-
index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-
|
|
238
|
-
: null
|
|
233
|
+
return (index.h(index.Host, Object.assign({}, hostElementAttribute), this.heading ? index.h("strong", { class: "pn-marketweb-siteheader-login-profileselection-heading" }, this.heading) : null, this.currentProfile !== null && this.currentProfile.name ?
|
|
234
|
+
index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-name" }, this.currentProfile.name), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-description" }, this.currentProfile.customerNumber ? this.currentProfile.customerNumber : this.userEmail))
|
|
235
|
+
: null, index.h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks.filter(x => x.isLogoutLink === false), loginManager: this.loginManager, idNamespace: this.idNamespace }), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-divider" }), this.profileoptions.filter(x => x.selected !== true).map((organization) => {
|
|
239
236
|
let customerNumber = (organization.profiles.length > 0) ? organization.profiles[0].customerNumber : organization.customerNumber;
|
|
240
|
-
return (index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, index.h("a", { href: `${this.endpoint}/api/user/setprofile?customernumber=${customerNumber}&returnUrl=${window.location.href}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, organization.name), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber)), index.h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
237
|
+
return (index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, index.h("a", { href: `${this.endpoint}/api/user/setprofile?customernumber=${customerNumber}&returnUrl=${window.location.href}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, organization.name), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber ? organization.customerNumber : this.userEmail)), index.h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
241
238
|
}), this.logoutLink ?
|
|
242
239
|
index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, index.h("a", { href: this.logoutLink.href, rel: "nofollower noopener", onClick: () => this.loginManager.clearUserData(), class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText))
|
|
243
240
|
: null));
|
|
@@ -12,8 +12,9 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
12
12
|
this.user = null;
|
|
13
13
|
this.logoutLink = null;
|
|
14
14
|
this.userName = null;
|
|
15
|
+
this.userEmail = "";
|
|
15
16
|
this.currentProfile = null;
|
|
16
|
-
this.
|
|
17
|
+
this.profileoptions = [];
|
|
17
18
|
}
|
|
18
19
|
componentWillLoad() {
|
|
19
20
|
var _a;
|
|
@@ -28,7 +29,7 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
28
29
|
this.fetchProfiles();
|
|
29
30
|
}
|
|
30
31
|
async fetchProfiles() {
|
|
31
|
-
if (!this.loggedin || this.
|
|
32
|
+
if (!this.loggedin || this.profileoptions.length > 0) {
|
|
32
33
|
return;
|
|
33
34
|
}
|
|
34
35
|
let apiUrl = `${this.endpoint}${(this.endpoint.lastIndexOf('/') > -1 && this.endpoint.lastIndexOf('/') === this.endpoint.length - 1) ? '' : '/'}api/user/parentorganizations`;
|
|
@@ -38,41 +39,20 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
38
39
|
loggedin: true,
|
|
39
40
|
organizations: [
|
|
40
41
|
{
|
|
41
|
-
name: "
|
|
42
|
-
customerNumber: "
|
|
43
|
-
id: "
|
|
44
|
-
selected:
|
|
45
|
-
profiles: [
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "Bilmetro AB",
|
|
49
|
-
customerNumber: "5560612789",
|
|
50
|
-
id: "43707a2b-8e91-cef1-1907-0c091b907ff3",
|
|
51
|
-
selected: false,
|
|
52
|
-
profiles: [{
|
|
53
|
-
name: "BILMETRO AB",
|
|
54
|
-
customerNumber: "20221286",
|
|
55
|
-
ssid: "",
|
|
56
|
-
selected: false
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "Bilmetro AB",
|
|
60
|
-
customerNumber: "20300622",
|
|
61
|
-
ssid: "",
|
|
62
|
-
selected: false
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: "BILMETRO AB",
|
|
66
|
-
customerNumber: "20221258",
|
|
67
|
-
ssid: "",
|
|
68
|
-
selected: false
|
|
69
|
-
},
|
|
42
|
+
name: "KRÄNKU TE & KAFFE",
|
|
43
|
+
customerNumber: "123",
|
|
44
|
+
id: "0a347debasdfasdfc223985f111",
|
|
45
|
+
selected: true,
|
|
46
|
+
profiles: [
|
|
70
47
|
{
|
|
71
|
-
name: "
|
|
72
|
-
customerNumber: "
|
|
48
|
+
name: "KRÄNKU TE & KAFFE",
|
|
49
|
+
customerNumber: "123",
|
|
50
|
+
id: "9b9059asdfadsf64eb05fd",
|
|
73
51
|
ssid: "",
|
|
74
|
-
selected:
|
|
75
|
-
|
|
52
|
+
selected: true,
|
|
53
|
+
customerGroup: "Agent"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
76
56
|
}
|
|
77
57
|
]
|
|
78
58
|
};
|
|
@@ -80,11 +60,22 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
80
60
|
if (!data || !data.organizations || !data.organizations.length) {
|
|
81
61
|
return;
|
|
82
62
|
}
|
|
83
|
-
this.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this.
|
|
63
|
+
this.profileoptions = data.organizations;
|
|
64
|
+
let currentProfileObj = data.organizations.filter(x => x.selected === true)[0];
|
|
65
|
+
const userProfileOption = {
|
|
66
|
+
name: this.userName,
|
|
67
|
+
customerNumber: '',
|
|
68
|
+
id: '',
|
|
69
|
+
selected: (!currentProfileObj),
|
|
70
|
+
profiles: []
|
|
71
|
+
};
|
|
72
|
+
if (!currentProfileObj) {
|
|
73
|
+
currentProfileObj = userProfileOption;
|
|
74
|
+
}
|
|
75
|
+
if (currentProfileObj && currentProfileObj.name) {
|
|
76
|
+
this.currentProfile = currentProfileObj;
|
|
87
77
|
}
|
|
78
|
+
this.profileoptions.push(userProfileOption);
|
|
88
79
|
}
|
|
89
80
|
adjustLoginLinks() {
|
|
90
81
|
var _a, _b, _c, _d;
|
|
@@ -112,15 +103,21 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
112
103
|
if (!userInfo) {
|
|
113
104
|
return;
|
|
114
105
|
}
|
|
115
|
-
if (userInfo.
|
|
106
|
+
if (userInfo && userInfo.email) {
|
|
107
|
+
this.userEmail = userInfo.email;
|
|
108
|
+
}
|
|
109
|
+
if (userInfo && userInfo.given_name) {
|
|
110
|
+
this.userName = userInfo.given_name + ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name) ? ` ${userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name}` : "");
|
|
111
|
+
}
|
|
112
|
+
if (userInfo && userInfo.given_name) {
|
|
116
113
|
this.userName = userInfo.given_name;
|
|
117
114
|
return;
|
|
118
115
|
}
|
|
119
|
-
if (userInfo.family_name) {
|
|
116
|
+
if (userInfo && userInfo.family_name) {
|
|
120
117
|
this.userName = userInfo.family_name;
|
|
121
118
|
return;
|
|
122
119
|
}
|
|
123
|
-
if (userInfo.username) {
|
|
120
|
+
if (userInfo && userInfo.username) {
|
|
124
121
|
this.userName = userInfo.username;
|
|
125
122
|
return;
|
|
126
123
|
}
|
|
@@ -132,20 +129,20 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
132
129
|
let hostElementAttribute = {};
|
|
133
130
|
return (h(Host, Object.assign({}, hostElementAttribute),
|
|
134
131
|
this.heading ? h("strong", { class: "pn-marketweb-siteheader-login-profileselection-heading" }, this.heading) : null,
|
|
135
|
-
|
|
136
|
-
h("div", { class: "pn-marketweb-siteheader-login-profileselection-
|
|
137
|
-
|
|
138
|
-
h("div", { class: "pn-marketweb-siteheader-login-profileselection-
|
|
139
|
-
|
|
132
|
+
this.currentProfile !== null && this.currentProfile.name ?
|
|
133
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile" },
|
|
134
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-name" }, this.currentProfile.name),
|
|
135
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-description" }, this.currentProfile.customerNumber ? this.currentProfile.customerNumber : this.userEmail))
|
|
136
|
+
: null,
|
|
140
137
|
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks.filter(x => x.isLogoutLink === false), loginManager: this.loginManager, idNamespace: this.idNamespace }),
|
|
141
138
|
h("div", { class: "pn-marketweb-siteheader-login-profileselection-divider" }),
|
|
142
|
-
this.
|
|
139
|
+
this.profileoptions.filter(x => x.selected !== true).map((organization) => {
|
|
143
140
|
let customerNumber = (organization.profiles.length > 0) ? organization.profiles[0].customerNumber : organization.customerNumber;
|
|
144
141
|
return (h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" },
|
|
145
142
|
h("a", { href: `${this.endpoint}/api/user/setprofile?customernumber=${customerNumber}&returnUrl=${window.location.href}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" },
|
|
146
143
|
h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" },
|
|
147
144
|
h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, organization.name),
|
|
148
|
-
h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber)),
|
|
145
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber ? organization.customerNumber : this.userEmail)),
|
|
149
146
|
h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
150
147
|
}),
|
|
151
148
|
this.logoutLink ?
|
|
@@ -317,7 +314,7 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
317
314
|
},
|
|
318
315
|
"defaultValue": "null"
|
|
319
316
|
},
|
|
320
|
-
"
|
|
317
|
+
"profileoptions": {
|
|
321
318
|
"type": "unknown",
|
|
322
319
|
"mutable": true,
|
|
323
320
|
"complexType": {
|
|
@@ -342,7 +339,8 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
342
339
|
static get states() { return {
|
|
343
340
|
"user": {},
|
|
344
341
|
"logoutLink": {},
|
|
345
|
-
"userName": {}
|
|
342
|
+
"userName": {},
|
|
343
|
+
"userEmail": {}
|
|
346
344
|
}; }
|
|
347
345
|
static get elementRef() { return "hostElement"; }
|
|
348
346
|
}
|
package/custom-elements/index.js
CHANGED
|
@@ -4945,8 +4945,9 @@ let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
4945
4945
|
this.user = null;
|
|
4946
4946
|
this.logoutLink = null;
|
|
4947
4947
|
this.userName = null;
|
|
4948
|
+
this.userEmail = "";
|
|
4948
4949
|
this.currentProfile = null;
|
|
4949
|
-
this.
|
|
4950
|
+
this.profileoptions = [];
|
|
4950
4951
|
}
|
|
4951
4952
|
componentWillLoad() {
|
|
4952
4953
|
var _a;
|
|
@@ -4961,7 +4962,7 @@ let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
4961
4962
|
this.fetchProfiles();
|
|
4962
4963
|
}
|
|
4963
4964
|
async fetchProfiles() {
|
|
4964
|
-
if (!this.loggedin || this.
|
|
4965
|
+
if (!this.loggedin || this.profileoptions.length > 0) {
|
|
4965
4966
|
return;
|
|
4966
4967
|
}
|
|
4967
4968
|
let apiUrl = `${this.endpoint}${(this.endpoint.lastIndexOf('/') > -1 && this.endpoint.lastIndexOf('/') === this.endpoint.length - 1) ? '' : '/'}api/user/parentorganizations`;
|
|
@@ -4971,41 +4972,20 @@ let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
4971
4972
|
loggedin: true,
|
|
4972
4973
|
organizations: [
|
|
4973
4974
|
{
|
|
4974
|
-
name: "
|
|
4975
|
-
customerNumber: "
|
|
4976
|
-
id: "
|
|
4977
|
-
selected:
|
|
4978
|
-
profiles: [
|
|
4979
|
-
},
|
|
4980
|
-
{
|
|
4981
|
-
name: "Bilmetro AB",
|
|
4982
|
-
customerNumber: "5560612789",
|
|
4983
|
-
id: "43707a2b-8e91-cef1-1907-0c091b907ff3",
|
|
4984
|
-
selected: false,
|
|
4985
|
-
profiles: [{
|
|
4986
|
-
name: "BILMETRO AB",
|
|
4987
|
-
customerNumber: "20221286",
|
|
4988
|
-
ssid: "",
|
|
4989
|
-
selected: false
|
|
4990
|
-
},
|
|
4975
|
+
name: "KRÄNKU TE & KAFFE",
|
|
4976
|
+
customerNumber: "123",
|
|
4977
|
+
id: "0a347debasdfasdfc223985f111",
|
|
4978
|
+
selected: true,
|
|
4979
|
+
profiles: [
|
|
4991
4980
|
{
|
|
4992
|
-
name: "
|
|
4993
|
-
customerNumber: "
|
|
4981
|
+
name: "KRÄNKU TE & KAFFE",
|
|
4982
|
+
customerNumber: "123",
|
|
4983
|
+
id: "9b9059asdfadsf64eb05fd",
|
|
4994
4984
|
ssid: "",
|
|
4995
|
-
selected:
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
customerNumber: "20221258",
|
|
5000
|
-
ssid: "",
|
|
5001
|
-
selected: false
|
|
5002
|
-
},
|
|
5003
|
-
{
|
|
5004
|
-
name: "Bilmetro AB",
|
|
5005
|
-
customerNumber: "20581056",
|
|
5006
|
-
ssid: "",
|
|
5007
|
-
selected: false
|
|
5008
|
-
},]
|
|
4985
|
+
selected: true,
|
|
4986
|
+
customerGroup: "Agent"
|
|
4987
|
+
}
|
|
4988
|
+
]
|
|
5009
4989
|
}
|
|
5010
4990
|
]
|
|
5011
4991
|
};
|
|
@@ -5013,11 +4993,22 @@ let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
5013
4993
|
if (!data || !data.organizations || !data.organizations.length) {
|
|
5014
4994
|
return;
|
|
5015
4995
|
}
|
|
5016
|
-
this.
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
this.
|
|
4996
|
+
this.profileoptions = data.organizations;
|
|
4997
|
+
let currentProfileObj = data.organizations.filter(x => x.selected === true)[0];
|
|
4998
|
+
const userProfileOption = {
|
|
4999
|
+
name: this.userName,
|
|
5000
|
+
customerNumber: '',
|
|
5001
|
+
id: '',
|
|
5002
|
+
selected: (!currentProfileObj),
|
|
5003
|
+
profiles: []
|
|
5004
|
+
};
|
|
5005
|
+
if (!currentProfileObj) {
|
|
5006
|
+
currentProfileObj = userProfileOption;
|
|
5007
|
+
}
|
|
5008
|
+
if (currentProfileObj && currentProfileObj.name) {
|
|
5009
|
+
this.currentProfile = currentProfileObj;
|
|
5020
5010
|
}
|
|
5011
|
+
this.profileoptions.push(userProfileOption);
|
|
5021
5012
|
}
|
|
5022
5013
|
adjustLoginLinks() {
|
|
5023
5014
|
var _a, _b, _c, _d;
|
|
@@ -5045,15 +5036,21 @@ let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
5045
5036
|
if (!userInfo) {
|
|
5046
5037
|
return;
|
|
5047
5038
|
}
|
|
5048
|
-
if (userInfo.
|
|
5039
|
+
if (userInfo && userInfo.email) {
|
|
5040
|
+
this.userEmail = userInfo.email;
|
|
5041
|
+
}
|
|
5042
|
+
if (userInfo && userInfo.given_name) {
|
|
5043
|
+
this.userName = userInfo.given_name + ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name) ? ` ${userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name}` : "");
|
|
5044
|
+
}
|
|
5045
|
+
if (userInfo && userInfo.given_name) {
|
|
5049
5046
|
this.userName = userInfo.given_name;
|
|
5050
5047
|
return;
|
|
5051
5048
|
}
|
|
5052
|
-
if (userInfo.family_name) {
|
|
5049
|
+
if (userInfo && userInfo.family_name) {
|
|
5053
5050
|
this.userName = userInfo.family_name;
|
|
5054
5051
|
return;
|
|
5055
5052
|
}
|
|
5056
|
-
if (userInfo.username) {
|
|
5053
|
+
if (userInfo && userInfo.username) {
|
|
5057
5054
|
this.userName = userInfo.username;
|
|
5058
5055
|
return;
|
|
5059
5056
|
}
|
|
@@ -5063,11 +5060,11 @@ let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
5063
5060
|
return;
|
|
5064
5061
|
}
|
|
5065
5062
|
let hostElementAttribute = {};
|
|
5066
|
-
return (h(Host, Object.assign({}, hostElementAttribute), this.heading ? h("strong", { class: "pn-marketweb-siteheader-login-profileselection-heading" }, this.heading) : null,
|
|
5067
|
-
h("div", { class: "pn-marketweb-siteheader-login-profileselection-
|
|
5068
|
-
: null
|
|
5063
|
+
return (h(Host, Object.assign({}, hostElementAttribute), this.heading ? h("strong", { class: "pn-marketweb-siteheader-login-profileselection-heading" }, this.heading) : null, this.currentProfile !== null && this.currentProfile.name ?
|
|
5064
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-name" }, this.currentProfile.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-description" }, this.currentProfile.customerNumber ? this.currentProfile.customerNumber : this.userEmail))
|
|
5065
|
+
: null, h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks.filter(x => x.isLogoutLink === false), loginManager: this.loginManager, idNamespace: this.idNamespace }), h("div", { class: "pn-marketweb-siteheader-login-profileselection-divider" }), this.profileoptions.filter(x => x.selected !== true).map((organization) => {
|
|
5069
5066
|
let customerNumber = (organization.profiles.length > 0) ? organization.profiles[0].customerNumber : organization.customerNumber;
|
|
5070
|
-
return (h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, h("a", { href: `${this.endpoint}/api/user/setprofile?customernumber=${customerNumber}&returnUrl=${window.location.href}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, organization.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber)), h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
5067
|
+
return (h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, h("a", { href: `${this.endpoint}/api/user/setprofile?customernumber=${customerNumber}&returnUrl=${window.location.href}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, organization.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber ? organization.customerNumber : this.userEmail)), h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
5071
5068
|
}), this.logoutLink ?
|
|
5072
5069
|
h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, h("a", { href: this.logoutLink.href, rel: "nofollower noopener", onClick: () => this.loginManager.clearUserData(), class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText))
|
|
5073
5070
|
: null));
|
|
@@ -6132,7 +6129,7 @@ const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSitehea
|
|
|
6132
6129
|
const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[16],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"fullname":[1],"loggedin":[4],"showProfileSelection":[1028,"show-profile-selection"],"loginManager":[32],"loginLinks":[32],"toggleButtonText":[32],"username":[32]}]);
|
|
6133
6130
|
const PnMarketwebSiteheaderLoginLinklist = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginLinklist$1, [0,"pn-marketweb-siteheader-login-linklist",{"heading":[1],"links":[16],"idNamespace":[1,"id-namespace"],"loginManager":[16]}]);
|
|
6134
6131
|
const PnMarketwebSiteheaderLoginLinks = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginLinks$1, [0,"pn-marketweb-siteheader-login-links",{"loginDialog":[1040],"loginManager":[16],"idNamespace":[1,"id-namespace"],"loggedin":[516],"username":[1]}]);
|
|
6135
|
-
const PnMarketwebSiteheaderLoginProfileselection = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginProfileselection$1, [0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"loginManager":[16],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"currentProfile":[1040],"
|
|
6132
|
+
const PnMarketwebSiteheaderLoginProfileselection = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginProfileselection$1, [0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"loginManager":[16],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"currentProfile":[1040],"profileoptions":[1040],"user":[32],"logoutLink":[32],"userName":[32],"userEmail":[32]}]);
|
|
6136
6133
|
const PnMarketwebSiteheaderSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderSearch$1, [0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"language":[1537],"search":[1040],"primary":[4],"autoCompleteOptions":[32]}]);
|
|
6137
6134
|
const PnPexPricefinder = /*@__PURE__*/proxyCustomElement(PnPexPricefinder$1, [0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]);
|
|
6138
6135
|
const PnProductCard = /*@__PURE__*/proxyCustomElement(PnProductCard$1, [4,"pn-product-card"]);
|