xv-webcomponents 0.1.100 → 0.1.101-qa.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/dist/cjs/xv-accordion-v2_40.cjs.entry.js +12 -4
- package/dist/cjs/xv-accordion-v2_40.cjs.entry.js.map +1 -1
- package/dist/collection/components/xv-header/xv-header.js +12 -4
- package/dist/collection/components/xv-header/xv-header.js.map +1 -1
- package/dist/esm/xv-accordion-v2_40.entry.js +12 -4
- package/dist/esm/xv-accordion-v2_40.entry.js.map +1 -1
- package/dist/xv-webcomponents/{p-f828cab6.entry.js → p-fee4691b.entry.js} +2 -2
- package/dist/xv-webcomponents/p-fee4691b.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/xv-webcomponents/p-f828cab6.entry.js.map +0 -1
|
@@ -78024,8 +78024,16 @@ const XvHeader = class {
|
|
|
78024
78024
|
}
|
|
78025
78025
|
async componentWillLoad() {
|
|
78026
78026
|
this.loadMetaNav();
|
|
78027
|
+
const envMap = {
|
|
78028
|
+
'qa.crossvertise.com': 'qa',
|
|
78029
|
+
'staging.crossvertise.com': 'staging',
|
|
78030
|
+
'market.crossvertise.com': 'release'
|
|
78031
|
+
};
|
|
78032
|
+
const env = Object.keys(envMap).find(h => window.location.hostname.includes(h))
|
|
78033
|
+
? envMap[Object.keys(envMap).find(h => window.location.hostname.includes(h))]
|
|
78034
|
+
: 'qa';
|
|
78027
78035
|
try {
|
|
78028
|
-
const response = await fetch(
|
|
78036
|
+
const response = await fetch(`https://crossvertise.blob.core.windows.net/nav-sync-${env}/nav.html`);
|
|
78029
78037
|
const text = await response.text();
|
|
78030
78038
|
const parser = new DOMParser();
|
|
78031
78039
|
const doc = parser.parseFromString(text, 'text/html');
|
|
@@ -78044,9 +78052,9 @@ const XvHeader = class {
|
|
|
78044
78052
|
}
|
|
78045
78053
|
render() {
|
|
78046
78054
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16;
|
|
78047
|
-
return (index.h("div", { key: '
|
|
78048
|
-
_v.map(item => (index.h("li", null, index.h("a", { href: item.Url, target: item.Target || '_self' }, index.h("i", { class: item.CssClass }), "\u00A0", item.Text)))), ((_w = this.metaNav) === null || _w === void 0 ? void 0 : _w.IsManager) && (index.h("li", { key: '
|
|
78049
|
-
_7.map(item => (index.h("li", null, index.h("a", { href: item.Url, target: item.Target || '_self' }, index.h("i", { class: item.CssClass }), item.Text)))), index.h("li", { key: '
|
|
78055
|
+
return (index.h("div", { key: '6fa82243b7bf86f9f57f903310bf32b458fcb039', id: "nav-container", class: "xv-header" }, index.h("nav", { key: 'b7157fa20a5a18cfcecda6cde6f29c422d8845b0', class: "navbar navbar-default navbar-fixed-top backend-force-relative" }, index.h("div", { key: '7ba6c0508245566cad0d5be901d9245f743bca25', class: "container" }, index.h("div", { key: 'f11d170044b9b9ecf0fd392bbf6854293bd0acbb', class: "row" }, index.h("div", { key: 'e1ddf460336505b5834630344489e80b096d2538', class: "col-sm-3 col-xs-3 col-xxs-4 no-padding-right" }, index.h("div", { key: '4e72f227095a56df0575928f820be417076bb7fe', class: "navbar-header" }, index.h("button", { key: '06338899cd955feb0bf8b3f40a8cc4ca23ded254', class: "btn btn-default navbar-toggle pull-left navbar-btn", "data-toggle": "collapse", "data-target": "#main-menu" }, index.h("i", { key: 'bd53fd1d1ba96bf8c703682cc117d5b6344b6a02', class: "fa fa-bars fa-lg", "aria-hidden": "true" })), index.h("div", { key: '34d2eef0427bee391eb7f97966a38f7accc4e17d', class: "visible-xs-inline" }, index.h("a", { key: 'db59a8ad402f9bae6908a23c7e67f53b76590bd4', href: "https://www.crossvertise.com/", class: "navbar-brand" }, index.h("img", { key: 'ace1160b70e9349309fa95d62575764065bc2be9', src: "https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg", alt: "Crossvertise" }))), index.h("div", { key: '47533cad5a886e140dfad5117490e543efa75723', class: "hidden-xs" }, index.h("a", { key: '178a1991b2e30d51aabfd8866aa9180beee237ce', href: "https://www.crossvertise.com/", class: "navbar-brand" }, index.h("img", { key: '619d22601baed4a6d0fe33e654610ac5b377130f', loading: "lazy", src: "https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg", alt: "Crossvertise" }))))), index.h("div", { key: '6a8d38c34cd006a3d3c9d43fc65b1341897c68cb', class: "col-sm-9 col-xs-9 col-xxs-8 no-padding-left" }, index.h("ul", { key: 'bcd01e170cc60ceba57b5c447cbfe537d287a164', class: "nav nav-pills nav-meta pull-right" }, ((_a = this.metaNav) === null || _a === void 0 ? void 0 : _a.ImpersonationInfo) && (index.h("li", { key: '8634a046060f72a6bba1209178701f5b0247d170' }, index.h("div", { key: '86a66e6e5784399c02035289fcf9a6909cb1c77f', class: "btn btn-link navbar-btn navbar-btn-cust hidden-xs", onClick: this.togglePopover }, index.h("i", { key: '597864a7f68613caed239041aabd0a8ef290d6f0', class: "fa fa-user" }), index.h("i", { key: '6b5fe616f9decefa6ecb5d77ef961dfc4815ad1d', class: "fa fa-exchange-alt" })), index.h("div", { key: '451fcca127451ca6cc8b5a470526fa7c1569ca22', class: "popover popover-fixed fade bottom in", style: { "display": this.showPopover ? "block" : "none" } }, index.h("div", { key: 'b0aeb37f7296aa68ceb9890c914e73dbc3e6a9c7', class: "arrow" }), index.h("h3", { key: '5251654606edec5dc562f7af6759b2b99ba21d7c', class: "popover-title" }, "Momentan ist die Kundenperspektive aktiviert f\u00FCr:"), index.h("div", { key: '40b2467d98211e34223e19ed27610242796a57af', class: "popover-content" }, index.h("div", { key: 'e56ac514b4fa68da56c203a1c30da5d025a20d1b', class: "row" }, index.h("div", { key: 'aaf7557ae230f275be5efd84d6fb32ef9e41dce3', class: "col-xs-12" }, index.h("table", { key: '5238f3714436b06e28c0b850220c1ba9681d91d0', class: "table-condensed" }, index.h("tbody", { key: 'f5fc220ae7449ec0761de71763eeed964dfe0720' }, index.h("tr", { key: '3f52f72515565e676e8d74edc0222f3ec89f3b69' }, index.h("td", { key: '519fbfcfafb2ad237c8ebbf46d524826a8f1f791' }, index.h("span", { key: '7da2732842192434761d6204ee9962f04dec1a83' }, (_c = (_b = this.metaNav) === null || _b === void 0 ? void 0 : _b.ImpersonationInfo) === null || _c === void 0 ? void 0 : _c.NameAndTitle))), index.h("tr", { key: '7bdcb7395cca866527541f9099ce01d98354a1f3' }, index.h("td", { key: '5e8c7d92b75f5718f9e9e13cbdc092f810b55377' }, index.h("span", { key: '60764defd0375fa9137e91f35951f7b73076f768' }, (_e = (_d = this.metaNav) === null || _d === void 0 ? void 0 : _d.ImpersonationInfo) === null || _e === void 0 ? void 0 : _e.CompanyName))), index.h("tr", { key: '7159610125c2f772a5c48346816d7312478a0cc3' }, index.h("td", { key: '48c3997c911f403dd89e57c7a65f4ad8112cc2fe' }, index.h("span", { key: '7fe74259c2f5973ffaa86b04054937edb69e5dc6' }, (_g = (_f = this.metaNav) === null || _f === void 0 ? void 0 : _f.ImpersonationInfo) === null || _g === void 0 ? void 0 : _g.Email))), index.h("tr", { key: '5a5cc177bc0b7976d2f7964d2f48e92d28b611db' }, index.h("td", { key: '1e9c888df5e877fc4a795b5837de54038bba597b' }, index.h("span", { key: 'e9d3b4533b97d9fb1e4ac285ba9deb5e0f1e6138' }, (_j = (_h = this.metaNav) === null || _h === void 0 ? void 0 : _h.ImpersonationInfo) === null || _j === void 0 ? void 0 : _j.PhoneOffice)))))))), index.h("div", { key: '5383da579510255408643c2ebbc7254edfd43481', class: "row contact-contactform-container", id: "contact-contactform-container-nav" }, index.h("div", { key: 'cc4b1bf42338f8cb37db88eb766bd35803d04a82', class: "col-xs-12" }, index.h("a", { key: '11172a48be991417a50bfadb50880d84a9a599d2', class: "btn btn-primary btn-block", href: "/de-de/mycrossvertise/account/clearimpersonation" }, "Kundenperspektive verlassen")))))), index.h("li", { key: '99fee85c6d5e78e7acc4fc0c136b703ad3f0de70' }, index.h("a", { key: 'ef5b453cbd12f667fc33a4ef9d8fcd882c0b8dba', class: "btn btn-link navbar-btn hidden-xs", href: "#" }, "Kontakt"), index.h("a", { key: 'bae0d7f00655a047aca9d613c0ef381a6c1a87f4', href: "/contact", class: "btn btn-link navbar-btn hidden-xs", style: { display: 'none' } }, "Kontakt"), index.h("a", { key: '3d6e650d43ab34f4cd0fed5e71ae8d91c2e52270', class: "btn btn-default btn-link navbar-btn visible-xs hidden-xxs", href: "#" }, index.h("i", { key: 'ada9ec0ed7ecc0ac6bcdab7637cc679974b88571', class: "fa fa-phone" }))), ((_k = this.metaNav) === null || _k === void 0 ? void 0 : _k.IsManager) && (index.h("li", { key: 'e8a68bbf0377fd097a5a8b3f23fc572dd90e7166', class: "dropdown" }, index.h("a", { key: 'b9d2a237abed25e9feae3aa321d14e0341a1938a', class: "dropdown-toggle btn navbar-btn btn-link", "data-toggle": "dropdown", role: "button", "data-container": "body", "aria-haspopup": "true", "aria-expanded": "false" }, index.h("i", { key: '4b77b0d27339f4d442a1a8621234e935c8b86030', class: "fas fa-bell fa-lg" }), index.h("span", { key: '4965784851d0560ad8eead0509c8fa3c5b675e0f', id: "notifications-count", class: "badge badge-success badge-top-right", style: { display: 'none' } })))), ((_l = this.metaNav) === null || _l === void 0 ? void 0 : _l.IsAuthenticated) && (index.h("li", { key: '809955154feb5c613168da5aa1cf023e675201b2', class: "dropdown", id: "my-xv-menu" }, index.h("a", { key: '879e070047ba40a0f76aa5b6677e38537da61bd5', class: "dropdown-toggle btn navbar-btn btn-link", "data-toggle": "dropdown", role: "button", "data-container": "body", "aria-haspopup": "true", "aria-expanded": "false" }, index.h("i", { key: '24597034077958d8c7dcb7e275b00186bb229027', class: "fa fa-user fa-lg text-success", "aria-hidden": "true" }), "\u00A0", index.h("span", { key: '5229f64e025390b470d7dc607e203008060416cb', class: "hidden-xs" }, (_m = this.metaNav) === null || _m === void 0 ? void 0 : _m.UserMenuText), "\u00A0", index.h("span", { key: '9ab38b6db6be3144e01f3eb74392ca33e620691b', class: "caret" })), index.h("ul", { key: 'ccc5c15912dad420e89d37978245fca31a44a921', class: "dropdown-menu-left dropdown-menu navbar-myxv" }, ((_o = this.metaNav) === null || _o === void 0 ? void 0 : _o.IsManager) && (index.h("li", { key: '460673e30f246de399bd042b943d9a0381f2840e' }, index.h("a", { key: '07948b21442a7c6411eb7440296f3d74a2d6b551', onClick: () => this.toggleCockpitMenu() }, index.h("i", { key: '82642495430ce344057b90f9215753660f0eb2cc', class: "fa fa-tachometer-alt fa-fw" }), "\u00A0Cockpitfunktionen \u00A0", index.h("i", { key: '5f996cc4efac9119115ccf7bcbc12333d6d0864c', class: "fa fa-caret-down" })))), this.isCockpitMenuExpanded && ((_q = (_p = this.metaNav) === null || _p === void 0 ? void 0 : _p.ManagerCockpitMenu) === null || _q === void 0 ? void 0 : _q.map(item => (index.h("li", { class: 'user-menu-item' }, index.h("a", { href: item.Url, target: item.Target || '_self' }, index.h("i", { class: item.CssClass }), "\u00A0\u00A0", item.Text))))), ((_r = this.metaNav) === null || _r === void 0 ? void 0 : _r.IsManager) && (index.h("li", { key: 'c371237c3e8f75e92418cc1069de388019b36f7d' }, index.h("a", { key: '152a6ee6ae50a8e327557696ec2d837db114e555', onClick: () => this.toggleEntitiesMenu() }, index.h("i", { key: '07f2ad22910b9d8d71990e738674590cee6f1548', class: "fa fa-cubes" }), "\u00A0Entit\u00E4ten \u00A0", index.h("i", { key: 'c4ff77d644a764ceee16f0b8d7fceca283112a35', class: "fa fa-caret-down" })))), this.isEntitiesMenuExpanded && ((_t = (_s = this.metaNav) === null || _s === void 0 ? void 0 : _s.ManagerEntitiesMenu) === null || _t === void 0 ? void 0 : _t.map(item => (index.h("li", { class: 'user-menu-item' }, index.h("a", { href: item.Url, target: item.Target || '_self' }, index.h("i", { class: item.CssClass }), item.Text))))), (_v = (_u = this.metaNav) === null || _u === void 0 ? void 0 : _u.ManagerMenu) === null || _v === void 0 ? void 0 :
|
|
78056
|
+
_v.map(item => (index.h("li", null, index.h("a", { href: item.Url, target: item.Target || '_self' }, index.h("i", { class: item.CssClass }), "\u00A0", item.Text)))), ((_w = this.metaNav) === null || _w === void 0 ? void 0 : _w.IsManager) && (index.h("li", { key: 'e58355ede5db360660194e4882834dc7252142cb', role: "separator", class: "divider" })), ((_x = this.metaNav) === null || _x === void 0 ? void 0 : _x.IsManager) && (index.h("li", { key: '0db4be83bf87624a7b0659d92c72dd1aa9b1f7e8' }, index.h("a", { key: '2b2ea2f1cd2f8f3476a267c04f0c33dfb839c975', onClick: () => this.toggleUserMenu() }, index.h("i", { key: '104f796eca223cc0082c2a70e2e42f8b904fcfd0', class: "fa fa-user" }), "\u00A0Mein Crossvertise \u00A0", index.h("span", { key: '9509dd0e83b9ca28b68772a65d14df0d1d8316f6', class: "badge" }, (_y = this.metaNav) === null || _y === void 0 ? void 0 : _y.PendingItems), index.h("i", { key: '2479a6c03308091b06b4c61013e42b2924065772', class: "fa fa-caret-down" })))), this.isUserMenuExpanded && ((_0 = (_z = this.metaNav) === null || _z === void 0 ? void 0 : _z.UserMenu) === null || _0 === void 0 ? void 0 : _0.map(item => (index.h("li", { class: 'user-menu-item' }, index.h("a", { href: item.Url, target: item.Target || '_self' }, index.h("i", { class: item.CssClass }), item.Text, "\u00A0", item.BadgeText && (index.h("span", { class: "badge" }, item.BadgeText))))))), ((_2 = (_1 = this.metaNav) === null || _1 === void 0 ? void 0 : _1.ImpersonationInfo) === null || _2 === void 0 ? void 0 : _2.isImpersonated) && (index.h("li", { key: '538db268f6628b026f67d7cc8dc0aa60b0c53230', class: 'user-menu-item' }, index.h("a", { key: 'ae2d896bd12f580dbdf58ac39a3b548951ffcf7b', href: (_4 = (_3 = this.metaNav) === null || _3 === void 0 ? void 0 : _3.ImpersonationInfo) === null || _4 === void 0 ? void 0 : _4.ClearImpersonationUrl }, index.h("i", { key: '910169c8eff483384a565f7e146abd5f58679527', class: "fa fa-exchange-alt" }), "Kundenperspektive verlassen"))), ((_5 = this.metaNav) === null || _5 === void 0 ? void 0 : _5.IsManager) && (index.h("li", { key: '21dfe2f031b656fa6de6cfac3ae59838a4cd3e81', role: "separator", class: "divider" })), (_7 = (_6 = this.metaNav) === null || _6 === void 0 ? void 0 : _6.ActionsMenu) === null || _7 === void 0 ? void 0 :
|
|
78057
|
+
_7.map(item => (index.h("li", null, index.h("a", { href: item.Url, target: item.Target || '_self' }, index.h("i", { class: item.CssClass }), item.Text)))), index.h("li", { key: '5056fadd41c51edd7eedfb7ac9bbb19532ea1dee' }, index.h("a", { key: 'a257dd45966ad8b007af6e27a29a9d0fff1fe6c9', href: "/de-de/mycrossvertise/account/logoff?returnUrl=/" }, index.h("i", { key: '754c715453e61d157e478ed0317dfa036278d453', class: "fa fa-sign-out-alt fa-fw", "aria-hidden": "true" }), "Logout"))))), index.h("li", { key: '5235b8725a5998b58ddf0d88020e75bd4ebadb87', class: "visible-sm-block visible-xs-block hidden-xxs" }, index.h("a", { key: 'ee8275f12b7b826b1b920e016dbe18d1735c6652', class: "btn btn-default navbar-btn btn-link", "data-toggle": "collapse", "data-target": "#search-collapse" }, index.h("i", { key: '3681c7d2d467d9203c2c6d1b2b2b7d295abbb8d9', class: "fa fa-search", "aria-hidden": "true" }))), !((_8 = this.metaNav) === null || _8 === void 0 ? void 0 : _8.IsAuthenticated) && (index.h("li", { key: 'c73a16e6b1405386229d04226ca96fb0a5a3c648', class: "hidden-md hidden-lg" }, index.h("a", { key: '793e7ebb1a1d68e43f88d4871b4e0061bd49e8d5', class: "btn btn-default navbar-btn btn-link mob-login", href: "/de-de/mycrossvertise/account/logon" }, index.h("i", { key: '350906054378fbaa2659644a2466c8d23cad26b6', class: "fa fa-user fa-lg", "aria-hidden": "true" })))), index.h("xv-login-modal", { key: 'e88c163d1f1c102072bb2b0bdb69e0b5290c4df0', visible: this.showLoginModal, onClose: this.closeLoginModal }), !((_9 = this.metaNav) === null || _9 === void 0 ? void 0 : _9.IsAuthenticated) && (index.h("li", { key: '39d478b7f5785076c66ea07950357230f35c7698', class: "hidden-xs hidden-sm" }, index.h("a", { key: 'd60e39fec63eef3481cf2c7ea71dd2ac9c9999d0', role: "button", onClick: this.openLoginModal, class: "btn btn-default navbar-btn btn-link" }, index.h("i", { key: 'eadaac079bfd5dea0124bf1e7c9c96b15f6d6e5f', class: "fa fa-user fa-lg", "aria-hidden": "true" }), index.h("span", { key: '081248fa324202d90625a53440f641c9c418632f', class: "padding-sm-left" }, "Login")))), !((_10 = this.metaNav) === null || _10 === void 0 ? void 0 : _10.IsAuthenticated) && (index.h("li", { key: '11dec998ec5a8752f55fd501de49c50a62b905ce', class: "hidden-xs" }, index.h("a", { key: '8783a8c544f190a411ec06d6c5dd8cf8730de411', class: "btn btn-default navbar-btn btn-link", href: "/de-de/mycrossvertise/account/register" }, index.h("span", { key: '6e3c9f53dd676ec48330075bdfbafc288d6a6385' }, "Registrieren")))), index.h("li", { key: 'b8dfb68a0f56711017d8f39c93e34ee8b1bdbd19', class: "navbar-divider hidden-xs" }), index.h("li", { key: 'c7d903e2304f0d356a73d0624586ac0dfa845f65' }, index.h("a", { key: '6110767fe6b7795a1b9b7c3551965c0f1b548dfe', class: "btn btn-success navbar-btn", href: "/de-de/mycrossvertise/shoppingcart/activecart" }, index.h("span", { key: 'e07a970917b248ba044dbb1b3fb4a114d2991796', class: "xv-font-icon-warenkorb fa-lg fa-fw", "aria-hidden": "true" }), index.h("span", { key: 'dcedd657fb2f504a00b45e1f3ba49cdabc70e035', class: "hidden-xs hidden-sm" }, "\u00A0Warenkorb\u00A0"), index.h("span", { key: '3f1606bacfe12adfd246efa8b4a58b5edfcda6ea', class: "badge badge-success" }, ((_12 = (_11 = this.metaNav) === null || _11 === void 0 ? void 0 : _11.Cart) === null || _12 === void 0 ? void 0 : _12.NumberOfItems) || 0))))))), index.h("div", { key: 'bd1f3a4222fdb2bdfb468e3cc47aeb6a48ec981b', class: "collapse hidden-md hidden-lg", id: "search-collapse" }, index.h("div", { key: 'a158f726db02b756fe9c7cb91cd462be71ab32fa', class: "container" }, index.h("form", { key: 'ba03e8602e84c55aff93cf6fdafe4fb660234aec', action: "/de-de/media/search", class: "navbar-form", method: "get", role: "search" }, index.h("div", { key: 'af20e4432c4e5311c7d549a67a1cdd27f8409d33', class: "input-group" }, index.h("input", { key: 'dd7e5080c1084b4492e5d653a9c93f6eceb8ee4d', class: "form-control", name: "Q", placeholder: "Suche", type: "text", autocomplete: "off" }), index.h("span", { key: 'ef626897e33aa4565048b479fd99839cedd53542', class: "input-group-btn force-full-width" }, index.h("button", { key: '59aab9f65d06b82033967b8dcb31284060a6e21c', class: "btn btn-default search-addon", type: "submit" }, index.h("i", { key: '85be6727d010eba64851cee6589c31ec23bac8dd', class: "fa fa-search", "aria-hidden": "true" })))))))), index.h("div", { key: 'd96b4dd9b16180ad80f742650eb6909535fb9e6d', innerHTML: this.htmlContent }), index.h("ul", { key: 'bca76e7211d0cb0085589f78defa201d88f9b829', class: "ui-autocomplete ui-front ui-menu ui-widget ui-widget-content ui-corner-all", id: "xv-search-suggestions", tabindex: "0", style: {
|
|
78050
78058
|
width: `${(_13 = this.listPosition) === null || _13 === void 0 ? void 0 : _13.width}px`,
|
|
78051
78059
|
top: `${(_14 = this.listPosition) === null || _14 === void 0 ? void 0 : _14.top}px`,
|
|
78052
78060
|
left: `${(_15 = this.listPosition) === null || _15 === void 0 ? void 0 : _15.left}px`,
|