PageSourceSearch

https://skiplyn.com/_next/static/chunks/pages/partner/login-3fd830377fc2266b.js

js skiplyn.com collected 2026-10-02 00:33:38 UTC 12,489 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8141],{53975:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/partner/login",function(){return t(73575)}])},74296:function(e,r,t){"use strict";t.d(r,{Bp:function(){return x},En:function(){return l},F4:function(){return v},I6:function(){return f},LD:function(){return s},Oj:function(){return o},Qe:function(){return m},R6:function(){return a},a1:function(){return h},b7:function(){return c},eM:function(){return g},eg:function(){return b},hD:function(){return i},jK:function(){return d},mP:function(){return y},rO:function(){return p}});var n=t(32089),i=/^[A-Za-z ]{0,160}$/,a=/^[\d.]{0,10}$/,o=/^[(]{0,1}[0-9]{3}[)]{0,1}[-\s]{0,1}[0-9]{3}[-\s]{0,1}[0-9]{4}$/,s=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,u=/^[1-9][0-9.]{0,10}$/,c=function(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}))},l=function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},d=function(e){return e.replace(/  +/g," ").replace(/^\s+|\s+$/gm,"")},m=function(e){return e.replace(/(^\w{1}|\.\s*\w{1})/g,(function(e){return e.replace(/([a-z])/,(function(e){return e.toUpperCase()}))}))},p=n.Ry().shape({foodName:n.Z_().max(60,"Food name must be less than 60 characters").required("Required field"),foodPrice:n.Z_().matches(a,"Number only allowed").max(5,"Price allowed 5 characters only").required("Required field"),foodDescription:n.Z_().max(160,"Food description must be 160 characters or less")}),f=n.Ry().shape({categories:n.Z_().max(50,"Categories name must be less than 50 characters").required("Please fillout form")}),h=n.Ry().shape({modifierGroupName:n.Z_().required("Required"),exactItem:n.Z_().matches(u,"positive number").max(2,"max 2 character"),rangeTo:n.Z_().matches(u,"positive number").max(2,"max 2 character"),choiceName:n.IX().of(n.Ry().shape({name:n.Z_().required("Required"),price:n.Z_().matches(a,"positive number").max(5,"max 5 character").required("Required ")}))}),x=n.Ry().shape({name:n.Z_().max(50,"It's too long").required("Required"),firstName:n.Z_().max(25,"It's too long").required("Required "),lastName:n.Z_().max(25,"It's too long").required("Required "),address:n.Z_().required("Required"),email:n.Z_().email("Enter valid email").required("Required"),phone:n.Rx().typeError("Enter valid Phone number").required("Required"),tax:n.Z_().matches(a,"Must be positive").max(5,"It's too long").required("Required"),select:n.Z_().required("Required ")}),g=n.Ry().shape({phone:n.Z_().matches(o,"Enter a valid Phone number").required("Required")}),v=n.Ry().shape({validationCode:n.Z_().matches(a,"Number only").max(6,"6 digit number").min(6,"6 digit number").required("Required")}),b=n.Ry().shape({phone:n.Z_().matches(o,"Enter a valid Phone number").required("Required"),firstName:n.Z_().matches(i,"alphabet number").max(25,"It's too long").required("Required "),lastName:n.Z_().matches(i,"alphabet number").max(25,"It's too long").required("Required ")}),y=n.Ry().shape({rewardsPoints:n.Z_().matches(a,"Must be positive").max(5,"It's too long").required("Required"),expirationDay:n.Z_().matches(a,"Must be positive").max(5,"It's too long").required("Required")})},82771:function(e,r,t){"use strict";t.d(r,{Z:function(){return s}});var n=t(85893),i=t(9008),a=t.n(i),o=t(11163);function s(e){var r=e.title,t=e.children,i=(0,o.useRouter)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a(),{children:(0,n.jsx)("title",{children:"function"===typeof r?i.isReady?"".concat(r(i.query)," | skiplyn"):"skiplyn":r?"".concat(r," | skiplyn"):"skiplyn"})}),t]})}},32364:function(e,r,t){"use strict";t.d(r,{Z:function(){return b}});var n=t(14251),i=t(52875),a=t(85893),o=t(67294),s=t(98595),u=t(41664),c=t.n(u),l=t(28358),d=t(17812),m=t(39636),p=t(85639),f=t(282),h=t(45258),x=t(48884),g=t(82874),v=(0,t(41120).Z)({navBar:{paddingRight:"35px",paddingLeft:"35px",boxShadow:"none","@media (max-width: 900px)":{paddingLeft:0}},logo:{maxHeight:"102px",cursor:"pointer"},menuButton:{fontFamily:"AvenirNextLTPro,Arial,Roboto,-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Oxygen,Ubuntu,Cantarell,Droid Sans,Helvetica Neue,Open Sans,Icons16,sans-serif",fontWeight:500,marginLeft:"8px",color:"inherit",textTransform:"capitalize",fontSize:"21px",letterSpacing:"1px",padding:"7px 14px",borderRadius:"20px","&:hover, &:focus, &:active":{backgroundColor:"#1384a0",color:"white"}},logIn:{fontFamily:"AvenirNextLTPro,Arial,Roboto,-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Oxygen,Ubuntu,Cantarell,Droid Sans,Helvetica Neue,Open Sans,Icons16,sans-serif",fontWeight:500,marginLeft:"8px",textTransform:"capitalize",fontSize:"21px",letterSpacing:"1px",padding:"5px 21px",borderRadius:"20px",border:"1px solid #ffffff",color:"inherit","&:hover, &:focus, &:active":{backgroundColor:"#1384a0",color:"white"}},toolbar:{display:"flex",justifyContent:"space-between"},drawerContainer:{padding:"20px 30px"},textStyle:{textDecoration:"none",color:"white","&:hover":{textDecoration:"none"}}
1,mobileViewTextStyle:{borderBottom:"2px solid white",fontSize:"21px"}},{name:"rh-NavBar"});function b(){var e=v(),r=(0,o.useState)({mobileView:!1,drawerOpen:!1}),t=r[0],u=r[1],b=t.mobileView,y=t.drawerOpen;(0,o.useEffect)((function(){var e=function(){return window.innerWidth<900?u((function(e){return(0,i.Z)((0,n.Z)({},e),{mobileView:!0})})):u((function(e){return(0,i.Z)((0,n.Z)({},e),{mobileView:!1})}))};return e(),window.addEventListener("resize",(function(){return e()})),function(){window.removeEventListener("resize",(function(){return e()}))}}),[]);var w=function(){return(0,a.jsx)("div",{children:(0,a.jsx)(c(),{href:"/partner/login",passHref:!0,children:(0,a.jsx)("span",{className:e.textStyle,children:(0,a.jsx)(p.Z,{className:e.mobileViewTextStyle,children:"Login"})})})})},Z=(0,a.jsx)(c(),{href:"/",passHref:!0,children:(0,a.jsx)("img",{src:"".concat(g.to,"skiplyn-logo-.png"),className:e.logo,alt:"skiplynLogo"})}),j=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(c(),{href:"/partner/login",passHref:!0,children:(0,a.jsx)(f.Z,{className:e.logIn,children:"Log In"})})})};return(0,a.jsx)(s.Z,{children:(0,a.jsx)(h.Z,{className:e.navBar,children:b?function(){var r=function(){return u((function(e){return(0,i.Z)((0,n.Z)({},e),{drawerOpen:!1})}))};return(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{edge:"start",color:"inherit","aria-label":"menu","aria-haspopup":"true",onClick:function(){return u((function(e){return(0,i.Z)((0,n.Z)({},e),{drawerOpen:!0})}))},children:(0,a.jsx)(x.Z,{})}),(0,a.jsx)(m.ZP,{anchor:"left",open:y,onClose:r,children:(0,a.jsx)("div",{className:e.drawerContainer,style:{background:"#00586e",height:"100vh"},onClick:r,children:w()})}),(0,a.jsx)("div",{children:Z})]})}():(0,a.jsxs)(l.Z,{className:e.toolbar,children:[Z,(0,a.jsx)("div",{children:j()})]})})})}},73575:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return Z}});var n=t(85893),i=t(34727),a=t(70655),o=t(67294),s=t(14416),u=t(72132),c=t(89583),l=t(39803),d=t(282),m=t(20157),p=t(38524),f=t(37119),h=t(54705),x=(0,t(41120).Z)({mainContainer:{padding:"10px"},loginContainer:{margin:"auto",maxWidth:"450px",marginTop:"120px",padding:"28px",border:"1px solid gray",background:"white"},passwordResetContainer:{margin:"auto",maxWidth:"450px",marginTop:"120px",padding:"28px",border:"1px solid gray",background:"white"},passwordReset:{marginTop:"10px",color:"darkgray",float:"right",cursor:"pointer"},loginButton:{width:"100%",marginTop:"20px",color:"white",backgroundColor:"#00586e",height:"3.2em"},backArrowButton:{fontSize:"26px",marginBottom:"22px",cursor:"pointer"}},{name:"ra-Login"}),g=t(11163),v=t(74296);function b(){var e=(0,g.useRouter)(),r=(0,o.useState)(!1),t=r[0],b=r[1],y=(0,o.useState)(""),w=y[0],Z=y[1],j=(0,o.useState)(""),q=j[0],R=j[1],N=(0,o.useState)(!1),_=N[0],C=N[1],k=(0,s.I0)(),S=x(),O=function(){Z(""),R(""),b(!t)},E=function(){return u.Am.dismiss(),t?w?!!w.match(v.LD)||(u.Am.error("Email is not valid"),!1):(u.Am.error("Please fillout all fields"),!1):w&&q?!!w.match(v.LD)||(u.Am.error("Email is not valid"),!1):(u.Am.error("Please fillout all fields"),!1)},A=function(){var r=(0,i.Z)((function(){var r,t,n,i,o,s,c,l,d,x,g,v,b,y,Z,j,R,N,_,S,O;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(!E())return[2];u.Am.dismiss(),r={email:w,password:q},a.label=1;case 1:return a.trys.push([1,4,,5]),C(!0),[4,(0,p.Ib)({body:r,dispatch:k})];case 2:return t=a.sent(),n=t.data,i=n.token,o=n.restaurant,s=o.id,c=o.email,l=o.restaurantName,d=o.paymentService,x=o.waitTime,g=o.deliveryStatus,v=o.deliveryHours,b=o.firebaseToken,y=o.firebaseOrderDoc,[4,(0,f.q)({body:{restaurantId:s},options:(0,h.zl)(i),dispatch:k})];case 3:return Z=a.sent(),j=Z.data[0],R=j.active,N=j.acceptOrder,_={restaurantId:s,token:i,email:c.toLowerCase(),restaurantName:l,active:R,acceptOrder:N,paymentService:d,waitTime:x,deliveryStatus:g,deliveryHours:v,firebaseToken:b,firebaseOrderDoc:y},k((0,m.x4)(_)),e.push("/restaurant"),[3,5];case 4:return S=a.sent(),C(!1),O=(0,h.S3)(S),console.log(O),u.Am.error(O),[3,5];case 5:return[2]}}
1))}));return function(){return r.apply(this,arguments)}}(),I=function(){var e=(0,i.Z)((function(){var e,r;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:if(u.Am.dismiss(),!E())return[2];t.label=1;case 1:return t.trys.push([1,3,,4]),C(!0),[4,(0,p.Dl)({body:{email:w},dispatch:k})];case 2:return e=t.sent(),Z(""),u.Am.success(e.data.msg),C(!1),[3,4];case 3:return r=t.sent(),C(!1),console.log(r),u.Am.error((0,h.S3)(r)),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,n.jsxs)("div",{className:S.mainContainer,children:[!t&&(0,n.jsxs)("div",{className:S.loginContainer,children:[(0,n.jsx)(l.Z,{fullWidth:!0,label:"Email",value:w,onChange:function(e){return Z(e.target.value)}}),(0,n.jsx)(l.Z,{label:"Password",type:"password",fullWidth:!0,value:q,onChange:function(e){return R(e.target.value)}}),(0,n.jsx)("div",{className:S.passwordReset,onClick:O,children:"Password reset ?"}),(0,n.jsx)(d.Z,{variant:"contained",className:S.loginButton,onClick:A,disabled:_,children:"Login"})]}),t&&(0,n.jsxs)("div",{className:S.passwordResetContainer,children:[(0,n.jsx)("div",{children:(0,n.jsx)(c.BMs,{className:S.backArrowButton,onClick:O})}),(0,n.jsx)(l.Z,{fullWidth:!0,label:"Email",value:w,onChange:function(e){return Z(e.target.value)}}),(0,n.jsx)(d.Z,{variant:"contained",className:S.loginButton,onClick:I,disabled:_,children:"Submit"})]})]})}var y=t(32364),w=t(82771);function Z(){return(0,n.jsxs)(w.Z,{title:"Login",children:[(0,n.jsx)(y.Z,{}),(0,n.jsx)(b,{})]})}},82874:function(e,r,t){"use strict";t.d(r,{NU:function(){return a},T3:function(){return n},X6:function(){return i},to:function(){return o}});var n="https://skiplyn-food.s3.amazonaws.com/",i="https://skiplyn-banner.s3.amazonaws.com/",a="https://skiplyn-logos.s3.amazonaws.com/",o="https://skiplyn-home-images.s3.amazonaws.com/"},88357:function(e,r,t){"use strict";t.d(r,{w_:function(){return c},Pd:function(){return a}});var n=t(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=n.createContext&&n.createContext(i),o=function(){return o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},o.apply(this,arguments)},s=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&(t[n[i]]=e[n[i]])}return t};function u(e){return e&&e.map((function(e,r){return n.createElement(e.tag,o({key:r},e.attr),u(e.child))}))}function c(e){return function(r){return n.createElement(l,o({attr:o({},e.attr)},r),u(e.child))}}function l(e){var r=function(r){var t,i=e.size||r.size||"1em";r.className&&(t=r.className),e.className&&(t=(t?t+" ":"")+e.className);var a=e.attr,u=e.title,c=s(e,["attr","title"]);return n.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,c,{className:t,style:o({color:e.color||r.color},r.style,e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),u&&n.createElement("title",null,u),e.children)};return void 0!==a?n.createElement(a.Consumer,null,(function(e){return r(e)})):r(i)}}},function(e){e.O(0,[5445,1120,430,309,714,674,1664,8643,1898,9774,2888,179],(function(){return r=53975,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.