1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="49a8d127-b488-4a0a-8937-b16d847c1e8e",e._sentryDebugIdIdentifier="sentry-dbid-49a8d127-b488-4a0a-8937-b16d847c1e8e")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[560],{6024:(e,r,t)=>{t.d(r,{I:()=>n});function n(e,r){return r?e.content.contentType===r&&!!e.location:!!e.location}},6162:(e,r,t)=>{t.d(r,{hY:()=>x,li:()=>T,Fd:()=>A,O:()=>z});var n=t(41094),a=t(85789),o=t(49131),i=t(63582),s=t(81181);let u=(0,s.createServerReference)("008874d28972198cabb0b2f38b73226228bf830bc9",s.callServer,void 0,s.findSourceMapURL,"INTERNAL__getServerSiteAccess");var c=t(62494),l={en:"en",fr:"fr",de:"de",hr:"hr"};c.z.nativeEnum(l);var d=[{host:"prostoria.dev10.netgen.biz",language:l.en,locale:"en"},{host:"prostoria.dev10.netgen.biz",uri:"hr",language:l.hr,locale:"hr"},{host:"prostoria.dev10.netgen.biz",uri:"fr",language:l.fr,locale:"fr"},{host:"prostoria.dev10.netgen.biz",uri:"de",language:l.de,locale:"de"},{host:"us.prostoria.dev10.netgen.biz",language:l.en,locale:"en-us"}],h=[{host:"prostoria-dev1.dev10.netgen.biz",language:l.en,locale:"en"},{host:"prostoria-dev1.dev10.netgen.biz",uri:"hr",language:l.hr,locale:"hr"},{host:"prostoria-dev1.dev10.netgen.biz",uri:"fr",language:l.fr,locale:"fr"},{host:"prostoria-dev1.dev10.netgen.biz",uri:"de",language:l.de,locale:"de"},{host:"us.prostoria-dev1.dev10.netgen.biz",language:l.en,locale:"en-us"}],p=[{host:"prostoria-dev2.dev10.netgen.biz",language:l.en,locale:"en"},{host:"prostoria-dev2.dev10.netgen.biz",uri:"hr",language:l.hr,locale:"hr"},{host:"prostoria-dev2.dev10.netgen.biz",uri:"fr",language:l.fr,locale:"fr"},{host:"prostoria-dev2.dev10.netgen.biz",uri:"de",language:l.de,locale:"de"},{host:"us.prostoria-dev2.dev10.netgen.biz",language:l.en,locale:"en-us"}],f=[{host:"prostoria-dev3.dev10.netgen.biz",language:l.en,locale:"en"},{host:"prostoria-dev3.dev10.netgen.biz",uri:"hr",language:l.hr,locale:"hr"},{host:"prostoria-dev3.dev10.netgen.biz",uri:"fr",language:l.fr,locale:"fr"},{host:"prostoria-dev3.dev10.netgen.biz",uri:"de",language:l.de,locale:"de"},{host:"us.prostoria-dev3.dev10.netgen.biz",language:l.en,locale:"en-us"}],g=[{host:"prostoria-content.dev10.netgen.biz",language:l.en,locale:"en"},{host:"prostoria-content.dev10.netgen.biz",uri:"hr",language:l.hr,locale:"hr"},{host:"prostoria-content.dev10.netgen.biz",uri:"fr",language:l.fr,locale:"fr"},{host:"prostoria-content.dev10.netgen.biz",uri:"de",language:l.de,locale:"de"},{host:"prostoria-content-us.dev10.netgen.biz",language:l.en,locale:"en-us"}],v=[{host:"www.prostoria.eu",language:l.en,locale:"en"},{host:"www.prostoria.eu",uri:"hr",language:l.hr,locale:"hr"},{host:"www.prostoria.eu",uri:"fr",language:l.fr,locale:"fr"},{host:"www.prostoria.eu",uri:"de",language:l.de,locale:"de"},{host:"www.prostoria.com",language:l.en,locale:"en-us"}],y=[],b="",w=function(){try{var e=t(Object(function(){var e=Error("Cannot find module './configs/local'");throw e.code="MODULE_NOT_FOUND",e}()));return{localSiteAccessConfig:e.localSiteAccessConfig,localApiBaseUrl:e.localApiBaseUrl}}catch(e){return{localSiteAccessConfig:[],localApiBaseUrl:""}}}();y=w.localSiteAccessConfig,b=w.localApiBaseUrl;var _={local:y,dev:d,dev1:h,dev2:p,dev3:f,dev_content:g,prod:v},m={local:b,dev:void 0,dev1:void 0,dev2:void 0,dev3:void 0,dev_content:void 0,prod:"http://127.0.0.1:81"},Y=n._K.NEXT_PUBLIC_SERVER_ENVIRONMENT,q=_[Y],E=m[Y];function T(e){var r=q[0];if(!r)throw Error("No site access configured");if(!e)return r;var t=q.toSorted(function(e,r){var t,n,a,o;return(null!=(a=null==(t=r.uri)?void 0:t.length)?a:0)-(null!=(o=null==(n=e.uri)?void 0:n.length)?o:0)}).find(function(r){var t=r.host,n=r.uri,a=new URL(e),o=a.host.split(":")[0],i=!n||a.pathname.startsWith("/".concat(n,"/"));return o===t&&i});return t||r}function A(e){return e.startsWith("/")?e:"/".concat(e)}function x(e){var r=e.siteAccess,t=e.context,n=e.environment,o=e.includeLocale,i=r.host,s=r.uri,u=r.isHttp?"http":"https",c=("ngcontentapi"!==t||void 0!==o&&o)&&s?A(s):"",l="ngcontentapi"===t?A(a.A.ngContentApiPrefix):"";return"server"===n&&E?"".concat(E).concat(c):"".concat(u,"://").concat(i).c
1oncat(l).concat(c)}var z={getServerSiteAccess:u,getClientSiteAccess:function(){var e=window.location.href,r=T(e);return(0,i._)((0,o._)({},r),{currentUrl:e})}}},13909:(e,r,t)=>{t.d(r,{h:()=>s});var n=t(68618),a=t(16605),o=t(36230),i=t(17040),s=function(e){"use strict";function r(e){var t;return(0,o._)(this,r),"string"==typeof e.error?t=(0,a._)(this,r,[e.error]):(t=(0,a._)(this,r,[e.error["hydra:description"]])).name="Error ".concat(e.response.status,": ").concat(e.error["hydra:title"]),Object.setPrototypeOf((0,n._)(t),(this instanceof r?this.constructor:void 0).prototype),(0,n._)(t)}return(0,i._)(r,e),r}((0,t(79232)._)(Error))},19874:(e,r,t)=>{t.d(r,{cn:()=>s});var n=t(46570),a=t(11251),o=t(1917),i=(0,a.zu)({extend:{classGroups:{}}},o.d);function s(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return i((0,n.$)(r))}},35543:(e,r,t)=>{t.d(r,{P:()=>z});var n=t(30566),a=t(83873),o=t(49131),i=t(63582),s=t(11286),u=t(54456),c=t(13909),l=t(6024),d=t(88318),h=(0,d.DY)("projects",{byType:function(e){var r,t=e.projectTypeId,d=e.maxPerPage;return{queryKey:["byType",t,e.locale],queryFn:(r=(0,n._)(function(e){var r,n,h;return(0,s.YH)(this,function(s){switch(s.label){case 0:return r=e.pageParam,[4,u.Y.GET("/api/web/projects",{params:{query:{type:t,maxPerPage:d,page:"number"==typeof r?r:1}}})];case 1:if((n=s.sent()).error)throw new c.h(n);return h=n.data["hydra:member"].filter(function(e){var r=e.content,t=e.location;return!!r&&!!t&&(0,l.I)({content:r,location:t},"ps_project")}),[2,(0,i._)((0,o._)({},n.data),(0,a._)({},"hydra:member",h))]}})}),function(e){return r.apply(this,arguments)})}}}),p=(0,d.DY)("wishlist",{get:function(e){var r=e.userGuid;return{queryKey:["get",r],queryFn:(0,n._)(function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,u.Y.GET("/api/web/wishlist/{guid}",{params:{path:{guid:r}}})];case 1:if((e=t.sent()).error)throw new c.h(e);return[2,e.data]}})})}}}),f=t(6162),g=(0,d.DY)("ibexa",{getPage:function(e){var r=e.url;return{queryKey:[r],queryFn:(0,n._)(function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,fetch(r,{method:"GET",headers:{"Content-Type":"application/json","NG-Host":f.O.getClientSiteAccess().host}})];case 1:if(!(e=t.sent()).ok)throw Error("Failed to get page client");return[4,e.json()];case 2:return[2,t.sent()]}})})}},getMenu:{queryKey:["menu"],queryFn:(0,n._)(function(){var e;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,u.Y.GET("/api/web/menu")];case 1:if((e=r.sent()).error)throw new c.h(e);return[2,e.data]}})})},getLanguageSwitch:function(e){var r=e.path;return{queryKey:["languages",r],queryFn:(0,n._)(function(){var e,t,n;return(0,s.YH)(this,function(a){switch(a.label){case 0:return e=f.O.getClientSiteAccess(),t=(0,f.hY)({siteAccess:e,context:"api",environment:"client",includeLocale:!0}),[4,fetch("".concat(t,"/api/web/language-switch").concat((0,f.Fd)(r)),{method:"GET",headers:{accept:"application/json, application/ld+json","Content-Type":"application/json","NG-Host":e.host}})];case 1:if(!(n=a.sent()).ok)throw Error("Failed to get language switch");return[4,n.json()];case 2:return[2,a.sent()]}})})}}}),v=(0,d.DY)("productVariant",{get:function(e){var r=e.productVariantId;return{queryKey:[r],queryFn:(0,n._)(function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,u.Y.GET("/api/web/product-variants/{id}",{params:{path:{id:r.toString()}}})];case 1:if((e=t.sent()).error)throw new c.h(e);return[2,e.data]}})})}}}),y=t(90520),b=t(40366),w=t(27355);function _(e){return Object.entries(e).reduce(function(e,r){var t=(0,w._)(r,2),n=t[0],s=t[1];return null==s||Array.isArray(s)&&0===s.length?e:(0,i._)((0,o._)({},e),(0,a._)({},n,Array.isArray(s)?s.filter(function(e){return!!e}).sort(function(e,r){return parseInt(e)-parseInt(r)}):s))},{})}var m=(0,d.DY)("productsList",{get:function(e){var r,t=e.query;return{queryKey:["get"].concat((0,y._)((0,b.a)(_(t)||{}))),queryFn:(r=(0,n._)(function(e){var r,n,a,c;return(0,s.YH)(this,function(s){switch(s.label){case 0:return n=void 0===(r=e.pageParam)?1:r,a=_(t),[4,u.Y.GET("/api/web/products-filter",{params:{query:(0,i._)((0,o._)({},a),{currentPage:n,maxPerPage:36})}})];case 1:if(200!==(c=s.sent()).response.status||!c.data||c.error)throw Error("Failed to fetch products");return[2,c.data]}})}),function(e){return r.apply(this,arguments)})}}}),Y=(0,d.DY)("stories",{byType:function(e){var r,t=e.storyTypeId,d=e.maxPerPage;return{queryKey:["byType",t,e.locale],queryFn:(r=(0,n._)(function(e){var r,n,h;return(0,s.YH)(this,function(s){switch(s.label){case 0:return r=e.pageParam,[4,u.Y.GET("/api/web/stories",{params:{query:{type:t,maxPerPage:d,page:"number"==typeof r?r:1}}})];case 1:if((n=s.sent()).error)throw new c.h(n);return h=n.data["hydra:member"].filter(function(e){var r=e.content,t=e.location;return!!r&&!!t&&((0,l.I)({content:r,location:t},"ps_story")||(0,l.I)({content:r,location:t},"ps_banner"))}),[2,(0,i._)((0,o._)({},n.data),(0,a._)({},"hydra:member",h))]}})}),function(e){return r.apply(this,arguments)})}}}),q=(0,d.DY)("sharedWishlist",{get:function(e){var r=e.sharedWishlistUuid;return{queryKey:["get",r],queryFn:(0,n._)(function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,u.Y.GET("/api/web/wishlist-shared/{shareUuid}",{params:{path:{shareUuid:r}}})];case 1:if((e=t.sent()).error)throw new c.h(e);return[2,e.data]}})})}}}),E=(0,d.DY)("collections",{get:function(e){var r,t=e.query;return{queryKey:["get"].concat((0,y._)((0,b.a)(t||{}))),queryFn:(r=(0,n._)(function(e){var r,n;return(0,s.YH)(this,function(a){switch(a.label){case 0:return r=e.pageParam,[4,u.Y.GET("/api/web/collections",{params:{query:(0,i._)((0,o._)({},t),{page:"number"==typeof r?r:1,itemsPerPage:24})}})];case 1:if((n=a.sent()).error)throw new c.h(n);return[2,n.data]}})}),function(e){return r.apply(this,arguments)})}}}),T=(0,d.DY)("getAQuote",{getCountries:function(){return{queryKey:["countries"],queryFn:(0,n._)(function(){var e,r;return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,u.Y.GET("/api/web/countries")];case 1:if((e=t.sent()).error)throw new c.h(e);return r=e.response.headers.get("cf-ipcountry")||e.response.headers.get("CF-IPC
1ountry"),[2,{data:e.data,userCountryCode:r}]}})})}}}),A=(0,d.DY)("dealers",{get:function(e){return{queryKey:[Object.values(e)],queryFn:(0,n._)(function(){var r;return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,u.Y.GET("/api/web/locations/nearest",{params:{query:e}})];case 1:if((r=t.sent()).error)throw new c.h(r);return[2,r.data]}})})}}}),x=(0,d.DY)("search",{fullTextSearch:function(e){var r,t=e.query;return{queryKey:["full-text-search"].concat((0,y._)((0,b.a)(t||{}))),queryFn:(r=(0,n._)(function(e){var r,n,a;return(0,s.YH)(this,function(s){switch(s.label){case 0:return n=void 0===(r=e.pageParam)?1:r,[4,u.Y.GET("/api/web/search",{params:{query:(0,i._)((0,o._)({},t),{currentPage:n})}})];case 1:if((a=s.sent()).error)throw Error(a.error["application/json"].description);return[2,a.data]}})}),function(e){return r.apply(this,arguments)})}}}),z=(0,d.h0)(v,m,p,q,g,h,Y,E,A,T,x)},54456:(e,r,t)=>{t.d(r,{Y:()=>d,o:()=>l});var n=t(30566),a=t(11286),o=t(6162),i=t(87635),s=function(){var e=(0,n._)(function(e){var r,t,n,i,s;return(0,a.YH)(this,function(a){switch(a.label){case 0:return r=null,[3,2];case 1:return t=a.sent(),r=(0,o.hY)({siteAccess:t,environment:"server",context:"api"}),[3,3];case 2:n=o.O.getClientSiteAccess(),r=(0,o.hY)({siteAccess:n,environment:"client",context:"api"}),a.label=3;case 3:return i=new URL(e.url).pathname,s=new URL(e.url).search,[2,r+i+s]}})});return function(r){return e.apply(this,arguments)}}(),u={onRequest:function(){var e=(0,n._)(function(e){var r,t,n,o,i,u;return(0,a.YH)(this,function(a){switch(a.label){case 0:return[4,s(r=e.request)];case 1:t=a.sent(),a.label=2;case 2:if(a.trys.push([2,5,,6]),n=r.method.toUpperCase(),(o=new Headers(r.headers)).set("accept","application/json, application/ld+json"),i={method:n,headers:o,mode:r.mode,credentials:r.credentials,cache:r.cache,redirect:r.redirect,referrer:r.referrer,integrity:r.integrity},!("GET"!==n&&"HEAD"!==n&&!r.bodyUsed))return[3,4];return[4,r.clone().arrayBuffer()];case 3:i.body=a.sent(),a.label=4;case 4:return[2,new Request(t,i)];case 5:throw console.error(u=a.sent()),u;case 6:return[2]}})});return function(r){return e.apply(this,arguments)}}()},c={onRequest:function(){var e=(0,n._)(function(e){var r,t,n;return(0,a.YH)(this,function(a){switch(a.label){case 0:r=e.request;return[3,2];case 1:n=(t=a.sent()).currentUrl.split(":")[0]||"https",r.headers.set("ng-host",t.host),r.headers.set("x-forwarded-proto",n),a.label=2;case 2:return[2,r]}})});return function(r){return e.apply(this,arguments)}}()},l=(0,i.Ay)({baseUrl:"https://netgen.biz"}),d=(0,i.Ay)({baseUrl:"https://netgen.biz"});l.use(c),l.use(u),d.use(c),d.use(u)},73159:(e,r,t)=>{t.d(r,{d:()=>c,l:()=>l});var n=t(27355),a=t(69529),o=t(18196),i=t(12369),s=t(95629),u=(0,s.createContext)(null);function c(){var e=(0,s.useContext)(u);if(!e)throw Error("useToaster must be used within a ToasterProvider");return e}var l=function(e){var r=e.children,t=e.defaultDuration,c=void 0===t?3e3:t,l=(0,n._)((0,s.useState)(null),2),d=l[0],h=l[1],p=(0,n._)((0,s.useState)(null),2),f=p[0],g=p[1],v=(0,s.useCallback)(function(){h(null),f&&(clearTimeout(f),g(null))},[f]),y=(0,s.useCallback)(function(e){var r;f&&clearTimeout(f),h(e),g(setTimeout(function(){v()},null!=(r=e.duration)?r:c))},[f,v,c]);return(0,s.useEffect)(function(){return function(){f&&clearTimeout(f)}},[f]),(0,a.jsxs)(u.Provider,{value:{toast:y},children:[r,(0,a.jsx)(o.N,{children:d&&(0,a.jsx)(i.P.div,{className:"pointer-events-auto fixed left-0 right-0 top-16 z-[99999] bg-gray-950 px-4 py-2 text-white md:bottom-8 md:left-auto md:right-8 md:top-auto md:w-[300px]",initial:{opacity:0,y:25},animate:{opacity:1,y:0},exit:{opacity:0,y:25},transition:{duration:.2},children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsx)("span",{children:d.text}),d.action&&(0,a.jsx)("button",{onClick:function(e){var r;null==(r=d.action)||r.onClick(e),v()},children:d.action.label})]})})})]})}},85789:(e,r,t)=>{t.d(r,{A:()=>n});var n={errorPage:{notFound:{path:"/errors/404"},generalError:{path:"/errors/500"}},ngContentApiPrefix:"/ngcontentapi"}},89043:(e,r,t)=>{t.d(r,{S:()=>s,T:()=>u});var n=t(47315),a=t(87391),o=void 0;function i(){return new n.E({defaultOptions:{queries:{staleTime:6e4}}})}function s(){return a.S$?i():(o||(o=i()),o)}var u=new n.E({defaultOptions:{queries:{staleTime:6e4}}})}}]); 2//# sourceMappingURL=560-0aea18c25e582249.js.map
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.