PageSourceSearch

https://fieldcalc.app/_next/static/chunks/app/(marketing)/contact/page-9111e43a64b47db0.js

js fieldcalc.app collected 2026-10-02 00:26:17 UTC 13,645 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41],{17011:function(e,t,a){Promise.resolve().then(a.t.bind(a,65878,23)),Promise.resolve().then(a.bind(a,1810)),Promise.resolve().then(a.bind(a,5594)),Promise.resolve().then(a.bind(a,30822)),Promise.resolve().then(a.bind(a,84956)),Promise.resolve().then(a.bind(a,15439))},88443:function(e,t,a){"use strict";a.d(t,{G:function(){return c},default:function(){return d}});var n=a(57437),r=a(2265),l=a(40875),s=a(84956),i=a(58978),o=a(1592);function c(e){let{t}=(0,o.NT)();return e.map(e=>"questionKey"in e?{q:t(e.questionKey,e.vars),a:t(e.answerKey,e.vars)}:e)}function d(e){let{items:t,className:a,defaultOpenIndex:o=0}=e,[d,u]=(0,r.useState)(o),m=c(t);return 0===t.length?null:(0,n.jsx)("div",{className:(0,i.cn)("space-y-3",a),children:m.map((e,t)=>{let a=d===t,r="faq-panel-".concat(t),o="faq-trigger-".concat(t);return(0,n.jsx)(s.default,{delay:40*t,children:(0,n.jsxs)("div",{className:(0,i.cn)("overflow-hidden rounded-2xl border bg-lp-surface transition-colors duration-300",a?"border-lp-blue/[0.15] shadow-[0_18px_50px_rgba(69,110,254,0.10)]":"border-lp-line hover:border-lp-blue/25"),children:[(0,n.jsx)("h3",{className:"m-0",children:(0,n.jsxs)("button",{type:"button",id:o,"aria-expanded":a,"aria-controls":r,onClick:()=>u(a?null:t),"data-track-cat":"faq","data-track-label":"Toggle FAQ",className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left text-sm font-bold text-lp-ink hover:bg-lp-bg/60 sm:text-base",children:[e.q,(0,n.jsx)(l.Z,{className:(0,i.cn)("h-5 w-5 shrink-0 text-lp-blue transition-transform duration-300",a&&"rotate-180")})]})}),(0,n.jsx)("div",{id:r,role:"region","aria-labelledby":o,className:(0,i.cn)("grid transition-[grid-template-rows] duration-300 ease-out",a?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,n.jsx)("div",{className:"overflow-hidden",children:(0,n.jsx)("p",{className:"whitespace-pre-line border-t border-lp-line px-5 py-4 text-sm leading-relaxed text-lp-slate",children:e.a})})})]})},t)})})}},1810:function(e,t,a){"use strict";a.d(t,{default:function(){return m}});var n=a(57437),r=a(61552),l=a(52434),s=a(58978);function i(e){let{children:t,className:a,id:r}=e;return(0,n.jsx)("section",{id:r,className:(0,s.cn)("py-20 md:py-28",a),children:t})}var o=a(84956),c=a(65720),d=a(88443),u=a(1592);function m(e){let{items:t,heading:a,subheading:m,eyebrow:p,className:x}=e,{t:f}=(0,u.NT)(),h=(0,d.G)(t),b=null!=a?a:f("about.faqDefaults.heading"),g=null!=p?p:f("about.faqDefaults.eyebrow");if(0===t.length)return null;let v={"@context":"https://schema.org","@type":"FAQPage",mainEntity:h.map(e=>({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))};return(0,n.jsxs)(i,{className:(0,s.cn)("bg-lp-bg",x),children:[(0,n.jsx)(c.Z,{data:v}),(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(o.default,{className:"mx-auto mb-10 max-w-2xl text-center",children:[(0,n.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border-[1.5px] border-[#8EB2FF] bg-lp-surface px-3.5 py-1.5 shadow-sm",children:[(0,n.jsx)(r.Z,{className:"h-3.5 w-3.5 text-lp-blue",strokeWidth:2.4}),(0,n.jsx)("span",{className:"text-[13px] font-bold tracking-wide text-lp-blue",children:g})]}),(0,n.jsx)("h2",{className:"mt-4 font-heading text-h2 font-bold text-lp-ink text-balance",children:b}),m&&(0,n.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-lp-slate sm:text-base",children:m})]}),(0,n.jsx)(d.default,{items:t,className:"mx-auto max-w-3xl"})]})]})}},5594:function(e,t,a){"use strict";a.d(t,{default:function(){return _}});var n=a(57437),r=a(27648),l=a(2265),s=a(29501),i=a(13590),o=a(67119);o.Ry({email:o.Z_().email("Please enter a valid email address."),source:o.Z_().optional()}),o.Ry({name:o.Z_().min(2,"Please enter your full name.").max(120),email:o.Z_().email("Please enter a valid email address."),address:o.Z_().min(3,"Please enter your message.").max(300),website:o.Z_().max(0).optional().or(o.i0(""))});let c=o.Ry({lat:o.Rx().min(-90).max(90),lng:o.Rx().min(-180).max(180)}),d=o.Km(["distance","area","poi"]),u=o.Km(["Acre","Square Meter","Square Inch","Square Yard","Square Feet"]),m=o.Km(["Feet","Mile","Yard","Meter","Kilometer"]),p=o.Ry({id:o.Z_().min(1).max(100),name:o.Z_().trim().min(1,"Measurement name is required.").max(200),description:o.Z_().max(2e3).optional().default(""),type:d,points:o.IX(c).max(1e4),groupId:o.Z_().nullable().optional().default(null),areaUnit:u.catch("Square Meter"),distanceUnit:m.catch("Meter"),perimeterUnit:m.optional().default("Meter").catch("Meter"),color:o.Z_().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,"Invalid color."),photos:o.IX(o.G0([o.Z_().regex(/^data:image\/(jpeg|png|webp);base64,/,"Invalid photo.").max(4e6,"Photo is too large."),o.Z_().url()])).max(5,"You can attach up to 5 photos.").optional().default([]),syncVersion:o.Rx().int().min(0).optional().default(0),createdAt:o.Z_().max(64).optional(),icon:o.Z_().max(64).optional()});p.omit({id:!0}).partial();let x=o.Z_().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,"Invalid color.");o.Ry({id:o.Z_().min(1).max(100),name:o.Z_().trim().min(1,"Group name is required.").max(200),color:x,visible:o.O7().optional().default(!0),syncVersion:o.Rx().int().min(0).optional().default(0)}).omit({id:!0}).partial();let f=o.Ry({id:o.Z_().min(1).max(100),name:o.Z_().trim().min(1,"Group name is required.").max(200),color:x,visible:o.O7().optional().default(!0)});o.Ry({groups:o.IX(f).max(5e3).optional().default([]),measurements:o.IX(p).max(5e3).optional().default([]),deletedGroupIds:o.IX(o.Z_().min(1).max(100)).max(5e3).optional().default([]),deletedMeasurementIds:o.IX(o.Z_().min(1).max(100)).max(5e3).optional().default([])});var h=a(58978),b=a(15458),g=a(41671),v=a(44743),y=a(1592);let j="w-full rounded-lg border bg-lp-bg px-4 py-3.5 text-sm text-lp-ink placeholder:text-lp-slate/60 outline-none transition-all focus:bg-lp-surface focus:ring-2 focus:ring-lp-blue/25",w="border-lp-line focus:border-lp-blue",N="border-red-400 focus:border-red-400 focus:ring-red-200";function _(){var e,t,a;let{t:c}=(0,y.NT)(),[d,u]=(0,l.useState)(""),[m,p]=(0,l.useState)(!1),x=(0,l.useMemo)(()=>o.Ry({name:o.Z_().min(2,c("errors.validation.nameRequired")).max(120),email:o.Z_().email(c("errors.validation.emailInvalid")),address:o.Z_().min(3,c("errors.validation.messageRequired")).max(300),website:o.Z_().max(0).optional().or(o.i0(""))}),[c]),{register:f,handleSubmit:_,formState:{errors:k,isSubmitting:I}}=(0,s.cI)({resolver:(0,i.F)(x)});
1async function q(e){u("");let t=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await t.json();if(!t.ok){u(a.error||c("contact.form.genericError"));return}e.website||(0,b.u0)(),p(!0)}return m?(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4 rounded-2xl border border-lp-teal/30 bg-lp-teal/5 px-8 py-12 text-center",children:[(0,n.jsx)("span",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-lp-teal/15",children:(0,n.jsx)(g.Z,{className:"text-lp-teal",size:32})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-heading text-xl font-bold text-lp-ink",children:c("contact.form.successTitle")}),(0,n.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-lp-slate",children:c("contact.form.successBody")})]})]}):(0,n.jsxs)("form",{onSubmit:_(q),noValidate:!0,className:"space-y-5",children:[(0,n.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,n.jsx)(Z,{label:c("contact.form.nameLabel"),error:null===(e=k.name)||void 0===e?void 0:e.message,children:(0,n.jsx)("input",{...f("name"),type:"text",placeholder:c("contact.form.namePlaceholder"),autoComplete:"name",className:(0,h.cn)(j,k.name?N:w)})}),(0,n.jsx)(Z,{label:c("contact.form.emailLabel"),error:null===(t=k.email)||void 0===t?void 0:t.message,children:(0,n.jsx)("input",{...f("email"),type:"email",placeholder:c("contact.form.emailPlaceholder"),autoComplete:"email",className:(0,h.cn)(j,k.email?N:w)})})]}),(0,n.jsx)(Z,{label:c("contact.form.messageLabel"),error:null===(a=k.address)||void 0===a?void 0:a.message,children:(0,n.jsx)("textarea",{...f("address"),rows:4,placeholder:c("contact.form.messagePlaceholder"),autoComplete:"off",className:(0,h.cn)(j,"resize-none",k.address?N:w)})}),(0,n.jsx)("input",{...f("website"),type:"text",tabIndex:-1,className:"sr-only","aria-hidden":"true"}),d&&(0,n.jsx)("p",{className:"rounded-lg border border-red-200 bg-red-50 px-4 py-2.5 text-sm text-red-600",children:d}),(0,n.jsxs)("div",{className:"space-y-4 pt-1",children:[(0,n.jsxs)("p",{className:"whitespace-nowrap text-center text-[11px] tracking-tight text-lp-slate sm:text-xs sm:tracking-normal",children:[c("contact.form.consentLead")," ",(0,n.jsx)(r.default,{href:"/privacy",className:"whitespace-nowrap font-medium text-lp-blue hover:underline",children:c("contact.form.consentPrivacy")})," ",c("contact.form.consentAnd")," ",(0,n.jsx)(r.default,{href:"/terms",className:"whitespace-nowrap font-medium text-lp-blue hover:underline",children:c("contact.form.consentTerms")})]}),(0,n.jsx)("button",{type:"submit",disabled:I,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-lp-blue py-4 text-sm font-bold text-white shadow-[0_8px_20px_-6px_rgba(69,110,254,0.5)] transition-all hover:bg-lp-blue-600 active:scale-[.98] disabled:opacity-60",children:I?(0,n.jsxs)("span",{className:"flex items-center gap-2",children:[(0,n.jsxs)("svg",{className:"h-4 w-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.4 0 0 5.4 0 12h4z"})]}),c("contact.form.submitting")]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{size:15}),c("contact.form.submit")]})})]})]})}function Z(e){let{label:t,error:a,children:r}=e;return(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"block text-xs font-bold uppercase tracking-widest text-lp-slate",children:t}),r,a&&(0,n.jsx)("p",{className:"text-xs font-medium text-red-500",children:a})]})}},52434:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var n=a(57437),r=a(58978);function l(e){let{children:t,className:a,wide:l}=e;return(0,n.jsx)("div",{className:(0,r.cn)(l?"container-wide":"container-px",a),children:t})}},30822:function(e,t,a){"use strict";a.d(t,{HeroRevealGroup:function(){return o},HeroRevealItem:function(){return c}});var n=a(57437),r=a(52345),l=a(41041);let s={hidden:{},show:{transition:{staggerChildren:.12,delayChildren:.05}}},i={hidden:{opacity:0,y:18},show:{opacity:1,y:0,transition:{duration:.6,ease:[.16,1,.3,1]}}};function o(e){let{children:t,className:a}=e,i=(0,r.J)();return(0,n.jsx)(l.E.div,{className:a,variants:i?void 0:s,initial:i?void 0:"hidden",animate:i?void 0:"show",children:t})}function c(e){let{children:t,className:a}=e,s=(0,r.J)();return(0,n.jsx)(l.E.div,{className:a,variants:s?void 0:i,children:t})}},65720:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(57437);function r(e){let{data:t}=e;return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t,null,2)}})}},84956:function(e,t,a){"use strict";a.d(t,{default:function(){return s}});var n=a(57437),r=a(2265),l=a(58978);function s(e){let{children:t,className:a,delay:s=0}=e,i=(0,r.useRef)(null),[o,c]=(0,r.useState)("initial");return(0,r.useEffect)(()=>{let e=i.current;if(!e)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||e.getBoundingClientRect().top<window.innerHeight){c("shown");return}c("hidden");let t=new IntersectionObserver(e=>{let[a]=e;a.isIntersecting&&(c("shown"),t.disconnect())},{threshold:.1});return t.observe(e),()=>t.disconnect()},[]),(0,n.jsx)("div",{ref:i,className:(0,l.cn)("shown"===o&&"transition-all duration-700","hidden"===o?"opacity-0 translate-y-6":"opacity-100 translate-y-0",a),style:{transitionDelay:"".concat(s,"ms")},children:t})}},15439:function(e,t,a){"use strict";a.d(t,{default:function(){return l}});var n=a(57437),r=a(2265);function l(e){let{text:t,className:a,suffix:l,suffixClassName:s,speedMs:i=60,startDelayMs:o=0,pauseMs:c=2600}=e,[d,u]=(0,r.useState)(t);(0,r.useEffect)(()=>
1{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=!1,a=[],n=(e,t)=>{a.push(setTimeout(e,t))};return!function a(){u("");for(let a=1;a<=t.length;a++)n(()=>{e||u(t.slice(0,a))},o+a*i);n(()=>{e||a()},o+t.length*i+c)}(),()=>{e=!0,a.forEach(clearTimeout)}},[t,i,o,c]);let m=d===t;return(0,n.jsxs)("span",{className:a,children:[d,!m&&(0,n.jsx)("span",{className:"ml-0.5 inline-block h-[0.85em] w-[2px] animate-pulse bg-current align-middle"}),l&&m&&(0,n.jsx)("span",{className:s,children:l})]})}},58978:function(e,t,a){"use strict";var n;function r(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.flat().filter(e=>"string"==typeof e&&e.length>0).join(" ")}function l(e){let{source:t="website",medium:a="cta",campaign:n="download"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="ios"===e?"https://apps.apple.com/app/fieldpulse/id1238984272":"https://play.google.com/store/apps/details?id=com.voice.gps.navigation.map.location.route",l=r.includes("?")?"&":"?";return"".concat(r).concat(l,"utm_source=").concat(t,"&utm_medium=").concat(a,"&utm_campaign=").concat(n)}a.d(t,{cn:function(){return r},ff:function(){return s},vB:function(){return l}});let s=(null===(n=a(40257).env.NEXT_PUBLIC_MORE_APPS_URL)||void 0===n?void 0:n.trim())||""}},function(e){e.O(0,[6228,5878,1041,4096,1592,5458,2971,2117,1744],function(){return e(e.s=17011)}),_N_E=e.O()}]);

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.