1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[58],{20058:function(e,t,n){n.r(t);var s=n(85893),i=n(96486),a=n.n(i),l=n(67294),c=n(43871),r=n(96540),o=n(96069),d=n(80477),x=n(30381),u=n.n(x),h=n(41664),m=n.n(h),f=n(20474),j=n(41120),p=n(87083),P=n(30080),N=n(18318),v=n(86886),A=n(11057),g=n(87357),Z=n(5152),w=n.n(Z)()((function(){return Promise.all([n.e(4396),n.e(3393),n.e(1886),n.e(737),n.e(3829),n.e(5464),n.e(2580),n.e(2482),n.e(4969),n.e(6953),n.e(4231),n.e(4637),n.e(255),n.e(2777),n.e(2179),n.e(3427),n.e(6696),n.e(6601)]).then(n.bind(n,86601))}),{loadableGenerated:{webpack:function(){return[86601]}},ssr:!1});t.default=function(e){var t=e.clientInfo,n=e.hideProfileAvatar,i=e.status,x=(0,l.useState)(0),h=x[0],Z=x[1],b=(0,l.useState)(0),C=b[0],E=b[1],y=(0,l.useState)(!1),R=y[0],S=y[1],L=(0,j.Z)((function(){return{arrow:{color:"#43464B"},tooltip:{backgroundColor:"#43464B",fontSize:"12px",borderRadius:"0px",maxWidth:"200px",padding:"10px 20px",textAlign:"center"}}}))();(0,l.useEffect)((function(){return Z((Math.round(100*(t.clientHourLeft||0))/100).toFixed(2)),E((Math.round(100*(t.clientHourUsed||0))/100).toFixed(2)),function(){Z(0),E(0)}}),[t]);return(0,s.jsxs)(v.ZP,{container:!0,justifyContent:"flex-start",alignItems:"center",className:"".concat(n?"my-4":"client-info-card py-6 my-6"),children:[!n&&(0,s.jsx)(v.ZP,{item:!0,xs:12,md:2,children:(0,s.jsx)(m(),{href:"/coach/client/".concat(t.id,"/").concat(t.boardId),children:(0,s.jsxs)("a",{style:{color:"#525252"},children:[(0,s.jsx)(d.c,{profile:t.clientName.charAt(0),width:106,height:106,withBoarder:!0}),(0,s.jsx)("h2",{className:"has-text-weight-semibold has-text-centered pt-2 is-size-5 has-font-family-fira is-capitalized",style:{margin:"auto"},children:t.clientName})]})})}),(0,s.jsx)(v.ZP,{item:!0,xs:12,md:n?4:3,children:(0,s.jsxs)(v.ZP,{container:!0,alignItems:"center",justifyContent:"center",children:[(0,s.jsx)(v.ZP,{item:!0,xs:6,md:5,className:"client-info-attr",children:"HOURS USED"}),void 0!=t.canceledAt||(0,f.Nn)(t.pausedAt||null)?(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:(0,s.jsx)(p.ZP,{title:t.pausedAt&&(0,f.Nn)(t.pausedAt)?"Account has been paused":"Account has been canceled.",arrow:!0,placement:"bottom",classes:L,children:(0,s.jsx)(A.Z,{style:{backgroundColor:"#E3E3E3",borderColor:"#A5A5A5"},variant:"outlined",className:"py-2 pl-4 is-size-7 is-flex is-justify-content-start",endIcon:(0,s.jsx)(P.su0,{}),children:(0,s.jsx)("span",{style:{color:"#43464B"},children:C})})})}):(0,s.jsxs)(v.ZP,{item:!0,xs:7,className:"client-info-attr",children:[t.clientPlanStart&&u().unix(t.clientPlanStart).isAfter(u()())&&(0,s.jsx)(p.ZP,{title:"You may add hours when the student\u2019s plan starts.",arrow:!0,placement:"top",children:(0,s.jsx)("span",{children:(0,s.jsx)(A.Z,{variant:"outlined",className:"py-2 pl-4 is-size-7 is-flex is-justify-content-start",disabled:!0,style:{width:"118px"},children:"0.0"})})}),t.isHalted?(0,s.jsx)(p.ZP,{title:t.clientPaymentIssue?"Client payment unsuccessful. Please pause coaching until resolved. You will be notified when payment is successfully processed.":"Client dispute received. Youthfully will conduct an independent investigation. Please pause coaching until further notice.",arrow:!0,placement:"bottom",classes:L,children:(0,s.jsx)(A.Z,{style:{backgroundColor:"#E3E3E3",borderColor:"#A5A5A5"},variant:"outlined",className:"py-2 pl-4 is-size-7 is-flex is-justify-content-start",endIcon:(0,s.jsx)(P.su0,{}),children:(0,s.jsx)("span",{style:{color:"#43464B"},children:"0.0"})})}):(0,s.jsxs)(g.Z,{children:[(0,s.jsx)("span",{style:{color:"#43464B"},children:C}),(0,s.jsx)(A.Z,{sx:{backgroundColor:"#09C4F7",marginLeft:"10px","&:hover":{backgroundColor:"#09C4F7"}},onClick:function(){return S(!0)},variant:"contained",size:"small",startIcon:(0,s.jsx)(r.Z,{}),children:"LOG HOURS"})]})]}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"CURRENT PLAN"}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:function(e){if(i===o.E5.PAUSED||e.paused){if(e.pausedAt&&(0,f.Nn)(e.pausedAt))return(0,s.jsx)("div",{className:" has-text-weight-bold",children:"n/a"})}else if(i===o.E5.CANCELED||e.canceledAt)return(0,s.jsx)("div",{className:"font-color-red has-text-weight-bold",children:"CANCELED"});return(0,s.jsx)("div",{className:" has-text-weight-bold",children:e.clientCurrentPlan?e.clientCurrentPlan:"n/a"})}(t)}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"PLAN START"}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:t.clientPlanStart?u().unix(t.clientPlanStart).format("MMM D, Y"):"-"})]})}),(0,s.jsx)(v.ZP,{item:!0,xs:12,md:n?4:3,className:"pl-5",id:"nopr",children:(0,s.jsxs)(v.ZP,{container:!0,alignItems:"center",justifyContent:"center",children:[(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"HOURS LEFT"}),void 0==t.canceledAt?(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:h}):(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"0.00"}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"PROGRAM(S)"}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr has-text-weight-bold",children:t.clientPrograms||"n/a"}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"PLAN RENEWAL"}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:function(e){if(i===o.E5.PAUSED||e.paused){if(e.paused&&e.pausedAt&&(0,f.Nn)(e.pausedAt))return(0,s.jsx)("div",{className:" has-text-weight-bold",children:"PAUSED"})}else if(i===o.E5.CANCELED||e.canceledAt)return(0,s.jsx)("div",{className:"font-color-red has-text-weight-bold",children:"CANCELED"});return(0,s.jsx)("div",{className:"",children:u().unix((null===e||void 0===e?void 0:e.clientPlanRenew)||0).format("MMM D, Y")})}(t)})]})}),(0,s.jsx)(v.ZP,{item:!0,xs:12,md:4,className:"pl-4",id:"nopr",children:(0,s.jsxs)(v.ZP,{container:!0,alignItems:"center",justifyContent:"center",children:[(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"RETENTION"}),(0,s.jsxs)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:[t.clientRetention?a().roun
1d(t.clientRetention,0):0," ","months"]}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"PUBLIC RATING"}),(0,s.jsx)(v.ZP,{item:!0,xs:5,className:"client-info-attr",children:(0,s.jsx)(c.Z,{name:"pristine",value:t.lastPublicAvgReview,readOnly:!0})}),(0,s.jsxs)(v.ZP,{item:!0,xs:1,className:"client-info-attr",children:[(t.lastPublicAvgReview||0)>(t.prevPublicLastAvgReview||0)&&(0,s.jsx)(N.g9z,{color:"#63D7C0",size:25}),(t.lastPublicAvgReview||0)<(t.prevPublicLastAvgReview||0)&&(0,s.jsx)(N.JMJ,{color:"#FD6E5F",size:25})]}),(0,s.jsx)(v.ZP,{item:!0,xs:6,className:"client-info-attr",children:"Success Manager"}),(0,s.jsx)(v.ZP,{item:!0,xs:5,className:"client-info-attr",children:t.successManager||"n/a"}),(0,s.jsxs)(v.ZP,{item:!0,xs:1,className:"client-info-attr",children:[(t.lastPrivateAvgReview||0)>(t.prevLastAvgReview||0)&&(0,s.jsx)(N.g9z,{color:"#63D7C0",size:25}),(t.lastPrivateAvgReview||0)<(t.prevLastAvgReview||0)&&(0,s.jsx)(N.JMJ,{color:"#FD6E5F",size:25})]})]})}),R&&(0,s.jsx)(w,{open:R,onClose:function(){return S(!1)},clientInfo:t})]})}},80477:function(e,t,n){n.d(t,{c:function(){return a}});var s=n(85893),i=n(67265),a=(n(67294),function(e){var t=e.profile,n=e.width,a=e.height,l=e.withBoarder;return(0,s.jsx)("div",{className:l?"client-profile-avatar-container":"",style:{margin:"auto",height:a,width:n},children:(0,s.jsx)(i.Z,{style:{width:"100%",height:"100%",fontWeight:"bold",fontSize:50},children:t})})})}}]);
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.