PageSourceSearch

https://lidomatrip.com/_next/static/chunks/3776-d79d346131806f5c.js

js lidomatrip.com collected 2026-09-25 07:12:55 UTC 25,535 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3776],{70530:function(e,t,n){n.d(t,{Pi:function(){return j},_U:function(){return f},bB:function(){return g},bE:function(){return m},cc:function(){return u},k9:function(){return y},tf:function(){return w},uv:function(){return o},v3:function(){return x}});var r=n(47568),a=n(26042),i=n(70655),s=n(57149),l=function(e){return null==e?void 0:e.data};function o(e){return c.apply(this,arguments)}function c(){return(c=(0,r.Z)(function(e){var t;return(0,i.__generator)(this,function(n){switch(n.label){case 0:return[4,s.Z.setUrl("/api/conversations").setCallMethod("GET").setParams((0,a.Z)({},e.type?{type:e.type}:{},e.cursor?{cursor:e.cursor}:{},e.take?{take:e.take}:{})).call()];case 1:return[2,null!==(t=l(n.sent()))&&void 0!==t?t:{items:[],next_cursor:null}]}})})).apply(this,arguments)}function u(e){return d.apply(this,arguments)}function d(){return(d=(0,r.Z)(function(e){var t;return(0,i.__generator)(this,function(n){switch(n.label){case 0:return[4,s.Z.setUrl("/api/conversations/".concat(e)).setCallMethod("GET").call()];case 1:return[2,null!==(t=l(n.sent()))&&void 0!==t?t:null]}})})).apply(this,arguments)}function f(e){return h.apply(this,arguments)}function h(){return(h=(0,r.Z)(function(e){var t,n,r=arguments;return(0,i.__generator)(this,function(a){switch(a.label){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:{},[4,s.Z.setUrl("/api/conversations/".concat(e,"/messages")).setCallMethod("GET").setParams(t).call()];case 1:return[2,null!==(n=l(a.sent()))&&void 0!==n?n:{items:[],has_more:!1,next_before:null}]}})})).apply(this,arguments)}function m(e,t){return p.apply(this,arguments)}function p(){return(p=(0,r.Z)(function(e,t){var n,r;return(0,i.__generator)(this,function(a){switch(a.label){case 0:return[4,s.Z.setUrl("/api/conversations/".concat(e,"/messages")).setCallMethod("POST").setBody(t).call()];case 1:if((null==(n=a.sent())?void 0:n.status)!=="success")throw Error((null==n?void 0:n.message)||"ارسال پیام انجام نشد");return[2,null!==(r=l(n))&&void 0!==r?r:null]}})})).apply(this,arguments)}function x(e,t){return v.apply(this,arguments)}function v(){return(v=(0,r.Z)(function(e,t){return(0,i.__generator)(this,function(n){return[2,s.Z.setUrl("/api/conversations/".concat(e,"/read")).setCallMethod("POST").setBody(t?{last_message_id:t}:{}).call()]})})).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=(0,r.Z)(function(e){return(0,i.__generator)(this,function(t){return[2,s.Z.setUrl("/api/conversations/".concat(e,"/typing")).setCallMethod("POST").setBody({}).call()]})})).apply(this,arguments)}function y(){return _.apply(this,arguments)}function _(){return(_=(0,r.Z)(function(){var e,t;return(0,i.__generator)(this,function(n){switch(n.label){case 0:return[4,s.Z.setUrl("/api/conversations/unread-count").setCallMethod("GET").call()];case 1:return[2,null!==(t=null===(e=l(n.sent()))||void 0===e?void 0:e.count)&&void 0!==t?t:0]}})})).apply(this,arguments)}function j(){return N.apply(this,arguments)}function N(){return(N=(0,r.Z)(function(){var e,t;return(0,i.__generator)(this,function(n){switch(n.label){case 0:return[4,s.Z.setUrl("/api/conversations/support").setCallMethod("POST").setBody({}).call()];case 1:return[2,null!==(t=null===(e=l(n.sent()))||void 0===e?void 0:e.id)&&void 0!==t?t:null]}})})).apply(this,arguments)}function w(){return("undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2))).replace(/-/g,"").slice(0,32)}},34051:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(47568),a=n(26042),i=n(69396),s=n(10253),l=n(36305),o=n(70655),c=n(85893),u=n(79121),d=n(25675),f=n.n(d),h=n(41664),m=n.n(h),p=n(67294),x=n(85945),v=n(36492),g=n(48228),b=n(70530),y=n(63871),_=n(45551),j=n(68398),N=function(e){var t=e.disabled,n=e.isDesktop,r=e.placeholder,a=e.onSend,i=e.onTyping,l=(0,s.Z)((0,p.useState)(""),2),o=l[0],u=l[1],d=(0,p.useRef)(null),f=(0,p.useRef)(0);(0,p.useEffect)(function(){var e=d.current;e&&(e.style.height="auto",e.style.height="".concat(Math.min(e.scrollHeight,140),"px"))},[o]);var h=function(){var e=o.trim();e&&!t&&(u(""),a(e))},m=function(e){if(u(e),i){var t=Date.now();t-f.current<3e3||(f.current=t,i())}};return(0,c.jsxs)("form",{onSubmit:function(e){e.preventDefault(),h()},className:"flex items-end gap-x-10 border-t-1 border-solid border-gray-F0F0F0 bg-white px-14 py-12 pb-[max(12px,env(safe-area-inset-bottom))]",children:[(0,c.jsx)("label",{htmlFor:"chat-composer",className:"sr-only",children:"نوشتن پیام"}),(0,c.jsx)("textarea",{id:"chat-composer",ref:d,rows:1,value:o,disabled:t,placeholder:null!=r?r:"پیام خود را بنویسید…",onChange:function(e){return m(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&n&&!e.shiftKey&&(e.preventDefault(),h())},className:"max-h-[140px] flex-1 resize-none rounded-20 border-1 border-solid border-transparent bg-gray-F8F8F8 px-16 py-11 text-14 leading-24 font-r text-black outline-none transition-colors placeholder:text-gray-A9B1BC focus:border-primary-main focus:bg-white disabled:opacity-60"}),(0,c.jsx)("button",{type:"submit",disabled:t||!o.trim(),"aria-label":"ارسال پیام",className:"flex h-[44px] w-[44px] shrink-0 items-center justify-center rounded-full bg-primary-main text-white shadow-lg transition-all hover:opacity-90 active:scale-95 disabled:cursor-not-allowed disabled:opacity-30 disabled:shadow-none",children:(0,c.jsx)("i",{"aria-hidden":"true",className:"icon-SendMessage text-19"})})]})},w=n(56050),C=function(e){var t=e.message,n=e.isMine,r=e.peerReadUpTo,a=e.grouped,i=e.onRetry,s="ADMIN"===t.sender_role,l=n&&null!==r&&t.id<=r&&!t.pen
1ding;return t.deleted?(0,c.jsx)("div",{className:"flex ".concat(n?"justify-start":"justify-end"," ").concat(a?"mt-4":"mt-14"),children:(0,c.jsx)("div",{className:"rounded-16 border-1 border-dashed border-gray-CACFD3 px-14 py-8 text-12 leading-20 font-r text-gray-A9B1BC",children:"این پیام حذف شد"})}):(0,c.jsx)("div",{className:"flex ".concat(n?"justify-start":"justify-end"," ").concat(a?"mt-4":"mt-14"),children:(0,c.jsxs)("div",{className:"flex max-w-[85%] flex-col md:max-w-[68%]",children:[s&&!n&&!a&&(0,c.jsxs)("span",{className:"mb-5 flex items-center gap-x-4 px-2 text-11 leading-16 font-m text-primary-dark",children:[(0,c.jsx)("i",{"aria-hidden":"true",className:"icon-Information text-14"}),"پشتیبانی لیدوماتریپ"]}),(0,c.jsxs)("div",{className:["rounded-20 px-14 py-9 text-14 leading-24 font-r",n?"rounded-bl-6 bg-primary-main text-black shadow-[0_2px_10px_rgba(3,214,187,0.25)]":s?"rounded-br-6 border-1 border-solid border-primary-main border-opacity-25 bg-primary-light bg-opacity-40 text-black":"rounded-br-6 border-1 border-solid border-gray-F0F0F0 bg-white text-black shadow-[0_1px_2px_rgba(24,39,58,0.04)]",t.pending?"opacity-55":"",t.failed?"border-1 border-solid border-error-light":""].join(" "),children:[t.attachment_url&&(0,c.jsx)("a",{href:t.attachment_url,target:"_blank",rel:"noreferrer",className:"mb-8 block overflow-hidden rounded-14",children:(0,c.jsx)("img",{src:t.attachment_url,alt:t.attachment_name||"پیوست",loading:"lazy",decoding:"async",className:"max-h-[260px] w-full object-cover"})}),t.body&&(0,c.jsx)("p",{className:"whitespace-pre-wrap break-words",children:t.body}),(0,c.jsxs)("div",{className:"mt-5 flex items-center justify-end gap-x-4 text-10 leading-14 ".concat(n?"text-black text-opacity-50":"text-gray-A9B1BC"),children:[(0,c.jsx)("span",{children:(0,w.Bz)(t.created_at)}),n&&!t.failed&&(0,c.jsx)("i",{"aria-hidden":"true",className:"".concat(t.pending?"icon-Timer":l?"icon-DoubleTick":"icon-Tick"," text-12")}),n&&(0,c.jsx)("span",{className:"sr-only",children:t.failed?"ارسال نشد":t.pending?"در حال ارسال":l?"خوانده شد":"ارسال شد"})]})]}),t.failed&&(0,c.jsx)("button",{type:"button",onClick:function(){return null==i?void 0:i(t)},className:"mt-6 self-start px-2 text-11 leading-16 font-m text-error-light hover:underline",children:"ارسال نشد — دوباره تلاش کنید"})]})})},F={BOOKING_CREATED:{bg:"bg-gray-F8F8F8",icon:"icon-Calendar",iconColor:"text-primary-dark",title:"درخواست رزرو ثبت شد"},BOOKING_APPROVED:{bg:"bg-[#F1FAF4]",icon:"icon-Confirmed",iconColor:"text-[#1B8A4B]",title:"رزرو تأیید شد"},BOOKING_COMPLETED:{bg:"bg-[#F1FAF4]",icon:"icon-Confirmed",iconColor:"text-[#1B8A4B]",title:"رزرو تکمیل شد"},BOOKING_CANCELLED:{bg:"bg-[#FDF3F3]",icon:"icon-Close",iconColor:"text-[#C0392B]",title:"رزرو لغو شد"},BOOKING_EXPIRED:{bg:"bg-[#FDF8EE]",icon:"icon-Timer",iconColor:"text-[#B07D1A]",title:"مهلت رزرو تمام شد"},ADMIN_JOINED:{bg:"bg-gray-F8F8F8",icon:"icon-Information",iconColor:"text-gray-6C6A7D",title:"پشتیبانی وارد چت شد"}},D=function(e){var t,n=e.message,r=null!==(t=n.meta)&&void 0!==t?t:{},a=F["string"==typeof r.kind?r.kind:""];return a?(0,c.jsx)("div",{className:"my-14 flex justify-center",children:(0,c.jsxs)("div",{className:"flex items-center gap-x-8 rounded-full px-16 py-8 ".concat(a.bg),children:[(0,c.jsx)("span",{className:"flex h-24 w-24 shrink-0 items-center justify-center rounded-full bg-white ".concat(a.iconColor),children:(0,c.jsx)("i",{"aria-hidden":"true",className:"".concat(a.icon," text-13")})}),(0,c.jsx)("p",{className:"text-12 leading-20 font-m text-gray-6C6A7D",children:a.title}),(0,c.jsxs)("span",{className:"shrink-0 text-10 leading-16 font-r text-gray-A9B1BC",children:[(0,w.cj)(n.created_at)," \xb7 ",(0,w.Bz)(n.created_at)]})]})}):(0,c.jsxs)("div",{className:"mx-auto my-14 flex max-w-[420px] flex-col items-center gap-y-2 rounded-14 bg-gray-F8F8F8 px-16 py-10 text-center",children:[(0,c.jsx)("p",{className:"text-12 leading-20 font-r text-gray-6C6A7D",children:n.body}),(0,c.jsxs)("span",{className:"text-10 leading-16 font-r text-gray-A9B1BC",children:[(0,w.cj)(n.created_at)," \xb7 ",(0,w.Bz)(n.created_at)]})]})},k=function(e){var t,n,d,h=e.conversationId,F=e.meId,k=e.isDesktop,E=e.typingFrom,R=e.onBack,M=(0,x.NL)(),O=(0,p.useRef)(null),B=(0,p.useRef)(!0),T=(0,s.Z)((0,p.useState)(!1),2),S=T[0],A=T[1],I=(0,v.a)({queryKey:["conversation",h],queryFn:function(){return(0,b.cc)(h)},enabled:!!h}).data,Z=(0,v.a)({queryKey:["messages",h],queryFn:function(){return(0,b._U)(h,{take:50})},enabled:!!h}),U=Z.data,L=Z.isLoading,P=null!==(n=null==U?void 0:U.items)&&void 0!==n?n:[],K=P.length?P[P.length-1].id:void 0;(0,p.useEffect)(function(){h&&K&&(0,b.v3)(h,K).then(function(){M.setQueryData(["chat-unread"],function(e){var t,n,r,a;return Math.max(0,(null!=e?e:0)-(null!==(a=null===(t=null===(n=M.getQueryData(["conversations","all"]))||void 0===n?void 0:null===(r=n.items)||void 0===r?void 0:r.find(function(e){return e.id===h}))||void 0===t?void 0:t.unread_count)&&void 0!==a?a:0))}),M.invalidateQueries({queryKey:["conversations"]})})},[h,K,M]),(0,p.useLayoutEffect)(function(){var e=O.current;e&&(B.current?(e.scrollTop=e.scrollHeight,A(!1)):P.length&&A(!0))},[P.length]);var G=(0,g.D)({mutationFn:function(e){return(0,b.bE)(h,{body:e.body,client_nonce:e.nonce})},onMutate:(t=(0,r.Z)(function(e){var t,n,r,a;return(0,o.__generator)(this,function(i){return B.current=!0,t={id:-Date.now(),type:"TEXT",body:e.body,meta:null,deleted:!1,sender_id:F,sender_role:null,sender_name:null,sender_avatar:null,attachment_url:null,attachment_name:null,attachment_size:null,client_nonce:e.nonce,created_at:new Date().toISOString(),pe
1nding:!0},M.setQueryData(["messages",h],function(e){return{items:(0,l.Z)(null!==(n=null==e?void 0:e.items)&&void 0!==n?n:[]).concat([t]),has_more:null!==(r=null==e?void 0:e.has_more)&&void 0!==r&&r,next_before:null!==(a=null==e?void 0:e.next_before)&&void 0!==a?a:null}}),[2]})}),function(e){return t.apply(this,arguments)}),onSuccess:function(e,t){var n,r,a;e&&(M.setQueryData(["messages",h],function(i){return{items:(null!==(n=null==i?void 0:i.items)&&void 0!==n?n:[]).map(function(n){return n.client_nonce===t.nonce?e:n}),has_more:null!==(r=null==i?void 0:i.has_more)&&void 0!==r&&r,next_before:null!==(a=null==i?void 0:i.next_before)&&void 0!==a?a:null}}),M.invalidateQueries({queryKey:["conversations"]}))},onError:function(e,t){var n,r,s;M.setQueryData(["messages",h],function(e){return{items:(null!==(n=null==e?void 0:e.items)&&void 0!==n?n:[]).map(function(e){return e.client_nonce===t.nonce?(0,i.Z)((0,a.Z)({},e),{pending:!1,failed:!0}):e}),has_more:null!==(r=null==e?void 0:e.has_more)&&void 0!==r&&r,next_before:null!==(s=null==e?void 0:e.next_before)&&void 0!==s?s:null}}),_.Z.message([{type:j.L.ERROR,title:e instanceof Error?e.message:"ارسال پیام انجام نشد"}])}}),Q=function(e){var t,n,r;M.setQueryData(["messages",h],function(a){return{items:(null!==(t=null==a?void 0:a.items)&&void 0!==t?t:[]).filter(function(t){return t.client_nonce!==e.client_nonce}),has_more:null!==(n=null==a?void 0:a.has_more)&&void 0!==n&&n,next_before:null!==(r=null==a?void 0:a.next_before)&&void 0!==r?r:null}}),G.mutate({body:e.body,nonce:e.client_nonce||(0,b.tf)()})},z=null!==(d=null==I?void 0:I.peer)&&void 0!==d?d:null,q=(null==I?void 0:I.type)==="SUPPORT",H=q?"پشتیبانی لیدوماتریپ":(null==z?void 0:z.name)||"کاربر لیدوماتریپ",V=null==I?void 0:I.booking,X=!!V&&("CANCEL"===V.state||"EXPIRED"===V.state||new Date(V.end_date).getTime()<Date.now()),Y=(null==V?void 0:V.state)==="CANCEL",J=(null==V?void 0:V.state)==="EXPIRED",W=(0,u.A)(),$=q?null:(0,u.d)(W,null==z?void 0:z.id),ee=(null==I?void 0:I.status)==="CLOSED"||X;return(0,c.jsxs)("section",{"aria-label":"چت",className:"flex h-full min-h-0 flex-col bg-gray-F8F8F8",children:[(0,c.jsxs)("header",{className:"flex shrink-0 items-center gap-x-12 border-b-1 border-solid border-gray-F0F0F0 bg-white px-14 py-10 md:px-16 md:py-12",children:[!k&&(0,c.jsx)("button",{type:"button",onClick:R,"aria-label":"بازگشت به فهرست چت‌ها",className:"-mr-4 flex h-36 w-36 shrink-0 items-center justify-center rounded-full text-gray-6C6A7D transition-[background-color,transform] duration-150 hover:bg-gray-F8F8F8 active:scale-90",children:(0,c.jsx)("i",{"aria-hidden":"true",className:"icon-FlashRight text-20"})}),(0,c.jsx)("div",{className:"flex h-42 w-42 shrink-0 items-center justify-center overflow-hidden rounded-full bg-gray-F8F8F8 ring-1 ring-white",children:(null==z?void 0:z.avatar)||$?(0,c.jsx)(f(),{src:(null==z?void 0:z.avatar)||(null==$?void 0:$.url),alt:"",width:42,he
1ight:42,className:"h-full w-full object-cover"}):(0,c.jsx)("i",{"aria-hidden":"true",className:"".concat(q?"icon-OnlineContact":"icon-Profile"," text-20 text-gray-A9B1BC")})}),(0,c.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,c.jsx)("p",{className:"truncate text-15 leading-24 font-b text-black",children:H}),(null==I?void 0:I.residence)?(0,c.jsx)(m(),{href:"/rentals/".concat(I.residence.id),prefetch:!1,className:"block truncate text-12 leading-18 font-r text-gray-77828F hover:text-primary-dark",children:I.residence.name}):(null==I?void 0:I.subject)&&(0,c.jsx)("p",{className:"truncate text-12 leading-18 font-r text-gray-77828F",children:I.subject})]}),(null==I?void 0:I.booking)&&(0,c.jsx)("span",{className:"shrink-0 rounded-full bg-gray-F8F8F8 px-10 py-4 text-11 leading-18 font-r text-gray-6C6A7D",children:I.booking.reference})]}),(0,c.jsxs)("div",{ref:O,onScroll:function(){var e=O.current;if(e){var t=e.scrollHeight-e.scrollTop-e.clientHeight;B.current=t<120,B.current&&A(!1)}},className:"relative min-h-0 flex-1 overflow-y-auto overscroll-contain px-14 py-16 md:px-20",children:[L?(0,c.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,c.jsx)(y.O,{})}):0===P.length?(0,c.jsx)("p",{className:"mt-40 text-center text-13 leading-22 font-r text-gray-A9B1BC",children:"هنوز پیامی رد و بدل نشده. اولین پیام را شما بنویسید."}):(0,c.jsx)("div",{"aria-live":"polite","aria-relevant":"additions",children:(0,w.ZN)(P).map(function(e){return(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"my-14 flex justify-center",children:(0,c.jsx)("span",{className:"rounded-full bg-white px-14 py-5 text-11 leading-18 font-m text-gray-77828F shadow-[0_1px_2px_rgba(24,39,58,0.05)]",children:e.label})}),e.messages.map(function(t,n){if("SYSTEM"===t.type)return(0,c.jsx)(D,{message:t},t.id);var r,a=e.messages[n-1],i=!!a&&"SYSTEM"!==a.type&&a.sender_id===t.sender_id&&new Date(t.created_at).getTime()-new Date(a.created_at).getTime()<12e4;return(0,c.jsx)(C,{message:t,isMine:t.sender_id===F,peerReadUpTo:null!==(r=null==I?void 0:I.peer_last_read_message_id)&&void 0!==r?r:null,grouped:i,onRetry:Q},t.id)})]},e.label)})}),null!==E&&E!==F&&(0,c.jsx)("div",{className:"mt-10 flex justify-end",children:(0,c.jsxs)("span",{className:"flex items-center gap-x-4 rounded-20 rounded-br-6 border-1 border-solid border-gray-F0F0F0 bg-white px-14 py-9 shadow-[0_1px_2px_rgba(24,39,58,0.04)]",children:[(0,c.jsx)("span",{className:"sr-only",children:"در حال نوشتن"}),[0,1,2].map(function(e){return(0,c.jsx)("span",{"aria-hidden":"true",className:"h-6 w-6 animate-bounce rounded-full bg-gray-A9B1BC",style:{animationDelay:"".concat(120*e,"ms")}},e)})]})})]}),S&&(0,c.jsxs)("button",{type:"button",onClick:function(){var e=O.current;e&&(e.scrollTo({top:e.scrollHeight,behavior:"smooth"}),B.current=!0,A(!1))},className:"mx-auto -mt-44 mb-10 flex items-center gap-x-6 rounded-full bg-black px-16 py-8 text-12 leading-20 font-m text-white shadow-lg transition-transform active:scale-95",children:["پیام جدید",(0,c.jsx)("i",{"aria-hidden":"true",className:"icon-FlashDown text-14"})]}),(0,c.jsx)(N,{isDesktop:k,disabled:ee,placeholder:Y?"این رزرو لغو شده — گفتگو پایان یافته":J?"مهلت این رزرو تمام شده — گفتگو پایان یافته":X?"اقامت این رزرو تمام شده — گفتگو پایان یافته":ee?"این چت بسته شده است":"پیام خود را بنویسید…",onSend:function(e){return G.mutate({body:e,nonce:(0,b.tf)()})},onTyping:function(){(0,b.bB)(h)}})]})}},56050:function(e,t,n){n.d(t,{Bz:function(){return s},ZN:function(){return u},cj:function(){return o},vs:function(){return c}});var r=new Intl.DateTimeFormat("fa-IR",{hour:"2-digit",minute:"2-digit"}),a=new Intl.DateTimeFormat("fa-IR",{day:"numeric",month:"long"}),i=new Intl.DateTimeFormat("fa-IR",{day:"numeric",month:"long",year:"numeric"});function s(e){var t=new Date(e);return Number.isNaN(t.getTime())?"":r.format(t)}function l(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function o(e){var t=new Date(e);if(Number.isNaN(t.getTime()))return"";var n=Math.round((l(new Date)-l(t))/864e5);return 0===n?"امروز":1===n?"دیروز":n>330?i.format(t):a.format(t)}function c(e){var t=new Date(e);return Number.isNaN(t.getTime())?"":l(t)===l(new Date)?r.format(t):o(e)}function u(e){var t=[],n=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);
1n=!0){var l=i.value,c=o(l.created_at),u=t[t.length-1];u&&u.label===c?u.messages.push(l):t.push({label:c,messages:[l]})}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return t}},63871:function(e,t,n){n.d(t,{O:function(){return s}});var r=n(85893),a=n(77461),i=n.n(a),s=function(){return(0,r.jsx)("div",{className:"my-32 flex w-full justify-center ",children:(0,r.jsx)("div",{className:"".concat(i()["dot-flashing"])})})}},47416:function(e,t,n){var r=n(85893);n(67294),t.Z=function(e){var t=e.icon,n=e.title,a=e.containerClassname,i=e.element,s=e.asH1;return(0,r.jsxs)("div",{className:"flex items-center justify-between ".concat(a||""),children:[(0,r.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,r.jsx)("div",{className:"flex items-center ml-12",children:t}),s?(0,r.jsx)("h1",{className:"text-[#000000] text-16 leading-28 font-m",children:n}):(0,r.jsx)("h2",{className:"text-[#000000] text-16 leading-28 font-m",children:n})]}),i]})}},83888:function(e,t,n){var r=n(85893);function a(e){return(0,r.jsx)("div",{className:"\n        flex flex-row md:flex-col items-center justify-center cursor-pointer pt-4 pb-4 px-4 md:px-0 md:pt-10 md:pb-0\n        ".concat(e.scroll?"grow-0 shrink-0 basis-auto whitespace-nowrap":"grow md:grow-0 shrink md:shrink-0 basis-0 md:basis-auto","\n        ").concat(e.currentActiveIndex===e.tabIndex?"bg-white rounded-6 md:after:content-[''] md:after:w-full md:after:mt-10 md:after:block md:after:h-4 md:after:bg-primary-main md:after:rounded-tr-100 md:after:rounded-tl-100":"md:pb-6","\n        drop-shadow-[0px_1px_6px_rgba(0,0,0,0.1)] md:drop-shadow-none\n        text-12 md:text-16 leading-21 md:leading-24 font-r text-black\n      "),onClick:function(){e.onChange(e.tabIndex)},children:e.label})}t.Z=function(e){var t=e.activeIndex,n=e.onChange,i=e.data,s=e.scroll;return(0,r.jsx)("div",{className:"flex items-center rounded-9 bg-gray-EFEFF0 md:bg-transparent px-4 py-4 md:px-16 md:py-0 gap-x-5 md:gap-x-32 md:border-b-1 md:border-b-gray-CACFD3 md:border-solid md:rounded-0 ".concat(s?"w-max min-w-full":""),children:i.map(function(e,i){return(0,r.jsx)(a,{label:e.tabLabel,tabIndex:e.tabIndex||i,currentActiveIndex:t,onChange:n,scroll:s},i)})})}},89987:function(e,t,n){n.d(t,{Q:function(){return i}});var r=n(67294),a=["message","read","typing","message-deleted","reservation","notification"];function i(e,t,n){var i=(0,r.useRef)(t);i.current=t;var s=(0,r.useRef)(n);s.current=n,(0,r.useEffect)(function(){if(!e||"undefined"==typeof EventSource){var t;null===(t=s.current)||void 0===t||t.call(s,!0);return}var n=null,r=0,l=!1;return(n=new EventSource("/api/conversations/stream",{withCredentials:!0})).onopen=function(){var e;r=0,null===(e=s.current)||void 0===e||e.call(s,!1)},a.forEach(function(e){null==n||n.addEventListener(e,function(t){try{i.current({type:e,data:JSON.parse(t.data)})}catch(e){}})}),n.onerror=function(){if((r+=1)>=2){var e;null===(e=s.current)||void 0===e||e.call(s,!0)}},function(){null==n||n.close()}},[e])}},79121:function(e,t,n){n.d(t,{d:function(){return u},A:function(){return c}});var r=n(36492),a=n(47568),i=n(70655),s=n(57149);function l(){return o.apply(this,arguments)}function o(){return(o=(0,a.Z)(function(){var e,t;return(0,i.__generator)(this,function(n){switch(n.label){case 0:return[4,s.Z.setUrl("/api/fallback-avatars").setCallMethod("GET").call()];case 1:return[2,null!==(t=null==(e=n.sent())?void 0:e.data)&&void 0!==t?t:[]]}})})).apply(this,arguments)}function c(){return(0,r.a)(["fallback-avatars"],l,{staleTime:36e5,cacheTime:36e5,refetchOnWindowFocus:!1,retry:!1}).data||[]}function u(e,t){if(!e.length||null==t)return null;for(var n=String(t),r=0,a=0;a<n.length;a++)r=31*r+n.charCodeAt(a)|0;return e[Math.abs(r)%e.length]}},48228:function(e,t,n){n.d(t,{D:function(){return f}});var r=n(67294),a=n(464),i=n(32161),s=n(89886),l=n(30081),o=n(33989);class c extends o.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=this.client.defaultMutationOptions(e),(0,i.VS)(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,s.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){l.V.batch(()=>
1{if(this.mutateOptions&&this.hasListeners()){var t,n,r,a,i,s,l,o;e.onSuccess?(null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(a=this.mutateOptions).onSettled)||r.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(i=(s=this.mutateOptions).onError)||i.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(l=(o=this.mutateOptions).onSettled)||l.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(e=>{e(this.currentResult)})})}}var u=n(85945),d=n(24798);function f(e,t,n){let s=(0,i.lV)(e,t,n),o=(0,u.NL)({context:s.context}),[f]=r.useState(()=>new c(o,s));r.useEffect(()=>{f.setOptions(s)},[f,s]);let m=(0,a.$)(r.useCallback(e=>f.subscribe(l.V.batchCalls(e)),[f]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),p=r.useCallback((e,t)=>{f.mutate(e,t).catch(h)},[f]);if(m.error&&(0,d.L)(f.options.useErrorBoundary,[m.error]))throw m.error;return{...m,mutate:p,mutateAsync:m.mutate}}function h(){}}}]);

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.