PageSourceSearch

https://skiplyn.com/_next/static/chunks/pages/restaurant/passwordreset/[token]-01aa47ced5f1bee1.js

js skiplyn.com collected 2026-10-02 00:33:53 UTC 11,822 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2245],{64831:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/restaurant/passwordreset/[token]",function(){return t(67156)}])},82771:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(85893),i=t(9008),s=t.n(i),o=t(11163);function a(e){var n=e.title,t=e.children,i=(0,o.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{children:(0,r.jsx)("title",{children:"function"===typeof n?i.isReady?"".concat(n(i.query)," | skiplyn"):"skiplyn":n?"".concat(n," | skiplyn"):"skiplyn"})}),t]})}},32364:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(14251),i=t(52875),s=t(85893),o=t(67294),a=t(98595),l=t(41664),c=t.n(l),u=t(28358),d=t(17812),p=t(39636),f=t(85639),h=t(282),g=t(45258),m=t(48884),x=t(82874),b=(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"}},mobileViewTextStyle:{borderBottom:"2px solid white",fontSize:"21px"}},{name:"rh-NavBar"});function v(){var e=b(),n=(0,o.useState)({mobileView:!1,drawerOpen:!1}),t=n[0],l=n[1],v=t.mobileView,y=t.drawerOpen;(0,o.useEffect)((function(){var e=function(){return window.innerWidth<900?l((function(e){return(0,i.Z)((0,r.Z)({},e),{mobileView:!0})})):l((function(e){return(0,i.Z)((0,r.Z)({},e),{mobileView:!1})}))};return e(),window.addEventListener("resize",(function(){return e()})),function(){window.removeEventListener("resize",(function(){return e()}))}}),[]);var w=function(){return(0,s.jsx)("div",{children:(0,s.jsx)(c(),{href:"/partner/login",passHref:!0,children:(0,s.jsx)("span",{className:e.textStyle,children:(0,s.jsx)(f.Z,{className:e.mobileViewTextStyle,children:"Login"})})})})},Z=(0,s.jsx)(c(),{href:"/",passHref:!0,children:(0,s.jsx)("img",{src:"".concat(x.to,"skiplyn-logo-.png"),className:e.logo,alt:"skiplynLogo"})}),j=function(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c(),{href:"/partner/login",passHref:!0,children:(0,s.jsx)(h.Z,{className:e.logIn,children:"Log In"})})})};return(0,s.jsx)(a.Z,{children:(0,s.jsx)(g.Z,{className:e.navBar,children:v?function(){var n=function(){return l((function(e){return(0,i.Z)((0,r.Z)({},e),{drawerOpen:!1})}))};return(0,s.jsxs)(u.Z,{children:[(0,s.jsx)(d.Z,{edge:"start",color:"inherit","aria-label":"menu","aria-haspopup":"true",onClick:function(){return l((function(e){return(0,i.Z)((0,r.Z)({},e),{drawerOpen:!0})}))},children:(0,s.jsx)(m.Z,{})}),(0,s.jsx)(p.ZP,{anchor:"left",open:y,onClose:n,children:(0,s.jsx)("div",{className:e.drawerContainer,style:{background:"#00586e",height:"100vh"},onClick:n,children:w()})}),(0,s.jsx)("div",{children:Z})]})}():(0,s.jsxs)(u.Z,{className:e.toolbar,children:[Z,(0,s.jsx)("div",{children:j()})]})})})}},67156:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return b}});var r=t(85893),i=t(34727),s=t(70655),o=t(67294),a=t(14416),l=t(38524),c=t(15538),u=t(69618),d=t(609),p=t(97975),f=t(72132),h=t(11163);function g(){var e=(0,o.useState)(null),n=e[0],t=e[1],g=(0,o.useState)(""),m=g[0],x=g[1],b=(0,o.useState)(""),v=b[0],y=b[1],w=(0,o.useState)(!0),Z=w[0],j=w[1],k=(0,o.useState)(!1),N=k[0],S=k[1],C=(0,o.useState)(""),R=C[0],z=C[1],P=(0,o.useState)(""),T=P[0],O=P[1],_=(0,h.useRouter)(),E=(0,a.I0)(),M=_.query.token;(0,o.useEffect)((function(){function e(){return(e=(0,i.Z)((function(){var e,n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),M?[3,1]:(z("Missing token"),[3,3]);case 1:return[4,(0,l.Rp)({token:M,dispatch:E})];case 2:e=r.sent(),t(e.data.restaurantId),z(""),r.label=3;case 3:return j(!1),[3,5];case 4:return n=r.sent(),console.log(n),z("Something is broken, please check and try again"),j(!1),[3,5];case 5:return[2]}}
1))}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[E,M]);var L=function(){var e=(0,i.Z)((function(e){var t;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:if(e.preventDefault(),f.Am.dismiss(),m!==v)return f.Am.error("Password didn't match"),[2];t={restaurantId:n,password:m},r.label=1;case 1:return r.trys.push([1,3,,4]),S(!0),[4,(0,l.QP)({body:t,dispatch:E})];case 2:return r.sent(),O("Your password is succefully changed"),S(!1),[3,4];case 3:return r.sent(),S(!1),console.log(R),f.Am.error("Can not set the password at this time, please try again later"),[3,4];case 4:return[2]}}))}));return function(n){return e.apply(this,arguments)}}();return Z?(0,r.jsx)("div",{children:"Loading..."}):(0,r.jsxs)("div",{style:{textAlign:"center",margin:"0 auto",paddingTop:"40px",maxWidth:"450px"},children:[(0,r.jsx)("h5",{style:{color:"darkgoldenrod"},children:"Reset Password"}),(0,r.jsx)("hr",{style:{background:"wheat"}}),(0,r.jsx)(r.Fragment,{children:R?(0,r.jsx)("div",{style:{color:"red",fontSize:"18px"},children:R}):T?(0,r.jsx)("div",{style:{color:"darkgreen",fontSize:"18px"},children:T}):(0,r.jsx)("div",{children:(0,r.jsx)(c.Z,{onSubmit:L,children:(0,r.jsxs)("div",{children:[(0,r.jsx)(u.Z,{style:{marginBottom:".5rem"},children:(0,r.jsx)(d.Z,{type:"password",name:"newPassword",value:m,placeholder:"Password",onChange:function(e){return x(e.target.value)},required:!0})}),(0,r.jsx)(u.Z,{style:{marginBottom:".5rem"},children:(0,r.jsx)(d.Z,{type:"password",name:"confirmPassword",value:v,placeholder:"Confirm Password",onChange:function(e){return y(e.target.value)},required:!0})}),(0,r.jsx)("br",{}),(0,r.jsx)(p.Z,{disabled:N,children:"Update Password"})]})})})})]})}var m=t(32364),x=t(82771);function b(){return(0,r.jsxs)(x.Z,{title:"Password Reset",children:[(0,r.jsx)(m.Z,{}),(0,r.jsx)(g,{})]})}},82874:function(e,n,t){"use strict";t.d(n,{NU:function(){return s},T3:function(){return r},X6:function(){return i},to:function(){return o}});var r="https://skiplyn-food.s3.amazonaws.com/",i="https://skiplyn-banner.s3.amazonaws.com/",s="https://skiplyn-logos.s3.amazonaws.com/",o="https://skiplyn-home-images.s3.amazonaws.com/"},97975:function(e,n,t){"use strict";var r=t(87462),i=t(63366),s=t(97326),o=t(75068),a=t(67294),l=t(45697),c=t.n(l),u=t(94184),d=t.n(u),p=t(23663),f=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],h={active:c().bool,"aria-label":c().string,block:c().bool,color:c().string,disabled:c().bool,outline:c().bool,tag:p.iC,innerRef:c().oneOfType([c().object,c().func,c().string]),onClick:c().func,size:c().string,children:c().node,className:c().string,cssModule:c().object,close:c().bool},g=function(e){function n(n){var t;return(t=e.call(this,n)||this).onClick=t.onClick.bind((0,s.Z)(t)),t}(0,o.Z)(n,e);var t=n.prototype;return t.onClick=function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()},t.render=function(){var e=this.props,n=e.active,t=e["aria-label"],s=e.block,o=e.className,l=e.close,c=e.cssModule,u=e.color,h=e.outline,g=e.size,m=e.tag,x=e.innerRef,b=(0,i.Z)(e,f);l&&"undefined"===typeof b.children&&(b.children=a.createElement("span",{"aria-hidden":!0},"\xd7"));var v="btn"+(h?"-outline":"")+"-"+u,y=(0,p.mx)(d()(o,{close:l},l||"btn",l||v,!!g&&"btn-"+g,!!s&&"btn-block",{active:n,disabled:this.props.disabled}),c);b.href&&"button"===m&&(m="a");var w=l?"Close":null;return a.createElement(m,(0,r.Z)({type:"button"===m&&b.onClick?"button":void 0},b,{className:y,ref:x,onClick:this.onClick,"aria-label":t||w}))},n}(a.Component);g.propTypes=h,g.defaultProps={color:"secondary",tag:"button"},n.Z=g},15538:function(e,n,t){"use strict";var r=t(87462),i=t(63366),s=t(97326),o=t(75068),a=t(67294),l=t(45697),c=t.n(l),u=t(94184),d=t.n(u),p=t(23663),f=["className","cssModule","inline","tag","innerRef"],h={children:c().node,inline:c().bool,tag:p.iC,innerRef:c().oneOfType([c().object,c().func,c().string]),className:c().string,cssModule:c().object},g=function(e){function n(n){var t;return(t=e.call(this,n)||this).getRef=t.getRef.bind((0,s.Z)(t)),t.submit=t.submit.bind((0,s.Z)(t)),t}(0,o.Z)(n,e);var t=n.prototype;return t.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},t.submit=function(){this.ref&&this.ref.submit()},t.render=function(){var e=this.props,n=e.className,t=e.cssModule,s=e.inline,o=e.tag,l=e.innerRef,c=(0,i.Z)(e,f),u=(0,p.mx)(d()(n,!!s&&"form-inline"),t);return a.createElement(o,(0,r.Z)({},c,{ref:l,className:u}))},n}
1(a.Component);g.propTypes=h,g.defaultProps={tag:"form"},n.Z=g},609:function(e,n,t){"use strict";var r=t(87462),i=t(63366),s=t(97326),o=t(75068),a=t(67294),l=t(45697),c=t.n(l),u=t(94184),d=t.n(u),p=t(23663),f=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],h={children:c().node,type:c().string,size:c().oneOfType([c().number,c().string]),bsSize:c().string,valid:c().bool,invalid:c().bool,tag:p.iC,innerRef:c().oneOfType([c().object,c().func,c().string]),plaintext:c().bool,addon:c().bool,className:c().string,cssModule:c().object},g=function(e){function n(n){var t;return(t=e.call(this,n)||this).getRef=t.getRef.bind((0,s.Z)(t)),t.focus=t.focus.bind((0,s.Z)(t)),t}(0,o.Z)(n,e);var t=n.prototype;return t.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},t.focus=function(){this.ref&&this.ref.focus()},t.render=function(){var e=this.props,n=e.className,t=e.cssModule,s=e.type,o=e.bsSize,l=e.valid,c=e.invalid,u=e.tag,h=e.addon,g=e.plaintext,m=e.innerRef,x=(0,i.Z)(e,f),b=["radio","checkbox"].indexOf(s)>-1,v=new RegExp("\\D","g"),y=u||("select"===s||"textarea"===s?s:"input"),w="form-control";g?(w+="-plaintext",y=u||"input"):"file"===s?w+="-file":"range"===s?w+="-range":b&&(w=h?null:"form-check-input"),x.size&&v.test(x.size)&&((0,p.O4)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=x.size,delete x.size);var Z=(0,p.mx)(d()(n,c&&"is-invalid",l&&"is-valid",!!o&&"form-control-"+o,w),t);return("input"===y||u&&"function"===typeof u)&&(x.type=s),x.children&&!g&&"select"!==s&&"string"===typeof y&&"select"!==y&&((0,p.O4)('Input with a type of "'+s+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete x.children),a.createElement(y,(0,r.Z)({},x,{ref:m,className:Z,"aria-invalid":c}))},n}(a.Component);g.propTypes=h,g.defaultProps={type:"text"},n.Z=g},69618:function(e,n,t){"use strict";var r=t(87462),i=t(63366),s=t(67294),o=t(45697),a=t.n(o),l=t(94184),c=t.n(l),u=t(23663),d=["className","cssModule","tag","size"],p={tag:u.iC,size:a().string,className:a().string,cssModule:a().object},f=function(e){var n=e.className,t=e.cssModule,o=e.tag,a=e.size,l=(0,i.Z)(e,d),p=(0,u.mx)(c()(n,"input-group",a?"input-group-"+a:null),t);return s.createElement(o,(0,r.Z)({},l,{className:p}))};f.propTypes=p,f.defaultProps={tag:"div"},n.Z=f}},function(e){e.O(0,[1120,430,309,674,1664,8643,1898,9774,2888,179],(function(){return n=64831,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.