xv-webcomponents 1.25.1 → 1.25.2

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.
Files changed (72) hide show
  1. package/dist/cjs/{index-DpLAFt0R.js → index-CsKqwBc1.js} +644 -7
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/xv-accordion-v2_50.cjs.entry.js +59 -41
  4. package/dist/cjs/xv-footer-next.cjs.entry.js +122 -0
  5. package/dist/cjs/xv-header-next.cjs.entry.js +2 -2
  6. package/dist/cjs/xv-mega-menu-next.cjs.entry.js +7 -7
  7. package/dist/cjs/xv-webcomponents.cjs.js +2 -2
  8. package/dist/collection/collection-manifest.json +1 -0
  9. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +2 -1
  10. package/dist/collection/components/xv-footer-next/xv-footer-next.css +486 -0
  11. package/dist/collection/components/xv-footer-next/xv-footer-next.js +167 -0
  12. package/dist/collection/components/xv-footer-next/xv-footer-next.model.js +17 -0
  13. package/dist/collection/components/xv-geo-map/xv-geo-map.js +41 -1
  14. package/dist/collection/components/xv-header/xv-header.js +1 -1
  15. package/dist/collection/components/xv-header-next/xv-header-next.js +1 -1
  16. package/dist/collection/components/xv-image-viewer/xv-image-viewer.js +1 -1
  17. package/dist/collection/components/xv-link/xv-link.js +1 -1
  18. package/dist/collection/components/xv-mega-menu/xv-mega-menu.css +46 -2
  19. package/dist/collection/components/xv-mega-menu/xv-mega-menu.js +6 -7
  20. package/dist/collection/components/xv-mega-menu-next/xv-mega-menu-next.css +42 -2
  21. package/dist/collection/components/xv-mega-menu-next/xv-mega-menu-next.js +20 -6
  22. package/dist/collection/components/xv-modal/xv-modal.js +1 -1
  23. package/dist/collection/components/xv-notification/xv-notification.js +1 -1
  24. package/dist/collection/components/xv-number-input/xv-number-input.js +2 -2
  25. package/dist/collection/components/xv-pagination/xv-pagination.js +1 -1
  26. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
  27. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
  28. package/dist/collection/components/xv-radio/xv-radio.js +2 -2
  29. package/dist/collection/components/xv-slider/xv-slider.js +1 -1
  30. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
  31. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
  32. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
  33. package/dist/collection/components/xv-table/xv-table.js +1 -1
  34. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
  35. package/dist/collection/components/xv-tag/xv-tag.js +1 -1
  36. package/dist/collection/components/xv-tag-combobox/xv-tag-combobox.js +2 -2
  37. package/dist/collection/components/xv-text-input/xv-text-input.js +2 -2
  38. package/dist/collection/components/xv-textarea/xv-textarea.js +2 -2
  39. package/dist/collection/components/xv-tile/xv-tile.js +2 -2
  40. package/dist/collection/components/xv-toggle/xv-toggle.js +1 -1
  41. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +1 -1
  42. package/dist/collection/components/xv-tooltip/xv-tooltip.js +2 -2
  43. package/dist/esm/{index-CQm2sRKT.js → index-D0yFoU2h.js} +1 -1
  44. package/dist/esm/{index-DmxA2ysB.js → index-Owr_mJOX.js} +644 -7
  45. package/dist/esm/index.js +1 -1
  46. package/dist/esm/loader.js +3 -3
  47. package/dist/esm/xv-accordion-v2_50.entry.js +60 -42
  48. package/dist/esm/xv-footer-next.entry.js +120 -0
  49. package/dist/esm/xv-header-next.entry.js +3 -3
  50. package/dist/esm/xv-mega-menu-next.entry.js +8 -8
  51. package/dist/esm/xv-webcomponents.js +3 -3
  52. package/dist/types/components/xv-footer-next/xv-footer-next.d.ts +42 -0
  53. package/dist/types/components/xv-footer-next/xv-footer-next.model.d.ts +43 -0
  54. package/dist/types/components/xv-geo-map/xv-geo-map.d.ts +7 -0
  55. package/dist/types/components/xv-mega-menu-next/xv-mega-menu-next.d.ts +14 -0
  56. package/dist/types/components.d.ts +131 -0
  57. package/dist/xv-webcomponents/index.esm.js +1 -1
  58. package/dist/xv-webcomponents/p-3dd10203.entry.js +1 -0
  59. package/dist/xv-webcomponents/{p-CQm2sRKT.js → p-D0yFoU2h.js} +1 -1
  60. package/dist/xv-webcomponents/p-Owr_mJOX.js +2 -0
  61. package/dist/xv-webcomponents/p-b0fbf402.entry.js +8 -0
  62. package/dist/xv-webcomponents/p-ec19bcc7.entry.js +1 -0
  63. package/dist/xv-webcomponents/{p-f46bb687.entry.js → p-fbd8ca68.entry.js} +1 -1
  64. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
  65. package/hydrate/index.d.ts +287 -0
  66. package/hydrate/index.js +113808 -0
  67. package/hydrate/index.mjs +113798 -0
  68. package/hydrate/package.json +12 -0
  69. package/package.json +8 -2
  70. package/dist/xv-webcomponents/p-7832549c.entry.js +0 -8
  71. package/dist/xv-webcomponents/p-DmxA2ysB.js +0 -2
  72. package/dist/xv-webcomponents/p-fe9b38f8.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as e,c as n,h as t,F as a,H as m,a as x}from"./p-Owr_mJOX.js";import{a as i}from"./p-D0yFoU2h.js";const s=class{constructor(t){e(this,t),this.openChange=n(this,"openChange",7),this.mobileSize=991,this.open=!1,this.menuItems=[],this.applicationContext="Xv",this.menuLoading=!1}handleClickOutside(e){this.open&&!this.el.contains(e.target)&&this.handleClose()}handleClose(){this.open=!1,this.activeItem=this.activeGroup=void 0,this.openChange.emit(this.open)}get isMobile(){return window.outerWidth<=this.mobileSize}setActiveItem(e){var n,t,a,m,x;this.activeItem=(null===(n=this.activeItem)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)?void 0:e,this.isMobile&&1!==((null===(a=null===(t=this.activeItem)||void 0===t?void 0:t.groups)||void 0===a?void 0:a.length)||0)||this.setActiveGroup(null===(x=null===(m=this.activeItem)||void 0===m?void 0:m.groups)||void 0===x?void 0:x[0]),this.isMobile||(this.open=!!this.activeItem,!this.open&&this.handleClose())}setActiveGroup(e){var n;this.activeGroup=this.isMobile&&(null===(n=this.activeGroup)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)?void 0:e}navActionClick(e){window.location.href=e.url}parseMenuData(e){if(!e)return null;if(Array.isArray(e))return e;try{const n=JSON.parse(e);return Array.isArray(n)?n:null}catch(e){return console.warn("xv-mega-menu-next: invalid menu-data JSON",e),null}}async fetchMenuData(){try{this.menuItems=await i.get("/api-fd/v1/home/menu",{awaitWl:!0,credentials:"include"}).then((({data:e,meta:n})=>(this.applicationContext=n.applicationContext,e||[])))}catch(e){console.error("fetchMenuData error",e),this.menuItems=[]}}onMenuDataChange(e){const n=this.parseMenuData(e);n&&(this.menuItems=n)}componentWillLoad(){const e=this.parseMenuData(this.menuData);e?this.menuItems=e:this.fetchMenuData()}render(){return t(m,{key:"2aedf5fcd9dfb34d64b7febf92585088548a68e9"},t("nav",{key:"e3e0a1e52a24094470100f1da66a03f02a8b46b7",class:{"xv-menu":!0,open:this.open}},this.menuLoading&&t("div",{key:"5ae91639ffd7d2ec8f1ec88ac5730b40dca0fcb0",class:{"xv-menu-loader":!0,open:this.open}},t("xv-loader-v2",{key:"dc99655021a279ea4fdc09f0989e61404e3c7af3"})),t("ul",{key:"c246f2b56c05e4115a3b0d5865468d883823c27a",class:{menu:!0,open:this.open}},this.menuItems.map((e=>{var n,m;return t("li",{class:{"menu-item":!0,active:e.id===(null===(n=this.activeItem)||void 0===n?void 0:n.id)}},e.route?t("a",{class:"menu-item-label",href:e.route.route},null===(m=e.route)||void 0===m?void 0:m.label):t(a,null,t("p",{class:"menu-item-label",onClick:()=>this.setActiveItem(e)},null==e?void 0:e.label),t("ul",{class:"menu-item-groups"},e.groups.map((n=>{var a;return t("li",{class:{group:!0,active:(null===(a=this.activeGroup)||void 0===a?void 0:a.id)===n.id}},n.label&&e.groups.length>1&&t("div",{class:"group-label",onClick:()=>this.setActiveGroup(n)},t("span",{class:"group-label-text"},n.label),t("span",{class:"group-label-icon"})),t("div",{class:"group-container"},t("div",{class:{"group-container-absolute":!0,noLabel:!(n.label&&e.groups.length>1)}},t("div",{class:"group-menus"},t("ul",{class:{"group-menus-categories":!0,inline:"inline"===n.layout}},n.categories.map((e=>t("li",{class:"category"},t("p",{class:"category-label"},e.label),t("ul",{class:"category-routes"},e.routes.map((e=>t("li",{class:"route"},t("a",{class:"route-link",href:e.route||"#"},e.label),e.tag&&t("xv-tag-v2",{class:"route-tag",size:"sm",color:"#161616",bg:"#E0E0E0"},e.tag))))))))),t("ul",{class:"group-menus-actions"},n.actions.map((e=>t("li",{class:"action"},"link"===e.type&&t("a",{class:"action-link",href:null==e?void 0:e.url},e.label,t("span",{class:"link-chevron"},"→")),"button"===e.type&&t("xv-button-v2",{onClick:()=>this.navActionClick(e),block:!0,variant:"tertiary"},e.label)))))),(null==n?void 0:n.card)&&t("div",{class:"group-card"},t("xv-card-v2",{media:"Komsa"!==this.applicationContext?n.card.image:void 0,variant:this.isMobile?"horizontal":"vertical"},t("h5",{slot:"header",class:"group-card-title"},n.card.title),t("p",{slot:"body",class:"group-card-desc"},n.card.description),n.card.linkLabel&&t("a",{slot:"footer",class:"action-link",href:n.card.linkUrl||"#"},n.card.linkLabel,t("span",{class:"link-chevron"},"→")))))))})))))})),t("li",{key:"fc1f177ba14892c4568d445344f69297975e6fa4",class:"menu--right"},t("slot",{key:"7873fc7f12c0837c3a78a46b6fd63f7123ef2775",name:"menu-right"})),this.open&&t("li",{key:"dc8ebef4ebd45ca734e5377904846e5cdbd1975f",class:"menu--backdrop",onClick:()=>this.handleClose()}))))}get el(){return x(this)}static get watchers(){return{menuData:[{onMenuDataChange:0}]}}};s.style=".sc-xv-mega-menu-next-h{--menu-group-width:244px;--menu-group-height:454px;--link-visited:var(--link-primary)}.xv-menu.sc-xv-mega-menu-next{background:inherit;position:relative;font-family:var(--ff-work-sans), sans-serif}@media (min-width: 992px){.xv-menu.sc-xv-mega-menu-next{min-height:55px}}.xv-menu-loader.sc-xv-mega-menu-next{position:absolute;top:0;left:0;width:100%;height:100%;z-index:4;background-color:rgba(255, 255, 255, 0.7);display:flex;align-items:center;justify-content:center}@media (max-width: 991px){.xv-menu-loader.sc-xv-mega-menu-next:not(.open){display:none}}@media (max-width: 991px){.xv-menu.open.sc-xv-mega-menu-next{padding-bottom:env(safe-area-inset-bottom);max-height:calc(100vh - 120px);overflow:auto;overscroll-behavior:contain}}.xv-menu_mobile.sc-xv-mega-menu-next{position:relative;display:none}@media (max-width: 991px){.xv-menu_mobile.sc-xv-mega-menu-next{display:inline-flex}}.xv-menu.sc-xv-mega-menu-next ul.sc-xv-mega-menu-next{margin:0;padding:0;list-style:none}.xv-menu.sc-xv-mega-menu-next .link-chevron.sc-xv-mega-menu-next{display:inline-block;margin-inline-start:var(--spacing-01)}.xv-menu.sc-xv-mega-menu-next .action-link.sc-xv-mega-menu-next{display:block;color:var(--link-primary);text-decoration:none;transition:color 200ms ease-in-out}.xv-menu.sc-xv-mega-menu-next .action-link.sc-xv-mega-menu-next:visited{color:var(--link-primary)}.xv-menu.sc-xv-mega-menu-next .action-link.sc-xv-mega-menu-next:hover,.xv-menu.sc-xv-mega-menu-next .action-link.sc-xv-mega-menu-next:focus,.xv-menu.sc-xv-mega-menu-next .action-link.sc-xv-mega-menu-next:active{text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;text-decoration-color:var(--link-primary)}.xv-menu.sc-xv-mega-menu-next .action-link.sc-xv-mega-menu-next:hover{color:var(--link-primary-hover);cursor:pointer}.xv-menu.sc-xv-mega-menu-next .action-link.sc-xv-mega-menu-next:focus{outline:1px solid var(--focus);outline-offset:1px}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next{overflow-x:auto;display:flex;justify-content:flex-start;column-gap:var(--spacing-08)}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next{flex-direction:column;display:none}}.xv-menu.sc-xv-mega-menu-next .menu--right.sc-xv-mega-menu-next{margin-left:auto;display:flex;align-items:center;align-self:center}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu--right.sc-xv-mega-menu-next{margin-left:unset;padding-block:var(--spacing-05)}}.xv-menu.sc-xv-mega-menu-next .menu--backdrop.sc-xv-mega-menu-next{z-index:-1;background-color:rgba(0, 0, 0, 0.3);position:fixed;top:0;left:0;width:100%;height:100%}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.open.sc-xv-mega-menu-next{display:flex}}.xv-menu.sc-xv-mega-menu-next .menu-item.sc-xv-mega-menu-next:hover .menu-item-label.sc-xv-mega-menu-next{border-bottom-color:var(--interactive-02)}.xv-menu.sc-xv-mega-menu-next .menu-item.active.sc-xv-mega-menu-next .menu-item-groups.sc-xv-mega-menu-next{z-index:990;display:flex}.xv-menu.sc-xv-mega-menu-next .menu-item.active.sc-xv-mega-menu-next .menu-item-label.sc-xv-mega-menu-next{border-bottom-color:var(--interactive-02)}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu-item.active.sc-xv-mega-menu-next{border-bottom:1px solid #E1E4ED}}.xv-menu.sc-xv-mega-menu-next .menu-item-label.sc-xv-mega-menu-next{display:block;margin:0;padding-block:var(--spacing-05, 16px);color:inherit;text-decoration:none;font-size:16px;line-height:24px;font-family:var(--ff-body), sans-serif;font-weight:600;cursor:pointer;border-bottom:2px solid transparent;transition:250ms ease-in-out border-bottom-color;user-select:none;white-space:nowrap}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu-item-label.sc-xv-mega-menu-next{border-bottom:1px solid #E1E4ED}}.xv-menu.sc-xv-mega-menu-next .menu-item-groups.sc-xv-mega-menu-next{z-index:-1;position:absolute;left:0;top:100%;width:100%;background-color:var(--background, #fff);display:none;flex-direction:column;border:1px solid var(--border-subtle-01);row-gap:var(--spacing-05);padding-block:var(--spacing-08) var(--spacing-06);min-height:var(--menu-group-height);border-radius:0 0 8px 8px;overflow:hidden;color:var(--interactive-01, #273435)}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu-item-groups.sc-xv-mega-menu-next{min-height:unset;padding-block:unset;position:relative;row-gap:unset;border:none}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group.sc-xv-mega-menu-next{display:flex;align-items:flex-start}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group.sc-xv-mega-menu-next{flex-direction:column;align-items:stretch}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-label.sc-xv-mega-menu-next{user-select:none;min-width:var(--menu-group-width);max-width:var(--menu-group-width);color:var(--text-primary, #333);font-size:16px;font-style:normal;font-weight:400;line-height:137.5%;display:flex;column-gap:var(--spacing-04);text-align:right;justify-content:flex-end;cursor:pointer}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-label-text.sc-xv-mega-menu-next{text-overflow:ellipsis;overflow:hidden}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-label-icon.sc-xv-mega-menu-next{width:8px;height:8px;border-bottom:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(-45deg);transform-origin:bottom;align-self:center}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-label.sc-xv-mega-menu-next{max-width:unset;min-width:unset;align-items:stretch;justify-content:flex-start;padding-block:var(--spacing-05)}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-container.sc-xv-mega-menu-next{flex:1;display:none}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-container-absolute.sc-xv-mega-menu-next{position:absolute;top:0;right:0;width:calc(100% - (var(--menu-group-width) + var(--spacing-06) + var(--spacing-09) + var(--spacing-05)));min-height:calc(100% - (var(--spacing-08) + var(--spacing-06)));padding:var(--spacing-08) var(--spacing-06) var(--spacing-06) var(--spacing-09);display:flex;background-color:var(--layer-01, #F7F7F7)}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-container-absolute.sc-xv-mega-menu-next{position:unset;flex-direction:column;width:100%;flex:1;padding:var(--spacing-06) 0;background-color:var(--background)}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-container-absolute.noLabel.sc-xv-mega-menu-next{left:0;width:calc(100% - (var(--spacing-06) + var(--spacing-09)))}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group.active.sc-xv-mega-menu-next .group-label.sc-xv-mega-menu-next{font-weight:600}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group.active.sc-xv-mega-menu-next .group-label-icon.sc-xv-mega-menu-next{transform-origin:center;transform:rotate(45deg)}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group.active.sc-xv-mega-menu-next .group-container.sc-xv-mega-menu-next{display:flex}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-menus.sc-xv-mega-menu-next{flex:1;display:flex;flex-direction:column;row-gap:var(--spacing-06)}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-menus-categories.sc-xv-mega-menu-next{display:flex;row-gap:var(--spacing-07);column-gap:var(--spacing-05);flex:1}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-menus-categories.sc-xv-mega-menu-next{flex-direction:column;gap:var(--spacing-07)}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-menus-categories.inline.sc-xv-mega-menu-next{flex-direction:column;flex-wrap:wrap;max-height:365px}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-menus-categories.inline.sc-xv-mega-menu-next{max-height:unset}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-menus-categories.inline.sc-xv-mega-menu-next .category.sc-xv-mega-menu-next{flex:none}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-menus-actions.sc-xv-mega-menu-next{display:flex;align-items:center;justify-content:flex-start;gap:var(--spacing-05)}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-menus-actions.sc-xv-mega-menu-next{flex-direction:column;justify-content:stretch;align-items:stretch;text-align:center}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card.sc-xv-mega-menu-next{box-sizing:content-box;max-width:228px;min-width:200px;padding-left:var(--spacing-06);border-left:1px solid var(--border-subtle-01)}@media (min-width: 992px) and (max-width: 1199px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card.sc-xv-mega-menu-next{display:none}}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card.sc-xv-mega-menu-next{margin-block-start:var(--spacing-06);border-left:none;padding-left:0;max-width:unset;min-width:unset}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card.sc-xv-mega-menu-next .xv-card.sc-xv-mega-menu-next{box-shadow:none;background-color:var(--background, #fff)}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card.sc-xv-mega-menu-next .xv-card.sc-xv-mega-menu-next{width:unset}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card-title.sc-xv-mega-menu-next,.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card-desc.sc-xv-mega-menu-next{font-size:var(--fz-md, 14px);font-style:normal;line-height:18px;letter-spacing:0.16px}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card.sc-xv-mega-menu-next .xv-link_standalone.sc-xv-mega-menu-next,.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card-title.sc-xv-mega-menu-next,.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card-desc.sc-xv-mega-menu-next{font-family:var(--ff-work-sans), sans-serif}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card-title.sc-xv-mega-menu-next{color:var(--text-primary, #333);font-weight:600}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .group-card-desc.sc-xv-mega-menu-next{color:var(--text-secondary, #515151);font-weight:400;padding-top:var(--spacing-03);display:-webkit-box;-webkit-line-clamp:11;-webkit-box-orient:vertical;overflow:hidden}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .category.sc-xv-mega-menu-next{flex:1;display:flex;flex-direction:column;row-gap:var(--spacing-05)}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .category.sc-xv-mega-menu-next{flex:0}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .category.sc-xv-mega-menu-next:not(:last-child){border-bottom:1px solid var(--border-subtle-01);padding-bottom:var(--spacing-04)}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .category-label.sc-xv-mega-menu-next{margin:0;font-size:var(--fz-md, 14px);color:var(--text-secondary)}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .category-routes.sc-xv-mega-menu-next{display:flex;flex-direction:column;row-gap:var(--spacing-05)}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .route.sc-xv-mega-menu-next{display:inline-flex;align-items:center;column-gap:var(--spacing-03);position:relative;font-size:var(--fz-lg, 16px)}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .route.sc-xv-mega-menu-next .route-link.sc-xv-mega-menu-next{color:inherit;text-decoration:none;font-family:var(--ff-work-sans), sans-serif;line-height:133.333%;transition:color 200ms ease-in-out}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .route.sc-xv-mega-menu-next .route-link.sc-xv-mega-menu-next:visited{color:inherit}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .route.sc-xv-mega-menu-next .route-link.sc-xv-mega-menu-next:hover{color:var(--link-primary);cursor:pointer}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .route.sc-xv-mega-menu-next .route-link.sc-xv-mega-menu-next:focus{outline:1px solid var(--focus);outline-offset:1px}@media (max-width: 991px){.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .route.sc-xv-mega-menu-next{white-space:nowrap}}.xv-menu.sc-xv-mega-menu-next .menu.sc-xv-mega-menu-next .route.sc-xv-mega-menu-next .route-tag.sc-xv-mega-menu-next{font-size:9px}";export{s as xv_mega_menu_next}
@@ -1 +1 @@
1
- import{r as e,c as a,h as i,F as t,a as r}from"./p-DmxA2ysB.js";import{S as s,H as o,a as n,b as d,c as l,O as h,I as c,d as p,e as g,i as v}from"./p-BkYBzv3h.js";import{a as u,g as f,b as m,d as b}from"./p-CQm2sRKT.js";const x=class{constructor(i){e(this,i),this.xvMetaNavUpdate=a(this,"xvMetaNavUpdate",7),this.orgUnit="",this.baseUrl="",this.loading=!1,this.mobMenuOpen=!1,this.toggleMobMenu=()=>{this.mobMenuOpen=!this.mobMenuOpen},this.closeMobMenu=({detail:e})=>{this.mobMenuOpen=!!e},this.logoFallback=e=>{const a=e.currentTarget,i=a.previousElementSibling,t="https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg";t!==a.src&&(a.onerror=null,a.src=t,(null==i?void 0:i.srcset)&&(i.srcset="https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg"))},this.suggestions=[],this.suggestionsLoading=!1,this.handleSearch=async e=>{try{this.suggestionsLoading=!0;const a=e.target.value.trim();if(!a)return void(this.suggestions=[]);const i=new URLSearchParams({fuzzy:"true",suggesterName:"xv-shared-index-live-suggester","api-version":"2020-06-30",search:a,$top:"10",$select:"title_de,page_link,source",$orderby:"source desc"}).toString();this.suggestions=await u.get(`https://xv-search.search.windows.net/indexes/xv-shared-index-live/docs/suggest?${i}`,{headers:{"api-key":"7315DEF1FA0C8B12109B12BA28E517E7"}}).then((({value:e})=>Array.isArray(e)?e:[]))}catch(e){console.log("error",e)}finally{this.suggestionsLoading=!1}},this.handleSearchOpen=e=>{const a=e.currentTarget.closest("form");if(!a)return;const i=a.querySelector('input[type="search"]');i&&i.focus()},this.handleSearchKeydown=e=>{var a;"Escape"===e.key&&(null===(a=e.currentTarget)||void 0===a||a.blur(),this.suggestions=[])},this.handlePreventEvent=e=>e.preventDefault(),this.notifications=[],this.showLoginModal=!1}handleOrgUnitChange({detail:e}){this.orgUnit=e||""}metaNavUpdate(){var e,a;const i=f();i&&(this.metaNav=i,this.orgUnit=(null===(a=null===(e=this.metaNav)||void 0===e?void 0:e.User)||void 0===a?void 0:a.SelectedOrgUnitName)||"",this.getNotifications(),this.connectNotificationsHub()),console.info("MetaNav was updated",this.metaNav)}disconnectedCallback(){var e;null===(e=this.notificationsHub)||void 0===e||e.stop(),this.notificationsHub=void 0}componentWillLoad(){this.baseUrl=m(),this.initHeader()}async initHeader(){try{this.loading=!0;const e=await u.post("/de-de/home/getpersonalareajson",void 0,{credentials:"include"});this.xvMetaNavUpdate.emit(e),localStorage.setItem("metaNav",JSON.stringify(e))}catch(e){console.error("Failed to fetch initial Header data:",null==e?void 0:e.message,e)}finally{this.metaNavUpdate(),this.loading=!1}}_renderLocaleSwitcher(){if(!this.currentLocale||!this.locales)return null;let e;try{const a=JSON.parse(this.locales);if(!Array.isArray(a))return null;e=a}catch(e){return null}return 0===e.length?null:i("li",{class:"locale-switcher","aria-label":"Language"},e.map(((e,a)=>{const r=e.code===this.currentLocale;return i(t,null,a>0&&i("span",{class:"locale-switcher__sep","aria-hidden":"true"},"|"),r?i("span",{class:"locale-switcher__current xv-body-02","aria-current":"true"},e.code.toUpperCase()):i("xv-link-v2",{class:"locale-switcher__link",variant:"standalone",href:e.href},i("span",{class:"xv-body-02"},e.code.toUpperCase())))})))}_renderSearch(){var e;return!0!==(null===(e=this.metaNav)||void 0===e?void 0:e.EnableMegaMenuSearch)?null:i("li",{class:"search-form"},i("form",{action:`${this.baseUrl}/de-de/media/search`,method:"get",role:"search"},i("input",{onKeyDown:this.handleSearchKeydown,onInput:b(this.handleSearch,700),type:"search",name:"Q",placeholder:"Suchen",title:"Drücken Sie die 'Enter' zum 'Suchen' oder Escape zum Zurücksetzen",autoComplete:"off"}),i("xv-button-v2",{onClick:this.handleSearchOpen,onMouseDown:this.handlePreventEvent,type:"button",variant:"ghost",size:s.MD},i("i",{class:"header-icon far fa-search"})),i("xv-button-v2",{type:"submit",variant:"ghost",size:s.MD},i("i",{class:"header-icon far fa-search"}))),i("ul",{class:{"search-form-suggestions":!0,loading:this.suggestionsLoading}},this.suggestions.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:`${"marketplace"===e.source?"https://marketplace.crossvertise.com":"https://www.crossvertise.com"}${e.page_link}`},e.title_de)))),!this.suggestions.length&&i("li",{class:"text-center xv-helper-text-02"},"Keine Daten gefunden")))}_renderImpersonationInfo(){var e,a,t,r,o;return(null===(e=this.metaNav)||void 0===e?void 0:e.ImpersonationInfo)?i("li",{class:"impersonationInfo"},i("xv-toggle-tip",{position:"bottom-end",autoSize:!0},i("xv-button-v2",{variant:"ghost",slot:"trigger",size:s.MD},i("img",{slot:"icon-left",width:16,height:16,src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNjQwIj48IS0tIUZvbnQgQXdlc29tZSBQcm8gNy4xLjAgYnkgQGZvbnRhd2Vzb21lIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20gTGljZW5zZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tL2xpY2Vuc2UgKENvbW1lcmNpYWwgTGljZW5zZSkgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0iTTE3Ni41IDE5MkMxNzYuNSAxNDcuOCAyMTIuMyAxMTIgMjU2LjUgMTEyQzMwMC43IDExMiAzMzYuNSAxNDcuOCAzMzYuNSAxOTJDMzM2LjUgMjM2LjIgMzAwLjcgMjcyIDI1Ni41IDI3MkMyMTIuMyAyNzIgMTc2LjUgMjM2LjIgMTc2LjUgMTkyek0zODQuNSAxOTJDMzg0LjUgMTIxLjMgMzI3LjIgNjQgMjU2LjUgNjRDMTg1LjggNjQgMTI4LjUgMTIxLjMgMTI4LjUgMTkyQzEyOC41IDI2Mi43IDE4NS44IDMyMCAyNTYuNSAzMjBDMzI3LjIgMzIwIDM4NC41IDI2Mi43IDM4NC41IDE5MnpNODAuNSA1NDRDODAuNSA0NzMuMyAxMzcuOCA0MTYgMjA4LjUgNDE2TDI4OC43IDQxNkMyODkuNSAzOTkuMiAyOTIuNyAzODMuMSAyOTguMSAzNjhMMjA4LjUgMzY4QzExMS4zIDM2OCAzMi41IDQ0Ni44IDMyLjUgNTQ0TDMyLjUgNTUyQzMyLjUgNTY1LjMgNDMuMiA1NzYgNTYuNSA1NzZDNjkuOCA1NzYgODAuNSA1NjUuMyA4MC41IDU1Mkw4MC41IDU0NHpNNDU2LjUgMzUyQzQ5Ni4zIDM1MiA1MjguNSAzODQuMiA1MjguNSA0MjRDNTI4LjUgNDYzLjggNDk2LjMgNDk2IDQ1Ni41IDQ5NkM0MTYuNyA0OTYgMzg0LjUgNDYzLjggMzg0LjUgNDI0QzM4NC41IDM4NC4yIDQxNi43IDM1MiA0NTYuNSAzNTJ6TTQ1Ni41IDU0NEM0ODAuOSA1NDQgNTAzLjYgNTM2LjcgNTIyLjYgNTI0LjJMNTgzLjUgNTg1LjFDNTkyLjkgNTk0LjUgNjA4LjEgNTk0LjUgNjE3LjQgNTg1LjFDNjI2LjcgNTc1LjcgNjI2LjggNTYwLjUgNjE3LjQgNTUxLjJMNTU2LjUgNDkwLjNDNTY5LjEgNDcxLjMgNTc2LjQgNDQ4LjUgNTc2LjQgNDI0QzU3Ni40IDM1Ny43IDUyMi43IDMwNCA0NTYuNCAzMDRDMzkwLjEgMzA0IDMzNi40IDM1Ny43IDMzNi40IDQyNEMzMzYuNCA0OTAuMyAzOTAuMSA1NDQgNDU2LjQgNTQ0eiIvPjwvc3ZnPg==",alt:"ic"})),i("ul",{slot:"body",class:"xv-helper-text-02"},i("li",null,"Kundenperspektive aktiviert für:"),i("li",null,null===(a=this.metaNav.ImpersonationInfo)||void 0===a?void 0:a.NameAndTitle),i("li",null,null===(t=this.metaNav.ImpersonationInfo)||void 0===t?void 0:t.CompanyName),i("li",null,null===(r=this.metaNav.ImpersonationInfo)||void 0===r?void 0:r.Email),i("li",null,null===(o=this.metaNav.ImpersonationInfo)||void 0===o?void 0:o.PhoneOffice)),i("xv-link-v2",{slot:"footer",href:`${this.baseUrl}/de-de/mycrossvertise/account/clearimpersonation`,variant:"ghost"},i("xv-button-v2",{block:!0,variant:"accent"},"Kundenperspektive verlassen")))):null}async getNotifications(){var e;if(null===(e=this.metaNav)||void 0===e?void 0:e.IsManager)try{this.notifications=await u.get(`${this.baseUrl}/de-de/api/notifications/list`,{credentials:"include"}).then((e=>Array.isArray(e)?e:[]))}catch(e){this.notifications=[]}}async connectNotificationsHub(){var e,a,i;if(!(null===(e=this.metaNav)||void 0===e?void 0:e.IsManager)||this.notificationsHub)return;const t=null===(i=null===(a=this.metaNav)||void 0===a?void 0:a.User)||void 0===i?void 0:i.Id;if(t)try{const e=await this.getNotificationsHubUrl();if(!e)return;const a=(new o).withUrl(e).withAutomaticReconnect().build();a.on(n,(()=>{this.getNotifications()})),a.onreconnected((()=>{a.invoke(d,String(t))})),await a.start(),await a.invoke(d,String(t)),this.notificationsHub=a}catch(e){console.error("Failed to connect to the notifications hub:",null==e?void 0:e.message,e)}}async getNotificationsHubUrl(){var e,a;const i=null===(a=null===(e=window.xv)||void 0===e?void 0:e.clientApplicationSettings)||void 0===a?void 0:a[l];if(i)return i;const t=(await fetch(`${this.baseUrl}/de-de/assets/clientapplicationsettings`,{credentials:"include"}).then((e=>e.text()))).match(new RegExp(`"${l.replace(/\./g,"\\.")}"\\s*:\\s*"([^"]+)"`));return null==t?void 0:t[1]}async dismissNotification(e,a){e.preventDefault(),e.stopPropagation();try{await u.delete(`${this.baseUrl}/de-de/api/notifications/${a}`,{credentials:"include"})}catch(e){console.error("Failed to dismiss the notification:",null==e?void 0:e.message,e)}await this.getNotifications()}_renderNotifications(){var e;return(null===(e=this.metaNav)||void 0===e?void 0:e.IsManager)?i("li",{class:"notifications"},i("xv-overflow-menu-v2",{position:"right",size:s.MD},i("span",{slot:"trigger",class:"fa-stack"},i("i",{class:"notifications-icon far fa-bell fa-stack-1x"}),this.notifications.length>0&&i("xv-tag-v2",{class:"counter-badge counter-badge--absolute",bg:"var(--icon-interactive, #97BF0D)",color:"var(--text-inverse, #FFF)"},this.notifications.length)),this.notifications.map((e=>{const a=v(e.status);return i("xv-overflow-menu-v2-item",{value:e.id,variant:h.GHOST,disabled:e.isRead,clickable:!1},i("div",{class:"notifications-item"},i("i",{class:{far:!0,[c[a]]:!0}}),i("div",{class:"notifications-item-body"},i("span",null,"Rechnungsentwurf für Auftrag ",e.orderId," ist ",p[a]),a===g.COMPLETED&&e.pdfSrc?i("xv-link-v2",{variant:e.isRead?"ghost":"standalone",href:e.pdfSrc,target:"_blank"},"Rechnung ansehen"):i("xv-link-v2",{variant:e.isRead?"ghost":"standalone",href:`/de-de/manager/ordersales/details/${e.orderId}`},"Auftrag anschauen")),i("xv-button-v2",{variant:"ghost",size:s.SM,title:"Geprüft","aria-label":`Benachrichtigung für Auftrag ${e.orderId} als geprüft markieren`,onClick:a=>{this.dismissNotification(a,e.orderId)}},i("i",{class:"far fa-times"}))))})))):null}_renderAccount(){var e,a,r,o,n,d,l,h,c,p,g,v;return(null===(e=this.metaNav)||void 0===e?void 0:e.IsAuthenticated)?i("li",{class:{myArea:!0,onHover:!0,isOpen:!1}},i("xv-button-v2",{class:"myArea-btn",variant:"ghost",size:s.MD},i("i",{class:"far fa-user"}),i("div",{class:"header-label xv-body-02"},(null===(a=this.metaNav)||void 0===a?void 0:a.IsManager)&&i("small",{class:"xv-label-01"},"Manager"),i("span",null,(null===(r=this.metaNav)||void 0===r?void 0:r.UserMenuText)||"Mein Konto")),i("i",{class:"caret"})),i("ul",{class:"myArea-list"},(null===(n=null===(o=this.metaNav)||void 0===o?void 0:o.ManagerCockpitMenu)||void 0===n?void 0:n.length)&&i(t,null,i("li",{class:"myArea-list--category"},"Cockpitfunktionen"),this.metaNav.ManagerCockpitMenu.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:e.Url,target:e.Target},e.Text,e.BadgeText&&i("xv-tag-v2",{class:"category-badge",color:"var(--text-inverse, #FFF)",bg:"var(--icon-interactive, #97BF0D)"},e.BadgeText))))),i("li",{class:"myArea-list--divider"})),(null===(l=null===(d=this.metaNav)||void 0===d?void 0:d.ManagerEntitiesMenu)||void 0===l?void 0:l.length)&&i(t,null,i("li",{class:"myArea-list--category"},"Entitäten"),this.metaNav.ManagerEntitiesMenu.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:e.Url,target:e.Target},e.Text,e.BadgeText&&i("xv-tag-v2",{class:"category-badge",color:"var(--text-inverse, #FFF)",bg:"var(--icon-interactive, #97BF0D)"},e.BadgeText))))),i("li",{class:"myArea-list--divider"})),(null===(c=null===(h=this.metaNav)||void 0===h?void 0:h.ManagerMenu)||void 0===c?void 0:c.length)&&i(t,null,this.metaNav.ManagerMenu.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:e.Url,target:e.Target},e.Text,e.BadgeText&&i("xv-tag-v2",{class:"category-badge",color:"var(--text-inverse, #FFF)",bg:"var(--icon-interactive, #97BF0D)"},e.BadgeText))))),i("li",{class:"myArea-list--divider"})),!(null===(p=this.metaNav)||void 0===p?void 0:p.IsManager)&&(null===(v=null===(g=this.metaNav)||void 0===g?void 0:g.UserMenu)||void 0===v?void 0:v.length)&&i(t,null,this.metaNav.UserMenu.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:e.Url,target:e.Target},e.Text,e.BadgeText&&i("xv-tag-v2",{class:"category-badge",color:"var(--text-inverse, #FFF)",bg:"var(--icon-interactive, #97BF0D)"},e.BadgeText))))),i("li",{class:"myArea-list--divider"})),i("li",null,i("xv-link-v2",{href:`${this.baseUrl}/de-de/mycrossvertise/account/logoff?returnUrl=${window.location.hostname}`,variant:"standalone"},"Abmelden")))):i("li",null,i("xv-button-v2",{variant:"ghost",size:s.MD,onClick:()=>this.showLoginModal=!0},i("i",{class:"header-icon far fa-user"}),i("span",{class:"header-label xv-body-02"},"Mein Konto")))}_renderShoppingCart(){var e,a;return i("li",null,i("xv-link-v2",{href:`${this.baseUrl}/de-de/mycrossvertise/shoppingcart/activecart`,variant:"ghost"},i("xv-button-v2",{variant:"ghost",size:s.MD},i("i",{class:"header-icon far fa-shopping-cart"}),i("span",{class:"header-label xv-body-02"},"Warenkorb"),i("xv-tag-v2",{id:"shopping-cart-items-badge",class:"counter-badge",bg:"var(--icon-interactive, #97BF0D)",color:"var(--text-inverse, #FFF)"},(null===(a=null===(e=this.metaNav)||void 0===e?void 0:e.Cart)||void 0===a?void 0:a.NumberOfItems)||0))))}render(){var e,a,t,r,o;const n="Xv"===((null===(e=this.metaNav)||void 0===e?void 0:e.WhitelabelName)||"Xv");return i("header",{key:"9c04fce6bf5c86c2f7ce9eec4f2c0ebbb5941e1a",class:"header"},i("div",{key:"fee93197d318b26dbca661595916d9e8cbe94375",class:"header-wrapper"},i("div",{key:"e5ba7c77f93cfd10ac648125e3785572b1b2b352",class:"xv-container"},i("div",{key:"784da35e8aa09bab4268377d22d7ae40aa7fcc5a",class:"header-top"},i("div",{key:"93bffa009121bd0ef93d1c690bed6b90dbb9de4b",class:"header-top--left"},i("xv-button-v2",{key:"f60f995957e9b929516d30e8c79e6e69354fa4a3",class:"menu-btn",variant:"ghost",onClick:this.toggleMobMenu},i("i",{key:"d0f2b955f98752b4825b921f57858bba1bdac2cd",slot:"icon-left",class:{fa:!0,"fa-times":this.mobMenuOpen,"fa-bars":!this.mobMenuOpen}})),this.metaNav&&i("a",{key:"d393b761eb12268735da317e85cbb7845c9ee15f",href:`${window.location.origin}/`},i("picture",{key:"ebc31771f501886f73c033cd8df3ed3f6097dbea"},i("source",{key:"1852235f967ab2fa08d14837d8e2f19607b2da05",srcSet:(null===(a=this.metaNav)||void 0===a?void 0:a.LogoUrl)||"https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg",media:"(min-width: 990px)"}),i("img",{key:"5d36ae93c924554a4af9e266e090d9ab5cace2d6",src:(null===(t=this.metaNav)||void 0===t?void 0:t.LogoSmallUrl)||"https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg",onError:this.logoFallback,loading:"lazy",alt:"Crossvertise"}))),this.orgUnit&&i("xv-link-v2",{key:"2a674365dbb3d87541fa8ee21e681d30803845f5",class:"header-top--orgUnit",variant:"standalone",href:"/de-de/mycrossvertise"},this.orgUnit)),i("ul",{key:"c04cc5a6124c47f63aa4a31c6105707fde987f80",class:"header-top--right"},this._renderLocaleSwitcher(),this._renderSearch(),this._renderImpersonationInfo(),!(null===(r=this.metaNav)||void 0===r?void 0:r.IsManager)&&n&&i("li",{key:"f98924908679cb70e040342e3d2037ca0c328cfb"},i("xv-link-v2",{key:"df6c95995411827fb9e7d2d772672d71ca94e8b4",variant:"ghost",href:"https://www.crossvertise.com/ueber-uns/kontakt"},i("xv-button-v2",{key:"26fb5b25c5c9d8763ae8162bd027814a511aaeea",variant:"ghost",size:s.MD},i("i",{key:"125dcdb6c7732ef43b32cd5600e26b046aa14c62",class:"header-icon far fa-envelope"}),i("span",{key:"2a0b974fb77e7aa9eeafec92789bb73f2201c865",class:"header-label xv-body-02"},"Kontakt")))),this._renderNotifications(),this._renderAccount(),!(null===(o=this.metaNav)||void 0===o?void 0:o.IsManager)&&n&&i("li",{key:"f0ed40566ca8c76960940a602d8829adc0ede357"},i("xv-link-v2",{key:"5ee23ea00cfba00c759bde207af7385d84e9db6a",variant:"ghost",href:"https://help.crossvertise.com"},i("xv-button-v2",{key:"97129651b7d2726eaf76db5ed4cbc838eaa7e047",variant:"ghost",size:s.MD},i("i",{key:"be2de402a7e605cf600aec63051291d62e497865",class:"header-icon far fa-question-circle"}),i("span",{key:"5fe9768447d0d8a8a57fa5a95b98326121eca94b",class:"header-label xv-body-02"},"Hilfe")))),this._renderShoppingCart()))),i("div",{key:"1e57385c58e31de469d67829e829781065799ca2",class:"header-wrapper--bg"},i("div",{key:"40eaa28197cf1b27b7bd7a6b559440b805764fc6",class:"xv-container"},i("xv-mega-menu-next",{key:"387772fe79f32eef0286fab9f8dd38a2fbb9d6ee",open:this.mobMenuOpen,onOpenChange:this.closeMobMenu,menuData:this.menuData})))),i("xv-login-modal",{key:"182eab0fb5f02c082be39f681fc2632881da9e39",visible:this.showLoginModal,onClose:()=>this.showLoginModal=!1}))}get el(){return r(this)}};x.style='.xv-container{width:100%;max-width:1170px;margin-inline:auto}@media (min-width: 576px){.xv-container{max-width:540px}}@media (min-width: 768px){.xv-container{max-width:720px}}@media (min-width: 992px){.xv-container{max-width:960px;padding-inline:var(--bs-gutter-x, 0.75rem)}}@media (min-width: 1200px){.xv-container{max-width:1140px}}@media (min-width: 1400px){.xv-container{max-width:1320px}}header.header{position:sticky;z-index:1000;top:0}header.header .header-wrapper{width:100vw;padding-top:var(--spacing-04);background-color:var(--background, #fff);box-shadow:1px 1px 0 0 rgba(39, 52, 53, 0.15), 0 3px 2px 0 rgba(39, 52, 53, 0.3)}@media (max-width: 991px){header.header .header-wrapper{padding-bottom:var(--spacing-04)}}header.header .header-wrapper--bg{background:var(--menu-background, transparent);color:var(--menu-color, var(--text-primary, #131313))}header.header .header-top{display:flex;align-items:center;gap:var(--spacing-05)}header.header .header-top--left{width:100%;max-width:350px;display:flex;align-items:center;column-gap:var(--spacing-04)}header.header .header-top--left img{width:100%;height:26px;object-fit:contain}header.header .header-top--left .menu-btn{display:none}@media (max-width: 991px){header.header .header-top--left .menu-btn{display:inline-block}}header.header .header-top--right{flex:1;display:flex;justify-content:flex-end;gap:var(--spacing-03);margin:0;padding:0;list-style:none}@media (max-width: 1199px){header.header .header-top--right{gap:var(--spacing-01)}}header.header .header-top--right .header-label{display:flex;flex-direction:column;color:var(--text-primary, #131313)}header.header .header-top--right .header-label>small{line-height:1}@media (min-width: 992px){header.header .header-top--right .header-label{margin-inline:var(--spacing-02)}}@media (max-width: 1199px){header.header .header-top--right .header-label{display:none}}header.header .header-top--right .header-icon{color:var(--icon-primary, #131313)}header.header .header-top--right .caret{display:inline-block;margin-left:5px;width:6px;height:6px;border:none;border-bottom:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);box-sizing:border-box;background:transparent;transform-origin:center;transition:0.25s ease-in-out transform}header.header .header-top--right .counter-badge--absolute{position:absolute;top:0;right:0}header.header .header-top--right .counter-badge::part(details-content){padding:1px;line-height:1;min-width:16px;height:16px;font-size:10px;text-align:center;display:inline-flex;align-items:center;justify-content:center}header.header .header-top--orgUnit{--link-visited:var(--link-primary)}header.header .header-top .fa-question-circle{color:var(--icon-primary, #131313)}header.header .header-top .search-form{flex:1;position:relative}@media (max-width: 768px){header.header .header-top .search-form{display:none}}header.header .header-top .search-form form{padding-inline:2px;flex:1;display:flex;align-items:stretch;flex-direction:row;justify-content:flex-end}header.header .header-top .search-form form input[type=search]{flex:0;text-align:right;display:inline-flex;border:none;min-width:0;transition:flex 0.3s ease-in-out, outline 0.3s ease;overflow:hidden;border-radius:3px}header.header .header-top .search-form form input[type=search]::placeholder{color:var(--text-placeholder, #ACACAC)}header.header .header-top .search-form form input[type=search]:focus{outline:2px solid var(--focus)}header.header .header-top .search-form form>[type=button]{display:inline-flex}header.header .header-top .search-form form>[type=submit]{display:none}header.header .header-top .search-form form:focus-within>[type=button],header.header .header-top .search-form form:has(input[type=search]:not(:placeholder-shown))>[type=button]{display:none}header.header .header-top .search-form form:focus-within>[type=submit],header.header .header-top .search-form form:has(input[type=search]:not(:placeholder-shown))>[type=submit]{display:inline-flex}header.header .header-top .search-form form:focus-within input[type=search],header.header .header-top .search-form form:has(input[type=search]:not(:placeholder-shown)) input[type=search]{flex:1;outline:1px solid var(--focus)}header.header .header-top .search-form form:focus-within+.search-form-suggestions,header.header .header-top .search-form form:has(input[type=search]:not(:placeholder-shown))+.search-form-suggestions{display:flex}header.header .header-top .search-form-suggestions{position:absolute;top:calc(100% + 5px);background-color:var(--background, #fff);box-shadow:0 0 10px rgba(0, 0, 0, 0.1);border-radius:3px;z-index:2;padding:var(--spacing-04);margin:0;list-style:none;display:none;flex-direction:column;row-gap:var(--spacing-02);min-width:calc(100% - 32px)}header.header .header-top .search-form-suggestions.loading:after{display:flex;align-items:center;justify-content:center;content:"";background:rgba(255, 255, 255, 0.8);position:absolute;top:0;left:0;z-index:3;width:100%;height:100%}header.header .header-top .impersonationInfo ul[slot=body]{margin:0;padding:0;list-style:none;min-width:256px}header.header .header-top .notifications-icon{font-size:14px}header.header .header-top .notifications-item{display:flex;align-items:center;column-gap:var(--spacing-04)}header.header .header-top .notifications-item-body{display:flex;flex-direction:column}header.header .header-top .myArea{position:relative}header.header .header-top .myArea-list{padding:0;margin:0;list-style:none;max-height:0;overflow-y:scroll;transition:max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);position:absolute;right:0;top:calc(100% + var(--spacing-02, 5px));min-width:100%;background-color:var(--background);z-index:999;border-radius:3px;box-shadow:0 5px 6px rgba(0, 0, 0, 0.15);display:flex;flex-direction:column;white-space:nowrap}@supports (scrollbar-width: thin){header.header .header-top .myArea-list{scrollbar-width:thin;scrollbar-color:var(--layer-01) transparent}}header.header .header-top .myArea-list::-webkit-scrollbar{width:4px;height:4px}header.header .header-top .myArea-list::-webkit-scrollbar-thumb{background:var(--layer-01, #F7F7F7);border-radius:4px}header.header .header-top .myArea-list::-webkit-scrollbar-track{background:transparent}header.header .header-top .myArea-list--divider{height:2px;min-height:2px;width:100%;background-color:var(--layer-01, #F7F7F7);padding-block:0 !important}header.header .header-top .myArea-list--category{padding:var(--spacing-03) var(--spacing-05);margin-inline:var(--spacing-02);color:var(--text-primary);font-weight:bold}header.header .header-top .myArea-list>li:first-child{margin-top:var(--spacing-02)}header.header .header-top .myArea-list>li:last-child{margin-bottom:var(--spacing-02)}header.header .header-top .myArea-list>li>*{--link-primary:var(--text-secondary, #515151);--link-visited:var(--text-secondary, #515151);display:block;cursor:pointer;padding-inline:var(--spacing-05);padding-block:var(--spacing-02);margin-inline:var(--spacing-02)}header.header .header-top .myArea-list .category-badge{margin-left:var(--spacing-02)}header.header .header-top .myArea-list .category-badge::part(details-content){line-height:1;font-size:11px;padding:var(--spacing-01) var(--spacing-02)}header.header .header-top .myArea.isOpen .caret,header.header .header-top .myArea.onHover:hover .caret{transform:rotate(-135deg)}header.header .header-top .myArea.isOpen .myArea-list,header.header .header-top .myArea.onHover:hover .myArea-list{max-height:85vh}header.header .header-top .locale-switcher{display:inline-flex;align-items:center;gap:var(--spacing-03, 6px);padding:0 var(--spacing-03, 6px)}header.header .header-top .locale-switcher__sep{color:var(--border-subtle-01, #c6c6c6)}header.header .header-top .locale-switcher__link{text-transform:uppercase;letter-spacing:0.04em}header.header .header-top .locale-switcher__current{text-transform:uppercase;letter-spacing:0.04em;font-weight:700;color:var(--text-primary, #131313)}';export{x as xv_header_next}
1
+ import{r as e,c as a,h as i,F as t,a as r}from"./p-Owr_mJOX.js";import{S as s,H as o,a as n,b as d,c as l,O as h,I as c,d as p,e as g,i as v}from"./p-BkYBzv3h.js";import{a as u,g as f,b as m,d as b}from"./p-D0yFoU2h.js";const x=class{constructor(i){e(this,i),this.xvMetaNavUpdate=a(this,"xvMetaNavUpdate",7),this.orgUnit="",this.baseUrl="",this.loading=!1,this.mobMenuOpen=!1,this.toggleMobMenu=()=>{this.mobMenuOpen=!this.mobMenuOpen},this.closeMobMenu=({detail:e})=>{this.mobMenuOpen=!!e},this.logoFallback=e=>{const a=e.currentTarget,i=a.previousElementSibling,t="https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg";t!==a.src&&(a.onerror=null,a.src=t,(null==i?void 0:i.srcset)&&(i.srcset="https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg"))},this.suggestions=[],this.suggestionsLoading=!1,this.handleSearch=async e=>{try{this.suggestionsLoading=!0;const a=e.target.value.trim();if(!a)return void(this.suggestions=[]);const i=new URLSearchParams({fuzzy:"true",suggesterName:"xv-shared-index-live-suggester","api-version":"2020-06-30",search:a,$top:"10",$select:"title_de,page_link,source",$orderby:"source desc"}).toString();this.suggestions=await u.get(`https://xv-search.search.windows.net/indexes/xv-shared-index-live/docs/suggest?${i}`,{headers:{"api-key":"7315DEF1FA0C8B12109B12BA28E517E7"}}).then((({value:e})=>Array.isArray(e)?e:[]))}catch(e){console.log("error",e)}finally{this.suggestionsLoading=!1}},this.handleSearchOpen=e=>{const a=e.currentTarget.closest("form");if(!a)return;const i=a.querySelector('input[type="search"]');i&&i.focus()},this.handleSearchKeydown=e=>{var a;"Escape"===e.key&&(null===(a=e.currentTarget)||void 0===a||a.blur(),this.suggestions=[])},this.handlePreventEvent=e=>e.preventDefault(),this.notifications=[],this.showLoginModal=!1}handleOrgUnitChange({detail:e}){this.orgUnit=e||""}metaNavUpdate(){var e,a;const i=f();i&&(this.metaNav=i,this.orgUnit=(null===(a=null===(e=this.metaNav)||void 0===e?void 0:e.User)||void 0===a?void 0:a.SelectedOrgUnitName)||"",this.getNotifications(),this.connectNotificationsHub()),console.info("MetaNav was updated",this.metaNav)}disconnectedCallback(){var e;null===(e=this.notificationsHub)||void 0===e||e.stop(),this.notificationsHub=void 0}componentWillLoad(){this.baseUrl=m(),this.initHeader()}async initHeader(){try{this.loading=!0;const e=await u.post("/de-de/home/getpersonalareajson",void 0,{credentials:"include"});this.xvMetaNavUpdate.emit(e),localStorage.setItem("metaNav",JSON.stringify(e))}catch(e){console.error("Failed to fetch initial Header data:",null==e?void 0:e.message,e)}finally{this.metaNavUpdate(),this.loading=!1}}_renderLocaleSwitcher(){if(!this.currentLocale||!this.locales)return null;let e;try{const a=JSON.parse(this.locales);if(!Array.isArray(a))return null;e=a}catch(e){return null}return 0===e.length?null:i("li",{class:"locale-switcher","aria-label":"Language"},e.map(((e,a)=>{const r=e.code===this.currentLocale;return i(t,null,a>0&&i("span",{class:"locale-switcher__sep","aria-hidden":"true"},"|"),r?i("span",{class:"locale-switcher__current xv-body-02","aria-current":"true"},e.code.toUpperCase()):i("xv-link-v2",{class:"locale-switcher__link",variant:"standalone",href:e.href},i("span",{class:"xv-body-02"},e.code.toUpperCase())))})))}_renderSearch(){var e;return!0!==(null===(e=this.metaNav)||void 0===e?void 0:e.EnableMegaMenuSearch)?null:i("li",{class:"search-form"},i("form",{action:`${this.baseUrl}/de-de/media/search`,method:"get",role:"search"},i("input",{onKeyDown:this.handleSearchKeydown,onInput:b(this.handleSearch,700),type:"search",name:"Q",placeholder:"Suchen",title:"Drücken Sie die 'Enter' zum 'Suchen' oder Escape zum Zurücksetzen",autoComplete:"off"}),i("xv-button-v2",{onClick:this.handleSearchOpen,onMouseDown:this.handlePreventEvent,type:"button",variant:"ghost",size:s.MD},i("i",{class:"header-icon far fa-search"})),i("xv-button-v2",{type:"submit",variant:"ghost",size:s.MD},i("i",{class:"header-icon far fa-search"}))),i("ul",{class:{"search-form-suggestions":!0,loading:this.suggestionsLoading}},this.suggestions.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:`${"marketplace"===e.source?"https://marketplace.crossvertise.com":"https://www.crossvertise.com"}${e.page_link}`},e.title_de)))),!this.suggestions.length&&i("li",{class:"text-center xv-helper-text-02"},"Keine Daten gefunden")))}_renderImpersonationInfo(){var e,a,t,r,o;return(null===(e=this.metaNav)||void 0===e?void 0:e.ImpersonationInfo)?i("li",{class:"impersonationInfo"},i("xv-toggle-tip",{position:"bottom-end",autoSize:!0},i("xv-button-v2",{variant:"ghost",slot:"trigger",size:s.MD},i("img",{slot:"icon-left",width:16,height:16,src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNjQwIj48IS0tIUZvbnQgQXdlc29tZSBQcm8gNy4xLjAgYnkgQGZvbnRhd2Vzb21lIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20gTGljZW5zZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tL2xpY2Vuc2UgKENvbW1lcmNpYWwgTGljZW5zZSkgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0iTTE3Ni41IDE5MkMxNzYuNSAxNDcuOCAyMTIuMyAxMTIgMjU2LjUgMTEyQzMwMC43IDExMiAzMzYuNSAxNDcuOCAzMzYuNSAxOTJDMzM2LjUgMjM2LjIgMzAwLjcgMjcyIDI1Ni41IDI3MkMyMTIuMyAyNzIgMTc2LjUgMjM2LjIgMTc2LjUgMTkyek0zODQuNSAxOTJDMzg0LjUgMTIxLjMgMzI3LjIgNjQgMjU2LjUgNjRDMTg1LjggNjQgMTI4LjUgMTIxLjMgMTI4LjUgMTkyQzEyOC41IDI2Mi43IDE4NS44IDMyMCAyNTYuNSAzMjBDMzI3LjIgMzIwIDM4NC41IDI2Mi43IDM4NC41IDE5MnpNODAuNSA1NDRDODAuNSA0NzMuMyAxMzcuOCA0MTYgMjA4LjUgNDE2TDI4OC43IDQxNkMyODkuNSAzOTkuMiAyOTIuNyAzODMuMSAyOTguMSAzNjhMMjA4LjUgMzY4QzExMS4zIDM2OCAzMi41IDQ0Ni44IDMyLjUgNTQ0TDMyLjUgNTUyQzMyLjUgNTY1LjMgNDMuMiA1NzYgNTYuNSA1NzZDNjkuOCA1NzYgODAuNSA1NjUuMyA4MC41IDU1Mkw4MC41IDU0NHpNNDU2LjUgMzUyQzQ5Ni4zIDM1MiA1MjguNSAzODQuMiA1MjguNSA0MjRDNTI4LjUgNDYzLjggNDk2LjMgNDk2IDQ1Ni41IDQ5NkM0MTYuNyA0OTYgMzg0LjUgNDYzLjggMzg0LjUgNDI0QzM4NC41IDM4NC4yIDQxNi43IDM1MiA0NTYuNSAzNTJ6TTQ1Ni41IDU0NEM0ODAuOSA1NDQgNTAzLjYgNTM2LjcgNTIyLjYgNTI0LjJMNTgzLjUgNTg1LjFDNTkyLjkgNTk0LjUgNjA4LjEgNTk0LjUgNjE3LjQgNTg1LjFDNjI2LjcgNTc1LjcgNjI2LjggNTYwLjUgNjE3LjQgNTUxLjJMNTU2LjUgNDkwLjNDNTY5LjEgNDcxLjMgNTc2LjQgNDQ4LjUgNTc2LjQgNDI0QzU3Ni40IDM1Ny43IDUyMi43IDMwNCA0NTYuNCAzMDRDMzkwLjEgMzA0IDMzNi40IDM1Ny43IDMzNi40IDQyNEMzMzYuNCA0OTAuMyAzOTAuMSA1NDQgNDU2LjQgNTQ0eiIvPjwvc3ZnPg==",alt:"ic"})),i("ul",{slot:"body",class:"xv-helper-text-02"},i("li",null,"Kundenperspektive aktiviert für:"),i("li",null,null===(a=this.metaNav.ImpersonationInfo)||void 0===a?void 0:a.NameAndTitle),i("li",null,null===(t=this.metaNav.ImpersonationInfo)||void 0===t?void 0:t.CompanyName),i("li",null,null===(r=this.metaNav.ImpersonationInfo)||void 0===r?void 0:r.Email),i("li",null,null===(o=this.metaNav.ImpersonationInfo)||void 0===o?void 0:o.PhoneOffice)),i("xv-link-v2",{slot:"footer",href:`${this.baseUrl}/de-de/mycrossvertise/account/clearimpersonation`,variant:"ghost"},i("xv-button-v2",{block:!0,variant:"accent"},"Kundenperspektive verlassen")))):null}async getNotifications(){var e;if(null===(e=this.metaNav)||void 0===e?void 0:e.IsManager)try{this.notifications=await u.get(`${this.baseUrl}/de-de/api/notifications/list`,{credentials:"include"}).then((e=>Array.isArray(e)?e:[]))}catch(e){this.notifications=[]}}async connectNotificationsHub(){var e,a,i;if(!(null===(e=this.metaNav)||void 0===e?void 0:e.IsManager)||this.notificationsHub)return;const t=null===(i=null===(a=this.metaNav)||void 0===a?void 0:a.User)||void 0===i?void 0:i.Id;if(t)try{const e=await this.getNotificationsHubUrl();if(!e)return;const a=(new o).withUrl(e).withAutomaticReconnect().build();a.on(n,(()=>{this.getNotifications()})),a.onreconnected((()=>{a.invoke(d,String(t))})),await a.start(),await a.invoke(d,String(t)),this.notificationsHub=a}catch(e){console.error("Failed to connect to the notifications hub:",null==e?void 0:e.message,e)}}async getNotificationsHubUrl(){var e,a;const i=null===(a=null===(e=window.xv)||void 0===e?void 0:e.clientApplicationSettings)||void 0===a?void 0:a[l];if(i)return i;const t=(await fetch(`${this.baseUrl}/de-de/assets/clientapplicationsettings`,{credentials:"include"}).then((e=>e.text()))).match(new RegExp(`"${l.replace(/\./g,"\\.")}"\\s*:\\s*"([^"]+)"`));return null==t?void 0:t[1]}async dismissNotification(e,a){e.preventDefault(),e.stopPropagation();try{await u.delete(`${this.baseUrl}/de-de/api/notifications/${a}`,{credentials:"include"})}catch(e){console.error("Failed to dismiss the notification:",null==e?void 0:e.message,e)}await this.getNotifications()}_renderNotifications(){var e;return(null===(e=this.metaNav)||void 0===e?void 0:e.IsManager)?i("li",{class:"notifications"},i("xv-overflow-menu-v2",{position:"right",size:s.MD},i("span",{slot:"trigger",class:"fa-stack"},i("i",{class:"notifications-icon far fa-bell fa-stack-1x"}),this.notifications.length>0&&i("xv-tag-v2",{class:"counter-badge counter-badge--absolute",bg:"var(--icon-interactive, #97BF0D)",color:"var(--text-inverse, #FFF)"},this.notifications.length)),this.notifications.map((e=>{const a=v(e.status);return i("xv-overflow-menu-v2-item",{value:e.id,variant:h.GHOST,disabled:e.isRead,clickable:!1},i("div",{class:"notifications-item"},i("i",{class:{far:!0,[c[a]]:!0}}),i("div",{class:"notifications-item-body"},i("span",null,"Rechnungsentwurf für Auftrag ",e.orderId," ist ",p[a]),a===g.COMPLETED&&e.pdfSrc?i("xv-link-v2",{variant:e.isRead?"ghost":"standalone",href:e.pdfSrc,target:"_blank"},"Rechnung ansehen"):i("xv-link-v2",{variant:e.isRead?"ghost":"standalone",href:`/de-de/manager/ordersales/details/${e.orderId}`},"Auftrag anschauen")),i("xv-button-v2",{variant:"ghost",size:s.SM,title:"Geprüft","aria-label":`Benachrichtigung für Auftrag ${e.orderId} als geprüft markieren`,onClick:a=>{this.dismissNotification(a,e.orderId)}},i("i",{class:"far fa-times"}))))})))):null}_renderAccount(){var e,a,r,o,n,d,l,h,c,p,g,v;return(null===(e=this.metaNav)||void 0===e?void 0:e.IsAuthenticated)?i("li",{class:{myArea:!0,onHover:!0,isOpen:!1}},i("xv-button-v2",{class:"myArea-btn",variant:"ghost",size:s.MD},i("i",{class:"far fa-user"}),i("div",{class:"header-label xv-body-02"},(null===(a=this.metaNav)||void 0===a?void 0:a.IsManager)&&i("small",{class:"xv-label-01"},"Manager"),i("span",null,(null===(r=this.metaNav)||void 0===r?void 0:r.UserMenuText)||"Mein Konto")),i("i",{class:"caret"})),i("ul",{class:"myArea-list"},(null===(n=null===(o=this.metaNav)||void 0===o?void 0:o.ManagerCockpitMenu)||void 0===n?void 0:n.length)&&i(t,null,i("li",{class:"myArea-list--category"},"Cockpitfunktionen"),this.metaNav.ManagerCockpitMenu.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:e.Url,target:e.Target},e.Text,e.BadgeText&&i("xv-tag-v2",{class:"category-badge",color:"var(--text-inverse, #FFF)",bg:"var(--icon-interactive, #97BF0D)"},e.BadgeText))))),i("li",{class:"myArea-list--divider"})),(null===(l=null===(d=this.metaNav)||void 0===d?void 0:d.ManagerEntitiesMenu)||void 0===l?void 0:l.length)&&i(t,null,i("li",{class:"myArea-list--category"},"Entitäten"),this.metaNav.ManagerEntitiesMenu.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:e.Url,target:e.Target},e.Text,e.BadgeText&&i("xv-tag-v2",{class:"category-badge",color:"var(--text-inverse, #FFF)",bg:"var(--icon-interactive, #97BF0D)"},e.BadgeText))))),i("li",{class:"myArea-list--divider"})),(null===(c=null===(h=this.metaNav)||void 0===h?void 0:h.ManagerMenu)||void 0===c?void 0:c.length)&&i(t,null,this.metaNav.ManagerMenu.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:e.Url,target:e.Target},e.Text,e.BadgeText&&i("xv-tag-v2",{class:"category-badge",color:"var(--text-inverse, #FFF)",bg:"var(--icon-interactive, #97BF0D)"},e.BadgeText))))),i("li",{class:"myArea-list--divider"})),!(null===(p=this.metaNav)||void 0===p?void 0:p.IsManager)&&(null===(v=null===(g=this.metaNav)||void 0===g?void 0:g.UserMenu)||void 0===v?void 0:v.length)&&i(t,null,this.metaNav.UserMenu.map((e=>i("li",null,i("xv-link-v2",{variant:"standalone",href:e.Url,target:e.Target},e.Text,e.BadgeText&&i("xv-tag-v2",{class:"category-badge",color:"var(--text-inverse, #FFF)",bg:"var(--icon-interactive, #97BF0D)"},e.BadgeText))))),i("li",{class:"myArea-list--divider"})),i("li",null,i("xv-link-v2",{href:`${this.baseUrl}/de-de/mycrossvertise/account/logoff?returnUrl=${window.location.hostname}`,variant:"standalone"},"Abmelden")))):i("li",null,i("xv-button-v2",{variant:"ghost",size:s.MD,onClick:()=>this.showLoginModal=!0},i("i",{class:"header-icon far fa-user"}),i("span",{class:"header-label xv-body-02"},"Mein Konto")))}_renderShoppingCart(){var e,a;return i("li",null,i("xv-link-v2",{href:`${this.baseUrl}/de-de/mycrossvertise/shoppingcart/activecart`,variant:"ghost"},i("xv-button-v2",{variant:"ghost",size:s.MD},i("i",{class:"header-icon far fa-shopping-cart"}),i("span",{class:"header-label xv-body-02"},"Warenkorb"),i("xv-tag-v2",{id:"shopping-cart-items-badge",class:"counter-badge",bg:"var(--icon-interactive, #97BF0D)",color:"var(--text-inverse, #FFF)"},(null===(a=null===(e=this.metaNav)||void 0===e?void 0:e.Cart)||void 0===a?void 0:a.NumberOfItems)||0))))}render(){var e,a,t,r,o;const n="Xv"===((null===(e=this.metaNav)||void 0===e?void 0:e.WhitelabelName)||"Xv");return i("header",{key:"13d7fbc791bf106fca9e8d0d643f85fe4b26d7ac",class:"header"},i("div",{key:"e76238af3ddee6774a343078b5eab8c0a0ddcde2",class:"header-wrapper"},i("div",{key:"7ff35cfe21304425f452aa43f8c260b7e79dfc60",class:"xv-container"},i("div",{key:"892194c85c214ffd3dcdaaf056b579ec958936bb",class:"header-top"},i("div",{key:"b27cc8229663d54af4b51a3d9765a66f1b514a40",class:"header-top--left"},i("xv-button-v2",{key:"b0ee35bc693cede15c79addb20ccd92a94c3c12c",class:"menu-btn",variant:"ghost",onClick:this.toggleMobMenu},i("i",{key:"d329862c59068cd047f0316f043c425c7f85a5f3",slot:"icon-left",class:{fa:!0,"fa-times":this.mobMenuOpen,"fa-bars":!this.mobMenuOpen}})),this.metaNav&&i("a",{key:"f72e3e73790f3398ad38c5d65b76f325b5d1d926",href:`${window.location.origin}/`},i("picture",{key:"f8571b4003da1388d01fa58bc938d9f86f412bb3"},i("source",{key:"1cbe0a12af818d50f9da3b08ae4b47d406395273",srcSet:(null===(a=this.metaNav)||void 0===a?void 0:a.LogoUrl)||"https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg",media:"(min-width: 990px)"}),i("img",{key:"c5a26040bd7cd78649b40be427a6deeaf624b0ed",src:(null===(t=this.metaNav)||void 0===t?void 0:t.LogoSmallUrl)||"https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg",onError:this.logoFallback,loading:"lazy",alt:"Crossvertise"}))),this.orgUnit&&i("xv-link-v2",{key:"a14ab7c17ec9a3f4fbe8732374f376a62614f47b",class:"header-top--orgUnit",variant:"standalone",href:"/de-de/mycrossvertise"},this.orgUnit)),i("ul",{key:"eb44f0b25df5ea47b7d79ea68f07da630dfb23d9",class:"header-top--right"},this._renderLocaleSwitcher(),this._renderSearch(),this._renderImpersonationInfo(),!(null===(r=this.metaNav)||void 0===r?void 0:r.IsManager)&&n&&i("li",{key:"7bd22a2f234b53952a078e36aede6e19699d3873"},i("xv-link-v2",{key:"3091655d737ab578250a324cd7e5a0d9e84d5656",variant:"ghost",href:"https://www.crossvertise.com/ueber-uns/kontakt"},i("xv-button-v2",{key:"5644e7f350987527a536aa9e8c6867dca72fdb79",variant:"ghost",size:s.MD},i("i",{key:"18fefacd05272975ce019408acfaca4ecdf0501f",class:"header-icon far fa-envelope"}),i("span",{key:"a887336de6e7445dda46d48ff2cb84f452ada512",class:"header-label xv-body-02"},"Kontakt")))),this._renderNotifications(),this._renderAccount(),!(null===(o=this.metaNav)||void 0===o?void 0:o.IsManager)&&n&&i("li",{key:"3693bd474c58015528779799a182bede85b16bf3"},i("xv-link-v2",{key:"a31878f3b5a6562fe38bd919b1552a86be7e709a",variant:"ghost",href:"https://help.crossvertise.com"},i("xv-button-v2",{key:"d3a0fb1b8a21abfaf3a15a5aac3c1bd37d2e1484",variant:"ghost",size:s.MD},i("i",{key:"64b6055f1d6e21520bbb1e91e206ce42878d0710",class:"header-icon far fa-question-circle"}),i("span",{key:"1dc21ab66517122f8058a6a8f70d0f4e03fb8308",class:"header-label xv-body-02"},"Hilfe")))),this._renderShoppingCart()))),i("div",{key:"9c90c4062c9991bc74ead1273f55053c9853f0d9",class:"header-wrapper--bg"},i("div",{key:"dc3ac18bae6910ff92053538e0a0a78552a5b967",class:"xv-container"},i("xv-mega-menu-next",{key:"212201d8520d0e89cae9a260cfb29c983cbd17a8",open:this.mobMenuOpen,onOpenChange:this.closeMobMenu,menuData:this.menuData})))),i("xv-login-modal",{key:"764fd4fac90c31092db8b8a2a6900a2f6e9cac03",visible:this.showLoginModal,onClose:()=>this.showLoginModal=!1}))}get el(){return r(this)}};x.style='.xv-container{width:100%;max-width:1170px;margin-inline:auto}@media (min-width: 576px){.xv-container{max-width:540px}}@media (min-width: 768px){.xv-container{max-width:720px}}@media (min-width: 992px){.xv-container{max-width:960px;padding-inline:var(--bs-gutter-x, 0.75rem)}}@media (min-width: 1200px){.xv-container{max-width:1140px}}@media (min-width: 1400px){.xv-container{max-width:1320px}}header.header{position:sticky;z-index:1000;top:0}header.header .header-wrapper{width:100vw;padding-top:var(--spacing-04);background-color:var(--background, #fff);box-shadow:1px 1px 0 0 rgba(39, 52, 53, 0.15), 0 3px 2px 0 rgba(39, 52, 53, 0.3)}@media (max-width: 991px){header.header .header-wrapper{padding-bottom:var(--spacing-04)}}header.header .header-wrapper--bg{background:var(--menu-background, transparent);color:var(--menu-color, var(--text-primary, #131313))}header.header .header-top{display:flex;align-items:center;gap:var(--spacing-05)}header.header .header-top--left{width:100%;max-width:350px;display:flex;align-items:center;column-gap:var(--spacing-04)}header.header .header-top--left img{width:100%;height:26px;object-fit:contain}header.header .header-top--left .menu-btn{display:none}@media (max-width: 991px){header.header .header-top--left .menu-btn{display:inline-block}}header.header .header-top--right{flex:1;display:flex;justify-content:flex-end;gap:var(--spacing-03);margin:0;padding:0;list-style:none}@media (max-width: 1199px){header.header .header-top--right{gap:var(--spacing-01)}}header.header .header-top--right .header-label{display:flex;flex-direction:column;color:var(--text-primary, #131313)}header.header .header-top--right .header-label>small{line-height:1}@media (min-width: 992px){header.header .header-top--right .header-label{margin-inline:var(--spacing-02)}}@media (max-width: 1199px){header.header .header-top--right .header-label{display:none}}header.header .header-top--right .header-icon{color:var(--icon-primary, #131313)}header.header .header-top--right .caret{display:inline-block;margin-left:5px;width:6px;height:6px;border:none;border-bottom:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);box-sizing:border-box;background:transparent;transform-origin:center;transition:0.25s ease-in-out transform}header.header .header-top--right .counter-badge--absolute{position:absolute;top:0;right:0}header.header .header-top--right .counter-badge::part(details-content){padding:1px;line-height:1;min-width:16px;height:16px;font-size:10px;text-align:center;display:inline-flex;align-items:center;justify-content:center}header.header .header-top--orgUnit{--link-visited:var(--link-primary)}header.header .header-top .fa-question-circle{color:var(--icon-primary, #131313)}header.header .header-top .search-form{flex:1;position:relative}@media (max-width: 768px){header.header .header-top .search-form{display:none}}header.header .header-top .search-form form{padding-inline:2px;flex:1;display:flex;align-items:stretch;flex-direction:row;justify-content:flex-end}header.header .header-top .search-form form input[type=search]{flex:0;text-align:right;display:inline-flex;border:none;min-width:0;transition:flex 0.3s ease-in-out, outline 0.3s ease;overflow:hidden;border-radius:3px}header.header .header-top .search-form form input[type=search]::placeholder{color:var(--text-placeholder, #ACACAC)}header.header .header-top .search-form form input[type=search]:focus{outline:2px solid var(--focus)}header.header .header-top .search-form form>[type=button]{display:inline-flex}header.header .header-top .search-form form>[type=submit]{display:none}header.header .header-top .search-form form:focus-within>[type=button],header.header .header-top .search-form form:has(input[type=search]:not(:placeholder-shown))>[type=button]{display:none}header.header .header-top .search-form form:focus-within>[type=submit],header.header .header-top .search-form form:has(input[type=search]:not(:placeholder-shown))>[type=submit]{display:inline-flex}header.header .header-top .search-form form:focus-within input[type=search],header.header .header-top .search-form form:has(input[type=search]:not(:placeholder-shown)) input[type=search]{flex:1;outline:1px solid var(--focus)}header.header .header-top .search-form form:focus-within+.search-form-suggestions,header.header .header-top .search-form form:has(input[type=search]:not(:placeholder-shown))+.search-form-suggestions{display:flex}header.header .header-top .search-form-suggestions{position:absolute;top:calc(100% + 5px);background-color:var(--background, #fff);box-shadow:0 0 10px rgba(0, 0, 0, 0.1);border-radius:3px;z-index:2;padding:var(--spacing-04);margin:0;list-style:none;display:none;flex-direction:column;row-gap:var(--spacing-02);min-width:calc(100% - 32px)}header.header .header-top .search-form-suggestions.loading:after{display:flex;align-items:center;justify-content:center;content:"";background:rgba(255, 255, 255, 0.8);position:absolute;top:0;left:0;z-index:3;width:100%;height:100%}header.header .header-top .impersonationInfo ul[slot=body]{margin:0;padding:0;list-style:none;min-width:256px}header.header .header-top .notifications-icon{font-size:14px}header.header .header-top .notifications-item{display:flex;align-items:center;column-gap:var(--spacing-04)}header.header .header-top .notifications-item-body{display:flex;flex-direction:column}header.header .header-top .myArea{position:relative}header.header .header-top .myArea-list{padding:0;margin:0;list-style:none;max-height:0;overflow-y:scroll;transition:max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);position:absolute;right:0;top:calc(100% + var(--spacing-02, 5px));min-width:100%;background-color:var(--background);z-index:999;border-radius:3px;box-shadow:0 5px 6px rgba(0, 0, 0, 0.15);display:flex;flex-direction:column;white-space:nowrap}@supports (scrollbar-width: thin){header.header .header-top .myArea-list{scrollbar-width:thin;scrollbar-color:var(--layer-01) transparent}}header.header .header-top .myArea-list::-webkit-scrollbar{width:4px;height:4px}header.header .header-top .myArea-list::-webkit-scrollbar-thumb{background:var(--layer-01, #F7F7F7);border-radius:4px}header.header .header-top .myArea-list::-webkit-scrollbar-track{background:transparent}header.header .header-top .myArea-list--divider{height:2px;min-height:2px;width:100%;background-color:var(--layer-01, #F7F7F7);padding-block:0 !important}header.header .header-top .myArea-list--category{padding:var(--spacing-03) var(--spacing-05);margin-inline:var(--spacing-02);color:var(--text-primary);font-weight:bold}header.header .header-top .myArea-list>li:first-child{margin-top:var(--spacing-02)}header.header .header-top .myArea-list>li:last-child{margin-bottom:var(--spacing-02)}header.header .header-top .myArea-list>li>*{--link-primary:var(--text-secondary, #515151);--link-visited:var(--text-secondary, #515151);display:block;cursor:pointer;padding-inline:var(--spacing-05);padding-block:var(--spacing-02);margin-inline:var(--spacing-02)}header.header .header-top .myArea-list .category-badge{margin-left:var(--spacing-02)}header.header .header-top .myArea-list .category-badge::part(details-content){line-height:1;font-size:11px;padding:var(--spacing-01) var(--spacing-02)}header.header .header-top .myArea.isOpen .caret,header.header .header-top .myArea.onHover:hover .caret{transform:rotate(-135deg)}header.header .header-top .myArea.isOpen .myArea-list,header.header .header-top .myArea.onHover:hover .myArea-list{max-height:85vh}header.header .header-top .locale-switcher{display:inline-flex;align-items:center;gap:var(--spacing-03, 6px);padding:0 var(--spacing-03, 6px)}header.header .header-top .locale-switcher__sep{color:var(--border-subtle-01, #c6c6c6)}header.header .header-top .locale-switcher__link{text-transform:uppercase;letter-spacing:0.04em}header.header .header-top .locale-switcher__current{text-transform:uppercase;letter-spacing:0.04em;font-weight:700;color:var(--text-primary, #131313)}';export{x as xv_header_next}
@@ -1 +1 @@
1
- import{p as e,g as a,b as l}from"./p-DmxA2ysB.js";export{s as setNonce}from"./p-DmxA2ysB.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await a(),l(JSON.parse('[["p-7832549c",[[0,"xv-header",{"metaNav":[32],"orgUnit":[32],"baseUrl":[32],"loading":[32],"mobMenuOpen":[32],"suggestions":[32],"suggestionsLoading":[32],"notifications":[32],"showLoginModal":[32]},[[8,"xv:orgUnitChange","handleOrgUnitChange"],[8,"xv:metaNav-update","metaNavUpdate"]]],[257,"xv-dropdown-v2",{"search":[516],"disabled":[516],"multiple":[516],"required":[516],"loading":[516],"readonly":[516],"open":[1540],"error":[520],"label":[513],"helper":[513],"warning":[513],"placeholder":[513],"info":[1],"searchPlaceholder":[1,"search-placeholder"],"size":[1],"defaultValue":[8,"default-value"],"value":[1032],"variant":[1],"position":[1],"selected":[32],"selectedMap":[32],"resolvedPosition":[32]},[[0,"itemSelected","handleItemSelected"],[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}],"multiple":[{"multipleChangeHandle":0}],"value":[{"valueChange":1}]}],[257,"xv-data-table-row",{"variant":[1],"name":[1025],"collapse":[1],"collapsable":[516],"checked":[1028],"partial":[1028],"hover":[1028],"group":[4],"header":[4],"footer":[4],"disabled":[4],"readonly":[4],"required":[4],"value":[8],"collapsed":[32],"reorderable":[32],"reorderHandleMode":[32],"close":[64]}],[321,"xv-date-picker",{"value":[1040],"selection":[1],"precision":[1],"withTime":[4,"with-time"],"minuteStep":[2,"minute-step"],"min":[1],"max":[1],"disabledDates":[16],"disabledWeekdays":[16],"weekStartsOn":[2,"week-starts-on"],"showWeekNumbers":[4,"show-week-numbers"],"locale":[1],"label":[1],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"],"placeholder":[1],"helper":[1],"error":[8],"warning":[8],"required":[4],"readonly":[4],"disabled":[4],"loading":[4],"clearable":[4],"size":[513],"block":[516],"placement":[1],"offset":[2],"dates":[32],"open":[32],"view":[32],"anchor":[32],"active":[32],"dayRows":[32],"unitCells":[32],"weekdays":[32],"focusedDate":[32]},null,{"value":[{"syncValue":0}],"locale":[{"rebuildWeekdays":0}],"weekStartsOn":[{"rebuildWeekdays":0},{"rebuild":0}],"precision":[{"resetView":0}],"anchor":[{"rebuild":0}],"view":[{"rebuild":0}],"min":[{"rebuild":0}],"max":[{"rebuild":0}],"disabledDates":[{"rebuild":0}],"disabledWeekdays":[{"rebuild":0}],"open":[{"openWatcher":0}]}],[65,"xv-datepicker",{"value":[1040],"variant":[1],"label":[1],"helper":[1],"error":[8],"warning":[8],"readonly":[4],"disabled":[4],"loading":[4],"block":[4],"size":[513],"min":[1],"max":[1],"disabledDates":[16],"month":[32],"days":[32],"open":[32],"localError":[32]},[[4,"click","handleClickOutside"]],{"open":[{"openChange":0}],"month":[{"getCalendarGrid":0}],"min":[{"getCalendarGrid":0}],"max":[{"getCalendarGrid":0}],"disabledDates":[{"getCalendarGrid":0}],"value":[{"handleValueChange":0}]}],[1,"xv-file-uploader",{"label":[1],"description":[1],"addText":[1,"add-text"],"variant":[1],"size":[1],"accept":[16],"buttonVariant":[1,"button-variant"],"maxFileSizeMB":[2,"max-file-size-mb"],"maxFiles":[2,"max-files"],"multiple":[4],"disabled":[516],"files":[1040],"loadingStates":[1040],"error":[1537],"warning":[8],"helper":[1],"errors":[1040],"dragActive":[32],"errorMessages":[32],"internalError":[32],"clearFiles":[64]}],[65,"xv-number-input-v2",{"label":[1],"placeholder":[513],"name":[513],"value":[1538],"helper":[1],"error":[8],"warning":[8],"step":[2],"max":[2],"min":[2],"readonly":[4],"disabled":[4],"loading":[4],"block":[516],"size":[513]}],[1,"xv-pagination",{"itemsPerPage":[1026,"items-per-page"],"itemsPerPageOptions":[1,"items-per-page-options"],"total":[2],"page":[1026],"size":[1],"block":[4],"variant":[1],"responsiveVariant":[16],"totalItems":[2,"total-items"],"currentVariant":[32]}],[257,"xv-table-v2-row",{"checked":[1540],"partial":[1540],"name":[1537],"value":[520],"hover":[1540],"readonly":[516],"required":[516],"disabled":[516],"header":[516],"variant":[1537]},null,{"checked":[{"checkedChangeHandle":0}]}],[1,"xv-tag-combobox",{"options":[16],"label":[1],"size":[1],"placeholder":[1],"allowCreate":[4,"allow-create"],"maxSuggestions":[2,"max-suggestions"],"disabled":[4],"loading":[4],"readonly":[4],"error":[8],"warning":[8],"helper":[1],"value":[16],"normalizedOptions":[32],"selected":[32],"inputValue":[32],"open":[32],"filtered":[32],"highlighted":[32],"focusInput":[64],"clear":[64]},null,{"options":[{"watchOptions":0}],"value":[{"watchValue":0}]}],[65,"xv-textarea",{"value":[1025],"name":[1],"label":[1],"placeholder":[1],"helper":[1],"info":[1],"error":[8],"warning":[8],"disabled":[4],"readonly":[4],"block":[4],"counterHide":[4,"counter-hide"],"noResize":[4,"no-resize"],"loading":[4],"max":[2],"rows":[2],"size":[513]}],[257,"xv-data-table",{"size":[1],"block":[520],"loading":[4],"columnWidths":[16],"multiple":[516],"hover":[4],"reorderable":[516],"reorderHandle":[513,"reorder-handle"]},null,{"reorderable":[{"reorderableChanged":0}],"reorderHandle":[{"reorderHandleChanged":0}]}],[257,"xv-dropdown-v2-item",{"disabled":[4],"value":[1544],"selected":[1540],"multiple":[516],"size":[513]},[[0,"click","handleClick"]]],[1,"xv-geo-map-v2",{"apiBase":[1,"api-base"],"indicator":[1],"indicatorLabel":[1,"indicator-label"],"level":[1],"resolution":[1],"styleUrl":[1,"style-url"],"language":[1],"tiles":[1],"attribution":[1],"centerLng":[2,"center-lng"],"centerLat":[2,"center-lat"],"zoom":[2],"selectZoom":[2,"select-zoom"],"workerUrl":[1,"worker-url"],"lazy":[4],"showSearch":[4,"show-search"],"ready":[32],"loadError":[32],"zoomGated":[32],"searchResults":[32],"searchQuery":[32],"selectByRadius":[64],"selectPostalCodes":[64],"clearSelection":[64],"previewByRadius":[64],"clearPreview":[64]},null,{"level":[{"levelChanged":0}],"selectZoom":[{"selectZoomChanged":0}],"showSearch":[{"showSearchChanged":0}]}],[257,"xv-image-viewer",{"src":[1],"fullscreenSrc":[1,"fullscreen-src"],"alt":[1],"placeholder":[1],"lazy":[4],"isFullscreen":[32],"loaded":[32],"fullscreenLoaded":[32],"errored":[32]}],[257,"xv-tab-v2",{"label":[513],"disabled":[516],"loading":[516],"name":[8]}],[257,"xv-table-v2",{"size":[513],"hover":[516],"loading":[516],"colsSize":[16],"selected":[32],"selectedCount":[32]},[[0,"checkedChange","handleCheckedChange"]],{"colsSize":[{"setColsSizeTemplate":0}]}],[257,"xv-tabs-v2",{"active":[1544],"loading":[516],"variant":[1],"emptyMessage":[1,"empty-message"],"hideSingleTab":[4,"hide-single-tab"],"tabElements":[32],"showArrows":[32]},[[9,"resize","updateArrowVisibility"]]],[257,"xv-accordion-v2",{"multiple":[4],"xvId":[1,"xv-id"],"value":[1025],"opened":[32],"toggleItem":[64]},null,{"value":[{"onValueChange":0}]}],[257,"xv-accordion-v2-item",{"disabled":[4],"label":[1],"value":[1],"isOpen":[32]},[[16,"accordionChange","handleAccordionChange"]]],[260,"xv-breadcrumbs-v2"],[257,"xv-button-group-v2",{"variant":[513],"multiple":[516],"value":[1025]},[[0,"click","handleClick"]],{"value":[{"onSelectionInputChange":0}],"multiple":[{"onSelectionInputChange":0}]}],[257,"xv-content-switcher-item-v2",{"value":[520],"label":[513],"icon":[513],"disabled":[516]}],[257,"xv-content-switcher-v2",{"selected":[1544],"size":[513],"iconOnly":[516,"icon-only"],"disabled":[516],"block":[516],"controlled":[516],"items":[32]}],[257,"xv-data-table-collapse",{"collapsed":[1540],"setCollapsed":[64]}],[0,"xv-footer",{"data":[32]},[[8,"xv:metaNav-update","handleLoadData"]]],[257,"xv-progress-indicator-v2",{"progress":[514],"variant":[1],"size":[1]},null,{"progress":[{"updateChildItems":0}]}],[257,"xv-progress-indicator-v2-item",{"status":[1]}],[324,"xv-radio-v2",{"name":[1],"value":[1],"label":[1],"checked":[1028],"indeterminate":[4],"block":[4],"disabled":[4],"required":[4],"reverse":[4],"readonly":[4],"error":[8],"warning":[520],"helper":[1],"size":[1]},null,{"checked":[{"onCheckedChange":0}]}],[65,"xv-slider-v2",{"label":[1],"name":[1],"min":[2],"max":[2],"value":[1026],"step":[2],"disabled":[4],"readonly":[4],"notEditable":[4,"not-editable"]}],[257,"xv-table-v2-expand",{"open":[1540],"disabled":[516]}],[260,"xv-tile",{"variant":[513],"label":[1],"error":[4],"multiple":[4],"disabled":[4],"block":[4],"name":[1],"message":[513],"value":[1025],"checked":[1028],"readonly":[1028]},[[4,"tileChange","tileChangeHandle"],[0,"click","handleClick"]]],[321,"xv-toggle",{"label":[1],"value":[1],"name":[1],"checked":[1540],"disabled":[4],"readonly":[4],"size":[513],"block":[4]}],[257,"xv-mega-menu",{"open":[1540],"activeItem":[32],"activeGroup":[32],"menuItems":[32],"applicationContext":[32],"menuLoading":[32]},[[4,"click","handleClickOutside"]]],[257,"xv-data-table-cell",{"name":[1025],"sort":[1537],"multiline":[520],"width":[1],"align":[1],"tooltip":[1]},[[0,"click","handleSort"]]],[257,"xv-table-v2-cell",{"multiline":[516],"name":[1537],"align":[513],"sort":[1537]},[[0,"click","handleSort"]]],[2,"xv-login-modal",{"visible":[4],"urls":[32],"loading":[32],"errorMessage":[32]}],[257,"xv-overflow-menu-v2",{"open":[1540],"disabled":[516],"position":[1],"alignment":[1],"size":[1],"tooltip":[1],"anchor":[1],"activeId":[32],"openMenu":[64],"closeMenu":[64],"toggleMenu":[64]},[[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}],"anchor":[{"anchorChangeHandle":0}]}],[257,"xv-overflow-menu-v2-item",{"disabled":[516],"value":[520],"variant":[513],"clickable":[4],"href":[1],"target":[1],"divider":[516],"hasIcon":[32],"hasIconEnd":[32]},[[0,"click","handleClick"]]],[257,"xv-toggle-tip",{"open":[1540],"autoSize":[516,"auto-size"],"block":[4],"position":[1],"setPopover":[64]},[[4,"click","handleClickOutside"],[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}]}],[257,"xv-modal-v2",{"open":[1540],"permanent":[516],"size":[513],"overflow":[516],"loading":[4],"openModal":[64],"closeModal":[64]}],[257,"xv-notification-v2",{"variant":[513],"dismissible":[516]}],[65,"xv-text-input-v2",{"type":[1],"label":[1],"placeholder":[513],"name":[513],"value":[1025],"autocomplete":[1],"helper":[1],"error":[8],"warning":[8],"readonly":[4],"disabled":[4],"loading":[4],"block":[516],"clearable":[516],"size":[513],"isPasswordVisible":[32]}],[257,"xv-card-v2",{"variant":[1],"media":[1],"header":[1],"body":[1],"footer":[1]}],[257,"xv-link-v2",{"href":[1],"target":[1],"disabled":[4],"size":[1],"variant":[1]}],[321,"xv-checkbox-v2",{"checked":[1540],"indeterminate":[516],"disabled":[516],"name":[513],"value":[513],"readonly":[516],"required":[516],"partial":[516],"label":[1],"size":[513],"error":[520],"align":[513],"hasFocus":[32]},null,{"checked":[{"onCheckedChange":0}]}],[257,"xv-tag-v2",{"size":[1],"color":[1],"bg":[1],"disabled":[4],"closeable":[4]}],[260,"xv-tooltip-v2",{"message":[1],"position":[1],"block":[4],"dashed":[4]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"]]],[321,"xv-button-v2",{"value":[513],"name":[1],"label":[513],"variant":[513],"size":[513],"disabled":[516],"loading":[516],"block":[516],"type":[513],"active":[516],"hasLeftIcon":[32],"hasRightIcon":[32],"hasContent":[32]}],[257,"xv-loader-v2",{"show":[4],"variant":[1],"size":[1]}]]],["p-fe9b38f8",[[257,"xv-mega-menu-next",{"open":[1540],"menuData":[1,"menu-data"],"activeItem":[32],"activeGroup":[32],"menuItems":[32],"applicationContext":[32],"menuLoading":[32]},[[4,"click","handleClickOutside"]],{"menuData":[{"onMenuDataChange":0}]}]]],["p-f46bb687",[[0,"xv-header-next",{"menuData":[1,"menu-data"],"currentLocale":[1,"current-locale"],"locales":[1],"metaNav":[32],"orgUnit":[32],"baseUrl":[32],"loading":[32],"mobMenuOpen":[32],"suggestions":[32],"suggestionsLoading":[32],"notifications":[32],"showLoginModal":[32]},[[8,"xv:orgUnitChange","handleOrgUnitChange"],[8,"xv:metaNav-update","metaNavUpdate"]]]]]]'),e))));
1
+ import{p as e,g as a,b as l}from"./p-Owr_mJOX.js";export{s as setNonce}from"./p-Owr_mJOX.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await a(),l(JSON.parse('[["p-b0fbf402",[[0,"xv-header",{"metaNav":[32],"orgUnit":[32],"baseUrl":[32],"loading":[32],"mobMenuOpen":[32],"suggestions":[32],"suggestionsLoading":[32],"notifications":[32],"showLoginModal":[32]},[[8,"xv:orgUnitChange","handleOrgUnitChange"],[8,"xv:metaNav-update","metaNavUpdate"]]],[257,"xv-dropdown-v2",{"search":[516],"disabled":[516],"multiple":[516],"required":[516],"loading":[516],"readonly":[516],"open":[1540],"error":[520],"label":[513],"helper":[513],"warning":[513],"placeholder":[513],"info":[1],"searchPlaceholder":[1,"search-placeholder"],"size":[1],"defaultValue":[8,"default-value"],"value":[1032],"variant":[1],"position":[1],"selected":[32],"selectedMap":[32],"resolvedPosition":[32]},[[0,"itemSelected","handleItemSelected"],[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}],"multiple":[{"multipleChangeHandle":0}],"value":[{"valueChange":1}]}],[257,"xv-data-table-row",{"variant":[1],"name":[1025],"collapse":[1],"collapsable":[516],"checked":[1028],"partial":[1028],"hover":[1028],"group":[4],"header":[4],"footer":[4],"disabled":[4],"readonly":[4],"required":[4],"value":[8],"collapsed":[32],"reorderable":[32],"reorderHandleMode":[32],"close":[64]}],[321,"xv-date-picker",{"value":[1040],"selection":[1],"precision":[1],"withTime":[4,"with-time"],"minuteStep":[2,"minute-step"],"min":[1],"max":[1],"disabledDates":[16],"disabledWeekdays":[16],"weekStartsOn":[2,"week-starts-on"],"showWeekNumbers":[4,"show-week-numbers"],"locale":[1],"label":[1],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"],"placeholder":[1],"helper":[1],"error":[8],"warning":[8],"required":[4],"readonly":[4],"disabled":[4],"loading":[4],"clearable":[4],"size":[513],"block":[516],"placement":[1],"offset":[2],"dates":[32],"open":[32],"view":[32],"anchor":[32],"active":[32],"dayRows":[32],"unitCells":[32],"weekdays":[32],"focusedDate":[32]},null,{"value":[{"syncValue":0}],"locale":[{"rebuildWeekdays":0}],"weekStartsOn":[{"rebuildWeekdays":0},{"rebuild":0}],"precision":[{"resetView":0}],"anchor":[{"rebuild":0}],"view":[{"rebuild":0}],"min":[{"rebuild":0}],"max":[{"rebuild":0}],"disabledDates":[{"rebuild":0}],"disabledWeekdays":[{"rebuild":0}],"open":[{"openWatcher":0}]}],[65,"xv-datepicker",{"value":[1040],"variant":[1],"label":[1],"helper":[1],"error":[8],"warning":[8],"readonly":[4],"disabled":[4],"loading":[4],"block":[4],"size":[513],"min":[1],"max":[1],"disabledDates":[16],"month":[32],"days":[32],"open":[32],"localError":[32]},[[4,"click","handleClickOutside"]],{"open":[{"openChange":0}],"month":[{"getCalendarGrid":0}],"min":[{"getCalendarGrid":0}],"max":[{"getCalendarGrid":0}],"disabledDates":[{"getCalendarGrid":0}],"value":[{"handleValueChange":0}]}],[1,"xv-file-uploader",{"label":[1],"description":[1],"addText":[1,"add-text"],"variant":[1],"size":[1],"accept":[16],"buttonVariant":[1,"button-variant"],"maxFileSizeMB":[2,"max-file-size-mb"],"maxFiles":[2,"max-files"],"multiple":[4],"disabled":[516],"files":[1040],"loadingStates":[1040],"error":[1537],"warning":[8],"helper":[1],"errors":[1040],"dragActive":[32],"errorMessages":[32],"internalError":[32],"clearFiles":[64]}],[65,"xv-number-input-v2",{"label":[1],"placeholder":[513],"name":[513],"value":[1538],"helper":[1],"error":[8],"warning":[8],"step":[2],"max":[2],"min":[2],"readonly":[4],"disabled":[4],"loading":[4],"block":[516],"size":[513]}],[1,"xv-pagination",{"itemsPerPage":[1026,"items-per-page"],"itemsPerPageOptions":[1,"items-per-page-options"],"total":[2],"page":[1026],"size":[1],"block":[4],"variant":[1],"responsiveVariant":[16],"totalItems":[2,"total-items"],"currentVariant":[32]}],[257,"xv-table-v2-row",{"checked":[1540],"partial":[1540],"name":[1537],"value":[520],"hover":[1540],"readonly":[516],"required":[516],"disabled":[516],"header":[516],"variant":[1537]},null,{"checked":[{"checkedChangeHandle":0}]}],[1,"xv-tag-combobox",{"options":[16],"label":[1],"size":[1],"placeholder":[1],"allowCreate":[4,"allow-create"],"maxSuggestions":[2,"max-suggestions"],"disabled":[4],"loading":[4],"readonly":[4],"error":[8],"warning":[8],"helper":[1],"value":[16],"normalizedOptions":[32],"selected":[32],"inputValue":[32],"open":[32],"filtered":[32],"highlighted":[32],"focusInput":[64],"clear":[64]},null,{"options":[{"watchOptions":0}],"value":[{"watchValue":0}]}],[65,"xv-textarea",{"value":[1025],"name":[1],"label":[1],"placeholder":[1],"helper":[1],"info":[1],"error":[8],"warning":[8],"disabled":[4],"readonly":[4],"block":[4],"counterHide":[4,"counter-hide"],"noResize":[4,"no-resize"],"loading":[4],"max":[2],"rows":[2],"size":[513]}],[257,"xv-data-table",{"size":[1],"block":[520],"loading":[4],"columnWidths":[16],"multiple":[516],"hover":[4],"reorderable":[516],"reorderHandle":[513,"reorder-handle"]},null,{"reorderable":[{"reorderableChanged":0}],"reorderHandle":[{"reorderHandleChanged":0}]}],[257,"xv-dropdown-v2-item",{"disabled":[4],"value":[1544],"selected":[1540],"multiple":[516],"size":[513]},[[0,"click","handleClick"]]],[1,"xv-geo-map-v2",{"apiBase":[1,"api-base"],"indicator":[1],"indicatorLabel":[1,"indicator-label"],"level":[1],"resolution":[1],"styleUrl":[1,"style-url"],"language":[1],"tiles":[1],"attribution":[1],"centerLng":[2,"center-lng"],"centerLat":[2,"center-lat"],"zoom":[2],"selectZoom":[2,"select-zoom"],"workerUrl":[1,"worker-url"],"lazy":[4],"showSearch":[4,"show-search"],"ready":[32],"loadError":[32],"zoomGated":[32],"searchResults":[32],"searchQuery":[32],"selectByRadius":[64],"selectPostalCodes":[64],"clearSelection":[64],"previewByRadius":[64],"previewPostalCodes":[64],"clearPreview":[64]},null,{"level":[{"levelChanged":0}],"selectZoom":[{"selectZoomChanged":0}],"showSearch":[{"showSearchChanged":0}]}],[257,"xv-image-viewer",{"src":[1],"fullscreenSrc":[1,"fullscreen-src"],"alt":[1],"placeholder":[1],"lazy":[4],"isFullscreen":[32],"loaded":[32],"fullscreenLoaded":[32],"errored":[32]}],[257,"xv-tab-v2",{"label":[513],"disabled":[516],"loading":[516],"name":[8]}],[257,"xv-table-v2",{"size":[513],"hover":[516],"loading":[516],"colsSize":[16],"selected":[32],"selectedCount":[32]},[[0,"checkedChange","handleCheckedChange"]],{"colsSize":[{"setColsSizeTemplate":0}]}],[257,"xv-tabs-v2",{"active":[1544],"loading":[516],"variant":[1],"emptyMessage":[1,"empty-message"],"hideSingleTab":[4,"hide-single-tab"],"tabElements":[32],"showArrows":[32]},[[9,"resize","updateArrowVisibility"]]],[257,"xv-accordion-v2",{"multiple":[4],"xvId":[1,"xv-id"],"value":[1025],"opened":[32],"toggleItem":[64]},null,{"value":[{"onValueChange":0}]}],[257,"xv-accordion-v2-item",{"disabled":[4],"label":[1],"value":[1],"isOpen":[32]},[[16,"accordionChange","handleAccordionChange"]]],[260,"xv-breadcrumbs-v2"],[257,"xv-button-group-v2",{"variant":[513],"multiple":[516],"value":[1025]},[[0,"click","handleClick"]],{"value":[{"onSelectionInputChange":0}],"multiple":[{"onSelectionInputChange":0}]}],[257,"xv-content-switcher-item-v2",{"value":[520],"label":[513],"icon":[513],"disabled":[516]}],[257,"xv-content-switcher-v2",{"selected":[1544],"size":[513],"iconOnly":[516,"icon-only"],"disabled":[516],"block":[516],"controlled":[516],"items":[32]}],[257,"xv-data-table-collapse",{"collapsed":[1540],"setCollapsed":[64]}],[0,"xv-footer",{"data":[32]},[[8,"xv:metaNav-update","handleLoadData"]]],[257,"xv-progress-indicator-v2",{"progress":[514],"variant":[1],"size":[1]},null,{"progress":[{"updateChildItems":0}]}],[257,"xv-progress-indicator-v2-item",{"status":[1]}],[324,"xv-radio-v2",{"name":[1],"value":[1],"label":[1],"checked":[1028],"indeterminate":[4],"block":[4],"disabled":[4],"required":[4],"reverse":[4],"readonly":[4],"error":[8],"warning":[520],"helper":[1],"size":[1]},null,{"checked":[{"onCheckedChange":0}]}],[65,"xv-slider-v2",{"label":[1],"name":[1],"min":[2],"max":[2],"value":[1026],"step":[2],"disabled":[4],"readonly":[4],"notEditable":[4,"not-editable"]}],[257,"xv-table-v2-expand",{"open":[1540],"disabled":[516]}],[260,"xv-tile",{"variant":[513],"label":[1],"error":[4],"multiple":[4],"disabled":[4],"block":[4],"name":[1],"message":[513],"value":[1025],"checked":[1028],"readonly":[1028]},[[4,"tileChange","tileChangeHandle"],[0,"click","handleClick"]]],[321,"xv-toggle",{"label":[1],"value":[1],"name":[1],"checked":[1540],"disabled":[4],"readonly":[4],"size":[513],"block":[4]}],[262,"xv-mega-menu",{"open":[1540],"activeItem":[32],"activeGroup":[32],"menuItems":[32],"applicationContext":[32],"menuLoading":[32]},[[4,"click","handleClickOutside"]]],[257,"xv-data-table-cell",{"name":[1025],"sort":[1537],"multiline":[520],"width":[1],"align":[1],"tooltip":[1]},[[0,"click","handleSort"]]],[257,"xv-table-v2-cell",{"multiline":[516],"name":[1537],"align":[513],"sort":[1537]},[[0,"click","handleSort"]]],[2,"xv-login-modal",{"visible":[4],"urls":[32],"loading":[32],"errorMessage":[32]}],[257,"xv-overflow-menu-v2",{"open":[1540],"disabled":[516],"position":[1],"alignment":[1],"size":[1],"tooltip":[1],"anchor":[1],"activeId":[32],"openMenu":[64],"closeMenu":[64],"toggleMenu":[64]},[[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}],"anchor":[{"anchorChangeHandle":0}]}],[257,"xv-overflow-menu-v2-item",{"disabled":[516],"value":[520],"variant":[513],"clickable":[4],"href":[1],"target":[1],"divider":[516],"hasIcon":[32],"hasIconEnd":[32]},[[0,"click","handleClick"]]],[257,"xv-toggle-tip",{"open":[1540],"autoSize":[516,"auto-size"],"block":[4],"position":[1],"setPopover":[64]},[[4,"click","handleClickOutside"],[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}]}],[257,"xv-modal-v2",{"open":[1540],"permanent":[516],"size":[513],"overflow":[516],"loading":[4],"openModal":[64],"closeModal":[64]}],[257,"xv-link-v2",{"href":[1],"target":[1],"disabled":[4],"size":[1],"variant":[1]}],[257,"xv-notification-v2",{"variant":[513],"dismissible":[516]}],[65,"xv-text-input-v2",{"type":[1],"label":[1],"placeholder":[513],"name":[513],"value":[1025],"autocomplete":[1],"helper":[1],"error":[8],"warning":[8],"readonly":[4],"disabled":[4],"loading":[4],"block":[516],"clearable":[516],"size":[513],"isPasswordVisible":[32]}],[257,"xv-card-v2",{"variant":[1],"media":[1],"header":[1],"body":[1],"footer":[1]}],[321,"xv-checkbox-v2",{"checked":[1540],"indeterminate":[516],"disabled":[516],"name":[513],"value":[513],"readonly":[516],"required":[516],"partial":[516],"label":[1],"size":[513],"error":[520],"align":[513],"hasFocus":[32]},null,{"checked":[{"onCheckedChange":0}]}],[257,"xv-tag-v2",{"size":[1],"color":[1],"bg":[1],"disabled":[4],"closeable":[4]}],[260,"xv-tooltip-v2",{"message":[1],"position":[1],"block":[4],"dashed":[4]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"]]],[321,"xv-button-v2",{"value":[513],"name":[1],"label":[513],"variant":[513],"size":[513],"disabled":[516],"loading":[516],"block":[516],"type":[513],"active":[516],"hasLeftIcon":[32],"hasRightIcon":[32],"hasContent":[32]}],[257,"xv-loader-v2",{"show":[4],"variant":[1],"size":[1]}]]],["p-fbd8ca68",[[0,"xv-header-next",{"menuData":[1,"menu-data"],"currentLocale":[1,"current-locale"],"locales":[1],"metaNav":[32],"orgUnit":[32],"baseUrl":[32],"loading":[32],"mobMenuOpen":[32],"suggestions":[32],"suggestionsLoading":[32],"notifications":[32],"showLoginModal":[32]},[[8,"xv:orgUnitChange","handleOrgUnitChange"],[8,"xv:metaNav-update","metaNavUpdate"]]]]],["p-3dd10203",[[0,"xv-footer-next",{"footerData":[1,"footer-data"],"data":[32]},[[8,"xv:metaNav-update","handleLoadData"]],{"footerData":[{"onFooterDataChange":0}]}]]],["p-ec19bcc7",[[262,"xv-mega-menu-next",{"open":[1540],"menuData":[1,"menu-data"],"activeItem":[32],"activeGroup":[32],"menuItems":[32],"applicationContext":[32],"menuLoading":[32]},[[4,"click","handleClickOutside"]],{"menuData":[{"onMenuDataChange":0}]}]]]]'),e))));
@@ -0,0 +1,287 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { Readable } from 'node:stream';
4
+
5
+ export declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
6
+ export type TagTransformer = (tag: string) => string;
7
+ /**
8
+ * Serialize a value to a string that can be deserialized later.
9
+ * @param {unknown} value - The value to serialize.
10
+ * @returns {string} A string that can be deserialized later.
11
+ * @deprecated will be removed in v5. Use `@PropSerialize()` decorator instead.
12
+ */
13
+ export declare function serializeProperty(value: unknown): string | number | boolean;
14
+ /**
15
+ * Deserialize a value from a string that was serialized earlier.
16
+ * @param {string} value - The string to deserialize.
17
+ * @returns {unknown} The deserialized value.
18
+ * @deprecated will be removed in v5. Use `@AttrDeserialize()` decorator instead.
19
+ */
20
+ export declare function deserializeProperty(value: string): any;
21
+ export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
22
+ export interface HydrateDocumentOptions {
23
+ /**
24
+ * Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
25
+ * a random ID will be generated
26
+ */
27
+ buildId?: string;
28
+ /**
29
+ * Sets the `href` attribute on the `<link rel="canonical">`
30
+ * tag within the `<head>`. If the value is not defined it will
31
+ * ensure a canonical link tag is no included in the `<head>`.
32
+ */
33
+ canonicalUrl?: string;
34
+ /**
35
+ * Include the HTML comments and attributes used by the client-side
36
+ * JavaScript to read the structure of the HTML and rebuild each
37
+ * component. Defaults to `true`.
38
+ */
39
+ clientHydrateAnnotations?: boolean;
40
+ /**
41
+ * Constrain `setTimeout()` to 1ms, but still async. Also
42
+ * only allows `setInterval()` to fire once, also constrained to 1ms.
43
+ * Defaults to `true`.
44
+ */
45
+ constrainTimeouts?: boolean;
46
+ /**
47
+ * Sets `document.cookie`
48
+ */
49
+ cookie?: string;
50
+ /**
51
+ * Sets the `dir` attribute on the top level `<html>`.
52
+ */
53
+ direction?: string;
54
+ /**
55
+ * Component tag names listed here will not be prerendered, nor will
56
+ * hydrated on the client-side. Components listed here will be ignored
57
+ * as custom elements and treated no differently than a `<div>`.
58
+ */
59
+ excludeComponents?: string[];
60
+ /**
61
+ * Sets the `lang` attribute on the top level `<html>`.
62
+ */
63
+ language?: string;
64
+ /**
65
+ * Maximum number of components to hydrate on one page. Defaults to `300`.
66
+ */
67
+ maxHydrateCount?: number;
68
+ /**
69
+ * Sets `document.referrer`
70
+ */
71
+ referrer?: string;
72
+ /**
73
+ * Removes every `<script>` element found in the `document`. Defaults to `false`.
74
+ */
75
+ removeScripts?: boolean;
76
+ /**
77
+ * Removes CSS not used by elements within the `document`. Defaults to `true`.
78
+ */
79
+ removeUnusedStyles?: boolean;
80
+ /**
81
+ * The url the runtime uses for the resources, such as the assets directory.
82
+ */
83
+ resourcesUrl?: string;
84
+ /**
85
+ * Prints out runtime console logs to the NodeJS process. Defaults to `false`.
86
+ */
87
+ runtimeLogging?: boolean;
88
+ /**
89
+ * Component tags listed here will only be prerendered or server-side-rendered
90
+ * and will not be client-side hydrated. This is useful for components that
91
+ * are not dynamic and do not need to be defined as a custom element within the
92
+ * browser. For example, a header or footer component would be a good example that
93
+ * may not require any client-side JavaScript.
94
+ */
95
+ staticComponents?: string[];
96
+ /**
97
+ * The amount of milliseconds to wait for a page to finish rendering until
98
+ * a timeout error is thrown. Defaults to `15000`.
99
+ */
100
+ timeout?: number;
101
+ /**
102
+ * Sets `document.title`.
103
+ */
104
+ title?: string;
105
+ /**
106
+ * Sets `location.href`
107
+ */
108
+ url?: string;
109
+ /**
110
+ * Sets `navigator.userAgent`
111
+ */
112
+ userAgent?: string;
113
+ /**
114
+ * Configure how Stencil serializes the components shadow root.
115
+ * - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
116
+ * - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
117
+ * and the shadow DOM will be created during client-side hydration.
118
+ * - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
119
+ * the value arrays containing the tag names of the components that should be rendered in that mode.
120
+ *
121
+ * Examples:
122
+ * - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
123
+ * Render all components as `scoped` apart from `my-component-1` and `another-component`
124
+ * - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
125
+ * Render all components within `declarative-shadow-dom` apart from `an-option-component`
126
+ * - `'scoped'` Render all components as `scoped`
127
+ * - `false` disables shadow root serialization
128
+ *
129
+ * *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
130
+ * @default 'declarative-shadow-dom'
131
+ */
132
+ serializeShadowRoot?: "declarative-shadow-dom" | "scoped" | {
133
+ "declarative-shadow-dom"?: string[];
134
+ scoped?: string[];
135
+ default: "declarative-shadow-dom" | "scoped";
136
+ } | boolean;
137
+ }
138
+ export interface SerializeDocumentOptions extends HydrateDocumentOptions {
139
+ /**
140
+ * Runs after the `document` has been hydrated.
141
+ */
142
+ afterHydrate?(document: any): any | Promise<any>;
143
+ /**
144
+ * Sets an approximate line width the HTML should attempt to stay within.
145
+ * Note that this is "approximate", in that HTML may often not be able
146
+ * to be split at an exact line width. Additionally, new lines created
147
+ * is where HTML naturally already has whitespace, such as before an
148
+ * attribute or spaces between words. Defaults to `100`.
149
+ */
150
+ approximateLineWidth?: number;
151
+ /**
152
+ * Runs before the `document` has been hydrated.
153
+ */
154
+ beforeHydrate?(document: any): any | Promise<any>;
155
+ /**
156
+ * Format the HTML in a nicely indented format.
157
+ * Defaults to `false`.
158
+ */
159
+ prettyHtml?: boolean;
160
+ /**
161
+ * Remove quotes from attribute values when possible.
162
+ * Defaults to `true`.
163
+ */
164
+ removeAttributeQuotes?: boolean;
165
+ /**
166
+ * Remove the `=""` from standardized `boolean` attributes,
167
+ * such as `hidden` or `checked`. Defaults to `true`.
168
+ */
169
+ removeBooleanAttributeQuotes?: boolean;
170
+ /**
171
+ * Remove these standardized attributes when their value is empty:
172
+ * `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
173
+ */
174
+ removeEmptyAttributes?: boolean;
175
+ /**
176
+ * Remove HTML comments. Defaults to `true`.
177
+ */
178
+ removeHtmlComments?: boolean;
179
+ /**
180
+ * The `fullDocument` flag determines the format of the rendered output. Set it to true to
181
+ * generate a complete HTML document, or false to render only the component.
182
+ * @default true
183
+ */
184
+ fullDocument?: boolean;
185
+ /**
186
+ * Style modes to render the component in.
187
+ * @see https://stenciljs.com/docs/styling#style-modes
188
+ */
189
+ modes?: ResolutionHandler[];
190
+ }
191
+ export interface HydrateFactoryOptions extends SerializeDocumentOptions {
192
+ serializeToHtml: boolean;
193
+ destroyWindow: boolean;
194
+ destroyDocument: boolean;
195
+ }
196
+ export interface Diagnostic {
197
+ absFilePath?: string | undefined;
198
+ code?: string;
199
+ columnNumber?: number | undefined;
200
+ debugText?: string;
201
+ header?: string;
202
+ language?: string;
203
+ level: "error" | "warn" | "info" | "log" | "debug";
204
+ lineNumber?: number | undefined;
205
+ lines: PrintLine[];
206
+ messageText: string;
207
+ relFilePath?: string | undefined;
208
+ type: string;
209
+ }
210
+ export interface PrintLine {
211
+ lineIndex: number;
212
+ lineNumber: number;
213
+ text: string;
214
+ errorCharStart: number;
215
+ errorLength?: number;
216
+ }
217
+ export interface HydrateResults {
218
+ buildId: string;
219
+ diagnostics: Diagnostic[];
220
+ url: string;
221
+ host: string | null;
222
+ hostname: string | null;
223
+ href: string | null;
224
+ port: string | null;
225
+ pathname: string | null;
226
+ search: string | null;
227
+ hash: string | null;
228
+ html: string | null;
229
+ components: HydrateComponent[];
230
+ anchors: HydrateAnchorElement[];
231
+ imgs: HydrateImgElement[];
232
+ scripts: HydrateScriptElement[];
233
+ styles: HydrateStyleElement[];
234
+ staticData: HydrateStaticData[];
235
+ title: string | null;
236
+ hydratedCount: number;
237
+ httpStatus: number | null;
238
+ }
239
+ export interface HydrateComponent {
240
+ tag: string;
241
+ mode: string;
242
+ count: number;
243
+ depth: number;
244
+ }
245
+ export interface HydrateElement {
246
+ [attrName: string]: string | undefined;
247
+ }
248
+ export interface HydrateAnchorElement extends HydrateElement {
249
+ href?: string;
250
+ target?: string;
251
+ }
252
+ export interface HydrateImgElement extends HydrateElement {
253
+ src?: string;
254
+ }
255
+ export interface HydrateScriptElement extends HydrateElement {
256
+ src?: string;
257
+ type?: string;
258
+ }
259
+ export interface HydrateStyleElement extends HydrateElement {
260
+ id?: string;
261
+ href?: string;
262
+ content?: string;
263
+ }
264
+ export interface HydrateStaticData {
265
+ id: string;
266
+ type: string;
267
+ content: string;
268
+ }
269
+ export declare function streamToString(html: string | any, option?: SerializeDocumentOptions): Readable;
270
+ export declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise<HydrateResults>;
271
+ export declare function renderToString(html: string | any, options: SerializeDocumentOptions | undefined, asStream: true): Readable;
272
+ export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise<HydrateResults>;
273
+ export declare function hydrateDocument(doc: any | string, options: HydrateDocumentOptions | undefined, asStream?: boolean): Readable;
274
+ export declare function serializeDocumentToString(doc: Document, opts: HydrateFactoryOptions): string;
275
+ /**
276
+ * Transforms a tag name using the current tag transformer
277
+ * @param tag - the tag to transform e.g. `my-tag`
278
+ * @returns the transformed tag e.g. `new-my-tag`
279
+ */
280
+ export declare function transformTag<T extends string>(tag: T): T;
281
+ /**
282
+ * Sets the tag transformer to be used when rendering custom elements
283
+ * @param transformer the transformer function to use. Must return a string
284
+ */
285
+ export declare function setTagTransformer(transformer: TagTransformer): void;
286
+
287
+ export {};