(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{69805:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return s(24650)}])},28998:function(e,t,s){"use strict";var n=s(85893),r=s(67294),a=s(41664);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function m(e){var t=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 s,n=o(e);if(t){var r=o(this).constructor;s=Reflect.construct(n,arguments,r)}else s=n.apply(this,arguments);return c(this,s)}}var h=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,s,r,o=m(c);function c(){return l(this,c),o.apply(this,arguments)}return t=c,(s=[{key:"render",value:function(e){return(0,n.jsx)(a.default,{href:this.props.url,children:(0,n.jsxs)("a",{className:"flex border text-secondary shadow-lg py-5 px-5 border-stone-200 text-center rounded-xl font-semibold justify-center relative items-center hover:bg-secondary hover:text-white",children:[this.props.title,(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 absolute right-4 sm:right-10",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})}}])&&i(t.prototype,s),r&&i(t,r),c}(r.Component);t.Z=h},28763:function(e,t,s){"use strict";var n=s(11163);e.exports={CheckToken:function(){var e=n.useRouter();if(null==localStorage.getItem("token"))return localStorage.clear(),!1;e.push("/")}}},89176:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var n=s(67294),r=s(11163),a=s(9669),l=s.n(a);function i(){var e=(0,r.useRouter)(),t=(0,n.useState)(null),s=t[0],a=t[1];return(0,n.useEffect)((function(){void 0!=localStorage.getItem("token")&&void 0==localStorage.getItem("login")&&localStorage.clear();var t=!0;return localStorage.getItem("token")?t&&(l()({headers:{authorization:localStorage.getItem("token")},method:"GET",url:"".concat("https://apidocs.womenlisted.com/api","/user/validate/login")}).then((function(t){200==t.status?(a(!0),void 0!=localStorage.getItem("token")&&1==localStorage.getItem("login")&&e.push("/")):(a(!1),localStorage.removeItem("token"))})).catch((function(e){e.response&&(a(!1),localStorage.removeItem("token"))})),t=!1):a(!1),function(){a(null)}}),[]),{yesLogin:s}}},27170:function(e,t,s){"use strict";s.d(t,{Z:function(){return o}});var n=s(85893),r=s(67294),a=s(25675),l={src:"/_next/static/media/loader-women-listed.66469c92.gif",height:733,width:733},i=s(9008);function o(){return(0,r.useEffect)((function(){var e=setTimeout((function(){window.location.reload()}),1e4);return function(){clearTimeout(e)}}),[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.default,{children:[(0,n.jsx)("title",{children:"Women Listed"}),(0,n.jsx)("meta",{name:"description",content:"Women Listed | We Are Enough "})]}),(0,n.jsxs)("div",{className:"fixed top-0 left-0 w-screen h-screen bg-white flex items-center justify-center z-50",children:[(0,n.jsx)(a.default,{src:l,width:200,height:200,alt:"women-listed-logo"}),(0,n.jsx)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[200px] h-[200px]"})]})]})}},43436:function(e,t,s){"use strict";var n=s(85893),r=s(67294),a=s(56727),l=s(25675),i=s(41664),o=(s(41594),s(72531)),c=s(11163),d=s(65873),u=s(22136);t.Z=function(){(0,d.RoleInfo)();var e=(0,c.useRouter)(),t=(0,r.useState)(!1),s=t[0],m=t[1],h=(0,r.useRef)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"absolute sm:px-20 px-5 py-5 w-full bg-white text-right",children:[(0,n.jsx)(i.default,{href:"/",children:(0,n.jsx)("a",{className:"mr-10",children:"Back to Home"})}),"/register"==e.pathname||"/register/user"==e.pathname||"/register/professional"==e.pathname||"/register/user/onboarding"==e.pathname||"/register/professional/onboarding"==e.pathname?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{onClick:function(){return m(!0)},children:(0,n.jsx)("a",{className:"cursor-pointer border border-primary text-primary text-base text-center inline-block bg-white sm:min-w-[150px] min-w-[100px] px-3 sm:px-5 sm:py-3 py-2 rounded-md hover:bg-primary hover:text-white",children:"Login"})})}):(0,n.jsx)(o.Z,{url:"/register",children:"Register"})]}),(0,n.jsx)(a.uT.Root,{show:s,as:r.Fragment,children:(0,n.jsx)(a.Vq,{as:"div",className:"fixed z-[1000] inset-0 overflow-y-auto",initialFocus:h,onClose:m,children:(0,n.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,n.jsx)(a.uT.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)(a.Vq.Overlay,{className:"fixed inset-0 bg-stone-800 bg-opacity-75 transition-opacity"})}),(0,n.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,n.jsx)(a.uT.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsx)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle w-full sm:max-w-[700px]",style:{borderRadius:"2%",border:"15px solid #94bdbf"},children:(0,n.jsx)("div",{className:"bg-white pb-0 px-1 py-1",children:(0,n.jsxs)("div",{className:"sm:flex sm:items-start mb-4 ",children:[(0,n.jsx)("div",{className:"w-full sm:max-w-[250px] selfhidden",children:(0,n.jsx)(l.default,{src:"/images/login_img.png",alt:"logo",width:271,height:392})}),(0,n.jsxs)("div",{className:"w-full sm:max-w-[510px] px-2",children:[(0,n.jsx)(a.Vq.Title,{as:"h3",className:"text-base py-4 font-segoe text-left font-semibold text-gray-900",children:"LOG IN"}),(0,n.jsx)("hr",{}),(0,n.jsx)(u.Z,{ButtonName:"Login",otpsend:"/user/mobile/login",type:"login"})]})]})})})})]})})})]})}},24650:function(e,t,s){"use strict";s.r(t);var n=s(85893),r=s(67294),a=s(56727),l=s(9008),i=s(41664),o=s(25675),c=(s(43436),s(28998),s(28763),s(11163)),d=s(27170),u=s(89176),m=s(40782),h=s(22136);function f(){var e=(0,c.useRouter)(),t=(0,r.useState)(!1),s=t[0],d=t[1],u=(0,r.useRef)(null);return"true"==localStorage.getItem("login")&&(m.toast.error("You have allready loged in.",{position:"top-right",autoClose:3e3}),"62090b6f4558914b0e351eb9"==localStorage.getItem("userRoles")&&e.push("/profile/business"),"62090b6f4558914b0e351eba"==localStorage.getItem("userRoles")&&e.push("/profile/user")),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.default,{children:[(0,n.jsx)("title",{children:"Register | Women Listed"}),(0,n.jsx)("meta",{name:"description",content:"Women Listed | We Are Enough"})]}),(0,n.jsxs)("div",{className:"relative h-screen bg-fuchsia-50",children:[(0,n.jsx)("div",{className:"container pt-10 justify-between items-center text-center",children:(0,n.jsx)("div",{className:"flex w-1/9 lg:items-center sm:order-1 order-1 home_search",children:(0,n.jsx)(i.default,{href:"/",children:(0,n.jsx)("a",{children:(0,n.jsx)(o.default,{src:"/"==e.pathname?"/images/white-logo-new.png":"/images/logo.png",alt:"fnp-logo",width:150,height:80})})})})}),(0,n.jsxs)("div",{id:"default",className:"relative text-center lg:top-[10%] sm:top-[15%] left-1/2 transform -translate-x-1/2 w-4/4",children:[(0,n.jsx)(i.default,{href:"/",children:(0,n.jsx)("a",{className:"sm:block lg:hidden",children:(0,n.jsx)(o.default,{src:"/"==e.pathname?"/images/white-logo-new.png":"/images/logo.png",alt:"fnp-logo",width:150,height:80})})}),(0,n.jsxs)("div",{className:"mb-10 pt-5",style:{"padding-bottom":"50px"},children:[(0,n.jsx)("h5",{className:"font-bold text-xl mb-10",style:{color:"#65a2ae"},children:"Create New Account"}),(0,n.jsx)("div",{className:"home_search",children:(0,n.jsxs)("div",{className:"mb-8",children:[(0,n.jsx)(i.default,{href:"/register/professional",className:"ele",children:(0,n.jsx)("a",{className:"p-2 ele",children:(0,n.jsx)(o.default,{src:"/images/login-g+.png",alt:"logo",width:50,height:50})})}),(0,n.jsx)(i.default,{href:"/register/professional",className:"ele1",children:(0,n.jsx)("a",{className:"p-2 ele1",children:(0,n.jsx)(o.default,{src:"/images/login-phone.png",alt:"logo",width:50,height:50})})}),(0,n.jsx)(i.default,{href:"/register/professional",className:"ele2",children:(0,n.jsx)("a",{className:"p-2 ele2",children:(0,n.jsx)(o.default,{src:"/images/login-email.png",alt:"logo",width:50,height:50})})})]})}),(0,n.jsxs)("div",{className:"sm:block lg:hidden xl:hidden pt-14",children:[(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsx)(i.default,{href:"/register/professional",className:"ele",children:(0,n.jsx)("a",{className:"p-2 ele ml-1",children:(0,n.jsx)(o.default,{src:"/images/login-G+1.png",alt:"logo",width:250,height:63})})})}),(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsx)(i.default,{href:"/register/professional",className:"ele1",children:(0,n.jsx)("a",{className:"p-2 ele1 ml-1",children:(0,n.jsx)(o.default,{src:"/images/login-phone1.png",alt:"logo",width:250,height:65})})})}),(0,n.jsx)("div",{className:"mb-2",children:(0,n.jsx)(i.default,{href:"/register/professional",className:"ele2",children:(0,n.jsx)("a",{className:"p-2 ele2",children:(0,n.jsx)(o.default,{src:"/images/login-email1.png",alt:"logo",width:250,height:67})})})})]})]})]}),(0,n.jsx)("div",{id:"defaultlog",className:"relative w-full grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-1 gap-1 xl:gap-1 lg:gap-1",children:(0,n.jsx)("div",{className:"text-center",children:(0,n.jsxs)("p",{className:"text-center m-auto mb-0",children:["Already Registered?"," ",(0,n.jsx)("span",{className:"text-blue-600 cursor-pointer",onClick:function(){return d(!0)},children:"Login"})]})})})]}),(0,n.jsx)(a.uT.Root,{show:s,as:r.Fragment,children:(0,n.jsx)(a.Vq,{as:"div",className:"fixed z-10 inset-0 overflow-y-auto",initialFocus:u,onClose:d,children:(0,n.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,n.jsx)(a.uT.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)(a.Vq.Overlay,{className:"fixed inset-0 bg-stone-800 bg-opacity-75 transition-opacity"})}),(0,n.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,n.jsx)(a.uT.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsx)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle w-full sm:max-w-[700px]",style:{borderRadius:"2%",border:"15px solid #94bdbf"},children:(0,n.jsx)("div",{className:"bg-white pb-0 px-1 py-1",children:(0,n.jsxs)("div",{className:"sm:flex sm:items-start mb-4 ",children:[(0,n.jsx)("div",{className:"w-full sm:max-w-[250px] selfhidden",children:(0,n.jsx)(o.default,{src:"/images/login_img.png",alt:"logo",width:271,height:392})}),(0,n.jsxs)("div",{className:"w-full sm:max-w-[510px] px-2",children:[(0,n.jsx)(a.Vq.Title,{as:"h3",className:"text-base py-4 font-segoe text-left font-semibold text-gray-900",children:"LOG IN"}),(0,n.jsx)("hr",{}),(0,n.jsx)(h.Z,{ButtonName:"Login",otpsend:"/user/mobile/login",type:"login"})]})]})})})})]})})})]})}t.default=function(){var e=(0,u.Z)({required:!0}).yesLogin;return(0,n.jsx)(n.Fragment,{children:null==e?(0,n.jsx)(d.Z,{}):(0,n.jsx)(f,{})})}}},function(e){e.O(0,[4885,959,3867,2352,9774,2888,179],(function(){return t=69805,e(e.s=t);var t}));var t=e.O();_N_E=t}]);