�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`� 0x0x
PHP 8.1.34
Preview: index-CR7ZQCBS.js Size: 16.81 KB
/home2/astrociv/public_html/gurujii.in/assets/index-CR7ZQCBS.js
import{c as ce,ab as $e,aa as qe,u as Ce,r as a,j as e,L as P,S as De,B as Re}from"./index-DnuhVBRS.js";import{u as Le,q as Ee,r as Oe,s as Pe,t as Me,v as Ge,g as Ue,w as ee,x as Fe}from"./api-DcpvyF1R.js";import{a as te}from"./data-Du3N2DSA.js";import{r as se,G as ae,C as re,a as _e,S as Be,b as Ke,u as Ye,c as ze}from"./chat-alerts-CqsnocmM.js";import{g as Qe}from"./astrologer-1-CWkNkSFj.js";import{a as Ve,b as He}from"./astrologer-3-CDWiPpM9.js";import{a as We,b as Je,c as Xe,d as Ze,e as et}from"./astrologer-8-UtxlRxuH.js";import{A as tt}from"./arrow-left-5URKW_k5.js";import{L as k}from"./loader-circle-ofyxlirR.js";import{P as st,V as at,F as rt}from"./video-CbEKJQiL.js";import{D as nt}from"./download-CtDga5On.js";import{L as it}from"./languages-BbAg-rZb.js";import{C as ot}from"./calendar-days-DD8wZncg.js";const lt=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],ct=ce("check-check",lt);const dt=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],ut=ce("paperclip",dt),mt=["Hindi","English","Bengali","Tamil","Telugu","Marathi","Gujarati","Kannada","Malayalam","Punjabi","Urdu","Nepali"],N=[Qe,Ve,He,We,Je,Xe,Ze,et],ne=["Ananya Sharma","Priya Mehta","Kavya Joshi","Riya Verma","Meera Iyer","Pooja Nair"];function gt(r){return r?new Date(r).toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit"}):""}function ie(){const r=new Date().getHours();return r<12?"Good morning":r<17?"Good afternoon":"Good evening"}function de(r){const d=String(r||"1"),u=Number(d);return Number.isFinite(u)?((u-1)%N.length+N.length)%N.length:[...d].reduce((h,f)=>h+f.charCodeAt(0),0)%N.length}function ht(r){return N[de(r)]}function I(r){return ne[de(r)%ne.length]}function oe(r){const d=Math.floor(r/60).toString().padStart(2,"0"),u=(r%60).toString().padStart(2,"0");return`${d}:${u}`}function M(r){return r?new Date(`${r}T00:00:00`).toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"}):""}function le({name:r,src:d,size:u="md"}){const v=(r||"Astro Baat").split(" ").map(f=>f[0]).slice(0,2).join("").toUpperCase(),h=u==="sm"?"w-9 h-9 text-xs":"w-11 h-11 text-sm";return d?e.jsx("img",{src:d,alt:r||"Astro Baat assistant",className:`${h} rounded-full shrink-0 object-cover object-top ring-2 ring-amber-300/40 bg-amber-100`}):e.jsx("div",{className:`${h} rounded-full shrink-0 flex items-center justify-center font-serif font-bold text-[#0a0414] bg-gradient-to-br from-[#FFE7A3] to-[#D4AF37] ring-2 ring-amber-300/30`,children:v})}function Tt(){const r=$e(),d=qe(),u=Ce(),v=a.useMemo(()=>{const t=new URLSearchParams(d).get("astrologerId");return t?parseInt(t):void 0},[d]),{data:h}=Le({},{query:{queryKey:Ue({})}}),f=te(h),l=v??f[0]?.id,[i,ue]=a.useState(null),G=Ee();a.useEffect(()=>{l&&i===null&&!G.isPending&&G.mutate({data:{astrologerId:l}},{onSuccess:t=>ue(t.id)})},[l]);const{data:U}=Oe(i,{query:{enabled:!!i,queryKey:Fe(i)}}),b=U?.session?.astrologer??f.find(t=>t.id===l),{data:me}=Pe(i,{query:{enabled:!!i,queryKey:ee(i),refetchInterval:3e3}}),F=te(me),T=Me(),ge=Ge(),[$,_]=a.useState(""),[B,K]=a.useState(!1),[w,x]=a.useState([]),[y,he]=a.useState(""),[g,fe]=a.useState(""),[Y,j]=a.useState(""),[c,S]=a.useState("waiting"),[p,xe]=a.useState(""),[q,pe]=a.useState(null),[z,Q]=a.useState(0),[be,we]=a.useState(!1),[o,ye]=a.useState(()=>se()),[je,Ne]=a.useState([]),V=a.useRef(null),C=a.useRef(null),D=a.useRef(!1),H=a.useRef(!1);a.useEffect(()=>{const t=()=>ye(se());return window.addEventListener(ae,t),window.addEventListener("storage",t),()=>{window.removeEventListener(ae,t),window.removeEventListener("storage",t)}},[]),a.useEffect(()=>{if(!p)return;const t=()=>{const s=Ke().find(n=>n.id===p);Ne((s?.gurujiReplies||[]).map(n=>({id:`guruji-${n.id}`,senderRole:"astrologer",message:n.message,sentAt:n.sentAt})))};return t(),window.addEventListener(re,t),window.addEventListener("storage",t),()=>{window.removeEventListener(re,t),window.removeEventListener("storage",t)}},[p]),a.useEffect(()=>{if(D.current)return;const t=window.setTimeout(()=>{if(D.current)return;D.current=!0;const s=new Date().toISOString();x([{id:"welcome",senderRole:"astrologer",sentAt:s,message:o.isOnline?`${ie()}! Hello sir, I am ${I(l)} from ${u.businessName}. I will help you start your one free astrology question.`:`${ie()}! Hello sir, I am ${I(l)} from ${u.businessName}. Guruji is not available for live chat right now.`},...o.isOnline?[]:[{id:"offline-note",senderRole:"astrologer",sentAt:s,message:o.offlineMessage||`Please ask your question and Guruji will reply within ${o.replyDelay}.`}],{id:"language",senderRole:"astrologer",sentAt:s,message:o.isOnline?"Please choose your preferred language from the list below. You can continue in any Indian or international language.":"Please choose your preferred language. You can ask your question now, and Guruji will reply when available.",quickReplies:mt}]),S("language")},3e3);return()=>window.clearTimeout(t)},[l,o.isOnline,o.offlineMessage,o.replyDelay,u.businessName]),a.useEffect(()=>{if(!q){Q(0);return}const t=()=>Q(Math.floor((Date.now()-q)/1e3));t();const s=window.setInterval(t,1e3);return()=>window.clearInterval(s)},[q]),a.useEffect(()=>{C.current?.scrollTo({top:C.current.scrollHeight,behavior:"smooth"})},[F,w]);const R=()=>{i&&r.invalidateQueries({queryKey:ee(i)})},W=()=>{const t=$.trim();if(t&&c==="question"){if(_(""),we(!0),p&&Ye(p,{question:t,status:"question-received"}),!i){const s=new Date().toISOString();x(n=>[...n,{id:`client-${Date.now()}`,senderRole:"client",message:t,sentAt:s}]),window.setTimeout(()=>{x(n=>[...n,{id:`reply-${Date.now()}`,senderRole:"astrologer",sentAt:new Date().toISOString(),message:be?"I have already received your free question. For a detailed personal reading, please book a paid chat, call, or video consultation with a verified astrologer.":`Thank you. Your free question is received${y?` in ${y}`:""}. Guruji has your DOB as ${M(g)} and can now review your details.`}])},900);return}T.mutate({data:{sessionId:i,message:t,senderRole:"client"}},{onSuccess:R})}},ve=t=>{if(c!=="language")return;he(t),j(""),S("dob");const s=new Date().toISOString();x(n=>[...n,{id:`language-client-${t}`,senderRole:"client",message:t,sentAt:s},{id:`language-reply-${t}`,senderRole:"astrologer",sentAt:s,message:`${t} selected. Please share your date of birth so I can connect you with the astrologer.`,inputType:"dateOfBirth"}])},Se=()=>{if(c!=="dob")return;if(!g){j("Please select your date of birth.");return}const t=new Date(`${g}T00:00:00`).getTime();if(!Number.isFinite(t)||t>Date.now()){j("Please choose a valid past date.");return}const s=new Date,n=s.toISOString(),m=p||`chat-alert-${Date.now()}`,Z=b?.name||I(l);j(""),xe(m),S("connecting"),pe(s.getTime()),x(O=>[...O,{id:`dob-client-${Date.now()}`,senderRole:"client",sentAt:n,message:`Date of birth: ${M(g)}`},{id:"connecting-to-astrologer",senderRole:"astrologer",sentAt:n,message:o.isOnline?"Thank you. I am connecting you with the astrologer now. Please wait here.":`Thank you. Guruji is not available for live chat right now. Your question request is saved and reply time is ${o.replyDelay}.`,inputType:"connecting"}]),ze({id:m,clientName:"Website Client",language:y||"Any language",dateOfBirth:g,astrologerId:l,astrologerName:Z,sessionId:i||void 0,createdAt:n,waitingSince:n,status:"waiting"}),i&&!H.current&&(H.current=!0,T.mutate({data:{sessionId:i,message:`[intake-alert] Free question request
Language: ${y||"Any language"}
DOB: ${M(g)}`,senderRole:"client"}},{onSuccess:R})),window.setTimeout(()=>{S("question"),x(O=>[...O,{id:`connected-${Date.now()}`,senderRole:"astrologer",sentAt:new Date().toISOString(),message:o.isOnline?`You are connected with ${Z}. Tell me your question now. Your first question is free.`:`Guruji is currently offline. Tell me your question now. Your first question is free, and the reply will come within ${o.replyDelay}.`}])},3200)},Ae=async t=>{const s=t.target.files?.[0];if(!(!s||!i)){t.target.value="",K(!0);try{const n=await ge.mutateAsync({data:{name:s.name,size:s.size,contentType:s.type||"application/octet-stream"}});await fetch(n.uploadURL,{method:"PUT",body:s,headers:{"Content-Type":s.type||"application/octet-stream"}}),T.mutate({data:{sessionId:i,message:"",senderRole:"client",attachmentUrl:n.objectPath,attachmentName:s.name,attachmentType:s.type||"application/octet-stream"}},{onSuccess:R})}catch{}finally{K(!1)}}},A=c==="waiting"&&w.length===0,ke=c==="connecting",Ie=F.filter(t=>!String(t.message||"").startsWith("[intake-alert]")),J=[...w,...je.filter(t=>!w.some(s=>String(s.id)===String(t.id))),...Ie.filter(t=>!w.some(s=>String(s.id)===String(t.id)))],L=c==="question",E=b?.name||I(l),X=b?.image||b?.imageUrl||ht(l),Te=c==="language"?"Choose your language first...":c==="dob"?"Select your date of birth first...":c==="connecting"?"Connecting with astrologer...":"Type your free question...";return e.jsxs("div",{className:"cosmic-root fixed inset-0 z-50 flex flex-col h-[100dvh] w-full overflow-hidden",children:[e.jsx("div",{className:"cosmic-stars","aria-hidden":!0}),e.jsx("div",{className:"cosmic-orb",style:{top:"-10%",right:"-10%"},"aria-hidden":!0}),e.jsx("header",{className:"relative z-10 shrink-0 glass-dark-2 border-b border-amber-400/15",children:e.jsxs("div",{className:"mx-auto max-w-3xl w-full px-3 sm:px-4 h-16 flex items-center gap-3",children:[e.jsx(P,{href:"/astrologers",children:e.jsx("button",{className:"p-2 -ml-1 rounded-full text-cream hover:bg-white/10 transition","aria-label":"Back",children:e.jsx(tt,{className:"w-5 h-5"})})}),e.jsxs("div",{className:"relative",children:[e.jsx(le,{name:E,src:X}),e.jsx("span",{className:`absolute -bottom-0.5 -right-0.5 w-3 h-3 rounded-full ring-2 ring-[#0a0414] ${o.isOnline?"bg-emerald-400":"bg-orange-400"}`})]}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h2",{className:"font-serif font-bold text-cream truncate leading-tight",children:A?"Connecting...":E}),e.jsx("p",{className:"text-[11px] text-emerald-300 flex items-center gap-1",children:A?e.jsx("span",{className:"text-amber-200/70",children:"Preparing your free question chat..."}):ke?e.jsxs(e.Fragment,{children:[e.jsx(k,{className:"w-3 h-3 animate-spin"})," Connecting with astrologer - ",oe(z)]}):o.isOnline?c==="question"?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"})," Connected - free question active"]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"})," Online - ",i?`Rs.${b?.chatPricePerMin??U?.session?.pricePerMin??0}/min`:"1 free question"]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-orange-400 animate-pulse"})," Not available - reply in ",o.replyDelay]})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(P,{href:`/book?mode=call&astrologerId=${l??""}`,children:e.jsx("button",{className:"p-2.5 rounded-full text-amber-100 hover:bg-white/10 transition","aria-label":"Call",children:e.jsx(st,{className:"w-[18px] h-[18px]"})})}),e.jsx(P,{href:`/book?mode=video&astrologerId=${l??""}`,children:e.jsx("button",{className:"p-2.5 rounded-full text-amber-100 hover:bg-white/10 transition","aria-label":"Video",children:e.jsx(at,{className:"w-[18px] h-[18px]"})})})]})]})}),e.jsx("div",{ref:C,className:"relative z-10 flex-1 overflow-y-auto",children:e.jsxs("div",{className:"mx-auto max-w-3xl w-full px-3 sm:px-4 py-5 space-y-2.5",children:[e.jsx("div",{className:"flex justify-center",children:e.jsxs("span",{className:"text-[11px] text-amber-100/70 glass-dark px-3 py-1.5 rounded-full inline-flex items-center gap-1.5",children:[e.jsx(De,{className:"w-3 h-3 text-amber-300"})," Private chat. Your first question is free."]})}),A&&e.jsx("div",{className:"flex justify-center py-10",children:e.jsxs("span",{className:"text-amber-200/70 inline-flex items-center gap-2 text-sm",children:[e.jsx(k,{className:"w-4 h-4 animate-spin"})," Connecting you with your astrologer..."]})}),!A&&J.length===0&&e.jsx("div",{className:"flex justify-start",children:e.jsx("div",{className:"glass-dark text-cream px-4 py-3 rounded-2xl rounded-tl-md max-w-[82%]",children:e.jsx("p",{className:"text-sm",children:"Namaste! Share your name, date, time and place of birth so I can study your Kundli and guide you."})})}),J.map(t=>{const s=t.senderRole==="client",n=t.attachmentType?.startsWith("image/");return e.jsxs("div",{className:`flex items-end gap-2 ${s?"justify-end":"justify-start"}`,children:[!s&&e.jsx(le,{name:E,src:X,size:"sm"}),e.jsxs("div",{className:`max-w-[82%] px-3.5 py-2.5 rounded-2xl ${s?"rounded-tr-md bg-gradient-to-br from-[#FFE7A3] to-[#D4AF37] text-[#0a0414]":"rounded-tl-md glass-dark text-cream"}`,children:[t.attachmentUrl&&(n?e.jsx("a",{href:`/api/storage${t.attachmentUrl}`,target:"_blank",rel:"noreferrer",className:"block mb-1.5",children:e.jsx("img",{src:`/api/storage${t.attachmentUrl}`,alt:t.attachmentName||"image",className:"rounded-lg max-h-60 w-auto object-cover"})}):e.jsxs("a",{href:`/api/storage${t.attachmentUrl}`,target:"_blank",rel:"noreferrer",className:`flex items-center gap-2.5 mb-1.5 px-3 py-2 rounded-lg ${s?"bg-black/10":"bg-white/10"}`,children:[e.jsx(rt,{className:"w-5 h-5 shrink-0"}),e.jsx("span",{className:"text-xs font-medium truncate max-w-[180px]",children:t.attachmentName||"Document"}),e.jsx(nt,{className:"w-4 h-4 shrink-0 opacity-70"})]})),t.message&&e.jsx("p",{className:"text-sm whitespace-pre-wrap break-words",children:t.message}),t.quickReplies&&e.jsx("div",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-2",children:t.quickReplies.map(m=>e.jsxs("button",{onClick:()=>ve(m),disabled:c!=="language",className:`inline-flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2 text-xs font-semibold transition ${y===m?"border-amber-300 bg-amber-300 text-[#0a0414] shadow-[0_10px_30px_rgba(212,175,55,0.22)]":"border-amber-400/30 bg-white/5 text-amber-100 hover:border-amber-300 hover:bg-amber-400/10 disabled:opacity-50"}`,children:[e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx(it,{className:"h-3.5 w-3.5"}),m]}),e.jsx("span",{className:"h-2 w-2 rounded-full bg-current opacity-50"})]},m))}),t.inputType==="dateOfBirth"&&e.jsxs("div",{className:"mt-3 rounded-2xl border border-amber-300/20 bg-white/5 p-3",children:[e.jsxs("label",{className:"mb-2 flex items-center gap-2 text-xs font-semibold text-amber-100",children:[e.jsx(ot,{className:"h-4 w-4 text-amber-300"}),"Your date of birth"]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[e.jsx("input",{type:"date",value:g,max:new Date().toISOString().split("T")[0],disabled:c!=="dob",onChange:m=>{fe(m.target.value),j("")},className:"h-11 flex-1 rounded-xl border border-amber-300/25 bg-[#13091f] px-3 text-sm text-cream outline-none focus:border-amber-300 focus:ring-2 focus:ring-amber-300/15"}),e.jsx(Re,{onClick:Se,disabled:c!=="dob",className:"h-11 rounded-xl btn-gold px-5 font-bold disabled:opacity-50",children:"Continue"})]}),Y&&e.jsx("p",{className:"mt-2 text-[11px] text-red-200",children:Y})]}),t.inputType==="connecting"&&e.jsx("div",{className:"mt-3 rounded-2xl border border-emerald-300/20 bg-emerald-500/10 p-3",children:e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 text-xs font-semibold text-emerald-200",children:[e.jsx(k,{className:"h-4 w-4 animate-spin"}),"Astrologer alert sent"]}),e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-black/20 px-2.5 py-1 text-[11px] text-emerald-100",children:[e.jsx(_e,{className:"h-3.5 w-3.5"}),oe(z)]})]})}),e.jsxs("span",{className:`text-[10px] mt-0.5 flex items-center gap-1 justify-end ${s?"text-[#0a0414]/60":"text-amber-100/50"}`,children:[gt(t.sentAt)," ",s&&e.jsx(ct,{className:"w-3 h-3"})]})]})]},t.id)})]})}),e.jsx("footer",{className:"relative z-10 shrink-0 glass-dark-2 border-t border-amber-400/15",children:e.jsxs("div",{className:"mx-auto max-w-3xl w-full px-3 sm:px-4 py-3 flex items-end gap-2",children:[e.jsx("input",{ref:V,type:"file",className:"hidden",onChange:Ae,accept:"image/*,.pdf,.doc,.docx,.txt,.xls,.xlsx"}),e.jsx("button",{onClick:()=>V.current?.click(),disabled:!i||!L||B,className:"shrink-0 p-3 rounded-full text-amber-100 hover:bg-white/10 transition disabled:opacity-40","aria-label":"Attach document",children:B?e.jsx(k,{className:"w-5 h-5 animate-spin"}):e.jsx(ut,{className:"w-5 h-5"})}),e.jsx("div",{className:"flex-1 flex items-end glass-dark rounded-2xl px-3 py-1.5",children:e.jsx("textarea",{value:$,onChange:t=>_(t.target.value),onKeyDown:t=>{t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),W())},placeholder:Te,disabled:!L,rows:1,className:"flex-1 bg-transparent resize-none outline-none text-cream placeholder:text-amber-100/40 text-sm py-2 max-h-32"})}),e.jsx("button",{onClick:W,disabled:!L||!$.trim(),className:"shrink-0 w-12 h-12 rounded-full btn-gold flex items-center justify-center disabled:opacity-40 disabled:cursor-not-allowed","aria-label":"Send",children:e.jsx(Be,{className:"w-5 h-5"})})]})})]})}export{Tt as default};

Directory Contents

Dirs: 0 × Files: 147
Name Size Perms Modified Actions
6.66 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.46 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
21.60 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
166 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
5.13 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.43 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
85 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.47 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
155 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.46 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.41 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.40 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.63 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.34 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.30 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
365 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
312 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
738 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.17 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.13 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.10 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
221 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
500 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
306 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
495 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
337 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.06 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.81 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
252 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.45 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
120 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
129 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
131 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
174 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.99 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.24 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.22 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
81 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.26 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.31 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
407 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
300 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
165 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
232 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
209 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.11 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
233 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.09 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.18 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
252 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
335 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.15 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
82 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
238 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
259 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.73 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
88 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
84 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.56 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.09 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
368.72 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
70.25 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
32.06 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
19.09 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
92.81 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
137.79 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
21.54 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
10.82 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
22.04 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
16.81 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
42.67 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
135.29 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
232 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
51.00 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
18.79 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
7.52 KB lrw-r--r-- 2026-06-06 12:45:10
Edit Download
4.15 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
42.87 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
16.20 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
16.65 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
36.20 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
292 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
557 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
79 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.45 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
884 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.19 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
85 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
317 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
352 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
140 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
202 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
372 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
24.59 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
255 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.53 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
81 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.32 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.77 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.63 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
427 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
506 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
32.09 KB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.19 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
617 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
158 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.01 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
81 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.37 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
83 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.53 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
298 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.90 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.13 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
201 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.24 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.37 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.67 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
328 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
808 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
483 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.98 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
398 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
473 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
642 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
85 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.45 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.06 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
86 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.98 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
871 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
176 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
402 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
239 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
192 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
343 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
307 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
78 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
2.08 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.36 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
808 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.45 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
86 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
718 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
1.33 MB lrw-r--r-- 2026-06-29 09:44:41
Edit Download
1.94 MB lrw-r--r-- 2026-06-06 12:39:32
Edit Download
263 B lrw-r--r-- 2026-06-06 12:39:32
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 0xNothings — Secure File Manager. All rights reserved. Built with ❤️ & Tailwind x Dark UI