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]="1aa2d751-d220-4582-93ce-a23e3b81cdce",e._sentryDebugIdIdentifier="sentry-dbid-1aa2d751-d220-4582-93ce-a23e3b81cdce")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3113],{73113:function(e,t,a){a.r(t);var n=a(35944),l=a(67294),r=a(11163),o=a(47055),i=a(7490),c=a(78461),d=a(90327),u=a(99770),s=a(29061),h=a(53460),g=a(4289),p=a(61456),f=a(11178),y=a(49302),m=a(58666),v=a(60044),_=a(92975);t.default=()=>{let e=(0,r.useRouter)(),t=e.query.qz||c.aO,{data:a}=(0,u.Ym)(t),b=null==a?void 0:a.leadsPdf,[w,q]=(0,l.useState)(!1),[E,S]=(0,l.useState)(null),Z=(0,h.h)(),{currencyLocale:L,setAnswer:k,setUser:D,setCode:T}=(0,i.LM)(),{navigateWithSearchParams:j}=(0,d.H)(e);if(!b||!(0,c.yf)(t))return null;let I=async e=>{S(null),q(!0);let a=e.email.toLowerCase();try{let e=(await s.default.post((0,c.j2)(),{email:a,funnel:t,quiz_answers:{...Z,locale:L},url:"".concat(location.pathname).concat(location.search),language:(0,y.VF)(t)},{headers:{"Content-Type":"application/json"}})).data.data.code;D({email:a}),k("email",a),T(e),Object.keys(Z).length>0&&Object.entries(Z).forEach(e=>{let[t,a]=e;k(t,a)}),(0,_.g_)(),j(c.LL,{code:e})}catch(e){var n,l,r,o;console.error("Leads PDF email submission error:",e),S(null!==(o=null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(l=r.data)||void 0===l?void 0:null===(n=l.errors)||void 0===n?void 0:n.email)&&void 0!==o?o:""),q(!1)}};return(0,n.BX)(n.HY,{children:[(0,n.tZ)(m.Z,{title:b.title,description:b.subtitle,path:"/leads",noindex:!0}),(0,n.tZ)(o.Z,{pageTitle:b.title,pageDescription:b.subtitle,children:(0,n.tZ)(g.dF$,{theme:p.rS,hasDarkText:p.me,logo:(0,n.tZ)(f.Z,{}),content:b,cover:(0,n.tZ)(v.Z,{src:b.cover,alt:""}),onSubmit:I,loading:w,error:E})})]})}},90327:function(e,t,a){a.d(t,{H:function(){return n}});let n=e=>{let t=e=>{let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[a,n]=e;Array.isArray(n)?n.forEach(e=>t.append(a,e)):void 0!==n&&t.append(a,n)}),t},a=(a,n)=>{let l=t(n);if("/start/success"===a){let e=l.toString(),t=e?"".concat(a,"?").concat(e):a;window.location.assign(t);return}e.push({pathname:a,query:l.toString()},void 0,{shallow:!0,scroll:!0})};return{navigateWithSearchParams:(t,n)=>{let l={...e.query};(null==n?void 0:n.code)&&delete l.steps,a(t,{...l,...n})},navigateWithoutSParam:(t,a)=>{let n={...e.query};delete n.s,e.push({pathname:t,query:{...n,...a}},void 0,{shallow:!0,scroll:!0})},navigateToUpgrade:(t,n,l)=>{let r={...e.query,...n};l&&l.length>0&&l.forEach(e=>delete r[e]),a("/start/".concat(t),r)},navigateRouteHandler:(t,a)=>{let{query:n}=e,l=["to","email","gender","age","weight","target","goal","units","upgrade","projectOrigin"];l&&l.length>0&&l.forEach(e=>{delete n[e]}),e.replace({pathname:t,query:{...n,...a}},void 0,{shallow:!0,scroll:!0})}}}},53460:function(e,t,a){a.d(t,{h:function(){return r}});var n=a(11163),l=a(7490);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(0,n.useRouter)(),{geolocation:a,setAnswer:r}=(0,l.LM)();return(()=>{let n={};return["qz","utm_source","utm_medium","utm_campaign","utm_content","utm_term","campaign_id","adset_id","ad_id","placement","fbc_id","h_ad_id","utm_id","fbclid","test","anotherTest"].forEach(a=>{let l=t.query[a];l&&(n[e?"".concat(e).concat(a):a]=Array.isArray(l)?l[0]:l)}),(null==a?void 0:a.iso_country)&&(n["".concat(e,"iso_country")]=null==a?void 0:a.iso_country),(null==a?void 0:a.state)&&(n["".concat(e,"state_name")]=null==a?void 0:a.state),n})()}}}]);
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.