PageSourceSearch

https://lidomatrip.com/_next/static/chunks/pages/favourites-e3ea4e8da167462e.js

js lidomatrip.com collected 2026-10-02 20:27:36 UTC 14,901 bytes, 6 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6675,1023,3258],{74969:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/favourites",function(){return s(72721)}])},63871:function(e,t,s){"use strict";s.d(t,{O:function(){return r}});var n=s(85893),i=s(77461),a=s.n(i);let r=()=>(0,n.jsx)("div",{className:"my-32 flex w-full justify-center ",children:(0,n.jsx)("div",{className:`${a()["dot-flashing"]}`})})},47416:function(e,t,s){"use strict";var n=s(85893);s(67294),t.Z=function(e){let{icon:t,title:s,containerClassname:i,element:a,asH1:r}=e;return(0,n.jsxs)("div",{className:`flex items-center justify-between ${i||""}`,children:[(0,n.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,n.jsx)("div",{className:"flex items-center ml-12",children:t}),r?(0,n.jsx)("h1",{className:"text-[#000000] text-16 leading-28 font-m",children:s}):(0,n.jsx)("h2",{className:"text-[#000000] text-16 leading-28 font-m",children:s})]}),a]})}},55666:function(e,t,s){"use strict";s.r(t);var n=s(85893),i=s(41236);t.default=function(e){let{average_rating:t,reviews_count:s,className:a,hideWhenAllAreZero:r=!0}=e;return t||s||!r?(0,n.jsxs)("div",{onClick:()=>{let e=document.querySelector("#resReviews");null==e||e.scrollIntoView({behavior:"smooth",block:"center"})},className:`gap-x-2 flex items-center shrink-0 cursor-pointer ${a||""}`,children:[!!t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-15 leading-20 text-black font-m",children:(0,i.A)(t)}),(0,n.jsx)("i",{className:"icon-StarFill text-18 text-warning"})]}),!!s&&(0,n.jsx)("span",{className:"text-gray-57585C text-11 leading-14 font-r",children:`(${2*s} نظر ثبت شده)`})]}):null}},85027:function(e,t,s){"use strict";var n=s(85893);t.Z=function(e){let{onShareBtnClick:t,customIcon:s}=e;return(0,n.jsx)("button",{type:"button","aria-label":"اشتراک‌گذاری",className:"relative z-1 w-36 h-36 bg-white rounded-full flex items-center justify-center cursor-pointer",onClick:e=>{e.stopPropagation(),e.preventDefault(),t(e)},children:s||(0,n.jsx)("i",{"aria-hidden":"true",className:"icon-ShareFill text-20 text-black"})})}},13258:function(e,t,s){"use strict";s.r(t);var n=s(85893),i=s(68398),a=s(25675),r=s.n(a),l=s(13346),c=s(45551);t.default=function(e){let{handleSmoothClose:t,whatIsBeingShared:s="اقامتگاه",description:a,payload:o}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-14 leading-24 text-black font-r mb-24",children:a||`با استفاده از روش های زیر می توانید این ${s} را با دوستان خود به اشتراک بگذارید`}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-12",children:[(0,n.jsxs)("a",{href:`sms://?body=${(null==o?void 0:o.textToBeSmsed)||""}`,className:"col-span-1 px-16 py-12 rounded-6 flex items-center gap-x-6 bg-warning",children:[(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(r(),{src:"/assets/non-icomoon-icons/sms.svg",width:20,height:17,alt:"",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:"text-14 leading-24 text-white font-m",children:"پیامک"})]}),(0,n.jsxs)("div",{className:"col-span-1 px-16 py-12 rounded-6 flex items-center gap-x-6 typical-gray-bg cursor-pointer",onClick:()=>{(0,l.v)((null==o?void 0:o.link)||""),c.Z.message([{type:i.L.SUCCESS,title:"لینک با موفقیت کپی شد."}])},children:[(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(r(),{src:"/assets/non-icomoon-icons/copy.svg",width:24,height:24,alt:"",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:"text-14 leading-24 text-black font-m",children:"کپی کردن لینک"})]}),(0,n.jsxs)("a",{href:`whatsapp://send?text=${null==o?void 0:o.whatsAppText}`,className:"col-span-1 px-16 py-12 rounded-6 flex items-center gap-x-6 bg-success",children:[(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(r(),{src:"/assets/non-icomoon-icons/whatsapp.svg",width:18,height:18,alt:"",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:"text-14 leading-24 text-white font-m",children:"واتس اپ"})]}),(0,n.jsxs)("a",{className:"col-span-1 px-16 py-12 rounded-6 flex items-center gap-x-6",style:{background:"linear-gradient(93.99deg, #FF008A 3.04%, #FFB520 100%)"},href:"",children:[(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(r(),{src:"/assets/non-icomoon-icons/instagram.svg",width:16,height:16,alt:"",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:"text-14 leading-24 text-white font-m",children:"اینستاگرام"})]}),(0,n.jsxs)("a",{href:`https://telegram.me/share/url?url=${(null==o?void 0:o.telegramText)||""}`,className:"col-span-1 px-16 py-12 rounded-6 flex items-center gap-x-6 bg-info",children:[(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(r(),{src:"/assets/non-icomoon-icons/telegram.svg",width:18,height:16,alt:"",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:"text-14 leading-24 text-white font-m",children:"تلگرام"})]}),(0,n.jsxs)("a",{href:`https://twitter.com/intent/tweet?url=${null==o?void 0:o.twitter.url_to_go}&text=${null==o?void 0:o.twitter.text_of_tweet}&via=""`,className:"col-span-1 px-16 py-12 rounded-6 flex items-center gap-x-6 bg-twitter",target:"_blank",rel:"noreferrer",children:[(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(r(),{src:"/assets/non-icomoon-icons/twitter.svg",width:20,height:16,alt:"",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:"text-14 leading-24 text-white font-m",children:"توئیتر"})]})]})]})}},51687:function(e,t,s){"use strict";s.r(t);var n=s(85893),i=s(67294);t.default=function(e){let{headerTitle:t,body:s,open:a,handleClose:r}=e,[l,c]=(0,i.useState)({transform:"translateY(100%)"}),o=(0,i.useRef)(null),d=(0,i.useRef)(null),u=(0,i.useRef)(0),m=(0,i.useRef)(0);function x(){c({transform:"translateY(100%)"}),setTimeout(()=>{r()},200)}return(0,i.useEffect)(()=>(a?(document.body.classList.add("overflow-hidden"),document.body.style.height="100vh"):(document.body.classList.remove("overflow-hidden"),document.body.style.height=""),()=>{document.body.classList.remove("overflow-hidden"),document.body.style.height=""}),[a]),(0,i.useEffect)(()=>{a?c({transform:"translateY(0)"}):c({transform:"translateY(100%)"})},[a]),a?(0,n.jsxs)(n.Fragment,{children:[a&&(0,n.jsx)("div",{className:"left-0 bottom-0 z-[19] fixed h-screen right-0 bg-[rgba(24,39,58,0.55)] backdrop-blur-[6px]",onClick:()=>x()}),(0,n.jsxs)("div",{ref:o,style:{...l},className:`
2            fixed bottom-0 right-0 left-0
3            md:max-w-[468px] md:mx-auto md:rounded-br-20 md:rounded-bl-20 md:bottom-1/2 md:!translate-y-1/2
4            bg-white z-20 rounded-tr-20 rounded-tl-20
5            transition-all duration-200 ease-in-out
6        `,children:[(0,n.jsxs)("div",{onTouchStart:function(e){d.current=e.touches[0].clientY,u.current=Date.now(),m.current=0,o.current&&(o.current.style.transition="none")},onTouchMove:function(e){if(null===d.current)return;let t=Math.max(0,e.touches[0].clientY-d.current);m.current=t,o.current&&(o.current.style.transform=`translateY(${t}px)`)},onTouchEnd:function(){if(null===d.current)return;let e=m.current,t=e/Math.max(1,Date.now()-u.current);d.current=null,o.current&&(o.current.style.transition="",o.current.style.transform=""),e>90||t>.5?x():c({transform:"translateY(0)"})},children:[(0,n.jsx)("div",{className:"flex justify-center pt-8 md:hidden",children:(0,n.jsx)("span",{"aria-hidden":"true",className:"h-4 w-40 rounded-full bg-gray-DBDFE5"})}),(0,n.jsxs)("div",{className:"relative border-b-1 border-solid border-b-gray-F2F2F7 p-[17px] rounded-tr-20 rounded-tl-20",children:[(0,n.jsx)("div",{className:"text-black text-16 leading-22 font-m pr-[7px]",children:t}),(0,n.jsx)("button",{type:"button","aria-label":"بستن",className:"absolute left-10 top-13 flex items-end cursor-pointer transition-transform active:scale-90",onClick:x,children:(0,n.jsx)("i",{"aria-hidden":"true",className:"icon-Close text-24"})})]})]}),(0,n.jsx)("div",{className:"max-h-[70dvh] overflow-y-auto overscroll-contain py-16 px-20",children:s({handleSmoothClose:x})})]})]}):null}},427:function(e,t,s){"use strict";s.d(t,{NV:function(){return n},un:function(){return i}});let n="لیدوما تریپ",i="https://lidomatrip.com"},72721:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return O},default:function(){return Y}});var n=s(85893),i=s(67294),a=s(47416),r=s(25675),l=s.n(r),c=s(12786),o=s(85027),d=s(44349),u=s.n(d),m=s(30719),x=s(71911);s(99008),s(44233),s(74256);var h=s(41664),f=s.n(h),p=s(77087),g=s(59073),v=s(46142),j=s(5152),b=s.n(j),w=s(83461),y=s(17585),N=s(77547);x.ZP.use([x.W_,x.tl]);let k=b()(()=>s.e(5915).then(s.bind(s,75915)),{loadableGenerated:{webpack:()=>[75915]},ssr:!0});var _=function(e){let{onShareBtnClick:t,name:s,provice:i,city:a,neighborhood:r,rating:d,commentsN:x,price:h,bedN:j,maxCapacity:b,images:_,residenceId:C,isFastEnabled:S,discountP:F}=e,T=(0,p.$)({residenceId:C}),$=`rental-title-${C}`,E=(0,y.o)(C,"FAVORITES");return(0,n.jsxs)("article",{ref:E,"aria-labelledby":$,className:"group relative cursor-pointer",children:[(0,n.jsxs)("header",{children:[(0,n.jsxs)("figure",{className:`${u()["Air-bnb-like-slider"]} relative z-1`,children:[(0,n.jsx)("figcaption",{className:"sr-only",children:`گالری تصاویر ${s}`}),(0,n.jsxs)(m.tq,{slidesPerView:1,pagination:{dynamicBullets:!0,el:".swiper-pagination",clickable:!0,dynamicMainBullets:1},className:"rounded-12",children:[_.map((e,t)=>(0,n.jsx)(m.o5,{children:(0,n.jsx)(f(),{href:T,prefetch:!1,tabIndex:-1,"aria-hidden":"true",draggable:!1,
6className:"relative block w-full h-[214px]",children:(0,n.jsx)(l(),{src:e,alt:s,fill:!0,sizes:"100vw",draggable:!1,style:{objectFit:"cover"}})})},t)),(0,n.jsx)("div",{className:"swiper-pagination"})]}),(0,n.jsx)("div",{className:"absolute top-12 left-12 right-12 flex items-center z-1 justify-between",children:(0,n.jsxs)("div",{className:"flex items-center gap-x-8",children:[(0,n.jsx)(o.Z,{onShareBtnClick:t}),(0,n.jsx)(c.Z,{residenceId:C,isItLiked:!0})]})})]}),(0,n.jsx)(g.Z,{city:a,className:"my-10",neighborhood:r,province:i}),(0,n.jsx)("h2",{id:$,title:s,className:"text-14 leading-24 text-black font-r group-hover:text-primary-main mb-10",children:(0,n.jsx)(f(),{href:T,prefetch:!1,className:"block after:absolute after:inset-0 after:content-['']",onClick:()=>(0,N.W)(C,"FAVORITES"),children:(0,n.jsx)("span",{className:"OnlyOneLineAndEndWithElipsis block",children:s})})})]}),(0,n.jsx)(v.Z,{rating:d,commentsN:x,bedN:j,className:"mb-12 group-hover:text-primary-main",maxCapacity:b}),!!S&&(0,n.jsx)("div",{className:"mb-12",children:(0,n.jsx)(k,{})}),(0,n.jsx)("footer",{children:(0,n.jsx)(w.Z,{price:h,discountP:F})})]})},C=s(47300),S=s(82941),F=s(51687),T=s(13258),$=s(36492),E=s(1939),A=s(63871),I=s(7078),W=s(31138),Z=s(427);let B={show:!1,payload:{textToBeSmsed:"",link:"",whatsAppText:"",telegramText:"",twitter:{url_to_go:"",text_of_tweet:"",via:""}}};var D=function(){let[e,t]=(0,i.useState)(B),[s,r]=(0,i.useState)(1),[c,o]=(0,i.useState)(),{isLoading:d,data:u}=(0,$.a)(["getFavourites"],()=>(0,E.o)()),m=(0,W.a)("(min-width: 1024px)"),x=(0,i.useMemo)(()=>m?15:8,[m]);return(0,i.useEffect)(()=>{if(u&&(null==u?void 0:u.status)==="success"){var e;o(null==u?void 0:null===(e=u.params)||void 0===e?void 0:e.wishlist)}},[u]),(0,n.jsxs)("div",{className:"pb-40 md:pb-80 ",children:[(0,n.jsx)(a.Z,{title:"علاقه مندی ها",icon:m?void 0:(0,n.jsx)(l(),{src:"/assets/non-icomoon-icons/like.svg",width:24,height:24,alt:"like",style:{width:"24px",height:"24px"}}),containerClassname:"mb-16"}),!c||d?(0,n.jsx)(A.O,{}):0===c.length?(0,n.jsx)("div",{className:"pt-16 md:pt-140",children:(0,n.jsx)(S.Z,{title:"هنوز اقامتگاهی رو اضافه نکردی !",iconSrc:"/assets/No-favourite.svg",subTitle:(0,n.jsxs)("div",{children:["هر اقامتگاهی که ازش خوشت میاد رو با کلیک بر روی"," ",(0,n.jsx)(l(),{src:"/assets/non-icomoon-icons/like-fill.svg",width:14,height:12,alt:"",style:{maxWidth:"100%",height:"auto"}}),"به این لیست اضافه کن، تا وقتی تخفیف میخوره خبرت کنیم ."]}),actions:(0,n.jsx)("div",{className:"w-full flex justify-center",children:(0,n.jsx)(C.Q,{href:"/search",rightIcon:(0,n.jsx)("i",{className:"icon-Search text-white text-18"}),children:"جستجوی اقامتگاه ها"})})})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ul",{className:"grid grid-cols-12 gap-y-16 sm:gap-x-16 md:gap-x-16 sm:gap-y-24 md:gap-y-24",children:c.slice(0,x*s).map((e,s)=>(0,n.jsx)("li",{className:"col-span-full sm:col-span-6 md:col-span-4",children:(0,n.jsx)(_,{onShareBtnClick:()=>{let s=`${Z.un}${(0,p.$)({residenceId:e.id})}`;t({show:!0,payload:{textToBeSmsed:s,link:s,whatsAppText:s,telegramText:s,twitter:{url_to_go:s,text_of_tweet:e.name,via:""}}})},name:e.name,provice:e.province,city:e.city,neighborhood:e.neighborhood,rating:e.average_rating,commentsN:e.reviews_count,price:e.price||0,bedN:e.rooms_count,maxCapacity:e.max_capacity,images:e.images,residenceId:e.id,isFastEnabled:e.is_fast,discountP:e.discount})},s))}),!!(0,I.f)(s,x,c.length)&&(0,n.jsx)("div",{className:"mt-16 md:mt-40 md:w-[280px] md:mx-auto",children:(0,n.jsx)(C.z,{isFullWidth:!0,color:"black",variant:"outlined",onClick:()=>r(e=>e+1),rightIcon:(0,n.jsx)("i",{className:"icon-Plus hidden md:block text-20 text-black"}),children:"نمایش بیشتر"})}),(0,n.jsx)(F.default,{open:!!e.show,handleClose:()=>t(B),headerTitle:"اشتراک گذاری",body:t=>{let{handleSmoothClose:s}=t;return(0,n.jsx)(T.default,{handleSmoothClose:s,whatIsBeingShared:"اقامتگاه",payload:e.payload})}})]})]})};let P=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(D,{})});var O=!0,Y=P},7078:function(e,t,s){"use strict";function n(e,t,s){return s>e*t}s.d(t,{f:function(){return n}})},13346:function(e,t,s){"use strict";function n(e){if((null==window?void 0:window.clipboardData)&&(null==window?void 0:window.clipboardData.setData))return null==window?void 0:window.clipboardData.setData("Text",e);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var t=document.createElement("textarea");t.textContent=e,t.style.position="fixed",document.body.appendChild(t),t.select();try{return document.execCommand("copy")}catch(e){return console.warn("Copy to clipboard failed.",e),!1}finally{document.body.removeChild(t)}}}s.d(t,{v:function(){return n}})},41236:function(e,t,s){"use strict";function n(e){return null==e||Number.isNaN(Number(e))?"":String(Math.round(100*Number(e))/100)}s.d(t,{A:function(){return n}})},44233:function(){},74256:function(){},99008:function(){},44349:function(e){e.exports={"Air-bnb-like-slider":"Air-bnb-like-slider_Air-bnb-like-slider__UHu4X"}}},function(e){e.O(0,[719,1911,7623,9774,2888,179],function(){return e(e.s=74969)}),_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.