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