PageSourceSearch

https://lidomatrip.com/_next/static/chunks/pages/dashboard-82f67645f582df98.js

js lidomatrip.com collected 2026-10-02 20:27:28 UTC 43,298 bytes, 24 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026,4649],{26117:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return t(84769)}])},64427:function(e,s,t){"use strict";var l=t(85893);s.Z=function(e){let{height:s,bg:t,className:a}=e;return(0,l.jsx)("hr",{className:`
2          w-full
3          ${a||""}
4          md:border-b-1 md:border-solid md:border-b-gray-CACFD3
5          md:!bg-none md:!h-auto
6      `,style:{background:t||"linear-gradient(0deg, rgba(25, 59, 103, 0.05), rgba(25, 59, 103, 0.05)), #FFFFFF",height:s||"10px"}})}},47416:function(e,s,t){"use strict";var l=t(85893);t(67294),s.Z=function(e){let{icon:s,title:t,containerClassname:a,element:i,asH1:r}=e;return(0,l.jsxs)("div",{className:`flex items-center justify-between ${a||""}`,children:[(0,l.jsxs)("div",{className:"flex items-center",children:[!!s&&(0,l.jsx)("div",{className:"flex items-center ml-12",children:s}),r?(0,l.jsx)("h1",{className:"text-[#000000] text-16 leading-28 font-m",children:t}):(0,l.jsx)("h2",{className:"text-[#000000] text-16 leading-28 font-m",children:t})]}),i]})}},86757:function(e,s,t){"use strict";var l=t(85893);s.Z=function(e){let{widthClass:s,heightClass:t}=e;return(0,l.jsx)("div",{className:`
7        skeleton-shimmer
8        ${s||"w-48"}
9        ${t||"h-48"}
10      `,children:(0,l.jsx)("div",{className:`
11            w-full h-full
12            bg-gray-E9EdF1
13            rounded-full
14      `})})}},51217:function(e,s,t){"use strict";t.d(s,{g:function(){return i}});var l=t(85893),a=t(2195);function i(e){let{withoutIcon:s=!1,marginClassname:t}=e;return(0,l.jsxs)("div",{className:`flex items-center gap-x-8 ${t||""}`,children:[!!s&&(0,l.jsx)(a.Z,{widthClass:"w-24",heightClass:"h-[28px]",borderRadiusClass:"rounded-2"}),(0,l.jsx)(a.Z,{widthClass:"w-[140px]",heightClass:"h-[28px]",borderRadiusClass:"rounded-2"})]})}},2195:function(e,s,t){"use strict";var l=t(85893);s.Z=function(e){let{widthClass:s,heightClass:t,borderRadiusClass:a,marginsClassnames:i,extraClassnames:r}=e;return(0,l.jsx)("div",{className:`
15        skeleton-shimmer
16        ${s||"w-48"}
17        ${t||"h-48"}
18        ${i||""}
19        ${r||""}
20    `,children:(0,l.jsx)("div",{className:`
21              w-full h-full
22              bg-gray-E9EdF1
23              ${a||"rounded-8"}
24        `})})}},54473:function(e,s,t){"use strict";t.d(s,{B1:function(){return a},M2:function(){return l},bl:function(){return r},xS:function(){return i}});let l="ResidencesList_ActiveTab",a="ResidencesList_ClickedResidence_Id",i="ResidencesList_ClickedResidence_Type";function r(e){let{residenceId:s,residenceType:t}=e;sessionStorage.setItem(a,s.toString()),sessionStorage.setItem(i,t)}},84769:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return eh},default:function(){return ev}});
24var l=t(85893),a=t(47416),i=t(41664),r=t.n(i);function n(e){let{count:s}=e;return s?(0,l.jsx)("span",{className:"absolute top-8 left-8 min-w-20 h-20 px-6 rounded-full bg-primary-main text-black text-11 leading-20 font-m flex items-center justify-center",children:s>99?"+۹۹":s.toLocaleString("fa-IR")}):null}var d=function(e){let{isHost:s=!0,badges:t}=e,a=[{name:"سفرهای من",icon:(0,l.jsx)("i",{className:"icon-Reserve text-24"}),linkTo:"/my-trips",badgeKey:"my_trips"},{name:"علاقه‌مندی‌ها",icon:(0,l.jsx)("i",{className:"icon-LIke text-24"}),linkTo:"/favourites"},{name:"چت",icon:(0,l.jsx)("i",{className:"icon-message text-24"}),linkTo:"/chats",badgeKey:"chats"},{name:"اعلانات",icon:(0,l.jsx)("i",{className:"icon-Bell text-24"}),linkTo:"/notifications",badgeKey:"notifications"}],i=[{name:"رزرو ها",icon:(0,l.jsx)("i",{className:"icon-Homes text-24"}),linkTo:"/reservations",badgeKey:"reservations"},{name:"اقامتگاه ها",icon:(0,l.jsx)("i",{className:"icon-Home text-24"}),linkTo:"/residences/list",badgeKey:"residences"},{name:"نرخ گذاری کلی",icon:(0,l.jsx)("i",{className:"icon-Calendar text-24"}),linkTo:"/general-pricing"},{name:"نظرات",icon:(0,l.jsx)("i",{className:"icon-Comments text-24"}),linkTo:"/comments",badgeKey:"comments"}],d=s?[...i,...a]:a;return(0,l.jsx)(l.Fragment,{children:d.map((e,s)=>(0,l.jsxs)(r(),{passHref:!0,prefetch:!1,href:e.linkTo,className:"relative flex flex-col gap-y-16 items-center justify-center typical-gray-bg col-span-4 rounded-8 px-10 pt-28 pb-24 text-black",children:[!!e.badgeKey&&(0,l.jsx)(n,{count:null==t?void 0:t[e.badgeKey]}),(0,l.jsx)("div",{className:"flex items-center",children:e.icon}),(0,l.jsx)("p",{className:"text-12 font-m text-center",children:e.name})]},s))})},c=t(34649),o=t(85945),u=t(47300),x=t(25675),m=t.n(x),h=t(67294),v=function(e){let{title:s,from:t,to:a,reserveId:i,image:r,expiry_date:n}=e,d=(0,h.useRef)(null),[x,v]=(0,h.useState)(null),f=(0,o.NL)();return(0,h.useEffect)(()=>(n&&(d.current=setInterval(()=>{let e=(0,c.getTimeDiff)(Date.now(),new Date(n||"").getTime());0===e?(f.invalidateQueries(["getReserves","getDashboardData"]),d.current&&clearInterval(d.current)):v(e)},1e3)),()=>{d.current&&clearInterval(d.current)}),[]),(0,l.jsxs)("div",{className:"rounded-12 border-gray-C4CAD3 border-1 border-solid flex mb-12 last-of-type:mb-0",children:[(0,l.jsx)("div",{className:"w-72 relative shrink-0",children:(0,l.jsx)(m(),{src:r,alt:"",className:"rounded-tr-10 rounded-br-10",fill:!0,sizes:"100vw",style:{objectFit:"cover"}})}),(0,l.jsxs)("div",{className:"pl-12 p-10 gap-y-4 flex w-[calc(100%-72px)]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-12 w-[calc(100%-72px)] gap-x-4",children:[(0,l.jsx)("p",{className:"text-14 leading-24 w-full text-black OnlyOneLineAndEndWithElipsis",children:s}),(0,l.jsxs)("p",{className:"flex w-full items-center gap-x-2 sm:gap-x-10 text-12 leading-21 text-black grow shrink",children:[(0,l.jsx)("span",{children:t}),(0,l.jsx)("i",{className:"icon-CalendarFlash text-24 text-black inline align-middle"}),(0,l.jsx)("span",{children:a})]})]}),(0,l.jsxs)("div",{className:"w-72 flex-col flex",children:[(0,l.jsx)("span",{className:"text-center text-14 leading-24 text-black font-l w-72 shrink-0",children:x}),(0,l.jsx)(u.Q,{href:`/reservations/${i}`,isFullWidth:!0,children:"مشاهده"})]})]})]})},f=t(64427),p=function(e){let{data:s}=e;return s&&s.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"pb-16",children:[(0,l.jsx)(a.Z,{title:"درخواست های در انتظار پاسخ",icon:(0,l.jsx)("i",{className:"icon-Reserve text-24"}),containerClassname:"mb-16"}),s.slice(0,5).map((e,s)=>(0,l.jsx)(v,{title:e.title,from:e.from,to:e.to,reserveId:e.reserveId,image:e.image,expiry_date:e.expiry_date},s)),s.length>5&&(0,l.jsx)(u.z,{className:"mt-16",isFullWidth:!0,variant:"outlined",color:"black",children:"مشاهده همه"})]}),(0,l.jsx)(f.Z,{})]}):null},g=t(57149);function j(e){let{hasAvatar:s,hasShaba:t,hasNationalCard:i,isHost:r,avatarUrl:n,onDone:d}=e,[c,o]=(0,h.useState)(null),[x,v]=(0,h.useState)(null),[p,j]=(0,h.useState)(new Set),[b,N]=(0,h.useState)(""),[y,w]=(0,h.useState)({}),C=(0,h.useRef)(null),k=(0,h.useRef)(null),_=[...s||p.has("avatar")?[]:["avatar"],...!r||i||p.has("nationalCard")?[]:["nationalCard"],...!r||t||p.has("shaba")?[]:["shaba"]],F={avatar:"تصویر پروفایل ثبت شد",nationalCard:"تصویر کارت ملی بارگذاری شد",shaba:"شماره شبا ثبت شد"},R=[...p];if(0===_.length&&0===R.length)return null;async function D(e,s){if(v(null),!s.type.startsWith("image/")){v("فقط فایل تصویری قابل بارگذاری است");return}if(s.size>5242880){v("حجم تصویر باید کمتر از ۵ مگابایت باشد");return}let t=URL.createObjectURL(s);w(s=>({...s,[e]:t})),o(e);try{let t=new FormData;t.append("avatar"===e?"avatar":"nationalCard",s);let l=await g.Z.setUrl("avatar"===e?"/api/users/me/avatar":"/api/users/me/national-card").setCallMethod("POST").setBody(t).call();if((null==l?void 0:l.status)!=="success")throw Error((null==l?void 0:l.message)||"بارگذاری انجام نشد");j(s=>new Set(s).add(e)),d()}catch(s){w(s=>{let t={...s};return delete t[e],t}),v(s instanceof Error?s.message:"بارگذاری انجام نشد")}finally{o(null)}}async function A(){let e=b.replace(/\s/g,"").replace(/^IR/i,"");if(!/^\d{24}$/.test(e)){v("شماره شبا باید ۲۴ رقم باشد (بدون IR)");return}o("shaba"),v(null);try{let s=await g.Z.setUrl("/api/users/me/bank-account").setCallMethod("PUT").setParams({shabaNumber:`IR${e}`}).call();if((null==s?void 0:s.status)!=="success")throw Error((null==s?void 0:s.message)||"ذخیره نشد");j(e=>new Set(e).add("shaba")),d()}catch(e){v(e instanceof Error?e.message:"ذخیره نشد")}finally{o(null)}}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)(a.Z,{title:"تکمیل پروفایل",icon:(0,l.jsx)("i",{className:"icon-Profile text-24"}),containerClassname:"mb-16"}),(0,l.jsxs)("div",{className:"flex flex-col gap-y-12",children:[R.map(e=>(0,l.jsxs)("div",{className:"rounded-12 border-1 border-solid border-success/40 bg-success/10 p-12 flex items-center gap-x-10",children:[(0,l.jsx)("span",{className:"w-32 h-32 rounded-full bg-success flex items-center justify-center shrink-0",children:(0,l.jsx)("i",{className:"icon-Tick text-16 text-white"})}),(0,l.jsx)("p",{className:"text-14 leading-24 text-black font-m",children:F[e]})]},`done-${e}`)),_.includes("avatar")&&(0,l.jsxs)("div",{className:"rounded-12 border-1 border-solid border-gray-CACFD3 p-12 flex items-center gap-x-12",children:[(0,l.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.click()},className:"relative w-56 h-56 rounded-full overflow-hidden bg-gray-F4F5F6 shrink-0 flex items-center justify-center","aria-label":"انتخاب تصویر پروفایل",children:y.avatar||n?(0,l.jsx)(m(),{src:y.avatar||n||"",alt:"",fill:!0,sizes:"56px",style:{objectFit:"cover"}}):(0,l.jsx)("i",{className:"icon-Photo-Upload text-24 text-gray-959FA7"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("p",{className:"text-14 leading-24 text-black font-m",children:"تصویر پروفایل"}),(0,l.jsx)("p",{className:"text-12 leading-20 text-gray-959FA7",children:"مهمان‌ها شما را با این عکس می‌شناسند"})]}),(0,l.jsx)(u.z,{onClick:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.click()},disabled:"avatar"===c,className:"!w-auto !px-16 shrink-0",children:"avatar"===c?"در حال بارگذاری…":"انتخاب عکس"}),(0,l.jsx)("input",{ref:C,type:"file",accept:"image/*",hidden:!0,onChange:e=>{var s;let t=null===(s=e.target.files)||void 0===s?void 0:s[0];e.target.value="",t&&D("avatar",t)}})]}
24),_.includes("nationalCard")&&(0,l.jsxs)("div",{className:"rounded-12 border-1 border-solid border-gray-CACFD3 p-12 flex items-center gap-x-12",children:[(0,l.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=k.current)||void 0===e?void 0:e.click()},className:"relative w-56 h-40 rounded-8 overflow-hidden bg-gray-F4F5F6 shrink-0 flex items-center justify-center","aria-label":"انتخاب تصویر کارت ملی",children:y.nationalCard?(0,l.jsx)(m(),{src:y.nationalCard,alt:"",fill:!0,sizes:"56px",style:{objectFit:"cover"}}):(0,l.jsx)("i",{className:"icon-Photo text-22 text-gray-959FA7"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("p",{className:"text-14 leading-24 text-black font-m",children:"تصویر کارت ملی"}),(0,l.jsx)("p",{className:"text-12 leading-20 text-gray-959FA7",children:"برای احراز هویت میزبان لازم است و فقط کارشناس آن را می‌بیند"})]}),(0,l.jsx)(u.z,{onClick:()=>{var e;return null===(e=k.current)||void 0===e?void 0:e.click()},disabled:"nationalCard"===c,className:"!w-auto !px-16 shrink-0",children:"nationalCard"===c?"در حال بارگذاری…":"بارگذاری"}),(0,l.jsx)("input",{ref:k,type:"file",accept:"image/*",hidden:!0,onChange:e=>{var s;let t=null===(s=e.target.files)||void 0===s?void 0:s[0];e.target.value="",t&&D("nationalCard",t)}})]}),_.includes("shaba")&&(0,l.jsxs)("div",{className:"rounded-12 border-1 border-solid border-gray-CACFD3 p-12",children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-12 mb-10",children:[(0,l.jsx)("span",{className:"w-40 h-40 rounded-full bg-gray-F4F5F6 flex items-center justify-center shrink-0",children:(0,l.jsx)("i",{className:"icon-Cash text-22 text-gray-959FA7"})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-14 leading-24 text-black font-m",children:"شماره شبا"}),(0,l.jsx)("p",{className:"text-12 leading-20 text-gray-959FA7",children:"درآمد رزروها به این حساب واریز می‌شود"})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-x-8",children:[(0,l.jsxs)("div",{className:"flex-1 flex items-center rounded-10 border-1 border-solid border-gray-CACFD3 px-12 h-48",children:[(0,l.jsx)("span",{className:"text-14 text-gray-959FA7 font-r shrink-0 ml-6",children:"IR"}),(0,l.jsx)("input",{value:b,onChange:e=>N(e.target.value),inputMode:"numeric",placeholder:"۲۴ رقم",dir:"ltr",className:"w-full outline-none text-14 text-black"})]}),(0,l.jsx)(u.z,{onClick:A,disabled:"shaba"===c||!b.trim(),className:"!w-auto !px-20 shrink-0",children:"shaba"===c?"…":"ذخیره"})]})]})]}),!!x&&(0,l.jsx)("p",{className:"mt-10 text-13 leading-22 text-error-light",children:x})]}),(0,l.jsx)(f.Z,{})]})}var b=t(49276);let N={HOST_APPROVAL:{label:"در انتظار تایید میزبان",className:"bg-warning/15 text-[#B26A00]"},SECOND_PAYMENT:{label:"در انتظار پرداخت",className:"bg-error-light/15 text-error-light"},DONE:{label:"قطعی",className:"bg-success/15 text-[#1B8A1B]"},CANCEL:{label:"لغو شده",className:"bg-gray-F4F5F6 text-gray-959FA7"},EXPIRED:{label:"منقضی شده",className:"bg-gray-F4F5F6 text-gray-959FA7"}},y=e=>(e??0).toLocaleString("fa-IR"),w=e=>(0,b.mW)(e).replace(/[0-9]/g,e=>"۰۱۲۳۴۵۶۷۸۹"[Number(e)]);function C(e){let{title:s,icon:t,rows:i,hrefFor:n,emptyHref:d}=e;return(null==i?void 0:i.length)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)(a.Z,{title:s,icon:(0,l.jsx)("i",{className:`${t} text-24`}),containerClassname:"mb-16",element:(0,l.jsx)(r(),{href:d,className:"text-14 leading-24 text-primary-main font-m",children:"همه"})}),(0,l.jsx)("div",{className:"flex flex-col gap-y-10",children:i.slice(0,4).map(e=>{var s,t;let a=N[e.state]??{label:e.state,className:"bg-gray-F4F5F6 text-gray-959FA7"};return(0,l.jsxs)(r(),{href:n(e),className:"flex items-center gap-x-12 rounded-12 border-1 border-solid border-gray-CACFD3 p-10 hover:border-primary-main transition",children:[(0,l.jsx)("div",{className:"relative w-64 h-64 roun
24ded-8 overflow-hidden bg-gray-F4F5F6 shrink-0",children:!!(null===(s=e.product)||void 0===s?void 0:s.image_url)&&(0,l.jsx)(m(),{src:e.product.image_url,alt:"",fill:!0,sizes:"64px",style:{objectFit:"cover"}})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("p",{className:"text-14 leading-22 text-black font-m OnlyOneLineAndEndWithElipsis",children:(null===(t=e.product)||void 0===t?void 0:t.name)??"اقامتگاه"}),(0,l.jsxs)("p",{className:"text-12 leading-20 text-gray-959FA7 mt-2",children:[w(e.start_date)," تا ",w(e.end_date)," \xb7"," ",y(e.days_count)," شب \xb7 ",y(e.guests_count)," نفر"]}),(0,l.jsxs)("p",{className:"text-12 leading-20 text-gray-959FA7",children:["کد ",e.reference]})]}),(0,l.jsxs)("div",{className:"shrink-0 text-left",children:[(0,l.jsx)("span",{className:`inline-block rounded-full px-10 py-2 text-11 leading-18 font-m ${a.className}`,children:a.label}),(0,l.jsxs)("p",{className:"text-13 leading-22 text-black font-m mt-6",children:[y(e.total_amount)," ",(0,l.jsx)("span",{className:"text-11 text-gray-959FA7 font-r",children:"تومان"})]})]})]},e.id)})})]}),(0,l.jsx)(f.Z,{})]}):null}let k="lidoma_announcement_views",_="lidoma_dismissed_announcements";function F(e){try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):{}}catch{return{}}}function R(){try{let e=window.localStorage.getItem(_);return e?JSON.parse(e):[]}catch{return[]}}function D(e){let{items:s}=e,[t,a]=(0,h.useState)(!1),[i,r]=(0,h.useState)({}),[n,d]=(0,h.useState)([]),[c,o]=(0,h.useState)([]);(0,h.useEffect)(()=>{r(F(k)),d(R()),a(!0)},[]);let u=(s??[]).filter(e=>!n.includes(e.id)&&(null==e.maxViews||!((i[e.id]??0)>=e.maxViews))),x=u.filter(e=>"BANNER"===e.style),m=u.find(e=>"MODAL"===e.style&&!c.includes(e.id));return((0,h.useEffect)(()=>{if(t)for(let e of u)null!=e.maxViews&&function(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;try{let l=F(e);l[s]=(l[s]??0)+t,window.localStorage.setItem(e,JSON.stringify(l))}catch{}}(k,e.id)},[t,u.map(e=>e.id).join(",")]),(0,h.useEffect)(()=>{if(!m)return;let e=e=>{"Escape"===e.key&&o(e=>[...e,m.id])};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[m]),t)?(0,l.jsxs)(l.Fragment,{children:[x.length>0&&(0,l.jsx)("div",{className:"flex flex-col gap-y-10 mb-16",children:x.map(e=>(0,l.jsx)(A,{a:e,onDismiss:()=>{var s;!function(e){try{let s=[...new Set([...R(),e])].slice(-50);window.localStorage.setItem(_,JSON.stringify(s))}catch{}}(s=e.id),d(e=>[...e,s])}},e.id))}),!!m&&(0,l.jsx)("div",{className:"fixed inset-0 z-50 bg-black/50 flex items-center justify-center p-16",onClick:()=>o(e=>[...e,m.id]),children:(0,l.jsx)("div",{className:"w-full max-w-[440px] max-h-[90vh] overflow-y-auto",onClick:e=>e.stopPropagation(),children:(0,l.jsx)(A,{a:m,onDismiss:()=>o(e=>[...e,m.id])})})})]}):null}function A(e){let{a:s,onDismiss:t}=e,a=s.backgroundColor||void 0,i=s.textColor||void 0;return(0,l.jsxs)("div",{className:`relative rounded-12 overflow-hidden border-1 border-solid ${s.dashedBorder?"!border-dashed":""} ${a?"":"bg-primary-light"} border-gray-CACFD3`,style:{backgroundColor:a,borderStyle:s.dashedBorder?"dashed":void 0},children:[(0,l.jsx)("button",{type:"button",onClick:t,"aria-label":"بستن اطلاعیه",className:"absolute top-8 left-8 z-1 w-28 h-28 rounded-full bg-white/80 flex items-center justify-center hover:bg-white",children:(0,l.jsx)("i",{className:"icon-Plus text-16 text-black rotate-45"})}),!!(s.imageUrl||s.imageUrlMobile)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{src:s.imageUrlMobile||s.imageUrl||"",alt:"",className:"w-full max-h-[180px] object-cover md:hidden"}),(0,l.jsx)("img",{src:s.imageUrl||s.imageUrlMobile||"",alt:"",className:"w-full max-h-[200px] object-cover hidden md:block"})]}),(0,l.jsxs)("div",{className:"p-14 pl-40",children:[(0,l.jsx)("p",{className:`text-16 leading-26 ${s.titleBold?"font-b":"font-r"} text-black`,style:{color:i},children:s.title}),!!s.body&&(0,l.jsx)("p",{className:"text-13 leading-22 text-gray-6C6A7D mt-4 whitespace-pre-line",style:{color:i},children:s.body}),!!s.linkUrl&&(0,l.jsx)(r(),{href:s.linkUrl,className:"inline-block mt-12 rounded-8 bg-primary-main text-white text-13 leading-22 px-16 py-8",children:s.linkLabel||"مشاهده"})]})]})}var E=function(e){let{pendingReviewsN:s}=e;return s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)(a.Z,{title:"نظرات مهمانان",icon:(0,l.jsx)(m(),{width:24,height:24,alt:"",src:"/assets/non-icomoon-icons/comment2.svg",style:{maxWidth:"100%",height:"auto"}}),containerClassname:"mb-16"}),(0,l.jsxs)("div",{className:"flex items-center justify-between p-12 gap-x-6 rounded-10 border-1 border-solid border-gray-C4CAD3",children:[(0,l.jsxs)("p",{className:"text-14 leading-24 text-black",children:[s," نظر در انتظار پاسخ شماست"]}),(0,l.jsx)(u.Q,{href:"/comments",color:"secondary",className:"!w-72 sm:!w-72",children:"مشاهده"})]})]}),(0,l.jsx)(f.Z,{})]}):null},I=function(e){let{pendingConversationsN:s}=e;return s?(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)(a.Z,{title:"چت",icon:(0,l.jsx)("i",{className:"icon-message text-24"}),containerClassname:"mb-16"}),(0,l.jsxs)("div",{className:"flex items-center justify-between p-12 gap-x-6 rounded-10 border-1 border-solid border-gray-C4CAD3",children:[(0,l.jsxs)("p",{className:"text-14 leading-24 text-black",children:[s," پیام در انتظار پاسخ شماست"]}),(0,l.jsx)(u.Q,{href:"/chats",color:"secondary",className:"!w-72 sm:!w-72",children:"مشاهده"})]})]}):null},Z=t(30719),S=t(71911);t(99008),t(44233),t(74256);var P=t(91291),O=t.n(P);S.ZP.use([S.W_,S.tl]);var M=function(e){let{slides:s}=e;
24return(0,l.jsx)("div",{className:`${O()["Dashboard-page-slider"]} relative`,children:(0,l.jsx)(Z.tq,{pagination:{clickable:!0},slidesPerView:1,onSwiper:e=>{},onActiveIndexChange:e=>{},className:"rounded-12",children:s.map((e,s)=>(0,l.jsx)(Z.o5,{children:(0,l.jsx)("div",{className:"relative w-full h-[214px] rounded-12 overflow-hidden",children:(0,l.jsx)(r(),{passHref:!0,href:e.link||"#",prefetch:!1,children:(0,l.jsx)(m(),{src:`${e.image_url}`,alt:"",fill:!0,sizes:"100vw",style:{objectFit:"cover"}})})})},s))})})},W=t(36492),$=t(55389),L=t(95774);t(97743);var Y=function(e){let{title:s,updateDate:t,completePercentage:a,residenceId:i,link:r,residenceImage:n}=e;return(0,l.jsxs)("div",{className:"rounded-12 border-gray-C4CAD3 border-1 border-solid flex",children:[(0,l.jsxs)("div",{className:"w-72 relative shrink-0",children:[(0,l.jsx)("div",{className:"absolute z-1 top-0 right-0 left-0 bottom-0 flex items-center",children:(0,l.jsxs)("div",{className:"px-12 py-4 relative",children:[(0,l.jsx)(L.Ip,{value:a,strokeWidth:50,styles:(0,L.y3)({strokeLinecap:"butt",backgroundColor:"#fff",pathColor:"#FFC120",trailColor:"#1C2E4599"})}),(0,l.jsxs)("div",{className:"w-[calc(66%-14px)] h-[calc(66%-4px)] bg-white text-10 flex items-center justify-center font-m text-black rounded-full absolute top-1/2 right-1/2 translate-x-1/2 -translate-y-1/2",children:[a,"%"]})]})}),n?(0,l.jsx)(m(),{src:n,alt:"",className:"rounded-tr-10 rounded-br-10",fill:!0,sizes:"100vw",style:{objectFit:"cover"}}):(0,l.jsx)("div",{className:"absolute inset-0 bg-gray-F3F5F7 rounded-tr-10 rounded-br-10"})]}),(0,l.jsxs)("div",{className:"pl-12 p-10 flex items-center gap-x-4 w-[calc(100%-72px)]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-16 w-[calc(100%-72px)]",children:[(0,l.jsx)("p",{className:"text-14 leading-24 text-black OnlyOneLineAndEndWithElipsis",children:s}),(0,l.jsxs)("p",{className:"text-12 leading-21 text-black",children:["بروزرسانی : ",(0,b.mW)(t)]})]}),(0,l.jsx)("div",{className:"w-72",children:(0,l.jsx)(u.Q,{href:r,color:"secondary",isFullWidth:!0,children:"ادامه"})})]})]})},T=function(e){let{incompleteResidencesData:s}=e;return(null==s?void 0:s.length)===0?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)(a.Z,{title:"اقامتگاه های خود را تکمیل کنید",icon:(0,l.jsx)("i",{className:"icon-Home text-24"}),containerClassname:"mb-16"}),(0,l.jsx)("div",{children:null==s?void 0:s.map(e=>(0,l.jsx)("div",{className:"mb-12 last-of-type:mb-0",children:(0,l.jsx)(Y,{title:e.title,updateDate:e.updateDate,completePercentage:e.completePercentage,residenceId:e.residenceId,link:e.link,residenceImage:e.residenceImage})},e.residenceId))}),(0,l.jsx)(u.Q,{href:"/residences/list",className:"mt-16",isFullWidth:!0,variant:"outlined",color:"black",children:"مشاهده همه"})]}),(0,l.jsx)(f.Z,{})]})},z=t(2195);function H(){return(0,l.jsx)(l.Fragment,{children:Array.from({length:6}).map((e,s)=>(0,l.jsx)("div",{className:"col-span-4",children:(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-110",borderRadiusClass:"rounded-8"})},s))})}var U=t(86757);function B(){return(0,l.jsxs)("div",{children:[(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-[214px]",borderRadiusClass:"rounded-10"}),(0,l.jsxs)("div",{className:"h-24 flex items-center justify-center gap-x-5",children:[(0,l.jsx)(U.Z,{widthClass:"w-6",heightClass:"h-6"}),(0,l.jsx)(U.Z,{widthClass:"w-6",heightClass:"h-6"}),(0,l.jsx)(U.Z,{widthClass:"w-6",heightClass:"h-6"})]})]})}var K=t(51217);function Q(){return(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(K.g,{})}),(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-64",borderRadiusClass:"rounded-10"})}),(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-64",borderRadiusClass:"rounded-10"})}),(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-64",borderRadiusClass:"rounded-10"})]})}function q(){return(0,l.jsxs)("div",{className:"rounded-12 border-gray-C4CAD3 border-1 border-solid flex",children:[(0,l.jsx)("div",{className:"w-72 relative shrink-0",children:(0,l.jsx)("div",{className:"absolute z-1 top-0 right-0 left-0 bottom-0 flex items-center",children:(0,l.jsx)(z.Z,{widthClass:"w-full",height
24Class:"h-full",borderRadiusClass:"rounded-tl-0 rounded-bl-0 rounded-tr-10 rounded-br-10"})})}),(0,l.jsxs)("div",{className:"pl-12 p-10 flex items-center gap-x-4 w-[calc(100%-72px)]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-16 w-[calc(100%-72px)]",children:[(0,l.jsx)("div",{className:"text-14 leading-24 text-black OnlyOneLineAndEndWithElipsis",children:(0,l.jsx)(z.Z,{widthClass:"w-[160px]",heightClass:"h-24",borderRadiusClass:"rounded-2"})}),(0,l.jsx)("div",{className:"text-12 leading-21 text-black",children:(0,l.jsx)(z.Z,{widthClass:"w-[120px]",heightClass:"h-[21px]",borderRadiusClass:"rounded-2"})})]}),(0,l.jsx)("div",{className:"w-72",children:(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-[40px]",borderRadiusClass:"rounded-6"})})]})]})}function V(){return(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(K.g,{})}),(0,l.jsx)("div",{className:"mb-12",children:(0,l.jsx)(q,{})}),(0,l.jsx)("div",{className:"mb-12",children:(0,l.jsx)(q,{})}),(0,l.jsx)("div",{children:(0,l.jsx)(q,{})})]})}function J(){return(0,l.jsxs)("div",{className:"flex items-center justify-between p-12 gap-x-6 rounded-10 border-1 border-solid border-gray-C4CAD3",children:[(0,l.jsx)("div",{className:"text-14 leading-24 text-black",children:(0,l.jsx)(z.Z,{widthClass:"w-[140px]",heightClass:"h-24",borderRadiusClass:"rounded-2"})}),(0,l.jsx)(z.Z,{widthClass:"w-[72px]",heightClass:"h-40",borderRadiusClass:"rounded-6"})]})}function X(){return(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(K.g,{})}),(0,l.jsx)(J,{})]})}function G(){return(0,l.jsxs)("div",{className:"flex items-center justify-between p-12 gap-x-6 rounded-10 border-1 border-solid border-gray-C4CAD3",children:[(0,l.jsx)("div",{className:"text-14 leading-24 text-black",children:(0,l.jsx)(z.Z,{widthClass:"w-[140px]",heightClass:"h-24",borderRadiusClass:"rounded-2"})}),(0,l.jsx)(z.Z,{widthClass:"w-[72px]",heightClass:"h-40",borderRadiusClass:"rounded-6"})]})}function ee(){return(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(K.g,{})}),(0,l.jsx)(G,{})]})}function es(){return(0,l.jsxs)("div",{className:"rounded-12 border-gray-C4CAD3 border-1 border-solid flex mb-12 last-of-type:mb-0",children:[(0,l.jsx)("div",{className:"w-72 relative shrink-0",children:(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-full",borderRadiusClass:"rounded-tr-10 rounded-br-10 rounded-tl-0 rounded-bl-0"})}),(0,l.jsxs)("div",{className:"pl-12 p-10 gap-y-4 flex w-[calc(100%-72px)]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-12 w-[calc(100%-72px)] gap-x-4",children:[(0,l.jsx)("div",{className:"text-14 leading-24 w-full text-black OnlyOneLineAndEndWithElipsis",children:(0,l.jsx)(z.Z,{widthClass:"w-[160px]",heightClass:"h-24",borderRadiusClass:"rounded-2"})}),(0,l.jsx)("div",{className:"flex w-full items-center gap-x-2 sm:gap-x-10 text-12 leading-21 text-black grow shrink",children:(0,l.jsx)(z.Z,{widthClass:"w-[120px]",heightClass:"h-[21px]",borderRadiusClass:"rounded-2"})})]}),(0,l.jsxs)("div",{className:"w-72 flex-col flex",children:[(0,l.jsx)("div",{className:"text-center text-14 leading-24 text-black font-l w-72 shrink-0 mb-4",children:(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-20",borderRadiusClass:"rounded-2"})}),(0,l.jsx)(z.Z,{widthClass:"w-full",heightClass:"h-40",borderRadiusClass:"rounded-6"})]})]})]})}function et(){return(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(K.g,{})}),(0,l.jsx)("div",{className:"mb-12",children:(0,l.jsx)(es,{})}),(0,l.jsx)("div",{className:"mb-12",children:(0,l.jsx)(es,{})}),(0,l.jsx)("div",{children:(0,l.jsx)(es,{})})]})}function el(){return(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)("div",{className:"mb-16",children:(0,l.jsx)(K.g,{})}),(0,l.jsx)("div",{className:"mb-12",children:(0,l.jsx)(q,{})}),(0,l.jsx)("div",{className:"mb-12",children:(0,l.jsx)(q,{})}),(0,l.jsx)("div",{children:(0,l.jsx)(q,{})})]})}var ea=t(54473),ei=function(e){let{title:s,updateDate:t,completePercentage:a,residenceId:i,link:r,residenceImage:n}=e;return(0,l.jsxs)("div",{className:"rounded-12 border-gray-C4CAD3 border-1 border-solid flex",children:[(0,l.jsxs)("div",{className:"w-72 relative shrink-0",children:[(0,l.jsx)("div",{className:"absolute z-1 top-0 right-0 left-0 bottom-0 flex items-center"}),(0,l.jsx)(m(),{src:n,alt:"",className:"rounded-tr-10 rounded-br-10",fill:!0,sizes:"100vw",style:{objectFit:"cover"}})]}),(0,l.jsxs)("div",{className:"pl-12 p-10 flex items-center gap-x-4 w-[calc(100%-72px)]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-16 w-[calc(100%-72px)]",children:[(0,l.jsx)("p",{className:"text-14 leading-24 text-black OnlyOneLineAndEndWithElipsis",children:s}),(0,l.jsxs)("p",{className:"text-12 leading-21 text-black",children:["بروزرسانی : ",(0,b.mW)(t)]})]}),(0,l.jsx)("div",{className:"w-72",children:(0,l.jsx)(u.Q,{href:r,color:"secondary",isFullWidth:!0,children:"ویرایش"})})]})]})},er=function(e){let{residencesWaitingForExpertsConfirmData:s}=e;return(null==s?void 0:s.length)===0?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-16",children:[(0,l.jsx)(a.Z,{title:"در انتظار تایید کارشناس",icon:(0,l.jsx)("i",{className:"icon-Home text-24"}),containerClassname:"mb-16"}),(0,l.jsx)("div",{children:null==s?void 0:s.map(e=>(0,l.jsx)("div",{className:"mb-12 last-of-type:mb-0",children:(0,l.jsx)(ei,{title:e.title,updateDate:e.updateDate,completePercentage:e.completePercentage,residenceId:e.residenceId,link:e.link,residenceImage:e.residenceImage})},e.residenceId))}),(0,l.jsx)(u.Q,{href:"/residences/list",className:"mt-16",isFullWidth:!0,variant:"outlined",color:"black",onClick:()=>{sessionStorage.setItem(ea.M2,"all")},children:"مشاهده همه"})]}),(0,l.jsx)(f.Z,{})]})},en=function(){let e=(0,h.useRef)(null),s=()=>{e.current&&e.current.showModal()},t=()=>
24{e.current&&(e.current.className="close",e.current&&(e.current.close(),e.current.className=""))};return{ref:e,onOpen:s,onClose:t}},ed={src:"/_next/static/media/notifications.187646bc.svg",height:40,width:41,blurWidth:0,blurHeight:0};let ec=(0,h.forwardRef)(function(e,s){let{children:t,onClose:a,title:i}=e;return(0,l.jsxs)("dialog",{className:"rounded-16 md:h-[300px] md:w-[600px] p-16",ref:s,children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-6 mb-12",children:[(0,l.jsx)(m(),{src:ed,alt:"اطلاعیه"}),(0,l.jsx)("div",{className:"bg-blue-light py-8 px-20 rounded-50",children:i})]}),(0,l.jsx)(u.z,{onClick:()=>{a()},color:"grey",className:"!w-32 !h-32 !p-6",rounded:!0,children:(0,l.jsx)("i",{className:"icon-Close text-20 text-black"})})]}),t]})});var eo=t(47067),eu=t(91879),ex=function(){var e,s,t,i,r,n,c,o,x,m,v,f,g,N,y,w,k,_,F,R,A,Z,S,P,O,L,Y,z,U,K,q,J,G,es,ea,ei,ed,ex,em,eh,ev,ef;let{data:ep,isLoading:eg,refetch:ej}=(0,W.a)(["getDashboardData"],()=>(0,$.ZS)()),{ref:eb,onOpen:eN,onClose:ey}=en(),ew=(0,eu.Gr)(),eC=ew.is_host||!!(null==ep?void 0:null===(e=ep.params)||void 0===e?void 0:null===(s=e.partner)||void 0===s?void 0:s.is_host);return(0,h.useEffect)(()=>{var e,s,t,l;(null==ep?void 0:null===(e=ep.params)||void 0===e?void 0:null===(s=e.announcement)||void 0===s?void 0:s.title)&&(null==ep?void 0:null===(t=ep.params)||void 0===t?void 0:null===(l=t.announcement)||void 0===l?void 0:l.text)&&eN()},[eg]),(0,l.jsxs)("div",{className:"pb-40",children:[!!(null==ep?void 0:null===(t=ep.params)||void 0===t?void 0:null===(i=t.announcement)||void 0===i?void 0:i.title)&&!!(null==ep?void 0:null===(r=ep.params)||void 0===r?void 0:null===(n=r.announcement)||void 0===n?void 0:n.text)&&(0,l.jsx)(l.Fragment,{children:eg?(0,l.jsx)(eo.Z,{isShowing:eg}):(0,l.jsx)(ec,{title:null==ep?void 0:null===(c=ep.params)||void 0===c?void 0:null===(o=c.announcement)||void 0===o?void 0:o.title,ref:eb,onClose:ey,children:(0,l.jsx)("p",{className:"text-13 leading-28 text-black font-r",children:null==ep?void 0:null===(x=ep.params)||void 0===x?void 0:null===(m=x.announcement)||void 0===m?void 0:m.text})})}),(0,l.jsx)(a.Z,{title:"پیشخوان",icon:(0,l.jsx)("i",{className:"icon-Counter text-24"}),containerClassname:"mb-16 ",element:(0,l.jsx)(u.Q,{color:"grey",leftIcon:(0,l.jsx)("i",{className:"icon-FlashLeft text-24 text-black"}),className:"!pl-8 !pr-16 !py-6",href:"/",children:"برو به صفحه اصلی"})}),eC&&!!(null==ew?void 0:ew.id)&&(0,l.jsx)("div",{className:"md:hidden mb-16",children:(0,l.jsx)(u.Q,{href:`/host/${ew.id}`,color:"primary",isFullWidth:!0,leftIcon:(0,l.jsx)("i",{className:"icon-FlashLeft text-20 text-white"}),className:"!py-14 !rounded-16",children:"برو به صفحه پروفایل اختصاصی من"})}),!eg&&(0,l.jsx)(D,{items:null==ep?void 0:null===(v=ep.params)||void 0===v?void 0:v.announcements}),(0,l.jsx)("div",{className:"md:w-[320px] md:mx-auto",children:eg?(0,l.jsx)(B,{}):!!ep&&!!(null==ep?void 0:null===(f=ep.params)||void 0===f?void 0:f.slides)&&(null==ep?void 0:null===(g=ep.params)||void 0===g?void 0:null===(N=g.slides)||void 0===N?void 0:N.length)!==0&&(0,l.jsx)(M,{slides:null==ep?void 0:null===(y=ep.params)||void 0===y?void 0:y.slides})}),(0,l.jsx)("div",{className:"mt-16 mb-24 ",children:(0,l.jsx)("div",{className:"grid grid-cols-12 gap-10",children:eg?(0,l.jsx)(H,{}):(0,l.jsx)(d,{isHost:eC,badges:null==ep?void 0:null===(w=ep.params)||void 0===w?void 0:w.badges})})}),eg?(0,l.jsx)(et,{}):!!ep&&(null==ep?void 0:null===(k=ep.params)||void 0===k?void 0:k.guest_current_requests)&&(0,l.jsx)(p,{data:(null==ep?void 0:null===(_=ep.params)||void 0===_?void 0:_.host_current_requests.map(e=>{var s;return{title:e.product.name,from:(0,b.mW)(e.start_date),to:(0,b.mW)(e.end_date),reserveId:e.id,image:null==e?void 0:null===(s=e.product)||void 0===s?void 0:s.image_url,expiry_date:null==e?void 0:e.expiry_date}}))||[]}),eg?(0,l.jsx)(Q,{}):!!ep&&(0,l.jsx)(j,{hasAvatar:!!(null==ep?void 0:null===(F=ep.params)||void 0===F?void 0:null===(R=F.partner)||void 0===R?void 0:R.has_avatar),hasShaba:!!(null==ep?void 0:null===(A=ep.params)||void 0===A?void 0:null===(Z=A.partner)||void 0===Z?void 0:Z.has_shaba),hasNationalCard:!!(null==ep?void 0:null===(S=ep.params)||void 0===S?void 0:null===(P=S.partner)||void 0===P?void 0:P.has_national_card_image),isHost:eC,avatarUrl:null==ep?void 0:null===(O=ep.params)||void 0===O?void 0:null===(L=O.partner)||void 0===L?void 0:L.image_url,onDone:()=>ej()}),!eg&&!!(null==ep?void 0:null===(Y=ep.params)||void 0===Y?void 0:null===(z=Y.guest_current_requests)||void 0===z?void 0:z.length)&&(0,l.jsx)(C,{title:"سفرهای جاری شما",icon:"icon-Reserve",emptyHref:"/my-trips",rows:ep.params.guest_current_requests,hrefFor:e=>`/my-trips/${e.id}`}),!eg&&eC&&!!(null==ep?void 0:null===(U=ep.params)||void 0===U?void 0:null===(K=U.host_current_requests)||void 0===K?void 0:K.length)&&(0,l.jsx)(C,{title:"رزروهای جاری اقامتگاه‌های شما",icon:"icon-Homes",emptyHref:"/reservations",rows:ep.params.host_current_requests,hrefFor:e=>`/reservations/${e.id}`}),eg?(0,l.jsx)(V,{}
24):!!ep&&eC&&(null==ep?void 0:null===(q=ep.params)||void 0===q?void 0:null===(J=q.new_residences)||void 0===J?void 0:J.length)>0&&(0,l.jsx)(T,{incompleteResidencesData:null===(G=null==ep?void 0:null===(es=ep.params)||void 0===es?void 0:null===(ea=es.new_residences)||void 0===ea?void 0:ea.slice(0,3))||void 0===G?void 0:G.map(e=>({title:e.name,updateDate:e.last_update,completePercentage:e.completion_percent||0,residenceId:e.internal_id??e.id,link:`/residences/submit?productId=${e.internal_id??e.id}`,residenceImage:e.image_url}))}),eg?(0,l.jsx)(el,{}):!!ep&&eC&&(null==ep?void 0:null===(ei=ep.params)||void 0===ei?void 0:null===(ed=ei.residences_waiting_confirm)||void 0===ed?void 0:ed.length)>0&&(0,l.jsx)(er,{residencesWaitingForExpertsConfirmData:null===(ex=null==ep?void 0:null===(em=ep.params)||void 0===em?void 0:null===(eh=em.residences_waiting_confirm)||void 0===eh?void 0:eh.slice(0,3))||void 0===ex?void 0:ex.map(e=>({title:e.name,updateDate:e.last_update,completePercentage:100,residenceId:e.internal_id??e.id,link:`/residences/submit?productId=${e.internal_id??e.id}`,residenceImage:e.image_url}))}),eC&&(eg?(0,l.jsx)(ee,{}):(0,l.jsx)(E,{pendingReviewsN:(null==ep?void 0:null===(ev=ep.params)||void 0===ev?void 0:ev.pending_reviews)||0})),eg?(0,l.jsx)(X,{}):(0,l.jsx)(I,{pendingConversationsN:(null==ep?void 0:null===(ef=ep.params)||void 0===ef?void 0:ef.pending_messages)||0}),!eg&&!!ep&&!eC&&(0,l.jsx)("div",{className:"py-16",children:(0,l.jsxs)("div",{className:"rounded-16 bg-primary-light p-20",children:[(0,l.jsx)("p",{className:"text-16 leading-26 text-black font-m mb-4",children:"اقامتگاه دارید؟ میزبان شوید"}),(0,l.jsx)("p",{className:"text-13 leading-22 text-gray-6C6A7D mb-14",children:"اقامتگاهتان را ثبت کنید و از همین صفحه رزروها، تقویم و درآمدتان را مدیریت کنید."}),(0,l.jsx)(u.Q,{href:"/residences/submit",className:"!w-auto !px-20",children:"ثبت اقامتگاه"})]})})]})};let em=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(ex,{})});var eh=!0,ev=em},34649:function(e,s,t){"use strict";function l(e){return 0<=e&&e<10?"0"+e:10<=e&&e<100?e.toString():void 0}t.r(s),t.d(s,{getTimeDiff:function(){return a}});let a=(e,s)=>{let t=s-e;if(t<=0)return 0;let a=Math.floor(t/1e3),i=Math.floor(a/3600),r=a-3600*i,n=Math.floor(r/60),d=r-60*n;return 0===i&&0===n&&0===d?0:0===i?`${l(n)}:${l(d)}`:`${i}:${l(n)}:${l(d)}`}},50534:function(e,s,t){"use strict";function l(e,s){let t=e.map(e=>e.format("jYYYY/jMM/jDD")),l=s.map(e=>{let s=[],t=e[0].clone();for(;t.isSameOrBefore(e[1]);)s.push(t.format("jYYYY/jMM/jDD")),t.add(1,"day");return s}),a=l.flat(1),i=new Set([...t,...a]),r=[...i];return r}t.d(s,{M:function(){return l}})},49276:function(e,s,t){"use strict";t.d(s,{IS:function(){return n},K9:function(){return m},ZJ:function(){return r},_q:function(){return d},bP:function(){return o},mW:function(){return c},qK:function(){return u},wI:function(){return x}});var l=t(68289),a=t.n(l),i=t(50534);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(a());return e.format("jYYYY/jMM/jDD - hh:mm")}function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(a());return e.format("HH:mm - jYYYY/jMM/jDD")}function d(e){return e.format("jYYYY/jMM/jDD")}function c(e){return d(a()(e))}function o(e){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(a());return e.format("jMMMM jYYYY")}(a()(e))}function u(e,s){let t=(0,i.M)([],[[e,s]]);return t.length}a().loadPersian({dialect:"persian-modern"}),a().locale("fa-IR");let x=e=>(e||(e=new(a())),a()(e).startOf("jMonth").format("dd")),m=e=>{e||(e=new(a()));let s=c(e).split("/"),t=s[0],l=s[1];return a().jDaysInMonth(Number(t),Number(l)-1)}},97743:function(){},44233:function(){},74256:function(){},99008:function(){},91291:function(e){e.exports={"Dashboard-page-slider":"Dashboard-page-slider_Dashboard-page-slider__KnpOI"}},95774:function(e,s,t){"use strict";t.d(s,{Ip:function(){return r},y3:function(){return n}});var l=t(67294),a=function(e,s){return(a=Object.setPrototypeOf||({__proto__:[]}
24)instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(e,s)};function i(e){var s,t,a,i,r,n,d,c=e.className,o=e.counterClockwise,u=e.dashRatio,x=e.pathRadius,m=e.strokeWidth,h=e.style;return(0,l.createElement)("path",{className:c,style:Object.assign({},h,(t=(s={pathRadius:x,dashRatio:u,counterClockwise:o}).counterClockwise,i=(1-s.dashRatio)*(a=2*Math.PI*s.pathRadius),{strokeDasharray:a+"px "+a+"px",strokeDashoffset:(t?-i:i)+"px"})),d:"\n      M 50,50\n      m 0,-"+(n=(r={pathRadius:x,counterClockwise:o}).pathRadius)+"\n      a "+n+","+n+" "+(d=r.counterClockwise?1:0)+" 1 1 0,"+2*n+"\n      a "+n+","+n+" "+d+" 1 1 0,-"+2*n+"\n    ",strokeWidth:m,fillOpacity:0})}var r=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return!function(e,s){function t(){this.constructor=e}a(e,s),e.prototype=null===s?Object.create(s):(t.prototype=s.prototype,new t)}(s,e),s.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},s.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},s.prototype.getPathRatio=function(){var e=this.props,s=e.value,t=e.minValue,l=e.maxValue;return(Math.min(Math.max(s,t),l)-t)/(l-t)},s.prototype.render=function(){var e=this.props,s=e.circleRatio,t=e.className,a=e.classes,r=e.counterClockwise,n=e.styles,d=e.strokeWidth,c=e.text,o=this.getPathRadius(),u=this.getPathRatio();return(0,l.createElement)("svg",{className:a.root+" "+t,style:n.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?(0,l.createElement)("circle",{className:a.background,style:n.background,cx:50,cy:50,r:50}):null,(0,l.createElement)(i,{className:a.trail,counterClockwise:r,dashRatio:s,pathRadius:o,strokeWidth:d,style:n.trail}),(0,l.createElement)(i,{className:a.path,counterClockwise:r,dashRatio:u*s,pathRadius:o,strokeWidth:d,style:n.path}),c?(0,l.createElement)("text",{className:a.text,style:n.text,x:50,y:50},c):null)},s.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},s}(l.Component);function n(e){var s=e.rotation,t=e.strokeLinecap,l=e.textColor,a=e.textSize,i=e.pathColor,r=e.pathTransition,n=e.pathTransitionDuration,c=e.trailColor,o=e.backgroundColor,u=null==s?void 0:"rotate("+s+"turn)",x=null==s?void 0:"center center";return{root:{},path:d({stroke:i,strokeLinecap:t,transform:u,transformOrigin:x,transition:r,transitionDuration:null==n?void 0:n+"s"}),trail:d({stroke:c,strokeLinecap:t,transform:u,transformOrigin:x}),text:d({fill:l,fontSize:a}),background:d({fill:o})}}function d(e){return Object.keys(e).forEach(function(s){null==e[s]&&delete e[s]}),e}}},function(e){e.O(0,[4885,8289,719,1911,9774,2888,179],function(){return e(e.s=26117)}),_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.