PageSourceSearch

https://ruler.online/_next/static/chunks/pages/login-eb746bfe0471fbd2.js

js ruler.online collected 2026-10-02 00:12:37 UTC 12,491 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{35342:function(e,r,t){"use strict";t.d(r,{Z:function(){return s}});t(67294);var n=t(82745),o=t(85893);function s(){return(0,o.jsxs)("div",{className:"feature-container",children:[(0,o.jsx)("div",{className:"feature-container-content",children:(0,o.jsx)("h2",{children:(0,o.jsx)(n.Z,{slug:"login/left-side-text"})})}),(0,o.jsx)("div",{className:"feature-container-cover",style:{backgroundImage:"url(https://s3.amazonaws.com/ruleronlineimgs/ui/ruler-login-cover.jpg)"}})]})}},99764:function(e,r,t){"use strict";t.d(r,{Z:function(){return v}});var n,o=t(92777),s=t(82262),a=t(45959),i=t(63553),l=t(37247),c=t(67294),u=t(2664),d=t(87411),p=t(66131),h=t(41825),f=t(85893);function m(e){var r=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=(0,l.Z)(e);if(r){var o=(0,l.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,i.Z)(this,t)}}var v=(0,u.$j)(null,(function(e){return{changeModal:function(r){return e((0,p.ID)(r))}}}))(n=function(e){(0,a.Z)(t,e);var r=m(t);function t(){return(0,o.Z)(this,t),r.apply(this,arguments)}return(0,s.Z)(t,[{key:"handleContactButton",value:function(){var e=this;return function(){e.props.changeModal({isOpen:!0,aria:{labelledby:"contact"},className:"contact",content:(0,f.jsx)(h.Z,{src:"//help.ruler.online/gfembed/?f=1",title:d.Z.footer.contact})})}}},{key:"render",value:function(){var e="\xa9 ".concat((new Date).getFullYear()," Yale University. ").concat(d.Z.footer.allRightsReserved);return(0,f.jsxs)("footer",{className:"auth-footer",children:[(0,f.jsx)("p",{className:"source-org copyright",children:e}),(0,f.jsx)("nav",{className:"footer-nav",children:(0,f.jsxs)("ul",{className:"menu simple",children:[(0,f.jsx)("li",{children:(0,f.jsx)("a",{href:"/terms",rel:"noopener noreferrer",target:"_blank",children:d.Z.tos})}),(0,f.jsx)("li",{children:(0,f.jsx)("a",{href:"/privacy",rel:"noopener noreferrer",target:"_blank",children:d.Z.privacy})}),(0,f.jsx)("li",{children:(0,f.jsx)("a",{role:"button",onClick:this.handleContactButton(),onKeyDown:this.handleContactButton(),tabIndex:"0",children:d.Z.footer.contact})})]})})]})}}]),t}(c.Component))||n},38550:function(e,r,t){"use strict";var n=t(59499),o=t(92777),s=t(82262),a=t(45959),i=t(63553),l=t(37247),c=t(67294),u=t(2664),d=t(94184),p=t.n(d),h=t(83253),f=t.n(h),m=t(96486),v=t.n(m),y=t(87411),g=t(66131),x=t(85893);function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?b(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function w(e){var r=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=(0,l.Z)(e);if(r){var o=(0,l.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,i.Z)(this,t)}}var Z={overlay:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:1005,backgroundColor:"rgba(0,0,0,.65)",overflowY:"auto",display:"block"},content:{zIndex:1006,backfaceVisibility:"hidden",padding:"1rem",border:"1px solid #cacaca",borderRadius:0,backgroundColor:"#fefefe",position:"relative",top:"100px",marginRight:"auto",margiLeft:"auto",overflowY:"auto",display:"block"}},k=(0,u.$j)((function(e){return{isOpen:e.root.modal.isOpen,hideCloseButton:e.root.modal.hideCloseButton,content:e.root.modal.content,className:e.root.modal.className,aria:e.root.modal.aria,shouldCloseOnOverlayClick:e.root.modal.shouldCloseOnOverlayClick,onClose:e.root.modal.onClose,style:e.root.modal.style}}),{changeModal:g.ID}),N=function(e){(0,a.Z)(t,e);var r=w(t);function t(){return(0,o.Z)(this,t),r.apply(this,arguments)}return(0,s.Z)(t,[{key:"style",get:function(){var e=Z;return v().includes(this.props.className,"full")?e={overlay:Z.overlay,content:j(j({},Z.content),{},{top:"0"})}:v().includes(this.props.className,"after-login-popup")&&(e={overlay:Z.overlay,content:j(j({},Z.content),{},{padding:"2rem",backgroundColor:"#024985"})}),v().defaultsDeep(this.props.style,e)}},{key:"closeModal",value:function(){this.props.changeModal({isOpen:!1}),v().isUndefined(this.props.onClose)||this.props.onClose()}},{key:"handleOverlayClick",value:function(){var e=this;return function(){e.props.shouldCloseOnOverlayClick&&e.closeModal()}}},{key:"render",value:function(){var e=this,r=(0,x.jsx)("button",{className:"close-button","aria-label":y.Z.closeButton,type:"button",onClick:function(){return e.closeModal()},children:(0,x.jsx)("span",{"aria-hidden":"true",children:"\xd7"})});return this.props.hideCloseButton&&(r=null),(0,x.jsxs)(f(),{isOpen:this.props.isOpen,overlayClassName:"reveal-overlay",className:p()("reveal",this.props.className),onRequestClose:this.handleOverlayClick(),style:this.style,bodyOpenClassName:"is-reveal-open",ariaHideApp:!1,shouldCloseOnOverlayClick:this.props.shouldCloseOnOverlayClick,aria:this.props.aria,children:[r,this.props.content]}
1)}}]),t}(c.Component);r.Z=k(N)},41825:function(e,r,t){"use strict";var n=t(92777),o=t(82262),s=t(45959),a=t(63553),i=t(37247),l=t(67294),c=t(11752),u=t.n(c),d=t(87411),p=t(85893);function h(e){var r=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=(0,i.Z)(e);if(r){var o=(0,i.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,a.Z)(this,t)}}var f=u()().publicRuntimeConfig,m=function(e){(0,s.Z)(t,e);var r=h(t);function t(){return(0,n.Z)(this,t),r.apply(this,arguments)}return(0,o.Z)(t,[{key:"renderIFrame",value:function(){return(0,p.jsx)("iframe",{title:this.props.title,src:this.props.src,width:"100%",height:"540",frameBorder:"0",className:"gfiframe"})}},{key:"renderIFramePlaceholder",value:function(){return(0,p.jsxs)("div",{className:"iframe-placeholder",children:[d.Z.iframePlaceholder,this.props.src]})}},{key:"render",value:function(){return(0,p.jsx)("div",{className:"modal-wrapper",children:(0,p.jsx)("div",{className:"modal-container",children:"production"===f.SERVER_ENV?this.renderIFrame():this.renderIFramePlaceholder()})})}}]),t}(l.Component);r.Z=m},55210:function(e,r,t){"use strict";t.r(r);var n=t(50029),o=t(92777),s=t(82262),a=t(10748),i=t(45959),l=t(63553),c=t(37247),u=t(59499),d=t(87794),p=t.n(d),h=(t(67294),t(94184)),f=t.n(h),m=t(76489),v=t(2664),y=t(25935),g=t(87411),x=t(32152),b=t(94667),j=t(38550),w=t(99764),Z=t(66131),k=t(35342),N=t(49024),O=t(82745),C=t(97592),P=t(85893);function R(e){var r=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=(0,c.Z)(e);if(r){var o=(0,c.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,l.Z)(this,t)}}var B=(0,v.$j)((function(e){return{email:e.login.formData.email,password:e.login.formData.password,rememberMe:e.login.formData.rememberMe,loading:e.login.loading,errors:e.login.errors}}),{loginRequest:C.Qb,validateField:C.OP,changeFormField:C.oU}),F=function(e){(0,i.Z)(t,e);var r=R(t);function t(){var e;(0,o.Z)(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return e=r.call.apply(r,[this].concat(s)),(0,u.Z)((0,a.Z)(e),"state",{shownPassword:!1}),e}return(0,s.Z)(t,[{key:"toggleShownPasswordHandler",value:function(){var e=this;return function(){e.setState((function(e){return{shownPassword:!e.shownPassword}}))}}},{key:"rememberMeHandler",value:function(){var e=this;return function(r){e.props.changeFormField("rememberMe",r.target.checked)}}},{key:"loginHandler",value:function(){var e=this;return function(r){r.preventDefault(),e.props.loginRequest({email:{value:e.props.email.trim(),validations:t.validations.email},password:{value:e.props.password,validations:t.validations.password},rememberMe:{value:e.props.rememberMe}})}}},{key:"render",value:function(){return(0,P.jsxs)("div",{children:[(0,P.jsx)(x.Z,{title:"Login"}),(0,P.jsx)(j.Z,{}),(0,P.jsx)("div",{className:"main-auth-container",children:(0,P.jsx)("div",{className:"grid-x grid-padding-x align-center",children:(0,P.jsx)("div",{className:"small-11 medium-10 large-4 cell",children:(0,P.jsxs)("div",{className:"auth-content",children:[(0,P.jsxs)("header",{className:"auth-header",children:[(0,P.jsx)("div",{className:"logo",children:(0,P.jsx)("img",{src:"https://ruleronlineimgs.s3.amazonaws.com/logos/ruler-logo.svg",alt:"Ruler logo"})}),(0,P.jsx)("h1",{className:"app-auth-title",children:g.Z.auth.login.title})]}),(0,P.jsxs)("main",{className:"auth-main",children:[(0,P.jsx)("span",{className:f()("form-error",{"is-visible":this.props.errors.base}),children:(0,y.ZP)(this.props.errors.base||"")}),(0,P.jsxs)("form",{id:"app-login-form",action:"","data-abide":!0,noValidate:!0,onSubmit:this.loginHandler(),children:[(0,P.jsx)("label",{htmlFor:"e-mail",children:g.Z.auth.emailLabel}),(0,P.jsx)("input",{type:"text",id:"e-mail",value:this.props.email,onChange:this.createFieldHandler("email"),onBlur:this.createFieldValidationHandler("email",t.validations.email),required:!0,className:f()({"is-invalid-input":this.props.errors.email}),pattern:"email"}),(0,P.jsx)("span",{className:f()("form-error",{"is-visible":this.props.errors.email}),children:this.props.errors.email}),(0,P.jsxs)("div",{className:"password-wrapper",children:[(0,P.jsx)("label",{htmlFor:"password",children:g.Z.auth.password}),(0,P.jsx)("input",{type:this.state.shownPassword?"text":"password",id:"password",value:this.props.password,className:f()({"is-invalid-input":this.props.errors.password}),onChange:this.createFieldHandler("password"),onBlur:this.createFieldValidationHandler("password",t.validations.password),autoComplete:"off",required:!0,pattern:"alpha_numeric"}),(0,P.jsx)("span",{className:f()("form-error",{"is-visible":this.props.errors.password}),children:this.props.errors.password}),(0,P.jsx)("button",{id:"show-password",type:"button",className:f()("show-pass",{active:this.state.shownPassword}
1),"aria-hidden":"true",onClick:this.toggleShownPasswordHandler(),tabIndex:-1,title:g.Z.auth.shownPassword,children:(0,P.jsx)("i",{className:"icon-eye"})}),(0,P.jsxs)("label",{htmlFor:"remember-check",children:[(0,P.jsx)("input",{type:"checkbox",id:"remember-check",onChange:this.rememberMeHandler()}),g.Z.rememberMe]})]}),(0,P.jsx)("p",{children:(0,P.jsxs)("a",{href:"/forgot-password",children:[g.Z.auth.forgotPassword,"?"]})}),(0,P.jsx)("button",{type:"submit",id:"loginButton",className:"button expanded",disabled:this.props.loading,children:g.Z.auth.logIn}),(0,P.jsx)(O.Z,{slug:"login/login-screen-text"})]})]}),(0,P.jsx)(w.Z,{})]})})})}),(0,P.jsx)(k.Z,{})]})}}]),t}(N.Z);(0,u.Z)(F,"getInitialProps",b.Y.getInitialPageProps((function(e){return function(){var r=(0,n.Z)(p().mark((function r(t){var n,o,s,a;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=t.req,o=t.res,n&&n.headers.cookie&&(s=m.parse(n.headers.cookie),a=s["ruler-jwt"],e.dispatch({type:Z.Df,payload:{jwt:a,res:o}}));case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()}))),(0,u.Z)(F,"validations",{email:"nonEmpty email",password:"nonEmpty lengthMin8"}),r.default=B(F)},83236:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(55210)}])}},function(e){e.O(0,[3253,9774,2888,179],(function(){return r=83236,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
2//# sourceMappingURL=login-eb746bfe0471fbd2.js.map

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.