1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f383-01a0-7b40-ae6b-b7f3fe744285")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39532],{9980:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/agencies/apply",function(){return r(64390)}])},64390:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>U,default:()=>T});var n=r(37876),i=r(22748),o=r(12865),a=r(14232),s=r(36827),c=r.n(s),d=r(74023),p=r.n(d),h=r(95062),l=r.n(h),u=r(19147),f=r(38871),g=r(17853),m=r(39148),y=r(18730),v=r(79350);let b=(0,v.J1)` 2 mutation AgencyApply($input: AgencyApplyInput!) { 3 agencyApply(input: $input) { 4 user { 5 id 6 username 7 } 8 } 9 } 10`,x=({onSuccess:e,formData:t,setFormData:r})=>{let[i,o]=(0,a.useState)(!1),[s,d]=(0,a.useState)(!1),{enqueueSnackbar:h}=(0,y.d)(),l=async t=>{o(!0);let r=p()(t,["client_title","country","timezone","company_invitation_uuid","company_id","role","leader_candidate"]);""===t.referral_code&&(r=p()(r,["referral_code"])),await f.A.mutate({mutation:b,variables:{input:r}}).then(t=>{setTimeout(()=>{o(!1)},1e4),e(t.data.agencyApply.user.username);let r=document.referrer?.length?document.referrer:window.location.href;(0,g.F)("AgencyOwnerRegistration",r,"/g/agency-owner-signup")}).catch(e=>{o(!1);let t=(0,m.m)(e?.graphQLErrors);if(t?.length)return void h({type:"alert",message:t[0]});let r="There was an error registering your agency.";c()(e?.message)?r=e.message:c()(e)&&(r=e),h({type:"alert",message:r})})};return(0,n.jsx)(u.A,{type:"agency",onIHaveAnAccountUrl:"/login",submitting:i,formData:t,setFormData:r,apply:l,showReferral:s,setShowReferral:d,useCompanyName:!0,companyNameLabel:"Agency Name",companyLocked:!1})};x.propTypes={onSuccess:l().func,formData:l().object,setFormData:l().func};var w=r(33789),_=r(91491),R=r(99041),L=r(53796),j=r(40913),E=r(33791),O=r(1842),S=r(81503),A=r(10159),C=r(51733),k=r(94830),I=r(53522);let N=()=>{let[e,t]=(0,a.useState)(_.A),r=(0,A.A)({value:C.fi.sm});return(0,S.A)(),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.A,{title:"Apply to Join Our Network | Scalable Path\xae",description:"Join our international network of remote software development professionals. Create a contractor account in minutes with Scalable Path.",noIndexNoFollow:!0}),(0,n.jsxs)(k.ff,{children:[(0,n.jsx)(L.A,{variant:"modal"}),(0,n.jsx)(k.bn,{children:(0,n.jsx)(k.mO,{children:(0,n.jsxs)(I.jZ,{children:[(0,n.jsx)("div",{children:(0,n.jsxs)(R.A,{size:"xs",padding:r?"base":"2x",children:[(0,n.jsx)(O.A,{size:"2xl",compact:!0,children:"Create an Agency Account"}),(0,n.jsx)(E.A,{children:"Join our international network of software development professionals."}),(0,n.jsx)(x,{onSuccess:e=>document.location=`/profile/${e}`,formData:e,setFormData:t})]})}),(0,n.jsx)(w.A,{})]})})})]})]})};var D=r(29196),U=!0;function T(){return(0,n.jsx)(y.A,{children:(0,n.jsx)(i.X,{client:f.A,children:(0,n.jsx)(o.zE,{children:(0,n.jsx)(D.vu,{children:(0,n.jsx)(N,{})})})})})}},78229:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n,i,o=r(14232),a=r(95062),s=r.n(a);function c(){return(c=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}).apply(this,arguments)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var p=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(d(t)),t.handleErrored=t.handleErrored.bind(d(t)),t.handleChange=t.handleChange.bind(d(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(d(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},r.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var e=this;return new Promise(function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()})},r.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},r.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(e)},5e3)},r.handleRecaptchaRef=function(e){this.captcha=e},r.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o.createElement("div",c({},t,{ref:this.handleRecaptchaRef}))},t}(o.Component);p.displayName="ReCAPTCHA",p.propTypes={sitekey:s().string.isRequired,onChange:s().func,grecaptcha:s().object,theme:s().oneOf(["dark","light"]),type:s().oneOf(["image","audio"]),tabindex:s().number,onExpired:s().func,onErrored:s().func,size:s().oneOf(["compact","normal","invisible"]),stoken:s().string,hl:s().string,badge:s().oneOf(["bottomright","bottomleft","inline"])}
10,p.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var h=r(23520),l=r.n(h);function u(){return(u=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}).apply(this,arguments)}var f={},g=0,m="onloadcallback";let y=(n=function(){return"https://"+(("u">typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+m+"&render=explicit"},i=i={callbackName:m,globalName:"grecaptcha"},function(e){var t=e.displayName||e.name||"Component",r=function(t){function r(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t;var a=r.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+g++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL=n(),this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=f[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[i.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=i,o=n.globalName,a=n.callbackName,s=n.scriptId;if(o&&void 0!==window[o]&&(f[t]={loaded:!0,observers:{}}),f[t]){var c=f[t];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var d={};d[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},f[t]={loaded:!1,observers:d};var p=document.createElement("script");for(var h in p.src=t,p.async=!0,i.attributes)p.setAttribute(h,i.attributes[h]);s&&(p.id=s);var l=function(e){if(f[t]){var r=f[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"u">typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),p.onload=function(){var e=f[t];e&&(e.loaded=!0,l(function(t){return!a&&(t(e),!0)}))},p.onerror=function(){var e=f[t];e&&(e.errored=!0,l(function(t){return t(e),!0}))},document.body.appendChild(p)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===i.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=f[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===i.removeOnUnmount&&delete f[e])},a.render=function(){var t=i.globalName,r=this.props,n=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"u">typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=n,(0,o.createElement)(e,a)},r}(o.Component),a=(0,o.forwardRef)(function(e,t){return(0,o.createElement)(r,u({},e,{forwardedRef:t}))});return a.displayName="AsyncScriptLoader("+t+")",a.propTypes={asyncScriptOnLoad:s().func},l()(a,e)})(p)}},e=>{e.O(0,[27114,59788,44503,90636,46593,38792],()=>e(e.s=9980)),_N_E=e.O()}]); 11//# sourceMappingURL=apply-9870b4b98f040055.js.map 12//# chunkId=01a0f383-01a0-7b40-ae6b-b7f3fe744285
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.