PageSourceSearch

https://lidomatrip.com/_next/static/chunks/9343-f15eecff7089b124.js

js lidomatrip.com collected 2026-09-25 07:12:29 UTC 8,711 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9343],{83342:function(e,i,l){l.d(i,{L:function(){return o}});var n,r=l(47568),s=l(26042),a=l(69396),c=l(70655),t=l(60243),d=l(57149),o=(n=(0,r.Z)(function(e){var i,l,n,r,o,u,p,m,x;return(0,c.__generator)(this,function(c){return(i=e.product_type,l=e.product_id,n=e.week_price,r=e.weekend_price,o=e.peak_price,u=e.extra_price,p=e.extra_peak_price,m=e.weekly_discount,x=e.monthly_discount,i===t.h.ROOM)?[2,{status:"error",err_msg:"این قابلیت برای اتاق‌های بوم‌گردی هنوز پشتیبانی نمی‌شود"}]:[2,d.Z.setUrl("/api/host/residences/".concat(l,"/pricing")).setCallMethod("PATCH").setParams((0,a.Z)((0,s.Z)({weekPrice:n,weekendPrice:r,peakPrice:o,extraGuestsPrice:u},void 0===p?{}:{extraGuestsPeakPrice:p}),{weeklyDiscount:m,monthlyDiscount:x})).call()]})}),function(e){return n.apply(this,arguments)})},63871:function(e,i,l){l.d(i,{O:function(){return a}});var n=l(85893),r=l(77461),s=l.n(r),a=function(){return(0,n.jsx)("div",{className:"my-32 flex w-full justify-center ",children:(0,n.jsx)("div",{className:"".concat(s()["dot-flashing"])})})}},39343:function(e,i,l){l.r(i);var n=l(10253),r=l(85893),s=l(83342),a=l(48228),c=l(36492),t=l(97474),d=l(47300),o=l(46178),u=l(28855),p=l(63871),m=l(68398),x=l(77178),v=l(82175),h=l(11163),f=l(67294),k=l(45551),y=l(74231),N={basePrice:null,weekEndPrice:null,peakDaysPrice:null,extraGuestPrice:null,extraGuestPeakPrice:null,weeklyReserveDiscount:null,monthlyReserveDiscount:null},b={basePrice:y.Rx().typeError(x.N.REQUIRED).required(x.N.REQUIRED),weekEndPrice:y.Rx().typeError(x.N.REQUIRED).required(x.N.REQUIRED),peakDaysPrice:y.Rx().typeError(x.N.REQUIRED).required(x.N.REQUIRED),extraGuestPrice:y.Rx().nullable(),extraGuestPeakPrice:y.Rx().nullable(),weeklyReserveDiscount:y.Rx().min(0,"میزان تخفیف حداقل باید 0 باشد.").max(99,"میزان تخفیف را به درصد وارد کنید. ( حداکثر 99 درصد )").nullable(),monthlyReserveDiscount:y.Rx().min(0,"میزان تخفیف حداقل باید 0 باشد.").max(99,"میزان تخفیف را به درصد وارد کنید. ( حداکثر 99 درصد )").nullable()},R=function(e){return Number(e)||0};i.default=function(e){var i,l,x,_=e.residenceId,P=e.residenceType,g=e.onSaved,j=e.onCancel,E=e.hideChrome,w=function(){j?j():D.back()},D=(0,h.useRouter)(),C=null!=_?_:Number(null==D?void 0:null===(l=D.query)||void 0===l?void 0:l.id),O=null!=P?P:null==D?void 0:null===(x=D.query)||void 0===x?void 0:x.residenceType,S=(0,n.Z)((0,f.useState)(N),2),T=S[0],A=S[1],I=(0,a.D)(function(e){return(0,s.L)(e)},{onSuccess:function(e){if((null==e?void 0:e.status)==="success"){var i,l,n;Z(),k.Z.message([{type:m.L.SUCCESS,title:"تغییرات با موفقیت اعمال شد"}]),g?g():(null==D?void 0:null===(i=D.query)||void 0===i?void 0:i.fromCalendarPage)==="true"?D.push("/residences/calendar?residenceId=".concat(null==D?void 0:null===(l=D.query)||void 0===l?void 0:l.id,"&residenceType=").concat(null==D?void 0:null===(n=D.query)||void 0===n?void 0:n.residenceType)):D.push("/residences/list")}else k.Z.message([{type:m.L.ERROR,title:(null==e?void 0:e.err_msg)||m.i}])}}),G=(0,v.TA)({initialValues:T,validationSchema:y.Ry(b),onSubmit:function(e){I.mutate({product_type:O,product_id:C,week_price:e.basePrice||0,weekend_price:e.weekEndPrice||0,peak_price:e.peakDaysPrice||0,extra_price:e.extraGuestPrice||0,extra_peak_price:e.extraGuestPeakPrice||0,weekly_discount:e.weeklyReserveDiscount||0,monthly_discount:e.monthlyReserveDiscount||0})},enableReinitialize:!0}),L=(0,c.a)(["getCalendarData",C],function(){return(0,t.u)({residenceId:C,residenceType:O,scope:"host"})},{enabled:!!C}),U=L.isLoading,F=L.data,Z=L.refetch;(0,f.useEffect)(function(){if(F){var e=null==F?void 0:F.params;A({basePrice:(null==e?void 0:e.prices.week_price)||null,weekEndPrice:(null==e?void 0:e.prices.weekend_price)||null,peakDaysPrice:(null==e?void 0:e.prices.peak_price)||null,extraGuestPrice:(null==e?void 0:e.prices.extra_guests_price)||null,extraGuestPeakPrice:(null==e?void 0:e.prices.extra_guests_peak_price)||null,weeklyReserveDiscount:(null==e?void 0:e.prices.weekly_discount)||null,monthlyReserveDiscount:(null==e?void 0:e.prices.monthly_discount)||null})}},[F]);
1var q=I.isLoading,B=(i=G.values,Object.keys(N).every(function(e){return R(i[e])===R(T[e])})),M=function(e,i,l){return(0,r.jsx)(u.n,{name:e,inputmode:"numeric",formik:G,label:i,label2:l,leftIcon:(0,r.jsx)("span",{className:"text-12 leading-21 text-black font-l",children:"تومان"}),wordifyNumbers:!0})},Q=function(e,i){return(0,r.jsx)(u.n,{name:e,inputmode:"numeric",formik:G,label:i,leftIcon:(0,r.jsx)("span",{className:"text-12 leading-21 text-black font-l",children:"درصد"}),wordifyNumbers:!1})},z=(0,r.jsxs)("div",{className:"grid grid-cols-12 md:gap-x-16 gap-y-16",children:[(0,r.jsx)("div",{className:"col-span-full md:col-span-6",children:M("basePrice","قیمت پایه","( شنبه ، یکشنبه، دوشنبه و سه شنبه )")}),(0,r.jsx)("div",{className:"col-span-full md:col-span-6",children:M("weekEndPrice","قیمت آخر هفته","( چهارشنبه، پنجشنبه و جمعه )")}),(0,r.jsx)("div",{className:"col-span-full md:col-span-6",children:M("peakDaysPrice","قیمت ایام پیک","( تعطیلات خاص )")}),(0,r.jsx)("div",{className:"col-span-full",children:(0,r.jsx)("p",{className:"text-14 leading-24 text-black font-m pt-8",children:"نفر اضافه"})}),(0,r.jsx)("div",{className:"col-span-full md:col-span-6",children:M("extraGuestPrice","نرخ هر نفر اضافه")}),(0,r.jsx)("div",{className:"col-span-full md:col-span-6",children:M("extraGuestPeakPrice","نرخ هر نفر اضافه","( ایام پیک )")}),(0,r.jsx)("div",{className:"col-span-full",children:(0,r.jsx)("p",{className:"text-14 leading-24 text-black font-m pt-8",children:"تخفیف اقامت طولانی"})}),(0,r.jsx)("div",{className:"col-span-full md:col-span-6",children:Q("weeklyReserveDiscount","تخفیف رزرو هفتگی")}),(0,r.jsx)("div",{className:"col-span-full md:col-span-6",children:Q("monthlyReserveDiscount","تخفیف رزرو ماهانه")})]}),H=(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-x-12",children:[(0,r.jsx)(d.z,{isFullWidth:!0,color:"grey",className:"!px-10",onClick:w,disabled:q,children:"انصراف"}),(0,r.jsx)(d.z,{isFullWidth:!0,className:"!px-10",disabled:B||q,isLoading:q,loadingText:"در حال ذخیره",onClick:function(){return G.handleSubmit()},children:"ذخیره"})]});return E?(0,r.jsxs)(r.Fragment,{children:[U?(0,r.jsx)(p.O,{}):z,(0,r.jsx)("div",{className:"mt-16",children:H})]}):void 0!==_?(0,r.jsx)("div",{className:"fixed inset-0 z-[70] flex md:items-center md:justify-center md:bg-[rgba(24,39,58,0.7)] md:p-16",onClick:w,role:"presentation",children:(0,r.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"نرخ گذاری کلی",onClick:function(e){return e.stopPropagation()},className:"w-full h-full md:w-[560px] md:h-auto md:max-h-[86vh] md:rounded-16 bg-white flex flex-col overflow-hidden",children:[(0,r.jsx)(o.Z,{headerTitle:"نرخ گذاری کلی",onBackClick:w,containerClassname:"shrink-0 border-b-1 border-solid border-b-gray-F2F2F7"}),(0,r.jsx)("div",{className:"grow overflow-y-auto px-20 py-16",children:U?(0,r.jsx)(p.O,{}):z}),(0,r.jsx)("div",{className:"shrink-0 border-t-1 border-solid border-t-gray-F2F2F7 px-20 py-12 pb-[max(12px,env(safe-area-inset-bottom))]",children:H})]})}):(0,r.jsxs)("div",{className:"relative pt-80 md:pt-0",children:[(0,r.jsx)("div",{className:"fixed right-0 left-0 top-0 bg-white z-4 md:hidden",children:(0,r.jsx)(o.Z,{headerTitle:"نرخ گذاری کلی",onBackClick:w})}),U?(0,r.jsx)(p.O,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"pb-[88px] md:pb-0",children:z}),(0,r.jsx)("div",{className:"bg-white py-16 md:py-0 px-20 md:px-0 fixed bottom-0 right-0 left-0 z-2 md:static md:mt-40 md:w-[320px] md:mx-auto",children:H})]})]})}},77178:function(e,i,l){var n,r;l.d(i,{N:function(){return n}}),(r=n||(n={})).REQUIRED="فیلد الزامی",r.EMAIL="ایمیل نامعتبر",r.PHONE="شماره همراه نامعتبر",r.GENERAL_PHONE="شماره نامعتبر",r.NATIONALCODE="کد ملی نامعتبر",r.POSTALCODE="کد پستی نامعتبر",r.BANKCARTNUMBER="شماره کارت Ù
1†Ø§Ù…عتبر",r.SHABANUMBER="شماره شبا نامعتبر",r.ONLY_EN_NUMBERS="لطفا فقط اعداد انگلیسی وارد کنید.",r.PASSWORDS_DO_NOT_MATCH="رمز عبور و تکرار رمز عبور یکسان نیستند",r.ONLY_NUMBER_CHARS="لطفا فقط مقادیر عددی وارد نمایید."}}]);

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.