PageSourceSearch

https://lidomatrip.com/_next/static/chunks/578-c492d3af84d0a8b1.js

js lidomatrip.com collected 2026-10-02 20:28:46 UTC 9,293 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[578,1023],{80129:function(t,e,n){n.d(e,{AA:function(){return m},Cn:function(){return N},Cu:function(){return C},DE:function(){return P},Fj:function(){return A},Fm:function(){return I},GA:function(){return M},II:function(){return L},Ix:function(){return x},Lq:function(){return O},Ne:function(){return i},P2:function(){return f},Pn:function(){return h},Pw:function(){return p},Rz:function(){return v},SF:function(){return b},_h:function(){return g},aW:function(){return a},ao:function(){return E},bc:function(){return u},eJ:function(){return d},g0:function(){return R},hI:function(){return $},kI:function(){return o},ls:function(){return y},ny:function(){return c},p5:function(){return S}});var r=n(67970);async function s(t){try{var e;let n=await t();return{ok:!0,data:null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.data}}catch(t){return function(t){var e;if(!(null==t?void 0:t.response))return{ok:!1,message:"ارتباط با سرور برقرار نشد. اتصال خود را بررسی کنید.",offline:!0};let n=t.response.data;return{ok:!1,message:(null==n?void 0:n.message)||"خطایی رخ داد. دوباره تلاش کنید.",fieldErrors:null==n?void 0:null===(e=n.details)||void 0===e?void 0:e.fieldErrors}}(t)}}let i={specs:1,capacity:3,amenities:4,pricing:5,gallery:6,documents:7,rules:8},o={specs:"نام و مشخصات",capacity:"ظرفیت",amenities:"امکانات",pricing:"نرخ‌گذاری",gallery:"تصاویر",documents:"مدارک",rules:"قوانین و شرایط"},u={DETAILS:"نوع و منطقه اقامتگاه",SPECS:"نام و توضیحات",LOCATION:"آدرس و محل دقیق",CAPACITY:"ظرفیت و اتاق‌ها",AMENITIES:"امکانات",PRICING:"نرخ‌گذاری",GALLERY:"گالری تصاویر",DOCUMENTS:"مدارک",RULES:"قوانین و شرایط",OTHER:"سایر"},a={DETAILS:0,SPECS:1,LOCATION:2,CAPACITY:3,AMENITIES:4,PRICING:5,GALLERY:6,DOCUMENTS:7,RULES:8},c={DETAILS:"details",SPECS:"specs",LOCATION:"address",CAPACITY:"capacity",AMENITIES:"amenities",PRICING:"pricing",GALLERY:"images",DOCUMENTS:"documents",RULES:"rules"},l="/api/host/residences",d=t=>s(()=>r.ZP.get(`${l}/${t}`)),h=t=>s(()=>r.ZP.post(`${l}/${t}/defects/request-review`)),f=t=>s(()=>r.ZP.post(l,t)),p=(t,e)=>s(()=>r.ZP.patch(`${l}/${t}`,e)),m=(t,e)=>s(()=>r.ZP.patch(`${l}/${t}/instant-booking`,{isFast:e})),b=(t,e)=>s(()=>r.ZP.patch(`${l}/${t}/capacity`,e)),v=(t,e)=>s(()=>r.ZP.put(`${l}/${t}/rooms`,e)),g=(t,e)=>s(()=>r.ZP.patch(`${l}/${t}/amenities`,e)),$=(t,e)=>s(()=>r.ZP.patch(`${l}/${t}/pricing`,e)),C=(t,e)=>s(()=>r.ZP.patch(`${l}/${t}/rules`,e)),y=(t,e)=>s(()=>r.ZP.patch(`${l}/${t}/state`,{action:"submit",step:e})),x=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new FormData;return i.append("image",e),void 0!==n.isMain&&i.append("isMain",String(n.isMain)),n.title&&i.append("title",n.title),s(()=>r.ZP.post(`${l}/${t}/images`,i,{onUploadProgress:t=>{n.onProgress&&t.total&&n.onProgress(Math.round(t.loaded/t.total*100))}}))},E=(t,e)=>s(()=>r.ZP.delete(`${l}/${t}/images/${e}`)),P=(t,e)=>s(()=>r.ZP.patch(`${l}/${t}/images/${e}`,{isMain:!0})),R=(t,e,n)=>s(()=>r.ZP.post(`${l}/${t}/images/order`,{imageIds:e,step:n})),M=(t,e,n)=>{let i=new FormData;return e.hostNationalCard&&i.append("hostNationalCard",e.hostNationalCard),e.document&&i.append("document",e.document),e.ownerNationalCard&&i.append("ownerNationalCard",e.ownerNationalCard),s(()=>r.ZP.post(`${l}/${t}/documents`,i,{onUploadProgress:t=>{n&&t.total&&n(Math.round(t.loaded/t.total*100))}}))},N=()=>s(()=>r.ZP.get(`${l}/classification-options`)),S=t=>s(()=>r.ZP.get(`${l}/${t}/classification`)),I=(t,e,n)=>s(()=>r.ZP.patch(`${l}/${t}/classification`,{key:e,values:n})),O=()=>s(()=>r.ZP.get("/api/residences/amenities")),L=()=>s(()=>r.ZP.get("/api/residences/rules")),A=(t,e,n)=>s(()=>r.ZP.patch(`${l}/${t}/images/${e}`,{title:n}))},51687:function(t,e,n){n.r(e);var r=n(85893),s=n(67294);e.default=function(t){let{headerTitle:e,body:n,open:i,handleClose:o}
1=t,[u,a]=(0,s.useState)({transform:"translateY(100%)"}),c=(0,s.useRef)(null),l=(0,s.useRef)(null),d=(0,s.useRef)(0),h=(0,s.useRef)(0);function f(){a({transform:"translateY(100%)"}),setTimeout(()=>{o()},200)}return(0,s.useEffect)(()=>(i?(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=""}),[i]),(0,s.useEffect)(()=>{i?a({transform:"translateY(0)"}):a({transform:"translateY(100%)"})},[i]),i?(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.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:()=>f()}),(0,r.jsxs)("div",{ref:c,style:{...u},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,r.jsxs)("div",{onTouchStart:function(t){l.current=t.touches[0].clientY,d.current=Date.now(),h.current=0,c.current&&(c.current.style.transition="none")},onTouchMove:function(t){if(null===l.current)return;let e=Math.max(0,t.touches[0].clientY-l.current);h.current=e,c.current&&(c.current.style.transform=`translateY(${e}px)`)},onTouchEnd:function(){if(null===l.current)return;let t=h.current,e=t/Math.max(1,Date.now()-d.current);l.current=null,c.current&&(c.current.style.transition="",c.current.style.transform=""),t>90||e>.5?f():a({transform:"translateY(0)"})},children:[(0,r.jsx)("div",{className:"flex justify-center pt-8 md:hidden",children:(0,r.jsx)("span",{"aria-hidden":"true",className:"h-4 w-40 rounded-full bg-gray-DBDFE5"})}),(0,r.jsxs)("div",{className:"relative border-b-1 border-solid border-b-gray-F2F2F7 p-[17px] rounded-tr-20 rounded-tl-20",children:[(0,r.jsx)("div",{className:"text-black text-16 leading-22 font-m pr-[7px]",children:e}),(0,r.jsx)("button",{type:"button","aria-label":"بستن",className:"absolute left-10 top-13 flex items-end cursor-pointer transition-transform active:scale-90",onClick:f,children:(0,r.jsx)("i",{"aria-hidden":"true",className:"icon-Close text-24"})})]})]}),(0,r.jsx)("div",{className:"max-h-[70dvh] overflow-y-auto overscroll-contain py-16 px-20",children:n({handleSmoothClose:f})})]})]}):null}},48228:function(t,e,n){n.d(e,{D:function(){return h}});var r=n(67294),s=n(464),i=n(32161),o=n(89886),u=n(30081),a=n(33989);class c extends a.l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let n=this.options;this.options=this.client.defaultMutationOptions(t),(0,i.VS)(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.listeners.length){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:(0,o.R)(),e={...t,isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=e}notify(t){u.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,n,r,s,i,o,u,a;t.onSuccess?(null==(e=(n=this.mutateOptions).onSuccess)||e.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(s=this.mutateOptions).onSettled)||r.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(i=(o=this.mutateOptions).onError)||i.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(u=(a=this.mutateOptions).onSettled)||u.call(a,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}
6t.listeners&&this.listeners.forEach(t=>{t(this.currentResult)})})}}var l=n(85945),d=n(24798);function h(t,e,n){let o=(0,i.lV)(t,e,n),a=(0,l.NL)({context:o.context}),[h]=r.useState(()=>new c(a,o));r.useEffect(()=>{h.setOptions(o)},[h,o]);let p=(0,s.$)(r.useCallback(t=>h.subscribe(u.V.batchCalls(t)),[h]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),m=r.useCallback((t,e)=>{h.mutate(t,e).catch(f)},[h]);if(p.error&&(0,d.L)(h.options.useErrorBoundary,[p.error]))throw p.error;return{...p,mutate:m,mutateAsync:p.mutate}}function f(){}}}]);

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.