PageSourceSearch

https://lidomatrip.com/_next/static/chunks/pages/reservations-9d0d784e1b6a6232.js

js lidomatrip.com collected 2026-10-02 20:28:06 UTC 8,124 bytes, 17 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9669],{20632:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reservations",function(){return r(74474)}])},5518:function(e,s,r){"use strict";var t=r(85893),n=r(47300),l=r(82941);s.Z=function(e){let{title:s="اطلاعات بارگذاری نشد",subTitle:r="ارتباط برقرار نشد. دوباره تلاش کنید.",onRetry:d,isRetrying:i}=e;return(0,t.jsx)(l.Z,{iconSrc:(0,t.jsx)("i",{"aria-hidden":"true",className:"icon-Warning text-56 text-warning"}),title:s,subTitle:r,containerClassname:"py-40",actions:(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(n.z,{variant:"outlined",color:"black",onClick:d,isLoading:i,loadingText:"در حال تلاش…",rightIcon:(0,t.jsx)("i",{"aria-hidden":"true",className:"icon-Refresh text-20"}),children:"تلاش دوباره"})})})}},60110:function(e,s,r){"use strict";r.d(s,{y:function(){return l}});var t=r(85893),n=r(2195);function l(){return(0,t.jsxs)("div",{className:"rounded-12",children:[(0,t.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,t.jsx)(n.Z,{widthClass:"w-full",heightClass:"h-full",borderRadiusClass:"rounded-tr-12 rounded-tl-12"})}),(0,t.jsxs)("div",{className:"p-12 border-1 border-solid border-[#1C345442] border-t-none rounded-br-12 rounded-bl-12",children:[(0,t.jsx)("div",{className:"mb-12",children:(0,t.jsx)(n.Z,{widthClass:"w-full",heightClass:"h-[28px]",borderRadiusClass:"rounded-2"})}),(0,t.jsx)("div",{className:"mb-16",children:(0,t.jsx)(n.Z,{widthClass:"w-full",heightClass:"h-[24px]",borderRadiusClass:"rounded-2"})}),(0,t.jsx)(n.Z,{widthClass:"w-full",heightClass:"h-[40px]",borderRadiusClass:"rounded-6"})]})]})}},8849:function(e,s,r){"use strict";r.d(s,{j:function(){return l}});var t=r(85893),n=r(2195);function l(){return(0,t.jsx)(n.Z,{widthClass:"w-full",heightClass:"h-[37px]",borderRadiusClass:"rounded-9"})}},2195:function(e,s,r){"use strict";var t=r(85893);s.Z=function(e){let{widthClass:s,heightClass:r,borderRadiusClass:n,marginsClassnames:l,extraClassnames:d}=e;return(0,t.jsx)("div",{className:`
2        skeleton-shimmer
3        ${s||"w-48"}
4        ${r||"h-48"}
5        ${l||""}
6        ${d||""}
7    `,children:(0,t.jsx)("div",{className:`
8              w-full h-full
9              bg-gray-E9EdF1
10              ${n||"rounded-8"}
11        `})})}},83888:function(e,s,r){"use strict";var t=r(85893);function n(e){return(0,t.jsx)("div",{className:`
12        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
13        ${e.scroll?"grow-0 shrink-0 basis-auto whitespace-nowrap":"grow md:grow-0 shrink md:shrink-0 basis-0 md:basis-auto"}
14        ${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"}
15        drop-shadow-[0px_1px_6px_rgba(0,0,0,0.1)] md:drop-shadow-none
16        text-12 md:text-16 leading-21 md:leading-24 font-r text-black
17      `,onClick:()=>{e.onChange(e.tabIndex)},children:e.label})}s.Z=function(e){let{activeIndex:s,onChange:r,data:l,scroll:d}=e;return(0,t.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 ${d?"w-max min-w-full":""}`,children:l.map((e,l)=>(0,t.jsx)(n,{label:e.tabLabel,tabIndex:e.tabIndex||l,currentActiveIndex:s,onChange:r,scroll:d},l))})}},74474:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return y}});var t=r(85893),n=r(47300),l=r(68220),d=r(83888),i=r(47416),a=r(67294),o=r(77392),c=r(36492),u=r(23765),m=r(7078),x=r(82941),h=r(5518),f=r(49276),b=r(12486),v=r(35034),g=r(8849),p=r(60110),j=r(31138),_=function(){var e;(0,b.e)();let[s,r]=(0,a.useState)(null),[_,w]=(0,a.useState)(null),N=(0,j.a)("(min-width: 1024px)"),[C,y]=(0,a.useState)(),I=(0,a.useMemo)(()=>N?15:8,[N]),{isLoading:k,isSuccess:S,data:E,isError:Z,isFetching:$,refetch:F}=(0,c.a)(["getReserves"],()=>(0,u.Sj)(),{staleTime:3e4});(0,a.useEffect)(()=>{E&&(null==E?void 0:E.status)==="success"&&y(null==E?void 0:E.params)},[E]);let R=(0,a.useCallback)(()=>{let e;
17if(0===s){if((null==C?void 0:C.current_reserves.length)===0)return"درخواست رزرو جاری نداری !";e=null==C?void 0:C.current_reserves}else if(1===s){if((null==C?void 0:C.succeed_reserves.length)===0)return"درخواست رزرو موفق نداری !";e=null==C?void 0:C.succeed_reserves}else{if((null==C?void 0:C.failed_reserves.length)===0)return"درخواست رزرو ناموفق نداری !";e=null==C?void 0:C.failed_reserves}return null==e?void 0:e.slice(0,I*_)},[s,C,_,I]),L=R();(0,a.useEffect)(()=>{(s||0===s)&&sessionStorage.setItem(v.Lm,s.toString())},[s]),(0,a.useEffect)(()=>{let e=sessionStorage.getItem(v.Lm);r(e?Number(e):0)},[]),(0,a.useEffect)(()=>{_&&sessionStorage.setItem(v.sk,_.toString())},[_]),(0,a.useEffect)(()=>{let e=sessionStorage.getItem(v.sk);w(e?Number(e):1)},[]);let D=(0,a.useMemo)(()=>k||null===s||null===_,[k,s,_]);return(0,t.jsxs)("div",{className:"pb-40 md:pb-80 ",children:[(0,t.jsx)(i.Z,{title:"رزرو ها",icon:(0,t.jsx)("i",{className:"icon-Reserve text-24"}),containerClassname:"mb-16"}),D?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-16",children:(0,t.jsx)(g.j,{})}),Array.from({length:I}).map((e,s)=>(0,t.jsx)("div",{className:"mb-16 last:mb-0",children:(0,t.jsx)(p.y,{})},s))]}):Z||!C?(0,t.jsx)(h.Z,{title:"رزروها بارگذاری نشد",onRetry:()=>void F(),isRetrying:$}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-16 md:mb-24",children:(0,t.jsx)(d.Z,{activeIndex:s,onChange:e=>{r(e)},data:[{tabLabel:C?`جاری (${(0,l.YS)(C.current_reserves.length)})`:`جاری`,tabIndex:0},{tabLabel:C?`موفق (${(0,l.YS)(C.succeed_reserves.length)})`:`موفق`,tabIndex:1},{tabLabel:C?`ناموفق (${(0,l.YS)(C.failed_reserves.length)})`:`ناموفق`,tabIndex:2}]})}),(0,t.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 L?(0,t.jsx)("div",{className:"pt-40 col-span-full",children:(0,t.jsx)(x.Z,{title:L,iconSrc:"/assets/No-reserve.svg"})}):null==L?void 0:L.map(e=>{var s;return(0,t.jsx)("div",{className:"col-span-full sm:col-span-6 md:col-span-4 md:h-full",children:(0,t.jsx)(o.Z,{isFromDetailsPage:!1,state:e.state,residenceName:e.product.name,reserveCode:e.reference,hostIncome:e.host_share,startDate:(0,f.mW)(e.start_date),endDate:(0,f.mW)(e.end_date),mainGuestsN:e.guests_count,extraGuestsN:e.extra_guests_count,reserveId:e.id,residenceId:e.product.id,residenceImage:`${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,rooms:e.rooms,conversationPublicId:e.conversation_public_id??null,guestPhone:(null===(s=e.customer)||void 0===s?void 0:s.phone)||null,endDateIso:e.end_date,displayType:e.product.display_type})},e.id)})}),!!_&&!!(0,m.f)(_,I,null===(e=0===s?null==C?void 0:C.current_reserves:1===s?null==C?void 0:C.succeed_reserves:null==C?void 0:C.failed_reserves)||void 0===e?void 0:e.length)&&(0,t.jsx)("div",{className:"mt-16 md:mt-24 md:w-[280px] md:mx-auto",children:(0,t.jsx)(n.z,{variant:"outlined",color:"black",isFullWidth:!0,onClick:()=>w(e=>e+1),rightIcon:(0,t.jsx)("i",{className:"icon-Plus hidden md:block text-20 text-black"}),children:"نمایش بیشتر"})})]})]})},w=r(9008),N=r.n(w);let C=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(N(),{children:[(0,t.jsx)("title",{children:"رزرو ها | لیدوما تریپ"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsx)(_,{})]});var y=C},7078:function(e,s,r){"use strict";function t(e,s,r){return r>e*s}r.d(s,{f:function(){return t}})}},function(e){e.O(0,[4885,8289,113,3765,8220,9462,7392,9774,2888,179],function(){return e(e.s=20632)}),_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.