1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3030],{3030:function(e,a,r){r.r(a),r.d(a,{default:function(){return f}});var t=r(5893),n=r(4200),s=r(4292),l=r(177),o=r(2003),i=r(5675),c=r.n(i),d=r(8388),u=r(9808),m=r(6596),h=r(7294),p=r(1036),x=r.n(p),g=r(5119);function f(e){let{dir:a="right",color:r="default",variant:i,kicker:p,title:f,text:v,image:y,cta:w,logoRightImage:b,primaryButton:N,secondaryButton:j,sendToPhone:C,buttonCount:Z}=e;const[V,S]=(0,h.useState)(!1),[k,O]=(0,h.useState)(null),E=Boolean(b),W=E?"!text-navy600 text-h5 md:text-h2":"acibademOnline"===i?"md:!text-h2":"!text-navy600 md:text-h5 text-[26px] mt-4",z=E?"whitespace-pre text-balance text-[18px] font-normal text-navy900":"whitespace-pre text-balance text-base font-normal text-navy900",M={imageBottomMobile:{textWrapperClassName:"gap-8"},contactFirst:{copyWrapperClassName:"!max-w-[500px] !w-full mx-0 my-auto",textWrapperClassName:"gap-4"},contactSecond:{copyWrapperClassName:"!max-w-[500px] !w-full mx-0 my-auto",textWrapperClassName:"gap-4",ctaClassName:"max-md:mx-auto"},career:{copyWrapperClassName:"justify-center md:w-1/3",textWrapperClassName:"gap-8"},education:{copyWrapperClassName:"justify-center",textWrapperClassName:"text-balance gap-8"},product:{wrapperClassName:"p-0",textWrapperClassName:"gap-8"},visitorGuide:{copyWrapperClassName:"!p-0 mb-auto",textWrapperClassName:"gap-8 ",imageClassName:"aspect-auto"},acibademOnline:{copyWrapperClassName:"!max-w-[500px] !w-full mx-0 my-auto",textWrapperClassName:"gap-8 max-md:flex-col-reverse"}};var T,_,P,B,I,q,F,G,R,D,J,A,L;return(0,h.useEffect)((()=>{"Doctor"===Z?(0,g.Rf)().then((e=>O(e.length))):"Nurse"===Z&&(0,g.xF)().then((e=>O(e.length)))}),[]),(0,t.jsx)("div",{className:(0,o.cx)("my-10 md:container",{container:"default"===r}),children:(0,t.jsxs)(n.Z,{className:(0,d.m6)((0,o.cx)("flex-col items-center gap-6",{"md:flex-row":"right"===a,"md:flex-row-reverse":"left"===a,"md:gap-20":"default"===r,"bg-navy400 pb-10 pt-8 max-md:container md:rounded-3xl md:!p-4":"blue"===r}),i&&M[i].wrapperClassName),justify:"between",children:[(0,t.jsxs)(n.Z,{dir:"col",className:(0,d.m6)((0,o.cx)("mx-auto gap-6 md:w-1/2 md:gap-10 md:py-9",{"md:w-full":!y,"md:p-10 [&_h2]:!text-bwWhite [&_h2]:md:!text-h3 [&_p]:!text-bwWhite":"blue"===r}),i&&M[i].copyWrapperClassName),children:[(0,t.jsxs)(n.Z,{dir:"col",className:i?M[i].textWrapperClassName:"gap-8",children:[y&&"imageBottomMobile"!==i&&(0,t.jsx)(n.Z,{className:"md:hidden",children:(0,t.jsx)(c(),{src:null!==(T=null===y||void 0===y?void 0:y.src)&&void 0!==T?T:"",alt:null!==(_=null===y||void 0===y?void 0:y.alt)&&void 0!==_?_:"",priority:!0,width:"342",height:"290",className:(0,d.m6)("aspect-square h-auto w-full rounded-2xl object-cover",i?M[i].imageClassName:"")})}),b&&(0,t.jsx)(c(),{src:null!==(P=null===b||void 0===b?void 0:b.src)&&void 0!==P?P:"",alt:null!==(B=null===b||void 0===b?void 0:b.alt)&&void 0!==B?B:"",priority:!0,width:null!==(I=null===b||void 0===b?void 0:b.width)&&void 0!==I?I:0,height:null!==(q=null===b||void 0===b?void 0:b.height)&&void 0!==q?q:0,className:"object-cover md:mr-8"}),p&&(0,t.jsx)(s.Z,{variant:"sub2",as:"p",weight:"semibold",className:"text-navy900 max-md:text-xl",children:p}),(0,t.jsxs)(n.Z,{className:"gap-6",dir:"col",children:[(0,t.jsx)(s.Z,{variant:"sub1",as:"h2",weight:"semibold",className:W,children:f}),v&&((0,h.isValidElement)(v)?(0,t.jsx)(l.Z,{size:"medium",className:(0,o.cx)(z,{"!text-bwWhite":"blue"===r}),children:v}):(0,t.jsx)("div",{className:(0,o.cx)(z,{"!text-bwWhite":"blue"===r}),dangerouslySetInnerHTML:{__html:x()(v)}}))]}),w&&w.href&&""!==w.href&&w.children&&(0,t.jsx)(u.z,{variant:"text",color:"navy",size:"medium",href:w.href,target:w.target,className:(0,d.m6)("p-0 font-normal",i?M[i].ctaClassName:""),...w,children:null===w||void 0===w?void 0:w.children})]}),(0,t.jsxs)(n.Z,{className:"flex-col gap-2 md:flex-row",children:[N&&"href"in N&&N.href&&N.children&&(0,t.jsxs)(u.z,{variant:"primary",color:"navy",size:"large",className:"max-md:w-full max-md:justify-center",...N,children:[null!==(F=N.children)&&void 0!==F?F:N.title," ",Z&&"(".concat(k,")")," "]}),j&&"href"in j&&j.href&&j.children&&(0,t.jsx)(u.z,{variant:"secondary",color:"navy",size:"large",className:"max-md:w-full max-md:justify-center",...j}),C&&(0,t.jsx)(u.z,{variant:"secondary",color:"navy",size:"large",className:"max-xl:hidden",onClick:()=>S(!V),children:C.label})]}),C&&(0,t.jsx)(m.Z,{...C.props,isOpen:V,onClose:()=>S(!1)})]}),y&&"imageBottomMobile"===i&&(0,t.jsx)(n.Z,{className:"md:hidden",children:(0,t.jsx)(c(),{src:null!==(G=null===y||void 0===y?void 0:y.src)&&void 0!==G?G:"",alt:null!==(R=null===y||void 0===y?void 0:y.alt)&&void 0!==R?R:"",priority:!0,width:342,height:290,className:"mb-8 aspect-square h-auto w-full rounded-2xl object-cover"})}),y&&(0,t.jsx)(n.Z,{className:"hidden md:flex md:h-full md:w-1/2",children:(0,t.jsx)(c(),{src:null!==(D=null===y||void 0===y?void 0:y.src)&&void 0!==D?D:"",alt:null!==(J=null===y||void 0===y?void 0:y.alt)&&void 0!==J?J:"",priority:!0,width:null!==(A=null===y||void 0===y?void 0:y.width)&&void 0!==A?A:342,height:null!==(L=null===y||void 0===y?void 0:y.height)&&void 0!==L?L:290,className:(0,d.m6)("aspect-square h-auto w-full rounded-2xl object-cover",i?M[i].imageClassName:"")})})]})})}},6596:function(e,a,r){r.d(a,{Z:function(){return w}});var t=r(5893),n=r(4200),s=r(9808),l=r(5390),o=r(367),i=r(5030),c=r(4292),d=r
1(177),u=r(5573),m=r(8238),h=r(7294),p=r(6310),x=r(8529);const g=async function(e,a){try{const r=await fetch("/api/sms/sendSmsToPhone/",{method:"POST",body:JSON.stringify({phone:e,locationParentId:a,languageId:"1"})});return await r.json()}catch(r){return console.error("Error in sendSms:",r),{success:!1,message:"An error occurred while sending sms"}}};var f=r(1888),v=r(6887),y=r(1163);function w(e){let{title:a,onClose:r,isOpen:w,description:b,phoneInput:N,agreement:j,consent:C,clarification:Z,buttonLabel:V,qrCode:S,qrLabel:k,informationToSend:O,desktopBreakpoint:E=1280,webServiceId:W="0"}=e;const{width:z}=(0,m.iP)(),[M,T]=(0,h.useState)(!1),[_,P]=(0,h.useState)(""),[B,I]=(0,h.useState)(!1),[q,F]=(0,h.useState)(!1),[G,R]=(0,h.useState)(!1),[D,J]=(0,h.useState)(!1),[A,L]=(0,h.useState)(!1),[H,K]=(0,h.useState)({phoneValue:"",agreementValue:"",consentValue:"",clarificationValue:""}),[$,Q]=(0,h.useState)(!1),{t:U}=(0,v.$G)("common"),X=(0,y.useRouter)(),Y=p.Ry({phoneValue:p.Z_().test("is-valid-phone",N.errorMessage||"Telefon alan\u0131 zorunludur.",(e=>(0,x.Z)(e))),agreementValue:p.O7().oneOf([!0],j.errorMessage),consentValue:p.O7().oneOf([!0],C.errorMessage),clarificationValue:p.O7().oneOf([!0],Z.errorMessage)}),ee=async e=>{const a={phoneValue:_,agreementValue:B,consentValue:q,clarificationValue:G};try{return N?(await Y.validateAt("phoneValue",a),Q(!0)):(await Y.validate(a,{abortEarly:!1}),K({phoneValue:"",agreementValue:"",consentValue:"",clarificationValue:""}),await ae()),!0}catch(r){if(console.error("err",r),e&&Q(!1),r instanceof p.p8){const e=Object.fromEntries(r.inner.map((e=>[e.path,e.message])));K(e)}else console.error(r);return!1}},ae=async()=>{try{(await g(_,W,"tr"===X.locale?"1":"2")).response&&(T(!0),L(!0))}catch(e){L(!1),console.error("error",e)}};return!z||z<E?null:(0,t.jsxs)(i.V,{isOpen:w,onBackdropClick:r,onEscapeKeyPress:r,className:"!min-w-[35.125rem] px-8",children:[(0,t.jsxs)(n.Z,{justify:"between",children:[(0,t.jsx)(c.Z,{weight:"semibold",className:"my-2 text-[1.75rem] leading-9 text-navy700",children:a}),(0,t.jsx)(o.Z,{icon:{name:"close"},size:"large",color:"white",onClick:r,className:"border-none [&_svg]:size-8"})]}),(0,t.jsx)(n.Z,{className:"mt-8 gap-12",children:(0,t.jsxs)(n.Z,{dir:"col",className:"min-h-[31.75rem] w-full gap-6 text-wrap",children:[!M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Z,{size:"medium",className:"text-navy900",children:b}),(0,t.jsxs)(n.Z,{dir:"col",children:[(0,t.jsx)(u.Z,{...N,value:_,onChange:e=>P(e),onBlur:()=>ee(!0),isSuccess:$,inputSize:"large",isError:!!H.phoneValue,helper:H.phoneValue,className:"mb-6 max-w-fit"}),(0,t.jsx)(l.Z,{errorMessage:H.agreementValue,label:j.label,checkbox:{checked:B,onChange:()=>{I(!B)},isError:!!H.agreementValue,...j.checkbox}}),(0,t.jsx)(l.Z,{errorMessage:H.consentValue,label:C.label,checkbox:{checked:q,onChange:()=>{F(!q)},isError:!!H.consentValue,...C.checkbox}}),(0,t.jsx)(l.Z,{errorMessage:H.clarificationValue,label:Z.label,checkbox:{checked:G,onChange:()=>{R(!G)},isError:!!H.clarificationValue,...Z.checkbox}})]}),(0,t.jsx)(s.z,{color:"navy",size:"medium",variant:"primary",onClick:async()=>{J(!0);void 0!==await ee()&&await ae(),J(!1)},className:"w-fit",disabled:D,children:V})]}),M&&(0,t.jsxs)(n.Z,{className:"mx-auto my-auto flex-col gap-8",justify:"center",align:"center",children:[(0,t.jsx)(f.Z,{name:"check-circle-filled",size:48,color:"navy400"}),(0,t.jsx)(c.Z,{variant:"h5",weight:"semibold",className:"w-3/4 text-center text-h-sub1",children:U("common:sentToPhoneApproval")})]})]})})]})}},5119:function(e,a,r){r.d(a,{Fr:function(){return o},Ms:function(){return l},Rf:function(){return t},V3:function(){return s},wM:function(){return i},xF:function(){return n}});const t=async()=>{try{const e=await fetch("/api/career/get-careers/",{method:"GET"}),a=await e.json();return a||[]}catch(e){return console.error("Error in getCareers:",e),[]}},n=async()=>{try{const e=await fetch("/api/career/get-nurse-careers/",{method:"GET"}),a=await e.json();return a||[]}catch(e){return console.error("Error in getNurseCareers:",e),[]}},s=async()=>{try{const e=await fetch("/api/career/get-other-careers/",{method:"GET"}),a=await e.json();return a||[]}catch(e){return console.error("Error in getOtherCareers:",e),[]}},l=async e=>{try{const a=await fetch("/api/career/get-career-detail/",{method:"POST",body:JSON.stringify({positionId:e})}),r=await a.json();return r||null}catch(a){return console.error("Error in getCareerDetail:",a),null}},o=async e=>{try{const a=await fetch("/api/career/get-nurse-career-detail/",{method:"POST",body:JSON.stringify({positionId:e})}),r=await a.json();return r||null}catch(a){return console.error("Error in getNurseCareerDetail:",a),null}},i=async e=>{try{const a=await fetch("/api/career/get-other-career-detail/",{method:"POST",body:JSON.stringify({positionId:e})}),r=await a.json();return r||null}catch(a){return console.error("Error in getOtherCareerDetail:",a),null}}}}]);
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.