PageSourceSearch

https://lidomatrip.com/_next/static/chunks/pages/factor/[id]-b0ab653c2f449e8d.js

js lidomatrip.com collected 2026-09-25 07:12:02 UTC 45,811 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[442],{23696:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/factor/[id]",function(){return s(18769)}])},23765:function(e,t,s){"use strict";s.d(t,{I2:function(){return D},iJ:function(){return w},Z9:function(){return C},ve:function(){return O},oI:function(){return N},Au:function(){return y},Sj:function(){return b},P0:function(){return j},Q6:function(){return E},kC:function(){return k},Xb:function(){return A},Pj:function(){return I},Dl:function(){return Y},Dq:function(){return T},ub:function(){return S},aP:function(){return P}});var n,r,a,i,l,o,c=s(47568),d=s(26042),u=s(69396),x=s(70655),m=s(60243),v=s(92752),h=s(57149);(n=l||(l={})).NO_VACANCY="no_vacancy",n.PRICE_CHANGED="price_changed",n.NOT_READY="not_ready",n.OTHER="other";var f=s(85096);(r=o||(o={})).GUEST_DELAY="guest_delay",r.NOT_READY="not_ready",r.ALREADY_RESERVED="already_reserved",r.OTHER="other";var p=s(57170),g=s(54981),j=function(e,t){if(e===f.A.HOST_APPROVAL)return{name:"در انتظار تأیید میزبان",icon:"icon-Timer",iconPathInDesktop:"/assets/reserve_states/hostApproval.svg",stateDescription_ForHost:"",stateDescription_ForGuest:function(e){return"درخواست رزرو شما به میزبان ارسال شده و منتظر تأیید میزبان می باشد. پس از تأیید میزبان می توانید با پرداخت صورتحساب ، رزرو خود را نهایی کنید "},bgColor:"bg-warning",textColor:"text-warning"};if(e===f.A.SECOND_PAYMENT)return{name:"در انتظار پرداخت",icon:"icon-Timer",iconPathInDesktop:"/assets/reserve_states/secondPayment.svg",stateDescription_ForHost:"    مهمان حداکثر 1 ساعت مهلت دارد تا با پرداخت صورتحساب رزرو خود را قطعی کند. در پایان مهلت مقرر\n      رزرو بصورت خودکار لغو می شود.",stateDescription_ForGuest:function(e){return"درخواست شما توسط میزبان تأیید شد. هم اکنون شما می توانید با پرداخت صورتحساب رزرو خود را قطعی کنید"},bgColor:"bg-warning",textColor:"text-blue-main"};if(e===f.A.DONE)return{name:"رزرو قطعی",icon:"icon-Success",iconPathInDesktop:"/assets/reserve_states/done.svg",stateDescription_ForHost:"ضمن قدردانی از تلاش شما برای ثبت خاطره ای شیرین برای میهمانان ، امیدواریم تلاشهای تیم لیدوما\n      در کنار شما موجب رونق صنعت گردشگری و ارتقاء سطح رفاه هموطنان عزیز شود.",stateDescription_ForGuest:function(e){return"مهمان گرامی، درخواست رزرو شما قطعی شد. شما می توانید با انتخاب گزینه دانلود فاکتور، اطلاعات کامل رزرو را مشاهده کنید."},bgColor:"bg-success",textColor:"text-green-main"};if(e===f.A.CANCEL){if(t===v.w.HOST_CANCELLED)return{name:"لغو شده توسط میزبان",icon:"icon-Error",iconPathInDesktop:"/assets/reserve_states/cancel.svg",stateDescription_ForHost:" توجه: رد یا منقضی شدن هر درخواست رزرو، موجب کاهش امتیاز میزبانی شما می شود. این امر به تدریج\n        موجب کاهش بازدید، کاهش رزرو و کاهش درآمد شما می شود. درصورت ادامه روند فوق اقامتگاه معلق شده\n        و از لیست نمایش حذف می شود.",stateDescription_ForGuest:function(e){return"درخواست رزرو شما توسط میزبان رد شد. پشتیبانان لیدوماتریپ چند اقامتگاه مشابه دیگر، متناسب با درخواست شما جهت جایگزینی ارسال کرده اند."},bgColor:"bg-error-light",textColor:"text-error-light"};if(t===v.w.GUEST_CANCELLED)return{name:"لغو شده توسط مهمان",icon:"icon-Error",iconPathInDesktop:"/assets/reserve_states/cancel.svg",stateDescription_ForHost:"",stateDescription_ForGuest:function(e){return"درخواست رزرو توسط شما رد شد. شما میتوانید به صفحه اقامتگاه های ".concat(e," بروید و اقامتگاه دیگری را انتخاب کنید")},bgColor:"bg-error-light",textColor:"text-error-light"};if(t===v.w.LIDOMA_CANCELLED)return{name:"لغو شده توسط لیدوما",icon:"icon-Error",stateDescription_ForHost:"",stateDescription_ForGuest:function(e){return"درخواست رزرو شما توسط لیدوما رد شد. شما می توانید با مراجعه به صفحه اقامتگاه های ".concat(e,"، اقامتگاه دیگری را انتخاب کنید.")}
1,iconPathInDesktop:"/assets/reserve_states/cancel.svg",bgColor:"bg-error-light",textColor:"text-error-light"}}else if(e===f.A.EXPIRED)return{name:"منقضی شده",icon:"icon-Error",stateDescription_ForHost:"",stateDescription_ForGuest:function(e){return"درخواست رزرو شما منقضی شد. شما می توانید با مراجعه به صفحه اقامتگاه های ".concat(e,"، اقامتگاه دیگری را انتخاب کنید.")},iconPathInDesktop:"/assets/reserve_states/cancel.svg",bgColor:"bg-error-light",textColor:"text-error-light"}},b=(a=(0,c.Z)(function(){var e;return(0,x.__generator)(this,function(t){switch(t.label){case 0:return[4,h.Z.setUrl("/api/host/reservations").setCallMethod("GET").call()];case 1:if((null==(e=t.sent())?void 0:e.status)!=="success")return[2,e];return[2,{status:"success",params:(0,p.E3)((null==e?void 0:e.data)||[])}]}})}),function(){return a.apply(this,arguments)});function N(){return _.apply(this,arguments)}function _(){return(_=(0,c.Z)(function(){var e,t,s;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return[4,h.Z.setUrl("/api/host/reservations/pending-count").setCallMethod("GET").call()];case 1:return[2,null!==(s=null==(t=n.sent())?void 0:null===(e=t.data)||void 0===e?void 0:e.count)&&void 0!==s?s:0]}})})).apply(this,arguments)}var y=(i=(0,c.Z)(function(e){var t,s;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return t="/api/reservations/".concat(e),[4,h.Z.setUrl(t).setCallMethod("GET").call()];case 1:if((null==(s=n.sent())?void 0:s.status)!=="success")return[2,s];return[2,{status:"success",params:(0,p.tY)((null==s?void 0:s.data)||{})}]}})}),function(e){return i.apply(this,arguments)});function D(e){var t=e.reserveId;return h.Z.setUrl("/api/host/reservations/".concat(t,"/accept")).setCallMethod("POST").call()}function k(e){return Promise.resolve({status:"success",params:{reserveId:e.reserveId}})}var E=[{key:l.NO_VACANCY,text:"اقامتگاه در تاریخ درخواست شده پر می باشد",order:1},{key:l.PRICE_CHANGED,text:"مبلغ رزرو اقامتگاه تغییر کرده است",order:2},{key:l.NOT_READY,text:"اقامتگاه آماده تحویل نیست",order:3},{key:l.OTHER,text:"سایر موارد",order:4}];function S(e){var t=e.reserveId,s=e.reason,n=e.desc;return h.Z.setUrl("/api/host/reservations/".concat(t,"/reject")).setCallMethod("POST").setParams({reason:s,desc:n}).call()}var w=[{key:o.GUEST_DELAY,text:"مسافر دیر پرداخت کرد",order:1},{key:o.NOT_READY,text:"مشکلی برای اقامتگاه پیش آمده",order:2},{key:o.ALREADY_RESERVED,text:"اقامتگاه از راه دیگری رزرو قطعی شده است",order:3},{key:o.OTHER,text:"سایر موارد",order:4}];function C(e){var t=e.reserveId,s=e.reason,n=e.desc;return h.Z.setUrl("/api/host/reservations/".concat(t,"/cancel")).setCallMethod("POST").setParams({reason:s,desc:n}).call()}function O(e){return e.reserveId,Promise.resolve({status:"success",params:{alters:[],residences_list:[]}})}function A(e){return e.reserveId,e.residencesIDs,Promise.resolve({status:"error",err_msg:"این قابلیت هنوز پیاده‌سازی نشده است"})}function T(e){var t=e.product_id,s=e.product_type,n=e.residence_id,r=e.start_date,a=e.end_date,i=e.guests_count,l=e.guest,o=s===m.h.ROOM;return o&&!n?Promise.resolve({status:"error",err_msg:"اقامتگاه این اتاق مشخص نیست"}):h.Z.setUrl("/api/reservations").setCallMethod("POST").setParams((0,u.Z)((0,d.Z)({residenceId:o?n:t},o?{roomIds:[t]}:{}),{startDate:(0,g.y)(r),endDate:(0,g.y)(a),guestsCount:i,guestNameOverride:l||void 0})).call().then(function(e){var t,s;return(null==e?void 0:e.status)!=="success"?{status:"error",err_msg:null==e?void 0:e.message}:{status:"success",params:{order_id:null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(s=t.reservation)||void 0===s?void 0:s.id}}})}function Y(e){return e.order_id,e.start_date,e.end_date,e.guests_count,e.guest,Promise.resolve({status:"error",err_msg:"ویرایش رزرو هنوز پشتیبانی نمی‌شود"})}function I(e){var t=e.order_id,s=e.voucher_code;return h.Z.setUrl("/api/reservations/".concat(t,"/discount")).setCallMethod("POST").setParams({code:s}).call().then(function(e){return(null==e?void 0:e.status)!=="success"?{status:"error",err_msg:null==e?void 0:e.message}:{status:"success",params:null==e?void 0:e.data}})}function P(e){var t=e.order_id;return h.Z.setUrl("/api/reservations/".concat(t,"/discount")).setCallMethod("DELETE").call().then(function(e){return(null==e?void 0:e.status)!=="success"?{status:"error",err_msg:null==e?void 0:e.message}:{status:"success",params:null==e?void 0:e.data}})}},59873:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var n=s(85893),r=s(25675),a=s.n(r);function i(e){var t=e.src,s=e.size,r=e.alt,i=e.className,l=e.loading,o=t||"/assets/default-profile.svg",c=/\.svg(\?|#|$)/i.test(o);return(0,n.jsx)(a(),{src:o,alt:r,width:s,height:s,unoptimized:c,loading:l,className:"rounded-full ".concat(void 0===i?"":i),style:{width:s,height:s,objectFit:"cover"}})}},24511:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var n=s(85893),r=s(47416),a=s(67294),i=function(e){var t=e.children,s=e.tooltipText,r=(0,a.useRef)(null);return(0,n.jsxs)("div",{className:"relative flex items-center w-[210px]",onMouseEnter:function(){r.current.style.opacity=1,r.current.style.marginLeft="20px"},onMouseLeave:function(){r.current.style.opacity=0,r.current.style.marginLeft="10px"},children:[(0,n.jsxs)("div",{className:"absolute whitespace-no-wrap bg-gradient-to-t from-black to-gray-700 text-white px-12 py-6 rounded flex items-center transition-all",style:{bottom:"100%",opacity:0}
1,ref:r,children:[(0,n.jsx)("div",{className:"bg-black h-10 w-10 absolute rounded-1",style:{bottom:"-1px",transform:"rotate(45deg)"}}),(0,n.jsx)("p",{className:"text-12 leading-20 text-white font-r",children:s})]}),t]})},l=function(e){var t,s=e.showTotal,a=e.total,l=e.data,o=e.n_of_discounted_special_days,c=e.n_of_discounted_peak_days,d=e.n_of_discounted_weekends,u=e.n_of_discounted_normaldays,x=e.totalDiscountAmount,m=e.hostShare,v=e.websiteShare,h=e.guestCommission,f=e.vatAmount,p=o+c+d+u;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Z,{icon:(0,n.jsx)("i",{className:"icon-Details text-24"}),title:"جزئیات صورتحساب",containerClassname:"mb-24"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"",children:l.map(function(e,t){return"valueOfKey"in e&&!e.valueOfKey||"fullValue"in e&&!e.fullValue?null:(0,n.jsxs)("div",{className:"flex items-center justify-between mb-12 last:mb-0",children:[(0,n.jsxs)("p",{className:"text-10 leading-17 font-l text-zilgara flex items-center gap-x-2",children:[(0,n.jsx)("span",{children:e.label}),"numberOfDiscountedDays"in e&&!!(null==e?void 0:e.numberOfDiscountedDays)&&(0,n.jsxs)("span",{className:"text-10 leading-21 text-error-light",children:["(",null==e?void 0:e.numberOfDiscountedDays," شب با تخفیف)"]})]}),(0,n.jsx)("div",{className:"flex items-center gap-x-2 text-10 leading-17 font-l text-zilgara",children:"fullValue"in e?(0,n.jsx)("span",{children:e.fullValue}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{children:[e.valueOfKey," ",e.key]}),(0,n.jsx)("i",{className:"icon-Close text-12 text-black"}),(0,n.jsxs)("span",{children:[e.per.toLocaleString("en-US")," تومان"]}),(0,n.jsx)("span",{children:"="}),(0,n.jsxs)("span",{children:[e.total.toLocaleString("en-US")," تومان"]})]})})]},t)})}),!!(void 0===s||s)&&(0,n.jsxs)("div",{className:"flex items-start justify-between border-b-1 border-t-1 py-16 my-16",children:[(0,n.jsxs)("p",{className:"text-15 leading-20 text-black",children:["مجموع صورتحساب :"," ",p?(0,n.jsxs)("span",{className:"text-10 leading-21 text-error-light",children:["(",p," شب با تخفیف)"]}):null]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[!!x&&(0,n.jsxs)("p",{className:"text-12 leading-21 font-l text-gray-600 line-through text-left",children:[null===(t=a+x)||void 0===t?void 0:t.toLocaleString("en-US")," تومان"]}),(0,n.jsxs)("span",{className:"text-13 leading-16 font-r text-black flex items-center gap-x-4",children:[(0,n.jsx)("p",{className:"text-16 leading-22 font-m text-black",children:a.toLocaleString("en-US")}),"تومان"]})]})]}),!!h&&(0,n.jsxs)("div",{className:"flex flex-col gap-y-8 mb-16",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("span",{className:"text-12 text-black leading-14 font-r",children:"کارمزد رزرو"}),(0,n.jsxs)("span",{className:"text-11 leading-14 font-r text-black flex items-center gap-x-4",children:[(0,n.jsx)("span",{className:"13 leading-16 text-black font-r",children:h.toLocaleString("en-US")}),"تومان"]})]}),(0,n.jsxs)("div",{className:"flex justify-between items-center pt-12 border-t-1",children:[(0,n.jsx)("p",{className:"text-15 leading-20 text-black",children:"مبلغ نهایی قابل پرداخت"}),(0,n.jsxs)("span",{className:"text-13 leading-16 font-r text-black flex items-center gap-x-4",children:[(0,n.jsx)("p",{className:"text-16 leading-22 font-m text-black",children:(a+h).toLocaleString("en-US")}),"تومان"]})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-y-14",children:[!!v&&(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("span",{className:"text-12 text-black leading-14 font-r",children:"سهم لیدوما"}),(0,n.jsxs)("span",{className:"text-11 leading-14 font-r text-black flex items-center gap-x-4",children:[(0,n.jsx)("span",{className:"13 leading-16 text-black font-r",children:v.toLocaleString("en-US")}),"تومان",(0,n.jsx)("i",{className:"icon-Negative text-red-main text-14"})]})]}),!!f&&(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,n.jsx)("span",{className:"text-12 text-black leading-14 font-r",children:"ارزش افزوده"}),(0,n.jsx)(i,{tooltipText:"ارزش افزوده معادل ۹ درصد سهم لیدوما (کارمزد دریافتی سایت از میزبان) است، نه درصدی از اجاره. تمام این مبلغ به حساب اداره مالیات واریز می‌شود.",children:(0,n.jsx)("i",{className:"icon-WarningFill text-blue-main cursor-pointer"})})]}),(0,n.jsxs)("span",{className:"text-11 leading-14 font-r text-black flex items-center gap-x-4",children:[(0,n.jsx)("span",{className:"13 leading-16 text-black font-r",children:f.toLocaleStr
1ing("en-US")}),"تومان",(0,n.jsx)("i",{"aria-hidden":"true",className:"icon-Negative text-red-main text-14"})]})]})]}),!!m&&(0,n.jsxs)("div",{className:"bg-gray-C4CAD3 rounded-8 flex justify-between items-center px-14 py-7 mt-16",children:[(0,n.jsx)("span",{className:"text-15 font-r leading-20 text-black",children:"مبلغ قابل پرداخت به میزبان"}),(0,n.jsxs)("span",{className:"text-13 leading-16 font-r text-black flex items-center gap-x-4",children:[(0,n.jsx)("p",{className:"text-16 leading-22 font-m text-black",children:m.toLocaleString("en-US")}),"تومان"]})]})]})]})}},47416:function(e,t,s){"use strict";var n=s(85893);s(67294),t.Z=function(e){var t=e.icon,s=e.title,r=e.containerClassname,a=e.element,i=e.asH1;return(0,n.jsxs)("div",{className:"flex items-center justify-between ".concat(r||""),children:[(0,n.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,n.jsx)("div",{className:"flex items-center ml-12",children:t}),i?(0,n.jsx)("h1",{className:"text-[#000000] text-16 leading-28 font-m",children:s}):(0,n.jsx)("h2",{className:"text-[#000000] text-16 leading-28 font-m",children:s})]}),a]})}},1689:function(e,t,s){"use strict";var n=s(85893);t.Z=function(e){e.title;var t=e.befor72,s=e.befor24,r=e.entry,a=e.longtermReserve,i=e.peakDays;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)("div",{className:"flex flex-col pr-16 grow",children:[(0,n.jsxs)("div",{className:"relative border-r-2 pr-16 border-gray-C4CAD3",children:[(0,n.jsx)("span",{className:"block text-14 font-m mb-8",children:"تا 72 ساعت مانده به شروع اقامت"}),(0,n.jsx)("span",{className:"block text-12 font-light mb-16 leading-24",children:t}),(0,n.jsx)("div",{className:"absolute -right-7 top-1/3 -translate-y-1/3 bg-black rounded-[50%] h-12 w-12"})]}),(0,n.jsxs)("div",{className:"relative border-r-2 pr-16 border-gray-C4CAD3",children:[(0,n.jsx)("span",{className:"block text-14 font-m mb-8",children:"کمتر از 72 ساعت مانده به شروع اقامت"}),(0,n.jsx)("span",{className:"block text-12 font-light mb-16 leading-24",children:s}),(0,n.jsx)("div",{className:"absolute -right-7 top-1/3 -translate-y-1/3 bg-black rounded-[50%] h-12 w-12"})]}),(0,n.jsxs)("div",{className:"relative border-r-2 pr-16 border-gray-C4CAD3",children:[(0,n.jsx)("span",{className:"block text-14 font-m mb-8",children:"روز شروع اقامت به بعد"}),(0,n.jsx)("span",{className:"block text-12 font-light mb-16 leading-[26px]",children:r}),(0,n.jsx)("div",{className:"absolute -right-7 top-1/3 -translate-y-1/3 bg-black rounded-[50%] h-12 w-12"})]}),(0,n.jsxs)("div",{className:"relative border-r-2 pr-16 border-gray-C4CAD3",children:[(0,n.jsx)("span",{className:"block text-14 font-m mb-8",children:"رزرو های بلند مدت (بیشتر از 14 روز)"}),(0,n.jsx)("span",{className:"block text-12 font-light mb-16 leading-24",children:a}),(0,n.jsx)("div",{className:"absolute -right-7 top-1/3 -translate-y-1/3 bg-black rounded-[50%] h-12 w-12"})]}),(0,n.jsxs)("div",{className:"relative border-r-2 pr-16 border-gray-C4CAD3",children:[(0,n.jsx)("span",{className:"block text-14 font-m mb-8",children:"ایام پیک (مانند تعطیلات رسمی، نوروز و بین تعطیلات)"}),(0,n.jsx)("span",{className:"block text-12 font-light",children:i}),(0,n.jsx)("div",{className:"absolute -right-7 top-1/3 -translate-y-1/3 bg-red-main rounded-[50%] h-12 w-12"})]})]})})})}},2034:function(e,t,s){"use strict";var n,r;s.d(t,{k:function(){return n}}),(r=n||(n={})).NORMAL_WEEKDAYS="weekdays",r.WEEK_ENDS="weekends",r.PEAK_DAYS="peaks",r.SPECIAL_DAYS="specials",r.EXTRA_GUESTS="extras",r.HOST_DISCOUNT="host_discount",r.WEBSITE_DISCOUNT="website_discount",r.RESERVE_PERIOD_DISCOUNT="period_discount",r.COUPON_DISCOUNT="coupon_discount"},85096:function(e,t,s){"use strict";var n,r;s.d(t,{A:function(){return n}}),(r=n||(n={})).CANCEL="cancel",r.EXPIRED="expired",r.HOST_APPROVAL="host_approval",r.SECOND_PAYMENT="second_payment",r.DONE="done"},60243:function(e,t,s){"use strict";var n,r,a,i;s.d(t,{h:function(){return n}}),(a=n||(n={})).PRODUCT="product",a.ROOM="room",(i=r||(r={})).BOOMGARDI="boomgardi",i.SUIT="suit",i.HOTEL="hotel"},18769:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return O},default:function(){return A}});var n=s(85893),r=s(47568),a=s(10253),i=s(70655),l=s(23765),o=s(2034),c=s(36492),d=s(25675),u=s.n(d),x=s(11163),m=s(67294),v=s(47300),h=s(59873),f=s(41664),p=s.n(f),g=s(24511),j=s(68289),b=s.n(j),N=s(1689);function _(e){var t=e.title;return(0,n.jsx)("p",{className:"text-18 leading-31 text-black font-m",children:t})}function y(e){var t=e.keyy,s=e.className;return(0,n.jsx)("p",{className:"text-16 leading-28 text-black font-l ".concat(s||""),children:t})}function D(e){var t=e.value,s=e.className;return(0,n.jsx)("p",{className:"text-16 leading-28 text-black font-m ".concat(s||""),children:t})}var k=m.forwardRef(function(e,t){var s,r,i,l=e.data,o=(0,a.Z)((0,m.useState)(null==l?void 0:l.resImage),2),c=o[0],d=o[1];return(0,n.jsx)("div",{id:"factorElement",ref:t,children:(0,n.jsxs)("div",{className:"flex flex-col gap-y-24 bg-white p-64",children:[(0,n.jsx)("div",{className:"flex items-center justify-between",children:(0,n.jsx)("p",{className:"text-24 leading-41 text-black font-b",children:"فاکتور رزرو اقامتگاه"})}),(0,n.jsxs)("div",{className:"grid grid-cols-14 gap-x-24 grow",children:[(0,n.jsxs)("div",{className:"col-span-4 border-1 border-solid border-primary-main rounded-tl-24 rounded-bl-24 flex rounded-tr-20 rounded-br-20",children:[(0,n.jsxs)("div",{className:"px-16 py-24 bg-primary-main rounded-tr-20 rounded-br-20 flex items-center gap-x-24",style:{writingMode:"vertical-rl"},children:[(0,n.jsx)(p(),{passHref:!0,href:"https://lidomatrip.com/",prefetch:!1,children:(0,n.jsx)(u(),{src:"/assets/logos/Logo-white-reverse-landscape.svg",width:32,height:131,alt:"لوگو لیدوماتریپ"})}),(0,n.jsx)("p",{className:"text-18 leading-31 text-white font-r",children:".پلتفرم یکپارچه رزرو آنلاین اقامتگاه در سراسر ایران، اقامت خوشی را برایتان آرزومند است"})]}),(0,n.jsxs)("div",{className:"px-16 py-24 grow",children:[(0,n.jsxs)("div",{className:"pb-24 px-24 border-b-1 border-solid border-b-gray-D2D2D7 mb-24",children:[(0,n.jsx)("div",{className:"mb-24",children:(0,n.jsx)(_,{title:"مشخصات رزرو"})}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-y-12",children:[(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"کد رزرو :"})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"تاریخ صدور فاکتور :"})}),(0,n.jsx)("div",{className:"col-span-1 w-fit px-12 py-4 bg-gray-F8F8F8 rounded-8",children:(0,n.jsx)(D,{value:l.reserveCode.toString()})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(D,{value:b()(new Date).format("jYYYY/jMM/jDD")})})]})]}),(0,n.jsxs)("div",{className:"pb-24 px-24 border-b-1 border-solid border-b-gray-D2D2D7 mb-24",children:[(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-y-12 mb-24",children:[(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"تاریخ ورود :"})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"تاریخ خروج :"})}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsxs)("div",{className:"pl-46 mb-4 flex items-center justify-between",children:[(0,n.jsx)(D,{value:l.entranceDate}),(0,n.jsx)("i",{className:"icon-CalendarFlash text-24 text-black"})]}),(0,n.jsx)("p",{className:"text-14 leading-24 text-black font-l",children:l.entranceDay})]}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)("div",{className:"mb-4",children:(0,n.jsx)(D,{value:l.exitDate})}),(0,n.jsx)("p",{className:"text-14 leading-24 text-black font-l",children:l.exitDay})]})]}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-y-12",children:[(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"تعداد نفرات :"})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"مدت اقامت :"})}),(0,n.jsxs)("div",{className:"col-span-1 flex items-center gap-x-4",children:[(0,n.jsx)(D,{value:"".concat(l.mainGuestsN," نفر")}),!!l.extraGuestsN&&(0,n.jsxs)("p",{className:"text-14 leading-20 text-gray-959FA7 font-r",children:["+ ",l.extraGuestsN," نفر اضافه"]})]}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(D,{value:"".concat(l.duration," شب")})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"mb-24",children:(0,n.jsx)(_,{title:"جزئیات هزینه"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(g.Z,{data:l.checkoutData||[],total:l.checkoutTotal,showTotal:!1,n_of_discounted_special_days:0,n_of_discounted_peak_days:0,n_of_discounted_weekends:0,n_of_discounted_normaldays:0,totalDiscountAmount:l.reserveTotalDiscountAmount}),(0,n.jsxs)("div",{className:"pt-12 mt-12 border-t-1 border-dashed border-t-gray-D2D2D7",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,n.jsx)("p",{className:"text-10 leading-18 font-r text-black",children:"مجموع صورتحساب :"}),(0,n.jsxs)("p",{className:"text-12 leading-21 font-m text-black",children:[null===(s=l.checkoutTotal)||void 0===s?void 0:s.toLocaleStr
1ing("en-US")," تومان"]})]}),!!l.guestCommission&&(0,n.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,n.jsx)("p",{className:"text-10 leading-18 font-r text-black",children:"کارمزد رزرو :"}),(0,n.jsxs)("p",{className:"text-12 leading-21 font-m text-black",children:[l.guestCommission.toLocaleString("en-US")," تومان"]})]}),!!l.guestCommission&&(0,n.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,n.jsx)("p",{className:"text-10 leading-18 font-r text-black",children:"مبلغ نهایی قابل پرداخت :"}),(0,n.jsxs)("p",{className:"text-12 leading-21 font-m text-black",children:[(l.checkoutTotal+l.guestCommission).toLocaleString("en-US")," تومان"]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,n.jsx)("p",{className:"text-10 leading-18 font-r text-black",children:"جمع مبلغ پرداخت شده :"}),(0,n.jsxs)("p",{className:"text-12 leading-21 font-m text-black",children:[null===(r=l.paidAmount)||void 0===r?void 0:r.toLocaleString("en-US")," تومان"]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,n.jsx)("p",{className:"text-10 leading-18 font-r text-black",children:"مبلغ مانده جهت تحویل به میزبان :"}),(0,n.jsxs)("p",{className:"text-12 leading-21 font-m text-black",children:[null===(i=l.remainingAmount)||void 0===i?void 0:i.toLocaleString("en-US")," تومان"]})]})]})]})]})]})]}),(0,n.jsxs)("div",{className:"col-span-10 flex flex-col",children:[(0,n.jsxs)("div",{className:"py-24 px-24 border-1 border-solid border-gray-D2D2D7 rounded-24 grid grid-cols-2 mb-16",children:[(0,n.jsxs)("div",{className:"col-span-1 border-l-1 border-dashed border-gray-D2D2D7",children:[(0,n.jsx)("div",{className:"mb-40",children:(0,n.jsx)(_,{title:"مشخصات میزبان"})}),(0,n.jsxs)("div",{className:"flex items-start gap-x-24",children:[(0,n.jsx)("div",{className:"w-64 h-64 shrink-0 relative",children:!!l.hostImage&&(0,n.jsx)(h.Z,{size:64,alt:"آواتار میزبان"})}),(0,n.jsxs)("div",{className:"grow grid grid-cols-2 gap-y-12",children:[(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"نام و نام خانوادگی :"})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"شماره موبایل :"})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(D,{value:l.hostName})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(D,{value:l.hostPhone,className:"text-info"})})]})]})]}),(0,n.jsxs)("div",{className:"col-span-1 pr-40",children:[(0,n.jsx)("div",{className:"mb-40",children:(0,n.jsx)(_,{title:"مشخصات مهمان"})}),(0,n.jsxs)("div",{className:"flex items-start gap-x-24",children:[(0,n.jsx)("div",{className:"w-64 h-64 shrink-0 relative",children:!!l.guestImage&&(0,n.jsx)(h.Z,{size:64,alt:"آواتار مهمان"})}),(0,n.jsxs)("div",{className:"grow grid grid-cols-2 gap-y-12",children:[(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"نام و نام خانوادگی :"})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(y,{keyy:"شماره موبایل :"})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(D,{value:l.guestName})}),(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)(D,{value:l.guestPhone,className:"text-info"})})]})]})]})]}),(0,n.jsxs)("div",{className:"py-24 px-24 border-1 border-solid border-gray-D2D2D7 rounded-24 grow",children:[(0,n.jsx)(_,{title:"مشخصات اقامتگاه"}),(0,n.jsxs)("div",{className:"mt-24 pb-16 border-b-1 border-dashed border-b-gray-D2D2D7 mb-24 flex items-start gap-x-12",children:[(0,n.jsx)("div",{className:"relative shrink-0 w-[249px] h-[249px]",children:!!l.resImage&&(0,n.jsx)(u(),{className:"rounded-12",src:c,fill:!0,style:{objectFit:"cover"},alt:"",priority:!0,onError:function(){return d("/assets/res-placeholder.jpg")}})}),(0,n.jsxs)("div",{className:"grow",children:[(0,n.jsxs)("div",{className:"flex gap-x-60 mb-12",children:[(0,n.jsxs)("div",{className:"shrink-0",children:[(0,n.jsx)(y,{keyy:"نام اقامتگاه :"}),(0,n.jsx)("div",{className:"mt-12",children:(0,n.jsx)(D,{value:l.resName})})]}),!!l.roomName&&(0,n.jsxs)("div",{className:"grow",children:[(0,n.jsx)(y,{keyy:"نام اتاق :"}),(0,n.jsx)("div",{className:"mt-12",children:(0,n.jsx)(D,{value:l.roomName})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(y,{keyy:"آدرس :"}),(0,n.jsxs)("div",{className:"mt-12 mb-12 text-14 leading-21 text-black font-r",children:[l.province," - ",l.city]}),(0,n.jsx)(D,{value:l.fullAddress})]})]})]}),(0,n.jsxs)("div",{className:"pb-16 border-b-1 border-dashed border-b-gray-D2D2D7 mb-24 flex gap-x-80",children:[!!l.bedRoomsN&&(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(y,{keyy:"تعداد اتاق خواب :"}),(0,n.jsx)("div",{className:"mt-12",children:(0,n.jsx)(D,{value:"".concat(l.bedRoomsN," اتاق خواب")})})]}),!!l.bedsN&&(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(y,{keyy:"تعداد تخت خواب :"}),(0,n.jsx)("div",{className:"mt-12",children:(0,n.jsx)(D,{value:"".concat(l.bedsN," تخت خواب")})})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(y,{keyy:"ظرفیت استاندارد :"}),(0,n.jsx)("div",{className:"mt-12",children:(0,n.jsx)(D,{value:"".concat(l.standardCapacity," نفر")})})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(y,{keyy:"حداکثر ظرفیت :"}),(0,n.jsx)("div",{className:"mt-12",children:(0,n.jsx)(D,{value:"".concat(l.maxCapacity," نفر")})})]})]}),(0,n.jsxs)("div",{className:"grid grid-cols-2",children:[(0,n.jsxs)("div",{className:"col-span-1 border-l-1 border-dashed border-l-gray-D2D2D7 pl-24",children:[(0,n.jsx)(_,{title:"مقررات اقامتگاه"}),(0,n.jsx)("div",{className:"mt-24",children:l.rules.map(function(e,t){if(e.text)return(0,n.jsxs)("div",{className:"flex items-center gap-x-8 mb-16 last:mb-0",children:[e.icon,(0,n.jsx)("p",{className:"text-14 leading-30 font-r text-zilgara",children:e.text})]},t)})})]}),(0,n.jsxs)("div",{className:"col-span-1 pr-24",children:[(0,n.jsx)(_,{title:"قوانین لغو رزرو"}),(0,n.jsx)("div",{className:"mt-24",children:(0,n.jsx)(N.Z,{befor24:"کسر مبلغ شب اول رزرو + 20% مابقی شب ها",befor72:"کسر 20% از مبلغ کل رزرو",entry:"کسر مبلغ دو شب اول رزرو (علاوه بر شب های سپری شده) و 20% از مابقی شب ها",longtermReserve:"تنها با توافق میزبان و کسر حداقل Û²Û°Ùª کل مبلغ رزرو",peakDays:"تنها با توافق میزبان و کسر حداقل Û²Û°Ùª\xa0کل\xa0مبلغ\xa0رزرو"})})]})]})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-x-16",children:[(0,n.jsx)("p",{className:"text-20 leading-34 text-black font-l",children:"شماره تماس اضطراری پشتیبانی سایت :"}),(0,n.jsx)("p",{className:"text-20 leading-34 text-black font-m",children:"09918003540"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-x-60",children:[(0,n.jsxs)(p(),{prefetch:!1,passHref:!0,className:"flex items-center gap-x-14",href:"mailto:[email protected]",children:[(0,n.jsx)("p",{className:"text-24 leading-40 text-black font-m",children:"[email protected]"}),(0,n.jsx)(u(),{src:"/assets/non-icomoon-icons/black-sms.svg",width:32,height:32,alt:""})]}),(0,n.jsxs)(p(),{passHref:!0,prefetch:!1,className:"flex items-center gap-x-14",href:"https://lidomatrip.com/",target:"_blank",children:[(0,n.jsx)("p",{className:"text-24 leading-40 text-black font-m",children:"www.lidomatrip.com"}),(0,n.jsx)(u(),{src:"/assets/non-icomoon-icons/web.svg",width:31,height:32,alt:""})]}),(0,n.jsxs)(p(),{prefetch:!1,passHref:!0,className:"flex items-center gap-x-14",href:"tel:02191070021",children:[(0,n.jsx)("p",{className:"text-36 leading-[60px] text-black font-b",children:"021-91070021"}),(0,n.jsx)(u(),{src:"/assets/non-icomoon-icons/black-call.svg",width:31,height:31,alt:""})]})]})]})]})})});k.displayName="Search";var E=s(49276),S=s(45551),w=s(68398),C=function(){var e,t,d,h,f,p,g,j,N,_,y,D,C,O,A,T=(0,m.useRef)(null),Y=(0,x.useRouter)(),I=(0,a.Z)((0,m.useState)(),2),P=I[0],R=I[1],L=(0,a.Z)((0,m.useState)(),2),U=L[0],M=L[1],Z=(0,a.Z)((0,m.useState)(0),2),F=Z[0],H=Z[1],G=(0,a.Z)((0,m.useState)(0),2),K=G[0],V=G[1],W=(0,a.Z)((0,m.useState)(!1),2),z=W[0],B=W[1],X=(e=(0,r.Z)(function(){var e,t,n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:B(!0),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,s.e(5443).then(s.t.bind(s,61120,23))];case 2:return[4,(0,r.sent().default)(document.getElementById("factorElement"),{allowTaint:!0,removeContainer:!0,backgroundColor:null,imageTimeout:15e3,logging:!1,scale:2,useCORS:!0})];case 3:return e=r.sent().toDataURL("image/png"),(t=document.createElement("a")).href=e,t.download="downloaded-image.png",document.body.appendChild(t),t.click(),(n=window.open())&&(n.document.body.innerHTML='<img src="'+e+'" alt="Downloaded Image">'),document.body.removeChild(t),[3,6];case 4:return r.sent(),S.Z.message([{type:w.L.ERROR,title:"دریافت فاکتور انجام نشد. دوباره تلاش کنید."}]),[3,6];case 5:return B(!1),[7];case 6:return[2]}})}),function(){return e.apply(this,arguments)}
1),q=(0,c.a)(["getReserve",null==Y?void 0:null===(t=Y.query)||void 0===t?void 0:t.id],function(){var e;return(0,l.Au)(+(null==Y?void 0:null===(e=Y.query)||void 0===e?void 0:e.id))},{enabled:!!(null==Y?void 0:null===(d=Y.query)||void 0===d?void 0:d.id)}),J=q.isLoading,Q=q.data;return(0,m.useEffect)(function(){if(Q&&(null==Q?void 0:Q.status)==="success"){var e,t,s,n,r=null==Q?void 0:Q.params;R(r.order_details);var a=r.order_details.prices.find(function(e){return o.k.NORMAL_WEEKDAYS in e&&void 0!==e[o.k.NORMAL_WEEKDAYS]}),i=r.order_details.prices.find(function(e){return o.k.WEEK_ENDS in e&&void 0!==e[o.k.WEEK_ENDS]}),l=r.order_details.prices.find(function(e){return o.k.PEAK_DAYS in e&&void 0!==e[o.k.PEAK_DAYS]}),c=r.order_details.prices.find(function(e){return o.k.SPECIAL_DAYS in e&&void 0!==e[o.k.SPECIAL_DAYS]}),d=r.order_details.prices.find(function(e){return o.k.EXTRA_GUESTS in e&&void 0!==e[o.k.EXTRA_GUESTS]}),u=r.order_details.prices.find(function(e){return o.k.HOST_DISCOUNT in e&&void 0!==e[o.k.HOST_DISCOUNT]}),x=r.order_details.prices.find(function(e){return o.k.WEBSITE_DISCOUNT in e&&void 0!==e[o.k.WEBSITE_DISCOUNT]}),m=r.order_details.prices.find(function(e){return o.k.COUPON_DISCOUNT in e&&void 0!==e[o.k.COUPON_DISCOUNT]}),v=r.order_details.prices.find(function(e){return o.k.RESERVE_PERIOD_DISCOUNT in e&&void 0!==e[o.k.RESERVE_PERIOD_DISCOUNT]});M([{label:"روزهای وسط هفته : ",valueOfKey:(null==a?void 0:a.weekdays)||0,numberOfDiscountedDays:0,key:"شب",per:(null==a?void 0:a.unit_price)||0,total:((null==a?void 0:a.weekdays)||0)*((null==a?void 0:a.unit_price)||0)},{label:"روزهای آخر هفته : ",valueOfKey:(null==i?void 0:i.weekends)||0,numberOfDiscountedDays:0,key:"شب",per:(null==i?void 0:i.unit_price)||0,total:((null==i?void 0:i.weekends)||0)*((null==i?void 0:i.unit_price)||0)},{label:"روزهای ایام پیک : ",valueOfKey:(null==l?void 0:l.peaks)||0,numberOfDiscountedDays:0,key:"شب",per:(null==l?void 0:l.unit_price)||0,total:((null==l?void 0:l.peaks)||0)*((null==l?void 0:l.unit_price)||0)},{label:"روزهـــای خـاص : ",valueOfKey:(null==c?void 0:c.specials)||0,numberOfDiscountedDays:0,key:"شب",per:(null==c?void 0:c.unit_price)||0,total:((null==c?void 0:c.specials)||0)*((null==c?void 0:c.unit_price)||0)},{label:"نرخ نفر اضافه : ",valueOfKey:(null==d?void 0:d.count)||0,numberOfDiscountedDays:0,key:"نفر",per:((null==d?void 0:d.extras)||0)*((null==d?void 0:d.unit_price)||0),total:(null==d?void 0:d.total_price)||0},{label:"تخفیف هدیه میزبان : ",fullValue:(null==u?void 0:u.host_discount)?"".concat(null==u?void 0:null===(e=u.host_discount)||void 0===e?void 0:e.toLocaleString("en-US")," تومان"):""},{label:"تخفیف مدت رزرو : ",fullValue:(null==v?void 0:v.period_discount)?"".concat(null==v?void 0:null===(t=v.period_discount)||void 0===t?void 0:t.toLocaleString("en-US")," تومان"):""},{label:"تخفیف هدیه سایت : ",fullValue:(null==x?void 0:x.website_discount)?"".concat(null==x?void 0:null===(s=x.website_discount)||void 0===s?void 0:s.toLocaleString("en-US"),"  تومان"):""},{label:"کد تخفیف : ",fullValue:(null==m?void 0:m.coupon_discount)?"".concat(null==m?void 0:null===(n=m.coupon_discount)||void 0===n?void 0:n.toLocaleString("en-US"),"  تومان"):""}]),H(((null==a?void 0:a.weekdays)||0)*((null==a?void 0:a.unit_price)||0)+((null==i?void 0:i.weekends)||0)*((null==i?void 0:i.unit_price)||0)+((null==l?void 0:l.peaks)||0)*((null==l?void 0:l.unit_price)||0)+((null==c?void 0:c.specials)||0)*((null==c?void 0:c.unit_price)||0)+((null==d?void 0:d.count)||0)*((null==d?void 0:d.extras)||0)*((null==d?void 0:d.unit_price)||0)-((null==u?void 0:u.host_discount)||0)-((null==x?void 0:x.website_discount)||0)-((null==m?void 0:m.coupon_discount)||0)-((null==v?void 0:v.period_discount)||0)),V(((null==v?void 0:v.period_discount)||0)+((null==m?void 0:m.coupon_discount)||0))}},[Q,null==P?void 0:P.extra_guests_count]),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center h-screen overflow-hidden bg-white pt-[80px] md:pt-[90px]",children:[(0,n.jsxs)("div",{className:"p-40 w-[310px] rounded-20 flex flex-col items-center gap-y-24 -translate-y-1/4",style:{background:"linear-gradient(180deg, #D9FFFB 0%, rgba(217, 255, 251, 0) 100%)"},children:[(0,n.jsx)(u(),{src:"/assets/non-icomoon-icons/PDF.svg",width:56,height:56,alt:""}),(0,n.jsx)("div",{className:"text-20 leading-36 font-m text-black",children:"جهت دریافت فاکتور رزرو بر روی دکمه زیر کلیک کنید"}),(0,n.jsx)(v.z,{onClick:function(){P&&U&&F&&X()},disabled:!!J||z,isLoading:z,loadingText:"در حال آماده‌سازی فاکتور",children:J?"درحال دریافت اطلاعات فاکتور":"دریافت فاکتور"})]}),!!P&&!!U&&!!F&&(0,n.jsx)("div",{style:{width:"1707px",height:"1318px"},className:"fixed left-0 right-0 z-[-1] bottom-0 translate-y-full",children:(0,n.jsx)(k,{ref:function(e){return T.current=e},data:{reserveCode:null==P?void 0:P.reference,entranceDate:(0,E.mW)(null==P?void 0:P.start_date),entranceDay:b()(null==P?void 0:P.start_date,"YYYY-MM-DD").format("dddd"),exitDate:(0,E.mW)(null==P?void 0:P.end_date),exitDay:b()(null==P?void 0:P.end_date,"YYYY-MM-DD").format("dddd"),mainGuestsN:null==P?void 0:P.guests_count,extraGuestsN:null==P?void 0:P.extra_guests_count,duration:null==P?void 0:P.days_count,checkoutData:U,checkoutTotal:F,reserveTotalDiscountAmount:K,guestCommission:null==P?void 0:P.guest_commission,remainingAmou
1nt:(null==P?void 0:P.remaining_amount)||0,paidAmount:(null==P?void 0:P.paid_amount)||0,hostName:null==P?void 0:P.host.name,hostPhone:null==P?void 0:P.host.phone,hostImage:null==P?void 0:P.host.avatar_url,guestName:null==P?void 0:P.guest.name,guestPhone:(null==P?void 0:P.guest.phone)||"",guestImage:null==P?void 0:P.guest.avatar_url,resImage:null==P?void 0:P.product.image_url,resName:null==P?void 0:P.product.name,roomName:(null==P?void 0:P.product.display_type)==="suit"?void 0:null==P?void 0:P.rooms[0].name,province:null==P?void 0:P.product.province,city:null==P?void 0:P.product.city,fullAddress:null==P?void 0:P.product.address,resLat:null==P?void 0:P.product.latitude,resLong:null==P?void 0:P.product.longitude,bedRoomsN:null==P?void 0:P.product.rooms_count,bedsN:null==P?void 0:P.product.beds_count,standardCapacity:null==P?void 0:P.product.capacity,maxCapacity:null==P?void 0:P.product.max_capacity,rules:[{icon:(0,n.jsx)("i",{className:"icon-BirthCertificate text-24 text-black"}),text:(null===(h=null==P?void 0:null===(f=P.product)||void 0===f?void 0:f.rules.find(function(e){return"مقررات اقامتگاه"===e.category&&"همراه داشتن مدارک محرمیت الزامیست"===e.name}))||void 0===h?void 0:h.value)==="بله"?"همراه داشتن شناسنامه زوجین (مدارک محرمیت) برای تحویل اقامتگاه الزامی است.":""},{icon:(0,n.jsx)("i",{className:"icon-Timer text-24 text-black"}),text:(null==P?void 0:P.product.checkin_from)&&(null==P?void 0:P.product.checkin_to)?" زمان تحویل از ".concat(null==P?void 0:P.product.checkin_from," تا ").concat(null==P?void 0:P.product.checkin_to):""},{icon:(0,n.jsx)("i",{className:"icon-Timer text-24 text-black"}),text:(null==P?void 0:P.product.checkout)?"زمان تخلیه : ".concat(null==P?void 0:P.product.checkout):""},{icon:(0,n.jsx)(u(),{src:"/assets/non-icomoon-icons/panje.svg",width:24,height:24,alt:"",style:{maxWidth:"100%",height:"auto"}}),text:(null===(p=null==P?void 0:null===(g=P.product)||void 0===g?void 0:g.rules.find(function(e){return"مقررات اقامتگاه"===e.category&&"ورود حیوان خانگی مجاز می باشد."===e.name}))||void 0===p?void 0:p.value)==="بله"?"":"آوردن حیوانات خانگی به این اقامتگاه ممنوع است."},{icon:(0,n.jsx)(u(),{src:"/assets/non-icomoon-icons/smoke.svg",width:24,height:24,alt:"",style:{maxWidth:"100%",height:"auto"}}),text:(null===(j=null==P?void 0:null===(N=P.product)||void 0===N?void 0:N.rules.find(function(e){return"مقررات اقامتگاه"===e.category&&"استعمال دخانیات مجاز می باشد"===e.name}))||void 0===j?void 0:j.value)==="بله"?"":"استعمال دخانیات مجاز نمی باشد"},{icon:(0,n.jsx)(u(),{src:"/assets/non-icomoon-icons/celebration.svg",width:24,height:24,alt:"",style:{maxWidth:"100%",height:"auto"}}),text:(null===(_=null==P?void 0:null===(y=P.product)||void 0===y?void 0:y.rules.find(function(e){return"مقررات اقامتگاه"===e.category&&"برگزاری مراسم مجاز می باشد."===e.name}))||void 0===_?void 0:_.value)==="بله"?"":"برگزاری مراسم مجاز نمی باشد"},{icon:(0,n.jsx)(u(),{src:"/assets/non-icomoon-icons/group_off.svg",width:24,height:24,alt:"",style:{maxWidth:"100%",height:"auto"}}),text:(null===(D=null==P?void 0:null===(C=P.product)||void 0===C?void 0:C.rules.find(function(e){return"مقررات اقامتگاه"===e.category&&"پذیرش مهمان در هر ساعت از شبانه روز"===e.name}))||void 0===D?void 0:D.value)==="بله"?"":"امکان پذیرش گروه های مجردی فراهم نمی باشد"},{icon:(0,n.jsx)("i",{className:"icon-Reserve text-24 text-black"}),text:(null==P?void 0:null===(O=P.product)||void 0===O?void 0:O.min_reservable_days)?"حداقل تعداد روز رزرو این اقامتگاه ".concat(null==P?void 0:null===(A=P.product)||void 0===A?void 0:A.min_reservable_days," روز است"):""}],cancelReserveTitle:null==P?void 0:P.product.cancel_rule,before_start_time:Number(null==P?void 0:P.product.before_start_time),full_return_time:Number(null==P?void 0:P.product.full_return_time),host_share_future_nights:Number(null==P?void 0:P.product.host_share_future_nights),host_share_past_nights:Number(null==P?void 0:P.product.host_share_past_nights),host_share_total_amount:Number(null==P?void 0:P.product.host_share_total_amount)}})})]})},O=!0,A=function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(C,{})})}},50534:function(e,t,s){"use strict";s.d(t,{M:function(){return r}});var n=s(36305);function r(e,t){var s=e.map(function(e){return e.format("jYYYY/jMM/jDD")}),r=t.map(function(e){for(var t=[],s=e[0].clone();s.isSameOrBefore(e[1]);)t.push(s.format("jYYYY/jMM/jDD")),s.add(1,"day");return t}).flat(1),a=new Set((0,n.Z)(s).concat((0,n.Z)(r)));return(0,n.Z)(a)}},49276:function(e,t,s){"use strict";s.d(t,{IS:function(){return l},K9:function(){return m},ZJ:function(){return i},_q:function(){return o},bP:function(){return d},mW:function(){return c},qK:function(){return u},wI:function(){return x}});var n=s(68289),r=s.n(n),a=s(50534);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(r());return e.format("jYYYY/jMM/jDD - hh:mm")}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(r());return e.format("HH:mm - jYYYY/jMM/jDD")}function o(e){return e.format("jYYYY/jMM/jDD")}function c(e){return o(r()(e))}function d(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(r());return e.format("jMMMM jYYYY")}(r()(e))}function u(e,t){return(0,a.M)([],[[e,t]]).length}r().loadPersian({dialect:"persian-modern"}),r().locale("fa-IR");var x=function(e){return e||(e=new(r())),r()(e).startOf("jMonth").format("dd")},m=function(e){e||(e=new(r()));var t=c(e).split("/"),s=t[0],n=t[1];return r().jDaysInMonth(Number(s),Number(n)-1)}},54981:function(e,t,s){"use strict";s.d(t,{y:function(){return a}});var n=s(68289),r=s.n(n);function a(e){return r()(e,"jYYYY/jMM/jDD").format("YYYY-MM-DD")}}}
1,function(e){e.O(0,[4885,8289,1265,9774,2888,179],function(){return e(e.s=23696)}),_N_E=e.O()}]);

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.