(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{146:function(e,t,n){e.exports=n.p+"static/media/upfork-banner.3ebfb7e3.png"},370:function(e,t,n){e.exports=n(833)},524:function(e,t){},526:function(e,t){},557:function(e,t){},558:function(e,t){},606:function(e,t){},608:function(e,t){},628:function(e,t){},760:function(e,t){},833:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),o=n(27),i=n.n(o),l=n(846),c=n(369),s=n(11),u=n.n(s),m=n(36),p=n(23),d=n(8),f=n(48),h=n.n(f),g=n(1),y=n.n(g),b=n(847),v=n(842),E=n(352),w=n.n(E),k=n(7),x=n(145),O=n(354),j=n.n(O),S=n(836),C=n(848),P=n(845),U=n(834),A=n(844),T=n(835),F=n(146),W=n.n(F),R={borderRadius:"0px",backgroundColor:"white",border:"none",height:"80px"},D={marginRight:"2em",width:"0em"},z={color:"#000000"};var N=Object(C.a)(function(e){var t=e.history,n=e.logout,a=e.loginOrUserIcon,o=e.user,i="function"===typeof n&&r.a.createElement(P.a,{title:o,id:"user-dropdown"},r.a.createElement(U.a,{href:"#",onClick:function(e){n(),t.push("/"),e.preventDefault()}},"Log out"),r.a.createElement(U.a,{href:"#/account",onClick:function(e){t.push("/account"),e.preventDefault()}},"My Account"));return r.a.createElement("header",null,r.a.createElement(A.a,{style:R,collapseOnSelect:!0},r.a.createElement(T.a,{style:{float:"right"}},a,i),r.a.createElement(A.a.Header,{style:D},r.a.createElement(A.a.Brand,null,r.a.createElement(S.a,{to:"/",style:z},r.a.createElement("img",{src:W.a,width:200,alt:"upfork banner logo"}))))))}),I=n(489),L=n(837),G=n(838),B=n(839);function M(){var e=Object(d.a)(["\n display: block;\n flex: 1;\n background-color: inherit;\n margin-top: -0.1em;\n border: none;\n text-align: left;\n cursor: pointer;\n"]);return M=function(){return e},e}function Y(){var e=Object(d.a)(["\n display: block;\n flex: 1;\n background-color: inherit;\n margin-top: -0.1em;\n border: none;\n text-align: right;\n cursor: pointer;\n"]);return Y=function(){return e},e}function q(){var e=Object(d.a)(["\n width: 100%;\n height: 100px;\n padding: 2em;\n bottom: 0px;\n"]);return q=function(){return e},e}var J=Object(k.c)("footer")(q()),K=Object(k.c)(S.a)(Y()),H=Object(k.c)(S.a)(M());var _=Object(C.a)(function(e){return e.history,r.a.createElement("footer",null,r.a.createElement(I.a,null,r.a.createElement(L.a,null,r.a.createElement(J,null,r.a.createElement(L.a,null,r.a.createElement(G.a,{xs:11,sm:4}),r.a.createElement(G.a,{xs:11,sm:4,style:{textAlign:"center"}},"Upfork \xa9 2018.\xa0",r.a.createElement("a",{href:"https://gitter.im/fabiosantoscode/autofork-support"},"Support Chat"),"\xa0\xa0",r.a.createElement(B.a,{glyph:"comment",style:{color:"#337ab7"}}))),r.a.createElement(L.a,null,r.a.createElement(G.a,{xs:11,sm:4}),r.a.createElement(G.a,{xs:11,sm:4,style:{textAlign:"center",display:"flex"}},r.a.createElement(K,{to:"/privacy-policy"},"Privacy Policy",r.a.createElement(B.a,{glyph:"question-sign",style:{marginLeft:"0.3em",color:"#337ab7"}})),r.a.createElement(H,{to:"/terms-and-conditions"},"\xa0Terms and conditions",r.a.createElement(B.a,{glyph:"info-sign",style:{marginLeft:"0.3em",color:"#337ab7"}}))))))))});function $(){var e=Object(d.a)(["\n font-size: 2em;\n text-align: center;\n font-weight: bold;\n margin-top: 1em;\n margin-bottom: 1em;\n"]);return $=function(){return e},e}var Q=Object(k.c)("h1")($());function V(e){var t=e.children;return r.a.createElement(Q,null,t)}function X(){var e=Object(d.a)(["\n text-align: center;\n padding-bottom: 15em;\n"]);return X=function(){return e},e}var Z=Object(k.c)("div")(X()),ee=function(e){var t=e.message;return r.a.createElement(Z,null,r.a.createElement(V,null,"Loading"),t+"...")},te=n(840),ne=n(251),ae=n(364),re=Object(ae.ErrLogIo)("CAC18FF0-4967-4F55-ACED-0D918EE19441");function oe(){var e=Object(d.a)(["\n display: block;\n position: absolute;\n left: 0.5em;\n top: 0.5em;\n z-index: 1;\n"]);return oe=function(){return e},e}function ie(){var e=Object(d.a)(["\n border: none;\n margin: 0;\n padding: 0.5em 0.5em 0.5em 2em;\n position: relative;\n width: 100%;\n"]);return ie=function(){return e},e}function le(){var e=Object(d.a)(["\n text-align: center;\n width: 4em;\n"]);return le=function(){return e},e}function ce(){var e=Object(d.a)(["\n text-align: right;\n"]);return ce=function(){return e},e}var se=Object(k.c)("td")(ce()),ue=Object(k.c)("td")(le()),me=Object(k.c)("input")(ie()),pe=Object(k.c)("span")(oe());var de=function(e){var t=e.user,n=e.repos,o=e.setRepoOn,i=e.setError,l=Object(a.useState)(""),c=Object(m.a)(l,2),s=c[0],u=c[1];return[r.a.createElement("tr",{key:"\u2764"},r.a.createElement("td",{colSpan:"2",style:{margin:1,padding:1,position:"relative",borderBottom:"2px solid #ddd",borderRight:"2px solid #ddd"}},r.a.createElement(pe,null,r.a.createElement("span",{role:"img","aria-labelledby":"jsx-a11y/accessible-emoji"},"\ud83d\udd0e")),r.a.createElement(me,{placeholder:"Search repositories...",type:"search",value:s,onInput:function(e){u(e.target.value)},onChange:function(e){u(e.target.value)}})))].concat(n.filter(function(e){return e.name.includes(s)}).map(function(e,a){return r.a.createElement("tr",{key:e.name},r.a.createElement(se,null,e.name),r.a.createElement(ue,null,function(e){return e.private||e.parent&&e.parent.private?r.a.createElement("a",{href:"/#/pricing"},"[premium]"):r.a.createElement(ne.a,{onClick:function(a){a.preventDefault(),o(t+"/"+e.name,!e.isOn,n.map(function(e){return!!e.isOn}).reduce(function(e,t){return e+t},0)).catch(function(){re.send({message:a,applicationname:"UpFork"}),i(a)})},bsStyle:e.isOn?"primary":"default"},e.isOn?"On":"Off")}(e)))}))};function fe(){var e=Object(d.a)(["\n text-align: center;\n"]);return fe=function(){return e},e}function he(){var e=Object(d.a)(["\n box-sizing: border-box;\n width: 60%;\n margin: 5em auto 2em;\n @media screen and (max-width: 750px) {\n width: 100%;\n padding-left: 1em;\n padding-right: 1em;\n }\n"]);return he=function(){return e},e}var ge=Object(k.c)("div")(he()),ye=Object(k.c)("th")(fe()),be=function(e){var t=e.user,n=e.repos,a=e.setRepoOn,o=e.setError;return r.a.createElement("div",{className:"row"},r.a.createElement(ge,null,r.a.createElement(te.a,{striped:!0,bordered:!0,condensed:!0,hover:!0},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement(ye,null,"Repository"),r.a.createElement(ye,null,"Enable"))),r.a.createElement("tbody",null,r.a.createElement(de,{user:t,repos:n,setRepoOn:a,setError:o})))))},ve=n(154);"undefined"!==typeof window&&(ve.a.initialize("UA-129392545-1"),ve.a.pageview(window.location.pathname+window.location.search));var Ee=ve.a;function we(){var e=Object(d.a)(["\n text-align: left !important;\n font-size: 2em;\n font-weight: bold;\n text-align: center;\n"]);return we=function(){return e},e}function ke(){var e=Object(d.a)(["\n text-align: left;\n ul {\n padding-left: 1.5em;\n }\n"]);return ke=function(){return e},e}function xe(){var e=Object(d.a)(["\n font-weight: bold;\n text-align: center;\n"]);return xe=function(){return e},e}var Oe=Object(k.c)("td")(xe()),je=Object(k.c)("td")(ke()),Se=Object(k.c)("td")(we()),Ce=r.a.createElement("ul",null,r.a.createElement("li",null,"Runs a rebase whenever the upstream repository updates"),r.a.createElement("li",null,"Sends you an e-mail to warn you it's not gonna rebase well")),Pe=r.a.createElement("ul",null,r.a.createElement("li",null,"(All the free tier features)"),r.a.createElement("li",null,r.a.createElement("b",null,"(soon)"),"Run your script when the rebase finishes. Publish or test the project and make sure it's a healthy fork."),r.a.createElement("li",null,"Update private forks and forks of private repos")),Ue=function(){return Ee.pageview(window.location.pathname+window.location.search),[r.a.createElement(V,{key:"1"},"Pricing"),r.a.createElement(te.a,{key:"2",style:{tableLayout:"fixed",marginBottom:"2em"}},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement(Oe,null,"Free tier"),r.a.createElement(Oe,null,"Premium tier"))),r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement(je,null,r.a.createElement("p",null,"Free for public repositories"),Ce),r.a.createElement(je,null,r.a.createElement("p",null,"Updates private repositories"),Pe)),r.a.createElement("tr",null,r.a.createElement(Se,null,"0\u20ac"),r.a.createElement(Se,null,r.a.createElement("s",null,"12\u20ac/mo")," Enjoy our launch discount! 6\u20ac/Month"))))]},Ae=n(841),Te={background:"#eeeeee",borderRadius:"5px",margin:"30px 0px"},Fe={borderBottom:"1px solid #999999",textAlign:"center",padding:"2em",color:"#000000",backgroundColor:"#a07ed6",borderTopRightRadius:"5px",borderTopLeftRadius:"5px"},We={padding:"2em"},Re=function(e){var t=e.title,n=e.style,a=void 0===n?{}:n,o=e.children,i=Object.assign({},Te,a);return r.a.createElement("div",{style:i},r.a.createElement("div",{style:Fe},r.a.createElement("h3",null,t)),r.a.createElement("div",{style:We},o))};function De(){var e=Object(d.a)(["\n width: 200px;\n height: 30px;\n text-align: center;\n position: absolute;\n top: 25px;\n right: -50px;\n transform: rotate(45deg);\n overflow: hidden;\n background-color: #ffffff;\n font-size: 150%;\n vertical-align: middle;\n"]);return De=function(){return e},e}function ze(){var e=Object(d.a)(["\n font-size: 1.2em;\n text-align: left;\n"]);return ze=function(){return e},e}var Ne=Object(k.c)("p")(ze()),Ie=Object(k.c)("div")(De()),Le=Object(x.withPropsFromContext)(["GithubLoginWrapper"])(function(e){var t=e.GithubLoginWrapper;return r.a.createElement(I.a,null,r.a.createElement(Ae.a,null,r.a.createElement("h2",null,"Automatic Fork Updates"),r.a.createElement("p",null,"Upfork syncs your Github forks with upstream repositories."),r.a.createElement(ne.a,{componentClass:function(e){return r.a.createElement(t,e)},bsStyle:"success",bsSize:"large"},"Sign in with Github")),r.a.createElement(L.a,null,r.a.createElement(G.a,{xs:12},r.a.createElement("h3",null,"What is it?"),r.a.createElement("hr",null))),r.a.createElement(Ne,null,"You ",r.a.createElement("strong",null,"fork")," a github project, but the"," ",r.a.createElement("strong",null,"upstream maintainer can commit changes"),"."),r.a.createElement(Ne,null,"How to get new changes ",r.a.createElement("strong",null,"automatically"),"?"),r.a.createElement(Ne,null,r.a.createElement("strong",null,"Upfork.sh")," can help you. Simply ",r.a.createElement(t,null),", select the repository by searching your repositories and enable automatic fork updates to automatically manage your fork."),r.a.createElement(Ne,null,r.a.createElement("strong",null,"Upfork.sh")," keeps your forks ",r.a.createElement("strong",null,"updated"),"."),r.a.createElement(L.a,null,r.a.createElement(G.a,{xs:12},r.a.createElement("h3",null,"Features"),r.a.createElement("hr",null))),r.a.createElement(L.a,{style:{textAlign:"left",marginTop:"3em"}},r.a.createElement(G.a,{xs:12,md:6},r.a.createElement("h3",null,r.a.createElement(B.a,{glyph:"time"})," Periodical merges"),r.a.createElement("p",null,"Upfork schedules periodical merges against upstream. This way you don't need to worry about keeping your fork up to date. In the future, it won't be a periodic thing. We'll update the repository as soon as there is a new commit."))),r.a.createElement(L.a,{style:{textAlign:"left",marginTop:"3em"}},r.a.createElement(G.a,{xs:12,md:6},r.a.createElement("h3",null,r.a.createElement(B.a,{glyph:"repeat"})," Free for open-source"),r.a.createElement("p",null,"At Upfork we're huge open-source supporters and want to give back to the community. All open-source projects will be able to use Upfork for free.")),r.a.createElement(G.a,{xs:12,md:6},r.a.createElement("h3",null,r.a.createElement(B.a,{glyph:"heart"})," Keeps developers productive"),r.a.createElement("p",null,"No more developing features on your fork, just to figure out later that you'll have to solve a huge conflict with the upstream repository. Just focus on your own fork and let us sync it."))),r.a.createElement(L.a,{style:{marginTop:"3em"}},r.a.createElement(G.a,{xs:12},r.a.createElement("h3",null,"Pricing"),r.a.createElement("hr",null))),r.a.createElement(L.a,{style:{textAlign:"left",marginTop:"1em",marginBottom:"4em"}},r.a.createElement(G.a,{xs:12,md:6},r.a.createElement(Re,{title:"Free Plan"},r.a.createElement("h4",{style:{textAlign:"center"}},"Totally Free"),r.a.createElement("ul",null,r.a.createElement("li",null,"Periodical syncs")))),r.a.createElement(G.a,{xs:12,md:6},r.a.createElement(Re,{title:"Premium Plan",style:{position:"relative"}},r.a.createElement(Ie,null,"\xa0\xa0Soon..."),r.a.createElement("h4",{style:{textAlign:"center"}},r.a.createElement("s",null,"12\u20ac/Month")," Enjoy our launch discount! 6\u20ac/Month"),r.a.createElement("ul",null,r.a.createElement("li",null,"Periodical syncs"),r.a.createElement("li",null,"Run automated tests against merges"),r.a.createElement("li",null,"Get notified if tests fail"),r.a.createElement("li",null,"More soon..."))))),r.a.createElement("p",null,"Curious about our stack? We run on AWS Lambda functions with git bundled in the code."))}),Ge=n(843);function Be(){var e=Object(d.a)(["\n text-align: center;\n"]);return Be=function(){return e},e}function Me(){var e=Object(d.a)(["\n width: 25%;\n margin-top: -1em;\n"]);return Me=function(){return e},e}function Ye(){var e=Object(d.a)(["\n border: none;\n background-color: inherit;\n cursor: pointer;\n"]);return Ye=function(){return e},e}var qe=Object(k.c)("a")(Ye()),Je=Object(k.c)("img")(Me()),Ke=Object(k.c)("h2")(Be()),He=Object(C.a)(function(e){var t=e.router,n=e.onAccept;return r.a.createElement(Ge.a,{show:!0},r.a.createElement(Ge.a.Header,null,r.a.createElement(Ge.a.Title,{style:{textAlign:"center"}},"Welcome to UpFork"),r.a.createElement(Ge.a.Body,null,r.a.createElement(Ke,null,r.a.createElement(Je,{src:W.a,alt:"Upfork.sh"})),r.a.createElement("p",null,"Welcome to Upfork.sh, we hope you enjoy our services."),r.a.createElement("p",null,"Please note that by using our service you agree with the terms and conditions stated in"," ",r.a.createElement(qe,{onClick:function(){t.navigate("/terms-and-conditions")}},"Terms"," ")),r.a.createElement("p",null,"You can also check our privacy policy at"," ",r.a.createElement(qe,{onClick:function(){t.navigate("/privacy-policy")}},"PrivacyPolicy")),r.a.createElement("p",null,"Enjoy your stay and remember if you ever need support follow the link in the footer to our gitter chat or click"," ",r.a.createElement(qe,{href:"https://gitter.im/fabiosantoscode/autofork-support",target:"_blank"},"here")))),r.a.createElement(Ge.a.Footer,null,r.a.createElement(ne.a,{bsStyle:"primary",onClick:n},"Accept")))}),_e=n(217),$e=n.n(_e),Qe=n(365),Ve=n.n(Qe),Xe=n(366),Ze=n.n(Xe),et="undefined"!==typeof window&&"localhost"===window.location.hostname?"development":"production";console.log({env:et});var tt=new Ze.a;function nt(e,t){return at.apply(this,arguments)}function at(){return(at=Object(p.a)(u.a.mark(function e(t,n){var a,r,o,i,l,c,s,m,p,d,f,h;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.setRepos,r=n.setUser,o=n.setError,tt.authenticate({type:"token",token:t}),localStorage.token=t,e.prev=3,e.next=6,tt.users.getAuthenticated();case 6:l=e.sent.data,i=l.login,e.next=17;break;case 10:return e.prev=10,e.t0=e.catch(3),re.send({message:"Login Error",applicationname:"UpFork",useragent:navigator.userAgent,browsername:navigator.appName,trace:e.t0.trace}),localStorage.token="",o(e.t0),setTimeout(function(){window.location.reload()},4e3),e.abrupt("return");case 17:return e.next=19,dt(i);case 19:return e.sent||Ee.event({category:"user",action:"Created an account"}),r(i),e.next=24,it(i);case 24:return e.t1=function(e){return e.fork},c=e.sent.filter(e.t1),s=!0,m=!1,p=void 0,e.prev=29,d=function(){var e=h.value,t=c.find(function(t){return t.name===e.name.S.split("/").pop()});t&&(t.isOn=!0)},e.next=33,st(i);case 33:e.t2=Symbol.iterator,f=e.sent[e.t2]();case 35:if(s=(h=f.next()).done){e.next=40;break}d();case 37:s=!0,e.next=35;break;case 40:e.next=46;break;case 42:e.prev=42,e.t3=e.catch(29),m=!0,p=e.t3;case 46:e.prev=46,e.prev=47,s||null==f.return||f.return();case 49:if(e.prev=49,!m){e.next=52;break}throw p;case 52:return e.finish(49);case 53:return e.finish(46);case 54:a(c);case 55:case"end":return e.stop()}},e,this,[[3,10],[29,42,46,54],[47,,49,53]])}))).apply(this,arguments)}function rt(e){return ot.apply(this,arguments)}function ot(){return(ot=Object(p.a)(u.a.mark(function e(t){var n,a,r=arguments;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.length>1&&void 0!==r[1]?r[1]:0,r.length>2&&void 0!==r[2]?r[2]:0,n=null,e.next=5,t({per_page:100});case 5:n=e.sent,a=n.data;case 7:if(!tt.hasNextPage(n)){e.next=14;break}return e.next=10,tt.getNextPage(n);case 10:n=e.sent,a=a.concat(n.data),e.next=7;break;case 14:return e.abrupt("return",a);case 15:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function it(e){return lt.apply(this,arguments)}function lt(){return(lt=Object(p.a)(u.a.mark(function e(t){var n,a,r;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rt(tt.repos.list);case 2:for(r in n=e.sent,a=[],n)!0===n[r].fork&&!1===n[r].private&&a.push(n[r]);return e.abrupt("return",a);case 6:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}var ct="https://r9c15hir1f.execute-api.eu-west-1.amazonaws.com/prod/";function st(e){return ut.apply(this,arguments)}function ut(){return(ut=Object(p.a)(u.a.mark(function e(t){var n;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(ct+"get-repos-on?user="+t);case 2:if(200===(n=e.sent).status){e.next=8;break}throw re.send({message:"Could not fetch repos on",useragent:navigator.userAgent,browsername:navigator.appName,applicationname:"UpFork"}),new Error("Could not fetch repos on: Response not OK");case 8:return e.abrupt("return",n.json());case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function mt(e){return pt.apply(this,arguments)}function pt(){return(pt=Object(p.a)(u.a.mark(function e(t){var n;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(ct+"get-access-token?code="+t+"&env="+et);case 2:if(200===(n=e.sent).status){e.next=8;break}throw re.send({message:"Could not fetch access token",useragent:navigator.userAgent,browsername:navigator.appName,applicationname:"UpFork"}),new Error("Could not fetch access token: status not 200");case 8:return e.abrupt("return",n.json());case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function dt(e){return ft.apply(this,arguments)}function ft(){return(ft=Object(p.a)(u.a.mark(function e(t){var n;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(ct+"user-exists?user="+t);case 2:if(200===(n=e.sent).status){e.next=8;break}throw re.send({message:"Could not check if user exists",useragent:navigator.userAgent,browsername:navigator.appName,applicationname:"UpFork"}),new Error("Could not check if user exists: status not 200");case 8:return e.abrupt("return",n.json());case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function ht(e){return gt.apply(this,arguments)}function gt(){return(gt=Object(p.a)(u.a.mark(function e(t){var n;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(ct+"delete-user?user="+t,{method:"POST"});case 2:if(200===(n=e.sent).status){e.next=8;break}throw re.send({message:"Could not delete user",useragent:navigator.userAgent,browsername:navigator.appName,applicationname:"UpFork"}),new Error("Could not delete user: status not 200");case 8:n.json().then(function(e){if("OK"!==e)throw re.send({message:"deleteUser response not OK",useragent:navigator.userAgent,browsername:navigator.appName,applicationname:"UpFork"}),new Error("Could not delete user: Response not OK")}).catch(function(e){return re.send({message:"Error parsing deleteUser response",useragent:navigator.userAgent,applicationname:"UpFork",browsername:navigator.appName,trace:e.trace})});case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function yt(e){return bt.apply(this,arguments)}function bt(){return(bt=Object(p.a)(u.a.mark(function e(t){var n,a,r,o,i,l;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.user,a=t.repo,r=t.isOn,o=t.repoCount,t.setError,e.next=3,fetch(ct+"set-repo-on?on="+JSON.stringify(r)+"&repo="+a+"&repoCount="+JSON.stringify(o)+"&user="+n,{method:"POST"});case 3:i=e.sent,402===(l=i.status)?(alert("You need a premium account to have more than 5 repositories"),window.location="/#/account"):200!==l&&(re.send({message:"Could not set repository on",useragent:navigator.userAgent,browsername:navigator.appName,applicationname:"UpFork"}),alert("Could not set repository on")),Ee.event({category:"user",action:"Set repository on"}),console.log("Repo is:",r);case 8:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function vt(e){return Et.apply(this,arguments)}function Et(){return(Et=Object(p.a)(u.a.mark(function e(t){var n;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(ct+"braintree-token?user="+t);case 2:if(200===(n=e.sent).status){e.next=8;break}throw re.send({message:"Could not fetch braintree token",useragent:navigator.userAgent,browsername:navigator.appName,applicationname:"UpFork"}),new Error("Could not fetch access token: status not 200");case 8:n.json().catch(function(e){return re.send({message:"Error parsing braintree token response",applicationname:"UpFork",useragent:navigator.userAgent,browsername:navigator.appName,trace:e.trace})});case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function wt(e,t,n){return kt.apply(this,arguments)}function kt(){return(kt=Object(p.a)(u.a.mark(function e(t,n,a){var r,o;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="braintree-checkout?nonce="+t+"&env="+et+"&user="+n+"&customerId="+a,e.next=3,fetch(ct+r,{method:"POST"});case 3:if(200===(o=e.sent).status){e.next=9;break}throw re.send({message:"Could not proceed to checkout",useragent:navigator.userAgent,browsername:navigator.appName,applicationname:"UpFork"}),new Error("Could not proceed to checkout: status not 200");case 9:o.json().catch(function(e){return re.send({message:"Could not parse checkout response",applicationname:"UpFork",useragent:navigator.userAgent,browsername:navigator.appName,trace:e.trace})});case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function xt(e){return Ot.apply(this,arguments)}function Ot(){return(Ot=Object(p.a)(u.a.mark(function e(t){var n,a;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="braintree-subscription-cancel?user="+t+"&env="+et,e.next=3,fetch(ct+n,{method:"POST"});case 3:if(200===(a=e.sent).status){e.next=9;break}throw re.send({message:a,browsername:navigator.appName,useragent:navigator.userAgent,applicationname:"UpFork"}),new Error("Could not unsubscribe: status not 200");case 9:a.json().then(function(e){if("OK"!==e)throw re.send({message:"Could not unsubscribe user",browsername:navigator.appName,useragent:navigator.userAgent,applicationname:"UpFork"}),new Error("Could not unsubscribe: Response not OK")}).catch(function(e){return re.send({message:"Could not parse unsubscribe response",applicationname:"UpFork",browsername:navigator.appName,useragent:navigator.userAgent,trace:e.trace})});case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function jt(){var e=Object(d.a)(["\n border: none;\n outline: 0;\n display: inline-block;\n padding: 8px;\n background-color: ",";\n color: white;\n text-align: center;\n cursor: pointer;\n width: 100%;\n font-size: 15px;\n cursor: ",";\n"]);return jt=function(){return e},e}function St(){var e=Object(d.a)(["\n width: 150px;\n height: 150px;\n border-radius: 50%;\n"]);return St=function(){return e},e}function Ct(){var e=Object(d.a)(["\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);\n display: inline-block;\n width: 288px;\n margin: auto;\n margin-top: 5em;\n margin-bottom: 12em;\n text-align: center;\n border-radius: 1em;\n"]);return Ct=function(){return e},e}console.log({braintree:$e.a});var Pt=Object(k.c)("div")(Ct()),Ut=Object(k.c)("img")(St()),At=Object(k.c)("button")(jt(),function(e){return e.isDelete?"#d9534f":e.disabled?"#888":"#3f69aa"},function(e){return e.disabled?"normal":"pointer"}),Tt=function(e){var t=e.user;e.setError;if(Ee.pageview(window.location.pathname+window.location.search),!t)return null;var n=r.a.useState(),a=Object(m.a)(n,2),o=a[0],i=a[1],l=r.a.useState(),c=Object(m.a)(l,2),s=c[0],d=c[1],f=r.a.useState(!1),h=Object(m.a)(f,2),g=h[0],y=h[1],b=function(){var e=Object(p.a)(u.a.mark(function e(){var n,a,r,o;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vt(t);case 2:n=e.sent,a=n.clientToken,r=n.customerId,o=n.subscribed,y(o),i(a),d(r);case 9:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}();r.a.useEffect(function(){b()},[]);var v=function(){var e=Object(p.a)(u.a.mark(function e(n){return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),window.confirm("Are you sure you want to delete your account? This will stop automated rebasing.")){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,ht(t);case 5:Ee.event({category:"user",action:"Deleted account"}),localStorage.token=localStorage.repos="",window.location="/";case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),E=r.a.useRef(),w=r.a.useState(null),k=Object(m.a)(w,2),x=(k[0],k[1]),O=!g&&(o?r.a.createElement("div",{style:{height:500},ref:E},r.a.createElement(Ge.a.Body,null,r.a.createElement(Ve.a,{braintree:$e.a,options:{gatewayConfiguration:{environment:et}},authorizationToken:o,onCreate:function(e){console.log({dropinInstance:e}),x(e)},onError:function(e){setTimeout(function(){throw e})},handlePaymentMethod:function(){var e=Object(p.a)(u.a.mark(function e(n){var a;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.nonce,e.next=3,wt(a,t,s);case 3:e.sent,i(null),y(!0),Ee.event({category:"user",action:"Subscribed"});case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}))):r.a.createElement("div",{style:{height:500,background:"#ddd",lineHeight:"500px",textAlign:"center"},ref:E},"Loading payment method")),j=function(){var e=Object(p.a)(u.a.mark(function e(){var n,a,r;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!g){e.next=5;break}return e.next=3,xt(t);case 3:return y(!1),e.abrupt("return");case 5:n=E.current.getBoundingClientRect(),a=n.top,r=n.left;try{window.scrollTo({top:a+document.documentElement.scrollTop,left:r,behavior:"smooth"})}catch(o){document.documentElement.scrollTop+=a}case 7:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),S="undefined"!==typeof window&&/subscriptiontest/.test(window.location.search);return r.a.createElement(r.a.Fragment,null,r.a.createElement("h2",null,"My Account"),r.a.createElement(Pt,null,r.a.createElement(Ut,{src:"https://avatars.githubusercontent.com/".concat(t),style:{margin:"1em auto"}}),r.a.createElement("p",null,"name: ",t),r.a.createElement("p",null,"subscribed: no"),r.a.createElement("p",null,"email: email"),S&&r.a.createElement(At,{isDelete:g,onClick:j},g?"Unsubscribe":"Subscribe now for 24\u20ac"),r.a.createElement(At,{isDelete:!0,onClick:v,style:{display:"block"}},"Delete Account")),S&&O)};function Ft(){var e=Object(d.a)(["\n font-size: 20px;\n"]);return Ft=function(){return e},e}function Wt(){var e=Object(d.a)(["\n text-align: left;\n"]);return Wt=function(){return e},e}function Rt(){var e=Object(d.a)(["\n font-size: 18px;\n"]);return Rt=function(){return e},e}function Dt(){var e=Object(d.a)(["\n width: 50%;\n text-align: left;\n"]);return Dt=function(){return e},e}function zt(){var e=Object(d.a)(["\n background-color: #f0ead6;\n"]);return zt=function(){return e},e}function Nt(){var e=Object(d.a)(["\n text-align: center;\n color: #d69c2f !important;\n"]);return Nt=function(){return e},e}function It(){var e=Object(d.a)(["\n text-align: center;\n color: #d69c2f !important;\n"]);return It=function(){return e},e}var Lt=Object(k.c)("h1")(It()),Gt=Object(k.c)("h2")(Nt()),Bt=Object(k.c)(Ae.a)(zt()),Mt=Object(k.c)("ul")(Dt()),Yt=Object(k.c)("li")(Rt()),qt=Object(k.c)("p")(Wt()),Jt=Object(k.c)("strong")(Ft()),Kt=function(){return Ee.pageview(window.location.pathname+window.location.search),r.a.createElement(Bt,null,r.a.createElement(Lt,null,"Privacy Policy"),r.a.createElement("div",null,r.a.createElement(Jt,null,"Effective date: December 11, 2018"),r.a.createElement(qt,null,'UpFork ("us", "we", or "our") operates the https://upfork.sh website (the "Service").'),r.a.createElement(qt,null,"This page informs you of our policies regarding the collection, use, and disclosure of personal data when you use our Service and the choices you have associated with that data. Our Privacy Policy for UpFork is managed through"," ",r.a.createElement("a",{href:"https://www.freeprivacypolicy.com/free-privacy-policy-generator.php"},"Free Privacy Policy Website"),"."),r.a.createElement(qt,null,"We use your data to provide and improve the Service. By using the Service, you agree to the collection and use of information in accordance with this policy. Unless otherwise defined in this Privacy Policy, terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, accessible from https://upfork.sh")),r.a.createElement(Gt,null,"Information Collection And Use"),r.a.createElement("div",null,r.a.createElement(qt,null,"We collect several different types of information for various purposes to provide and improve our Service to you."),r.a.createElement("h3",null,"Types of Data Collected"),r.a.createElement("h4",null,"Personal Data"),r.a.createElement(qt,null,'While using our Service, we may ask you to provide us with certain personally identifiable information that can be used to contact or identify you ("Personal Data"). Personally identifiable information may include, but is not limited to:'),r.a.createElement(Mt,null,r.a.createElement(Yt,null,"Email address"),r.a.createElement(Yt,null,"Cookies and Usage Data")),r.a.createElement("h4",null,"Usage Data"),r.a.createElement(qt,null,'We may also collect information how the Service is accessed and used ("Usage Data"). This Usage Data may include information such as your computer\'s Internet Protocol address (e.g. IP address), browser type, browser version, the pages of our Service that you visit, the time and date of your visit, the time spent on those pages, unique device identifiers and other diagnostic data.'),r.a.createElement("h4",null,"Tracking & Cookies Data"),r.a.createElement(qt,null,"We use cookies and similar tracking technologies to track the activity on our Service and hold certain information."),r.a.createElement(qt,null,"Cookies are files with small amount of data which may include an anonymous unique identifier. Cookies are sent to your browser from a website and stored on your device. Tracking technologies also used are beacons, tags, and scripts to collect and track information and to improve and analyze our Service."),r.a.createElement(qt,null,"You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent. However, if you do not accept cookies, you may not be able to use some portions of our Service."),r.a.createElement(qt,null,"Examples of Cookies we use:"),r.a.createElement(Mt,null,r.a.createElement(Yt,null,r.a.createElement("strong",null,"Session Cookies.")," We use Session Cookies to operate our Service."),r.a.createElement(Yt,null,r.a.createElement("strong",null,"Preference Cookies.")," We use Preference Cookies to remember your preferences and various settings."),r.a.createElement(Yt,null,r.a.createElement("strong",null,"Security Cookies.")," We use Security Cookies for security purposes."))),r.a.createElement(Gt,null,"Use of Data"),r.a.createElement(qt,null,"UpFork uses the collected data for various purposes:"),r.a.createElement(Mt,null,r.a.createElement(Yt,null,"To provide and maintain the Service"),r.a.createElement(Yt,null,"To notify you about changes to our Service"),r.a.createElement(Yt,null,"To allow you to participate in interactive features of our Service when you choose to do so"),r.a.createElement(Yt,null,"To provide customer care and support"),r.a.createElement(Yt,null,"To provide analysis or valuable information so that we can improve the Service"),r.a.createElement(Yt,null,"To monitor the usage of the Service"),r.a.createElement(Yt,null,"To detect, prevent and address technical issues")),r.a.createElement(Gt,null,"Transfer Of Data"),r.a.createElement(qt,null,"Your information, including Personal Data, may be transferred to \u2014 and maintained on \u2014 computers located outside of your state, province, country or other governmental jurisdiction where the data protection laws may differ than those from your jurisdiction."),r.a.createElement(qt,null,"If you are located outside Portugal and choose to provide information to us, please note that we transfer the data, including Personal Data, to Portugal and process it there."),r.a.createElement(qt,null,"Your consent to this Privacy Policy followed by your submission of such information represents your agreement to that transfer."),r.a.createElement(qt,null,"UpFork will take all steps reasonably necessary to ensure that your data is treated securely and in accordance with this Privacy Policy and no transfer of your Personal Data will take place to an organization or a country unless there are adequate controls in place including the security of your data and other personal information."),r.a.createElement(Gt,null,"Disclosure Of Data"),r.a.createElement("h3",null,"Legal Requirements"),r.a.createElement(qt,null,"UpFork may disclose your Personal Data in the good faith belief that such action is necessary to:"),r.a.createElement(Mt,null,r.a.createElement(Yt,null,"To comply with a legal obligation"),r.a.createElement(Yt,null,"To protect and defend the rights or property of UpFork"),r.a.createElement(Yt,null,"To prevent or investigate possible wrongdoing in connection with the Service"),r.a.createElement(Yt,null,"To protect the personal safety of users of the Service or the public"),r.a.createElement(Yt,null,"To protect against legal liability")),r.a.createElement(Gt,null,"Security Of Data"),r.a.createElement(qt,null,"The security of your data is important to us, but remember that no method of transmission over the Internet, or method of electronic storage is 100% secure. While we strive to use commercially acceptable means to protect your Personal Data, we cannot guarantee its absolute security."),r.a.createElement(Gt,null,"Service Providers"),r.a.createElement(qt,null,'We may employ third party companies and individuals to facilitate our Service ("Service Providers"), to provide the Service on our behalf, to perform Service-related services or to assist us in analyzing how our Service is used.'),r.a.createElement(qt,null,"These third parties have access to your Personal Data only to perform these tasks on our behalf and are obligated not to disclose or use it for any other purpose."),r.a.createElement("h3",null,"Analytics"),r.a.createElement(qt,null,"We may use third-party Service Providers to monitor and analyze the use of our Service."),r.a.createElement("div",null,r.a.createElement(qt,null,r.a.createElement("strong",null,"Google Analytics")),r.a.createElement(qt,null,"Google Analytics is a web analytics service offered by Google that tracks and reports website traffic. Google uses the data collected to track and monitor the use of our Service. This data is shared with other Google services. Google may use the collected data to contextualize and personalize the ads of its own advertising network."),r.a.createElement(qt,null,"You can opt-out of having made your activity on the Service available to Google Analytics by installing the Google Analytics opt-out browser add-on. The add-on prevents the Google Analytics JavaScript (ga.js, analytics.js, and dc.js) from sharing information with Google Analytics about visits activity.")," ",r.a.createElement(qt,null,"For more information on the privacy practices of Google, please visit the Google Privacy & Terms web page:"," ",r.a.createElement("a",{href:"https://policies.google.com/privacy?hl=en"},"https://policies.google.com/privacy?hl=en"))),r.a.createElement(Gt,null,"Links To Other Sites"),r.a.createElement(qt,null,"Our Service may contain links to other sites that are not operated by us. If you click on a third party link, you will be directed to that third party's site. We strongly advise you to review the Privacy Policy of every site you visit."),r.a.createElement(qt,null,"We have no control over and assume no responsibility for the content, privacy policies or practices of any third party sites or services."),r.a.createElement(Gt,null,"Children's Privacy"),r.a.createElement(qt,null,'Our Service does not address anyone under the age of 18 ("Children").'),r.a.createElement(qt,null,"We do not knowingly collect personally identifiable information from anyone under the age of 18. If you are a parent or guardian and you are aware that your Children has provided us with Personal Data, please contact us. If we become aware that we have collected Personal Data from children without verification of parental consent, we take steps to remove that information from our servers."),r.a.createElement(Gt,null,"Changes To This Privacy Policy"),r.a.createElement(qt,null,"We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page."),r.a.createElement(qt,null,'We will let you know via email and/or a prominent notice on our Service, prior to the change becoming effective and update the "effective date" at the top of this Privacy Policy.'),r.a.createElement(qt,null,"You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page."),r.a.createElement(Gt,null,"Contact Us"),r.a.createElement(qt,null,"If you have any questions about this Privacy Policy, please contact us:"),r.a.createElement(Mt,null,r.a.createElement(Yt,null,"By visiting"," ",r.a.createElement("a",{href:"https://gitter.im/fabiosantoscode/autofork-support"},"our gitter chat"))))};function Ht(){return r.a.createElement(Kt,null)}function _t(){var e=Object(d.a)(["\n text-align: left;\n"]);return _t=function(){return e},e}function $t(){var e=Object(d.a)(["\n font-size: 18px;\n"]);return $t=function(){return e},e}function Qt(){var e=Object(d.a)(["\n text-align: center;\n font-size: 16px;\n margin-bottom: 20px;\n font-weight: bold !important;\n"]);return Qt=function(){return e},e}function Vt(){var e=Object(d.a)(["\n width: 90%;\n text-align: left;\n"]);return Vt=function(){return e},e}function Xt(){var e=Object(d.a)(["\n background-color: #f0ead6;\n"]);return Xt=function(){return e},e}function Zt(){var e=Object(d.a)(["\n text-align: center;\n color: #d69c2f !important;\n border-radius: 10px;\n margin-top: 0.7em;\n margin-bottom: 0.5em;\n"]);return Zt=function(){return e},e}var en=Object(k.c)("h1")(Zt()),tn=Object(k.c)(Ae.a)(Xt()),nn=Object(k.c)("ul")(Vt()),an=Object(k.c)("p")(Qt()),rn=Object(k.c)("li")($t()),on=Object(k.c)("p")(_t()),ln=function(){return r.a.createElement(tn,null,r.a.createElement(en,null,"Welcome to UpFork - Automated Fork Management"),r.a.createElement(an,null,"UpFork - Automated Fork Management is located at: Portugal"),r.a.createElement(on,null,"These terms and conditions outline the rules and regulations for the use of UpFork - Automated Fork Management's Website."),r.a.createElement(on,null,"By accessing this website we assume you accept these terms and conditions in full. Do not continue to use UpFork - Automated Fork Management's website if you do not accept all of the terms and conditions stated on this page."),r.a.createElement(on,null,"The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and any or all Agreements: \u201cClient\u201d, \u201cYou\u201d and \u201cYour\u201d refers to you, the person accessing this website and accepting the Company\u2019s terms and conditions. \u201cThe Company\u201d, \u201cOurselves\u201d, \u201cWe\u201d, \u201cOur\u201d and \u201cUs\u201d, refers to our Company. \u201cParty\u201d, \u201cParties\u201d, or \u201cUs\u201d, refers to both the Client and ourselves, or either the Client or ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner, whether by formal meetings of a fixed duration, or any other means, for the express purpose of meeting the Client\u2019s needs in respect of provision of the Company\u2019s stated services/products, in accordance with and subject to, prevailing law of Portugal. Any use of the above terminology or other words in the singular, plural, capitalisation and/or he/she or they, are taken as interchangeable and therefore as referring to same."),r.a.createElement(en,null,"Cookies"),r.a.createElement(on,null,"We employ the use of cookies. By using UpFork - Automated Fork Management's website you consent to the use of cookies in accordance with UpFork - Automated Fork Management\u2019s privacy policy."),r.a.createElement(on,null,"Most of the modern day interactive web sites use cookies to enable us to retrieve user details for each visit. Cookies are used in some areas of our site to enable the functionality of this area and ease of use for those people visiting. Some of our affiliate / advertising partners may also use cookies."),r.a.createElement(en,null,"License"),r.a.createElement(on,null,"Unless otherwise stated, UpFork - Automated Fork Management and/or it\u2019s licensors own the intellectual property rights for all material on UpFork - Automated Fork Management. All intellectual property rights are reserved. You may view and/or print pages from https://upfork.sh for your own personal use subject to restrictions set in these terms and conditions."),r.a.createElement(on,null,"You must not:"),r.a.createElement(nn,null,r.a.createElement(rn,null,"Republish material from https://upfork.sh"),r.a.createElement(rn,null,"Sell, rent or sub-license material from https://upfork.sh"),r.a.createElement(rn,null,"Reproduce, duplicate or copy material from https://upfork.sh"),r.a.createElement(rn,null,"Redistribute content from UpFork - Automated Fork Management (unless content is specifically made for redistribution).")),r.a.createElement(en,null,"Hyperlinking to our Content"),r.a.createElement(an,null,"The following organizations may link to our Web site without prior written approval:"),r.a.createElement(nn,null,r.a.createElement(rn,null,"Government agencies;"),r.a.createElement(rn,null,"Search engines;"),r.a.createElement(rn,null,"News organizations;"),r.a.createElement(rn,null,"Online directory distributors when they list us in the directory may link to our Web site in the same manner as they hyperlink to the Web sites of other listed businesses; and"),r.a.createElement(rn,null,"Systemwide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.")),r.a.createElement(on,null,"These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party's site."),r.a.createElement(on,null,"We may consider and approve in our sole discretion other link requests from the following types of organizations:"),r.a.createElement(nn,null,r.a.createElement(rn,null,"commonly-known consumer and/or business information sources such as Chambers of Commerce, American Automobile Association, AARP and Consumers Union;"),r.a.createElement(rn,null,"dot.com community sites;"),r.a.createElement(rn,null,"associations or other groups representing charities, including charity giving sites,"),r.a.createElement(rn,null,"online directory distributors;"),r.a.createElement(rn,null,"internet portals;"),r.a.createElement(rn,null,"accounting, law and consulting firms whose primary clients are businesses; and"),r.a.createElement(rn,null,"educational institutions and trade associations.")),r.a.createElement(on,null,"We will approve link requests from these organizations if we determine that: (a) the link would not reflect unfavorably on us or our accredited businesses (for example, trade associations or other organizations representing inherently suspect types of business, such as work-at-home opportunities, shall not be allowed to link); (b)the organization does not have an unsatisfactory record with us; (c) the benefit to us from the visibility associated with the hyperlink outweighs the absence of UpFork; and (d) where the link is in the context of general resource information or is otherwise consistent with editorial content in a newsletter or similar product furthering the mission of the organization."),r.a.createElement(on,null,"These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and it products or services; and (c) fits within the context of the linking party's site."),r.a.createElement(on,null,"If you are among the organizations listed in paragraph 2 above and are interested in linking to our website, you must notify us by sending an e-mail to"," ",r.a.createElement("a",{href:"mailto:autoforkit@gmail.com",title:"send an email to autoforkit@gmail.com"},"autoforkit@gmail.com"),". Please include your name, your organization name, contact information (such as a phone number and/or e-mail address) as well as the URL of your site, a list of any URLs from which you intend to link to our Web site, and a list of the URL(s) on our site to which you would like to link. Allow 2-3 weeks for a response."),r.a.createElement(on,null,"Approved organizations may hyperlink to our Web site as follows:"),r.a.createElement(nn,null,r.a.createElement(rn,null,"By use of our corporate name; or"),r.a.createElement(rn,null,"By use of the uniform resource locator (Web address) being linked to; or"),r.a.createElement(rn,null,"By use of any other description of our Web site or material being linked to that makes sense within the context and format of content on the linking party's site.")),r.a.createElement(on,null,"No use of UpFork - Automated Fork Management\u2019s logo or other artwork will be allowed for linking absent a trademark license agreement."),r.a.createElement(en,null,"Reservation of Rights"),r.a.createElement(on,null,"We reserve the right at any time and in its sole discretion to request that you remove all links or any particular link to our Web site. You agree to immediately remove all links to our Web site upon such request. We also reserve the right to amend these terms and conditions and its linking policy at any time. By continuing to link to our Web site, you agree to be bound to and abide by these linking terms and conditions."),r.a.createElement(en,null,"Removal of links from our website"),r.a.createElement(on,null,"If you find any link on our Web site or any linked web site objectionable for any reason, you may contact us about this. We will consider requests to remove links but will have no obligation to do so or to respond directly to you."),r.a.createElement(on,null,"Whilst we endeavour to ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we commit to ensuring that the website remains available or that the material on the website is kept up to date."),r.a.createElement(en,null,"Content Liability"),r.a.createElement(on,null,"We shall have no responsibility or liability for any content appearing on your Web site. You agree to indemnify and defend us against all claims arising out of or based upon your Website. No link(s) may appear on any page on your Web site or within any context containing content or materials that may be interpreted as libelous, obscene or criminal, or which infringes, otherwise violates, or advocates the infringement or other violation of, any third party rights."),r.a.createElement(en,null,"Disclaimer"),r.a.createElement(on,null,"To the maximum extent permitted by applicable law, we exclude all representations, warranties and conditions relating to our website and the use of this website (including, without limitation, any warranties implied by law in respect of satisfactory quality, fitness for purpose and/or the use of reasonable care and skill). Nothing in this disclaimer will:"),r.a.createElement(nn,null,r.a.createElement(rn,null,"limit or exclude our or your liability for death or personal injury resulting from negligence;"),r.a.createElement(rn,null,"limit or exclude our or your liability for fraud or fraudulent misrepresentation;"),r.a.createElement(rn,null,"limit any of our or your liabilities in any way that is not permitted under applicable law; or"),r.a.createElement(rn,null,"exclude any of our or your liabilities that may not be excluded under applicable law.")),r.a.createElement(on,null,"The limitations and exclusions of liability set out in this Section and elsewhere in this disclaimer: (a) are subject to the preceding paragraph; and (b) govern all liabilities arising under the disclaimer or in relation to the subject matter of this disclaimer, including liabilities arising in contract, in tort (including negligence) and for breach of statutory duty."),r.a.createElement(on,null,"To the extent that the website and the information and services on the website are provided free of charge, we will not be liable for any loss or damage of any nature."),r.a.createElement(en,null,"Credit & Contact Information"),r.a.createElement("p",null,"This Terms and conditions page was created at"," ",r.a.createElement("a",{href:"https://termsandconditionstemplate.com"},"termsandconditionstemplate.com")," ","generator. If you have any queries regarding any of our terms, please contact us."))};function cn(){return Ee.pageview(window.location.pathname+window.location.search),r.a.createElement(ln,null)}function sn(){var e=Object(d.a)(["\n padding: 1em;\n margin-top: 1.4em;\n"]);return sn=function(){return e},e}function un(){var e=Object(d.a)(["\n text-align: center;\n padding: 30em;\n margin: auto;\n"]);return un=function(){return e},e}function mn(){var e=Object(d.a)(["\n text-align: center;\n"]);return mn=function(){return e},e}var pn=Object(x.getContextualizer)({user:y.a.object,GithubLoginWrapper:y.a.func}),dn=Object(k.c)("div")(mn()),fn=Object(k.c)("div")(un()),hn=Object(k.a)(sn()),gn="production"===et?"Iv1.cb7985e3156d1f36":"Iv1.47be0874ede0a0f3",yn="production"===et?"http://upfork.sh/":"http://localhost:2891/";var bn=function(){Ee.pageview(window.location.pathname+window.location.search);var e=Object(a.useState)(null),t=Object(m.a)(e,2),n=t[0],o=t[1];Object(a.useEffect)(function(){n&&(alert("An error has occurred. Can you try refreshing and trying again? If not, send us an email at autoforkit@gmail.com"),setTimeout(function(){throw n}))});var i=Object(a.useState)(""),s=Object(m.a)(i,2),d=s[0],f=s[1],g=Object(a.useState)(Boolean(localStorage.acceptedGdpr)),y=Object(m.a)(g,2),E=y[0],x=y[1],O=Object(a.useReducer)(function(e,t){var n;return t&&(n=j()(t.map(function(e){return{name:e.name,isOn:e.isOn}}),["isOn","name"])),localStorage.repos=JSON.stringify(t),t?n:null},null),S=Object(m.a)(O,2),C=S[0],P=S[1],U=Object(a.useState)(!!localStorage.token),A=Object(m.a)(U,2),T=A[0],F=A[1];if("undefined"!==typeof window&&/code=/.test(window.location.search))return r.a.createElement(V,null,"You've logged in");if(Object(a.useEffect)(function(){if(localStorage.token&&!T&&(F(!0),nt(localStorage.token,{setRepos:P,setUser:f,setError:o}),localStorage.repos))try{P(JSON.parse(localStorage.repos))}catch(e){re.send({message:"Could not set repos",applicationname:"UpFork",trace:e.trace,custom:{error:e}})}}),Object(a.useEffect)(function(){document.title=d?"Upfork.sh - "+d:"Upfork.sh - Automated Fork Management"}),n)return"undefined"!==typeof window&&setTimeout(function(){window.location.reload()},1e4),r.a.createElement(fn,null,"An error has occurred");var W=function(e){var t=e.className,n=Object(c.a)(e,["className"]);return r.a.createElement(w.a,Object.assign({},n,{className:Object(k.b)(t,"github-button",n.className),buttonText:"Sign in",clientId:gn,redirectUri:yn,scope:"contents",onSuccess:function(){var e=Object(p.a)(u.a.mark(function e(t){var n;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.code,F(!0),e.next=4,mt(n);case 4:nt(e.sent,{setRepos:P,setUser:f,setError:o});case 6:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),onFailure:function(e){re.send({message:"Login failed",applicationname:"UpFork",custom:{error:e}}),console.error(e),o(e)}}))},R=!E&&r.a.createElement(He,{onAccept:function(){localStorage.acceptedGdpr=1,x(!0),Ee.event({category:"user",action:"accepted privacy policy"})}});return r.a.createElement(l.a,null,r.a.createElement(pn,{GithubLoginWrapper:W,user:d},r.a.createElement(dn,null,R,r.a.createElement(N,{user:d,logout:d&&function(){localStorage.token="",localStorage.repos="",window.location.reload()},loginOrUserIcon:d?null:r.a.createElement(W,{className:hn})}),r.a.createElement("p",null,"Send us feedback! We've just opened up our doors and are eager to write new stuff!"," ",r.a.createElement("a",{href:"mailto:autoforkit@gmail.com?subject=[feedback] "},"Drop us a line!")),r.a.createElement("div",{className:"container"},r.a.createElement(b.a,null,r.a.createElement(v.a,{path:"/",exact:!0,component:function(){return function(e){var t=e.repos,n=e.loggingIn,a=e.user,o=(e.email,e.setRepos),i=e.setError;return t?r.a.createElement("main",null,r.a.createElement(be,{user:a,repos:t,setRepoOn:function(){var e=Object(p.a)(u.a.mark(function e(n,r,l){var c,s,p,d;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n.split("/"),s=Object(m.a)(c,2),p=s[1],h()("number"===typeof l),e.next=4,yt({user:a,repo:a+"/"+p,isOn:r,repoCount:l,setError:i});case 4:if(d=t.find(function(e){return a+"/"+e.name===n})){e.next=8;break}return window.location.reload(),e.abrupt("return");case 8:d.isOn=!!r||void 0,o(t);case 10:case"end":return e.stop()}},e,this)}));return function(t,n,a){return e.apply(this,arguments)}}(),setError:i})):n?r.a.createElement(ee,{message:"Loading your repositories"}):r.a.createElement("div",null,r.a.createElement(Le,null))}({user:d,repos:C,loggingIn:T,setRepos:P,setError:o})}}),r.a.createElement(v.a,{path:"/pricing",component:Ue}),r.a.createElement(v.a,{path:"/account",component:function(){return r.a.createElement(Tt,{user:d,setError:o})}}),r.a.createElement(v.a,{path:"/privacy-policy",component:Ht}),r.a.createElement(v.a,{path:"/terms-and-conditions",component:cn}))),r.a.createElement(_,null))))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));if("undefined"===typeof window)throw new Error("This is clientside code");/autofork\.io/.test(window.location.hostname)&&(window.location="https://upfork.sh"),i.a.render(r.a.createElement(l.a,null,r.a.createElement(bn,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}},[[370,2,1]]]); //# sourceMappingURL=main.417fa04c.chunk.js.map