vendor: 2,134 bytes, line 1
1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2491],{4504:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6798),a=n.n(i)()((function(e){return e[1]}));a.push([e.id,".global-navigation__menu-logo[data-v-a5d3d694]{margin-right:0;overflow:hidden;transition-duration:.2s;width:0}.global-navigation--sticky .global-navigation__menu-logo[data-v-a5d3d694]{margin-right:16px;width:33px}.fade-enter-active[data-v-a5d3d694],.fade-leave-active[data-v-a5d3d694]{transition:opacity 225ms cubic-bezier(.4,0,.2,1)}.fade-enter[data-v-a5d3d694],.fade-leave-to[data-v-a5d3d694]{opacity:0}.swiperight-enter-active[data-v-a5d3d694],.swiperight-leave-active[data-v-a5d3d694]{transition:transform 225ms cubic-bezier(.4,0,.2,1)}.swiperight-enter[data-v-a5d3d694],.swiperight-leave-to[data-v-a5d3d694]{transform:translateX(-100%)}",""]);const o=a},6798:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(i)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(a[s]=!0)}for(var r=0;r<e.length;r++){var l=[].concat(e[r]);i&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},5072:(e,t,n)=>{var i,a=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function r(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],a=0;a<e.length;a++){var o=e[a],l=t.base?o[0]+t.base:o[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=r(c),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(s[d].references++,s[d].updater(f)):s.push({identifier:c,updater:_(f,t),references:1}),i.push(c)}return i}function u(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var a=n.nc;a&&(i.nonce=a)}
1if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var c,d=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function f(e,t,n,i){var a=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var o=document.createTextNode(a),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function g(e,t,n){var i=n.css,a=n.media,o=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var v=null,h=0;function _(e,t){var n,i,a;if(t.singleton){var o=h++;n=v||(v=u(t)),i=f.bind(null,n,o,!1),a=f.bind(null,n,o,!0)}else n=u(t),i=g.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var a=r(n[i]);s[a].references--}for(var o=l(e,t),u=0;u<n.length;u++){var c=r(n[u]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}n=o}}}},4522:(e,t,n)=>{n.d(t,{A:()=>a});const i={created:function(){},methods:{getMenu:function(e){return axios.get("/api/menus/".concat(e))}}};const a=(0,n(4486).A)(i,undefined,undefined,!1,null,null,null).exports},2491:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var i=n(938);const a={mixins:[n(4522).A],props:["left_menu_id","menu_id","facebook","instagram","youtube"],components:{Portal:i.ZL},data:function(){return{asideMenuFlag:!1,parsedMenu:[],firstMenuOpen:!1,assideMenu:[],openSubMenu:null,openMenuItem:null,activeFirstMenuIndex:null,activeSecondMenuIndex:null,activeThirdMenuIndex:null,currentChecked:!1}},created:function(){this.setupScrollListener(),this.fetchMenus()},beforeDestroy:function(){this.removeScrollListener()},updated:function(){this.currentChecked||(this.checkActiveLinks(),this.currentChecked=!0)},mounted:function(){"/katalog-firm"==window.location.pathname&&(document.querySelector(".global-navigation__banner.container").classList.add("nosearch"),document.querySelector(".global-navigation__sticky").classList.add("nosearch"))},methods:{checkActiveLinks:function(){var e=window.location.pathname;e.startsWith("/")&&(e=e.substring(1));var t=!1;document.querySelector(".global-navigation__first-menu").querySelectorAll(".global-navigation__first-menu-item").forEach((function(n){if(!t){var i=n.querySelector(".global-navigation__second-menu");if(null!=i)if(i.querySelectorAll(".global-navigation__second-menu-item > .global-navigation__menu-link").forEach((function(i){new URL(i.href).pathname.substring(1)===e&&(n.childNodes[0].click(),i.parentElement.classList.add("active"),t=!0)})),!t)i.querySelectorAll(".global-navigation__second-menu-item").forEach((function(i){i.querySelectorAll(".global-navigation__third-menu .global-navigation__third-menu-link").forEach((function(a){new URL(a.href).pathname.substring(1)===e&&(n.childNodes[0].click(),i.classList.add("active"),t=!0)}))}))}}))},fetchMenus:function(){this.menu_id&&this.fetchMenu(this.menu_id,"parsedMenu"),this.left_menu_id&&this.fetchMenu(this.left_menu_id,"assideMenu")},fetchMenu:function(e,t){var n=this;this.getMenu(e).then((function(e){n[t]=e.data.data.map((function(e){return!e.attributes.external||/^http:\/\//.test(e.attributes.url)||/^https:\/\//.test(e.attributes.url)||(e.attributes.url="//"+e.attributes.url),e}))})).catch((function(e){console.error(e)}))},setupScrollListener:function(){var e=this;this.scrollListener=function(){var t=window.scrollY,n=window.innerWidth;t>76&&n<760||t>105&&n>760?e.addStickyClass():e.removeStickyClass()},window.addEventListener("scroll",this.scrollListener)},removeScrollListener:function(){window.removeEventListener("scroll",this.scrollListener)},addStickyClass:function(){var e=document.querySelector(".global-navigation");e&&e.classList.add("global-navigation--sticky")},removeStickyClass:function(){var e=document.querySelector(".global-navigation--sticky");e&&e.classList.remove("global-navigation--sticky")},toggleAsideMenu:function(){this.asideMenuFlag=!this.asideMenuFlag,document.body.style.overflow=this.asideMenuFlag?"hidden":"auto"},closeAsideMenu:function(){this.asideMenuFlag=!1,document.body.style.overflow="auto"},openAsideMenu:function(){this.asideMenuFlag=!0,document.body.style.overflow="hidden"},closeMenu:function(e,t){this.openSubMenu&&t!==this.openSubMenu&&this.openSubMenu.classList.remove("global-navigation__second-menu--open"),this.openMenuItem&&e!==this.openMenuItem&&this.openMenuItem.classList.remove("global-navigation__first-menu-item--open")},toggleMenu:function(e){var t=e.target.parentNode,n=t.querySelector(".global-navigation__second-menu");n&&(this.closeMenu(t,n),t.classList.toggle("global-navigation__first-menu-item--open"),n.classList.toggle("global-navigation__second-menu--open")),this.openSubMenu=n,this.openMenuItem=t,this.firstMenuOpen=!!document.querySelectorAll(".global-navigation__second-menu--open").length}}};var o=n(5072),s=n.n(o),r=n(4504),l={insert:"head",singleton:!1};s()(r.A,l);r.A.locals;const u=(0,n(4486).A)(a,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"d-flex justify-start h-100"},[e._m(0),e._v(" "),t("button",{staticClass:"global-navigation__hamburger-button",on:{click:function(t){return e.openAsideMenu()}}},[t("svg",{attrs:{width:"24",height:"18",viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"Component 11"}},[t("path",{attrs:{id:"Vector 17",d:"M1 1H23",stroke:"white","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("path",{attrs:{id:"Vector 18",d:"M1 9H23",stroke:"white","stroke-width":"2","stroke-linecap":"round"}}),e._v(" "),t("path",{attrs:{id:"Vector 19",d:"M1 17H23",stroke:"white","stroke-width":"2","stroke-linecap":"round"}})])])]),e._v(" "),t("div",{staticClass:"global-navigation__menu-wrapper"},[t("ul",{staticClass:"global-navigation__first-menu tc-my--0",class:{"global-navigation__first-menu--open":e.firstMenuOpen}},e._l(e.parsedMenu,(function(n){return t("li",{key:n.id,staticClass:"global-navigation__first-menu-item"},[n.children.length>0?t("a",{staticClass:"global-navigation__menu-link",on:{click:e.toggleMenu}},[e._v(e._s(n.attributes.display_name))]):t("a",{staticClass:"global-navigation__menu-link",attrs:{href:n.attributes.url?n.attributes.url:"",target:n.attributes.new_tab?"_blank":"_self"}},[e._v(e._s(n.attributes.display_name))]),e._v(" "),n.children.length>0?t("ul",{staticClass:"global-navigation__second-menu"},e._l(n.children,(function(n){return t("li",{key:n.id,staticClass:"global-navigation__second-menu-item"},[t("a",{staticClass:"global-navigation__menu-link",attrs:{href:n.attributes.url?n.attributes.url:"",target:n.attributes.new_tab?"_blank":"_self"}},[e._v(e._s(n.attributes.display_name))]),e._v(" "),n.attributes.json_body?t("div",{staticClass:"global-navigation__third-menu"},e._l(JSON.parse(n.attributes.json_body).columns,(function(n,i){return t("ul",{key:i,staticClass:"global-navigation__third-menu-list"},[n.header?t("li",{staticClass:"global-navigation__third-menu-header"}
1,[e._v(e._s(n.header))]):e._e(),e._v(" "),e._l(n.items,(function(n){return t("li",{key:n.id,staticClass:"global-navigation__third-menu-item"},[t("a",{staticClass:"global-navigation__third-menu-link",attrs:{href:n.url?n.url:"",target:n.new_tab?"_blank":"_self"}},[e._v(e._s(n.display_name))])])}))],2)})),0):e._e()])})),0):e._e()])})),0)]),e._v(" "),t("portal",{attrs:{selector:"#portalOverlay"}},[t("transition",{attrs:{name:"fade"}},[e.asideMenuFlag?t("div",{staticClass:"global_overlay",on:{click:function(t){return e.closeAsideMenu()}}}):e._e()]),e._v(" "),t("transition",{attrs:{name:"swiperight"}},[e.asideMenuFlag?t("div",{staticClass:"global-navigation__asside_menu"},[t("div",{staticClass:"d-flex justify-content-between justify-end"},[t("a",{staticClass:"global-navigation__asside-logo",attrs:{href:"/"}},[t("img",{attrs:{src:"/img/header/white-logo.svg",alt:"menu logo"}}),e._v(" "),t("p",[e._v("Branżowy Portal Internetowy")])]),e._v(" "),t("button",{staticClass:"global-navigation__asside_menu--close-btn",on:{click:function(t){return e.closeAsideMenu()}}},[t("img",{attrs:{src:"/img/header/close-icon.svg",alt:"close"}})])]),e._v(" "),e.assideMenu.length?t("tree-menu",{attrs:{menuItems:e.assideMenu,facebook:e.facebook,youtube:e.youtube,instagram:e.instagram}}
1):e._e()],1):e._e()])],1)],1)}),[function(){var e=this._self._c;return e("a",{staticClass:"global-navigation__menu-logo",attrs:{href:"/"}},[e("img",{attrs:{src:"/img/logo_icon.png",alt:"logo icon"}})])}],!1,null,"a5d3d694",null).exports},4486:(e,t,n)=>{function i(e,t,n,i,a,o,s,r){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):a&&(l=r?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,{A:()=>i})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.