PageSourceSearch

https://kilimanjaro-restaurants.com/_next/static/chunks/pages/profile/edit-account-f4dcf2703b4034fcaaf6.js

js kilimanjaro-restaurants.com collected 2026-09-24 10:17:38 UTC 5,324 bytes, 2 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[56],{ASsp:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/edit-account",function(){return r("IPy2")}])},IPy2:function(e,t,r){"use strict";r.r(t);var n=r("nKUr"),a=r("NKCw"),s=r("/MKj"),i=r("of9s"),c=r("20a2"),o=r.n(c),l=r("g4pe"),d=r.n(l),u=r("p46w"),b=r.n(u),j=r("q1tI"),m=r("5Yp1"),h=r("ZfH4"),O=r("DJ7r"),p=r("4svx"),f=r("N76A"),g=r("Lo8k"),x=r("yew1");t.default=Object(x.a)((()=>{var e,t,r,c;const{0:l,1:u}=Object(j.useState)({height:null,width:null});Object(j.useEffect)((()=>{const e=()=>{u({height:window.innerHeight,width:window.innerWidth})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const x=Object(s.c)((e=>e.loader.loading));let w=Object(s.c)((e=>e.auth))||{};const{register:v,handleSubmit:y,errors:N,reset:_}=Object(a.a)(),P=Object(s.b)();return Object(j.useEffect)((()=>{console.log("checking user",w)}),[]),Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)(m.a,{showSecFooter:!0,children:[Object(n.jsxs)(d.a,{children:[Object(n.jsx)("title",{children:"Edit Account | Kilimanjaro"}),Object(n.jsx)("meta",{name:"description",content:"Kilimanjaro restaurant is a Nigerian restaurant brand owned by Sundry Foods. If you're looking for delicious Nigerian cuisine in a welcoming atmosphere, Kilimanjaro should be at the top of your list. This page tells you more about the restaurant and the delicious African cuisine it offers"})]}),Object(n.jsx)("h1",{className:"visually-hidden",children:"Kilimanjaro edit account page"}),Object(n.jsx)("section",{className:"signup",children:Object(n.jsx)("div",{className:"container",children:Object(n.jsx)("div",{className:"row",children:Object(n.jsx)("div",{className:"col-md-6 mx-auto",children:Object(n.jsxs)("div",{className:"border-line",children:[Object(n.jsx)("h3",{className:"text-center",children:"Account information"}),Object(n.jsxs)("p",{className:"mb-3",children:[" ","Change or update your account information here."]}),Object(n.jsxs)("form",{onSubmit:y((async e=>{console.log("data fecthcing",e);const t=b.a.get("token");P(Object(p.b)());try{if(e){const{data:r}=await O.b.post("user",e,{headers:{Authorization:`Bearer ${t}`}});P(Object(f.g)(r.data)),P(Object(p.b)()),i.NotificationManager.success(r.message,"",3e3),o.a.push("/profile")}}catch(r){P(Object(p.b)()),i.NotificationManager.error(r.response.data.message,"",3e3)}_({})})),className:"signup-form",children:[Object(n.jsx)(h.a,{type:"text",name:"first_name",placeholder:"First Name*",label:"First Name",register:v({required:"First name is required"}),error:N.first_name&&N.first_name.message,defaultValue:null===w||void 0===w||null===(e=w.user)||void 0===e?void 0:e.first_name}),Object(n.jsx)(h.a,{type:"text",name:"last_name",placeholder:"Last Name*",label:"Last Name",register:v({required:"Last name is required"}),error:N.last_name&&N.last_name.message,defaultValue:null===w||void 0===w||null===(t=w.user)||void 0===t?void 0:t.last_name}),Object(n.jsx)(h.a,{type:"email",name:"email",placeholder:"[email protected]*",label:"Email Address",register:v({required:"Please input a valid email address"}),defaultValue:null===w||void 0===w||null===(r=w.user)||void 0===r?void 0:r.email,error:N.email&&N.email.message,disabled:!0}),Object(n.jsx)(h.a,{type:"number",name:"phone",placeholder:"+234 80 1234 5678*",label:"Mobile Number",register:v({required:"Phone number is required"}),defaultValue:null===w||void 0===w||null===(c=w.user)||void 0===c?void 0:c.phone,error:N.phone&&N.phone.message}),x?Object(n.jsx)("div",{className:"text-center",children:Object(n.jsx)(g.a,{})}):Object(n.jsx)("div",{className:"d-flex",children:Object(n.jsx)("button",{className:"btn w-50 btn-order mt-3 mr-4",type:"submit",children:Object(n.jsx)("span",{className:"text",children:"Save"})})})]})]})})})})})]})})}))},ZfH4:function(e,t,r){"use strict";var n=r("nKUr"),a=r("cpVT");function s(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?i(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=e=>{let{label:t,textboxClass:r,error:a,register:i}=e,o=s(e,["label","textboxClass","error","register"]);return Object(n.jsxs)(n.Fragment,{children:[t&&Object(n.jsx)("label",{htmlFor:t,children:t}),Object(n.jsx)("div",{className:`textbox ${r}`,children:Object(n.jsx)("input",c(c({},o),{},{ref:i}))}),a&&Object(n.jsx)("p",{className:"error",children:a})]})}}},[["ASsp",0,1,2,3,4,5,6,9]]]);
2//# sourceMappingURL=edit-account-f4dcf2703b4034fcaaf6.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.