PageSourceSearch

https://asset.surveysparrow.com/website/prod-22895f0e523d031bd629b…/static/chunks/38218-4882b20e7d099864.js

js surveysparrow.com collected 2026-09-24 07:41:16 UTC 8,000 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dfe26d89-e237-4bd5-9306-9ce45ef7bb7b",e._sentryDebugIdIdentifier="sentry-dbid-dfe26d89-e237-4bd5-9306-9ce45ef7bb7b")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38218],{38218:(e,t,s)=>{s.d(t,{ThriveLeadForm:()=>S});var a=s(95155),l=s(83801),o=s(50353),r=s(35515),i=s(54956),n=s(97229),c=s(62220),m=s(72147),d=s(15373),u=s(66137),p=s(75857),x=s(20063),f=s(22544),h=s(13611),y=s(35068),b=s(95125),w=s(57699),g=s(12115),k=s(20765),j=s(494),v=s(11529),C=s(95501),N=s(79691),T=s(85203),B=s.n(T),I=s(560),A=s(92586);function S(e){let t,{modalComponent:s,buttonText:T="Get Started",reportSrc:S,leadSource:E="Thrive-360-Sample-Report",reportName:_,className:D="flex max-sm:flex-wrap",bottomText:R,isArrowIconVisible:q=!0,isSignup:z=!1,placeholder:P="Enter your email address",isDemo:F=!1,demoBtnClassName:O,btnClassName:U="",bottomTextClassName:L="xs:flex xs:flex-wrap xs:items-center xs:justify-center mt-4",btnLoadingText:W="",hasThriveHubspotIframe:Z=!1,siteType:$=w.uV.main,customStyles:Q=null,formErrorClassName:G="absolute text-xs !text-red-600 max-sm:left-1/2 max-sm:top-1/2 max-sm:-translate-x-1/2 max-sm:-translate-y-1/2 sm:mt-0.5",formWrapperClassName:V=""}=e,H=y.Ik().shape({email:y.Yj().email(I.P[$].emailErrorText).required(I.P[$].emailRequiredText),isCookieyesAccepted:y.zM().oneOf([!0],"Please accept the cookie usage policy").required("Please accept the cookie usage policy")}),[K,M]=(0,g.useState)(!1),[Y,J]=(0,g.useState)(""),[X,ee]=(0,g.useState)(""),[et,es]=(0,g.useState)(""),[ea,el]=(0,g.useState)(!1),[eo,er]=(0,g.useState)(!1),ei=(0,g.useRef)(null),en=(0,x.usePathname)();(0,k.R)("ipapi_data").length>1&&(t=(0,C.E)((0,k.R)("ipapi_data"),[]));let ec=Q||A.k,{register:em,handleSubmit:ed,setError:eu,setValue:ep,control:ex,trigger:ef,getValues:eh,formState:{errors:ey}}=(0,f.mN)({resolver:(0,h.t)(H)}),eb=async e=>{if(ea&&(null==e?void 0:e.isCookieyesAccepted)){var s;if("function"==typeof(null==(s=window)?void 0:s.performBannerAction))try{window.performBannerAction("accept_all")}catch(e){eu("isCookieyesAccepted",{type:"custom",message:"Something went wrong. Please try again later."})}}J(e.email);let a=e.email.replace(/.*@/,""),{isPersonal:l,isDisposable:o}=await (0,N.$)(a);(0,v.Tp)("personal_id",l),(0,v.Tp)("email_id",e.email);let r=S&&l;es(a),ee(e.email.split("@")[0]),o&&eu("email",{type:"custom",message:"Please enter a valid Email"}),r&&eu("email",{type:"custom",message:"Please type a business email"}),r||o?M(!1):M(!0);let i=(0,v.kl)(w.WZ),n=(0,v.kl)(w.si),c={email:e.email,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,isBusinessEmail:!l,preSignupUrl:"$from=".concat(en),ssUserId:(0,k.R)("ssUserId")||null,hubspotutk:(0,k.R)("hubspotutk")||""};if(i&&(c.ssTrackerLocation=i),n&&(c.ssTrackerReferrer=n),null==t?void 0:t[0]){let[e]=t;c.country=e}S&&(c.leadSource=E),b.A.post("https://iy1gyes43c.execute-api.us-east-1.amazonaws.com/thrive-surveysparrow-hubspot-sync",c).then(async()=>{if(S&&!l&&!o){let e=await b.A.get(S,{responseType:"blob"}),t=window.URL.createObjectURL(new Blob([e.data])),s=document.createElement("a");s.href=t,s.setAttribute("download","".concat("".concat(_||"report",".pdf"))),document.body.appendChild(s),s.click()}}).catch(()=>{eu("email",{type:"custom",message:"Something went wrong. Please try again later."})}).then(()=>{M(!1)})},ew=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;(null==e?void 0:e[1])===!0||(null==e?void 0:e[2])==="GB"||(null==e?void 0:e[2])==="CH"?el(!0):"string"==typeof(null==e?void 0:e[2])?(el(!1),ep("isCookieyesAccepted",!0)):el(!0)},eg=async()=>{ew((0,C.E)(await (0,j.K)(),[]))};(0,g.useEffect)(()=>{t?ew():eg()},[]);let ek=B()(F&&Z?"flex size-full max-h-full w-11/12 max-w-4xl flex-col items-center justify-center max-md:px-6 max-sm:w-full max-sm:rounded-none sm:max-h-[700px] sm:!rounded-3xl":"flex h-auto lg:w-auto w-11/12 flex-col items-center justify-center max-md:px-6 max-sm:size-full max-sm:rounded-none sm:!rounded-3xl",z&&"w-full max-w-lg max-md:!rounded-md !h-auto max-md:!p-0 max-sm:w-11/12 sm:!rounded-3xl"),ej=B()(F&&Z?"overflow-y-scroll ".concat(Z||"py-10"," "):"overflow-y-scroll",z&&"overflow-y-scroll py-10"),ev=async e=>{if(e.preventDefault(),await ef()){let t=eh("email");J(t),s?(es(t.replace(/.*@/,"")),ee(t.split("@")[0]),er(!0)):ed(eb)(e)}};return(0,a.jsxs)("div",{children:[(0,a.jsx)("form",{ref:ei,className:D,onSubmit:ev,method:"post",children:(0,a.jsxs)("div",{className:"relative w-full max-w-lg ".concat(V),children:[(0,a.jsxs)("div",{className:ec.formInputWrapper,children:[(0,a.jsx)(r.ZQ,{type:"email",placeholder:P,...em("email"),className:ec.formInput}),s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.$,{className:"".concat(ec.formBtn," ").concat(U),type:"button",onClick:e=>{e.preventDefault(),ei.current&&ei.current.requestSubmit()},children:[(0,a.jsx)("span",{className:ec.formBtnText,children:K?W:T}),q&&(0,a.jsx)(n.f,{className:"stroke-white stroke-2"})]}
1),(0,a.jsx)(i.aF,{open:eo,onOpenChange:er,children:(0,a.jsxs)(i.t9,{isOpen:eo,onClose:()=>er(!1),className:ek,overlayClassName:ej,disableOutsideClickClose:!0,children:[F&&(Z?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Oj,{className:"absolute right-2 top-2 z-50 sm:-top-7 sm:right-0","aria-label":"Close Button",children:(0,a.jsx)(d.I,{iconComponent:m.U,color:"#000",width:"23",height:"23"})}),(0,a.jsx)("iframe",{src:"https://meetings.hubspot.com/thrivesparrow/demo?embed=true&email=".concat(Y,"&firstname=").concat(X,"&lastName=").concat(X,"&company=").concat(et),"data-lf-yt-playback-inspected-lynor8xklqqawqjz":"true","data-lf-vimeo-playback-inspected-lynor8xklqqawqjz":"true",title:"Integration with Thrivesparrow",className:"size-full"})]}):(0,a.jsx)(u.U,{emailId:Y,siteType:$})),z&&(0,a.jsx)(p.W,{email:Y,siteType:$})]})})]}):(0,a.jsxs)(l.$,{className:"".concat(ec.formBtn," ").concat(U),type:"submit",children:[(0,a.jsx)("span",{className:ec.formBtnText,children:K?W:T}),q&&(0,a.jsx)(n.f,{className:"stroke-white stroke-2"})]})]}),ey.email&&(0,a.jsx)(r.jQ,{className:G,error:ey.email.message})]})}),ea&&(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"mt-2 flex items-center gap-x-2.5 max-md:justify-center sm:mt-5",children:(0,a.jsx)(f.xI,{name:"isCookieyesAccepted",control:ex,defaultValue:!1,render:e=>{let{field:{onChange:t,value:s}}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.y,{id:"isCookieyesAccepted",checked:s,onCheckedChange:t,name:"isCookieyesAccepted",className:"data-[state=checked]:border-primary data-[state=checked]:bg-primary -mt-px flex size-4 min-w-4 cursor-pointer items-center justify-center rounded-sm border border-slate-500/25 outline-none ".concat(ec.cookieyesCheckBoxClassName),children:(0,a.jsx)(o.P,{className:"size-full scale-75",children:(0,a.jsx)(c.N,{})})}),(0,a.jsx)(r.lR,{label:"Agree to the cookie usage policy to schedule your demo",htmlFor:"isCookieyesAccepted",className:ec.euCookieCheckBoxLabelClassname})]})}})}),ey.isCookieyesAccepted&&(0,a.jsx)(r.jQ,{className:ec.cookieErrorClassname,error:ey.isCookieyesAccepted.message})]}),(0,a.jsxs)("div",{className:L,children:[R,F&&(0,a.jsx)(u.B,{emailId:Y,buttonText:"Need a demo?",siteType:$,className:"".concat(O," transition-all duration-300 ease-in-out")})]})]})}},92586:(e,t,s)=>{s.d(t,{k:()=>a});let a={formInputWrapper:"flex items-center max-sm:flex-wrap max-sm:gap-y-5",formInput:"h-14 w-full rounded-[5px] border border-solid border-[#BDBDBD] p-4 text-lg focus-visible:outline-none max-sm:text-center sm:rounded-r-none sm:border-r-0",formBtn:"!bg-[#0D1B1E] hover:!bg-primary !px-0 h-14 !min-w-48 rounded-[5px] text-lg leading-[1.2] text-white transition max-xl:text-[13px] max-md:text-base max-sm:w-full sm:rounded-l-none",formBtnText:"text-lg font-semibold text-white"}}}]);

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.