module.exports=[69471,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/[locale]/()/user/profile/ProfileForm.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/[locale]/()/user/profile/ProfileForm.tsx <module evaluation>","default")},56508,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/[locale]/()/user/profile/ProfileForm.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/[locale]/()/user/profile/ProfileForm.tsx","default")},6579,a=>{"use strict";a.i(69471);var b=a.i(56508);a.n(b)},99819,a=>{"use strict";a.s(["default",()=>j],99819);var b=a.i(7997),c=a.i(65353),d=a.i(21307);function e(a){return(0,d.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"},child:[]}]})(a)}var f=a.i(6579),g=a.i(15602),h=a.i(97584),i=a.i(32776);async function j(){let a=await (0,h.getLocale)(),d=await (0,i.getTranslations)("profile"),j=await (0,g.api)(),k=await j.get("/profile"),l=k.data?.data,m={image:l.image_url||"/doctor.jpg",firstName:l.first_name||"",lastName:l.last_name||"",phone:l.phone||"",idNumber:l.id_number||l.serial_number||"",email:l.email?l.email:l.username?`${l.username}@gmail.com`:"no-email@example.com",region:d("SA"===l.iso_code?"saudiArabia":"EG"===l.iso_code?"egypt":"AE"===l.iso_code?"uae":"undefined"),address:l.address||d("noAddress")};return(0,b.jsxs)("div",{className:"w-full h-auto p-5 border border-gray-100 bg-white shadow-sm my-10 rounded-xl",children:[(0,b.jsx)(c.default,{text:d("title"),children:(0,b.jsx)(e,{})}),(0,b.jsx)(f.default,{user:m,isArabic:"ar"===a})]})}}];

//# sourceMappingURL=src_app_%5Blocale%5D_%28%29_user_profile_a3f5f40d._.js.map