PageSourceSearch

https://gagel.vercel.app/_next/static/chunks/pages/product/[slug]-ffa79661104673e4.js

js gagel.vercel.app collected 2026-10-03 06:59:29 UTC 7,892 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[915],{7607:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[slug]",function(){return r(7262)}])},7262:function(t,e,r){"use strict";r.r(e),r.d(e,{__N_SSG:function(){return x},default:function(){return b}});var n=r(5893),o=r(7153),i=r(4924),c=r(6042),a=r(9396),u=r(9815),l=r(7294),s=r(3e3),d=r(4085),_=r(5146),p=r.n(_),v=function(t){var e,r,o,_=t.product,v=t.variations,f=(0,l.useState)({}),h=f[0],m=f[1],x=(0,l.useState)(null),b=x[0],j=x[1],g=(null===_||void 0===_?void 0:_.attributes)||[];return Object.keys(_).length?(0,n.jsxs)("div",{className:p().productPage,children:[(0,n.jsx)("img",{src:_.images[0].src}),(0,n.jsx)("h2",{children:_.name}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:_.description}}),"variable"===(null===_||void 0===_?void 0:_.type)?(0,n.jsxs)("div",{className:p().variable,children:[g.map((function(t){return(0,n.jsxs)("div",{className:p().option,children:[(0,n.jsxs)("label",{children:[t.name,":"]}),(0,n.jsxs)("select",{value:h[t.name]||"",onChange:function(e){return function(t,e){var r=(0,a.Z)((0,c.Z)({},h),(0,i.Z)({},t,e));m(r);var n=v.find((function(t){return t.attributes.every((function(t){return r[t.name]===t.option}))}));j(n||null)}(t.name,e.target.value)},children:[(0,n.jsx)("option",{value:"",children:"Select"}),(0,u.Z)(new Set(v.map((function(e){return e.attributes.find((function(e){return e.name===t.name}))})).filter(Boolean).map((function(t){return t.option})))).map((function(t){return(0,n.jsx)("option",{value:t,children:t},t)}))]})]},t.name)})),b?(0,n.jsx)("div",{className:p().price,children:"\u20ac".concat(b.price)}):(0,n.jsx)("div",{className:"text-sm text-gray-500 mb-4",children:"Selecteer een optie"})]}):(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:null!==(e=null===_||void 0===_?void 0:_.price_html)&&void 0!==e?e:""},className:p().price}),"simple"===(null===_||void 0===_?void 0:_.type)&&"outofstock"!==_.stock_status?(0,n.jsx)(s.Z,{product:_}):"variable"===(null===_||void 0===_?void 0:_.type)&&b?(0,n.jsx)(s.Z,{product:_,variation:b}):null,"outofstock"===_.stock_status&&(0,n.jsx)("p",{children:"SOLD OUT"}),"external"===(null===_||void 0===_?void 0:_.type)?(0,n.jsx)(d.Z,{url:null!==(r=null===_||void 0===_?void 0:_.external_url)&&void 0!==r?r:"",text:null!==(o=null===_||void 0===_?void 0:_.button_text)&&void 0!==o?o:""}):null]}):null},f=r(6966),h=r(2397),m=r(1163),x=!0;function b(t){var e,r,i=t.headerFooter,c=t.product,a=t.variations;return(0,m.useRouter)().isFallback?(0,n.jsx)("div",{children:"Loading..."}):(0,n.jsx)("div",{className:"parent-184",children:(0,n.jsxs)(o.Z,{headerFooter:i||{},seo:null!==(e=null===c||void 0===c?void 0:c.yoast_head_json)&&void 0!==e?e:{},uri:"/product/".concat(null!==(r=null===c||void 0===c?void 0:c.slug)&&void 0!==r?r:""),children:[(0,n.jsx)(f.Z,{}),(0,n.jsx)("div",{className:"flex",children:(0,n.jsx)(h.Z,{link:"/shop/cart",children:"bekijk winkelwagen"})}),(0,n.jsx)(v,{product:c,variations:a})]})})}},2397:function(t,e,r){"use strict";var n=r(5893),o=(r(7294),r(1027)),i=r.n(o),c=r(1664),a=r.n(c);e.Z=function(t){var e=t.children,r=t.link,o=t.onClick,c=t.isActive,u=void 0!==c&&c,l="".concat(i().callToActionButton," ").concat(u?"active":"");return r?(0,n.jsx)("div",{id:"button",className:l,onClick:o,children:(0,n.jsx)(a(),{prefetch:!0,href:r.url?r.url.replace("https://cms.gagel.nl/",""):r,passHref:!0,children:(0,n.jsx)("div",{className:i().text,children:e})})}):(0,n.jsx)("button",{id:"button",className:l,onClick:o,children:(0,n.jsx)("div",{className:i().text,children:e})})}},6966:function(t,e,r){"use strict";var n=r(5893),o=(r(7294),r(8511)),i=r.n(o),c=r(1664),a=r.n(c);e.Z=function(t){t.children;return(0,n.jsx)("div",{className:i().homeButton,children:(0,n.jsx)(a(),{prefetch:!0,href:"/",children:(0,n.jsx)("div",{className:i().logo,children:(0,n.jsx)("div",{id:"bg",className:i().maskImg})})})})}},3e3:function(t,e,r){"use strict";var n=r(5893),o=r(6486),i=r(6051),c=r(7294),a=r(6086),u=r(1664),l=r.n(u),s=r(7257),d=r.n(s),_=r(1163);e.Z=function(t){var e=t.product,r=t.variation,u=void 0===r?null:r,s=(0,_.useRouter)(),p=(0,c.useContext)(a.I),v=(p[0],p[1]),f=(0,c.useState)(!1),h=f[0],m=f[1],x=(0,c.useState)(!1),b=x[0],j=x[1];if((0,o.isEmpty)(e))return null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:d().cartButton,onClick:"variable"===e.type&&s.asPath.includes("bestellen")||"variable"===e.type&&s.asPath.includes("shop")?function(){s.push("/product/".concat(e.slug))}:function(){var t=u?u.id:e.id;(0,i.Xq)(t,1,v,m,j)},disabled:b,children:b?"toevoegen...":"variable"!==e.type||u?"bestellen":"selecteer een optie"}),h&&!b?(0,n.jsx)(l(),{href:"/shop/cart",children:"bekijk winkelwagen"}):null]})}},4085:function(t,e,r){"use strict";
1var n=r(5893),o=r(1664),i=r.n(o);e.Z=function(t){var e=t.url,r=t.text;return e&&r?(0,n.jsx)(i(),{href:e,children:(0,n.jsx)("a",{target:"_blank",className:"duration-500 text-gray-800 font-semibold py-2 px-4 border border-gray-400 rounded shadow bg-white hover:bg-gray-100",children:r})}):null}},1027:function(t){t.exports={callToActionButton:"CallToActionButton_callToActionButton__WJ_yr",text:"CallToActionButton_text__Y8uf4",svg:"CallToActionButton_svg__0wYPo"}},8511:function(t){t.exports={homeButton:"HomeButton_homeButton__VCStd",logo:"HomeButton_logo__UnXrp",maskImg:"HomeButton_maskImg__aBd_M"}},7257:function(t){t.exports={cartButton:"cart_cartButton__ZVXnL",clearButton:"cart_clearButton__6QMBf",leeg:"cart_leeg__zonMY",cartWrapper:"cart_cartWrapper__Xh_PF",cartContent:"cart_cartContent__o4n6f",cartItems:"cart_cartItems__R_F77",cartTotal:"cart_cartTotal__r9k_i",cartPrice:"cart_cartPrice__mujMg",taxNote:"cart_taxNote__bPABN",cartButtons:"cart_cartButtons__cYu4n",cartItem:"cart_cartItem__0_3d_",cartRight:"cart_cartRight__xcIOM",cartRightFlex:"cart_cartRightFlex__dYmAH",productTitleWrapper:"cart_productTitleWrapper__0AuI7",productTitle:"cart_productTitle__v16yW",cartFooter:"cart_cartFooter__yNWyk"}},5146:function(t){t.exports={productPage:"product_productPage__Rh2bL",variable:"product_variable__a7KRq",option:"product_option__bFQbF",price:"product_price__J3SQw"}},943:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{Z:function(){return n}})},3375:function(t,e,r){"use strict";function n(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}r.d(e,{Z:function(){return n}})},9396:function(t,e,r){"use strict";function n(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}
1(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t}r.d(e,{Z:function(){return n}})},9815:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var n=r(943);var o=r(3375);var i=r(1566);function c(t){return function(t){if(Array.isArray(t))return(0,n.Z)(t)}(t)||(0,o.Z)(t)||(0,i.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1566:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(943);function o(t,e){if(t){if("string"===typeof t)return(0,n.Z)(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(t,e):void 0}}}},function(t){t.O(0,[662,317,153,774,888,179],(function(){return e=7607,t(t.s=e);var e}));var e=t.O();_N_E=e}]);

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.