PageSourceSearch

https://eatup-org.netlify.app/b2ad4684-992169ce7ff5a4d3a002.js

js eatup-org.netlify.app collected 2026-10-03 10:41:05 UTC 10,310 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkeatup=self.webpackChunkeatup||[]).push([[518],{6122:function(e,t,i){var o=i(8698),n=i.n(o),a=i(8416),r=i.n(a),l=i(7424),s=i.n(l),p=i(213),c=i(7294),m=i(1597),d=i(3021),u=i(4835),h=i(5965),g=i(5935),b=i(9564),y=i(5980),f=i(5868);function w(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function v(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?w(Object(i),!0).forEach((function(t){r()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var x={name:"1cmujwv",styles:"width:100vw;height:100vh;position:absolute;top:0px;right:0px;bottom:0px;left:0px;z-index:10;--tw-bg-opacity:1;background-color:rgba(24, 24, 24, var(--tw-bg-opacity));opacity:0.5;cursor:pointer"},k={name:"1cp1tdz",styles:"width:100%;max-height:90vh;position:relative;z-index:20;display:block;overflow-y:scroll"},S={name:"pkb649",styles:"grid-column:span 22 / span 22;grid-column-start:1;position:relative;@media (min-width: 1025px){grid-column:span 20 / span 20;grid-column-start:3;display:flex;}@media (min-width: 1440px){grid-column:span 18 / span 18;grid-column-start:4;}"},Z={name:"1isegpm",styles:"width:3rem;height:3rem;position:absolute;top:0px;right:0px;z-index:10"},C={name:"1dvcxr3",styles:"padding:1rem"};t.Z=function(e){var t=e.overlayActive,i=e.setOverlayActive,o=(0,m.useStaticQuery)("2055280703").sanityFormWorkplaces,n=o.textColor,a=o.backgroundColor,r=o.formTextColor,l=o.formBackgroundColor,s=o.header,c=o.subheader,u=o.resources,f=(0,d.useMediaQuery)().isDesktop;return(0,p.tZ)("div",{css:[(0,p.iv)("transition:0.5s ",g.R," opacity,0.5s ",g.R," transform;opacity:",t?"1":"0",";pointer-events:",t?"auto":"none",";transform:scale(",t?"1":"1.05",");",""),"width:100vw;height:100vh;position:fixed;top:0px;right:0px;bottom:0px;left:0px;z-index:40;display:flex;align-items:center;justify-content:center;",""]},(0,p.tZ)("div",{role:"presentation",css:x,onClick:function(){return i(!1)}}),(0,p.tZ)("div",{css:k},(0,p.tZ)(b.Z,null,(0,p.tZ)("div",{css:S},(0,p.tZ)("div",{css:Z},(0,p.tZ)("button",{css:C,type:"button",onClick:function(){i(!1)}},(0,p.tZ)(h.X1,{_css:[{width:"100%",height:"100%",position:"relative",display:"block"}],color:f?"orange-dark":"white"}))),(0,p.tZ)("div",{css:["width:100%;position:relative;display:block;padding-top:3rem;padding-bottom:3rem;padding-left:1rem;padding-right:1rem;@media (min-width: 1025px){width:50%;padding:3rem;}",(0,p.iv)("color:",(null==n?void 0:n.hex)||"white",";background-color:",(null==a?void 0:a.hex)||"black",";",""),"",""]},(0,p.tZ)(y.Fb,{font:"3"},s),(0,p.tZ)(y.Fb,{_css:[{marginTop:"2rem"}],font:"5"},c)),(0,p.tZ)(T,{data:{textColor:r,backgroundColor:l,file:u}})))))};var j={name:"1wd2ode",styles:"width:calc(50% - 0.5rem);@media screen and (max-width: 1024px){width:100%;}"},O={name:"1wd2ode",styles:"width:calc(50% - 0.5rem);@media screen and (max-width: 1024px){width:100%;}"},E={name:"mm7t16",styles:"width:100%;position:relative;display:block"},N={name:"w55l4h",styles:"width:0px;height:0px;position:absolute;opacity:0;pointer-events:none"},z={name:"w55l4h",styles:"width:0px;height:0px;position:absolute;opacity:0;pointer-events:none"},A={name:"1va2x4d",styles:"width:100%;position:relative;@media (min-width: 1025px){display:flex;align-items:center;justify-content:space-between;}"},I={name:"mm7t16",styles:"width:100%;position:relative;display:block"},U={name:"160986",styles:"position:relative;display:flex;align-items:flex-start;margin-top:4rem;margin-bottom:1.5rem;@media (min-width: 1025px){align-items:center;margin-top:6rem;margin-bottom:0.5rem;}"},F={name:"312clf",styles:"width:1rem;height:1rem;position:relative;margin-top:0.25rem;margin-right:0.75rem;display:block;border-width:1px;@media (min-width: 1025px){margin-top:0px;}"},T=function(e){var t,i=e.data,o=i.textColor,a=i.backgroundColor,l=i.file,m=(0,
1c.useRef)(),d=(0,c.useRef)(),h=(0,c.useState)({"first-name":"","last-name":"",email:"",company:""}),g=s()(h,2),b=g[0],w=g[1],x=(0,c.useState)(!1),k=s()(x,2),S=k[0],Z=k[1],C=(0,c.useState)(!1),T=s()(C,2),P=T[0],D=T[1],R=(0,c.useState)(!1),H=s()(R,2),B=H[0],M=H[1],_=(0,c.useState)(!1),Y=s()(_,2),q=Y[0],Q=Y[1],J=(0,c.useState)(!1),L=s()(J,2),W=L[0],X=L[1],G="\n      background: transparent;\n  \n      ::-webkit-input-placeholder {\n        color: ".concat((null==o?void 0:o.hex)||"black",";\n        opacity: 0.5;\n      }\n      ::-moz-placeholder {\n        color: ").concat((null==o?void 0:o.hex)||"black",";\n        opacity: 0.5;\n      }\n      :-ms-input-placeholder {\n        color: ").concat((null==o?void 0:o.hex)||"black",";\n        opacity: 0.5;\n      }\n      :-moz-placeholder {\n        color: ").concat((null==o?void 0:o.hex)||"black",";\n        opacity: 0.5;\n      }\n    ");(0,c.useEffect)((function(){S&&(b["first-name"]&&""!==b["first-name"]&&b["last-name"]&&""!==b["last-name"]&&b.email&&(0,f.oH)(b.email)?X(!0):X(!1))}),[b]);var K=function(e){Z(!0),w(v(v({},b),{},r()({},e.target.name,e.target.value)))};return(0,p.tZ)("div",{css:["width:100%;position:relative;display:block;padding-top:3rem;padding-bottom:3rem;padding-left:1rem;padding-right:1rem;@media (min-width: 1025px){width:50%;padding:3rem;}",(0,p.iv)("color:",(null==o?void 0:o.hex)||"black",";background-color:",(null==a?void 0:a.hex)||"white",";",""),"",""]},(0,p.tZ)("form",{css:E,onSubmit:function(e){if(e.preventDefault(),"undefined"!==("undefined"==typeof window?"undefined":n()(window))&&window.location.href.includes("localhost:8000"))return M(!0),setTimeout((function(){M(!1),Q(!0),D(!1),w({"first-name":"","last-name":"",email:"",company:""}),null!=d&&d.current&&d.current.click()}),3e3),!1;if(!W||B||q)return!1;if(M(!0),null!=b&&b.email&&(0,f.oH)(b.email)){var t={email:b.email,newsletter:P,workplace:!0};fetch("api/mailchimp",{body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"}),method:"PUT"}).then((function(){D(!1),(0,f.IS)("Mailchimp complete")})).catch((function(e){(0,f.NP)(e)}))}return null!=d&&d.current&&d.current.click(),!1}},(0,p.tZ)("input",{ref:m,css:N,type:"submit",hidden:!0}),(0,p.tZ)("a",{ref:d,css:z,"aria-hidden":"true",href:null==l||null===(t=l.asset)||void 0===t?void 0:t.url,download:!0,target:"_blank"}),(0,p.tZ)(y.uT,{_css:[{marginBottom:"1.5rem"}],font:"3"},"Your Details:"),(0,p.tZ)("div",{css:A},(0,p.tZ)("label",{htmlFor:"first-name",css:[O,"position:relative;display:block;",""]},(0,p.tZ)("input",{name:"first-name",css:[(0,p.iv)(G,";",""),'width:100%;position:relative;display:block;margin-bottom:1.5rem;padding:0.25rem;--tw-border-opacity:1;border-color:rgba(255, 146, 62, var(--tw-border-opacity));border-bottom-width:1px;font-family:AT Surt, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-size:18px;line-height:24.3px;letter-spacing:0.01em;@media (min-width: 1025px){font-size:20px;line-height:28px;letter-spacing:0.01em;}',""],placeholder:"Your First Name*",required:!0,type:"text",value:b["first-name"],onChange:K})),(0,p.tZ)("label",{htmlFor:"last-name",css:[j,"position:relative;display:block;",""]},(0,p.tZ)("input",{name:"last-name",css:[(0,p.iv)(G,";",""),'width:100%;position:relative;display:block;margin-bottom:1.5rem;padding:0.25rem;--tw-border-opacity:1;border-color:rgba(255, 146, 62, var(--tw-border-opacity));border-bottom-width:1px;font-family:AT Surt, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-size:18px;line-height:24.3px;letter-spacing:0.01em;@media (min-width: 1025px){font-size:20px;line-height:28px;letter-spacing:0.01em;}',""],placeholder:"Your Last Name*",required:!0,type:"text",value:b["last-name"],onChange:K}))),(0,p.tZ)("label",{htmlFor:"email",css:[(0,p.iv)("",""),"width:100%;position:relative;display:block;",""]},(0,p.tZ)("input",{name:"email",css:[(0,p.iv)(G,";",""),'width:100%;position:relative;display:block;margin-bottom:1.5rem;padding:0.25rem;--tw-border-opacity:1;border-color:rgba(255, 146, 62, var(--tw-border-opacity));border-bottom-width:1px;font-family:AT Surt, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-size:18px;line-height:24.3px;letter-spacing:0.01em;@media (min-width: 1025px){font-size:20px;line-height:28px;letter-spacing:0.01em;}',""],placeholder:"Your Email*",required:!0,type:"email",value:b.email,onChange:K})),(0,p.tZ)("label",{htmlFor:"company",css:I},(0,p.tZ)("input",{name:"company",css:[(0,p.iv)(G,";",""),'width:100%;position:relative;display:block;margin-bottom:1.5rem;padding:0.25rem;--tw-border-opacity:1;border-color:rgba(255, 146, 62, var(--tw-border-opacity));border-bottom-width:1px;font-family:AT Surt, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-size:18px;line-height:24.3px;letter-spacing:0.01em;@media (min-width: 1025px){font-size:20px;line-height:28px;letter-spacing:0.01em;}',""],placeholder:"Company",type:"text",value:b.company,onChange:K})),(0,p.tZ)("div",{css:U},(0,p.tZ)("input",{css:F,type:"checkbox",checked:P,onChange:function(e){D(e.currentTarget.checked)}}),(0,p.tZ)(y.uT,{font:"2"}
1,"I agree to receiving a newsletter from Eat Up")),(0,p.tZ)(u.Z,{_css:[{width:"100%","@media (min-width: 1025px)":{width:"auto"}},B&&{backgroundColor:"rgba(0, 0, 0, 0) !important","--tw-text-opacity":"1",color:"rgba(255, 146, 62, var(--tw-text-opacity)) !important",opacity:"0.5"}],color:"orange-dark",text:"Download",onClick:function(){null!=m&&m.current&&m.current.click()},disabled:B})))}}}]);
2//# sourceMappingURL=b2ad4684-992169ce7ff5a4d3a002.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.