"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57357],{27329:function(e,n,t){t.d(n,{N:function(){return r}});var r="debug_experiments"},43719:function(e,n,t){t.d(n,{Z:function(){return m}});var r=t(67294),i=t(76502),s=t(76931),a=t(50029),u=t(17674),o=t(87794),c=t.n(o);function l(){return d.apply(this,arguments)}function d(){return(d=(0,a.Z)(c().mark((function e(){var n,t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new URL("https://app.asana.com/-/logged_in_user_info")).searchParams.set("xsrf_token",window.AsanaHelpers.getOrCreateXsrfToken()),e.prev=2,e.next=5,fetch(n,{credentials:"include"});case 5:return t=e.sent,e.next=8,t.json();case 8:return e.abrupt("return",e.sent);case 11:e.prev=11,e.t0=e.catch(2),window.AsanaErrors.notifyException(e.t0);case 14:return e.abrupt("return");case 15:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}var f=t(15720),p=function(){var e=(0,f.Z)(),n=(0,u.Z)(e,1)[0],t=(0,r.useState)(!1),i=t[0],s=t[1];return(0,r.useEffect)((function(){var e,n,t;if(n=window,t="qualified",n.QualifiedObject=t,n[t]=n[t]||function(){(n[t].q=n[t].q||[]).push(arguments)},null!==(e=window)&&void 0!==e&&e.document){var r=window.document.createElement("script");r.src="https://js.qualified.com/qualified.js?token=cnKktASkwLFEFdYh",r.async=!0,window.document.body.appendChild(r)}}),[]),(0,r.useEffect)((function(){n&&!i&&(0,a.Z)(c().mark((function e(){var n,t,r,i,a,u,o,d,f,p;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=new URLSearchParams(window.location.search),t=n.has("user_first_name")?n.get("user_first_name"):null,r=n.has("user_last_name")?n.get("user_last_name"):null,i=n.has("user_email")?n.get("user_email"):null,e.next=7,l();case 7:if(a=e.sent,u=t||(null===a||void 0===a?void 0:a.user_first_name),o=r||(null===a||void 0===a?void 0:a.user_last_name),d=i||(null===a||void 0===a?void 0:a.user_email),u||o||d){e.next=13;break}throw new Error("Failed to get logged in user info");case 13:if(f={},d&&(f.email=d),p="",u&&(p=u),u&&o&&(p+=" ".concat(o)),p&&(f.name=p),!(Object.keys(f).length>0&&window.qualified)){e.next=24;break}window.qualified("identify",f),s(!0),e.next=25;break;case 24:throw new Error("Qualified object does not exist or missing field values");case 25:e.next=30;break;case 27:e.prev=27,e.t0=e.catch(0),window.AsanaErrors.notifyException(e.t0);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})))()}),[n,i]),null},h=t(44494),v=t(11163),w=t(77108),Z=t(35944),m=function(){var e=(0,r.useContext)(i.Z),n=e.livechat,t=e.qualified_enabled_notrans,a=(0,r.useContext)(s.lX),u=a.performance,o=a.targeting,c=(0,h.z)(),l=(0,v.useRouter)().asPath,d=(0,w.Z)().userGeo;return c||!u||!o||!n&&!t||!_(l,d)?null:(0,Z.tZ)(p,{})},_=function(e,n){var t=e.split("?")[0];if(["/billing","/subscription-questions","/logged-in"].includes(t))return!0;return!n||!["cu","ir","kp","sy","ua","ru"].includes(n.toLowerCase())}},57357:function(e,n,t){t.r(n),t.d(n,{default:function(){return E}});var r=t(67294),i=t(9008),s=t.n(i),a=t(76502),u=t(46338),o=t(76931),c=t(73239),l=t(67356),d=t(5152),f=t.n(d),p=t(92430),h=t(66926),v=t(4865),w=t(91866),Z=t(9379),m=t(11163),_=t(27329),g=(t(44494),t(43719)),k=t(35944);var b=f()((function(){return Promise.all([t.e(25675),t.e(64137),t.e(80079),t.e(37789),t.e(53823),t.e(46052),t.e(10996),t.e(12745),t.e(5621),t.e(9556),t.e(57004),t.e(2833)]).then(t.bind(t,2833))}),{loadableGenerated:{webpack:function(){return[2833]}}}),x={name:"1m6zuxh",styles:"position:fixed;left:50%;top:50%"},y={name:"6dhm9o",styles:"visibility:hidden"};function E(e){var n=e.children,t=(0,r.useContext)(a.Z),i=(t.livechat,t.qualified_enabled_notrans,t.hide_content),d=(0,r.useContext)(u.Z).preview,f=(0,r.useContext)(o.lX),E=(f.performance,f.targeting,(0,m.useRouter)()),C=q(E.query[_.N]);return(0,k.BX)("div",{children:[(0,k.tZ)(l.Z,{}),(0,k.BX)(s(),{children:[(0,k.tZ)("link",{rel:"preconnect",href:"https://api.ipify.org"}),(0,k.tZ)("link",{rel:"preconnect",href:"https://ad.doubleclick.net"}),(0,k.tZ)("link",{rel:"preconnect",href:"https://cdn.cookielaw.org"}),(0,k.tZ)("link",{rel:"dns-prefetch",href:"https://cdn.cookielaw.org"}),(0,k.tZ)("link",{rel:"preconnect",href:"https://luna1.co"}),(0,k.tZ)("link",{rel:"dns-prefetch",href:"https://luna1.co"}),(0,k.tZ)(p.Z,{}),(0,k.tZ)("script",{src:(0,c.X)("js/global.js")},"global"),(0,k.tZ)("script",{src:(0,c.X)("js/first-party-apis/signup.js"),defer:!0}),(0,k.tZ)("link",{rel:"preload stylesheet",type:"text/css",as:"style",href:(0,c.X)("css/reskin.css")}),(0,k.tZ)("style",{children:".async-hide {opacity: 0 !important}"})]}),(0,k.tZ)(v.Z,{}),(0,k.tZ)(g.Z,{}),i&&(0,k.tZ)("div",{className:"loading-spinner",css:x,children:(0,k.tZ)(w.Z,{})}),i?(0,k.tZ)("div",{className:"hide-content",css:y,children:n}):n,(Z.isQaEnv||Z.isTest||d||C)&&(0,k.tZ)(b,{shouldDebugProd:C}),(0,k.tZ)(h.Z,{})]})}var q=function(e){return"true"===(null===e||void 0===e?void 0:e.toLocaleLowerCase())}},44494:function(e,n,t){t.d(n,{z:function(){return i}});var r=t(67294),i=function(){var e=(0,r.useRef)(!0);return(0,r.useEffect)((function(){e.current=!1}),[]),e.current}},77108:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(17674),i=t(91220);function s(){var e=(0,i.Z)("user_geo"),n=(0,r.Z)(e,1)[0];return{userGeo:(null===n||void 0===n?void 0:n.toString())||null}}}}]);