PageSourceSearch

https://lidomatrip.com/_next/static/chunks/9462-5556a3ce36ec4cfb.js

js lidomatrip.com collected 2026-10-02 20:28:45 UTC 14,985 bytes, 31 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9462,1023,4649],{47416:function(e,t,r){var n=r(85893);r(67294),t.Z=function(e){let{icon:t,title:r,containerClassname:s,element:i,asH1:a}=e;return(0,n.jsxs)("div",{className:`flex items-center justify-between ${s||""}`,children:[(0,n.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,n.jsx)("div",{className:"flex items-center ml-12",children:t}),a?(0,n.jsx)("h1",{className:"text-[#000000] text-16 leading-28 font-m",children:r}):(0,n.jsx)("h2",{className:"text-[#000000] text-16 leading-28 font-m",children:r})]}),i]})}},51687:function(e,t,r){r.r(t);var n=r(85893),s=r(67294);t.default=function(e){let{headerTitle:t,body:r,open:i,handleClose:a}=e,[l,o]=(0,s.useState)({transform:"translateY(100%)"}),u=(0,s.useRef)(null),c=(0,s.useRef)(null),d=(0,s.useRef)(0),h=(0,s.useRef)(0);function f(){o({transform:"translateY(100%)"}),setTimeout(()=>{a()},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?o({transform:"translateY(0)"}):o({transform:"translateY(100%)"})},[i]),i?(0,n.jsxs)(n.Fragment,{children:[i&&(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:()=>f()}),(0,n.jsxs)("div",{ref:u,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){c.current=e.touches[0].clientY,d.current=Date.now(),h.current=0,u.current&&(u.current.style.transition="none")},onTouchMove:function(e){if(null===c.current)return;let t=Math.max(0,e.touches[0].clientY-c.current);h.current=t,u.current&&(u.current.style.transform=`translateY(${t}px)`)},onTouchEnd:function(){if(null===c.current)return;let e=h.current,t=e/Math.max(1,Date.now()-d.current);c.current=null,u.current&&(u.current.style.transition="",u.current.style.transform=""),e>90||t>.5?f():o({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:f,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:r({handleSmoothClose:f})})]})]}):null}},40186:function(e,t,r){r.d(t,{Y:function(){return i}});var n=r(85893);let s=(e,t)=>"selected"===e?`
7              checked:after:border-5
8              ${"primary"===t?"checked:after:border-primary-main":"checked:after:border-blue-main"}
9              checked:after:border-solid
10          `:"checked"===e?'checked:after:bg-[url("/assets/tick.svg")] checked:after:bg-[length:9px_7px] checked:after:bg-primary-main checked:after:bg-no-repeat checked:after:bg-center checked:after:border-none checked:after:text-white checked:after:flex checked:after:items-center checked:after:justify-center checked:after:text-12':"isError"===e?'checked:after:bg-error-light checked:after:border-none checked:after:bg-[url("/assets/x-icon.svg")] checked:after:bg-no-repeat checked:after:bg-center checked:after:bg-[length:12px_12px]':"",i=e=>{let{onChange:t,checked:r,look:i="checked",disabled:a,label:l,inputClassnames:o,wrapperClassnames:u,lableClassnames:c,value:d,formik:h,name:f,color:m="primary"}=e;return(0,n.jsxs)("label",{className:` 
11        flex relative items-center gap-x-8 cursor-pointer
12        ${u||""}
13        min-h-[24px]
14      `,children:[(0,n.jsx)("input",{className:`
15          w-0 h-0 shrink-0
16          after:absolute after:top-0 after:right-0 after:translate-y-[2px] after:w-20 after:h-20 after:content-[''] after:inline-block after:rounded-50 after:bg-white after:border-2 after:border-solid after:border-gray-E1E1E5 after:shadow-none after:cursor-pointer
17          ${o} ${s(i,m)}
18        `,value:d,checked:r,onChange:e=>{!a&&(h&&h.setFieldValue(f,d),t&&t(e))},type:"radio",name:f,disabled:a}),!!l&&(0,n.jsx)("span",{className:`text-14 leading-24 font-r text-black break-all pr-20 ${c||""}`,children:l})]})}},2534:function(e,t,r){r.d(t,{g:function(){return o}});var n=r(85893),s=r(5152),i=r.n(s),a=r(67294);let l=i()(()=>r.e(9905).then(r.bind(r,99905)),{loadableGenerated:{webpack:()=>[99905]},ssr:!0});function o(e){let{label:t,placeholder:r,customError:s,customValue:i,customOnChange:o,disabled:u,formik:c,name:d,fillFrom:h="rtl",readonly:f,maxCharsN:m,autoComplete:b,rows:v=3,cols:p,autoFocus:x,labelClassname:g,styles:y,textareaClassnames:j,subLable:w,autoResize:k}=e,M=(0,a.useRef)(null),N=(0,a.useMemo)(()=>c&&c.touched[d]&&c.errors[d]?"object"!=typeof c.errors[d]?c.errors[d]:c.errors[d][Object.keys(c.errors[d])[0]]:s||null,[c,s]);return(0,a.useEffect)(()=>{k&&M.current&&(M.current.style.height=M.current.scrollHeight+"px")},[k]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("label",{className:"w-full",children:[!!t&&(0,n.jsx)("span",{className:`text-12 leading-21 text-black font-r mb-8 block ${g||""}`,children:t}),!!w&&(0,n.jsx)("p",{className:"text-10 leading-17 text-black font-l mb-4",children:w}),(0,n.jsx)("div",{children:(0,n.jsx)("textarea",{ref:M,className:`
19            w-full bg-white focus-visible:outline-none
20            placeholder:text-12 placeholder:leading-21 placeholder:font-l placeholder:text-[rgba(28,46,69,0.6
20)]
21            text-14 leading-24 font-m text-black
22            py-10 pr-12 pl-16
23            border-1 border-solid border-gray-C4CAD3 rounded-8
24            focus-within:!border-black
25            ${u?"cursor-not-allowed":""}
26            ${"ltr"===h?"text-left":"rtl"===h?"text-right":""}
27            ${N?"!text-error-light":""}
28            ${u?"opacity-60 cursor-not-allowed":""}
29            ${N?"!border-error-light":""}
30            ${j||""}
31          `,rows:v,cols:p,autoComplete:b,autoFocus:x,readOnly:f,placeholder:r||"",disabled:u,name:d,value:(null==c?void 0:c.values[d])||i||"",onChange:e=>{c&&(null==c||c.handleChange(e)),o&&o(e.target.value),k&&M.current&&(M.current.style.height=e.target.scrollHeight+"px")},onBlur:e=>{c&&!f&&(null==c||c.handleBlur(e))},onKeyPress:e=>{if(m){if(c){var t;(null===(t=null==c?void 0:c.values[d])||void 0===t?void 0:t.length)===m&&e.preventDefault()}else o&&(null==i?void 0:i.length)===m&&e.preventDefault()}},style:y})})]}),!!N&&(0,n.jsx)(l,{errorMessage:N})]})}},37586:function(e,t,r){var n=r(85893),s=r(47300),i=r(25675),a=r.n(i),l=r(11163),o=r(63245);t.Z=function(e){let{reserveId:t,endDate:r}=e,i=(0,l.useRouter)(),u=(0,o.Nd)(r);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"p-12 bg-black rounded-8 flex items-center justify-between gap-x-10",children:[(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-16 font-m text-white",children:"دریافت فاکتور رزرو"}),(0,n.jsx)("p",{className:"text-12 leading-20 text-white/70 mt-2",children:o.q6})]}),(0,n.jsx)(s.z,{disabled:!u,color:"warning",rightIcon:(0,n.jsx)(a(),{src:"/assets/download.svg",width:12,height:16,alt:"دانلود",style:{maxWidth:"100%",height:"auto"}}),className:"!text-black",onClick:()=>i.push(`/factor/${t}`),children:"دانلود"})]})})}},34649:function(e,t,r){function n(e){return 0<=e&&e<10?"0"+e:10<=e&&e<100?e.toString():void 0}r.r(t),r.d(t,{getTimeDiff:function(){return s}});let s=(e,t)=>{let r=t-e;if(r<=0)return 0;let s=Math.floor(r/1e3),i=Math.floor(s/3600),a=s-3600*i,l=Math.floor(a/60),o=a-60*l;return 0===i&&0===l&&0===o?0:0===i?`${n(l)}:${n(o)}`:`${i}:${n(l)}:${n(o)}`}},50534:function(e,t,r){r.d(t,{M:function(){return n}});function n(e,t){let r=e.map(e=>e.format("jYYYY/jMM/jDD")),n=t.map(e=>{let t=[],r=e[0].clone();for(;r.isSameOrBefore(e[1]);)t.push(r.format("jYYYY/jMM/jDD")),r.add(1,"day");return t}),s=n.flat(1),i=new Set([...r,...s]),a=[...i];return a}},49276:function(e,t,r){r.d(t,{IS:function(){return l},K9:function(){return f},ZJ:function(){return a},_q:function(){return o},bP:function(){return c},mW:function(){return u},qK:function(){return d},wI:function(){return h}});var n=r(68289),s=r.n(n),i=r(50534);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(s());return e.format("jYYYY/jMM/jDD - hh:mm")}function l(){let 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 u(e){return o(s()(e))}function c(e){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(s());return e.format("jMMMM jYYYY")}(s()(e))}function d(e,t){let r=(0,i.M)([],[[e,t]]);return r.length}s().loadPersian({dialect:"persian-modern"}),s().locale("fa-IR");let h=e=>(e||(e=new(s())),s()(e).startOf("jMonth").format("dd")),f=e=>{e||(e=new(s()));let t=u(e).split("/"),r=t[0],n=t[1];return s().jDaysInMonth(Number(r),Number(n)-1)}},77087:function(e,t,r){r.d(t,{$:function(){return n}});function n(e){let{residenceId:t,startDate:r,endDate:n,guestsCount:s}=e;return`/rentals/${t}${r&&n?`?start=${r}&end=${n}`:""}${s&&r&&n?`&guests_count=${s}`:s?`?guests_count=${s}`:""}`}},62236:function(e,t,r){r.d(t,{J:function(){return n}});function n(e){["getReserve","getReserves","getMyTrips","getDashboardData"].forEach(t=>e.invalidateQueries([t]))}},63245:function(e,t,r){r.d(t,{Nd:function(){return a},pA:function(){return u},q6:function(){return o},y7:function(){return l}});var n=r(30381),s=r.n(n),i=r(85096);function a(e){let t=function(e){if(!e)return null;let t=s()(e);return t.isValid()?t.endOf("day").add(1,"day"):null}(e);return!t||s()().isSameOrBefore(t)}let l="تا یک روز پس از پایان سفر امکان‌پذیر است",o="چاپ صورتحساب تا یک روز پس از پایان سفر امکان‌پذیر است";function u(e,t){return e===i.A.DONE&&a(t)}},89987:function(e,t,r){r.d(t,{Q:function(){return i}});var n=r(67294);let s=["message","read","typing","message-deleted","reservation","notification"];function i(e,t,r){let i=(0,n.useRef)(t);i.current=t;let a=(0,n.useRef)(r);a.current=r,(0,n.useEffect)(()=>
31{if(!e||"undefined"==typeof EventSource){var t;null===(t=a.current)||void 0===t||t.call(a,!0);return}let r=null,n=0,l=!1;return(r=new EventSource("/api/conversations/stream",{withCredentials:!0})).onopen=()=>{var e;n=0,null===(e=a.current)||void 0===e||e.call(a,!1)},s.forEach(e=>{null==r||r.addEventListener(e,t=>{try{i.current({type:e,data:JSON.parse(t.data)})}catch{}})}),r.onerror=()=>{if((n+=1)>=2){var e;null===(e=a.current)||void 0===e||e.call(a,!0)}},()=>{null==r||r.close()}},[e])}},12486:function(e,t,r){r.d(t,{e:function(){return l}});var n=r(67294),s=r(85945),i=r(89987),a=r(62236);function l(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,s.NL)(),[r,l]=(0,n.useState)(!1),o=(0,n.useRef)(r);return o.current=r,(0,i.Q)(e,e=>{"reservation"===e.type&&((0,a.J)(t),t.invalidateQueries(["notifications"])),"notification"===e.type&&t.invalidateQueries(["notifications"])},l),(0,n.useEffect)(()=>{if(!e||"undefined"==typeof document)return;let r=()=>{"visible"===document.visibilityState&&((0,a.J)(t),t.invalidateQueries(["notifications"]))},n=()=>{"visible"===document.visibilityState&&r()};document.addEventListener("visibilitychange",n),window.addEventListener("focus",r);let s=window.setInterval(r,o.current?15e3:6e4);return()=>{document.removeEventListener("visibilitychange",n),window.removeEventListener("focus",r),window.clearInterval(s)}},[e,t,r]),{live:!r}}},48228:function(e,t,r){r.d(t,{D:function(){return h}});var n=r(67294),s=r(464),i=r(32161),a=r(89886),l=r(30081),o=r(33989);class u extends o.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let r=this.options;this.options=this.client.defaultMutationOptions(e),(0,i.VS)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,a.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){l.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,s,i,a,l,o;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(s=this.mutateOptions).onSettled)||n.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(i=(a=this.mutateOptions).onError)||i.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(l=(o=this.mutateOptions).onSettled)||l.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(e=>{e(this.currentResult)})})}}var c=r(85945),d=r(24798);function h(e,t,r){let a=(0,i.lV)(e,t,r),o=(0,c.NL)({context:a.context}),[h]=n.useState(()=>new u(o,a));n.useEffect(()=>{h.setOptions(a)},[h,a]);let m=(0,s.$)(n.useCallback(e=>h.subscribe(l.V.batchCalls(e)),[h]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),b=n.useCallback((e,t)=>{h.mutate(e,t).catch(f)},[h]);if(m.error&&(0,d.L)(h.options.useErrorBoundary,[m.error]))throw m.error;return{...m,mutate:b,mutateAsync:m.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.