PageSourceSearch

https://www.paziresh24.com/_next/static/chunks/3376.4a98b0b5eeb0fb8d.js

js paziresh24.com collected 2026-09-24 11:52:48 UTC 16,117 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3376,5153,9253],{74079:function(e,t,n){n.d(t,{j:function(){return r}});var i=n(69412),s=n(85282),l=n(67548);let o=()=>{var e;let t=l.growthbook.getFeatureValue("booking:api-endpoints",{});return i.zR.post(null!==(e=null==t?void 0:t.get_user_active_turns_count)&&void 0!==e?e:"/api/getUserActiveTurnsCount")},r=()=>(0,s.D)(o)},22938:function(e,t,n){var i=n(15436);let s=(0,n(64162).memo)(e=>{let{...t}=e;return(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,i.jsx)("path",{d:"M9.70227 15.75H14.2977V14.25H9.70227V15.75ZM14.2977 15.75C15.9282 15.75 17.25 17.0718 17.25 18.7023H18.75C18.75 16.2433 16.7567 14.25 14.2977 14.25V15.75ZM9.70227 14.25C7.24335 14.25 5.25 16.2433 5.25 18.7023H6.75C6.75 17.0718 8.07178 15.75 9.70227 15.75V14.25ZM14.25 9C14.25 10.2426 13.2426 11.25 12 11.25V12.75C14.0711 12.75 15.75 11.0711 15.75 9H14.25ZM12 11.25C10.7574 11.25 9.75 10.2426 9.75 9H8.25C8.25 11.0711 9.92893 12.75 12 12.75V11.25ZM9.75 9C9.75 7.75736 10.7574 6.75 12 6.75V5.25C9.92893 5.25 8.25 6.92893 8.25 9H9.75ZM12 6.75C13.2426 6.75 14.25 7.75736 14.25 9H15.75C15.75 6.92893 14.0711 5.25 12 5.25V6.75ZM20.25 12C20.25 16.5563 16.5563 20.25 12 20.25V21.75C17.3848 21.75 21.75 17.3848 21.75 12H20.25ZM12 20.25C7.44365 20.25 3.75 16.5563 3.75 12H2.25C2.25 17.3848 6.61522 21.75 12 21.75V20.25ZM3.75 12C3.75 7.44365 7.44365 3.75 12 3.75V2.25C6.61522 2.25 2.25 6.61522 2.25 12H3.75ZM12 3.75C16.5563 3.75 20.25 7.44365 20.25 12H21.75C21.75 6.61522 17.3848 2.25 12 2.25V3.75Z",fill:"currentColor"})})});t.Z=s},33376:function(e,t,n){n.r(t),n.d(t,{default:function(){return Z}});var i=n(15436),s=n(72994),l=n(64162);let o=(0,l.memo)(e=>{let{...t}=e;return(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,i.jsx)("path",{d:"M4 7H20M4 12H20M4 17H20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})});var r=n(67255),a=n(98073),d=n(55153),c=n(80568),h=n.n(c),m=n(98899),u=n.n(m),x=n(40079),p=n(70644),f=n(2256),g=n(66958),v=n(79253),j=n(42933),w=n(32299),C=n(27952);let b=h()(()=>n.e(4590).then(n.bind(n,24590)),{loadableGenerated:{webpack:()=>[24590]}});var Z=e=>{var t,n,c;let h=(0,C.e)(e=>e.isLogin),{shouldShowBrand:m=!0,showSearchSuggestionButton:Z=!1}=e,[y,k]=(0,l.useState)(!1),[N,S]=(0,l.useState)([]),H=(0,l.useRef)(null),M=(0,x.useRouter)(),z=(0,s.H)(),V=(0,r.Z)(e=>e.customize),P=[{id:1,title:"مشاوره آنلاین پزشکی",sub_menu:f.lz},{id:2,title:"تخصص ها",sub_menu:N},{id:3,title:"مجله سلامتی",sub_menu:f.T2},{id:4,title:"برای بیماران",sub_menu:f.B3},{id:5,title:"برای پزشکان",sub_menu:f.n8},{id:6,title:"مراکز درمانی",sub_menu:f.CP},{id:7,title:"توسعه دهندگان",sub_menu:f.p7},{id:8,title:"پشتیبانی",sub_menu:[{title:"پشتیبانی",link:"https://support.paziresh24.com"}]}];return(0,p.Z)(H,()=>{k(!1)}),(0,l.useEffect)(()=>{let e=()=>k(!1);return M.events.on("routeChangeStart",e),()=>{M.events.off("routeChangeStart",e)}},[M.events]),(0,l.useEffect)(()=>{z.isSuccess&&S(z.data.data.result)},[z.status]),(0,i.jsx)("div",{ref:H,className:"block w-full text-sm z-infinity md:hidden",children:(0,i.jsxs)("div",{className:"relative flex items-center justify-between max-w-screen-xl mx-auto",children:[m&&(0,i.jsx)("div",{className:"absolute hidden justify-center items-center pwa:flex right-0 w-full -z-10",children:(0,i.jsx)(u(),{href:"/",shallow:!0,prefetch:!1,children:(0,i.jsx)(g.Z,{showPartnerLogo:V.showPartnerLogoInPrimaryPlace,partnerLogo:V.partnerLogo,brandType:"compact",size:"mobile"})})}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(V.showSideBar||!!(null===(t=V.menuNavigation)||void 0===t?void 0:t.length))&&(0,i.jsx)("div",{className:"flex items-center justify-center w-8 h-8",onClick:()=>k(!0),children:(0,i.jsx)(o,{})}),m&&(0,i.jsx)(u(),{href:"/",shallow:!0,prefetch:!1,className:"pwa:hidden",children:(0,i.jsx)(g.Z,{showPartnerLogo:V.showPartnerLogoInPrimaryPlace,partnerLogo:V.partnerLogo,brandType:V.headerBrandLogoType,size:"mobile"})}),V.showPartnerLogoInPrimaryPlace&&(0,i.jsx)("hr",{className:"h-8 border border-dashed rounded-full border-slate-300"}),(0,i.jsx)(g.Z,{showPartnerLogo:!V.showPartnerLogoInPrimaryPlace,partnerLogo:V.partnerLogo,brandType:V.headerBrandLogoType,size:"mobile"})]}),(0,i.jsxs)("div",{className:"flex items-center space-s-3",children:[(0,i.jsx)(a.Z,{}),Z&&(0,i.jsx)(d.default,{}),h&&(0,i.jsx)("div",{className:"[&>div>div>svg]:w-5 [&>div>div>svg]:h-5 [&>div>div>div]:top-[6px] ![&>div>div>div]:right-[7px]",children:(0,i.jsx)(j.Z,{children:(0,i.jsx)(w.Z,{})})}),V.showUserProfile&&(0,i.jsx)(v.default,{})]}),(0,i.jsx)(b,{menus:(null===(n=V.menuNavigation)||void 0===n?void 0:n.length)?null===(c=V.menuNavigation)||void 0===c?void 0:c.map((e,t)=>{var n,i;return{id:t,title:e.label,sub_menu:"sub_menu"==e.type?null!==(i=null===(n=e.items)||void 0===n?void 0:n.map(e=>({title:e.label,link:e.link,newTab:e.newTab})))&&void 0!==i?i:[]:[{title:e.label,link:e.link,newTab:e.newTab}]}}):P,closeSidebar:()=>k(!1),isOpen:y})]})})}},79253:function(e,t,n){n.r(t),n.d(t,{default:function(){return J}});
1var i=n(15436),s=n(20174),l=n(74079),o=n(94080),r=n(47311),a=n(49898),d=n(4673),c=n(71089),h=n(37224),m=n(86937),u=n(23509),x=n(93806),p=n(84527),f=n(76471),g=n(60990),v=n(99532),j=n(70922),w=n(64162);let C=(0,w.memo)(e=>{let{isSolid:t,...n}=e;return t?(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,i.jsx)("path",{d:"M18.6699 2H16.7699C14.5899 2 13.4399 3.15 13.4399 5.33V7.23C13.4399 9.41 14.5899 10.56 16.7699 10.56H18.6699C20.8499 10.56 21.9999 9.41 21.9999 7.23V5.33C21.9999 3.15 20.8499 2 18.6699 2Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M7.24 13.4299H5.34C3.15 13.4299 2 14.5799 2 16.7599V18.6599C2 20.8499 3.15 21.9999 5.33 21.9999H7.23C9.41 21.9999 10.56 20.8499 10.56 18.6699V16.7699C10.57 14.5799 9.42 13.4299 7.24 13.4299Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M6.29 10.58C8.6593 10.58 10.58 8.6593 10.58 6.29C10.58 3.9207 8.6593 2 6.29 2C3.9207 2 2 3.9207 2 6.29C2 8.6593 3.9207 10.58 6.29 10.58Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M17.71 21.9999C20.0793 21.9999 22 20.0792 22 17.7099C22 15.3406 20.0793 13.4199 17.71 13.4199C15.3407 13.4199 13.42 15.3406 13.42 17.7099C13.42 20.0792 15.3407 21.9999 17.71 21.9999Z",fill:"currentColor"})]}):(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,i.jsx)("path",{d:"M19 10.75H17C14.58 10.75 13.25 9.42 13.25 7V5C13.25 2.58 14.58 1.25 17 1.25H19C21.42 1.25 22.75 2.58 22.75 5V7C22.75 9.42 21.42 10.75 19 10.75ZM17 2.75C15.42 2.75 14.75 3.42 14.75 5V7C14.75 8.58 15.42 9.25 17 9.25H19C20.58 9.25 21.25 8.58 21.25 7V5C21.25 3.42 20.58 2.75 19 2.75H17Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M7 22.75H5C2.58 22.75 1.25 21.42 1.25 19V17C1.25 14.58 2.58 13.25 5 13.25H7C9.42 13.25 10.75 14.58 10.75 17V19C10.75 21.42 9.42 22.75 7 22.75ZM5 14.75C3.42 14.75 2.75 15.42 2.75 17V19C2.75 20.58 3.42 21.25 5 21.25H7C8.58 21.25 9.25 20.58 9.25 19V17C9.25 15.42 8.58 14.75 7 14.75H5Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M6 10.75C3.38 10.75 1.25 8.62 1.25 6C1.25 3.38 3.38 1.25 6 1.25C8.62 1.25 10.75 3.38 10.75 6C10.75 8.62 8.62 10.75 6 10.75ZM6 2.75C4.21 2.75 2.75 4.21 2.75 6C2.75 7.79 4.21 9.25 6 9.25C7.79 9.25 9.25 7.79 9.25 6C9.25 4.21 7.79 2.75 6 2.75Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M18 22.75C15.38 22.75 13.25 20.62 13.25 18C13.25 15.38 15.38 13.25 18 13.25C20.62 13.25 22.75 15.38 22.75 18C22.75 20.62 20.62 22.75 18 22.75ZM18 14.75C16.21 14.75 14.75 16.21 14.75 18C14.75 19.79 16.21 21.25 18 21.25C19.79 21.25 21.25 19.79 21.25 18C21.25 16.21 19.79 14.75 18 14.75Z",fill:"currentColor"})]})});var b=n(5692),Z=n(37120),y=n(41768),k=n(22938),N=n(95323),S=n(44645),H=n(67255),M=n(4627),z=n(45784),V=n(5173),P=n(65859),L=n(38396),_=n(12004),T=n(98899),B=n.n(T),I=n(27952),F=n(82780),E=()=>{let e=(0,I.e)(e=>e.info);return(0,i.jsxs)(i.Fragment,{children:[(0,_.x)(e.vip)&&(0,i.jsx)(B(),{href:"/patient/premium",children:(0,i.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,i.jsxs)("div",{className:"flex items-center justify-center py-3 rounded-lg space-s-2 bg-amber-50",children:[(0,i.jsx)(v.Z,{className:"w-5 h-5 text-amber-500"}),(0,i.jsx)(P.Z,{fontSize:"xs",className:"text-black",children:"شماره دارای اشتراک طلایی هستید."})]}),(0,i.jsxs)("div",{className:"flex self-center space-s-1",children:[(0,i.jsx)(P.Z,{fontSize:"sm",className:"opacity-80",children:"مدت اعتبار:"}),(0,i.jsxs)(P.Z,{fontSize:"sm",fontWeight:"medium",children:[(0,F.x)(e.vip)," روز"]})]})]})}),!(0,_.x)(e.vip)&&(0,i.jsxs)(B(),{href:"/patient/premium",className:"flex items-center space-s-2",onClick:()=>{(0,L.d)("doctor-profile").sendEvent({group:"bamdad",type:"patient_profile_button"})},children:[(0,i.jsx)(v.Z,{className:"text-amber-500"}),(0,i.jsx)(P.Z,{fontWeight:"medium",fontSize:"sm",children:"اشتراک طلایی"})]})]})},R=n(23056),A=n(7152),O=n(69636),W=n(75035),G=n(80568),U=n.n(G),q=n(70644),D=n(47614);let K=U()(()=>Promise.resolve().then(n.bind(n,6102)),{loadableGenerated:{webpack:()=>[6102]}});var J=()=>{var e,t,n,P,L,T,F,G,U,J;let{handleOpenLoginModal:Q}=(0,A.N)(),{t:X}=(0,W.Z)("common"),Y=(0,I.e)(e=>e.isLogin),$=(0,I.e)(e=>e.info),ee=(0,I.e)(e=>e.pending),et=(0,I.e)(e=>e.logout),{openPublicProfile:en,isOpening:ei}=(0,V.tA)(),es=(0,l.j)(),el=(0,I.e)(e=>e.setTurnsCount),eo=(0,I.e)(e=>e.turnsCount),[er,ea]=(0,w.useState)(!1),{customize:ed}=(0,H.Z)(),ec=(0,R.g)(),eh=(0,O.aS)("redirect-to-gozargah",{}),em=(0,O.cC)("gozargah::popup-login"),eu=(0,O.cC)("show-support-menu-button"),{isMobile:ex}=(0,D.ZP)(),ep=(0,M.t)(),ef=(0,z.R3)($,ep),eg=!ed.partnerKey,ev=(0,w.useRef)(null);(0,q.Z)(ev,()=>{ea(!1)});let ej=[{name:"داشبورد",icon:(0,i.jsx)(C,{width:22,height:22}),link:ex?"/_/":"/dashboard/",shouldShow:!0}
1,{name:X("patient/common:menu.myTurns"),icon:(0,i.jsx)(p.Z,{}),link:"/dashboard/appointments",badge:!!eo.presence&&(0,i.jsx)(d.Z,{className:"w-6 h-6 flex justify-center items-center !bg-red-500 !text-white",children:eo.presence}),shouldShow:!ef},{name:"نظرات من",icon:(0,i.jsx)(g.Z,{width:22,height:22}),link:"/dashboard/my-reviews",shouldShow:!ef},{name:"مراجعین من",icon:(0,i.jsx)(p.Z,{width:22,height:22}),link:"/dashboard/apps/drapp/appointments",shouldShow:ef},{name:"مشاهده پروفایل عمومی",icon:ei?(0,i.jsx)(S.Z,{width:22,height:22}):(0,i.jsx)(b.Z,{width:22,height:22}),onClick:()=>{en()},shouldShow:ef},{name:"پشتیبانی",icon:(0,i.jsx)(Z.Z,{width:22,height:22}),link:"https://support.paziresh24.com",shouldShow:eu}],ew=[{name:X("patient/common:menu.myTurns"),icon:(0,i.jsx)(p.Z,{width:22,height:22}),link:"/patient/appointments",badge:!!eo.presence&&(0,i.jsx)(d.Z,{className:"w-6 h-6 flex justify-center items-center !bg-red-500 !text-white",children:eo.presence}),shouldShow:!0},{name:"نظرات من",icon:(0,i.jsx)(g.Z,{width:22,height:22}),link:"/patient/reviews",shouldShow:!0},{name:X("patient/common:menu.bookmarks"),icon:(0,i.jsx)(x.Z,{width:22,height:22}),link:"/patient/bookmarks",shouldShow:!!ed.bookMark},{name:X("patient/common:menu.subuser"),icon:(0,i.jsx)(N.Z,{width:22,height:22}),link:"/patient/subuser",shouldShow:!0}],eC=(eg||ef?ej:ew).filter(e=>e.shouldShow);(0,w.useEffect)(()=>{er&&eS()},[er]);let eb=()=>{if(null==eh?void 0:eh.destination){window.location.assign(null==eh?void 0:eh.destination);return}Q({state:!0})},eZ=(0,s.p)(),ey=(0,I.e)(e=>e.setUserInfo),ek=(0,I.e)(e=>e.setPending),eN=async()=>{ek(!0);let e=await eZ.mutateAsync(),t=(null==e?void 0:e.id)?await (0,o.a)(e.id.toString()):null;ey({...e,provider:{...null==e?void 0:e.provider,...Array.isArray(t)?{centers:t}:{}}}),ek(!1)},eS=async()=>{let{data:e}=await es.mutateAsync();el({...e.result})};return(0,i.jsxs)(i.Fragment,{children:[ee&&(0,i.jsx)(m.Z,{w:"8rem",h:"2.5rem",rounded:"md"}),!ee&&(Y?(0,i.jsxs)("div",{ref:ev,className:"relative flex flex-col items-end",onClick:()=>ea(!er),children:[(0,i.jsxs)("div",{className:"flex items-center py-3 text-sm font-medium text-center cursor-pointer space-s-2 md:py-6 md:pl-4",children:[(0,i.jsxs)("div",{className:"relative",children:[(null==$?void 0:$.image)?(0,i.jsx)(r.Z,{name:"".concat(null!==(e=$.name)&&void 0!==e?e:""," ").concat(null!==(t=$.family)&&void 0!==t?t:""),src:null!==(n=null==$?void 0:$.image)&&void 0!==n?n:"",width:30,height:30}):(0,i.jsx)(k.Z,{width:"30",height:"30"}),(0,_.x)($.vip)&&(0,i.jsx)("div",{className:"absolute bottom-0 right-0 flex items-center justify-center w-4 h-4 border border-white rounded-full bg-amber-400",children:(0,i.jsx)(v.Z,{className:"w-2 h-2 text-white"})})]}),(0,i.jsx)(u.Z,{className:"hidden lg:block",fontWeight:"bold",children:(null==$?void 0:$.name)||(null==$?void 0:$.family)?"".concat(null!==(P=null==$?void 0:$.name)&&void 0!==P?P:""," ").concat(null!==(L=null==$?void 0:$.family)&&void 0!==L?L:""):$.cell?"0".concat($.cell):$.email}),(0,i.jsx)(f.Z,{dir:"".concat(er?"top":"bottom"),className:"hidden md:block"})]}),(0,i.jsxs)(K,{match:er,animation:"bottom",className:"absolute max-w-xs min-w-full px-2 overflow-auto font-medium bg-white border shadow-md z-infinity top-14 md:top-16 text-slate-700 whitespace-nowrap border-slate-200 rounded-2xl w-max md:ml-0",children:[(0,i.jsx)(B(),{href:"/patient/profile",prefetch:!1,children:(0,i.jsxs)("div",{className:"flex items-center w-64 px-2 py-3 space-s-3",children:[(0,i.jsx)(r.Z,{name:"".concat(null!==(T=$.name)&&void 0!==T?T:""," ").concat(null!==(F=$.family)&&void 0!==F?F:""),src:null!==(G=null==$?void 0:$.image)&&void 0!==G?G:"",width:50,height:50}),(0,i.jsx)("div",{className:"flex flex-col space-y-2",children:ee?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.Z,{h:"1rem",w:"8rem",rounded:"full"}),(0,i.jsx)(m.Z,{h:"1rem",rounded:"full"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)(u.Z,{fontSize:"sm",fontWeight:"bold",className:"line-clamp-1",children:[null!==(U=null==$?void 0:$.name)&&void 0!==U?U:""," ",null!==(J=null==$?void 0:$.family)&&void 0!==J?J:""]}),(0,i.jsx)(j.Z,{className:"w-5 h-5"})]}),(0,i.jsx)(u.Z,{fontSize:"xs",children:$.cell?"0".concat($.cell):$.email})]})})]})}),(0,i.jsx)(c.Z,{}),(0,i.jsxs)("div",{className:"flex flex-col px-0 py-2",children:[ec&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"px-3 py-4",children:(0,i.jsx)(E,{})}),(0,i.jsx)(c.Z,{})]}),(0,i.jsx)(h.q,{className:"space-y-1",children:eC.map(e=>(0,i.jsx)(h.s,{name:e.name,link:e.link,icon:e.icon,onClick:e.onClick,children:e.badge},e.name))}),(0,i.jsx)(c.Z,{className:"my-2"}),(0,i.jsx)(h.q,{children:(0,i.jsx)(h.s,{name:X("patient/common:menu.logout"),onClick:et,icon:(0,i.jsx)(y.Z,{width:22,height:22})})})]})]})]}):(0,i.jsx)(a.Z,{className:"!px-2 !text-xs md:!text-sm md:!px-4",size:"sm",variant:"secondary",onClick:()=>em?window.gozarLogin({clientId:"p24",redirectId:"https://gozargah.paziresh24.com/callback.php",postLogin:eN}):eb(),children:X("common:header.userProfile.useNotloggedIn")}))]})}},55153:function(e,t,n){n.r(t),n.d(t,{ButtonSuggestion:function(){return u}});var i=n(15436),s=n(87838),l=n(80568),o=n.n(l),r=n(92046),a=n(64162),d=n(44600),c=n(67255),h=n(88840);let m=o()(()=>Promise.all([n.e(6202),n.e(9351)]).then(n.bind(n,36722)),{loadableGenerated:{webpack:()=>[36722]}}),u=()=>{let e=(0,r.R)(e=>e.isOpenSuggestion),t=(0,r.R)(e=>e.setIsOpenSuggestion),{openScroll:n}=(0,d.Z)();(0,c.Z)(e=>e.customize);let l=(0,h.z)();return(0,a.useEffect)(()=>{t(!1),n()},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{className:"cursor-pointer",onClick:()=>t(!0)}),e&&(0,i.jsx)("div",{className:"fixed left-0 right-0 flex items-center justify-center md:top-36 z-infinity",children:(0,i.jsx)(m,{showPlasmicSuggestion:l,overlay:!0,autoFocus:!0,defaultOpen:!0})})]})};t.default=u}}]);
2//# sourceMappingURL=3376.4a98b0b5eeb0fb8d.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.