@zimyo/engage 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs +4 -4
- package/dist/main.js +13 -13
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -3087,13 +3087,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3087
3087
|
.react-daterange-picker__calendar .react-calendar {
|
|
3088
3088
|
border-width: thin;
|
|
3089
3089
|
}
|
|
3090
|
-
`);const nct=f7({palette:{primary:{main:"#172B4D"},secondary:{main:"#335AFF"},success:{main:"#2B9568"},warning:{main:"#E0B400"},error:{main:"#E70000"},info:{main:"#335AFF"},text:{disabled:"#615E69"},common:{white:"#FFFFFF"},action:{disabledBackground:"#BEBEBE",disabled:"#A5A3A9"},grey:{100:"#A5A3A9",200:"#d2d1d4",300:"#615E69",400:"#e8e8ea",500:"#f9f9f9"}},typography:{fontSize:16,fontFamily:"Segoe UI Web (West European)",h1:{fontSize:"1.25rem",fontWeight:600,lineHeight:"3.5rem"},h2:{fontSize:"1.125rem",fontWeight:600,lineHeight:"2.5rem"},h3:{fontSize:"1rem",fontWeight:600,lineHeight:"2rem"},h4:{fontSize:"0.875rem",fontWeight:600,lineHeight:"1.75rem"},h5:{fontSize:"0.75rem",fontWeight:600,lineHeight:"1.5rem"},h6:{fontSize:"0.6875rem",fontWeight:600,lineHeight:"1.375rem"},body1:{fontSize:"0.875rem",fontWeight:400},caption:{fontSize:"0.75rem",fontWeight:400},button:{fontSize:"1rem",fontWeight:500,textTransform:"uppercase"}},shape:{borderRadius:4},components:{MuiButton:{styleOverrides:{root:{fontStyle:"normal",whiteSpace:"nowrap",borderRadius:"calc(0.5rem - 2px)",fontSize:".8rem",lineHeight:"1.25rem",padding:"0.5rem 1rem 0.5rem 1rem",fontWeight:400,height:"2.5rem",fontFamily:"system-ui"}}},MuiIconButton:{variants:[{props:{size:"large"},style:{height:"2.8rem"}},{props:{size:"medium"},style:{height:"2.5rem"}},{props:{size:"small"},style:{height:"2.2rem"}}]},MuiAvatar:{variants:[{props:{sizes:"lg"},style:{height:"24px",width:"24px"}},{props:{sizes:"md"},style:{height:"20px",width:"20px"}},{props:{sizes:"sm"},style:{height:"16px",width:"16px"}}]},MuiCircularProgress:{variants:[{props:{size:"lg"},style:{height:"46px",width:"46px"}},{props:{size:"md"},style:{height:"40px",width:"40px"}},{props:{size:"sm"},style:{height:"34px",width:"34px"}}]},MuiLinearProgress:{variants:[{props:{sx:{height:"lg"}},style:{height:"14px",width:"14px"}},{props:{sx:{height:"md"}},style:{height:"10px",width:"10px"}},{props:{sx:{height:"sm"}},style:{height:"5px",width:"5px"}}]},MuiIcon:{variants:[{props:{fontSize:"large"},style:{height:"48px"}},{props:{fontSize:"medium"},style:{height:"42px"}},{props:{fontSize:"small"},style:{height:"36px"}}]},MuiCheckbox:{styleOverrides:{root:{"&.Mui-checked":{color:"#335AFF"},"&.MuiCheckbox-indeterminate":{color:"#335AFF"}}},variants:[{props:{color:"primary"},style:{}},{props:{size:"medium"},style:{height:"20px"}},{props:{size:"small"},style:{height:"18px"}}]},MuiRadio:{styleOverrides:{root:{color:"#335AFF","&.Mui-checked":{color:"#335AFF"}}},variants:[{props:{color:"primary"},style:{color:"#335AFF"}},{props:{size:"medium"},style:{height:"20px"}},{props:{size:"small"},style:{height:"18px"}}]},MuiCard:{styleOverrides:{root:{paddingInline:"1.25rem",paddingBlock:"0.875rem",margin:"0.875rem",background:"linear-gradient(255.86deg, rgba(76, 139, 255, 0.2) -89.77%, rgba(255, 255, 255, 0) -89.75%), #FFFFFF",border:"0.075rem solid #ECECEC",boxShadow:"0px 0px 0.5rem rgba(0, 0, 0, 0.08)",borderRadius:"0.25rem",fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"}}},MuiListItemText:{styleOverrides:{primary:{fonstSize:"14px",fontWeight:600,fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"},secondary:{fonstSize:"12px",fontWeight:400,fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"}}},MuiCardHeader:{styleOverrides:{root:{padding:0,fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"}}},MuiCardActions:{styleOverrides:{root:{padding:0,fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"}}},MuiCardContent:{styleOverrides:{root:{padding:0,height:"90%",width:"100%",fontFamily:"Segoe UI Web (West European)",fontStyle:"normal","&:last-child":{paddingBottom:0}}}},MuiFormControl:{styleOverrides:{root:{}}},MuiTextField:{styleOverrides:{root:{}}},MuiOutlinedInput:{styleOverrides:{root:{}}},MuiInputBase:{styleOverrides:{root:{}}},MuiDialogContent:{styleOverrides:{root:{padding:0}}},MuiDialogTitle:{styleOverrides:{root:{padding:0}}}}}),_f=e=>n=>W.jsx(yse,Object.assign({theme:nct},{children:W.jsx(e,Object.assign({},n))})),kfe=N.createContext({});process.env.NODE_ENV!=="production"&&(kfe.displayName="TimelineContext");var Fx=kfe;function rct(e){return rt("MuiTimeline",e)}function Rf(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${He(e)}`}it("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const oct=["position","className"],ict=Ee("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.position&&n[Rf(t.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),act=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimeline"}),{position:r="right",className:o}=t,i=Le(t,oct),a=F({},t,{position:r}),s=(c=>{const{position:d,classes:p}=c;return nt({root:["root",d&&Rf(d)]},rct,p)})(a),l=N.useMemo(()=>({position:r}),[r]);return W.jsx(Fx.Provider,{value:l,children:W.jsx(ict,F({className:Ve(s.root,o),ownerState:a,ref:n},i))})});process.env.NODE_ENV!=="production"&&(act.propTypes={children:u.node,classes:u.object,className:u.string,position:u.oneOf(["alternate-reverse","alternate","left","right"]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function sct(e){return rt("MuiTimelineContent",e)}var lct=it("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const cct=["className"],uct=Ee(zo,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[Rf(t.position)]]}})(({ownerState:e})=>F({flex:1,padding:"6px 16px",textAlign:"left"},e.position==="left"&&{textAlign:"right"})),dct=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineContent"}),{className:r}=t,o=Le(t,cct),{position:i}=N.useContext(Fx),a=F({},t,{position:i||"right"}),s=(l=>{const{position:c,classes:d}=l;return nt({root:["root",Rf(c)]},sct,d)})(a);return W.jsx(uct,F({component:"div",className:Ve(s.root,r),ownerState:a,ref:n},o))});process.env.NODE_ENV!=="production"&&(dct.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function pct(e){return rt("MuiTimelineOppositeContent",e)}var fct=it("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const hct=["className"],mct=Ee(zo,{name:"MuiTimelineOppositeContent",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[Rf(t.position)]]}})(({ownerState:e})=>F({padding:"6px 16px",marginRight:"auto",textAlign:"right",flex:1},e.position==="left"&&{textAlign:"left"})),MJ=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineOppositeContent"}),{className:r}=t,o=Le(t,hct),{position:i}=N.useContext(Fx),a=F({},t,{position:i||"left"}),s=(l=>{const{position:c,classes:d}=l;return nt({root:["root",Rf(c)]},pct,d)})(a);return W.jsx(mct,F({component:"div",className:Ve(s.root,r),ownerState:a,ref:n},o))});process.env.NODE_ENV!=="production"&&(MJ.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])}),MJ.muiName="TimelineOppositeContent";function gct(e){return rt("MuiTimelineItem",e)}it("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const vct=["position","className"],yct=Ee("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[Rf(t.position)]]}})(({ownerState:e})=>F({listStyle:"none",display:"flex",position:"relative",minHeight:70},e.position==="left"&&{flexDirection:"row-reverse"},(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${lct.root}`]:{textAlign:"right"},[`& .${fct.root}`]:{textAlign:"left"}}},!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}})),bct=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineItem"}),{position:r,className:o}=t,i=Le(t,vct),{position:a}=N.useContext(Fx);let s=!1;N.Children.forEach(t.children,p=>{Wh(p,["TimelineOppositeContent"])&&(s=!0)});const l=F({},t,{position:r||a||"right",hasOppositeContent:s}),c=(p=>{const{position:f,classes:h,hasOppositeContent:m}=p;return nt({root:["root",Rf(f),!m&&"missingOppositeContent"]},gct,h)})(l),d=N.useMemo(()=>({position:l.position}),[l.position]);return W.jsx(Fx.Provider,{value:d,children:W.jsx(yct,F({className:Ve(c.root,o),ownerState:l,ref:n},i))})});process.env.NODE_ENV!=="production"&&(bct.propTypes={children:u.node,classes:u.object,className:u.string,position:u.oneOf(["alternate-reverse","alternate","left","right"]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function xct(e){return rt("MuiTimelineSeparator",e)}it("MuiTimelineSeparator",["root"]);const wct=["className"],Cct=Ee("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(e,n)=>n.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),Sct=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineSeparator"}),{className:r}=t,o=Le(t,wct),i=t,a=(s=>{const{classes:l}=s;return nt({root:["root"]},xct,l)})(i);return W.jsx(Cct,F({className:Ve(a.root,r),ownerState:i,ref:n},o))});process.env.NODE_ENV!=="production"&&(Sct.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Ect(e){return rt("MuiTimelineConnector",e)}it("MuiTimelineConnector",["root"]);const Oct=["className"],Tct=Ee("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),Ict=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineConnector"}),{className:r}=t,o=Le(t,Oct),i=t,a=(s=>{const{classes:l}=s;return nt({root:["root"]},Ect,l)})(i);return W.jsx(Tct,F({className:Ve(a.root,r),ownerState:i,ref:n},o))});process.env.NODE_ENV!=="production"&&(Ict.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Mct(e){return rt("MuiTimelineDot",e)}it("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const kct=["className","color","variant"],Act=Ee("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[t.color!=="inherit"&&`${t.variant}${He(t.color)}`],n[t.variant]]}})(({ownerState:e,theme:n})=>F({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(n.vars||n).shadows[1],margin:"11.5px 0"},e.variant==="filled"&&F({borderColor:"transparent"},e.color!=="inherit"&&F({},e.color==="grey"?{color:(n.vars||n).palette.grey[50],backgroundColor:(n.vars||n).palette.grey[400]}:{color:(n.vars||n).palette[e.color].contrastText,backgroundColor:(n.vars||n).palette[e.color].main})),e.variant==="outlined"&&F({boxShadow:"none",backgroundColor:"transparent"},e.color!=="inherit"&&F({},e.color==="grey"?{borderColor:(n.vars||n).palette.grey[400]}:{borderColor:(n.vars||n).palette[e.color].main})))),_ct=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineDot"}),{className:r,color:o="grey",variant:i="filled"}=t,a=Le(t,kct),s=F({},t,{color:o,variant:i}),l=(c=>{const{color:d,variant:p,classes:f}=c;return nt({root:["root",p,d!=="inherit"&&`${p}${He(d)}`]},Mct,f)})(s);return W.jsx(Act,F({className:Ve(l.root,r),ownerState:s,ref:n},a))});process.env.NODE_ENV!=="production"&&(_ct.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["error","grey","info","inherit","primary","secondary","success","warning"]),u.string]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),variant:u.oneOfType([u.oneOf(["filled","outlined"]),u.string])});const nF=_f(Zqe),pc=_f(e=>{const{size:n,bgColor:t,badge:r,onClick:o=()=>{},icon:i}=e,a=An(e,["size","bgColor","badge","onClick","icon"]);return W.jsx(lJe,Object.assign({content:r==null?void 0:r.content,max:(r==null?void 0:r.max)||99,position:r==null?void 0:r.position,color:r==null?void 0:r.color,showZero:(r==null?void 0:r.showZero)||!1},{children:W.jsx(E$e,Object.assign({sx:{bgcolor:t},sizes:n,onClick:o},a,{children:i}))}))}),Afe=_f(Uqe),kJ=_f(e=>{const{prefix:n,suffix:t}=e,r=An(e,["prefix","suffix"]);return W.jsx(id,Object.assign({},r,{size:"small",type:"",InputProps:{startAdornment:n&&W.jsx(ji,Object.assign({position:"start"},{children:n})),endAdornment:t&&W.jsx(ji,Object.assign({position:"end"},{children:t}))}}))}),_fe=_f(function(e){const{open:n=!1,handleClose:t,title:r,children:o}=e;return W.jsx(W.Fragment,{children:W.jsx(T7,Object.assign({fullScreen:!0,open:n,onClose:t,TransitionComponent:Xet||null},{children:W.jsxs("div",Object.assign({className:"full-screen-modal-container"},{children:[W.jsxs("div",Object.assign({className:"w-100 flex-start-center full-screen-modal-title-container"},{children:[W.jsx(Ka,Object.assign({color:"primary",size:"small",onClick:t,sx:{ml:"21px",cursor:"pointer"}},{children:W.jsx(xet,{})})),r]})),W.jsx("div",Object.assign({className:"w-100 full-screen-modal-children-container"},{children:o||W.jsx(W.Fragment,{})}))]}))}))})}),jx=_f(O6),rF=_f(e=>{const{getSearch:n=a=>{},placeholder:t="Search",debounceDelay:r=1e3,styleOverrides:o={}}=e,i=dr.debounce(function(a){const{value:s}=a==null?void 0:a.target;n(s)},r);return W.jsxs("div",Object.assign({className:"flex-start-center search-component",style:o},{children:[W.jsx(Yue,{}),W.jsx("input",{type:"text",placeholder:t,name:"searchText",onChange:i,className:"input-search"})]}))}),Rct=_f(({fields:e,control:n,register:t,errors:r,containerLayout:o,containerSpacing:i})=>{const[a,s]=V.useState({});return W.jsx(GX,Object.assign({container:!0,alignItems:"flex-start",item:!0,xs:(o==null?void 0:o.xs)||12,sm:(o==null?void 0:o.sm)||12,md:(o==null?void 0:o.md)||12,lg:(o==null?void 0:o.lg)||12,spacing:i||2,sx:{padding:"1rem"}},{children:e.map((l,c)=>{var d,p,f,h,m;return W.jsx(GX,Object.assign({item:!0,xs:((d=l==null?void 0:l.itemLayout)===null||d===void 0?void 0:d.xs)||12,sm:((p=l==null?void 0:l.itemLayout)===null||p===void 0?void 0:p.sm)||4,md:((f=l==null?void 0:l.itemLayout)===null||f===void 0?void 0:f.md)||3,lg:((h=l==null?void 0:l.itemLayout)===null||h===void 0?void 0:h.lg)||3},{children:gat({fieldOption:l,control:n,register:t,errors:r,checkboxGroupValue:a,setCheckboxGroupValue:s})}),(m=l==null?void 0:l.id)!==null&&m!==void 0?m:c)})}))});var oF={},v_={};const Pct=fu(Ewe);var AJ;function ys(){return AJ||(AJ=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=Pct}(v_)),v_}var Dct=ga;Object.defineProperty(oF,"__esModule",{value:!0});var Rfe=oF.default=void 0,Nct=Dct(ys()),Fct=B;Rfe=oF.default=(0,Nct.default)((0,Fct.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");const jct="_overview__container__bg_dz8eh_2",Lct="_one__icons__bottom_dz8eh_13",Bct="_feedback__appreciation_dz8eh_34",Vct="_feedback__rating_dz8eh_51",zct="_icon__appriciate_dz8eh_80",Wct="_box__appriciate_dz8eh_87",$ct="_box__top_appriciate_dz8eh_91",Gct="_summury__box_outline_dz8eh_115",Hct="_schedule__employee_search_dz8eh_123",Yct="_schedule__employee_dz8eh_123",Xct="_form_error_dz8eh_148",Zct="_skill__btns_dz8eh_163",Uct="_item__centerdirector_dz8eh_178",qct="_closeRatingicon_dz8eh_183",Jct="_footer__upload_assets_dz8eh_190",Qct="_container_dz8eh_195",Kct="_choose_employee_container_dz8eh_202",eut="_badges_container_dz8eh_208",tut="_badges_container_title_dz8eh_214",nut="_avatar_container_dz8eh_219",rut="_active_badge_dz8eh_233",out="_badge_card_dz8eh_238",iut="_previeww__color_dz8eh_317",aut="_images__structure_dz8eh_346",sut="_one__to__one__card_dz8eh_367",lut="_one__to__one__card__top_dz8eh_377",cut="_one__to__one__icon_dz8eh_383",uut="_face__to__face_dz8eh_424",dut="_one__to__one__reschedule_dz8eh_467",put="_one__to__one__cancel_dz8eh_479",fut="_meeting__details_dz8eh_491",hut="_meeting__details__topbox_dz8eh_495",mut="_bottom_create_loaction_dz8eh_532",gut="_date__time__box_dz8eh_561",vut="_connected__meeting_dz8eh_590",yut="_remark__container_dz8eh_616",but="_remarks__meeting_dz8eh_625",xut="_comment__users__meeting_dz8eh_683",wut="_editor__remarks_dz8eh_703",Cut="_editor__bottom_dz8eh_712",Sut="_all__upload__images_dz8eh_727",Eut="_pdfView__preview_dz8eh_756",Out="_main__upload__box_dz8eh_795",It={overview__container__bg:jct,one__icons__bottom:Lct,feedback__appreciation:Bct,feedback__rating:Vct,icon__appriciate:zct,box__appriciate:Wct,box__top_appriciate:$ct,summury__box_outline:Gct,schedule__employee_search:Hct,schedule__employee:Yct,form_error:Xct,skill__btns:Zct,item__centerdirector:Uct,closeRatingicon:qct,footer__upload_assets:Jct,container:Qct,choose_employee_container:Kct,badges_container:eut,badges_container_title:tut,avatar_container:nut,active_badge:rut,badge_card:out,previeww__color:iut,images__structure:aut,one__to__one__card:sut,one__to__one__card__top:lut,one__to__one__icon:cut,face__to__face:uut,one__to__one__reschedule:dut,one__to__one__cancel:put,meeting__details:fut,meeting__details__topbox:hut,"meeting-desc":"_meeting-desc_dz8eh_511",bottom_create_loaction:mut,date__time__box:gut,connected__meeting:vut,remark__container:yut,remarks__meeting:but,comment__users__meeting:xut,editor__remarks:wut,editor__bottom:Cut,all__upload__images:Sut,pdfView__preview:Eut,main__upload__box:Out,"input-date":"_input-date_dz8eh_804"};function XO(e){"@babel/helpers - typeof";return XO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},XO(e)}var Tut=/^\s+/,Iut=/\s+$/;function un(e,n){if(e=e||"",n=n||{},e instanceof un)return e;if(!(this instanceof un))return new un(e,n);var t=Mut(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||t.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}un.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),t,r,o,i,a,s;return t=n.r/255,r=n.g/255,o=n.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(n){return this._a=Pfe(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=RJ(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=RJ(this._r,this._g,this._b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+o+"%)":"hsva("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=_J(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=_J(this._r,this._g,this._b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+o+"%)":"hsla("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return PJ(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return Rut(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ko(this._r,255)*100)+"%",g:Math.round(ko(this._g,255)*100)+"%",b:Math.round(ko(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ko(this._r,255)*100)+"%, "+Math.round(ko(this._g,255)*100)+"%, "+Math.round(ko(this._b,255)*100)+"%)":"rgba("+Math.round(ko(this._r,255)*100)+"%, "+Math.round(ko(this._g,255)*100)+"%, "+Math.round(ko(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Gut[PJ(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var t="#"+DJ(this._r,this._g,this._b,this._a),r=t,o=this._gradientType?"GradientType = 1, ":"";if(n){var i=un(n);r="#"+DJ(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+r+")"},toString:function(n){var t=!!n;n=n||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!t&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return i?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(!0)),n==="hex4"&&(r=this.toHex8String(!0)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return un(this.toString())},_applyModification:function(n,t){var r=n.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Fut,arguments)},brighten:function(){return this._applyModification(jut,arguments)},darken:function(){return this._applyModification(Lut,arguments)},desaturate:function(){return this._applyModification(Put,arguments)},saturate:function(){return this._applyModification(Dut,arguments)},greyscale:function(){return this._applyModification(Nut,arguments)},spin:function(){return this._applyModification(But,arguments)},_applyCombination:function(n,t){return n.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Wut,arguments)},complement:function(){return this._applyCombination(Vut,arguments)},monochromatic:function(){return this._applyCombination($ut,arguments)},splitcomplement:function(){return this._applyCombination(zut,arguments)},triad:function(){return this._applyCombination(NJ,[3])},tetrad:function(){return this._applyCombination(NJ,[4])}};un.fromRatio=function(e,n){if(XO(e)=="object"){var t={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?t[r]=e[r]:t[r]=Mb(e[r]));e=t}return un(e,n)};function Mut(e){var n={r:0,g:0,b:0},t=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Zut(e)),XO(e)=="object"&&(Fu(e.r)&&Fu(e.g)&&Fu(e.b)?(n=kut(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fu(e.h)&&Fu(e.s)&&Fu(e.v)?(r=Mb(e.s),o=Mb(e.v),n=_ut(e.h,r,o),a=!0,s="hsv"):Fu(e.h)&&Fu(e.s)&&Fu(e.l)&&(r=Mb(e.s),i=Mb(e.l),n=Aut(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=Pfe(t),{ok:a,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}function kut(e,n,t){return{r:ko(e,255)*255,g:ko(n,255)*255,b:ko(t,255)*255}}function _J(e,n,t){e=ko(e,255),n=ko(n,255),t=ko(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),i,a,s=(r+o)/2;if(r==o)i=a=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:a,l:s}}function Aut(e,n,t){var r,o,i;e=ko(e,360),n=ko(n,100),t=ko(t,100);function a(c,d,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?c+(d-c)*6*p:p<1/2?d:p<2/3?c+(d-c)*(2/3-p)*6:c}if(n===0)r=o=i=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function RJ(e,n,t){e=ko(e,255),n=ko(n,255),t=ko(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),i,a,s=r,l=r-o;if(a=r===0?0:l/r,r==o)i=0;else{switch(r){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:a,v:s}}function _ut(e,n,t){e=ko(e,360)*6,n=ko(n,100),t=ko(t,100);var r=Math.floor(e),o=e-r,i=t*(1-n),a=t*(1-o*n),s=t*(1-(1-o)*n),l=r%6,c=[t,a,i,i,s,t][l],d=[s,t,t,a,i,i][l],p=[i,i,s,t,t,a][l];return{r:c*255,g:d*255,b:p*255}}function PJ(e,n,t,r){var o=[nc(Math.round(e).toString(16)),nc(Math.round(n).toString(16)),nc(Math.round(t).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Rut(e,n,t,r,o){var i=[nc(Math.round(e).toString(16)),nc(Math.round(n).toString(16)),nc(Math.round(t).toString(16)),nc(Dfe(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function DJ(e,n,t,r){var o=[nc(Dfe(r)),nc(Math.round(e).toString(16)),nc(Math.round(n).toString(16)),nc(Math.round(t).toString(16))];return o.join("")}un.equals=function(e,n){return!e||!n?!1:un(e).toRgbString()==un(n).toRgbString()};un.random=function(){return un.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Put(e,n){n=n===0?0:n||10;var t=un(e).toHsl();return t.s-=n/100,t.s=RI(t.s),un(t)}function Dut(e,n){n=n===0?0:n||10;var t=un(e).toHsl();return t.s+=n/100,t.s=RI(t.s),un(t)}function Nut(e){return un(e).desaturate(100)}function Fut(e,n){n=n===0?0:n||10;var t=un(e).toHsl();return t.l+=n/100,t.l=RI(t.l),un(t)}function jut(e,n){n=n===0?0:n||10;var t=un(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(n/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(n/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(n/100)))),un(t)}function Lut(e,n){n=n===0?0:n||10;var t=un(e).toHsl();return t.l-=n/100,t.l=RI(t.l),un(t)}function But(e,n){var t=un(e).toHsl(),r=(t.h+n)%360;return t.h=r<0?360+r:r,un(t)}function Vut(e){var n=un(e).toHsl();return n.h=(n.h+180)%360,un(n)}function NJ(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var t=un(e).toHsl(),r=[un(e)],o=360/n,i=1;i<n;i++)r.push(un({h:(t.h+i*o)%360,s:t.s,l:t.l}));return r}function zut(e){var n=un(e).toHsl(),t=n.h;return[un(e),un({h:(t+72)%360,s:n.s,l:n.l}),un({h:(t+216)%360,s:n.s,l:n.l})]}function Wut(e,n,t){n=n||6,t=t||30;var r=un(e).toHsl(),o=360/t,i=[un(e)];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,i.push(un(r));return i}function $ut(e,n){n=n||6;for(var t=un(e).toHsv(),r=t.h,o=t.s,i=t.v,a=[],s=1/n;n--;)a.push(un({h:r,s:o,v:i})),i=(i+s)%1;return a}un.mix=function(e,n,t){t=t===0?0:t||50;var r=un(e).toRgb(),o=un(n).toRgb(),i=t/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return un(a)};un.readability=function(e,n){var t=un(e),r=un(n);return(Math.max(t.getLuminance(),r.getLuminance())+.05)/(Math.min(t.getLuminance(),r.getLuminance())+.05)};un.isReadable=function(e,n,t){var r=un.readability(e,n),o,i;switch(i=!1,o=Uut(t),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i};un.mostReadable=function(e,n,t){var r=null,o=0,i,a,s,l;t=t||{},a=t.includeFallbackColors,s=t.level,l=t.size;for(var c=0;c<n.length;c++)i=un.readability(e,n[c]),i>o&&(o=i,r=un(n[c]));return un.isReadable(e,r,{level:s,size:l})||!a?r:(t.includeFallbackColors=!1,un.mostReadable(e,["#fff","#000"],t))};var c9=un.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Gut=un.hexNames=Hut(c9);function Hut(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function Pfe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ko(e,n){Yut(e)&&(e="100%");var t=Xut(e);return e=Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function RI(e){return Math.min(1,Math.max(0,e))}function Os(e){return parseInt(e,16)}function Yut(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Xut(e){return typeof e=="string"&&e.indexOf("%")!=-1}function nc(e){return e.length==1?"0"+e:""+e}function Mb(e){return e<=1&&(e=e*100+"%"),e}function Dfe(e){return Math.round(parseFloat(e)*255).toString(16)}function FJ(e){return Os(e)/255}var Hl=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",t="(?:"+n+")|(?:"+e+")",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fu(e){return!!Hl.CSS_UNIT.exec(e)}function Zut(e){e=e.replace(Tut,"").replace(Iut,"").toLowerCase();var n=!1;if(c9[e])e=c9[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Hl.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Hl.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Hl.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Hl.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Hl.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Hl.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Hl.hex8.exec(e))?{r:Os(t[1]),g:Os(t[2]),b:Os(t[3]),a:FJ(t[4]),format:n?"name":"hex8"}:(t=Hl.hex6.exec(e))?{r:Os(t[1]),g:Os(t[2]),b:Os(t[3]),format:n?"name":"hex"}:(t=Hl.hex4.exec(e))?{r:Os(t[1]+""+t[1]),g:Os(t[2]+""+t[2]),b:Os(t[3]+""+t[3]),a:FJ(t[4]+""+t[4]),format:n?"name":"hex8"}:(t=Hl.hex3.exec(e))?{r:Os(t[1]+""+t[1]),g:Os(t[2]+""+t[2]),b:Os(t[3]+""+t[3]),format:n?"name":"hex"}:!1}function Uut(e){var n,t;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:n,size:t}}const qut=(e,n=2)=>((r,o)=>un(r).darken(o).toString())(e,n),Gs=({label:e,variant:n="contained",...t})=>{const r=mu(i=>i.session.user),o=qut(r==null?void 0:r.PRODUCT_THEME_COLOR);return B.jsx(Afe,{label:e,variant:n,sx:n==="contained"?{background:r==null?void 0:r.PRODUCT_THEME_COLOR,"&:hover":{bgcolor:o}}:n==="outlined"?{color:r==null?void 0:r.PRODUCT_THEME_COLOR,borderColor:r==null?void 0:r.PRODUCT_THEME_COLOR,"&:hover":{borderColor:o}}:{},...t})};var Nfe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},jJ=V.createContext&&V.createContext(Nfe),Jut=["attr","size","title"];function Qut(e,n){if(e==null)return{};var t=Kut(e,n),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function Kut(e,n){if(e==null)return{};var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ZO.apply(this,arguments)}function LJ(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function UO(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?LJ(Object(t),!0).forEach(function(r){edt(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):LJ(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function edt(e,n,t){return n=tdt(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function tdt(e){var n=ndt(e,"string");return typeof n=="symbol"?n:n+""}function ndt(e,n){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ffe(e){return e&&e.map((n,t)=>V.createElement(n.tag,UO({key:t},n.attr),Ffe(n.child)))}function iF(e){return n=>V.createElement(rdt,ZO({attr:UO({},e.attr)},n),Ffe(e.child))}function rdt(e){var n=t=>{var{attr:r,size:o,title:i}=e,a=Qut(e,Jut),s=o||t.size||"1em",l;return t.className&&(l=t.className),e.className&&(l=(l?l+" ":"")+e.className),V.createElement("svg",ZO({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:l,style:UO(UO({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&V.createElement("title",null,i),e.children)};return jJ!==void 0?V.createElement(jJ.Consumer,null,t=>n(t)):n(Nfe)}function td(e){return iF({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)}const jfe=e=>{var T;const{open:n,setOpen:t,employee:r,empCodeKey:o,empIdKey:i,empNameKey:a,empProfileImageKey:s}=e,l=Cd(),{pushAlert:c}=gu(),{data:d,isFetching:p}=Xc(zp,{url:HS.APPRECIATIONS.BADGES.FETCH,params:{isAll:!0}},"fetchBadges"),{mutate:f,isLoading:h}=tm(cd,"createAppreciation",{onSuccess:M=>{l.invalidateQueries("fetchAppreciations"),c({type:"success",message:M.data.message}),t(!1)},onError:M=>{var k,A;return c({type:"error",message:((A=(k=M.response)==null?void 0:k.data)==null?void 0:A.message)??""})}}),m=or.object({APPRECIATE_TO:or.number({required_error:"Please choose employee to appreciate!"}),BADGE_ID:or.number({required_error:"Please select an appreciation badge!"}),REMARKS:or.string({required_error:"Please enter appreciation remarks!"})}),{control:g,watch:v,formState:{errors:y},handleSubmit:x,setValue:w}=Nv({resolver:cw(m),mode:"onChange",defaultValues:{APPRECIATE_TO:r&&(r==null?void 0:r[`${i}`])}}),[C]=v(["BADGE_ID"]),b=M=>w("BADGE_ID",M),E=M=>{const k={SEND_EMAIL:1,...M};f({url:HS.APPRECIATIONS.CREATE,data:k})};return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:h||p}),B.jsx(nF,{title:bIe("Appreciate Employee",B.jsx(kwe,{sx:{color:"#172B4D"}})),open:n,onModalclose:()=>t(!1),size:"md",children:B.jsxs(yt,{className:It.container,children:[B.jsxs(yt,{display:"flex",gap:1,children:[B.jsx(bi,{mt:1,children:"Appreciate:"}),r?B.jsxs("div",{className:It.avatar_container,children:[B.jsx(pc,{sx:{height:30,width:30},src:(r==null?void 0:r[`${s}`])??`https://robohash.org/${r==null?void 0:r[`${a}`]}`}),B.jsxs("span",{children:[(r==null?void 0:r[`${a}`])??"--"," ",(r==null?void 0:r[`${o}`])??"--"]})]}):B.jsxs(yt,{display:"flex",flexDirection:"column",gap:1,children:[B.jsx(PD,{searchKey:"search",endpoint:HS.EMPLOYEES.SEARCH_EMPLOYEES,reqParams:{search_for:"appreciation",search:""},optionValueKey:"EMPLOYEE_ID",optionTitleFn:M=>`${(M==null?void 0:M.EMPLOYEE_NAME)||"--"} (${M.EMPLOYEE_CODE||"--"})`,inputPlaceHolder:"Choose Employee",onChange:({value:M})=>w("APPRECIATE_TO",M)}),!!(y!=null&&y.APPRECIATE_TO)&&B.jsxs("div",{className:It.form_error,style:{float:"left",marginTop:0},children:[B.jsx(td,{}),B.jsx("p",{children:y.APPRECIATE_TO.message})]})]})]}),B.jsxs(yt,{className:It.badges_container,children:[B.jsx("span",{className:It.badges_container_title,children:"Select Badge of Appreciation"}),B.jsx(Jo,{container:!0,spacing:1,children:(T=d==null?void 0:d.ROWS)==null?void 0:T.map((M,k)=>B.jsx(Jo,{item:!0,xs:4,children:B.jsx(aee,{color:"primary",badgeContent:B.jsx(Rfe,{style:{color:"#fff",width:"10px",height:"10px"}}),invisible:C!==M.ID,anchorOrigin:{vertical:"top",horizontal:(k+1)%3===0?"left":"right"},className:"w-100 ok",children:B.jsx(odt,{selectedBadgeId:C,setBadgeValue:b,...M})})},k))})]}),B.jsx(yt,{children:B.jsxs(E1,{variant:"outlined",style:{height:"auto"},className:"w-100 ",children:[B.jsx(mD,{variant:"outlined",htmlFor:"Appreciation Remarks",color:"primary",children:"Appreciation Remarks"}),B.jsx(Ta,{control:g,name:"REMARKS",render:({field:M})=>B.jsx(iw,{style:{height:"auto"},margin:"none",multiline:!0,rows:3,color:"primary",autoComplete:"off",id:"remarks",label:"Appreciation Remarks",className:"w-100",...M})})]})}),B.jsxs(yt,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[B.jsx(Gs,{label:"CANCEL",variant:"outlined",onClick:()=>t(!1)}),B.jsx(Gs,{label:"SUBMIT",color:"secondary",disableElevation:!0,onClick:x(E)})]})]})})]})},odt=({TITLE:e,LOGO:n,DESCRIPTION:t,ID:r,selectedBadgeId:o,setBadgeValue:i})=>B.jsx("div",{style:{borderRadius:"8px",border:"1px solid #f1f1f1"},className:"w-100",children:B.jsxs("div",{className:`${It.badge_card} ${r===o?It.active_badge:""}`,onClick:()=>i(r),children:[B.jsx(pc,{src:n,alt:e}),B.jsxs("span",{children:[B.jsx("h3",{children:e}),B.jsx("p",{children:t})]})]})}),Fy=e=>{const n=V.useMemo(()=>[{label:"Pending",value:0},{label:"Completed",value:1}],[e]),t=V.useMemo(()=>[{value:1,label:"Face to Face"},{value:2,label:"Online Meeting"},{value:3,label:"Phone Call"}],[e]),r=V.useMemo(()=>[{label:"Alphanumeric",value:0},{label:"Numberic",value:1}],[e]),o=V.useMemo(()=>[{label:"RECEIVED",value:"received"},{label:"GIVEN",value:"given"}],[e]),i=V.useMemo(()=>[{label:"All",value:void 0},{label:"Upcoming",value:0},{label:"Completed",value:1},{label:"Overdue",value:3}],[e]),a={1:{LABEL:"Location",COLUMN_NAME:"LOCATION"},2:{LABEL:"Meeting Link",COLUMN_NAME:"MEETING_LINK"},3:{LABEL:"Phone Number",COLUMN_NAME:"PHONE_NO"}},s=V.useMemo(()=>[{label:"All",value:void 0},{label:"This Month",value:0},{label:"Last Month",value:1},{label:"This Quarter",value:2},{label:"Last Quarter",value:3},{label:"This Year",value:4},{label:"Last Year",value:5}],[e]);return{TARGET_SETTING_OPTIONS:r,ONE_TO_ONE_TYPES:t,COMPENSATION_TABS:n,FEEDBACK_TABS:o,MONTH_FILTERS_OPTIONS:s,ONE_TO_ONE_SCHEDULE_OPTIONS:i,ONE_TO_ONE_MEDIUM_TYPES:a}},yg={NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",NULL:"null",UNDEFINED:"undefined",BOOLEAN:"boolean",FUNCTION:"function"},ii={TEXT:"text",NUMBER:"number",TEXTAREA:"textarea",SELECT:"select",MULTI_SELECT:"multi-select",CHECKBOX:"checkbox",RADIO:"radio",FILE:"file",TIME:"time",DATE:"date",DATE_TIME:"date-time",DATE_RANGE:"date-range",SWITCH:"switch",TEL:"tel",URL:"url",EMAIL:"email",NUMERIC:"numeric",DECIMAL:"decimal",SEARCH:"search",EDITOR:"editor"},hi={TEXT:"input",NUMBER:"number",TEXTAREA:"textarea",SELECT:"select",MULTI_SELECT:"multiple",CHECKBOX:"checkbox",RADIO:"radio",FILE:"file",TIME:"time",DATE:"calander",DATE_TIME:"date-time",DATE_RANGE:"date-range",SWITCH:"switch",TEL:"tel",URL:"url",EMAIL:"email",NUMERIC:"numeric",DECIMAL:"decimal",SEARCH:"search",EDITOR:"editor"},idt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],adt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],sdt={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},ldt={1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},cdt={1:"January",2:"Febuary",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},udt={"d-M-Y":"dd-M-yyyy","Y-m-d":"y-MM-dd","m-d-Y":"MM-dd-y","Y-d-m":"y-dd-MM","d M y":"dd M yy","F dS Y":"F dS Y","F d Y":"F d Y","M d Y":"M d Y","d/m/y":"d/m/y","d M Y h:i:s":"d M Y h:i:s","d-M-y":"d M y","h:i A":"h:i A"};var Pc;class xi{static isDateValid(n){return!isNaN(n.getTime())}static validateDataType(n,t){if(!n)return!1;const r=typeof n;switch(t){case yg.STRING:case yg.NUMBER:case yg.BOOLEAN:case yg.FUNCTION:return!!(r===t&&n);case yg.ARRAY:return!!(Array.isArray(n)&&n);case yg.OBJECT:return!!(Object.keys(n).length&&!Array.isArray(n)&&n);default:return!1}}static convertToFormData(n){const t=new FormData,r=(o,i)=>{for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const s=i?`${i}[${a}]`:a,l=o[a];l instanceof Date?t.append(s,l.toISOString()):typeof l=="object"&&!(l instanceof File)?r(l,s):t.append(s,l)}};return r(n),t}}Pc=xi;Object.defineProperty(xi,"toTitleCase",{enumerable:!0,configurable:!0,writable:!0,value:e=>`${e}`.toLocaleLowerCase().replace(/\b([a-z])/g,function(n,t){return t.toUpperCase()})});Object.defineProperty(xi,"dateFormatList",{enumerable:!0,configurable:!0,writable:!0,value:(e,n)=>Object.keys(e).find(t=>e[t]===n)});Object.defineProperty(xi,"getFullDateVar",{enumerable:!0,configurable:!0,writable:!0,value:e=>(e<10&&(e="0"+e),e)});Object.defineProperty(xi,"getFormatedDate",{enumerable:!0,configurable:!0,writable:!0,value:(e=new Date().getTime()/1e3,n="Y-m-d H:i:s",t=!0)=>{t&&(n=Pc.dateFormatList(udt,n));let r;if(typeof e=="string"?(e.length==10&&(e+=" 00:00:00"),r=new Date(e)):typeof e=="object"?r=new Date(e):r=new Date(e*1e3),!Pc.isDateValid(r))return null;var o=r.getFullYear();o.toString().length>4&&(r=new Date(e));var i={};i.Y=r.getFullYear(),i.y=r.getYear(),i.n=r.getMonth()+1,i.m=Pc.getFullDateVar(i.n),i.j=r.getDate(),i.d=Pc.getFullDateVar(i.j),i.w=r.getDay(),i.N=i.w,i.D=idt[i.w],i.l=adt[i.w],i.S=sdt[i.j]||"th",i.M=ldt[i.n],i.F=cdt[i.n],i.G=r.getHours(),i.H=Pc.getFullDateVar(i.G),i.i=Pc.getFullDateVar(r.getMinutes()),i.s=Pc.getFullDateVar(r.getSeconds()),i.g=i.G,i.t=Pc.getFullDateVar(new Date(i.Y,i.n,0).getDate()),i.A=" AM",i.a=" am",i.g>=12&&(i.g%=12,i.A=" PM",i.a=" pm"),i.g==0&&(i.g=12),i.N==0&&(i.N=7),i.y>=100&&(i.y-=100),i.W=1+Math.round(((r.getTime()-new Date(i.Y,0,4).getTime())/864e5+1)/7),i.h=Pc.getFullDateVar(i.g);var a="";return n==null||n.toString().split("").forEach(s=>{var l;a+=i.hasOwnProperty(s)?s=="y"&&((l=i[s].toString())==null?void 0:l.length)==1?`0${i[s]}`:i[s]:s}),a}});Object.defineProperty(xi,"convertFormMasterTypeToDynamicFormType",{enumerable:!0,configurable:!0,writable:!0,value:e=>{switch(e){case hi.TEXT:return ii.TEXT;case hi.NUMBER:return ii.NUMBER;case hi.TEXTAREA:return ii.TEXTAREA;case hi.CHECKBOX:return ii.CHECKBOX;case hi.DATE:return ii.DATE;case hi.DATE_RANGE:return ii.DATE_RANGE;case hi.DATE_TIME:return ii.DATE_TIME;case hi.DECIMAL:return ii.DECIMAL;case hi.EMAIL:return ii.EMAIL;case hi.FILE:return ii.FILE;case hi.MULTI_SELECT:return ii.MULTI_SELECT;case hi.NUMERIC:return ii.NUMERIC;case hi.RADIO:return ii.RADIO;case hi.SEARCH:return ii.SEARCH;case hi.SELECT:return ii.SELECT;case hi.TEL:return ii.TEL;case hi.TIME:return ii.TIME;case hi.SWITCH:return ii.SWITCH;case hi.URL:return ii.URL;case hi.EDITOR:return ii.EDITOR;default:return ii.TEXT}}});Object.defineProperty(xi,"convertTime",{enumerable:!0,configurable:!0,writable:!0,value:e=>{const[n,t,r]=e.split(":").map(Number);let o=n*60+t;r>=30&&o++;const i=Math.floor(o/60),a=o%60,s=r<30?0:1;return{hours:String(i).padStart(2,"0"),minutes:String(a).padStart(2,"0"),seconds:String(s).padStart(2,"0")}}});Object.defineProperty(xi,"convertToMinutes",{enumerable:!0,configurable:!0,writable:!0,value:e=>{var o;const[n,t]=(o=e==null?void 0:e.split(":"))==null?void 0:o.map(Number),r=n*60+t;return r==0?0:r}});const Go={SHEDULE_BY_WITH:"SHEDULE_BY_WITH",SHEDULE_BY_WITH_OUTSIDE:"SHEDULE_BY_WITH_OUTSIDE",SHEDULE_BY:"SHEDULE_BY",SHEDULE_WITH:"SHEDULE_WITH",REMARKS_VISIBILITY:"REMARKS_VISIBILITY"},Lfe={COMPLETED:1,CANCELED:2},y_={organization:1,self:3,team:2},ddt=e=>{var g;const{employee_id:n,CONCERN:t}=e,{FEEDBACK_TABS:r,MONTH_FILTERS_OPTIONS:o}=Fy("en"),[i,a]=V.useState(!1),[{APPRECIATION_TYPE:s,BADGE_ID:l,MONTH_FILTER:c,SEARCH:d},p]=V.useState({APPRECIATION_TYPE:"given",BADGE_ID:void 0,MONTH_FILTER:o[1],SEARCH:void 0}),{session:{user:f}}=mu(),{data:h,isFetching:m}=Xc(zp,{url:HS.APPRECIATIONS.FETCH,params:{MONTH_FILTER:c==null?void 0:c.value,APPRECIATION_TYPE:s,BADGE_ID:l,SEARCH:d,FILTER_TYPE:y_==null?void 0:y_[t],EMPLOYEE_ID:n}},"fetchAppreciations");return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:m}),B.jsxs(yt,{className:It.overview__container__bg,style:{overflow:"hidden"},children:[B.jsxs(yt,{display:"flex",justifyContent:"space-between",children:[B.jsxs(yt,{display:"flex",gap:2,flexDirection:"row",children:[B.jsx(rF,{styleOverrides:{margin:0,height:40},placeholder:"Search",debounceDelay:500,getSearch:v=>p(y=>({...y,SEARCH:v}))}),B.jsx("div",{style:{width:200},children:B.jsx(jx,{value:c,options:o,placeholder:"Month",onChange:v=>p(y=>({...y,MONTH_FILTER:v})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:v=>({...v,zIndex:99999999999,width:"200px"}),control:v=>({...v,minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),B.jsxs(yt,{gap:2,display:"flex",justifyContent:"flex-end",alignItems:"center",children:[B.jsx(ED,{items:r,value:s,onChangeTab:(v,y)=>p(x=>({...x,APPRECIATION_TYPE:y}))}),!n&&B.jsx(Gs,{disableElevation:!0,label:"APPRECIATE",color:"secondary",onClick:()=>a(!0)})]})]}),B.jsxs(yt,{className:"appreciations__list",children:[B.jsx(yt,{className:It.summury__box_outline,children:B.jsx(Jo,{className:It.box__appriciate,container:!0,spacing:2,children:Array.isArray(h==null?void 0:h.badges)&&((g=h.badges)==null?void 0:g.map((v,y)=>B.jsxs(Jo,{className:It.box__top_appriciate,xs:12,sm:6,md:6,lg:4,item:!0,children:[B.jsx(yt,{className:It.icon__appriciate,children:B.jsx(pc,{alt:"logo",src:(v==null?void 0:v.BADGE_LOGO)??""})}),B.jsxs(yt,{children:[B.jsx("h3",{onClick:()=>{p(x=>({...x,BADGE_ID:v.ID}))},children:(v==null?void 0:v.BADGES_COUNT)??0}),B.jsx("p",{children:(v==null?void 0:v.TITLE)??""})]})]},y)))})}),l?Array.isArray(h.appreciations)&&h.appreciations.length>0?h.appreciations.map((v,y)=>{var w;const x=(w=v==null?void 0:v.REMARKS)==null?void 0:w.split(`
|
|
3091
|
-
`);return B.jsxs(yt,{className:`${It.feedback__rating}`,children:[B.jsxs("div",{className:"flex-between-center w-100",children:[B.jsxs("div",{className:"flex-start-center",children:[B.jsx(pc,{sx:{height:30,width:30,marginRight:2},alt:"",src:(v==null?void 0:v.APPERICIATED_BY_PROFILE_IMAGE)??`https://robohash.org/${v==null?void 0:v.APPERICIATED_BY}`}),B.jsxs("div",{children:[B.jsx("h4",{children:(v==null?void 0:v.APPERICIATED_BY)??"--"}),B.jsxs("p",{style:{padding:"0px",margin:"5px 0px 0px 0px",fontSize:"12px",color:"#615E69"},children:[(v==null?void 0:v.APPERICIATED_BY_DESIGNATION)??"--",B.jsx("span",{children:B.jsx(Mwe,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(v==null?void 0:v.APPERICIATED_BY_DEPARTMENT)??"--"]})]})]}),B.jsxs("div",{className:"flex-start-center",children:[B.jsxs("h4",{style:{marginRight:"10px"},children:["Appreciation for :-"," "]}),B.jsx("div",{children:B.jsx("h4",{children:(v==null?void 0:v.APPERICIATED_TO)??"--"})})]})]}),B.jsxs("div",{className:It.feedback__appreciation,children:[B.jsx(pc,{alt:"",src:(v==null?void 0:v.BADGE_LOGO)??""}),B.jsx("h3",{children:(v==null?void 0:v.BADGE_TITLE)??"TITLE"}),x==null?void 0:x.map((C,b)=>B.jsx("p",{style:(x==null?void 0:x.length)>1?{textAlign:"start"}:{textAlign:"center"},children:C},b))]}),B.jsx("div",{style:{display:"flex",justifyContent:"right"},className:It.one__icons__bottom,children:B.jsxs("p",{children:[B.jsx("span",{children:B.jsx(Twe,{})}),xi.getFormatedDate(v==null?void 0:v.CREATED_ON,(f==null?void 0:f.
|
|
3090
|
+
`);const nct=f7({palette:{primary:{main:"#172B4D"},secondary:{main:"#335AFF"},success:{main:"#2B9568"},warning:{main:"#E0B400"},error:{main:"#E70000"},info:{main:"#335AFF"},text:{disabled:"#615E69"},common:{white:"#FFFFFF"},action:{disabledBackground:"#BEBEBE",disabled:"#A5A3A9"},grey:{100:"#A5A3A9",200:"#d2d1d4",300:"#615E69",400:"#e8e8ea",500:"#f9f9f9"}},typography:{fontSize:16,fontFamily:"Segoe UI Web (West European)",h1:{fontSize:"1.25rem",fontWeight:600,lineHeight:"3.5rem"},h2:{fontSize:"1.125rem",fontWeight:600,lineHeight:"2.5rem"},h3:{fontSize:"1rem",fontWeight:600,lineHeight:"2rem"},h4:{fontSize:"0.875rem",fontWeight:600,lineHeight:"1.75rem"},h5:{fontSize:"0.75rem",fontWeight:600,lineHeight:"1.5rem"},h6:{fontSize:"0.6875rem",fontWeight:600,lineHeight:"1.375rem"},body1:{fontSize:"0.875rem",fontWeight:400},caption:{fontSize:"0.75rem",fontWeight:400},button:{fontSize:"1rem",fontWeight:500,textTransform:"uppercase"}},shape:{borderRadius:4},components:{MuiButton:{styleOverrides:{root:{fontStyle:"normal",whiteSpace:"nowrap",borderRadius:"calc(0.5rem - 2px)",fontSize:".8rem",lineHeight:"1.25rem",padding:"0.5rem 1rem 0.5rem 1rem",fontWeight:400,height:"2.5rem",fontFamily:"system-ui"}}},MuiIconButton:{variants:[{props:{size:"large"},style:{height:"2.8rem"}},{props:{size:"medium"},style:{height:"2.5rem"}},{props:{size:"small"},style:{height:"2.2rem"}}]},MuiAvatar:{variants:[{props:{sizes:"lg"},style:{height:"24px",width:"24px"}},{props:{sizes:"md"},style:{height:"20px",width:"20px"}},{props:{sizes:"sm"},style:{height:"16px",width:"16px"}}]},MuiCircularProgress:{variants:[{props:{size:"lg"},style:{height:"46px",width:"46px"}},{props:{size:"md"},style:{height:"40px",width:"40px"}},{props:{size:"sm"},style:{height:"34px",width:"34px"}}]},MuiLinearProgress:{variants:[{props:{sx:{height:"lg"}},style:{height:"14px",width:"14px"}},{props:{sx:{height:"md"}},style:{height:"10px",width:"10px"}},{props:{sx:{height:"sm"}},style:{height:"5px",width:"5px"}}]},MuiIcon:{variants:[{props:{fontSize:"large"},style:{height:"48px"}},{props:{fontSize:"medium"},style:{height:"42px"}},{props:{fontSize:"small"},style:{height:"36px"}}]},MuiCheckbox:{styleOverrides:{root:{"&.Mui-checked":{color:"#335AFF"},"&.MuiCheckbox-indeterminate":{color:"#335AFF"}}},variants:[{props:{color:"primary"},style:{}},{props:{size:"medium"},style:{height:"20px"}},{props:{size:"small"},style:{height:"18px"}}]},MuiRadio:{styleOverrides:{root:{color:"#335AFF","&.Mui-checked":{color:"#335AFF"}}},variants:[{props:{color:"primary"},style:{color:"#335AFF"}},{props:{size:"medium"},style:{height:"20px"}},{props:{size:"small"},style:{height:"18px"}}]},MuiCard:{styleOverrides:{root:{paddingInline:"1.25rem",paddingBlock:"0.875rem",margin:"0.875rem",background:"linear-gradient(255.86deg, rgba(76, 139, 255, 0.2) -89.77%, rgba(255, 255, 255, 0) -89.75%), #FFFFFF",border:"0.075rem solid #ECECEC",boxShadow:"0px 0px 0.5rem rgba(0, 0, 0, 0.08)",borderRadius:"0.25rem",fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"}}},MuiListItemText:{styleOverrides:{primary:{fonstSize:"14px",fontWeight:600,fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"},secondary:{fonstSize:"12px",fontWeight:400,fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"}}},MuiCardHeader:{styleOverrides:{root:{padding:0,fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"}}},MuiCardActions:{styleOverrides:{root:{padding:0,fontFamily:"Segoe UI Web (West European)",fontStyle:"normal"}}},MuiCardContent:{styleOverrides:{root:{padding:0,height:"90%",width:"100%",fontFamily:"Segoe UI Web (West European)",fontStyle:"normal","&:last-child":{paddingBottom:0}}}},MuiFormControl:{styleOverrides:{root:{}}},MuiTextField:{styleOverrides:{root:{}}},MuiOutlinedInput:{styleOverrides:{root:{}}},MuiInputBase:{styleOverrides:{root:{}}},MuiDialogContent:{styleOverrides:{root:{padding:0}}},MuiDialogTitle:{styleOverrides:{root:{padding:0}}}}}),_f=e=>n=>W.jsx(yse,Object.assign({theme:nct},{children:W.jsx(e,Object.assign({},n))})),kfe=N.createContext({});process.env.NODE_ENV!=="production"&&(kfe.displayName="TimelineContext");var Fx=kfe;function rct(e){return rt("MuiTimeline",e)}function Rf(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${He(e)}`}it("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const oct=["position","className"],ict=Ee("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.position&&n[Rf(t.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),act=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimeline"}),{position:r="right",className:o}=t,i=Le(t,oct),a=F({},t,{position:r}),s=(c=>{const{position:d,classes:p}=c;return nt({root:["root",d&&Rf(d)]},rct,p)})(a),l=N.useMemo(()=>({position:r}),[r]);return W.jsx(Fx.Provider,{value:l,children:W.jsx(ict,F({className:Ve(s.root,o),ownerState:a,ref:n},i))})});process.env.NODE_ENV!=="production"&&(act.propTypes={children:u.node,classes:u.object,className:u.string,position:u.oneOf(["alternate-reverse","alternate","left","right"]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function sct(e){return rt("MuiTimelineContent",e)}var lct=it("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const cct=["className"],uct=Ee(zo,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[Rf(t.position)]]}})(({ownerState:e})=>F({flex:1,padding:"6px 16px",textAlign:"left"},e.position==="left"&&{textAlign:"right"})),dct=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineContent"}),{className:r}=t,o=Le(t,cct),{position:i}=N.useContext(Fx),a=F({},t,{position:i||"right"}),s=(l=>{const{position:c,classes:d}=l;return nt({root:["root",Rf(c)]},sct,d)})(a);return W.jsx(uct,F({component:"div",className:Ve(s.root,r),ownerState:a,ref:n},o))});process.env.NODE_ENV!=="production"&&(dct.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function pct(e){return rt("MuiTimelineOppositeContent",e)}var fct=it("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const hct=["className"],mct=Ee(zo,{name:"MuiTimelineOppositeContent",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[Rf(t.position)]]}})(({ownerState:e})=>F({padding:"6px 16px",marginRight:"auto",textAlign:"right",flex:1},e.position==="left"&&{textAlign:"left"})),MJ=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineOppositeContent"}),{className:r}=t,o=Le(t,hct),{position:i}=N.useContext(Fx),a=F({},t,{position:i||"left"}),s=(l=>{const{position:c,classes:d}=l;return nt({root:["root",Rf(c)]},pct,d)})(a);return W.jsx(mct,F({component:"div",className:Ve(s.root,r),ownerState:a,ref:n},o))});process.env.NODE_ENV!=="production"&&(MJ.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])}),MJ.muiName="TimelineOppositeContent";function gct(e){return rt("MuiTimelineItem",e)}it("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const vct=["position","className"],yct=Ee("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[Rf(t.position)]]}})(({ownerState:e})=>F({listStyle:"none",display:"flex",position:"relative",minHeight:70},e.position==="left"&&{flexDirection:"row-reverse"},(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${lct.root}`]:{textAlign:"right"},[`& .${fct.root}`]:{textAlign:"left"}}},!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}})),bct=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineItem"}),{position:r,className:o}=t,i=Le(t,vct),{position:a}=N.useContext(Fx);let s=!1;N.Children.forEach(t.children,p=>{Wh(p,["TimelineOppositeContent"])&&(s=!0)});const l=F({},t,{position:r||a||"right",hasOppositeContent:s}),c=(p=>{const{position:f,classes:h,hasOppositeContent:m}=p;return nt({root:["root",Rf(f),!m&&"missingOppositeContent"]},gct,h)})(l),d=N.useMemo(()=>({position:l.position}),[l.position]);return W.jsx(Fx.Provider,{value:d,children:W.jsx(yct,F({className:Ve(c.root,o),ownerState:l,ref:n},i))})});process.env.NODE_ENV!=="production"&&(bct.propTypes={children:u.node,classes:u.object,className:u.string,position:u.oneOf(["alternate-reverse","alternate","left","right"]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function xct(e){return rt("MuiTimelineSeparator",e)}it("MuiTimelineSeparator",["root"]);const wct=["className"],Cct=Ee("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(e,n)=>n.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),Sct=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineSeparator"}),{className:r}=t,o=Le(t,wct),i=t,a=(s=>{const{classes:l}=s;return nt({root:["root"]},xct,l)})(i);return W.jsx(Cct,F({className:Ve(a.root,r),ownerState:i,ref:n},o))});process.env.NODE_ENV!=="production"&&(Sct.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Ect(e){return rt("MuiTimelineConnector",e)}it("MuiTimelineConnector",["root"]);const Oct=["className"],Tct=Ee("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),Ict=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineConnector"}),{className:r}=t,o=Le(t,Oct),i=t,a=(s=>{const{classes:l}=s;return nt({root:["root"]},Ect,l)})(i);return W.jsx(Tct,F({className:Ve(a.root,r),ownerState:i,ref:n},o))});process.env.NODE_ENV!=="production"&&(Ict.propTypes={children:u.node,classes:u.object,className:u.string,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});function Mct(e){return rt("MuiTimelineDot",e)}it("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const kct=["className","color","variant"],Act=Ee("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[t.color!=="inherit"&&`${t.variant}${He(t.color)}`],n[t.variant]]}})(({ownerState:e,theme:n})=>F({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(n.vars||n).shadows[1],margin:"11.5px 0"},e.variant==="filled"&&F({borderColor:"transparent"},e.color!=="inherit"&&F({},e.color==="grey"?{color:(n.vars||n).palette.grey[50],backgroundColor:(n.vars||n).palette.grey[400]}:{color:(n.vars||n).palette[e.color].contrastText,backgroundColor:(n.vars||n).palette[e.color].main})),e.variant==="outlined"&&F({boxShadow:"none",backgroundColor:"transparent"},e.color!=="inherit"&&F({},e.color==="grey"?{borderColor:(n.vars||n).palette.grey[400]}:{borderColor:(n.vars||n).palette[e.color].main})))),_ct=N.forwardRef(function(e,n){const t=Je({props:e,name:"MuiTimelineDot"}),{className:r,color:o="grey",variant:i="filled"}=t,a=Le(t,kct),s=F({},t,{color:o,variant:i}),l=(c=>{const{color:d,variant:p,classes:f}=c;return nt({root:["root",p,d!=="inherit"&&`${p}${He(d)}`]},Mct,f)})(s);return W.jsx(Act,F({className:Ve(l.root,r),ownerState:s,ref:n},a))});process.env.NODE_ENV!=="production"&&(_ct.propTypes={children:u.node,classes:u.object,className:u.string,color:u.oneOfType([u.oneOf(["error","grey","info","inherit","primary","secondary","success","warning"]),u.string]),sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),variant:u.oneOfType([u.oneOf(["filled","outlined"]),u.string])});const nF=_f(Zqe),pc=_f(e=>{const{size:n,bgColor:t,badge:r,onClick:o=()=>{},icon:i}=e,a=An(e,["size","bgColor","badge","onClick","icon"]);return W.jsx(lJe,Object.assign({content:r==null?void 0:r.content,max:(r==null?void 0:r.max)||99,position:r==null?void 0:r.position,color:r==null?void 0:r.color,showZero:(r==null?void 0:r.showZero)||!1},{children:W.jsx(E$e,Object.assign({sx:{bgcolor:t},sizes:n,onClick:o},a,{children:i}))}))}),Afe=_f(Uqe),kJ=_f(e=>{const{prefix:n,suffix:t}=e,r=An(e,["prefix","suffix"]);return W.jsx(id,Object.assign({},r,{size:"small",type:"",InputProps:{startAdornment:n&&W.jsx(ji,Object.assign({position:"start"},{children:n})),endAdornment:t&&W.jsx(ji,Object.assign({position:"end"},{children:t}))}}))}),_fe=_f(function(e){const{open:n=!1,handleClose:t,title:r,children:o}=e;return W.jsx(W.Fragment,{children:W.jsx(T7,Object.assign({fullScreen:!0,open:n,onClose:t,TransitionComponent:Xet||null},{children:W.jsxs("div",Object.assign({className:"full-screen-modal-container"},{children:[W.jsxs("div",Object.assign({className:"w-100 flex-start-center full-screen-modal-title-container"},{children:[W.jsx(Ka,Object.assign({color:"primary",size:"small",onClick:t,sx:{ml:"21px",cursor:"pointer"}},{children:W.jsx(xet,{})})),r]})),W.jsx("div",Object.assign({className:"w-100 full-screen-modal-children-container"},{children:o||W.jsx(W.Fragment,{})}))]}))}))})}),jx=_f(O6),rF=_f(e=>{const{getSearch:n=a=>{},placeholder:t="Search",debounceDelay:r=1e3,styleOverrides:o={}}=e,i=dr.debounce(function(a){const{value:s}=a==null?void 0:a.target;n(s)},r);return W.jsxs("div",Object.assign({className:"flex-start-center search-component",style:o},{children:[W.jsx(Yue,{}),W.jsx("input",{type:"text",placeholder:t,name:"searchText",onChange:i,className:"input-search"})]}))}),Rct=_f(({fields:e,control:n,register:t,errors:r,containerLayout:o,containerSpacing:i})=>{const[a,s]=V.useState({});return W.jsx(GX,Object.assign({container:!0,alignItems:"flex-start",item:!0,xs:(o==null?void 0:o.xs)||12,sm:(o==null?void 0:o.sm)||12,md:(o==null?void 0:o.md)||12,lg:(o==null?void 0:o.lg)||12,spacing:i||2,sx:{padding:"1rem"}},{children:e.map((l,c)=>{var d,p,f,h,m;return W.jsx(GX,Object.assign({item:!0,xs:((d=l==null?void 0:l.itemLayout)===null||d===void 0?void 0:d.xs)||12,sm:((p=l==null?void 0:l.itemLayout)===null||p===void 0?void 0:p.sm)||4,md:((f=l==null?void 0:l.itemLayout)===null||f===void 0?void 0:f.md)||3,lg:((h=l==null?void 0:l.itemLayout)===null||h===void 0?void 0:h.lg)||3},{children:gat({fieldOption:l,control:n,register:t,errors:r,checkboxGroupValue:a,setCheckboxGroupValue:s})}),(m=l==null?void 0:l.id)!==null&&m!==void 0?m:c)})}))});var oF={},v_={};const Pct=fu(Ewe);var AJ;function ys(){return AJ||(AJ=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=Pct}(v_)),v_}var Dct=ga;Object.defineProperty(oF,"__esModule",{value:!0});var Rfe=oF.default=void 0,Nct=Dct(ys()),Fct=B;Rfe=oF.default=(0,Nct.default)((0,Fct.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");const jct="_overview__container__bg_dz8eh_2",Lct="_one__icons__bottom_dz8eh_13",Bct="_feedback__appreciation_dz8eh_34",Vct="_feedback__rating_dz8eh_51",zct="_icon__appriciate_dz8eh_80",Wct="_box__appriciate_dz8eh_87",$ct="_box__top_appriciate_dz8eh_91",Gct="_summury__box_outline_dz8eh_115",Hct="_schedule__employee_search_dz8eh_123",Yct="_schedule__employee_dz8eh_123",Xct="_form_error_dz8eh_148",Zct="_skill__btns_dz8eh_163",Uct="_item__centerdirector_dz8eh_178",qct="_closeRatingicon_dz8eh_183",Jct="_footer__upload_assets_dz8eh_190",Qct="_container_dz8eh_195",Kct="_choose_employee_container_dz8eh_202",eut="_badges_container_dz8eh_208",tut="_badges_container_title_dz8eh_214",nut="_avatar_container_dz8eh_219",rut="_active_badge_dz8eh_233",out="_badge_card_dz8eh_238",iut="_previeww__color_dz8eh_317",aut="_images__structure_dz8eh_346",sut="_one__to__one__card_dz8eh_367",lut="_one__to__one__card__top_dz8eh_377",cut="_one__to__one__icon_dz8eh_383",uut="_face__to__face_dz8eh_424",dut="_one__to__one__reschedule_dz8eh_467",put="_one__to__one__cancel_dz8eh_479",fut="_meeting__details_dz8eh_491",hut="_meeting__details__topbox_dz8eh_495",mut="_bottom_create_loaction_dz8eh_532",gut="_date__time__box_dz8eh_561",vut="_connected__meeting_dz8eh_590",yut="_remark__container_dz8eh_616",but="_remarks__meeting_dz8eh_625",xut="_comment__users__meeting_dz8eh_683",wut="_editor__remarks_dz8eh_703",Cut="_editor__bottom_dz8eh_712",Sut="_all__upload__images_dz8eh_727",Eut="_pdfView__preview_dz8eh_756",Out="_main__upload__box_dz8eh_795",It={overview__container__bg:jct,one__icons__bottom:Lct,feedback__appreciation:Bct,feedback__rating:Vct,icon__appriciate:zct,box__appriciate:Wct,box__top_appriciate:$ct,summury__box_outline:Gct,schedule__employee_search:Hct,schedule__employee:Yct,form_error:Xct,skill__btns:Zct,item__centerdirector:Uct,closeRatingicon:qct,footer__upload_assets:Jct,container:Qct,choose_employee_container:Kct,badges_container:eut,badges_container_title:tut,avatar_container:nut,active_badge:rut,badge_card:out,previeww__color:iut,images__structure:aut,one__to__one__card:sut,one__to__one__card__top:lut,one__to__one__icon:cut,face__to__face:uut,one__to__one__reschedule:dut,one__to__one__cancel:put,meeting__details:fut,meeting__details__topbox:hut,"meeting-desc":"_meeting-desc_dz8eh_511",bottom_create_loaction:mut,date__time__box:gut,connected__meeting:vut,remark__container:yut,remarks__meeting:but,comment__users__meeting:xut,editor__remarks:wut,editor__bottom:Cut,all__upload__images:Sut,pdfView__preview:Eut,main__upload__box:Out,"input-date":"_input-date_dz8eh_804"};function XO(e){"@babel/helpers - typeof";return XO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},XO(e)}var Tut=/^\s+/,Iut=/\s+$/;function un(e,n){if(e=e||"",n=n||{},e instanceof un)return e;if(!(this instanceof un))return new un(e,n);var t=Mut(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||t.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}un.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),t,r,o,i,a,s;return t=n.r/255,r=n.g/255,o=n.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(n){return this._a=Pfe(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=RJ(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=RJ(this._r,this._g,this._b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+o+"%)":"hsva("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=_J(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=_J(this._r,this._g,this._b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+o+"%)":"hsla("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return PJ(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return Rut(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ko(this._r,255)*100)+"%",g:Math.round(ko(this._g,255)*100)+"%",b:Math.round(ko(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ko(this._r,255)*100)+"%, "+Math.round(ko(this._g,255)*100)+"%, "+Math.round(ko(this._b,255)*100)+"%)":"rgba("+Math.round(ko(this._r,255)*100)+"%, "+Math.round(ko(this._g,255)*100)+"%, "+Math.round(ko(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Gut[PJ(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var t="#"+DJ(this._r,this._g,this._b,this._a),r=t,o=this._gradientType?"GradientType = 1, ":"";if(n){var i=un(n);r="#"+DJ(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+r+")"},toString:function(n){var t=!!n;n=n||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!t&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return i?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(!0)),n==="hex4"&&(r=this.toHex8String(!0)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return un(this.toString())},_applyModification:function(n,t){var r=n.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Fut,arguments)},brighten:function(){return this._applyModification(jut,arguments)},darken:function(){return this._applyModification(Lut,arguments)},desaturate:function(){return this._applyModification(Put,arguments)},saturate:function(){return this._applyModification(Dut,arguments)},greyscale:function(){return this._applyModification(Nut,arguments)},spin:function(){return this._applyModification(But,arguments)},_applyCombination:function(n,t){return n.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Wut,arguments)},complement:function(){return this._applyCombination(Vut,arguments)},monochromatic:function(){return this._applyCombination($ut,arguments)},splitcomplement:function(){return this._applyCombination(zut,arguments)},triad:function(){return this._applyCombination(NJ,[3])},tetrad:function(){return this._applyCombination(NJ,[4])}};un.fromRatio=function(e,n){if(XO(e)=="object"){var t={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?t[r]=e[r]:t[r]=Mb(e[r]));e=t}return un(e,n)};function Mut(e){var n={r:0,g:0,b:0},t=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Zut(e)),XO(e)=="object"&&(Fu(e.r)&&Fu(e.g)&&Fu(e.b)?(n=kut(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fu(e.h)&&Fu(e.s)&&Fu(e.v)?(r=Mb(e.s),o=Mb(e.v),n=_ut(e.h,r,o),a=!0,s="hsv"):Fu(e.h)&&Fu(e.s)&&Fu(e.l)&&(r=Mb(e.s),i=Mb(e.l),n=Aut(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=Pfe(t),{ok:a,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}function kut(e,n,t){return{r:ko(e,255)*255,g:ko(n,255)*255,b:ko(t,255)*255}}function _J(e,n,t){e=ko(e,255),n=ko(n,255),t=ko(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),i,a,s=(r+o)/2;if(r==o)i=a=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:a,l:s}}function Aut(e,n,t){var r,o,i;e=ko(e,360),n=ko(n,100),t=ko(t,100);function a(c,d,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?c+(d-c)*6*p:p<1/2?d:p<2/3?c+(d-c)*(2/3-p)*6:c}if(n===0)r=o=i=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function RJ(e,n,t){e=ko(e,255),n=ko(n,255),t=ko(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),i,a,s=r,l=r-o;if(a=r===0?0:l/r,r==o)i=0;else{switch(r){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:a,v:s}}function _ut(e,n,t){e=ko(e,360)*6,n=ko(n,100),t=ko(t,100);var r=Math.floor(e),o=e-r,i=t*(1-n),a=t*(1-o*n),s=t*(1-(1-o)*n),l=r%6,c=[t,a,i,i,s,t][l],d=[s,t,t,a,i,i][l],p=[i,i,s,t,t,a][l];return{r:c*255,g:d*255,b:p*255}}function PJ(e,n,t,r){var o=[nc(Math.round(e).toString(16)),nc(Math.round(n).toString(16)),nc(Math.round(t).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Rut(e,n,t,r,o){var i=[nc(Math.round(e).toString(16)),nc(Math.round(n).toString(16)),nc(Math.round(t).toString(16)),nc(Dfe(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function DJ(e,n,t,r){var o=[nc(Dfe(r)),nc(Math.round(e).toString(16)),nc(Math.round(n).toString(16)),nc(Math.round(t).toString(16))];return o.join("")}un.equals=function(e,n){return!e||!n?!1:un(e).toRgbString()==un(n).toRgbString()};un.random=function(){return un.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Put(e,n){n=n===0?0:n||10;var t=un(e).toHsl();return t.s-=n/100,t.s=RI(t.s),un(t)}function Dut(e,n){n=n===0?0:n||10;var t=un(e).toHsl();return t.s+=n/100,t.s=RI(t.s),un(t)}function Nut(e){return un(e).desaturate(100)}function Fut(e,n){n=n===0?0:n||10;var t=un(e).toHsl();return t.l+=n/100,t.l=RI(t.l),un(t)}function jut(e,n){n=n===0?0:n||10;var t=un(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(n/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(n/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(n/100)))),un(t)}function Lut(e,n){n=n===0?0:n||10;var t=un(e).toHsl();return t.l-=n/100,t.l=RI(t.l),un(t)}function But(e,n){var t=un(e).toHsl(),r=(t.h+n)%360;return t.h=r<0?360+r:r,un(t)}function Vut(e){var n=un(e).toHsl();return n.h=(n.h+180)%360,un(n)}function NJ(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var t=un(e).toHsl(),r=[un(e)],o=360/n,i=1;i<n;i++)r.push(un({h:(t.h+i*o)%360,s:t.s,l:t.l}));return r}function zut(e){var n=un(e).toHsl(),t=n.h;return[un(e),un({h:(t+72)%360,s:n.s,l:n.l}),un({h:(t+216)%360,s:n.s,l:n.l})]}function Wut(e,n,t){n=n||6,t=t||30;var r=un(e).toHsl(),o=360/t,i=[un(e)];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,i.push(un(r));return i}function $ut(e,n){n=n||6;for(var t=un(e).toHsv(),r=t.h,o=t.s,i=t.v,a=[],s=1/n;n--;)a.push(un({h:r,s:o,v:i})),i=(i+s)%1;return a}un.mix=function(e,n,t){t=t===0?0:t||50;var r=un(e).toRgb(),o=un(n).toRgb(),i=t/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return un(a)};un.readability=function(e,n){var t=un(e),r=un(n);return(Math.max(t.getLuminance(),r.getLuminance())+.05)/(Math.min(t.getLuminance(),r.getLuminance())+.05)};un.isReadable=function(e,n,t){var r=un.readability(e,n),o,i;switch(i=!1,o=Uut(t),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i};un.mostReadable=function(e,n,t){var r=null,o=0,i,a,s,l;t=t||{},a=t.includeFallbackColors,s=t.level,l=t.size;for(var c=0;c<n.length;c++)i=un.readability(e,n[c]),i>o&&(o=i,r=un(n[c]));return un.isReadable(e,r,{level:s,size:l})||!a?r:(t.includeFallbackColors=!1,un.mostReadable(e,["#fff","#000"],t))};var c9=un.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Gut=un.hexNames=Hut(c9);function Hut(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function Pfe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ko(e,n){Yut(e)&&(e="100%");var t=Xut(e);return e=Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function RI(e){return Math.min(1,Math.max(0,e))}function Os(e){return parseInt(e,16)}function Yut(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Xut(e){return typeof e=="string"&&e.indexOf("%")!=-1}function nc(e){return e.length==1?"0"+e:""+e}function Mb(e){return e<=1&&(e=e*100+"%"),e}function Dfe(e){return Math.round(parseFloat(e)*255).toString(16)}function FJ(e){return Os(e)/255}var Hl=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",t="(?:"+n+")|(?:"+e+")",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fu(e){return!!Hl.CSS_UNIT.exec(e)}function Zut(e){e=e.replace(Tut,"").replace(Iut,"").toLowerCase();var n=!1;if(c9[e])e=c9[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Hl.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Hl.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Hl.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Hl.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Hl.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Hl.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Hl.hex8.exec(e))?{r:Os(t[1]),g:Os(t[2]),b:Os(t[3]),a:FJ(t[4]),format:n?"name":"hex8"}:(t=Hl.hex6.exec(e))?{r:Os(t[1]),g:Os(t[2]),b:Os(t[3]),format:n?"name":"hex"}:(t=Hl.hex4.exec(e))?{r:Os(t[1]+""+t[1]),g:Os(t[2]+""+t[2]),b:Os(t[3]+""+t[3]),a:FJ(t[4]+""+t[4]),format:n?"name":"hex8"}:(t=Hl.hex3.exec(e))?{r:Os(t[1]+""+t[1]),g:Os(t[2]+""+t[2]),b:Os(t[3]+""+t[3]),format:n?"name":"hex"}:!1}function Uut(e){var n,t;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:n,size:t}}const qut=(e,n=2)=>((r,o)=>un(r).darken(o).toString())(e,n),Gs=({label:e,variant:n="contained",...t})=>{const r=mu(i=>i.session.user),o=qut(r==null?void 0:r.PRODUCT_THEME_COLOR);return B.jsx(Afe,{label:e,variant:n,sx:n==="contained"?{background:r==null?void 0:r.PRODUCT_THEME_COLOR,"&:hover":{bgcolor:o}}:n==="outlined"?{color:r==null?void 0:r.PRODUCT_THEME_COLOR,borderColor:r==null?void 0:r.PRODUCT_THEME_COLOR,"&:hover":{borderColor:o}}:{},...t})};var Nfe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},jJ=V.createContext&&V.createContext(Nfe),Jut=["attr","size","title"];function Qut(e,n){if(e==null)return{};var t=Kut(e,n),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function Kut(e,n){if(e==null)return{};var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;t[r]=e[r]}return t}function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ZO.apply(this,arguments)}function LJ(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function UO(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?LJ(Object(t),!0).forEach(function(r){edt(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):LJ(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function edt(e,n,t){return n=tdt(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function tdt(e){var n=ndt(e,"string");return typeof n=="symbol"?n:n+""}function ndt(e,n){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ffe(e){return e&&e.map((n,t)=>V.createElement(n.tag,UO({key:t},n.attr),Ffe(n.child)))}function iF(e){return n=>V.createElement(rdt,ZO({attr:UO({},e.attr)},n),Ffe(e.child))}function rdt(e){var n=t=>{var{attr:r,size:o,title:i}=e,a=Qut(e,Jut),s=o||t.size||"1em",l;return t.className&&(l=t.className),e.className&&(l=(l?l+" ":"")+e.className),V.createElement("svg",ZO({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:l,style:UO(UO({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&V.createElement("title",null,i),e.children)};return jJ!==void 0?V.createElement(jJ.Consumer,null,t=>n(t)):n(Nfe)}function td(e){return iF({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)}const jfe=e=>{var T;const{open:n,setOpen:t,employee:r,empCodeKey:o,empIdKey:i,empNameKey:a,empProfileImageKey:s}=e,l=Cd(),{pushAlert:c}=gu(),{data:d,isFetching:p}=Xc(zp,{url:HS.APPRECIATIONS.BADGES.FETCH,params:{isAll:!0}},"fetchBadges"),{mutate:f,isLoading:h}=tm(cd,"createAppreciation",{onSuccess:()=>{l.invalidateQueries("fetchAppreciations"),c({type:"success",message:"Employee has been appreciated successfully!"}),t(!1)},onError:()=>c({type:"error",message:"We are facing some technical difficulties!"})}),m=or.object({APPRECIATE_TO:or.number({required_error:"Please choose employee to appreciate!"}),BADGE_ID:or.number({required_error:"Please select an appreciation badge!"}),REMARKS:or.string({required_error:"Please enter appreciation remarks!"})}),{control:g,watch:v,formState:{errors:y},handleSubmit:x,setValue:w}=Nv({resolver:cw(m),mode:"onChange",defaultValues:{APPRECIATE_TO:r&&(r==null?void 0:r[`${i}`]),REMARKS:""}}),[C]=v(["BADGE_ID"]),b=(M,k)=>{w("BADGE_ID",M),w("REMARKS",k)},E=M=>{const k={SEND_EMAIL:1,...M};f({url:HS.APPRECIATIONS.CREATE,data:k})};return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:h||p}),B.jsx(nF,{title:bIe("Appreciate Employee",B.jsx(kwe,{sx:{color:"#172B4D"}})),open:n,onModalclose:()=>t(!1),size:"md",children:B.jsxs(yt,{className:It.container,children:[B.jsxs(yt,{display:"flex",gap:1,children:[B.jsx(bi,{mt:1,children:"Appreciate:"}),r?B.jsxs("div",{className:It.avatar_container,children:[B.jsx(pc,{sx:{height:30,width:30},src:(r==null?void 0:r[`${s}`])??`https://robohash.org/${r==null?void 0:r[`${a}`]}`}),B.jsxs("span",{children:[(r==null?void 0:r[`${a}`])??"--"," ",(r==null?void 0:r[`${o}`])??"--"]})]}):B.jsxs(yt,{display:"flex",flexDirection:"column",gap:1,children:[B.jsx(PD,{searchKey:"search",endpoint:HS.EMPLOYEES.SEARCH_EMPLOYEES,reqParams:{search_for:"appreciation",search:""},optionValueKey:"EMPLOYEE_ID",optionTitleFn:M=>`${(M==null?void 0:M.EMPLOYEE_NAME)||"--"} (${M.EMPLOYEE_CODE||"--"})`,inputPlaceHolder:"Choose Employee",onChange:({value:M})=>w("APPRECIATE_TO",M)}),!!(y!=null&&y.APPRECIATE_TO)&&B.jsxs("div",{className:It.form_error,style:{float:"left",marginTop:0},children:[B.jsx(td,{}),B.jsx("p",{children:y.APPRECIATE_TO.message})]})]})]}),B.jsxs(yt,{className:It.badges_container,children:[B.jsx("span",{className:It.badges_container_title,children:"Select Badge of Appreciation"}),B.jsx(Jo,{container:!0,spacing:1,children:(T=d==null?void 0:d.ROWS)==null?void 0:T.map((M,k)=>B.jsx(Jo,{item:!0,xs:4,children:B.jsx(aee,{color:"primary",badgeContent:B.jsx(Rfe,{style:{color:"#fff",width:"10px",height:"10px"}}),invisible:C!==M.ID,anchorOrigin:{vertical:"top",horizontal:(k+1)%3===0?"left":"right"},className:"w-100 ok",children:B.jsx(odt,{selectedBadgeId:C,handleOnClickBadge:b,...M})})},k))})]}),B.jsx(yt,{children:B.jsxs(E1,{variant:"outlined",style:{height:"auto"},className:"w-100 ",children:[B.jsx(mD,{variant:"outlined",htmlFor:"Appreciation Remarks",color:"primary",children:"Appreciation Remarks"}),B.jsx(Ta,{control:g,name:"REMARKS",render:({field:{value:M,onChange:k}})=>B.jsx(iw,{style:{height:"auto"},margin:"none",multiline:!0,rows:3,color:"primary",autoComplete:"off",label:"Appreciation Remarks",className:"w-100",value:M,onChange:k})})]})}),B.jsxs(yt,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[B.jsx(Gs,{label:"CANCEL",variant:"outlined",onClick:()=>t(!1)}),B.jsx(Gs,{label:"SUBMIT",color:"secondary",disableElevation:!0,onClick:x(E)})]})]})})]})},odt=({TITLE:e,LOGO:n,DESCRIPTION:t,ID:r,APPERICATION_REMARKS:o,selectedBadgeId:i,handleOnClickBadge:a})=>B.jsx("div",{style:{borderRadius:"8px",border:"1px solid #f1f1f1"},className:"w-100",children:B.jsxs("div",{className:`${It.badge_card} ${r===i?It.active_badge:""}`,onClick:()=>a(r,o),children:[B.jsx(pc,{src:n,alt:e}),B.jsxs("span",{children:[B.jsx("h3",{children:e}),B.jsx("p",{children:t})]})]})}),Fy=e=>{const n=V.useMemo(()=>[{label:"Pending",value:0},{label:"Completed",value:1}],[e]),t=V.useMemo(()=>[{value:1,label:"Face to Face"},{value:2,label:"Online Meeting"},{value:3,label:"Phone Call"}],[e]),r=V.useMemo(()=>[{label:"Alphanumeric",value:0},{label:"Numberic",value:1}],[e]),o=V.useMemo(()=>[{label:"RECEIVED",value:"received"},{label:"GIVEN",value:"given"}],[e]),i=V.useMemo(()=>[{label:"All",value:void 0},{label:"Upcoming",value:0},{label:"Completed",value:1},{label:"Overdue",value:3}],[e]),a={1:{LABEL:"Location",COLUMN_NAME:"LOCATION"},2:{LABEL:"Meeting Link",COLUMN_NAME:"MEETING_LINK"},3:{LABEL:"Phone Number",COLUMN_NAME:"PHONE_NO"}},s=V.useMemo(()=>[{label:"All",value:void 0},{label:"This Month",value:0},{label:"Last Month",value:1},{label:"This Quarter",value:2},{label:"Last Quarter",value:3},{label:"This Year",value:4},{label:"Last Year",value:5}],[e]);return{TARGET_SETTING_OPTIONS:r,ONE_TO_ONE_TYPES:t,COMPENSATION_TABS:n,FEEDBACK_TABS:o,MONTH_FILTERS_OPTIONS:s,ONE_TO_ONE_SCHEDULE_OPTIONS:i,ONE_TO_ONE_MEDIUM_TYPES:a}},yg={NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",NULL:"null",UNDEFINED:"undefined",BOOLEAN:"boolean",FUNCTION:"function"},ii={TEXT:"text",NUMBER:"number",TEXTAREA:"textarea",SELECT:"select",MULTI_SELECT:"multi-select",CHECKBOX:"checkbox",RADIO:"radio",FILE:"file",TIME:"time",DATE:"date",DATE_TIME:"date-time",DATE_RANGE:"date-range",SWITCH:"switch",TEL:"tel",URL:"url",EMAIL:"email",NUMERIC:"numeric",DECIMAL:"decimal",SEARCH:"search",EDITOR:"editor"},hi={TEXT:"input",NUMBER:"number",TEXTAREA:"textarea",SELECT:"select",MULTI_SELECT:"multiple",CHECKBOX:"checkbox",RADIO:"radio",FILE:"file",TIME:"time",DATE:"calander",DATE_TIME:"date-time",DATE_RANGE:"date-range",SWITCH:"switch",TEL:"tel",URL:"url",EMAIL:"email",NUMERIC:"numeric",DECIMAL:"decimal",SEARCH:"search",EDITOR:"editor"},idt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],adt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],sdt={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},ldt={1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},cdt={1:"January",2:"Febuary",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},udt={"d-M-Y":"dd-M-yyyy","Y-m-d":"y-MM-dd","m-d-Y":"MM-dd-y","Y-d-m":"y-dd-MM","d M y":"dd M yy","F dS Y":"F dS Y","F d Y":"F d Y","M d Y":"M d Y","d/m/y":"d/m/y","d M Y h:i:s":"d M Y h:i:s","d-M-y":"d M y","h:i A":"h:i A"};var Pc;class xi{static isDateValid(n){return!isNaN(n.getTime())}static validateDataType(n,t){if(!n)return!1;const r=typeof n;switch(t){case yg.STRING:case yg.NUMBER:case yg.BOOLEAN:case yg.FUNCTION:return!!(r===t&&n);case yg.ARRAY:return!!(Array.isArray(n)&&n);case yg.OBJECT:return!!(Object.keys(n).length&&!Array.isArray(n)&&n);default:return!1}}static convertToFormData(n){const t=new FormData,r=(o,i)=>{for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const s=i?`${i}[${a}]`:a,l=o[a];l instanceof Date?t.append(s,l.toISOString()):typeof l=="object"&&!(l instanceof File)?r(l,s):t.append(s,l)}};return r(n),t}}Pc=xi;Object.defineProperty(xi,"toTitleCase",{enumerable:!0,configurable:!0,writable:!0,value:e=>`${e}`.toLocaleLowerCase().replace(/\b([a-z])/g,function(n,t){return t.toUpperCase()})});Object.defineProperty(xi,"dateFormatList",{enumerable:!0,configurable:!0,writable:!0,value:(e,n)=>Object.keys(e).find(t=>e[t]===n)});Object.defineProperty(xi,"getFullDateVar",{enumerable:!0,configurable:!0,writable:!0,value:e=>(e<10&&(e="0"+e),e)});Object.defineProperty(xi,"getFormatedDate",{enumerable:!0,configurable:!0,writable:!0,value:(e=new Date().getTime()/1e3,n="Y-m-d H:i:s",t=!0)=>{t&&(n=Pc.dateFormatList(udt,n));let r;if(typeof e=="string"?(e.length==10&&(e+=" 00:00:00"),r=new Date(e)):typeof e=="object"?r=new Date(e):r=new Date(e*1e3),!Pc.isDateValid(r))return null;var o=r.getFullYear();o.toString().length>4&&(r=new Date(e));var i={};i.Y=r.getFullYear(),i.y=r.getYear(),i.n=r.getMonth()+1,i.m=Pc.getFullDateVar(i.n),i.j=r.getDate(),i.d=Pc.getFullDateVar(i.j),i.w=r.getDay(),i.N=i.w,i.D=idt[i.w],i.l=adt[i.w],i.S=sdt[i.j]||"th",i.M=ldt[i.n],i.F=cdt[i.n],i.G=r.getHours(),i.H=Pc.getFullDateVar(i.G),i.i=Pc.getFullDateVar(r.getMinutes()),i.s=Pc.getFullDateVar(r.getSeconds()),i.g=i.G,i.t=Pc.getFullDateVar(new Date(i.Y,i.n,0).getDate()),i.A=" AM",i.a=" am",i.g>=12&&(i.g%=12,i.A=" PM",i.a=" pm"),i.g==0&&(i.g=12),i.N==0&&(i.N=7),i.y>=100&&(i.y-=100),i.W=1+Math.round(((r.getTime()-new Date(i.Y,0,4).getTime())/864e5+1)/7),i.h=Pc.getFullDateVar(i.g);var a="";return n==null||n.toString().split("").forEach(s=>{var l;a+=i.hasOwnProperty(s)?s=="y"&&((l=i[s].toString())==null?void 0:l.length)==1?`0${i[s]}`:i[s]:s}),a}});Object.defineProperty(xi,"convertFormMasterTypeToDynamicFormType",{enumerable:!0,configurable:!0,writable:!0,value:e=>{switch(e){case hi.TEXT:return ii.TEXT;case hi.NUMBER:return ii.NUMBER;case hi.TEXTAREA:return ii.TEXTAREA;case hi.CHECKBOX:return ii.CHECKBOX;case hi.DATE:return ii.DATE;case hi.DATE_RANGE:return ii.DATE_RANGE;case hi.DATE_TIME:return ii.DATE_TIME;case hi.DECIMAL:return ii.DECIMAL;case hi.EMAIL:return ii.EMAIL;case hi.FILE:return ii.FILE;case hi.MULTI_SELECT:return ii.MULTI_SELECT;case hi.NUMERIC:return ii.NUMERIC;case hi.RADIO:return ii.RADIO;case hi.SEARCH:return ii.SEARCH;case hi.SELECT:return ii.SELECT;case hi.TEL:return ii.TEL;case hi.TIME:return ii.TIME;case hi.SWITCH:return ii.SWITCH;case hi.URL:return ii.URL;case hi.EDITOR:return ii.EDITOR;default:return ii.TEXT}}});Object.defineProperty(xi,"convertTime",{enumerable:!0,configurable:!0,writable:!0,value:e=>{const[n,t,r]=e.split(":").map(Number);let o=n*60+t;r>=30&&o++;const i=Math.floor(o/60),a=o%60,s=r<30?0:1;return{hours:String(i).padStart(2,"0"),minutes:String(a).padStart(2,"0"),seconds:String(s).padStart(2,"0")}}});Object.defineProperty(xi,"convertToMinutes",{enumerable:!0,configurable:!0,writable:!0,value:e=>{var o;const[n,t]=(o=e==null?void 0:e.split(":"))==null?void 0:o.map(Number),r=n*60+t;return r==0?0:r}});const Go={SHEDULE_BY_WITH:"SHEDULE_BY_WITH",SHEDULE_BY_WITH_OUTSIDE:"SHEDULE_BY_WITH_OUTSIDE",SHEDULE_BY:"SHEDULE_BY",SHEDULE_WITH:"SHEDULE_WITH",REMARKS_VISIBILITY:"REMARKS_VISIBILITY"},Lfe={COMPLETED:1,CANCELED:2},y_={organization:1,self:3,team:2},ddt=e=>{var g;const{employee_id:n,CONCERN:t}=e,{FEEDBACK_TABS:r,MONTH_FILTERS_OPTIONS:o}=Fy("en"),[i,a]=V.useState(!1),[{APPRECIATION_TYPE:s,BADGE_ID:l,MONTH_FILTER:c,SEARCH:d},p]=V.useState({APPRECIATION_TYPE:"given",BADGE_ID:void 0,MONTH_FILTER:o[1],SEARCH:void 0}),{session:{user:f}}=mu(),{data:h,isFetching:m}=Xc(zp,{url:HS.APPRECIATIONS.FETCH,params:{MONTH_FILTER:c==null?void 0:c.value,APPRECIATION_TYPE:s,BADGE_ID:l,SEARCH:d,FILTER_TYPE:y_==null?void 0:y_[t],EMPLOYEE_ID:n}},"fetchAppreciations");return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:m}),B.jsxs(yt,{className:It.overview__container__bg,style:{overflow:"hidden"},children:[B.jsxs(yt,{display:"flex",justifyContent:"space-between",children:[B.jsxs(yt,{display:"flex",gap:2,flexDirection:"row",children:[B.jsx(rF,{styleOverrides:{margin:0,height:40},placeholder:"Search",debounceDelay:500,getSearch:v=>p(y=>({...y,SEARCH:v}))}),B.jsx("div",{style:{width:200},children:B.jsx(jx,{value:c,options:o,placeholder:"Month",onChange:v=>p(y=>({...y,MONTH_FILTER:v})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:v=>({...v,zIndex:99999999999,width:"200px"}),control:v=>({...v,minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),B.jsxs(yt,{gap:2,display:"flex",justifyContent:"flex-end",alignItems:"center",children:[B.jsx(ED,{items:r,value:s,onChangeTab:(v,y)=>p(x=>({...x,APPRECIATION_TYPE:y}))}),!n&&B.jsx(Gs,{disableElevation:!0,label:"APPRECIATE",color:"secondary",onClick:()=>a(!0)})]})]}),B.jsxs(yt,{className:"appreciations__list",children:[B.jsx(yt,{className:It.summury__box_outline,children:B.jsx(Jo,{className:It.box__appriciate,container:!0,spacing:2,children:Array.isArray(h==null?void 0:h.badges)&&((g=h.badges)==null?void 0:g.map((v,y)=>B.jsxs(Jo,{className:It.box__top_appriciate,xs:12,sm:6,md:6,lg:4,item:!0,children:[B.jsx(yt,{className:It.icon__appriciate,children:B.jsx(pc,{alt:"logo",src:(v==null?void 0:v.BADGE_LOGO)??""})}),B.jsxs(yt,{children:[B.jsx("h3",{onClick:()=>{p(x=>({...x,BADGE_ID:v.ID}))},children:(v==null?void 0:v.BADGES_COUNT)??0}),B.jsx("p",{children:(v==null?void 0:v.TITLE)??""})]})]},y)))})}),l?Array.isArray(h.appreciations)&&h.appreciations.length>0?h.appreciations.map((v,y)=>{var w;const x=(w=v==null?void 0:v.REMARKS)==null?void 0:w.split(`
|
|
3091
|
+
`);return B.jsxs(yt,{className:`${It.feedback__rating}`,children:[B.jsxs("div",{className:"flex-between-center w-100",children:[B.jsxs("div",{className:"flex-start-center",children:[B.jsx(pc,{sx:{height:30,width:30,marginRight:2},alt:"",src:(v==null?void 0:v.APPERICIATED_BY_PROFILE_IMAGE)??`https://robohash.org/${v==null?void 0:v.APPERICIATED_BY}`}),B.jsxs("div",{children:[B.jsx("h4",{children:(v==null?void 0:v.APPERICIATED_BY)??"--"}),B.jsxs("p",{style:{padding:"0px",margin:"5px 0px 0px 0px",fontSize:"12px",color:"#615E69"},children:[(v==null?void 0:v.APPERICIATED_BY_DESIGNATION)??"--",B.jsx("span",{children:B.jsx(Mwe,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(v==null?void 0:v.APPERICIATED_BY_DEPARTMENT)??"--"]})]})]}),B.jsxs("div",{className:"flex-start-center",children:[B.jsxs("h4",{style:{marginRight:"10px"},children:["Appreciation for :-"," "]}),B.jsx("div",{children:B.jsx("h4",{children:(v==null?void 0:v.APPERICIATED_TO)??"--"})})]})]}),B.jsxs("div",{className:It.feedback__appreciation,children:[B.jsx(pc,{alt:"",src:(v==null?void 0:v.BADGE_LOGO)??""}),B.jsx("h3",{children:(v==null?void 0:v.BADGE_TITLE)??"TITLE"}),x==null?void 0:x.map((C,b)=>B.jsx("p",{style:(x==null?void 0:x.length)>1?{textAlign:"start"}:{textAlign:"center"},children:C},b))]}),B.jsx("div",{style:{display:"flex",justifyContent:"right"},className:It.one__icons__bottom,children:B.jsxs("p",{children:[B.jsx("span",{children:B.jsx(Twe,{})}),xi.getFormatedDate(v==null?void 0:v.CREATED_ON,(f==null?void 0:f.date_str)??"YYYY-MM-DD")]})})]},y)}):B.jsx(iE,{message:"No appreciations found for the selected badge"}):B.jsx(iE,{message:"Click on any badge to see appreciations"})]})]}),i&&B.jsx(jfe,{open:i,setOpen:a})]})};var aF={},pdt=ga;Object.defineProperty(aF,"__esModule",{value:!0});var PI=aF.default=void 0,fdt=pdt(ys()),hdt=B;PI=aF.default=(0,fdt.default)((0,hdt.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");var sF={},mdt=ga;Object.defineProperty(sF,"__esModule",{value:!0});var lF=sF.default=void 0,gdt=mdt(ys()),vdt=B;lF=sF.default=(0,gdt.default)((0,vdt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Article");var cF={},ydt=ga;Object.defineProperty(cF,"__esModule",{value:!0});var kb=cF.default=void 0,bdt=ydt(ys()),xdt=B;kb=cF.default=(0,bdt.default)((0,xdt.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord");var Bfe={exports:{}};/*!
|
|
3092
3092
|
Copyright (c) 2018 Jed Watson.
|
|
3093
3093
|
Licensed under the MIT License (MIT), see
|
|
3094
3094
|
http://jedwatson.github.io/classnames
|
|
3095
|
-
*/(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)n.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Bfe);var wdt=Bfe.exports;const D5=nT(wdt),Io={"custom-descriptions":"_custom-descriptions_17b5o_1","custom-descriptions-bordered":"_custom-descriptions-bordered_17b5o_6","custom-descriptions-title":"_custom-descriptions-title_17b5o_10","custom-descriptions-view":"_custom-descriptions-view_17b5o_17","custom-descriptions-item":"_custom-descriptions-item_17b5o_21","custom-descriptions-item-label":"_custom-descriptions-item-label_17b5o_25","custom-descriptions-item-content":"_custom-descriptions-item-content_17b5o_34"},Cdt=({label:e,content:n,className:t,labelClassName:r,contentClassName:o,spacingBetweenItemAndLabel:i,spacingBetweenSubsequentDescriptionItems:a,formatter:s})=>B.jsxs(yt,{sx:{marginBottom:a||""},className:D5(Io==null?void 0:Io["custom-descriptions-item"],t),children:[B.jsx(yt,{className:D5(Io==null?void 0:Io["custom-descriptions-item-label"],r),children:e}),B.jsx(yt,{sx:{marginTop:i||""},className:D5(Io==null?void 0:Io["custom-descriptions-item-content"],o),children:typeof s=="function"?s(n):n??"--"})]}),Sdt=({bordered:e=!1,layout:n,className:t,spacingBetweenDescriptions:r,spacingBetweenDescriptionTitleAndItems:o,spacingBetweenSubsequentDescriptionItems:i,spacingBetweenItemAndLabel:a,descriptionsArray:s})=>{const l=Io==null?void 0:Io["custom-descriptions-bordered"],c=(Io==null?void 0:Io[`custom-descriptions-${n}`])??"",d=D5(Io==null?void 0:Io["custom-descriptions"],{[l]:e,[c]:n},t);return B.jsx(yt,{className:d,children:s.length>0&&s.map((p,f)=>B.jsxs(yt,{sx:{marginTop:r&&f!==0?r:""},children:[p.title&&B.jsx(yt,{sx:{marginBottom:o||""},className:Io==null?void 0:Io["custom-descriptions-title"],children:p.title}),B.jsx(yt,{className:Io==null?void 0:Io["custom-descriptions-view"],children:B.jsx(Jo,{container:!0,children:p.items.map((h,m)=>B.jsx(Jo,{item:!0,xs:h.xs,md:h.md,lg:h.lg,children:B.jsx(Cdt,{label:h.label,content:h.content,formatter:h.formatter,className:h.className,labelClassName:h.labelClassName,contentClassName:h.contentClassName,spacingBetweenItemAndLabel:a,spacingBetweenSubsequentDescriptionItems:i})},m))})})]},f))})};function ay({limit:e=17,doNotShowTooltip:n=!1,arrow:t=!0,data:r="",endAdornment:o="",startAdornment:i="",styleOverrides:a={}}){return B.jsx(B.Fragment,{children:r&&typeof r=="string"&&r.length>e&&!n?B.jsx(xD,{title:r??"",arrow:t,children:B.jsx("span",{style:a,children:i+r.substring(0,e)+".."+o})}):i+r+o})}function uF(e){return iF({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"},child:[]}]})(e)}const Vfe=()=>{const[e,n]=V.useState(void 0);return{imageURL:e,setImageURL:n,ImageViewer:()=>B.jsx(cee,{maxWidth:"lg",onClose:()=>n(void 0),open:!!e,children:B.jsx("img",{style:{maxHeight:600,maxWidth:800,objectFit:"contain"},src:e,alt:""})})}},zfe=()=>{const e=V.useRef(null),[n,t]=V.useState(void 0);return V.useEffect(()=>{var o;n&&((o=e.current)==null||o.click(),t(void 0))},[n]),{pdfURL:n,setPdfURL:t,PdfViewer:()=>B.jsx("a",{ref:e,style:{display:"none"},target:"_blank",href:n})}};var dF={},Edt=ga;Object.defineProperty(dF,"__esModule",{value:!0});var yv=dF.default=void 0,Odt=Edt(ys()),Tdt=B;yv=dF.default=(0,Odt.default)((0,Tdt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var pF={},Idt=ga;Object.defineProperty(pF,"__esModule",{value:!0});var fF=pF.default=void 0,Mdt=Idt(ys()),kdt=B;fF=pF.default=(0,Mdt.default)((0,kdt.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image");var hF={},Adt=ga;Object.defineProperty(hF,"__esModule",{value:!0});var Wfe=hF.default=void 0,_dt=Adt(ys()),Rdt=B;Wfe=hF.default=(0,_dt.default)((0,Rdt.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14zm12 0h-7.5l2-2H18z"}),"RateReview");var mF={},Pdt=ga;Object.defineProperty(mF,"__esModule",{value:!0});var $fe=mF.default=void 0,Ddt=Pdt(ys()),Ndt=B;$fe=mF.default=(0,Ddt.default)((0,Ndt.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description");const Fdt=or.object({FEEDBACK_FOR:or.number({required_error:"Please choose employee for feedback!"}),FEEDBACK_TITLE:or.string({required_error:"Please enter feedback title!"}).max(100,{message:"Feedback title must be under 100 characters!"}),FEEDBACK_CONTENT:or.string({required_error:"Please enter feedback content!"}),FILES:or.array(or.any()).default([]),IMAGES:or.array(or.any()).default([]),SKILL_RATING:or.array(or.object({NAME:or.string(),RATING:or.number()})).default([])}),Gfe=e=>{const{open:n,setOpen:t,empCodeKey:r,empIdKey:o,empNameKey:i,empProfileImageKey:a,employee:s}=e,l=Cd(),{pushAlert:c}=gu(),[d,p]=V.useState(!1),[f,h]=V.useState([]),{data:m,isFetching:g}=Xc(zp,{url:c0e,params:{form_id:71}},"fetchCustomFormFields"),{data:v,isFetching:y}=Xc(cd,{url:l0e,data:{formid:12,only_active:1,checkaccess:1,allvalues:1,is_filter:0,AllMasterType:0}},"fetchSearchFields"),{data:x,isFetching:w}=Xc(zp,{url:t0e},"fetchSkillRating",{enabled:!!d,onSuccess:ae=>{var J,ye;(ye=(J=ae==null?void 0:ae.data)==null?void 0:J.data)!=null&&ye.ROWS&&h(ae.data.data.ROWS.map(me=>({value:me.ID,label:me.SKILL_NAME}))||[])}}),{mutate:C,isLoading:b}=tm(cd,"createFeedback",{onSuccess:ae=>{var J;l.invalidateQueries("fetchContinuousFeedbacks"),c({message:((J=ae==null?void 0:ae.data)==null?void 0:J.message)||"Success",type:"success"}),se()},onError:ae=>{var J,ye;c({message:((ye=(J=ae==null?void 0:ae.response)==null?void 0:J.data)==null?void 0:ye.message)||"Error",type:"success"})}}),E=ae=>ae==null?void 0:ae.map(J=>({value:J==null?void 0:J.id,label:J==null?void 0:J.name})),T=V.useMemo(()=>{if(!xi.validateDataType(m,"object")||!xi.validateDataType(v,"object"))return[];for(const ae in m)return Object.keys(m[ae]).map(J=>{var me,Ie,Fe,Pe,ne,te,ie,we;const ye=E(v[((me=m[ae][J])==null?void 0:me.MASTER_TYPE)||((Ie=m[ae][J])==null?void 0:Ie.FIELD_SLUG)||[]]);return{name:(Fe=m[ae][J])==null?void 0:Fe.FIELD_SLUG,type:xi.convertFormMasterTypeToDynamicFormType((Pe=m[ae][J])==null?void 0:Pe.FEILD_TYPE),required:!!((ne=m[ae][J])!=null&&ne.IS_MANDATORY),id:(te=m[ae][J])==null?void 0:te.FIELD_SLUG,label:(ie=m[ae][J])==null?void 0:ie.FIELD_NAME,placeholder:(we=m[ae][J])==null?void 0:we.FIELD_NAME,value:"",menuPosition:"",isClearable:!0,itemLayout:{lg:12,xs:12,md:12,sm:12},options:ye}});return[]},[m,v]),{control:M,watch:k,formState:{errors:A},reset:P,handleSubmit:_,setValue:R}=Nv({resolver:cw(Fdt),mode:"onChange",defaultValues:{FEEDBACK_FOR:s&&(s==null?void 0:s[`${o}`])}}),D=Nv({mode:"onChange"}),{append:j,remove:L}=Fb({name:"IMAGES",control:M}),{append:$,remove:H}=Fb({name:"FILES",control:M}),{append:Y,remove:X}=Fb({name:"SKILL_RATING",control:M}),[Z,ee,Q,U]=k(["FEEDBACK_TITLE","SKILL_RATING","FILES","IMAGES"]),K=_(async({IMAGES:ae,FILES:J,...ye})=>{var ne;if(!await D.trigger())return;const me=JSON.stringify(D.getValues()),Ie=[...J,...ae],Fe={...ye,FILES:Ie,CUSTOM_FORM:me,SEND_EMAIL:1,HAS_SKILLS:!!((ne=ye.SKILL_RATING)!=null&&ne.length)},Pe=xi.convertToFormData(Fe);C({url:r0e,data:Pe})}),re=ae=>{h(f.filter(({value:J})=>J!==(ae==null?void 0:ae.value))),Y({NAME:ae.label,RATING:0})},ue=(ae,J)=>{const ye=x.ROWS.find(me=>me.SKILL_NAME===ae);ye&&(h(me=>[...me,{value:ye==null?void 0:ye.ID,label:ye==null?void 0:ye.SKILL_NAME}]),X(J))},he=ae=>{const J=ae.target.files;if(!(!J||!J.length))for(const ye of J)j(ye)},ve=ae=>{Q.length>0&&c({message:"You can only add upto 10 maximum files",type:"error"});const J=ae.target.files;if(!(!J||!J.length))for(const ye of J)$(ye)},se=()=>(t(!1),P(),D.reset());return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:b||g||y||w}),B.jsx(_fe,{title:B.jsxs(yt,{display:"flex",justifyContent:"start",alignItems:"center",gap:2,children:[B.jsx(Wfe,{}),B.jsx(bi,{fontWeight:600,children:"Continuous Feedback"})]}),open:n,handleClose:se,children:B.jsxs(B.Fragment,{children:[B.jsxs(yt,{display:"flex",height:"calc(100vh - 100px)",children:[B.jsxs("div",{className:"w-100",style:{gap:"10px",padding:"1.5rem",overflow:"auto",flex:7.5},children:[B.jsxs(yt,{display:"flex",className:"w-100",children:[B.jsx(bi,{mt:1,children:"Feedback for: "}),s?B.jsxs("div",{className:It.schedule__employee,children:[B.jsx(pc,{sx:{height:30,width:30},src:(s==null?void 0:s[`${a}`])??`https://robohash.org/${s==null?void 0:s[`${i}`]}`}),B.jsxs("span",{children:[(s==null?void 0:s[`${i}`])??"--"," ",(s==null?void 0:s[`${r}`])??"--"]})]}):B.jsx("div",{className:It.schedule__employee_search,children:B.jsxs(yt,{display:"flex",flexDirection:"column",gap:1,children:[B.jsx(PD,{searchKey:"search",endpoint:EQ,reqParams:{search_for:"appreciation",search:""},optionValueKey:"EMPLOYEE_ID",optionTitleFn:ae=>`${(ae==null?void 0:ae.EMPLOYEE_NAME)||"--"} (${ae.EMPLOYEE_CODE||"--"})`,inputPlaceHolder:"Choose Employee",onChange:({value:ae})=>R("FEEDBACK_FOR",ae)}),!!(A!=null&&A.FEEDBACK_FOR)&&B.jsxs("div",{className:It.form_error,style:{float:"left",marginTop:0},children:[B.jsx(td,{}),B.jsx("p",{children:A.FEEDBACK_FOR.message})]})]})})]}),B.jsxs(yt,{sx:{pt:2,pb:1,display:"flex"},className:"flex-column g-10",children:[B.jsx(yt,{children:B.jsxs(E1,{variant:"outlined",style:{height:"auto"},className:"w-100 ",children:[B.jsx(Ta,{name:"FEEDBACK_TITLE",control:M,render:({field:{value:ae,onChange:J,onBlur:ye,name:me}})=>B.jsx(kJ,{name:me,label:"Feedback Title",color:"secondary",autoComplete:"off",value:ae,onChange:J,onBlur:ye})}),B.jsxs("div",{className:"mt-10",children:[!!(A!=null&&A.FEEDBACK_TITLE)&&B.jsxs("div",{className:It.form_error,style:{float:"left",marginTop:0},children:[B.jsx(td,{}),B.jsx("p",{children:A.FEEDBACK_TITLE.message})]}),B.jsxs("span",{style:{float:"right",color:"#172b4d"},children:[(Z==null?void 0:Z.length)||0,"/100"]})]})]})}),B.jsx(yt,{children:B.jsxs(E1,{variant:"outlined",style:{height:"auto"},className:"w-100 ",children:[B.jsx(Ta,{name:"FEEDBACK_CONTENT",control:M,render:({field:{value:ae,onChange:J,onBlur:ye,name:me}})=>B.jsx(kJ,{name:me,label:"Feedback Content",color:"secondary",autoComplete:"off",style:{height:"auto"},multiline:!0,rows:4,value:ae,onChange:J,onBlur:ye})}),!!(A!=null&&A.FEEDBACK_CONTENT)&&B.jsxs("div",{className:It.form_error,children:[B.jsx(td,{}),B.jsx("p",{children:A==null?void 0:A.FEEDBACK_CONTENT.message})]})]})}),B.jsxs(yt,{className:"w-100",my:1,children:[B.jsx(hD,{style:{marginLeft:"0px"},control:B.jsx(wD,{checked:!!d}),label:"Rate Employee Skills",labelPlacement:"start",onChange:(ae,J)=>p(J)}),!!d&&B.jsxs(B.Fragment,{children:[B.jsx(yt,{width:600,mt:2,children:B.jsx(jx,{onChange:re,placeholder:"Choose Skill",options:f,styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:ae=>({...ae,zIndex:99999999999,width:"600px"}),control:ae=>({...ae,minHeight:"40px",width:"600px"})},menuPortalTarget:document.body})}),!!(ee!=null&&ee.length)&&B.jsxs(B.Fragment,{children:[B.jsxs(Jo,{container:!0,mt:2,children:[B.jsx(Jo,{item:!0,md:4,children:B.jsx(bi,{children:"Skill(s)"})}),B.jsx(Jo,{item:!0,md:4,children:B.jsx(bi,{children:"Rate Skill"})})]}),ee.map((ae,J)=>B.jsxs(Jo,{container:!0,mt:2,alignItems:"center",children:[B.jsx(Jo,{item:!0,md:4,children:B.jsx("div",{className:It.skill__btns,children:B.jsx(ay,{data:ae==null?void 0:ae.NAME,limit:30})})}),B.jsx(Jo,{item:!0,md:4,children:B.jsxs(yt,{className:It.item__centerdirector,children:[B.jsx(fD,{spacing:1,children:B.jsx(yD,{value:ae==null?void 0:ae.RATING,onChange:(ye,me)=>R(`SKILL_RATING.${J}.RATING`,me||0)})}),B.jsx("div",{className:It.closeRatingicon,onClick:()=>ue(ae==null?void 0:ae.NAME,J),children:B.jsx(yv,{})})]})})]},J))]})]})]}),B.jsxs("div",{className:It.footer__upload_assets,children:[B.jsxs("label",{style:{cursor:"pointer",marginRight:"10px"},children:[B.jsx("input",{type:"file",style:{display:"none"},onChange:he,multiple:!0,accept:"image/png , image/jpeg, image/webp"}),B.jsx("span",{children:B.jsx(fF,{})})]}),B.jsxs("label",{style:{cursor:"pointer"},children:[B.jsx("input",{id:"fileUpload",type:"file",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:ve,disabled:(Q==null?void 0:Q.length)>10,style:{display:"none"}}),B.jsx("span",{children:B.jsx($fe,{})})]})]}),(U==null?void 0:U.length)>0&&B.jsx(yt,{className:It.main__upload__box,children:U.map((ae,J)=>B.jsxs(yt,{className:It.all__upload__images,children:[B.jsx("img",{src:URL.createObjectURL(ae),height:"200",alt:"upload"}),B.jsx("button",{onClick:()=>L(J),children:B.jsx(yv,{style:{width:"20px",height:"20px"}})})]},J))}),(Q==null?void 0:Q.length)>0&&B.jsx(yt,{className:It.main__upload__box,children:Q.map((ae,J)=>B.jsxs(yt,{className:It.pdfView__preview,children:[B.jsx(yt,{style:{marginRight:"10px"},children:B.jsx("p",{children:B.jsx(uF,{size:22,color:"red"})})}),B.jsx(yt,{children:B.jsx("p",{children:B.jsx(ay,{data:ae==null?void 0:ae.name,limit:20})})}),B.jsx("button",{onClick:()=>H(J),children:B.jsx(yv,{style:{width:"20px",height:"20px"}})})]},J))})]})]}),!!T.length&&B.jsxs(B.Fragment,{children:[B.jsx(pD,{orientation:"vertical",flexItem:!0}),B.jsx("div",{style:{gap:"10px",padding:"1.5rem",overflow:"auto",flex:3.5},children:B.jsx(Rct,{containerLayout:{xs:12,sm:12,md:12,lg:12},containerSpacing:3,control:D.control,register:D.register,errors:D.formState.errors,fields:T})})]})]}),B.jsxs(yt,{gap:2,position:"absolute",right:0,display:"flex",justifyContent:"flex-end",alignItems:"center",style:{paddingRight:"1.5rem"},children:[B.jsx(Gs,{disableElevation:!0,variant:"outlined",size:"small",onClick:se,label:"Cancel"}),B.jsx(Gs,{disableElevation:!0,variant:"contained",color:"primary",size:"small",onClick:K,label:"Submit"})]})]})})]})},jdt=e=>{const{CONCERN:n,employee_id:t}=e,{setImageURL:r,ImageViewer:o}=Vfe(),{setPdfURL:i,PdfViewer:a}=zfe(),{FEEDBACK_TABS:s,MONTH_FILTERS_OPTIONS:l}=Fy("en"),{session:{user:c,AWS_S3_READ_URL:d}}=mu(),[p,f]=V.useState(!1),[{FEEDBACK_TYPE:h,MONTH_FILTER:m,SEARCH:g},v]=V.useState({FEEDBACK_TYPE:"received",MONTH_FILTER:l[1],SEARCH:void 0}),{data:y,isFetching:x}=Xc(zp,{url:n0e,params:{FEEDBACK_TYPE:h,MONTH_FILTER:m==null?void 0:m.value,SEARCH:g,CONCERN:n,employee_id:t}},"fetchContinuousFeedbacks"),w=V.useCallback(C=>{const b=typeof(C==null?void 0:C.CUSTOM_FORM)=="string"?JSON.parse(C==null?void 0:C.CUSTOM_FORM):"";return b?[{title:"Additional Details",items:Object.entries(b).map(([E,T])=>({label:xi.toTitleCase(String(E).split("_").join(" ")),content:E!=null&&E.includes("DATE")?xi.getFormatedDate(T,c==null?void 0:c.ng_date_str):T,xs:12,sm:6,md:6,lg:4}))}]:[]},[]);return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:x}),B.jsxs(yt,{className:It.overview__container__bg,style:{overflow:"hidden"},children:[B.jsxs(yt,{display:"flex",justifyContent:"space-between",children:[B.jsxs(yt,{display:"flex",gap:2,flexDirection:"row",children:[B.jsx(rF,{styleOverrides:{margin:0,height:40},placeholder:"Search",debounceDelay:500,getSearch:C=>v(b=>({...b,SEARCH:C}))}),B.jsx("div",{style:{width:200},children:B.jsx(jx,{value:m,options:l,placeholder:"Month",onChange:C=>v(b=>({...b,MONTH_FILTER:C})),controlStyles:{width:200},styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:C=>({...C,zIndex:99999999999,width:"200px"}),control:C=>({...C,minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),B.jsxs(yt,{gap:2,display:"flex",justifyContent:"flex-end",alignItems:"center",children:[B.jsx(ED,{items:s,value:h,onChangeTab:(C,b)=>v(E=>({...E,FEEDBACK_TYPE:b}))}),!t&&B.jsx(Gs,{disableElevation:!0,label:"GIVE FEEDBACK",color:"secondary",onClick:()=>f(!0)})]})]}),B.jsx(yt,{className:"continuous__feedback__list",children:y&&y.length>0?y.map((C,b)=>{var T,M,k,A,P;const E=(T=C==null?void 0:C.FEEDBACK_CONTENT)==null?void 0:T.split(`
|
|
3096
|
-
`);return B.jsxs(yt,{className:It.feedback__rating,children:[B.jsxs("div",{className:"flex-between-center w-100",children:[B.jsxs("div",{className:"flex-start-center",children:[B.jsx(pc,{alt:"",sx:{width:32,height:32,marginRight:"10px"},src:(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE_PROFILE_IMAGE)||`https://robohash.org/${C==null?void 0:C.FEEDBACK_BY_EMPLOYEE}`}),B.jsxs("div",{children:[B.jsx("h4",{style:{margin:0},children:(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE)||"--"}),B.jsxs("p",{style:{padding:"0px",margin:"5px 0px 0px 0px",fontSize:"12px",color:"#615E69"},children:[(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE_DESIGNATION)||"",B.jsx("span",{children:B.jsx(kb,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE_DEPARTMENT)||"",B.jsx("span",{children:B.jsx(kb,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE_LOCATION)||""]})]})]}),B.jsx(xD,{title:"Feedback For",children:B.jsxs("div",{className:"flex-end-center",children:[B.jsx(pc,{sx:{width:32,height:32,marginRight:"10px"},src:(C==null?void 0:C.FEEDBACK_FOR_PROFILE_IMAGE)||`https://robohash.org/${(C==null?void 0:C.FEEDBACK_FOR_EMPLOYEE)??"--"}`,alt:""}),B.jsxs("div",{children:[B.jsx("h4",{children:(C==null?void 0:C.FEEDBACK_FOR_EMPLOYEE)??"--"}),B.jsxs("p",{style:{padding:"0px",margin:"5px 0px 0px 0px",fontSize:"12px",color:"#615E69"},children:[(C==null?void 0:C.FEEDBACK_FOR_DESIGNATION)??"--",B.jsx("span",{children:B.jsx(kb,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(C==null?void 0:C.FEEDBACK_FOR_DEPARTMENT)??"--",B.jsx("span",{children:B.jsx(kb,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(C==null?void 0:C.FEEDBACK_FOR_LOCATION)??"--"]})]})]})})]}),B.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"5px",marginTop:20},children:[B.jsx("span",{style:{fontSize:"14px",fontWeight:"400",lineHeight:"20px"},children:"Feedback Title"}),B.jsx("span",{style:{fontSize:"14px",fontWeight:"600",lineHeight:"24px"},children:C==null?void 0:C.FEEDBACK_TITLE})]}),B.jsxs(yt,{className:"mt-10",children:[B.jsx("span",{style:{fontSize:"14px",fontWeight:"400",lineHeight:"20px"},children:"Feedback Content"}),B.jsx("div",{style:{width:"100%"},children:E==null?void 0:E.map((_,R)=>B.jsx("p",{style:{width:"100%"},children:B.jsx("span",{style:{fontSize:"14px",fontWeight:"600",lineHeight:"24px"},children:_})},R))})]}),B.jsx(Sdt,{descriptionsArray:w(C),spacingBetweenDescriptions:"32px",spacingBetweenDescriptionTitleAndItems:"18px",spacingBetweenSubsequentDescriptionItems:"10px",spacingBetweenItemAndLabel:"6px"}),(C==null?void 0:C.FEEDBACK_RATINGS)&&(C==null?void 0:C.FEEDBACK_RATINGS.length)>0&&((M=C==null?void 0:C.FEEDBACK_RATINGS)==null?void 0:M.map((_,R)=>B.jsxs(Jo,{container:!0,mt:2,children:[B.jsx(Jo,{item:!0,md:3,children:B.jsx("div",{className:It.skill__btns,children:B.jsx(ay,{data:_==null?void 0:_.NAME,limit:25})})}),B.jsx(Jo,{item:!0,md:3,children:B.jsx(yt,{className:It.item__centerdirector,children:B.jsx(yD,{name:"read-only",value:_==null?void 0:_.RATING,readOnly:!0})})})]},R))),(C==null?void 0:C.FEEDBACK_ATTACHMENTS)&&(C==null?void 0:C.FEEDBACK_ATTACHMENTS.length)>0&&B.jsx("div",{className:It.images__structure,children:(k=C==null?void 0:C.FEEDBACK_ATTACHMENTS)==null?void 0:k.map((_,R)=>((_==null?void 0:_.FILE_TYPE)==="pdf"||(_==null?void 0:_.FILE_TYPE)==="xls")&&B.jsxs(yt,{className:It.pdfView__preview,children:[B.jsx(yt,{style:{marginRight:"10px"},alignContent:"center",children:(_==null?void 0:_.FILE_TYPE)==="pdf"?B.jsx(uF,{size:22,color:"red"}):B.jsx(lF,{style:{width:"30px"}})}),B.jsxs(yt,{children:[B.jsx("p",{children:B.jsx(ay,{data:_==null?void 0:_.FILE_NAME,limit:20})}),B.jsx("div",{className:It.previeww__color,onClick:()=>i(`${d}/${_==null?void 0:_.FILE_PATH}`),children:"Preview"})]})]},R))}),((A=C==null?void 0:C.FEEDBACK_ATTACHMENTS)==null?void 0:A.length)>0&&B.jsx("div",{className:It.images__structure,children:(P=C==null?void 0:C.FEEDBACK_ATTACHMENTS)==null?void 0:P.map((_,R)=>((_==null?void 0:_.FILE_TYPE)==="png"||(_==null?void 0:_.FILE_TYPE)==="jpeg"||(_==null?void 0:_.FILE_TYPE)==="webp"||(_==null?void 0:_.FILE_TYPE)==="jpg")&&B.jsx("img",{style:{cursor:"zoom-in"},src:`${d}/${_==null?void 0:_.FILE_PATH}`,onClick:()=>r(`${d}/${_==null?void 0:_.FILE_PATH}`)},R))}),B.jsxs("div",{className:"w-100 flex-end-center g-5",style:{color:"slategray",fontSize:"0.75rem"},children:[B.jsx(PI,{sx:{width:"1rem",height:"1rem"}}),B.jsxs("div",{children:[xi.getFormatedDate(C==null?void 0:C.CREATED_ON,c==null?void 0:c.ng_date_str)||"--"," "]})]})]},b)}):B.jsx(iE,{message:"No continuous feedback found"})})]}),p&&B.jsx(Gfe,{open:p,setOpen:f}),B.jsx(a,{}),B.jsx(o,{})]})};var gF={},Ldt=ga;Object.defineProperty(gF,"__esModule",{value:!0});var Hfe=gF.default=void 0,Bdt=Ldt(ys()),Vdt=B;Hfe=gF.default=(0,Bdt.default)((0,Vdt.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"}),"Phone");var vF={},zdt=ga;Object.defineProperty(vF,"__esModule",{value:!0});var yF=vF.default=void 0,Wdt=zdt(ys()),BJ=B;yF=vF.default=(0,Wdt.default)([(0,BJ.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,BJ.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bF={},$dt=ga;Object.defineProperty(bF,"__esModule",{value:!0});var Yfe=bF.default=void 0,Gdt=$dt(ys()),Hdt=B;Yfe=bF.default=(0,Gdt.default)((0,Hdt.jsx)("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline");function Ydt(e){return iF({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.534 4.466c1.024 0 2.05.39 2.829 1.169 1.561 1.561 1.561 4.098 0 5.656l-7.071 7.072c-.778.779-1.804 1.17-2.828 1.17s-2.049-.391-2.828-1.17c-1.56-1.559-1.56-4.098 0-5.656l.807-.807c-.004.805.25 1.524.701 2.125l-.094.096c-.78.779-.78 2.049 0 2.828.39.39.901.584 1.414.584s1.024-.195 1.414-.584l2.535-2.535 4.537-4.537c.778-.779.778-2.049 0-2.828-.392-.39-.904-.584-1.417-.584-.512 0-1.023.195-1.413.584l-4.535 4.537c-.128.127-.146.275-.146.354 0 .076.019.226.146.353.099.099.228.147.356.147.127 0 .254-.049.352-.146l2.122-2.121 1.414-1.414c.392.392.586.902.586 1.414 0 .511-.194 1.021-.584 1.41l-2.124 2.125c-.486.487-1.127.729-1.768.729s-1.28-.244-1.769-.729c-.472-.474-.731-1.101-.731-1.769 0-.67.261-1.297.732-1.77l4.534-4.535c.779-.779 1.805-1.168 2.829-1.168m0-2c-1.604 0-3.11.623-4.242 1.755l-7.069 7.073c-1.133 1.131-1.757 2.638-1.757 4.242s.624 3.11 1.757 4.243c1.131 1.132 2.639 1.755 4.241 1.755s3.11-.624 4.242-1.757l7.071-7.071c1.133-1.131 1.757-2.638 1.757-4.242 0-1.603-.623-3.11-1.755-4.241-1.133-1.134-2.64-1.757-4.245-1.757z"},child:[]}]})(e)}var xF={},Xdt=ga;Object.defineProperty(xF,"__esModule",{value:!0});var Xfe=xF.default=void 0,Zdt=Xdt(ys()),Udt=B;Xfe=xF.default=(0,Zdt.default)((0,Udt.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile");const qdt=or.object({TEXT:or.string({required_error:"Please enter meeting remark!"}),FILES:or.array(or.any()).default([]),IMAGES:or.array(or.any()).default([]),VISIBLE_TO:or.number().default(0)});var wF={},Jdt=ga;Object.defineProperty(wF,"__esModule",{value:!0});var Zfe=wF.default=void 0,Qdt=Jdt(ys()),VJ=B;Zfe=wF.default=(0,Qdt.default)([(0,VJ.jsx)("path",{d:"m4 8 8 5 8-5v2h2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h12v-2H4zm16-2-8 5-8-5z"},"0"),(0,VJ.jsx)("path",{d:"M23 15v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-3 0v-1c0-.55.45-1 1-1s1 .45 1 1v1z"},"1")],"MailLockOutlined");const Kdt=kt(aD)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),ept=e=>{var X,Z,ee,Q,U,K,re,ue,he,ve,se,ae,J,ye,me,Ie,Fe,Pe,ne,te,ie,we;const{meetingId:n,setMeetingId:t,setReScheduleModalMeetingId:r}=e,o=Cd(),i=gu(pe=>pe.pushAlert),{session:{user:a,AWS_S3_READ_URL:s}}=mu(),{ImageViewer:l,setImageURL:c}=Vfe(),{PdfViewer:d,setPdfURL:p}=zfe(),{ONE_TO_ONE_MEDIUM_TYPES:f}=Fy("en"),{data:h,isFetching:m}=Xc(zp,{url:`${OQ}/${n}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!n}),{mutate:g,isLoading:v}=tm(cd,"completeOneToOne",{onSuccess:()=>{o.invalidateQueries("fetchMeetings"),o.invalidateQueries("fetchOneToOneDetails"),t(void 0),i({message:"Meeting has been completed successfully!",type:"success"})},onError:pe=>{var Oe,Re;i({message:((Re=(Oe=pe==null?void 0:pe.response)==null?void 0:Oe.data)==null?void 0:Re.message)||"Error! while completing the one to one!",type:"error"})}}),{mutate:y,isLoading:x}=tm(cd,"createOneToOneRemark",{onSuccess:pe=>{var Oe;o.invalidateQueries("fetchOneToOneDetails"),i({message:((Oe=pe==null?void 0:pe.data)==null?void 0:Oe.message)||"Remark has been created successfully!",type:"success"}),b()},onError:pe=>{var Oe,Re;i({message:((Re=(Oe=pe==null?void 0:pe.response)==null?void 0:Oe.data)==null?void 0:Re.message)||"Error, while creating the remark!",type:"error"})}}),{control:w,watch:C,reset:b,handleSubmit:E}=Nv({resolver:cw(qdt),mode:"onChange"}),{append:T,remove:M}=Fb({name:"IMAGES",control:w}),{append:k,remove:A}=Fb({name:"FILES",control:w}),[P,_,R]=C(["TEXT","FILES","IMAGES"]),D=(pe,Oe,Re)=>{var Me,Be,je,Ce;switch(pe){case Go.SHEDULE_BY_WITH_OUTSIDE:return Oe===(a==null?void 0:a.employee_id)||Re===(a==null?void 0:a.employee_id);case Go.SHEDULE_BY_WITH:return((Me=h==null?void 0:h.meetingDetails)==null?void 0:Me.SCHEDULE_BY_ID)===(a==null?void 0:a.employee_id)||((Be=h==null?void 0:h.meetingDetails)==null?void 0:Be.SCHEDULE_WITH_ID)===(a==null?void 0:a.employee_id);case Go.SHEDULE_BY:return((je=h==null?void 0:h.meetingDetails)==null?void 0:je.SCHEDULE_BY_ID)===(a==null?void 0:a.employee_id);case Go.SHEDULE_WITH:return((Ce=h==null?void 0:h.meetingDetails)==null?void 0:Ce.SCHEDULE_WITH_ID)===(a==null?void 0:a.employee_id);default:return!1}},j=pe=>{const Oe=pe.target.files;if(!(!Oe||!Oe.length))for(const Re of Oe)T(Re)},L=pe=>{_.length>0&&i({message:"You can only add upto 10 maximum files",type:"error"});const Oe=pe.target.files;if(!(!Oe||!Oe.length))for(const Re of Oe)k(Re)},$=E(async({IMAGES:pe,FILES:Oe,...Re})=>{const Me=[...Oe,...pe],Be={...Re,FILES:Me,MEETING_ID:n},je=xi.convertToFormData(Be);y({url:s0e,data:je})}),H=()=>{g({url:TQ,data:{MEETING_ID:n,MEETING_STATUS:Lfe.COMPLETED}})},Y=()=>{t(void 0),r(n)};return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:m||v||x}),B.jsx(_fe,{title:B.jsx(bi,{fontWeight:600,children:"Meeting Details"}),open:!!n,handleClose:()=>t(void 0),children:B.jsxs("div",{className:It.meeting__details,children:[B.jsx("div",{className:It.meeting__details__topbox,children:B.jsxs(Jo,{container:!0,children:[B.jsxs(Jo,{item:!0,md:8,children:[B.jsxs("h3",{children:[(X=h==null?void 0:h.meetingDetails)==null?void 0:X.TITLE,B.jsx("span",{style:{color:((Z=h==null?void 0:h.meetingDetails)==null?void 0:Z.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":((ee=h==null?void 0:h.meetingDetails)==null?void 0:ee.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:(Q=h==null?void 0:h.meetingDetails)==null?void 0:Q.DISPLAY_MEETING_STATUS})]}),B.jsx("p",{className:It.meeting_desc,children:(U=h==null?void 0:h.meetingDetails)==null?void 0:U.DESCRIPTION}),B.jsxs("div",{className:It.bottom_create_loaction,children:[B.jsxs("p",{children:["Created by: ",B.jsxs("span",{children:[((K=h==null?void 0:h.meetingDetails)==null?void 0:K.SCHEDULE_BY)??"--"," (",((re=h==null?void 0:h.meetingDetails)==null?void 0:re.SCHEDULE_BY_EMPLOYEE_CODE)??"--",")"]})]}),B.jsxs("p",{children:["Created on: ",B.jsx("span",{children:((ue=h==null?void 0:h.meetingDetails)==null?void 0:ue.CREATED_DATE)??"--"}),",",B.jsx("span",{children:((he=h==null?void 0:h.meetingDetails)==null?void 0:he.CREATED_TIME)??"--"})]}),B.jsxs("p",{children:["Medium: ",B.jsx("span",{children:((ve=h==null?void 0:h.meetingDetails)==null?void 0:ve.MEDIUM)??"--"})]}),B.jsxs("p",{children:[(ae=f[(se=h==null?void 0:h.meetingDetails)==null?void 0:se.MEDIUM_ID])==null?void 0:ae.LABEL,": ",B.jsx("span",{children:((me=h==null?void 0:h.meetingDetails)==null?void 0:me[(ye=f[(J=h==null?void 0:h.meetingDetails)==null?void 0:J.MEDIUM_ID])==null?void 0:ye.COLUMN_NAME])??"--"})]})]})]}),B.jsx(Jo,{item:!0,md:4,style:{textAlign:"right"},children:((Ie=h==null?void 0:h.meetingDetails)==null?void 0:Ie.DISPLAY_MEETING_STATUS)!=="Completed"?B.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"right"},children:[!!D(Go==null?void 0:Go.SHEDULE_BY_WITH)&&B.jsx(Gs,{onClick:Y,label:"Reschedule",color:"secondary",variant:"outlined"}),!!D(Go==null?void 0:Go.SHEDULE_BY)&&B.jsx(Gs,{onClick:H,label:"Mark As Complete",color:"secondary"})]}):null})]})}),B.jsxs("div",{className:It.date__time__box,children:[B.jsxs("p",{children:[B.jsx("span",{children:B.jsx(PI,{})}),(Fe=h==null?void 0:h.meetingDetails)==null?void 0:Fe.DATE]}),B.jsxs("p",{children:[B.jsx("span",{children:B.jsx(yF,{})}),(Pe=h==null?void 0:h.meetingDetails)==null?void 0:Pe.START_TIME," - ",(ne=h==null?void 0:h.meetingDetails)==null?void 0:ne.END_TIME]})]}),B.jsxs("div",{className:It.connected__meeting,children:[B.jsx("span",{style:{marginRight:"5px"},children:B.jsx(Yfe,{})}),"Conducted with:",B.jsxs("span",{style:{marginLeft:"5px"},children:[(te=h==null?void 0:h.meetingDetails)==null?void 0:te.SCHEDULE_WITH," (",((ie=h==null?void 0:h.meetingDetails)==null?void 0:ie.SCHEDULE_WITH_EMPLOYEE_CODE)??"--",")"]})]}),B.jsxs("div",{className:It.remark__container,children:[!!(h!=null&&h.meetingRemark.length)&&((we=h==null?void 0:h.meetingRemark)==null?void 0:we.map((pe,Oe)=>{var Re,Me,Be;return((pe==null?void 0:pe.DISPLAY_VISIBLE_TO)==="Visible to me"&&!D(Go==null?void 0:Go.SHEDULE_WITH)||(pe==null?void 0:pe.DISPLAY_VISIBLE_TO)==="Visible to All")&&B.jsx("div",{className:It.remarks__meeting,children:B.jsxs("div",{style:{marginBottom:"20px"},children:[B.jsxs("h4",{children:["Remarks",D(Go==null?void 0:Go.SHEDULE_BY)&&B.jsxs("span",{children:[B.jsx(Zfe,{sx:{height:"20px",width:"20px",marginRight:"5px"}})," ",(pe==null?void 0:pe.DISPLAY_VISIBLE_TO)||"Visible to "]})]}),B.jsx("p",{children:pe==null?void 0:pe.TEXT}),B.jsx("div",{className:It.images__structure,children:(pe==null?void 0:pe.REMARK_ATTACHMENTS)&&((Re=pe==null?void 0:pe.REMARK_ATTACHMENTS)==null?void 0:Re.map(je=>B.jsx(B.Fragment,{children:(je==null?void 0:je.FILE_TYPE)==="pdf"||(je==null?void 0:je.FILE_TYPE)==="xls"?B.jsxs(yt,{className:It.pdfView__preview,children:[B.jsx(yt,{mr:1,display:"flex",alignItems:"center",children:(je==null?void 0:je.FILE_TYPE)==="pdf"?B.jsx(Ydt,{size:18}):B.jsx(lF,{style:{width:"30px"}})}),B.jsxs(yt,{children:[B.jsx("p",{children:B.jsx(ay,{data:je==null?void 0:je.FILE_NAME,limit:20})}),B.jsx("div",{className:It.previeww__color,onClick:()=>p(`${s}/${je==null?void 0:je.FILE_PATH}`),children:"Preview"})]})]}):null})))}),B.jsx("div",{className:It.images__structure,children:(pe==null?void 0:pe.REMARK_ATTACHMENTS)&&((Me=pe==null?void 0:pe.REMARK_ATTACHMENTS)==null?void 0:Me.map(je=>B.jsx(B.Fragment,{children:(je==null?void 0:je.FILE_TYPE)==="png"||(je==null?void 0:je.FILE_TYPE)==="jpeg"||(je==null?void 0:je.FILE_TYPE)==="webp"||(je==null?void 0:je.FILE_TYPE)==="jpg"?B.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>c(`${s}/${je==null?void 0:je.FILE_PATH}`),alt:"",src:`${s}/${je==null?void 0:je.FILE_PATH}`,width:200}):null})))}),B.jsxs("div",{className:It.comment__users__meeting,children:[B.jsx(pc,{alt:"",sx:{width:22,height:22,marginRight:"10px"},src:((Be=pe==null?void 0:pe.remark_auther)==null?void 0:Be.profileSrc)||`https://robohash.org/${pe==null?void 0:pe.CREATED_BY}`}),pe==null?void 0:pe.CREATED_BY," ",B.jsx("span",{children:pe==null?void 0:pe.CREATED_DATE}),B.jsx("span",{children:pe==null?void 0:pe.CREATED_TIME})]})]})},Oe)})),D(Go==null?void 0:Go.SHEDULE_BY_WITH)&&B.jsxs("div",{className:It.editor__remarks,children:[B.jsx(Ta,{control:w,name:"TEXT",render:({field:{value:pe,onChange:Oe,onBlur:Re}})=>B.jsx(Kdt,{placeholder:"Type your remarks",value:pe,onChange:Me=>Oe(Me.target.value),onBlur:Re})}),B.jsx(yt,{className:It.main__upload__box,mx:2,children:R==null?void 0:R.map((pe,Oe)=>B.jsxs(yt,{className:It.all__upload__images,children:[B.jsx("img",{src:URL.createObjectURL(pe),height:"200",alt:"upload"}),B.jsx("button",{onClick:()=>M(Oe),children:B.jsx(yv,{style:{width:"20px",height:"20px"}})})]},pe))}),B.jsx(yt,{className:It.main__upload__box,mx:2,children:_==null?void 0:_.map((pe,Oe)=>B.jsxs(yt,{className:It.pdfView__preview,children:[B.jsx(yt,{style:{marginRight:"10px"},children:B.jsx("p",{children:B.jsx(uF,{size:22,color:"red"})})}),B.jsx(yt,{children:B.jsx("p",{children:B.jsx(ay,{data:pe==null?void 0:pe.name,limit:20})})}),B.jsx("button",{onClick:()=>A(Oe),children:B.jsx(yv,{style:{width:"20px",height:"20px"}})})]}))}),B.jsxs("div",{className:It.editor__bottom,children:[B.jsxs(yt,{display:"flex",gap:1,children:[B.jsxs("label",{style:{cursor:"pointer"},children:[B.jsx("input",{type:"file",style:{display:"none"},onChange:j,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),B.jsx("span",{children:B.jsx(fF,{})})]}),B.jsxs("label",{style:{cursor:"pointer"},children:[B.jsx("input",{id:"fileUpload",type:"file",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:L,disabled:(_==null?void 0:_.length)>10,style:{display:"none"}}),B.jsx("span",{children:B.jsx(Xfe,{})})]})]}),B.jsxs(yt,{display:"flex",justifyContent:"start",children:[D(Go==null?void 0:Go.SHEDULE_BY)&&B.jsx(Ta,{control:w,name:"VISIBLE_TO",render:({field:{value:pe,onChange:Oe}})=>B.jsx(hD,{style:{marginRight:"20px"},control:B.jsx(wD,{checked:!!pe}),label:"Show to employee",labelPlacement:"start",onChange:(Re,Me)=>(Oe(+Me),Re)})}),B.jsx(Afe,{onClick:$,disabled:!P||(P==null?void 0:P.length)===0,sx:{backgroundColor:a==null?void 0:a.PRODUCT_THEME_COLOR,height:"40px"},color:"secondary",label:"send"})]})]})]})]})]})}),B.jsx(l,{}),B.jsx(d,{})]})};var CF={},tpt=ga;Object.defineProperty(CF,"__esModule",{value:!0});var SF=CF.default=void 0,npt=tpt(ys()),rpt=B;SF=CF.default=(0,npt.default)((0,rpt.jsx)("path",{d:"M20 2h-8C6.38 2 2 6.66 2 12.28 2 17.5 6.49 22 11.72 22 17.39 22 22 17.62 22 12V4c0-1.1-.9-2-2-2m-3 13-3-2v2H7V9h7v2l3-2z"}),"Duo");//! moment.js
|
|
3095
|
+
*/(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)n.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Bfe);var wdt=Bfe.exports;const D5=nT(wdt),Io={"custom-descriptions":"_custom-descriptions_17b5o_1","custom-descriptions-bordered":"_custom-descriptions-bordered_17b5o_6","custom-descriptions-title":"_custom-descriptions-title_17b5o_10","custom-descriptions-view":"_custom-descriptions-view_17b5o_17","custom-descriptions-item":"_custom-descriptions-item_17b5o_21","custom-descriptions-item-label":"_custom-descriptions-item-label_17b5o_25","custom-descriptions-item-content":"_custom-descriptions-item-content_17b5o_34"},Cdt=({label:e,content:n,className:t,labelClassName:r,contentClassName:o,spacingBetweenItemAndLabel:i,spacingBetweenSubsequentDescriptionItems:a,formatter:s})=>B.jsxs(yt,{sx:{marginBottom:a||""},className:D5(Io==null?void 0:Io["custom-descriptions-item"],t),children:[B.jsx(yt,{className:D5(Io==null?void 0:Io["custom-descriptions-item-label"],r),children:e}),B.jsx(yt,{sx:{marginTop:i||""},className:D5(Io==null?void 0:Io["custom-descriptions-item-content"],o),children:typeof s=="function"?s(n):n??"--"})]}),Sdt=({bordered:e=!1,layout:n,className:t,spacingBetweenDescriptions:r,spacingBetweenDescriptionTitleAndItems:o,spacingBetweenSubsequentDescriptionItems:i,spacingBetweenItemAndLabel:a,descriptionsArray:s})=>{const l=Io==null?void 0:Io["custom-descriptions-bordered"],c=(Io==null?void 0:Io[`custom-descriptions-${n}`])??"",d=D5(Io==null?void 0:Io["custom-descriptions"],{[l]:e,[c]:n},t);return B.jsx(yt,{className:d,children:s.length>0&&s.map((p,f)=>B.jsxs(yt,{sx:{marginTop:r&&f!==0?r:""},children:[p.title&&B.jsx(yt,{sx:{marginBottom:o||""},className:Io==null?void 0:Io["custom-descriptions-title"],children:p.title}),B.jsx(yt,{className:Io==null?void 0:Io["custom-descriptions-view"],children:B.jsx(Jo,{container:!0,children:p.items.map((h,m)=>B.jsx(Jo,{item:!0,xs:h.xs,md:h.md,lg:h.lg,children:B.jsx(Cdt,{label:h.label,content:h.content,formatter:h.formatter,className:h.className,labelClassName:h.labelClassName,contentClassName:h.contentClassName,spacingBetweenItemAndLabel:a,spacingBetweenSubsequentDescriptionItems:i})},m))})})]},f))})};function ay({limit:e=17,doNotShowTooltip:n=!1,arrow:t=!0,data:r="",endAdornment:o="",startAdornment:i="",styleOverrides:a={}}){return B.jsx(B.Fragment,{children:r&&typeof r=="string"&&r.length>e&&!n?B.jsx(xD,{title:r??"",arrow:t,children:B.jsx("span",{style:a,children:i+r.substring(0,e)+".."+o})}):i+r+o})}function uF(e){return iF({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"},child:[]}]})(e)}const Vfe=()=>{const[e,n]=V.useState(void 0);return{imageURL:e,setImageURL:n,ImageViewer:()=>B.jsx(cee,{maxWidth:"lg",onClose:()=>n(void 0),open:!!e,children:B.jsx("img",{style:{maxHeight:600,maxWidth:800,objectFit:"contain"},src:e,alt:""})})}},zfe=()=>{const e=V.useRef(null),[n,t]=V.useState(void 0);return V.useEffect(()=>{var o;n&&((o=e.current)==null||o.click(),t(void 0))},[n]),{pdfURL:n,setPdfURL:t,PdfViewer:()=>B.jsx("a",{ref:e,style:{display:"none"},target:"_blank",href:n})}};var dF={},Edt=ga;Object.defineProperty(dF,"__esModule",{value:!0});var yv=dF.default=void 0,Odt=Edt(ys()),Tdt=B;yv=dF.default=(0,Odt.default)((0,Tdt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var pF={},Idt=ga;Object.defineProperty(pF,"__esModule",{value:!0});var fF=pF.default=void 0,Mdt=Idt(ys()),kdt=B;fF=pF.default=(0,Mdt.default)((0,kdt.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image");var hF={},Adt=ga;Object.defineProperty(hF,"__esModule",{value:!0});var Wfe=hF.default=void 0,_dt=Adt(ys()),Rdt=B;Wfe=hF.default=(0,_dt.default)((0,Rdt.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14zm12 0h-7.5l2-2H18z"}),"RateReview");var mF={},Pdt=ga;Object.defineProperty(mF,"__esModule",{value:!0});var $fe=mF.default=void 0,Ddt=Pdt(ys()),Ndt=B;$fe=mF.default=(0,Ddt.default)((0,Ndt.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description");const Fdt=or.object({FEEDBACK_FOR:or.number({required_error:"Please choose employee for feedback!"}),FEEDBACK_TITLE:or.string({required_error:"Please enter feedback title!"}).max(100,{message:"Feedback title must be under 100 characters!"}),FEEDBACK_CONTENT:or.string({required_error:"Please enter feedback content!"}),FILES:or.array(or.any()).default([]),IMAGES:or.array(or.any()).default([]),SKILL_RATING:or.array(or.object({NAME:or.string(),RATING:or.number()})).default([])}),Gfe=e=>{const{open:n,setOpen:t,empCodeKey:r,empIdKey:o,empNameKey:i,empProfileImageKey:a,employee:s}=e,l=Cd(),{pushAlert:c}=gu(),[d,p]=V.useState(!1),[f,h]=V.useState([]),{data:m,isFetching:g}=Xc(zp,{url:c0e,params:{form_id:71}},"fetchCustomFormFields"),{data:v,isFetching:y}=Xc(cd,{url:l0e,data:{formid:12,only_active:1,checkaccess:1,allvalues:1,is_filter:0,AllMasterType:0}},"fetchSearchFields"),{data:x,isFetching:w}=Xc(zp,{url:t0e},"fetchSkillRating",{enabled:!!d,onSuccess:ae=>{var J,ye;(ye=(J=ae==null?void 0:ae.data)==null?void 0:J.data)!=null&&ye.ROWS&&h(ae.data.data.ROWS.map(me=>({value:me.ID,label:me.SKILL_NAME}))||[])}}),{mutate:C,isLoading:b}=tm(cd,"createFeedback",{onSuccess:ae=>{var J;l.invalidateQueries("fetchContinuousFeedbacks"),c({message:((J=ae==null?void 0:ae.data)==null?void 0:J.message)||"Success",type:"success"}),se()},onError:ae=>{var J,ye;c({message:((ye=(J=ae==null?void 0:ae.response)==null?void 0:J.data)==null?void 0:ye.message)||"Error",type:"success"})}}),E=ae=>ae==null?void 0:ae.map(J=>({value:J==null?void 0:J.id,label:J==null?void 0:J.name})),T=V.useMemo(()=>{if(!xi.validateDataType(m,"object")||!xi.validateDataType(v,"object"))return[];for(const ae in m)return Object.keys(m[ae]).map(J=>{var me,Ie,Fe,Pe,ne,te,ie,we;const ye=E(v[((me=m[ae][J])==null?void 0:me.MASTER_TYPE)||((Ie=m[ae][J])==null?void 0:Ie.FIELD_SLUG)||[]]);return{name:(Fe=m[ae][J])==null?void 0:Fe.FIELD_SLUG,type:xi.convertFormMasterTypeToDynamicFormType((Pe=m[ae][J])==null?void 0:Pe.FEILD_TYPE),required:!!((ne=m[ae][J])!=null&&ne.IS_MANDATORY),id:(te=m[ae][J])==null?void 0:te.FIELD_SLUG,label:(ie=m[ae][J])==null?void 0:ie.FIELD_NAME,placeholder:(we=m[ae][J])==null?void 0:we.FIELD_NAME,value:"",menuPosition:"",isClearable:!0,itemLayout:{lg:12,xs:12,md:12,sm:12},options:ye}});return[]},[m,v]),{control:M,watch:k,formState:{errors:A},reset:P,handleSubmit:_,setValue:R}=Nv({resolver:cw(Fdt),mode:"onChange",defaultValues:{FEEDBACK_FOR:s&&(s==null?void 0:s[`${o}`])}}),D=Nv({mode:"onChange"}),{append:j,remove:L}=Fb({name:"IMAGES",control:M}),{append:$,remove:H}=Fb({name:"FILES",control:M}),{append:Y,remove:X}=Fb({name:"SKILL_RATING",control:M}),[Z,ee,Q,U]=k(["FEEDBACK_TITLE","SKILL_RATING","FILES","IMAGES"]),K=_(async({IMAGES:ae,FILES:J,...ye})=>{var ne;if(!await D.trigger())return;const me=JSON.stringify(D.getValues()),Ie=[...J,...ae],Fe={...ye,FILES:Ie,CUSTOM_FORM:me,SEND_EMAIL:1,HAS_SKILLS:!!((ne=ye.SKILL_RATING)!=null&&ne.length)},Pe=xi.convertToFormData(Fe);C({url:r0e,data:Pe})}),re=ae=>{h(f.filter(({value:J})=>J!==(ae==null?void 0:ae.value))),Y({NAME:ae.label,RATING:0})},ue=(ae,J)=>{const ye=x.ROWS.find(me=>me.SKILL_NAME===ae);ye&&(h(me=>[...me,{value:ye==null?void 0:ye.ID,label:ye==null?void 0:ye.SKILL_NAME}]),X(J))},he=ae=>{const J=ae.target.files;if(!(!J||!J.length))for(const ye of J)j(ye)},ve=ae=>{Q.length>0&&c({message:"You can only add upto 10 maximum files",type:"error"});const J=ae.target.files;if(!(!J||!J.length))for(const ye of J)$(ye)},se=()=>(t(!1),P(),D.reset());return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:b||g||y||w}),B.jsx(_fe,{title:B.jsxs(yt,{display:"flex",justifyContent:"start",alignItems:"center",gap:2,children:[B.jsx(Wfe,{}),B.jsx(bi,{fontWeight:600,children:"Continuous Feedback"})]}),open:n,handleClose:se,children:B.jsxs(B.Fragment,{children:[B.jsxs(yt,{display:"flex",height:"calc(100vh - 100px)",children:[B.jsxs("div",{className:"w-100",style:{gap:"10px",padding:"1.5rem",overflow:"auto",flex:7.5},children:[B.jsxs(yt,{display:"flex",className:"w-100",children:[B.jsx(bi,{mt:1,children:"Feedback for: "}),s?B.jsxs("div",{className:It.schedule__employee,children:[B.jsx(pc,{sx:{height:30,width:30},src:(s==null?void 0:s[`${a}`])??`https://robohash.org/${s==null?void 0:s[`${i}`]}`}),B.jsxs("span",{children:[(s==null?void 0:s[`${i}`])??"--"," ",(s==null?void 0:s[`${r}`])??"--"]})]}):B.jsx("div",{className:It.schedule__employee_search,children:B.jsxs(yt,{display:"flex",flexDirection:"column",gap:1,children:[B.jsx(PD,{searchKey:"search",endpoint:EQ,reqParams:{search_for:"appreciation",search:""},optionValueKey:"EMPLOYEE_ID",optionTitleFn:ae=>`${(ae==null?void 0:ae.EMPLOYEE_NAME)||"--"} (${ae.EMPLOYEE_CODE||"--"})`,inputPlaceHolder:"Choose Employee",onChange:({value:ae})=>R("FEEDBACK_FOR",ae)}),!!(A!=null&&A.FEEDBACK_FOR)&&B.jsxs("div",{className:It.form_error,style:{float:"left",marginTop:0},children:[B.jsx(td,{}),B.jsx("p",{children:A.FEEDBACK_FOR.message})]})]})})]}),B.jsxs(yt,{sx:{pt:2,pb:1,display:"flex"},className:"flex-column g-10",children:[B.jsx(yt,{children:B.jsxs(E1,{variant:"outlined",style:{height:"auto"},className:"w-100 ",children:[B.jsx(Ta,{name:"FEEDBACK_TITLE",control:M,render:({field:{value:ae,onChange:J,onBlur:ye,name:me}})=>B.jsx(kJ,{name:me,label:"Feedback Title",color:"secondary",autoComplete:"off",value:ae,onChange:J,onBlur:ye})}),B.jsxs("div",{className:"mt-10",children:[!!(A!=null&&A.FEEDBACK_TITLE)&&B.jsxs("div",{className:It.form_error,style:{float:"left",marginTop:0},children:[B.jsx(td,{}),B.jsx("p",{children:A.FEEDBACK_TITLE.message})]}),B.jsxs("span",{style:{float:"right",color:"#172b4d"},children:[(Z==null?void 0:Z.length)||0,"/100"]})]})]})}),B.jsx(yt,{children:B.jsxs(E1,{variant:"outlined",style:{height:"auto"},className:"w-100 ",children:[B.jsx(Ta,{name:"FEEDBACK_CONTENT",control:M,render:({field:{value:ae,onChange:J,onBlur:ye,name:me}})=>B.jsx(kJ,{name:me,label:"Feedback Content",color:"secondary",autoComplete:"off",style:{height:"auto"},multiline:!0,rows:4,value:ae,onChange:J,onBlur:ye})}),!!(A!=null&&A.FEEDBACK_CONTENT)&&B.jsxs("div",{className:It.form_error,children:[B.jsx(td,{}),B.jsx("p",{children:A==null?void 0:A.FEEDBACK_CONTENT.message})]})]})}),B.jsxs(yt,{className:"w-100",my:1,children:[B.jsx(hD,{style:{marginLeft:"0px"},control:B.jsx(wD,{checked:!!d}),label:"Rate Employee Skills",labelPlacement:"start",onChange:(ae,J)=>p(J)}),!!d&&B.jsxs(B.Fragment,{children:[B.jsx(yt,{width:600,mt:2,children:B.jsx(jx,{onChange:re,placeholder:"Choose Skill",options:f,styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:ae=>({...ae,zIndex:99999999999,width:"600px"}),control:ae=>({...ae,minHeight:"40px",width:"600px"})},menuPortalTarget:document.body})}),!!(ee!=null&&ee.length)&&B.jsxs(B.Fragment,{children:[B.jsxs(Jo,{container:!0,mt:2,children:[B.jsx(Jo,{item:!0,md:4,children:B.jsx(bi,{children:"Skill(s)"})}),B.jsx(Jo,{item:!0,md:4,children:B.jsx(bi,{children:"Rate Skill"})})]}),ee.map((ae,J)=>B.jsxs(Jo,{container:!0,mt:2,alignItems:"center",children:[B.jsx(Jo,{item:!0,md:4,children:B.jsx("div",{className:It.skill__btns,children:B.jsx(ay,{data:ae==null?void 0:ae.NAME,limit:30})})}),B.jsx(Jo,{item:!0,md:4,children:B.jsxs(yt,{className:It.item__centerdirector,children:[B.jsx(fD,{spacing:1,children:B.jsx(yD,{value:ae==null?void 0:ae.RATING,onChange:(ye,me)=>R(`SKILL_RATING.${J}.RATING`,me||0)})}),B.jsx("div",{className:It.closeRatingicon,onClick:()=>ue(ae==null?void 0:ae.NAME,J),children:B.jsx(yv,{})})]})})]},J))]})]})]}),B.jsxs("div",{className:It.footer__upload_assets,children:[B.jsxs("label",{style:{cursor:"pointer",marginRight:"10px"},children:[B.jsx("input",{type:"file",style:{display:"none"},onChange:he,multiple:!0,accept:"image/png , image/jpeg, image/webp"}),B.jsx("span",{children:B.jsx(fF,{})})]}),B.jsxs("label",{style:{cursor:"pointer"},children:[B.jsx("input",{id:"fileUpload",type:"file",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:ve,disabled:(Q==null?void 0:Q.length)>10,style:{display:"none"}}),B.jsx("span",{children:B.jsx($fe,{})})]})]}),(U==null?void 0:U.length)>0&&B.jsx(yt,{className:It.main__upload__box,children:U.map((ae,J)=>B.jsxs(yt,{className:It.all__upload__images,children:[B.jsx("img",{src:URL.createObjectURL(ae),height:"200",alt:"upload"}),B.jsx("button",{onClick:()=>L(J),children:B.jsx(yv,{style:{width:"20px",height:"20px"}})})]},J))}),(Q==null?void 0:Q.length)>0&&B.jsx(yt,{className:It.main__upload__box,children:Q.map((ae,J)=>B.jsxs(yt,{className:It.pdfView__preview,children:[B.jsx(yt,{style:{marginRight:"10px"},children:B.jsx("p",{children:B.jsx(uF,{size:22,color:"red"})})}),B.jsx(yt,{children:B.jsx("p",{children:B.jsx(ay,{data:ae==null?void 0:ae.name,limit:20})})}),B.jsx("button",{onClick:()=>H(J),children:B.jsx(yv,{style:{width:"20px",height:"20px"}})})]},J))})]})]}),!!T.length&&B.jsxs(B.Fragment,{children:[B.jsx(pD,{orientation:"vertical",flexItem:!0}),B.jsx("div",{style:{gap:"10px",padding:"1.5rem",overflow:"auto",flex:3.5},children:B.jsx(Rct,{containerLayout:{xs:12,sm:12,md:12,lg:12},containerSpacing:3,control:D.control,register:D.register,errors:D.formState.errors,fields:T})})]})]}),B.jsxs(yt,{gap:2,position:"absolute",right:0,display:"flex",justifyContent:"flex-end",alignItems:"center",style:{paddingRight:"1.5rem"},children:[B.jsx(Gs,{disableElevation:!0,variant:"outlined",size:"small",onClick:se,label:"Cancel"}),B.jsx(Gs,{disableElevation:!0,variant:"contained",color:"primary",size:"small",onClick:K,label:"Submit"})]})]})})]})},jdt=e=>{const{CONCERN:n,employee_id:t}=e,{setImageURL:r,ImageViewer:o}=Vfe(),{setPdfURL:i,PdfViewer:a}=zfe(),{FEEDBACK_TABS:s,MONTH_FILTERS_OPTIONS:l}=Fy("en"),{session:{user:c,AWS_S3_READ_URL:d}}=mu(),[p,f]=V.useState(!1),[{FEEDBACK_TYPE:h,MONTH_FILTER:m,SEARCH:g},v]=V.useState({FEEDBACK_TYPE:"received",MONTH_FILTER:l[1],SEARCH:void 0}),{data:y,isFetching:x}=Xc(zp,{url:n0e,params:{FEEDBACK_TYPE:h,MONTH_FILTER:m==null?void 0:m.value,SEARCH:g,CONCERN:n,employee_id:t}},"fetchContinuousFeedbacks"),w=V.useCallback(C=>{const b=typeof(C==null?void 0:C.CUSTOM_FORM)=="string"?JSON.parse(C==null?void 0:C.CUSTOM_FORM):"";return b?[{title:"Additional Details",items:Object.entries(b).map(([E,T])=>({label:xi.toTitleCase(String(E).split("_").join(" ")),content:E!=null&&E.includes("DATE")?xi.getFormatedDate(T,c==null?void 0:c.date_str):T,xs:12,sm:6,md:6,lg:4}))}]:[]},[]);return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:x}),B.jsxs(yt,{className:It.overview__container__bg,style:{overflow:"hidden"},children:[B.jsxs(yt,{display:"flex",justifyContent:"space-between",children:[B.jsxs(yt,{display:"flex",gap:2,flexDirection:"row",children:[B.jsx(rF,{styleOverrides:{margin:0,height:40},placeholder:"Search",debounceDelay:500,getSearch:C=>v(b=>({...b,SEARCH:C}))}),B.jsx("div",{style:{width:200},children:B.jsx(jx,{value:m,options:l,placeholder:"Month",onChange:C=>v(b=>({...b,MONTH_FILTER:C})),controlStyles:{width:200},styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:C=>({...C,zIndex:99999999999,width:"200px"}),control:C=>({...C,minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),B.jsxs(yt,{gap:2,display:"flex",justifyContent:"flex-end",alignItems:"center",children:[B.jsx(ED,{items:s,value:h,onChangeTab:(C,b)=>v(E=>({...E,FEEDBACK_TYPE:b}))}),!t&&B.jsx(Gs,{disableElevation:!0,label:"GIVE FEEDBACK",color:"secondary",onClick:()=>f(!0)})]})]}),B.jsx(yt,{className:"continuous__feedback__list",children:y&&y.length>0?y.map((C,b)=>{var T,M,k,A,P;const E=(T=C==null?void 0:C.FEEDBACK_CONTENT)==null?void 0:T.split(`
|
|
3096
|
+
`);return B.jsxs(yt,{className:It.feedback__rating,children:[B.jsxs("div",{className:"flex-between-center w-100",children:[B.jsxs("div",{className:"flex-start-center",children:[B.jsx(pc,{alt:"",sx:{width:32,height:32,marginRight:"10px"},src:(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE_PROFILE_IMAGE)||`https://robohash.org/${C==null?void 0:C.FEEDBACK_BY_EMPLOYEE}`}),B.jsxs("div",{children:[B.jsx("h4",{style:{margin:0},children:(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE)||"--"}),B.jsxs("p",{style:{padding:"0px",margin:"5px 0px 0px 0px",fontSize:"12px",color:"#615E69"},children:[(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE_DESIGNATION)||"",B.jsx("span",{children:B.jsx(kb,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE_DEPARTMENT)||"",B.jsx("span",{children:B.jsx(kb,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(C==null?void 0:C.FEEDBACK_BY_EMPLOYEE_LOCATION)||""]})]})]}),B.jsx(xD,{title:"Feedback For",children:B.jsxs("div",{className:"flex-end-center",children:[B.jsx(pc,{sx:{width:32,height:32,marginRight:"10px"},src:(C==null?void 0:C.FEEDBACK_FOR_PROFILE_IMAGE)||`https://robohash.org/${(C==null?void 0:C.FEEDBACK_FOR_EMPLOYEE)??"--"}`,alt:""}),B.jsxs("div",{children:[B.jsx("h4",{children:(C==null?void 0:C.FEEDBACK_FOR_EMPLOYEE)??"--"}),B.jsxs("p",{style:{padding:"0px",margin:"5px 0px 0px 0px",fontSize:"12px",color:"#615E69"},children:[(C==null?void 0:C.FEEDBACK_FOR_DESIGNATION)??"--",B.jsx("span",{children:B.jsx(kb,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(C==null?void 0:C.FEEDBACK_FOR_DEPARTMENT)??"--",B.jsx("span",{children:B.jsx(kb,{style:{width:"25px",height:"auto",padding:"0px 10px",color:"#D2D1D4"}})}),(C==null?void 0:C.FEEDBACK_FOR_LOCATION)??"--"]})]})]})})]}),B.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"5px",marginTop:20},children:[B.jsx("span",{style:{fontSize:"14px",fontWeight:"400",lineHeight:"20px"},children:"Feedback Title"}),B.jsx("span",{style:{fontSize:"14px",fontWeight:"600",lineHeight:"24px"},children:C==null?void 0:C.FEEDBACK_TITLE})]}),B.jsxs(yt,{className:"mt-10",children:[B.jsx("span",{style:{fontSize:"14px",fontWeight:"400",lineHeight:"20px"},children:"Feedback Content"}),B.jsx("div",{style:{width:"100%"},children:E==null?void 0:E.map((_,R)=>B.jsx("p",{style:{width:"100%"},children:B.jsx("span",{style:{fontSize:"14px",fontWeight:"600",lineHeight:"24px"},children:_})},R))})]}),B.jsx(Sdt,{descriptionsArray:w(C),spacingBetweenDescriptions:"32px",spacingBetweenDescriptionTitleAndItems:"18px",spacingBetweenSubsequentDescriptionItems:"10px",spacingBetweenItemAndLabel:"6px"}),(C==null?void 0:C.FEEDBACK_RATINGS)&&(C==null?void 0:C.FEEDBACK_RATINGS.length)>0&&((M=C==null?void 0:C.FEEDBACK_RATINGS)==null?void 0:M.map((_,R)=>B.jsxs(Jo,{container:!0,mt:2,children:[B.jsx(Jo,{item:!0,md:3,children:B.jsx("div",{className:It.skill__btns,children:B.jsx(ay,{data:_==null?void 0:_.NAME,limit:25})})}),B.jsx(Jo,{item:!0,md:3,children:B.jsx(yt,{className:It.item__centerdirector,children:B.jsx(yD,{name:"read-only",value:_==null?void 0:_.RATING,readOnly:!0})})})]},R))),(C==null?void 0:C.FEEDBACK_ATTACHMENTS)&&(C==null?void 0:C.FEEDBACK_ATTACHMENTS.length)>0&&B.jsx("div",{className:It.images__structure,children:(k=C==null?void 0:C.FEEDBACK_ATTACHMENTS)==null?void 0:k.map((_,R)=>((_==null?void 0:_.FILE_TYPE)==="pdf"||(_==null?void 0:_.FILE_TYPE)==="xls")&&B.jsxs(yt,{className:It.pdfView__preview,children:[B.jsx(yt,{style:{marginRight:"10px"},alignContent:"center",children:(_==null?void 0:_.FILE_TYPE)==="pdf"?B.jsx(uF,{size:22,color:"red"}):B.jsx(lF,{style:{width:"30px"}})}),B.jsxs(yt,{children:[B.jsx("p",{children:B.jsx(ay,{data:_==null?void 0:_.FILE_NAME,limit:20})}),B.jsx("div",{className:It.previeww__color,onClick:()=>i(`${d}/${_==null?void 0:_.FILE_PATH}`),children:"Preview"})]})]},R))}),((A=C==null?void 0:C.FEEDBACK_ATTACHMENTS)==null?void 0:A.length)>0&&B.jsx("div",{className:It.images__structure,children:(P=C==null?void 0:C.FEEDBACK_ATTACHMENTS)==null?void 0:P.map((_,R)=>((_==null?void 0:_.FILE_TYPE)==="png"||(_==null?void 0:_.FILE_TYPE)==="jpeg"||(_==null?void 0:_.FILE_TYPE)==="webp"||(_==null?void 0:_.FILE_TYPE)==="jpg")&&B.jsx("img",{style:{cursor:"zoom-in"},src:`${d}/${_==null?void 0:_.FILE_PATH}`,onClick:()=>r(`${d}/${_==null?void 0:_.FILE_PATH}`)},R))}),B.jsxs("div",{className:"w-100 flex-end-center g-5",style:{color:"slategray",fontSize:"0.75rem"},children:[B.jsx(PI,{sx:{width:"1rem",height:"1rem"}}),B.jsxs("div",{children:[xi.getFormatedDate(C==null?void 0:C.CREATED_ON,c==null?void 0:c.date_str)||"--"," "]})]})]},b)}):B.jsx(iE,{message:"No continuous feedback found"})})]}),p&&B.jsx(Gfe,{open:p,setOpen:f}),B.jsx(a,{}),B.jsx(o,{})]})};var gF={},Ldt=ga;Object.defineProperty(gF,"__esModule",{value:!0});var Hfe=gF.default=void 0,Bdt=Ldt(ys()),Vdt=B;Hfe=gF.default=(0,Bdt.default)((0,Vdt.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"}),"Phone");var vF={},zdt=ga;Object.defineProperty(vF,"__esModule",{value:!0});var yF=vF.default=void 0,Wdt=zdt(ys()),BJ=B;yF=vF.default=(0,Wdt.default)([(0,BJ.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,BJ.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bF={},$dt=ga;Object.defineProperty(bF,"__esModule",{value:!0});var Yfe=bF.default=void 0,Gdt=$dt(ys()),Hdt=B;Yfe=bF.default=(0,Gdt.default)((0,Hdt.jsx)("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline");function Ydt(e){return iF({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.534 4.466c1.024 0 2.05.39 2.829 1.169 1.561 1.561 1.561 4.098 0 5.656l-7.071 7.072c-.778.779-1.804 1.17-2.828 1.17s-2.049-.391-2.828-1.17c-1.56-1.559-1.56-4.098 0-5.656l.807-.807c-.004.805.25 1.524.701 2.125l-.094.096c-.78.779-.78 2.049 0 2.828.39.39.901.584 1.414.584s1.024-.195 1.414-.584l2.535-2.535 4.537-4.537c.778-.779.778-2.049 0-2.828-.392-.39-.904-.584-1.417-.584-.512 0-1.023.195-1.413.584l-4.535 4.537c-.128.127-.146.275-.146.354 0 .076.019.226.146.353.099.099.228.147.356.147.127 0 .254-.049.352-.146l2.122-2.121 1.414-1.414c.392.392.586.902.586 1.414 0 .511-.194 1.021-.584 1.41l-2.124 2.125c-.486.487-1.127.729-1.768.729s-1.28-.244-1.769-.729c-.472-.474-.731-1.101-.731-1.769 0-.67.261-1.297.732-1.77l4.534-4.535c.779-.779 1.805-1.168 2.829-1.168m0-2c-1.604 0-3.11.623-4.242 1.755l-7.069 7.073c-1.133 1.131-1.757 2.638-1.757 4.242s.624 3.11 1.757 4.243c1.131 1.132 2.639 1.755 4.241 1.755s3.11-.624 4.242-1.757l7.071-7.071c1.133-1.131 1.757-2.638 1.757-4.242 0-1.603-.623-3.11-1.755-4.241-1.133-1.134-2.64-1.757-4.245-1.757z"},child:[]}]})(e)}var xF={},Xdt=ga;Object.defineProperty(xF,"__esModule",{value:!0});var Xfe=xF.default=void 0,Zdt=Xdt(ys()),Udt=B;Xfe=xF.default=(0,Zdt.default)((0,Udt.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile");const qdt=or.object({TEXT:or.string({required_error:"Please enter meeting remark!"}),FILES:or.array(or.any()).default([]),IMAGES:or.array(or.any()).default([]),VISIBLE_TO:or.number().default(0)});var wF={},Jdt=ga;Object.defineProperty(wF,"__esModule",{value:!0});var Zfe=wF.default=void 0,Qdt=Jdt(ys()),VJ=B;Zfe=wF.default=(0,Qdt.default)([(0,VJ.jsx)("path",{d:"m4 8 8 5 8-5v2h2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h12v-2H4zm16-2-8 5-8-5z"},"0"),(0,VJ.jsx)("path",{d:"M23 15v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-3 0v-1c0-.55.45-1 1-1s1 .45 1 1v1z"},"1")],"MailLockOutlined");const Kdt=kt(aD)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),ept=e=>{var X,Z,ee,Q,U,K,re,ue,he,ve,se,ae,J,ye,me,Ie,Fe,Pe,ne,te,ie,we;const{meetingId:n,setMeetingId:t,setReScheduleModalMeetingId:r}=e,o=Cd(),i=gu(pe=>pe.pushAlert),{session:{user:a,AWS_S3_READ_URL:s}}=mu(),{ImageViewer:l,setImageURL:c}=Vfe(),{PdfViewer:d,setPdfURL:p}=zfe(),{ONE_TO_ONE_MEDIUM_TYPES:f}=Fy("en"),{data:h,isFetching:m}=Xc(zp,{url:`${OQ}/${n}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!n}),{mutate:g,isLoading:v}=tm(cd,"completeOneToOne",{onSuccess:()=>{o.invalidateQueries("fetchMeetings"),o.invalidateQueries("fetchOneToOneDetails"),t(void 0),i({message:"Meeting has been completed successfully!",type:"success"})},onError:pe=>{var Oe,Re;i({message:((Re=(Oe=pe==null?void 0:pe.response)==null?void 0:Oe.data)==null?void 0:Re.message)||"Error! while completing the one to one!",type:"error"})}}),{mutate:y,isLoading:x}=tm(cd,"createOneToOneRemark",{onSuccess:pe=>{var Oe;o.invalidateQueries("fetchOneToOneDetails"),i({message:((Oe=pe==null?void 0:pe.data)==null?void 0:Oe.message)||"Remark has been created successfully!",type:"success"}),b()},onError:pe=>{var Oe,Re;i({message:((Re=(Oe=pe==null?void 0:pe.response)==null?void 0:Oe.data)==null?void 0:Re.message)||"Error, while creating the remark!",type:"error"})}}),{control:w,watch:C,reset:b,handleSubmit:E}=Nv({resolver:cw(qdt),mode:"onChange"}),{append:T,remove:M}=Fb({name:"IMAGES",control:w}),{append:k,remove:A}=Fb({name:"FILES",control:w}),[P,_,R]=C(["TEXT","FILES","IMAGES"]),D=(pe,Oe,Re)=>{var Me,Be,je,Ce;switch(pe){case Go.SHEDULE_BY_WITH_OUTSIDE:return Oe===(a==null?void 0:a.employee_id)||Re===(a==null?void 0:a.employee_id);case Go.SHEDULE_BY_WITH:return((Me=h==null?void 0:h.meetingDetails)==null?void 0:Me.SCHEDULE_BY_ID)===(a==null?void 0:a.employee_id)||((Be=h==null?void 0:h.meetingDetails)==null?void 0:Be.SCHEDULE_WITH_ID)===(a==null?void 0:a.employee_id);case Go.SHEDULE_BY:return((je=h==null?void 0:h.meetingDetails)==null?void 0:je.SCHEDULE_BY_ID)===(a==null?void 0:a.employee_id);case Go.SHEDULE_WITH:return((Ce=h==null?void 0:h.meetingDetails)==null?void 0:Ce.SCHEDULE_WITH_ID)===(a==null?void 0:a.employee_id);default:return!1}},j=pe=>{const Oe=pe.target.files;if(!(!Oe||!Oe.length))for(const Re of Oe)T(Re)},L=pe=>{_.length>0&&i({message:"You can only add upto 10 maximum files",type:"error"});const Oe=pe.target.files;if(!(!Oe||!Oe.length))for(const Re of Oe)k(Re)},$=E(async({IMAGES:pe,FILES:Oe,...Re})=>{const Me=[...Oe,...pe],Be={...Re,FILES:Me,MEETING_ID:n},je=xi.convertToFormData(Be);y({url:s0e,data:je})}),H=()=>{g({url:TQ,data:{MEETING_ID:n,MEETING_STATUS:Lfe.COMPLETED}})},Y=()=>{t(void 0),r(n)};return B.jsxs(B.Fragment,{children:[B.jsx(pf,{visible:m||v||x}),B.jsx(_fe,{title:B.jsx(bi,{fontWeight:600,children:"Meeting Details"}),open:!!n,handleClose:()=>t(void 0),children:B.jsxs("div",{className:It.meeting__details,children:[B.jsx("div",{className:It.meeting__details__topbox,children:B.jsxs(Jo,{container:!0,children:[B.jsxs(Jo,{item:!0,md:8,children:[B.jsxs("h3",{children:[(X=h==null?void 0:h.meetingDetails)==null?void 0:X.TITLE,B.jsx("span",{style:{color:((Z=h==null?void 0:h.meetingDetails)==null?void 0:Z.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":((ee=h==null?void 0:h.meetingDetails)==null?void 0:ee.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:(Q=h==null?void 0:h.meetingDetails)==null?void 0:Q.DISPLAY_MEETING_STATUS})]}),B.jsx("p",{className:It.meeting_desc,children:(U=h==null?void 0:h.meetingDetails)==null?void 0:U.DESCRIPTION}),B.jsxs("div",{className:It.bottom_create_loaction,children:[B.jsxs("p",{children:["Created by: ",B.jsxs("span",{children:[((K=h==null?void 0:h.meetingDetails)==null?void 0:K.SCHEDULE_BY)??"--"," (",((re=h==null?void 0:h.meetingDetails)==null?void 0:re.SCHEDULE_BY_EMPLOYEE_CODE)??"--",")"]})]}),B.jsxs("p",{children:["Created on: ",B.jsx("span",{children:((ue=h==null?void 0:h.meetingDetails)==null?void 0:ue.CREATED_DATE)??"--"}),",",B.jsx("span",{children:((he=h==null?void 0:h.meetingDetails)==null?void 0:he.CREATED_TIME)??"--"})]}),B.jsxs("p",{children:["Medium: ",B.jsx("span",{children:((ve=h==null?void 0:h.meetingDetails)==null?void 0:ve.MEDIUM)??"--"})]}),B.jsxs("p",{children:[(ae=f[(se=h==null?void 0:h.meetingDetails)==null?void 0:se.MEDIUM_ID])==null?void 0:ae.LABEL,": ",B.jsx("span",{children:((me=h==null?void 0:h.meetingDetails)==null?void 0:me[(ye=f[(J=h==null?void 0:h.meetingDetails)==null?void 0:J.MEDIUM_ID])==null?void 0:ye.COLUMN_NAME])??"--"})]})]})]}),B.jsx(Jo,{item:!0,md:4,style:{textAlign:"right"},children:((Ie=h==null?void 0:h.meetingDetails)==null?void 0:Ie.DISPLAY_MEETING_STATUS)!=="Completed"?B.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"right"},children:[!!D(Go==null?void 0:Go.SHEDULE_BY_WITH)&&B.jsx(Gs,{onClick:Y,label:"Reschedule",color:"secondary",variant:"outlined"}),!!D(Go==null?void 0:Go.SHEDULE_BY)&&B.jsx(Gs,{onClick:H,label:"Mark As Complete",color:"secondary"})]}):null})]})}),B.jsxs("div",{className:It.date__time__box,children:[B.jsxs("p",{children:[B.jsx("span",{children:B.jsx(PI,{})}),(Fe=h==null?void 0:h.meetingDetails)==null?void 0:Fe.DATE]}),B.jsxs("p",{children:[B.jsx("span",{children:B.jsx(yF,{})}),(Pe=h==null?void 0:h.meetingDetails)==null?void 0:Pe.START_TIME," - ",(ne=h==null?void 0:h.meetingDetails)==null?void 0:ne.END_TIME]})]}),B.jsxs("div",{className:It.connected__meeting,children:[B.jsx("span",{style:{marginRight:"5px"},children:B.jsx(Yfe,{})}),"Conducted with:",B.jsxs("span",{style:{marginLeft:"5px"},children:[(te=h==null?void 0:h.meetingDetails)==null?void 0:te.SCHEDULE_WITH," (",((ie=h==null?void 0:h.meetingDetails)==null?void 0:ie.SCHEDULE_WITH_EMPLOYEE_CODE)??"--",")"]})]}),B.jsxs("div",{className:It.remark__container,children:[!!(h!=null&&h.meetingRemark.length)&&((we=h==null?void 0:h.meetingRemark)==null?void 0:we.map((pe,Oe)=>{var Re,Me,Be;return((pe==null?void 0:pe.DISPLAY_VISIBLE_TO)==="Visible to me"&&!D(Go==null?void 0:Go.SHEDULE_WITH)||(pe==null?void 0:pe.DISPLAY_VISIBLE_TO)==="Visible to All")&&B.jsx("div",{className:It.remarks__meeting,children:B.jsxs("div",{style:{marginBottom:"20px"},children:[B.jsxs("h4",{children:["Remarks",D(Go==null?void 0:Go.SHEDULE_BY)&&B.jsxs("span",{children:[B.jsx(Zfe,{sx:{height:"20px",width:"20px",marginRight:"5px"}})," ",(pe==null?void 0:pe.DISPLAY_VISIBLE_TO)||"Visible to "]})]}),B.jsx("p",{children:pe==null?void 0:pe.TEXT}),B.jsx("div",{className:It.images__structure,children:(pe==null?void 0:pe.REMARK_ATTACHMENTS)&&((Re=pe==null?void 0:pe.REMARK_ATTACHMENTS)==null?void 0:Re.map(je=>B.jsx(B.Fragment,{children:(je==null?void 0:je.FILE_TYPE)==="pdf"||(je==null?void 0:je.FILE_TYPE)==="xls"?B.jsxs(yt,{className:It.pdfView__preview,children:[B.jsx(yt,{mr:1,display:"flex",alignItems:"center",children:(je==null?void 0:je.FILE_TYPE)==="pdf"?B.jsx(Ydt,{size:18}):B.jsx(lF,{style:{width:"30px"}})}),B.jsxs(yt,{children:[B.jsx("p",{children:B.jsx(ay,{data:je==null?void 0:je.FILE_NAME,limit:20})}),B.jsx("div",{className:It.previeww__color,onClick:()=>p(`${s}/${je==null?void 0:je.FILE_PATH}`),children:"Preview"})]})]}):null})))}),B.jsx("div",{className:It.images__structure,children:(pe==null?void 0:pe.REMARK_ATTACHMENTS)&&((Me=pe==null?void 0:pe.REMARK_ATTACHMENTS)==null?void 0:Me.map(je=>B.jsx(B.Fragment,{children:(je==null?void 0:je.FILE_TYPE)==="png"||(je==null?void 0:je.FILE_TYPE)==="jpeg"||(je==null?void 0:je.FILE_TYPE)==="webp"||(je==null?void 0:je.FILE_TYPE)==="jpg"?B.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>c(`${s}/${je==null?void 0:je.FILE_PATH}`),alt:"",src:`${s}/${je==null?void 0:je.FILE_PATH}`,width:200}):null})))}),B.jsxs("div",{className:It.comment__users__meeting,children:[B.jsx(pc,{alt:"",sx:{width:22,height:22,marginRight:"10px"},src:((Be=pe==null?void 0:pe.remark_auther)==null?void 0:Be.profileSrc)||`https://robohash.org/${pe==null?void 0:pe.CREATED_BY}`}),pe==null?void 0:pe.CREATED_BY," ",B.jsx("span",{children:pe==null?void 0:pe.CREATED_DATE}),B.jsx("span",{children:pe==null?void 0:pe.CREATED_TIME})]})]})},Oe)})),D(Go==null?void 0:Go.SHEDULE_BY_WITH)&&B.jsxs("div",{className:It.editor__remarks,children:[B.jsx(Ta,{control:w,name:"TEXT",render:({field:{value:pe,onChange:Oe,onBlur:Re}})=>B.jsx(Kdt,{placeholder:"Type your remarks",value:pe,onChange:Me=>Oe(Me.target.value),onBlur:Re})}),B.jsx(yt,{className:It.main__upload__box,mx:2,children:R==null?void 0:R.map((pe,Oe)=>B.jsxs(yt,{className:It.all__upload__images,children:[B.jsx("img",{src:URL.createObjectURL(pe),height:"200",alt:"upload"}),B.jsx("button",{onClick:()=>M(Oe),children:B.jsx(yv,{style:{width:"20px",height:"20px"}})})]},pe))}),B.jsx(yt,{className:It.main__upload__box,mx:2,children:_==null?void 0:_.map((pe,Oe)=>B.jsxs(yt,{className:It.pdfView__preview,children:[B.jsx(yt,{style:{marginRight:"10px"},children:B.jsx("p",{children:B.jsx(uF,{size:22,color:"red"})})}),B.jsx(yt,{children:B.jsx("p",{children:B.jsx(ay,{data:pe==null?void 0:pe.name,limit:20})})}),B.jsx("button",{onClick:()=>A(Oe),children:B.jsx(yv,{style:{width:"20px",height:"20px"}})})]}))}),B.jsxs("div",{className:It.editor__bottom,children:[B.jsxs(yt,{display:"flex",gap:1,children:[B.jsxs("label",{style:{cursor:"pointer"},children:[B.jsx("input",{type:"file",style:{display:"none"},onChange:j,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),B.jsx("span",{children:B.jsx(fF,{})})]}),B.jsxs("label",{style:{cursor:"pointer"},children:[B.jsx("input",{id:"fileUpload",type:"file",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:L,disabled:(_==null?void 0:_.length)>10,style:{display:"none"}}),B.jsx("span",{children:B.jsx(Xfe,{})})]})]}),B.jsxs(yt,{display:"flex",justifyContent:"start",children:[D(Go==null?void 0:Go.SHEDULE_BY)&&B.jsx(Ta,{control:w,name:"VISIBLE_TO",render:({field:{value:pe,onChange:Oe}})=>B.jsx(hD,{style:{marginRight:"20px"},control:B.jsx(wD,{checked:!!pe}),label:"Show to employee",labelPlacement:"start",onChange:(Re,Me)=>(Oe(+Me),Re)})}),B.jsx(Afe,{onClick:$,disabled:!P||(P==null?void 0:P.length)===0,sx:{backgroundColor:a==null?void 0:a.PRODUCT_THEME_COLOR,height:"40px"},color:"secondary",label:"send"})]})]})]})]})]})}),B.jsx(l,{}),B.jsx(d,{})]})};var CF={},tpt=ga;Object.defineProperty(CF,"__esModule",{value:!0});var SF=CF.default=void 0,npt=tpt(ys()),rpt=B;SF=CF.default=(0,npt.default)((0,rpt.jsx)("path",{d:"M20 2h-8C6.38 2 2 6.66 2 12.28 2 17.5 6.49 22 11.72 22 17.39 22 22 17.62 22 12V4c0-1.1-.9-2-2-2m-3 13-3-2v2H7V9h7v2l3-2z"}),"Duo");//! moment.js
|
|
3097
3097
|
//! version : 2.30.1
|
|
3098
3098
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
3099
3099
|
//! license : MIT
|
package/dist/main.js
CHANGED
|
@@ -78651,13 +78651,10 @@ const bdt = (e) => {
|
|
|
78651
78651
|
url: o5.APPRECIATIONS.BADGES.FETCH,
|
|
78652
78652
|
params: { isAll: !0 }
|
|
78653
78653
|
}, "fetchBadges"), { mutate: f, isLoading: h } = fm(yd, "createAppreciation", {
|
|
78654
|
-
onSuccess: (
|
|
78655
|
-
l.invalidateQueries("fetchAppreciations"), c({ type: "success", message:
|
|
78654
|
+
onSuccess: () => {
|
|
78655
|
+
l.invalidateQueries("fetchAppreciations"), c({ type: "success", message: "Employee has been appreciated successfully!" }), t(!1);
|
|
78656
78656
|
},
|
|
78657
|
-
onError: (
|
|
78658
|
-
var k, A;
|
|
78659
|
-
return c({ type: "error", message: ((A = (k = M.response) == null ? void 0 : k.data) == null ? void 0 : A.message) ?? "" });
|
|
78660
|
-
}
|
|
78657
|
+
onError: () => c({ type: "error", message: "We are facing some technical difficulties!" })
|
|
78661
78658
|
}), m = lr.object({
|
|
78662
78659
|
APPRECIATE_TO: lr.number({ required_error: "Please choose employee to appreciate!" }),
|
|
78663
78660
|
BADGE_ID: lr.number({ required_error: "Please select an appreciation badge!" }),
|
|
@@ -78666,9 +78663,12 @@ const bdt = (e) => {
|
|
|
78666
78663
|
resolver: Cw(m),
|
|
78667
78664
|
mode: "onChange",
|
|
78668
78665
|
defaultValues: {
|
|
78669
|
-
APPRECIATE_TO: r && (r == null ? void 0 : r[`${i}`])
|
|
78666
|
+
APPRECIATE_TO: r && (r == null ? void 0 : r[`${i}`]),
|
|
78667
|
+
REMARKS: ""
|
|
78670
78668
|
}
|
|
78671
|
-
}), [C] = v(["BADGE_ID"]), b = (M
|
|
78669
|
+
}), [C] = v(["BADGE_ID"]), b = (M, k) => {
|
|
78670
|
+
w("BADGE_ID", M), w("REMARKS", k);
|
|
78671
|
+
}, O = (M) => {
|
|
78672
78672
|
const k = { SEND_EMAIL: 1, ...M };
|
|
78673
78673
|
f({ url: o5.APPRECIATIONS.CREATE, data: k });
|
|
78674
78674
|
};
|
|
@@ -78685,8 +78685,8 @@ const bdt = (e) => {
|
|
|
78685
78685
|
), B.jsxs("span", { children: [(r == null ? void 0 : r[`${a}`]) ?? "--", " ", (r == null ? void 0 : r[`${o}`]) ?? "--"] })] }) : B.jsxs(yt, { display: "flex", flexDirection: "column", gap: 1, children: [B.jsx(ZD, { searchKey: "search", endpoint: o5.EMPLOYEES.SEARCH_EMPLOYEES, reqParams: { search_for: "appreciation", search: "" }, optionValueKey: "EMPLOYEE_ID", optionTitleFn: (M) => `${(M == null ? void 0 : M.EMPLOYEE_NAME) || "--"} (${M.EMPLOYEE_CODE || "--"})`, inputPlaceHolder: "Choose Employee", onChange: ({ value: M }) => w("APPRECIATE_TO", M) }), !!(y != null && y.APPRECIATE_TO) && B.jsxs("div", { className: It.form_error, style: { float: "left", marginTop: 0 }, children: [B.jsx(ud, {}), B.jsx("p", { children: y.APPRECIATE_TO.message })] })] })] }), B.jsxs(yt, { className: It.badges_container, children: [B.jsx("span", { className: It.badges_container_title, children: "Select Badge of Appreciation" }), B.jsx(ri, { container: !0, spacing: 1, children: (E = d == null ? void 0 : d.ROWS) == null ? void 0 : E.map((M, k) => B.jsx(ri, { item: !0, xs: 4, children: B.jsx(See, { color: "primary", badgeContent: B.jsx(Ufe, { style: { color: "#fff", width: "10px", height: "10px" } }), invisible: C !== M.ID, anchorOrigin: {
|
|
78686
78686
|
vertical: "top",
|
|
78687
78687
|
horizontal: (k + 1) % 3 === 0 ? "left" : "right"
|
|
78688
|
-
}, className: "w-100 ok", children: B.jsx(xdt, { selectedBadgeId: C,
|
|
78689
|
-
}, xdt = ({ TITLE: e, LOGO: n, DESCRIPTION: t, ID: r,
|
|
78688
|
+
}, className: "w-100 ok", children: B.jsx(xdt, { selectedBadgeId: C, handleOnClickBadge: b, ...M }) }) }, k)) })] }), B.jsx(yt, { children: B.jsxs(F1, { variant: "outlined", style: { height: "auto" }, className: "w-100 ", children: [B.jsx(AD, { variant: "outlined", htmlFor: "Appreciation Remarks", color: "primary", children: "Appreciation Remarks" }), B.jsx(Pa, { control: g, name: "REMARKS", render: ({ field: { value: M, onChange: k } }) => B.jsx(yw, { style: { height: "auto" }, margin: "none", multiline: !0, rows: 3, color: "primary", autoComplete: "off", label: "Appreciation Remarks", className: "w-100", value: M, onChange: k }) })] }) }), B.jsxs(yt, { marginTop: 2, display: "flex", justifyContent: "flex-end", gap: 2, children: [B.jsx(Js, { label: "CANCEL", variant: "outlined", onClick: () => t(!1) }), B.jsx(Js, { label: "SUBMIT", color: "secondary", disableElevation: !0, onClick: x(O) })] })] }) })] });
|
|
78689
|
+
}, xdt = ({ TITLE: e, LOGO: n, DESCRIPTION: t, ID: r, APPERICATION_REMARKS: o, selectedBadgeId: i, handleOnClickBadge: a }) => B.jsx("div", { style: { borderRadius: "8px", border: "1px solid #f1f1f1" }, className: "w-100", children: B.jsxs("div", { className: `${It.badge_card} ${r === i ? It.active_badge : ""}`, onClick: () => a(r, o), children: [B.jsx(bc, { src: n, alt: e }), B.jsxs("span", { children: [B.jsx("h3", { children: e }), B.jsx("p", { children: t })] })] }) }), Zy = (e) => {
|
|
78690
78690
|
const n = vr(() => [
|
|
78691
78691
|
{
|
|
78692
78692
|
label: "Pending",
|
|
@@ -79054,7 +79054,7 @@ const Uo = {
|
|
|
79054
79054
|
height: "auto",
|
|
79055
79055
|
padding: "0px 10px",
|
|
79056
79056
|
color: "#D2D1D4"
|
|
79057
|
-
} }) }), (v == null ? void 0 : v.APPERICIATED_BY_DEPARTMENT) ?? "--"] })] })] }), B.jsxs("div", { className: "flex-start-center", children: [B.jsxs("h4", { style: { marginRight: "10px" }, children: ["Appreciation for :-", " "] }), B.jsx("div", { children: B.jsx("h4", { children: (v == null ? void 0 : v.APPERICIATED_TO) ?? "--" }) })] })] }), B.jsxs("div", { className: It.feedback__appreciation, children: [B.jsx(bc, { alt: "", src: (v == null ? void 0 : v.BADGE_LOGO) ?? "" }), B.jsx("h3", { children: (v == null ? void 0 : v.BADGE_TITLE) ?? "TITLE" }), x == null ? void 0 : x.map((C, b) => B.jsx("p", { style: (x == null ? void 0 : x.length) > 1 ? { textAlign: "start" } : { textAlign: "center" }, children: C }, b))] }), B.jsx("div", { style: { display: "flex", justifyContent: "right" }, className: It.one__icons__bottom, children: B.jsxs("p", { children: [B.jsx("span", { children: B.jsx(Wwe, {}) }), Ei.getFormatedDate(v == null ? void 0 : v.CREATED_ON, (f == null ? void 0 : f.
|
|
79057
|
+
} }) }), (v == null ? void 0 : v.APPERICIATED_BY_DEPARTMENT) ?? "--"] })] })] }), B.jsxs("div", { className: "flex-start-center", children: [B.jsxs("h4", { style: { marginRight: "10px" }, children: ["Appreciation for :-", " "] }), B.jsx("div", { children: B.jsx("h4", { children: (v == null ? void 0 : v.APPERICIATED_TO) ?? "--" }) })] })] }), B.jsxs("div", { className: It.feedback__appreciation, children: [B.jsx(bc, { alt: "", src: (v == null ? void 0 : v.BADGE_LOGO) ?? "" }), B.jsx("h3", { children: (v == null ? void 0 : v.BADGE_TITLE) ?? "TITLE" }), x == null ? void 0 : x.map((C, b) => B.jsx("p", { style: (x == null ? void 0 : x.length) > 1 ? { textAlign: "start" } : { textAlign: "center" }, children: C }, b))] }), B.jsx("div", { style: { display: "flex", justifyContent: "right" }, className: It.one__icons__bottom, children: B.jsxs("p", { children: [B.jsx("span", { children: B.jsx(Wwe, {}) }), Ei.getFormatedDate(v == null ? void 0 : v.CREATED_ON, (f == null ? void 0 : f.date_str) ?? "YYYY-MM-DD")] }) })] }, y);
|
|
79058
79058
|
}) : B.jsx(yO, { message: "No appreciations found for the selected badge" }) : B.jsx(yO, { message: "Click on any badge to see appreciations" })] })] }), i && B.jsx(bdt, { open: i, setOpen: a })] });
|
|
79059
79059
|
};
|
|
79060
79060
|
var wF = {}, Idt = Sa;
|
|
@@ -79329,7 +79329,7 @@ const Jdt = lr.object({
|
|
|
79329
79329
|
title: "Additional Details",
|
|
79330
79330
|
items: Object.entries(b).map(([O, E]) => ({
|
|
79331
79331
|
label: Ei.toTitleCase(String(O).split("_").join(" ")),
|
|
79332
|
-
content: O != null && O.includes("DATE") ? Ei.getFormatedDate(E, c == null ? void 0 : c.
|
|
79332
|
+
content: O != null && O.includes("DATE") ? Ei.getFormatedDate(E, c == null ? void 0 : c.date_str) : E,
|
|
79333
79333
|
xs: 12,
|
|
79334
79334
|
sm: 6,
|
|
79335
79335
|
md: 6,
|
|
@@ -79430,7 +79430,7 @@ const Jdt = lr.object({
|
|
|
79430
79430
|
fontSize: "14px",
|
|
79431
79431
|
fontWeight: "600",
|
|
79432
79432
|
lineHeight: "24px"
|
|
79433
|
-
}, children: _ }) }, R)) })] }), B.jsx(Ldt, { descriptionsArray: w(C), spacingBetweenDescriptions: "32px", spacingBetweenDescriptionTitleAndItems: "18px", spacingBetweenSubsequentDescriptionItems: "10px", spacingBetweenItemAndLabel: "6px" }), (C == null ? void 0 : C.FEEDBACK_RATINGS) && (C == null ? void 0 : C.FEEDBACK_RATINGS.length) > 0 && ((M = C == null ? void 0 : C.FEEDBACK_RATINGS) == null ? void 0 : M.map((_, R) => B.jsxs(ri, { container: !0, mt: 2, children: [B.jsx(ri, { item: !0, md: 3, children: B.jsx("div", { className: It.skill__btns, children: B.jsx(yy, { data: _ == null ? void 0 : _.NAME, limit: 25 }) }) }), B.jsx(ri, { item: !0, md: 3, children: B.jsx(yt, { className: It.item__centerdirector, children: B.jsx(PD, { name: "read-only", value: _ == null ? void 0 : _.RATING, readOnly: !0 }) }) })] }, R))), (C == null ? void 0 : C.FEEDBACK_ATTACHMENTS) && (C == null ? void 0 : C.FEEDBACK_ATTACHMENTS.length) > 0 && B.jsx("div", { className: It.images__structure, children: (k = C == null ? void 0 : C.FEEDBACK_ATTACHMENTS) == null ? void 0 : k.map((_, R) => ((_ == null ? void 0 : _.FILE_TYPE) === "pdf" || (_ == null ? void 0 : _.FILE_TYPE) === "xls") && B.jsxs(yt, { className: It.pdfView__preview, children: [B.jsx(yt, { style: { marginRight: "10px" }, alignContent: "center", children: (_ == null ? void 0 : _.FILE_TYPE) === "pdf" ? B.jsx(TF, { size: 22, color: "red" }) : B.jsx(SF, { style: { width: "30px" } }) }), B.jsxs(yt, { children: [B.jsx("p", { children: B.jsx(yy, { data: _ == null ? void 0 : _.FILE_NAME, limit: 20 }) }), B.jsx("div", { className: It.previeww__color, onClick: () => i(`${d}/${_ == null ? void 0 : _.FILE_PATH}`), children: "Preview" })] })] }, R)) }), ((A = C == null ? void 0 : C.FEEDBACK_ATTACHMENTS) == null ? void 0 : A.length) > 0 && B.jsx("div", { className: It.images__structure, children: (P = C == null ? void 0 : C.FEEDBACK_ATTACHMENTS) == null ? void 0 : P.map((_, R) => ((_ == null ? void 0 : _.FILE_TYPE) === "png" || (_ == null ? void 0 : _.FILE_TYPE) === "jpeg" || (_ == null ? void 0 : _.FILE_TYPE) === "webp" || (_ == null ? void 0 : _.FILE_TYPE) === "jpg") && B.jsx("img", { style: { cursor: "zoom-in" }, src: `${d}/${_ == null ? void 0 : _.FILE_PATH}`, onClick: () => r(`${d}/${_ == null ? void 0 : _.FILE_PATH}`) }, R)) }), B.jsxs("div", { className: "w-100 flex-end-center g-5", style: { color: "slategray", fontSize: "0.75rem" }, children: [B.jsx(XI, { sx: { width: "1rem", height: "1rem" } }), B.jsxs("div", { children: [Ei.getFormatedDate(C == null ? void 0 : C.CREATED_ON, c == null ? void 0 : c.
|
|
79433
|
+
}, children: _ }) }, R)) })] }), B.jsx(Ldt, { descriptionsArray: w(C), spacingBetweenDescriptions: "32px", spacingBetweenDescriptionTitleAndItems: "18px", spacingBetweenSubsequentDescriptionItems: "10px", spacingBetweenItemAndLabel: "6px" }), (C == null ? void 0 : C.FEEDBACK_RATINGS) && (C == null ? void 0 : C.FEEDBACK_RATINGS.length) > 0 && ((M = C == null ? void 0 : C.FEEDBACK_RATINGS) == null ? void 0 : M.map((_, R) => B.jsxs(ri, { container: !0, mt: 2, children: [B.jsx(ri, { item: !0, md: 3, children: B.jsx("div", { className: It.skill__btns, children: B.jsx(yy, { data: _ == null ? void 0 : _.NAME, limit: 25 }) }) }), B.jsx(ri, { item: !0, md: 3, children: B.jsx(yt, { className: It.item__centerdirector, children: B.jsx(PD, { name: "read-only", value: _ == null ? void 0 : _.RATING, readOnly: !0 }) }) })] }, R))), (C == null ? void 0 : C.FEEDBACK_ATTACHMENTS) && (C == null ? void 0 : C.FEEDBACK_ATTACHMENTS.length) > 0 && B.jsx("div", { className: It.images__structure, children: (k = C == null ? void 0 : C.FEEDBACK_ATTACHMENTS) == null ? void 0 : k.map((_, R) => ((_ == null ? void 0 : _.FILE_TYPE) === "pdf" || (_ == null ? void 0 : _.FILE_TYPE) === "xls") && B.jsxs(yt, { className: It.pdfView__preview, children: [B.jsx(yt, { style: { marginRight: "10px" }, alignContent: "center", children: (_ == null ? void 0 : _.FILE_TYPE) === "pdf" ? B.jsx(TF, { size: 22, color: "red" }) : B.jsx(SF, { style: { width: "30px" } }) }), B.jsxs(yt, { children: [B.jsx("p", { children: B.jsx(yy, { data: _ == null ? void 0 : _.FILE_NAME, limit: 20 }) }), B.jsx("div", { className: It.previeww__color, onClick: () => i(`${d}/${_ == null ? void 0 : _.FILE_PATH}`), children: "Preview" })] })] }, R)) }), ((A = C == null ? void 0 : C.FEEDBACK_ATTACHMENTS) == null ? void 0 : A.length) > 0 && B.jsx("div", { className: It.images__structure, children: (P = C == null ? void 0 : C.FEEDBACK_ATTACHMENTS) == null ? void 0 : P.map((_, R) => ((_ == null ? void 0 : _.FILE_TYPE) === "png" || (_ == null ? void 0 : _.FILE_TYPE) === "jpeg" || (_ == null ? void 0 : _.FILE_TYPE) === "webp" || (_ == null ? void 0 : _.FILE_TYPE) === "jpg") && B.jsx("img", { style: { cursor: "zoom-in" }, src: `${d}/${_ == null ? void 0 : _.FILE_PATH}`, onClick: () => r(`${d}/${_ == null ? void 0 : _.FILE_PATH}`) }, R)) }), B.jsxs("div", { className: "w-100 flex-end-center g-5", style: { color: "slategray", fontSize: "0.75rem" }, children: [B.jsx(XI, { sx: { width: "1rem", height: "1rem" } }), B.jsxs("div", { children: [Ei.getFormatedDate(C == null ? void 0 : C.CREATED_ON, c == null ? void 0 : c.date_str) || "--", " "] })] })] }, b);
|
|
79434
79434
|
}) : B.jsx(yO, { message: "No continuous feedback found" }) })] }), p && B.jsx(Qdt, { open: p, setOpen: f }), B.jsx(a, {}), B.jsx(o, {})] });
|
|
79435
79435
|
};
|
|
79436
79436
|
var _F = {}, Kdt = Sa;
|