"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5037],{75555:function(n,e,t){t.d(e,{n:function(){return i}});var r=t(85893);function i(){return(0,r.jsx)("div",{className:"fixed text-white left-0 bottom-0 z-50 md:ml-16 md:mb-16 bg-violet px-16 py-12 rounded shadow-lg",children:(0,r.jsxs)("div",{className:"flex items-center space-x-12",children:[(0,r.jsx)("img",{alt:"Eye",className:"h-32 w-32",decoding:"async",loading:"lazy",src:"https://www.iconophor.com/icons/feather/4.28.0/eye?stroke=white"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-bold",children:"In preview mode."}),(0,r.jsx)("p",{className:"thd-body-sm mt-2",children:(0,r.jsx)("a",{className:"underline",href:"/api/marketing-website/disable-draft-mode",children:"Click here to exit."})})]})]})})}},69355:function(n,e,t){t.d(e,{$6:function(){return g},A0:function(){return o},BN:function(){return E},Dy:function(){return A},EK:function(){return u},Fv:function(){return a},Gp:function(){return h},HF:function(){return p},Hl:function(){return G},Hr:function(){return L},Ir:function(){return I},Jw:function(){return j},Mk:function(){return f},Mo:function(){return b},PQ:function(){return d},TX:function(){return T},ZQ:function(){return H},Zd:function(){return s},bN:function(){return l},dS:function(){return F},eB:function(){return k},kW:function(){return _},lB:function(){return D},mK:function(){return y},mu:function(){return x},o$:function(){return N},oG:function(){return v},pO:function(){return w},r9:function(){return c},s2:function(){return m},sZ:function(){return i},th:function(){return C},xe:function(){return r},zW:function(){return S}});var r="Sign Up CTA Click",i="App Store Click",o="Google Play Click",a="Contact Sales CTA Click",c="Learn to Loom Grid Card Click",u="Header Menu Click",s="Banner Click",l="appInstallButton",d="appStore",f="banner",v="contactSalesCta",m="downloadCta",p="exploreLoomForSales",g="freeTrialCta",k="getLoomAICta",b="getLoomCta",h="getLoomForFreeCta",y="getStartedCta",C="getStartedSdkCustomCta",w="getVerified",A="getVerifiedCta",S="googlePlay",_="headerMenu",E="learnToLoomGridCard",I="loomAIWorkflowsHomepage",N="loomSdkApiCta",T="pricingHeroCardEnterprise",x="registerSdkCta",j="sdkDeveloperPortalCta",G="sdkGetStarted",L="signUpCta",D="promptLoggedOutUsers",F="promptLoggedOutUsersLoginCta",H=",2,"},26331:function(n,e,t){t.d(e,{J5:function(){return d},L9:function(){return f},ST:function(){return y},YP:function(){return h},tW:function(){return b}});var r=t(72253),i=t(25934),o=t(37081),a=t(71166),c=t(56047),u=t(67294),s=t(33231),l="ajs_anonymous_id",d=function(n){if(n){var e=n.split("").filter(function(n){return!isNaN(Number(n))}),t=parseInt(e.slice(e.length-2).join(""),10)%100;return Number.isNaN(t)?void 0:t}};function f(n,e){try{if(o.cZ&&!window.segmentAnalytics){s.u("Missing consent: Segment trackEvent",{eventName:n,props:e});return}var t,r,i=(0,a.NA)(c.b);(null==i?void 0:i.id)&&(e.userId=i.id);var u=h().anonID;e.anon_swimlane=d(u);var l=Object.assign({},e,{ajsId:u});null===(r=window)||void 0===r||null===(t=r.segmentAnalytics)||void 0===t||t.track(n,l),s.u("Segment track.event",{props:l,segmentEventName:n}),o.cZ||console.info("%cAnalytics event tracking:\n","font-weight: bold",{name:n,props:l})}catch(t){s.v("Error: Segment analytics.trackEvent",{eventName:n,props:e,error:t})}}var v=function(){var n;return"function"==typeof(null===(n=window.segmentAnalytics)||void 0===n?void 0:n.user)},m=function(n){var e=null==n?void 0:n.replace(/^"|"$/g,"").trim();return e&&"null"!==e&&"undefined"!==e?e:null},p=function(){try{return m(window.localStorage.getItem(l))}catch(n){return null}},g=function(n){try{window.localStorage.setItem(l,'"'.concat(n,'"'))}catch(n){}},k=function(n){try{var e=document.cookie.match(RegExp("(?:^|;\\s*)"+n+"=([^;]*)"));if(e)return m(decodeURIComponent(e[1]))}catch(n){}return null},b=function(){var n=k(l);if(n)return g(n),n;var e=p();if(e)return e;var t=(0,i.Z)();return g(t),t},h=function(){var n=null,e=null;return v()?(n=window.segmentAnalytics.user().anonymousId(),e=window.segmentAnalytics.user().id()):n=b(),{anonID:n,userID:e}},y=function(n,e){var t=(0,u.useRef)(!0);(0,u.useEffect)(function(){var r=!0,i=!1,o=void 0;try{for(var a,c=[300,500,1e3,1500,2e3,2500,3e3,3500,4e3,4500,5e3,1e4,15e3][Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var u=a.value;setTimeout(function(){var r;t.current&&(null===(r=window)||void 0===r?void 0:r.segmentAnalytics)!==void 0&&(C(n,e),t.current=!1)},u)}}catch(n){i=!0,o=n}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}},[n,e])},C=function(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n||!(null===(e=window)||void 0===e?void 0:e.segmentAnalytics)){s.u("Missing consent: Segment pageEvent",{name:n,props:t});return}var i=h().anonID;window.segmentAnalytics.page(n,(0,r._)({name:n,anon_swimlane:d(i)},t))}},27079:function(n,e,t){t.d(e,{y:function(){return b},_:function(){return k}});var r,i=t(11010),o=t(72253),a=t(14932),c=t(97582),u=t(99979),s=t(37081),l=t(33231),d=s.cZ?"prod":"stg",f=null,v=t(71166),m=t(56047),p=t(26331),g=t(69355),k=(r=(0,i._)(function(n,e){var t,r,i,s,k,h,y;return(0,c.Jh)(this,function(c){if(!n||!e.action)return l.u("Analytics event: Invalid event or properties",{event:n,properties:e}),[2];if(!("string"==typeof window.OptanonActiveGroups&&window.OptanonActiveGroups.includes(g.ZQ)))return l.u("Analytics event: Missing consent",{event:n,properties:e}),[2];r={userId:(null==(t=(0,v.NA)(m.b))?void 0:t.id)!=null?"".concat(t.id):void 0,userIdType:(null==t?void 0:t.id)!=null?"loom":void 0,anonymousId:(0,p.tW)(),workspaceId:(null==t?void 0:t.id)!=null?t.default_workspace_id:void 0},i=e.actionSubject?b(e.actionSubject):null,h={source:"loom-content",action:null!==(s=e.action)&&void 0!==s?s:null,actionSubject:i,actionSubjectId:null!==(k=null==e?void 0:e.actionSubjectId)&&void 0!==k?k:null,attributes:(0,a._)((0,o._)({},e.attributes),{anonSwimlane:(0,p.J5)(r.anonymousId),userId:r.userId})};try{switch(f||(f=(0,u.analyticsClient)({env:d,version:"1.0.0",product:"loom",maxEventsInBatch:10,flushInterval:1e3,errorHandler:function(n){console.log("[Atlassian Analytics] Error sending event via atlassian node client",n),l.v("Atlassian Analytics: Error",n)},sendEventHook:function(n){console.log("[Atlassian Analytics] Event sent via atlassian node client",n),l.u("Atlassian Analytics: Send success",n)}})),y=f,n){case"track":y.sendTrackEvent((0,a._)((0,o._)({},r),{trackEvent:h}));break;case"operational":y.sendOperationalEvent((0,a._)((0,o._)({},r),{operationalEvent:h}));break;case"ui":y.sendUIEvent((0,a._)((0,o._)({},r),{uiEvent:h}))}}catch(t){l.v("Error sending event via atlassian node client",(0,o._)({event:n,segmentEventName:e.actionSubject,error:t},r,h))}return[2]})}),function(n,e){return r.apply(this,arguments)});function b(n){var e;switch(n){case"App Install Button Click":e=g.bN;break;case g.sZ:e=g.PQ;break;case g.Zd:e=g.Mk;break;case g.Fv:e=g.oG;break;case"Download CTA Click":e=g.s2;break;case"Explore Loom for Sales Click":e=g.HF;break;case"Free Trial CTA Click":e=g.$6;break;case"Get Loom AI CTA Click":e=g.eB;break;case"Get Loom CTA Click":e=g.Mo;break;case"Get Loom for Free CTA Click":e=g.Gp;break;case"Get Started CTA Click":e=g.mK;break;case"Get Started SDK Custom CTA":e=g.th;break;case"Get Verified":e=g.pO;break;case"Get Verified CTA Click":e=g.Dy;break;case g.A0:e=g.zW;break;case g.r9:e=g.BN;break;case"Loom AI workflows homepage click":e=g.Ir;break;case"Loom SDK API CTA Click":e=g.o$;break;case"Pricing Hero Card Enterprise":e=g.TX;break;case"Register SDK CTA Click":e=g.mu;break;case"SDK Developer Portal CTA Click":e=g.Jw;break;case"SDK Get Started Click":e=g.Hl;break;case g.xe:case"Sign Up CTA":e=g.Hr;break;default:e=n}return e}},33231:function(n,e,t){t.d(e,{u:function(){return u},v:function(){return s}});var r=t(72253),i=t(14932),o=t(97704),a=t(27079),c="loom-marketing";o.fy.init({clientToken:"pubb1955571dc736e541b72313c6942242f",site:"datadoghq.com",forwardErrorsToLogs:!1,sessionSampleRate:100,telemetrySampleRate:0,env:"production"});var u=function(n,e){o.fy.logger.info(n,(0,i._)((0,r._)({},e),{client:c,gasV3EventName:e.segmentEventName?(0,a.y)(e.segmentEventName):void 0}))},s=function(n,e){o.fy.logger.error(n,(0,i._)((0,r._)({},e),{client:c,gasV3EventName:e.segmentEventName?(0,a.y)(e.segmentEventName):void 0}))}},71166:function(n,e,t){t.d(e,{NA:function(){return i},fZ:function(){return o}});var r=function(){};function i(n){var e;return n.subscribe(function(n){e=n})(),e}function o(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return r},t=null,i=[],o=function(e){if(n="function"==typeof e?e(n):e,t)for(var r=0;r-1&&i.splice(n,1),0===i.length&&(null==t||t(),t=null)}}}}},56047:function(n,e,t){t.d(e,{b:function(){return s}});var r=t(11010),i=t(72253),o=t(14932),a=t(97582),c=t(37081),u=(0,t(71166).fZ)({userFetched:!1}),s={subscribe:u.subscribe};function l(){return(l=(0,r._)(function(){var n,e,t,r,s,l;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(window.location.search.includes("login=true"))return u.set({id:11,first_name:"Usagi",last_name:"Tsukino",email:"usagi.tsukino@fake.fake",avatars:[{thumb:"avatars/default-avatar.svg"}],default_workspace_id:123,persona:{persona_v1:{use_case_plan:"work"}},userFetched:!0}),[2];return[4,fetch(c.B3,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"\n {\n me {\n id\n first_name\n last_name\n email\n avatars {\n thumb\n }\n default_workspace_id\n persona\n }\n }\n "})})];case 1:if(!(n=a.sent()).ok)return[3,3];return[4,n.json()];case 2:if(r=null==(t=a.sent())?void 0:null===(e=t.data)||void 0===e?void 0:e.me)return u.set((0,o._)((0,i._)({},r),{userFetched:!0})),null==(l=window.segmentAnalytics)||null===(s=l.identify)||void 0===s||s.call(l,r.id,{email:r.email,firstName:r.first_name,lastName:r.last_name}),[2];a.label=3;case 3:return u.set({userFetched:!0}),[2]}})})).apply(this,arguments)}(function(){return l.apply(this,arguments)})().catch(function(){})}}]);