1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5211,6853],{90956:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reservations/[id]",function(){return l(79352)}])},46178:function(e,n,l){"use strict";var t=l(85893);n.Z=function(e){var n=e.headerTitle,l=e.hasGoBack,i=e.onBackClick,s=e.leftEl,d=e.containerClassname;return(0,t.jsxs)("div",{className:"\n py-16 px-12 flex items-center justify-center relative bg-white\n ".concat(d||"","\n "),children:[(0,t.jsx)("p",{className:"text-18 font-m text-black leading-32",children:n}),(void 0===l||l)&&(0,t.jsxs)("div",{className:"flex items-center right-12 md:right-auto md:left-12 absolute cursor-pointer",onClick:function(){i&&i()},children:[(0,t.jsx)("i",{className:"icon-Back text-26 md:hidden"}),(0,t.jsx)("i",{className:"icon-Close text-26 hidden md:block"})]}),!!s&&(0,t.jsx)("div",{className:"flex items-center left-12 absolute cursor-pointer",children:s})]})}},46853:function(e,n,l){"use strict";l.r(n);var t=l(85893),i=l(67294),s=l(46178);n.default=function(e){var n=e.onClose,l=e.open,d=e.headerTitle,a=e.children,o=e.modalClassname,r=e.headerExtraEl,c=e.headerContainerClassname,u=e.bodyContainerClassname,v=e.customOnBackClick,m=e.headerHasGoBackBtn,x=e.modalHasHeader,h=e.canExitOnOutsideClick,f=void 0===h||h,p=e.modalHeaderWrapper,b=e.backdropClassname;return(0,i.useEffect)(function(){return l?(document.body.classList.add("overflow-hidden"),document.body.style.height="100vh"):(document.body.classList.remove("overflow-hidden"),document.body.style.height=""),function(){document.body.classList.remove("overflow-hidden"),document.body.style.height=""}},[l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"left-0 bottom-0 z-[6] fixed top-0 right-0 bg-[rgba(24,39,58,0.7)] ".concat(b||""),onClick:function(){f&&n()}}),(0,t.jsxs)("div",{className:"\n h-screen md:h-auto md:max-w-[80%] md:max-h-[80%]\n fixed top-0 md:top-1/2 right-0 md:right-1/2 md:translate-x-1/2 md:-translate-y-1/2\n left-0 md:left-auto bottom-0 md:bottom-auto\n bg-white z-[11] overflow-y-auto md:shadow-[0px_8px_32px_rgba(24,39,58,0.15)] md:rounded-20\n ".concat(o||"","\n "),children:[!!(void 0===x||x)&&(0,t.jsxs)("div",{className:"fixed md:sticky right-0 left-0 top-0 bg-white z-[6] ".concat(c||""),children:[(0,t.jsx)(s.Z,{containerClassname:p,hasGoBack:m,headerTitle:d||"",onBackClick:function(){v?v():n()}}),!!r&&r]}),(0,t.jsx)("div",{className:"px-20 pb-40 pt-80 md:pt-0 ".concat(u||""),children:a})]})]})}},79352:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return en}});var t=l(85893),i=l(10253),s=l(24511),d=l(51687),a=l(47300),o=l(64427),r=l(47416),c=l(67294),u=l(77392),v=l(36492),m=l(48228),x=l(12486),h=l(23765),f=l(11163),p=l(2034),b=l(93695),j=l(63871),_=l(68289),g=l.n(_),N=l(49276),y=l(91879),k=l(89789),C=l(62384),S=l(85096),E=l(85945),D=l(62236),A=l(40186),w=l(2534),O=l(68398),I=l(45551),Z=function(e){var n=e.handleSmoothClose,l=e.reasonsList,s=e.reserveId,d=(0,i.Z)((0,c.useState)(),2),o=d[0],r=d[1],u=(0,i.Z)((0,c.useState)(""),2),v=u[0],x=u[1],f=(0,E.NL)(),p=(0,m.D)(function(){var e=h.iJ.find(function(e){return e.order===o});return(0,h.Z9)({reserveId:s,reason:null==e?void 0:e.key,desc:v})},{onSuccess:function(e){(null==e?void 0:e.status)==="success"?((0,D.J)(f),n(),I.Z.message([{type:O.L.ERROR,title:"Ø¯Ø±Ø®ÙØ§Ø³Øª Ø±Ø²Ø±Ù ØªÙØ³Ø· Ø´Ù
ا ÙØºÙ شد"}])):I.Z.message([{type:O.L.ERROR,title:"Ù
Ø´Ú©ÙÛ Ø¯Ø± ÙØºÙ Ø¯Ø±Ø®ÙØ§Ø³Øª رخ داد."}])}});return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{children:l.map(function(e,n){return(0,t.jsx)("div",{className:"pb-12 border-b-1 border-solid border-[#1C345442] mb-12 last:pb-0 last:border-b-none last:mb-0",children:(0,t.jsx)(A.Y,{name:"",checked:o===e.order,label:e.text,value:e.order.toString(),onChange:function(e){r(Number(e.target.value)),x("")},wrapperClassnames:"",look:"checked"})},n)})}),o===l.length&&(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsx)(w.g,{name:"manualCancelReason",customValue:v||"",customOnChange:function(e){return x(e)},rows:3,placeholder:"ÙØ·Ùا٠دÙÛ٠رد Ø¯Ø±Ø®ÙØ§Ø³Øª را Ø´Ø±Ø Ø¯ÙÛØ¯"})}),(0,t.jsxs)("div",{className:"grid grid-cols-6 gap-x-12 mt-24",children:[(0,t.jsx)("div",{className:"col-span-2",children:(0,t.jsx)(a.z,{color:"grey",isFullWidth:!0,onClick:n,children:"Ø§ÙØµØ±Ø§Ù"})}),(0,t.jsx)("div",{className:"col-span-4",children:(0,t.jsx)(a.z,{color:"error",variant:"outlined",isFullWidth:!0,disabled:!o,isLoading:p.isLoading,onClick:function(){return p.mutate()},children:"رد Ø¯Ø±Ø®ÙØ§Ø³Øª"})})]})]})},L=l(25675),R=l.n(L),T=l(34649),P=l(37586),F=l(49754),W=l(11898),U=l(38919),z=l(92752),B=l(36305),H=l(41664),Y=l.n(H),K=function(e){var n=e.residenceId,l=e.residenceName,i=e.residenceCode,s=(e.residenceImage,e.price),d=e.isSelected,o=e.onAdd,r=e.onRemove;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"w-full h-[214px] p-12 relative rounded-tr-16 rounded-tl-16",style:{background:"url('/assets/tmp/residence-1.webp')",objectFit:"cover"},children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"flex items-center justify-end",children:(0,t.jsxs)(Y(),{passHref:!0,prefetch:!1,href:"/residences/".concat(n,"/detail
1s"),className:"p-5 pl-12 text-white flex items-center gap-x-5 bg-black rounded-50 bg-opacity-80 cursor-pointer",children:[(0,t.jsx)("i",{className:"icon-See text-18"}),(0,t.jsx)("span",{className:"text-12 leading-21",children:"Ù
Ø´Ø§ÙØ¯Ù"})]})})}),(0,t.jsx)("div",{className:"z-2",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-x-8",children:[(0,t.jsx)("div",{className:"text-14 leading-24 text-white OnlyOneLineAndEndWithElipsis",children:l}),(0,t.jsx)("div",{className:"shrink-0 flex justify-end",children:(0,t.jsxs)("p",{className:"rounded-50 bg-white text-12 leading-21 text-black whitespace-nowrap px-12 py-2 flex items-center justify-center w-fit-content",children:["کد Ø§ÙØ§Ù
تگا٠: ",i]})})]})})]}),(0,t.jsx)("div",{className:"h-[107px] absolute w-full bottom-0 right-0",style:{background:"linear-gradient(0deg, #000000 7%, rgba(0, 0, 0, 0.52) 49.82%, rgba(0, 0, 0, 0.0001) 80.84%)"}})]}),(0,t.jsxs)("div",{className:"p-12 border-1 border-solid border-[#1C345442] border-t-none rounded-br-12 rounded-bl-12",children:[(0,t.jsxs)("p",{className:"mb-16 text-16 leading-28 font-m text-black",children:["ÙÛÙ
ت ÙØ± شب از : ",s.toLocaleString("en-US")," تÙÙ
اÙ"]}),d?(0,t.jsx)(a.z,{color:"error",isFullWidth:!0,variant:"outlined",onClick:r,children:"ØØ°Ù کرد٠از ÙÛØ³Øª Ù¾ÛØ´ÙÙØ§Ø¯Ø§Øª"}):(0,t.jsx)(a.z,{color:"secondary",isFullWidth:!0,onClick:o,children:"Ø§ÙØ²ÙØ¯Ù Ø¨Ù Ù¾ÛØ´ÙÙØ§Ø¯Ø§Øª"})]})]})},G=l(46853),M=function(e){var n=e.isModalOpen,l=e.handleClose,s=e.reserveId,d=(0,E.NL)(),o=(0,i.Z)((0,c.useState)([]),2),r=o[0],u=o[1],x=(0,i.Z)((0,c.useState)([]),2),f=x[0],p=x[1],b=(0,v.a)(["getAlternativeResidencesList"],function(){return(0,h.ve)({reserveId:s})},{enabled:!!s}),_=b.isLoading,g=(b.isSuccess,b.data);(0,c.useEffect)(function(){if(g){if((null==g?void 0:g.status)==="success"){var e;u(null==g?void 0:null===(e=g.params)||void 0===e?void 0:e.residences_list)}else I.Z.message([{type:O.L.ERROR,title:"Ù
Ø´Ú©ÙÛ Ø¯Ø± سÙ
ت Ø³Ø±ÙØ± رخ داد. ÙØ·Ùا Ù
جددا ØªÙØ§Ø´ Ú©ÙÛØ¯."}])}},[g]);var N=(0,m.D)(function(){return(0,h.Xb)({reserveId:s,residencesIDs:f.map(function(e){return e.id})})},{onSuccess:function(e){(null==e?void 0:e.status)==="success"&&((0,D.J)(d),I.Z.message([{type:O.L.SUCCESS,title:"Ù¾ÛØ´ÙÙØ§Ø¯Ø§Øª Ø´Ù
ا با Ù
ÙÙÙÛØª ارسا٠شد"}]),l())}});return(0,t.jsx)(G.default,{headerTitle:"Ù¾ÛØ´ÙÙØ§Ø¯ جاÛگزÛÙÛ",onClose:function(){l()},open:n,bodyContainerClassname:"md:!pb-0",modalClassname:"md:!w-[380px] md:max-h-[90%]",children:(0,t.jsx)("div",{className:"",children:_?(0,t.jsx)(j.O,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pb-[80px] md:pb-0",children:null==r?void 0:r.map(function(e,n){return(0,t.jsx)("div",{className:"mb-16 last:mb-0",children:(0,t.jsx)(K,{residenceCode:e.reference,residenceId:e.id,residenceName:e.name,residenceImage:e.image_url,price:e.price,isSelected:!!f.find(function(n){return n.id===e.id}),onAdd:function(){return p(function(n){return(0,B.Z)(n).concat([e])})},onRemove:function(){return p(function(n){return n.filter(function(n){return n.id!==e.id})})}})},e.id)})}),(0,t.jsxs)("div",{className:"bg-white py-16 px-20 md:px-0 fixed md:sticky bottom-0 right-0 left-0 z-2",children:[(0,t.jsxs)("p",{className:"text-14 leading-24 text-zilgara font-r mb-16 text-center",children:[f.length," Ø§ÙØ§Ù
ØªÚ¯Ø§Ù Ø¬ÙØª Ù¾ÛØ´ÙÙØ§Ø¯ جاÛگزÛÙÛ Ø§ÙØªØ®Ø§Ø¨ شد٠است"]}),(0,t.jsx)(a.z,{isFullWidth:!0,disabled:!f.length,isLoading:N.isLoading,onClick:function(){return N.mutate()},children:f.length?"Ø§Ø±Ø³Ø§Ù Ù¾ÛØ´ÙÙØ§Ø¯Ø§Øª جاÛگزÛÙÛ":"ØØ¯Ø§ÙÙ ÛÚ© Ø§ÙØ§Ù
تگا٠را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯"})]})]})})})},V=l(97865),q=l(77087),Q=l(63245);function X(e){var n=e.icon,l=e.title,i=e.desc;return(0,t.jsxs)("div",{className:"flex items-center gap-x-12",children:[(0,t.jsx)("div",{className:"flex items-center",children:n}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-12 leading-16 font-l text-gray-959FA7 mb-12",children:l}),(0,t.jsx)("p",{className:"text-16 leading-24 font-r text-black",children:i})]})]})}var J=function(){(0,x.e)();var e,n,l,_,E,D,A,w,L,B,H,K,G,J,$,ee,en,el=(0,f.useRouter)(),et=(0,i.Z)((0,c.useState)(),2),ei=et[0],es=et[1],ed=(0,i.Z)((0,c.useState)(),2),ea=ed[0],eo=ed[1],er=(0,i.Z)((0,c.useState)(0),2),ec=er[0],eu=er[1],ev=(0,i.Z)((0,c.useState)([]),2),em=ev[0],ex=ev[1],eh=(0,y.Gr)(),ef=(0,i.Z)((0,c.useState)(0),2),ep=ef[0],eb=ef[1],ej=(0,i.Z)((0,c.useState)(),2);ej[0],ej[1];var e_=(0,i.Z)((0,c.useState)(),2);e_[0],e_[1];var eg=(0,Q.pA)(null==ei?void 0:ei.state,null==ei?void 0:ei.end_date),eN=(0,c.useRef)(null),ey=(0,i.Z)((0,c.useState)(null),2),ek=ey[0],eC=ey[1],eS=(0,i.Z)((0,c.useState)(!1),2),eE=eS[0],eD=eS[
11],eA=(0,i.Z)((0,c.useState)(!1),2),ew=eA[0],eO=eA[1],eI=(0,i.Z)((0,c.useState)(!1),2),eZ=eI[0],eL=eI[1],eR=(0,i.Z)((0,c.useState)(!1),2),eT=eR[0],eP=eR[1],eF=(0,i.Z)((0,c.useState)(!1),2);eF[0],eF[1];var eW=(0,i.Z)((0,c.useState)(!1),2),eU=eW[0],ez=eW[1],eB=(0,i.Z)((0,c.useState)(!1),2),eH=eB[0],eY=eB[1];(0,y.Gr)();var eK=(0,v.a)(["getReserve",null==el?void 0:null===(e=el.query)||void 0===e?void 0:e.id],function(){var e;return(0,h.Au)(+(null==el?void 0:null===(e=el.query)||void 0===e?void 0:e.id))},{enabled:!!(null==el?void 0:null===(n=el.query)||void 0===n?void 0:n.id)}),eG=eK.isLoading,eM=(eK.isSuccess,eK.data),eV=eK.refetch,eq=(0,c.useMemo)(function(){return(0,h.P0)(null==ei?void 0:ei.state,null==ei?void 0:ei.cancelled_by)},[null==ei?void 0:ei.state,null==ei?void 0:ei.cancelled_by]);return(0,m.D)(function(){return(0,h.aP)({order_id:null==ei?void 0:ei.id})},{onSuccess:function(e){(null==e?void 0:e.status)==="success"?(eV(),I.Z.message([{type:O.L.SUCCESS,title:"کد تخÙÛ٠با Ù
ÙÙÙÛØª ØØ°Ù شد."}])):I.Z.message([{type:O.L.ERROR,title:(null==e?void 0:e.err_msg)||O.i}])}}),(0,c.useEffect)(function(){if(eM){if((null==eM?void 0:eM.status)==="success"){var e,n,l,t,i=null==eM?void 0:eM.params,s=i.order_details.prices.find(function(e){return p.k.NORMAL_WEEKDAYS in e&&void 0!==e[p.k.NORMAL_WEEKDAYS]}),d=i.order_details.prices.find(function(e){return p.k.WEEK_ENDS in e&&void 0!==e[p.k.WEEK_ENDS]}),a=i.order_details.prices.find(function(e){return p.k.PEAK_DAYS in e&&void 0!==e[p.k.PEAK_DAYS]}),o=i.order_details.prices.find(function(e){return p.k.SPECIAL_DAYS in e&&void 0!==e[p.k.SPECIAL_DAYS]}),r=i.order_details.prices.find(function(e){return p.k.EXTRA_GUESTS in e&&void 0!==e[p.k.EXTRA_GUESTS]}),c=i.order_details.prices.find(function(e){return p.k.HOST_DISCOUNT in e&&void 0!==e[p.k.HOST_DISCOUNT]});i.order_details.prices.find(function(e){return p.k.WEBSITE_DISCOUNT in e&&void 0!==e[p.k.WEBSITE_DISCOUNT]}),i.order_details.prices.find(function(e){return p.k.COUPON_DISCOUNT in e&&void 0!==e[p.k.COUPON_DISCOUNT]});var u=i.order_details.prices.find(function(e){return p.k.RESERVE_PERIOD_DISCOUNT in e&&void 0!==e[p.k.RESERVE_PERIOD_DISCOUNT]});eo([{label:"Ø±ÙØ²ÙØ§Û ÙØ³Ø· ÙÙØªÙ : ",valueOfKey:(null==s?void 0:s.weekdays)||0,numberOfDiscountedDays:0,key:"شب",per:(null==s?void 0:s.unit_price)||0,total:((null==s?void 0:s.weekdays)||0)*((null==s?void 0:s.unit_price)||0)},{label:"Ø±ÙØ²ÙØ§Û Ø¢Ø®Ø± ÙÙØªÙ : ",valueOfKey:(null==d?void 0:d.weekends)||0,numberOfDiscountedDays:0,key:"شب",per:(null==d?void 0:d.unit_price)||0,total:((null==d?void 0:d.weekends)||0)*((null==d?void 0:d.unit_price)||0)},{label:"Ø±ÙØ²ÙØ§Û Ø§ÛØ§Ù
Ù¾ÛÚ© : ",valueOfKey:(null==a?void 0:a.peaks)||0,numberOfDiscountedDays:0,key:"شب",per:(null==a?void 0:a.unit_price)||0,total:((null==a?void 0:a.peaks)||0)*((null==a?void 0:a.unit_price)||0)},{label:"Ø±ÙØ²ÙÙÙÙØ§Û Ø®ÙØ§Øµ : ",valueOfKey:(null==o?void 0:o.specials)||0,numberOfDiscountedDays:0,key:"شب",per:(null==o?void 0:o.unit_price)||0,total:((null==o?void 0:o.specials)||0)*((null==o?void 0:o.unit_price)||0)},{label:"ÙØ±Ø® ÙÙØ± اضاÙÙ : ",valueOfKey:(null==r?void 0:r.count)||0,numberOfDiscountedDays:0,key:"ÙÙØ±",per:((null==r?void 0:r.extras)||0)*((null==r?void 0:r.unit_price)||0),total:(null==r?void 0:r.total_price)||0},{label:"تخÙÛÙ ÙØ¯ÛÙ Ù
ÛØ²Ø¨Ø§Ù : ",fullValue:(null==c?void 0:c.host_discount)?"".concat(null==c?void 0:null===(e=c.host_discount)||void 0===e?void 0:e.toLocaleString("en-US")," تÙÙ
اÙ"):""},{label:"تخÙÛÙ Ù
دت رزر٠: ",fullValue:(null==u?void 0:u.period_discount)?"".concat(null==u?void 0:null===(n=u.period_discount)||void 0===n?void 0:n.toLocaleString("en-US")," تÙÙ
اÙ"):""}]),eu(null!==(t=null===(l=i.order_details)||void 0===l?void 0:l.host_bill_total)&&void 0!==t?t:((null==s?void 0:s.weekdays)||0)*((null==s?void 0:s.unit_price)||0)+((null==d?void 0:d.weekends)||0)*((null==d?void 0:d.unit_price)||0)+((null==a?void 0:a.peaks)||0)*((null==a?void 0:a.unit_price)||0)+((null==o?void 0:o.specials)||0)*((null==o?void 0:o.unit_price)||0)+((null==r?void 0:r.count)||0)*((null==r?void 0:r.extras)||0)*((null==r?void 0:r.unit_price)||0)-((null==c?void 0:c.host_discount)||0)-((null==u?void 0:u.period_discount)||0)),eb(((null==u?void 0:u.period_discount)||0)+((null==c?void 0:c.host_discount)||0)),ex(i.faqs),es(i.order_details)}else I.Z.message([{type:O.L.ERROR,title:(null==eM?void 0:eM.err_msg)||O.i}])}}
1,[eM,null==ei?void 0:ei.extra_guests_count]),(0,c.useEffect)(function(){return(null==ei?void 0:ei.expiry_date)&&(eN.current=setInterval(function(){var e=(0,T.getTimeDiff)(Date.now(),new Date((null==ei?void 0:ei.expiry_date)||"").getTime());0===e?(eV(),eN.current&&clearInterval(eN.current)):eC(e)},1e3)),function(){eN.current&&clearInterval(eN.current)}},[null==ei?void 0:ei.expiry_date]),eG?(0,t.jsx)(j.O,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"pt-84 md:pt-[115px] CustomContainer",children:[(0,t.jsxs)("div",{className:"grid grid-cols-14 md:gap-x-40",children:[(0,t.jsxs)("div",{className:"col-span-full md:col-span-8",children:[(0,t.jsx)("div",{className:"mb-24",children:!!(null==ei?void 0:ei.state)&&(0,t.jsx)(C.Z,{state:null==ei?void 0:ei.state,tempState:null==ei?void 0:ei.temp_state,startDate:ei.start_date,endDate:ei.end_date})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"pb-16 md:hidden",children:!!ei&&(0,t.jsx)(u.Z,{isFromDetailsPage:!0,state:null==ei?void 0:ei.state,residenceName:null==ei?void 0:ei.product.name,reserveCode:null==ei?void 0:ei.reference,hostIncome:null==ei?void 0:ei.host_share,startDate:(0,N.mW)(null==ei?void 0:ei.start_date),endDate:(0,N.mW)(null==ei?void 0:ei.end_date),mainGuestsN:null==ei?void 0:ei.guests_count,extraGuestsN:null==ei?void 0:ei.extra_guests_count,reserveId:null==ei?void 0:ei.id,residenceId:null==ei?void 0:ei.product.id,residenceImage:"".concat(null==ei?void 0:ei.product.image_url),expiryDate:null==ei?void 0:ei.expiry_date,voucherUrl:null==ei?void 0:ei.voucher_url,cancelledBy:null==ei?void 0:ei.cancelled_by,cancelDesc:null==ei?void 0:ei.cancel_desc,cancelReason:null==ei?void 0:ei.cancel_reason,suggestedResidencesList:(null==ei?void 0:ei.alters)||[],coordinatedWith:null==ei?void 0:ei.coordinated_with,setShowSendAltersList:eP,residenceCity:null==ei?void 0:ei.product.city,rooms:null==ei?void 0:ei.rooms,displayType:ei.product.display_type})}),(0,t.jsx)("div",{className:"hidden md:block px-4 pb-24 border-b-1 border-solid border-b-gray-CACFD3 mb-24",children:(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[!!(null==eq?void 0:eq.iconPathInDesktop)&&(0,t.jsx)(R(),{src:null==eq?void 0:eq.iconPathInDesktop,width:48,height:48,alt:""}),(0,t.jsx)("p",{className:"text-20 leading-28 font-m mt-4 mb-16 ".concat(null==eq?void 0:eq.textColor),children:null==eq?void 0:eq.name}),(0,t.jsx)("p",{className:"text-error-light",children:(null===(l=h.Q6.find(function(e){return e.key===(null==ei?void 0:ei.cancel_desc)})||h.iJ.find(function(e){return e.key===(null==ei?void 0:ei.cancel_reason)}))||void 0===l?void 0:l.text)||(null==ei?void 0:ei.cancel_desc)||(null==ei?void 0:ei.cancel_reason)}),(0,t.jsx)("p",{className:"text-14 leading-20 font-l text-black mb-24 text-center",children:null==eq?void 0:eq.stateDescription_ForHost}),((null==ei?void 0:ei.state)===S.A.HOST_APPROVAL||(null==ei?void 0:ei.state)===S.A.SECOND_PAYMENT)&&!!(null==ei?void 0:ei.expiry_date)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-14 leading-20 font-r text-black mb-12",children:"Ù
ÙÙØª پاسخ ب٠اÛÙ Ø¯Ø±Ø®ÙØ§Ø³Øª"}),(0,t.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,t.jsx)("div",{className:"w-40 h-40 bg-[rgba(118,118,128,0.12)] rounded-8 text-16 leading-24 font-r text-black flex items-center justify-center",children:null==ek?void 0:ek.split(":")[2]}),(0,t.jsx)("span",{className:"text-16 leading-28 font-m text-black",children:":"}),(0,t.jsx)("div",{className:"w-40 h-40 bg-[rgba(118,118,128,0.12)] rounded-8 text-16 leading-24 font-r text-black flex items-center justify-center",children:null==ek?void 0:ek.split(":")[1]}),(0,t.jsx)("span",{className:"text-16 leading-28 font-m text-black",children:":"}),(0,t.jsx)("div",{className:"w-40 h-40 bg-[rgba(118,118,128,0.12)] rounded-8 text-16 leading-24 font-r text-black flex items-center justify-center",children:null==ek?void 0:ek.split(":")[0]})]})]}),(null==ei?void 0:ei.state)===S.A.DONE&&(0,t.jsx)("div",{className:"grow md:w-[318px] mt-16",children:(0,t.jsx)(P.Z,{reserveId:ei.id,endDate:ei.end_date})})]})})]}),!!ec&&(0,t.jsxs)("div",{className:"md:hidden",children:[(0,t.jsx)(o.Z,{}),(0,t.jsx)("div",{className:"py-16",children:(0,t.jsx)(s.Z,{data:ea||[],total:ec,n_of_discounted_special_days:0,n_of_discounted_peak_days:0,n_of_discounted_weekends:0,n_of_discounted_normaldays:0,totalDiscountAmount:ep,hostShare:null==eM?void 0:null===(_=eM.params)||void 0===_?void 0:null===(E=_.order_details)||void 0===E?void 0:E.host_share,websiteShare:null==eM?void 0:null===(D=eM.params)||void 0===D?void 0:null===(A=D.order_details)||void 0===A?void 0:A.website_share,vatAmount:null==eM?void 0:null===(w=eM.params)||void 0===w?void 0:null===(L=w.order_details)||void 0===L?void 0:L.vat_amount})})]}),(0,t.jsxs)("div",{className:"hidden md:block pb-24 border-b-1 border-solid border-b-gray-CACFD3 mb-24",children:[(0,t.jsx)("div",{className:"mb-16",children:(0,t.jsx)(X,{icon:(0,t.jsx)("i",{className:"icon-Calendar text-24 text-black"}),title:"ØªØ§Ø±ÛØ® Ø³ÙØ±",desc:"".concat((0,N.mW)(null==ei?void 0:ei.start_date)," تا ").concat((0,N.mW)(null==ei?void 0:ei.end_date))})}),(0,t.jsx)("div",{className:"mb-16",children:(0,t.jsx)(X,{icon:(0,t.jsx)("i",{className:"icon-Profile text-24 text-black"}),title:"تعداد ÙÙØ±Ø§Øª",desc:"".concat(null==ei?void 0:ei.guests_count," ÙÙØ± ").concat((null==ei?void 0:ei.extra_guests_count)?" + ".concat(null==ei?void 0:ei.extra_guests_count," ÙÙØ± اضاÙÙ"):"")})}),(0,t.jsx)("div",{children:(0,t.jsx)(X,{icon:(0,t.jsx)("i",{className:"icon-BirthCertificate text-24 text-black"}),title:"Ù
شخصات Ù
ÙÙ
اÙ",desc:"".concat(null==ei?void 0:ei.guest.
1name," ").concat(eg?null==ei?void 0:ei.guest.phone:"*********09")})})]}),(0,t.jsx)(o.Z,{className:"md:hidden"}),(0,t.jsxs)("div",{className:"py-24 md:!pt-0 md:border-b-1 md:border-solid md:border-b-gray-CACFD3 md:mb-24",children:[(0,t.jsx)(r.Z,{icon:(0,t.jsx)("i",{className:"icon-Profile text-20"}),title:"Ù
شخصات Ù
ÙÙ
اÙ",containerClassname:"mb-24"}),(0,t.jsxs)("div",{className:"flex items-center gap-x-24",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-12",children:[(0,t.jsx)("i",{className:"icon-GuestProfile text-18"}),(0,t.jsx)("p",{className:"text-14 text-black leading-18",children:null==ei?void 0:ei.guest.name})]}),(0,t.jsxs)("div",{className:"flex items-center gap-x-12",children:[(0,t.jsx)("i",{className:"icon-Phone text-18"}),(0,t.jsx)("p",{className:"text-14 text-black leading-18",children:eg?null==ei?void 0:ei.guest.phone:"*********09"})]})]}),((null==ei?void 0:ei.state)===S.A.HOST_APPROVAL||(null==ei?void 0:ei.state)===S.A.SECOND_PAYMENT)&&(0,t.jsx)("p",{className:"text-12 leading-21 text-warning font-r mt-12",children:"( Ø§Ø·ÙØ§Ø¹Ø§Øª کاÙ
٠پس از ÙØ·Ø¹Û Ø´Ø¯Ù Ø±Ø²Ø±Ù ÙØ§Ø¨Ù Ù
Ø´Ø§ÙØ¯Ù Ø®ÙØ§Ùد Ø¨ÙØ¯ )"}),(null==ei?void 0:ei.state)===S.A.CANCEL||(null==ei?void 0:ei.state)===S.A.EXPIRED?null:(0,t.jsx)("div",{className:"mt-18 md:mt-24 md:max-w-[224px]",children:eg?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Q,{href:"tel:".concat(null==ei?void 0:ei.guest.phone),color:"secondary",isFullWidth:!0,rightIcon:(0,t.jsx)("i",{className:"icon-Phone text-24"}),children:"تÙ
اس با Ù
ÙÙ
اÙ"}),(0,t.jsxs)("p",{className:"text-11 leading-18 text-gray-959FA7 mt-8 text-center",children:["تÙ
اس با Ù
ÙÙ
ا٠",Q.y7]})]}):(0,t.jsx)(a.Q,{href:(null==ei?void 0:ei.conversation_public_id)?"/chats?c=".concat(ei.conversation_public_id):"/chats",color:"secondary",isFullWidth:!0,rightIcon:(0,t.jsx)("i",{className:"icon-message text-24"}),children:"ÚØª Ø¢ÙÙØ§Û٠با Ù
ÙÙ
اÙ"})})]}),(0,t.jsx)(o.Z,{className:"md:hidden"}),(0,t.jsxs)("div",{className:"py-24 md:!pt-0 md:border-b-1 md:border-solid md:border-b-gray-CACFD3 md:mb-24",children:[(0,t.jsx)("p",{className:"text-12 leading-21 text-zilgara font-l mb-12 md:mb-16 text-center",children:"در ØµÙØ±Øª Ø¯Ø§Ø´ØªÙ Ø³ÙØ§Ù Ù ÛØ§ Ù
Ø´Ú©ÙØ با Ù
ا تÙ
اس Ø¨Ú¯ÛØ±Ûد"}),(0,t.jsx)(a.Q,{href:"tel:02191070021",isFullWidth:!0,rounded:!0,className:"md:w-320 md:mx-auto",variant:"outlined",color:"black",rightIcon:(0,t.jsx)("i",{className:"icon-Phone text-24"}),children:"تÙ
اس با Ù¾Ø´ØªÛØ¨Ø§ÙÛ"})]}),em&&(null==em?void 0:em.length)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Z,{className:"md:hidden"}),(0,t.jsx)("div",{className:"py-24 md:!pt-0",children:(0,t.jsx)(b.Z,{faqs:em})})]}):null,!!eh.is_host&&((null==ei?void 0:ei.state)===S.A.SECOND_PAYMENT||(null==ei?void 0:ei.state)===S.A.DONE&&new(g())().isBefore(new(g())(null==ei?void 0:ei.start_date)))&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Z,{}),(0,t.jsxs)("div",{className:"py-24",children:[(0,t.jsx)(r.Z,{icon:(0,t.jsx)("i",{className:"text-20 icon-Error"}),title:"ÙØºÙ رزرÙ",containerClassname:"mb-24"}),(0,t.jsxs)("div",{className:"p-16 border-1 border-dashed border-black rounded-10",children:[(0,t.jsx)("p",{className:"text-12 leading-30 text-zilgara mb-24",children:'در ØµÙØ±Øª ÙÛØ§Ø² Ø´Ù
ا Ù
Û ØªÙØ§ÙÛØ¯ با ÙØ´Ø±Ø¯Ù دکÙ
Ù Ø²ÛØ±, Ø¯Ø±Ø®ÙØ§Ø³Øª رزر٠تاÛÛØ¯ Ø´Ø¯Ù Ø®ÙØ¯ را "ÙØºÙ" Ú©ÙÛØ¯. ØªÙØ¬Ù Ø¯Ø§Ø´ØªÙ Ø¨Ø§Ø´ÛØ¯, با ØªÙØ¬Ù Ø¨Ù ØªØ§Ø«ÛØ± Ù
ÙÙÛ Ø±Ø¯ Ø¯Ø±Ø®ÙØ§Ø³Øª رزرÙ, بر Ù
ÛÙÙ
Ø§ÙØ§Ù ÙÛØ¯ÙÙ
ا, در ØµÙØ±Øª رد ÚÙØ¯ Ø¯Ø±Ø®ÙØ§Ø³Øª Ø±Ø²Ø±Ù Ø¨ØµÙØ±Øª Ù
ØªÙØ§ÙÛ, جرÛÙ
ÙâÙØ§ÛÛ ÙÙ
اÙÙØ¯ ØºÛØ± ÙØ¹Ø§Ù شد٠ÙÙ
اÛÙ Ø§ÙØ§Ù
ØªÚ¯Ø§Ù Ù Ú©Ø§ÙØ´ رتب٠ÙÙ
Ø§ÛØ´ در ØµÙØÙ Ø¬Ø³ØªØ¬Ù Ø¨Ù ØØ³Ø§Ø¨ Ú©Ø§Ø±Ø¨Ø±Û Ø´Ù
ا اعÙ
Ø§Ù Ø®ÙØ§Ùد شد.'}),(0,t.jsx)(a.z,{color:"error",variant:"outlined",isFullWidth:!0,onClick:function(){ei.state===S.A.SECOND_PAYMENT?ez(!0):eY(!0)},children:"ÙØºÙ رزرÙ"})]})]})]})]}),(0,t.jsx)("div",{className:"hidden md:block md:col-span-6 relative",children:(0,t.jsxs)("div",{className:"sticky top-[115px] border-1 border-solid border-gray-CACFD3 rounded-16 p-24",children:[(0,t.jsxs)("div",{className:"pb-24 border-b-1 border-dashed border-b-[rgba(28,46,69,0.6
1)] mb-24 flex items-start gap-x-16",children:[(0,t.jsx)("div",{className:"w-120 h-120 relative",children:!!(null==ei?void 0:ei.product.image_url)&&(0,t.jsx)(R(),{src:null==ei?void 0:ei.product.image_url,fill:!0,style:{objectFit:"cover"},alt:"",className:"rounded-12"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(Y(),{passHref:!0,prefetch:!1,href:(0,q.$)({residenceId:null==ei?void 0:ei.product.id}),className:"block text-14 leading-20 font-m text-blue-main mb-16",children:null==ei?void 0:ei.product.name}),!!(null==ei?void 0:null===(B=ei.rooms)||void 0===B?void 0:B.length)&&(0,t.jsxs)("p",{className:"text-13 leading-20 font-l text-black mb-16",children:["اتا٠: ",ei.rooms.map(function(e){return e.name}).join("Ø ")]}),(0,t.jsxs)("div",{className:"flex items-center gap-x-4 mb-24",children:[(0,t.jsx)("p",{className:"text-14 leading-20 font-l text-black",children:"کد رزر٠:"}),(0,t.jsx)("p",{className:"text-16 leading-24 font-r text-black",children:null==ei?void 0:ei.reference})]}),(0,t.jsx)(a.Q,{rounded:!0,color:"black",rightIcon:(0,t.jsx)("i",{className:"icon-See text-16"}),className:"!bg-black bg-gradient-0 opacity-80",styles:{backgroundImage:"none"},href:(0,q.$)({residenceId:null==ei?void 0:ei.product.id}),children:"Ù
Ø´Ø§ÙØ¯Ù Ø§ÙØ§Ù
تگاÙ"})]})]}),(0,t.jsx)("div",{className:"mb-24",children:(0,t.jsx)(s.Z,{data:ea||[],total:ec,n_of_discounted_special_days:0,n_of_discounted_peak_days:0,n_of_discounted_weekends:0,n_of_discounted_normaldays:0,totalDiscountAmount:ep,hostShare:null==eM?void 0:null===(H=eM.params)||void 0===H?void 0:null===(K=H.order_details)||void 0===K?void 0:K.host_share,websiteShare:null==eM?void 0:null===(G=eM.params)||void 0===G?void 0:null===(J=G.order_details)||void 0===J?void 0:J.website_share,vatAmount:null==eM?void 0:null===($=eM.params)||void 0===$?void 0:null===(ee=$.order_details)||void 0===ee?void 0:ee.vat_amount})}),(0,t.jsx)("div",{children:(null==ei?void 0:ei.state)===S.A.HOST_APPROVAL?(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-x-16",children:[(0,t.jsx)(a.z,{isFullWidth:!0,className:"!px-8",variant:"outlined",color:"error",onClick:function(){return eO(!0)},children:"رد Ø¯Ø±Ø®ÙØ§Ø³Øª"}),(0,t.jsx)(a.z,{isFullWidth:!0,className:"!px-8",onClick:function(){return eL(!0)},children:"تأÛÛØ¯ Ø¯Ø±Ø®ÙØ§Ø³Øª"})]}):(null==ei?void 0:ei.state)===S.A.SECOND_PAYMENT?null:eg?(0,t.jsx)(a.Q,{href:"tel:".concat(null==ei?void 0:ei.guest.phone),isFullWidth:!0,children:"تÙ
اس با Ù
ÙÙ
اÙ"}):(null==ei?void 0:ei.state)===S.A.EXPIRED||S.A.CANCEL&&(null==ei?void 0:ei.cancelled_by)===z.w.HOST_CANCELLED?(0,t.jsx)(a.z,{isFullWidth:!0,disabled:!!(null==ei?void 0:ei.alters)&&!!(null==ei?void 0:ei.alters.length),onClick:function(){return eP(!0)},children:(null==ei?void 0:ei.alters)&&(null==ei?void 0:ei.alters.length)?"".concat(null==ei?void 0:ei.alters.length," Ù¾ÛØ´ÙÙØ§Ø¯ جاÛگزÛ٠ارسا٠شد"):"Ù¾ÛØ´ÙÙØ§Ø¯ Ø§ÙØ§Ù
تگا٠جاÛگزÛÙ"}):null})]})})]}),(0,t.jsx)(d.default,{open:eU,handleClose:function(){return ez(!1)},headerTitle:"Ø¹ÙØª ÙØºÙ Ø¯Ø±Ø®ÙØ§Ø³Øª",body:function(e){var n=e.handleSmoothClose;return(0,t.jsx)(Z,{handleSmoothClose:n,reasonsList:h.iJ,reserveId:null==ei?void 0:ei.id})}}),(0,t.jsx)(d.default,{open:eH,handleClose:function(){return eY(!1)},headerTitle:"ÙØºÙ Ø±Ø²Ø±Ù ÙØ·Ø¹Û شدÙ",body:function(e){var n=e.handleSmoothClose;return(0,t.jsx)(k.Z,{handleSmoothClose:n,hostIsCancelling:!0})}}),(0,t.jsx)(d.default,{open:eE,handleClose:function(){return eD(!1)},headerTitle:"دÙÛÙ ÙØºÙ رزرÙ",body:function(e){var n,l=e.handleSmoothClose;return(0,t.jsx)(F.Z,{handleSmoothClose:l,reserveId:Number(null==el?void 0:null===(n=el.query)||void 0===n?void 0:n.id)})}}),(0,t.jsx)(d.default,{open:eZ,handleClose:function(){return eL(!1)},headerTitle:"تأÛÛØ¯ Ø¯Ø±Ø®ÙØ§Ø³Øª",body:function(e){var n=e.handleSmoothClose;return(0,t.jsx)(W.Z,{handleSmoothClose:n,reserveId:null==ei?void 0:ei.id})}}),(0,t.jsx)(d.default,{open:ew,handleClose:function(){return eO(!1)},headerTitle:"Ø¹ÙØª رد Ø¯Ø±Ø®ÙØ§Ø³Øª",body:function(e){var n=e.handleSmoothClose;return(0,t.jsx)(U.Z,{handleSmoothClose:n,reasonsList:h.Q6,reserveId:null==ei?void 0:ei.id})}}),!!eT&&(0,t.jsx)(M,{isModalOpen:eT,handleClose:function(){return eP(!1)},reserveId:Number(null==el?void 0:null===(en=el.query)||void 0===en?void 0:en.id)})]}),(0,t.jsx)("div",{className:"hidden md:block mt-[84px]",children:(0,t.jsx)(V.default,{})})]})},$=l(9008),ee=l.n($),en=function(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ee(),{children:[(0,t.jsx)("title",{children:"Ø±Ø²Ø±Ù ÙØ§ | ÙÛØ¯ÙÙ
ا ترÛÙ¾"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsx)(J,{})]})}}},function(e){e.O(0,[4885,8289,9238,1265,113,7865,7126,4067,7392,9774,2888,179],function(){return e(e.s=90956)}),_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.