PageSourceSearch

https://lidomatrip.com/_next/static/chunks/7623-4587ccf5d3e60e89.js

js lidomatrip.com collected 2026-10-02 20:24:32 UTC 7,239 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7623],{1939:function(e,t,n){n.d(t,{L:function(){return s},o:function(){return a}});var i=n(58713),r=n(57149);let a=async()=>{let e=await r.Z.setUrl("/api/favourites").setCallMethod("GET").call();if((null==e?void 0:e.status)!=="success")return e;let t=((null==e?void 0:e.data)||[]).map(e=>{var t;let n=e.residence||{},i=(n.images||[]).map(e=>e.url).filter(Boolean);return{id:n.id,name:n.name,name2:n.name2||"",average_rating:n.averageRating??0,reviews_count:n.reviewsCount??0,price:n.weekPrice??0,max_capacity:n.maxCapacity??0,city:(null===(t=n.city)||void 0===t?void 0:t.name)||"",city_id:void 0,province:"",province_id:void 0,neighborhood:"",images:i,main_image:i[0]||"",reference:n.reference||"",rooms_count:0,is_fast:!1,is_full:!1,discount:0,display_type:void 0}});return{status:"success",params:{wishlist:t}}},s=async e=>{let{product_id:t,action:n}=e,a={residenceId:t,action:n===i.y.ADD?"like":"unlike"};return r.Z.setUrl("/api/favourites/toggle").setCallMethod("POST").setParams(a).call()}},46142:function(e,t,n){var i=n(85893),r=n(55666);t.Z=function(e){let{rating:t,commentsN:n,bedN:a,maxCapacity:s,className:l}=e;return(0,i.jsxs)("dl",{className:`flex items-center gap-x-6 ${l||""}`,children:[(0,i.jsx)("dt",{className:"sr-only",children:"تعداد اتاق خواب"}),(0,i.jsxs)("dd",{className:"text-13 leading-16 font-r",children:[a," اتاق خواب"]}),(0,i.jsx)("dt",{className:"sr-only",children:"ظرفیت"}),(0,i.jsxs)("dd",{className:"text-13 leading-16 font-r",children:["تا ",s," نفر ظرفیت"]}),!!t&&!!n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("dt",{className:"sr-only",children:"امتیاز مهمانان"}),(0,i.jsx)("dd",{className:"pr-8 mr-6 flex items-center gap-x-2 border-r border-gray-F0F0F0 text-gray-57585C",children:(0,i.jsx)(r.default,{average_rating:t,reviews_count:n})})]})]})}},83461:function(e,t,n){var i=n(85893),r=n(5152),a=n.n(r);let s=a()(()=>n.e(9215).then(n.bind(n,59215)),{loadableGenerated:{webpack:()=>[59215]},ssr:!0});t.Z=function(e){let{discountP:t,price:n,nowruzPrice:r,stay:a}=e;if(a&&a.nights>0){var l;return(0,i.jsxs)("div",{className:"text-14 leading-24 text-black font-m flex items-center gap-x-4",children:[(0,i.jsx)("data",{value:String(a.perNight??0),children:null===(l=a.perNight)||void 0===l?void 0:l.toLocaleString("en-US")}),(0,i.jsx)("span",{children:"تومان"}),(0,i.jsx)("span",{className:"text-12 text-gray-6C6A7D leading-14 font-r",children:"هر شب"}),!!a.discountPercent&&(0,i.jsx)(s,{value:a.discountPercent})]})}let c=t?n-n*(t/100):n;return(0,i.jsxs)("div",{className:"text-14 leading-24 text-black font-m flex items-center gap-x-4",children:[(0,i.jsx)("span",{className:"text-12 text-gray-6C6A7D leading-14 font-r",children:"هر شب از :"}),!!t&&(0,i.jsxs)("del",{className:"text-12 leading-21 text-gray-77828F font-l line-through ml-4 flex items-center gap-x-4",children:[(0,i.jsx)("data",{value:String(n??0),children:null==n?void 0:n.toLocaleString("en-US")}),(0,i.jsx)("span",{children:"تومان"})]}),(0,i.jsxs)("ins",{className:"no-underline flex items-center gap-x-4",children:[(0,i.jsx)("data",{value:String(c??0),children:null==c?void 0:c.toLocaleString("en-US")}),(0,i.jsx)("span",{children:"تومان"})]}),!!t&&(0,i.jsx)(s,{value:t})]})}},12786:function(e,t,n){var i=n(85893),r=n(1939),a=n(68398),s=n(58713),l=n(91879),c=n(45551),o=n(36492),u=n(67294),d=n(47300);t.Z=function(e){let{hasBg:t=!0,isItLiked:n,residenceId:f,showAsBtn:x,withoutWrapper:v,className:p}=e,g=(0,l.Gr)(),[m,h]=(0,u.useState)(n||!1),y=null!==g.user_type&&g.user_type!==l.P.PUBLIC,{isLoading:j,data:N,refetch:b}=(0,o.a)(["getFavourites"],()=>(0,r.o)(),{enabled:y});(0,u.useEffect)(()=>{if(N){var e,t;(null==N?void 0:null===(e=N.params)||void 0===e?void 0:null===(t=e.wishlist)||void 0===t?void 0:t.find(e=>e.id===f))&&h(!0)}},[N,f]);let _=(0,u.useCallback)(async()=>{let e=!!m,t=await (0,r.L)({action:e?s.y.REMOVE:s.y.ADD,product_id:f});(null==t?void 0:t.status)==="success"?(b(),e||c.Z.message([{type:a.L.SUCCESS,title:"به علاقه‌مندی‌ها اضافه شد"}])):(h(e=>!e),c.Z.message([{type:a.L.ERROR,title:(null==t?void 0:t.err_msg)||a.i}]))},[m,f,b]),k=(0,u.useCallback)(e=>{null===g.user_type||g.user_type===l.P.PUBLIC?(e.stopPropagation(),e.preventDefault(),c.Z.message([{type:a.L.INFO,title:"برای افزودن به علاقه مندی ها، لطفا وارد سیستم شوید."}]),g.authModalsUtils.setShowEnterPhoneNumberModal(!0)):(e.stopPropagation(),e.preventDefault(),h(e=>!e),_())},[_,g.authModalsUtils,g.user_type]);function $(e){let{isLiked:t,className:n}=e;return(0,i.jsx)("i",{"aria-hidden":"true",className:`${t?"icon-LikeFill text-red-main":"icon-LIke"} text-24 md:text-17 ${n||""}`})}let C=(0,u.useCallback)(e=>{let{shouldHandleClick:n,className:r,withoutWrapper:a}=e;if(!n)return(0,i.jsx)($,{isLiked:m,className:r});let s=/(^|[ :])(absolute|fixed|sticky|relative)( |$)/.test(` ${r||""} `),l=s?"z-1":"relative z-1";return(0,i.jsx)("button",{type:"button","aria-pressed":m,"aria-label":m?"حذف از علاقه‌مندی‌ها":"افزودن به علاقه‌مندی‌ها",onClick:k,className:a?`${l} inline-flex items-center justify-center cursor-pointer ${r||""}`:`${t?"bg-white":""} ${l} w-36 h-36 rounded-full flex items-center justify-center cursor-pointer ${r||""}`,children:(0,i.jsx)($,{isLiked:m})})},[k,t,m]);return x?(0,i.jsx)(d.z,{variant:"outlined",color:"white",rightIcon:(0,i.jsx)(C,{shouldHandleClick:!1,className:"!w-auto !h-auto"}),onClick:e=>{k(e)},children:"افزودن به علاقمندی ها"}):(0,i.jsx)(C,{shouldHandleClick:!0,withoutWrapper:v,className:p})}},59073:function(e,t,n){var i=n(85893);t.Z=function(e){let{className:t,province:n,city:r,neighborhood:a}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("p",{className:`text-12 leading-14 text-gray-57585C font-r OnlyOneLineAndEndWithElipsis ${t}`,children:[n," ، ",r,a?` ، ${a}`:null]})})}},58713:function(e,t,n){var i,r;n.d(t,{y:function(){return i}}),(r=i||(i={})).ADD="add",r.REMOVE="remove"},77087:function(e,t,n){n.d(t,{$:function(){return i}});function i(e){let{residenceId:t,startDate:n,endDate:i,guestsCount:r}=e;return`/rentals/${t}${n&&i?`?start=${n}&end=${i}`:""}${r&&n&&i?`&guests_count=${r}`:r?`?guests_count=${r}`:""}`}},77547:function(e,t,n){function i(e,t){var n;let i=new Blob([JSON.stringify(t)],{type:"application/json"});null!==(n=navigator.sendBeacon)&&void 0!==n&&n.call(navigator,e,i)||fetch(e,{method:"POST",body:i,keepalive:!0}
1).catch(()=>void 0)}function r(e,t){i(`/api/residences/${e}/impression`,{source:t})}function a(e,t,n){i(`/api/residences/${e}/card-click`,{source:t,detail:n})}n.d(t,{L:function(){return r},W:function(){return a}})},17585:function(e,t,n){n.d(t,{o:function(){return a}});var i=n(67294),r=n(77547);function a(e,t){let n=(0,i.useRef)(null),a=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(!e||a.current)return;let i=n.current;if(!i||"undefined"==typeof IntersectionObserver)return;let s=new IntersectionObserver(n=>{var i;(null===(i=n[0])||void 0===i?void 0:i.isIntersecting)&&!a.current&&(a.current=!0,(0,r.L)(e,t),s.disconnect())},{threshold:.5});return s.observe(i),()=>s.disconnect()},[e]),n}}}]);

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.