PageSourceSearch

https://lidomatrip.com/_next/static/chunks/8892-24d346f2313ca0e6.js

js lidomatrip.com collected 2026-10-02 20:28:42 UTC 8,218 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8892,7817],{87817:function(t,e,s){s.r(e);var n=s(85893);e.default=function(t){let{onClose:e,closeIconClassname:s,"aria-label":r="بستن"}=t;return(0,n.jsx)("button",{type:"button","aria-label":r,onClick:t=>e(t),className:"flex items-center justify-center rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-main",children:(0,n.jsx)("i",{"aria-hidden":"true",className:`icon-ErrorFill text-gray-400 text-20 cursor-pointer ${s||""}`})})}},97049:function(t,e,s){var n,r;s.d(e,{g:function(){return n}}),(r=n||(n={})).IS_SIGN_UP="is_sign_up",r.MIZBAN_PHONE_NUMBER="MIZBAN_PHONE_NUMBER",r.HOST_ID="HOST_ID",r.IS_FROM_FORGET_PASSWORD="is_from_forget_password",r.OTP_CODE="otp_code"},95517:function(t,e,s){var n=s(85893),r=s(87817),i=s(91879),u=s(72563),l=s(25675),o=s.n(l),a=s(11163);s(67294),e.Z=function(t){let{children:e,title:s,showAsModal:l,hasCloseBtnInShowAsModal:c=!0}=t,h=(0,i.Gr)(),d=(0,a.useRouter)(),f="/auth/enter_phone"===d.pathname,m=()=>{localStorage.removeItem("Pending_Reserve_Details"),(0,u.qJ)(),l?(h.authModalsUtils.setShowEnterPhoneNumberModal(!1),h.authModalsUtils.setShowEnterPasswordModal(!1),h.authModalsUtils.setShowForgetPasswordModal(!1),h.authModalsUtils.setShowOTPModal(!1),h.authModalsUtils.setShowSignUpModal(!1)):window.history.length>1?d.back():d.push("/")},g=(0,n.jsxs)("div",{className:`relative ${l?"pt-24":"pt-28"}`,children:[(l?c:f)&&(0,n.jsx)("div",{className:"absolute top-24 left-0",children:(0,n.jsx)(r.default,{onClose:m})}),!l&&!f&&(0,n.jsx)("button",{type:"button","aria-label":"بازگشت",className:"absolute top-24 right-0 flex items-center",onClick:()=>d.back(),children:(0,n.jsx)("i",{className:"icon-Back text-26"})}),(0,n.jsxs)("div",{className:"mb-40",children:[(0,n.jsx)("div",{className:"mb-8 flex items-center justify-center",children:(0,n.jsx)(o(),{src:"/assets/logos/Logo-green-no-text.svg",width:48,height:48,alt:"لوگو لیدوما تریپ",style:{maxWidth:"100%",height:"auto"}})}),(0,n.jsx)("p",{className:"text-16 text-center leading-28 font-m text-zilgara",children:s})]}),(0,n.jsx)("div",{children:e})]});return l?g:(0,n.jsxs)("div",{className:"fixed inset-0 z-[11] flex flex-col md:items-center md:justify-center bg-primary-main bg-[url('/assets/Wallet-Effect.svg')] bg-cover bg-no-repeat",children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 bg-[rgba(24,39,58,0.55)]"}),(0,n.jsx)("div",{className:"relative flex-1 md:flex-none flex items-center justify-center min-h-[72px] md:hidden",children:(0,n.jsx)(o(),{src:"/assets/logos/Logo-white-landscape.svg",width:120,height:28,alt:"",style:{height:"auto"}})}),(0,n.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":s,className:"relative w-full md:w-[400px] max-h-[88vh] overflow-y-auto bg-white rounded-t-24 md:rounded-20 px-20 pb-32 md:pb-40 shadow-[0px_8px_32px_rgba(24,39,58,0.25)]",children:g})]})}},70707:function(t,e,s){s.d(e,{EU:function(){return o},W_:function(){return a},c4:function(){return l},cQ:function(){return u}});let n=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],r=["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],i=["0","1","2","3","4","5","6","7","8","9"];function u(t){return t.replace(/[\u0660-\u0669\u06f0-\u06f9]/g,t=>15&t.charCodeAt(0))}function l(t){return!!(i.includes(t)||n.includes(t)||r.includes(t))}function o(t){return Number(u(t).replace(/[^\d]/g,""))||0}function a(t){let e=u(t).replace(/[٫،]/g,".").replace(/[^0-9.-]/g,"");if(!e||"-"===e||"."===e||"-."===e)return null;let s=Number(e);return Number.isFinite(s)?s:null}},72563:function(t,e,s){s.d(e,{RM:function(){return u},b6:function(){return i},qJ:function(){return l}});var n=s(35204);let r=null;function i(t){r=(0,n.CA)(t)??null}function u(){let t=r;return r=null,t}function l(){r=null}},55395:function(t,e,s){s.d(e,{T1:function(){return d},UK:function(){return a},bc:function(){return c},pv:function(){return h},zP:function(){return f}});var n=s(29061),r=s(97049),i=s(68398),u=s(70707);let l="otp_resend_at",o="otp_code_length";function a(t){let e=(0,u.cQ)(t).replace(/[^\d+]/g,"");return e.startsWith("+98")?`0${e.slice(3)}`:e.startsWith("0098")?`0${e.slice(4)}`:e.startsWith("98")&&12===e.length?`0${e.slice(2)}`:e.startsWith("9")&&10===e.length?`0${e}`:e}function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.i,s=null==t?void 0:t.response;if(!s)return"ارتباط با سرور برقرار نشد. اتصال اینترنت خود را بررسی کنید.";let n=s.data;if((null==n?void 0:n.code)==="VALIDATION_ERROR"){var r;let t=Object.values((null==n?void 0:null===(r=n.details)||void 0===r?void 0:r.fieldErrors)??{})[0];if(Array.isArray(t)&&"string"==typeof t[0])return t[0]}return"string"==typeof(null==n?void 0:n.message)&&n.message?n.message:429===s.status?"تعداد درخواست‌ها بیش از حد مجاز است. کمی بعد دوباره تلاش کنید."
1:e}async function h(t){let e=await n.Z.post("/api/auth/otp/request",{phone:t}),s=e.data.data;return localStorage.setItem(r.g.MIZBAN_PHONE_NUMBER,t),localStorage.setItem(l,String(Date.now()+1e3*s.resendInSeconds)),localStorage.setItem(o,String(s.codeLength)),s}function d(){return{phone:localStorage.getItem(r.g.MIZBAN_PHONE_NUMBER)||"",codeLength:Number(localStorage.getItem(o))||5,resendAt:Number(localStorage.getItem(l))||0}}function f(){localStorage.removeItem(l),localStorage.removeItem(o)}},48228:function(t,e,s){s.d(e,{D:function(){return d}});var n=s(67294),r=s(464),i=s(32161),u=s(89886),l=s(30081),o=s(33989);class a extends o.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 s=this.options;this.options=this.client.defaultMutationOptions(t),(0,i.VS)(s,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,u.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){l.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,n,r,i,u,l,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(r=this.mutateOptions).onSettled)||n.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(i=(u=this.mutateOptions).onError)||i.call(u,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))}t.listeners&&this.listeners.forEach(t=>{t(this.currentResult)})})}}var c=s(85945),h=s(24798);function d(t,e,s){let u=(0,i.lV)(t,e,s),o=(0,c.NL)({context:u.context}),[d]=n.useState(()=>new a(o,u));n.useEffect(()=>{d.setOptions(u)},[d,u]);let m=(0,r.$)(n.useCallback(t=>d.subscribe(l.V.batchCalls(t)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),g=n.useCallback((t,e)=>{d.mutate(t,e).catch(f)},[d]);if(m.error&&(0,h.L)(d.options.useErrorBoundary,[m.error]))throw m.error;return{...m,mutate:g,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.