1/*! For license information please see modal-signup-org.34503f3ecb9167f7ad6b.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunk_plagcheck_website=self.webpackChunk_plagcheck_website||[]).push([[725],{310:function(e,t,r){var n=r(847),o=r(619),a=r(841);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.Z=function(e){var t=e.isVisible,r=void 0!==t&&t,u=e.isComplite,c=void 0!==u&&u,l=e.onCancel,s=e.t,f=i((0,o.eJ)(!1),2),p=f[0],h=f[1],d=i((0,o.eJ)(0),2),m=d[0],v=d[1];return(0,o.d4)((function(){if(r){var e=setInterval((function(){v((function(e){return e+1}))}),1e3);return function(){return clearInterval(e)}}v(0)}),[r]),(0,o.d4)((function(){m>=25&&!p&&!c&&h(!0)}),[m,p,c]),r?(0,n.h)("div",{className:"bg-[rgba(0,0,0,0.5)] fixed inset-0 z-50 flex flex-col justify-end items-center"},(0,n.h)("div",{className:"max-w-[600px] w-full mx-auto pb-[36px] text-center"},(0,n.h)("div",{className:"h-[36px] w-[36px] animate-spin rounded-full border-2 border-N400 border-t-transparent mx-auto"}),(0,n.h)("p",{className:"text-[20px] text-white font-semibold mt-16"},s(c?"Please wait while we complete the process...":"Please complete authentication in the popup window.")),p&&!c&&(0,n.h)("div",{className:"mt-16"},(0,n.h)(a.zx,{type:"sky",onClick:l},s("Cancel Authentication")),(0,n.h)("p",{className:"text-N100 mt-16"},s("Note: Canceling will close the authentication popup"))))):null}},87:function(e,t,r){r.r(t);var n=r(847),o=r(619),a=r(314),i=r(594),u=r(841),c=r(310);function l(e){return l="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},l(e)}function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),u=new E(o||[]);return n(i,"_invoke",{value:O(e,r,u)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var h={};function d(){}function m(){}function v(){}var g={};c(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(j([])));b&&b!==t&&r.call(b,a)&&(g=b);var w=v.prototype=d.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function o(n,a,i,u){var c=p(e[n],e,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,i,u)}),(function(e){o("throw",e,i,u)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return o("throw",e,i,u)}))}u(c.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=S(i,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&
vendor: 4,621 bytes, line 2
2(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=p(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=v,n(w,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(N.prototype),c(N.prototype,i,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new N(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(w),c(w,u,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=j,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?f(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){d(a,n,o,i,u,"next",e)}function u(e){d(a,n,o,i,u,"throw",e)}i(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.default=function(e){var t=e.onClose,r=v((0,o.eJ)(!1),2),l=r[0],f=r[1],h=v((0,o.eJ)(!1),2),d=h[0],g=h[1],y=v((0,o.eJ)(!1),2),b=y[0],w=y[1],x=v((0,o.eJ)(""),2),N=x[0],O=x[1],S=v((0,o.eJ)(!0),2),k=S[0],_=S[1],E=(0,o.qp)(i.j),j=E.auth,C=j.guestAuth,L=j.updateGuestAuth,P=j.startOAuth,A=j.stateOAuth,I=j.handleOverlayCancel,G=j.signUpAPI,T=j.userAgreements,J=j.isAiDetectorPage,M=E.modals.addModal,U=E.language.t;(0,o.d4)((function(){d&&(k||N)&&(g(!1),w(!1)),N&&O("")}),[C]);var B,D={popupBlocked:function(){return O(U("The popup was blocked by your browser. Please enable popups for this site and try again."))},popupClosed:function(){return O(U("Authentication popup was closed before completion. Please use form below to continue."))},isSuccess:(B=m(s().mark((function e(){var r,n,o,i,u,c,l,f;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null!==(r=window.__COMMON_APP__)&&void 0!==r&&r.updateProfile&&window.__COMMON_APP__.updateProfile(),(o=JSON.parse((0,a.ej)("guest_data")||"{}")).signupGuest&&(0,a.d8)("guest_data",JSON.stringify(p(p({},o),{},{signupGuest:!1}))),null!==(n=window.gaEvents)&&void 0!==n&&n.gaSocialLogin&&(window.gaEvents.gaSocialLogin(),null!==(i=window.gaEvents)&&void 0!==i&&i.gaCheckToolsNew&&(u=JSON.parse(window.localStorage.getItem("currentUID")),window.gaEvents.gaCheckToolsNew("checktools-registration",{uId:u})),window.localStorage.getItem("createGroupWithSocial")&&(c=JSON.parse(window.localStorage.getItem("createGroupWithSocial")),l=p(p({},c),{},{out:!0}),window.localStorage.setItem("createGroupWithSocial",JSON.stringify(l)))),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};(0,a.dG)(C)?(0,a.GS)(["profileMenu"],m(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.Ah)(C,"SIGNUP");case 2:if(!e.sent){e.next=4;break}(0,a.XN)(C,L);case 4:case"end":return e.stop()}}),e)})))):J?e():(0,a.GS)(["profileMenu"],(function(){location.href="/profile/new-check"}))},e.next=7,T();case 7:e.sent?f(t):(t(),w(!1),M({type:"USER_AGREEMENTS",props:{handleAfterLogin:f}}));case 9:case"end":return e.stop()}}),e)}))),function(){return B.apply(this,arguments)})};(0,o.d4)((function(){A.error?(O(U(A.error)),w(!1)):A.isSuccess?D.isSuccess():(A.popupClosed||A.popupBlocked)&&(A.popupClosed&&D.popupClosed(),A.popupBlocked&&D.popupBlocked(),w(!1))}),[A]),(0,o.d4)((function(){O("")}),[]);var z=function(){var e=m(s().mark((function e(r){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.preventDefault(),g(!0),!k){e.next=4;break}return e.abrupt("return");case 4:if(!r.currentTarget.checkValidity()){e.next=22;break}return e.prev=5,e.next=8,G();case 8:if(null==(n=e.sent)||!n.twoFactorRequired){e.next=13;break}return g(!1),w(!1),e.abrupt("return");case 13:if(!(0,a.NL)({data:n,addModal:M,onClose:t,setError:O,setDisabled:w,setIsSubmiting:g})){e.next=15;break}return e.abrupt("return");case 15:e.next=22;break;case 17:e.prev=17,e.t0=e.catch(5),w(!1),g(!1),O(e.t0.message||"An unexpected error occurred");case 22:case"end":return e.stop()}}),e,null,[[5,17]])})));return function(t){return e.apply(this,arguments)}}(),F=function(e){P(C[e],e),w(!0),O("")};return(0,n.h)(u.u_,{title:U("Let's create a Team"),onClose:t,className:"text-N800 sm:max-w-[450px] md:max-w-[900px]"},(0,n.h)("div",{className:"md:grid md:grid-cols-[1fr_450px] md:gap-32"},(0,n.h)("div",null,(0,n.h)("div",{className:"mb-16"},U("Already have an account?")," ",(0,n.h)(u.zx,{className:"!p-0 !font-normal text-B400 hover:underline focus:underline",onClick:function(){M({type:"LOGIN"}),t()}},U("Login"))),(0,n.h)("div",{className:"flex gap-x-4 mb-16"},(0,n.h)(u.Z0,{title:"Google",className:"border !border-N300 !px-8 gap-x-4 flex-1 min-w-0 hover:bg-N100 focus:bg-N100",onClick:function(){return F("google")},disabled:b||d}),(0,n.h)(u.Z0,{title:"Facebook",className:"border !border-N300 !px-8 gap-x-4 flex-1 min-w-0 hover:bg-N100 focus:bg-N100",onClick:function(){return F("facebook")},disabled:b||d}),(0,n.h)(u.Z0,{title:"Microsoft",className:"border !border-N300 !px-8 gap-x-4 flex-1 min-w-0 hover:bg-N100 focus:bg-N100",onClick:function(){return F("microsoft")},disabled:b||d})),(0,n.h)("div",{className:"relative text-sm leading-20 text-N700 text-center mb-16 before:content-[''] before:h-[1px] before:absolute before:top-[50%] before:right-[55%] before:left-0 before:bg-N400 after:content-[''] after:h-[1px] after:absolute after:top-[50%] after:left-[55%] after:right-0 after:bg-N400"},U("or")),(0,n.h)(u.bZ,{className:"mb-16",type:"error",headerText:N,show:(null==N?void 0:N.length)>0,hideButton:!0}),(0,n.h)("form",{onSubmit:z,className:(0,a.AK)("group",{validated:l})},(0,n.h)("div",{className:"mb-16"},(0,n.h)(u.II,{type:"text",name:"team",id:"sign-up-team",required:!0,placeholder:U("Enter your team name"),value:C.team,onChange:function(e){return L("team",e)},className:"w-full"})),(0,n.h)("div",{className:"mb-16"},(0,n.h)(u.II,{type:"email",name:"email",id:"sign-up-email",required:!0,value:C.previousUsername,placeholder:U("Enter your email"),onChange:function(e){return L("previousUsername",e)},className:"w-full"})),(0,n.h)("div",{className:"mb-16"},(0,n.h)(u.WU,{id:"sign-up-password",password:C.password,passwordError:k,setPasswordError:_,isSubmit:d,placeholder:U("Password"),onChange:function(e){return L("password",e.replace(/[\n\s]/g,""))},className:"w-full relative",t:U})),(0,n.h)("div",{className:"mb-16"},(0,n.h)(u.Jg,{id:"terms",type:"checkbox",name:"terms",checked:C.terms,required:!0,onChange:function(){return L("terms",!C.terms)}},U("I agree with")," ",(0,n.h)("a",{target:"_blank",className:"text-B400 hover:underline focus:underline",href:"/terms-of-service/"},U("Terms and Conditions")),(0,n.h)("br",null),U("and")," ",(0,n.h)("a",{target:"_blank",className:"text-B400 hover:underline focus:underline",href:"/privacy-policy/"},U("Privacy Notice")))),(0,n.h)("div",{className:"mb-16"},(0,n.h)(u.Jg,{id:"info",type:"checkbox",name:"info",checked:C.info,onChange:function(){return L("info",!C.info)}}
2,U("I agree to receive personalized emails about Plagiarismcheck.org offers, promotions, surveys and news."))),(0,n.h)(u.zx,{className:"w-full",type:"blue",submit:!0,disabled:b||d||!C.terms,onClick:function(){return f(!0)}},U("Continue")))),(0,n.h)("div",{className:"hidden md:block"},(0,n.h)("picture",null,(0,n.h)("source",{srcset:"/assets/v_2_0_0/layout/modules/auth/SignupOrg.webp",type:"image/webp"}),(0,n.h)("source",{srcset:"/assets/v_2_0_0/layout/modules/auth/SignupOrg.png",type:"image/png"}),(0,n.h)("img",{src:"/assets/v_2_0_0/layout/modules/auth/SignupOrg.webp",height:"485",width:"450",alt:U("As a Team/Organization"),loading:"lazy",className:"w-auto h-full object-cover rounded-[12px]"})))),(0,n.h)(c.Z,{isVisible:b,isComplite:A.isSuccess,onCancel:I,t:U}))}}}]);
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.