PageSourceSearch

https://app.hexitime.com/static/js/53.0195ecf1.chunk.js

js hexitime.com collected 2026-10-04 14:10:32 UTC 28,371 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhexitime=self.webpackChunkhexitime||[]).push([[53],{1053:(e,i,t)=>{t.d(i,{A:()=>H});var l,n=t(65043),o=t(31159),r=t(58607),d=t(77591),a=t(16348),s=t(59221),u=t(77073),v=t(91688),c=t(62582),m=t(66786),h=t(41529);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},x.apply(null,arguments)}function p(e,i){let{title:t,titleId:o,...r}=e;return n.createElement("svg",x({width:9,height:8,viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":o},r),t?n.createElement("title",{id:o},t):null,l||(l=n.createElement("path",{d:"M3.63404 1C4.01894 0.333334 4.98119 0.333333 5.36609 1L8.39717 6.25C8.78207 6.91667 8.30095 7.75 7.53115 7.75H1.46897C0.699172 7.75 0.218047 6.91667 0.602947 6.25L3.63404 1Z",fill:"currentColor"})))}const f=n.forwardRef(p);t.p;var _;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},C.apply(null,arguments)}function g(e,i){let{title:t,titleId:l,...o}=e;return n.createElement("svg",C({width:9,height:8,viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":l},o),t?n.createElement("title",{id:l},t):null,_||(_=n.createElement("path",{d:"M5.36609 7C4.98119 7.66667 4.01894 7.66667 3.63404 7L0.602948 1.75C0.218048 1.08333 0.699173 0.249999 1.46897 0.249999L7.53115 0.25C8.30095 0.25 8.78208 1.08333 8.39718 1.75L5.36609 7Z",fill:"currentColor"})))}const w=n.forwardRef(g);t.p;var y=t(70579);const b=e=>{let{handleUpArrowClick:i,handleDownArrowClick:t}=e;return(0,y.jsxs)("div",{type:"button",className:"relative -ml-px inline-flex flex-col items-center justify-between rounded-r-md bg-white px-2.5 py-1.5 text-sm text-hexitime-textColor1 ring-1 ring-inset ring-hexitime-textColor4 focus:z-10",children:[(0,y.jsx)(f,{className:"h-[10px] w-[10px] cursor-pointer text-hexitime-textColor4 hover:text-hexitime-textColor3",onClick:()=>i()}),(0,y.jsx)(w,{className:"h-[10px] w-[10px] cursor-pointer text-hexitime-textColor4 hover:text-hexitime-textColor3",onClick:()=>t()})]})};var j=t(45543),N=t(7166),k=t(86178),D=t.n(k),L=t(30248),M=t(4917),A=t(88837);const H=e=>{var i,t,l,x,p,f,_,C,g,w,k,H,I,S,Y,O;let{open:E,setOpen:T,type:P,modal:R,content:F,isSuggestNewTime:V,setIsSuggestNewTime:Z,handleProposedTime:z,handleContentConfirm:$,setTotalCount:U,removeAcceptButton:B,isRemove:W,setIsRemove:q,isComment:K,confettiController:J=null}=e;const X=(0,N.sw)(),G=(0,v.useHistory)(),{setCredits:Q,getScheduleActivityCounts:ee}=(0,n.useContext)(N.X0),{sendAutomatedMessage:ie,createTempContentMessage:te}=(0,M.y)(),le=new Date,[ne,oe]=(0,n.useState)(le),[re,de]=(0,n.useState)(le),[ae,se]=(0,n.useState)(le),[ue,ve]=(0,n.use
1State)(!1),[ce,me]=(0,n.useState)(!1),[he,xe]=(0,n.useState)(!1),pe=(0,N.NP)(),fe=null!==F&&void 0!==F&&F.user_name?null===F||void 0===F?void 0:F.user_name:he?null===F||void 0===F||null===(i=F.teacher_info)||void 0===i?void 0:i.teacher_name:null===F||void 0===F||null===(t=F.learner_info)||void 0===t?void 0:t.learner_name;(0,n.useEffect)(()=>{(()=>{var e;(null===F||void 0===F||null===(e=F.learner_info)||void 0===e?void 0:e.learner_id)===parseInt(null===X||void 0===X?void 0:X.user_id)?xe(!0):xe(!1)})()},[F]);const _e=()=>{if(T(!1),"date"===R&&W){var e;if(K)B(null===F||void 0===F?void 0:F.is_content_id);else B(V?null===F||void 0===F||null===(e=F.content_info)||void 0===e?void 0:e.id:null===F||void 0===F?void 0:F.content_id);q(!1)}};return(0,n.useEffect)(()=>{const e=((e,i)=>{const t=new Date(e);return t.setHours(i.getHours(),i.getMinutes()),t})(ne,re);se(e)},[ne,re]),(0,y.jsx)(o.e.Root,{appear:!0,show:E,as:n.Fragment,children:(0,y.jsxs)(r.l,{as:"div",className:"relative z-10",onClose:()=>{},children:[(0,y.jsx)(o.e.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,y.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,y.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-hidden",children:(0,y.jsx)("div",{className:"flex min-h-full justify-center p-4 text-center items-center sm:p-0",children:(0,y.jsx)(o.e.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,y.jsxs)(r.l.Panel,{className:"relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:mt-12 w-full sm:max-w-lg sm:p-6",children:[(0,y.jsxs)("div",{className:"flex items-start justify-between pb-2 border-b rounded-t dark:border-gray-600",children:[(0,y.jsx)(r.l.Title,{as:"h3",className:"text-xl font-semibold text-gray-900",children:"mark"===R?"Is this activity completed ?":"Select the day and time to schedule this activity"}),(0,y.jsxs)("button",{type:"button",className:"text-hexitime-textColor2 bg-transparent hover:bg-hexitime-textColor4 hover:text-hexitime-textColor1 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center outline-none","data-modal-hide":"defaultModal",onClick:()=>_e(),children:[(0,y.jsx)(d.A,{className:"h-5 w-5","aria-hidden":"true"}),(0,y.jsx)("span",{className:"sr-only",children:"Close modal"})]})]}),(0,y.jsxs)("div",{className:"mt-4 border border-hexitime-textColor4 p-4 rounded-lg",children:[(0,y.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-1",children:[(0,y.jsx)("div",{className:"flex gap-3",children:(0,y.jsxs)("div",{className:` ${"offer"===P?"bg-hexitime-secondary":"bg-hexitime-primary"} text-white rounded-full px-3 py-1.5 flex items-center gap-x-1.5 font-semibold`,children:["offer"===P?(0,y.jsx)(a.h,{className:"h-5 w-5"}):(0,y.jsx)(s.h,{className:"h-5 w-5"}),(0,y.jsx)("span",{className:"text-sm",children:"offer"===P?"Offer":"Request"})]})}),"mark"===R&&(0,y.jsx)("p",{className:"font-semibold",children:(0,y.jsx)("span",{className:"text-hexitime-primary text-base",children:D().utc(null===F||void 0===F||null===(l=F.schedule_info)||void 0===l?void 0:l.schedule_at).format("DD/MM/YYYY - hh:mm A")})})]}),(0,y.jsx)("p",{className:"text-hexitime-textColor1 text-base font-semibold first-letter:capitalize line-clamp-2",children:null!==F&&void 0!==F&&F.title?null===F||void 0===F?void 0:F.title:null===F||void 0===F||null===(x=F.content_info)||void 0===x?void 0:x.title}),(0,y.jsx)(A.A,{readOnly:!0,value:null!==F&&void 0!==F&&F.description?null===F||void 0===F?void 0:F.description:null===F||void 0===F||null===(p=F.content_info)||void 0===p?void 0:p.description,theme:"bubble",showFullText:!0,classes:"!max-h-[234px] overflow-scroll p-[4px] !mt-[1.25rem]"}),(0,y.jsxs)("div",{className:"flex gap-x-3 items-center mt-4",children:[(0,y.jsx)(c.N_,{to:`/profile/${null!==F&&void 0!==F&&F.user_id?null===F||void 0===F?void 0:F.user_id:he?null===F||void 0===F||null===(f=F.teacher_info)||void 0===f?void 0:f.teacher_id:null===F||void 0===F||null===(_=F.learner_info)||void 0===_?void 0:_.learner_id}`,children:(null!==F&&void 0!==F&&F.profile_picture?null===F||void 0===F?void 0:F.profile_picture:he?null===F||void 0===F||null===(C=F.teacher_info)||void 0===C?void 0:C.teacher_pro_pic:null===F||void 0===F||null===(g=F.learner_info)||void 0===g?void 0:g.learner_pro_pic)?(0,y.jsx)("img",{className:"inline-block h-7 w-7 rounded-full object-cover",src:null!==F&&void 0!==F&&F.profile_picture?null===F||void 0===F?void 0:F.profile_picture:he?null===F||void 0===F||null===(w=F.teacher_info)||void 0===w?void 0:w.teacher_pro_pic:null===F||void 0===F||null===(k=F.learner_info)||void 0===k?void 0:k.learner_pro_pic}):(0,y.jsxs)("div",{className:"self-center flex justify-center items-center w-9 h-9 rounded-full uppercase",style:{background:null===pe||void 0===pe?void 0:pe.bgColor},children:[(0,y.jsx)("span",{style:{color:null===pe||void 0===pe?void 0:pe.textColor},children:null===fe||void 0===fe?void 0:fe.charAt(0)}),(0,y.jsx)("span",{style:{color:null===pe||void 0===pe?void 0:pe.textColor},children:(null===fe||void 0===fe?void 0:fe.split(" ")[1])&&(null===fe||void 0===fe||null===(H=fe.split(" ")[1])||void 0===H?void 0:H.charAt(0))})]})}),(0,y.jsxs)("div",{className:"inline-flex items-center ",children:[(0,y.jsx)(c.N_,{to:`/profile/${null!==F&&void 0!==F&&F.user_id?null===F||void 0===F?void 0:F.user_id:he?null===F||void 0===F||null===(I=F.teacher_info)||void 0===I?void 0:I.teacher_id:null===F||void 0===F||null===(S=F.learner_info)||void 0===S?void 0:S.learner_id}`,className:"text-hexitime-primary hover:text-hexitime-darkPrimary font-semibold sm:text-lg text-base line-clamp-1 break-all max-w-[130px] capitalize",children:null!==F&&void 0!==F&&F.user_name?null===F||void 0===F?void 0:F.user_name:he?null===F||void 0===F||null===(Y=F.teacher_info)||void 0===Y?void 0:Y.teacher_name:null===F||void 0===F||null===(O=F.learner_info)||void 0===O?void 0:O.learner_name}),(0,y.jsx)(L.A,{content:F,setOpen:T,userId:parseInt(null===X||void 0===X?void 0:X.user_id
1)})]})]}),"date"===R&&(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"my-5",children:(0,y.jsx)(u.A,{})}),(0,y.jsxs)("div",{className:"flex gap-6 flex-wrap",children:[(0,y.jsxs)("span",{className:"isolate inline-flex rounded-md shadow-sm z-10",children:[(0,y.jsx)("div",{type:"button",className:"relative rounded-l-md bg-white text-sm text-hexitime-textColor1 ring-1 ring-inset ring-hexitime-textColor4 hover:bg-hexitime-textColor5 focus:z-10 cursor-pointer",onClick:()=>{ce||me(!ce)},children:(0,y.jsx)(m.A,{onChange:e=>{e instanceof Date&&(oe(e),e<=le&&de(le))},value:ne,calendarIcon:null,clearIcon:null,isOpen:ce,minDate:le,onCalendarClose:()=>me(!1),format:"dd/MM/yyyy"})}),(0,y.jsx)(b,{handleUpArrowClick:()=>{const e=new Date(ne);e.setDate(ne.getDate()+1),e.setHours(0,0,0,0),oe(e)},handleDownArrowClick:()=>{const e=new Date(ne);e.setDate(ne.getDate()-1);const i=new Date;i.setHours(0,0,0,0),e>i?(e.setHours(0,0,0,0),oe(e)):(oe(le),de(le))}})]}),(0,y.jsxs)("span",{className:"isolate inline-flex rounded-md shadow-sm",children:[(0,y.jsx)("div",{type:"button",className:"relative rounded-l-md bg-white text-sm text-hexitime-textColor1 ring-1 ring-inset ring-hexitime-textColor4 hover:bg-hexitime-textColor5 focus:z-10 cursor-pointer",children:(0,y.jsx)(h.h,{onChange:e=>{if("string"===typeof e){const[i,t]=e.split(":").map(Number),l=new Date(re);l.setHours(i),l.setMinutes(t),le.setHours(0,0,0,0),ne>=le&&de(l)}else e instanceof Date&&ne>=new Date&&de(e)},value:re,clockIcon:null,clearIcon:null,isOpen:ce,disableClock:!0,format:"hh:mm a",minTime:D()(le).format("YYYY-MM-DD")===D()(ne).format("YYYY-MM-DD")?le:"00:00"})}),(0,y.jsx)(b,{handleUpArrowClick:()=>{const e=new Date(re);e.setMinutes(re.getMinutes()+1),de(e)},handleDownArrowClick:()=>{const e=new Date(re);e.setMinutes(re.getMinutes()-1),e>=new Date(le.setSeconds(0,0))&&de(e)}})]})]})]})]}),(0,y.jsx)("div",{className:"my-5",children:(0,y.jsx)(u.A,{})}),(0,y.jsxs)("div",{className:"flex justify-end gap-3 flex-wrap",children:["mark"!==R&&(0,y.jsx)("button",{type:"button",className:"bg-white font-semibold px-4 py-2 rounded-lg group flex items-center gap-x-2",onClick:()=>_e(),children:(0,y.jsx)("span",{className:("mark"===R?"text-hexitime-primaryRed":"text-hexitime-textColor2 text-lg hover:text-hexitime-textColor1")+"  text-base",children:"mark"===R?"Mark as uncompleted":"Submit and set date later"})}),(0,y.jsx)("button",{type:"button",className:("mark"===R?"bg-hexitime-secondary hover:bg-white hover:border-hexitime-secondary":"bg-hexitime-primary hover:bg-hexitime-darkPrimary")+" border font-semibold px-4 py-2 rounded-lg group flex items-center gap-x-2",onClick:()=>(async()=>{if(ve(!0),"date"===R){var e,i,t;let C,g;if(V){var l,n,o,r,d,a;g={activity_id:null===F||void 0===F?void 0:F.activity_id,content_id:null===F||void 0===F||null===(l=F.content_info)||void 0===l?void 0:l.id,teacher_id:null===F||void 0===F||null===(n=F.teacher_info)||void 0===n?void 0:n.teacher_id,learner_id:null===F||void 0===F||null===(o=F.learner_info)||void 0===o?void 0:o.learner_id,scheduled_at:D()(ae).utc(),proposed_by:null===X||void 0===X?void 0:X.user_id};const e={text:`Hi ${(null===F||void 0===F||null===(r=F.learner_info)||void 0===r?void 0:r.learner_id)===parseInt(null===X||void 0===X?void 0:X.user_id)?null===F||void 0===F||null===(d=F.teacher_info)||void 0===d?void 0:d.teacher_name:null===F||void 0===F||null===(a=F.learner_info)||void 0===a?void 0:a.learner_name},\nI can't make the previously suggested time, are you happy to reschedule to <a href="/scheduled-activities" class="underline" rel="noopener noreferrer">${D()(ae).format("hh:mm A, DD/MM/YYYY")}</a>`,action:"reschedule-time"},i=te(F,null===X||void 0===X?void 0:X.user_id);ie(i,e)}else{g={activity_id:null===F||void 0===F?void 0:F.activity_id,content_id:null===F||void 0===F?void 0:F.content_id,teacher_id:"offer"===P?null===F||void 0===F?void 0:F.user_id:parseInt(null===X||void 0===X?void 0:X.user_id),learner_id:"offer"===P?parseInt(null===X||void 0===X?void 0:X.user_id):null===F||void 0===F?void 0:F.user_id,scheduled_at:D()(ae).format("YYYY-MM-DD HH:mm:ss"),proposed_by:null===X||void 0===X?void 0:X.user_id};const e={text:`Tap  <a href="/scheduled-activities" class="underline" rel="noopener noreferrer">${D()(ae).format("hh:mm A, DD/MM/YYYY")}</a> to confirm or suggest a new time`,action:"schedule-time"};ie(F,e)}if(C=await j.j.updateScheduleActivity(g),200===(null===(e=C)||void 0===e||null===(i=e.data)||void 0===i||null===(t=i.meta)||void 0===t?void 0:t.code)){var s,u,v,c,m,h;if((0,N.Zx)(null===(s=C)||void 0===s||null===(u=s.data)||void 0===u||null===(v=u.meta)||void 0===v?void 0:v.message),T(!1),W)B(K?null===F||void 0===F?void 0:F.is_content_id:V?null===F||void 0===F||null===(h=F.content_info)||void 0===h?void 0:h.id:null===F||void 0===F?void 0:F.content_id),q(!1);null!==F&&void 0!==F&&null!==(c=F.content_info)&&void 0!==c&&c.id&&(z(null===X||void 0===X?void 0:X.user_id,null===F||void 0===F||null===(m=F.content_info)||void 0===m?void 0:m.id,ae),Z(!1)),ee(),ve(!1),G.push("/scheduled-activities")}else{var x,p,f,_;T(!1),null!==F&&void 0!==F&&null!==(x=F.content_info)&&void 0!==x&&x.id&&Z(!1),ve(!1),(0,N.Ax)(null===(p=C)||void 0===p||null===(f=p.data)||void 0===f||null===(_=f.meta)||void 0===_?void 0:_.message)}}else{var C,g,w;const e={activity_id:null===F||void 0===F?void 0:F.activity_id,content_id:null===F||void 0===F||null===(C=F.content_info)||void 0===C?void 0:C.id,teacher_id:null===F||void 0===F||null===(g=F.teacher_info)||void 0===g?void 0:g.teacher_id,learner_id:null===F||void 0===F||null===(w=F.learner_info)||void 0===w?void 0:w.learner_id,status:2};j.j.updateActivityStatus(e).then(e=>{var i,t;if(200===(null===e||void 0===e||null===(i=e.data)||void 0===i||null===(t=i.meta)||void 0===t?void 0:t.code)){var l,n,o,r,d,a,s;$(null===F||void 0===F||null===(l=F.content_info)||void 0===l?void 0:l.id,null===F||void 0===F||null===(n=F.learner_info)||void 0===n?void 0:n.learner_id),U(e=>e-1),T(!1);const i={available:null===e||void 0===e||null===(o=e.data)||void 0===o||null===(r=o.detail)||void 0===r?void 0:r.user_credits,freezed:null===e||void 0===e||null===(d=e.data)||void 0===d||null===(a=d.detail)||void 0===a?void 0:a.total_freeze_credits};(0,N.AP)("credit",JSON.stringify(i)),Q(i),null!==F&&void 0!==F&&null!==(s=F.content_info)&&void 0!==s&&s.id&&Z(!1),ee(),ve(!1),setTimeout(()=>{J.current.shoot()},300)}else{var u;T(!1),null!==F&&void 0!==F&&null!==(u=F.content_info)&&void 0!==u&&u.id&&Z(!1),ve(!1)}})}})(),disabled:ue,children:(0,y.jsx)("span",{className:("mark"===R?"group-hover:text-hexitime-secondary":"")+" text-base text-white min-w-[100px]",children:"mark"===R?"Mark as completed":"Submit"})})]})]})})})})]})})}},4917:(e,i,t)=>{t.d(i,{y:()=>d});
1var l=t(65043),n=t(7166),o=t(55472),r=t(80791);const d=()=>{const{userFirebaseId:e,profilePicture:i,userChatDetails:t,setUserChatDetails:d}=(0,l.useContext)(n.X0),{setAllConversations:a}=(0,l.useContext)(n.UK),s=(0,n.sw)(),u=async(l,n,a)=>{var u,v,c;(0,o.BN)((0,o.H9)(r.db,"messages",n),{chatId:n});const m={chatId:n,id:e,uid:null===s||void 0===s?void 0:s.user_id,name:null===s||void 0===s?void 0:s.user_name,unread:0,createdAt:o.Dc.fromDate(new Date),updatedAt:o.Dc.fromDate(new Date),profilePicture:i,isShow:!1};l.push(m),await(0,o.mZ)((0,o.H9)(r.db,"users",null===a||void 0===a?void 0:a.firebaseId),{conversations:l});const h={chatId:n,id:null===a||void 0===a?void 0:a.firebaseId,uid:null===a||void 0===a||null===(u=a.data)||void 0===u?void 0:u.uid,name:null===a||void 0===a||null===(v=a.data)||void 0===v?void 0:v.name,unread:0,createdAt:o.Dc.fromDate(new Date),updatedAt:o.Dc.fromDate(new Date),profilePicture:null===a||void 0===a||null===(c=a.data)||void 0===c?void 0:c.profilePicture,isShow:!1},x=[...null===t||void 0===t?void 0:t.conversations,h];return await d(e=>({...e,conversations:x})),await(0,o.mZ)((0,o.H9)(r.db,"users",e),{conversations:x}),x},v=async(i,l)=>{var n,d;const a=null===i||void 0===i||null===(n=i.data)||void 0===n||null===(d=n.conversations)||void 0===d?void 0:d.map(e=>(null===e||void 0===e?void 0:e.uid)===(null===s||void 0===s?void 0:s.user_id)?{...e,updatedAt:o.Dc.fromDate(new Date),unread:parseInt(null===e||void 0===e?void 0:e.unread)+1,isShow:!0}:e),u=l&&null!==l?l:null===t||void 0===t?void 0:t.conversations,v=null===u||void 0===u?void 0:u.map(e=>{var t;return(null===e||void 0===e?void 0:e.uid)===(null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.uid)?{...e,updatedAt:o.Dc.fromDate(new Date),isShow:!0}:e});await(0,o.mZ)((0,o.H9)(r.db,"users",null===i||void 0===i?void 0:i.firebaseId),{conversations:a}),e&&(await(0,o.mZ)((0,o.H9)(r.db,"users",e),{conversations:v}),c(v))},c=e=>{const i=(0,n.qW)(e,"updatedAt");a(i)};return{updateConversationRoomList:u,sendAutomatedMessage:async(t,l)=>{var d,a;const c={user_id:null===t||void 0===t||null===(d=t.user_id)||void 0===d?void 0:d.toString(),user_name:null===t||void 0===t?void 0:t.user_name},m=await(0,n.Z5)(c,null===t||void 0===t?void 0:t.profile_picture),h=null===m||void 0===m||null===(a=m.data)||void 0===a?void 0:a.conversations;let x=[e,null===m||void 0===m?void 0:m.firebaseId].sort().join("_");let p=null;-1===(null===h||void 0===h?void 0:h.findIndex(e=>(null===e||void 0===e?void 0:e.chatId)===x))&&(p=await u(h,x,m));const f=(0,o.rJ)(r.db,"messages",x,"conversations");let _={createdAt:Date.now(),senderName:null===s||void 0===s?void 0:s.user_name,text:null===l||void 0===l?void 0:l.text,senderId:null===s||void 0===s?void 0:s.user_id,avatar:i,type:null===t||void 0===t?void 0:t.content_type,action:null===l||void 0===l?void 0:l.action};await(0,o.gS)(f,_),await(0,o.mZ)((0,o.H9)(r.db,"messages",x),{chatId:x}),await v(m,p)},updateConversationUnread:v,createTempContentMessage:(e,i)=>{var t,l,n,o,r,d,a,s;const u=(null===e||void 0===e||null===(t=e.learner_info)||void 0===t?void 0:t.learner_id)===parseInt(i);return{user_id:u?null===e||void 0===e||null===(l=e.teacher_info)||void 0===l?void 0:l.teacher_id:null===e||void 0===e||null===(n=e.learner_info)||void 0===n?void 0:n.learner_id,user_name:u?null===e||void 0===e||null===(o=e.teacher_info)||void 0===o?void 0:o.teacher_name:null===e||void 0===e||null===(r=e.learner_info)||void 0===r?void 0:r.learner_name,content_type:null===e||void 0===e||null===(d=e.content_info)||void 0===d?void 0:d.content_type,profile_picture:u?null===e||void 0===e||null===(a=e.teacher_info)||void 0===a?void 0:a.teacher_pro_pic:null===e||void 0===e||null===(s=e.learner_info)||void 0===s?void 0:s.learner_pro_pic}}}}},16348:(e,i,t)=>{t.d(i,{h:()=>d});var l,n=t(65043);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},o.apply(null,arguments)}function r(e,i){let{title:t,titleId:r,...d}=e;return n.createElement("svg",o({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":r},d),t?n.createElement("title",{id:r},t):null,l||(l=n.createElement("path",{d:"M19.5737 8.32289C19.2974 8.20739 18.9758 8.1398 18.6392 8.1398C18.2612 8.1398 17.9028 8.22445 17.5819 8.37605L17.597 8.36948L13.8052 10.0731C13.8072 10.0423 13.8223 10.0154 13.8223 9.98452C13.8131 9.0848 13.0814 8.35898 12.1803 8.35898C12.1351 8.35898 12.0911 8.36095 12.0465 8.36423L12.0524 8.36358H9.56978L6.44603 7.44877C6.40534 7.4363 6.35809 7.42908 6.30888 7.42908H6.30756H4.88416V6.93164C4.88416 6.65995 4.66366 6.43945 4.39197 6.43945H1.84375C1.57206 6.43945 1.35156 6.65995 1.35156 6.93164V14.9431C1.35156 15.2148 1.57206 15.4353 1.84375 15.4353H4.39197C4.66366 15.4353 4.88416 15.2148 4.88416 14.9431V14.2843C6.07722 14.4706 7.14559 14.7712 8.15753 15.1807L8.05909 15.1453C8.81969 15.4183 9.69775 15.5758 10.6126 15.5758C11.6672 15.5758 12.6725 15.3664 13.5893 14.9865L13.5375 15.0055C14.3532 14.6426 15.0455 14.26 15.7011 13.8249L15.6473 13.8584C15.8691 13.7212 16.0896 13.584 16.3127 13.4521C17.3897 12.8149 18.2493 12.2584 19.0224 11.6993C19.403 11.4283 19.7351 11.1599 20.0508 10.8744L2
10.0409 10.8829C20.2837 10.6854 20.478 10.4373 20.6086 10.1545L20.6138 10.142C20.6348 10.0895 20.6466 10.0291 20.6466 9.96548C20.6466 9.92873 20.6427 9.89264 20.6348 9.85786L20.6355 9.86114C20.539 9.19439 20.1393 8.63658 19.5835 8.32683L19.573 8.32158L19.5737 8.32289ZM3.90044 14.4523H2.33659V7.42514H3.90044V14.4523ZM19.3473 10.186C19.0769 10.4288 18.7822 10.665 18.4758 10.8836L18.4449 10.9046C17.6988 11.444 16.862 11.9854 15.8107 12.6082C15.5823 12.7427 15.3573 12.8825 15.1302 13.0223C14.5691 13.399 13.924 13.758 13.2494 14.0631L13.1641 14.0972C12.4081 14.4076 11.53 14.5881 10.6106 14.5881C9.82113 14.5881 9.06316 14.4555 8.35638 14.2108L8.40494 14.2252C7.38447 13.7973 6.19731 13.4705 4.95963 13.2999L4.88416 13.2914V8.41411H6.23669L9.36044 9.32892C9.40113 9.34139 9.44838 9.34861 9.49759 9.34861H9.49891H12.0517C12.6312 9.34861 12.8373 9.69117 12.8373 9.98517C12.8373 10.2792 12.6312 10.6217 12.0517 10.6217H7.58331C7.31163 10.6217 7.09113 10.8422 7.09113 11.1139C7.09113 11.3856 7.31163 11.6061 7.58331 11.6061H12.6896C12.7624 11.6061 12.8313 11.5904 12.8937 11.5621L12.8904 11.5635L18.0059 9.26527C18.1942 9.17864 18.4147 9.12745 18.647 9.12745C18.8216 9.12745 18.9889 9.15567 19.1458 9.20883L19.1346 9.20555C19.3853 9.35583 19.5664 9.60192 19.6268 9.89133L19.6281 9.89789C19.5395 10.0022 19.447 10.0961 19.3479 10.1827L19.3446 10.1853L19.3473 10.186Z",fill:"currentColor"})))}const d=n.forwardRef(r);t.p},30248:(e,i,t)=>{t.d(i,{A:()=>a});var l=t(65043),n=t(60907),o=t(7166),r=t(91688),d=t(70579);const a=e=>{let{content:i,setOpen:t,area:a,userId:s}=e;const{setShowChat:u,openChatPopup:v,firstVisible:c,setFirstVisible:m,setLoading:h,isMobileDevice:x,chatWithUser:p,setFlag:f}=(0,l.useContext)(o.UK),_=(0,r.useHistory)();return(0,d.jsx)("button",{className:"cursor-pointer w-5 h-5 ml-3 text-hexitime-primary hover:text-hexitime-darkPrimary",type:"button",onClick:()=>(()=>{var e,l;let n;var o,r,d,C,g,w,y;n=null!==i&&void 0!==i&&null!==(e=i.teacher_info)&&void 0!==e&&e.teacher_id?(null===i||void 0===i||null===(o=i.teacher_info)||void 0===o?void 0:o.teacher_id)===s?{user_id:null===i||void 0===i||null===(r=i.learner_info)||void 0===r?void 0:r.learner_id,user_name:null===i||void 0===i||null===(d=i.learner_info)||void 0===d?void 0:d.learner_name,profile_picture:null===i||void 0===i||null===(C=i.learner_info)||void 0===C?void 0:C.learner_pro_pic}:{user_id:null===i||void 0===i||null===(g=i.teacher_info)||void 0===g?void 0:g.teacher_id,user_name:null===i||void 0===i||null===(w=i.teacher_info)||void 0===w?void 0:w.teacher_name,profile_picture:null===i||void 0===i||null===(y=i.teacher_info)||void 0===y?void 0:y.teacher_pro_pic}:{user_id:null===i||void 0===i?void 0:i.user_id,user_name:null===i||void 0===i?void 0:i.user_name,profile_picture:null===i||void 0===i?void 0:i.profile_picture},"head"!==a&&t(!1),v(n),h(!0),(null===p||void 0===p?void 0:p.user_id)!==(null===(l=n)||void 0===l?void 0:l.user_id)&&(u(!0),f(e=>!e)),c&&m(null),x&&_.push("/chats")})(),children:(0,d.jsx)(n.h,{className:"w-6"})})}},59221:(e,i,t)=>{t.d(i,{h:()=>u});var l,n,o,r,d=t(65043);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},a.apply(null,arguments)}function s(e,i){let{title:t,titleId:s,...u}=e;return d.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"2.23 1.52 14.17 16.96",ref:i,"aria-labelledby":s},u),t?d.createElement("title",{id:s},t):null,l||(l=d.createElement("path",{d:"M6.33331 10.7916V4.85413C6.33331 4.53918 6.45842 4.23714 6.68112 4.01444C6.90382 3.79174 7.20587 3.66663 7.52081 3.66663C7.83576 3.66663 8.1378 3.79174 8.3605 4.01444C8.5832 4.23714 8.70831 4.53918 8.70831 4.85413V9.99996",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),n||(n=d.createElement("path",{d:"M8.70831 4.85421V3.27087C8.70831 3.11493 8.73903 2.96051 8.79871 2.81644C8.85838 2.67236 8.94585 2.54145 9.05612 2.43118C9.16639 2.32092 9.2973 2.23344 9.44138 2.17377C9.58545 2.11409 9.73987 2.08337 9.89581 2.08337C10.0518 2.08337 10.2062 2.11409 10.3502 2.17377C10.4943 2.23344 10.6252 2.32092 10.7355 2.43118C10.8458 2.54145 10.9332 2.67236 10.9929 2.81644C11.0526 2.96051 11.0833 3.11493 11.0833 3.27087V10",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=d.createElement("path",{d:"M11.0833 4.85413C11.0833 4.53918 11.2084 4.23714 11.4311 4.01444C11.6538 3.79174 11.9559 3.66663 12.2708 3.66663C12.5858 3.66663 12.8878 3.79174 13.110
15 4.01444C13.3332 4.23714 13.4583 4.53918 13.4583 4.85413V9.99996",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),r||(r=d.createElement("path",{d:"M13.4584 6.4375C13.4584 6.12256 13.5835 5.82051 13.8062 5.59781C14.0289 5.37511 14.3309 5.25 14.6459 5.25C14.9608 5.25 15.2628 5.37511 15.4855 5.59781C15.7082 5.82051 15.8334 6.12256 15.8334 6.4375V13.1667C15.8334 14.4264 15.3329 15.6346 14.4421 16.5254C13.5513 17.4162 12.3431 17.9167 11.0834 17.9167H9.50002H9.66469C8.87804 17.9168 8.10367 17.7216 7.41112 17.3485C6.71857 16.9754 6.12951 16.4361 5.69686 15.7792L5.54169 15.5417C5.29469 15.1625 4.42781 13.6512 2.94027 11.007C2.78863 10.7375 2.74812 10.4194 2.82737 10.1205C2.90661 9.82151 3.09936 9.56528 3.36461 9.40625C3.64713 9.23673 3.97821 9.16647 4.30523 9.20663C4.63226 9.24679 4.93649 9.39507 5.16961 9.62792L6.33336 10.7917",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})))}const u=d.forwardRef(s);t.p},88837:(e,i,t)=>{t.d(i,{A:()=>s});
1var l=t(65043),n=t(92823),o=t.n(n),r=(t(25884),t(7166)),d=t(56543),a=t(70579);const s=l.memo(e=>{let{placeholder:i,setForm:t,error:n,label:s,isRequired:u,classNames:v,value:c,id:m,name:h,theme:x,classes:p,readOnly:f,showFullText:_,MaxCharLimitLongText:C}=e;const[g,w]=(0,l.useState)(!1),[y,b]=(0,l.useState)(0),[j,N]=(0,l.useState)(!1),k=(0,r.Hy)(c,d.o$),D=!_&&f&&(null===c||void 0===c?void 0:c.length)>d.o$,L=(0,l.useRef)(!1);return(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsxs)("label",{htmlFor:m,className:`block text-sm xl:text-base font-medium text-hexitime-textColor1  ${v||""}`,children:[s," ",u&&(0,a.jsx)("span",{className:"text-hexitime-primaryRed",children:"*"}),!f&&C&&j&&(0,a.jsxs)("span",{className:"mt-1 float-right text-xs "+(y<C?"text-hexitime-primary":"text-hexitime-primaryRed"),children:[C-y," Characters Left"]})]}),(0,a.jsxs)("div",{className:"mt-2",children:[(0,a.jsx)(o(),{className:p,placeholder:i,onChange:(e,i,l,n)=>{const o=null===n||void 0===n?void 0:n.getLength();(!C||o-2<C)&&L.current?(null===t||void 0===t||t(i=>({...i,[h]:e})),j||N(!0)):L.current=!0,b(o-1)},theme:x,value:D&&!g?k:c,readOnly:f}),D&&(0,a.jsx)("button",{onClick:()=>w(e=>!e),className:"!text-center !text-hexitime-primary w-[100%] p-[10px]",children:g?"Show less":"Keep Reading"})]}),n&&(0,a.jsx)("span",{className:"error text-sm xl:text-lg text-hexitime-primaryRed",children:n})]})})}}]);
2//# sourceMappingURL=53.0195ecf1.chunk.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.