PageSourceSearch

https://cdn-website.teamwork.com/_nuxt/DwpYUr-Z.js

js teamwork.com collected 2026-09-24 08:26:44 UTC 9,556 bytes, 1 lines download raw bytes

1import T from"./D6I-c_fk.js";import $ from"./DpuzeY1N.js";import v from"./D18_4fsN.js";import I from"./BD5SPq-k.js";import{bl as S,bg as l,bh as d,bm as h,bj as w,bv as m,bw as _,bt as f,bu as R,bQ as o,bR as E,bH as g,bS as F,bn as P,be as A,bT as x,bk as p,bU as D,bJ as O,bP as j,bV as N}from"./CQD_k365.js";import{R as b,u as q}from"./DCvshkmV.js";import{u as W}from"./CCEhbPND.js";import{u as G}from"./DO-5owp0.js";import{i as L}from"./Ba0p3vNg.js";import"./CnRhvWo0.js";import"./CatdvrbF.js";import"./CCcdZIzu.js";import"./KyoCI7VO.js";import"./afFTSNJw.js";import"./BcjFgGpz.js";import"./C5fp-5qZ.js";import"./DuOA3GJn.js";import"./DJ6T9peu.js";import"./CNJ51T1r.js";import"./BKYnmTd2.js";import"./CoXKuW2s.js";import"./Da6LUJ8X.js";import"./BQj1matO.js";import"./Cf88eNri.js";import"./sP7UrX8b.js";import"./B65bOR8G.js";import"./GCblvNBb.js";import"./BJhaCKV_.js";import"./DnHpW72x.js";import"./CFxoThl8.js";import"./Bqla_IMz.js";import"./DTAo0fT2.js";import"./DfmEfytr.js";import"./N4-NSFCC.js";import"./DYxPhHhk.js";import"./3qnkr3rb.js";import"./BtTMPe7p.js";import"./CBj2t-BN.js";import"./Hj2aBOrK.js";import"./De08bt4z.js";const z={async setup(){const{vueApp:e}=P(),t=g();e.use(b.VueReCaptcha,{siteKey:t.public.RECAPTCHA_SITE_KEY});const{executeRecaptcha:s}=b.useReCaptcha(),{params:i}=A(),{signupStep2:a}=W(),n=q(),{story:r}=await G();return{product:["desk","spaces"].includes(i.slug)?i.slug:"teamwork",executeRecaptcha:s,story:r,hubSpotFormId:a,signupTiming:n}},data(){return{submitting:!1}},async mounted(){(this._.provides[o]||this.$route).query.email&&this.$refs.form.setEmail((this._.provides[o]||this.$route).query.email),(this._.provides[o]||this.$route).query.name&&this.$refs.form.setName((this._.provides[o]||this.$route).query.name),this.trackAware()},methods:{async getDomainPrefixField(e){try{const t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),s=`${g().public.WEBSITE_API}/index.cfm?action=checkDomainOKV2&code=${t}`,i=await $fetch(s,{parseResponse:JSON.parse});return i.domainOk?t:i.suggested}catch(t){const s=t.response?"Error testing domain. Please try again":"Check your network and try again";this.$refs.snackbar.display(s),this.trackError(s)}},getWebSignupVariant(){const e=F("active-ab-tests",{});return Object.entries(e.value||{}).map(([s,i])=>[s,i==="1"?"control":`variant${i-1}`].join("_")).map(s=>`website-vwo-${s}`).join().slice(0,255)},getFormFields(e){const t={username:e.email,useremail:e.email,fullname:e.name,company:e.company,userphone:e.phone,industry:e.industry.label,industryCategoryId:e.industry.appId,companysizesId:e.size.value,companyroleId:e.role.value,marketingEmails:e.marketingEmails,isEU:e.euHosting,trialRequiredSeats:e.numberOfSeats};return e.googleToken?(t.gt=e.googleToken,t.socialSignup="yes",t.password=null):t.password=e.password,t},getDefaultFields(){return{useHTTPS:!0,signupForm:1,generatePassword:1,sfc:"default",quicksignup:!1,page:"signup",consent:!0,domain:"teamwork.com",deskEnable:0,chatEnable:0,chosenproduct:this.product==="teamwork"?"projects":this.product,domainPrefixOK:!0,timezoneId:7}},getURLFields(){return{hasComeFrom:(this._.provides[o]||this.$route).query.from??null,planid:(this._.provides[o]||this.$route).query.planid?parseInt((this._.provides[o]||this.$route).query.planid):91,plancode:(this._.provides[o]||this.$route).query.plan??"accelerate-2026Q1",template:(this._.provides[o]||this.$route).query.template??"",msteamsRedirectUri:(this._.provides[o]||this.$route).query.msteams_redirect_uri??"",msteamsState:(this._.provides[o]||this.$route).query.msteams_state??""}},getCookieFields(){return{gaClientId:this.$ga.clientId(),gclid:this.$getCookie("GCLID"),currencyCode:this.$getCookie("TW_website_currency")||"USD",referrercode:this.$getCookie("TWREF"),landingurl:this.$getCookie("TWLANDING"),referrerurl:this.$getCookie("TWREFURL"),adgroup:this.$getCookie("TWADGROUP"),ad:this.$getCookie("TWAD"),campaign:this.$getCookie("TWCAMPAIGN"),keyword:this.$getCookie("TWKEYWORD"),partner:this.$getCookie("TWPARTNER"),sourceCategory:this.$getCookie("MKTOSC"),sourceDetail:this.$getCookie("MKTOSD"),contentDetail:this.$getCookie("MKTOCD"),marketoCookie:this.$getCookie("_mkto_trk"),cLanding:this.$getCookie("C_LANDING"),cRef:this.$getCookie("C_REF"),cPartner:this.$getCookie("C_PARTNER"),cRefurl:this.$getCookie("C_REFURL"),cAdgroup:this.$getCookie("C_ADGROUP"),cContentdetail:this.$getCookie("C_CD"),cCampaign:this.$getCookie("C_CAMPAIGN"),cGclid:this.$getCookie("C_GCLID"),cSd:this.$getCookie("C_SD"),cFrom:this.$getCookie("C_FROM"),cAd:this.$getCookie("C_AD"),cFriend:this.$getCookie("C_FRIEND"),cOrigReferrer:this.$getCookie("C_ORIG_REFERRER"),cGSPartnerKey:this.$getCookie("C_GSPARTNER_KEY"),hubspotutk:this.$getCookie("hubspotutk"),webSignupVariant:this.getWebSignupVariant()}},async submit(e){const t=await this.signupTiming.trace({country:this.$getCookie("TW_website_country"),isEU:e.euHosting},()=>this.performSubmit(e));t?.url&&await this.redirect(t)},async performSubmit(e){this.submitting=!0;const t=await this.signupTiming.phase("domainCheck",()=>this.getDomainPrefixField(e.company));if(!t)return this.submitting=!1,!1;const s=await this.signupTiming.phase("recaptcha",()=>this.executeRecaptcha("login")),i={domainPrefix:t,...this.getFormFields(e),...this.getDefaultFields(),...this.getURLFields(),...this.$utm.get(),...this.getCookieFields(),token:s},a="Something went wrong. Please try again";try{const n=`${g().public.WEBSITE_API}/index.cfm?action=signupV2`,r=await this.signupTiming.phase("signupApi",()=>$fetch(n,{method:"POST",body:i}));
1if(r.data?.url){this.signupTiming.succeeded(),this.setIdCookies(r.data),this.pushtoGTM(e,r.data);try{await this.signupTiming.phase("hubspot",()=>this.submitToHubSpot(e))}catch(u){console.error(u)}return r.data}else{this.submitting=!1;const u=r.error?.message??a;this.$refs.snackbar.display(u),this.trackError(u),console.error(u)}}catch(n){this.submitting=!1,this.$refs.snackbar.display(a),this.trackError(a),console.error(n||a)}},setIdCookies(e){const s=E()?".teamwork.com":"";e.installationId&&this.$setCookie("tw-account-id",e.installationId,3650,s),e.userId&&this.$setCookie("tw-user-id",e.userId,3650,s),this.$setCookie("tw-signup-date",new Date,3650,s)},trackError(e){this.$gtm.push({event:"signup-error",signup:{error:e}})},trackAware(){const e={product:this.product,plan:(this._.provides[o]||this.$route).query.plan??"accelerate-2026Q1",country:this.$getCookie("TW_website_country")};this.$gtm.push({event:"sign-up-aware",signup:e})},pushtoGTM(e,t){this.$gtm.push({event:"signed-up",signup:{hubspotFormId:this.hubSpotFormId,installationId:t.installationId,name:e.name,email:e.email,phone:e.phone,company:e.company,industryId:e.industry.value,industry:e.industry.label,isIndustryICP:L(e.industry.label),companySizeId:e.size.value,companySize:e.size.label,numberOfSeats:e.numberOfSeats,companyUserRole:e.role.label,fpv:this.$getCookie("tw_previous_page")}})},async redirect(e){await this.signupTiming.settle(),window.location.href=`${e.url}`},async submitToHubSpot(e){const t=e.name.split(" "),s=[{objectTypeId:"0-1",name:"email",value:e.email},{objectTypeId:"0-1",name:"firstname",value:t[0]},{objectTypeId:"0-1",name:"lastname",value:t.slice(1).join(" ")},{objectTypeId:"0-1",name:"phone",value:e.phone},{objectTypeId:"0-1",name:"teamwork_industry__wip_",value:e.industry.value},{objectTypeId:"0-1",name:"company",value:e.company},{objectTypeId:"0-1",name:"teamwork_company_size_band___signup",value:e.size.label},{objectTypeId:"0-1",name:"role__new_",value:e.role.label},{objectTypeId:"0-1",name:"plan",value:(this._.provides[o]||this.$route).query.hs_plan??(this._.provides[o]||this.$route).query.plan??"accelerate-2026Q1"},{objectTypeId:"0-1",name:"most_recent_website_action",value:"Free Trial"},{objectTypeId:"0-1",name:"user_type___contact",value:"Site Owner"},{objectTypeId:"0-1",name:"user_type",value:"Site Owner"},{objectTypeId:"0-1",name:"form_shortened_with_clearbit",value:e.shortened_with_clearbit},{objectTypeId:"0-1",name:"number_of_seats___sign_up",value:e.numberOfSeats}];return await this.$hubspot.submitForm({id:this.hubSpotFormId,fields:s})}}},B={class:"signup__form"};function U(e,t,s,i,a,n){const r=T,u=$,y=v,k=I,C=x("editable");return p(),l("div",{class:m(["signup",{"signup--reverse":i.story.content.reverse}])},[d(r,{global:i.story.content.menu||"global/menu/menu-signup",hydrate:"eager"},null,8,["global"]),h("div",{class:m(["signup__container",{"signup__container--hide-side-content":i.story.content.hideSideContent}])},[h("div",B,[d(u,{title:i.story.content.formTitle,subtitle:i.story.content.formSubtitle},null,8,["title","subtitle"]),d(y,{ref:"form","separator-text":i.story.content.formSeparatorText,"legal-text":i.story.content.formLegalText,loading:a.submitting,onSubmit:n.submit,onError:t[0]||(t[0]=c=>e.$refs.snackbar.display(c))},null,8,["separator-text","legal-text","loading","onSubmit"])]),i.story.content.hideSideContent?_("",!0):(p(),l("div",{key:0,class:"signup__content",style:w({backgroundColor:i.story.content.sideBackgroundColor})},[i.story.content.sideBackgroundPreset?(p(),l("div",{key:0,class:m(`signup__content-background signup__content-background--${i.story.content.sideBackgroundPreset}`)},null,2)):_("",!0),(p(!0),l(f,null,R(i.story.content.sideContent,c=>D((p(),O(N(c.component),j({key:c._uid},{ref_for:!0},c,{class:c.padding}),null,16,["class"])),[[C,c]])),128))],4))],2),d(k,{ref:"snackbar",position:"right","background-color":"#f13f3e",timeout:"10000"},null,512)],2)}const Pe=S(z,[["render",U],["__scopeId","data-v-8b091e8a"]]);export{Pe as default};

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.