https://www.fadiorhome.com/_next/static/chunks/08ky05qlv2yu4.js?dpl=dpl_7F7YVFgAimMmTP82cfwntsadNwJr
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,367610,e=>{"use strict";function t(){if("u">typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Uint8Array(16);if("u">typeof crypto&&"function"==typeof crypto.getRandomValues)crypto.getRandomValues(e);else for(let t=0;t<e.length;t+=1)e[t]=Math.floor(256*Math.random());e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=Array.from(e,e=>e.toString(16).padStart(2,"0"));return[t.slice(0,4).join(""),t.slice(4,6).join(""),t.slice(6,8).join(""),t.slice(8,10).join(""),t.slice(10,16).join("")].join("-")}e.s(["resolveInquiryRequestReference",0,function(e,r,n=t){let i=JSON.stringify(function e(t){return Array.isArray(t)?t.map(e):t&&"object"==typeof t?Object.fromEntries(Object.entries(t).sort(([e],[t])=>e.localeCompare(t)).map(([t,r])=>[t,e(r)])):t}(Object.fromEntries(Object.entries(r).filter(([e])=>"requestId"!==e&&"eventId"!==e))));return e?.fingerprint===i?e:{fingerprint:i,requestId:n(),eventId:n()}}])},772872,e=>{"use strict";function t(e){let t;if("u"<typeof document||"string"!=typeof document.cookie)return;let r=`${e}=`;for(let e of document.cookie.split("; ")){if(!e.startsWith(r))continue;let n=e.slice(r.length);n&&(t=n)}if(t)try{return decodeURIComponent(t)}catch{return t}}e.s(["getFbc",0,function(e){let r=t("_fbc");return r||(e?`fb.1.${Date.now()}.${e}`:void 0)},"getFbp",0,function(){return t("_fbp")}])},209576,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(948148),i=e.i(283071),o=e.i(558249),a=e.i(593246),s=e.i(865012),c=e.i(619138),l=e.i(822668),d=e.i(367610),m=e.i(772872),u=e.i(745463),p=e.i(696354),h=e.i(860142),f=e.i(68428);let b=["Kitchen","Wardrobe","Bath and vanity","Living room","Finished furniture","Whole-home","Showroom visit","Trade inquiry"];function g(e){return e?b.find(t=>t.toLowerCase()===e.toLowerCase())??b[0]:b[0]}e.s(["MiniCTAForm",0,function({productName:e,seriesName:x,defaultProjectType:y,className:v,heading:j,headingLevel:w="h3",eyebrow:k,description:T}){let _=(0,n.useTranslations)("form"),N=(0,r.useRef)(!1),C=(0,r.useRef)(!1),E=(0,r.useRef)(null),R=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=()=>{N.current&&!C.current&&(0,o.trackEvent)(a.AnalyticsEvent.FORM_ABANDON,{form_type:"mini_cta",source_page:window.location.pathname})},t=()=>{"hidden"===document.visibilityState&&e()};return document.addEventListener("visibilitychange",t),window.addEventListener("beforeunload",e),()=>{document.removeEventListener("visibilitychange",t),window.removeEventListener("beforeunload",e)}},[]);let[A,S]=(0,r.useState)({name:"",email:"",phone:"",projectType:g(y),notes:""}),[q,O]=(0,r.useState)({}),[L,F]=(0,r.useState)("idle"),[I,M]=(0,r.useState)(""),U=e=>{let{name:t,value:r}=e.target;S(e=>({...e,[t]:r})),("name"===t||"email"===t||"phone"===t)&&O(e=>{if(!e[t])return e;let r={...e};return delete r[t],r})},$=async t=>{t.preventDefault();let r={};if(A.name.trim()||(r.name=_("errors.nameRequired")),A.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(A.email.trim())||(r.email=_("errors.emailInvalid")):r.email=_("errors.emailRequired"),A.phone.trim()||(r.phone=_("errors.phoneRequired")),Object.keys(r).length>0)return void O(r);F("submitting"),O({}),M("");let n=[`Product: ${e}`,x?`Series: ${x}`:null,`Project type: ${A.projectType}`,"",A.notes.trim()?`Message: 2${A.notes.trim()}`:"Message:\nNo additional notes provided."].filter(Boolean).join("\n");try{let t=window.location.href,r=`${window.location.pathname}${window.location.search}`,i=new URLSearchParams(window.location.search),b=(0,s.getFirstTouch)(),g=(0,s.getLastTouch)(),y=i?.get("fbclid")??null,v=(0,m.getFbp)(),j=(0,m.getFbc)(y),w=(0,f.getTtclid)(),k=(0,f.getTtp)(),T=(0,l.resolveGoogleAdTouch)(i,g,b),{gclid:N,gadCampaignId:S,gadSource:q,gbraid:O,wbraid:L}=T,I=i?.get("fbclid")||g?.fbclid||b?.fbclid||void 0,U=(0,l.hasGoogleAdTouch)(T),$=i?.get("utm_source")??void 0,B=i?.get("utm_medium")??void 0,D=i?.get("utm_campaign")??void 0,P={name:A.name.trim(),email:A.email.trim(),phone:A.phone.trim(),projectType:A.projectType,message:n,intent:"product",interest:e,sourcePage:t,sourcePath:r,sourceProduct:e,sourceSeries:x,utmSource:$??(U?"google":void 0),utmMedium:B??(U?"cpc":void 0),utmCampaign:D??S,utmTerm:i?.get("utm_term")??void 0,utmContent:i?.get("utm_content")??void 0,gclid:N,fbclid:I,gadCampaignId:S,gadSource:q,gbraid:O,wbraid:L,googleAdTouchTimestamp:T.timestamp,firstTouchSource:b?.source??void 0,firstTouchMedium:b?.medium??void 0,firstTouchCampaign:b?.campaign??void 0,firstTouchLandingPage:b?.landing_page??void 0,firstTouchTimestamp:b?.t
2imestamp??void 0,lastTouchSource:g?.source??void 0,lastTouchMedium:g?.medium??void 0,lastTouchCampaign:g?.campaign??void 0,visitEvidence:(0,c.getInquiryVisitEvidence)(),fbp:v,fbc:j,ttclid:w,ttp:k},G=(0,d.resolveInquiryRequestReference)(E.current,P);E.current=G;let{requestId:V,eventId:W}=G,K=await fetch("/api/inquiry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...P,requestId:V,eventId:W,honeypot:R.current?.value??""})}),J=await K.json();if(K.ok&&J.success){let t;if(F("success"),M(J.message??_("miniCta.successMessage")),C.current=!0,!0!==J.conversionEligible)return;try{t=await (0,u.buildGa4UserData)({email:A.email,phone:A.phone,name:A.name})}catch{t=void 0}let r={form_type:"mini_cta",source_page:window.location.pathname,source_product:e??void 0,source_series:x??void 0,project_type:A.projectType||void 0,first_touch_source:b?.source??void 0,first_touch_medium:b?.medium??void 0};(0,o.trackEvent)(a.AnalyticsEvent.GENERATE_LEAD,r,t?{eventId:W,userData:t}:{eventId:W});try{(0,p.identifyTiktokUser)({email:A.email.trim()||void 0,phone_number:A.phone.trim()||void 0,external_id:A.email.trim()||void 0}),(0,p.trackTiktokEvent)("Lead",{content_id:e??"mini-cta-form",content_name:e??"Mini CTA Inquiry",content_type:"lead_form",content_category:"product",currency:"USD"},{event_id:W}),(0,p.trackTiktokEvent)("SubmitForm",{content_id:e??"mini-cta-form",content_name:e??"Mini CTA Inquiry"},{event_id:W})}catch{}(0,h.trackLead)("Inquiry Form"),(0,o.identifyUserType)("Trade inquiry"===A.projectType?"dealer":"homeowner")}else F("error"),M(J.error??_("errors.serverGeneric")),(0,o.trackEvent)(a.AnalyticsEvent.FORM_ERROR,{form_type:"mini_cta",error_message:J?.error||"Unknown error"})}catch{F("error"),M(_("errors.networkError")),(0,o.trackEvent)(a.AnalyticsEvent.FORM_ERROR,{form_type:"mini_cta",error_message:"Network error"})}};return"success"===L?(0,t.jsxs)("div",{className:["rounded-[2rem] border border-brand-line bg-brand-paper p-8 sm:p-12",v].filter(Boolean).join(" "),children:[(0,t.jsx)("p",{className:"text-[0.62rem] uppercase tracking-[0.28em] text-brand-copper",children:_("miniCta.successLabel")}),(0,t.jsx)(w,{className:"mt-4 font-serif text-[1.75rem] font-light leading-[1.08] tracking-[-0.012em] text-brand-ink sm:text-[2.25rem]",children:_("miniCta.successTitle")}),(0,t.jsx)("p",{className:"mt-4 max-w-xl text-base leading-7 text-brand-ink-soft",children:I}),(0,t.jsx)("button",{type:"button",onClick:()=>{E.current=null,F("idle"),S({name:"",email:"",phone:"",projectType:g(y),notes:""}),M("")},className:"mt-8 rounded-full border border-brand-line px-5 py-2 text-sm font-medium text-brand-ink transition-colors hover:border-brand-copper hover:text-brand-copper",children:_("miniCta.sendAnother")})]}):(0,t.jsxs)("form",{className:["rounded-[2rem] border border-brand-line bg-brand-paper p-6 shadow-[0_20px_60px_var(--color-brand-shadow)] sm:p-8",v].filter(Boolean).join(" "),onSubmit:$,children:[(0,t.jsxs)("div",{className:"hidden","aria-hidden":"true",children:[(0,t.jsx)("label",{htmlFor:"mini-cta-website",children:"Website"}),(0,t.jsx)("input",{ref:R,id:"mini-cta-website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",defaultValue:""})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-[0.62rem] uppercase tracking-[0.28em] text-brand-copper",children:k??_("miniCta.eyebrow")}),(0,t.jsx)(w,{className:"font-serif text-[1.75rem] font-light leading-[1.08] tracking-[-0.012em] text-brand-ink",children:j??_("miniCta.heading")}),(0,t.jsx)("p",{className:"max-w-2xl text-sm leading-7 text-brand-ink-soft",children:T??_("miniCta.description")})]}),(0,t.jsxs)("div",{className:"mt-6 grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[0.62rem] uppercase tracking-[0.22em] text-brand-ink-soft",children:_("fields.name")}),(0,t.jsx)("input",{name:"name",value:A.name,onChange:U,onFocus:()=>{N.current||(N.current=!0,(0,o.trackEvent)(a.AnalyticsEvent.FORM_START,{form_type:"mini_cta",source_page:window.location.pathname}))},type:"text",placeholder:_("placeholders.name"),className:"w-full rounded-2xl border border-brand-line bg-white/80 px-4 py-3 text-sm text-brand-ink outline-none transition placeholder:text-brand-ink-soft focus:border-brand-copper focus:ring-1 focus:ring-brand-copper"}),q.name?(0,t.jsx)("p",{className:"text-xs leading-5 text-red-700",children:q.name}):null]}),(0,t.jsxs)("label",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[0.62rem] uppercase tracking-[0.22em] text-brand-ink-soft",children:_("fields.email")}),(0,t.jsx)("input",{name:"email",value:A.email,onChange:U,type:"email",placeholder:_("placeholders.email"),className:"w-full rounded-2xl border border-brand-line bg-white/80 px-4 py-3 text-sm text-brand-ink outline-none transition placeholder:text-brand-ink-soft focus:border-brand-copper focus:ring-1 focus:ring-brand-copper"}),q.email?(0,t.jsx)("p",{className:"text-xs leading-5 text-red-700",children:q.email}):null]})]}),(0,t.jsxs)("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[0.62rem] uppercase tracking-[0.22em] text-brand-ink-soft",children:_("fields.phone")}),(0,t.jsx)("input",{name:"phone",value:A.phone,onChange:U,type:"tel",placeholder:_("placeholders.phone"),required:!0,className:"w-full rounded-2xl border border-brand-line bg-white/80 px-4 py-3 text-sm text-brand-ink outline-none transition placeholder:text-brand-ink-soft focus:border-brand-copper focus:ring-1 focus:ring-brand-copper"}),q.phone?(0,t.jsx)("p",{className:"text-xs leading-5 text-red-700",children:q.phone}):null]}),(0,t.jsxs)("label",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[0.62rem] uppercase tracking-[0.22em] text-brand-ink-soft",children:_("fields.projectType")}),(0,t.jsx)("select",{name:"projectType",value:A.projectType,onCh
2ange:U,className:"w-full rounded-2xl border border-brand-line bg-white/80 px-4 py-3 text-sm text-brand-ink outline-none transition focus:border-brand-copper focus:ring-1 focus:ring-brand-copper",children:b.map(e=>(0,t.jsx)("option",{value:e,children:_(`projectTypeLabels.${e}`)},e))})]})]}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsxs)("label",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-[0.62rem] uppercase tracking-[0.22em] text-brand-ink-soft",children:_("fields.notes")}),(0,t.jsx)("textarea",{name:"notes",value:A.notes,onChange:U,rows:4,placeholder:_("placeholders.miniCtaNotes"),className:"min-h-[7.5rem] w-full rounded-2xl border border-brand-line bg-white/80 px-4 py-3 text-sm text-brand-ink outline-none transition placeholder:text-brand-ink-soft focus:border-brand-copper focus:ring-1 focus:ring-brand-copper"})]})}),(0,t.jsxs)("div",{className:"mt-6 grid gap-4 sm:grid-cols-[auto_minmax(0,1fr)] sm:items-center sm:gap-6",children:[(0,t.jsx)(i.CTAButton,{type:"submit",variant:"primary",size:"lg",className:"w-full sm:w-auto",disabled:"submitting"===L,children:"submitting"===L?_("submitting"):_("miniCta.submit")}),(0,t.jsx)("p",{className:"max-w-2xl text-sm leading-7 text-brand-ink-soft sm:pt-0.5",children:"error"===L?I:_("miniCta.idleNote")})]})]})}])}]);
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.