1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3039,6539],{3579:(e,t,l)=>{"use strict";function n(e,t){return({1:e("layout.rating.veryBad"),2:e("layout.rating.bad"),3:e("layout.rating.normal"),4:e("layout.rating.good"),5:e("layout.rating.excellent")})[t]}l.d(t,{u:()=>n})},24723:(e,t,l)=>{"use strict";l.d(t,{A:()=>x});var n=l(37876),i=l(86417),s=l(23098),r=l(81526),a=l(30131),o=l(21626),d=l(92370),c=l(49239);let u=(0,o.Ay)(i.A).withConfig({componentId:"sc-e37023a5-0"})(["",";flex:0 0 auto;",""],(0,c.S$)("8px"),e=>{let{shadow:t}=e;return t&&(0,o.AH)(["box-shadow:unset;"])}),h=o.Ay.div.withConfig({componentId:"sc-e37023a5-1"})(["display:flex;overflow:hidden;margin-bottom:",";"],d.A),p=(0,o.Ay)(s.h).withConfig({componentId:"sc-e37023a5-2"})(["padding:0 0px 0px 3px;"]),g=(0,o.Ay)(r.A).withConfig({componentId:"sc-e37023a5-3"})(["overflow:hidden;"]),x=e=>{let{avatar:t,title:l,subtitle:i,avatarSize:s="normal",shadow:r=!0,borderWidth:o=2,invertColor:d,className:c,smallTitle:x=!1,spaceAfter:m="normal"}=e;return(0,n.jsxs)(h,{className:"user-identity ".concat(c),spaceAfter:m,children:[(0,n.jsx)(u,{alt:l,src:t,size:s,borderWidth:o,shadow:r}),(0,n.jsxs)(g,{direction:"column",justify:"around",spacing:"none",children:[(0,n.jsx)(p,{overflowHidden:!0,spaceAfter:"small"==s?"none":"smallest",type:x||"xSmall"==s?"title4":"title3",element:"div",inverted:d,children:l}),i&&(0,n.jsx)(a.A,{type:"gray30",size:"small",element:"span",spaceAfter:"none",children:i})]})]})}},40380:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reserves/[id]",function(){return l(72408)}])},41019:(e,t,l)=>{"use strict";l.d(t,{A:()=>u});var n=l(37876),i=l(36147),s=l(15335),r=l(14232),a=l(21626),o=l(49239),d=l(1969);let c=(0,a.Ay)(s.A).withConfig({componentId:"sc-2f704f05-0"})(["svg{"," width:16px;height:16px;}"],(0,o.hz)("0.25rem")),u=e=>{let{content:t,children:l,eventData:s,className:a}=e,o=(0,r.useCallback)(()=>{(0,d.A)(s)},[s]);return(0,n.jsx)(c,{type:"dark",content:t,removeUnderlinedText:!0,preferredPosition:"top",preferredAlign:"center",stopPropagation:!0,className:a,childrenIconTarget:(0,n.jsx)(i.A,{}),onOpen:!!s&&o,children:l})}},69524:(e,t,l)=>{"use strict";l.d(t,{XP:()=>g,n4:()=>h,FM:()=>d,kD:()=>c,Ay:()=>m});var n=l(37876),i=l(38161),s=l(12819),r=l(14232),a=l(21626),o=l(49239);let d=a.Ay.span.withConfig({componentId:"sc-b1d5ea61-0"})(["",";line-height:1;"],(0,o.hz)("6px")),c=a.Ay.span.withConfig({componentId:"sc-b1d5ea61-1"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;flex-shrink:0;font-size:",";"],e=>{let{size:t,theme:l}=e;return l.icon.size[t]}),u=a.Ay.span.withConfig({componentId:"sc-b1d5ea61-2"})(["display:flex;direction:rtl;flex-direction:row-reverse;justify-content:space-between;align-items:center;flex-shrink:0;"]),h=a.Ay.span.withConfig({componentId:"sc-b1d5ea61-3"})(["white-space:nowrap;line-height:1;",";font-size:",";"],(0,o.hz)("6px"),e=>{let{size:t,theme:l}=e;return l.icon.size[t]}),p=a.Ay.div.withConfig({componentId:"sc-b1d5ea61-4"})(["margin-top:-4px;transition:all 0.5s ease-out;opacity:",";transform:",";line-height:1;cursor:",";&:not(:first-child){padding-left:2px;}i{vertical-align:baseline;}"],e=>{let{selected:t,hovered:l}=e;return t||l?1:.6},e=>{let{theme:t}=e;return t.rtl?"scaleX(1)":"scaleX(-1)"},e=>{let{selectable:t}=e;return t?"pointer":"default"}),g=(0,a.Ay)(i.A).withConfig({componentId:"sc-b1d5ea61-5"})([""]),x=(0,r.memo)(e=>{let t,{rating:l,reviewCount:i,onChange:a,size:o="xSmall",dataTest:x,color:m="primary",showEmpty:A,showValue:y,maxStars:j,selectable:v,className:f}=e,I=(0,s.A)(["layout"]),[b,C]=(0,r.useState)(l),[w,k]=(0,r.useState)(b),E=Math.floor((v?w:l)*2)/2;t=A?j||5:E>Math.floor(E)?E+1:E;let D=(0,r.useCallback)(e=>e+.5<E?"star-filled":e+.5>E?"star":"star-half",[E]),S=(0,r.useCallback)(e=>t=>{v&&(C(e+1),a&&a(e+1))},[v,C,a]),R=(0,r.useCallback)(e=>t=>{v&&k(e+1)},[v,k]),T=(0,r.useCallback)(()=>{v&&k(b)},[v,b]);return(0,n.jsxs)(c,{"data-test":x,"aria-label":"star",size:o,className:f,children:[(0,n.jsx)(u,{children:Array(...Array(t)).map((e,t)=>{let l=D(t);return(0,n.jsx)(p,{onClick:S(t),onMouseOver:R(t),onMouseOut:T,selected:t+1<=Math.ceil(w),selectable:v,hovered:t+1==w,children:(0,n.jsx)(g,{iconName:l,size:o,reverseOnLtr:!0,color:"star"==l?"gray90":m})},"star-".concat(t))})}),y&&(0,n.jsx)(d,{children:l}),i>0&&(0,n.jsx)(h,{size:o,children:"(".concat(I("layout.ratingStars.reviewCount",{word1:i}),") ")})]})});x.displayName="RatingStars";let m=x},72408:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>tN});var n=l(37876),i=l(15134),s=l(88535),r=l(89099),a=l.n(r),o=l(14232),d=l(8570),c=l(73339),u=l(63112),h=l(51433);let p=(e,t)=>{switch((0,h.A)("reserveId reducer :".concat(t.type),t),t.type){case"setIsLoading":return{...e,isLoading:t.isLoading};
1case"setReserveIdData":return{...e,reserveIdData:t.reserveIdData,bookId:t.bookId,isLoading:!1};case"setClaimPictures":return{...e,reserveIdData:{...e.reserveIdData,claim:{...e.reserveIdData.claim,pictures:[...e.reserveIdData.claim.pictures.filter(e=>"host"!==e.from),...t.pictures]}}};case"setCanSendRepeatExpiredNotify":return{...e,reserveIdData:{...e.reserveIdData,canSendRepeatExpiredNotify:t.canSendRepeatExpiredNotify}};default:throw Error("Unexpected reducer: ".concat(t))}},g={isLoading:!0,reserveIdData:null,bookId:null},x=o.createContext(null),m=o.createContext(null),A=e=>{var t,l;let[a,A]=(0,o.useReducer)(p,g),y=(0,r.useRouter)(),j=(0,s.A)(),v=o.useMemo(()=>e=>{switch((0,h.A)("reserveId action :".concat(e.type),e),e.type){case"GET_RESERVES_ID_DATA":(e=>{let{dispatch:t,payload:l}=e;t({type:"setIsLoading",isLoading:!0}),d.A.reservesIdGetApi(l.bookId).then(e=>{t({type:"setReserveIdData",reserveIdData:e.data,bookId:l.bookId})}).catch(u.Ay)})({dispatch:A,payload:e.payload});break;case"IS_LOADING":(e=>{let{dispatch:t,payload:l}=e;t({type:"setIsLoading",isLoading:l.isLoading}),setTimeout(()=>{t({type:"setIsLoading",isLoading:!l.isLoading})},2e3)})({dispatch:A,payload:e.payload});break;case"UPDATE_CLAIM_PICTURES":A({type:"setClaimPictures",pictures:e.payload.pictures});break;case"NOTIFY_REPEAT_EXPIRED_RESERVE":(e=>{let{dispatch:t,payload:l}=e;t({type:"setIsLoading",isLoading:!0}),d.A.notifyRepeatExpiredReserve(l.reserveId).then(()=>{t({type:"setCanSendRepeatExpiredNotify",canSendRepeatExpiredNotify:!1}),l.onComplete()}).catch(e=>{(0,u.Ay)(e),l.onComplete()})})({dispatch:A,payload:e.payload});break;case"APPLY_EDIT_RESERVE":(e=>{let{dispatch:t,payload:l}=e;d.A.reservesEditAcceptApi(l.reserveId).then(e=>{t({type:"setReserveIdData",reserveIdData:e.data,bookId:l.reserveId}),l.onComplete(),(0,c.A)({type:"success",text:"ÙÛØ±Ø§ÛØ´ رزر٠با Ù
ÙÙÙÛØª اعÙ
ا٠شد."})}).catch(u.Ay)})({dispatch:A,payload:e.payload});break;case"CANCEL_EDIT_RESERVE":(e=>{let{dispatch:t,payload:l}=e;d.A.reservesEditCancelApi(l.reserveId).then(e=>{t({type:"setReserveIdData",reserveIdData:e.data,bookId:l.reserveId}),l.onComplete(),(0,c.A)({type:"success",text:"Ø¯Ø±Ø®ÙØ§Ø³Øª ÙÛØ±Ø§ÛØ´ Ø±Ø²Ø±Ù ØªÙØ³Ø· Ø´Ù
ا رد شد."})}).catch(u.Ay)})({dispatch:A,payload:e.payload});break;case"EXTEND_EXPIRATION":(e=>{let{dispatch:t,payload:l}=e;d.A.extendExpiration(l.reserveId,{additionalTime:l.additionalTime}).then(e=>{t({type:"setReserveIdData",bookId:l.reserveId,reserveIdData:e.data}),l.onCompleted(!0),(0,c.A)({text:"زÙ
ا٠اÙÙØ¶Ø§Û Ù
ÙÙØª پرداخت با Ù
ÙÙÙÛØª Ø§ÙØ²Ø§ÛØ´ ÛØ§Ùت",type:"success"})}).catch(e=>{(0,u.Ay)(e),l.onCompleted(!1)})})({dispatch:A,payload:e.payload});break;case"SET_HOST_DISCOUNT":(e=>{let{dispatch:t,payload:l}=e;d.A.hostDiscount(l.reserveId,{amount:l.amount}).then(e=>{t({type:"setReserveIdData",bookId:l.reserveId,reserveIdData:e.data}),l.onComplete(!0),(0,c.A)({text:"تخÙÛ٠با Ù
ÙÙÙÛØª اعÙ
ا٠شد",type:"success"})}).catch(e=>{(0,u.Ay)(e),l.onComplete(!1)})})({dispatch:A,payload:e.payload});break;default:throw Error("Unexpected type: ".concat(e))}},[A]),f=o.useCallback(e=>{var t,l,n,i;(null==e?void 0:e.event)=="MessageFilterProcessed"&&(null==e||null==(t=e.data)?void 0:t.data.book_id)==a.bookId?(null==(i=a.reserveIdData)||null==(n=i.lastMessages)?void 0:n.length)<=1&&v({type:"GET_RESERVES_ID_DATA",payload:{bookId:null==a?void 0:a.bookId}}):(null==e||null==(l=e.data)?void 0:l.resource_id)==(null==a?void 0:a.bookId)&&v({type:"GET_RESERVES_ID_DATA",payload:{bookId:null==a?void 0:a.bookId}})},[v,null==a?void 0:a.bookId,null==(l=a.reserveIdData)||null==(t=l.lastMessages)?void 0:t.length]);return(0,i.A)(f,["BookCanceled","BookEditExtraTimeAdded","BookEditFinaled","BookExtraTimeAdded","BookFinaled","MessageFilterProcessed"]),(0,o.useEffect)(()=>{j&&v({type:"GET_RESERVES_ID_DATA",payload:{bookId:Number.parseInt(y.query.id,10)}})},[v,j,y.query.id]),(0,n.jsx)(x.Provider,{value:a,children:(0,n.jsx)(m.Provider,{value:v,children:e.children})})},y=()=>{let e=o.useContext(x);if(void 0===e)throw Error("context must use in provider");return e},j=()=>{let e=o.useContext(m);if(void 0===e)throw Error("context must use in provider");return e};var v=l(26431),f=l(22294),I=l(21114),b=l(23098),C=l(18252),w=l(42431),k=l(92592),E=l(12819),D=l(21626),S=l(19605),R=l(86312),T=l(81526),M=l(30131),P=l(28576),_=l(31726),N=l(78384),z=l(50780),L=l(83842),W=l(52535),F=l(11631),O=l(11166),B=l(43624),G=l(73201),U=l(86866),V=l(93088),q=l(12481),X=l(87423),H=l(94189),Q=l(43156),K=l(92613);let Y=async e=>await Q.A.post("/host-blocks",e).then(e=>({...e,data:{...e.data,createdAt:(0,K.re)(e.data.createdAt,!0)}})),$=async e=>await Q.A.delete("/host-blocks/".concat(e));var J=l(28732);let Z=e=>{let{loading:t,onAccepted:l,onDeclined:i}=e;return(0,n.jsxs)(J.Ay,{size:"small",onClose:i,children:[(0,n.jsx)(J.rQ,{children:(0,n.jsx)(M.A,{size:"large",weight:"bold",align:"center",children:"Ø±ÙØ¹ Ù
Ø³Ø¯ÙØ¯Û"})}),(0,n.jsx)(J.fn,{children:(0,n.jsx)(M.A,{type:"gray60",align:"center",children:"Ø¢ÛØ§ از Ø±ÙØ¹ Ù
Ø³Ø¯ÙØ¯Û اÛÙ Ù
ÙÙ
ا٠اطÙ
ÛÙØ§Ù Ø¯Ø§Ø±ÛØ¯Ø"})}),(0,n.jsx)(J.jl,{children:(0,n.jsxs)(T.A,{direction:"row",spacing:"xSmall",children:[(0,n.jsx)(f.Ay,{type:"light",onClick:i,fullWidth:!0,children:"Ø¨ÛØ®ÛاÙ"}),(0,n.jsx)(f.Ay,{type:"primary",size:"small",fullWidth:!0,onClick:l,loading:t,children:"بÙÙ"})]})})]})};var ee=l(72674),et=l(1969),el=l(38161),en=l(2606),ei=l(28558),es=l(57013);let er=[{label:"Ù
ÙÙ
Ø§Ù Ø¨Û Ø§Ø®ÙØ§Ù Ù Ø¨Û Ø§Ø¯Ø¨ است",value:"guestInsult"},{label:"Ù
ÙÙ
Ø§Ù Ø¨Ù Ø§ÙØ§Ù
ØªÚ¯Ø§Ù ÛØ§ اÙ
Ú©Ø§ÙØ§Øª Ø¢Ø³ÛØ¨ زد",value:"damageRoom"},{label:"با Ù
ÙÙ
ا٠Ù
Ø´Ú©Ù Ø´Ø®ØµÛ Ø¯Ø§Ø±Ù
",value:"problemWithGuest"},{label:"Ø³Ø§ÛØ± Ù
ÙØ§Ø±Ø¯",value:"other"}];var ea=l(30975);let eo=(0,D.Ay)(J.rQ).withConfig({componentId:"sc-5bcaa28f-0"})(["padding-bottom:24px;"]),ed=e=>{var t;let{onClose:l,bookId:i,onUserBlockCompleted:s}=e,[r,a]=(0,o.useState)("guestInsult"),[d,c]=(0,o.useState)(!1),{watch:h,handleSubmit:p,register:g,formState:{errors:x},unregister:m}=(0,ea.mN)(),A=(0,o.useCallback)(e=>{a(e),"other"!==e&&m("note")},[m]),y=h("note"),j=(0,o.useCallback)(()=>{c(!0),Y({bookId:i,note:"other"===r?y:r}).then(e=>{(0,et.A)({eventName:"reserveId.blockGuest.add",category:"Reserve Id Page",action:"BlockGuest",label:i,integrations:["gtag"]}),s(e.data.id)}).catch(e=>{(0,u.Ay)(e)}).finally(()=>c(!1))},[r,i,y,s]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(eo,{children:[(0,n.jsx)(M.A,{size:"large",type:"gray90",weight:"bold",spaceAfter:"small",align:"center",children:"Ù
ÙÙ
ا٠Ù
Ø³Ø¯ÙØ¯ Ø´ÙØ¯"}),(0,n.jsx)(M.A,{weight:500,type:"gray60",size:"small",align:"center",children:"پس از Ù
Ø³Ø¯ÙØ¯ Ø³Ø§Ø²ÛØ اÛÙ Ù
ÙÙ
ا٠دÛگر ÙØ§Ø¯Ø± Ø¨Ù Ø±Ø²Ø±Ù Ø§ÙØ§Ù
تگا٠شÙ
ا ÙØ®ÙØ§ÙØ¯ Ø¨ÙØ¯."})]}),(0,n.jsxs)(J.fn,{children:[(0,n.jsx)(M.A,{size:"small",weight:"bold",spaceAfter:"normal",children:"دÙÛÙ Ù
Ø³Ø¯ÙØ¯ Ø³Ø§Ø²Û Ø±Ø§ Ù
شخص Ú©ÙÛØ¯:"}),(0,n.jsx)(T.A,{direction:"column",children:er.map(e=>(0,n.jsx)(es.A,{checked:r===e.value,label:(0,n.jsx)(M.A,{weight:500,type:"gray80",children:e.label}),onChange:()=>A(e.value)},e.value))}),"other"===r&&(0,n.jsx)(ei.A,{label:"ØªÙØ¶ÛØØ§Øª",...g("note",{required:{message:"Ø¯ÙØ§ÛÙ Ù
Ø±Ø¨ÙØ· ب٠Ù
Ø³Ø¯ÙØ¯ کرد٠اÛ٠کاربر را ØªÙØ¶ÛØ Ø¯ÙÛØ¯",value:!0}}),error:null==x||null==(t=x.note)?void 0:t.message}),(0,n.jsx)(ec,{size:"small",weight:"bold",type:"critical",children:"ÙکتÙ: Ø´Ù
ا بعدا Ù
Û ØªÙØ§ÙÛØ¯ Ù
ÙÙ
ا٠را از Ù
Ø³Ø¯ÙØ¯Û خارج Ú©ÙÛØ¯."})]}),(0,n.jsxs)(J.jl,{flex:["1","1"],children:[(0,n.jsx)(f.Ay,{type:"light",onClick:l,fullWidth:!0,children:"بازگشت"}),(0,n.jsx)(f.Ay,{type:"primary",fullWidth:!0,onClick:p(j),loading:d,children:"تاÛÛØ¯ ٠اداÙ
Ù"})]})]})};var ec=(0,D.Ay)(M.A).withConfig({componentId:"sc-5bcaa28f-1"})({marginTop:"24px"});let eu=e=>{let{onClose:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en.Ay,{children:(0,n.jsx)(T.A,{direction:"row",justify:"center",children:(0,n.jsx)(el.A,{iconName:"disabled",size:"xxLarge"})})}),(0,n.jsx)(J.fn,{children:(0,n.jsxs)(T.A,{direction:"column",align:"center",justify:"center",children:[(0,n.jsx)(M.A,{type:"gray90",weight:"bold",spaceAfter:"small",children:"کاربر Ù
ÙØ±Ø¯ ÙØ¸Ø± Ù
Ø³Ø¯ÙØ¯ شد."}),(0,n.jsx)(M.A,{weight:500,size:"small",type:"gray50",align:"center",children:"در ØµÙØ±Øª Ø§ÙØµØ±Ø§Ù Ù
ÛâØªÙØ§ÙÛØ¯ با Ù
Ø±Ø§Ø¬Ø¹Ù Ø¨Ù Ø±Ø²Ø±Ù ÛØ§ ØµÙØÙ ÙÛØ³Øª Ù
Ø³Ø¯ÙØ¯Û ÙØ§ کاربر را Ø§ÙØ¨Ùاک Ú©ÙÛØ¯."})]})}),(0,n.jsx)(J.jl,{children:(0,n.jsx)(f.Ay,{type:"light",fullWidth:!0,onClick:t,children:"بستÙ"})})]})},eh=e=>{let{bookId:t,onClose:l,onUserBlockCompleted:i}=e,[s,r]=(0,o.useState)(!1),a=(0,o.useCallback)(e=>{r(!0),i(e)},[i]);return(0,n.jsx)(J.Ay,{onClose:l,children:s?(0,n.jsx)(eu,{onClose:l}):(0,n.jsx)(ed,{bookId:t,onClose:l,onUserBlockCompleted:a})})}
1,ep=e=>{let{id:t,hostBlock:l,status:i}=e,s=(0,k.al)(),[r,a]=(0,o.useState)(null==l?void 0:l.id),[d,c]=(0,o.useState)(!1),[h,p,g]=(0,ee.A)(!1),[x,m,A]=(0,ee.A)(!1),y=(0,o.useCallback)(()=>{c(!0),$(r).then(()=>{a(null),(0,et.A)({eventName:"reserveId.blockGuest.remove",category:"Reserve Id Page",action:"UnblockGuest",label:r,integrations:["gtag"]}),A()}).catch(e=>{(0,u.Ay)(e)}).finally(()=>{c(!1)})},[r,A]),j=(0,o.useCallback)(e=>{a(e)},[]),v=(0,o.useMemo)(()=>["finaled","inprogress","finished","host_cancel_finaled","guest_cancel_finaled","guest_cancel_finaled"].includes(i),[i]);return(0,n.jsxs)(n.Fragment,{children:[v&&(0,n.jsx)(C.A,{children:(0,n.jsxs)(T.A,{direction:"column",spacing:"xSmall",children:[(0,n.jsx)(eg,{direction:"row",align:"center",justify:"between",children:(0,n.jsxs)(T.A,{direction:"column",children:[(0,n.jsx)(M.A,{weight:600,size:"large",type:"gray80",spaceAfter:"smallest",children:r?"Ù
ÙÙ
ا٠Ù
Ø³Ø¯ÙØ¯ شدÙ":"Ù
Ø³Ø¯ÙØ¯ Ø³Ø§Ø²Û Ù
ÙÙ
اÙ"}),(0,n.jsx)(M.A,{type:"gray50",spaceAfter:"normal",children:r?"Ø´Ù
ا Ù
ÙÙ
ا٠را Ù
Ø³Ø¯ÙØ¯ Ú©Ø±Ø¯ÛØ¯. ا٠دÛگر ÙÙ
ÛâØªÙØ§Ùد ÙÛÚâÛÚ© از Ø§ÙØ§Ù
تگاÙâÙØ§Û Ø´Ù
ا را Ø±Ø²Ø±Ù Ú©ÙØ¯.":"با Ù
Ø³Ø¯ÙØ¯Ø³Ø§Ø²Û Ù
ÙÙ
Ø§ÙØ ا٠دÛگر ÙÙ
ÛâØªÙØ§Ùد ÙÛÚâÛÚ© از Ø§ÙØ§Ù
تگاÙâÙØ§Û Ø´Ù
ا را Ø±Ø²Ø±Ù Ú©ÙØ¯."})]})}),(0,n.jsxs)(ex,{direction:"row",children:[r&&(0,n.jsx)(f.Ay,{type:"light",fullWidth:s,onClick:m,children:"Ø±ÙØ¹ Ù
Ø³Ø¯ÙØ¯Û"}),!r&&(0,n.jsx)(f.Ay,{type:"critical",icon:"disabled",fullWidth:s,onClick:p,children:"Ù
Ø³Ø¯ÙØ¯ Ø´ÙØ¯"})]})]})}),h&&(0,n.jsx)(eh,{bookId:t,onClose:g,onUserBlockCompleted:j}),x&&(0,n.jsx)(Z,{onAccepted:y,onDeclined:A,loading:d})]})};var eg=(0,D.Ay)(T.A).withConfig({componentId:"sc-2bcb3187-0"})({width:"100%"}),ex=(0,D.Ay)(T.A).withConfig({componentId:"sc-2bcb3187-1"})({width:"100%"}),em=l(85126),eA=l(27286),ey=l(12089),ej=l(7437),ev=l(47772),ef=l(72132),eI=l(56193),eb=l(48406);let eC=e=>{let{bookId:t,onClose:l,claim:i}=e,s=(0,E.A)(["tripsId"]),r=j();return(0,n.jsx)(J.Ay,{onClose:l,children:(0,n.jsxs)(J.fn,{children:[(0,n.jsxs)(T.A,{direction:"row",align:"center",justify:"between",spaceAfter:"large",children:[(0,n.jsxs)(ew,{align:"center",children:[(0,n.jsx)(M.A,{size:"large",weight:"bold",children:"Ø´Ú©Ø§ÛØª"}),(0,n.jsxs)(eI.Ay,{children:[s("finished"==i.status?"tripsId.topClaimTitle.finished":"tripsId.topClaimTitle.notFinished"),"finished"==i.status&&"boolean"==typeof i.accepted&&s(i.accepted?"tripsId.topClaimTitle.accepted":"tripsId.topClaimTitle.notAccepted")]})]}),(0,n.jsx)(M.A,{children:"کدرزر٠:".concat(t)})]}),(0,n.jsx)(M.A,{type:"gray50",spaceAfter:"large",children:"Ø¬ÙØª Ù¾ÛÚ¯ÛØ±Û Ø¨ÙØªØ± اگ٠تصاÙÛØ±Û Ù
رتبط با Ø´Ú©Ø§ÛØªÛ Ú©Ù Ù
ÙÙ
ا٠ثبت Ú©Ø±Ø¯Ù Ø¯Ø§Ø±ÛØ¯ Ù
ÛâØªÙØ§ÙÛØ¯ از اÛ٠بخش آپÙÙØ¯ Ú©ÙÛØ¯."}),(0,n.jsx)(eb.A,{bookId:t,photoList:i.pictures.filter(e=>"host"==e.from),mod:"host",isDisableDeleteImage:!0,onChange:e=>{r({type:"UPDATE_CLAIM_PICTURES",payload:{pictures:e.map(e=>({...e,from:"host"}))}})}})]})})};var ew=(0,D.Ay)(T.A).withConfig({componentId:"sc-8aba4279-0"})({columnGap:"5px"});let ek=D.Ay.div.withConfig({componentId:"sc-9387b685-0"})(["background:#f2f4f5;border-radius:8px;padding:1rem;margin-bottom:16px;"]),eE=(0,D.Ay)(C.A).withConfig({componentId:"sc-9387b685-1"})(["border:1px dashed #ff0000;"]),eD=e=>{var t,l,i;let{claim:s,bookId:r,checkIn:a}=e,d=(0,E.A)(["layout","reserveId"]),{lang:c}=(0,ev.s9)(),u=(0,k.al)(),[h,p]=(0,o.useState)(!1),g=(0,o.useMemo)(()=>{var e,t;return{guest:null==s||null==(e=s.pictures)?void 0:e.filter(e=>"guest"==e.from),host:null==s||null==(t=s.pictures)?void 0:t.filter(e=>"host"==e.from)}},[null==s?void 0:s.pictures]),x=(0,o.useCallback)(()=>{p(!0)},[]),m=(0,o.useCallback)(()=>{p(!1)},[]),A=(0,o.useMemo)(()=>(0,em.F)({checkIn:a,climeCreatedAt:null==s?void 0:s.createdAt}),[a,null==s?void 0:s.createdAt]);return(0,n.jsx)(n.Fragment,{children:s&&!!s.status&&(0,n.jsxs)(eE,{children:[(0,n.jsx)(ej.A,{status:s.status,spaceAfter:"small",accepted:s.accepted,isAfterDeadline:A}),(0,n.jsx)(eA.A,{text:null==(t=(0,ef.h)(d,c)[s.type])?void 0:t.label,label:"Ø¹ÙØª",spaceAfter:"small"}),(0,n.jsx)(eA.A,{text:s.description,label:"ØªÙØ¶ÛØØ§Øª Ù
ÙÙ
اÙ",spaceAfter:"small"}),(null==(l=g.guest)?void 0:l.length)>0&&(0,n.jsx)(ey.A,{pictures:g.guest,mod:"guest"}),(null==(i=g.host)?void 0:i.length)>0&&(0,n.jsx)(ey.A,{pictures:g.host,mod:"host"}),"finished"!==s.status&&(0,n.jsx)(ek,{children:(0,n.jsx)(M.A,{children:"Ù
ÛØ²Ø¨Ø§Ù گراÙ
ÛØ Ø´Ú©Ø§ÛØªÛ با Ù
ÙØ¶Ùع ÙÙÙ Ø§ÙØ°Ú©Ø± از طر٠Ù
ÛÙÙ
ا٠شÙ
ا ثبت شد٠است. ØªÙØµÛÙ Ù
ÛâÚ©ÙÛÙ
Ø Ø¨Ø§ ÙÙØ±Ûت با Ù
ÛÙÙ
Ø§Ù Ø®ÙØ¯ تÙ
اس بگÛ
1Ø±ÛØ¯ Ù Ù
Ø´Ú©ÙØ§Øª Ù
Ø·Ø±Ø Ø´Ø¯Ù Ø±Ø§ Ø¯ÙØ³ØªØ§Ù٠٠در ÙØ¶Ø§ÛÛ Ù
ثبت ØÙ Ù ÙØµÙ ÙÙ
اÛÛØ¯. ØªØ¬Ø±Ø¨Ù ÙØ´Ø§Ù Ù
ÛØ¯Ùد Ø¨ÛØ´ØªØ±ÛÙ ÙÛØ§Ø² Ù
ÙÙ
ا٠در ÚÙÛÙ Ù
ÙØ§ÙØ¹Û ÙÙ
دÙÛ Ù ÙÙ
راÙÛ Ù
ÛØ²Ø¨Ø§Ù Ø¨Ø±Ø§Û Ø±ÙØ¹ Ø§ÛØ±Ø§Ø¯Ø§Øª Ù Ù
Ø´Ú©ÙØ§Øª Ø§ØØªÙ
اÙÛ Ø§ÙØ§Ù
تگا٠است. تÛÙ
Ù¾Ø´ØªÛØ¨Ø§ÙÛ Ø¬Ø§Ø¬Ûگا ÙÛØ² Ø¢Ù
اد٠است تا در ØµÙØ±Øª ÙÛØ§Ø² ب٠شÙ
ا Ú©Ù
Ú© Ú©ÙØ¯. ÙکتÙ: Ù
Ø¨Ø§ÙØº اجار٠بعد از Ø±ÙØ¹ Ù
شک٠٠خاتÙ
Ù Ø´Ú©Ø§ÛØª Ø¨Ù ØØ³Ø§Ø¨ Ø¬ÙØ§Ø¨Ø¹Ø§ÙÛ ÙØ§Ø±Ûز Ø®ÙØ§Ùد شد."})}),"finished"!==s.status&&(0,n.jsxs)(eS,{direction:"column",children:[(0,n.jsx)(M.A,{spaceAfter:"normal",children:"Ø¯Ø±ØµÙØ±Øª تÙ
اÛÙ Ù
Û ØªÙØ§ÙÛØ¯ تصاÙÛØ± Ø®ÙØ¯ را Ø¨Ø±Ø§Û Ø¨Ø±Ø±Ø³Û Ú©Ø§Ø±Ø´ÙØ§Ø³Ø§ÙØ Ø§Ø² اÛ٠طرÛ٠ارسا٠کÙÛØ¯."}),(0,n.jsx)(f.Ay,{onClick:x,fullWidth:u,type:"critical",bordered:!0,children:d("reserveId.claim.hostUpload")})]}),h&&(0,n.jsx)(eC,{onClose:m,bookId:r,claim:s})]})})};var eS=(0,D.Ay)(T.A).withConfig({componentId:"sc-9387b685-2"})({width:"100%"}),eR=l(73700),eT=l(96209);let eM=()=>{let[e,t]=(0,o.useState)(!1),l=y(),i=j(),[s,r]=(0,o.useState)(!1),[a,d]=(0,o.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(eP,{direction:"row",children:[(0,n.jsx)(f.Ay,{fullWidth:!0,type:"light",onClick:()=>d(!0),children:"رد Ø¯Ø±Ø®ÙØ§Ø³Øª"}),(0,n.jsx)(f.Ay,{fullWidth:!0,onClick:()=>r(!0),children:"تاÛÛØ¯ Ø¯Ø±Ø®ÙØ§Ø³Øª"})]}),s&&(0,n.jsx)(eT.A,{onCancel:()=>r(!1),onConfirm:()=>{t(!0),i({type:"APPLY_EDIT_RESERVE",payload:{reserveId:l.bookId,onComplete:()=>{t(!1),r(!1)}}})},title:"تاÛÛØ¯ Ø¯Ø±Ø®ÙØ§Ø³Øª",text:"Ø¢ÛØ§ Ù
ÛâØ®ÙØ§ÙÛØ¯ از تاÛÛØ¯ اÛÙ Ø¯Ø±Ø®ÙØ§Ø³Øª ÙÛØ±Ø§ÛØ´ اطÙ
ÛÙØ§Ù Ø¯Ø§Ø±ÛØ¯Ø",confirmButtonLoading:e}),a&&(0,n.jsx)(eT.A,{onCancel:()=>d(!1),onConfirm:()=>{t(!0),i({type:"CANCEL_EDIT_RESERVE",payload:{reserveId:l.bookId,onComplete:()=>{t(!1),d(!1)}}})},title:"رد Ø¯Ø±Ø®ÙØ§Ø³Øª",text:"Ø¢ÛØ§ از رد اÛÙ ÙÛØ±Ø§ÛØ´ رزر٠اطÙ
ÛÙØ§Ù Ø¯Ø§Ø±ÛØ¯Ø",confirmButtonLoading:e})]})};var eP=(0,D.Ay)(T.A).withConfig({componentId:"sc-97c86300-0"})({width:"100%"});let e_=()=>{let[e,t]=(0,o.useState)(!1),l=y(),i=j(),[s,r]=(0,o.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.Ay,{fullWidth:!0,type:"light",onClick:()=>r(!0),children:"ÙØºÙ تاÛÛØ¯ ÙÛØ±Ø§ÛØ´"}),s&&(0,n.jsx)(eT.A,{onCancel:()=>r(!1),onConfirm:()=>{t(!0),i({type:"CANCEL_EDIT_RESERVE",payload:{reserveId:l.bookId,onComplete:()=>{t(!1),r(!1)}}})},title:"ÙØºÙ تاÛÛØ¯",text:"Ø¢ÛØ§ Ù
ÛâØ®ÙØ§ÙÛØ¯ اعÙ
ا٠اÛÙ ÙÛØ±Ø§ÛØ´ را بر رÙÛ Ø±Ø²Ø±Ù ÙØºÙ Ú©ÙÛØ¯Ø",confirmButtonLoading:e})]})},eN=()=>{let e=(0,E.A)(["reserveId"]),t=y();return(0,n.jsxs)(U.A,{heading:e("reserveId.reserveEditRequest.title"),children:[(0,n.jsx)(eR.A,{bookEdit:t.reserveIdData.bookEdit,showNightDiff:!0,total:t.reserveIdData.bookEdit.bill.totalPrice,invoiceDifference:t.reserveIdData.bookEdit.bill.totalPrice-t.reserveIdData.bill.total}),"requested"===t.reserveIdData.bookEdit.status&&(0,n.jsx)(eM,{}),"accepted"===t.reserveIdData.bookEdit.status&&(0,n.jsx)(e_,{})]})},ez=()=>{var e,t;let l=j(),i=y(),s=(0,k.al)(),[r,a,d]=(0,ee.A)(!1),[u,h]=(0,o.useState)(!1),p=(0,o.useCallback)(()=>{h(!0),l({type:"NOTIFY_REPEAT_EXPIRED_RESERVE",payload:{reserveId:i.reserveIdData.id,onComplete:()=>{h(!1),(0,c.A)({type:"success",text:"Ù¾ÛØ§Ù
Ú© با Ù
ÙÙÙÛØª ارسا٠شد."}),(0,et.A)({eventName:"reserveId.notifyRepeatExpireReserve",category:"Reserve Id Page",action:"sendExpiredRecoverySmsToGuest",label:i.reserveIdData.id,integrations:["gtag"]}),d()}}})},[l,d,null==(e=i.reserveIdData)?void 0:e.id]);return(0,n.jsxs)(n.Fragment,{children:[(null==(t=i.reserveIdData)?void 0:t.canSe
1ndRepeatExpiredNotify)&&(0,n.jsx)(C.A,{children:(0,n.jsxs)(T.A,{direction:"column",children:[(0,n.jsx)(M.A,{weight:700,size:"large",spaceAfter:"small",children:"Ø¨Ø§Ø²ÛØ§Ø¨Û رزر٠Ù
ÙÙØ¶Û"}),(0,n.jsx)(M.A,{weight:500,spaceAfter:"normal",children:"در ØµÙØ±ØªÛ ک٠آÙ
Ø§Ø¯Ù Ù¾Ø°ÛØ±Ø´ اÛÙ Ø±Ø²Ø±Ù ÙØ³ØªÛØ¯Ø Ø¨Ø§ ÙÙ
س دکÙ
Ù Ø²ÛØ± ب٠Ù
ÙÙ
Ø§Ù Ø§Ø·ÙØ§Ø¹ دÙÛØ¯."}),(0,n.jsx)(f.Ay,{type:"primary",fullWidth:s,onClick:a,children:"Ø§Ø±Ø³Ø§Ù Ù¾ÛØ§Ù
Ú© ب٠Ù
ÙÙ
اÙ"})]})}),r&&(0,n.jsxs)(J.Ay,{onClose:d,size:"extraSmall",children:[(0,n.jsx)(J.rQ,{title:"Ø¨Ø§Ø²ÛØ§Ø¨Û رزر٠Ù
ÙÙØ¶Û"}),(0,n.jsx)(J.fn,{children:(0,n.jsx)(M.A,{align:"center",children:"Ø¢ÛØ§ از Ø§Ø±Ø³Ø§Ù Ù¾ÛØ§Ù
Ú© ب٠Ù
ÙÙ
Ø§Ù Ø¨Ø±Ø§Û Ø§Ø·ÙØ§Ø¹âرساÙÛ Ø¯Ø± Ù
ÙØ±Ø¯ Ø¨Ø§Ø²ÛØ§Ø¨Û رزر٠Ù
ÙÙØ¶Û Ù
Ø·Ù
Ø¦Ù ÙØ³ØªÛدØ"})}),(0,n.jsx)(J.jl,{children:(0,n.jsxs)(T.A,{justify:"between",children:[(0,n.jsx)(f.Ay,{type:"light",onClick:d,fullWidth:!0,children:"Ø¨ÛØ®ÛاÙ"}),(0,n.jsx)(f.Ay,{onClick:p,loading:u,type:"primary",fullWidth:!0,children:"Ø§Ø±Ø³Ø§Ù Ù¾ÛØ§Ù
Ú©"})]})})]})]})};var eL=l(86417),eW=l(69524),eF=l(96093),eO=l(68757),eB=l(69540);let eG=[{name:"ratePoliteness",title:"Ø±Ø¹Ø§ÛØª ادب Ù Ø§Ø®ÙØ§Ù"},{name:"rateCleanliness",title:"Ø±Ø¹Ø§ÛØª ÙØ¸Ø§Ùت"},{name:"rateNoise",title:"Ø±Ø¹Ø§ÛØª Ø³Ø±ÙØµØ¯Ø§"},{name:"rateMaintenance",title:"Ù
Ø±Ø§ÙØ¨Øª از ساختÙ
ا٠٠اÙ
Ú©Ø§ÙØ§Øª"}];var eU=l(59043),eV=l(3579),eq=l(76836);let eX=e=>{let{onAccept:t,onClose:l,loading:i}=e;return(0,n.jsxs)(J.Ay,{size:"small",onClose:l,children:[(0,n.jsx)(J.rQ,{children:(0,n.jsx)(M.A,{size:"large",weight:"bold",align:"center",children:"از ثبت اÙ
ØªÛØ§Ø² اطÛÙ
ÙØ§Ù Ø¯Ø§Ø±ÛØ¯Ø"})}),(0,n.jsx)(J.fn,{children:(0,n.jsx)(M.A,{type:"gray60",align:"center",children:"Ø¯ÙØª Ú©ÙÛØ¯ Ø Ø«Ø¨Øª اÙ
ØªÛØ§Ø² ÙØ§Ø¨Ù ÙÛØ±Ø§ÛØ´ ÛØ§ ØØ°Ù ÙÙ
ÛâØ¨Ø§Ø´Ø¯."})}),(0,n.jsxs)(J.jl,{flex:["1","1"],children:[(0,n.jsx)(f.Ay,{type:"light",onClick:l,fullWidth:!0,children:"ÙÛØ±Ø§ÛØ´"}),(0,n.jsx)(f.Ay,{type:"primary",size:"small",fullWidth:!0,onClick:t,loading:i,children:"بÙ٠ثبت Ú©Ù"})]})]})},eH=(0,D.Ay)(M.A).withConfig({componentId:"sc-b5e2fd7f-0"})(["",";width:100%;"],e=>{let{textWeight:t}=e;return(0,eq.Wy)(t)}),eQ=(0,D.Ay)(J.fn).withConfig({componentId:"sc-b5e2fd7f-1"})(["background-color:",";"],e=>{let{theme:t}=e;return t.jajiga.backgroundBadgeLight}),eK=D.Ay.div.withConfig({componentId:"sc-b5e2fd7f-2"})(["width:60px;height:30px;display:flex;align-items:center;justify-content:center;background-color:#f2f4f5;border-radius:4px;"]),eY=(0,D.Ay)(C.A).withConfig({componentId:"sc-b5e2fd7f-3"})(["padding:16px;"]),e$=(0,D.Ay)(eU.A).withConfig({componentId:"sc-b5e2fd7f-4"})(["width:56px;height:56px;margin:auto;background-color:#ffffff;border:2px solid #ffffff;border-radius:100%;margin-bottom:12px;"]),eJ=e=>{let{onClose:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(J.fn,{children:[(0,n.jsx)(e$,{animationName:"successCircle",loop:!1}),(0,n.jsx)(M.A,{weight:"bold",size:"large",spaceAfter:"normal",align:"center",children:"اÙ
ØªÛØ§Ø² با Ù
ÙÙÙÛØª ثبت شد"}),(0,n.jsx)(eH,{type:"gray80",textWeight:500,align:"center",children:"Ù
Ø±Ø³Û Ø§Ø² اÛÙک٠اÙ
ØªÛØ§Ø² Ø¨Ø±Ø§Û Ù
ÙÙ
ا٠ثبت Ú©Ø±Ø¯ÛØ¯ ٠در Ø¨ÙØ¨Ùد خدÙ
ات ب٠Ù
ÛØ²Ø¨Ø§Ùا٠دÛگر Ù
ارا ÛØ§Ø±Û Ú©Ø±Ø¯ÛØ¯."})]}),(0,n.jsx)(J.jl,{flex:["1","1"],children:(0,n.jsx)(f.Ay,{type:"light",fullWidth:!0,onClick:t,children:"بستÙ"})})]})},eZ=e=>{let{reserveId:t,onClose:l,onRatingGuestCompleted:i}=e,s=(0,E.A)(["layout"]),[r,a]=(0,o.useState)(!1),[c,h]=(0,o.useState)(!1),[p,g,x]=(0,ee.A)(!1),[m,A]=(0,o.useState)({rateCleanliness:0,rateMaintenance:0,rateNoise:0,ratePoliteness:0}),y=(0,o.useCallback)(()=>{a(!0),d.A.reservesIdHostComment(t,{ratings:m}).then(e=>{i({rating:e.data.rating,ratings:e.data.ratings}),(0,et.A)({eventName:"reserveId.rateToGuest.done",eventValue:e.data.rating,category:"Reserve Id Page",action:"RatToGuest",label:t,integrations:["gtag"]}),a(!1),h(!0),x()}).catch(e=>{a(!1),(0,u.Ay)(e)})},[x,i,m,t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(J.Ay,{onClose:l,children:c?(0,n.jsx)(eJ,{onClose:l}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eQ,{children:(0,n.jsxs)(T.A,{direction:"column",children:[(0,n.jsx)(eH,{type:"gray90",size:"large",textWeight:700,spaceAfter:"smallest",align:"center",children:"ثبت اÙ
ØªÛØ§Ø² Ù
ÙÙ
اÙ"}),(0,n.jsx)(eH,{type:"gray80",textWeight:500,spaceAfter:"smallest",align:"center",children:"Ø¨Ù Ø±ÙØªØ§Ø± Ù
ÙÙ
Ø§Ù Ø®ÙØ¯ اÙ
ØªÛØ§Ø² بدÙÛØ¯"}),(0,n.jsx)(eH,{type:"gray80",textWeight:500,spaceAfter:"medium",align:"center",children:"اÛ٠اÙ
ØªÛØ§Ø² Ø¨Ø±Ø§Û Ù
ÙÙ
Ø§Ù ÙØ§Ø¨Ù Ù
Ø´Ø§ÙØ¯Ù ÙÙ
Û Ø¨Ø§Ø´Ø¯."}),(0,n.jsx)(eY,{children:(0,n.jsx)(T.A,{direction:"column",children:eG.map(e=>(0,n.jsxs)(e1,{direction:"column",children:[(0,n.jsx)(eH,{textWeight:500,type:"gray80",spaceAfter:"smallest",children:e.title}),(0,n.jsxs)(e0,{direction:"row",align:"center",justify:"end",children:[(null==m?void 0:m[e.name])?(0,n.jsx)(eK,{children:(0,n.jsx)(eH,{type:"gray90",textWeight:600,align:"center",children:(0,eV.u)(s,null==m?void 0:m[e.name])})}):(0,n.jsx)("div",{style:{height:"30px"}}),(0,n.jsx)(eW.Ay,{rating:null==m?void 0:m[e.name],showValue:!1,showEmpty:!0,size:"large",onChange:t=>{var l;
1return l=e.name,void A(e=>({...e,[l]:t}))},selectable:!0})]})]},e.title))})})]})}),(0,n.jsxs)(J.jl,{flex:["1","1"],children:[(0,n.jsx)(f.Ay,{type:"light",fullWidth:!0,onClick:l,children:"بÛâØ®ÛØ§Ù"}),(0,n.jsx)(f.Ay,{type:"primary",fullWidth:!0,onClick:g,disabled:Object.values(m).some(e=>0===e),children:"ثبت اÙ
ØªÛØ§Ø²"})]})]})}),p&&(0,n.jsx)(eX,{onAccept:y,onClose:x,loading:r})]})};var e0=(0,D.Ay)(T.A).withConfig({componentId:"sc-b5e2fd7f-5"})({width:"100%"}),e1=(0,D.Ay)(T.A).withConfig({componentId:"sc-b5e2fd7f-6"})({width:"100%"});let e2=D.Ay.div.withConfig({componentId:"sc-a1cee1fd-0"})(["max-height:",";transition:max-height 0.5s ease;overflow:hidden;width:100%;"],e=>{let{hide:t}=e;return t?"0px":"130px"}),e5=e=>{let{id:t,status:l,hostComment:i,guest:s,checkin:r}=e,a=(0,k.al)(),[d,c]=(0,o.useState)(i),[u,h,p]=(0,ee.A)(!1),[g,x]=(0,o.useState)(!1),m=(0,o.useMemo)(()=>{let e=(0,eO.Gq)("fa",!0);return!!r&&(0,eO.Uy)({...r,hours:12,minutes:0,seconds:0},e)},[r]);return(0,n.jsxs)(n.Fragment,{children:[("finaled"==l||"inprogress"==l||"finished"==l&&!!d)&&(0,n.jsx)(C.A,{children:(0,n.jsxs)(T.A,{direction:"column",spacing:"xSmall",children:[(0,n.jsxs)(e3,{direction:"row",align:"center",justify:"between",children:[!d&&(0,n.jsxs)(T.A,{direction:"column",children:[(0,n.jsx)(M.A,{weight:600,size:"large",type:"gray80",spaceAfter:"smallest",children:"ب٠Ù
ÙÙ
Ø§Ù Ø®ÙØ¯ اÙ
ØªÛØ§Ø² دÙÛØ¯!"}),(0,n.jsx)(M.A,{type:"gray50",spaceAfter:"normal",children:"از ساعت Û±Û² Ø¸ÙØ± Ø´Ø±ÙØ¹ رزر٠تا ساعت Û±Û¶ Ø±ÙØ² Ù¾Ø§ÛØ§Ù Ø±Ø²Ø±ÙØ Ù
ÛâØªÙØ§ÙÛØ¯ Ø¨Ù ÙØÙÙ Ø±ÙØªØ§Ø± Ù
ÙÙ
Ø§Ù Ø®ÙØ¯ اÙ
ØªÛØ§Ø² بدÙÛØ¯."})]}),!!d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(T.A,{direction:"row",align:"center",spacing:"xSmall",children:[(0,n.jsx)(eL.A,{src:(0,eB.Ay)(s.avatar,"small","avatar"),size:"small"}),(0,n.jsx)(M.A,{weight:600,type:"gray80",children:"".concat(s.name," ").concat(s.lastname)})]}),(0,n.jsxs)(T.A,{direction:"row",spacing:"xSmall",align:"center",justify:"end",children:[(0,n.jsx)(e4,{weight:600,size:"small",type:"gray80",children:d.rating}),(0,n.jsx)(eW.Ay,{showEmpty:!0,rating:d.rating,selectable:!1,size:"small"})]})]})]}),(0,n.jsxs)(e8,{direction:"row",children:[!d&&(0,n.jsx)(f.Ay,{type:"primary",disabled:!m,fullWidth:a,onClick:h,children:"ثبت اÙ
ØªÛØ§Ø²"}),!!d&&(0,n.jsxs)(T.A,{direction:"row",justify:"center",align:"center",spaceAfter:"normal",spacing:"xxSmall",children:[(0,n.jsx)(M.A,{weight:600,size:"small",type:"info",onClick:()=>x(e=>!e),children:g?"Ø¨Ø³ØªÙ Ø¬Ø²Ø¦ÛØ§Øª":"Ø¬Ø²Ø¦ÛØ§Øª اÙ
ØªÛØ§Ø²"}),(0,n.jsx)(e6,{iconName:g?"arrow-up":"arrow-down",color:"info"})]})]}),!!d&&(0,n.jsxs)(e2,{hide:!g,children:[(0,n.jsx)(eF.A,{}),(0,n.jsx)(e9,{direction:"column",spacing:"xSmall",children:eG.map(e=>(0,n.jsxs)(e7,{direction:"row",align:"center",justify:"between",children:[(0,n.jsx)(M.A,{weight:600,type:"gray90",children:e.title}),(0,n.jsxs)(T.A,{direction:"row",spacing:"xSmall",align:"center",justify:"end",children:[(0,n.jsx)(te,{weight:600,size:"small",type:"gray80",children:null==d?void 0:d.ratings[e.name]}),(0,n.jsx)(eW.Ay,{showEmpty:!0,rating:null==d?void 0:d.ratings[e.name],selectable:!1,size:"small"})]})]},e.name))})]})]})}),u&&(0,n.jsx)(eZ,{onRatingGuestCompleted:e=>c(e),onClose:p,reserveId:t})]})};var e6=(0,D.Ay)(el.A).withConfig({componentId:"sc-a1cee1fd-1"})({marginTop:"-2px"}),e3=(0,D.Ay)(T.A).withConfig({componentId:"sc-a1cee1fd-2"})({width:"100%"}),e8=(0,D.Ay)(T.A).withConfig({componentId:"sc-a1cee1fd-3"})({width:"100%"}),e7=(0,D.Ay)(T.A).withConfig({componentId:"sc-a1cee1fd-4"})({width:"100%"}),e9=(0,D.Ay)(T.A).withConfig({componentId:"sc-a1cee1fd-5"})({width:"100%"}),e4=(0,D.Ay)(M.A).withConfig({componentId:"sc-a1cee1fd-6"})({marginLeft:"4px"}),te=(0,D.Ay)(M.A).withConfig({componentId:"sc-a1cee1fd-7"})({marginLeft:"4px"}),tt=l(64971),tl=l(43911),tn=l(53970),ti=l(36356),ts=l(80558);let tr=e=>{let{onClose:t,onSuccess:l,bookId:i}=e,[s,r]=(0,o.useState)(!1),h=(0,o.useCallback)(()=>{r(!0),(0,et.A)({eventName:"reserveId.request.accept",category:"Reserve Id Page",action:"accept request",integrations:["gtag"]}
1),d.A.reservesIdAcceptPostApi({id:i}).then(e=>{200==e.status&&((0,c.A)({type:"success",textKey:"reserve.verified"}),r(!1),null==l||l())}).catch(e=>{(0,u.Ay)(e,{422:e=>(0,u.lj)(e,()=>{var t,l;(null==(l=e.response)||null==(t=l.data)?void 0:t.slug)=="BOOK_STATUS_INVALID"&&setTimeout(()=>{a().reload()},1e3)})}),r(!1)})},[i,l]);return(0,n.jsxs)(J.Ay,{size:"small",onClose:t,children:[(0,n.jsx)(J.rQ,{title:"Ø¢ÛØ§ از تاÛÛØ¯ Ø±Ø²Ø±Ù Ø®ÙØ¯ Ù
Ø·Ù
Ø¦Ù ÙØ³ØªÛدØ"}),(0,n.jsx)(J.jl,{children:(0,n.jsxs)(T.A,{justify:"between",children:[(0,n.jsx)(f.Ay,{onClick:t,type:"light",fullWidth:!0,children:"Ø®ÛØ±"}),(0,n.jsx)(f.Ay,{onClick:h,loading:s,fullWidth:!0,children:"تاÛÛØ¯ رزرÙ"})]})})]})};var ta=l(4195),to=l(11528),td=l(54241),tc=l(5068);let tu=o.memo(e=>{let{roomId:t}=e,l=(0,E.A)(["calendar"]),[i,s]=(0,o.useState)([]),[r,a]=(0,o.useState)(null),d=(0,o.useCallback)((e,l)=>to.A.postNights({roomId:t,disableCount:+!!e,dates:[l]}),[t]),c=(0,o.useCallback)(e=>{e.isStandard&&!e.isBeforeToday&&1!=e.booksCount&&(s(t=>[...t.filter(t=>!(0,eO.ro)(t.dayObject,e.dayObject)),{...t.find(t=>(0,eO.ro)(t.dayObject,e.dayObject)),isLoading:!0}]),d(!e.isUnavailable,e.dayObject).then(e=>{s(e.data.nights)}).catch(t=>{(0,u.Ay)(t),s(t=>[...t.filter(t=>!(0,eO.ro)(t.dayObject,e.dayObject)),{...t.find(t=>(0,eO.ro)(t.dayObject,e.dayObject)),isLoading:!1}])}))},[d]);return(0,o.useEffect)(()=>{let e=tc.A.CancelToken.source();return to.A.getNights({roomId:t,full:!0},e.token).then(e=>{s(e.data.nights),a(e.data.room)}).catch(u.Ay),()=>{e.cancel("Cancelling in cleanup")}},[t]),(0,n.jsx)(td.A,{side:"host",unitsCount:null==r?void 0:r.unitsCount,renderMonthCount:1,calendarData:i.map(e=>
11==e.booksCount?{...e,onlyShowTooltip:!0,isCustomPrice:!1,tooltipContent:l("calendar.roomCalendar.dayDeactivate.tooltipContent")}:1==e.disableCount?{...e,isCustomPrice:!1,price:null}:{...e,isCustomPrice:!1}),onChange:c,isLoading:0===i.length})});tu.displayName="CalendarRoomDayDeactivate";let th=e=>{let{roomId:t,unitsCount:l}=e;return 1==l?(0,n.jsx)(tu,{roomId:t}):(0,n.jsx)(ta.A,{roomId:t,showOneSection:"disableCount"})},tp=e=>{let{roomId:t}=e;return(0,n.jsx)(ta.A,{roomId:t,showOneSection:"price"})};var tg=l(6766),tx=l(23298);let tm=[{title:"Ø§ÙØ§Ù
تگا٠پر شد٠است",declineMode:"full",description:"ÙØ·Ùا Ø±ÙØ²âÙØ§Û پرشد٠را در تÙÙÛÙ
Ù
شخص Ú©ÙÛØ¯"},{title:"Ø§ÙØ§Ù
تگا٠آÙ
اد٠ÙÛØ³Øª",declineMode:"notPrepare",description:"ÙØ·Ùا تÙÙÛÙ
Ø§ÙØ§Ù
تگا٠را بÙâØ±ÙØ²Ø±Ø³Ø§ÙÛ Ú©ÙÛØ¯"},{title:"ÙØ±Ø® اجارÙâØ¨ÙØ§ اشتبا٠است",declineMode:"price",description:"ÙØ·Ùا ÙØ±Ø® Ø§ÙØ§Ù
تگا٠را بÙâØ±ÙØ²Ø±Ø³Ø§ÙÛ Ú©ÙÛØ¯"},{title:"Ø³Ø§ÛØ± Ù
ÙØ§Ø±Ø¯",declineMode:"other",description:"Ø¹ÙØª رد رزر٠را ØªÙØ¶ÛØ Ø¯ÙÛØ¯"}],tA=e=>{let{setState:t,otherReason:l,selectedItem:i}=e,s=(0,o.useCallback)(e=>{t(t=>({...t,otherReason:e.target.value}))},[t]),r=(0,o.useCallback)(e=>{t(t=>({...t,selectedItem:e}))},[t]);return(0,n.jsxs)(T.A,{children:[(0,n.jsx)(tg.A,{type:"separated",children:tm.map(e=>(0,n.jsx)(tg.A.Item,{children:(0,n.jsx)(es.A,{checked:i==e.declineMode,onChange:()=>r(e.declineMode),label:e.title})},e.declineMode))}),"other"==i&&(0,n.jsx)(tx.A,{maxLength:200,value:l,onChange:s})]})},ty=e=>{let{declineMode:t,setState:l,roomId:i,otherReason:s,selectedItem:r,unitsCount:a}=e;switch(t){case"full":case"notPrepare":return(0,n.jsx)(th,{roomId:i,unitsCount:a});case"price":return(0,n.jsx)(tp,{roomId:i});default:return(0,n.jsx)(tA,{setState:l,otherReason:s,selectedItem:r})}},tj=e=>{let{onClose:t,onSuccess:l,bookId:i,roomId:s,unitsCount:r}=e,[h,p]=(0,o.useState)({declineMode:"selectMode",selectedItem:null,isLoadingMod:"none",otherReason:""}),g=(0,o.useCallback)(()=>{"selectMode"==h.declineMode?t():l()},[t,l,h.declineMode]),x=(0,o.useCallback)(()=>{if("selectMode"==h.declineMode){var e;p(e=>({...e,isLoadingMod:"cancelClick"})),(0,et.A)({eventName:"reserveId.request.cancel",eventValue:h.selectedItem,category:"Reserve Id Page",action:"cancel request",label:h.selectedItem,integrations:["gtag"]}),d.A.reservesIdCancelPostApi({id:i,reason:"other"==h.selectedItem?h.otherReason:null==(e=tm.find(e=>e.declineMode==h.selectedItem))?void 0:e.title}).then(e=>{200==e.status?"other"!=h.selectedItem?p(e=>({...e,isLoadingMod:"none",declineMode:e.selectedItem})):l():((0,c.A)({textKey:"reserve.warn",type:"error"}),p(e=>({...e,isLoadingMod:"none"})))}).catch(e=>{(0,u.Ay)(e,{422:e=>(0,u.lj)(e,()=>{var t,l;(null==(l=e.response)||null==(t=l.data)?void 0:t.slug)=="BOOK_STATUS_INVALID"&&setTimeout(()=>{a().reload()},1e3)})}),p(e=>({...e,isLoadingMod:"none"}))})}else l()},[i,l,h.declineMode,h.otherReason,h.selectedItem]);return(0,n.jsxs)(J.Ay,{size:"small",onClose:g,children:[(0,n.jsxs)(J.fn,{children:[(0,n.jsx)(b.h,{align:"center",type:"title3",spaceAfter:"large",children:"selectMode"==h.declineMode?"Ø¹ÙØª رد رزر٠را Ù
شخص Ú©ÙÛØ¯":tm.find(e=>e.declineMode==h.declineMode).description}),(0,n.jsx)(ty,{declineMode:h.declineMode,setState:p,roomId:s,otherReason:h.otherReason,selectedItem:h.selectedItem,unitsCount:r})]}),(0,n.jsx)(J.jl,{children:(0,n.jsxs)(T.A,{justify:"between",children:["selectMode"==h.declineMode&&(0,n.jsx)(f.Ay,{onClick:g,type:"light",fullWidth:!0,children:"بازگشت"}),(0,n.jsx)(f.Ay,{fullWidth:!0,disabled:!h.selectedItem&&"other"!=h.selectedItem||"other"==h.selectedItem&&!h.otherReason,onClick:x,type:"selectMode"==h.declineMode?"primary":"light",loading:"cancelClick"==h.isLoadingMod,children:"selectMode"==h.declineMode?"رد رزرÙ":"تاÛÛØ¯"})]})})]})},tv=(0,D.Ay)(T.A).withConfig({componentId:"sc-7ab31fba-0"})(["border:2px dashed red;border-radius:16px;padding:8px;max-width:600px;margin:0px auto 16px;align-items:center;"]),tf=e=>{let{badgeLabel:t,description:l}=e;return(0,n.jsxs)(tv,{children:[(0,n.jsx)(eI.Ay,{type:"criticalInverted",children:t}),(0,n.jsxs)(M.A,{size:"small",children:[l," "]})]})},tI=o.memo(e=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(tb,{direction:"row",justify:"between",children:[(0,n.jsx)(f.Ay,{onClick:()=>e.setShowModal("cancel"),fullWidth:!0,type:"light",children:"رد Ø¯Ø±Ø®ÙØ§Ø³Øª"}),(0,n.jsx)(f.Ay,{onClick:()=>e.setShowModal("accept"),fullWidth:!0,type:"primary",children:"تاÛÛØ¯ Ø¯Ø±Ø®ÙØ§Ø³Øª"})]})}));tI.displayName="ReserveRequestActionBar";var tb=(0,D.Ay)(T.A).withConfig({componentId:"sc-4b558db5-0"})({width:"100%"});let tC=(0,D.Ay)(T.A).withConfig({componentId:"sc-b0749a76-0"})(["border-radius:8px;border:1px solid #dadada;padding:8px;"]),tw=()=>{var e,t,l,i,s,r,a,d,c,u,h,p,g,x,m,A,j,v,f,I,C,w,k,D,S,T,P,_,N,z,L,W,F,O,B;let G=y(),[U,V]=(0,o.useState)(null),{lang:q}=(0,ev.s9)(),X=(0,tn.A)(!0),H=(0,E.A)(["tripsId"]),Q=(0,o.useCallback)(()=>{V(null),(0,ti.A)(0,!1,"ReserveRequestOnSuccess"),setTimeout(()=>{window.location.reload()},200)},[]),K=(0,o.useCallback)(()=>{V(null)},[]),Y=(0,o.useMemo)(()=>{var e;if(!(null==X?void 0:X.todayWithoutTime)||(null==G||null==(e=G.reserveIdData)?void 0:e.status)!=="requested")return!1;let t=(0,eO.Ai)(X.todayWithoutTime,-1);return(0,eO.ro)(null==G?void 0:G.reserveIdData.checkin,t)},[null==G||null==(e=G.reserveIdData)?void 0:e.checkin,null==G||null==(t=G.reserveIdData)?void 0:t.status,null==X?void 0:X.todayWithoutTime]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(tt.A,{entranceTime:null==G||null==(l=G.reserveIdData)?void 0:l.entranceTime,leavingTime:null==G||null==(i=G.reserveIdData)?void 0:i.leav
1ingTime,checkin:null==G||null==(s=G.reserveIdData)?void 0:s.checkin,checkout:null==G||null==(r=G.reserveIdData)?void 0:r.checkout,staysCount:null==G||null==(a=G.reserveIdData)?void 0:a.staysCount,totalGuests:null==G||null==(c=G.reserveIdData)||null==(d=c.guests)?void 0:d.total,additionalGuests:null==G||null==(h=G.reserveIdData)||null==(u=h.guests)?void 0:u.extra}),!!(null==G||null==(p=G.reserveIdData)?void 0:p.agreements)&&(0,n.jsxs)(tC,{direction:"column",spaceAfter:"medium",fullWidth:!0,children:[(0,n.jsx)(M.A,{weight:"bold",children:H("tripsId.bookingInfo.agreements")}),(0,n.jsx)(M.A,{children:null==G||null==(g=G.reserveIdData)?void 0:g.agreements})]}),(!(null==G||null==(m=G.reserveIdData)||null==(x=m.claim)?void 0:x.status)||(null==G||null==(j=G.reserveIdData)||null==(A=j.claim)?void 0:A.status)=="finished")&&(0,n.jsx)(tl.A,{status:null==G||null==(v=G.reserveIdData)?void 0:v.status,data:null==G?void 0:G.reserveIdData,bookId:null==G||null==(f=G.reserveIdData)?void 0:f.id,side:"host",onlyButton:!0}),(null==G||null==(I=G.reserveIdData)?void 0:I.status)=="requested"&&(0,n.jsxs)(tE,{direction:"column",justify:"center",align:"center",children:[(null==(w=G.reserveIdData)||null==(C=w.guest)?void 0:C.isForeign)&&(0,n.jsx)(eI.Ay,{icon:"language",children:"Ù
ÙÙ
ا٠خارجÛ"}),Y&&(0,n.jsx)(R.Ay,{type:"critical",spaceAfter:"medium",icon:"Warning-outline",children:"ØªÙØ¬Ù: اÛ٠رزر٠شباÙگاÙÛ ÙÛÚÙ ÙØ±Ùد بعد از ÙÛÙ
٠شب Ù
Û Ø¨Ø§Ø´Ø¯Ø ØªÙØµÛÙ Ù
ÛâØ´ÙØ¯ تÙÙØ§ Ø¯Ø±ØµÙØ±Øª اÙ
کا٠تØÙÛ٠شباÙÙ Ø±ÙØ²Û Ø§ÙØ§Ù
تگا٠ب٠Ù
ÙÙ
Ø§ÙØ رزر٠را تاÛÛØ¯ Ú©ÙÛØ¯."}),(null==(k=G.reserveIdData)?void 0:k.isNowruz)&&(0,n.jsx)(tf,{badgeLabel:"رزر٠ÙÙØ±ÙزÛ",description:"ØªÙØ¬Ù Ø¯Ø§Ø´ØªÙ Ø¨Ø§Ø´ÛØ¯ اÛ٠رزر٠در Ø§ÛØ§Ù
ÙÙØ±Ùز Ù
ÛâØ¨Ø§Ø´Ø¯"}),(null==(D=G.reserveIdData)?void 0:D.isPeak)&&!(null==(S=G.reserveIdData)?void 0:S.isNowruz)&&(0,n.jsx)(tf,{badgeLabel:"رزر٠پÛÚ©",description:"ØªÙØ¬Ù Ø¯Ø§Ø´ØªÙ Ø¨Ø§Ø´ÛØ¯ اÛ٠رزر٠در Ø§ÛØ§Ù
Ù¾ÛÚ© Ù
ÛâØ¨Ø§Ø´Ø¯"}),(0,n.jsxs)(tk,{justify:"between",children:[(0,n.jsx)(b.h,{type:"title4",spaceAfter:"none",children:"Ù
Ø¨ÙØº Ø¯Ø±ÛØ§ÙØªÛ Ø´Ù
ا:"}),(0,n.jsx)(b.h,{type:"title4",children:(0,ts.A)((null==(P=G.reserveIdData)||null==(T=P.bill)?void 0:T.amount)-(null==(N=G.reserveIdData)||null==(_=N.bill)?void 0:_.hostServiceFee)-(null==(L=G.reserveIdData)||null==(z=L.bill)?void 0:z.hostArzeshafzodeh),q,!0)})]}),(0,n.jsx)(tI,{setShowModal:V})]}),"accept"==U&&(0,n.jsx)(tr,{onClose:K,onSuccess:Q,bookId:G.bookId}),"cancel"==U&&(0,n.jsx)(tj,{bookId:G.bookId,unitsCount:null==(F=G.reserveIdData)||null==(W=F.room)?void 0:W.unitsCount,roomId:null==(B=G.reserveIdData)||null==(O=B.room)?void 0:O.id,onClose:K,onSuccess:Q})]})};var tk=(0,D.Ay)(T.A).withConfig({componentId:"sc-b0749a76-1"})(["background:#e3e3e3;padding:8px;border-radius:8px;width:80%;"]),tE=(0,D.Ay)(T.A).withConfig({componentId:"sc-b0749a76-2"})({width:"100%"});let tD=()=>{var e,t,l,i,s,r,a;let d=(0,E.A)(["reserveId","tripsId"]),{reserveIdData:c,bookId:u}=y(),h=j(),p=(0,o.useMemo)(()=>(0,z.mm)(null==c?void 0:c.status,"host"),[null==c?void 0:c.status]),g=(0,k.al)(),x=(0,o.useRef)(null),m=e=>{let{additionalTime:t,onCompleted:l}=e;h({type:"EXTEND_EXPIRATION",payload:{reserveId:u,additionalTime:t,onCompleted:l}})};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(T.A,{children:[(0,n.jsx)(V.A,{status:null==c?void 0:c.status,expiredRemained:null==c?void 0:c.expiredRemained,isInstant:null==c?void 0:c.isInstant,roomData:null==c?void 0:c.room,mod:"host",settledAt:null==c?void 0:c.settledAt,expireExtensions:null==c?void 0:c.expireExtensions,onExtendExpiration:m}),["accepted","requested"].includes(null==c||null==(e=c.bookEdit)?void 0:e.status)&&(0,n.jsx)(eN,{}),(0,n.jsx)(ez,{}),(0,n.jsx)(eD,{claim:null==c?void 0:c.claim,bookId:u,checkIn:null==c?void 0:c.checkin}),(0,n.jsx)(q.A,{manualPay:null==c||null==(t=c.bill)?void 0:t.manualPay,mod:"host",payable:null==c||null==(l=c.bill)?void 0:l.payable}),(null==c||null==(i=c.guest)?void 0:i.isForeign)&&(0,n.jsx)(R.Ay,{type:"warning",icon:"Translate",title:d("reserveId.isForeign.title"),children:d("reserveId.isForeign.description")}),g&&(null==c?void 0:c.status)=="requested"&&(0,n.jsx)(C.A,{children:(0,n.jsx)(tw,{})}),(0,n.jsx)(L.A,{reason:null==c?void 0:c.cancellationReason}),(0,n.jsx)(W.A,{mode:"host",bookingData:c,cancelingSectionRef:x,onExtendExpiration:m,onHostDiscount:e=>{let{amount:t,onComplete:l}=e;h({type:"SET_HOST_DISCOUNT",payload:{amount:t,reserveId:u,onComplete:l}})}}),(0,n.jsx)(X.A,{guest:null==c?void 0:c.guest,assignee:null==c?void 0:c.assignee,status:null==c?void 0:c.status,side:"host"}),!!c&&(0,n.jsx)(e5,{...c}),(0,n.jsx)(O.A,{status:null==c?void 0:c.status,mod:"host"}),g&&!!c&&(null==c?void 0:c.status)!="requested"&&(0,n.jsx)(U.A,{heading:(0,n.jsxs)(T.A,{direction:"row",align:"center",children:[(0,n.jsx)(tS,{size:"large",weight:"bold",children:d("tripsId.bookingInfo.heading")}),(0,n.jsxs)(M.A,{size:"small",children:["(",null==c?void 0:c.id,")"]})]}),children:(0,n.jsx)(tw,{})}),(0,n.jsx)(U.A,{heading:d("reserveId.reserveIdPage.bill"),children:(0,n.jsx)(P.A,{billData:null==c?void 0:c.bill,bookStatus:null==c?void 0:c.status,cancellationBillData:null==c?void 0:c.cancellationBill,userRole:"host",isCancelled:p})}),(0,n.jsx)(G.A,{room:null==c?void 0:c.room,mod:"host"}),(0,n.jsx)(U.A,{heading:d("reserveId.reserveIdPage.roomRules"),children:(0,n.jsx)(_.A,{showTipAlert:!0,activeRules:null==c||null==(s=c.room)?void 0:s.rules,additionalRules:null==c||null==(r=c.room)?void 0:r.additionalRules,isForeignGuest:null==c||null==(a=c.guest)?void 0:a.isForeign})}),(0,n.jsxs)(U.A,{heading:d("reserveId.reserveIdPage.cancelReservation"),ref:x,hide:(null==c?void 0:c.status)=="finished",children:[(0,n.jsx)(N.A,{userRole:"host",type:null==c?void 0:c.cancellationPolicy,isNowruz:null==c?void 0:c.isNowruz,checkIn:null==c?void 0:c.checkin,checkout:null==c?void 0:c.checkout,peakDates:null==c?void 0:c.peakDates,peakStart:null==c?void 0:c.peakStart,exactType:"roughly",feePercent:H.MN+H.Ag}),!p&&(0,n.jsx)(F.A,{userRole:"host",billData:null==c?void 0:c.bill,status:null==c?void 0:c.status,bookId:u,cancellationEarly:!1})]}),!!(null==c?void 0:c.status)&&(0,n.jsx)(ep,{...c}),(0,n.jsx)(B.A,{})]})})};var tS=(0,D.Ay)(M.A).withConfig({componentId:"sc-ec59a8d6-0"})({marginLeft:"8px"});let tR=o.memo(()=>{let e=(0,E.A)(["reserveId"]);return(0,n.jsx)(f.Ay,{href:"/reserves",iconLeft:"arrow-left",type:"light",children:e("reserveId.reserveIdPage.backButton")})});tR.displayName="Back";let tT=(0,D.Ay)(I.A.Col).withConfig({componentId:"sc-cf017754-0"})(["position:sticky;top:80px;"]),tM=(0,D.Ay)(b.h).withConfig({componentId:"sc-cf017754-1"})(["&&{","}"],S.A.tablet((0,D.AH)(["background-color:#333;color:white;margin:-16px -1rem 8px -1rem;padding:8px 1rem;
1"]))),tP=()=>{var e;let t=(0,E.A)(["reserveId","tripsId"]),{reserveIdData:l}=y(),i=(0,k.al)();return(0,n.jsx)(w.A,{title:t("reserveId.reserveIdPage.title",{word1:(null==l||null==(e=l.room)?void 0:e.title)||""}),action:(0,n.jsx)(tR,{}),hidePlacepicker:!0,children:(0,n.jsx)(t_,{containerMode:"normal",isStandalone:!0,children:(0,n.jsxs)(I.A.Row,{children:[(0,n.jsx)(I.A.Col,{col:12,md:{col:8},children:(0,n.jsx)(tD,{})}),(0,n.jsx)(tT,{col:4,children:!i&&(0,n.jsxs)(C.A,{children:[(0,n.jsx)(tM,{type:"title3",spaceAfter:"large",children:t("tripsId.bookingInfo.heading")}),(0,n.jsx)(tw,{})]})})]})})})};var t_=(0,D.Ay)(v.A.FrontLayer).withConfig({componentId:"sc-cf017754-2"})({backgroundColor:"#F5F5F5",paddingTop:"1rem"});let tN=()=>(0,n.jsx)(A,{children:(0,n.jsx)(tP,{})})},78384:(e,t,l)=>{"use strict";l.d(t,{A:()=>E});var n=l(37876),i=l(37363),s=l(67899),r=l(81526),a=l(30131),o=l(54691),d=l(47772),c=l(12819),u=l(72674),h=l(18847),p=l.n(h),g=l(14232),x=l(21626),m=l(94189),A=l(88309),y=l(68757),j=l(10707),v=l(92592);let f=(0,x.Ay)(r.A).withConfig({componentId:"sc-47ac157d-0"})(["padding:0.75rem 1rem;border:1px dashed #ff0000;border-radius:1rem;margin:1rem 0;"]),I=e=>{let t=(0,v.al)();return(0,n.jsxs)(a.A,{size:t?"small":"normal",children:[(0,n.jsx)(C,{element:"span",weight:"bold",type:e.TextType,children:e.title}),e.description]})},b=e=>{let t=(0,c.A)(["roomCancellation"]),{lang:l}=(0,d.s9)();return(0,n.jsx)(f,{align:"center",fullWidth:!0,children:(0,n.jsxs)(a.A,{element:"div",weight:"bold",type:"critical",children:["host"==e.userRole?"ÙØºÙ Ø±Ø²Ø±Ù ØªÙØ³Ø· Ù Ù٠ا٠(در تعطÛÙØ§Øª ÙÙØ±Ùز)":"ÙØºÙ رزر٠در تعطÛÙØ§Øª ÙÙØ±Ùز",(0,n.jsx)(I,{title:(0,y.s8)("".concat((0,m.uU)(e.peakStart,-10,!0,t,l),": "),l,!e.isVoucher),description:(0,m.B5)(t,l).peak.exactly.getPolicy(e.peakStart,e.feePercent,e.peakStart,"host"==e.userRole)[0].description}),(0,n.jsx)(I,{title:(0,y.s8)("".concat((0,m.uU)(e.peakStart,-10,!1,t,l),": "),l,!e.isVoucher),description:(0,m.B5)(t,l).peak.exactly.getPolicy(e.peakStart,e.feePercent,e.peakStart,"host"==e.userRole)[1].description})]})})};var C=(0,x.Ay)(a.A).withConfig({componentId:"sc-47ac157d-1"})({fontSize:"12px"});let w=p()({loader:()=>l.e(9931).then(l.bind(l,45769)),loading:e=>(0,n.jsx)(i.A,{...e,loadingType:"page",id:"CancellationPolicyModal"}),ssr:!1},{loadableGenerated:{webpack:()=>[45769]}}),k=(0,x.Ay)(r.A).withConfig({componentId:"sc-817b9b5c-0"})(["&.showBorder{padding:0.75rem 1rem;border:1px dashed #ff0000;border-radius:1rem;margin:1rem 0;width:100%;}"]),E=(0,g.memo)(e=>{var t;let{isNowruz:l,isVoucher:i,type:h,checkIn:p,peakStart:g,userRole:x,hideBorder:v,feePercent:f,exactType:I,peakDates:C,checkout:E}=e,S=(0,c.A)(["roomCancellation"]),{lang:R}=(0,d.s9)(),[T,M,P]=(0,u.A)(!1);return(0,n.jsx)(n.Fragment,{children:l?(0,n.jsx)(b,{isVoucher:i,feePercent:f,peakStart:g,userRole:x}):(0,n.jsxs)(n.Fragment,{children:[T&&(0,n.jsx)(w,{initialActiveTab:h,checkin:p,peakStart:g,feePercent:f,onClose:P}),(0,n.jsxs)(k,{className:(0,A.A)(!v&&"showBorder"),children:[(0,n.jsx)(a.A,{element:"div",type:"gray60",align:"justify",children:h&&(0,n.jsxs)(n.Fragment,{children:["host"==x&&(0,n.jsx)(a.A,{weight:"bold",type:"critical",children:S("roomCancellation.guestReserveCancel")}),(null==C?void 0:C.length)!=(0,y.h1)(p,E)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{weight:"bold",children:"".concat(null==(t=(0,m.B5)(S,R)[h])?void 0:t.title,": ")}),p&&(0,m.B5)(S,R)[h][I].getPolicy?(0,m.B5)(S,R)[h][I].getPolicy(p,f,g,"host"==x).map((e,t)=>(0,n.jsx)(a.A,{element:"div",children:(0,n.jsxs)(a.A,{weight:"bold",size:"small",type:"peak"==h?"critical":"gray90",children:[(0,y.s8)(e.title,R,!i)," "," : ",(0,n.jsx)(a.A,{element:"span",children:(0,y.s8)(e.description,R,!i)})]})},t)):(0,y.s8)((0,m.B5)(S,R)[h][I].description(f),R,!i)]}),(null==C?void 0:C.length)>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(D,{weight:"bold",type:"critical",children:[S("roomCancellation.policy.peak.title"),":"," ".concat((0,j.A)(C,R))]}),(0,m.B5)(S,R).peak[I].getPolicy(p,f,g,"host"==x).map((e,t)=>(0,n.jsx)(a.A,{element:"div",children:(0,n.jsxs)(a.A,{weight:"bold",size:"small",type:"gray90",children:[(0,y.s8)(e.title,R,!i)," "," : ",(0,n.jsx)(a.A,{element:"span",children:(0,y.s8)(e.description,R,!i)})]})},t))]}),!i&&"exactly"!=I&&(0,n.jsx)(o.Ay,{onClick:M,children:S("roomCancellation.moreInfo")})]})}),!h&&(0,n.jsxs)(r.A,{direction:"column",children:[(0,n.jsx)(s.A,{width:"100px",height:"20px"}),(0,n.jsx)(s.A,{width:"150px",height:"20px"})]})]})]})})});var D=(0,x.Ay)(a.A).withConfig({componentId:"sc-817b9b5c-1"})({marginTop:"8px"})}},e=>{e.O(0,[9086,1064,975,8558,2431,6431,6136,8845,1610,6173,114,8576,2689,9562,5734,4195,636,6593,8792],()=>e(e.s=40380)),_N_E=e.O()}]); 2//# sourceMappingURL=[id]-00045f103ed749a2.js.map
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.