PageSourceSearch

https://uniplan.ai/_next/static/chunks/pages/settings-10bb31ab3853b8b4.js

js uniplan.ai collected 2026-10-05 14:15:45 UTC 17,308 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{3406:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings",function(){return a(3830)}])},8034:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var s=a(7462),r=a(7294),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},n=a(7902),i=r.forwardRef(function(e,t){return r.createElement(n.Z,(0,s.Z)({},e,{ref:t,icon:l}))})},2866:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var s=a(7462),r=a(7294),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},n=a(7902),i=r.forwardRef(function(e,t){return r.createElement(n.Z,(0,s.Z)({},e,{ref:t,icon:l}))})},4843:function(e,t,a){"use strict";a.d(t,{NH:function(){return m},Nq:function(){return u},Qz:function(){return h},c0:function(){return x},cK:function(){return o},gF:function(){return c},n$:function(){return n},tJ:function(){return d},u9:function(){return i}});var s=a(5759),r=a(6453),l=a(7066);let n=async e=>{let t=await l.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.login),e);if(!(null==t?void 0:t.data))throw Error((null==t?void 0:t.data.message)||"Login request failed");return t},i=async e=>{let t=await l.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.google),e);if(!(null==t?void 0:t.data))throw Error((null==t?void 0:t.data.message)||"Login request failed");return t},o=async e=>{let t=await l.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.register),e);if(!(null==t?void 0:t.data))throw Error((null==t?void 0:t.data.message)||"request failed");return t},c=async e=>{let t=await l.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.forgotpassword),{email:e});if(!(null==t?void 0:t.data))throw Error((null==t?void 0:t.data.message)||"request failed");return null==t?void 0:t.data},d=async e=>{let t="".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.sendVerification);try{let e=await s.Z.post(t,{});if(!(null==e?void 0:e.data)){var a;throw Error((null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message)||"Request failed")}return e.data}catch(e){throw e}},x=async(e,t)=>{let a="".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.resetPass);try{let r=await s.Z.post(a,{password:t},{params:{token:e}});if(!(null==r?void 0:r.data)){var l;throw Error((null==r?void 0:null===(l=r.data)||void 0===l?void 0:l.message)||"Request failed")}return r.data}catch(e){throw e}},m=async e=>{try{return await s.Z.post("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.verifyEmail),{},{params:{token:e}})}catch(e){throw e}},u=async e=>{let t={firstName:e.firstName,lastName:e.lastName,language:e.language,phoneNo:e.phoneNo};return await s.Z.patch("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.updateUser,"/").concat(e.id),{...t})},h=async(e,t)=>await s.Z.patch("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat(r.O.updateUser).concat(t),{phoneNo:e})},2043:function(e,t,a){"use strict";a.d(t,{R:function(){return r},z:function(){return l}});var s=a(5759);let r=async()=>await s.Z.get("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat("/v1/payment/payment-list")),l=async e=>await s.Z.get("".concat("https://oyster-app-jwk3x.ondigitalocean.app").concat("/v1/payment/").concat(e))},9471:function(e,t,a){"use strict";var s=a(5893);a(7294),t.Z=e=>
1{let{type:t="text",label:a,placeholder:r,value:l,onChange:n,onBlur:i,onSelect:o,name:c,prefix:d,disabled:x=!1,emptyFields:m=[],validateKey:u=""}=e;return(0,s.jsxs)("div",{className:"form-group mb-3",children:[a&&(0,s.jsx)("label",{className:"block text-lg font-semibold mb-1",children:a}),(0,s.jsxs)("div",{className:"flex items-center border text-[14px] ".concat(m.includes(u)?"border-red-500":"border-[#E0E0E0]","  rounded-xl px-3 py-2.5 focus:outline-none focus:border-primary"),children:[d&&(0,s.jsx)("span",{className:"mr-2",children:d}),(0,s.jsx)("input",{type:t,name:c,placeholder:r,value:l,onChange:n,disabled:x,onBlur:i,onSelect:o,className:"w-full bg-transparent focus:outline-none"})]})]})}},5023:function(e,t,a){"use strict";a.d(t,{Y:function(){return r}});var s=a(584);let r=(e,t,a,r,l)=>{s.ZP[e]({message:t,description:a,onClose:l,duration:r||3})}},5900:function(e,t,a){"use strict";a.d(t,{a:function(){return c}});var s=a(4843),r=a(5023),l=a(7294),n=a(5007),i=a(1163),o=a(4026);let c=()=>{(0,i.useRouter)();let e=(0,n.I0)(),[t,a]=(0,l.useState)(!1),[c,d]=(0,l.useState)(null),[x,m]=(0,l.useState)(0),[u,h]=(0,l.useState)(!1);return{handleUpdateUser:(0,l.useCallback)(async t=>{try{d(null),a(!0);let r=await (0,s.Nq)(t);(200===r.status||201===r.status)&&(e((0,o.cO)(r.data)),localStorage.setItem("user",JSON.stringify(r.data)))}catch(t){var l,n,i,c,x;h(!1);let e=(null===(n=t.response)||void 0===n?void 0:null===(l=n.data)||void 0===l?void 0:l.message)||"An error occurred";(0,r.Y)("error","Error",null===(c=t.response)||void 0===c?void 0:null===(i=c.data)||void 0===i?void 0:i.message),d(e),m(null===(x=t.response)||void 0===x?void 0:x.status),a(!1)}},[e]),handleUpdateUserPhone:(0,l.useCallback)(async(t,l)=>{try{d(null),a(!0);let r=await (0,s.Qz)(t,l);if(200===r.status||201===r.status)return e((0,o.cO)(r.data)),localStorage.setItem("user",JSON.stringify(r.data)),r.data}catch(t){var n,i,c,x,u;h(!1);let e=(null===(i=t.response)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:n.message)||"An error occurred";(0,r.Y)("error","Error",null===(x=t.response)||void 0===x?void 0:null===(c=x.data)||void 0===c?void 0:c.message),d(e),m(null===(u=t.response)||void 0===u?void 0:u.status),a(!1)}},[e]),loading:t,error:c,success:u,setError:d,errorCode:x,setErrorCode:m,setLoading:a}}},3830:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return _},default:function(){return S}});var s=a(5893),r=a(7294),l=a(2787),n=a(1293),i=a(4715),o=a(9964),c=a(5052),d=a(5588),x=a(1664),m=a.n(x),u=a(9471),h=a(5007),p=a(4026),b=a(5900),g=a(2043),f=a(4415);let y=()=>{let e=(0,h.I0)(),[t,a]=(0,r.useState)(!1);return{handleGetBills:(0,r.useCallback)(async()=>{try{let t=await (0,g.R)();200===t.status&&e((0,f.xS)(t.data))}catch(e){}},[e]),loading:t,setLoading:a}};var j=a(9836),v=a(5675),w=a.n(v);let N=e=>{let{isModalOpen:t,onCancel:a}=e,l=(0,h.v9)(e=>{var t;return null==e?void 0:null===(t=e.bill)||void 0===t?void 0:t.bills}),{handleGetBills:n,setLoading:i}=y(),o=(0,r.useCallback)(async()=>{i(!0),await n(),i(!1)},[n,i]);return(0,r.useEffect)(()=>{o()},[o]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(j.Z,{open:t,onCancel:a,centered:!0,width:700,footer:!1,className:"my-4",children:[(0,s.jsxs)("div",{className:"border border-[#EDEEF3] shadow-light rounded-xl mt-6 py-6 px-6 md:px-10 mb-4",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-center mb-1",children:"Your Billing History"}),(0,s.jsx)("p",{className:"text-center text-gray",children:"Review your billing history below. Stay informed about your past payments,"})]}),(0,s.jsx)("div",{className:"container mx-auto px-4 sm:px-8",children:(0,s.jsx)("div",{className:"pt-4 pb-8",children:(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsx)("div",{className:"min-w-full shadow rounded-lg overflow-hidden",children:(0,s.jsxs)("table",{className:"w-full leading-normal",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",className:"px-5 py-3 bg-white  border-b border-gray-200 text-gray-800  text-left text-sm uppercase font-normal payment-table-heading",children:(0,s.jsx)("b",{children:"Month"})}),(0,s.jsx)("th",{scope:"col",className:"px-5 py-3 bg-white  border-b border-gray-200 text-gray-800  text-left text-sm uppercase font-normal payment-table-heading",children:(0,s.jsx)("b",{children:"Amount"})}),(0,s.jsx)("th",{scope:"col",className:"px-5 py-3 bg-white  border-b border-gray-200 text-gray-800  text-left text-sm uppercase font-normal payment-table-heading",children:(0,s.jsx)("b",{children:"Status"})})]})}),(0,s.jsx)("tbody",{children:l.map((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"px-5  border-b border-gray-200 bg-white text-sm",children:(0,s.jsx)("p",{className:"text-gray-900 whitespace-no-wrap p-0",children:new Date(null==e?void 0:e.createdAt).toLocaleStr
1ing("default",{month:"long",year:"numeric"})})}),(0,s.jsx)("td",{className:"px-5 border-b border-gray-200 bg-white text-sm",children:(0,s.jsxs)("p",{className:"text-gray-900 whitespace-no-wrap",children:["€ ",null==e?void 0:e.payment.toFixed(2)]})}),(0,s.jsx)("td",{className:"px-5  border-b border-gray-200 bg-white text-sm",children:(0,s.jsxs)("span",{className:"relative inline-block px-3 py-1 font-semibold text-green-900 leading-tight",children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 bg-green-200 opacity-50 rounded-full"}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(w(),{width:20,height:20,src:"/icons/tick-circle.svg",alt:"tick"}),(0,s.jsx)("span",{className:"status-color",children:"Paid"})]})]})})]},t))})]})})})})}),(0,s.jsx)("div",{className:"text-center mt-5",children:(0,s.jsx)("button",{onClick:a,type:"button",className:"text-primary hover:text-white border border-primary hover:bg-primary font-medium rounded-lg text-sm px-16 py-2.5 mb-2 mx-2",children:"Close"})})]})})};var Z=a(4640),E=a(7785);a(1369);let k=()=>{let e=(0,Z.useTranslations)("setting"),[t,a]=(0,r.useState)(!1),[l,n]=(0,r.useState)(!1),x=(0,h.v9)(p.pH),[g,f]=(0,r.useState)(x),{handleUpdateUser:y,setLoading:j,loading:v}=(0,b.a)();(0,r.useEffect)(()=>{f(x)},[x]);let w=e=>{f({...g,[e.target.name]:e.target.value})},k=async()=>{j(!0),await y(g),j(!1),n(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.Z,{gutter:20,className:"mt-8",children:[(0,s.jsx)(o.Z,{xs:24,lg:8,xl:7,xxl:5,children:(0,s.jsxs)("div",{className:"shadow-light bg-white border-gray rounded-xl px-6 xl:px-8 py-5 mb-8 mb-md-0 md:sticky md:top-[98px]",children:[(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{className:"my-2",children:(0,s.jsx)(m(),{href:"#basic_info",className:"text-primary hover:text-primary font-semibold bg-[#F1F3F5] flex w-full text-[18px] rounded-md px-5 py-1",children:e("basic")})}),(0,s.jsx)("li",{className:"my-2",children:(0,s.jsx)(m(),{href:"#change_password",className:"text-gray hover:text-primary flex w-full text-[18px] rounded-md px-4 py-1",children:e("change")})}),(0,s.jsx)("li",{className:"my-2",children:(0,s.jsx)(m(),{href:"#billing_history",className:"text-gray hover:text-primary flex w-full text-[18px] rounded-md px-4 py-1"})})]}),(0,s.jsx)("hr",{className:"border-t-[#EBEBEB] mt-4 mb-3"}),(0,s.jsx)(m(),{href:"#delete_account",className:"text-red-500 hover:text-primary text-[18px] px-4",children:e("delete")})]})}),(0,s.jsxs)(o.Z,{xs:24,lg:16,xl:17,xxl:19,children:[(0,s.jsxs)("div",{id:"basic_info",className:"shadow-custom bg-white rounded-2xl px-6 md:px-10 py-6 mb-4",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("h4",{className:"text-2xl font-semibold mb-4",children:e("basic")}),(0,s.jsx)("div",{className:"flex items-center",onClick:()=>n(!0),children:(0,s.jsx)("span",{className:"text-primary cursor-pointer font-semibold mb-4",children:e("edit")})})]}),(0,s.jsxs)(c.Z,{name:"basic",autoComplete:"off",layout:"vertical",children:[(0,s.jsxs)(i.Z,{gutter:20,className:"items-center",children:[(0,s.jsx)(o.Z,{xs:24,lg:6,xl:5,xxl:4,children:(0,s.jsx)("h4",{className:"text-lg font-bold mb-4 mb-md-0",children:e("first")})}),(0,s.jsx)(o.Z,{xs:24,lg:18,xl:19,xxl:20,children:(0,s.jsx)(u.Z,{type:"text",name:"firstName",placeholder:e("first"),value:null==g?void 0:g.firstName,disabled:!l,onChange:w})})]}),(0,s.jsx)("hr",{className:"border-t-[#EBEBEB] my-4"}),(0,s.jsxs)(i.Z,{gutter:20,className:"items-center",children:[(0,s.jsx)(o.Z,{xs:24,lg:6,xl:5,xxl:4,children:(0,s.jsx)("h4",{className:"text-lg font-bold mb-4 mb-md-0",children:e("last")})}),(0,s.jsx)(o.Z,{xs:24,lg:18,xl:19,xxl:20,children:(0,s.jsx)(u.Z,{type:"text",name:"lastName",placeholder:e("last"),value:null==g?void 0:g.lastName,disabled:!l,onChange:w})})]}),(0,s.jsx)("hr",{className:"border-t-[#EBEBEB] my-4"}),(0,s.jsxs)(i.Z,{gutter:20,className:"items-center",children:[(0,s.jsx)(o.Z,{xs:24,lg:6,xl:5,xxl:4,children:(0,s.jsx)("h4",{className:"text-lg font-bold mb-4 mb-md-0",children:e("email")})}),(0,s.jsx)(o.Z,{xs:24,lg:18,xl:19,xxl:20,children:(0,s.jsx)(u.Z,{type:"text",disabled:!0,placeholder:"[email protected]",value:null==g?void 0:g.email})})]}),(0,s.jsx)("hr",{className:"border-t-[#EBEBEB] my-4"}),(0,s.jsx)("div",{className:"setting-phone-number",children:(0,s.jsxs)(i.Z,{gutter:20,className:"items-center",children:[(0,s.jsx)(o.Z,{xs:24,lg:6,xl:5,xxl:4,children:(0,s.jsx)("h4",{className:"text-lg font-bold mb-4 mb-md-0",children:e("phone")})}),(0,s.jsx)(o.Z,{xs:24,lg:18,xl:19,xxl:20,children:(0,s.jsx)(E.ZP,{international:!0,defaultCountry:"FR",value:g.phoneNo,onChange:function(e){f({...g,phoneNo:e||""})}})})]})}),(0,s.jsx)("hr",{className:"border-t-[#EBEBEB] my-4"}),(0,s.jsxs)(i.Z,{gutter:20,className:"items-center",children:[(0,s.jsx)(o.Z,{xs:24,lg:6,xl:5,xxl:4,children:(0,s.jsx)("h4",{className:"text-lg font-bold mb-4 mb-md-0",children:e("yourLang")})}),(0,s.jsx)(o.Z,{xs:24,lg:18,xl:19,xxl:20,children:(0,s.jsxs)("select",{disabled:!l,onChange:w,name:"language",id:"countries",value:g.language,defaultValue:"English",className:"block w-full border text-[14px] border-[#
1E0E0E0] rounded-xl px-3 py-2.5 focus:outline-none focus:border-primary mb-3",children:[(0,s.jsx)("option",{disabled:!0,children:e("choose")}),(0,s.jsx)("option",{children:"English"}),(0,s.jsx)("option",{children:"Spanish"}),(0,s.jsx)("option",{children:"French"}),(0,s.jsx)("option",{children:"German"})]})})]})]}),l&&(0,s.jsxs)("div",{className:"flex justify-center",children:[(0,s.jsx)("button",{onClick:()=>n(!1),type:"button",className:"flex justify-center items-center text-lg font-semibold py-2.5 px-8 border border-primary bg-white hover:bg-primary text-primary hover:text-white rounded-lg mt-5",children:e("cancel")}),(0,s.jsx)("button",{onClick:k,disabled:v,type:"button",className:"flex justify-center items-center ms-5 text-lg font-semibold py-2.5 px-8 border border-primary bg-primary hover:bg-white text-white  hover:text-primary rounded-lg mt-5",children:v?(0,s.jsx)(d.Z,{}):"Update"})]})]}),(0,s.jsxs)("div",{id:"change_password",className:"shadow-custom bg-white rounded-2xl px-6 md:px-10 py-6 mb-4",children:[(0,s.jsx)("h4",{className:"text-2xl font-semibold mb-1",children:e("change")}),(0,s.jsx)("p",{className:"text-[18px] text-gray",children:e("staySecure")}),(0,s.jsx)("button",{type:"button",className:"flex justify-center items-center text-lg font-semibold py-2.5 px-8 border border-primary bg-white hover:bg-primary text-primary hover:text-white rounded-lg mt-5",children:e("change")})]}),(0,s.jsxs)("div",{id:"billing_history",className:"shadow-custom bg-white rounded-2xl px-6 md:px-10 py-6 mb-4",children:[(0,s.jsx)("h4",{className:"text-2xl font-semibold mb-1",children:e("billing")}),(0,s.jsx)("p",{className:"text-[18px] text-gray",children:e("reviewBilling")}),(0,s.jsx)("button",{onClick:()=>{a(!0)},type:"button",className:"flex justify-center items-center text-lg font-semibold py-2.5 px-14 border border-primary bg-white hover:bg-primary text-primary hover:text-white rounded-lg mt-5",children:e("view")})]}),(0,s.jsxs)("div",{id:"delete_account",className:"shadow-custom bg-white rounded-2xl px-6 md:px-10 py-6 mb-4",children:[(0,s.jsx)("h4",{className:"text-2xl font-semibold mb-1",children:e("delete")}),(0,s.jsx)("p",{className:"text-[18px] text-gray",children:e("deletePrompt")}),(0,s.jsx)("button",{type:"button",disabled:!0,className:"flex justify-center items-center text-lg font-semibold py-2.5 px-8 border border-[#D62300] bg-[#FF5555] hover:bg-[#D62300] text-white hover:text-white rounded-lg mt-5",children:e("delete")})]})]})]}),(0,s.jsx)(N,{isModalOpen:t,onCancel:()=>{a(!1)}})]})};var C=a(1626),_=!0,S=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(C.Z,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.w,{}),(0,s.jsx)(n.Y,{}),(0,s.jsx)("section",{className:"bg-[#F4F4F4] py-4 px-5 md:pl-[270px] pt-[70px] min-h-[100vh]",children:(0,s.jsx)(k,{})})]})})})}},function(e){e.O(0,[5675,5045,1664,5366,3999,582,7066,9865,2205,6801,7922,7699,5052,584,9836,5588,8803,6222,2888,9774,179],function(){return e(e.s=3406)}),_N_E=e.O()}]);

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.