PageSourceSearch

https://www.brouwerijkestemont.be/_next/static/chunks/pages/search-602dade4af9e3e1d.js

js brouwerijkestemont.be collected 2026-10-02 09:54:10 UTC 11,653 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{1260:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return r(3982)}])},3982:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSG:function(){return J},default:function(){return Y}});var t=r(4246),i=r(6677),a=r(518),o=r(7889),c=r(8944),s=r(9894),l=r(8502),u=r.n(l),d=r(8579),f=r(5230),v=r.n(f),p=r(7378),m=r(3500);function h(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function g(){return(g=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(this,arguments)}var _=function(e){var n=g({},e);return(0,t.jsx)("svg",function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){h(e,n,r[n])}))}return e}({width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,t.jsx)("path",{d:"M20.84 2.61C20.3292 2.099 19.7228 1.69365 19.0554 1.41708C18.3879 1.14052 17.6725 0.998175 16.95 0.998175C16.2275 0.998175 15.5121 1.14052 14.8446 1.41708C14.1772 1.69365 13.5708 2.099 13.06 2.61L12 3.67L10.94 2.61C9.9083 1.57831 8.50903 0.998709 7.05 0.998709C5.59096 0.998709 4.19169 1.57831 3.16 2.61C2.1283 3.64169 1.54871 5.04097 1.54871 6.5C1.54871 7.95903 2.1283 9.35831 3.16 10.39L4.22 11.45L12 19.23L19.78 11.45L20.84 10.39C21.351 9.87924 21.7563 9.27281 22.0329 8.60536C22.3095 7.9379 22.4518 7.22249 22.4518 6.5C22.4518 5.77751 22.3095 5.0621 22.0329 4.39464C21.7563 3.72719 21.351 3.12076 20.84 2.61V2.61Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))};var b=function(){return async(e={})=>(0,p.useCallback)((async function(){return Promise.resolve()}),[])},y=r(4040);var j=function e(n,r){const t=({includeProducts:e}={})=>({data:null});return t.extend=e,t}();var x=function(e){return async({id:e})=>(0,p.useCallback)((async function(){return Promise.resolve()}),[])},w=r(9202),O=r.n(w);function P(e,n,r,t,i,a,o){try{var c=e[a](o),s=c.value}catch(l){return void r(l)}c.done?n(s):Promise.resolve(s).then(t,i)}function N(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function C(e,n){if(null==e)return{};var r,t,i=function(e,n){if(null==e)return{};var r,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)r=a[t],n.indexOf(r)>=0||(i[r]=e[r]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)r=a[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var k=function(e){var n,r,i=e.productId,a=e.variant,o=e.className,s=C(e,["productId","variant","className"]),l=j().data,u=b(),d=x(),f=(0,y.Z)().data,h=(0,m.l8)(),g=h.openModal,w=h.setModalView,k=(0,p.useState)(!1),S=k[0],I=k[1],E=null===l||void 0===l||null===(n=l.items)||void 0===n?void 0:n.find((function(e){return e.product_id===Number(i)&&e.variant_id===Number(a.id)})),L=function(){var e,n=(e=v().mark((function e(n){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),!S){e.next=3;break}return e.abrupt("return");case 3:if(f){e.next=6;break}return w("LOGIN_VIEW"),e.abrupt("return",g());case 6:if(I(!0),e.prev=7,!E){e.next=13;break}return e.next=11,d({id:E.id});case 11:e.next=15;break;case 13:return e.next=15,u({productId:i,variantId:null===a||void 0===a?void 0:a.id});case 15:I(!1),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(7),I(!1);case 21:case"end":return e.stop()}}),e,null,[[7,18]])})),function(){var n=this,r=arguments;return new Promise((function(t,i){var a=e.apply(n,r);function o(e){P(a,t,i,o,c,"next",e)}function c(e){P(a,t,i,o,c,"throw",e)}o(void 0)}))});return function(e){return n.apply(this,arguments)}}();return(0,t.jsx)("button",function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){N(e,n,r[n])}))}return e}
1({"aria-label":"Add to wishlist",className:(0,c.Z)(O().root,o),onClick:L},s,{children:(0,t.jsx)(_,{className:(0,c.Z)(O().icon,(r={},N(r,O().loading,S),N(r,O().inWishlist,E),r))})}))},S=r(4398),I=r(6028),E=r.n(I);var L=function(e){var n,r,i,a=e.name,o=e.price,s=e.className,l=void 0===s?"":s,u=e.fontSize,d=void 0===u?32:u;return(0,t.jsxs)("div",{className:(0,c.Z)(E().root,l),children:[(0,t.jsx)("h3",{className:E().name,children:(0,t.jsx)("span",{className:(0,c.Z)((n={},r=E().fontsizing,i=d<32,r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n)),style:{fontSize:"".concat(d,"px"),lineHeight:"".concat(d,"px")},children:a})}),(0,t.jsx)("div",{className:E().price,children:o})]})},B=r(7061);function Z(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function W(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){Z(e,n,r[n])}))}return e}var T="/product-img-placeholder.svg",q=function(e){var n,r,i,a,o,l,f=e.product,v=e.imgProps,p=e.className,m=e.noNameTag,h=void 0!==m&&m,g=e.variant,_=void 0===g?"default":g,b=(0,S.ZP)({amount:f.price.value,baseAmount:f.price.retailPrice,currencyCode:f.price.currencyCode}).price,y=(0,c.Z)(u().root,(Z(l={},u().slim,"slim"===_),Z(l,u().simple,"simple"===_),l),p);return(0,t.jsx)(s.default,{href:"/product/".concat(f.slug),children:(0,t.jsxs)("a",{className:y,"aria-label":f.name,children:["slim"===_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:u().header,children:(0,t.jsx)("span",{children:f.name})}),(null===f||void 0===f?void 0:f.images)&&(0,t.jsx)("div",{children:(0,t.jsx)(d.default,W({quality:"85",src:(null===(n=f.images[0])||void 0===n?void 0:n.url)||T,alt:f.name||"Product Image",height:320,width:320,layout:"fixed"},v))})]}),"simple"===_&&(0,t.jsxs)(t.Fragment,{children:[B.env.COMMERCE_WISHLIST_ENABLED&&(0,t.jsx)(k,{className:u().wishlistButton,productId:f.id,variant:f.variants[0]}),!h&&(0,t.jsxs)("div",{className:u().header,children:[(0,t.jsx)("h3",{className:u().name,children:(0,t.jsx)("span",{children:f.name})}),(0,t.jsx)("div",{className:u().price,children:"".concat(b," ").concat(null===(r=f.price)||void 0===r?void 0:r.currencyCode)})]}),(0,t.jsx)("div",{className:u().imageContainer,children:(null===f||void 0===f?void 0:f.images)&&(0,t.jsx)("div",{children:(0,t.jsx)(d.default,W({alt:f.name||"Product Image",className:u().productImage,src:(null===(i=f.images[0])||void 0===i?void 0:i.url)||T,height:540,width:540,quality:"85",layout:"responsive"},v))})})]}),"default"===_&&(0,t.jsxs)(t.Fragment,{children:[B.env.COMMERCE_WISHLIST_ENABLED&&(0,t.jsx)(k,{className:u().wishlistButton,productId:f.id,variant:f.variants[0]}),(0,t.jsx)(L,{name:f.name,price:"".concat(b," ").concat(null===(a=f.price)||void 0===a?void 0:a.currencyCode)}),(0,t.jsx)("div",{className:u().imageContainer,children:(null===f||void 0===f?void 0:f.images)&&(0,t.jsx)("div",{children:(0,t.jsx)(d.default,W({alt:f.name||"Product Image",className:u().productImage,src:(null===(o=f.images[0])||void 0===o?void 0:o.url)||T,height:540,width:540,quality:"85",layout:"responsive"},v))})})]})]})})},D=function(e){var n=e.children,r=e.className,i=e.el,a=void 0===i?"div":i,o=e.clean,s=void 0!==o&&o,l=(0,c.Z)(r,{"mx-auto max-w-7xl px-6 w-full":!s}),u=a;return(0,t.jsx)(u,{className:l,children:n})},H=function(e){return"number"===typeof e?"".concat(e,"px"):e},M=r(2178),z=r.n(M);function R(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function A(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){R(e,n,r[n])}))}return e}var F=function(e){var n,r=e.style,i=e.width,a=e.height,o=e.children,s=e.className,l=e.show,u=void 0===l||l,d=e.boxHeight,f=void 0===d?a:d,v=!!o&&!(i||a);
1return i=i||24,a=a||24,f=f||a,(0,t.jsx)("span",{className:(0,c.Z)(z().skeleton,s,(n={},R(n,z().show,u),R(n,z().wrapper,v),R(n,z().loaded,!v&&!!o),n)),style:v?{}:A({minWidth:H(i),minHeight:H(a),marginBottom:"calc(".concat(H(f)," - ").concat(H(a),")")},r),children:o})},K=r(5922),V=function(e){return e.replace(/^\/|\/$/g,"")};function X(e,n){for(var r=[];e>r.length;)r.push(n(r.length));return r}function G(e){var n,r,a=e.categories,c=e.brands,s=e.navigation,l=e.secondaryNavigation,u=e.translations,d=(0,i.useRouter)(),f=d.asPath,v=d.locale,m=d.query,h=m.q,g=m.sort,_=function(e){var n=(0,p.useState)("/search"),r=n[0],t=n[1],i=(0,p.useState)(),a=i[0],o=i[1],c=(0,p.useState)(),s=c[0],l=c[1];return(0,p.useEffect)((function(){var n=e.split("?")[0],i=n.split("/"),c=i[2],u=i[3];"designers"===c&&(c=i[4]),n!==r&&t(n),c!==a&&o(c),u!==s&&l(u)}),[e,r,a,s]),{pathname:r,category:a,brand:s}}(f),b=_.category,y=_.brand,j=a.find((function(e){return e.slug===b})),x=null===(n=c.find((function(e){return V(e.node.path)==="brands/".concat(y)})))||void 0===n?void 0:n.node,w=(0,K.Z)({search:"string"===typeof h?h:"",categoryId:null===j||void 0===j?void 0:j.id,brandId:null===(r=x)||void 0===r?void 0:r.entityId,sort:"string"===typeof g?g:"",locale:v}).data;return(0,t.jsx)(o.Z,{navigation:s,secondaryNavigation:l,translations:u,children:(0,t.jsx)(D,{children:(0,t.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4 mt-3 mb-20",children:(0,t.jsxs)("div",{className:"col-span-8 order-3 lg:order-none",children:[w?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:w.products.map((function(e){return(0,t.jsx)(q,{variant:"simple",className:"animated fadeIn",product:e,imgProps:{width:480,height:480}},e.path)}))}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:X(12,(function(e){return(0,t.jsx)(F,{children:(0,t.jsx)("div",{className:"w-60 h-60"})},e)}))})," "]})})})})}G.Layout=a.Z;var J=!0,Y=G},8502:function(e){e.exports={root:"ProductCard_root__HqXTt",productImage:"ProductCard_productImage__nbfNy",header:"ProductCard_header__qlwPO",name:"ProductCard_name__YciuQ",price:"ProductCard_price___JB_V",wishlistButton:"ProductCard_wishlistButton__jS6Lf",imageContainer:"ProductCard_imageContainer__G6HoR",simple:"ProductCard_simple__HMkuK",slim:"ProductCard_slim__nclhL"}},6028:function(e){e.exports={root:"ProductTag_root__Nxivt",name:"ProductTag_name__C_niq",fontsizing:"ProductTag_fontsizing__XnIPn",price:"ProductTag_price__RDK06"}},2178:function(e){e.exports={skeleton:"Skeleton_skeleton__5r66i",loading:"Skeleton_loading__rv977",wrapper:"Skeleton_wrapper__KY8KJ",show:"Skeleton_show__wL69o"}},9202:function(e){e.exports={root:"WishlistButton_root__crSyc",icon:"WishlistButton_icon__J690_",loading:"WishlistButton_loading__BcgF9",inWishlist:"WishlistButton_inWishlist__uwrZI"}}},function(e){e.O(0,[81,724,889,774,888,179],(function(){return n=1260,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.