PageSourceSearch

https://lidomatrip.com/_next/static/chunks/pages/my-trips-7a8f99ae05ef1fb5.js

js lidomatrip.com collected 2026-09-25 07:12:11 UTC 22,090 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[925,4649],{98717:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-trips",function(){return n(24777)}])},85468:function(e,t,n){"use strict";n.d(t,{Gt:function(){return v},H5:function(){return g},gK:function(){return m},mi:function(){return f},p1:function(){return h}});var r,s,i,a=n(47568),c=n(70655),o=n(68668),l=n(92752),u=n(57149),d=n(57170),f=function(e,t){if(e===o.f.HOST_APPROVAL)return{name:"در انتظار تأیید میزبان",icon:"icon-Timer",iconPathInDesktop:"/assets/reserve_states/hostApproval.svg",stateDescription:" مهمان حداکثر 1 ساعت مهلت دارد تا با پرداخت صورتحساب رزرو خود را قطعی کند. در پایان مهلت مقرر\n        رزرو بصورت خودکار لغو می شود.",bgColor:"bg-warning",textColor:"text-warning"};if(e===o.f.SECOND_PAYMENT)return{name:"در انتظار پرداخت",icon:"icon-Timer",iconPathInDesktop:"/assets/reserve_states/secondPayment.svg",stateDescription:"    مهمان حداکثر 1 ساعت مهلت دارد تا با پرداخت صورتحساب رزرو خود را قطعی کند. در پایان مهلت مقرر\n        رزرو بصورت خودکار لغو می شود.",bgColor:"bg-warning",textColor:"text-blue-main"};if(e===o.f.DONE)return{name:"رزرو قطعی",icon:"icon-Success",iconPathInDesktop:"/assets/reserve_states/done.svg",stateDescription:"ضمن قدردانی از تلاش شما برای ثبت خاطره ای شیرین برای میهمانان ، امیدواریم تلاشهای تیم لیدوما\n        در کنار شما موجب رونق صنعت گردشگری و ارتقاء سطح رفاه هموطنان عزیز شود.",bgColor:"bg-success",textColor:"text-green-main"};if(e===o.f.CANCEL){if(t===l.w.HOST_CANCELLED)return{name:"لغو شده توسط میزبان",icon:"icon-Error",iconPathInDesktop:"/assets/reserve_states/cancel.svg",stateDescription:" توجه: رد یا منقضی شدن هر درخواست رزرو، موجب کاهش امتیاز میزبانی شما می شود. این امر به تدریج\n          موجب کاهش بازدید، کاهش رزرو و کاهش درآمد شما می شود. درصورت ادامه روند فوق اقامتگاه معلق شده\n          و از لیست نمایش حذف می شود.",bgColor:"bg-error-light",textColor:"text-error-light"};if(t===l.w.GUEST_CANCELLED)return{name:"لغو شده توسط مهمان",icon:"icon-Error",iconPathInDesktop:"/assets/reserve_states/cancel.svg",bgColor:"bg-error-light",textColor:"text-error-light"};if(t===l.w.LIDOMA_CANCELLED)return{name:"لغو شده توسط لیدوما",icon:"icon-Error",iconPathInDesktop:"/assets/reserve_states/cancel.svg",bgColor:"bg-error-light",textColor:"text-error-light"}}else if(e===o.f.EXPIRED)return{name:"منقضی شده",icon:"icon-Error",iconPathInDesktop:"/assets/reserve_states/cancel.svg",bgColor:"bg-error-light",textColor:"text-error-light"}},m=(r=(0,a.Z)(function(){var e;return(0,c.__generator)(this,function(t){switch(t.label){case 0:return[4,u.Z.setUrl("/api/reservations/mine").setCallMethod("GET").call()];case 1:if((null==(e=t.sent())?void 0:e.status)!=="success")return[2,e];return[2,{status:"success",params:(0,d.EI)((null==e?void 0:e.data)||[])}]}})}),function(){return r.apply(this,arguments)}),v=(s=(0,a.Z)(function(e){var t,n,r;return(0,c.__generator)(this,function(s){return t=e.order_id,n=e.reason,r="/api/reservations/".concat(t,"/cancel"),[2,u.Z.setUrl(r).setCallMethod("POST").setParams({reason:n}).call()]})}),function(e){return s.apply(this,arguments)});function h(){return x.apply(this,arguments)}function x(){return(x=(0,a.Z)(function(){var e,t,n;return(0,c.__generator)(this,function(r){switch(r.label){case 0:return[4,u.Z.setUrl("/api/reservations/pending-count").setCallMethod("GET").call()];case 1:return[2,null!==(n=null==(t=r.sent())?void 0:null===(e=t.data)||void 0===e?void 0:e.count)&&void 0!==n?n:0]}})})).apply(this,arguments)}var g=(i=(0,a.Z)(function(e){var t;return(0,c.__generator)(this,function(n){switch(n.label){case 0:return[4,u.Z.setUrl("/api/reservations/".concat(e,"/cancel-quote")).setCallMethod("GET").call()];case 1:return[2,(null==(t=n.sent())?void 0:t.status)==="success"?t.data:null]}})}),function(e){return i.apply(this,arguments)})},47416:function(e,t,n){"use strict";var r=n(85893);n(67294),t.Z=function(e){var t=e.icon,n=e.title,s=e.containerClassname,i=e.element,a=e.asH1;return(0,r.jsxs)("div",{className:"flex items-center justify-between ".concat(s||""),children:[(0,r.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,r.jsx)("div",{className:"flex items-center ml-12",children:t}),a?(0,r.jsx)("h1",{className:"text-[#000000] text-16 leading-28 font-m",children:n}):(0,r.jsx)("h2",{className:"text-[#000000] text-16 leading-28 font-m",children:n})]}),i]})}},5518:function(e,t,n){"use strict";var r=n(85893),s=n(47300),i=n(82941);t.Z=function(e){var t=e.title,n=e.subTitle,a=e.onRetry,c=e.isRetrying;return(0,r.jsx)(i.Z,{iconSrc:(0,r.jsx)("i",{"aria-hidden":"true",className:"icon-Warning text-56 text-warning"}),title:void 0===t?"اطلاعات بارگذاری نشد":t,subTitle:void 0===n?"ارتباط برقرار نشد. دوباره تلاش کنید."
1:n,containerClassname:"py-40",actions:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(s.z,{variant:"outlined",color:"black",onClick:a,isLoading:c,loadingText:"در حال تلاش…",rightIcon:(0,r.jsx)("i",{"aria-hidden":"true",className:"icon-Refresh text-20"}),children:"تلاش دوباره"})})})}},60110:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(85893),s=n(2195);function i(){return(0,r.jsxs)("div",{className:"rounded-12",children:[(0,r.jsx)("div",{className:"w-full h-[214px] relative rounded-tr-12 rounded-tl-12 border-1 border-solid border-[#1C345442] border-b-none",children:(0,r.jsx)(s.Z,{widthClass:"w-full",heightClass:"h-full",borderRadiusClass:"rounded-tr-12 rounded-tl-12"})}),(0,r.jsxs)("div",{className:"p-12 border-1 border-solid border-[#1C345442] border-t-none rounded-br-12 rounded-bl-12",children:[(0,r.jsx)("div",{className:"mb-12",children:(0,r.jsx)(s.Z,{widthClass:"w-full",heightClass:"h-[28px]",borderRadiusClass:"rounded-2"})}),(0,r.jsx)("div",{className:"mb-16",children:(0,r.jsx)(s.Z,{widthClass:"w-full",heightClass:"h-[24px]",borderRadiusClass:"rounded-2"})}),(0,r.jsx)(s.Z,{widthClass:"w-full",heightClass:"h-[40px]",borderRadiusClass:"rounded-6"})]})]})}},8849:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(85893),s=n(2195);function i(){return(0,r.jsx)(s.Z,{widthClass:"w-full",heightClass:"h-[37px]",borderRadiusClass:"rounded-9"})}},2195:function(e,t,n){"use strict";var r=n(85893);t.Z=function(e){var t=e.widthClass,n=e.heightClass,s=e.borderRadiusClass,i=e.marginsClassnames,a=e.extraClassnames;return(0,r.jsx)("div",{className:"\n        skeleton-shimmer\n        ".concat(t||"w-48","\n        ").concat(n||"h-48","\n        ").concat(i||"","\n        ").concat(a||"","\n    "),children:(0,r.jsx)("div",{className:"\n              w-full h-full\n              bg-gray-E9EdF1\n              ".concat(s||"rounded-8","\n        ")})})}},83888:function(e,t,n){"use strict";var r=n(85893);function s(e){return(0,r.jsx)("div",{className:"\n        flex flex-row md:flex-col items-center justify-center cursor-pointer pt-4 pb-4 px-4 md:px-0 md:pt-10 md:pb-0\n        ".concat(e.scroll?"grow-0 shrink-0 basis-auto whitespace-nowrap":"grow md:grow-0 shrink md:shrink-0 basis-0 md:basis-auto","\n        ").concat(e.currentActiveIndex===e.tabIndex?"bg-white rounded-6 md:after:content-[''] md:after:w-full md:after:mt-10 md:after:block md:after:h-4 md:after:bg-primary-main md:after:rounded-tr-100 md:after:rounded-tl-100":"md:pb-6","\n        drop-shadow-[0px_1px_6px_rgba(0,0,0,0.1)] md:drop-shadow-none\n        text-12 md:text-16 leading-21 md:leading-24 font-r text-black\n      "),onClick:function(){e.onChange(e.tabIndex)},children:e.label})}t.Z=function(e){var t=e.activeIndex,n=e.onChange,i=e.data,a=e.scroll;return(0,r.jsx)("div",{className:"flex items-center rounded-9 bg-gray-EFEFF0 md:bg-transparent px-4 py-4 md:px-16 md:py-0 gap-x-5 md:gap-x-32 md:border-b-1 md:border-b-gray-CACFD3 md:border-solid md:rounded-0 ".concat(a?"w-max min-w-full":""),children:i.map(function(e,i){return(0,r.jsx)(s,{label:e.tabLabel,tabIndex:e.tabIndex||i,currentActiveIndex:t,onChange:n,scroll:a},i)})})}},68668:function(e,t,n){"use strict";var r,s;n.d(t,{f:function(){return r}}),(s=r||(r={})).CANCEL="cancel",s.EXPIRED="expired",s.HOST_APPROVAL="host_approval",s.SECOND_PAYMENT="second_payment",s.DONE="done"},24777:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return A},default:function(){return O}});var r=n(85893),s=n(10253),i=n(47300),a=n(68220),c=n(83888),o=n(47416),l=n(67294),u=n(36492),d=n(70
178),f=n(82941),m=n(5518),v=n(49276),h=n(12486),x=n(68289),g=n.n(x),p=n(8849),b=n(60110),j=n(85468),N=n(41664),w=n.n(N),y=n(34649),C=n(25675),_=n.n(C),E=n(80113),D=n(85945),I=n(68668),S="MyTripsList_ActiveTab",M="MyTripsList_PageN",k="MyTripsList_ClickedMyTrip_Id";function L(e){var t=e.mytripId;sessionStorage.setItem(k,t.toString())}var R=function(e){var t=e.price,n=e.startDate,s=e.endDate,i=e.mainGuestsN,a=e.extraGuestsN;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-16 leading-28 text-black font-m mb-12",children:["مبلغ رزرو : ",null==t?void 0:t.toLocaleString("en-US")," تومان"]}),(0,r.jsxs)("div",{className:"flex items-center justify-between mb-16 flex-wrap",children:[(0,r.jsxs)("p",{className:"flex items-center gap-x-8",children:[(0,r.jsx)("span",{children:n}),(0,r.jsx)("i",{className:"icon-CalendarFlash text-20"}),(0,r.jsx)("span",{children:s})]}),(0,r.jsxs)("p",{className:"flex items-center gap-x-6 text-14 leading-24 text-black",children:[i," نفر",!!a&&(0,r.jsxs)("span",{className:"text-[#1C2E4599]",children:["+ ",a," نفر اضافه"]})]})]})]})},T=n(77087),P=function(e){var t=e.state,n=e.mytripId,a=e.residenceName,c=e.reserveCode,o=e.reservePrice,u=e.startDate,d=e.endDate,f=e.mainGuestsN,m=e.extraGuestsN,v=e.residenceId,h=e.residenceImage,x=e.expiryDate,g=e.cancelledBy,p=(e.voucherUrl,e.cancelDesc,e.cancelReason,e.suggestedResidencesList,e.coordinatedWith,e.residenceCity,e.displayType,e.canReview),b=e.hasReview,N=(0,l.useMemo)(function(){return(0,j.mi)(t,g)},[t,g]),C=(0,l.useRef)(),S=(0,l.useRef)(null),M=(0,s.Z)((0,l.useState)(null),2),P=M[0],Z=M[1],Y=(0,D.NL)();return(0,l.useEffect)(function(){var e=sessionStorage.getItem(k);e&&Number(e)===n&&(C.current.scrollIntoView({behavior:"smooth",block:"center"}),sessionStorage.removeItem(k))},[]),(0,l.useEffect)(function(){return x&&(S.current=setInterval(function(){var e=(0,y.getTimeDiff)(Date.now(),new Date(x||"").getTime());0===e?(Y.invalidateQueries(["getReserves","getDashboardData"]),S.current&&clearInterval(S.current)):Z(e)},1e3)),function(){S.current&&clearInterval(S.current)}},[]),(0,r.jsxs)("div",{className:"rounded-16 flex flex-col md:h-full",ref:C,children:[(0,r.jsxs)("div",{className:"w-full h-[214px] p-12 relative rounded-tr-16 rounded-tl-16",children:[(0,r.jsx)(_(),{src:h,fill:!0,style:{objectFit:"cover"},alt:"",className:"rounded-tr-16 rounded-tl-16",placeholder:"blur",blurDataURL:(0,E.n)(h)}),(0,r.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,r.jsxs)("div",{className:"z-1",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center p-5 pl-12 rounded-50 gap-x-5 text-white ".concat(null==N?void 0:N.bgColor),children:[(0,r.jsx)("i",{className:"".concat(null==N?void 0:N.icon," text-18")}),(0,r.jsx)("p",{className:"text-12 leading-21",children:null==N?void 0:N.name})]}),(0,r.jsxs)(w(),{passHref:!0,prefetch:!1,href:(0,T.$)({residenceId:v}),className:"p-5 pl-12 text-white flex items-center gap-x-5 bg-black rounded-50 bg-opacity-80 cursor-pointer",onClick:function(){L({mytripId:n})},children:[(0,r.jsx)("i",{className:"icon-See text-18"}),(0,r.jsx)("span",{className:"text-12 leading-21",children:"مشاهده"})]})]}),(t===I.f.HOST_APPROVAL||t===I.f.SECOND_PAYMENT)&&!!x&&(0,r.jsxs)("div",{className:"mt-8 w-fit-content px-12 py-2 rounded-50 bg-white",children:["زمان باقی مانده : ",P]})]}),(0,r.jsx)("div",{className:"z-2",children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-x-8",children:[(0,r.jsx)("div",{className:"text-14 leading-24 text-white OnlyOneLineAndEndWithElipsis",children:a}),(0,r.jsx)("div",{className:"shrink-0 flex justify-end",children:(0,r.jsxs)("p",{className:"rounded-50 bg-white text-12 leading-21 text-black whitespace-nowrap px-12 py-2 flex items-center justify-center w-fit-content",children:["کد رزرو : ",c]})})]})})]}),(0,r.jsx)("div",{className:"h-[107px] absolute w-full bottom-0 right-0",style:{background:"linear-gradient(0deg, #000000 7%, rgba(0, 0, 0, 0.52) 49.82%, rgba(0, 0, 0, 0.0001) 80.84%)"}})]}),(0,r.jsx)("div",{className:"grow flex flex-col justify-between p-12 border-1 border-solid border-[#1C345442] border-t-none rounded-br-12 rounded-bl-12",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(R,{price:o,startDate:u,endDate:d,mainGuestsN:f,extraGuestsN:m}),(0,r.jsx)(i.Q,{href:"/my-trips/".concat(n),isFullWidth:!0,variant:t===I.f.CANCEL||t===I.f.EXPIRED?"outlined":"contained",color:t===I.f.CANCEL||t===I.f.EXPIRED?"black":"primary",onClick:function(){L({mytripId:n})},children:"مشاهده جزئیات رزرو"}),!!p&&(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)(i.Q,{href:"/submit-review?id=".concat(n),isFullWidth:!0,color:"secondary",rightIcon:(0,r.jsx)("i",{className:"icon-message text-24"}),children:b?"مشاهده نظر ثبت‌شده":"ثبت نظر"})})]})})]})},Z=n(31138),Y=function(){(0,h.e)();var e,t=(0,s.Z)((0,l.useState)(null),2),n=t[0],x=t[1],N=(0,s.Z)((0,l.useState)(null),2),w=N[0],y=N[1],C=(0,Z.a)("(min-width: 1024px)"),_=(0,l.useMemo)(function(){return C?15:8},[C]),E=(0,s.Z)((0,l.useState)(),2),D=E[0],I=E[1],k=(0,u.a)(["getMyTrips"],function(){return(0,j.gK)()},{staleTime:3e4}),L=k.isLoading,R=(k.isSuccess,k.data),T=k.isError,Y=k.isFetching,A=k.refetch;(0,l.useEffect)(function(){R&&(null==R?void 0:R.status)==="success"&&I(null==R?void 0:R.params)},[R]);var O=(0,l.useCallback)(function(){var e;if(0===n){if((null==D?void 0:D.current_reserves.length)===0)return"سفر جاری نداری !";e=null==D?void 0:D.current_reserves}else if(1===n){if((null==D?void 0:D.past_reserves.length)===0)return"سفر پایان یافته ای نداری !";e=null==D?void 0:D.past_reserves}else{if((null==D?void 0:D.all_reserves.length)===0)return"سفری نداشتی !";e=null==D?void 0:D.all_reserves}return null==e?void 0:e.slice(0,_*w)},[n,D,_,w])();(0,l.useEffect)(function(){(n||0===n)&&sessionStorage.setItem(S,n.toString())},[n]),(0,l.useEffect)(function(){var e=sessionStorage.getItem(S);x(e?Number(e):0)},[]),(0,l.useEffect)(function(){w&&sessionStorage.setItem(M,w.toString())},[w]),(0,l.useEffect)(function(){var e=sessionStorage.getItem(M);y(e?Number(e):1)},[]);var F=(0,l.useMemo)(function(){return L||null===n||null===w},[L,n,w]);return(0,r.jsxs)("div",{className:"pb-40 md:pb-80 ",children:[(0,r.jsx)(o.Z,{title:"سفرهای من",icon:(0,r.jsx)("i",{className:"icon-Trips text-24"}),containerClassname:"mb-16"}),F?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mb-16",children:(0,r.jsx)(p.j,{})}),Array.from({length:_}).map(function(e,t){return(0,r.jsx)("div",{className:"mb-16 last:mb-0",children:(0,r.jsx)(b.y,{})},t)})]}):T||!D?(0,r.jsx)(m.Z,{title:"سفرها بارگذاری نشد",onRetry:function(){A()},isRetrying:Y}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mb-16 md:mb-24",children:(0,r.jsx)(c.Z,{activeIndex:n,onChange:function(e){x(e)},data:[{tabLabel:D?"جاری (".concat((0,a.YS)(D.current_reserves.length),")"):"جاری",tabIndex:0},{tabLabel:D?"پایان یافته (".concat((0,a.YS)(D.past_reserves.length),")"):"پایان یافته",tabIndex:1},{tabLabel:D?"همه (".concat((0,a.YS)(D.all_reserves.length),")"):"همه",tabIndex:2}]})}),(0,r.jsx)("div",{className:"grid grid-cols-12 sm:gap-x-16 md:gap-x-16 gap-y-16 sm:gap-y-16 md:gap-y-24",children:"string"==typeof O?(0,r.jsx)("div",{className:"pt-40 col-span-full",children:(0,r.jsx)(f.Z,{title:O,iconSrc:"/assets/No-reserve.svg"})}):null==O?void 0:O.map(function(e){return(0,r.jsx)("div",{className:"col-span-full sm:col-span-6 md:col-span-4 md:h-full",children:(0,r.jsx)(P,{state:e.state,residenceName:e.product.name,reserveCode:e.reference,reservePrice:e.total_amount,startDate:(0,v.mW)(e.start_date),endDate:(0,v.mW)(e.end_date),mainGuestsN:e.guests_count,extraGuestsN:e.extra_guests_count,mytripId:e.id,residenceId:e.product.id,residenceImage:"".concat(e.product.image_url),expiryDate:e.expiry_date,cancelledBy:"cancelled_by"in e&&(null==e?void 0:e.cancelled_by)?null==e?void 0:e.cancelled_by:void 0,residenceCity:e.product.city,displayType:e.product.display_type,canReview:"done"===e.state&&g()(e.end_date).isBefore(g()()),hasReview:!!e.has_review})},e.id)})}),!!w&&!!(0,d.f)(w,_,null===(e=0===n?null==D?void 0:D.current_reserves:1===n?null==D?void 0:D.past_reserves:null==D?void 0:D.all_reserves)||void 0===e?void 0:e.length)&&(0,r.jsx)("div",{className:"mt-16 md:mt-24 md:w-[280px] md:mx-auto",children:(0,r.jsx)(i.z,{variant:"outlined",color:"black",is
1FullWidth:!0,onClick:function(){return y(function(e){return e+1})},rightIcon:(0,r.jsx)("i",{className:"icon-Plus hidden md:block text-20 text-black"}),children:"نمایش بیشتر"})})]})]})},A=!0,O=function(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(Y,{})})}},7078:function(e,t,n){"use strict";function r(e,t,n){return n>e*t}n.d(t,{f:function(){return r}})},34649:function(e,t,n){"use strict";function r(e){return 0<=e&&e<10?"0"+e:10<=e&&e<100?e.toString():void 0}n.r(t),n.d(t,{getTimeDiff:function(){return s}});var s=function(e,t){var n=t-e;if(n<=0)return 0;var s=Math.floor(n/1e3),i=Math.floor(s/3600),a=s-3600*i,c=Math.floor(a/60),o=a-60*c;return 0===i&&0===c&&0===o?0:0===i?"".concat(r(c),":").concat(r(o)):"".concat(i,":").concat(r(c),":").concat(r(o))}},50534:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(36305);function s(e,t){var n=e.map(function(e){return e.format("jYYYY/jMM/jDD")}),s=t.map(function(e){for(var t=[],n=e[0].clone();n.isSameOrBefore(e[1]);)t.push(n.format("jYYYY/jMM/jDD")),n.add(1,"day");return t}).flat(1),i=new Set((0,r.Z)(n).concat((0,r.Z)(s)));return(0,r.Z)(i)}},49276:function(e,t,n){"use strict";n.d(t,{IS:function(){return c},K9:function(){return m},ZJ:function(){return a},_q:function(){return o},bP:function(){return u},mW:function(){return l},qK:function(){return d},wI:function(){return f}});var r=n(68289),s=n.n(r),i=n(50534);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(s());return e.format("jYYYY/jMM/jDD - hh:mm")}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(s());return e.format("HH:mm - jYYYY/jMM/jDD")}function o(e){return e.format("jYYYY/jMM/jDD")}function l(e){return o(s()(e))}function u(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(s());return e.format("jMMMM jYYYY")}(s()(e))}function d(e,t){return(0,i.M)([],[[e,t]]).length}s().loadPersian({dialect:"persian-modern"}),s().locale("fa-IR");var f=function(e){return e||(e=new(s())),s()(e).startOf("jMonth").format("dd")},m=function(e){e||(e=new(s()));var t=l(e).split("/"),n=t[0],r=t[1];return s().jDaysInMonth(Number(n),Number(r)-1)}},77087:function(e,t,n){"use strict";function r(e){var t=e.residenceId,n=e.startDate,r=e.endDate,s=e.guestsCount;return"/rentals/".concat(t).concat(n&&r?"?start=".concat(n,"&end=").concat(r):"").concat(s&&n&&r?"&guests_count=".concat(s):s?"?guests_count=".concat(s):"")}n.d(t,{$:function(){return r}})},62236:function(e,t,n){"use strict";function r(e){["getReserve","getReserves","getMyTrips","getDashboardData"].forEach(function(t){return e.invalidateQueries([t])})}n.d(t,{J:function(){return r}})},89987:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(67294),s=["message","read","typing","message-deleted","reservation","notification"];function i(e,t,n){var i=(0,r.useRef)(t);i.current=t;var a=(0,r.useRef)(n);a.current=n,(0,r.useEffect)(function(){if(!e||"undefined"==typeof EventSource){var t;null===(t=a.current)||void 0===t||t.call(a,!0);return}var n=null,r=0,c=!1;return(n=new EventSource("/api/conversations/stream",{withCredentials:!0})).onopen=function(){var e;r=0,null===(e=a.current)||void 0===e||e.call(a,!1)},s.forEach(function(e){null==n||n.addEventListener(e,function(t){try{i.current({type:e,data:JSON.parse(t.data)})}catch(e){}})}),n.onerror=function(){if((r+=1)>=2){var e;null===(e=a.current)||void 0===e||e.call(a,!0)}},function(){null==n||n.close()}},[e])}},12486:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=n(10253),s=n(67294),i=n(85945),a=n(89987),c=n(62236);function o(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.NL)(),n=(0,r.Z)((0,s.useState)(!1),2),o=n[0],l=n[1],u=(0,s.useRef)(o);return u.current=o,(0,a.Q)(e,function(e){"reservation"===e.type&&((0,c.J)(t),t.invalidateQueries(["notifications"])),"notification"===e.type&&t.invalidateQueries(["notifications"])},l),(0,s.useEffect)(function(){if(e&&"undefined"!=typeof document){var n=function(){"visible"===document.visibilityState&&((0,c.J)(t),t.invalidateQueries(["notifications"]))},r=function(){"visible"===document.visibilityState&&n()};document.addEventListener("visibilitychange",r),window.addEventListener("focus",n);var s=window.setInterval(n,u.current?15e3:6e4);return function(){document.removeEventListener("visibilitychange",r),window.removeEventListener("focus",n),window.clearInterval(s)}}},[e,t,o]),{live:!o}}}}
1,function(e){e.O(0,[4885,8289,1265,113,8220,9774,2888,179],function(){return e(e.s=98717)}),_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.