PageSourceSearch

https://departmentofproduct.com/_next/static/immutable/chunks/1m48hy7jxl3d3.js

js departmentofproduct.com collected 2026-10-03 22:04:05 UTC 4,812 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94161,e=>{e.v({errorMsg:"ContactForm-module__1SvrgG__errorMsg",field:"ContactForm-module__1SvrgG__field",fieldError:"ContactForm-module__1SvrgG__fieldError",fieldMsg:"ContactForm-module__1SvrgG__fieldMsg",form:"ContactForm-module__1SvrgG__form",input:"ContactForm-module__1SvrgG__input",label:"ContactForm-module__1SvrgG__label",row:"ContactForm-module__1SvrgG__row",select:"ContactForm-module__1SvrgG__select",submit:"ContactForm-module__1SvrgG__submit",success:"ContactForm-module__1SvrgG__success",successHeadline:"ContactForm-module__1SvrgG__successHeadline",textarea:"ContactForm-module__1SvrgG__textarea"})},33128,e=>{"use strict";var a=e.i(43476),l=e.i(71645),s=e.i(80152),t=e.i(59966),n=e.i(94161);let r={name:"",company:"",email:"",service:"",message:""},o=["The product intelligence platform","Newsletter sponsorship","Something else"];e.s(["default",0,function(){let[e,c]=(0,l.useState)(r),[i,m]=(0,l.useState)("idle"),[d,u]=(0,l.useState)({}),{post:f,honeypotProps:p}=(0,t.useFormPost)("contact");function h(e){return a=>c(l=>({...l,[e]:a.target.value}))}function _(e){return()=>u(a=>({...a,[e]:!0}))}function g(a){return d[a]&&!e[a]?n.default.fieldError:""}async function v(a){if(a.preventDefault(),u({name:!0,company:!0,email:!0,service:!0,message:!0}),!Object.keys(e).some(a=>!e[a])){m("sending");try{await f(e),m("sent"),(0,s.track)("form_contact"),c(r)}catch{m("error")}}}return"sent"===i?(0,a.jsx)("div",{className:n.default.success,children:(0,a.jsx)("p",{className:n.default.successHeadline,children:"Thanks! We'll be in touch."})}):(0,a.jsxs)("form",{className:n.default.form,onSubmit:v,children:[(0,a.jsx)("input",{...p,className:"hpField"}),(0,a.jsxs)("div",{className:n.default.row,children:[(0,a.jsxs)("div",{className:n.default.field,children:[(0,a.jsx)("label",{className:n.default.label,children:"Your name"}),(0,a.jsx)("input",{className:`${n.default.input} ${g("name")}`,type:"text",value:e.name,onChange:h("name"),onBlur:_("name"),placeholder:"Jane Smith"}),d.name&&!e.name&&(0,a.jsx)("span",{className:n.default.fieldMsg,children:"Please enter your name"})]}),(0,a.jsxs)("div",{className:n.default.field,children:[(0,a.jsx)("label",{className:n.default.label,children:"Company"}),(0,a.jsx)("input",{className:`${n.default.input} ${g("company")}`,type:"text",value:e.company,onChange:h("company"),onBlur:_("company"),placeholder:"Acme Inc."}),d.company&&!e.company&&(0,a.jsx)("span",{className:n.default.fieldMsg,children:"Please enter your company"})]})]}),(0,a.jsxs)("div",{className:n.default.field,children:[(0,a.jsx)("label",{className:n.default.label,children:"Email"}),(0,a.jsx)("input",{className:`${n.default.input} ${g("email")}`,type:"email",value:e.email,onChange:h("email"),onBlur:_("email"),placeholder:"[email protected]"}),d.email&&!e.email&&(0,a.jsx)("span",{className:n.default.fieldMsg,children:"Please enter your email"})]}),(0,a.jsxs)("div",{className:n.default.field,children:[(0,a.jsx)("label",{className:n.default.label,children:"How can we help?"}),(0,a.jsxs)("select",{className:`${n.default.select} ${g("service")}`,value:e.service,onChange:h("service"),onBlur:_("service"),children:[(0,a.jsx)("option",{value:"",children:"Select an option…"}),o.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]}),d.service&&!e.service&&(0,a.jsx)("span",{className:n.default.fieldMsg,children:"Please select an option"})]}),(0,a.jsxs)("div",{className:n.default.field,children:[(0,a.jsx)("label",{className:n.default.label,children:"Tell us more"}),(0,a.jsx)("textarea",{className:`${n.default.textarea} ${g("message")}`,value:e.message,onChange:h("message"),onBlur:_("message"),placeholder:"What are you working on and what outcome are you looking for?",rows:5}),d.message&&!e.message&&(0,a.jsx)("span",{className:n.default.fieldMsg,children:"Please tell us a bit more"})]}),"error"===i&&(0,a.jsx)("p",{className:n.default.errorMsg,children:"Something went wrong — please email [email protected] directly."}),(0,a.jsx)("button",{className:n.default.submit,type:"submit",disabled:"sending"===i,children:"sending"===i?"Sending…":"Send message →"})]})}])},59966,e=>{"use strict";var a=e.i(71645);let l="company_website";e.s(["useFormPost",0,function(e){let s=(0,a.useRef)(Date.now()),[t,n]=(0,a.useState)("");async function r(a){let n=await fetch(`/api/forms/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,[l]:t,rendered_at:s.current})});if(!n.ok)throw Error(`Form ${e} failed: ${n.status}`);return n}return(0,a.useEffect)(()=>{s.current=Date.now()},[]),{post:r,honeypotProps:{type:"text",name:l,value:t,onChange:e=>n(e.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":!0}}}],59966)}]);

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.