1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2099],{75111:function(e,a,l){var t=l(57437),i=l(2265);a.Z=function(e){let{form:a,onFormChange:l,id:n,glow:s,value:r,onChange:o,inputDivClass:d,className:c,labelClass:m,label:u,placeholder:x,error:f,disabled:h,min:p,maxLength:v,isSmall:g,onlyInput:j,floating:b,type:N="text",onKeyDown:y}=e,[C,Z]=(0,i.useState)(!1),k=a?a[n]:r,w="".concat(c||"form-control"," ").concat(g?"form-control-sm ":"").concat(C&&!k&&f?"is-invalid":""),S=(0,t.jsx)("input",{disabled:h,id:n||u,type:N,maxLength:v,min:p,className:w,value:k,onChange:e=>{if(l)l(e.target.id,e.target.value);else if(o)o(e.target.value);else throw Error("onChange or onFormChange function is required")},onBlur:()=>{Z(!0)},placeholder:x||"",style:s?{borderColor:"#4f46e5",borderWidth:2,boxShadow:"0 0 10px rgba(79,70,229, 0.6)"}:{},onKeyDown:y});return j?S:(0,t.jsxs)("div",{className:d||(b?"form-floating":"d-flex flex-column"),children:[!b&&u&&(0,t.jsx)("label",{className:m||"required fs-6 fw-semibold form-label",children:u}),S,b&&u&&(0,t.jsx)("label",{className:m||"required fs-6 fw-semibold form-label",children:u}),C&&!k&&f&&(0,t.jsx)("div",{className:"invalid-feedback",children:f})]})}},58652:function(e,a,l){var t=l(57437);l(2265),a.Z=function(e){let{options:a,value:l,onChange:i,form:n,onFormChange:s,label:r,id:o,placeholder:d,labelClass:c,inputDivClass:m,disabled:u,onlyInput:x,floatingLabel:f}=e,h=n?n[o]:l,p=(0,t.jsxs)("select",{disabled:u,className:"form-select",id:o||"select".concat(1e3*Math.random()),value:h,onChange:e=>{if(s)s(o,e.target.value);else if(i)i(e.target.value);else throw Error("onChange or onFormChange function is required")},children:[d&&(0,t.jsx)("option",{value:"",children:d}),a.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]});return x?p:(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)("div",{className:c||"fw-bold fs-4 text-primary mb-2",children:r}),(0,t.jsxs)("div",{className:m||"form-floating mb-8",children:[p,f&&(0,t.jsx)("label",{htmlFor:"floatingSelect",children:f})]})]})}},92157:function(e,a,l){var t=l(2265),i=l(39942),n=l(5851),s=l(21954),r=l(7261);a.Z=()=>{let[e,a]=(0,t.useState)(null),[l,o]=(0,t.useState)(!1);return{updatedPatientEmail:e,loading:l,updatePatientEmail:async e=>{o(!0);try{let l={email:e.email},t=await i.ZP.put("/api/User/update-user-email",l);o(!1);let{data:n}=t;if(200===t.status)return a(n.data),!0;return r.Am.error((0,s.Z)(t)),!1}catch(e){n.Z.error("Error Updating Patient Email:",e),r.Am.error((0,s.Z)(e))}finally{o(!1)}}}}},30689:function(e,a,l){var t=l(2265),i=l(7261),n=l(7874),s=l(21954),r=l(43949);a.Z=()=>{let[e,a]=(0,t.useState)(null),[l,o]=(0,t.useState)(!1),{t:d}=(0,r.$G)();return{updatedPatientMedical:e,loading:l,updatePatientMedical:async e=>{o(!0);try{let l={firstName:e.firstName,lastName:e.lastName,dateOfBirth:e.dateOfBirth,identityNumber:e.identityNumber,phoneNumber:e.phoneNumber,nationality:e.nationality,gender:parseInt(e.gender.toString(),10)},t=await n.Z.put("/api/patient/Profile/MedicalProfile",l);o(!1);let{data:r}=t;if(200===t.status)return a(r.data),i.Am.success("KiÅisel bilgileriniz kaydedildi !"),!0;return i.Am.error(d((0,s.Z)(t))),!1}catch(e){return i.Am.error(d((0,s.Z)(e))),!1}finally{o(!1)}}}}},65098:function(e,a,l){var t=l(2265),i=l(7874),n=l(8363),s=l(5851);a.Z=()=>{let[e,a]=(0,t.useState)(),[l,r]=(0,t.useState)(!1),o=(0,n.Z)(e=>e.setProfile),[d,c]=(0,t.useState)(!1),m=async()=>{r(!0);try{let e=await i.Z.get("/api/patient/Profile");r(!1);let{data:l}=e;200===e.status&&(a(l.data),o(l.data))}catch(e){c(!0),s.Z.error("Error fetching Patient profile:",e)}finally{r(!1)}};return{patientProfile:e,loading:l,fetchPatientProfile:m,error:d,refresh:()=>{m()}}}},80815:function(e,a,l){l.d(a,{Z:function(){return v},P:function(){return p}});var t=l(57437),i=l(2265),n=l(10015),s=l(75111),r=l(64279),o=l(58652),d=l(91530),c=l(30689),m=l(92157),u=function(e){let{isOpen:a,onClose:l}=e,i=()=>{l()};return(0,t.jsx)("div",{className:"modal-content modal-rounded ".concat(a?"d-block":"d-none"," overflow-y-auto"),children:(0,t.jsxs)("div",{className:"modal-content",children:[(0,t.jsxs)("div",{className:"modal-header pb-4",children:[(0,t.jsx)("h2",{className:"text-darker",children:"Telefon No DoÄrula"}),(0,t.jsx)("div",{className:"btn btn-sm btn-icon btn-active-color-primary",onClick:i,children:(0,t.jsx)("i",{className:"ki-solid ki-cross fs-2qx text-gray-600"})})]}),(0,t.jsx)("div",{className:"modal-body",children:(0,t.jsxs)("div",{className:"mt-10 text-center",children:[(0,t.jsx)("div",{className:"text-muted fs-6 text-center mb-4",children:"Cep telefonuna g\xf6nderdiÄimiz 6 haneli Åifreyi aÅaÄıdaki alana g
1irebilirsin."}),(0,t.jsxs)("div",{className:"d-flex gap-4 justify-content-between",children:[(0,t.jsx)("input",{type:"text",className:"form-control fs-2x",maxLength:1}),(0,t.jsx)("input",{type:"text",className:"form-control fs-2x",maxLength:1}),(0,t.jsx)("input",{type:"text",className:"form-control fs-2x",maxLength:1}),(0,t.jsx)("input",{type:"text",className:"form-control fs-2x",maxLength:1}),(0,t.jsx)("input",{type:"text",className:"form-control fs-2x",maxLength:1}),(0,t.jsx)("input",{type:"text",className:"form-control fs-2x",maxLength:1})]}),(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("div",{className:"text-muted",children:"Kalan S\xfcre"}),(0,t.jsx)("div",{className:"text-blue-20 fw-bold",children:"145 saniye"})]}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(r.Z,{className:"text-decoration-underline text-primary",children:"Tekrar SMS G\xf6nder"})})]})}),(0,t.jsx)("div",{className:"modal-footer",children:(0,t.jsxs)("div",{className:"d-flex justify-content-end",children:[(0,t.jsx)("button",{type:"reset",id:"kt_modal_new_card_cancel",className:"btn btn-outline btn-outline-primary rounded-pill me-3","data-bs-dismiss":"modal",onClick:i,children:"Vazge\xe7"}),(0,t.jsxs)("button",{type:"submit",id:"kt_modal_new_card_submit",className:"btn btn-darker rounded-pill px-16",children:[(0,t.jsx)("span",{className:"indicator-label",children:"DoÄrula"}),(0,t.jsxs)("span",{className:"indicator-progress",children:["Please wait...",(0,t.jsx)("span",{className:"spinner-border spinner-border-sm align-middle ms-2"})]})]})]})})]})})},x=l(49058),f=l(74530),h=l(421);let p=[{label:"Erkek",value:n.Y0.Male},{label:"Kadın",value:n.Y0.Female},{label:"Belirtmek istemiyorum",value:n.Y0.Other}];var v=function(e){var a,l;let{info:v}=e,[g,j]=(0,i.useState)(null),[b,N]=(0,i.useState)(null),[y,C]=(0,i.useState)(!1),[Z,k]=(0,i.useState)(!1),{userInfoWithToken:w}=(0,f.Z)(),[S,P]=(0,i.useState)({firstName:(null==v?void 0:v.firstName)||"",lastName:(null==v?void 0:v.lastName)||"",dateOfBirth:(0,d.Z)(null==v?void 0:v.dateOfBirth,d.U.DATE_ONLY_INPUT),identityNumber:(null==v?void 0:v.identityNumber)||"",phoneNumber:(null==v?void 0:v.phoneNumber)||"",nationality:(null==v?void 0:v.nationality)||"TC",gender:(null==v?void 0:v.gender)||n.Y0.Other}),_=(e,a)=>{P({...S,[e]:a})},{loading:E,updatePatientMedical:D}=(0,c.Z)(),{loading:L,updatePatientEmail:M}=(0,m.Z)(),q=async()=>{g&&g!==(null==w?void 0:w.email)&&await M({email:g})&&k(!0)},O=async e=>{e.preventDefault(),await D(S)&&setTimeout(()=>{window.location.reload()},1e3)};return(0,i.useEffect)(()=>{(null==v?void 0:v.email)&&j(v.email)},[null==v?void 0:v.email]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"card",children:[(0,t.jsx)("div",{className:"card-body p-4",children:(0,t.jsxs)("div",{className:"row g-4",children:[(0,t.jsx)("div",{className:"col-lg-6",children:(0,t.jsx)(s.Z,{floating:!0,id:"firstName",disabled:v.isMedicalProfileComplete,onFormChange:_,form:S,label:"Adınız"})}),(0,t.jsx)("div",{className:"col-lg-6",children:(0,t.jsx)(s.Z,{floating:!0,id:"lastName",onFormChange:_,disabled:v.isMedicalProfileComplete,form:S,label:"Soyadınız"})}),(0,t.jsx)("div",{className:"col-lg-6",children:(0,t.jsx)(o.Z,{options:p,id:"gender",value:S.gender.toString(),disabled:v.isMedicalProfileComplete,floatingLabel:"Cinsiyet",onFormChange:_})}),(0,t.jsx)("div",{className:"col-lg-6",children:(0,t.jsx)(s.Z,{id:"dateOfBirth",floating:!0,type:"date",disabled:v.isMedicalProfileComplete,form:S,label:"DoÄum Tarihiniz",onFormChange:_})}),(0,t.jsx)("div",{className:"col-lg-12",children:(0,t.jsxs)("div",{className:"d-flex gap-4 align-items-center",children:[(0,t.jsx)(s.Z,{inputDivClass:"form-floating min-w-250px",id:"email",floating:!0,onChange:e=>j(e),label:"E-Posta",value:g||(null==v?void 0:v.email)||""}),(null==w?void 0:w.email)!==g?(0,t.jsx)(r.Z,{onClick:q,loading:L,className:"btn btn-outline btn-outline-primary rounded-pill",children:"DoÄrula"}):(0,t.jsx)("span",{className:"text-success",children:"DoÄrulandı"})]})}),(0,t.jsx)("div",{className:"col-lg-12",children:(0,t.jsx)("div",{className:"d-flex gap-4 align-items-center",children:(0,t.jsx)("div",{className:"form-floating min-w-250px",children:(0,t.jsx)(s.Z,{type:"tel",inputDivClass:"form-floating min-w-250px",id:"phone",floating:!0,disabled:!0,onChange:e=>N(e),label:"Telefon No",value:b||(null==v?void 0:v.phoneNumber)||""})})})}),(0,t.jsx)("div",{className:"col-lg-6",children:(0,t.jsx)(s.Z,{id:"nationality",floating:!0,disabled:!0,value:null==v?void 0:null===(a=v.nationality)||void 0===a?void 0:a.toUpperCase(),label:"Uyruk/\xdclke"})}),(0,t.jsx)("div",{className:"col-lg-6",children:(0,t.jsx)(s.Z,{id:"identityNumber",floating:!0,disabled:v.isMedicalProfileComplete,value:null==v?void 0:null===(l=v.identityNumber)||void 0===l?void 0:l.toUpperCase(),label:"TCKN, YKN veya Mavi Kart",onFormChange:_})})]})}),!v.isMedicalProfileComplete&&(0,t.jsx)("div",{className:"card-footer p-4",children:(0,t.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,t.jsx)("div",{}),(0,t.jsx)(r.Z,{onClick:O,loading:E,className:"btn btn-darker rounded-pill px-12",children:"Kaydet"})]})})]}),(0,t.jsx)(x.Z,{size:"sm",open:y,setOpenModal:C,children:(0,t.jsx)(u,{isOpen:y,onClose:()=>C(!1)})}),(0,t.jsx)(x.Z,{size:"sm",open:Z,setOpenModal:k,children:(0,t.jsx)(h.Z,{isOpen:Z,onClose:()=>k(!1),email:g})})]})}},421:function(e,a,l){l.d(a,{Z:function(){return x}});var t=l(57437),i=l(2265),n=l(29501),s=l(43949),r=l(7261),o=l(39942),d=l(21954),c=()=>{let[e,a]=(0,i.useState)(!1),[l,t]=(0,i.useState)(null),[n,c]=(0,i.useState)(null),{t:m}=(0,s.$G)();return{loading:e,error:l,verifyEmail:async e=>{a(!0);try{let{data:l}=await o.ZP.post("/api/EmailAuth/verify-otp-for-email",e);a(!1),1!==l.resultType?(t(m(l.message)),r.Am.error(m(l.message))):(r.Am.success("BaÅarılı doÄrulama!"),setTimeout(()=>{window.location.reload()},400))}catch(e){a(!1),t((0,d.Z)(e)),r.Am.error((0,d.Z)(e))}},responseData:n}},m=l(64279);let u=(0,i.forwardRef)((e,a)=>(0,t.jsx)("input",{...e,ref:a,autoComplete:"off",maxLength:1,className:"form-control fs-4 p-1 text-center min-h-80px input-cn",onChange:e=>{let a=e.target.value;a=a.replace(/\D/g,""),e.target.value=a;let l=e.target.nextElementSibling;l&&l.focus()},onPaste:e=>{e.preventDefault(),e.clipboardData.getData("text/plain").replace(/\D/g,"").split("").slice(0,6).forEac
1h((e,a)=>{let l=document.querySelector('input[name="code_'.concat(a+1,'"]'));l&&(l.value=e)})},onKeyDown:e=>{if("Backspace"===e.key){let a=e.target;if(a.selectionStart===a.selectionEnd&&0===a.selectionStart){let e=a.previousElementSibling;e&&(e.focus(),e.value&&(e.value=e.value.slice(0,-1)))}}},inputMode:"numeric",pattern:"[0-9]*"}));var x=function(e){let{isOpen:a,onClose:l,email:i}=e,{verifyEmail:s,loading:r}=c(),{register:o,getValues:d}=(0,n.cI)(),x=async()=>{let e=Object.values(d()).join("");i&&s({email:i,verifyCode:e})};return(0,t.jsx)("div",{className:"modal-content modal-rounded ".concat(a?"d-block":"d-none"," overflow-y-auto"),children:(0,t.jsxs)("div",{className:"modal-content",children:[(0,t.jsxs)("div",{className:"modal-header pb-4",children:[(0,t.jsx)("h2",{className:"text-darker",children:"E-posta Adresini DoÄrula"}),(0,t.jsx)("div",{className:"btn btn-sm btn-icon btn-active-color-primary",onClick:l,children:(0,t.jsx)("i",{className:"ki-solid ki-cross fs-2qx text-gray-600"})})]}),(0,t.jsx)("div",{className:"modal-body",children:(0,t.jsxs)("div",{className:"mt-10 text-center",children:[(0,t.jsx)("div",{className:"text-muted fs-6 text-center mb-4",children:"Eposta adresine g\xf6nderdiÄimiz 6 haneli kodu aÅaÄıdaki alana girebilirsin."}),(0,t.jsxs)("div",{className:"d-flex gap-2 justify-content-between",children:[(0,t.jsx)(u,{...o("code_1",{required:!0,maxLength:1})}),(0,t.jsx)(u,{...o("code_2",{required:!0,maxLength:1})}),(0,t.jsx)(u,{...o("code_3",{required:!0,maxLength:1})}),(0,t.jsx)(u,{...o("code_4",{required:!0,maxLength:1})}),(0,t.jsx)(u,{...o("code_5",{required:!0,maxLength:1})}),(0,t.jsx)(u,{...o("code_6",{required:!0,maxLength:1})})]}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(m.Z,{className:"text-decoration-underline text-primary",children:"Tekrar G\xf6nder"})})]})}),(0,t.jsx)("div",{className:"modal-footer",children:(0,t.jsxs)("div",{className:"d-flex justify-content-end",children:[(0,t.jsx)(m.Z,{className:"btn btn-outline btn-outline-secondary rounded-pill me-3",onClick:l,children:"Vazge\xe7"}),(0,t.jsx)(m.Z,{loading:r,className:"btn btn-darker rounded-pill",onClick:x,children:(0,t.jsx)("span",{className:"indicator-label",children:"DoÄrula"})})]})})]})})}}}]);
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.