PageSourceSearch

https://app.promolayer.io/_next/static/chunks/pages/login_wp-1b9630be6529aca0.js

js promolayer.io collected 2026-10-02 02:47:58 UTC 6,634 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2916],{80158:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login_wp",function(){return a(70201)}])},74493:function(e,s){"use strict";s.Z={src:"/_next/static/media/profile-img.f9b6a076.png",height:672,width:1038,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAQlBMVEVMaXGNrs+wo6jv9/dki5n38vT////r9fV8jZT5+fmmeXTXyc388OW0XE3///fZ087OyMWwvsz/+PLooYiOr9H/5MFQLe8kAAAAFnRSTlMAhTJBVUwEDBgaLjTISCL6qH6ev/r91xgK8gAAAAlwSFlzAAALEwAACxMBAJqcGAAAADBJREFUeJwFwQcCgCAMALErlg4cDPX/XyUBDgc3iOrcNQlVKW+BaPKN/zLyfHL25RsTdQExnPIm4QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5}},70201:function(e,s,a){"use strict";a.r(s);var r=a(85893),n=a(5379),i=a.n(n),c=a(9669),l=a.n(c),t=a(93967),d=a.n(t),o=a(25675),m=a.n(o),x=a(41664),h=a.n(x),u=a(11163),j=a(67294),p=a(87536),g=a(53573),f=a(53637),w=a(35773),A=a(95305),N=a(39886),v=a(54610),y=a(23138),b=a(89163),E=a(3126),O=a(56960);a(65031);var Z=a(64947),_=a(74493);s.default=e=>{let s=(0,u.useRouter)(),{t:a}=(0,g.$)(),[n,c]=(0,j.useState)(!1),{register:t,handleSubmit:o,formState:{errors:x}}=(0,p.cI)({mode:"onChange"}),sendId=(e,s)=>{window.opener.postMessage({message:"fromPromolayer",userId:e,secret:s},"*")},handleValidSubmit=async e=>{try{let{email:a,password:r}=e,n=(0,Z.I)(),{user:i}=await n.loginUser(a,r),{platform:c,site_url:t,woocommerce_activated:d,secret:o}=s.query;"wordpress"===c&&i.uid&&(await l().post("/api/wordpress/sendId",{userId:i.uid,url:t,secret:o,woocommerceActivated:d}),sendId(i.uid,o))}catch(e){c(!0)}},showErrors=e=>{var s;let n=null===(s=x[e])||void 0===s?void 0:s.type;if(!n)return null;switch(n){case"required":return(0,r.jsx)("span",{children:a("This is required")});case"pattern":return(0,r.jsx)("span",{children:a("Invalid email address")})}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"jsx-5277a2ca01d43706 account-pages",children:(0,r.jsx)(f.Z,{className:"",children:(0,r.jsx)(w.Z,{className:"justify-content-center align-items-center",style:{height:"calc(100vh - 60px)",minHeight:"660px"},children:(0,r.jsxs)(A.Z,{md:8,lg:6,xl:5,children:[(0,r.jsxs)(N.Z,{className:"overflow-hidden",children:[(0,r.jsx)("div",{className:"jsx-5277a2ca01d43706 bg-primary bg-soft",children:(0,r.jsxs)(w.Z,{children:[(0,r.jsx)("div",{className:"jsx-5277a2ca01d43706 col col-xs-7 d-flex align-items-center",children:(0,r.jsxs)("div",{className:"jsx-5277a2ca01d43706 text-primary ps-2 ps-sm-4 py-4 py-sm-0",children:[(0,r.jsx)("h4",{className:"jsx-5277a2ca01d43706 text-primary",children:a("Welcome Back !")}),(0,r.jsx)("p",{className:"jsx-5277a2ca01d43706 mb-0",children:a("Sign in to continue to Promolayer.")})]})}),(0,r.jsx)("div",{className:"jsx-5277a2ca01d43706 col col-5 align-self-end",children:(0,r.jsx)(m(),{src:_.Z,alt:"",className:"img-fluid align-right"})})]})}),(0,r.jsx)(v.Z,{className:"pt-3",children:(0,r.jsxs)("div",{className:"jsx-5277a2ca01d43706 p-2",children:[n&&(0,r.jsx)(y.Z,{color:"danger",children:a("Wrong email or password!")}),(0,r.jsxs)("form",{onSubmit:o(handleValidSubmit),className:"jsx-5277a2ca01d43706 form-horizontal",children:[e.error&&"string"==typeof e.error?(0,r.jsx)(y.Z,{color:"danger",children:e.error}):null,(0,r.jsxs)(b.Z,{children:[(0,r.jsx)(E.Z,{children:a("Email")}),(0,r.jsx)("input",{...t("email",{required:!0,pattern:/^.+@.+$/}),placeholder:a("Enter email"),type:"email",className:"jsx-5277a2ca01d43706 "+(d()({"form-control":!0,"is-invalid":!!showErrors("email")})||"")}),(0,r.jsx)(O.Z,{children:showErrors("email")})]}),(0,r.jsxs)(b.Z,{className:"mb-3",children:[(0,r.jsx)(E.Z,{children:a("Password")}),(0,r.jsx)("input",{...t("password",{required:!0}),type:"password",required:!0,placeholder:a("Enter password"),className:"jsx-5277a2ca01d43706 "+(d()({"form-control":!0,"is-invalid":!!showErrors("password")})||"")}),(0,r.jsx)(O.Z,{children:showErrors("password")})]}),(0,r.jsxs)("div",{className:"jsx-5277a2ca01d43706 form-check",children:[(0,r.jsx)("input",{type:"checkbox",id:"customControlInline",className:"jsx-5277a2ca01d43706 form-check-input"}),(0,r.jsx)("label",{htmlFor:"customControlInline",className:"jsx-5277a2ca01d43706 form-check-label",children:a("Remember me")})]}),(0,r.jsx)("div",{className:"jsx-5277a2ca01d43706",children:(0,r.jsx)("div",{id:"recaptcha-container-id",className:"jsx-5277a2ca01d43706"})}),(0,r.jsx)("div",{className:"jsx-5277a2ca01d43706 mt-3 d-grid",children:(0,r.jsxs)("button",{type:"submit",className:"jsx-5277a2ca01d43706 btn btn-primary col-12 waves-effect waves-light",children:[a("Log In")," ",(0,r.jsx)("i",{className:"jsx-5277a2ca01d43706 mdi mdi-login"})]})}),(0,r.jsx)("div",{className:"jsx-5277a2ca01d43706 mt-4 text-center",children:(0,r.jsx)(h(),{href:"/forgot-password",className:"text-muted",legacyBehavior:!0,children:(0,r.jsxs)("a",{className:"jsx-5277a2ca01d43706",children:[(0,r.jsx)("i",{className:"jsx-5277a2ca01d43706 mdi mdi-lock me-1"}),a("Forgot your password?")]})})})]})]})})]}),(0,r.jsx)("div",{className:"jsx-5277a2ca01d43706 mt-4 text-center",children:(0,r.jsxs)("p",{className:"jsx-5277a2ca01d43706",children:["\xa9 ",new Date().getFullYear()," Promolayer"," ",(0,r.jsx)("i",{className:"jsx-5277a2ca01d43706 mdi mdi-heart text-danger"})," by Peakdigital"]})})]})})})}),(0,r.jsx)(i(),{id:"5277a2ca01d43706",children:"body{min-width:unset}"})]})}},53637:function(e,s,a){"use strict";var r=a(67294),n=a(45697),i=a.n(n),c=a(93967),l=a.n(c),t=a(22040),d=["className","cssModule","fluid","tag"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var a=arguments[s];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}var o={tag:t.iC,fluid:i().oneOfType([i().bool,i().string]),className:i().string,cssModule:i().object};function Container(e){var s=e.className,a=e.cssModule,n=e.fluid,i=e.tag,c=void 0===i?"div":i,o=function(e,s){if(null==e)return{};var a,r,n=function(e,s){if(null==e)return{};var a,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)a=i[r],s.indexOf(a)>=0||(n[a]=e[a]);return n}(e,s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(s.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}(e,d),m="container";!0===n?m="container-fluid":n&&(m="container-".concat(n));var x=(0,t.mx)(l()(s,m),a);return r.createElement(c,_extends({},o,{className:x}))}
1Container.propTypes=o,s.Z=Container}},function(e){e.O(0,[8211,9774,2888,179],function(){return e(e.s=80158)}),_N_E=e.O()}]);
2//# sourceMappingURL=login_wp-1b9630be6529aca0.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.