"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67457],{44729:function(e,a,t){t.r(a);var n=t(17674);t(67294);var r=t(93967),o=t.n(r),E=t(92626),i=t(35944);a.default=function(e){var a=e.src,t=e.src_1x,r=e.src_1x_notrans,T=e.src_2x,d=e.src_2x_notrans,A=e.caption,R=e.mod,l=e.alt,c=e.class_notrans,_=e.no_lazy,B=e.className,N=e.width_notrans,C=e.style,Z=e.onClick,s=Object.assign({},C),O=(0,E.Z)(),I=(0,n.Z)(O,2),L=I[0],K=I[1],u=!!_||K,m=t||r,S=T||d,D=S||m||a,v=l||"",G=u?m||S?"".concat(m&&m+" 1x"," ").concat(S&&", "+S+" 2x"):D:null,f=u?D:null;return s.opacity=u?null:"0",(0,i.BX)(i.HY,{children:[(0,i.tZ)("img",{ref:L,className:o()(e.class,c,R,B),src:f,srcSet:G,alt:v,width:N||null,style:s,onClick:Z}),A&&(0,i.tZ)("p",{className:o()(e.class,"-caption"),children:A}),(0,i.tZ)("noscript",{children:(0,i.tZ)("img",{src:D,alt:v})})]})}},55783:function(e,a,t){t.d(a,{Z:function(){return r}}),t(67294);var n=t(35944);function r(){return(0,n.tZ)("div",{className:"modal-loading",children:(0,n.tZ)("div",{className:"loading-indicator",children:(0,n.tZ)("div",{className:"loadingIndicator-dot -large"})})})}},58342:function(e,a,t){t.d(a,{Z:function(){return o}}),t(67294);var n=t(89657),r=t(35944);function o(){return(0,r.tZ)("div",{className:"language-list-wrapper",children:(0,r.tZ)(n.y,{})})}},84779:function(e,a,t){t.d(a,{Z:function(){return n}});function n(e){return console.warn("GoogleVerifyModal NOT IMPLEMENTED; DOESN’T WORK IN STATAMIC EITHER"),null}},55069:function(e,a,t){t.d(a,{Z:function(){return i}});var n=t(86002),r=t(10033),o=t(67294),E=t(35944);function i(){var e=(0,o.useContext)(n.l),a=e.videoContainerId,t=e.dispatch,i=e.pause,T=(0,o.useCallback)(function(e){null!==e&&t({type:r.N.SET_MODAL_CONTENT_REF,payload:e})},[]);return(0,E.BX)(E.HY,{children:[(0,E.tZ)("a",{"data-modal-close":!0,href:"#close",className:"dialog-close icon icon--x",onClick:function(e){e.preventDefault(),i(),window.AsanaHelpers.showModal("close"),t({type:r.N.SET_LOADING,payload:!0})}}),(0,E.tZ)("div",{className:"dialog-content",ref:T,children:(0,E.tZ)("div",{id:a,className:"wistia_embed wistia_async_pqsp8lk5qn autoPlay=false wmode=transparent controlsVisibleOnLoad=false videoFoam=true"})})]})}},39471:function(e,a,t){t.d(a,{Z:function(){return Y}});var n=t(59499),r=t(67294),o=t(28861),E=t(85837);t(26181);var i=t(4730),T=t(35944),d=["children"];function A(e){var a=e.children,t=(0,i.Z)(e,d),n=(0,r.useRef)(null),o=(0,r.useRef)(null),E=(0,r.useRef)(null),A=function(){var e=n.current?Array.from(n.current.querySelectorAll('button, input, a, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(function(e){var a=getComputedStyle(e),t=e.getBoundingClientRect();return"none"!==a.display&&"hidden"!==a.visibility&&"0"!==a.opacity&&t.width>0&&t.height>0}):[];0!==e.length&&(o.current=e[0],E.current=e[e.length-1],o.current&&o.current.focus())};return(0,r.useEffect)(function(){var e=function(e){e.shiftKey?document.activeElement===o.current&&(e.preventDefault(),E.current.focus()):document.activeElement===E.current&&(e.preventDefault(),o.current.focus())},a=function(){var e=window.scrollY;document.activeElement&&document.activeElement!==document.body&&document.activeElement.blur(),t.onClose(),history.replaceState(null,"",window.location.pathname+window.location.search),requestAnimationFrame(function(){requestAnimationFrame(function(){window.scrollTo(0,e)})})},r=function(t){"Escape"===t.key&&(t.preventDefault(),a()),"Tab"===t.key&&e(t)},i=function(e){var t;null!==(t=n.current)&&void 0!==t&&t.contains(e.target)||a()};return window.addEventListener("click",i),window.addEventListener("keydown",r),A(),function(){window.removeEventListener("click",i),window.removeEventListener("keydown",r)}},[]),(0,T.BX)("div",{id:t.modal_id_notrans,className:"modal -".concat(t.modal_class_notrans," -active"),tabindex_origin:t.tabindex_origin,children:[(0,T.tZ)("a",{"data-modal-close":!0,href:"#close",className:"modal-logo",children:(0,T.tZ)("span",{className:"sr-only",children:"Close Modal"})}),(0,T.tZ)("a",{"data-modal-close":!0,href:"#close",className:"modal-close modal-close-background",children:(0,T.tZ)("span",{className:"sr-only",children:"Close Modal"})}),(0,T.BX)("div",{className:"modal-container",ref:n,children:[(0,T.tZ)("a",{"data-modal-close":!0,href:"#close",className:"modal-close icon icon--x js-modal-close",onClick:t.onClose,children:(0,T.tZ)("span",{className:"sr-only",children:"Close modal"})}),a]})]})}var R=t(92979),l=["children"];function c(e){var a=e.children,t=(0,i.Z)(e,l);return(0,T.BX)(T.HY,{children:[t.modal_img_src&&(0,T.tZ)("div",{className:"modal-img",children:(0,T.tZ)("img",{alt:"",src:t.modal_img_src})}),t.modal_title&&(0,T.tZ)("h3",{className:"modal-header",children:(0,T.tZ)(R.ZP,{html:t.modal_title})}),(0,T.BX)("div",{className:"modal-content",children:[t.modal_content&&(0,T.tZ)("p",{children:(0,T.tZ)(R.ZP,{html:t.modal_content})}),a]})]})}var _=t(44729),B=t(2162),N=t(17790),C=t(1127),Z=["children"],s="signup-modal-recaptcha-container";function O(e){var a=e.children,t=(0,i.Z)(e,Z),n=(0,r.useContext)(o.Z),E=(0,r.useRef)(!0),d=(0,r.useRef)(null),A=(0,r.useState)(!1),l=A[0],c=A[1],O=(0,r.useState)(!1),I=O[0],L=O[1],K=(0,r.useState)(window.AsanaHelpers.currentModal),u=K[0],m=K[1];(0,r.useEffect)(function(){var e=function(e){m(e.detail.currentModal)};return window.addEventListener("currentModalChanged",e),function(){window.removeEventListener("currentModalChanged",e)}},[]);var S=(0,r.useRef)(null);(0,r.useEffect)(function(){if("undefined"!=typeof document){var e=document.querySelector(".signupForm.-modal-signup");e&&(S.current=e)}});var D=(0,B.Z)({formRef:S,formSubmissionAttempted:E,options:{},onSubmitStart:function(){}}).submitWithRecaptcha;return(0,r.useEffect)(function(){var e=window.AsanaHelpers.signupPreventedCallbacks.invalidRecaptchaErrorCallback;return window.AsanaHelpers.signupPreventedCallbacks.invalidRecaptchaErrorCallback=function(){c(!0),E.current&&(window.grecaptcha?window.grecaptcha.enterprise.ready(function(){null!==d.current?window.grecaptcha.enterprise.reset(d.current):d.current=window.grecaptcha.enterprise.render(s,{action:"signup",sitekey:C.J,size:"normal",callback:function(e){window.AsanaHelpers.signupWithEmail(S.current,{recaptchaToken:e}),c(!1)}})}):L(!0))},function(){window.AsanaHelpers.signupPreventedCallbacks.invalidRecaptchaErrorCallback=e,window.AsanaHelpers.currentModal=null}},[S.current,E,u]),(0,T.BX)(T.HY,{children:[(0,T.BX)("div",{className:"signup-modal",children:[t.modal_img_src&&(0,T.tZ)("div",{className:"modal-img",children:(0,T.tZ)(_.default,{src:t.modal_img_src})}),t.modal_title&&(0,T.tZ)("h3",{className:"modal-header",children:(0,T.tZ)(R.ZP,{html:t.modal_title})}),(0,T.BX)("div",{className:"modal-content",children:[t.modal_content&&(0,T.tZ)("p",{children:(0,T.tZ)(R.ZP,{html:t.modal_content})}),a]})]}),(0,T.tZ)("div",{className:"premium-reminder-modal-overlay",children:(0,T.BX)("aside",{className:"premium-reminder-modal",children:[t.premium_reminder_label&&(0,T.tZ)("h3",{className:"premium-reminder-label",children:t.premium_reminder_label}),t.premium_reminder_title&&(0,T.tZ)("p",{className:"premium-reminder-title",children:t.premium_reminder_title}),t.premium_reminder_image_src&&(0,T.tZ)("section",{className:"premium-reminder-image-container",children:(0,T.tZ)(_.default,{src:t.premium_reminder_image_src})}),t.premium_reminder_premium_cta&&(0,T.BX)("div",{className:"premium-reminder-cta-container",children:[(0,T.BX)("button",{className:"button -large -border signupForm-submit -basic",onClick:function(e){AsanaHelpers.tier.setTierFree(),AsanaHelpers.recordTrialIntent(),E.current=!0,D(),AsanaSignupUtils.signupButtons.request(e.target)},children:[(0,T.tZ)("span",{className:"signupForm-submit-icon",children:(0,T.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,T.tZ)("circle",{cx:"8",cy:"8",r:"7.5"})})}),(0,T.BX)("span",{className:"signupForm-submit-text",children:[(0,T.tZ)("span",{children:t.premium_reminder_premium_cta}),(0,T.tZ)("span",{className:"signupForm-premium-progress-text",children:t.global_CTAsignupProgress})]})]}),(0,T.BX)("a",{className:"button -large premium-reminder-basic-button signupForm-submit -basic js-signup-button",href:"#",onClick:function(e){e.preventDefault(),AsanaHelpers.enterFreeSignupFlow(),E.current=!0,D(),AsanaSignupUtils.signupButtons.request(e.target)},children:[(0,T.tZ)("span",{className:"signupForm-submit-icon",children:(0,T.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,T.tZ)("circle",{cx:"8",cy:"8",r:"7.5"})})}),(0,T.BX)("span",{className:"signupForm-submit-text",children:[(0,T.tZ)("span",{children:t.premium_reminder_basic_cta}),(0,T.tZ)("span",{children:t.global_CTAsignupProgress})]})]}),l&&(0,T.tZ)("span",{className:"input-message input-message--error",children:(0,T.tZ)(R.ZP,{html:n.microcopy.signup_recaptcha_error_message})}),E.current&&I&&(0,T.tZ)("span",{className:"input-message input-message--error",children:(0,T.tZ)(R.ZP,{html:n.microcopy.signup_recaptcha_not_yet_loaded})})]}),(0,T.tZ)(N.e,{recaptchaContainerId:s})]})})]})}var I=["children"];function L(e){e.children;var a,t=(0,i.Z)(e,I),n=(null===(a=window.AsanaHelpers.currentModal)||void 0===a?void 0:a.data)||{},r=t.modal_title,o=t.modal_content;return n.rate_limit_exceeded&&t.modal_error_rate_limit_exceeded.modal_title&&t.modal_error_rate_limit_exceeded.modal_content?(r=t.modal_error_rate_limit_exceeded.modal_title,o=t.modal_error_rate_limit_exceeded.modal_content):n.is_invalid_email_domain_provider&&t.modal_error_invalid_email_domain_provider.modal_title&&t.modal_error_invalid_email_domain_provider.modal_content&&(r=t.modal_error_invalid_email_domain_provider.modal_title,o=t.modal_error_invalid_email_domain_provider.modal_content),(0,T.BX)(T.HY,{children:[r&&(0,T.tZ)("h3",{className:"modal-header",children:(0,T.tZ)(R.ZP,{html:r})}),(0,T.tZ)("div",{className:"modal-content",children:o&&(0,T.tZ)("p",{children:(0,T.tZ)(R.ZP,{html:o})})})]})}var K=t(58342),u=t(84779),m=t(55069),S=t(55783),D=t(68328),v=t(55319),G=t(22317),f=(0,v.Z)("div",{target:"ewcf3qs1"})("display:flex;flex-flow:row nowrap;gap:",G.N.SPACING_16,";padding-bottom:",G.N.SPACING_16,";"),g=(0,v.Z)("div",{target:"ewcf3qs0"})({name:"1yc9uo8",styles:"overflow-wrap:break-word"});t(69570);var p=function(e){var a,t=(0,r.useState)(!1),n=t[0],o=t[1],E=null===(a=window.AsanaHelpers.currentModal)||void 0===a?void 0:a.data.user_email;return(0,T.BX)(g,{children:[(0,T.tZ)("h4",{children:"".concat(E," is already associated with an Asana account")}),(0,T.tZ)("p",{children:"Do you want to use this account to connect to the Align plan?"}),(0,T.tZ)("ul",{children:["Your account will become HIPAA compliant","You'll get real-time data from Align via an integration","Any existing data won't be moved or lost"].map(function(e,a){return(0,T.tZ)("li",{children:e},a)})}),(0,T.BX)("p",{children:["If you have any questions,"," ",(0,T.tZ)("a",{href:"https://form.jotform.com/220864619371056",target:"_blank",children:"contact support"}),"."]}),(0,T.BX)(f,{children:[(0,T.tZ)(D.default,{isButton:!0,isSecondary:!0,onClick:e.onClose,disabled:n,text:"Cancel",as:"a"}),(0,T.tZ)(D.default,{id:"align-self-serve__use-this-account",isButton:!0,isSecondary:!1,onClick:function(e){e.preventDefault(),e.stopPropagation(),o(!0);var a,t=null===(a=window.AsanaHelpers.currentModal)||void 0===a?void 0:a.data.user_email,n=AsanaHelpers.getOrCreateXsrfToken();window.location=AsanaHelpers.appUrl("/-/domain_channel_signup?email=".concat(encodeURIComponent(t),"&channel=align&xsrf_token=").concat(n))},disabled:n,text:"Use this account",as:"a"})]})]})},h=function(e){var a,t=null===(a=window.AsanaHelpers.currentModal)||void 0===a?void 0:a.data.user_email;return(0,T.BX)(g,{children:[(0,T.tZ)("h4",{children:"".concat(t," is already associated with an Asana account")}),(0,T.tZ)("p",{children:"If you want to use this account to connect to the Align plan, you will need to contact Align support to have this account migrated."}),(0,T.BX)(f,{children:[(0,T.tZ)(D.default,{isButton:!0,isSecondary:!0,onClick:e.onClose,text:"Cancel",as:"a"}),(0,T.tZ)(D.default,{isButton:!0,isSecondary:!1,href:"https://form.jotform.com/220864619371056",text:"Contact support",target:"_blank"})]})]})},F=function(e){var a,t=null===(a=window.AsanaHelpers.currentModal)||void 0===a?void 0:a.data.user_email;return(0,T.BX)(g,{children:[(0,T.tZ)("h4",{children:"".concat(t," is associated with an existing domain already set up in Asana.")}),(0,T.tZ)("p",{children:"If you want to use this email to signup, you will need to contact support to have the domain migrated over. Our support team will guide you through the steps to make this happen."}),(0,T.BX)(f,{children:[(0,T.tZ)(D.default,{isButton:!0,isSecondary:!0,onClick:e.onClose,text:"Cancel",as:"a"}),(0,T.tZ)(D.default,{isButton:!0,isSecondary:!1,href:"https://form.jotform.com/220864619371056",text:"Contact support",target:"_blank"})]})]})},b=function(e){return(0,T.BX)(g,{children:[(0,T.tZ)("h4",{children:"We encountered an error"}),(0,T.tZ)("p",{children:"Please contact support."}),(0,T.BX)(f,{children:[(0,T.tZ)(D.default,{isButton:!0,isSecondary:!0,onClick:e.onClose,text:"Cancel",as:"a"}),(0,T.tZ)(D.default,{isButton:!0,isSecondary:!1,href:"/support",text:"Contact support",target:"_blank"})]})]})},P=t(37565);function H(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function y(e){for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:"60% 0px",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,1],t=(0,r.useState)(!1),E=t[0],i=t[1];(0,r.useDebugValue)(E);var T=(0,o.Z)(e,a),d=(0,n.Z)(T,3),A=d[0],R=d[1],l=d[2];return(0,r.useEffect)(function(){R&&(i(!0),l())},[R]),[A,E,l]}},77094:function(e,a,t){t.d(a,{Z:function(){return r}});var n=t(67294);function r(e){var a=(0,n.useState)(null),t=a[0],r=a[1];return(0,n.useDebugValue)(t),(0,n.useEffect)(function(){window&&e&&(window._wq=window._wq||[],window._wq.push({id:e,onReady:function(e){r(e)}}))},[]),t}},86002:function(e,a,t){t.d(a,{l:function(){return O},Z:function(){return I}});var n=t(17674),r=t(59499),o=t(11163),E=t(67294),i=t(7158),T=t(77094),d=t(10033);function A(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function R(e){for(var a=1;a