PageSourceSearch

https://gagel.vercel.app/_next/static/chunks/153-125fd71ed69f31c1.js

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

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[153],{2723:function(e,t,n){"use strict";var o=n(5893),r=n(2834),s=n.n(r);t.Z=function(e){var t=e.label,n=e.checked,r=e.onChange;return(0,o.jsx)("div",{children:(0,o.jsxs)("label",{className:s().switch,children:[(0,o.jsx)("input",{type:"checkbox",checked:n,onChange:r}),(0,o.jsx)("span",{className:"".concat(s().slider," ").concat(s().round)}),(0,o.jsx)("span",{className:s().labelText,children:t})]})})}},8872:function(e,t,n){"use strict";var o=n(7568),r=n(655),s=n(5893),a=n(7294),i=n(8249),l=n.n(i);t.Z=function(e){var t=e.title,n=void 0===t?"Schrijf je in voor onze nieuwsbrief":t,i=(0,a.useState)(""),c=i[0],u=i[1],d=function(){var e=(0,o.Z)((function(e){var t,n,o,s,a,i;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:e.preventDefault(),t=new FormData(e.target),n=t.get("EmailAddress"),r.label=1;case 1:return r.trys.push([1,6,,7]),s={},[4,fetch("/api/newsletter",(s.method="POST",s.headers={"Content-Type":"application/json"},s.body=JSON.stringify({email:n}),s))];case 2:return(o=r.sent()).ok?(u("success"),[3,5]):[3,3];case 3:return[4,o.json()];case 4:a=r.sent(),console.error("Error:",a),u("error"),r.label=5;case 5:return[3,7];case 6:return i=r.sent(),console.error("Network error:",i),u("error"),[3,7];case 7:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();return(0,s.jsxs)("div",{className:l().newsletter,children:[(0,s.jsx)("h3",{className:l().title,children:n}),(0,s.jsxs)("form",{onSubmit:d,className:l().form,children:[(0,s.jsx)("input",{type:"email",name:"EmailAddress",className:"".concat(l().input," required email"),placeholder:"Jouw emailadres",required:!0}),(0,s.jsx)("button",{type:"submit",name:"subscribe",className:l().button,children:"Aanmelden"})]}),"success"===c&&(0,s.jsx)("h3",{className:l().success,children:"Bedankt voor je aanmelding!"}),"error"===c&&(0,s.jsx)("h3",{className:l().error,children:"Er ging iets mis. Probeer het opnieuw."})]})}},6086:function(e,t,n){"use strict";n.d(t,{I:function(){return a},w:function(){return i}});var o=n(5893),r=n(7294),s=n(6051),a=r.createContext([{},function(){}]),i=function(e){var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){var e,t=localStorage.getItem("next-cart");(null===(t=null!==t?JSON.parse(t):"")||void 0===t||null===(e=t.cartItems)||void 0===e?void 0:e.length)&&(t=(0,s.xN)(t.cartItems)),i(t)}),[]),(0,r.useEffect)((function(){localStorage.setItem("next-cart",JSON.stringify(n))}),[n]),(0,o.jsx)(a.Provider,{value:[n,i],children:e.children})}},7153:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var o=n(5893),r=n(9008),s=n.n(r),a=n(6086),i=n(1664),l=n.n(i),c=n(7294);var u=n(8514),d=n.n(u),h=n(1163),m=function(e){var t=e.header,n=(0,h.useRouter)(),r=(0,c.useContext)(a.I),s=r[0],i=(r[1],t||{}),u=i.headerMenuItems,m=(i.siteDescription,i.siteLogoUrl,i.siteTitle,(0,c.useState)(!1)),v=m[0],p=m[1],_=(0,c.useState)(null),g=_[0],f=_[1],x=(0,c.useState)(!1),w=x[0],j=x[1],y=function(){p(!1),j(!1),f(null)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("header",{className:"".concat(d().header," ").concat(v?d().show:""," ").concat(n.asPath.includes("archive")&&d().isArchive),children:[(0,o.jsx)("div",{className:d().arrow,onClick:function(){return p(!v)}}),(0,o.jsxs)("div",{className:"".concat(d().menuItems," ").concat(w?d().showSubmenu:""),children:[(0,o.jsx)("div",{className:"".concat(d().backButton," ").concat(w?d().visible:""),onClick:function(){f(null),j(!1)},children:"\u2190 Terug"}),u.map((function(e,t){return(0,o.jsxs)("div",{className:"".concat(d().menuItem," ").concat(g===e?d().active:""),children:[(0,o.jsx)("a",{className:d().icon,href:"/".concat(e.pageSlug),onClick:function(t){return function(e,t){window.innerWidth<=768&&(w||(t.preventDefault(),f(e),j(!0)))}(e,t)},children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:d().imgMask,style:{maskImage:"url(/".concat(e.pageSlug,".svg)")}}),(0,o.jsxs)("div",{className:d().label,children:[e.title," ",(null===s||void 0===s?void 0:s.totalQty)&&"Shop"==e.title?"(".concat(null===s||void 0===s?void 0:s.totalQty,")"):null]})]})}),(0,o.jsx)("div",{className:d().children,children:e.children.map((function(t,n){return(0,o.jsx)("div",{className:d().child,children:1501===e.pageID?(0,o.jsx)("a",{href:"/".concat(t.pageSlug),className:d().label,onClick:y,dangerouslySetInnerHTML:{__html:t.title}}):(0,o.jsx)(l(),{href:"/".concat(t.pageSlug),children:(0,o.jsx)("div",{className:d().label,onClick:y,dangerouslySetInnerHTML:{__html:t.title}})})},n)}))})]},t)}))]})]})})},v=n(7166),p=n.n(v),_=n(6201),g=n.n(_),f=n(8872),x=p().bind(g());function w(e){e.title,e.menuItems,e.primaryMenu;var t=e.footer,n=(0,h.useRouter)();return(0,o.jsxs)("footer",{id:"".concat(n.asPath.includes("archive")&&"archiveFooter"),className:x("component"),children:[(0,o.jsxs)("div",{className:g().footerContent,children:[(0,o.jsx)("div",{className:g().footerText,dangerouslySetInnerHTML:{__html:t.sidebarOne}}),(0,o.jsx)(f.Z,{})]}),(0,o.jsx)("div",{className:g().lenteland,children:(0,o.jsx)("div",{className:g().maskImg})}),(0,o.jsx)("div",{className:g().footerText2,dangerouslySetInnerHTML:{__html:t.sidebarTwo}})]})}var j=n(2962),y=n(5697),b=n.n(y),N=n(6486),S=n(6492),I=n.n(S),T=function(e){var t,n,r,s,a=e.seo,i=e.uri;if(!Object.keys(a).length)return null;var l,c,u,d,h=a||{},m=h.title,v=h.description,p=h.og_title,_=h.og_description,g=h.og_image,f=h.og_site_name,x=h.robots,w=I().decode(m||p||""),y=I().decode(v||_||""),b=I().decode(p||""),S=I().decode(_||""),T=(window.location.origin,"https://gagel.nl/"+i);return(0,o.jsx)(j.PB,{title:w,description:y,canonical:T,noindex:"noindex"===(null===x||void 0===x?void 0:x.index),nofollow:"nofollow"===(null===x||void 0===x?void 0:x.follow),robotsProps:{maxSnippet:parseInt(null!==(l=null===x||void 0===x||null===(t=x["max-snippet"])||void 0===t?void 0:t.replace("max-snippet:",""))&&void 0!==l?l:""),maxImagePreview:null!==(c=null===x||void 0===x||null===(n=x["max-image-preview"])||void 0===n?void 0:n.replace("max-image-preview:",""))&&void 0!==c?c:"",maxVideoPreview:parseInt(null!==(u=null===x||void 0===x||null===(r=x["max-video-preview"])||void 0===r?void 0:r.replace("max-video-preview:",""))&&void 0!==u?u:"")},openGraph:{type:"website",locale:"en_US",url:T,title:b,description:S,images:[{url:(0,N.isArray)(g)&&null!==(d=null===(s=g[0])||void 0===s?void 0:s.url)&&void 0!==d?d:"",width:1280,height:720}],site_name:I().decode(f||"")},twitter:{handle:"@Codeytek",site:"@Codeytek",cardType:"summary_large_image"}})};T.propTypes={seo:b().object},T.defaultProps={seo:{title:"",description:"",og_title:"",og_description:"",og_image:[],og_site_name:"",robots:{follow:"",index:""},article_modified_time:""}};var k=T,H=n(8301);n(2723);function C(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}var F=function(e){var t,n=e.children,r=e.headerFooter,i=e.seo,l=e.uri,c=r||{},u=c.header,d=c.footer,h=(null===i||void 0===i?void 0:i.schema)?(0,H.hQ)(JSON.stringify(i.schema)):null;return(0,o.jsx)(a.w,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)(k,{seo:i||{},uri:l||""}),(0,o.jsxs)(s(),{children:[(0,o.jsx)("link",{rel:"shortcut icon",href:null!==(t=null===u||void 0===u?void 0:u.favicon)&&void 0!==t?t:"/favicon.ico"}),h?(0,o.jsx)("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:(0,H.Nw)(h)}},"yoastSchema"):(0,o.jsx)("title",{children:C(null===u||void 0===u?void 0:u.siteTitle)}),(0,o.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0"})]}),(0,o.jsx)(m,{header:u}),(0,o.jsx)("main",{className:"container mx-auto py-4 min-h-50vh",children:n}),(0,o.jsx)(w,{footer:d})]})})}},6051:function(e,t,n){"use strict";n.d(t,{Xq:function(){return v},LL:function(){return f},GR:function(){return g},xN:function(){return x},xu:function(){return _}});var o=n(7568),r=n(6042),s=n(655),a=function(){try{var e="__test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}},i=function(e){if(!a())return console.warn("localStorage is not supported in this environment"),null;if(!function(e){return"string"===typeof e&&""!==e.trim()}(e))return console.warn("Invalid session format:",e),null;try{var t={value:e,timestamp:Date.now()};localStorage.setItem("x-wc-session",JSON.stringify(t))}catch(n){console.error("Error storing session:",n)}},l=function(){if(!a())return console.warn("localStorage is not supported in this environment"),null;try{var e=JSON.parse(localStorage.getItem("x-wc-session"));return!e||Date.now()-e.timestamp>36e5?(console.warn("Session expired or invalid"),localStorage.removeItem("x-wc-session"),null):e.value}catch(t){return console.error("Error retrieving session:",t),null}},c=(function(){var e=(0,o.Z)((function(){var e,t,n;return(0,s.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),(e=l())?(t={},[4,fetch("/wp-json/wc/v3/session/validate",(t.method="POST",t.headers={"Content-Type":"application/json","x-wc-session":e},t.credentials="include",t))]):(console.warn("No session to sync"),[2]);case 1:return[4,o.sent().json()];
1case 2:return o.sent().valid||(console.warn("Session is invalid, clearing local storage"),localStorage.removeItem("x-wc-session")),[3,4];case 3:return n=o.sent(),console.error("Error syncing session:",n),[3,4];case 4:return[2]}}))}))}(),n(6486)),u=function(){var e={headers:{"X-Headless-CMS":!0}},t=l();return(0,c.isEmpty)(t)||(e.headers["x-wc-session"]=t),e},d=n(9669),h=n.n(d),m=("".concat("https://cms.gagel.nl","/wp-json/rae/v1/header-footer?header_location_id=hcms-menu-header&footer_location_id=hcms-menu-footer"),"".concat("https://cms.gagel.nl","/wp-json/rae/v1/posts"),"".concat("https://cms.gagel.nl","/wp-json/wp/v2/posts"),"".concat("https://cms.gagel.nl","/wp-json/rae/v1/post"),"".concat("https://cms.gagel.nl","/wp-json/wp/v2/categories"),"".concat("https://cms.gagel.nl","/wp-json/wp/v2/pages"),"".concat("https://cms.gagel.nl","/wp-json/wp/v2/comments"),"".concat("https://cms.gagel.nl","/wp-json/rae/v1/cart/items/")),v=("".concat("https://cms.gagel.nl","/wp-json/rae/v1/wc/countries/"),"".concat("https://cms.gagel.nl","/wp-json/rae/v1/wc/states"),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,s=l(),a=u();r(!0),h().post(m,{product_id:e,quantity:t},a).then((function(e){var t;(0,c.isEmpty)(s)&&i(null===e||void 0===e||null===(t=e.headers)||void 0===t?void 0:t["x-wc-session"]);o(!0),r(!1),p(n)})).catch((function(e){console.log("err",e)}))}),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=u();h().get(m,n).then((function(n){var o,r=x(null!==(o=null===n||void 0===n?void 0:n.data)&&void 0!==o?o:[]);e(r),t(!1)})).catch((function(e){console.log("err",e),t(!1)}))},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,r=u();o(!0),h().put("".concat(m).concat(e),{quantity:t},r).then((function(e){p(n,o)})).catch((function(e){console.log("err",e),o(!1)}))},g=function(e,t,n){var o=u();n(!0),h().delete("".concat(m).concat(e),o).then((function(e){p(t,n)})).catch((function(e){console.log("err",e),n(!1)}))},f=function(){var e=(0,o.Z)((function(e,t){var n,o;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:t(!0),n=u(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,h().delete(m,n)];case 2:return r.sent(),p(e,t),[3,4];case 3:return o=r.sent(),console.log("err",o),t(!1),[3,4];case 4:return[2]}}
1))}));return function(t,n){return e.apply(this,arguments)}}(),x=function(e){if(!e.length)return null;var t=w(e||[]);return(0,r.Z)({cartItems:e||[]},t)},w=function(e){var t={totalQty:0,totalSubtotal:0,totalTax:0,totalPrice:0};return(0,c.isArray)(e)&&(null===e||void 0===e?void 0:e.length)?(e.forEach((function(e){var n,o,r;t.totalQty+=null!==(n=null===e||void 0===e?void 0:e.quantity)&&void 0!==n?n:0,t.totalSubtotal+=null!==(o=null===e||void 0===e?void 0:e.line_subtotal)&&void 0!==o?o:0,t.totalTax+=null!==(r=null===e||void 0===e?void 0:e.line_subtotal_tax)&&void 0!==r?r:0})),t.totalPrice=t.totalSubtotal+t.totalTax,t):t}},8301:function(e,t,n){"use strict";n.d(t,{Nw:function(){return s},hQ:function(){return a}});var o=n(7856),r=n.n(o),s=function(e){return r().sanitize(e)},a=function(e){return e&&"string"===typeof e?e.replaceAll("https://cms.gagel.nl","https://gagel.nl/").replaceAll("".concat("https://gagel.nl/","/wp-content/uploads"),"".concat("https://cms.gagel.nl","/wp-content/uploads")):""}},2834:function(e){e.exports={labelText:"Toggle_labelText__4pd2H",switch:"Toggle_switch__FSFYT",slider:"Toggle_slider__FcNaC"}},8249:function(e){e.exports={newsletter:"Newsletter_newsletter__u1HZH",title:"Newsletter_title__YK3ec",form:"Newsletter_form__L5fYj",input:"Newsletter_input__gAQ_F",button:"Newsletter_button__tt_O7",success:"Newsletter_success__yIP5M",error:"Newsletter_error__V0GmH"}},6201:function(e){e.exports={component:"Footer_component__4CQLQ",footerText:"Footer_footerText__0eSh_",footerText2:"Footer_footerText2___svuN",footerContent:"Footer_footerContent__xiJyY",lenteland:"Footer_lenteland__rFdMe",maskImg:"Footer_maskImg__uTubH"}},8514:function(e){e.exports={header:"Header_header__uDZjd",menuItems:"Header_menuItems__6hv4g",menuItem:"Header_menuItem__8Ba14",children:"Header_children__9unDW",label:"Header_label__vu0iY",imgMask:"Header_imgMask__B_Hli",child:"Header_child__a1_YU",arrow:"Header_arrow__8aqc1",show:"Header_show__JS8fD",isArchive:"Header_isArchive__Ucp8N",backButton:"Header_backButton__r_awO",showSubmenu:"Header_showSubmenu__5rTxm",active:"Header_active__JybjK",visible:"Header_visible__8lImW"}}}]);

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.