PageSourceSearch

https://app.shortcut.com/static/js/signup.63e19b9f96.js

js shortcut.com collected 2026-10-02 06:39:28 UTC 63,828 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="32203ef8-1655-49eb-a63e-f284cf886cfd",e._sentryDebugIdIdentifier="sentry-dbid-32203ef8-1655-49eb-a63e-f284cf886cfd")}catch(e){}}(),(globalThis.rspackChunk_clubhouse_web=globalThis.rspackChunk_clubhouse_web||[]).push([[472],{59668(e,t,r){var n=r(84354),a=r(63151);e.exports=function(e){return a(n(e))}},6484(e){var t=Math.floor,r=Math.random;e.exports=function(e,n){return e+t(r()*(n-e+1))}},27154(e,t,r){var n=r(63151),a=r(39817);e.exports=function(e){return n(a(e))}},3905(e,t,r){var n=r(65111);e.exports=function(e,t){return n(t,function(t){return e[t]})}},63151(e,t,r){var n=r(6484);e.exports=function(e,t){var r=-1,a=e.length,o=a-1;for(t=void 0===t?a:t;++r<t;){var i=n(r,o),l=e[i];e[i]=e[r],e[r]=l}return e.length=t,e}},30938(e,t,r){var n=r(59668),a=r(27154),o=r(53142);e.exports=function(e){return(o(e)?n:a)(e)}},39817(e,t,r){var n=r(3905),a=r(81211);e.exports=function(e){return null==e?[]:n(e,a(e))}},61513(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var a={};if("abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},a)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,a){for(var o,i,l=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in o=Object(arguments[s]))r.call(o,c)&&(l[c]=o[c]);if(t){i=t(o);for(var d=0;d<i.length;d++)n.call(o,i[d])&&(l[i[d]]=o[i[d]])}}return l}:Object.assign},79772(e){var t="u">typeof Element,r="function"==typeof Map,n="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,i){if(o===i)return!0;if(o&&i&&"object"==typeof o&&"object"==typeof i){var l,s,c,d;if(o.constructor!==i.constructor)return!1;if(Array.isArray(o)){if((l=o.length)!=i.length)return!1;for(s=l;0!=s--;)if(!e(o[s],i[s]))return!1;return!0}if(r&&o instanceof Map&&i instanceof Map){if(o.size!==i.size)return!1;for(d=o.entries();!(s=d.next()).done;)if(!i.has(s.value[0]))return!1;for(d=o.entries();!(s=d.next()).done;)if(!e(s.value[1],i.get(s.value[0])))return!1;return!0}if(n&&o instanceof Set&&i instanceof Set){if(o.size!==i.size)return!1;for(d=o.entries();!(s=d.next()).done;)if(!i.has(s.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(i)){if((l=o.length)!=i.length)return!1;for(s=l;0!=s--;)if(o[s]!==i[s])return!1;return!0}if(o.constructor===RegExp)return o.source===i.source&&o.flags===i.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===i.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===i.toString();if((l=(c=Object.keys(o)).length)!==Object.keys(i).length)return!1;for(s=l;0!=s--;)if(!Object.prototype.hasOwnProperty.call(i,c[s]))return!1;if(t&&o instanceof Element)return!1;for(s=l;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!o.$$typeof)&&!e(o[c[s]],i[c[s]]))return!1;return!0}return o!=o&&i!=i}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},93285(e,t,r){"use strict";var n,a,o,i,l=r(39067),s=r.n(l),c=r(86399),d=r.n(c),u=r(79772),p=r.n(u),m=r(14041),h=r(61513),g=r.n(h),f="bodyAttributes",y="htmlAttributes",b={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(b).map(function(e){return b[e]});var w="cssText",v="href",x="innerHTML",k="itemprop",A={accesskey:"accessKey",charset
1:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},S=Object.keys(A).reduce(function(e,t){return e[A[t]]=t,e},{}),Y=[b.NOSCRIPT,b.SCRIPT,b.STYLE],C="data-react-helmet",T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},D=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},j=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},E=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e},F=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},z=function(e){var t=L(e,b.TITLE),r=L(e,"titleTemplate");if(r&&t)return r.replace(/%s/g,function(){return Array.isArray(t)?t.join(""):t});var n=L(e,"defaultTitle");return t||n||void 0},N=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return O({},e,t)},{})},P=function(e,t,r){var n={};return r.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&q("Helmet: "+e+' should be of type "Array". Instead found type "'+T(t[e])+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,r){var a={};r.filter(function(e){for(var r=void 0,o=Object.keys(e),i=0;i<o.length;i++){var l=o[i],s=l.toLowerCase();-1!==t.indexOf(s)&&("rel"!==r||"canonical"!==e[r].toLowerCase())&&("rel"!==s||"stylesheet"!==e[s].toLowerCase())&&(r=s),-1!==t.indexOf(l)&&(l===x||l===w||l===k)&&(r=l)}if(!r||!e[r])return!1;var c=e[r].toLowerCase();return n[r]||(n[r]={}),a[r]||(a[r]={}),!n[r][c]&&(a[r][c]=!0,!0)}).reverse().forEach(function(t){return e.push(t)});for(var o=Object.keys(a),i=0;i<o.length;i++){var l=o[i],s=g()({},n[l],a[l]);n[l]=s}return e},[]).reverse()},L=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},R=(n=Date.now(),function(e){var t=Date.now();t-n>16?(n=t,e(t)):setTimeout(function(){R(e)},0)}),H=function(e){return clearTimeout(e)},W="u">typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||R:r.g.requestAnimationFrame||R,M="u">typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||H:r.g.cancelAnimationFrame||H,q=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},B=null,U=function(e,t){var r=e.baseTag,n=e.bodyAttributes,a=e.htmlAttributes,o=e.linkTags,i=e.metaTags,l=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,d=e.styleTags,u=e.title,p=e.titleAttributes;G(b.BODY,n),G(b.HTML,a),V(u,p);var m={baseTag:Q(b.BASE,r),linkTags:Q(b.LINK,o),metaTags:Q(b.META,i),noscriptTags:Q(b.NOSCRIPT,l),scriptTags:Q(b.SCRIPT,c),styleTags:Q(b.STYLE,d)},h={},g={};Object.keys(m).forEach(function(e){var t=m[e],r=t.newTags,n=t.oldTags;r.length&&(h[e]=r),n.length&&(g[e]=m[e].oldTags)}),t&&t(),s(e,h,g)},K=function(e){return Array.isArray(e)?e.join(""):e},V=function(e,t){void 0!==e&&document.title!==e&&(document.title=K(e)),G(b.TITLE,t)},G=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(C),a=n?n.split(","):[],o=[].concat(a),i=Object.keys(t),l=0;l<i.length;l++){var s=i[l],c=t[s]||"";r.getAttribute(s)!==c&&r.setAttribute(s,c),-1===a.indexOf(s)&&a.push(s);var d=o.indexOf(s);-1!==d&&o.splice(d,1)}for(var u=o.length-1;u>=0;u--)r.removeAttribute(o[u]);a.length===o.length?r.removeAttribute(C):r.getAttribute(C)!==i.join(",")&&r.setAttribute(C,i.join(","))}},Q=function(e,t){var r=document.head||document.querySelector(b.HEAD),n=r.querySelectorAll(e+"["+C+"]"),a=Array.prototype.slice.call(n),o=[],i=void 0;return t&&t.length&&t.forEach(function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===x)r.innerHTML=t.innerHTML;else if(n===w)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[n]?"":t[n];r.setAttribute(n,l)}r.setAttribute(C,"true"),a.some(function(e,t){return i=t,r.isEqualNode(e)})?a.splice(i,1):o.push(r)}),a.forEach(function(e){return e.parentNode.removeChild(e)}),o.forEach(function(e){return r.appendChild(e)}),{oldTags:a,newTags:o}},J=function(e){return Object.keys(e).reduce(function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n},"")},X=function(e,t,r,n){var a=J(r),o=K(t);return a?"<"+e+" "+C+'="true" '+a+">"+F(o,n)+"</"+e+">":"<"+e+" "+C+'="true">'+F(o,n)+"</"+e+">"},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,r){return t[A[r]||r]=e[r],t},t)},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,r){return t[S[r]||r]=e[r],t},t)}
1,et=function(e,t,r){var n,a=Z(r,((n={key:t})[C]=!0,n));return[m.createElement(b.TITLE,a,t)]},er=function(e,t,r){switch(e){case b.TITLE:return{toComponent:function(){return et(e,t.title,t.titleAttributes)},toString:function(){return X(e,t.title,t.titleAttributes,r)}};case f:case y:return{toComponent:function(){return Z(t)},toString:function(){return J(t)}};default:return{toComponent:function(){return t.map(function(t,r){var n,a=((n={key:r})[C]=!0,n);return Object.keys(t).forEach(function(e){var r=A[e]||e;r===x||r===w?a.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:a[r]=t[e]}),m.createElement(e,a)})},toString:function(){return t.reduce(function(t,n){var a=Object.keys(n).filter(function(e){return e!==x&&e!==w}).reduce(function(e,t){var a=void 0===n[t]?t:t+'="'+F(n[t],r)+'"';return e?e+" "+a:a},""),o=n.innerHTML||n.cssText||"",i=-1===Y.indexOf(e);return t+"<"+e+" "+C+'="true" '+a+(i?"/>":">"+o+"</"+e+">")},"")}}}},en=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,a=e.htmlAttributes,o=e.linkTags,i=e.metaTags,l=e.noscriptTags,s=e.scriptTags,c=e.styleTags,d=e.title,u=e.titleAttributes;return{base:er(b.BASE,t,n),bodyAttributes:er(f,r,n),htmlAttributes:er(y,a,n),link:er(b.LINK,o,n),meta:er(b.META,i,n),noscript:er(b.NOSCRIPT,l,n),script:er(b.SCRIPT,s,n),style:er(b.STYLE,c,n),title:er(b.TITLE,{title:void 0===d?"":d,titleAttributes:u},n)}},ea=(a=d()(function(e){var t;return{baseTag:(t=[v,"target"],e.filter(function(e){return void 0!==e[b.BASE]}).map(function(e){return e[b.BASE]}).reverse().reduce(function(e,r){if(!e.length)for(var n=Object.keys(r),a=0;a<n.length;a++){var o=n[a].toLowerCase();if(-1!==t.indexOf(o)&&r[o])return e.concat(r)}return e},[])),bodyAttributes:N(f,e),defer:L(e,"defer"),encode:L(e,"encodeSpecialCharacters"),htmlAttributes:N(y,e),linkTags:P(b.LINK,["rel",v],e),metaTags:P(b.META,["name","charset","http-equiv","property",k],e),noscriptTags:P(b.NOSCRIPT,[x],e),onChangeClientState:L(e,"onChangeClientState")||function(){},scriptTags:P(b.SCRIPT,["src",x],e),styleTags:P(b.STYLE,[w],e),title:z(e),titleAttributes:N("titleAttributes",e)}},function(e){B&&M(B),e.defer?B=W(function(){U(e,function(){B=null})}):(U(e),B=null)},en)(function(){return null}),i=o=function(e){function t(){return _(this,t),E(this,e.apply(this,arguments))}return I(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case b.SCRIPT:case b.NOSCRIPT:return{innerHTML:t};case b.STYLE:return{cssText:t}}throw Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,a=e.newChildProps,o=e.nestedChildren;return O({},n,((t={})[r.type]=[].concat(n[r.type]||[],[O({},a,this.mapNestedChildrenToProps(r,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(n.type){case b.TITLE:return O({},a,((t={})[n.type]=i,t.titleAttributes=O({},o),t));case b.BODY:return O({},a,{bodyAttributes:O({},o)});case b.HTML:return O({},a,{htmlAttributes:O({},o)})}return O({},a,((r={})[n.type]=O({},o),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=O({},t);return Object.keys(e).forEach(function(t){var n;r=O({},r,((n={})[t]=e[t],n))}),r}
1,t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return m.Children.forEach(e,function(e){if(e&&e.props){var a=e.props,o=a.children,i=ee(j(a,["children"]));switch(r.warnOnInvalidChildren(e,o),e.type){case b.LINK:case b.META:case b.NOSCRIPT:case b.SCRIPT:case b.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:i,nestedChildren:o});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:o})}}}),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=O({},j(e,["children"]));return t&&(r=this.mapChildrenToProps(t,r)),m.createElement(a,r)},D(t,null,[{key:"canUseDOM",set:function(e){a.canUseDOM=e}}]),t}(m.Component),o.propTypes={base:s().object,bodyAttributes:s().object,children:s().oneOfType([s().arrayOf(s().node),s().node]),defaultTitle:s().string,defer:s().bool,encodeSpecialCharacters:s().bool,htmlAttributes:s().object,link:s().arrayOf(s().object),meta:s().arrayOf(s().object),noscript:s().arrayOf(s().object),onChangeClientState:s().func,script:s().arrayOf(s().object),style:s().arrayOf(s().object),title:s().string,titleAttributes:s().object,titleTemplate:s().string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=a.peek,o.rewind=function(){var e=a.rewind();return e||(e=en({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},i);ea.renderStatic=ea.rewind,r.d(t,{m:()=>ea})},86399(e,t,r){"use strict";var n=r(14041),a=n&&"object"==typeof n&&"default"in n?n.default:n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=!!("u">typeof window&&window.document&&window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw Error("Expected mapStateOnServer to either be undefined or a function.");return function(l){if("function"!=typeof l)throw Error("Expected WrappedComponent to be a React component.");var s,c=[];function d(){s=e(c.map(function(e){return e.props})),u.canUseDOM?t(s):r&&(s=r(s))}var u=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t.peek=function(){return s},t.rewind=function(){if(t.canUseDOM)throw Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=s;return s=void 0,c=[],e};var r=t.prototype;return r.UNSAFE_componentWillMount=function(){c.push(this),d()},r.componentDidUpdate=function(){d()},r.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),d()},r.render=function(){return a.createElement(l,this.props)},t}(n.PureComponent);return o(u,"displayName","SideEffect("+(l.displayName||l.name||"Component")+")"),o(u,"canUseDOM",i),u}}},13055(e,t,r){"use strict";var n=r(54380);let a=(0,r(29470).A)("div",{target:"e1mvrpo20"})(({theme:e,animateIn:t})=>({color:e.color.raw.red100,overflow:"hidden",fontSize:14,lineHeight:"17px",...t?{maxHeight:"100px"}:{maxHeight:"0"},transition:"all .25s ease-in"}));function o({error:e,type:t}){let r=!!e?.message;return t&&e?.type!==t&&(r=!1),(0,n.Y)(a,{animateIn:r,children:r&&(0,n.Y)("div",{role:"alert",children:e?.message||""})})}r.d(t,{Q:()=>o})},57328(e,t,r){"use strict";r.d(t,{SignupPage:()=>rY});var n=r(54380),a=r(93285),o=r(33664),i=r(49008);let l=r.p+"static/images/components/44009c3752.png";var s=r(16835),c=r(79071),d=r.n(c),u=r(14041),p=r(73537);let m=(0,u.createContext)({renderError:d(),setError:d(),error:"",resetError:d()}),h=({title:e="Something went wrong",dismiss:t,error:r})=>r?(0,n.FD)(p.U,{kind:p.U.KIND.ERROR,onDismiss:t,isDismissible:!0,children:[(0,n.Y)(p.U.Title,{children:e}),r]}):null,g=({children:e})=>{let[t,r]=(0,u.useState)(),a=(0,u.useCallback)(()=>r(void 0),[]),o=(0,u.useCallback)(e=>t&&(0,n.Y)("div",{style:{marginBottom:"20px"},children:(0,n.Y)(h,{title:e.title,dismiss:a,error:t})}),[t,a]);return(0,n.Y)(m.Provider,{value:{error:t,setError:r,resetError:a,renderError:o},children:e})};var f=r(20820),y=r(29470),b=r(26166);let w=r.p+"static/images/components/4c76825821.png";var v=r(76983);let x=(0,y.A)("div",{target:"elk6zd50"}
1)({backgroundColor:(0,f.RQ)("light").color.semantic.background.canvas,height:"100vh",padding:"min(50px, 9vw)",paddingLeft:"min(77px, 9vw)",boxSizing:"border-box",overflow:"hidden",position:"relative"}),k=(0,y.A)("div",{target:"elk6zd51"})({marginTop:180,color:(0,f.RQ)().color.semantic.text.main,fontSize:(0,f.RQ)().typography.size.large,fontWeight:"bold",marginInline:"auto",maxWidth:340,position:"relative"}),A=(0,y.A)("div",{target:"elk6zd52"})({position:"absolute",width:"100%",height:570,bottom:0,backgroundSize:200,backgroundImage:`url(${w})`,opacity:.6,clipPath:"polygon(0% 15%, 100% 0%, 100% 100%, 0% 100%)",backgroundColor:"transparent",pointerEvents:"none"}),S=({children:e,theme:t})=>(0,n.FD)(x,{children:[(0,n.Y)(A,{}),(0,n.Y)(v.U,{theme:t}),(0,n.Y)(k,{children:e})]}),Y=(0,y.A)("div",{target:"e1g242b20"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",flex:1,lineHeight:"initial"}),C=(0,y.A)("div",{target:"e1g242b21"})({marginTop:(0,f.RQ)().space.space4,color:(0,f.RQ)().color.raw.purple80}),T=({loadingPhase:e="default"})=>{let t=(e=>{switch(e){case"success":return"Loading your workspace...";case"default":return"We're settings things up for you, hang tight..."}})(e);return(0,n.Y)(S,{theme:"light",children:(0,n.FD)(Y,{children:[t,(0,n.Y)(C,{children:(0,n.Y)(b.X,{fill:"currentColor",size:32})})]})})};var _=r(60790),D=r(86090),O=r(32158),I=r(93864),j=r(10435),E=r(74984),F=r(7971),z=r(45036),N=r(91259);let P=z.A.promisify(N.A.fetch),L=(0,u.createContext)({}),R=({children:e})=>{let t,{ready:r}=(()=>{let e=(0,E.HX)(),[t,{on:r}]=(0,O.Hn)(!1);return(0,u.useEffect)(()=>{let n=async()=>{try{let t=await (0,I.SO)();if(e.signupId)r();else if(t)(0,E.V2)((0,D.tW)((0,F.Gs)(F.Bi.CREATE_ORGANIZATION)));else{let{pathname:e,search:t,hash:r}=window.location;(0,E.V2)(`/login?dest=${encodeURIComponent(e+t+r)}`)}}catch(t){t instanceof Error&&(0,j.logError)(t,e.signupId?{signupId:e.signupId}:{}),r()}};t||(0,_.c)(n())},[r,e.signupId,t]),{ready:t}})(),a=(t=(e=>{let[t,{off:r}]=(0,O.Hn)(!0),[n,a]=(0,u.useState)(null),[o,i]=(0,u.useState)(!0),[l,s]=(0,u.useState)([]),[c,d]=(0,u.useState)([]),[p,m]=(0,u.useState)(),h=(0,E.HX)();return(0,u.useEffect)(()=>{let n=async()=>{if(h.signupId)try{let e,t,[r,n,o,l]=await Promise.allSettled([(0,I.w3)(),(e=h.signupId,N.A.Promises.fetchPendingInvites(e)),(t=h.signupId,N.A.Promises.fetchAnyMatchingDomains(t)),P(h.signupId)]);if("fulfilled"===n.status&&s(n.value),"fulfilled"===o.status&&d(o.value),"fulfilled"===r.status){let e=r.value;i(e)}else i(!0);if("fulfilled"===l.status){a(l.value);let e={userId:String(l.value.user_id),email:l.value.email};(0,j.SS)(e)}else m(l.reason)}catch(e){i(!0)}finally{r()}};t&&e&&h.signupId&&(0,_.c)(n())},[t,e,h.signupId,r]),{signup:n,error:p,isUserGDPR:o,isLoading:t,pendingInvites:l,matchingDomains:c}})(r),(e=>{let[t,r]=(0,O.Hn)();return(0,u.useEffect)(()=>{let t=setTimeout(r.on,e);return()=>{clearTimeout(t)}},[]),t})(1500)?t:{...t,isLoading:!0});return(0,n.Y)(L.Provider,{value:a,children:a.isLoading?(0,n.Y)(T,{}):e})},H=()=>(0,u.useContext)(L);var W=r(68916);let M=(0,y.A)("div",{target:"e1jop08l0"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",flex:1,lineHeight:"initial",marginTop:"-10vh"}),q=(0,y.A)("h2",{target:"e1jop08l1"})(({theme:e})=>({color:(0,f.RQ)("light").color.semantic.text.main,margin:`${e.space.space2}px ${e.space.space7}px`,...e.typography.variant.sectionHeadingLarge,[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{fontSize:20,padding:`0 ${e.space.space2}px`,marginInline:0}})),B=(0,y.A)("div",{target:"e1jop08l2"})(({theme:e})=>({fontSize:14,marginTop:20,color:(0,f.RQ)("light").color.semantic.text.secondary,lineHeight:"initial",width:650,maxWidth:"90vw",[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{fontSize:16,padding:`0 ${e.space.space2}px`}})),U={"Logout Required":()=>(0,n.FD)(n.FK,{children:[(0,n.Y)(q,{children:"Looks like you're already logged in"}),(0,n.FD)(B,{children:["To create a new account, you'll need to"," ",(0,n.Y)("a",{href:"#",onClick:e=>{e.preventDefault(),(0,W.q)({url:window.location.href})},role:"button",children:"logout"})," ","first."]})]})},K=()=>(0,n.FD)(n.FK,{children:[(0,n.Y)(q,{children:"Oops, looks like this code has already been used"}),(0,n.FD)(B,{children:["If you already have an account, sign in ",(0,n.Y)("a",{href:(0,E.jg)(E.Bi.LOGIN),children:"here"}),"."]})]}),V=({error:e})=>{let t=U[e]??K;return(0,n.Y)(S,{children:(0,n.FD)(M,{children:[(0,n.Y)(f.In,{icon:"Hourglass",size:38,weight:"duotone",fill:"interactive"}),(0,n.Y)(t,{})]})})};var G=r(60861),Q=r(20072),J=r(70197),X=r(55094),Z=r(64459),ee=r(62020),et=r(93655),er=r.n(et);let en=(e,t=[])=>()=>new Promise((r,n)=>e(...er()(t)?t(r,n):[...t,r,n]));var ea=r(21909);let eo=async()=>{X.A.get(Z.Wk)||await en(ea.Mp)(),X.A.get(Z.vX)||await en(ea.qY)()},ei=async(e,{sso:t,signupId:r})=>{let{password:n,password_confirm:a,name:o,...i}=e,l={...i,user_name:o,user_password:n};try{let n,a,o=[(n=String(r),a=t?"join-sso":"join",N.A.Promises.registerUser(n,a,l)),...e&&e.invite_ids&&e.invite_ids?.length>0&&r?[((...e)=>N.A.Promises.deleteSignup(...e))(r)]:[]];return Promise.all(o)}catch(e){return Promise.reject(e)}},el=e=>ee.A.redirectFromSignup(e);var es=r(75620),ec=r(32508),ed=r(42356),eu=r(97444),ep=r(7313);let em=(0,y.A)(ep.K,{target:"e1w8qxbh0"})(({isVisible:e})=>({display:e?"block":"none",position:"absolute",top:"20px",right:"10px",transform:"translateY(-50%)"}));
1class eh extends Error{type="ShortcutValidationError"}class eg extends Error{type="ShortcutEntitlementError"}var ef=r(79716),ey=r(15428);let eb=(0,y.A)("h1",{target:"e19jwnpp0"})(({theme:e})=>({margin:0,padding:0,...e.typography.variant.headingMain,color:e.color.text.main})),ew=(0,y.A)("form",{target:"e19jwnpp1"})({width:"100%",minWidth:"225px",maxWidth:"460px",margin:"auto"}),ev=(0,y.A)("label",{target:"e19jwnpp2"})(({theme:e})=>({display:"flex",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.mediumLarge,lineHeight:e.typography.lineHeight.large,marginBottom:e.space.space1})),ex=(0,y.A)(ev,{target:"e19jwnpp3"})(({theme:e})=>({marginTop:e.space.space2})),ek=(0,y.A)("input",{target:"e19jwnpp4"})(({theme:e})=>({height:"44px",paddingLeft:" 14px",marginBottom:6,width:"100%",fontSize:16,outline:"none",boxShadow:"inset 0px 2px 7px rgba(0, 0, 0, 0.05)",border:`1px solid ${e.color.raw.gray40}`,boxSizing:"border-box",...e.radius.radius2,":focus, :focus-visible":{...e.border.focus},'&[aria-invalid="true"]':{outlineOffset:-2,outlineWidth:2,outlineStyle:"solid",outlineColor:e.color.raw.red80},[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{maxWidth:"unset"}})),eA=(0,y.A)("p",{target:"e19jwnpp5"})(({theme:e})=>({fontSize:e.typography.size.mediumLarge,fontWeight:e.typography.weight.regular,lineHeight:e.typography.lineHeight.base,margin:"8px 0px 36px",minWidth:"200px",color:e.color.raw.gray60,[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{fontSize:".93rem"}})),eS=(0,y.A)("div",{target:"e19jwnpp6"})(({theme:e})=>({marginTop:e.space.space6,display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:e.space.space2,[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{flexDirection:"column",justifyContent:"stretch",gap:e.space.space2}})),eY=(0,y.A)("div",{target:"e19jwnpp7"})(({theme:e})=>({display:"flex",gap:e.space.space2})),eC=(0,y.A)(ef.$n,{target:"e19jwnpp8"})(({theme:e})=>({color:e.color.raw.gray80,[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{display:"none"},':hover:not([disabled]), &.focus-visible, :focus-visible, &[data-hovered="true"]':{background:e.color.raw.gray30,color:e.color.raw.gray80}})),eT=(0,y.A)(ef.$n,{target:"e19jwnpp9"})(({theme:e})=>({flex:"none",width:"130px",boxShadow:" 0px 1px 0px rgba(0, 0, 0, 0.1)",[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{width:"100%"}})),e_=(0,y.A)("div",{target:"e19jwnpp10"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start"}),eD=(0,y.A)("div",{target:"e19jwnpp11"})(({theme:e})=>({display:"flex",alignItems:"flex-start",gap:e.space.space2})),eO=(0,y.A)("label",{target:"e19jwnpp12"})(({theme:e})=>({fontSize:14,color:e.color.raw.gray60,lineHeight:1.4,marginTop:-4})),eI=(0,ey.AH)({[`${eT}, ${eA}, ${eb}`]:{width:"100%"},[`${eT}, ${eC}`]:{fontSize:14,height:40},[`${ev}, ${ex}`]:{fontSize:13,textAlign:"left"},[`${eO}`]:{textAlign:"left"},[`${eY}`]:{flexDirection:"column-reverse",justifyContent:"stretch"},[`${eS}`]:{flexDirection:"column-reverse",justifyContent:"stretch"},[`${ew}`]:{maxWidth:360},[`${eC} span`]:{display:"none"},[`${ek}`]:{boxShadow:"none",border:"1px solid var(--shapes-borderSecondary)",height:40}}),ej=(0,y.A)("div",{target:"e19jwnpp13"})(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.space.space7,flexWrap:"wrap",justifyContent:"center",marginBlock:e.space.space10,[`@media (max-width: ${e.breakpoint.mobile.maximum}px)`]:{flexDirection:"column"}})),eE="invite-form",eF=(0,y.A)("div",{target:"etzf0s10"})({position:"relative"}),ez=({name:e="",isUserGDPR:t,sso:r,is_oauth:a,onCreateAccount:o})=>{let[i,l]=(0,u.useState)(!1),[s,c]=(0,u.useState)(""),[d,m]=(0,O.Hn)(),[h,g]=(0,u.useState)(!1);(0,u.useEffect)(()=>{ec.A.init(`#${eE}`);let e=`#${eE} .password input`;return(0,_.c)((0,es.T)(e)),()=>{ec.A.destroy(`#${eE}`),(0,es.z)(`#${eE}`)}},[]);let[f,{on:y,off:b}]=(0,O.Hn)(),w=async e=>{e.preventDefault();let n=$(`#${eE}`);if(ec.A.isValid(n)){y();let n=new FormData(e.target),i={name:n.get("name"),password:n.get("password"),password_confirm:n.get("password"),profession:n.get("profession"),product_updates:!0,accept_terms:!0};(r||a)&&(delete i.password,delete i.password_confirm),t&&(i.product_updates=$("#product_updates").is(":checked"),i.accept_terms=$("#terms").is(":checked"));try{await o(i)}catch(e){b(),e instanceof eh?c(e.message):e instanceof eg?l(!0):c("We were unable to save.")}}};return i?(0,n.Y)(ed.uc,{}):(0,n.FD)(eN,{id:eE,className:"login-form-tab",...r?{"data-sso":""}:{},children:[(0,n.Y)(eb,{children:"Setup your account"}),(0,n.FD)(eP,{onSubmit:(0,_.$)(w),noValidate:!0,children:[(0,n.FD)(eL,{className:"name","data-validate":"notEmpty",children:[(0,n.Y)("label",{htmlFor:"signup-name",children:"Full Name"}),(0,n.Y)(e$,{id:"signup-name","data-on-keyup":"autofill",type:"text",name:"name",spellCheck:"false",className:"textfield",placeholder:"First Last","data-tabindex":!0,defaultValue:e,autoFocus:!0})]}
1),!a&&!r&&(0,n.FD)(eL,{className:"password password-strength-container","data-validate":"notEmpty",children:[(0,n.Y)("label",{htmlFor:"password-input",children:"Create a Password"}),(0,n.FD)(eF,{children:[(0,n.Y)(e$,{id:"password-input",onChange:e=>{g(e.target.value.length>0)},type:d?"text":"password",placeholder:"Minimum 8 characters",name:"password",spellCheck:"false",className:"textfield","data-tabindex":!0}),(0,n.Y)(em,{onClick:e=>{e.preventDefault(),m()},type:"button",label:`${d?"hide":"show"} password`,icon:`${d?"ViewOff":"View"}`,isVisible:h})]}),(0,n.FD)("div",{className:"clearfix password-strength","data-tooltip":"Password Strength",children:[(0,n.Y)("span",{className:"bar bar-1"}),(0,n.Y)("span",{className:"bar bar-2"}),(0,n.Y)("span",{className:"bar bar-3"}),(0,n.Y)("span",{className:"bar bar-4"})]})]}),(0,n.Y)(eL,{children:(0,n.Y)(eu.x,{})}),t&&(0,n.FD)(n.FK,{children:[(0,n.FD)(eL,{className:"product-updates-signup",children:[(0,n.FD)(eW,{htmlFor:"product_updates",children:["Receive occasional updates from ","Shortcut","."]}),(0,n.Y)(eM,{type:"checkbox",name:"product_updates",className:"product_updates",id:"product_updates",defaultChecked:!0})]}),(0,n.FD)(eL,{className:"you-agree-to-our-terms","data-validate":"isChecked","data-validate-message":"You must agree to our terms to create an account.",children:[(0,n.FD)(eW,{htmlFor:"terms",children:["I agree to the"," ",(0,n.Y)("a",{href:"https://www.shortcut.com/terms",rel:"noopener noreferrer",target:"_blank",children:"Terms of Service"})," ","and"," ",(0,n.Y)("a",{href:"https://www.shortcut.com/privacy",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"}),"."]}),(0,n.Y)(eM,{type:"checkbox",name:"accept_terms",className:"terms",id:"terms"})]})]}),s&&(0,n.Y)(p.U,{kind:p.U.KIND.ERROR,children:(0,n.Y)("div",{style:{whiteSpace:"pre-line"},children:s})}),(0,n.Y)(eH,{children:(0,n.Y)(ef.$n,{fullWidth:!0,kind:"primary",isDisabled:f,type:"submit",children:"Create Account"})}),!t&&(0,n.FD)(eR,{children:["By clicking the “Create Account” button, you agree to ","Shortcut","’s"," ",(0,n.Y)("a",{href:"https://www.shortcut.com/terms",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",(0,n.Y)("a",{href:"https://www.shortcut.com/privacy",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),"."]})]})]})},eN=(0,y.A)("div",{target:"etzf0s11"})(({theme:e})=>({"input, select, textarea":{background:`${e.color.raw.white} !important`,color:e.color.raw.gray80,"&::placeholder":{color:e.color.text.disabled}},[`${eb}`]:{textAlign:"center"}})),eP=(0,y.A)("form",{target:"etzf0s12"})(({theme:e})=>({margin:"0 auto",background:"none !important",boxShadow:"none !important",label:{color:"var(--paragraphTextColor)",display:"block",fontSize:14,fontWeight:600,lineHeight:1.2,margin:"0 0 5px"},select:{fontSize:"16px","&:required:invalid":{color:e.color.text.disabled}}})),e$=(0,y.A)("input",{target:"etzf0s13"})({boxSizing:"border-box",fontSize:"16px !important",padding:"8px 12px !important",width:"100%"}),eL=(0,y.A)("div",{target:"etzf0s14"})({position:"relative",margin:"10px 0 18px"}),eR=(0,y.A)("p",{target:"etzf0s15"})(({theme:e})=>({marginTop:"40px",fontSize:"12px",lineHeight:"16px",color:e.color.raw.gray80})),eH=(0,y.A)("div",{target:"etzf0s16"})({paddingTop:"20px"}),eW=(0,y.A)("label",{target:"etzf0s17"})({cursor:"pointer",padding:"0 0 4px 26px",fontWeight:"400 !important"}),eM=(0,y.A)("input",{target:"etzf0s18"})({width:"auto !important",position:"absolute",left:0,top:2}),eq=({email:e,name:t="",isUserGDPR:r,sso:a,is_oauth:o,signupId:i})=>{let l=(0,D.zy)(),[s,c]=(0,u.useState)("create-account"),d=(0,I._B)(),p=async e=>{var t,r;let n,o,[s,u]=(t=l.state.selectedValues,r=l.state.groupedByOrgInvites,n=[],o=[],Object.values(r).forEach(e=>{e.forEach(({id:e,inviteId:r})=>{r&&t.includes(r)?n.push(r):!r&&t.includes(e)&&o.push(e)})}),[n,o]);e.invite_ids=s,e.workspace2_ids=u;let[p]=await ei(e,{sso:a,signupId:i});if(p.success)await eo(),d&&(0,Q.eG)().length>0?c("join-team"):await el();else if("active-seats-create"===p.entitlement_tag)throw new eg;else throw new eh(p.message)};return(0,n.FD)(n.FK,{children:["create-account"===s&&(0,n.Y)(ez,{onCreateAccount:p,email:e,name:t,isUserGDPR:r,is_oauth:o,sso:a}),"join-team"===s&&(0,n.Y)(J.R,{permission:d,onContinue:(0,_.$)(()=>el(d?.id))})]})},eB=()=>{let{isUserGDPR:e,signup:t}=H(),r=(()=>{let{pendingInvites:e,matchingDomains:t}=(0,u.useContext)(L);return e?.some(e=>"sso-required-for-all"===e.organization2.sign_on_policy)||t?.some(e=>"sso-required-for-all"===e.organization2.sign_on_policy)})();return(0,n.FD)(n.FK,{children:[(0,n.Y)(v.U,{}),(0,n.Y)(eU,{"data-perma-id":"pending-invites",children:(0,n.Y)(eq,{email:t?.email||"",isUserGDPR:e,sso:r,is_oauth:!1,signupId:t?.id||""})})]})},eU=(0,y.A)("div",{target:"eraayhb0"})({[`@media (${G.H.maxWidth600})`]:{width:"auto",padding:"0 15px"},display:"flex",flexDirection:"column",alignItems:"center",width:"480px",margin:"0 auto 40px",padding:"auto"});var eK=r(16494),eV=r(87809),eG=r.n(eV),eQ=r(56622),eJ=r.n(eQ),eX=r(57663);let eZ=r.p+"static/images/svg/favicon.c846ccb392.svg";var e0=r(77450),e1=r(89668),e2=r(45108),e6=r(40378);let e4=(0,y.A)("div",{target:"e1rw8nju0"})(({theme:e})=>
1({marginTop:"15px",fontSize:"14px",lineHeight:1.5,textAlign:"center",color:e.color.text.secondary})),e8=(0,y.A)("div",{target:"e1rw8nju1"})(({theme:e})=>({...e.radius.radius2,background:e.color.background.content,border:`1px solid ${e.color.border.secondary}`,width:"100%"})),e3=(0,y.A)("div",{target:"e1rw8nju2"})(({iconUrl:e})=>({flex:"0 0 36px",width:"36px",height:"36px",backgroundImage:`url('${e||eZ}')`,backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"})),e5=(0,y.A)("strong",{target:"e1rw8nju3"})(({theme:e})=>({fontSize:16,fontWeight:400,lineHeight:"20px",maxWidth:325,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:e.color.text.main,[`@media (max-width: ${e.breakpoint.mobile.maximum}px)`]:{maxWidth:200}})),e7=({children:e,...t})=>{let r=(0,eK.u)();return(0,n.Y)(e2.vg,{css:{...(0,eX.Ms)(r.space.space4)},...t,children:e})},e9=(0,y.A)("div",{target:"e1rw8nju4"})({"> div > label":{"&:last-child":{borderBottom:"none"}}}),te=(0,y.A)(e0.M,{target:"e1rw8nju5"})(({theme:e})=>({whiteSpace:"nowrap",paddingLeft:e.space.space4})),tt=(0,y.A)(e5,{target:"e1rw8nju6"})({fontWeight:600,maxWidth:"none"}),tr=(0,y.A)("div",{target:"e1rw8nju7"})(({theme:e})=>({fontSize:13,lineHeight:1.5,color:e.color.text.secondary})),tn=({invites:e,theme:t,selectedValues:r,setSelectedValues:a,toggle:o,onToggle:i})=>{let l=e[0]||{},s=eJ()(e,["memberCount",e=>e.workspaceName?.toLowerCase()],["desc","asc"]),c=eG()(s,"workspaceName"),d=[];return Object.keys(c).forEach(e=>{let r=c[e],a=r.find(e=>e.inviteId)||r[0];d.push({id:a.id.toString(),label:((e,t)=>{let{memberCount:r}=e,a=1===r?`${r} Member`:`${r} Members`;return(0,n.FD)(e2.vg,{horizontally:!0,amount:16,align:"center",children:[(0,n.Y)(e3,{"data-testid":"workspace-icon",iconUrl:e.workspaceIconUrl}),(0,n.FD)(e2.vg,{vertically:!0,amount:8,children:[(0,n.Y)(e5,{"data-testid":"workspace-name",children:e.workspaceName}),(0,n.FD)(e2.vg,{horizontally:!0,amount:8,children:[e.inviteId?(0,n.Y)(e1.vu,{kind:"blue",children:"Invite Pending"}):null,(0,n.Y)(tr,{theme:t,children:a})]})]})]})})(a,t)})}),(0,n.Y)(u.Fragment,{children:(0,n.FD)(e8,{children:[(0,n.FD)(e7,{horizontally:!0,amount:"max",inline:!0,align:"center",children:[(0,n.Y)(tt,{"data-testid":"organization-name",children:l.organizationName}),d.length>1&&(0,n.Y)(te,{color:e0.M.COLORS.DustyBlue,onClick:i,children:o?"Unselect All":"Select All"})]}),(0,n.Y)(e9,{children:(0,n.Y)(e6.Dz,{items:d,selectedValues:r.map(e=>e.toString()),onChange:a,kind:e6.Dz.KIND.CHECKMARK})})]})},l.id)},ta=({groupedByOrgInvites:e,signupId:t})=>{let[r,a]=(0,u.useState)([]),[i,l]=(0,u.useState)({}),s=(0,eK.u)();return(0,n.FD)(e2.vg,{vertically:!0,amount:40,children:[(0,n.Y)(e2.vg,{vertically:!0,amount:24,children:Object.keys(e).map(t=>(0,n.Y)(tn,{invites:e[t],theme:s,selectedValues:r,setSelectedValues:r=>{let n=e[t],o=r.filter(e=>n.find(t=>t.id===e)).length===n.length;a(r),l(Object.assign({},i,{[t]:o}))},toggle:i[t],onToggle:()=>(({orgId:e,setToggleMap:t,toggleMap:r,groupedByOrgInvites:n,setSelectedValues:a,selectedValues:o})=>{a((({selectedVals:e,keyValuesMap:t,orgId:r,toggleMap:n})=>{let a=Object.keys(t),o=n[r]?t[r]:[];return e.length?o.concat(e.filter(e=>{let r=a.find(r=>t[r].includes(e));return!o.includes(e)&&(!r||!1!==n[r])})):o})({selectedVals:o,keyValuesMap:Object.keys(n).reduce((e,t)=>Object.assign(e,{[t]:n[t].map(e=>e.id)}),{}),orgId:e,toggleMap:{[e]:!r[e]}})),t(Object.assign({},r,{[e]:!r[e]}))})({orgId:t,setToggleMap:l,toggleMap:i,selectedValues:r,setSelectedValues:a,groupedByOrgInvites:e})},t))}),(0,n.FD)(e2.vg,{vertically:!0,amount:20,align:"center",children:[(0,n.Y)(o.N_,{"aria-disabled":!r.length,to:n=>r.length?{...n,pathname:(0,D.tW)((0,E.Gs)(E.Bi.JOIN_INVITE),{signupId:t}),state:{selectedValues:r,groupedByOrgInvites:e}}:{...n},children:(0,n.Y)(ef.$n,{kind:ef.$n.KIND.PRIMARY,fit:ef.$n.FIT.PILL,size:ef.$n.SIZE.XL,isDisabled:!r.length,children:"Join and Get Started"})}),(0,n.FD)(e4,{theme:s,children:["Not your organization?"," ",(0,n.Y)("a",{href:"/login",onClick:(0,E.d)("login"),children:"Try to sign in"})," ","with a different email address or ask your administrator for an invitation."]}),(0,n.Y)(o.N_,{to:e=>({...e,pathname:(0,D.tW)((0,E.Gs)(E.Bi.SIGNUP),{signupId:t}),state:{fromJoinOrg:!0}}),children:"Want to Create a new Organization?"})]})]})};var to=r(36233);let ti=[to.x1,to.UD,to.HR,to.Uw,to.T2],tl=(0,y.A)("div",{target:"e1877tg70"})(({theme:e})=>({[`@media (max-width: ${e.breakpoint.mobile.maximum}px)`]:{width:"auto",padding:"0 15px"},display:"flex",flexDirection:"column",alignItems:"center",width:"480px",margin:"0 auto 40px",padding:"auto"})),ts=(0,y.A)("h1",{target:"e1877tg71"})(({theme:e})=>({fontSize:20,fontWeight:600,lineHeight:1.2,textAlign:"center",color:e.color.text.main})),tc=(0,y.A)("h3",{target:"e1877tg72"})(({theme:e})=>({[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{width:"auto"},margin:"6px 0 30px",fontSize:"16px",fontWeight:500,width:"688px",lineHeight:1.5,textAlign:"center",color:e.color.text.secondary})),td=(0,y.A)("div",{target:"e1877tg73"})(({theme:e})=>({[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{width:"100%",margin:0},width:"480px",margin:"0 auto"}));function tu(){let e,{pendingInvites:t,matchingDomains:r,signup:a}=H();(0,u.useEffect)(()=>{(0,j.aH)(new to.wm({form_version:5}))},[]);let o=(e=(t||[]).reduce((e,t)=>
1(e[t.organization2.name]||(e[t.organization2.name]=[]),e[t.organization2.name].push({id:t.id,inviteId:t.id,organizationName:t.organization2.name,workspaceIconUrl:t.workspace2.icon_url,workspaceName:t.workspace2.name,memberCount:t.workspace2.member_count}),e),{}),r.forEach(t=>{e[t.organization2.name]||(e[t.organization2.name]=[]),e[t.organization2.name].push({id:t.id,memberCount:t.member_count,organizationName:t.organization2.name,workspaceIconUrl:t.icon_url,workspaceName:t.name})}),e);return(0,n.FD)(n.FK,{children:[(0,n.Y)(v.U,{}),(0,n.FD)(tl,{"data-perma-id":"pending-invites",children:[(0,n.FD)(ts,{children:["Looks like your team is already using ","Shortcut","!"]}),(0,n.Y)(tc,{children:"Select which workspaces you'd like to join, or create a new organization of your own."}),(0,n.Y)(td,{children:(0,n.Y)(ta,{groupedByOrgInvites:o,signupId:a?.id})})]})]})}var tp=r(59834);let tm=["aol.com","att.net","comcast.net","facebook.com","gmail.com","gmx.com","googlemail.com","google.com","hotmail.com","hotmail.co.uk","mac.com","me.com","mail.com","msn.com","live.com","sbcglobal.net","verizon.net","yahoo.com","yahoo.co.uk","hey.com","email.com","fastmail.fm","games.com","gmx.net","hush.com","hushmail.com","icloud.com","iname.com","inbox.com","lavabit.com","love.com","outlook.com","pobox.com","protonmail.ch","protonmail.com","tutanota.de","tutanota.com","tutamail.com","tuta.io","keemail.me","rocketmail.com","safe-mail.net","wow.com","ygm.com","ymail.com","zoho.com","yandex.com","bellsouth.net","charter.net","cox.net","earthlink.net","juno.com","btinternet.com","virginmedia.com","blueyonder.co.uk","freeserve.co.uk","live.co.uk","ntlworld.com","o2.co.uk","orange.net","sky.com","talktalk.co.uk","tiscali.co.uk","virgin.net","wanadoo.co.uk","bt.com","sina.com","sina.cn","qq.com","naver.com","hanmail.net","daum.net","nate.com","yahoo.co.jp","yahoo.co.kr","yahoo.co.id","yahoo.co.in","yahoo.com.sg","yahoo.com.ph","163.com","yeah.net","126.com","21cn.com","aliyun.com","foxmail.com","hotmail.fr","live.fr","laposte.net","yahoo.fr","wanadoo.fr","orange.fr","gmx.fr","sfr.fr","neuf.fr","free.fr","gmx.de","hotmail.de","live.de","online.de","t-online.de","web.de","yahoo.de","libero.it","virgilio.it","hotmail.it","aol.it","tiscali.it","alice.it","live.it","yahoo.it","email.it","tin.it","poste.it","teletu.it","mail.ru","rambler.ru","yandex.ru","ya.ru","list.ru","hotmail.be","live.be","skynet.be","voo.be","tvcablenet.be","telenet.be","hotmail.com.ar","live.com.ar","yahoo.com.ar","fibertel.com.ar","speedy.com.ar","arnet.com.ar","yahoo.com.mx","live.com.mx","hotmail.es","hotmail.com.mx","prodigy.net.mx","yahoo.ca","hotmail.ca","bell.net","shaw.ca","sympatico.ca","rogers.com","yahoo.com.br","hotmail.com.br","outlook.com.br","uol.com.br","bol.com.br","terra.com.br","ig.com.br","itelefonica.com.br","r7.com","zipmail.com.br","globo.com","globomail.com","oi.com.br"],th=(e="")=>tm.some(t=>e.indexOf(`@${t}`)>=0),tg={organization_name:"",user_name:"",user_password:"",product_updates:!0,accept_terms:!1,profession:"",requirePassword:!0,enable_auto_join:!0},tf=(0,u.createContext)({formState:{...tg},getFormState:()=>tg,setFormState:d()}),ty=({children:e})=>{let{signup:t,isUserGDPR:r}=H(),[,a]=(0,u.useState)({}),o=(0,u.useRef)({...tg,accept_terms:!r,product_updates:!r,organization_name:((e="")=>th(e)?"":function(e=""){return function(e=""){return e.replace(/-/g," ").split(" ").map(tp.ZH).join(" ")}(function(e=""){return e.match(/(?!([\w.-]+@))[\w-]+(?=.)/)?.[0]??""}(e))}(e))(t?.email)}),i=(0,u.useCallback)(()=>({...o.current}),[]),l=(0,u.useCallback)(e=>{o.current={...o.current,...e},a({})},[]);return(0,n.Y)(tf.Provider,{value:{formState:o.current,getFormState:i,setFormState:l},children:e})},tb=()=>(0,u.useContext)(tf);var tw=r(80959),tv=r(79247),tx=r(46769);let tk=(0,y.A)("div",{target:"e1nd8rnx0"})(({theme:e})=>({display:"flex",height:"100svh",color:e.color.raw.gray80,[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{flexDirection:"column"}})),tA=(0,y.A)("div",{target:"e1nd8rnx1"})(({theme:e})=>({position:"relative",zIndex:2,height:"100%",overflowY:"auto",display:"flex",flex:"auto",boxSizing:"border-box",padding:"50px 50px 50px 77px",marginBottom:70,background:e.color.background.canvas,[`@media (max-width: ${e.breakpoint.tablet.maximum}px)`]:{justifyContent:"center",padding:"30px 24px"},[`@media (max-width: ${e.breakpoint.mobile.maximum}px)`]:{marginBottom:0}})),tS=(0,y.A)("div",{target:"e1nd8rnx2"})({marginTop:"auto",marginBottom:"auto",width:"100%"}),tY=(0,ey.AH)({[`${tS}`]:{marginTop:30,textAlign:"center"},[`${tA}`]:{flexDirection:"column"}}),tC=(0,y.A)("div",{target:"e1nd8rnx3"})({position:"relative",width:"100vw",height:"100svh",overflow:"hidden"}),tT=({main:e})=>(0,n.FD)(tC,{css:(0,ey.AH)(eI,tY),children:[(0,n.Y)(ey.mL,{styles:[{[`${tv.UC}`]:(0,eX.mO)({overflow:"hidden",boxShadow:"none",borderRadius:0})}]}),(0,n.Y)(tk,{children:(0,n.FD)(tA,{children:[(0,n.Y)(v.U,{}),(0,n.Y)(tS,{children:e}),(0,n.Y)(tx._,{position:"static"})]})})]});var t_=r(18077),tD=r(4994),tO=r(82558),tI=r(57951),tj=r(12744);let tE=(0,y.A)("div",{target:"e3g43ms0"})({position:"absolute",top:0,left:0,background:"var(--blockBackgroun
1d)",height:"100vh",width:"100vw",zIndex:1003,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),tF=(0,u.forwardRef)((e,t)=>(0,n.Y)(tE,{ref:t,...(0,tI.Gy)(tI.le.SIGNUP_SUCCESS),children:(0,n.Y)(T,{loadingPhase:"success"})})),tz=(0,u.forwardRef)((e,t)=>(0,n.Y)(tj.A,{children:(0,n.Y)(tF,{ref:t})}));var tN=r(74962);async function tP(){try{let e;tO.A.renderLoadingOverlay(tz),await eo(),await ee.A.redirectFromSignup(e)}catch{tO.A.hide()}}async function t$(e){let{requirePassword:t,user_password:r,current_pm_tool:n,...a}=e.signupData,o=e.isOauth?{}:{user_password:r};await new Promise((t,r)=>{Promise.resolve(tD.A.put("/api/private/signups/"+e.signupId+"/create",{data:{...a,...o,...Array.isArray(n)&&n.length>0?{generic_qas:{current_pm_tool:n.join(",")}}:{}},onComplete:(n,a)=>{204===a.status?((0,tN.Rm)("New workspace created",{organization:e.signupData.organization_name,userName:e.signupData.user_name,userEmail:e.userEmail}),t()):409===a.status?t():r(n)},...e.autoJoinChecked?{actionContext:"signup"}:{}}
1)).catch(r)})}var tL=r(33987),tR=r(13055);let tH=(e="")=>e.trim().length===e.length;var tW=r(80824);let tM=(e={})=>{let{getFormState:t,setFormState:r}=tb(),n=(0,tW.mN)({defaultValues:t(),context:tf,...e}),{watch:a}=n;return(0,u.useEffect)(()=>{let e=a(e=>{r(e)});return()=>{e.unsubscribe()}},[r,a]),n},tq=(0,y.A)("div",{target:"e14pyi170"})(({theme:e})=>({paddingLeft:"2px",height:e.space.space5,overflow:"visible",whiteSpace:"nowrap",fontSize:14,color:e.color.raw.gray60,marginBottom:e.space.space6})),tB=(0,y.A)(eD,{target:"e14pyi171"})(({theme:e})=>({marginBottom:e.space.space6,textAlign:"left"}));function tU({goNext:e}){let{register:t,handleSubmit:r,formState:{errors:a,defaultValues:o,isValid:i},setFocus:l,setValue:s,watch:c}=tM({mode:"onTouched"}),d=c("enable_auto_join",o?.enable_auto_join),{signup:p}=H(),m=(0,u.useMemo)(()=>!th(p?.email),[p?.email]);(0,u.useEffect)(()=>{l("organization_name")},[l]);let h=(0,u.useCallback)(async t=>{let r=t.organization_name;o?.organization_name!==r&&(0,j.aH)(new to.Vi({original_value:r,edited_value:r,form_version:5})),await e(t)},[o?.organization_name,e]);return(0,n.FD)(ew,{onSubmit:(0,_.$)(r(h)),children:[(0,n.FD)(e_,{children:[(0,n.Y)(eb,{children:"Create your Workspace"}),(0,n.Y)(eA,{children:"A Workspace is a shared environment for team collaboration."}),(0,n.Y)(ev,{htmlFor:"organization_name",children:"Workspace Name"}),(0,n.Y)(ek,{...t("organization_name",{required:{value:!0,message:"Workspace is required"},minLength:{value:2,message:"Workspace should contain at least 2 characters"},maxLength:{value:50,message:"Workspace should contain no more than 50 characters"},validate:{isTrimmed:e=>!!tH(e)||"Leading/trailing whitespaces not allowed"}}),placeholder:"eg: Acme Inc.",id:"organization_name","aria-invalid":a.organization_name?.message?"true":"false","aria-describedby":"org_name_description",onKeyDown:e=>{"Enter"!==e.key||i||(e.preventDefault(),e.currentTarget.blur())}}),(0,n.FD)(tq,{children:[!a.organization_name?.message&&(0,n.Y)("div",{id:"org_name_description",children:"You can always change the name later"}),!!a.organization_name?.message&&(0,n.Y)(tR.Q,{error:a.organization_name})]}),m&&(0,n.FD)(tB,{children:[(0,n.Y)(tL.S,{id:"enable_auto_join",isSelected:d,onChange:()=>s("enable_auto_join",!d,{shouldDirty:!0,shouldTouch:!0})}),(0,n.Y)(eO,{htmlFor:"enable_auto_join",children:"Allow teammates with your email domain to join your Workspace"})]})]}),(0,n.Y)(eT,{kind:ef.$n.KIND.PRIMARY,type:"submit",isDisabled:!i,children:"Next Step"})]})}var tK=r(16314),tV=r(26571);let tG=(0,y.A)("div",{target:"e171zyru0"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.space.space3,width:180,alignItems:"center",[`@media (max-width:${e.breakpoint.mobile.maximum}px)`]:{flexDirection:"row",width:"auto"}})),tQ=(0,y.A)("h3",{target:"e171zyru1"})(({theme:e})=>({...e.typography.variant.sectionHeadingMedium,color:e.color.text.main,margin:0})),tJ=(0,y.A)("div",{target:"e171zyru2"})(({theme:e})=>({alignItems:"center",display:"flex",flexDirection:"column",gap:e.space.space3,[`@media (max-width:${e.breakpoint.mobile.maximum}px)`]:{alignItems:"start",gap:e.space.space1}})),tX=(0,y.A)("div",{target:"e171zyru3"})(({theme:e})=>({color:e.color.text.main,...e.typography.variant.body,textAlign:"center",[`@media (max-width:${e.breakpoint.mobile.maximum}px)`]:{textAlign:"left"}})),tZ=(0,y.A)("div",{target:"e171zyru4"})({flexShrink:0}),t0=({icon:e,title:t,children:r})=>{let a=(0,O.al)();return(0,n.FD)(tG,{children:[(0,n.Y)(tZ,{children:(0,n.Y)(f.In,{icon:e,size:a?30:40,weight:"duotone",fill:"interactive"})}),(0,n.FD)(tJ,{children:[(0,n.Y)(tQ,{children:t}),(0,n.Y)(tX,{children:r})]})]})},t1=({goNext:e,isFinished:t})=>(0,n.FD)(n.FK,{children:[(0,n.Y)(eb,{children:"Stay in the loop & get help anytime"}),(0,n.Y)(eA,{children:"Join the community, follow updates, and connect with our team anytime."}),(0,n.FD)(ej,{children:[(0,n.FD)(t0,{icon:"SlackLogo",title:"Join our Slack!",children:[(0,n.Y)("a",{target:"_blank",href:"https://shortcutcommunity.slack.com/join/shared_invite/zt-2oppvu8g4-tX~pRJV2FT4__PpWqhaYNA#/shared-invite/email",rel:"noopener noreferrer",children:"Join our Slack"})," ","and chat with the Shortcut team!"]}),(0,n.FD)(t0,{icon:"RedditLogo",title:"Reddit",children:["Ask questions, and engage in discussions at"," ",(0,n.Y)("a",{href:"https://www.reddit.com/r/shortcut/",target:"_blank",rel:"noopener noreferrer",children:"r/shortcut"}),"."]}),(0,n.FD)(t0,{icon:"XLogo",title:"Follow Us",children:["Follow us on X for updates"," ",(0,n.Y)("a",{href:"https://x.com/shortcut",target:"_blank",rel:"noopener noreferrer",children:"@shortcut"}),"."]})]}),(0,n.Y)(eS,{style:{maxWidth:360,marginInline:"auto"},children:(0,n.Y)(eT,{onClick:(0,_.$)(()=>e()),kind:"primary",isDisabled:t,children:t?(0,n.FD)(n.FK,{children:[(0,n.Y)(tV.s,{children:"Redirecting to workspace..."}),(0,n.Y)(tK.X,{fill:"currentColor"})]}):"Go to my workspace"})})]});var t2=r(11051),t6=r(30938),t4=r.n(t6),t8=r(98810),t3=r(41142),t5=r
1(96116);let{color:t7}=(0,f.RQ)("light"),t9=(0,y.A)(t5.N,{target:"e1of4xth0"})(({theme:e,hasError:t})=>({...e.radius.radius2,backgroundColor:t7.semantic.background.content,border:`1px solid ${t?t7.semantic.error.main:t7.semantic.border.secondary}`,boxSizing:"border-box",height:e.space.space8,width:"100%",padding:`${e.space.space3}px ${e.space.space4}px`,fontSize:e.typography.size.base,display:"grid",gridTemplateColumns:"auto auto",alignItems:"center",justifyContent:"space-between",gap:e.space.space2})),re=(0,y.A)("span",{target:"e1of4xth1"})(({theme:e,selected:t})=>({color:t?t7.semantic.text.main:t7.semantic.text.disabled,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:e.typography.lineHeight.base})),rt=(0,u.forwardRef)(({hasError:e,items:t,selectedValues:r,value:a,...o},i)=>{let l=r?.length?r.map(e=>t.find(t=>t.value===e)?.name).filter(e=>void 0!==e).join(", "):"Select tool(s)..";return(0,n.Y)(t8.Lk,{ref:i,items:t,value:a,...o,children:(0,n.FD)(t9,{hasError:e,children:[(0,n.Y)(re,{selected:a.length>0,children:l}),(0,n.Y)(t3.s,{pointDirection:t3.s.POINT_DIRECTION.DOWN,width:"10px",fill:t7.raw.gray40})]})})}),rr=(0,u.forwardRef)(({hasError:e,items:t,selectedValues:r,onChange:a},o)=>{let i=["Other","Aha"],l=t.map(([e,{label:t}])=>Object.assign({value:e,name:t},{Component:t8.h8,Icon:i.includes(e)?null:()=>(0,n.Y)(f.ZJ,{icon:e})}));return(0,n.Y)(t8.l6,{isSearchable:!0,items:l,label:"Select all applicable",onChange:a,selectedValues:r,TargetComponent:rt,targetComponentProps:{hasError:e,selectedValues:r},width:t8.l6.WIDTH.FULL,maxHeight:300})}),{color:rn}=(0,f.RQ)("light"),ra=(0,y.A)(t5.N,{target:"e1kegizd0"})(({theme:e,hasError:t})=>({...e.radius.radius2,backgroundColor:rn.semantic.background.content,border:`1px solid ${t?rn.semantic.error.main:rn.semantic.border.secondary}`,boxSizing:"border-box",height:e.space.space8,width:"100%",padding:`${e.space.space3}px ${e.space.space4}px`,fontSize:e.typography.size.base,display:"grid",gridTemplateColumns:"auto auto",alignItems:"center",justifyContent:"space-between",gap:e.space.space2})),ro=(0,y.A)("span",{target:"e1kegizd1"})(({selected:e})=>({color:e?rn.semantic.text.main:rn.semantic.text.disabled,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:1.3})),ri=(0,u.forwardRef)(({hasError:e,items:t,value:r,...a},o)=>{let i=r?.[0]??null,l=t.find(e=>e.value===i),s=l?.name||"Choose a profession...";return(0,n.Y)(t8.Lk,{ref:o,items:t,value:r,...a,children:(0,n.FD)(ra,{hasError:e,children:[(0,n.Y)(ro,{selected:!!i,children:s}),(0,n.Y)(t3.s,{pointDirection:t3.s.POINT_DIRECTION.DOWN,width:"10px",fill:rn.raw.gray40})]})})}),rl=(0,u.forwardRef)(({hasError:e,professions:t,selected:r,onChange:a},o)=>{let i=t.map(({value:e,name:t})=>({value:e,name:t}));return(0,n.Y)(t8.l6,{items:i,label:"Select a profession",onChange:e=>a(e[0]),selectedValues:r?[r]:[],TargetComponent:ri,targetComponentProps:{hasError:e},width:t8.l6.WIDTH.FULL,maxHeight:300,maxSelected:1})}),rs="https://www.shortcut.com/privacy",rc="https://www.shortcut.com/terms",rd=[...t4()(Object.entries({Asana:{label:"Asana"},Clickup:{label:"Clickup"},Github:{label:"GitHub Issues"},Googlesheets:{label:"Google Sheets"},Jira:{label:"Jira"},Linear:{label:"Linear"},Trello:{label:"Trello"},Notion:{label:"Notion"}})),...Object.entries({Other:{label:"Other"}})];function ru({goNext:e,submitting:t,isFinished:r}){let a=(0,u.useContext)(L).isUserGDPR??!1,o=(0,u.useContext)(L).signup?.is_oauth??!1,{signup:i}=(0,u.useContext)(L),[l,s]=(0,u.useState)(!1),{control:c,register:d,handleSubmit:p,formState:{errors:m,defaultValues:h,isValid:g},setValue:f,watch:y,trigger:w,setFocus:v}=tM({mode:"onTouched"}),x=y("product_updates",h?.product_updates),{field:{value:k,onChange:A}}=(0,tW.as)({control:c,name:"accept_terms",rules:{required:{value:!0,message:"You must accept the Terms and Conditions"}}}),S=(0,u.useRef)(null);(0,u.useEffect)(()=>{v("user_name")},[v]),(0,u.useEffect)(()=>{if(!o)return(0,_.c)((0,es.T)("#user_password").then(e=>e())),()=>{(0,es.z)("#user_password")}},[o]);let Y=y("user_password",h?.user_password);return(0,n.FD)(ew,{id:"profile_details",name:"Profile Details",onSubmit:(0,_.$)(p(e)),children:[(0,n.FD)(e_,{children:[(0,n.Y)(rm,{children:"Setup your account"}),(0,n.Y)(ev,{htmlFor:"user_name",children:"Full Name"}),(0,n.Y)(ek,{...d("user_name",{required:"Name is required",validate:{
1isTrimmed:e=>tH(e)||"Leading and trailing whitespaces are not allowed."},minLength:{value:2,message:"Name should contain at least 2 characters"},maxLength:{value:50,message:"Name should contain no more than 50 characters"}}),"aria-invalid":!!m.user_name?.message,id:"user_name",placeholder:"ex: Taylor Smith"}),(0,n.Y)(rf,{children:(0,n.Y)(tR.Q,{error:m.user_name})}),!o&&(0,n.FD)(n.FK,{children:[(0,n.Y)(ev,{htmlFor:"user_password",children:"Create a Password"}),(0,n.FD)(rg,{className:"password-strength-container",children:[(0,n.Y)(ek,{...d("user_password",{required:"Password is required",minLength:{value:8,message:"Password must be at least 8 characters long"},maxLength:{value:99,message:"Password must be less than 100 characters long"},validate:{isTrimmed:e=>tH(e)||"Leading/trailing whitespaces not allowed",sameAsUsername:(e,t)=>e?.toLowerCase()!==t.user_name?.toLowerCase()||"Password cannot be the same as your username.",sameAsEmail:e=>e?.toLowerCase()!==i?.email?.toLowerCase()||"Password cannot be the same as your email address."},onBlur:(0,_.$)(async e=>{e.relatedTarget!==S?.current&&e.relatedTarget?.id!=="user_name"&&await w("user_password")})}),"aria-invalid":!!m.user_password?.message,id:"user_password",type:l?"text":"password",placeholder:"Minimum 8 characters",onKeyDown:e=>{"Enter"!==e.key||g||(e.preventDefault(),e.currentTarget.blur())}}),(0,n.Y)(em,{ref:S,onClick:e=>{e.preventDefault(),s(!l)},onBlur:(0,_.$)(async e=>{e.relatedTarget?.id!=="user_password"&&await w("user_password")}),type:"button",label:`${l?"hide":"show"} password`,icon:`${l?"ViewOff":"View"}`,isVisible:Y?.length>0}),(0,n.FD)(rh,{className:"password-strength","data-tooltip":"Password Strength",children:[(0,n.Y)("span",{className:"bar bar-1"}),(0,n.Y)("span",{className:"bar bar-2"}),(0,n.Y)("span",{className:"bar bar-3"}),(0,n.Y)("span",{className:"bar bar-4"})]})]}),(0,n.Y)(rf,{children:(0,n.Y)(tR.Q,{error:m.user_password})})]}),(0,n.Y)(rp,{"data-testid":"profession-options",children:(0,n.Y)(tW.xI,{name:"profession",control:c,rules:{required:{value:!0,message:"This field is required"}},render:({field:{value:e,onChange:t},fieldState:{error:r}})=>(0,n.FD)(n.FK,{children:[(0,n.Y)(ev,{htmlFor:"profession",children:"What's your profession?"}),(0,n.Y)(rl,{professions:t2.GA,selected:e,onChange:t,hasError:!!r})]})})}),(0,n.Y)(rf,{children:(0,n.Y)(tR.Q,{error:m.profession})}),(0,n.FD)(rp,{"data-testid":"tools-options",children:[(0,n.Y)(ev,{children:"What tools do you use for project management?"}),(0,n.Y)(tW.xI,{name:"current_pm_tool",control:c,render:({field:{value:e,...t},fieldState:{error:r}})=>(0,n.Y)(rr,{items:rd,selectedValues:Array.isArray(e)?e:[],hasError:!!r,...t})})]}),(0,n.Y)(rf,{children:(0,n.Y)(tR.Q,{error:m.current_pm_tool})}),a&&(0,n.FD)(rb,{children:[(0,n.FD)(eD,{children:[(0,n.Y)(tL.S,{id:"product_updates",isSelected:x,onChange:()=>f("product_updates",!x,{shouldDirty:!0,shouldTouch:!0})}),(0,n.FD)(eO,{htmlFor:"product_updates",children:["Receive educational emails from ","Shortcut"]})]}),(0,n.FD)(eD,{children:[(0,n.Y)(tL.S,{id:"accept_terms",isSelected:k,onChange:A}),(0,n.FD)(eO,{htmlFor:"accept_terms",children:["I agree to the"," ",(0,n.Y)("a",{href:rc,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",(0,n.Y)("a",{href:rs,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})]}),(0,n.Y)(tR.Q,{error:m.accept_terms})]})]}),(0,n.Y)(eS,{children:(0,n.Y)(eT,{kind:ef.$n.KIND.PRIMARY,type:"submit",isDisabled:!g||t||r,children:t?(0,n.FD)(n.FK,{children:[(0,n.Y)(tV.s,{children:"Creating Account..."}),(0,n.Y)(b.X,{fill:"currentColor"})]}):"Create Account"})}),!a&&(0,n.FD)(ry,{children:['By clicking "Create Account", you agree to ',"Shortcut","'s"," ",(0,n.Y)("a",{href:rc,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",(0,n.Y)("a",{href:rs,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),"."]})]})}let rp=(0,y.A)("div",{target:"e6k6qou0"})(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",marginBottom:e.space.space2})),rm=(0,y.A)(eb,{target:"e6k6qou1"})({marginBottom:"36px",width:"100%"}),rh=(0,y.A)("div",{target:"e6k6qou2"})({top:"-14px !important",right:"8px !important"}),rg=(0,y.A)("div",{target:"e6k6qou3"})({position:"relative",width:"100%"}
1),rf=(0,y.A)("div",{target:"e6k6qou4"})({paddingLeft:"1px",marginBottom:"6px"}),ry=(0,y.A)("p",{target:"e6k6qou5"})(({theme:e})=>({marginTop:e.space.space4,marginBottom:0,fontSize:14,lineHeight:1.4,color:e.color.raw.gray60})),rb=(0,y.A)("div",{target:"e6k6qou6"})(({theme:e})=>({display:"flex",flexDirection:"column",marginTop:"28px",gap:e.space.space2})),rw=({goNext:e})=>(0,n.FD)(n.FK,{children:[(0,n.Y)(eb,{children:"Work Smarter, Not Harder"}),(0,n.Y)(eA,{children:"Connect your work, use keyboard commands, integrations, and AI to stay in flow."}),(0,n.FD)(ej,{children:[(0,n.Y)(t0,{icon:"GithubLogo",title:"Connect GitHub",children:"Attach commits and PRs to Stories. Automate with GitHub events."}),(0,n.Y)(t0,{icon:"Command",title:"CMD + K",children:"Use keyboard commands to navigate, and manage — no clicks."}),(0,n.Y)(t0,{icon:"SelectionAll",title:"50+ Integrations",children:"Automate with integrations so you can focus on what matters."}),(0,n.Y)(t0,{icon:"UserAdd",title:"AI Agents Ready",children:"Assign work to agents like Korey and Devin.ai to stay in flow."})]}),(0,n.Y)(eS,{style:{maxWidth:360,marginInline:"auto"},children:(0,n.Y)(eT,{onClick:(0,_.$)(()=>e()),kind:"primary",children:"Continue"})})]}),rv="signup-submit-error",rx=(e,t)=>({id:rv,timeout:7e3,kind:"alert",width:420,Content:()=>{let r=t?t.split("\n").map((e,t)=>(0,n.Y)(tw.XM,{children:e},t)):(0,n.Y)(tw.XM,{children:"Please try again or reach out to Support."});return(0,n.FD)(e2.vg,{vertically:!0,amount:"space1",children:[(0,n.Y)(tw.Sb,{children:e??"An unknown error occurred."}),r]})}}),rk=({onComplete:e})=>{let t,r,a,o,{signup:i}=H(),l=(t=(()=>{let{signup:e}=H();return(0,u.useCallback)(async t=>{if(e&&t)try{let{id:r,auto_join_allowed:n,email:a,is_oauth:o}=e;await t$({signupId:String(r),autoJoinChecked:n,userEmail:a,signupData:t,isOauth:o})}catch(e){throw Error("We were unable to create your account.",{cause:(0,t_.p)(e)})}},[e])})(),r={id:"CompanyNameForm",content:(0,n.Y)(tU,{goNext:d()})},a={id:"ProfileDetailsForm",content:(0,n.Y)(ru,{goNext:t})},[r,a,{id:"ValueReview",content:(0,n.Y)(rw,{goNext:d()})},{id:"JoinCommunity",content:(0,n.Y)(t1,{goNext:d()})}]),s=(e=>{let{getFormState:t}=tb();return(0,u.useCallback)(async()=>{try{let e,r=(e=t().organization_name,(0,j.aH)(new to.Wd({organization_name:e,category:"signup",form_version:5}))),n=new Promise(e=>setTimeout(e,1e3));await Promise.race([r,n])}catch(e){(0,j.logError)(Error("Tracking during Signup failed"))}finally{e()}},[t,e])})((0,_.$)(e)),{currentStep:c,goNext:p}=((e,t)=>{let[r,n]=(0,u.useState)(0),a=e.length-1,o=r>0,i=r<a,l=r===a,s=(0,u.useCallback)(()=>{i?n(e=>Math.min(e+1,a)):l&&t()},[i,l,a,t]);return{currentStep:r,goBack:(0,u.useCallback)(()=>{o&&n(e=>Math.max(0,e-1))},[o]),goNext:s,canGoNext:i,canGoBack:o}})(l,(0,_.$)(s)),m=(o=l[c].id,(0,u.useCallback)(()=>{try{(({pageName:e,signupStep:t,signup:r})=>(0,j.aH)(new to.pv({form_version:5,page_name:e,signup_step:t,...r&&{is_oauth:r.is_oauth,signup_id:r.id,user_id:r.user_id}})))({signupStep:c,pageName:o,signup:i}).catch(()=>{(0,j.logError)(Error("Tracking during Signup failed"))})}catch{(0,j.logError)(Error("Tracking during Signup failed"))}finally{p()}},[c,p,i,o]));(0,u.useEffect)(()=>{let e;(0,j.aH)(new ti[c]({...1===c?{is_gdpr:e,form_version:5}:{form_version:5}}))},[c]);let h=l[c],g=h.content.props.goNext,[f,{on:y,off:b}]=(0,O.Hn)(),[w,{on:v}]=(0,O.Hn)(),x=(0,u.useCallback)(async(e,...t)=>{y();try{(0,tw.uU)(rv),await g(e,...t),m(),c===l.length-1&&v(),b()}catch(t){let e;if(t instanceof Error){e=t.message,(0,j.logError)(t,{signupId:i?.id??""});let r=t.cause instanceof Error?t.cause.message:void 0;(0,tw.$U)(rx(e,r))}else"string"==typeof t&&(e=t,(0,j.logError)(Error(t),{signupId:i?.id??""}),(0,tw.$U)(rx(e)));b()}},[g,c,m,v,i?.id,l.length,y,b]);return(0,n.Y)(tT,{main:(0,u.cloneElement)(h.content,{goNext:x,submitting:f,isFinished:w})})},rA=()=>(0,n.Y)(ty,{children:(0,n.Y)(rk,{onComplete:tP})}),rS=()=>{let e,t;(0,u.useLayoutEffect)(()=>{(0,s.VG)(s.D7.LIGHT)},[]);let{state:r}=(0,D.zy)(),a=(0,u.useContext)(L).error,{pendingInvites:o,matchingDomains:i,signup:l}=(0,u.useContext)(L),c=!!(o?.length||i?.length)&&!r?.fromJoinOrg,d=(0,I.iZ)();if((0,u.useEffect)(()=>{d&&(0,I.iK)(d)&&(0,_.c)(tP())},[d]),a||!l?.id)return(0,n.Y)(V,{error:a});let p=(e=l.id.toString(),(0,D.tW)((0,E.Gs)(E.Bi.JOIN_WORKSPACE),{signupId:e})),m=(t=l.id.toString(),(0,D.tW)((0,E.Gs)(E.Bi.SIGNUP),{signupId:t}));return(0,n.FD)(D.dO,{children:[(0,n.Y)(D.qh,{path:(0,E.Gs)(E.Bi.JOIN_INVITE),component:eB}),(0,n.Y)(D.qh,{path:p,component:tu}),(0,n.Y)(D.qh,{path:m,exact:!0,children:c?(0,n.Y)(D.rd,{to:p}):(0,n.Y)(rA,{})})]})},rY=()=>(0,n.FD)(n.FK,{children:[(0,n.FD)(a.m,{children:[(0,n.Y)("link",{rel:"prefetch",href:i}),(0,n.Y)("link",{rel:"prefetch",href:l})]}),(0,n.Y)(s.wX,{themeName:s.D7.LIGHT,children:(0,n.Y)(g,{children:(0,n.Y)(o.Kd,{children:(0,n.Y)(R,{children:(0,n.Y)(rS,{})})})})})]})}}]);

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.