1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4104],{52601:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/journal/chat",function(){return t(12136)}])},24460:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var r=t(14924),a=t(828),o=t(85893),i=t(67294),c=t(5616),s=t(11163),u=t(10724),l=t(90852),d=t(40044),p=t(70275),h=[{label:"Profile",href:"/user/profile-v2",id:"profile"},{label:"Data Lab",href:"/user/journal/lab",id:"lab"},{label:"Nutrisi & Kalori",href:"/user/journal/nutrition",id:"nutrition"},{label:"Berat Badan",href:"/user/journal/body-weight",id:"body-weight"},{label:"Olahraga",href:"/user/journal/exercise",id:"exercise"},{label:"Tingkat Stress",href:"/user/journal/stress",id:"stress"},{label:"Jurnal Makanan",href:"/user/journal/food",id:"food"},{label:"Jurnal Olahraga",href:"/user/journal/sport",id:"sport"},{label:"Jurnal Mental Health",href:"/user/journal/mentalHealth",id:"mentalHealth"},{label:" Ukuran Badan",href:"/user/journal/bodyMeasure",id:"bodyMeasure"},{label:"Fatigue",href:"/user/journal/fatigue",id:"fatigue"},{label:"Chat",href:"/user/journal/chat",id:"chat"},{label:"Point",href:"/user/journal/point",id:"point"},{label:"Riwayat Tantangan",href:"/user/journal/challenge-history",id:"challenge-history"}];function f(){var e=(0,a.Z)(i.useState(0),2),n=e[0],t=e[1],f=(0,s.useRouter)(),m=f.query,b=f.pathname,g=function(e){var n=m.paramName;"profile"==e.target.id?(0,p.LY)("/user/profile-v2",{paramName:n,backHistory:"/corporate/users"}):(0,p.LY)("/user/journal/".concat(e.target.id),{paramName:n,backHistory:"/corporate/users"})};return(0,i.useEffect)((function(){var e=h.findIndex((function(e){return e.href===b}));t(e)}),[b]),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(c.Z,{className:"ProfilNav",sx:{flexGrow:1,mt:2},children:(0,o.jsx)(u.Z,{value:n,variant:"scrollable",scrollButtons:!0,"aria-label":"visible arrows tabs example",sx:(0,r.Z)({"&.Mui-selected":{backgroundColor:"rgba(220, 0, 50, 0.1)"}},"& .".concat(l.Z.scrollButtons),{"&.Mui-disabled":{opacity:.5}}),children:h.map((function(e,n){return(0,o.jsx)(d.Z,{label:e.label,id:e.id,onClick:g,sx:{"&.Mui-selected":{color:"primary.main"}}},n)}))})})})}},70275:function(e,n,t){"use strict";t.d(n,{LY:function(){return s},Q0:function(){return c}});var r=t(29815),a=t(11163),o=t.n(a),i=Object.freeze({BrowseList:function(e,n){return[{pathname:n,query:e},n]}});function c(e){var n,t,a=e.split("-"),c="food";switch(a[1]){case"Data Lab":c="datalab";break;case"Journal Olahraga":c="sport";break;case"Journal Mental Health":c="mental";break;case"Edit Data Lab":c="datalab/edit";break;case"Journal Berat Badan":c="/corporate/jurnal/body-weight"}e.includes("Journal Berat Badan")?(n=o()).push.apply(n,(0,r.Z)(i.BrowseList({paramName:"steps"==a.slice(-1)?"".concat(a[0],"-steps"):a[0]},"".concat(c,"?id=").concat(a[0],"&name=").concat(a[2])))):(t=o()).push.apply(t,(0,r.Z)(i.BrowseList({paramName:"steps"==a.slice(-1)?"".concat(a[0],"-steps"):a[0]},"/id/journal/".concat(c))))}function s(e,n){var t;(t=o()).push.apply(t,(0,r.Z)(i.BrowseList(n,e)))}},13289:function(e,n,t){"use strict";t.d(n,{HG:function(){return B},Hr:function(){return y},IF:function(){return E},Mo:function(){return D},R8:function(){return S},TV:function(){return b},Tq:function(){return O},U$:function(){return q},X_:function(){return X},Xm:function(){return Y},bG:function(){return Z},bI:function(){return v},bt:function(){return I},ep:function(){return M},fm:function(){return x},gH:function(){return N},iI:function(){return _},kw:function(){return P},mn:function(){return U},pt:function(){return g},rh:function(){return T},uM:function(){return k},w$:function(){return A},y4:function(){return J},zi:function(){return w}});var r=t(47568),a=t(26042),o=t(69396),i=t(99534),c=t(29815),s=t(97582),u=t
1(26864),l=t(39828),d=t(66448),p=t(89047),h=t(30381),f=t.n(h),m=JSON.parse(localStorage.getItem("user")).id,b=function(e,n,t,r){var a=n===m;(0,l.QT)(e).then((function(n){var o,i=n.exists();i?a&&i&&(o={unreadMessages:0}):o={expiredDate:t,firebaseGroupId:r,unreadMessages:0},o&&(0,l.pl)(e,o,{merge:!0}).catch((function(){return console.error("reset unreadMessages error")}))}))},g=function(e){return(0,d.Yu)("".concat(p.Xp.baseUrl,"/api/wellnessCoach/chat?v=2&isB2b=true&corporateId=").concat(e))},x=function(e,n,t,r,i){var s=(0,l.IO)((0,l.hJ)(u.Z,"Messages/".concat(e,"/messages")),(0,l.Xo)("sentAt","desc"),(0,l.e0)(r),(0,l.b9)(p.Xp.limitChat+1)),d=[];return(0,l.PL)(s).then((function(e){e.docs.length>p.Xp.limitChat?i(e.docs[p.Xp.limitChat]):i(void 0),e.forEach((function(e){var n,t,r=f()(null===(n=e.data())||void 0===n?void 0:n.sentAt).format("DD-MM-YYYY HH:mm"),i=null===(t=e.data())||void 0===t?void 0:t.sentAt;d.push((0,o.Z)((0,a.Z)({id:e.id},e.data()),{sentAt:r,sentAtOrigin:i}))})),localStorage.setItem("messages",JSON.stringify((0,c.Z)(d.slice(0,p.Xp.limitChat).reverse()).concat((0,c.Z)(n)))),t((0,c.Z)(d.slice(0,p.Xp.limitChat).reverse()).concat((0,c.Z)(n)))}))};function v(e){return(0,d.qC)("".concat(p.Xp.baseUrl,"/api/wellnessCoach/chat/sendNotif"),e)}function Z(e,n,t,r){return j.apply(this,arguments)}function j(){return(j=(0,r.Z)((function(e,n,t,r){var a,o,c;return(0,s.__generator)(this,(function(s){return a=r.sentTo,o=r.recipientGroups,c=(0,i.Z)(r,["sentTo","recipientGroups"]),console.log("chat data",r),[2,(0,l.ET)((0,l.hJ)(u.Z,"Messages/".concat(e,"/messages")),c).then((function(){var i;switch(r.type){case"image":i="\ud83d\udcf7 photo";break;case"pdf":i="pdf file";break;case"video":i="video file";break;case"journalRequest":i="Permintaan Jurnal"}if((0,l.r7)((0,l.JU)(u.Z,"Groups",e),{recentMessage:t?"".concat(n," : ").concat((null===r||void 0===r?void 0:r.body)||i):"".concat(i||(null===r||void 0===r?void 0:r.body)),updatedAt:r.sentAt}).catch((function(e){return console.error(e)})),t||(0,l.r7)((0,l.JU)(u.Z,"Users/".concat(a,"/chatrooms"),e),{unreadMessages:(0,l.nP)(1)}).catch((function(e){return console.error(e)})),(null===o||void 0===o?void 0:o.length)>0){var c=!0,s=!1,d=void 0;try{for(var p,h=o[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var f=p.value;(0,l.r7)((0,l.JU)(u.Z,"Users/".concat(f.id,"/chatrooms"),e),{unreadMessages:(0,l.nP)(1)}).catch((function(e){return console.error(e)}))}}catch(m){s=!0,d=m}finally{try{c||null==h.return||h.return()}finally{if(s)throw d}}}})).catch((function(e){return console.error(e)}))]}))}))).apply(this,arguments)}function y(e){return C.apply(this,arguments)}function C(){return(C=(0,r.Z)((function(e){var n,t,a,o;return(0,s.__generator)(this,(function(i){return n=e.sentTo,t=e.firebaseGroupId,a=e.sentAt,o=e.recentMessage,[2,(0,l.r7)((0,l.JU)(u.Z,"Groups",t),{recentMessage:o,updatedAt:a}).then((0,r.Z)((function(){return(0,s.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,l.r7)((0,l.JU)(u.Z,"Users/".concat(n,"/chatrooms"),t),{unreadMessages:(0,l.nP)(1)}).catch((function(e){return e}))];case 1:return[2,e.sent()]}}))}))).catch((function(e){return e}))]}))}))).apply(this,arguments)}function w(e){return(0,d.qC)("".concat(p.Xp.baseUrl,"/api/wellnessCoach/sendMessageBlast?multiDietGoal=",!0),(0,o.Z)((0,a.Z)({},e),{sendMessage:!0}))}function k(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="q=".concat(null===n||void 0===n?void 0:n.q,"&page=").concat(null===n||void 0===n?void 0:n.page,"&limit=").concat(null===n||void 0===n?void 0:n.limit,"&sort=").concat(null===n||void 0===n?void 0:n.sort,"&type=").concat(t);return(0,d.Yu)("".concat(p.Xp.baseUrl,"/api/wellnessCoach/getBlastTemplate/").concat(e,"?").concat(r))}function M(e){return(0,d.Yu)("".concat(p.Xp.baseUrl,"/api/company-group/chat-group/").concat(e))}function U(e,n){return console.log({id:e,payload:n}),(0,d.B6)("".concat(p.Xp.baseUrl,"/api/company-group/chat-group/").concat(e),n)}function X(){return(0,d.Yu)("".concat(p.Xp.baseUrl,"/api/company-group/chat-group/candidates"))}function N(e){return(0,d.qC)("".concat(p.Xp.baseUrl,"/api/company-group/chat-group"),e)}function Y(e,n){return(0,d.fP)("".concat(p.Xp.baseUrl,"/api/company-group/chat-group/leave/").concat(e),n)}function S(e,n){return(0,d.B6)("".concat(p.Xp.baseUrl,"/api/company-group/chat-group/").concat(e,"/member"),n)}function P(e){return(0,d.B6)("".concat(p.Xp.baseUrl,"/api/company-group/chat-group/add-admin"),e)}function _(e){return(0,d.B6)("".concat(p.Xp.baseUrl,"/api/company-group/chat-group/expel"),e)}function D(e){return(0,d.qC)("".concat(p.Xp.baseUrl,"/api/wellnessCoach/sendPopupMessage/").concat(e.corporateId),(0,o.Z)((0,a.Z)({},e),{sendMessage:!0}))}function I(e,n){var t="q=".concat(null===n||void 0===n?void 0:n.q,"&page=").concat(null===n||void 0===n?void 0:n.page,"&limit=").concat(null===n||void 0===n?void 0:n.limit,"&sort=").concat(null===n||void 0===n?void 0:n.sort);return(0,d.Yu)("".concat(p.Xp.baseUrl,"/api/wellnessCoach/sendPopupMessage/").concat(e.corporateId,"?").concat(t))}var B=function(e){return(0,d.Yu)("".concat(p.Xp.baseUrl,"/api/wellnessCoach/chat/").concat(e))},q=function(e){var n=e.chatRoomId,t=e.timer,r="room=".concat(n);return t&&(r+="&timer=".concat(t)),(0,d.fP)("".concat(p.Xp.baseUrl,"/api/wellnessCoach/chat/session?").concat(r))};function T(e){return(0,d.qC)("".concat(p.Xp.baseUrl,"/api/chatroom"),e)}function A(e,n){return(0,d.qC)("".concat(p.Xp.baseUrl,"/api/consultation-record/grid?page=").concat(e.page,"&limit=").concat(e.limit),n)}function O(e){return(0,d.Yu)("".concat(p.Xp.baseUrl,"/api/consultation-record?key=").concat(e.idRecord))}function J(e){return(0,d.qC)("".concat(p.Xp.baseUrl,"/api/consultation-record/create"),e)}function E(e){return(0,d.Yu)("".concat(p.Xp.baseUrl,"/api/company-group/list/chat-group/").concat(e.corporateId))}},56802:function(e,n,t){"use strict";t.d(n,{CN:function(){return u},Dc:function(){return c},FI:function(){return f},FK:function(){return d},FQ:function(){return p},HK:function(){return m},Um:function(){return i},VD:function(){return o},YX:function(){return s},jd:function(){return l},tr:function(){return h}});var r=t(89047),a=t(66448);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=e.trim()?"&search=".concat(encodeURIComponent(e.trim())):"";return(0,a.Yu)("".concat(r.Xp.baseUrl,"/api/wellnessCoach/chatroom/all?isB2b=true").
1concat(t),n)}function i(e){return(0,a.qC)("".concat(r.Xp.baseUrl,"/api/wellnessCoach/program/end"),e)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,a.Yu)("".concat(r.Xp.baseUrl,"/api/wellnessCoach/chatroom/owned"),e)}function s(e,n){return(0,a.qC)("".concat(r.Xp.baseUrl,"/api/user/corporate/").concat(e,"?").concat(n))}function u(){var e=JSON.parse(localStorage.getItem("user"));return(0,a.Yu)("".concat(r.Xp.baseUrl,"/api/home-v2/doctor/corporate/").concat(e.companyId))}function l(e){return(0,a.qC)("".concat(r.Xp.baseUrl,"/api/home-v2/doctor"),e)}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n?(0,a.Yu)("".concat(r.Xp.baseUrl,"/api/home-v2/nutrition-macro/").concat(e,"?mod=").concat(n)):(0,a.Yu)("".concat(r.Xp.baseUrl,"/api/home-v2/nutrition-macro/").concat(e))}function p(e,n){return(0,a.qC)("".concat(r.Xp.baseUrl,"/api/nutritionGuides/adjustCalorieIntake/").concat(e),n)}function h(e){return(0,a.Yu)("".concat(r.Xp.baseUrl,"/api/nutritionGuides/adjustCalorieIntake/").concat(e))}function f(e){return(0,a.B6)("".concat(r.Xp.baseUrl,"/api/custom-nutrient/switch"),e)}function m(e){return(0,a.qC)("".concat(r.Xp.baseUrl,"/api/custom-nutrient"),e)}},12136:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var r=t(47568),a=t(14924),o=t(26042),i=t(69396),c=t(828),s=t(97582),u=t
1(85893),l=t(67294),d=t(30381),p=t.n(d),h=t(45697),f=t.n(h),m=t(11163),b=t(65582),g=t(15861),x=t(12963),v=t(5616),Z=t(69417),j=t(98456),y=t(72882),C=t(7906),w=t(53184),k=t(53816),M=t(53252),U=t(295),X=t(51233),N=t(10633),Y=t(50657),S=t(86886),P=t(50135),_=t(87109),D=t(5306),I=t(38858),B=t(40571),q=t(2706),T=t(56802),A=t(13289),O=t(58227),J=t(82771),E=t(24460),H=t(56978);function R(e){if(1===e.roomAdmin.length){var n=e.roomAdmin[0],t=e.members.find((function(e){return e._id===n}));return"".concat(t.name.first," ").concat(t.name.last)}if(e.roomAdmin.length>0){var r="",a=!0,o=!1,i=void 0;try{for(var s,u=function(){var n=(0,c.Z)(s.value,2),t=n[0],a=n[1],o=e.members.find((function(e){return e._id===a}));r+="".concat(o.name.first," ").concat(o.name.last),t!==e.roomAdmin.length-1&&(r+=", ")},l=e.roomAdmin.entries()[Symbol.iterator]();!(a=(s=l.next()).done);a=!0)u()}catch(d){o=!0,i=d}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}return r}return"-"}function L(){var e=(0,m.useRouter)(),n=(0,B.Z)().themeStretch,t=e.query,a={menteeId:t.paramName||null},o=(0,l.useState)(!1),i=o[0],c=o[1],d=(0,l.useState)([]),h=d[0],f=d[1],Y=(0,l.useState)({current:1,limit:10,pageSize:0,total:0}),S=Y[0],P=Y[1],_=(0,l.useState)({}),D=_[0],I=_[1],L=(0,l.useState)([]),G=L[0],F=L[1],W=(0,l.useState)(!1),V=W[0],K=W[1],Q=(0,l.useState)({status:!1,code:"success",message:null}),$=Q[0],ee=Q[1];(0,l.useEffect)((function(){var n=function(){var e=(0,r.Z)((function(){var e,n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return"version=2",[4,(0,T.YX)(t.paramName,"version=2")];case 1:return e=r.sent(),n=e.data.data.data,I({name:"".concat(n.name.first," ").concat(n.name.last),phoneNumber:n.phoneNumber}),[2]}}))}));return function(){return e.apply(this,arguments)}}(),a=function(){var e=(0,r.Z)((function(){var e,n;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,O.aR)()];case 1:return e=t.sent(),n=e.data.data,F(n),[2]}}))}));return function(){return e.apply(this,arguments)}}();t.paramName?(ne(),n(),a()):e.push("/corporate/users")}),[]);var ne=function(){var e=(0,r.Z)((function(){var e,n,t,r,o,i,u,l=arguments;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:e=l.length>0&&void 0!==l[0]?l[0]:null,s.label=1;case 1:return s.trys.push([1,3,4,5]),c(!0),n={page:e?e.page:S.current,limit:S.limit},[4,(0,q.I1)(n,a)];case 2:if(t=s.sent(),r=t.data,o=r.status,i=r.data,"success"!==o)throw{type:"400",message:"Bad Request Error"};return f(i.docs),P({current:i.page,limit:i.limit,pageSize:i.pages,total:i.total}),[3,5];case 3:return u=s.sent(),re({status:!0,code:"error",message:"400"===u.type?u.message:"Internal Server Error"}),[3,5];case 4:return c(!1),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),te=function(){var e=(0,r.Z)((function(e){var n,t,r,a,o,i;return(0,s.__generator)(this,(function(c){switch(c.label){case 0:n={status:!0,code:"success",message:"Berhasil Menambahkan Chatroom"},c.label=1;case 1:return c.trys.push([1,4,5,6]),[4,(0,A.rh)(e)];case 2:if(t=c.sent(),r=t.data.data,a=r.isSuccess,o=r.message,!1===a)throw{type:"400",message:o};return[4,ne()];case 3:return c.sent(),[3,6];case 4:return i=c.sent(),n={status:!0,code:"error",message:"400"===i.type?i.message:"Internal Server Error"},[3,6];case 5:return re(n),K(!1),[7];case 6:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),re=function(e){ee(e),setTimeout((function(){ee({status:!1,code:"success",message:null})}),3e3)};return(0,u.jsxs)(J.Z,{title:"Profil Chat",children:[(0,u.jsx)(H.Z,{row:$}),(0,u.jsxs)(b.Z,{maxWidth:!n&&"xl",children:[(0,u.jsx)(g.Z,{variant:"h3",component:"h1",paragraph:!0,children:"Profil"}),(0,u.jsxs)(x.Z,{"aria-label":"breadcrumb",children:[(0,u.jsx)(g.Z,{color:"text.primary",children:"User"}),(0,u.jsx)(g.Z,{color:"text.primary",children:"Chat"})]}),(0,u.jsx)(E.Z,{}),(0,u.jsxs)(v.Z,{children:[(0,u.jsx)(v.Z,{sx:{display:"flex",justifyContent:"flex-end",pb:4,pt:3},children:(0,u.jsx)(Z.Z,{sx:{borderRadius:"16px",px:2.75,py:1.25},variant:"contained",size:"medium",onClick:function(){return K(!0)},children:"Buka Chat Room"})}),i?(0,u.jsx)(v.Z,{sx:{display:"flex",justifyContent:"center",mt:2},children:(0,u.jsx)(j.Z,{})}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(y.Z,{sx:{backgroundColor:"white",py:1,borderRadius:1},children:(0,u.jsxs)(C.Z,{sx:{width:"100%"},children:[(0,u.jsx)(w.Z,{children:(0,u.jsxs)(k.Z,{children:[(0,u.jsx)(M.Z,{align:"center",sx:{width:"34%",paddingY:"8px"},children:"Nama Coach"}),(0,u.jsx)(M.Z,{align:"center",sx:{width:"33%",paddingY:"8px"},children:"Tanggal Mulai"}),(0,u.jsx)(M.Z,{align:"center",sx:{width:"33%",paddingY:"8px"},children:"Tanggal Berakhir"})]})}),(0,u.jsx)(U.Z,{children:h&&h.map((function(e){return(0,u.jsxs)(k.Z,{children:[(0,u.jsx)(M.Z,{align:"center",children:R(e)}),(0,u.jsx)(M.Z,{align:"center",children:e.createdAt?p()(e.createdAt).format("DD/MM/YYYY HH:mm A"):"-"}),(0,u.jsx)(M.Z,{align:"center",children:e.expiredAt?p()(e.expiredAt).format("DD/MM/YYYY HH:mm A"):"-"})]},e._id)}))})]})}),h.length>0&&(0,u.jsx)(X.Z,{alignItems:"center",sx:{mt:1.5},children:(0,u.jsx)(N.Z,{count:S.pageSize,page:S.current,onChange:function(e,n){return ne({page:n})},color:"primary"})})]})]})]}),(0,u.jsx)(z,{open:V,handleClose:function(){return K(!1)},preFilled:D,coaches:G,onSubmit:te})]})}function z(e){var n=e.open,t=e.handleClose,c=e.onSubmit,d=e.preFilled,h=e.coaches,f=(0,l.useState)(!1),m=f[0],b=f[1],x=(0,l.useState)({}),y=x[0],C=x[1],w=(0,l.useState)({duration:0,host:null,endDate:""}),k=w[0],M=w[1],U=new Date;U.setDate(U.getDate()+1);var X=U.toISOString().split("T")[0];(0,l.useEffect)((function(){Object.keys(d).length>0&&M((function(e){return(0,i.Z)((0,o.Z)({},e),{participantName:d.name,participantPhone:d.phoneNumber})}))}),[d]);var N=function(e){var n=e.target,t=n.name,r=n.value;M((function(e){return(0,i.Z)((0,o.Z)({},e),(0,a.Z)({},t,r))}))},I=function(){var e=(0,r.Z)((function(){var e,n;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return b(!0),e={},k.host||(e.host="Nama Coach is required"),k.endDate?k.endDate<X&&(e.endDate="Tanggal Berakhir tidak boleh kurang dari besok"):e.endDate="Tanggal Berakhir is required",k.duration<0&&(e.duration="Durasi Video Call tidak boleh kurang dari 0"),C(e),Object.keys(e).length>0?(b(!1),[2]):(n={host:k.host.phoneNumber,participant:k.participantPhone,maxMinutes:k.duration?Number(k.duration):0,endDate:k.endDate},[4,c(n)]);case 1:return t.sent(),b(!1),M({duration:0,host:null,endDate:null,participantName:d.name,participantPhone:d.phoneNumber}),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,u.jsx)(Y.Z,{fullWidth:!0,maxWidth:"md",open:n,onClose:t,PaperProps:{style:{position:"relative",overflow:"visible"}},children:(0,u.jsxs)(v.Z,{sx:{padding:3,pt:14},children:[(0,u.jsx)(v.Z,{sx:{position:"relative",width:"100%"},children:(0,u.jsx)("img",{alt:"Form Illustration",src:"/assets/illustrations/illustration_form.png",style:{position:"absolute",top:"-285px",left:"50%",transform:"translateX(-50%)"}})}),(0,u.jsx)(g.Z,{variant:"h6",sx:{mb:2},children:"Buka Chatroom"}),(0,u.jsxs)(S.ZP,{container:!0,columnSpacing:3,children:[(0,u.jsx)(S.ZP,{item:!0,xs:6,children:(0,u.jsxs)(S.ZP,{container:!0,rowSpacing:3,children:[(0,u.jsxs)(S.ZP,{item:!0,xs:12,children:[(0,u.jsx)(v.Z,{mb:1,children:(0,u.jsx)("label",{children:"Nama Mentee"})}),(0,u.jsx)(P.Z,{fullWidth:!0,disabled:!0,variant:"outlined",value:k.participantName,color:"primary",size:"small"})]}),(0,u.jsxs)(S.ZP,{item:!0,xs:12,children:[(0,u.jsx)(v.Z,{mb:1,children:(0,u.jsx)("label",{children:"Tanggal Mulai"})}),(0,u.jsx)(P.Z,{fullWidth:!0,disabled:!0,variant:"outlined",value:p()().format("DD MMMM YYYY"),color:"primary",size:"small"})]}),(0,u.jsxs)(S.ZP,{item:!0,xs:12,children:[(0,u.jsx)(v.Z,{mb:1,children:(0,u.jsx)("label",{children:"Durasi Video Call"})}),(0,u.jsx)(P.Z,{fullWidth:!0,variant:"outlined",value:k.duration,color:"primary",size:"small",name:"duration",type:"number",onChange:N,error:!!y.duration,helperText:y.duration,InputProps:{endAdornment:(0,u.jsx)(_.Z,{position:"end",children:"Menit"}),min:X}})]})]})}),(0,u.jsx)(S.ZP,{item:!0,xs:6,children:(0,u.jsxs)(S.ZP,{container:!0,rowSpacing:3,children:[(0,u.jsxs)(S.ZP,{item:!0,xs:12,children:[(0,u.jsx)(v.Z,{mb:1,children:(0,u.jsxs)("label",{children:["Nama Coach ",(0,u.jsx)(g.Z,{component:"span",sx:{color:"red"},children:"*"})]})}),(0,u.jsx)(D.Z,{value:k.host,onChange:function(e,n){return M((function(e){return(0,i.Z)((0,o.Z)({},e),{host:n})}
1))},options:h,getOptionLabel:function(e){return"".concat(e.name.first," ").concat(e.name.last)},isOptionEqualToValue:function(e,n){return e.phoneNumber===(n?n.phoneNumber:null)},size:"small",renderOption:function(e,n){return(0,l.createElement)("li",(0,i.Z)((0,o.Z)({},e),{key:n.phoneNumber}),"".concat(n.name.first," ").concat(n.name.last))},renderInput:function(e){return(0,u.jsx)(P.Z,(0,o.Z)({fullWidth:!0,variant:"outlined",color:"primary",label:"Pilih Nama Coach",InputLabelProps:{shrink:!1},sx:{"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"black"},"&:hover fieldset":{borderColor:"black"},"&.Mui-focused fieldset":{borderColor:"black"}}},error:!!y.host,helperText:y.host},e))}})]}),(0,u.jsxs)(S.ZP,{item:!0,xs:12,children:[(0,u.jsx)(v.Z,{mb:1,children:(0,u.jsxs)("label",{children:["Tanggal Berakhir ",(0,u.jsx)(g.Z,{component:"span",sx:{color:"red"},children:"*"})]})}),(0,u.jsx)(P.Z,{fullWidth:!0,type:"date",variant:"outlined",error:!!y.endDate,helperText:y.endDate,value:k.endDate,color:"primary",size:"small",name:"endDate",onChange:N,sx:{"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"black"},"&:hover fieldset":{borderColor:"black"},"&.Mui-focused fieldset":{borderColor:"black"}}}})]})]})}),(0,u.jsxs)(S.ZP,{item:!0,xs:12,sx:{display:"flex",justifyContent:"flex-end"},children:[(0,u.jsx)(Z.Z,{sx:{borderRadius:"16px",px:9,py:1,mr:2},variant:"outlined",size:"medium",onClick:t,disabled:m,children:"Batal"}),(0,u.jsxs)(Z.Z,{sx:{borderRadius:"16px",px:9,py:1},variant:"contained",size:"medium",onClick:I,disabled:m,children:[m&&(0,u.jsx)(j.Z,{}),"Simpan"]})]})]})]})})}L.getLayout=function(e){return(0,u.jsx)(I.Z,{children:e})},z.propTypes={open:f().bool,handleClose:f().func,onSubmit:f().func,preFilled:f().object,coaches:f().arrayOf(f().object)}}},function(e){e.O(0,[2016,4885,135,2298,2679,7155,7722,5917,4225,503,633,7918,1415,5306,2852,510,1830,5872,9774,2888,179],(function(){return n=52601,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.